var tg=a=>{throw TypeError(a)};var kf=(a,l,i)=>l.has(a)||tg("Cannot "+i);var C=(a,l,i)=>(kf(a,l,"read from private field"),i?i.call(a):l.get(a)),ie=(a,l,i)=>l.has(a)?tg("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(a):l.set(a,i),W=(a,l,i,r)=>(kf(a,l,"write to private field"),r?r.call(a,i):l.set(a,i),i),we=(a,l,i)=>(kf(a,l,"access private method"),i);var Lc=(a,l,i,r)=>({set _(d){W(a,l,d,i)},get _(){return C(a,l,r)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function i(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(d){if(d.ep)return;d.ep=!0;const f=i(d);fetch(d.href,f)}})();function F1(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Bf={exports:{}},qo={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ng;function Yb(){if(ng)return qo;ng=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(r,d,f){var h=null;if(f!==void 0&&(h=""+f),d.key!==void 0&&(h=""+d.key),"key"in d){f={};for(var g in d)g!=="key"&&(f[g]=d[g])}else f=d;return d=f.ref,{$$typeof:a,type:r,key:h,ref:d!==void 0?d:null,props:f}}return qo.Fragment=l,qo.jsx=i,qo.jsxs=i,qo}var ag;function Gb(){return ag||(ag=1,Bf.exports=Yb()),Bf.exports}var o=Gb(),Of={exports:{}},Ae={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sg;function Ib(){if(sg)return Ae;sg=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),b=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,E={};function R(T,Y,Z){this.props=T,this.context=Y,this.refs=E,this.updater=Z||j}R.prototype.isReactComponent={},R.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,Y,"setState")},R.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function L(){}L.prototype=R.prototype;function B(T,Y,Z){this.props=T,this.context=Y,this.refs=E,this.updater=Z||j}var q=B.prototype=new L;q.constructor=B,w(q,R.prototype),q.isPureReactComponent=!0;var K=Array.isArray;function V(){}var U={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function $(T,Y,Z){var J=Z.ref;return{$$typeof:a,type:T,key:Y,ref:J!==void 0?J:null,props:Z}}function ue(T,Y){return $(T.type,Y,T.props)}function re(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function ce(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Z){return Y[Z]})}var ee=/\/+/g;function he(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?ce(""+T.key):Y.toString(36)}function ae(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(V,V):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function P(T,Y,Z,J,be){var ve=typeof T;(ve==="undefined"||ve==="boolean")&&(T=null);var Le=!1;if(T===null)Le=!0;else switch(ve){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(T.$$typeof){case a:case l:Le=!0;break;case y:return Le=T._init,P(Le(T._payload),Y,Z,J,be)}}if(Le)return be=be(T),Le=J===""?"."+he(T,0):J,K(be)?(Z="",Le!=null&&(Z=Le.replace(ee,"$&/")+"/"),P(be,Y,Z,"",function(Aa){return Aa})):be!=null&&(re(be)&&(be=ue(be,Z+(be.key==null||T&&T.key===be.key?"":(""+be.key).replace(ee,"$&/")+"/")+Le)),Y.push(be)),1;Le=0;var Tt=J===""?".":J+":";if(K(T))for(var at=0;at<T.length;at++)J=T[at],ve=Tt+he(J,at),Le+=P(J,Y,Z,ve,be);else if(at=S(T),typeof at=="function")for(T=at.call(T),at=0;!(J=T.next()).done;)J=J.value,ve=Tt+he(J,at++),Le+=P(J,Y,Z,ve,be);else if(ve==="object"){if(typeof T.then=="function")return P(ae(T),Y,Z,J,be);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Le}function X(T,Y,Z){if(T==null)return T;var J=[],be=0;return P(T,J,"","",function(ve){return Y.call(Z,ve,be++)}),J}function se(T){if(T._status===-1){var Y=T._result;Y=Y(),Y.then(function(Z){(T._status===0||T._status===-1)&&(T._status=1,T._result=Z)},function(Z){(T._status===0||T._status===-1)&&(T._status=2,T._result=Z)}),T._status===-1&&(T._status=0,T._result=Y)}if(T._status===1)return T._result.default;throw T._result}var de=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ge={map:X,forEach:function(T,Y,Z){X(T,function(){Y.apply(this,arguments)},Z)},count:function(T){var Y=0;return X(T,function(){Y++}),Y},toArray:function(T){return X(T,function(Y){return Y})||[]},only:function(T){if(!re(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Ae.Activity=_,Ae.Children=ge,Ae.Component=R,Ae.Fragment=i,Ae.Profiler=d,Ae.PureComponent=B,Ae.StrictMode=r,Ae.Suspense=m,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(T){return U.H.useMemoCache(T)}},Ae.cache=function(T){return function(){return T.apply(null,arguments)}},Ae.cacheSignal=function(){return null},Ae.cloneElement=function(T,Y,Z){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var J=w({},T.props),be=T.key;if(Y!=null)for(ve in Y.key!==void 0&&(be=""+Y.key),Y)!I.call(Y,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&Y.ref===void 0||(J[ve]=Y[ve]);var ve=arguments.length-2;if(ve===1)J.children=Z;else if(1<ve){for(var Le=Array(ve),Tt=0;Tt<ve;Tt++)Le[Tt]=arguments[Tt+2];J.children=Le}return $(T.type,be,J)},Ae.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},Ae.createElement=function(T,Y,Z){var J,be={},ve=null;if(Y!=null)for(J in Y.key!==void 0&&(ve=""+Y.key),Y)I.call(Y,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(be[J]=Y[J]);var Le=arguments.length-2;if(Le===1)be.children=Z;else if(1<Le){for(var Tt=Array(Le),at=0;at<Le;at++)Tt[at]=arguments[at+2];be.children=Tt}if(T&&T.defaultProps)for(J in Le=T.defaultProps,Le)be[J]===void 0&&(be[J]=Le[J]);return $(T,ve,be)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(T){return{$$typeof:g,render:T}},Ae.isValidElement=re,Ae.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:se}},Ae.memo=function(T,Y){return{$$typeof:p,type:T,compare:Y===void 0?null:Y}},Ae.startTransition=function(T){var Y=U.T,Z={};U.T=Z;try{var J=T(),be=U.S;be!==null&&be(Z,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(V,de)}catch(ve){de(ve)}finally{Y!==null&&Z.types!==null&&(Y.types=Z.types),U.T=Y}},Ae.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Ae.use=function(T){return U.H.use(T)},Ae.useActionState=function(T,Y,Z){return U.H.useActionState(T,Y,Z)},Ae.useCallback=function(T,Y){return U.H.useCallback(T,Y)},Ae.useContext=function(T){return U.H.useContext(T)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(T,Y){return U.H.useDeferredValue(T,Y)},Ae.useEffect=function(T,Y){return U.H.useEffect(T,Y)},Ae.useEffectEvent=function(T){return U.H.useEffectEvent(T)},Ae.useId=function(){return U.H.useId()},Ae.useImperativeHandle=function(T,Y,Z){return U.H.useImperativeHandle(T,Y,Z)},Ae.useInsertionEffect=function(T,Y){return U.H.useInsertionEffect(T,Y)},Ae.useLayoutEffect=function(T,Y){return U.H.useLayoutEffect(T,Y)},Ae.useMemo=function(T,Y){return U.H.useMemo(T,Y)},Ae.useOptimistic=function(T,Y){return U.H.useOptimistic(T,Y)},Ae.useReducer=function(T,Y,Z){return U.H.useReducer(T,Y,Z)},Ae.useRef=function(T){return U.H.useRef(T)},Ae.useState=function(T){return U.H.useState(T)},Ae.useSyncExternalStore=function(T,Y,Z){return U.H.useSyncExternalStore(T,Y,Z)},Ae.useTransition=function(){return U.H.useTransition()},Ae.version="19.2.5",Ae}var lg;function Bh(){return lg||(lg=1,Of.exports=Ib()),Of.exports}var A=Bh();const Bt=F1(A);var Lf={exports:{}},Po={},Mf={exports:{}},Df={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ig;function Kb(){return ig||(ig=1,(function(a){function l(P,X){var se=P.length;P.push(X);e:for(;0<se;){var de=se-1>>>1,ge=P[de];if(0<d(ge,X))P[de]=X,P[se]=ge,se=de;else break e}}function i(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var X=P[0],se=P.pop();if(se!==X){P[0]=se;e:for(var de=0,ge=P.length,T=ge>>>1;de<T;){var Y=2*(de+1)-1,Z=P[Y],J=Y+1,be=P[J];if(0>d(Z,se))J<ge&&0>d(be,Z)?(P[de]=be,P[J]=se,de=J):(P[de]=Z,P[Y]=se,de=Y);else if(J<ge&&0>d(be,se))P[de]=be,P[J]=se,de=J;else break e}}return X}function d(P,X){var se=P.sortIndex-X.sortIndex;return se!==0?se:P.id-X.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();a.unstable_now=function(){return h.now()-g}}var m=[],p=[],y=1,_=null,b=3,S=!1,j=!1,w=!1,E=!1,R=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function q(P){for(var X=i(p);X!==null;){if(X.callback===null)r(p);else if(X.startTime<=P)r(p),X.sortIndex=X.expirationTime,l(m,X);else break;X=i(p)}}function K(P){if(w=!1,q(P),!j)if(i(m)!==null)j=!0,V||(V=!0,ce());else{var X=i(p);X!==null&&ae(K,X.startTime-P)}}var V=!1,U=-1,I=5,$=-1;function ue(){return E?!0:!(a.unstable_now()-$<I)}function re(){if(E=!1,V){var P=a.unstable_now();$=P;var X=!0;try{e:{j=!1,w&&(w=!1,L(U),U=-1),S=!0;var se=b;try{t:{for(q(P),_=i(m);_!==null&&!(_.expirationTime>P&&ue());){var de=_.callback;if(typeof de=="function"){_.callback=null,b=_.priorityLevel;var ge=de(_.expirationTime<=P);if(P=a.unstable_now(),typeof ge=="function"){_.callback=ge,q(P),X=!0;break t}_===i(m)&&r(m),q(P)}else r(m);_=i(m)}if(_!==null)X=!0;else{var T=i(p);T!==null&&ae(K,T.startTime-P),X=!1}}break e}finally{_=null,b=se,S=!1}X=void 0}}finally{X?ce():V=!1}}}var ce;if(typeof B=="function")ce=function(){B(re)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,he=ee.port2;ee.port1.onmessage=re,ce=function(){he.postMessage(null)}}else ce=function(){R(re,0)};function ae(P,X){U=R(function(){P(a.unstable_now())},X)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(P){P.callback=null},a.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<P?Math.floor(1e3/P):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(P){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var se=b;b=X;try{return P()}finally{b=se}},a.unstable_requestPaint=function(){E=!0},a.unstable_runWithPriority=function(P,X){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var se=b;b=P;try{return X()}finally{b=se}},a.unstable_scheduleCallback=function(P,X,se){var de=a.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?de+se:de):se=de,P){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=se+ge,P={id:y++,callback:X,priorityLevel:P,startTime:se,expirationTime:ge,sortIndex:-1},se>de?(P.sortIndex=se,l(p,P),i(m)===null&&P===i(p)&&(w?(L(U),U=-1):w=!0,ae(K,se-de))):(P.sortIndex=ge,l(m,P),j||S||(j=!0,V||(V=!0,ce()))),P},a.unstable_shouldYield=ue,a.unstable_wrapCallback=function(P){var X=b;return function(){var se=b;b=X;try{return P.apply(this,arguments)}finally{b=se}}}})(Df)),Df}var og;function Xb(){return og||(og=1,Mf.exports=Kb()),Mf.exports}var zf={exports:{}},It={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rg;function Vb(){if(rg)return It;rg=1;var a=Bh();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},d=Symbol.for("react.portal");function f(m,p,y){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:_==null?null:""+_,children:m,containerInfo:p,implementation:y}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,It.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return f(m,p,null,y)},It.flushSync=function(m){var p=h.T,y=r.p;try{if(h.T=null,r.p=2,m)return m()}finally{h.T=p,r.p=y,r.d.f()}},It.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},It.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},It.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,_=g(y,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:_,integrity:b,fetchPriority:S}):y==="script"&&r.d.X(m,{crossOrigin:_,integrity:b,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},It.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=g(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},It.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,_=g(y,p.crossOrigin);r.d.L(m,y,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},It.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=g(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},It.requestFormReset=function(m){r.d.r(m)},It.unstable_batchedUpdates=function(m,p){return m(p)},It.useFormState=function(m,p,y){return h.H.useFormState(m,p,y)},It.useFormStatus=function(){return h.H.useHostTransitionStatus()},It.version="19.2.5",It}var cg;function Zb(){if(cg)return zf.exports;cg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),zf.exports=Vb(),zf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ug;function Wb(){if(ug)return Po;ug=1;var a=Xb(),l=Bh(),i=Zb();function r(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 f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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 m(e){if(f(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,s=t;;){var c=n.return;if(c===null)break;var u=c.alternate;if(u===null){if(s=c.return,s!==null){n=s;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===n)return m(c),e;if(u===s)return m(c),t;u=u.sibling}throw Error(r(188))}if(n.return!==s.return)n=c,s=u;else{for(var v=!1,x=c.child;x;){if(x===n){v=!0,n=c,s=u;break}if(x===s){v=!0,s=c,n=u;break}x=x.sibling}if(!v){for(x=u.child;x;){if(x===n){v=!0,n=u,s=c;break}if(x===s){v=!0,s=u,n=c;break}x=x.sibling}if(!v)throw Error(r(189))}}if(n.alternate!==s)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),B=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case R:return"Profiler";case E:return"StrictMode";case K:return"Suspense";case V:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case B:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var ae=Array.isArray,P=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},de=[],ge=-1;function T(e){return{current:e}}function Y(e){0>ge||(e.current=de[ge],de[ge]=null,ge--)}function Z(e,t){ge++,de[ge]=e.current,e.current=t}var J=T(null),be=T(null),ve=T(null),Le=T(null);function Tt(e,t){switch(Z(ve,t),Z(be,e),Z(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?j2(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=j2(t),e=w2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(J),Z(J,e)}function at(){Y(J),Y(be),Y(ve)}function Aa(e){e.memoizedState!==null&&Z(Le,e);var t=J.current,n=w2(t,e.type);t!==n&&(Z(be,e),Z(J,n))}function ns(e){be.current===e&&(Y(J),Y(be)),Le.current===e&&(Y(Le),Do._currentValue=se)}var Ys,Gs;function zn(e){if(Ys===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ys=t&&t[1]||"",Gs=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ys+e+Gs}var Sa=!1;function ja(e,t){if(!e||Sa)return"";Sa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(H){var z=H}Reflect.construct(e,[],G)}else{try{G.call()}catch(H){z=H}e.call(G.prototype)}}else{try{throw Error()}catch(H){z=H}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(H){if(H&&z&&typeof H.stack=="string")return[H.stack,z.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),v=u[0],x=u[1];if(v&&x){var N=v.split(`
`),D=x.split(`
`);for(c=s=0;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;for(;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;if(s===N.length||c===D.length)for(s=N.length-1,c=D.length-1;1<=s&&0<=c&&N[s]!==D[c];)c--;for(;1<=s&&0<=c;s--,c--)if(N[s]!==D[c]){if(s!==1||c!==1)do if(s--,c--,0>c||N[s]!==D[c]){var Q=`
`+N[s].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=s&&0<=c);break}}}finally{Sa=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?zn(n):""}function Is(e,t){switch(e.tag){case 26:case 27:case 5:return zn(e.type);case 16:return zn("Lazy");case 13:return e.child!==t&&t!==null?zn("Suspense Fallback"):zn("Suspense");case 19:return zn("SuspenseList");case 0:case 15:return ja(e.type,!1);case 11:return ja(e.type.render,!1);case 1:return ja(e.type,!0);case 31:return zn("Activity");default:return""}}function as(e){try{var t="",n=null;do t+=Is(e,n),n=e,e=e.return;while(e);return t}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}var wa=Object.prototype.hasOwnProperty,Ue=a.unstable_scheduleCallback,Jt=a.unstable_cancelCallback,$e=a.unstable_shouldYield,Jn=a.unstable_requestPaint,yt=a.unstable_now,gr=a.unstable_getCurrentPriorityLevel,nm=a.unstable_ImmediatePriority,am=a.unstable_UserBlockingPriority,vr=a.unstable_NormalPriority,wy=a.unstable_LowPriority,sm=a.unstable_IdlePriority,Ey=a.log,Ny=a.unstable_setDisableYieldValue,Ki=null,bn=null;function ss(e){if(typeof Ey=="function"&&Ny(e),bn&&typeof bn.setStrictMode=="function")try{bn.setStrictMode(Ki,e)}catch{}}var xn=Math.clz32?Math.clz32:Ry,Cy=Math.log,Ty=Math.LN2;function Ry(e){return e>>>=0,e===0?32:31-(Cy(e)/Ty|0)|0}var yr=256,_r=262144,br=4194304;function Ks(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xr(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var c=0,u=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=s&134217727;return x!==0?(s=x&~u,s!==0?c=Ks(s):(v&=x,v!==0?c=Ks(v):n||(n=x&~e,n!==0&&(c=Ks(n))))):(x=s&~u,x!==0?c=Ks(x):v!==0?c=Ks(v):n||(n=s&~e,n!==0&&(c=Ks(n)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:c}function Xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ky(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 lm(){var e=br;return br<<=1,(br&62914560)===0&&(br=4194304),e}function yu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function By(e,t,n,s,c,u){var v=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 x=e.entanglements,N=e.expirationTimes,D=e.hiddenUpdates;for(n=v&~n;0<n;){var Q=31-xn(n),G=1<<Q;x[Q]=0,N[Q]=-1;var z=D[Q];if(z!==null)for(D[Q]=null,Q=0;Q<z.length;Q++){var H=z[Q];H!==null&&(H.lane&=-536870913)}n&=~G}s!==0&&im(e,s,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(v&~t))}function im(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-xn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&261930}function om(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-xn(n),c=1<<s;c&t|e[s]&t&&(e[s]|=t),n&=~c}}function rm(e,t){var n=t&-t;return n=(n&42)!==0?1:_u(n),(n&(e.suspendedLanes|t))!==0?0:n}function _u(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 bu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cm(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:X2(e.type))}function um(e,t){var n=X.p;try{return X.p=e,t()}finally{X.p=n}}var ls=Math.random().toString(36).slice(2),Pt="__reactFiber$"+ls,sn="__reactProps$"+ls,Ml="__reactContainer$"+ls,xu="__reactEvents$"+ls,Oy="__reactListeners$"+ls,Ly="__reactHandles$"+ls,dm="__reactResources$"+ls,Zi="__reactMarker$"+ls;function Au(e){delete e[Pt],delete e[sn],delete e[xu],delete e[Oy],delete e[Ly]}function Dl(e){var t=e[Pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ml]||n[Pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=B2(e);e!==null;){if(n=e[Pt])return n;e=B2(e)}return t}e=n,n=e.parentNode}return null}function zl(e){if(e=e[Pt]||e[Ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ul(e){var t=e[dm];return t||(t=e[dm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Lt(e){e[Zi]=!0}var fm=new Set,hm={};function Xs(e,t){Hl(e,t),Hl(e+"Capture",t)}function Hl(e,t){for(hm[e]=t,e=0;e<t.length;e++)fm.add(t[e])}var My=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]*$"),mm={},pm={};function Dy(e){return wa.call(pm,e)?!0:wa.call(mm,e)?!1:My.test(e)?pm[e]=!0:(mm[e]=!0,!1)}function Ar(e,t,n){if(Dy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Sr(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 Ea(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+s)}}function Un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zy(e,t,n){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,u=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(v){n=""+v,u.call(this,v)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(v){n=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Su(e){if(!e._valueTracker){var t=gm(e)?"checked":"value";e._valueTracker=zy(e,t,""+e[t])}}function vm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=gm(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function jr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Uy=/[\n"\\]/g;function Hn(e){return e.replace(Uy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ju(e,t,n,s,c,u,v,x){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Un(t)):e.value!==""+Un(t)&&(e.value=""+Un(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?wu(e,v,Un(t)):n!=null?wu(e,v,Un(n)):s!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Un(x):e.removeAttribute("name")}function ym(e,t,n,s,c,u,v,x){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Su(e);return}n=n!=null?""+Un(n):"",t=t!=null?""+Un(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=x?e.checked:!!s,e.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),Su(e)}function wu(e,t,n){t==="number"&&jr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ql(e,t,n,s){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Un(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function _m(e,t,n){if(t!=null&&(t=""+Un(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Un(n):""}function bm(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(r(92));if(ae(s)){if(1<s.length)throw Error(r(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=Un(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s),Su(e)}function Pl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hy=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 xm(e,t,n){var s=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||Hy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Am(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var c in t)s=t[c],t.hasOwnProperty(c)&&n[c]!==s&&xm(e,c,s)}else for(var u in t)t.hasOwnProperty(u)&&xm(e,u,t[u])}function Eu(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 qy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Py=/^[\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 wr(e){return Py.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Na(){}var Nu=null;function Cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ql=null,Fl=null;function Sm(e){var t=zl(e);if(t&&(e=t.stateNode)){var n=e[sn]||null;e:switch(e=t.stateNode,t.type){case"input":if(ju(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="'+Hn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var c=s[sn]||null;if(!c)throw Error(r(90));ju(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&vm(s)}break e;case"textarea":_m(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ql(e,!!n.multiple,t,!1)}}}var Tu=!1;function jm(e,t,n){if(Tu)return e(t,n);Tu=!0;try{var s=e(t);return s}finally{if(Tu=!1,(Ql!==null||Fl!==null)&&(fc(),Ql&&(t=Ql,e=Fl,Fl=Ql=null,Sm(t),e)))for(t=0;t<e.length;t++)Sm(e[t])}}function Ji(e,t){var n=e.stateNode;if(n===null)return null;var s=n[sn]||null;if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ru=!1;if(Ca)try{var $i={};Object.defineProperty($i,"passive",{get:function(){Ru=!0}}),window.addEventListener("test",$i,$i),window.removeEventListener("test",$i,$i)}catch{Ru=!1}var is=null,ku=null,Er=null;function wm(){if(Er)return Er;var e,t=ku,n=t.length,s,c="value"in is?is.value:is.textContent,u=c.length;for(e=0;e<n&&t[e]===c[e];e++);var v=n-e;for(s=1;s<=v&&t[n-s]===c[u-s];s++);return Er=c.slice(e,1<s?1-s:void 0)}function Nr(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 Cr(){return!0}function Em(){return!1}function ln(e){function t(n,s,c,u,v){this._reactName=n,this._targetInst=c,this.type=s,this.nativeEvent=u,this.target=v,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(u):u[x]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Cr:Em,this.isPropagationStopped=Em,this}return _(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=Cr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Cr)},persist:function(){},isPersistent:Cr}),t}var Vs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tr=ln(Vs),eo=_({},Vs,{view:0,detail:0}),Qy=ln(eo),Bu,Ou,to,Rr=_({},eo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mu,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!==to&&(to&&e.type==="mousemove"?(Bu=e.screenX-to.screenX,Ou=e.screenY-to.screenY):Ou=Bu=0,to=e),Bu)},movementY:function(e){return"movementY"in e?e.movementY:Ou}}),Nm=ln(Rr),Fy=_({},Rr,{dataTransfer:0}),Yy=ln(Fy),Gy=_({},eo,{relatedTarget:0}),Lu=ln(Gy),Iy=_({},Vs,{animationName:0,elapsedTime:0,pseudoElement:0}),Ky=ln(Iy),Xy=_({},Vs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vy=ln(Xy),Zy=_({},Vs,{data:0}),Cm=ln(Zy),Wy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jy={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"},$y={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$y[e])?!!t[e]:!1}function Mu(){return e_}var t_=_({},eo,{key:function(e){if(e.key){var t=Wy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mu,charCode:function(e){return e.type==="keypress"?Nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),n_=ln(t_),a_=_({},Rr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tm=ln(a_),s_=_({},eo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mu}),l_=ln(s_),i_=_({},Vs,{propertyName:0,elapsedTime:0,pseudoElement:0}),o_=ln(i_),r_=_({},Rr,{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}),c_=ln(r_),u_=_({},Vs,{newState:0,oldState:0}),d_=ln(u_),f_=[9,13,27,32],Du=Ca&&"CompositionEvent"in window,no=null;Ca&&"documentMode"in document&&(no=document.documentMode);var h_=Ca&&"TextEvent"in window&&!no,Rm=Ca&&(!Du||no&&8<no&&11>=no),km=" ",Bm=!1;function Om(e,t){switch(e){case"keyup":return f_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function m_(e,t){switch(e){case"compositionend":return Lm(t);case"keypress":return t.which!==32?null:(Bm=!0,km);case"textInput":return e=t.data,e===km&&Bm?null:e;default:return null}}function p_(e,t){if(Yl)return e==="compositionend"||!Du&&Om(e,t)?(e=wm(),Er=ku=is=null,Yl=!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 Rm&&t.locale!=="ko"?null:t.data;default:return null}}var g_={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 Mm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!g_[e.type]:t==="textarea"}function Dm(e,t,n,s){Ql?Fl?Fl.push(s):Fl=[s]:Ql=s,t=_c(t,"onChange"),0<t.length&&(n=new Tr("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ao=null,so=null;function v_(e){y2(e,0)}function kr(e){var t=Wi(e);if(vm(t))return e}function zm(e,t){if(e==="change")return t}var Um=!1;if(Ca){var zu;if(Ca){var Uu="oninput"in document;if(!Uu){var Hm=document.createElement("div");Hm.setAttribute("oninput","return;"),Uu=typeof Hm.oninput=="function"}zu=Uu}else zu=!1;Um=zu&&(!document.documentMode||9<document.documentMode)}function qm(){ao&&(ao.detachEvent("onpropertychange",Pm),so=ao=null)}function Pm(e){if(e.propertyName==="value"&&kr(so)){var t=[];Dm(t,so,e,Cu(e)),jm(v_,t)}}function y_(e,t,n){e==="focusin"?(qm(),ao=t,so=n,ao.attachEvent("onpropertychange",Pm)):e==="focusout"&&qm()}function __(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kr(so)}function b_(e,t){if(e==="click")return kr(t)}function x_(e,t){if(e==="input"||e==="change")return kr(t)}function A_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var An=typeof Object.is=="function"?Object.is:A_;function lo(e,t){if(An(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var c=n[s];if(!wa.call(t,c)||!An(e[c],t[c]))return!1}return!0}function Qm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fm(e,t){var n=Qm(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qm(n)}}function Ym(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ym(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=jr(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=jr(e.document)}return t}function Hu(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 S_=Ca&&"documentMode"in document&&11>=document.documentMode,Gl=null,qu=null,io=null,Pu=!1;function Im(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pu||Gl==null||Gl!==jr(s)||(s=Gl,"selectionStart"in s&&Hu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),io&&lo(io,s)||(io=s,s=_c(qu,"onSelect"),0<s.length&&(t=new Tr("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Gl)))}function Zs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Il={animationend:Zs("Animation","AnimationEnd"),animationiteration:Zs("Animation","AnimationIteration"),animationstart:Zs("Animation","AnimationStart"),transitionrun:Zs("Transition","TransitionRun"),transitionstart:Zs("Transition","TransitionStart"),transitioncancel:Zs("Transition","TransitionCancel"),transitionend:Zs("Transition","TransitionEnd")},Qu={},Km={};Ca&&(Km=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 Ws(e){if(Qu[e])return Qu[e];if(!Il[e])return e;var t=Il[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Km)return Qu[e]=t[n];return e}var Xm=Ws("animationend"),Vm=Ws("animationiteration"),Zm=Ws("animationstart"),j_=Ws("transitionrun"),w_=Ws("transitionstart"),E_=Ws("transitioncancel"),Wm=Ws("transitionend"),Jm=new Map,Fu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Fu.push("scrollEnd");function $n(e,t){Jm.set(e,t),Xs(t,[e])}var Br=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)},qn=[],Kl=0,Yu=0;function Or(){for(var e=Kl,t=Yu=Kl=0;t<e;){var n=qn[t];qn[t++]=null;var s=qn[t];qn[t++]=null;var c=qn[t];qn[t++]=null;var u=qn[t];if(qn[t++]=null,s!==null&&c!==null){var v=s.pending;v===null?c.next=c:(c.next=v.next,v.next=c),s.pending=c}u!==0&&$m(n,c,u)}}function Lr(e,t,n,s){qn[Kl++]=e,qn[Kl++]=t,qn[Kl++]=n,qn[Kl++]=s,Yu|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Gu(e,t,n,s){return Lr(e,t,n,s),Mr(e)}function Js(e,t){return Lr(e,null,null,t),Mr(e)}function $m(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var c=!1,u=e.return;u!==null;)u.childLanes|=n,s=u.alternate,s!==null&&(s.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(c=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,c&&t!==null&&(c=31-xn(n),e=u.hiddenUpdates,s=e[c],s===null?e[c]=[t]:s.push(t),t.lane=n|536870912),u):null}function Mr(e){if(50<To)throw To=0,ef=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Xl={};function N_(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(e,t,n,s){return new N_(e,t,n,s)}function Iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ta(e,t){var n=e.alternate;return n===null?(n=Sn(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&65011712,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 e0(e,t){e.flags&=65011714;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 Dr(e,t,n,s,c,u){var v=0;if(s=e,typeof e=="function")Iu(e)&&(v=1);else if(typeof e=="string")v=Bb(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $:return e=Sn(31,n,t,c),e.elementType=$,e.lanes=u,e;case w:return $s(n.children,c,u,t);case E:v=8,c|=24;break;case R:return e=Sn(12,n,t,c|2),e.elementType=R,e.lanes=u,e;case K:return e=Sn(13,n,t,c),e.elementType=K,e.lanes=u,e;case V:return e=Sn(19,n,t,c),e.elementType=V,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:v=10;break e;case L:v=9;break e;case q:v=11;break e;case U:v=14;break e;case I:v=16,s=null;break e}v=29,n=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=Sn(v,n,t,c),t.elementType=e,t.type=s,t.lanes=u,t}function $s(e,t,n,s){return e=Sn(7,e,s,t),e.lanes=n,e}function Ku(e,t,n){return e=Sn(6,e,null,t),e.lanes=n,e}function t0(e){var t=Sn(18,null,null,0);return t.stateNode=e,t}function Xu(e,t,n){return t=Sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var n0=new WeakMap;function Pn(e,t){if(typeof e=="object"&&e!==null){var n=n0.get(e);return n!==void 0?n:(t={value:e,source:t,stack:as(t)},n0.set(e,t),t)}return{value:e,source:t,stack:as(t)}}var Vl=[],Zl=0,zr=null,oo=0,Qn=[],Fn=0,os=null,da=1,fa="";function Ra(e,t){Vl[Zl++]=oo,Vl[Zl++]=zr,zr=e,oo=t}function a0(e,t,n){Qn[Fn++]=da,Qn[Fn++]=fa,Qn[Fn++]=os,os=e;var s=da;e=fa;var c=32-xn(s)-1;s&=~(1<<c),n+=1;var u=32-xn(t)+c;if(30<u){var v=c-c%5;u=(s&(1<<v)-1).toString(32),s>>=v,c-=v,da=1<<32-xn(t)+c|n<<c|s,fa=u+e}else da=1<<u|n<<c|s,fa=e}function Vu(e){e.return!==null&&(Ra(e,1),a0(e,1,0))}function Zu(e){for(;e===zr;)zr=Vl[--Zl],Vl[Zl]=null,oo=Vl[--Zl],Vl[Zl]=null;for(;e===os;)os=Qn[--Fn],Qn[Fn]=null,fa=Qn[--Fn],Qn[Fn]=null,da=Qn[--Fn],Qn[Fn]=null}function s0(e,t){Qn[Fn++]=da,Qn[Fn++]=fa,Qn[Fn++]=os,da=t.id,fa=t.overflow,os=e}var Qt=null,st=null,Me=!1,rs=null,Yn=!1,Wu=Error(r(519));function cs(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ro(Pn(t,e)),Wu}function l0(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[Pt]=e,t[sn]=s,n){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(n=0;n<ko.length;n++)Te(ko[n],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),ym(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),bm(t,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||A2(t.textContent,n)?(s.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),s.onScroll!=null&&Te("scroll",t),s.onScrollEnd!=null&&Te("scrollend",t),s.onClick!=null&&(t.onclick=Na),t=!0):t=!1,t||cs(e,!0)}function i0(e){for(Qt=e.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Qt=Qt.return}}function Wl(e){if(e!==Qt)return!1;if(!Me)return i0(e),Me=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||gf(e.type,e.memoizedProps)),n=!n),n&&st&&cs(e),i0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));st=k2(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));st=k2(e)}else t===27?(t=st,Ss(e.type)?(e=xf,xf=null,st=e):st=t):st=Qt?In(e.stateNode.nextSibling):null;return!0}function el(){st=Qt=null,Me=!1}function Ju(){var e=rs;return e!==null&&(un===null?un=e:un.push.apply(un,e),rs=null),e}function ro(e){rs===null?rs=[e]:rs.push(e)}var $u=T(null),tl=null,ka=null;function us(e,t,n){Z($u,t._currentValue),t._currentValue=n}function Ba(e){e._currentValue=$u.current,Y($u)}function ed(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function td(e,t,n,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var u=c.dependencies;if(u!==null){var v=c.child;u=u.firstContext;e:for(;u!==null;){var x=u;u=c;for(var N=0;N<t.length;N++)if(x.context===t[N]){u.lanes|=n,x=u.alternate,x!==null&&(x.lanes|=n),ed(u.return,n,e),s||(v=null);break e}u=x.next}}else if(c.tag===18){if(v=c.return,v===null)throw Error(r(341));v.lanes|=n,u=v.alternate,u!==null&&(u.lanes|=n),ed(v,n,e),v=null}else v=c.child;if(v!==null)v.return=c;else for(v=c;v!==null;){if(v===e){v=null;break}if(c=v.sibling,c!==null){c.return=v.return,v=c;break}v=v.return}c=v}}function Jl(e,t,n,s){e=null;for(var c=t,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var v=c.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var x=c.type;An(c.pendingProps.value,v.value)||(e!==null?e.push(x):e=[x])}}else if(c===Le.current){if(v=c.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Do):e=[Do])}c=c.return}e!==null&&td(t,e,n,s),t.flags|=262144}function Ur(e){for(e=e.firstContext;e!==null;){if(!An(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function nl(e){tl=e,ka=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return o0(tl,e)}function Hr(e,t){return tl===null&&nl(e),o0(e,t)}function o0(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ka===null){if(e===null)throw Error(r(308));ka=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ka=ka.next=t;return n}var C_=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},T_=a.unstable_scheduleCallback,R_=a.unstable_NormalPriority,St={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nd(){return{controller:new C_,data:new Map,refCount:0}}function co(e){e.refCount--,e.refCount===0&&T_(R_,function(){e.controller.abort()})}var uo=null,ad=0,$l=0,ei=null;function k_(e,t){if(uo===null){var n=uo=[];ad=0,$l=of(),ei={status:"pending",value:void 0,then:function(s){n.push(s)}}}return ad++,t.then(r0,r0),t}function r0(){if(--ad===0&&uo!==null){ei!==null&&(ei.status="fulfilled");var e=uo;uo=null,$l=0,ei=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function B_(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(s.status="rejected",s.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),s}var c0=P.S;P.S=function(e,t){Ip=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&k_(e,t),c0!==null&&c0(e,t)};var al=T(null);function sd(){var e=al.current;return e!==null?e:Je.pooledCache}function qr(e,t){t===null?Z(al,al.current):Z(al,t.pool)}function u0(){var e=sd();return e===null?null:{parent:St._currentValue,pool:e}}var ti=Error(r(460)),ld=Error(r(474)),Pr=Error(r(542)),Qr={then:function(){}};function d0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function f0(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Na,Na),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,m0(e),e;default:if(typeof t.status=="string")t.then(Na,Na);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=s}},function(s){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,m0(e),e}throw ll=t,ti}}function sl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ll=n,ti):n}}var ll=null;function h0(){if(ll===null)throw Error(r(459));var e=ll;return ll=null,e}function m0(e){if(e===ti||e===Pr)throw Error(r(483))}var ni=null,fo=0;function Fr(e){var t=fo;return fo+=1,ni===null&&(ni=[]),f0(ni,e,t)}function ho(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yr(e,t){throw t.$$typeof===b?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function p0(e){function t(O,k){if(e){var M=O.deletions;M===null?(O.deletions=[k],O.flags|=16):M.push(k)}}function n(O,k){if(!e)return null;for(;k!==null;)t(O,k),k=k.sibling;return null}function s(O){for(var k=new Map;O!==null;)O.key!==null?k.set(O.key,O):k.set(O.index,O),O=O.sibling;return k}function c(O,k){return O=Ta(O,k),O.index=0,O.sibling=null,O}function u(O,k,M){return O.index=M,e?(M=O.alternate,M!==null?(M=M.index,M<k?(O.flags|=67108866,k):M):(O.flags|=67108866,k)):(O.flags|=1048576,k)}function v(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function x(O,k,M,F){return k===null||k.tag!==6?(k=Ku(M,O.mode,F),k.return=O,k):(k=c(k,M),k.return=O,k)}function N(O,k,M,F){var oe=M.type;return oe===w?Q(O,k,M.props.children,F,M.key):k!==null&&(k.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===I&&sl(oe)===k.type)?(k=c(k,M.props),ho(k,M),k.return=O,k):(k=Dr(M.type,M.key,M.props,null,O.mode,F),ho(k,M),k.return=O,k)}function D(O,k,M,F){return k===null||k.tag!==4||k.stateNode.containerInfo!==M.containerInfo||k.stateNode.implementation!==M.implementation?(k=Xu(M,O.mode,F),k.return=O,k):(k=c(k,M.children||[]),k.return=O,k)}function Q(O,k,M,F,oe){return k===null||k.tag!==7?(k=$s(M,O.mode,F,oe),k.return=O,k):(k=c(k,M),k.return=O,k)}function G(O,k,M){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Ku(""+k,O.mode,M),k.return=O,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case S:return M=Dr(k.type,k.key,k.props,null,O.mode,M),ho(M,k),M.return=O,M;case j:return k=Xu(k,O.mode,M),k.return=O,k;case I:return k=sl(k),G(O,k,M)}if(ae(k)||ce(k))return k=$s(k,O.mode,M,null),k.return=O,k;if(typeof k.then=="function")return G(O,Fr(k),M);if(k.$$typeof===B)return G(O,Hr(O,k),M);Yr(O,k)}return null}function z(O,k,M,F){var oe=k!==null?k.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return oe!==null?null:x(O,k,""+M,F);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return M.key===oe?N(O,k,M,F):null;case j:return M.key===oe?D(O,k,M,F):null;case I:return M=sl(M),z(O,k,M,F)}if(ae(M)||ce(M))return oe!==null?null:Q(O,k,M,F,null);if(typeof M.then=="function")return z(O,k,Fr(M),F);if(M.$$typeof===B)return z(O,k,Hr(O,M),F);Yr(O,M)}return null}function H(O,k,M,F,oe){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return O=O.get(M)||null,x(k,O,""+F,oe);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case S:return O=O.get(F.key===null?M:F.key)||null,N(k,O,F,oe);case j:return O=O.get(F.key===null?M:F.key)||null,D(k,O,F,oe);case I:return F=sl(F),H(O,k,M,F,oe)}if(ae(F)||ce(F))return O=O.get(M)||null,Q(k,O,F,oe,null);if(typeof F.then=="function")return H(O,k,M,Fr(F),oe);if(F.$$typeof===B)return H(O,k,M,Hr(k,F),oe);Yr(k,F)}return null}function te(O,k,M,F){for(var oe=null,qe=null,le=k,je=k=0,Oe=null;le!==null&&je<M.length;je++){le.index>je?(Oe=le,le=null):Oe=le.sibling;var Pe=z(O,le,M[je],F);if(Pe===null){le===null&&(le=Oe);break}e&&le&&Pe.alternate===null&&t(O,le),k=u(Pe,k,je),qe===null?oe=Pe:qe.sibling=Pe,qe=Pe,le=Oe}if(je===M.length)return n(O,le),Me&&Ra(O,je),oe;if(le===null){for(;je<M.length;je++)le=G(O,M[je],F),le!==null&&(k=u(le,k,je),qe===null?oe=le:qe.sibling=le,qe=le);return Me&&Ra(O,je),oe}for(le=s(le);je<M.length;je++)Oe=H(le,O,je,M[je],F),Oe!==null&&(e&&Oe.alternate!==null&&le.delete(Oe.key===null?je:Oe.key),k=u(Oe,k,je),qe===null?oe=Oe:qe.sibling=Oe,qe=Oe);return e&&le.forEach(function(Cs){return t(O,Cs)}),Me&&Ra(O,je),oe}function me(O,k,M,F){if(M==null)throw Error(r(151));for(var oe=null,qe=null,le=k,je=k=0,Oe=null,Pe=M.next();le!==null&&!Pe.done;je++,Pe=M.next()){le.index>je?(Oe=le,le=null):Oe=le.sibling;var Cs=z(O,le,Pe.value,F);if(Cs===null){le===null&&(le=Oe);break}e&&le&&Cs.alternate===null&&t(O,le),k=u(Cs,k,je),qe===null?oe=Cs:qe.sibling=Cs,qe=Cs,le=Oe}if(Pe.done)return n(O,le),Me&&Ra(O,je),oe;if(le===null){for(;!Pe.done;je++,Pe=M.next())Pe=G(O,Pe.value,F),Pe!==null&&(k=u(Pe,k,je),qe===null?oe=Pe:qe.sibling=Pe,qe=Pe);return Me&&Ra(O,je),oe}for(le=s(le);!Pe.done;je++,Pe=M.next())Pe=H(le,O,je,Pe.value,F),Pe!==null&&(e&&Pe.alternate!==null&&le.delete(Pe.key===null?je:Pe.key),k=u(Pe,k,je),qe===null?oe=Pe:qe.sibling=Pe,qe=Pe);return e&&le.forEach(function(Fb){return t(O,Fb)}),Me&&Ra(O,je),oe}function We(O,k,M,F){if(typeof M=="object"&&M!==null&&M.type===w&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case S:e:{for(var oe=M.key;k!==null;){if(k.key===oe){if(oe=M.type,oe===w){if(k.tag===7){n(O,k.sibling),F=c(k,M.props.children),F.return=O,O=F;break e}}else if(k.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===I&&sl(oe)===k.type){n(O,k.sibling),F=c(k,M.props),ho(F,M),F.return=O,O=F;break e}n(O,k);break}else t(O,k);k=k.sibling}M.type===w?(F=$s(M.props.children,O.mode,F,M.key),F.return=O,O=F):(F=Dr(M.type,M.key,M.props,null,O.mode,F),ho(F,M),F.return=O,O=F)}return v(O);case j:e:{for(oe=M.key;k!==null;){if(k.key===oe)if(k.tag===4&&k.stateNode.containerInfo===M.containerInfo&&k.stateNode.implementation===M.implementation){n(O,k.sibling),F=c(k,M.children||[]),F.return=O,O=F;break e}else{n(O,k);break}else t(O,k);k=k.sibling}F=Xu(M,O.mode,F),F.return=O,O=F}return v(O);case I:return M=sl(M),We(O,k,M,F)}if(ae(M))return te(O,k,M,F);if(ce(M)){if(oe=ce(M),typeof oe!="function")throw Error(r(150));return M=oe.call(M),me(O,k,M,F)}if(typeof M.then=="function")return We(O,k,Fr(M),F);if(M.$$typeof===B)return We(O,k,Hr(O,M),F);Yr(O,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,k!==null&&k.tag===6?(n(O,k.sibling),F=c(k,M),F.return=O,O=F):(n(O,k),F=Ku(M,O.mode,F),F.return=O,O=F),v(O)):n(O,k)}return function(O,k,M,F){try{fo=0;var oe=We(O,k,M,F);return ni=null,oe}catch(le){if(le===ti||le===Pr)throw le;var qe=Sn(29,le,null,O.mode);return qe.lanes=F,qe.return=O,qe}finally{}}}var il=p0(!0),g0=p0(!1),ds=!1;function id(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function od(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 fs(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function hs(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ye&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,t=Mr(e),$m(e,null,n),t}return Lr(e,s,t,n),Mr(e)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,om(e,n)}}function rd(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var c=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var v={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?c=u=v:u=u.next=v,n=n.next}while(n!==null);u===null?c=u=t:u=u.next=t}else c=u=t;n={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var cd=!1;function po(){if(cd){var e=ei;if(e!==null)throw e}}function go(e,t,n,s){cd=!1;var c=e.updateQueue;ds=!1;var u=c.firstBaseUpdate,v=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var N=x,D=N.next;N.next=null,v===null?u=D:v.next=D,v=N;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,x=Q.lastBaseUpdate,x!==v&&(x===null?Q.firstBaseUpdate=D:x.next=D,Q.lastBaseUpdate=N))}if(u!==null){var G=c.baseState;v=0,Q=D=N=null,x=u;do{var z=x.lane&-536870913,H=z!==x.lane;if(H?(Be&z)===z:(s&z)===z){z!==0&&z===$l&&(cd=!0),Q!==null&&(Q=Q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var te=e,me=x;z=t;var We=n;switch(me.tag){case 1:if(te=me.payload,typeof te=="function"){G=te.call(We,G,z);break e}G=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=me.payload,z=typeof te=="function"?te.call(We,G,z):te,z==null)break e;G=_({},G,z);break e;case 2:ds=!0}}z=x.callback,z!==null&&(e.flags|=64,H&&(e.flags|=8192),H=c.callbacks,H===null?c.callbacks=[z]:H.push(z))}else H={lane:z,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Q===null?(D=Q=H,N=G):Q=Q.next=H,v|=z;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;H=x,x=H.next,H.next=null,c.lastBaseUpdate=H,c.shared.pending=null}}while(!0);Q===null&&(N=G),c.baseState=N,c.firstBaseUpdate=D,c.lastBaseUpdate=Q,u===null&&(c.shared.lanes=0),ys|=v,e.lanes=v,e.memoizedState=G}}function v0(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function y0(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)v0(n[e],t)}var ai=T(null),Gr=T(0);function _0(e,t){e=Pa,Z(Gr,e),Z(ai,t),Pa=e|t.baseLanes}function ud(){Z(Gr,Pa),Z(ai,ai.current)}function dd(){Pa=Gr.current,Y(ai),Y(Gr)}var jn=T(null),Gn=null;function ms(e){var t=e.alternate;Z(_t,_t.current&1),Z(jn,e),Gn===null&&(t===null||ai.current!==null||t.memoizedState!==null)&&(Gn=e)}function fd(e){Z(_t,_t.current),Z(jn,e),Gn===null&&(Gn=e)}function b0(e){e.tag===22?(Z(_t,_t.current),Z(jn,e),Gn===null&&(Gn=e)):ps()}function ps(){Z(_t,_t.current),Z(jn,jn.current)}function wn(e){Y(jn),Gn===e&&(Gn=null),Y(_t)}var _t=T(0);function Ir(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_f(n)||bf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Oa=0,Se=null,Ve=null,jt=null,Kr=!1,si=!1,ol=!1,Xr=0,vo=0,li=null,O_=0;function ft(){throw Error(r(321))}function hd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!An(e[n],t[n]))return!1;return!0}function md(e,t,n,s,c,u){return Oa=u,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?ap:Td,ol=!1,u=n(s,c),ol=!1,si&&(u=A0(t,n,s,c)),x0(e),u}function x0(e){P.H=bo;var t=Ve!==null&&Ve.next!==null;if(Oa=0,jt=Ve=Se=null,Kr=!1,vo=0,li=null,t)throw Error(r(300));e===null||wt||(e=e.dependencies,e!==null&&Ur(e)&&(wt=!0))}function A0(e,t,n,s){Se=e;var c=0;do{if(si&&(li=null),vo=0,si=!1,25<=c)throw Error(r(301));if(c+=1,jt=Ve=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}P.H=sp,u=t(n,s)}while(si);return u}function L_(){var e=P.H,t=e.useState()[0];return t=typeof t.then=="function"?yo(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(Se.flags|=1024),t}function pd(){var e=Xr!==0;return Xr=0,e}function gd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vd(e){if(Kr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kr=!1}Oa=0,jt=Ve=Se=null,si=!1,vo=Xr=0,li=null}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Se.memoizedState=jt=e:jt=jt.next=e,jt}function bt(){if(Ve===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=jt===null?Se.memoizedState:jt.next;if(t!==null)jt=t,Ve=e;else{if(e===null)throw Se.alternate===null?Error(r(467)):Error(r(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},jt===null?Se.memoizedState=jt=e:jt=jt.next=e}return jt}function Vr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yo(e){var t=vo;return vo+=1,li===null&&(li=[]),e=f0(li,e,t),t=Se,(jt===null?t.memoizedState:jt.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?ap:Td),e}function Zr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yo(e);if(e.$$typeof===B)return Ft(e)}throw Error(r(438,String(e)))}function yd(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=Se.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Vr(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=ue;return t.index++,n}function La(e,t){return typeof t=="function"?t(e):t}function Wr(e){var t=bt();return _d(t,Ve,e)}function _d(e,t,n){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=e.baseQueue,u=s.pending;if(u!==null){if(c!==null){var v=c.next;c.next=u.next,u.next=v}t.baseQueue=c=u,s.pending=null}if(u=e.baseState,c===null)e.memoizedState=u;else{t=c.next;var x=v=null,N=null,D=t,Q=!1;do{var G=D.lane&-536870913;if(G!==D.lane?(Be&G)===G:(Oa&G)===G){var z=D.revertLane;if(z===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),G===$l&&(Q=!0);else if((Oa&z)===z){D=D.next,z===$l&&(Q=!0);continue}else G={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},N===null?(x=N=G,v=u):N=N.next=G,Se.lanes|=z,ys|=z;G=D.action,ol&&n(u,G),u=D.hasEagerState?D.eagerState:n(u,G)}else z={lane:G,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},N===null?(x=N=z,v=u):N=N.next=z,Se.lanes|=G,ys|=G;D=D.next}while(D!==null&&D!==t);if(N===null?v=u:N.next=x,!An(u,e.memoizedState)&&(wt=!0,Q&&(n=ei,n!==null)))throw n;e.memoizedState=u,e.baseState=v,e.baseQueue=N,s.lastRenderedState=u}return c===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function bd(e){var t=bt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var s=n.dispatch,c=n.pending,u=t.memoizedState;if(c!==null){n.pending=null;var v=c=c.next;do u=e(u,v.action),v=v.next;while(v!==c);An(u,t.memoizedState)||(wt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function S0(e,t,n){var s=Se,c=bt(),u=Me;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var v=!An((Ve||c).memoizedState,n);if(v&&(c.memoizedState=n,wt=!0),c=c.queue,Sd(E0.bind(null,s,c,e),[e]),c.getSnapshot!==t||v||jt!==null&&jt.memoizedState.tag&1){if(s.flags|=2048,ii(9,{destroy:void 0},w0.bind(null,s,c,n,t),null),Je===null)throw Error(r(349));u||(Oa&127)!==0||j0(s,t,n)}return n}function j0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=Vr(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function w0(e,t,n,s){t.value=n,t.getSnapshot=s,N0(t)&&C0(e)}function E0(e,t,n){return n(function(){N0(t)&&C0(e)})}function N0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!An(e,n)}catch{return!0}}function C0(e){var t=Js(e,2);t!==null&&dn(t,e,2)}function xd(e){var t=$t();if(typeof e=="function"){var n=e;if(e=n(),ol){ss(!0);try{n()}finally{ss(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:e},t}function T0(e,t,n,s){return e.baseState=n,_d(e,Ve,typeof s=="function"?s:La)}function M_(e,t,n,s,c){if(ec(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){u.listeners.push(v)}};P.T!==null?n(!0):u.isTransition=!1,s(u),n=t.pending,n===null?(u.next=t.pending=u,R0(t,u)):(u.next=n.next,t.pending=n.next=u)}}function R0(e,t){var n=t.action,s=t.payload,c=e.state;if(t.isTransition){var u=P.T,v={};P.T=v;try{var x=n(c,s),N=P.S;N!==null&&N(v,x),k0(e,t,x)}catch(D){Ad(e,t,D)}finally{u!==null&&v.types!==null&&(u.types=v.types),P.T=u}}else try{u=n(c,s),k0(e,t,u)}catch(D){Ad(e,t,D)}}function k0(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){B0(e,t,s)},function(s){return Ad(e,t,s)}):B0(e,t,n)}function B0(e,t,n){t.status="fulfilled",t.value=n,O0(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,R0(e,n)))}function Ad(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,O0(t),t=t.next;while(t!==s)}e.action=null}function O0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function L0(e,t){return t}function M0(e,t){if(Me){var n=Je.formState;if(n!==null){e:{var s=Se;if(Me){if(st){t:{for(var c=st,u=Yn;c.nodeType!==8;){if(!u){c=null;break t}if(c=In(c.nextSibling),c===null){c=null;break t}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){st=In(c.nextSibling),s=c.data==="F!";break e}}cs(s)}s=!1}s&&(t=n[0])}}return n=$t(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:L0,lastRenderedState:t},n.queue=s,n=ep.bind(null,Se,s),s.dispatch=n,s=xd(!1),u=Cd.bind(null,Se,!1,s.queue),s=$t(),c={state:t,dispatch:null,action:e,pending:null},s.queue=c,n=M_.bind(null,Se,c,u,n),c.dispatch=n,s.memoizedState=e,[t,n,!1]}function D0(e){var t=bt();return z0(t,Ve,e)}function z0(e,t,n){if(t=_d(e,t,L0)[0],e=Wr(La)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=yo(t)}catch(v){throw v===ti?Pr:v}else s=t;t=bt();var c=t.queue,u=c.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,ii(9,{destroy:void 0},D_.bind(null,c,n),null)),[s,u,e]}function D_(e,t){e.action=t}function U0(e){var t=bt(),n=Ve;if(n!==null)return z0(t,n,e);bt(),t=t.memoizedState,n=bt();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function ii(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Vr(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function H0(){return bt().memoizedState}function Jr(e,t,n,s){var c=$t();Se.flags|=e,c.memoizedState=ii(1|t,{destroy:void 0},n,s===void 0?null:s)}function $r(e,t,n,s){var c=bt();s=s===void 0?null:s;var u=c.memoizedState.inst;Ve!==null&&s!==null&&hd(s,Ve.memoizedState.deps)?c.memoizedState=ii(t,u,n,s):(Se.flags|=e,c.memoizedState=ii(1|t,u,n,s))}function q0(e,t){Jr(8390656,8,e,t)}function Sd(e,t){$r(2048,8,e,t)}function z_(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Vr(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function P0(e){var t=bt().memoizedState;return z_({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Q0(e,t){return $r(4,2,e,t)}function F0(e,t){return $r(4,4,e,t)}function Y0(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 G0(e,t,n){n=n!=null?n.concat([e]):null,$r(4,4,Y0.bind(null,t,e),n)}function jd(){}function I0(e,t){var n=bt();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&hd(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function K0(e,t){var n=bt();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&hd(t,s[1]))return s[0];if(s=e(),ol){ss(!0);try{e()}finally{ss(!1)}}return n.memoizedState=[s,t],s}function wd(e,t,n){return n===void 0||(Oa&1073741824)!==0&&(Be&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Xp(),Se.lanes|=e,ys|=e,n)}function X0(e,t,n,s){return An(n,t)?n:ai.current!==null?(e=wd(e,n,s),An(e,t)||(wt=!0),e):(Oa&42)===0||(Oa&1073741824)!==0&&(Be&261930)===0?(wt=!0,e.memoizedState=n):(e=Xp(),Se.lanes|=e,ys|=e,t)}function V0(e,t,n,s,c){var u=X.p;X.p=u!==0&&8>u?u:8;var v=P.T,x={};P.T=x,Cd(e,!1,t,n);try{var N=c(),D=P.S;if(D!==null&&D(x,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Q=B_(N,s);_o(e,t,Q,Cn(e))}else _o(e,t,s,Cn(e))}catch(G){_o(e,t,{then:function(){},status:"rejected",reason:G},Cn())}finally{X.p=u,v!==null&&x.types!==null&&(v.types=x.types),P.T=v}}function U_(){}function Ed(e,t,n,s){if(e.tag!==5)throw Error(r(476));var c=Z0(e).queue;V0(e,c,t,se,n===null?U_:function(){return W0(e),n(s)})}function Z0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function W0(e){var t=Z0(e);t.next===null&&(t=e.alternate.memoizedState),_o(e,t.next.queue,{},Cn())}function Nd(){return Ft(Do)}function J0(){return bt().memoizedState}function $0(){return bt().memoizedState}function H_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=fs(n);var s=hs(t,e,n);s!==null&&(dn(s,t,n),mo(s,t,n)),t={cache:nd()},e.payload=t;return}t=t.return}}function q_(e,t,n){var s=Cn();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ec(e)?tp(t,n):(n=Gu(e,t,n,s),n!==null&&(dn(n,e,s),np(n,t,s)))}function ep(e,t,n){var s=Cn();_o(e,t,n,s)}function _o(e,t,n,s){var c={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ec(e))tp(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var v=t.lastRenderedState,x=u(v,n);if(c.hasEagerState=!0,c.eagerState=x,An(x,v))return Lr(e,t,c,0),Je===null&&Or(),!1}catch{}finally{}if(n=Gu(e,t,c,s),n!==null)return dn(n,e,s),np(n,t,s),!0}return!1}function Cd(e,t,n,s){if(s={lane:2,revertLane:of(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ec(e)){if(t)throw Error(r(479))}else t=Gu(e,n,s,2),t!==null&&dn(t,e,2)}function ec(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function tp(e,t){si=Kr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function np(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,om(e,n)}}var bo={readContext:Ft,use:Zr,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft};bo.useEffectEvent=ft;var ap={readContext:Ft,use:Zr,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:q0,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Jr(4194308,4,Y0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jr(4194308,4,e,t)},useInsertionEffect:function(e,t){Jr(4,2,e,t)},useMemo:function(e,t){var n=$t();t=t===void 0?null:t;var s=e();if(ol){ss(!0);try{e()}finally{ss(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=$t();if(n!==void 0){var c=n(t);if(ol){ss(!0);try{n(t)}finally{ss(!1)}}}else c=t;return s.memoizedState=s.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},s.queue=e,e=e.dispatch=q_.bind(null,Se,e),[s.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:function(e){e=xd(e);var t=e.queue,n=ep.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:jd,useDeferredValue:function(e,t){var n=$t();return wd(n,e,t)},useTransition:function(){var e=xd(!1);return e=V0.bind(null,Se,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=Se,c=$t();if(Me){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Je===null)throw Error(r(349));(Be&127)!==0||j0(s,t,n)}c.memoizedState=n;var u={value:n,getSnapshot:t};return c.queue=u,q0(E0.bind(null,s,u,e),[e]),s.flags|=2048,ii(9,{destroy:void 0},w0.bind(null,s,u,n,t),null),n},useId:function(){var e=$t(),t=Je.identifierPrefix;if(Me){var n=fa,s=da;n=(s&~(1<<32-xn(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Xr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=O_++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Nd,useFormState:M0,useActionState:M0,useOptimistic:function(e){var t=$t();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Cd.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:yd,useCacheRefresh:function(){return $t().memoizedState=H_.bind(null,Se)},useEffectEvent:function(e){var t=$t(),n={impl:e};return t.memoizedState=n,function(){if((Ye&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Td={readContext:Ft,use:Zr,useCallback:I0,useContext:Ft,useEffect:Sd,useImperativeHandle:G0,useInsertionEffect:Q0,useLayoutEffect:F0,useMemo:K0,useReducer:Wr,useRef:H0,useState:function(){return Wr(La)},useDebugValue:jd,useDeferredValue:function(e,t){var n=bt();return X0(n,Ve.memoizedState,e,t)},useTransition:function(){var e=Wr(La)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:yo(e),t]},useSyncExternalStore:S0,useId:J0,useHostTransitionStatus:Nd,useFormState:D0,useActionState:D0,useOptimistic:function(e,t){var n=bt();return T0(n,Ve,e,t)},useMemoCache:yd,useCacheRefresh:$0};Td.useEffectEvent=P0;var sp={readContext:Ft,use:Zr,useCallback:I0,useContext:Ft,useEffect:Sd,useImperativeHandle:G0,useInsertionEffect:Q0,useLayoutEffect:F0,useMemo:K0,useReducer:bd,useRef:H0,useState:function(){return bd(La)},useDebugValue:jd,useDeferredValue:function(e,t){var n=bt();return Ve===null?wd(n,e,t):X0(n,Ve.memoizedState,e,t)},useTransition:function(){var e=bd(La)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:yo(e),t]},useSyncExternalStore:S0,useId:J0,useHostTransitionStatus:Nd,useFormState:U0,useActionState:U0,useOptimistic:function(e,t){var n=bt();return Ve!==null?T0(n,Ve,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:yd,useCacheRefresh:$0};sp.useEffectEvent=P0;function Rd(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:_({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var kd={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Cn(),c=fs(s);c.payload=t,n!=null&&(c.callback=n),t=hs(e,c,s),t!==null&&(dn(t,e,s),mo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Cn(),c=fs(s);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=hs(e,c,s),t!==null&&(dn(t,e,s),mo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),s=fs(n);s.tag=2,t!=null&&(s.callback=t),t=hs(e,s,n),t!==null&&(dn(t,e,n),mo(t,e,n))}};function lp(e,t,n,s,c,u,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,v):t.prototype&&t.prototype.isPureReactComponent?!lo(n,s)||!lo(c,u):!0}function ip(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&kd.enqueueReplaceState(t,t.state,null)}function rl(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=_({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function op(e){Br(e)}function rp(e){console.error(e)}function cp(e){Br(e)}function tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function up(e,t,n){try{var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Bd(e,t,n){return n=fs(n),n.tag=3,n.payload={element:null},n.callback=function(){tc(e,t)},n}function dp(e){return e=fs(e),e.tag=3,e}function fp(e,t,n,s){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var u=s.value;e.payload=function(){return c(u)},e.callback=function(){up(t,n,s)}}var v=n.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){up(t,n,s),typeof c!="function"&&(_s===null?_s=new Set([this]):_s.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function P_(e,t,n,s,c){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&Jl(t,n,c,!0),n=jn.current,n!==null){switch(n.tag){case 31:case 13:return Gn===null?hc():n.alternate===null&&ht===0&&(ht=3),n.flags&=-257,n.flags|=65536,n.lanes=c,s===Qr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),af(e,s,c)),!1;case 22:return n.flags|=65536,s===Qr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),af(e,s,c)),!1}throw Error(r(435,n.tag))}return af(e,s,c),hc(),!1}if(Me)return t=jn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,s!==Wu&&(e=Error(r(422),{cause:s}),ro(Pn(e,n)))):(s!==Wu&&(t=Error(r(423),{cause:s}),ro(Pn(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,s=Pn(s,n),c=Bd(e.stateNode,s,c),rd(e,c),ht!==4&&(ht=2)),!1;var u=Error(r(520),{cause:s});if(u=Pn(u,n),Co===null?Co=[u]:Co.push(u),ht!==4&&(ht=2),t===null)return!0;s=Pn(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Bd(n.stateNode,s,e),rd(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(_s===null||!_s.has(u))))return n.flags|=65536,c&=-c,n.lanes|=c,c=dp(c),fp(c,e,n,s),rd(n,c),!1}n=n.return}while(n!==null);return!1}var Od=Error(r(461)),wt=!1;function Yt(e,t,n,s){t.child=e===null?g0(t,null,n,s):il(t,e.child,n,s)}function hp(e,t,n,s,c){n=n.render;var u=t.ref;if("ref"in s){var v={};for(var x in s)x!=="ref"&&(v[x]=s[x])}else v=s;return nl(t),s=md(e,t,n,v,u,c),x=pd(),e!==null&&!wt?(gd(e,t,c),Ma(e,t,c)):(Me&&x&&Vu(t),t.flags|=1,Yt(e,t,s,c),t.child)}function mp(e,t,n,s,c){if(e===null){var u=n.type;return typeof u=="function"&&!Iu(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,pp(e,t,u,s,c)):(e=Dr(n.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Pd(e,c)){var v=u.memoizedProps;if(n=n.compare,n=n!==null?n:lo,n(v,s)&&e.ref===t.ref)return Ma(e,t,c)}return t.flags|=1,e=Ta(u,s),e.ref=t.ref,e.return=t,t.child=e}function pp(e,t,n,s,c){if(e!==null){var u=e.memoizedProps;if(lo(u,s)&&e.ref===t.ref)if(wt=!1,t.pendingProps=s=u,Pd(e,c))(e.flags&131072)!==0&&(wt=!0);else return t.lanes=e.lanes,Ma(e,t,c)}return Ld(e,t,n,s,c)}function gp(e,t,n,s){var c=s.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(s=t.child=e.child,c=0;s!==null;)c=c|s.lanes|s.childLanes,s=s.sibling;s=c&~u}else s=0,t.child=null;return vp(e,t,u,n,s)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qr(t,u!==null?u.cachePool:null),u!==null?_0(t,u):ud(),b0(t);else return s=t.lanes=536870912,vp(e,t,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(qr(t,u.cachePool),_0(t,u),ps(),t.memoizedState=null):(e!==null&&qr(t,null),ud(),ps());return Yt(e,t,c,n),t.child}function xo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function vp(e,t,n,s,c){var u=sd();return u=u===null?null:{parent:St._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&qr(t,null),ud(),b0(t),e!==null&&Jl(e,t,s,!0),t.childLanes=c,null}function nc(e,t){return t=sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yp(e,t,n){return il(t,e.child,null,n),e=nc(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function Q_(e,t,n){var s=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(s.mode==="hidden")return e=nc(t,s),t.lanes=536870912,xo(null,e);if(fd(t),(e=st)?(e=R2(e,Yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:os!==null?{id:da,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},n=t0(e),n.return=t,t.child=n,Qt=t,st=null)):e=null,e===null)throw cs(t);return t.lanes=536870912,null}return nc(t,s)}var u=e.memoizedState;if(u!==null){var v=u.dehydrated;if(fd(t),c)if(t.flags&256)t.flags&=-257,t=yp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(wt||Jl(e,t,n,!1),c=(n&e.childLanes)!==0,wt||c){if(s=Je,s!==null&&(v=rm(s,n),v!==0&&v!==u.retryLane))throw u.retryLane=v,Js(e,v),dn(s,e,v),Od;hc(),t=yp(e,t,n)}else e=u.treeContext,st=In(v.nextSibling),Qt=t,Me=!0,rs=null,Yn=!1,e!==null&&s0(t,e),t=nc(t,s),t.flags|=4096;return t}return e=Ta(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ac(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(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ld(e,t,n,s,c){return nl(t),n=md(e,t,n,s,void 0,c),s=pd(),e!==null&&!wt?(gd(e,t,c),Ma(e,t,c)):(Me&&s&&Vu(t),t.flags|=1,Yt(e,t,n,c),t.child)}function _p(e,t,n,s,c,u){return nl(t),t.updateQueue=null,n=A0(t,s,n,c),x0(e),s=pd(),e!==null&&!wt?(gd(e,t,u),Ma(e,t,u)):(Me&&s&&Vu(t),t.flags|=1,Yt(e,t,n,u),t.child)}function bp(e,t,n,s,c){if(nl(t),t.stateNode===null){var u=Xl,v=n.contextType;typeof v=="object"&&v!==null&&(u=Ft(v)),u=new n(s,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=kd,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=s,u.state=t.memoizedState,u.refs={},id(t),v=n.contextType,u.context=typeof v=="object"&&v!==null?Ft(v):Xl,u.state=t.memoizedState,v=n.getDerivedStateFromProps,typeof v=="function"&&(Rd(t,n,v,s),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(v=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),v!==u.state&&kd.enqueueReplaceState(u,u.state,null),go(t,s,u,c),po(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var x=t.memoizedProps,N=rl(n,x);u.props=N;var D=u.context,Q=n.contextType;v=Xl,typeof Q=="object"&&Q!==null&&(v=Ft(Q));var G=n.getDerivedStateFromProps;Q=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Q||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||D!==v)&&ip(t,u,s,v),ds=!1;var z=t.memoizedState;u.state=z,go(t,s,u,c),po(),D=t.memoizedState,x||z!==D||ds?(typeof G=="function"&&(Rd(t,n,G,s),D=t.memoizedState),(N=ds||lp(t,n,N,s,z,D,v))?(Q||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=D),u.props=s,u.state=D,u.context=v,s=N):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{u=t.stateNode,od(e,t),v=t.memoizedProps,Q=rl(n,v),u.props=Q,G=t.pendingProps,z=u.context,D=n.contextType,N=Xl,typeof D=="object"&&D!==null&&(N=Ft(D)),x=n.getDerivedStateFromProps,(D=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v!==G||z!==N)&&ip(t,u,s,N),ds=!1,z=t.memoizedState,u.state=z,go(t,s,u,c),po();var H=t.memoizedState;v!==G||z!==H||ds||e!==null&&e.dependencies!==null&&Ur(e.dependencies)?(typeof x=="function"&&(Rd(t,n,x,s),H=t.memoizedState),(Q=ds||lp(t,n,Q,s,z,H,N)||e!==null&&e.dependencies!==null&&Ur(e.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,H,N),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,H,N)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=H),u.props=s,u.state=H,u.context=N,s=Q):(typeof u.componentDidUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,ac(e,t),s=(t.flags&128)!==0,u||s?(u=t.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&s?(t.child=il(t,e.child,null,c),t.child=il(t,null,n,c)):Yt(e,t,n,c),t.memoizedState=u.state,e=t.child):e=Ma(e,t,c),e}function xp(e,t,n,s){return el(),t.flags|=256,Yt(e,t,n,s),t.child}var Md={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dd(e){return{baseLanes:e,cachePool:u0()}}function zd(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Nn),e}function Ap(e,t,n){var s=t.pendingProps,c=!1,u=(t.flags&128)!==0,v;if((v=u)||(v=e!==null&&e.memoizedState===null?!1:(_t.current&2)!==0),v&&(c=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(c?ms(t):ps(),(e=st)?(e=R2(e,Yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:os!==null?{id:da,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},n=t0(e),n.return=t,t.child=n,Qt=t,st=null)):e=null,e===null)throw cs(t);return bf(e)?t.lanes=32:t.lanes=536870912,null}var x=s.children;return s=s.fallback,c?(ps(),c=t.mode,x=sc({mode:"hidden",children:x},c),s=$s(s,c,n,null),x.return=t,s.return=t,x.sibling=s,t.child=x,s=t.child,s.memoizedState=Dd(n),s.childLanes=zd(e,v,n),t.memoizedState=Md,xo(null,s)):(ms(t),Ud(t,x))}var N=e.memoizedState;if(N!==null&&(x=N.dehydrated,x!==null)){if(u)t.flags&256?(ms(t),t.flags&=-257,t=Hd(e,t,n)):t.memoizedState!==null?(ps(),t.child=e.child,t.flags|=128,t=null):(ps(),x=s.fallback,c=t.mode,s=sc({mode:"visible",children:s.children},c),x=$s(x,c,n,null),x.flags|=2,s.return=t,x.return=t,s.sibling=x,t.child=s,il(t,e.child,null,n),s=t.child,s.memoizedState=Dd(n),s.childLanes=zd(e,v,n),t.memoizedState=Md,t=xo(null,s));else if(ms(t),bf(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var D=v.dgst;v=D,s=Error(r(419)),s.stack="",s.digest=v,ro({value:s,source:null,stack:null}),t=Hd(e,t,n)}else if(wt||Jl(e,t,n,!1),v=(n&e.childLanes)!==0,wt||v){if(v=Je,v!==null&&(s=rm(v,n),s!==0&&s!==N.retryLane))throw N.retryLane=s,Js(e,s),dn(v,e,s),Od;_f(x)||hc(),t=Hd(e,t,n)}else _f(x)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,st=In(x.nextSibling),Qt=t,Me=!0,rs=null,Yn=!1,e!==null&&s0(t,e),t=Ud(t,s.children),t.flags|=4096);return t}return c?(ps(),x=s.fallback,c=t.mode,N=e.child,D=N.sibling,s=Ta(N,{mode:"hidden",children:s.children}),s.subtreeFlags=N.subtreeFlags&65011712,D!==null?x=Ta(D,x):(x=$s(x,c,n,null),x.flags|=2),x.return=t,s.return=t,s.sibling=x,t.child=s,xo(null,s),s=t.child,x=e.child.memoizedState,x===null?x=Dd(n):(c=x.cachePool,c!==null?(N=St._currentValue,c=c.parent!==N?{parent:N,pool:N}:c):c=u0(),x={baseLanes:x.baseLanes|n,cachePool:c}),s.memoizedState=x,s.childLanes=zd(e,v,n),t.memoizedState=Md,xo(e.child,s)):(ms(t),n=e.child,e=n.sibling,n=Ta(n,{mode:"visible",children:s.children}),n.return=t,n.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=n,t.memoizedState=null,n)}function Ud(e,t){return t=sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function sc(e,t){return e=Sn(22,e,null,t),e.lanes=0,e}function Hd(e,t,n){return il(t,e.child,null,n),e=Ud(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sp(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),ed(e.return,t,n)}function qd(e,t,n,s,c,u){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:c,treeForkCount:u}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=n,v.tailMode=c,v.treeForkCount=u)}function jp(e,t,n){var s=t.pendingProps,c=s.revealOrder,u=s.tail;s=s.children;var v=_t.current,x=(v&2)!==0;if(x?(v=v&1|2,t.flags|=128):v&=1,Z(_t,v),Yt(e,t,s,n),s=Me?oo:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sp(e,n,t);else if(e.tag===19)Sp(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(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Ir(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),qd(t,!1,c,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ir(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}qd(t,!0,n,null,u,s);break;case"together":qd(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Ma(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ys|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Jl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Ta(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ta(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ur(e)))}function F_(e,t,n){switch(t.tag){case 3:Tt(t,t.stateNode.containerInfo),us(t,St,e.memoizedState.cache),el();break;case 27:case 5:Aa(t);break;case 4:Tt(t,t.stateNode.containerInfo);break;case 10:us(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fd(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(ms(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Ap(e,t,n):(ms(t),e=Ma(e,t,n),e!==null?e.sibling:null);ms(t);break;case 19:var c=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(Jl(e,t,n,!1),s=(n&t.childLanes)!==0),c){if(s)return jp(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Z(_t,_t.current),s)break;return null;case 22:return t.lanes=0,gp(e,t,n,t.pendingProps);case 24:us(t,St,e.memoizedState.cache)}return Ma(e,t,n)}function wp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)wt=!0;else{if(!Pd(e,n)&&(t.flags&128)===0)return wt=!1,F_(e,t,n);wt=(e.flags&131072)!==0}else wt=!1,Me&&(t.flags&1048576)!==0&&a0(t,oo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=sl(t.elementType),t.type=e,typeof e=="function")Iu(e)?(s=rl(e,s),t.tag=1,t=bp(null,t,e,s,n)):(t.tag=0,t=Ld(null,t,e,s,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=hp(null,t,e,s,n);break e}else if(c===U){t.tag=14,t=mp(null,t,e,s,n);break e}}throw t=he(e)||e,Error(r(306,t,""))}}return t;case 0:return Ld(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,c=rl(s,t.pendingProps),bp(e,t,s,c,n);case 3:e:{if(Tt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var u=t.memoizedState;c=u.element,od(e,t),go(t,s,null,n);var v=t.memoizedState;if(s=v.cache,us(t,St,s),s!==u.cache&&td(t,[St],n,!0),po(),s=v.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=xp(e,t,s,n);break e}else if(s!==c){c=Pn(Error(r(424)),t),ro(c),t=xp(e,t,s,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(st=In(e.firstChild),Qt=t,Me=!0,rs=null,Yn=!0,n=g0(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(el(),s===c){t=Ma(e,t,n);break e}Yt(e,t,s,n)}t=t.child}return t;case 26:return ac(e,t),e===null?(n=D2(t.type,null,t.pendingProps,null))?t.memoizedState=n:Me||(n=t.type,e=t.pendingProps,s=bc(ve.current).createElement(n),s[Pt]=t,s[sn]=e,Gt(s,n,e),Lt(s),t.stateNode=s):t.memoizedState=D2(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Aa(t),e===null&&Me&&(s=t.stateNode=O2(t.type,t.pendingProps,ve.current),Qt=t,Yn=!0,c=st,Ss(t.type)?(xf=c,st=In(s.firstChild)):st=c),Yt(e,t,t.pendingProps.children,n),ac(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((c=s=st)&&(s=_b(s,t.type,t.pendingProps,Yn),s!==null?(t.stateNode=s,Qt=t,st=In(s.firstChild),Yn=!1,c=!0):c=!1),c||cs(t)),Aa(t),c=t.type,u=t.pendingProps,v=e!==null?e.memoizedProps:null,s=u.children,gf(c,u)?s=null:v!==null&&gf(c,v)&&(t.flags|=32),t.memoizedState!==null&&(c=md(e,t,L_,null,null,n),Do._currentValue=c),ac(e,t),Yt(e,t,s,n),t.child;case 6:return e===null&&Me&&((e=n=st)&&(n=bb(n,t.pendingProps,Yn),n!==null?(t.stateNode=n,Qt=t,st=null,e=!0):e=!1),e||cs(t)),null;case 13:return Ap(e,t,n);case 4:return Tt(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=il(t,null,s,n):Yt(e,t,s,n),t.child;case 11:return hp(e,t,t.type,t.pendingProps,n);case 7:return Yt(e,t,t.pendingProps,n),t.child;case 8:return Yt(e,t,t.pendingProps.children,n),t.child;case 12:return Yt(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,us(t,t.type,s.value),Yt(e,t,s.children,n),t.child;case 9:return c=t.type._context,s=t.pendingProps.children,nl(t),c=Ft(c),s=s(c),t.flags|=1,Yt(e,t,s,n),t.child;case 14:return mp(e,t,t.type,t.pendingProps,n);case 15:return pp(e,t,t.type,t.pendingProps,n);case 19:return jp(e,t,n);case 31:return Q_(e,t,n);case 22:return gp(e,t,n,t.pendingProps);case 24:return nl(t),s=Ft(St),e===null?(c=sd(),c===null&&(c=Je,u=nd(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=n),c=u),t.memoizedState={parent:s,cache:c},id(t),us(t,St,c)):((e.lanes&n)!==0&&(od(e,t),go(t,null,null,n),po()),c=e.memoizedState,u=t.memoizedState,c.parent!==s?(c={parent:s,cache:s},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),us(t,St,s)):(s=u.cache,us(t,St,s),s!==c.cache&&td(t,[St],n,!0))),Yt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Da(e){e.flags|=4}function Qd(e,t,n,s,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Jp())e.flags|=8192;else throw ll=Qr,ld}else e.flags&=-16777217}function Ep(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!P2(t))if(Jp())e.flags|=8192;else throw ll=Qr,ld}function lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lm():536870912,e.lanes|=t,ui|=t)}function Ao(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Y_(e,t,n){var s=t.pendingProps;switch(Zu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Ba(St),at(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wl(t)?Da(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ju())),lt(t),null;case 26:var c=t.type,u=t.memoizedState;return e===null?(Da(t),u!==null?(lt(t),Ep(t,u)):(lt(t),Qd(t,c,null,s,n))):u?u!==e.memoizedState?(Da(t),lt(t),Ep(t,u)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Da(t),lt(t),Qd(t,c,e,s,n)),null;case 27:if(ns(t),n=ve.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Da(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return lt(t),null}e=J.current,Wl(t)?l0(t):(e=O2(c,s,n),t.stateNode=e,Da(t))}return lt(t),null;case 5:if(ns(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Da(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return lt(t),null}if(u=J.current,Wl(t))l0(t);else{var v=bc(ve.current);switch(u){case 1:u=v.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:u=v.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":u=v.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":u=v.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":u=v.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?v.createElement(c,{is:s.is}):v.createElement(c)}}u[Pt]=t,u[sn]=s;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)u.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=u;e:switch(Gt(u,c,s),c){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Da(t)}}return lt(t),Qd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Da(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=ve.current,Wl(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,c=Qt,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}e[Pt]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||A2(e.nodeValue,n)),e||cs(t,!0)}else e=bc(e).createTextNode(s),e[Pt]=t,t.stateNode=e}return lt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=Wl(t),n!==null){if(e===null){if(!s)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Pt]=t}else el(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else n=Ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return lt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Wl(t),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[Pt]=t}else el(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),c=!1}else c=Ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==c&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),lc(t,t.updateQueue),lt(t),null);case 4:return at(),e===null&&df(t.stateNode.containerInfo),lt(t),null;case 10:return Ba(t.type),lt(t),null;case 19:if(Y(_t),s=t.memoizedState,s===null)return lt(t),null;if(c=(t.flags&128)!==0,u=s.rendering,u===null)if(c)Ao(s,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ir(e),u!==null){for(t.flags|=128,Ao(s,!1),e=u.updateQueue,t.updateQueue=e,lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)e0(n,e),n=n.sibling;return Z(_t,_t.current&1|2),Me&&Ra(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&yt()>uc&&(t.flags|=128,c=!0,Ao(s,!1),t.lanes=4194304)}else{if(!c)if(e=Ir(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,lc(t,e),Ao(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Me)return lt(t),null}else 2*yt()-s.renderingStartTime>uc&&n!==536870912&&(t.flags|=128,c=!0,Ao(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=yt(),e.sibling=null,n=_t.current,Z(_t,c?n&1|2:n&1),Me&&Ra(t,s.treeForkCount),e):(lt(t),null);case 22:case 23:return wn(t),dd(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),n=t.updateQueue,n!==null&&lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&Y(al),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ba(St),lt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function G_(e,t){switch(Zu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ba(St),at(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ns(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(r(340));el()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));el()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(_t),null;case 4:return at(),null;case 10:return Ba(t.type),null;case 22:case 23:return wn(t),dd(),e!==null&&Y(al),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ba(St),null;case 25:return null;default:return null}}function Np(e,t){switch(Zu(t),t.tag){case 3:Ba(St),at();break;case 26:case 27:case 5:ns(t);break;case 4:at();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:Y(_t);break;case 10:Ba(t.type);break;case 22:case 23:wn(t),dd(),e!==null&&Y(al);break;case 24:Ba(St)}}function So(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var c=s.next;n=c;do{if((n.tag&e)===e){s=void 0;var u=n.create,v=n.inst;s=u(),v.destroy=s}n=n.next}while(n!==c)}}catch(x){Xe(t,t.return,x)}}function gs(e,t,n){try{var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var u=c.next;s=u;do{if((s.tag&e)===e){var v=s.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,c=t;var N=n,D=x;try{D()}catch(Q){Xe(c,N,Q)}}}s=s.next}while(s!==u)}}catch(Q){Xe(t,t.return,Q)}}function Cp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{y0(t,n)}catch(s){Xe(e,e.return,s)}}}function Tp(e,t,n){n.props=rl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){Xe(e,t,s)}}function jo(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof n=="function"?e.refCleanup=n(s):n.current=s}}catch(c){Xe(e,t,c)}}function ha(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(c){Xe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Xe(e,t,c)}else n.current=null}function Rp(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(c){Xe(e,e.return,c)}}function Fd(e,t,n){try{var s=e.stateNode;hb(s,e.type,n,t),s[sn]=t}catch(c){Xe(e,e.return,c)}}function kp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ss(e.type)||e.tag===4}function Yd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kp(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&&Ss(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 Gd(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Na));else if(s!==4&&(s===27&&Ss(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gd(e,t,n),e=e.sibling;e!==null;)Gd(e,t,n),e=e.sibling}function ic(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&Ss(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}function Bp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Gt(t,s,n),t[Pt]=e,t[sn]=n}catch(u){Xe(e,e.return,u)}}var za=!1,Et=!1,Id=!1,Op=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function I_(e,t){if(e=e.containerInfo,mf=Nc,e=Gm(e),Hu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var c=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var v=0,x=-1,N=-1,D=0,Q=0,G=e,z=null;t:for(;;){for(var H;G!==n||c!==0&&G.nodeType!==3||(x=v+c),G!==u||s!==0&&G.nodeType!==3||(N=v+s),G.nodeType===3&&(v+=G.nodeValue.length),(H=G.firstChild)!==null;)z=G,G=H;for(;;){if(G===e)break t;if(z===n&&++D===c&&(x=v),z===u&&++Q===s&&(N=v),(H=G.nextSibling)!==null)break;G=z,z=G.parentNode}G=H}n=x===-1||N===-1?null:{start:x,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(pf={focusedElem:e,selectionRange:n},Nc=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){switch(t=Mt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,c=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var te=rl(n.type,c);e=s.getSnapshotBeforeUpdate(te,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(me){Xe(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)yf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Mt=e;break}Mt=t.return}}function Lp(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Ha(e,n),s&4&&So(5,n);break;case 1:if(Ha(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(v){Xe(n,n.return,v)}else{var c=rl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Xe(n,n.return,v)}}s&64&&Cp(n),s&512&&jo(n,n.return);break;case 3:if(Ha(e,n),s&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{y0(e,t)}catch(v){Xe(n,n.return,v)}}break;case 27:t===null&&s&4&&Bp(n);case 26:case 5:Ha(e,n),t===null&&s&4&&Rp(n),s&512&&jo(n,n.return);break;case 12:Ha(e,n);break;case 31:Ha(e,n),s&4&&zp(e,n);break;case 13:Ha(e,n),s&4&&Up(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=tb.bind(null,n),xb(e,n))));break;case 22:if(s=n.memoizedState!==null||za,!s){t=t!==null&&t.memoizedState!==null||Et,c=za;var u=Et;za=s,(Et=t)&&!u?qa(e,n,(n.subtreeFlags&8772)!==0):Ha(e,n),za=c,Et=u}break;case 30:break;default:Ha(e,n)}}function Mp(e){var t=e.alternate;t!==null&&(e.alternate=null,Mp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Au(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 ot=null,on=!1;function Ua(e,t,n){for(n=n.child;n!==null;)Dp(e,t,n),n=n.sibling}function Dp(e,t,n){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(Ki,n)}catch{}switch(n.tag){case 26:Et||ha(n,t),Ua(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Et||ha(n,t);var s=ot,c=on;Ss(n.type)&&(ot=n.stateNode,on=!1),Ua(e,t,n),Oo(n.stateNode),ot=s,on=c;break;case 5:Et||ha(n,t);case 6:if(s=ot,c=on,ot=null,Ua(e,t,n),ot=s,on=c,ot!==null)if(on)try{(ot.nodeType===9?ot.body:ot.nodeName==="HTML"?ot.ownerDocument.body:ot).removeChild(n.stateNode)}catch(u){Xe(n,t,u)}else try{ot.removeChild(n.stateNode)}catch(u){Xe(n,t,u)}break;case 18:ot!==null&&(on?(e=ot,C2(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),yi(e)):C2(ot,n.stateNode));break;case 4:s=ot,c=on,ot=n.stateNode.containerInfo,on=!0,Ua(e,t,n),ot=s,on=c;break;case 0:case 11:case 14:case 15:gs(2,n,t),Et||gs(4,n,t),Ua(e,t,n);break;case 1:Et||(ha(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Tp(n,t,s)),Ua(e,t,n);break;case 21:Ua(e,t,n);break;case 22:Et=(s=Et)||n.memoizedState!==null,Ua(e,t,n),Et=s;break;default:Ua(e,t,n)}}function zp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{yi(e)}catch(n){Xe(t,t.return,n)}}}function Up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{yi(e)}catch(n){Xe(t,t.return,n)}}function K_(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Op),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Op),t;default:throw Error(r(435,e.tag))}}function oc(e,t){var n=K_(e);t.forEach(function(s){if(!n.has(s)){n.add(s);var c=nb.bind(null,e,s);s.then(c,c)}})}function rn(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var c=n[s],u=e,v=t,x=v;e:for(;x!==null;){switch(x.tag){case 27:if(Ss(x.type)){ot=x.stateNode,on=!1;break e}break;case 5:ot=x.stateNode,on=!1;break e;case 3:case 4:ot=x.stateNode.containerInfo,on=!0;break e}x=x.return}if(ot===null)throw Error(r(160));Dp(u,v,c),ot=null,on=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hp(t,e),t=t.sibling}var ea=null;function Hp(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rn(t,e),cn(e),s&4&&(gs(3,e,e.return),So(3,e),gs(5,e,e.return));break;case 1:rn(t,e),cn(e),s&512&&(Et||n===null||ha(n,n.return)),s&64&&za&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var c=ea;if(rn(t,e),cn(e),s&512&&(Et||n===null||ha(n,n.return)),s&4){var u=n!==null?n.memoizedState:null;if(s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(s){case"title":u=c.getElementsByTagName("title")[0],(!u||u[Zi]||u[Pt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(s),c.head.insertBefore(u,c.querySelector("head > title"))),Gt(u,s,n),u[Pt]=e,Lt(u),s=u;break e;case"link":var v=H2("link","href",c).get(s+(n.href||""));if(v){for(var x=0;x<v.length;x++)if(u=v[x],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){v.splice(x,1);break t}}u=c.createElement(s),Gt(u,s,n),c.head.appendChild(u);break;case"meta":if(v=H2("meta","content",c).get(s+(n.content||""))){for(x=0;x<v.length;x++)if(u=v[x],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){v.splice(x,1);break t}}u=c.createElement(s),Gt(u,s,n),c.head.appendChild(u);break;default:throw Error(r(468,s))}u[Pt]=e,Lt(u),s=u}e.stateNode=s}else q2(c,e.type,e.stateNode);else e.stateNode=U2(c,s,e.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?q2(c,e.type,e.stateNode):U2(c,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Fd(e,e.memoizedProps,n.memoizedProps)}break;case 27:rn(t,e),cn(e),s&512&&(Et||n===null||ha(n,n.return)),n!==null&&s&4&&Fd(e,e.memoizedProps,n.memoizedProps);break;case 5:if(rn(t,e),cn(e),s&512&&(Et||n===null||ha(n,n.return)),e.flags&32){c=e.stateNode;try{Pl(c,"")}catch(te){Xe(e,e.return,te)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,Fd(e,c,n!==null?n.memoizedProps:c)),s&1024&&(Id=!0);break;case 6:if(rn(t,e),cn(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(te){Xe(e,e.return,te)}}break;case 3:if(Sc=null,c=ea,ea=xc(t.containerInfo),rn(t,e),ea=c,cn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{yi(t.containerInfo)}catch(te){Xe(e,e.return,te)}Id&&(Id=!1,qp(e));break;case 4:s=ea,ea=xc(e.stateNode.containerInfo),rn(t,e),cn(e),ea=s;break;case 12:rn(t,e),cn(e);break;case 31:rn(t,e),cn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,oc(e,s)));break;case 13:rn(t,e),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(cc=yt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,oc(e,s)));break;case 22:c=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,D=za,Q=Et;if(za=D||c,Et=Q||N,rn(t,e),Et=Q,za=D,cn(e),s&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||N||za||Et||cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(u=N.stateNode,c)v=u.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{x=N.stateNode;var G=N.memoizedProps.style,z=G!=null&&G.hasOwnProperty("display")?G.display:null;x.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(te){Xe(N,N.return,te)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=c?"":N.memoizedProps}catch(te){Xe(N,N.return,te)}}}else if(t.tag===18){if(n===null){N=t;try{var H=N.stateNode;c?T2(H,!0):T2(N.stateNode,!1)}catch(te){Xe(N,N.return,te)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,oc(e,n))));break;case 19:rn(t,e),cn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,oc(e,s)));break;case 30:break;case 21:break;default:rn(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(kp(s)){n=s;break}s=s.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var c=n.stateNode,u=Yd(e);ic(e,u,c);break;case 5:var v=n.stateNode;n.flags&32&&(Pl(v,""),n.flags&=-33);var x=Yd(e);ic(e,x,v);break;case 3:case 4:var N=n.stateNode.containerInfo,D=Yd(e);Gd(e,D,N);break;default:throw Error(r(161))}}catch(Q){Xe(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ha(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Lp(e,t.alternate,t),t=t.sibling}function cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:gs(4,t,t.return),cl(t);break;case 1:ha(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Tp(t,t.return,n),cl(t);break;case 27:Oo(t.stateNode);case 26:case 5:ha(t,t.return),cl(t);break;case 22:t.memoizedState===null&&cl(t);break;case 30:cl(t);break;default:cl(t)}e=e.sibling}}function qa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,c=e,u=t,v=u.flags;switch(u.tag){case 0:case 11:case 15:qa(c,u,n),So(4,u);break;case 1:if(qa(c,u,n),s=u,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(D){Xe(s,s.return,D)}if(s=u,c=s.updateQueue,c!==null){var x=s.stateNode;try{var N=c.shared.hiddenCallbacks;if(N!==null)for(c.shared.hiddenCallbacks=null,c=0;c<N.length;c++)v0(N[c],x)}catch(D){Xe(s,s.return,D)}}n&&v&64&&Cp(u),jo(u,u.return);break;case 27:Bp(u);case 26:case 5:qa(c,u,n),n&&s===null&&v&4&&Rp(u),jo(u,u.return);break;case 12:qa(c,u,n);break;case 31:qa(c,u,n),n&&v&4&&zp(c,u);break;case 13:qa(c,u,n),n&&v&4&&Up(c,u);break;case 22:u.memoizedState===null&&qa(c,u,n),jo(u,u.return);break;case 30:break;default:qa(c,u,n)}t=t.sibling}}function Kd(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&&co(n))}function Xd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&co(e))}function ta(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Pp(e,t,n,s),t=t.sibling}function Pp(e,t,n,s){var c=t.flags;switch(t.tag){case 0:case 11:case 15:ta(e,t,n,s),c&2048&&So(9,t);break;case 1:ta(e,t,n,s);break;case 3:ta(e,t,n,s),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&co(e)));break;case 12:if(c&2048){ta(e,t,n,s),e=t.stateNode;try{var u=t.memoizedProps,v=u.id,x=u.onPostCommit;typeof x=="function"&&x(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Xe(t,t.return,N)}}else ta(e,t,n,s);break;case 31:ta(e,t,n,s);break;case 13:ta(e,t,n,s);break;case 23:break;case 22:u=t.stateNode,v=t.alternate,t.memoizedState!==null?u._visibility&2?ta(e,t,n,s):wo(e,t):u._visibility&2?ta(e,t,n,s):(u._visibility|=2,oi(e,t,n,s,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Kd(v,t);break;case 24:ta(e,t,n,s),c&2048&&Xd(t.alternate,t);break;default:ta(e,t,n,s)}}function oi(e,t,n,s,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,v=t,x=n,N=s,D=v.flags;switch(v.tag){case 0:case 11:case 15:oi(u,v,x,N,c),So(8,v);break;case 23:break;case 22:var Q=v.stateNode;v.memoizedState!==null?Q._visibility&2?oi(u,v,x,N,c):wo(u,v):(Q._visibility|=2,oi(u,v,x,N,c)),c&&D&2048&&Kd(v.alternate,v);break;case 24:oi(u,v,x,N,c),c&&D&2048&&Xd(v.alternate,v);break;default:oi(u,v,x,N,c)}t=t.sibling}}function wo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,c=s.flags;switch(s.tag){case 22:wo(n,s),c&2048&&Kd(s.alternate,s);break;case 24:wo(n,s),c&2048&&Xd(s.alternate,s);break;default:wo(n,s)}t=t.sibling}}var Eo=8192;function ri(e,t,n){if(e.subtreeFlags&Eo)for(e=e.child;e!==null;)Qp(e,t,n),e=e.sibling}function Qp(e,t,n){switch(e.tag){case 26:ri(e,t,n),e.flags&Eo&&e.memoizedState!==null&&Ob(n,ea,e.memoizedState,e.memoizedProps);break;case 5:ri(e,t,n);break;case 3:case 4:var s=ea;ea=xc(e.stateNode.containerInfo),ri(e,t,n),ea=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Eo,Eo=16777216,ri(e,t,n),Eo=s):ri(e,t,n));break;default:ri(e,t,n)}}function Fp(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 No(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];Mt=s,Gp(s,e)}Fp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yp(e),e=e.sibling}function Yp(e){switch(e.tag){case 0:case 11:case 15:No(e),e.flags&2048&&gs(9,e,e.return);break;case 3:No(e);break;case 12:No(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,rc(e)):No(e);break;default:No(e)}}function rc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];Mt=s,Gp(s,e)}Fp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:gs(8,t,t.return),rc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,rc(t));break;default:rc(t)}e=e.sibling}}function Gp(e,t){for(;Mt!==null;){var n=Mt;switch(n.tag){case 0:case 11:case 15:gs(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:co(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,Mt=s;else e:for(n=e;Mt!==null;){s=Mt;var c=s.sibling,u=s.return;if(Mp(s),s===n){Mt=null;break e}if(c!==null){c.return=u,Mt=c;break e}Mt=u}}}var X_={getCacheForType:function(e){var t=Ft(St),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ft(St).controller.signal}},V_=typeof WeakMap=="function"?WeakMap:Map,Ye=0,Je=null,Ce=null,Be=0,Ke=0,En=null,vs=!1,ci=!1,Vd=!1,Pa=0,ht=0,ys=0,ul=0,Zd=0,Nn=0,ui=0,Co=null,un=null,Wd=!1,cc=0,Ip=0,uc=1/0,dc=null,_s=null,Rt=0,bs=null,di=null,Qa=0,Jd=0,$d=null,Kp=null,To=0,ef=null;function Cn(){return(Ye&2)!==0&&Be!==0?Be&-Be:P.T!==null?of():cm()}function Xp(){if(Nn===0)if((Be&536870912)===0||Me){var e=_r;_r<<=1,(_r&3932160)===0&&(_r=262144),Nn=e}else Nn=536870912;return e=jn.current,e!==null&&(e.flags|=32),Nn}function dn(e,t,n){(e===Je&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)&&(fi(e,0),xs(e,Be,Nn,!1)),Vi(e,n),((Ye&2)===0||e!==Je)&&(e===Je&&((Ye&2)===0&&(ul|=n),ht===4&&xs(e,Be,Nn,!1)),ma(e))}function Vp(e,t,n){if((Ye&6)!==0)throw Error(r(327));var s=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Xi(e,t),c=s?J_(e,t):nf(e,t,!0),u=s;do{if(c===0){ci&&!s&&xs(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Z_(n)){c=nf(e,t,!1),u=!1;continue}if(c===2){if(u=t,e.errorRecoveryDisabledLanes&u)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var x=e;c=Co;var N=x.current.memoizedState.isDehydrated;if(N&&(fi(x,v).flags|=256),v=nf(x,v,!1),v!==2){if(Vd&&!N){x.errorRecoveryDisabledLanes|=u,ul|=u,c=4;break e}u=un,un=c,u!==null&&(un===null?un=u:un.push.apply(un,u))}c=v}if(u=!1,c!==2)continue}}if(c===1){fi(e,0),xs(e,t,0,!0);break}e:{switch(s=e,u=c,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:xs(s,t,Nn,!vs);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=cc+300-yt(),10<c)){if(xs(s,t,Nn,!vs),xr(s,0,!0)!==0)break e;Qa=t,s.timeoutHandle=E2(Zp.bind(null,s,n,un,dc,Wd,t,Nn,ul,ui,vs,u,"Throttled",-0,0),c);break e}Zp(s,n,un,dc,Wd,t,Nn,ul,ui,vs,u,null,-0,0)}}break}while(!0);ma(e)}function Zp(e,t,n,s,c,u,v,x,N,D,Q,G,z,H){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Na},Qp(t,u,G);var te=(u&62914560)===u?cc-yt():(u&4194048)===u?Ip-yt():0;if(te=Lb(G,te),te!==null){Qa=u,e.cancelPendingCommit=te(s2.bind(null,e,t,u,n,s,c,v,x,N,Q,G,null,z,H)),xs(e,u,v,!D);return}}s2(e,t,u,n,s,c,v,x,N)}function Z_(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 s=0;s<n.length;s++){var c=n[s],u=c.getSnapshot;c=c.value;try{if(!An(u(),c))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 xs(e,t,n,s){t&=~Zd,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var c=t;0<c;){var u=31-xn(c),v=1<<u;s[u]=-1,c&=~v}n!==0&&im(e,n,t)}function fc(){return(Ye&6)===0?(Ro(0),!1):!0}function tf(){if(Ce!==null){if(Ke===0)var e=Ce.return;else e=Ce,ka=tl=null,vd(e),ni=null,fo=0,e=Ce;for(;e!==null;)Np(e.alternate,e),e=e.return;Ce=null}}function fi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,gb(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Qa=0,tf(),Je=e,Ce=n=Ta(e.current,null),Be=t,Ke=0,En=null,vs=!1,ci=Xi(e,t),Vd=!1,ui=Nn=Zd=ul=ys=ht=0,un=Co=null,Wd=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var c=31-xn(s),u=1<<c;t|=e[c],s&=~u}return Pa=t,Or(),n}function Wp(e,t){Se=null,P.H=bo,t===ti||t===Pr?(t=h0(),Ke=3):t===ld?(t=h0(),Ke=4):Ke=t===Od?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,En=t,Ce===null&&(ht=1,tc(e,Pn(t,e.current)))}function Jp(){var e=jn.current;return e===null?!0:(Be&4194048)===Be?Gn===null:(Be&62914560)===Be||(Be&536870912)!==0?e===Gn:!1}function $p(){var e=P.H;return P.H=bo,e===null?bo:e}function e2(){var e=P.A;return P.A=X_,e}function hc(){ht=4,vs||(Be&4194048)!==Be&&jn.current!==null||(ci=!0),(ys&134217727)===0&&(ul&134217727)===0||Je===null||xs(Je,Be,Nn,!1)}function nf(e,t,n){var s=Ye;Ye|=2;var c=$p(),u=e2();(Je!==e||Be!==t)&&(dc=null,fi(e,t)),t=!1;var v=ht;e:do try{if(Ke!==0&&Ce!==null){var x=Ce,N=En;switch(Ke){case 8:tf(),v=6;break e;case 3:case 2:case 9:case 6:jn.current===null&&(t=!0);var D=Ke;if(Ke=0,En=null,hi(e,x,N,D),n&&ci){v=0;break e}break;default:D=Ke,Ke=0,En=null,hi(e,x,N,D)}}W_(),v=ht;break}catch(Q){Wp(e,Q)}while(!0);return t&&e.shellSuspendCounter++,ka=tl=null,Ye=s,P.H=c,P.A=u,Ce===null&&(Je=null,Be=0,Or()),v}function W_(){for(;Ce!==null;)t2(Ce)}function J_(e,t){var n=Ye;Ye|=2;var s=$p(),c=e2();Je!==e||Be!==t?(dc=null,uc=yt()+500,fi(e,t)):ci=Xi(e,t);e:do try{if(Ke!==0&&Ce!==null){t=Ce;var u=En;t:switch(Ke){case 1:Ke=0,En=null,hi(e,t,u,1);break;case 2:case 9:if(d0(u)){Ke=0,En=null,n2(t);break}t=function(){Ke!==2&&Ke!==9||Je!==e||(Ke=7),ma(e)},u.then(t,t);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:d0(u)?(Ke=0,En=null,n2(t)):(Ke=0,En=null,hi(e,t,u,7));break;case 5:var v=null;switch(Ce.tag){case 26:v=Ce.memoizedState;case 5:case 27:var x=Ce;if(v?P2(v):x.stateNode.complete){Ke=0,En=null;var N=x.sibling;if(N!==null)Ce=N;else{var D=x.return;D!==null?(Ce=D,mc(D)):Ce=null}break t}}Ke=0,En=null,hi(e,t,u,5);break;case 6:Ke=0,En=null,hi(e,t,u,6);break;case 8:tf(),ht=6;break e;default:throw Error(r(462))}}$_();break}catch(Q){Wp(e,Q)}while(!0);return ka=tl=null,P.H=s,P.A=c,Ye=n,Ce!==null?0:(Je=null,Be=0,Or(),ht)}function $_(){for(;Ce!==null&&!$e();)t2(Ce)}function t2(e){var t=wp(e.alternate,e,Pa);e.memoizedProps=e.pendingProps,t===null?mc(e):Ce=t}function n2(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_p(n,t,t.pendingProps,t.type,void 0,Be);break;case 11:t=_p(n,t,t.pendingProps,t.type.render,t.ref,Be);break;case 5:vd(t);default:Np(n,t),t=Ce=e0(t,Pa),t=wp(n,t,Pa)}e.memoizedProps=e.pendingProps,t===null?mc(e):Ce=t}function hi(e,t,n,s){ka=tl=null,vd(t),ni=null,fo=0;var c=t.return;try{if(P_(e,c,t,n,Be)){ht=1,tc(e,Pn(n,e.current)),Ce=null;return}}catch(u){if(c!==null)throw Ce=c,u;ht=1,tc(e,Pn(n,e.current)),Ce=null;return}t.flags&32768?(Me||s===1?e=!0:ci||(Be&536870912)!==0?e=!1:(vs=e=!0,(s===2||s===9||s===3||s===6)&&(s=jn.current,s!==null&&s.tag===13&&(s.flags|=16384))),a2(t,e)):mc(t)}function mc(e){var t=e;do{if((t.flags&32768)!==0){a2(t,vs);return}e=t.return;var n=Y_(t.alternate,t,Pa);if(n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);ht===0&&(ht=5)}function a2(e,t){do{var n=G_(e.alternate,e);if(n!==null){n.flags&=32767,Ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=n}while(e!==null);ht=6,Ce=null}function s2(e,t,n,s,c,u,v,x,N){e.cancelPendingCommit=null;do pc();while(Rt!==0);if((Ye&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Yu,By(e,n,u,v,x,N),e===Je&&(Ce=Je=null,Be=0),di=t,bs=e,Qa=n,Jd=u,$d=c,Kp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ab(vr,function(){return c2(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=P.T,P.T=null,c=X.p,X.p=2,v=Ye,Ye|=4;try{I_(e,t,n)}finally{Ye=v,X.p=c,P.T=s}}Rt=1,l2(),i2(),o2()}}function l2(){if(Rt===1){Rt=0;var e=bs,t=di,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=P.T,P.T=null;var s=X.p;X.p=2;var c=Ye;Ye|=4;try{Hp(t,e);var u=pf,v=Gm(e.containerInfo),x=u.focusedElem,N=u.selectionRange;if(v!==x&&x&&x.ownerDocument&&Ym(x.ownerDocument.documentElement,x)){if(N!==null&&Hu(x)){var D=N.start,Q=N.end;if(Q===void 0&&(Q=D),"selectionStart"in x)x.selectionStart=D,x.selectionEnd=Math.min(Q,x.value.length);else{var G=x.ownerDocument||document,z=G&&G.defaultView||window;if(z.getSelection){var H=z.getSelection(),te=x.textContent.length,me=Math.min(N.start,te),We=N.end===void 0?me:Math.min(N.end,te);!H.extend&&me>We&&(v=We,We=me,me=v);var O=Fm(x,me),k=Fm(x,We);if(O&&k&&(H.rangeCount!==1||H.anchorNode!==O.node||H.anchorOffset!==O.offset||H.focusNode!==k.node||H.focusOffset!==k.offset)){var M=G.createRange();M.setStart(O.node,O.offset),H.removeAllRanges(),me>We?(H.addRange(M),H.extend(k.node,k.offset)):(M.setEnd(k.node,k.offset),H.addRange(M))}}}}for(G=[],H=x;H=H.parentNode;)H.nodeType===1&&G.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<G.length;x++){var F=G[x];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}Nc=!!mf,pf=mf=null}finally{Ye=c,X.p=s,P.T=n}}e.current=t,Rt=2}}function i2(){if(Rt===2){Rt=0;var e=bs,t=di,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=P.T,P.T=null;var s=X.p;X.p=2;var c=Ye;Ye|=4;try{Lp(e,t.alternate,t)}finally{Ye=c,X.p=s,P.T=n}}Rt=3}}function o2(){if(Rt===4||Rt===3){Rt=0,Jn();var e=bs,t=di,n=Qa,s=Kp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Rt=5:(Rt=0,di=bs=null,r2(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(_s=null),bu(n),t=t.stateNode,bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(Ki,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=P.T,c=X.p,X.p=2,P.T=null;try{for(var u=e.onRecoverableError,v=0;v<s.length;v++){var x=s[v];u(x.value,{componentStack:x.stack})}}finally{P.T=t,X.p=c}}(Qa&3)!==0&&pc(),ma(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===ef?To++:(To=0,ef=e):To=0,Ro(0)}}function r2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,co(t)))}function pc(){return l2(),i2(),o2(),c2()}function c2(){if(Rt!==5)return!1;var e=bs,t=Jd;Jd=0;var n=bu(Qa),s=P.T,c=X.p;try{X.p=32>n?32:n,P.T=null,n=$d,$d=null;var u=bs,v=Qa;if(Rt=0,di=bs=null,Qa=0,(Ye&6)!==0)throw Error(r(331));var x=Ye;if(Ye|=4,Yp(u.current),Pp(u,u.current,v,n),Ye=x,Ro(0,!1),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(Ki,u)}catch{}return!0}finally{X.p=c,P.T=s,r2(e,t)}}function u2(e,t,n){t=Pn(n,t),t=Bd(e.stateNode,t,2),e=hs(e,t,2),e!==null&&(Vi(e,2),ma(e))}function Xe(e,t,n){if(e.tag===3)u2(e,e,n);else for(;t!==null;){if(t.tag===3){u2(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(_s===null||!_s.has(s))){e=Pn(n,e),n=dp(2),s=hs(t,n,2),s!==null&&(fp(n,s,t,e),Vi(s,2),ma(s));break}}t=t.return}}function af(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new V_;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(n)||(Vd=!0,c.add(n),e=eb.bind(null,e,t,n),t.then(e,e))}function eb(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Je===e&&(Be&n)===n&&(ht===4||ht===3&&(Be&62914560)===Be&&300>yt()-cc?(Ye&2)===0&&fi(e,0):Zd|=n,ui===Be&&(ui=0)),ma(e)}function d2(e,t){t===0&&(t=lm()),e=Js(e,t),e!==null&&(Vi(e,t),ma(e))}function tb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),d2(e,n)}function nb(e,t){var n=0;switch(e.tag){case 31:case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(t),d2(e,n)}function ab(e,t){return Ue(e,t)}var gc=null,mi=null,sf=!1,vc=!1,lf=!1,As=0;function ma(e){e!==mi&&e.next===null&&(mi===null?gc=mi=e:mi=mi.next=e),vc=!0,sf||(sf=!0,lb())}function Ro(e,t){if(!lf&&vc){lf=!0;do for(var n=!1,s=gc;s!==null;){if(e!==0){var c=s.pendingLanes;if(c===0)var u=0;else{var v=s.suspendedLanes,x=s.pingedLanes;u=(1<<31-xn(42|e)+1)-1,u&=c&~(v&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,p2(s,u))}else u=Be,u=xr(s,s===Je?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Xi(s,u)||(n=!0,p2(s,u));s=s.next}while(n);lf=!1}}function sb(){f2()}function f2(){vc=sf=!1;var e=0;As!==0&&pb()&&(e=As);for(var t=yt(),n=null,s=gc;s!==null;){var c=s.next,u=h2(s,t);u===0?(s.next=null,n===null?gc=c:n.next=c,c===null&&(mi=n)):(n=s,(e!==0||(u&3)!==0)&&(vc=!0)),s=c}Rt!==0&&Rt!==5||Ro(e),As!==0&&(As=0)}function h2(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var v=31-xn(u),x=1<<v,N=c[v];N===-1?((x&n)===0||(x&s)!==0)&&(c[v]=ky(x,t)):N<=t&&(e.expiredLanes|=x),u&=~x}if(t=Je,n=Be,n=xr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,n===0||e===t&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Jt(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Xi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&Jt(s),bu(n)){case 2:case 8:n=am;break;case 32:n=vr;break;case 268435456:n=sm;break;default:n=vr}return s=m2.bind(null,e),n=Ue(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&Jt(s),e.callbackPriority=2,e.callbackNode=null,2}function m2(e,t){if(Rt!==0&&Rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(pc()&&e.callbackNode!==n)return null;var s=Be;return s=xr(e,e===Je?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Vp(e,s,t),h2(e,yt()),e.callbackNode!=null&&e.callbackNode===n?m2.bind(null,e):null)}function p2(e,t){if(pc())return null;Vp(e,t,!0)}function lb(){vb(function(){(Ye&6)!==0?Ue(nm,sb):f2()})}function of(){if(As===0){var e=$l;e===0&&(e=yr,yr<<=1,(yr&261888)===0&&(yr=256)),As=e}return As}function g2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wr(""+e)}function v2(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function ib(e,t,n,s,c){if(t==="submit"&&n&&n.stateNode===c){var u=g2((c[sn]||null).action),v=s.submitter;v&&(t=(t=v[sn]||null)?g2(t.formAction):v.getAttribute("formAction"),t!==null&&(u=t,v=null));var x=new Tr("action","action",null,s,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(As!==0){var N=v?v2(c,v):new FormData(c);Ed(n,{pending:!0,data:N,method:c.method,action:u},null,N)}}else typeof u=="function"&&(x.preventDefault(),N=v?v2(c,v):new FormData(c),Ed(n,{pending:!0,data:N,method:c.method,action:u},u,N))},currentTarget:c}]})}}for(var rf=0;rf<Fu.length;rf++){var cf=Fu[rf],ob=cf.toLowerCase(),rb=cf[0].toUpperCase()+cf.slice(1);$n(ob,"on"+rb)}$n(Xm,"onAnimationEnd"),$n(Vm,"onAnimationIteration"),$n(Zm,"onAnimationStart"),$n("dblclick","onDoubleClick"),$n("focusin","onFocus"),$n("focusout","onBlur"),$n(j_,"onTransitionRun"),$n(w_,"onTransitionStart"),$n(E_,"onTransitionCancel"),$n(Wm,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),Xs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ko="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(" "),cb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ko));function y2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],c=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var v=s.length-1;0<=v;v--){var x=s[v],N=x.instance,D=x.currentTarget;if(x=x.listener,N!==u&&c.isPropagationStopped())break e;u=x,c.currentTarget=D;try{u(c)}catch(Q){Br(Q)}c.currentTarget=null,u=N}else for(v=0;v<s.length;v++){if(x=s[v],N=x.instance,D=x.currentTarget,x=x.listener,N!==u&&c.isPropagationStopped())break e;u=x,c.currentTarget=D;try{u(c)}catch(Q){Br(Q)}c.currentTarget=null,u=N}}}}function Te(e,t){var n=t[xu];n===void 0&&(n=t[xu]=new Set);var s=e+"__bubble";n.has(s)||(_2(t,e,2,!1),n.add(s))}function uf(e,t,n){var s=0;t&&(s|=4),_2(n,e,s,t)}var yc="_reactListening"+Math.random().toString(36).slice(2);function df(e){if(!e[yc]){e[yc]=!0,fm.forEach(function(n){n!=="selectionchange"&&(cb.has(n)||uf(n,!1,e),uf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yc]||(t[yc]=!0,uf("selectionchange",!1,t))}}function _2(e,t,n,s){switch(X2(t)){case 2:var c=zb;break;case 8:c=Ub;break;default:c=Ef}n=c.bind(null,t,n,e),c=void 0,!Ru||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function ff(e,t,n,s,c){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var x=s.stateNode.containerInfo;if(x===c)break;if(v===4)for(v=s.return;v!==null;){var N=v.tag;if((N===3||N===4)&&v.stateNode.containerInfo===c)return;v=v.return}for(;x!==null;){if(v=Dl(x),v===null)return;if(N=v.tag,N===5||N===6||N===26||N===27){s=u=v;continue e}x=x.parentNode}}s=s.return}jm(function(){var D=u,Q=Cu(n),G=[];e:{var z=Jm.get(e);if(z!==void 0){var H=Tr,te=e;switch(e){case"keypress":if(Nr(n)===0)break e;case"keydown":case"keyup":H=n_;break;case"focusin":te="focus",H=Lu;break;case"focusout":te="blur",H=Lu;break;case"beforeblur":case"afterblur":H=Lu;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":H=Nm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Yy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=l_;break;case Xm:case Vm:case Zm:H=Ky;break;case Wm:H=o_;break;case"scroll":case"scrollend":H=Qy;break;case"wheel":H=c_;break;case"copy":case"cut":case"paste":H=Vy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Tm;break;case"toggle":case"beforetoggle":H=d_}var me=(t&4)!==0,We=!me&&(e==="scroll"||e==="scrollend"),O=me?z!==null?z+"Capture":null:z;me=[];for(var k=D,M;k!==null;){var F=k;if(M=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||M===null||O===null||(F=Ji(k,O),F!=null&&me.push(Bo(k,F,M))),We)break;k=k.return}0<me.length&&(z=new H(z,te,null,n,Q),G.push({event:z,listeners:me}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",z&&n!==Nu&&(te=n.relatedTarget||n.fromElement)&&(Dl(te)||te[Ml]))break e;if((H||z)&&(z=Q.window===Q?Q:(z=Q.ownerDocument)?z.defaultView||z.parentWindow:window,H?(te=n.relatedTarget||n.toElement,H=D,te=te?Dl(te):null,te!==null&&(We=f(te),me=te.tag,te!==We||me!==5&&me!==27&&me!==6)&&(te=null)):(H=null,te=D),H!==te)){if(me=Nm,F="onMouseLeave",O="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(me=Tm,F="onPointerLeave",O="onPointerEnter",k="pointer"),We=H==null?z:Wi(H),M=te==null?z:Wi(te),z=new me(F,k+"leave",H,n,Q),z.target=We,z.relatedTarget=M,F=null,Dl(Q)===D&&(me=new me(O,k+"enter",te,n,Q),me.target=M,me.relatedTarget=We,F=me),We=F,H&&te)t:{for(me=ub,O=H,k=te,M=0,F=O;F;F=me(F))M++;F=0;for(var oe=k;oe;oe=me(oe))F++;for(;0<M-F;)O=me(O),M--;for(;0<F-M;)k=me(k),F--;for(;M--;){if(O===k||k!==null&&O===k.alternate){me=O;break t}O=me(O),k=me(k)}me=null}else me=null;H!==null&&b2(G,z,H,me,!1),te!==null&&We!==null&&b2(G,We,te,me,!0)}}e:{if(z=D?Wi(D):window,H=z.nodeName&&z.nodeName.toLowerCase(),H==="select"||H==="input"&&z.type==="file")var qe=zm;else if(Mm(z))if(Um)qe=x_;else{qe=__;var le=y_}else H=z.nodeName,!H||H.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?D&&Eu(D.elementType)&&(qe=zm):qe=b_;if(qe&&(qe=qe(e,D))){Dm(G,qe,n,Q);break e}le&&le(e,z,D),e==="focusout"&&D&&z.type==="number"&&D.memoizedProps.value!=null&&wu(z,"number",z.value)}switch(le=D?Wi(D):window,e){case"focusin":(Mm(le)||le.contentEditable==="true")&&(Gl=le,qu=D,io=null);break;case"focusout":io=qu=Gl=null;break;case"mousedown":Pu=!0;break;case"contextmenu":case"mouseup":case"dragend":Pu=!1,Im(G,n,Q);break;case"selectionchange":if(S_)break;case"keydown":case"keyup":Im(G,n,Q)}var je;if(Du)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Yl?Om(e,n)&&(Oe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Oe="onCompositionStart");Oe&&(Rm&&n.locale!=="ko"&&(Yl||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Yl&&(je=wm()):(is=Q,ku="value"in is?is.value:is.textContent,Yl=!0)),le=_c(D,Oe),0<le.length&&(Oe=new Cm(Oe,e,null,n,Q),G.push({event:Oe,listeners:le}),je?Oe.data=je:(je=Lm(n),je!==null&&(Oe.data=je)))),(je=h_?m_(e,n):p_(e,n))&&(Oe=_c(D,"onBeforeInput"),0<Oe.length&&(le=new Cm("onBeforeInput","beforeinput",null,n,Q),G.push({event:le,listeners:Oe}),le.data=je)),ib(G,e,D,n,Q)}y2(G,t)})}function Bo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _c(e,t){for(var n=t+"Capture",s=[];e!==null;){var c=e,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=Ji(e,n),c!=null&&s.unshift(Bo(e,c,u)),c=Ji(e,t),c!=null&&s.push(Bo(e,c,u))),e.tag===3)return s;e=e.return}return[]}function ub(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function b2(e,t,n,s,c){for(var u=t._reactName,v=[];n!==null&&n!==s;){var x=n,N=x.alternate,D=x.stateNode;if(x=x.tag,N!==null&&N===s)break;x!==5&&x!==26&&x!==27||D===null||(N=D,c?(D=Ji(n,u),D!=null&&v.unshift(Bo(n,D,N))):c||(D=Ji(n,u),D!=null&&v.push(Bo(n,D,N)))),n=n.return}v.length!==0&&e.push({event:t,listeners:v})}var db=/\r\n?/g,fb=/\u0000|\uFFFD/g;function x2(e){return(typeof e=="string"?e:""+e).replace(db,`
`).replace(fb,"")}function A2(e,t){return t=x2(t),x2(e)===t}function Ze(e,t,n,s,c,u){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Pl(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Pl(e,""+s);break;case"className":Sr(e,"class",s);break;case"tabIndex":Sr(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Sr(e,n,s);break;case"style":Am(e,s,u);break;case"data":if(t!=="object"){Sr(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=wr(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="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 u=="function"&&(n==="formAction"?(t!=="input"&&Ze(e,t,"name",c.name,c,null),Ze(e,t,"formEncType",c.formEncType,c,null),Ze(e,t,"formMethod",c.formMethod,c,null),Ze(e,t,"formTarget",c.formTarget,c,null)):(Ze(e,t,"encType",c.encType,c,null),Ze(e,t,"method",c.method,c,null),Ze(e,t,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=wr(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=Na);break;case"onScroll":s!=null&&Te("scroll",e);break;case"onScrollEnd":s!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}n=wr(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Ar(e,"popover",s);break;case"xlinkActuate":Ea(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Ea(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Ea(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Ea(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Ea(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Ea(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Ea(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Ea(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Ea(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ar(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=qy.get(n)||n,Ar(e,n,s))}}function hf(e,t,n,s,c,u){switch(n){case"style":Am(e,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof s=="string"?Pl(e,s):(typeof s=="number"||typeof s=="bigint")&&Pl(e,""+s);break;case"onScroll":s!=null&&Te("scroll",e);break;case"onScrollEnd":s!=null&&Te("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hm.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),u=e[sn]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,c),typeof s=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,c);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):Ar(e,n,s)}}}function Gt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var s=!1,c=!1,u;for(u in n)if(n.hasOwnProperty(u)){var v=n[u];if(v!=null)switch(u){case"src":s=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ze(e,t,u,v,n,null)}}c&&Ze(e,t,"srcSet",n.srcSet,n,null),s&&Ze(e,t,"src",n.src,n,null);return;case"input":Te("invalid",e);var x=u=v=c=null,N=null,D=null;for(s in n)if(n.hasOwnProperty(s)){var Q=n[s];if(Q!=null)switch(s){case"name":c=Q;break;case"type":v=Q;break;case"checked":N=Q;break;case"defaultChecked":D=Q;break;case"value":u=Q;break;case"defaultValue":x=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,t));break;default:Ze(e,t,s,Q,n,null)}}ym(e,u,x,N,D,v,c,!1);return;case"select":Te("invalid",e),s=v=u=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":u=x;break;case"defaultValue":v=x;break;case"multiple":s=x;default:Ze(e,t,c,x,n,null)}t=u,n=v,e.multiple=!!s,t!=null?ql(e,!!s,t,!1):n!=null&&ql(e,!!s,n,!0);return;case"textarea":Te("invalid",e),u=c=s=null;for(v in n)if(n.hasOwnProperty(v)&&(x=n[v],x!=null))switch(v){case"value":s=x;break;case"defaultValue":c=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Ze(e,t,v,x,n,null)}bm(e,s,c,u);return;case"option":for(N in n)if(n.hasOwnProperty(N)&&(s=n[N],s!=null))switch(N){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ze(e,t,N,s,n,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(s=0;s<ko.length;s++)Te(ko[s],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("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(D in n)if(n.hasOwnProperty(D)&&(s=n[D],s!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ze(e,t,D,s,n,null)}return;default:if(Eu(t)){for(Q in n)n.hasOwnProperty(Q)&&(s=n[Q],s!==void 0&&hf(e,t,Q,s,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(s=n[x],s!=null&&Ze(e,t,x,s,n,null))}function hb(e,t,n,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,v=null,x=null,N=null,D=null,Q=null;for(H in n){var G=n[H];if(n.hasOwnProperty(H)&&G!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":N=G;default:s.hasOwnProperty(H)||Ze(e,t,H,null,s,G)}}for(var z in s){var H=s[z];if(G=n[z],s.hasOwnProperty(z)&&(H!=null||G!=null))switch(z){case"type":u=H;break;case"name":c=H;break;case"checked":D=H;break;case"defaultChecked":Q=H;break;case"value":v=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:H!==G&&Ze(e,t,z,H,s,G)}}ju(e,v,x,N,D,Q,u,c);return;case"select":H=v=x=z=null;for(u in n)if(N=n[u],n.hasOwnProperty(u)&&N!=null)switch(u){case"value":break;case"multiple":H=N;default:s.hasOwnProperty(u)||Ze(e,t,u,null,s,N)}for(c in s)if(u=s[c],N=n[c],s.hasOwnProperty(c)&&(u!=null||N!=null))switch(c){case"value":z=u;break;case"defaultValue":x=u;break;case"multiple":v=u;default:u!==N&&Ze(e,t,c,u,s,N)}t=x,n=v,s=H,z!=null?ql(e,!!n,z,!1):!!s!=!!n&&(t!=null?ql(e,!!n,t,!0):ql(e,!!n,n?[]:"",!1));return;case"textarea":H=z=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ze(e,t,x,null,s,c)}for(v in s)if(c=s[v],u=n[v],s.hasOwnProperty(v)&&(c!=null||u!=null))switch(v){case"value":z=c;break;case"defaultValue":H=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==u&&Ze(e,t,v,c,s,u)}_m(e,z,H);return;case"option":for(var te in n)if(z=n[te],n.hasOwnProperty(te)&&z!=null&&!s.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:Ze(e,t,te,null,s,z)}for(N in s)if(z=s[N],H=n[N],s.hasOwnProperty(N)&&z!==H&&(z!=null||H!=null))switch(N){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ze(e,t,N,z,s,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var me in n)z=n[me],n.hasOwnProperty(me)&&z!=null&&!s.hasOwnProperty(me)&&Ze(e,t,me,null,s,z);for(D in s)if(z=s[D],H=n[D],s.hasOwnProperty(D)&&z!==H&&(z!=null||H!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:Ze(e,t,D,z,s,H)}return;default:if(Eu(t)){for(var We in n)z=n[We],n.hasOwnProperty(We)&&z!==void 0&&!s.hasOwnProperty(We)&&hf(e,t,We,void 0,s,z);for(Q in s)z=s[Q],H=n[Q],!s.hasOwnProperty(Q)||z===H||z===void 0&&H===void 0||hf(e,t,Q,z,s,H);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!s.hasOwnProperty(O)&&Ze(e,t,O,null,s,z);for(G in s)z=s[G],H=n[G],!s.hasOwnProperty(G)||z===H||z==null&&H==null||Ze(e,t,G,z,s,H)}function S2(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var c=n[s],u=c.transferSize,v=c.initiatorType,x=c.duration;if(u&&x&&S2(v)){for(v=0,x=c.responseEnd,s+=1;s<n.length;s++){var N=n[s],D=N.startTime;if(D>x)break;var Q=N.transferSize,G=N.initiatorType;Q&&S2(G)&&(N=N.responseEnd,v+=Q*(N<x?1:(x-D)/(N-D)))}if(--s,t+=8*(u+v)/(c.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 mf=null,pf=null;function bc(e){return e.nodeType===9?e:e.ownerDocument}function j2(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 w2(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 gf(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 vf=null;function pb(){var e=window.event;return e&&e.type==="popstate"?e===vf?!1:(vf=e,!0):(vf=null,!1)}var E2=typeof setTimeout=="function"?setTimeout:void 0,gb=typeof clearTimeout=="function"?clearTimeout:void 0,N2=typeof Promise=="function"?Promise:void 0,vb=typeof queueMicrotask=="function"?queueMicrotask:typeof N2<"u"?function(e){return N2.resolve(null).then(e).catch(yb)}:E2;function yb(e){setTimeout(function(){throw e})}function Ss(e){return e==="head"}function C2(e,t){var n=t,s=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(s===0){e.removeChild(c),yi(t);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")Oo(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Oo(n);for(var u=n.firstChild;u;){var v=u.nextSibling,x=u.nodeName;u[Zi]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=v}}else n==="body"&&Oo(e.ownerDocument.body);n=c}while(n);yi(t)}function T2(e,t){var n=e;e=0;do{var s=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||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=s}while(n)}function yf(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":yf(n),Au(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function _b(e,t,n,s){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Zi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=In(e.nextSibling),e===null)break}return null}function bb(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=In(e.nextSibling),e===null))return null;return e}function R2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=In(e.nextSibling),e===null))return null;return e}function _f(e){return e.data==="$?"||e.data==="$~"}function bf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function xb(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function In(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 xf=null;function k2(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return In(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function B2(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 O2(e,t,n){switch(t=bc(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Oo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Au(e)}var Kn=new Map,L2=new Set;function xc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Fa=X.d;X.d={f:Ab,r:Sb,D:jb,C:wb,L:Eb,m:Nb,X:Tb,S:Cb,M:Rb};function Ab(){var e=Fa.f(),t=fc();return e||t}function Sb(e){var t=zl(e);t!==null&&t.tag===5&&t.type==="form"?W0(t):Fa.r(e)}var pi=typeof document>"u"?null:document;function M2(e,t,n){var s=pi;if(s&&typeof t=="string"&&t){var c=Hn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),L2.has(c)||(L2.add(c),e={rel:e,crossOrigin:n,href:t},s.querySelector(c)===null&&(t=s.createElement("link"),Gt(t,"link",e),Lt(t),s.head.appendChild(t)))}}function jb(e){Fa.D(e),M2("dns-prefetch",e,null)}function wb(e,t){Fa.C(e,t),M2("preconnect",e,t)}function Eb(e,t,n){Fa.L(e,t,n);var s=pi;if(s&&e&&t){var c='link[rel="preload"][as="'+Hn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Hn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Hn(n.imageSizes)+'"]')):c+='[href="'+Hn(e)+'"]';var u=c;switch(t){case"style":u=gi(e);break;case"script":u=vi(e)}Kn.has(u)||(e=_({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Kn.set(u,e),s.querySelector(c)!==null||t==="style"&&s.querySelector(Lo(u))||t==="script"&&s.querySelector(Mo(u))||(t=s.createElement("link"),Gt(t,"link",e),Lt(t),s.head.appendChild(t)))}}function Nb(e,t){Fa.m(e,t);var n=pi;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Hn(s)+'"][href="'+Hn(e)+'"]',u=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=vi(e)}if(!Kn.has(u)&&(e=_({rel:"modulepreload",href:e},t),Kn.set(u,e),n.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mo(u)))return}s=n.createElement("link"),Gt(s,"link",e),Lt(s),n.head.appendChild(s)}}}function Cb(e,t,n){Fa.S(e,t,n);var s=pi;if(s&&e){var c=Ul(s).hoistableStyles,u=gi(e);t=t||"default";var v=c.get(u);if(!v){var x={loading:0,preload:null};if(v=s.querySelector(Lo(u)))x.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Kn.get(u))&&Af(e,n);var N=v=s.createElement("link");Lt(N),Gt(N,"link",e),N._p=new Promise(function(D,Q){N.onload=D,N.onerror=Q}),N.addEventListener("load",function(){x.loading|=1}),N.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Ac(v,t,s)}v={type:"stylesheet",instance:v,count:1,state:x},c.set(u,v)}}}function Tb(e,t){Fa.X(e,t);var n=pi;if(n&&e){var s=Ul(n).hoistableScripts,c=vi(e),u=s.get(c);u||(u=n.querySelector(Mo(c)),u||(e=_({src:e,async:!0},t),(t=Kn.get(c))&&Sf(e,t),u=n.createElement("script"),Lt(u),Gt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function Rb(e,t){Fa.M(e,t);var n=pi;if(n&&e){var s=Ul(n).hoistableScripts,c=vi(e),u=s.get(c);u||(u=n.querySelector(Mo(c)),u||(e=_({src:e,async:!0,type:"module"},t),(t=Kn.get(c))&&Sf(e,t),u=n.createElement("script"),Lt(u),Gt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function D2(e,t,n,s){var c=(c=ve.current)?xc(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=gi(n.href),n=Ul(c).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=gi(n.href);var u=Ul(c).hoistableStyles,v=u.get(e);if(v||(c=c.ownerDocument||c,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,v),(u=c.querySelector(Lo(e)))&&!u._p&&(v.instance=u,v.state.loading=5),Kn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Kn.set(e,n),u||kb(c,e,n,v.state))),t&&s===null)throw Error(r(528,""));return v}if(t&&s!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=vi(n),n=Ul(c).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function gi(e){return'href="'+Hn(e)+'"'}function Lo(e){return'link[rel="stylesheet"]['+e+"]"}function z2(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function kb(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Gt(t,"link",n),Lt(t),e.head.appendChild(t))}function vi(e){return'[src="'+Hn(e)+'"]'}function Mo(e){return"script[async]"+e}function U2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Hn(n.href)+'"]');if(s)return t.instance=s,Lt(s),s;var c=_({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Lt(s),Gt(s,"style",c),Ac(s,n.precedence,e),t.instance=s;case"stylesheet":c=gi(n.href);var u=e.querySelector(Lo(c));if(u)return t.state.loading|=4,t.instance=u,Lt(u),u;s=z2(n),(c=Kn.get(c))&&Af(s,c),u=(e.ownerDocument||e).createElement("link"),Lt(u);var v=u;return v._p=new Promise(function(x,N){v.onload=x,v.onerror=N}),Gt(u,"link",s),t.state.loading|=4,Ac(u,n.precedence,e),t.instance=u;case"script":return u=vi(n.src),(c=e.querySelector(Mo(u)))?(t.instance=c,Lt(c),c):(s=n,(c=Kn.get(u))&&(s=_({},n),Sf(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),Lt(c),Gt(c,"link",s),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,Ac(s,n.precedence,e));return t.instance}function Ac(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,u=c,v=0;v<s.length;v++){var x=s[v];if(x.dataset.precedence===t)u=x;else if(u!==c)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Af(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Sc=null;function H2(e,t,n){if(Sc===null){var s=new Map,c=Sc=new Map;c.set(n,s)}else c=Sc,s=c.get(n),s||(s=new Map,c.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var u=n[c];if(!(u[Zi]||u[Pt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var v=u.getAttribute(t)||"";v=e+v;var x=s.get(v);x?x.push(u):s.set(v,[u])}}return s}function q2(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Bb(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 P2(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ob(e,t,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=gi(s.href),u=t.querySelector(Lo(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jc.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Lt(u);return}u=t.ownerDocument||t,s=z2(s),(c=Kn.get(c))&&Af(s,c),u=u.createElement("link"),Lt(u);var v=u;v._p=new Promise(function(x,N){v.onload=x,v.onerror=N}),Gt(u,"link",s),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=jc.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var jf=0;function Lb(e,t){return e.stylesheets&&e.count===0&&Ec(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var s=setTimeout(function(){if(e.stylesheets&&Ec(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&jf===0&&(jf=62500*mb());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ec(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(c)}}:null}function jc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ec(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var wc=null;function Ec(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wc=new Map,t.forEach(Mb,e),wc=null,jc.call(e))}function Mb(e,t){if(!(t.state.loading&4)){var n=wc.get(e);if(n)var s=n.get(null);else{n=new Map,wc.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var v=c[u];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(n.set(v.dataset.precedence,v),s=v)}s&&n.set(null,s)}c=t.instance,v=c.getAttribute("data-precedence"),u=n.get(v)||s,u===s&&n.set(null,c),n.set(v,c),this.count++,s=jc.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),u?u.parentNode.insertBefore(c,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Do={$$typeof:B,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function Db(e,t,n,s,c,u,v,x,N){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.hiddenUpdates=yu(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Q2(e,t,n,s,c,u,v,x,N,D,Q,G){return e=new Db(e,t,n,v,N,D,Q,G,x),t=1,u===!0&&(t|=24),u=Sn(3,null,null,t),e.current=u,u.stateNode=e,t=nd(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:t},id(u),e}function F2(e){return e?(e=Xl,e):Xl}function Y2(e,t,n,s,c,u){c=F2(c),s.context===null?s.context=c:s.pendingContext=c,s=fs(t),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=hs(e,s,t),n!==null&&(dn(n,e,t),mo(n,e,t))}function G2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wf(e,t){G2(e,t),(e=e.alternate)&&G2(e,t)}function I2(e){if(e.tag===13||e.tag===31){var t=Js(e,67108864);t!==null&&dn(t,e,67108864),wf(e,67108864)}}function K2(e){if(e.tag===13||e.tag===31){var t=Cn();t=_u(t);var n=Js(e,t);n!==null&&dn(n,e,t),wf(e,t)}}var Nc=!0;function zb(e,t,n,s){var c=P.T;P.T=null;var u=X.p;try{X.p=2,Ef(e,t,n,s)}finally{X.p=u,P.T=c}}function Ub(e,t,n,s){var c=P.T;P.T=null;var u=X.p;try{X.p=8,Ef(e,t,n,s)}finally{X.p=u,P.T=c}}function Ef(e,t,n,s){if(Nc){var c=Nf(s);if(c===null)ff(e,t,s,Cc,n),V2(e,s);else if(qb(c,e,t,n,s))s.stopPropagation();else if(V2(e,s),t&4&&-1<Hb.indexOf(e)){for(;c!==null;){var u=zl(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var v=Ks(u.pendingLanes);if(v!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var N=1<<31-xn(v);x.entanglements[1]|=N,v&=~N}ma(u),(Ye&6)===0&&(uc=yt()+500,Ro(0))}}break;case 31:case 13:x=Js(u,2),x!==null&&dn(x,u,2),fc(),wf(u,2)}if(u=Nf(s),u===null&&ff(e,t,s,Cc,n),u===c)break;c=u}c!==null&&s.stopPropagation()}else ff(e,t,s,null,n)}}function Nf(e){return e=Cu(e),Cf(e)}var Cc=null;function Cf(e){if(Cc=null,e=Dl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(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 Cc=e,null}function X2(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gr()){case nm:return 2;case am:return 8;case vr:case wy:return 32;case sm:return 268435456;default:return 32}default:return 32}}var Tf=!1,js=null,ws=null,Es=null,zo=new Map,Uo=new Map,Ns=[],Hb="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 V2(e,t){switch(e){case"focusin":case"focusout":js=null;break;case"dragenter":case"dragleave":ws=null;break;case"mouseover":case"mouseout":Es=null;break;case"pointerover":case"pointerout":zo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(t.pointerId)}}function Ho(e,t,n,s,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[c]},t!==null&&(t=zl(t),t!==null&&I2(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function qb(e,t,n,s,c){switch(t){case"focusin":return js=Ho(js,e,t,n,s,c),!0;case"dragenter":return ws=Ho(ws,e,t,n,s,c),!0;case"mouseover":return Es=Ho(Es,e,t,n,s,c),!0;case"pointerover":var u=c.pointerId;return zo.set(u,Ho(zo.get(u)||null,e,t,n,s,c)),!0;case"gotpointercapture":return u=c.pointerId,Uo.set(u,Ho(Uo.get(u)||null,e,t,n,s,c)),!0}return!1}function Z2(e){var t=Dl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,um(e.priority,function(){K2(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,um(e.priority,function(){K2(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 Tc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Nf(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Nu=s,n.target.dispatchEvent(s),Nu=null}else return t=zl(n),t!==null&&I2(t),e.blockedOn=n,!1;t.shift()}return!0}function W2(e,t,n){Tc(e)&&n.delete(t)}function Pb(){Tf=!1,js!==null&&Tc(js)&&(js=null),ws!==null&&Tc(ws)&&(ws=null),Es!==null&&Tc(Es)&&(Es=null),zo.forEach(W2),Uo.forEach(W2)}function Rc(e,t){e.blockedOn===t&&(e.blockedOn=null,Tf||(Tf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Pb)))}var kc=null;function J2(e){kc!==e&&(kc=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){kc===e&&(kc=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],c=e[t+2];if(typeof s!="function"){if(Cf(s||n)===null)continue;break}var u=zl(n);u!==null&&(e.splice(t,3),t-=3,Ed(u,{pending:!0,data:c,method:n.method,action:s},s,c))}}))}function yi(e){function t(N){return Rc(N,e)}js!==null&&Rc(js,e),ws!==null&&Rc(ws,e),Es!==null&&Rc(Es,e),zo.forEach(t),Uo.forEach(t);for(var n=0;n<Ns.length;n++){var s=Ns[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Ns.length&&(n=Ns[0],n.blockedOn===null);)Z2(n),n.blockedOn===null&&Ns.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var c=n[s],u=n[s+1],v=c[sn]||null;if(typeof u=="function")v||J2(n);else if(v){var x=null;if(u&&u.hasAttribute("formAction")){if(c=u,v=u[sn]||null)x=v.formAction;else if(Cf(c)!==null)continue}else x=v.action;typeof x=="function"?n[s+1]=x:(n.splice(s,3),s-=3),J2(n)}}}function $2(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(v){return c=v})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),s||setTimeout(n,20)}function n(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Rf(e){this._internalRoot=e}Bc.prototype.render=Rf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,s=Cn();Y2(n,s,e,t,null,null)},Bc.prototype.unmount=Rf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Y2(e.current,2,null,e,null,null),fc(),t[Ml]=null}};function Bc(e){this._internalRoot=e}Bc.prototype.unstable_scheduleHydration=function(e){if(e){var t=cm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ns.length&&t!==0&&t<Ns[n].priority;n++);Ns.splice(n,0,e),n===0&&Z2(e)}};var eg=l.version;if(eg!=="19.2.5")throw Error(r(527,eg,"19.2.5"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Qb={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oc.isDisabled&&Oc.supportsFiber)try{Ki=Oc.inject(Qb),bn=Oc}catch{}}return Po.createRoot=function(e,t){if(!d(e))throw Error(r(299));var n=!1,s="",c=op,u=rp,v=cp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=Q2(e,1,!1,null,null,n,s,null,c,u,v,$2),e[Ml]=t.current,df(e),new Rf(t)},Po.hydrateRoot=function(e,t,n){if(!d(e))throw Error(r(299));var s=!1,c="",u=op,v=rp,x=cp,N=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(v=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),t=Q2(e,1,!0,t,n??null,s,c,N,u,v,x,$2),t.context=F2(null),n=t.current,s=Cn(),s=_u(s),c=fs(s),c.callback=null,hs(n,c,s),n=s,t.current.lanes=n,Vi(t,n),ma(t),e[Ml]=t.current,df(e),new Bc(t)},Po.version="19.2.5",Po}var dg;function Jb(){if(dg)return Lf.exports;dg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Lf.exports=Wb(),Lf.exports}var $b=Jb();/**
 * react-router v7.14.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var fg="popstate";function hg(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function ex(a={}){function l(r,d){var p;let f=(p=d.state)==null?void 0:p.masked,{pathname:h,search:g,hash:m}=f||r.location;return lh("",{pathname:h,search:g,hash:m},d.state&&d.state.usr||null,d.state&&d.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function i(r,d){return typeof d=="string"?d:Jo(d)}return nx(l,i,null,a)}function dt(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}function oa(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function tx(){return Math.random().toString(36).substring(2,10)}function mg(a,l){return{usr:a.state,key:a.key,idx:l,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function lh(a,l,i=null,r,d){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof l=="string"?Fi(l):l,state:i,key:l&&l.key||r||tx(),unstable_mask:d}}function Jo({pathname:a="/",search:l="",hash:i=""}){return l&&l!=="?"&&(a+=l.charAt(0)==="?"?l:"?"+l),i&&i!=="#"&&(a+=i.charAt(0)==="#"?i:"#"+i),a}function Fi(a){let l={};if(a){let i=a.indexOf("#");i>=0&&(l.hash=a.substring(i),a=a.substring(0,i));let r=a.indexOf("?");r>=0&&(l.search=a.substring(r),a=a.substring(0,r)),a&&(l.pathname=a)}return l}function nx(a,l,i,r={}){let{window:d=document.defaultView,v5Compat:f=!1}=r,h=d.history,g="POP",m=null,p=y();p==null&&(p=0,h.replaceState({...h.state,idx:p},""));function y(){return(h.state||{idx:null}).idx}function _(){g="POP";let E=y(),R=E==null?null:E-p;p=E,m&&m({action:g,location:w.location,delta:R})}function b(E,R){g="PUSH";let L=hg(E)?E:lh(w.location,E,R);p=y()+1;let B=mg(L,p),q=w.createHref(L.unstable_mask||L);try{h.pushState(B,"",q)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;d.location.assign(q)}f&&m&&m({action:g,location:w.location,delta:1})}function S(E,R){g="REPLACE";let L=hg(E)?E:lh(w.location,E,R);p=y();let B=mg(L,p),q=w.createHref(L.unstable_mask||L);h.replaceState(B,"",q),f&&m&&m({action:g,location:w.location,delta:0})}function j(E){return ax(E)}let w={get action(){return g},get location(){return a(d,h)},listen(E){if(m)throw new Error("A history only accepts one active listener");return d.addEventListener(fg,_),m=E,()=>{d.removeEventListener(fg,_),m=null}},createHref(E){return l(d,E)},createURL:j,encodeLocation(E){let R=j(E);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:b,replace:S,go(E){return h.go(E)}};return w}function ax(a,l=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),dt(i,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:Jo(a);return r=r.replace(/ $/,"%20"),!l&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function Y1(a,l,i="/"){return sx(a,l,i,!1)}function sx(a,l,i,r){let d=typeof l=="string"?Fi(l):l,f=es(d.pathname||"/",i);if(f==null)return null;let h=G1(a);lx(h);let g=null;for(let m=0;g==null&&m<h.length;++m){let p=gx(f);g=mx(h[m],p,r)}return g}function G1(a,l=[],i=[],r="",d=!1){let f=(h,g,m=d,p)=>{let y={relativePath:p===void 0?h.path||"":p,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&m)return;dt(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let _=ia([r,y.relativePath]),b=i.concat(y);h.children&&h.children.length>0&&(dt(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${_}".`),G1(h.children,l,b,_,m)),!(h.path==null&&!h.index)&&l.push({path:_,score:fx(_,h.index),routesMeta:b})};return a.forEach((h,g)=>{var m;if(h.path===""||!((m=h.path)!=null&&m.includes("?")))f(h,g);else for(let p of I1(h.path))f(h,g,!0,p)}),l}function I1(a){let l=a.split("/");if(l.length===0)return[];let[i,...r]=l,d=i.endsWith("?"),f=i.replace(/\?$/,"");if(r.length===0)return d?[f,""]:[f];let h=I1(r.join("/")),g=[];return g.push(...h.map(m=>m===""?f:[f,m].join("/"))),d&&g.push(...h),g.map(m=>a.startsWith("/")&&m===""?"/":m)}function lx(a){a.sort((l,i)=>l.score!==i.score?i.score-l.score:hx(l.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var ix=/^:[\w-]+$/,ox=3,rx=2,cx=1,ux=10,dx=-2,pg=a=>a==="*";function fx(a,l){let i=a.split("/"),r=i.length;return i.some(pg)&&(r+=dx),l&&(r+=rx),i.filter(d=>!pg(d)).reduce((d,f)=>d+(ix.test(f)?ox:f===""?cx:ux),r)}function hx(a,l){return a.length===l.length&&a.slice(0,-1).every((r,d)=>r===l[d])?a[a.length-1]-l[l.length-1]:0}function mx(a,l,i=!1){let{routesMeta:r}=a,d={},f="/",h=[];for(let g=0;g<r.length;++g){let m=r[g],p=g===r.length-1,y=f==="/"?l:l.slice(f.length)||"/",_=$c({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},y),b=m.route;if(!_&&p&&i&&!r[r.length-1].route.index&&(_=$c({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!_)return null;Object.assign(d,_.params),h.push({params:d,pathname:ia([f,_.pathname]),pathnameBase:bx(ia([f,_.pathnameBase])),route:b}),_.pathnameBase!=="/"&&(f=ia([f,_.pathnameBase]))}return h}function $c(a,l){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[i,r]=px(a.path,a.caseSensitive,a.end),d=l.match(i);if(!d)return null;let f=d[0],h=f.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:r.reduce((p,{paramName:y,isOptional:_},b)=>{if(y==="*"){let j=g[b]||"";h=f.slice(0,f.length-j.length).replace(/(.)\/+$/,"$1")}const S=g[b];return _&&!S?p[y]=void 0:p[y]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:h,pattern:a}}function px(a,l=!1,i=!0){oa(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,m,p,y)=>{if(r.push({paramName:g,isOptional:m!=null}),m){let _=y.charAt(p+h.length);return _&&_!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),r]}function gx(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return oa(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),a}}function es(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,r=a.charAt(i);return r&&r!=="/"?null:a.slice(i)||"/"}var vx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function yx(a,l="/"){let{pathname:i,search:r="",hash:d=""}=typeof a=="string"?Fi(a):a,f;return i?(i=K1(i),i.startsWith("/")?f=gg(i.substring(1),"/"):f=gg(i,l)):f=l,{pathname:f,search:xx(r),hash:Ax(d)}}function gg(a,l){let i=eu(l).split("/");return a.split("/").forEach(d=>{d===".."?i.length>1&&i.pop():d!=="."&&i.push(d)}),i.length>1?i.join("/"):"/"}function Uf(a,l,i,r){return`Cannot include a '${a}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _x(a){return a.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function Oh(a){let l=_x(a);return l.map((i,r)=>r===l.length-1?i.pathname:i.pathnameBase)}function ou(a,l,i,r=!1){let d;typeof a=="string"?d=Fi(a):(d={...a},dt(!d.pathname||!d.pathname.includes("?"),Uf("?","pathname","search",d)),dt(!d.pathname||!d.pathname.includes("#"),Uf("#","pathname","hash",d)),dt(!d.search||!d.search.includes("#"),Uf("#","search","hash",d)));let f=a===""||d.pathname==="",h=f?"/":d.pathname,g;if(h==null)g=i;else{let _=l.length-1;if(!r&&h.startsWith("..")){let b=h.split("/");for(;b[0]==="..";)b.shift(),_-=1;d.pathname=b.join("/")}g=_>=0?l[_]:"/"}let m=yx(d,g),p=h&&h!=="/"&&h.endsWith("/"),y=(f||h===".")&&i.endsWith("/");return!m.pathname.endsWith("/")&&(p||y)&&(m.pathname+="/"),m}var K1=a=>a.replace(/\/\/+/g,"/"),ia=a=>K1(a.join("/")),eu=a=>a.replace(/\/+$/,""),bx=a=>eu(a).replace(/^\/*/,"/"),xx=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Ax=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Sx=class{constructor(a,l,i,r=!1){this.status=a,this.statusText=l||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function jx(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function wx(a){let l=a.map(i=>i.route.path).filter(Boolean);return ia(l)||"/"}var X1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function V1(a,l){let i=a;if(typeof i!="string"||!vx.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let r=i,d=!1;if(X1)try{let f=new URL(window.location.href),h=i.startsWith("//")?new URL(f.protocol+i):new URL(i),g=es(h.pathname,l);h.origin===f.origin&&g!=null?i=g+h.search+h.hash:d=!0}catch{oa(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Z1=["POST","PUT","PATCH","DELETE"];new Set(Z1);var Ex=["GET",...Z1];new Set(Ex);var Yi=A.createContext(null);Yi.displayName="DataRouter";var ru=A.createContext(null);ru.displayName="DataRouterState";var W1=A.createContext(!1);function Nx(){return A.useContext(W1)}var J1=A.createContext({isTransitioning:!1});J1.displayName="ViewTransition";var Cx=A.createContext(new Map);Cx.displayName="Fetchers";var Tx=A.createContext(null);Tx.displayName="Await";var Mn=A.createContext(null);Mn.displayName="Navigation";var cr=A.createContext(null);cr.displayName="Location";var Wn=A.createContext({outlet:null,matches:[],isDataRoute:!1});Wn.displayName="Route";var Lh=A.createContext(null);Lh.displayName="RouteError";var $1="REACT_ROUTER_ERROR",Rx="REDIRECT",kx="ROUTE_ERROR_RESPONSE";function Bx(a){if(a.startsWith(`${$1}:${Rx}:{`))try{let l=JSON.parse(a.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function Ox(a){if(a.startsWith(`${$1}:${kx}:{`))try{let l=JSON.parse(a.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new Sx(l.status,l.statusText,l.data)}catch{}}function Lx(a,{relative:l}={}){dt(Gi(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=A.useContext(Mn),{hash:d,pathname:f,search:h}=ur(a,{relative:l}),g=f;return i!=="/"&&(g=f==="/"?i:ia([i,f])),r.createHref({pathname:g,search:h,hash:d})}function Gi(){return A.useContext(cr)!=null}function Zt(){return dt(Gi(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(cr).location}var ev="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tv(a){A.useContext(Mn).static||A.useLayoutEffect(a)}function yn(){let{isDataRoute:a}=A.useContext(Wn);return a?Zx():Mx()}function Mx(){dt(Gi(),"useNavigate() may be used only in the context of a <Router> component.");let a=A.useContext(Yi),{basename:l,navigator:i}=A.useContext(Mn),{matches:r}=A.useContext(Wn),{pathname:d}=Zt(),f=JSON.stringify(Oh(r)),h=A.useRef(!1);return tv(()=>{h.current=!0}),A.useCallback((m,p={})=>{if(oa(h.current,ev),!h.current)return;if(typeof m=="number"){i.go(m);return}let y=ou(m,JSON.parse(f),d,p.relative==="path");a==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:ia([l,y.pathname])),(p.replace?i.replace:i.push)(y,p.state,p)},[l,i,f,d,a])}var Dx=A.createContext(null);function zx(a){let l=A.useContext(Wn).outlet;return A.useMemo(()=>l&&A.createElement(Dx.Provider,{value:a},l),[l,a])}function Ux(){let{matches:a}=A.useContext(Wn),l=a[a.length-1];return(l==null?void 0:l.params)??{}}function ur(a,{relative:l}={}){let{matches:i}=A.useContext(Wn),{pathname:r}=Zt(),d=JSON.stringify(Oh(i));return A.useMemo(()=>ou(a,JSON.parse(d),r,l==="path"),[a,d,r,l])}function Hx(a,l){return nv(a,l)}function nv(a,l,i){var E;dt(Gi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=A.useContext(Mn),{matches:d}=A.useContext(Wn),f=d[d.length-1],h=f?f.params:{},g=f?f.pathname:"/",m=f?f.pathnameBase:"/",p=f&&f.route;{let R=p&&p.path||"";sv(g,!p||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let y=Zt(),_;if(l){let R=typeof l=="string"?Fi(l):l;dt(m==="/"||((E=R.pathname)==null?void 0:E.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${R.pathname}" was given in the \`location\` prop.`),_=R}else _=y;let b=_.pathname||"/",S=b;if(m!=="/"){let R=m.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(R.length).join("/")}let j=Y1(a,{pathname:S});oa(p||j!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),oa(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=Yx(j&&j.map(R=>Object.assign({},R,{params:Object.assign({},h,R.params),pathname:ia([m,r.encodeLocation?r.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?m:ia([m,r.encodeLocation?r.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),d,i);return l&&w?A.createElement(cr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,..._},navigationType:"POP"}},w):w}function qx(){let a=Vx(),l=jx(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:f},"ErrorBoundary")," or"," ",A.createElement("code",{style:f},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},l),i?A.createElement("pre",{style:d},i):null,h)}var Px=A.createElement(qx,null),av=class extends A.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,l){return l.location!==a.location||l.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:l.error,location:l.location,revalidation:a.revalidation||l.revalidation}}componentDidCatch(a,l){this.props.onError?this.props.onError(a,l):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const i=Ox(a.digest);i&&(a=i)}let l=a!==void 0?A.createElement(Wn.Provider,{value:this.props.routeContext},A.createElement(Lh.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?A.createElement(Qx,{error:a},l):l}};av.contextType=W1;var Hf=new WeakMap;function Qx({children:a,error:l}){let{basename:i}=A.useContext(Mn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let r=Bx(l.digest);if(r){let d=Hf.get(l);if(d)throw d;let f=V1(r.location,i);if(X1&&!Hf.get(l))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Hf.set(l,h),h}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function Fx({routeContext:a,match:l,children:i}){let r=A.useContext(Yi);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),A.createElement(Wn.Provider,{value:a},i)}function Yx(a,l=[],i){let r=i==null?void 0:i.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let d=a,f=r==null?void 0:r.errors;if(f!=null){let y=d.findIndex(_=>_.route.id&&(f==null?void 0:f[_.route.id])!==void 0);dt(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),d=d.slice(0,Math.min(d.length,y+1))}let h=!1,g=-1;if(i&&r){h=r.renderFallback;for(let y=0;y<d.length;y++){let _=d[y];if((_.route.HydrateFallback||_.route.hydrateFallbackElement)&&(g=y),_.route.id){let{loaderData:b,errors:S}=r,j=_.route.loader&&!b.hasOwnProperty(_.route.id)&&(!S||S[_.route.id]===void 0);if(_.route.lazy||j){i.isStatic&&(h=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let m=i==null?void 0:i.onError,p=r&&m?(y,_)=>{var b,S;m(y,{location:r.location,params:((S=(b=r.matches)==null?void 0:b[0])==null?void 0:S.params)??{},unstable_pattern:wx(r.matches),errorInfo:_})}:void 0;return d.reduceRight((y,_,b)=>{let S,j=!1,w=null,E=null;r&&(S=f&&_.route.id?f[_.route.id]:void 0,w=_.route.errorElement||Px,h&&(g<0&&b===0?(sv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,E=null):g===b&&(j=!0,E=_.route.hydrateFallbackElement||null)));let R=l.concat(d.slice(0,b+1)),L=()=>{let B;return S?B=w:j?B=E:_.route.Component?B=A.createElement(_.route.Component,null):_.route.element?B=_.route.element:B=y,A.createElement(Fx,{match:_,routeContext:{outlet:y,matches:R,isDataRoute:r!=null},children:B})};return r&&(_.route.ErrorBoundary||_.route.errorElement||b===0)?A.createElement(av,{location:r.location,revalidation:r.revalidation,component:w,error:S,children:L(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):L()},null)}function Mh(a){return`${a} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gx(a){let l=A.useContext(Yi);return dt(l,Mh(a)),l}function Ix(a){let l=A.useContext(ru);return dt(l,Mh(a)),l}function Kx(a){let l=A.useContext(Wn);return dt(l,Mh(a)),l}function Dh(a){let l=Kx(a),i=l.matches[l.matches.length-1];return dt(i.route.id,`${a} can only be used on routes that contain a unique "id"`),i.route.id}function Xx(){return Dh("useRouteId")}function Vx(){var r;let a=A.useContext(Lh),l=Ix("useRouteError"),i=Dh("useRouteError");return a!==void 0?a:(r=l.errors)==null?void 0:r[i]}function Zx(){let{router:a}=Gx("useNavigate"),l=Dh("useNavigate"),i=A.useRef(!1);return tv(()=>{i.current=!0}),A.useCallback(async(d,f={})=>{oa(i.current,ev),i.current&&(typeof d=="number"?await a.navigate(d):await a.navigate(d,{fromRouteId:l,...f}))},[a,l])}var vg={};function sv(a,l,i){!l&&!vg[a]&&(vg[a]=!0,oa(!1,i))}A.memo(Wx);function Wx({routes:a,future:l,state:i,isStatic:r,onError:d}){return nv(a,void 0,{state:i,isStatic:r,onError:d})}function Hi({to:a,replace:l,state:i,relative:r}){dt(Gi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=A.useContext(Mn);oa(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=A.useContext(Wn),{pathname:h}=Zt(),g=yn(),m=ou(a,Oh(f),h,r==="path"),p=JSON.stringify(m);return A.useEffect(()=>{g(JSON.parse(p),{replace:l,state:i,relative:r})},[g,p,r,l,i]),null}function cu(a){return zx(a.context)}function Qe(a){dt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Jx({basename:a="/",children:l=null,location:i,navigationType:r="POP",navigator:d,static:f=!1,unstable_useTransitions:h}){dt(!Gi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=a.replace(/^\/*/,"/"),m=A.useMemo(()=>({basename:g,navigator:d,static:f,unstable_useTransitions:h,future:{}}),[g,d,f,h]);typeof i=="string"&&(i=Fi(i));let{pathname:p="/",search:y="",hash:_="",state:b=null,key:S="default",unstable_mask:j}=i,w=A.useMemo(()=>{let E=es(p,g);return E==null?null:{location:{pathname:E,search:y,hash:_,state:b,key:S,unstable_mask:j},navigationType:r}},[g,p,y,_,b,S,r,j]);return oa(w!=null,`<Router basename="${g}"> is not able to match the URL "${p}${y}${_}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:A.createElement(Mn.Provider,{value:m},A.createElement(cr.Provider,{children:l,value:w}))}function $x({children:a,location:l}){return Hx(ih(a),l)}function ih(a,l=[]){let i=[];return A.Children.forEach(a,(r,d)=>{if(!A.isValidElement(r))return;let f=[...l,d];if(r.type===A.Fragment){i.push.apply(i,ih(r.props.children,f));return}dt(r.type===Qe,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),dt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=ih(r.props.children,f)),i.push(h)}),i}var Xc="get",Vc="application/x-www-form-urlencoded";function uu(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function eA(a){return uu(a)&&a.tagName.toLowerCase()==="button"}function tA(a){return uu(a)&&a.tagName.toLowerCase()==="form"}function nA(a){return uu(a)&&a.tagName.toLowerCase()==="input"}function aA(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function sA(a,l){return a.button===0&&(!l||l==="_self")&&!aA(a)}var Mc=null;function lA(){if(Mc===null)try{new FormData(document.createElement("form"),0),Mc=!1}catch{Mc=!0}return Mc}var iA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qf(a){return a!=null&&!iA.has(a)?(oa(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vc}"`),null):a}function oA(a,l){let i,r,d,f,h;if(tA(a)){let g=a.getAttribute("action");r=g?es(g,l):null,i=a.getAttribute("method")||Xc,d=qf(a.getAttribute("enctype"))||Vc,f=new FormData(a)}else if(eA(a)||nA(a)&&(a.type==="submit"||a.type==="image")){let g=a.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=a.getAttribute("formaction")||g.getAttribute("action");if(r=m?es(m,l):null,i=a.getAttribute("formmethod")||g.getAttribute("method")||Xc,d=qf(a.getAttribute("formenctype"))||qf(g.getAttribute("enctype"))||Vc,f=new FormData(g,a),!lA()){let{name:p,type:y,value:_}=a;if(y==="image"){let b=p?`${p}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else p&&f.append(p,_)}}else{if(uu(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Xc,r=null,d=Vc,h=a}return f&&d==="text/plain"&&(h=f,f=void 0),{action:r,method:i.toLowerCase(),encType:d,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function zh(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}function lv(a,l,i,r){let d=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return i?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:l&&es(d.pathname,l)==="/"?d.pathname=`${eu(l)}/_root.${r}`:d.pathname=`${eu(d.pathname)}.${r}`,d}async function rA(a,l){if(a.id in l)return l[a.id];try{let i=await import(a.module);return l[a.id]=i,i}catch(i){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function cA(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function uA(a,l,i){let r=await Promise.all(a.map(async d=>{let f=l.routes[d.route.id];if(f){let h=await rA(f,i);return h.links?h.links():[]}return[]}));return mA(r.flat(1).filter(cA).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function yg(a,l,i,r,d,f){let h=(m,p)=>i[p]?m.route.id!==i[p].route.id:!0,g=(m,p)=>{var y;return i[p].pathname!==m.pathname||((y=i[p].route.path)==null?void 0:y.endsWith("*"))&&i[p].params["*"]!==m.params["*"]};return f==="assets"?l.filter((m,p)=>h(m,p)||g(m,p)):f==="data"?l.filter((m,p)=>{var _;let y=r.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(h(m,p)||g(m,p))return!0;if(m.route.shouldRevalidate){let b=m.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((_=i[0])==null?void 0:_.params)||{},nextUrl:new URL(a,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function dA(a,l,{includeHydrateFallback:i}={}){return fA(a.map(r=>{let d=l.routes[r.route.id];if(!d)return[];let f=[d.module];return d.clientActionModule&&(f=f.concat(d.clientActionModule)),d.clientLoaderModule&&(f=f.concat(d.clientLoaderModule)),i&&d.hydrateFallbackModule&&(f=f.concat(d.hydrateFallbackModule)),d.imports&&(f=f.concat(d.imports)),f}).flat(1))}function fA(a){return[...new Set(a)]}function hA(a){let l={},i=Object.keys(a).sort();for(let r of i)l[r]=a[r];return l}function mA(a,l){let i=new Set;return new Set(l),a.reduce((r,d)=>{let f=JSON.stringify(hA(d));return i.has(f)||(i.add(f),r.push({key:f,link:d})),r},[])}function Uh(){let a=A.useContext(Yi);return zh(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function pA(){let a=A.useContext(ru);return zh(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Hh=A.createContext(void 0);Hh.displayName="FrameworkContext";function qh(){let a=A.useContext(Hh);return zh(a,"You must render this element inside a <HydratedRouter> element"),a}function gA(a,l){let i=A.useContext(Hh),[r,d]=A.useState(!1),[f,h]=A.useState(!1),{onFocus:g,onBlur:m,onMouseEnter:p,onMouseLeave:y,onTouchStart:_}=l,b=A.useRef(null);A.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let w=R=>{R.forEach(L=>{h(L.isIntersecting)})},E=new IntersectionObserver(w,{threshold:.5});return b.current&&E.observe(b.current),()=>{E.disconnect()}}},[a]),A.useEffect(()=>{if(r){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[r]);let S=()=>{d(!0)},j=()=>{d(!1),h(!1)};return i?a!=="intent"?[f,b,{}]:[f,b,{onFocus:Qo(g,S),onBlur:Qo(m,j),onMouseEnter:Qo(p,S),onMouseLeave:Qo(y,j),onTouchStart:Qo(_,S)}]:[!1,b,{}]}function Qo(a,l){return i=>{a&&a(i),i.defaultPrevented||l(i)}}function vA({page:a,...l}){let i=Nx(),{router:r}=Uh(),d=A.useMemo(()=>Y1(r.routes,a,r.basename),[r.routes,a,r.basename]);return d?i?A.createElement(_A,{page:a,matches:d,...l}):A.createElement(bA,{page:a,matches:d,...l}):null}function yA(a){let{manifest:l,routeModules:i}=qh(),[r,d]=A.useState([]);return A.useEffect(()=>{let f=!1;return uA(a,l,i).then(h=>{f||d(h)}),()=>{f=!0}},[a,l,i]),r}function _A({page:a,matches:l,...i}){let r=Zt(),{future:d}=qh(),{basename:f}=Uh(),h=A.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let g=lv(a,f,d.unstable_trailingSlashAwareDataRequests,"rsc"),m=!1,p=[];for(let y of l)typeof y.route.shouldRevalidate=="function"?m=!0:p.push(y.route.id);return m&&p.length>0&&g.searchParams.set("_routes",p.join(",")),[g.pathname+g.search]},[f,d.unstable_trailingSlashAwareDataRequests,a,r,l]);return A.createElement(A.Fragment,null,h.map(g=>A.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...i})))}function bA({page:a,matches:l,...i}){let r=Zt(),{future:d,manifest:f,routeModules:h}=qh(),{basename:g}=Uh(),{loaderData:m,matches:p}=pA(),y=A.useMemo(()=>yg(a,l,p,f,r,"data"),[a,l,p,f,r]),_=A.useMemo(()=>yg(a,l,p,f,r,"assets"),[a,l,p,f,r]),b=A.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let w=new Set,E=!1;if(l.forEach(L=>{var q;let B=f.routes[L.route.id];!B||!B.hasLoader||(!y.some(K=>K.route.id===L.route.id)&&L.route.id in m&&((q=h[L.route.id])!=null&&q.shouldRevalidate)||B.hasClientLoader?E=!0:w.add(L.route.id))}),w.size===0)return[];let R=lv(a,g,d.unstable_trailingSlashAwareDataRequests,"data");return E&&w.size>0&&R.searchParams.set("_routes",l.filter(L=>w.has(L.route.id)).map(L=>L.route.id).join(",")),[R.pathname+R.search]},[g,d.unstable_trailingSlashAwareDataRequests,m,r,f,y,l,a,h]),S=A.useMemo(()=>dA(_,f),[_,f]),j=yA(_);return A.createElement(A.Fragment,null,b.map(w=>A.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...i})),S.map(w=>A.createElement("link",{key:w,rel:"modulepreload",href:w,...i})),j.map(({key:w,link:E})=>A.createElement("link",{key:w,nonce:i.nonce,...E,crossOrigin:E.crossOrigin??i.crossOrigin})))}function xA(...a){return l=>{a.forEach(i=>{typeof i=="function"?i(l):i!=null&&(i.current=l)})}}var AA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{AA&&(window.__reactRouterVersion="7.14.2")}catch{}function SA({basename:a,children:l,unstable_useTransitions:i,window:r}){let d=A.useRef();d.current==null&&(d.current=ex({window:r,v5Compat:!0}));let f=d.current,[h,g]=A.useState({action:f.action,location:f.location}),m=A.useCallback(p=>{i===!1?g(p):A.startTransition(()=>g(p))},[i]);return A.useLayoutEffect(()=>f.listen(m),[f,m]),A.createElement(Jx,{basename:a,children:l,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:i})}var iv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vn=A.forwardRef(function({onClick:l,discover:i="render",prefetch:r="none",relative:d,reloadDocument:f,replace:h,unstable_mask:g,state:m,target:p,to:y,preventScrollReset:_,viewTransition:b,unstable_defaultShouldRevalidate:S,...j},w){let{basename:E,navigator:R,unstable_useTransitions:L}=A.useContext(Mn),B=typeof y=="string"&&iv.test(y),q=V1(y,E);y=q.to;let K=Lx(y,{relative:d}),V=Zt(),U=null;if(g){let ae=ou(g,[],V.unstable_mask?V.unstable_mask.pathname:"/",!0);E!=="/"&&(ae.pathname=ae.pathname==="/"?E:ia([E,ae.pathname])),U=R.createHref(ae)}let[I,$,ue]=gA(r,j),re=EA(y,{replace:h,unstable_mask:g,state:m,target:p,preventScrollReset:_,relative:d,viewTransition:b,unstable_defaultShouldRevalidate:S,unstable_useTransitions:L});function ce(ae){l&&l(ae),ae.defaultPrevented||re(ae)}let ee=!(q.isExternal||f),he=A.createElement("a",{...j,...ue,href:(ee?U:void 0)||q.absoluteURL||K,onClick:ee?ce:l,ref:xA(w,$),target:p,"data-discover":!B&&i==="render"?"true":void 0});return I&&!B?A.createElement(A.Fragment,null,he,A.createElement(vA,{page:K})):he});vn.displayName="Link";var qi=A.forwardRef(function({"aria-current":l="page",caseSensitive:i=!1,className:r="",end:d=!1,style:f,to:h,viewTransition:g,children:m,...p},y){let _=ur(h,{relative:p.relative}),b=Zt(),S=A.useContext(ru),{navigator:j,basename:w}=A.useContext(Mn),E=S!=null&&kA(_)&&g===!0,R=j.encodeLocation?j.encodeLocation(_).pathname:_.pathname,L=b.pathname,B=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(L=L.toLowerCase(),B=B?B.toLowerCase():null,R=R.toLowerCase()),B&&w&&(B=es(B,w)||B);const q=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let K=L===R||!d&&L.startsWith(R)&&L.charAt(q)==="/",V=B!=null&&(B===R||!d&&B.startsWith(R)&&B.charAt(R.length)==="/"),U={isActive:K,isPending:V,isTransitioning:E},I=K?l:void 0,$;typeof r=="function"?$=r(U):$=[r,K?"active":null,V?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let ue=typeof f=="function"?f(U):f;return A.createElement(vn,{...p,"aria-current":I,className:$,ref:y,style:ue,to:h,viewTransition:g},typeof m=="function"?m(U):m)});qi.displayName="NavLink";var jA=A.forwardRef(({discover:a="render",fetcherKey:l,navigate:i,reloadDocument:r,replace:d,state:f,method:h=Xc,action:g,onSubmit:m,relative:p,preventScrollReset:y,viewTransition:_,unstable_defaultShouldRevalidate:b,...S},j)=>{let{unstable_useTransitions:w}=A.useContext(Mn),E=TA(),R=RA(g,{relative:p}),L=h.toLowerCase()==="get"?"get":"post",B=typeof g=="string"&&iv.test(g),q=K=>{if(m&&m(K),K.defaultPrevented)return;K.preventDefault();let V=K.nativeEvent.submitter,U=(V==null?void 0:V.getAttribute("formmethod"))||h,I=()=>E(V||K.currentTarget,{fetcherKey:l,method:U,navigate:i,replace:d,state:f,relative:p,preventScrollReset:y,viewTransition:_,unstable_defaultShouldRevalidate:b});w&&i!==!1?A.startTransition(()=>I()):I()};return A.createElement("form",{ref:j,method:L,action:R,onSubmit:r?m:q,...S,"data-discover":!B&&a==="render"?"true":void 0})});jA.displayName="Form";function wA(a){return`${a} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ov(a){let l=A.useContext(Yi);return dt(l,wA(a)),l}function EA(a,{target:l,replace:i,unstable_mask:r,state:d,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:m,unstable_useTransitions:p}={}){let y=yn(),_=Zt(),b=ur(a,{relative:h});return A.useCallback(S=>{if(sA(S,l)){S.preventDefault();let j=i!==void 0?i:Jo(_)===Jo(b),w=()=>y(a,{replace:j,unstable_mask:r,state:d,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:m});p?A.startTransition(()=>w()):w()}},[_,y,b,i,r,d,l,a,f,h,g,m,p])}var NA=0,CA=()=>`__${String(++NA)}__`;function TA(){let{router:a}=ov("useSubmit"),{basename:l}=A.useContext(Mn),i=Xx(),r=a.fetch,d=a.navigate;return A.useCallback(async(f,h={})=>{let{action:g,method:m,encType:p,formData:y,body:_}=oA(f,l);if(h.navigate===!1){let b=h.fetcherKey||CA();await r(b,i,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:_,formMethod:h.method||m,formEncType:h.encType||p,flushSync:h.flushSync})}else await d(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:_,formMethod:h.method||m,formEncType:h.encType||p,replace:h.replace,state:h.state,fromRouteId:i,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,d,l,i])}function RA(a,{relative:l}={}){let{basename:i}=A.useContext(Mn),r=A.useContext(Wn);dt(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),f={...ur(a||".",{relative:l})},h=Zt();if(a==null){f.search=h.search;let g=new URLSearchParams(f.search),m=g.getAll("index");if(m.some(y=>y==="")){g.delete("index"),m.filter(_=>_).forEach(_=>g.append("index",_));let y=g.toString();f.search=y?`?${y}`:""}}return(!a||a===".")&&d.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:ia([i,f.pathname])),Jo(f)}function kA(a,{relative:l}={}){let i=A.useContext(J1);dt(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ov("useViewTransitionState"),d=ur(a,{relative:l});if(!i.isTransitioning)return!1;let f=es(i.currentLocation.pathname,r)||i.currentLocation.pathname,h=es(i.nextLocation.pathname,r)||i.nextLocation.pathname;return $c(d.pathname,h)!=null||$c(d.pathname,f)!=null}const BA="_btn_8fkbu_1",OA="_primary_8fkbu_17",LA="_danger_8fkbu_27",MA="_ghost_8fkbu_37",DA="_outline_8fkbu_47",_g={btn:BA,primary:OA,danger:LA,ghost:MA,outline:DA};function Ln({variant:a,children:l,onClick:i,type:r="button",disabled:d}){return o.jsx("button",{type:r,className:`${_g.btn} ${_g[a]}`,onClick:i,disabled:d,children:l})}const zA="data:image/png;base64,[encoded data, 4848 characters]",UA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFMklEQVR4XtVbvW4TQRhMSWwipYYngCeACsp0pEsJFZTp8gapaXgD6F0gETsIWaRIARIopAAJJAcJCgq4s5M4/zE3l6y1nv253fXe2R5plOR2787f7PfN7u05c3MVIGksLiYbNx92W/XnaavWSFv1TrpZT7Kfg5xXv3fQhj7oi3P4OjOD7ub8ahZUexjguGzW271W/THfZ+qAkYsauMJaI3mzsMz3nThG0rky1jr8OSpHPuJ57fKHq4q1zkRKI9moP5nMqJtYoRBwZ/UDTAdLnzmma9RNLMkb8rRXbjadjF4OfINZIccRhFkaeebYmZCWNMV1390enOy9GAgc7j5T+kRkwnE5oUy3vzxLh8ELXPR/Kv1i0Xt2KCPte1t3OWYtyhLCqxzSyKl//GNdO+omQIQSysKtFGKO/tm/LY5tBEff1wenf17z4REcZ17B1w0llu4cr4I0wuizyelw9ndr2P+iv8fNI4iXDQWLpDRC8KApoMuzZND/uqb0Fzz59ZJPGSJiJphLQdM5mP3dpxxDlhm3lH7M3vs7fNpg/8OS0m8cctw5ktbCMnd0YT9LT8Dk3giIj4EHH5eGAeqEwXm64ygvAcws3O5CrRdc79UpnW1kkzvv7Th9KPYHV9c/+ramzCZBpdGst0eC93V+Dpyxv31POQfEqNrq3OYPmDFsOMxKjs+xsducXx0K4LuPZxKgyOQEdSbpMpI28XwFGMkCpbGALMB5d0c76vAHpCwWQrp6xqgeflpRju9v38/vgTWCrqRgsFwK3gK0JDPkhiKyAEdZgNxHNjnAZJJM2eQEdCJwFgULkLT9H3psAmCki6ALiAXTQe4fQ4D8Iel6Z1dptPEoq3MZsgAuDz3IBlxDnMOCmiB/BlkA/G6abm3Mp8Or11VqowsPPq/kN/cVIBTyvXFfmKLOW1yJ2IPmfyZMSfxelQCnWfD8ObzZrDWC1v+oVz4mWJUAMmGcOl8pZvZwFLLVjZrFqo+Pgy4mGAq+lyCmxBATTPFgpDlYSNm0TNOb7qEmBFhc8bVBni4DBRiMLQCgWweAwiRDgdWhyeSQgTLCBQgsARkmAQSLngEYLsGwsC7naJiXQEfTYKVNAJiR6ckOu0BFwPKYzxM7TPKxOALABAOmwSIBBE5+vxpxZ90mCUO+D2Yb+V5yWxQBMA2GLIRcBQBkk/QVgCG3xRAgXwiFLIV9BABE27QJsL9540H0h6FZEmD4xogbimgTAMTUJe/giOOhAug2RWMIEG0/AGbHfUAx9Ym/fQXAIkg3KyDL4m6IRNoSY9dn+grAxKwAU9XBWwB5Syz/YiN3sNAkgIBp9TaOANgms8FXAOVlqW8WgEUwZQPXLyC/KpOJrXAbcC0+p5CY/xkh06HLEtfkD7JJ6kwOPO9+ka6kQucPLuy9rT3i+HNwRx/a0pv7utIEk2Cu5LiHCHkwkmnKBtGOOjaVBcgbLQyku2+tq6zgDTGyQa5z+fhVIKOvwuQvUMjXEYA/hGx6qiwIHgjxAhMFxN9cJsgG8XJVgM8PMjkDFec3YdxSMJEF0IHPiUeH0RfwfVnqykkK4Dz6AiEPSS607RWaFlDj0vtrcgJlloJskjA53cvVOPRIfR3KKgfQ9C2QWPROexP4wrNCjmMslJkJsRlt5BlphEVS6dy0fA0uBsqaHWIw2O19cV0OHf4AE2M26qWlvQ2TF6LWyXd2J410EiKUXeshwEZDyJsmZzbr7akY8SJc/2NlWwkglFng2Lfk+8wM4M4YuW7T4d/nsz7oW5Wj/wdXGukMTSgLegAAAABJRU5ErkJggg==",HA="/assets/BONK-CSOWwKRv.png",qA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAADAFBMVEVHcEz/fwD2kxr/AAD2khr0dQD3kxr//wD/qgD2kxr2khr2khr1khr2khr6lhr1khr2khn6lRn4kxr1khb2khn3kxr3kBi/fwD3kxr4khn3kxn3kRjzkBf4khr/VQD6lRn6lhr7lxv6lRr9mBv4lRn2khn6lhrMmQD5lRn4kxr3kxr3kxn3kxn2khn3kxn5lBn4lBn3kxn3lBr4lBkAZwD6lhr1khj5lRr4lBn5kRj3lBn3kxr2khr3kxn4lBn3khn1kRqqVQD8lhr3kxr3kxr2kBr0jxr7lhr3khn7lhr4lBn5lRr3kxr1kRv7lRr2kxn5lBn3khrykRj2kRj3lBn4khr2khn6lxr4lBj5lBrykhn2khn3kxr//////v33lBz///73lR33lB33kxv/nRz3lR7/mRv//fv//fz/nhz//vz2jAr3jQz//v73khj3lBv/mxv3jhD3kRX3kxn3kBT4lBr7lRr3jAz3jQ7//Pn3kRb/nxz/mBv+lxv5lBr3jxH//fr3jg/2iwr2jQz4njH80p/3khf+mRv/nBz3kBP/+/f816v//Pj5lRv7lhv/+vX5s137zpb4liH3jAr5qEf806H6t2b/+/b81ab6t2f82K34nS/7zJH4oTj4nC33iwn7wn3/mxz6w3/937r2jAz96M75tWH7zpj97Nf958z2iQX82rH7yo33lR/4myv+8N/4mCT6lRr6u2/+6tP3jg7969T4ojn5sFf+7tr++PD6v3j4ozz+9u36uWr2igb+69T82rD6uWz+8+b2iwj+7tz6vXL5pD72jQ75slr4pUD+797/+PD5sFj3liD96dD94sL4nzT+79z95sv//Pr3jxD5tmP+8+X948P93LX3myr7yo/5rlL94sP4qUj94L34pUH5tF/7wn/+7dj7xYX81KP/+fL5qkr6uGn81qj2hQD97Nj///37x4n6xYT95cf3mSf96tL7zZb2hwD+8eH5q03/mhv5rlT6wHn3lyP95cj8z5r7yYz+9Oj4oTf3hwD83LSsdU1lAAAAXHRSTlMABP4B/gL7AQP9/Pv++vX89476GJDqFgT9KI4pLWIDbfz9/v532NMFQY/W1fhe912nqa3sAeeHhu0V97m6zo2oawO/xGthYMLH6++F/BzqeHjqPz/QutHnKq0oz5+pmtMAAAbWSURBVFjDpVcHVFNXGL4hiUkIIMhQcOBEwL31oNZZ955tc9/Le8nLTiAJK2GDrIKjdQIKWPesWvfeq+Kuo9bW7l21u7Xrvhc85r1cxHP6nxzO4+XeP//97vd///8D4GNSEfsnskdIQnx4sF9K8LQug0N6zBWjlyIZaNxkcgDksXEzu+uSdFk7U1SqlJ1Z6LH7kLjY5uibRl2g7ZM6xmRqddkKf0ULPxUyvxboMVtnzIyZGsoteI5JZSB0wDhjZoBSwe19Zn4KZUCmdvKECNBX+ryfF0fPMaYqFSqsKZSp2jnRUtC8ge1iOWg1QrtAKVE1aBLlAu2YVkAuxqInA62Dkp633eMiKag1uxazXxxSMr+pqlHzn18yVOzrQSoT9crwl6hewCRNMnqKZAIoZdLhvY2BmNUanItA4ytyfgwyuewloxK31kkyib5vlcZeMh6nRCAqIxAbL5lnLtWoSFIQSWBGGBB53/9obTNc/EW/X//34CE3abfbSP5XzbSjn5GyDZgb1DYAc3bSfh9C+L7Z9uvP23L43we0DYoE0qcEko9dLbg/p42iSA1jrrWWE/fynPvhT48d/FP4rx4pbSOuP8AorQBAJ8UsNuc4627egfDwXfuq5QSsNFMCILXDPIeQyQb1acdnP21ZdnrFrrNkjfsWhB8U5VVAl3pZmsBBQLs+EdxdysEAYQCUuRCdndi/dCtBwNp/agoh4VpVSvrcZX82BBmIGNhewECn5m34ei5kjYBl+6oeQbiRJH0Y2X58KMJRBKYIA9C4H155F0I1oTdxTpYTBlj4tZtK9AmhI0uGzp06+OS/01F9/jK0srtNuQYIrepbT/amOQQoTOzQqTMCYUZxCxyFNq9ablVzAUCTgYujcHs6LVCY4ukIxChsEpBF8xZC1sGa2wdYKNTIycl76ZTgJuPQJbymwykYbVmPAFTD8uq06vWVueyzHrq+sPNiUOhmi0DLrtl+GAdM/gaoR9seqUi3Je3sJhYQPfxGoLTZXSNBN2wAKo1jHdquh4VmJpFm8piN6D/02ceHQVHcDYQl+WP2JyZzEJigh4B1pw5CBIJBXZvP8BIiKQzMwkZAWR5wENzYm8wSiDl3AjnzdaDQJYAuWTghZMxvcBCsO1XqJGlas/k4GwEBH1h4R5BkxYPwVD/sEa6j5QT8pOIQZU/fbas1ESw1F1Y5eHSUpIaD4BTcfoeHBeijP31ly52LLJPULlhoEVApJRhglZC2LGJRR5ZL1OcUa+veLBKqtB/AHQBB8BhBAGH5QpbJLj27X31t5Q6HT0qq8EfQJG9CqBvgZw/f23DME4BVXVZqZ5wqnyOEp0oaYoEBVmy+abYtKczlPMD984Si4odAjMdcI8VBoIauVcnbGFXO4gt74Lcsky/bBJVKktUFJPgSiaor8LBgj41LzG1p20+qCdbDkbX8dFToZvlS2WZbvLZmE5cISxd7eFd3dCuLqcFaJpBmlsrdinkRoFryTuGy7/SIASZ4osCzningUsEE1+SRggi6gVf56UyZV3hkCEGw8K6FpBmKZpijx7lUgJUFlCCdWwLRbG8QEP4HXOWcmFrVhyuu2tLy11rMNV/msvpogG/xj6DQDUG6HuctypT5e454eo8cLj/21ae7jny8pj4m00c5JF+Wo5AmTvcGQWOrOr/yh8+59VbCBL3NAD+08yFoUTwDFRYk6xO9Xjos5uSqRY8Pc6JOEAa9yeQpDyaCWMJ3oECyzvYWHXmyrKGpREea/Rq0/rXHk0cGvcFkYNPhjEUoylPQdikIHS8sbUzyfSTjTyx7r9SnIWsbF1lIQWkbGIEqI6qP/YWVgTH/Bm/AS+l5f6Ac3Fe7oWzLiieXSGFZUWq54orKe0Sfdvz+hE6rJKwHqu1/l1vhih8L8i27C/LTncKy1K7PIE+rJgfD+OVV496BauttR/p66IK7ztUxNE0ztFBKlNpR9V2SuI10JC8hNO7tZdfgSsvuPw2u3EOlJFa0mq4eK3/aM0tBJL/J0tgs9JKrbvdlCC820GuiJmsu6s4abPNoWw7S3wtntqzMwwfQrORl79lDBMIEjaaGRPqdY04vwvfLgRlR3o0m2+r2wlR5kqKx8aMkeInf6qK7lOObbfzvG3sPl8p82v2eGU1erN33x7T73MAxtGS+f+P7m84vCRHjR5b/N/J4hq4xjQ9dIxoaupA1B9LoftrnjX3GftF9Gxz7WCj7gogJk7UNDZ7GcQNCgUza2OgbOjUm08iNvgrv0VebGdNxUmOjb/3w3Tw2akh33S+6rNRnw/fMuFj5iwzfrAuWo+KWPUIGd5kWrJIEh8cnhPSIZAMXYaL/Dwzi2FkgVOlzAAAAAElFTkSuQmCC",PA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHc0lEQVR4XtVbfYhUVRSfLMidd2dcLVFIRQqNKIk0K8KgLwKxJM2KDCo0Isg/hEqQijSI/rKiP6TyA/r4Iypy09x9782u68euSrqL2YeokaU+0lh33sfM5rLrvs55szM7c+59M+9zZjvww3Xv5+/cc8499767iUSMYtuJq3Lt0jRTTS3VldR6U2GfGoq0y1ClI7rMftdV6Tz8XzPwZ0XqgZ9b4d+tusLeyGbY8oGOphuwD9rvuBb768TVWVm6PSuzjUCw01Skcw7JAABlnDdUdkBvk94z2tIL7c7ENXS8cSP9mcmTdDX1IqzmfkokOrBD0P8aQ05PoeM3TJC4kZHWGrL0Kz/huMBOAd5sqCIc/1alZ8BMj/ETrBfYCVNJrUK3o/OLVQaUppkQqL7hJ9QwQGBNz6HzjEUMObkEAlMdzd0bYEFOA56ObdeAjieAub+uh4jqccPZVmX2TmfUuwWQx63tAzrgeAXMdbvdmriW8ggkGGAgadlCB/kf4MvQSrA3JCbA9rZJ0HkkyPc8rg0cX8X9PipgVhnKHcCU1tJOowKSt68MaPbIMChhNVceHdiGQIERcviHoYOzfIfhke9ZBuT/1WzbLiBGJWA6bSlsBeVXVXK7penQ8GfaWRQokB8YI18HJcC2fVJvnXQT5ekqcFr7nOskAriSLylhKD4lyKwFYxrlygmklo9xjSNATfJlSsj9+BDXPgpkldTzlG+FwHFzIlQ8TBuGRSHglfl8FQye2womm+L6iASy9IsNhzfKuyS6klrNNQoJ3+QVxvURJSC2vUZ5O4Krr8vOrQzXKCg8m32RPFl5a9/NWv7YSq7fcGAn8AhP+SeybWw5Xzk4/JNPV7S39s3VruRPxxIY8eKmgjwmClCwk1YMilKSIyBLUZV8sV7EWyScGvfh4a6kgP5M0ywjoqTHt88LzP5K/hRXN2ol9GekeSUFGBm2hlYIAt9mTwKeQz53kqsbixIy7O2SAsAkvuUq+ET+yGJ/5LmVR7MXrDwFxIR871Pc+AGQsRNwRjgNR0a8oxdU8AVzz0xt2OjhJ0zJn90i8Pk5lT5fBTgGjkXHD4CzNl6qGnL6LkFhIJgdM7Rhs5ebdIm8l4BXBdg3jkHHDY7kYjD/ZODkJ3f4Qc1sn1rxO0cJAksYPLcNDyUVdV0DngDOylPymcngeku4eXkFHPdfTeAdGi3wgmLAG+7r0MzM9RVl1B0KKy8gn/NBnpq92qwNXWwJmSewj8ACpG18QXXQaD/ctwcsgSphljNxsc97DHgl8rMq56BOLpAv1guoBAz+uAPsoAXVQMmPKaFD4A7TXch79Hmjl1/5zBQgv4OrG2SLhMXfixbQQQvcUCvJGe5r55RQDn8+Lwh4buSL8KkE/KqVAD/oogUi5I8uFa48haMEmChtH9rnM2j2VcgXgUr46QVufDHYCQyCB/gCHlbXAm3k8t/8gASX/9ocPMmxkfxRgc+PBjxBfYqRoX4td+g+bv5isN/AAiSVLxDD6roDlHCBG7QIMfmQSY6z8t9zdUUokF/EzdsNcPzv9Z0GW13zhZYgJu8j4ImSnFo+X4aRoUu+yCMw/qECPqYFtVBwB600+KBDXrDPezZ7UZLjg/xgnw+zHwMo4KsETPwtWuAFVnchJjjk/Z7qylDweZckR1CfYmQQV94/eQeytAmOwtJKrsAjTPBvsdn7WPm6BTwBVPZKwlLYbVxBQPjyedckxw95fz5PkW1j9ztff2ErDP3goeDzPsiH8vkQZj8K8P8ztjJNKtwIyeG/BBV2h7HA6Ab3ra5+5Eexs3QjBAp4TlDBN2olS+4+73Wfj4w8BsC1JQVYrWwqJAVnuEoB4JYsua98/Xy+CHzmk21rnl1SAEpWkb6gFYOioIQxS2hEklMDu7g3A1mZPSCoGBjFZCl8khOh2Y8iq6aWVZBHwackpiLtoZXDAC2BM3vnMqNx5AFH7M7ZEyl/R/BVt6BBdKhnkuOCLAR8yrskaAWGKu2mjSJBgwJeJdh+19Uvyug1eSSfycphHZgHMeEiR5YiJrN3HlHmVOkRylcopsrepR1EAevg3VWVEPRU5w1sM+XpKhcgRczKSU83RX5hdYuVEGmSQwD7/lGzPXUd5VlVLJndCloL/clMBKt7Iaz2P2Xk4/J5x/T/NDLpeyg/T2KqyaVxPY62uu8EJVyMlTwCErzqD6NqiS6zl2mnUQHdIS6zR8DirecyviCCD4to5+MfZd//oxBLSb0UlztECXwaa6rSOjr/SMRUko9G8ZYgLuAlR3+r9Kzz8CEusX5gt4CG99LBGw0gf1hXkgvofGMR++CMJkNlG/UYMka/QJM35NSmS61T0nSesYsuJ+ebCmuhk6oXgLxitqUW0XnVVfC9HT410X18YgsLXZY68eQa6q9BohZ8im4qqXtBEVvjyCCh3z/wGT9e3IzrvyFGyXY2N+sqexLc4xNDlnopGa+ALO44pLLboY+VvnP58SJoGXr7pBvxLfJoQvU+4DM4cX4H/+LdA4C14J1kVpY+BPNeB+eQJ8zdqbkVz1ljkv8A3lS87O5a03kAAAAASUVORK5CYII=",QA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURUxpcb+1I/KaMfm7OP+/MfrHU///Sv/xFfuPFvirE/8AAPmsFPmuGvvDSvitF/rFT/m4MPm2K/qwH/nBRfmyJPzLVfvGUPmzHPm0J/q9PPmuGv+2SPmtGvzGSvuxG/u1H/m/QvvCRPmxHPW/TvapEfqvH/qtEvm/P/nBQ/vIU/3MVvqtEfm5M/vJV/zLVvq9PPzIT/mwG/qwG/yzF/zFTPqwGvvDSfrGTfSrFP3MUvrBRvm8QvqwFvzLU/zFRvzLUvnATvq0I/qxIvy2I/nBR/e/QvuuFPq0JPm/QfywFPbBV/m+QPq0JfuuEvm3MPzNVvqrEP+vE/mrEfm7NvmyJvutEvuuEvvAPvu0J//DLPq1Kvu1Kfm7O/m2LPm6OPm3Lvq+Pfm2Lv/NV/zKV//MWvzKV/////mvG/q/QfvFTvrCSP/+/vu+PfmtFvu0JvqxH/vDS/qwHvvDSfqwHfvETP/++/vETfq4MPqyIvq1KvmsFPq3LvmuGvrCR/vCRPqxIPq/QPmuGPq5MvrBRfqyIfqzJPq2K/zGUPq6NPq1Kfq9Ovq2LPu7NfrAQ/rARPqzJfu5Mvq+P/q8Pfq0KPu7NvvGUPq8Ofq4Mfq8Ov/9+fq5MPvHUvzYjPvLZfvEUvq2KvqyIPq7OPqxIfqwG/q4LfvJXvzNb////vvHU//+/Pu7O//9+/q1JP/8+P/UU/+9Hv3JVv/WWfqzIfzLZ/qrEfzLY/7JU/y3LPvHWP/FPfu9QfvET/vCTfvKYfutEvvIVPzUgvvIW//PSv/AJv+5FfqvGPvFVPvNavvBSfuuFfqxHf++LPq/Q/vRdvzakfzWhv3dmfu/RP/68P/56/7x1v/RUf+6Gf/NRfzPcv+0E/+zEv7pvf/AOf/AMP/RWfq9PP/89/3krv3hpvq7N/7uzf+2GP+6IvywF/7FQ/26Mv+yFf66KP29N/+9Mf+vEv/NVvzTfP/IQ/+yFP/NWPzakv725f7rxP3fof714f/PWP/SWv715PzRev3ksPvGV/7syVyN5ZEAAAB/dFJOUwAEBv0E/QIBAv0B+/v6/vz9/Pv9/O5lLP38lQdn+sn6+/GNGhwY7f0rlY+T3fralLC5sPawsJW5MfZwF3LG/XIx73D9y43v8nx8Hd182PB83EO+8N3SYkFB/tSSYmK/ldS/Q74t0v////////////////////////////////6H86rYAAAGgklEQVRYw5WXd1wTZxzGX5JADgKGjQiKGwfDva177723XilaQGwKmCJpQjAQIVJaIClLkdI4wnKADNlTBRyIEzTuvau1tX3vEnJ3IUD4/pHP5ZfneXL33nvvvT8AWoEw4AfDbuXgpYv7G588adx/8dLBK+3wIgI6hgmVtCWDV7BuXL/xsuAkpOAlPGStGLyEBiOYHfmhve+cBddL3xYYY+yF4AcFb0uvL5jTFxe0gxG0955Z+tSYpfISGMPS09KZvfviorYwAMiE/qVVLNZenbBYVaX9JyBQphsTBhjTo+ERq8v3bdKF9aihxxjAMNE5eghwHP6gPbsq4sFwR4DoGEsEmHRrKDP9uUNMyxq6mQCktZ82Ms20y0960MU0bSRNO4GJ0IammX6rJ6ZpQ2nUq2AymMP092MJw5iUOcUA3dJM93QC07Ru5CnFAI5plrs7hWWaI5FgBOycnHZ7d4rdTk52LXPShGHQ46FlEMFhLYJ0Yfmwh4F6QhmAqSWWwQT+Qclk9gT5S4T+wa2wLJmqmtQIs9+UaYf9CYKjjpIRRSUXVAXBDC0OT5vSj4ngI9C7xFpI4JVcKZVKTzSfwGluvvTlv7pT4irvKKEW1iW9sVFAQL9ZXtYSgqjkPLQVH+oOVUkkQgkZa69Z/aCdAeaXWHuRCK3OS01NlWrA/Kkoeqmw2j9UQhZ6WZfMh3YmbfmzrlEkYAAqRy/8Wn9WRV5+3Ec5ykHRm9zgULIwquuz5TQ4HVfXUPxRAd5YQH6VRD1YScll3pX3UFSKXokRBlATalbDQVy3pmsomZCkXBiQlcQNUSMWh/iXff0CE+57hQaQpV3XrIPTeG2NRQAZcXACFlAtJte41YeuwIS/ksnVAIuatQxgZ3EmhISY6yfBAioyY7hk+JKzl1FOarnQj8sVa9RnLOzAhhoLMQE3NElYVgkDUgqESRSEBUXHjqE3yzKDMwm5Rc0GsOm2BemPEusrKk7VojvRuqzGP7TI+oSmcv6Jr4gnzs3i9iaw5bY54Y9JKkQ7RHpU7KfWm9/eAlxemPtp4Ge+5kg5cqiSc1ojT8Xrl3/hxqj15i9cwMIn5jEaRJl6nEEzDFBj/mQhMD/IJ+FXHx+fUgjH4H1RVrwWWUU3UfREY36+SKbRHzQHfAoiv0RxpmoecBO14CZfROXSeqGY4gAiKnwZP/QrNg+Oi2RaiDLfw4DKRBnFAOgHSN+U/MiEhMpGGFBYWZ6gRXn9v3AA8vNylYThAB0se05XaohNLJRL5fhd0AX2YHPkl86LDqn19OfLgMst+iENsSHtBaCqOhaghn7LBWzMoUdraAqp7fg2ygXKWLWenrMRuOfQYzWEiYouXoy7B2/j3do4bWo/oKnSuriLcZHRLXp6jjtYn0MPI2hSHpEdL8efRtkRCrLMfCkHvXkclgk5PWc9GGC/q4lMpIcyH1vSRB6RZM5H+8DHWZ6ihGVCvMt+AGBszrHfRYZ3AA/g80i1SA++AF9QZOTqLvuczfD96H7NnvJfPK0z4Hl48KJl8Z+wJS2Wooy0v+YO18RVb5x5ZMKjT8GARlmT+jqjD/CVRXd3YotqRJMHRer8ZhXcW9DmPXb2IKEKqM0rysYpyr9Qd18OK+jHiKZwHlnp/HgeXNYZYPa1nuRyROwp+CLhtLxXOC0vlvdhkREeFHpemw3tCOjTa9/5cAJBWHzryXP5XrkyIiKcwvl9vfpgey0jMKO4pyBCg6ApHs5XYh1qvnzl7msfJS+QpMF1PYtn4FsMhDm+1zdWAhK+KWSyfXjRYeGeAm2svuk1Hn+9w13CuGKrQOKXQAHlSsMFgZ6ega38gVbF49S7ZiZiMB0mEHhqEagLq+LpBi17RSMwoHt3z07SvfsAYuNvBGyvmvl2CrOrtuTGgQFGKcx8fH30xNfHTDGK0rswEeYIhdkPemOmGMHU2iwjDqMVZj/qiZlitIN2y4AAhyEKdu53epDLVgxx0NUwmAxU7Gd37GfvVwzU0XDgLY/t2Kts9m/twmZfHWurs+WBe2YjMHlixml2Qtv2BPbpjImTgZFJ223fJJuM04aGv+vE0PB0hs2ktts+VePZZ5BNxitDyJ8UsMqrDJtBfdptPFURcxe53cn4nI5ZDM9B8IP0zxl33BbN7ciOjSVU0LYO2uF65+8779LTz51LT38HD113DNoKm28jph79O97+I9ttB25zs3HNzna1cds20HY70kb7/z+munmwQ7rqZQAAAABJRU5ErkJggg==",FA="/assets/DOGE-DGKVmDxD.png",YA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURUxpcWx7bP///+zv8Ovu7+vu7////////+vu7////+zv8L+/v+vu7+rt7urt7uzv8Ozv7/L19u3v8Ovt7u3w8eru7uvu7+zw8e3w8aFk/+7y9Ozv8Ozu8O/y8uzv8PL19sCqquns7PD09e7u7uvv7+ft7fDy9O7y8uvu7uzu7+ru78zMzOvr7+/z8+rs7u7x8+zv8evu8O3w8e7w8uzu7+jo6+Xn5/L19vH19vL19uvu7/Dz9e7y9Ovu7+/y8/Hz9e/z9PH19vDz9Ozs7Ovw8Ovy8u3w8n////D09fH09e7x8e3w8e3w8evv7+vv8Ozv8O3x8evv7+vw8PL19e7x9Ovt7uzw8evv8O7x8u7y8+3w8uzv8C8wMIKDhBMTEzQ1NTU2Nuvu7+rt7oSFhjEyMu/y8/X4+RERES0uLoOEhfb5+jIzM/Dz9O7x8nx9fens7TAxMfP29/L19v3//+3w8fL19/z//xUVFXt8fYGCg/j8/Dc4OPT4+CQlJRQUFP7//4WGh3x9ficoKP////r9/3+AgYeJifr9/i4vLzM0NCssLPf6++nr7PT3+Hp7fCkqKiIjI35/gH1+fyorKzY3N9bY2dfa2xcXF+Xo6fn8/fv//4mKi4CBgsfJyufp6vj7/fT4+QwNDAQEBPDz9LO1tT0+PtHT1CEhIR8fH6utriMkJF1eXiYnJ0NEREVGRvX5+ra4uY+QkcHDxN7h4oyPj6WnqFNVVQcHB/Dz9WxtbpWWl8zOz77AwaGjpEtMTBsbG3d4eZyen3R2duPm53h5eujq6+Hk5ZiZmsTHyNve3rCys6msrdPV1oKEhWRlZert7xgZGZucnfj7/N3g4VpcXJKUlWZoaKChosjLzLq9vqyur/H19s3Q0TU1Nvb6+25wcGlra8rNzkFCQicnJ9nb3ODi4/L291FSU2BiYkdJSbu+vz9BQSMjI8HExezw8VdZWe/y9Kiqq7CysqSmp0xNTjo7O5aYmc3P0E5OTvT29/H09VZXWHFzc56goGJjY7i6u4a+3GEAAABbdFJOUwABAvz9+wQB/gP4BPr8/v269Nb7+hiOKe0BjuteqGLnA2H8FocVd46Q+NgFKEE/ralr74/qLiy/wv3EbW3H/oaG6+oceCh3AtPSXffQkNHOrahr9V3Pztb+/oaqvdwxAAAHE0lEQVRYw41Xd1wTZxj+wAt3AVEcQKm0bhFXW0W7696r2z8uMckll5DkIlmFpGkgCWUTCCNSFFw/91bcow7c1Vaptq6qHXbv3XR+dwG9+y5gvz8gv7t7n3vXPe/zAiA6KTHwT/TkGfcndM+IJeyxGd0T0l5MxuHFGBzc++BSAKTDR82K1bYYLLSdJO20xdCinfly2vA4eOeeENB84qDpWpvBhGFYV4KEh+gKf5oMNu20QYncAx2caBwkjh1v83eRYJwtPCoV94/AJF202RPG9gd4dEevj3qyt42WYOSdo6JpVdtvTMJk934qCsS1H/2YR7MZCUHy7EPB4LU7CCQBIR4b3U4mcBw82K1FYE6SlHbbLS3Fu0BI6rs9yD4bwR4f9TodTwrtrR8eK11Xn8W/Fk8XpaWIEaLwuAfyMeHrYQmXbKvQbFpiUvEvEp3yH4jDo5D3p/R5KK8zYk5S/jPeatcaj9AFkuyc95BU6AMuxR/OixfZhxY2qL21xZmNyyjhnfi8h3FBJmNAUr7o/bCEF7yeBUrzxg0hFXKrc/5gEMOvf99FPUX2lGW7Q69eoMw0fn0QDYLsuajv3absA5Jf6NdF/P7mxQ1yFsBcuupdBvGhS79uw0B0WwKkT78aL3bg07ccag5AZgwcbkFdiK9/Iro1DVLwfLZEnADr6iq9PAwgM1ceMCB5JCXZj4SDwPGBvR7vSorPvuo7ABrfZ3b0NsH06s/VUgoGRHCA8l+pUMvbAGAQ++rLkUd62AawLuBg4H0MIc5gk8cpvwtgzlQGrUgQxDMjE8FUWM1JtggZCB10qHkAMuP6veIs2KawzTB0iB8Tt8CHbAJ4ADLNxpVoJTr5hwyFSRihFdmT9vJtBShA5RfHTchjmHYETGJSnkScwZVcBvkAspLAYrQfJbYkWISXDJgoAZ/I247e0QYAz36/MA3YljkxIDnWhNZAxRzxhgNwygsLatvMje7PLe8I62BKHwZSt2CiDJ7iKuB06gvlezev/disaUVYvxMJAtOmgsFLEQCV6Y3FDXpori4seHuTJjNXd95drDGzzVDz1W1a8FFhS2eDBDQFlOWqQ+10egorLq6SaWqNOTqdrm5NKYQoNgYWCEuJGRJAdwuBZPBslVPu8Rzd5So2KpVKTY5u/nydLndtDRtJzTdCjrbOAxmiPt5XtVi9902FrESpVCjCAPDo5h/yyUp8uwS9QNAZINaODIIDDXIYukwBrRU8ANaN826j+8IifhD2dIB+RKcLNsDQlWFzAQALURdQXLfy80gAAu3BErfC1WaOAMzPydm9/P0yQTeBdGEIqu8vv1dTfBeBD5Bbt3z376eu8R2wx4IMWuiD3W/98Xef0SUGqNOt0Oy0GmgBK2WAeVYBgOkExRiOX/rFp6wVAuTkrjikX3JjWdZCXh0IS3e0keimH4Ihuix4tLiUi6MVgA3+n7NLQ2WNfwV5DM820mxhK1P+xuozzcw17faLlWYIwQHA4Fd89G+Z1dB0buMPRRS/lQeDVIRPKO2Zozu2k7Tf9NNmX4mLBcjRrfCdpLUW8u+Pcs5lZwm+51QwLF30OZ90eH9dzdBlJwo/qHSV1OXuzj18uyXkv7LLHfiTtKv4n3NsMoiZg3zPKua0Wl9VtbMpxJRdv1Vaunz3rsstIcPZmz6fpuQ3v8ABw1zI60koKbND1aN3eLYeZ6x/bP259uoyy7LmHYr1ZkXgoHA4SPIgpUUgVVVop0Otd1ZsazTRZc3NZa8wb20OZBpL1t9EmJ0jVRzSeieUUpbsgKSsLvAeCYYYq/bUBneN0ayp3NyM0AmkdVZbTBENFsq6uoAlVL23YV3z6YpSt9HM8tGBG1kIKU+C5lNB4shnCBGvb+V4XS93FG5aw3Gicc2OonJkut43EE5GdrjaeohGi+mCl5sMnmPs21lK3rCHVCHznRuucLz378WImb2p0MlSu7q6lhuupS50uHZ9vNfAsFSTgkfE852yNHKzoXUyadzrWsrbERhQ4kQ/US/WeNZ17HQIAxgDx9DJGl//tLRN6UWDyd3EIsuedQlqnLBG8v1cLlSrrMhKhuqsI5lHhYLOsAfm4uJGbVYHMo9thsH5EYTul606MXASqSAUmkl8odmO1FUx7zugUtW43/OrUKn7nFDqwlpKxWKblZpOr6ty1buI1O2c92yfKDyC3O9EoLXcX1Dt2rhVWAECiyD3WR9S0opEC4dl5eHKc0WihSMq8soCV556ZOUhmcLvvhWQULsrD7d0jX4MWbooa3C1heKZ78l+dEz762ccu/ZBCP7axzDU3bWPtnW09oUXz/7jJmRrIy+er9nGj0vscPEMr76Jg6ZFXn2nD5p4r9W3dfmOGz577kzh8h07a9Rw6f9ZvlkItkfx5BlpCfMy0kkiPWNeQlrqMNbxmBTx0/8BsP8D5OWd4s8AAAAASUVORK5CYII=",GA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAIeElEQVR4XtVbSWgUTRRuV9wVBBVEPCnqIQEVEUGNURE9ucvvyQU3EERxQQQZUVC85CAiCuLNuyIJHnRQ9CQoePBkXMBdEE1c4tr/fJX+yppXS3dPMpPxg49O16uueu/Vq1dV3ZMoqhH27dsX9+/fP+7Xr19cui3jgAED1BUycM2aNbj/t7F//35tUCQMzss5c+bgWv8oFotNvWW0jwcPHixE9YaWlpZi5FC2GqRzZ86ciWtdoKoj7iPySfJ332DKlCmZDGfiAw8dOhR//vw5/vHjR/z79+/4z58/irjHFWUnT56MBw8enCt/JPVqhyyKwfCFCxcq41ygA8x7CZQdPnw4kyNq4oQbN24Uor+dOQnZq1evlAG/fv0qG2mWXbx4Md6yZUs8f/78eO7cufF/GzfGp06dit+9e6frMSJQn+ByGWIpN0DH3sfo0aODhg8cOFAp/PPnz7LRXLdunXYM64baMeuMGTNGRxAdifvm5marvvlcr0cDjAsp/fHjRz1yUPD79+9WnUqJfjHyd+7c0U5lZBiJ0GKvOWHkyJFW4yA9jRGH0SD+RllIsZ4QA/Hy5cu4q6tLOZxO8A1OokflaGtrK0SOhmk8RxyKzJs3z6pXTcLZzA+bN29WZS5HjBs3rhBVCt9INjY2liU1Ka8VMfU4Ja5evep0QML88DU2depUnZhwRZmvbi344cMH7YRr1645dck9FUaNGmU1QnLkkeh8EVJLQof79+8rnYBt27ZZdVgvygGrAc55rukuT/cVocubt2/18hsYmHT4DKPxfTnnfWRS/vTpk95A+eyIQthY2pFF9gPx3bt3lQPS1t6+JnTD1AShq9w5wimlsmIUgNUoHkKDSHi7d+8OedZJHGxkWbXJw1bz4sWWLKGN48ePFyK7op5X3759s2Qh0lFQJq/TMJJc47m5knVCfPbsmXoWkLKETZEDspIik96gQYMsWYinT59WRuDZBQsWWHIfkdF5iAI4p2W9EOEwnknkNDBoQVaIz5w5o0YQW8+8o/D161dlAA8xUi6J9plkTZROoBXlnevXr6v24AgpS/gX06ZNk8KyZW/s2LGW3EeG/JAhQ8qMwd/Yy8v6iKxLly6VvTeA0phys2fPVsZjFPH8+vXrred9hA6MItfgJWXdcHkYZUCe8Nu+fbuqj90ZOpg+fbo2CoAzV61apevDIZ2dnWV1kHBhPJ4HL1y4UCZ36eoiIwooFAqWPKGGFKg1ldtLKfORHgf27t2rlLh3754ztE3gORBRYBpIAwDmotbWVqtfH0eMGKHblrKyCHCFCDuU5SF2dHRohWEMQ/78+fMqrH1g1MB4jjzXcxNoK2sEkEyosjxh95seKWD45HUA8wZhHpbAW7du6ZUBwPXLly9qjpuDgHsTb9680c6RfaaRfQUcZxVoQwKe87KlpUUnNHSORCbrpJEvPCrVwSTbwTtHKUtoFcRbt27VBkhZGuE8cx2vxAATUpaX79+/V+0EXtNZBfGVK1fUQ5UoTzLp0Rl5wteElOXl0aNH09qyCuK3paMl0BMHLFmyRHeMdlx7DR9NSFlebtiwQbUTiGarQM+b9idPLFkeMgrggIACFk1IWV5iE5fSllWglyx84JCyPJTZPJCJy2h+WzCX00o4efJk3b+UJbQK4qdPu09TXMZ6QhNZ8wCO0HQAIufAgQNWnazcsWOHasc7nV1KYePCzqUsL024+nKRLzYITCVZJyuPHTum2gjYYhXEK1eu1J1LWV6akDIf6SjmEOakrA40iXMFgFfoUpbQKlAEeuJ5jOKTUhKlAaA0gDtE897ME+PHjy87JeKIK9tII6fSkSNHLFlCq0ARxlfiACp49uzZsi0v3jeayq9du7bsfEAnmXsGbqpMBF5wOMk+Ao5TkIVKEXSOE5WUhYgR5PdCQhol5Sb4yQsrECPERN5BAVzRl1BDCtRuEJ29fv3akvmIb/0wzBxZZl84BmFo7vMJeU/Q2GXLlulQDrzhsbho0SLVNvqUsoTd8HhHdRjwnkWOLolMznktQxly7NPNOY+6UNbE8uXLVfmDBw9Ue+3t7Va/LuIZriQrVqyw5Am74dugYDSh+KZNmzI7YdasWarjhoYGZdzNmzf16AHcFU6YMMF6lkSfZhRxKgQONBZRH/pzEKQ8YRmsBuA5jmagEes5OpR5xAzxrCHMiME1xQgnsfyh/47OTl/iLIerAxjC0Vvs/8jgpBnycAAMX7p0qVXPRegyadIkPY3wIw2XfiESvuiOJEr77aZIVEKnjx8/1omNP1+T9VxEvda2NmU83uhkfc7k8+fPrbIs5EoSiLZC5IGsqMjRfPjwYUWG1JINjY1KV+gc0NWLYmRXVr/eBhAJvt8M1Qs5WHw1L+UJ/ZAP4R7k8uQ9VdUBEfKYcimbpUyQDyknMKObO7t6IHThvE95f5ANPuNQTg/n2SBVk9ABA8Ild+jQoVYd1otywmqEhLexzqYkmpoQutABM2bMsOQGK4JsRBMdItxwHT58uCWvBbnU4Ypfr0u5wcpQ2kQUIrsxRbm/x3d9WacaRMTt2bNH7y7hgMBmB3uXQtRDWI2S3CnyaNtV2rXhBIby3pwaaAtt8qgNMBf5+jF06Dm4FEYOxXBdvXq13u5yPu7cudP5TCWcOHGibpeG3759W8l8ffSa8YSvIxLyR48e6SkBRUH8UmTYsGFW/SwsFovKaCZcFWX+s71k7yOUE0g4Av8IwUMUwCWKo8fEhS/D+BcaOAkyTCU6jnMcQF385kj25WKiY3WRFg0mL1++rAygE9JgOurFixfeEPewdvDlhTQ2NTXFJ06cUMZh9BEF+FeZc+fOxbt27bLq52CfQSpSa9YFpFJVZyn6ilEdolDJtMhCY8o1Rf8CKs0RkkY7/zws41JYE/wPf6AZ8xgYWo0AAAAASUVORK5CYII=",IA="/assets/JUP-B5soXSmJ.png",KA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAACdUlEQVR4Xt3bPVIbURBFYTIrZAleCpFR6B3ZO2MpLMEZE2IpkEv+WlTPT0/PSKfqJDC3+74iGEE9np425PA6fJ716w/Pt9ePP5fDX+tzD4mHVp9/GDxopvm7xYNN1Xl3w6n8m4dZ4Lvzd8vzz8/nGwco0V27w8Jr6d7NsWCX9mjn8GP4Zal2Tx3s1UIosrH2Ww0X7037luGivWv/2Rxq3+fdLvv8cGNgncfh5d+e4/A9fL/QqyONwwHVuu+Cz1XrvpsYqtRdX2GuUncFDFTojrE4p0J3BAws8jj8dv5UzjPC3AU6P2Bgrs5divPn6tyAgak6rxr3TdV5AQNjdc7auH+szgkYSL16n3cz5/ODMwIGMs13Y59M8wEDmea7sU+m+YCBTPPd2CfTfMBApvlu7JNpPmAg03w39sk0HzCQab4b+2SaDxjINN+NfTLNBwxkmu/GPpnmAwYyzXdjn0zzAQOZ5ruxT6b5gIFM893YJ9N8wECm+W7sk2k+YCDTfDf2yTQfMJBpvhv7ZJoPGMg03419Ms0HDGSa78Y+meYDBjLNd2OfTPMBA5nmu7FPpvmAgdRt/yT2EvokOiNgYKzOWRv3j9U5AQNTdV417puq8wIG5urcpTh/rs4NGFhkwf2d6ntIzg8YqNAdY3FOhe4IGKjUXV9hrlJ33cRQte678NU1+irdl+KAUv+/IjP5fT7FqyNN5zTg3YF343F48zyzCcN3rv3LcNHetO9quHhr7ddC9f2dWRbcQ1pMKNWkPTbHgmvp3t1h4SrP/47jrt1yqPz8UPk+7yYcZqLOu1s8WKb5h8GDqs8/JB767Pk3QZ97ePbwU/8LaXkIU/qPRM8AAAAASUVORK5CYII=",XA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFR0lEQVR4XtWaPXMbRRjHVwU0gYxcMRMaWWlSMfYQGprYRRo8k4SGgUgepA4ayxTQSjP0WB8AnLRJgTvorCK06GTRS99A+gZa7jn7rNX/2bt99t6s/Gd+4/HtPm97d7u3ulOqIumrdi9kGaIdLHXQHqD9eyd99XJoKS4b09Yr9L+1YskXDMbbCumgU8dESyfoNDCPyqWn7RFLrGqm7T8xr0rEErljML/SpKfHZxh8a5i2f8N8C5W+Xsp44G3iv3Yf8y5E+qoVsGDbyxjzz6Ww+LklyJbTmmEdmfSenXkk35UQOuhbnOam13pEs3YqwZsjZpeJoHW6rshDRc32y3++0fWPP2AF+nBx9oT59SLL6sCceHDw+BNWRBFgHB+Uj9DYBzIvE4zng5JIT9oXaOgDuSgbjCkmfHRXLjEjT8hFVjqdjh4Oh+y4DYwrRaWJdlho4Au5yUKtVtOoRqPB+plgbBHhzlUliXXOALnJSpKw34aNJQcXKknYMQvkJqbf72Mtem9vjxVhkiTsF7Nz/0OWgwtlE3bKA7mLSdN8PmcFmdTrdX1wcBD9xTaTQgYBO+SB3MUEQYB1M7kGQsL87xcsjzSUqfB5/zV2yIuZnFSuSc8F5uBgqGJZGnMz+PGzzeSEokseC/MB80hhpWJZGgvBTIzOrlSz2YwV5gPmkYSKhQ1FYiY2GAyw1kStVitWmA+Yhw1Forcw2FA0G4l5CgvzAfNg0FZZy15X5YK2xBuJeQoLk1KjWJZ8DBalXv6ImRyt7T7C4qTQ1hzzMFhVOgAEJugjtJWCOWzkgweqABNcLpdYq1VZV4fR709ZDre54IGqaDz4aCNJqbA4CbVa8lVQ6ABEhViO26CzgolKNBqNmB1y+MX1fU+Px7e+LTkQhQ2AK5CtL3J4eIj1WoV2SDwAMaVeAYt3sMRZ+phgsohErqvgp9YjFjeJXAPQeHCPBcc+Jrg/sCEV2pmkTXpAtAxmehDCoDHDnx+zvi4bk52dHazVqrRNE8ZNIXwQCh8HLQ2MwQ/rszf7az25IJ1nD5ktEV8tdD92nz8MJ6ivb9suhk82CxBosViw2Lf2lvhWgps3yazhSna2bNBAoS8Jq4kxkQqUtFlKm/AQFQsbiLNfPmfOJdBzP/qS4DsAJIxN+PwypGJhg9HBG/QhpagBQL8pGD+IBO3Eb/owgAu0lzJ+c7T2IVDSLYB+E5m8PFemWAcDDJKEz+WHrCdJ/oLEpsvLy1zxFQo7IPTTM3VzQSsE2kqI7bvdLtZqFcb1mfxu4nFhJxujP57q3U/vRQHJJAk6o3Rfoz1i3vuERLZdIfpNg2q1Cju6IBOT3d1ddoygL0JwMOh//I4g69nHvFyoJGX55JXMTLK+5Gg2m1inVWjnc99HBN82VJqYgQAyM4mVdEUgNGgSjcfjDbvXv37JcnGhXNKT40s0koBzAt2npui9//7+fjTLE6enpxvtLuGzf/D2K5aDk4nwu2JmKIT24WRuQut1HtmWO4wrZV2hQGgs5ftnTZYwgVdEmmjQTk5OmA8C40mJ6xJLB/k+k8NbwqTX60X3MxVK0M7u/Pw89duB7vMmiyHn+Oy6Kk9Jt8pp0CydNhhpZHnvb6EfFZNVoYOxxWkmgrdHqYNBbadt+c9Zblr/mrVkFn14zJ1vOwV9LB1LF3gllE9BZx5VxZvk3ATtHuZdqPKuDuWScbbPIh78bsH8KlHe74oLIXx0x7wqF+2wWGLlstLBi+RPXu9SlmQLBeNtrcKnyFeazpSlCE/Cs/1ddZNbWbpZQhdRQbzIdbFRn+MTtC9L/wN/W3gBtRLmxAAAAABJRU5ErkJggg==",VA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFkklEQVR4Xu1aTWwbRRQer+2YqFHhQAkSEteKAxISQqjiUIk7cKJ34AAnznAgSkKlkjROg5AiUC9wIInamJA4DlAhFe4VJ+CE6IHmhyakFCe1d9fex75Zr72Zt7uenf1pJfuTvtiZ9ey+75uZtzOzy/aaTRhkMrFg0Dg0QCwYNA4NEAsGjUMDxIJB49AAsWDQODRALBg0Dg0QCwaNQwPEgkHjI2PA6fEngeUKwBgjx9LkQzdgt163hTP44meAmRpAsVgkv0mTmRiw0zTgUDd567rMcWrw/vQyzFUtzu5xjcGBYcJ2owE7eoOcL0mmZ0DDgFLe6dIoqFwzukL7cXarwevg9wvvTvEeguc5sCx6nZhM3IDb9f86rct4l57dBCKwH3M5R7yX5Q08VwsK+VH4u0Wvq8rkDMAW10bsltJgvirf2oS2yIVqHUqPafRYh5c2m/w6JAYFJmYABnRRobX9+NkNgMX1I1IuEnuZGEdUJmIAjs+5arh4EwBa4MIEy/779U/75HdRWdmqkniiMLYBjngamMsWtLuyg4BmzK/XSV2RzqkMp4L9D5bN23lGjCkKYxmA4jHRiYEiMflFBeqaqzXIua5suqIp7hwBFGIMhVgGaGyEBMtpJzKwsNMrot0zdeXmn+JRgvLmPTsetfmCsgG869tCifiq21WTgPyJnnv+BRKjDBUNaPBZnCgcOWXfAh8GVNcQSgYwrQiL3+8R8bz1I7RaksjWgKDMj8mqjwG6rvP6i4uLcHx8LB6WAl9L5HKkTIxThokaMFs9EZMv3AWPC1GIDLz13e+PhAEzP+jdwIIgGpDP5z1H5YD1NU3rfnc/xThlmKgBV370hukPrGsYBv9E8V4zogD3Dbxm4ueOT6z9mKgBs7X+PQDhBt5PfNtOJw/EQujlEbG+Si9I1ACcFSYBvMWaa+dP8HQx3CwExrWt03jDmKgByIAZayRYlVehvX4Obn35Dpyxr9VaOwdPPzUu/ozANE3I56Itk9UM0Ow1wIb/GuCvphiWGi6+/RLo3563xb8Cb7x4SjwciKjDQMkAnAkWA3rB/AaGcSTGlRkyMiB8GNwXo8oQeHsUYw2jsgHIT7aCd20AEhoLEVEolkicYYxlAGMFItwlbmBmjaWlJYi6LI5lQN1sw9WbOhHvMuuhMDY2RmLsx1gGIIOWxS5bfDcwfej2IkyMTYaxDQhLhi6zwB/7hyQ2GWZiwOXv0kuIlmUBK5Sg9MTjJDYZxjIAnwUsrG0TwX5MZIrog49WDZheBf747LULb5IY+1HZgJ2jY/5gQhQaxjQwvWpxA/ATe+OBT6xhVDZApuuLVNv/Ccflb1C8w4lrzkzwrr3cFuMNopIBeJGZdbp/L8M0MLnSM+GtDz6PNB2ObMCh0bSnm9Fbv2dA+J6hKnKs1DUBp8P7plwviGyAStf3smWlYwA+fby6dpcbMFmRXxRFMmD3/r/A8s8QUX4cCTCqIUaeIFC0mxSxF+CaVNQgMpIBUVq/XDX4LrFY/sue3LaZKlju2W5ClHl8npoB+Njs0+XfSXnbSm9ShHB6gZMLZIaBtAGsWISFG7RFg+kEIJanlAO7wJnhVOWoMzkqwX7jmGg5oUssCKKfmHAGGJAB8p1eMHnd2X4XtZzQJRYE0U9MP7LRcUF8NgtkbzJMzIACO0UEhrFcq0N5yztkxDDTA4qeqHTyQC4BA+7Y44ixUSIyjHjhS1u9t8XSWgwFgdm3QTSgcOYs3PrtV6IpkgH/6Dq89/FXRGQYvdtlM7Xst8fcu8HEdQsKI8Gv30oZcPigCQsb8u/+4UuNmIjc/1NP/T5wDZhaCc8DUgbc3tuFfq/BeYktfvbl1z0GZA8UPXmtxZNhbAPumbo9s6NCg4izwLnO22OGmX3rI1D0h8sdA0IS4f9u/ujxog9qpQAAAABJRU5ErkJggg==",ZA="data:image/png;base64,[encoded data, 4572 characters]",WA="/assets/PUMP-ICTVsk_g.png",JA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAACbUlEQVR4Xu3Xy43cQAyE4Y3FcAqbu8+OwnAADmNtzAIeYD5Q6gcpqQVsAf9lWE1V8TZvbyfpz++PvyP4/nayUBb3LyuDV+P3lpAhz8Icl8hQZ2Oe02SQqzHfofLjq2DOcvnBVTF3ifzI6pg/JZffBXtMyaV3wz5DctldsVe3XHRX7NUll1Tx/dt7E99UYL9d+bgCS/bingz23JQPM1hoFvfOYM9QPprFAhX4jRns+yLNsxhc9Fe97cXeT2mcwcCZ8L6f3SP2fkrjDIbNBnZXxU57f0rTDIbMBv2POyt22z99AMO1Auqt9rcoLf+gN5y+CN/svdUzQtkBDLUVTM8evt3a4XyEww7gPPL04I5oj/MRTjuA88jnLPJs+fT0UlL+549fzUDOI8+W13mvp5f0AQwTBWrN97yRvzUfofwAzns9I/7WfITDD+A88kjL35qP8HUAfxilFcZ55Bn1t+YjLHUAfVveHk8vSxzA+ahXzwhLH0Bf5HU+yrIH0DPiG2HJAzjf8u15e1nmAP4m7uh500P6/0ArlPPI08L3MzsiSv4NtoI5jzx7+HZmxxZLH8A3o+97WO4A+iJ8k+F5gMoj7M1GPBG+y/BSPnuAB1shLdHr2fNXYP9PaRolCmuZXk/kq8LeT2mswFJRsb3ZEdj7KY0VWP6sknvY+0Was1j+6gPYN5SPMlj+ygPYc1M+zGD5WxzgIR9nWOEA9uuSSzJceQB7dctFWW53gIdcluXsA9hnSi69C/ZIyeWrY/4S+ZFVMXe5/OAqmPNQ+fGrMd9pMsjZmOcSGeoszLGEDFmN31tWBs/i/tvJQi18f5T+AQGOItJsWn6vAAAAAElFTkSuQmCC",$A="/assets/RAY-DjdDnD_x.png",e3="data:image/png;base64,[encoded data, 5012 characters]",t3="/assets/TRUMP-DhGGs5Yg.png",n3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAADAFBMVEVHcEz/AAD/AAD/ABP/ABP/ABP/ABP/AAD/ABP/AAD/ABL/ABL/ABL/ABL/ABP/ABf/ABP/ABP/ABL/ABL/ABP/ABL/ABL/ABL/ABL/ABP/ABL/ABL/ABP/ABT/ABP/ABP/ABP/ABT/ABP/ABP/ABL/ABP/ABP/ABP/ABL/ABP/AAD/ABL/ABL/ABP/ABL/ABL/ABD/ABP/ABP/ABP/ABH/ABL/ABP/ABP/ABL/ABL/ABD/ABT/ABL/ABT/ABL/ABP/////ABT/ART/BBf/AAP/Axb/AA7/AAn/AAL/AAb/AhX/ABH/AAT/AxT/AAf/Ahb/AAX/AA3/Axf/AAz/BBX/ABL/AAv/ABX/AhT/ARP/AAj//v7//f3/AAD/+vv/Bxr//Pz/cnz/Cx3/NkT/Bhb/BBj/09f/BhL/3eD/Dh7/9fX/Gy3/8PL/S1b/paz/ABD/IDH/UF3/Ag//EyT/vcL/Fij/2dz/GCX/w8j/jJX/Xmn/eoT/q7H/5ef/VWH/AxL/8/T/+/v/qK7/LDv/DRn/QU//9Pb/3+H/Gyb/CRX/4eT/maD/gYr/lJv/Chr/o6r/BRD/M0H/+Pj/9fb/SFX/aHP/4+b/Bhn/6+3/g4z/v8T/Ul7/c37/ZW//XGb/nqX/Chj/OEL/JzT/KDj/7vH/iJH/Pkv/YGv/nqb/2t3/0NP/mJ//v8X/ECL/sbb/////1tn/9vf/Lj3/WWX/bnn/ys7/6Or/YW3/5+n/yc3/HS7/Jjf/Okn/2Nv/TFn/Giv/oqj/hpD/wcf/7e//trz/qbD/sLf/t73/fYb/ipT/ho//Q1L/4OL/nKT/foj/j5f/9vb/xMn/8fL/vcH/MDv/wMX/eYL/kJn/PEj/+fr/jpb/AxD/Bhj/vMH/FiP/lp7/r7T/cHn/SVb/6+z/xsv/7O3/srj/1Nn/rLL/Ex//OUb/M0P/RlD/FSH/5ej/y8//JzH/Hyv/XWb/doH/WGX/0dT/uL7/xcr/nKX/s7r/a3b/ZnD/usD/nKP/WV3/zNC5p18ZAAAAP3RSTlMABAL6/fv8Af4D947rXewVKJAp9IaPYqhtrWGpaxkXd3j+1dbY07m60UEF+M/n9YcujcLHLMTv7eocPz/nv77o1nyeAAAG+0lEQVRYw41XZ3QTRxA+CVl3kjDYxqYX003vYCDJzd6dupAl25KLrFhA3OgBEzo2LZjeQujw6J1HC4ROKAkQemimJSG9d1JJsnfnotOdseeHnp7ezqeZb2dm5yMImalV/EdEuKFV83g9Revjm7U2hEeR+EcVSVRupI4gdG1i4vQIGy0Y/03f3tAGA+sqhcDuvZvEoRREa7QaDcX7Uxr8lUdpGdtIOPAcU5NEo+jqCFFhom+5UZowCqH46MYEqX7e35N1OyA6TEMrmiaMRh3qqglVxdl3fxG7U3SFRmGIrp0rYIIkidq10PPcRQhUqzZ/VsGfjEG0lq7UtDTqQsoR1KSqAdJSdBUMB1FHFUolqdbVS6lGV9GqpdTTSWMgdWQdFEZX2cJQA1LCpIow8P9vY6ocA4oMvk0dUR9hf3uSx8gaq4ZSDdUvL0odEdVRSzH2ASNsTs5lHs5UAYXSdowg1KUE6LohLc3Y52fv3TN38rQBXs6RbqIrCUaLeqhLaNARDQUCWctq4G3So7uHvx5td3HWJI+tYpQw1FBMgiRr1tDw1Z/qHj0kUBwYJKDcPHK6/xsjstItYkpGJk2WhKZGTeEudUR0yQ0arQugGGZv/fdu/mwBJXBiz4rJ+/PcHOcUUkoLCaETHwJJ1OxFUSUA70PGYrh8z2/K27jqwpd79wkwb6+ct2bLaI/VYqUl2VBUz8YE35uxZSWUlpzt27kS4I7T5HZwTuPRGR/PObJcQCnccX7CSY8pRRpCE74Y2rZoWtr/LLca/ps/DOBZjinTaPS4nZzDNOqb8ZufzhRQpuaYEoIvommLtpiEvqhsfqS6B9+EGf5LALeLrCzN2HDejMnMcea8os3FAYA/pQga1AeTaAhqAkyjb5jTurYQctdzrJgxhsli/asmwabTAE9nBSOEoRh8Ce3LIxBoHDL4Abd+Jrz+syW1JOMEu/MCwOX1/gkAj4IRNChORUS1o8unAEpL/g36WzKtRbcBVpjFs4nunG0AY4ucD7n+AP8EIVB0uwgiHAWPUBaf2VGQlpWUcwXg/HQzi39Kf7wLYMEsL8s8dP0NsGt6UkJ5COFEJAoeY6nuo4Uww2lLsFvvAPzwo4NluVuv4Wi8/ZYxdq/ZP3QT3PjKbStriEiitSQCzMJU3zqHEVNnWXUWDn3LcUOHwOK1/nQX583c8GT1zrMB+CLPzpRG0IpohigpwBM4O9rE8Nnc2guBNUsBdkxzHN2y5toHuUIxTIEFC0trmkLNiXhaAsB4XjkBSzmW5yP9u3PYIaNw27rtJR2WPfXaTRj7wMSUsRhP6EOajLVMgLdGMiL97nnFU8S22n7u4tbjp/r5n8HlMUm28uN6IrRLU5NGLIHjTqMA5h21BPfSzr9mHF1mxlPGbrkI1wdaE4M7ipA9BUbrRN8chwBgMw+EjEWclXMm2fFoyeS2Aoy3sJLjshQEGj8ZJaRpdL0Kn416kCWOpUTXvSXwDif114eSiI2n8bBDoNFyEE6wHpHzBO9Pb8K75n7BM4EnsTmiFGgcK0TAcuMg3y16pNhnHYHs6SNtkpmCmhGtkEZO476MgemYBZtzIixwCXQwyc5hsHyDOUG6MaDWIaUsmC39I5jnwFwzpk/hkkgaa7kKU544EkNne2RIM4k0Yu4O7TYx+KnJhaXChWRxBwC3KRu6s+BmimgnYxE/Mbkw3mHEA2oQnORTSHQuKoQrruTQyU63iyJUcfIQWG4u5HttfBn4FpltdELSmJlw5kEBIwugPZ7rMfJ33eY9tjiw37wMp3LzlJthCnLO8BWcIH+cDHgm9pFHgGn8HMZxmdxByM20M8nWbTBIWsGlEfTFDwse61o5jatgUl6aYxzcMOEL+EVewYI/Huv8btFEnoNA469O80SY6MrkTmbIKrgkg1jsriYa96QoJRrfM3t+h/tO77QhoRVc+rT1wnsr/7h2UqJxY3HxMc9sfPePt/MVnKIUgPC4is+7LASb+RxcHXAdJjvy5RUsMlD6vJctGFIaHZMhewvAxs0QkFWwdMHAK466h6whcBl/75sKZ+8rVbDYBt10pZuemojoqJU39Th4Gab44A9XcprSklUrKnhNE9a8EBKmBXyQAWMXFjCVrXl8MUQqIOT78MKjUMGCv0EiG/De2iCUSKPjABQvVqpgnsA60lUX36Vs2cY0ToK1lqwKlm01KVv364SojUT/h3P8rBJ/Cuu+IDi6SAUHM3w3a2eUBIeBVJYsoZIHDfegqkseQXR17ioRXQyjILpe6l6x/MS9WZnse6EuWaHsE4Vn4+j4ioVn9ehGzxWeovRtFNuSl81y6RvXpHdl0rdEfKvaGNqHiu+4mDa6qohvHoLPkYwKN7RuFq+nKX1881aG8Ag+cJVC9P8Driqp8mNoLUAAAAAASUVORK5CYII=",a3="/assets/UNI-D58z1jTz.png",s3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAI/ElEQVR4XuVbaWxVRRQu4Y/QFoWgRoyIRqyJidEfGkPkh4lb1PiDvkdxYdOwyKIxQhEBFSO0ENGCaEFFCyoqCugfqRH7XmtpQZYCBQp0r3YB07J0p8s437y+l7ln7jL3vj5a45d8afPumTNn5s5yzsy5cXExxjD/b2MTJgVS4n3B1QnJgd3xyYEiznrONs7ePvL/g3V41ieThjLDpuTeQvX9B8CGJPr2TuSNyOCNKeV/WTSEDs6MRF9wInTT2gYNRvizR8X7AksSkoPltBH9RaHbF0xFXbT+AYNoeHIgnb+lZmpwrMjrusz/po3wFwxgR/h3DOWGLOBzt5EaePUYbIQNsIWaF1Mk+nOS4n05B1SDBoa8EwphE7UzJuAVTudzvYUaMfDMaeV/p1N7+w9+NpQPufVqxYOMvuD6/p8SMwLX8BUY+7NaoQbHzy5gY6b9ofxuRciOn1Wg/K5L2AqbaTO8gSviQ34PrcSJt87MZ0uzylhR+WUGPLr8iCJjRcj28jIou3RrmdBFZRzJbY6+E8RK7+7N38nf9ue/1rL2zh7R8DDcdoCM9is97LPsWqGbytpRjAQ+dWmztIH5RJVacdSUXPbed5WsjTQ8jGg6IAzoXvV9JRvJ66JlrDjcl7OBtksL8VjtTRSa8YHX/mQnqluovRF0dfeyiamHlHJWfIjLoowVTvK6UCctZ0N3u4PY50PbClWkcOq6k6y1w/ytV9S3sdQvSz3NYZRJ/aKUVTS0UbUCqBN103Km5Nu2vp8Q8vAKFSUmXMwN7DV5UQ0XOtnLH59m104OKmXccoQ/yOZyXdBJ0cPrhg20jCm546a1PYbcWxMFhKjYDF8H6tmYqfpbni6xNUK3GXQ7QbjNdkBwoePbY+ih92V0dvWIN0Vl+5uoA3XJwCjUmw7BRttIkgulqYWMxOJD53xLRzd7euVRRTZWRF2oUwZs0lwY02m7BdAzfWEmLRAhth+swDI6u3o9NZ6CPnci6kTdMrATYTumsjIRtpuOAhw0UGFK7MEU8z7xNuwp6HMdom4K+CJUTqEvsMTYesaGOJ3kwAujTs72YIMip0sK+lyX3+Y2GPTAxiQHjxFtNRyv4byNClHCFZVx7mInu9lFgAM+8VaRcJNPVKlO066C82xmxil2XYq7rRM2nLt4xaALdVA5SpxbRjqA/5BBBWTCKem4Ynz7CzedUeSseAeP7ALHmgzlrVDOnaeHlx5WdNhxQeYZgw7EIU7OFw5aIx3gdHr7Jo/IZFSfb9d+U2O5IZXn2g3lnYAGPLJMP3aAwwWbZMBmKicTbRaNx9k7fUh5tKLZoHzZtnJFxopZe+sMZYHDZZfZhz/VsBVflbO1O6tZ3okLVITV/NPBRj9rv6LLpC+pqLxZkaHEnUWcuLQweRhm0pwCg+Ju7gHd/tI+Rc6MaABdOBdtOavIgZNWHVem2YJM/R0GNsE2GbCdyslE2x2dn1kbSgxKC0suKjJWfPD1g4aymAoJPlUuzIyfawzy2YcbFRk7wjYZsJ3KGOgLrsb8tz3w2LTnb4PS9B+qFBkrIgSWUfJXqyIjc8Kig+xMbWuEmBpUxo6wTcZmbjuVkYm2YwTgrk55GGZusXF+Tk4vVmSsiAWQRotudg+3hG0ycp07sCiu71KSPoiwiqzg971yQJGxY/5JdYE7ePaSiODu574790GUMl4J22RgylEZwnqMANzS0gcRtrQbg46bXIa6ExYfUs4HZVxq7WaB400sbUcVe2z5ERH/Ux26hG0yYDuVIWxDB+B6mj6IkA7hRA8GPr6iiNU2dhgVWaC+qZOt3F7BRj+Xp+hxIkaTDNhOZQh73XeAxyF7w/N57I2sMnaqRnWDzXCaL5h3zSlU9NgRL0eGbgfEdAqY8Z75+8ViiECGrjEyjnBnxs2I8zoFkK1BH0RI3Vi3i6AO7563X1yA1JxXp0ny6uOKvBXpIojOpTJGBuuct0HiprrZBjH3cXAR5sgUe9f2xhfyhJss4/1d1YqcFZVtsFhjG3RyhOBMyHDjCMHxkfHUO84nR69uNkZ2OqFtmGnEEdr0i44jxN1B+kBmNK7wdnJYoePaIkiSseZH/Q4vcOsK8zDAUzB0m2YwhPlLkcnfyvUWW1zKmmLFZ3jm3WOKnBk9B0MICekDSoSWMpxi7TAR+Ow7ZXwrQFNzlzgBWsfnNxwgDHN62AoUV7VoO0YI0WUghKcylJE0PLcHIlhddW99cJZot9VZAZ2kecwtDmc8H4gA8RpHYnRozs/UD2rGvbiP7eZvXBf7T19i9y7U327hU8jAuYKrI7G+xEZFSCaGqQzc1bnJ+gAR/KzdWcXyTabFscpm9ml2LXvy7aO2ZwaUoUNR470hDnCpHGUo8TIC52NxLCj0dOebQL0ip0sK+lyXOJqXARudEinEsTgjWae4LKCClLh0oJi7Uf/YSiYFfa5Ds4sRXN5QOYXKxUhc5GrMNtsT1040EQIXlToODiUFfe5Es6sx7CRO2SO4/jO9GgO4QDotQGl2OdrMgw7MXSobK6LDo7gcTaPtjiCU96t3PU7DZKy8sz9y9Lyiptn1OPyfaR/oXo875BdHmyCx7ff6fgmZKZF0YZUggTQcKm9GxwQJAf+Oobp5wOgEmigB1DV1sjkbS7S9ODvC4UK6jVmKDEYh8ohoGTPyxhdqpcgAif78JN18YLskqbL6NrZoSykbO8PeKTGjSJLibxaJVmZwlSSVnNOqnyTVh/jk3OmqInNi8THz5cNAyhtS32g5K+I+YUDT5MIYPilng4kyU2L7wR5MnaUw+itREr6IUxaIgUie9gw/85QqC1eU3vNF0wGIQ+CKOyU+UIZSZTXnvRXGRZMsvTWULI3B7KUDRLJ0lvdkadhO2+MJUOR2JMhEurybbBLIogz9XZewtd8aH4HYHvWTpweKIjk6mgxxJ8SLJGq9POKrSrFt53pb7d0CeyocC8WIgSJ33OC7UDtji//zZ3MyQvnFuWkIM1UDY8O+sD3dMqwdCFy9T2cDSwZVwxUwfDwtEi/75+Npn9CREUpsHMQfT1sBZ+99ly+YJjafz4vfjJ/PI40txvgXDtQRluxs1HwAAAAASUVORK5CYII=",l3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAACaUlEQVR4Xu2aPW7CMBiGOQJH6BE4AkfoEThCj8ANIiWwsCAmNnoBJCQ2JtiYUBc2Bla2Vl9Vq+R1En/+xQY/0rMQ298PdpSU9nqZTCaTyfCpqu+onU4HmLI7iqIvBYxRb2CgeL1i6vZU1aYhULw6BwOkoDNw4XQcYin6TCZfDQunozW4YIoagwt1GBqM32lRvGFpaqpqLC3UYWgwvlJtcAGFocH4SsuywBLbwckMQ4PxWbKg84ITGYYG4zNlPCHKk1gOVyuW+8sFa6mB49vE+Gw70bzxmbg5n7HmGjjei63gQA/G2wAc5MkoGkDWMLzxdUnnVFUsB1rD6sy3WZaj/wbgRQP7sxnm7o23xUKKb+Rf8RvpgoaUzKOw3hn0oid9qGkTtG0Hy6U0llQdCxxPUpM/Tycc+ov1bpA+0FQwWq+la02aNAClb15gvQtc3QO4umjAvVYNqIEXmRJ0A8TPVbp4siNM59aLF+AghvfQYy5edy0+Shs1oBMcrFAFbfmP7VZ7l9A9RXVcCJynVAk9IOAkhZRsaMa7nZQHw3cstxmDJgiLwwFzdcb8eJTisdX+yYwm4CIW0lmlb+16u2FdNWiM0bnuUrt4geMmkKpzjeOtNS7+HlzUwqANcAoubmiwBngBgxgYpAFewWCaem+Adyz/ScJrA4KCwZl6a8BDwCQYemnAQ8FkFNIfSvBN0OqtMAowqVBGBSbnV8ZPXI9ATtSHkRYvkBN2axJg0q5MCkze1iTBIkxNGixG16egqvZSYSonkzkukzZUEBbZ5tMVL+A04WmLF2DB6EuARb9U8YKXLj6TyWQycfADMiVWaB1DBnAAAAAASUVORK5CYII=",i3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAACP0lEQVR4Xu3US27cMBBFUS8302wwwwBZSZaRwAZakE+zSBX1IwFd4E7cVY/1NPDHx8PDZfz88evfFt2bFov1au7QePzR+t4weOjZ+v5teNjVes+leMxdetfpeMAIeuNp+PBoeu+h+Nioevch+Mjoev8uDJ9Fe3Rh6EzapQtDZ9M+KQybVXttwpCZ/cR+TQyZXftVcXl2X9gzxIDZTX0Al0tmcDcyi/uRYt83DCiZwd3ILO5Hin3fMKBkBndL9mBGyRL2/YYBkRncLdmDGSUj7L1gQGQGd7UXc7TE6zd7LxgSmcHdtX9+/3V8M2a17lv/bu8FgyIzuNubI2a1cte/2/sLQ2pmcLcno4R5tVxnPrX/8wEcqJnB3Wg/+nuEmdG+My/tP/0HiP6hOvfS/pd9gBK13yIyuSXtf8kHiGj9XqKV681q/9s+QOv3iNaeN6v9T/8AJa7KLWn/5wM4UDNDNG9mNBcRzZsZaf8vHIrMEM2bGc1lMbOkvRccjNyLeWfnqr0XHIzci3lH5JpV094LDkbuwawrctXe33C4ZC/maC/m1LTvGy6U7MUc7cWcmvZ9w4WSPZhRsgczWtq3iEuaxf3ILO63tGeIi5rB3ZoZ3N2iPau4vHYr7rXcintbtF8TA9a2cH6rNZzNar9NGDKr9kph2GzapwtDZ9Ee3Rg8i/bYheGj6/2H4COj6t2H4mOj6b2n4cN3632X4BF36V2X4jFX6z234WFn6/vD4KFH63tD4/G9mjstFot07+HhPP4Dgtj+dalEsHUAAAAASUVORK5CYII=",o3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFMklEQVR4XtVbvW4TQRhMSWwipYYngCeACsp0pEsJFZTp8gapaXgD6F0gETsIWaRIARIopAAJJAcJCgq4s5M4/zE3l6y1nv253fXe2R5plOR2787f7PfN7u05c3MVIGksLiYbNx92W/XnaavWSFv1TrpZT7Kfg5xXv3fQhj7oi3P4OjOD7ub8ahZUexjguGzW271W/THfZ+qAkYsauMJaI3mzsMz3nThG0rky1jr8OSpHPuJ57fKHq4q1zkRKI9moP5nMqJtYoRBwZ/UDTAdLnzmma9RNLMkb8rRXbjadjF4OfINZIccRhFkaeebYmZCWNMV1390enOy9GAgc7j5T+kRkwnE5oUy3vzxLh8ELXPR/Kv1i0Xt2KCPte1t3OWYtyhLCqxzSyKl//GNdO+omQIQSysKtFGKO/tm/LY5tBEff1wenf17z4REcZ17B1w0llu4cr4I0wuizyelw9ndr2P+iv8fNI4iXDQWLpDRC8KApoMuzZND/uqb0Fzz59ZJPGSJiJphLQdM5mP3dpxxDlhm3lH7M3vs7fNpg/8OS0m8cctw5ktbCMnd0YT9LT8Dk3giIj4EHH5eGAeqEwXm64ygvAcws3O5CrRdc79UpnW1kkzvv7Th9KPYHV9c/+ramzCZBpdGst0eC93V+Dpyxv31POQfEqNrq3OYPmDFsOMxKjs+xsducXx0K4LuPZxKgyOQEdSbpMpI28XwFGMkCpbGALMB5d0c76vAHpCwWQrp6xqgeflpRju9v38/vgTWCrqRgsFwK3gK0JDPkhiKyAEdZgNxHNjnAZJJM2eQEdCJwFgULkLT9H3psAmCki6ALiAXTQe4fQ4D8Iel6Z1dptPEoq3MZsgAuDz3IBlxDnMOCmiB/BlkA/G6abm3Mp8Or11VqowsPPq/kN/cVIBTyvXFfmKLOW1yJ2IPmfyZMSfxelQCnWfD8ObzZrDWC1v+oVz4mWJUAMmGcOl8pZvZwFLLVjZrFqo+Pgy4mGAq+lyCmxBATTPFgpDlYSNm0TNOb7qEmBFhc8bVBni4DBRiMLQCgWweAwiRDgdWhyeSQgTLCBQgsARkmAQSLngEYLsGwsC7naJiXQEfTYKVNAJiR6ckOu0BFwPKYzxM7TPKxOALABAOmwSIBBE5+vxpxZ90mCUO+D2Yb+V5yWxQBMA2GLIRcBQBkk/QVgCG3xRAgXwiFLIV9BABE27QJsL9540H0h6FZEmD4xogbimgTAMTUJe/giOOhAug2RWMIEG0/AGbHfUAx9Ym/fQXAIkg3KyDL4m6IRNoSY9dn+grAxKwAU9XBWwB5Syz/YiN3sNAkgIBp9TaOANgms8FXAOVlqW8WgEUwZQPXLyC/KpOJrXAbcC0+p5CY/xkh06HLEtfkD7JJ6kwOPO9+ka6kQucPLuy9rT3i+HNwRx/a0pv7utIEk2Cu5LiHCHkwkmnKBtGOOjaVBcgbLQyku2+tq6zgDTGyQa5z+fhVIKOvwuQvUMjXEYA/hGx6qiwIHgjxAhMFxN9cJsgG8XJVgM8PMjkDFec3YdxSMJEF0IHPiUeH0RfwfVnqykkK4Dz6AiEPSS607RWaFlDj0vtrcgJlloJskjA53cvVOPRIfR3KKgfQ9C2QWPROexP4wrNCjmMslJkJsRlt5BlphEVS6dy0fA0uBsqaHWIw2O19cV0OHf4AE2M26qWlvQ2TF6LWyXd2J410EiKUXeshwEZDyJsmZzbr7akY8SJc/2NlWwkglFng2Lfk+8wM4M4YuW7T4d/nsz7oW5Wj/wdXGukMTSgLegAAAABJRU5ErkJggg==",r3="data:image/png;base64,[encoded data, 4716 characters]",c3="/assets/WIF-CBkpySMY.png",u3=Object.assign({}),d3=Object.assign({"./ARB.png":zA,"./BNB.png":UA,"./BONK.png":HA,"./BTC.png":qA,"./BUSD.png":PA,"./DAI.png":QA,"./DOGE.png":FA,"./ETH.png":YA,"./JTO.png":GA,"./JUP.png":IA,"./LINK.png":KA,"./ORCA.png":XA,"./PENGU.png":VA,"./POPCAT.png":ZA,"./PUMP.png":WA,"./PYTH.png":JA,"./RAY.png":$A,"./SOL.png":e3,"./TRUMP.png":t3,"./TRX.png":n3,"./UNI.png":a3,"./USDC.png":s3,"./USDT.png":l3,"./W.png":i3,"./WBNB.png":o3,"./WBTC.png":r3,"./WIF.png":c3});function f3(a){return a.replace(/^\.\//,"").replace(/\.[^.]+$/,"").toUpperCase()}function rv(a,l){for(const[i,r]of Object.entries(a))l[f3(i)]=r}const _e={};rv(u3,_e);rv(d3,_e);function Vt(a){return _e[a.toUpperCase()]}const h3="_field_e7lz9_1",m3="_compact_e7lz9_5",p3="_fieldError_e7lz9_9",g3="_fieldLabel_e7lz9_15",v3="_fieldInput_e7lz9_23",y3="_currency_e7lz9_49",_3="_currencyIcon_e7lz9_58",b3="_currencyRub_e7lz9_70",x3="_currencyUsdt_e7lz9_74",A3="_currencyHasLogo_e7lz9_79",S3="_currencyImg_e7lz9_83",Tn={field:h3,compact:m3,fieldError:p3,fieldLabel:g3,fieldInput:v3,currency:y3,currencyIcon:_3,currencyRub:b3,currencyUsdt:x3,currencyHasLogo:A3,currencyImg:S3};function bg({label:a,value:l,currency:i,onChange:r,error:d,compact:f}){const h=!r;return o.jsxs("div",{className:f?`${Tn.field} ${Tn.compact}`:Tn.field,children:[a&&o.jsx("div",{className:Tn.fieldLabel,children:a}),o.jsxs("div",{className:Tn.fieldInput,children:[o.jsx("input",{type:"text",value:l,onChange:r?g=>r(g.target.value):void 0,readOnly:h,placeholder:"0",inputMode:h?void 0:"decimal"}),o.jsxs("div",{className:Tn.currency,children:[i==="USDT"&&Vt("USDT")?o.jsx("span",{className:`${Tn.currencyIcon} ${Tn.currencyHasLogo}`,children:o.jsx("img",{src:Vt("USDT"),alt:"USDT",className:Tn.currencyImg})}):o.jsx("span",{className:`${Tn.currencyIcon} ${i==="USDT"?Tn.currencyUsdt:Tn.currencyRub}`,children:i==="USDT"?"₮":"₽"}),i]})]}),d&&o.jsx("div",{className:Tn.fieldError,children:d})]})}const j3="_swapWrap_172k4_1",w3="_compact_172k4_6",E3="_swapBtn_172k4_10",Dc={swapWrap:j3,compact:w3,swapBtn:E3};function N3({onClick:a,compact:l}){return o.jsx("div",{className:l?`${Dc.swapWrap} ${Dc.compact}`:Dc.swapWrap,children:o.jsx("button",{type:"button",className:Dc.swapBtn,onClick:a,"aria-label":"Поменять направление",children:o.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:o.jsx("path",{d:"M8 2v12M4 10l4 4 4-4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})}const C3="_field_zffpb_1",T3="_label_zffpb_7",R3="_wrap_zffpb_14",k3="_input_zffpb_18",B3="_readonly_zffpb_37",O3="_copied_zffpb_44",L3="_iconCheck_zffpb_59",M3="_iconLock_zffpb_68",D3="_withToggle_zffpb_76",z3="_togglePw_zffpb_80",pa={field:C3,label:T3,wrap:R3,input:k3,readonly:B3,copied:O3,iconCheck:L3,iconLock:M3,withToggle:D3,togglePw:z3};function ke({label:a,value:l,placeholder:i,type:r="text",onChange:d,onBlur:f,readOnly:h,required:g,icon:m}){const[p,y]=A.useState(!1),[_,b]=A.useState(!1),S=r==="password",j=S?_?"text":"password":r,w=()=>{h&&navigator.clipboard.writeText(l).then(()=>{y(!0),setTimeout(()=>y(!1),1500)})};return o.jsxs("div",{className:pa.field,children:[o.jsx("label",{className:pa.label,children:a}),o.jsxs("div",{className:pa.wrap,onClick:w,children:[o.jsx("input",{className:`${pa.input} ${S?pa.withToggle:""} ${h?pa.readonly:""} ${p?pa.copied:""}`,type:j,...d?{value:l,onChange:E=>d(E.target.value)}:{defaultValue:l},placeholder:i,readOnly:h,required:g,onBlur:f}),S&&o.jsx("button",{type:"button",className:pa.togglePw,onClick:E=>{E.stopPropagation(),b(R=>!R)},"aria-label":_?"Скрыть пароль":"Показать пароль",children:_?o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94"}),o.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19"}),o.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),m==="check"&&o.jsx("span",{className:pa.iconCheck,children:"✓"}),m==="lock"&&o.jsx("span",{className:pa.iconLock,children:"🔒"})]})]})}const U3="_notification_159u2_1",H3="_slideIn_159u2_1",q3="_notificationWrapper_159u2_19",P3="_content_159u2_24",Q3="_closing_159u2_30",F3="_slideOut_159u2_1",Y3="_icon_159u2_58",G3="_success_159u2_71",I3="_error_159u2_76",K3="_info_159u2_81",X3="_warning_159u2_86",V3="_title_159u2_91",Z3="_message_159u2_99",W3="_close_159u2_107",Ya={notification:U3,slideIn:H3,notificationWrapper:q3,content:P3,closing:Q3,slideOut:F3,icon:Y3,success:G3,error:I3,info:K3,warning:X3,title:V3,message:Z3,close:W3},J3={success:"✓",error:"✕",info:"i",warning:"!"},$3={success:"Успех",error:"Ошибка",info:"Информация",warning:"Внимание"};function ts({message:a,status:l,onClose:i,title:r,duration:d}){const[f,h]=A.useState(!1),g=A.useRef(null);function m(){h(!0)}function p(){f&&i()}function y(){g.current!==null&&(clearTimeout(g.current),g.current=null)}function _(){d&&(y(),g.current=setTimeout(()=>h(!0),d))}A.useEffect(()=>{_();function j(w){w.key==="Escape"&&h(!0)}return window.addEventListener("keydown",j),()=>{y(),window.removeEventListener("keydown",j)}},[d]);const b=r??$3[l],S=l==="error"||l==="warning"?"assertive":"polite";return o.jsxs("div",{className:`${Ya.notification} ${Ya[l]} ${f?Ya.closing:""}`,onAnimationEnd:p,onMouseEnter:y,onMouseLeave:_,role:"alert","aria-live":S,children:[o.jsxs("div",{className:Ya.notificationWrapper,children:[o.jsx("span",{className:Ya.icon,children:J3[l]}),o.jsxs("div",{className:Ya.content,children:[o.jsx("p",{className:Ya.title,children:b}),o.jsx("p",{className:Ya.message,children:a})]})]}),o.jsx("button",{className:Ya.close,onClick:m,"aria-label":"Закрыть",children:"✕"})]})}const eS="_pill_3oadq_1",tS={pill:eS};function nS({children:a}){return o.jsx("span",{className:tS.pill,children:a})}const aS="_btn_ytb12_1",sS={btn:aS};function Zn({label:a="Подтвердить своп",onClick:l,type:i="submit",disabled:r}){return o.jsx("button",{type:i,className:sS.btn,onClick:l,disabled:r,children:a})}const lS="_field_1845i_1",iS="_label_1845i_8",oS="_trigger_1845i_15",rS="_triggerOpen_1845i_41",cS="_value_1845i_46",uS="_placeholder_1845i_50",dS="_arrow_1845i_54",fS="_arrowOpen_1845i_61",hS="_dropdown_1845i_65",mS="_option_1845i_82",pS="_optionSelected_1845i_95",na={field:lS,label:iS,trigger:oS,triggerOpen:rS,value:cS,placeholder:uS,arrow:dS,arrowOpen:fS,dropdown:hS,option:mS,optionSelected:pS};function Ph({value:a,options:l,onChange:i,label:r,placeholder:d="Выберите",id:f,disabled:h}){const[g,m]=A.useState(!1),p=A.useRef(null),y=l.find(_=>_.value===a);return A.useEffect(()=>{if(!g)return;const _=S=>{p.current&&!p.current.contains(S.target)&&m(!1)},b=S=>{S.key==="Escape"&&m(!1)};return document.addEventListener("mousedown",_),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",_),document.removeEventListener("keydown",b)}},[g]),o.jsxs("div",{className:na.field,ref:p,children:[r&&o.jsx("label",{className:na.label,htmlFor:f,children:r}),o.jsxs("button",{type:"button",id:f,className:`${na.trigger} ${g?na.triggerOpen:""}`,onClick:()=>!h&&m(_=>!_),disabled:h,"aria-haspopup":"listbox","aria-expanded":g,children:[o.jsx("span",{className:y?na.value:na.placeholder,children:y?y.label:d}),o.jsx("span",{className:`${na.arrow} ${g?na.arrowOpen:""}`,"aria-hidden":!0,children:"▾"})]}),g&&o.jsx("ul",{className:na.dropdown,role:"listbox",children:l.map(_=>o.jsx("li",{role:"option","aria-selected":_.value===a,className:`${na.option} ${_.value===a?na.optionSelected:""}`,onClick:()=>{i(_.value),m(!1)},children:_.label},String(_.value)))})]})}const gS="_wrap_19cox_1",vS="_fullscreen_19cox_9",yS="_overlay_19cox_15",_S="_overlayFadeIn_19cox_1",bS="_spinner_19cox_33",xS="_spin_19cox_33",AS="_sm_19cox_42",SS="_md_19cox_48",jS="_lg_19cox_54",wS="_label_19cox_60",ES="_srOnly_19cox_67",dl={wrap:gS,fullscreen:vS,overlay:yS,overlayFadeIn:_S,spinner:bS,spin:xS,sm:AS,md:SS,lg:jS,label:wS,srOnly:ES};function Dn({size:a="md",label:l,fullscreen:i,overlay:r,className:d}){const f=[dl.wrap,i?dl.fullscreen:"",r?dl.overlay:"",d??""].filter(Boolean).join(" ");return o.jsxs("div",{className:f,role:"status","aria-live":"polite","aria-busy":"true",children:[o.jsx("span",{className:`${dl.spinner} ${dl[a]}`,"aria-hidden":"true"}),l?o.jsx("span",{className:dl.label,children:l}):null,o.jsx("span",{className:dl.srOnly,children:l??"Загрузка"})]})}const NS="_icon_73irc_1",CS={icon:NS};function Rl({letter:a,color:l,logo:i,size:r=40}){return o.jsx("div",{className:CS.icon,style:{background:i?"transparent":l,width:r,height:r,fontSize:r*.45},children:i?o.jsx("img",{src:i,alt:a,style:{width:r*.7,height:r*.7}}):a})}function TS(a){const{once:l=!0,...i}=a??{},r=A.useRef(null),[d,f]=A.useState(!1);return A.useEffect(()=>{const h=r.current;if(!h)return;const g=new IntersectionObserver(([m])=>{m.isIntersecting?(f(!0),l&&g.disconnect()):l||f(!1)},i);return g.observe(h),()=>g.disconnect()},[l]),{ref:r,inView:d}}const RS="_section_1kaq1_1",kS="_wrap_1kaq1_7",BS="_descBlock_1kaq1_16",OS="_descText_1kaq1_22",LS="_right_1kaq1_33",MS="_glow_1kaq1_37",DS="_row_1kaq1_49",zS="_check_1kaq1_106",US="_text_1kaq1_120",ga={section:RS,wrap:kS,descBlock:BS,descText:OS,right:LS,glow:MS,row:DS,check:zS,text:US},HS="_title_1ien9_1",qS={title:HS};function cv({children:a}){return o.jsx("h2",{className:qS.title,children:a})}const xg=["Вся деятельность компании соответствует законодательству Российской Федерации и требованиям регуляторов","Вся документация компании открыта и доступна для ознакомления","Операции защищены шифрованием уровня ERC-20 и проходят верификацию в блокчейне"];function PS(){const[a,l]=A.useState(-1),{ref:i,inView:r}=TS({threshold:.2});return o.jsx("section",{id:"about",className:ga.section,children:o.jsxs("div",{className:ga.wrap,children:[o.jsxs("div",{children:[o.jsx(nS,{children:"О КОМПАНИИ"}),o.jsx(cv,{children:"О нас"}),o.jsxs("div",{className:ga.descBlock,children:[o.jsx("p",{className:ga.descText,children:"ЭКСА — молодая финтех-компания в сфере цифровых активов. Наша миссия — сделать оборот цифровых активов простым, прозрачным и законным."}),o.jsx("p",{className:ga.descText,children:"Мы создаём инфраструктуру для операций с криптовалютой и комплексные решения для физических и юридических лиц."})]})]}),o.jsxs("div",{ref:i,className:ga.right,"data-inview":r||void 0,children:[o.jsx("div",{className:ga.glow}),xg.map((d,f)=>o.jsxs("div",{className:ga.row,style:{transitionDelay:`${f*150}ms`},"data-hovered":a===f||void 0,"data-last":f===xg.length-1||void 0,onMouseEnter:()=>l(f),onMouseLeave:()=>l(-1),children:[o.jsx("div",{className:ga.check,children:"✓"}),o.jsx("span",{className:ga.text,children:d})]},f))]})]})})}const tu=[{min:5e3,max:3e4,pct:8},{min:30001,max:1e5,pct:6},{min:100001,max:6e5,pct:4}],Pf=tu[0].min,Ag=tu[tu.length-1].max;function QS(a){return a<=Pf?0:a>=Ag?100:(a-Pf)/(Ag-Pf)*100}const FS="_title_ujt2o_1",YS="_table_ujt2o_8",GS="_row_ujt2o_15",IS="_range_ujt2o_31",KS="_pct_ujt2o_36",XS="_progressBar_ujt2o_43",VS="_progressFill_ujt2o_51",ZS="_summary_ujt2o_58",WS="_summaryLabel_ujt2o_73",JS="_summaryValue_ujt2o_78",Rn={title:FS,table:YS,row:GS,range:IS,pct:KS,progressBar:XS,progressFill:VS,summary:ZS,summaryLabel:WS,summaryValue:JS},Sg=a=>a.toLocaleString("ru-RU");function $S({amount:a,progress:l,commission:i,effectiveRate:r}){return o.jsxs("div",{children:[o.jsx("div",{className:Rn.title,children:"КОМИССИЯ СЕРВИСА"}),o.jsx("div",{className:Rn.table,children:tu.map((d,f)=>o.jsxs("div",{className:Rn.row,"data-active":a>=d.min&&a<=d.max||void 0,children:[o.jsxs("span",{className:Rn.range,children:[Sg(d.min)," – ",Sg(d.max)," ₽"]}),o.jsxs("span",{className:Rn.pct,children:[d.pct,"%"]})]},f))}),o.jsx("div",{className:Rn.progressBar,children:o.jsx("div",{className:Rn.progressFill,style:{width:`${l}%`}})}),o.jsxs("div",{className:Rn.summary,children:[o.jsx("span",{className:Rn.summaryLabel,children:"Комиссия"}),o.jsxs("span",{className:Rn.summaryValue,children:[i.toLocaleString("ru-RU",{maximumFractionDigits:2})," ₽"]})]}),o.jsxs("div",{className:Rn.summary,children:[o.jsx("span",{className:Rn.summaryLabel,children:"Курс с комиссией"}),o.jsxs("span",{className:Rn.summaryValue,children:[r.toFixed(2)," ₽"]})]})]})}var Ii=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_l,ks,Ei,B1,ej=(B1=class extends Ii{constructor(){super();ie(this,_l);ie(this,ks);ie(this,Ei);W(this,Ei,l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){C(this,ks)||this.setEventListener(C(this,Ei))}onUnsubscribe(){var l;this.hasListeners()||((l=C(this,ks))==null||l.call(this),W(this,ks,void 0))}setEventListener(l){var i;W(this,Ei,l),(i=C(this,ks))==null||i.call(this),W(this,ks,l(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(l){C(this,_l)!==l&&(W(this,_l,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(i=>{i(l)})}isFocused(){var l;return typeof C(this,_l)=="boolean"?C(this,_l):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},_l=new WeakMap,ks=new WeakMap,Ei=new WeakMap,B1),Qh=new ej,tj={setTimeout:(a,l)=>setTimeout(a,l),clearTimeout:a=>clearTimeout(a),setInterval:(a,l)=>setInterval(a,l),clearInterval:a=>clearInterval(a)},Bs,kh,O1,nj=(O1=class{constructor(){ie(this,Bs,tj);ie(this,kh,!1)}setTimeoutProvider(a){W(this,Bs,a)}setTimeout(a,l){return C(this,Bs).setTimeout(a,l)}clearTimeout(a){C(this,Bs).clearTimeout(a)}setInterval(a,l){return C(this,Bs).setInterval(a,l)}clearInterval(a){C(this,Bs).clearInterval(a)}},Bs=new WeakMap,kh=new WeakMap,O1),yl=new nj;function aj(a){setTimeout(a,0)}var sj=typeof window>"u"||"Deno"in globalThis;function nn(){}function lj(a,l){return typeof a=="function"?a(l):a}function oh(a){return typeof a=="number"&&a>=0&&a!==1/0}function uv(a,l){return Math.max(a+(l||0)-Date.now(),0)}function Ps(a,l){return typeof a=="function"?a(l):a}function On(a,l){return typeof a=="function"?a(l):a}function jg(a,l){const{type:i="all",exact:r,fetchStatus:d,predicate:f,queryKey:h,stale:g}=a;if(h){if(r){if(l.queryHash!==Fh(h,l.options))return!1}else if(!$o(l.queryKey,h))return!1}if(i!=="all"){const m=l.isActive();if(i==="active"&&!m||i==="inactive"&&m)return!1}return!(typeof g=="boolean"&&l.isStale()!==g||d&&d!==l.state.fetchStatus||f&&!f(l))}function wg(a,l){const{exact:i,status:r,predicate:d,mutationKey:f}=a;if(f){if(!l.options.mutationKey)return!1;if(i){if(kl(l.options.mutationKey)!==kl(f))return!1}else if(!$o(l.options.mutationKey,f))return!1}return!(r&&l.state.status!==r||d&&!d(l))}function Fh(a,l){return((l==null?void 0:l.queryKeyHashFn)||kl)(a)}function kl(a){return JSON.stringify(a,(l,i)=>rh(i)?Object.keys(i).sort().reduce((r,d)=>(r[d]=i[d],r),{}):i)}function $o(a,l){return a===l?!0:typeof a!=typeof l?!1:a&&l&&typeof a=="object"&&typeof l=="object"?Object.keys(l).every(i=>$o(a[i],l[i])):!1}var ij=Object.prototype.hasOwnProperty;function dv(a,l,i=0){if(a===l)return a;if(i>500)return l;const r=Eg(a)&&Eg(l);if(!r&&!(rh(a)&&rh(l)))return l;const f=(r?a:Object.keys(a)).length,h=r?l:Object.keys(l),g=h.length,m=r?new Array(g):{};let p=0;for(let y=0;y<g;y++){const _=r?y:h[y],b=a[_],S=l[_];if(b===S){m[_]=b,(r?y<f:ij.call(a,_))&&p++;continue}if(b===null||S===null||typeof b!="object"||typeof S!="object"){m[_]=S;continue}const j=dv(b,S,i+1);m[_]=j,j===b&&p++}return f===g&&p===f?a:m}function nu(a,l){if(!l||Object.keys(a).length!==Object.keys(l).length)return!1;for(const i in a)if(a[i]!==l[i])return!1;return!0}function Eg(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function rh(a){if(!Ng(a))return!1;const l=a.constructor;if(l===void 0)return!0;const i=l.prototype;return!(!Ng(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Ng(a){return Object.prototype.toString.call(a)==="[object Object]"}function oj(a){return new Promise(l=>{yl.setTimeout(l,a)})}function ch(a,l,i){return typeof i.structuralSharing=="function"?i.structuralSharing(a,l):i.structuralSharing!==!1?dv(a,l):l}function rj(a,l,i=0){const r=[...a,l];return i&&r.length>i?r.slice(1):r}function cj(a,l,i=0){const r=[l,...a];return i&&r.length>i?r.slice(0,-1):r}var Yh=Symbol();function fv(a,l){return!a.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!a.queryFn||a.queryFn===Yh?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function Gh(a,l){return typeof a=="function"?a(...l):!!a}function uj(a,l,i){let r=!1,d;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(d??(d=l()),r||(r=!0,d.aborted?i():d.addEventListener("abort",i,{once:!0})),d)}),a}var er=(()=>{let a=()=>sj;return{isServer(){return a()},setIsServer(l){a=l}}})();function uh(){let a,l;const i=new Promise((d,f)=>{a=d,l=f});i.status="pending",i.catch(()=>{});function r(d){Object.assign(i,d),delete i.resolve,delete i.reject}return i.resolve=d=>{r({status:"fulfilled",value:d}),a(d)},i.reject=d=>{r({status:"rejected",reason:d}),l(d)},i}var dj=aj;function fj(){let a=[],l=0,i=g=>{g()},r=g=>{g()},d=dj;const f=g=>{l?a.push(g):d(()=>{i(g)})},h=()=>{const g=a;a=[],g.length&&d(()=>{r(()=>{g.forEach(m=>{i(m)})})})};return{batch:g=>{let m;l++;try{m=g()}finally{l--,l||h()}return m},batchCalls:g=>(...m)=>{f(()=>{g(...m)})},schedule:f,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{d=g}}}var Ot=fj(),Ni,Os,Ci,L1,hj=(L1=class extends Ii{constructor(){super();ie(this,Ni,!0);ie(this,Os);ie(this,Ci);W(this,Ci,l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l(!0),r=()=>l(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Os)||this.setEventListener(C(this,Ci))}onUnsubscribe(){var l;this.hasListeners()||((l=C(this,Os))==null||l.call(this),W(this,Os,void 0))}setEventListener(l){var i;W(this,Ci,l),(i=C(this,Os))==null||i.call(this),W(this,Os,l(this.setOnline.bind(this)))}setOnline(l){C(this,Ni)!==l&&(W(this,Ni,l),this.listeners.forEach(r=>{r(l)}))}isOnline(){return C(this,Ni)}},Ni=new WeakMap,Os=new WeakMap,Ci=new WeakMap,L1),au=new hj;function mj(a){return Math.min(1e3*2**a,3e4)}function hv(a){return(a??"online")==="online"?au.isOnline():!0}var dh=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function mv(a){let l=!1,i=0,r;const d=uh(),f=()=>d.status!=="pending",h=w=>{var E;if(!f()){const R=new dh(w);b(R),(E=a.onCancel)==null||E.call(a,R)}},g=()=>{l=!0},m=()=>{l=!1},p=()=>Qh.isFocused()&&(a.networkMode==="always"||au.isOnline())&&a.canRun(),y=()=>hv(a.networkMode)&&a.canRun(),_=w=>{f()||(r==null||r(),d.resolve(w))},b=w=>{f()||(r==null||r(),d.reject(w))},S=()=>new Promise(w=>{var E;r=R=>{(f()||p())&&w(R)},(E=a.onPause)==null||E.call(a)}).then(()=>{var w;r=void 0,f()||(w=a.onContinue)==null||w.call(a)}),j=()=>{if(f())return;let w;const E=i===0?a.initialPromise:void 0;try{w=E??a.fn()}catch(R){w=Promise.reject(R)}Promise.resolve(w).then(_).catch(R=>{var V;if(f())return;const L=a.retry??(er.isServer()?0:3),B=a.retryDelay??mj,q=typeof B=="function"?B(i,R):B,K=L===!0||typeof L=="number"&&i<L||typeof L=="function"&&L(i,R);if(l||!K){b(R);return}i++,(V=a.onFail)==null||V.call(a,i,R),oj(q).then(()=>p()?void 0:S()).then(()=>{l?b(R):j()})})};return{promise:d,status:()=>d.status,cancel:h,continue:()=>(r==null||r(),d),cancelRetry:g,continueRetry:m,canStart:y,start:()=>(y()?j():S().then(j),d)}}var bl,M1,pv=(M1=class{constructor(){ie(this,bl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),oh(this.gcTime)&&W(this,bl,yl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(er.isServer()?1/0:300*1e3))}clearGcTimeout(){C(this,bl)!==void 0&&(yl.clearTimeout(C(this,bl)),W(this,bl,void 0))}},bl=new WeakMap,M1);function pj(a){return{onFetch:(l,i)=>{var y,_,b,S,j;const r=l.options,d=(b=(_=(y=l.fetchOptions)==null?void 0:y.meta)==null?void 0:_.fetchMore)==null?void 0:b.direction,f=((S=l.state.data)==null?void 0:S.pages)||[],h=((j=l.state.data)==null?void 0:j.pageParams)||[];let g={pages:[],pageParams:[]},m=0;const p=async()=>{let w=!1;const E=B=>{uj(B,()=>l.signal,()=>w=!0)},R=fv(l.options,l.fetchOptions),L=async(B,q,K)=>{if(w)return Promise.reject(l.signal.reason);if(q==null&&B.pages.length)return Promise.resolve(B);const U=(()=>{const re={client:l.client,queryKey:l.queryKey,pageParam:q,direction:K?"backward":"forward",meta:l.options.meta};return E(re),re})(),I=await R(U),{maxPages:$}=l.options,ue=K?cj:rj;return{pages:ue(B.pages,I,$),pageParams:ue(B.pageParams,q,$)}};if(d&&f.length){const B=d==="backward",q=B?gv:fh,K={pages:f,pageParams:h},V=q(r,K);g=await L(K,V,B)}else{const B=a??f.length;do{const q=m===0?h[0]??r.initialPageParam:fh(r,g);if(m>0&&q==null)break;g=await L(g,q),m++}while(m<B)}return g};l.options.persister?l.fetchFn=()=>{var w,E;return(E=(w=l.options).persister)==null?void 0:E.call(w,p,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},i)}:l.fetchFn=p}}}function fh(a,{pages:l,pageParams:i}){const r=l.length-1;return l.length>0?a.getNextPageParam(l[r],l,i[r],i):void 0}function gv(a,{pages:l,pageParams:i}){var r;return l.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,l[0],l,i[0],i):void 0}function gj(a,l){return l?fh(a,l)!=null:!1}function vj(a,l){return!l||!a.getPreviousPageParam?!1:gv(a,l)!=null}var Ti,xl,Ri,Vn,Al,Ut,sr,Sl,Bn,vv,Xa,D1,yj=(D1=class extends pv{constructor(l){super();ie(this,Bn);ie(this,Ti);ie(this,xl);ie(this,Ri);ie(this,Vn);ie(this,Al);ie(this,Ut);ie(this,sr);ie(this,Sl);W(this,Sl,!1),W(this,sr,l.defaultOptions),this.setOptions(l.options),this.observers=[],W(this,Al,l.client),W(this,Vn,C(this,Al).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,W(this,xl,Tg(this.options)),this.state=l.state??C(this,xl),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,Ti)}get promise(){var l;return(l=C(this,Ut))==null?void 0:l.promise}setOptions(l){if(this.options={...C(this,sr),...l},l!=null&&l._type&&W(this,Ti,l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Tg(this.options);i.data!==void 0&&(this.setState(Cg(i.data,i.dataUpdatedAt)),W(this,xl,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Vn).remove(this)}setData(l,i){const r=ch(this.state.data,l,this.options);return we(this,Bn,Xa).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(l){we(this,Bn,Xa).call(this,{type:"setState",state:l})}cancel(l){var r,d;const i=(r=C(this,Ut))==null?void 0:r.promise;return(d=C(this,Ut))==null||d.cancel(l),i?i.then(nn).catch(nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,xl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>On(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Ps(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!uv(this.state.dataUpdatedAt,l)}onFocus(){var i;const l=this.observers.find(r=>r.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(i=C(this,Ut))==null||i.continue()}onOnline(){var i;const l=this.observers.find(r=>r.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(i=C(this,Ut))==null||i.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),C(this,Vn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(i=>i!==l),this.observers.length||(C(this,Ut)&&(C(this,Sl)||we(this,Bn,vv).call(this)?C(this,Ut).cancel({revert:!0}):C(this,Ut).cancelRetry()),this.scheduleGc()),C(this,Vn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||we(this,Bn,Xa).call(this,{type:"invalidate"})}async fetch(l,i){var p,y,_,b,S,j,w,E,R,L,B;if(this.state.fetchStatus!=="idle"&&((p=C(this,Ut))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(C(this,Ut))return C(this,Ut).continueRetry(),C(this,Ut).promise}if(l&&this.setOptions(l),!this.options.queryFn){const q=this.observers.find(K=>K.options.queryFn);q&&this.setOptions(q.options)}const r=new AbortController,d=q=>{Object.defineProperty(q,"signal",{enumerable:!0,get:()=>(W(this,Sl,!0),r.signal)})},f=()=>{const q=fv(this.options,i),V=(()=>{const U={client:C(this,Al),queryKey:this.queryKey,meta:this.meta};return d(U),U})();return W(this,Sl,!1),this.options.persister?this.options.persister(q,V,this):q(V)},g=(()=>{const q={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:C(this,Al),state:this.state,fetchFn:f};return d(q),q})(),m=C(this,Ti)==="infinite"?pj(this.options.pages):this.options.behavior;m==null||m.onFetch(g,this),W(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=g.fetchOptions)==null?void 0:y.meta))&&we(this,Bn,Xa).call(this,{type:"fetch",meta:(_=g.fetchOptions)==null?void 0:_.meta}),W(this,Ut,mv({initialPromise:i==null?void 0:i.initialPromise,fn:g.fetchFn,onCancel:q=>{q instanceof dh&&q.revert&&this.setState({...C(this,Ri),fetchStatus:"idle"}),r.abort()},onFail:(q,K)=>{we(this,Bn,Xa).call(this,{type:"failed",failureCount:q,error:K})},onPause:()=>{we(this,Bn,Xa).call(this,{type:"pause"})},onContinue:()=>{we(this,Bn,Xa).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const q=await C(this,Ut).start();if(q===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(q),(S=(b=C(this,Vn).config).onSuccess)==null||S.call(b,q,this),(w=(j=C(this,Vn).config).onSettled)==null||w.call(j,q,this.state.error,this),q}catch(q){if(q instanceof dh){if(q.silent)return C(this,Ut).promise;if(q.revert){if(this.state.data===void 0)throw q;return this.state.data}}throw we(this,Bn,Xa).call(this,{type:"error",error:q}),(R=(E=C(this,Vn).config).onError)==null||R.call(E,q,this),(B=(L=C(this,Vn).config).onSettled)==null||B.call(L,this.state.data,q,this),q}finally{this.scheduleGc()}}},Ti=new WeakMap,xl=new WeakMap,Ri=new WeakMap,Vn=new WeakMap,Al=new WeakMap,Ut=new WeakMap,sr=new WeakMap,Sl=new WeakMap,Bn=new WeakSet,vv=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Xa=function(l){const i=r=>{switch(l.type){case"failed":return{...r,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yv(r.data,this.options),fetchMeta:l.meta??null};case"success":const d={...r,...Cg(l.data,l.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,Ri,l.manual?d:void 0),d;case"error":const f=l.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...l.state}}};this.state=i(this.state),Ot.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Vn).notify({query:this,type:"updated",action:l})})},D1);function yv(a,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hv(l.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Cg(a,l){return{data:a,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Tg(a){const l=typeof a.initialData=="function"?a.initialData():a.initialData,i=l!==void 0,r=i?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var pn,ze,lr,tn,jl,ki,Va,Ls,ir,Bi,Oi,wl,El,Ms,Li,Ie,Vo,hh,mh,ph,gh,vh,yh,_h,bv,z1,_v=(z1=class extends Ii{constructor(l,i){super();ie(this,Ie);ie(this,pn);ie(this,ze);ie(this,lr);ie(this,tn);ie(this,jl);ie(this,ki);ie(this,Va);ie(this,Ls);ie(this,ir);ie(this,Bi);ie(this,Oi);ie(this,wl);ie(this,El);ie(this,Ms);ie(this,Li,new Set);this.options=i,W(this,pn,l),W(this,Ls,null),W(this,Va,uh()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ze).addObserver(this),Rg(C(this,ze),this.options)?we(this,Ie,Vo).call(this):this.updateResult(),we(this,Ie,gh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bh(C(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bh(C(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,we(this,Ie,vh).call(this),we(this,Ie,yh).call(this),C(this,ze).removeObserver(this)}setOptions(l){const i=this.options,r=C(this,ze);if(this.options=C(this,pn).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof On(this.options.enabled,C(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");we(this,Ie,_h).call(this),C(this,ze).setOptions(this.options),i._defaulted&&!nu(this.options,i)&&C(this,pn).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ze),observer:this});const d=this.hasListeners();d&&kg(C(this,ze),r,this.options,i)&&we(this,Ie,Vo).call(this),this.updateResult(),d&&(C(this,ze)!==r||On(this.options.enabled,C(this,ze))!==On(i.enabled,C(this,ze))||Ps(this.options.staleTime,C(this,ze))!==Ps(i.staleTime,C(this,ze)))&&we(this,Ie,hh).call(this);const f=we(this,Ie,mh).call(this);d&&(C(this,ze)!==r||On(this.options.enabled,C(this,ze))!==On(i.enabled,C(this,ze))||f!==C(this,Ms))&&we(this,Ie,ph).call(this,f)}getOptimisticResult(l){const i=C(this,pn).getQueryCache().build(C(this,pn),l),r=this.createResult(i,l);return bj(this,r)&&(W(this,tn,r),W(this,ki,this.options),W(this,jl,C(this,ze).state)),r}getCurrentResult(){return C(this,tn)}trackResult(l,i){return new Proxy(l,{get:(r,d)=>(this.trackProp(d),i==null||i(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Va).status==="pending"&&C(this,Va).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,d))})}trackProp(l){C(this,Li).add(l)}getCurrentQuery(){return C(this,ze)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const i=C(this,pn).defaultQueryOptions(l),r=C(this,pn).getQueryCache().build(C(this,pn),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(l){return we(this,Ie,Vo).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,tn)))}createResult(l,i){var $;const r=C(this,ze),d=this.options,f=C(this,tn),h=C(this,jl),g=C(this,ki),p=l!==r?l.state:C(this,lr),{state:y}=l;let _={...y},b=!1,S;if(i._optimisticResults){const ue=this.hasListeners(),re=!ue&&Rg(l,i),ce=ue&&kg(l,r,i,d);(re||ce)&&(_={..._,...yv(y.data,l.options)}),i._optimisticResults==="isRestoring"&&(_.fetchStatus="idle")}let{error:j,errorUpdatedAt:w,status:E}=_;S=_.data;let R=!1;if(i.placeholderData!==void 0&&S===void 0&&E==="pending"){let ue;f!=null&&f.isPlaceholderData&&i.placeholderData===(g==null?void 0:g.placeholderData)?(ue=f.data,R=!0):ue=typeof i.placeholderData=="function"?i.placeholderData(($=C(this,Oi))==null?void 0:$.state.data,C(this,Oi)):i.placeholderData,ue!==void 0&&(E="success",S=ch(f==null?void 0:f.data,ue,i),b=!0)}if(i.select&&S!==void 0&&!R)if(f&&S===(h==null?void 0:h.data)&&i.select===C(this,ir))S=C(this,Bi);else try{W(this,ir,i.select),S=i.select(S),S=ch(f==null?void 0:f.data,S,i),W(this,Bi,S),W(this,Ls,null)}catch(ue){W(this,Ls,ue)}C(this,Ls)&&(j=C(this,Ls),S=C(this,Bi),w=Date.now(),E="error");const L=_.fetchStatus==="fetching",B=E==="pending",q=E==="error",K=B&&L,V=S!==void 0,I={status:E,fetchStatus:_.fetchStatus,isPending:B,isSuccess:E==="success",isError:q,isInitialLoading:K,isLoading:K,data:S,dataUpdatedAt:_.dataUpdatedAt,error:j,errorUpdatedAt:w,failureCount:_.fetchFailureCount,failureReason:_.fetchFailureReason,errorUpdateCount:_.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:_.dataUpdateCount>p.dataUpdateCount||_.errorUpdateCount>p.errorUpdateCount,isFetching:L,isRefetching:L&&!B,isLoadingError:q&&!V,isPaused:_.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:q&&V,isStale:Ih(l,i),refetch:this.refetch,promise:C(this,Va),isEnabled:On(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const ue=I.data!==void 0,re=I.status==="error"&&!ue,ce=ae=>{re?ae.reject(I.error):ue&&ae.resolve(I.data)},ee=()=>{const ae=W(this,Va,I.promise=uh());ce(ae)},he=C(this,Va);switch(he.status){case"pending":l.queryHash===r.queryHash&&ce(he);break;case"fulfilled":(re||I.data!==he.value)&&ee();break;case"rejected":(!re||I.error!==he.reason)&&ee();break}}return I}updateResult(){const l=C(this,tn),i=this.createResult(C(this,ze),this.options);if(W(this,jl,C(this,ze).state),W(this,ki,this.options),C(this,jl).data!==void 0&&W(this,Oi,C(this,ze)),nu(i,l))return;W(this,tn,i);const r=()=>{if(!l)return!0;const{notifyOnChangeProps:d}=this.options,f=typeof d=="function"?d():d;if(f==="all"||!f&&!C(this,Li).size)return!0;const h=new Set(f??C(this,Li));return this.options.throwOnError&&h.add("error"),Object.keys(C(this,tn)).some(g=>{const m=g;return C(this,tn)[m]!==l[m]&&h.has(m)})};we(this,Ie,bv).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&we(this,Ie,gh).call(this)}},pn=new WeakMap,ze=new WeakMap,lr=new WeakMap,tn=new WeakMap,jl=new WeakMap,ki=new WeakMap,Va=new WeakMap,Ls=new WeakMap,ir=new WeakMap,Bi=new WeakMap,Oi=new WeakMap,wl=new WeakMap,El=new WeakMap,Ms=new WeakMap,Li=new WeakMap,Ie=new WeakSet,Vo=function(l){we(this,Ie,_h).call(this);let i=C(this,ze).fetch(this.options,l);return l!=null&&l.throwOnError||(i=i.catch(nn)),i},hh=function(){we(this,Ie,vh).call(this);const l=Ps(this.options.staleTime,C(this,ze));if(er.isServer()||C(this,tn).isStale||!oh(l))return;const r=uv(C(this,tn).dataUpdatedAt,l)+1;W(this,wl,yl.setTimeout(()=>{C(this,tn).isStale||this.updateResult()},r))},mh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ze)):this.options.refetchInterval)??!1},ph=function(l){we(this,Ie,yh).call(this),W(this,Ms,l),!(er.isServer()||On(this.options.enabled,C(this,ze))===!1||!oh(C(this,Ms))||C(this,Ms)===0)&&W(this,El,yl.setInterval(()=>{(this.options.refetchIntervalInBackground||Qh.isFocused())&&we(this,Ie,Vo).call(this)},C(this,Ms)))},gh=function(){we(this,Ie,hh).call(this),we(this,Ie,ph).call(this,we(this,Ie,mh).call(this))},vh=function(){C(this,wl)!==void 0&&(yl.clearTimeout(C(this,wl)),W(this,wl,void 0))},yh=function(){C(this,El)!==void 0&&(yl.clearInterval(C(this,El)),W(this,El,void 0))},_h=function(){const l=C(this,pn).getQueryCache().build(C(this,pn),this.options);if(l===C(this,ze))return;const i=C(this,ze);W(this,ze,l),W(this,lr,l.state),this.hasListeners()&&(i==null||i.removeObserver(this),l.addObserver(this))},bv=function(l){Ot.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(C(this,tn))}),C(this,pn).getQueryCache().notify({query:C(this,ze),type:"observerResultsUpdated"})})},z1);function _j(a,l){return On(l.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&On(l.retryOnMount,a)===!1)}function Rg(a,l){return _j(a,l)||a.state.data!==void 0&&bh(a,l,l.refetchOnMount)}function bh(a,l,i){if(On(l.enabled,a)!==!1&&Ps(l.staleTime,a)!=="static"){const r=typeof i=="function"?i(a):i;return r==="always"||r!==!1&&Ih(a,l)}return!1}function kg(a,l,i,r){return(a!==l||On(r.enabled,a)===!1)&&(!i.suspense||a.state.status!=="error")&&Ih(a,i)}function Ih(a,l){return On(l.enabled,a)!==!1&&a.isStaleByTime(Ps(l.staleTime,a))}function bj(a,l){return!nu(a.getCurrentResult(),l)}var xj=class extends _v{constructor(a,l){super(a,l)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){a._type="infinite",super.setOptions(a)}getOptimisticResult(a){return a._type="infinite",super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,l){var j,w;const{state:i}=a,r=super.createResult(a,l),{isFetching:d,isRefetching:f,isError:h,isRefetchError:g}=r,m=(w=(j=i.fetchMeta)==null?void 0:j.fetchMore)==null?void 0:w.direction,p=h&&m==="forward",y=d&&m==="forward",_=h&&m==="backward",b=d&&m==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:gj(l,i.data),hasPreviousPage:vj(l,i.data),isFetchNextPageError:p,isFetchingNextPage:y,isFetchPreviousPageError:_,isFetchingPreviousPage:b,isRefetchError:g&&!p&&!_,isRefetching:f&&!y&&!b}}},or,va,Xt,Nl,ya,Rs,U1,Aj=(U1=class extends pv{constructor(l){super();ie(this,ya);ie(this,or);ie(this,va);ie(this,Xt);ie(this,Nl);W(this,or,l.client),this.mutationId=l.mutationId,W(this,Xt,l.mutationCache),W(this,va,[]),this.state=l.state||xv(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){C(this,va).includes(l)||(C(this,va).push(l),this.clearGcTimeout(),C(this,Xt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){W(this,va,C(this,va).filter(i=>i!==l)),this.scheduleGc(),C(this,Xt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){C(this,va).length||(this.state.status==="pending"?this.scheduleGc():C(this,Xt).remove(this))}continue(){var l;return((l=C(this,Nl))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var h,g,m,p,y,_,b,S,j,w,E,R,L,B,q,K,V,U;const i=()=>{we(this,ya,Rs).call(this,{type:"continue"})},r={client:C(this,or),meta:this.options.meta,mutationKey:this.options.mutationKey};W(this,Nl,mv({fn:()=>this.options.mutationFn?this.options.mutationFn(l,r):Promise.reject(new Error("No mutationFn found")),onFail:(I,$)=>{we(this,ya,Rs).call(this,{type:"failed",failureCount:I,error:$})},onPause:()=>{we(this,ya,Rs).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Xt).canRun(this)}));const d=this.state.status==="pending",f=!C(this,Nl).canStart();try{if(d)i();else{we(this,ya,Rs).call(this,{type:"pending",variables:l,isPaused:f}),C(this,Xt).config.onMutate&&await C(this,Xt).config.onMutate(l,this,r);const $=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,l,r));$!==this.state.context&&we(this,ya,Rs).call(this,{type:"pending",context:$,variables:l,isPaused:f})}const I=await C(this,Nl).start();return await((p=(m=C(this,Xt).config).onSuccess)==null?void 0:p.call(m,I,l,this.state.context,this,r)),await((_=(y=this.options).onSuccess)==null?void 0:_.call(y,I,l,this.state.context,r)),await((S=(b=C(this,Xt).config).onSettled)==null?void 0:S.call(b,I,null,this.state.variables,this.state.context,this,r)),await((w=(j=this.options).onSettled)==null?void 0:w.call(j,I,null,l,this.state.context,r)),we(this,ya,Rs).call(this,{type:"success",data:I}),I}catch(I){try{await((R=(E=C(this,Xt).config).onError)==null?void 0:R.call(E,I,l,this.state.context,this,r))}catch($){Promise.reject($)}try{await((B=(L=this.options).onError)==null?void 0:B.call(L,I,l,this.state.context,r))}catch($){Promise.reject($)}try{await((K=(q=C(this,Xt).config).onSettled)==null?void 0:K.call(q,void 0,I,this.state.variables,this.state.context,this,r))}catch($){Promise.reject($)}try{await((U=(V=this.options).onSettled)==null?void 0:U.call(V,void 0,I,l,this.state.context,r))}catch($){Promise.reject($)}throw we(this,ya,Rs).call(this,{type:"error",error:I}),I}finally{C(this,Xt).runNext(this)}}},or=new WeakMap,va=new WeakMap,Xt=new WeakMap,Nl=new WeakMap,ya=new WeakSet,Rs=function(l){const i=r=>{switch(l.type){case"failed":return{...r,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...r,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:l.error,failureCount:r.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ot.batch(()=>{C(this,va).forEach(r=>{r.onMutationUpdate(l)}),C(this,Xt).notify({mutation:this,type:"updated",action:l})})},U1);function xv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Za,la,rr,H1,Sj=(H1=class extends Ii{constructor(l={}){super();ie(this,Za);ie(this,la);ie(this,rr);this.config=l,W(this,Za,new Set),W(this,la,new Map),W(this,rr,0)}build(l,i,r){const d=new Aj({client:l,mutationCache:this,mutationId:++Lc(this,rr)._,options:l.defaultMutationOptions(i),state:r});return this.add(d),d}add(l){C(this,Za).add(l);const i=zc(l);if(typeof i=="string"){const r=C(this,la).get(i);r?r.push(l):C(this,la).set(i,[l])}this.notify({type:"added",mutation:l})}remove(l){if(C(this,Za).delete(l)){const i=zc(l);if(typeof i=="string"){const r=C(this,la).get(i);if(r)if(r.length>1){const d=r.indexOf(l);d!==-1&&r.splice(d,1)}else r[0]===l&&C(this,la).delete(i)}}this.notify({type:"removed",mutation:l})}canRun(l){const i=zc(l);if(typeof i=="string"){const r=C(this,la).get(i),d=r==null?void 0:r.find(f=>f.state.status==="pending");return!d||d===l}else return!0}runNext(l){var r;const i=zc(l);if(typeof i=="string"){const d=(r=C(this,la).get(i))==null?void 0:r.find(f=>f!==l&&f.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ot.batch(()=>{C(this,Za).forEach(l=>{this.notify({type:"removed",mutation:l})}),C(this,Za).clear(),C(this,la).clear()})}getAll(){return Array.from(C(this,Za))}find(l){const i={exact:!0,...l};return this.getAll().find(r=>wg(i,r))}findAll(l={}){return this.getAll().filter(i=>wg(l,i))}notify(l){Ot.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return Ot.batch(()=>Promise.all(l.map(i=>i.continue().catch(nn))))}},Za=new WeakMap,la=new WeakMap,rr=new WeakMap,H1);function zc(a){var l;return(l=a.options.scope)==null?void 0:l.id}var Wa,Ds,gn,Ja,$a,Zc,xh,q1,jj=(q1=class extends Ii{constructor(i,r){super();ie(this,$a);ie(this,Wa);ie(this,Ds);ie(this,gn);ie(this,Ja);W(this,Wa,i),this.setOptions(r),this.bindMethods(),we(this,$a,Zc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var d;const r=this.options;this.options=C(this,Wa).defaultMutationOptions(i),nu(this.options,r)||C(this,Wa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,gn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&kl(r.mutationKey)!==kl(this.options.mutationKey)?this.reset():((d=C(this,gn))==null?void 0:d.state.status)==="pending"&&C(this,gn).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=C(this,gn))==null||i.removeObserver(this)}onMutationUpdate(i){we(this,$a,Zc).call(this),we(this,$a,xh).call(this,i)}getCurrentResult(){return C(this,Ds)}reset(){var i;(i=C(this,gn))==null||i.removeObserver(this),W(this,gn,void 0),we(this,$a,Zc).call(this),we(this,$a,xh).call(this)}mutate(i,r){var d;return W(this,Ja,r),(d=C(this,gn))==null||d.removeObserver(this),W(this,gn,C(this,Wa).getMutationCache().build(C(this,Wa),this.options)),C(this,gn).addObserver(this),C(this,gn).execute(i)}},Wa=new WeakMap,Ds=new WeakMap,gn=new WeakMap,Ja=new WeakMap,$a=new WeakSet,Zc=function(){var r;const i=((r=C(this,gn))==null?void 0:r.state)??xv();W(this,Ds,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},xh=function(i){Ot.batch(()=>{var r,d,f,h,g,m,p,y;if(C(this,Ja)&&this.hasListeners()){const _=C(this,Ds).variables,b=C(this,Ds).context,S={client:C(this,Wa),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(d=(r=C(this,Ja)).onSuccess)==null||d.call(r,i.data,_,b,S)}catch(j){Promise.reject(j)}try{(h=(f=C(this,Ja)).onSettled)==null||h.call(f,i.data,null,_,b,S)}catch(j){Promise.reject(j)}}else if((i==null?void 0:i.type)==="error"){try{(m=(g=C(this,Ja)).onError)==null||m.call(g,i.error,_,b,S)}catch(j){Promise.reject(j)}try{(y=(p=C(this,Ja)).onSettled)==null||y.call(p,void 0,i.error,_,b,S)}catch(j){Promise.reject(j)}}}this.listeners.forEach(_=>{_(C(this,Ds))})})},q1),_a,P1,wj=(P1=class extends Ii{constructor(l={}){super();ie(this,_a);this.config=l,W(this,_a,new Map)}build(l,i,r){const d=i.queryKey,f=i.queryHash??Fh(d,i);let h=this.get(f);return h||(h=new yj({client:l,queryKey:d,queryHash:f,options:l.defaultQueryOptions(i),state:r,defaultOptions:l.getQueryDefaults(d)}),this.add(h)),h}add(l){C(this,_a).has(l.queryHash)||(C(this,_a).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const i=C(this,_a).get(l.queryHash);i&&(l.destroy(),i===l&&C(this,_a).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Ot.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return C(this,_a).get(l)}getAll(){return[...C(this,_a).values()]}find(l){const i={exact:!0,...l};return this.getAll().find(r=>jg(i,r))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(r=>jg(l,r)):i}notify(l){Ot.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){Ot.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Ot.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},_a=new WeakMap,P1),gt,zs,Us,Mi,Di,Hs,zi,Ui,Q1,Ej=(Q1=class{constructor(a={}){ie(this,gt);ie(this,zs);ie(this,Us);ie(this,Mi);ie(this,Di);ie(this,Hs);ie(this,zi);ie(this,Ui);W(this,gt,a.queryCache||new wj),W(this,zs,a.mutationCache||new Sj),W(this,Us,a.defaultOptions||{}),W(this,Mi,new Map),W(this,Di,new Map),W(this,Hs,0)}mount(){Lc(this,Hs)._++,C(this,Hs)===1&&(W(this,zi,Qh.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,gt).onFocus())})),W(this,Ui,au.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,gt).onOnline())})))}unmount(){var a,l;Lc(this,Hs)._--,C(this,Hs)===0&&((a=C(this,zi))==null||a.call(this),W(this,zi,void 0),(l=C(this,Ui))==null||l.call(this),W(this,Ui,void 0))}isFetching(a){return C(this,gt).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return C(this,zs).findAll({...a,status:"pending"}).length}getQueryData(a){var i;const l=this.defaultQueryOptions({queryKey:a});return(i=C(this,gt).get(l.queryHash))==null?void 0:i.state.data}ensureQueryData(a){const l=this.defaultQueryOptions(a),i=C(this,gt).build(this,l),r=i.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&i.isStaleByTime(Ps(l.staleTime,i))&&this.prefetchQuery(l),Promise.resolve(r))}getQueriesData(a){return C(this,gt).findAll(a).map(({queryKey:l,state:i})=>{const r=i.data;return[l,r]})}setQueryData(a,l,i){const r=this.defaultQueryOptions({queryKey:a}),d=C(this,gt).get(r.queryHash),f=d==null?void 0:d.state.data,h=lj(l,f);if(h!==void 0)return C(this,gt).build(this,r).setData(h,{...i,manual:!0})}setQueriesData(a,l,i){return Ot.batch(()=>C(this,gt).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,l,i)]))}getQueryState(a){var i;const l=this.defaultQueryOptions({queryKey:a});return(i=C(this,gt).get(l.queryHash))==null?void 0:i.state}removeQueries(a){const l=C(this,gt);Ot.batch(()=>{l.findAll(a).forEach(i=>{l.remove(i)})})}resetQueries(a,l){const i=C(this,gt);return Ot.batch(()=>(i.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},l)))}cancelQueries(a,l={}){const i={revert:!0,...l},r=Ot.batch(()=>C(this,gt).findAll(a).map(d=>d.cancel(i)));return Promise.all(r).then(nn).catch(nn)}invalidateQueries(a,l={}){return Ot.batch(()=>(C(this,gt).findAll(a).forEach(i=>{i.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},l)))}refetchQueries(a,l={}){const i={...l,cancelRefetch:l.cancelRefetch??!0},r=Ot.batch(()=>C(this,gt).findAll(a).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let f=d.fetch(void 0,i);return i.throwOnError||(f=f.catch(nn)),d.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(nn)}fetchQuery(a){const l=this.defaultQueryOptions(a);l.retry===void 0&&(l.retry=!1);const i=C(this,gt).build(this,l);return i.isStaleByTime(Ps(l.staleTime,i))?i.fetch(l):Promise.resolve(i.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(nn).catch(nn)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(nn).catch(nn)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return au.isOnline()?C(this,zs).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,gt)}getMutationCache(){return C(this,zs)}getDefaultOptions(){return C(this,Us)}setDefaultOptions(a){W(this,Us,a)}setQueryDefaults(a,l){C(this,Mi).set(kl(a),{queryKey:a,defaultOptions:l})}getQueryDefaults(a){const l=[...C(this,Mi).values()],i={};return l.forEach(r=>{$o(a,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(a,l){C(this,Di).set(kl(a),{mutationKey:a,defaultOptions:l})}getMutationDefaults(a){const l=[...C(this,Di).values()],i={};return l.forEach(r=>{$o(a,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(a){if(a._defaulted)return a;const l={...C(this,Us).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return l.queryHash||(l.queryHash=Fh(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===Yh&&(l.enabled=!1),l}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...C(this,Us).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){C(this,gt).clear(),C(this,zs).clear()}},gt=new WeakMap,zs=new WeakMap,Us=new WeakMap,Mi=new WeakMap,Di=new WeakMap,Hs=new WeakMap,zi=new WeakMap,Ui=new WeakMap,Q1),Av=A.createContext(void 0),Wt=a=>{const l=A.useContext(Av);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},Nj=({client:a,children:l})=>(A.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),o.jsx(Av.Provider,{value:a,children:l})),Sv=A.createContext(!1),Cj=()=>A.useContext(Sv);Sv.Provider;function Tj(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var Rj=A.createContext(Tj()),kj=()=>A.useContext(Rj),Bj=(a,l,i)=>{const r=i!=null&&i.state.error&&typeof a.throwOnError=="function"?Gh(a.throwOnError,[i.state.error,i]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||r)&&(l.isReset()||(a.retryOnMount=!1))},Oj=a=>{A.useEffect(()=>{a.clearReset()},[a])},Lj=({result:a,errorResetBoundary:l,throwOnError:i,query:r,suspense:d})=>a.isError&&!l.isReset()&&!a.isFetching&&r&&(d&&a.data===void 0||Gh(i,[a.error,r])),Mj=a=>{if(a.suspense){const i=d=>d==="static"?d:Math.max(d??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...d)=>i(r(...d)):i(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},Dj=(a,l)=>a.isLoading&&a.isFetching&&!l,zj=(a,l)=>(a==null?void 0:a.suspense)&&l.isPending,Bg=(a,l,i)=>l.fetchOptimistic(a).catch(()=>{i.clearReset()});function jv(a,l,i){var b,S,j,w;const r=Cj(),d=kj(),f=Wt(),h=f.defaultQueryOptions(a);(S=(b=f.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||S.call(b,h);const g=f.getQueryCache().get(h.queryHash);h._optimisticResults=r?"isRestoring":"optimistic",Mj(h),Bj(h,d,g),Oj(d);const m=!f.getQueryCache().get(h.queryHash),[p]=A.useState(()=>new l(f,h)),y=p.getOptimisticResult(h),_=!r&&a.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(E=>{const R=_?p.subscribe(Ot.batchCalls(E)):nn;return p.updateResult(),R},[p,_]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),A.useEffect(()=>{p.setOptions(h)},[h,p]),zj(h,y))throw Bg(h,p,d);if(Lj({result:y,errorResetBoundary:d,throwOnError:h.throwOnError,query:g,suspense:h.suspense}))throw y.error;if((w=(j=f.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||w.call(j,h,y),h.experimental_prefetchInRender&&!er.isServer()&&Dj(y,r)){const E=m?Bg(h,p,d):g==null?void 0:g.promise;E==null||E.catch(nn).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?y:p.trackResult(y)}function Ct(a,l){return jv(a,_v)}function vt(a,l){const i=Wt(),[r]=A.useState(()=>new jj(i,a));A.useEffect(()=>{r.setOptions(a)},[r,a]);const d=A.useSyncExternalStore(A.useCallback(h=>r.subscribe(Ot.batchCalls(h)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=A.useCallback((h,g)=>{r.mutate(h,g).catch(nn)},[r]);if(d.error&&Gh(r.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:f,mutateAsync:d.mutate}}function Uj(a,l){return jv(a,xj)}const wv="https://app.auth.elcsa.ru/v1";let Zo=null,vl=null;function Kh(){Zo=null,vl=null}function an(){return Zo?Promise.resolve(Zo):vl||(vl=fetch(`${wv}/csrf/token`,{credentials:"include"}).then(a=>a.json()).then(a=>(Zo=a.token,vl=null,Zo)).catch(a=>{throw vl=null,a}),vl)}const Hj=Object.freeze(Object.defineProperty({__proto__:null,clearCsrfCache:Kh,getCsrfToken:an},Symbol.toStringTag,{value:"Module"})),qj="modulepreload",Pj=function(a){return"/"+a},Og={},Qj=function(l,i,r){let d=Promise.resolve();if(i&&i.length>0){let h=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),m=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));d=h(i.map(p=>{if(p=Pj(p),p in Og)return;Og[p]=!0;const y=p.endsWith(".css"),_=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${_}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":qj,y||(b.as="script"),b.crossOrigin="",b.href=p,m&&b.setAttribute("nonce",m),document.head.appendChild(b),y)return new Promise((S,j)=>{b.addEventListener("load",S),b.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(h){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=h,window.dispatchEvent(g),!g.defaultPrevented)throw h}return d.then(h=>{for(const g of h||[])g.status==="rejected"&&f(g.reason);return l().catch(f)})};let Qf=null;const Nt={get:()=>Qf,set:a=>{Qf=a},clear:()=>{Qf=null}},Fj="https://app.auth.elcsa.ru/v1/jwt/refresh";async function ca(){const{getCsrfToken:a,clearCsrfCache:l}=await Qj(async()=>{const{getCsrfToken:f,clearCsrfCache:h}=await Promise.resolve().then(()=>Hj);return{getCsrfToken:f,clearCsrfCache:h}},[]);l();const i=await a(),r=await fetch(Fj,{method:"POST",credentials:"include",headers:{"X-CSRF-Token":i}});if(!r.ok)throw new Error("Unauthorized");const d=await r.json();return d.access_token&&Nt.set(d.access_token),d.access_token??d.result??!0}const Yj="https://app.payment.elcsa.ru";async function dr(a,l,i){const r=await an(),d=await fetch(`${Yj}${a}`,{...l,credentials:"include",headers:{"X-CSRF-Token":r,...l.headers}});if(d.status===401&&i)try{return await ca(),dr(a,l,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function Gj(){return dr("/payment/config",{},!0)}function Ij(a){return dr(`/payment/quote?usdt_amount=${a}`,{},!0)}function Kj(a){return dr(`/payment/quote/rub?total_rub=${a}`,{},!0)}const Ah=20;function Xj(a,l=Ah){return dr(`/payment/payments?offset=${a}&limit=${l}`,{},!0)}function Vj(){return Ct({queryKey:["payment","config"],queryFn:Gj,staleTime:6e4})}function Zj(a){return Ct({queryKey:["payment","quote",a],queryFn:()=>Ij(a),enabled:a>0,staleTime:3e4,retry:!1})}function Ev(a){return Ct({queryKey:["payment","quote","rub",a],queryFn:()=>Kj(a),enabled:a>0,staleTime:3e4,retry:!1})}function Wj(){return Uj({queryKey:["payment","operations"],queryFn:({pageParam:a})=>Xj(a),initialPageParam:0,getNextPageParam:(a,l)=>{if(!(a.operations.length<Ah))return l.length*Ah},staleTime:3e4})}function ba(a,l){const[i,r]=A.useState(a);return A.useEffect(()=>{const d=setTimeout(()=>r(a),l);return()=>clearTimeout(d)},[a,l]),i}const Nv=80,Jj=21,Wc=5e3,Lg="Сумма слишком большая и превышает 600 000 ₽",Mg=a=>a.replace(/[^0-9.]/g,"");function $j({rateFallback:a=0}={}){const[l,i]=A.useState("usdt_to_rub"),[r,d]=A.useState("1000"),[f,h]=A.useState(String(Wc)),{data:g}=Vj(),m=Number(g==null?void 0:g.usdt_exchange_rate)||a,p=Number(g==null?void 0:g.gas_fee)||Jj,y=l==="usdt_to_rub",_=Number.parseFloat(r)||0,b=ba(_,400),{data:S,isError:j}=Zj(y?b:0),w=Number.parseFloat(f)||0,E=ba(w,400),{data:R,isError:L}=Ev(y?0:E),B=!y&&w>0&&w<Wc,q=(S==null?void 0:S.total_price)??"",K=Number(q)||0,V=(R==null?void 0:R.usdt_amount)??"",U=Number(V)||0,I=y?Number(S==null?void 0:S.service_fee)||0:Number(R==null?void 0:R.service_fee)||0,$=y?K:w,ue=y?_>0?K/_:0:U>0?w/U:0;function re(){i(he=>he==="usdt_to_rub"?"rub_to_usdt":"usdt_to_rub")}const ce=y?{value:r,currency:"USDT",onChange:he=>d(Mg(he)),error:j?Lg:void 0}:{value:f,currency:"RUB",onChange:he=>h(Mg(he)),error:B?`Минимальная сумма: ${Wc.toLocaleString("ru-RU")} ₽`:L?Lg:void 0};return{isUsdtToRub:y,gasPriceRub:p,configUsdtRate:m,convert:ce,pay:y?{value:q,currency:"RUB"}:{value:V,currency:"USDT"},onSwap:re,commission:{amount:$,progress:QS($),commission:I,effectiveRate:ue},numUsdt:_,usdtFromRubNum:U,rubTotal:q,rubTotalNum:K,numRubInput:w,usdtFromRub:V,rubBelowMin:B}}const ne={HOME:"/",WALLET:"/wallet",WALLET_CHAIN:"/wallet/:chain",SWAP:"/swap",BRIDGE:"/bridge",LOGIN:"/login",REGISTER:"/register",REGISTER_TEST:"/register-test",CONVERTER_TEST:"/converter-test",PROFILE:"/profile",PROFILE_DETAILS:"/profile/details",PROFILE_SECURITY:"/profile/security",PROFILE_MNEMONIC:"/profile/mnemonic",PROFILE_TRANSACTIONS:"/profile/transactions",SEED_PHRASE:"/seed-phrase",CONVERTER:"/converter",KYC:"/kyc",STAKING:"/staking",POOLS:"/pools",RESTORE_PASSWORD:"/restore-password",PUBLICHNAYA_OFERTA:"/publichnaya-oferta",POLITIKA_PERSONALNYH_DANNYH:"/politika-personalnyh-dannyh",POLITIKA_COOKIE:"/politika-cookie",SOGLASIE_PERSONALNYH_DANNYH:"/soglasie-personalnyh-dannyh",REESTR_PD_RKN:"/reestr-pd-rkn",TRANSACTIONS:"/transactions"},ew="_section_tz8mb_1",tw="_wrap_tz8mb_6",nw="_header_tz8mb_17",aw="_subtitle_tz8mb_26",sw="_pills_tz8mb_33",lw="_pill_tz8mb_33",iw="_pillValue_tz8mb_47",ow="_body_tz8mb_57",rw="_tabs_tz8mb_63",cw="_tab_tz8mb_63",uw="_payBtn_tz8mb_95",kn={section:ew,wrap:tw,header:nw,subtitle:aw,pills:sw,pill:lw,pillValue:iw,body:ow,tabs:rw,tab:cw,payBtn:uw};function dw(){const{gasPriceRub:a,configUsdtRate:l,convert:i,pay:r,onSwap:d,commission:f}=$j({rateFallback:Nv});return o.jsx("section",{className:kn.section,id:"converter",children:o.jsxs("div",{className:kn.wrap,children:[o.jsxs("div",{className:kn.header,children:[o.jsxs("div",{children:[o.jsx(cv,{children:"Конвертация"}),o.jsx("div",{className:kn.subtitle,children:"Данные обновляются в реальном времени"})]}),o.jsxs("div",{className:kn.pills,children:[o.jsxs("div",{className:kn.pill,children:["Цена газа в RUB ",o.jsxs("span",{className:kn.pillValue,children:[a.toFixed(2)," RUB"]})]}),o.jsxs("div",{className:kn.pill,children:["USDT/RUB ",o.jsxs("span",{className:kn.pillValue,children:[l.toFixed(2)," ₽"]})]})]})]}),o.jsxs("div",{className:kn.body,children:[o.jsxs("div",{children:[o.jsx("div",{className:kn.tabs,children:o.jsx("div",{className:kn.tab,"data-active":!0,children:"КУПИТЬ"})}),o.jsx(bg,{compact:!0,...i}),o.jsx(N3,{compact:!0,onClick:d}),o.jsx(bg,{compact:!0,...r})]}),o.jsx($S,{...f})]}),o.jsx(vn,{to:ne.CONVERTER,className:kn.payBtn,children:"Перейти к оплате"})]})})}const fw="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.827%201.094a3.733%203.733%200%2000-3.733%203.733v6.533a3.733%203.733%200%20003.733%203.734h6.533a3.733%203.733%200%20003.734-3.734V4.827a3.733%203.733%200%2000-3.734-3.733H4.827zm5.454%207a2.187%202.187%200%2011-4.375%200%202.187%202.187%200%20014.375%200zm1.313%200a3.5%203.5%200%2011-7%200%203.5%203.5%200%20017%200zm.469-2.938a1.25%201.25%200%20100-2.5%201.25%201.25%200%20000%202.5z'%20fill='%23000'%3e%3c/path%3e%3c/svg%3e",hw="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.108%207.617C5.4%205.768%208.262%204.55%209.694%203.961c4.088-1.682%204.938-1.974%205.492-1.984.68-.011.86.551.804%201.137-.221%202.302-1.18%207.887-1.668%2010.465-.43%202.277-1.958%201.292-3.338.397-1.296-.84-2.028-1.362-3.286-2.182-1.453-.947-.511-1.467.317-2.318.217-.223%203.984-3.61%204.057-3.918.06-.256-.167-.333-.373-.286-.13.029-2.2%201.382-6.21%204.058-.588.399-1.12.593-1.597.583-.66-.014-2.26-.583-3.88-1.492-.097-.277.399-.53%201.096-.804z'%20fill='%23000'%3e%3c/path%3e%3c/svg%3e",mw="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.733%2011.784c-.708-1.191-1.221-2.408-1.221-3.823%200-3.566%202.905-6.457%206.488-6.457%203.583%200%206.488%202.891%206.488%206.457%200%203.565-2.905%206.456-6.488%206.456-1.332%200-2.496-.452-3.64-1.079-.734.18-1.468.362-2.2.55.195-.7.387-1.402.573-2.104zM0%2016s2.944-.768%204.147-1.06A7.995%207.995%200%20008%2015.92c4.418%200%208-3.564%208-7.96S12.418%200%208%200%200%203.564%200%207.96c0%201.479.405%202.862%201.11%204.048C.929%2012.693%200%2016%200%2016zm8.118-6.637a501.25%20501.25%200%2000-1.265-1.26c-.545-.576-.646-1.11-.392-1.298l.52-.298a.675.675%200%2000.248-.924l-.78-1.344a.681.681%200%2000-.928-.248L5%204.29c-1.685.968.271%204.078%201.09%204.892l.944.94c.818.814%203.943%202.76%204.916%201.084l.3-.517a.674.674%200%2000-.249-.924l-1.35-.776a.682.682%200%2000-.929.247l-.3.517c-.188.252-.725.152-1.305-.39z'%20fill='%23000'%3e%3c/path%3e%3c/svg%3e",pw="_footer_1qm30_1",gw="_top_1qm30_11",vw="_col_1qm30_18",yw="_heading_1qm30_35",_w="_companyName_1qm30_44",bw="_phone_1qm30_51",xw="_email_1qm30_58",Aw="_socialIcons_1qm30_62",Sw="_socialLink_1qm30_67",jw="_divider_1qm30_94",ww="_bottom_1qm30_99",Kt={footer:pw,top:gw,col:vw,heading:yw,companyName:_w,phone:bw,email:xw,socialIcons:Aw,socialLink:Sw,divider:jw,bottom:ww},Ew=[{href:"https://t.me/+UU4vqX4ENMJhMjBi",icon:hw,label:"Telegram"},{href:"#",icon:mw,label:"WhatsApp"},{href:"#",icon:fw,label:"Instagram"}];function Fs(){return o.jsxs("footer",{className:Kt.footer,children:[o.jsxs("div",{className:Kt.top,children:[o.jsxs("div",{className:Kt.col,children:[o.jsx("p",{className:Kt.companyName,children:"ООО «ЭКСА»"}),o.jsx("p",{children:"ИНН 9810001062"}),o.jsx("p",{children:"ОГРН 1257800060990"})]}),o.jsxs("div",{className:Kt.col,children:[o.jsx("h4",{className:Kt.heading,children:"О компании"}),o.jsx(vn,{to:ne.PUBLICHNAYA_OFERTA,children:"Публичная оферта"}),o.jsx(vn,{to:ne.POLITIKA_PERSONALNYH_DANNYH,children:"Политика персональных данных"}),o.jsx(vn,{to:ne.POLITIKA_COOKIE,children:"Политика cookie"}),o.jsx(vn,{to:ne.SOGLASIE_PERSONALNYH_DANNYH,children:"Согласие на обработку данных"}),o.jsx(vn,{to:ne.REESTR_PD_RKN,children:"Реестр Роскомнадзора"})]}),o.jsxs("div",{className:Kt.col,children:[o.jsx("p",{className:Kt.phone,children:"+7 (812) 123-33-23"}),o.jsx("h4",{className:Kt.heading,children:"Адрес"}),o.jsx("p",{children:"196158, г. Санкт-Петербург, Московское шоссе, 25А, к.1, ПОМЕЩ. 3-Н"}),o.jsx("a",{href:"mailto:support@elcsa.ru",className:Kt.email,children:"support@elcsa.ru"})]}),o.jsxs("div",{className:Kt.col,children:[o.jsx("h4",{className:Kt.heading,children:"Мы в соцсетях"}),o.jsx("div",{className:Kt.socialIcons,children:Ew.map(({href:a,icon:l,label:i})=>o.jsx("a",{href:a,className:Kt.socialLink,"aria-label":i,children:o.jsx("img",{src:l,alt:i})},i))})]})]}),o.jsx("div",{className:Kt.divider}),o.jsxs("div",{className:Kt.bottom,children:[o.jsx("p",{children:"© 2026. Все права защищены."}),o.jsx("p",{children:"Компания не является кредитной организацией."})]})]})}const xa="/assets/logo-full-white-DEb7oTyu.png",Nw="_nav_omfvd_1",Cw="_logo_omfvd_16",Tw="_right_omfvd_22",Rw="_link_omfvd_28",kw="_btn_omfvd_47",Fo={nav:Nw,logo:Cw,right:Tw,link:Rw,btn:kw};function Ol(){const a=Zt(),l=yn(),i=r=>{var d;r.preventDefault(),a.pathname===ne.HOME?(d=document.getElementById("about"))==null||d.scrollIntoView({behavior:"smooth"}):l(ne.HOME,{state:{scrollTo:"about"}})};return o.jsxs("nav",{className:Fo.nav,children:[o.jsx("a",{className:Fo.logo,href:"/",children:o.jsx("img",{src:xa,alt:"ЭКСА"})}),o.jsxs("div",{className:Fo.right,children:[o.jsx("a",{className:Fo.link,href:"#about",onClick:i,children:"О нас"}),o.jsx(vn,{className:Fo.btn,to:ne.WALLET,children:"Личный кабинет"})]})]})}function Bw(){const a=A.useRef(null);return A.useEffect(()=>{const l=a.current;if(!l||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;if(window.matchMedia("(hover: hover) and (pointer: fine)").matches){const d=h=>{const g=l.getBoundingClientRect(),m=((h.clientX-g.left)/g.width-.5)*2,p=((h.clientY-g.top)/g.height-.5)*2;l.style.setProperty("--mx",m.toFixed(3)),l.style.setProperty("--my",p.toFixed(3))},f=()=>{l.style.setProperty("--mx","0"),l.style.setProperty("--my","0")};return l.addEventListener("mousemove",d),l.addEventListener("mouseleave",f),()=>{l.removeEventListener("mousemove",d),l.removeEventListener("mouseleave",f)}}let i=0;const r=()=>{i||(i=requestAnimationFrame(()=>{i=0;const d=l.getBoundingClientRect(),f=Math.min(Math.max(-d.top/d.height,0),1);l.style.setProperty("--mx",(f*.6).toFixed(3)),l.style.setProperty("--my",(f*-1.4).toFixed(3))}))};return r(),window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r),cancelAnimationFrame(i)}},[]),a}const _i=[{rub:"10 000 ₽",usdt:"≈ 125.3 USDT"},{rub:"25 000 ₽",usdt:"≈ 313.3 USDT"},{rub:"50 000 ₽",usdt:"≈ 626.5 USDT"},{rub:"100 000 ₽",usdt:"≈ 1 253.1 USDT"}],Ow=40,Lw=75,Mw=3500,Dw=900;function Cv(){const[a,l]=A.useState(_i[0].rub),[i,r]=A.useState(_i[0].usdt),[d,f]=A.useState(null),[h,g]=A.useState(!0);return A.useEffect(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let m=!0;const p=S=>new Promise(j=>setTimeout(j,S)),y=async(S,j)=>{for(let w=S.length-1;w>=0&&m;w--)j(S.slice(0,w)),await p(Ow)},_=async(S,j)=>{for(let w=1;w<=S.length&&m;w++)j(S.slice(0,w)),await p(Lw)};return(async()=>{let S=0;for(;m;){if(await p(Mw),!m)return;const j=_i[S%_i.length],w=_i[(S+1)%_i.length];if(g(!1),f("rub"),await y(j.rub,l),await _(w.rub,l),f(null),await p(Dw),!m)return;f("usdt"),await y(j.usdt,r),await _(w.usdt,r),f(null),g(!0),S++}})(),()=>{m=!1}},[]),{rub:a,usdt:i,active:d,settled:h}}function zw(a=7){const l=A.useRef(null);return A.useEffect(()=>{const i=l.current;if(!i||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const r=f=>{const h=i.getBoundingClientRect(),g=(f.clientX-h.left)/h.width-.5,m=(f.clientY-h.top)/h.height-.5;i.style.setProperty("--ry",`${(g*a).toFixed(2)}deg`),i.style.setProperty("--rx",`${(-m*a).toFixed(2)}deg`)},d=()=>{i.style.setProperty("--rx","0deg"),i.style.setProperty("--ry","0deg")};return i.addEventListener("mousemove",r),i.addEventListener("mouseleave",d),()=>{i.removeEventListener("mousemove",r),i.removeEventListener("mouseleave",d)}},[a]),l}const Uw="_flow_1b0po_1",Hw="_card_1b0po_12",qw="_cardRub_1b0po_22",Pw="_cardEksa_1b0po_33",Qw="_cardUsdt_1b0po_47",Fw="_eksaLogo_1b0po_58",Yw="_ghost_1b0po_65",Gw="_ghostBtc_1b0po_80",Iw="_ghostEth_1b0po_86",Kw="_logoCircle_1b0po_92",Xw="_logoRub_1b0po_103",Vw="_logoUsdt_1b0po_108",Zw="_logoHasImg_1b0po_114",Ww="_logoImg_1b0po_118",Jw="_ghostImg_1b0po_126",$w="_badge_1b0po_133",eE="_caret_1b0po_150",tE="_badgeRub_1b0po_159",nE="_badgeUsdt_1b0po_163",aE="_status_1b0po_167",sE="_statusPending_1b0po_179",lE="_statusDot_1b0po_183",iE="_path_1b0po_197",oE="_dashLine_1b0po_205",rE="_spark_1b0po_209",cE="_traveler_1b0po_287",Ne={flow:Uw,card:Hw,cardRub:qw,cardEksa:Pw,cardUsdt:Qw,eksaLogo:Fw,ghost:Yw,ghostBtc:Gw,ghostEth:Iw,logoCircle:Kw,logoRub:Xw,logoUsdt:Vw,logoHasImg:Zw,logoImg:Ww,ghostImg:Jw,badge:$w,caret:eE,badgeRub:tE,badgeUsdt:nE,status:aE,statusPending:sE,statusDot:lE,path:iE,dashLine:oE,spark:rE,traveler:cE},Yo="M60 68 C100 160, 250 140, 210 230 C170 310, 300 320, 350 360",Dg=Vt("BTC"),zg=Vt("ETH"),Ff=Vt("USDT");function uE(){const{rub:a,usdt:l,active:i,settled:r}=Cv(),d=zw();return o.jsxs("div",{className:Ne.flow,ref:d,children:[o.jsx("div",{className:`${Ne.ghost} ${Ne.ghostBtc}`,children:Dg?o.jsx("img",{src:Dg,alt:"BTC",className:Ne.ghostImg}):o.jsx("span",{style:{fontSize:20,color:"#F7931A"},children:"₿"})}),o.jsx("div",{className:`${Ne.ghost} ${Ne.ghostEth}`,children:zg?o.jsx("img",{src:zg,alt:"ETH",className:Ne.ghostImg}):o.jsx("span",{style:{fontSize:20,color:"#627EEA"},children:"Ξ"})}),o.jsxs("div",{className:`${Ne.card} ${Ne.cardRub}`,children:[o.jsx("div",{className:`${Ne.logoCircle} ${Ne.logoRub}`,children:"₽"}),o.jsxs("div",{className:`${Ne.badge} ${Ne.badgeRub}`,children:[a,i==="rub"&&o.jsx("span",{className:Ne.caret})]})]}),o.jsx("div",{className:`${Ne.card} ${Ne.cardEksa}`,children:o.jsx("img",{src:xa,alt:"ЭКСА",className:Ne.eksaLogo})}),o.jsxs("div",{className:`${Ne.card} ${Ne.cardUsdt}`,children:[o.jsx("div",{className:`${Ne.logoCircle} ${Ne.logoUsdt} ${Ff?Ne.logoHasImg:""}`,children:Ff?o.jsx("img",{src:Ff,alt:"USDT",className:Ne.logoImg}):"₮"}),o.jsxs("div",{className:`${Ne.badge} ${Ne.badgeUsdt}`,children:[l,i==="usdt"&&o.jsx("span",{className:Ne.caret})]}),o.jsxs("div",{className:`${Ne.status} ${r?"":Ne.statusPending}`,children:[o.jsx("span",{className:Ne.statusDot}),r?"✓ Зачислено":"Конвертация…"]})]}),o.jsxs("svg",{className:Ne.path,viewBox:"0 0 420 460",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:"pathGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[o.jsx("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.4)"}),o.jsx("stop",{offset:"100%",stopColor:"#26A17B"})]})}),o.jsx("path",{className:Ne.dashLine,d:Yo,stroke:"url(#pathGrad)",strokeWidth:2,strokeDasharray:"8 6",fill:"none"}),o.jsx("path",{d:Yo,stroke:"url(#pathGrad)",strokeWidth:8,strokeDasharray:"8 6",opacity:.08,fill:"none"}),o.jsxs("g",{className:Ne.traveler,children:[o.jsx("circle",{r:8,fill:"#26A17B",opacity:.25,children:o.jsx("animateMotion",{dur:"5s",repeatCount:"indefinite",path:Yo})}),o.jsx("circle",{r:3.5,fill:"#26A17B",children:o.jsx("animateMotion",{dur:"5s",repeatCount:"indefinite",path:Yo})}),o.jsx("circle",{r:2,fill:"#fff",opacity:.7,children:o.jsx("animateMotion",{dur:"5s",begin:"-2.5s",repeatCount:"indefinite",path:Yo})})]}),o.jsx("circle",{className:Ne.spark,cx:80,cy:110,r:3,fill:"#fff",opacity:.5}),o.jsx("circle",{className:Ne.spark,cx:140,cy:160,r:2.5,fill:"#fff",opacity:.4}),o.jsx("circle",{className:Ne.spark,cx:220,cy:200,r:3,fill:"#fff",opacity:.3}),o.jsx("circle",{className:Ne.spark,cx:200,cy:270,r:2.5,fill:"#26A17B",opacity:.35}),o.jsx("circle",{className:Ne.spark,cx:260,cy:310,r:3,fill:"#26A17B",opacity:.25}),o.jsx("circle",{className:Ne.spark,cx:320,cy:345,r:2,fill:"#26A17B",opacity:.2})]})]})}const dE="_card_agi2s_70",fE="_statusPill_agi2s_104",hE="_statusPillPending_agi2s_120",mE="_statusDot_agi2s_126",pE="_flowRow_agi2s_139",gE="_curBlock_agi2s_146",vE="_curIcon_agi2s_154",yE="_rub_agi2s_165",_E="_usdt_agi2s_173",bE="_hasLogo_agi2s_182",xE="_curIconImg_agi2s_186",AE="_flowLine_agi2s_194",SE="_curAmount_agi2s_198",jE="_caret_agi2s_209",wE="_curLabel_agi2s_218",EE="_curCheck_agi2s_226",NE="_curCheckPending_agi2s_238",CE="_bridge_agi2s_242",TE="_bridgeLine_agi2s_251",RE="_bridgeDot_agi2s_260",kE="_bridgeLabel_agi2s_274",BE="_divider_agi2s_282",OE="_details_agi2s_288",LE="_detailRow_agi2s_296",ME="_detailLabel_agi2s_305",DE="_detailValue_agi2s_311",zE="_green_agi2s_318",De={card:dE,statusPill:fE,statusPillPending:hE,statusDot:mE,flowRow:pE,curBlock:gE,curIcon:vE,rub:yE,usdt:_E,hasLogo:bE,curIconImg:xE,flowLine:AE,curAmount:SE,caret:jE,curLabel:wE,curCheck:EE,curCheckPending:NE,bridge:CE,bridgeLine:TE,bridgeDot:RE,bridgeLabel:kE,divider:BE,details:OE,detailRow:LE,detailLabel:ME,detailValue:DE,green:zE},Yf=Vt("USDT");function Ug({begin:a}){return o.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[o.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:De.flowLine}),o.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),o.jsx("circle",{r:2.5,fill:"#26A17B",className:De.bridgeDot,children:o.jsx("animateMotion",{dur:"0.9s",begin:a,repeatCount:"indefinite",path:"M0 6 H40"})})]})}function UE(){const{rub:a,usdt:l,active:i,settled:r}=Cv(),d=!r&&i===null;return o.jsxs("div",{className:De.card,children:[o.jsxs("div",{className:`${De.statusPill} ${r?"":De.statusPillPending}`,children:[o.jsx("span",{className:De.statusDot}),r?"Операция завершена":"Конвертация…"]}),o.jsxs("div",{className:De.flowRow,"data-transferring":d||void 0,children:[o.jsxs("div",{className:De.curBlock,children:[o.jsx("div",{className:`${De.curIcon} ${De.rub}`,children:"₽"}),o.jsxs("div",{className:De.curAmount,children:[a,i==="rub"&&o.jsx("span",{className:De.caret})]}),o.jsx("div",{className:De.curLabel,children:"Отправлено"})]}),o.jsxs("div",{className:De.bridge,children:[o.jsx("div",{className:De.bridgeLine,children:o.jsx(Ug,{})}),o.jsx("div",{className:De.bridgeLabel,children:o.jsx("img",{src:xa,alt:"ЭКСА"})}),o.jsx("div",{className:De.bridgeLine,children:o.jsx(Ug,{begin:"-0.45s"})})]}),o.jsxs("div",{className:De.curBlock,children:[o.jsx("div",{className:`${De.curIcon} ${De.usdt} ${Yf?De.hasLogo:""}`,children:Yf?o.jsx("img",{src:Yf,alt:"USDT",className:De.curIconImg}):"₮"}),o.jsxs("div",{className:De.curAmount,children:[l,i==="usdt"&&o.jsx("span",{className:De.caret})]}),o.jsxs("div",{className:`${De.curCheck} ${r?"":De.curCheckPending}`,children:[r&&o.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#26A17B",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),r?"Зачислено":"Ожидание…"]})]})]}),o.jsx("div",{className:De.divider}),o.jsxs("div",{className:De.details,children:[o.jsxs("div",{className:De.detailRow,children:[o.jsx("span",{className:De.detailLabel,children:"Курс"}),o.jsxs("span",{className:De.detailValue,children:[Nv.toFixed(2)," ₽ / USDT"]})]}),o.jsxs("div",{className:De.detailRow,children:[o.jsx("span",{className:De.detailLabel,children:"Комиссия"}),o.jsx("span",{className:`${De.detailValue} ${De.green}`,children:"0%"})]})]})]})}const HE="_hero_1dknf_1",qE="_orbs_1dknf_11",PE="_orb_1dknf_11",QE="_orbPurple_1dknf_34",FE="_content_1dknf_60",YE="_left_1dknf_72",GE="_desktop_1dknf_80",IE="_mobile_1dknf_84",KE="_right_1dknf_88",XE="_title_1dknf_95",VE="_line2_1dknf_103",ZE="_reflection_1dknf_114",WE="_ctaRow_1dknf_125",JE="_cta_1dknf_125",fn={hero:HE,orbs:qE,orb:PE,orbPurple:QE,content:FE,left:YE,desktop:GE,mobile:IE,right:KE,title:XE,line2:VE,reflection:ZE,ctaRow:WE,cta:JE};function $E(){const a=Bw();return o.jsxs("section",{className:fn.hero,ref:a,children:[o.jsx("div",{className:fn.orbs,"aria-hidden":"true",children:o.jsx("div",{className:`${fn.orb} ${fn.orbPurple}`})}),o.jsxs("div",{className:fn.content,children:[o.jsxs("div",{className:fn.left,children:[o.jsx("div",{className:fn.desktop,children:o.jsx(uE,{})}),o.jsx("div",{className:fn.mobile,children:o.jsx(UE,{})})]}),o.jsxs("div",{className:fn.right,children:[o.jsxs("h1",{className:fn.title,children:["Ваш мост",o.jsx("span",{className:fn.reflection,"aria-hidden":"true",children:"Ваш мост"}),o.jsxs("span",{className:fn.line2,children:["в мир",o.jsx("br",{}),"цифровых",o.jsx("br",{}),"активов"]})]}),o.jsx("div",{className:fn.ctaRow,children:o.jsx(vn,{to:ne.REGISTER,className:fn.cta,children:"Зарегистрироваться"})})]})]})]})}const Hg=[{name:"Bitcoin",ticker:"BTC",cls:"btc",icon:"₿",speed:30,color:"rgba(247,147,26,0.8)",fee:"~0.0001 BTC",confirm:"~10 мин"},{name:"Ethereum",ticker:"ETH",cls:"eth",icon:"Ξ",speed:60,color:"rgba(98,126,234,0.8)",fee:"~2–15 Gwei",confirm:"~15 сек"},{name:"Tron",ticker:"TRX",cls:"trx",icon:"◈",speed:90,color:"rgba(255,6,10,0.8)",fee:"~1 TRX",confirm:"~3 сек"},{name:"Solana",ticker:"SOL",cls:"sol",icon:"◎",speed:98,color:"rgba(153,69,255,0.8)",fee:"~0.000005 SOL",confirm:"~1 сек"},{name:"BSC Chain",ticker:"BNB",cls:"bnb",icon:"◆",speed:88,color:"rgba(243,186,47,0.8)",fee:"~0.0005 BNB",confirm:"~3 сек"}],eN="_section_ajevh_1",tN="_wrap_ajevh_6",nN="_title_ajevh_11",aN="_tableWrap_ajevh_18",sN="_table_ajevh_18",lN="_name_ajevh_52",iN="_icon_ajevh_58",oN="_icon_btc_ajevh_71",rN="_icon_eth_ajevh_75",cN="_icon_trx_ajevh_79",uN="_icon_sol_ajevh_83",dN="_icon_bnb_ajevh_87",fN="_iconHasLogo_ajevh_92",hN="_iconImg_ajevh_96",mN="_label_ajevh_103",pN="_ticker_ajevh_108",gN="_speedBar_ajevh_114",vN="_speedFill_ajevh_122",yN="_fee_ajevh_135",_N="_confirm_ajevh_141",bN="_footnote_ajevh_146",xN="_cards_ajevh_154",AN="_card_ajevh_154",SN="_cardHead_ajevh_173",jN="_cardRow_ajevh_182",wN="_cardKey_ajevh_190",Fe={section:eN,wrap:tN,title:nN,tableWrap:aN,table:sN,name:lN,icon:iN,icon_btc:oN,icon_eth:rN,icon_trx:cN,icon_sol:uN,icon_bnb:dN,iconHasLogo:fN,iconImg:hN,label:mN,ticker:pN,speedBar:gN,speedFill:vN,fee:yN,confirm:_N,footnote:bN,cards:xN,card:AN,cardHead:SN,cardRow:jN,cardKey:wN};function qg({ticker:a,cls:l,glyph:i}){const r=Vt(a);return o.jsx("div",{className:`${Fe.icon} ${Fe[`icon_${l}`]} ${r?Fe.iconHasLogo:""}`,children:r?o.jsx("img",{src:r,alt:a,className:Fe.iconImg}):i})}function EN(){const a=A.useRef(null),[l,i]=A.useState(!1);return A.useEffect(()=>{const r=a.current;if(!r)return;const d=new IntersectionObserver(f=>{var h;(h=f[0])!=null&&h.isIntersecting&&(i(!0),d.disconnect())},{threshold:.3});return d.observe(r),()=>d.disconnect()},[]),o.jsx("section",{ref:a,className:Fe.section,children:o.jsxs("div",{className:Fe.wrap,children:[o.jsx("h2",{className:Fe.title,children:"Поддерживаемые сети"}),o.jsx("div",{className:Fe.tableWrap,children:o.jsxs("table",{className:Fe.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Сеть"}),o.jsx("th",{children:"Скорость"}),o.jsx("th",{children:"Комиссия"}),o.jsx("th",{children:"Подтверждение"})]})}),o.jsx("tbody",{children:Hg.map(r=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:Fe.name,children:[o.jsx(qg,{ticker:r.ticker,cls:r.cls,glyph:r.icon}),o.jsx("span",{className:Fe.label,children:r.name}),o.jsx("span",{className:Fe.ticker,children:r.ticker})]})}),o.jsx("td",{children:o.jsx("div",{className:Fe.speedBar,children:o.jsx("div",{className:Fe.speedFill,style:{width:l?`${r.speed}%`:"0%",background:r.color}})})}),o.jsx("td",{children:o.jsx("span",{className:Fe.fee,children:r.fee})}),o.jsx("td",{children:o.jsx("span",{className:Fe.confirm,children:r.confirm})})]},r.ticker))})]})}),o.jsx("div",{className:Fe.cards,"data-inview":l||void 0,children:Hg.map((r,d)=>o.jsxs("div",{className:Fe.card,style:{transitionDelay:`${d*80}ms`},children:[o.jsxs("div",{className:Fe.cardHead,children:[o.jsx(qg,{ticker:r.ticker,cls:r.cls,glyph:r.icon}),o.jsx("span",{className:Fe.label,children:r.name}),o.jsx("span",{className:Fe.ticker,children:r.ticker})]}),o.jsxs("div",{className:Fe.cardRow,children:[o.jsx("span",{className:Fe.cardKey,children:"Скорость"}),o.jsx("div",{className:Fe.speedBar,children:o.jsx("div",{className:Fe.speedFill,style:{width:l?`${r.speed}%`:"0%",background:r.color}})})]}),o.jsxs("div",{className:Fe.cardRow,children:[o.jsx("span",{className:Fe.cardKey,children:"Комиссия"}),o.jsx("span",{className:Fe.fee,children:r.fee})]}),o.jsxs("div",{className:Fe.cardRow,children:[o.jsx("span",{className:Fe.cardKey,children:"Подтверждение"}),o.jsx("span",{className:Fe.confirm,children:r.confirm})]})]},r.ticker))}),o.jsx("div",{className:Fe.footnote,children:"* Комиссии и время подтверждения указаны приблизительно и зависят от загруженности сети"})]})})}function NN(){const a=Zt();return A.useEffect(()=>{var l;((l=a.state)==null?void 0:l.scrollTo)==="about"&&requestAnimationFrame(()=>{var i;(i=document.getElementById("about"))==null||i.scrollIntoView({behavior:"smooth"})})},[a.state]),o.jsxs(o.Fragment,{children:[o.jsx(Ol,{}),o.jsxs("main",{children:[o.jsx($E,{}),o.jsx(PS,{}),o.jsx(dw,{}),o.jsx(EN,{})]}),o.jsx(Fs,{})]})}async function Sh(a,l,i){const r=await an(),d=Nt.get(),f={"Content-Type":"application/json","X-CSRF-Token":r,...d?{Authorization:`Bearer ${d}`}:{},...l.headers},h=await fetch(`${wv}${a}`,{...l,credentials:"include",headers:f});if(h.status===401&&i)try{return await ca(),Sh(a,l,!1)}catch{throw Nt.clear(),new Error("Unauthorized")}const g=await h.json();if(!h.ok)throw g;return g}const fr={get:a=>Sh(a,{},!0),post:(a,l)=>Sh(a,{method:"POST",body:JSON.stringify(l)},!0)};function CN(a){return fr.post("/auth/registration/start",a)}function TN(a){return fr.post("/auth/registration/complete",a)}function RN(a){return fr.post("/auth/login/start",a)}function kN(a){return fr.post("/auth/login/complete",a)}async function BN(){const a=await an();return fr.post("/auth/logout",{_csrf:a})}const hr="https://app.users.elcsa.ru";async function Xh(){const a=await an(),l=Nt.get();return{"X-CSRF-Token":a,...l?{Authorization:`Bearer ${l}`}:{}}}async function ON(){const a=await Xh(),l=await fetch(`${hr}/me/`,{credentials:"include",headers:a}),i=await l.json();if(!l.ok)throw i;return i}async function LN(a){const l=await Xh(),i=await fetch(`${hr}/me/settings/avatar`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...l},body:JSON.stringify(a)}),r=await i.json();if(!i.ok)throw r;return r}async function MN(a){const l=await an(),i=await fetch(`${hr}/me/settings/password/forgot/start`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":l},body:JSON.stringify(a)});if(!i.ok)throw await i.json().catch(()=>({}))}async function DN(a){const l=await Xh(),i=await fetch(`${hr}/me/settings/phone`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...l},body:JSON.stringify({phone:a})});if(!i.ok)throw await i.json().catch(()=>({}))}async function zN(a){const l=await an(),i=await fetch(`${hr}/me/settings/password/forgot/complete`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":l},body:JSON.stringify(a)});if(!i.ok)throw await i.json().catch(()=>({}))}const UN=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"";function Tv(a){return a.account_type!=="individual"}function Rv(a){return[a.last_name,a.first_name,a.middle_name].filter(Boolean).map(UN).join(" ")}function HN(a){var l;return Tv(a)?((l=a.legal_entity)==null?void 0:l.name)??"":Rv(a)}function _n(a){return Ct({queryKey:["me"],queryFn:ON,staleTime:1/0,gcTime:1/0,retry:!1,...a})}function qN(){const a=Wt();return vt({mutationFn:LN,onSuccess:l=>{a.setQueryData(["me"],l)}})}function PN(){const a=Wt();return vt({mutationFn:DN,onSuccess:()=>{a.invalidateQueries({queryKey:["me"]})}})}const du=["auth"];function QN(){return Ct({queryKey:du,queryFn:ca,retry:!1,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1})}function kv(){const{data:a,isLoading:l,isError:i}=QN();return{isAuthenticated:!!a&&!i,isLoading:l}}const FN="https://app.b2b.elcsa.ru";async function mr(a,l,i){const r=await an(),d=await fetch(`${FN}${a}`,{...l,credentials:"include",headers:{"X-CSRF-Token":r,...l.headers}});if(d.status===401&&i)try{return await ca(),mr(a,l,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function YN(a){return mr("/purchase-requests",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},!0)}function GN(a=50,l=0){return mr(`/purchase-requests?limit=${a}&offset=${l}`,{},!0)}function IN(){return mr("/v1/organizations/wallets",{},!0)}function KN(){return mr("/v1/organizations/wallets/balances",{},!0)}function XN(){const a=Wt();return vt({mutationFn:YN,onSuccess:()=>{a.invalidateQueries({queryKey:["b2b","purchase-requests"]})}})}function Bv(){return Ct({queryKey:["b2b","purchase-requests"],queryFn:()=>GN(),staleTime:3e4})}const jh=5e5,tr=[{days:3,rate:.05},{days:4,rate:.04636},{days:5,rate:.04273},{days:6,rate:.03909},{days:7,rate:.03545},{days:8,rate:.03182},{days:9,rate:.02818},{days:10,rate:.02455},{days:11,rate:.02091},{days:12,rate:.01727},{days:13,rate:.01364},{days:14,rate:.01}],qs=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0});function wh(a){const l=a%10,i=a%100;return l===1&&i!==11?`${a} день`:l>=2&&l<=4&&(i<10||i>=20)?`${a} дня`:`${a} дней`}function VN(a){var l;return((l=tr.find(i=>i.days===a))==null?void 0:l.rate)??tr[0].rate}function ZN(a,l){const i=VN(l),r=a*i;return{rate:i,commission:r,total:a+r}}function WN(a){const{name:l,contact:i,days:r,amount:d,commission:f,total:h}=a;return[l&&`Имя: ${l}`,i&&`Контакт: ${i}`,`Срок ожидания: ${wh(r)}`,`Сумма: ${qs(d)} ₽`,`Комиссия: ≈${qs(f)} ₽`,`Итого: ≈${qs(h)} ₽`].filter(Boolean).join("; ")}function JN(a){var l,i,r,d;return{name:((i=(l=a==null?void 0:a.match(/Имя:\s*([^;]+)/))==null?void 0:l[1])==null?void 0:i.trim())??"",contact:((d=(r=a==null?void 0:a.match(/Контакт:\s*([^;]+)/))==null?void 0:r[1])==null?void 0:d.trim())??""}}function $N(a){return a.reduce((l,i)=>!l||(i.created_at??"")>(l.created_at??"")?i:l,null)}const Ov="https://app.cryptowallet.elcsa.ru",Vh=["ETH","BSC","BTC","TRX","SOL"];async function Ll(a,l=!0){const i=await an(),r=Nt.get(),d=await fetch(`${Ov}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&l)try{return await ca(),Ll(a,!1)}catch{throw Nt.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function ua(a,l,i=!0,r={}){const d=await an(),f=Nt.get(),h=await fetch(`${Ov}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(l)});if(h.status===401&&i)try{return await ca(),ua(a,l,!1,r)}catch{throw Nt.clear(),new Error("Unauthorized")}const g=await h.json();if(!h.ok)throw g;return g}async function e4(){return(await Ll("/api/wallets")).data}async function t4(a){return(await Ll(`/api/wallets/${a}/balance`)).data}async function n4(a,l){return ua(`/api/wallets/${a}/send`,l)}async function a4(){return(await Ll("/api/wallets/portfolio")).data}const s4={ETH:"ETH",BNB:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function Lv(a,l){const i=a==null?void 0:a.toUpperCase();return Vh.includes(i)?i:(l?s4[l.toUpperCase()]:void 0)??null}function su(a){const l=typeof a=="number"?a:parseFloat(a??"");return Number.isFinite(l)?l:0}function Pg(a){return{raw:a.raw,formatted:a.formatted,decimals:a.decimals,usdPrice:su(a.usd_price),usdValue:su(a.usd_value)}}function l4(a,l){const i={};for(const[r,d]of Object.entries(a.tokens??{}))i[r]=Pg(d);return{chain:l,address:a.address,native:Pg(a.native),tokens:i,totalUsd:su(a.total_usd),stale:!1,lastUpdated:0}}async function Mv(){const a=await KN(),l={};for(const i of a.items??[]){const r=Lv(i.chain,i.native_symbol);r&&(l[r]=l4(i,r))}return{totalUsd:su(a.total_usd),hasErrors:!!a.has_errors,perChain:l}}const i4={raw:"0",formatted:"0",decimals:0,usdPrice:0,usdValue:0};async function o4(a){const i=(await Mv()).perChain[a];return i?{chain:a,address:i.address,native:i.native,tokens:i.tokens}:{chain:a,address:"",native:i4,tokens:{}}}async function r4(){const a=await IN(),l=[];for(const i of a??[]){const r=Lv(i.chain);r&&l.push({chain:r,address:i.address,derivationPath:i.derivation_path})}return l}async function c4(){return(await Ll("/api/tokens")).data}async function u4(){var l;const a=await Ll("/api/jumper/tokens?chains=1,56,1151111081099710,728126428,20000000000001");return((l=a.data)==null?void 0:l.tokens)??a.tokens??{}}async function d4(a){var r;const l=new URLSearchParams({fromChain:a.fromChain,toChain:a.toChain,fromToken:a.fromToken,toToken:a.toToken,fromAmount:a.fromAmount,fromAddress:a.fromAddress,toAddress:a.toAddress,slippage:String(a.slippage)}).toString(),i=await Ll(`/api/jumper/quote-best?${l}`);return((r=i.data)==null?void 0:r.body)??i.body??i}async function f4(a){var i;const l=await ua("/api/bridge/execute",a,!0,{"Idempotency-Key":crypto.randomUUID()});return((i=l.data)==null?void 0:i.data)??l}async function h4(a){return ua("/api/relay/quote",a)}async function m4(a){return ua("/api/relay/execute/swap",a)}async function p4(a,l){const i=`relay-${a.toLowerCase()}-${Date.now()}`;return ua(`/api/wallets/${a}/sign-raw-evm-tx`,l,!0,{"Idempotency-Key":i})}async function g4(a){return ua("/api/wallets/SOL/sign-and-broadcast-tx",a)}async function Dv(a){return(await ua("/api/wallets/TRX/swap/quote",a)).data}async function v4(a){return ua("/api/wallets/TRX/swap",{quoteId:a},!0,{"Idempotency-Key":`trx-${Date.now()}`})}async function y4(){await ua("/api/wallets/create",{})}async function _4(){return(await ua("/api/wallets/mnemonic/reveal",{confirm:"I_UNDERSTAND_SEED_IS_SECRET"})).data.mnemonic}function Zh(){const{data:a}=_n();return{isLegal:(a==null?void 0:a.account_type)==="legal_entity",ready:!!a}}function Pi(a){const{isLegal:l,ready:i}=Zh();return Ct({queryKey:["wallet","balance",a,l?"org":"self"],queryFn:l?()=>o4(a):()=>t4(a),enabled:i,staleTime:3e4})}function b4(){return vt({mutationFn:({chain:a,...l})=>n4(a,l)})}function fu(){const{isLegal:a,ready:l}=Zh();return Ct({queryKey:["wallet","addresses",a?"org":"self"],queryFn:a?r4:e4,enabled:l,staleTime:600*1e3})}function hu(){const{isLegal:a,ready:l}=Zh();return Ct({queryKey:["wallet","portfolio",a?"org":"self"],queryFn:a?Mv:a4,enabled:l,staleTime:3e4})}function x4(){return Ct({queryKey:["wallet","tokens"],queryFn:c4,staleTime:600*1e3})}function A4(){return Ct({queryKey:["wallet","jumper","tokens"],queryFn:u4,staleTime:600*1e3})}function S4(){return vt({mutationFn:a=>d4(a)})}function j4(){return vt({mutationFn:a=>f4(a)})}function w4(){return vt({mutationFn:y4})}function zv(a=!0){return Ct({queryKey:["wallet","mnemonic"],queryFn:_4,staleTime:1/0,retry:!1,enabled:a})}function Uv(a){return Ct({queryKey:["relay","quote",a==null?void 0:a.originChainId,a==null?void 0:a.destinationChainId,a==null?void 0:a.originCurrency,a==null?void 0:a.destinationCurrency,a==null?void 0:a.amount],queryFn:()=>h4(a),enabled:!!a,staleTime:1e4})}function E4(){return vt({mutationFn:a=>m4(a)})}function N4(){return vt({mutationFn:({chain:a,txData:l})=>a==="SOL"?g4(l):p4(a,l)})}function C4(a){return Ct({queryKey:["trx","quote",a==null?void 0:a.from,a==null?void 0:a.to,a==null?void 0:a.amountHuman],queryFn:()=>Dv(a),enabled:!!a,staleTime:1e4})}function T4(){return vt({mutationFn:Dv})}function R4(){return vt({mutationFn:a=>v4(a)})}const k4="_card_2hfzd_1",B4="_label_2hfzd_18",O4="_amountRow_2hfzd_27",L4="_amount_2hfzd_27",M4="_toggle_2hfzd_40",D4="_actions_2hfzd_69",z4="_btn_2hfzd_74",Ga={card:k4,label:B4,amountRow:O4,amount:L4,toggle:M4,actions:D4,btn:z4},U4="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%2020010904//EN'%20'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'%3e%3csvg%20version='1.0'%20xmlns='http://www.w3.org/2000/svg'%20width='309.147797pt'%20height='144.859221pt'%20viewBox='0%200%20309.147797%20144.859221'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cmetadata%3e%20Created%20by%20potrace%201.16,%20written%20by%20Peter%20Selinger%202001-2019%20%3c/metadata%3e%3crect%20width='100%25'%20height='100%25'%20fill='none'/%3e%3cg%20transform='translate(-8.181291,146.963747)%20scale(0.100000,-0.100000)'%20fill='%23ffffff'%20stroke='none'%3e%3cpath%20d='M685%201459%20c-328%20-55%20-585%20-344%20-602%20-679%20-14%20-267%20104%20-496%20334%20-643%20282%20-183%20645%20-142%20888%2098%2098%2096%20128%20143%20325%20490%2084%20149%20172%20300%20195%20336%20180%20279%20488%20420%20765%20350%20253%20-64%20426%20-222%20507%20-466%2024%20-70%2027%20-96%2027%20-205%200%20-109%20-3%20-135%20-27%20-207%20-49%20-148%20-167%20-293%20-306%20-377%20-261%20-159%20-617%20-110%20-830%20114%20-30%2032%20-73%2089%20-96%20126%20-43%2070%20-75%2094%20-75%2055%200%20-29%20113%20-194%20163%20-236%20141%20-122%20290%20-185%20453%20-193%20126%20-6%20219%2010%20318%2053%20206%2089%20356%20258%20426%20480%2030%2095%2031%20257%202%20367%20-37%20138%20-111%20259%20-219%20357%20-81%2075%20-234%20154%20-338%20176%20-249%2052%20-515%20-37%20-697%20-234%20-76%20-82%20-145%20-187%20-283%20-436%20-161%20-288%20-191%20-340%20-242%20-412%20-81%20-115%20-208%20-214%20-342%20-266%20-64%20-25%20-94%20-31%20-189%20-35%20-146%20-6%20-213%208%20-341%2070%20-88%2042%20-117%2062%20-181%20127%20-166%20169%20-236%20408%20-181%20623%2063%20245%20223%20419%20461%20499%20211%2071%20430%2028%20628%20-124%2055%20-41%20134%20-138%20184%20-222%2026%20-43%2048%20-52%2048%20-20%200%2019%20-53%20108%20-101%20170%20-147%20193%20-433%20305%20-674%20264z'/%3e%3cpath%20d='M2339%201018%20c-51%20-95%20-108%20-198%20-126%20-228%20-18%20-30%20-33%20-61%20-33%20-69%200%20-13%2053%20-102%20191%20-323%2040%20-65%2059%20-87%2073%20-85%2026%203%20198%20279%20183%20293%20-8%209%20-85%20-89%20-132%20-168%20-26%20-44%20-49%20-77%20-51%20-75%20-17%2016%20-174%20280%20-170%20285%203%203%2042%20-16%2087%20-42%2077%20-45%2082%20-47%20105%20-31%2030%2020%2032%2039%202%2031%20-17%20-4%20-51%2012%20-125%2057%20-57%2034%20-103%2067%20-103%2074%200%2019%20194%20374%20204%20375%209%200%2048%20-66%20158%20-272%2048%20-90%2054%20-98%2070%20-82%209%209%20-1%2037%20-46%20124%20-96%20187%20-166%20308%20-180%20308%20-7%200%20-55%20-78%20-107%20-172z'/%3e%3cpath%20d='M688%201083%20l-3%20-38%20-57%20-3%20c-50%20-3%20-58%20-6%20-58%20-22%200%20-16%207%20-20%2030%20-20%20l30%200%20-2%20-247%20-3%20-248%20-27%20-3%20c-30%20-4%20-38%20-26%20-12%20-36%209%20-3%2035%20-6%2059%20-6%2043%200%2044%200%2047%20-37%202%20-27%208%20-39%2021%20-41%2014%20-3%2017%204%2017%2037%200%2037%203%2041%2024%2041%2021%200%2025%20-5%2028%20-37%204%20-52%2032%20-52%2036%20-2%203%2036%205%2037%2050%2044%2059%209%2093%2026%20125%2065%2054%2063%2048%20152%20-15%20214%20l-40%2040%2021%2037%20c12%2020%2021%2049%2021%2063%200%2065%20-58%20137%20-120%20151%20-23%205%20-30%2012%20-30%2030%200%2034%20-10%2055%20-26%2055%20-8%200%20-14%20-10%20-14%20-24%200%20-39%20-11%20-56%20-35%20-56%20-20%200%20-24%206%20-27%2037%20-2%2026%20-8%2039%20-20%2041%20-13%202%20-17%20-5%20-20%20-35z%20m176%20-97%20c42%20-18%2066%20-51%2066%20-94%200%20-76%20-42%20-102%20-165%20-102%20l-85%200%200%20105%200%20105%2075%200%20c42%200%2090%20-6%20109%20-14z%20m67%20-253%20c41%20-24%2062%20-83%2049%20-133%20-19%20-72%20-87%20-103%20-218%20-98%20l-77%203%20-3%20109%20c-1%2061%200%20116%202%20123%208%2021%20210%2018%20247%20-4z'/%3e%3c/g%3e%3c/svg%3e",H4="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%2020010904//EN'%20'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'%3e%3csvg%20version='1.0'%20xmlns='http://www.w3.org/2000/svg'%20width='735.823910pt'%20height='388.545063pt'%20viewBox='0%200%20735.823910%20388.545063'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cmetadata%3e%20Created%20by%20potrace%201.16,%20written%20by%20Peter%20Selinger%202001-2019%20%3c/metadata%3e%3crect%20width='100%25'%20height='100%25'%20fill='none'/%3e%3cg%20transform='translate(-7.217511,405.779758)%20scale(0.100000,-0.100000)'%20fill='%23ffffff'%20stroke='none'%3e%3cpath%20d='M1798%204049%20c-430%20-42%20-842%20-238%20-1148%20-548%20-301%20-304%20-486%20-664%20-555%20-1081%20-25%20-154%20-31%20-424%20-11%20-560%2078%20-530%20310%20-943%20721%20-1283%20108%20-89%20335%20-218%20495%20-280%20396%20-155%20886%20-166%201300%20-28%20135%2045%20358%20157%20475%20239%20266%20185%20495%20448%20625%20720%2024%2050%2047%2092%2050%2092%203%200%2034%20-57%2070%20-127%20192%20-377%20514%20-681%20905%20-855%20474%20-212%201031%20-221%201510%20-26%20569%20233%20990%20720%201136%201313%20126%20515%2051%201029%20-217%201487%20-254%20433%20-705%20771%20-1187%20887%20-194%2047%20-261%2055%20-447%2055%20-245%201%20-433%20-30%20-660%20-109%20-263%20-91%20-537%20-269%20-741%20-481%20-117%20-122%20-269%20-344%20-338%20-492%20-14%20-29%20-27%20-52%20-31%20-52%20-3%200%20-21%2030%20-39%2068%20-103%20210%20-277%20437%20-456%20595%20-395%20347%20-927%20517%20-1457%20466z%20m432%20-83%20c648%20-87%201206%20-513%201457%20-1113%2058%20-139%2070%20-143%20109%20-40%2086%20229%20283%20517%20465%20681%20172%20156%20423%20309%20613%20375%20241%2085%20441%20116%20686%20108%20197%20-7%20344%20-32%20523%20-91%20549%20-180%20993%20-630%201176%20-1194%2072%20-221%2086%20-314%2086%20-587%20-1%20-268%20-10%20-343%20-70%20-540%20-168%20-552%20-569%20-985%20-1113%20-1199%20-194%20-76%20-520%20-130%20-722%20-120%20-606%2032%20-1137%20334%20-1468%20835%20-54%2082%20-134%20237%20-172%20334%20-46%20115%20-55%20113%20-110%20-22%20-174%20-433%20-499%20-773%20-932%20-978%20-184%20-87%20-403%20-143%20-642%20-165%20-291%20-26%20-662%2047%20-937%20185%20-449%20225%20-784%20611%20-938%201082%20-71%20216%20-86%20314%20-86%20583%200%20183%204%20256%2018%20330%2091%20489%20342%20897%20733%201191%20256%20193%20549%20309%20889%20352%2076%2010%20340%205%20435%20-7z'/%3e%3cpath%20d='M5120%202656%20c0%20-459%20-2%20-515%20-16%20-520%20-9%20-3%20-78%20-6%20-155%20-6%20l-139%200%200%20-55%200%20-55%20155%200%20156%200%20-3%20-127%20-3%20-128%20-150%20-5%20-150%20-5%20-3%20-47%20-3%20-48%20155%200%20156%200%202%20-327%203%20-328%2055%200%2055%200%203%20327%202%20328%20363%202%20362%203%200%2045%200%2045%20-360%205%20-360%205%20-3%20127%20-3%20126%20383%204%20383%204%2082%2027%20c246%2082%20396%20288%20395%20542%200%20234%20-134%20436%20-345%20522%20-109%2045%20-207%2053%20-629%2053%20l-388%200%200%20-514z%20m940%20375%20c171%20-60%20266%20-168%20306%20-351%2052%20-230%20-99%20-468%20-337%20-531%20-47%20-13%20-722%20-26%20-765%20-15%20l-24%206%200%20461%200%20461%20378%20-4%20c362%20-4%20380%20-5%20442%20-27z'/%3e%3cpath%20d='M1199%203044%20c-5%20-7%20-8%20-75%20-7%20-155%20l3%20-144%20300%20-5%20300%20-5%203%20-317%202%20-318%20190%200%20c174%200%20190%201%20191%2018%200%209%201%20152%202%20317%20l2%20300%20303%203%20302%202%200%20155%20c0%20117%20-3%20155%20-12%20156%20-7%200%20-363%201%20-791%202%20-571%201%20-781%20-1%20-788%20-9z'/%3e%3cpath%20d='M1555%202404%20c-279%20-30%20-473%20-77%20-561%20-137%20-209%20-141%2095%20-294%20668%20-336%2064%20-5%20121%20-12%20127%20-15%208%20-5%2011%20-136%2011%20-437%20l0%20-429%20193%202%20192%203%203%20433%20c2%20403%203%20432%2020%20432%209%200%2082%207%20162%2015%20357%2035%20609%20109%20668%20195%2077%20115%20-127%20217%20-528%20264%20-240%2028%20-269%2029%20-276%2011%20-4%20-9%20-3%20-20%202%20-25%205%20-5%2070%20-14%20144%20-20%20276%20-23%20501%20-75%20562%20-129%2043%20-39%2033%20-63%20-45%20-100%20-321%20-157%20-1451%20-161%20-1799%20-8%20-68%2030%20-94%2062%20-75%2092%2040%2062%20261%20118%20577%20145%2074%207%20139%2015%20143%2019%204%204%205%2015%201%2024%20-7%2020%20-13%2020%20-189%201z'/%3e%3cpath%20d='M3365%202095%20c-30%20-30%20-31%20-54%20-4%20-89%2040%20-50%20119%20-21%20119%2044%200%2064%20-70%2091%20-115%2045z'/%3e%3cpath%20d='M3726%202099%20c-52%20-41%20-24%20-119%2044%20-119%2031%200%2044%208%2059%2037%2017%2033%2014%2051%20-14%2078%20-30%2030%20-54%2031%20-89%204z'/%3e%3cpath%20d='M4100%202113%20c-42%20-17%20-53%20-80%20-19%20-114%2028%20-28%2076%20-22%20102%2013%2018%2024%2019%2030%207%2058%20-16%2039%20-53%2057%20-90%2043z'/%3e%3c/g%3e%3c/svg%3e";function q4(){var m;const{data:a,isLoading:l}=hu(),[i,r]=A.useState("usd"),d=Ev(i==="rub"?Wc:0),f=Number((m=d.data)==null?void 0:m.usdt_exchange_rate)||0,h=l||!a||a.totalUsd==null?null:a.totalUsd;let g;return i==="usd"?g=h==null?"$—":`$${h.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:g=h==null||f<=0?"— ₽":`${(h*f).toLocaleString("ru-RU",{minimumFractionDigits:2,maximumFractionDigits:2})} ₽`,o.jsxs("div",{className:Ga.card,children:[o.jsxs("div",{className:Ga.left,children:[o.jsx("div",{className:Ga.label,children:"Общий баланс"}),o.jsxs("div",{className:Ga.amountRow,children:[o.jsx("div",{className:Ga.amount,children:g}),o.jsx("button",{type:"button",className:Ga.toggle,onClick:()=>r(p=>p==="usd"?"rub":"usd"),"aria-label":"Переключить валюту",children:i==="usd"?"₽":"$"})]})]}),o.jsxs("div",{className:Ga.actions,children:[o.jsxs(vn,{to:ne.CONVERTER,className:Ga.btn,type:"button",children:[o.jsx("img",{src:H4,alt:"swap"}),"Пополнить кошелёк"]}),o.jsxs(vn,{to:ne.SWAP,className:Ga.btn,type:"button",children:[o.jsx("img",{src:U4,alt:"topup"}),"Своп / Бридж"]})]})]})}function nt(a,l=8){const i=typeof a=="number"?a.toString():a,r=i.indexOf(".");return r===-1?i:i.slice(0,r+1+l)}const P4=[{ticker:"BTC",name:"Bitcoin",logo:_e.BTC,color:"#F7931A",price:"$66,916.00",change:.12,bal:"0.003295",usd:"$220.57",fav:!0},{ticker:"ETH",name:"Ethereum",logo:_e.ETH,color:"#627EEA",price:"$2,053.97",change:-.12,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"SOL",name:"Solana",logo:_e.SOL,color:"#9945FF",price:"$163.84",change:-1.57,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"TRX",name:"Tron",logo:_e.TRX,color:"#FF060A",price:"$0.1197",change:1.33,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"BNB",name:"BNB",logo:_e.BNB,color:"#F3BA2F",price:"$0.00",change:0,bal:"0.00000",usd:"$0.00",fav:!1}],Q4={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BNB"},F4={BTC:"Bitcoin",ETH:"Ethereum",SOL:"Solana",TRX:"Tron",BSC:"BNB"},Hv="#2A2D3A";function qv(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function Pv(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function Qv(a){return P4.find(l=>l.ticker===a)}function Fv(a,l){const i=Q4[a],r=Qv(i);return{id:`${a}-${i}`,chain:a,ticker:i,name:F4[a],logo:Vt(i)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??Hv,price:Pv(l.usdPrice),change:0,bal:nt(l.formatted),usd:qv(l.usdValue),usdValue:l.usdValue,fav:!1}}function Yv(a,l,i){const r=Qv(l);return{id:`${a}-${l}`,chain:a,ticker:l,name:(r==null?void 0:r.name)??l,logo:Vt(l)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??Hv,price:Pv(i.usdPrice),change:0,bal:nt(i.formatted),usd:qv(i.usdValue),usdValue:i.usdValue,fav:!1}}function Qg(a){return parseFloat(a.formatted)>0}function Y4(a){const{data:l,isLoading:i}=Pi(a);if(!l)return{rows:[],isLoading:i};const r=Fv(a,l.native),d=Object.entries(l.tokens??{}).map(([f,h])=>Yv(a,f,h));return{rows:[r,...d],isLoading:i}}function G4(){var f;const{data:a,isLoading:l}=hu(),{data:i}=_n(),r=(i==null?void 0:i.account_type)==="legal_entity";if(!a)return{rows:[],isLoading:l};const d=[];for(const h of Vh){const g=(f=a.perChain)==null?void 0:f[h];if(!g)continue;const m=[];g.native&&(r||Qg(g.native))&&m.push(Fv(h,g.native));for(const[p,y]of Object.entries(g.tokens??{}))!r&&!Qg(y)||m.push(Yv(h,p,y));m.sort((p,y)=>(y.usdValue??0)-(p.usdValue??0)),d.push(...m)}return{rows:d,isLoading:l}}const I4={ETH:["USDT","USDC","DAI","WBTC","LINK","UNI"],BSC:["USDT","USDC","BUSD","WBNB","DOGE"],BTC:[],TRX:["USDT","USDC"],SOL:["USDC","USDT","RAY","BONK","JTO","PYTH","WIF","JUP","ORCA","MNGO","MSOL","STSOL","SAMO","ATLAS"]},K4={ETH:{label:"Ethereum",nativeSymbol:"ETH",hasToken:!0,hasFeeTier:!0,addressPlaceholder:"0x…",unit:"wei",color:"#627EEA",nativeDecimals:18},BSC:{label:"BSC Chain",nativeSymbol:"BSC",hasToken:!0,hasFeeTier:!1,addressPlaceholder:"0x…",unit:"wei",color:"#F3BA2F",nativeDecimals:18},BTC:{label:"Bitcoin",nativeSymbol:"BTC",hasToken:!1,hasFeeTier:!0,addressPlaceholder:"bc1q…",unit:"satoshi",color:"#F7931A",nativeDecimals:8},TRX:{label:"Tron",nativeSymbol:"TRX",hasToken:!0,hasFeeTier:!1,addressPlaceholder:"T…",unit:"sun",color:"#FF060A",nativeDecimals:6},SOL:{label:"Solana",nativeSymbol:"SOL",hasToken:!0,hasFeeTier:!1,addressPlaceholder:"Fg3R…",unit:"lamport",color:"#9945FF",nativeDecimals:9}},X4={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BSC"},V4="_overlay_1hejd_1",Z4="_dialog_1hejd_14",W4="_dialogIn_1hejd_1",J4="_header_1hejd_37",$4="_title_1hejd_44",eC="_close_1hejd_50",tC="_selectsRow_1hejd_72",nC="_selectGroup_1hejd_79",aC="_selectLabel_1hejd_83",sC="_selectTrigger_1hejd_93",lC="_selectTriggerOpen_1hejd_112",iC="_selectValue_1hejd_117",oC="_chevron_1hejd_125",rC="_chevronOpen_1hejd_131",cC="_tokenDot_1hejd_137",uC="_speedDot_1hejd_158",dC="_speedDot_slow_1hejd_165",fC="_speedDot_normal_1hejd_170",hC="_speedDot_fast_1hejd_175",mC="_dropdown_1hejd_182",pC="_dropdownItem_1hejd_195",gC="_dropdownItemActive_1hejd_215",vC="_dropdownTicker_1hejd_220",yC="_dropdownName_1hejd_225",_C="_field_1hejd_233",bC="_fieldLabel_1hejd_237",xC="_input_1hejd_247",AC="_amountWrap_1hejd_283",SC="_amountInput_1hejd_287",jC="_amountTicker_1hejd_291",wC="_maxHint_1hejd_304",EC="_maxBtn_1hejd_314",NC="_errorMsg_1hejd_333",CC="_submitBtn_1hejd_346",fe={overlay:V4,dialog:Z4,dialogIn:W4,header:J4,title:$4,close:eC,selectsRow:tC,selectGroup:nC,selectLabel:aC,selectTrigger:sC,selectTriggerOpen:lC,selectValue:iC,chevron:oC,chevronOpen:rC,tokenDot:cC,speedDot:uC,speedDot_slow:dC,speedDot_normal:fC,speedDot_fast:hC,dropdown:mC,dropdownItem:pC,dropdownItemActive:gC,dropdownTicker:vC,dropdownName:yC,field:_C,fieldLabel:bC,input:xC,amountWrap:AC,amountInput:SC,amountTicker:jC,maxHint:wC,maxBtn:EC,errorMsg:NC,submitBtn:CC},Fg=[{value:"slow",label:"Медленно"},{value:"normal",label:"Нормально"},{value:"fast",label:"Быстро"}];function TC(a){var l;if(a instanceof Error)return a.message;if(a&&typeof a=="object"){const i=a;if(typeof i.message=="string")return i.message;if(typeof i.error=="string")return i.error;if(Array.isArray(i.detail)&&((l=i.detail[0])!=null&&l.msg))return String(i.detail[0].msg)}return"Что-то пошло не так. Попробуйте ещё раз."}function RC({open:a,onClose:l,network:i,tokens:r=[],initialToken:d=""}){var ce;const f=K4[i],h=I4[i],[g,m]=A.useState(d),[p,y]=A.useState("normal"),[_,b]=A.useState(""),[S,j]=A.useState(""),[w,E]=A.useState(null),R=b4(),L=((ce=Fg.find(ee=>ee.value===p))==null?void 0:ce.label)??"Нормально",B=g===""?f.nativeSymbol:g,q=r.find(ee=>ee.ticker===(g===""?f.nativeSymbol:g));if(A.useEffect(()=>{m(d)},[d]),A.useEffect(()=>{m("")},[i]),A.useEffect(()=>{R.isSuccess&&l()},[R.isSuccess,l]),A.useEffect(()=>{if(!a){b(""),j(""),E(null),R.reset();return}const ee=he=>{he.key==="Escape"&&l()};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[a,l]),!a)return null;const K=f.hasToken,V=f.hasFeeTier,U=K||V,I=K&&V?2:1;function $(){w?E(null):l()}function ue(ee,he){const[ae,P=""]=ee.split("."),X=P.slice(0,he).padEnd(he,"0");return(BigInt(ae||"0")*10n**BigInt(he)+BigInt(X||"0")).toString()}function re(){const he=g===""?ue(S,f.nativeDecimals):S;R.mutate({chain:i,to:_,amount:he,...g?{token:g}:{},...f.hasFeeTier?{feeTier:p}:{}})}return o.jsx("div",{className:fe.overlay,onClick:$,children:o.jsxs("div",{className:fe.dialog,onClick:ee=>ee.stopPropagation(),children:[o.jsxs("div",{className:fe.header,children:[o.jsxs("div",{className:fe.headerLeft,children:[o.jsx("span",{className:fe.chainDot,style:{background:f.color}}),o.jsxs("span",{className:fe.title,children:["Отправить · ",f.label]})]}),o.jsx("button",{className:fe.close,onClick:l,type:"button","aria-label":"Закрыть",children:o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),U&&o.jsxs("div",{className:fe.selectsRow,style:{gridTemplateColumns:`repeat(${I}, 1fr)`},children:[K&&o.jsxs("div",{className:fe.selectGroup,children:[o.jsx("label",{className:fe.selectLabel,children:"Токен"}),o.jsxs("button",{type:"button",className:`${fe.selectTrigger} ${w==="token"?fe.selectTriggerOpen:""}`,onClick:()=>E(ee=>ee==="token"?null:"token"),children:[o.jsx("span",{className:fe.tokenDot,style:{background:f.color},children:Vt(B)?o.jsx("img",{src:Vt(B),alt:B}):B[0]}),o.jsx("span",{className:fe.selectValue,children:B}),o.jsx("svg",{className:`${fe.chevron} ${w==="token"?fe.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:o.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),w==="token"&&o.jsxs("div",{className:fe.dropdown,children:[o.jsxs("button",{type:"button",className:`${fe.dropdownItem} ${g===""?fe.dropdownItemActive:""}`,onClick:()=>{m(""),E(null)},children:[o.jsx("span",{className:fe.tokenDot,style:{background:f.color},children:Vt(f.nativeSymbol)?o.jsx("img",{src:Vt(f.nativeSymbol),alt:f.nativeSymbol}):f.nativeSymbol[0]}),o.jsx("span",{className:fe.dropdownTicker,children:f.nativeSymbol}),o.jsx("span",{className:fe.dropdownName,children:"Нативный"})]}),h.map(ee=>o.jsxs("button",{type:"button",className:`${fe.dropdownItem} ${g===ee?fe.dropdownItemActive:""}`,onClick:()=>{m(ee),E(null)},children:[o.jsx("span",{className:fe.tokenDot,style:{background:"rgba(255,255,255,0.12)"},children:Vt(ee)?o.jsx("img",{src:Vt(ee),alt:ee}):ee[0]}),o.jsx("span",{className:fe.dropdownTicker,children:ee})]},ee))]})]}),V&&o.jsxs("div",{className:fe.selectGroup,children:[o.jsx("label",{className:fe.selectLabel,children:"Скорость"}),o.jsxs("button",{type:"button",className:`${fe.selectTrigger} ${w==="speed"?fe.selectTriggerOpen:""}`,onClick:()=>E(ee=>ee==="speed"?null:"speed"),children:[o.jsx("span",{className:`${fe.speedDot} ${fe[`speedDot_${p}`]}`}),o.jsx("span",{className:fe.selectValue,children:L}),o.jsx("svg",{className:`${fe.chevron} ${w==="speed"?fe.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:o.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),w==="speed"&&o.jsx("div",{className:fe.dropdown,children:Fg.map(ee=>o.jsxs("button",{type:"button",className:`${fe.dropdownItem} ${ee.value===p?fe.dropdownItemActive:""}`,onClick:()=>{y(ee.value),E(null)},children:[o.jsx("span",{className:`${fe.speedDot} ${fe[`speedDot_${ee.value}`]}`}),o.jsx("span",{children:ee.label})]},ee.value))})]})]}),o.jsxs("div",{className:fe.field,children:[o.jsx("label",{className:fe.fieldLabel,children:"Адрес кошелька"}),o.jsx("input",{className:fe.input,type:"text",placeholder:f.addressPlaceholder,value:_,onChange:ee=>b(ee.target.value),autoComplete:"off",spellCheck:!1})]}),o.jsxs("div",{className:fe.field,children:[o.jsx("label",{className:fe.fieldLabel,children:"Количество"}),o.jsxs("div",{className:fe.amountWrap,children:[o.jsx("input",{className:`${fe.input} ${fe.amountInput}`,type:"number",placeholder:"0.00",value:S,onChange:ee=>j(ee.target.value),min:"0",step:"any"}),o.jsx("span",{className:fe.amountTicker,children:B})]}),q&&o.jsxs("div",{className:fe.maxHint,children:["Макс:"," ",o.jsxs("button",{type:"button",className:fe.maxBtn,onClick:()=>j(q.bal),children:[q.bal," ",B]})]})]}),R.isError&&o.jsx("div",{className:fe.errorMsg,children:TC(R.error)}),o.jsx("button",{className:fe.submitBtn,type:"button",disabled:R.isPending,onClick:re,children:R.isPending?"Отправка…":"Отправить"})]})})}var kC=Object.defineProperty,lu=Object.getOwnPropertySymbols,Gv=Object.prototype.hasOwnProperty,Iv=Object.prototype.propertyIsEnumerable,Yg=(a,l,i)=>l in a?kC(a,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[l]=i,Eh=(a,l)=>{for(var i in l||(l={}))Gv.call(l,i)&&Yg(a,i,l[i]);if(lu)for(var i of lu(l))Iv.call(l,i)&&Yg(a,i,l[i]);return a},Nh=(a,l)=>{var i={};for(var r in a)Gv.call(a,r)&&l.indexOf(r)<0&&(i[r]=a[r]);if(a!=null&&lu)for(var r of lu(a))l.indexOf(r)<0&&Iv.call(a,r)&&(i[r]=a[r]);return i};/**
 * @license QR Code generator library (TypeScript)
 * Copyright (c) Project Nayuki.
 * SPDX-License-Identifier: MIT
 */var Bl;(a=>{const l=class Re{constructor(m,p,y,_){if(this.version=m,this.errorCorrectionLevel=p,this.modules=[],this.isFunction=[],m<Re.MIN_VERSION||m>Re.MAX_VERSION)throw new RangeError("Version value out of range");if(_<-1||_>7)throw new RangeError("Mask value out of range");this.size=m*4+17;let b=[];for(let j=0;j<this.size;j++)b.push(!1);for(let j=0;j<this.size;j++)this.modules.push(b.slice()),this.isFunction.push(b.slice());this.drawFunctionPatterns();const S=this.addEccAndInterleave(y);if(this.drawCodewords(S),_==-1){let j=1e9;for(let w=0;w<8;w++){this.applyMask(w),this.drawFormatBits(w);const E=this.getPenaltyScore();E<j&&(_=w,j=E),this.applyMask(w)}}d(0<=_&&_<=7),this.mask=_,this.applyMask(_),this.drawFormatBits(_),this.isFunction=[]}static encodeText(m,p){const y=a.QrSegment.makeSegments(m);return Re.encodeSegments(y,p)}static encodeBinary(m,p){const y=a.QrSegment.makeBytes(m);return Re.encodeSegments([y],p)}static encodeSegments(m,p,y=1,_=40,b=-1,S=!0){if(!(Re.MIN_VERSION<=y&&y<=_&&_<=Re.MAX_VERSION)||b<-1||b>7)throw new RangeError("Invalid value");let j,w;for(j=y;;j++){const B=Re.getNumDataCodewords(j,p)*8,q=h.getTotalBits(m,j);if(q<=B){w=q;break}if(j>=_)throw new RangeError("Data too long")}for(const B of[Re.Ecc.MEDIUM,Re.Ecc.QUARTILE,Re.Ecc.HIGH])S&&w<=Re.getNumDataCodewords(j,B)*8&&(p=B);let E=[];for(const B of m){i(B.mode.modeBits,4,E),i(B.numChars,B.mode.numCharCountBits(j),E);for(const q of B.getData())E.push(q)}d(E.length==w);const R=Re.getNumDataCodewords(j,p)*8;d(E.length<=R),i(0,Math.min(4,R-E.length),E),i(0,(8-E.length%8)%8,E),d(E.length%8==0);for(let B=236;E.length<R;B^=253)i(B,8,E);let L=[];for(;L.length*8<E.length;)L.push(0);return E.forEach((B,q)=>L[q>>>3]|=B<<7-(q&7)),new Re(j,p,L,b)}getModule(m,p){return 0<=m&&m<this.size&&0<=p&&p<this.size&&this.modules[p][m]}getModules(){return this.modules}drawFunctionPatterns(){for(let y=0;y<this.size;y++)this.setFunctionModule(6,y,y%2==0),this.setFunctionModule(y,6,y%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const m=this.getAlignmentPatternPositions(),p=m.length;for(let y=0;y<p;y++)for(let _=0;_<p;_++)y==0&&_==0||y==0&&_==p-1||y==p-1&&_==0||this.drawAlignmentPattern(m[y],m[_]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(m){const p=this.errorCorrectionLevel.formatBits<<3|m;let y=p;for(let b=0;b<10;b++)y=y<<1^(y>>>9)*1335;const _=(p<<10|y)^21522;d(_>>>15==0);for(let b=0;b<=5;b++)this.setFunctionModule(8,b,r(_,b));this.setFunctionModule(8,7,r(_,6)),this.setFunctionModule(8,8,r(_,7)),this.setFunctionModule(7,8,r(_,8));for(let b=9;b<15;b++)this.setFunctionModule(14-b,8,r(_,b));for(let b=0;b<8;b++)this.setFunctionModule(this.size-1-b,8,r(_,b));for(let b=8;b<15;b++)this.setFunctionModule(8,this.size-15+b,r(_,b));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let m=this.version;for(let y=0;y<12;y++)m=m<<1^(m>>>11)*7973;const p=this.version<<12|m;d(p>>>18==0);for(let y=0;y<18;y++){const _=r(p,y),b=this.size-11+y%3,S=Math.floor(y/3);this.setFunctionModule(b,S,_),this.setFunctionModule(S,b,_)}}drawFinderPattern(m,p){for(let y=-4;y<=4;y++)for(let _=-4;_<=4;_++){const b=Math.max(Math.abs(_),Math.abs(y)),S=m+_,j=p+y;0<=S&&S<this.size&&0<=j&&j<this.size&&this.setFunctionModule(S,j,b!=2&&b!=4)}}drawAlignmentPattern(m,p){for(let y=-2;y<=2;y++)for(let _=-2;_<=2;_++)this.setFunctionModule(m+_,p+y,Math.max(Math.abs(_),Math.abs(y))!=1)}setFunctionModule(m,p,y){this.modules[p][m]=y,this.isFunction[p][m]=!0}addEccAndInterleave(m){const p=this.version,y=this.errorCorrectionLevel;if(m.length!=Re.getNumDataCodewords(p,y))throw new RangeError("Invalid argument");const _=Re.NUM_ERROR_CORRECTION_BLOCKS[y.ordinal][p],b=Re.ECC_CODEWORDS_PER_BLOCK[y.ordinal][p],S=Math.floor(Re.getNumRawDataModules(p)/8),j=_-S%_,w=Math.floor(S/_);let E=[];const R=Re.reedSolomonComputeDivisor(b);for(let B=0,q=0;B<_;B++){let K=m.slice(q,q+w-b+(B<j?0:1));q+=K.length;const V=Re.reedSolomonComputeRemainder(K,R);B<j&&K.push(0),E.push(K.concat(V))}let L=[];for(let B=0;B<E[0].length;B++)E.forEach((q,K)=>{(B!=w-b||K>=j)&&L.push(q[B])});return d(L.length==S),L}drawCodewords(m){if(m.length!=Math.floor(Re.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let p=0;for(let y=this.size-1;y>=1;y-=2){y==6&&(y=5);for(let _=0;_<this.size;_++)for(let b=0;b<2;b++){const S=y-b,w=(y+1&2)==0?this.size-1-_:_;!this.isFunction[w][S]&&p<m.length*8&&(this.modules[w][S]=r(m[p>>>3],7-(p&7)),p++)}}d(p==m.length*8)}applyMask(m){if(m<0||m>7)throw new RangeError("Mask value out of range");for(let p=0;p<this.size;p++)for(let y=0;y<this.size;y++){let _;switch(m){case 0:_=(y+p)%2==0;break;case 1:_=p%2==0;break;case 2:_=y%3==0;break;case 3:_=(y+p)%3==0;break;case 4:_=(Math.floor(y/3)+Math.floor(p/2))%2==0;break;case 5:_=y*p%2+y*p%3==0;break;case 6:_=(y*p%2+y*p%3)%2==0;break;case 7:_=((y+p)%2+y*p%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[p][y]&&_&&(this.modules[p][y]=!this.modules[p][y])}}getPenaltyScore(){let m=0;for(let b=0;b<this.size;b++){let S=!1,j=0,w=[0,0,0,0,0,0,0];for(let E=0;E<this.size;E++)this.modules[b][E]==S?(j++,j==5?m+=Re.PENALTY_N1:j>5&&m++):(this.finderPenaltyAddHistory(j,w),S||(m+=this.finderPenaltyCountPatterns(w)*Re.PENALTY_N3),S=this.modules[b][E],j=1);m+=this.finderPenaltyTerminateAndCount(S,j,w)*Re.PENALTY_N3}for(let b=0;b<this.size;b++){let S=!1,j=0,w=[0,0,0,0,0,0,0];for(let E=0;E<this.size;E++)this.modules[E][b]==S?(j++,j==5?m+=Re.PENALTY_N1:j>5&&m++):(this.finderPenaltyAddHistory(j,w),S||(m+=this.finderPenaltyCountPatterns(w)*Re.PENALTY_N3),S=this.modules[E][b],j=1);m+=this.finderPenaltyTerminateAndCount(S,j,w)*Re.PENALTY_N3}for(let b=0;b<this.size-1;b++)for(let S=0;S<this.size-1;S++){const j=this.modules[b][S];j==this.modules[b][S+1]&&j==this.modules[b+1][S]&&j==this.modules[b+1][S+1]&&(m+=Re.PENALTY_N2)}let p=0;for(const b of this.modules)p=b.reduce((S,j)=>S+(j?1:0),p);const y=this.size*this.size,_=Math.ceil(Math.abs(p*20-y*10)/y)-1;return d(0<=_&&_<=9),m+=_*Re.PENALTY_N4,d(0<=m&&m<=2568888),m}getAlignmentPatternPositions(){if(this.version==1)return[];{const m=Math.floor(this.version/7)+2,p=this.version==32?26:Math.ceil((this.version*4+4)/(m*2-2))*2;let y=[6];for(let _=this.size-7;y.length<m;_-=p)y.splice(1,0,_);return y}}static getNumRawDataModules(m){if(m<Re.MIN_VERSION||m>Re.MAX_VERSION)throw new RangeError("Version number out of range");let p=(16*m+128)*m+64;if(m>=2){const y=Math.floor(m/7)+2;p-=(25*y-10)*y-55,m>=7&&(p-=36)}return d(208<=p&&p<=29648),p}static getNumDataCodewords(m,p){return Math.floor(Re.getNumRawDataModules(m)/8)-Re.ECC_CODEWORDS_PER_BLOCK[p.ordinal][m]*Re.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][m]}static reedSolomonComputeDivisor(m){if(m<1||m>255)throw new RangeError("Degree out of range");let p=[];for(let _=0;_<m-1;_++)p.push(0);p.push(1);let y=1;for(let _=0;_<m;_++){for(let b=0;b<p.length;b++)p[b]=Re.reedSolomonMultiply(p[b],y),b+1<p.length&&(p[b]^=p[b+1]);y=Re.reedSolomonMultiply(y,2)}return p}static reedSolomonComputeRemainder(m,p){let y=p.map(_=>0);for(const _ of m){const b=_^y.shift();y.push(0),p.forEach((S,j)=>y[j]^=Re.reedSolomonMultiply(S,b))}return y}static reedSolomonMultiply(m,p){if(m>>>8||p>>>8)throw new RangeError("Byte out of range");let y=0;for(let _=7;_>=0;_--)y=y<<1^(y>>>7)*285,y^=(p>>>_&1)*m;return d(y>>>8==0),y}finderPenaltyCountPatterns(m){const p=m[1];d(p<=this.size*3);const y=p>0&&m[2]==p&&m[3]==p*3&&m[4]==p&&m[5]==p;return(y&&m[0]>=p*4&&m[6]>=p?1:0)+(y&&m[6]>=p*4&&m[0]>=p?1:0)}finderPenaltyTerminateAndCount(m,p,y){return m&&(this.finderPenaltyAddHistory(p,y),p=0),p+=this.size,this.finderPenaltyAddHistory(p,y),this.finderPenaltyCountPatterns(y)}finderPenaltyAddHistory(m,p){p[0]==0&&(m+=this.size),p.pop(),p.unshift(m)}};l.MIN_VERSION=1,l.MAX_VERSION=40,l.PENALTY_N1=3,l.PENALTY_N2=3,l.PENALTY_N3=40,l.PENALTY_N4=10,l.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],l.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a.QrCode=l;function i(g,m,p){if(m<0||m>31||g>>>m)throw new RangeError("Value out of range");for(let y=m-1;y>=0;y--)p.push(g>>>y&1)}function r(g,m){return(g>>>m&1)!=0}function d(g){if(!g)throw new Error("Assertion error")}const f=class pt{constructor(m,p,y){if(this.mode=m,this.numChars=p,this.bitData=y,p<0)throw new RangeError("Invalid argument");this.bitData=y.slice()}static makeBytes(m){let p=[];for(const y of m)i(y,8,p);return new pt(pt.Mode.BYTE,m.length,p)}static makeNumeric(m){if(!pt.isNumeric(m))throw new RangeError("String contains non-numeric characters");let p=[];for(let y=0;y<m.length;){const _=Math.min(m.length-y,3);i(parseInt(m.substring(y,y+_),10),_*3+1,p),y+=_}return new pt(pt.Mode.NUMERIC,m.length,p)}static makeAlphanumeric(m){if(!pt.isAlphanumeric(m))throw new RangeError("String contains unencodable characters in alphanumeric mode");let p=[],y;for(y=0;y+2<=m.length;y+=2){let _=pt.ALPHANUMERIC_CHARSET.indexOf(m.charAt(y))*45;_+=pt.ALPHANUMERIC_CHARSET.indexOf(m.charAt(y+1)),i(_,11,p)}return y<m.length&&i(pt.ALPHANUMERIC_CHARSET.indexOf(m.charAt(y)),6,p),new pt(pt.Mode.ALPHANUMERIC,m.length,p)}static makeSegments(m){return m==""?[]:pt.isNumeric(m)?[pt.makeNumeric(m)]:pt.isAlphanumeric(m)?[pt.makeAlphanumeric(m)]:[pt.makeBytes(pt.toUtf8ByteArray(m))]}static makeEci(m){let p=[];if(m<0)throw new RangeError("ECI assignment value out of range");if(m<128)i(m,8,p);else if(m<16384)i(2,2,p),i(m,14,p);else if(m<1e6)i(6,3,p),i(m,21,p);else throw new RangeError("ECI assignment value out of range");return new pt(pt.Mode.ECI,0,p)}static isNumeric(m){return pt.NUMERIC_REGEX.test(m)}static isAlphanumeric(m){return pt.ALPHANUMERIC_REGEX.test(m)}getData(){return this.bitData.slice()}static getTotalBits(m,p){let y=0;for(const _ of m){const b=_.mode.numCharCountBits(p);if(_.numChars>=1<<b)return 1/0;y+=4+b+_.bitData.length}return y}static toUtf8ByteArray(m){m=encodeURI(m);let p=[];for(let y=0;y<m.length;y++)m.charAt(y)!="%"?p.push(m.charCodeAt(y)):(p.push(parseInt(m.substring(y+1,y+3),16)),y+=2);return p}};f.NUMERIC_REGEX=/^[0-9]*$/,f.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,f.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let h=f;a.QrSegment=f})(Bl||(Bl={}));(a=>{(l=>{const i=class{constructor(d,f){this.ordinal=d,this.formatBits=f}};i.LOW=new i(0,1),i.MEDIUM=new i(1,0),i.QUARTILE=new i(2,3),i.HIGH=new i(3,2),l.Ecc=i})(a.QrCode||(a.QrCode={}))})(Bl||(Bl={}));(a=>{(l=>{const i=class{constructor(d,f){this.modeBits=d,this.numBitsCharCount=f}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}};i.NUMERIC=new i(1,[10,12,14]),i.ALPHANUMERIC=new i(2,[9,11,13]),i.BYTE=new i(4,[8,16,16]),i.KANJI=new i(8,[8,10,12]),i.ECI=new i(7,[0,0,0]),l.Mode=i})(a.QrSegment||(a.QrSegment={}))})(Bl||(Bl={}));var ji=Bl;/**
 * @license qrcode.react
 * Copyright (c) Paul O'Shannessy
 * SPDX-License-Identifier: ISC
 */var BC={L:ji.QrCode.Ecc.LOW,M:ji.QrCode.Ecc.MEDIUM,Q:ji.QrCode.Ecc.QUARTILE,H:ji.QrCode.Ecc.HIGH},Kv=128,Xv="L",Vv="#FFFFFF",Zv="#000000",Wv=!1,Jv=1,OC=4,LC=0,MC=.1;function $v(a,l=0){const i=[];return a.forEach(function(r,d){let f=null;r.forEach(function(h,g){if(!h&&f!==null){i.push(`M${f+l} ${d+l}h${g-f}v1H${f+l}z`),f=null;return}if(g===r.length-1){if(!h)return;f===null?i.push(`M${g+l},${d+l} h1v1H${g+l}z`):i.push(`M${f+l},${d+l} h${g+1-f}v1H${f+l}z`);return}h&&f===null&&(f=g)})}),i.join("")}function ey(a,l){return a.slice().map((i,r)=>r<l.y||r>=l.y+l.h?i:i.map((d,f)=>f<l.x||f>=l.x+l.w?d:!1))}function DC(a,l,i,r){if(r==null)return null;const d=a.length+i*2,f=Math.floor(l*MC),h=d/l,g=(r.width||f)*h,m=(r.height||f)*h,p=r.x==null?a.length/2-g/2:r.x*h,y=r.y==null?a.length/2-m/2:r.y*h,_=r.opacity==null?1:r.opacity;let b=null;if(r.excavate){let j=Math.floor(p),w=Math.floor(y),E=Math.ceil(g+p-j),R=Math.ceil(m+y-w);b={x:j,y:w,w:E,h:R}}const S=r.crossOrigin;return{x:p,y,h:m,w:g,excavation:b,opacity:_,crossOrigin:S}}function zC(a,l){return l!=null?Math.max(Math.floor(l),0):a?OC:LC}function ty({value:a,level:l,minVersion:i,includeMargin:r,marginSize:d,imageSettings:f,size:h,boostLevel:g}){let m=Bt.useMemo(()=>{const j=(Array.isArray(a)?a:[a]).reduce((w,E)=>(w.push(...ji.QrSegment.makeSegments(E)),w),[]);return ji.QrCode.encodeSegments(j,BC[l],i,void 0,void 0,g)},[a,l,i,g]);const{cells:p,margin:y,numCells:_,calculatedImageSettings:b}=Bt.useMemo(()=>{let S=m.getModules();const j=zC(r,d),w=S.length+j*2,E=DC(S,h,j,f);return{cells:S,margin:j,numCells:w,calculatedImageSettings:E}},[m,h,f,r,d]);return{qrcode:m,margin:y,cells:p,numCells:_,calculatedImageSettings:b}}var UC=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),HC=Bt.forwardRef(function(l,i){const r=l,{value:d,size:f=Kv,level:h=Xv,bgColor:g=Vv,fgColor:m=Zv,includeMargin:p=Wv,minVersion:y=Jv,boostLevel:_,marginSize:b,imageSettings:S}=r,w=Nh(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:E}=w,R=Nh(w,["style"]),L=S==null?void 0:S.src,B=Bt.useRef(null),q=Bt.useRef(null),K=Bt.useCallback(he=>{B.current=he,typeof i=="function"?i(he):i&&(i.current=he)},[i]),[V,U]=Bt.useState(!1),{margin:I,cells:$,numCells:ue,calculatedImageSettings:re}=ty({value:d,level:h,minVersion:y,boostLevel:_,includeMargin:p,marginSize:b,imageSettings:S,size:f});Bt.useEffect(()=>{if(B.current!=null){const he=B.current,ae=he.getContext("2d");if(!ae)return;let P=$;const X=q.current,se=re!=null&&X!==null&&X.complete&&X.naturalHeight!==0&&X.naturalWidth!==0;se&&re.excavation!=null&&(P=ey($,re.excavation));const de=window.devicePixelRatio||1;he.height=he.width=f*de;const ge=f/ue*de;ae.scale(ge,ge),ae.fillStyle=g,ae.fillRect(0,0,ue,ue),ae.fillStyle=m,UC?ae.fill(new Path2D($v(P,I))):$.forEach(function(T,Y){T.forEach(function(Z,J){Z&&ae.fillRect(J+I,Y+I,1,1)})}),re&&(ae.globalAlpha=re.opacity),se&&ae.drawImage(X,re.x+I,re.y+I,re.w,re.h)}}),Bt.useEffect(()=>{U(!1)},[L]);const ce=Eh({height:f,width:f},E);let ee=null;return L!=null&&(ee=Bt.createElement("img",{src:L,key:L,style:{display:"none"},onLoad:()=>{U(!0)},ref:q,crossOrigin:re==null?void 0:re.crossOrigin})),Bt.createElement(Bt.Fragment,null,Bt.createElement("canvas",Eh({style:ce,height:f,width:f,ref:K,role:"img"},R)),ee)});HC.displayName="QRCodeCanvas";var ny=Bt.forwardRef(function(l,i){const r=l,{value:d,size:f=Kv,level:h=Xv,bgColor:g=Vv,fgColor:m=Zv,includeMargin:p=Wv,minVersion:y=Jv,boostLevel:_,title:b,marginSize:S,imageSettings:j}=r,w=Nh(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:E,cells:R,numCells:L,calculatedImageSettings:B}=ty({value:d,level:h,minVersion:y,boostLevel:_,includeMargin:p,marginSize:S,imageSettings:j,size:f});let q=R,K=null;j!=null&&B!=null&&(B.excavation!=null&&(q=ey(R,B.excavation)),K=Bt.createElement("image",{href:j.src,height:B.h,width:B.w,x:B.x+E,y:B.y+E,preserveAspectRatio:"none",opacity:B.opacity,crossOrigin:B.crossOrigin}));const V=$v(q,E);return Bt.createElement("svg",Eh({height:f,width:f,viewBox:`0 0 ${L} ${L}`,ref:i,role:"img"},w),!!b&&Bt.createElement("title",null,b),Bt.createElement("path",{fill:g,d:`M0,0 h${L}v${L}H0z`,shapeRendering:"crispEdges"}),Bt.createElement("path",{fill:m,d:V,shapeRendering:"crispEdges"}),K)});ny.displayName="QRCodeSVG";const qC="_overlay_1nlll_6",PC="_dialog_1nlll_18",QC="_header_1nlll_27",FC="_title_1nlll_34",YC="_closeBtn_1nlll_40",GC="_body_1nlll_55",IC="_qrWrap_1nlll_62",KC="_label_1nlll_71",XC="_fieldRow_1nlll_77",VC="_addressInput_1nlll_82",ZC="_copyBtn_1nlll_101",WC="_copyBtnDone_1nlll_127",JC="_skeleton_1nlll_132",$C="_error_1nlll_145",hn={overlay:qC,dialog:PC,header:QC,title:FC,closeBtn:YC,body:GC,qrWrap:IC,label:KC,fieldRow:XC,addressInput:VC,copyBtn:ZC,copyBtnDone:WC,skeleton:JC,error:$C},eT={ETH:"Ethereum",BSC:"BSC Smart Chain",BTC:"Bitcoin",TRX:"Tron",SOL:"Solana"};function tT({open:a,onClose:l,chain:i}){const{data:r,isLoading:d,isError:f}=fu(),[h,g]=A.useState(!1);if(A.useEffect(()=>{if(!a)return;function b(S){S.key==="Escape"&&l()}return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,l]),A.useEffect(()=>{a||g(!1)},[a]),!a)return null;const m=r==null?void 0:r.find(b=>b.chain===i),p=(m==null?void 0:m.address)??"";function y(){p&&navigator.clipboard.writeText(p).then(()=>{g(!0),setTimeout(()=>g(!1),2e3)})}function _(b){b.target===b.currentTarget&&l()}return o.jsx("div",{className:hn.overlay,onMouseDown:_,children:o.jsxs("div",{className:hn.dialog,children:[o.jsxs("div",{className:hn.header,children:[o.jsxs("span",{className:hn.title,children:["Получить ",eT[i]]}),o.jsx("button",{className:hn.closeBtn,type:"button",onClick:l,"aria-label":"Закрыть",children:"✕"})]}),o.jsxs("div",{className:hn.body,children:[d&&o.jsx("div",{className:hn.skeleton}),f&&o.jsx("p",{className:hn.error,children:"Не удалось загрузить адрес. Попробуйте позже."}),!d&&!f&&o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:hn.label,children:["Ваш ",i,"-адрес"]}),o.jsxs("div",{className:hn.fieldRow,children:[o.jsx("input",{className:hn.addressInput,type:"text",readOnly:!0,value:p,onFocus:b=>b.target.select()}),o.jsx("button",{className:`${hn.copyBtn} ${h?hn.copyBtnDone:""}`,type:"button",onClick:y,disabled:!p,children:h?"Скопировано!":"Копировать"})]}),p&&o.jsx("div",{className:hn.qrWrap,children:o.jsx(ny,{value:p,size:196,level:"M",bgColor:"#ffffff",fgColor:"#000000",marginSize:2})})]})]})]})})}const nT="_wrap_uur6k_1",aT="_loading_uur6k_9",sT="_table_uur6k_14",lT="_thStar_uur6k_44",iT="_groupHeader_uur6k_49",oT="_groupHeaderInner_uur6k_58",rT="_groupLabel_uur6k_66",cT="_groupIcon_uur6k_77",uT="_groupTotal_uur6k_83",dT="_mobileGroupHeader_uur6k_90",fT="_right_uur6k_99",hT="_center_uur6k_103",mT="_btnGroup_uur6k_108",pT="_star_uur6k_114",gT="_starOn_uur6k_129",vT="_tokId_uur6k_133",yT="_tokLogo_uur6k_139",_T="_price_uur6k_174",bT="_balCol_uur6k_201",xT="_sendBtn_uur6k_214",AT="_receiveBtn_uur6k_237",ST="_noFont_uur6k_260",jT="_mobileList_uur6k_265",wT="_card_uur6k_269",ET="_cardInfo_uur6k_281",NT="_cardTop_uur6k_286",CT="_cardTicker_uur6k_293",TT="_cardName_uur6k_299",RT="_cardBalCrypto_uur6k_305",kT="_cardBot_uur6k_312",BT="_cardPrice_uur6k_318",OT="_cardBalUsd_uur6k_330",LT="_mobileActions_uur6k_351",ye={wrap:nT,loading:aT,table:sT,thStar:lT,groupHeader:iT,groupHeaderInner:oT,groupLabel:rT,groupIcon:cT,groupTotal:uT,mobileGroupHeader:dT,right:fT,center:hT,btnGroup:mT,star:pT,starOn:gT,tokId:vT,tokLogo:yT,price:_T,balCol:bT,sendBtn:xT,receiveBtn:AT,noFont:ST,mobileList:jT,card:wT,cardInfo:ET,cardTop:NT,cardTicker:CT,cardName:TT,cardBalCrypto:RT,cardBot:kT,cardPrice:BT,cardBalUsd:OT,mobileActions:LT},Gg={BTC:{label:"Bitcoin",icon:_e.BTC},ETH:{label:"Ethereum",icon:_e.ETH},SOL:{label:"Solana",icon:_e.SOL},TRX:{label:"Tron",icon:_e.TRX},BSC:{label:"BNB Chain",icon:_e.BNB}};function Ig(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function MT(a){const l=[],i=new Map;for(const r of a){const d=r.chain??"ETH";let f=i.get(d);f||(f={chain:d,rows:[],totalUsd:0},i.set(d,f),l.push(f)),f.rows.push(r),f.totalUsd+=r.usdValue??0}return l}function Kg(a){return a.id??a.ticker}function ay({rows:a,isLoading:l,fallbackChain:i="ETH",groupByChain:r=!1}){const[d,f]=A.useState({}),[h,g]=A.useState({open:!1,network:"ETH"}),[m,p]=A.useState({open:!1,chain:"ETH"});function y(U){return U.chain??X4[U.ticker]??i}function _(U){g({open:!0,network:y(U)})}function b(){g(U=>({...U,open:!1}))}function S(U){p({open:!0,chain:y(U)})}function j(){p(U=>({...U,open:!1}))}function w(U){f(I=>({...I,[U]:!I[U]}))}const E=o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4A6DFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M7 17L17 7M17 7H7M17 7v10"})}),R=o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#00C48C",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M17 7L7 17M7 17H17M7 17V7"})});function L(U){const I=Kg(U);return o.jsxs("tr",{children:[o.jsx("td",{children:o.jsx("button",{className:`${ye.star} ${d[I]?ye.starOn:""}`,onClick:()=>w(I),type:"button","aria-label":d[I]?"Убрать из избранного":"В избранное",children:"★"})}),o.jsx("td",{children:o.jsxs("div",{className:ye.tokId,children:[o.jsx("div",{className:ye.tokLogo,style:{background:U.color},children:U.logo?o.jsx("img",{src:U.logo,alt:U.ticker,className:""}):U.ticker[0]}),o.jsxs("div",{className:ye.balCol,children:[o.jsx("b",{className:ye.cardTicker,children:U.ticker}),o.jsx("span",{className:ye.noFont,children:U.name})]})]})}),o.jsx("td",{className:ye.right,children:o.jsx("span",{className:ye.price,children:U.price})}),o.jsx("td",{className:ye.right,children:o.jsxs("div",{className:ye.balCol,children:[o.jsx("b",{children:U.bal}),o.jsx("span",{children:U.usd})]})}),o.jsx("td",{className:ye.center,children:o.jsxs("div",{className:ye.btnGroup,children:[o.jsxs("button",{className:ye.receiveBtn,type:"button",onClick:$=>{$.stopPropagation(),S(U)},children:[R,"Получить"]}),o.jsxs("button",{className:ye.sendBtn,type:"button",onClick:$=>{$.stopPropagation(),_(U)},children:[E,"Отправить"]})]})})]},I)}function B(U){const I=Kg(U);return o.jsxs("div",{className:ye.card,children:[o.jsx("button",{className:`${ye.star} ${d[I]?ye.starOn:""}`,onClick:()=>w(I),type:"button","aria-label":d[I]?"Убрать из избранного":"В избранное",children:"★"}),o.jsx("div",{className:ye.tokLogo,style:{background:U.color},children:U.logo?o.jsx("img",{src:U.logo,alt:U.ticker,className:""}):U.ticker[0]}),o.jsxs("div",{className:ye.cardInfo,children:[o.jsxs("div",{className:ye.cardTop,children:[o.jsxs("div",{children:[o.jsx("span",{className:ye.cardTicker,children:U.ticker}),o.jsx("span",{className:ye.cardName,children:U.name})]}),o.jsx("span",{className:ye.cardBalCrypto,children:U.bal})]}),o.jsxs("div",{className:ye.cardBot,children:[o.jsx("span",{className:ye.cardPrice,children:U.price}),o.jsx("span",{className:ye.cardBalUsd,children:U.usd})]})]})]},I)}function q(U){const I=Gg[U.chain];return o.jsx("tr",{className:ye.groupHeader,children:o.jsx("td",{colSpan:5,children:o.jsxs("div",{className:ye.groupHeaderInner,children:[o.jsxs("span",{className:ye.groupLabel,children:[o.jsx("img",{src:I.icon,alt:"",className:ye.groupIcon}),I.label]}),o.jsx("span",{className:ye.groupTotal,children:Ig(U.totalUsd)})]})})},`h-${U.chain}`)}function K(U){const I=Gg[U.chain];return o.jsxs("div",{className:ye.mobileGroupHeader,children:[o.jsxs("span",{className:ye.groupLabel,children:[o.jsx("img",{src:I.icon,alt:"",className:ye.groupIcon}),I.label]}),o.jsx("span",{className:ye.groupTotal,children:Ig(U.totalUsd)})]},`mh-${U.chain}`)}const V=r?MT(a):null;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:`${ye.wrap} ${l?ye.loading:""}`,children:[o.jsxs("table",{className:ye.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:ye.thStar,children:"☆"}),o.jsx("th",{children:"Токены"}),o.jsx("th",{className:ye.right,children:"Цена"}),o.jsx("th",{className:ye.right,children:"Баланс"}),o.jsx("th",{className:ye.center})]})}),o.jsx("tbody",{children:V?V.map(U=>o.jsxs(A.Fragment,{children:[q(U),U.rows.map(L)]},U.chain)):a.map(L)})]}),o.jsx("div",{className:ye.mobileList,children:V?V.map(U=>o.jsxs(A.Fragment,{children:[K(U),U.rows.map(B)]},U.chain)):a.map(B)})]}),o.jsxs("div",{className:ye.mobileActions,children:[o.jsxs("button",{className:ye.receiveBtn,type:"button",onClick:()=>a[0]&&S(a[0]),children:[R,"Получить"]}),o.jsxs("button",{className:ye.sendBtn,type:"button",onClick:()=>a[0]&&_(a[0]),children:[E,"Отправить"]})]}),o.jsx(RC,{open:h.open,onClose:b,network:h.network,tokens:a}),o.jsx(tT,{open:m.open,onClose:j,chain:m.chain})]})}function DT({chain:a}){const{rows:l,isLoading:i}=Y4(a);return o.jsx(ay,{rows:l,isLoading:i,fallbackChain:a})}function zT(){const{rows:a,isLoading:l}=G4();return o.jsx(ay,{rows:a,isLoading:l,groupByChain:!0})}const UT="_nav_16wm3_1",HT="_logo_16wm3_12",qT="_menu_16wm3_18",PT="_menuLink_16wm3_28",QT="_menuLinkActive_16wm3_44",FT="_right_16wm3_60",YT="_accountWrapper_16wm3_66",GT="_account_16wm3_66",IT="_avatar_16wm3_86",KT="_dropdown_16wm3_94",XT="_dropdownItem_16wm3_120",VT="_danger_16wm3_139",ZT="_burger_16wm3_144",WT="_burgerOpen_16wm3_181",JT="_mobileMenu_16wm3_195",$T="_mobileMenuOpen_16wm3_212",eR="_mobileLink_16wm3_217",tR="_mobileLinkActive_16wm3_245",xt={nav:UT,logo:HT,menu:qT,menuLink:PT,menuLinkActive:QT,right:FT,accountWrapper:YT,account:GT,avatar:IT,dropdown:KT,dropdownItem:XT,danger:VT,burger:ZT,burgerOpen:WT,mobileMenu:JT,mobileMenuOpen:$T,mobileLink:eR,mobileLinkActive:tR},nR=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"",Gf=[{to:ne.PROFILE,label:"Личный кабинет"},{to:ne.WALLET,label:"Кошелёк"},{to:ne.STAKING,label:"Стейкинг"},{to:ne.POOLS,label:"Пулы"}];function Wh(){var S;const[a,l]=A.useState(!1),[i,r]=A.useState(!1),[d,f]=A.useState(!1),h=A.useRef(null),g=yn(),m=Wt(),{data:p}=_n(),y=p?[p.first_name,p.middle_name].filter(Boolean).map(nR).join(" "):"",{mutate:_}=vt({mutationFn:BN,onSuccess:()=>{Nt.clear(),m.clear(),m.setQueryData(du,null),g(ne.HOME)},onError:()=>f(!0)});A.useEffect(()=>{function j(w){h.current&&!h.current.contains(w.target)&&l(!1)}return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]),A.useEffect(()=>(document.body.style.overflow=i?"hidden":"",()=>{document.body.style.overflow=""}),[i]);function b(){_(),l(!1),r(!1)}return o.jsxs(o.Fragment,{children:[o.jsxs("nav",{className:xt.nav,children:[o.jsx("a",{href:"/",className:xt.logo,children:o.jsx("img",{src:xa,alt:"ЭКСА"})}),o.jsx("div",{className:xt.menu,children:Gf.map(j=>o.jsx(qi,{to:j.to,className:({isActive:w})=>`${xt.menuLink} ${w?xt.menuLinkActive:""}`,children:j.label},j.to))}),o.jsxs("div",{className:xt.right,children:[o.jsxs("div",{className:xt.accountWrapper,ref:h,children:[o.jsxs("button",{className:xt.account,onClick:()=>l(j=>!j),children:[p!=null&&p.avatar_link?o.jsx("img",{src:p.avatar_link,alt:"",className:xt.avatar}):o.jsx("div",{className:xt.avatar}),o.jsx("span",{children:y||((S=p==null?void 0:p.legal_entity)==null?void 0:S.name)||""})]}),a&&o.jsx("div",{className:xt.dropdown,children:o.jsx("button",{className:`${xt.dropdownItem} ${xt.danger}`,onClick:b,children:"Выйти"})})]}),o.jsxs("button",{className:`${xt.burger} ${i?xt.burgerOpen:""}`,onClick:()=>r(j=>!j),"aria-label":"Меню","aria-expanded":i,children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})]})]}),o.jsxs("div",{className:`${xt.mobileMenu} ${i?xt.mobileMenuOpen:""}`,children:[Gf.map((j,w)=>o.jsx(qi,{to:j.to,onClick:()=>r(!1),style:{transitionDelay:i?`${.08+w*.05}s`:"0s"},className:({isActive:E})=>`${xt.mobileLink} ${E?xt.mobileLinkActive:""}`,children:j.label},j.to)),o.jsx("button",{className:`${xt.mobileLink} ${xt.danger}`,style:{transitionDelay:i?`${.08+Gf.length*.05}s`:"0s"},onClick:b,children:"Выйти"})]}),d&&o.jsx(ts,{status:"error",title:"Ошибка сервера",message:"Произошла ошибка сервера",onClose:()=>f(!1),duration:5e3})]})}const aR="_tabs_1ne0a_1",sR="_tab_1ne0a_1",lR="_active_1ne0a_31",iR="_icon_1ne0a_37",fl={tabs:aR,tab:sR,active:lR,icon:iR},oR=[{chain:"BTC",label:"BTC",icon:_e.BTC},{chain:"ETH",label:"ETH",icon:_e.ETH},{chain:"SOL",label:"SOL",icon:_e.SOL},{chain:"TRX",label:"TRX",icon:_e.TRX},{chain:"BSC",label:"BSC",icon:_e.BNB}],rR=o.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("ellipse",{cx:"12",cy:"6",rx:"8",ry:"3"}),o.jsx("path",{d:"M4 6v6c0 1.66 3.58 3 8 3s8-1.34 8-3V6"}),o.jsx("path",{d:"M4 12v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6"})]});function cR(){return o.jsxs("div",{className:fl.tabs,children:[o.jsxs(qi,{to:"/wallet",end:!0,className:({isActive:a})=>`${fl.tab} ${a?fl.active:""}`,children:[o.jsx("span",{className:fl.icon,children:rR}),o.jsx("span",{children:"Все монеты"})]}),oR.map(a=>o.jsxs(qi,{to:`/wallet/${a.chain.toLowerCase()}`,className:({isActive:l})=>`${fl.tab} ${l?fl.active:""}`,children:[o.jsx("img",{src:a.icon,alt:a.label,className:fl.icon}),o.jsx("span",{children:a.label})]},a.chain))]})}const uR="_page_10fz2_1",dR="_main_10fz2_8",fR="_glow_10fz2_17",hR="_error_10fz2_29",mR="_noWallet_10fz2_38",Go={page:uR,main:dR,glow:fR,error:hR,noWallet:mR};function Xg(){var b;const{data:a,isLoading:l,isError:i}=_n(),{error:r,isLoading:d}=hu(),{mutate:f,isPending:h}=w4(),g=yn(),{chain:m}=Ux(),p=(b=r==null?void 0:r.error)==null?void 0:b.includes("No wallets");if(i)return o.jsx("div",{className:Go.error,children:"Произошла ошибка. Попробуйте обновить страницу."});if(a&&!a.kyc_verified)return o.jsx(Hi,{to:ne.KYC,replace:!0});const y=m==null?void 0:m.toUpperCase(),_=y&&Vh.includes(y)?y:void 0;return o.jsxs("div",{className:Go.page,children:[o.jsx(Wh,{}),o.jsxs("main",{className:Go.main,children:[o.jsx("div",{className:Go.glow}),l||d?o.jsx(Dn,{fullscreen:!0,label:"Загрузка"}):p?o.jsxs("div",{className:Go.noWallet,children:[o.jsx("p",{children:"У вас пока нет кошелька. Создайте его, чтобы начать."}),o.jsx(Ln,{variant:"outline",onClick:()=>f(void 0,{onSuccess:()=>g(ne.SEED_PHRASE)}),disabled:h,children:h?"Создание...":"Создать кошелёк"})]}):o.jsxs(o.Fragment,{children:[o.jsx(q4,{}),o.jsx(cR,{}),_?o.jsx(DT,{chain:_}):o.jsx(zT,{})]})]})]})}const sy=_e.BTC,ly=_e.ETH,iy=_e.SOL,oy=_e.TRX,ry=_e.ARB,cy=_e.USDC,uy=_e.USDT,pR=_e.DAI,gR=_e.BUSD,vR=_e.WBTC,yR=_e.LINK,_R=_e.UNI,bR=_e.WBNB,xR=_e.DOGE,AR=_e.JUP,SR=_e.WIF,jR=_e.BONK,wR=_e.RAY,ER=_e.ORCA,NR=_e.PYTH,CR=_e.JTO,TR=_e.W,RR=_e.PUMP,kR=_e.POPCAT,BR=_e.TRUMP,OR=_e.PENGU,Ch={BTC:{symbol:"BTC",letter:"₿",logo:sy,color:"#F7931A",network:"BITCOIN",balance:0,usdRate:67412,decimals:8},ETH:{symbol:"ETH",letter:"E",logo:ly,color:"#627EEA",network:"ETHEREUM",balance:0,usdRate:3521,decimals:18},SOL:{symbol:"SOL",letter:"S",logo:iy,color:"#9945FF",network:"SOLANA",balance:.994,usdRate:163.84,decimals:9},TRX:{symbol:"TRX",letter:"T",logo:oy,color:"#FF060A",network:"TRON",balance:0,usdRate:.12,decimals:6},ARB:{symbol:"ARB",letter:"A",logo:ry,color:"#4A6DFF",network:"ARBITRUM",balance:0,usdRate:.92,decimals:18},USDC:{symbol:"USDC",letter:"$",logo:cy,color:"#2775CA",network:"SOLANA",balance:0,usdRate:1,decimals:6},USDT:{symbol:"USDT",letter:"$",logo:uy,color:"#26A17B",network:"ETHEREUM",balance:0,usdRate:1,decimals:6}},LR=Object.values(Ch),Th={BTC:{letter:"₿",logo:sy,color:"#F7931A"},ETH:{letter:"E",logo:ly,color:"#627EEA"},BSC:{letter:"B",color:"#F3BA2F"},SOL:{letter:"S",logo:iy,color:"#9945FF"},TRX:{letter:"T",logo:oy,color:"#FF060A"},ARB:{letter:"A",logo:ry,color:"#4A6DFF"},USDC:{letter:"$",logo:cy,color:"#2775CA"},USDT:{letter:"$",logo:uy,color:"#26A17B"},DAI:{letter:"D",logo:pR,color:"#F5AC37"},BUSD:{letter:"B",logo:gR,color:"#F0B90B"},WBTC:{letter:"W",logo:vR,color:"#F7931A"},LINK:{letter:"L",logo:yR,color:"#2A5ADA"},UNI:{letter:"U",logo:_R,color:"#FF007A"},WBNB:{letter:"W",logo:bR,color:"#F3BA2F"},DOGE:{letter:"D",logo:xR,color:"#C2A633"},JUP:{letter:"J",logo:AR,color:"#C7A52D"},WIF:{letter:"W",logo:SR,color:"#9333EA"},BONK:{letter:"B",logo:jR,color:"#FF8C00"},RAY:{letter:"R",logo:wR,color:"#5AC4BE"},ORCA:{letter:"O",logo:ER,color:"#1B8EF2"},PYTH:{letter:"P",logo:NR,color:"#8B5CF6"},JTO:{letter:"J",logo:CR,color:"#06B6D4"},W:{letter:"W",logo:TR,color:"#6B7280"},PUMP:{letter:"P",logo:RR,color:"#00D4AA"},POPCAT:{letter:"P",logo:kR,color:"#FF6B6B"},TRUMP:{letter:"T",logo:BR,color:"#E63946"},PENGU:{letter:"P",logo:OR,color:"#60A5FA"}},MR={ETH:"ETH",BSC:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function dy(a){const l=[],i=MR[a.chain]??a.chain,r=Th[i];l.push({symbol:i,letter:(r==null?void 0:r.letter)??i[0],color:(r==null?void 0:r.color)??"#888",logo:r==null?void 0:r.logo,network:a.chain,balance:parseFloat(a.native.formatted),usdRate:a.native.usdPrice,decimals:a.native.decimals});for(const[d,f]of Object.entries(a.tokens??{})){const h=Th[d];l.push({symbol:d,letter:(h==null?void 0:h.letter)??d[0],color:(h==null?void 0:h.color)??"#888",logo:h==null?void 0:h.logo,network:a.chain,balance:parseFloat(f.formatted),usdRate:f.usdPrice,decimals:f.decimals})}return l}const Vg=82.2578;function fy(){const[a,l]=A.useState("0"),[i,r]=A.useState(Ch.SOL),[d,f]=A.useState(Ch.USDC),[h,g]=A.useState(!1),m=parseFloat(a)||0,p=(m*Vg).toFixed(4),y=(m*i.usdRate).toFixed(2),_=(m*Vg*d.usdRate).toFixed(2);function b(E){l(E)}function S(E){const R=E>=100?99:E;l((i.balance*R/100).toFixed(4))}function j(){r(d),f(i)}function w(){g(!0),setTimeout(()=>g(!1),400)}return{fromAmount:a,toAmount:p,fromUsd:y,toUsd:_,fromToken:i,toToken:d,isRefreshing:h,setFromAmount:b,setPercent:S,swapTokens:j,refreshRate:w,setFromToken:r,setToToken:f}}const DR="_wrap_18yiu_1",zR="_trigger_18yiu_6",UR="_name_18yiu_22",HR="_chevron_18yiu_29",qR="_chevronOpen_18yiu_37",PR="_dropdown_18yiu_41",QR="_dropdownWrapper_18yiu_47",FR="_option_18yiu_60",YR="_optionActive_18yiu_78",GR="_optionInfo_18yiu_82",IR="_optionSymbol_18yiu_90",KR="_optionNetwork_18yiu_96",XR="_check_18yiu_103",VR="_triggerCompact_18yiu_110",ZR="_nameCompact_18yiu_116",en={wrap:DR,trigger:zR,name:UR,chevron:HR,chevronOpen:qR,dropdown:PR,dropdownWrapper:QR,option:FR,optionActive:YR,optionInfo:GR,optionSymbol:IR,optionNetwork:KR,check:XR,triggerCompact:VR,nameCompact:ZR};function Zg({value:a,options:l,onChange:i,compact:r=!1}){const[d,f]=A.useState(!1),h=A.useRef(null);A.useEffect(()=>{function m(p){h.current&&!h.current.contains(p.target)&&f(!1)}return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[]);function g(m){i(m),f(!1)}return o.jsxs("div",{className:en.wrap,ref:h,children:[o.jsxs("button",{className:`${en.trigger} ${r?en.triggerCompact:""}`,onClick:()=>f(m=>!m),children:[o.jsx(Rl,{letter:a.letter,color:a.color,logo:a.logo,size:r?24:40}),o.jsx("span",{className:`${en.name} ${r?en.nameCompact:""}`,children:a.symbol}),o.jsx("span",{className:`${en.chevron} ${d?en.chevronOpen:""}`,children:"▾"})]}),d&&o.jsx("div",{className:en.dropdownWrapper,children:o.jsx("div",{className:en.dropdown,children:l.map(m=>o.jsxs("button",{className:`${en.option} ${m.symbol===a.symbol?en.optionActive:""}`,onClick:()=>g(m),children:[o.jsx(Rl,{letter:m.letter,color:m.color,logo:m.logo,size:32}),o.jsxs("div",{className:en.optionInfo,children:[o.jsx("span",{className:en.optionSymbol,children:m.symbol}),o.jsx("span",{className:en.optionNetwork,children:m.network})]}),m.symbol===a.symbol&&o.jsx("span",{className:en.check,children:"✓"})]},m.symbol))})})]})}const WR="_wrapper_19brp_1",JR="_pillsOuter_19brp_8",$R="_card_19brp_13",e5="_top_19brp_20",t5="_label_19brp_33",n5="_networkPills_19brp_54",a5="_networkBtn_19brp_60",s5="_networkBtnActive_19brp_79",l5="_pillsInner_19brp_85",i5="_pill_19brp_8",o5="_selectTop_19brp_109",r5="_selectMid_19brp_113",c5="_mid_19brp_118",u5="_input_19brp_126",d5="_display_19brp_142",f5="_int_19brp_151",h5="_dec_19brp_156",m5="_bottom_19brp_161",p5="_usd_19brp_167",g5="_balance_19brp_176",v5="_max_19brp_184",At={wrapper:WR,pillsOuter:JR,card:$R,top:e5,label:t5,networkPills:n5,networkBtn:a5,networkBtnActive:s5,pillsInner:l5,pill:i5,selectTop:o5,selectMid:r5,mid:c5,input:u5,display:d5,int:f5,dec:h5,bottom:m5,usd:p5,balance:g5,max:v5},y5=["ETH","BSC","TRX","SOL"],_5=[25,50,100];function iu({mode:a,token:l,tokenOptions:i,amount:r,usd:d,onTokenChange:f,onAmountChange:h,onSetPercent:g,selectedNetwork:m,onNetworkChange:p,hideNetworkSelect:y}){const[_,b]=nt(r,8).split("."),S=g&&o.jsx(o.Fragment,{children:_5.map(j=>o.jsxs("button",{className:At.pill,onClick:()=>g(j),children:[j,"%"]},j))});return o.jsxs("div",{className:At.wrapper,children:[a==="from"&&S&&o.jsx("div",{className:At.pillsOuter,children:S}),o.jsxs("div",{className:At.card,children:[o.jsxs("div",{className:At.top,children:[o.jsx("div",{className:At.label,children:a==="from"&&!y&&o.jsx("div",{className:At.networkPills,children:y5.map(j=>o.jsx("button",{className:`${At.networkBtn} ${j===m?At.networkBtnActive:""}`,onClick:()=>p==null?void 0:p(j),children:j},j))})}),a==="from"&&S&&o.jsx("div",{className:At.pillsInner,children:S}),o.jsx("div",{className:At.selectTop,children:o.jsx(Zg,{value:l,options:i,onChange:f,compact:!0})})]}),o.jsxs("div",{className:At.mid,children:[a==="from"?o.jsx("input",{className:At.input,type:"text",value:r,onChange:j=>{const w=j.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(w)||w==="")&&(h==null||h(w))},placeholder:"0"}):o.jsxs("div",{className:At.display,children:[o.jsx("span",{className:At.int,children:_}),b&&o.jsxs("span",{className:At.dec,children:[".",b]})]}),o.jsx("div",{className:At.selectMid,children:o.jsx(Zg,{value:l,options:i,onChange:f})})]}),o.jsxs("div",{className:At.bottom,children:[d&&o.jsxs("span",{className:At.usd,children:["≈ $",d]}),o.jsxs("span",{className:At.balance,children:[o.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-secondary)",strokeWidth:"2",children:[o.jsx("rect",{x:"2",y:"6",width:"20",height:"14",rx:"3"}),o.jsx("path",{d:"M6 6V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2"})]}),nt(l.balance,8),a==="from"&&g&&o.jsx("button",{className:At.max,onClick:()=>g(100),children:"МАКС"})]})]})]})]})}const b5="_wrap_wqzoz_1",x5="_line_wqzoz_11",A5="_circle_wqzoz_19",If={wrap:b5,line:x5,circle:A5};function S5({onClick:a}){const[l,i]=A.useState(!1);function r(){i(!0),setTimeout(()=>i(!1),300),a()}return o.jsxs("div",{className:If.wrap,children:[o.jsx("div",{className:If.line}),o.jsx("button",{className:If.circle,style:{transform:l?"rotate(180deg)":"rotate(0deg)"},onClick:r,"aria-label":"Поменять токены",children:"⇅"})]})}const j5="_panel_16d4z_1",w5="_row_16d4z_10",E5="_label_16d4z_22",N5="_value_16d4z_30",C5="_link_16d4z_36",Io={panel:j5,row:w5,label:E5,value:N5,link:C5};function T5({gasFee:a,serviceFee:l,serviceFeeToken:i}){const r=[{label:"ПРОВАЙДЕР",value:"ЛУЧШИЙ",link:!1},{label:"СКОЛЬЖЕНИЕ",value:"АВТО (0.5%)",link:!0},{label:"СЕТЕВОЙ СБОР",value:a?`$${a}`:"—",link:!1},{label:"СЕРВИСНЫЙ СБОР",value:l?`$${l}`:"—",link:!1},{label:i?`СЕРВИСНЫЙ СБОР (${i.symbol})`:"СЕРВИСНЫЙ СБОР В ТОКЕНАХ",value:i?nt(i.amount,8):"—",link:!1}];return o.jsx("div",{className:Io.panel,children:r.map(({label:d,value:f,link:h})=>o.jsxs("div",{className:Io.row,children:[o.jsx("span",{className:Io.label,children:d}),o.jsx("span",{className:`${Io.value} ${h?Io.link:""}`,children:f})]},d))})}const R5="_overlay_7i74m_1",k5="_closing_7i74m_13",B5="_card_7i74m_17",O5="_header_7i74m_54",L5="_title_7i74m_60",M5="_closeBtn_7i74m_66",D5="_flow_7i74m_81",z5="_token_7i74m_87",U5="_tokenLabel_7i74m_97",H5="_tokenAmount_7i74m_105",q5="_tokenUsd_7i74m_111",P5="_arrow_7i74m_116",Q5="_details_7i74m_123",F5="_row_7i74m_129",Y5="_rowLabel_7i74m_135",G5="_rowValue_7i74m_140",I5="_impact_7i74m_146",K5="_warning_7i74m_150",X5="_confirmBtn_7i74m_162",Ge={overlay:R5,closing:k5,card:B5,header:O5,title:L5,closeBtn:M5,flow:D5,token:z5,tokenLabel:U5,tokenAmount:H5,tokenUsd:q5,arrow:P5,details:Q5,row:F5,rowLabel:Y5,rowValue:G5,impact:I5,warning:K5,confirmBtn:X5};function V5({data:a,insufficientBalance:l,onConfirm:i,onClose:r}){const{details:d,fees:f}=a,{currencyIn:h,currencyOut:g,totalImpact:m,rate:p}=d,[y,_]=A.useState(!1),b=A.useRef("close"),S=parseFloat(m.percent),j=parseFloat(p).toFixed(4);function w(){b.current="close",_(!0)}function E(){b.current="confirm",_(!0)}function R(){y&&(b.current==="confirm"?i():r())}return o.jsx("div",{className:`${Ge.overlay} ${y?Ge.closing:""}`,onClick:w,children:o.jsxs("div",{className:`${Ge.card} ${y?Ge.closing:""}`,onClick:L=>L.stopPropagation(),onAnimationEnd:R,children:[o.jsxs("div",{className:Ge.header,children:[o.jsx("span",{className:Ge.title,children:"Подтвердить своп"}),o.jsx("button",{className:Ge.closeBtn,onClick:w,children:"×"})]}),o.jsxs("div",{className:Ge.flow,children:[o.jsxs("div",{className:Ge.token,children:[o.jsx("span",{className:Ge.tokenLabel,children:"Отдаёте"}),o.jsxs("span",{className:Ge.tokenAmount,children:[h.amountFormatted," ",h.currency.symbol]}),o.jsxs("span",{className:Ge.tokenUsd,children:["≈ $",h.amountUsd]})]}),o.jsx("div",{className:Ge.arrow,children:"↓"}),o.jsxs("div",{className:Ge.token,children:[o.jsx("span",{className:Ge.tokenLabel,children:"Получаете"}),o.jsxs("span",{className:Ge.tokenAmount,children:[g.amountFormatted," ",g.currency.symbol]}),o.jsxs("span",{className:Ge.tokenUsd,children:["≈ $",g.amountUsd]})]})]}),o.jsxs("div",{className:Ge.details,children:[o.jsxs("div",{className:Ge.row,children:[o.jsx("span",{className:Ge.rowLabel,children:"Курс"}),o.jsxs("span",{className:Ge.rowValue,children:["1 ",h.currency.symbol," = ",j," ",g.currency.symbol]})]}),o.jsxs("div",{className:Ge.row,children:[o.jsx("span",{className:Ge.rowLabel,children:"Комиссия сети"}),o.jsxs("span",{className:Ge.rowValue,children:["$",f.gas.amountUsd]})]}),o.jsxs("div",{className:Ge.row,children:[o.jsx("span",{className:Ge.rowLabel,children:"Влияние на цену"}),o.jsxs("span",{className:`${Ge.rowValue} ${S<0?Ge.impact:""}`,children:[m.percent,"%"]})]})]}),l&&o.jsx("p",{className:Ge.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),o.jsx("button",{className:Ge.confirmBtn,onClick:E,children:"Подтвердить"})]})})}const Z5="_overlay_1gvk2_1",W5="_closing_1gvk2_13",J5="_card_1gvk2_17",$5="_header_1gvk2_54",e8="_title_1gvk2_60",t8="_closeBtn_1gvk2_66",n8="_flow_1gvk2_81",a8="_token_1gvk2_87",s8="_tokenLabel_1gvk2_97",l8="_tokenAmount_1gvk2_105",i8="_minOut_1gvk2_111",o8="_arrow_1gvk2_116",r8="_details_1gvk2_123",c8="_row_1gvk2_129",u8="_rowLabel_1gvk2_135",d8="_rowValue_1gvk2_140",f8="_warning_1gvk2_146",h8="_confirmBtn_1gvk2_158",mt={overlay:Z5,closing:W5,card:J5,header:$5,title:e8,closeBtn:t8,flow:n8,token:a8,tokenLabel:s8,tokenAmount:l8,minOut:i8,arrow:o8,details:r8,row:c8,rowLabel:u8,rowValue:d8,warning:f8,confirmBtn:h8};function m8({quote:a,fromSymbol:l,toSymbol:i,amountHuman:r,insufficientBalance:d,onConfirm:f,onClose:h}){const{expectedOutFormatted:g,minOutFormatted:m,fees:p}=a,[y,_]=A.useState(!1),b=A.useRef("close");function S(){b.current="close",_(!0)}function j(){b.current="confirm",_(!0)}function w(){y&&(b.current==="confirm"?f():h())}return o.jsx("div",{className:`${mt.overlay} ${y?mt.closing:""}`,onClick:S,children:o.jsxs("div",{className:`${mt.card} ${y?mt.closing:""}`,onClick:E=>E.stopPropagation(),onAnimationEnd:w,children:[o.jsxs("div",{className:mt.header,children:[o.jsx("span",{className:mt.title,children:"Подтвердить своп"}),o.jsx("button",{className:mt.closeBtn,onClick:S,children:"×"})]}),o.jsxs("div",{className:mt.flow,children:[o.jsxs("div",{className:mt.token,children:[o.jsx("span",{className:mt.tokenLabel,children:"Отдаёте"}),o.jsxs("span",{className:mt.tokenAmount,children:[r," ",l]})]}),o.jsx("div",{className:mt.arrow,children:"↓"}),o.jsxs("div",{className:mt.token,children:[o.jsx("span",{className:mt.tokenLabel,children:"Получаете"}),o.jsxs("span",{className:mt.tokenAmount,children:[g," ",i]}),o.jsxs("span",{className:mt.minOut,children:["Минимум: ",m," ",i]})]})]}),o.jsx("div",{className:mt.details,children:o.jsxs("div",{className:mt.row,children:[o.jsx("span",{className:mt.rowLabel,children:"Комиссия сети"}),o.jsxs("span",{className:mt.rowValue,children:[p.network.amountFormatted," ",p.network.asset," (≈$",p.network.amountUsd,")"]})]})}),d&&o.jsx("p",{className:mt.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),o.jsx("button",{className:mt.confirmBtn,onClick:j,children:"Подтвердить"})]})})}const p8="_form_1fk2f_1",g8={form:p8},v8={ETH:1,BSC:56,SOL:792703809},Wg={SOL:"11111111111111111111111111111111",DEFAULT:"0x0000000000000000000000000000000000000000"};function Jg(a){return Wg[a]??Wg.DEFAULT}function y8(){var Sa,ja,Is,as,wa,Ue,Jt;const a=yn(),l=Wt(),{fromAmount:i,fromUsd:r,fromToken:d,toToken:f,setFromAmount:h,setPercent:g,swapTokens:m,setFromToken:p,setToToken:y}=fy(),[_,b]=A.useState("ETH"),[S,j]=A.useState(null),[w,E]=A.useState(null),[R,L]=A.useState(null),B=_==="TRX",{data:q}=Pi(_),K=q?dy(q):LR;A.useEffect(()=>{K.length!==0&&(p($e=>K.find(Jn=>Jn.symbol===$e.symbol)??K[0]),y($e=>K.find(Jn=>Jn.symbol===$e.symbol)??K[1]??K[0]))},[q,_]);const V=ba(i,500),{data:U}=fu(),{data:I}=x4(),$=parseFloat(V),ue=v8[_],re=(Sa=U==null?void 0:U.find($e=>$e.chain===_))==null?void 0:Sa.address,ce=((ja=I==null?void 0:I.find($e=>$e.chain===_&&$e.symbol===d.symbol))==null?void 0:ja.contract)??Jg(_),ee=((Is=I==null?void 0:I.find($e=>$e.chain===_&&$e.symbol===f.symbol))==null?void 0:Is.contract)??Jg(_),he=!B&&ue&&re&&$>0?{user:re,recipient:re,originChainId:ue,destinationChainId:ue,originCurrency:ce,destinationCurrency:ee,amount:Math.round($*Math.pow(10,d.decimals)).toString(),tradeType:"EXACT_INPUT"}:null,{data:ae}=Uv(he),{mutate:P,isPending:X}=E4(),{mutate:se,isPending:de}=N4(),ge=B&&$>0?{from:d.symbol,to:f.symbol,amountHuman:V}:null,{data:T}=C4(ge),{mutate:Y,isPending:Z}=T4(),{mutate:J,isPending:be}=R4(),ve=de||be,Le=(parseFloat(i)||0)>d.balance,Tt=B?(T==null?void 0:T.expectedOutFormatted)??"0":(ae==null?void 0:ae.details.currencyOut.amountFormatted)??"0",at=B||ae==null?void 0:ae.details.currencyOut.amountUsd,Aa=B?(as=T==null?void 0:T.fees.network.amountUsd)==null?void 0:as.toString():ae==null?void 0:ae.fees.gas.amountUsd,ns=(Ue=(wa=ae==null?void 0:ae.appCommission)==null?void 0:wa.usd)==null?void 0:Ue.toString(),Ys=(Jt=ae==null?void 0:ae.appCommission)==null?void 0:Jt.inToken,Gs=B?$<=0||Z:!he||X;function zn(){if(B){if(!ge)return;Y(ge,{onSuccess:$e=>E($e)})}else{if(!he)return;P(he,{onSuccess:$e=>j($e)})}}return o.jsxs("div",{className:g8.form,children:[o.jsx(iu,{mode:"from",token:d,tokenOptions:K,amount:i,usd:r,onAmountChange:h,onSetPercent:g,onTokenChange:p,selectedNetwork:_,onNetworkChange:b}),o.jsx(S5,{onClick:m}),o.jsx(iu,{mode:"to",token:f,tokenOptions:K,amount:Tt,usd:at,onTokenChange:y}),o.jsx(T5,{gasFee:Aa,serviceFee:ns,serviceFeeToken:Ys}),o.jsx(Zn,{label:X||Z?"Загрузка...":void 0,onClick:zn,disabled:Gs}),S&&o.jsx(V5,{data:S,insufficientBalance:Le,onClose:()=>j(null),onConfirm:()=>{var Jn,yt;const $e=(yt=(Jn=S.steps[0])==null?void 0:Jn.items[0])==null?void 0:yt.data;$e&&(L(null),se({chain:_,txData:$e},{onSuccess:()=>{l.invalidateQueries({queryKey:["wallet","balance",_]}),l.invalidateQueries({queryKey:["wallet","portfolio"]}),a(`${ne.WALLET}/${_.toLowerCase()}`)},onError:gr=>{L(gr instanceof Error?gr.message:"Не удалось подписать транзакцию")}})),j(null)}}),w&&o.jsx(m8,{quote:w,fromSymbol:d.symbol,toSymbol:f.symbol,amountHuman:i,insufficientBalance:Le,onClose:()=>E(null),onConfirm:()=>{L(null),J(w.quoteId,{onSuccess:()=>{l.invalidateQueries({queryKey:["wallet","balance","TRX"]}),l.invalidateQueries({queryKey:["wallet","portfolio"]}),a(`${ne.WALLET}/${_.toLowerCase()}`)},onError:$e=>{L($e instanceof Error?$e.message:"Не удалось выполнить свап")}}),E(null)}}),ve&&o.jsx(ts,{status:"warning",message:"Обработка транзакции...",onClose:()=>{}}),R&&o.jsx(ts,{status:"error",message:R,onClose:()=>L(null),duration:5e3})]})}const _8="_tabs_1sxhr_1",b8="_tab_1sxhr_1",x8="_active_1sxhr_19",A8="_inactive_1sxhr_24",hl={tabs:_8,tab:b8,active:x8,inactive:A8};function hy({active:a}){const l=yn();return o.jsxs("div",{className:hl.tabs,children:[o.jsx("button",{className:`${hl.tab} ${a==="swap"?hl.active:hl.inactive}`,onClick:()=>l(ne.SWAP),children:"СВОП"}),o.jsx("button",{className:`${hl.tab} ${a==="bridge"?hl.active:hl.inactive}`,onClick:()=>l(ne.BRIDGE),children:"БРИДЖ"})]})}const S8="_content_1pe49_1",j8={content:S8};function w8(){return o.jsxs(o.Fragment,{children:[o.jsx(hy,{active:"swap"}),o.jsx("div",{className:j8.content,children:o.jsx(y8,{})})]})}function ra(a,l){const[i,r=""]=a.split("."),d=r.slice(0,l).padEnd(l,"0");return`${i}${d}`.replace(/^0+(?=\d)/,"")||"0"}function nr(a,l){const i=a.padStart(l+1,"0"),r=i.slice(0,i.length-l),d=i.slice(i.length-l).replace(/0+$/,"");return d?`${r}.${d}`:r}const E8="_wrap_1zbpm_1",N8="_label_1zbpm_9",C8="_select_1zbpm_19",Kf={wrap:E8,label:N8,select:C8};function $g({label:a,value:l,onChange:i,options:r}){return o.jsxs("div",{className:Kf.wrap,children:[o.jsx("span",{className:Kf.label,children:a}),o.jsx("div",{className:Kf.select,children:o.jsx(Ph,{value:l,onChange:i,options:r.map(d=>({value:d,label:d}))})})]})}const T8="_panel_1dg55_1",R8="_row_1dg55_10",k8="_label_1dg55_22",B8="_value_1dg55_30",Uc={panel:T8,row:R8,label:k8,value:B8};function O8({serviceFee:a,serviceFeeToken:l}){const i=[{label:"СЕРВИСНЫЙ СБОР",value:a?`$${a}`:"—"},{label:l?`СЕРВИСНЫЙ СБОР (${l.symbol})`:"СЕРВИСНЫЙ СБОР В ТОКЕНАХ",value:l?nt(l.amount,8):"—"}];return o.jsx("div",{className:Uc.panel,children:i.map(({label:r,value:d})=>o.jsxs("div",{className:Uc.row,children:[o.jsx("span",{className:Uc.label,children:r}),o.jsx("span",{className:Uc.value,children:d})]},r))})}const L8="_overlay_lnhqe_1",M8="_closing_lnhqe_13",D8="_card_lnhqe_17",z8="_header_lnhqe_54",U8="_title_lnhqe_60",H8="_closeBtn_lnhqe_66",q8="_flow_lnhqe_81",P8="_token_lnhqe_87",Q8="_tokenLabel_lnhqe_97",F8="_tokenAmount_lnhqe_105",Y8="_minOut_lnhqe_111",G8="_arrow_lnhqe_116",I8="_details_lnhqe_123",K8="_row_lnhqe_129",X8="_rowLabel_lnhqe_135",V8="_rowValue_lnhqe_140",Z8="_warning_lnhqe_146",W8="_confirmBtn_lnhqe_158",it={overlay:L8,closing:M8,card:D8,header:z8,title:U8,closeBtn:H8,flow:q8,token:P8,tokenLabel:Q8,tokenAmount:F8,minOut:Y8,arrow:G8,details:I8,row:K8,rowLabel:X8,rowValue:V8,warning:Z8,confirmBtn:W8};function J8({quote:a,fromAmountHuman:l,insufficientBalance:i,isExecuting:r,onConfirm:d,onClose:f}){const{action:h,estimate:g,toolDetails:m}=a,p=h.toToken.symbol,y=h.fromToken.symbol,[_,b]=A.useState(!1);function S(){b(!0)}function j(){_&&f()}const w=nt(nr(g.toAmount,h.toToken.decimals),8),E=nt(nr(g.toAmountMin,h.toToken.decimals),8),R=(g.feeCosts??[]).reduce((L,B)=>L+(parseFloat(B.amountUSD)||0),0).toFixed(2);return o.jsx("div",{className:`${it.overlay} ${_?it.closing:""}`,onClick:S,children:o.jsxs("div",{className:`${it.card} ${_?it.closing:""}`,onClick:L=>L.stopPropagation(),onAnimationEnd:j,children:[o.jsxs("div",{className:it.header,children:[o.jsx("span",{className:it.title,children:"Подтвердить бридж"}),o.jsx("button",{className:it.closeBtn,onClick:S,children:"×"})]}),o.jsxs("div",{className:it.flow,children:[o.jsxs("div",{className:it.token,children:[o.jsx("span",{className:it.tokenLabel,children:"Отдаёте"}),o.jsxs("span",{className:it.tokenAmount,children:[l," ",y]})]}),o.jsx("div",{className:it.arrow,children:"↓"}),o.jsxs("div",{className:it.token,children:[o.jsx("span",{className:it.tokenLabel,children:"Получаете"}),o.jsxs("span",{className:it.tokenAmount,children:[w," ",p]}),o.jsxs("span",{className:it.minOut,children:["Минимум: ",E," ",p]})]})]}),o.jsxs("div",{className:it.details,children:[o.jsxs("div",{className:it.row,children:[o.jsx("span",{className:it.rowLabel,children:"Комиссия"}),o.jsxs("span",{className:it.rowValue,children:["≈$",R]})]}),o.jsxs("div",{className:it.row,children:[o.jsx("span",{className:it.rowLabel,children:"Мост"}),o.jsx("span",{className:it.rowValue,children:m.name})]})]}),i&&o.jsx("p",{className:it.warning,children:"Введённое количество превышает баланс кошелька — бридж будет отклонён."}),o.jsx("button",{className:it.confirmBtn,onClick:d,disabled:r,children:r?"Обработка...":"Подтвердить бридж"})]})})}const $8="_form_htwuf_1",e1={form:$8},Xf=["ETH","BSC","SOL","TRX","BTC"],Si={ETH:"1",BSC:"56",SOL:"1151111081099710",TRX:"728126428",BTC:"20000000000001"},ek=Object.fromEntries(Object.entries(Si).map(([a,l])=>[l,a])),t1={ETH:1,BSC:56,SOL:792703809,TRX:728126428,BTC:8253038};function tk(a){const l=Th[a.symbol];return{symbol:a.symbol,letter:(l==null?void 0:l.letter)??a.symbol[0],color:(l==null?void 0:l.color)??"#888",logo:a.logoURI??(l==null?void 0:l.logo)??Vt(a.symbol),network:ek[String(a.chainId)]??a.symbol,balance:0,usdRate:parseFloat(a.priceUSD)||0,decimals:a.decimals}}function nk(a){const l={};for(const i of dy(a))l[i.symbol]=i.balance;return l}function ak(){var Gs,zn,Sa,ja,Is,as,wa;const a=yn(),l=Wt(),{fromAmount:i,fromUsd:r,fromToken:d,toToken:f,setFromAmount:h,setPercent:g,setFromToken:m,setToToken:p}=fy(),[y,_]=A.useState("ETH"),[b,S]=A.useState("BSC"),[j,w]=A.useState(null),[E,R]=A.useState(null),{data:L,isLoading:B}=A4(),{data:q}=Pi(y),{data:K}=Pi(b),{data:V}=fu(),{mutate:U,isPending:I}=S4(),{mutate:$,isPending:ue}=j4();function re(Ue,Jt){const $e=((L==null?void 0:L[Si[Ue]])??[]).map(tk);if(!Jt)return $e;const Jn=nk(Jt);return $e.map(yt=>Jn[yt.symbol]!=null?{...yt,balance:Jn[yt.symbol]}:yt)}const ce=re(y,q),ee=re(b,K);A.useEffect(()=>{ce.length!==0&&m(Ue=>ce.find(Jt=>Jt.symbol===Ue.symbol)??ce[0])},[L,q,y]),A.useEffect(()=>{ee.length!==0&&p(Ue=>ee.find(Jt=>Jt.symbol===Ue.symbol)??ee[0])},[L,K,b]);const he=parseFloat(i),ae=(he||0)>d.balance,P=(Gs=L==null?void 0:L[Si[y]])==null?void 0:Gs.find(Ue=>Ue.symbol===d.symbol),X=(zn=L==null?void 0:L[Si[b]])==null?void 0:zn.find(Ue=>Ue.symbol===f.symbol),se=(Sa=V==null?void 0:V.find(Ue=>Ue.chain===y))==null?void 0:Sa.address,de=(ja=V==null?void 0:V.find(Ue=>Ue.chain===b))==null?void 0:ja.address,ge=P&&X&&se&&de&&he>0?{fromChain:Si[y],toChain:Si[b],fromToken:P.address,toToken:X.address,fromAmount:ra(i,d.decimals),fromAddress:se,toAddress:de,slippage:.005}:null,T=ba(i,500),Y=parseFloat(T),Z=t1[y],J=t1[b],be=P&&X&&se&&de&&Z&&J&&Y>0?{user:se,recipient:de,originChainId:Z,destinationChainId:J,originCurrency:P.address,destinationCurrency:X.address,amount:ra(T,d.decimals),tradeType:"EXACT_INPUT"}:null,{data:ve}=Uv(be),Le=(as=(Is=ve==null?void 0:ve.appCommission)==null?void 0:Is.usd)==null?void 0:as.toString(),Tt=(wa=ve==null?void 0:ve.appCommission)==null?void 0:wa.inToken,at=ve?ve.details.currencyOut.amountFormatted:j?nt(nr(j.estimate.toAmount,j.action.toToken.decimals),8):"0";function Aa(Ue){_(Ue),Ue===b&&S(Xf.find(Jt=>Jt!==Ue)??b)}function ns(){ge&&(R(null),U(ge,{onSuccess:Ue=>w(Ue),onError:Ue=>R(Ue instanceof Error?Ue.message:"Не удалось получить котировку")}))}function Ys(){j&&(R(null),$({provider:"jumper",fromChain:j.action.fromChainId,toChain:j.action.toChainId,fromToken:j.action.fromToken.address,toToken:j.action.toToken.address,fromAmount:j.action.fromAmount,fromAddress:j.action.fromAddress,toAddress:j.action.toAddress,acceptedMinOut:j.estimate.toAmountMin},{onSuccess:()=>{l.invalidateQueries({queryKey:["wallet","balance",y]}),l.invalidateQueries({queryKey:["wallet","balance",b]}),l.invalidateQueries({queryKey:["wallet","portfolio"]}),w(null),a(ne.WALLET_CHAIN.replace(":chain",b.toLowerCase()))},onError:Ue=>R(Ue instanceof Error?Ue.message:"Не удалось выполнить бридж")}))}return B||!L?o.jsx("div",{className:e1.form,children:o.jsx(Dn,{fullscreen:!0,label:"Загрузка"})}):o.jsxs("div",{className:e1.form,children:[o.jsx($g,{label:"ИЗ",value:y,onChange:Aa,options:Xf}),o.jsx(iu,{mode:"from",token:d,tokenOptions:ce,amount:i,usd:r,onAmountChange:h,onSetPercent:g,onTokenChange:m,hideNetworkSelect:!0}),o.jsx($g,{label:"В",value:b,onChange:S,options:Xf.filter(Ue=>Ue!==y)}),o.jsx(iu,{mode:"to",token:f,tokenOptions:ee,amount:at,onTokenChange:p,hideNetworkSelect:!0}),o.jsx(O8,{serviceFee:Le,serviceFeeToken:Tt}),o.jsx(Zn,{label:I?"Загрузка...":"Подтвердить бридж",onClick:ns,disabled:!ge||I}),j&&o.jsx(J8,{quote:j,fromAmountHuman:i,insufficientBalance:ae,isExecuting:ue,onConfirm:Ys,onClose:()=>w(null)}),E&&o.jsx(ts,{status:"error",message:E,onClose:()=>R(null),duration:5e3})]})}const sk="_content_1pe49_1",lk={content:sk};function ik(){return o.jsxs(o.Fragment,{children:[o.jsx(hy,{active:"bridge"}),o.jsx("div",{className:lk.content,children:o.jsx(ak,{})})]})}var Rh=function(a,l){return Rh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(i[d]=r[d])},Rh(a,l)};function ok(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");Rh(a,l);function i(){this.constructor=a}a.prototype=l===null?Object.create(l):(i.prototype=l.prototype,new i)}var Ht=function(){return Ht=Object.assign||function(l){for(var i,r=1,d=arguments.length;r<d;r++){i=arguments[r];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(l[f]=i[f])}return l},Ht.apply(this,arguments)};var Vf,n1;function rk(){if(n1)return Vf;n1=1;var a=!1,l,i,r,d,f,h,g,m,p,y,_,b,S,j,w;function E(){if(!a){a=!0;var L=navigator.userAgent,B=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(L),q=/(Mac OS X)|(Windows)|(Linux)/.exec(L);if(b=/\b(iPhone|iP[ao]d)/.exec(L),S=/\b(iP[ao]d)/.exec(L),y=/Android/i.exec(L),j=/FBAN\/\w+;/i.exec(L),w=/Mobile/i.exec(L),_=!!/Win64/.exec(L),B){l=B[1]?parseFloat(B[1]):B[5]?parseFloat(B[5]):NaN,l&&document&&document.documentMode&&(l=document.documentMode);var K=/(?:Trident\/(\d+.\d+))/.exec(L);h=K?parseFloat(K[1])+4:l,i=B[2]?parseFloat(B[2]):NaN,r=B[3]?parseFloat(B[3]):NaN,d=B[4]?parseFloat(B[4]):NaN,d?(B=/(?:Chrome\/(\d+\.\d+))/.exec(L),f=B&&B[1]?parseFloat(B[1]):NaN):f=NaN}else l=i=r=f=d=NaN;if(q){if(q[1]){var V=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(L);g=V?parseFloat(V[1].replace("_",".")):!0}else g=!1;m=!!q[2],p=!!q[3]}else g=m=p=!1}}var R={ie:function(){return E()||l},ieCompatibilityMode:function(){return E()||h>l},ie64:function(){return R.ie()&&_},firefox:function(){return E()||i},opera:function(){return E()||r},webkit:function(){return E()||d},safari:function(){return R.webkit()},chrome:function(){return E()||f},windows:function(){return E()||m},osx:function(){return E()||g},linux:function(){return E()||p},iphone:function(){return E()||b},mobile:function(){return E()||b||S||y||w},nativeApp:function(){return E()||j},android:function(){return E()||y},ipad:function(){return E()||S}};return Vf=R,Vf}var Zf,a1;function ck(){if(a1)return Zf;a1=1;var a=!!(typeof window<"u"&&window.document&&window.document.createElement),l={canUseDOM:a,canUseWorkers:typeof Worker<"u",canUseEventListeners:a&&!!(window.addEventListener||window.attachEvent),canUseViewport:a&&!!window.screen,isInWorker:!a};return Zf=l,Zf}var Wf,s1;function uk(){if(s1)return Wf;s1=1;var a=ck(),l;a.canUseDOM&&(l=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @param {?boolean} capture Check if the capture phase is supported.
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */function i(r,d){if(!a.canUseDOM||d&&!("addEventListener"in document))return!1;var f="on"+r,h=f in document;if(!h){var g=document.createElement("div");g.setAttribute(f,"return;"),h=typeof g[f]=="function"}return!h&&l&&r==="wheel"&&(h=document.implementation.hasFeature("Events.wheel","3.0")),h}return Wf=i,Wf}var Jf,l1;function dk(){if(l1)return Jf;l1=1;var a=rk(),l=uk(),i=10,r=40,d=800;function f(h){var g=0,m=0,p=0,y=0;return"detail"in h&&(m=h.detail),"wheelDelta"in h&&(m=-h.wheelDelta/120),"wheelDeltaY"in h&&(m=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(g=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(g=m,m=0),p=g*i,y=m*i,"deltaY"in h&&(y=h.deltaY),"deltaX"in h&&(p=h.deltaX),(p||y)&&h.deltaMode&&(h.deltaMode==1?(p*=r,y*=r):(p*=d,y*=d)),p&&!g&&(g=p<1?-1:1),y&&!m&&(m=y<1?-1:1),{spinX:g,spinY:m,pixelX:p,pixelY:y}}return f.getEventType=function(){return a.firefox()?"DOMMouseScroll":l("wheel")?"wheel":"mousewheel"},Jf=f,Jf}var $f,i1;function fk(){return i1||(i1=1,$f=dk()),$f}var hk=fk();const mk=F1(hk);function pk(a,l,i,r,d,f){f===void 0&&(f=0);var h=Qi(a,l,f),g=h.width,m=h.height,p=Math.min(g,i),y=Math.min(m,r);return p>y*d?{width:y*d,height:y}:{width:p,height:p/d}}function gk(a){return a.width>a.height?a.width/a.naturalWidth:a.height/a.naturalHeight}function Ko(a,l,i,r,d){d===void 0&&(d=0);var f=Qi(l.width,l.height,d),h=f.width,g=f.height;return{x:o1(a.x,h,i.width,r),y:o1(a.y,g,i.height,r)}}function o1(a,l,i,r){var d=Math.abs(l*r/2-i/2);return mu(a,-d,d)}function r1(a,l){return Math.sqrt(Math.pow(a.y-l.y,2)+Math.pow(a.x-l.x,2))}function c1(a,l){return Math.atan2(l.y-a.y,l.x-a.x)*180/Math.PI}function vk(a,l,i,r,d,f,h){f===void 0&&(f=0),h===void 0&&(h=!0);var g=h?yk:_k,m=Qi(l.width,l.height,f),p=Qi(l.naturalWidth,l.naturalHeight,f),y={x:g(100,((m.width-i.width/d)/2-a.x/d)/m.width*100),y:g(100,((m.height-i.height/d)/2-a.y/d)/m.height*100),width:g(100,i.width/m.width*100/d),height:g(100,i.height/m.height*100/d)},_=Math.round(g(p.width,y.width*p.width/100)),b=Math.round(g(p.height,y.height*p.height/100)),S=p.width>=p.height*r,j=S?{width:Math.round(b*r),height:b}:{width:_,height:Math.round(_/r)},w=Ht(Ht({},j),{x:Math.round(g(p.width-j.width,y.x*p.width/100)),y:Math.round(g(p.height-j.height,y.y*p.height/100))});return{croppedAreaPercentages:y,croppedAreaPixels:w}}function yk(a,l){return Math.min(a,Math.max(0,l))}function _k(a,l){return l}function bk(a,l,i,r,d,f){var h=Qi(l.width,l.height,i),g=mu(r.width/h.width*(100/a.width),d,f),m={x:g*h.width/2-r.width/2-h.width*g*(a.x/100),y:g*h.height/2-r.height/2-h.height*g*(a.y/100)};return{crop:m,zoom:g}}function xk(a,l,i){var r=gk(l);return i.height>i.width?i.height/(a.height*r):i.width/(a.width*r)}function Ak(a,l,i,r,d,f){i===void 0&&(i=0);var h=Qi(l.naturalWidth,l.naturalHeight,i),g=mu(xk(a,l,r),d,f),m=r.height>r.width?r.height/a.height:r.width/a.width,p={x:((h.width-a.width)/2-a.x)*m,y:((h.height-a.height)/2-a.y)*m};return{crop:p,zoom:g}}function u1(a,l){return{x:(l.x+a.x)/2,y:(l.y+a.y)/2}}function Sk(a){return a*Math.PI/180}function Qi(a,l,i){var r=Sk(i);return{width:Math.abs(Math.cos(r)*a)+Math.abs(Math.sin(r)*l),height:Math.abs(Math.sin(r)*a)+Math.abs(Math.cos(r)*l)}}function mu(a,l,i){return Math.min(Math.max(a,l),i)}function Hc(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return a.filter(function(i){return typeof i=="string"&&i.length>0}).join(" ").trim()}var jk=`.reactEasyCrop_Container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: move;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reactEasyCrop_Image,
.reactEasyCrop_Video {
  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
}

.reactEasyCrop_Contain {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.reactEasyCrop_Cover_Horizontal {
  width: 100%;
  height: auto;
}
.reactEasyCrop_Cover_Vertical {
  width: auto;
  height: 100%;
}

.reactEasyCrop_CropArea {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  box-shadow: 0 0 0 9999em;
  color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.reactEasyCrop_CropAreaRound {
  border-radius: 50%;
}

.reactEasyCrop_CropAreaGrid::before {
  content: ' ';
  box-sizing: border-box;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  top: 0;
  bottom: 0;
  left: 33.33%;
  right: 33.33%;
  border-top: 0;
  border-bottom: 0;
}

.reactEasyCrop_CropAreaGrid::after {
  content: ' ';
  box-sizing: border-box;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  top: 33.33%;
  bottom: 33.33%;
  left: 0;
  right: 0;
  border-left: 0;
  border-right: 0;
}
`,wk=1,Ek=3,Nk=1,Ck=(function(a){ok(l,a);function l(){var i=a!==null&&a.apply(this,arguments)||this;return i.cropperRef=A.createRef(),i.imageRef=A.createRef(),i.videoRef=A.createRef(),i.containerPosition={x:0,y:0},i.containerRef=null,i.styleRef=null,i.containerRect=null,i.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},i.dragStartPosition={x:0,y:0},i.dragStartCrop={x:0,y:0},i.gestureZoomStart=0,i.gestureRotationStart=0,i.isTouching=!1,i.lastPinchDistance=0,i.lastPinchRotation=0,i.rafDragTimeout=null,i.rafPinchTimeout=null,i.wheelTimer=null,i.currentDoc=typeof document<"u"?document:null,i.currentWindow=typeof window<"u"?window:null,i.resizeObserver=null,i.previousCropSize=null,i.isInitialized=!1,i.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},i.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!i.containerRef)){var r=!0;i.resizeObserver=new window.ResizeObserver(function(d){if(r){r=!1;return}i.computeSizes()}),i.resizeObserver.observe(i.containerRef)}},i.preventZoomSafari=function(r){return r.preventDefault()},i.cleanEvents=function(){i.currentDoc&&(i.currentDoc.removeEventListener("mousemove",i.onMouseMove),i.currentDoc.removeEventListener("mouseup",i.onDragStopped),i.currentDoc.removeEventListener("touchmove",i.onTouchMove),i.currentDoc.removeEventListener("touchend",i.onDragStopped),i.currentDoc.removeEventListener("gesturechange",i.onGestureChange),i.currentDoc.removeEventListener("gestureend",i.onGestureEnd),i.currentDoc.removeEventListener("scroll",i.onScroll))},i.clearScrollEvent=function(){i.containerRef&&i.containerRef.removeEventListener("wheel",i.onWheel),i.wheelTimer&&clearTimeout(i.wheelTimer)},i.onMediaLoad=function(){var r=i.computeSizes();r&&(i.previousCropSize=r,i.emitCropData(),i.setInitialCrop(r),i.isInitialized=!0),i.props.onMediaLoaded&&i.props.onMediaLoaded(i.mediaSize)},i.setInitialCrop=function(r){if(i.props.initialCroppedAreaPercentages){var d=bk(i.props.initialCroppedAreaPercentages,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),f=d.crop,h=d.zoom;i.props.onCropChange(f),i.props.onZoomChange&&i.props.onZoomChange(h)}else if(i.props.initialCroppedAreaPixels){var g=Ak(i.props.initialCroppedAreaPixels,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),f=g.crop,h=g.zoom;i.props.onCropChange(f),i.props.onZoomChange&&i.props.onZoomChange(h)}},i.computeSizes=function(){var r,d,f,h,g,m,p=i.imageRef.current||i.videoRef.current;if(p&&i.containerRef){i.containerRect=i.containerRef.getBoundingClientRect(),i.saveContainerPosition();var y=i.containerRect.width/i.containerRect.height,_=((r=i.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((d=i.videoRef.current)===null||d===void 0?void 0:d.videoWidth)||0,b=((f=i.imageRef.current)===null||f===void 0?void 0:f.naturalHeight)||((h=i.videoRef.current)===null||h===void 0?void 0:h.videoHeight)||0,S=p.offsetWidth<_||p.offsetHeight<b,j=_/b,w=void 0;if(S)switch(i.state.mediaObjectFit){default:case"contain":w=y>j?{width:i.containerRect.height*j,height:i.containerRect.height}:{width:i.containerRect.width,height:i.containerRect.width/j};break;case"horizontal-cover":w={width:i.containerRect.width,height:i.containerRect.width/j};break;case"vertical-cover":w={width:i.containerRect.height*j,height:i.containerRect.height};break}else w={width:p.offsetWidth,height:p.offsetHeight};i.mediaSize=Ht(Ht({},w),{naturalWidth:_,naturalHeight:b}),i.props.setMediaSize&&i.props.setMediaSize(i.mediaSize);var E=i.props.cropSize?i.props.cropSize:pk(i.mediaSize.width,i.mediaSize.height,i.containerRect.width,i.containerRect.height,i.props.aspect,i.props.rotation);return(((g=i.state.cropSize)===null||g===void 0?void 0:g.height)!==E.height||((m=i.state.cropSize)===null||m===void 0?void 0:m.width)!==E.width)&&i.props.onCropSizeChange&&i.props.onCropSizeChange(E),i.setState({cropSize:E},i.recomputeCropPosition),i.props.setCropSize&&i.props.setCropSize(E),E}},i.saveContainerPosition=function(){if(i.containerRef){var r=i.containerRef.getBoundingClientRect();i.containerPosition={x:r.left,y:r.top}}},i.onMouseDown=function(r){i.currentDoc&&(r.preventDefault(),i.currentDoc.addEventListener("mousemove",i.onMouseMove),i.currentDoc.addEventListener("mouseup",i.onDragStopped),i.saveContainerPosition(),i.onDragStart(l.getMousePoint(r)))},i.onMouseMove=function(r){return i.onDrag(l.getMousePoint(r))},i.onScroll=function(r){i.currentDoc&&(r.preventDefault(),i.saveContainerPosition())},i.onTouchStart=function(r){i.currentDoc&&(i.isTouching=!0,!(i.props.onTouchRequest&&!i.props.onTouchRequest(r))&&(i.currentDoc.addEventListener("touchmove",i.onTouchMove,{passive:!1}),i.currentDoc.addEventListener("touchend",i.onDragStopped),i.saveContainerPosition(),r.touches.length===2?i.onPinchStart(r):r.touches.length===1&&i.onDragStart(l.getTouchPoint(r.touches[0]))))},i.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?i.onPinchMove(r):r.touches.length===1&&i.onDrag(l.getTouchPoint(r.touches[0]))},i.onGestureStart=function(r){i.currentDoc&&(r.preventDefault(),i.currentDoc.addEventListener("gesturechange",i.onGestureChange),i.currentDoc.addEventListener("gestureend",i.onGestureEnd),i.gestureZoomStart=i.props.zoom,i.gestureRotationStart=i.props.rotation)},i.onGestureChange=function(r){if(r.preventDefault(),!i.isTouching){var d=l.getMousePoint(r),f=i.gestureZoomStart-1+r.scale;if(i.setNewZoom(f,d,{shouldUpdatePosition:!0}),i.props.onRotationChange){var h=i.gestureRotationStart+r.rotation;i.props.onRotationChange(h)}}},i.onGestureEnd=function(r){i.cleanEvents()},i.onDragStart=function(r){var d,f,h=r.x,g=r.y;i.dragStartPosition={x:h,y:g},i.dragStartCrop=Ht({},i.props.crop),(f=(d=i.props).onInteractionStart)===null||f===void 0||f.call(d)},i.onDrag=function(r){var d=r.x,f=r.y;i.currentWindow&&(i.rafDragTimeout&&i.currentWindow.cancelAnimationFrame(i.rafDragTimeout),i.rafDragTimeout=i.currentWindow.requestAnimationFrame(function(){if(i.state.cropSize&&!(d===void 0||f===void 0)){var h=d-i.dragStartPosition.x,g=f-i.dragStartPosition.y,m={x:i.dragStartCrop.x+h,y:i.dragStartCrop.y+g},p=i.props.restrictPosition?Ko(m,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):m;i.props.onCropChange(p)}}))},i.onDragStopped=function(){var r,d;i.isTouching=!1,i.cleanEvents(),i.emitCropData(),(d=(r=i.props).onInteractionEnd)===null||d===void 0||d.call(r)},i.onWheel=function(r){if(i.currentWindow&&!(i.props.onWheelRequest&&!i.props.onWheelRequest(r))){r.preventDefault();var d=l.getMousePoint(r),f=mk(r).pixelY,h=i.props.zoom-f*i.props.zoomSpeed/200;i.setNewZoom(h,d,{shouldUpdatePosition:!0}),i.state.hasWheelJustStarted||i.setState({hasWheelJustStarted:!0},function(){var g,m;return(m=(g=i.props).onInteractionStart)===null||m===void 0?void 0:m.call(g)}),i.wheelTimer&&clearTimeout(i.wheelTimer),i.wheelTimer=i.currentWindow.setTimeout(function(){return i.setState({hasWheelJustStarted:!1},function(){var g,m;return(m=(g=i.props).onInteractionEnd)===null||m===void 0?void 0:m.call(g)})},250)}},i.getPointOnContainer=function(r,d){var f=r.x,h=r.y;if(!i.containerRect)throw new Error("The Cropper is not mounted");return{x:i.containerRect.width/2-(f-d.x),y:i.containerRect.height/2-(h-d.y)}},i.getPointOnMedia=function(r){var d=r.x,f=r.y,h=i.props,g=h.crop,m=h.zoom;return{x:(d+g.x)/m,y:(f+g.y)/m}},i.setNewZoom=function(r,d,f){var h=f===void 0?{}:f,g=h.shouldUpdatePosition,m=g===void 0?!0:g;if(!(!i.state.cropSize||!i.props.onZoomChange)){var p=mu(r,i.props.minZoom,i.props.maxZoom);if(m){var y=i.getPointOnContainer(d,i.containerPosition),_=i.getPointOnMedia(y),b={x:_.x*p-y.x,y:_.y*p-y.y},S=i.props.restrictPosition?Ko(b,i.mediaSize,i.state.cropSize,p,i.props.rotation):b;i.props.onCropChange(S)}i.props.onZoomChange(p)}},i.getCropData=function(){if(!i.state.cropSize)return null;var r=i.props.restrictPosition?Ko(i.props.crop,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):i.props.crop;return vk(r,i.mediaSize,i.state.cropSize,i.getAspect(),i.props.zoom,i.props.rotation,i.props.restrictPosition)},i.emitCropData=function(){var r=i.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;i.props.onCropComplete&&i.props.onCropComplete(d,f),i.props.onCropAreaChange&&i.props.onCropAreaChange(d,f)}},i.emitCropAreaChange=function(){var r=i.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;i.props.onCropAreaChange&&i.props.onCropAreaChange(d,f)}},i.recomputeCropPosition=function(){var r,d;if(i.state.cropSize){var f=i.props.crop;if(i.isInitialized&&(!((r=i.previousCropSize)===null||r===void 0)&&r.width)&&(!((d=i.previousCropSize)===null||d===void 0)&&d.height)){var h=Math.abs(i.previousCropSize.width-i.state.cropSize.width)>1e-6||Math.abs(i.previousCropSize.height-i.state.cropSize.height)>1e-6;if(h){var g=i.state.cropSize.width/i.previousCropSize.width,m=i.state.cropSize.height/i.previousCropSize.height;f={x:i.props.crop.x*g,y:i.props.crop.y*m}}}var p=i.props.restrictPosition?Ko(f,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):f;i.previousCropSize=i.state.cropSize,i.props.onCropChange(p),i.emitCropData()}},i.onKeyDown=function(r){var d,f,h=i.props,g=h.crop,m=h.onCropChange,p=h.keyboardStep,y=h.zoom,_=h.rotation,b=p;if(i.state.cropSize){r.shiftKey&&(b*=.2);var S=Ht({},g);switch(r.key){case"ArrowUp":S.y-=b,r.preventDefault();break;case"ArrowDown":S.y+=b,r.preventDefault();break;case"ArrowLeft":S.x-=b,r.preventDefault();break;case"ArrowRight":S.x+=b,r.preventDefault();break;default:return}i.props.restrictPosition&&(S=Ko(S,i.mediaSize,i.state.cropSize,y,_)),r.repeat||(f=(d=i.props).onInteractionStart)===null||f===void 0||f.call(d),m(S)}},i.onKeyUp=function(r){var d,f;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}i.emitCropData(),(f=(d=i.props).onInteractionEnd)===null||f===void 0||f.call(d)},i}return l.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=jk,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},l.prototype.componentWillUnmount=function(){var i,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(i=this.resizeObserver)===null||i===void 0||i.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},l.prototype.componentDidUpdate=function(i){var r,d,f,h,g,m,p,y,_;i.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):i.aspect!==this.props.aspect?this.computeSizes():i.objectFit!==this.props.objectFit?this.computeSizes():i.zoom!==this.props.zoom?this.recomputeCropPosition():((r=i.cropSize)===null||r===void 0?void 0:r.height)!==((d=this.props.cropSize)===null||d===void 0?void 0:d.height)||((f=i.cropSize)===null||f===void 0?void 0:f.width)!==((h=this.props.cropSize)===null||h===void 0?void 0:h.width)?this.computeSizes():(((g=i.crop)===null||g===void 0?void 0:g.x)!==((m=this.props.crop)===null||m===void 0?void 0:m.x)||((p=i.crop)===null||p===void 0?void 0:p.y)!==((y=this.props.crop)===null||y===void 0?void 0:y.y))&&this.emitCropAreaChange(),i.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),i.video!==this.props.video&&((_=this.videoRef.current)===null||_===void 0||_.load());var b=this.getObjectFit();b!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:b},this.computeSizes)},l.prototype.getAspect=function(){var i=this.props,r=i.cropSize,d=i.aspect;return r?r.width/r.height:d},l.prototype.getObjectFit=function(){var i,r,d,f;if(this.props.objectFit==="cover"){var h=this.imageRef.current||this.videoRef.current;if(h&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var g=this.containerRect.width/this.containerRect.height,m=((i=this.imageRef.current)===null||i===void 0?void 0:i.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,p=((d=this.imageRef.current)===null||d===void 0?void 0:d.naturalHeight)||((f=this.videoRef.current)===null||f===void 0?void 0:f.videoHeight)||0,y=m/p;return y<g?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},l.prototype.onPinchStart=function(i){var r=l.getTouchPoint(i.touches[0]),d=l.getTouchPoint(i.touches[1]);this.lastPinchDistance=r1(r,d),this.lastPinchRotation=c1(r,d),this.onDragStart(u1(r,d))},l.prototype.onPinchMove=function(i){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var d=l.getTouchPoint(i.touches[0]),f=l.getTouchPoint(i.touches[1]),h=u1(d,f);this.onDrag(h),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var g=r1(d,f),m=r.props.zoom*(g/r.lastPinchDistance);r.setNewZoom(m,h,{shouldUpdatePosition:!1}),r.lastPinchDistance=g;var p=c1(d,f),y=r.props.rotation+(p-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(y),r.lastPinchRotation=p})}},l.prototype.render=function(){var i=this,r,d=this.props,f=d.image,h=d.video,g=d.mediaProps,m=d.cropperProps,p=d.transform,y=d.crop,_=y.x,b=y.y,S=d.rotation,j=d.zoom,w=d.cropShape,E=d.showGrid,R=d.roundCropAreaPixels,L=d.style,B=L.containerStyle,q=L.cropAreaStyle,K=L.mediaStyle,V=d.classes,U=V.containerClassName,I=V.cropAreaClassName,$=V.mediaClassName,ue=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return A.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(ce){return i.containerRef=ce},"data-testid":"container",style:B,className:Hc("reactEasyCrop_Container",U)},f?A.createElement("img",Ht({alt:"",className:Hc("reactEasyCrop_Image",ue==="contain"&&"reactEasyCrop_Contain",ue==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ue==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",$)},g,{src:f,ref:this.imageRef,style:Ht(Ht({},K),{transform:p||"translate(".concat(_,"px, ").concat(b,"px) rotate(").concat(S,"deg) scale(").concat(j,")")}),onLoad:this.onMediaLoad})):h&&A.createElement("video",Ht({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:Hc("reactEasyCrop_Video",ue==="contain"&&"reactEasyCrop_Contain",ue==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ue==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",$)},g,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Ht(Ht({},K),{transform:p||"translate(".concat(_,"px, ").concat(b,"px) rotate(").concat(S,"deg) scale(").concat(j,")")}),controls:!1}),(Array.isArray(h)?h:[{src:h}]).map(function(re){return A.createElement("source",Ht({key:re.src},re))})),this.state.cropSize&&A.createElement("div",Ht({ref:this.cropperRef,style:Ht(Ht({},q),{width:R?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:R?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:Hc("reactEasyCrop_CropArea",w==="round"&&"reactEasyCrop_CropAreaRound",E&&"reactEasyCrop_CropAreaGrid",I)},m)))},l.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:Ek,minZoom:wk,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:Nk},l.getMousePoint=function(i){return{x:Number(i.clientX),y:Number(i.clientY)}},l.getTouchPoint=function(i){return{x:Number(i.clientX),y:Number(i.clientY)}},l})(A.Component);function Tk(a){return new Promise((l,i)=>{const r=new Image;r.onload=()=>l(r),r.onerror=()=>i(new Error("Не удалось загрузить изображение")),r.src=a})}async function Rk(a,l,i=512){const r=await Tk(a),d=document.createElement("canvas");d.width=i,d.height=i;const f=d.getContext("2d");if(!f)throw new Error("Canvas 2D context недоступен");return f.drawImage(r,l.x,l.y,l.width,l.height,0,0,i,i),new Promise((h,g)=>{d.toBlob(m=>{m?h(m):g(new Error("Пустой Blob после обрезки"))},"image/jpeg",.9)})}const kk="_backdrop_1cfz6_1",Bk="_card_1cfz6_12",Ok="_title_1cfz6_25",Lk="_cropArea_1cfz6_31",Mk="_controls_1cfz6_40",Dk="_zoom_1cfz6_52",zk="_actions_1cfz6_57",Uk="_error_1cfz6_63",Ts={backdrop:kk,card:Bk,title:Ok,cropArea:Lk,controls:Mk,zoom:Dk,actions:zk,error:Uk};function Hk({imageSrc:a,isSaving:l,onCancel:i,onConfirm:r}){const[d,f]=A.useState({x:0,y:0}),[h,g]=A.useState(1),[m,p]=A.useState(null),[y,_]=A.useState(null),b=A.useCallback((j,w)=>{p(w)},[]);A.useEffect(()=>{const j=w=>{w.key==="Escape"&&!l&&i()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[i,l]);const S=async()=>{if(m){_(null);try{const j=await Rk(a,m);await r(j)}catch{_("Не удалось обрезать изображение")}}};return o.jsx("div",{className:Ts.backdrop,onClick:l?void 0:i,children:o.jsxs("div",{className:Ts.card,onClick:j=>j.stopPropagation(),children:[o.jsx("h3",{className:Ts.title,children:"Выберите область аватара"}),o.jsx("div",{className:Ts.cropArea,children:o.jsx(Ck,{image:a,crop:d,zoom:h,aspect:1,cropShape:"round",showGrid:!1,onCropChange:f,onZoomChange:g,onCropComplete:b})}),o.jsxs("div",{className:Ts.controls,children:[o.jsx("label",{htmlFor:"avatar-zoom",children:"Масштаб"}),o.jsx("input",{id:"avatar-zoom",className:Ts.zoom,type:"range",min:1,max:3,step:.01,value:h,onChange:j=>g(Number(j.target.value))})]}),y&&o.jsx("span",{className:Ts.error,children:y}),o.jsxs("div",{className:Ts.actions,children:[o.jsx(Ln,{variant:"ghost",onClick:i,disabled:l,children:"Отмена"}),o.jsx(Ln,{variant:"primary",onClick:S,disabled:l||!m,children:l?"Загрузка...":"Сохранить"})]})]})})}const qk="_col_nam4n_1",Pk="_avatar_nam4n_10",Qk="_avatarImg_nam4n_31",Fk="_error_nam4n_38",Yk="_overlay_nam4n_44",Gk="_addPhoto_nam4n_69",bi={col:qk,avatar:Pk,avatarImg:Qk,error:Fk,overlay:Yk,addPhoto:Gk};function Ik(a){return new Promise((l,i)=>{const r=new FileReader;r.onload=()=>{const d=r.result,f=d.indexOf(",");l(f>=0?d.slice(f+1):d)},r.onerror=()=>i(r.error),r.readAsDataURL(a)})}function Kk(){const{data:a}=_n(),{mutateAsync:l,isPending:i}=qN(),r=A.useRef(null),[d,f]=A.useState(null),[h,g]=A.useState(!1),[m,p]=A.useState(null),y=(a==null?void 0:a.avatar_link)??null,_=y&&!h;A.useEffect(()=>{g(!1)},[y]),A.useEffect(()=>()=>{m&&URL.revokeObjectURL(m)},[m]);const b=()=>{var E;i||(E=r.current)==null||E.click()},S=E=>{var L;const R=(L=E.target.files)==null?void 0:L[0];E.target.value="",R&&(f(null),p(URL.createObjectURL(R)))},j=()=>{m&&URL.revokeObjectURL(m),p(null)},w=async E=>{try{const R=await Ik(E);await l({photo_base64:R,decoded_bytes:String(E.size)}),j()}catch{f("Не удалось загрузить фото"),j()}};return o.jsxs("div",{className:bi.col,children:[o.jsxs("div",{className:bi.avatar,onClick:b,children:[_?o.jsx("img",{src:y,alt:"avatar",className:bi.avatarImg,referrerPolicy:"no-referrer",onError:()=>{console.warn("[avatar] failed to load",y),g(!0)}}):o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("circle",{cx:"12",cy:"8",r:"4"}),o.jsx("path",{d:"M4 20c0-4 4-7 8-7s8 3 8 7"})]}),o.jsx("div",{className:bi.overlay,children:o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M23 19a2 2 0 01-2 2H3a2 2 0 01-2-2V8a2 2 0 012-2h4l2-3h6l2 3h4a2 2 0 012 2z"}),o.jsx("circle",{cx:"12",cy:"13",r:"4"})]})})]}),o.jsx("input",{ref:r,type:"file",accept:"image/*",onChange:S,hidden:!0}),o.jsx("div",{className:bi.addPhoto,children:o.jsx(Ln,{variant:"ghost",onClick:b,disabled:i,children:i?"ЗАГРУЗКА...":"ДОБАВИТЬ ФОТО"})}),d&&o.jsx("span",{className:bi.error,children:d}),m&&o.jsx(Hk,{imageSrc:m,isSaving:i,onCancel:j,onConfirm:w})]})}const Xk="_card_17od5_1",Vk="_title_17od5_8",Zk="_actions_17od5_17",eh={card:Xk,title:Vk,actions:Zk};function Cl({title:a,children:l,actions:i}){return o.jsxs("div",{className:eh.card,children:[o.jsx("div",{className:eh.title,children:a}),l,i&&o.jsx("div",{className:eh.actions,children:i})]})}function Wk(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}const Jk="_profileTop_1107i_2",$k="_userInfo_1107i_6",e6="_userName_1107i_26",t6="_userBalance_1107i_33",qc={profileTop:Jk,userInfo:$k,userName:e6,userBalance:t6};function n6(){const{data:a}=_n(),{data:l}=hu(),i=a?HN(a):"";return o.jsxs("div",{className:qc.profileTop,children:[o.jsx(Kk,{}),o.jsxs("div",{className:qc.userInfo,children:[o.jsx("span",{className:qc.userName,children:i}),o.jsx("span",{className:qc.userBalance,children:Wk(l==null?void 0:l.totalUsd)})]})]})}const a6="_menu_nxjwi_1",s6="_summary_nxjwi_7",l6="_nav_nxjwi_11",i6="_item_nxjwi_17",o6="_itemActive_nxjwi_35",r6="_select_nxjwi_42",ml={menu:a6,summary:s6,nav:l6,item:i6,itemActive:o6,select:r6},Jc=[{to:ne.PROFILE_DETAILS,label:"Данные профиля"},{to:ne.PROFILE_SECURITY,label:"Безопасность"},{to:ne.PROFILE_TRANSACTIONS,label:"Транзакции"},{to:ne.PROFILE_MNEMONIC,label:"Мнемоническая фраза"}],c6=Jc.map(({to:a,label:l})=>({value:a,label:l}));function u6(){var r;const a=yn(),{pathname:l}=Zt(),i=((r=Jc.find(d=>l.startsWith(d.to)))==null?void 0:r.to)??Jc[0].to;return o.jsxs("aside",{className:ml.menu,children:[o.jsx("div",{className:ml.summary,children:o.jsx(n6,{})}),o.jsx("div",{className:ml.select,children:o.jsx(Ph,{value:i,options:c6,onChange:d=>a(d),label:"Раздел профиля"})}),o.jsx("nav",{className:ml.nav,children:Jc.map(({to:d,label:f})=>o.jsx(qi,{to:d,className:({isActive:h})=>h?`${ml.item} ${ml.itemActive}`:ml.item,children:f},d))})]})}function d6(a){const l=PN(),[i,r]=A.useState(""),[d,f]=A.useState(""),[h,g]=A.useState(null);A.useEffect(()=>{a!=null&&(r(a),f(a))},[a]);function m(y){r(y.replace(/[^\d+\s()-]/g,""))}function p(){const y=i.trim();y===d||l.isPending||l.mutate(y,{onSuccess:()=>{f(y),g({status:"success",message:"Номер телефона обновлён"})},onError:()=>{g({status:"error",message:"Не удалось обновить номер телефона"})}})}return{phone:i,onPhoneChange:m,onPhoneBlur:p,notification:h,dismissNotification:()=>g(null)}}const f6="_grid2_1y7u3_1",h6="_grid1_1y7u3_7",wi={grid2:f6,grid1:h6};function m6({data:a}){const l=Rv(a),{phone:i,onPhoneChange:r,onPhoneBlur:d,notification:f,dismissNotification:h}=d6(a.phone);return o.jsxs(o.Fragment,{children:[o.jsx(Cl,{title:"Личные данные",children:o.jsxs("div",{className:wi.grid2,children:[o.jsx(ke,{label:"Полное ФИО",value:l,placeholder:"Например: Иванов Иван Иванович",readOnly:!0}),o.jsx(ke,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"example@mail.ru",readOnly:!0}),o.jsx(ke,{label:"Серия и номер паспорта",value:a.passport_data??"",placeholder:"0000 000000",readOnly:!0}),o.jsx(ke,{label:"Номер телефона",value:i,onChange:r,onBlur:d,type:"tel",placeholder:"+7 (999) 000-00-00"})]})}),o.jsx(Cl,{title:"Верификация",children:o.jsxs("div",{className:wi.grid2,children:[o.jsx(ke,{label:"ИНН",value:a.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),o.jsx(ke,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})}),f&&o.jsx(ts,{status:f.status,message:f.message,onClose:h,duration:5e3})]})}function p6({data:a}){const l=a.legal_entity;return l?o.jsxs(o.Fragment,{children:[o.jsx(Cl,{title:"Данные организации",children:o.jsxs("div",{className:wi.grid2,children:[o.jsx(ke,{label:"Наименование",value:l.name??"",placeholder:"ООО «Ромашка»",readOnly:!0}),o.jsx(ke,{label:"Краткое наименование",value:l.short_name??"",placeholder:"Ромашка",readOnly:!0}),o.jsx(ke,{label:"ИНН",value:l.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),o.jsx(ke,{label:"ОГРН",value:l.ogrn??"",placeholder:"1027700132195",readOnly:!0}),o.jsx(ke,{label:"КПП",value:l.kpp??"",placeholder:"770801001",readOnly:!0}),o.jsx(ke,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"org@mail.ru",readOnly:!0})]})}),o.jsx(Cl,{title:"Адреса",children:o.jsxs("div",{className:wi.grid2,children:[o.jsx(ke,{label:"Юридический адрес",value:l.legal_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0}),o.jsx(ke,{label:"Фактический адрес",value:l.actual_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0})]})}),o.jsx(Cl,{title:"Контакты и верификация",children:o.jsxs("div",{className:wi.grid2,children:[o.jsx(ke,{label:"Контактное лицо",value:l.contact_person??"",placeholder:"Иванов Иван Иванович",readOnly:!0}),o.jsx(ke,{label:"Контактный телефон",value:l.contact_phone??"",type:"tel",placeholder:"+7 (999) 000-00-00",readOnly:!0}),o.jsx(ke,{label:"Статус",value:l.status??"",placeholder:"active",readOnly:!0}),o.jsx(ke,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]}):null}function g6(){const{data:a}=_n();return a?Tv(a)?o.jsx(p6,{data:a}):o.jsx(m6,{data:a}):null}function v6(){const{data:a}=fu();return o.jsx(Cl,{title:"Безопасность",children:o.jsx("div",{className:wi.grid1,children:a==null?void 0:a.map(({chain:l,address:i})=>o.jsx(ke,{label:`Адрес ${l}`,readOnly:!0,icon:"lock",value:i,placeholder:"—"},l))})})}const y6="_kycBanner_2th6o_1",_6={kycBanner:y6};function b6(){const{data:a}=_n();return!a||a.kyc_verified?null:o.jsx("div",{className:_6.kycBanner,children:"Для полного доступа к платформе необходимо пройти верификацию личности (KYC)"})}const x6="_page_wlsc9_1",A6="_menu_wlsc9_12",S6="_content_wlsc9_16",th={page:x6,menu:A6,content:S6};function j6(){return o.jsxs("div",{className:th.page,children:[o.jsx("div",{className:th.menu,children:o.jsx(u6,{})}),o.jsxs("main",{className:th.content,children:[o.jsx(b6,{}),o.jsx(cu,{})]})]})}function w6(){const{isLoading:a}=_n();return a?o.jsx(Dn,{fullscreen:!0,label:"Загрузка"}):o.jsx(g6,{})}function E6(){const{isLoading:a}=_n();return a?o.jsx(Dn,{fullscreen:!0,label:"Загрузка"}):o.jsx(v6,{})}const d1=52;function N6(a){const[l,i]=A.useState(!1),[r,d]=A.useState(d1),[f,h]=A.useState(!1),g=A.useRef(null),m=A.useCallback(()=>{g.current&&clearInterval(g.current),d(d1),g.current=setInterval(()=>{d(_=>_<=1?(clearInterval(g.current),i(!0),0):_-1)},1e3)},[]);A.useEffect(()=>(m(),()=>{g.current&&clearInterval(g.current)}),[m]);const p=A.useCallback(()=>{i(_=>_?(m(),!1):(g.current&&clearInterval(g.current),!0))},[m]),y=A.useCallback(()=>{navigator.clipboard.writeText(a.join(" ")).then(()=>{h(!0),setTimeout(()=>h(!1),1500)})},[a]);return{hidden:l,countdown:r,copied:f,handleHide:p,handleCopy:y}}const C6="_content_o6p8v_1",T6="_titleRow_o6p8v_6",R6="_title_o6p8v_6",k6="_titleButtons_o6p8v_19",B6="_btnFixed_o6p8v_26",O6="_subtitle_o6p8v_34",L6="_countdown_o6p8v_42",M6="_seedGrid_o6p8v_47",D6="_seedCard_o6p8v_54",z6="_seedNum_o6p8v_73",U6="_seedWord_o6p8v_80",H6="_seedWordHidden_o6p8v_88",q6="_warning_o6p8v_93",P6="_warningIcon_o6p8v_101",Q6="_warningText_o6p8v_107",F6="_profileLinkRow_o6p8v_115",Y6="_profileLink_o6p8v_115",Dt={content:C6,titleRow:T6,title:R6,titleButtons:k6,btnFixed:B6,subtitle:O6,countdown:L6,seedGrid:M6,seedCard:D6,seedNum:z6,seedWord:U6,seedWordHidden:H6,warning:q6,warningIcon:P6,warningText:Q6,profileLinkRow:F6,profileLink:Y6};function my({words:a,showProfileLink:l=!0}){const{hidden:i,countdown:r,copied:d,handleHide:f,handleCopy:h}=N6(a);return o.jsxs("div",{className:Dt.content,children:[o.jsxs("div",{className:Dt.titleRow,children:[o.jsx("h1",{className:Dt.title,children:"СИД ФРАЗА"}),o.jsxs("div",{className:Dt.titleButtons,children:[o.jsx("div",{className:Dt.btnFixed,children:o.jsx(Ln,{variant:"outline",onClick:f,children:i?"ПОКАЗАТЬ":"СКРЫТЬ"})}),o.jsx("div",{className:Dt.btnFixed,children:o.jsx(Ln,{variant:"outline",onClick:h,children:d?"СКОПИРОВАНО":"КОПИРОВАТЬ"})})]})]}),!i&&o.jsxs("div",{className:Dt.subtitle,children:["АВТОМАТИЧЕСКОЕ СКРЫТИЕ ЧЕРЕЗ"," ",o.jsx("span",{className:Dt.countdown,children:r}),"С"]}),o.jsx("div",{className:Dt.seedGrid,children:a.map((g,m)=>o.jsxs("div",{className:Dt.seedCard,children:[o.jsxs("span",{className:Dt.seedNum,children:[m+1,"."]}),o.jsx("span",{className:`${Dt.seedWord} ${i?Dt.seedWordHidden:""}`,children:i?"•••••":g})]},m))}),o.jsxs("div",{className:Dt.warning,children:[o.jsx("span",{className:Dt.warningIcon,children:"⚠️"}),o.jsx("p",{className:Dt.warningText,children:"Никогда не передавайте сид-фразу третьим лицам. Тот, кто знает фразу — владеет кошельком."})]}),l&&o.jsx("div",{className:Dt.profileLinkRow,children:o.jsx(vn,{to:ne.PROFILE,className:Dt.profileLink,children:"Перейти в профиль"})})]})}const G6="_hint_1wz0k_1",I6={hint:G6};function K6(){const[a,l]=A.useState(!1),{data:i,isLoading:r}=zv(a);if(!a)return o.jsx(Cl,{title:"Мнемоническая фраза",actions:o.jsx(Ln,{variant:"danger",onClick:()=>l(!0),children:"Показать мнемонику"}),children:o.jsx("p",{className:I6.hint,children:"Сид-фраза из 12 слов для восстановления кошелька. Никогда не передавайте её третьим лицам."})});if(r)return o.jsx(Dn,{fullscreen:!0,label:"Загрузка"});const d=i?i.split(" "):[];return o.jsx(my,{words:d,showProfileLink:!1})}function ar(a){return a?new Date(a).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function X6(a){return a?a.length<=16?a:`${a.slice(0,8)}…${a.slice(-6)}`:"—"}function Jh(a){return Number(a).toLocaleString("ru-RU")}const V6={pending:"Ожидание",money_accepted:"Деньги получены",web3_processing:"Обработка в сети",web3_hash_error:"Ошибка хэша",web3_balance_problem:"Проблема с балансом",receipt_error:"Ошибка чека",completed:"Завершён",usdt_delivered:"USDT отправлен"},Z6="_badge_1d3cq_1",W6="_status_pending_1d3cq_10",J6="_status_completed_1d3cq_15",$6="_status_money_accepted_1d3cq_20",e7="_status_web3_processing_1d3cq_25",t7="_status_web3_hash_error_1d3cq_30",n7="_status_web3_balance_problem_1d3cq_35",a7="_status_receipt_error_1d3cq_40",s7="_status_usdt_delivered_1d3cq_45",f1={badge:Z6,status_pending:W6,status_completed:J6,status_money_accepted:$6,status_web3_processing:e7,status_web3_hash_error:t7,status_web3_balance_problem:n7,status_receipt_error:a7,status_usdt_delivered:s7};function py({status:a}){return o.jsx("span",{className:`${f1.badge} ${f1[`status_${a}`]??""}`,children:V6[a]??a})}const l7={created:"Создан",waiting_usdt:"Ожидание USDT",usdt_underpaid:"USDT недоплачен",usdt_received:"USDT получен",wallet_error:"Ошибка кошелька",payout_processing:"Выплата в обработке",payout_completed:"Выплата завершена",payout_failed:"Выплата не прошла",cancelled:"Отменён",expired:"Истёк"},i7="_badge_lkcaw_1",o7="_status_usdt_received_lkcaw_11",r7="_status_payout_completed_lkcaw_12",c7="_status_created_lkcaw_18",u7="_status_waiting_usdt_lkcaw_23",d7="_status_payout_processing_lkcaw_24",f7="_status_usdt_underpaid_lkcaw_30",h7="_status_wallet_error_lkcaw_31",m7="_status_payout_failed_lkcaw_32",p7="_status_expired_lkcaw_33",g7="_status_cancelled_lkcaw_39",h1={badge:i7,status_usdt_received:o7,status_payout_completed:r7,status_created:c7,status_waiting_usdt:u7,status_payout_processing:d7,status_usdt_underpaid:f7,status_wallet_error:h7,status_payout_failed:m7,status_expired:p7,status_cancelled:g7};function gy({status:a}){return o.jsx("span",{className:`${h1.badge} ${h1[`status_${a}`]??""}`,children:l7[a]??a})}const v7="_button_1q7wx_1",y7={button:v7};function _7({value:a}){const[l,i]=A.useState(!1);function r(){navigator.clipboard.writeText(a).then(()=>{i(!0),setTimeout(()=>i(!1),1500)})}return o.jsx("button",{className:y7.button,onClick:r,type:"button",title:"Скопировать",children:l?o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"20 6 9 17 4 12"})}):o.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),o.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}const b7="_item_3k64v_1",x7="_summary_3k64v_8",A7="_summaryLeft_3k64v_25",S7="_opType_3k64v_34",j7="_summaryDate_3k64v_46",w7="_summaryRight_3k64v_53",E7="_amount_3k64v_60",N7="_totalAmount_3k64v_68",C7="_chevron_3k64v_76",T7="_chevronOpen_3k64v_82",R7="_bodyOuter_3k64v_86",k7="_bodyOuterOpen_3k64v_92",B7="_bodyInner_3k64v_96",O7="_body_3k64v_86",L7="_col_3k64v_108",M7="_colTitle_3k64v_113",D7="_infoRow_3k64v_122",z7="_infoRowTotal_3k64v_135",U7="_infoLabel_3k64v_140",H7="_infoValue_3k64v_141",q7="_infoValueRow_3k64v_160",P7="_infoLink_3k64v_166",xe={item:b7,summary:x7,summaryLeft:A7,opType:S7,summaryDate:j7,summaryRight:w7,amount:E7,totalAmount:N7,chevron:C7,chevronOpen:T7,bodyOuter:R7,bodyOuterOpen:k7,bodyInner:B7,body:O7,col:L7,colTitle:M7,infoRow:D7,infoRowTotal:z7,infoLabel:U7,infoValue:H7,infoValueRow:q7,infoLink:P7};function Q7({op:a}){const[l,i]=A.useState(!1);return(a.type==="withdrawal"||!a.payment)&&!!a.withdrawal&&a.withdrawal?o.jsx(m1,{isOpen:l,onToggle:()=>i(d=>!d),summary:G7(a.withdrawal),children:I7(a.withdrawal)}):a.payment?o.jsx(m1,{isOpen:l,onToggle:()=>i(d=>!d),summary:F7(a.payment),children:Y7(a.payment)}):null}function m1({isOpen:a,onToggle:l,summary:i,children:r}){return o.jsxs("div",{className:xe.item,children:[o.jsxs("button",{className:xe.summary,onClick:l,type:"button","aria-expanded":a,children:[i,o.jsx("svg",{className:`${xe.chevron} ${a?xe.chevronOpen:""}`,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),o.jsx("div",{className:`${xe.bodyOuter} ${a?xe.bodyOuterOpen:""}`,children:o.jsx("div",{className:xe.bodyInner,children:o.jsx("div",{className:xe.body,children:r})})})]})}function F7(a){return o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:xe.summaryLeft,children:[o.jsx("span",{className:xe.opType,children:"Платёж"}),o.jsx("span",{className:xe.summaryDate,children:ar(a.created_at)}),a.status&&o.jsx(py,{status:a.status})]}),o.jsx("span",{className:xe.summaryRight,children:a.itpay_paid_amount&&o.jsxs("span",{className:xe.totalAmount,children:[Jh(a.itpay_paid_amount)," ₽"]})})]})}function Y7(a){return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:xe.col,children:[o.jsx("p",{className:xe.colTitle,children:"Платёж"}),o.jsxs("div",{className:xe.infoRow,children:[o.jsx("span",{className:xe.infoLabel,children:"Статус"}),a.status?o.jsx(py,{status:a.status}):o.jsx("span",{className:xe.infoValue,children:"—"})]}),o.jsx(sa,{label:"Оплачено",value:a.itpay_paid_amount||"—"}),o.jsx(sa,{label:"Истекает",value:ar(a.expired_date??"")})]}),o.jsxs("div",{className:xe.col,children:[o.jsx("p",{className:xe.colTitle,children:"Транзакция"}),o.jsxs("div",{className:xe.infoRow,children:[o.jsx("span",{className:xe.infoLabel,children:"Хэш транзакции"}),o.jsxs("span",{className:xe.infoValueRow,children:[o.jsx("span",{className:xe.infoValue,title:a.web3_transaction_hash||void 0,children:X6(a.web3_transaction_hash??"")}),a.web3_transaction_hash&&o.jsx(_7,{value:a.web3_transaction_hash})]})]}),o.jsxs("div",{className:xe.infoRow,children:[o.jsx("span",{className:xe.infoLabel,children:"Чек"}),a.receipt_cloudekassir_link?o.jsx("a",{href:a.receipt_cloudekassir_link,target:"_blank",rel:"noopener noreferrer",className:xe.infoLink,children:"Открыть →"}):o.jsx("span",{className:xe.infoValue,children:"—"})]})]})]})}function G7(a){return o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:xe.summaryLeft,children:[o.jsx("span",{className:xe.opType,children:"Вывод СБП"}),o.jsx("span",{className:xe.summaryDate,children:ar(a.created_at??"")}),a.status&&o.jsx(gy,{status:a.status})]}),o.jsxs("span",{className:xe.summaryRight,children:[a.usdt_amount&&o.jsxs("span",{className:xe.amount,children:[a.usdt_amount," USDT"]}),a.rub_amount&&o.jsxs("span",{className:xe.totalAmount,children:[Jh(a.rub_amount)," ₽"]})]})]})}function I7(a){return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:xe.col,children:[o.jsx("p",{className:xe.colTitle,children:"Вывод (СБП)"}),o.jsxs("div",{className:xe.infoRow,children:[o.jsx("span",{className:xe.infoLabel,children:"Статус"}),a.status?o.jsx(gy,{status:a.status}):o.jsx("span",{className:xe.infoValue,children:"—"})]}),o.jsx(sa,{label:"Банк",value:a.bank_name||"—"}),o.jsx(sa,{label:"Телефон",value:a.phone||"—"}),o.jsx(sa,{label:"Создан",value:ar(a.payout_created_at??a.created_at??"")}),o.jsx(sa,{label:"Завершён",value:ar(a.payout_completed_at??"")}),a.provider_error&&o.jsx(sa,{label:"Ошибка",value:a.provider_error})]}),o.jsxs("div",{className:xe.col,children:[o.jsx("p",{className:xe.colTitle,children:"Суммы"}),o.jsx(sa,{label:"Сумма USDT",value:a.usdt_amount?`${a.usdt_amount} USDT`:"—"}),o.jsx(sa,{label:"Курс обмена",value:a.usdt_exchange_rate?`1 USDT = ${a.usdt_exchange_rate} ₽`:"—"}),o.jsx(sa,{label:"Сервисный сбор",value:a.service_fee_usdt?`${a.service_fee_usdt} USDT`:"—"}),o.jsx(sa,{label:"Сумма к выводу",value:a.rub_amount?`${Jh(a.rub_amount)} ₽`:"—",emphasised:!0})]})]})}function sa({label:a,value:l,emphasised:i}){return o.jsxs("div",{className:`${xe.infoRow} ${i?xe.infoRowTotal:""}`,children:[o.jsx("span",{className:xe.infoLabel,children:a}),o.jsx("span",{className:xe.infoValue,children:l})]})}const K7="_list_gxp0d_1",X7="_empty_gxp0d_9",V7="_statusError_gxp0d_23",Z7="_loadMore_gxp0d_30",W7="_loadMoreBtn_gxp0d_38",Xo={list:K7,empty:X7,statusError:V7,loadMore:Z7,loadMoreBtn:W7};function J7(){const{data:a,isLoading:l,isError:i,fetchNextPage:r,hasNextPage:d,isFetchingNextPage:f}=Wj(),h=(a==null?void 0:a.pages.flatMap(g=>g.operations))??[];return l?o.jsx(Dn,{fullscreen:!0,label:"Загрузка"}):i?o.jsx("p",{className:Xo.statusError,children:"Не удалось загрузить операции. Попробуйте обновить страницу."}):h.length===0?o.jsx("p",{className:Xo.empty,children:"У вас пока нет операций."}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:Xo.list,children:h.map((g,m)=>{var p,y;return o.jsx(Q7,{op:g},((p=g.payment)==null?void 0:p.id)??((y=g.withdrawal)==null?void 0:y.id)??m)})}),d&&o.jsx("div",{className:Xo.loadMore,children:o.jsx("button",{className:Xo.loadMoreBtn,onClick:()=>r(),disabled:f,type:"button",children:f?"Загрузка...":"Загрузить ещё"})})]})}const $7="_status_1yzxr_1",eB="_statusError_1yzxr_8",tB="_empty_1yzxr_15",nB="_tableWrap_1yzxr_22",aB="_table_1yzxr_22",sB="_mono_1yzxr_53",lB="_statusBadge_1yzxr_57",Ia={status:$7,statusError:eB,empty:tB,tableWrap:nB,table:aB,mono:sB,statusBadge:lB};function p1(a,l){return a?`${a} ${l}`:"—"}function iB(a){if(!a)return"—";const l=new Date(a);return Number.isNaN(l.getTime())?"—":l.toLocaleString("ru-RU")}function oB(){const{data:a,isLoading:l,isError:i}=Bv();return l?o.jsx("p",{className:Ia.status,children:"Загрузка..."}):i?o.jsx("p",{className:Ia.statusError,children:"Не удалось загрузить заявки. Попробуйте обновить страницу."}):!a||a.items.length===0?o.jsx("p",{className:Ia.empty,children:"У вас пока нет заявок."}):o.jsx("div",{className:Ia.tableWrap,children:o.jsxs("table",{className:Ia.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"USDT"}),o.jsx("th",{children:"Сумма ₽"}),o.jsx("th",{children:"Курс"}),o.jsx("th",{children:"Статус"}),o.jsx("th",{children:"Создана"})]})}),o.jsx("tbody",{children:a.items.map(r=>o.jsxs("tr",{children:[o.jsx("td",{className:Ia.mono,children:p1(r.usdt_amount,"USDT")}),o.jsx("td",{className:Ia.mono,children:p1(r.rub_amount,"₽")}),o.jsx("td",{className:Ia.mono,children:r.exchange_rate??"—"}),o.jsx("td",{children:o.jsx("span",{className:Ia.statusBadge,children:r.status})}),o.jsx("td",{children:iB(r.created_at)})]},r.id))})]})})}const rB="_panel_11333_1",cB="_tabs_11333_6",uB="_tab_11333_6",Pc={panel:rB,tabs:cB,tab:uB};function dB(){const{data:a,isLoading:l}=_n(),[i,r]=A.useState("transactions");if(l)return o.jsx(Dn,{fullscreen:!0,label:"Загрузка"});const d=!!a&&a.account_type!=="individual",f=d?i:"transactions";return o.jsxs("div",{className:Pc.panel,children:[d&&o.jsxs("div",{className:Pc.tabs,children:[o.jsx("button",{type:"button",className:Pc.tab,"data-active":f==="transactions"||void 0,onClick:()=>r("transactions"),children:"Транзакции"}),o.jsx("button",{type:"button",className:Pc.tab,"data-active":f==="requests"||void 0,onClick:()=>r("requests"),children:"Заявки"})]}),f==="transactions"?o.jsx(J7,{}):o.jsx(oB,{})]})}function fB(){return o.jsx(dB,{})}const hB="_card_1erii_1",mB="_logo_1erii_10",pB="_title_1erii_20",gB="_twoCol_1erii_29",vB="_leftCol_1erii_36",yB="_rightCol_1erii_42",_B="_codeHint_1erii_48",bB="_error_1erii_55",xB="_submitWrapper_1erii_62",AB="_footer_1erii_66",SB="_forgot_1erii_73",jB="_divider_1erii_88",Xn={card:hB,logo:mB,title:pB,twoCol:gB,leftCol:vB,rightCol:yB,codeHint:_B,error:bB,submitWrapper:xB,footer:AB,forgot:SB,divider:jB};function g1(a){var i,r;const l=a;return((r=(i=l==null?void 0:l.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function wB(){const[a,l]=A.useState(""),[i,r]=A.useState(""),[d,f]=A.useState(""),[h,g]=A.useState(!1),m=Wt(),p=yn(),y=vt({mutationFn:RN,onSuccess:()=>g(!0)}),_=vt({mutationFn:kN,onSuccess:async({access_token:w})=>{Kh(),m.clear(),w&&Nt.set(w),await m.invalidateQueries({queryKey:du}),p(ne.PROFILE)}}),b=()=>{a&&y.mutate({email:a})},S=w=>{w.preventDefault(),_.mutate({email:a,password:i,code:d})},j=(y.isError?g1(y.error):null)??(_.isError?g1(_.error):null);return{email:a,setEmail:l,password:i,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:h,isLoadingCode:y.isPending,isLoadingSubmit:_.isPending,error:j,handleRequestCode:b,handleSubmit:S}}function EB(){const{email:a,setEmail:l,password:i,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:h,isLoadingCode:g,isLoadingSubmit:m,error:p,handleRequestCode:y,handleSubmit:_}=wB(),b=yn();return o.jsxs("form",{className:Xn.card,onSubmit:_,children:[o.jsx("div",{className:Xn.logo,children:o.jsx("img",{src:xa,alt:"ЭКСА"})}),o.jsx("h1",{className:Xn.title,children:"Войти в кошелёк ЭКСА"}),o.jsxs("div",{className:Xn.twoCol,children:[o.jsxs("div",{className:Xn.leftCol,children:[o.jsx(ke,{label:"Адрес электронной почты",type:"email",value:a,onChange:l,placeholder:"example@mail.ru",required:!0}),o.jsx(ke,{label:"Пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0})]}),o.jsxs("div",{className:Xn.rightCol,children:[o.jsx(Ln,{variant:"ghost",type:"button",onClick:y,disabled:h||g,children:g?"Отправка...":h?"Код отправлен":"Получить код на email"}),o.jsx("span",{className:Xn.codeHint,children:"Код не пришёл"}),o.jsx(ke,{label:"Ввести код",type:"text",value:d,onChange:f,placeholder:"000 000",required:!0})]})]}),p&&o.jsx("p",{className:Xn.error,children:p}),o.jsx("div",{className:Xn.submitWrapper,children:o.jsx(Zn,{label:m?"Вход...":"Войти",disabled:m})}),o.jsxs("div",{className:Xn.footer,children:[o.jsx("a",{className:Xn.forgot,onClick:()=>b(ne.RESTORE_PASSWORD),children:"Забыли пароль?"}),o.jsx("div",{className:Xn.divider,children:o.jsx("span",{children:"или"})}),o.jsx(Ln,{variant:"outline",type:"button",onClick:()=>b(ne.REGISTER),children:"Создать новый кошелёк"})]})]})}const NB="_page_a6ygb_1",CB={page:NB};function TB(){return o.jsx("div",{className:CB.page,children:o.jsx(EB,{})})}function v1(a){var i,r;const l=a;return((r=(i=l==null?void 0:l.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function RB(){const a=yn(),l=Wt(),[i,r]=A.useState(""),[d,f]=A.useState(""),[h,g]=A.useState(""),[m,p]=A.useState(""),[y,_]=A.useState(!1),[b,S]=A.useState(null),j=vt({mutationFn:CN,onSuccess:()=>_(!0)}),w=vt({mutationFn:TN,onSuccess:async({access_token:B})=>{Kh(),l.clear(),B&&Nt.set(B),await l.invalidateQueries({queryKey:du}),a(ne.WALLET)}}),E=()=>{i&&j.mutate({email:i})},R=B=>{if(B.preventDefault(),d!==h){S("Пароли не совпадают");return}S(null),w.mutate({email:i,password:d,confirm_password:h,code:m})},L=b??(j.isError?v1(j.error):null)??(w.isError?v1(w.error):null);return{email:i,setEmail:r,password:d,setPassword:f,confirmPassword:h,setConfirmPassword:g,verificationCode:m,setVerificationCode:p,codeSent:y,isLoadingCode:j.isPending,isLoadingSubmit:w.isPending,error:L,handleRequestCode:E,handleSubmit:R}}const kB="_card_4lgff_1",BB="_logo_4lgff_10",OB="_title_4lgff_20",LB="_typeSelect_4lgff_29",MB="_back_4lgff_39",DB="_legalInfo_4lgff_55",zB="_legalIntro_4lgff_61",UB="_docsBlock_4lgff_67",HB="_emailBlock_4lgff_68",qB="_docsLabel_4lgff_74",PB="_docsList_4lgff_80",QB="_emailLink_4lgff_94",FB="_legalDone_4lgff_105",YB="_legalDoneTitle_4lgff_113",GB="_legalDoneText_4lgff_119",IB="_twoCol_4lgff_125",KB="_leftCol_4lgff_132",XB="_rightCol_4lgff_138",VB="_codeHint_4lgff_149",ZB="_error_4lgff_156",WB="_submitWrapper_4lgff_163",JB="_legal_4lgff_55",ct={card:kB,logo:BB,title:OB,typeSelect:LB,back:MB,legalInfo:DB,legalIntro:zB,docsBlock:UB,emailBlock:HB,docsLabel:qB,docsList:PB,emailLink:QB,legalDone:FB,legalDoneTitle:YB,legalDoneText:GB,twoCol:IB,leftCol:KB,rightCol:XB,codeHint:VB,error:ZB,submitWrapper:WB,legal:JB};function $B(){const{email:a,setEmail:l,password:i,setPassword:r,confirmPassword:d,setConfirmPassword:f,verificationCode:h,setVerificationCode:g,codeSent:m,isLoadingCode:p,isLoadingSubmit:y,error:_,handleRequestCode:b,handleSubmit:S}=RB();return o.jsxs("form",{onSubmit:S,children:[o.jsxs("div",{className:ct.twoCol,children:[o.jsxs("div",{className:ct.leftCol,children:[o.jsx(ke,{label:"Введите адрес электронной почты",type:"email",value:a,onChange:l,placeholder:"example@mail.ru",required:!0}),o.jsx(ke,{label:"Придумайте пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0}),o.jsx(ke,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••",required:!0})]}),o.jsxs("div",{className:ct.rightCol,children:[o.jsx(Ln,{variant:"ghost",type:"button",onClick:b,disabled:m||p,children:p?"Отправка...":m?"Код отправлен":"Получить проверочный код"}),o.jsx("span",{className:ct.codeHint,children:"Код не пришёл"}),o.jsx(ke,{label:"Ввести код",type:"text",value:h,onChange:g,placeholder:"000 000",required:!0})]})]}),_&&o.jsx("p",{className:ct.error,children:_}),o.jsx("div",{className:ct.submitWrapper,children:o.jsx(Zn,{label:y?"Создание...":"Создать",disabled:y})}),o.jsxs("p",{className:ct.legal,children:["Нажимая «Создать», вы принимаете",o.jsx("br",{}),o.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",o.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]})}const y1="support@elcsa.ru",e9=["Устав организации в действующей редакции","Решение (протокол) о создании организации и о назначении руководителя","Выписка по расчётному счёту из банка за последние шесть месяцев","Выписка из Единого государственного реестра юридических лиц (ЕГРЮЛ)","Идентификатор электронного документооборота (ЭДО)","Реквизиты расчётного счёта: номер Р/С, БИК и наименование банка"];function t9(){const[a,l]=A.useState(!1);return a?o.jsxs("div",{className:ct.legalDone,children:[o.jsx("h2",{className:ct.legalDoneTitle,children:"Спасибо!"}),o.jsx("p",{className:ct.legalDoneText,children:"Мы получили уведомление об отправке документов. После проверки мы свяжемся с вами по указанному адресу электронной почты."})]}):o.jsxs("div",{className:ct.legalInfo,children:[o.jsx("p",{className:ct.legalIntro,children:"Для регистрации юридического лица отправьте перечисленные ниже документы на нашу электронную почту. После проверки мы свяжемся с вами для завершения регистрации."}),o.jsxs("div",{className:ct.docsBlock,children:[o.jsx("span",{className:ct.docsLabel,children:"Необходимые документы"}),o.jsx("ul",{className:ct.docsList,children:e9.map(i=>o.jsx("li",{children:i},i))})]}),o.jsxs("div",{className:ct.emailBlock,children:[o.jsx("span",{className:ct.docsLabel,children:"Адрес для отправки документов"}),o.jsx("a",{href:`mailto:${y1}`,className:ct.emailLink,children:y1})]}),o.jsx("div",{className:ct.submitWrapper,children:o.jsx(Zn,{label:"Документы отправлены",type:"button",onClick:()=>l(!0)})})]})}function n9(){const[a,l]=A.useState(null);return o.jsxs("div",{className:ct.card,children:[o.jsx("div",{className:ct.logo,children:o.jsx("img",{src:xa,alt:"ЭКСА"})}),o.jsx("h1",{className:ct.title,children:"Создать кошелёк ЭКСА"}),a===null?o.jsxs("div",{className:ct.typeSelect,children:[o.jsx(Ln,{variant:"primary",onClick:()=>l("individual"),children:"Зарегистрироваться как физическое лицо"}),o.jsx(Ln,{variant:"outline",onClick:()=>l("legal"),children:"Зарегистрироваться как юридическое лицо"})]}):o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:ct.back,onClick:()=>l(null),children:"← Назад к выбору"}),a==="individual"?o.jsx($B,{}):o.jsx(t9,{})]})]})}const a9="_page_a6ygb_1",s9={page:a9};function l9(){return o.jsx("div",{className:s9.page,children:o.jsx(n9,{})})}const i9="_page_1bkwz_1",o9="_card_1bkwz_9",r9="_logo_1bkwz_18",c9="_title_1bkwz_28",u9="_typeSwitch_1bkwz_38",d9="_typeOption_1bkwz_49",f9="_typeOptionActive_1bkwz_66",h9="_twoCol_1bkwz_71",m9="_leftCol_1bkwz_78",p9="_rightCol_1bkwz_84",g9="_codeHint_1bkwz_90",v9="_backButton_1bkwz_98",y9="_documentsSubtitle_1bkwz_131",_9="_documentsList_1bkwz_137",b9="_documentItem_1bkwz_146",x9="_documentName_1bkwz_157",A9="_attachButton_1bkwz_163",S9="_fileInput_1bkwz_181",j9="_submitWrapper_1bkwz_192",w9="_legal_1bkwz_196",et={page:i9,card:o9,logo:r9,title:c9,typeSwitch:u9,typeOption:d9,typeOptionActive:f9,twoCol:h9,leftCol:m9,rightCol:p9,codeHint:g9,backButton:v9,documentsSubtitle:y9,documentsList:_9,documentItem:b9,documentName:x9,attachButton:A9,fileInput:S9,submitWrapper:j9,legal:w9},E9=["Свидетельство о государственной регистрации (ОГРН)","Свидетельство о постановке на учёт в налоговом органе (ИНН)","Устав организации (действующая редакция)","Решение/протокол о назначении руководителя","Документ, подтверждающий полномочия лица, открывающего счёт","Карточка с образцами подписей и оттиска печати"];function N9(){const[a,l]=A.useState(""),[i,r]=A.useState(""),[d,f]=A.useState(""),[h,g]=A.useState(""),[m,p]=A.useState("individual"),[y,_]=A.useState("info"),b=m==="legal",S=w=>{w.preventDefault(),_("documents")},j=w=>{w.preventDefault()};return o.jsx("div",{className:et.page,children:y==="info"?o.jsxs("form",{className:et.card,onSubmit:S,children:[o.jsx("div",{className:et.logo,children:o.jsx("img",{src:xa,alt:"ЭКСА"})}),o.jsx("h1",{className:et.title,children:"Создать кошелёк ЭКСА"}),o.jsxs("div",{className:et.typeSwitch,role:"tablist","aria-label":"Тип регистрации",children:[o.jsx("button",{type:"button",role:"tab","aria-selected":!b,className:`${et.typeOption} ${b?"":et.typeOptionActive}`,onClick:()=>p("individual"),children:"Физическое лицо"}),o.jsx("button",{type:"button",role:"tab","aria-selected":b,className:`${et.typeOption} ${b?et.typeOptionActive:""}`,onClick:()=>p("legal"),children:"Юридическое лицо"})]}),o.jsxs("div",{className:et.twoCol,children:[o.jsxs("div",{className:et.leftCol,children:[o.jsx(ke,{label:b?"Введите корпоративный email":"Введите адрес электронной почты",type:"email",value:a,onChange:l,placeholder:b?"name@company.ru":"example@mail.ru"}),o.jsx(ke,{label:"Придумайте пароль",type:"password",value:i,onChange:r,placeholder:"••••••••"}),o.jsx(ke,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••"})]}),o.jsxs("div",{className:et.rightCol,children:[o.jsx(Ln,{variant:"ghost",type:"button",children:"Получить проверочный код"}),o.jsx("span",{className:et.codeHint,children:"Код не пришёл"}),o.jsx(ke,{label:"Ввести код",type:"text",value:h,onChange:g,placeholder:"000 000"})]})]}),o.jsx("div",{className:et.submitWrapper,children:o.jsx(Zn,{label:"Создать"})}),o.jsxs("p",{className:et.legal,children:["Нажимая «Создать», вы принимаете",o.jsx("br",{}),o.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",o.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]}):o.jsxs("form",{className:et.card,onSubmit:j,children:[o.jsx("div",{className:et.logo,children:o.jsx("img",{src:xa,alt:"ЭКСА"})}),o.jsx("button",{type:"button",className:et.backButton,onClick:()=>_("info"),children:"← Назад к данным"}),o.jsx("h1",{className:et.title,children:"Прикрепите документы"}),o.jsx("p",{className:et.documentsSubtitle,children:"Для открытия счёта юридическому лицу прикрепите сканы или фотографии следующих документов:"}),o.jsx("ul",{className:et.documentsList,children:E9.map(w=>o.jsxs("li",{className:et.documentItem,children:[o.jsx("span",{className:et.documentName,children:w}),o.jsxs("label",{className:et.attachButton,children:["Прикрепить",o.jsx("input",{type:"file",className:et.fileInput,multiple:!0})]})]},w))}),o.jsx("div",{className:et.submitWrapper,children:o.jsx(Zn,{label:"Создать аккаунт"})})]})})}function C9(){const[a,l]=A.useState(""),[i,r]=A.useState(""),[d,f]=A.useState(""),[h,g]=A.useState(tr[0].days),[m,p]=A.useState(null),{mutate:y,isPending:_}=XN(),{data:b}=Bv(),[S,j]=A.useState(!1);A.useEffect(()=>{if(S||!b)return;const U=$N(b.items);if(!U)return;const I=JN(U.comment);I.name&&r(I.name),I.contact&&f(I.contact),j(!0)},[S,b]);const w=Number(a.replace(/\D/g,""))||0,E=w>0&&w<jh,{rate:R,commission:L,total:B}=ZN(w,h),q=U=>{const I=U.replace(/\D/g,"");l(I?qs(Number(I)):"")},K=w>0&&!E&&!_;return{amount:a,name:i,contact:d,days:h,setName:r,setContact:f,setDays:g,onAmountChange:q,numAmount:w,belowMin:E,rate:R,commission:L,total:B,onSubmit:U=>{if(U.preventDefault(),!K)return;const I=WN({name:i,contact:d,days:h,amount:w,commission:L,total:B});y({rub_amount:w,comment:I},{onSuccess:()=>{p("success"),l(""),r(""),f(""),g(tr[0].days)},onError:()=>p("error")})},isPending:_,canSubmit:K,notice:m,dismissNotice:()=>p(null)}}const T9="_wrap_12wuz_1",R9="_header_12wuz_12",k9="_title_12wuz_16",B9="_subtitle_12wuz_21",O9="_body_12wuz_29",L9="_formCol_12wuz_35",M9="_hint_12wuz_41",D9="_infoCol_12wuz_48",z9="_infoTitle_12wuz_53",U9="_infoRow_12wuz_60",H9="_infoLabel_12wuz_76",q9="_infoValue_12wuz_81",P9="_note_12wuz_87",Q9="_submitBtn_12wuz_94",tt={wrap:T9,header:R9,title:k9,subtitle:B9,body:O9,formCol:L9,hint:M9,infoCol:D9,infoTitle:z9,infoRow:U9,infoLabel:H9,infoValue:q9,note:P9,submitBtn:Q9};function F9(){const{amount:a,name:l,contact:i,days:r,setName:d,setContact:f,setDays:h,onAmountChange:g,numAmount:m,belowMin:p,rate:y,commission:_,total:b,onSubmit:S,isPending:j,canSubmit:w,notice:E,dismissNotice:R}=C9();return o.jsxs("form",{className:tt.wrap,onSubmit:S,children:[o.jsxs("div",{className:tt.header,children:[o.jsx("h1",{className:tt.title,children:"Оставить заявку"}),o.jsx("p",{className:tt.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),o.jsxs("div",{className:tt.body,children:[o.jsxs("div",{className:tt.formCol,children:[o.jsx(ke,{label:"Объём заявки, ₽",type:"text",value:a,onChange:g,placeholder:"от 500 000"}),p&&o.jsxs("p",{className:tt.hint,children:["Минимальный объём заявки — ",qs(jh)," ₽"]}),o.jsx(Ph,{id:"term",label:"Срок ожидания операции",value:r,onChange:h,options:tr.map(L=>({value:L.days,label:`${wh(L.days)} — комиссия ${(L.rate*100).toFixed(3)} %`}))}),o.jsx(ke,{label:"Как к вам обращаться",type:"text",value:l,onChange:d,placeholder:"Имя"}),o.jsx(ke,{label:"Email или телефон для связи",type:"text",value:i,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),o.jsxs("div",{className:tt.infoCol,children:[o.jsx("div",{className:tt.infoTitle,children:"УСЛОВИЯ"}),o.jsxs("div",{className:tt.infoRow,children:[o.jsx("span",{className:tt.infoLabel,children:"Минимальный объём"}),o.jsxs("span",{className:tt.infoValue,children:[qs(jh)," ₽"]})]}),o.jsxs("div",{className:tt.infoRow,children:[o.jsx("span",{className:tt.infoLabel,children:"Срок ожидания"}),o.jsx("span",{className:tt.infoValue,children:wh(r)})]}),o.jsxs("div",{className:tt.infoRow,children:[o.jsx("span",{className:tt.infoLabel,children:"Ставка комиссии"}),o.jsxs("span",{className:tt.infoValue,children:[(y*100).toFixed(3)," %"]})]}),o.jsxs("div",{className:tt.infoRow,children:[o.jsx("span",{className:tt.infoLabel,children:"Сумма комиссии"}),o.jsx("span",{className:tt.infoValue,children:m>0?`≈ ${qs(_)} ₽`:"—"})]}),o.jsxs("div",{className:tt.infoRow,"data-accent":!0,children:[o.jsx("span",{className:tt.infoLabel,children:"Итого к оплате"}),o.jsx("span",{className:tt.infoValue,children:m>0?`≈ ${qs(b)} ₽`:"—"})]}),o.jsx("p",{className:tt.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),o.jsx("button",{type:"submit",className:tt.submitBtn,disabled:!w,children:j?"Отправляем...":"Оставить заявку"}),E&&o.jsx(ts,{status:E,message:E==="success"?"Заявка отправлена":"Не удалось отправить заявку",onClose:R,duration:5e3})]})}const Y9="_notice_a6bcd_1",G9="_title_a6bcd_11",I9="_text_a6bcd_16",nh={notice:Y9,title:G9,text:I9};function K9(){const{data:a,isLoading:l}=_n();return l?o.jsx(Dn,{fullscreen:!0,size:"lg",label:"Загрузка данных аккаунта"}):!!a&&a.account_type!=="individual"?o.jsx(F9,{}):o.jsxs("div",{className:nh.notice,children:[o.jsx("h1",{className:nh.title,children:"Покупка временно недоступна"}),o.jsx("p",{className:nh.text,children:"В настоящий момент покупка валюты невозможна. Мы работаем над восстановлением сервиса — попробуйте, пожалуйста, позже."})]})}const X9="_page_1mk6w_1",V9="_main_1mk6w_8",Z9="_glow_1mk6w_17",ah={page:X9,main:V9,glow:Z9};function W9(){const{data:a,isLoading:l}=zv(),i=a?a.split(" "):[];return o.jsxs("div",{className:ah.page,children:[o.jsx(Wh,{}),o.jsxs("main",{className:ah.main,children:[o.jsx("div",{className:ah.glow}),!l&&o.jsx(my,{words:i})]})]})}const J9="https://app.kyc.elcsa.ru";function $9(){return vy(!0)}async function vy(a){const l=await an(),i=await fetch(`${J9}/kyc/create`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":l},body:JSON.stringify({})});if(i.status===401&&a)try{return await ca(),vy(!1)}catch{throw Nt.clear(),new Error("Unauthorized")}const r=await i.json();if(!i.ok)throw r;return r}function eO(){const a=vt({mutationFn:$9});return{trigger:a.mutate,data:a.data,isLoading:a.isPending,isError:a.isError}}const tO="_backdrop_1do7s_1",nO="_modal_1do7s_12",aO="_closeBtn_1do7s_22",sO="_body_1do7s_40",lO="_qrBlock_1do7s_47",iO="_qrImage_1do7s_55",oO="_linkBtn_1do7s_63",pl={backdrop:tO,modal:nO,closeBtn:aO,body:sO,qrBlock:lO,qrImage:iO,linkBtn:oO};function rO({data:a,onClose:l}){return o.jsx("div",{className:pl.backdrop,onClick:l,children:o.jsxs("div",{className:pl.modal,onClick:i=>i.stopPropagation(),children:[o.jsx("button",{className:pl.closeBtn,onClick:l,type:"button",children:"×"}),o.jsx("div",{className:pl.body,children:o.jsxs("div",{className:pl.qrBlock,children:[o.jsx("img",{className:pl.qrImage,src:a.qr_code,alt:"QR-код для верификации"}),o.jsx("a",{className:pl.linkBtn,href:a.link,target:"_blank",rel:"noopener noreferrer",children:"Перейти к верификации"})]})})]})})}const cO="_card_omb8e_1",uO="_logo_omb8e_13",dO="_iconWrapper_omb8e_21",fO="_description_omb8e_34",hO="_buttonWrapper_omb8e_42",mO="_error_omb8e_47",xi={card:cO,logo:uO,iconWrapper:dO,description:fO,buttonWrapper:hO,error:mO};function pO(){const{trigger:a,data:l,isLoading:i,isError:r}=eO(),d=yn(),f=Wt(),{data:h}=_n({refetchInterval:l?5e3:!1});A.useEffect(()=>{h!=null&&h.kyc_verified&&d(ne.SEED_PHRASE,{replace:!0})},[h==null?void 0:h.kyc_verified,d]);const g=()=>{f.invalidateQueries({queryKey:["me"]})};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:xi.card,children:[o.jsx("div",{className:xi.logo,children:o.jsx("img",{src:xa,alt:"ЭКСА"})}),o.jsx("div",{className:xi.iconWrapper,children:o.jsxs("svg",{width:"38",height:"38",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M12 2L3 6v6c0 5.25 3.75 10.15 9 11.35C17.25 22.15 21 17.25 21 12V6l-9-4z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M9 12l2 2 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),o.jsx("p",{className:xi.description,children:"Для продолжения работы необходимо пройти KYC верификацию"}),o.jsx("div",{className:xi.buttonWrapper,children:o.jsx(Zn,{label:i?"Загрузка...":"Подтвердить личность",type:"button",onClick:()=>a(),disabled:i})}),r&&o.jsx("p",{className:xi.error,children:"Произошла ошибка. Попробуй перезагрузить страницу и попробовать снова."})]}),l&&o.jsx(rO,{data:l,onClose:g})]})}const gO="_page_6lnfw_1",vO={page:gO};function yO(){const{data:a,isLoading:l}=_n();return l?null:a!=null&&a.kyc_verified?o.jsx(Hi,{to:ne.PROFILE,replace:!0}):o.jsx("div",{className:vO.page,children:o.jsx(pO,{})})}const _O="_card_mzeuq_1",bO="_logo_mzeuq_10",xO="_title_mzeuq_20",AO="_fields_mzeuq_29",SO="_emailRow_mzeuq_35",jO="_error_mzeuq_41",wO="_submitWrapper_mzeuq_48",EO="_footer_mzeuq_52",NO="_back_mzeuq_58",Ka={card:_O,logo:bO,title:xO,fields:AO,emailRow:SO,error:jO,submitWrapper:wO,footer:EO,back:NO};function CO(){const[a,l]=A.useState(""),[i,r]=A.useState(!1),[d,f]=A.useState(!1),[h,g]=A.useState(""),[m,p]=A.useState(""),[y,_]=A.useState(""),[b,S]=A.useState(""),[j,w]=A.useState(!1),[E,R]=A.useState(null),L=yn();async function B(){S(""),f(!0);try{await MN({email:a}),r(!0),R({status:"success",message:`Код отправлен на ${a}`})}catch{R({status:"error",message:"Не удалось отправить письмо. Проверьте email и попробуйте снова."})}finally{f(!1)}}async function q(K){if(K.preventDefault(),S(""),m!==y){S("Пароли не совпадают");return}w(!0);try{await zN({email:a,code:h,new_password:m,confirm_password:y}),L(ne.LOGIN)}catch{S("Не удалось изменить пароль. Проверьте код и попробуйте снова.")}finally{w(!1)}}return o.jsxs(o.Fragment,{children:[o.jsxs("form",{className:Ka.card,onSubmit:q,children:[o.jsx("div",{className:Ka.logo,children:o.jsx("img",{src:xa,alt:"ЭКСА"})}),o.jsx("h1",{className:Ka.title,children:"Восстановление пароля"}),o.jsxs("div",{className:Ka.fields,children:[o.jsxs("div",{className:Ka.emailRow,children:[o.jsx(ke,{label:"E-Mail",type:"email",value:a,onChange:l,placeholder:"example@mail.com",required:!0}),o.jsx(Zn,{label:d?"Отправка...":"Получить код",disabled:d||!a,type:"button",onClick:B})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{label:"Код с почты",type:"text",value:h,onChange:g,placeholder:"000 000",required:!0}),o.jsx(ke,{label:"Новый пароль",type:"password",value:m,onChange:p,placeholder:"••••••••",required:!0}),o.jsx(ke,{label:"Повторить пароль",type:"password",value:y,onChange:_,placeholder:"••••••••",required:!0})]})]}),b&&o.jsx("p",{className:Ka.error,children:b}),i&&o.jsx("div",{className:Ka.submitWrapper,children:o.jsx(Zn,{label:j?"Сохранение...":"Изменить пароль",disabled:j})}),o.jsx("div",{className:Ka.footer,children:o.jsx("a",{className:Ka.back,onClick:()=>L(ne.LOGIN),children:"Вернуться ко входу"})})]}),E&&o.jsx(ts,{status:E.status,message:E.message,onClose:()=>R(null),duration:5e3})]})}const TO="_page_6lnfw_1",RO={page:TO};function kO(){return o.jsx("div",{className:RO.page,children:o.jsx(CO,{})})}const BO="_main_kb81i_4",OO="_container_kb81i_12",LO="_title_kb81i_18",MO="_subtitle_kb81i_26",DO="_section_kb81i_34",zO="_sectionTitle_kb81i_38",UO="_subheading_kb81i_47",HO="_text_kb81i_55",qO="_example_kb81i_62",PO="_warning_kb81i_72",QO="_emphasis_kb81i_83",FO="_list_kb81i_87",YO="_definitions_kb81i_102",GO="_definition_kb81i_102",IO="_goals_kb81i_117",KO="_goal_kb81i_117",XO="_infoBox_kb81i_2",VO="_linkBlock_kb81i_166",ZO="_button_kb81i_174",qt={main:BO,container:OO,title:LO,subtitle:MO,section:DO,sectionTitle:zO,subheading:UO,text:HO,example:qO,warning:PO,emphasis:QO,list:FO,definitions:YO,definition:GO,goals:IO,goal:KO,infoBox:XO,linkBlock:VO,button:ZO};function _1(a){return typeof a=="string"?a:o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a.strong}),a.text?` ${a.text}`:null]})}function WO({block:a}){switch(a.kind){case"text":return o.jsx("p",{className:a.variant?`${qt.text} ${qt[a.variant]}`:qt.text,children:a.text});case"subheading":return o.jsx("h4",{className:qt.subheading,children:a.text});case"list":return o.jsx("ul",{className:qt.list,children:a.items.map((l,i)=>o.jsx("li",{children:_1(l)},i))});case"definitions":return o.jsx("div",{className:qt.definitions,children:a.items.map((l,i)=>o.jsxs("div",{className:qt.definition,children:[o.jsx("strong",{children:l.term})," ",l.text]},i))});case"goals":return o.jsx("div",{className:qt.goals,children:a.items.map((l,i)=>o.jsxs("div",{className:qt.goal,children:[o.jsx("strong",{children:l.title}),o.jsx("ul",{children:l.items.map((r,d)=>o.jsx("li",{children:r},d))})]},i))});case"infoBox":return o.jsx("div",{className:qt.infoBox,children:a.lines.map((l,i)=>o.jsx("p",{children:_1(l)},i))});case"link":return o.jsx("div",{className:qt.linkBlock,children:o.jsx("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:qt.button,children:a.text})})}}function pr({doc:a}){return o.jsx("main",{className:qt.main,children:o.jsxs("div",{className:qt.container,children:[o.jsx("h1",{className:qt.title,children:a.title}),a.subtitle&&o.jsx("h2",{className:qt.subtitle,children:a.subtitle}),a.sections.map((l,i)=>o.jsxs("section",{className:qt.section,children:[l.title&&o.jsx("h3",{className:qt.sectionTitle,children:l.title}),l.blocks.map((r,d)=>o.jsx(WO,{block:r},d))]},i))]})})}const JO={title:"ПУБЛИЧНЫЙ ДОГОВОР ОФЕРТЫ",subtitle:"ООО БИТФОРС",sections:[{title:"Агентский договор",blocks:[{kind:"text",text:"Настоящая оферта на заключение агентского договора (далее – Оферта, Договор) является публичным предложением Общества с ограниченной ответственностью «БИТФОРС», заключить договор на условиях и в порядке, определенных настоящей Офертой."},{kind:"text",text:"Акцепт оферты производится в соответствии с пунктом 2 статьи 437 Гражданского кодекса Российской Федерации и равносилен заключению агентского договора в письменной форме."}]},{title:"Основные понятия и определения действующего договора",blocks:[{kind:"definitions",items:[{term:"Агент",text:"– юридическое лицо или индивидуальный предприниматель, зарегистрированный на территории Российской Федерации, в установленном действующим законодательством порядке."},{term:"Принципал",text:"– сторона агентского договора, по поручению которой агент осуществляет юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала."},{term:"Агентский договор",text:"– соглашение, по которому агент обязуется за вознаграждение совершать по поручению принципала юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала в соответствии с п. 1 ст. 1005 Гражданского Кодекса Российской Федерации."},{term:"Личный кабинета Агента",text:"– ресурс, размещенный на сайте Принципала, предназначенный для взаимодействия Агента и Принципала."},{term:"Отчетный период",text:"– период для взаиморасчетов с Агентом, равный одному календарному кварталу с даты активации любой из услуг, предоставляемой Принципалу."},{term:"Отчет о сумме начислений (Отчет)",text:"– отчет, формируемый в Личном кабинете Агента на основании данных систем учета Принципала."},{term:"Оферта (Договор)",text:"– настоящий документ, который отражает предложение и намерение ООО «БИТФОРС» считать заключенным договор с лицом, которым будет принято предложение на условиях, изложенных ниже."}]}]},{title:"1. Акцепт оферты и заключение агентского договора",blocks:[{kind:"text",text:"Акцепт настоящей Оферты и заключение Агентского договора осуществляется Принципалом в процессе регистрации в Личном кабинете Принципала (на сайте Агента), при прочтении текста настоящей Оферты, путем проставления специальной отметки (галочки) напротив фразы «Я ознакомился с Офертой и принимаю ее условия» и нажатия кнопки «Подписать»."},{kind:"text",text:"Особый порядок принятия условий Оферты путем проставления специальной отметки (галочки) определяется интерфейсом Личного кабинета Принципала. Принципал не может зарегистрироваться в Личном кабинете и получить к нему доступ без подтверждения принятия условий Оферты."},{kind:"text",text:"Принимая Оферту, Принципал подтверждает, что прочел и полностью согласен с документами, размещенными на сайте в разделе, предназначенном для Принципала, которые являются неотъемлемой частью настоящей Оферты (Договора) и обязательны для исполнения Сторонами."}]},{title:"2. Общие положения",blocks:[{kind:"text",text:"Публикуемые на сайте Агента документы (формы, требования, правила и т.п.), устанавливающие порядок и условия выполнения действий, предусмотренных настоящим Договором, являются неотъемлемой частью настоящего Договора и обязательны для исполнения Сторонами. Принципал обязан использовать формы документов, утвержденных Агентом, и не вправе вносить в них какие-либо изменения или дополнения."},{kind:"text",text:"Агент обязуется уведомлять Принципала обо всех изменениях в документах, связанных с исполнением настоящего Договора, путем направления электронных сообщений (через Личный кабинет или на электронную почту Принципала) или размещением уведомлений об изменениях на сайте Агентов в разделе, предназначенном для размещения объявлений."}]},{title:"3. Предмет договора",blocks:[{kind:"text",text:"По настоящему Договору Принципал поручает, а Агент принимает на себя обязательство совершать от имени и за счет Принципала указанные действия, а Принципал обязуется выплатить Агенту вознаграждение за совершенные действия."},{kind:"text",text:"По настоящему Договору Агент совершает следующие действия:"},{kind:"list",items:["Консультирование Принципала об услугах Агента, включая, помимо прочего, порядок активации и оказания услуг, работу в Личном кабинете Принципала и иные дополнительные услуги, оказываемые Агентом;","Совершение сделок и иных юридических действий Агентом от своего имени, но за счёт Принципала."]},{kind:"text",text:"Настоящий Договор действует на территории Российской Федерации и иного иностранного государства."},{kind:"text",text:"Права и обязанности по сделкам, совершенным Агентом во исполнение настоящего Договора, возникают непосредственно у Принципала."}]},{title:"4. Права и обязанности сторон",blocks:[{kind:"text",text:"Агент обязуется совершать действия, составляющие предмет настоящего Договора, в соответствии с законными интересами Принципала, сообщать Принципалу по его требованию все сведения о ходе исполнения настоящего Договора, передавать Принципалу в течение 7 рабочих дней имущество, полученное по сделкам."},{kind:"text",text:"Агент несет ответственность за сохранность документов и персональных данных, переданных ему Принципалом для исполнения настоящего Договора."},{kind:"text",text:"Принципал обязан без промедления принять отчет Агента, все предоставленные им документы, обеспечить Агента документами и материалами, необходимыми для выполнения настоящего Договора, возместить Агенту понесенные расходы и выплатить обусловленное Договором агентское вознаграждение."}]},{title:"5. Агентское вознаграждение и порядок оплаты",blocks:[{kind:"text",text:"Сумма вознаграждения Агента по настоящему Договору составляет:"},{kind:"list",items:["8% от 5 000 до 30 000 рублей","6% от 30 000 до 100 000 рублей","4% от 100 000 до 600 000 рублей"]},{kind:"text",text:"Вознаграждение выплачивается Агенту с момента подписания настоящего Договора об исполнении поручения Агентом от своего имени, но за счет Принципала."},{kind:"text",text:"Принципал возмещает следующие расходы Агента в сумме не более 30 000 рублей на оплату банковских услуг и иных комиссий."}]},{title:"6. Ответственность сторон",blocks:[{kind:"text",text:"В случае нарушения Агентом сроков, установленных Договором для передачи Принципалу полученного имущества, Принципал вправе предъявить требование об уплате неустойки в размере 0,1% от непереданной суммы за каждый день просрочки."},{kind:"text",text:"В случае нарушения Принципалом сроков уплаты вознаграждения или возмещения расходов, Агент вправе предъявить требование об уплате неустойки в размере 0,1% от не уплаченной в срок суммы за каждый день просрочки."}]},{title:"7. Форс-мажор",blocks:[{kind:"text",text:"Стороны освобождаются от ответственности за частичное или полное неисполнение обязательств по настоящему Договору, если это неисполнение явилось следствием возникших после заключения настоящего Договора обстоятельств непреодолимой силы."},{kind:"text",text:"При наступлении форс-мажорных обстоятельств каждая Сторона должна без промедления известить о них в письменном виде другую Сторону с указанием характера обстоятельств и их влияния на исполнение обязательств."}]},{title:"8. Конфиденциальность",blocks:[{kind:"text",text:"Стороны принимают все необходимые меры для того, чтобы их сотрудники, агенты, правопреемники без предварительного согласия другой Стороны не информировали третьих лиц о конфиденциальной информации и персональных данных Сторон настоящего Договора."}]},{title:"9. Изменение и прекращение договора",blocks:[{kind:"text",text:"Настоящий договор вступает в силу с момента его подписания и действует до момента исполнения сторонами своих обязательств по настоящему договору."},{kind:"text",text:"Настоящий Договор может быть изменен или прекращен по письменному соглашению Сторон, а также в других случаях, предусмотренных законодательством Российской Федерации."},{kind:"text",text:"Принципал вправе в любое время отказаться от исполнения настоящего Договора путем направления письменного уведомления Агенту за 3 рабочих дня."}]},{title:"10. Заключительные положения",blocks:[{kind:"text",text:"Ни одна из сторон не вправе передавать свои права и обязанности по настоящему договору третьим лицам без согласия другой стороны."},{kind:"text",text:"Сообщения Стороны могут направлять по факсу, электронной почте или другим способом связи при условии, что он позволяет достоверно установить, от кого исходило сообщение и кому оно адресовано."},{kind:"text",text:"Споры, вытекающие из настоящего Договора, разрешаются в досудебном порядке. При неурегулировании возникших разногласий спор разрешается в Арбитражном суде г. Санкт–Петербурга и Ленинградской области с обязательным соблюдением претензионного порядка."}]},{title:"Реквизиты сторон",blocks:[{kind:"infoBox",lines:["Общество с ограниченной ответственностью «БИТФОРС»","196246, г. Санкт-Петербург, Московский р-н, Московское шоссе, д.25к1 литера в, помещ. 3-Н","ИНН / КПП: 9810001062 / 781001001","ОГРН: 1257800060990","ОКПО / ОКАТО / ОКТМО: 68342261 / 40284000000 / 40377000000","Руководитель: Кленин Михаил Васильевич","Электронная почта: company@bitforcefoundation.ru",'Наименование банка: ФИЛИАЛ "САНКТ-ПЕТЕРБУРГСКИЙ" АО "АЛЬФА-БАНК"',"Корреспондентский счет: 30101810600000000786","БИК: 044030786","Расчетный счет: 40702810632250004861"]}]}]};function $O(){return o.jsxs(o.Fragment,{children:[o.jsx(Ol,{}),o.jsx(pr,{doc:JO}),o.jsx(Fs,{})]})}const eL={title:"ПОЛИТИКА ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ",subtitle:"ООО «БИТФОРС»",sections:[{title:"1. Общие положения",blocks:[{kind:"text",text:"Настоящая Политика обработки персональных данных разработана в соответствии с Федеральным законом от 27.07.2006 № 152-ФЗ «О персональных данных» и определяет порядок обработки персональных данных и меры по обеспечению безопасности персональных данных, предпринимаемые ООО «БИТФОРС»."},{kind:"text",text:"Оператор ставит своей важнейшей целью и условием осуществления своей деятельности соблюдение прав и свобод человека и гражданина при обработке его персональных данных, в том числе защиты права на неприкосновенность частной жизни, личную и семейную тайну."},{kind:"text",text:"Настоящая Политика действует в отношении всех персональных данных, которые обрабатываются Оператором с использованием средств автоматизации и без использования таких средств."},{kind:"subheading",text:"1.4. Основные понятия"},{kind:"definitions",items:[{term:"Автоматизированная обработка персональных данных",text:"— обработка персональных данных с помощью средств вычислительной техники."},{term:"Обработка персональных данных",text:"— любое действие или совокупность действий, совершаемых с использованием средств автоматизации или без использования таких средств с персональными данными, включая сбор, запись, систематизацию, накопление, хранение, уточнение, извлечение, использование, передачу, обезличивание, блокирование, удаление, уничтожение."},{term:"Оператор",text:"— юридическое или физическое лицо, организующие и осуществляющие обработку персональных данных."},{term:"Персональные данные",text:"— любая информация, относящаяся к прямо или косвенно определенному или определяемому физическому лицу."},{term:"Пользователь",text:"— любой посетитель веб-сайта https://bitforce-foundation.ru."}]}]},{title:"2. Сведения об операторе",blocks:[{kind:"list",items:["Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»","Сокращенное наименование: ООО «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н","Электронная почта: company@bitforcefoundation.ru","Веб-сайт: https://bitforce-foundation.ru"]}]},{title:"3. Общие цели обработки персональных данных",blocks:[{kind:"subheading",text:"3.1.1. Основная деятельность:"},{kind:"list",items:["Предоставление услуг по конвертации иного имущества","Осуществление операций на криптовалютных рынках","Предоставление услуг в области блокчейн технологий","Обеспечение функционирования интернет-платформы и мобильных приложений"]},{kind:"subheading",text:"3.1.2. Обеспечение безопасности:"},{kind:"list",items:["Предотвращение мошенничества и отмывания денежных средств","Обеспечение безопасности платежных операций","Выполнение требований по противодействию легализации доходов","Идентификация и верификация клиентов"]},{kind:"subheading",text:"3.1.3. Соблюдение законодательства:"},{kind:"list",items:["Исполнение требований российского и международного законодательства","Взаимодействие с контролирующими и правоохранительными органами","Ведение обязательной отчетности и документооборота","Соблюдение налогового законодательства"]}]},{title:"4. Цели сбора персональных данных",blocks:[{kind:"goals",items:[{title:"Регистрация и идентификация пользователей:",items:["Создание учетной записи на веб-сайте","Верификация личности в соответствии с требованиями законодательства","Подтверждение права на осуществление операций"]},{title:"Обработка платежей и финансовых операций:",items:["Осуществление операций по конвертации криптовалют","Проведение расчетов и переводов денежных средств","Ведение учета и истории транзакций"]},{title:"Коммуникация с клиентами:",items:["Предоставление технической поддержки","Уведомления о состоянии операций и счетов","Информирование об изменениях в условиях предоставления услуг"]}]}]},{title:"5. Правовые основания обработки персональных данных",blocks:[{kind:"subheading",text:"5.1.1. Согласие субъекта персональных данных:"},{kind:"list",items:["Обработка персональных данных в маркетинговых целях","Использование файлов cookie и метрик","Персонализация сервисов и предложений"]},{kind:"subheading",text:"5.1.2. Необходимость исполнения договора:"},{kind:"list",items:["Регистрация и ведение учетных записей пользователей","Осуществление финансовых операций и переводов","Предоставление доступа к платформе и сервисам","Техническая поддержка и обслуживание клиентов"]},{kind:"subheading",text:"5.1.3. Соблюдение правовой обязанности:"},{kind:"list",items:["Выполнение требований валютного законодательства","Противодействие легализации доходов, полученных преступным путем","Соблюдение требований по налоговому учету и отчетности"]}]},{title:"6. Объем и категории обрабатываемых персональных данных",blocks:[{kind:"subheading",text:"6.1.1. Пользователи веб-сайта и мобильного приложения:"},{kind:"list",items:["Зарегистрированные пользователи","Посетители сайта без регистрации","Потенциальные клиенты","Бывшие клиенты"]},{kind:"subheading",text:"6.2.1. Идентификационные данные:"},{kind:"list",items:["Фамилия, имя, отчество","Дата рождения","Гражданство"]},{kind:"subheading",text:"6.2.3. Контактная информация:"},{kind:"list",items:["Номера телефонов (мобильный, домашний, рабочий)","Адреса электронной почты"]},{kind:"subheading",text:"6.2.4. Финансовая информация:"},{kind:"list",items:["Номера банковских счетов и карт","Реквизиты кошельков криптовалют","История операций и транзакций","Данные о доходах и источниках средств"]},{kind:"subheading",text:"6.2.5. Техническая информация:"},{kind:"list",items:["IP-адреса устройств","Данные о браузере и операционной системе","Файлы cookie и локальное хранилище","Логи действий на сайте"]}]},{title:"7. Порядок и условия обработки персональных данных",blocks:[{kind:"subheading",text:"7.1. Принципы обработки персональных данных:"},{kind:"list",items:["Обработка осуществляется на законной и справедливой основе","Обработка ограничивается достижением конкретных, заранее определенных целей","Содержание и объем данных соответствуют заявленным целям","Обрабатываемые персональные данные являются точными и актуальными"]},{kind:"subheading",text:"7.4. Сроки обработки персональных данных:"},{kind:"list",items:["Персональные данные обрабатываются в течение времени, необходимого для достижения целей","После достижения целей персональные данные подлежат уничтожению или обезличиванию","Сроки хранения определяются требованиями законодательства"]},{kind:"subheading",text:"7.5. Места обработки персональных данных:"},{kind:"list",items:["Основные серверы и хранилища данных расположены на территории Российской Федерации","Резервные копии могут храниться в дата-центрах на территории РФ"]}]},{title:"8. Актуализация, исправление, удаление и уничтожение персональных данных",blocks:[{kind:"subheading",text:"8.2.2. Процедура исправления:"},{kind:"list",items:["Рассмотрение запроса в течение 30 дней","Проверка обоснованности требования об исправлении","Внесение изменений во все информационные системы","Уведомление субъекта о проведенных исправлениях"]},{kind:"subheading",text:"8.3.2. Процедура удаления:"},{kind:"list",items:["Проверка наличия законных оснований для продолжения обработки","Удаление из всех информационных систем и баз данных","Удаление резервных копий (кроме архивных)","Уведомление субъекта о выполненном удалении"]}]},{title:"9. Ответы на запросы субъектов персональных данных",blocks:[{kind:"subheading",text:"9.1.1. Право на информацию:"},{kind:"list",items:["Подтверждение факта обработки персональных данных","Правовые основания и цели обработки","Применяемые способы обработки","Наименование и местонахождение оператора","Лица, имеющие доступ к персональным данным"]},{kind:"subheading",text:"9.2.2. Сроки рассмотрения:"},{kind:"list",items:["Срок рассмотрения запроса составляет 30 дней с момента получения","Срок может быть продлен на 30 дней при большом объеме информации","О продлении срока субъект уведомляется в течение 30 дней"]},{kind:"subheading",text:"9.4. Плата за предоставление информации:"},{kind:"list",items:["Первый запрос в течение года обрабатывается бесплатно","За повторные запросы может взиматься плата в размере расходов","Субъект уведомляется о размере платы до предоставления информации"]}]},{title:"10. Обеспечение безопасности персональных данных",blocks:[{kind:"subheading",text:"10.1. Правовые меры:"},{kind:"list",items:["Назначение ответственного за организацию обработки персональных данных","Принятие локальных актов по вопросам обработки персональных данных","Ознакомление работников с требованиями законодательства","Применение мер ответственности за нарушение требований"]},{kind:"subheading",text:"10.3. Технические меры:"},{kind:"list",items:["Предотвращение несанкционированного доступа к персональным данным","Своевременное обнаружение фактов несанкционированного доступа","Возможность незамедлительного восстановления персональных данных","Постоянный контроль за обеспечением уровня защищенности"]},{kind:"subheading",text:"10.4. Конкретные технические решения:"},{kind:"list",items:["Использование сертифицированных средств защиты информации","Шифрование персональных данных при передаче и хранении","Применение межсетевых экранов и систем обнаружения вторжений","Резервное копирование и обеспечение отказоустойчивости","Антивирусная защита и обновление программного обеспечения"]}]},{title:"12. Заключительные положения",blocks:[{kind:"subheading",text:"12.2. Жалобы и обращения:"},{kind:"list",items:["Субъекты персональных данных могут обратиться к Оператору по вопросам обработки","Жалобы рассматриваются в установленном законом порядке","При неурегулировании разногласий возможно обращение в Роскомнадзор или суд"]},{kind:"subheading",text:"12.4. Контактная информация для обращений:"},{kind:"infoBox",lines:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н","Электронная почта: company@bitforcefoundation.ru"]}]}]};function tL(){return o.jsxs(o.Fragment,{children:[o.jsx(Ol,{}),o.jsx(pr,{doc:eL}),o.jsx(Fs,{})]})}const nL={title:"ПОЛИТИКА ИСПОЛЬЗОВАНИЯ ФАЙЛОВ COOKIE",sections:[{title:"Общие положения и терминология",blocks:[{kind:"text",text:"Настоящая Политика использования файлов cookie устанавливает порядок обработки файлов cookie и содержащихся в них персональных данных ООО «БИТФОРС» при использовании пользователями интернет-ресурса https://bitforce-foundation.ru."},{kind:"text",text:"Файлы cookie — это текстовые файлы небольшого размера, которые устанавливаются на пользовательское устройство при посещении интернет-ресурса или совершении на нем определенных действий. Файлы cookie остаются сохраненными на устройстве даже после покидания ресурса, что позволяет «узнавать» пользователя при последующих посещениях."},{kind:"text",text:"К персональным данным относится не сам файл cookie, а его содержимое — уникальные идентификаторы, IP-адреса, информация о предпочтениях пользователя и другие данные, позволяющие прямо или косвенно идентифицировать физическое лицо."}]},{title:"Оператор персональных данных",blocks:[{kind:"text",text:"Оператором персональных данных, содержащихся в файлах cookie, является:"},{kind:"infoBox",lines:["ООО «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н"]},{kind:"text",text:"Оператор определяет цели обработки персональных данных, их состав, а также действия с персональными данными, включая случаи использования сторонних файлов cookie."}]},{title:"Категории файлов cookie и их назначение",blocks:[{kind:"subheading",text:"1. Строго необходимые (технические) файлы cookie"},{kind:"text",text:"Данные файлы обеспечивают работу интернет-ресурса и предоставление необходимого уровня сервиса: авторизацию, навигацию, отображение контента в соответствии с параметрами устройства, обеспечение безопасности."},{kind:"text",text:"Обработка таких файлов cookie осуществляется на основании п. 5 ч. 1 ст. 6 ФЗ № 152 (заключение и исполнение договора). Согласие на использование строго необходимых файлов cookie не требуется."},{kind:"text",variant:"example",text:"Примеры: файлы сессий (PHPSESSID), настройки безопасности, файлы аутентификации."},{kind:"subheading",text:"2. Функциональные файлы cookie"},{kind:"text",text:"Используются для запоминания пользовательских предпочтений и персонализации взаимодействия с сайтом: сохранение выбранного языка, региона, настроек отображения, размера шрифта."},{kind:"text",text:"Обработка осуществляется на основании согласия субъекта персональных данных, поскольку данная обработка не является строго необходимой для функционирования сайта."},{kind:"text",variant:"example",text:"Примеры: настройки языка интерфейса, предпочтения отображения, настройки доступности."},{kind:"subheading",text:"3. Аналитические файлы cookie"},{kind:"text",text:"Собирают информацию о взаимодействии пользователей с интернет-ресурсом для анализа его использования, выявления популярных разделов, обнаружения ошибок и улучшения пользовательского опыта. Могут содержать персональные данные, включая IP-адреса пользователей."},{kind:"text",text:"Обработка осуществляется на основании согласия субъекта персональных данных."},{kind:"subheading",text:"4. Маркетинговые файлы cookie"},{kind:"text",text:"Используются для отслеживания пользователей в целях персонализированной рекламы, анализа эффективности рекламных кампаний, ретаргетинга."},{kind:"text",text:"Обработка осуществляется исключительно на основании согласия субъекта персональных данных."},{kind:"text",variant:"example",text:"Примеры: пиксели социальных сетей, рекламные идентификаторы, файлы ретаргетинга."}]},{title:"Правовые основания обработки персональных данных",blocks:[{kind:"text",text:"Обработка персональных данных, содержащихся в файлах cookie, осуществляется на следующих правовых основаниях:"},{kind:"list",items:[{strong:"Согласие субъекта персональных данных",text:"— для функциональных, аналитических и маркетинговых файлов cookie"},{strong:"Заключение и исполнение договора",text:"— для строго необходимых файлов cookie, обеспечивающих работу интернет-ресурса"},{strong:"Законные интересы оператора",text:"— в исключительных случаях, когда отсутствуют иные основания"}]}]},{title:"Порядок получения согласия",blocks:[{kind:"subheading",text:"Принципы получения согласия:"},{kind:"list",items:["Согласие должно быть получено до начала обработки персональных данных","Информация об использовании файлов cookie размещается на первом уровне интернет-ресурса","Предоставляется возможность выбора категорий файлов cookie","Используются активные формулировки вместо пассивных"]},{kind:"subheading",text:"Критерии действительного согласия:"},{kind:"list",items:[{strong:"Добровольность",text:"— согласие дается по свободной воле субъекта"},{strong:"Конкретность",text:"— четко определены цели обработки"},{strong:"Информированность",text:"— предоставлена полная информация об обработке"},{strong:"Однозначность",text:"— согласие выражено в недвусмысленной форме"}]}]},{title:"Сторонние файлы cookie",blocks:[{kind:"subheading",text:"Использование сторонних сервисов:"},{kind:"text",text:"Наш интернет-ресурс использует файлы cookie сторонних сервисов, включая:"},{kind:"list",items:["Яндекс.Метрика (ООО «ЯНДЕКС», Россия)","Социальные сети и сервисы интеграции"]},{kind:"subheading",text:"Обеспечение защиты:"},{kind:"list",items:["Получено согласие на передачу","Применяются дополнительные меры защиты данных","Контролируется соблюдение принципов обработки персональных данных получателями"]}]},{title:"Сроки обработки и хранения",blocks:[{kind:"subheading",text:"Категории по срокам хранения:"},{kind:"list",items:["Сеансовые cookie — удаляются автоматически при закрытии браузера","Постоянные cookie — хранятся установленный период или до удаления пользователем"]},{kind:"subheading",text:"Конкретные сроки:"},{kind:"list",items:["Необходимые файлы cookie — до 12 месяцев","Функциональные файлы cookie — до 12 месяцев","Аналитические файлы cookie — до 24 месяцев","Маркетинговые файлы cookie — до 24 месяцев"]},{kind:"text",text:"По истечении установленных сроков файлы cookie удаляются автоматически. Пользователь может удалить файлы cookie досрочно через настройки браузера или отозвать согласие на их обработку."}]},{title:"Права субъектов персональных данных",blocks:[{kind:"subheading",text:"Право на информацию:"},{kind:"list",items:["Получение информации о обработке персональных данных","Сведения о правовых основаниях и целях обработки","Информация о сроках обработки и составе данных"]},{kind:"subheading",text:"Право на доступ:"},{kind:"list",items:["Получение подтверждения факта обработки","Ознакомление с обрабатываемыми персональными данными","Получение информации об источниках персональных данных"]},{kind:"subheading",text:"Право на уточнение, блокирование, удаление:"},{kind:"list",items:["Требование уточнения неточных данных","Блокирование недостоверных данных","Удаление незаконно полученных данных"]},{kind:"subheading",text:"Право на отзыв согласия:"},{kind:"list",items:["Отзыв согласия в любое время","Прекращение обработки после отзыва согласия","Сохранение права на обжалование действий оператора"]}]},{title:"Способы управления файлами cookie",blocks:[{kind:"subheading",text:"Управление через настройки сайта:"},{kind:"list",items:["Использование баннера согласия на файлы cookie","Изменение настроек в любое время через интерфейс сайта","Отзыв согласия на использование отдельных категорий файлов cookie"]},{kind:"subheading",text:"Управление через браузер:"},{kind:"text",text:"Большинство браузеров позволяют контролировать файлы cookie:"},{kind:"list",items:["Блокировка — запрет установки новых файлов cookie","Удаление — очистка существующих файлов cookie","Уведомления — получение предупреждений при установке файлов cookie","Селективная настройка — разрешение файлов cookie только для определенных сайтов"]},{kind:"subheading",text:"Инструкции для популярных браузеров:"},{kind:"list",items:["Google Chrome: Настройки → Конфиденциальность и безопасность → Файлы cookie","Mozilla Firefox: Настройки → Приватность и Защита → Файлы cookie","Safari: Настройки → Конфиденциальность → Файлы cookie","Microsoft Edge: Настройки → Файлы cookie и разрешения сайтов"]},{kind:"text",variant:"warning",text:"Блокировка необходимых файлов cookie может привести к ограничению функциональности интернет-ресурса."}]},{title:"Меры безопасности",blocks:[{kind:"text",text:"Оператор применяет правовые, организационные и технические меры для защиты персональных данных:"},{kind:"subheading",text:"Правовые меры:"},{kind:"list",items:["Назначение ответственного за организацию обработки персональных данных","Ознакомление сотрудников с требованиями законодательства","Заключение соглашений о неразглашении персональных данных"]},{kind:"subheading",text:"Организационные меры:"},{kind:"list",items:["Определение перечня лиц, допущенных к обработке персональных данных","Установление правил доступа к персональным данным","Контроль за соблюдением требований по защите персональных данных"]},{kind:"subheading",text:"Технические меры:"},{kind:"list",items:["Использование средств защиты информации","Применение криптографических средств защиты","Обеспечение целостности и доступности персональных данных","Регулярное обновление систем защиты информации"]}]},{title:"Контактная информация и обращения",blocks:[{kind:"text",text:"Для реализации прав субъекта персональных данных обращайтесь к нам:"},{kind:"infoBox",lines:["ООО «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н","Email компании: company@bitforcefoundation.ru"]},{kind:"subheading",text:"Порядок рассмотрения обращений:"},{kind:"list",items:["Срок рассмотрения обращений — до 30 дней с момента получения","Обращения рассматриваются в письменной форме","Ответ направляется способом, указанным в обращении","При отказе в удовлетворении требований указываются мотивированные основания"]}]}]};function aL(){return o.jsxs(o.Fragment,{children:[o.jsx(Ol,{}),o.jsx(pr,{doc:nL}),o.jsx(Fs,{})]})}const sL={title:"СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ",subtitle:"ООО «БИТФОРС»",sections:[{title:"Преамбула",blocks:[{kind:"text",text:"Я, субъект персональных данных, действуя своей волей и в своем интересе, в соответствии с требованиями Федерального закона от 27.07.2006 № 152-ФЗ «О персональных данных», предоставляю ООО «БИТФОРС» согласие на обработку моих персональных данных на условиях и для целей, определенных настоящим Согласием."}]},{title:"1. Сведения об операторе",blocks:[{kind:"infoBox",lines:["Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н","Электронная почта: company@bitforcefoundation.ru","Веб-сайт: https://bitforce-foundation.ru"]}]},{title:"2. Правовые основания обработки",blocks:[{kind:"text",text:"Настоящее согласие предоставляется на основании пункта 1 части 1 статьи 6 Федерального закона «О персональных данных» и является правовым основанием для обработки персональных данных Оператором."},{kind:"text",text:"Согласие дается добровольно, своей волей и в своих интересах."},{kind:"text",text:"Субъект персональных данных понимает последствия предоставления согласия, включая возможные риски, связанные с обработкой персональных данных."}]},{title:"3. Цели обработки персональных данных",blocks:[{kind:"subheading",text:"3.1. Основные цели:"},{kind:"list",items:["Регистрация и ведение учетной записи на веб-сайте и в мобильном приложении","Идентификация и верификация личности в соответствии с требованиями законодательства","Предоставление услуг по обмену криптовалют и электронных денежных средств","Проведение финансовых операций, переводов и расчетов","Ведение учета и истории операций"]},{kind:"subheading",text:"3.2. Дополнительные цели:"},{kind:"list",items:["Обеспечение безопасности операций и предотвращение мошенничества","Выполнение требований по противодействию легализации доходов","Соблюдение требований валютного, налогового и иного применимого законодательства","Предоставление технической поддержки и клиентского сервиса","Рассылка уведомлений о состоянии операций и изменениях в условиях"]},{kind:"subheading",text:"3.3. Маркетинговые цели (при дополнительном согласии):"},{kind:"list",items:["Направление информационных и рекламных материалов","Проведение маркетинговых исследований и опросов","Персонализация предложений и услуг","Анализ предпочтений и поведения для улучшения сервисов"]},{kind:"subheading",text:"3.4. Аналитические цели:"},{kind:"list",items:["Анализ использования веб-сайта и мобильного приложения","Улучшение качества предоставляемых услуг","Разработка новых продуктов и сервисов","Создание статистических отчетов в обезличенном виде"]}]},{title:"4. Перечень персональных данных",blocks:[{kind:"subheading",text:"4.1. Идентификационные данные:"},{kind:"list",items:["Фамилия, имя, отчество","Дата рождения","Гражданство"]},{kind:"subheading",text:"4.2. Документы, удостоверяющие личность:"},{kind:"list",items:["Серия и номер паспорта гражданина Российской Федерации","Дата выдачи и код подразделения","Адрес регистрации по месту жительства","Цифровые копии (сканы) документов"]},{kind:"subheading",text:"4.3. Контактная информация:"},{kind:"list",items:["Номера телефонов (мобильный, домашний, рабочий)","Адреса электронной почты","Почтовые адреса (фактического проживания, для корреспонденции)"]},{kind:"subheading",text:"4.4. Финансовая информация:"},{kind:"list",items:["Номера банковских счетов и реквизиты банковских карт","Реквизиты криптовалютных кошельков и адресов","Информация о доходах и источниках происхождения денежных средств","История финансовых операций и транзакций"]},{kind:"subheading",text:"4.5. Техническая информация:"},{kind:"list",items:["IP-адреса устройств, с которых осуществляется доступ к сервисам","Информация о браузере, операционной системе и устройстве","Файлы cookie и данные локального хранилища","Логи действий и история использования сервисов"]},{kind:"subheading",text:"4.6. Дополнительная информация:"},{kind:"list",items:["Фотографии для процедур верификации","Видеозаписи процедур видеоидентификации","Биометрические данные (при использовании соответствующих технологий)","Информация о семейном положении и профессиональной деятельности"]}]},{title:"5. Перечень действий с персональными данными",blocks:[{kind:"text",text:"Согласие распространяется на следующие действия (операции) с персональными данными:"},{kind:"list",items:["Сбор, запись и первичная обработка персональных данных","Накопление и систематизация в базах данных","Создание резервных копий и архивирование","Извлечение, использование и анализ данных","Уточнение, обновление и актуализация информации","Передача данных третьим лицам","Обезличивание и удаление данных","Автоматизированная обработка и профилирование"]}]},{title:"6. Лица, которым могут быть переданы персональные данные",blocks:[{kind:"subheading",text:"6.1. Сотрудники Оператора:"},{kind:"list",items:["Уполномоченные сотрудники, непосредственно участвующие в обработке","Сотрудники службы безопасности и комплаенса","Сотрудники технической поддержки","Руководящий состав в рамках их полномочий"]},{kind:"subheading",text:"6.2. Государственные и муниципальные органы:"},{kind:"list",items:["Федеральная служба по финансовому мониторингу","Федеральная налоговая служба","Правоохранительные органы (при наличии законных требований)","Суды и органы исполнения судебных решений"]},{kind:"subheading",text:"6.3. Партнеры и контрагенты:"},{kind:"list",items:["Банки и платежные системы","Операторы электронных денежных средств","Поставщики технологических решений","Аудиторские и консалтинговые организации"]}]},{title:"7. Сроки обработки персональных данных",blocks:[{kind:"subheading",text:"7.1. Общие принципы:"},{kind:"text",text:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей обработки. После достижения целей данные подлежат уничтожению или обезличиванию."},{kind:"subheading",text:"7.2. Конкретные сроки обработки:"},{kind:"list",items:[{strong:"Данные активных клиентов:",text:"в течение всего периода отношений плюс 5 лет после прекращения"},{strong:"Данные для идентификации:",text:"5 лет с момента прекращения отношений"},{strong:"Финансовая информация:",text:"5 лет с даты совершения операции"},{strong:"Маркетинговые данные:",text:"до отзыва согласия, но не более 3 лет"},{strong:"Техническая информация:",text:"1 год для безопасности, 6 месяцев для логов"}]}]},{title:"8. Права субъекта персональных данных",blocks:[{kind:"subheading",text:"8.1. Право на информацию:"},{kind:"list",items:["Получение подтверждения факта обработки персональных данных","Получение информации о целях и способах обработки","Информация о сроках обработки и составе данных","Сведения о лицах, которым передаются данные"]},{kind:"subheading",text:"8.2. Право на доступ:"},{kind:"list",items:["Получение копий обрабатываемых персональных данных","Ознакомление с историей обработки и изменений","Получение информации об источниках персональных данных"]},{kind:"subheading",text:"8.3. Право на исправление и удаление:"},{kind:"list",items:["Требование исправления неточных или неполных данных","Требование удаления персональных данных при наличии оснований","Удаление данных после отзыва согласия"]},{kind:"subheading",text:"8.4. Право на отзыв согласия:"},{kind:"list",items:["Согласие может быть отозвано в любое время","Отзыв оформляется в письменной форме","После отзыва обработка прекращается в разумные сроки"]},{kind:"subheading",text:"8.5. Право на обжалование:"},{kind:"list",items:["Обращение к Оператору с жалобами на действия по обработке данных","Обращение в Роскомнадзор или его территориальные органы","Обращение в суд для защиты нарушенных прав"]},{kind:"subheading",text:"8.6. Порядок реализации прав:"},{kind:"list",items:["Обращения направляются на адрес: company@bitforcefoundation.ru","Обращения рассматриваются в течение 30 дней","При необходимости срок может быть продлен на 30 дней"]}]},{title:"9. Заключительные положения",blocks:[{kind:"subheading",text:"9.1. Действие согласия:"},{kind:"list",items:["Согласие действует с момента его предоставления","Согласие действует до его отзыва или до достижения целей обработки","При существенных изменениях целей требуется новое согласие"]},{kind:"subheading",text:"9.2. Форма предоставления согласия:"},{kind:"list",items:["Согласие может быть предоставлено в письменной форме","Согласие может быть предоставлено в электронной форме","Согласие может выражаться путем совершения конклюдентных действий"]},{kind:"subheading",text:"9.3. Последствия непредоставления согласия:"},{kind:"list",items:["Отказ в предоставлении согласия может повлечь невозможность регистрации","Отказ может ограничить доступ к отдельным услугам","Отказ в согласии на маркетинг не влияет на основные услуги","Субъект вправе предоставить частичное согласие"]},{kind:"subheading",text:"9.4. Контактная информация:"},{kind:"infoBox",lines:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н","Электронная почта: company@bitforcefoundation.ru","Ответственное лицо: Кленин Михаил Васильевич","Официальный сайт: https://bitforce-foundation.ru"]},{kind:"subheading",text:"9.5. Подтверждение понимания:"},{kind:"text",variant:"emphasis",text:"Предоставляя настоящее согласие, я подтверждаю, что:"},{kind:"list",items:["Ознакомлен с содержанием согласия и понимаю его значение","Понимаю цели и способы обработки моих персональных данных","Знаю о своих правах и способах их реализации","Согласие предоставляется добровольно и осознанно","Имею возможность отозвать согласие в любое время"]}]}]};function lL(){return o.jsxs(o.Fragment,{children:[o.jsx(Ol,{}),o.jsx(pr,{doc:sL}),o.jsx(Fs,{})]})}const iL={title:"Реестр операторов персональных данных",subtitle:"ООО «БИТФОРС»",sections:[{blocks:[{kind:"text",text:"Информация об операторе персональных данных размещена в реестре операторов персональных данных Федеральной службы по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор)."},{kind:"text",text:"Вы можете просмотреть информацию об операторе в реестре Роскомнадзора, перейдя по ссылке ниже:"},{kind:"link",href:"https://pd.rkn.gov.ru/operators-registry/operators-list/?act=search&name_full=%D0%91%D0%B8%D1%82%D1%84%D0%BE%D1%80%D1%81&inn=9810001062&regn=",text:"Открыть реестр Роскомнадзора"},{kind:"text",text:"Реестр содержит информацию об операторах персональных данных, включая сведения о целях и методах обработки персональных данных, а также меры по обеспечению безопасности персональных данных."}]},{title:"Информация об операторе",blocks:[{kind:"infoBox",lines:[{strong:"Наименование:",text:"ООО «БИТФОРС»"},{strong:"ИНН:",text:"9810001062"},{strong:"ОГРН:",text:"1257800060990"},{strong:"Юридический адрес:",text:"196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"},{strong:"Контактная информация:",text:"company@bitforcefoundation.ru"}]}]},{title:"О Роскомнадзоре",blocks:[{kind:"text",text:"Федеральная служба по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор) — это федеральный орган исполнительной власти, осуществляющий функции по контролю и надзору в области персональных данных."},{kind:"text",text:"Роскомнадзор ведет реестр операторов персональных данных в соответствии с требованиями Федерального закона «О персональных данных». Реестр является открытой информационной системой и доступен всем заинтересованным лицам."}]}]};function oL(){return o.jsxs(o.Fragment,{children:[o.jsx(Ol,{}),o.jsx(pr,{doc:iL}),o.jsx(Fs,{})]})}const yy={ETH:{symbol:"ETH",aprLabel:"APR",protocol:"Lido"},SOL:{symbol:"SOL",aprLabel:"APY",protocol:"Нативный"}},rL=[{chain:"ETH",label:"ETH · Lido"},{chain:"SOL",label:"SOL · нативный"}],cL={active:{label:"Активна",variant:"active"},activating:{label:"Активируется",variant:"muted"},deactivating:{label:"Деактивация",variant:"muted"},inactive:{label:"Завершена",variant:"ready"}},uL="_toggle_xc9o8_1",dL="_tab_xc9o8_6",fL="_active_xc9o8_18",hL="_inactive_xc9o8_23",Qc={toggle:uL,tab:dL,active:fL,inactive:hL};function mL({value:a,onChange:l}){return o.jsx("div",{className:Qc.toggle,children:rL.map(({chain:i,label:r})=>o.jsx("button",{className:`${Qc.tab} ${a===i?Qc.active:Qc.inactive}`,onClick:()=>l(i),children:r},i))})}const _y="https://app.cryptowallet.elcsa.ru",Tl={ETH:18,SOL:9};async function $h(a,l=!0){const i=await an(),r=Nt.get(),d=await fetch(`${_y}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&l)try{return await ca(),$h(a,!1)}catch{throw Nt.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function Qs(a,l,i=!0,r={}){const d=await an(),f=Nt.get(),h=await fetch(`${_y}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(l)});if(h.status===401&&i)try{return await ca(),Qs(a,l,!1,r)}catch{throw Nt.clear(),new Error("Unauthorized")}const g=await h.json();if(!h.ok)throw g;return g}function pu(){return{"Idempotency-Key":crypto.randomUUID()}}async function pL(a,l){const i=ra(l,Tl[a]);if(a==="ETH"){const h=(await Qs("/api/wallets/ETH/stake/quote",{amount:i})).data;return{chain:a,amountHuman:h.amountWeiHuman,feeHuman:h.appFeeWeiHuman,afterFeeHuman:h.stakeAmountWeiHuman,resultHuman:h.expectedStEthWeiHuman,aprPercent:h.aprPercent}}const d=(await Qs("/api/wallets/SOL/stake/quote",{amount:i})).data;return{chain:a,amountHuman:d.amountLamportsHuman,feeHuman:d.appFeeLamportsHuman,afterFeeHuman:d.stakeLamportsHuman,resultHuman:d.stakeLamportsHuman,aprPercent:d.estApyPercent,validator:d.validator}}async function gL(a,l){const i=ra(l,Tl[a]);await Qs(`/api/wallets/${a}/stake`,{amount:i},!0,pu())}async function vL(){return(await $h("/api/wallets/ETH/stake/positions")).data}async function yL(){return(await $h("/api/wallets/SOL/stake/positions")).data}async function _L(a,l){const i=ra(a,Tl.ETH);return(await Qs("/api/wallets/ETH/unstake",{amount:i,mode:l},!0,pu())).data}async function bL(a){return(await Qs("/api/wallets/SOL/unstake",{stakeAccount:a},!0,pu())).data}async function xL(a){await Qs("/api/wallets/ETH/unstake/claim",{requestId:a},!0,pu())}async function AL(a,l){return(await Qs(`/api/wallets/${a}/op-cost`,{token:a,amountHuman:l})).data}function Wo(a){if(a&&typeof a=="object"&&"error"in a){const l=a.error;if(typeof l=="string")return l}return a instanceof Error?a.message==="Unauthorized"?"Сессия истекла — перезагрузите страницу.":a.message:"Произошла ошибка. Попробуйте ещё раз."}function SL(a,l){if(a.chain==="ETH"){const r=BigInt(ra(a.stEthBalanceWeiHuman,Tl.ETH)),d=BigInt(ra(l,Tl.ETH));return{...a,stEthBalanceWeiHuman:nr((r+d).toString(),Tl.ETH),optimistic:!0}}const i={stakeAccount:"pending",lamportsHuman:l,state:"activating",validator:a.validator,optimistic:!0};return{...a,positions:[i,...a.positions]}}function jL(a,l){const i=parseFloat(l);return Ct({queryKey:["staking","quote",a,l],queryFn:()=>pL(a,l),enabled:Number.isFinite(i)&&i>0,staleTime:15e3,retry:!1})}function wL(a,l){const i=parseFloat(l);return Ct({queryKey:["staking","op-cost",a,l],queryFn:()=>AL(a,l),enabled:Number.isFinite(i)&&i>0,staleTime:15e3,retry:!1})}function EL(a){return Ct({queryKey:["staking","positions",a],queryFn:()=>a==="ETH"?vL():yL(),staleTime:3e4,retry:!1})}function NL(){const a=Wt();return vt({mutationFn:({chain:l,amountHuman:i})=>gL(l,i),onMutate:async({chain:l,amountHuman:i})=>{const r=["staking","positions",l];await a.cancelQueries({queryKey:r});const d=a.getQueryData(r);return d&&a.setQueryData(r,SL(d,i)),{key:r,previous:d}},onError:(l,i,r)=>{r!=null&&r.previous&&a.setQueryData(r.key,r.previous)},onSettled:(l,i,{chain:r})=>{a.invalidateQueries({queryKey:["wallet","balance",r]}),setTimeout(()=>{a.invalidateQueries({queryKey:["staking","positions",r]}),a.invalidateQueries({queryKey:["wallet","balance",r]})},6e3)}})}function CL(){const a=Wt();return vt({mutationFn:l=>l.chain==="ETH"?_L(l.amountHuman,l.mode):bL(l.stakeAccount),onSuccess:(l,i)=>{a.invalidateQueries({queryKey:["staking","positions",i.chain]}),a.invalidateQueries({queryKey:["wallet","balance",i.chain]})}})}function TL(){const a=Wt();return vt({mutationFn:l=>xL(l),onSuccess:()=>{a.invalidateQueries({queryKey:["staking","positions","ETH"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})}})}const RL="_panel_jl9ez_1",kL="_row_jl9ez_13",BL="_label_jl9ez_26",OL="_value_jl9ez_31",LL="_success_jl9ez_39",ML="_highlight_jl9ez_43",DL="_rowTotal_jl9ez_48",zL="_valueLg_jl9ez_55",gl={panel:RL,row:kL,label:BL,value:OL,success:LL,highlight:ML,rowTotal:DL,valueLg:zL};function UL({rows:a,loading:l}){return o.jsx("div",{className:gl.panel,"data-loading":l?"true":void 0,children:a.map(({label:i,value:r,accent:d,emphasis:f})=>o.jsxs("div",{className:`${gl.row} ${f?gl.rowTotal:""}`,children:[o.jsx("span",{className:gl.label,children:i}),o.jsx("span",{className:`${gl.value} ${f?gl.valueLg:""} ${d?gl[d]:""}`,children:r})]},i))})}const HL="_wrapper_1y6dk_1",qL="_pillsOuter_1y6dk_7",PL="_card_1y6dk_12",QL="_top_1y6dk_19",FL="_tag_1y6dk_27",YL="_right_1y6dk_35",GL="_apr_1y6dk_41",IL="_pillsInner_1y6dk_52",KL="_pill_1y6dk_7",XL="_mid_1y6dk_75",VL="_input_1y6dk_83",ZL="_token_1y6dk_99",WL="_bottom_1y6dk_109",JL="_balance_1y6dk_116",$L="_max_1y6dk_124",eM="_hint_1y6dk_139",tM="_stakeBtn_1y6dk_147",nM="_stakeBtnDisabled_1y6dk_151",zt={wrapper:HL,pillsOuter:qL,card:PL,top:QL,tag:FL,right:YL,apr:GL,pillsInner:IL,pill:KL,mid:XL,input:VL,token:ZL,bottom:WL,balance:JL,max:$L,hint:eM,stakeBtn:tM,stakeBtnDisabled:nM},aM=[25,50,100],Ai="—";function b1(a){return`≈ $${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function sM(a,l,i,r,d){var L,B,q;const f=a.symbol==="ETH",h=`Годовая доходность (${a.aprLabel})`,g=(L=i==null?void 0:i.appCommission)==null?void 0:L.usd,m=g!=null?b1(g):Ai,p=(l==null?void 0:l.aprPercent)!=null?`${l.aprPercent}%`:Ai,y=f?"Вы получите":"Делегируется валидатору",_=l?f?`≈ ${nt(l.resultHuman,8)} stETH`:`${nt(l.resultHuman,8)} SOL`:Ai,b=(q=(B=i==null?void 0:i.balance)==null?void 0:B.gas)==null?void 0:q.needReserve,S=b!=null&&parseFloat(String(b))||0,j=b!=null?`≈ ${nt(String(b),8)} ${a.symbol}`:Ai,w=Math.max(0,r-S),E=b!=null&&r>0?`≈ ${nt(w.toString(),8)} ${a.symbol}`:Ai,R=d>0&&r>0?b1(r*d):Ai;return[{label:"Сетевой сбор (газ)",value:j},{label:"Сумма в стейкинг",value:E},{label:"Комиссия сервиса (0.7%)",value:m},{label:h,value:p,accent:"success"},{label:"Итого к списанию",value:R},{label:y,value:_,accent:"highlight",emphasis:!0}]}function lM({chain:a,amount:l,onAmountChange:i,onStake:r,isStaking:d}){var ue,re;const f=yy[a],h=Tl[a],{data:g}=Pi(a),m=(g==null?void 0:g.native.formatted)??"0",p=parseFloat(m)||0,y=ba(l,400),{data:_,isError:b}=wL(a,y),S=((re=(ue=_==null?void 0:_.balance)==null?void 0:ue.gas)==null?void 0:re.needReserve)!=null?String(_.balance.gas.needReserve):null;function j(ce){if((parseFloat(ce)||0)<=0)return"0";if(S!=null){const he=BigInt(ra(ce,h)),ae=BigInt(ra(S,h)),P=he>ae?he-ae:0n;return nr(P.toString(),h)}return b?ce:"0"}const w=j(l),E=j(y),R=parseFloat(w)||0,{data:L,isFetching:B}=jL(a,E),q=parseFloat(l)||0,K=q>0&&q<=p,V=K&&S!=null&&R<=0,U=K&&R>0&&!d,I=ce=>{ce>=100?i(m):i((p*ce/100).toString())},$=o.jsx(o.Fragment,{children:aM.map(ce=>o.jsxs("button",{className:zt.pill,onClick:()=>I(ce),"aria-label":`${ce}% от баланса`,children:[ce,"%"]},ce))});return o.jsxs("div",{className:zt.wrapper,children:[o.jsx("div",{className:zt.pillsOuter,children:$}),o.jsxs("div",{className:zt.card,children:[o.jsxs("div",{className:zt.top,children:[o.jsx("span",{className:zt.tag,children:"Сумма к списанию"}),o.jsxs("div",{className:zt.right,children:[o.jsxs("span",{className:zt.apr,children:[f.aprLabel," ",(L==null?void 0:L.aprPercent)!=null?`${L.aprPercent}%`:"—"]}),o.jsx("div",{className:zt.pillsInner,children:$})]})]}),o.jsxs("div",{className:zt.mid,children:[o.jsx("input",{className:zt.input,type:"text",inputMode:"decimal",value:l,onChange:ce=>{const ee=ce.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(ee)||ee==="")&&i(ee)},placeholder:"0","aria-label":`Сумма к списанию в ${f.symbol}`}),o.jsxs("div",{className:zt.token,children:[o.jsx(Rl,{letter:f.symbol[0],color:"var(--grad-center)",logo:_e[f.symbol],size:28}),o.jsx("span",{children:f.symbol})]})]}),o.jsx("div",{className:zt.bottom,children:o.jsxs("span",{className:zt.balance,children:["Баланс: ",nt(m,6)," ",f.symbol,o.jsx("button",{className:zt.max,onClick:()=>I(100),"aria-label":"Использовать весь баланс",children:"МАКС"})]})}),o.jsx(UL,{rows:sM(f,L,_,q,(g==null?void 0:g.native.usdPrice)??0),loading:B}),V&&o.jsx("p",{className:zt.hint,children:"Сумма меньше сетевого сбора (газ)."}),o.jsx("div",{className:`${zt.stakeBtn} ${U?"":zt.stakeBtnDisabled}`,children:o.jsx(Zn,{label:d?"Отправка…":"Застейкать",type:"button",onClick:()=>r(w),disabled:!U})})]})]})}const iM="_notice_y8uqt_1",oM="_icon_y8uqt_14",rM="_compact_y8uqt_29",sh={notice:iM,icon:oM,compact:rM};function by({compact:a}){return o.jsxs("div",{className:`${sh.notice} ${a?sh.compact:""}`,children:[o.jsx("span",{className:sh.icon,"aria-hidden":"true",children:"!"}),o.jsx("span",{children:"Вывод средств из стейкинга может занимать до 2 недель."})]})}const cM="_panel_156jb_1",uM="_inner_156jb_8",dM="_body_156jb_16",fM="_head_156jb_45",hM="_title_156jb_51",mM="_total_156jb_59",pM="_totalUnit_156jb_65",gM="_subhead_156jb_70",vM="_list_156jb_79",yM="_pos_156jb_85",_M="_pending_156jb_93",bM="_reqCard_156jb_108",xM="_posTop_156jb_112",AM="_coin_156jb_120",SM="_amount_156jb_129",jM="_meta_156jb_136",wM="_badge_156jb_143",EM="_badgeActive_156jb_151",NM="_badgeReady_156jb_156",CM="_badgeMuted_156jb_161",TM="_btn_156jb_166",RM="_btnPrimary_156jb_189",kM="_note_156jb_201",BM="_empty_156jb_208",OM="_emptyState_156jb_215",LM="_emptyIcon_156jb_227",MM="_emptyTitle_156jb_239",DM="_emptyText_156jb_246",pe={panel:cM,inner:uM,body:dM,head:fM,title:hM,total:mM,totalUnit:pM,subhead:gM,list:vM,pos:yM,pending:_M,reqCard:bM,posTop:xM,coin:AM,amount:SM,meta:jM,badge:wM,badgeActive:EM,badgeReady:NM,badgeMuted:CM,btn:TM,btnPrimary:RM,note:kM,empty:BM,emptyState:OM,emptyIcon:LM,emptyTitle:MM,emptyText:DM};function zM({chain:a,onUnstakeEth:l,onUnstakeSol:i,onClaim:r,unstakePending:d,claimPending:f}){var E;const{data:h,isLoading:g,isError:m,error:p}=EL(a),y={active:pe.badgeActive,ready:pe.badgeReady,muted:pe.badgeMuted},_=(h==null?void 0:h.chain)==="ETH"?h.stEthBalanceWeiHuman:(h==null?void 0:h.chain)==="SOL"?h.positions.reduce((R,L)=>R+(parseFloat(L.lamportsHuman)||0),0).toString():"0",b=a==="ETH"?"stETH":"SOL",S=(h==null?void 0:h.chain)==="ETH"&&(parseFloat(h.stEthBalanceWeiHuman)||0)<1e-11&&h.withdrawalRequests.length===0,j=(h==null?void 0:h.chain)==="SOL"&&h.positions.length===0,w=S||j;return o.jsx("div",{className:pe.panel,children:o.jsxs("div",{className:pe.inner,children:[o.jsxs("div",{className:pe.head,children:[o.jsx("span",{className:pe.title,children:"Мои позиции"}),o.jsxs("div",{className:pe.total,children:[nt(m?"0":_,6)," ",o.jsx("span",{className:pe.totalUnit,children:b})]})]}),o.jsxs("div",{className:pe.body,children:[!g&&!m&&!w&&o.jsx(by,{compact:!0}),g&&o.jsx(Dn,{label:"Загрузка позиций"}),m&&o.jsx("div",{className:pe.empty,children:Wo(p)}),!g&&!m&&(w||(h==null?void 0:h.chain)==="ETH"&&(parseFloat(h.stEthBalanceWeiHuman)||0)<1e-14)&&o.jsxs("div",{className:pe.emptyState,children:[o.jsx("span",{className:pe.emptyIcon,"aria-hidden":!0,children:o.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M3 7.5 12 3l9 4.5-9 4.5z"}),o.jsx("path",{d:"M3 12.5 12 17l9-4.5"}),o.jsx("path",{d:"M3 16.5 12 21l9-4.5"})]})}),o.jsx("p",{className:pe.emptyTitle,children:"Активных позиций пока нет"}),o.jsx("p",{className:pe.emptyText,children:"На данный момент у Вас нет активных позиций стейкинга."})]}),!m&&(h==null?void 0:h.chain)==="ETH"&&!w&&o.jsxs(o.Fragment,{children:[(parseFloat(h.stEthBalanceWeiHuman)||0)>1e-14&&o.jsx("div",{className:pe.list,children:o.jsxs("div",{className:`${pe.pos} ${h.optimistic?pe.pending:""}`,children:[o.jsxs("div",{className:pe.posTop,children:[o.jsxs("span",{className:pe.coin,children:[o.jsx(Rl,{letter:"E",color:"var(--grad-center)",logo:_e.ETH,size:24}),"stETH"]}),o.jsxs("span",{className:`${pe.badge} ${pe.badgeActive}`,children:["Активна",h.aprPercent!=null?` · APR ${h.aprPercent}%`:""]})]}),o.jsx("div",{className:pe.amount,children:nt(h.stEthBalanceWeiHuman,8)}),o.jsx("button",{className:pe.btn,onClick:()=>l(h.stEthBalanceWeiHuman),disabled:d,children:"Вывести"})]})}),(parseFloat((E=h.withdrawalRequests[0])==null?void 0:E.amountStEthWeiHuman)||0)>1e-14&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:pe.subhead,children:"Заявки на вывод"}),o.jsx("div",{className:pe.list,children:h.withdrawalRequests.map(R=>{const L=R.isFinalized&&!R.isClaimed;return o.jsxs("div",{className:`${pe.pos} ${L?pe.reqCard:""}`,children:[o.jsxs("div",{className:pe.posTop,children:[o.jsxs("span",{className:pe.coin,children:["Заявка #",R.requestId]}),o.jsx("span",{className:`${pe.badge} ${R.isClaimed?pe.badgeMuted:L?pe.badgeReady:pe.badgeMuted}`,children:R.isClaimed?"Выведено":L?"Готово к выводу":"В очереди"})]}),o.jsxs("div",{className:pe.amount,children:[nt(R.amountStEthWeiHuman,8)," ETH"]}),L?o.jsx("button",{className:`${pe.btn} ${pe.btnPrimary}`,onClick:()=>r(R.requestId),disabled:f,children:"Забрать ETH"}):R.isClaimed?null:o.jsx("div",{className:pe.note,children:"Ожидает финализации в Lido"})]},R.requestId)})})]})]}),!m&&(h==null?void 0:h.chain)==="SOL"&&!w&&o.jsx("div",{className:pe.list,children:h.positions.map(R=>{const L=cL[R.state];return o.jsxs("div",{className:`${pe.pos} ${R.optimistic?pe.pending:""}`,children:[o.jsxs("div",{className:pe.posTop,children:[o.jsxs("span",{className:pe.coin,children:[o.jsx(Rl,{letter:"S",color:"var(--grad-center)",logo:_e.SOL,size:24}),"SOL"]}),o.jsx("span",{className:`${pe.badge} ${y[L.variant]}`,children:L.label})]}),o.jsx("div",{className:pe.amount,children:nt(R.lamportsHuman,8)}),o.jsxs("div",{className:pe.meta,children:["Валидатор: ",R.validator," · ",R.stakeAccount]}),R.state==="active"&&o.jsx("button",{className:pe.btn,onClick:()=>i(R),disabled:d,children:"Вывести"}),R.state==="inactive"&&o.jsx("button",{className:`${pe.btn} ${pe.btnPrimary}`,onClick:()=>i(R),disabled:d,children:"Вывести средства"}),R.state==="deactivating"&&o.jsx("div",{className:pe.note,children:"Разблокируется через 1–2 эпохи"}),R.state==="activating"&&o.jsx("div",{className:pe.note,children:"Активируется…"})]},R.stakeAccount)})})]})]})})}const UM="_overlay_17qoe_1",HM="_card_17qoe_13",qM="_header_17qoe_25",PM="_title_17qoe_31",QM="_closeBtn_17qoe_37",FM="_token_17qoe_52",YM="_tokenLabel_17qoe_62",GM="_tokenAmount_17qoe_70",IM="_modes_17qoe_77",KM="_mode_17qoe_77",XM="_modeActive_17qoe_101",VM="_modeTitle_17qoe_106",ZM="_modeDesc_17qoe_112",WM="_solNote_17qoe_118",JM="_confirmBtn_17qoe_125",kt={overlay:UM,card:HM,header:qM,title:PM,closeBtn:QM,token:FM,tokenLabel:YM,tokenAmount:GM,modes:IM,mode:KM,modeActive:XM,modeTitle:VM,modeDesc:ZM,solNote:WM,confirmBtn:JM};function x1({chain:a,symbol:l,amount:i,solState:r,pending:d,onConfirm:f,onClose:h}){const[g,m]=A.useState("swap");A.useEffect(()=>{function b(S){S.key==="Escape"&&h()}return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[h]);const p=a==="SOL"&&r==="inactive",y=d?"Отправка…":a==="ETH"?"Подтвердить вывод":p?"Вывести средства":"Запустить деактивацию",_=a==="SOL"||a==="ETH"&&g==="queue";return o.jsx("div",{className:kt.overlay,onClick:h,children:o.jsxs("div",{className:kt.card,onClick:b=>b.stopPropagation(),children:[o.jsxs("div",{className:kt.header,children:[o.jsx("span",{className:kt.title,children:"Вывод из стейкинга"}),o.jsx("button",{className:kt.closeBtn,onClick:h,children:"×"})]}),o.jsxs("div",{className:kt.token,children:[o.jsx("span",{className:kt.tokenLabel,children:"Сумма"}),o.jsxs("span",{className:kt.tokenAmount,children:[i," ",a==="ETH"?"stETH":l]})]}),a==="ETH"&&o.jsxs("div",{className:kt.modes,children:[o.jsxs("button",{className:`${kt.mode} ${g==="swap"?kt.modeActive:""}`,onClick:()=>m("swap"),children:[o.jsx("span",{className:kt.modeTitle,children:"Мгновенно"}),o.jsx("span",{className:kt.modeDesc,children:"Своп stETH → ETH через Curve"})]}),o.jsxs("button",{className:`${kt.mode} ${g==="queue"?kt.modeActive:""}`,onClick:()=>m("queue"),children:[o.jsx("span",{className:kt.modeTitle,children:"Очередь"}),o.jsx("span",{className:kt.modeDesc,children:"Заявка в Lido Withdrawal Queue"})]})]}),a==="SOL"&&!p&&o.jsx("p",{className:kt.solNote,children:"Средства разблокируются через 1–2 эпохи. После завершения вернитесь и подтвердите вывод."}),_&&o.jsx(by,{}),o.jsx("button",{className:kt.confirmBtn,onClick:()=>f(a==="ETH"?g:void 0),disabled:d,children:y})]})})}const $M="_widget_wxtkp_1",eD="_grid_wxtkp_7",A1={widget:$M,grid:eD};function tD(){const[a,l]=A.useState("ETH"),[i,r]=A.useState(""),[d,f]=A.useState(null),[h,g]=A.useState(null),m=NL(),p=CL(),y=TL();function _(w){l(w),r("")}function b(w){m.mutate({chain:a,amountHuman:w},{onSuccess:()=>{g({status:"success",message:`Стейкинг ${nt(w,6)} ${yy[a].symbol} выполнен`}),r("")},onError:E=>g({status:"error",message:Wo(E)})})}function S(w){if((d==null?void 0:d.kind)==="eth"){const E=w??"swap";p.mutate({chain:"ETH",amountHuman:d.amount,mode:E},{onSuccess:()=>{f(null),g({status:"success",message:E==="queue"?"Заявка на вывод добавлена в очередь Lido":"Вывод stETH → ETH выполнен"})},onError:R=>g({status:"error",message:Wo(R)})})}else(d==null?void 0:d.kind)==="sol"&&p.mutate({chain:"SOL",stakeAccount:d.position.stakeAccount},{onSuccess:E=>{f(null);const R="action"in E&&E.action==="withdraw";g({status:"success",message:R?"Средства выведены на кошелёк":"Деактивация запущена — вывод через 1–2 эпохи"})},onError:E=>g({status:"error",message:Wo(E)})})}function j(w){y.mutate(w,{onSuccess:()=>g({status:"success",message:"ETH забран на кошелёк"}),onError:E=>g({status:"error",message:Wo(E)})})}return o.jsxs("div",{className:A1.widget,children:[o.jsx(mL,{value:a,onChange:_}),o.jsxs("div",{className:A1.grid,children:[o.jsx(lM,{chain:a,amount:i,onAmountChange:r,onStake:b,isStaking:m.isPending}),o.jsx(zM,{chain:a,onUnstakeEth:w=>f({kind:"eth",amount:w}),onUnstakeSol:w=>f({kind:"sol",position:w}),onClaim:j,unstakePending:p.isPending,claimPending:y.isPending})]}),(d==null?void 0:d.kind)==="eth"&&o.jsx(x1,{chain:"ETH",symbol:"ETH",amount:d.amount,pending:p.isPending,onConfirm:S,onClose:()=>f(null)}),(d==null?void 0:d.kind)==="sol"&&o.jsx(x1,{chain:"SOL",symbol:"SOL",amount:d.position.lamportsHuman,solState:d.position.state,pending:p.isPending,onConfirm:S,onClose:()=>f(null)}),h&&o.jsx(ts,{status:h.status,message:h.message,onClose:()=>g(null),duration:5e3})]})}const nD="_page_1j4fk_1",aD="_head_1j4fk_8",sD="_title_1j4fk_12",lD="_subtitle_1j4fk_19",Fc={page:nD,head:aD,title:sD,subtitle:lD};function iD(){return o.jsxs("div",{className:Fc.page,children:[o.jsxs("header",{className:Fc.head,children:[o.jsx("h1",{className:Fc.title,children:"Стейкинг"}),o.jsx("p",{className:Fc.subtitle,children:"Выберите сеть и укажите, сколько монет хотите застейкать. Ваши средства отправляются в стейкинг и начинают приносить доход (APR). Все ваши вклады видны в блоке «Мои позиции», откуда их можно вывести вместе с накопленной наградой. Учтите, что вывод средств занимает некоторое время. Комиссия сервиса — 0.7%."})]}),o.jsx(tD,{})]})}const xy="https://app.cryptowallet.elcsa.ru";async function em(a,l=!0){const i=await an(),r=Nt.get(),d=await fetch(`${xy}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&l)try{return await ca(),em(a,!1)}catch{throw Nt.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function gu(a,l,i=!0,r={}){const d=await an(),f=Nt.get(),h=await fetch(`${xy}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(l)});if(h.status===401&&i)try{return await ca(),gu(a,l,!1,r)}catch{throw Nt.clear(),new Error("Unauthorized")}const g=await h.json();if(!h.ok)throw g;return g}function Ay(){return{"Idempotency-Key":crypto.randomUUID()}}async function oD(){return(await em("/api/wallets/ETH/lp/pools")).data}function Sy(a){const{pool:l,amount0Human:i,amount1Human:r,priceLower:d,priceUpper:f,slippageBps:h,useNativeEth:g}=a;return{pool:l.poolAddress,priceLower:d,priceUpper:f,amount0Desired:ra(i||"0",l.decimals0),amount1Desired:ra(r||"0",l.decimals1),...h!=null?{slippageBps:h}:{},...g!=null?{useNativeEth:g}:{}}}async function rD(a){return(await gu("/api/wallets/ETH/lp/quote",Sy(a))).data}async function cD(a){return(await gu("/api/wallets/ETH/lp/add",Sy(a),!0,Ay())).data}async function uD(a,l=100){return(await gu("/api/wallets/ETH/lp/remove",{tokenId:a,percent:l},!0,Ay())).data}async function dD(){return(await em("/api/wallets/ETH/lp/positions")).data}function Yc(a){if(a&&typeof a=="object"&&"error"in a){const l=a.error;if(typeof l=="string")return l}return a instanceof Error?a.message==="Unauthorized"?"Сессия истекла — перезагрузите страницу.":a.message:"Произошла ошибка. Попробуйте ещё раз."}function fD(){return Ct({queryKey:["pools","list"],queryFn:oD,staleTime:3e4,retry:!1})}function hD(){return Ct({queryKey:["pools","positions"],queryFn:dD,staleTime:3e4,retry:!1})}function mD(a){const l=a!=null&&a.priceLower>0&&a.priceUpper>0&&(parseFloat(a.amount0Human)>0||parseFloat(a.amount1Human)>0);return Ct({queryKey:["pools","quote",a==null?void 0:a.pool.poolAddress,a==null?void 0:a.priceLower,a==null?void 0:a.priceUpper,a==null?void 0:a.amount0Human,a==null?void 0:a.amount1Human,a==null?void 0:a.slippageBps,a==null?void 0:a.useNativeEth],queryFn:()=>rD(a),enabled:l,staleTime:15e3,retry:!1})}function pD(){const a=Wt();return vt({mutationFn:l=>cD(l),onSettled:()=>{setTimeout(()=>{a.invalidateQueries({queryKey:["wallet","balance","ETH"]}),a.invalidateQueries({queryKey:["pools","positions"]})},1500),setTimeout(()=>{a.invalidateQueries({queryKey:["pools","positions"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})},6e3)}})}function gD(){const a=Wt();return vt({mutationFn:({tokenId:l,percent:i})=>uD(l,i),onSuccess:()=>{a.invalidateQueries({queryKey:["pools","positions"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})}})}const vD={WETH:"ETH",WBTC:"BTC"};function ut(a){return vD[a]??a}function vu(a){return`${a/1e4}%`}const yD="_card_1uvgu_1",_D="_head_1uvgu_8",bD="_title_1uvgu_12",xD="_scroll_1uvgu_20",AD="_message_1uvgu_24",SD="_spinnerWrap_1uvgu_31",jD="_table_1uvgu_38",wD="_thLeft_1uvgu_55",ED="_sortable_1uvgu_59",ND="_arrow_1uvgu_69",CD="_row_1uvgu_73",TD="_rowSelected_1uvgu_74",RD="_tdLeft_1uvgu_96",kD="_tdAction_1uvgu_100",BD="_mono_1uvgu_104",OD="_apr_1uvgu_108",LD="_pairName_1uvgu_113",MD="_fee_1uvgu_118",DD="_btn_1uvgu_128",zD="_btnSelected_1uvgu_129",rt={card:yD,head:_D,title:bD,scroll:xD,message:AD,spinnerWrap:SD,table:jD,thLeft:wD,sortable:ED,arrow:ND,row:CD,rowSelected:TD,tdLeft:RD,tdAction:kD,mono:BD,apr:OD,pairName:LD,fee:MD,btn:DD,btnSelected:zD},jy="—";function S1(a){return a==null?jy:a>=1e6?`$${(a/1e6).toFixed(2)}M`:a>=1e3?`$${(a/1e3).toFixed(2)}K`:`$${a.toFixed(2)}`}function UD(a){return a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}function HD(a){return a==null?jy:`${parseFloat(a.toFixed(3))}%`}function j1(a){return`${ut(a.symbol0)}/${ut(a.symbol1)}`}function qD(a,l,i,r){if(i==="pair"){const g=j1(a).localeCompare(j1(l));return r==="asc"?g:-g}const d=a[i],f=l[i];if(d==null&&f==null)return 0;if(d==null)return 1;if(f==null)return-1;const h=d-f;return r==="asc"?h:-h}function PD({pools:a,selected:l,onSelect:i,loading:r,error:d}){const[f,h]=A.useState(null),[g,m]=A.useState(null);function p(S){if(f!==S){h(S),m("desc");return}g==="desc"?m("asc"):g==="asc"?(h(null),m(null)):m("desc")}const y=A.useMemo(()=>!f||!g?a:[...a].sort((S,j)=>qD(S,j,f,g)),[a,f,g]);function _(S){return f!==S||!g?"":g==="desc"?" ▼":" ▲"}const b=[{key:"pair",label:"Пул",align:"left"},{key:"feeTier",label:"Комиссия",align:"right"},{key:"currentPrice",label:"Цена",align:"right"},{key:"tvlUSD",label:"TVL",align:"right"},{key:"volumeUSD24h",label:"Объём 24ч",align:"right"},{key:"aprPercent",label:"APR",align:"right"}];return o.jsxs("div",{className:rt.card,children:[o.jsx("div",{className:rt.head,children:o.jsx("span",{className:rt.title,children:"Курируемые пулы"})}),r&&o.jsx("div",{className:rt.spinnerWrap,children:o.jsx(Dn,{label:"Загрузка пулов"})}),!r&&d&&o.jsx("div",{className:rt.message,children:d}),!r&&!d&&a.length===0&&o.jsx("div",{className:rt.message,children:"Курируемых пулов пока нет."}),!r&&!d&&a.length>0&&o.jsx("div",{className:rt.scroll,children:o.jsxs("table",{className:rt.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[b.map(S=>o.jsxs("th",{className:`${rt.sortable} ${S.align==="left"?rt.thLeft:""}`,onClick:()=>p(S.key),"aria-sort":f===S.key?g==="asc"?"ascending":"descending":"none",children:[S.label,o.jsx("span",{className:rt.arrow,children:_(S.key)})]},S.key)),o.jsx("th",{"aria-label":"Действие"})]})}),o.jsx("tbody",{children:y.map(S=>{const j=S.poolAddress===l;return o.jsxs("tr",{className:j?rt.rowSelected:rt.row,onClick:()=>i(S.poolAddress),children:[o.jsx("td",{className:rt.tdLeft,children:o.jsxs("span",{className:rt.pairName,children:[ut(S.symbol0),"/",ut(S.symbol1)]})}),o.jsx("td",{children:o.jsx("span",{className:rt.fee,children:vu(S.feeTier)})}),o.jsx("td",{className:rt.mono,children:UD(S.currentPrice)}),o.jsx("td",{className:rt.mono,children:S1(S.tvlUSD)}),o.jsx("td",{className:rt.mono,children:S1(S.volumeUSD24h)}),o.jsx("td",{className:`${rt.mono} ${rt.apr}`,children:HD(S.aprPercent)}),o.jsx("td",{className:rt.tdAction,children:o.jsx("button",{type:"button",className:j?rt.btnSelected:rt.btn,onClick:w=>{w.stopPropagation(),i(S.poolAddress)},children:j?"Выбран":"Выбрать"})})]},S.poolAddress)})})]})})]})}const QD="_card_9umyw_1",FD="_top_9umyw_8",YD="_pair_9umyw_16",GD="_fee_9umyw_25",ID="_tag_9umyw_34",KD="_amounts_9umyw_44",XD="_amountField_9umyw_51",VD="_balance_9umyw_57",ZD="_amountRow_9umyw_64",WD="_amountInput_9umyw_75",JD="_token_9umyw_91",$D="_range_9umyw_101",ez="_priceField_9umyw_108",tz="_priceLabel_9umyw_118",nz="_priceInput_9umyw_124",az="_quote_9umyw_140",sz="_quoteRow_9umyw_147",lz="_quoteLabel_9umyw_160",iz="_quoteValue_9umyw_165",oz="_feeValue_9umyw_173",rz="_success_9umyw_178",cz="_warning_9umyw_182",uz="_submit_9umyw_190",dz="_placeholder_9umyw_195",fz="_placeholderTitle_9umyw_207",hz="_placeholderText_9umyw_214",Ee={card:QD,top:FD,pair:YD,fee:GD,tag:ID,amounts:KD,amountField:XD,balance:VD,amountRow:ZD,amountInput:WD,token:JD,range:$D,priceField:ez,priceLabel:tz,priceInput:nz,quote:az,quoteRow:sz,quoteLabel:lz,quoteValue:iz,feeValue:oz,success:rz,warning:cz,submit:uz,placeholder:dz,placeholderTitle:fz,placeholderText:hz},Gc="—",tm=/^(\d+\.?\d*|\.?\d*)$/;function w1(a,l){var i;return a?ut(l)===a.chain?a.native.formatted:((i=a.tokens[l])==null?void 0:i.formatted)??"0":"0"}function E1({symbol:a,value:l,onChange:i,balance:r}){return o.jsxs("div",{className:Ee.amountField,children:[o.jsxs("div",{className:Ee.amountRow,children:[o.jsx("input",{className:Ee.amountInput,type:"text",inputMode:"decimal",value:l,onChange:d=>{const f=d.target.value;(tm.test(f)||f==="")&&i(f)},placeholder:"0","aria-label":`Сумма ${a}`}),o.jsx("div",{className:Ee.token,children:o.jsx("span",{children:a})})]}),o.jsxs("span",{className:Ee.balance,children:["Баланс: ",nt(r,6)," ",a]})]})}function N1({label:a,value:l,onChange:i}){return o.jsxs("label",{className:Ee.priceField,children:[o.jsx("span",{className:Ee.priceLabel,children:a}),o.jsx("input",{className:Ee.priceInput,type:"text",inputMode:"decimal",value:l,onChange:r=>{const d=r.target.value;(tm.test(d)||d==="")&&i(d)},placeholder:"0"})]})}function mz({pool:a,quote:l,quoteFetching:i,pending:r,amount0:d,amount1:f,priceLower:h,priceUpper:g,slippage:m,onAmount0Change:p,onAmount1Change:y,onPriceLowerChange:_,onPriceUpperChange:b,onSlippageChange:S,onSubmit:j}){const{data:w}=Pi("ETH");if(!a)return o.jsx("div",{className:Ee.card,children:o.jsxs("div",{className:Ee.placeholder,children:[o.jsx("p",{className:Ee.placeholderTitle,children:"Выберите пул"}),o.jsx("p",{className:Ee.placeholderText,children:"Выберите пул в таблице выше, чтобы внести ликвидность."})]})});const E=l==null?void 0:l.balance,R=(E==null?void 0:E.sufficient)===!1,L=(l==null?void 0:l.aprPercent)!=null?`${l.aprPercent}%`:Gc,B=(l==null?void 0:l.appFeeTotalUsd)!=null?`≈ $${l.appFeeTotalUsd.toFixed(2)}`:Gc,q=l?nt(l.amount0DesiredHuman,8):Gc,K=l?nt(l.amount1DesiredHuman,8):Gc,V=E&&E.token1.sufficient===!1?E.token1:E==null?void 0:E.token0,U=!!l&&!R&&!r;return o.jsxs("div",{className:Ee.card,children:[o.jsxs("div",{className:Ee.top,children:[o.jsxs("span",{className:Ee.pair,children:[ut(a.symbol0),"/",ut(a.symbol1)]}),o.jsx("span",{className:Ee.fee,children:vu(a.feeTier)})]}),o.jsx("span",{className:Ee.tag,children:"Суммы взноса"}),o.jsxs("div",{className:Ee.amounts,children:[o.jsx(E1,{symbol:ut(a.symbol0),value:d,onChange:p,balance:w1(w,a.symbol0)}),o.jsx(E1,{symbol:ut(a.symbol1),value:f,onChange:y,balance:w1(w,a.symbol1)})]}),o.jsxs("span",{className:Ee.tag,children:["Диапазон цен (",ut(a.symbol1)," за ",ut(a.symbol0),")"]}),o.jsxs("div",{className:Ee.range,children:[o.jsx(N1,{label:"Мин.",value:h,onChange:_}),o.jsx(N1,{label:"Макс.",value:g,onChange:b}),o.jsxs("label",{className:Ee.priceField,children:[o.jsx("span",{className:Ee.priceLabel,children:"Проскальзывание, %"}),o.jsx("input",{className:Ee.priceInput,type:"text",inputMode:"decimal",value:m,onChange:I=>{const $=I.target.value;(tm.test($)||$==="")&&S($)},placeholder:"1"})]})]}),o.jsxs("div",{className:Ee.quote,"data-loading":i?"true":void 0,children:[o.jsxs("div",{className:Ee.quoteRow,children:[o.jsxs("span",{className:Ee.quoteLabel,children:["Взнос ",ut(a.symbol0)]}),o.jsx("span",{className:Ee.quoteValue,children:q})]}),o.jsxs("div",{className:Ee.quoteRow,children:[o.jsxs("span",{className:Ee.quoteLabel,children:["Взнос ",ut(a.symbol1)]}),o.jsx("span",{className:Ee.quoteValue,children:K})]}),o.jsxs("div",{className:Ee.quoteRow,children:[o.jsx("span",{className:Ee.quoteLabel,children:"Комиссия сервиса (0.7%)"}),o.jsx("span",{className:`${Ee.quoteValue} ${Ee.feeValue}`,children:B})]}),o.jsxs("div",{className:Ee.quoteRow,children:[o.jsx("span",{className:Ee.quoteLabel,children:"Годовая доходность (APR)"}),o.jsx("span",{className:`${Ee.quoteValue} ${Ee.success}`,children:L})]})]}),R&&o.jsxs("p",{className:Ee.warning,children:["Недостаточно средств",V?`: не хватает ${ut(V.symbol)}`:"",". Пополните баланс."]}),o.jsx("div",{className:Ee.submit,children:o.jsx(Zn,{label:r?"Отправка…":"Внести в пул",type:"button",onClick:j,disabled:!U})})]})}const pz="_panel_1yqb9_1",gz="_inner_1yqb9_8",vz="_body_1yqb9_15",yz="_head_1yqb9_60",_z="_title_1yqb9_66",bz="_total_1yqb9_74",xz="_totalUnit_1yqb9_80",Az="_list_1yqb9_85",Sz="_message_1yqb9_91",jz="_pos_1yqb9_98",wz="_posTop_1yqb9_105",Ez="_coin_1yqb9_113",Nz="_fee_1yqb9_122",Cz="_badge_1yqb9_131",Tz="_badgeActive_1yqb9_139",Rz="_badgeWarn_1yqb9_144",kz="_rows_1yqb9_149",Bz="_row_1yqb9_149",Oz="_label_1yqb9_163",Lz="_value_1yqb9_168",Mz="_success_1yqb9_176",Dz="_btn_1yqb9_180",zz="_emptyState_1yqb9_203",Uz="_emptyTitle_1yqb9_215",Hz="_emptyText_1yqb9_222",He={panel:pz,inner:gz,body:vz,head:yz,title:_z,total:bz,totalUnit:xz,list:Az,message:Sz,pos:jz,posTop:wz,coin:Ez,fee:Nz,badge:Cz,badgeActive:Tz,badgeWarn:Rz,rows:kz,row:Bz,label:Oz,value:Lz,success:Mz,btn:Dz,emptyState:zz,emptyTitle:Uz,emptyText:Hz};function qz({positions:a,onRemove:l,removePending:i,isLoading:r,error:d}){const f=a.length===0;return o.jsx("div",{className:He.panel,children:o.jsxs("div",{className:He.inner,children:[o.jsxs("div",{className:He.head,children:[o.jsx("span",{className:He.title,children:"Мои позиции"}),o.jsxs("div",{className:He.total,children:[a.length," ",o.jsx("span",{className:He.totalUnit,children:"NFT"})]})]}),o.jsxs("div",{className:He.body,children:[r&&o.jsx(Dn,{label:"Загрузка позиций"}),!r&&d&&o.jsx("div",{className:He.message,children:d}),!r&&!d&&f&&o.jsxs("div",{className:He.emptyState,children:[o.jsx("p",{className:He.emptyTitle,children:"Активных позиций пока нет"}),o.jsx("p",{className:He.emptyText,children:"На данный момент у Вас нет позиций в пулах ликвидности."})]}),!r&&!d&&!f&&o.jsx("div",{className:He.list,children:a.map(h=>o.jsxs("div",{className:He.pos,children:[o.jsxs("div",{className:He.posTop,children:[o.jsxs("span",{className:He.coin,children:[ut(h.symbol0),"/",ut(h.symbol1),o.jsx("span",{className:He.fee,children:vu(h.feeTier)})]}),o.jsx("span",{className:`${He.badge} ${h.inRange?He.badgeActive:He.badgeWarn}`,children:h.inRange?"В диапазоне":"Вне диапазона"})]}),o.jsxs("div",{className:He.rows,children:[o.jsxs("div",{className:He.row,children:[o.jsx("span",{className:He.label,children:"Диапазон цен"}),o.jsxs("span",{className:He.value,children:[h.priceLower," – ",h.priceUpper]})]}),o.jsxs("div",{className:He.row,children:[o.jsx("span",{className:He.label,children:ut(h.symbol0)}),o.jsx("span",{className:He.value,children:nt(h.currentAmount0Human,8)})]}),o.jsxs("div",{className:He.row,children:[o.jsx("span",{className:He.label,children:ut(h.symbol1)}),o.jsx("span",{className:He.value,children:nt(h.currentAmount1Human,8)})]}),o.jsxs("div",{className:He.row,children:[o.jsx("span",{className:He.label,children:"Комиссии к выводу"}),o.jsxs("span",{className:`${He.value} ${He.success}`,children:[nt(h.feesOwed0Human,8)," ",ut(h.symbol0)," · ",nt(h.feesOwed1Human,8)," ",ut(h.symbol1)]})]})]}),o.jsx("button",{className:He.btn,onClick:()=>l(h.tokenId),disabled:i,children:"Вывести"})]},h.tokenId))})]})]})})}const Pz="_overlay_mbhaz_1",Qz="_card_mbhaz_13",Fz="_header_mbhaz_25",Yz="_title_mbhaz_31",Gz="_closeBtn_mbhaz_37",Iz="_token_mbhaz_52",Kz="_tokenLabel_mbhaz_62",Xz="_tokenAmount_mbhaz_70",Vz="_tokenMeta_mbhaz_77",Zz="_modes_mbhaz_83",Wz="_mode_mbhaz_83",Jz="_modeActive_mbhaz_107",$z="_note_mbhaz_112",eU="_confirmBtn_mbhaz_119",mn={overlay:Pz,card:Qz,header:Fz,title:Yz,closeBtn:Gz,token:Iz,tokenLabel:Kz,tokenAmount:Xz,tokenMeta:Vz,modes:Zz,mode:Wz,modeActive:Jz,note:$z,confirmBtn:eU},tU=[25,50,100];function nU({position:a,pending:l,onConfirm:i,onClose:r}){const[d,f]=A.useState(100);return A.useEffect(()=>{function h(g){g.key==="Escape"&&r()}return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[r]),o.jsx("div",{className:mn.overlay,onClick:r,children:o.jsxs("div",{className:mn.card,onClick:h=>h.stopPropagation(),children:[o.jsxs("div",{className:mn.header,children:[o.jsx("span",{className:mn.title,children:"Вывод ликвидности"}),o.jsx("button",{className:mn.closeBtn,onClick:r,children:"×"})]}),o.jsxs("div",{className:mn.token,children:[o.jsx("span",{className:mn.tokenLabel,children:"Позиция"}),o.jsxs("span",{className:mn.tokenAmount,children:[ut(a.symbol0),"/",ut(a.symbol1)]}),o.jsxs("span",{className:mn.tokenMeta,children:[vu(a.feeTier)," · #",a.tokenId]})]}),o.jsx("div",{className:mn.modes,children:tU.map(h=>o.jsxs("button",{className:`${mn.mode} ${d===h?mn.modeActive:""}`,onClick:()=>f(h),children:[h,"%"]},h))}),d===100&&o.jsx("p",{className:mn.note,children:"При выводе 100% позиция (NFT) будет сожжена."}),o.jsx("button",{className:mn.confirmBtn,onClick:()=>i(d),disabled:l,children:l?"Отправка…":"Подтвердить вывод"})]})})}const aU="_widget_za8nj_1",sU="_grid_za8nj_7",C1={widget:aU,grid:sU},T1=.05;function lU(){var se;const a=fD(),l=hD(),i=pD(),r=gD(),d=a.data??[],f=((se=l.data)==null?void 0:se.positions)??[],[h,g]=A.useState(null),[m,p]=A.useState(""),[y,_]=A.useState(""),[b,S]=A.useState(""),[j,w]=A.useState(""),[E,R]=A.useState("1"),L=!1,[B,q]=A.useState(null),[K,V]=A.useState(null),U=d.find(de=>de.poolAddress===h)??null;function I(de){g(de);const ge=d.find(T=>T.poolAddress===de);ge&&(S((ge.currentPrice*(1-T1)).toFixed(2)),w((ge.currentPrice*(1+T1)).toFixed(2))),p(""),_("")}A.useEffect(()=>{!h&&d.length>0&&I(d[0].poolAddress)},[d,h]);const $=ba(m,400),ue=ba(y,400),re=ba(b,400),ce=ba(j,400),ee=ba(E,400),he=A.useMemo(()=>{if(!U)return null;const de=parseFloat(ee);return{pool:U,amount0Human:$,amount1Human:ue,priceLower:parseFloat(re)||0,priceUpper:parseFloat(ce)||0,slippageBps:Number.isFinite(de)?Math.round(de*100):void 0,useNativeEth:L}},[U,$,ue,re,ce,ee,L]),ae=mD(he);function P(){if(!U)return;const de=parseFloat(E),ge={pool:U,amount0Human:m,amount1Human:y,priceLower:parseFloat(b)||0,priceUpper:parseFloat(j)||0,slippageBps:Number.isFinite(de)?Math.round(de*100):void 0,useNativeEth:L};V({status:"info",message:"Внесение в пул может занять несколько минут…"}),i.mutate(ge,{onSuccess:()=>{V({status:"success",message:`Депозит в пул ${ut(U.symbol0)}/${ut(U.symbol1)} выполнен`}),p(""),_("")},onError:T=>V({status:"error",message:Yc(T)})})}function X(de){B&&r.mutate({tokenId:B.tokenId,percent:de},{onSuccess:()=>{q(null),V({status:"success",message:"Ликвидность выведена на кошелёк"})},onError:ge=>V({status:"error",message:Yc(ge)})})}return o.jsxs("div",{className:C1.widget,children:[o.jsx(PD,{pools:d,selected:h,onSelect:I,loading:a.isLoading,error:a.isError?Yc(a.error):null}),o.jsxs("div",{className:C1.grid,children:[o.jsx(mz,{pool:U,quote:ae.data,quoteFetching:ae.isFetching,pending:i.isPending,amount0:m,amount1:y,priceLower:b,priceUpper:j,slippage:E,onAmount0Change:p,onAmount1Change:_,onPriceLowerChange:S,onPriceUpperChange:w,onSlippageChange:R,onSubmit:P}),o.jsx(qz,{positions:f,onRemove:de=>q(f.find(ge=>ge.tokenId===de)??null),removePending:r.isPending,isLoading:l.isLoading,error:l.isError?Yc(l.error):null})]}),B&&o.jsx(nU,{position:B,pending:r.isPending,onConfirm:X,onClose:()=>q(null)}),K&&o.jsx(ts,{status:K.status,message:K.message,onClose:()=>V(null),duration:5e3})]})}const iU="_page_1j4fk_1",oU="_head_1j4fk_8",rU="_title_1j4fk_12",cU="_subtitle_1j4fk_19",Ic={page:iU,head:oU,title:rU,subtitle:cU};function uU(){return o.jsxs("div",{className:Ic.page,children:[o.jsxs("header",{className:Ic.head,children:[o.jsx("h1",{className:Ic.title,children:"Пулы"}),o.jsx("p",{className:Ic.subtitle,children:"Выберите пул из списка, укажите, количество каждого токена, и задайте диапазон цен, в котором ваши деньги будут работать. Пока цена остаётся в этом диапазоне, вы зарабатываете на комиссиях с каждой сделки в пуле (это и есть APR). Внесённая позиция учитывается как NFT в блоке «Мои позиции», откуда её можно вывести вместе с накопленными комиссиями. Комиссия сервиса на депозит — 0.7%."})]}),o.jsx(lU,{})]})}const dU="_page_1f1vh_1",fU="_rain_1f1vh_14",hU="_drop_1f1vh_21",mU="_content_1f1vh_49",pU="_code_1f1vh_56",gU="_digit_1f1vh_63",vU="_coin_1f1vh_73",yU="_title_1f1vh_90",_U="_subtitle_1f1vh_97",bU="_button_1f1vh_104",aa={page:dU,rain:fU,drop:hU,content:mU,code:pU,digit:gU,coin:vU,title:yU,subtitle:_U,button:bU},R1=[{letter:"₿",color:"#f7931a"},{letter:"Ξ",color:"#627eea"},{letter:"₮",color:"#26a17b"},{letter:"◎",color:"#9945ff"},{letter:"$",color:"#2775ca"},{letter:"₽",color:"#4a6dff"},{letter:"Ʉ",color:"#00d4ff"}],xU=[{left:6,size:34,delay:0,duration:7.5},{left:18,size:26,delay:2.1,duration:9},{left:29,size:44,delay:4.3,duration:6.5},{left:41,size:22,delay:1.2,duration:10},{left:54,size:38,delay:3.4,duration:8},{left:67,size:28,delay:.6,duration:9.5},{left:78,size:48,delay:2.8,duration:7},{left:88,size:24,delay:5,duration:8.5},{left:95,size:32,delay:1.7,duration:9.2}];function AU(){return o.jsxs(o.Fragment,{children:[o.jsx(Ol,{}),o.jsxs("main",{className:aa.page,children:[o.jsx("div",{className:aa.rain,"aria-hidden":"true",children:xU.map((a,l)=>{const i=R1[l%R1.length];return o.jsx("span",{className:aa.drop,style:{left:`${a.left}%`,animationDelay:`${a.delay}s`,animationDuration:`${a.duration}s`},children:o.jsx(Rl,{letter:i.letter,color:i.color,size:a.size})},l)})}),o.jsxs("div",{className:aa.content,children:[o.jsxs("div",{className:aa.code,"aria-hidden":"true",children:[o.jsx("span",{className:aa.digit,children:"4"}),o.jsx("span",{className:aa.coin,children:o.jsx(Rl,{letter:"₿",color:"#f7931a",size:140})}),o.jsx("span",{className:aa.digit,children:"4"})]}),o.jsx("h1",{className:aa.title,children:"Такой страницы не существует"}),o.jsx("p",{className:aa.subtitle,children:"Похоже, курс этого маршрута обнулился. Проверьте адрес или вернитесь на главную."}),o.jsx(vn,{to:ne.HOME,className:aa.button,children:"На главную"})]})]}),o.jsx(Fs,{})]})}const SU="_page_uz94v_1",jU="_main_uz94v_8",wU="_center_uz94v_13",Kc={page:SU,main:jU,center:wU};function k1({footer:a=!1,center:l=!1}){return o.jsxs("div",{className:Kc.page,children:[o.jsx(Wh,{}),o.jsx("main",{className:l?`${Kc.main} ${Kc.center}`:Kc.main,children:o.jsx(cu,{})}),a&&o.jsx(Fs,{})]})}function EU(){const{pathname:a}=Zt();return A.useEffect(()=>{window.scrollTo(0,0)},[a]),null}function NU(){const{isAuthenticated:a,isLoading:l}=kv(),i=Zt();return l?o.jsx(Dn,{overlay:!0,size:"lg",label:"Загрузка"}):a?o.jsx(cu,{}):o.jsx(Hi,{to:ne.LOGIN,state:{from:i},replace:!0})}function CU(){var d,f;const{isAuthenticated:a,isLoading:l}=kv(),r=((f=(d=Zt().state)==null?void 0:d.from)==null?void 0:f.pathname)??ne.WALLET;return l?o.jsx(Dn,{overlay:!0,size:"lg",label:"Загрузка"}):a?o.jsx(Hi,{to:r,replace:!0}):o.jsx(cu,{})}function TU(){return o.jsxs(SA,{children:[o.jsx(EU,{}),o.jsxs($x,{children:[o.jsx(Qe,{path:ne.HOME,element:o.jsx(NN,{})}),o.jsx(Qe,{path:ne.PUBLICHNAYA_OFERTA,element:o.jsx($O,{})}),o.jsx(Qe,{path:ne.POLITIKA_PERSONALNYH_DANNYH,element:o.jsx(tL,{})}),o.jsx(Qe,{path:ne.POLITIKA_COOKIE,element:o.jsx(aL,{})}),o.jsx(Qe,{path:ne.SOGLASIE_PERSONALNYH_DANNYH,element:o.jsx(lL,{})}),o.jsx(Qe,{path:ne.REESTR_PD_RKN,element:o.jsx(oL,{})}),o.jsx(Qe,{path:ne.REGISTER_TEST,element:o.jsx(N9,{})}),o.jsxs(Qe,{element:o.jsx(CU,{}),children:[o.jsx(Qe,{path:ne.LOGIN,element:o.jsx(TB,{})}),o.jsx(Qe,{path:ne.REGISTER,element:o.jsx(l9,{})}),o.jsx(Qe,{path:ne.RESTORE_PASSWORD,element:o.jsx(kO,{})})]}),o.jsxs(Qe,{element:o.jsx(NU,{}),children:[o.jsx(Qe,{element:o.jsx(k1,{footer:!0,center:!0}),children:o.jsx(Qe,{path:ne.CONVERTER,element:o.jsx(K9,{})})}),o.jsxs(Qe,{element:o.jsx(k1,{footer:!0}),children:[o.jsx(Qe,{path:ne.SWAP,element:o.jsx(w8,{})}),o.jsx(Qe,{path:ne.BRIDGE,element:o.jsx(ik,{})}),o.jsx(Qe,{path:ne.STAKING,element:o.jsx(iD,{})}),o.jsx(Qe,{path:ne.POOLS,element:o.jsx(uU,{})}),o.jsxs(Qe,{path:ne.PROFILE,element:o.jsx(j6,{}),children:[o.jsx(Qe,{index:!0,element:o.jsx(Hi,{to:"details",replace:!0})}),o.jsx(Qe,{path:"details",element:o.jsx(w6,{})}),o.jsx(Qe,{path:"security",element:o.jsx(E6,{})}),o.jsx(Qe,{path:"mnemonic",element:o.jsx(K6,{})}),o.jsx(Qe,{path:"transactions",element:o.jsx(fB,{})})]})]}),o.jsx(Qe,{path:ne.TRANSACTIONS,element:o.jsx(Hi,{to:ne.PROFILE_TRANSACTIONS,replace:!0})}),o.jsx(Qe,{path:ne.WALLET,element:o.jsx(Xg,{})}),o.jsx(Qe,{path:ne.WALLET_CHAIN,element:o.jsx(Xg,{})}),o.jsx(Qe,{path:ne.SEED_PHRASE,element:o.jsx(W9,{})}),o.jsx(Qe,{path:ne.KYC,element:o.jsx(yO,{})})]}),o.jsx(Qe,{path:"*",element:o.jsx(AU,{})})]})]})}const RU=new Ej({defaultOptions:{queries:{retry:!1}}});function kU({children:a}){return o.jsx(Nj,{client:RU,children:a})}function BU(){return o.jsx(kU,{children:o.jsx(TU,{})})}$b.createRoot(document.getElementById("root")).render(o.jsx(A.StrictMode,{children:o.jsx(BU,{})}));
