Files
frontend/dist/assets/index-DGfl_oNm.js
2026-05-17 14:56:59 +03:00

154 lines
440 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Eh=l=>{throw TypeError(l)};var v0=(l,s,i)=>s.has(l)||Eh("Cannot "+i);var C=(l,s,i)=>(v0(l,s,"read from private field"),i?i.call(l):s.get(l)),te=(l,s,i)=>s.has(l)?Eh("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(l):s.set(l,i),X=(l,s,i,r)=>(v0(l,s,"write to private field"),r?r.call(l,i):s.set(l,i),i),pe=(l,s,i)=>(v0(l,s,"access private method"),i);var Mr=(l,s,i,r)=>({set _(f){X(l,s,f,i)},get _(){return C(l,s,r)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function i(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(f){if(f.ep)return;f.ep=!0;const h=i(f);fetch(f.href,h)}})();function w4(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var g0={exports:{}},Qs={};/**
* @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 Th;function j4(){if(Th)return Qs;Th=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(r,f,h){var m=null;if(h!==void 0&&(m=""+h),f.key!==void 0&&(m=""+f.key),"key"in f){h={};for(var p in f)p!=="key"&&(h[p]=f[p])}else h=f;return f=h.ref,{$$typeof:l,type:r,key:m,ref:f!==void 0?f:null,props:h}}return Qs.Fragment=s,Qs.jsx=i,Qs.jsxs=i,Qs}var Nh;function E4(){return Nh||(Nh=1,g0.exports=j4()),g0.exports}var u=E4(),y0={exports:{}},oe={};/**
* @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 Rh;function T4(){if(Rh)return oe;Rh=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),w=Symbol.iterator;function R(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,E={};function L(T,H,Y){this.props=T,this.context=H,this.refs=E,this.updater=Y||A}L.prototype.isReactComponent={},L.prototype.setState=function(T,H){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,H,"setState")},L.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Q(){}Q.prototype=L.prototype;function $(T,H,Y){this.props=T,this.context=H,this.refs=E,this.updater=Y||A}var V=$.prototype=new Q;V.constructor=$,D(V,L.prototype),V.isPureReactComponent=!0;var Z=Array.isArray;function ee(){}var K={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function ce(T,H,Y){var J=Y.ref;return{$$typeof:l,type:T,key:H,ref:J!==void 0?J:null,props:Y}}function ue(T,H){return ce(T.type,H,T.props)}function ve(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function Te(T){var H={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Y){return H[Y]})}var se=/\/+/g;function Oe(T,H){return typeof T=="object"&&T!==null&&T.key!=null?Te(""+T.key):H.toString(36)}function Ee(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ee,ee):(T.status="pending",T.then(function(H){T.status==="pending"&&(T.status="fulfilled",T.value=H)},function(H){T.status==="pending"&&(T.status="rejected",T.reason=H)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function U(T,H,Y,J,re){var fe=typeof T;(fe==="undefined"||fe==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(fe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case l:case s:Se=!0;break;case b:return Se=T._init,U(Se(T._payload),H,Y,J,re)}}if(Se)return re=re(T),Se=J===""?"."+Oe(T,0):J,Z(re)?(Y="",Se!=null&&(Y=Se.replace(se,"$&/")+"/"),U(re,H,Y,"",function(Mt){return Mt})):re!=null&&(ve(re)&&(re=ue(re,Y+(re.key==null||T&&T.key===re.key?"":(""+re.key).replace(se,"$&/")+"/")+Se)),H.push(re)),1;Se=0;var at=J===""?".":J+":";if(Z(T))for(var de=0;de<T.length;de++)J=T[de],fe=at+Oe(J,de),Se+=U(J,H,Y,fe,re);else if(de=R(T),typeof de=="function")for(T=de.call(T),de=0;!(J=T.next()).done;)J=J.value,fe=at+Oe(J,de++),Se+=U(J,H,Y,fe,re);else if(fe==="object"){if(typeof T.then=="function")return U(Ee(T),H,Y,J,re);throw H=String(T),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Se}function F(T,H,Y){if(T==null)return T;var J=[],re=0;return U(T,J,"","",function(fe){return H.call(Y,fe,re++)}),J}function le(T){if(T._status===-1){var H=T._result;H=H(),H.then(function(Y){(T._status===0||T._status===-1)&&(T._status=1,T._result=Y)},function(Y){(T._status===0||T._status===-1)&&(T._status=2,T._result=Y)}),T._status===-1&&(T._status=0,T._result=H)}if(T._status===1)return T._result.default;throw T._result}var Ne=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Me={map:F,forEach:function(T,H,Y){F(T,function(){H.apply(this,arguments)},Y)},count:function(T){var H=0;return F(T,function(){H++}),H},toArray:function(T){return F(T,function(H){return H})||[]},only:function(T){if(!ve(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return oe.Activity=_,oe.Children=Me,oe.Component=L,oe.Fragment=i,oe.Profiler=f,oe.PureComponent=$,oe.StrictMode=r,oe.Suspense=g,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,oe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return K.H.useMemoCache(T)}},oe.cache=function(T){return function(){return T.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(T,H,Y){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var J=D({},T.props),re=T.key;if(H!=null)for(fe in H.key!==void 0&&(re=""+H.key),H)!I.call(H,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&H.ref===void 0||(J[fe]=H[fe]);var fe=arguments.length-2;if(fe===1)J.children=Y;else if(1<fe){for(var Se=Array(fe),at=0;at<fe;at++)Se[at]=arguments[at+2];J.children=Se}return ce(T.type,re,J)},oe.createContext=function(T){return T={$$typeof:m,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},oe.createElement=function(T,H,Y){var J,re={},fe=null;if(H!=null)for(J in H.key!==void 0&&(fe=""+H.key),H)I.call(H,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(re[J]=H[J]);var Se=arguments.length-2;if(Se===1)re.children=Y;else if(1<Se){for(var at=Array(Se),de=0;de<Se;de++)at[de]=arguments[de+2];re.children=at}if(T&&T.defaultProps)for(J in Se=T.defaultProps,Se)re[J]===void 0&&(re[J]=Se[J]);return ce(T,fe,re)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(T){return{$$typeof:p,render:T}},oe.isValidElement=ve,oe.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:le}},oe.memo=function(T,H){return{$$typeof:v,type:T,compare:H===void 0?null:H}},oe.startTransition=function(T){var H=K.T,Y={};K.T=Y;try{var J=T(),re=K.S;re!==null&&re(Y,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ee,Ne)}catch(fe){Ne(fe)}finally{H!==null&&Y.types!==null&&(H.types=Y.types),K.T=H}},oe.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},oe.use=function(T){return K.H.use(T)},oe.useActionState=function(T,H,Y){return K.H.useActionState(T,H,Y)},oe.useCallback=function(T,H){return K.H.useCallback(T,H)},oe.useContext=function(T){return K.H.useContext(T)},oe.useDebugValue=function(){},oe.useDeferredValue=function(T,H){return K.H.useDeferredValue(T,H)},oe.useEffect=function(T,H){return K.H.useEffect(T,H)},oe.useEffectEvent=function(T){return K.H.useEffectEvent(T)},oe.useId=function(){return K.H.useId()},oe.useImperativeHandle=function(T,H,Y){return K.H.useImperativeHandle(T,H,Y)},oe.useInsertionEffect=function(T,H){return K.H.useInsertionEffect(T,H)},oe.useLayoutEffect=function(T,H){return K.H.useLayoutEffect(T,H)},oe.useMemo=function(T,H){return K.H.useMemo(T,H)},oe.useOptimistic=function(T,H){return K.H.useOptimistic(T,H)},oe.useReducer=function(T,H,Y){return K.H.useReducer(T,H,Y)},oe.useRef=function(T){return K.H.useRef(T)},oe.useState=function(T){return K.H.useState(T)},oe.useSyncExternalStore=function(T,H,Y){return K.H.useSyncExternalStore(T,H,Y)},oe.useTransition=function(){return K.H.useTransition()},oe.version="19.2.5",oe}var Ah;function c2(){return Ah||(Ah=1,y0.exports=T4()),y0.exports}var x=c2(),_0={exports:{}},Fs={},b0={exports:{}},x0={};/**
* @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 Mh;function N4(){return Mh||(Mh=1,(function(l){function s(U,F){var le=U.length;U.push(F);e:for(;0<le;){var Ne=le-1>>>1,Me=U[Ne];if(0<f(Me,F))U[Ne]=F,U[le]=Me,le=Ne;else break e}}function i(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var F=U[0],le=U.pop();if(le!==F){U[0]=le;e:for(var Ne=0,Me=U.length,T=Me>>>1;Ne<T;){var H=2*(Ne+1)-1,Y=U[H],J=H+1,re=U[J];if(0>f(Y,le))J<Me&&0>f(re,Y)?(U[Ne]=re,U[J]=le,Ne=J):(U[Ne]=Y,U[H]=le,Ne=H);else if(J<Me&&0>f(re,le))U[Ne]=re,U[J]=le,Ne=J;else break e}}return F}function f(U,F){var le=U.sortIndex-F.sortIndex;return le!==0?le:U.id-F.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var m=Date,p=m.now();l.unstable_now=function(){return m.now()-p}}var g=[],v=[],b=1,_=null,w=3,R=!1,A=!1,D=!1,E=!1,L=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function V(U){for(var F=i(v);F!==null;){if(F.callback===null)r(v);else if(F.startTime<=U)r(v),F.sortIndex=F.expirationTime,s(g,F);else break;F=i(v)}}function Z(U){if(D=!1,V(U),!A)if(i(g)!==null)A=!0,ee||(ee=!0,Te());else{var F=i(v);F!==null&&Ee(Z,F.startTime-U)}}var ee=!1,K=-1,I=5,ce=-1;function ue(){return E?!0:!(l.unstable_now()-ce<I)}function ve(){if(E=!1,ee){var U=l.unstable_now();ce=U;var F=!0;try{e:{A=!1,D&&(D=!1,Q(K),K=-1),R=!0;var le=w;try{t:{for(V(U),_=i(g);_!==null&&!(_.expirationTime>U&&ue());){var Ne=_.callback;if(typeof Ne=="function"){_.callback=null,w=_.priorityLevel;var Me=Ne(_.expirationTime<=U);if(U=l.unstable_now(),typeof Me=="function"){_.callback=Me,V(U),F=!0;break t}_===i(g)&&r(g),V(U)}else r(g);_=i(g)}if(_!==null)F=!0;else{var T=i(v);T!==null&&Ee(Z,T.startTime-U),F=!1}}break e}finally{_=null,w=le,R=!1}F=void 0}}finally{F?Te():ee=!1}}}var Te;if(typeof $=="function")Te=function(){$(ve)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,Oe=se.port2;se.port1.onmessage=ve,Te=function(){Oe.postMessage(null)}}else Te=function(){L(ve,0)};function Ee(U,F){K=L(function(){U(l.unstable_now())},F)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(U){U.callback=null},l.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(U){switch(w){case 1:case 2:case 3:var F=3;break;default:F=w}var le=w;w=F;try{return U()}finally{w=le}},l.unstable_requestPaint=function(){E=!0},l.unstable_runWithPriority=function(U,F){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var le=w;w=U;try{return F()}finally{w=le}},l.unstable_scheduleCallback=function(U,F,le){var Ne=l.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?Ne+le:Ne):le=Ne,U){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=le+Me,U={id:b++,callback:F,priorityLevel:U,startTime:le,expirationTime:Me,sortIndex:-1},le>Ne?(U.sortIndex=le,s(v,U),i(g)===null&&U===i(v)&&(D?(Q(K),K=-1):D=!0,Ee(Z,le-Ne))):(U.sortIndex=Me,s(g,U),A||R||(A=!0,ee||(ee=!0,Te()))),U},l.unstable_shouldYield=ue,l.unstable_wrapCallback=function(U){var F=w;return function(){var le=w;w=F;try{return U.apply(this,arguments)}finally{w=le}}}})(x0)),x0}var zh;function R4(){return zh||(zh=1,b0.exports=N4()),b0.exports}var S0={exports:{}},xt={};/**
* @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 Dh;function A4(){if(Dh)return xt;Dh=1;var l=c2();function s(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)v+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+v+" 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(s(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(g,v,b){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:_==null?null:""+_,children:g,containerInfo:v,implementation:b}}var m=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,xt.createPortal=function(g,v){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(s(299));return h(g,v,null,b)},xt.flushSync=function(g){var v=m.T,b=r.p;try{if(m.T=null,r.p=2,g)return g()}finally{m.T=v,r.p=b,r.d.f()}},xt.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(g,v))},xt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},xt.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var b=v.as,_=p(b,v.crossOrigin),w=typeof v.integrity=="string"?v.integrity:void 0,R=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;b==="style"?r.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:_,integrity:w,fetchPriority:R}):b==="script"&&r.d.X(g,{crossOrigin:_,integrity:w,fetchPriority:R,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},xt.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var b=p(v.as,v.crossOrigin);r.d.M(g,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(g)},xt.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var b=v.as,_=p(b,v.crossOrigin);r.d.L(g,b,{crossOrigin:_,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},xt.preloadModule=function(g,v){if(typeof g=="string")if(v){var b=p(v.as,v.crossOrigin);r.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(g)},xt.requestFormReset=function(g){r.d.r(g)},xt.unstable_batchedUpdates=function(g,v){return g(v)},xt.useFormState=function(g,v,b){return m.H.useFormState(g,v,b)},xt.useFormStatus=function(){return m.H.useHostTransitionStatus()},xt.version="19.2.5",xt}var Oh;function M4(){if(Oh)return S0.exports;Oh=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),S0.exports=A4(),S0.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 Lh;function z4(){if(Lh)return Fs;Lh=1;var l=R4(),s=c2(),i=M4();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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 m(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 p(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 g(e){if(h(e)!==e)throw Error(r(188))}function v(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var c=n.return;if(c===null)break;var o=c.alternate;if(o===null){if(a=c.return,a!==null){n=a;continue}break}if(c.child===o.child){for(o=c.child;o;){if(o===n)return g(c),e;if(o===a)return g(c),t;o=o.sibling}throw Error(r(188))}if(n.return!==a.return)n=c,a=o;else{for(var d=!1,y=c.child;y;){if(y===n){d=!0,n=c,a=o;break}if(y===a){d=!0,a=c,n=o;break}y=y.sibling}if(!d){for(y=o.child;y;){if(y===n){d=!0,n=o,a=c;break}if(y===a){d=!0,a=o,n=c;break}y=y.sibling}if(!d)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,w=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),$=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function Te(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function Oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case L:return"Profiler";case E:return"StrictMode";case Z:return"Suspense";case ee:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case $:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Oe(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return Oe(e(t))}catch{}}return null}var Ee=Array.isArray,U=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Ne=[],Me=-1;function T(e){return{current:e}}function H(e){0>Me||(e.current=Ne[Me],Ne[Me]=null,Me--)}function Y(e,t){Me++,Ne[Me]=e.current,e.current=t}var J=T(null),re=T(null),fe=T(null),Se=T(null);function at(e,t){switch(Y(fe,t),Y(re,e),Y(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?K1(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=K1(t),e=J1(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(J),Y(J,e)}function de(){H(J),H(re),H(fe)}function Mt(e){e.memoizedState!==null&&Y(Se,e);var t=J.current,n=J1(t,e.type);t!==n&&(Y(re,e),Y(J,n))}function zn(e){re.current===e&&(H(J),H(re)),Se.current===e&&(H(Se),qs._currentValue=le)}var ql,Ji;function Dn(e){if(ql===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ql=t&&t[1]||"",Ji=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ql+e+Ji}var Gl=!1;function Xe(e,t){if(!e||Gl)return"";Gl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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(B){var O=B}Reflect.construct(e,[],G)}else{try{G.call()}catch(B){O=B}e.call(G.prototype)}}else{try{throw Error()}catch(B){O=B}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(B){if(B&&O&&typeof B.stack=="string")return[B.stack,O.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),d=o[0],y=o[1];if(d&&y){var S=d.split(`
`),z=y.split(`
`);for(c=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;c<z.length&&!z[c].includes("DetermineComponentFrameRoot");)c++;if(a===S.length||c===z.length)for(a=S.length-1,c=z.length-1;1<=a&&0<=c&&S[a]!==z[c];)c--;for(;1<=a&&0<=c;a--,c--)if(S[a]!==z[c]){if(a!==1||c!==1)do if(a--,c--,0>c||S[a]!==z[c]){var k=`
`+S[a].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=a&&0<=c);break}}}finally{Gl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Dn(n):""}function _a(e,t){switch(e.tag){case 26:case 27:case 5:return Dn(e.type);case 16:return Dn("Lazy");case 13:return e.child!==t&&t!==null?Dn("Suspense Fallback"):Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 15:return Xe(e.type,!1);case 11:return Xe(e.type.render,!1);case 1:return Xe(e.type,!0);case 31:return Dn("Activity");default:return""}}function Wi(e){try{var t="",n=null;do t+=_a(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var eo=Object.prototype.hasOwnProperty,to=l.unstable_scheduleCallback,no=l.unstable_cancelCallback,np=l.unstable_shouldYield,ap=l.unstable_requestPaint,Qt=l.unstable_now,lp=l.unstable_getCurrentPriorityLevel,E2=l.unstable_ImmediatePriority,T2=l.unstable_UserBlockingPriority,mc=l.unstable_NormalPriority,ip=l.unstable_LowPriority,N2=l.unstable_IdlePriority,sp=l.log,cp=l.unstable_setDisableYieldValue,Ii=null,Ft=null;function ba(e){if(typeof sp=="function"&&cp(e),Ft&&typeof Ft.setStrictMode=="function")try{Ft.setStrictMode(Ii,e)}catch{}}var Yt=Math.clz32?Math.clz32:up,rp=Math.log,op=Math.LN2;function up(e){return e>>>=0,e===0?32:31-(rp(e)/op|0)|0}var pc=256,vc=262144,gc=4194304;function ll(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 yc(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var c=0,o=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~o,a!==0?c=ll(a):(d&=y,d!==0?c=ll(d):n||(n=y&~e,n!==0&&(c=ll(n))))):(y=a&~o,y!==0?c=ll(y):d!==0?c=ll(d):n||(n=a&~e,n!==0&&(c=ll(n)))),c===0?0:t!==0&&t!==c&&(t&o)===0&&(o=c&-c,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:c}function Pi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fp(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 R2(){var e=gc;return gc<<=1,(gc&62914560)===0&&(gc=4194304),e}function ao(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function es(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dp(e,t,n,a,c,o){var d=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 y=e.entanglements,S=e.expirationTimes,z=e.hiddenUpdates;for(n=d&~n;0<n;){var k=31-Yt(n),G=1<<k;y[k]=0,S[k]=-1;var O=z[k];if(O!==null)for(z[k]=null,k=0;k<O.length;k++){var B=O[k];B!==null&&(B.lane&=-536870913)}n&=~G}a!==0&&A2(e,a,0),o!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=o&~(d&~t))}function A2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function M2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Yt(n),c=1<<a;c&t|e[a]&t&&(e[a]|=t),n&=~c}}function z2(e,t){var n=t&-t;return n=(n&42)!==0?1:lo(n),(n&(e.suspendedLanes|t))!==0?0:n}function lo(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 io(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function D2(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:_h(e.type))}function O2(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var xa=Math.random().toString(36).slice(2),vt="__reactFiber$"+xa,zt="__reactProps$"+xa,$l="__reactContainer$"+xa,so="__reactEvents$"+xa,hp="__reactListeners$"+xa,mp="__reactHandles$"+xa,L2="__reactResources$"+xa,ts="__reactMarker$"+xa;function co(e){delete e[vt],delete e[zt],delete e[so],delete e[hp],delete e[mp]}function Vl(e){var t=e[vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$l]||n[vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ah(e);e!==null;){if(n=e[vt])return n;e=ah(e)}return t}e=n,n=e.parentNode}return null}function Ql(e){if(e=e[vt]||e[$l]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ns(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Fl(e){var t=e[L2];return t||(t=e[L2]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[ts]=!0}var B2=new Set,U2={};function il(e,t){Yl(e,t),Yl(e+"Capture",t)}function Yl(e,t){for(U2[e]=t,e=0;e<t.length;e++)B2.add(t[e])}var pp=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]*$"),k2={},H2={};function vp(e){return eo.call(H2,e)?!0:eo.call(k2,e)?!1:pp.test(e)?H2[e]=!0:(k2[e]=!0,!1)}function _c(e,t,n){if(vp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function bc(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 Yn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function rn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gp(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(d){n=""+d,o.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ro(e){if(!e._valueTracker){var t=q2(e)?"checked":"value";e._valueTracker=gp(e,t,""+e[t])}}function G2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=q2(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function xc(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 yp=/[\n"\\]/g;function on(e){return e.replace(yp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function oo(e,t,n,a,c,o,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+rn(t)):e.value!==""+rn(t)&&(e.value=""+rn(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?uo(e,d,rn(t)):n!=null?uo(e,d,rn(n)):a!=null&&e.removeAttribute("value"),c==null&&o!=null&&(e.defaultChecked=!!o),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+rn(y):e.removeAttribute("name")}function $2(e,t,n,a,c,o,d,y){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){ro(e);return}n=n!=null?""+rn(n):"",t=t!=null?""+rn(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??c,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),ro(e)}function uo(e,t,n){t==="number"&&xc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Xl(e,t,n,a){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&&a&&(e[n].defaultSelected=!0)}else{for(n=""+rn(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function V2(e,t,n){if(t!=null&&(t=""+rn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+rn(n):""}function Q2(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(Ee(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=rn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ro(e)}function Zl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _p=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 F2(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||_p.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Y2(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var c in t)a=t[c],t.hasOwnProperty(c)&&n[c]!==a&&F2(e,c,a)}else for(var o in t)t.hasOwnProperty(o)&&F2(e,o,t[o])}function fo(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 bp=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"]]),xp=/^[\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 Sc(e){return xp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xn(){}var ho=null;function mo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kl=null,Jl=null;function X2(e){var t=Ql(e);if(t&&(e=t.stateNode)){var n=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(oo(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="'+on(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var c=a[zt]||null;if(!c)throw Error(r(90));oo(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&G2(a)}break e;case"textarea":V2(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Xl(e,!!n.multiple,t,!1)}}}var po=!1;function Z2(e,t,n){if(po)return e(t,n);po=!0;try{var a=e(t);return a}finally{if(po=!1,(Kl!==null||Jl!==null)&&(or(),Kl&&(t=Kl,e=Jl,Jl=Kl=null,X2(t),e)))for(t=0;t<e.length;t++)X2(e[t])}}function as(e,t){var n=e.stateNode;if(n===null)return null;var a=n[zt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vo=!1;if(Zn)try{var ls={};Object.defineProperty(ls,"passive",{get:function(){vo=!0}}),window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{vo=!1}var Sa=null,go=null,Cc=null;function K2(){if(Cc)return Cc;var e,t=go,n=t.length,a,c="value"in Sa?Sa.value:Sa.textContent,o=c.length;for(e=0;e<n&&t[e]===c[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===c[o-a];a++);return Cc=c.slice(e,1<a?1-a:void 0)}function wc(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 jc(){return!0}function J2(){return!1}function Dt(e){function t(n,a,c,o,d){this._reactName=n,this._targetInst=c,this.type=a,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(o):o[y]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?jc:J2,this.isPropagationStopped=J2,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=jc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jc)},persist:function(){},isPersistent:jc}),t}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ec=Dt(sl),is=_({},sl,{view:0,detail:0}),Sp=Dt(is),yo,_o,ss,Tc=_({},is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xo,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!==ss&&(ss&&e.type==="mousemove"?(yo=e.screenX-ss.screenX,_o=e.screenY-ss.screenY):_o=yo=0,ss=e),yo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),W2=Dt(Tc),Cp=_({},Tc,{dataTransfer:0}),wp=Dt(Cp),jp=_({},is,{relatedTarget:0}),bo=Dt(jp),Ep=_({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),Tp=Dt(Ep),Np=_({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rp=Dt(Np),Ap=_({},sl,{data:0}),I2=Dt(Ap),Mp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zp={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"},Dp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Op(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dp[e])?!!t[e]:!1}function xo(){return Op}var Lp=_({},is,{key:function(e){if(e.key){var t=Mp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xo,charCode:function(e){return e.type==="keypress"?wc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bp=Dt(Lp),Up=_({},Tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),P2=Dt(Up),kp=_({},is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xo}),Hp=Dt(kp),qp=_({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gp=Dt(qp),$p=_({},Tc,{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}),Vp=Dt($p),Qp=_({},sl,{newState:0,oldState:0}),Fp=Dt(Qp),Yp=[9,13,27,32],So=Zn&&"CompositionEvent"in window,cs=null;Zn&&"documentMode"in document&&(cs=document.documentMode);var Xp=Zn&&"TextEvent"in window&&!cs,ef=Zn&&(!So||cs&&8<cs&&11>=cs),tf=" ",nf=!1;function af(e,t){switch(e){case"keyup":return Yp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wl=!1;function Zp(e,t){switch(e){case"compositionend":return lf(t);case"keypress":return t.which!==32?null:(nf=!0,tf);case"textInput":return e=t.data,e===tf&&nf?null:e;default:return null}}function Kp(e,t){if(Wl)return e==="compositionend"||!So&&af(e,t)?(e=K2(),Cc=go=Sa=null,Wl=!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 ef&&t.locale!=="ko"?null:t.data;default:return null}}var Jp={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 sf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jp[e.type]:t==="textarea"}function cf(e,t,n,a){Kl?Jl?Jl.push(a):Jl=[a]:Kl=a,t=vr(t,"onChange"),0<t.length&&(n=new Ec("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var rs=null,os=null;function Wp(e){V1(e,0)}function Nc(e){var t=ns(e);if(G2(t))return e}function rf(e,t){if(e==="change")return t}var of=!1;if(Zn){var Co;if(Zn){var wo="oninput"in document;if(!wo){var uf=document.createElement("div");uf.setAttribute("oninput","return;"),wo=typeof uf.oninput=="function"}Co=wo}else Co=!1;of=Co&&(!document.documentMode||9<document.documentMode)}function ff(){rs&&(rs.detachEvent("onpropertychange",df),os=rs=null)}function df(e){if(e.propertyName==="value"&&Nc(os)){var t=[];cf(t,os,e,mo(e)),Z2(Wp,t)}}function Ip(e,t,n){e==="focusin"?(ff(),rs=t,os=n,rs.attachEvent("onpropertychange",df)):e==="focusout"&&ff()}function Pp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nc(os)}function ev(e,t){if(e==="click")return Nc(t)}function tv(e,t){if(e==="input"||e==="change")return Nc(t)}function nv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xt=typeof Object.is=="function"?Object.is:nv;function us(e,t){if(Xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var c=n[a];if(!eo.call(t,c)||!Xt(e[c],t[c]))return!1}return!0}function hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mf(e,t){var n=hf(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hf(n)}}function pf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xc(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=xc(e.document)}return t}function jo(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 av=Zn&&"documentMode"in document&&11>=document.documentMode,Il=null,Eo=null,fs=null,To=!1;function gf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;To||Il==null||Il!==xc(a)||(a=Il,"selectionStart"in a&&jo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),fs&&us(fs,a)||(fs=a,a=vr(Eo,"onSelect"),0<a.length&&(t=new Ec("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Il)))}function cl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pl={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionrun:cl("Transition","TransitionRun"),transitionstart:cl("Transition","TransitionStart"),transitioncancel:cl("Transition","TransitionCancel"),transitionend:cl("Transition","TransitionEnd")},No={},yf={};Zn&&(yf=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function rl(e){if(No[e])return No[e];if(!Pl[e])return e;var t=Pl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yf)return No[e]=t[n];return e}var _f=rl("animationend"),bf=rl("animationiteration"),xf=rl("animationstart"),lv=rl("transitionrun"),iv=rl("transitionstart"),sv=rl("transitioncancel"),Sf=rl("transitionend"),Cf=new Map,Ro="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(" ");Ro.push("scrollEnd");function jn(e,t){Cf.set(e,t),il(t,[e])}var Rc=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)},un=[],ei=0,Ao=0;function Ac(){for(var e=ei,t=Ao=ei=0;t<e;){var n=un[t];un[t++]=null;var a=un[t];un[t++]=null;var c=un[t];un[t++]=null;var o=un[t];if(un[t++]=null,a!==null&&c!==null){var d=a.pending;d===null?c.next=c:(c.next=d.next,d.next=c),a.pending=c}o!==0&&wf(n,c,o)}}function Mc(e,t,n,a){un[ei++]=e,un[ei++]=t,un[ei++]=n,un[ei++]=a,Ao|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Mo(e,t,n,a){return Mc(e,t,n,a),zc(e)}function ol(e,t){return Mc(e,null,null,t),zc(e)}function wf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var c=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(c=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,c&&t!==null&&(c=31-Yt(n),e=o.hiddenUpdates,a=e[c],a===null?e[c]=[t]:a.push(t),t.lane=n|536870912),o):null}function zc(e){if(50<Ds)throw Ds=0,qu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ti={};function cv(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(e,t,n,a){return new cv(e,t,n,a)}function zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kn(e,t){var n=e.alternate;return n===null?(n=Zt(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 jf(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 Dc(e,t,n,a,c,o){var d=0;if(a=e,typeof e=="function")zo(e)&&(d=1);else if(typeof e=="string")d=d4(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Zt(31,n,t,c),e.elementType=ce,e.lanes=o,e;case D:return ul(n.children,c,o,t);case E:d=8,c|=24;break;case L:return e=Zt(12,n,t,c|2),e.elementType=L,e.lanes=o,e;case Z:return e=Zt(13,n,t,c),e.elementType=Z,e.lanes=o,e;case ee:return e=Zt(19,n,t,c),e.elementType=ee,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:d=10;break e;case Q:d=9;break e;case V:d=11;break e;case K:d=14;break e;case I:d=16,a=null;break e}d=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=Zt(d,n,t,c),t.elementType=e,t.type=a,t.lanes=o,t}function ul(e,t,n,a){return e=Zt(7,e,a,t),e.lanes=n,e}function Do(e,t,n){return e=Zt(6,e,null,t),e.lanes=n,e}function Ef(e){var t=Zt(18,null,null,0);return t.stateNode=e,t}function Oo(e,t,n){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Tf=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var n=Tf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Wi(t)},Tf.set(e,t),t)}return{value:e,source:t,stack:Wi(t)}}var ni=[],ai=0,Oc=null,ds=0,dn=[],hn=0,Ca=null,On=1,Ln="";function Jn(e,t){ni[ai++]=ds,ni[ai++]=Oc,Oc=e,ds=t}function Nf(e,t,n){dn[hn++]=On,dn[hn++]=Ln,dn[hn++]=Ca,Ca=e;var a=On;e=Ln;var c=32-Yt(a)-1;a&=~(1<<c),n+=1;var o=32-Yt(t)+c;if(30<o){var d=c-c%5;o=(a&(1<<d)-1).toString(32),a>>=d,c-=d,On=1<<32-Yt(t)+c|n<<c|a,Ln=o+e}else On=1<<o|n<<c|a,Ln=e}function Lo(e){e.return!==null&&(Jn(e,1),Nf(e,1,0))}function Bo(e){for(;e===Oc;)Oc=ni[--ai],ni[ai]=null,ds=ni[--ai],ni[ai]=null;for(;e===Ca;)Ca=dn[--hn],dn[hn]=null,Ln=dn[--hn],dn[hn]=null,On=dn[--hn],dn[hn]=null}function Rf(e,t){dn[hn++]=On,dn[hn++]=Ln,dn[hn++]=Ca,On=t.id,Ln=t.overflow,Ca=e}var gt=null,Qe=null,Ce=!1,wa=null,mn=!1,Uo=Error(r(519));function ja(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hs(fn(t,e)),Uo}function Af(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[vt]=e,t[zt]=a,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<Ls.length;n++)_e(Ls[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),$2(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),Q2(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||X1(t.textContent,n)?(a.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),a.onScroll!=null&&_e("scroll",t),a.onScrollEnd!=null&&_e("scrollend",t),a.onClick!=null&&(t.onclick=Xn),t=!0):t=!1,t||ja(e,!0)}function Mf(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:mn=!1;return;case 27:case 3:mn=!0;return;default:gt=gt.return}}function li(e){if(e!==gt)return!1;if(!Ce)return Mf(e),Ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||t0(e.type,e.memoizedProps)),n=!n),n&&Qe&&ja(e),Mf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=nh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=nh(e)}else t===27?(t=Qe,Ha(e.type)?(e=s0,s0=null,Qe=e):Qe=t):Qe=gt?vn(e.stateNode.nextSibling):null;return!0}function fl(){Qe=gt=null,Ce=!1}function ko(){var e=wa;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),wa=null),e}function hs(e){wa===null?wa=[e]:wa.push(e)}var Ho=T(null),dl=null,Wn=null;function Ea(e,t,n){Y(Ho,t._currentValue),t._currentValue=n}function In(e){e._currentValue=Ho.current,H(Ho)}function qo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Go(e,t,n,a){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var o=c.dependencies;if(o!==null){var d=c.child;o=o.firstContext;e:for(;o!==null;){var y=o;o=c;for(var S=0;S<t.length;S++)if(y.context===t[S]){o.lanes|=n,y=o.alternate,y!==null&&(y.lanes|=n),qo(o.return,n,e),a||(d=null);break e}o=y.next}}else if(c.tag===18){if(d=c.return,d===null)throw Error(r(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),qo(d,n,e),d=null}else d=c.child;if(d!==null)d.return=c;else for(d=c;d!==null;){if(d===e){d=null;break}if(c=d.sibling,c!==null){c.return=d.return,d=c;break}d=d.return}c=d}}function ii(e,t,n,a){e=null;for(var c=t,o=!1;c!==null;){if(!o){if((c.flags&524288)!==0)o=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var d=c.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var y=c.type;Xt(c.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(c===Se.current){if(d=c.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(qs):e=[qs])}c=c.return}e!==null&&Go(t,e,n,a),t.flags|=262144}function Lc(e){for(e=e.firstContext;e!==null;){if(!Xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hl(e){dl=e,Wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return zf(dl,e)}function Bc(e,t){return dl===null&&hl(e),zf(e,t)}function zf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wn===null){if(e===null)throw Error(r(308));Wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wn=Wn.next=t;return n}var rv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},ov=l.unstable_scheduleCallback,uv=l.unstable_NormalPriority,lt={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $o(){return{controller:new rv,data:new Map,refCount:0}}function ms(e){e.refCount--,e.refCount===0&&ov(uv,function(){e.controller.abort()})}var ps=null,Vo=0,si=0,ci=null;function fv(e,t){if(ps===null){var n=ps=[];Vo=0,si=Yu(),ci={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Vo++,t.then(Df,Df),t}function Df(){if(--Vo===0&&ps!==null){ci!==null&&(ci.status="fulfilled");var e=ps;ps=null,si=0,ci=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(a.status="rejected",a.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),a}var Of=U.S;U.S=function(e,t){g1=Qt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&fv(e,t),Of!==null&&Of(e,t)};var ml=T(null);function Qo(){var e=ml.current;return e!==null?e:$e.pooledCache}function Uc(e,t){t===null?Y(ml,ml.current):Y(ml,t.pool)}function Lf(){var e=Qo();return e===null?null:{parent:lt._currentValue,pool:e}}var ri=Error(r(460)),Fo=Error(r(474)),kc=Error(r(542)),Hc={then:function(){}};function Bf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Uf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xn,Xn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e;default:if(typeof t.status=="string")t.then(Xn,Xn);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=a}},function(a){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e}throw vl=t,ri}}function pl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(vl=n,ri):n}}var vl=null;function kf(){if(vl===null)throw Error(r(459));var e=vl;return vl=null,e}function Hf(e){if(e===ri||e===kc)throw Error(r(483))}var oi=null,vs=0;function qc(e){var t=vs;return vs+=1,oi===null&&(oi=[]),Uf(oi,e,t)}function gs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gc(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qf(e){function t(N,j){if(e){var M=N.deletions;M===null?(N.deletions=[j],N.flags|=16):M.push(j)}}function n(N,j){if(!e)return null;for(;j!==null;)t(N,j),j=j.sibling;return null}function a(N){for(var j=new Map;N!==null;)N.key!==null?j.set(N.key,N):j.set(N.index,N),N=N.sibling;return j}function c(N,j){return N=Kn(N,j),N.index=0,N.sibling=null,N}function o(N,j,M){return N.index=M,e?(M=N.alternate,M!==null?(M=M.index,M<j?(N.flags|=67108866,j):M):(N.flags|=67108866,j)):(N.flags|=1048576,j)}function d(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function y(N,j,M,q){return j===null||j.tag!==6?(j=Do(M,N.mode,q),j.return=N,j):(j=c(j,M),j.return=N,j)}function S(N,j,M,q){var ne=M.type;return ne===D?k(N,j,M.props.children,q,M.key):j!==null&&(j.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===I&&pl(ne)===j.type)?(j=c(j,M.props),gs(j,M),j.return=N,j):(j=Dc(M.type,M.key,M.props,null,N.mode,q),gs(j,M),j.return=N,j)}function z(N,j,M,q){return j===null||j.tag!==4||j.stateNode.containerInfo!==M.containerInfo||j.stateNode.implementation!==M.implementation?(j=Oo(M,N.mode,q),j.return=N,j):(j=c(j,M.children||[]),j.return=N,j)}function k(N,j,M,q,ne){return j===null||j.tag!==7?(j=ul(M,N.mode,q,ne),j.return=N,j):(j=c(j,M),j.return=N,j)}function G(N,j,M){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Do(""+j,N.mode,M),j.return=N,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case R:return M=Dc(j.type,j.key,j.props,null,N.mode,M),gs(M,j),M.return=N,M;case A:return j=Oo(j,N.mode,M),j.return=N,j;case I:return j=pl(j),G(N,j,M)}if(Ee(j)||Te(j))return j=ul(j,N.mode,M,null),j.return=N,j;if(typeof j.then=="function")return G(N,qc(j),M);if(j.$$typeof===$)return G(N,Bc(N,j),M);Gc(N,j)}return null}function O(N,j,M,q){var ne=j!==null?j.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ne!==null?null:y(N,j,""+M,q);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case R:return M.key===ne?S(N,j,M,q):null;case A:return M.key===ne?z(N,j,M,q):null;case I:return M=pl(M),O(N,j,M,q)}if(Ee(M)||Te(M))return ne!==null?null:k(N,j,M,q,null);if(typeof M.then=="function")return O(N,j,qc(M),q);if(M.$$typeof===$)return O(N,j,Bc(N,M),q);Gc(N,M)}return null}function B(N,j,M,q,ne){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return N=N.get(M)||null,y(j,N,""+q,ne);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case R:return N=N.get(q.key===null?M:q.key)||null,S(j,N,q,ne);case A:return N=N.get(q.key===null?M:q.key)||null,z(j,N,q,ne);case I:return q=pl(q),B(N,j,M,q,ne)}if(Ee(q)||Te(q))return N=N.get(M)||null,k(j,N,q,ne,null);if(typeof q.then=="function")return B(N,j,M,qc(q),ne);if(q.$$typeof===$)return B(N,j,M,Bc(j,q),ne);Gc(j,q)}return null}function W(N,j,M,q){for(var ne=null,Re=null,P=j,me=j=0,xe=null;P!==null&&me<M.length;me++){P.index>me?(xe=P,P=null):xe=P.sibling;var Ae=O(N,P,M[me],q);if(Ae===null){P===null&&(P=xe);break}e&&P&&Ae.alternate===null&&t(N,P),j=o(Ae,j,me),Re===null?ne=Ae:Re.sibling=Ae,Re=Ae,P=xe}if(me===M.length)return n(N,P),Ce&&Jn(N,me),ne;if(P===null){for(;me<M.length;me++)P=G(N,M[me],q),P!==null&&(j=o(P,j,me),Re===null?ne=P:Re.sibling=P,Re=P);return Ce&&Jn(N,me),ne}for(P=a(P);me<M.length;me++)xe=B(P,N,me,M[me],q),xe!==null&&(e&&xe.alternate!==null&&P.delete(xe.key===null?me:xe.key),j=o(xe,j,me),Re===null?ne=xe:Re.sibling=xe,Re=xe);return e&&P.forEach(function(Qa){return t(N,Qa)}),Ce&&Jn(N,me),ne}function ie(N,j,M,q){if(M==null)throw Error(r(151));for(var ne=null,Re=null,P=j,me=j=0,xe=null,Ae=M.next();P!==null&&!Ae.done;me++,Ae=M.next()){P.index>me?(xe=P,P=null):xe=P.sibling;var Qa=O(N,P,Ae.value,q);if(Qa===null){P===null&&(P=xe);break}e&&P&&Qa.alternate===null&&t(N,P),j=o(Qa,j,me),Re===null?ne=Qa:Re.sibling=Qa,Re=Qa,P=xe}if(Ae.done)return n(N,P),Ce&&Jn(N,me),ne;if(P===null){for(;!Ae.done;me++,Ae=M.next())Ae=G(N,Ae.value,q),Ae!==null&&(j=o(Ae,j,me),Re===null?ne=Ae:Re.sibling=Ae,Re=Ae);return Ce&&Jn(N,me),ne}for(P=a(P);!Ae.done;me++,Ae=M.next())Ae=B(P,N,me,Ae.value,q),Ae!==null&&(e&&Ae.alternate!==null&&P.delete(Ae.key===null?me:Ae.key),j=o(Ae,j,me),Re===null?ne=Ae:Re.sibling=Ae,Re=Ae);return e&&P.forEach(function(C4){return t(N,C4)}),Ce&&Jn(N,me),ne}function Ge(N,j,M,q){if(typeof M=="object"&&M!==null&&M.type===D&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case R:e:{for(var ne=M.key;j!==null;){if(j.key===ne){if(ne=M.type,ne===D){if(j.tag===7){n(N,j.sibling),q=c(j,M.props.children),q.return=N,N=q;break e}}else if(j.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===I&&pl(ne)===j.type){n(N,j.sibling),q=c(j,M.props),gs(q,M),q.return=N,N=q;break e}n(N,j);break}else t(N,j);j=j.sibling}M.type===D?(q=ul(M.props.children,N.mode,q,M.key),q.return=N,N=q):(q=Dc(M.type,M.key,M.props,null,N.mode,q),gs(q,M),q.return=N,N=q)}return d(N);case A:e:{for(ne=M.key;j!==null;){if(j.key===ne)if(j.tag===4&&j.stateNode.containerInfo===M.containerInfo&&j.stateNode.implementation===M.implementation){n(N,j.sibling),q=c(j,M.children||[]),q.return=N,N=q;break e}else{n(N,j);break}else t(N,j);j=j.sibling}q=Oo(M,N.mode,q),q.return=N,N=q}return d(N);case I:return M=pl(M),Ge(N,j,M,q)}if(Ee(M))return W(N,j,M,q);if(Te(M)){if(ne=Te(M),typeof ne!="function")throw Error(r(150));return M=ne.call(M),ie(N,j,M,q)}if(typeof M.then=="function")return Ge(N,j,qc(M),q);if(M.$$typeof===$)return Ge(N,j,Bc(N,M),q);Gc(N,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,j!==null&&j.tag===6?(n(N,j.sibling),q=c(j,M),q.return=N,N=q):(n(N,j),q=Do(M,N.mode,q),q.return=N,N=q),d(N)):n(N,j)}return function(N,j,M,q){try{vs=0;var ne=Ge(N,j,M,q);return oi=null,ne}catch(P){if(P===ri||P===kc)throw P;var Re=Zt(29,P,null,N.mode);return Re.lanes=q,Re.return=N,Re}finally{}}}var gl=qf(!0),Gf=qf(!1),Ta=!1;function Yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xo(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 Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ze&2)!==0){var c=a.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),a.pending=t,t=zc(e),wf(e,null,n),t}return Mc(e,a,t,n),zc(e)}function ys(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,M2(e,n)}}function Zo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var c=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?c=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?c=o=t:o=o.next=t}else c=o=t;n={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ko=!1;function _s(){if(Ko){var e=ci;if(e!==null)throw e}}function bs(e,t,n,a){Ko=!1;var c=e.updateQueue;Ta=!1;var o=c.firstBaseUpdate,d=c.lastBaseUpdate,y=c.shared.pending;if(y!==null){c.shared.pending=null;var S=y,z=S.next;S.next=null,d===null?o=z:d.next=z,d=S;var k=e.alternate;k!==null&&(k=k.updateQueue,y=k.lastBaseUpdate,y!==d&&(y===null?k.firstBaseUpdate=z:y.next=z,k.lastBaseUpdate=S))}if(o!==null){var G=c.baseState;d=0,k=z=S=null,y=o;do{var O=y.lane&-536870913,B=O!==y.lane;if(B?(be&O)===O:(a&O)===O){O!==0&&O===si&&(Ko=!0),k!==null&&(k=k.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var W=e,ie=y;O=t;var Ge=n;switch(ie.tag){case 1:if(W=ie.payload,typeof W=="function"){G=W.call(Ge,G,O);break e}G=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ie.payload,O=typeof W=="function"?W.call(Ge,G,O):W,O==null)break e;G=_({},G,O);break e;case 2:Ta=!0}}O=y.callback,O!==null&&(e.flags|=64,B&&(e.flags|=8192),B=c.callbacks,B===null?c.callbacks=[O]:B.push(O))}else B={lane:O,tag:y.tag,payload:y.payload,callback:y.callback,next:null},k===null?(z=k=B,S=G):k=k.next=B,d|=O;if(y=y.next,y===null){if(y=c.shared.pending,y===null)break;B=y,y=B.next,B.next=null,c.lastBaseUpdate=B,c.shared.pending=null}}while(!0);k===null&&(S=G),c.baseState=S,c.firstBaseUpdate=z,c.lastBaseUpdate=k,o===null&&(c.shared.lanes=0),Oa|=d,e.lanes=d,e.memoizedState=G}}function $f(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Vf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)$f(n[e],t)}var ui=T(null),$c=T(0);function Qf(e,t){e=ca,Y($c,e),Y(ui,t),ca=e|t.baseLanes}function Jo(){Y($c,ca),Y(ui,ui.current)}function Wo(){ca=$c.current,H(ui),H($c)}var Kt=T(null),pn=null;function Aa(e){var t=e.alternate;Y(et,et.current&1),Y(Kt,e),pn===null&&(t===null||ui.current!==null||t.memoizedState!==null)&&(pn=e)}function Io(e){Y(et,et.current),Y(Kt,e),pn===null&&(pn=e)}function Ff(e){e.tag===22?(Y(et,et.current),Y(Kt,e),pn===null&&(pn=e)):Ma()}function Ma(){Y(et,et.current),Y(Kt,Kt.current)}function Jt(e){H(Kt),pn===e&&(pn=null),H(et)}var et=T(0);function Vc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||l0(n)||i0(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 Pn=0,he=null,He=null,it=null,Qc=!1,fi=!1,yl=!1,Fc=0,xs=0,di=null,hv=0;function We(){throw Error(r(321))}function Po(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xt(e[n],t[n]))return!1;return!0}function eu(e,t,n,a,c,o){return Pn=o,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Nd:pu,yl=!1,o=n(a,c),yl=!1,fi&&(o=Xf(t,n,a,c)),Yf(e),o}function Yf(e){U.H=ws;var t=He!==null&&He.next!==null;if(Pn=0,it=He=he=null,Qc=!1,xs=0,di=null,t)throw Error(r(300));e===null||st||(e=e.dependencies,e!==null&&Lc(e)&&(st=!0))}function Xf(e,t,n,a){he=e;var c=0;do{if(fi&&(di=null),xs=0,fi=!1,25<=c)throw Error(r(301));if(c+=1,it=He=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}U.H=Rd,o=t(n,a)}while(fi);return o}function mv(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Ss(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(he.flags|=1024),t}function tu(){var e=Fc!==0;return Fc=0,e}function nu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function au(e){if(Qc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Qc=!1}Pn=0,it=He=he=null,fi=!1,xs=Fc=0,di=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?he.memoizedState=it=e:it=it.next=e,it}function tt(){if(He===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=it===null?he.memoizedState:it.next;if(t!==null)it=t,He=e;else{if(e===null)throw he.alternate===null?Error(r(467)):Error(r(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},it===null?he.memoizedState=it=e:it=it.next=e}return it}function Yc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ss(e){var t=xs;return xs+=1,di===null&&(di=[]),e=Uf(di,e,t),t=he,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Nd:pu),e}function Xc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ss(e);if(e.$$typeof===$)return yt(e)}throw Error(r(438,String(e)))}function lu(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=he.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Yc(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ue;return t.index++,n}function ea(e,t){return typeof t=="function"?t(e):t}function Zc(e){var t=tt();return iu(t,He,e)}function iu(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var c=e.baseQueue,o=a.pending;if(o!==null){if(c!==null){var d=c.next;c.next=o.next,o.next=d}t.baseQueue=c=o,a.pending=null}if(o=e.baseState,c===null)e.memoizedState=o;else{t=c.next;var y=d=null,S=null,z=t,k=!1;do{var G=z.lane&-536870913;if(G!==z.lane?(be&G)===G:(Pn&G)===G){var O=z.revertLane;if(O===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),G===si&&(k=!0);else if((Pn&O)===O){z=z.next,O===si&&(k=!0);continue}else G={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=G,d=o):S=S.next=G,he.lanes|=O,Oa|=O;G=z.action,yl&&n(o,G),o=z.hasEagerState?z.eagerState:n(o,G)}else O={lane:G,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=O,d=o):S=S.next=O,he.lanes|=G,Oa|=G;z=z.next}while(z!==null&&z!==t);if(S===null?d=o:S.next=y,!Xt(o,e.memoizedState)&&(st=!0,k&&(n=ci,n!==null)))throw n;e.memoizedState=o,e.baseState=d,e.baseQueue=S,a.lastRenderedState=o}return c===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function su(e){var t=tt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,c=n.pending,o=t.memoizedState;if(c!==null){n.pending=null;var d=c=c.next;do o=e(o,d.action),d=d.next;while(d!==c);Xt(o,t.memoizedState)||(st=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Zf(e,t,n){var a=he,c=tt(),o=Ce;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=t();var d=!Xt((He||c).memoizedState,n);if(d&&(c.memoizedState=n,st=!0),c=c.queue,ou(Wf.bind(null,a,c,e),[e]),c.getSnapshot!==t||d||it!==null&&it.memoizedState.tag&1){if(a.flags|=2048,hi(9,{destroy:void 0},Jf.bind(null,a,c,n,t),null),$e===null)throw Error(r(349));o||(Pn&127)!==0||Kf(a,t,n)}return n}function Kf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=Yc(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jf(e,t,n,a){t.value=n,t.getSnapshot=a,If(t)&&Pf(e)}function Wf(e,t,n){return n(function(){If(t)&&Pf(e)})}function If(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xt(e,n)}catch{return!0}}function Pf(e){var t=ol(e,2);t!==null&&kt(t,e,2)}function cu(e){var t=jt();if(typeof e=="function"){var n=e;if(e=n(),yl){ba(!0);try{n()}finally{ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:e},t}function ed(e,t,n,a){return e.baseState=n,iu(e,He,typeof a=="function"?a:ea)}function pv(e,t,n,a,c){if(Wc(e))throw Error(r(485));if(e=t.action,e!==null){var o={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};U.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,td(t,o)):(o.next=n.next,t.pending=n.next=o)}}function td(e,t){var n=t.action,a=t.payload,c=e.state;if(t.isTransition){var o=U.T,d={};U.T=d;try{var y=n(c,a),S=U.S;S!==null&&S(d,y),nd(e,t,y)}catch(z){ru(e,t,z)}finally{o!==null&&d.types!==null&&(o.types=d.types),U.T=o}}else try{o=n(c,a),nd(e,t,o)}catch(z){ru(e,t,z)}}function nd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ad(e,t,a)},function(a){return ru(e,t,a)}):ad(e,t,n)}function ad(e,t,n){t.status="fulfilled",t.value=n,ld(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,td(e,n)))}function ru(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ld(t),t=t.next;while(t!==a)}e.action=null}function ld(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function id(e,t){return t}function sd(e,t){if(Ce){var n=$e.formState;if(n!==null){e:{var a=he;if(Ce){if(Qe){t:{for(var c=Qe,o=mn;c.nodeType!==8;){if(!o){c=null;break t}if(c=vn(c.nextSibling),c===null){c=null;break t}}o=c.data,c=o==="F!"||o==="F"?c:null}if(c){Qe=vn(c.nextSibling),a=c.data==="F!";break e}}ja(a)}a=!1}a&&(t=n[0])}}return n=jt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:id,lastRenderedState:t},n.queue=a,n=jd.bind(null,he,a),a.dispatch=n,a=cu(!1),o=mu.bind(null,he,!1,a.queue),a=jt(),c={state:t,dispatch:null,action:e,pending:null},a.queue=c,n=pv.bind(null,he,c,o,n),c.dispatch=n,a.memoizedState=e,[t,n,!1]}function cd(e){var t=tt();return rd(t,He,e)}function rd(e,t,n){if(t=iu(e,t,id)[0],e=Zc(ea)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ss(t)}catch(d){throw d===ri?kc:d}else a=t;t=tt();var c=t.queue,o=c.dispatch;return n!==t.memoizedState&&(he.flags|=2048,hi(9,{destroy:void 0},vv.bind(null,c,n),null)),[a,o,e]}function vv(e,t){e.action=t}function od(e){var t=tt(),n=He;if(n!==null)return rd(t,n,e);tt(),t=t.memoizedState,n=tt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function hi(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=Yc(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function ud(){return tt().memoizedState}function Kc(e,t,n,a){var c=jt();he.flags|=e,c.memoizedState=hi(1|t,{destroy:void 0},n,a===void 0?null:a)}function Jc(e,t,n,a){var c=tt();a=a===void 0?null:a;var o=c.memoizedState.inst;He!==null&&a!==null&&Po(a,He.memoizedState.deps)?c.memoizedState=hi(t,o,n,a):(he.flags|=e,c.memoizedState=hi(1|t,o,n,a))}function fd(e,t){Kc(8390656,8,e,t)}function ou(e,t){Jc(2048,8,e,t)}function gv(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=Yc(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function dd(e){var t=tt().memoizedState;return gv({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function hd(e,t){return Jc(4,2,e,t)}function md(e,t){return Jc(4,4,e,t)}function pd(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 vd(e,t,n){n=n!=null?n.concat([e]):null,Jc(4,4,pd.bind(null,t,e),n)}function uu(){}function gd(e,t){var n=tt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Po(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function yd(e,t){var n=tt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Po(t,a[1]))return a[0];if(a=e(),yl){ba(!0);try{e()}finally{ba(!1)}}return n.memoizedState=[a,t],a}function fu(e,t,n){return n===void 0||(Pn&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=_1(),he.lanes|=e,Oa|=e,n)}function _d(e,t,n,a){return Xt(n,t)?n:ui.current!==null?(e=fu(e,n,a),Xt(e,t)||(st=!0),e):(Pn&42)===0||(Pn&1073741824)!==0&&(be&261930)===0?(st=!0,e.memoizedState=n):(e=_1(),he.lanes|=e,Oa|=e,t)}function bd(e,t,n,a,c){var o=F.p;F.p=o!==0&&8>o?o:8;var d=U.T,y={};U.T=y,mu(e,!1,t,n);try{var S=c(),z=U.S;if(z!==null&&z(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var k=dv(S,a);Cs(e,t,k,Pt(e))}else Cs(e,t,a,Pt(e))}catch(G){Cs(e,t,{then:function(){},status:"rejected",reason:G},Pt())}finally{F.p=o,d!==null&&y.types!==null&&(d.types=y.types),U.T=d}}function yv(){}function du(e,t,n,a){if(e.tag!==5)throw Error(r(476));var c=xd(e).queue;bd(e,c,t,le,n===null?yv:function(){return Sd(e),n(a)})}function xd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sd(e){var t=xd(e);t.next===null&&(t=e.alternate.memoizedState),Cs(e,t.next.queue,{},Pt())}function hu(){return yt(qs)}function Cd(){return tt().memoizedState}function wd(){return tt().memoizedState}function _v(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pt();e=Na(n);var a=Ra(t,e,n);a!==null&&(kt(a,t,n),ys(a,t,n)),t={cache:$o()},e.payload=t;return}t=t.return}}function bv(e,t,n){var a=Pt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wc(e)?Ed(t,n):(n=Mo(e,t,n,a),n!==null&&(kt(n,e,a),Td(n,t,a)))}function jd(e,t,n){var a=Pt();Cs(e,t,n,a)}function Cs(e,t,n,a){var c={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wc(e))Ed(t,c);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var d=t.lastRenderedState,y=o(d,n);if(c.hasEagerState=!0,c.eagerState=y,Xt(y,d))return Mc(e,t,c,0),$e===null&&Ac(),!1}catch{}finally{}if(n=Mo(e,t,c,a),n!==null)return kt(n,e,a),Td(n,t,a),!0}return!1}function mu(e,t,n,a){if(a={lane:2,revertLane:Yu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Wc(e)){if(t)throw Error(r(479))}else t=Mo(e,n,a,2),t!==null&&kt(t,e,2)}function Wc(e){var t=e.alternate;return e===he||t!==null&&t===he}function Ed(e,t){fi=Qc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Td(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,M2(e,n)}}var ws={readContext:yt,use:Xc,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};ws.useEffectEvent=We;var Nd={readContext:yt,use:Xc,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:fd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Kc(4194308,4,pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kc(4194308,4,e,t)},useInsertionEffect:function(e,t){Kc(4,2,e,t)},useMemo:function(e,t){var n=jt();t=t===void 0?null:t;var a=e();if(yl){ba(!0);try{e()}finally{ba(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=jt();if(n!==void 0){var c=n(t);if(yl){ba(!0);try{n(t)}finally{ba(!1)}}}else c=t;return a.memoizedState=a.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},a.queue=e,e=e.dispatch=bv.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=cu(e);var t=e.queue,n=jd.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:uu,useDeferredValue:function(e,t){var n=jt();return fu(n,e,t)},useTransition:function(){var e=cu(!1);return e=bd.bind(null,he,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=he,c=jt();if(Ce){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),$e===null)throw Error(r(349));(be&127)!==0||Kf(a,t,n)}c.memoizedState=n;var o={value:n,getSnapshot:t};return c.queue=o,fd(Wf.bind(null,a,o,e),[e]),a.flags|=2048,hi(9,{destroy:void 0},Jf.bind(null,a,o,n,t),null),n},useId:function(){var e=jt(),t=$e.identifierPrefix;if(Ce){var n=Ln,a=On;n=(a&~(1<<32-Yt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Fc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=hv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hu,useFormState:sd,useActionState:sd,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=mu.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:lu,useCacheRefresh:function(){return jt().memoizedState=_v.bind(null,he)},useEffectEvent:function(e){var t=jt(),n={impl:e};return t.memoizedState=n,function(){if((ze&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},pu={readContext:yt,use:Xc,useCallback:gd,useContext:yt,useEffect:ou,useImperativeHandle:vd,useInsertionEffect:hd,useLayoutEffect:md,useMemo:yd,useReducer:Zc,useRef:ud,useState:function(){return Zc(ea)},useDebugValue:uu,useDeferredValue:function(e,t){var n=tt();return _d(n,He.memoizedState,e,t)},useTransition:function(){var e=Zc(ea)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:Ss(e),t]},useSyncExternalStore:Zf,useId:Cd,useHostTransitionStatus:hu,useFormState:cd,useActionState:cd,useOptimistic:function(e,t){var n=tt();return ed(n,He,e,t)},useMemoCache:lu,useCacheRefresh:wd};pu.useEffectEvent=dd;var Rd={readContext:yt,use:Xc,useCallback:gd,useContext:yt,useEffect:ou,useImperativeHandle:vd,useInsertionEffect:hd,useLayoutEffect:md,useMemo:yd,useReducer:su,useRef:ud,useState:function(){return su(ea)},useDebugValue:uu,useDeferredValue:function(e,t){var n=tt();return He===null?fu(n,e,t):_d(n,He.memoizedState,e,t)},useTransition:function(){var e=su(ea)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:Ss(e),t]},useSyncExternalStore:Zf,useId:Cd,useHostTransitionStatus:hu,useFormState:od,useActionState:od,useOptimistic:function(e,t){var n=tt();return He!==null?ed(n,He,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:lu,useCacheRefresh:wd};Rd.useEffectEvent=dd;function vu(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:_({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var gu={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Pt(),c=Na(a);c.payload=t,n!=null&&(c.callback=n),t=Ra(e,c,a),t!==null&&(kt(t,e,a),ys(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Pt(),c=Na(a);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=Ra(e,c,a),t!==null&&(kt(t,e,a),ys(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pt(),a=Na(n);a.tag=2,t!=null&&(a.callback=t),t=Ra(e,a,n),t!==null&&(kt(t,e,n),ys(t,e,n))}};function Ad(e,t,n,a,c,o,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,d):t.prototype&&t.prototype.isPureReactComponent?!us(n,a)||!us(c,o):!0}function Md(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&gu.enqueueReplaceState(t,t.state,null)}function _l(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=_({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function zd(e){Rc(e)}function Dd(e){console.error(e)}function Od(e){Rc(e)}function Ic(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ld(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function yu(e,t,n){return n=Na(n),n.tag=3,n.payload={element:null},n.callback=function(){Ic(e,t)},n}function Bd(e){return e=Na(e),e.tag=3,e}function Ud(e,t,n,a){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var o=a.value;e.payload=function(){return c(o)},e.callback=function(){Ld(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Ld(t,n,a),typeof c!="function"&&(La===null?La=new Set([this]):La.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function xv(e,t,n,a,c){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&ii(t,n,c,!0),n=Kt.current,n!==null){switch(n.tag){case 31:case 13:return pn===null?ur():n.alternate===null&&Ie===0&&(Ie=3),n.flags&=-257,n.flags|=65536,n.lanes=c,a===Hc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Vu(e,a,c)),!1;case 22:return n.flags|=65536,a===Hc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Vu(e,a,c)),!1}throw Error(r(435,n.tag))}return Vu(e,a,c),ur(),!1}if(Ce)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,a!==Uo&&(e=Error(r(422),{cause:a}),hs(fn(e,n)))):(a!==Uo&&(t=Error(r(423),{cause:a}),hs(fn(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,a=fn(a,n),c=yu(e.stateNode,a,c),Zo(e,c),Ie!==4&&(Ie=2)),!1;var o=Error(r(520),{cause:a});if(o=fn(o,n),zs===null?zs=[o]:zs.push(o),Ie!==4&&(Ie=2),t===null)return!0;a=fn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=yu(n.stateNode,a,e),Zo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(La===null||!La.has(o))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Bd(c),Ud(c,e,n,a),Zo(n,c),!1}n=n.return}while(n!==null);return!1}var _u=Error(r(461)),st=!1;function _t(e,t,n,a){t.child=e===null?Gf(t,null,n,a):gl(t,e.child,n,a)}function kd(e,t,n,a,c){n=n.render;var o=t.ref;if("ref"in a){var d={};for(var y in a)y!=="ref"&&(d[y]=a[y])}else d=a;return hl(t),a=eu(e,t,n,d,o,c),y=tu(),e!==null&&!st?(nu(e,t,c),ta(e,t,c)):(Ce&&y&&Lo(t),t.flags|=1,_t(e,t,a,c),t.child)}function Hd(e,t,n,a,c){if(e===null){var o=n.type;return typeof o=="function"&&!zo(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,qd(e,t,o,a,c)):(e=Dc(n.type,null,a,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Tu(e,c)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:us,n(d,a)&&e.ref===t.ref)return ta(e,t,c)}return t.flags|=1,e=Kn(o,a),e.ref=t.ref,e.return=t,t.child=e}function qd(e,t,n,a,c){if(e!==null){var o=e.memoizedProps;if(us(o,a)&&e.ref===t.ref)if(st=!1,t.pendingProps=a=o,Tu(e,c))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,ta(e,t,c)}return bu(e,t,n,a,c)}function Gd(e,t,n,a){var c=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,c=0;a!==null;)c=c|a.lanes|a.childLanes,a=a.sibling;a=c&~o}else a=0,t.child=null;return $d(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Uc(t,o!==null?o.cachePool:null),o!==null?Qf(t,o):Jo(),Ff(t);else return a=t.lanes=536870912,$d(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(Uc(t,o.cachePool),Qf(t,o),Ma(),t.memoizedState=null):(e!==null&&Uc(t,null),Jo(),Ma());return _t(e,t,c,n),t.child}function js(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $d(e,t,n,a,c){var o=Qo();return o=o===null?null:{parent:lt._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Uc(t,null),Jo(),Ff(t),e!==null&&ii(e,t,a,!0),t.childLanes=c,null}function Pc(e,t){return t=tr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vd(e,t,n){return gl(t,e.child,null,n),e=Pc(t,t.pendingProps),e.flags|=2,Jt(t),t.memoizedState=null,e}function Sv(e,t,n){var a=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(a.mode==="hidden")return e=Pc(t,a),t.lanes=536870912,js(null,e);if(Io(t),(e=Qe)?(e=th(e,mn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:On,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},n=Ef(e),n.return=t,t.child=n,gt=t,Qe=null)):e=null,e===null)throw ja(t);return t.lanes=536870912,null}return Pc(t,a)}var o=e.memoizedState;if(o!==null){var d=o.dehydrated;if(Io(t),c)if(t.flags&256)t.flags&=-257,t=Vd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(st||ii(e,t,n,!1),c=(n&e.childLanes)!==0,st||c){if(a=$e,a!==null&&(d=z2(a,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,ol(e,d),kt(a,e,d),_u;ur(),t=Vd(e,t,n)}else e=o.treeContext,Qe=vn(d.nextSibling),gt=t,Ce=!0,wa=null,mn=!1,e!==null&&Rf(t,e),t=Pc(t,a),t.flags|=4096;return t}return e=Kn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function er(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 bu(e,t,n,a,c){return hl(t),n=eu(e,t,n,a,void 0,c),a=tu(),e!==null&&!st?(nu(e,t,c),ta(e,t,c)):(Ce&&a&&Lo(t),t.flags|=1,_t(e,t,n,c),t.child)}function Qd(e,t,n,a,c,o){return hl(t),t.updateQueue=null,n=Xf(t,a,n,c),Yf(e),a=tu(),e!==null&&!st?(nu(e,t,o),ta(e,t,o)):(Ce&&a&&Lo(t),t.flags|=1,_t(e,t,n,o),t.child)}function Fd(e,t,n,a,c){if(hl(t),t.stateNode===null){var o=ti,d=n.contextType;typeof d=="object"&&d!==null&&(o=yt(d)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=gu,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Yo(t),d=n.contextType,o.context=typeof d=="object"&&d!==null?yt(d):ti,o.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(vu(t,n,d,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&gu.enqueueReplaceState(o,o.state,null),bs(t,a,o,c),_s(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var y=t.memoizedProps,S=_l(n,y);o.props=S;var z=o.context,k=n.contextType;d=ti,typeof k=="object"&&k!==null&&(d=yt(k));var G=n.getDerivedStateFromProps;k=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,k||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(y||z!==d)&&Md(t,o,a,d),Ta=!1;var O=t.memoizedState;o.state=O,bs(t,a,o,c),_s(),z=t.memoizedState,y||O!==z||Ta?(typeof G=="function"&&(vu(t,n,G,a),z=t.memoizedState),(S=Ta||Ad(t,n,S,a,O,z,d))?(k||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),o.props=a,o.state=z,o.context=d,a=S):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Xo(e,t),d=t.memoizedProps,k=_l(n,d),o.props=k,G=t.pendingProps,O=o.context,z=n.contextType,S=ti,typeof z=="object"&&z!==null&&(S=yt(z)),y=n.getDerivedStateFromProps,(z=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==G||O!==S)&&Md(t,o,a,S),Ta=!1,O=t.memoizedState,o.state=O,bs(t,a,o,c),_s();var B=t.memoizedState;d!==G||O!==B||Ta||e!==null&&e.dependencies!==null&&Lc(e.dependencies)?(typeof y=="function"&&(vu(t,n,y,a),B=t.memoizedState),(k=Ta||Ad(t,n,k,a,O,B,S)||e!==null&&e.dependencies!==null&&Lc(e.dependencies))?(z||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,B,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,B,S)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=B),o.props=a,o.state=B,o.context=S,a=k):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,er(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=gl(t,e.child,null,c),t.child=gl(t,null,n,c)):_t(e,t,n,c),t.memoizedState=o.state,e=t.child):e=ta(e,t,c),e}function Yd(e,t,n,a){return fl(),t.flags|=256,_t(e,t,n,a),t.child}var xu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Su(e){return{baseLanes:e,cachePool:Lf()}}function Cu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=It),e}function Xd(e,t,n){var a=t.pendingProps,c=!1,o=(t.flags&128)!==0,d;if((d=o)||(d=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),d&&(c=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(c?Aa(t):Ma(),(e=Qe)?(e=th(e,mn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:On,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},n=Ef(e),n.return=t,t.child=n,gt=t,Qe=null)):e=null,e===null)throw ja(t);return i0(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,c?(Ma(),c=t.mode,y=tr({mode:"hidden",children:y},c),a=ul(a,c,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=Su(n),a.childLanes=Cu(e,d,n),t.memoizedState=xu,js(null,a)):(Aa(t),wu(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(o)t.flags&256?(Aa(t),t.flags&=-257,t=ju(e,t,n)):t.memoizedState!==null?(Ma(),t.child=e.child,t.flags|=128,t=null):(Ma(),y=a.fallback,c=t.mode,a=tr({mode:"visible",children:a.children},c),y=ul(y,c,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,gl(t,e.child,null,n),a=t.child,a.memoizedState=Su(n),a.childLanes=Cu(e,d,n),t.memoizedState=xu,t=js(null,a));else if(Aa(t),i0(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var z=d.dgst;d=z,a=Error(r(419)),a.stack="",a.digest=d,hs({value:a,source:null,stack:null}),t=ju(e,t,n)}else if(st||ii(e,t,n,!1),d=(n&e.childLanes)!==0,st||d){if(d=$e,d!==null&&(a=z2(d,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,ol(e,a),kt(d,e,a),_u;l0(y)||ur(),t=ju(e,t,n)}else l0(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Qe=vn(y.nextSibling),gt=t,Ce=!0,wa=null,mn=!1,e!==null&&Rf(t,e),t=wu(t,a.children),t.flags|=4096);return t}return c?(Ma(),y=a.fallback,c=t.mode,S=e.child,z=S.sibling,a=Kn(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,z!==null?y=Kn(z,y):(y=ul(y,c,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,js(null,a),a=t.child,y=e.child.memoizedState,y===null?y=Su(n):(c=y.cachePool,c!==null?(S=lt._currentValue,c=c.parent!==S?{parent:S,pool:S}:c):c=Lf(),y={baseLanes:y.baseLanes|n,cachePool:c}),a.memoizedState=y,a.childLanes=Cu(e,d,n),t.memoizedState=xu,js(e.child,a)):(Aa(t),n=e.child,e=n.sibling,n=Kn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function wu(e,t){return t=tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function tr(e,t){return e=Zt(22,e,null,t),e.lanes=0,e}function ju(e,t,n){return gl(t,e.child,null,n),e=wu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),qo(e.return,t,n)}function Eu(e,t,n,a,c,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:c,treeForkCount:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=c,d.treeForkCount=o)}function Kd(e,t,n){var a=t.pendingProps,c=a.revealOrder,o=a.tail;a=a.children;var d=et.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,Y(et,d),_t(e,t,a,n),a=Ce?ds:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zd(e,n,t);else if(e.tag===19)Zd(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&&Vc(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Eu(t,!1,c,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Vc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Eu(t,!0,n,null,o,a);break;case"together":Eu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ta(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Oa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ii(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=Kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Lc(e)))}function Cv(e,t,n){switch(t.tag){case 3:at(t,t.stateNode.containerInfo),Ea(t,lt,e.memoizedState.cache),fl();break;case 27:case 5:Mt(t);break;case 4:at(t,t.stateNode.containerInfo);break;case 10:Ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Io(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Aa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Xd(e,t,n):(Aa(t),e=ta(e,t,n),e!==null?e.sibling:null);Aa(t);break;case 19:var c=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(ii(e,t,n,!1),a=(n&t.childLanes)!==0),c){if(a)return Kd(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Y(et,et.current),a)break;return null;case 22:return t.lanes=0,Gd(e,t,n,t.pendingProps);case 24:Ea(t,lt,e.memoizedState.cache)}return ta(e,t,n)}function Jd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!Tu(e,n)&&(t.flags&128)===0)return st=!1,Cv(e,t,n);st=(e.flags&131072)!==0}else st=!1,Ce&&(t.flags&1048576)!==0&&Nf(t,ds,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=pl(t.elementType),t.type=e,typeof e=="function")zo(e)?(a=_l(e,a),t.tag=1,t=Fd(null,t,e,a,n)):(t.tag=0,t=bu(null,t,e,a,n));else{if(e!=null){var c=e.$$typeof;if(c===V){t.tag=11,t=kd(null,t,e,a,n);break e}else if(c===K){t.tag=14,t=Hd(null,t,e,a,n);break e}}throw t=Oe(e)||e,Error(r(306,t,""))}}return t;case 0:return bu(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,c=_l(a,t.pendingProps),Fd(e,t,a,c,n);case 3:e:{if(at(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var o=t.memoizedState;c=o.element,Xo(e,t),bs(t,a,null,n);var d=t.memoizedState;if(a=d.cache,Ea(t,lt,a),a!==o.cache&&Go(t,[lt],n,!0),_s(),a=d.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Yd(e,t,a,n);break e}else if(a!==c){c=fn(Error(r(424)),t),hs(c),t=Yd(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=vn(e.firstChild),gt=t,Ce=!0,wa=null,mn=!0,n=Gf(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(fl(),a===c){t=ta(e,t,n);break e}_t(e,t,a,n)}t=t.child}return t;case 26:return er(e,t),e===null?(n=ch(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ce||(n=t.type,e=t.pendingProps,a=gr(fe.current).createElement(n),a[vt]=t,a[zt]=e,bt(a,n,e),ft(a),t.stateNode=a):t.memoizedState=ch(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Mt(t),e===null&&Ce&&(a=t.stateNode=lh(t.type,t.pendingProps,fe.current),gt=t,mn=!0,c=Qe,Ha(t.type)?(s0=c,Qe=vn(a.firstChild)):Qe=c),_t(e,t,t.pendingProps.children,n),er(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((c=a=Qe)&&(a=Pv(a,t.type,t.pendingProps,mn),a!==null?(t.stateNode=a,gt=t,Qe=vn(a.firstChild),mn=!1,c=!0):c=!1),c||ja(t)),Mt(t),c=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,a=o.children,t0(c,o)?a=null:d!==null&&t0(c,d)&&(t.flags|=32),t.memoizedState!==null&&(c=eu(e,t,mv,null,null,n),qs._currentValue=c),er(e,t),_t(e,t,a,n),t.child;case 6:return e===null&&Ce&&((e=n=Qe)&&(n=e4(n,t.pendingProps,mn),n!==null?(t.stateNode=n,gt=t,Qe=null,e=!0):e=!1),e||ja(t)),null;case 13:return Xd(e,t,n);case 4:return at(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=gl(t,null,a,n):_t(e,t,a,n),t.child;case 11:return kd(e,t,t.type,t.pendingProps,n);case 7:return _t(e,t,t.pendingProps,n),t.child;case 8:return _t(e,t,t.pendingProps.children,n),t.child;case 12:return _t(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Ea(t,t.type,a.value),_t(e,t,a.children,n),t.child;case 9:return c=t.type._context,a=t.pendingProps.children,hl(t),c=yt(c),a=a(c),t.flags|=1,_t(e,t,a,n),t.child;case 14:return Hd(e,t,t.type,t.pendingProps,n);case 15:return qd(e,t,t.type,t.pendingProps,n);case 19:return Kd(e,t,n);case 31:return Sv(e,t,n);case 22:return Gd(e,t,n,t.pendingProps);case 24:return hl(t),a=yt(lt),e===null?(c=Qo(),c===null&&(c=$e,o=$o(),c.pooledCache=o,o.refCount++,o!==null&&(c.pooledCacheLanes|=n),c=o),t.memoizedState={parent:a,cache:c},Yo(t),Ea(t,lt,c)):((e.lanes&n)!==0&&(Xo(e,t),bs(t,null,null,n),_s()),c=e.memoizedState,o=t.memoizedState,c.parent!==a?(c={parent:a,cache:a},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Ea(t,lt,a)):(a=o.cache,Ea(t,lt,a),a!==c.cache&&Go(t,[lt],n,!0))),_t(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function na(e){e.flags|=4}function Nu(e,t,n,a,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(C1())e.flags|=8192;else throw vl=Hc,Fo}else e.flags&=-16777217}function Wd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dh(t))if(C1())e.flags|=8192;else throw vl=Hc,Fo}function nr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?R2():536870912,e.lanes|=t,gi|=t)}function Es(e,t){if(!Ce)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags&65011712,a|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function wv(e,t,n){var a=t.pendingProps;switch(Bo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),In(lt),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(li(t)?na(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ko())),Fe(t),null;case 26:var c=t.type,o=t.memoizedState;return e===null?(na(t),o!==null?(Fe(t),Wd(t,o)):(Fe(t),Nu(t,c,null,a,n))):o?o!==e.memoizedState?(na(t),Fe(t),Wd(t,o)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&na(t),Fe(t),Nu(t,c,e,a,n)),null;case 27:if(zn(t),n=fe.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&na(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Fe(t),null}e=J.current,li(t)?Af(t):(e=lh(c,a,n),t.stateNode=e,na(t))}return Fe(t),null;case 5:if(zn(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&na(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Fe(t),null}if(o=J.current,li(t))Af(t);else{var d=gr(fe.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?d.createElement(c,{is:a.is}):d.createElement(c)}}o[vt]=t,o[zt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=o;e:switch(bt(o,c,a),c){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&na(t)}}return Fe(t),Nu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&na(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,li(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,c=gt,c!==null)switch(c.tag){case 27:case 5:a=c.memoizedProps}e[vt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||X1(e.nodeValue,n)),e||ja(t,!0)}else e=gr(e).createTextNode(a),e[vt]=t,t.stateNode=e}return Fe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=li(t),n!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[vt]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else n=ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Jt(t),t):(Jt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Fe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=li(t),a!==null&&a.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[vt]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),c=!1}else c=ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Jt(t),t):(Jt(t),null)}return Jt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,c=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(c=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==c&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),nr(t,t.updateQueue),Fe(t),null);case 4:return de(),e===null&&Ju(t.stateNode.containerInfo),Fe(t),null;case 10:return In(t.type),Fe(t),null;case 19:if(H(et),a=t.memoizedState,a===null)return Fe(t),null;if(c=(t.flags&128)!==0,o=a.rendering,o===null)if(c)Es(a,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Vc(e),o!==null){for(t.flags|=128,Es(a,!1),e=o.updateQueue,t.updateQueue=e,nr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)jf(n,e),n=n.sibling;return Y(et,et.current&1|2),Ce&&Jn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Qt()>cr&&(t.flags|=128,c=!0,Es(a,!1),t.lanes=4194304)}else{if(!c)if(e=Vc(o),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,nr(t,e),Es(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ce)return Fe(t),null}else 2*Qt()-a.renderingStartTime>cr&&n!==536870912&&(t.flags|=128,c=!0,Es(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Qt(),e.sibling=null,n=et.current,Y(et,c?n&1|2:n&1),Ce&&Jn(t,a.treeForkCount),e):(Fe(t),null);case 22:case 23:return Jt(t),Wo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),n=t.updateQueue,n!==null&&nr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&H(ml),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),In(lt),Fe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function jv(e,t){switch(Bo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return In(lt),de(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zn(t),null;case 31:if(t.memoizedState!==null){if(Jt(t),t.alternate===null)throw Error(r(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(et),null;case 4:return de(),null;case 10:return In(t.type),null;case 22:case 23:return Jt(t),Wo(),e!==null&&H(ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return In(lt),null;case 25:return null;default:return null}}function Id(e,t){switch(Bo(t),t.tag){case 3:In(lt),de();break;case 26:case 27:case 5:zn(t);break;case 4:de();break;case 31:t.memoizedState!==null&&Jt(t);break;case 13:Jt(t);break;case 19:H(et);break;case 10:In(t.type);break;case 22:case 23:Jt(t),Wo(),e!==null&&H(ml);break;case 24:In(lt)}}function Ts(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var c=a.next;n=c;do{if((n.tag&e)===e){a=void 0;var o=n.create,d=n.inst;a=o(),d.destroy=a}n=n.next}while(n!==c)}}catch(y){Be(t,t.return,y)}}function za(e,t,n){try{var a=t.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var o=c.next;a=o;do{if((a.tag&e)===e){var d=a.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,c=t;var S=n,z=y;try{z()}catch(k){Be(c,S,k)}}}a=a.next}while(a!==o)}}catch(k){Be(t,t.return,k)}}function Pd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Vf(t,n)}catch(a){Be(e,e.return,a)}}}function e1(e,t,n){n.props=_l(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Be(e,t,a)}}function Ns(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(c){Be(e,t,c)}}function Bn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(c){Be(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){Be(e,t,c)}else n.current=null}function t1(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(c){Be(e,e.return,c)}}function Ru(e,t,n){try{var a=e.stateNode;Xv(a,e.type,n,t),a[zt]=t}catch(c){Be(e,e.return,c)}}function n1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ha(e.type)||e.tag===4}function Au(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||n1(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&&Ha(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 Mu(e,t,n){var a=e.tag;if(a===5||a===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=Xn));else if(a!==4&&(a===27&&Ha(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Mu(e,t,n),e=e.sibling;e!==null;)Mu(e,t,n),e=e.sibling}function ar(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ha(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ar(e,t,n),e=e.sibling;e!==null;)ar(e,t,n),e=e.sibling}function a1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);bt(t,a,n),t[vt]=e,t[zt]=n}catch(o){Be(e,e.return,o)}}var aa=!1,ct=!1,zu=!1,l1=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Ev(e,t){if(e=e.containerInfo,Pu=wr,e=vf(e),jo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var c=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var d=0,y=-1,S=-1,z=0,k=0,G=e,O=null;t:for(;;){for(var B;G!==n||c!==0&&G.nodeType!==3||(y=d+c),G!==o||a!==0&&G.nodeType!==3||(S=d+a),G.nodeType===3&&(d+=G.nodeValue.length),(B=G.firstChild)!==null;)O=G,G=B;for(;;){if(G===e)break t;if(O===n&&++z===c&&(y=d),O===o&&++k===a&&(S=d),(B=G.nextSibling)!==null)break;G=O,O=G.parentNode}G=B}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(e0={focusedElem:e,selectionRange:n},wr=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,o=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&&o!==null){e=void 0,n=t,c=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var W=_l(n.type,c);e=a.getSnapshotBeforeUpdate(W,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Be(n,n.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)a0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":a0(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,dt=e;break}dt=t.return}}function i1(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:ia(e,n),a&4&&Ts(5,n);break;case 1:if(ia(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Be(n,n.return,d)}else{var c=_l(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Be(n,n.return,d)}}a&64&&Pd(n),a&512&&Ns(n,n.return);break;case 3:if(ia(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Vf(e,t)}catch(d){Be(n,n.return,d)}}break;case 27:t===null&&a&4&&a1(n);case 26:case 5:ia(e,n),t===null&&a&4&&t1(n),a&512&&Ns(n,n.return);break;case 12:ia(e,n);break;case 31:ia(e,n),a&4&&r1(e,n);break;case 13:ia(e,n),a&4&&o1(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Lv.bind(null,n),t4(e,n))));break;case 22:if(a=n.memoizedState!==null||aa,!a){t=t!==null&&t.memoizedState!==null||ct,c=aa;var o=ct;aa=a,(ct=t)&&!o?sa(e,n,(n.subtreeFlags&8772)!==0):ia(e,n),aa=c,ct=o}break;case 30:break;default:ia(e,n)}}function s1(e){var t=e.alternate;t!==null&&(e.alternate=null,s1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&co(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 Ze=null,Ot=!1;function la(e,t,n){for(n=n.child;n!==null;)c1(e,t,n),n=n.sibling}function c1(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Ii,n)}catch{}switch(n.tag){case 26:ct||Bn(n,t),la(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ct||Bn(n,t);var a=Ze,c=Ot;Ha(n.type)&&(Ze=n.stateNode,Ot=!1),la(e,t,n),Us(n.stateNode),Ze=a,Ot=c;break;case 5:ct||Bn(n,t);case 6:if(a=Ze,c=Ot,Ze=null,la(e,t,n),Ze=a,Ot=c,Ze!==null)if(Ot)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(n.stateNode)}catch(o){Be(n,t,o)}else try{Ze.removeChild(n.stateNode)}catch(o){Be(n,t,o)}break;case 18:Ze!==null&&(Ot?(e=Ze,P1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ji(e)):P1(Ze,n.stateNode));break;case 4:a=Ze,c=Ot,Ze=n.stateNode.containerInfo,Ot=!0,la(e,t,n),Ze=a,Ot=c;break;case 0:case 11:case 14:case 15:za(2,n,t),ct||za(4,n,t),la(e,t,n);break;case 1:ct||(Bn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&e1(n,t,a)),la(e,t,n);break;case 21:la(e,t,n);break;case 22:ct=(a=ct)||n.memoizedState!==null,la(e,t,n),ct=a;break;default:la(e,t,n)}}function r1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ji(e)}catch(n){Be(t,t.return,n)}}}function o1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ji(e)}catch(n){Be(t,t.return,n)}}function Tv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new l1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new l1),t;default:throw Error(r(435,e.tag))}}function lr(e,t){var n=Tv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var c=Bv.bind(null,e,a);a.then(c,c)}})}function Lt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var c=n[a],o=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(Ha(y.type)){Ze=y.stateNode,Ot=!1;break e}break;case 5:Ze=y.stateNode,Ot=!1;break e;case 3:case 4:Ze=y.stateNode.containerInfo,Ot=!0;break e}y=y.return}if(Ze===null)throw Error(r(160));c1(o,d,c),Ze=null,Ot=!1,o=c.alternate,o!==null&&(o.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)u1(t,e),t=t.sibling}var En=null;function u1(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Lt(t,e),Bt(e),a&4&&(za(3,e,e.return),Ts(3,e),za(5,e,e.return));break;case 1:Lt(t,e),Bt(e),a&512&&(ct||n===null||Bn(n,n.return)),a&64&&aa&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var c=En;if(Lt(t,e),Bt(e),a&512&&(ct||n===null||Bn(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(a){case"title":o=c.getElementsByTagName("title")[0],(!o||o[ts]||o[vt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=c.createElement(a),c.head.insertBefore(o,c.querySelector("head > title"))),bt(o,a,n),o[vt]=e,ft(o),a=o;break e;case"link":var d=uh("link","href",c).get(a+(n.href||""));if(d){for(var y=0;y<d.length;y++)if(o=d[y],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(y,1);break t}}o=c.createElement(a),bt(o,a,n),c.head.appendChild(o);break;case"meta":if(d=uh("meta","content",c).get(a+(n.content||""))){for(y=0;y<d.length;y++)if(o=d[y],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(y,1);break t}}o=c.createElement(a),bt(o,a,n),c.head.appendChild(o);break;default:throw Error(r(468,a))}o[vt]=e,ft(o),a=o}e.stateNode=a}else fh(c,e.type,e.stateNode);else e.stateNode=oh(c,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?fh(c,e.type,e.stateNode):oh(c,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ru(e,e.memoizedProps,n.memoizedProps)}break;case 27:Lt(t,e),Bt(e),a&512&&(ct||n===null||Bn(n,n.return)),n!==null&&a&4&&Ru(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Lt(t,e),Bt(e),a&512&&(ct||n===null||Bn(n,n.return)),e.flags&32){c=e.stateNode;try{Zl(c,"")}catch(W){Be(e,e.return,W)}}a&4&&e.stateNode!=null&&(c=e.memoizedProps,Ru(e,c,n!==null?n.memoizedProps:c)),a&1024&&(zu=!0);break;case 6:if(Lt(t,e),Bt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(W){Be(e,e.return,W)}}break;case 3:if(br=null,c=En,En=yr(t.containerInfo),Lt(t,e),En=c,Bt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ji(t.containerInfo)}catch(W){Be(e,e.return,W)}zu&&(zu=!1,f1(e));break;case 4:a=En,En=yr(e.stateNode.containerInfo),Lt(t,e),Bt(e),En=a;break;case 12:Lt(t,e),Bt(e);break;case 31:Lt(t,e),Bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,lr(e,a)));break;case 13:Lt(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sr=Qt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,lr(e,a)));break;case 22:c=e.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,z=aa,k=ct;if(aa=z||c,ct=k||S,Lt(t,e),ct=k,aa=z,Bt(e),a&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||S||aa||ct||bl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){S=n=t;try{if(o=S.stateNode,c)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=S.stateNode;var G=S.memoizedProps.style,O=G!=null&&G.hasOwnProperty("display")?G.display:null;y.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(W){Be(S,S.return,W)}}}else if(t.tag===6){if(n===null){S=t;try{S.stateNode.nodeValue=c?"":S.memoizedProps}catch(W){Be(S,S.return,W)}}}else if(t.tag===18){if(n===null){S=t;try{var B=S.stateNode;c?eh(B,!0):eh(S.stateNode,!1)}catch(W){Be(S,S.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,lr(e,n))));break;case 19:Lt(t,e),Bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,lr(e,a)));break;case 30:break;case 21:break;default:Lt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(n1(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var c=n.stateNode,o=Au(e);ar(e,o,c);break;case 5:var d=n.stateNode;n.flags&32&&(Zl(d,""),n.flags&=-33);var y=Au(e);ar(e,y,d);break;case 3:case 4:var S=n.stateNode.containerInfo,z=Au(e);Mu(e,z,S);break;default:throw Error(r(161))}}catch(k){Be(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function f1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;f1(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)i1(e,t.alternate,t),t=t.sibling}function bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:za(4,t,t.return),bl(t);break;case 1:Bn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&e1(t,t.return,n),bl(t);break;case 27:Us(t.stateNode);case 26:case 5:Bn(t,t.return),bl(t);break;case 22:t.memoizedState===null&&bl(t);break;case 30:bl(t);break;default:bl(t)}e=e.sibling}}function sa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,c=e,o=t,d=o.flags;switch(o.tag){case 0:case 11:case 15:sa(c,o,n),Ts(4,o);break;case 1:if(sa(c,o,n),a=o,c=a.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(z){Be(a,a.return,z)}if(a=o,c=a.updateQueue,c!==null){var y=a.stateNode;try{var S=c.shared.hiddenCallbacks;if(S!==null)for(c.shared.hiddenCallbacks=null,c=0;c<S.length;c++)$f(S[c],y)}catch(z){Be(a,a.return,z)}}n&&d&64&&Pd(o),Ns(o,o.return);break;case 27:a1(o);case 26:case 5:sa(c,o,n),n&&a===null&&d&4&&t1(o),Ns(o,o.return);break;case 12:sa(c,o,n);break;case 31:sa(c,o,n),n&&d&4&&r1(c,o);break;case 13:sa(c,o,n),n&&d&4&&o1(c,o);break;case 22:o.memoizedState===null&&sa(c,o,n),Ns(o,o.return);break;case 30:break;default:sa(c,o,n)}t=t.sibling}}function Du(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&&ms(n))}function Ou(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ms(e))}function Tn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)d1(e,t,n,a),t=t.sibling}function d1(e,t,n,a){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Tn(e,t,n,a),c&2048&&Ts(9,t);break;case 1:Tn(e,t,n,a);break;case 3:Tn(e,t,n,a),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ms(e)));break;case 12:if(c&2048){Tn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,d=o.id,y=o.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Be(t,t.return,S)}}else Tn(e,t,n,a);break;case 31:Tn(e,t,n,a);break;case 13:Tn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,d=t.alternate,t.memoizedState!==null?o._visibility&2?Tn(e,t,n,a):Rs(e,t):o._visibility&2?Tn(e,t,n,a):(o._visibility|=2,mi(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Du(d,t);break;case 24:Tn(e,t,n,a),c&2048&&Ou(t.alternate,t);break;default:Tn(e,t,n,a)}}function mi(e,t,n,a,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,d=t,y=n,S=a,z=d.flags;switch(d.tag){case 0:case 11:case 15:mi(o,d,y,S,c),Ts(8,d);break;case 23:break;case 22:var k=d.stateNode;d.memoizedState!==null?k._visibility&2?mi(o,d,y,S,c):Rs(o,d):(k._visibility|=2,mi(o,d,y,S,c)),c&&z&2048&&Du(d.alternate,d);break;case 24:mi(o,d,y,S,c),c&&z&2048&&Ou(d.alternate,d);break;default:mi(o,d,y,S,c)}t=t.sibling}}function Rs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,c=a.flags;switch(a.tag){case 22:Rs(n,a),c&2048&&Du(a.alternate,a);break;case 24:Rs(n,a),c&2048&&Ou(a.alternate,a);break;default:Rs(n,a)}t=t.sibling}}var As=8192;function pi(e,t,n){if(e.subtreeFlags&As)for(e=e.child;e!==null;)h1(e,t,n),e=e.sibling}function h1(e,t,n){switch(e.tag){case 26:pi(e,t,n),e.flags&As&&e.memoizedState!==null&&h4(n,En,e.memoizedState,e.memoizedProps);break;case 5:pi(e,t,n);break;case 3:case 4:var a=En;En=yr(e.stateNode.containerInfo),pi(e,t,n),En=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=As,As=16777216,pi(e,t,n),As=a):pi(e,t,n));break;default:pi(e,t,n)}}function m1(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 Ms(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];dt=a,v1(a,e)}m1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)p1(e),e=e.sibling}function p1(e){switch(e.tag){case 0:case 11:case 15:Ms(e),e.flags&2048&&za(9,e,e.return);break;case 3:Ms(e);break;case 12:Ms(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ir(e)):Ms(e);break;default:Ms(e)}}function ir(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];dt=a,v1(a,e)}m1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:za(8,t,t.return),ir(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ir(t));break;default:ir(t)}e=e.sibling}}function v1(e,t){for(;dt!==null;){var n=dt;switch(n.tag){case 0:case 11:case 15:za(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ms(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,dt=a;else e:for(n=e;dt!==null;){a=dt;var c=a.sibling,o=a.return;if(s1(a),a===n){dt=null;break e}if(c!==null){c.return=o,dt=c;break e}dt=o}}}var Nv={getCacheForType:function(e){var t=yt(lt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return yt(lt).controller.signal}},Rv=typeof WeakMap=="function"?WeakMap:Map,ze=0,$e=null,ye=null,be=0,Le=0,Wt=null,Da=!1,vi=!1,Lu=!1,ca=0,Ie=0,Oa=0,xl=0,Bu=0,It=0,gi=0,zs=null,Ut=null,Uu=!1,sr=0,g1=0,cr=1/0,rr=null,La=null,rt=0,Ba=null,yi=null,ra=0,ku=0,Hu=null,y1=null,Ds=0,qu=null;function Pt(){return(ze&2)!==0&&be!==0?be&-be:U.T!==null?Yu():D2()}function _1(){if(It===0)if((be&536870912)===0||Ce){var e=vc;vc<<=1,(vc&3932160)===0&&(vc=262144),It=e}else It=536870912;return e=Kt.current,e!==null&&(e.flags|=32),It}function kt(e,t,n){(e===$e&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(_i(e,0),Ua(e,be,It,!1)),es(e,n),((ze&2)===0||e!==$e)&&(e===$e&&((ze&2)===0&&(xl|=n),Ie===4&&Ua(e,be,It,!1)),Un(e))}function b1(e,t,n){if((ze&6)!==0)throw Error(r(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pi(e,t),c=a?zv(e,t):$u(e,t,!0),o=a;do{if(c===0){vi&&!a&&Ua(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Av(n)){c=$u(e,t,!1),o=!1;continue}if(c===2){if(o=t,e.errorRecoveryDisabledLanes&o)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;c=zs;var S=y.current.memoizedState.isDehydrated;if(S&&(_i(y,d).flags|=256),d=$u(y,d,!1),d!==2){if(Lu&&!S){y.errorRecoveryDisabledLanes|=o,xl|=o,c=4;break e}o=Ut,Ut=c,o!==null&&(Ut===null?Ut=o:Ut.push.apply(Ut,o))}c=d}if(o=!1,c!==2)continue}}if(c===1){_i(e,0),Ua(e,t,0,!0);break}e:{switch(a=e,o=c,o){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ua(a,t,It,!Da);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=sr+300-Qt(),10<c)){if(Ua(a,t,It,!Da),yc(a,0,!0)!==0)break e;ra=t,a.timeoutHandle=W1(x1.bind(null,a,n,Ut,rr,Uu,t,It,xl,gi,Da,o,"Throttled",-0,0),c);break e}x1(a,n,Ut,rr,Uu,t,It,xl,gi,Da,o,null,-0,0)}}break}while(!0);Un(e)}function x1(e,t,n,a,c,o,d,y,S,z,k,G,O,B){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:Xn},h1(t,o,G);var W=(o&62914560)===o?sr-Qt():(o&4194048)===o?g1-Qt():0;if(W=m4(G,W),W!==null){ra=o,e.cancelPendingCommit=W(R1.bind(null,e,t,o,n,a,c,d,y,S,k,G,null,O,B)),Ua(e,o,d,!z);return}}R1(e,t,o,n,a,c,d,y,S)}function Av(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var c=n[a],o=c.getSnapshot;c=c.value;try{if(!Xt(o(),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 Ua(e,t,n,a){t&=~Bu,t&=~xl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var c=t;0<c;){var o=31-Yt(c),d=1<<o;a[o]=-1,c&=~d}n!==0&&A2(e,n,t)}function or(){return(ze&6)===0?(Os(0),!1):!0}function Gu(){if(ye!==null){if(Le===0)var e=ye.return;else e=ye,Wn=dl=null,au(e),oi=null,vs=0,e=ye;for(;e!==null;)Id(e.alternate,e),e=e.return;ye=null}}function _i(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ra=0,Gu(),$e=e,ye=n=Kn(e.current,null),be=t,Le=0,Wt=null,Da=!1,vi=Pi(e,t),Lu=!1,gi=It=Bu=xl=Oa=Ie=0,Ut=zs=null,Uu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var c=31-Yt(a),o=1<<c;t|=e[c],a&=~o}return ca=t,Ac(),n}function S1(e,t){he=null,U.H=ws,t===ri||t===kc?(t=kf(),Le=3):t===Fo?(t=kf(),Le=4):Le=t===_u?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wt=t,ye===null&&(Ie=1,Ic(e,fn(t,e.current)))}function C1(){var e=Kt.current;return e===null?!0:(be&4194048)===be?pn===null:(be&62914560)===be||(be&536870912)!==0?e===pn:!1}function w1(){var e=U.H;return U.H=ws,e===null?ws:e}function j1(){var e=U.A;return U.A=Nv,e}function ur(){Ie=4,Da||(be&4194048)!==be&&Kt.current!==null||(vi=!0),(Oa&134217727)===0&&(xl&134217727)===0||$e===null||Ua($e,be,It,!1)}function $u(e,t,n){var a=ze;ze|=2;var c=w1(),o=j1();($e!==e||be!==t)&&(rr=null,_i(e,t)),t=!1;var d=Ie;e:do try{if(Le!==0&&ye!==null){var y=ye,S=Wt;switch(Le){case 8:Gu(),d=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var z=Le;if(Le=0,Wt=null,bi(e,y,S,z),n&&vi){d=0;break e}break;default:z=Le,Le=0,Wt=null,bi(e,y,S,z)}}Mv(),d=Ie;break}catch(k){S1(e,k)}while(!0);return t&&e.shellSuspendCounter++,Wn=dl=null,ze=a,U.H=c,U.A=o,ye===null&&($e=null,be=0,Ac()),d}function Mv(){for(;ye!==null;)E1(ye)}function zv(e,t){var n=ze;ze|=2;var a=w1(),c=j1();$e!==e||be!==t?(rr=null,cr=Qt()+500,_i(e,t)):vi=Pi(e,t);e:do try{if(Le!==0&&ye!==null){t=ye;var o=Wt;t:switch(Le){case 1:Le=0,Wt=null,bi(e,t,o,1);break;case 2:case 9:if(Bf(o)){Le=0,Wt=null,T1(t);break}t=function(){Le!==2&&Le!==9||$e!==e||(Le=7),Un(e)},o.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Bf(o)?(Le=0,Wt=null,T1(t)):(Le=0,Wt=null,bi(e,t,o,7));break;case 5:var d=null;switch(ye.tag){case 26:d=ye.memoizedState;case 5:case 27:var y=ye;if(d?dh(d):y.stateNode.complete){Le=0,Wt=null;var S=y.sibling;if(S!==null)ye=S;else{var z=y.return;z!==null?(ye=z,fr(z)):ye=null}break t}}Le=0,Wt=null,bi(e,t,o,5);break;case 6:Le=0,Wt=null,bi(e,t,o,6);break;case 8:Gu(),Ie=6;break e;default:throw Error(r(462))}}Dv();break}catch(k){S1(e,k)}while(!0);return Wn=dl=null,U.H=a,U.A=c,ze=n,ye!==null?0:($e=null,be=0,Ac(),Ie)}function Dv(){for(;ye!==null&&!np();)E1(ye)}function E1(e){var t=Jd(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?fr(e):ye=t}function T1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qd(n,t,t.pendingProps,t.type,void 0,be);break;case 11:t=Qd(n,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:au(t);default:Id(n,t),t=ye=jf(t,ca),t=Jd(n,t,ca)}e.memoizedProps=e.pendingProps,t===null?fr(e):ye=t}function bi(e,t,n,a){Wn=dl=null,au(t),oi=null,vs=0;var c=t.return;try{if(xv(e,c,t,n,be)){Ie=1,Ic(e,fn(n,e.current)),ye=null;return}}catch(o){if(c!==null)throw ye=c,o;Ie=1,Ic(e,fn(n,e.current)),ye=null;return}t.flags&32768?(Ce||a===1?e=!0:vi||(be&536870912)!==0?e=!1:(Da=e=!0,(a===2||a===9||a===3||a===6)&&(a=Kt.current,a!==null&&a.tag===13&&(a.flags|=16384))),N1(t,e)):fr(t)}function fr(e){var t=e;do{if((t.flags&32768)!==0){N1(t,Da);return}e=t.return;var n=wv(t.alternate,t,ca);if(n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Ie===0&&(Ie=5)}function N1(e,t){do{var n=jv(e.alternate,e);if(n!==null){n.flags&=32767,ye=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=n}while(e!==null);Ie=6,ye=null}function R1(e,t,n,a,c,o,d,y,S){e.cancelPendingCommit=null;do dr();while(rt!==0);if((ze&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,o|=Ao,dp(e,n,o,d,y,S),e===$e&&(ye=$e=null,be=0),yi=t,Ba=e,ra=n,ku=o,Hu=c,y1=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Uv(mc,function(){return O1(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,c=F.p,F.p=2,d=ze,ze|=4;try{Ev(e,t,n)}finally{ze=d,F.p=c,U.T=a}}rt=1,A1(),M1(),z1()}}function A1(){if(rt===1){rt=0;var e=Ba,t=yi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var a=F.p;F.p=2;var c=ze;ze|=4;try{u1(t,e);var o=e0,d=vf(e.containerInfo),y=o.focusedElem,S=o.selectionRange;if(d!==y&&y&&y.ownerDocument&&pf(y.ownerDocument.documentElement,y)){if(S!==null&&jo(y)){var z=S.start,k=S.end;if(k===void 0&&(k=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(k,y.value.length);else{var G=y.ownerDocument||document,O=G&&G.defaultView||window;if(O.getSelection){var B=O.getSelection(),W=y.textContent.length,ie=Math.min(S.start,W),Ge=S.end===void 0?ie:Math.min(S.end,W);!B.extend&&ie>Ge&&(d=Ge,Ge=ie,ie=d);var N=mf(y,ie),j=mf(y,Ge);if(N&&j&&(B.rangeCount!==1||B.anchorNode!==N.node||B.anchorOffset!==N.offset||B.focusNode!==j.node||B.focusOffset!==j.offset)){var M=G.createRange();M.setStart(N.node,N.offset),B.removeAllRanges(),ie>Ge?(B.addRange(M),B.extend(j.node,j.offset)):(M.setEnd(j.node,j.offset),B.addRange(M))}}}}for(G=[],B=y;B=B.parentNode;)B.nodeType===1&&G.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<G.length;y++){var q=G[y];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}wr=!!Pu,e0=Pu=null}finally{ze=c,F.p=a,U.T=n}}e.current=t,rt=2}}function M1(){if(rt===2){rt=0;var e=Ba,t=yi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var a=F.p;F.p=2;var c=ze;ze|=4;try{i1(e,t.alternate,t)}finally{ze=c,F.p=a,U.T=n}}rt=3}}function z1(){if(rt===4||rt===3){rt=0,ap();var e=Ba,t=yi,n=ra,a=y1;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,yi=Ba=null,D1(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(La=null),io(n),t=t.stateNode,Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(Ii,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=U.T,c=F.p,F.p=2,U.T=null;try{for(var o=e.onRecoverableError,d=0;d<a.length;d++){var y=a[d];o(y.value,{componentStack:y.stack})}}finally{U.T=t,F.p=c}}(ra&3)!==0&&dr(),Un(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===qu?Ds++:(Ds=0,qu=e):Ds=0,Os(0)}}function D1(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ms(t)))}function dr(){return A1(),M1(),z1(),O1()}function O1(){if(rt!==5)return!1;var e=Ba,t=ku;ku=0;var n=io(ra),a=U.T,c=F.p;try{F.p=32>n?32:n,U.T=null,n=Hu,Hu=null;var o=Ba,d=ra;if(rt=0,yi=Ba=null,ra=0,(ze&6)!==0)throw Error(r(331));var y=ze;if(ze|=4,p1(o.current),d1(o,o.current,d,n),ze=y,Os(0,!1),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(Ii,o)}catch{}return!0}finally{F.p=c,U.T=a,D1(e,t)}}function L1(e,t,n){t=fn(n,t),t=yu(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(es(e,2),Un(e))}function Be(e,t,n){if(e.tag===3)L1(e,e,n);else for(;t!==null;){if(t.tag===3){L1(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(La===null||!La.has(a))){e=fn(n,e),n=Bd(2),a=Ra(t,n,2),a!==null&&(Ud(n,a,t,e),es(a,2),Un(a));break}}t=t.return}}function Vu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Rv;var c=new Set;a.set(t,c)}else c=a.get(t),c===void 0&&(c=new Set,a.set(t,c));c.has(n)||(Lu=!0,c.add(n),e=Ov.bind(null,e,t,n),t.then(e,e))}function Ov(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,$e===e&&(be&n)===n&&(Ie===4||Ie===3&&(be&62914560)===be&&300>Qt()-sr?(ze&2)===0&&_i(e,0):Bu|=n,gi===be&&(gi=0)),Un(e)}function B1(e,t){t===0&&(t=R2()),e=ol(e,t),e!==null&&(es(e,t),Un(e))}function Lv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),B1(e,n)}function Bv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),B1(e,n)}function Uv(e,t){return to(e,t)}var hr=null,xi=null,Qu=!1,mr=!1,Fu=!1,ka=0;function Un(e){e!==xi&&e.next===null&&(xi===null?hr=xi=e:xi=xi.next=e),mr=!0,Qu||(Qu=!0,Hv())}function Os(e,t){if(!Fu&&mr){Fu=!0;do for(var n=!1,a=hr;a!==null;){if(e!==0){var c=a.pendingLanes;if(c===0)var o=0;else{var d=a.suspendedLanes,y=a.pingedLanes;o=(1<<31-Yt(42|e)+1)-1,o&=c&~(d&~y),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,q1(a,o))}else o=be,o=yc(a,a===$e?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Pi(a,o)||(n=!0,q1(a,o));a=a.next}while(n);Fu=!1}}function kv(){U1()}function U1(){mr=Qu=!1;var e=0;ka!==0&&Kv()&&(e=ka);for(var t=Qt(),n=null,a=hr;a!==null;){var c=a.next,o=k1(a,t);o===0?(a.next=null,n===null?hr=c:n.next=c,c===null&&(xi=n)):(n=a,(e!==0||(o&3)!==0)&&(mr=!0)),a=c}rt!==0&&rt!==5||Os(e),ka!==0&&(ka=0)}function k1(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var d=31-Yt(o),y=1<<d,S=c[d];S===-1?((y&n)===0||(y&a)!==0)&&(c[d]=fp(y,t)):S<=t&&(e.expiredLanes|=y),o&=~y}if(t=$e,n=be,n=yc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&no(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Pi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&no(a),io(n)){case 2:case 8:n=T2;break;case 32:n=mc;break;case 268435456:n=N2;break;default:n=mc}return a=H1.bind(null,e),n=to(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&no(a),e.callbackPriority=2,e.callbackNode=null,2}function H1(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(dr()&&e.callbackNode!==n)return null;var a=be;return a=yc(e,e===$e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(b1(e,a,t),k1(e,Qt()),e.callbackNode!=null&&e.callbackNode===n?H1.bind(null,e):null)}function q1(e,t){if(dr())return null;b1(e,t,!0)}function Hv(){Wv(function(){(ze&6)!==0?to(E2,kv):U1()})}function Yu(){if(ka===0){var e=si;e===0&&(e=pc,pc<<=1,(pc&261888)===0&&(pc=256)),ka=e}return ka}function G1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Sc(""+e)}function $1(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 qv(e,t,n,a,c){if(t==="submit"&&n&&n.stateNode===c){var o=G1((c[zt]||null).action),d=a.submitter;d&&(t=(t=d[zt]||null)?G1(t.formAction):d.getAttribute("formAction"),t!==null&&(o=t,d=null));var y=new Ec("action","action",null,a,c);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ka!==0){var S=d?$1(c,d):new FormData(c);du(n,{pending:!0,data:S,method:c.method,action:o},null,S)}}else typeof o=="function"&&(y.preventDefault(),S=d?$1(c,d):new FormData(c),du(n,{pending:!0,data:S,method:c.method,action:o},o,S))},currentTarget:c}]})}}for(var Xu=0;Xu<Ro.length;Xu++){var Zu=Ro[Xu],Gv=Zu.toLowerCase(),$v=Zu[0].toUpperCase()+Zu.slice(1);jn(Gv,"on"+$v)}jn(_f,"onAnimationEnd"),jn(bf,"onAnimationIteration"),jn(xf,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(lv,"onTransitionRun"),jn(iv,"onTransitionStart"),jn(sv,"onTransitionCancel"),jn(Sf,"onTransitionEnd"),Yl("onMouseEnter",["mouseout","mouseover"]),Yl("onMouseLeave",["mouseout","mouseover"]),Yl("onPointerEnter",["pointerout","pointerover"]),Yl("onPointerLeave",["pointerout","pointerover"]),il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),il("onBeforeInput",["compositionend","keypress","textInput","paste"]),il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="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(" "),Vv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ls));function V1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],c=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var d=a.length-1;0<=d;d--){var y=a[d],S=y.instance,z=y.currentTarget;if(y=y.listener,S!==o&&c.isPropagationStopped())break e;o=y,c.currentTarget=z;try{o(c)}catch(k){Rc(k)}c.currentTarget=null,o=S}else for(d=0;d<a.length;d++){if(y=a[d],S=y.instance,z=y.currentTarget,y=y.listener,S!==o&&c.isPropagationStopped())break e;o=y,c.currentTarget=z;try{o(c)}catch(k){Rc(k)}c.currentTarget=null,o=S}}}}function _e(e,t){var n=t[so];n===void 0&&(n=t[so]=new Set);var a=e+"__bubble";n.has(a)||(Q1(t,e,2,!1),n.add(a))}function Ku(e,t,n){var a=0;t&&(a|=4),Q1(n,e,a,t)}var pr="_reactListening"+Math.random().toString(36).slice(2);function Ju(e){if(!e[pr]){e[pr]=!0,B2.forEach(function(n){n!=="selectionchange"&&(Vv.has(n)||Ku(n,!1,e),Ku(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pr]||(t[pr]=!0,Ku("selectionchange",!1,t))}}function Q1(e,t,n,a){switch(_h(t)){case 2:var c=g4;break;case 8:c=y4;break;default:c=f0}n=c.bind(null,t,n,e),c=void 0,!vo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),a?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 Wu(e,t,n,a,c){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var y=a.stateNode.containerInfo;if(y===c)break;if(d===4)for(d=a.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===c)return;d=d.return}for(;y!==null;){if(d=Vl(y),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){a=o=d;continue e}y=y.parentNode}}a=a.return}Z2(function(){var z=o,k=mo(n),G=[];e:{var O=Cf.get(e);if(O!==void 0){var B=Ec,W=e;switch(e){case"keypress":if(wc(n)===0)break e;case"keydown":case"keyup":B=Bp;break;case"focusin":W="focus",B=bo;break;case"focusout":W="blur",B=bo;break;case"beforeblur":case"afterblur":B=bo;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":B=W2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=wp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Hp;break;case _f:case bf:case xf:B=Tp;break;case Sf:B=Gp;break;case"scroll":case"scrollend":B=Sp;break;case"wheel":B=Vp;break;case"copy":case"cut":case"paste":B=Rp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=P2;break;case"toggle":case"beforetoggle":B=Fp}var ie=(t&4)!==0,Ge=!ie&&(e==="scroll"||e==="scrollend"),N=ie?O!==null?O+"Capture":null:O;ie=[];for(var j=z,M;j!==null;){var q=j;if(M=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||M===null||N===null||(q=as(j,N),q!=null&&ie.push(Bs(j,q,M))),Ge)break;j=j.return}0<ie.length&&(O=new B(O,W,null,n,k),G.push({event:O,listeners:ie}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",O&&n!==ho&&(W=n.relatedTarget||n.fromElement)&&(Vl(W)||W[$l]))break e;if((B||O)&&(O=k.window===k?k:(O=k.ownerDocument)?O.defaultView||O.parentWindow:window,B?(W=n.relatedTarget||n.toElement,B=z,W=W?Vl(W):null,W!==null&&(Ge=h(W),ie=W.tag,W!==Ge||ie!==5&&ie!==27&&ie!==6)&&(W=null)):(B=null,W=z),B!==W)){if(ie=W2,q="onMouseLeave",N="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=P2,q="onPointerLeave",N="onPointerEnter",j="pointer"),Ge=B==null?O:ns(B),M=W==null?O:ns(W),O=new ie(q,j+"leave",B,n,k),O.target=Ge,O.relatedTarget=M,q=null,Vl(k)===z&&(ie=new ie(N,j+"enter",W,n,k),ie.target=M,ie.relatedTarget=Ge,q=ie),Ge=q,B&&W)t:{for(ie=Qv,N=B,j=W,M=0,q=N;q;q=ie(q))M++;q=0;for(var ne=j;ne;ne=ie(ne))q++;for(;0<M-q;)N=ie(N),M--;for(;0<q-M;)j=ie(j),q--;for(;M--;){if(N===j||j!==null&&N===j.alternate){ie=N;break t}N=ie(N),j=ie(j)}ie=null}else ie=null;B!==null&&F1(G,O,B,ie,!1),W!==null&&Ge!==null&&F1(G,Ge,W,ie,!0)}}e:{if(O=z?ns(z):window,B=O.nodeName&&O.nodeName.toLowerCase(),B==="select"||B==="input"&&O.type==="file")var Re=rf;else if(sf(O))if(of)Re=tv;else{Re=Pp;var P=Ip}else B=O.nodeName,!B||B.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?z&&fo(z.elementType)&&(Re=rf):Re=ev;if(Re&&(Re=Re(e,z))){cf(G,Re,n,k);break e}P&&P(e,O,z),e==="focusout"&&z&&O.type==="number"&&z.memoizedProps.value!=null&&uo(O,"number",O.value)}switch(P=z?ns(z):window,e){case"focusin":(sf(P)||P.contentEditable==="true")&&(Il=P,Eo=z,fs=null);break;case"focusout":fs=Eo=Il=null;break;case"mousedown":To=!0;break;case"contextmenu":case"mouseup":case"dragend":To=!1,gf(G,n,k);break;case"selectionchange":if(av)break;case"keydown":case"keyup":gf(G,n,k)}var me;if(So)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else Wl?af(e,n)&&(xe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(xe="onCompositionStart");xe&&(ef&&n.locale!=="ko"&&(Wl||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&Wl&&(me=K2()):(Sa=k,go="value"in Sa?Sa.value:Sa.textContent,Wl=!0)),P=vr(z,xe),0<P.length&&(xe=new I2(xe,e,null,n,k),G.push({event:xe,listeners:P}),me?xe.data=me:(me=lf(n),me!==null&&(xe.data=me)))),(me=Xp?Zp(e,n):Kp(e,n))&&(xe=vr(z,"onBeforeInput"),0<xe.length&&(P=new I2("onBeforeInput","beforeinput",null,n,k),G.push({event:P,listeners:xe}),P.data=me)),qv(G,e,z,n,k)}V1(G,t)})}function Bs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vr(e,t){for(var n=t+"Capture",a=[];e!==null;){var c=e,o=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||o===null||(c=as(e,n),c!=null&&a.unshift(Bs(e,c,o)),c=as(e,t),c!=null&&a.push(Bs(e,c,o))),e.tag===3)return a;e=e.return}return[]}function Qv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function F1(e,t,n,a,c){for(var o=t._reactName,d=[];n!==null&&n!==a;){var y=n,S=y.alternate,z=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||z===null||(S=z,c?(z=as(n,o),z!=null&&d.unshift(Bs(n,z,S))):c||(z=as(n,o),z!=null&&d.push(Bs(n,z,S)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var Fv=/\r\n?/g,Yv=/\u0000|\uFFFD/g;function Y1(e){return(typeof e=="string"?e:""+e).replace(Fv,`
`).replace(Yv,"")}function X1(e,t){return t=Y1(t),Y1(e)===t}function qe(e,t,n,a,c,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Zl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Zl(e,""+a);break;case"className":bc(e,"class",a);break;case"tabIndex":bc(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":bc(e,n,a);break;case"style":Y2(e,a,o);break;case"data":if(t!=="object"){bc(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Sc(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&qe(e,t,"name",c.name,c,null),qe(e,t,"formEncType",c.formEncType,c,null),qe(e,t,"formMethod",c.formMethod,c,null),qe(e,t,"formTarget",c.formTarget,c,null)):(qe(e,t,"encType",c.encType,c,null),qe(e,t,"method",c.method,c,null),qe(e,t,"target",c.target,c,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Sc(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Xn);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Sc(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":_e("beforetoggle",e),_e("toggle",e),_c(e,"popover",a);break;case"xlinkActuate":Yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Yn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Yn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Yn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Yn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":_c(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=bp.get(n)||n,_c(e,n,a))}}function Iu(e,t,n,a,c,o){switch(n){case"style":Y2(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Zl(e,a):(typeof a=="number"||typeof a=="bigint")&&Zl(e,""+a);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!U2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),o=e[zt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,c),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,c);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):_c(e,n,a)}}}function bt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var a=!1,c=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":a=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:qe(e,t,o,d,n,null)}}c&&qe(e,t,"srcSet",n.srcSet,n,null),a&&qe(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var y=o=d=c=null,S=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var k=n[a];if(k!=null)switch(a){case"name":c=k;break;case"type":d=k;break;case"checked":S=k;break;case"defaultChecked":z=k;break;case"value":o=k;break;case"defaultValue":y=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:qe(e,t,a,k,n,null)}}$2(e,o,y,S,z,d,c,!1);return;case"select":_e("invalid",e),a=d=o=null;for(c in n)if(n.hasOwnProperty(c)&&(y=n[c],y!=null))switch(c){case"value":o=y;break;case"defaultValue":d=y;break;case"multiple":a=y;default:qe(e,t,c,y,n,null)}t=o,n=d,e.multiple=!!a,t!=null?Xl(e,!!a,t,!1):n!=null&&Xl(e,!!a,n,!0);return;case"textarea":_e("invalid",e),o=c=a=null;for(d in n)if(n.hasOwnProperty(d)&&(y=n[d],y!=null))switch(d){case"value":a=y;break;case"defaultValue":c=y;break;case"children":o=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:qe(e,t,d,y,n,null)}Q2(e,a,c,o);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(a=n[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:qe(e,t,S,a,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(a=0;a<Ls.length;a++)_e(Ls[a],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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(z in n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:qe(e,t,z,a,n,null)}return;default:if(fo(t)){for(k in n)n.hasOwnProperty(k)&&(a=n[k],a!==void 0&&Iu(e,t,k,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&qe(e,t,y,a,n,null))}function Xv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,o=null,d=null,y=null,S=null,z=null,k=null;for(B in n){var G=n[B];if(n.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":S=G;default:a.hasOwnProperty(B)||qe(e,t,B,null,a,G)}}for(var O in a){var B=a[O];if(G=n[O],a.hasOwnProperty(O)&&(B!=null||G!=null))switch(O){case"type":o=B;break;case"name":c=B;break;case"checked":z=B;break;case"defaultChecked":k=B;break;case"value":d=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:B!==G&&qe(e,t,O,B,a,G)}}oo(e,d,y,S,z,k,o,c);return;case"select":B=d=y=O=null;for(o in n)if(S=n[o],n.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":B=S;default:a.hasOwnProperty(o)||qe(e,t,o,null,a,S)}for(c in a)if(o=a[c],S=n[c],a.hasOwnProperty(c)&&(o!=null||S!=null))switch(c){case"value":O=o;break;case"defaultValue":y=o;break;case"multiple":d=o;default:o!==S&&qe(e,t,c,o,a,S)}t=y,n=d,a=B,O!=null?Xl(e,!!n,O,!1):!!a!=!!n&&(t!=null?Xl(e,!!n,t,!0):Xl(e,!!n,n?[]:"",!1));return;case"textarea":B=O=null;for(y in n)if(c=n[y],n.hasOwnProperty(y)&&c!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:qe(e,t,y,null,a,c)}for(d in a)if(c=a[d],o=n[d],a.hasOwnProperty(d)&&(c!=null||o!=null))switch(d){case"value":O=c;break;case"defaultValue":B=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==o&&qe(e,t,d,c,a,o)}V2(e,O,B);return;case"option":for(var W in n)if(O=n[W],n.hasOwnProperty(W)&&O!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:qe(e,t,W,null,a,O)}for(S in a)if(O=a[S],B=n[S],a.hasOwnProperty(S)&&O!==B&&(O!=null||B!=null))switch(S){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:qe(e,t,S,O,a,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in n)O=n[ie],n.hasOwnProperty(ie)&&O!=null&&!a.hasOwnProperty(ie)&&qe(e,t,ie,null,a,O);for(z in a)if(O=a[z],B=n[z],a.hasOwnProperty(z)&&O!==B&&(O!=null||B!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:qe(e,t,z,O,a,B)}return;default:if(fo(t)){for(var Ge in n)O=n[Ge],n.hasOwnProperty(Ge)&&O!==void 0&&!a.hasOwnProperty(Ge)&&Iu(e,t,Ge,void 0,a,O);for(k in a)O=a[k],B=n[k],!a.hasOwnProperty(k)||O===B||O===void 0&&B===void 0||Iu(e,t,k,O,a,B);return}}for(var N in n)O=n[N],n.hasOwnProperty(N)&&O!=null&&!a.hasOwnProperty(N)&&qe(e,t,N,null,a,O);for(G in a)O=a[G],B=n[G],!a.hasOwnProperty(G)||O===B||O==null&&B==null||qe(e,t,G,O,a,B)}function Z1(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Zv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var c=n[a],o=c.transferSize,d=c.initiatorType,y=c.duration;if(o&&y&&Z1(d)){for(d=0,y=c.responseEnd,a+=1;a<n.length;a++){var S=n[a],z=S.startTime;if(z>y)break;var k=S.transferSize,G=S.initiatorType;k&&Z1(G)&&(S=S.responseEnd,d+=k*(S<y?1:(y-z)/(S-z)))}if(--a,t+=8*(o+d)/(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 Pu=null,e0=null;function gr(e){return e.nodeType===9?e:e.ownerDocument}function K1(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 J1(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 t0(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 n0=null;function Kv(){var e=window.event;return e&&e.type==="popstate"?e===n0?!1:(n0=e,!0):(n0=null,!1)}var W1=typeof setTimeout=="function"?setTimeout:void 0,Jv=typeof clearTimeout=="function"?clearTimeout:void 0,I1=typeof Promise=="function"?Promise:void 0,Wv=typeof queueMicrotask=="function"?queueMicrotask:typeof I1<"u"?function(e){return I1.resolve(null).then(e).catch(Iv)}:W1;function Iv(e){setTimeout(function(){throw e})}function Ha(e){return e==="head"}function P1(e,t){var n=t,a=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(c),ji(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Us(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Us(n);for(var o=n.firstChild;o;){var d=o.nextSibling,y=o.nodeName;o[ts]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&Us(e.ownerDocument.body);n=c}while(n);ji(t)}function eh(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function a0(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":a0(n),co(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Pv(e,t,n,a){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ts])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==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(o=e.getAttribute("src"),(o!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=vn(e.nextSibling),e===null)break}return null}function e4(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=vn(e.nextSibling),e===null))return null;return e}function th(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=vn(e.nextSibling),e===null))return null;return e}function l0(e){return e.data==="$?"||e.data==="$~"}function i0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function t4(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function vn(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 s0=null;function nh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return vn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function ah(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 lh(e,t,n){switch(t=gr(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 Us(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);co(e)}var gn=new Map,ih=new Set;function yr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var oa=F.d;F.d={f:n4,r:a4,D:l4,C:i4,L:s4,m:c4,X:o4,S:r4,M:u4};function n4(){var e=oa.f(),t=or();return e||t}function a4(e){var t=Ql(e);t!==null&&t.tag===5&&t.type==="form"?Sd(t):oa.r(e)}var Si=typeof document>"u"?null:document;function sh(e,t,n){var a=Si;if(a&&typeof t=="string"&&t){var c=on(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),ih.has(c)||(ih.add(c),e={rel:e,crossOrigin:n,href:t},a.querySelector(c)===null&&(t=a.createElement("link"),bt(t,"link",e),ft(t),a.head.appendChild(t)))}}function l4(e){oa.D(e),sh("dns-prefetch",e,null)}function i4(e,t){oa.C(e,t),sh("preconnect",e,t)}function s4(e,t,n){oa.L(e,t,n);var a=Si;if(a&&e&&t){var c='link[rel="preload"][as="'+on(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+on(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+on(n.imageSizes)+'"]')):c+='[href="'+on(e)+'"]';var o=c;switch(t){case"style":o=Ci(e);break;case"script":o=wi(e)}gn.has(o)||(e=_({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),gn.set(o,e),a.querySelector(c)!==null||t==="style"&&a.querySelector(ks(o))||t==="script"&&a.querySelector(Hs(o))||(t=a.createElement("link"),bt(t,"link",e),ft(t),a.head.appendChild(t)))}}function c4(e,t){oa.m(e,t);var n=Si;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+on(a)+'"][href="'+on(e)+'"]',o=c;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=wi(e)}if(!gn.has(o)&&(e=_({rel:"modulepreload",href:e},t),gn.set(o,e),n.querySelector(c)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Hs(o)))return}a=n.createElement("link"),bt(a,"link",e),ft(a),n.head.appendChild(a)}}}function r4(e,t,n){oa.S(e,t,n);var a=Si;if(a&&e){var c=Fl(a).hoistableStyles,o=Ci(e);t=t||"default";var d=c.get(o);if(!d){var y={loading:0,preload:null};if(d=a.querySelector(ks(o)))y.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},n),(n=gn.get(o))&&c0(e,n);var S=d=a.createElement("link");ft(S),bt(S,"link",e),S._p=new Promise(function(z,k){S.onload=z,S.onerror=k}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,_r(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:y},c.set(o,d)}}}function o4(e,t){oa.X(e,t);var n=Si;if(n&&e){var a=Fl(n).hoistableScripts,c=wi(e),o=a.get(c);o||(o=n.querySelector(Hs(c)),o||(e=_({src:e,async:!0},t),(t=gn.get(c))&&r0(e,t),o=n.createElement("script"),ft(o),bt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(c,o))}}function u4(e,t){oa.M(e,t);var n=Si;if(n&&e){var a=Fl(n).hoistableScripts,c=wi(e),o=a.get(c);o||(o=n.querySelector(Hs(c)),o||(e=_({src:e,async:!0,type:"module"},t),(t=gn.get(c))&&r0(e,t),o=n.createElement("script"),ft(o),bt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(c,o))}}function ch(e,t,n,a){var c=(c=fe.current)?yr(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=Ci(n.href),n=Fl(c).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ci(n.href);var o=Fl(c).hoistableStyles,d=o.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,d),(o=c.querySelector(ks(e)))&&!o._p&&(d.instance=o,d.state.loading=5),gn.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},gn.set(e,n),o||f4(c,e,n,d.state))),t&&a===null)throw Error(r(528,""));return d}if(t&&a!==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=wi(n),n=Fl(c).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ci(e){return'href="'+on(e)+'"'}function ks(e){return'link[rel="stylesheet"]['+e+"]"}function rh(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function f4(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),bt(t,"link",n),ft(t),e.head.appendChild(t))}function wi(e){return'[src="'+on(e)+'"]'}function Hs(e){return"script[async]"+e}function oh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+on(n.href)+'"]');if(a)return t.instance=a,ft(a),a;var c=_({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ft(a),bt(a,"style",c),_r(a,n.precedence,e),t.instance=a;case"stylesheet":c=Ci(n.href);var o=e.querySelector(ks(c));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;a=rh(n),(c=gn.get(c))&&c0(a,c),o=(e.ownerDocument||e).createElement("link"),ft(o);var d=o;return d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),bt(o,"link",a),t.state.loading|=4,_r(o,n.precedence,e),t.instance=o;case"script":return o=wi(n.src),(c=e.querySelector(Hs(o)))?(t.instance=c,ft(c),c):(a=n,(c=gn.get(o))&&(a=_({},n),r0(a,c)),e=e.ownerDocument||e,c=e.createElement("script"),ft(c),bt(c,"link",a),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&&(a=t.instance,t.state.loading|=4,_r(a,n.precedence,e));return t.instance}function _r(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=a.length?a[a.length-1]:null,o=c,d=0;d<a.length;d++){var y=a[d];if(y.dataset.precedence===t)o=y;else if(o!==c)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function c0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function r0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var br=null;function uh(e,t,n){if(br===null){var a=new Map,c=br=new Map;c.set(n,a)}else c=br,a=c.get(n),a||(a=new Map,c.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var o=n[c];if(!(o[ts]||o[vt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(t)||"";d=e+d;var y=a.get(d);y?y.push(o):a.set(d,[o])}}return a}function fh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function d4(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 dh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function h4(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=Ci(a.href),o=t.querySelector(ks(c));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=xr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,ft(o);return}o=t.ownerDocument||t,a=rh(a),(c=gn.get(c))&&c0(a,c),o=o.createElement("link"),ft(o);var d=o;d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),bt(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=xr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var o0=0;function m4(e,t){return e.stylesheets&&e.count===0&&Cr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Cr(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&o0===0&&(o0=62500*Zv());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Cr(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>o0?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(c)}}:null}function xr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Sr=null;function Cr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Sr=new Map,t.forEach(p4,e),Sr=null,xr.call(e))}function p4(e,t){if(!(t.state.loading&4)){var n=Sr.get(e);if(n)var a=n.get(null);else{n=new Map,Sr.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<c.length;o++){var d=c[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}c=t.instance,d=c.getAttribute("data-precedence"),o=n.get(d)||a,o===a&&n.set(null,c),n.set(d,c),this.count++,a=xr.bind(this),c.addEventListener("load",a),c.addEventListener("error",a),o?o.parentNode.insertBefore(c,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var qs={$$typeof:$,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function v4(e,t,n,a,c,o,d,y,S){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=ao(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ao(0),this.hiddenUpdates=ao(null),this.identifierPrefix=a,this.onUncaughtError=c,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function hh(e,t,n,a,c,o,d,y,S,z,k,G){return e=new v4(e,t,n,d,S,z,k,G,y),t=1,o===!0&&(t|=24),o=Zt(3,null,null,t),e.current=o,o.stateNode=e,t=$o(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Yo(o),e}function mh(e){return e?(e=ti,e):ti}function ph(e,t,n,a,c,o){c=mh(c),a.context===null?a.context=c:a.pendingContext=c,a=Na(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Ra(e,a,t),n!==null&&(kt(n,e,t),ys(n,e,t))}function vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function u0(e,t){vh(e,t),(e=e.alternate)&&vh(e,t)}function gh(e){if(e.tag===13||e.tag===31){var t=ol(e,67108864);t!==null&&kt(t,e,67108864),u0(e,67108864)}}function yh(e){if(e.tag===13||e.tag===31){var t=Pt();t=lo(t);var n=ol(e,t);n!==null&&kt(n,e,t),u0(e,t)}}var wr=!0;function g4(e,t,n,a){var c=U.T;U.T=null;var o=F.p;try{F.p=2,f0(e,t,n,a)}finally{F.p=o,U.T=c}}function y4(e,t,n,a){var c=U.T;U.T=null;var o=F.p;try{F.p=8,f0(e,t,n,a)}finally{F.p=o,U.T=c}}function f0(e,t,n,a){if(wr){var c=d0(a);if(c===null)Wu(e,t,a,jr,n),bh(e,a);else if(b4(c,e,t,n,a))a.stopPropagation();else if(bh(e,a),t&4&&-1<_4.indexOf(e)){for(;c!==null;){var o=Ql(c);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=ll(o.pendingLanes);if(d!==0){var y=o;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var S=1<<31-Yt(d);y.entanglements[1]|=S,d&=~S}Un(o),(ze&6)===0&&(cr=Qt()+500,Os(0))}}break;case 31:case 13:y=ol(o,2),y!==null&&kt(y,o,2),or(),u0(o,2)}if(o=d0(a),o===null&&Wu(e,t,a,jr,n),o===c)break;c=o}c!==null&&a.stopPropagation()}else Wu(e,t,a,null,n)}}function d0(e){return e=mo(e),h0(e)}var jr=null;function h0(e){if(jr=null,e=Vl(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=p(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 jr=e,null}function _h(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(lp()){case E2:return 2;case T2:return 8;case mc:case ip:return 32;case N2:return 268435456;default:return 32}default:return 32}}var m0=!1,qa=null,Ga=null,$a=null,Gs=new Map,$s=new Map,Va=[],_4="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 bh(e,t){switch(e){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Ga=null;break;case"mouseover":case"mouseout":$a=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(t.pointerId)}}function Vs(e,t,n,a,c,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[c]},t!==null&&(t=Ql(t),t!==null&&gh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function b4(e,t,n,a,c){switch(t){case"focusin":return qa=Vs(qa,e,t,n,a,c),!0;case"dragenter":return Ga=Vs(Ga,e,t,n,a,c),!0;case"mouseover":return $a=Vs($a,e,t,n,a,c),!0;case"pointerover":var o=c.pointerId;return Gs.set(o,Vs(Gs.get(o)||null,e,t,n,a,c)),!0;case"gotpointercapture":return o=c.pointerId,$s.set(o,Vs($s.get(o)||null,e,t,n,a,c)),!0}return!1}function xh(e){var t=Vl(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,O2(e.priority,function(){yh(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,O2(e.priority,function(){yh(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 Er(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=d0(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ho=a,n.target.dispatchEvent(a),ho=null}else return t=Ql(n),t!==null&&gh(t),e.blockedOn=n,!1;t.shift()}return!0}function Sh(e,t,n){Er(e)&&n.delete(t)}function x4(){m0=!1,qa!==null&&Er(qa)&&(qa=null),Ga!==null&&Er(Ga)&&(Ga=null),$a!==null&&Er($a)&&($a=null),Gs.forEach(Sh),$s.forEach(Sh)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,m0||(m0=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,x4)))}var Nr=null;function Ch(e){Nr!==e&&(Nr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Nr===e&&(Nr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],c=e[t+2];if(typeof a!="function"){if(h0(a||n)===null)continue;break}var o=Ql(n);o!==null&&(e.splice(t,3),t-=3,du(o,{pending:!0,data:c,method:n.method,action:a},a,c))}}))}function ji(e){function t(S){return Tr(S,e)}qa!==null&&Tr(qa,e),Ga!==null&&Tr(Ga,e),$a!==null&&Tr($a,e),Gs.forEach(t),$s.forEach(t);for(var n=0;n<Va.length;n++){var a=Va[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Va.length&&(n=Va[0],n.blockedOn===null);)xh(n),n.blockedOn===null&&Va.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var c=n[a],o=n[a+1],d=c[zt]||null;if(typeof o=="function")d||Ch(n);else if(d){var y=null;if(o&&o.hasAttribute("formAction")){if(c=o,d=o[zt]||null)y=d.formAction;else if(h0(c)!==null)continue}else y=d.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),Ch(n)}}}function wh(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(d){return c=d})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function p0(e){this._internalRoot=e}Rr.prototype.render=p0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=Pt();ph(n,a,e,t,null,null)},Rr.prototype.unmount=p0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),or(),t[$l]=null}};function Rr(e){this._internalRoot=e}Rr.prototype.unstable_scheduleHydration=function(e){if(e){var t=D2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Va.length&&t!==0&&t<Va[n].priority;n++);Va.splice(n,0,e),n===0&&xh(e)}};var jh=s.version;if(jh!=="19.2.5")throw Error(r(527,jh,"19.2.5"));F.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=v(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var S4={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ar=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ar.isDisabled&&Ar.supportsFiber)try{Ii=Ar.inject(S4),Ft=Ar}catch{}}return Fs.createRoot=function(e,t){if(!f(e))throw Error(r(299));var n=!1,a="",c=zd,o=Dd,d=Od;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=hh(e,1,!1,null,null,n,a,null,c,o,d,wh),e[$l]=t.current,Ju(e),new p0(t)},Fs.hydrateRoot=function(e,t,n){if(!f(e))throw Error(r(299));var a=!1,c="",o=zd,d=Dd,y=Od,S=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),t=hh(e,1,!0,t,n??null,a,c,S,o,d,y,wh),t.context=mh(null),n=t.current,a=Pt(),a=lo(a),c=Na(a),c.callback=null,Ra(n,c,a),n=a,t.current.lanes=n,es(t,n),Un(t),e[$l]=t.current,Ju(e),new Rr(t)},Fs.version="19.2.5",Fs}var Bh;function D4(){if(Bh)return _0.exports;Bh=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),_0.exports=z4(),_0.exports}var O4=D4();/**
* 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 Uh="popstate";function kh(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function L4(l={}){function s(r,f){var v;let h=(v=f.state)==null?void 0:v.masked,{pathname:m,search:p,hash:g}=h||r.location;return U0("",{pathname:m,search:p,hash:g},f.state&&f.state.usr||null,f.state&&f.state.key||"default",h?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function i(r,f){return typeof f=="string"?f:tc(f)}return U4(s,i,null,l)}function Ke(l,s){if(l===!1||l===null||typeof l>"u")throw new Error(s)}function An(l,s){if(!l){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function B4(){return Math.random().toString(36).substring(2,10)}function Hh(l,s){return{usr:l.state,key:l.key,idx:s,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function U0(l,s,i=null,r,f){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof s=="string"?$i(s):s,state:i,key:s&&s.key||r||B4(),unstable_mask:f}}function tc({pathname:l="/",search:s="",hash:i=""}){return s&&s!=="?"&&(l+=s.charAt(0)==="?"?s:"?"+s),i&&i!=="#"&&(l+=i.charAt(0)==="#"?i:"#"+i),l}function $i(l){let s={};if(l){let i=l.indexOf("#");i>=0&&(s.hash=l.substring(i),l=l.substring(0,i));let r=l.indexOf("?");r>=0&&(s.search=l.substring(r),l=l.substring(0,r)),l&&(s.pathname=l)}return s}function U4(l,s,i,r={}){let{window:f=document.defaultView,v5Compat:h=!1}=r,m=f.history,p="POP",g=null,v=b();v==null&&(v=0,m.replaceState({...m.state,idx:v},""));function b(){return(m.state||{idx:null}).idx}function _(){p="POP";let E=b(),L=E==null?null:E-v;v=E,g&&g({action:p,location:D.location,delta:L})}function w(E,L){p="PUSH";let Q=kh(E)?E:U0(D.location,E,L);v=b()+1;let $=Hh(Q,v),V=D.createHref(Q.unstable_mask||Q);try{m.pushState($,"",V)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;f.location.assign(V)}h&&g&&g({action:p,location:D.location,delta:1})}function R(E,L){p="REPLACE";let Q=kh(E)?E:U0(D.location,E,L);v=b();let $=Hh(Q,v),V=D.createHref(Q.unstable_mask||Q);m.replaceState($,"",V),h&&g&&g({action:p,location:D.location,delta:0})}function A(E){return k4(E)}let D={get action(){return p},get location(){return l(f,m)},listen(E){if(g)throw new Error("A history only accepts one active listener");return f.addEventListener(Uh,_),g=E,()=>{f.removeEventListener(Uh,_),g=null}},createHref(E){return s(f,E)},createURL:A,encodeLocation(E){let L=A(E);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:w,replace:R,go(E){return m.go(E)}};return D}function k4(l,s=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ke(i,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:tc(l);return r=r.replace(/ $/,"%20"),!s&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function Km(l,s,i="/"){return H4(l,s,i,!1)}function H4(l,s,i,r){let f=typeof s=="string"?$i(s):s,h=ga(f.pathname||"/",i);if(h==null)return null;let m=Jm(l);q4(m);let p=null;for(let g=0;p==null&&g<m.length;++g){let v=W4(h);p=K4(m[g],v,r)}return p}function Jm(l,s=[],i=[],r="",f=!1){let h=(m,p,g=f,v)=>{let b={relativePath:v===void 0?m.path||"":v,caseSensitive:m.caseSensitive===!0,childrenIndex:p,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&g)return;Ke(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let _=Rn([r,b.relativePath]),w=i.concat(b);m.children&&m.children.length>0&&(Ke(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${_}".`),Jm(m.children,s,w,_,g)),!(m.path==null&&!m.index)&&s.push({path:_,score:X4(_,m.index),routesMeta:w})};return l.forEach((m,p)=>{var g;if(m.path===""||!((g=m.path)!=null&&g.includes("?")))h(m,p);else for(let v of Wm(m.path))h(m,p,!0,v)}),s}function Wm(l){let s=l.split("/");if(s.length===0)return[];let[i,...r]=s,f=i.endsWith("?"),h=i.replace(/\?$/,"");if(r.length===0)return f?[h,""]:[h];let m=Wm(r.join("/")),p=[];return p.push(...m.map(g=>g===""?h:[h,g].join("/"))),f&&p.push(...m),p.map(g=>l.startsWith("/")&&g===""?"/":g)}function q4(l){l.sort((s,i)=>s.score!==i.score?i.score-s.score:Z4(s.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var G4=/^:[\w-]+$/,$4=3,V4=2,Q4=1,F4=10,Y4=-2,qh=l=>l==="*";function X4(l,s){let i=l.split("/"),r=i.length;return i.some(qh)&&(r+=Y4),s&&(r+=V4),i.filter(f=>!qh(f)).reduce((f,h)=>f+(G4.test(h)?$4:h===""?Q4:F4),r)}function Z4(l,s){return l.length===s.length&&l.slice(0,-1).every((r,f)=>r===s[f])?l[l.length-1]-s[s.length-1]:0}function K4(l,s,i=!1){let{routesMeta:r}=l,f={},h="/",m=[];for(let p=0;p<r.length;++p){let g=r[p],v=p===r.length-1,b=h==="/"?s:s.slice(h.length)||"/",_=qr({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},b),w=g.route;if(!_&&v&&i&&!r[r.length-1].route.index&&(_=qr({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!_)return null;Object.assign(f,_.params),m.push({params:f,pathname:Rn([h,_.pathname]),pathnameBase:tg(Rn([h,_.pathnameBase])),route:w}),_.pathnameBase!=="/"&&(h=Rn([h,_.pathnameBase]))}return m}function qr(l,s){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,r]=J4(l.path,l.caseSensitive,l.end),f=s.match(i);if(!f)return null;let h=f[0],m=h.replace(/(.)\/+$/,"$1"),p=f.slice(1);return{params:r.reduce((v,{paramName:b,isOptional:_},w)=>{if(b==="*"){let A=p[w]||"";m=h.slice(0,h.length-A.length).replace(/(.)\/+$/,"$1")}const R=p[w];return _&&!R?v[b]=void 0:v[b]=(R||"").replace(/%2F/g,"/"),v},{}),pathname:h,pathnameBase:m,pattern:l}}function J4(l,s=!1,i=!0){An(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],f="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,p,g,v,b)=>{if(r.push({paramName:p,isOptional:g!=null}),g){let _=b.charAt(v+m.length);return _&&_!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),f+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?f+="\\/*$":l!==""&&l!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,s?void 0:"i"),r]}function W4(l){try{return l.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return An(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),l}}function ga(l,s){if(s==="/")return l;if(!l.toLowerCase().startsWith(s.toLowerCase()))return null;let i=s.endsWith("/")?s.length-1:s.length,r=l.charAt(i);return r&&r!=="/"?null:l.slice(i)||"/"}var I4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function P4(l,s="/"){let{pathname:i,search:r="",hash:f=""}=typeof l=="string"?$i(l):l,h;return i?(i=Im(i),i.startsWith("/")?h=Gh(i.substring(1),"/"):h=Gh(i,s)):h=s,{pathname:h,search:ng(r),hash:ag(f)}}function Gh(l,s){let i=Gr(s).split("/");return l.split("/").forEach(f=>{f===".."?i.length>1&&i.pop():f!=="."&&i.push(f)}),i.length>1?i.join("/"):"/"}function C0(l,s,i,r){return`Cannot include a '${l}' character in a manually specified \`to.${s}\` 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 eg(l){return l.filter((s,i)=>i===0||s.route.path&&s.route.path.length>0)}function r2(l){let s=eg(l);return s.map((i,r)=>r===s.length-1?i.pathname:i.pathnameBase)}function Yr(l,s,i,r=!1){let f;typeof l=="string"?f=$i(l):(f={...l},Ke(!f.pathname||!f.pathname.includes("?"),C0("?","pathname","search",f)),Ke(!f.pathname||!f.pathname.includes("#"),C0("#","pathname","hash",f)),Ke(!f.search||!f.search.includes("#"),C0("#","search","hash",f)));let h=l===""||f.pathname==="",m=h?"/":f.pathname,p;if(m==null)p=i;else{let _=s.length-1;if(!r&&m.startsWith("..")){let w=m.split("/");for(;w[0]==="..";)w.shift(),_-=1;f.pathname=w.join("/")}p=_>=0?s[_]:"/"}let g=P4(f,p),v=m&&m!=="/"&&m.endsWith("/"),b=(h||m===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(v||b)&&(g.pathname+="/"),g}var Im=l=>l.replace(/\/\/+/g,"/"),Rn=l=>Im(l.join("/")),Gr=l=>l.replace(/\/+$/,""),tg=l=>Gr(l).replace(/^\/*/,"/"),ng=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,ag=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,lg=class{constructor(l,s,i,r=!1){this.status=l,this.statusText=s||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function ig(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function sg(l){let s=l.map(i=>i.route.path).filter(Boolean);return Rn(s)||"/"}var Pm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function e3(l,s){let i=l;if(typeof i!="string"||!I4.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let r=i,f=!1;if(Pm)try{let h=new URL(window.location.href),m=i.startsWith("//")?new URL(h.protocol+i):new URL(i),p=ga(m.pathname,s);m.origin===h.origin&&p!=null?i=p+m.search+m.hash:f=!0}catch{An(!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:f,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var t3=["POST","PUT","PATCH","DELETE"];new Set(t3);var cg=["GET",...t3];new Set(cg);var Vi=x.createContext(null);Vi.displayName="DataRouter";var Xr=x.createContext(null);Xr.displayName="DataRouterState";var n3=x.createContext(!1);function rg(){return x.useContext(n3)}var a3=x.createContext({isTransitioning:!1});a3.displayName="ViewTransition";var og=x.createContext(new Map);og.displayName="Fetchers";var ug=x.createContext(null);ug.displayName="Await";var sn=x.createContext(null);sn.displayName="Navigation";var uc=x.createContext(null);uc.displayName="Location";var Cn=x.createContext({outlet:null,matches:[],isDataRoute:!1});Cn.displayName="Route";var o2=x.createContext(null);o2.displayName="RouteError";var l3="REACT_ROUTER_ERROR",fg="REDIRECT",dg="ROUTE_ERROR_RESPONSE";function hg(l){if(l.startsWith(`${l3}:${fg}:{`))try{let s=JSON.parse(l.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function mg(l){if(l.startsWith(`${l3}:${dg}:{`))try{let s=JSON.parse(l.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new lg(s.status,s.statusText,s.data)}catch{}}function pg(l,{relative:s}={}){Ke(Qi(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=x.useContext(sn),{hash:f,pathname:h,search:m}=fc(l,{relative:s}),p=h;return i!=="/"&&(p=h==="/"?i:Rn([i,h])),r.createHref({pathname:p,search:m,hash:f})}function Qi(){return x.useContext(uc)!=null}function cn(){return Ke(Qi(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(uc).location}var i3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function s3(l){x.useContext(sn).static||x.useLayoutEffect(l)}function Mn(){let{isDataRoute:l}=x.useContext(Cn);return l?Mg():vg()}function vg(){Ke(Qi(),"useNavigate() may be used only in the context of a <Router> component.");let l=x.useContext(Vi),{basename:s,navigator:i}=x.useContext(sn),{matches:r}=x.useContext(Cn),{pathname:f}=cn(),h=JSON.stringify(r2(r)),m=x.useRef(!1);return s3(()=>{m.current=!0}),x.useCallback((g,v={})=>{if(An(m.current,i3),!m.current)return;if(typeof g=="number"){i.go(g);return}let b=Yr(g,JSON.parse(h),f,v.relative==="path");l==null&&s!=="/"&&(b.pathname=b.pathname==="/"?s:Rn([s,b.pathname])),(v.replace?i.replace:i.push)(b,v.state,v)},[s,i,h,f,l])}var gg=x.createContext(null);function yg(l){let s=x.useContext(Cn).outlet;return x.useMemo(()=>s&&x.createElement(gg.Provider,{value:l},s),[s,l])}function _g(){let{matches:l}=x.useContext(Cn),s=l[l.length-1];return(s==null?void 0:s.params)??{}}function fc(l,{relative:s}={}){let{matches:i}=x.useContext(Cn),{pathname:r}=cn(),f=JSON.stringify(r2(i));return x.useMemo(()=>Yr(l,JSON.parse(f),r,s==="path"),[l,f,r,s])}function bg(l,s){return c3(l,s)}function c3(l,s,i){var E;Ke(Qi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=x.useContext(sn),{matches:f}=x.useContext(Cn),h=f[f.length-1],m=h?h.params:{},p=h?h.pathname:"/",g=h?h.pathnameBase:"/",v=h&&h.route;{let L=v&&v.path||"";o3(p,!v||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${L}">) 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="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let b=cn(),_;if(s){let L=typeof s=="string"?$i(s):s;Ke(g==="/"||((E=L.pathname)==null?void 0:E.startsWith(g)),`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 "${g}" but pathname "${L.pathname}" was given in the \`location\` prop.`),_=L}else _=b;let w=_.pathname||"/",R=w;if(g!=="/"){let L=g.replace(/^\//,"").split("/");R="/"+w.replace(/^\//,"").split("/").slice(L.length).join("/")}let A=Km(l,{pathname:R});An(v||A!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),An(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.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 D=jg(A&&A.map(L=>Object.assign({},L,{params:Object.assign({},m,L.params),pathname:Rn([g,r.encodeLocation?r.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?g:Rn([g,r.encodeLocation?r.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),f,i);return s&&D?x.createElement(uc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,..._},navigationType:"POP"}},D):D}function xg(){let l=Ag(),s=ig(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),i=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",l),m=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:h},"ErrorBoundary")," or"," ",x.createElement("code",{style:h},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},s),i?x.createElement("pre",{style:f},i):null,m)}var Sg=x.createElement(xg,null),r3=class extends x.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,s){return s.location!==l.location||s.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:s.error,location:s.location,revalidation:l.revalidation||s.revalidation}}componentDidCatch(l,s){this.props.onError?this.props.onError(l,s):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const i=mg(l.digest);i&&(l=i)}let s=l!==void 0?x.createElement(Cn.Provider,{value:this.props.routeContext},x.createElement(o2.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?x.createElement(Cg,{error:l},s):s}};r3.contextType=n3;var w0=new WeakMap;function Cg({children:l,error:s}){let{basename:i}=x.useContext(sn);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let r=hg(s.digest);if(r){let f=w0.get(s);if(f)throw f;let h=e3(r.location,i);if(Pm&&!w0.get(s))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw w0.set(s,m),m}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return l}function wg({routeContext:l,match:s,children:i}){let r=x.useContext(Vi);return r&&r.static&&r.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=s.route.id),x.createElement(Cn.Provider,{value:l},i)}function jg(l,s=[],i){let r=i==null?void 0:i.state;if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(s.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let f=l,h=r==null?void 0:r.errors;if(h!=null){let b=f.findIndex(_=>_.route.id&&(h==null?void 0:h[_.route.id])!==void 0);Ke(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let m=!1,p=-1;if(i&&r){m=r.renderFallback;for(let b=0;b<f.length;b++){let _=f[b];if((_.route.HydrateFallback||_.route.hydrateFallbackElement)&&(p=b),_.route.id){let{loaderData:w,errors:R}=r,A=_.route.loader&&!w.hasOwnProperty(_.route.id)&&(!R||R[_.route.id]===void 0);if(_.route.lazy||A){i.isStatic&&(m=!0),p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}}let g=i==null?void 0:i.onError,v=r&&g?(b,_)=>{var w,R;g(b,{location:r.location,params:((R=(w=r.matches)==null?void 0:w[0])==null?void 0:R.params)??{},unstable_pattern:sg(r.matches),errorInfo:_})}:void 0;return f.reduceRight((b,_,w)=>{let R,A=!1,D=null,E=null;r&&(R=h&&_.route.id?h[_.route.id]:void 0,D=_.route.errorElement||Sg,m&&(p<0&&w===0?(o3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,E=null):p===w&&(A=!0,E=_.route.hydrateFallbackElement||null)));let L=s.concat(f.slice(0,w+1)),Q=()=>{let $;return R?$=D:A?$=E:_.route.Component?$=x.createElement(_.route.Component,null):_.route.element?$=_.route.element:$=b,x.createElement(wg,{match:_,routeContext:{outlet:b,matches:L,isDataRoute:r!=null},children:$})};return r&&(_.route.ErrorBoundary||_.route.errorElement||w===0)?x.createElement(r3,{location:r.location,revalidation:r.revalidation,component:D,error:R,children:Q(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:v}):Q()},null)}function u2(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Eg(l){let s=x.useContext(Vi);return Ke(s,u2(l)),s}function Tg(l){let s=x.useContext(Xr);return Ke(s,u2(l)),s}function Ng(l){let s=x.useContext(Cn);return Ke(s,u2(l)),s}function f2(l){let s=Ng(l),i=s.matches[s.matches.length-1];return Ke(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function Rg(){return f2("useRouteId")}function Ag(){var r;let l=x.useContext(o2),s=Tg("useRouteError"),i=f2("useRouteError");return l!==void 0?l:(r=s.errors)==null?void 0:r[i]}function Mg(){let{router:l}=Eg("useNavigate"),s=f2("useNavigate"),i=x.useRef(!1);return s3(()=>{i.current=!0}),x.useCallback(async(f,h={})=>{An(i.current,i3),i.current&&(typeof f=="number"?await l.navigate(f):await l.navigate(f,{fromRouteId:s,...h}))},[l,s])}var $h={};function o3(l,s,i){!s&&!$h[l]&&($h[l]=!0,An(!1,i))}x.memo(zg);function zg({routes:l,future:s,state:i,isStatic:r,onError:f}){return c3(l,void 0,{state:i,isStatic:r,onError:f})}function nc({to:l,replace:s,state:i,relative:r}){Ke(Qi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=x.useContext(sn);An(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=x.useContext(Cn),{pathname:m}=cn(),p=Mn(),g=Yr(l,r2(h),m,r==="path"),v=JSON.stringify(g);return x.useEffect(()=>{p(JSON.parse(v),{replace:s,state:i,relative:r})},[p,v,r,s,i]),null}function u3(l){return yg(l.context)}function Ht(l){Ke(!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 Dg({basename:l="/",children:s=null,location:i,navigationType:r="POP",navigator:f,static:h=!1,unstable_useTransitions:m}){Ke(!Qi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=l.replace(/^\/*/,"/"),g=x.useMemo(()=>({basename:p,navigator:f,static:h,unstable_useTransitions:m,future:{}}),[p,f,h,m]);typeof i=="string"&&(i=$i(i));let{pathname:v="/",search:b="",hash:_="",state:w=null,key:R="default",unstable_mask:A}=i,D=x.useMemo(()=>{let E=ga(v,p);return E==null?null:{location:{pathname:E,search:b,hash:_,state:w,key:R,unstable_mask:A},navigationType:r}},[p,v,b,_,w,R,r,A]);return An(D!=null,`<Router basename="${p}"> is not able to match the URL "${v}${b}${_}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:x.createElement(sn.Provider,{value:g},x.createElement(uc.Provider,{children:s,value:D}))}function Og({children:l,location:s}){return bg(k0(l),s)}function k0(l,s=[]){let i=[];return x.Children.forEach(l,(r,f)=>{if(!x.isValidElement(r))return;let h=[...s,f];if(r.type===x.Fragment){i.push.apply(i,k0(r.props.children,h));return}Ke(r.type===Ht,`[${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>`),Ke(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||h.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&&(m.children=k0(r.props.children,h)),i.push(m)}),i}var Ur="get",kr="application/x-www-form-urlencoded";function Zr(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function Lg(l){return Zr(l)&&l.tagName.toLowerCase()==="button"}function Bg(l){return Zr(l)&&l.tagName.toLowerCase()==="form"}function Ug(l){return Zr(l)&&l.tagName.toLowerCase()==="input"}function kg(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Hg(l,s){return l.button===0&&(!s||s==="_self")&&!kg(l)}var zr=null;function qg(){if(zr===null)try{new FormData(document.createElement("form"),0),zr=!1}catch{zr=!0}return zr}var Gg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function j0(l){return l!=null&&!Gg.has(l)?(An(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${kr}"`),null):l}function $g(l,s){let i,r,f,h,m;if(Bg(l)){let p=l.getAttribute("action");r=p?ga(p,s):null,i=l.getAttribute("method")||Ur,f=j0(l.getAttribute("enctype"))||kr,h=new FormData(l)}else if(Lg(l)||Ug(l)&&(l.type==="submit"||l.type==="image")){let p=l.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=l.getAttribute("formaction")||p.getAttribute("action");if(r=g?ga(g,s):null,i=l.getAttribute("formmethod")||p.getAttribute("method")||Ur,f=j0(l.getAttribute("formenctype"))||j0(p.getAttribute("enctype"))||kr,h=new FormData(p,l),!qg()){let{name:v,type:b,value:_}=l;if(b==="image"){let w=v?`${v}.`:"";h.append(`${w}x`,"0"),h.append(`${w}y`,"0")}else v&&h.append(v,_)}}else{if(Zr(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Ur,r=null,f=kr,m=l}return h&&f==="text/plain"&&(m=h,h=void 0),{action:r,method:i.toLowerCase(),encType:f,formData:h,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function d2(l,s){if(l===!1||l===null||typeof l>"u")throw new Error(s)}function f3(l,s,i,r){let f=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return i?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:s&&ga(f.pathname,s)==="/"?f.pathname=`${Gr(s)}/_root.${r}`:f.pathname=`${Gr(f.pathname)}.${r}`,f}async function Vg(l,s){if(l.id in s)return s[l.id];try{let i=await import(l.module);return s[l.id]=i,i}catch(i){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Qg(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function Fg(l,s,i){let r=await Promise.all(l.map(async f=>{let h=s.routes[f.route.id];if(h){let m=await Vg(h,i);return m.links?m.links():[]}return[]}));return Kg(r.flat(1).filter(Qg).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Vh(l,s,i,r,f,h){let m=(g,v)=>i[v]?g.route.id!==i[v].route.id:!0,p=(g,v)=>{var b;return i[v].pathname!==g.pathname||((b=i[v].route.path)==null?void 0:b.endsWith("*"))&&i[v].params["*"]!==g.params["*"]};return h==="assets"?s.filter((g,v)=>m(g,v)||p(g,v)):h==="data"?s.filter((g,v)=>{var _;let b=r.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(m(g,v)||p(g,v))return!0;if(g.route.shouldRevalidate){let w=g.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((_=i[0])==null?void 0:_.params)||{},nextUrl:new URL(l,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Yg(l,s,{includeHydrateFallback:i}={}){return Xg(l.map(r=>{let f=s.routes[r.route.id];if(!f)return[];let h=[f.module];return f.clientActionModule&&(h=h.concat(f.clientActionModule)),f.clientLoaderModule&&(h=h.concat(f.clientLoaderModule)),i&&f.hydrateFallbackModule&&(h=h.concat(f.hydrateFallbackModule)),f.imports&&(h=h.concat(f.imports)),h}).flat(1))}function Xg(l){return[...new Set(l)]}function Zg(l){let s={},i=Object.keys(l).sort();for(let r of i)s[r]=l[r];return s}function Kg(l,s){let i=new Set;return new Set(s),l.reduce((r,f)=>{let h=JSON.stringify(Zg(f));return i.has(h)||(i.add(h),r.push({key:h,link:f})),r},[])}function h2(){let l=x.useContext(Vi);return d2(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Jg(){let l=x.useContext(Xr);return d2(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var m2=x.createContext(void 0);m2.displayName="FrameworkContext";function p2(){let l=x.useContext(m2);return d2(l,"You must render this element inside a <HydratedRouter> element"),l}function Wg(l,s){let i=x.useContext(m2),[r,f]=x.useState(!1),[h,m]=x.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:v,onMouseLeave:b,onTouchStart:_}=s,w=x.useRef(null);x.useEffect(()=>{if(l==="render"&&m(!0),l==="viewport"){let D=L=>{L.forEach(Q=>{m(Q.isIntersecting)})},E=new IntersectionObserver(D,{threshold:.5});return w.current&&E.observe(w.current),()=>{E.disconnect()}}},[l]),x.useEffect(()=>{if(r){let D=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(D)}}},[r]);let R=()=>{f(!0)},A=()=>{f(!1),m(!1)};return i?l!=="intent"?[h,w,{}]:[h,w,{onFocus:Ys(p,R),onBlur:Ys(g,A),onMouseEnter:Ys(v,R),onMouseLeave:Ys(b,A),onTouchStart:Ys(_,R)}]:[!1,w,{}]}function Ys(l,s){return i=>{l&&l(i),i.defaultPrevented||s(i)}}function Ig({page:l,...s}){let i=rg(),{router:r}=h2(),f=x.useMemo(()=>Km(r.routes,l,r.basename),[r.routes,l,r.basename]);return f?i?x.createElement(ey,{page:l,matches:f,...s}):x.createElement(ty,{page:l,matches:f,...s}):null}function Pg(l){let{manifest:s,routeModules:i}=p2(),[r,f]=x.useState([]);return x.useEffect(()=>{let h=!1;return Fg(l,s,i).then(m=>{h||f(m)}),()=>{h=!0}},[l,s,i]),r}function ey({page:l,matches:s,...i}){let r=cn(),{future:f}=p2(),{basename:h}=h2(),m=x.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let p=f3(l,h,f.unstable_trailingSlashAwareDataRequests,"rsc"),g=!1,v=[];for(let b of s)typeof b.route.shouldRevalidate=="function"?g=!0:v.push(b.route.id);return g&&v.length>0&&p.searchParams.set("_routes",v.join(",")),[p.pathname+p.search]},[h,f.unstable_trailingSlashAwareDataRequests,l,r,s]);return x.createElement(x.Fragment,null,m.map(p=>x.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...i})))}function ty({page:l,matches:s,...i}){let r=cn(),{future:f,manifest:h,routeModules:m}=p2(),{basename:p}=h2(),{loaderData:g,matches:v}=Jg(),b=x.useMemo(()=>Vh(l,s,v,h,r,"data"),[l,s,v,h,r]),_=x.useMemo(()=>Vh(l,s,v,h,r,"assets"),[l,s,v,h,r]),w=x.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let D=new Set,E=!1;if(s.forEach(Q=>{var V;let $=h.routes[Q.route.id];!$||!$.hasLoader||(!b.some(Z=>Z.route.id===Q.route.id)&&Q.route.id in g&&((V=m[Q.route.id])!=null&&V.shouldRevalidate)||$.hasClientLoader?E=!0:D.add(Q.route.id))}),D.size===0)return[];let L=f3(l,p,f.unstable_trailingSlashAwareDataRequests,"data");return E&&D.size>0&&L.searchParams.set("_routes",s.filter(Q=>D.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[L.pathname+L.search]},[p,f.unstable_trailingSlashAwareDataRequests,g,r,h,b,s,l,m]),R=x.useMemo(()=>Yg(_,h),[_,h]),A=Pg(_);return x.createElement(x.Fragment,null,w.map(D=>x.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...i})),R.map(D=>x.createElement("link",{key:D,rel:"modulepreload",href:D,...i})),A.map(({key:D,link:E})=>x.createElement("link",{key:D,nonce:i.nonce,...E,crossOrigin:E.crossOrigin??i.crossOrigin})))}function ny(...l){return s=>{l.forEach(i=>{typeof i=="function"?i(s):i!=null&&(i.current=s)})}}var ay=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ay&&(window.__reactRouterVersion="7.14.2")}catch{}function ly({basename:l,children:s,unstable_useTransitions:i,window:r}){let f=x.useRef();f.current==null&&(f.current=L4({window:r,v5Compat:!0}));let h=f.current,[m,p]=x.useState({action:h.action,location:h.location}),g=x.useCallback(v=>{i===!1?p(v):x.startTransition(()=>p(v))},[i]);return x.useLayoutEffect(()=>h.listen(g),[h,g]),x.createElement(Dg,{basename:l,children:s,location:m.location,navigationType:m.action,navigator:h,unstable_useTransitions:i})}var d3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ya=x.forwardRef(function({onClick:s,discover:i="render",prefetch:r="none",relative:f,reloadDocument:h,replace:m,unstable_mask:p,state:g,target:v,to:b,preventScrollReset:_,viewTransition:w,unstable_defaultShouldRevalidate:R,...A},D){let{basename:E,navigator:L,unstable_useTransitions:Q}=x.useContext(sn),$=typeof b=="string"&&d3.test(b),V=e3(b,E);b=V.to;let Z=pg(b,{relative:f}),ee=cn(),K=null;if(p){let Ee=Yr(p,[],ee.unstable_mask?ee.unstable_mask.pathname:"/",!0);E!=="/"&&(Ee.pathname=Ee.pathname==="/"?E:Rn([E,Ee.pathname])),K=L.createHref(Ee)}let[I,ce,ue]=Wg(r,A),ve=cy(b,{replace:m,unstable_mask:p,state:g,target:v,preventScrollReset:_,relative:f,viewTransition:w,unstable_defaultShouldRevalidate:R,unstable_useTransitions:Q});function Te(Ee){s&&s(Ee),Ee.defaultPrevented||ve(Ee)}let se=!(V.isExternal||h),Oe=x.createElement("a",{...A,...ue,href:(se?K:void 0)||V.absoluteURL||Z,onClick:se?Te:s,ref:ny(D,ce),target:v,"data-discover":!$&&i==="render"?"true":void 0});return I&&!$?x.createElement(x.Fragment,null,Oe,x.createElement(Ig,{page:Z})):Oe});ya.displayName="Link";var h3=x.forwardRef(function({"aria-current":s="page",caseSensitive:i=!1,className:r="",end:f=!1,style:h,to:m,viewTransition:p,children:g,...v},b){let _=fc(m,{relative:v.relative}),w=cn(),R=x.useContext(Xr),{navigator:A,basename:D}=x.useContext(sn),E=R!=null&&dy(_)&&p===!0,L=A.encodeLocation?A.encodeLocation(_).pathname:_.pathname,Q=w.pathname,$=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;i||(Q=Q.toLowerCase(),$=$?$.toLowerCase():null,L=L.toLowerCase()),$&&D&&($=ga($,D)||$);const V=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let Z=Q===L||!f&&Q.startsWith(L)&&Q.charAt(V)==="/",ee=$!=null&&($===L||!f&&$.startsWith(L)&&$.charAt(L.length)==="/"),K={isActive:Z,isPending:ee,isTransitioning:E},I=Z?s:void 0,ce;typeof r=="function"?ce=r(K):ce=[r,Z?"active":null,ee?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let ue=typeof h=="function"?h(K):h;return x.createElement(ya,{...v,"aria-current":I,className:ce,ref:b,style:ue,to:m,viewTransition:p},typeof g=="function"?g(K):g)});h3.displayName="NavLink";var iy=x.forwardRef(({discover:l="render",fetcherKey:s,navigate:i,reloadDocument:r,replace:f,state:h,method:m=Ur,action:p,onSubmit:g,relative:v,preventScrollReset:b,viewTransition:_,unstable_defaultShouldRevalidate:w,...R},A)=>{let{unstable_useTransitions:D}=x.useContext(sn),E=uy(),L=fy(p,{relative:v}),Q=m.toLowerCase()==="get"?"get":"post",$=typeof p=="string"&&d3.test(p),V=Z=>{if(g&&g(Z),Z.defaultPrevented)return;Z.preventDefault();let ee=Z.nativeEvent.submitter,K=(ee==null?void 0:ee.getAttribute("formmethod"))||m,I=()=>E(ee||Z.currentTarget,{fetcherKey:s,method:K,navigate:i,replace:f,state:h,relative:v,preventScrollReset:b,viewTransition:_,unstable_defaultShouldRevalidate:w});D&&i!==!1?x.startTransition(()=>I()):I()};return x.createElement("form",{ref:A,method:Q,action:L,onSubmit:r?g:V,...R,"data-discover":!$&&l==="render"?"true":void 0})});iy.displayName="Form";function sy(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function m3(l){let s=x.useContext(Vi);return Ke(s,sy(l)),s}function cy(l,{target:s,replace:i,unstable_mask:r,state:f,preventScrollReset:h,relative:m,viewTransition:p,unstable_defaultShouldRevalidate:g,unstable_useTransitions:v}={}){let b=Mn(),_=cn(),w=fc(l,{relative:m});return x.useCallback(R=>{if(Hg(R,s)){R.preventDefault();let A=i!==void 0?i:tc(_)===tc(w),D=()=>b(l,{replace:A,unstable_mask:r,state:f,preventScrollReset:h,relative:m,viewTransition:p,unstable_defaultShouldRevalidate:g});v?x.startTransition(()=>D()):D()}},[_,b,w,i,r,f,s,l,h,m,p,g,v])}var ry=0,oy=()=>`__${String(++ry)}__`;function uy(){let{router:l}=m3("useSubmit"),{basename:s}=x.useContext(sn),i=Rg(),r=l.fetch,f=l.navigate;return x.useCallback(async(h,m={})=>{let{action:p,method:g,encType:v,formData:b,body:_}=$g(h,s);if(m.navigate===!1){let w=m.fetcherKey||oy();await r(w,i,m.action||p,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:_,formMethod:m.method||g,formEncType:m.encType||v,flushSync:m.flushSync})}else await f(m.action||p,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:_,formMethod:m.method||g,formEncType:m.encType||v,replace:m.replace,state:m.state,fromRouteId:i,flushSync:m.flushSync,viewTransition:m.viewTransition})},[r,f,s,i])}function fy(l,{relative:s}={}){let{basename:i}=x.useContext(sn),r=x.useContext(Cn);Ke(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),h={...fc(l||".",{relative:s})},m=cn();if(l==null){h.search=m.search;let p=new URLSearchParams(h.search),g=p.getAll("index");if(g.some(b=>b==="")){p.delete("index"),g.filter(_=>_).forEach(_=>p.append("index",_));let b=p.toString();h.search=b?`?${b}`:""}}return(!l||l===".")&&f.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(h.pathname=h.pathname==="/"?i:Rn([i,h.pathname])),tc(h)}function dy(l,{relative:s}={}){let i=x.useContext(a3);Ke(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=m3("useViewTransitionState"),f=fc(l,{relative:s});if(!i.isTransitioning)return!1;let h=ga(i.currentLocation.pathname,r)||i.currentLocation.pathname,m=ga(i.nextLocation.pathname,r)||i.nextLocation.pathname;return qr(f.pathname,m)!=null||qr(f.pathname,h)!=null}const hy="_btn_8fkbu_1",my="_primary_8fkbu_17",py="_danger_8fkbu_27",vy="_ghost_8fkbu_37",gy="_outline_8fkbu_47",Qh={btn:hy,primary:my,danger:py,ghost:vy,outline:gy};function xn({variant:l,children:s,onClick:i,type:r="button",disabled:f}){return u.jsx("button",{type:r,className:`${Qh.btn} ${Qh[l]}`,onClick:i,disabled:f,children:s})}const yy="_field_zffpb_1",_y="_label_zffpb_7",by="_wrap_zffpb_14",xy="_input_zffpb_18",Sy="_readonly_zffpb_37",Cy="_copied_zffpb_44",wy="_iconCheck_zffpb_59",jy="_iconLock_zffpb_68",Ey="_withToggle_zffpb_76",Ty="_togglePw_zffpb_80",kn={field:yy,label:_y,wrap:by,input:xy,readonly:Sy,copied:Cy,iconCheck:wy,iconLock:jy,withToggle:Ey,togglePw:Ty};function $t({label:l,value:s,placeholder:i,type:r="text",onChange:f,readOnly:h,required:m,icon:p}){const[g,v]=x.useState(!1),[b,_]=x.useState(!1),w=r==="password",R=w?b?"text":"password":r,A=()=>{h&&navigator.clipboard.writeText(s).then(()=>{v(!0),setTimeout(()=>v(!1),1500)})};return u.jsxs("div",{className:kn.field,children:[u.jsx("label",{className:kn.label,children:l}),u.jsxs("div",{className:kn.wrap,onClick:A,children:[u.jsx("input",{className:`${kn.input} ${w?kn.withToggle:""} ${h?kn.readonly:""} ${g?kn.copied:""}`,type:R,...f?{value:s,onChange:D=>f(D.target.value)}:{defaultValue:s},placeholder:i,readOnly:h,required:m}),w&&u.jsx("button",{type:"button",className:kn.togglePw,onClick:D=>{D.stopPropagation(),_(E=>!E)},"aria-label":b?"Скрыть пароль":"Показать пароль",children:b?u.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[u.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"}),u.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"}),u.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):u.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"}),u.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),p==="check"&&u.jsx("span",{className:kn.iconCheck,children:"✓"}),p==="lock"&&u.jsx("span",{className:kn.iconLock,children:"🔒"})]})]})}const Ny="_notification_m7zar_1",Ry="_slideIn_m7zar_1",Ay="_notificationWrapper_m7zar_19",My="_closing_m7zar_24",zy="_slideOut_m7zar_1",Dy="_icon_m7zar_52",Oy="_success_m7zar_65",Ly="_error_m7zar_70",By="_info_m7zar_75",Uy="_warning_m7zar_80",ky="_message_m7zar_85",Hy="_close_m7zar_93",Sl={notification:Ny,slideIn:Ry,notificationWrapper:Ay,closing:My,slideOut:zy,icon:Dy,success:Oy,error:Ly,info:By,warning:Uy,message:ky,close:Hy},qy={success:"✓",error:"✕",info:"i",warning:"!"};function Gy({message:l,status:s,onClose:i}){const[r,f]=x.useState(!1);function h(){f(!0)}function m(){r&&i()}return u.jsxs("div",{className:`${Sl.notification} ${Sl[s]} ${r?Sl.closing:""}`,onAnimationEnd:m,children:[u.jsxs("div",{className:Sl.notificationWrapper,children:[u.jsx("span",{className:Sl.icon,children:qy[s]}),u.jsx("p",{className:Sl.message,children:l})]}),u.jsx("button",{className:Sl.close,onClick:h,children:"✕"})]})}const $y="_pill_3oadq_1",Vy={pill:$y};function Qy({children:l}){return u.jsx("span",{className:Vy.pill,children:l})}const Fy="_btn_ytb12_1",Yy={btn:Fy};function dc({label:l="Подтвердить своп",onClick:s,type:i="submit",disabled:r}){return u.jsx("button",{type:i,className:Yy.btn,onClick:s,disabled:r,children:l})}const Xy="_icon_73irc_1",Zy={icon:Xy};function Fh({letter:l,color:s,logo:i,size:r=40}){return u.jsx("div",{className:Zy.icon,style:{background:i?"transparent":s,width:r,height:r,fontSize:r*.45},children:i?u.jsx("img",{src:i,alt:l,style:{width:r*.7,height:r*.7}}):l})}const Ky="_section_11f1k_1",Jy="_wrap_11f1k_7",Wy="_descBlock_11f1k_16",Iy="_descText_11f1k_22",Py="_right_11f1k_33",e6="_glow_11f1k_37",t6="_row_11f1k_49",n6="_check_11f1k_87",a6="_text_11f1k_101",Hn={section:Ky,wrap:Jy,descBlock:Wy,descText:Iy,right:Py,glow:e6,row:t6,check:n6,text:a6},l6="_title_1oq3h_1",i6={title:l6};function p3({children:l}){return u.jsx("h2",{className:i6.title,children:l})}const Yh=["Вся деятельность компании соответствует законодательству Российской Федерации и требованиям регуляторов","Вся документация компании открыта и доступна для ознакомления","Операции защищены шифрованием уровня ERC-20 и проходят верификацию в блокчейне"];function s6(){const[l,s]=x.useState(-1);return u.jsx("section",{id:"about",className:Hn.section,children:u.jsxs("div",{className:Hn.wrap,children:[u.jsxs("div",{children:[u.jsx(Qy,{children:"О КОМПАНИИ"}),u.jsx(p3,{children:"О нас"}),u.jsxs("div",{className:Hn.descBlock,children:[u.jsx("p",{className:Hn.descText,children:"ЭКСА — молодая финтех-компания в сфере цифровых активов. Наша миссия — сделать оборот цифровых активов простым, прозрачным и законным."}),u.jsx("p",{className:Hn.descText,children:"Мы создаём инфраструктуру для операций с криптовалютой и комплексные решения для физических и юридических лиц."})]})]}),u.jsxs("div",{className:Hn.right,children:[u.jsx("div",{className:Hn.glow}),Yh.map((i,r)=>u.jsxs("div",{className:Hn.row,"data-hovered":l===r||void 0,"data-last":r===Yh.length-1||void 0,onMouseEnter:()=>s(r),onMouseLeave:()=>s(-1),children:[u.jsx("div",{className:Hn.check,children:"✓"}),u.jsx("span",{className:Hn.text,children:i})]},r))]})]})})}const c6=3,v3=80,g3=21,pa=[{min:5e3,max:3e4,pct:8},{min:3e4,max:1e5,pct:6},{min:1e5,max:6e5,pct:4}],E0=pa[0].min,H0=pa[pa.length-1].max;function r6(l){const s=pa.find(i=>l>=i.min&&l<=i.max);return s||(l>H0?{pct:pa[pa.length-1].pct}:{pct:pa[0].pct})}function v2(l){return l<=E0?0:l>=H0?100:(l-E0)/(H0-E0)*100}function y3({usdtRate:l}){const[s,i]=x.useState("buy"),[r,f]=x.useState("1000"),[h,m]=x.useState(!1),p=Number.parseFloat(r)||0,g=x.useMemo(()=>{const _=r6(p),w=p*_.pct/100,A=l*(1+(s==="buy"?1:-1)*_.pct/100),D=p>0?(p/A).toFixed(2):"0.00";return{tierPct:_.pct,commission:w,effectiveRate:A,usdtVal:D,progress:v2(p)}},[p,s,l]);function v(_){f(_.replace(/[^0-9.]/g,""))}function b(){i(_=>_==="buy"?"sell":"buy")}return{mode:s,setMode:i,rubVal:r,updateRub:v,numRub:p,agreed:h,setAgreed:m,toggleMode:b,...g}}var Fi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nl,Xa,Ni,km,o6=(km=class extends Fi{constructor(){super();te(this,Nl);te(this,Xa);te(this,Ni);X(this,Ni,s=>{if(typeof window<"u"&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){C(this,Xa)||this.setEventListener(C(this,Ni))}onUnsubscribe(){var s;this.hasListeners()||((s=C(this,Xa))==null||s.call(this),X(this,Xa,void 0))}setEventListener(s){var i;X(this,Ni,s),(i=C(this,Xa))==null||i.call(this),X(this,Xa,s(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(s){C(this,Nl)!==s&&(X(this,Nl,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof C(this,Nl)=="boolean"?C(this,Nl):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Nl=new WeakMap,Xa=new WeakMap,Ni=new WeakMap,km),g2=new o6,u6={setTimeout:(l,s)=>setTimeout(l,s),clearTimeout:l=>clearTimeout(l),setInterval:(l,s)=>setInterval(l,s),clearInterval:l=>clearInterval(l)},Za,s2,Hm,f6=(Hm=class{constructor(){te(this,Za,u6);te(this,s2,!1)}setTimeoutProvider(l){X(this,Za,l)}setTimeout(l,s){return C(this,Za).setTimeout(l,s)}clearTimeout(l){C(this,Za).clearTimeout(l)}setInterval(l,s){return C(this,Za).setInterval(l,s)}clearInterval(l){C(this,Za).clearInterval(l)}},Za=new WeakMap,s2=new WeakMap,Hm),Tl=new f6;function d6(l){setTimeout(l,0)}var h6=typeof window>"u"||"Deno"in globalThis;function At(){}function m6(l,s){return typeof l=="function"?l(s):l}function q0(l){return typeof l=="number"&&l>=0&&l!==1/0}function _3(l,s){return Math.max(l+(s||0)-Date.now(),0)}function nl(l,s){return typeof l=="function"?l(s):l}function ln(l,s){return typeof l=="function"?l(s):l}function Xh(l,s){const{type:i="all",exact:r,fetchStatus:f,predicate:h,queryKey:m,stale:p}=l;if(m){if(r){if(s.queryHash!==y2(m,s.options))return!1}else if(!ac(s.queryKey,m))return!1}if(i!=="all"){const g=s.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof p=="boolean"&&s.isStale()!==p||f&&f!==s.state.fetchStatus||h&&!h(s))}function Zh(l,s){const{exact:i,status:r,predicate:f,mutationKey:h}=l;if(h){if(!s.options.mutationKey)return!1;if(i){if(Ul(s.options.mutationKey)!==Ul(h))return!1}else if(!ac(s.options.mutationKey,h))return!1}return!(r&&s.state.status!==r||f&&!f(s))}function y2(l,s){return((s==null?void 0:s.queryKeyHashFn)||Ul)(l)}function Ul(l){return JSON.stringify(l,(s,i)=>G0(i)?Object.keys(i).sort().reduce((r,f)=>(r[f]=i[f],r),{}):i)}function ac(l,s){return l===s?!0:typeof l!=typeof s?!1:l&&s&&typeof l=="object"&&typeof s=="object"?Object.keys(s).every(i=>ac(l[i],s[i])):!1}var p6=Object.prototype.hasOwnProperty;function b3(l,s,i=0){if(l===s)return l;if(i>500)return s;const r=Kh(l)&&Kh(s);if(!r&&!(G0(l)&&G0(s)))return s;const h=(r?l:Object.keys(l)).length,m=r?s:Object.keys(s),p=m.length,g=r?new Array(p):{};let v=0;for(let b=0;b<p;b++){const _=r?b:m[b],w=l[_],R=s[_];if(w===R){g[_]=w,(r?b<h:p6.call(l,_))&&v++;continue}if(w===null||R===null||typeof w!="object"||typeof R!="object"){g[_]=R;continue}const A=b3(w,R,i+1);g[_]=A,A===w&&v++}return h===p&&v===h?l:g}function $r(l,s){if(!s||Object.keys(l).length!==Object.keys(s).length)return!1;for(const i in l)if(l[i]!==s[i])return!1;return!0}function Kh(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function G0(l){if(!Jh(l))return!1;const s=l.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!Jh(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Jh(l){return Object.prototype.toString.call(l)==="[object Object]"}function v6(l){return new Promise(s=>{Tl.setTimeout(s,l)})}function $0(l,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(l,s):i.structuralSharing!==!1?b3(l,s):s}function g6(l,s,i=0){const r=[...l,s];return i&&r.length>i?r.slice(1):r}function y6(l,s,i=0){const r=[s,...l];return i&&r.length>i?r.slice(0,-1):r}var _2=Symbol();function x3(l,s){return!l.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!l.queryFn||l.queryFn===_2?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function b2(l,s){return typeof l=="function"?l(...s):!!l}function _6(l,s,i){let r=!1,f;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(f??(f=s()),r||(r=!0,f.aborted?i():f.addEventListener("abort",i,{once:!0})),f)}),l}var lc=(()=>{let l=()=>h6;return{isServer(){return l()},setIsServer(s){l=s}}})();function V0(){let l,s;const i=new Promise((f,h)=>{l=f,s=h});i.status="pending",i.catch(()=>{});function r(f){Object.assign(i,f),delete i.resolve,delete i.reject}return i.resolve=f=>{r({status:"fulfilled",value:f}),l(f)},i.reject=f=>{r({status:"rejected",reason:f}),s(f)},i}var b6=d6;function x6(){let l=[],s=0,i=p=>{p()},r=p=>{p()},f=b6;const h=p=>{s?l.push(p):f(()=>{i(p)})},m=()=>{const p=l;l=[],p.length&&f(()=>{r(()=>{p.forEach(g=>{i(g)})})})};return{batch:p=>{let g;s++;try{g=p()}finally{s--,s||m()}return g},batchCalls:p=>(...g)=>{h(()=>{p(...g)})},schedule:h,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{r=p},setScheduler:p=>{f=p}}}var ut=x6(),Ri,Ka,Ai,qm,S6=(qm=class extends Fi{constructor(){super();te(this,Ri,!0);te(this,Ka);te(this,Ai);X(this,Ai,s=>{if(typeof window<"u"&&window.addEventListener){const i=()=>s(!0),r=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Ka)||this.setEventListener(C(this,Ai))}onUnsubscribe(){var s;this.hasListeners()||((s=C(this,Ka))==null||s.call(this),X(this,Ka,void 0))}setEventListener(s){var i;X(this,Ai,s),(i=C(this,Ka))==null||i.call(this),X(this,Ka,s(this.setOnline.bind(this)))}setOnline(s){C(this,Ri)!==s&&(X(this,Ri,s),this.listeners.forEach(r=>{r(s)}))}isOnline(){return C(this,Ri)}},Ri=new WeakMap,Ka=new WeakMap,Ai=new WeakMap,qm),Vr=new S6;function C6(l){return Math.min(1e3*2**l,3e4)}function S3(l){return(l??"online")==="online"?Vr.isOnline():!0}var Q0=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function C3(l){let s=!1,i=0,r;const f=V0(),h=()=>f.status!=="pending",m=D=>{var E;if(!h()){const L=new Q0(D);w(L),(E=l.onCancel)==null||E.call(l,L)}},p=()=>{s=!0},g=()=>{s=!1},v=()=>g2.isFocused()&&(l.networkMode==="always"||Vr.isOnline())&&l.canRun(),b=()=>S3(l.networkMode)&&l.canRun(),_=D=>{h()||(r==null||r(),f.resolve(D))},w=D=>{h()||(r==null||r(),f.reject(D))},R=()=>new Promise(D=>{var E;r=L=>{(h()||v())&&D(L)},(E=l.onPause)==null||E.call(l)}).then(()=>{var D;r=void 0,h()||(D=l.onContinue)==null||D.call(l)}),A=()=>{if(h())return;let D;const E=i===0?l.initialPromise:void 0;try{D=E??l.fn()}catch(L){D=Promise.reject(L)}Promise.resolve(D).then(_).catch(L=>{var ee;if(h())return;const Q=l.retry??(lc.isServer()?0:3),$=l.retryDelay??C6,V=typeof $=="function"?$(i,L):$,Z=Q===!0||typeof Q=="number"&&i<Q||typeof Q=="function"&&Q(i,L);if(s||!Z){w(L);return}i++,(ee=l.onFail)==null||ee.call(l,i,L),v6(V).then(()=>v()?void 0:R()).then(()=>{s?w(L):A()})})};return{promise:f,status:()=>f.status,cancel:m,continue:()=>(r==null||r(),f),cancelRetry:p,continueRetry:g,canStart:b,start:()=>(b()?A():R().then(A),f)}}var Rl,Gm,w3=(Gm=class{constructor(){te(this,Rl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),q0(this.gcTime)&&X(this,Rl,Tl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(lc.isServer()?1/0:300*1e3))}clearGcTimeout(){C(this,Rl)!==void 0&&(Tl.clearTimeout(C(this,Rl)),X(this,Rl,void 0))}},Rl=new WeakMap,Gm);function w6(l){return{onFetch:(s,i)=>{var b,_,w,R,A;const r=s.options,f=(w=(_=(b=s.fetchOptions)==null?void 0:b.meta)==null?void 0:_.fetchMore)==null?void 0:w.direction,h=((R=s.state.data)==null?void 0:R.pages)||[],m=((A=s.state.data)==null?void 0:A.pageParams)||[];let p={pages:[],pageParams:[]},g=0;const v=async()=>{let D=!1;const E=$=>{_6($,()=>s.signal,()=>D=!0)},L=x3(s.options,s.fetchOptions),Q=async($,V,Z)=>{if(D)return Promise.reject(s.signal.reason);if(V==null&&$.pages.length)return Promise.resolve($);const K=(()=>{const ve={client:s.client,queryKey:s.queryKey,pageParam:V,direction:Z?"backward":"forward",meta:s.options.meta};return E(ve),ve})(),I=await L(K),{maxPages:ce}=s.options,ue=Z?y6:g6;return{pages:ue($.pages,I,ce),pageParams:ue($.pageParams,V,ce)}};if(f&&h.length){const $=f==="backward",V=$?j6:Wh,Z={pages:h,pageParams:m},ee=V(r,Z);p=await Q(Z,ee,$)}else{const $=l??h.length;do{const V=g===0?m[0]??r.initialPageParam:Wh(r,p);if(g>0&&V==null)break;p=await Q(p,V),g++}while(g<$)}return p};s.options.persister?s.fetchFn=()=>{var D,E;return(E=(D=s.options).persister)==null?void 0:E.call(D,v,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=v}}}function Wh(l,{pages:s,pageParams:i}){const r=s.length-1;return s.length>0?l.getNextPageParam(s[r],s,i[r],i):void 0}function j6(l,{pages:s,pageParams:i}){var r;return s.length>0?(r=l.getPreviousPageParam)==null?void 0:r.call(l,s[0],s,i[0],i):void 0}var Mi,Al,zi,bn,Ml,mt,ic,zl,an,j3,ua,$m,E6=($m=class extends w3{constructor(s){super();te(this,an);te(this,Mi);te(this,Al);te(this,zi);te(this,bn);te(this,Ml);te(this,mt);te(this,ic);te(this,zl);X(this,zl,!1),X(this,ic,s.defaultOptions),this.setOptions(s.options),this.observers=[],X(this,Ml,s.client),X(this,bn,C(this,Ml).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,X(this,Al,Ph(this.options)),this.state=s.state??C(this,Al),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,Mi)}get promise(){var s;return(s=C(this,mt))==null?void 0:s.promise}setOptions(s){if(this.options={...C(this,ic),...s},s!=null&&s._type&&X(this,Mi,s._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Ph(this.options);i.data!==void 0&&(this.setState(Ih(i.data,i.dataUpdatedAt)),X(this,Al,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,bn).remove(this)}setData(s,i){const r=$0(this.state.data,s,this.options);return pe(this,an,ua).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(s){pe(this,an,ua).call(this,{type:"setState",state:s})}cancel(s){var r,f;const i=(r=C(this,mt))==null?void 0:r.promise;return(f=C(this,mt))==null||f.cancel(s),i?i.then(At).catch(At):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,Al)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(s=>ln(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_2||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>nl(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!_3(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(r=>r.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=C(this,mt))==null||i.continue()}onOnline(){var i;const s=this.observers.find(r=>r.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=C(this,mt))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),C(this,bn).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(C(this,mt)&&(C(this,zl)||pe(this,an,j3).call(this)?C(this,mt).cancel({revert:!0}):C(this,mt).cancelRetry()),this.scheduleGc()),C(this,bn).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,an,ua).call(this,{type:"invalidate"})}async fetch(s,i){var v,b,_,w,R,A,D,E,L,Q,$;if(this.state.fetchStatus!=="idle"&&((v=C(this,mt))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(C(this,mt))return C(this,mt).continueRetry(),C(this,mt).promise}if(s&&this.setOptions(s),!this.options.queryFn){const V=this.observers.find(Z=>Z.options.queryFn);V&&this.setOptions(V.options)}const r=new AbortController,f=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(X(this,zl,!0),r.signal)})},h=()=>{const V=x3(this.options,i),ee=(()=>{const K={client:C(this,Ml),queryKey:this.queryKey,meta:this.meta};return f(K),K})();return X(this,zl,!1),this.options.persister?this.options.persister(V,ee,this):V(ee)},p=(()=>{const V={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:C(this,Ml),state:this.state,fetchFn:h};return f(V),V})(),g=C(this,Mi)==="infinite"?w6(this.options.pages):this.options.behavior;g==null||g.onFetch(p,this),X(this,zi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=p.fetchOptions)==null?void 0:b.meta))&&pe(this,an,ua).call(this,{type:"fetch",meta:(_=p.fetchOptions)==null?void 0:_.meta}),X(this,mt,C3({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:V=>{V instanceof Q0&&V.revert&&this.setState({...C(this,zi),fetchStatus:"idle"}),r.abort()},onFail:(V,Z)=>{pe(this,an,ua).call(this,{type:"failed",failureCount:V,error:Z})},onPause:()=>{pe(this,an,ua).call(this,{type:"pause"})},onContinue:()=>{pe(this,an,ua).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const V=await C(this,mt).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(R=(w=C(this,bn).config).onSuccess)==null||R.call(w,V,this),(D=(A=C(this,bn).config).onSettled)==null||D.call(A,V,this.state.error,this),V}catch(V){if(V instanceof Q0){if(V.silent)return C(this,mt).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw pe(this,an,ua).call(this,{type:"error",error:V}),(L=(E=C(this,bn).config).onError)==null||L.call(E,V,this),($=(Q=C(this,bn).config).onSettled)==null||$.call(Q,this.state.data,V,this),V}finally{this.scheduleGc()}}},Mi=new WeakMap,Al=new WeakMap,zi=new WeakMap,bn=new WeakMap,Ml=new WeakMap,mt=new WeakMap,ic=new WeakMap,zl=new WeakMap,an=new WeakSet,j3=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ua=function(s){const i=r=>{switch(s.type){case"failed":return{...r,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...E3(r.data,this.options),fetchMeta:s.meta??null};case"success":const f={...r,...Ih(s.data,s.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return X(this,zi,s.manual?f:void 0),f;case"error":const h=s.error;return{...r,error:h,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...s.state}}};this.state=i(this.state),ut.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,bn).notify({query:this,type:"updated",action:s})})},$m);function E3(l,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:S3(s.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Ih(l,s){return{data:l,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ph(l){const s=typeof l.initialData=="function"?l.initialData():l.initialData,i=s!==void 0,r=i?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:s,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 qt,we,sc,Rt,Dl,Di,fa,Ja,cc,Oi,Li,Ol,Ll,Wa,Bi,De,Ps,F0,Y0,X0,Z0,K0,J0,W0,T3,Vm,T6=(Vm=class extends Fi{constructor(s,i){super();te(this,De);te(this,qt);te(this,we);te(this,sc);te(this,Rt);te(this,Dl);te(this,Di);te(this,fa);te(this,Ja);te(this,cc);te(this,Oi);te(this,Li);te(this,Ol);te(this,Ll);te(this,Wa);te(this,Bi,new Set);this.options=i,X(this,qt,s),X(this,Ja,null),X(this,fa,V0()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,we).addObserver(this),em(C(this,we),this.options)?pe(this,De,Ps).call(this):this.updateResult(),pe(this,De,Z0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return I0(C(this,we),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return I0(C(this,we),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,De,K0).call(this),pe(this,De,J0).call(this),C(this,we).removeObserver(this)}setOptions(s){const i=this.options,r=C(this,we);if(this.options=C(this,qt).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ln(this.options.enabled,C(this,we))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,De,W0).call(this),C(this,we).setOptions(this.options),i._defaulted&&!$r(this.options,i)&&C(this,qt).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,we),observer:this});const f=this.hasListeners();f&&tm(C(this,we),r,this.options,i)&&pe(this,De,Ps).call(this),this.updateResult(),f&&(C(this,we)!==r||ln(this.options.enabled,C(this,we))!==ln(i.enabled,C(this,we))||nl(this.options.staleTime,C(this,we))!==nl(i.staleTime,C(this,we)))&&pe(this,De,F0).call(this);const h=pe(this,De,Y0).call(this);f&&(C(this,we)!==r||ln(this.options.enabled,C(this,we))!==ln(i.enabled,C(this,we))||h!==C(this,Wa))&&pe(this,De,X0).call(this,h)}getOptimisticResult(s){const i=C(this,qt).getQueryCache().build(C(this,qt),s),r=this.createResult(i,s);return R6(this,r)&&(X(this,Rt,r),X(this,Di,this.options),X(this,Dl,C(this,we).state)),r}getCurrentResult(){return C(this,Rt)}trackResult(s,i){return new Proxy(s,{get:(r,f)=>(this.trackProp(f),i==null||i(f),f==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,fa).status==="pending"&&C(this,fa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,f))})}trackProp(s){C(this,Bi).add(s)}getCurrentQuery(){return C(this,we)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=C(this,qt).defaultQueryOptions(s),r=C(this,qt).getQueryCache().build(C(this,qt),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(s){return pe(this,De,Ps).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Rt)))}createResult(s,i){var ce;const r=C(this,we),f=this.options,h=C(this,Rt),m=C(this,Dl),p=C(this,Di),v=s!==r?s.state:C(this,sc),{state:b}=s;let _={...b},w=!1,R;if(i._optimisticResults){const ue=this.hasListeners(),ve=!ue&&em(s,i),Te=ue&&tm(s,r,i,f);(ve||Te)&&(_={..._,...E3(b.data,s.options)}),i._optimisticResults==="isRestoring"&&(_.fetchStatus="idle")}let{error:A,errorUpdatedAt:D,status:E}=_;R=_.data;let L=!1;if(i.placeholderData!==void 0&&R===void 0&&E==="pending"){let ue;h!=null&&h.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(ue=h.data,L=!0):ue=typeof i.placeholderData=="function"?i.placeholderData((ce=C(this,Li))==null?void 0:ce.state.data,C(this,Li)):i.placeholderData,ue!==void 0&&(E="success",R=$0(h==null?void 0:h.data,ue,i),w=!0)}if(i.select&&R!==void 0&&!L)if(h&&R===(m==null?void 0:m.data)&&i.select===C(this,cc))R=C(this,Oi);else try{X(this,cc,i.select),R=i.select(R),R=$0(h==null?void 0:h.data,R,i),X(this,Oi,R),X(this,Ja,null)}catch(ue){X(this,Ja,ue)}C(this,Ja)&&(A=C(this,Ja),R=C(this,Oi),D=Date.now(),E="error");const Q=_.fetchStatus==="fetching",$=E==="pending",V=E==="error",Z=$&&Q,ee=R!==void 0,I={status:E,fetchStatus:_.fetchStatus,isPending:$,isSuccess:E==="success",isError:V,isInitialLoading:Z,isLoading:Z,data:R,dataUpdatedAt:_.dataUpdatedAt,error:A,errorUpdatedAt:D,failureCount:_.fetchFailureCount,failureReason:_.fetchFailureReason,errorUpdateCount:_.errorUpdateCount,isFetched:s.isFetched(),isFetchedAfterMount:_.dataUpdateCount>v.dataUpdateCount||_.errorUpdateCount>v.errorUpdateCount,isFetching:Q,isRefetching:Q&&!$,isLoadingError:V&&!ee,isPaused:_.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:V&&ee,isStale:x2(s,i),refetch:this.refetch,promise:C(this,fa),isEnabled:ln(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const ue=I.data!==void 0,ve=I.status==="error"&&!ue,Te=Ee=>{ve?Ee.reject(I.error):ue&&Ee.resolve(I.data)},se=()=>{const Ee=X(this,fa,I.promise=V0());Te(Ee)},Oe=C(this,fa);switch(Oe.status){case"pending":s.queryHash===r.queryHash&&Te(Oe);break;case"fulfilled":(ve||I.data!==Oe.value)&&se();break;case"rejected":(!ve||I.error!==Oe.reason)&&se();break}}return I}updateResult(){const s=C(this,Rt),i=this.createResult(C(this,we),this.options);if(X(this,Dl,C(this,we).state),X(this,Di,this.options),C(this,Dl).data!==void 0&&X(this,Li,C(this,we)),$r(i,s))return;X(this,Rt,i);const r=()=>{if(!s)return!0;const{notifyOnChangeProps:f}=this.options,h=typeof f=="function"?f():f;if(h==="all"||!h&&!C(this,Bi).size)return!0;const m=new Set(h??C(this,Bi));return this.options.throwOnError&&m.add("error"),Object.keys(C(this,Rt)).some(p=>{const g=p;return C(this,Rt)[g]!==s[g]&&m.has(g)})};pe(this,De,T3).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,De,Z0).call(this)}},qt=new WeakMap,we=new WeakMap,sc=new WeakMap,Rt=new WeakMap,Dl=new WeakMap,Di=new WeakMap,fa=new WeakMap,Ja=new WeakMap,cc=new WeakMap,Oi=new WeakMap,Li=new WeakMap,Ol=new WeakMap,Ll=new WeakMap,Wa=new WeakMap,Bi=new WeakMap,De=new WeakSet,Ps=function(s){pe(this,De,W0).call(this);let i=C(this,we).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(At)),i},F0=function(){pe(this,De,K0).call(this);const s=nl(this.options.staleTime,C(this,we));if(lc.isServer()||C(this,Rt).isStale||!q0(s))return;const r=_3(C(this,Rt).dataUpdatedAt,s)+1;X(this,Ol,Tl.setTimeout(()=>{C(this,Rt).isStale||this.updateResult()},r))},Y0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,we)):this.options.refetchInterval)??!1},X0=function(s){pe(this,De,J0).call(this),X(this,Wa,s),!(lc.isServer()||ln(this.options.enabled,C(this,we))===!1||!q0(C(this,Wa))||C(this,Wa)===0)&&X(this,Ll,Tl.setInterval(()=>{(this.options.refetchIntervalInBackground||g2.isFocused())&&pe(this,De,Ps).call(this)},C(this,Wa)))},Z0=function(){pe(this,De,F0).call(this),pe(this,De,X0).call(this,pe(this,De,Y0).call(this))},K0=function(){C(this,Ol)!==void 0&&(Tl.clearTimeout(C(this,Ol)),X(this,Ol,void 0))},J0=function(){C(this,Ll)!==void 0&&(Tl.clearInterval(C(this,Ll)),X(this,Ll,void 0))},W0=function(){const s=C(this,qt).getQueryCache().build(C(this,qt),this.options);if(s===C(this,we))return;const i=C(this,we);X(this,we,s),X(this,sc,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},T3=function(s){ut.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(C(this,Rt))}),C(this,qt).getQueryCache().notify({query:C(this,we),type:"observerResultsUpdated"})})},Vm);function N6(l,s){return ln(s.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&ln(s.retryOnMount,l)===!1)}function em(l,s){return N6(l,s)||l.state.data!==void 0&&I0(l,s,s.refetchOnMount)}function I0(l,s,i){if(ln(s.enabled,l)!==!1&&nl(s.staleTime,l)!=="static"){const r=typeof i=="function"?i(l):i;return r==="always"||r!==!1&&x2(l,s)}return!1}function tm(l,s,i,r){return(l!==s||ln(r.enabled,l)===!1)&&(!i.suspense||l.state.status!=="error")&&x2(l,i)}function x2(l,s){return ln(s.enabled,l)!==!1&&l.isStaleByTime(nl(s.staleTime,l))}function R6(l,s){return!$r(l.getCurrentResult(),s)}var rc,$n,Ct,Bl,Vn,Ya,Qm,A6=(Qm=class extends w3{constructor(s){super();te(this,Vn);te(this,rc);te(this,$n);te(this,Ct);te(this,Bl);X(this,rc,s.client),this.mutationId=s.mutationId,X(this,Ct,s.mutationCache),X(this,$n,[]),this.state=s.state||N3(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){C(this,$n).includes(s)||(C(this,$n).push(s),this.clearGcTimeout(),C(this,Ct).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){X(this,$n,C(this,$n).filter(i=>i!==s)),this.scheduleGc(),C(this,Ct).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){C(this,$n).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ct).remove(this))}continue(){var s;return((s=C(this,Bl))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var m,p,g,v,b,_,w,R,A,D,E,L,Q,$,V,Z,ee,K;const i=()=>{pe(this,Vn,Ya).call(this,{type:"continue"})},r={client:C(this,rc),meta:this.options.meta,mutationKey:this.options.mutationKey};X(this,Bl,C3({fn:()=>this.options.mutationFn?this.options.mutationFn(s,r):Promise.reject(new Error("No mutationFn found")),onFail:(I,ce)=>{pe(this,Vn,Ya).call(this,{type:"failed",failureCount:I,error:ce})},onPause:()=>{pe(this,Vn,Ya).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ct).canRun(this)}));const f=this.state.status==="pending",h=!C(this,Bl).canStart();try{if(f)i();else{pe(this,Vn,Ya).call(this,{type:"pending",variables:s,isPaused:h}),C(this,Ct).config.onMutate&&await C(this,Ct).config.onMutate(s,this,r);const ce=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,s,r));ce!==this.state.context&&pe(this,Vn,Ya).call(this,{type:"pending",context:ce,variables:s,isPaused:h})}const I=await C(this,Bl).start();return await((v=(g=C(this,Ct).config).onSuccess)==null?void 0:v.call(g,I,s,this.state.context,this,r)),await((_=(b=this.options).onSuccess)==null?void 0:_.call(b,I,s,this.state.context,r)),await((R=(w=C(this,Ct).config).onSettled)==null?void 0:R.call(w,I,null,this.state.variables,this.state.context,this,r)),await((D=(A=this.options).onSettled)==null?void 0:D.call(A,I,null,s,this.state.context,r)),pe(this,Vn,Ya).call(this,{type:"success",data:I}),I}catch(I){try{await((L=(E=C(this,Ct).config).onError)==null?void 0:L.call(E,I,s,this.state.context,this,r))}catch(ce){Promise.reject(ce)}try{await(($=(Q=this.options).onError)==null?void 0:$.call(Q,I,s,this.state.context,r))}catch(ce){Promise.reject(ce)}try{await((Z=(V=C(this,Ct).config).onSettled)==null?void 0:Z.call(V,void 0,I,this.state.variables,this.state.context,this,r))}catch(ce){Promise.reject(ce)}try{await((K=(ee=this.options).onSettled)==null?void 0:K.call(ee,void 0,I,s,this.state.context,r))}catch(ce){Promise.reject(ce)}throw pe(this,Vn,Ya).call(this,{type:"error",error:I}),I}finally{C(this,Ct).runNext(this)}}},rc=new WeakMap,$n=new WeakMap,Ct=new WeakMap,Bl=new WeakMap,Vn=new WeakSet,Ya=function(s){const i=r=>{switch(s.type){case"failed":return{...r,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...r,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:s.error,failureCount:r.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ut.batch(()=>{C(this,$n).forEach(r=>{r.onMutationUpdate(s)}),C(this,Ct).notify({mutation:this,type:"updated",action:s})})},Qm);function N3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var da,Nn,oc,Fm,M6=(Fm=class extends Fi{constructor(s={}){super();te(this,da);te(this,Nn);te(this,oc);this.config=s,X(this,da,new Set),X(this,Nn,new Map),X(this,oc,0)}build(s,i,r){const f=new A6({client:s,mutationCache:this,mutationId:++Mr(this,oc)._,options:s.defaultMutationOptions(i),state:r});return this.add(f),f}add(s){C(this,da).add(s);const i=Dr(s);if(typeof i=="string"){const r=C(this,Nn).get(i);r?r.push(s):C(this,Nn).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(C(this,da).delete(s)){const i=Dr(s);if(typeof i=="string"){const r=C(this,Nn).get(i);if(r)if(r.length>1){const f=r.indexOf(s);f!==-1&&r.splice(f,1)}else r[0]===s&&C(this,Nn).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=Dr(s);if(typeof i=="string"){const r=C(this,Nn).get(i),f=r==null?void 0:r.find(h=>h.state.status==="pending");return!f||f===s}else return!0}runNext(s){var r;const i=Dr(s);if(typeof i=="string"){const f=(r=C(this,Nn).get(i))==null?void 0:r.find(h=>h!==s&&h.state.isPaused);return(f==null?void 0:f.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ut.batch(()=>{C(this,da).forEach(s=>{this.notify({type:"removed",mutation:s})}),C(this,da).clear(),C(this,Nn).clear()})}getAll(){return Array.from(C(this,da))}find(s){const i={exact:!0,...s};return this.getAll().find(r=>Zh(i,r))}findAll(s={}){return this.getAll().filter(i=>Zh(s,i))}notify(s){ut.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return ut.batch(()=>Promise.all(s.map(i=>i.continue().catch(At))))}},da=new WeakMap,Nn=new WeakMap,oc=new WeakMap,Fm);function Dr(l){var s;return(s=l.options.scope)==null?void 0:s.id}var ha,Ia,Gt,ma,va,Hr,P0,Ym,z6=(Ym=class extends Fi{constructor(i,r){super();te(this,va);te(this,ha);te(this,Ia);te(this,Gt);te(this,ma);X(this,ha,i),this.setOptions(r),this.bindMethods(),pe(this,va,Hr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var f;const r=this.options;this.options=C(this,ha).defaultMutationOptions(i),$r(this.options,r)||C(this,ha).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,Gt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ul(r.mutationKey)!==Ul(this.options.mutationKey)?this.reset():((f=C(this,Gt))==null?void 0:f.state.status)==="pending"&&C(this,Gt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=C(this,Gt))==null||i.removeObserver(this)}onMutationUpdate(i){pe(this,va,Hr).call(this),pe(this,va,P0).call(this,i)}getCurrentResult(){return C(this,Ia)}reset(){var i;(i=C(this,Gt))==null||i.removeObserver(this),X(this,Gt,void 0),pe(this,va,Hr).call(this),pe(this,va,P0).call(this)}mutate(i,r){var f;return X(this,ma,r),(f=C(this,Gt))==null||f.removeObserver(this),X(this,Gt,C(this,ha).getMutationCache().build(C(this,ha),this.options)),C(this,Gt).addObserver(this),C(this,Gt).execute(i)}},ha=new WeakMap,Ia=new WeakMap,Gt=new WeakMap,ma=new WeakMap,va=new WeakSet,Hr=function(){var r;const i=((r=C(this,Gt))==null?void 0:r.state)??N3();X(this,Ia,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},P0=function(i){ut.batch(()=>{var r,f,h,m,p,g,v,b;if(C(this,ma)&&this.hasListeners()){const _=C(this,Ia).variables,w=C(this,Ia).context,R={client:C(this,ha),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(f=(r=C(this,ma)).onSuccess)==null||f.call(r,i.data,_,w,R)}catch(A){Promise.reject(A)}try{(m=(h=C(this,ma)).onSettled)==null||m.call(h,i.data,null,_,w,R)}catch(A){Promise.reject(A)}}else if((i==null?void 0:i.type)==="error"){try{(g=(p=C(this,ma)).onError)==null||g.call(p,i.error,_,w,R)}catch(A){Promise.reject(A)}try{(b=(v=C(this,ma)).onSettled)==null||b.call(v,void 0,i.error,_,w,R)}catch(A){Promise.reject(A)}}}this.listeners.forEach(_=>{_(C(this,Ia))})})},Ym),Qn,Xm,D6=(Xm=class extends Fi{constructor(s={}){super();te(this,Qn);this.config=s,X(this,Qn,new Map)}build(s,i,r){const f=i.queryKey,h=i.queryHash??y2(f,i);let m=this.get(h);return m||(m=new E6({client:s,queryKey:f,queryHash:h,options:s.defaultQueryOptions(i),state:r,defaultOptions:s.getQueryDefaults(f)}),this.add(m)),m}add(s){C(this,Qn).has(s.queryHash)||(C(this,Qn).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=C(this,Qn).get(s.queryHash);i&&(s.destroy(),i===s&&C(this,Qn).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){ut.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return C(this,Qn).get(s)}getAll(){return[...C(this,Qn).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(r=>Xh(i,r))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(r=>Xh(s,r)):i}notify(s){ut.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},Qn=new WeakMap,Xm),Pe,Pa,el,Ui,ki,tl,Hi,qi,Zm,O6=(Zm=class{constructor(l={}){te(this,Pe);te(this,Pa);te(this,el);te(this,Ui);te(this,ki);te(this,tl);te(this,Hi);te(this,qi);X(this,Pe,l.queryCache||new D6),X(this,Pa,l.mutationCache||new M6),X(this,el,l.defaultOptions||{}),X(this,Ui,new Map),X(this,ki,new Map),X(this,tl,0)}mount(){Mr(this,tl)._++,C(this,tl)===1&&(X(this,Hi,g2.subscribe(async l=>{l&&(await this.resumePausedMutations(),C(this,Pe).onFocus())})),X(this,qi,Vr.subscribe(async l=>{l&&(await this.resumePausedMutations(),C(this,Pe).onOnline())})))}unmount(){var l,s;Mr(this,tl)._--,C(this,tl)===0&&((l=C(this,Hi))==null||l.call(this),X(this,Hi,void 0),(s=C(this,qi))==null||s.call(this),X(this,qi,void 0))}isFetching(l){return C(this,Pe).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return C(this,Pa).findAll({...l,status:"pending"}).length}getQueryData(l){var i;const s=this.defaultQueryOptions({queryKey:l});return(i=C(this,Pe).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(l){const s=this.defaultQueryOptions(l),i=C(this,Pe).build(this,s),r=i.state.data;return r===void 0?this.fetchQuery(l):(l.revalidateIfStale&&i.isStaleByTime(nl(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(r))}getQueriesData(l){return C(this,Pe).findAll(l).map(({queryKey:s,state:i})=>{const r=i.data;return[s,r]})}setQueryData(l,s,i){const r=this.defaultQueryOptions({queryKey:l}),f=C(this,Pe).get(r.queryHash),h=f==null?void 0:f.state.data,m=m6(s,h);if(m!==void 0)return C(this,Pe).build(this,r).setData(m,{...i,manual:!0})}setQueriesData(l,s,i){return ut.batch(()=>C(this,Pe).findAll(l).map(({queryKey:r})=>[r,this.setQueryData(r,s,i)]))}getQueryState(l){var i;const s=this.defaultQueryOptions({queryKey:l});return(i=C(this,Pe).get(s.queryHash))==null?void 0:i.state}removeQueries(l){const s=C(this,Pe);ut.batch(()=>{s.findAll(l).forEach(i=>{s.remove(i)})})}resetQueries(l,s){const i=C(this,Pe);return ut.batch(()=>(i.findAll(l).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...l},s)))}cancelQueries(l,s={}){const i={revert:!0,...s},r=ut.batch(()=>C(this,Pe).findAll(l).map(f=>f.cancel(i)));return Promise.all(r).then(At).catch(At)}invalidateQueries(l,s={}){return ut.batch(()=>(C(this,Pe).findAll(l).forEach(i=>{i.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},s)))}refetchQueries(l,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},r=ut.batch(()=>C(this,Pe).findAll(l).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let h=f.fetch(void 0,i);return i.throwOnError||(h=h.catch(At)),f.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(r).then(At)}fetchQuery(l){const s=this.defaultQueryOptions(l);s.retry===void 0&&(s.retry=!1);const i=C(this,Pe).build(this,s);return i.isStaleByTime(nl(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(At).catch(At)}fetchInfiniteQuery(l){return l._type="infinite",this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(At).catch(At)}ensureInfiniteQueryData(l){return l._type="infinite",this.ensureQueryData(l)}resumePausedMutations(){return Vr.isOnline()?C(this,Pa).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Pe)}getMutationCache(){return C(this,Pa)}getDefaultOptions(){return C(this,el)}setDefaultOptions(l){X(this,el,l)}setQueryDefaults(l,s){C(this,Ui).set(Ul(l),{queryKey:l,defaultOptions:s})}getQueryDefaults(l){const s=[...C(this,Ui).values()],i={};return s.forEach(r=>{ac(l,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(l,s){C(this,ki).set(Ul(l),{mutationKey:l,defaultOptions:s})}getMutationDefaults(l){const s=[...C(this,ki).values()],i={};return s.forEach(r=>{ac(l,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(l){if(l._defaulted)return l;const s={...C(this,el).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return s.queryHash||(s.queryHash=y2(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===_2&&(s.enabled=!1),s}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...C(this,el).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){C(this,Pe).clear(),C(this,Pa).clear()}},Pe=new WeakMap,Pa=new WeakMap,el=new WeakMap,Ui=new WeakMap,ki=new WeakMap,tl=new WeakMap,Hi=new WeakMap,qi=new WeakMap,Zm),R3=x.createContext(void 0),kl=l=>{const s=x.useContext(R3);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},L6=({client:l,children:s})=>(x.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),u.jsx(R3.Provider,{value:l,children:s})),A3=x.createContext(!1),B6=()=>x.useContext(A3);A3.Provider;function U6(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var k6=x.createContext(U6()),H6=()=>x.useContext(k6),q6=(l,s,i)=>{const r=i!=null&&i.state.error&&typeof l.throwOnError=="function"?b2(l.throwOnError,[i.state.error,i]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||r)&&(s.isReset()||(l.retryOnMount=!1))},G6=l=>{x.useEffect(()=>{l.clearReset()},[l])},$6=({result:l,errorResetBoundary:s,throwOnError:i,query:r,suspense:f})=>l.isError&&!s.isReset()&&!l.isFetching&&r&&(f&&l.data===void 0||b2(i,[l.error,r])),V6=l=>{if(l.suspense){const i=f=>f==="static"?f:Math.max(f??1e3,1e3),r=l.staleTime;l.staleTime=typeof r=="function"?(...f)=>i(r(...f)):i(r),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},Q6=(l,s)=>l.isLoading&&l.isFetching&&!s,F6=(l,s)=>(l==null?void 0:l.suspense)&&s.isPending,nm=(l,s,i)=>s.fetchOptimistic(l).catch(()=>{i.clearReset()});function Y6(l,s,i){var w,R,A,D;const r=B6(),f=H6(),h=kl(),m=h.defaultQueryOptions(l);(R=(w=h.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||R.call(w,m);const p=h.getQueryCache().get(m.queryHash);m._optimisticResults=r?"isRestoring":"optimistic",V6(m),q6(m,f,p),G6(f);const g=!h.getQueryCache().get(m.queryHash),[v]=x.useState(()=>new s(h,m)),b=v.getOptimisticResult(m),_=!r&&l.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(E=>{const L=_?v.subscribe(ut.batchCalls(E)):At;return v.updateResult(),L},[v,_]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),x.useEffect(()=>{v.setOptions(m)},[m,v]),F6(m,b))throw nm(m,v,f);if($6({result:b,errorResetBoundary:f,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw b.error;if((D=(A=h.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||D.call(A,m,b),m.experimental_prefetchInRender&&!lc.isServer()&&Q6(b,r)){const E=g?nm(m,v,f):p==null?void 0:p.promise;E==null||E.catch(At).finally(()=>{v.updateResult()})}return m.notifyOnChangeProps?b:v.trackResult(b)}function wn(l,s){return Y6(l,T6)}function Vt(l,s){const i=kl(),[r]=x.useState(()=>new z6(i,l));x.useEffect(()=>{r.setOptions(l)},[r,l]);const f=x.useSyncExternalStore(x.useCallback(m=>r.subscribe(ut.batchCalls(m)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),h=x.useCallback((m,p)=>{r.mutate(m,p).catch(At)},[r]);if(f.error&&b2(r.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:h,mutateAsync:f.mutate}}const M3="https://app.auth.elcsa.ru/v1";let ec=null;function S2(){ec=null}async function al(){return ec||(ec=(await(await fetch(`${M3}/csrf/token`,{credentials:"include"})).json()).token,ec)}const X6=Object.freeze(Object.defineProperty({__proto__:null,clearCsrfCache:S2,getCsrfToken:al},Symbol.toStringTag,{value:"Module"})),Z6="modulepreload",K6=function(l){return"/"+l},am={},J6=function(s,i,r){let f=Promise.resolve();if(i&&i.length>0){let m=function(v){return Promise.all(v.map(b=>Promise.resolve(b).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),g=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));f=m(i.map(v=>{if(v=K6(v),v in am)return;am[v]=!0;const b=v.endsWith(".css"),_=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${_}`))return;const w=document.createElement("link");if(w.rel=b?"stylesheet":Z6,b||(w.as="script"),w.crossOrigin="",w.href=v,g&&w.setAttribute("nonce",g),document.head.appendChild(w),b)return new Promise((R,A)=>{w.addEventListener("load",R),w.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${v}`)))})}))}function h(m){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=m,window.dispatchEvent(p),!p.defaultPrevented)throw m}return f.then(m=>{for(const p of m||[])p.status==="rejected"&&h(p.reason);return s().catch(h)})};let T0=null;const Sn={get:()=>T0,set:l=>{T0=l},clear:()=>{T0=null}},W6="https://app.auth.elcsa.ru/v1/jwt/refresh";async function Yi(){const{getCsrfToken:l}=await J6(async()=>{const{getCsrfToken:f}=await Promise.resolve().then(()=>X6);return{getCsrfToken:f}},[]),s=await l(),i=await fetch(W6,{method:"POST",credentials:"include",headers:{"X-CSRF-Token":s}});if(!i.ok)throw new Error("Unauthorized");const r=await i.json();return r.access_token&&Sn.set(r.access_token),r.access_token??r.result??!0}const I6="https://app.payment.elcsa.ru";async function Kr(l,s,i){const r=await al(),f=await fetch(`${I6}${l}`,{...s,credentials:"include",headers:{"X-CSRF-Token":r,...s.headers}});if(f.status===401&&i)try{return await Yi(),Kr(l,s,!1)}catch{throw new Error("Unauthorized")}const h=await f.json();if(!f.ok)throw h;return h}function P6(){return Kr("/payment/config",{},!0)}function e_(l){return Kr(`/payment/quote?usdt_amount=${l}`,{},!0)}function t_(l){return Kr("/order/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},!0)}function z3(){return wn({queryKey:["payment","config"],queryFn:P6,staleTime:6e4})}function D3(l){return wn({queryKey:["payment","quote",l],queryFn:()=>e_(l),enabled:l>0,staleTime:3e4,retry:!1})}function n_(){return Vt({mutationFn:t_,onSuccess:l=>{const s=l.order.itpay_payment_qr_url_desktop;s&&(window.location.href=s)}})}function Jr(l,s){const[i,r]=x.useState(l);return x.useEffect(()=>{const f=setTimeout(()=>r(l),s);return()=>clearTimeout(f)},[l,s]),i}const a_="_title_ujt2o_1",l_="_table_ujt2o_8",i_="_row_ujt2o_15",s_="_range_ujt2o_31",c_="_pct_ujt2o_36",r_="_progressBar_ujt2o_43",o_="_progressFill_ujt2o_51",u_="_summary_ujt2o_58",f_="_summaryLabel_ujt2o_73",d_="_summaryValue_ujt2o_78",nn={title:a_,table:l_,row:i_,range:s_,pct:c_,progressBar:r_,progressFill:o_,summary:u_,summaryLabel:f_,summaryValue:d_},lm=l=>l.toLocaleString("ru-RU"),h_=({tiers:l,amount:s})=>u.jsx(u.Fragment,{children:l.map((i,r)=>{const f=s>=i.min&&s<=i.max;return u.jsxs("div",{className:nn.row,"data-active":f||void 0,children:[u.jsxs("span",{className:nn.range,children:[lm(i.min)," ",lm(i.max)," ₽"]}),u.jsxs("span",{className:nn.pct,children:[i.pct,"%"]})]},r)})});function m_({amount:l,progress:s,commission:i,effectiveRate:r}){return u.jsxs("div",{children:[u.jsx("div",{className:nn.title,children:"КОМИССИЯ СЕРВИСА"}),u.jsx("div",{className:nn.table,children:u.jsx(h_,{tiers:pa,amount:l})}),u.jsx("div",{className:nn.progressBar,children:u.jsx("div",{className:nn.progressFill,style:{width:`${s}%`}})}),u.jsxs("div",{className:nn.summary,children:[u.jsx("span",{className:nn.summaryLabel,children:"Комиссия"}),u.jsxs("span",{className:nn.summaryValue,children:[i.toLocaleString("ru-RU",{maximumFractionDigits:2})," ₽"]})]}),u.jsxs("div",{className:nn.summary,children:[u.jsx("span",{className:nn.summaryLabel,children:"Курс с комиссией"}),u.jsxs("span",{className:nn.summaryValue,children:[r.toFixed(2)," ₽"]})]})]})}const p_="_section_r2493_1",v_="_wrap_r2493_6",g_="_header_r2493_17",y_="_subtitle_r2493_31",__="_pills_r2493_38",b_="_pill_r2493_38",x_="_pillValue_r2493_52",S_="_body_r2493_62",C_="_tabs_r2493_68",w_="_tab_r2493_68",j_="_field_r2493_100",E_="_fieldInput_r2493_112",T_="_currency_r2493_138",N_="_currencyIcon_r2493_147",R_="_currencyRub_r2493_159",A_="_currencyUsdt_r2493_163",M_="_swapWrap_r2493_167",z_="_swapBtn_r2493_173",D_="_payBtn_r2493_200",Ye={section:p_,wrap:v_,header:g_,subtitle:y_,pills:__,pill:b_,pillValue:x_,body:S_,tabs:C_,tab:w_,field:j_,fieldInput:E_,currency:T_,currencyIcon:N_,currencyRub:R_,currencyUsdt:A_,swapWrap:M_,swapBtn:z_,payBtn:D_},je={HOME:"/",WALLET:"/wallet",WALLET_CHAIN:"/wallet/:chain",SWAP:"/swap",BRIDGE:"/bridge",LOGIN:"/login",REGISTER:"/register",PROFILE:"/profile",SEED_PHRASE:"/seed-phrase",CONVERTER:"/converter",KYC:"/kyc"};function O_(){const{data:l}=z3(),s=Number(l==null?void 0:l.usdt_exchange_rate)||v3,i=Number(l==null?void 0:l.gas_fee)||g3,r=y3({usdtRate:s}),f=Jr(r.numRub,400),{data:h}=D3(f),m=(h==null?void 0:h.total_price)??"",p=Number(m)||0,g=Number(h==null?void 0:h.service_fee)||0,v=r.numRub>0?p/r.numRub:0;return u.jsx("section",{className:Ye.section,id:"converter",children:u.jsxs("div",{className:Ye.wrap,children:[u.jsxs("div",{className:Ye.header,children:[u.jsxs("div",{children:[u.jsx(p3,{children:"Конвертация"}),u.jsx("div",{className:Ye.subtitle,children:"Данные обновляются в реальном времени"})]}),u.jsxs("div",{className:Ye.pills,children:[u.jsxs("div",{className:Ye.pill,children:["Цена газа в RUB ",u.jsxs("span",{className:Ye.pillValue,children:[i.toFixed(2)," RUB"]})]}),u.jsxs("div",{className:Ye.pill,children:["USDT/RUB ",u.jsxs("span",{className:Ye.pillValue,children:[s.toFixed(2)," ₽"]})]})]})]}),u.jsxs("div",{className:Ye.body,children:[u.jsxs("div",{children:[u.jsx("div",{className:Ye.tabs,children:u.jsx("button",{type:"button",className:Ye.tab,"data-active":r.mode==="buy"||void 0,onClick:()=>r.setMode("buy"),children:"КУПИТЬ"})}),u.jsx("div",{className:Ye.field,children:u.jsxs("div",{className:Ye.fieldInput,children:[u.jsx("input",{type:"text",value:r.rubVal,onChange:b=>r.updateRub(b.target.value),placeholder:"0",inputMode:"decimal"}),u.jsxs("div",{className:Ye.currency,children:[u.jsx("span",{className:`${Ye.currencyIcon} ${Ye.currencyUsdt}`,children:"₮"})," USDT"]})]})}),u.jsx("div",{className:Ye.swapWrap,children:u.jsx("button",{type:"button",className:Ye.swapBtn,"aria-label":"Поменять направление",children:u.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M8 2v12M4 10l4 4 4-4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}),u.jsx("div",{className:Ye.field,children:u.jsxs("div",{className:Ye.fieldInput,children:[u.jsx("input",{type:"text",value:m,readOnly:!0,placeholder:"0"}),u.jsxs("div",{className:Ye.currency,children:[u.jsx("span",{className:`${Ye.currencyIcon} ${Ye.currencyRub}`,children:"₽"})," RUB"]})]})})]}),u.jsx(m_,{amount:p,progress:v2(p),commission:g,effectiveRate:v})]}),u.jsx(ya,{to:je.CONVERTER,className:Ye.payBtn,children:"Перейти к оплате"})]})})}const L_="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",B_="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",U_="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",k_="_footer_1qm30_1",H_="_top_1qm30_11",q_="_col_1qm30_18",G_="_heading_1qm30_35",$_="_companyName_1qm30_44",V_="_phone_1qm30_51",Q_="_email_1qm30_58",F_="_socialIcons_1qm30_62",Y_="_socialLink_1qm30_67",X_="_divider_1qm30_94",Z_="_bottom_1qm30_99",St={footer:k_,top:H_,col:q_,heading:G_,companyName:$_,phone:V_,email:Q_,socialIcons:F_,socialLink:Y_,divider:X_,bottom:Z_},K_=[{href:"#",icon:B_,label:"Telegram"},{href:"#",icon:U_,label:"WhatsApp"},{href:"#",icon:L_,label:"Instagram"}];function Wr(){return u.jsxs("footer",{className:St.footer,children:[u.jsxs("div",{className:St.top,children:[u.jsxs("div",{className:St.col,children:[u.jsx("p",{className:St.companyName,children:"ООО «ЭКСА»"}),u.jsx("p",{children:"ИНН 9810001062"}),u.jsx("p",{children:"ОГРН 1257800060990"})]}),u.jsxs("div",{className:St.col,children:[u.jsx("h4",{className:St.heading,children:"О компании"}),u.jsx("a",{href:"#",children:"Документы"}),u.jsx("a",{href:"#",children:"Публичная оферта"}),u.jsx("a",{href:"#",children:"Реквизиты"})]}),u.jsxs("div",{className:St.col,children:[u.jsx("p",{className:St.phone,children:"+7 (812) 123-33-23"}),u.jsx("h4",{className:St.heading,children:"Адрес"}),u.jsx("p",{children:"196158, г. Санкт-Петербург, Московское шоссе, 25А, к.1, ПОМЕЩ. 3-Н"}),u.jsx("a",{href:"mailto:company@elcsa.ru",className:St.email,children:"company@elcsa.ru"})]}),u.jsxs("div",{className:St.col,children:[u.jsx("h4",{className:St.heading,children:"Мы в соцсетях"}),u.jsx("div",{className:St.socialIcons,children:K_.map(({href:l,icon:s,label:i})=>u.jsx("a",{href:l,className:St.socialLink,"aria-label":i,children:u.jsx("img",{src:s,alt:i})},i))})]})]}),u.jsx("div",{className:St.divider}),u.jsxs("div",{className:St.bottom,children:[u.jsx("p",{children:"© 2026. Все права защищены."}),u.jsx("p",{children:"Компания не является кредитной организацией."})]})]})}const Hl="/assets/logo-full-white-DEb7oTyu.png",J_="_nav_5011x_1",W_="_logo_5011x_16",I_="_right_5011x_22",P_="_link_5011x_28",e5="_btn_5011x_47",Xs={nav:J_,logo:W_,right:I_,link:P_,btn:e5};async function e2(l,s,i){const r=await al(),f=Sn.get(),h={"Content-Type":"application/json","X-CSRF-Token":r,...f?{Authorization:`Bearer ${f}`}:{},...s.headers},m=await fetch(`${M3}${l}`,{...s,credentials:"include",headers:h});if(m.status===401&&i)try{return await Yi(),e2(l,s,!1)}catch{throw Sn.clear(),new Error("Unauthorized")}const p=await m.json();if(!m.ok)throw p;return p}const hc={get:l=>e2(l,{},!0),post:(l,s)=>e2(l,{method:"POST",body:JSON.stringify(s)},!0)};function t5(l){return hc.post("/auth/registration/start",l)}function n5(l){return hc.post("/auth/registration/complete",l)}function a5(l){return hc.post("/auth/login/start",l)}function l5(l){return hc.post("/auth/login/complete",l)}async function i5(){const l=await al();return hc.post("/auth/logout",{_csrf:l})}const O3="https://app.users.elcsa.ru";async function L3(){const l=await al(),s=Sn.get();return{"X-CSRF-Token":l,...s?{Authorization:`Bearer ${s}`}:{}}}async function s5(){const l=await L3(),s=await fetch(`${O3}/me/`,{credentials:"include",headers:l}),i=await s.json();if(!s.ok)throw i;return i}async function c5(l){const s=await L3(),i=await fetch(`${O3}/me/settings/avatar`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...s},body:JSON.stringify(l)}),r=await i.json();if(!i.ok)throw r;return r}function Xi(l){return wn({queryKey:["me"],queryFn:s5,staleTime:1/0,gcTime:1/0,retry:!1,...l})}function r5(){const l=kl();return Vt({mutationFn:c5,onSuccess:s=>{l.setQueryData(["me"],s)}})}const Ir=["auth"];function o5(){return wn({queryKey:Ir,queryFn:Yi,retry:!1,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1})}function C2(){const{data:l,isLoading:s,isError:i}=o5();return{isAuthenticated:!!l&&!i,isLoading:s}}function u5(){const l=C2();return u.jsxs("nav",{className:Xs.nav,children:[u.jsx("a",{className:Xs.logo,href:"/",children:u.jsx("img",{src:Hl,alt:"ЭКСА"})}),u.jsxs("div",{className:Xs.right,children:[u.jsx("a",{className:Xs.link,href:"#about",children:"О нас"}),u.jsx(ya,{className:Xs.btn,to:l?je.WALLET:je.LOGIN,children:"Личный кабинет"})]})]})}const f5="_flow_1oxsf_1",d5="_card_1oxsf_7",h5="_cardRub_1oxsf_17",m5="_cardEksa_1oxsf_27",p5="_cardUsdt_1oxsf_37",v5="_eksaLogo_1oxsf_47",g5="_ghost_1oxsf_54",y5="_ghostBtc_1oxsf_69",_5="_ghostEth_1oxsf_74",b5="_logoCircle_1oxsf_79",x5="_logoRub_1oxsf_90",S5="_logoUsdt_1oxsf_95",C5="_badge_1oxsf_100",w5="_badgeRub_1oxsf_113",j5="_badgeUsdt_1oxsf_117",E5="_status_1oxsf_121",T5="_statusDot_1oxsf_132",N5="_path_1oxsf_139",Je={flow:f5,card:d5,cardRub:h5,cardEksa:m5,cardUsdt:p5,eksaLogo:v5,ghost:g5,ghostBtc:y5,ghostEth:_5,logoCircle:b5,logoRub:x5,logoUsdt:S5,badge:C5,badgeRub:w5,badgeUsdt:j5,status:E5,statusDot:T5,path:N5};function R5(){return u.jsxs("div",{className:Je.flow,children:[u.jsx("div",{className:`${Je.ghost} ${Je.ghostBtc}`,children:u.jsx("span",{style:{fontSize:20,color:"#F7931A"},children:"₿"})}),u.jsx("div",{className:`${Je.ghost} ${Je.ghostEth}`,children:u.jsx("span",{style:{fontSize:20,color:"#627EEA"},children:"Ξ"})}),u.jsxs("div",{className:`${Je.card} ${Je.cardRub}`,children:[u.jsx("div",{className:`${Je.logoCircle} ${Je.logoRub}`,children:"₽"}),u.jsx("div",{className:`${Je.badge} ${Je.badgeRub}`,children:"10 000 ₽"})]}),u.jsx("div",{className:`${Je.card} ${Je.cardEksa}`,children:u.jsx("img",{src:Hl,alt:"ЭКСА",className:Je.eksaLogo})}),u.jsxs("div",{className:`${Je.card} ${Je.cardUsdt}`,children:[u.jsx("div",{className:`${Je.logoCircle} ${Je.logoUsdt}`,children:"₮"}),u.jsx("div",{className:`${Je.badge} ${Je.badgeUsdt}`,children:"≈ 125.3 USDT"}),u.jsxs("div",{className:Je.status,children:[u.jsx("span",{className:Je.statusDot})," ✓ Зачислено"]})]}),u.jsxs("svg",{className:Je.path,viewBox:"0 0 420 460",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[u.jsx("defs",{children:u.jsxs("linearGradient",{id:"pathGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[u.jsx("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.4)"}),u.jsx("stop",{offset:"100%",stopColor:"#26A17B"})]})}),u.jsx("path",{d:"M60 68 C100 160, 250 140, 210 230 C170 310, 300 320, 350 360",stroke:"url(#pathGrad)",strokeWidth:2,strokeDasharray:"8 6",fill:"none"}),u.jsx("path",{d:"M60 68 C100 160, 250 140, 210 230 C170 310, 300 320, 350 360",stroke:"url(#pathGrad)",strokeWidth:8,strokeDasharray:"8 6",opacity:.08,fill:"none"}),u.jsx("circle",{cx:80,cy:110,r:3,fill:"#fff",opacity:.5}),u.jsx("circle",{cx:140,cy:160,r:2.5,fill:"#fff",opacity:.4}),u.jsx("circle",{cx:220,cy:200,r:3,fill:"#fff",opacity:.3}),u.jsx("circle",{cx:200,cy:270,r:2.5,fill:"#26A17B",opacity:.35}),u.jsx("circle",{cx:260,cy:310,r:3,fill:"#26A17B",opacity:.25}),u.jsx("circle",{cx:320,cy:345,r:2,fill:"#26A17B",opacity:.2})]})]})}const im="eksa_countdown_target";function A5(l){const[s]=x.useState(()=>{const m=localStorage.getItem(im);if(m)return Number.parseInt(m,10);const p=Date.now()+l*864e5;return localStorage.setItem(im,String(p)),p}),[i,r]=x.useState(Date.now());x.useEffect(()=>{const m=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(m)},[]);const f=Math.max(0,s-i),h=m=>String(m).padStart(2,"0");return{d:h(Math.floor(f/864e5)),h:h(Math.floor(f%864e5/36e5)),m:h(Math.floor(f%36e5/6e4)),s:h(Math.floor(f%6e4/1e3))}}const M5="_label_ikzdd_1",z5="_row_ikzdd_8",D5="_unit_ikzdd_14",O5="_num_ikzdd_21",L5="_lbl_ikzdd_29",Zs={label:M5,row:z5,unit:D5,num:O5,lbl:L5},B5=[["d","ДНЕЙ"],["h","ЧАСОВ"],["m","МИНУТ"],["s","СЕКУНД"]];function U5({days:l}){const s=A5(l);return u.jsxs("div",{children:[u.jsx("div",{className:Zs.label,children:"ДО ЗАПУСКА ОСТАЛОСЬ"}),u.jsx("div",{className:Zs.row,children:B5.map(([i,r])=>u.jsxs("div",{className:Zs.unit,children:[u.jsx("div",{className:Zs.num,children:s[i]}),u.jsx("div",{className:Zs.lbl,children:r})]},i))})]})}const k5="_card_17ihg_51",H5="_statusPill_17ihg_84",q5="_statusDot_17ihg_99",G5="_flowRow_17ihg_107",$5="_curBlock_17ihg_114",V5="_curIcon_17ihg_122",Q5="_rub_17ihg_133",F5="_usdt_17ihg_141",Y5="_flowLine_17ihg_150",X5="_curAmount_17ihg_154",Z5="_curLabel_17ihg_163",K5="_curCheck_17ihg_171",J5="_bridge_17ihg_182",W5="_bridgeLine_17ihg_191",I5="_bridgeLabel_17ihg_198",P5="_divider_17ihg_206",e8="_details_17ihg_212",t8="_detailRow_17ihg_220",n8="_detailLabel_17ihg_229",a8="_detailValue_17ihg_235",l8="_green_17ihg_242",Ue={card:k5,statusPill:H5,statusDot:q5,flowRow:G5,curBlock:$5,curIcon:V5,rub:Q5,usdt:F5,flowLine:Y5,curAmount:X5,curLabel:Z5,curCheck:K5,bridge:J5,bridgeLine:W5,bridgeLabel:I5,divider:P5,details:e8,detailRow:t8,detailLabel:n8,detailValue:a8,green:l8};function i8(){return u.jsxs("div",{className:Ue.card,children:[u.jsxs("div",{className:Ue.statusPill,children:[u.jsx("span",{className:Ue.statusDot}),"Операция завершена"]}),u.jsxs("div",{className:Ue.flowRow,children:[u.jsxs("div",{className:Ue.curBlock,children:[u.jsx("div",{className:`${Ue.curIcon} ${Ue.rub}`,children:"₽"}),u.jsx("div",{className:Ue.curAmount,children:"10 000 ₽"}),u.jsx("div",{className:Ue.curLabel,children:"Отправлено"})]}),u.jsxs("div",{className:Ue.bridge,children:[u.jsx("div",{className:Ue.bridgeLine,children:u.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[u.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Ue.flowLine}),u.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}),u.jsx("div",{className:Ue.bridgeLabel,children:u.jsx("img",{src:Hl,alt:"ЭКСА"})}),u.jsx("div",{className:Ue.bridgeLine,children:u.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[u.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Ue.flowLine}),u.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})})]}),u.jsxs("div",{className:Ue.curBlock,children:[u.jsx("div",{className:`${Ue.curIcon} ${Ue.usdt}`,children:"₮"}),u.jsx("div",{className:Ue.curAmount,children:"125.3 USDT"}),u.jsxs("div",{className:Ue.curCheck,children:[u.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:u.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#26A17B",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),"Зачислено"]})]})]}),u.jsx("div",{className:Ue.divider}),u.jsxs("div",{className:Ue.details,children:[u.jsxs("div",{className:Ue.detailRow,children:[u.jsx("span",{className:Ue.detailLabel,children:"Курс"}),u.jsxs("span",{className:Ue.detailValue,children:[v3.toFixed(2)," ₽ / USDT"]})]}),u.jsxs("div",{className:Ue.detailRow,children:[u.jsx("span",{className:Ue.detailLabel,children:"Комиссия"}),u.jsx("span",{className:`${Ue.detailValue} ${Ue.green}`,children:"0%"})]})]})]})}const s8="_hero_mnobr_1",c8="_content_mnobr_33",r8="_left_mnobr_45",o8="_desktop_mnobr_52",u8="_mobile_mnobr_56",f8="_right_mnobr_60",d8="_title_mnobr_67",h8="_line2_mnobr_74",m8="_reflection_mnobr_85",p8="_cta_mnobr_96",qn={hero:s8,content:c8,left:r8,desktop:o8,mobile:u8,right:f8,title:d8,line2:h8,reflection:m8,cta:p8};function v8(){return u.jsx("section",{className:qn.hero,children:u.jsxs("div",{className:qn.content,children:[u.jsxs("div",{className:qn.left,children:[u.jsx("div",{className:qn.desktop,children:u.jsx(R5,{})}),u.jsx("div",{className:qn.mobile,children:u.jsx(i8,{})})]}),u.jsxs("div",{className:qn.right,children:[u.jsxs("h1",{className:qn.title,children:["Ваш мост",u.jsx("span",{className:qn.reflection,"aria-hidden":"true",children:"Ваш мост"}),u.jsxs("span",{className:qn.line2,children:["в мир",u.jsx("br",{}),"цифровых",u.jsx("br",{}),"активов"]})]}),u.jsxs("div",{children:[u.jsx(U5,{days:c6}),u.jsx("a",{href:"#converter",className:qn.cta,children:"Попробовать калькулятор"})]})]})]})})}const g8=[{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:"~215 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 сек"}],y8="_section_10lhb_1",_8="_wrap_10lhb_6",b8="_title_10lhb_11",x8="_tableWrap_10lhb_18",S8="_table_10lhb_18",C8="_name_10lhb_52",w8="_icon_10lhb_58",j8="_icon_btc_10lhb_71",E8="_icon_eth_10lhb_75",T8="_icon_trx_10lhb_79",N8="_icon_sol_10lhb_83",R8="_icon_bnb_10lhb_87",A8="_label_10lhb_91",M8="_ticker_10lhb_96",z8="_speedBar_10lhb_102",D8="_speedFill_10lhb_110",O8="_fee_10lhb_115",L8="_confirm_10lhb_121",B8="_footnote_10lhb_126",Et={section:y8,wrap:_8,title:b8,tableWrap:x8,table:S8,name:C8,icon:w8,icon_btc:j8,icon_eth:E8,icon_trx:T8,icon_sol:N8,icon_bnb:R8,label:A8,ticker:M8,speedBar:z8,speedFill:D8,fee:O8,confirm:L8,footnote:B8};function U8(){return u.jsx("section",{className:Et.section,children:u.jsxs("div",{className:Et.wrap,children:[u.jsx("h2",{className:Et.title,children:"Поддерживаемые сети"}),u.jsx("div",{className:Et.tableWrap,children:u.jsxs("table",{className:Et.table,children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Сеть"}),u.jsx("th",{children:"Скорость"}),u.jsx("th",{children:"Комиссия"}),u.jsx("th",{children:"Подтверждение"})]})}),u.jsx("tbody",{children:g8.map(l=>u.jsxs("tr",{children:[u.jsx("td",{children:u.jsxs("div",{className:Et.name,children:[u.jsx("div",{className:`${Et.icon} ${Et[`icon_${l.cls}`]}`,children:l.icon}),u.jsx("span",{className:Et.label,children:l.name}),u.jsx("span",{className:Et.ticker,children:l.ticker})]})}),u.jsx("td",{children:u.jsx("div",{className:Et.speedBar,children:u.jsx("div",{className:Et.speedFill,style:{width:`${l.speed}%`,background:l.color}})})}),u.jsx("td",{children:u.jsx("span",{className:Et.fee,children:l.fee})}),u.jsx("td",{children:u.jsx("span",{className:Et.confirm,children:l.confirm})})]},l.ticker))})]})}),u.jsx("div",{className:Et.footnote,children:"* Комиссии и время подтверждения указаны приблизительно и зависят от загруженности сети"})]})})}function k8(){return u.jsxs(u.Fragment,{children:[u.jsx(u5,{}),u.jsxs("main",{children:[u.jsx(v8,{}),u.jsx(s6,{}),u.jsx(O_,{}),u.jsx(U8,{})]}),u.jsx(Wr,{})]})}const B3="https://app.cryptowallet.elcsa.ru",H8=["ETH","BSC","BTC","TRX","SOL"];async function Zi(l,s=!0){const i=await al(),r=Sn.get(),f=await fetch(`${B3}${l}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(f.status===401&&s)try{return await Yi(),Zi(l,!1)}catch{throw Sn.clear(),new Error("Unauthorized")}const h=await f.json();if(!f.ok)throw h;return h}async function Fn(l,s,i=!0,r={}){const f=await al(),h=Sn.get(),m=await fetch(`${B3}${l}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":f,...h?{Authorization:`Bearer ${h}`}:{},...r},body:JSON.stringify(s)});if(m.status===401&&i)try{return await Yi(),Fn(l,s,!1,r)}catch{throw Sn.clear(),new Error("Unauthorized")}const p=await m.json();if(!m.ok)throw p;return p}async function q8(){return(await Zi("/api/wallets")).data}async function G8(l){return(await Zi(`/api/wallets/${l}/balance`)).data}async function $8(l){return(await Zi(`/api/prices?symbols=${l.join(",")}`)).data}async function V8(l,s){return Fn(`/api/wallets/${l}/send`,s)}async function Q8(){return(await Zi("/api/wallets/portfolio")).data}async function F8(){return(await Zi("/api/tokens")).data}async function Y8(l){return Fn("/api/relay/quote",l)}async function X8(l){return Fn("/api/relay/execute/swap",l)}async function Z8(l,s){const i=`relay-${l.toLowerCase()}-${Date.now()}`;return Fn(`/api/wallets/${l}/sign-raw-evm-tx`,s,!0,{"Idempotency-Key":i})}async function K8(l){return Fn("/api/wallets/SOL/sign-and-broadcast-tx",l)}async function U3(l){return(await Fn("/api/wallets/TRX/swap/quote",l)).data}async function J8(l){return Fn("/api/wallets/TRX/swap",{quoteId:l},!0,{"Idempotency-Key":`trx-${Date.now()}`})}async function W8(){await Fn("/api/wallets/create",{})}async function I8(){return(await Fn("/api/wallets/mnemonic/reveal",{confirm:"I_UNDERSTAND_SEED_IS_SECRET"})).data.mnemonic}function Qr(l){return wn({queryKey:["wallet","balance",l],queryFn:()=>G8(l),staleTime:3e4})}function P8(l){return wn({queryKey:["wallet","prices",l.join(",")],queryFn:()=>$8(l),staleTime:300*1e3})}function e7(){return Vt({mutationFn:({chain:l,...s})=>V8(l,s)})}function w2(){return wn({queryKey:["wallet","addresses"],queryFn:q8,staleTime:600*1e3})}function j2(){return wn({queryKey:["wallet","portfolio"],queryFn:Q8,staleTime:3e4})}function k3(){return wn({queryKey:["wallet","tokens"],queryFn:F8,staleTime:600*1e3})}function t7(){return Vt({mutationFn:W8})}function n7(){return wn({queryKey:["wallet","mnemonic"],queryFn:I8,staleTime:1/0,retry:!1})}function H3(l){return wn({queryKey:["relay","quote",l==null?void 0:l.originChainId,l==null?void 0:l.destinationChainId,l==null?void 0:l.originCurrency,l==null?void 0:l.destinationCurrency,l==null?void 0:l.amount],queryFn:()=>Y8(l),enabled:!!l,staleTime:1e4})}function q3(){return Vt({mutationFn:l=>X8(l)})}function G3(){return Vt({mutationFn:({chain:l,txData:s})=>l==="SOL"?K8(s):Z8(l,s)})}function $3(l){return wn({queryKey:["trx","quote",l==null?void 0:l.from,l==null?void 0:l.to,l==null?void 0:l.amountHuman],queryFn:()=>U3(l),enabled:!!l,staleTime:1e4})}function V3(){return Vt({mutationFn:U3})}function Q3(){return Vt({mutationFn:l=>J8(l)})}const a7="_card_1kfaj_1",l7="_label_1kfaj_18",i7="_amount_1kfaj_27",s7="_actions_1kfaj_41",c7="_btn_1kfaj_46",Cl={card:a7,label:l7,amount:i7,actions:s7,btn:c7},r7="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",o7="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 u7(){const{data:l,isLoading:s}=j2(),i=s||!l||l.totalUsd==null?"$—":`$${l.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return u.jsxs("div",{className:Cl.card,children:[u.jsxs("div",{className:Cl.left,children:[u.jsx("div",{className:Cl.label,children:"Общий баланс"}),u.jsx("div",{className:Cl.amount,children:i})]}),u.jsxs("div",{className:Cl.actions,children:[u.jsxs(ya,{to:je.CONVERTER,className:Cl.btn,type:"button",children:[u.jsx("img",{src:o7,alt:"swap"}),"Пополнить кошелёк"]}),u.jsxs(ya,{to:je.SWAP,className:Cl.btn,type:"button",children:[u.jsx("img",{src:r7,alt:"topup"}),"Своп / Бридж"]})]})]})}const f7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%206H15C16.6569%206%2018%207.34315%2018%209C18%2010.6569%2016.6569%2012%2015%2012M10%206V12M10%206H7M10%206V3M15%2012H10M15%2012C16.6569%2012%2018%2013.3431%2018%2015C18%2016.6569%2016.6569%2018%2015%2018H10M10%2012V18M10%2018H7M10%2018V21M13%206V3M13%2021V18'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",d7="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pg0KDQo8IURPQ1RZUEUgc3ZnICBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+DQoNCjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+DQo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDMyIDMyIiBpZD0iX3gzQ19MYXllcl94M0VfIiB2ZXJzaW9uPSIxLjEiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KDQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KPCFbQ0RBVEFbDQoJLnN0MHtmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Qxe2ZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KXV0+DQo8L3N0eWxlPg0KDQo8ZyBpZD0iRXRoZXJldW1feDJDX19jcnlwdG9feDJDX19jcnlwdG9jdXJyZW5jeV8xXyI+DQoNCjxnIGlkPSJYTUxJRF8xNV8iPg0KDQo8cG9seWdvbiBjbGFzcz0ic3QxIiBpZD0iWE1MSURfOF8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzFfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjMwLjUiIHkyPSIyNC4xIi8+DQoNCjxwb2x5Z29uIGNsYXNzPSJzdDEiIGlkPSJYTUxJRF8xMl8iIHBvaW50cz0iMTYuMDEsMzAuNSA3LjYyLDE4LjgzIDE2LjAxLDI0LjEgMjQuMzgsMTguNzggICAiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzMwXyIgcG9pbnRzPSIxNi4wMSwxMi4zIDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzJfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjEuNSIgeTI9IjIxLjUiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzE5Ml8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8L2c+DQoNCjwvZz4NCg0KPC9zdmc+",h7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.08398%205.22265C7.17671%205.08355%207.33282%205%207.5%205H18.5C18.6844%205%2018.8538%205.10149%2018.9408%205.26407C19.0278%205.42665%2019.0183%205.62392%2018.916%205.77735L16.916%208.77735C16.8233%208.91645%2016.6672%209%2016.5%209H5.5C5.3156%209%205.14617%208.89851%205.05916%208.73593C4.97215%208.57335%204.98169%208.37608%205.08398%208.22265L7.08398%205.22265ZM7.76759%206L6.43426%208H16.2324L17.5657%206H7.76759Z'%20fill='%23fff'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.08398%2015.2226C7.17671%2015.0836%207.33282%2015%207.5%2015H18.5C18.6844%2015%2018.8538%2015.1015%2018.9408%2015.2641C19.0278%2015.4267%2019.0183%2015.6239%2018.916%2015.7774L16.916%2018.7774C16.8233%2018.9164%2016.6672%2019%2016.5%2019H5.5C5.3156%2019%205.14617%2018.8985%205.05916%2018.7359C4.97215%2018.5734%204.98169%2018.3761%205.08398%2018.2226L7.08398%2015.2226ZM7.76759%2016L6.43426%2018H16.2324L17.5657%2016H7.76759Z'%20fill='%23fff'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.08398%2013.7774C7.17671%2013.9164%207.33282%2014%207.5%2014H18.5C18.6844%2014%2018.8538%2013.8985%2018.9408%2013.7359C19.0278%2013.5733%2019.0183%2013.3761%2018.916%2013.2226L16.916%2010.2226C16.8233%2010.0836%2016.6672%2010%2016.5%2010H5.5C5.3156%2010%205.14617%2010.1015%205.05916%2010.2641C4.97215%2010.4267%204.98169%2010.6239%205.08398%2010.7774L7.08398%2013.7774ZM7.76759%2013L6.43426%2011H16.2324L17.5657%2013H7.76759Z'%20fill='%23fff'/%3e%3c/svg%3e",m7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.6109%204.68601C4.72546%204.54406%204.90822%204.47575%205.0878%204.50778L16.575%206.55656C16.6715%206.57377%2016.7608%206.61896%2016.8318%206.68651L19.3446%209.07676C19.5379%209.26064%2019.5528%209.5639%2019.3784%209.76583L11.122%2019.3268C11.0084%2019.4583%2010.8347%2019.5214%2010.6632%2019.4935C10.4917%2019.4656%2010.347%2019.3506%2010.281%2019.1898L4.53742%205.18979C4.46819%205.02103%204.49635%204.82796%204.6109%204.68601ZM6.19646%206.59904L10.4853%2017.053L11.2894%2010.6786L6.19646%206.59904ZM12.2688%2010.9045L11.4468%2017.4207L17.7491%2010.1226L12.2688%2010.9045ZM17.9075%209.08986L13.7298%209.68594L16.4453%207.69901L17.9075%209.08986ZM15.2483%207.33573L6.84451%205.83688L11.8343%209.83381L15.2483%207.33573Z'%20fill='%23fff'/%3e%3c/svg%3e",p7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2026.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%202496%202496'%20style='enable-background:new%200%200%202496%202496;'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill-rule:evenodd;clip-rule:evenodd;fill:%23F0B90B;'%20d='M1248,0c689.3,0,1248,558.7,1248,1248s-558.7,1248-1248,1248%20S0,1937.3,0,1248S558.7,0,1248,0L1248,0z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M685.9,1248l0.9,330l280.4,165v193.2l-444.5-260.7v-524L685.9,1248L685.9,1248z%20M685.9,918v192.3%20l-163.3-96.6V821.4l163.3-96.6l164.1,96.6L685.9,918L685.9,918z%20M1084.3,821.4l163.3-96.6l164.1,96.6L1247.6,918L1084.3,821.4%20L1084.3,821.4z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M803.9,1509.6v-193.2l163.3,96.6v192.3L803.9,1509.6L803.9,1509.6z%20M1084.3,1812.2l163.3,96.6%20l164.1-96.6v192.3l-164.1,96.6l-163.3-96.6V1812.2L1084.3,1812.2z%20M1645.9,821.4l163.3-96.6l164.1,96.6v192.3l-164.1,96.6V918%20L1645.9,821.4L1645.9,821.4L1645.9,821.4z%20M1809.2,1578l0.9-330l163.3-96.6v524l-444.5,260.7v-193.2L1809.2,1578L1809.2,1578%20L1809.2,1578z'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='1692.1,1509.6%201528.8,1605.3%201528.8,1413%201692.1,1316.4%201692.1,1509.6%20'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M1692.1,986.4l0.9,193.2l-281.2,165v330.8l-163.3,95.7l-163.3-95.7v-330.8l-281.2-165V986.4%20L968,889.8l279.5,165.8l281.2-165.8l164.1,96.6H1692.1L1692.1,986.4z%20M803.9,656.5l443.7-261.6l444.5,261.6l-163.3,96.6%20l-281.2-165.8L967.2,753.1L803.9,656.5L803.9,656.5z'/%3e%3c/g%3e%3c/svg%3e",v7="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='151'%20height='172'%20viewBox='0%200%20151%20172'%20fill='none'%3e%3cpath%20d='M144.518%2039.2113L82.214%203.03438C80.1932%201.87961%2077.9919%201.28418%2075.7545%201.28418C73.5352%201.28418%2071.3158%201.87961%2069.3311%203.03438L7.00937%2039.2474C3.05788%2041.5569%200.585938%2045.8151%200.585938%2050.4162V122.842C0.585938%20127.443%203.05788%20131.756%207.00937%20134.047L18.2143%20140.561L34.5616%20150.052L38.2243%20139.965L71.8932%2047.1143C72.2%2046.2121%2071.5504%2045.2378%2070.54%2045.2378H54.752C53.5792%2045.2378%2052.4966%2045.9775%2052.1177%2047.0782L21.8951%20130.474L12.2961%20124.899C11.5743%20124.484%2011.1232%20123.708%2011.1232%20122.878V50.4162C11.1232%2049.5862%2011.5743%2048.8103%2012.2961%2048.3953L74.6178%2012.1824C74.9606%2011.9658%2075.3756%2011.8756%2075.7725%2011.8756C76.1875%2011.8756%2076.5665%2011.9839%2076.9454%2012.1824L139.285%2048.3953C140.007%2048.8103%20140.458%2049.5862%20140.458%2050.4162V122.842C140.458%20123.672%20140.007%20124.448%20139.285%20124.863L129.794%20130.384L104.822%2061.4768C104.371%2060.2137%20102.639%2060.2137%20102.188%2061.4768L93.9602%2084.1392C93.7257%2084.7707%2093.7257%2085.4744%2093.9602%2086.0879L113.447%20139.875L106.969%20143.646L91.0192%2099.6023C90.5681%2098.3393%2088.8359%2098.3393%2088.3848%2099.6023L80.1571%20122.265C79.9225%20122.896%2079.9225%20123.6%2080.1571%20124.213L90.6403%20153.137L76.9634%20161.094C76.6206%20161.311%2076.2056%20161.401%2075.7906%20161.401C75.3756%20161.401%2074.9967%20161.293%2074.6178%20161.094L61.1033%20153.227L99.5537%2047.1323C99.8965%2046.1941%2099.2108%2045.2017%2098.2365%2045.2017H82.4486C81.2758%2045.2017%2080.1932%2045.9414%2079.8142%2047.0421L44.756%20143.718L41.0932%20153.805L57.4405%20163.295L69.3672%20170.224C71.3519%20171.379%2073.5713%20171.974%2075.7906%20171.974C78.0099%20171.974%2080.2292%20171.379%2082.214%20170.224L144.554%20134.011C148.541%20131.701%20150.977%20127.443%20150.977%20122.806V50.4162C150.977%2045.8151%20148.505%2041.5028%20144.554%2039.2113H144.518Z'%20fill='white'/%3e%3c/svg%3e",g7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='CIRCLE_OUTLINE_BLACK'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FDDE00;}%20.st1{fill:%233C2D0C;}%20.st2{fill:%23E78C19;}%20.st3{fill:%23EFB99D;}%20.st4{fill:%23FBFBFB;}%20.st5{fill:%23E72D36;}%20%3c/style%3e%3ccircle%20class='st0'%20cx='256'%20cy='256'%20r='256'/%3e%3cpath%20class='st1'%20d='M131.4,181c0,0-13.2,16.7-8.8,92.2c0,0-28.9,74-19.1,111.8c9.8,37.7,48,35.8,48,35.8s61.3,53.9,108.3,6.4%20c47.1-47.6-39.2-231.9-39.2-231.9l-10.8-63.7c0,0-11.8,9.3-10.3,70.6s-24,18.1-24,18.1L131.4,181z'/%3e%3cpath%20class='st2'%20d='M136.3,247.7l-16.2,45.6l-5.9,31.9c0,0-20.1,71.1,62.8,70.1c0,0,64.7,57.9,106.9,19.1l11.3-12.3l19.6-30.4%20l32.4-96.6c0,0-10.3-66.2-75.5-93.6c0,0-5.4-2.9-15.2,1c0,0-27-60.8-44.1-53.4c0,0-14.7,7.8-2,67.7l-23,10.3%20c0,0-25.2-47.8-48.5-38.2C117.2,177.6,136.3,247.7,136.3,247.7z'/%3e%3cpath%20class='st3'%20d='M220.1,158.9l2,26.5c0,0,1.5,15.2,17.6,9.8c4.6-1.5,8.6-4.7,8.2-9.9c-0.3-3.9-3-7.5-4.8-10.8%20c-3.3-6.3-6-13-9.9-19.1c-2-3.1-6.1-10-10.6-9.2C222.6,146.2,219.2,145.2,220.1,158.9z'/%3e%3cpath%20class='st3'%20d='M149.3,188.7c0.3-0.2,6.9-8.5,20.6,11.7c13.7,20.2,12.3,17.6,12.3,17.6s7.4,8.1-7.7,18.5%20c-3.3,2.4-6.9,4.4-10.7,6c-2.4,0.9-4.9,1.4-7.4,1.4c-2.9-0.1-4.2-1.6-4.9-4.3c-2.3-8.8-4.9-17.6-6.2-26.6%20C144.3,206,142.3,193.2,149.3,188.7z'/%3e%3cpath%20class='st4'%20d='M308.5,229.4c0,4.8-7,8.7-15.7,8.7c-8.7,0-15.7-3.9-15.7-8.7s7.2-11.9,15.8-11.9S308.5,224.6,308.5,229.4z'/%3e%3cellipse%20transform='matrix(0.4925%20-0.8703%200.8703%200.4925%20-121.8385%20314.1253)'%20class='st4'%20cx='208.4'%20cy='261.5'%20rx='17.1'%20ry='11'/%3e%3cpath%20class='st4'%20d='M240.2,306.7l42.9-22.3c0,0,53.4-27.9,66.4-6.4s0,54.4,0,54.4s-5.6,38.5-44.9,41.9l-21.1,2.9l-27,0.7%20c0,0-43.4,2.5-75.3-21.1l-10.1-12.3c0,0-20.3-27.9-6.1-48s62.8,11,62.8,11S234.6,311.2,240.2,306.7z'/%3e%3ccircle%20class='st5'%20cx='337.5'%20cy='185.2'%20r='10.3'/%3e%3ccircle%20class='st5'%20cx='314.7'%20cy='159.9'%20r='10.3'/%3e%3ccircle%20class='st5'%20cx='278.2'%20cy='151.8'%20r='10.3'/%3e%3cpath%20class='st5'%20d='M286.3,78.8c2.2,30.4-2.2,57.9-9.6,57.9s-17.2-29.7-17.2-57.9c0-11.6,6.1-13.5,13.5-13.5%20C280.5,65.3,285.5,67.2,286.3,78.8z'/%3e%3cpath%20class='st5'%20d='M354.5,97.7c-11.2,28.3-27.1,51.2-33.7,48c-6.6-3.2-2.6-34.2,9.7-59.6c5.1-10.5,11.4-9.5,18-6.3%20C355.1,83.1,358.8,86.9,354.5,97.7z'/%3e%3cpath%20class='st5'%20d='M403.3,152.9c-24.7,17.9-50.3,28.7-54.2,22.4c-3.9-6.3,16.2-30.2,40.1-45.1c9.9-6.1,14.7-1.9,18.6,4.3%20C411.6,140.8,412.7,146,403.3,152.9z'/%3e%3cpath%20d='M238.2,276.8c-0.9,0.1-1.8,0.2-2.7,0.3c0.1,0.3,0.2,0.6,0.2,1c0,3.1-4.9,5.7-11,5.9c0,0.3-0.1,0.5,0,0.8%20c0.3,3.8,6.9,6.4,14.6,5.8c7.8-0.6,13.9-4.2,13.6-8C252.5,278.8,246,276.2,238.2,276.8z'/%3e%3cpath%20d='M292.4,263.4c-0.9,0.1-1.8,0.2-2.7,0.3c0.1,0.3,0.2,0.6,0.2,1c0,3.1-4.9,5.7-11,5.9c0,0.3-0.1,0.5,0,0.8%20c0.3,3.8,6.9,6.4,14.6,5.8c7.8-0.6,13.9-4.2,13.6-8C306.8,265.4,300.2,262.8,292.4,263.4z'/%3e%3cpath%20d='M310.2,279.3c0,0-21.5,6.3-20.2,18.4s27.2,18.4,27.2,18.4s7,2.8,11-3.9c4-6.6,9.9-15.6,8.3-28.5%20C336.5,283.7,336,274.1,310.2,279.3z'/%3e%3c/svg%3e",y7="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20336.41%20337.42'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23f0b90b;stroke:%23f0b90b;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M168.2.71l41.5,42.5L105.2,147.71l-41.5-41.5Z'/%3e%3cpath%20class='cls-1'%20d='M231.2,63.71l41.5,42.5L105.2,273.71l-41.5-41.5Z'/%3e%3cpath%20class='cls-1'%20d='M42.2,126.71l41.5,42.5-41.5,41.5L.7,169.21Z'/%3e%3cpath%20class='cls-1'%20d='M294.2,126.71l41.5,42.5L168.2,336.71l-41.5-41.5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Creator:%20CorelDRAW%202019%20(64-Bit)%20--%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20width='100%25'%20height='100%25'%20version='1.1'%20shape-rendering='geometricPrecision'%20text-rendering='geometricPrecision'%20image-rendering='optimizeQuality'%20fill-rule='evenodd'%20clip-rule='evenodd'%20viewBox='0%200%20444.44%20444.44'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:xodm='http://www.corel.com/coreldraw/odm/2003'%3e%3cg%20id='Layer_x0020_1'%3e%3cmetadata%20id='CorelCorpID_0Corel-Layer'/%3e%3cpath%20fill='%23F5AC37'%20fill-rule='nonzero'%20d='M222.22%200c122.74,0%20222.22,99.5%20222.22,222.22%200,122.74%20-99.48,222.22%20-222.22,222.22%20-122.72,0%20-222.22,-99.49%20-222.22,-222.22%200,-122.72%2099.5,-222.22%20222.22,-222.22z'/%3e%3cpath%20fill='%23FEFEFD'%20fill-rule='nonzero'%20d='M230.41%20237.91l84.44%200c1.8,0%202.65,0%202.78,-2.36%200.69,-8.59%200.69,-17.23%200,-25.83%200,-1.67%20-0.83,-2.36%20-2.64,-2.36l-168.05%200c-2.08,0%20-2.64,0.69%20-2.64,2.64l0%2024.72c0,3.19%200,3.19%203.33,3.19l82.78%200zm77.79%20-59.44c0.24,-0.63%200.24,-1.32%200,-1.94%20-1.41,-3.07%20-3.08,-6%20-5.02,-8.75%20-2.92,-4.7%20-6.36,-9.03%20-10.28,-12.92%20-1.85,-2.35%20-3.99,-4.46%20-6.39,-6.25%20-12.02,-10.23%20-26.31,-17.47%20-41.67,-21.11%20-7.75,-1.74%20-15.67,-2.57%20-23.61,-2.5l-74.58%200c-2.08,0%20-2.36,0.83%20-2.36,2.64l0%2049.3c0,2.08%200,2.64%202.64,2.64l160.27%200c0,0%201.39,-0.28%201.67,-1.11l-0.68%200zm0%2088.33c-2.36,-0.26%20-4.74,-0.26%20-7.1,0l-154.02%200c-2.08,0%20-2.78,0%20-2.78,2.78l0%2048.2c0,2.22%200,2.78%202.78,2.78l71.11%200c3.4,0.26%206.8,0.02%2010.13,-0.69%2010.32,-0.74%2020.47,-2.98%2030.15,-6.67%203.52,-1.22%206.92,-2.81%2010.13,-4.72l0.97%200c16.67,-8.67%2030.21,-22.29%2038.75,-39.01%200,0%200.97,-2.1%20-0.12,-2.65zm-191.81%2078.75l0%20-0.83%200%20-32.36%200%20-10.97%200%20-32.64c0,-1.81%200,-2.08%20-2.22,-2.08l-30.14%200c-1.67,0%20-2.36,0%20-2.36,-2.22l0%20-26.39%2032.22%200c1.8,0%202.5,0%202.5,-2.36l0%20-26.11c0,-1.67%200,-2.08%20-2.22,-2.08l-30.14%200c-1.67,0%20-2.36,0%20-2.36,-2.22l0%20-24.44c0,-1.53%200,-1.94%202.22,-1.94l29.86%200c2.08,0%202.64,0%202.64,-2.64l0%20-74.86c0,-2.22%200,-2.78%202.78,-2.78l104.16%200c7.56,0.3%2015.07,1.13%2022.5,2.5%2015.31,2.83%2030.02,8.3%2043.47,16.11%208.92,5.25%2017.13,11.59%2024.44,18.89%205.5,5.71%2010.46,11.89%2014.86,18.47%204.37,6.67%208,13.8%2010.85,21.25%200.35,1.94%202.21,3.25%204.15,2.92l24.86%200c3.19,0%203.19,0%203.33,3.06l0%2022.78c0,2.22%20-0.83,2.78%20-3.06,2.78l-19.17%200c-1.94,0%20-2.5,0%20-2.36,2.5%200.76,8.46%200.76,16.95%200,25.41%200,2.36%200,2.64%202.65,2.64l21.93%200c0.97,1.25%200,2.5%200,3.76%200.14,1.61%200.14,3.24%200,4.85l0%2016.81c0,2.36%20-0.69,3.06%20-2.78,3.06l-26.25%200c-1.83,-0.35%20-3.61,0.82%20-4.03,2.64%20-6.25,16.25%20-16.25,30.82%20-29.17,42.5%20-4.72,4.25%20-9.68,8.25%20-14.86,11.94%20-5.56,3.2%20-10.97,6.53%20-16.67,9.17%20-10.49,4.72%20-21.49,8.2%20-32.78,10.41%20-10.72,1.92%20-21.59,2.79%20-32.5,2.64l-96.39%200%200%20-0.14z'/%3e%3c/g%3e%3c/svg%3e",b7="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%202000%202000'%20width='2500'%20height='2500'%3e%3cg%20fill='%23c2a633'%3e%3cpath%20d='M1024%20659H881.12v281.69h224.79v117.94H881.12v281.67H1031c38.51%200%20316.16%204.35%20315.73-327.72S1077.44%20659%201024%20659z'/%3e%3cpath%20d='M1000%200C447.71%200%200%20447.71%200%201000s447.71%201000%201000%201000%201000-447.71%201000-1000S1552.29%200%201000%200zm39.29%201540.1H677.14v-481.46H549.48V940.7h127.65V459.21h310.82c73.53%200%20560.56-15.27%20560.56%20549.48%200%20574.09-509.21%20531.41-509.21%20531.41z'/%3e%3c/g%3e%3c/svg%3e",x7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='katman_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20800%20800'%20style='enable-background:new%200%200%20800%20800;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23141726;}%20.st1{fill:url(%23SVGID_1_);}%20.st2{fill:url(%23SVGID_2_);}%20.st3{fill:url(%23SVGID_3_);}%20.st4{fill:url(%23SVGID_4_);}%20.st5{fill:url(%23SVGID_5_);}%20.st6{fill:url(%23SVGID_6_);}%20%3c/style%3e%3ccircle%20class='st0'%20cx='400'%20cy='400'%20r='400'/%3e%3clinearGradient%20id='SVGID_1_'%20gradientUnits='userSpaceOnUse'%20x1='574.9257'%20y1='665.8727'%20x2='248.5257'%20y2='142.3127'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st1'%20d='M536,568.9c-66.8-108.5-166.4-170-289.4-195.6c-43.5-9-87.2-8.9-129.4,7.7c-28.9,11.4-33.3,23.4-19.7,53.7%20c92.4-21.9,178.4-1.5,258.9,45c81.1,46.9,141.6,112.2,169.1,205c38.6-11.8,43.6-18.3,34.3-54.2C554.3,609.4,547.4,587.4,536,568.9%20L536,568.9z'/%3e%3clinearGradient%20id='SVGID_2_'%20gradientUnits='userSpaceOnUse'%20x1='572.5896'%20y1='667.3303'%20x2='246.1996'%20y2='143.7703'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st2'%20d='M609.1,480.6c-85.8-125-207.3-194.9-355.8-218.3c-39.3-6.2-79.4-4.5-116.2,14.3c-17.6,9-33.2,20.5-37.4,44.9%20c115.8-31.9,219.7-3.7,317.5,53c98.3,57,175.1,133.5,205,251.1c20.8-18.4,24.5-41,19.1-62C633.9,534.8,625.5,504.5,609.1,480.6%20L609.1,480.6z'/%3e%3clinearGradient%20id='SVGID_3_'%20gradientUnits='userSpaceOnUse'%20x1='577.0148'%20y1='664.5671'%20x2='250.6247'%20y2='141.0071'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st3'%20d='M105,488.6c7.3,16.2,12.1,34.5,23,47.6c5.5,6.7,22.2,4.1,33.8,5.7c1.8,0.2,3.6,0.5,5.4,0.7%20c102.9,15.3,184.1,65.1,242.1,152c3.4,5.1,8.9,12.7,13.4,12.7c17.4-0.1,34.9-2.8,52.5-4.5C449,557.5,232.8,438.3,105,488.6%20L105,488.6z'/%3e%3clinearGradient%20id='SVGID_4_'%20gradientUnits='userSpaceOnUse'%20x1='569.0272'%20y1='669.5518'%20x2='242.6272'%20y2='145.9917'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st4'%20d='M656.6,366.7C599.9,287.4,521.7,234.6,432.9,197c-61.5-26.1-125.2-41.8-192.8-33.7%20c-23.4,2.8-45.3,9.5-63.4,24.7c230.9,5.8,404.6,105.8,524,303.3c0.2-13.1,2.2-27.7-2.6-39.5C686.1,422.5,674.7,392,656.6,366.7z'/%3e%3clinearGradient%20id='SVGID_5_'%20gradientUnits='userSpaceOnUse'%20x1='571.6973'%20y1='667.8917'%20x2='245.2973'%20y2='144.3317'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st5'%20d='M709.8,325.3c-47-178.9-238-265-379.2-221.4C482.7,133.9,607.5,206.4,709.8,325.3z'/%3e%3clinearGradient%20id='SVGID_6_'%20gradientUnits='userSpaceOnUse'%20x1='579.0382'%20y1='663.3111'%20x2='252.6482'%20y2='139.7511'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st6'%20d='M155.4,583.9c54.6,69.3,124,109.7,213,122.8C334.4,643.2,214.6,574.5,155.4,583.9L155.4,583.9z'/%3e%3c/svg%3e",S7="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2037.8%2043.6'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%232a5ada;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M18.9,0l-4,2.3L4,8.6,0,10.9V32.7L4,35l11,6.3,4,2.3,4-2.3L33.8,35l4-2.3V10.9l-4-2.3L22.9,2.3ZM8,28.1V15.5L18.9,9.2l10.9,6.3V28.1L18.9,34.4Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",C7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='CIRCLE_OUTLINE_BLACK'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFD15C;}%20.st1{fill:%23FFFFFF;}%20%3c/style%3e%3cpath%20class='st0'%20d='M512,256c0,141.4-114.6,256-256,256S0,397.4,0,256S114.6,0,256,0S512,114.6,512,256z'/%3e%3cpath%20class='st1'%20d='M193.5,152.3c-10.4,1.5-4.6,10.4-4.6,10.4l-0.3,2.5c14.9,25.7,39.5,52.7,64.6,70.7c18.5,13.2,32.3,32.7,39,54.9%20c6.6,21.9,5.4,44.6-3.2,62.2c-10.4,21.2-30.1,33.5-55.3,34.7c-25.1,1.2-54.9-8.7-88.6-29.4c-0.3,0.8-0.7,1.6-1.1,2.3%20c29.2,30.1,63,48.1,98.1,52.2c35.5,4.2,71.9-5.8,102.7-27.9c-0.8,0-1.4-0.2-1.9-0.5C446.5,298.8,276.9,140.4,193.5,152.3%20L193.5,152.3z'/%3e%3cpath%20d='M462.6,267.4c-0.1-1.9-0.2-4.2-0.6-6.9c-1.3-10.5-5.5-26.6-17.7-43.7c-0.6-0.8-1.2-1.6-1.8-2.4c-0.1-0.2-0.3-0.4-0.4-0.6%20c-0.5-0.7-1.1-1.4-1.6-2.1c0,0-0.1-0.1-0.1-0.1c-0.6-0.7-1.2-1.5-1.8-2.2c-0.1-0.2-0.3-0.3-0.4-0.5c-0.5-0.6-1.1-1.3-1.6-1.9%20c-0.1-0.1-0.1-0.1-0.2-0.2c-0.6-0.7-1.2-1.3-1.8-2c-0.1-0.1-0.3-0.3-0.4-0.4c-0.5-0.6-1-1.1-1.5-1.6c-0.1-0.1-0.2-0.2-0.2-0.3%20c-0.6-0.6-1.2-1.2-1.7-1.7c-0.1-0.1-0.2-0.2-0.4-0.4c-0.5-0.5-1-1-1.5-1.4c-0.1-0.1-0.2-0.2-0.3-0.3c-0.6-0.5-1.1-1-1.7-1.5%20c-0.1-0.1-0.2-0.2-0.3-0.3c-0.5-0.4-1-0.8-1.4-1.2c-0.1-0.1-0.2-0.2-0.3-0.3c-0.5-0.5-1.1-0.9-1.6-1.3c-0.1-0.1-0.2-0.2-0.3-0.3%20c-0.4-0.4-0.9-0.7-1.3-1.1c-0.1-0.1-0.3-0.2-0.4-0.3c-0.5-0.4-1-0.8-1.5-1.1c-0.1-0.1-0.2-0.2-0.3-0.2c-0.4-0.3-0.8-0.6-1.2-0.9%20c-0.1-0.1-0.3-0.2-0.4-0.3c-0.5-0.3-0.9-0.6-1.4-1c-0.1-0.1-0.2-0.2-0.4-0.2c-0.4-0.2-0.7-0.5-1-0.7c-0.2-0.1-0.3-0.2-0.5-0.3%20c-0.4-0.2-0.8-0.5-1.1-0.7c-0.2-0.1-0.4-0.2-0.5-0.3c-0.3-0.2-0.5-0.3-0.8-0.5c-0.2-0.1-0.4-0.2-0.6-0.3c-0.2-0.1-0.5-0.3-0.7-0.4%20c-0.3-0.2-0.6-0.4-1-0.5c-0.2-0.1-0.3-0.2-0.5-0.3c-0.2-0.1-0.4-0.2-0.7-0.3c-0.1-0.1-0.2-0.1-0.3-0.2c-0.4-0.2-0.9-0.5-1.3-0.7%20c0,0-0.1,0-0.1,0c-2.7-4.8-5.7-9.6-8.9-14.4c-37.3-54.6-78.2-81.1-124.9-81.2h-0.2c-19.8,0-37.9,4.5-53,8.9c-4.3,1.3-8.8,2.6-13.1,4%20c-11,3.4-21.4,6.7-30.3,8.1c-5.6,0.9-10,3-13.1,6.2c-2.8,3-4.5,7.1-5,12.1c-1,9.7,2.5,22.8,10.1,37.8c15.3,30.4,44.6,63.9,74.6,85.4%20c3.5,2.5,6.7,5.2,9.7,8.2c-0.6,0.1-1.2,0.2-1.9,0.3c-23.5,3.4-35.8,28.6-40.7,42.3c-1.3,3.6,2.2,6.8,5.8,5.5%20c14.6-4.9,44.3-12.9,61-2.6c0.1,0,0.3-0.1,0.4-0.1c3,15,1.6,29.8-4.1,41.3c-7.5,15.1-21.8,24-40.3,24.9%20c-21.8,1.1-48.6-8.2-79.7-27.6l-0.5-0.3c-0.3-0.1-0.6-0.3-0.8-0.5c24.2-27.5,9.9-69.9,4.3-83.8c-0.7-1.8-3.3-1.8-4.3-0.1%20c-13,22.1-39.8,20.4-39.3,46.7c0,0,0,0,0-0.1c-20.4-16.6-35.6,5.5-61,2.2c-2-0.3-3.5,1.7-2.5,3.4c7.7,13.3,33.5,52.3,71.6,47.9%20l-1.8,1.3l6.8,7.5c33.3,36.7,72.9,58.7,114.6,63.6c6,0.7,12,1.1,18,1.1c34.9,0,69.6-11.7,99.4-33.9c34.2-25.4,57.9-61.3,66.8-101%20c3-13.2,4.2-26.4,3.7-39.5c7.5-3,15.7,0.3,22.2,4.7c0.1,0,0.1,0.1,0.2,0.1c0.3,0.2,0.5,0.4,0.8,0.5c0.1,0,0.1,0.1,0.2,0.1%20c0.8,0.5,1.5,1.1,2.2,1.6c0.1,0.1,0.3,0.2,0.4,0.3c0.2,0.1,0.3,0.3,0.5,0.4c0.2,0.1,0.3,0.3,0.5,0.4c0.1,0.1,0.3,0.2,0.4,0.4%20c0.3,0.2,0.6,0.5,0.8,0.7c0.1,0.1,0.2,0.2,0.3,0.2c0.2,0.2,0.4,0.4,0.6,0.5c0.1,0.1,0.2,0.2,0.3,0.3c0.2,0.2,0.4,0.3,0.6,0.5%20c0.1,0.1,0.2,0.1,0.2,0.2c0.2,0.2,0.5,0.5,0.7,0.7c0.1,0.1,0.2,0.1,0.2,0.2c0.5,0.4,1.1,0.5,1.6,0.5%20C461.7,269.5,462.7,268.6,462.6,267.4z%20M342.9,384.5c0.5,0.3,1.1,0.4,1.9,0.5c-30.8,22.2-67.2,32.1-102.7,27.9%20c-35.2-4.1-68.9-22.1-98.1-52.2c0.4-0.8,0.8-1.5,1.1-2.3c33.7,20.7,63.5,30.6,88.6,29.4c25.2-1.2,44.9-13.6,55.3-34.7%20c8.7-17.6,9.8-40.2,3.2-62.2c-6.7-22.2-20.5-41.7-39-54.9c-25.2-18-49.7-45-64.6-70.7l0.3-2.5c0,0-5.8-8.9,4.6-10.4%20C276.9,140.4,446.5,298.8,342.9,384.5z'/%3e%3cpath%20class='st1'%20d='M280.3,146.5c-2.9-4.1-8.7-15.1,9.3-15.1c18,0,45.4,20.3,51,27.8c-1.7,4.6-13.3,5.6-19.1,5.2%20s-15.6-1.4-23.2-5.2C290.8,155.6,283.2,150.6,280.3,146.5z'/%3e%3c/svg%3e",w7="/assets/popcat-DOGy5LFs.svg",j7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='CIRCLE_OUTLINE_BLACK'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23E6DAFE;}%20%3c/style%3e%3ccircle%20class='st0'%20cx='256'%20cy='256'%20r='256'/%3e%3cpath%20d='M303.4,228.5c0,20.7-16.7,37.5-37.4,37.5v37.5c41.3,0,74.7-33.5,74.7-74.9s-33.5-74.9-74.7-74.9c-13.6,0-26.4,3.6-37.4,10%20c-22.3,12.9-37.4,37.2-37.4,64.9v187.3l33.6,33.7l3.8,3.8V228.5c0-20.7,16.7-37.5,37.4-37.5S303.4,207.9,303.4,228.5z'/%3e%3cpath%20d='M266,78.7c-27.2,0-52.7,7.3-74.7,20.1c-14.1,8.1-26.7,18.5-37.4,30.7c-23.2,26.4-37.4,61.1-37.4,99.1v112.4l37.4,37.5V228.5%20c0-33.3,14.4-63.2,37.4-83.8c10.8-9.7,23.4-17.3,37.4-22.2c11.7-4.2,24.3-6.4,37.4-6.4c61.9,0,112.1,50.3,112.1,112.4%20S327.9,340.9,266,340.9v37.5c82.5,0,149.4-67.1,149.4-149.8S348.5,78.7,266,78.7z'/%3e%3c/svg%3e",E7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2032%2036.9'%20style='enable-background:new%200%200%2032%2036.9;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:url(%23SVGID_1_);}%20.st1{fill:url(%23SVGID_2_);}%20.st2{fill:url(%23SVGID_3_);}%20.st3{fill:url(%23SVGID_4_);}%20%3c/style%3e%3clinearGradient%20id='SVGID_1_'%20gradientUnits='userSpaceOnUse'%20x1='32.95'%20y1='26.3048'%20x2='-0.9788'%20y2='12.7367'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st0'%20d='M30.3,13.9v12.9L16,35L1.7,26.7V10.2L16,1.9l11,6.4l1.7-1L16,0L0,9.2v18.5l16,9.2l16-9.2V12.9L30.3,13.9z'/%3e%3clinearGradient%20id='SVGID_2_'%20gradientUnits='userSpaceOnUse'%20x1='32.2949'%20y1='27.9428'%20x2='-1.6339'%20y2='14.3747'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st1'%20d='M12,26.8H9.6v-8h8c0.8,0,1.5-0.3,2-0.9c0.5-0.5,0.8-1.3,0.8-2c0-0.4-0.1-0.7-0.2-1.1c-0.1-0.3-0.4-0.7-0.6-0.9%20c-0.3-0.3-0.6-0.5-0.9-0.6S18,13,17.6,13h-8v-2.4h8c1.4,0,2.7,0.6,3.7,1.6c1,1,1.6,2.3,1.6,3.7c0,1.1-0.3,2.1-0.9,3%20c-0.6,0.8-1.4,1.5-2.3,1.9c-0.9,0.3-1.9,0.4-2.9,0.4H12V26.8z'/%3e%3clinearGradient%20id='SVGID_3_'%20gradientUnits='userSpaceOnUse'%20x1='35.6876'%20y1='19.4591'%20x2='1.7588'%20y2='5.891'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st2'%20d='M22.8,26.6H20l-2.2-3.8c0.9-0.1,1.7-0.2,2.5-0.5L22.8,26.6z'/%3e%3clinearGradient%20id='SVGID_4_'%20gradientUnits='userSpaceOnUse'%20x1='32.0678'%20y1='28.5037'%20x2='-1.861'%20y2='14.9356'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st3'%20d='M28.7,11.2l1.7,0.9l1.7-0.9V9.2l-1.7-1l-1.7,1V11.2z'/%3e%3c/svg%3e",T7="/assets/uni-C5oaqT41.svg",N7="data:image/svg+xml,%3csvg%20width='96'%20height='96'%20viewBox='0%200%2096%2096'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M48%2095C73.9574%2095%2095%2073.9574%2095%2048C95%2022.0426%2073.9574%201%2048%201C22.0426%201%201%2022.0426%201%2048C1%2073.9574%2022.0426%2095%2048%2095Z'%20fill='%230B53BF'/%3e%3cpath%20d='M56.4609%2013.7778V19.8291C68.5341%2023.4716%2077.3759%2034.6928%2077.3759%2047.9997C77.3759%2061.3066%2068.5341%2072.5278%2056.4609%2076.1703V82.2216C71.8534%2078.4616%2083.2509%2064.5672%2083.2509%2047.9997C83.2509%2031.4322%2071.8534%2017.5378%2056.4609%2013.7778Z'%20fill='white'/%3e%3cpath%20d='M18.625%2047.9997C18.625%2034.6928%2027.4669%2023.4716%2039.54%2019.8291V13.7778C24.1475%2017.5378%2012.75%2031.4322%2012.75%2047.9997C12.75%2064.5672%2024.1475%2078.4616%2039.54%2082.2216V76.1703C27.4669%2072.5572%2018.625%2061.3066%2018.625%2047.9997Z'%20fill='white'/%3e%3cpath%20d='M60.6319%2054.5506C60.6319%2042.5362%2041.8025%2047.4713%2041.8025%2040.8325C41.8025%2038.4531%2043.7119%2036.9256%2047.3544%2036.9256C51.7019%2036.9256%2053.2%2039.0406%2053.67%2041.89H59.6625C59.1279%2036.5426%2056.0588%2033.1662%2050.9382%2032.1604V27.4375H45.0632V31.9918C39.4534%2032.7062%2035.9275%2035.973%2035.9275%2040.8325C35.9275%2052.9056%2054.7863%2048.3819%2054.7863%2054.9031C54.7863%2057.3706%2052.4069%2059.0156%2048.3825%2059.0156C43.1244%2059.0156%2041.3913%2056.695%2040.745%2053.4931H34.8994C35.2781%2059.3502%2038.8897%2063.0159%2045.0632%2063.9307V68.5625H50.9382V63.9923C56.9633%2063.2139%2060.6319%2059.7089%2060.6319%2054.5506Z'%20fill='white'/%3e%3c/svg%3e",R7="data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20339.43%20295.27'%3e%3ctitle%3etether-usdt-logo%3c/title%3e%3cpath%20d='M62.15,1.45l-61.89,130a2.52,2.52,0,0,0,.54,2.94L167.95,294.56a2.55,2.55,0,0,0,3.53,0L338.63,134.4a2.52,2.52,0,0,0,.54-2.94l-61.89-130A2.5,2.5,0,0,0,275,0H64.45a2.5,2.5,0,0,0-2.3,1.45h0Z'%20style='fill:%2350af95;fill-rule:evenodd'/%3e%3cpath%20d='M191.19,144.8v0c-1.2.09-7.4,0.46-21.23,0.46-11,0-18.81-.33-21.55-0.46v0c-42.51-1.87-74.24-9.27-74.24-18.13s31.73-16.25,74.24-18.15v28.91c2.78,0.2,10.74.67,21.74,0.67,13.2,0,19.81-.55,21-0.66v-28.9c42.42,1.89,74.08,9.29,74.08,18.13s-31.65,16.24-74.08,18.12h0Zm0-39.25V79.68h59.2V40.23H89.21V79.68H148.4v25.86c-48.11,2.21-84.29,11.74-84.29,23.16s36.18,20.94,84.29,23.16v82.9h42.78V151.83c48-2.21,84.12-11.73,84.12-23.14s-36.09-20.93-84.12-23.15h0Zm0,0h0Z'%20style='fill:%23fff;fill-rule:evenodd'/%3e%3c/svg%3e",A7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20696.8%20697.9'%20style='enable-background:new%200%200%20696.8%20697.9;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:url(%23SVGID_1_);}%20.st1{fill:url(%23SVGID_2_);}%20.st2{fill:url(%23SVGID_3_);}%20.st3{fill:url(%23SVGID_4_);}%20%3c/style%3e%3clinearGradient%20id='SVGID_1_'%20gradientUnits='userSpaceOnUse'%20x1='716.2648'%20y1='102.511'%20x2='-52.0246'%20y2='621.5151'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st0'%20d='M348.4,697.9c-92.3-0.1-180.9-36.8-246.2-102.2C36.9,530.3,0.1,441.5,0,349c0.1-92.6,36.9-181.3,102.2-246.7%20C167.5,36.9,256.1,0.1,348.4,0c92.3,0.1,180.9,36.9,246.2,102.3c65.3,65.4,102.1,154.1,102.2,246.7%20c-0.1,92.6-36.9,181.3-102.2,246.7S440.7,697.9,348.4,697.9z%20M348.4,26.9c-85.2,0.1-166.9,34-227.2,94.4%20C60.9,181.6,26.9,263.5,26.8,349c0.1,85.4,34,167.4,94.3,227.8c60.3,60.4,142,94.3,227.3,94.3c85.2,0,167-33.9,227.3-94.3%20C636,516.3,669.9,434.4,670,349c-0.1-85.4-34.1-167.3-94.3-227.7C515.3,60.9,433.6,26.9,348.4,26.9L348.4,26.9z'/%3e%3clinearGradient%20id='SVGID_2_'%20gradientUnits='userSpaceOnUse'%20x1='697.22'%20y1='140.5214'%20x2='60.6977'%20y2='570.4864'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st1'%20d='M392.4,642.7c-76.5-0.1-149.8-30.5-203.9-84.7c-54.1-54.2-84.6-127.7-84.7-204.4%20c0.1-76.7,30.6-150.2,84.7-204.4C242.6,95,315.9,64.5,392.4,64.5c76.5,0.1,149.8,30.5,203.9,84.7c54.1,54.2,84.6,127.7,84.7,204.4%20c-0.1,76.7-30.6,150.2-84.7,204.4C542.3,612.2,468.9,642.7,392.4,642.7z%20M392.4,85.3c-71,0.1-139,28.3-189.2,78.6%20s-78.4,118.5-78.6,189.6c0.1,71.1,28.4,139.3,78.6,189.6c50.2,50.3,118.2,78.5,189.2,78.6c71-0.1,139-28.3,189.2-78.6%20c50.2-50.3,78.5-118.5,78.6-189.6c-0.1-71.1-28.4-139.3-78.6-189.6C531.4,113.7,463.4,85.4,392.4,85.3L392.4,85.3z'/%3e%3clinearGradient%20id='SVGID_3_'%20gradientUnits='userSpaceOnUse'%20x1='678.1428'%20y1='178.4569'%20x2='173.4188'%20y2='519.3949'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st2'%20d='M436.5,587.5c-60.7,0-118.8-24.2-161.7-67.2c-42.9-43-67.1-101.3-67.1-162.1c0.1-60.8,24.2-119.1,67.1-162.1%20s101.1-67.1,161.7-67.2c60.7,0,118.8,24.2,161.7,67.2c42.9,43,67,101.3,67.1,162.1c-0.1,60.8-24.2,119.1-67.1,162.1%20C555.3,563.3,497.1,587.5,436.5,587.5L436.5,587.5z%20M436.5,144c-56.7,0-111.1,22.6-151.2,62.8c-40.1,40.2-62.7,94.7-62.8,151.5%20c0.1,56.8,22.7,111.3,62.8,151.5s94.5,62.8,151.2,62.8c56.7,0,111.1-22.6,151.2-62.8c40.1-40.2,62.7-94.7,62.8-151.5%20c-0.1-56.9-22.7-111.4-62.8-151.5C547.5,166.6,493.2,144,436.5,144L436.5,144z'/%3e%3clinearGradient%20id='SVGID_4_'%20gradientUnits='userSpaceOnUse'%20x1='659.0872'%20y1='216.4527'%20x2='286.1323'%20y2='468.3527'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st3'%20d='M480.5,532.3c-44.8,0-87.8-17.9-119.5-49.6c-31.7-31.8-49.5-74.8-49.6-119.7c0.1-44.9,17.9-88,49.6-119.8%20c31.7-31.8,74.7-49.6,119.5-49.7c44.8,0,87.8,17.9,119.5,49.7c31.7,31.8,49.5,74.8,49.6,119.8c-0.1,44.9-17.9,88-49.6,119.7%20C568.3,514.4,525.3,532.3,480.5,532.3L480.5,532.3z%20M480.5,202.5c-42.5,0-83.2,17-113.2,47c-30,30.1-46.9,70.9-47,113.4%20c0.1,42.6,17,83.3,47,113.4c30,30.1,70.7,47,113.2,47c42.4,0,83.1-16.9,113.2-47c30-30.1,46.9-70.9,47-113.4%20c-0.1-42.6-17-83.4-47-113.4C563.7,219.4,523,202.5,480.5,202.5z'/%3e%3c/svg%3e",M7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20style='enable-background:new%200%200%20600%20600;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EFBFA8;}%20%3c/style%3e%3cpath%20class='st0'%20d='M300,0C134.3,0,0,134.3,0,300s134.3,300,300,300s300-134.3,300-300S465.7,0,300,0z%20M449,347%20c-13-29-61-93-131-86c-73,8-156,49-180,109c-37-29-5-79,17-102c-5-22,9-70,17-90c3-17,17-29,24-32c-1-12,20-18,30-20l1-2%20c3-9,6-20,32-28c22-8,42,12,50,23c2-6,10-15,18-8c72,11,96,90,100,127c14,10,43,36,50,60c7,29-1,35-11,43l-2,2%20C459,349,453,349,449,347z%20M435,378c-15.7,65.8-68.5,116.3-135,129c-42,0-109-66-128-97c-39-3-30-23-21-32l-5-2c18-42,69-92,169-104%20c55-7,97,32,122,72C438,357,437,371,435,378z%20M216,328c6,15,24,39,50,11C264,331,250,317,216,328z%20M256,470c-4-6,20-9,32-10l16-4%20c3-13-3-14-6-13c-24,2-22-26-16-35c7-8,22-5,27-4c5,2,13,0,16-1c15-1,14,17,11,26c-1,12-18,16-26,16c-1,9,1,13,3,13l34,8%20c13,5,6,6,0,7c-17-11-29-7-37-5l-6,2c-14-5-29-4-35-2C266,471,259,475,256,470z%20M345,344c1-12,13-32,48-14C388,342,371,361,345,344z%20'/%3e%3c/svg%3e",wt={BTC:f7,ETH:d7,SOL:h7,TRX:m7,BNB:p7,ARB:v7,BONK:g7,BUSD:y7,DAI:_7,DOGE:b7,JUP:x7,LINK:S7,ORCA:C7,POPCAT:w7,PYTH:j7,RAY:E7,UNI:T7,USDC:N7,USDT:R7,W:A7,WIF:M7};function sm(l){return wt[l.toUpperCase()]}function t2(l,s=8){const i=typeof l=="number"?l.toString():l,r=i.indexOf(".");return r===-1?i:i.slice(0,r+1+s)}const z7=[{ticker:"BTC",name:"Bitcoin",logo:wt.BTC,color:"#F7931A",price:"$66,916.00",change:.12,bal:"0.003295",usd:"$220.57",fav:!0},{ticker:"ETH",name:"Ethereum",logo:wt.ETH,color:"#627EEA",price:"$2,053.97",change:-.12,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"SOL",name:"Solana",logo:wt.SOL,color:"#9945FF",price:"$163.84",change:-1.57,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"TRX",name:"Tron",logo:wt.TRX,color:"#FF060A",price:"$0.1197",change:1.33,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"BNB",name:"BNB",logo:wt.BNB,color:"#F3BA2F",price:"$0.00",change:0,bal:"0.00000",usd:"$0.00",fav:!1}],D7={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BNB"},O7={BTC:"Bitcoin",ETH:"Ethereum",SOL:"Solana",TRX:"Tron",BSC:"BNB"},cm="#2A2D3A";function rm(l){return l==null?"$—":`$${l.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function om(l){return l==null?"$—":l>=1?`$${l.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${l.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function um(l){return z7.find(s=>s.ticker===l)}function L7(l){const{data:s,isLoading:i}=Qr(l);if(!s)return{rows:[],isLoading:i};const r=D7[l],f=um(r),h={ticker:r,name:O7[l],logo:sm(r)??(f==null?void 0:f.logo),color:(f==null?void 0:f.color)??cm,price:om(s.native.usdPrice),change:0,bal:t2(s.native.formatted),usd:rm(s.native.usdValue),fav:!1},m=Object.entries(s.tokens??{}).map(([p,g])=>{const v=um(p);return{ticker:p,name:(v==null?void 0:v.name)??p,logo:sm(p)??(v==null?void 0:v.logo),color:(v==null?void 0:v.color)??cm,price:om(g.usdPrice),change:0,bal:t2(g.formatted),usd:rm(g.usdValue),fav:!1}});return{rows:[h,...m],isLoading:i}}const B7={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"]},U7={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}},fm={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BSC"},k7="_overlay_1hejd_1",H7="_dialog_1hejd_14",q7="_dialogIn_1hejd_1",G7="_header_1hejd_37",$7="_title_1hejd_44",V7="_close_1hejd_50",Q7="_selectsRow_1hejd_72",F7="_selectGroup_1hejd_79",Y7="_selectLabel_1hejd_83",X7="_selectTrigger_1hejd_93",Z7="_selectTriggerOpen_1hejd_112",K7="_selectValue_1hejd_117",J7="_chevron_1hejd_125",W7="_chevronOpen_1hejd_131",I7="_tokenDot_1hejd_137",P7="_speedDot_1hejd_158",eb="_speedDot_slow_1hejd_165",tb="_speedDot_normal_1hejd_170",nb="_speedDot_fast_1hejd_175",ab="_dropdown_1hejd_182",lb="_dropdownItem_1hejd_195",ib="_dropdownItemActive_1hejd_215",sb="_dropdownTicker_1hejd_220",cb="_dropdownName_1hejd_225",rb="_field_1hejd_233",ob="_fieldLabel_1hejd_237",ub="_input_1hejd_247",fb="_amountWrap_1hejd_283",db="_amountInput_1hejd_287",hb="_amountTicker_1hejd_291",mb="_maxHint_1hejd_304",pb="_maxBtn_1hejd_314",vb="_errorMsg_1hejd_333",gb="_submitBtn_1hejd_346",ae={overlay:k7,dialog:H7,dialogIn:q7,header:G7,title:$7,close:V7,selectsRow:Q7,selectGroup:F7,selectLabel:Y7,selectTrigger:X7,selectTriggerOpen:Z7,selectValue:K7,chevron:J7,chevronOpen:W7,tokenDot:I7,speedDot:P7,speedDot_slow:eb,speedDot_normal:tb,speedDot_fast:nb,dropdown:ab,dropdownItem:lb,dropdownItemActive:ib,dropdownTicker:sb,dropdownName:cb,field:rb,fieldLabel:ob,input:ub,amountWrap:fb,amountInput:db,amountTicker:hb,maxHint:mb,maxBtn:pb,errorMsg:vb,submitBtn:gb},dm=[{value:"slow",label:"Медленно"},{value:"normal",label:"Нормально"},{value:"fast",label:"Быстро"}];function yb(l){var s;if(l instanceof Error)return l.message;if(l&&typeof l=="object"){const i=l;if(typeof i.message=="string")return i.message;if(typeof i.error=="string")return i.error;if(Array.isArray(i.detail)&&((s=i.detail[0])!=null&&s.msg))return String(i.detail[0].msg)}return"Что-то пошло не так. Попробуйте ещё раз."}function _b({open:l,onClose:s,network:i,tokens:r=[],initialToken:f=""}){var Te;const h=U7[i],m=B7[i],[p,g]=x.useState(f),[v,b]=x.useState("normal"),[_,w]=x.useState(""),[R,A]=x.useState(""),[D,E]=x.useState(null),L=e7(),Q=((Te=dm.find(se=>se.value===v))==null?void 0:Te.label)??"Нормально",$=p===""?h.nativeSymbol:p,V=r.find(se=>se.ticker===(p===""?h.nativeSymbol:p));if(x.useEffect(()=>{g(f)},[f]),x.useEffect(()=>{g("")},[i]),x.useEffect(()=>{L.isSuccess&&s()},[L.isSuccess,s]),x.useEffect(()=>{if(!l){w(""),A(""),E(null),L.reset();return}const se=Oe=>{Oe.key==="Escape"&&s()};return document.addEventListener("keydown",se),()=>document.removeEventListener("keydown",se)},[l,s]),!l)return null;const Z=h.hasToken,ee=h.hasFeeTier,K=Z||ee,I=Z&&ee?2:1;function ce(){D?E(null):s()}function ue(se,Oe){const[Ee,U=""]=se.split("."),F=U.slice(0,Oe).padEnd(Oe,"0");return(BigInt(Ee||"0")*10n**BigInt(Oe)+BigInt(F||"0")).toString()}function ve(){const Oe=p===""?ue(R,h.nativeDecimals):R;L.mutate({chain:i,to:_,amount:Oe,...p?{token:p}:{},...h.hasFeeTier?{feeTier:v}:{}})}return u.jsx("div",{className:ae.overlay,onClick:ce,children:u.jsxs("div",{className:ae.dialog,onClick:se=>se.stopPropagation(),children:[u.jsxs("div",{className:ae.header,children:[u.jsxs("div",{className:ae.headerLeft,children:[u.jsx("span",{className:ae.chainDot,style:{background:h.color}}),u.jsxs("span",{className:ae.title,children:["Отправить · ",h.label]})]}),u.jsx("button",{className:ae.close,onClick:s,type:"button","aria-label":"Закрыть",children:u.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:u.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),K&&u.jsxs("div",{className:ae.selectsRow,style:{gridTemplateColumns:`repeat(${I}, 1fr)`},children:[Z&&u.jsxs("div",{className:ae.selectGroup,children:[u.jsx("label",{className:ae.selectLabel,children:"Токен"}),u.jsxs("button",{type:"button",className:`${ae.selectTrigger} ${D==="token"?ae.selectTriggerOpen:""}`,onClick:()=>E(se=>se==="token"?null:"token"),children:[u.jsx("span",{className:ae.tokenDot,style:{background:h.color},children:$[0]}),u.jsx("span",{className:ae.selectValue,children:$}),u.jsx("svg",{className:`${ae.chevron} ${D==="token"?ae.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:u.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),D==="token"&&u.jsxs("div",{className:ae.dropdown,children:[u.jsxs("button",{type:"button",className:`${ae.dropdownItem} ${p===""?ae.dropdownItemActive:""}`,onClick:()=>{g(""),E(null)},children:[u.jsx("span",{className:ae.tokenDot,style:{background:h.color},children:h.nativeSymbol[0]}),u.jsx("span",{className:ae.dropdownTicker,children:h.nativeSymbol}),u.jsx("span",{className:ae.dropdownName,children:"Нативный"})]}),m.map(se=>u.jsxs("button",{type:"button",className:`${ae.dropdownItem} ${p===se?ae.dropdownItemActive:""}`,onClick:()=>{g(se),E(null)},children:[u.jsx("span",{className:ae.tokenDot,style:{background:"rgba(255,255,255,0.12)"},children:se[0]}),u.jsx("span",{className:ae.dropdownTicker,children:se})]},se))]})]}),ee&&u.jsxs("div",{className:ae.selectGroup,children:[u.jsx("label",{className:ae.selectLabel,children:"Скорость"}),u.jsxs("button",{type:"button",className:`${ae.selectTrigger} ${D==="speed"?ae.selectTriggerOpen:""}`,onClick:()=>E(se=>se==="speed"?null:"speed"),children:[u.jsx("span",{className:`${ae.speedDot} ${ae[`speedDot_${v}`]}`}),u.jsx("span",{className:ae.selectValue,children:Q}),u.jsx("svg",{className:`${ae.chevron} ${D==="speed"?ae.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:u.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),D==="speed"&&u.jsx("div",{className:ae.dropdown,children:dm.map(se=>u.jsxs("button",{type:"button",className:`${ae.dropdownItem} ${se.value===v?ae.dropdownItemActive:""}`,onClick:()=>{b(se.value),E(null)},children:[u.jsx("span",{className:`${ae.speedDot} ${ae[`speedDot_${se.value}`]}`}),u.jsx("span",{children:se.label})]},se.value))})]})]}),u.jsxs("div",{className:ae.field,children:[u.jsx("label",{className:ae.fieldLabel,children:"Адрес кошелька"}),u.jsx("input",{className:ae.input,type:"text",placeholder:h.addressPlaceholder,value:_,onChange:se=>w(se.target.value),autoComplete:"off",spellCheck:!1})]}),u.jsxs("div",{className:ae.field,children:[u.jsx("label",{className:ae.fieldLabel,children:"Количество"}),u.jsxs("div",{className:ae.amountWrap,children:[u.jsx("input",{className:`${ae.input} ${ae.amountInput}`,type:"number",placeholder:"0.00",value:R,onChange:se=>A(se.target.value),min:"0",step:"any"}),u.jsx("span",{className:ae.amountTicker,children:$})]}),V&&u.jsxs("div",{className:ae.maxHint,children:["Макс:"," ",u.jsxs("button",{type:"button",className:ae.maxBtn,onClick:()=>A(V.bal),children:[V.bal," ",$]})]})]}),L.isError&&u.jsx("div",{className:ae.errorMsg,children:yb(L.error)}),u.jsx("button",{className:ae.submitBtn,type:"button",disabled:L.isPending,onClick:ve,children:L.isPending?"Отправка…":"Отправить"})]})})}const bb="_overlay_qs9u3_6",xb="_dialog_qs9u3_18",Sb="_header_qs9u3_27",Cb="_title_qs9u3_34",wb="_closeBtn_qs9u3_40",jb="_body_qs9u3_55",Eb="_label_qs9u3_62",Tb="_fieldRow_qs9u3_68",Nb="_addressInput_qs9u3_73",Rb="_copyBtn_qs9u3_92",Ab="_copyBtnDone_qs9u3_118",Mb="_skeleton_qs9u3_123",zb="_error_qs9u3_136",en={overlay:bb,dialog:xb,header:Sb,title:Cb,closeBtn:wb,body:jb,label:Eb,fieldRow:Tb,addressInput:Nb,copyBtn:Rb,copyBtnDone:Ab,skeleton:Mb,error:zb},Db={ETH:"Ethereum",BSC:"BSC Smart Chain",BTC:"Bitcoin",TRX:"Tron",SOL:"Solana"};function Ob({open:l,onClose:s,chain:i}){const{data:r,isLoading:f,isError:h}=w2(),[m,p]=x.useState(!1);if(x.useEffect(()=>{if(!l)return;function w(R){R.key==="Escape"&&s()}return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[l,s]),x.useEffect(()=>{l||p(!1)},[l]),!l)return null;const g=r==null?void 0:r.find(w=>w.chain===i),v=(g==null?void 0:g.address)??"";function b(){v&&navigator.clipboard.writeText(v).then(()=>{p(!0),setTimeout(()=>p(!1),2e3)})}function _(w){w.target===w.currentTarget&&s()}return u.jsx("div",{className:en.overlay,onMouseDown:_,children:u.jsxs("div",{className:en.dialog,children:[u.jsxs("div",{className:en.header,children:[u.jsxs("span",{className:en.title,children:["Получить ",Db[i]]}),u.jsx("button",{className:en.closeBtn,type:"button",onClick:s,"aria-label":"Закрыть",children:"✕"})]}),u.jsxs("div",{className:en.body,children:[f&&u.jsx("div",{className:en.skeleton}),h&&u.jsx("p",{className:en.error,children:"Не удалось загрузить адрес. Попробуйте позже."}),!f&&!h&&u.jsxs(u.Fragment,{children:[u.jsxs("label",{className:en.label,children:["Ваш ",i,"-адрес"]}),u.jsxs("div",{className:en.fieldRow,children:[u.jsx("input",{className:en.addressInput,type:"text",readOnly:!0,value:v,onFocus:w=>w.target.select()}),u.jsx("button",{className:`${en.copyBtn} ${m?en.copyBtnDone:""}`,type:"button",onClick:b,disabled:!v,children:m?"Скопировано!":"Копировать"})]})]})]})]})})}const Lb="_wrap_2q74k_1",Bb="_loading_2q74k_9",Ub="_table_2q74k_14",kb="_thStar_2q74k_44",Hb="_right_2q74k_48",qb="_center_2q74k_52",Gb="_btnGroup_2q74k_57",$b="_star_2q74k_63",Vb="_starOn_2q74k_78",Qb="_tokId_2q74k_82",Fb="_tokLogo_2q74k_88",Yb="_price_2q74k_123",Xb="_balCol_2q74k_150",Zb="_sendBtn_2q74k_163",Kb="_receiveBtn_2q74k_186",Jb="_noFont_2q74k_209",Wb="_mobileList_2q74k_214",Ib="_card_2q74k_218",Pb="_cardInfo_2q74k_230",e9="_cardTop_2q74k_235",t9="_cardTicker_2q74k_242",n9="_cardName_2q74k_248",a9="_cardBalCrypto_2q74k_254",l9="_cardBot_2q74k_261",i9="_cardPrice_2q74k_267",s9="_cardBalUsd_2q74k_279",c9="_mobileActions_2q74k_300",ge={wrap:Lb,loading:Bb,table:Ub,thStar:kb,right:Hb,center:qb,btnGroup:Gb,star:$b,starOn:Vb,tokId:Qb,tokLogo:Fb,price:Yb,balCol:Xb,sendBtn:Zb,receiveBtn:Kb,noFont:Jb,mobileList:Wb,card:Ib,cardInfo:Pb,cardTop:e9,cardTicker:t9,cardName:n9,cardBalCrypto:a9,cardBot:l9,cardPrice:i9,cardBalUsd:s9,mobileActions:c9};function r9({chain:l}){const{rows:s,isLoading:i}=L7(l),[r,f]=x.useState({}),[h,m]=x.useState({open:!1,network:"ETH"}),[p,g]=x.useState({open:!1,chain:"ETH"});function v(E){const L=fm[E]??l;m({open:!0,network:L})}function b(){m(E=>({...E,open:!1}))}function _(E){const L=fm[E]??l;g({open:!0,chain:L})}function w(){g(E=>({...E,open:!1}))}function R(E){f(L=>({...L,[E]:!L[E]}))}const A=u.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4A6DFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"M7 17L17 7M17 7H7M17 7v10"})}),D=u.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#00C48C",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"M17 7L7 17M7 17H17M7 17V7"})});return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:`${ge.wrap} ${i?ge.loading:""}`,children:[u.jsxs("table",{className:ge.table,children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{className:ge.thStar,children:"☆"}),u.jsx("th",{children:"Токены"}),u.jsx("th",{className:ge.right,children:"Цена"}),u.jsx("th",{className:ge.right,children:"Баланс"}),u.jsx("th",{className:ge.center})]})}),u.jsx("tbody",{children:s.map(E=>u.jsxs("tr",{children:[u.jsx("td",{children:u.jsx("button",{className:`${ge.star} ${r[E.ticker]?ge.starOn:""}`,onClick:()=>R(E.ticker),type:"button","aria-label":r[E.ticker]?"Убрать из избранного":"В избранное",children:"★"})}),u.jsx("td",{children:u.jsxs("div",{className:ge.tokId,children:[u.jsx("div",{className:ge.tokLogo,style:{background:E.color},children:E.logo?u.jsx("img",{src:E.logo,alt:E.ticker,className:""}):E.ticker[0]}),u.jsxs("div",{className:ge.balCol,children:[u.jsx("b",{className:ge.cardTicker,children:E.ticker}),u.jsx("span",{className:ge.noFont,children:E.name})]})]})}),u.jsx("td",{className:ge.right,children:u.jsx("span",{className:ge.price,children:E.price})}),u.jsx("td",{className:ge.right,children:u.jsxs("div",{className:ge.balCol,children:[u.jsx("b",{children:E.bal}),u.jsx("span",{children:E.usd})]})}),u.jsx("td",{className:ge.center,children:u.jsxs("div",{className:ge.btnGroup,children:[u.jsxs("button",{className:ge.receiveBtn,type:"button",onClick:L=>{L.stopPropagation(),_(E.ticker)},children:[D,"Получить"]}),u.jsxs("button",{className:ge.sendBtn,type:"button",onClick:L=>{L.stopPropagation(),v(E.ticker)},children:[A,"Отправить"]})]})})]},E.ticker))})]}),u.jsx("div",{className:ge.mobileList,children:s.map(E=>u.jsxs("div",{className:ge.card,children:[u.jsx("button",{className:`${ge.star} ${r[E.ticker]?ge.starOn:""}`,onClick:()=>R(E.ticker),type:"button","aria-label":r[E.ticker]?"Убрать из избранного":"В избранное",children:"★"}),u.jsx("div",{className:ge.tokLogo,style:{background:E.color},children:E.logo?u.jsx("img",{src:E.logo,alt:E.ticker,className:""}):E.ticker[0]}),u.jsxs("div",{className:ge.cardInfo,children:[u.jsxs("div",{className:ge.cardTop,children:[u.jsxs("div",{children:[u.jsx("span",{className:ge.cardTicker,children:E.ticker}),u.jsx("span",{className:ge.cardName,children:E.name})]}),u.jsx("span",{className:ge.cardBalCrypto,children:E.bal})]}),u.jsxs("div",{className:ge.cardBot,children:[u.jsx("span",{className:ge.cardPrice,children:E.price}),u.jsx("span",{className:ge.cardBalUsd,children:E.usd})]})]})]},E.ticker))})]}),u.jsxs("div",{className:ge.mobileActions,children:[u.jsxs("button",{className:ge.receiveBtn,type:"button",onClick:()=>{var E;return _(((E=s[0])==null?void 0:E.ticker)??"")},children:[D,"Получить"]}),u.jsxs("button",{className:ge.sendBtn,type:"button",onClick:()=>{var E;return v(((E=s[0])==null?void 0:E.ticker)??"")},children:[A,"Отправить"]})]}),u.jsx(_b,{open:h.open,onClose:b,network:h.network,tokens:s}),u.jsx(Ob,{open:p.open,onClose:w,chain:p.chain})]})}const o9="_nav_ip34n_1",u9="_logo_ip34n_11",f9="_ticker_ip34n_16",d9="_tick_ip34n_16",h9="_accountWrapper_ip34n_42",m9="_account_ip34n_42",p9="_dropdown_ip34n_56",v9="_dropdownItem_ip34n_70",g9="_danger_ip34n_89",y9="_avatar_ip34n_93",yn={nav:o9,logo:u9,ticker:f9,tick:d9,accountWrapper:h9,account:m9,dropdown:p9,dropdownItem:v9,danger:g9,avatar:y9},hm=["BTC","ETH","SOL"],_9=l=>l?l[0].toUpperCase()+l.slice(1).toLowerCase():"";function b9(l){return l==null?"$—":l>=1?`$${l.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${l.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function Ki(){const[l,s]=x.useState(!1),[i,r]=x.useState(!1),f=x.useRef(null),h=Mn(),m=kl(),{data:p}=Xi(),{data:g}=P8(hm),v=p?[p.first_name,p.middle_name].filter(Boolean).map(_9).join(" "):"",{mutate:b}=Vt({mutationFn:i5,onSuccess:()=>{Sn.clear(),m.setQueryData(Ir,null),h(je.HOME)},onError:()=>r(!0)});x.useEffect(()=>{function w(R){f.current&&!f.current.contains(R.target)&&s(!1)}return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);function _(){b(),s(!1)}return u.jsxs(u.Fragment,{children:[u.jsxs("nav",{className:yn.nav,children:[u.jsx("a",{href:"/",className:yn.logo,children:u.jsx("img",{src:Hl,alt:"ЭКСА"})}),u.jsx("div",{className:yn.ticker,children:hm.map(w=>{var R;return u.jsxs("div",{className:yn.tick,children:[u.jsx("b",{children:w}),u.jsx("span",{children:b9((R=g==null?void 0:g[w])==null?void 0:R.usd)})]},w)})}),u.jsxs("div",{className:yn.accountWrapper,ref:f,children:[u.jsxs("button",{className:yn.account,onClick:()=>s(w=>!w),children:[u.jsx("div",{className:yn.avatar}),u.jsx("span",{children:v||"Test account"})]}),l&&u.jsxs("div",{className:yn.dropdown,children:[u.jsx(ya,{to:je.PROFILE,className:yn.dropdownItem,onClick:()=>s(!1),children:"Личный кабинет"}),u.jsx(ya,{to:je.WALLET,className:yn.dropdownItem,onClick:()=>s(!1),children:"Кошелёк"}),u.jsx("button",{className:`${yn.dropdownItem} ${yn.danger}`,onClick:_,children:"Выйти"})]})]})]}),i&&u.jsx(Gy,{status:"error",message:"Произошла ошибка сервера",onClose:()=>r(!1)})]})}const x9="_tabs_1ne0a_1",S9="_tab_1ne0a_1",C9="_active_1ne0a_31",w9="_icon_1ne0a_37",Or={tabs:x9,tab:S9,active:C9,icon:w9},j9=[{chain:"BTC",label:"BTC",icon:wt.BTC},{chain:"ETH",label:"ETH",icon:wt.ETH},{chain:"SOL",label:"SOL",icon:wt.SOL},{chain:"TRX",label:"TRX",icon:wt.TRX},{chain:"BSC",label:"BSC",icon:wt.BNB}];function E9(){return u.jsx("div",{className:Or.tabs,children:j9.map(l=>u.jsxs(h3,{to:`/wallet/${l.chain.toLowerCase()}`,className:({isActive:s})=>`${Or.tab} ${s?Or.active:""}`,children:[u.jsx("img",{src:l.icon,alt:l.label,className:Or.icon}),u.jsx("span",{children:l.label})]},l.chain))})}const T9="_page_10fz2_1",N9="_main_10fz2_8",R9="_glow_10fz2_17",A9="_error_10fz2_29",M9="_noWallet_10fz2_38",Ks={page:T9,main:N9,glow:R9,error:A9,noWallet:M9};function mm(){var _;const{data:l,isLoading:s,isError:i}=Xi(),{error:r}=j2(),{mutate:f,isPending:h}=t7(),m=Mn(),{chain:p}=_g(),g=(_=r==null?void 0:r.error)==null?void 0:_.includes("No wallets");if(s)return null;if(i)return u.jsx("div",{className:Ks.error,children:"Произошла ошибка. Попробуйте обновить страницу."});if(l&&!l.kyc_verified)return u.jsx(nc,{to:je.KYC,replace:!0});const v=p==null?void 0:p.toUpperCase(),b=v&&H8.includes(v)?v:void 0;return!g&&!b?u.jsx(nc,{to:"/wallet/btc",replace:!0}):u.jsxs("div",{className:Ks.page,children:[u.jsx(Ki,{}),u.jsxs("main",{className:Ks.main,children:[u.jsx("div",{className:Ks.glow}),g?u.jsxs("div",{className:Ks.noWallet,children:[u.jsx("p",{children:"У вас пока нет кошелька. Создайте его, чтобы начать."}),u.jsx(xn,{variant:"outline",onClick:()=>f(void 0,{onSuccess:()=>m(je.SEED_PHRASE)}),disabled:h,children:h?"Создание...":"Создать кошелёк"})]}):u.jsxs(u.Fragment,{children:[u.jsx(u7,{}),u.jsx(E9,{}),u.jsx(r9,{chain:b})]})]})]})}const F3=wt.BTC,Y3=wt.ETH,X3=wt.SOL,Z3=wt.TRX,K3=wt.ARB,n2={BTC:{symbol:"BTC",letter:"₿",logo:F3,color:"#F7931A",network:"BITCOIN",balance:0,usdRate:67412,decimals:8},ETH:{symbol:"ETH",letter:"E",logo:Y3,color:"#627EEA",network:"ETHEREUM",balance:0,usdRate:3521,decimals:18},SOL:{symbol:"SOL",letter:"S",logo:X3,color:"#9945FF",network:"SOLANA",balance:.994,usdRate:163.84,decimals:9},TRX:{symbol:"TRX",letter:"T",logo:Z3,color:"#FF060A",network:"TRON",balance:0,usdRate:.12,decimals:6},ARB:{symbol:"ARB",letter:"A",logo:K3,color:"#4A6DFF",network:"ARBITRUM",balance:0,usdRate:.92,decimals:18},USDC:{symbol:"USDC",letter:"$",color:"#2775CA",network:"SOLANA",balance:0,usdRate:1,decimals:6},USDT:{symbol:"USDT",letter:"$",color:"#26A17B",network:"ETHEREUM",balance:0,usdRate:1,decimals:6}},a2=Object.values(n2),pm={BTC:{letter:"₿",logo:F3,color:"#F7931A"},ETH:{letter:"E",logo:Y3,color:"#627EEA"},BSC:{letter:"B",color:"#F3BA2F"},SOL:{letter:"S",logo:X3,color:"#9945FF"},TRX:{letter:"T",logo:Z3,color:"#FF060A"},ARB:{letter:"A",logo:K3,color:"#4A6DFF"},USDC:{letter:"$",color:"#2775CA"},USDT:{letter:"$",color:"#26A17B"},DAI:{letter:"D",color:"#F5AC37"},BUSD:{letter:"B",color:"#F0B90B"},WBTC:{letter:"W",color:"#F7931A"},LINK:{letter:"L",color:"#2A5ADA"},UNI:{letter:"U",color:"#FF007A"},WBNB:{letter:"W",color:"#F3BA2F"},DOGE:{letter:"D",color:"#C2A633"},JUP:{letter:"J",color:"#C7A52D"},WIF:{letter:"W",color:"#9333EA"},BONK:{letter:"B",color:"#FF8C00"},RAY:{letter:"R",color:"#5AC4BE"},ORCA:{letter:"O",color:"#1B8EF2"},PYTH:{letter:"P",color:"#8B5CF6"},JTO:{letter:"J",color:"#06B6D4"},W:{letter:"W",color:"#6B7280"},PUMP:{letter:"P",color:"#00D4AA"},POPCAT:{letter:"P",color:"#FF6B6B"},TRUMP:{letter:"T",color:"#E63946"},PENGU:{letter:"P",color:"#60A5FA"}},z9={ETH:"ETH",BSC:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function l2(l){const s=[],i=z9[l.chain]??l.chain,r=pm[i];s.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:l.chain,balance:parseFloat(l.native.formatted),usdRate:l.native.usdPrice,decimals:l.native.decimals});for(const[f,h]of Object.entries(l.tokens)){const m=pm[f];s.push({symbol:f,letter:(m==null?void 0:m.letter)??f[0],color:(m==null?void 0:m.color)??"#888",logo:m==null?void 0:m.logo,network:l.chain,balance:parseFloat(h.formatted),usdRate:h.usdPrice,decimals:h.decimals})}return s}const vm=82.2578;function J3(){const[l,s]=x.useState("0.25"),[i,r]=x.useState(n2.SOL),[f,h]=x.useState(n2.USDC),[m,p]=x.useState(!1),g=parseFloat(l)||0,v=(g*vm).toFixed(4),b=(g*i.usdRate).toFixed(2),_=(g*vm*f.usdRate).toFixed(2);function w(E){s(E)}function R(E){s((i.balance*E/100).toFixed(4))}function A(){r(f),h(i)}function D(){p(!0),setTimeout(()=>p(!1),400)}return{fromAmount:l,toAmount:v,fromUsd:b,toUsd:_,fromToken:i,toToken:f,isRefreshing:m,setFromAmount:w,setPercent:R,swapTokens:A,refreshRate:D,setFromToken:r,setToToken:h}}const D9="_wrap_18yiu_1",O9="_trigger_18yiu_6",L9="_name_18yiu_22",B9="_chevron_18yiu_29",U9="_chevronOpen_18yiu_37",k9="_dropdown_18yiu_41",H9="_dropdownWrapper_18yiu_47",q9="_option_18yiu_60",G9="_optionActive_18yiu_78",$9="_optionInfo_18yiu_82",V9="_optionSymbol_18yiu_90",Q9="_optionNetwork_18yiu_96",F9="_check_18yiu_103",Y9="_triggerCompact_18yiu_110",X9="_nameCompact_18yiu_116",Tt={wrap:D9,trigger:O9,name:L9,chevron:B9,chevronOpen:U9,dropdown:k9,dropdownWrapper:H9,option:q9,optionActive:G9,optionInfo:$9,optionSymbol:V9,optionNetwork:Q9,check:F9,triggerCompact:Y9,nameCompact:X9};function gm({value:l,options:s,onChange:i,compact:r=!1}){const[f,h]=x.useState(!1),m=x.useRef(null);x.useEffect(()=>{function g(v){m.current&&!m.current.contains(v.target)&&h(!1)}return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);function p(g){i(g),h(!1)}return u.jsxs("div",{className:Tt.wrap,ref:m,children:[u.jsxs("button",{className:`${Tt.trigger} ${r?Tt.triggerCompact:""}`,onClick:()=>h(g=>!g),children:[u.jsx(Fh,{letter:l.letter,color:l.color,logo:l.logo,size:r?24:40}),u.jsx("span",{className:`${Tt.name} ${r?Tt.nameCompact:""}`,children:l.symbol}),u.jsx("span",{className:`${Tt.chevron} ${f?Tt.chevronOpen:""}`,children:"▾"})]}),f&&u.jsx("div",{className:Tt.dropdownWrapper,children:u.jsx("div",{className:Tt.dropdown,children:s.map(g=>u.jsxs("button",{className:`${Tt.option} ${g.symbol===l.symbol?Tt.optionActive:""}`,onClick:()=>p(g),children:[u.jsx(Fh,{letter:g.letter,color:g.color,logo:g.logo,size:32}),u.jsxs("div",{className:Tt.optionInfo,children:[u.jsx("span",{className:Tt.optionSymbol,children:g.symbol}),u.jsx("span",{className:Tt.optionNetwork,children:g.network})]}),g.symbol===l.symbol&&u.jsx("span",{className:Tt.check,children:"✓"})]},g.symbol))})})]})}const Z9="_wrapper_4p7zv_1",K9="_pillsOuter_4p7zv_8",J9="_card_4p7zv_13",W9="_top_4p7zv_20",I9="_label_4p7zv_33",P9="_networkPills_4p7zv_54",ex="_networkBtn_4p7zv_60",tx="_networkBtnActive_4p7zv_79",nx="_pillsInner_4p7zv_85",ax="_pill_4p7zv_8",lx="_selectTop_4p7zv_109",ix="_selectMid_4p7zv_113",sx="_mid_4p7zv_118",cx="_input_4p7zv_126",rx="_display_4p7zv_142",ox="_int_4p7zv_148",ux="_dec_4p7zv_153",fx="_bottom_4p7zv_158",dx="_usd_4p7zv_164",hx="_balance_4p7zv_173",mx="_max_4p7zv_181",nt={wrapper:Z9,pillsOuter:K9,card:J9,top:W9,label:I9,networkPills:P9,networkBtn:ex,networkBtnActive:tx,pillsInner:nx,pill:ax,selectTop:lx,selectMid:ix,mid:sx,input:cx,display:rx,int:ox,dec:ux,bottom:fx,usd:dx,balance:hx,max:mx},px=["ETH","BSC","TRX","SOL"],vx=[25,50,100];function Fr({mode:l,token:s,tokenOptions:i,amount:r,usd:f,onTokenChange:h,onAmountChange:m,onSetPercent:p,selectedNetwork:g,onNetworkChange:v,hideNetworkSelect:b}){const[_,w]=r.split("."),R=p&&u.jsx(u.Fragment,{children:vx.map(A=>u.jsxs("button",{className:nt.pill,onClick:()=>p(A),children:[A,"%"]},A))});return u.jsxs("div",{className:nt.wrapper,children:[l==="from"&&R&&u.jsx("div",{className:nt.pillsOuter,children:R}),u.jsxs("div",{className:nt.card,children:[u.jsxs("div",{className:nt.top,children:[u.jsx("div",{className:nt.label,children:l==="from"&&!b&&u.jsx("div",{className:nt.networkPills,children:px.map(A=>u.jsx("button",{className:`${nt.networkBtn} ${A===g?nt.networkBtnActive:""}`,onClick:()=>v==null?void 0:v(A),children:A},A))})}),l==="from"&&R&&u.jsx("div",{className:nt.pillsInner,children:R}),u.jsx("div",{className:nt.selectTop,children:u.jsx(gm,{value:s,options:i,onChange:h,compact:!0})})]}),u.jsxs("div",{className:nt.mid,children:[l==="from"?u.jsx("input",{className:nt.input,type:"text",value:r,onChange:A=>m==null?void 0:m(A.target.value),placeholder:"0"}):u.jsxs("div",{className:nt.display,children:[u.jsx("span",{className:nt.int,children:_}),w&&u.jsxs("span",{className:nt.dec,children:[".",w]})]}),u.jsx("div",{className:nt.selectMid,children:u.jsx(gm,{value:s,options:i,onChange:h})})]}),u.jsxs("div",{className:nt.bottom,children:[f&&u.jsxs("span",{className:nt.usd,children:["≈ $",f]}),u.jsxs("span",{className:nt.balance,children:[u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-secondary)",strokeWidth:"2",children:[u.jsx("rect",{x:"2",y:"6",width:"20",height:"14",rx:"3"}),u.jsx("path",{d:"M6 6V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2"})]}),t2(s.balance,8),l==="from"&&p&&u.jsx("button",{className:nt.max,onClick:()=>p(100),children:"МАКС"})]})]})]})]})}const gx="_wrap_wqzoz_1",yx="_line_wqzoz_11",_x="_circle_wqzoz_19",N0={wrap:gx,line:yx,circle:_x};function W3({onClick:l}){const[s,i]=x.useState(!1);function r(){i(!0),setTimeout(()=>i(!1),300),l()}return u.jsxs("div",{className:N0.wrap,children:[u.jsx("div",{className:N0.line}),u.jsx("button",{className:N0.circle,style:{transform:s?"rotate(180deg)":"rotate(0deg)"},onClick:r,"aria-label":"Поменять токены",children:"⇅"})]})}const bx="_panel_16d4z_1",xx="_row_16d4z_10",Sx="_label_16d4z_22",Cx="_value_16d4z_30",wx="_link_16d4z_36",Js={panel:bx,row:xx,label:Sx,value:Cx,link:wx};function I3({gasFee:l}){const s=[{label:"ПРОВАЙДЕР",value:"ЛУЧШИЙ",link:!1},{label:"СКОЛЬЖЕНИЕ",value:"АВТО (0.5%)",link:!0},{label:"СЕТЕВОЙ СБОР",value:l?`$${l}`:"—",link:!1}];return u.jsx("div",{className:Js.panel,children:s.map(({label:i,value:r,link:f})=>u.jsxs("div",{className:Js.row,children:[u.jsx("span",{className:Js.label,children:i}),u.jsx("span",{className:`${Js.value} ${f?Js.link:""}`,children:r})]},i))})}const jx="_overlay_1gegs_1",Ex="_card_1gegs_12",Tx="_header_1gegs_24",Nx="_title_1gegs_30",Rx="_closeBtn_1gegs_36",Ax="_flow_1gegs_51",Mx="_token_1gegs_57",zx="_tokenLabel_1gegs_67",Dx="_tokenAmount_1gegs_75",Ox="_tokenUsd_1gegs_81",Lx="_arrow_1gegs_86",Bx="_details_1gegs_93",Ux="_row_1gegs_99",kx="_rowLabel_1gegs_105",Hx="_rowValue_1gegs_110",qx="_impact_1gegs_116",Gx="_confirmBtn_1gegs_120",Ve={overlay:jx,card:Ex,header:Tx,title:Nx,closeBtn:Rx,flow:Ax,token:Mx,tokenLabel:zx,tokenAmount:Dx,tokenUsd:Ox,arrow:Lx,details:Bx,row:Ux,rowLabel:kx,rowValue:Hx,impact:qx,confirmBtn:Gx};function P3({data:l,onConfirm:s,onClose:i}){const{details:r,fees:f}=l,{currencyIn:h,currencyOut:m,totalImpact:p,rate:g}=r,v=parseFloat(p.percent),b=parseFloat(g).toFixed(4);return u.jsx("div",{className:Ve.overlay,onClick:i,children:u.jsxs("div",{className:Ve.card,onClick:_=>_.stopPropagation(),children:[u.jsxs("div",{className:Ve.header,children:[u.jsx("span",{className:Ve.title,children:"Подтвердить своп"}),u.jsx("button",{className:Ve.closeBtn,onClick:i,children:"×"})]}),u.jsxs("div",{className:Ve.flow,children:[u.jsxs("div",{className:Ve.token,children:[u.jsx("span",{className:Ve.tokenLabel,children:"Отдаёте"}),u.jsxs("span",{className:Ve.tokenAmount,children:[h.amountFormatted," ",h.currency.symbol]}),u.jsxs("span",{className:Ve.tokenUsd,children:["≈ $",h.amountUsd]})]}),u.jsx("div",{className:Ve.arrow,children:"↓"}),u.jsxs("div",{className:Ve.token,children:[u.jsx("span",{className:Ve.tokenLabel,children:"Получаете"}),u.jsxs("span",{className:Ve.tokenAmount,children:[m.amountFormatted," ",m.currency.symbol]}),u.jsxs("span",{className:Ve.tokenUsd,children:["≈ $",m.amountUsd]})]})]}),u.jsxs("div",{className:Ve.details,children:[u.jsxs("div",{className:Ve.row,children:[u.jsx("span",{className:Ve.rowLabel,children:"Курс"}),u.jsxs("span",{className:Ve.rowValue,children:["1 ",h.currency.symbol," = ",b," ",m.currency.symbol]})]}),u.jsxs("div",{className:Ve.row,children:[u.jsx("span",{className:Ve.rowLabel,children:"Комиссия сети"}),u.jsxs("span",{className:Ve.rowValue,children:["$",f.gas.amountUsd]})]}),u.jsxs("div",{className:Ve.row,children:[u.jsx("span",{className:Ve.rowLabel,children:"Влияние на цену"}),u.jsxs("span",{className:`${Ve.rowValue} ${v<0?Ve.impact:""}`,children:[p.percent,"%"]})]})]}),u.jsx("button",{className:Ve.confirmBtn,onClick:s,children:"Подтвердить"})]})})}const $x="_overlay_cse4p_1",Vx="_card_cse4p_12",Qx="_header_cse4p_24",Fx="_title_cse4p_30",Yx="_closeBtn_cse4p_36",Xx="_flow_cse4p_51",Zx="_token_cse4p_57",Kx="_tokenLabel_cse4p_67",Jx="_tokenAmount_cse4p_75",Wx="_minOut_cse4p_81",Ix="_arrow_cse4p_86",Px="_details_cse4p_93",eS="_row_cse4p_99",tS="_rowLabel_cse4p_105",nS="_rowValue_cse4p_110",aS="_confirmBtn_cse4p_116",ot={overlay:$x,card:Vx,header:Qx,title:Fx,closeBtn:Yx,flow:Xx,token:Zx,tokenLabel:Kx,tokenAmount:Jx,minOut:Wx,arrow:Ix,details:Px,row:eS,rowLabel:tS,rowValue:nS,confirmBtn:aS};function ep({quote:l,fromSymbol:s,toSymbol:i,amountHuman:r,onConfirm:f,onClose:h}){const{expectedOutFormatted:m,minOutFormatted:p,fees:g}=l;return u.jsx("div",{className:ot.overlay,onClick:h,children:u.jsxs("div",{className:ot.card,onClick:v=>v.stopPropagation(),children:[u.jsxs("div",{className:ot.header,children:[u.jsx("span",{className:ot.title,children:"Подтвердить своп"}),u.jsx("button",{className:ot.closeBtn,onClick:h,children:"×"})]}),u.jsxs("div",{className:ot.flow,children:[u.jsxs("div",{className:ot.token,children:[u.jsx("span",{className:ot.tokenLabel,children:"Отдаёте"}),u.jsxs("span",{className:ot.tokenAmount,children:[r," ",s]})]}),u.jsx("div",{className:ot.arrow,children:"↓"}),u.jsxs("div",{className:ot.token,children:[u.jsx("span",{className:ot.tokenLabel,children:"Получаете"}),u.jsxs("span",{className:ot.tokenAmount,children:[m," ",i]}),u.jsxs("span",{className:ot.minOut,children:["Минимум: ",p," ",i]})]})]}),u.jsx("div",{className:ot.details,children:u.jsxs("div",{className:ot.row,children:[u.jsx("span",{className:ot.rowLabel,children:"Комиссия сети"}),u.jsxs("span",{className:ot.rowValue,children:[g.network.amountFormatted," ",g.network.asset," (≈$",g.network.amountUsd,")"]})]})}),u.jsx("button",{className:ot.confirmBtn,onClick:f,children:"Подтвердить"})]})})}const lS="_form_1fk2f_1",iS={form:lS},sS={ETH:1,BSC:56,SOL:792703809},ym={SOL:"11111111111111111111111111111111",DEFAULT:"0x0000000000000000000000000000000000000000"};function _m(l){return ym[l]??ym.DEFAULT}function cS(){var re,fe,Se,at;const{fromAmount:l,fromUsd:s,fromToken:i,toToken:r,setFromAmount:f,setPercent:h,swapTokens:m,setFromToken:p,setToToken:g}=J3(),[v,b]=x.useState("ETH"),[_,w]=x.useState(null),[R,A]=x.useState(null),D=v==="TRX",{data:E}=Qr(v),L=E?l2(E):a2;x.useEffect(()=>{L.length!==0&&(p(de=>L.find(Mt=>Mt.symbol===de.symbol)??L[0]),g(de=>L.find(Mt=>Mt.symbol===de.symbol)??L[1]??L[0]))},[E,v]);const Q=Jr(l,500),{data:$}=w2(),{data:V}=k3(),Z=parseFloat(Q),ee=sS[v],K=(re=$==null?void 0:$.find(de=>de.chain===v))==null?void 0:re.address,I=((fe=V==null?void 0:V.find(de=>de.chain===v&&de.symbol===i.symbol))==null?void 0:fe.contract)??_m(v),ce=((Se=V==null?void 0:V.find(de=>de.chain===v&&de.symbol===r.symbol))==null?void 0:Se.contract)??_m(v),ue=!D&&ee&&K&&Z>0?{user:K,recipient:K,originChainId:ee,destinationChainId:ee,originCurrency:I,destinationCurrency:ce,amount:Math.round(Z*Math.pow(10,i.decimals)).toString(),tradeType:"EXACT_INPUT"}:null,{data:ve}=H3(ue),{mutate:Te,isPending:se}=q3(),{mutate:Oe}=G3(),Ee=D&&Z>0?{from:i.symbol,to:r.symbol,amountHuman:Q}:null,{data:U}=$3(Ee),{mutate:F,isPending:le}=V3(),{mutate:Ne}=Q3(),Me=D?(U==null?void 0:U.expectedOutFormatted)??"0":(ve==null?void 0:ve.details.currencyOut.amountFormatted)??"0",T=D||ve==null?void 0:ve.details.currencyOut.amountUsd,H=D?(at=U==null?void 0:U.fees.network.amountUsd)==null?void 0:at.toString():ve==null?void 0:ve.fees.gas.amountUsd,Y=D?Z<=0||le:!ue||se;function J(){if(D){if(!Ee)return;F(Ee,{onSuccess:de=>A(de)})}else{if(!ue)return;Te(ue,{onSuccess:de=>w(de)})}}return u.jsxs("div",{className:iS.form,children:[u.jsx(Fr,{mode:"from",token:i,tokenOptions:L,amount:l,usd:s,onAmountChange:f,onSetPercent:h,onTokenChange:p,selectedNetwork:v,onNetworkChange:b}),u.jsx(W3,{onClick:m}),u.jsx(Fr,{mode:"to",token:r,tokenOptions:L,amount:Me,usd:T,onTokenChange:g}),u.jsx(I3,{gasFee:H}),u.jsx(dc,{onClick:J,disabled:Y}),_&&u.jsx(P3,{data:_,onClose:()=>w(null),onConfirm:()=>{var Mt,zn;const de=(zn=(Mt=_.steps[0])==null?void 0:Mt.items[0])==null?void 0:zn.data;de&&Oe({chain:v,txData:de}),w(null)}}),R&&u.jsx(ep,{quote:R,fromSymbol:i.symbol,toSymbol:r.symbol,amountHuman:l,onClose:()=>A(null),onConfirm:()=>{Ne(R.quoteId),A(null)}})]})}const rS="_page_vqv0y_1",oS="_tabs_vqv0y_8",uS="_tab_vqv0y_8",fS="_active_vqv0y_26",dS="_inactive_vqv0y_31",hS="_main_vqv0y_40",wl={page:rS,tabs:oS,tab:uS,active:fS,inactive:dS,main:hS};function mS(){const l=Mn();return u.jsxs("div",{className:wl.page,children:[u.jsx(Ki,{}),u.jsxs("div",{className:wl.tabs,children:[u.jsx("button",{className:`${wl.tab} ${wl.active}`,onClick:()=>l(je.SWAP),children:"СВОП"}),u.jsx("button",{className:`${wl.tab} ${wl.inactive}`,onClick:()=>l(je.BRIDGE),children:"БРИДЖ"})]}),u.jsx("main",{className:wl.main,children:u.jsx(cS,{})}),u.jsx(Wr,{})]})}const pS="_wrap_njjv3_1",vS="_label_njjv3_9",gS="_select_njjv3_18",R0={wrap:pS,label:vS,select:gS},yS=["ETH","BSC","TRX","SOL"];function bm({label:l,value:s,onChange:i}){return u.jsxs("div",{className:R0.wrap,children:[u.jsx("span",{className:R0.label,children:l}),u.jsx("select",{className:R0.select,value:s,onChange:r=>i(r.target.value),children:yS.map(r=>u.jsx("option",{value:r,children:r},r))})]})}const _S="_form_htwuf_1",bS={form:_S},xm={ETH:1,BSC:56,SOL:792703809},Sm={SOL:"11111111111111111111111111111111",DEFAULT:"0x0000000000000000000000000000000000000000"};function Cm(l){return Sm[l]??Sm.DEFAULT}function xS(){var zn,ql,Ji,Dn,Gl;const{fromAmount:l,fromUsd:s,fromToken:i,toToken:r,setFromAmount:f,setPercent:h,swapTokens:m,setFromToken:p,setToToken:g}=J3(),[v,b]=x.useState("ETH"),[_,w]=x.useState("BSC"),[R,A]=x.useState(null),[D,E]=x.useState(null),L=v==="TRX",{data:Q}=Qr(v),{data:$}=Qr(_),V=Q?l2(Q):a2,Z=$?l2($):a2;x.useEffect(()=>{V.length!==0&&p(Xe=>V.find(_a=>_a.symbol===Xe.symbol)??V[0])},[Q,v]),x.useEffect(()=>{Z.length!==0&&g(Xe=>Z.find(_a=>_a.symbol===Xe.symbol)??Z[0])},[$,_]);const ee=Jr(l,500),{data:K}=w2(),{data:I}=k3(),ce=parseFloat(ee),ue=xm[v],ve=xm[_],Te=(zn=K==null?void 0:K.find(Xe=>Xe.chain===v))==null?void 0:zn.address,se=(ql=K==null?void 0:K.find(Xe=>Xe.chain===_))==null?void 0:ql.address,Oe=((Ji=I==null?void 0:I.find(Xe=>Xe.chain===v&&Xe.symbol===i.symbol))==null?void 0:Ji.contract)??Cm(v),Ee=((Dn=I==null?void 0:I.find(Xe=>Xe.chain===_&&Xe.symbol===r.symbol))==null?void 0:Dn.contract)??Cm(_),U=!L&&ue&&ve&&Te&&ce>0?{user:Te,recipient:se??Te,originChainId:ue,destinationChainId:ve,originCurrency:Oe,destinationCurrency:Ee,amount:Math.round(ce*Math.pow(10,i.decimals)).toString(),tradeType:"EXACT_INPUT"}:null,{data:F}=H3(U),{mutate:le,isPending:Ne}=q3(),{mutate:Me}=G3(),T=L&&ce>0?{from:i.symbol,to:r.symbol,amountHuman:ee}:null,{data:H}=$3(T),{mutate:Y,isPending:J}=V3(),{mutate:re}=Q3(),fe=L?(H==null?void 0:H.expectedOutFormatted)??"0":(F==null?void 0:F.details.currencyOut.amountFormatted)??"0",Se=L||F==null?void 0:F.details.currencyOut.amountUsd,at=L?(Gl=H==null?void 0:H.fees.network.amountUsd)==null?void 0:Gl.toString():F==null?void 0:F.fees.gas.amountUsd,de=L?ce<=0||J:!U||Ne;function Mt(){if(L){if(!T)return;Y(T,{onSuccess:Xe=>E(Xe)})}else{if(!U)return;le(U,{onSuccess:Xe=>A(Xe)})}}return u.jsxs("div",{className:bS.form,children:[u.jsx(bm,{label:"ИЗ",value:v,onChange:b}),u.jsx(Fr,{mode:"from",token:i,tokenOptions:V,amount:l,usd:s,onAmountChange:f,onSetPercent:h,onTokenChange:p,hideNetworkSelect:!0}),u.jsx(W3,{onClick:m}),u.jsx(bm,{label:"В",value:_,onChange:w}),u.jsx(Fr,{mode:"to",token:r,tokenOptions:Z,amount:fe,usd:Se,onTokenChange:g,hideNetworkSelect:!0}),u.jsx(I3,{gasFee:at}),u.jsx(dc,{label:"Подтвердить бридж",onClick:Mt,disabled:de}),R&&u.jsx(P3,{data:R,onClose:()=>A(null),onConfirm:()=>{var _a,Wi;const Xe=(Wi=(_a=R.steps[0])==null?void 0:_a.items[0])==null?void 0:Wi.data;Xe&&Me({chain:v,txData:Xe}),A(null)}}),D&&u.jsx(ep,{quote:D,fromSymbol:i.symbol,toSymbol:r.symbol,amountHuman:l,onClose:()=>E(null),onConfirm:()=>{re(D.quoteId),E(null)}})]})}const SS="_page_1ieiw_1",CS="_tabs_1ieiw_8",wS="_tab_1ieiw_8",jS="_active_1ieiw_26",ES="_inactive_1ieiw_31",TS="_main_1ieiw_40",jl={page:SS,tabs:CS,tab:wS,active:jS,inactive:ES,main:TS};function NS(){const l=Mn();return u.jsxs("div",{className:jl.page,children:[u.jsx(Ki,{}),u.jsxs("div",{className:jl.tabs,children:[u.jsx("button",{className:`${jl.tab} ${jl.inactive}`,onClick:()=>l(je.SWAP),children:"СВОП"}),u.jsx("button",{className:`${jl.tab} ${jl.active}`,onClick:()=>l(je.BRIDGE),children:"БРИДЖ"})]}),u.jsx("main",{className:jl.main,children:u.jsx(xS,{})}),u.jsx(Wr,{})]})}var i2=function(l,s){return i2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(i[f]=r[f])},i2(l,s)};function RS(l,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i2(l,s);function i(){this.constructor=l}l.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}var pt=function(){return pt=Object.assign||function(s){for(var i,r=1,f=arguments.length;r<f;r++){i=arguments[r];for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&(s[h]=i[h])}return s},pt.apply(this,arguments)};var A0,wm;function AS(){if(wm)return A0;wm=1;var l=!1,s,i,r,f,h,m,p,g,v,b,_,w,R,A,D;function E(){if(!l){l=!0;var Q=navigator.userAgent,$=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(Q),V=/(Mac OS X)|(Windows)|(Linux)/.exec(Q);if(w=/\b(iPhone|iP[ao]d)/.exec(Q),R=/\b(iP[ao]d)/.exec(Q),b=/Android/i.exec(Q),A=/FBAN\/\w+;/i.exec(Q),D=/Mobile/i.exec(Q),_=!!/Win64/.exec(Q),$){s=$[1]?parseFloat($[1]):$[5]?parseFloat($[5]):NaN,s&&document&&document.documentMode&&(s=document.documentMode);var Z=/(?:Trident\/(\d+.\d+))/.exec(Q);m=Z?parseFloat(Z[1])+4:s,i=$[2]?parseFloat($[2]):NaN,r=$[3]?parseFloat($[3]):NaN,f=$[4]?parseFloat($[4]):NaN,f?($=/(?:Chrome\/(\d+\.\d+))/.exec(Q),h=$&&$[1]?parseFloat($[1]):NaN):h=NaN}else s=i=r=h=f=NaN;if(V){if(V[1]){var ee=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(Q);p=ee?parseFloat(ee[1].replace("_",".")):!0}else p=!1;g=!!V[2],v=!!V[3]}else p=g=v=!1}}var L={ie:function(){return E()||s},ieCompatibilityMode:function(){return E()||m>s},ie64:function(){return L.ie()&&_},firefox:function(){return E()||i},opera:function(){return E()||r},webkit:function(){return E()||f},safari:function(){return L.webkit()},chrome:function(){return E()||h},windows:function(){return E()||g},osx:function(){return E()||p},linux:function(){return E()||v},iphone:function(){return E()||w},mobile:function(){return E()||w||R||b||D},nativeApp:function(){return E()||A},android:function(){return E()||b},ipad:function(){return E()||R}};return A0=L,A0}var M0,jm;function MS(){if(jm)return M0;jm=1;var l=!!(typeof window<"u"&&window.document&&window.document.createElement),s={canUseDOM:l,canUseWorkers:typeof Worker<"u",canUseEventListeners:l&&!!(window.addEventListener||window.attachEvent),canUseViewport:l&&!!window.screen,isInWorker:!l};return M0=s,M0}var z0,Em;function zS(){if(Em)return z0;Em=1;var l=MS(),s;l.canUseDOM&&(s=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,f){if(!l.canUseDOM||f&&!("addEventListener"in document))return!1;var h="on"+r,m=h in document;if(!m){var p=document.createElement("div");p.setAttribute(h,"return;"),m=typeof p[h]=="function"}return!m&&s&&r==="wheel"&&(m=document.implementation.hasFeature("Events.wheel","3.0")),m}return z0=i,z0}var D0,Tm;function DS(){if(Tm)return D0;Tm=1;var l=AS(),s=zS(),i=10,r=40,f=800;function h(m){var p=0,g=0,v=0,b=0;return"detail"in m&&(g=m.detail),"wheelDelta"in m&&(g=-m.wheelDelta/120),"wheelDeltaY"in m&&(g=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(p=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(p=g,g=0),v=p*i,b=g*i,"deltaY"in m&&(b=m.deltaY),"deltaX"in m&&(v=m.deltaX),(v||b)&&m.deltaMode&&(m.deltaMode==1?(v*=r,b*=r):(v*=f,b*=f)),v&&!p&&(p=v<1?-1:1),b&&!g&&(g=b<1?-1:1),{spinX:p,spinY:g,pixelX:v,pixelY:b}}return h.getEventType=function(){return l.firefox()?"DOMMouseScroll":s("wheel")?"wheel":"mousewheel"},D0=h,D0}var O0,Nm;function OS(){return Nm||(Nm=1,O0=DS()),O0}var LS=OS();const BS=w4(LS);function US(l,s,i,r,f,h){h===void 0&&(h=0);var m=Gi(l,s,h),p=m.width,g=m.height,v=Math.min(p,i),b=Math.min(g,r);return v>b*f?{width:b*f,height:b}:{width:v,height:v/f}}function kS(l){return l.width>l.height?l.width/l.naturalWidth:l.height/l.naturalHeight}function Ws(l,s,i,r,f){f===void 0&&(f=0);var h=Gi(s.width,s.height,f),m=h.width,p=h.height;return{x:Rm(l.x,m,i.width,r),y:Rm(l.y,p,i.height,r)}}function Rm(l,s,i,r){var f=Math.abs(s*r/2-i/2);return Pr(l,-f,f)}function Am(l,s){return Math.sqrt(Math.pow(l.y-s.y,2)+Math.pow(l.x-s.x,2))}function Mm(l,s){return Math.atan2(s.y-l.y,s.x-l.x)*180/Math.PI}function HS(l,s,i,r,f,h,m){h===void 0&&(h=0),m===void 0&&(m=!0);var p=m?qS:GS,g=Gi(s.width,s.height,h),v=Gi(s.naturalWidth,s.naturalHeight,h),b={x:p(100,((g.width-i.width/f)/2-l.x/f)/g.width*100),y:p(100,((g.height-i.height/f)/2-l.y/f)/g.height*100),width:p(100,i.width/g.width*100/f),height:p(100,i.height/g.height*100/f)},_=Math.round(p(v.width,b.width*v.width/100)),w=Math.round(p(v.height,b.height*v.height/100)),R=v.width>=v.height*r,A=R?{width:Math.round(w*r),height:w}:{width:_,height:Math.round(_/r)},D=pt(pt({},A),{x:Math.round(p(v.width-A.width,b.x*v.width/100)),y:Math.round(p(v.height-A.height,b.y*v.height/100))});return{croppedAreaPercentages:b,croppedAreaPixels:D}}function qS(l,s){return Math.min(l,Math.max(0,s))}function GS(l,s){return s}function $S(l,s,i,r,f,h){var m=Gi(s.width,s.height,i),p=Pr(r.width/m.width*(100/l.width),f,h),g={x:p*m.width/2-r.width/2-m.width*p*(l.x/100),y:p*m.height/2-r.height/2-m.height*p*(l.y/100)};return{crop:g,zoom:p}}function VS(l,s,i){var r=kS(s);return i.height>i.width?i.height/(l.height*r):i.width/(l.width*r)}function QS(l,s,i,r,f,h){i===void 0&&(i=0);var m=Gi(s.naturalWidth,s.naturalHeight,i),p=Pr(VS(l,s,r),f,h),g=r.height>r.width?r.height/l.height:r.width/l.width,v={x:((m.width-l.width)/2-l.x)*g,y:((m.height-l.height)/2-l.y)*g};return{crop:v,zoom:p}}function zm(l,s){return{x:(s.x+l.x)/2,y:(s.y+l.y)/2}}function FS(l){return l*Math.PI/180}function Gi(l,s,i){var r=FS(i);return{width:Math.abs(Math.cos(r)*l)+Math.abs(Math.sin(r)*s),height:Math.abs(Math.sin(r)*l)+Math.abs(Math.cos(r)*s)}}function Pr(l,s,i){return Math.min(Math.max(l,s),i)}function Lr(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return l.filter(function(i){return typeof i=="string"&&i.length>0}).join(" ").trim()}var YS=`.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;
}
`,XS=1,ZS=3,KS=1,JS=(function(l){RS(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.cropperRef=x.createRef(),i.imageRef=x.createRef(),i.videoRef=x.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(f){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 f=$S(i.props.initialCroppedAreaPercentages,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),h=f.crop,m=f.zoom;i.props.onCropChange(h),i.props.onZoomChange&&i.props.onZoomChange(m)}else if(i.props.initialCroppedAreaPixels){var p=QS(i.props.initialCroppedAreaPixels,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),h=p.crop,m=p.zoom;i.props.onCropChange(h),i.props.onZoomChange&&i.props.onZoomChange(m)}},i.computeSizes=function(){var r,f,h,m,p,g,v=i.imageRef.current||i.videoRef.current;if(v&&i.containerRef){i.containerRect=i.containerRef.getBoundingClientRect(),i.saveContainerPosition();var b=i.containerRect.width/i.containerRect.height,_=((r=i.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((f=i.videoRef.current)===null||f===void 0?void 0:f.videoWidth)||0,w=((h=i.imageRef.current)===null||h===void 0?void 0:h.naturalHeight)||((m=i.videoRef.current)===null||m===void 0?void 0:m.videoHeight)||0,R=v.offsetWidth<_||v.offsetHeight<w,A=_/w,D=void 0;if(R)switch(i.state.mediaObjectFit){default:case"contain":D=b>A?{width:i.containerRect.height*A,height:i.containerRect.height}:{width:i.containerRect.width,height:i.containerRect.width/A};break;case"horizontal-cover":D={width:i.containerRect.width,height:i.containerRect.width/A};break;case"vertical-cover":D={width:i.containerRect.height*A,height:i.containerRect.height};break}else D={width:v.offsetWidth,height:v.offsetHeight};i.mediaSize=pt(pt({},D),{naturalWidth:_,naturalHeight:w}),i.props.setMediaSize&&i.props.setMediaSize(i.mediaSize);var E=i.props.cropSize?i.props.cropSize:US(i.mediaSize.width,i.mediaSize.height,i.containerRect.width,i.containerRect.height,i.props.aspect,i.props.rotation);return(((p=i.state.cropSize)===null||p===void 0?void 0:p.height)!==E.height||((g=i.state.cropSize)===null||g===void 0?void 0:g.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(s.getMousePoint(r)))},i.onMouseMove=function(r){return i.onDrag(s.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(s.getTouchPoint(r.touches[0]))))},i.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?i.onPinchMove(r):r.touches.length===1&&i.onDrag(s.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 f=s.getMousePoint(r),h=i.gestureZoomStart-1+r.scale;if(i.setNewZoom(h,f,{shouldUpdatePosition:!0}),i.props.onRotationChange){var m=i.gestureRotationStart+r.rotation;i.props.onRotationChange(m)}}},i.onGestureEnd=function(r){i.cleanEvents()},i.onDragStart=function(r){var f,h,m=r.x,p=r.y;i.dragStartPosition={x:m,y:p},i.dragStartCrop=pt({},i.props.crop),(h=(f=i.props).onInteractionStart)===null||h===void 0||h.call(f)},i.onDrag=function(r){var f=r.x,h=r.y;i.currentWindow&&(i.rafDragTimeout&&i.currentWindow.cancelAnimationFrame(i.rafDragTimeout),i.rafDragTimeout=i.currentWindow.requestAnimationFrame(function(){if(i.state.cropSize&&!(f===void 0||h===void 0)){var m=f-i.dragStartPosition.x,p=h-i.dragStartPosition.y,g={x:i.dragStartCrop.x+m,y:i.dragStartCrop.y+p},v=i.props.restrictPosition?Ws(g,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):g;i.props.onCropChange(v)}}))},i.onDragStopped=function(){var r,f;i.isTouching=!1,i.cleanEvents(),i.emitCropData(),(f=(r=i.props).onInteractionEnd)===null||f===void 0||f.call(r)},i.onWheel=function(r){if(i.currentWindow&&!(i.props.onWheelRequest&&!i.props.onWheelRequest(r))){r.preventDefault();var f=s.getMousePoint(r),h=BS(r).pixelY,m=i.props.zoom-h*i.props.zoomSpeed/200;i.setNewZoom(m,f,{shouldUpdatePosition:!0}),i.state.hasWheelJustStarted||i.setState({hasWheelJustStarted:!0},function(){var p,g;return(g=(p=i.props).onInteractionStart)===null||g===void 0?void 0:g.call(p)}),i.wheelTimer&&clearTimeout(i.wheelTimer),i.wheelTimer=i.currentWindow.setTimeout(function(){return i.setState({hasWheelJustStarted:!1},function(){var p,g;return(g=(p=i.props).onInteractionEnd)===null||g===void 0?void 0:g.call(p)})},250)}},i.getPointOnContainer=function(r,f){var h=r.x,m=r.y;if(!i.containerRect)throw new Error("The Cropper is not mounted");return{x:i.containerRect.width/2-(h-f.x),y:i.containerRect.height/2-(m-f.y)}},i.getPointOnMedia=function(r){var f=r.x,h=r.y,m=i.props,p=m.crop,g=m.zoom;return{x:(f+p.x)/g,y:(h+p.y)/g}},i.setNewZoom=function(r,f,h){var m=h===void 0?{}:h,p=m.shouldUpdatePosition,g=p===void 0?!0:p;if(!(!i.state.cropSize||!i.props.onZoomChange)){var v=Pr(r,i.props.minZoom,i.props.maxZoom);if(g){var b=i.getPointOnContainer(f,i.containerPosition),_=i.getPointOnMedia(b),w={x:_.x*v-b.x,y:_.y*v-b.y},R=i.props.restrictPosition?Ws(w,i.mediaSize,i.state.cropSize,v,i.props.rotation):w;i.props.onCropChange(R)}i.props.onZoomChange(v)}},i.getCropData=function(){if(!i.state.cropSize)return null;var r=i.props.restrictPosition?Ws(i.props.crop,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):i.props.crop;return HS(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 f=r.croppedAreaPercentages,h=r.croppedAreaPixels;i.props.onCropComplete&&i.props.onCropComplete(f,h),i.props.onCropAreaChange&&i.props.onCropAreaChange(f,h)}},i.emitCropAreaChange=function(){var r=i.getCropData();if(r){var f=r.croppedAreaPercentages,h=r.croppedAreaPixels;i.props.onCropAreaChange&&i.props.onCropAreaChange(f,h)}},i.recomputeCropPosition=function(){var r,f;if(i.state.cropSize){var h=i.props.crop;if(i.isInitialized&&(!((r=i.previousCropSize)===null||r===void 0)&&r.width)&&(!((f=i.previousCropSize)===null||f===void 0)&&f.height)){var m=Math.abs(i.previousCropSize.width-i.state.cropSize.width)>1e-6||Math.abs(i.previousCropSize.height-i.state.cropSize.height)>1e-6;if(m){var p=i.state.cropSize.width/i.previousCropSize.width,g=i.state.cropSize.height/i.previousCropSize.height;h={x:i.props.crop.x*p,y:i.props.crop.y*g}}}var v=i.props.restrictPosition?Ws(h,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):h;i.previousCropSize=i.state.cropSize,i.props.onCropChange(v),i.emitCropData()}},i.onKeyDown=function(r){var f,h,m=i.props,p=m.crop,g=m.onCropChange,v=m.keyboardStep,b=m.zoom,_=m.rotation,w=v;if(i.state.cropSize){r.shiftKey&&(w*=.2);var R=pt({},p);switch(r.key){case"ArrowUp":R.y-=w,r.preventDefault();break;case"ArrowDown":R.y+=w,r.preventDefault();break;case"ArrowLeft":R.x-=w,r.preventDefault();break;case"ArrowRight":R.x+=w,r.preventDefault();break;default:return}i.props.restrictPosition&&(R=Ws(R,i.mediaSize,i.state.cropSize,b,_)),r.repeat||(h=(f=i.props).onInteractionStart)===null||h===void 0||h.call(f),g(R)}},i.onKeyUp=function(r){var f,h;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}i.emitCropData(),(h=(f=i.props).onInteractionEnd)===null||h===void 0||h.call(f)},i}return s.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=YS,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))},s.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())},s.prototype.componentDidUpdate=function(i){var r,f,h,m,p,g,v,b,_;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)!==((f=this.props.cropSize)===null||f===void 0?void 0:f.height)||((h=i.cropSize)===null||h===void 0?void 0:h.width)!==((m=this.props.cropSize)===null||m===void 0?void 0:m.width)?this.computeSizes():(((p=i.crop)===null||p===void 0?void 0:p.x)!==((g=this.props.crop)===null||g===void 0?void 0:g.x)||((v=i.crop)===null||v===void 0?void 0:v.y)!==((b=this.props.crop)===null||b===void 0?void 0:b.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 w=this.getObjectFit();w!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:w},this.computeSizes)},s.prototype.getAspect=function(){var i=this.props,r=i.cropSize,f=i.aspect;return r?r.width/r.height:f},s.prototype.getObjectFit=function(){var i,r,f,h;if(this.props.objectFit==="cover"){var m=this.imageRef.current||this.videoRef.current;if(m&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var p=this.containerRect.width/this.containerRect.height,g=((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,v=((f=this.imageRef.current)===null||f===void 0?void 0:f.naturalHeight)||((h=this.videoRef.current)===null||h===void 0?void 0:h.videoHeight)||0,b=g/v;return b<p?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},s.prototype.onPinchStart=function(i){var r=s.getTouchPoint(i.touches[0]),f=s.getTouchPoint(i.touches[1]);this.lastPinchDistance=Am(r,f),this.lastPinchRotation=Mm(r,f),this.onDragStart(zm(r,f))},s.prototype.onPinchMove=function(i){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var f=s.getTouchPoint(i.touches[0]),h=s.getTouchPoint(i.touches[1]),m=zm(f,h);this.onDrag(m),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var p=Am(f,h),g=r.props.zoom*(p/r.lastPinchDistance);r.setNewZoom(g,m,{shouldUpdatePosition:!1}),r.lastPinchDistance=p;var v=Mm(f,h),b=r.props.rotation+(v-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(b),r.lastPinchRotation=v})}},s.prototype.render=function(){var i=this,r,f=this.props,h=f.image,m=f.video,p=f.mediaProps,g=f.cropperProps,v=f.transform,b=f.crop,_=b.x,w=b.y,R=f.rotation,A=f.zoom,D=f.cropShape,E=f.showGrid,L=f.roundCropAreaPixels,Q=f.style,$=Q.containerStyle,V=Q.cropAreaStyle,Z=Q.mediaStyle,ee=f.classes,K=ee.containerClassName,I=ee.cropAreaClassName,ce=ee.mediaClassName,ue=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return x.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(Te){return i.containerRef=Te},"data-testid":"container",style:$,className:Lr("reactEasyCrop_Container",K)},h?x.createElement("img",pt({alt:"",className:Lr("reactEasyCrop_Image",ue==="contain"&&"reactEasyCrop_Contain",ue==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ue==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",ce)},p,{src:h,ref:this.imageRef,style:pt(pt({},Z),{transform:v||"translate(".concat(_,"px, ").concat(w,"px) rotate(").concat(R,"deg) scale(").concat(A,")")}),onLoad:this.onMediaLoad})):m&&x.createElement("video",pt({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:Lr("reactEasyCrop_Video",ue==="contain"&&"reactEasyCrop_Contain",ue==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ue==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",ce)},p,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:pt(pt({},Z),{transform:v||"translate(".concat(_,"px, ").concat(w,"px) rotate(").concat(R,"deg) scale(").concat(A,")")}),controls:!1}),(Array.isArray(m)?m:[{src:m}]).map(function(ve){return x.createElement("source",pt({key:ve.src},ve))})),this.state.cropSize&&x.createElement("div",pt({ref:this.cropperRef,style:pt(pt({},V),{width:L?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:L?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:Lr("reactEasyCrop_CropArea",D==="round"&&"reactEasyCrop_CropAreaRound",E&&"reactEasyCrop_CropAreaGrid",I)},g)))},s.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:ZS,minZoom:XS,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:KS},s.getMousePoint=function(i){return{x:Number(i.clientX),y:Number(i.clientY)}},s.getTouchPoint=function(i){return{x:Number(i.clientX),y:Number(i.clientY)}},s})(x.Component);function WS(l){return new Promise((s,i)=>{const r=new Image;r.onload=()=>s(r),r.onerror=()=>i(new Error("Не удалось загрузить изображение")),r.src=l})}async function IS(l,s,i=512){const r=await WS(l),f=document.createElement("canvas");f.width=i,f.height=i;const h=f.getContext("2d");if(!h)throw new Error("Canvas 2D context недоступен");return h.drawImage(r,s.x,s.y,s.width,s.height,0,0,i,i),new Promise((m,p)=>{f.toBlob(g=>{g?m(g):p(new Error("Пустой Blob после обрезки"))},"image/jpeg",.9)})}const PS="_backdrop_1cfz6_1",eC="_card_1cfz6_12",tC="_title_1cfz6_25",nC="_cropArea_1cfz6_31",aC="_controls_1cfz6_40",lC="_zoom_1cfz6_52",iC="_actions_1cfz6_57",sC="_error_1cfz6_63",Fa={backdrop:PS,card:eC,title:tC,cropArea:nC,controls:aC,zoom:lC,actions:iC,error:sC};function cC({imageSrc:l,isSaving:s,onCancel:i,onConfirm:r}){const[f,h]=x.useState({x:0,y:0}),[m,p]=x.useState(1),[g,v]=x.useState(null),[b,_]=x.useState(null),w=x.useCallback((A,D)=>{v(D)},[]);x.useEffect(()=>{const A=D=>{D.key==="Escape"&&!s&&i()};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[i,s]);const R=async()=>{if(g){_(null);try{const A=await IS(l,g);await r(A)}catch{_("Не удалось обрезать изображение")}}};return u.jsx("div",{className:Fa.backdrop,onClick:s?void 0:i,children:u.jsxs("div",{className:Fa.card,onClick:A=>A.stopPropagation(),children:[u.jsx("h3",{className:Fa.title,children:"Выберите область аватара"}),u.jsx("div",{className:Fa.cropArea,children:u.jsx(JS,{image:l,crop:f,zoom:m,aspect:1,cropShape:"round",showGrid:!1,onCropChange:h,onZoomChange:p,onCropComplete:w})}),u.jsxs("div",{className:Fa.controls,children:[u.jsx("label",{htmlFor:"avatar-zoom",children:"Масштаб"}),u.jsx("input",{id:"avatar-zoom",className:Fa.zoom,type:"range",min:1,max:3,step:.01,value:m,onChange:A=>p(Number(A.target.value))})]}),b&&u.jsx("span",{className:Fa.error,children:b}),u.jsxs("div",{className:Fa.actions,children:[u.jsx(xn,{variant:"ghost",onClick:i,disabled:s,children:"Отмена"}),u.jsx(xn,{variant:"primary",onClick:R,disabled:s||!g,children:s?"Загрузка...":"Сохранить"})]})]})})}const rC="_col_1gh35_1",oC="_avatar_1gh35_10",uC="_avatarImg_1gh35_30",fC="_error_1gh35_37",dC="_overlay_1gh35_43",hC="_addPhoto_1gh35_68",Ei={col:rC,avatar:oC,avatarImg:uC,error:fC,overlay:dC,addPhoto:hC};function mC(l){return new Promise((s,i)=>{const r=new FileReader;r.onload=()=>{const f=r.result,h=f.indexOf(",");s(h>=0?f.slice(h+1):f)},r.onerror=()=>i(r.error),r.readAsDataURL(l)})}function pC(){const{data:l}=Xi(),{mutateAsync:s,isPending:i}=r5(),r=x.useRef(null),[f,h]=x.useState(null),[m,p]=x.useState(!1),[g,v]=x.useState(null),b=(l==null?void 0:l.avatar_link)??null,_=b&&!m;x.useEffect(()=>{p(!1)},[b]),x.useEffect(()=>()=>{g&&URL.revokeObjectURL(g)},[g]);const w=()=>{var E;i||(E=r.current)==null||E.click()},R=E=>{var Q;const L=(Q=E.target.files)==null?void 0:Q[0];E.target.value="",L&&(h(null),v(URL.createObjectURL(L)))},A=()=>{g&&URL.revokeObjectURL(g),v(null)},D=async E=>{try{const L=await mC(E);await s({photo_base64:L,decoded_bytes:String(E.size)}),A()}catch{h("Не удалось загрузить фото"),A()}};return u.jsxs("div",{className:Ei.col,children:[u.jsxs("div",{className:Ei.avatar,onClick:w,children:[_?u.jsx("img",{src:b,alt:"avatar",className:Ei.avatarImg,referrerPolicy:"no-referrer",onError:()=>{console.warn("[avatar] failed to load",b),p(!0)}}):u.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("circle",{cx:"12",cy:"8",r:"4"}),u.jsx("path",{d:"M4 20c0-4 4-7 8-7s8 3 8 7"})]}),u.jsx("div",{className:Ei.overlay,children:u.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[u.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"}),u.jsx("circle",{cx:"12",cy:"13",r:"4"})]})})]}),u.jsx("input",{ref:r,type:"file",accept:"image/*",onChange:R,hidden:!0}),u.jsx("div",{className:Ei.addPhoto,children:u.jsx(xn,{variant:"ghost",onClick:w,disabled:i,children:i?"ЗАГРУЗКА...":"ДОБАВИТЬ ФОТО"})}),f&&u.jsx("span",{className:Ei.error,children:f}),g&&u.jsx(cC,{imageSrc:g,isSaving:i,onCancel:A,onConfirm:D})]})}const vC="_card_17od5_1",gC="_title_17od5_8",yC="_actions_17od5_17",L0={card:vC,title:gC,actions:yC};function Br({title:l,children:s,actions:i}){return u.jsxs("div",{className:L0.card,children:[u.jsx("div",{className:L0.title,children:l}),s,i&&u.jsx("div",{className:L0.actions,children:i})]})}const _C="_page_h0psp_1",bC="_kycBanner_h0psp_8",xC="_main_h0psp_19",SC="_profileTop_h0psp_29",CC="_userInfo_h0psp_33",wC="_sections_h0psp_37",jC="_grid2_h0psp_44",EC="_grid1_h0psp_50",TC="_mnemonicRow_h0psp_56",NC="_mnemonicInfo_h0psp_63",RC="_mnemonicIcon_h0psp_69",AC="_mnemonicText_h0psp_73",MC="_userName_h0psp_105",zC="_userBalance_h0psp_112",Nt={page:_C,kycBanner:bC,main:xC,profileTop:SC,userInfo:CC,sections:wC,grid2:jC,grid1:EC,mnemonicRow:TC,mnemonicInfo:NC,mnemonicIcon:RC,mnemonicText:AC,userName:MC,userBalance:zC};function DC(){const{data:l}=Xi(),{data:s,isLoading:i}=j2(),r=Mn(),f=p=>p?p[0].toUpperCase()+p.slice(1).toLowerCase():"",h=l?[l.last_name,l.first_name,l.middle_name].filter(Boolean).map(f).join(" "):"",m=i||!s||s.totalUsd==null?"$—":`$${s.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return u.jsxs("div",{className:Nt.page,children:[u.jsx(Ki,{}),l&&!l.kyc_verified&&u.jsx("div",{className:Nt.kycBanner,children:"Для полного доступа к платформе необходимо пройти верификацию личности (KYC)"}),u.jsxs("main",{className:Nt.main,children:[u.jsxs("div",{className:Nt.profileTop,children:[u.jsx(pC,{}),u.jsxs("div",{className:Nt.userInfo,children:[u.jsx("span",{className:Nt.userName,children:h}),u.jsx("span",{className:Nt.userBalance,children:m})]})]}),u.jsxs("div",{className:Nt.sections,children:[u.jsx(Br,{title:"Личные данные",children:u.jsxs("div",{className:Nt.grid2,children:[u.jsx($t,{label:"Полное ФИО",value:h,placeholder:"Например: Иванов Иван Иванович"}),u.jsx($t,{label:"Адрес электронной почты",value:(l==null?void 0:l.email)??"",type:"email",icon:"check",placeholder:"example@mail.ru",readOnly:!0}),u.jsx($t,{label:"Серия и номер паспорта",value:(l==null?void 0:l.passport_data)??"",placeholder:"0000 000000",readOnly:!0}),u.jsx($t,{label:"Номер телефона",value:(l==null?void 0:l.phone)??"",type:"tel",icon:"check",placeholder:"+7 (999) 000-00-00",readOnly:!0})]})}),u.jsx(Br,{title:"Верификация",children:u.jsxs("div",{className:Nt.grid2,children:[u.jsx($t,{label:"ИНН",value:(l==null?void 0:l.inn)??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),u.jsx($t,{label:"ID аккаунта",value:(l==null?void 0:l.id)??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})}),u.jsx(Br,{title:"Безопасность",actions:u.jsxs(u.Fragment,{children:[u.jsx(xn,{variant:"danger",children:"⚠️ Посмотреть приватный ключ"}),u.jsx(xn,{variant:"primary",children:"СОХРАНИТЬ"})]}),children:u.jsx("div",{className:Nt.grid1,children:u.jsx($t,{label:"Адрес ERC-20",readOnly:!0,icon:"lock",value:(l==null?void 0:l.erc20)??"",placeholder:"0x0000000000000000000000000000000000000000"})})}),u.jsx(Br,{title:"Мнемоника",children:u.jsxs("div",{className:Nt.mnemonicRow,children:[u.jsxs("div",{className:Nt.mnemonicInfo,children:[u.jsx("span",{className:Nt.mnemonicIcon,children:"🔑"}),u.jsx("span",{className:Nt.mnemonicText,children:"Сид-фраза из 12 слов для восстановления кошелька"})]}),u.jsx(xn,{variant:"danger",onClick:()=>r(je.SEED_PHRASE),children:"⚠ Показать мнемонику"})]})})]})]})]})}const OC="_card_1erii_1",LC="_logo_1erii_10",BC="_title_1erii_20",UC="_twoCol_1erii_29",kC="_leftCol_1erii_36",HC="_rightCol_1erii_42",qC="_codeHint_1erii_48",GC="_error_1erii_55",$C="_submitWrapper_1erii_62",VC="_footer_1erii_66",QC="_forgot_1erii_73",FC="_divider_1erii_88",_n={card:OC,logo:LC,title:BC,twoCol:UC,leftCol:kC,rightCol:HC,codeHint:qC,error:GC,submitWrapper:$C,footer:VC,forgot:QC,divider:FC};function Dm(l){var i,r;const s=l;return((r=(i=s==null?void 0:s.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function YC(){const[l,s]=x.useState(""),[i,r]=x.useState(""),[f,h]=x.useState(""),[m,p]=x.useState(!1),g=kl(),v=Mn(),b=Vt({mutationFn:a5,onSuccess:()=>p(!0)}),_=Vt({mutationFn:l5,onSuccess:async({access_token:D})=>{S2(),D&&Sn.set(D),await g.invalidateQueries({queryKey:Ir}),v(je.PROFILE)}}),w=()=>{l&&b.mutate({email:l})},R=D=>{D.preventDefault(),_.mutate({email:l,password:i,code:f})},A=(b.isError?Dm(b.error):null)??(_.isError?Dm(_.error):null);return{email:l,setEmail:s,password:i,setPassword:r,verificationCode:f,setVerificationCode:h,codeSent:m,isLoadingCode:b.isPending,isLoadingSubmit:_.isPending,error:A,handleRequestCode:w,handleSubmit:R}}function XC(){const{email:l,setEmail:s,password:i,setPassword:r,verificationCode:f,setVerificationCode:h,codeSent:m,isLoadingCode:p,isLoadingSubmit:g,error:v,handleRequestCode:b,handleSubmit:_}=YC(),w=Mn();return u.jsxs("form",{className:_n.card,onSubmit:_,children:[u.jsx("div",{className:_n.logo,children:u.jsx("img",{src:Hl,alt:"ЭКСА"})}),u.jsx("h1",{className:_n.title,children:"Войти в кошелёк ЭКСА"}),u.jsxs("div",{className:_n.twoCol,children:[u.jsxs("div",{className:_n.leftCol,children:[u.jsx($t,{label:"Адрес электронной почты",type:"email",value:l,onChange:s,placeholder:"example@mail.ru",required:!0}),u.jsx($t,{label:"Пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0})]}),u.jsxs("div",{className:_n.rightCol,children:[u.jsx(xn,{variant:"ghost",type:"button",onClick:b,disabled:m||p,children:p?"Отправка...":m?"Код отправлен":"Получить код на email"}),u.jsx("span",{className:_n.codeHint,children:"Код не пришёл"}),u.jsx($t,{label:"Ввести код",type:"text",value:f,onChange:h,placeholder:"000 000",required:!0})]})]}),v&&u.jsx("p",{className:_n.error,children:v}),u.jsx("div",{className:_n.submitWrapper,children:u.jsx(dc,{label:g?"Вход...":"Войти",disabled:g})}),u.jsxs("div",{className:_n.footer,children:[u.jsx("a",{className:_n.forgot,children:"Забыли пароль?"}),u.jsx("div",{className:_n.divider,children:u.jsx("span",{children:"или"})}),u.jsx(xn,{variant:"outline",type:"button",onClick:()=>w(je.REGISTER),children:"Создать новый кошелёк"})]})]})}const ZC="_page_a6ygb_1",KC={page:ZC};function JC(){return u.jsx("div",{className:KC.page,children:u.jsx(XC,{})})}function Om(l){var i,r;const s=l;return((r=(i=s==null?void 0:s.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function WC(){const l=Mn(),s=kl(),[i,r]=x.useState(""),[f,h]=x.useState(""),[m,p]=x.useState(""),[g,v]=x.useState(""),[b,_]=x.useState(!1),[w,R]=x.useState(null),A=Vt({mutationFn:t5,onSuccess:()=>_(!0)}),D=Vt({mutationFn:n5,onSuccess:async({access_token:$})=>{S2(),$&&Sn.set($),await s.invalidateQueries({queryKey:Ir}),l(je.WALLET)}}),E=()=>{i&&A.mutate({email:i})},L=$=>{if($.preventDefault(),f!==m){R("Пароли не совпадают");return}R(null),D.mutate({email:i,password:f,confirm_password:m,code:g})},Q=w??(A.isError?Om(A.error):null)??(D.isError?Om(D.error):null);return{email:i,setEmail:r,password:f,setPassword:h,confirmPassword:m,setConfirmPassword:p,verificationCode:g,setVerificationCode:v,codeSent:b,isLoadingCode:A.isPending,isLoadingSubmit:D.isPending,error:Q,handleRequestCode:E,handleSubmit:L}}const IC="_card_wnog4_1",PC="_logo_wnog4_10",ew="_title_wnog4_20",tw="_twoCol_wnog4_29",nw="_leftCol_wnog4_36",aw="_rightCol_wnog4_42",lw="_codeHint_wnog4_53",iw="_error_wnog4_60",sw="_submitWrapper_wnog4_67",cw="_legal_wnog4_71",Gn={card:IC,logo:PC,title:ew,twoCol:tw,leftCol:nw,rightCol:aw,codeHint:lw,error:iw,submitWrapper:sw,legal:cw};function rw(){const{email:l,setEmail:s,password:i,setPassword:r,confirmPassword:f,setConfirmPassword:h,verificationCode:m,setVerificationCode:p,codeSent:g,isLoadingCode:v,isLoadingSubmit:b,error:_,handleRequestCode:w,handleSubmit:R}=WC();return u.jsxs("form",{className:Gn.card,onSubmit:R,children:[u.jsx("div",{className:Gn.logo,children:u.jsx("img",{src:Hl,alt:"ЭКСА"})}),u.jsx("h1",{className:Gn.title,children:"Создать кошелёк ЭКСА"}),u.jsxs("div",{className:Gn.twoCol,children:[u.jsxs("div",{className:Gn.leftCol,children:[u.jsx($t,{label:"Введите адрес электронной почты",type:"email",value:l,onChange:s,placeholder:"example@mail.ru",required:!0}),u.jsx($t,{label:"Придумайте пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0}),u.jsx($t,{label:"Повторите пароль",type:"password",value:f,onChange:h,placeholder:"••••••••",required:!0})]}),u.jsxs("div",{className:Gn.rightCol,children:[u.jsx(xn,{variant:"ghost",type:"button",onClick:w,disabled:g||v,children:v?"Отправка...":g?"Код отправлен":"Получить проверочный код"}),u.jsx("span",{className:Gn.codeHint,children:"Код не пришёл"}),u.jsx($t,{label:"Ввести код",type:"text",value:m,onChange:p,placeholder:"000 000",required:!0})]})]}),_&&u.jsx("p",{className:Gn.error,children:_}),u.jsx("div",{className:Gn.submitWrapper,children:u.jsx(dc,{label:b?"Создание...":"Создать",disabled:b})}),u.jsxs("p",{className:Gn.legal,children:["Нажимая «Создать», вы принимаете",u.jsx("br",{}),u.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",u.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]})}const ow="_page_a6ygb_1",uw={page:ow};function fw(){return u.jsx("div",{className:uw.page,children:u.jsx(rw,{})})}const dw="_title_ujt2o_1",hw="_table_ujt2o_8",mw="_row_ujt2o_15",pw="_range_ujt2o_31",vw="_pct_ujt2o_36",gw="_progressBar_ujt2o_43",yw="_progressFill_ujt2o_51",_w="_summary_ujt2o_58",bw="_summaryLabel_ujt2o_73",xw="_summaryValue_ujt2o_78",tn={title:dw,table:hw,row:mw,range:pw,pct:vw,progressBar:gw,progressFill:yw,summary:_w,summaryLabel:bw,summaryValue:xw},Lm=l=>l.toLocaleString("ru-RU");function Sw({amount:l,progress:s,commission:i,effectiveRate:r}){return u.jsxs("div",{children:[u.jsx("div",{className:tn.title,children:"КОМИССИЯ СЕРВИСА"}),u.jsx("div",{className:tn.table,children:pa.map((f,h)=>u.jsxs("div",{className:tn.row,"data-active":l>=f.min&&l<=f.max||void 0,children:[u.jsxs("span",{className:tn.range,children:[Lm(f.min)," ",Lm(f.max)," ₽"]}),u.jsxs("span",{className:tn.pct,children:[f.pct,"%"]})]},h))}),u.jsx("div",{className:tn.progressBar,children:u.jsx("div",{className:tn.progressFill,style:{width:`${s}%`}})}),u.jsxs("div",{className:tn.summary,children:[u.jsx("span",{className:tn.summaryLabel,children:"Комиссия"}),u.jsxs("span",{className:tn.summaryValue,children:[i.toLocaleString("ru-RU",{maximumFractionDigits:2})," ₽"]})]}),u.jsxs("div",{className:tn.summary,children:[u.jsx("span",{className:tn.summaryLabel,children:"Курс с комиссией"}),u.jsxs("span",{className:tn.summaryValue,children:[r.toFixed(2)," ₽"]})]})]})}const Cw="_wrap_6xfms_1",ww="_box_6xfms_12",jw="_text_6xfms_39",Ew="_link_6xfms_46",Tw="_required_6xfms_51",Is={wrap:Cw,box:ww,text:jw,link:Ew,required:Tw};function Nw({checked:l,onToggle:s}){return u.jsxs("button",{type:"button",className:Is.wrap,onClick:s,"aria-pressed":l,children:[u.jsx("span",{className:Is.box,"data-checked":l||void 0,children:u.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:u.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#fff",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),u.jsxs("span",{className:Is.text,children:["Я ознакомлен и согласен с"," ",u.jsx("a",{href:"#",className:Is.link,onClick:i=>i.preventDefault(),children:"публичной офертой"}),". Вся деятельность компании соответствует законодательству Российской Федерации.",u.jsx("br",{}),u.jsx("span",{className:Is.required,children:"ОБЯЗАТЕЛЬНОЕ ПОЛЕ"})]})]})}const Rw="_wrap_1nqy0_1",Aw="_header_1nqy0_8",Mw="_title_1nqy0_17",zw="_subtitle_1nqy0_22",Dw="_pills_1nqy0_29",Ow="_pill_1nqy0_29",Lw="_pillValue_1nqy0_43",Bw="_body_1nqy0_53",Uw="_tabs_1nqy0_59",kw="_tab_1nqy0_59",Hw="_field_1nqy0_91",qw="_fieldError_1nqy0_95",Gw="_fieldLabel_1nqy0_101",$w="_fieldInput_1nqy0_109",Vw="_currency_1nqy0_135",Qw="_currencyIcon_1nqy0_144",Fw="_currencyRub_1nqy0_156",Yw="_currencyUsdt_1nqy0_160",Xw="_swapWrap_1nqy0_164",Zw="_swapBtn_1nqy0_169",Kw="_bottom_1nqy0_182",Jw="_payBtn_1nqy0_190",ke={wrap:Rw,header:Aw,title:Mw,subtitle:zw,pills:Dw,pill:Ow,pillValue:Lw,body:Bw,tabs:Uw,tab:kw,field:Hw,fieldError:qw,fieldLabel:Gw,fieldInput:$w,currency:Vw,currencyIcon:Qw,currencyRub:Fw,currencyUsdt:Yw,swapWrap:Xw,swapBtn:Zw,bottom:Kw,payBtn:Jw};function Ww(){const l=y3({usdtRate:0}),s=Jr(l.numRub,400),{data:i,isError:r}=D3(s),{data:f}=z3(),h=Number(f==null?void 0:f.usdt_exchange_rate)||0,m=Number(f==null?void 0:f.gas_fee)||g3,p=(i==null?void 0:i.total_price)??"",g=Number(p)||0,v=Number(i==null?void 0:i.service_fee)||0,b=l.numRub>0?g/l.numRub:0,{mutate:_,isPending:w}=n_();function R(){_({usdt_amount:l.numRub,usdt_exchange_rate:1,gas_fee:1,total_price:Number(p)||0})}return u.jsxs("div",{className:ke.wrap,children:[u.jsxs("div",{className:ke.header,children:[u.jsxs("div",{children:[u.jsx("h1",{className:ke.title,children:"Конвертация"}),u.jsx("div",{className:ke.subtitle,children:"Данные обновляются в реальном времени"})]}),u.jsxs("div",{className:ke.pills,children:[u.jsxs("div",{className:ke.pill,children:["Цена газа в RUB ",u.jsxs("span",{className:ke.pillValue,children:[m.toFixed(2)," RUB"]})]}),u.jsxs("div",{className:ke.pill,children:["USDT/RUB ",u.jsxs("span",{className:ke.pillValue,children:[h.toFixed(2)," ₽"]})]})]})]}),u.jsxs("div",{className:ke.body,children:[u.jsxs("div",{children:[u.jsx("div",{className:ke.tabs,children:u.jsx("button",{type:"button",className:ke.tab,"data-active":l.mode==="buy"||void 0,onClick:()=>l.setMode("buy"),children:"КУПИТЬ"})}),u.jsxs("div",{className:ke.field,children:[u.jsx("div",{className:ke.fieldLabel,children:"Конвертируете"}),u.jsxs("div",{className:ke.fieldInput,children:[u.jsx("input",{type:"text",value:l.rubVal,onChange:A=>l.updateRub(A.target.value),placeholder:"0",inputMode:"decimal"}),u.jsxs("div",{className:ke.currency,children:[u.jsx("span",{className:`${ke.currencyIcon} ${ke.currencyUsdt}`,children:"₮"}),"USDT"]})]}),r&&u.jsx("div",{className:ke.fieldError,children:"Сумма слишком большая и превышает 600 000 ₽"})]}),u.jsx("div",{className:ke.swapWrap,children:u.jsx("button",{type:"button",className:ke.swapBtn,onClick:l.toggleMode,"aria-label":"Поменять направление",children:u.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M8 2v12M4 10l4 4 4-4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}),u.jsxs("div",{className:ke.field,children:[u.jsx("div",{className:ke.fieldLabel,children:"Платите"}),u.jsxs("div",{className:ke.fieldInput,children:[u.jsx("input",{type:"text",value:p,readOnly:!0,placeholder:"0"}),u.jsxs("div",{className:ke.currency,children:[u.jsx("span",{className:`${ke.currencyIcon} ${ke.currencyRub}`,children:"₽"}),"RUB"]})]})]})]}),u.jsx(Sw,{amount:g,progress:v2(g),commission:v,effectiveRate:b})]}),u.jsx("div",{className:ke.bottom,children:u.jsx(Nw,{checked:l.agreed,onToggle:()=>l.setAgreed(!l.agreed)})}),u.jsx("button",{type:"button",className:ke.payBtn,onClick:R,disabled:!p||w||!l.agreed,children:w?"Обработка...":"Оплатить"})]})}const Iw="_page_gbj3c_1",Pw="_main_gbj3c_8",Bm={page:Iw,main:Pw};function ej(){return u.jsxs("div",{className:Bm.page,children:[u.jsx(Ki,{}),u.jsx("main",{className:Bm.main,children:u.jsx(Ww,{})}),u.jsx(Wr,{})]})}const Um=52;function tj(l){const[s,i]=x.useState(!1),[r,f]=x.useState(Um),[h,m]=x.useState(!1),p=x.useRef(null),g=x.useCallback(()=>{p.current&&clearInterval(p.current),f(Um),p.current=setInterval(()=>{f(_=>_<=1?(clearInterval(p.current),i(!0),0):_-1)},1e3)},[]);x.useEffect(()=>(g(),()=>{p.current&&clearInterval(p.current)}),[g]);const v=x.useCallback(()=>{i(_=>_?(g(),!1):(p.current&&clearInterval(p.current),!0))},[g]),b=x.useCallback(()=>{navigator.clipboard.writeText(l.join(" ")).then(()=>{m(!0),setTimeout(()=>m(!1),1500)})},[l]);return{hidden:s,countdown:r,copied:h,handleHide:v,handleCopy:b}}const nj="_content_o6p8v_1",aj="_titleRow_o6p8v_6",lj="_title_o6p8v_6",ij="_titleButtons_o6p8v_19",sj="_btnFixed_o6p8v_26",cj="_subtitle_o6p8v_34",rj="_countdown_o6p8v_42",oj="_seedGrid_o6p8v_47",uj="_seedCard_o6p8v_54",fj="_seedNum_o6p8v_73",dj="_seedWord_o6p8v_80",hj="_seedWordHidden_o6p8v_88",mj="_warning_o6p8v_93",pj="_warningIcon_o6p8v_101",vj="_warningText_o6p8v_107",gj="_profileLinkRow_o6p8v_115",yj="_profileLink_o6p8v_115",ht={content:nj,titleRow:aj,title:lj,titleButtons:ij,btnFixed:sj,subtitle:cj,countdown:rj,seedGrid:oj,seedCard:uj,seedNum:fj,seedWord:dj,seedWordHidden:hj,warning:mj,warningIcon:pj,warningText:vj,profileLinkRow:gj,profileLink:yj};function _j({words:l}){const{hidden:s,countdown:i,copied:r,handleHide:f,handleCopy:h}=tj(l);return u.jsxs("div",{className:ht.content,children:[u.jsxs("div",{className:ht.titleRow,children:[u.jsx("h1",{className:ht.title,children:"СИД ФРАЗА"}),u.jsxs("div",{className:ht.titleButtons,children:[u.jsx("div",{className:ht.btnFixed,children:u.jsx(xn,{variant:"outline",onClick:f,children:s?"ПОКАЗАТЬ":"СКРЫТЬ"})}),u.jsx("div",{className:ht.btnFixed,children:u.jsx(xn,{variant:"outline",onClick:h,children:r?"СКОПИРОВАНО":"КОПИРОВАТЬ"})})]})]}),!s&&u.jsxs("div",{className:ht.subtitle,children:["АВТОМАТИЧЕСКОЕ СКРЫТИЕ ЧЕРЕЗ"," ",u.jsx("span",{className:ht.countdown,children:i}),"С"]}),u.jsx("div",{className:ht.seedGrid,children:l.map((m,p)=>u.jsxs("div",{className:ht.seedCard,children:[u.jsxs("span",{className:ht.seedNum,children:[p+1,"."]}),u.jsx("span",{className:`${ht.seedWord} ${s?ht.seedWordHidden:""}`,children:s?"•••••":m})]},p))}),u.jsxs("div",{className:ht.warning,children:[u.jsx("span",{className:ht.warningIcon,children:"⚠️"}),u.jsx("p",{className:ht.warningText,children:"Никогда не передавайте сид-фразу третьим лицам. Тот, кто знает фразу — владеет кошельком."})]}),u.jsx("div",{className:ht.profileLinkRow,children:u.jsx(ya,{to:je.PROFILE,className:ht.profileLink,children:"Перейти в профиль"})})]})}const bj="_page_1mk6w_1",xj="_main_1mk6w_8",Sj="_glow_1mk6w_17",B0={page:bj,main:xj,glow:Sj};function Cj(){const{data:l,isLoading:s}=n7(),i=l?l.split(" "):[];return u.jsxs("div",{className:B0.page,children:[u.jsx(Ki,{}),u.jsxs("main",{className:B0.main,children:[u.jsx("div",{className:B0.glow}),!s&&u.jsx(_j,{words:i})]})]})}const wj="https://app.kyc.elcsa.ru";function jj(){return tp(!0)}async function tp(l){const s=await al(),i=await fetch(`${wj}/kyc/create`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":s},body:JSON.stringify({})});if(i.status===401&&l)try{return await Yi(),tp(!1)}catch{throw Sn.clear(),new Error("Unauthorized")}const r=await i.json();if(!i.ok)throw r;return r}function Ej(){const l=Vt({mutationFn:jj});return{trigger:l.mutate,data:l.data,isLoading:l.isPending,isError:l.isError}}const Tj="_backdrop_1do7s_1",Nj="_modal_1do7s_12",Rj="_closeBtn_1do7s_22",Aj="_body_1do7s_40",Mj="_qrBlock_1do7s_47",zj="_qrImage_1do7s_55",Dj="_linkBtn_1do7s_63",El={backdrop:Tj,modal:Nj,closeBtn:Rj,body:Aj,qrBlock:Mj,qrImage:zj,linkBtn:Dj};function Oj({data:l,onClose:s}){return u.jsx("div",{className:El.backdrop,onClick:s,children:u.jsxs("div",{className:El.modal,onClick:i=>i.stopPropagation(),children:[u.jsx("button",{className:El.closeBtn,onClick:s,type:"button",children:"×"}),u.jsx("div",{className:El.body,children:u.jsxs("div",{className:El.qrBlock,children:[u.jsx("img",{className:El.qrImage,src:l.qr_code,alt:"QR-код для верификации"}),u.jsx("a",{className:El.linkBtn,href:l.link,target:"_blank",rel:"noopener noreferrer",children:"Перейти к верификации"})]})})]})})}const Lj="_card_omb8e_1",Bj="_logo_omb8e_13",Uj="_iconWrapper_omb8e_21",kj="_description_omb8e_34",Hj="_buttonWrapper_omb8e_42",qj="_error_omb8e_47",Ti={card:Lj,logo:Bj,iconWrapper:Uj,description:kj,buttonWrapper:Hj,error:qj};function Gj(){const{trigger:l,data:s,isLoading:i,isError:r}=Ej(),f=Mn(),h=kl(),{data:m}=Xi({refetchInterval:s?5e3:!1});x.useEffect(()=>{m!=null&&m.kyc_verified&&f(je.SEED_PHRASE,{replace:!0})},[m==null?void 0:m.kyc_verified,f]);const p=()=>{h.invalidateQueries({queryKey:["me"]})};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:Ti.card,children:[u.jsx("div",{className:Ti.logo,children:u.jsx("img",{src:Hl,alt:"ЭКСА"})}),u.jsx("div",{className:Ti.iconWrapper,children:u.jsxs("svg",{width:"38",height:"38",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.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"}),u.jsx("path",{d:"M9 12l2 2 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),u.jsx("p",{className:Ti.description,children:"Для продолжения работы необходимо пройти KYC верификацию"}),u.jsx("div",{className:Ti.buttonWrapper,children:u.jsx(dc,{label:i?"Загрузка...":"Подтвердить личность",type:"button",onClick:()=>l(),disabled:i})}),r&&u.jsx("p",{className:Ti.error,children:"Произошла ошибка. Попробуй перезагрузить страницу и попробовать снова."})]}),s&&u.jsx(Oj,{data:s,onClose:p})]})}const $j="_page_6lnfw_1",Vj={page:$j};function Qj(){const{data:l,isLoading:s}=Xi();return s?null:l!=null&&l.kyc_verified?u.jsx(nc,{to:je.PROFILE,replace:!0}):u.jsx("div",{className:Vj.page,children:u.jsx(Gj,{})})}function Fj(){const{pathname:l}=cn();return x.useEffect(()=>{window.scrollTo(0,0)},[l]),null}function Yj(){const{isAuthenticated:l,isLoading:s}=C2(),i=cn();return s?null:l?u.jsx(u3,{}):u.jsx(nc,{to:je.LOGIN,state:{from:i},replace:!0})}function Xj(){var f,h;const{isAuthenticated:l,isLoading:s}=C2(),r=((h=(f=cn().state)==null?void 0:f.from)==null?void 0:h.pathname)??je.WALLET;return s?null:l?u.jsx(nc,{to:r,replace:!0}):u.jsx(u3,{})}function Zj(){return u.jsxs(ly,{children:[u.jsx(Fj,{}),u.jsxs(Og,{children:[u.jsx(Ht,{path:je.HOME,element:u.jsx(k8,{})}),u.jsxs(Ht,{element:u.jsx(Xj,{}),children:[u.jsx(Ht,{path:je.LOGIN,element:u.jsx(JC,{})}),u.jsx(Ht,{path:je.REGISTER,element:u.jsx(fw,{})})]}),u.jsxs(Ht,{element:u.jsx(Yj,{}),children:[u.jsx(Ht,{path:je.CONVERTER,element:u.jsx(ej,{})}),u.jsx(Ht,{path:je.WALLET,element:u.jsx(mm,{})}),u.jsx(Ht,{path:je.WALLET_CHAIN,element:u.jsx(mm,{})}),u.jsx(Ht,{path:je.SWAP,element:u.jsx(mS,{})}),u.jsx(Ht,{path:je.BRIDGE,element:u.jsx(NS,{})}),u.jsx(Ht,{path:je.PROFILE,element:u.jsx(DC,{})}),u.jsx(Ht,{path:je.SEED_PHRASE,element:u.jsx(Cj,{})}),u.jsx(Ht,{path:je.KYC,element:u.jsx(Qj,{})})]})]})]})}const Kj=new O6({defaultOptions:{queries:{retry:!1}}});function Jj({children:l}){return u.jsx(L6,{client:Kj,children:l})}function Wj(){return u.jsx(Jj,{children:u.jsx(Zj,{})})}O4.createRoot(document.getElementById("root")).render(u.jsx(x.StrictMode,{children:u.jsx(Wj,{})}));