Files
frontend/dist/assets/index-DFLADCGY.js
2026-06-24 00:03:18 +03:00

162 lines
599 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 Um=a=>{throw TypeError(a)};var vd=(a,s,i)=>s.has(a)||Um("Cannot "+i);var T=(a,s,i)=>(vd(a,s,"read from private field"),i?i.call(a):s.get(a)),se=(a,s,i)=>s.has(a)?Um("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,i),Z=(a,s,i,r)=>(vd(a,s,"write to private field"),r?r.call(a,i):s.set(a,i),i),je=(a,s,i)=>(vd(a,s,"access private method"),i);var xc=(a,s,i,r)=>({set _(d){Z(a,s,d,i)},get _(){return T(a,s,r)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function i(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(d){if(d.ep)return;d.ep=!0;const f=i(d);fetch(d.href,f)}})();function S3(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var yd={exports:{}},Ro={};/**
* @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 $m;function py(){if($m)return Ro;$m=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(r,d,f){var m=null;if(f!==void 0&&(m=""+f),d.key!==void 0&&(m=""+d.key),"key"in d){f={};for(var _ in d)_!=="key"&&(f[_]=d[_])}else f=d;return d=f.ref,{$$typeof:a,type:r,key:m,ref:d!==void 0?d:null,props:f}}return Ro.Fragment=s,Ro.jsx=i,Ro.jsxs=i,Ro}var Hm;function gy(){return Hm||(Hm=1,yd.exports=py()),yd.exports}var o=gy(),bd={exports:{}},ye={};/**
* @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 qm;function _y(){if(qm)return ye;qm=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function j(R){return R===null||typeof R!="object"?null:(R=x&&R[x]||R["@@iterator"],typeof R=="function"?R:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,N={};function A(R,V,K){this.props=R,this.context=V,this.refs=N,this.updater=K||w}A.prototype.isReactComponent={},A.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,V,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function z(){}z.prototype=A.prototype;function O(R,V,K){this.props=R,this.context=V,this.refs=N,this.updater=K||w}var q=O.prototype=new z;q.constructor=O,C(q,A.prototype),q.isPureReactComponent=!0;var Y=Array.isArray;function X(){}var U={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function W(R,V,K){var J=K.ref;return{$$typeof:a,type:R,key:V,ref:J!==void 0?J:null,props:K}}function ce(R,V){return W(R.type,V,R.props)}function ie(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function ue(R){var V={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(K){return V[K]})}var te=/\/+/g;function he(R,V){return typeof R=="object"&&R!==null&&R.key!=null?ue(""+R.key):V.toString(36)}function ne(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(X,X):(R.status="pending",R.then(function(V){R.status==="pending"&&(R.status="fulfilled",R.value=V)},function(V){R.status==="pending"&&(R.status="rejected",R.reason=V)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function H(R,V,K,J,ge){var xe=typeof R;(xe==="undefined"||xe==="boolean")&&(R=null);var ke=!1;if(R===null)ke=!0;else switch(xe){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(R.$$typeof){case a:case s:ke=!0;break;case v:return ke=R._init,H(ke(R._payload),V,K,J,ge)}}if(ke)return ge=ge(R),ke=J===""?"."+he(R,0):J,Y(ge)?(K="",ke!=null&&(K=ke.replace(te,"$&/")+"/"),H(ge,V,K,"",function(ga){return ga})):ge!=null&&(ie(ge)&&(ge=ce(ge,K+(ge.key==null||R&&R.key===ge.key?"":(""+ge.key).replace(te,"$&/")+"/")+ke)),V.push(ge)),1;ke=0;var Ct=J===""?".":J+":";if(Y(R))for(var We=0;We<R.length;We++)J=R[We],xe=Ct+he(J,We),ke+=H(J,V,K,xe,ge);else if(We=j(R),typeof We=="function")for(R=We.call(R),We=0;!(J=R.next()).done;)J=J.value,xe=Ct+he(J,We++),ke+=H(J,V,K,xe,ge);else if(xe==="object"){if(typeof R.then=="function")return H(ne(R),V,K,J,ge);throw V=String(R),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return ke}function I(R,V,K){if(R==null)return R;var J=[],ge=0;return H(R,J,"","",function(xe){return V.call(K,xe,ge++)}),J}function ae(R){if(R._status===-1){var V=R._result;V=V(),V.then(function(K){(R._status===0||R._status===-1)&&(R._status=1,R._result=K)},function(K){(R._status===0||R._status===-1)&&(R._status=2,R._result=K)}),R._status===-1&&(R._status=0,R._result=V)}if(R._status===1)return R._result.default;throw R._result}var fe=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},_e={map:I,forEach:function(R,V,K){I(R,function(){V.apply(this,arguments)},K)},count:function(R){var V=0;return I(R,function(){V++}),V},toArray:function(R){return I(R,function(V){return V})||[]},only:function(R){if(!ie(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return ye.Activity=y,ye.Children=_e,ye.Component=A,ye.Fragment=i,ye.Profiler=d,ye.PureComponent=O,ye.StrictMode=r,ye.Suspense=h,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,ye.__COMPILER_RUNTIME={__proto__:null,c:function(R){return U.H.useMemoCache(R)}},ye.cache=function(R){return function(){return R.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(R,V,K){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var J=C({},R.props),ge=R.key;if(V!=null)for(xe in V.key!==void 0&&(ge=""+V.key),V)!P.call(V,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&V.ref===void 0||(J[xe]=V[xe]);var xe=arguments.length-2;if(xe===1)J.children=K;else if(1<xe){for(var ke=Array(xe),Ct=0;Ct<xe;Ct++)ke[Ct]=arguments[Ct+2];J.children=ke}return W(R.type,ge,J)},ye.createContext=function(R){return R={$$typeof:m,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},ye.createElement=function(R,V,K){var J,ge={},xe=null;if(V!=null)for(J in V.key!==void 0&&(xe=""+V.key),V)P.call(V,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ge[J]=V[J]);var ke=arguments.length-2;if(ke===1)ge.children=K;else if(1<ke){for(var Ct=Array(ke),We=0;We<ke;We++)Ct[We]=arguments[We+2];ge.children=Ct}if(R&&R.defaultProps)for(J in ke=R.defaultProps,ke)ge[J]===void 0&&(ge[J]=ke[J]);return W(R,xe,ge)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(R){return{$$typeof:_,render:R}},ye.isValidElement=ie,ye.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:ae}},ye.memo=function(R,V){return{$$typeof:p,type:R,compare:V===void 0?null:V}},ye.startTransition=function(R){var V=U.T,K={};U.T=K;try{var J=R(),ge=U.S;ge!==null&&ge(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(X,fe)}catch(xe){fe(xe)}finally{V!==null&&K.types!==null&&(V.types=K.types),U.T=V}},ye.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},ye.use=function(R){return U.H.use(R)},ye.useActionState=function(R,V,K){return U.H.useActionState(R,V,K)},ye.useCallback=function(R,V){return U.H.useCallback(R,V)},ye.useContext=function(R){return U.H.useContext(R)},ye.useDebugValue=function(){},ye.useDeferredValue=function(R,V){return U.H.useDeferredValue(R,V)},ye.useEffect=function(R,V){return U.H.useEffect(R,V)},ye.useEffectEvent=function(R){return U.H.useEffectEvent(R)},ye.useId=function(){return U.H.useId()},ye.useImperativeHandle=function(R,V,K){return U.H.useImperativeHandle(R,V,K)},ye.useInsertionEffect=function(R,V){return U.H.useInsertionEffect(R,V)},ye.useLayoutEffect=function(R,V){return U.H.useLayoutEffect(R,V)},ye.useMemo=function(R,V){return U.H.useMemo(R,V)},ye.useOptimistic=function(R,V){return U.H.useOptimistic(R,V)},ye.useReducer=function(R,V,K){return U.H.useReducer(R,V,K)},ye.useRef=function(R){return U.H.useRef(R)},ye.useState=function(R){return U.H.useState(R)},ye.useSyncExternalStore=function(R,V,K){return U.H.useSyncExternalStore(R,V,K)},ye.useTransition=function(){return U.H.useTransition()},ye.version="19.2.5",ye}var Fm;function g2(){return Fm||(Fm=1,bd.exports=_y()),bd.exports}var S=g2();const Tt=S3(S);var xd={exports:{}},ko={},Sd={exports:{}},jd={};/**
* @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 Gm;function vy(){return Gm||(Gm=1,(function(a){function s(H,I){var ae=H.length;H.push(I);e:for(;0<ae;){var fe=ae-1>>>1,_e=H[fe];if(0<d(_e,I))H[fe]=I,H[ae]=_e,ae=fe;else break e}}function i(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var I=H[0],ae=H.pop();if(ae!==I){H[0]=ae;e:for(var fe=0,_e=H.length,R=_e>>>1;fe<R;){var V=2*(fe+1)-1,K=H[V],J=V+1,ge=H[J];if(0>d(K,ae))J<_e&&0>d(ge,K)?(H[fe]=ge,H[J]=ae,fe=J):(H[fe]=K,H[V]=ae,fe=V);else if(J<_e&&0>d(ge,ae))H[fe]=ge,H[J]=ae,fe=J;else break e}}return I}function d(H,I){var ae=H.sortIndex-I.sortIndex;return ae!==0?ae:H.id-I.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,_=m.now();a.unstable_now=function(){return m.now()-_}}var h=[],p=[],v=1,y=null,x=3,j=!1,w=!1,C=!1,N=!1,A=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function q(H){for(var I=i(p);I!==null;){if(I.callback===null)r(p);else if(I.startTime<=H)r(p),I.sortIndex=I.expirationTime,s(h,I);else break;I=i(p)}}function Y(H){if(C=!1,q(H),!w)if(i(h)!==null)w=!0,X||(X=!0,ue());else{var I=i(p);I!==null&&ne(Y,I.startTime-H)}}var X=!1,U=-1,P=5,W=-1;function ce(){return N?!0:!(a.unstable_now()-W<P)}function ie(){if(N=!1,X){var H=a.unstable_now();W=H;var I=!0;try{e:{w=!1,C&&(C=!1,z(U),U=-1),j=!0;var ae=x;try{t:{for(q(H),y=i(h);y!==null&&!(y.expirationTime>H&&ce());){var fe=y.callback;if(typeof fe=="function"){y.callback=null,x=y.priorityLevel;var _e=fe(y.expirationTime<=H);if(H=a.unstable_now(),typeof _e=="function"){y.callback=_e,q(H),I=!0;break t}y===i(h)&&r(h),q(H)}else r(h);y=i(h)}if(y!==null)I=!0;else{var R=i(p);R!==null&&ne(Y,R.startTime-H),I=!1}}break e}finally{y=null,x=ae,j=!1}I=void 0}}finally{I?ue():X=!1}}}var ue;if(typeof O=="function")ue=function(){O(ie)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,he=te.port2;te.port1.onmessage=ie,ue=function(){he.postMessage(null)}}else ue=function(){A(ie,0)};function ne(H,I){U=A(function(){H(a.unstable_now())},I)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(H){H.callback=null},a.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<H?Math.floor(1e3/H):5},a.unstable_getCurrentPriorityLevel=function(){return x},a.unstable_next=function(H){switch(x){case 1:case 2:case 3:var I=3;break;default:I=x}var ae=x;x=I;try{return H()}finally{x=ae}},a.unstable_requestPaint=function(){N=!0},a.unstable_runWithPriority=function(H,I){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ae=x;x=H;try{return I()}finally{x=ae}},a.unstable_scheduleCallback=function(H,I,ae){var fe=a.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?fe+ae:fe):ae=fe,H){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ae+_e,H={id:v++,callback:I,priorityLevel:H,startTime:ae,expirationTime:_e,sortIndex:-1},ae>fe?(H.sortIndex=ae,s(p,H),i(h)===null&&H===i(p)&&(C?(z(U),U=-1):C=!0,ne(Y,ae-fe))):(H.sortIndex=_e,s(h,H),w||j||(w=!0,X||(X=!0,ue()))),H},a.unstable_shouldYield=ce,a.unstable_wrapCallback=function(H){var I=x;return function(){var ae=x;x=I;try{return H.apply(this,arguments)}finally{x=ae}}}})(jd)),jd}var Vm;function yy(){return Vm||(Vm=1,Sd.exports=vy()),Sd.exports}var wd={exports:{}},Gt={};/**
* @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 Qm;function by(){if(Qm)return Gt;Qm=1;var a=g2();function s(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(s(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},d=Symbol.for("react.portal");function f(h,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:y==null?null:""+y,children:h,containerInfo:p,implementation:v}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Gt.createPortal=function(h,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(s(299));return f(h,p,null,v)},Gt.flushSync=function(h){var p=m.T,v=r.p;try{if(m.T=null,r.p=2,h)return h()}finally{m.T=p,r.p=v,r.d.f()}},Gt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(h,p))},Gt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Gt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var v=p.as,y=_(v,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,j=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:j}):v==="script"&&r.d.X(h,{crossOrigin:y,integrity:x,fetchPriority:j,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Gt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=_(p.as,p.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(h)},Gt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=_(v,p.crossOrigin);r.d.L(h,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Gt.preloadModule=function(h,p){if(typeof h=="string")if(p){var v=_(p.as,p.crossOrigin);r.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(h)},Gt.requestFormReset=function(h){r.d.r(h)},Gt.unstable_batchedUpdates=function(h,p){return h(p)},Gt.useFormState=function(h,p,v){return m.H.useFormState(h,p,v)},Gt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Gt.version="19.2.5",Gt}var Ym;function xy(){if(Ym)return wd.exports;Ym=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),wd.exports=by(),wd.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 Pm;function Sy(){if(Pm)return ko;Pm=1;var a=yy(),s=g2(),i=xy();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function 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 _(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 h(e){if(f(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var u=c.alternate;if(u===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===n)return h(c),e;if(u===l)return h(c),t;u=u.sibling}throw Error(r(188))}if(n.return!==l.return)n=c,l=u;else{for(var g=!1,b=c.child;b;){if(b===n){g=!0,n=c,l=u;break}if(b===l){g=!0,l=c,n=u;break}b=b.sibling}if(!g){for(b=u.child;b;){if(b===n){g=!0,n=u,l=c;break}if(b===l){g=!0,l=u,n=c;break}b=b.sibling}if(!g)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),O=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case A:return"Profiler";case N:return"StrictMode";case Y:return"Suspense";case X:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case O:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var ne=Array.isArray,H=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},fe=[],_e=-1;function R(e){return{current:e}}function V(e){0>_e||(e.current=fe[_e],fe[_e]=null,_e--)}function K(e,t){_e++,fe[_e]=e.current,e.current=t}var J=R(null),ge=R(null),xe=R(null),ke=R(null);function Ct(e,t){switch(K(xe,t),K(ge,e),K(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?om(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=om(t),e=rm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(J),K(J,e)}function We(){V(J),V(ge),V(xe)}function ga(e){e.memoizedState!==null&&K(ke,e);var t=J.current,n=rm(t,e.type);t!==n&&(K(ge,e),K(J,n))}function _a(e){ge.current===e&&(V(J),V(ge)),ke.current===e&&(V(ke),Co._currentValue=ae)}var Ia,Dl;function pn(e){if(Ia===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ia=t&&t[1]||"",Dl=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ia+e+Dl}var va=!1;function ya(e,t){if(!e||va)return"";va=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch($){var B=$}Reflect.construct(e,[],Q)}else{try{Q.call()}catch($){B=$}e.call(Q.prototype)}}else{try{throw Error()}catch($){B=$}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch($){if($&&B&&typeof $.stack=="string")return[$.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),g=u[0],b=u[1];if(g&&b){var E=g.split(`
`),D=b.split(`
`);for(c=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;if(l===E.length||c===D.length)for(l=E.length-1,c=D.length-1;1<=l&&0<=c&&E[l]!==D[c];)c--;for(;1<=l&&0<=c;l--,c--)if(E[l]!==D[c]){if(l!==1||c!==1)do if(l--,c--,0>c||E[l]!==D[c]){var F=`
`+E[l].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=l&&0<=c);break}}}finally{va=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?pn(n):""}function ze(e,t){switch(e.tag){case 26:case 27:case 5:return pn(e.type);case 16:return pn("Lazy");case 13:return e.child!==t&&t!==null?pn("Suspense Fallback"):pn("Suspense");case 19:return pn("SuspenseList");case 0:case 15:return ya(e.type,!1);case 11:return ya(e.type.render,!1);case 1:return ya(e.type,!0);case 31:return pn("Activity");default:return""}}function nn(e){try{var t="",n=null;do t+=ze(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var ba=Object.prototype.hasOwnProperty,Ve=a.unstable_scheduleCallback,Pt=a.unstable_cancelCallback,nr=a.unstable_shouldYield,ar=a.unstable_requestPaint,gn=a.unstable_now,Xg=a.unstable_getCurrentPriorityLevel,U2=a.unstable_ImmediatePriority,$2=a.unstable_UserBlockingPriority,lr=a.unstable_NormalPriority,Kg=a.unstable_LowPriority,H2=a.unstable_IdlePriority,Zg=a.log,Wg=a.unstable_setDisableYieldValue,zi=null,_n=null;function Xa(e){if(typeof Zg=="function"&&Wg(e),_n&&typeof _n.setStrictMode=="function")try{_n.setStrictMode(zi,e)}catch{}}var vn=Math.clz32?Math.clz32:t_,Jg=Math.log,e_=Math.LN2;function t_(e){return e>>>=0,e===0?32:31-(Jg(e)/e_|0)|0}var sr=256,ir=262144,or=4194304;function zl(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 rr(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,u=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~u,l!==0?c=zl(l):(g&=b,g!==0?c=zl(g):n||(n=b&~e,n!==0&&(c=zl(n))))):(b=l&~u,b!==0?c=zl(b):g!==0?c=zl(g):n||(n=l&~e,n!==0&&(c=zl(n)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:c}function Bi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function n_(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 q2(){var e=or;return or<<=1,(or&62914560)===0&&(or=4194304),e}function iu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ui(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function a_(e,t,n,l,c,u){var g=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 b=e.entanglements,E=e.expirationTimes,D=e.hiddenUpdates;for(n=g&~n;0<n;){var F=31-vn(n),Q=1<<F;b[F]=0,E[F]=-1;var B=D[F];if(B!==null)for(D[F]=null,F=0;F<B.length;F++){var $=B[F];$!==null&&($.lane&=-536870913)}n&=~Q}l!==0&&F2(e,l,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(g&~t))}function F2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vn(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function G2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-vn(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function V2(e,t){var n=t&-t;return n=(n&42)!==0?1:ou(n),(n&(e.suspendedLanes|t))!==0?0:n}function ou(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 ru(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Q2(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:Am(e.type))}function Y2(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var Ka=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Ka,an="__reactProps$"+Ka,js="__reactContainer$"+Ka,cu="__reactEvents$"+Ka,l_="__reactListeners$"+Ka,s_="__reactHandles$"+Ka,P2="__reactResources$"+Ka,$i="__reactMarker$"+Ka;function uu(e){delete e[Bt],delete e[an],delete e[cu],delete e[l_],delete e[s_]}function ws(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[js]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pm(e);e!==null;){if(n=e[Bt])return n;e=pm(e)}return t}e=n,n=e.parentNode}return null}function Cs(e){if(e=e[Bt]||e[js]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ns(e){var t=e[P2];return t||(t=e[P2]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function kt(e){e[$i]=!0}var I2=new Set,X2={};function Bl(e,t){Es(e,t),Es(e+"Capture",t)}function Es(e,t){for(X2[e]=t,e=0;e<t.length;e++)I2.add(t[e])}var i_=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={},Z2={};function o_(e){return ba.call(Z2,e)?!0:ba.call(K2,e)?!1:i_.test(e)?Z2[e]=!0:(K2[e]=!0,!1)}function cr(e,t,n){if(o_(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ur(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 xa(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function On(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function W2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function r_(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){n=""+g,u.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function du(e){if(!e._valueTracker){var t=W2(e)?"checked":"value";e._valueTracker=r_(e,t,""+e[t])}}function J2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=W2(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function dr(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 c_=/[\n"\\]/g;function Ln(e){return e.replace(c_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fu(e,t,n,l,c,u,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+On(t)):e.value!==""+On(t)&&(e.value=""+On(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?hu(e,g,On(t)):n!=null?hu(e,g,On(n)):l!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+On(b):e.removeAttribute("name")}function ef(e,t,n,l,c,u,g,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){du(e);return}n=n!=null?""+On(n):"",t=t!=null?""+On(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),du(e)}function hu(e,t,n){t==="number"&&dr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ts(e,t,n,l){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&&l&&(e[n].defaultSelected=!0)}else{for(n=""+On(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function tf(e,t,n){if(t!=null&&(t=""+On(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+On(n):""}function nf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(ne(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=On(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),du(e)}function Rs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var u_=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 af(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||u_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function lf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&n[c]!==l&&af(e,c,l)}else for(var u in t)t.hasOwnProperty(u)&&af(e,u,t[u])}function mu(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 d_=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"]]),f_=/^[\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 fr(e){return f_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sa(){}var pu=null;function gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ks=null,As=null;function sf(e){var t=Cs(e);if(t&&(e=t.stateNode)){var n=e[an]||null;e:switch(e=t.stateNode,t.type){case"input":if(fu(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="'+Ln(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[an]||null;if(!c)throw Error(r(90));fu(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&J2(l)}break e;case"textarea":tf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ts(e,!!n.multiple,t,!1)}}}var _u=!1;function of(e,t,n){if(_u)return e(t,n);_u=!0;try{var l=e(t);return l}finally{if(_u=!1,(ks!==null||As!==null)&&(Jr(),ks&&(t=ks,e=As,As=ks=null,sf(t),e)))for(t=0;t<e.length;t++)sf(e[t])}}function qi(e,t){var n=e.stateNode;if(n===null)return null;var l=n[an]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var ja=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vu=!1;if(ja)try{var Fi={};Object.defineProperty(Fi,"passive",{get:function(){vu=!0}}),window.addEventListener("test",Fi,Fi),window.removeEventListener("test",Fi,Fi)}catch{vu=!1}var Za=null,yu=null,hr=null;function rf(){if(hr)return hr;var e,t=yu,n=t.length,l,c="value"in Za?Za.value:Za.textContent,u=c.length;for(e=0;e<n&&t[e]===c[e];e++);var g=n-e;for(l=1;l<=g&&t[n-l]===c[u-l];l++);return hr=c.slice(e,1<l?1-l:void 0)}function mr(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 pr(){return!0}function cf(){return!1}function ln(e){function t(n,l,c,u,g){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=u,this.target=g,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?pr:cf,this.isPropagationStopped=cf,this}return y(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=pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pr)},persist:function(){},isPersistent:pr}),t}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gr=ln(Ul),Gi=y({},Ul,{view:0,detail:0}),h_=ln(Gi),bu,xu,Vi,_r=y({},Gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,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!==Vi&&(Vi&&e.type==="mousemove"?(bu=e.screenX-Vi.screenX,xu=e.screenY-Vi.screenY):xu=bu=0,Vi=e),bu)},movementY:function(e){return"movementY"in e?e.movementY:xu}}),uf=ln(_r),m_=y({},_r,{dataTransfer:0}),p_=ln(m_),g_=y({},Gi,{relatedTarget:0}),Su=ln(g_),__=y({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),v_=ln(__),y_=y({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),b_=ln(y_),x_=y({},Ul,{data:0}),df=ln(x_),S_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j_={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"},w_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w_[e])?!!t[e]:!1}function ju(){return C_}var N_=y({},Gi,{key:function(e){if(e.key){var t=S_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(e){return e.type==="keypress"?mr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),E_=ln(N_),T_=y({},_r,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ff=ln(T_),R_=y({},Gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),k_=ln(R_),A_=y({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),M_=ln(A_),O_=y({},_r,{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}),L_=ln(O_),D_=y({},Ul,{newState:0,oldState:0}),z_=ln(D_),B_=[9,13,27,32],wu=ja&&"CompositionEvent"in window,Qi=null;ja&&"documentMode"in document&&(Qi=document.documentMode);var U_=ja&&"TextEvent"in window&&!Qi,hf=ja&&(!wu||Qi&&8<Qi&&11>=Qi),mf=" ",pf=!1;function gf(e,t){switch(e){case"keyup":return B_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _f(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ms=!1;function $_(e,t){switch(e){case"compositionend":return _f(t);case"keypress":return t.which!==32?null:(pf=!0,mf);case"textInput":return e=t.data,e===mf&&pf?null:e;default:return null}}function H_(e,t){if(Ms)return e==="compositionend"||!wu&&gf(e,t)?(e=rf(),hr=yu=Za=null,Ms=!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 hf&&t.locale!=="ko"?null:t.data;default:return null}}var q_={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 vf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!q_[e.type]:t==="textarea"}function yf(e,t,n,l){ks?As?As.push(l):As=[l]:ks=l,t=ic(t,"onChange"),0<t.length&&(n=new gr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Yi=null,Pi=null;function F_(e){tm(e,0)}function vr(e){var t=Hi(e);if(J2(t))return e}function bf(e,t){if(e==="change")return t}var xf=!1;if(ja){var Cu;if(ja){var Nu="oninput"in document;if(!Nu){var Sf=document.createElement("div");Sf.setAttribute("oninput","return;"),Nu=typeof Sf.oninput=="function"}Cu=Nu}else Cu=!1;xf=Cu&&(!document.documentMode||9<document.documentMode)}function jf(){Yi&&(Yi.detachEvent("onpropertychange",wf),Pi=Yi=null)}function wf(e){if(e.propertyName==="value"&&vr(Pi)){var t=[];yf(t,Pi,e,gu(e)),of(F_,t)}}function G_(e,t,n){e==="focusin"?(jf(),Yi=t,Pi=n,Yi.attachEvent("onpropertychange",wf)):e==="focusout"&&jf()}function V_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vr(Pi)}function Q_(e,t){if(e==="click")return vr(t)}function Y_(e,t){if(e==="input"||e==="change")return vr(t)}function P_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yn=typeof Object.is=="function"?Object.is:P_;function Ii(e,t){if(yn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var c=n[l];if(!ba.call(t,c)||!yn(e[c],t[c]))return!1}return!0}function Cf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nf(e,t){var n=Cf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cf(n)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=dr(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=dr(e.document)}return t}function Eu(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 I_=ja&&"documentMode"in document&&11>=document.documentMode,Os=null,Tu=null,Xi=null,Ru=!1;function Rf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ru||Os==null||Os!==dr(l)||(l=Os,"selectionStart"in l&&Eu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Xi&&Ii(Xi,l)||(Xi=l,l=ic(Tu,"onSelect"),0<l.length&&(t=new gr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Os)))}function $l(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ls={animationend:$l("Animation","AnimationEnd"),animationiteration:$l("Animation","AnimationIteration"),animationstart:$l("Animation","AnimationStart"),transitionrun:$l("Transition","TransitionRun"),transitionstart:$l("Transition","TransitionStart"),transitioncancel:$l("Transition","TransitionCancel"),transitionend:$l("Transition","TransitionEnd")},ku={},kf={};ja&&(kf=document.createElement("div").style,"AnimationEvent"in window||(delete Ls.animationend.animation,delete Ls.animationiteration.animation,delete Ls.animationstart.animation),"TransitionEvent"in window||delete Ls.transitionend.transition);function Hl(e){if(ku[e])return ku[e];if(!Ls[e])return e;var t=Ls[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kf)return ku[e]=t[n];return e}var Af=Hl("animationend"),Mf=Hl("animationiteration"),Of=Hl("animationstart"),X_=Hl("transitionrun"),K_=Hl("transitionstart"),Z_=Hl("transitioncancel"),Lf=Hl("transitionend"),Df=new Map,Au="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(" ");Au.push("scrollEnd");function Pn(e,t){Df.set(e,t),Bl(t,[e])}var yr=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)},Dn=[],Ds=0,Mu=0;function br(){for(var e=Ds,t=Mu=Ds=0;t<e;){var n=Dn[t];Dn[t++]=null;var l=Dn[t];Dn[t++]=null;var c=Dn[t];Dn[t++]=null;var u=Dn[t];if(Dn[t++]=null,l!==null&&c!==null){var g=l.pending;g===null?c.next=c:(c.next=g.next,g.next=c),l.pending=c}u!==0&&zf(n,c,u)}}function xr(e,t,n,l){Dn[Ds++]=e,Dn[Ds++]=t,Dn[Ds++]=n,Dn[Ds++]=l,Mu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ou(e,t,n,l){return xr(e,t,n,l),Sr(e)}function ql(e,t){return xr(e,null,null,t),Sr(e)}function zf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,u=e.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(c=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,c&&t!==null&&(c=31-vn(n),e=u.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),u):null}function Sr(e){if(50<vo)throw vo=0,F0=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var zs={};function W_(e,t,n,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,n,l){return new W_(e,t,n,l)}function Lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wa(e,t){var n=e.alternate;return n===null?(n=bn(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 Bf(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 jr(e,t,n,l,c,u){var g=0;if(l=e,typeof e=="function")Lu(e)&&(g=1);else if(typeof e=="string")g=ay(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=bn(31,n,t,c),e.elementType=W,e.lanes=u,e;case C:return Fl(n.children,c,u,t);case N:g=8,c|=24;break;case A:return e=bn(12,n,t,c|2),e.elementType=A,e.lanes=u,e;case Y:return e=bn(13,n,t,c),e.elementType=Y,e.lanes=u,e;case X:return e=bn(19,n,t,c),e.elementType=X,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:g=10;break e;case z:g=9;break e;case q:g=11;break e;case U:g=14;break e;case P:g=16,l=null;break e}g=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=bn(g,n,t,c),t.elementType=e,t.type=l,t.lanes=u,t}function Fl(e,t,n,l){return e=bn(7,e,l,t),e.lanes=n,e}function Du(e,t,n){return e=bn(6,e,null,t),e.lanes=n,e}function Uf(e){var t=bn(18,null,null,0);return t.stateNode=e,t}function zu(e,t,n){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $f=new WeakMap;function zn(e,t){if(typeof e=="object"&&e!==null){var n=$f.get(e);return n!==void 0?n:(t={value:e,source:t,stack:nn(t)},$f.set(e,t),t)}return{value:e,source:t,stack:nn(t)}}var Bs=[],Us=0,wr=null,Ki=0,Bn=[],Un=0,Wa=null,aa=1,la="";function Ca(e,t){Bs[Us++]=Ki,Bs[Us++]=wr,wr=e,Ki=t}function Hf(e,t,n){Bn[Un++]=aa,Bn[Un++]=la,Bn[Un++]=Wa,Wa=e;var l=aa;e=la;var c=32-vn(l)-1;l&=~(1<<c),n+=1;var u=32-vn(t)+c;if(30<u){var g=c-c%5;u=(l&(1<<g)-1).toString(32),l>>=g,c-=g,aa=1<<32-vn(t)+c|n<<c|l,la=u+e}else aa=1<<u|n<<c|l,la=e}function Bu(e){e.return!==null&&(Ca(e,1),Hf(e,1,0))}function Uu(e){for(;e===wr;)wr=Bs[--Us],Bs[Us]=null,Ki=Bs[--Us],Bs[Us]=null;for(;e===Wa;)Wa=Bn[--Un],Bn[Un]=null,la=Bn[--Un],Bn[Un]=null,aa=Bn[--Un],Bn[Un]=null}function qf(e,t){Bn[Un++]=aa,Bn[Un++]=la,Bn[Un++]=Wa,aa=t.id,la=t.overflow,Wa=e}var Ut=null,Je=null,Ae=!1,Ja=null,$n=!1,$u=Error(r(519));function el(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(zn(t,e)),$u}function Ff(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[Bt]=e,t[an]=l,n){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(n=0;n<bo.length;n++)Ne(bo[n],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),ef(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),nf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||sm(t.textContent,n)?(l.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),l.onScroll!=null&&Ne("scroll",t),l.onScrollEnd!=null&&Ne("scrollend",t),l.onClick!=null&&(t.onclick=Sa),t=!0):t=!1,t||el(e,!0)}function Gf(e){for(Ut=e.return;Ut;)switch(Ut.tag){case 5:case 31:case 13:$n=!1;return;case 27:case 3:$n=!0;return;default:Ut=Ut.return}}function $s(e){if(e!==Ut)return!1;if(!Ae)return Gf(e),Ae=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ad(e.type,e.memoizedProps)),n=!n),n&&Je&&el(e),Gf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Je=mm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Je=mm(e)}else t===27?(t=Je,ml(e.type)?(e=rd,rd=null,Je=e):Je=t):Je=Ut?qn(e.stateNode.nextSibling):null;return!0}function Gl(){Je=Ut=null,Ae=!1}function Hu(){var e=Ja;return e!==null&&(cn===null?cn=e:cn.push.apply(cn,e),Ja=null),e}function Zi(e){Ja===null?Ja=[e]:Ja.push(e)}var qu=R(null),Vl=null,Na=null;function tl(e,t,n){K(qu,t._currentValue),t._currentValue=n}function Ea(e){e._currentValue=qu.current,V(qu)}function Fu(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Gu(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var u=c.dependencies;if(u!==null){var g=c.child;u=u.firstContext;e:for(;u!==null;){var b=u;u=c;for(var E=0;E<t.length;E++)if(b.context===t[E]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),Fu(u.return,n,e),l||(g=null);break e}u=b.next}}else if(c.tag===18){if(g=c.return,g===null)throw Error(r(341));g.lanes|=n,u=g.alternate,u!==null&&(u.lanes|=n),Fu(g,n,e),g=null}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===e){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}}function Hs(e,t,n,l){e=null;for(var c=t,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var g=c.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var b=c.type;yn(c.pendingProps.value,g.value)||(e!==null?e.push(b):e=[b])}}else if(c===ke.current){if(g=c.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Co):e=[Co])}c=c.return}e!==null&&Gu(t,e,n,l),t.flags|=262144}function Cr(e){for(e=e.firstContext;e!==null;){if(!yn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ql(e){Vl=e,Na=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $t(e){return Vf(Vl,e)}function Nr(e,t){return Vl===null&&Ql(e),Vf(e,t)}function Vf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Na===null){if(e===null)throw Error(r(308));Na=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Na=Na.next=t;return n}var J_=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},ev=a.unstable_scheduleCallback,tv=a.unstable_NormalPriority,yt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vu(){return{controller:new J_,data:new Map,refCount:0}}function Wi(e){e.refCount--,e.refCount===0&&ev(tv,function(){e.controller.abort()})}var Ji=null,Qu=0,qs=0,Fs=null;function nv(e,t){if(Ji===null){var n=Ji=[];Qu=0,qs=I0(),Fs={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Qu++,t.then(Qf,Qf),t}function Qf(){if(--Qu===0&&Ji!==null){Fs!==null&&(Fs.status="fulfilled");var e=Ji;Ji=null,qs=0,Fs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function av(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),l}var Yf=H.S;H.S=function(e,t){R1=gn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&nv(e,t),Yf!==null&&Yf(e,t)};var Yl=R(null);function Yu(){var e=Yl.current;return e!==null?e:Xe.pooledCache}function Er(e,t){t===null?K(Yl,Yl.current):K(Yl,t.pool)}function Pf(){var e=Yu();return e===null?null:{parent:yt._currentValue,pool:e}}var Gs=Error(r(460)),Pu=Error(r(474)),Tr=Error(r(542)),Rr={then:function(){}};function If(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Sa,Sa),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zf(e),e;default:if(typeof t.status=="string")t.then(Sa,Sa);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zf(e),e}throw Il=t,Gs}}function Pl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Il=n,Gs):n}}var Il=null;function Kf(){if(Il===null)throw Error(r(459));var e=Il;return Il=null,e}function Zf(e){if(e===Gs||e===Tr)throw Error(r(483))}var Vs=null,eo=0;function kr(e){var t=eo;return eo+=1,Vs===null&&(Vs=[]),Xf(Vs,e,t)}function to(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ar(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wf(e){function t(M,k){if(e){var L=M.deletions;L===null?(M.deletions=[k],M.flags|=16):L.push(k)}}function n(M,k){if(!e)return null;for(;k!==null;)t(M,k),k=k.sibling;return null}function l(M){for(var k=new Map;M!==null;)M.key!==null?k.set(M.key,M):k.set(M.index,M),M=M.sibling;return k}function c(M,k){return M=wa(M,k),M.index=0,M.sibling=null,M}function u(M,k,L){return M.index=L,e?(L=M.alternate,L!==null?(L=L.index,L<k?(M.flags|=67108866,k):L):(M.flags|=67108866,k)):(M.flags|=1048576,k)}function g(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,k,L,G){return k===null||k.tag!==6?(k=Du(L,M.mode,G),k.return=M,k):(k=c(k,L),k.return=M,k)}function E(M,k,L,G){var oe=L.type;return oe===C?F(M,k,L.props.children,G,L.key):k!==null&&(k.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&Pl(oe)===k.type)?(k=c(k,L.props),to(k,L),k.return=M,k):(k=jr(L.type,L.key,L.props,null,M.mode,G),to(k,L),k.return=M,k)}function D(M,k,L,G){return k===null||k.tag!==4||k.stateNode.containerInfo!==L.containerInfo||k.stateNode.implementation!==L.implementation?(k=zu(L,M.mode,G),k.return=M,k):(k=c(k,L.children||[]),k.return=M,k)}function F(M,k,L,G,oe){return k===null||k.tag!==7?(k=Fl(L,M.mode,G,oe),k.return=M,k):(k=c(k,L),k.return=M,k)}function Q(M,k,L){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Du(""+k,M.mode,L),k.return=M,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case j:return L=jr(k.type,k.key,k.props,null,M.mode,L),to(L,k),L.return=M,L;case w:return k=zu(k,M.mode,L),k.return=M,k;case P:return k=Pl(k),Q(M,k,L)}if(ne(k)||ue(k))return k=Fl(k,M.mode,L,null),k.return=M,k;if(typeof k.then=="function")return Q(M,kr(k),L);if(k.$$typeof===O)return Q(M,Nr(M,k),L);Ar(M,k)}return null}function B(M,k,L,G){var oe=k!==null?k.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return oe!==null?null:b(M,k,""+L,G);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case j:return L.key===oe?E(M,k,L,G):null;case w:return L.key===oe?D(M,k,L,G):null;case P:return L=Pl(L),B(M,k,L,G)}if(ne(L)||ue(L))return oe!==null?null:F(M,k,L,G,null);if(typeof L.then=="function")return B(M,k,kr(L),G);if(L.$$typeof===O)return B(M,k,Nr(M,L),G);Ar(M,L)}return null}function $(M,k,L,G,oe){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return M=M.get(L)||null,b(k,M,""+G,oe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case j:return M=M.get(G.key===null?L:G.key)||null,E(k,M,G,oe);case w:return M=M.get(G.key===null?L:G.key)||null,D(k,M,G,oe);case P:return G=Pl(G),$(M,k,L,G,oe)}if(ne(G)||ue(G))return M=M.get(L)||null,F(k,M,G,oe,null);if(typeof G.then=="function")return $(M,k,L,kr(G),oe);if(G.$$typeof===O)return $(M,k,L,Nr(k,G),oe);Ar(k,G)}return null}function ee(M,k,L,G){for(var oe=null,Be=null,le=k,Se=k=0,Re=null;le!==null&&Se<L.length;Se++){le.index>Se?(Re=le,le=null):Re=le.sibling;var Ue=B(M,le,L[Se],G);if(Ue===null){le===null&&(le=Re);break}e&&le&&Ue.alternate===null&&t(M,le),k=u(Ue,k,Se),Be===null?oe=Ue:Be.sibling=Ue,Be=Ue,le=Re}if(Se===L.length)return n(M,le),Ae&&Ca(M,Se),oe;if(le===null){for(;Se<L.length;Se++)le=Q(M,L[Se],G),le!==null&&(k=u(le,k,Se),Be===null?oe=le:Be.sibling=le,Be=le);return Ae&&Ca(M,Se),oe}for(le=l(le);Se<L.length;Se++)Re=$(le,M,Se,L[Se],G),Re!==null&&(e&&Re.alternate!==null&&le.delete(Re.key===null?Se:Re.key),k=u(Re,k,Se),Be===null?oe=Re:Be.sibling=Re,Be=Re);return e&&le.forEach(function(yl){return t(M,yl)}),Ae&&Ca(M,Se),oe}function me(M,k,L,G){if(L==null)throw Error(r(151));for(var oe=null,Be=null,le=k,Se=k=0,Re=null,Ue=L.next();le!==null&&!Ue.done;Se++,Ue=L.next()){le.index>Se?(Re=le,le=null):Re=le.sibling;var yl=B(M,le,Ue.value,G);if(yl===null){le===null&&(le=Re);break}e&&le&&yl.alternate===null&&t(M,le),k=u(yl,k,Se),Be===null?oe=yl:Be.sibling=yl,Be=yl,le=Re}if(Ue.done)return n(M,le),Ae&&Ca(M,Se),oe;if(le===null){for(;!Ue.done;Se++,Ue=L.next())Ue=Q(M,Ue.value,G),Ue!==null&&(k=u(Ue,k,Se),Be===null?oe=Ue:Be.sibling=Ue,Be=Ue);return Ae&&Ca(M,Se),oe}for(le=l(le);!Ue.done;Se++,Ue=L.next())Ue=$(le,M,Se,Ue.value,G),Ue!==null&&(e&&Ue.alternate!==null&&le.delete(Ue.key===null?Se:Ue.key),k=u(Ue,k,Se),Be===null?oe=Ue:Be.sibling=Ue,Be=Ue);return e&&le.forEach(function(my){return t(M,my)}),Ae&&Ca(M,Se),oe}function Pe(M,k,L,G){if(typeof L=="object"&&L!==null&&L.type===C&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case j:e:{for(var oe=L.key;k!==null;){if(k.key===oe){if(oe=L.type,oe===C){if(k.tag===7){n(M,k.sibling),G=c(k,L.props.children),G.return=M,M=G;break e}}else if(k.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&Pl(oe)===k.type){n(M,k.sibling),G=c(k,L.props),to(G,L),G.return=M,M=G;break e}n(M,k);break}else t(M,k);k=k.sibling}L.type===C?(G=Fl(L.props.children,M.mode,G,L.key),G.return=M,M=G):(G=jr(L.type,L.key,L.props,null,M.mode,G),to(G,L),G.return=M,M=G)}return g(M);case w:e:{for(oe=L.key;k!==null;){if(k.key===oe)if(k.tag===4&&k.stateNode.containerInfo===L.containerInfo&&k.stateNode.implementation===L.implementation){n(M,k.sibling),G=c(k,L.children||[]),G.return=M,M=G;break e}else{n(M,k);break}else t(M,k);k=k.sibling}G=zu(L,M.mode,G),G.return=M,M=G}return g(M);case P:return L=Pl(L),Pe(M,k,L,G)}if(ne(L))return ee(M,k,L,G);if(ue(L)){if(oe=ue(L),typeof oe!="function")throw Error(r(150));return L=oe.call(L),me(M,k,L,G)}if(typeof L.then=="function")return Pe(M,k,kr(L),G);if(L.$$typeof===O)return Pe(M,k,Nr(M,L),G);Ar(M,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,k!==null&&k.tag===6?(n(M,k.sibling),G=c(k,L),G.return=M,M=G):(n(M,k),G=Du(L,M.mode,G),G.return=M,M=G),g(M)):n(M,k)}return function(M,k,L,G){try{eo=0;var oe=Pe(M,k,L,G);return Vs=null,oe}catch(le){if(le===Gs||le===Tr)throw le;var Be=bn(29,le,null,M.mode);return Be.lanes=G,Be.return=M,Be}finally{}}}var Xl=Wf(!0),Jf=Wf(!1),nl=!1;function Iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xu(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 al(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ll(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,($e&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=Sr(e),zf(e,null,n),t}return xr(e,l,t,n),Sr(e)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,G2(e,n)}}function Ku(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?c=u=g:u=u.next=g,n=n.next}while(n!==null);u===null?c=u=t:u=u.next=t}else c=u=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Zu=!1;function ao(){if(Zu){var e=Fs;if(e!==null)throw e}}function lo(e,t,n,l){Zu=!1;var c=e.updateQueue;nl=!1;var u=c.firstBaseUpdate,g=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var E=b,D=E.next;E.next=null,g===null?u=D:g.next=D,g=E;var F=e.alternate;F!==null&&(F=F.updateQueue,b=F.lastBaseUpdate,b!==g&&(b===null?F.firstBaseUpdate=D:b.next=D,F.lastBaseUpdate=E))}if(u!==null){var Q=c.baseState;g=0,F=D=E=null,b=u;do{var B=b.lane&-536870913,$=B!==b.lane;if($?(Te&B)===B:(l&B)===B){B!==0&&B===qs&&(Zu=!0),F!==null&&(F=F.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ee=e,me=b;B=t;var Pe=n;switch(me.tag){case 1:if(ee=me.payload,typeof ee=="function"){Q=ee.call(Pe,Q,B);break e}Q=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=me.payload,B=typeof ee=="function"?ee.call(Pe,Q,B):ee,B==null)break e;Q=y({},Q,B);break e;case 2:nl=!0}}B=b.callback,B!==null&&(e.flags|=64,$&&(e.flags|=8192),$=c.callbacks,$===null?c.callbacks=[B]:$.push(B))}else $={lane:B,tag:b.tag,payload:b.payload,callback:b.callback,next:null},F===null?(D=F=$,E=Q):F=F.next=$,g|=B;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;$=b,b=$.next,$.next=null,c.lastBaseUpdate=$,c.shared.pending=null}}while(!0);F===null&&(E=Q),c.baseState=E,c.firstBaseUpdate=D,c.lastBaseUpdate=F,u===null&&(c.shared.lanes=0),cl|=g,e.lanes=g,e.memoizedState=Q}}function eh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function th(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)eh(n[e],t)}var Qs=R(null),Mr=R(0);function nh(e,t){e=za,K(Mr,e),K(Qs,t),za=e|t.baseLanes}function Wu(){K(Mr,za),K(Qs,Qs.current)}function Ju(){za=Mr.current,V(Qs),V(Mr)}var xn=R(null),Hn=null;function sl(e){var t=e.alternate;K(mt,mt.current&1),K(xn,e),Hn===null&&(t===null||Qs.current!==null||t.memoizedState!==null)&&(Hn=e)}function e0(e){K(mt,mt.current),K(xn,e),Hn===null&&(Hn=e)}function ah(e){e.tag===22?(K(mt,mt.current),K(xn,e),Hn===null&&(Hn=e)):il()}function il(){K(mt,mt.current),K(xn,xn.current)}function Sn(e){V(xn),Hn===e&&(Hn=null),V(mt)}var mt=R(0);function Or(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||id(n)||od(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 Ta=0,be=null,Qe=null,bt=null,Lr=!1,Ys=!1,Kl=!1,Dr=0,so=0,Ps=null,lv=0;function ut(){throw Error(r(321))}function t0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yn(e[n],t[n]))return!1;return!0}function n0(e,t,n,l,c,u){return Ta=u,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?Hh:_0,Kl=!1,u=n(l,c),Kl=!1,Ys&&(u=sh(t,n,l,c)),lh(e),u}function lh(e){H.H=ro;var t=Qe!==null&&Qe.next!==null;if(Ta=0,bt=Qe=be=null,Lr=!1,so=0,Ps=null,t)throw Error(r(300));e===null||xt||(e=e.dependencies,e!==null&&Cr(e)&&(xt=!0))}function sh(e,t,n,l){be=e;var c=0;do{if(Ys&&(Ps=null),so=0,Ys=!1,25<=c)throw Error(r(301));if(c+=1,bt=Qe=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}H.H=qh,u=t(n,l)}while(Ys);return u}function sv(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?io(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(be.flags|=1024),t}function a0(){var e=Dr!==0;return Dr=0,e}function l0(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function s0(e){if(Lr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lr=!1}Ta=0,bt=Qe=be=null,Ys=!1,so=Dr=0,Ps=null}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?be.memoizedState=bt=e:bt=bt.next=e,bt}function pt(){if(Qe===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=bt===null?be.memoizedState:bt.next;if(t!==null)bt=t,Qe=e;else{if(e===null)throw be.alternate===null?Error(r(467)):Error(r(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},bt===null?be.memoizedState=bt=e:bt=bt.next=e}return bt}function zr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function io(e){var t=so;return so+=1,Ps===null&&(Ps=[]),e=Xf(Ps,e,t),t=be,(bt===null?t.memoizedState:bt.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?Hh:_0),e}function Br(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return io(e);if(e.$$typeof===O)return $t(e)}throw Error(r(438,String(e)))}function i0(e){var t=null,n=be.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=be.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=zr(),be.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ce;return t.index++,n}function Ra(e,t){return typeof t=="function"?t(e):t}function Ur(e){var t=pt();return o0(t,Qe,e)}function o0(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=e.baseQueue,u=l.pending;if(u!==null){if(c!==null){var g=c.next;c.next=u.next,u.next=g}t.baseQueue=c=u,l.pending=null}if(u=e.baseState,c===null)e.memoizedState=u;else{t=c.next;var b=g=null,E=null,D=t,F=!1;do{var Q=D.lane&-536870913;if(Q!==D.lane?(Te&Q)===Q:(Ta&Q)===Q){var B=D.revertLane;if(B===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Q===qs&&(F=!0);else if((Ta&B)===B){D=D.next,B===qs&&(F=!0);continue}else Q={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(b=E=Q,g=u):E=E.next=Q,be.lanes|=B,cl|=B;Q=D.action,Kl&&n(u,Q),u=D.hasEagerState?D.eagerState:n(u,Q)}else B={lane:Q,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(b=E=B,g=u):E=E.next=B,be.lanes|=Q,cl|=Q;D=D.next}while(D!==null&&D!==t);if(E===null?g=u:E.next=b,!yn(u,e.memoizedState)&&(xt=!0,F&&(n=Fs,n!==null)))throw n;e.memoizedState=u,e.baseState=g,e.baseQueue=E,l.lastRenderedState=u}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function r0(e){var t=pt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,u=t.memoizedState;if(c!==null){n.pending=null;var g=c=c.next;do u=e(u,g.action),g=g.next;while(g!==c);yn(u,t.memoizedState)||(xt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function ih(e,t,n){var l=be,c=pt(),u=Ae;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var g=!yn((Qe||c).memoizedState,n);if(g&&(c.memoizedState=n,xt=!0),c=c.queue,d0(ch.bind(null,l,c,e),[e]),c.getSnapshot!==t||g||bt!==null&&bt.memoizedState.tag&1){if(l.flags|=2048,Is(9,{destroy:void 0},rh.bind(null,l,c,n,t),null),Xe===null)throw Error(r(349));u||(Ta&127)!==0||oh(l,t,n)}return n}function oh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=be.updateQueue,t===null?(t=zr(),be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rh(e,t,n,l){t.value=n,t.getSnapshot=l,uh(t)&&dh(e)}function ch(e,t,n){return n(function(){uh(t)&&dh(e)})}function uh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yn(e,n)}catch{return!0}}function dh(e){var t=ql(e,2);t!==null&&un(t,e,2)}function c0(e){var t=It();if(typeof e=="function"){var n=e;if(e=n(),Kl){Xa(!0);try{n()}finally{Xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:e},t}function fh(e,t,n,l){return e.baseState=n,o0(e,Qe,typeof l=="function"?l:Ra)}function iv(e,t,n,l,c){if(qr(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){u.listeners.push(g)}};H.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,hh(t,u)):(u.next=n.next,t.pending=n.next=u)}}function hh(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var u=H.T,g={};H.T=g;try{var b=n(c,l),E=H.S;E!==null&&E(g,b),mh(e,t,b)}catch(D){u0(e,t,D)}finally{u!==null&&g.types!==null&&(u.types=g.types),H.T=u}}else try{u=n(c,l),mh(e,t,u)}catch(D){u0(e,t,D)}}function mh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){ph(e,t,l)},function(l){return u0(e,t,l)}):ph(e,t,n)}function ph(e,t,n){t.status="fulfilled",t.value=n,gh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,hh(e,n)))}function u0(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,gh(t),t=t.next;while(t!==l)}e.action=null}function gh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _h(e,t){return t}function vh(e,t){if(Ae){var n=Xe.formState;if(n!==null){e:{var l=be;if(Ae){if(Je){t:{for(var c=Je,u=$n;c.nodeType!==8;){if(!u){c=null;break t}if(c=qn(c.nextSibling),c===null){c=null;break t}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){Je=qn(c.nextSibling),l=c.data==="F!";break e}}el(l)}l=!1}l&&(t=n[0])}}return n=It(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_h,lastRenderedState:t},n.queue=l,n=Bh.bind(null,be,l),l.dispatch=n,l=c0(!1),u=g0.bind(null,be,!1,l.queue),l=It(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=iv.bind(null,be,c,u,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function yh(e){var t=pt();return bh(t,Qe,e)}function bh(e,t,n){if(t=o0(e,t,_h)[0],e=Ur(Ra)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=io(t)}catch(g){throw g===Gs?Tr:g}else l=t;t=pt();var c=t.queue,u=c.dispatch;return n!==t.memoizedState&&(be.flags|=2048,Is(9,{destroy:void 0},ov.bind(null,c,n),null)),[l,u,e]}function ov(e,t){e.action=t}function xh(e){var t=pt(),n=Qe;if(n!==null)return bh(t,n,e);pt(),t=t.memoizedState,n=pt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Is(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=be.updateQueue,t===null&&(t=zr(),be.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Sh(){return pt().memoizedState}function $r(e,t,n,l){var c=It();be.flags|=e,c.memoizedState=Is(1|t,{destroy:void 0},n,l===void 0?null:l)}function Hr(e,t,n,l){var c=pt();l=l===void 0?null:l;var u=c.memoizedState.inst;Qe!==null&&l!==null&&t0(l,Qe.memoizedState.deps)?c.memoizedState=Is(t,u,n,l):(be.flags|=e,c.memoizedState=Is(1|t,u,n,l))}function jh(e,t){$r(8390656,8,e,t)}function d0(e,t){Hr(2048,8,e,t)}function rv(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=zr(),be.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function wh(e){var t=pt().memoizedState;return rv({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Ch(e,t){return Hr(4,2,e,t)}function Nh(e,t){return Hr(4,4,e,t)}function Eh(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 Th(e,t,n){n=n!=null?n.concat([e]):null,Hr(4,4,Eh.bind(null,t,e),n)}function f0(){}function Rh(e,t){var n=pt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&t0(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function kh(e,t){var n=pt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&t0(t,l[1]))return l[0];if(l=e(),Kl){Xa(!0);try{e()}finally{Xa(!1)}}return n.memoizedState=[l,t],l}function h0(e,t,n){return n===void 0||(Ta&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=A1(),be.lanes|=e,cl|=e,n)}function Ah(e,t,n,l){return yn(n,t)?n:Qs.current!==null?(e=h0(e,n,l),yn(e,t)||(xt=!0),e):(Ta&42)===0||(Ta&1073741824)!==0&&(Te&261930)===0?(xt=!0,e.memoizedState=n):(e=A1(),be.lanes|=e,cl|=e,t)}function Mh(e,t,n,l,c){var u=I.p;I.p=u!==0&&8>u?u:8;var g=H.T,b={};H.T=b,g0(e,!1,t,n);try{var E=c(),D=H.S;if(D!==null&&D(b,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var F=av(E,l);oo(e,t,F,Cn(e))}else oo(e,t,l,Cn(e))}catch(Q){oo(e,t,{then:function(){},status:"rejected",reason:Q},Cn())}finally{I.p=u,g!==null&&b.types!==null&&(g.types=b.types),H.T=g}}function cv(){}function m0(e,t,n,l){if(e.tag!==5)throw Error(r(476));var c=Oh(e).queue;Mh(e,c,t,ae,n===null?cv:function(){return Lh(e),n(l)})}function Oh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lh(e){var t=Oh(e);t.next===null&&(t=e.alternate.memoizedState),oo(e,t.next.queue,{},Cn())}function p0(){return $t(Co)}function Dh(){return pt().memoizedState}function zh(){return pt().memoizedState}function uv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=al(n);var l=ll(t,e,n);l!==null&&(un(l,t,n),no(l,t,n)),t={cache:Vu()},e.payload=t;return}t=t.return}}function dv(e,t,n){var l=Cn();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},qr(e)?Uh(t,n):(n=Ou(e,t,n,l),n!==null&&(un(n,e,l),$h(n,t,l)))}function Bh(e,t,n){var l=Cn();oo(e,t,n,l)}function oo(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(qr(e))Uh(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var g=t.lastRenderedState,b=u(g,n);if(c.hasEagerState=!0,c.eagerState=b,yn(b,g))return xr(e,t,c,0),Xe===null&&br(),!1}catch{}finally{}if(n=Ou(e,t,c,l),n!==null)return un(n,e,l),$h(n,t,l),!0}return!1}function g0(e,t,n,l){if(l={lane:2,revertLane:I0(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},qr(e)){if(t)throw Error(r(479))}else t=Ou(e,n,l,2),t!==null&&un(t,e,2)}function qr(e){var t=e.alternate;return e===be||t!==null&&t===be}function Uh(e,t){Ys=Lr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $h(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,G2(e,n)}}var ro={readContext:$t,use:Br,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};ro.useEffectEvent=ut;var Hh={readContext:$t,use:Br,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:jh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$r(4194308,4,Eh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){$r(4,2,e,t)},useMemo:function(e,t){var n=It();t=t===void 0?null:t;var l=e();if(Kl){Xa(!0);try{e()}finally{Xa(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=It();if(n!==void 0){var c=n(t);if(Kl){Xa(!0);try{n(t)}finally{Xa(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=dv.bind(null,be,e),[l.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:function(e){e=c0(e);var t=e.queue,n=Bh.bind(null,be,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:f0,useDeferredValue:function(e,t){var n=It();return h0(n,e,t)},useTransition:function(){var e=c0(!1);return e=Mh.bind(null,be,e.queue,!0,!1),It().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=be,c=It();if(Ae){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Xe===null)throw Error(r(349));(Te&127)!==0||oh(l,t,n)}c.memoizedState=n;var u={value:n,getSnapshot:t};return c.queue=u,jh(ch.bind(null,l,u,e),[e]),l.flags|=2048,Is(9,{destroy:void 0},rh.bind(null,l,u,n,t),null),n},useId:function(){var e=It(),t=Xe.identifierPrefix;if(Ae){var n=la,l=aa;n=(l&~(1<<32-vn(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Dr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=lv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:p0,useFormState:vh,useActionState:vh,useOptimistic:function(e){var t=It();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=g0.bind(null,be,!0,n),n.dispatch=t,[e,t]},useMemoCache:i0,useCacheRefresh:function(){return It().memoizedState=uv.bind(null,be)},useEffectEvent:function(e){var t=It(),n={impl:e};return t.memoizedState=n,function(){if(($e&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},_0={readContext:$t,use:Br,useCallback:Rh,useContext:$t,useEffect:d0,useImperativeHandle:Th,useInsertionEffect:Ch,useLayoutEffect:Nh,useMemo:kh,useReducer:Ur,useRef:Sh,useState:function(){return Ur(Ra)},useDebugValue:f0,useDeferredValue:function(e,t){var n=pt();return Ah(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Ur(Ra)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:io(e),t]},useSyncExternalStore:ih,useId:Dh,useHostTransitionStatus:p0,useFormState:yh,useActionState:yh,useOptimistic:function(e,t){var n=pt();return fh(n,Qe,e,t)},useMemoCache:i0,useCacheRefresh:zh};_0.useEffectEvent=wh;var qh={readContext:$t,use:Br,useCallback:Rh,useContext:$t,useEffect:d0,useImperativeHandle:Th,useInsertionEffect:Ch,useLayoutEffect:Nh,useMemo:kh,useReducer:r0,useRef:Sh,useState:function(){return r0(Ra)},useDebugValue:f0,useDeferredValue:function(e,t){var n=pt();return Qe===null?h0(n,e,t):Ah(n,Qe.memoizedState,e,t)},useTransition:function(){var e=r0(Ra)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:io(e),t]},useSyncExternalStore:ih,useId:Dh,useHostTransitionStatus:p0,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var n=pt();return Qe!==null?fh(n,Qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:i0,useCacheRefresh:zh};qh.useEffectEvent=wh;function v0(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var y0={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Cn(),c=al(l);c.payload=t,n!=null&&(c.callback=n),t=ll(e,c,l),t!==null&&(un(t,e,l),no(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Cn(),c=al(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=ll(e,c,l),t!==null&&(un(t,e,l),no(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),l=al(n);l.tag=2,t!=null&&(l.callback=t),t=ll(e,l,n),t!==null&&(un(t,e,n),no(t,e,n))}};function Fh(e,t,n,l,c,u,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,g):t.prototype&&t.prototype.isPureReactComponent?!Ii(n,l)||!Ii(c,u):!0}function Gh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&y0.enqueueReplaceState(t,t.state,null)}function Zl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Vh(e){yr(e)}function Qh(e){console.error(e)}function Yh(e){yr(e)}function Fr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ph(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function b0(e,t,n){return n=al(n),n.tag=3,n.payload={element:null},n.callback=function(){Fr(e,t)},n}function Ih(e){return e=al(e),e.tag=3,e}function Xh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var u=l.value;e.payload=function(){return c(u)},e.callback=function(){Ph(t,n,l)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Ph(t,n,l),typeof c!="function"&&(ul===null?ul=new Set([this]):ul.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function fv(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Hs(t,n,c,!0),n=xn.current,n!==null){switch(n.tag){case 31:case 13:return Hn===null?ec():n.alternate===null&&dt===0&&(dt=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===Rr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Q0(e,l,c)),!1;case 22:return n.flags|=65536,l===Rr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Q0(e,l,c)),!1}throw Error(r(435,n.tag))}return Q0(e,l,c),ec(),!1}if(Ae)return t=xn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==$u&&(e=Error(r(422),{cause:l}),Zi(zn(e,n)))):(l!==$u&&(t=Error(r(423),{cause:l}),Zi(zn(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=zn(l,n),c=b0(e.stateNode,l,c),Ku(e,c),dt!==4&&(dt=2)),!1;var u=Error(r(520),{cause:l});if(u=zn(u,n),_o===null?_o=[u]:_o.push(u),dt!==4&&(dt=2),t===null)return!0;l=zn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=b0(n.stateNode,l,e),Ku(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ul===null||!ul.has(u))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Ih(c),Xh(c,e,n,l),Ku(n,c),!1}n=n.return}while(n!==null);return!1}var x0=Error(r(461)),xt=!1;function Ht(e,t,n,l){t.child=e===null?Jf(t,null,n,l):Xl(t,e.child,n,l)}function Kh(e,t,n,l,c){n=n.render;var u=t.ref;if("ref"in l){var g={};for(var b in l)b!=="ref"&&(g[b]=l[b])}else g=l;return Ql(t),l=n0(e,t,n,g,u,c),b=a0(),e!==null&&!xt?(l0(e,t,c),ka(e,t,c)):(Ae&&b&&Bu(t),t.flags|=1,Ht(e,t,l,c),t.child)}function Zh(e,t,n,l,c){if(e===null){var u=n.type;return typeof u=="function"&&!Lu(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Wh(e,t,u,l,c)):(e=jr(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!R0(e,c)){var g=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ii,n(g,l)&&e.ref===t.ref)return ka(e,t,c)}return t.flags|=1,e=wa(u,l),e.ref=t.ref,e.return=t,t.child=e}function Wh(e,t,n,l,c){if(e!==null){var u=e.memoizedProps;if(Ii(u,l)&&e.ref===t.ref)if(xt=!1,t.pendingProps=l=u,R0(e,c))(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,ka(e,t,c)}return S0(e,t,n,l,c)}function Jh(e,t,n,l){var c=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~u}else l=0,t.child=null;return e1(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Er(t,u!==null?u.cachePool:null),u!==null?nh(t,u):Wu(),ah(t);else return l=t.lanes=536870912,e1(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(Er(t,u.cachePool),nh(t,u),il(),t.memoizedState=null):(e!==null&&Er(t,null),Wu(),il());return Ht(e,t,c,n),t.child}function co(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function e1(e,t,n,l,c){var u=Yu();return u=u===null?null:{parent:yt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Er(t,null),Wu(),ah(t),e!==null&&Hs(e,t,l,!0),t.childLanes=c,null}function Gr(e,t){return t=Qr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function t1(e,t,n){return Xl(t,e.child,null,n),e=Gr(t,t.pendingProps),e.flags|=2,Sn(t),t.memoizedState=null,e}function hv(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(l.mode==="hidden")return e=Gr(t,l),t.lanes=536870912,co(null,e);if(e0(t),(e=Je)?(e=hm(e,$n),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wa!==null?{id:aa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},n=Uf(e),n.return=t,t.child=n,Ut=t,Je=null)):e=null,e===null)throw el(t);return t.lanes=536870912,null}return Gr(t,l)}var u=e.memoizedState;if(u!==null){var g=u.dehydrated;if(e0(t),c)if(t.flags&256)t.flags&=-257,t=t1(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(xt||Hs(e,t,n,!1),c=(n&e.childLanes)!==0,xt||c){if(l=Xe,l!==null&&(g=V2(l,n),g!==0&&g!==u.retryLane))throw u.retryLane=g,ql(e,g),un(l,e,g),x0;ec(),t=t1(e,t,n)}else e=u.treeContext,Je=qn(g.nextSibling),Ut=t,Ae=!0,Ja=null,$n=!1,e!==null&&qf(t,e),t=Gr(t,l),t.flags|=4096;return t}return e=wa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vr(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 S0(e,t,n,l,c){return Ql(t),n=n0(e,t,n,l,void 0,c),l=a0(),e!==null&&!xt?(l0(e,t,c),ka(e,t,c)):(Ae&&l&&Bu(t),t.flags|=1,Ht(e,t,n,c),t.child)}function n1(e,t,n,l,c,u){return Ql(t),t.updateQueue=null,n=sh(t,l,n,c),lh(e),l=a0(),e!==null&&!xt?(l0(e,t,u),ka(e,t,u)):(Ae&&l&&Bu(t),t.flags|=1,Ht(e,t,n,u),t.child)}function a1(e,t,n,l,c){if(Ql(t),t.stateNode===null){var u=zs,g=n.contextType;typeof g=="object"&&g!==null&&(u=$t(g)),u=new n(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=y0,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Iu(t),g=n.contextType,u.context=typeof g=="object"&&g!==null?$t(g):zs,u.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(v0(t,n,g,l),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(g=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),g!==u.state&&y0.enqueueReplaceState(u,u.state,null),lo(t,l,u,c),ao(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,E=Zl(n,b);u.props=E;var D=u.context,F=n.contextType;g=zs,typeof F=="object"&&F!==null&&(g=$t(F));var Q=n.getDerivedStateFromProps;F=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,F||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||D!==g)&&Gh(t,u,l,g),nl=!1;var B=t.memoizedState;u.state=B,lo(t,l,u,c),ao(),D=t.memoizedState,b||B!==D||nl?(typeof Q=="function"&&(v0(t,n,Q,l),D=t.memoizedState),(E=nl||Fh(t,n,E,l,B,D,g))?(F||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=D),u.props=l,u.state=D,u.context=g,l=E):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Xu(e,t),g=t.memoizedProps,F=Zl(n,g),u.props=F,Q=t.pendingProps,B=u.context,D=n.contextType,E=zs,typeof D=="object"&&D!==null&&(E=$t(D)),b=n.getDerivedStateFromProps,(D=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g!==Q||B!==E)&&Gh(t,u,l,E),nl=!1,B=t.memoizedState,u.state=B,lo(t,l,u,c),ao();var $=t.memoizedState;g!==Q||B!==$||nl||e!==null&&e.dependencies!==null&&Cr(e.dependencies)?(typeof b=="function"&&(v0(t,n,b,l),$=t.memoizedState),(F=nl||Fh(t,n,F,l,B,$,E)||e!==null&&e.dependencies!==null&&Cr(e.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,$,E),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,$,E)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=$),u.props=l,u.state=$,u.context=E,l=F):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Vr(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Xl(t,e.child,null,c),t.child=Xl(t,null,n,c)):Ht(e,t,n,c),t.memoizedState=u.state,e=t.child):e=ka(e,t,c),e}function l1(e,t,n,l){return Gl(),t.flags|=256,Ht(e,t,n,l),t.child}var j0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function w0(e){return{baseLanes:e,cachePool:Pf()}}function C0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=wn),e}function s1(e,t,n){var l=t.pendingProps,c=!1,u=(t.flags&128)!==0,g;if((g=u)||(g=e!==null&&e.memoizedState===null?!1:(mt.current&2)!==0),g&&(c=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(c?sl(t):il(),(e=Je)?(e=hm(e,$n),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wa!==null?{id:aa,overflow:la}:null,retryLane:536870912,hydrationErrors:null},n=Uf(e),n.return=t,t.child=n,Ut=t,Je=null)):e=null,e===null)throw el(t);return od(e)?t.lanes=32:t.lanes=536870912,null}var b=l.children;return l=l.fallback,c?(il(),c=t.mode,b=Qr({mode:"hidden",children:b},c),l=Fl(l,c,n,null),b.return=t,l.return=t,b.sibling=l,t.child=b,l=t.child,l.memoizedState=w0(n),l.childLanes=C0(e,g,n),t.memoizedState=j0,co(null,l)):(sl(t),N0(t,b))}var E=e.memoizedState;if(E!==null&&(b=E.dehydrated,b!==null)){if(u)t.flags&256?(sl(t),t.flags&=-257,t=E0(e,t,n)):t.memoizedState!==null?(il(),t.child=e.child,t.flags|=128,t=null):(il(),b=l.fallback,c=t.mode,l=Qr({mode:"visible",children:l.children},c),b=Fl(b,c,n,null),b.flags|=2,l.return=t,b.return=t,l.sibling=b,t.child=l,Xl(t,e.child,null,n),l=t.child,l.memoizedState=w0(n),l.childLanes=C0(e,g,n),t.memoizedState=j0,t=co(null,l));else if(sl(t),od(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var D=g.dgst;g=D,l=Error(r(419)),l.stack="",l.digest=g,Zi({value:l,source:null,stack:null}),t=E0(e,t,n)}else if(xt||Hs(e,t,n,!1),g=(n&e.childLanes)!==0,xt||g){if(g=Xe,g!==null&&(l=V2(g,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,ql(e,l),un(g,e,l),x0;id(b)||ec(),t=E0(e,t,n)}else id(b)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Je=qn(b.nextSibling),Ut=t,Ae=!0,Ja=null,$n=!1,e!==null&&qf(t,e),t=N0(t,l.children),t.flags|=4096);return t}return c?(il(),b=l.fallback,c=t.mode,E=e.child,D=E.sibling,l=wa(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,D!==null?b=wa(D,b):(b=Fl(b,c,n,null),b.flags|=2),b.return=t,l.return=t,l.sibling=b,t.child=l,co(null,l),l=t.child,b=e.child.memoizedState,b===null?b=w0(n):(c=b.cachePool,c!==null?(E=yt._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=Pf(),b={baseLanes:b.baseLanes|n,cachePool:c}),l.memoizedState=b,l.childLanes=C0(e,g,n),t.memoizedState=j0,co(e.child,l)):(sl(t),n=e.child,e=n.sibling,n=wa(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function N0(e,t){return t=Qr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qr(e,t){return e=bn(22,e,null,t),e.lanes=0,e}function E0(e,t,n){return Xl(t,e.child,null,n),e=N0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function i1(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Fu(e.return,t,n)}function T0(e,t,n,l,c,u){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:u}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=n,g.tailMode=c,g.treeForkCount=u)}function o1(e,t,n){var l=t.pendingProps,c=l.revealOrder,u=l.tail;l=l.children;var g=mt.current,b=(g&2)!==0;if(b?(g=g&1|2,t.flags|=128):g&=1,K(mt,g),Ht(e,t,l,n),l=Ae?Ki:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&i1(e,n,t);else if(e.tag===19)i1(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&&Or(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),T0(t,!1,c,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Or(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}T0(t,!0,n,null,u,l);break;case"together":T0(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ka(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Hs(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=wa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function R0(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Cr(e)))}function mv(e,t,n){switch(t.tag){case 3:Ct(t,t.stateNode.containerInfo),tl(t,yt,e.memoizedState.cache),Gl();break;case 27:case 5:ga(t);break;case 4:Ct(t,t.stateNode.containerInfo);break;case 10:tl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,e0(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(sl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?s1(e,t,n):(sl(t),e=ka(e,t,n),e!==null?e.sibling:null);sl(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Hs(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return o1(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),K(mt,mt.current),l)break;return null;case 22:return t.lanes=0,Jh(e,t,n,t.pendingProps);case 24:tl(t,yt,e.memoizedState.cache)}return ka(e,t,n)}function r1(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)xt=!0;else{if(!R0(e,n)&&(t.flags&128)===0)return xt=!1,mv(e,t,n);xt=(e.flags&131072)!==0}else xt=!1,Ae&&(t.flags&1048576)!==0&&Hf(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Pl(t.elementType),t.type=e,typeof e=="function")Lu(e)?(l=Zl(e,l),t.tag=1,t=a1(null,t,e,l,n)):(t.tag=0,t=S0(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=Kh(null,t,e,l,n);break e}else if(c===U){t.tag=14,t=Zh(null,t,e,l,n);break e}}throw t=he(e)||e,Error(r(306,t,""))}}return t;case 0:return S0(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=Zl(l,t.pendingProps),a1(e,t,l,c,n);case 3:e:{if(Ct(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var u=t.memoizedState;c=u.element,Xu(e,t),lo(t,l,null,n);var g=t.memoizedState;if(l=g.cache,tl(t,yt,l),l!==u.cache&&Gu(t,[yt],n,!0),ao(),l=g.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=l1(e,t,l,n);break e}else if(l!==c){c=zn(Error(r(424)),t),Zi(c),t=l1(e,t,l,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(Je=qn(e.firstChild),Ut=t,Ae=!0,Ja=null,$n=!0,n=Jf(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Gl(),l===c){t=ka(e,t,n);break e}Ht(e,t,l,n)}t=t.child}return t;case 26:return Vr(e,t),e===null?(n=ym(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ae||(n=t.type,e=t.pendingProps,l=oc(xe.current).createElement(n),l[Bt]=t,l[an]=e,qt(l,n,e),kt(l),t.stateNode=l):t.memoizedState=ym(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ga(t),e===null&&Ae&&(l=t.stateNode=gm(t.type,t.pendingProps,xe.current),Ut=t,$n=!0,c=Je,ml(t.type)?(rd=c,Je=qn(l.firstChild)):Je=c),Ht(e,t,t.pendingProps.children,n),Vr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((c=l=Je)&&(l=Vv(l,t.type,t.pendingProps,$n),l!==null?(t.stateNode=l,Ut=t,Je=qn(l.firstChild),$n=!1,c=!0):c=!1),c||el(t)),ga(t),c=t.type,u=t.pendingProps,g=e!==null?e.memoizedProps:null,l=u.children,ad(c,u)?l=null:g!==null&&ad(c,g)&&(t.flags|=32),t.memoizedState!==null&&(c=n0(e,t,sv,null,null,n),Co._currentValue=c),Vr(e,t),Ht(e,t,l,n),t.child;case 6:return e===null&&Ae&&((e=n=Je)&&(n=Qv(n,t.pendingProps,$n),n!==null?(t.stateNode=n,Ut=t,Je=null,e=!0):e=!1),e||el(t)),null;case 13:return s1(e,t,n);case 4:return Ct(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Xl(t,null,l,n):Ht(e,t,l,n),t.child;case 11:return Kh(e,t,t.type,t.pendingProps,n);case 7:return Ht(e,t,t.pendingProps,n),t.child;case 8:return Ht(e,t,t.pendingProps.children,n),t.child;case 12:return Ht(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,tl(t,t.type,l.value),Ht(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Ql(t),c=$t(c),l=l(c),t.flags|=1,Ht(e,t,l,n),t.child;case 14:return Zh(e,t,t.type,t.pendingProps,n);case 15:return Wh(e,t,t.type,t.pendingProps,n);case 19:return o1(e,t,n);case 31:return hv(e,t,n);case 22:return Jh(e,t,n,t.pendingProps);case 24:return Ql(t),l=$t(yt),e===null?(c=Yu(),c===null&&(c=Xe,u=Vu(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=n),c=u),t.memoizedState={parent:l,cache:c},Iu(t),tl(t,yt,c)):((e.lanes&n)!==0&&(Xu(e,t),lo(t,null,null,n),ao()),c=e.memoizedState,u=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),tl(t,yt,l)):(l=u.cache,tl(t,yt,l),l!==c.cache&&Gu(t,[yt],n,!0))),Ht(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Aa(e){e.flags|=4}function k0(e,t,n,l,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(D1())e.flags|=8192;else throw Il=Rr,Pu}else e.flags&=-16777217}function c1(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wm(t))if(D1())e.flags|=8192;else throw Il=Rr,Pu}function Yr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?q2():536870912,e.lanes|=t,Ws|=t)}function uo(e,t){if(!Ae)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 l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function pv(e,t,n){var l=t.pendingProps;switch(Uu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ea(yt),We(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($s(t)?Aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hu())),et(t),null;case 26:var c=t.type,u=t.memoizedState;return e===null?(Aa(t),u!==null?(et(t),c1(t,u)):(et(t),k0(t,c,null,l,n))):u?u!==e.memoizedState?(Aa(t),et(t),c1(t,u)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Aa(t),et(t),k0(t,c,e,l,n)),null;case 27:if(_a(t),n=xe.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Aa(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return et(t),null}e=J.current,$s(t)?Ff(t):(e=gm(c,l,n),t.stateNode=e,Aa(t))}return et(t),null;case 5:if(_a(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Aa(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return et(t),null}if(u=J.current,$s(t))Ff(t);else{var g=oc(xe.current);switch(u){case 1:u=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:u=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":u=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":u=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":u=g.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?g.createElement(c,{is:l.is}):g.createElement(c)}}u[Bt]=t,u[an]=l;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)u.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=u;e:switch(qt(u,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Aa(t)}}return et(t),k0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Aa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=xe.current,$s(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=Ut,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[Bt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||sm(e.nodeValue,n)),e||el(t,!0)}else e=oc(e).createTextNode(l),e[Bt]=t,t.stateNode=e}return et(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=$s(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Bt]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else n=Hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Sn(t),t):(Sn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return et(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=$s(t),l!==null&&l.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[Bt]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),c=!1}else c=Hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Sn(t),t):(Sn(t),null)}return Sn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Yr(t,t.updateQueue),et(t),null);case 4:return We(),e===null&&W0(t.stateNode.containerInfo),et(t),null;case 10:return Ea(t.type),et(t),null;case 19:if(V(mt),l=t.memoizedState,l===null)return et(t),null;if(c=(t.flags&128)!==0,u=l.rendering,u===null)if(c)uo(l,!1);else{if(dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Or(e),u!==null){for(t.flags|=128,uo(l,!1),e=u.updateQueue,t.updateQueue=e,Yr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Bf(n,e),n=n.sibling;return K(mt,mt.current&1|2),Ae&&Ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&gn()>Zr&&(t.flags|=128,c=!0,uo(l,!1),t.lanes=4194304)}else{if(!c)if(e=Or(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Yr(t,e),uo(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!Ae)return et(t),null}else 2*gn()-l.renderingStartTime>Zr&&n!==536870912&&(t.flags|=128,c=!0,uo(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=gn(),e.sibling=null,n=mt.current,K(mt,c?n&1|2:n&1),Ae&&Ca(t,l.treeForkCount),e):(et(t),null);case 22:case 23:return Sn(t),Ju(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),n=t.updateQueue,n!==null&&Yr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&V(Yl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ea(yt),et(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function gv(e,t){switch(Uu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ea(yt),We(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _a(t),null;case 31:if(t.memoizedState!==null){if(Sn(t),t.alternate===null)throw Error(r(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(mt),null;case 4:return We(),null;case 10:return Ea(t.type),null;case 22:case 23:return Sn(t),Ju(),e!==null&&V(Yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ea(yt),null;case 25:return null;default:return null}}function u1(e,t){switch(Uu(t),t.tag){case 3:Ea(yt),We();break;case 26:case 27:case 5:_a(t);break;case 4:We();break;case 31:t.memoizedState!==null&&Sn(t);break;case 13:Sn(t);break;case 19:V(mt);break;case 10:Ea(t.type);break;case 22:case 23:Sn(t),Ju(),e!==null&&V(Yl);break;case 24:Ea(yt)}}function fo(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var c=l.next;n=c;do{if((n.tag&e)===e){l=void 0;var u=n.create,g=n.inst;l=u(),g.destroy=l}n=n.next}while(n!==c)}}catch(b){Fe(t,t.return,b)}}function ol(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var u=c.next;l=u;do{if((l.tag&e)===e){var g=l.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,c=t;var E=n,D=b;try{D()}catch(F){Fe(c,E,F)}}}l=l.next}while(l!==u)}}catch(F){Fe(t,t.return,F)}}function d1(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{th(t,n)}catch(l){Fe(e,e.return,l)}}}function f1(e,t,n){n.props=Zl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Fe(e,t,l)}}function ho(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(c){Fe(e,t,c)}}function sa(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(c){Fe(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){Fe(e,t,c)}else n.current=null}function h1(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(c){Fe(e,e.return,c)}}function A0(e,t,n){try{var l=e.stateNode;Uv(l,e.type,n,t),l[an]=t}catch(c){Fe(e,e.return,c)}}function m1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ml(e.type)||e.tag===4}function M0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m1(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&&ml(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 O0(e,t,n){var l=e.tag;if(l===5||l===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=Sa));else if(l!==4&&(l===27&&ml(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(O0(e,t,n),e=e.sibling;e!==null;)O0(e,t,n),e=e.sibling}function Pr(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&ml(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Pr(e,t,n),e=e.sibling;e!==null;)Pr(e,t,n),e=e.sibling}function p1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);qt(t,l,n),t[Bt]=e,t[an]=n}catch(u){Fe(e,e.return,u)}}var Ma=!1,St=!1,L0=!1,g1=typeof WeakSet=="function"?WeakSet:Set,At=null;function _v(e,t){if(e=e.containerInfo,td=mc,e=Tf(e),Eu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var c=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var g=0,b=-1,E=-1,D=0,F=0,Q=e,B=null;t:for(;;){for(var $;Q!==n||c!==0&&Q.nodeType!==3||(b=g+c),Q!==u||l!==0&&Q.nodeType!==3||(E=g+l),Q.nodeType===3&&(g+=Q.nodeValue.length),($=Q.firstChild)!==null;)B=Q,Q=$;for(;;){if(Q===e)break t;if(B===n&&++D===c&&(b=g),B===u&&++F===l&&(E=g),($=Q.nextSibling)!==null)break;Q=B,B=Q.parentNode}Q=$}n=b===-1||E===-1?null:{start:b,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(nd={focusedElem:e,selectionRange:n},mc=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,c=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var ee=Zl(n.type,c);e=l.getSnapshotBeforeUpdate(ee,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(me){Fe(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sd(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sd(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,At=e;break}At=t.return}}function _1(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:La(e,n),l&4&&fo(5,n);break;case 1:if(La(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Fe(n,n.return,g)}else{var c=Zl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Fe(n,n.return,g)}}l&64&&d1(n),l&512&&ho(n,n.return);break;case 3:if(La(e,n),l&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{th(e,t)}catch(g){Fe(n,n.return,g)}}break;case 27:t===null&&l&4&&p1(n);case 26:case 5:La(e,n),t===null&&l&4&&h1(n),l&512&&ho(n,n.return);break;case 12:La(e,n);break;case 31:La(e,n),l&4&&b1(e,n);break;case 13:La(e,n),l&4&&x1(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Nv.bind(null,n),Yv(e,n))));break;case 22:if(l=n.memoizedState!==null||Ma,!l){t=t!==null&&t.memoizedState!==null||St,c=Ma;var u=St;Ma=l,(St=t)&&!u?Da(e,n,(n.subtreeFlags&8772)!==0):La(e,n),Ma=c,St=u}break;case 30:break;default:La(e,n)}}function v1(e){var t=e.alternate;t!==null&&(e.alternate=null,v1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&uu(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 tt=null,sn=!1;function Oa(e,t,n){for(n=n.child;n!==null;)y1(e,t,n),n=n.sibling}function y1(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(zi,n)}catch{}switch(n.tag){case 26:St||sa(n,t),Oa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:St||sa(n,t);var l=tt,c=sn;ml(n.type)&&(tt=n.stateNode,sn=!1),Oa(e,t,n),So(n.stateNode),tt=l,sn=c;break;case 5:St||sa(n,t);case 6:if(l=tt,c=sn,tt=null,Oa(e,t,n),tt=l,sn=c,tt!==null)if(sn)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(n.stateNode)}catch(u){Fe(n,t,u)}else try{tt.removeChild(n.stateNode)}catch(u){Fe(n,t,u)}break;case 18:tt!==null&&(sn?(e=tt,dm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ii(e)):dm(tt,n.stateNode));break;case 4:l=tt,c=sn,tt=n.stateNode.containerInfo,sn=!0,Oa(e,t,n),tt=l,sn=c;break;case 0:case 11:case 14:case 15:ol(2,n,t),St||ol(4,n,t),Oa(e,t,n);break;case 1:St||(sa(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&f1(n,t,l)),Oa(e,t,n);break;case 21:Oa(e,t,n);break;case 22:St=(l=St)||n.memoizedState!==null,Oa(e,t,n),St=l;break;default:Oa(e,t,n)}}function b1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ii(e)}catch(n){Fe(t,t.return,n)}}}function x1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ii(e)}catch(n){Fe(t,t.return,n)}}function vv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new g1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new g1),t;default:throw Error(r(435,e.tag))}}function Ir(e,t){var n=vv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=Ev.bind(null,e,l);l.then(c,c)}})}function on(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],u=e,g=t,b=g;e:for(;b!==null;){switch(b.tag){case 27:if(ml(b.type)){tt=b.stateNode,sn=!1;break e}break;case 5:tt=b.stateNode,sn=!1;break e;case 3:case 4:tt=b.stateNode.containerInfo,sn=!0;break e}b=b.return}if(tt===null)throw Error(r(160));y1(u,g,c),tt=null,sn=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)S1(t,e),t=t.sibling}var In=null;function S1(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:on(t,e),rn(e),l&4&&(ol(3,e,e.return),fo(3,e),ol(5,e,e.return));break;case 1:on(t,e),rn(e),l&512&&(St||n===null||sa(n,n.return)),l&64&&Ma&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var c=In;if(on(t,e),rn(e),l&512&&(St||n===null||sa(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":u=c.getElementsByTagName("title")[0],(!u||u[$i]||u[Bt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(l),c.head.insertBefore(u,c.querySelector("head > title"))),qt(u,l,n),u[Bt]=e,kt(u),l=u;break e;case"link":var g=Sm("link","href",c).get(l+(n.href||""));if(g){for(var b=0;b<g.length;b++)if(u=g[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(b,1);break t}}u=c.createElement(l),qt(u,l,n),c.head.appendChild(u);break;case"meta":if(g=Sm("meta","content",c).get(l+(n.content||""))){for(b=0;b<g.length;b++)if(u=g[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(b,1);break t}}u=c.createElement(l),qt(u,l,n),c.head.appendChild(u);break;default:throw Error(r(468,l))}u[Bt]=e,kt(u),l=u}e.stateNode=l}else jm(c,e.type,e.stateNode);else e.stateNode=xm(c,l,e.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?jm(c,e.type,e.stateNode):xm(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&A0(e,e.memoizedProps,n.memoizedProps)}break;case 27:on(t,e),rn(e),l&512&&(St||n===null||sa(n,n.return)),n!==null&&l&4&&A0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(on(t,e),rn(e),l&512&&(St||n===null||sa(n,n.return)),e.flags&32){c=e.stateNode;try{Rs(c,"")}catch(ee){Fe(e,e.return,ee)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,A0(e,c,n!==null?n.memoizedProps:c)),l&1024&&(L0=!0);break;case 6:if(on(t,e),rn(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ee){Fe(e,e.return,ee)}}break;case 3:if(uc=null,c=In,In=rc(t.containerInfo),on(t,e),In=c,rn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(ee){Fe(e,e.return,ee)}L0&&(L0=!1,j1(e));break;case 4:l=In,In=rc(e.stateNode.containerInfo),on(t,e),rn(e),In=l;break;case 12:on(t,e),rn(e);break;case 31:on(t,e),rn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ir(e,l)));break;case 13:on(t,e),rn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Kr=gn()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ir(e,l)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,D=Ma,F=St;if(Ma=D||c,St=F||E,on(t,e),St=F,Ma=D,rn(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||Ma||St||Wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(u=E.stateNode,c)g=u.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=E.stateNode;var Q=E.memoizedProps.style,B=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ee){Fe(E,E.return,ee)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ee){Fe(E,E.return,ee)}}}else if(t.tag===18){if(n===null){E=t;try{var $=E.stateNode;c?fm($,!0):fm(E.stateNode,!1)}catch(ee){Fe(E,E.return,ee)}}}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}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Ir(e,n))));break;case 19:on(t,e),rn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ir(e,l)));break;case 30:break;case 21:break;default:on(t,e),rn(e)}}function rn(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(m1(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var c=n.stateNode,u=M0(e);Pr(e,u,c);break;case 5:var g=n.stateNode;n.flags&32&&(Rs(g,""),n.flags&=-33);var b=M0(e);Pr(e,b,g);break;case 3:case 4:var E=n.stateNode.containerInfo,D=M0(e);O0(e,D,E);break;default:throw Error(r(161))}}catch(F){Fe(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function j1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;j1(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function La(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_1(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ol(4,t,t.return),Wl(t);break;case 1:sa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&f1(t,t.return,n),Wl(t);break;case 27:So(t.stateNode);case 26:case 5:sa(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function Da(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,u=t,g=u.flags;switch(u.tag){case 0:case 11:case 15:Da(c,u,n),fo(4,u);break;case 1:if(Da(c,u,n),l=u,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(D){Fe(l,l.return,D)}if(l=u,c=l.updateQueue,c!==null){var b=l.stateNode;try{var E=c.shared.hiddenCallbacks;if(E!==null)for(c.shared.hiddenCallbacks=null,c=0;c<E.length;c++)eh(E[c],b)}catch(D){Fe(l,l.return,D)}}n&&g&64&&d1(u),ho(u,u.return);break;case 27:p1(u);case 26:case 5:Da(c,u,n),n&&l===null&&g&4&&h1(u),ho(u,u.return);break;case 12:Da(c,u,n);break;case 31:Da(c,u,n),n&&g&4&&b1(c,u);break;case 13:Da(c,u,n),n&&g&4&&x1(c,u);break;case 22:u.memoizedState===null&&Da(c,u,n),ho(u,u.return);break;case 30:break;default:Da(c,u,n)}t=t.sibling}}function D0(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&&Wi(n))}function z0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wi(e))}function Xn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)w1(e,t,n,l),t=t.sibling}function w1(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Xn(e,t,n,l),c&2048&&fo(9,t);break;case 1:Xn(e,t,n,l);break;case 3:Xn(e,t,n,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wi(e)));break;case 12:if(c&2048){Xn(e,t,n,l),e=t.stateNode;try{var u=t.memoizedProps,g=u.id,b=u.onPostCommit;typeof b=="function"&&b(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Fe(t,t.return,E)}}else Xn(e,t,n,l);break;case 31:Xn(e,t,n,l);break;case 13:Xn(e,t,n,l);break;case 23:break;case 22:u=t.stateNode,g=t.alternate,t.memoizedState!==null?u._visibility&2?Xn(e,t,n,l):mo(e,t):u._visibility&2?Xn(e,t,n,l):(u._visibility|=2,Xs(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&D0(g,t);break;case 24:Xn(e,t,n,l),c&2048&&z0(t.alternate,t);break;default:Xn(e,t,n,l)}}function Xs(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,g=t,b=n,E=l,D=g.flags;switch(g.tag){case 0:case 11:case 15:Xs(u,g,b,E,c),fo(8,g);break;case 23:break;case 22:var F=g.stateNode;g.memoizedState!==null?F._visibility&2?Xs(u,g,b,E,c):mo(u,g):(F._visibility|=2,Xs(u,g,b,E,c)),c&&D&2048&&D0(g.alternate,g);break;case 24:Xs(u,g,b,E,c),c&&D&2048&&z0(g.alternate,g);break;default:Xs(u,g,b,E,c)}t=t.sibling}}function mo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,c=l.flags;switch(l.tag){case 22:mo(n,l),c&2048&&D0(l.alternate,l);break;case 24:mo(n,l),c&2048&&z0(l.alternate,l);break;default:mo(n,l)}t=t.sibling}}var po=8192;function Ks(e,t,n){if(e.subtreeFlags&po)for(e=e.child;e!==null;)C1(e,t,n),e=e.sibling}function C1(e,t,n){switch(e.tag){case 26:Ks(e,t,n),e.flags&po&&e.memoizedState!==null&&ly(n,In,e.memoizedState,e.memoizedProps);break;case 5:Ks(e,t,n);break;case 3:case 4:var l=In;In=rc(e.stateNode.containerInfo),Ks(e,t,n),In=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=po,po=16777216,Ks(e,t,n),po=l):Ks(e,t,n));break;default:Ks(e,t,n)}}function N1(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 go(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];At=l,T1(l,e)}N1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)E1(e),e=e.sibling}function E1(e){switch(e.tag){case 0:case 11:case 15:go(e),e.flags&2048&&ol(9,e,e.return);break;case 3:go(e);break;case 12:go(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xr(e)):go(e);break;default:go(e)}}function Xr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];At=l,T1(l,e)}N1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ol(8,t,t.return),Xr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Xr(t));break;default:Xr(t)}e=e.sibling}}function T1(e,t){for(;At!==null;){var n=At;switch(n.tag){case 0:case 11:case 15:ol(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Wi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,At=l;else e:for(n=e;At!==null;){l=At;var c=l.sibling,u=l.return;if(v1(l),l===n){At=null;break e}if(c!==null){c.return=u,At=c;break e}At=u}}}var yv={getCacheForType:function(e){var t=$t(yt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $t(yt).controller.signal}},bv=typeof WeakMap=="function"?WeakMap:Map,$e=0,Xe=null,Ce=null,Te=0,qe=0,jn=null,rl=!1,Zs=!1,B0=!1,za=0,dt=0,cl=0,Jl=0,U0=0,wn=0,Ws=0,_o=null,cn=null,$0=!1,Kr=0,R1=0,Zr=1/0,Wr=null,ul=null,Nt=0,dl=null,Js=null,Ba=0,H0=0,q0=null,k1=null,vo=0,F0=null;function Cn(){return($e&2)!==0&&Te!==0?Te&-Te:H.T!==null?I0():Q2()}function A1(){if(wn===0)if((Te&536870912)===0||Ae){var e=ir;ir<<=1,(ir&3932160)===0&&(ir=262144),wn=e}else wn=536870912;return e=xn.current,e!==null&&(e.flags|=32),wn}function un(e,t,n){(e===Xe&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(ei(e,0),fl(e,Te,wn,!1)),Ui(e,n),(($e&2)===0||e!==Xe)&&(e===Xe&&(($e&2)===0&&(Jl|=n),dt===4&&fl(e,Te,wn,!1)),ia(e))}function M1(e,t,n){if(($e&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Bi(e,t),c=l?jv(e,t):V0(e,t,!0),u=l;do{if(c===0){Zs&&!l&&fl(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!xv(n)){c=V0(e,t,!1),u=!1;continue}if(c===2){if(u=t,e.errorRecoveryDisabledLanes&u)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var b=e;c=_o;var E=b.current.memoizedState.isDehydrated;if(E&&(ei(b,g).flags|=256),g=V0(b,g,!1),g!==2){if(B0&&!E){b.errorRecoveryDisabledLanes|=u,Jl|=u,c=4;break e}u=cn,cn=c,u!==null&&(cn===null?cn=u:cn.push.apply(cn,u))}c=g}if(u=!1,c!==2)continue}}if(c===1){ei(e,0),fl(e,t,0,!0);break}e:{switch(l=e,u=c,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:fl(l,t,wn,!rl);break e;case 2:cn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=Kr+300-gn(),10<c)){if(fl(l,t,wn,!rl),rr(l,0,!0)!==0)break e;Ba=t,l.timeoutHandle=cm(O1.bind(null,l,n,cn,Wr,$0,t,wn,Jl,Ws,rl,u,"Throttled",-0,0),c);break e}O1(l,n,cn,Wr,$0,t,wn,Jl,Ws,rl,u,null,-0,0)}}break}while(!0);ia(e)}function O1(e,t,n,l,c,u,g,b,E,D,F,Q,B,$){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sa},C1(t,u,Q);var ee=(u&62914560)===u?Kr-gn():(u&4194048)===u?R1-gn():0;if(ee=sy(Q,ee),ee!==null){Ba=u,e.cancelPendingCommit=ee(q1.bind(null,e,t,u,n,l,c,g,b,E,F,Q,null,B,$)),fl(e,u,g,!D);return}}q1(e,t,u,n,l,c,g,b,E)}function xv(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 l=0;l<n.length;l++){var c=n[l],u=c.getSnapshot;c=c.value;try{if(!yn(u(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fl(e,t,n,l){t&=~U0,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var u=31-vn(c),g=1<<u;l[u]=-1,c&=~g}n!==0&&F2(e,n,t)}function Jr(){return($e&6)===0?(yo(0),!1):!0}function G0(){if(Ce!==null){if(qe===0)var e=Ce.return;else e=Ce,Na=Vl=null,s0(e),Vs=null,eo=0,e=Ce;for(;e!==null;)u1(e.alternate,e),e=e.return;Ce=null}}function ei(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ba=0,G0(),Xe=e,Ce=n=wa(e.current,null),Te=t,qe=0,jn=null,rl=!1,Zs=Bi(e,t),B0=!1,Ws=wn=U0=Jl=cl=dt=0,cn=_o=null,$0=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-vn(l),u=1<<c;t|=e[c],l&=~u}return za=t,br(),n}function L1(e,t){be=null,H.H=ro,t===Gs||t===Tr?(t=Kf(),qe=3):t===Pu?(t=Kf(),qe=4):qe=t===x0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jn=t,Ce===null&&(dt=1,Fr(e,zn(t,e.current)))}function D1(){var e=xn.current;return e===null?!0:(Te&4194048)===Te?Hn===null:(Te&62914560)===Te||(Te&536870912)!==0?e===Hn:!1}function z1(){var e=H.H;return H.H=ro,e===null?ro:e}function B1(){var e=H.A;return H.A=yv,e}function ec(){dt=4,rl||(Te&4194048)!==Te&&xn.current!==null||(Zs=!0),(cl&134217727)===0&&(Jl&134217727)===0||Xe===null||fl(Xe,Te,wn,!1)}function V0(e,t,n){var l=$e;$e|=2;var c=z1(),u=B1();(Xe!==e||Te!==t)&&(Wr=null,ei(e,t)),t=!1;var g=dt;e:do try{if(qe!==0&&Ce!==null){var b=Ce,E=jn;switch(qe){case 8:G0(),g=6;break e;case 3:case 2:case 9:case 6:xn.current===null&&(t=!0);var D=qe;if(qe=0,jn=null,ti(e,b,E,D),n&&Zs){g=0;break e}break;default:D=qe,qe=0,jn=null,ti(e,b,E,D)}}Sv(),g=dt;break}catch(F){L1(e,F)}while(!0);return t&&e.shellSuspendCounter++,Na=Vl=null,$e=l,H.H=c,H.A=u,Ce===null&&(Xe=null,Te=0,br()),g}function Sv(){for(;Ce!==null;)U1(Ce)}function jv(e,t){var n=$e;$e|=2;var l=z1(),c=B1();Xe!==e||Te!==t?(Wr=null,Zr=gn()+500,ei(e,t)):Zs=Bi(e,t);e:do try{if(qe!==0&&Ce!==null){t=Ce;var u=jn;t:switch(qe){case 1:qe=0,jn=null,ti(e,t,u,1);break;case 2:case 9:if(If(u)){qe=0,jn=null,$1(t);break}t=function(){qe!==2&&qe!==9||Xe!==e||(qe=7),ia(e)},u.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:If(u)?(qe=0,jn=null,$1(t)):(qe=0,jn=null,ti(e,t,u,7));break;case 5:var g=null;switch(Ce.tag){case 26:g=Ce.memoizedState;case 5:case 27:var b=Ce;if(g?wm(g):b.stateNode.complete){qe=0,jn=null;var E=b.sibling;if(E!==null)Ce=E;else{var D=b.return;D!==null?(Ce=D,tc(D)):Ce=null}break t}}qe=0,jn=null,ti(e,t,u,5);break;case 6:qe=0,jn=null,ti(e,t,u,6);break;case 8:G0(),dt=6;break e;default:throw Error(r(462))}}wv();break}catch(F){L1(e,F)}while(!0);return Na=Vl=null,H.H=l,H.A=c,$e=n,Ce!==null?0:(Xe=null,Te=0,br(),dt)}function wv(){for(;Ce!==null&&!nr();)U1(Ce)}function U1(e){var t=r1(e.alternate,e,za);e.memoizedProps=e.pendingProps,t===null?tc(e):Ce=t}function $1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=n1(n,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=n1(n,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:s0(t);default:u1(n,t),t=Ce=Bf(t,za),t=r1(n,t,za)}e.memoizedProps=e.pendingProps,t===null?tc(e):Ce=t}function ti(e,t,n,l){Na=Vl=null,s0(t),Vs=null,eo=0;var c=t.return;try{if(fv(e,c,t,n,Te)){dt=1,Fr(e,zn(n,e.current)),Ce=null;return}}catch(u){if(c!==null)throw Ce=c,u;dt=1,Fr(e,zn(n,e.current)),Ce=null;return}t.flags&32768?(Ae||l===1?e=!0:Zs||(Te&536870912)!==0?e=!1:(rl=e=!0,(l===2||l===9||l===3||l===6)&&(l=xn.current,l!==null&&l.tag===13&&(l.flags|=16384))),H1(t,e)):tc(t)}function tc(e){var t=e;do{if((t.flags&32768)!==0){H1(t,rl);return}e=t.return;var n=pv(t.alternate,t,za);if(n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);dt===0&&(dt=5)}function H1(e,t){do{var n=gv(e.alternate,e);if(n!==null){n.flags&=32767,Ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=n}while(e!==null);dt=6,Ce=null}function q1(e,t,n,l,c,u,g,b,E){e.cancelPendingCommit=null;do nc();while(Nt!==0);if(($e&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Mu,a_(e,n,u,g,b,E),e===Xe&&(Ce=Xe=null,Te=0),Js=t,dl=e,Ba=n,H0=u,q0=c,k1=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tv(lr,function(){return Y1(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,c=I.p,I.p=2,g=$e,$e|=4;try{_v(e,t,n)}finally{$e=g,I.p=c,H.T=l}}Nt=1,F1(),G1(),V1()}}function F1(){if(Nt===1){Nt=0;var e=dl,t=Js,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=H.T,H.T=null;var l=I.p;I.p=2;var c=$e;$e|=4;try{S1(t,e);var u=nd,g=Tf(e.containerInfo),b=u.focusedElem,E=u.selectionRange;if(g!==b&&b&&b.ownerDocument&&Ef(b.ownerDocument.documentElement,b)){if(E!==null&&Eu(b)){var D=E.start,F=E.end;if(F===void 0&&(F=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(F,b.value.length);else{var Q=b.ownerDocument||document,B=Q&&Q.defaultView||window;if(B.getSelection){var $=B.getSelection(),ee=b.textContent.length,me=Math.min(E.start,ee),Pe=E.end===void 0?me:Math.min(E.end,ee);!$.extend&&me>Pe&&(g=Pe,Pe=me,me=g);var M=Nf(b,me),k=Nf(b,Pe);if(M&&k&&($.rangeCount!==1||$.anchorNode!==M.node||$.anchorOffset!==M.offset||$.focusNode!==k.node||$.focusOffset!==k.offset)){var L=Q.createRange();L.setStart(M.node,M.offset),$.removeAllRanges(),me>Pe?($.addRange(L),$.extend(k.node,k.offset)):(L.setEnd(k.node,k.offset),$.addRange(L))}}}}for(Q=[],$=b;$=$.parentNode;)$.nodeType===1&&Q.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Q.length;b++){var G=Q[b];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}mc=!!td,nd=td=null}finally{$e=c,I.p=l,H.T=n}}e.current=t,Nt=2}}function G1(){if(Nt===2){Nt=0;var e=dl,t=Js,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=H.T,H.T=null;var l=I.p;I.p=2;var c=$e;$e|=4;try{_1(e,t.alternate,t)}finally{$e=c,I.p=l,H.T=n}}Nt=3}}function V1(){if(Nt===4||Nt===3){Nt=0,ar();var e=dl,t=Js,n=Ba,l=k1;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Nt=5:(Nt=0,Js=dl=null,Q1(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ul=null),ru(n),t=t.stateNode,_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(zi,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=H.T,c=I.p,I.p=2,H.T=null;try{for(var u=e.onRecoverableError,g=0;g<l.length;g++){var b=l[g];u(b.value,{componentStack:b.stack})}}finally{H.T=t,I.p=c}}(Ba&3)!==0&&nc(),ia(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===F0?vo++:(vo=0,F0=e):vo=0,yo(0)}}function Q1(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wi(t)))}function nc(){return F1(),G1(),V1(),Y1()}function Y1(){if(Nt!==5)return!1;var e=dl,t=H0;H0=0;var n=ru(Ba),l=H.T,c=I.p;try{I.p=32>n?32:n,H.T=null,n=q0,q0=null;var u=dl,g=Ba;if(Nt=0,Js=dl=null,Ba=0,($e&6)!==0)throw Error(r(331));var b=$e;if($e|=4,E1(u.current),w1(u,u.current,g,n),$e=b,yo(0,!1),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(zi,u)}catch{}return!0}finally{I.p=c,H.T=l,Q1(e,t)}}function P1(e,t,n){t=zn(n,t),t=b0(e.stateNode,t,2),e=ll(e,t,2),e!==null&&(Ui(e,2),ia(e))}function Fe(e,t,n){if(e.tag===3)P1(e,e,n);else for(;t!==null;){if(t.tag===3){P1(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ul===null||!ul.has(l))){e=zn(n,e),n=Ih(2),l=ll(t,n,2),l!==null&&(Xh(n,l,t,e),Ui(l,2),ia(l));break}}t=t.return}}function Q0(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new bv;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(n)||(B0=!0,c.add(n),e=Cv.bind(null,e,t,n),t.then(e,e))}function Cv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xe===e&&(Te&n)===n&&(dt===4||dt===3&&(Te&62914560)===Te&&300>gn()-Kr?($e&2)===0&&ei(e,0):U0|=n,Ws===Te&&(Ws=0)),ia(e)}function I1(e,t){t===0&&(t=q2()),e=ql(e,t),e!==null&&(Ui(e,t),ia(e))}function Nv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),I1(e,n)}function Ev(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),I1(e,n)}function Tv(e,t){return Ve(e,t)}var ac=null,ni=null,Y0=!1,lc=!1,P0=!1,hl=0;function ia(e){e!==ni&&e.next===null&&(ni===null?ac=ni=e:ni=ni.next=e),lc=!0,Y0||(Y0=!0,kv())}function yo(e,t){if(!P0&&lc){P0=!0;do for(var n=!1,l=ac;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var u=0;else{var g=l.suspendedLanes,b=l.pingedLanes;u=(1<<31-vn(42|e)+1)-1,u&=c&~(g&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,W1(l,u))}else u=Te,u=rr(l,l===Xe?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Bi(l,u)||(n=!0,W1(l,u));l=l.next}while(n);P0=!1}}function Rv(){X1()}function X1(){lc=Y0=!1;var e=0;hl!==0&&Hv()&&(e=hl);for(var t=gn(),n=null,l=ac;l!==null;){var c=l.next,u=K1(l,t);u===0?(l.next=null,n===null?ac=c:n.next=c,c===null&&(ni=n)):(n=l,(e!==0||(u&3)!==0)&&(lc=!0)),l=c}Nt!==0&&Nt!==5||yo(e),hl!==0&&(hl=0)}function K1(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var g=31-vn(u),b=1<<g,E=c[g];E===-1?((b&n)===0||(b&l)!==0)&&(c[g]=n_(b,t)):E<=t&&(e.expiredLanes|=b),u&=~b}if(t=Xe,n=Te,n=rr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Pt(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Bi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Pt(l),ru(n)){case 2:case 8:n=$2;break;case 32:n=lr;break;case 268435456:n=H2;break;default:n=lr}return l=Z1.bind(null,e),n=Ve(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Pt(l),e.callbackPriority=2,e.callbackNode=null,2}function Z1(e,t){if(Nt!==0&&Nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(nc()&&e.callbackNode!==n)return null;var l=Te;return l=rr(e,e===Xe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(M1(e,l,t),K1(e,gn()),e.callbackNode!=null&&e.callbackNode===n?Z1.bind(null,e):null)}function W1(e,t){if(nc())return null;M1(e,t,!0)}function kv(){Fv(function(){($e&6)!==0?Ve(U2,Rv):X1()})}function I0(){if(hl===0){var e=qs;e===0&&(e=sr,sr<<=1,(sr&261888)===0&&(sr=256)),hl=e}return hl}function J1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fr(""+e)}function em(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 Av(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var u=J1((c[an]||null).action),g=l.submitter;g&&(t=(t=g[an]||null)?J1(t.formAction):g.getAttribute("formAction"),t!==null&&(u=t,g=null));var b=new gr("action","action",null,l,c);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(hl!==0){var E=g?em(c,g):new FormData(c);m0(n,{pending:!0,data:E,method:c.method,action:u},null,E)}}else typeof u=="function"&&(b.preventDefault(),E=g?em(c,g):new FormData(c),m0(n,{pending:!0,data:E,method:c.method,action:u},u,E))},currentTarget:c}]})}}for(var X0=0;X0<Au.length;X0++){var K0=Au[X0],Mv=K0.toLowerCase(),Ov=K0[0].toUpperCase()+K0.slice(1);Pn(Mv,"on"+Ov)}Pn(Af,"onAnimationEnd"),Pn(Mf,"onAnimationIteration"),Pn(Of,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(X_,"onTransitionRun"),Pn(K_,"onTransitionStart"),Pn(Z_,"onTransitionCancel"),Pn(Lf,"onTransitionEnd"),Es("onMouseEnter",["mouseout","mouseover"]),Es("onMouseLeave",["mouseout","mouseover"]),Es("onPointerEnter",["pointerout","pointerover"]),Es("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bo="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(" "),Lv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bo));function tm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],c=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var g=l.length-1;0<=g;g--){var b=l[g],E=b.instance,D=b.currentTarget;if(b=b.listener,E!==u&&c.isPropagationStopped())break e;u=b,c.currentTarget=D;try{u(c)}catch(F){yr(F)}c.currentTarget=null,u=E}else for(g=0;g<l.length;g++){if(b=l[g],E=b.instance,D=b.currentTarget,b=b.listener,E!==u&&c.isPropagationStopped())break e;u=b,c.currentTarget=D;try{u(c)}catch(F){yr(F)}c.currentTarget=null,u=E}}}}function Ne(e,t){var n=t[cu];n===void 0&&(n=t[cu]=new Set);var l=e+"__bubble";n.has(l)||(nm(t,e,2,!1),n.add(l))}function Z0(e,t,n){var l=0;t&&(l|=4),nm(n,e,l,t)}var sc="_reactListening"+Math.random().toString(36).slice(2);function W0(e){if(!e[sc]){e[sc]=!0,I2.forEach(function(n){n!=="selectionchange"&&(Lv.has(n)||Z0(n,!1,e),Z0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[sc]||(t[sc]=!0,Z0("selectionchange",!1,t))}}function nm(e,t,n,l){switch(Am(t)){case 2:var c=ry;break;case 8:c=cy;break;default:c=hd}n=c.bind(null,t,n,e),c=void 0,!vu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?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 J0(e,t,n,l,c){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var b=l.stateNode.containerInfo;if(b===c)break;if(g===4)for(g=l.return;g!==null;){var E=g.tag;if((E===3||E===4)&&g.stateNode.containerInfo===c)return;g=g.return}for(;b!==null;){if(g=ws(b),g===null)return;if(E=g.tag,E===5||E===6||E===26||E===27){l=u=g;continue e}b=b.parentNode}}l=l.return}of(function(){var D=u,F=gu(n),Q=[];e:{var B=Df.get(e);if(B!==void 0){var $=gr,ee=e;switch(e){case"keypress":if(mr(n)===0)break e;case"keydown":case"keyup":$=E_;break;case"focusin":ee="focus",$=Su;break;case"focusout":ee="blur",$=Su;break;case"beforeblur":case"afterblur":$=Su;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":$=uf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=p_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=k_;break;case Af:case Mf:case Of:$=v_;break;case Lf:$=M_;break;case"scroll":case"scrollend":$=h_;break;case"wheel":$=L_;break;case"copy":case"cut":case"paste":$=b_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=ff;break;case"toggle":case"beforetoggle":$=z_}var me=(t&4)!==0,Pe=!me&&(e==="scroll"||e==="scrollend"),M=me?B!==null?B+"Capture":null:B;me=[];for(var k=D,L;k!==null;){var G=k;if(L=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||L===null||M===null||(G=qi(k,M),G!=null&&me.push(xo(k,G,L))),Pe)break;k=k.return}0<me.length&&(B=new $(B,ee,null,n,F),Q.push({event:B,listeners:me}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",B&&n!==pu&&(ee=n.relatedTarget||n.fromElement)&&(ws(ee)||ee[js]))break e;if(($||B)&&(B=F.window===F?F:(B=F.ownerDocument)?B.defaultView||B.parentWindow:window,$?(ee=n.relatedTarget||n.toElement,$=D,ee=ee?ws(ee):null,ee!==null&&(Pe=f(ee),me=ee.tag,ee!==Pe||me!==5&&me!==27&&me!==6)&&(ee=null)):($=null,ee=D),$!==ee)){if(me=uf,G="onMouseLeave",M="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(me=ff,G="onPointerLeave",M="onPointerEnter",k="pointer"),Pe=$==null?B:Hi($),L=ee==null?B:Hi(ee),B=new me(G,k+"leave",$,n,F),B.target=Pe,B.relatedTarget=L,G=null,ws(F)===D&&(me=new me(M,k+"enter",ee,n,F),me.target=L,me.relatedTarget=Pe,G=me),Pe=G,$&&ee)t:{for(me=Dv,M=$,k=ee,L=0,G=M;G;G=me(G))L++;G=0;for(var oe=k;oe;oe=me(oe))G++;for(;0<L-G;)M=me(M),L--;for(;0<G-L;)k=me(k),G--;for(;L--;){if(M===k||k!==null&&M===k.alternate){me=M;break t}M=me(M),k=me(k)}me=null}else me=null;$!==null&&am(Q,B,$,me,!1),ee!==null&&Pe!==null&&am(Q,Pe,ee,me,!0)}}e:{if(B=D?Hi(D):window,$=B.nodeName&&B.nodeName.toLowerCase(),$==="select"||$==="input"&&B.type==="file")var Be=bf;else if(vf(B))if(xf)Be=Y_;else{Be=V_;var le=G_}else $=B.nodeName,!$||$.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?D&&mu(D.elementType)&&(Be=bf):Be=Q_;if(Be&&(Be=Be(e,D))){yf(Q,Be,n,F);break e}le&&le(e,B,D),e==="focusout"&&D&&B.type==="number"&&D.memoizedProps.value!=null&&hu(B,"number",B.value)}switch(le=D?Hi(D):window,e){case"focusin":(vf(le)||le.contentEditable==="true")&&(Os=le,Tu=D,Xi=null);break;case"focusout":Xi=Tu=Os=null;break;case"mousedown":Ru=!0;break;case"contextmenu":case"mouseup":case"dragend":Ru=!1,Rf(Q,n,F);break;case"selectionchange":if(I_)break;case"keydown":case"keyup":Rf(Q,n,F)}var Se;if(wu)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else Ms?gf(e,n)&&(Re="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Re="onCompositionStart");Re&&(hf&&n.locale!=="ko"&&(Ms||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&Ms&&(Se=rf()):(Za=F,yu="value"in Za?Za.value:Za.textContent,Ms=!0)),le=ic(D,Re),0<le.length&&(Re=new df(Re,e,null,n,F),Q.push({event:Re,listeners:le}),Se?Re.data=Se:(Se=_f(n),Se!==null&&(Re.data=Se)))),(Se=U_?$_(e,n):H_(e,n))&&(Re=ic(D,"onBeforeInput"),0<Re.length&&(le=new df("onBeforeInput","beforeinput",null,n,F),Q.push({event:le,listeners:Re}),le.data=Se)),Av(Q,e,D,n,F)}tm(Q,t)})}function xo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ic(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=qi(e,n),c!=null&&l.unshift(xo(e,c,u)),c=qi(e,t),c!=null&&l.push(xo(e,c,u))),e.tag===3)return l;e=e.return}return[]}function Dv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function am(e,t,n,l,c){for(var u=t._reactName,g=[];n!==null&&n!==l;){var b=n,E=b.alternate,D=b.stateNode;if(b=b.tag,E!==null&&E===l)break;b!==5&&b!==26&&b!==27||D===null||(E=D,c?(D=qi(n,u),D!=null&&g.unshift(xo(n,D,E))):c||(D=qi(n,u),D!=null&&g.push(xo(n,D,E)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var zv=/\r\n?/g,Bv=/\u0000|\uFFFD/g;function lm(e){return(typeof e=="string"?e:""+e).replace(zv,`
`).replace(Bv,"")}function sm(e,t){return t=lm(t),lm(e)===t}function Ye(e,t,n,l,c,u){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Rs(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Rs(e,""+l);break;case"className":ur(e,"class",l);break;case"tabIndex":ur(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ur(e,n,l);break;case"style":lf(e,l,u);break;case"data":if(t!=="object"){ur(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=fr(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&Ye(e,t,"name",c.name,c,null),Ye(e,t,"formEncType",c.formEncType,c,null),Ye(e,t,"formMethod",c.formMethod,c,null),Ye(e,t,"formTarget",c.formTarget,c,null)):(Ye(e,t,"encType",c.encType,c,null),Ye(e,t,"method",c.method,c,null),Ye(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=fr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Sa);break;case"onScroll":l!=null&&Ne("scroll",e);break;case"onScrollEnd":l!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=fr(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),cr(e,"popover",l);break;case"xlinkActuate":xa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":xa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":xa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":xa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":xa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":xa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":xa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":xa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":xa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":cr(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=d_.get(n)||n,cr(e,n,l))}}function ed(e,t,n,l,c,u){switch(n){case"style":lf(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Rs(e,l):(typeof l=="number"||typeof l=="bigint")&&Rs(e,""+l);break;case"onScroll":l!=null&&Ne("scroll",e);break;case"onScrollEnd":l!=null&&Ne("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Sa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!X2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),u=e[an]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,c),typeof l=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,c);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):cr(e,n,l)}}}function qt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var l=!1,c=!1,u;for(u in n)if(n.hasOwnProperty(u)){var g=n[u];if(g!=null)switch(u){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ye(e,t,u,g,n,null)}}c&&Ye(e,t,"srcSet",n.srcSet,n,null),l&&Ye(e,t,"src",n.src,n,null);return;case"input":Ne("invalid",e);var b=u=g=c=null,E=null,D=null;for(l in n)if(n.hasOwnProperty(l)){var F=n[l];if(F!=null)switch(l){case"name":c=F;break;case"type":g=F;break;case"checked":E=F;break;case"defaultChecked":D=F;break;case"value":u=F;break;case"defaultValue":b=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,t));break;default:Ye(e,t,l,F,n,null)}}ef(e,u,b,E,D,g,c,!1);return;case"select":Ne("invalid",e),l=g=u=null;for(c in n)if(n.hasOwnProperty(c)&&(b=n[c],b!=null))switch(c){case"value":u=b;break;case"defaultValue":g=b;break;case"multiple":l=b;default:Ye(e,t,c,b,n,null)}t=u,n=g,e.multiple=!!l,t!=null?Ts(e,!!l,t,!1):n!=null&&Ts(e,!!l,n,!0);return;case"textarea":Ne("invalid",e),u=c=l=null;for(g in n)if(n.hasOwnProperty(g)&&(b=n[g],b!=null))switch(g){case"value":l=b;break;case"defaultValue":c=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:Ye(e,t,g,b,n,null)}nf(e,l,c,u);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ye(e,t,E,l,n,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(l=0;l<bo.length;l++)Ne(bo[l],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(l=n[D],l!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ye(e,t,D,l,n,null)}return;default:if(mu(t)){for(F in n)n.hasOwnProperty(F)&&(l=n[F],l!==void 0&&ed(e,t,F,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&Ye(e,t,b,l,n,null))}function Uv(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,g=null,b=null,E=null,D=null,F=null;for($ in n){var Q=n[$];if(n.hasOwnProperty($)&&Q!=null)switch($){case"checked":break;case"value":break;case"defaultValue":E=Q;default:l.hasOwnProperty($)||Ye(e,t,$,null,l,Q)}}for(var B in l){var $=l[B];if(Q=n[B],l.hasOwnProperty(B)&&($!=null||Q!=null))switch(B){case"type":u=$;break;case"name":c=$;break;case"checked":D=$;break;case"defaultChecked":F=$;break;case"value":g=$;break;case"defaultValue":b=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,t));break;default:$!==Q&&Ye(e,t,B,$,l,Q)}}fu(e,g,b,E,D,F,u,c);return;case"select":$=g=b=B=null;for(u in n)if(E=n[u],n.hasOwnProperty(u)&&E!=null)switch(u){case"value":break;case"multiple":$=E;default:l.hasOwnProperty(u)||Ye(e,t,u,null,l,E)}for(c in l)if(u=l[c],E=n[c],l.hasOwnProperty(c)&&(u!=null||E!=null))switch(c){case"value":B=u;break;case"defaultValue":b=u;break;case"multiple":g=u;default:u!==E&&Ye(e,t,c,u,l,E)}t=b,n=g,l=$,B!=null?Ts(e,!!n,B,!1):!!l!=!!n&&(t!=null?Ts(e,!!n,t,!0):Ts(e,!!n,n?[]:"",!1));return;case"textarea":$=B=null;for(b in n)if(c=n[b],n.hasOwnProperty(b)&&c!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ye(e,t,b,null,l,c)}for(g in l)if(c=l[g],u=n[g],l.hasOwnProperty(g)&&(c!=null||u!=null))switch(g){case"value":B=c;break;case"defaultValue":$=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==u&&Ye(e,t,g,c,l,u)}tf(e,B,$);return;case"option":for(var ee in n)if(B=n[ee],n.hasOwnProperty(ee)&&B!=null&&!l.hasOwnProperty(ee))switch(ee){case"selected":e.selected=!1;break;default:Ye(e,t,ee,null,l,B)}for(E in l)if(B=l[E],$=n[E],l.hasOwnProperty(E)&&B!==$&&(B!=null||$!=null))switch(E){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ye(e,t,E,B,l,$)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var me in n)B=n[me],n.hasOwnProperty(me)&&B!=null&&!l.hasOwnProperty(me)&&Ye(e,t,me,null,l,B);for(D in l)if(B=l[D],$=n[D],l.hasOwnProperty(D)&&B!==$&&(B!=null||$!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:Ye(e,t,D,B,l,$)}return;default:if(mu(t)){for(var Pe in n)B=n[Pe],n.hasOwnProperty(Pe)&&B!==void 0&&!l.hasOwnProperty(Pe)&&ed(e,t,Pe,void 0,l,B);for(F in l)B=l[F],$=n[F],!l.hasOwnProperty(F)||B===$||B===void 0&&$===void 0||ed(e,t,F,B,l,$);return}}for(var M in n)B=n[M],n.hasOwnProperty(M)&&B!=null&&!l.hasOwnProperty(M)&&Ye(e,t,M,null,l,B);for(Q in l)B=l[Q],$=n[Q],!l.hasOwnProperty(Q)||B===$||B==null&&$==null||Ye(e,t,Q,B,l,$)}function im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $v(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var c=n[l],u=c.transferSize,g=c.initiatorType,b=c.duration;if(u&&b&&im(g)){for(g=0,b=c.responseEnd,l+=1;l<n.length;l++){var E=n[l],D=E.startTime;if(D>b)break;var F=E.transferSize,Q=E.initiatorType;F&&im(Q)&&(E=E.responseEnd,g+=F*(E<b?1:(b-D)/(E-D)))}if(--l,t+=8*(u+g)/(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 td=null,nd=null;function oc(e){return e.nodeType===9?e:e.ownerDocument}function om(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 rm(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 ad(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 ld=null;function Hv(){var e=window.event;return e&&e.type==="popstate"?e===ld?!1:(ld=e,!0):(ld=null,!1)}var cm=typeof setTimeout=="function"?setTimeout:void 0,qv=typeof clearTimeout=="function"?clearTimeout:void 0,um=typeof Promise=="function"?Promise:void 0,Fv=typeof queueMicrotask=="function"?queueMicrotask:typeof um<"u"?function(e){return um.resolve(null).then(e).catch(Gv)}:cm;function Gv(e){setTimeout(function(){throw e})}function ml(e){return e==="head"}function dm(e,t){var n=t,l=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(c),ii(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")So(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,So(n);for(var u=n.firstChild;u;){var g=u.nextSibling,b=u.nodeName;u[$i]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=g}}else n==="body"&&So(e.ownerDocument.body);n=c}while(n);ii(t)}function fm(e,t){var n=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function sd(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":sd(n),uu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Vv(e,t,n,l){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[$i])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=qn(e.nextSibling),e===null)break}return null}function Qv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=qn(e.nextSibling),e===null))return null;return e}function hm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qn(e.nextSibling),e===null))return null;return e}function id(e){return e.data==="$?"||e.data==="$~"}function od(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Yv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function qn(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 rd=null;function mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return qn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function pm(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 gm(e,t,n){switch(t=oc(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 So(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);uu(e)}var Fn=new Map,_m=new Set;function rc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ua=I.d;I.d={f:Pv,r:Iv,D:Xv,C:Kv,L:Zv,m:Wv,X:ey,S:Jv,M:ty};function Pv(){var e=Ua.f(),t=Jr();return e||t}function Iv(e){var t=Cs(e);t!==null&&t.tag===5&&t.type==="form"?Lh(t):Ua.r(e)}var ai=typeof document>"u"?null:document;function vm(e,t,n){var l=ai;if(l&&typeof t=="string"&&t){var c=Ln(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),_m.has(c)||(_m.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),qt(t,"link",e),kt(t),l.head.appendChild(t)))}}function Xv(e){Ua.D(e),vm("dns-prefetch",e,null)}function Kv(e,t){Ua.C(e,t),vm("preconnect",e,t)}function Zv(e,t,n){Ua.L(e,t,n);var l=ai;if(l&&e&&t){var c='link[rel="preload"][as="'+Ln(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Ln(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Ln(n.imageSizes)+'"]')):c+='[href="'+Ln(e)+'"]';var u=c;switch(t){case"style":u=li(e);break;case"script":u=si(e)}Fn.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Fn.set(u,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(jo(u))||t==="script"&&l.querySelector(wo(u))||(t=l.createElement("link"),qt(t,"link",e),kt(t),l.head.appendChild(t)))}}function Wv(e,t){Ua.m(e,t);var n=ai;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Ln(l)+'"][href="'+Ln(e)+'"]',u=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=si(e)}if(!Fn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Fn.set(u,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wo(u)))return}l=n.createElement("link"),qt(l,"link",e),kt(l),n.head.appendChild(l)}}}function Jv(e,t,n){Ua.S(e,t,n);var l=ai;if(l&&e){var c=Ns(l).hoistableStyles,u=li(e);t=t||"default";var g=c.get(u);if(!g){var b={loading:0,preload:null};if(g=l.querySelector(jo(u)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Fn.get(u))&&cd(e,n);var E=g=l.createElement("link");kt(E),qt(E,"link",e),E._p=new Promise(function(D,F){E.onload=D,E.onerror=F}),E.addEventListener("load",function(){b.loading|=1}),E.addEventListener("error",function(){b.loading|=2}),b.loading|=4,cc(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:b},c.set(u,g)}}}function ey(e,t){Ua.X(e,t);var n=ai;if(n&&e){var l=Ns(n).hoistableScripts,c=si(e),u=l.get(c);u||(u=n.querySelector(wo(c)),u||(e=y({src:e,async:!0},t),(t=Fn.get(c))&&ud(e,t),u=n.createElement("script"),kt(u),qt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(c,u))}}function ty(e,t){Ua.M(e,t);var n=ai;if(n&&e){var l=Ns(n).hoistableScripts,c=si(e),u=l.get(c);u||(u=n.querySelector(wo(c)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Fn.get(c))&&ud(e,t),u=n.createElement("script"),kt(u),qt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(c,u))}}function ym(e,t,n,l){var c=(c=xe.current)?rc(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=li(n.href),n=Ns(c).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=li(n.href);var u=Ns(c).hoistableStyles,g=u.get(e);if(g||(c=c.ownerDocument||c,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=c.querySelector(jo(e)))&&!u._p&&(g.instance=u,g.state.loading=5),Fn.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},Fn.set(e,n),u||ny(c,e,n,g.state))),t&&l===null)throw Error(r(528,""));return g}if(t&&l!==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=si(n),n=Ns(c).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function li(e){return'href="'+Ln(e)+'"'}function jo(e){return'link[rel="stylesheet"]['+e+"]"}function bm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function ny(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),qt(t,"link",n),kt(t),e.head.appendChild(t))}function si(e){return'[src="'+Ln(e)+'"]'}function wo(e){return"script[async]"+e}function xm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ln(n.href)+'"]');if(l)return t.instance=l,kt(l),l;var c=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),kt(l),qt(l,"style",c),cc(l,n.precedence,e),t.instance=l;case"stylesheet":c=li(n.href);var u=e.querySelector(jo(c));if(u)return t.state.loading|=4,t.instance=u,kt(u),u;l=bm(n),(c=Fn.get(c))&&cd(l,c),u=(e.ownerDocument||e).createElement("link"),kt(u);var g=u;return g._p=new Promise(function(b,E){g.onload=b,g.onerror=E}),qt(u,"link",l),t.state.loading|=4,cc(u,n.precedence,e),t.instance=u;case"script":return u=si(n.src),(c=e.querySelector(wo(u)))?(t.instance=c,kt(c),c):(l=n,(c=Fn.get(u))&&(l=y({},n),ud(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),kt(c),qt(c,"link",l),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&&(l=t.instance,t.state.loading|=4,cc(l,n.precedence,e));return t.instance}function cc(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,u=c,g=0;g<l.length;g++){var b=l[g];if(b.dataset.precedence===t)u=b;else if(u!==c)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function cd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ud(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var uc=null;function Sm(e,t,n){if(uc===null){var l=new Map,c=uc=new Map;c.set(n,l)}else c=uc,l=c.get(n),l||(l=new Map,c.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var u=n[c];if(!(u[$i]||u[Bt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var g=u.getAttribute(t)||"";g=e+g;var b=l.get(g);b?b.push(u):l.set(g,[u])}}return l}function jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ay(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 wm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ly(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=li(l.href),u=t.querySelector(jo(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=dc.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,kt(u);return}u=t.ownerDocument||t,l=bm(l),(c=Fn.get(c))&&cd(l,c),u=u.createElement("link"),kt(u);var g=u;g._p=new Promise(function(b,E){g.onload=b,g.onerror=E}),qt(u,"link",l),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=dc.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var dd=0;function sy(e,t){return e.stylesheets&&e.count===0&&hc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&hc(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&dd===0&&(dd=62500*$v());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&hc(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>dd?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function dc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fc=null;function hc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fc=new Map,t.forEach(iy,e),fc=null,dc.call(e))}function iy(e,t){if(!(t.state.loading&4)){var n=fc.get(e);if(n)var l=n.get(null);else{n=new Map,fc.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var g=c[u];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),l=g)}l&&n.set(null,l)}c=t.instance,g=c.getAttribute("data-precedence"),u=n.get(g)||l,u===l&&n.set(null,c),n.set(g,c),this.count++,l=dc.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),u?u.parentNode.insertBefore(c,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Co={$$typeof:O,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function oy(e,t,n,l,c,u,g,b,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iu(0),this.hiddenUpdates=iu(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Cm(e,t,n,l,c,u,g,b,E,D,F,Q){return e=new oy(e,t,n,g,E,D,F,Q,b),t=1,u===!0&&(t|=24),u=bn(3,null,null,t),e.current=u,u.stateNode=e,t=Vu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},Iu(u),e}function Nm(e){return e?(e=zs,e):zs}function Em(e,t,n,l,c,u){c=Nm(c),l.context===null?l.context=c:l.pendingContext=c,l=al(t),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=ll(e,l,t),n!==null&&(un(n,e,t),no(n,e,t))}function Tm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fd(e,t){Tm(e,t),(e=e.alternate)&&Tm(e,t)}function Rm(e){if(e.tag===13||e.tag===31){var t=ql(e,67108864);t!==null&&un(t,e,67108864),fd(e,67108864)}}function km(e){if(e.tag===13||e.tag===31){var t=Cn();t=ou(t);var n=ql(e,t);n!==null&&un(n,e,t),fd(e,t)}}var mc=!0;function ry(e,t,n,l){var c=H.T;H.T=null;var u=I.p;try{I.p=2,hd(e,t,n,l)}finally{I.p=u,H.T=c}}function cy(e,t,n,l){var c=H.T;H.T=null;var u=I.p;try{I.p=8,hd(e,t,n,l)}finally{I.p=u,H.T=c}}function hd(e,t,n,l){if(mc){var c=md(l);if(c===null)J0(e,t,l,pc,n),Mm(e,l);else if(dy(c,e,t,n,l))l.stopPropagation();else if(Mm(e,l),t&4&&-1<uy.indexOf(e)){for(;c!==null;){var u=Cs(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var g=zl(u.pendingLanes);if(g!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var E=1<<31-vn(g);b.entanglements[1]|=E,g&=~E}ia(u),($e&6)===0&&(Zr=gn()+500,yo(0))}}break;case 31:case 13:b=ql(u,2),b!==null&&un(b,u,2),Jr(),fd(u,2)}if(u=md(l),u===null&&J0(e,t,l,pc,n),u===c)break;c=u}c!==null&&l.stopPropagation()}else J0(e,t,l,null,n)}}function md(e){return e=gu(e),pd(e)}var pc=null;function pd(e){if(pc=null,e=ws(e),e!==null){var t=f(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=_(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 pc=e,null}function Am(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(Xg()){case U2:return 2;case $2:return 8;case lr:case Kg:return 32;case H2:return 268435456;default:return 32}default:return 32}}var gd=!1,pl=null,gl=null,_l=null,No=new Map,Eo=new Map,vl=[],uy="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 Mm(e,t){switch(e){case"focusin":case"focusout":pl=null;break;case"dragenter":case"dragleave":gl=null;break;case"mouseover":case"mouseout":_l=null;break;case"pointerover":case"pointerout":No.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eo.delete(t.pointerId)}}function To(e,t,n,l,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[c]},t!==null&&(t=Cs(t),t!==null&&Rm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function dy(e,t,n,l,c){switch(t){case"focusin":return pl=To(pl,e,t,n,l,c),!0;case"dragenter":return gl=To(gl,e,t,n,l,c),!0;case"mouseover":return _l=To(_l,e,t,n,l,c),!0;case"pointerover":var u=c.pointerId;return No.set(u,To(No.get(u)||null,e,t,n,l,c)),!0;case"gotpointercapture":return u=c.pointerId,Eo.set(u,To(Eo.get(u)||null,e,t,n,l,c)),!0}return!1}function Om(e){var t=ws(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Y2(e.priority,function(){km(n)});return}}else if(t===31){if(t=_(n),t!==null){e.blockedOn=t,Y2(e.priority,function(){km(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 gc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=md(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);pu=l,n.target.dispatchEvent(l),pu=null}else return t=Cs(n),t!==null&&Rm(t),e.blockedOn=n,!1;t.shift()}return!0}function Lm(e,t,n){gc(e)&&n.delete(t)}function fy(){gd=!1,pl!==null&&gc(pl)&&(pl=null),gl!==null&&gc(gl)&&(gl=null),_l!==null&&gc(_l)&&(_l=null),No.forEach(Lm),Eo.forEach(Lm)}function _c(e,t){e.blockedOn===t&&(e.blockedOn=null,gd||(gd=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,fy)))}var vc=null;function Dm(e){vc!==e&&(vc=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){vc===e&&(vc=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(pd(l||n)===null)continue;break}var u=Cs(n);u!==null&&(e.splice(t,3),t-=3,m0(u,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function ii(e){function t(E){return _c(E,e)}pl!==null&&_c(pl,e),gl!==null&&_c(gl,e),_l!==null&&_c(_l,e),No.forEach(t),Eo.forEach(t);for(var n=0;n<vl.length;n++){var l=vl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<vl.length&&(n=vl[0],n.blockedOn===null);)Om(n),n.blockedOn===null&&vl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],u=n[l+1],g=c[an]||null;if(typeof u=="function")g||Dm(n);else if(g){var b=null;if(u&&u.hasAttribute("formAction")){if(c=u,g=u[an]||null)b=g.formAction;else if(pd(c)!==null)continue}else b=g.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),Dm(n)}}}function zm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(g){return c=g})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function _d(e){this._internalRoot=e}yc.prototype.render=_d.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=Cn();Em(n,l,e,t,null,null)},yc.prototype.unmount=_d.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Em(e.current,2,null,e,null,null),Jr(),t[js]=null}};function yc(e){this._internalRoot=e}yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Q2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vl.length&&t!==0&&t<vl[n].priority;n++);vl.splice(n,0,e),n===0&&Om(e)}};var Bm=s.version;if(Bm!=="19.2.5")throw Error(r(527,Bm,"19.2.5"));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var hy={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bc.isDisabled&&bc.supportsFiber)try{zi=bc.inject(hy),_n=bc}catch{}}return ko.createRoot=function(e,t){if(!d(e))throw Error(r(299));var n=!1,l="",c=Vh,u=Qh,g=Yh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Cm(e,1,!1,null,null,n,l,null,c,u,g,zm),e[js]=t.current,W0(e),new _d(t)},ko.hydrateRoot=function(e,t,n){if(!d(e))throw Error(r(299));var l=!1,c="",u=Vh,g=Qh,b=Yh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=Cm(e,1,!0,t,n??null,l,c,E,u,g,b,zm),t.context=Nm(null),n=t.current,l=Cn(),l=ou(l),c=al(l),c.callback=null,ll(n,c,l),n=l,t.current.lanes=n,Ui(t,n),ia(t),e[js]=t.current,W0(e),new yc(t)},ko.version="19.2.5",ko}var Im;function jy(){if(Im)return xd.exports;Im=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),xd.exports=Sy(),xd.exports}var wy=jy();/**
* 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 Xm="popstate";function Km(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function Cy(a={}){function s(r,d){var p;let f=(p=d.state)==null?void 0:p.masked,{pathname:m,search:_,hash:h}=f||r.location;return Vd("",{pathname:m,search:_,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function i(r,d){return typeof d=="string"?d:Ho(d)}return Ey(s,i,null,a)}function ot(a,s){if(a===!1||a===null||typeof a>"u")throw new Error(s)}function Wn(a,s){if(!a){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Ny(){return Math.random().toString(36).substring(2,10)}function Zm(a,s){return{usr:a.state,key:a.key,idx:s,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Vd(a,s,i=null,r,d){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof s=="string"?Ai(s):s,state:i,key:s&&s.key||r||Ny(),unstable_mask:d}}function Ho({pathname:a="/",search:s="",hash:i=""}){return s&&s!=="?"&&(a+=s.charAt(0)==="?"?s:"?"+s),i&&i!=="#"&&(a+=i.charAt(0)==="#"?i:"#"+i),a}function Ai(a){let s={};if(a){let i=a.indexOf("#");i>=0&&(s.hash=a.substring(i),a=a.substring(0,i));let r=a.indexOf("?");r>=0&&(s.search=a.substring(r),a=a.substring(0,r)),a&&(s.pathname=a)}return s}function Ey(a,s,i,r={}){let{window:d=document.defaultView,v5Compat:f=!1}=r,m=d.history,_="POP",h=null,p=v();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function v(){return(m.state||{idx:null}).idx}function y(){_="POP";let N=v(),A=N==null?null:N-p;p=N,h&&h({action:_,location:C.location,delta:A})}function x(N,A){_="PUSH";let z=Km(N)?N:Vd(C.location,N,A);p=v()+1;let O=Zm(z,p),q=C.createHref(z.unstable_mask||z);try{m.pushState(O,"",q)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;d.location.assign(q)}f&&h&&h({action:_,location:C.location,delta:1})}function j(N,A){_="REPLACE";let z=Km(N)?N:Vd(C.location,N,A);p=v();let O=Zm(z,p),q=C.createHref(z.unstable_mask||z);m.replaceState(O,"",q),f&&h&&h({action:_,location:C.location,delta:0})}function w(N){return Ty(N)}let C={get action(){return _},get location(){return a(d,m)},listen(N){if(h)throw new Error("A history only accepts one active listener");return d.addEventListener(Xm,y),h=N,()=>{d.removeEventListener(Xm,y),h=null}},createHref(N){return s(d,N)},createURL:w,encodeLocation(N){let A=w(N);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:x,replace:j,go(N){return m.go(N)}};return C}function Ty(a,s=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ot(i,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:Ho(a);return r=r.replace(/ $/,"%20"),!s&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function j3(a,s,i="/"){return Ry(a,s,i,!1)}function Ry(a,s,i,r){let d=typeof s=="string"?Ai(s):s,f=Pa(d.pathname||"/",i);if(f==null)return null;let m=w3(a);ky(m);let _=null;for(let h=0;_==null&&h<m.length;++h){let p=qy(f);_=$y(m[h],p,r)}return _}function w3(a,s=[],i=[],r="",d=!1){let f=(m,_,h=d,p)=>{let v={relativePath:p===void 0?m.path||"":p,caseSensitive:m.caseSensitive===!0,childrenIndex:_,route:m};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&h)return;ot(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let y=Zn([r,v.relativePath]),x=i.concat(v);m.children&&m.children.length>0&&(ot(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),w3(m.children,s,x,y,h)),!(m.path==null&&!m.index)&&s.push({path:y,score:By(y,m.index),routesMeta:x})};return a.forEach((m,_)=>{var h;if(m.path===""||!((h=m.path)!=null&&h.includes("?")))f(m,_);else for(let p of C3(m.path))f(m,_,!0,p)}),s}function C3(a){let s=a.split("/");if(s.length===0)return[];let[i,...r]=s,d=i.endsWith("?"),f=i.replace(/\?$/,"");if(r.length===0)return d?[f,""]:[f];let m=C3(r.join("/")),_=[];return _.push(...m.map(h=>h===""?f:[f,h].join("/"))),d&&_.push(...m),_.map(h=>a.startsWith("/")&&h===""?"/":h)}function ky(a){a.sort((s,i)=>s.score!==i.score?i.score-s.score:Uy(s.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var Ay=/^:[\w-]+$/,My=3,Oy=2,Ly=1,Dy=10,zy=-2,Wm=a=>a==="*";function By(a,s){let i=a.split("/"),r=i.length;return i.some(Wm)&&(r+=zy),s&&(r+=Oy),i.filter(d=>!Wm(d)).reduce((d,f)=>d+(Ay.test(f)?My:f===""?Ly:Dy),r)}function Uy(a,s){return a.length===s.length&&a.slice(0,-1).every((r,d)=>r===s[d])?a[a.length-1]-s[s.length-1]:0}function $y(a,s,i=!1){let{routesMeta:r}=a,d={},f="/",m=[];for(let _=0;_<r.length;++_){let h=r[_],p=_===r.length-1,v=f==="/"?s:s.slice(f.length)||"/",y=Uc({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},v),x=h.route;if(!y&&p&&i&&!r[r.length-1].route.index&&(y=Uc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},v)),!y)return null;Object.assign(d,y.params),m.push({params:d,pathname:Zn([f,y.pathname]),pathnameBase:Qy(Zn([f,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(f=Zn([f,y.pathnameBase]))}return m}function Uc(a,s){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[i,r]=Hy(a.path,a.caseSensitive,a.end),d=s.match(i);if(!d)return null;let f=d[0],m=f.replace(/(.)\/+$/,"$1"),_=d.slice(1);return{params:r.reduce((p,{paramName:v,isOptional:y},x)=>{if(v==="*"){let w=_[x]||"";m=f.slice(0,f.length-w.length).replace(/(.)\/+$/,"$1")}const j=_[x];return y&&!j?p[v]=void 0:p[v]=(j||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:m,pattern:a}}function Hy(a,s=!1,i=!0){Wn(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,_,h,p,v)=>{if(r.push({paramName:_,isOptional:h!=null}),h){let y=v.charAt(p+m.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),r]}function qy(a){try{return a.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Wn(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),a}}function Pa(a,s){if(s==="/")return a;if(!a.toLowerCase().startsWith(s.toLowerCase()))return null;let i=s.endsWith("/")?s.length-1:s.length,r=a.charAt(i);return r&&r!=="/"?null:a.slice(i)||"/"}var Fy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Gy(a,s="/"){let{pathname:i,search:r="",hash:d=""}=typeof a=="string"?Ai(a):a,f;return i?(i=N3(i),i.startsWith("/")?f=Jm(i.substring(1),"/"):f=Jm(i,s)):f=s,{pathname:f,search:Yy(r),hash:Py(d)}}function Jm(a,s){let i=$c(s).split("/");return a.split("/").forEach(d=>{d===".."?i.length>1&&i.pop():d!=="."&&i.push(d)}),i.length>1?i.join("/"):"/"}function Cd(a,s,i,r){return`Cannot include a '${a}' 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 Vy(a){return a.filter((s,i)=>i===0||s.route.path&&s.route.path.length>0)}function _2(a){let s=Vy(a);return s.map((i,r)=>r===s.length-1?i.pathname:i.pathnameBase)}function Yc(a,s,i,r=!1){let d;typeof a=="string"?d=Ai(a):(d={...a},ot(!d.pathname||!d.pathname.includes("?"),Cd("?","pathname","search",d)),ot(!d.pathname||!d.pathname.includes("#"),Cd("#","pathname","hash",d)),ot(!d.search||!d.search.includes("#"),Cd("#","search","hash",d)));let f=a===""||d.pathname==="",m=f?"/":d.pathname,_;if(m==null)_=i;else{let y=s.length-1;if(!r&&m.startsWith("..")){let x=m.split("/");for(;x[0]==="..";)x.shift(),y-=1;d.pathname=x.join("/")}_=y>=0?s[y]:"/"}let h=Gy(d,_),p=m&&m!=="/"&&m.endsWith("/"),v=(f||m===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(p||v)&&(h.pathname+="/"),h}var N3=a=>a.replace(/\/\/+/g,"/"),Zn=a=>N3(a.join("/")),$c=a=>a.replace(/\/+$/,""),Qy=a=>$c(a).replace(/^\/*/,"/"),Yy=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Py=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Iy=class{constructor(a,s,i,r=!1){this.status=a,this.statusText=s||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function Xy(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function Ky(a){let s=a.map(i=>i.route.path).filter(Boolean);return Zn(s)||"/"}var E3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function T3(a,s){let i=a;if(typeof i!="string"||!Fy.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let r=i,d=!1;if(E3)try{let f=new URL(window.location.href),m=i.startsWith("//")?new URL(f.protocol+i):new URL(i),_=Pa(m.pathname,s);m.origin===f.origin&&_!=null?i=_+m.search+m.hash:d=!0}catch{Wn(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var R3=["POST","PUT","PATCH","DELETE"];new Set(R3);var Zy=["GET",...R3];new Set(Zy);var Mi=S.createContext(null);Mi.displayName="DataRouter";var Pc=S.createContext(null);Pc.displayName="DataRouterState";var k3=S.createContext(!1);function Wy(){return S.useContext(k3)}var A3=S.createContext({isTransitioning:!1});A3.displayName="ViewTransition";var Jy=S.createContext(new Map);Jy.displayName="Fetchers";var e4=S.createContext(null);e4.displayName="Await";var kn=S.createContext(null);kn.displayName="Navigation";var Ko=S.createContext(null);Ko.displayName="Location";var Yn=S.createContext({outlet:null,matches:[],isDataRoute:!1});Yn.displayName="Route";var v2=S.createContext(null);v2.displayName="RouteError";var M3="REACT_ROUTER_ERROR",t4="REDIRECT",n4="ROUTE_ERROR_RESPONSE";function a4(a){if(a.startsWith(`${M3}:${t4}:{`))try{let s=JSON.parse(a.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 l4(a){if(a.startsWith(`${M3}:${n4}:{`))try{let s=JSON.parse(a.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new Iy(s.status,s.statusText,s.data)}catch{}}function s4(a,{relative:s}={}){ot(Oi(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=S.useContext(kn),{hash:d,pathname:f,search:m}=Zo(a,{relative:s}),_=f;return i!=="/"&&(_=f==="/"?i:Zn([i,f])),r.createHref({pathname:_,search:m,hash:d})}function Oi(){return S.useContext(Ko)!=null}function An(){return ot(Oi(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Ko).location}var O3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function L3(a){S.useContext(kn).static||S.useLayoutEffect(a)}function Mn(){let{isDataRoute:a}=S.useContext(Yn);return a?x4():i4()}function i4(){ot(Oi(),"useNavigate() may be used only in the context of a <Router> component.");let a=S.useContext(Mi),{basename:s,navigator:i}=S.useContext(kn),{matches:r}=S.useContext(Yn),{pathname:d}=An(),f=JSON.stringify(_2(r)),m=S.useRef(!1);return L3(()=>{m.current=!0}),S.useCallback((h,p={})=>{if(Wn(m.current,O3),!m.current)return;if(typeof h=="number"){i.go(h);return}let v=Yc(h,JSON.parse(f),d,p.relative==="path");a==null&&s!=="/"&&(v.pathname=v.pathname==="/"?s:Zn([s,v.pathname])),(p.replace?i.replace:i.push)(v,p.state,p)},[s,i,f,d,a])}var o4=S.createContext(null);function r4(a){let s=S.useContext(Yn).outlet;return S.useMemo(()=>s&&S.createElement(o4.Provider,{value:a},s),[s,a])}function c4(){let{matches:a}=S.useContext(Yn),s=a[a.length-1];return(s==null?void 0:s.params)??{}}function Zo(a,{relative:s}={}){let{matches:i}=S.useContext(Yn),{pathname:r}=An(),d=JSON.stringify(_2(i));return S.useMemo(()=>Yc(a,JSON.parse(d),r,s==="path"),[a,d,r,s])}function u4(a,s){return D3(a,s)}function D3(a,s,i){var N;ot(Oi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=S.useContext(kn),{matches:d}=S.useContext(Yn),f=d[d.length-1],m=f?f.params:{},_=f?f.pathname:"/",h=f?f.pathnameBase:"/",p=f&&f.route;{let A=p&&p.path||"";B3(_,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${_}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let v=An(),y;if(s){let A=typeof s=="string"?Ai(s):s;ot(h==="/"||((N=A.pathname)==null?void 0:N.startsWith(h)),`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 "${h}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=v;let x=y.pathname||"/",j=x;if(h!=="/"){let A=h.replace(/^\//,"").split("/");j="/"+x.replace(/^\//,"").split("/").slice(A.length).join("/")}let w=j3(a,{pathname:j});Wn(p||w!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Wn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=p4(w&&w.map(A=>Object.assign({},A,{params:Object.assign({},m,A.params),pathname:Zn([h,r.encodeLocation?r.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?h:Zn([h,r.encodeLocation?r.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),d,i);return s&&C?S.createElement(Ko.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},C):C}function d4(){let a=b4(),s=Xy(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",a),m=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},s),i?S.createElement("pre",{style:d},i):null,m)}var f4=S.createElement(d4,null),z3=class extends S.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,s){return s.location!==a.location||s.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:s.error,location:s.location,revalidation:a.revalidation||s.revalidation}}componentDidCatch(a,s){this.props.onError?this.props.onError(a,s):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const i=l4(a.digest);i&&(a=i)}let s=a!==void 0?S.createElement(Yn.Provider,{value:this.props.routeContext},S.createElement(v2.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?S.createElement(h4,{error:a},s):s}};z3.contextType=k3;var Nd=new WeakMap;function h4({children:a,error:s}){let{basename:i}=S.useContext(kn);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let r=a4(s.digest);if(r){let d=Nd.get(s);if(d)throw d;let f=T3(r.location,i);if(E3&&!Nd.get(s))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Nd.set(s,m),m}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function m4({routeContext:a,match:s,children:i}){let r=S.useContext(Mi);return r&&r.static&&r.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=s.route.id),S.createElement(Yn.Provider,{value:a},i)}function p4(a,s=[],i){let r=i==null?void 0:i.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(s.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let d=a,f=r==null?void 0:r.errors;if(f!=null){let v=d.findIndex(y=>y.route.id&&(f==null?void 0:f[y.route.id])!==void 0);ot(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),d=d.slice(0,Math.min(d.length,v+1))}let m=!1,_=-1;if(i&&r){m=r.renderFallback;for(let v=0;v<d.length;v++){let y=d[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(_=v),y.route.id){let{loaderData:x,errors:j}=r,w=y.route.loader&&!x.hasOwnProperty(y.route.id)&&(!j||j[y.route.id]===void 0);if(y.route.lazy||w){i.isStatic&&(m=!0),_>=0?d=d.slice(0,_+1):d=[d[0]];break}}}}let h=i==null?void 0:i.onError,p=r&&h?(v,y)=>{var x,j;h(v,{location:r.location,params:((j=(x=r.matches)==null?void 0:x[0])==null?void 0:j.params)??{},unstable_pattern:Ky(r.matches),errorInfo:y})}:void 0;return d.reduceRight((v,y,x)=>{let j,w=!1,C=null,N=null;r&&(j=f&&y.route.id?f[y.route.id]:void 0,C=y.route.errorElement||f4,m&&(_<0&&x===0?(B3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,N=null):_===x&&(w=!0,N=y.route.hydrateFallbackElement||null)));let A=s.concat(d.slice(0,x+1)),z=()=>{let O;return j?O=C:w?O=N:y.route.Component?O=S.createElement(y.route.Component,null):y.route.element?O=y.route.element:O=v,S.createElement(m4,{match:y,routeContext:{outlet:v,matches:A,isDataRoute:r!=null},children:O})};return r&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?S.createElement(z3,{location:r.location,revalidation:r.revalidation,component:C,error:j,children:z(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):z()},null)}function y2(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function g4(a){let s=S.useContext(Mi);return ot(s,y2(a)),s}function _4(a){let s=S.useContext(Pc);return ot(s,y2(a)),s}function v4(a){let s=S.useContext(Yn);return ot(s,y2(a)),s}function b2(a){let s=v4(a),i=s.matches[s.matches.length-1];return ot(i.route.id,`${a} can only be used on routes that contain a unique "id"`),i.route.id}function y4(){return b2("useRouteId")}function b4(){var r;let a=S.useContext(v2),s=_4("useRouteError"),i=b2("useRouteError");return a!==void 0?a:(r=s.errors)==null?void 0:r[i]}function x4(){let{router:a}=g4("useNavigate"),s=b2("useNavigate"),i=S.useRef(!1);return L3(()=>{i.current=!0}),S.useCallback(async(d,f={})=>{Wn(i.current,O3),i.current&&(typeof d=="number"?await a.navigate(d):await a.navigate(d,{fromRouteId:s,...f}))},[a,s])}var ep={};function B3(a,s,i){!s&&!ep[a]&&(ep[a]=!0,Wn(!1,i))}S.memo(S4);function S4({routes:a,future:s,state:i,isStatic:r,onError:d}){return D3(a,void 0,{state:i,isStatic:r,onError:d})}function Ic({to:a,replace:s,state:i,relative:r}){ot(Oi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=S.useContext(kn);Wn(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=S.useContext(Yn),{pathname:m}=An(),_=Mn(),h=Yc(a,_2(f),m,r==="path"),p=JSON.stringify(h);return S.useEffect(()=>{_(JSON.parse(p),{replace:s,state:i,relative:r})},[_,p,r,s,i]),null}function x2(a){return r4(a.context)}function Ze(a){ot(!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 j4({basename:a="/",children:s=null,location:i,navigationType:r="POP",navigator:d,static:f=!1,unstable_useTransitions:m}){ot(!Oi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let _=a.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:_,navigator:d,static:f,unstable_useTransitions:m,future:{}}),[_,d,f,m]);typeof i=="string"&&(i=Ai(i));let{pathname:p="/",search:v="",hash:y="",state:x=null,key:j="default",unstable_mask:w}=i,C=S.useMemo(()=>{let N=Pa(p,_);return N==null?null:{location:{pathname:N,search:v,hash:y,state:x,key:j,unstable_mask:w},navigationType:r}},[_,p,v,y,x,j,r,w]);return Wn(C!=null,`<Router basename="${_}"> is not able to match the URL "${p}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:S.createElement(kn.Provider,{value:h},S.createElement(Ko.Provider,{children:s,value:C}))}function w4({children:a,location:s}){return u4(Qd(a),s)}function Qd(a,s=[]){let i=[];return S.Children.forEach(a,(r,d)=>{if(!S.isValidElement(r))return;let f=[...s,d];if(r.type===S.Fragment){i.push.apply(i,Qd(r.props.children,f));return}ot(r.type===Ze,`[${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>`),ot(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(m.children=Qd(r.props.children,f)),i.push(m)}),i}var Dc="get",zc="application/x-www-form-urlencoded";function Xc(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function C4(a){return Xc(a)&&a.tagName.toLowerCase()==="button"}function N4(a){return Xc(a)&&a.tagName.toLowerCase()==="form"}function E4(a){return Xc(a)&&a.tagName.toLowerCase()==="input"}function T4(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function R4(a,s){return a.button===0&&(!s||s==="_self")&&!T4(a)}var Sc=null;function k4(){if(Sc===null)try{new FormData(document.createElement("form"),0),Sc=!1}catch{Sc=!0}return Sc}var A4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ed(a){return a!=null&&!A4.has(a)?(Wn(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zc}"`),null):a}function M4(a,s){let i,r,d,f,m;if(N4(a)){let _=a.getAttribute("action");r=_?Pa(_,s):null,i=a.getAttribute("method")||Dc,d=Ed(a.getAttribute("enctype"))||zc,f=new FormData(a)}else if(C4(a)||E4(a)&&(a.type==="submit"||a.type==="image")){let _=a.form;if(_==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=a.getAttribute("formaction")||_.getAttribute("action");if(r=h?Pa(h,s):null,i=a.getAttribute("formmethod")||_.getAttribute("method")||Dc,d=Ed(a.getAttribute("formenctype"))||Ed(_.getAttribute("enctype"))||zc,f=new FormData(_,a),!k4()){let{name:p,type:v,value:y}=a;if(v==="image"){let x=p?`${p}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else p&&f.append(p,y)}}else{if(Xc(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Dc,r=null,d=zc,m=a}return f&&d==="text/plain"&&(m=f,f=void 0),{action:r,method:i.toLowerCase(),encType:d,formData:f,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function S2(a,s){if(a===!1||a===null||typeof a>"u")throw new Error(s)}function U3(a,s,i,r){let d=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return i?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:s&&Pa(d.pathname,s)==="/"?d.pathname=`${$c(s)}/_root.${r}`:d.pathname=`${$c(d.pathname)}.${r}`,d}async function O4(a,s){if(a.id in s)return s[a.id];try{let i=await import(a.module);return s[a.id]=i,i}catch(i){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function L4(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function D4(a,s,i){let r=await Promise.all(a.map(async d=>{let f=s.routes[d.route.id];if(f){let m=await O4(f,i);return m.links?m.links():[]}return[]}));return $4(r.flat(1).filter(L4).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function tp(a,s,i,r,d,f){let m=(h,p)=>i[p]?h.route.id!==i[p].route.id:!0,_=(h,p)=>{var v;return i[p].pathname!==h.pathname||((v=i[p].route.path)==null?void 0:v.endsWith("*"))&&i[p].params["*"]!==h.params["*"]};return f==="assets"?s.filter((h,p)=>m(h,p)||_(h,p)):f==="data"?s.filter((h,p)=>{var y;let v=r.routes[h.route.id];if(!v||!v.hasLoader)return!1;if(m(h,p)||_(h,p))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((y=i[0])==null?void 0:y.params)||{},nextUrl:new URL(a,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function z4(a,s,{includeHydrateFallback:i}={}){return B4(a.map(r=>{let d=s.routes[r.route.id];if(!d)return[];let f=[d.module];return d.clientActionModule&&(f=f.concat(d.clientActionModule)),d.clientLoaderModule&&(f=f.concat(d.clientLoaderModule)),i&&d.hydrateFallbackModule&&(f=f.concat(d.hydrateFallbackModule)),d.imports&&(f=f.concat(d.imports)),f}).flat(1))}function B4(a){return[...new Set(a)]}function U4(a){let s={},i=Object.keys(a).sort();for(let r of i)s[r]=a[r];return s}function $4(a,s){let i=new Set;return new Set(s),a.reduce((r,d)=>{let f=JSON.stringify(U4(d));return i.has(f)||(i.add(f),r.push({key:f,link:d})),r},[])}function j2(){let a=S.useContext(Mi);return S2(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function H4(){let a=S.useContext(Pc);return S2(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var w2=S.createContext(void 0);w2.displayName="FrameworkContext";function C2(){let a=S.useContext(w2);return S2(a,"You must render this element inside a <HydratedRouter> element"),a}function q4(a,s){let i=S.useContext(w2),[r,d]=S.useState(!1),[f,m]=S.useState(!1),{onFocus:_,onBlur:h,onMouseEnter:p,onMouseLeave:v,onTouchStart:y}=s,x=S.useRef(null);S.useEffect(()=>{if(a==="render"&&m(!0),a==="viewport"){let C=A=>{A.forEach(z=>{m(z.isIntersecting)})},N=new IntersectionObserver(C,{threshold:.5});return x.current&&N.observe(x.current),()=>{N.disconnect()}}},[a]),S.useEffect(()=>{if(r){let C=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(C)}}},[r]);let j=()=>{d(!0)},w=()=>{d(!1),m(!1)};return i?a!=="intent"?[f,x,{}]:[f,x,{onFocus:Ao(_,j),onBlur:Ao(h,w),onMouseEnter:Ao(p,j),onMouseLeave:Ao(v,w),onTouchStart:Ao(y,j)}]:[!1,x,{}]}function Ao(a,s){return i=>{a&&a(i),i.defaultPrevented||s(i)}}function F4({page:a,...s}){let i=Wy(),{router:r}=j2(),d=S.useMemo(()=>j3(r.routes,a,r.basename),[r.routes,a,r.basename]);return d?i?S.createElement(V4,{page:a,matches:d,...s}):S.createElement(Q4,{page:a,matches:d,...s}):null}function G4(a){let{manifest:s,routeModules:i}=C2(),[r,d]=S.useState([]);return S.useEffect(()=>{let f=!1;return D4(a,s,i).then(m=>{f||d(m)}),()=>{f=!0}},[a,s,i]),r}function V4({page:a,matches:s,...i}){let r=An(),{future:d}=C2(),{basename:f}=j2(),m=S.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let _=U3(a,f,d.unstable_trailingSlashAwareDataRequests,"rsc"),h=!1,p=[];for(let v of s)typeof v.route.shouldRevalidate=="function"?h=!0:p.push(v.route.id);return h&&p.length>0&&_.searchParams.set("_routes",p.join(",")),[_.pathname+_.search]},[f,d.unstable_trailingSlashAwareDataRequests,a,r,s]);return S.createElement(S.Fragment,null,m.map(_=>S.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...i})))}function Q4({page:a,matches:s,...i}){let r=An(),{future:d,manifest:f,routeModules:m}=C2(),{basename:_}=j2(),{loaderData:h,matches:p}=H4(),v=S.useMemo(()=>tp(a,s,p,f,r,"data"),[a,s,p,f,r]),y=S.useMemo(()=>tp(a,s,p,f,r,"assets"),[a,s,p,f,r]),x=S.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let C=new Set,N=!1;if(s.forEach(z=>{var q;let O=f.routes[z.route.id];!O||!O.hasLoader||(!v.some(Y=>Y.route.id===z.route.id)&&z.route.id in h&&((q=m[z.route.id])!=null&&q.shouldRevalidate)||O.hasClientLoader?N=!0:C.add(z.route.id))}),C.size===0)return[];let A=U3(a,_,d.unstable_trailingSlashAwareDataRequests,"data");return N&&C.size>0&&A.searchParams.set("_routes",s.filter(z=>C.has(z.route.id)).map(z=>z.route.id).join(",")),[A.pathname+A.search]},[_,d.unstable_trailingSlashAwareDataRequests,h,r,f,v,s,a,m]),j=S.useMemo(()=>z4(y,f),[y,f]),w=G4(y);return S.createElement(S.Fragment,null,x.map(C=>S.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...i})),j.map(C=>S.createElement("link",{key:C,rel:"modulepreload",href:C,...i})),w.map(({key:C,link:N})=>S.createElement("link",{key:C,nonce:i.nonce,...N,crossOrigin:N.crossOrigin??i.crossOrigin})))}function Y4(...a){return s=>{a.forEach(i=>{typeof i=="function"?i(s):i!=null&&(i.current=s)})}}var P4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{P4&&(window.__reactRouterVersion="7.14.2")}catch{}function I4({basename:a,children:s,unstable_useTransitions:i,window:r}){let d=S.useRef();d.current==null&&(d.current=Cy({window:r,v5Compat:!0}));let f=d.current,[m,_]=S.useState({action:f.action,location:f.location}),h=S.useCallback(p=>{i===!1?_(p):S.startTransition(()=>_(p))},[i]);return S.useLayoutEffect(()=>f.listen(h),[f,h]),S.createElement(j4,{basename:a,children:s,location:m.location,navigationType:m.action,navigator:f,unstable_useTransitions:i})}var $3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ft=S.forwardRef(function({onClick:s,discover:i="render",prefetch:r="none",relative:d,reloadDocument:f,replace:m,unstable_mask:_,state:h,target:p,to:v,preventScrollReset:y,viewTransition:x,unstable_defaultShouldRevalidate:j,...w},C){let{basename:N,navigator:A,unstable_useTransitions:z}=S.useContext(kn),O=typeof v=="string"&&$3.test(v),q=T3(v,N);v=q.to;let Y=s4(v,{relative:d}),X=An(),U=null;if(_){let ne=Yc(_,[],X.unstable_mask?X.unstable_mask.pathname:"/",!0);N!=="/"&&(ne.pathname=ne.pathname==="/"?N:Zn([N,ne.pathname])),U=A.createHref(ne)}let[P,W,ce]=q4(r,w),ie=Z4(v,{replace:m,unstable_mask:_,state:h,target:p,preventScrollReset:y,relative:d,viewTransition:x,unstable_defaultShouldRevalidate:j,unstable_useTransitions:z});function ue(ne){s&&s(ne),ne.defaultPrevented||ie(ne)}let te=!(q.isExternal||f),he=S.createElement("a",{...w,...ce,href:(te?U:void 0)||q.absoluteURL||Y,onClick:te?ue:s,ref:Y4(C,W),target:p,"data-discover":!O&&i==="render"?"true":void 0});return P&&!O?S.createElement(S.Fragment,null,he,S.createElement(F4,{page:Y})):he});Ft.displayName="Link";var Yd=S.forwardRef(function({"aria-current":s="page",caseSensitive:i=!1,className:r="",end:d=!1,style:f,to:m,viewTransition:_,children:h,...p},v){let y=Zo(m,{relative:p.relative}),x=An(),j=S.useContext(Pc),{navigator:w,basename:C}=S.useContext(kn),N=j!=null&&nb(y)&&_===!0,A=w.encodeLocation?w.encodeLocation(y).pathname:y.pathname,z=x.pathname,O=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;i||(z=z.toLowerCase(),O=O?O.toLowerCase():null,A=A.toLowerCase()),O&&C&&(O=Pa(O,C)||O);const q=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let Y=z===A||!d&&z.startsWith(A)&&z.charAt(q)==="/",X=O!=null&&(O===A||!d&&O.startsWith(A)&&O.charAt(A.length)==="/"),U={isActive:Y,isPending:X,isTransitioning:N},P=Y?s:void 0,W;typeof r=="function"?W=r(U):W=[r,Y?"active":null,X?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let ce=typeof f=="function"?f(U):f;return S.createElement(Ft,{...p,"aria-current":P,className:W,ref:v,style:ce,to:m,viewTransition:_},typeof h=="function"?h(U):h)});Yd.displayName="NavLink";var X4=S.forwardRef(({discover:a="render",fetcherKey:s,navigate:i,reloadDocument:r,replace:d,state:f,method:m=Dc,action:_,onSubmit:h,relative:p,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:x,...j},w)=>{let{unstable_useTransitions:C}=S.useContext(kn),N=eb(),A=tb(_,{relative:p}),z=m.toLowerCase()==="get"?"get":"post",O=typeof _=="string"&&$3.test(_),q=Y=>{if(h&&h(Y),Y.defaultPrevented)return;Y.preventDefault();let X=Y.nativeEvent.submitter,U=(X==null?void 0:X.getAttribute("formmethod"))||m,P=()=>N(X||Y.currentTarget,{fetcherKey:s,method:U,navigate:i,replace:d,state:f,relative:p,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:x});C&&i!==!1?S.startTransition(()=>P()):P()};return S.createElement("form",{ref:w,method:z,action:A,onSubmit:r?h:q,...j,"data-discover":!O&&a==="render"?"true":void 0})});X4.displayName="Form";function K4(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function H3(a){let s=S.useContext(Mi);return ot(s,K4(a)),s}function Z4(a,{target:s,replace:i,unstable_mask:r,state:d,preventScrollReset:f,relative:m,viewTransition:_,unstable_defaultShouldRevalidate:h,unstable_useTransitions:p}={}){let v=Mn(),y=An(),x=Zo(a,{relative:m});return S.useCallback(j=>{if(R4(j,s)){j.preventDefault();let w=i!==void 0?i:Ho(y)===Ho(x),C=()=>v(a,{replace:w,unstable_mask:r,state:d,preventScrollReset:f,relative:m,viewTransition:_,unstable_defaultShouldRevalidate:h});p?S.startTransition(()=>C()):C()}},[y,v,x,i,r,d,s,a,f,m,_,h,p])}var W4=0,J4=()=>`__${String(++W4)}__`;function eb(){let{router:a}=H3("useSubmit"),{basename:s}=S.useContext(kn),i=y4(),r=a.fetch,d=a.navigate;return S.useCallback(async(f,m={})=>{let{action:_,method:h,encType:p,formData:v,body:y}=M4(f,s);if(m.navigate===!1){let x=m.fetcherKey||J4();await r(x,i,m.action||_,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:v,body:y,formMethod:m.method||h,formEncType:m.encType||p,flushSync:m.flushSync})}else await d(m.action||_,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:v,body:y,formMethod:m.method||h,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:i,flushSync:m.flushSync,viewTransition:m.viewTransition})},[r,d,s,i])}function tb(a,{relative:s}={}){let{basename:i}=S.useContext(kn),r=S.useContext(Yn);ot(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),f={...Zo(a||".",{relative:s})},m=An();if(a==null){f.search=m.search;let _=new URLSearchParams(f.search),h=_.getAll("index");if(h.some(v=>v==="")){_.delete("index"),h.filter(y=>y).forEach(y=>_.append("index",y));let v=_.toString();f.search=v?`?${v}`:""}}return(!a||a===".")&&d.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:Zn([i,f.pathname])),Ho(f)}function nb(a,{relative:s}={}){let i=S.useContext(A3);ot(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=H3("useViewTransitionState"),d=Zo(a,{relative:s});if(!i.isTransitioning)return!1;let f=Pa(i.currentLocation.pathname,r)||i.currentLocation.pathname,m=Pa(i.nextLocation.pathname,r)||i.nextLocation.pathname;return Uc(d.pathname,m)!=null||Uc(d.pathname,f)!=null}const ab="_btn_8fkbu_1",lb="_primary_8fkbu_17",sb="_danger_8fkbu_27",ib="_ghost_8fkbu_37",ob="_outline_8fkbu_47",np={btn:ab,primary:lb,danger:sb,ghost:ib,outline:ob};function Jt({variant:a,children:s,onClick:i,type:r="button",disabled:d}){return o.jsx("button",{type:r,className:`${np.btn} ${np[a]}`,onClick:i,disabled:d,children:s})}const rb="_field_1rkrg_1",cb="_compact_1rkrg_5",ub="_fieldError_1rkrg_9",db="_fieldLabel_1rkrg_15",fb="_fieldInput_1rkrg_23",hb="_currency_1rkrg_49",mb="_currencyIcon_1rkrg_58",pb="_currencyRub_1rkrg_70",gb="_currencyUsdt_1rkrg_74",oa={field:rb,compact:cb,fieldError:ub,fieldLabel:db,fieldInput:fb,currency:hb,currencyIcon:mb,currencyRub:pb,currencyUsdt:gb};function ap({label:a,value:s,currency:i,onChange:r,error:d,compact:f}){const m=!r;return o.jsxs("div",{className:f?`${oa.field} ${oa.compact}`:oa.field,children:[a&&o.jsx("div",{className:oa.fieldLabel,children:a}),o.jsxs("div",{className:oa.fieldInput,children:[o.jsx("input",{type:"text",value:s,onChange:r?_=>r(_.target.value):void 0,readOnly:m,placeholder:"0",inputMode:m?void 0:"decimal"}),o.jsxs("div",{className:oa.currency,children:[o.jsx("span",{className:`${oa.currencyIcon} ${i==="USDT"?oa.currencyUsdt:oa.currencyRub}`,children:i==="USDT"?"₮":"₽"}),i]})]}),d&&o.jsx("div",{className:oa.fieldError,children:d})]})}const _b="_swapWrap_172k4_1",vb="_compact_172k4_6",yb="_swapBtn_172k4_10",jc={swapWrap:_b,compact:vb,swapBtn:yb};function bb({onClick:a,compact:s}){return o.jsx("div",{className:s?`${jc.swapWrap} ${jc.compact}`:jc.swapWrap,children:o.jsx("button",{type:"button",className:jc.swapBtn,onClick:a,"aria-label":"Поменять направление",children:o.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:o.jsx("path",{d:"M8 2v12M4 10l4 4 4-4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})}const xb="_field_zffpb_1",Sb="_label_zffpb_7",jb="_wrap_zffpb_14",wb="_input_zffpb_18",Cb="_readonly_zffpb_37",Nb="_copied_zffpb_44",Eb="_iconCheck_zffpb_59",Tb="_iconLock_zffpb_68",Rb="_withToggle_zffpb_76",kb="_togglePw_zffpb_80",ra={field:xb,label:Sb,wrap:jb,input:wb,readonly:Cb,copied:Nb,iconCheck:Eb,iconLock:Tb,withToggle:Rb,togglePw:kb};function Le({label:a,value:s,placeholder:i,type:r="text",onChange:d,onBlur:f,readOnly:m,required:_,icon:h}){const[p,v]=S.useState(!1),[y,x]=S.useState(!1),j=r==="password",w=j?y?"text":"password":r,C=()=>{m&&navigator.clipboard.writeText(s).then(()=>{v(!0),setTimeout(()=>v(!1),1500)})};return o.jsxs("div",{className:ra.field,children:[o.jsx("label",{className:ra.label,children:a}),o.jsxs("div",{className:ra.wrap,onClick:C,children:[o.jsx("input",{className:`${ra.input} ${j?ra.withToggle:""} ${m?ra.readonly:""} ${p?ra.copied:""}`,type:w,...d?{value:s,onChange:N=>d(N.target.value)}:{defaultValue:s},placeholder:i,readOnly:m,required:_,onBlur:f}),j&&o.jsx("button",{type:"button",className:ra.togglePw,onClick:N=>{N.stopPropagation(),x(A=>!A)},"aria-label":y?"Скрыть пароль":"Показать пароль",children:y?o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94"}),o.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19"}),o.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),h==="check"&&o.jsx("span",{className:ra.iconCheck,children:"✓"}),h==="lock"&&o.jsx("span",{className:ra.iconLock,children:"🔒"})]})]})}const Ab="_notification_m7zar_1",Mb="_slideIn_m7zar_1",Ob="_notificationWrapper_m7zar_19",Lb="_closing_m7zar_24",Db="_slideOut_m7zar_1",zb="_icon_m7zar_52",Bb="_success_m7zar_65",Ub="_error_m7zar_70",$b="_info_m7zar_75",Hb="_warning_m7zar_80",qb="_message_m7zar_85",Fb="_close_m7zar_93",es={notification:Ab,slideIn:Mb,notificationWrapper:Ob,closing:Lb,slideOut:Db,icon:zb,success:Bb,error:Ub,info:$b,warning:Hb,message:qb,close:Fb},Gb={success:"✓",error:"✕",info:"i",warning:"!"};function Ml({message:a,status:s,onClose:i}){const[r,d]=S.useState(!1);function f(){d(!0)}function m(){r&&i()}return o.jsxs("div",{className:`${es.notification} ${es[s]} ${r?es.closing:""}`,onAnimationEnd:m,children:[o.jsxs("div",{className:es.notificationWrapper,children:[o.jsx("span",{className:es.icon,children:Gb[s]}),o.jsx("p",{className:es.message,children:a})]}),o.jsx("button",{className:es.close,onClick:f,children:"✕"})]})}const Vb="_pill_3oadq_1",Qb={pill:Vb};function Yb({children:a}){return o.jsx("span",{className:Qb.pill,children:a})}const Pb="_btn_ytb12_1",Ib={btn:Pb};function Qn({label:a="Подтвердить своп",onClick:s,type:i="submit",disabled:r}){return o.jsx("button",{type:i,className:Ib.btn,onClick:s,disabled:r,children:a})}const Xb="_wrap_1ujmu_1",Kb="_fullscreen_1ujmu_9",Zb="_spinner_1ujmu_15",Wb="_spin_1ujmu_15",Jb="_sm_1ujmu_24",ex="_md_1ujmu_30",tx="_lg_1ujmu_36",nx="_label_1ujmu_42",ax="_srOnly_1ujmu_49",oi={wrap:Xb,fullscreen:Kb,spinner:Zb,spin:Wb,sm:Jb,md:ex,lg:tx,label:nx,srOnly:ax};function Kc({size:a="md",label:s,fullscreen:i,className:r}){const d=[oi.wrap,i?oi.fullscreen:"",r??""].filter(Boolean).join(" ");return o.jsxs("div",{className:d,role:"status","aria-live":"polite","aria-busy":"true",children:[o.jsx("span",{className:`${oi.spinner} ${oi[a]}`,"aria-hidden":"true"}),s?o.jsx("span",{className:oi.label,children:s}):null,o.jsx("span",{className:oi.srOnly,children:s??"Загрузка"})]})}const lx="_icon_73irc_1",sx={icon:lx};function qo({letter:a,color:s,logo:i,size:r=40}){return o.jsx("div",{className:sx.icon,style:{background:i?"transparent":s,width:r,height:r,fontSize:r*.45},children:i?o.jsx("img",{src:i,alt:a,style:{width:r*.7,height:r*.7}}):a})}const ix="_section_11f1k_1",ox="_wrap_11f1k_7",rx="_descBlock_11f1k_16",cx="_descText_11f1k_22",ux="_right_11f1k_33",dx="_glow_11f1k_37",fx="_row_11f1k_49",hx="_check_11f1k_87",mx="_text_11f1k_101",ca={section:ix,wrap:ox,descBlock:rx,descText:cx,right:ux,glow:dx,row:fx,check:hx,text:mx},px="_title_1ien9_1",gx={title:px};function q3({children:a}){return o.jsx("h2",{className:gx.title,children:a})}const lp=["Вся деятельность компании соответствует законодательству Российской Федерации и требованиям регуляторов","Вся документация компании открыта и доступна для ознакомления","Операции защищены шифрованием уровня ERC-20 и проходят верификацию в блокчейне"];function _x(){const[a,s]=S.useState(-1);return o.jsx("section",{id:"about",className:ca.section,children:o.jsxs("div",{className:ca.wrap,children:[o.jsxs("div",{children:[o.jsx(Yb,{children:"О КОМПАНИИ"}),o.jsx(q3,{children:"О нас"}),o.jsxs("div",{className:ca.descBlock,children:[o.jsx("p",{className:ca.descText,children:"ЭКСА — молодая финтех-компания в сфере цифровых активов. Наша миссия — сделать оборот цифровых активов простым, прозрачным и законным."}),o.jsx("p",{className:ca.descText,children:"Мы создаём инфраструктуру для операций с криптовалютой и комплексные решения для физических и юридических лиц."})]})]}),o.jsxs("div",{className:ca.right,children:[o.jsx("div",{className:ca.glow}),lp.map((i,r)=>o.jsxs("div",{className:ca.row,"data-hovered":a===r||void 0,"data-last":r===lp.length-1||void 0,onMouseEnter:()=>s(r),onMouseLeave:()=>s(-1),children:[o.jsx("div",{className:ca.check,children:"✓"}),o.jsx("span",{className:ca.text,children:i})]},r))]})]})})}const Hc=[{min:5e3,max:3e4,pct:8},{min:30001,max:1e5,pct:6},{min:100001,max:6e5,pct:4}],Td=Hc[0].min,sp=Hc[Hc.length-1].max;function vx(a){return a<=Td?0:a>=sp?100:(a-Td)/(sp-Td)*100}const yx="_title_ujt2o_1",bx="_table_ujt2o_8",xx="_row_ujt2o_15",Sx="_range_ujt2o_31",jx="_pct_ujt2o_36",wx="_progressBar_ujt2o_43",Cx="_progressFill_ujt2o_51",Nx="_summary_ujt2o_58",Ex="_summaryLabel_ujt2o_73",Tx="_summaryValue_ujt2o_78",Nn={title:yx,table:bx,row:xx,range:Sx,pct:jx,progressBar:wx,progressFill:Cx,summary:Nx,summaryLabel:Ex,summaryValue:Tx},ip=a=>a.toLocaleString("ru-RU");function Rx({amount:a,progress:s,commission:i,effectiveRate:r}){return o.jsxs("div",{children:[o.jsx("div",{className:Nn.title,children:"КОМИССИЯ СЕРВИСА"}),o.jsx("div",{className:Nn.table,children:Hc.map((d,f)=>o.jsxs("div",{className:Nn.row,"data-active":a>=d.min&&a<=d.max||void 0,children:[o.jsxs("span",{className:Nn.range,children:[ip(d.min)," ",ip(d.max)," ₽"]}),o.jsxs("span",{className:Nn.pct,children:[d.pct,"%"]})]},f))}),o.jsx("div",{className:Nn.progressBar,children:o.jsx("div",{className:Nn.progressFill,style:{width:`${s}%`}})}),o.jsxs("div",{className:Nn.summary,children:[o.jsx("span",{className:Nn.summaryLabel,children:"Комиссия"}),o.jsxs("span",{className:Nn.summaryValue,children:[i.toLocaleString("ru-RU",{maximumFractionDigits:2})," ₽"]})]}),o.jsxs("div",{className:Nn.summary,children:[o.jsx("span",{className:Nn.summaryLabel,children:"Курс с комиссией"}),o.jsxs("span",{className:Nn.summaryValue,children:[r.toFixed(2)," ₽"]})]})]})}var Li=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cs,Sl,gi,d3,kx=(d3=class extends Li{constructor(){super();se(this,cs);se(this,Sl);se(this,gi);Z(this,gi,s=>{if(typeof window<"u"&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){T(this,Sl)||this.setEventListener(T(this,gi))}onUnsubscribe(){var s;this.hasListeners()||((s=T(this,Sl))==null||s.call(this),Z(this,Sl,void 0))}setEventListener(s){var i;Z(this,gi,s),(i=T(this,Sl))==null||i.call(this),Z(this,Sl,s(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(s){T(this,cs)!==s&&(Z(this,cs,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof T(this,cs)=="boolean"?T(this,cs):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},cs=new WeakMap,Sl=new WeakMap,gi=new WeakMap,d3),N2=new kx,Ax={setTimeout:(a,s)=>setTimeout(a,s),clearTimeout:a=>clearTimeout(a),setInterval:(a,s)=>setInterval(a,s),clearInterval:a=>clearInterval(a)},jl,p2,f3,Mx=(f3=class{constructor(){se(this,jl,Ax);se(this,p2,!1)}setTimeoutProvider(a){Z(this,jl,a)}setTimeout(a,s){return T(this,jl).setTimeout(a,s)}clearTimeout(a){T(this,jl).clearTimeout(a)}setInterval(a,s){return T(this,jl).setInterval(a,s)}clearInterval(a){T(this,jl).clearInterval(a)}},jl=new WeakMap,p2=new WeakMap,f3),rs=new Mx;function Ox(a){setTimeout(a,0)}var Lx=typeof window>"u"||"Deno"in globalThis;function Wt(){}function Dx(a,s){return typeof a=="function"?a(s):a}function Pd(a){return typeof a=="number"&&a>=0&&a!==1/0}function F3(a,s){return Math.max(a+(s||0)-Date.now(),0)}function Al(a,s){return typeof a=="function"?a(s):a}function Rn(a,s){return typeof a=="function"?a(s):a}function op(a,s){const{type:i="all",exact:r,fetchStatus:d,predicate:f,queryKey:m,stale:_}=a;if(m){if(r){if(s.queryHash!==E2(m,s.options))return!1}else if(!Fo(s.queryKey,m))return!1}if(i!=="all"){const h=s.isActive();if(i==="active"&&!h||i==="inactive"&&h)return!1}return!(typeof _=="boolean"&&s.isStale()!==_||d&&d!==s.state.fetchStatus||f&&!f(s))}function rp(a,s){const{exact:i,status:r,predicate:d,mutationKey:f}=a;if(f){if(!s.options.mutationKey)return!1;if(i){if(bs(s.options.mutationKey)!==bs(f))return!1}else if(!Fo(s.options.mutationKey,f))return!1}return!(r&&s.state.status!==r||d&&!d(s))}function E2(a,s){return((s==null?void 0:s.queryKeyHashFn)||bs)(a)}function bs(a){return JSON.stringify(a,(s,i)=>Id(i)?Object.keys(i).sort().reduce((r,d)=>(r[d]=i[d],r),{}):i)}function Fo(a,s){return a===s?!0:typeof a!=typeof s?!1:a&&s&&typeof a=="object"&&typeof s=="object"?Object.keys(s).every(i=>Fo(a[i],s[i])):!1}var zx=Object.prototype.hasOwnProperty;function G3(a,s,i=0){if(a===s)return a;if(i>500)return s;const r=cp(a)&&cp(s);if(!r&&!(Id(a)&&Id(s)))return s;const f=(r?a:Object.keys(a)).length,m=r?s:Object.keys(s),_=m.length,h=r?new Array(_):{};let p=0;for(let v=0;v<_;v++){const y=r?v:m[v],x=a[y],j=s[y];if(x===j){h[y]=x,(r?v<f:zx.call(a,y))&&p++;continue}if(x===null||j===null||typeof x!="object"||typeof j!="object"){h[y]=j;continue}const w=G3(x,j,i+1);h[y]=w,w===x&&p++}return f===_&&p===f?a:h}function qc(a,s){if(!s||Object.keys(a).length!==Object.keys(s).length)return!1;for(const i in a)if(a[i]!==s[i])return!1;return!0}function cp(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Id(a){if(!up(a))return!1;const s=a.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!up(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function up(a){return Object.prototype.toString.call(a)==="[object Object]"}function Bx(a){return new Promise(s=>{rs.setTimeout(s,a)})}function Xd(a,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(a,s):i.structuralSharing!==!1?G3(a,s):s}function Ux(a,s,i=0){const r=[...a,s];return i&&r.length>i?r.slice(1):r}function $x(a,s,i=0){const r=[s,...a];return i&&r.length>i?r.slice(0,-1):r}var T2=Symbol();function V3(a,s){return!a.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!a.queryFn||a.queryFn===T2?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function R2(a,s){return typeof a=="function"?a(...s):!!a}function Hx(a,s,i){let r=!1,d;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(d??(d=s()),r||(r=!0,d.aborted?i():d.addEventListener("abort",i,{once:!0})),d)}),a}var Go=(()=>{let a=()=>Lx;return{isServer(){return a()},setIsServer(s){a=s}}})();function Kd(){let a,s;const i=new Promise((d,f)=>{a=d,s=f});i.status="pending",i.catch(()=>{});function r(d){Object.assign(i,d),delete i.resolve,delete i.reject}return i.resolve=d=>{r({status:"fulfilled",value:d}),a(d)},i.reject=d=>{r({status:"rejected",reason:d}),s(d)},i}var qx=Ox;function Fx(){let a=[],s=0,i=_=>{_()},r=_=>{_()},d=qx;const f=_=>{s?a.push(_):d(()=>{i(_)})},m=()=>{const _=a;a=[],_.length&&d(()=>{r(()=>{_.forEach(h=>{i(h)})})})};return{batch:_=>{let h;s++;try{h=_()}finally{s--,s||m()}return h},batchCalls:_=>(...h)=>{f(()=>{_(...h)})},schedule:f,setNotifyFunction:_=>{i=_},setBatchNotifyFunction:_=>{r=_},setScheduler:_=>{d=_}}}var Rt=Fx(),_i,wl,vi,h3,Gx=(h3=class extends Li{constructor(){super();se(this,_i,!0);se(this,wl);se(this,vi);Z(this,vi,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(){T(this,wl)||this.setEventListener(T(this,vi))}onUnsubscribe(){var s;this.hasListeners()||((s=T(this,wl))==null||s.call(this),Z(this,wl,void 0))}setEventListener(s){var i;Z(this,vi,s),(i=T(this,wl))==null||i.call(this),Z(this,wl,s(this.setOnline.bind(this)))}setOnline(s){T(this,_i)!==s&&(Z(this,_i,s),this.listeners.forEach(r=>{r(s)}))}isOnline(){return T(this,_i)}},_i=new WeakMap,wl=new WeakMap,vi=new WeakMap,h3),Fc=new Gx;function Vx(a){return Math.min(1e3*2**a,3e4)}function Q3(a){return(a??"online")==="online"?Fc.isOnline():!0}var Zd=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function Y3(a){let s=!1,i=0,r;const d=Kd(),f=()=>d.status!=="pending",m=C=>{var N;if(!f()){const A=new Zd(C);x(A),(N=a.onCancel)==null||N.call(a,A)}},_=()=>{s=!0},h=()=>{s=!1},p=()=>N2.isFocused()&&(a.networkMode==="always"||Fc.isOnline())&&a.canRun(),v=()=>Q3(a.networkMode)&&a.canRun(),y=C=>{f()||(r==null||r(),d.resolve(C))},x=C=>{f()||(r==null||r(),d.reject(C))},j=()=>new Promise(C=>{var N;r=A=>{(f()||p())&&C(A)},(N=a.onPause)==null||N.call(a)}).then(()=>{var C;r=void 0,f()||(C=a.onContinue)==null||C.call(a)}),w=()=>{if(f())return;let C;const N=i===0?a.initialPromise:void 0;try{C=N??a.fn()}catch(A){C=Promise.reject(A)}Promise.resolve(C).then(y).catch(A=>{var X;if(f())return;const z=a.retry??(Go.isServer()?0:3),O=a.retryDelay??Vx,q=typeof O=="function"?O(i,A):O,Y=z===!0||typeof z=="number"&&i<z||typeof z=="function"&&z(i,A);if(s||!Y){x(A);return}i++,(X=a.onFail)==null||X.call(a,i,A),Bx(q).then(()=>p()?void 0:j()).then(()=>{s?x(A):w()})})};return{promise:d,status:()=>d.status,cancel:m,continue:()=>(r==null||r(),d),cancelRetry:_,continueRetry:h,canStart:v,start:()=>(v()?w():j().then(w),d)}}var us,m3,P3=(m3=class{constructor(){se(this,us)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pd(this.gcTime)&&Z(this,us,rs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Go.isServer()?1/0:300*1e3))}clearGcTimeout(){T(this,us)!==void 0&&(rs.clearTimeout(T(this,us)),Z(this,us,void 0))}},us=new WeakMap,m3);function Qx(a){return{onFetch:(s,i)=>{var v,y,x,j,w;const r=s.options,d=(x=(y=(v=s.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:x.direction,f=((j=s.state.data)==null?void 0:j.pages)||[],m=((w=s.state.data)==null?void 0:w.pageParams)||[];let _={pages:[],pageParams:[]},h=0;const p=async()=>{let C=!1;const N=O=>{Hx(O,()=>s.signal,()=>C=!0)},A=V3(s.options,s.fetchOptions),z=async(O,q,Y)=>{if(C)return Promise.reject(s.signal.reason);if(q==null&&O.pages.length)return Promise.resolve(O);const U=(()=>{const ie={client:s.client,queryKey:s.queryKey,pageParam:q,direction:Y?"backward":"forward",meta:s.options.meta};return N(ie),ie})(),P=await A(U),{maxPages:W}=s.options,ce=Y?$x:Ux;return{pages:ce(O.pages,P,W),pageParams:ce(O.pageParams,q,W)}};if(d&&f.length){const O=d==="backward",q=O?I3:Wd,Y={pages:f,pageParams:m},X=q(r,Y);_=await z(Y,X,O)}else{const O=a??f.length;do{const q=h===0?m[0]??r.initialPageParam:Wd(r,_);if(h>0&&q==null)break;_=await z(_,q),h++}while(h<O)}return _};s.options.persister?s.fetchFn=()=>{var C,N;return(N=(C=s.options).persister)==null?void 0:N.call(C,p,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=p}}}function Wd(a,{pages:s,pageParams:i}){const r=s.length-1;return s.length>0?a.getNextPageParam(s[r],s,i[r],i):void 0}function I3(a,{pages:s,pageParams:i}){var r;return s.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,s[0],s,i[0],i):void 0}function Yx(a,s){return s?Wd(a,s)!=null:!1}function Px(a,s){return!s||!a.getPreviousPageParam?!1:I3(a,s)!=null}var yi,ds,bi,Vn,fs,Lt,Qo,hs,Tn,X3,qa,p3,Ix=(p3=class extends P3{constructor(s){super();se(this,Tn);se(this,yi);se(this,ds);se(this,bi);se(this,Vn);se(this,fs);se(this,Lt);se(this,Qo);se(this,hs);Z(this,hs,!1),Z(this,Qo,s.defaultOptions),this.setOptions(s.options),this.observers=[],Z(this,fs,s.client),Z(this,Vn,T(this,fs).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,Z(this,ds,fp(this.options)),this.state=s.state??T(this,ds),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,yi)}get promise(){var s;return(s=T(this,Lt))==null?void 0:s.promise}setOptions(s){if(this.options={...T(this,Qo),...s},s!=null&&s._type&&Z(this,yi,s._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=fp(this.options);i.data!==void 0&&(this.setState(dp(i.data,i.dataUpdatedAt)),Z(this,ds,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Vn).remove(this)}setData(s,i){const r=Xd(this.state.data,s,this.options);return je(this,Tn,qa).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(s){je(this,Tn,qa).call(this,{type:"setState",state:s})}cancel(s){var r,d;const i=(r=T(this,Lt))==null?void 0:r.promise;return(d=T(this,Lt))==null||d.cancel(s),i?i.then(Wt).catch(Wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,ds)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(s=>Rn(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===T2||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>Al(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:!F3(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(r=>r.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=T(this,Lt))==null||i.continue()}onOnline(){var i;const s=this.observers.find(r=>r.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=T(this,Lt))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),T(this,Vn).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(T(this,Lt)&&(T(this,hs)||je(this,Tn,X3).call(this)?T(this,Lt).cancel({revert:!0}):T(this,Lt).cancelRetry()),this.scheduleGc()),T(this,Vn).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||je(this,Tn,qa).call(this,{type:"invalidate"})}async fetch(s,i){var p,v,y,x,j,w,C,N,A,z,O;if(this.state.fetchStatus!=="idle"&&((p=T(this,Lt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(T(this,Lt))return T(this,Lt).continueRetry(),T(this,Lt).promise}if(s&&this.setOptions(s),!this.options.queryFn){const q=this.observers.find(Y=>Y.options.queryFn);q&&this.setOptions(q.options)}const r=new AbortController,d=q=>{Object.defineProperty(q,"signal",{enumerable:!0,get:()=>(Z(this,hs,!0),r.signal)})},f=()=>{const q=V3(this.options,i),X=(()=>{const U={client:T(this,fs),queryKey:this.queryKey,meta:this.meta};return d(U),U})();return Z(this,hs,!1),this.options.persister?this.options.persister(q,X,this):q(X)},_=(()=>{const q={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:T(this,fs),state:this.state,fetchFn:f};return d(q),q})(),h=T(this,yi)==="infinite"?Qx(this.options.pages):this.options.behavior;h==null||h.onFetch(_,this),Z(this,bi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=_.fetchOptions)==null?void 0:v.meta))&&je(this,Tn,qa).call(this,{type:"fetch",meta:(y=_.fetchOptions)==null?void 0:y.meta}),Z(this,Lt,Y3({initialPromise:i==null?void 0:i.initialPromise,fn:_.fetchFn,onCancel:q=>{q instanceof Zd&&q.revert&&this.setState({...T(this,bi),fetchStatus:"idle"}),r.abort()},onFail:(q,Y)=>{je(this,Tn,qa).call(this,{type:"failed",failureCount:q,error:Y})},onPause:()=>{je(this,Tn,qa).call(this,{type:"pause"})},onContinue:()=>{je(this,Tn,qa).call(this,{type:"continue"})},retry:_.options.retry,retryDelay:_.options.retryDelay,networkMode:_.options.networkMode,canRun:()=>!0}));try{const q=await T(this,Lt).start();if(q===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(q),(j=(x=T(this,Vn).config).onSuccess)==null||j.call(x,q,this),(C=(w=T(this,Vn).config).onSettled)==null||C.call(w,q,this.state.error,this),q}catch(q){if(q instanceof Zd){if(q.silent)return T(this,Lt).promise;if(q.revert){if(this.state.data===void 0)throw q;return this.state.data}}throw je(this,Tn,qa).call(this,{type:"error",error:q}),(A=(N=T(this,Vn).config).onError)==null||A.call(N,q,this),(O=(z=T(this,Vn).config).onSettled)==null||O.call(z,this.state.data,q,this),q}finally{this.scheduleGc()}}},yi=new WeakMap,ds=new WeakMap,bi=new WeakMap,Vn=new WeakMap,fs=new WeakMap,Lt=new WeakMap,Qo=new WeakMap,hs=new WeakMap,Tn=new WeakSet,X3=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},qa=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,...K3(r.data,this.options),fetchMeta:s.meta??null};case"success":const d={...r,...dp(s.data,s.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Z(this,bi,s.manual?d:void 0),d;case"error":const f=s.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...s.state}}};this.state=i(this.state),Rt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,Vn).notify({query:this,type:"updated",action:s})})},p3);function K3(a,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Q3(s.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function dp(a,s){return{data:a,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function fp(a){const s=typeof a.initialData=="function"?a.initialData():a.initialData,i=s!==void 0,r=i?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.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 hn,Me,Yo,Zt,ms,xi,Fa,Cl,Po,Si,ji,ps,gs,Nl,wi,He,Bo,Jd,e2,t2,n2,a2,l2,s2,W3,g3,Z3=(g3=class extends Li{constructor(s,i){super();se(this,He);se(this,hn);se(this,Me);se(this,Yo);se(this,Zt);se(this,ms);se(this,xi);se(this,Fa);se(this,Cl);se(this,Po);se(this,Si);se(this,ji);se(this,ps);se(this,gs);se(this,Nl);se(this,wi,new Set);this.options=i,Z(this,hn,s),Z(this,Cl,null),Z(this,Fa,Kd()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Me).addObserver(this),hp(T(this,Me),this.options)?je(this,He,Bo).call(this):this.updateResult(),je(this,He,n2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return i2(T(this,Me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return i2(T(this,Me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,je(this,He,a2).call(this),je(this,He,l2).call(this),T(this,Me).removeObserver(this)}setOptions(s){const i=this.options,r=T(this,Me);if(this.options=T(this,hn).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Rn(this.options.enabled,T(this,Me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");je(this,He,s2).call(this),T(this,Me).setOptions(this.options),i._defaulted&&!qc(this.options,i)&&T(this,hn).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Me),observer:this});const d=this.hasListeners();d&&mp(T(this,Me),r,this.options,i)&&je(this,He,Bo).call(this),this.updateResult(),d&&(T(this,Me)!==r||Rn(this.options.enabled,T(this,Me))!==Rn(i.enabled,T(this,Me))||Al(this.options.staleTime,T(this,Me))!==Al(i.staleTime,T(this,Me)))&&je(this,He,Jd).call(this);const f=je(this,He,e2).call(this);d&&(T(this,Me)!==r||Rn(this.options.enabled,T(this,Me))!==Rn(i.enabled,T(this,Me))||f!==T(this,Nl))&&je(this,He,t2).call(this,f)}getOptimisticResult(s){const i=T(this,hn).getQueryCache().build(T(this,hn),s),r=this.createResult(i,s);return Kx(this,r)&&(Z(this,Zt,r),Z(this,xi,this.options),Z(this,ms,T(this,Me).state)),r}getCurrentResult(){return T(this,Zt)}trackResult(s,i){return new Proxy(s,{get:(r,d)=>(this.trackProp(d),i==null||i(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&T(this,Fa).status==="pending"&&T(this,Fa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,d))})}trackProp(s){T(this,wi).add(s)}getCurrentQuery(){return T(this,Me)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=T(this,hn).defaultQueryOptions(s),r=T(this,hn).getQueryCache().build(T(this,hn),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(s){return je(this,He,Bo).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Zt)))}createResult(s,i){var W;const r=T(this,Me),d=this.options,f=T(this,Zt),m=T(this,ms),_=T(this,xi),p=s!==r?s.state:T(this,Yo),{state:v}=s;let y={...v},x=!1,j;if(i._optimisticResults){const ce=this.hasListeners(),ie=!ce&&hp(s,i),ue=ce&&mp(s,r,i,d);(ie||ue)&&(y={...y,...K3(v.data,s.options)}),i._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:w,errorUpdatedAt:C,status:N}=y;j=y.data;let A=!1;if(i.placeholderData!==void 0&&j===void 0&&N==="pending"){let ce;f!=null&&f.isPlaceholderData&&i.placeholderData===(_==null?void 0:_.placeholderData)?(ce=f.data,A=!0):ce=typeof i.placeholderData=="function"?i.placeholderData((W=T(this,ji))==null?void 0:W.state.data,T(this,ji)):i.placeholderData,ce!==void 0&&(N="success",j=Xd(f==null?void 0:f.data,ce,i),x=!0)}if(i.select&&j!==void 0&&!A)if(f&&j===(m==null?void 0:m.data)&&i.select===T(this,Po))j=T(this,Si);else try{Z(this,Po,i.select),j=i.select(j),j=Xd(f==null?void 0:f.data,j,i),Z(this,Si,j),Z(this,Cl,null)}catch(ce){Z(this,Cl,ce)}T(this,Cl)&&(w=T(this,Cl),j=T(this,Si),C=Date.now(),N="error");const z=y.fetchStatus==="fetching",O=N==="pending",q=N==="error",Y=O&&z,X=j!==void 0,P={status:N,fetchStatus:y.fetchStatus,isPending:O,isSuccess:N==="success",isError:q,isInitialLoading:Y,isLoading:Y,data:j,dataUpdatedAt:y.dataUpdatedAt,error:w,errorUpdatedAt:C,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:s.isFetched(),isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:z,isRefetching:z&&!O,isLoadingError:q&&!X,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:q&&X,isStale:k2(s,i),refetch:this.refetch,promise:T(this,Fa),isEnabled:Rn(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const ce=P.data!==void 0,ie=P.status==="error"&&!ce,ue=ne=>{ie?ne.reject(P.error):ce&&ne.resolve(P.data)},te=()=>{const ne=Z(this,Fa,P.promise=Kd());ue(ne)},he=T(this,Fa);switch(he.status){case"pending":s.queryHash===r.queryHash&&ue(he);break;case"fulfilled":(ie||P.data!==he.value)&&te();break;case"rejected":(!ie||P.error!==he.reason)&&te();break}}return P}updateResult(){const s=T(this,Zt),i=this.createResult(T(this,Me),this.options);if(Z(this,ms,T(this,Me).state),Z(this,xi,this.options),T(this,ms).data!==void 0&&Z(this,ji,T(this,Me)),qc(i,s))return;Z(this,Zt,i);const r=()=>{if(!s)return!0;const{notifyOnChangeProps:d}=this.options,f=typeof d=="function"?d():d;if(f==="all"||!f&&!T(this,wi).size)return!0;const m=new Set(f??T(this,wi));return this.options.throwOnError&&m.add("error"),Object.keys(T(this,Zt)).some(_=>{const h=_;return T(this,Zt)[h]!==s[h]&&m.has(h)})};je(this,He,W3).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&je(this,He,n2).call(this)}},hn=new WeakMap,Me=new WeakMap,Yo=new WeakMap,Zt=new WeakMap,ms=new WeakMap,xi=new WeakMap,Fa=new WeakMap,Cl=new WeakMap,Po=new WeakMap,Si=new WeakMap,ji=new WeakMap,ps=new WeakMap,gs=new WeakMap,Nl=new WeakMap,wi=new WeakMap,He=new WeakSet,Bo=function(s){je(this,He,s2).call(this);let i=T(this,Me).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(Wt)),i},Jd=function(){je(this,He,a2).call(this);const s=Al(this.options.staleTime,T(this,Me));if(Go.isServer()||T(this,Zt).isStale||!Pd(s))return;const r=F3(T(this,Zt).dataUpdatedAt,s)+1;Z(this,ps,rs.setTimeout(()=>{T(this,Zt).isStale||this.updateResult()},r))},e2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Me)):this.options.refetchInterval)??!1},t2=function(s){je(this,He,l2).call(this),Z(this,Nl,s),!(Go.isServer()||Rn(this.options.enabled,T(this,Me))===!1||!Pd(T(this,Nl))||T(this,Nl)===0)&&Z(this,gs,rs.setInterval(()=>{(this.options.refetchIntervalInBackground||N2.isFocused())&&je(this,He,Bo).call(this)},T(this,Nl)))},n2=function(){je(this,He,Jd).call(this),je(this,He,t2).call(this,je(this,He,e2).call(this))},a2=function(){T(this,ps)!==void 0&&(rs.clearTimeout(T(this,ps)),Z(this,ps,void 0))},l2=function(){T(this,gs)!==void 0&&(rs.clearInterval(T(this,gs)),Z(this,gs,void 0))},s2=function(){const s=T(this,hn).getQueryCache().build(T(this,hn),this.options);if(s===T(this,Me))return;const i=T(this,Me);Z(this,Me,s),Z(this,Yo,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},W3=function(s){Rt.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(T(this,Zt))}),T(this,hn).getQueryCache().notify({query:T(this,Me),type:"observerResultsUpdated"})})},g3);function Xx(a,s){return Rn(s.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Rn(s.retryOnMount,a)===!1)}function hp(a,s){return Xx(a,s)||a.state.data!==void 0&&i2(a,s,s.refetchOnMount)}function i2(a,s,i){if(Rn(s.enabled,a)!==!1&&Al(s.staleTime,a)!=="static"){const r=typeof i=="function"?i(a):i;return r==="always"||r!==!1&&k2(a,s)}return!1}function mp(a,s,i,r){return(a!==s||Rn(r.enabled,a)===!1)&&(!i.suspense||a.state.status!=="error")&&k2(a,i)}function k2(a,s){return Rn(s.enabled,a)!==!1&&a.isStaleByTime(Al(s.staleTime,a))}function Kx(a,s){return!qc(a.getCurrentResult(),s)}var Zx=class extends Z3{constructor(a,s){super(a,s)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){a._type="infinite",super.setOptions(a)}getOptimisticResult(a){return a._type="infinite",super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,s){var w,C;const{state:i}=a,r=super.createResult(a,s),{isFetching:d,isRefetching:f,isError:m,isRefetchError:_}=r,h=(C=(w=i.fetchMeta)==null?void 0:w.fetchMore)==null?void 0:C.direction,p=m&&h==="forward",v=d&&h==="forward",y=m&&h==="backward",x=d&&h==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Yx(s,i.data),hasPreviousPage:Px(s,i.data),isFetchNextPageError:p,isFetchingNextPage:v,isFetchPreviousPageError:y,isFetchingPreviousPage:x,isRefetchError:_&&!p&&!y,isRefetching:f&&!v&&!x}}},Io,da,Yt,_s,fa,xl,_3,Wx=(_3=class extends P3{constructor(s){super();se(this,fa);se(this,Io);se(this,da);se(this,Yt);se(this,_s);Z(this,Io,s.client),this.mutationId=s.mutationId,Z(this,Yt,s.mutationCache),Z(this,da,[]),this.state=s.state||J3(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){T(this,da).includes(s)||(T(this,da).push(s),this.clearGcTimeout(),T(this,Yt).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){Z(this,da,T(this,da).filter(i=>i!==s)),this.scheduleGc(),T(this,Yt).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){T(this,da).length||(this.state.status==="pending"?this.scheduleGc():T(this,Yt).remove(this))}continue(){var s;return((s=T(this,_s))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var m,_,h,p,v,y,x,j,w,C,N,A,z,O,q,Y,X,U;const i=()=>{je(this,fa,xl).call(this,{type:"continue"})},r={client:T(this,Io),meta:this.options.meta,mutationKey:this.options.mutationKey};Z(this,_s,Y3({fn:()=>this.options.mutationFn?this.options.mutationFn(s,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,W)=>{je(this,fa,xl).call(this,{type:"failed",failureCount:P,error:W})},onPause:()=>{je(this,fa,xl).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Yt).canRun(this)}));const d=this.state.status==="pending",f=!T(this,_s).canStart();try{if(d)i();else{je(this,fa,xl).call(this,{type:"pending",variables:s,isPaused:f}),T(this,Yt).config.onMutate&&await T(this,Yt).config.onMutate(s,this,r);const W=await((_=(m=this.options).onMutate)==null?void 0:_.call(m,s,r));W!==this.state.context&&je(this,fa,xl).call(this,{type:"pending",context:W,variables:s,isPaused:f})}const P=await T(this,_s).start();return await((p=(h=T(this,Yt).config).onSuccess)==null?void 0:p.call(h,P,s,this.state.context,this,r)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,P,s,this.state.context,r)),await((j=(x=T(this,Yt).config).onSettled)==null?void 0:j.call(x,P,null,this.state.variables,this.state.context,this,r)),await((C=(w=this.options).onSettled)==null?void 0:C.call(w,P,null,s,this.state.context,r)),je(this,fa,xl).call(this,{type:"success",data:P}),P}catch(P){try{await((A=(N=T(this,Yt).config).onError)==null?void 0:A.call(N,P,s,this.state.context,this,r))}catch(W){Promise.reject(W)}try{await((O=(z=this.options).onError)==null?void 0:O.call(z,P,s,this.state.context,r))}catch(W){Promise.reject(W)}try{await((Y=(q=T(this,Yt).config).onSettled)==null?void 0:Y.call(q,void 0,P,this.state.variables,this.state.context,this,r))}catch(W){Promise.reject(W)}try{await((U=(X=this.options).onSettled)==null?void 0:U.call(X,void 0,P,s,this.state.context,r))}catch(W){Promise.reject(W)}throw je(this,fa,xl).call(this,{type:"error",error:P}),P}finally{T(this,Yt).runNext(this)}}},Io=new WeakMap,da=new WeakMap,Yt=new WeakMap,_s=new WeakMap,fa=new WeakSet,xl=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),Rt.batch(()=>{T(this,da).forEach(r=>{r.onMutationUpdate(s)}),T(this,Yt).notify({mutation:this,type:"updated",action:s})})},_3);function J3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ga,Kn,Xo,v3,Jx=(v3=class extends Li{constructor(s={}){super();se(this,Ga);se(this,Kn);se(this,Xo);this.config=s,Z(this,Ga,new Set),Z(this,Kn,new Map),Z(this,Xo,0)}build(s,i,r){const d=new Wx({client:s,mutationCache:this,mutationId:++xc(this,Xo)._,options:s.defaultMutationOptions(i),state:r});return this.add(d),d}add(s){T(this,Ga).add(s);const i=wc(s);if(typeof i=="string"){const r=T(this,Kn).get(i);r?r.push(s):T(this,Kn).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(T(this,Ga).delete(s)){const i=wc(s);if(typeof i=="string"){const r=T(this,Kn).get(i);if(r)if(r.length>1){const d=r.indexOf(s);d!==-1&&r.splice(d,1)}else r[0]===s&&T(this,Kn).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=wc(s);if(typeof i=="string"){const r=T(this,Kn).get(i),d=r==null?void 0:r.find(f=>f.state.status==="pending");return!d||d===s}else return!0}runNext(s){var r;const i=wc(s);if(typeof i=="string"){const d=(r=T(this,Kn).get(i))==null?void 0:r.find(f=>f!==s&&f.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Rt.batch(()=>{T(this,Ga).forEach(s=>{this.notify({type:"removed",mutation:s})}),T(this,Ga).clear(),T(this,Kn).clear()})}getAll(){return Array.from(T(this,Ga))}find(s){const i={exact:!0,...s};return this.getAll().find(r=>rp(i,r))}findAll(s={}){return this.getAll().filter(i=>rp(s,i))}notify(s){Rt.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return Rt.batch(()=>Promise.all(s.map(i=>i.continue().catch(Wt))))}},Ga=new WeakMap,Kn=new WeakMap,Xo=new WeakMap,v3);function wc(a){var s;return(s=a.options.scope)==null?void 0:s.id}var Va,El,mn,Qa,Ya,Bc,o2,y3,e6=(y3=class extends Li{constructor(i,r){super();se(this,Ya);se(this,Va);se(this,El);se(this,mn);se(this,Qa);Z(this,Va,i),this.setOptions(r),this.bindMethods(),je(this,Ya,Bc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var d;const r=this.options;this.options=T(this,Va).defaultMutationOptions(i),qc(this.options,r)||T(this,Va).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,mn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&bs(r.mutationKey)!==bs(this.options.mutationKey)?this.reset():((d=T(this,mn))==null?void 0:d.state.status)==="pending"&&T(this,mn).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=T(this,mn))==null||i.removeObserver(this)}onMutationUpdate(i){je(this,Ya,Bc).call(this),je(this,Ya,o2).call(this,i)}getCurrentResult(){return T(this,El)}reset(){var i;(i=T(this,mn))==null||i.removeObserver(this),Z(this,mn,void 0),je(this,Ya,Bc).call(this),je(this,Ya,o2).call(this)}mutate(i,r){var d;return Z(this,Qa,r),(d=T(this,mn))==null||d.removeObserver(this),Z(this,mn,T(this,Va).getMutationCache().build(T(this,Va),this.options)),T(this,mn).addObserver(this),T(this,mn).execute(i)}},Va=new WeakMap,El=new WeakMap,mn=new WeakMap,Qa=new WeakMap,Ya=new WeakSet,Bc=function(){var r;const i=((r=T(this,mn))==null?void 0:r.state)??J3();Z(this,El,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},o2=function(i){Rt.batch(()=>{var r,d,f,m,_,h,p,v;if(T(this,Qa)&&this.hasListeners()){const y=T(this,El).variables,x=T(this,El).context,j={client:T(this,Va),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(d=(r=T(this,Qa)).onSuccess)==null||d.call(r,i.data,y,x,j)}catch(w){Promise.reject(w)}try{(m=(f=T(this,Qa)).onSettled)==null||m.call(f,i.data,null,y,x,j)}catch(w){Promise.reject(w)}}else if((i==null?void 0:i.type)==="error"){try{(h=(_=T(this,Qa)).onError)==null||h.call(_,i.error,y,x,j)}catch(w){Promise.reject(w)}try{(v=(p=T(this,Qa)).onSettled)==null||v.call(p,void 0,i.error,y,x,j)}catch(w){Promise.reject(w)}}}this.listeners.forEach(y=>{y(T(this,El))})})},y3),ha,b3,t6=(b3=class extends Li{constructor(s={}){super();se(this,ha);this.config=s,Z(this,ha,new Map)}build(s,i,r){const d=i.queryKey,f=i.queryHash??E2(d,i);let m=this.get(f);return m||(m=new Ix({client:s,queryKey:d,queryHash:f,options:s.defaultQueryOptions(i),state:r,defaultOptions:s.getQueryDefaults(d)}),this.add(m)),m}add(s){T(this,ha).has(s.queryHash)||(T(this,ha).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=T(this,ha).get(s.queryHash);i&&(s.destroy(),i===s&&T(this,ha).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){Rt.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return T(this,ha).get(s)}getAll(){return[...T(this,ha).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(r=>op(i,r))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(r=>op(s,r)):i}notify(s){Rt.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){Rt.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){Rt.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},ha=new WeakMap,b3),ht,Tl,Rl,Ci,Ni,kl,Ei,Ti,x3,n6=(x3=class{constructor(a={}){se(this,ht);se(this,Tl);se(this,Rl);se(this,Ci);se(this,Ni);se(this,kl);se(this,Ei);se(this,Ti);Z(this,ht,a.queryCache||new t6),Z(this,Tl,a.mutationCache||new Jx),Z(this,Rl,a.defaultOptions||{}),Z(this,Ci,new Map),Z(this,Ni,new Map),Z(this,kl,0)}mount(){xc(this,kl)._++,T(this,kl)===1&&(Z(this,Ei,N2.subscribe(async a=>{a&&(await this.resumePausedMutations(),T(this,ht).onFocus())})),Z(this,Ti,Fc.subscribe(async a=>{a&&(await this.resumePausedMutations(),T(this,ht).onOnline())})))}unmount(){var a,s;xc(this,kl)._--,T(this,kl)===0&&((a=T(this,Ei))==null||a.call(this),Z(this,Ei,void 0),(s=T(this,Ti))==null||s.call(this),Z(this,Ti,void 0))}isFetching(a){return T(this,ht).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return T(this,Tl).findAll({...a,status:"pending"}).length}getQueryData(a){var i;const s=this.defaultQueryOptions({queryKey:a});return(i=T(this,ht).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(a){const s=this.defaultQueryOptions(a),i=T(this,ht).build(this,s),r=i.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&i.isStaleByTime(Al(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(r))}getQueriesData(a){return T(this,ht).findAll(a).map(({queryKey:s,state:i})=>{const r=i.data;return[s,r]})}setQueryData(a,s,i){const r=this.defaultQueryOptions({queryKey:a}),d=T(this,ht).get(r.queryHash),f=d==null?void 0:d.state.data,m=Dx(s,f);if(m!==void 0)return T(this,ht).build(this,r).setData(m,{...i,manual:!0})}setQueriesData(a,s,i){return Rt.batch(()=>T(this,ht).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,s,i)]))}getQueryState(a){var i;const s=this.defaultQueryOptions({queryKey:a});return(i=T(this,ht).get(s.queryHash))==null?void 0:i.state}removeQueries(a){const s=T(this,ht);Rt.batch(()=>{s.findAll(a).forEach(i=>{s.remove(i)})})}resetQueries(a,s){const i=T(this,ht);return Rt.batch(()=>(i.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},s)))}cancelQueries(a,s={}){const i={revert:!0,...s},r=Rt.batch(()=>T(this,ht).findAll(a).map(d=>d.cancel(i)));return Promise.all(r).then(Wt).catch(Wt)}invalidateQueries(a,s={}){return Rt.batch(()=>(T(this,ht).findAll(a).forEach(i=>{i.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},s)))}refetchQueries(a,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},r=Rt.batch(()=>T(this,ht).findAll(a).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let f=d.fetch(void 0,i);return i.throwOnError||(f=f.catch(Wt)),d.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(Wt)}fetchQuery(a){const s=this.defaultQueryOptions(a);s.retry===void 0&&(s.retry=!1);const i=T(this,ht).build(this,s);return i.isStaleByTime(Al(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Wt).catch(Wt)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Wt).catch(Wt)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return Fc.isOnline()?T(this,Tl).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,ht)}getMutationCache(){return T(this,Tl)}getDefaultOptions(){return T(this,Rl)}setDefaultOptions(a){Z(this,Rl,a)}setQueryDefaults(a,s){T(this,Ci).set(bs(a),{queryKey:a,defaultOptions:s})}getQueryDefaults(a){const s=[...T(this,Ci).values()],i={};return s.forEach(r=>{Fo(a,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(a,s){T(this,Ni).set(bs(a),{mutationKey:a,defaultOptions:s})}getMutationDefaults(a){const s=[...T(this,Ni).values()],i={};return s.forEach(r=>{Fo(a,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(a){if(a._defaulted)return a;const s={...T(this,Rl).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return s.queryHash||(s.queryHash=E2(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===T2&&(s.enabled=!1),s}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...T(this,Rl).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){T(this,ht).clear(),T(this,Tl).clear()}},ht=new WeakMap,Tl=new WeakMap,Rl=new WeakMap,Ci=new WeakMap,Ni=new WeakMap,kl=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,x3),eg=S.createContext(void 0),en=a=>{const s=S.useContext(eg);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},a6=({client:a,children:s})=>(S.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),o.jsx(eg.Provider,{value:a,children:s})),tg=S.createContext(!1),l6=()=>S.useContext(tg);tg.Provider;function s6(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var i6=S.createContext(s6()),o6=()=>S.useContext(i6),r6=(a,s,i)=>{const r=i!=null&&i.state.error&&typeof a.throwOnError=="function"?R2(a.throwOnError,[i.state.error,i]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||r)&&(s.isReset()||(a.retryOnMount=!1))},c6=a=>{S.useEffect(()=>{a.clearReset()},[a])},u6=({result:a,errorResetBoundary:s,throwOnError:i,query:r,suspense:d})=>a.isError&&!s.isReset()&&!a.isFetching&&r&&(d&&a.data===void 0||R2(i,[a.error,r])),d6=a=>{if(a.suspense){const i=d=>d==="static"?d:Math.max(d??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...d)=>i(r(...d)):i(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},f6=(a,s)=>a.isLoading&&a.isFetching&&!s,h6=(a,s)=>(a==null?void 0:a.suspense)&&s.isPending,pp=(a,s,i)=>s.fetchOptimistic(a).catch(()=>{i.clearReset()});function ng(a,s,i){var x,j,w,C;const r=l6(),d=o6(),f=en(),m=f.defaultQueryOptions(a);(j=(x=f.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||j.call(x,m);const _=f.getQueryCache().get(m.queryHash);m._optimisticResults=r?"isRestoring":"optimistic",d6(m),r6(m,d,_),c6(d);const h=!f.getQueryCache().get(m.queryHash),[p]=S.useState(()=>new s(f,m)),v=p.getOptimisticResult(m),y=!r&&a.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(N=>{const A=y?p.subscribe(Rt.batchCalls(N)):Wt;return p.updateResult(),A},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),S.useEffect(()=>{p.setOptions(m)},[m,p]),h6(m,v))throw pp(m,p,d);if(u6({result:v,errorResetBoundary:d,throwOnError:m.throwOnError,query:_,suspense:m.suspense}))throw v.error;if((C=(w=f.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||C.call(w,m,v),m.experimental_prefetchInRender&&!Go.isServer()&&f6(v,r)){const N=h?pp(m,p,d):_==null?void 0:_.promise;N==null||N.catch(Wt).finally(()=>{p.updateResult()})}return m.notifyOnChangeProps?v:p.trackResult(v)}function vt(a,s){return ng(a,Z3)}function _t(a,s){const i=en(),[r]=S.useState(()=>new e6(i,a));S.useEffect(()=>{r.setOptions(a)},[r,a]);const d=S.useSyncExternalStore(S.useCallback(m=>r.subscribe(Rt.batchCalls(m)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=S.useCallback((m,_)=>{r.mutate(m,_).catch(Wt)},[r]);if(d.error&&R2(r.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:f,mutateAsync:d.mutate}}function m6(a,s){return ng(a,Zx)}const ag="https://app.auth.elcsa.ru/v1";let Uo=null,os=null;function A2(){Uo=null,os=null}function tn(){return Uo?Promise.resolve(Uo):os||(os=fetch(`${ag}/csrf/token`,{credentials:"include"}).then(a=>a.json()).then(a=>(Uo=a.token,os=null,Uo)).catch(a=>{throw os=null,a}),os)}const p6=Object.freeze(Object.defineProperty({__proto__:null,clearCsrfCache:A2,getCsrfToken:tn},Symbol.toStringTag,{value:"Module"})),g6="modulepreload",_6=function(a){return"/"+a},gp={},v6=function(s,i,r){let d=Promise.resolve();if(i&&i.length>0){let m=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const _=document.querySelector("meta[property=csp-nonce]"),h=(_==null?void 0:_.nonce)||(_==null?void 0:_.getAttribute("nonce"));d=m(i.map(p=>{if(p=_6(p),p in gp)return;gp[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const x=document.createElement("link");if(x.rel=v?"stylesheet":g6,v||(x.as="script"),x.crossOrigin="",x.href=p,h&&x.setAttribute("nonce",h),document.head.appendChild(x),v)return new Promise((j,w)=>{x.addEventListener("load",j),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(m){const _=new Event("vite:preloadError",{cancelable:!0});if(_.payload=m,window.dispatchEvent(_),!_.defaultPrevented)throw m}return d.then(m=>{for(const _ of m||[])_.status==="rejected"&&f(_.reason);return s().catch(f)})};let Rd=null;const wt={get:()=>Rd,set:a=>{Rd=a},clear:()=>{Rd=null}},y6="https://app.auth.elcsa.ru/v1/jwt/refresh";async function ea(){const{getCsrfToken:a,clearCsrfCache:s}=await v6(async()=>{const{getCsrfToken:f,clearCsrfCache:m}=await Promise.resolve().then(()=>p6);return{getCsrfToken:f,clearCsrfCache:m}},[]);s();const i=await a(),r=await fetch(y6,{method:"POST",credentials:"include",headers:{"X-CSRF-Token":i}});if(!r.ok)throw new Error("Unauthorized");const d=await r.json();return d.access_token&&wt.set(d.access_token),d.access_token??d.result??!0}const b6="https://app.payment.elcsa.ru";async function Wo(a,s,i){const r=await tn(),d=await fetch(`${b6}${a}`,{...s,credentials:"include",headers:{"X-CSRF-Token":r,...s.headers}});if(d.status===401&&i)try{return await ea(),Wo(a,s,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function x6(){return Wo("/payment/config",{},!0)}function S6(a){return Wo(`/payment/quote?usdt_amount=${a}`,{},!0)}function j6(a){return Wo(`/payment/quote/rub?total_rub=${a}`,{},!0)}const r2=20;function w6(a,s=r2){return Wo(`/payment/orders?offset=${a}&limit=${s}`,{},!0)}function C6(){return vt({queryKey:["payment","config"],queryFn:x6,staleTime:6e4})}function N6(a){return vt({queryKey:["payment","quote",a],queryFn:()=>S6(a),enabled:a>0,staleTime:3e4,retry:!1})}function E6(a){return vt({queryKey:["payment","quote","rub",a],queryFn:()=>j6(a),enabled:a>0,staleTime:3e4,retry:!1})}function T6(){return m6({queryKey:["payment","orders"],queryFn:({pageParam:a})=>w6(a),initialPageParam:0,getNextPageParam:(a,s)=>{if(!(a.orders.length<r2))return s.length*r2},staleTime:3e4})}function ma(a,s){const[i,r]=S.useState(a);return S.useEffect(()=>{const d=setTimeout(()=>r(a),s);return()=>clearTimeout(d)},[a,s]),i}const R6=new Date("2026-05-21T00:00:00").getTime(),lg=80,k6=21,kd=5e3,_p="Сумма слишком большая и превышает 600 000 ₽",vp=a=>a.replace(/[^0-9.]/g,"");function A6({rateFallback:a=0}={}){const[s,i]=S.useState("usdt_to_rub"),[r,d]=S.useState("1000"),[f,m]=S.useState(String(kd)),{data:_}=C6(),h=Number(_==null?void 0:_.usdt_exchange_rate)||a,p=Number(_==null?void 0:_.gas_fee)||k6,v=s==="usdt_to_rub",y=Number.parseFloat(r)||0,x=ma(y,400),{data:j,isError:w}=N6(v?x:0),C=Number.parseFloat(f)||0,N=ma(C,400),{data:A,isError:z}=E6(v?0:N),O=!v&&C>0&&C<kd,q=(j==null?void 0:j.total_price)??"",Y=Number(q)||0,X=(A==null?void 0:A.usdt_amount)??"",U=Number(X)||0,P=v?Number(j==null?void 0:j.service_fee)||0:Number(A==null?void 0:A.service_fee)||0,W=v?Y:C,ce=v?y>0?Y/y:0:U>0?C/U:0;function ie(){i(he=>he==="usdt_to_rub"?"rub_to_usdt":"usdt_to_rub")}const ue=v?{value:r,currency:"USDT",onChange:he=>d(vp(he)),error:w?_p:void 0}:{value:f,currency:"RUB",onChange:he=>m(vp(he)),error:O?`Минимальная сумма: ${kd.toLocaleString("ru-RU")}`:z?_p:void 0};return{isUsdtToRub:v,gasPriceRub:p,configUsdtRate:h,convert:ue,pay:v?{value:q,currency:"RUB"}:{value:X,currency:"USDT"},onSwap:ie,commission:{amount:W,progress:vx(W),commission:P,effectiveRate:ce},numUsdt:y,usdtFromRubNum:U,rubTotal:q,rubTotalNum:Y,numRubInput:C,usdtFromRub:X,rubBelowMin:O}}const re={HOME:"/",WALLET:"/wallet",WALLET_CHAIN:"/wallet/:chain",SWAP:"/swap",BRIDGE:"/bridge",LOGIN:"/login",REGISTER:"/register",REGISTER_TEST:"/register-test",CONVERTER_TEST:"/converter-test",PROFILE:"/profile",SEED_PHRASE:"/seed-phrase",CONVERTER:"/converter",KYC:"/kyc",STAKING:"/staking",POOLS:"/pools",RESTORE_PASSWORD:"/restore-password",PUBLICHNAYA_OFERTA:"/publichnaya-oferta",POLITIKA_PERSONALNYH_DANNYH:"/politika-personalnyh-dannyh",POLITIKA_COOKIE:"/politika-cookie",SOGLASIE_PERSONALNYH_DANNYH:"/soglasie-personalnyh-dannyh",REESTR_PD_RKN:"/reestr-pd-rkn",TRANSACTIONS:"/transactions"},M6="_section_tz8mb_1",O6="_wrap_tz8mb_6",L6="_header_tz8mb_17",D6="_subtitle_tz8mb_26",z6="_pills_tz8mb_33",B6="_pill_tz8mb_33",U6="_pillValue_tz8mb_47",$6="_body_tz8mb_57",H6="_tabs_tz8mb_63",q6="_tab_tz8mb_63",F6="_payBtn_tz8mb_95",En={section:M6,wrap:O6,header:L6,subtitle:D6,pills:z6,pill:B6,pillValue:U6,body:$6,tabs:H6,tab:q6,payBtn:F6};function G6(){const{gasPriceRub:a,configUsdtRate:s,convert:i,pay:r,onSwap:d,commission:f}=A6({rateFallback:lg});return o.jsx("section",{className:En.section,id:"converter",children:o.jsxs("div",{className:En.wrap,children:[o.jsxs("div",{className:En.header,children:[o.jsxs("div",{children:[o.jsx(q3,{children:"Конвертация"}),o.jsx("div",{className:En.subtitle,children:"Данные обновляются в реальном времени"})]}),o.jsxs("div",{className:En.pills,children:[o.jsxs("div",{className:En.pill,children:["Цена газа в RUB ",o.jsxs("span",{className:En.pillValue,children:[a.toFixed(2)," RUB"]})]}),o.jsxs("div",{className:En.pill,children:["USDT/RUB ",o.jsxs("span",{className:En.pillValue,children:[s.toFixed(2)," ₽"]})]})]})]}),o.jsxs("div",{className:En.body,children:[o.jsxs("div",{children:[o.jsx("div",{className:En.tabs,children:o.jsx("div",{className:En.tab,"data-active":!0,children:"КУПИТЬ"})}),o.jsx(ap,{compact:!0,...i}),o.jsx(bb,{compact:!0,onClick:d}),o.jsx(ap,{compact:!0,...r})]}),o.jsx(Rx,{...f})]}),o.jsx(Ft,{to:re.CONVERTER,className:En.payBtn,children:"Перейти к оплате"})]})})}const V6="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",Q6="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",Y6="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",P6="_footer_1qm30_1",I6="_top_1qm30_11",X6="_col_1qm30_18",K6="_heading_1qm30_35",Z6="_companyName_1qm30_44",W6="_phone_1qm30_51",J6="_email_1qm30_58",e5="_socialIcons_1qm30_62",t5="_socialLink_1qm30_67",n5="_divider_1qm30_94",a5="_bottom_1qm30_99",Vt={footer:P6,top:I6,col:X6,heading:K6,companyName:Z6,phone:W6,email:J6,socialIcons:e5,socialLink:t5,divider:n5,bottom:a5},l5=[{href:"#",icon:Q6,label:"Telegram"},{href:"#",icon:Y6,label:"WhatsApp"},{href:"#",icon:V6,label:"Instagram"}];function Ss(){return o.jsxs("footer",{className:Vt.footer,children:[o.jsxs("div",{className:Vt.top,children:[o.jsxs("div",{className:Vt.col,children:[o.jsx("p",{className:Vt.companyName,children:"ООО «ЭКСА»"}),o.jsx("p",{children:"ИНН 9810001062"}),o.jsx("p",{children:"ОГРН 1257800060990"})]}),o.jsxs("div",{className:Vt.col,children:[o.jsx("h4",{className:Vt.heading,children:"О компании"}),o.jsx(Ft,{to:re.PUBLICHNAYA_OFERTA,children:"Публичная оферта"}),o.jsx(Ft,{to:re.POLITIKA_PERSONALNYH_DANNYH,children:"Политика персональных данных"}),o.jsx(Ft,{to:re.POLITIKA_COOKIE,children:"Политика cookie"}),o.jsx(Ft,{to:re.SOGLASIE_PERSONALNYH_DANNYH,children:"Согласие на обработку данных"}),o.jsx(Ft,{to:re.REESTR_PD_RKN,children:"Реестр Роскомнадзора"})]}),o.jsxs("div",{className:Vt.col,children:[o.jsx("p",{className:Vt.phone,children:"+7 (812) 123-33-23"}),o.jsx("h4",{className:Vt.heading,children:"Адрес"}),o.jsx("p",{children:"196158, г. Санкт-Петербург, Московское шоссе, 25А, к.1, ПОМЕЩ. 3-Н"}),o.jsx("a",{href:"mailto:support@elcsa.ru",className:Vt.email,children:"support@elcsa.ru"})]}),o.jsxs("div",{className:Vt.col,children:[o.jsx("h4",{className:Vt.heading,children:"Мы в соцсетях"}),o.jsx("div",{className:Vt.socialIcons,children:l5.map(({href:a,icon:s,label:i})=>o.jsx("a",{href:a,className:Vt.socialLink,"aria-label":i,children:o.jsx("img",{src:s,alt:i})},i))})]})]}),o.jsx("div",{className:Vt.divider}),o.jsxs("div",{className:Vt.bottom,children:[o.jsx("p",{children:"© 2026. Все права защищены."}),o.jsx("p",{children:"Компания не является кредитной организацией."})]})]})}const pa="/assets/logo-full-white-DEb7oTyu.png",s5="_nav_5011x_1",i5="_logo_5011x_16",o5="_right_5011x_22",r5="_link_5011x_28",c5="_btn_5011x_47",Mo={nav:s5,logo:i5,right:o5,link:r5,btn:c5};function Di(){return o.jsxs("nav",{className:Mo.nav,children:[o.jsx("a",{className:Mo.logo,href:"/",children:o.jsx("img",{src:pa,alt:"ЭКСА"})}),o.jsxs("div",{className:Mo.right,children:[o.jsx("a",{className:Mo.link,href:"#about",children:"О нас"}),o.jsx(Ft,{className:Mo.btn,to:re.WALLET,children:"Личный кабинет"})]})]})}const u5="_flow_1oxsf_1",d5="_card_1oxsf_7",f5="_cardRub_1oxsf_17",h5="_cardEksa_1oxsf_27",m5="_cardUsdt_1oxsf_37",p5="_eksaLogo_1oxsf_47",g5="_ghost_1oxsf_54",_5="_ghostBtc_1oxsf_69",v5="_ghostEth_1oxsf_74",y5="_logoCircle_1oxsf_79",b5="_logoRub_1oxsf_90",x5="_logoUsdt_1oxsf_95",S5="_badge_1oxsf_100",j5="_badgeRub_1oxsf_113",w5="_badgeUsdt_1oxsf_117",C5="_status_1oxsf_121",N5="_statusDot_1oxsf_132",E5="_path_1oxsf_139",rt={flow:u5,card:d5,cardRub:f5,cardEksa:h5,cardUsdt:m5,eksaLogo:p5,ghost:g5,ghostBtc:_5,ghostEth:v5,logoCircle:y5,logoRub:b5,logoUsdt:x5,badge:S5,badgeRub:j5,badgeUsdt:w5,status:C5,statusDot:N5,path:E5};function T5(){return o.jsxs("div",{className:rt.flow,children:[o.jsx("div",{className:`${rt.ghost} ${rt.ghostBtc}`,children:o.jsx("span",{style:{fontSize:20,color:"#F7931A"},children:"₿"})}),o.jsx("div",{className:`${rt.ghost} ${rt.ghostEth}`,children:o.jsx("span",{style:{fontSize:20,color:"#627EEA"},children:"Ξ"})}),o.jsxs("div",{className:`${rt.card} ${rt.cardRub}`,children:[o.jsx("div",{className:`${rt.logoCircle} ${rt.logoRub}`,children:"₽"}),o.jsx("div",{className:`${rt.badge} ${rt.badgeRub}`,children:"10 000 ₽"})]}),o.jsx("div",{className:`${rt.card} ${rt.cardEksa}`,children:o.jsx("img",{src:pa,alt:"ЭКСА",className:rt.eksaLogo})}),o.jsxs("div",{className:`${rt.card} ${rt.cardUsdt}`,children:[o.jsx("div",{className:`${rt.logoCircle} ${rt.logoUsdt}`,children:"₮"}),o.jsx("div",{className:`${rt.badge} ${rt.badgeUsdt}`,children:"≈ 125.3 USDT"}),o.jsxs("div",{className:rt.status,children:[o.jsx("span",{className:rt.statusDot})," ✓ Зачислено"]})]}),o.jsxs("svg",{className:rt.path,viewBox:"0 0 420 460",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:"pathGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[o.jsx("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.4)"}),o.jsx("stop",{offset:"100%",stopColor:"#26A17B"})]})}),o.jsx("path",{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"}),o.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"}),o.jsx("circle",{cx:80,cy:110,r:3,fill:"#fff",opacity:.5}),o.jsx("circle",{cx:140,cy:160,r:2.5,fill:"#fff",opacity:.4}),o.jsx("circle",{cx:220,cy:200,r:3,fill:"#fff",opacity:.3}),o.jsx("circle",{cx:200,cy:270,r:2.5,fill:"#26A17B",opacity:.35}),o.jsx("circle",{cx:260,cy:310,r:3,fill:"#26A17B",opacity:.25}),o.jsx("circle",{cx:320,cy:345,r:2,fill:"#26A17B",opacity:.2})]})]})}function R5(a){const[s,i]=S.useState(Date.now());S.useEffect(()=>{const f=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(f)},[]);const r=Math.max(0,a-s),d=f=>String(f).padStart(2,"0");return{d:d(Math.floor(r/864e5)),h:d(Math.floor(r%864e5/36e5)),m:d(Math.floor(r%36e5/6e4)),s:d(Math.floor(r%6e4/1e3))}}const k5="_label_ikzdd_1",A5="_row_ikzdd_8",M5="_unit_ikzdd_14",O5="_num_ikzdd_21",L5="_lbl_ikzdd_29",Oo={label:k5,row:A5,unit:M5,num:O5,lbl:L5},D5=[["d","ДНЕЙ"],["h","ЧАСОВ"],["m","МИНУТ"],["s","СЕКУНД"]];function z5({target:a}){const s=R5(a);return o.jsxs("div",{children:[o.jsx("div",{className:Oo.label,children:"ДО ЗАПУСКА ОСТАЛОСЬ"}),o.jsx("div",{className:Oo.row,children:D5.map(([i,r])=>o.jsxs("div",{className:Oo.unit,children:[o.jsx("div",{className:Oo.num,children:s[i]}),o.jsx("div",{className:Oo.lbl,children:r})]},i))})]})}const B5="_card_17ihg_51",U5="_statusPill_17ihg_84",$5="_statusDot_17ihg_99",H5="_flowRow_17ihg_107",q5="_curBlock_17ihg_114",F5="_curIcon_17ihg_122",G5="_rub_17ihg_133",V5="_usdt_17ihg_141",Q5="_flowLine_17ihg_150",Y5="_curAmount_17ihg_154",P5="_curLabel_17ihg_163",I5="_curCheck_17ihg_171",X5="_bridge_17ihg_182",K5="_bridgeLine_17ihg_191",Z5="_bridgeLabel_17ihg_198",W5="_divider_17ihg_206",J5="_details_17ihg_212",e8="_detailRow_17ihg_220",t8="_detailLabel_17ihg_229",n8="_detailValue_17ihg_235",a8="_green_17ihg_242",Ge={card:B5,statusPill:U5,statusDot:$5,flowRow:H5,curBlock:q5,curIcon:F5,rub:G5,usdt:V5,flowLine:Q5,curAmount:Y5,curLabel:P5,curCheck:I5,bridge:X5,bridgeLine:K5,bridgeLabel:Z5,divider:W5,details:J5,detailRow:e8,detailLabel:t8,detailValue:n8,green:a8};function l8(){return o.jsxs("div",{className:Ge.card,children:[o.jsxs("div",{className:Ge.statusPill,children:[o.jsx("span",{className:Ge.statusDot}),"Операция завершена"]}),o.jsxs("div",{className:Ge.flowRow,children:[o.jsxs("div",{className:Ge.curBlock,children:[o.jsx("div",{className:`${Ge.curIcon} ${Ge.rub}`,children:"₽"}),o.jsx("div",{className:Ge.curAmount,children:"10 000 ₽"}),o.jsx("div",{className:Ge.curLabel,children:"Отправлено"})]}),o.jsxs("div",{className:Ge.bridge,children:[o.jsx("div",{className:Ge.bridgeLine,children:o.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[o.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Ge.flowLine}),o.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}),o.jsx("div",{className:Ge.bridgeLabel,children:o.jsx("img",{src:pa,alt:"ЭКСА"})}),o.jsx("div",{className:Ge.bridgeLine,children:o.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[o.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Ge.flowLine}),o.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})})]}),o.jsxs("div",{className:Ge.curBlock,children:[o.jsx("div",{className:`${Ge.curIcon} ${Ge.usdt}`,children:"₮"}),o.jsx("div",{className:Ge.curAmount,children:"125.3 USDT"}),o.jsxs("div",{className:Ge.curCheck,children:[o.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#26A17B",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),"Зачислено"]})]})]}),o.jsx("div",{className:Ge.divider}),o.jsxs("div",{className:Ge.details,children:[o.jsxs("div",{className:Ge.detailRow,children:[o.jsx("span",{className:Ge.detailLabel,children:"Курс"}),o.jsxs("span",{className:Ge.detailValue,children:[lg.toFixed(2)," ₽ / USDT"]})]}),o.jsxs("div",{className:Ge.detailRow,children:[o.jsx("span",{className:Ge.detailLabel,children:"Комиссия"}),o.jsx("span",{className:`${Ge.detailValue} ${Ge.green}`,children:"0%"})]})]})]})}const s8="_hero_mnobr_1",i8="_content_mnobr_33",o8="_left_mnobr_45",r8="_desktop_mnobr_52",c8="_mobile_mnobr_56",u8="_right_mnobr_60",d8="_title_mnobr_67",f8="_line2_mnobr_74",h8="_reflection_mnobr_85",m8="_cta_mnobr_96",ua={hero:s8,content:i8,left:o8,desktop:r8,mobile:c8,right:u8,title:d8,line2:f8,reflection:h8,cta:m8};function p8(){return o.jsx("section",{className:ua.hero,children:o.jsxs("div",{className:ua.content,children:[o.jsxs("div",{className:ua.left,children:[o.jsx("div",{className:ua.desktop,children:o.jsx(T5,{})}),o.jsx("div",{className:ua.mobile,children:o.jsx(l8,{})})]}),o.jsxs("div",{className:ua.right,children:[o.jsxs("h1",{className:ua.title,children:["Ваш мост",o.jsx("span",{className:ua.reflection,"aria-hidden":"true",children:"Ваш мост"}),o.jsxs("span",{className:ua.line2,children:["в мир",o.jsx("br",{}),"цифровых",o.jsx("br",{}),"активов"]})]}),o.jsxs("div",{children:[o.jsx(z5,{target:R6}),o.jsx("a",{href:"#converter",className:ua.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 сек"}],_8="_section_10lhb_1",v8="_wrap_10lhb_6",y8="_title_10lhb_11",b8="_tableWrap_10lhb_18",x8="_table_10lhb_18",S8="_name_10lhb_52",j8="_icon_10lhb_58",w8="_icon_btc_10lhb_71",C8="_icon_eth_10lhb_75",N8="_icon_trx_10lhb_79",E8="_icon_sol_10lhb_83",T8="_icon_bnb_10lhb_87",R8="_label_10lhb_91",k8="_ticker_10lhb_96",A8="_speedBar_10lhb_102",M8="_speedFill_10lhb_110",O8="_fee_10lhb_115",L8="_confirm_10lhb_121",D8="_footnote_10lhb_126",Xt={section:_8,wrap:v8,title:y8,tableWrap:b8,table:x8,name:S8,icon:j8,icon_btc:w8,icon_eth:C8,icon_trx:N8,icon_sol:E8,icon_bnb:T8,label:R8,ticker:k8,speedBar:A8,speedFill:M8,fee:O8,confirm:L8,footnote:D8};function z8(){return o.jsx("section",{className:Xt.section,children:o.jsxs("div",{className:Xt.wrap,children:[o.jsx("h2",{className:Xt.title,children:"Поддерживаемые сети"}),o.jsx("div",{className:Xt.tableWrap,children:o.jsxs("table",{className:Xt.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Сеть"}),o.jsx("th",{children:"Скорость"}),o.jsx("th",{children:"Комиссия"}),o.jsx("th",{children:"Подтверждение"})]})}),o.jsx("tbody",{children:g8.map(a=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:Xt.name,children:[o.jsx("div",{className:`${Xt.icon} ${Xt[`icon_${a.cls}`]}`,children:a.icon}),o.jsx("span",{className:Xt.label,children:a.name}),o.jsx("span",{className:Xt.ticker,children:a.ticker})]})}),o.jsx("td",{children:o.jsx("div",{className:Xt.speedBar,children:o.jsx("div",{className:Xt.speedFill,style:{width:`${a.speed}%`,background:a.color}})})}),o.jsx("td",{children:o.jsx("span",{className:Xt.fee,children:a.fee})}),o.jsx("td",{children:o.jsx("span",{className:Xt.confirm,children:a.confirm})})]},a.ticker))})]})}),o.jsx("div",{className:Xt.footnote,children:"* Комиссии и время подтверждения указаны приблизительно и зависят от загруженности сети"})]})})}function B8(){return o.jsxs(o.Fragment,{children:[o.jsx(Di,{}),o.jsxs("main",{children:[o.jsx(p8,{}),o.jsx(_x,{}),o.jsx(G6,{}),o.jsx(z8,{})]}),o.jsx(Ss,{})]})}async function c2(a,s,i){const r=await tn(),d=wt.get(),f={"Content-Type":"application/json","X-CSRF-Token":r,...d?{Authorization:`Bearer ${d}`}:{},...s.headers},m=await fetch(`${ag}${a}`,{...s,credentials:"include",headers:f});if(m.status===401&&i)try{return await ea(),c2(a,s,!1)}catch{throw wt.clear(),new Error("Unauthorized")}const _=await m.json();if(!m.ok)throw _;return _}const Jo={get:a=>c2(a,{},!0),post:(a,s)=>c2(a,{method:"POST",body:JSON.stringify(s)},!0)};function U8(a){return Jo.post("/auth/registration/start",a)}function $8(a){return Jo.post("/auth/registration/complete",a)}function H8(a){return Jo.post("/auth/login/start",a)}function q8(a){return Jo.post("/auth/login/complete",a)}async function F8(){const a=await tn();return Jo.post("/auth/logout",{_csrf:a})}const er="https://app.users.elcsa.ru";async function M2(){const a=await tn(),s=wt.get();return{"X-CSRF-Token":a,...s?{Authorization:`Bearer ${s}`}:{}}}async function G8(){const a=await M2(),s=await fetch(`${er}/me/`,{credentials:"include",headers:a}),i=await s.json();if(!s.ok)throw i;return i}async function V8(a){const s=await M2(),i=await fetch(`${er}/me/settings/avatar`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...s},body:JSON.stringify(a)}),r=await i.json();if(!i.ok)throw r;return r}async function Q8(a){const s=await tn(),i=await fetch(`${er}/me/settings/password/forgot/start`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":s},body:JSON.stringify(a)});if(!i.ok)throw await i.json().catch(()=>({}))}async function Y8(a){const s=await M2(),i=await fetch(`${er}/me/settings/phone`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...s},body:JSON.stringify({phone:a})});if(!i.ok)throw await i.json().catch(()=>({}))}async function P8(a){const s=await tn(),i=await fetch(`${er}/me/settings/password/forgot/complete`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":s},body:JSON.stringify(a)});if(!i.ok)throw await i.json().catch(()=>({}))}const I8=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"";function sg(a){return a.account_type!=="individual"}function ig(a){return[a.last_name,a.first_name,a.middle_name].filter(Boolean).map(I8).join(" ")}function X8(a){var s;return sg(a)?((s=a.legal_entity)==null?void 0:s.name)??"":ig(a)}function ta(a){return vt({queryKey:["me"],queryFn:G8,staleTime:1/0,gcTime:1/0,retry:!1,...a})}function K8(){const a=en();return _t({mutationFn:V8,onSuccess:s=>{a.setQueryData(["me"],s)}})}function Z8(){const a=en();return _t({mutationFn:Y8,onSuccess:()=>{a.invalidateQueries({queryKey:["me"]})}})}const Zc=["auth"];function W8(){return vt({queryKey:Zc,queryFn:ea,retry:!1,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1})}function og(){const{data:a,isLoading:s,isError:i}=W8();return{isAuthenticated:!!a&&!i,isLoading:s}}const J8="https://app.b2b.elcsa.ru";async function Wc(a,s,i){const r=await tn(),d=await fetch(`${J8}${a}`,{...s,credentials:"include",headers:{"X-CSRF-Token":r,...s.headers}});if(d.status===401&&i)try{return await ea(),Wc(a,s,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function e7(a=50,s=0){return Wc(`/purchase-requests?limit=${a}&offset=${s}`,{},!0)}function t7(){return Wc("/v1/organizations/wallets",{},!0)}function n7(){return Wc("/v1/organizations/wallets/balances",{},!0)}function a7(){return vt({queryKey:["b2b","purchase-requests"],queryFn:()=>e7(),staleTime:3e4})}const rg="https://app.cryptowallet.elcsa.ru",O2=["ETH","BSC","BTC","TRX","SOL"];async function Ll(a,s=!0){const i=await tn(),r=wt.get(),d=await fetch(`${rg}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&s)try{return await ea(),Ll(a,!1)}catch{throw wt.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function na(a,s,i=!0,r={}){const d=await tn(),f=wt.get(),m=await fetch(`${rg}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(s)});if(m.status===401&&i)try{return await ea(),na(a,s,!1,r)}catch{throw wt.clear(),new Error("Unauthorized")}const _=await m.json();if(!m.ok)throw _;return _}async function l7(){return(await Ll("/api/wallets")).data}async function s7(a){return(await Ll(`/api/wallets/${a}/balance`)).data}async function i7(a){return(await Ll(`/api/prices?symbols=${a.join(",")}`)).data}async function o7(a,s){return na(`/api/wallets/${a}/send`,s)}async function r7(){return(await Ll("/api/wallets/portfolio")).data}const c7={ETH:"ETH",BNB:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function cg(a,s){const i=a==null?void 0:a.toUpperCase();return O2.includes(i)?i:(s?c7[s.toUpperCase()]:void 0)??null}function Gc(a){const s=typeof a=="number"?a:parseFloat(a??"");return Number.isFinite(s)?s:0}function yp(a){return{raw:a.raw,formatted:a.formatted,decimals:a.decimals,usdPrice:Gc(a.usd_price),usdValue:Gc(a.usd_value)}}function u7(a,s){const i={};for(const[r,d]of Object.entries(a.tokens??{}))i[r]=yp(d);return{chain:s,address:a.address,native:yp(a.native),tokens:i,totalUsd:Gc(a.total_usd),stale:!1,lastUpdated:0}}async function ug(){const a=await n7(),s={};for(const i of a.items??[]){const r=cg(i.chain,i.native_symbol);r&&(s[r]=u7(i,r))}return{totalUsd:Gc(a.total_usd),hasErrors:!!a.has_errors,perChain:s}}const d7={raw:"0",formatted:"0",decimals:0,usdPrice:0,usdValue:0};async function f7(a){const i=(await ug()).perChain[a];return i?{chain:a,address:i.address,native:i.native,tokens:i.tokens}:{chain:a,address:"",native:d7,tokens:{}}}async function h7(){const a=await t7(),s=[];for(const i of a??[]){const r=cg(i.chain);r&&s.push({chain:r,address:i.address,derivationPath:i.derivation_path})}return s}async function m7(){return(await Ll("/api/tokens")).data}async function p7(){var s;const a=await Ll("/api/jumper/tokens?chains=1,56,1151111081099710,728126428,20000000000001");return((s=a.data)==null?void 0:s.tokens)??a.tokens??{}}async function g7(a){var r;const s=new URLSearchParams({fromChain:a.fromChain,toChain:a.toChain,fromToken:a.fromToken,toToken:a.toToken,fromAmount:a.fromAmount,fromAddress:a.fromAddress,toAddress:a.toAddress,slippage:String(a.slippage)}).toString(),i=await Ll(`/api/jumper/quote-best?${s}`);return((r=i.data)==null?void 0:r.body)??i.body??i}async function _7(a){var i;const s=await na("/api/bridge/execute",a,!0,{"Idempotency-Key":crypto.randomUUID()});return((i=s.data)==null?void 0:i.data)??s}async function v7(a){return na("/api/relay/quote",a)}async function y7(a){return na("/api/relay/execute/swap",a)}async function b7(a,s){const i=`relay-${a.toLowerCase()}-${Date.now()}`;return na(`/api/wallets/${a}/sign-raw-evm-tx`,s,!0,{"Idempotency-Key":i})}async function x7(a){return na("/api/wallets/SOL/sign-and-broadcast-tx",a)}async function dg(a){return(await na("/api/wallets/TRX/swap/quote",a)).data}async function S7(a){return na("/api/wallets/TRX/swap",{quoteId:a},!0,{"Idempotency-Key":`trx-${Date.now()}`})}async function j7(){await na("/api/wallets/create",{})}async function w7(){return(await na("/api/wallets/mnemonic/reveal",{confirm:"I_UNDERSTAND_SEED_IS_SECRET"})).data.mnemonic}function L2(){const{data:a}=ta();return{isLegal:(a==null?void 0:a.account_type)==="legal_entity",ready:!!a}}function Ri(a){const{isLegal:s,ready:i}=L2();return vt({queryKey:["wallet","balance",a,s?"org":"self"],queryFn:s?()=>f7(a):()=>s7(a),enabled:s?i:!0,staleTime:3e4})}function C7(a){return vt({queryKey:["wallet","prices",a.join(",")],queryFn:()=>i7(a),staleTime:300*1e3})}function N7(){return _t({mutationFn:({chain:a,...s})=>o7(a,s)})}function Jc(){const{isLegal:a,ready:s}=L2();return vt({queryKey:["wallet","addresses",a?"org":"self"],queryFn:a?h7:l7,enabled:a?s:!0,staleTime:600*1e3})}function eu(){const{isLegal:a,ready:s}=L2();return vt({queryKey:["wallet","portfolio",a?"org":"self"],queryFn:a?ug:r7,enabled:a?s:!0,staleTime:3e4})}function E7(){return vt({queryKey:["wallet","tokens"],queryFn:m7,staleTime:600*1e3})}function T7(){return vt({queryKey:["wallet","jumper","tokens"],queryFn:p7,staleTime:600*1e3})}function R7(){return _t({mutationFn:a=>g7(a)})}function k7(){return _t({mutationFn:a=>_7(a)})}function A7(){return _t({mutationFn:j7})}function M7(){return vt({queryKey:["wallet","mnemonic"],queryFn:w7,staleTime:1/0,retry:!1})}function fg(a){return vt({queryKey:["relay","quote",a==null?void 0:a.originChainId,a==null?void 0:a.destinationChainId,a==null?void 0:a.originCurrency,a==null?void 0:a.destinationCurrency,a==null?void 0:a.amount],queryFn:()=>v7(a),enabled:!!a,staleTime:1e4})}function O7(){return _t({mutationFn:a=>y7(a)})}function L7(){return _t({mutationFn:({chain:a,txData:s})=>a==="SOL"?x7(s):b7(a,s)})}function D7(a){return vt({queryKey:["trx","quote",a==null?void 0:a.from,a==null?void 0:a.to,a==null?void 0:a.amountHuman],queryFn:()=>dg(a),enabled:!!a,staleTime:1e4})}function z7(){return _t({mutationFn:dg})}function B7(){return _t({mutationFn:a=>S7(a)})}const U7="_card_1kfaj_1",$7="_label_1kfaj_18",H7="_amount_1kfaj_27",q7="_actions_1kfaj_41",F7="_btn_1kfaj_46",ts={card:U7,label:$7,amount:H7,actions:q7,btn:F7},G7="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",V7="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 Q7(){const{data:a,isLoading:s}=eu(),i=s||!a||a.totalUsd==null?"$—":`$${a.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return o.jsxs("div",{className:ts.card,children:[o.jsxs("div",{className:ts.left,children:[o.jsx("div",{className:ts.label,children:"Общий баланс"}),o.jsx("div",{className:ts.amount,children:i})]}),o.jsxs("div",{className:ts.actions,children:[o.jsxs(Ft,{to:re.CONVERTER,className:ts.btn,type:"button",children:[o.jsx("img",{src:V7,alt:"swap"}),"Пополнить кошелёк"]}),o.jsxs(Ft,{to:re.SWAP,className:ts.btn,type:"button",children:[o.jsx("img",{src:G7,alt:"topup"}),"Своп / Бридж"]})]})]})}const Y7="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",P7="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pg0KDQo8IURPQ1RZUEUgc3ZnICBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+DQoNCjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+DQo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDMyIDMyIiBpZD0iX3gzQ19MYXllcl94M0VfIiB2ZXJzaW9uPSIxLjEiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KDQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KPCFbQ0RBVEFbDQoJLnN0MHtmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Qxe2ZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KXV0+DQo8L3N0eWxlPg0KDQo8ZyBpZD0iRXRoZXJldW1feDJDX19jcnlwdG9feDJDX19jcnlwdG9jdXJyZW5jeV8xXyI+DQoNCjxnIGlkPSJYTUxJRF8xNV8iPg0KDQo8cG9seWdvbiBjbGFzcz0ic3QxIiBpZD0iWE1MSURfOF8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzFfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjMwLjUiIHkyPSIyNC4xIi8+DQoNCjxwb2x5Z29uIGNsYXNzPSJzdDEiIGlkPSJYTUxJRF8xMl8iIHBvaW50cz0iMTYuMDEsMzAuNSA3LjYyLDE4LjgzIDE2LjAxLDI0LjEgMjQuMzgsMTguNzggICAiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzMwXyIgcG9pbnRzPSIxNi4wMSwxMi4zIDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzJfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjEuNSIgeTI9IjIxLjUiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzE5Ml8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8L2c+DQoNCjwvZz4NCg0KPC9zdmc+",I7="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",X7="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",K7="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",Z7="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",W7="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",J7="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",e9="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",t9="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",n9="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",a9="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",l9="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",s9="/assets/popcat-DOGy5LFs.svg",i9="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",o9="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",r9="/assets/uni-C5oaqT41.svg",c9="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",u9="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",d9="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",f9="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",st={BTC:Y7,ETH:P7,SOL:I7,TRX:X7,BNB:K7,ARB:Z7,BONK:W7,BUSD:J7,DAI:e9,DOGE:t9,JUP:n9,LINK:a9,ORCA:l9,POPCAT:s9,PYTH:i9,RAY:o9,UNI:r9,USDC:c9,USDT:u9,W:d9,WIF:f9};function hg(a){return st[a.toUpperCase()]}function it(a,s=8){const i=typeof a=="number"?a.toString():a,r=i.indexOf(".");return r===-1?i:i.slice(0,r+1+s)}const h9=[{ticker:"BTC",name:"Bitcoin",logo:st.BTC,color:"#F7931A",price:"$66,916.00",change:.12,bal:"0.003295",usd:"$220.57",fav:!0},{ticker:"ETH",name:"Ethereum",logo:st.ETH,color:"#627EEA",price:"$2,053.97",change:-.12,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"SOL",name:"Solana",logo:st.SOL,color:"#9945FF",price:"$163.84",change:-1.57,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"TRX",name:"Tron",logo:st.TRX,color:"#FF060A",price:"$0.1197",change:1.33,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"BNB",name:"BNB",logo:st.BNB,color:"#F3BA2F",price:"$0.00",change:0,bal:"0.00000",usd:"$0.00",fav:!1}],m9={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BNB"},p9={BTC:"Bitcoin",ETH:"Ethereum",SOL:"Solana",TRX:"Tron",BSC:"BNB"},mg="#2A2D3A";function pg(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function gg(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function _g(a){return h9.find(s=>s.ticker===a)}function vg(a,s){const i=m9[a],r=_g(i);return{id:`${a}-${i}`,chain:a,ticker:i,name:p9[a],logo:hg(i)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??mg,price:gg(s.usdPrice),change:0,bal:it(s.formatted),usd:pg(s.usdValue),usdValue:s.usdValue,fav:!1}}function yg(a,s,i){const r=_g(s);return{id:`${a}-${s}`,chain:a,ticker:s,name:(r==null?void 0:r.name)??s,logo:hg(s)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??mg,price:gg(i.usdPrice),change:0,bal:it(i.formatted),usd:pg(i.usdValue),usdValue:i.usdValue,fav:!1}}function bp(a){return parseFloat(a.formatted)>0}function g9(a){const{data:s,isLoading:i}=Ri(a);if(!s)return{rows:[],isLoading:i};const r=vg(a,s.native),d=Object.entries(s.tokens??{}).map(([f,m])=>yg(a,f,m));return{rows:[r,...d],isLoading:i}}function _9(){var r;const{data:a,isLoading:s}=eu();if(!a)return{rows:[],isLoading:s};const i=[];for(const d of O2){const f=(r=a.perChain)==null?void 0:r[d];if(!f)continue;const m=[];f.native&&bp(f.native)&&m.push(vg(d,f.native));for(const[_,h]of Object.entries(f.tokens??{}))bp(h)&&m.push(yg(d,_,h));m.sort((_,h)=>(h.usdValue??0)-(_.usdValue??0)),i.push(...m)}return{rows:i,isLoading:s}}const v9={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"]},y9={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}},b9={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BSC"},x9="_overlay_1hejd_1",S9="_dialog_1hejd_14",j9="_dialogIn_1hejd_1",w9="_header_1hejd_37",C9="_title_1hejd_44",N9="_close_1hejd_50",E9="_selectsRow_1hejd_72",T9="_selectGroup_1hejd_79",R9="_selectLabel_1hejd_83",k9="_selectTrigger_1hejd_93",A9="_selectTriggerOpen_1hejd_112",M9="_selectValue_1hejd_117",O9="_chevron_1hejd_125",L9="_chevronOpen_1hejd_131",D9="_tokenDot_1hejd_137",z9="_speedDot_1hejd_158",B9="_speedDot_slow_1hejd_165",U9="_speedDot_normal_1hejd_170",$9="_speedDot_fast_1hejd_175",H9="_dropdown_1hejd_182",q9="_dropdownItem_1hejd_195",F9="_dropdownItemActive_1hejd_215",G9="_dropdownTicker_1hejd_220",V9="_dropdownName_1hejd_225",Q9="_field_1hejd_233",Y9="_fieldLabel_1hejd_237",P9="_input_1hejd_247",I9="_amountWrap_1hejd_283",X9="_amountInput_1hejd_287",K9="_amountTicker_1hejd_291",Z9="_maxHint_1hejd_304",W9="_maxBtn_1hejd_314",J9="_errorMsg_1hejd_333",eS="_submitBtn_1hejd_346",de={overlay:x9,dialog:S9,dialogIn:j9,header:w9,title:C9,close:N9,selectsRow:E9,selectGroup:T9,selectLabel:R9,selectTrigger:k9,selectTriggerOpen:A9,selectValue:M9,chevron:O9,chevronOpen:L9,tokenDot:D9,speedDot:z9,speedDot_slow:B9,speedDot_normal:U9,speedDot_fast:$9,dropdown:H9,dropdownItem:q9,dropdownItemActive:F9,dropdownTicker:G9,dropdownName:V9,field:Q9,fieldLabel:Y9,input:P9,amountWrap:I9,amountInput:X9,amountTicker:K9,maxHint:Z9,maxBtn:W9,errorMsg:J9,submitBtn:eS},xp=[{value:"slow",label:"Медленно"},{value:"normal",label:"Нормально"},{value:"fast",label:"Быстро"}];function tS(a){var s;if(a instanceof Error)return a.message;if(a&&typeof a=="object"){const i=a;if(typeof i.message=="string")return i.message;if(typeof i.error=="string")return i.error;if(Array.isArray(i.detail)&&((s=i.detail[0])!=null&&s.msg))return String(i.detail[0].msg)}return"Что-то пошло не так. Попробуйте ещё раз."}function nS({open:a,onClose:s,network:i,tokens:r=[],initialToken:d=""}){var ue;const f=y9[i],m=v9[i],[_,h]=S.useState(d),[p,v]=S.useState("normal"),[y,x]=S.useState(""),[j,w]=S.useState(""),[C,N]=S.useState(null),A=N7(),z=((ue=xp.find(te=>te.value===p))==null?void 0:ue.label)??"Нормально",O=_===""?f.nativeSymbol:_,q=r.find(te=>te.ticker===(_===""?f.nativeSymbol:_));if(S.useEffect(()=>{h(d)},[d]),S.useEffect(()=>{h("")},[i]),S.useEffect(()=>{A.isSuccess&&s()},[A.isSuccess,s]),S.useEffect(()=>{if(!a){x(""),w(""),N(null),A.reset();return}const te=he=>{he.key==="Escape"&&s()};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[a,s]),!a)return null;const Y=f.hasToken,X=f.hasFeeTier,U=Y||X,P=Y&&X?2:1;function W(){C?N(null):s()}function ce(te,he){const[ne,H=""]=te.split("."),I=H.slice(0,he).padEnd(he,"0");return(BigInt(ne||"0")*10n**BigInt(he)+BigInt(I||"0")).toString()}function ie(){const he=_===""?ce(j,f.nativeDecimals):j;A.mutate({chain:i,to:y,amount:he,..._?{token:_}:{},...f.hasFeeTier?{feeTier:p}:{}})}return o.jsx("div",{className:de.overlay,onClick:W,children:o.jsxs("div",{className:de.dialog,onClick:te=>te.stopPropagation(),children:[o.jsxs("div",{className:de.header,children:[o.jsxs("div",{className:de.headerLeft,children:[o.jsx("span",{className:de.chainDot,style:{background:f.color}}),o.jsxs("span",{className:de.title,children:["Отправить · ",f.label]})]}),o.jsx("button",{className:de.close,onClick:s,type:"button","aria-label":"Закрыть",children:o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),U&&o.jsxs("div",{className:de.selectsRow,style:{gridTemplateColumns:`repeat(${P}, 1fr)`},children:[Y&&o.jsxs("div",{className:de.selectGroup,children:[o.jsx("label",{className:de.selectLabel,children:"Токен"}),o.jsxs("button",{type:"button",className:`${de.selectTrigger} ${C==="token"?de.selectTriggerOpen:""}`,onClick:()=>N(te=>te==="token"?null:"token"),children:[o.jsx("span",{className:de.tokenDot,style:{background:f.color},children:O[0]}),o.jsx("span",{className:de.selectValue,children:O}),o.jsx("svg",{className:`${de.chevron} ${C==="token"?de.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:o.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),C==="token"&&o.jsxs("div",{className:de.dropdown,children:[o.jsxs("button",{type:"button",className:`${de.dropdownItem} ${_===""?de.dropdownItemActive:""}`,onClick:()=>{h(""),N(null)},children:[o.jsx("span",{className:de.tokenDot,style:{background:f.color},children:f.nativeSymbol[0]}),o.jsx("span",{className:de.dropdownTicker,children:f.nativeSymbol}),o.jsx("span",{className:de.dropdownName,children:"Нативный"})]}),m.map(te=>o.jsxs("button",{type:"button",className:`${de.dropdownItem} ${_===te?de.dropdownItemActive:""}`,onClick:()=>{h(te),N(null)},children:[o.jsx("span",{className:de.tokenDot,style:{background:"rgba(255,255,255,0.12)"},children:te[0]}),o.jsx("span",{className:de.dropdownTicker,children:te})]},te))]})]}),X&&o.jsxs("div",{className:de.selectGroup,children:[o.jsx("label",{className:de.selectLabel,children:"Скорость"}),o.jsxs("button",{type:"button",className:`${de.selectTrigger} ${C==="speed"?de.selectTriggerOpen:""}`,onClick:()=>N(te=>te==="speed"?null:"speed"),children:[o.jsx("span",{className:`${de.speedDot} ${de[`speedDot_${p}`]}`}),o.jsx("span",{className:de.selectValue,children:z}),o.jsx("svg",{className:`${de.chevron} ${C==="speed"?de.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:o.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),C==="speed"&&o.jsx("div",{className:de.dropdown,children:xp.map(te=>o.jsxs("button",{type:"button",className:`${de.dropdownItem} ${te.value===p?de.dropdownItemActive:""}`,onClick:()=>{v(te.value),N(null)},children:[o.jsx("span",{className:`${de.speedDot} ${de[`speedDot_${te.value}`]}`}),o.jsx("span",{children:te.label})]},te.value))})]})]}),o.jsxs("div",{className:de.field,children:[o.jsx("label",{className:de.fieldLabel,children:"Адрес кошелька"}),o.jsx("input",{className:de.input,type:"text",placeholder:f.addressPlaceholder,value:y,onChange:te=>x(te.target.value),autoComplete:"off",spellCheck:!1})]}),o.jsxs("div",{className:de.field,children:[o.jsx("label",{className:de.fieldLabel,children:"Количество"}),o.jsxs("div",{className:de.amountWrap,children:[o.jsx("input",{className:`${de.input} ${de.amountInput}`,type:"number",placeholder:"0.00",value:j,onChange:te=>w(te.target.value),min:"0",step:"any"}),o.jsx("span",{className:de.amountTicker,children:O})]}),q&&o.jsxs("div",{className:de.maxHint,children:["Макс:"," ",o.jsxs("button",{type:"button",className:de.maxBtn,onClick:()=>w(q.bal),children:[q.bal," ",O]})]})]}),A.isError&&o.jsx("div",{className:de.errorMsg,children:tS(A.error)}),o.jsx("button",{className:de.submitBtn,type:"button",disabled:A.isPending,onClick:ie,children:A.isPending?"Отправка…":"Отправить"})]})})}var aS=Object.defineProperty,Vc=Object.getOwnPropertySymbols,bg=Object.prototype.hasOwnProperty,xg=Object.prototype.propertyIsEnumerable,Sp=(a,s,i)=>s in a?aS(a,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[s]=i,u2=(a,s)=>{for(var i in s||(s={}))bg.call(s,i)&&Sp(a,i,s[i]);if(Vc)for(var i of Vc(s))xg.call(s,i)&&Sp(a,i,s[i]);return a},d2=(a,s)=>{var i={};for(var r in a)bg.call(a,r)&&s.indexOf(r)<0&&(i[r]=a[r]);if(a!=null&&Vc)for(var r of Vc(a))s.indexOf(r)<0&&xg.call(a,r)&&(i[r]=a[r]);return i};/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/var xs;(a=>{const s=class Ee{constructor(h,p,v,y){if(this.version=h,this.errorCorrectionLevel=p,this.modules=[],this.isFunction=[],h<Ee.MIN_VERSION||h>Ee.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=h*4+17;let x=[];for(let w=0;w<this.size;w++)x.push(!1);for(let w=0;w<this.size;w++)this.modules.push(x.slice()),this.isFunction.push(x.slice());this.drawFunctionPatterns();const j=this.addEccAndInterleave(v);if(this.drawCodewords(j),y==-1){let w=1e9;for(let C=0;C<8;C++){this.applyMask(C),this.drawFormatBits(C);const N=this.getPenaltyScore();N<w&&(y=C,w=N),this.applyMask(C)}}d(0<=y&&y<=7),this.mask=y,this.applyMask(y),this.drawFormatBits(y),this.isFunction=[]}static encodeText(h,p){const v=a.QrSegment.makeSegments(h);return Ee.encodeSegments(v,p)}static encodeBinary(h,p){const v=a.QrSegment.makeBytes(h);return Ee.encodeSegments([v],p)}static encodeSegments(h,p,v=1,y=40,x=-1,j=!0){if(!(Ee.MIN_VERSION<=v&&v<=y&&y<=Ee.MAX_VERSION)||x<-1||x>7)throw new RangeError("Invalid value");let w,C;for(w=v;;w++){const O=Ee.getNumDataCodewords(w,p)*8,q=m.getTotalBits(h,w);if(q<=O){C=q;break}if(w>=y)throw new RangeError("Data too long")}for(const O of[Ee.Ecc.MEDIUM,Ee.Ecc.QUARTILE,Ee.Ecc.HIGH])j&&C<=Ee.getNumDataCodewords(w,O)*8&&(p=O);let N=[];for(const O of h){i(O.mode.modeBits,4,N),i(O.numChars,O.mode.numCharCountBits(w),N);for(const q of O.getData())N.push(q)}d(N.length==C);const A=Ee.getNumDataCodewords(w,p)*8;d(N.length<=A),i(0,Math.min(4,A-N.length),N),i(0,(8-N.length%8)%8,N),d(N.length%8==0);for(let O=236;N.length<A;O^=253)i(O,8,N);let z=[];for(;z.length*8<N.length;)z.push(0);return N.forEach((O,q)=>z[q>>>3]|=O<<7-(q&7)),new Ee(w,p,z,x)}getModule(h,p){return 0<=h&&h<this.size&&0<=p&&p<this.size&&this.modules[p][h]}getModules(){return this.modules}drawFunctionPatterns(){for(let v=0;v<this.size;v++)this.setFunctionModule(6,v,v%2==0),this.setFunctionModule(v,6,v%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const h=this.getAlignmentPatternPositions(),p=h.length;for(let v=0;v<p;v++)for(let y=0;y<p;y++)v==0&&y==0||v==0&&y==p-1||v==p-1&&y==0||this.drawAlignmentPattern(h[v],h[y]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(h){const p=this.errorCorrectionLevel.formatBits<<3|h;let v=p;for(let x=0;x<10;x++)v=v<<1^(v>>>9)*1335;const y=(p<<10|v)^21522;d(y>>>15==0);for(let x=0;x<=5;x++)this.setFunctionModule(8,x,r(y,x));this.setFunctionModule(8,7,r(y,6)),this.setFunctionModule(8,8,r(y,7)),this.setFunctionModule(7,8,r(y,8));for(let x=9;x<15;x++)this.setFunctionModule(14-x,8,r(y,x));for(let x=0;x<8;x++)this.setFunctionModule(this.size-1-x,8,r(y,x));for(let x=8;x<15;x++)this.setFunctionModule(8,this.size-15+x,r(y,x));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let h=this.version;for(let v=0;v<12;v++)h=h<<1^(h>>>11)*7973;const p=this.version<<12|h;d(p>>>18==0);for(let v=0;v<18;v++){const y=r(p,v),x=this.size-11+v%3,j=Math.floor(v/3);this.setFunctionModule(x,j,y),this.setFunctionModule(j,x,y)}}drawFinderPattern(h,p){for(let v=-4;v<=4;v++)for(let y=-4;y<=4;y++){const x=Math.max(Math.abs(y),Math.abs(v)),j=h+y,w=p+v;0<=j&&j<this.size&&0<=w&&w<this.size&&this.setFunctionModule(j,w,x!=2&&x!=4)}}drawAlignmentPattern(h,p){for(let v=-2;v<=2;v++)for(let y=-2;y<=2;y++)this.setFunctionModule(h+y,p+v,Math.max(Math.abs(y),Math.abs(v))!=1)}setFunctionModule(h,p,v){this.modules[p][h]=v,this.isFunction[p][h]=!0}addEccAndInterleave(h){const p=this.version,v=this.errorCorrectionLevel;if(h.length!=Ee.getNumDataCodewords(p,v))throw new RangeError("Invalid argument");const y=Ee.NUM_ERROR_CORRECTION_BLOCKS[v.ordinal][p],x=Ee.ECC_CODEWORDS_PER_BLOCK[v.ordinal][p],j=Math.floor(Ee.getNumRawDataModules(p)/8),w=y-j%y,C=Math.floor(j/y);let N=[];const A=Ee.reedSolomonComputeDivisor(x);for(let O=0,q=0;O<y;O++){let Y=h.slice(q,q+C-x+(O<w?0:1));q+=Y.length;const X=Ee.reedSolomonComputeRemainder(Y,A);O<w&&Y.push(0),N.push(Y.concat(X))}let z=[];for(let O=0;O<N[0].length;O++)N.forEach((q,Y)=>{(O!=C-x||Y>=w)&&z.push(q[O])});return d(z.length==j),z}drawCodewords(h){if(h.length!=Math.floor(Ee.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let p=0;for(let v=this.size-1;v>=1;v-=2){v==6&&(v=5);for(let y=0;y<this.size;y++)for(let x=0;x<2;x++){const j=v-x,C=(v+1&2)==0?this.size-1-y:y;!this.isFunction[C][j]&&p<h.length*8&&(this.modules[C][j]=r(h[p>>>3],7-(p&7)),p++)}}d(p==h.length*8)}applyMask(h){if(h<0||h>7)throw new RangeError("Mask value out of range");for(let p=0;p<this.size;p++)for(let v=0;v<this.size;v++){let y;switch(h){case 0:y=(v+p)%2==0;break;case 1:y=p%2==0;break;case 2:y=v%3==0;break;case 3:y=(v+p)%3==0;break;case 4:y=(Math.floor(v/3)+Math.floor(p/2))%2==0;break;case 5:y=v*p%2+v*p%3==0;break;case 6:y=(v*p%2+v*p%3)%2==0;break;case 7:y=((v+p)%2+v*p%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[p][v]&&y&&(this.modules[p][v]=!this.modules[p][v])}}getPenaltyScore(){let h=0;for(let x=0;x<this.size;x++){let j=!1,w=0,C=[0,0,0,0,0,0,0];for(let N=0;N<this.size;N++)this.modules[x][N]==j?(w++,w==5?h+=Ee.PENALTY_N1:w>5&&h++):(this.finderPenaltyAddHistory(w,C),j||(h+=this.finderPenaltyCountPatterns(C)*Ee.PENALTY_N3),j=this.modules[x][N],w=1);h+=this.finderPenaltyTerminateAndCount(j,w,C)*Ee.PENALTY_N3}for(let x=0;x<this.size;x++){let j=!1,w=0,C=[0,0,0,0,0,0,0];for(let N=0;N<this.size;N++)this.modules[N][x]==j?(w++,w==5?h+=Ee.PENALTY_N1:w>5&&h++):(this.finderPenaltyAddHistory(w,C),j||(h+=this.finderPenaltyCountPatterns(C)*Ee.PENALTY_N3),j=this.modules[N][x],w=1);h+=this.finderPenaltyTerminateAndCount(j,w,C)*Ee.PENALTY_N3}for(let x=0;x<this.size-1;x++)for(let j=0;j<this.size-1;j++){const w=this.modules[x][j];w==this.modules[x][j+1]&&w==this.modules[x+1][j]&&w==this.modules[x+1][j+1]&&(h+=Ee.PENALTY_N2)}let p=0;for(const x of this.modules)p=x.reduce((j,w)=>j+(w?1:0),p);const v=this.size*this.size,y=Math.ceil(Math.abs(p*20-v*10)/v)-1;return d(0<=y&&y<=9),h+=y*Ee.PENALTY_N4,d(0<=h&&h<=2568888),h}getAlignmentPatternPositions(){if(this.version==1)return[];{const h=Math.floor(this.version/7)+2,p=this.version==32?26:Math.ceil((this.version*4+4)/(h*2-2))*2;let v=[6];for(let y=this.size-7;v.length<h;y-=p)v.splice(1,0,y);return v}}static getNumRawDataModules(h){if(h<Ee.MIN_VERSION||h>Ee.MAX_VERSION)throw new RangeError("Version number out of range");let p=(16*h+128)*h+64;if(h>=2){const v=Math.floor(h/7)+2;p-=(25*v-10)*v-55,h>=7&&(p-=36)}return d(208<=p&&p<=29648),p}static getNumDataCodewords(h,p){return Math.floor(Ee.getNumRawDataModules(h)/8)-Ee.ECC_CODEWORDS_PER_BLOCK[p.ordinal][h]*Ee.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][h]}static reedSolomonComputeDivisor(h){if(h<1||h>255)throw new RangeError("Degree out of range");let p=[];for(let y=0;y<h-1;y++)p.push(0);p.push(1);let v=1;for(let y=0;y<h;y++){for(let x=0;x<p.length;x++)p[x]=Ee.reedSolomonMultiply(p[x],v),x+1<p.length&&(p[x]^=p[x+1]);v=Ee.reedSolomonMultiply(v,2)}return p}static reedSolomonComputeRemainder(h,p){let v=p.map(y=>0);for(const y of h){const x=y^v.shift();v.push(0),p.forEach((j,w)=>v[w]^=Ee.reedSolomonMultiply(j,x))}return v}static reedSolomonMultiply(h,p){if(h>>>8||p>>>8)throw new RangeError("Byte out of range");let v=0;for(let y=7;y>=0;y--)v=v<<1^(v>>>7)*285,v^=(p>>>y&1)*h;return d(v>>>8==0),v}finderPenaltyCountPatterns(h){const p=h[1];d(p<=this.size*3);const v=p>0&&h[2]==p&&h[3]==p*3&&h[4]==p&&h[5]==p;return(v&&h[0]>=p*4&&h[6]>=p?1:0)+(v&&h[6]>=p*4&&h[0]>=p?1:0)}finderPenaltyTerminateAndCount(h,p,v){return h&&(this.finderPenaltyAddHistory(p,v),p=0),p+=this.size,this.finderPenaltyAddHistory(p,v),this.finderPenaltyCountPatterns(v)}finderPenaltyAddHistory(h,p){p[0]==0&&(h+=this.size),p.pop(),p.unshift(h)}};s.MIN_VERSION=1,s.MAX_VERSION=40,s.PENALTY_N1=3,s.PENALTY_N2=3,s.PENALTY_N3=40,s.PENALTY_N4=10,s.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],s.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a.QrCode=s;function i(_,h,p){if(h<0||h>31||_>>>h)throw new RangeError("Value out of range");for(let v=h-1;v>=0;v--)p.push(_>>>v&1)}function r(_,h){return(_>>>h&1)!=0}function d(_){if(!_)throw new Error("Assertion error")}const f=class ft{constructor(h,p,v){if(this.mode=h,this.numChars=p,this.bitData=v,p<0)throw new RangeError("Invalid argument");this.bitData=v.slice()}static makeBytes(h){let p=[];for(const v of h)i(v,8,p);return new ft(ft.Mode.BYTE,h.length,p)}static makeNumeric(h){if(!ft.isNumeric(h))throw new RangeError("String contains non-numeric characters");let p=[];for(let v=0;v<h.length;){const y=Math.min(h.length-v,3);i(parseInt(h.substring(v,v+y),10),y*3+1,p),v+=y}return new ft(ft.Mode.NUMERIC,h.length,p)}static makeAlphanumeric(h){if(!ft.isAlphanumeric(h))throw new RangeError("String contains unencodable characters in alphanumeric mode");let p=[],v;for(v=0;v+2<=h.length;v+=2){let y=ft.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v))*45;y+=ft.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v+1)),i(y,11,p)}return v<h.length&&i(ft.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v)),6,p),new ft(ft.Mode.ALPHANUMERIC,h.length,p)}static makeSegments(h){return h==""?[]:ft.isNumeric(h)?[ft.makeNumeric(h)]:ft.isAlphanumeric(h)?[ft.makeAlphanumeric(h)]:[ft.makeBytes(ft.toUtf8ByteArray(h))]}static makeEci(h){let p=[];if(h<0)throw new RangeError("ECI assignment value out of range");if(h<128)i(h,8,p);else if(h<16384)i(2,2,p),i(h,14,p);else if(h<1e6)i(6,3,p),i(h,21,p);else throw new RangeError("ECI assignment value out of range");return new ft(ft.Mode.ECI,0,p)}static isNumeric(h){return ft.NUMERIC_REGEX.test(h)}static isAlphanumeric(h){return ft.ALPHANUMERIC_REGEX.test(h)}getData(){return this.bitData.slice()}static getTotalBits(h,p){let v=0;for(const y of h){const x=y.mode.numCharCountBits(p);if(y.numChars>=1<<x)return 1/0;v+=4+x+y.bitData.length}return v}static toUtf8ByteArray(h){h=encodeURI(h);let p=[];for(let v=0;v<h.length;v++)h.charAt(v)!="%"?p.push(h.charCodeAt(v)):(p.push(parseInt(h.substring(v+1,v+3),16)),v+=2);return p}};f.NUMERIC_REGEX=/^[0-9]*$/,f.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,f.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let m=f;a.QrSegment=f})(xs||(xs={}));(a=>{(s=>{const i=class{constructor(d,f){this.ordinal=d,this.formatBits=f}};i.LOW=new i(0,1),i.MEDIUM=new i(1,0),i.QUARTILE=new i(2,3),i.HIGH=new i(3,2),s.Ecc=i})(a.QrCode||(a.QrCode={}))})(xs||(xs={}));(a=>{(s=>{const i=class{constructor(d,f){this.modeBits=d,this.numBitsCharCount=f}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}};i.NUMERIC=new i(1,[10,12,14]),i.ALPHANUMERIC=new i(2,[9,11,13]),i.BYTE=new i(4,[8,16,16]),i.KANJI=new i(8,[8,10,12]),i.ECI=new i(7,[0,0,0]),s.Mode=i})(a.QrSegment||(a.QrSegment={}))})(xs||(xs={}));var mi=xs;/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/var lS={L:mi.QrCode.Ecc.LOW,M:mi.QrCode.Ecc.MEDIUM,Q:mi.QrCode.Ecc.QUARTILE,H:mi.QrCode.Ecc.HIGH},Sg=128,jg="L",wg="#FFFFFF",Cg="#000000",Ng=!1,Eg=1,sS=4,iS=0,oS=.1;function Tg(a,s=0){const i=[];return a.forEach(function(r,d){let f=null;r.forEach(function(m,_){if(!m&&f!==null){i.push(`M${f+s} ${d+s}h${_-f}v1H${f+s}z`),f=null;return}if(_===r.length-1){if(!m)return;f===null?i.push(`M${_+s},${d+s} h1v1H${_+s}z`):i.push(`M${f+s},${d+s} h${_+1-f}v1H${f+s}z`);return}m&&f===null&&(f=_)})}),i.join("")}function Rg(a,s){return a.slice().map((i,r)=>r<s.y||r>=s.y+s.h?i:i.map((d,f)=>f<s.x||f>=s.x+s.w?d:!1))}function rS(a,s,i,r){if(r==null)return null;const d=a.length+i*2,f=Math.floor(s*oS),m=d/s,_=(r.width||f)*m,h=(r.height||f)*m,p=r.x==null?a.length/2-_/2:r.x*m,v=r.y==null?a.length/2-h/2:r.y*m,y=r.opacity==null?1:r.opacity;let x=null;if(r.excavate){let w=Math.floor(p),C=Math.floor(v),N=Math.ceil(_+p-w),A=Math.ceil(h+v-C);x={x:w,y:C,w:N,h:A}}const j=r.crossOrigin;return{x:p,y:v,h,w:_,excavation:x,opacity:y,crossOrigin:j}}function cS(a,s){return s!=null?Math.max(Math.floor(s),0):a?sS:iS}function kg({value:a,level:s,minVersion:i,includeMargin:r,marginSize:d,imageSettings:f,size:m,boostLevel:_}){let h=Tt.useMemo(()=>{const w=(Array.isArray(a)?a:[a]).reduce((C,N)=>(C.push(...mi.QrSegment.makeSegments(N)),C),[]);return mi.QrCode.encodeSegments(w,lS[s],i,void 0,void 0,_)},[a,s,i,_]);const{cells:p,margin:v,numCells:y,calculatedImageSettings:x}=Tt.useMemo(()=>{let j=h.getModules();const w=cS(r,d),C=j.length+w*2,N=rS(j,m,w,f);return{cells:j,margin:w,numCells:C,calculatedImageSettings:N}},[h,m,f,r,d]);return{qrcode:h,margin:v,cells:p,numCells:y,calculatedImageSettings:x}}var uS=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),dS=Tt.forwardRef(function(s,i){const r=s,{value:d,size:f=Sg,level:m=jg,bgColor:_=wg,fgColor:h=Cg,includeMargin:p=Ng,minVersion:v=Eg,boostLevel:y,marginSize:x,imageSettings:j}=r,C=d2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:N}=C,A=d2(C,["style"]),z=j==null?void 0:j.src,O=Tt.useRef(null),q=Tt.useRef(null),Y=Tt.useCallback(he=>{O.current=he,typeof i=="function"?i(he):i&&(i.current=he)},[i]),[X,U]=Tt.useState(!1),{margin:P,cells:W,numCells:ce,calculatedImageSettings:ie}=kg({value:d,level:m,minVersion:v,boostLevel:y,includeMargin:p,marginSize:x,imageSettings:j,size:f});Tt.useEffect(()=>{if(O.current!=null){const he=O.current,ne=he.getContext("2d");if(!ne)return;let H=W;const I=q.current,ae=ie!=null&&I!==null&&I.complete&&I.naturalHeight!==0&&I.naturalWidth!==0;ae&&ie.excavation!=null&&(H=Rg(W,ie.excavation));const fe=window.devicePixelRatio||1;he.height=he.width=f*fe;const _e=f/ce*fe;ne.scale(_e,_e),ne.fillStyle=_,ne.fillRect(0,0,ce,ce),ne.fillStyle=h,uS?ne.fill(new Path2D(Tg(H,P))):W.forEach(function(R,V){R.forEach(function(K,J){K&&ne.fillRect(J+P,V+P,1,1)})}),ie&&(ne.globalAlpha=ie.opacity),ae&&ne.drawImage(I,ie.x+P,ie.y+P,ie.w,ie.h)}}),Tt.useEffect(()=>{U(!1)},[z]);const ue=u2({height:f,width:f},N);let te=null;return z!=null&&(te=Tt.createElement("img",{src:z,key:z,style:{display:"none"},onLoad:()=>{U(!0)},ref:q,crossOrigin:ie==null?void 0:ie.crossOrigin})),Tt.createElement(Tt.Fragment,null,Tt.createElement("canvas",u2({style:ue,height:f,width:f,ref:Y,role:"img"},A)),te)});dS.displayName="QRCodeCanvas";var Ag=Tt.forwardRef(function(s,i){const r=s,{value:d,size:f=Sg,level:m=jg,bgColor:_=wg,fgColor:h=Cg,includeMargin:p=Ng,minVersion:v=Eg,boostLevel:y,title:x,marginSize:j,imageSettings:w}=r,C=d2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:N,cells:A,numCells:z,calculatedImageSettings:O}=kg({value:d,level:m,minVersion:v,boostLevel:y,includeMargin:p,marginSize:j,imageSettings:w,size:f});let q=A,Y=null;w!=null&&O!=null&&(O.excavation!=null&&(q=Rg(A,O.excavation)),Y=Tt.createElement("image",{href:w.src,height:O.h,width:O.w,x:O.x+N,y:O.y+N,preserveAspectRatio:"none",opacity:O.opacity,crossOrigin:O.crossOrigin}));const X=Tg(q,N);return Tt.createElement("svg",u2({height:f,width:f,viewBox:`0 0 ${z} ${z}`,ref:i,role:"img"},C),!!x&&Tt.createElement("title",null,x),Tt.createElement("path",{fill:_,d:`M0,0 h${z}v${z}H0z`,shapeRendering:"crispEdges"}),Tt.createElement("path",{fill:h,d:X,shapeRendering:"crispEdges"}),Y)});Ag.displayName="QRCodeSVG";const fS="_overlay_1nlll_6",hS="_dialog_1nlll_18",mS="_header_1nlll_27",pS="_title_1nlll_34",gS="_closeBtn_1nlll_40",_S="_body_1nlll_55",vS="_qrWrap_1nlll_62",yS="_label_1nlll_71",bS="_fieldRow_1nlll_77",xS="_addressInput_1nlll_82",SS="_copyBtn_1nlll_101",jS="_copyBtnDone_1nlll_127",wS="_skeleton_1nlll_132",CS="_error_1nlll_145",dn={overlay:fS,dialog:hS,header:mS,title:pS,closeBtn:gS,body:_S,qrWrap:vS,label:yS,fieldRow:bS,addressInput:xS,copyBtn:SS,copyBtnDone:jS,skeleton:wS,error:CS},NS={ETH:"Ethereum",BSC:"BSC Smart Chain",BTC:"Bitcoin",TRX:"Tron",SOL:"Solana"};function ES({open:a,onClose:s,chain:i}){const{data:r,isLoading:d,isError:f}=Jc(),[m,_]=S.useState(!1);if(S.useEffect(()=>{if(!a)return;function x(j){j.key==="Escape"&&s()}return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[a,s]),S.useEffect(()=>{a||_(!1)},[a]),!a)return null;const h=r==null?void 0:r.find(x=>x.chain===i),p=(h==null?void 0:h.address)??"";function v(){p&&navigator.clipboard.writeText(p).then(()=>{_(!0),setTimeout(()=>_(!1),2e3)})}function y(x){x.target===x.currentTarget&&s()}return o.jsx("div",{className:dn.overlay,onMouseDown:y,children:o.jsxs("div",{className:dn.dialog,children:[o.jsxs("div",{className:dn.header,children:[o.jsxs("span",{className:dn.title,children:["Получить ",NS[i]]}),o.jsx("button",{className:dn.closeBtn,type:"button",onClick:s,"aria-label":"Закрыть",children:"✕"})]}),o.jsxs("div",{className:dn.body,children:[d&&o.jsx("div",{className:dn.skeleton}),f&&o.jsx("p",{className:dn.error,children:"Не удалось загрузить адрес. Попробуйте позже."}),!d&&!f&&o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:dn.label,children:["Ваш ",i,"-адрес"]}),o.jsxs("div",{className:dn.fieldRow,children:[o.jsx("input",{className:dn.addressInput,type:"text",readOnly:!0,value:p,onFocus:x=>x.target.select()}),o.jsx("button",{className:`${dn.copyBtn} ${m?dn.copyBtnDone:""}`,type:"button",onClick:v,disabled:!p,children:m?"Скопировано!":"Копировать"})]}),p&&o.jsx("div",{className:dn.qrWrap,children:o.jsx(Ag,{value:p,size:196,level:"M",bgColor:"#ffffff",fgColor:"#000000",marginSize:2})})]})]})]})})}const TS="_wrap_uur6k_1",RS="_loading_uur6k_9",kS="_table_uur6k_14",AS="_thStar_uur6k_44",MS="_groupHeader_uur6k_49",OS="_groupHeaderInner_uur6k_58",LS="_groupLabel_uur6k_66",DS="_groupIcon_uur6k_77",zS="_groupTotal_uur6k_83",BS="_mobileGroupHeader_uur6k_90",US="_right_uur6k_99",$S="_center_uur6k_103",HS="_btnGroup_uur6k_108",qS="_star_uur6k_114",FS="_starOn_uur6k_129",GS="_tokId_uur6k_133",VS="_tokLogo_uur6k_139",QS="_price_uur6k_174",YS="_balCol_uur6k_201",PS="_sendBtn_uur6k_214",IS="_receiveBtn_uur6k_237",XS="_noFont_uur6k_260",KS="_mobileList_uur6k_265",ZS="_card_uur6k_269",WS="_cardInfo_uur6k_281",JS="_cardTop_uur6k_286",ej="_cardTicker_uur6k_293",tj="_cardName_uur6k_299",nj="_cardBalCrypto_uur6k_305",aj="_cardBot_uur6k_312",lj="_cardPrice_uur6k_318",sj="_cardBalUsd_uur6k_330",ij="_mobileActions_uur6k_351",ve={wrap:TS,loading:RS,table:kS,thStar:AS,groupHeader:MS,groupHeaderInner:OS,groupLabel:LS,groupIcon:DS,groupTotal:zS,mobileGroupHeader:BS,right:US,center:$S,btnGroup:HS,star:qS,starOn:FS,tokId:GS,tokLogo:VS,price:QS,balCol:YS,sendBtn:PS,receiveBtn:IS,noFont:XS,mobileList:KS,card:ZS,cardInfo:WS,cardTop:JS,cardTicker:ej,cardName:tj,cardBalCrypto:nj,cardBot:aj,cardPrice:lj,cardBalUsd:sj,mobileActions:ij},jp={BTC:{label:"Bitcoin",icon:st.BTC},ETH:{label:"Ethereum",icon:st.ETH},SOL:{label:"Solana",icon:st.SOL},TRX:{label:"Tron",icon:st.TRX},BSC:{label:"BNB Chain",icon:st.BNB}};function wp(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function oj(a){const s=[],i=new Map;for(const r of a){const d=r.chain??"ETH";let f=i.get(d);f||(f={chain:d,rows:[],totalUsd:0},i.set(d,f),s.push(f)),f.rows.push(r),f.totalUsd+=r.usdValue??0}return s}function Cp(a){return a.id??a.ticker}function Mg({rows:a,isLoading:s,fallbackChain:i="ETH",groupByChain:r=!1}){const[d,f]=S.useState({}),[m,_]=S.useState({open:!1,network:"ETH"}),[h,p]=S.useState({open:!1,chain:"ETH"});function v(U){return U.chain??b9[U.ticker]??i}function y(U){_({open:!0,network:v(U)})}function x(){_(U=>({...U,open:!1}))}function j(U){p({open:!0,chain:v(U)})}function w(){p(U=>({...U,open:!1}))}function C(U){f(P=>({...P,[U]:!P[U]}))}const N=o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4A6DFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M7 17L17 7M17 7H7M17 7v10"})}),A=o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#00C48C",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M17 7L7 17M7 17H17M7 17V7"})});function z(U){const P=Cp(U);return o.jsxs("tr",{children:[o.jsx("td",{children:o.jsx("button",{className:`${ve.star} ${d[P]?ve.starOn:""}`,onClick:()=>C(P),type:"button","aria-label":d[P]?"Убрать из избранного":"В избранное",children:"★"})}),o.jsx("td",{children:o.jsxs("div",{className:ve.tokId,children:[o.jsx("div",{className:ve.tokLogo,style:{background:U.color},children:U.logo?o.jsx("img",{src:U.logo,alt:U.ticker,className:""}):U.ticker[0]}),o.jsxs("div",{className:ve.balCol,children:[o.jsx("b",{className:ve.cardTicker,children:U.ticker}),o.jsx("span",{className:ve.noFont,children:U.name})]})]})}),o.jsx("td",{className:ve.right,children:o.jsx("span",{className:ve.price,children:U.price})}),o.jsx("td",{className:ve.right,children:o.jsxs("div",{className:ve.balCol,children:[o.jsx("b",{children:U.bal}),o.jsx("span",{children:U.usd})]})}),o.jsx("td",{className:ve.center,children:o.jsxs("div",{className:ve.btnGroup,children:[o.jsxs("button",{className:ve.receiveBtn,type:"button",onClick:W=>{W.stopPropagation(),j(U)},children:[A,"Получить"]}),o.jsxs("button",{className:ve.sendBtn,type:"button",onClick:W=>{W.stopPropagation(),y(U)},children:[N,"Отправить"]})]})})]},P)}function O(U){const P=Cp(U);return o.jsxs("div",{className:ve.card,children:[o.jsx("button",{className:`${ve.star} ${d[P]?ve.starOn:""}`,onClick:()=>C(P),type:"button","aria-label":d[P]?"Убрать из избранного":"В избранное",children:"★"}),o.jsx("div",{className:ve.tokLogo,style:{background:U.color},children:U.logo?o.jsx("img",{src:U.logo,alt:U.ticker,className:""}):U.ticker[0]}),o.jsxs("div",{className:ve.cardInfo,children:[o.jsxs("div",{className:ve.cardTop,children:[o.jsxs("div",{children:[o.jsx("span",{className:ve.cardTicker,children:U.ticker}),o.jsx("span",{className:ve.cardName,children:U.name})]}),o.jsx("span",{className:ve.cardBalCrypto,children:U.bal})]}),o.jsxs("div",{className:ve.cardBot,children:[o.jsx("span",{className:ve.cardPrice,children:U.price}),o.jsx("span",{className:ve.cardBalUsd,children:U.usd})]})]})]},P)}function q(U){const P=jp[U.chain];return o.jsx("tr",{className:ve.groupHeader,children:o.jsx("td",{colSpan:5,children:o.jsxs("div",{className:ve.groupHeaderInner,children:[o.jsxs("span",{className:ve.groupLabel,children:[o.jsx("img",{src:P.icon,alt:"",className:ve.groupIcon}),P.label]}),o.jsx("span",{className:ve.groupTotal,children:wp(U.totalUsd)})]})})},`h-${U.chain}`)}function Y(U){const P=jp[U.chain];return o.jsxs("div",{className:ve.mobileGroupHeader,children:[o.jsxs("span",{className:ve.groupLabel,children:[o.jsx("img",{src:P.icon,alt:"",className:ve.groupIcon}),P.label]}),o.jsx("span",{className:ve.groupTotal,children:wp(U.totalUsd)})]},`mh-${U.chain}`)}const X=r?oj(a):null;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:`${ve.wrap} ${s?ve.loading:""}`,children:[o.jsxs("table",{className:ve.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:ve.thStar,children:"☆"}),o.jsx("th",{children:"Токены"}),o.jsx("th",{className:ve.right,children:"Цена"}),o.jsx("th",{className:ve.right,children:"Баланс"}),o.jsx("th",{className:ve.center})]})}),o.jsx("tbody",{children:X?X.map(U=>o.jsxs(S.Fragment,{children:[q(U),U.rows.map(z)]},U.chain)):a.map(z)})]}),o.jsx("div",{className:ve.mobileList,children:X?X.map(U=>o.jsxs(S.Fragment,{children:[Y(U),U.rows.map(O)]},U.chain)):a.map(O)})]}),o.jsxs("div",{className:ve.mobileActions,children:[o.jsxs("button",{className:ve.receiveBtn,type:"button",onClick:()=>a[0]&&j(a[0]),children:[A,"Получить"]}),o.jsxs("button",{className:ve.sendBtn,type:"button",onClick:()=>a[0]&&y(a[0]),children:[N,"Отправить"]})]}),o.jsx(nS,{open:m.open,onClose:x,network:m.network,tokens:a}),o.jsx(ES,{open:h.open,onClose:w,chain:h.chain})]})}function rj({chain:a}){const{rows:s,isLoading:i}=g9(a);return o.jsx(Mg,{rows:s,isLoading:i,fallbackChain:a})}function cj(){const{rows:a,isLoading:s}=_9();return o.jsx(Mg,{rows:a,isLoading:s,groupByChain:!0})}const uj="_nav_ip34n_1",dj="_logo_ip34n_11",fj="_ticker_ip34n_16",hj="_tick_ip34n_16",mj="_accountWrapper_ip34n_42",pj="_account_ip34n_42",gj="_dropdown_ip34n_56",_j="_dropdownItem_ip34n_70",vj="_danger_ip34n_89",yj="_avatar_ip34n_93",Qt={nav:uj,logo:dj,ticker:fj,tick:hj,accountWrapper:mj,account:pj,dropdown:gj,dropdownItem:_j,danger:vj,avatar:yj},Np=["BTC","ETH","SOL"],bj=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"";function xj(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function tu(){var x;const[a,s]=S.useState(!1),[i,r]=S.useState(!1),d=S.useRef(null),f=Mn(),m=en(),{data:_}=ta(),{data:h}=C7(Np),p=_?[_.first_name,_.middle_name].filter(Boolean).map(bj).join(" "):"",{mutate:v}=_t({mutationFn:F8,onSuccess:()=>{wt.clear(),m.clear(),m.setQueryData(Zc,null),f(re.HOME)},onError:()=>r(!0)});S.useEffect(()=>{function j(w){d.current&&!d.current.contains(w.target)&&s(!1)}return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]);function y(){v(),s(!1)}return o.jsxs(o.Fragment,{children:[o.jsxs("nav",{className:Qt.nav,children:[o.jsx("a",{href:"/",className:Qt.logo,children:o.jsx("img",{src:pa,alt:"ЭКСА"})}),o.jsx("div",{className:Qt.ticker,children:Np.map(j=>{var w;return o.jsxs("div",{className:Qt.tick,children:[o.jsx("b",{children:j}),o.jsx("span",{children:xj((w=h==null?void 0:h[j])==null?void 0:w.usd)})]},j)})}),o.jsxs("div",{className:Qt.accountWrapper,ref:d,children:[o.jsxs("button",{className:Qt.account,onClick:()=>s(j=>!j),children:[_!=null&&_.avatar_link?o.jsx("img",{src:_.avatar_link,alt:"",className:Qt.avatar}):o.jsx("div",{className:Qt.avatar}),o.jsx("span",{children:p||((x=_==null?void 0:_.legal_entity)==null?void 0:x.name)||"Test account"})]}),a&&o.jsxs("div",{className:Qt.dropdown,children:[o.jsx(Ft,{to:re.PROFILE,className:Qt.dropdownItem,onClick:()=>s(!1),children:"Личный кабинет"}),o.jsx(Ft,{to:re.WALLET,className:Qt.dropdownItem,onClick:()=>s(!1),children:"Кошелёк"}),o.jsx(Ft,{to:re.STAKING,className:Qt.dropdownItem,onClick:()=>s(!1),children:"Стейкинг"}),o.jsx(Ft,{to:re.POOLS,className:Qt.dropdownItem,onClick:()=>s(!1),children:"Пулы"}),o.jsx(Ft,{to:re.TRANSACTIONS,className:Qt.dropdownItem,onClick:()=>s(!1),children:"Транзакции"}),o.jsx("button",{className:`${Qt.dropdownItem} ${Qt.danger}`,onClick:y,children:"Выйти"})]})]})]}),i&&o.jsx(Ml,{status:"error",message:"Произошла ошибка сервера",onClose:()=>r(!1)})]})}const Sj="_tabs_1ne0a_1",jj="_tab_1ne0a_1",wj="_active_1ne0a_31",Cj="_icon_1ne0a_37",ns={tabs:Sj,tab:jj,active:wj,icon:Cj},Nj=[{chain:"BTC",label:"BTC",icon:st.BTC},{chain:"ETH",label:"ETH",icon:st.ETH},{chain:"SOL",label:"SOL",icon:st.SOL},{chain:"TRX",label:"TRX",icon:st.TRX},{chain:"BSC",label:"BSC",icon:st.BNB}],Ej=o.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("ellipse",{cx:"12",cy:"6",rx:"8",ry:"3"}),o.jsx("path",{d:"M4 6v6c0 1.66 3.58 3 8 3s8-1.34 8-3V6"}),o.jsx("path",{d:"M4 12v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6"})]});function Tj(){return o.jsxs("div",{className:ns.tabs,children:[o.jsxs(Yd,{to:"/wallet",end:!0,className:({isActive:a})=>`${ns.tab} ${a?ns.active:""}`,children:[o.jsx("span",{className:ns.icon,children:Ej}),o.jsx("span",{children:"Все монеты"})]}),Nj.map(a=>o.jsxs(Yd,{to:`/wallet/${a.chain.toLowerCase()}`,className:({isActive:s})=>`${ns.tab} ${s?ns.active:""}`,children:[o.jsx("img",{src:a.icon,alt:a.label,className:ns.icon}),o.jsx("span",{children:a.label})]},a.chain))]})}const Rj="_page_10fz2_1",kj="_main_10fz2_8",Aj="_glow_10fz2_17",Mj="_error_10fz2_29",Oj="_noWallet_10fz2_38",Lo={page:Rj,main:kj,glow:Aj,error:Mj,noWallet:Oj};function Ep(){var x;const{data:a,isLoading:s,isError:i}=ta(),{error:r,isLoading:d}=eu(),{mutate:f,isPending:m}=A7(),_=Mn(),{chain:h}=c4(),p=(x=r==null?void 0:r.error)==null?void 0:x.includes("No wallets");if(i)return o.jsx("div",{className:Lo.error,children:"Произошла ошибка. Попробуйте обновить страницу."});if(a&&!a.kyc_verified)return o.jsx(Ic,{to:re.KYC,replace:!0});const v=h==null?void 0:h.toUpperCase(),y=v&&O2.includes(v)?v:void 0;return o.jsxs("div",{className:Lo.page,children:[o.jsx(tu,{}),o.jsxs("main",{className:Lo.main,children:[o.jsx("div",{className:Lo.glow}),s||d?o.jsx(Kc,{fullscreen:!0,label:"Загрузка"}):p?o.jsxs("div",{className:Lo.noWallet,children:[o.jsx("p",{children:"У вас пока нет кошелька. Создайте его, чтобы начать."}),o.jsx(Jt,{variant:"outline",onClick:()=>f(void 0,{onSuccess:()=>_(re.SEED_PHRASE)}),disabled:m,children:m?"Создание...":"Создать кошелёк"})]}):o.jsxs(o.Fragment,{children:[o.jsx(Q7,{}),o.jsx(Tj,{}),y?o.jsx(rj,{chain:y}):o.jsx(cj,{})]})]})]})}const Og=st.BTC,Lg=st.ETH,Dg=st.SOL,zg=st.TRX,Bg=st.ARB,f2={BTC:{symbol:"BTC",letter:"₿",logo:Og,color:"#F7931A",network:"BITCOIN",balance:0,usdRate:67412,decimals:8},ETH:{symbol:"ETH",letter:"E",logo:Lg,color:"#627EEA",network:"ETHEREUM",balance:0,usdRate:3521,decimals:18},SOL:{symbol:"SOL",letter:"S",logo:Dg,color:"#9945FF",network:"SOLANA",balance:.994,usdRate:163.84,decimals:9},TRX:{symbol:"TRX",letter:"T",logo:zg,color:"#FF060A",network:"TRON",balance:0,usdRate:.12,decimals:6},ARB:{symbol:"ARB",letter:"A",logo:Bg,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}},Lj=Object.values(f2),h2={BTC:{letter:"₿",logo:Og,color:"#F7931A"},ETH:{letter:"E",logo:Lg,color:"#627EEA"},BSC:{letter:"B",color:"#F3BA2F"},SOL:{letter:"S",logo:Dg,color:"#9945FF"},TRX:{letter:"T",logo:zg,color:"#FF060A"},ARB:{letter:"A",logo:Bg,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"}},Dj={ETH:"ETH",BSC:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function Ug(a){const s=[],i=Dj[a.chain]??a.chain,r=h2[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:a.chain,balance:parseFloat(a.native.formatted),usdRate:a.native.usdPrice,decimals:a.native.decimals});for(const[d,f]of Object.entries(a.tokens??{})){const m=h2[d];s.push({symbol:d,letter:(m==null?void 0:m.letter)??d[0],color:(m==null?void 0:m.color)??"#888",logo:m==null?void 0:m.logo,network:a.chain,balance:parseFloat(f.formatted),usdRate:f.usdPrice,decimals:f.decimals})}return s}const Tp=82.2578;function $g(){const[a,s]=S.useState("0"),[i,r]=S.useState(f2.SOL),[d,f]=S.useState(f2.USDC),[m,_]=S.useState(!1),h=parseFloat(a)||0,p=(h*Tp).toFixed(4),v=(h*i.usdRate).toFixed(2),y=(h*Tp*d.usdRate).toFixed(2);function x(N){s(N)}function j(N){s((i.balance*N/100).toFixed(4))}function w(){r(d),f(i)}function C(){_(!0),setTimeout(()=>_(!1),400)}return{fromAmount:a,toAmount:p,fromUsd:v,toUsd:y,fromToken:i,toToken:d,isRefreshing:m,setFromAmount:x,setPercent:j,swapTokens:w,refreshRate:C,setFromToken:r,setToToken:f}}const zj="_wrap_18yiu_1",Bj="_trigger_18yiu_6",Uj="_name_18yiu_22",$j="_chevron_18yiu_29",Hj="_chevronOpen_18yiu_37",qj="_dropdown_18yiu_41",Fj="_dropdownWrapper_18yiu_47",Gj="_option_18yiu_60",Vj="_optionActive_18yiu_78",Qj="_optionInfo_18yiu_82",Yj="_optionSymbol_18yiu_90",Pj="_optionNetwork_18yiu_96",Ij="_check_18yiu_103",Xj="_triggerCompact_18yiu_110",Kj="_nameCompact_18yiu_116",Kt={wrap:zj,trigger:Bj,name:Uj,chevron:$j,chevronOpen:Hj,dropdown:qj,dropdownWrapper:Fj,option:Gj,optionActive:Vj,optionInfo:Qj,optionSymbol:Yj,optionNetwork:Pj,check:Ij,triggerCompact:Xj,nameCompact:Kj};function Rp({value:a,options:s,onChange:i,compact:r=!1}){const[d,f]=S.useState(!1),m=S.useRef(null);S.useEffect(()=>{function h(p){m.current&&!m.current.contains(p.target)&&f(!1)}return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);function _(h){i(h),f(!1)}return o.jsxs("div",{className:Kt.wrap,ref:m,children:[o.jsxs("button",{className:`${Kt.trigger} ${r?Kt.triggerCompact:""}`,onClick:()=>f(h=>!h),children:[o.jsx(qo,{letter:a.letter,color:a.color,logo:a.logo,size:r?24:40}),o.jsx("span",{className:`${Kt.name} ${r?Kt.nameCompact:""}`,children:a.symbol}),o.jsx("span",{className:`${Kt.chevron} ${d?Kt.chevronOpen:""}`,children:"▾"})]}),d&&o.jsx("div",{className:Kt.dropdownWrapper,children:o.jsx("div",{className:Kt.dropdown,children:s.map(h=>o.jsxs("button",{className:`${Kt.option} ${h.symbol===a.symbol?Kt.optionActive:""}`,onClick:()=>_(h),children:[o.jsx(qo,{letter:h.letter,color:h.color,logo:h.logo,size:32}),o.jsxs("div",{className:Kt.optionInfo,children:[o.jsx("span",{className:Kt.optionSymbol,children:h.symbol}),o.jsx("span",{className:Kt.optionNetwork,children:h.network})]}),h.symbol===a.symbol&&o.jsx("span",{className:Kt.check,children:"✓"})]},h.symbol))})})]})}const Zj="_wrapper_19brp_1",Wj="_pillsOuter_19brp_8",Jj="_card_19brp_13",ew="_top_19brp_20",tw="_label_19brp_33",nw="_networkPills_19brp_54",aw="_networkBtn_19brp_60",lw="_networkBtnActive_19brp_79",sw="_pillsInner_19brp_85",iw="_pill_19brp_8",ow="_selectTop_19brp_109",rw="_selectMid_19brp_113",cw="_mid_19brp_118",uw="_input_19brp_126",dw="_display_19brp_142",fw="_int_19brp_151",hw="_dec_19brp_156",mw="_bottom_19brp_161",pw="_usd_19brp_167",gw="_balance_19brp_176",_w="_max_19brp_184",gt={wrapper:Zj,pillsOuter:Wj,card:Jj,top:ew,label:tw,networkPills:nw,networkBtn:aw,networkBtnActive:lw,pillsInner:sw,pill:iw,selectTop:ow,selectMid:rw,mid:cw,input:uw,display:dw,int:fw,dec:hw,bottom:mw,usd:pw,balance:gw,max:_w},vw=["ETH","BSC","TRX","SOL"],yw=[25,50,100];function Qc({mode:a,token:s,tokenOptions:i,amount:r,usd:d,onTokenChange:f,onAmountChange:m,onSetPercent:_,selectedNetwork:h,onNetworkChange:p,hideNetworkSelect:v}){const[y,x]=it(r,8).split("."),j=_&&o.jsx(o.Fragment,{children:yw.map(w=>o.jsxs("button",{className:gt.pill,onClick:()=>_(w),children:[w,"%"]},w))});return o.jsxs("div",{className:gt.wrapper,children:[a==="from"&&j&&o.jsx("div",{className:gt.pillsOuter,children:j}),o.jsxs("div",{className:gt.card,children:[o.jsxs("div",{className:gt.top,children:[o.jsx("div",{className:gt.label,children:a==="from"&&!v&&o.jsx("div",{className:gt.networkPills,children:vw.map(w=>o.jsx("button",{className:`${gt.networkBtn} ${w===h?gt.networkBtnActive:""}`,onClick:()=>p==null?void 0:p(w),children:w},w))})}),a==="from"&&j&&o.jsx("div",{className:gt.pillsInner,children:j}),o.jsx("div",{className:gt.selectTop,children:o.jsx(Rp,{value:s,options:i,onChange:f,compact:!0})})]}),o.jsxs("div",{className:gt.mid,children:[a==="from"?o.jsx("input",{className:gt.input,type:"text",value:r,onChange:w=>{const C=w.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(C)||C==="")&&(m==null||m(C))},placeholder:"0"}):o.jsxs("div",{className:gt.display,children:[o.jsx("span",{className:gt.int,children:y}),x&&o.jsxs("span",{className:gt.dec,children:[".",x]})]}),o.jsx("div",{className:gt.selectMid,children:o.jsx(Rp,{value:s,options:i,onChange:f})})]}),o.jsxs("div",{className:gt.bottom,children:[d&&o.jsxs("span",{className:gt.usd,children:["≈ $",d]}),o.jsxs("span",{className:gt.balance,children:[o.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-secondary)",strokeWidth:"2",children:[o.jsx("rect",{x:"2",y:"6",width:"20",height:"14",rx:"3"}),o.jsx("path",{d:"M6 6V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2"})]}),it(s.balance,8),a==="from"&&_&&o.jsx("button",{className:gt.max,onClick:()=>_(100),children:"МАКС"})]})]})]})]})}const bw="_wrap_wqzoz_1",xw="_line_wqzoz_11",Sw="_circle_wqzoz_19",Ad={wrap:bw,line:xw,circle:Sw};function jw({onClick:a}){const[s,i]=S.useState(!1);function r(){i(!0),setTimeout(()=>i(!1),300),a()}return o.jsxs("div",{className:Ad.wrap,children:[o.jsx("div",{className:Ad.line}),o.jsx("button",{className:Ad.circle,style:{transform:s?"rotate(180deg)":"rotate(0deg)"},onClick:r,"aria-label":"Поменять токены",children:"⇅"})]})}const ww="_panel_16d4z_1",Cw="_row_16d4z_10",Nw="_label_16d4z_22",Ew="_value_16d4z_30",Tw="_link_16d4z_36",Do={panel:ww,row:Cw,label:Nw,value:Ew,link:Tw};function Rw({gasFee:a,serviceFee:s}){const i=[{label:"ПРОВАЙДЕР",value:"ЛУЧШИЙ",link:!1},{label:"СКОЛЬЖЕНИЕ",value:"АВТО (0.5%)",link:!0},{label:"СЕТЕВОЙ СБОР",value:a?`$${a}`:"—",link:!1},{label:"СЕРВИСНЫЙ СБОР",value:s?`$${s}`:"—",link:!1}];return o.jsx("div",{className:Do.panel,children:i.map(({label:r,value:d,link:f})=>o.jsxs("div",{className:Do.row,children:[o.jsx("span",{className:Do.label,children:r}),o.jsx("span",{className:`${Do.value} ${f?Do.link:""}`,children:d})]},r))})}const kw="_overlay_2rqh7_1",Aw="_card_2rqh7_12",Mw="_header_2rqh7_24",Ow="_title_2rqh7_30",Lw="_closeBtn_2rqh7_36",Dw="_flow_2rqh7_51",zw="_token_2rqh7_57",Bw="_tokenLabel_2rqh7_67",Uw="_tokenAmount_2rqh7_75",$w="_tokenUsd_2rqh7_81",Hw="_arrow_2rqh7_86",qw="_details_2rqh7_93",Fw="_row_2rqh7_99",Gw="_rowLabel_2rqh7_105",Vw="_rowValue_2rqh7_110",Qw="_impact_2rqh7_116",Yw="_warning_2rqh7_120",Pw="_confirmBtn_2rqh7_132",Ie={overlay:kw,card:Aw,header:Mw,title:Ow,closeBtn:Lw,flow:Dw,token:zw,tokenLabel:Bw,tokenAmount:Uw,tokenUsd:$w,arrow:Hw,details:qw,row:Fw,rowLabel:Gw,rowValue:Vw,impact:Qw,warning:Yw,confirmBtn:Pw};function Iw({data:a,insufficientBalance:s,onConfirm:i,onClose:r}){const{details:d,fees:f}=a,{currencyIn:m,currencyOut:_,totalImpact:h,rate:p}=d,v=parseFloat(h.percent),y=parseFloat(p).toFixed(4);return o.jsx("div",{className:Ie.overlay,onClick:r,children:o.jsxs("div",{className:Ie.card,onClick:x=>x.stopPropagation(),children:[o.jsxs("div",{className:Ie.header,children:[o.jsx("span",{className:Ie.title,children:"Подтвердить своп"}),o.jsx("button",{className:Ie.closeBtn,onClick:r,children:"×"})]}),o.jsxs("div",{className:Ie.flow,children:[o.jsxs("div",{className:Ie.token,children:[o.jsx("span",{className:Ie.tokenLabel,children:"Отдаёте"}),o.jsxs("span",{className:Ie.tokenAmount,children:[m.amountFormatted," ",m.currency.symbol]}),o.jsxs("span",{className:Ie.tokenUsd,children:["≈ $",m.amountUsd]})]}),o.jsx("div",{className:Ie.arrow,children:"↓"}),o.jsxs("div",{className:Ie.token,children:[o.jsx("span",{className:Ie.tokenLabel,children:"Получаете"}),o.jsxs("span",{className:Ie.tokenAmount,children:[_.amountFormatted," ",_.currency.symbol]}),o.jsxs("span",{className:Ie.tokenUsd,children:["≈ $",_.amountUsd]})]})]}),o.jsxs("div",{className:Ie.details,children:[o.jsxs("div",{className:Ie.row,children:[o.jsx("span",{className:Ie.rowLabel,children:"Курс"}),o.jsxs("span",{className:Ie.rowValue,children:["1 ",m.currency.symbol," = ",y," ",_.currency.symbol]})]}),o.jsxs("div",{className:Ie.row,children:[o.jsx("span",{className:Ie.rowLabel,children:"Комиссия сети"}),o.jsxs("span",{className:Ie.rowValue,children:["$",f.gas.amountUsd]})]}),o.jsxs("div",{className:Ie.row,children:[o.jsx("span",{className:Ie.rowLabel,children:"Влияние на цену"}),o.jsxs("span",{className:`${Ie.rowValue} ${v<0?Ie.impact:""}`,children:[h.percent,"%"]})]})]}),s&&o.jsx("p",{className:Ie.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),o.jsx("button",{className:Ie.confirmBtn,onClick:i,children:"Подтвердить"})]})})}const Xw="_overlay_1rpvx_1",Kw="_card_1rpvx_12",Zw="_header_1rpvx_24",Ww="_title_1rpvx_30",Jw="_closeBtn_1rpvx_36",eC="_flow_1rpvx_51",tC="_token_1rpvx_57",nC="_tokenLabel_1rpvx_67",aC="_tokenAmount_1rpvx_75",lC="_minOut_1rpvx_81",sC="_arrow_1rpvx_86",iC="_details_1rpvx_93",oC="_row_1rpvx_99",rC="_rowLabel_1rpvx_105",cC="_rowValue_1rpvx_110",uC="_warning_1rpvx_116",dC="_confirmBtn_1rpvx_128",jt={overlay:Xw,card:Kw,header:Zw,title:Ww,closeBtn:Jw,flow:eC,token:tC,tokenLabel:nC,tokenAmount:aC,minOut:lC,arrow:sC,details:iC,row:oC,rowLabel:rC,rowValue:cC,warning:uC,confirmBtn:dC};function fC({quote:a,fromSymbol:s,toSymbol:i,amountHuman:r,insufficientBalance:d,onConfirm:f,onClose:m}){const{expectedOutFormatted:_,minOutFormatted:h,fees:p}=a;return o.jsx("div",{className:jt.overlay,onClick:m,children:o.jsxs("div",{className:jt.card,onClick:v=>v.stopPropagation(),children:[o.jsxs("div",{className:jt.header,children:[o.jsx("span",{className:jt.title,children:"Подтвердить своп"}),o.jsx("button",{className:jt.closeBtn,onClick:m,children:"×"})]}),o.jsxs("div",{className:jt.flow,children:[o.jsxs("div",{className:jt.token,children:[o.jsx("span",{className:jt.tokenLabel,children:"Отдаёте"}),o.jsxs("span",{className:jt.tokenAmount,children:[r," ",s]})]}),o.jsx("div",{className:jt.arrow,children:"↓"}),o.jsxs("div",{className:jt.token,children:[o.jsx("span",{className:jt.tokenLabel,children:"Получаете"}),o.jsxs("span",{className:jt.tokenAmount,children:[_," ",i]}),o.jsxs("span",{className:jt.minOut,children:["Минимум: ",h," ",i]})]})]}),o.jsx("div",{className:jt.details,children:o.jsxs("div",{className:jt.row,children:[o.jsx("span",{className:jt.rowLabel,children:"Комиссия сети"}),o.jsxs("span",{className:jt.rowValue,children:[p.network.amountFormatted," ",p.network.asset," (≈$",p.network.amountUsd,")"]})]})}),d&&o.jsx("p",{className:jt.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),o.jsx("button",{className:jt.confirmBtn,onClick:f,children:"Подтвердить"})]})})}const hC="_form_1fk2f_1",mC={form:hC},pC={ETH:1,BSC:56,SOL:792703809},kp={SOL:"11111111111111111111111111111111",DEFAULT:"0x0000000000000000000000000000000000000000"};function Ap(a){return kp[a]??kp.DEFAULT}function gC(){var pn,va,ya,ze,nn,ba;const a=Mn(),s=en(),{fromAmount:i,fromUsd:r,fromToken:d,toToken:f,setFromAmount:m,setPercent:_,swapTokens:h,setFromToken:p,setToToken:v}=$g(),[y,x]=S.useState("ETH"),[j,w]=S.useState(null),[C,N]=S.useState(null),[A,z]=S.useState(null),O=y==="TRX",{data:q}=Ri(y),Y=q?Ug(q):Lj;S.useEffect(()=>{Y.length!==0&&(p(Ve=>Y.find(Pt=>Pt.symbol===Ve.symbol)??Y[0]),v(Ve=>Y.find(Pt=>Pt.symbol===Ve.symbol)??Y[1]??Y[0]))},[q,y]);const X=ma(i,500),{data:U}=Jc(),{data:P}=E7(),W=parseFloat(X),ce=pC[y],ie=(pn=U==null?void 0:U.find(Ve=>Ve.chain===y))==null?void 0:pn.address,ue=((va=P==null?void 0:P.find(Ve=>Ve.chain===y&&Ve.symbol===d.symbol))==null?void 0:va.contract)??Ap(y),te=((ya=P==null?void 0:P.find(Ve=>Ve.chain===y&&Ve.symbol===f.symbol))==null?void 0:ya.contract)??Ap(y),he=!O&&ce&&ie&&W>0?{user:ie,recipient:ie,originChainId:ce,destinationChainId:ce,originCurrency:ue,destinationCurrency:te,amount:Math.round(W*Math.pow(10,d.decimals)).toString(),tradeType:"EXACT_INPUT"}:null,{data:ne}=fg(he),{mutate:H,isPending:I}=O7(),{mutate:ae,isPending:fe}=L7(),_e=O&&W>0?{from:d.symbol,to:f.symbol,amountHuman:X}:null,{data:R}=D7(_e),{mutate:V,isPending:K}=z7(),{mutate:J,isPending:ge}=B7(),xe=fe||ge,ke=(parseFloat(i)||0)>d.balance,Ct=O?(R==null?void 0:R.expectedOutFormatted)??"0":(ne==null?void 0:ne.details.currencyOut.amountFormatted)??"0",We=O||ne==null?void 0:ne.details.currencyOut.amountUsd,ga=O?(ze=R==null?void 0:R.fees.network.amountUsd)==null?void 0:ze.toString():ne==null?void 0:ne.fees.gas.amountUsd,_a=(ba=(nn=ne==null?void 0:ne.appCommission)==null?void 0:nn.usd)==null?void 0:ba.toString(),Ia=O?W<=0||K:!he||I;function Dl(){if(O){if(!_e)return;V(_e,{onSuccess:Ve=>N(Ve)})}else{if(!he)return;H(he,{onSuccess:Ve=>w(Ve)})}}return o.jsxs("div",{className:mC.form,children:[o.jsx(Qc,{mode:"from",token:d,tokenOptions:Y,amount:i,usd:r,onAmountChange:m,onSetPercent:_,onTokenChange:p,selectedNetwork:y,onNetworkChange:x}),o.jsx(jw,{onClick:h}),o.jsx(Qc,{mode:"to",token:f,tokenOptions:Y,amount:Ct,usd:We,onTokenChange:v}),o.jsx(Rw,{gasFee:ga,serviceFee:_a}),o.jsx(Qn,{label:I||K?"Загрузка...":void 0,onClick:Dl,disabled:Ia}),j&&o.jsx(Iw,{data:j,insufficientBalance:ke,onClose:()=>w(null),onConfirm:()=>{var Pt,nr;const Ve=(nr=(Pt=j.steps[0])==null?void 0:Pt.items[0])==null?void 0:nr.data;Ve&&(z(null),ae({chain:y,txData:Ve},{onSuccess:()=>{s.invalidateQueries({queryKey:["wallet","balance",y]}),s.invalidateQueries({queryKey:["wallet","portfolio"]}),a(re.WALLET)},onError:ar=>{z(ar instanceof Error?ar.message:"Не удалось подписать транзакцию")}})),w(null)}}),C&&o.jsx(fC,{quote:C,fromSymbol:d.symbol,toSymbol:f.symbol,amountHuman:i,insufficientBalance:ke,onClose:()=>N(null),onConfirm:()=>{z(null),J(C.quoteId,{onSuccess:()=>{s.invalidateQueries({queryKey:["wallet","balance","TRX"]}),s.invalidateQueries({queryKey:["wallet","portfolio"]}),a(re.WALLET)},onError:Ve=>{z(Ve instanceof Error?Ve.message:"Не удалось выполнить свап")}}),N(null)}}),xe&&o.jsx(Ml,{status:"warning",message:"Обработка транзакции...",onClose:()=>{}}),A&&o.jsx(Ml,{status:"error",message:A,onClose:()=>z(null)})]})}const _C="_tabs_1sxhr_1",vC="_tab_1sxhr_1",yC="_active_1sxhr_19",bC="_inactive_1sxhr_24",as={tabs:_C,tab:vC,active:yC,inactive:bC};function Hg({active:a}){const s=Mn();return o.jsxs("div",{className:as.tabs,children:[o.jsx("button",{className:`${as.tab} ${a==="swap"?as.active:as.inactive}`,onClick:()=>s(re.SWAP),children:"СВОП"}),o.jsx("button",{className:`${as.tab} ${a==="bridge"?as.active:as.inactive}`,onClick:()=>s(re.BRIDGE),children:"БРИДЖ"})]})}const xC="_content_1pe49_1",SC={content:xC};function jC(){return o.jsxs(o.Fragment,{children:[o.jsx(Hg,{active:"swap"}),o.jsx("div",{className:SC.content,children:o.jsx(gC,{})})]})}function Jn(a,s){const[i,r=""]=a.split("."),d=r.slice(0,s).padEnd(s,"0");return`${i}${d}`.replace(/^0+(?=\d)/,"")||"0"}function Vo(a,s){const i=a.padStart(s+1,"0"),r=i.slice(0,i.length-s),d=i.slice(i.length-s).replace(/0+$/,"");return d?`${r}.${d}`:r}const wC="_wrap_njjv3_1",CC="_label_njjv3_9",NC="_select_njjv3_18",Md={wrap:wC,label:CC,select:NC};function Mp({label:a,value:s,onChange:i,options:r}){return o.jsxs("div",{className:Md.wrap,children:[o.jsx("span",{className:Md.label,children:a}),o.jsx("select",{className:Md.select,value:s,onChange:d=>i(d.target.value),children:r.map(d=>o.jsx("option",{value:d,children:d},d))})]})}const EC="_panel_1dg55_1",TC="_row_1dg55_10",RC="_label_1dg55_22",kC="_value_1dg55_30",Cc={panel:EC,row:TC,label:RC,value:kC};function AC({serviceFee:a}){const s=[{label:"СЕРВИСНЫЙ СБОР",value:a?`$${a}`:"—"}];return o.jsx("div",{className:Cc.panel,children:s.map(({label:i,value:r})=>o.jsxs("div",{className:Cc.row,children:[o.jsx("span",{className:Cc.label,children:i}),o.jsx("span",{className:Cc.value,children:r})]},i))})}const MC="_overlay_13tuw_1",OC="_card_13tuw_12",LC="_header_13tuw_24",DC="_title_13tuw_30",zC="_closeBtn_13tuw_36",BC="_flow_13tuw_51",UC="_token_13tuw_57",$C="_tokenLabel_13tuw_67",HC="_tokenAmount_13tuw_75",qC="_minOut_13tuw_81",FC="_arrow_13tuw_86",GC="_details_13tuw_93",VC="_row_13tuw_99",QC="_rowLabel_13tuw_105",YC="_rowValue_13tuw_110",PC="_warning_13tuw_116",IC="_confirmBtn_13tuw_128",ct={overlay:MC,card:OC,header:LC,title:DC,closeBtn:zC,flow:BC,token:UC,tokenLabel:$C,tokenAmount:HC,minOut:qC,arrow:FC,details:GC,row:VC,rowLabel:QC,rowValue:YC,warning:PC,confirmBtn:IC};function XC({quote:a,fromAmountHuman:s,insufficientBalance:i,isExecuting:r,onConfirm:d,onClose:f}){const{action:m,estimate:_,toolDetails:h}=a,p=m.toToken.symbol,v=m.fromToken.symbol,y=it(Vo(_.toAmount,m.toToken.decimals),8),x=it(Vo(_.toAmountMin,m.toToken.decimals),8),j=(_.feeCosts??[]).reduce((w,C)=>w+(parseFloat(C.amountUSD)||0),0).toFixed(2);return o.jsx("div",{className:ct.overlay,onClick:f,children:o.jsxs("div",{className:ct.card,onClick:w=>w.stopPropagation(),children:[o.jsxs("div",{className:ct.header,children:[o.jsx("span",{className:ct.title,children:"Подтвердить бридж"}),o.jsx("button",{className:ct.closeBtn,onClick:f,children:"×"})]}),o.jsxs("div",{className:ct.flow,children:[o.jsxs("div",{className:ct.token,children:[o.jsx("span",{className:ct.tokenLabel,children:"Отдаёте"}),o.jsxs("span",{className:ct.tokenAmount,children:[s," ",v]})]}),o.jsx("div",{className:ct.arrow,children:"↓"}),o.jsxs("div",{className:ct.token,children:[o.jsx("span",{className:ct.tokenLabel,children:"Получаете"}),o.jsxs("span",{className:ct.tokenAmount,children:[y," ",p]}),o.jsxs("span",{className:ct.minOut,children:["Минимум: ",x," ",p]})]})]}),o.jsxs("div",{className:ct.details,children:[o.jsxs("div",{className:ct.row,children:[o.jsx("span",{className:ct.rowLabel,children:"Комиссия"}),o.jsxs("span",{className:ct.rowValue,children:["≈$",j]})]}),o.jsxs("div",{className:ct.row,children:[o.jsx("span",{className:ct.rowLabel,children:"Мост"}),o.jsx("span",{className:ct.rowValue,children:h.name})]})]}),i&&o.jsx("p",{className:ct.warning,children:"Введённое количество превышает баланс кошелька — бридж будет отклонён."}),o.jsx("button",{className:ct.confirmBtn,onClick:d,disabled:r,children:r?"Обработка...":"Подтвердить бридж"})]})})}const KC="_form_htwuf_1",Op={form:KC},Od=["ETH","BSC","SOL","TRX","BTC"],hi={ETH:"1",BSC:"56",SOL:"1151111081099710",TRX:"728126428",BTC:"20000000000001"},ZC=Object.fromEntries(Object.entries(hi).map(([a,s])=>[s,a])),Lp={ETH:1,BSC:56,SOL:792703809,TRX:728126428,BTC:8253038};function WC(a){const s=h2[a.symbol];return{symbol:a.symbol,letter:(s==null?void 0:s.letter)??a.symbol[0],color:(s==null?void 0:s.color)??"#888",logo:a.logoURI??(s==null?void 0:s.logo),network:ZC[String(a.chainId)]??a.symbol,balance:0,usdRate:parseFloat(a.priceUSD)||0,decimals:a.decimals}}function JC(a){const s={};for(const i of Ug(a))s[i.symbol]=i.balance;return s}function eN(){var _a,Ia,Dl,pn,va,ya;const a=Mn(),s=en(),{fromAmount:i,fromUsd:r,fromToken:d,toToken:f,setFromAmount:m,setPercent:_,setFromToken:h,setToToken:p}=$g(),[v,y]=S.useState("ETH"),[x,j]=S.useState("BSC"),[w,C]=S.useState(null),[N,A]=S.useState(null),{data:z}=T7(),{data:O}=Ri(v),{data:q}=Ri(x),{data:Y}=Jc(),{mutate:X,isPending:U}=R7(),{mutate:P,isPending:W}=k7();function ce(ze,nn){const ba=((z==null?void 0:z[hi[ze]])??[]).map(WC);if(!nn)return ba;const Ve=JC(nn);return ba.map(Pt=>Ve[Pt.symbol]!=null?{...Pt,balance:Ve[Pt.symbol]}:Pt)}const ie=ce(v,O),ue=ce(x,q);S.useEffect(()=>{ie.length!==0&&h(ze=>ie.find(nn=>nn.symbol===ze.symbol)??ie[0])},[z,O,v]),S.useEffect(()=>{ue.length!==0&&p(ze=>ue.find(nn=>nn.symbol===ze.symbol)??ue[0])},[z,q,x]);const te=parseFloat(i),he=(te||0)>d.balance,ne=(_a=z==null?void 0:z[hi[v]])==null?void 0:_a.find(ze=>ze.symbol===d.symbol),H=(Ia=z==null?void 0:z[hi[x]])==null?void 0:Ia.find(ze=>ze.symbol===f.symbol),I=(Dl=Y==null?void 0:Y.find(ze=>ze.chain===v))==null?void 0:Dl.address,ae=(pn=Y==null?void 0:Y.find(ze=>ze.chain===x))==null?void 0:pn.address,fe=ne&&H&&I&&ae&&te>0?{fromChain:hi[v],toChain:hi[x],fromToken:ne.address,toToken:H.address,fromAmount:Jn(i,d.decimals),fromAddress:I,toAddress:ae,slippage:.005}:null,_e=ma(i,500),R=parseFloat(_e),V=Lp[v],K=Lp[x],J=ne&&H&&I&&ae&&V&&K&&R>0?{user:I,recipient:ae,originChainId:V,destinationChainId:K,originCurrency:ne.address,destinationCurrency:H.address,amount:Jn(_e,d.decimals),tradeType:"EXACT_INPUT"}:null,{data:ge}=fg(J),xe=(ya=(va=ge==null?void 0:ge.appCommission)==null?void 0:va.usd)==null?void 0:ya.toString(),ke=ge?ge.details.currencyOut.amountFormatted:w?it(Vo(w.estimate.toAmount,w.action.toToken.decimals),8):"0";function Ct(ze){y(ze),ze===x&&j(Od.find(nn=>nn!==ze)??x)}function We(){fe&&(A(null),X(fe,{onSuccess:ze=>C(ze),onError:ze=>A(ze instanceof Error?ze.message:"Не удалось получить котировку")}))}function ga(){w&&(A(null),P({provider:"jumper",fromChain:w.action.fromChainId,toChain:w.action.toChainId,fromToken:w.action.fromToken.address,toToken:w.action.toToken.address,fromAmount:w.action.fromAmount,fromAddress:w.action.fromAddress,toAddress:w.action.toAddress,acceptedMinOut:w.estimate.toAmountMin},{onSuccess:()=>{s.invalidateQueries({queryKey:["wallet","balance",v]}),s.invalidateQueries({queryKey:["wallet","balance",x]}),s.invalidateQueries({queryKey:["wallet","portfolio"]}),C(null),a(re.WALLET)},onError:ze=>A(ze instanceof Error?ze.message:"Не удалось выполнить бридж")}))}return z?o.jsxs("div",{className:Op.form,children:[o.jsx(Mp,{label:"ИЗ",value:v,onChange:Ct,options:Od}),o.jsx(Qc,{mode:"from",token:d,tokenOptions:ie,amount:i,usd:r,onAmountChange:m,onSetPercent:_,onTokenChange:h,hideNetworkSelect:!0}),o.jsx(Mp,{label:"В",value:x,onChange:j,options:Od.filter(ze=>ze!==v)}),o.jsx(Qc,{mode:"to",token:f,tokenOptions:ue,amount:ke,onTokenChange:p,hideNetworkSelect:!0}),o.jsx(AC,{serviceFee:xe}),o.jsx(Qn,{label:U?"Загрузка...":"Подтвердить бридж",onClick:We,disabled:!fe||U}),w&&o.jsx(XC,{quote:w,fromAmountHuman:i,insufficientBalance:he,isExecuting:W,onConfirm:ga,onClose:()=>C(null)}),N&&o.jsx(Ml,{status:"error",message:N,onClose:()=>A(null)})]}):o.jsx("div",{className:Op.form})}const tN="_content_1pe49_1",nN={content:tN};function aN(){return o.jsxs(o.Fragment,{children:[o.jsx(Hg,{active:"bridge"}),o.jsx("div",{className:nN.content,children:o.jsx(eN,{})})]})}var m2=function(a,s){return m2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(i[d]=r[d])},m2(a,s)};function lN(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");m2(a,s);function i(){this.constructor=a}a.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}var Dt=function(){return Dt=Object.assign||function(s){for(var i,r=1,d=arguments.length;r<d;r++){i=arguments[r];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},Dt.apply(this,arguments)};var Ld,Dp;function sN(){if(Dp)return Ld;Dp=1;var a=!1,s,i,r,d,f,m,_,h,p,v,y,x,j,w,C;function N(){if(!a){a=!0;var z=navigator.userAgent,O=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(z),q=/(Mac OS X)|(Windows)|(Linux)/.exec(z);if(x=/\b(iPhone|iP[ao]d)/.exec(z),j=/\b(iP[ao]d)/.exec(z),v=/Android/i.exec(z),w=/FBAN\/\w+;/i.exec(z),C=/Mobile/i.exec(z),y=!!/Win64/.exec(z),O){s=O[1]?parseFloat(O[1]):O[5]?parseFloat(O[5]):NaN,s&&document&&document.documentMode&&(s=document.documentMode);var Y=/(?:Trident\/(\d+.\d+))/.exec(z);m=Y?parseFloat(Y[1])+4:s,i=O[2]?parseFloat(O[2]):NaN,r=O[3]?parseFloat(O[3]):NaN,d=O[4]?parseFloat(O[4]):NaN,d?(O=/(?:Chrome\/(\d+\.\d+))/.exec(z),f=O&&O[1]?parseFloat(O[1]):NaN):f=NaN}else s=i=r=f=d=NaN;if(q){if(q[1]){var X=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(z);_=X?parseFloat(X[1].replace("_",".")):!0}else _=!1;h=!!q[2],p=!!q[3]}else _=h=p=!1}}var A={ie:function(){return N()||s},ieCompatibilityMode:function(){return N()||m>s},ie64:function(){return A.ie()&&y},firefox:function(){return N()||i},opera:function(){return N()||r},webkit:function(){return N()||d},safari:function(){return A.webkit()},chrome:function(){return N()||f},windows:function(){return N()||h},osx:function(){return N()||_},linux:function(){return N()||p},iphone:function(){return N()||x},mobile:function(){return N()||x||j||v||C},nativeApp:function(){return N()||w},android:function(){return N()||v},ipad:function(){return N()||j}};return Ld=A,Ld}var Dd,zp;function iN(){if(zp)return Dd;zp=1;var a=!!(typeof window<"u"&&window.document&&window.document.createElement),s={canUseDOM:a,canUseWorkers:typeof Worker<"u",canUseEventListeners:a&&!!(window.addEventListener||window.attachEvent),canUseViewport:a&&!!window.screen,isInWorker:!a};return Dd=s,Dd}var zd,Bp;function oN(){if(Bp)return zd;Bp=1;var a=iN(),s;a.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,d){if(!a.canUseDOM||d&&!("addEventListener"in document))return!1;var f="on"+r,m=f in document;if(!m){var _=document.createElement("div");_.setAttribute(f,"return;"),m=typeof _[f]=="function"}return!m&&s&&r==="wheel"&&(m=document.implementation.hasFeature("Events.wheel","3.0")),m}return zd=i,zd}var Bd,Up;function rN(){if(Up)return Bd;Up=1;var a=sN(),s=oN(),i=10,r=40,d=800;function f(m){var _=0,h=0,p=0,v=0;return"detail"in m&&(h=m.detail),"wheelDelta"in m&&(h=-m.wheelDelta/120),"wheelDeltaY"in m&&(h=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(_=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(_=h,h=0),p=_*i,v=h*i,"deltaY"in m&&(v=m.deltaY),"deltaX"in m&&(p=m.deltaX),(p||v)&&m.deltaMode&&(m.deltaMode==1?(p*=r,v*=r):(p*=d,v*=d)),p&&!_&&(_=p<1?-1:1),v&&!h&&(h=v<1?-1:1),{spinX:_,spinY:h,pixelX:p,pixelY:v}}return f.getEventType=function(){return a.firefox()?"DOMMouseScroll":s("wheel")?"wheel":"mousewheel"},Bd=f,Bd}var Ud,$p;function cN(){return $p||($p=1,Ud=rN()),Ud}var uN=cN();const dN=S3(uN);function fN(a,s,i,r,d,f){f===void 0&&(f=0);var m=ki(a,s,f),_=m.width,h=m.height,p=Math.min(_,i),v=Math.min(h,r);return p>v*d?{width:v*d,height:v}:{width:p,height:p/d}}function hN(a){return a.width>a.height?a.width/a.naturalWidth:a.height/a.naturalHeight}function zo(a,s,i,r,d){d===void 0&&(d=0);var f=ki(s.width,s.height,d),m=f.width,_=f.height;return{x:Hp(a.x,m,i.width,r),y:Hp(a.y,_,i.height,r)}}function Hp(a,s,i,r){var d=Math.abs(s*r/2-i/2);return nu(a,-d,d)}function qp(a,s){return Math.sqrt(Math.pow(a.y-s.y,2)+Math.pow(a.x-s.x,2))}function Fp(a,s){return Math.atan2(s.y-a.y,s.x-a.x)*180/Math.PI}function mN(a,s,i,r,d,f,m){f===void 0&&(f=0),m===void 0&&(m=!0);var _=m?pN:gN,h=ki(s.width,s.height,f),p=ki(s.naturalWidth,s.naturalHeight,f),v={x:_(100,((h.width-i.width/d)/2-a.x/d)/h.width*100),y:_(100,((h.height-i.height/d)/2-a.y/d)/h.height*100),width:_(100,i.width/h.width*100/d),height:_(100,i.height/h.height*100/d)},y=Math.round(_(p.width,v.width*p.width/100)),x=Math.round(_(p.height,v.height*p.height/100)),j=p.width>=p.height*r,w=j?{width:Math.round(x*r),height:x}:{width:y,height:Math.round(y/r)},C=Dt(Dt({},w),{x:Math.round(_(p.width-w.width,v.x*p.width/100)),y:Math.round(_(p.height-w.height,v.y*p.height/100))});return{croppedAreaPercentages:v,croppedAreaPixels:C}}function pN(a,s){return Math.min(a,Math.max(0,s))}function gN(a,s){return s}function _N(a,s,i,r,d,f){var m=ki(s.width,s.height,i),_=nu(r.width/m.width*(100/a.width),d,f),h={x:_*m.width/2-r.width/2-m.width*_*(a.x/100),y:_*m.height/2-r.height/2-m.height*_*(a.y/100)};return{crop:h,zoom:_}}function vN(a,s,i){var r=hN(s);return i.height>i.width?i.height/(a.height*r):i.width/(a.width*r)}function yN(a,s,i,r,d,f){i===void 0&&(i=0);var m=ki(s.naturalWidth,s.naturalHeight,i),_=nu(vN(a,s,r),d,f),h=r.height>r.width?r.height/a.height:r.width/a.width,p={x:((m.width-a.width)/2-a.x)*h,y:((m.height-a.height)/2-a.y)*h};return{crop:p,zoom:_}}function Gp(a,s){return{x:(s.x+a.x)/2,y:(s.y+a.y)/2}}function bN(a){return a*Math.PI/180}function ki(a,s,i){var r=bN(i);return{width:Math.abs(Math.cos(r)*a)+Math.abs(Math.sin(r)*s),height:Math.abs(Math.sin(r)*a)+Math.abs(Math.cos(r)*s)}}function nu(a,s,i){return Math.min(Math.max(a,s),i)}function Nc(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return a.filter(function(i){return typeof i=="string"&&i.length>0}).join(" ").trim()}var xN=`.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;
}
`,SN=1,jN=3,wN=1,CN=(function(a){lN(s,a);function s(){var i=a!==null&&a.apply(this,arguments)||this;return i.cropperRef=S.createRef(),i.imageRef=S.createRef(),i.videoRef=S.createRef(),i.containerPosition={x:0,y:0},i.containerRef=null,i.styleRef=null,i.containerRect=null,i.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},i.dragStartPosition={x:0,y:0},i.dragStartCrop={x:0,y:0},i.gestureZoomStart=0,i.gestureRotationStart=0,i.isTouching=!1,i.lastPinchDistance=0,i.lastPinchRotation=0,i.rafDragTimeout=null,i.rafPinchTimeout=null,i.wheelTimer=null,i.currentDoc=typeof document<"u"?document:null,i.currentWindow=typeof window<"u"?window:null,i.resizeObserver=null,i.previousCropSize=null,i.isInitialized=!1,i.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},i.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!i.containerRef)){var r=!0;i.resizeObserver=new window.ResizeObserver(function(d){if(r){r=!1;return}i.computeSizes()}),i.resizeObserver.observe(i.containerRef)}},i.preventZoomSafari=function(r){return r.preventDefault()},i.cleanEvents=function(){i.currentDoc&&(i.currentDoc.removeEventListener("mousemove",i.onMouseMove),i.currentDoc.removeEventListener("mouseup",i.onDragStopped),i.currentDoc.removeEventListener("touchmove",i.onTouchMove),i.currentDoc.removeEventListener("touchend",i.onDragStopped),i.currentDoc.removeEventListener("gesturechange",i.onGestureChange),i.currentDoc.removeEventListener("gestureend",i.onGestureEnd),i.currentDoc.removeEventListener("scroll",i.onScroll))},i.clearScrollEvent=function(){i.containerRef&&i.containerRef.removeEventListener("wheel",i.onWheel),i.wheelTimer&&clearTimeout(i.wheelTimer)},i.onMediaLoad=function(){var r=i.computeSizes();r&&(i.previousCropSize=r,i.emitCropData(),i.setInitialCrop(r),i.isInitialized=!0),i.props.onMediaLoaded&&i.props.onMediaLoaded(i.mediaSize)},i.setInitialCrop=function(r){if(i.props.initialCroppedAreaPercentages){var d=_N(i.props.initialCroppedAreaPercentages,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),f=d.crop,m=d.zoom;i.props.onCropChange(f),i.props.onZoomChange&&i.props.onZoomChange(m)}else if(i.props.initialCroppedAreaPixels){var _=yN(i.props.initialCroppedAreaPixels,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),f=_.crop,m=_.zoom;i.props.onCropChange(f),i.props.onZoomChange&&i.props.onZoomChange(m)}},i.computeSizes=function(){var r,d,f,m,_,h,p=i.imageRef.current||i.videoRef.current;if(p&&i.containerRef){i.containerRect=i.containerRef.getBoundingClientRect(),i.saveContainerPosition();var v=i.containerRect.width/i.containerRect.height,y=((r=i.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((d=i.videoRef.current)===null||d===void 0?void 0:d.videoWidth)||0,x=((f=i.imageRef.current)===null||f===void 0?void 0:f.naturalHeight)||((m=i.videoRef.current)===null||m===void 0?void 0:m.videoHeight)||0,j=p.offsetWidth<y||p.offsetHeight<x,w=y/x,C=void 0;if(j)switch(i.state.mediaObjectFit){default:case"contain":C=v>w?{width:i.containerRect.height*w,height:i.containerRect.height}:{width:i.containerRect.width,height:i.containerRect.width/w};break;case"horizontal-cover":C={width:i.containerRect.width,height:i.containerRect.width/w};break;case"vertical-cover":C={width:i.containerRect.height*w,height:i.containerRect.height};break}else C={width:p.offsetWidth,height:p.offsetHeight};i.mediaSize=Dt(Dt({},C),{naturalWidth:y,naturalHeight:x}),i.props.setMediaSize&&i.props.setMediaSize(i.mediaSize);var N=i.props.cropSize?i.props.cropSize:fN(i.mediaSize.width,i.mediaSize.height,i.containerRect.width,i.containerRect.height,i.props.aspect,i.props.rotation);return(((_=i.state.cropSize)===null||_===void 0?void 0:_.height)!==N.height||((h=i.state.cropSize)===null||h===void 0?void 0:h.width)!==N.width)&&i.props.onCropSizeChange&&i.props.onCropSizeChange(N),i.setState({cropSize:N},i.recomputeCropPosition),i.props.setCropSize&&i.props.setCropSize(N),N}},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 d=s.getMousePoint(r),f=i.gestureZoomStart-1+r.scale;if(i.setNewZoom(f,d,{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 d,f,m=r.x,_=r.y;i.dragStartPosition={x:m,y:_},i.dragStartCrop=Dt({},i.props.crop),(f=(d=i.props).onInteractionStart)===null||f===void 0||f.call(d)},i.onDrag=function(r){var d=r.x,f=r.y;i.currentWindow&&(i.rafDragTimeout&&i.currentWindow.cancelAnimationFrame(i.rafDragTimeout),i.rafDragTimeout=i.currentWindow.requestAnimationFrame(function(){if(i.state.cropSize&&!(d===void 0||f===void 0)){var m=d-i.dragStartPosition.x,_=f-i.dragStartPosition.y,h={x:i.dragStartCrop.x+m,y:i.dragStartCrop.y+_},p=i.props.restrictPosition?zo(h,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):h;i.props.onCropChange(p)}}))},i.onDragStopped=function(){var r,d;i.isTouching=!1,i.cleanEvents(),i.emitCropData(),(d=(r=i.props).onInteractionEnd)===null||d===void 0||d.call(r)},i.onWheel=function(r){if(i.currentWindow&&!(i.props.onWheelRequest&&!i.props.onWheelRequest(r))){r.preventDefault();var d=s.getMousePoint(r),f=dN(r).pixelY,m=i.props.zoom-f*i.props.zoomSpeed/200;i.setNewZoom(m,d,{shouldUpdatePosition:!0}),i.state.hasWheelJustStarted||i.setState({hasWheelJustStarted:!0},function(){var _,h;return(h=(_=i.props).onInteractionStart)===null||h===void 0?void 0:h.call(_)}),i.wheelTimer&&clearTimeout(i.wheelTimer),i.wheelTimer=i.currentWindow.setTimeout(function(){return i.setState({hasWheelJustStarted:!1},function(){var _,h;return(h=(_=i.props).onInteractionEnd)===null||h===void 0?void 0:h.call(_)})},250)}},i.getPointOnContainer=function(r,d){var f=r.x,m=r.y;if(!i.containerRect)throw new Error("The Cropper is not mounted");return{x:i.containerRect.width/2-(f-d.x),y:i.containerRect.height/2-(m-d.y)}},i.getPointOnMedia=function(r){var d=r.x,f=r.y,m=i.props,_=m.crop,h=m.zoom;return{x:(d+_.x)/h,y:(f+_.y)/h}},i.setNewZoom=function(r,d,f){var m=f===void 0?{}:f,_=m.shouldUpdatePosition,h=_===void 0?!0:_;if(!(!i.state.cropSize||!i.props.onZoomChange)){var p=nu(r,i.props.minZoom,i.props.maxZoom);if(h){var v=i.getPointOnContainer(d,i.containerPosition),y=i.getPointOnMedia(v),x={x:y.x*p-v.x,y:y.y*p-v.y},j=i.props.restrictPosition?zo(x,i.mediaSize,i.state.cropSize,p,i.props.rotation):x;i.props.onCropChange(j)}i.props.onZoomChange(p)}},i.getCropData=function(){if(!i.state.cropSize)return null;var r=i.props.restrictPosition?zo(i.props.crop,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):i.props.crop;return mN(r,i.mediaSize,i.state.cropSize,i.getAspect(),i.props.zoom,i.props.rotation,i.props.restrictPosition)},i.emitCropData=function(){var r=i.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;i.props.onCropComplete&&i.props.onCropComplete(d,f),i.props.onCropAreaChange&&i.props.onCropAreaChange(d,f)}},i.emitCropAreaChange=function(){var r=i.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;i.props.onCropAreaChange&&i.props.onCropAreaChange(d,f)}},i.recomputeCropPosition=function(){var r,d;if(i.state.cropSize){var f=i.props.crop;if(i.isInitialized&&(!((r=i.previousCropSize)===null||r===void 0)&&r.width)&&(!((d=i.previousCropSize)===null||d===void 0)&&d.height)){var 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 _=i.state.cropSize.width/i.previousCropSize.width,h=i.state.cropSize.height/i.previousCropSize.height;f={x:i.props.crop.x*_,y:i.props.crop.y*h}}}var p=i.props.restrictPosition?zo(f,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):f;i.previousCropSize=i.state.cropSize,i.props.onCropChange(p),i.emitCropData()}},i.onKeyDown=function(r){var d,f,m=i.props,_=m.crop,h=m.onCropChange,p=m.keyboardStep,v=m.zoom,y=m.rotation,x=p;if(i.state.cropSize){r.shiftKey&&(x*=.2);var j=Dt({},_);switch(r.key){case"ArrowUp":j.y-=x,r.preventDefault();break;case"ArrowDown":j.y+=x,r.preventDefault();break;case"ArrowLeft":j.x-=x,r.preventDefault();break;case"ArrowRight":j.x+=x,r.preventDefault();break;default:return}i.props.restrictPosition&&(j=zo(j,i.mediaSize,i.state.cropSize,v,y)),r.repeat||(f=(d=i.props).onInteractionStart)===null||f===void 0||f.call(d),h(j)}},i.onKeyUp=function(r){var d,f;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}i.emitCropData(),(f=(d=i.props).onInteractionEnd)===null||f===void 0||f.call(d)},i}return 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=xN,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,d,f,m,_,h,p,v,y;i.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):i.aspect!==this.props.aspect?this.computeSizes():i.objectFit!==this.props.objectFit?this.computeSizes():i.zoom!==this.props.zoom?this.recomputeCropPosition():((r=i.cropSize)===null||r===void 0?void 0:r.height)!==((d=this.props.cropSize)===null||d===void 0?void 0:d.height)||((f=i.cropSize)===null||f===void 0?void 0:f.width)!==((m=this.props.cropSize)===null||m===void 0?void 0:m.width)?this.computeSizes():(((_=i.crop)===null||_===void 0?void 0:_.x)!==((h=this.props.crop)===null||h===void 0?void 0:h.x)||((p=i.crop)===null||p===void 0?void 0:p.y)!==((v=this.props.crop)===null||v===void 0?void 0:v.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&&((y=this.videoRef.current)===null||y===void 0||y.load());var x=this.getObjectFit();x!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:x},this.computeSizes)},s.prototype.getAspect=function(){var i=this.props,r=i.cropSize,d=i.aspect;return r?r.width/r.height:d},s.prototype.getObjectFit=function(){var i,r,d,f;if(this.props.objectFit==="cover"){var m=this.imageRef.current||this.videoRef.current;if(m&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var _=this.containerRect.width/this.containerRect.height,h=((i=this.imageRef.current)===null||i===void 0?void 0:i.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,p=((d=this.imageRef.current)===null||d===void 0?void 0:d.naturalHeight)||((f=this.videoRef.current)===null||f===void 0?void 0:f.videoHeight)||0,v=h/p;return v<_?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},s.prototype.onPinchStart=function(i){var r=s.getTouchPoint(i.touches[0]),d=s.getTouchPoint(i.touches[1]);this.lastPinchDistance=qp(r,d),this.lastPinchRotation=Fp(r,d),this.onDragStart(Gp(r,d))},s.prototype.onPinchMove=function(i){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var d=s.getTouchPoint(i.touches[0]),f=s.getTouchPoint(i.touches[1]),m=Gp(d,f);this.onDrag(m),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var _=qp(d,f),h=r.props.zoom*(_/r.lastPinchDistance);r.setNewZoom(h,m,{shouldUpdatePosition:!1}),r.lastPinchDistance=_;var p=Fp(d,f),v=r.props.rotation+(p-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(v),r.lastPinchRotation=p})}},s.prototype.render=function(){var i=this,r,d=this.props,f=d.image,m=d.video,_=d.mediaProps,h=d.cropperProps,p=d.transform,v=d.crop,y=v.x,x=v.y,j=d.rotation,w=d.zoom,C=d.cropShape,N=d.showGrid,A=d.roundCropAreaPixels,z=d.style,O=z.containerStyle,q=z.cropAreaStyle,Y=z.mediaStyle,X=d.classes,U=X.containerClassName,P=X.cropAreaClassName,W=X.mediaClassName,ce=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return S.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(ue){return i.containerRef=ue},"data-testid":"container",style:O,className:Nc("reactEasyCrop_Container",U)},f?S.createElement("img",Dt({alt:"",className:Nc("reactEasyCrop_Image",ce==="contain"&&"reactEasyCrop_Contain",ce==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ce==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",W)},_,{src:f,ref:this.imageRef,style:Dt(Dt({},Y),{transform:p||"translate(".concat(y,"px, ").concat(x,"px) rotate(").concat(j,"deg) scale(").concat(w,")")}),onLoad:this.onMediaLoad})):m&&S.createElement("video",Dt({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:Nc("reactEasyCrop_Video",ce==="contain"&&"reactEasyCrop_Contain",ce==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ce==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",W)},_,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Dt(Dt({},Y),{transform:p||"translate(".concat(y,"px, ").concat(x,"px) rotate(").concat(j,"deg) scale(").concat(w,")")}),controls:!1}),(Array.isArray(m)?m:[{src:m}]).map(function(ie){return S.createElement("source",Dt({key:ie.src},ie))})),this.state.cropSize&&S.createElement("div",Dt({ref:this.cropperRef,style:Dt(Dt({},q),{width:A?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:A?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:Nc("reactEasyCrop_CropArea",C==="round"&&"reactEasyCrop_CropAreaRound",N&&"reactEasyCrop_CropAreaGrid",P)},h)))},s.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:jN,minZoom:SN,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:wN},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})(S.Component);function NN(a){return new Promise((s,i)=>{const r=new Image;r.onload=()=>s(r),r.onerror=()=>i(new Error("Не удалось загрузить изображение")),r.src=a})}async function EN(a,s,i=512){const r=await NN(a),d=document.createElement("canvas");d.width=i,d.height=i;const f=d.getContext("2d");if(!f)throw new Error("Canvas 2D context недоступен");return f.drawImage(r,s.x,s.y,s.width,s.height,0,0,i,i),new Promise((m,_)=>{d.toBlob(h=>{h?m(h):_(new Error("Пустой Blob после обрезки"))},"image/jpeg",.9)})}const TN="_backdrop_1cfz6_1",RN="_card_1cfz6_12",kN="_title_1cfz6_25",AN="_cropArea_1cfz6_31",MN="_controls_1cfz6_40",ON="_zoom_1cfz6_52",LN="_actions_1cfz6_57",DN="_error_1cfz6_63",bl={backdrop:TN,card:RN,title:kN,cropArea:AN,controls:MN,zoom:ON,actions:LN,error:DN};function zN({imageSrc:a,isSaving:s,onCancel:i,onConfirm:r}){const[d,f]=S.useState({x:0,y:0}),[m,_]=S.useState(1),[h,p]=S.useState(null),[v,y]=S.useState(null),x=S.useCallback((w,C)=>{p(C)},[]);S.useEffect(()=>{const w=C=>{C.key==="Escape"&&!s&&i()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[i,s]);const j=async()=>{if(h){y(null);try{const w=await EN(a,h);await r(w)}catch{y("Не удалось обрезать изображение")}}};return o.jsx("div",{className:bl.backdrop,onClick:s?void 0:i,children:o.jsxs("div",{className:bl.card,onClick:w=>w.stopPropagation(),children:[o.jsx("h3",{className:bl.title,children:"Выберите область аватара"}),o.jsx("div",{className:bl.cropArea,children:o.jsx(CN,{image:a,crop:d,zoom:m,aspect:1,cropShape:"round",showGrid:!1,onCropChange:f,onZoomChange:_,onCropComplete:x})}),o.jsxs("div",{className:bl.controls,children:[o.jsx("label",{htmlFor:"avatar-zoom",children:"Масштаб"}),o.jsx("input",{id:"avatar-zoom",className:bl.zoom,type:"range",min:1,max:3,step:.01,value:m,onChange:w=>_(Number(w.target.value))})]}),v&&o.jsx("span",{className:bl.error,children:v}),o.jsxs("div",{className:bl.actions,children:[o.jsx(Jt,{variant:"ghost",onClick:i,disabled:s,children:"Отмена"}),o.jsx(Jt,{variant:"primary",onClick:j,disabled:s||!h,children:s?"Загрузка...":"Сохранить"})]})]})})}const BN="_col_1gh35_1",UN="_avatar_1gh35_10",$N="_avatarImg_1gh35_30",HN="_error_1gh35_37",qN="_overlay_1gh35_43",FN="_addPhoto_1gh35_68",ri={col:BN,avatar:UN,avatarImg:$N,error:HN,overlay:qN,addPhoto:FN};function GN(a){return new Promise((s,i)=>{const r=new FileReader;r.onload=()=>{const d=r.result,f=d.indexOf(",");s(f>=0?d.slice(f+1):d)},r.onerror=()=>i(r.error),r.readAsDataURL(a)})}function VN(){const{data:a}=ta(),{mutateAsync:s,isPending:i}=K8(),r=S.useRef(null),[d,f]=S.useState(null),[m,_]=S.useState(!1),[h,p]=S.useState(null),v=(a==null?void 0:a.avatar_link)??null,y=v&&!m;S.useEffect(()=>{_(!1)},[v]),S.useEffect(()=>()=>{h&&URL.revokeObjectURL(h)},[h]);const x=()=>{var N;i||(N=r.current)==null||N.click()},j=N=>{var z;const A=(z=N.target.files)==null?void 0:z[0];N.target.value="",A&&(f(null),p(URL.createObjectURL(A)))},w=()=>{h&&URL.revokeObjectURL(h),p(null)},C=async N=>{try{const A=await GN(N);await s({photo_base64:A,decoded_bytes:String(N.size)}),w()}catch{f("Не удалось загрузить фото"),w()}};return o.jsxs("div",{className:ri.col,children:[o.jsxs("div",{className:ri.avatar,onClick:x,children:[y?o.jsx("img",{src:v,alt:"avatar",className:ri.avatarImg,referrerPolicy:"no-referrer",onError:()=>{console.warn("[avatar] failed to load",v),_(!0)}}):o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("circle",{cx:"12",cy:"8",r:"4"}),o.jsx("path",{d:"M4 20c0-4 4-7 8-7s8 3 8 7"})]}),o.jsx("div",{className:ri.overlay,children:o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M23 19a2 2 0 01-2 2H3a2 2 0 01-2-2V8a2 2 0 012-2h4l2-3h6l2 3h4a2 2 0 012 2z"}),o.jsx("circle",{cx:"12",cy:"13",r:"4"})]})})]}),o.jsx("input",{ref:r,type:"file",accept:"image/*",onChange:j,hidden:!0}),o.jsx("div",{className:ri.addPhoto,children:o.jsx(Jt,{variant:"ghost",onClick:x,disabled:i,children:i?"ЗАГРУЗКА...":"ДОБАВИТЬ ФОТО"})}),d&&o.jsx("span",{className:ri.error,children:d}),h&&o.jsx(zN,{imageSrc:h,isSaving:i,onCancel:w,onConfirm:C})]})}const QN="_card_17od5_1",YN="_title_17od5_8",PN="_actions_17od5_17",$d={card:QN,title:YN,actions:PN};function vs({title:a,children:s,actions:i}){return o.jsxs("div",{className:$d.card,children:[o.jsx("div",{className:$d.title,children:a}),s,i&&o.jsx("div",{className:$d.actions,children:i})]})}function IN(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}const XN="_profileTop_1107i_2",KN="_userInfo_1107i_6",ZN="_userName_1107i_26",WN="_userBalance_1107i_33",Ec={profileTop:XN,userInfo:KN,userName:ZN,userBalance:WN};function JN(){const{data:a}=ta(),{data:s}=eu(),i=a?X8(a):"";return o.jsxs("div",{className:Ec.profileTop,children:[o.jsx(VN,{}),o.jsxs("div",{className:Ec.userInfo,children:[o.jsx("span",{className:Ec.userName,children:i}),o.jsx("span",{className:Ec.userBalance,children:IN(s==null?void 0:s.totalUsd)})]})]})}function eE(a){const s=Z8(),[i,r]=S.useState(""),[d,f]=S.useState(""),[m,_]=S.useState(null);S.useEffect(()=>{a!=null&&(r(a),f(a))},[a]);function h(v){r(v.replace(/[^\d+\s()-]/g,""))}function p(){const v=i.trim();v===d||s.isPending||s.mutate(v,{onSuccess:()=>{f(v),_({status:"success",message:"Номер телефона обновлён"})},onError:()=>{_({status:"error",message:"Не удалось обновить номер телефона"})}})}return{phone:i,onPhoneChange:h,onPhoneBlur:p,notification:m,dismissNotification:()=>_(null)}}const tE="_grid2_1y7u3_1",nE="_grid1_1y7u3_7",pi={grid2:tE,grid1:nE};function aE({data:a}){const s=ig(a),{phone:i,onPhoneChange:r,onPhoneBlur:d,notification:f,dismissNotification:m}=eE(a.phone);return o.jsxs(o.Fragment,{children:[o.jsx(vs,{title:"Личные данные",children:o.jsxs("div",{className:pi.grid2,children:[o.jsx(Le,{label:"Полное ФИО",value:s,placeholder:"Например: Иванов Иван Иванович",readOnly:!0}),o.jsx(Le,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"example@mail.ru",readOnly:!0}),o.jsx(Le,{label:"Серия и номер паспорта",value:a.passport_data??"",placeholder:"0000 000000",readOnly:!0}),o.jsx(Le,{label:"Номер телефона",value:i,onChange:r,onBlur:d,type:"tel",placeholder:"+7 (999) 000-00-00"})]})}),o.jsx(vs,{title:"Верификация",children:o.jsxs("div",{className:pi.grid2,children:[o.jsx(Le,{label:"ИНН",value:a.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),o.jsx(Le,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})}),f&&o.jsx(Ml,{status:f.status,message:f.message,onClose:m})]})}function lE({data:a}){const s=a.legal_entity;return s?o.jsxs(o.Fragment,{children:[o.jsx(vs,{title:"Данные организации",children:o.jsxs("div",{className:pi.grid2,children:[o.jsx(Le,{label:"Наименование",value:s.name??"",placeholder:"ООО «Ромашка»",readOnly:!0}),o.jsx(Le,{label:"Краткое наименование",value:s.short_name??"",placeholder:"Ромашка",readOnly:!0}),o.jsx(Le,{label:"ИНН",value:s.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),o.jsx(Le,{label:"ОГРН",value:s.ogrn??"",placeholder:"1027700132195",readOnly:!0}),o.jsx(Le,{label:"КПП",value:s.kpp??"",placeholder:"770801001",readOnly:!0}),o.jsx(Le,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"org@mail.ru",readOnly:!0})]})}),o.jsx(vs,{title:"Адреса",children:o.jsxs("div",{className:pi.grid2,children:[o.jsx(Le,{label:"Юридический адрес",value:s.legal_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0}),o.jsx(Le,{label:"Фактический адрес",value:s.actual_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0})]})}),o.jsx(vs,{title:"Контакты и верификация",children:o.jsxs("div",{className:pi.grid2,children:[o.jsx(Le,{label:"Контактное лицо",value:s.contact_person??"",placeholder:"Иванов Иван Иванович",readOnly:!0}),o.jsx(Le,{label:"Контактный телефон",value:s.contact_phone??"",type:"tel",placeholder:"+7 (999) 000-00-00",readOnly:!0}),o.jsx(Le,{label:"Статус",value:s.status??"",placeholder:"active",readOnly:!0}),o.jsx(Le,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]}):null}function sE(){const{data:a}=ta();return a?sg(a)?o.jsx(lE,{data:a}):o.jsx(aE,{data:a}):null}function iE(){const{data:a}=Jc();return o.jsx(vs,{title:"Безопасность",actions:o.jsxs(o.Fragment,{children:[o.jsx(Jt,{variant:"danger",children:"⚠️ Посмотреть приватный ключ"}),o.jsx(Jt,{variant:"primary",children:"СОХРАНИТЬ"})]}),children:o.jsx("div",{className:pi.grid1,children:a==null?void 0:a.map(({chain:s,address:i})=>o.jsx(Le,{label:`Адрес ${s}`,readOnly:!0,icon:"lock",value:i,placeholder:"—"},s))})})}const oE="_mnemonicRow_14u02_1",rE="_mnemonicInfo_14u02_8",cE="_mnemonicIcon_14u02_14",uE="_mnemonicText_14u02_18",Tc={mnemonicRow:oE,mnemonicInfo:rE,mnemonicIcon:cE,mnemonicText:uE};function dE(){const a=Mn();return o.jsx(vs,{title:"Мнемоника",children:o.jsxs("div",{className:Tc.mnemonicRow,children:[o.jsxs("div",{className:Tc.mnemonicInfo,children:[o.jsx("span",{className:Tc.mnemonicIcon,children:"🔑"}),o.jsx("span",{className:Tc.mnemonicText,children:"Сид-фраза из 12 слов для восстановления кошелька"})]}),o.jsx(Jt,{variant:"danger",onClick:()=>a(re.SEED_PHRASE),children:"⚠ Показать мнемонику"})]})})}const fE="_kycBanner_2th6o_1",hE={kycBanner:fE};function mE(){const{data:a}=ta();return!a||a.kyc_verified?null:o.jsx("div",{className:hE.kycBanner,children:"Для полного доступа к платформе необходимо пройти верификацию личности (KYC)"})}const pE="_page_qjoyb_1",gE="_main_qjoyb_8",_E="_sections_qjoyb_17",Hd={page:pE,main:gE,sections:_E};function vE(){return o.jsxs("div",{className:Hd.page,children:[o.jsx(tu,{}),o.jsx(mE,{}),o.jsxs("main",{className:Hd.main,children:[o.jsx(JN,{}),o.jsxs("div",{className:Hd.sections,children:[o.jsx(sE,{}),o.jsx(iE,{}),o.jsx(dE,{})]})]})]})}const yE="_card_1erii_1",bE="_logo_1erii_10",xE="_title_1erii_20",SE="_twoCol_1erii_29",jE="_leftCol_1erii_36",wE="_rightCol_1erii_42",CE="_codeHint_1erii_48",NE="_error_1erii_55",EE="_submitWrapper_1erii_62",TE="_footer_1erii_66",RE="_forgot_1erii_73",kE="_divider_1erii_88",Gn={card:yE,logo:bE,title:xE,twoCol:SE,leftCol:jE,rightCol:wE,codeHint:CE,error:NE,submitWrapper:EE,footer:TE,forgot:RE,divider:kE};function Vp(a){var i,r;const s=a;return((r=(i=s==null?void 0:s.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function AE(){const[a,s]=S.useState(""),[i,r]=S.useState(""),[d,f]=S.useState(""),[m,_]=S.useState(!1),h=en(),p=Mn(),v=_t({mutationFn:H8,onSuccess:()=>_(!0)}),y=_t({mutationFn:q8,onSuccess:async({access_token:C})=>{A2(),h.clear(),C&&wt.set(C),await h.invalidateQueries({queryKey:Zc}),p(re.PROFILE)}}),x=()=>{a&&v.mutate({email:a})},j=C=>{C.preventDefault(),y.mutate({email:a,password:i,code:d})},w=(v.isError?Vp(v.error):null)??(y.isError?Vp(y.error):null);return{email:a,setEmail:s,password:i,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:m,isLoadingCode:v.isPending,isLoadingSubmit:y.isPending,error:w,handleRequestCode:x,handleSubmit:j}}function ME(){const{email:a,setEmail:s,password:i,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:m,isLoadingCode:_,isLoadingSubmit:h,error:p,handleRequestCode:v,handleSubmit:y}=AE(),x=Mn();return o.jsxs("form",{className:Gn.card,onSubmit:y,children:[o.jsx("div",{className:Gn.logo,children:o.jsx("img",{src:pa,alt:"ЭКСА"})}),o.jsx("h1",{className:Gn.title,children:"Войти в кошелёк ЭКСА"}),o.jsxs("div",{className:Gn.twoCol,children:[o.jsxs("div",{className:Gn.leftCol,children:[o.jsx(Le,{label:"Адрес электронной почты",type:"email",value:a,onChange:s,placeholder:"example@mail.ru",required:!0}),o.jsx(Le,{label:"Пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0})]}),o.jsxs("div",{className:Gn.rightCol,children:[o.jsx(Jt,{variant:"ghost",type:"button",onClick:v,disabled:m||_,children:_?"Отправка...":m?"Код отправлен":"Получить код на email"}),o.jsx("span",{className:Gn.codeHint,children:"Код не пришёл"}),o.jsx(Le,{label:"Ввести код",type:"text",value:d,onChange:f,placeholder:"000 000",required:!0})]})]}),p&&o.jsx("p",{className:Gn.error,children:p}),o.jsx("div",{className:Gn.submitWrapper,children:o.jsx(Qn,{label:h?"Вход...":"Войти",disabled:h})}),o.jsxs("div",{className:Gn.footer,children:[o.jsx("a",{className:Gn.forgot,onClick:()=>x(re.RESTORE_PASSWORD),children:"Забыли пароль?"}),o.jsx("div",{className:Gn.divider,children:o.jsx("span",{children:"или"})}),o.jsx(Jt,{variant:"outline",type:"button",onClick:()=>x(re.REGISTER),children:"Создать новый кошелёк"})]})]})}const OE="_page_a6ygb_1",LE={page:OE};function DE(){return o.jsx("div",{className:LE.page,children:o.jsx(ME,{})})}function Qp(a){var i,r;const s=a;return((r=(i=s==null?void 0:s.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function zE(){const a=Mn(),s=en(),[i,r]=S.useState(""),[d,f]=S.useState(""),[m,_]=S.useState(""),[h,p]=S.useState(""),[v,y]=S.useState(!1),[x,j]=S.useState(null),w=_t({mutationFn:U8,onSuccess:()=>y(!0)}),C=_t({mutationFn:$8,onSuccess:async({access_token:O})=>{A2(),s.clear(),O&&wt.set(O),await s.invalidateQueries({queryKey:Zc}),a(re.WALLET)}}),N=()=>{i&&w.mutate({email:i})},A=O=>{if(O.preventDefault(),d!==m){j("Пароли не совпадают");return}j(null),C.mutate({email:i,password:d,confirm_password:m,code:h})},z=x??(w.isError?Qp(w.error):null)??(C.isError?Qp(C.error):null);return{email:i,setEmail:r,password:d,setPassword:f,confirmPassword:m,setConfirmPassword:_,verificationCode:h,setVerificationCode:p,codeSent:v,isLoadingCode:w.isPending,isLoadingSubmit:C.isPending,error:z,handleRequestCode:N,handleSubmit:A}}const BE="_card_4lgff_1",UE="_logo_4lgff_10",$E="_title_4lgff_20",HE="_typeSelect_4lgff_29",qE="_back_4lgff_39",FE="_legalInfo_4lgff_55",GE="_legalIntro_4lgff_61",VE="_docsBlock_4lgff_67",QE="_emailBlock_4lgff_68",YE="_docsLabel_4lgff_74",PE="_docsList_4lgff_80",IE="_emailLink_4lgff_94",XE="_legalDone_4lgff_105",KE="_legalDoneTitle_4lgff_113",ZE="_legalDoneText_4lgff_119",WE="_twoCol_4lgff_125",JE="_leftCol_4lgff_132",eT="_rightCol_4lgff_138",tT="_codeHint_4lgff_149",nT="_error_4lgff_156",aT="_submitWrapper_4lgff_163",lT="_legal_4lgff_55",at={card:BE,logo:UE,title:$E,typeSelect:HE,back:qE,legalInfo:FE,legalIntro:GE,docsBlock:VE,emailBlock:QE,docsLabel:YE,docsList:PE,emailLink:IE,legalDone:XE,legalDoneTitle:KE,legalDoneText:ZE,twoCol:WE,leftCol:JE,rightCol:eT,codeHint:tT,error:nT,submitWrapper:aT,legal:lT};function sT(){const{email:a,setEmail:s,password:i,setPassword:r,confirmPassword:d,setConfirmPassword:f,verificationCode:m,setVerificationCode:_,codeSent:h,isLoadingCode:p,isLoadingSubmit:v,error:y,handleRequestCode:x,handleSubmit:j}=zE();return o.jsxs("form",{onSubmit:j,children:[o.jsxs("div",{className:at.twoCol,children:[o.jsxs("div",{className:at.leftCol,children:[o.jsx(Le,{label:"Введите адрес электронной почты",type:"email",value:a,onChange:s,placeholder:"example@mail.ru",required:!0}),o.jsx(Le,{label:"Придумайте пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0}),o.jsx(Le,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••",required:!0})]}),o.jsxs("div",{className:at.rightCol,children:[o.jsx(Jt,{variant:"ghost",type:"button",onClick:x,disabled:h||p,children:p?"Отправка...":h?"Код отправлен":"Получить проверочный код"}),o.jsx("span",{className:at.codeHint,children:"Код не пришёл"}),o.jsx(Le,{label:"Ввести код",type:"text",value:m,onChange:_,placeholder:"000 000",required:!0})]})]}),y&&o.jsx("p",{className:at.error,children:y}),o.jsx("div",{className:at.submitWrapper,children:o.jsx(Qn,{label:v?"Создание...":"Создать",disabled:v})}),o.jsxs("p",{className:at.legal,children:["Нажимая «Создать», вы принимаете",o.jsx("br",{}),o.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",o.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]})}const Yp="support@elcsa.ru",iT=["Устав организации в действующей редакции","Решение (протокол) о создании организации и о назначении руководителя","Выписка по расчётному счёту из банка за последние шесть месяцев","Выписка из Единого государственного реестра юридических лиц (ЕГРЮЛ)","Идентификатор электронного документооборота (ЭДО)","Реквизиты расчётного счёта: номер Р/С, БИК и наименование банка"];function oT(){const[a,s]=S.useState(!1);return a?o.jsxs("div",{className:at.legalDone,children:[o.jsx("h2",{className:at.legalDoneTitle,children:"Спасибо!"}),o.jsx("p",{className:at.legalDoneText,children:"Мы получили уведомление об отправке документов. После проверки мы свяжемся с вами по указанному адресу электронной почты."})]}):o.jsxs("div",{className:at.legalInfo,children:[o.jsx("p",{className:at.legalIntro,children:"Для регистрации юридического лица отправьте перечисленные ниже документы на нашу электронную почту. После проверки мы свяжемся с вами для завершения регистрации."}),o.jsxs("div",{className:at.docsBlock,children:[o.jsx("span",{className:at.docsLabel,children:"Необходимые документы"}),o.jsx("ul",{className:at.docsList,children:iT.map(i=>o.jsx("li",{children:i},i))})]}),o.jsxs("div",{className:at.emailBlock,children:[o.jsx("span",{className:at.docsLabel,children:"Адрес для отправки документов"}),o.jsx("a",{href:`mailto:${Yp}`,className:at.emailLink,children:Yp})]}),o.jsx("div",{className:at.submitWrapper,children:o.jsx(Qn,{label:"Документы отправлены",type:"button",onClick:()=>s(!0)})})]})}function rT(){const[a,s]=S.useState(null);return o.jsxs("div",{className:at.card,children:[o.jsx("div",{className:at.logo,children:o.jsx("img",{src:pa,alt:"ЭКСА"})}),o.jsx("h1",{className:at.title,children:"Создать кошелёк ЭКСА"}),a===null?o.jsxs("div",{className:at.typeSelect,children:[o.jsx(Jt,{variant:"primary",onClick:()=>s("individual"),children:"Зарегистрироваться как физическое лицо"}),o.jsx(Jt,{variant:"outline",onClick:()=>s("legal"),children:"Зарегистрироваться как юридическое лицо"})]}):o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:at.back,onClick:()=>s(null),children:"← Назад к выбору"}),a==="individual"?o.jsx(sT,{}):o.jsx(oT,{})]})]})}const cT="_page_a6ygb_1",uT={page:cT};function dT(){return o.jsx("div",{className:uT.page,children:o.jsx(rT,{})})}const fT="_page_1bkwz_1",hT="_card_1bkwz_9",mT="_logo_1bkwz_18",pT="_title_1bkwz_28",gT="_typeSwitch_1bkwz_38",_T="_typeOption_1bkwz_49",vT="_typeOptionActive_1bkwz_66",yT="_twoCol_1bkwz_71",bT="_leftCol_1bkwz_78",xT="_rightCol_1bkwz_84",ST="_codeHint_1bkwz_90",jT="_backButton_1bkwz_98",wT="_documentsSubtitle_1bkwz_131",CT="_documentsList_1bkwz_137",NT="_documentItem_1bkwz_146",ET="_documentName_1bkwz_157",TT="_attachButton_1bkwz_163",RT="_fileInput_1bkwz_181",kT="_submitWrapper_1bkwz_192",AT="_legal_1bkwz_196",Ke={page:fT,card:hT,logo:mT,title:pT,typeSwitch:gT,typeOption:_T,typeOptionActive:vT,twoCol:yT,leftCol:bT,rightCol:xT,codeHint:ST,backButton:jT,documentsSubtitle:wT,documentsList:CT,documentItem:NT,documentName:ET,attachButton:TT,fileInput:RT,submitWrapper:kT,legal:AT},MT=["Свидетельство о государственной регистрации (ОГРН)","Свидетельство о постановке на учёт в налоговом органе (ИНН)","Устав организации (действующая редакция)","Решение/протокол о назначении руководителя","Документ, подтверждающий полномочия лица, открывающего счёт","Карточка с образцами подписей и оттиска печати"];function OT(){const[a,s]=S.useState(""),[i,r]=S.useState(""),[d,f]=S.useState(""),[m,_]=S.useState(""),[h,p]=S.useState("individual"),[v,y]=S.useState("info"),x=h==="legal",j=C=>{C.preventDefault(),y("documents")},w=C=>{C.preventDefault()};return o.jsx("div",{className:Ke.page,children:v==="info"?o.jsxs("form",{className:Ke.card,onSubmit:j,children:[o.jsx("div",{className:Ke.logo,children:o.jsx("img",{src:pa,alt:"ЭКСА"})}),o.jsx("h1",{className:Ke.title,children:"Создать кошелёк ЭКСА"}),o.jsxs("div",{className:Ke.typeSwitch,role:"tablist","aria-label":"Тип регистрации",children:[o.jsx("button",{type:"button",role:"tab","aria-selected":!x,className:`${Ke.typeOption} ${x?"":Ke.typeOptionActive}`,onClick:()=>p("individual"),children:"Физическое лицо"}),o.jsx("button",{type:"button",role:"tab","aria-selected":x,className:`${Ke.typeOption} ${x?Ke.typeOptionActive:""}`,onClick:()=>p("legal"),children:"Юридическое лицо"})]}),o.jsxs("div",{className:Ke.twoCol,children:[o.jsxs("div",{className:Ke.leftCol,children:[o.jsx(Le,{label:x?"Введите корпоративный email":"Введите адрес электронной почты",type:"email",value:a,onChange:s,placeholder:x?"name@company.ru":"example@mail.ru"}),o.jsx(Le,{label:"Придумайте пароль",type:"password",value:i,onChange:r,placeholder:"••••••••"}),o.jsx(Le,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••"})]}),o.jsxs("div",{className:Ke.rightCol,children:[o.jsx(Jt,{variant:"ghost",type:"button",children:"Получить проверочный код"}),o.jsx("span",{className:Ke.codeHint,children:"Код не пришёл"}),o.jsx(Le,{label:"Ввести код",type:"text",value:m,onChange:_,placeholder:"000 000"})]})]}),o.jsx("div",{className:Ke.submitWrapper,children:o.jsx(Qn,{label:"Создать"})}),o.jsxs("p",{className:Ke.legal,children:["Нажимая «Создать», вы принимаете",o.jsx("br",{}),o.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",o.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]}):o.jsxs("form",{className:Ke.card,onSubmit:w,children:[o.jsx("div",{className:Ke.logo,children:o.jsx("img",{src:pa,alt:"ЭКСА"})}),o.jsx("button",{type:"button",className:Ke.backButton,onClick:()=>y("info"),children:"← Назад к данным"}),o.jsx("h1",{className:Ke.title,children:"Прикрепите документы"}),o.jsx("p",{className:Ke.documentsSubtitle,children:"Для открытия счёта юридическому лицу прикрепите сканы или фотографии следующих документов:"}),o.jsx("ul",{className:Ke.documentsList,children:MT.map(C=>o.jsxs("li",{className:Ke.documentItem,children:[o.jsx("span",{className:Ke.documentName,children:C}),o.jsxs("label",{className:Ke.attachButton,children:["Прикрепить",o.jsx("input",{type:"file",className:Ke.fileInput,multiple:!0})]})]},C))}),o.jsx("div",{className:Ke.submitWrapper,children:o.jsx(Qn,{label:"Создать аккаунт"})})]})})}const LT="_notice_a6bcd_1",DT="_title_a6bcd_11",zT="_text_a6bcd_16",qd={notice:LT,title:DT,text:zT};function BT(){const{data:a,isLoading:s}=ta();return o.jsxs("div",{className:qd.notice,children:[o.jsx("h1",{className:qd.title,children:"Покупка временно недоступна"}),o.jsx("p",{className:qd.text,children:"В настоящий момент покупка валюты невозможна. Мы работаем над восстановлением сервиса — попробуйте, пожалуйста, позже."})]})}const Pp=52;function UT(a){const[s,i]=S.useState(!1),[r,d]=S.useState(Pp),[f,m]=S.useState(!1),_=S.useRef(null),h=S.useCallback(()=>{_.current&&clearInterval(_.current),d(Pp),_.current=setInterval(()=>{d(y=>y<=1?(clearInterval(_.current),i(!0),0):y-1)},1e3)},[]);S.useEffect(()=>(h(),()=>{_.current&&clearInterval(_.current)}),[h]);const p=S.useCallback(()=>{i(y=>y?(h(),!1):(_.current&&clearInterval(_.current),!0))},[h]),v=S.useCallback(()=>{navigator.clipboard.writeText(a.join(" ")).then(()=>{m(!0),setTimeout(()=>m(!1),1500)})},[a]);return{hidden:s,countdown:r,copied:f,handleHide:p,handleCopy:v}}const $T="_content_o6p8v_1",HT="_titleRow_o6p8v_6",qT="_title_o6p8v_6",FT="_titleButtons_o6p8v_19",GT="_btnFixed_o6p8v_26",VT="_subtitle_o6p8v_34",QT="_countdown_o6p8v_42",YT="_seedGrid_o6p8v_47",PT="_seedCard_o6p8v_54",IT="_seedNum_o6p8v_73",XT="_seedWord_o6p8v_80",KT="_seedWordHidden_o6p8v_88",ZT="_warning_o6p8v_93",WT="_warningIcon_o6p8v_101",JT="_warningText_o6p8v_107",eR="_profileLinkRow_o6p8v_115",tR="_profileLink_o6p8v_115",Mt={content:$T,titleRow:HT,title:qT,titleButtons:FT,btnFixed:GT,subtitle:VT,countdown:QT,seedGrid:YT,seedCard:PT,seedNum:IT,seedWord:XT,seedWordHidden:KT,warning:ZT,warningIcon:WT,warningText:JT,profileLinkRow:eR,profileLink:tR};function nR({words:a}){const{hidden:s,countdown:i,copied:r,handleHide:d,handleCopy:f}=UT(a);return o.jsxs("div",{className:Mt.content,children:[o.jsxs("div",{className:Mt.titleRow,children:[o.jsx("h1",{className:Mt.title,children:"СИД ФРАЗА"}),o.jsxs("div",{className:Mt.titleButtons,children:[o.jsx("div",{className:Mt.btnFixed,children:o.jsx(Jt,{variant:"outline",onClick:d,children:s?"ПОКАЗАТЬ":"СКРЫТЬ"})}),o.jsx("div",{className:Mt.btnFixed,children:o.jsx(Jt,{variant:"outline",onClick:f,children:r?"СКОПИРОВАНО":"КОПИРОВАТЬ"})})]})]}),!s&&o.jsxs("div",{className:Mt.subtitle,children:["АВТОМАТИЧЕСКОЕ СКРЫТИЕ ЧЕРЕЗ"," ",o.jsx("span",{className:Mt.countdown,children:i}),"С"]}),o.jsx("div",{className:Mt.seedGrid,children:a.map((m,_)=>o.jsxs("div",{className:Mt.seedCard,children:[o.jsxs("span",{className:Mt.seedNum,children:[_+1,"."]}),o.jsx("span",{className:`${Mt.seedWord} ${s?Mt.seedWordHidden:""}`,children:s?"•••••":m})]},_))}),o.jsxs("div",{className:Mt.warning,children:[o.jsx("span",{className:Mt.warningIcon,children:"⚠️"}),o.jsx("p",{className:Mt.warningText,children:"Никогда не передавайте сид-фразу третьим лицам. Тот, кто знает фразу — владеет кошельком."})]}),o.jsx("div",{className:Mt.profileLinkRow,children:o.jsx(Ft,{to:re.PROFILE,className:Mt.profileLink,children:"Перейти в профиль"})})]})}const aR="_page_1mk6w_1",lR="_main_1mk6w_8",sR="_glow_1mk6w_17",Fd={page:aR,main:lR,glow:sR};function iR(){const{data:a,isLoading:s}=M7(),i=a?a.split(" "):[];return o.jsxs("div",{className:Fd.page,children:[o.jsx(tu,{}),o.jsxs("main",{className:Fd.main,children:[o.jsx("div",{className:Fd.glow}),!s&&o.jsx(nR,{words:i})]})]})}const oR="https://app.kyc.elcsa.ru";function rR(){return qg(!0)}async function qg(a){const s=await tn(),i=await fetch(`${oR}/kyc/create`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":s},body:JSON.stringify({})});if(i.status===401&&a)try{return await ea(),qg(!1)}catch{throw wt.clear(),new Error("Unauthorized")}const r=await i.json();if(!i.ok)throw r;return r}function cR(){const a=_t({mutationFn:rR});return{trigger:a.mutate,data:a.data,isLoading:a.isPending,isError:a.isError}}const uR="_backdrop_1do7s_1",dR="_modal_1do7s_12",fR="_closeBtn_1do7s_22",hR="_body_1do7s_40",mR="_qrBlock_1do7s_47",pR="_qrImage_1do7s_55",gR="_linkBtn_1do7s_63",ls={backdrop:uR,modal:dR,closeBtn:fR,body:hR,qrBlock:mR,qrImage:pR,linkBtn:gR};function _R({data:a,onClose:s}){return o.jsx("div",{className:ls.backdrop,onClick:s,children:o.jsxs("div",{className:ls.modal,onClick:i=>i.stopPropagation(),children:[o.jsx("button",{className:ls.closeBtn,onClick:s,type:"button",children:"×"}),o.jsx("div",{className:ls.body,children:o.jsxs("div",{className:ls.qrBlock,children:[o.jsx("img",{className:ls.qrImage,src:a.qr_code,alt:"QR-код для верификации"}),o.jsx("a",{className:ls.linkBtn,href:a.link,target:"_blank",rel:"noopener noreferrer",children:"Перейти к верификации"})]})})]})})}const vR="_card_omb8e_1",yR="_logo_omb8e_13",bR="_iconWrapper_omb8e_21",xR="_description_omb8e_34",SR="_buttonWrapper_omb8e_42",jR="_error_omb8e_47",ci={card:vR,logo:yR,iconWrapper:bR,description:xR,buttonWrapper:SR,error:jR};function wR(){const{trigger:a,data:s,isLoading:i,isError:r}=cR(),d=Mn(),f=en(),{data:m}=ta({refetchInterval:s?5e3:!1});S.useEffect(()=>{m!=null&&m.kyc_verified&&d(re.SEED_PHRASE,{replace:!0})},[m==null?void 0:m.kyc_verified,d]);const _=()=>{f.invalidateQueries({queryKey:["me"]})};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:ci.card,children:[o.jsx("div",{className:ci.logo,children:o.jsx("img",{src:pa,alt:"ЭКСА"})}),o.jsx("div",{className:ci.iconWrapper,children:o.jsxs("svg",{width:"38",height:"38",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M12 2L3 6v6c0 5.25 3.75 10.15 9 11.35C17.25 22.15 21 17.25 21 12V6l-9-4z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M9 12l2 2 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),o.jsx("p",{className:ci.description,children:"Для продолжения работы необходимо пройти KYC верификацию"}),o.jsx("div",{className:ci.buttonWrapper,children:o.jsx(Qn,{label:i?"Загрузка...":"Подтвердить личность",type:"button",onClick:()=>a(),disabled:i})}),r&&o.jsx("p",{className:ci.error,children:"Произошла ошибка. Попробуй перезагрузить страницу и попробовать снова."})]}),s&&o.jsx(_R,{data:s,onClose:_})]})}const CR="_page_6lnfw_1",NR={page:CR};function ER(){const{data:a,isLoading:s}=ta();return s?null:a!=null&&a.kyc_verified?o.jsx(Ic,{to:re.PROFILE,replace:!0}):o.jsx("div",{className:NR.page,children:o.jsx(wR,{})})}const TR="_card_mzeuq_1",RR="_logo_mzeuq_10",kR="_title_mzeuq_20",AR="_fields_mzeuq_29",MR="_emailRow_mzeuq_35",OR="_error_mzeuq_41",LR="_submitWrapper_mzeuq_48",DR="_footer_mzeuq_52",zR="_back_mzeuq_58",$a={card:TR,logo:RR,title:kR,fields:AR,emailRow:MR,error:OR,submitWrapper:LR,footer:DR,back:zR};function BR(){const[a,s]=S.useState(""),[i,r]=S.useState(!1),[d,f]=S.useState(!1),[m,_]=S.useState(""),[h,p]=S.useState(""),[v,y]=S.useState(""),[x,j]=S.useState(""),[w,C]=S.useState(!1),[N,A]=S.useState(null),z=Mn();async function O(){j(""),f(!0);try{await Q8({email:a}),r(!0),A({status:"success",message:`Код отправлен на ${a}`})}catch{A({status:"error",message:"Не удалось отправить письмо. Проверьте email и попробуйте снова."})}finally{f(!1)}}async function q(Y){if(Y.preventDefault(),j(""),h!==v){j("Пароли не совпадают");return}C(!0);try{await P8({email:a,code:m,new_password:h,confirm_password:v}),z(re.LOGIN)}catch{j("Не удалось изменить пароль. Проверьте код и попробуйте снова.")}finally{C(!1)}}return o.jsxs(o.Fragment,{children:[o.jsxs("form",{className:$a.card,onSubmit:q,children:[o.jsx("div",{className:$a.logo,children:o.jsx("img",{src:pa,alt:"ЭКСА"})}),o.jsx("h1",{className:$a.title,children:"Восстановление пароля"}),o.jsxs("div",{className:$a.fields,children:[o.jsxs("div",{className:$a.emailRow,children:[o.jsx(Le,{label:"E-Mail",type:"email",value:a,onChange:s,placeholder:"example@mail.com",required:!0}),o.jsx(Qn,{label:d?"Отправка...":"Получить код",disabled:d||!a,type:"button",onClick:O})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx(Le,{label:"Код с почты",type:"text",value:m,onChange:_,placeholder:"000 000",required:!0}),o.jsx(Le,{label:"Новый пароль",type:"password",value:h,onChange:p,placeholder:"••••••••",required:!0}),o.jsx(Le,{label:"Повторить пароль",type:"password",value:v,onChange:y,placeholder:"••••••••",required:!0})]})]}),x&&o.jsx("p",{className:$a.error,children:x}),i&&o.jsx("div",{className:$a.submitWrapper,children:o.jsx(Qn,{label:w?"Сохранение...":"Изменить пароль",disabled:w})}),o.jsx("div",{className:$a.footer,children:o.jsx("a",{className:$a.back,onClick:()=>z(re.LOGIN),children:"Вернуться ко входу"})})]}),N&&o.jsx(Ml,{status:N.status,message:N.message,onClose:()=>A(null)})]})}const UR="_page_6lnfw_1",$R={page:UR};function HR(){return o.jsx("div",{className:$R.page,children:o.jsx(BR,{})})}const qR="_main_1a6x9_4",FR="_container_1a6x9_12",GR="_title_1a6x9_18",VR="_subtitle_1a6x9_26",QR="_section_1a6x9_34",YR="_sectionTitle_1a6x9_38",PR="_subheading_1a6x9_47",IR="_text_1a6x9_55",XR="_example_1a6x9_62",KR="_warning_1a6x9_73",ZR="_emphasis_1a6x9_83",WR="_list_1a6x9_87",JR="_definitions_1a6x9_102",ek="_definition_1a6x9_102",tk="_goals_1a6x9_117",nk="_goal_1a6x9_117",ak="_infoBox_1a6x9_2",lk="_linkBlock_1a6x9_166",sk="_button_1a6x9_174",zt={main:qR,container:FR,title:GR,subtitle:VR,section:QR,sectionTitle:YR,subheading:PR,text:IR,example:XR,warning:KR,emphasis:ZR,list:WR,definitions:JR,definition:ek,goals:tk,goal:nk,infoBox:ak,linkBlock:lk,button:sk};function Ip(a){return typeof a=="string"?a:o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a.strong}),a.text?` ${a.text}`:null]})}function ik({block:a}){switch(a.kind){case"text":return o.jsx("p",{className:a.variant?`${zt.text} ${zt[a.variant]}`:zt.text,children:a.text});case"subheading":return o.jsx("h4",{className:zt.subheading,children:a.text});case"list":return o.jsx("ul",{className:zt.list,children:a.items.map((s,i)=>o.jsx("li",{children:Ip(s)},i))});case"definitions":return o.jsx("div",{className:zt.definitions,children:a.items.map((s,i)=>o.jsxs("div",{className:zt.definition,children:[o.jsx("strong",{children:s.term})," ",s.text]},i))});case"goals":return o.jsx("div",{className:zt.goals,children:a.items.map((s,i)=>o.jsxs("div",{className:zt.goal,children:[o.jsx("strong",{children:s.title}),o.jsx("ul",{children:s.items.map((r,d)=>o.jsx("li",{children:r},d))})]},i))});case"infoBox":return o.jsx("div",{className:zt.infoBox,children:a.lines.map((s,i)=>o.jsx("p",{children:Ip(s)},i))});case"link":return o.jsx("div",{className:zt.linkBlock,children:o.jsx("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:zt.button,children:a.text})})}}function tr({doc:a}){return o.jsx("main",{className:zt.main,children:o.jsxs("div",{className:zt.container,children:[o.jsx("h1",{className:zt.title,children:a.title}),a.subtitle&&o.jsx("h2",{className:zt.subtitle,children:a.subtitle}),a.sections.map((s,i)=>o.jsxs("section",{className:zt.section,children:[s.title&&o.jsx("h3",{className:zt.sectionTitle,children:s.title}),s.blocks.map((r,d)=>o.jsx(ik,{block:r},d))]},i))]})})}const ok={title:"ПУБЛИЧНЫЙ ДОГОВОР ОФЕРТЫ",subtitle:"ООО БИТФОРС",sections:[{title:"Агентский договор",blocks:[{kind:"text",text:"Настоящая оферта на заключение агентского договора (далее Оферта, Договор) является публичным предложением Общества с ограниченной ответственностью «БИТФОРС», заключить договор на условиях и в порядке, определенных настоящей Офертой."},{kind:"text",text:"Акцепт оферты производится в соответствии с пунктом 2 статьи 437 Гражданского кодекса Российской Федерации и равносилен заключению агентского договора в письменной форме."}]},{title:"Основные понятия и определения действующего договора",blocks:[{kind:"definitions",items:[{term:"Агент",text:" юридическое лицо или индивидуальный предприниматель, зарегистрированный на территории Российской Федерации, в установленном действующим законодательством порядке."},{term:"Принципал",text:" сторона агентского договора, по поручению которой агент осуществляет юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала."},{term:"Агентский договор",text:" соглашение, по которому агент обязуется за вознаграждение совершать по поручению принципала юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала в соответствии с п. 1 ст. 1005 Гражданского Кодекса Российской Федерации."},{term:"Личный кабинета Агента",text:" ресурс, размещенный на сайте Принципала, предназначенный для взаимодействия Агента и Принципала."},{term:"Отчетный период",text:" период для взаиморасчетов с Агентом, равный одному календарному кварталу с даты активации любой из услуг, предоставляемой Принципалу."},{term:"Отчет о сумме начислений (Отчет)",text:" отчет, формируемый в Личном кабинете Агента на основании данных систем учета Принципала."},{term:"Оферта (Договор)",text:" настоящий документ, который отражает предложение и намерение ООО «БИТФОРС» считать заключенным договор с лицом, которым будет принято предложение на условиях, изложенных ниже."}]}]},{title:"1. Акцепт оферты и заключение агентского договора",blocks:[{kind:"text",text:"Акцепт настоящей Оферты и заключение Агентского договора осуществляется Принципалом в процессе регистрации в Личном кабинете Принципала (на сайте Агента), при прочтении текста настоящей Оферты, путем проставления специальной отметки (галочки) напротив фразы «Я ознакомился с Офертой и принимаю ее условия» и нажатия кнопки «Подписать»."},{kind:"text",text:"Особый порядок принятия условий Оферты путем проставления специальной отметки (галочки) определяется интерфейсом Личного кабинета Принципала. Принципал не может зарегистрироваться в Личном кабинете и получить к нему доступ без подтверждения принятия условий Оферты."},{kind:"text",text:"Принимая Оферту, Принципал подтверждает, что прочел и полностью согласен с документами, размещенными на сайте в разделе, предназначенном для Принципала, которые являются неотъемлемой частью настоящей Оферты (Договора) и обязательны для исполнения Сторонами."}]},{title:"2. Общие положения",blocks:[{kind:"text",text:"Публикуемые на сайте Агента документы (формы, требования, правила и т.п.), устанавливающие порядок и условия выполнения действий, предусмотренных настоящим Договором, являются неотъемлемой частью настоящего Договора и обязательны для исполнения Сторонами. Принципал обязан использовать формы документов, утвержденных Агентом, и не вправе вносить в них какие-либо изменения или дополнения."},{kind:"text",text:"Агент обязуется уведомлять Принципала обо всех изменениях в документах, связанных с исполнением настоящего Договора, путем направления электронных сообщений (через Личный кабинет или на электронную почту Принципала) или размещением уведомлений об изменениях на сайте Агентов в разделе, предназначенном для размещения объявлений."}]},{title:"3. Предмет договора",blocks:[{kind:"text",text:"По настоящему Договору Принципал поручает, а Агент принимает на себя обязательство совершать от имени и за счет Принципала указанные действия, а Принципал обязуется выплатить Агенту вознаграждение за совершенные действия."},{kind:"text",text:"По настоящему Договору Агент совершает следующие действия:"},{kind:"list",items:["Консультирование Принципала об услугах Агента, включая, помимо прочего, порядок активации и оказания услуг, работу в Личном кабинете Принципала и иные дополнительные услуги, оказываемые Агентом;","Совершение сделок и иных юридических действий Агентом от своего имени, но за счёт Принципала."]},{kind:"text",text:"Настоящий Договор действует на территории Российской Федерации и иного иностранного государства."},{kind:"text",text:"Права и обязанности по сделкам, совершенным Агентом во исполнение настоящего Договора, возникают непосредственно у Принципала."}]},{title:"4. Права и обязанности сторон",blocks:[{kind:"text",text:"Агент обязуется совершать действия, составляющие предмет настоящего Договора, в соответствии с законными интересами Принципала, сообщать Принципалу по его требованию все сведения о ходе исполнения настоящего Договора, передавать Принципалу в течение 7 рабочих дней имущество, полученное по сделкам."},{kind:"text",text:"Агент несет ответственность за сохранность документов и персональных данных, переданных ему Принципалом для исполнения настоящего Договора."},{kind:"text",text:"Принципал обязан без промедления принять отчет Агента, все предоставленные им документы, обеспечить Агента документами и материалами, необходимыми для выполнения настоящего Договора, возместить Агенту понесенные расходы и выплатить обусловленное Договором агентское вознаграждение."}]},{title:"5. Агентское вознаграждение и порядок оплаты",blocks:[{kind:"text",text:"Сумма вознаграждения Агента по настоящему Договору составляет:"},{kind:"list",items:["8% от 5 000 до 30 000 рублей","6% от 30 000 до 100 000 рублей","4% от 100 000 до 600 000 рублей"]},{kind:"text",text:"Вознаграждение выплачивается Агенту с момента подписания настоящего Договора об исполнении поручения Агентом от своего имени, но за счет Принципала."},{kind:"text",text:"Принципал возмещает следующие расходы Агента в сумме не более 30 000 рублей на оплату банковских услуг и иных комиссий."}]},{title:"6. Ответственность сторон",blocks:[{kind:"text",text:"В случае нарушения Агентом сроков, установленных Договором для передачи Принципалу полученного имущества, Принципал вправе предъявить требование об уплате неустойки в размере 0,1% от непереданной суммы за каждый день просрочки."},{kind:"text",text:"В случае нарушения Принципалом сроков уплаты вознаграждения или возмещения расходов, Агент вправе предъявить требование об уплате неустойки в размере 0,1% от не уплаченной в срок суммы за каждый день просрочки."}]},{title:"7. Форс-мажор",blocks:[{kind:"text",text:"Стороны освобождаются от ответственности за частичное или полное неисполнение обязательств по настоящему Договору, если это неисполнение явилось следствием возникших после заключения настоящего Договора обстоятельств непреодолимой силы."},{kind:"text",text:"При наступлении форс-мажорных обстоятельств каждая Сторона должна без промедления известить о них в письменном виде другую Сторону с указанием характера обстоятельств и их влияния на исполнение обязательств."}]},{title:"8. Конфиденциальность",blocks:[{kind:"text",text:"Стороны принимают все необходимые меры для того, чтобы их сотрудники, агенты, правопреемники без предварительного согласия другой Стороны не информировали третьих лиц о конфиденциальной информации и персональных данных Сторон настоящего Договора."}]},{title:"9. Изменение и прекращение договора",blocks:[{kind:"text",text:"Настоящий договор вступает в силу с момента его подписания и действует до момента исполнения сторонами своих обязательств по настоящему договору."},{kind:"text",text:"Настоящий Договор может быть изменен или прекращен по письменному соглашению Сторон, а также в других случаях, предусмотренных законодательством Российской Федерации."},{kind:"text",text:"Принципал вправе в любое время отказаться от исполнения настоящего Договора путем направления письменного уведомления Агенту за 3 рабочих дня."}]},{title:"10. Заключительные положения",blocks:[{kind:"text",text:"Ни одна из сторон не вправе передавать свои права и обязанности по настоящему договору третьим лицам без согласия другой стороны."},{kind:"text",text:"Сообщения Стороны могут направлять по факсу, электронной почте или другим способом связи при условии, что он позволяет достоверно установить, от кого исходило сообщение и кому оно адресовано."},{kind:"text",text:"Споры, вытекающие из настоящего Договора, разрешаются в досудебном порядке. При неурегулировании возникших разногласий спор разрешается в Арбитражном суде г. Санкт–Петербурга и Ленинградской области с обязательным соблюдением претензионного порядка."}]},{title:"Реквизиты сторон",blocks:[{kind:"infoBox",lines:["Общество с ограниченной ответственностью «БИТФОРС»","196246, г. Санкт-Петербург, Московский р-н, Московское шоссе, д.25к1 литера в, помещ. 3-Н","ИНН / КПП: 9810001062 / 781001001","ОГРН: 1257800060990","ОКПО / ОКАТО / ОКТМО: 68342261 / 40284000000 / 40377000000","Руководитель: Кленин Михаил Васильевич","Электронная почта: company@bitforcefoundation.ru",'Наименование банка: ФИЛИАЛ "САНКТ-ПЕТЕРБУРГСКИЙ" АО "АЛЬФА-БАНК"',"Корреспондентский счет: 30101810600000000786","БИК: 044030786","Расчетный счет: 40702810632250004861"]}]}]};function rk(){return o.jsxs(o.Fragment,{children:[o.jsx(Di,{}),o.jsx(tr,{doc:ok}),o.jsx(Ss,{})]})}const ck={title:"ПОЛИТИКА ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ",subtitle:"ООО «БИТФОРС»",sections:[{title:"1. Общие положения",blocks:[{kind:"text",text:"Настоящая Политика обработки персональных данных разработана в соответствии с Федеральным законом от 27.07.2006 № 152-ФЗ «О персональных данных» и определяет порядок обработки персональных данных и меры по обеспечению безопасности персональных данных, предпринимаемые ООО «БИТФОРС»."},{kind:"text",text:"Оператор ставит своей важнейшей целью и условием осуществления своей деятельности соблюдение прав и свобод человека и гражданина при обработке его персональных данных, в том числе защиты права на неприкосновенность частной жизни, личную и семейную тайну."},{kind:"text",text:"Настоящая Политика действует в отношении всех персональных данных, которые обрабатываются Оператором с использованием средств автоматизации и без использования таких средств."},{kind:"subheading",text:"1.4. Основные понятия"},{kind:"definitions",items:[{term:"Автоматизированная обработка персональных данных",text:"— обработка персональных данных с помощью средств вычислительной техники."},{term:"Обработка персональных данных",text:"— любое действие или совокупность действий, совершаемых с использованием средств автоматизации или без использования таких средств с персональными данными, включая сбор, запись, систематизацию, накопление, хранение, уточнение, извлечение, использование, передачу, обезличивание, блокирование, удаление, уничтожение."},{term:"Оператор",text:"— юридическое или физическое лицо, организующие и осуществляющие обработку персональных данных."},{term:"Персональные данные",text:"— любая информация, относящаяся к прямо или косвенно определенному или определяемому физическому лицу."},{term:"Пользователь",text:"— любой посетитель веб-сайта https://bitforce-foundation.ru."}]}]},{title:"2. Сведения об операторе",blocks:[{kind:"list",items:["Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»","Сокращенное наименование: ООО «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н","Электронная почта: company@bitforcefoundation.ru","Веб-сайт: https://bitforce-foundation.ru"]}]},{title:"3. Общие цели обработки персональных данных",blocks:[{kind:"subheading",text:"3.1.1. Основная деятельность:"},{kind:"list",items:["Предоставление услуг по конвертации иного имущества","Осуществление операций на криптовалютных рынках","Предоставление услуг в области блокчейн технологий","Обеспечение функционирования интернет-платформы и мобильных приложений"]},{kind:"subheading",text:"3.1.2. Обеспечение безопасности:"},{kind:"list",items:["Предотвращение мошенничества и отмывания денежных средств","Обеспечение безопасности платежных операций","Выполнение требований по противодействию легализации доходов","Идентификация и верификация клиентов"]},{kind:"subheading",text:"3.1.3. Соблюдение законодательства:"},{kind:"list",items:["Исполнение требований российского и международного законодательства","Взаимодействие с контролирующими и правоохранительными органами","Ведение обязательной отчетности и документооборота","Соблюдение налогового законодательства"]}]},{title:"4. Цели сбора персональных данных",blocks:[{kind:"goals",items:[{title:"Регистрация и идентификация пользователей:",items:["Создание учетной записи на веб-сайте","Верификация личности в соответствии с требованиями законодательства","Подтверждение права на осуществление операций"]},{title:"Обработка платежей и финансовых операций:",items:["Осуществление операций по конвертации криптовалют","Проведение расчетов и переводов денежных средств","Ведение учета и истории транзакций"]},{title:"Коммуникация с клиентами:",items:["Предоставление технической поддержки","Уведомления о состоянии операций и счетов","Информирование об изменениях в условиях предоставления услуг"]}]}]},{title:"5. Правовые основания обработки персональных данных",blocks:[{kind:"subheading",text:"5.1.1. Согласие субъекта персональных данных:"},{kind:"list",items:["Обработка персональных данных в маркетинговых целях","Использование файлов cookie и метрик","Персонализация сервисов и предложений"]},{kind:"subheading",text:"5.1.2. Необходимость исполнения договора:"},{kind:"list",items:["Регистрация и ведение учетных записей пользователей","Осуществление финансовых операций и переводов","Предоставление доступа к платформе и сервисам","Техническая поддержка и обслуживание клиентов"]},{kind:"subheading",text:"5.1.3. Соблюдение правовой обязанности:"},{kind:"list",items:["Выполнение требований валютного законодательства","Противодействие легализации доходов, полученных преступным путем","Соблюдение требований по налоговому учету и отчетности"]}]},{title:"6. Объем и категории обрабатываемых персональных данных",blocks:[{kind:"subheading",text:"6.1.1. Пользователи веб-сайта и мобильного приложения:"},{kind:"list",items:["Зарегистрированные пользователи","Посетители сайта без регистрации","Потенциальные клиенты","Бывшие клиенты"]},{kind:"subheading",text:"6.2.1. Идентификационные данные:"},{kind:"list",items:["Фамилия, имя, отчество","Дата рождения","Гражданство"]},{kind:"subheading",text:"6.2.3. Контактная информация:"},{kind:"list",items:["Номера телефонов (мобильный, домашний, рабочий)","Адреса электронной почты"]},{kind:"subheading",text:"6.2.4. Финансовая информация:"},{kind:"list",items:["Номера банковских счетов и карт","Реквизиты кошельков криптовалют","История операций и транзакций","Данные о доходах и источниках средств"]},{kind:"subheading",text:"6.2.5. Техническая информация:"},{kind:"list",items:["IP-адреса устройств","Данные о браузере и операционной системе","Файлы cookie и локальное хранилище","Логи действий на сайте"]}]},{title:"7. Порядок и условия обработки персональных данных",blocks:[{kind:"subheading",text:"7.1. Принципы обработки персональных данных:"},{kind:"list",items:["Обработка осуществляется на законной и справедливой основе","Обработка ограничивается достижением конкретных, заранее определенных целей","Содержание и объем данных соответствуют заявленным целям","Обрабатываемые персональные данные являются точными и актуальными"]},{kind:"subheading",text:"7.4. Сроки обработки персональных данных:"},{kind:"list",items:["Персональные данные обрабатываются в течение времени, необходимого для достижения целей","После достижения целей персональные данные подлежат уничтожению или обезличиванию","Сроки хранения определяются требованиями законодательства"]},{kind:"subheading",text:"7.5. Места обработки персональных данных:"},{kind:"list",items:["Основные серверы и хранилища данных расположены на территории Российской Федерации","Резервные копии могут храниться в дата-центрах на территории РФ"]}]},{title:"8. Актуализация, исправление, удаление и уничтожение персональных данных",blocks:[{kind:"subheading",text:"8.2.2. Процедура исправления:"},{kind:"list",items:["Рассмотрение запроса в течение 30 дней","Проверка обоснованности требования об исправлении","Внесение изменений во все информационные системы","Уведомление субъекта о проведенных исправлениях"]},{kind:"subheading",text:"8.3.2. Процедура удаления:"},{kind:"list",items:["Проверка наличия законных оснований для продолжения обработки","Удаление из всех информационных систем и баз данных","Удаление резервных копий (кроме архивных)","Уведомление субъекта о выполненном удалении"]}]},{title:"9. Ответы на запросы субъектов персональных данных",blocks:[{kind:"subheading",text:"9.1.1. Право на информацию:"},{kind:"list",items:["Подтверждение факта обработки персональных данных","Правовые основания и цели обработки","Применяемые способы обработки","Наименование и местонахождение оператора","Лица, имеющие доступ к персональным данным"]},{kind:"subheading",text:"9.2.2. Сроки рассмотрения:"},{kind:"list",items:["Срок рассмотрения запроса составляет 30 дней с момента получения","Срок может быть продлен на 30 дней при большом объеме информации","О продлении срока субъект уведомляется в течение 30 дней"]},{kind:"subheading",text:"9.4. Плата за предоставление информации:"},{kind:"list",items:["Первый запрос в течение года обрабатывается бесплатно","За повторные запросы может взиматься плата в размере расходов","Субъект уведомляется о размере платы до предоставления информации"]}]},{title:"10. Обеспечение безопасности персональных данных",blocks:[{kind:"subheading",text:"10.1. Правовые меры:"},{kind:"list",items:["Назначение ответственного за организацию обработки персональных данных","Принятие локальных актов по вопросам обработки персональных данных","Ознакомление работников с требованиями законодательства","Применение мер ответственности за нарушение требований"]},{kind:"subheading",text:"10.3. Технические меры:"},{kind:"list",items:["Предотвращение несанкционированного доступа к персональным данным","Своевременное обнаружение фактов несанкционированного доступа","Возможность незамедлительного восстановления персональных данных","Постоянный контроль за обеспечением уровня защищенности"]},{kind:"subheading",text:"10.4. Конкретные технические решения:"},{kind:"list",items:["Использование сертифицированных средств защиты информации","Шифрование персональных данных при передаче и хранении","Применение межсетевых экранов и систем обнаружения вторжений","Резервное копирование и обеспечение отказоустойчивости","Антивирусная защита и обновление программного обеспечения"]}]},{title:"12. Заключительные положения",blocks:[{kind:"subheading",text:"12.2. Жалобы и обращения:"},{kind:"list",items:["Субъекты персональных данных могут обратиться к Оператору по вопросам обработки","Жалобы рассматриваются в установленном законом порядке","При неурегулировании разногласий возможно обращение в Роскомнадзор или суд"]},{kind:"subheading",text:"12.4. Контактная информация для обращений:"},{kind:"infoBox",lines:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н","Электронная почта: company@bitforcefoundation.ru"]}]}]};function uk(){return o.jsxs(o.Fragment,{children:[o.jsx(Di,{}),o.jsx(tr,{doc:ck}),o.jsx(Ss,{})]})}const dk={title:"ПОЛИТИКА ИСПОЛЬЗОВАНИЯ ФАЙЛОВ COOKIE",sections:[{title:"Общие положения и терминология",blocks:[{kind:"text",text:"Настоящая Политика использования файлов cookie устанавливает порядок обработки файлов cookie и содержащихся в них персональных данных ООО «БИТФОРС» при использовании пользователями интернет-ресурса https://bitforce-foundation.ru."},{kind:"text",text:"Файлы cookie — это текстовые файлы небольшого размера, которые устанавливаются на пользовательское устройство при посещении интернет-ресурса или совершении на нем определенных действий. Файлы cookie остаются сохраненными на устройстве даже после покидания ресурса, что позволяет «узнавать» пользователя при последующих посещениях."},{kind:"text",text:"К персональным данным относится не сам файл cookie, а его содержимое — уникальные идентификаторы, IP-адреса, информация о предпочтениях пользователя и другие данные, позволяющие прямо или косвенно идентифицировать физическое лицо."}]},{title:"Оператор персональных данных",blocks:[{kind:"text",text:"Оператором персональных данных, содержащихся в файлах cookie, является:"},{kind:"infoBox",lines:["ООО «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н"]},{kind:"text",text:"Оператор определяет цели обработки персональных данных, их состав, а также действия с персональными данными, включая случаи использования сторонних файлов cookie."}]},{title:"Категории файлов cookie и их назначение",blocks:[{kind:"subheading",text:"1. Строго необходимые (технические) файлы cookie"},{kind:"text",text:"Данные файлы обеспечивают работу интернет-ресурса и предоставление необходимого уровня сервиса: авторизацию, навигацию, отображение контента в соответствии с параметрами устройства, обеспечение безопасности."},{kind:"text",text:"Обработка таких файлов cookie осуществляется на основании п. 5 ч. 1 ст. 6 ФЗ № 152 (заключение и исполнение договора). Согласие на использование строго необходимых файлов cookie не требуется."},{kind:"text",variant:"example",text:"Примеры: файлы сессий (PHPSESSID), настройки безопасности, файлы аутентификации."},{kind:"subheading",text:"2. Функциональные файлы cookie"},{kind:"text",text:"Используются для запоминания пользовательских предпочтений и персонализации взаимодействия с сайтом: сохранение выбранного языка, региона, настроек отображения, размера шрифта."},{kind:"text",text:"Обработка осуществляется на основании согласия субъекта персональных данных, поскольку данная обработка не является строго необходимой для функционирования сайта."},{kind:"text",variant:"example",text:"Примеры: настройки языка интерфейса, предпочтения отображения, настройки доступности."},{kind:"subheading",text:"3. Аналитические файлы cookie"},{kind:"text",text:"Собирают информацию о взаимодействии пользователей с интернет-ресурсом для анализа его использования, выявления популярных разделов, обнаружения ошибок и улучшения пользовательского опыта. Могут содержать персональные данные, включая IP-адреса пользователей."},{kind:"text",text:"Обработка осуществляется на основании согласия субъекта персональных данных."},{kind:"subheading",text:"4. Маркетинговые файлы cookie"},{kind:"text",text:"Используются для отслеживания пользователей в целях персонализированной рекламы, анализа эффективности рекламных кампаний, ретаргетинга."},{kind:"text",text:"Обработка осуществляется исключительно на основании согласия субъекта персональных данных."},{kind:"text",variant:"example",text:"Примеры: пиксели социальных сетей, рекламные идентификаторы, файлы ретаргетинга."}]},{title:"Правовые основания обработки персональных данных",blocks:[{kind:"text",text:"Обработка персональных данных, содержащихся в файлах cookie, осуществляется на следующих правовых основаниях:"},{kind:"list",items:[{strong:"Согласие субъекта персональных данных",text:"— для функциональных, аналитических и маркетинговых файлов cookie"},{strong:"Заключение и исполнение договора",text:"— для строго необходимых файлов cookie, обеспечивающих работу интернет-ресурса"},{strong:"Законные интересы оператора",text:"— в исключительных случаях, когда отсутствуют иные основания"}]}]},{title:"Порядок получения согласия",blocks:[{kind:"subheading",text:"Принципы получения согласия:"},{kind:"list",items:["Согласие должно быть получено до начала обработки персональных данных","Информация об использовании файлов cookie размещается на первом уровне интернет-ресурса","Предоставляется возможность выбора категорий файлов cookie","Используются активные формулировки вместо пассивных"]},{kind:"subheading",text:"Критерии действительного согласия:"},{kind:"list",items:[{strong:"Добровольность",text:"— согласие дается по свободной воле субъекта"},{strong:"Конкретность",text:"— четко определены цели обработки"},{strong:"Информированность",text:"— предоставлена полная информация об обработке"},{strong:"Однозначность",text:"— согласие выражено в недвусмысленной форме"}]}]},{title:"Сторонние файлы cookie",blocks:[{kind:"subheading",text:"Использование сторонних сервисов:"},{kind:"text",text:"Наш интернет-ресурс использует файлы cookie сторонних сервисов, включая:"},{kind:"list",items:["Яндекс.Метрика (ООО «ЯНДЕКС», Россия)","Социальные сети и сервисы интеграции"]},{kind:"subheading",text:"Обеспечение защиты:"},{kind:"list",items:["Получено согласие на передачу","Применяются дополнительные меры защиты данных","Контролируется соблюдение принципов обработки персональных данных получателями"]}]},{title:"Сроки обработки и хранения",blocks:[{kind:"subheading",text:"Категории по срокам хранения:"},{kind:"list",items:["Сеансовые cookie — удаляются автоматически при закрытии браузера","Постоянные cookie — хранятся установленный период или до удаления пользователем"]},{kind:"subheading",text:"Конкретные сроки:"},{kind:"list",items:["Необходимые файлы cookie — до 12 месяцев","Функциональные файлы cookie — до 12 месяцев","Аналитические файлы cookie — до 24 месяцев","Маркетинговые файлы cookie — до 24 месяцев"]},{kind:"text",text:"По истечении установленных сроков файлы cookie удаляются автоматически. Пользователь может удалить файлы cookie досрочно через настройки браузера или отозвать согласие на их обработку."}]},{title:"Права субъектов персональных данных",blocks:[{kind:"subheading",text:"Право на информацию:"},{kind:"list",items:["Получение информации о обработке персональных данных","Сведения о правовых основаниях и целях обработки","Информация о сроках обработки и составе данных"]},{kind:"subheading",text:"Право на доступ:"},{kind:"list",items:["Получение подтверждения факта обработки","Ознакомление с обрабатываемыми персональными данными","Получение информации об источниках персональных данных"]},{kind:"subheading",text:"Право на уточнение, блокирование, удаление:"},{kind:"list",items:["Требование уточнения неточных данных","Блокирование недостоверных данных","Удаление незаконно полученных данных"]},{kind:"subheading",text:"Право на отзыв согласия:"},{kind:"list",items:["Отзыв согласия в любое время","Прекращение обработки после отзыва согласия","Сохранение права на обжалование действий оператора"]}]},{title:"Способы управления файлами cookie",blocks:[{kind:"subheading",text:"Управление через настройки сайта:"},{kind:"list",items:["Использование баннера согласия на файлы cookie","Изменение настроек в любое время через интерфейс сайта","Отзыв согласия на использование отдельных категорий файлов cookie"]},{kind:"subheading",text:"Управление через браузер:"},{kind:"text",text:"Большинство браузеров позволяют контролировать файлы cookie:"},{kind:"list",items:["Блокировка — запрет установки новых файлов cookie","Удаление — очистка существующих файлов cookie","Уведомления — получение предупреждений при установке файлов cookie","Селективная настройка — разрешение файлов cookie только для определенных сайтов"]},{kind:"subheading",text:"Инструкции для популярных браузеров:"},{kind:"list",items:["Google Chrome: Настройки → Конфиденциальность и безопасность → Файлы cookie","Mozilla Firefox: Настройки → Приватность и Защита → Файлы cookie","Safari: Настройки → Конфиденциальность → Файлы cookie","Microsoft Edge: Настройки → Файлы cookie и разрешения сайтов"]},{kind:"text",variant:"warning",text:"Блокировка необходимых файлов cookie может привести к ограничению функциональности интернет-ресурса."}]},{title:"Меры безопасности",blocks:[{kind:"text",text:"Оператор применяет правовые, организационные и технические меры для защиты персональных данных:"},{kind:"subheading",text:"Правовые меры:"},{kind:"list",items:["Назначение ответственного за организацию обработки персональных данных","Ознакомление сотрудников с требованиями законодательства","Заключение соглашений о неразглашении персональных данных"]},{kind:"subheading",text:"Организационные меры:"},{kind:"list",items:["Определение перечня лиц, допущенных к обработке персональных данных","Установление правил доступа к персональным данным","Контроль за соблюдением требований по защите персональных данных"]},{kind:"subheading",text:"Технические меры:"},{kind:"list",items:["Использование средств защиты информации","Применение криптографических средств защиты","Обеспечение целостности и доступности персональных данных","Регулярное обновление систем защиты информации"]}]},{title:"Контактная информация и обращения",blocks:[{kind:"text",text:"Для реализации прав субъекта персональных данных обращайтесь к нам:"},{kind:"infoBox",lines:["ООО «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н","Email компании: company@bitforcefoundation.ru"]},{kind:"subheading",text:"Порядок рассмотрения обращений:"},{kind:"list",items:["Срок рассмотрения обращений — до 30 дней с момента получения","Обращения рассматриваются в письменной форме","Ответ направляется способом, указанным в обращении","При отказе в удовлетворении требований указываются мотивированные основания"]}]}]};function fk(){return o.jsxs(o.Fragment,{children:[o.jsx(Di,{}),o.jsx(tr,{doc:dk}),o.jsx(Ss,{})]})}const hk={title:"СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ",subtitle:"ООО «БИТФОРС»",sections:[{title:"Преамбула",blocks:[{kind:"text",text:"Я, субъект персональных данных, действуя своей волей и в своем интересе, в соответствии с требованиями Федерального закона от 27.07.2006 № 152-ФЗ «О персональных данных», предоставляю ООО «БИТФОРС» согласие на обработку моих персональных данных на условиях и для целей, определенных настоящим Согласием."}]},{title:"1. Сведения об операторе",blocks:[{kind:"infoBox",lines:["Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н","Электронная почта: company@bitforcefoundation.ru","Веб-сайт: https://bitforce-foundation.ru"]}]},{title:"2. Правовые основания обработки",blocks:[{kind:"text",text:"Настоящее согласие предоставляется на основании пункта 1 части 1 статьи 6 Федерального закона «О персональных данных» и является правовым основанием для обработки персональных данных Оператором."},{kind:"text",text:"Согласие дается добровольно, своей волей и в своих интересах."},{kind:"text",text:"Субъект персональных данных понимает последствия предоставления согласия, включая возможные риски, связанные с обработкой персональных данных."}]},{title:"3. Цели обработки персональных данных",blocks:[{kind:"subheading",text:"3.1. Основные цели:"},{kind:"list",items:["Регистрация и ведение учетной записи на веб-сайте и в мобильном приложении","Идентификация и верификация личности в соответствии с требованиями законодательства","Предоставление услуг по обмену криптовалют и электронных денежных средств","Проведение финансовых операций, переводов и расчетов","Ведение учета и истории операций"]},{kind:"subheading",text:"3.2. Дополнительные цели:"},{kind:"list",items:["Обеспечение безопасности операций и предотвращение мошенничества","Выполнение требований по противодействию легализации доходов","Соблюдение требований валютного, налогового и иного применимого законодательства","Предоставление технической поддержки и клиентского сервиса","Рассылка уведомлений о состоянии операций и изменениях в условиях"]},{kind:"subheading",text:"3.3. Маркетинговые цели (при дополнительном согласии):"},{kind:"list",items:["Направление информационных и рекламных материалов","Проведение маркетинговых исследований и опросов","Персонализация предложений и услуг","Анализ предпочтений и поведения для улучшения сервисов"]},{kind:"subheading",text:"3.4. Аналитические цели:"},{kind:"list",items:["Анализ использования веб-сайта и мобильного приложения","Улучшение качества предоставляемых услуг","Разработка новых продуктов и сервисов","Создание статистических отчетов в обезличенном виде"]}]},{title:"4. Перечень персональных данных",blocks:[{kind:"subheading",text:"4.1. Идентификационные данные:"},{kind:"list",items:["Фамилия, имя, отчество","Дата рождения","Гражданство"]},{kind:"subheading",text:"4.2. Документы, удостоверяющие личность:"},{kind:"list",items:["Серия и номер паспорта гражданина Российской Федерации","Дата выдачи и код подразделения","Адрес регистрации по месту жительства","Цифровые копии (сканы) документов"]},{kind:"subheading",text:"4.3. Контактная информация:"},{kind:"list",items:["Номера телефонов (мобильный, домашний, рабочий)","Адреса электронной почты","Почтовые адреса (фактического проживания, для корреспонденции)"]},{kind:"subheading",text:"4.4. Финансовая информация:"},{kind:"list",items:["Номера банковских счетов и реквизиты банковских карт","Реквизиты криптовалютных кошельков и адресов","Информация о доходах и источниках происхождения денежных средств","История финансовых операций и транзакций"]},{kind:"subheading",text:"4.5. Техническая информация:"},{kind:"list",items:["IP-адреса устройств, с которых осуществляется доступ к сервисам","Информация о браузере, операционной системе и устройстве","Файлы cookie и данные локального хранилища","Логи действий и история использования сервисов"]},{kind:"subheading",text:"4.6. Дополнительная информация:"},{kind:"list",items:["Фотографии для процедур верификации","Видеозаписи процедур видеоидентификации","Биометрические данные (при использовании соответствующих технологий)","Информация о семейном положении и профессиональной деятельности"]}]},{title:"5. Перечень действий с персональными данными",blocks:[{kind:"text",text:"Согласие распространяется на следующие действия (операции) с персональными данными:"},{kind:"list",items:["Сбор, запись и первичная обработка персональных данных","Накопление и систематизация в базах данных","Создание резервных копий и архивирование","Извлечение, использование и анализ данных","Уточнение, обновление и актуализация информации","Передача данных третьим лицам","Обезличивание и удаление данных","Автоматизированная обработка и профилирование"]}]},{title:"6. Лица, которым могут быть переданы персональные данные",blocks:[{kind:"subheading",text:"6.1. Сотрудники Оператора:"},{kind:"list",items:["Уполномоченные сотрудники, непосредственно участвующие в обработке","Сотрудники службы безопасности и комплаенса","Сотрудники технической поддержки","Руководящий состав в рамках их полномочий"]},{kind:"subheading",text:"6.2. Государственные и муниципальные органы:"},{kind:"list",items:["Федеральная служба по финансовому мониторингу","Федеральная налоговая служба","Правоохранительные органы (при наличии законных требований)","Суды и органы исполнения судебных решений"]},{kind:"subheading",text:"6.3. Партнеры и контрагенты:"},{kind:"list",items:["Банки и платежные системы","Операторы электронных денежных средств","Поставщики технологических решений","Аудиторские и консалтинговые организации"]}]},{title:"7. Сроки обработки персональных данных",blocks:[{kind:"subheading",text:"7.1. Общие принципы:"},{kind:"text",text:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей обработки. После достижения целей данные подлежат уничтожению или обезличиванию."},{kind:"subheading",text:"7.2. Конкретные сроки обработки:"},{kind:"list",items:[{strong:"Данные активных клиентов:",text:"в течение всего периода отношений плюс 5 лет после прекращения"},{strong:"Данные для идентификации:",text:"5 лет с момента прекращения отношений"},{strong:"Финансовая информация:",text:"5 лет с даты совершения операции"},{strong:"Маркетинговые данные:",text:"до отзыва согласия, но не более 3 лет"},{strong:"Техническая информация:",text:"1 год для безопасности, 6 месяцев для логов"}]}]},{title:"8. Права субъекта персональных данных",blocks:[{kind:"subheading",text:"8.1. Право на информацию:"},{kind:"list",items:["Получение подтверждения факта обработки персональных данных","Получение информации о целях и способах обработки","Информация о сроках обработки и составе данных","Сведения о лицах, которым передаются данные"]},{kind:"subheading",text:"8.2. Право на доступ:"},{kind:"list",items:["Получение копий обрабатываемых персональных данных","Ознакомление с историей обработки и изменений","Получение информации об источниках персональных данных"]},{kind:"subheading",text:"8.3. Право на исправление и удаление:"},{kind:"list",items:["Требование исправления неточных или неполных данных","Требование удаления персональных данных при наличии оснований","Удаление данных после отзыва согласия"]},{kind:"subheading",text:"8.4. Право на отзыв согласия:"},{kind:"list",items:["Согласие может быть отозвано в любое время","Отзыв оформляется в письменной форме","После отзыва обработка прекращается в разумные сроки"]},{kind:"subheading",text:"8.5. Право на обжалование:"},{kind:"list",items:["Обращение к Оператору с жалобами на действия по обработке данных","Обращение в Роскомнадзор или его территориальные органы","Обращение в суд для защиты нарушенных прав"]},{kind:"subheading",text:"8.6. Порядок реализации прав:"},{kind:"list",items:["Обращения направляются на адрес: company@bitforcefoundation.ru","Обращения рассматриваются в течение 30 дней","При необходимости срок может быть продлен на 30 дней"]}]},{title:"9. Заключительные положения",blocks:[{kind:"subheading",text:"9.1. Действие согласия:"},{kind:"list",items:["Согласие действует с момента его предоставления","Согласие действует до его отзыва или до достижения целей обработки","При существенных изменениях целей требуется новое согласие"]},{kind:"subheading",text:"9.2. Форма предоставления согласия:"},{kind:"list",items:["Согласие может быть предоставлено в письменной форме","Согласие может быть предоставлено в электронной форме","Согласие может выражаться путем совершения конклюдентных действий"]},{kind:"subheading",text:"9.3. Последствия непредоставления согласия:"},{kind:"list",items:["Отказ в предоставлении согласия может повлечь невозможность регистрации","Отказ может ограничить доступ к отдельным услугам","Отказ в согласии на маркетинг не влияет на основные услуги","Субъект вправе предоставить частичное согласие"]},{kind:"subheading",text:"9.4. Контактная информация:"},{kind:"infoBox",lines:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н","Электронная почта: company@bitforcefoundation.ru","Ответственное лицо: Кленин Михаил Васильевич","Официальный сайт: https://bitforce-foundation.ru"]},{kind:"subheading",text:"9.5. Подтверждение понимания:"},{kind:"text",variant:"emphasis",text:"Предоставляя настоящее согласие, я подтверждаю, что:"},{kind:"list",items:["Ознакомлен с содержанием согласия и понимаю его значение","Понимаю цели и способы обработки моих персональных данных","Знаю о своих правах и способах их реализации","Согласие предоставляется добровольно и осознанно","Имею возможность отозвать согласие в любое время"]}]}]};function mk(){return o.jsxs(o.Fragment,{children:[o.jsx(Di,{}),o.jsx(tr,{doc:hk}),o.jsx(Ss,{})]})}const pk={title:"Реестр операторов персональных данных",subtitle:"ООО «БИТФОРС»",sections:[{blocks:[{kind:"text",text:"Информация об операторе персональных данных размещена в реестре операторов персональных данных Федеральной службы по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор)."},{kind:"text",text:"Вы можете просмотреть информацию об операторе в реестре Роскомнадзора, перейдя по ссылке ниже:"},{kind:"link",href:"https://pd.rkn.gov.ru/operators-registry/operators-list/?act=search&name_full=%D0%91%D0%B8%D1%82%D1%84%D0%BE%D1%80%D1%81&inn=9810001062&regn=",text:"Открыть реестр Роскомнадзора"},{kind:"text",text:"Реестр содержит информацию об операторах персональных данных, включая сведения о целях и методах обработки персональных данных, а также меры по обеспечению безопасности персональных данных."}]},{title:"Информация об операторе",blocks:[{kind:"infoBox",lines:[{strong:"Наименование:",text:"ООО «БИТФОРС»"},{strong:"ИНН:",text:"9810001062"},{strong:"ОГРН:",text:"1257800060990"},{strong:"Юридический адрес:",text:"196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"},{strong:"Контактная информация:",text:"company@bitforcefoundation.ru"}]}]},{title:"О Роскомнадзоре",blocks:[{kind:"text",text:"Федеральная служба по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор) — это федеральный орган исполнительной власти, осуществляющий функции по контролю и надзору в области персональных данных."},{kind:"text",text:"Роскомнадзор ведет реестр операторов персональных данных в соответствии с требованиями Федерального закона «О персональных данных». Реестр является открытой информационной системой и доступен всем заинтересованным лицам."}]}]};function gk(){return o.jsxs(o.Fragment,{children:[o.jsx(Di,{}),o.jsx(tr,{doc:pk}),o.jsx(Ss,{})]})}function Xp(a){return a?new Date(a).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function _k(a){return a?a.length<=16?a:`${a.slice(0,8)}${a.slice(-6)}`:"—"}function Kp(a){return Number(a).toLocaleString("ru-RU")}const vk={pending:"Ожидание",money_accepted:"Деньги получены",web3_processing:"Обработка в сети",web3_hash_error:"Ошибка хэша",web3_balance_problem:"Проблема с балансом",receipt_error:"Ошибка чека",completed:"Завершён",usdt_delivered:"USDT отправлен"},yk="_badge_1d3cq_1",bk="_status_pending_1d3cq_10",xk="_status_completed_1d3cq_15",Sk="_status_money_accepted_1d3cq_20",jk="_status_web3_processing_1d3cq_25",wk="_status_web3_hash_error_1d3cq_30",Ck="_status_web3_balance_problem_1d3cq_35",Nk="_status_receipt_error_1d3cq_40",Ek="_status_usdt_delivered_1d3cq_45",Zp={badge:yk,status_pending:bk,status_completed:xk,status_money_accepted:Sk,status_web3_processing:jk,status_web3_hash_error:wk,status_web3_balance_problem:Ck,status_receipt_error:Nk,status_usdt_delivered:Ek};function Wp({status:a}){return o.jsx("span",{className:`${Zp.badge} ${Zp[`status_${a}`]??""}`,children:vk[a]??a})}const Tk="_button_1q7wx_1",Rk={button:Tk};function kk({value:a}){const[s,i]=S.useState(!1);function r(){navigator.clipboard.writeText(a).then(()=>{i(!0),setTimeout(()=>i(!1),1500)})}return o.jsx("button",{className:Rk.button,onClick:r,type:"button",title:"Скопировать",children:s?o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"20 6 9 17 4 12"})}):o.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),o.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}const Ak="_item_1ymly_1",Mk="_summary_1ymly_8",Ok="_summaryLeft_1ymly_25",Lk="_summaryDate_1ymly_34",Dk="_summaryRight_1ymly_41",zk="_amount_1ymly_48",Bk="_totalAmount_1ymly_56",Uk="_chevron_1ymly_64",$k="_chevronOpen_1ymly_70",Hk="_bodyOuter_1ymly_74",qk="_bodyOuterOpen_1ymly_80",Fk="_bodyInner_1ymly_84",Gk="_body_1ymly_74",Vk="_col_1ymly_96",Qk="_colTitle_1ymly_101",Yk="_infoRow_1ymly_110",Pk="_infoRowTotal_1ymly_123",Ik="_infoLabel_1ymly_128",Xk="_infoValue_1ymly_129",Kk="_infoValueRow_1ymly_148",Zk="_infoLink_1ymly_154",De={item:Ak,summary:Mk,summaryLeft:Ok,summaryDate:Lk,summaryRight:Dk,amount:zk,totalAmount:Bk,chevron:Uk,chevronOpen:$k,bodyOuter:Hk,bodyOuterOpen:qk,bodyInner:Fk,body:Gk,col:Vk,colTitle:Qk,infoRow:Yk,infoRowTotal:Pk,infoLabel:Ik,infoValue:Xk,infoValueRow:Kk,infoLink:Zk};function Wk({item:a}){const[s,i]=S.useState(!1),{order:r,payment:d}=a;return o.jsxs("div",{className:De.item,children:[o.jsxs("button",{className:De.summary,onClick:()=>i(f=>!f),type:"button","aria-expanded":s,children:[o.jsxs("div",{className:De.summaryLeft,children:[o.jsx("span",{className:De.summaryDate,children:Xp(r.created_at)}),d&&o.jsx(Wp,{status:d.status})]}),o.jsxs("div",{className:De.summaryRight,children:[o.jsxs("span",{className:De.amount,children:[r.usdt_amount," USDT"]}),o.jsxs("span",{className:De.totalAmount,children:[Kp(r.total_price)," ₽"]}),o.jsx("svg",{className:`${De.chevron} ${s?De.chevronOpen:""}`,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),o.jsx("div",{className:`${De.bodyOuter} ${s?De.bodyOuterOpen:""}`,children:o.jsx("div",{className:De.bodyInner,children:o.jsxs("div",{className:De.body,children:[o.jsxs("div",{className:De.col,children:[o.jsx("p",{className:De.colTitle,children:"Заказ"}),o.jsx(ss,{label:"Сумма USDT",value:`${r.usdt_amount} USDT`}),o.jsx(ss,{label:"Курс обмена",value:`1 USDT = ${r.usdt_exchange_rate}`}),o.jsx(ss,{label:"Сервисный сбор",value:`${r.service_fee} USDT`}),o.jsx(ss,{label:"Комиссия за газ",value:`${r.gas_fee} USDT`}),o.jsx(ss,{label:"Итого к оплате",value:`${Kp(r.total_price)}`,emphasised:!0})]}),o.jsxs("div",{className:De.col,children:[o.jsx("p",{className:De.colTitle,children:"Платёж"}),d?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:De.infoRow,children:[o.jsx("span",{className:De.infoLabel,children:"Статус"}),o.jsx(Wp,{status:d.status})]}),o.jsx(ss,{label:"Оплачено",value:d.itpay_paid_amount||"—"}),o.jsx(ss,{label:"Истекает",value:Xp(d.expired_date)}),o.jsxs("div",{className:De.infoRow,children:[o.jsx("span",{className:De.infoLabel,children:"Хэш транзакции"}),o.jsxs("span",{className:De.infoValueRow,children:[o.jsx("span",{className:De.infoValue,title:d.web3_transaction_hash||void 0,children:_k(d.web3_transaction_hash)}),d.web3_transaction_hash&&o.jsx(kk,{value:d.web3_transaction_hash})]})]}),o.jsxs("div",{className:De.infoRow,children:[o.jsx("span",{className:De.infoLabel,children:"Чек"}),d.receipt_cloudekassir_link?o.jsx("a",{href:d.receipt_cloudekassir_link,target:"_blank",rel:"noopener noreferrer",className:De.infoLink,children:"Открыть →"}):o.jsx("span",{className:De.infoValue,children:"—"})]})]}):o.jsx("div",{className:De.infoRow,children:o.jsx("span",{className:De.infoValue,children:"—"})})]})]})})})]})}function ss({label:a,value:s,emphasised:i}){return o.jsxs("div",{className:`${De.infoRow} ${i?De.infoRowTotal:""}`,children:[o.jsx("span",{className:De.infoLabel,children:a}),o.jsx("span",{className:De.infoValue,children:s})]})}const Jk="_list_gxp0d_1",eA="_empty_gxp0d_9",tA="_status_gxp0d_16",nA="_statusError_gxp0d_23",aA="_loadMore_gxp0d_30",lA="_loadMoreBtn_gxp0d_38",ui={list:Jk,empty:eA,status:tA,statusError:nA,loadMore:aA,loadMoreBtn:lA};function sA(){const{data:a,isLoading:s,isError:i,fetchNextPage:r,hasNextPage:d,isFetchingNextPage:f}=T6(),m=(a==null?void 0:a.pages.flatMap(_=>_.orders))??[];return s?o.jsx("p",{className:ui.status,children:"Загрузка..."}):i?o.jsx("p",{className:ui.statusError,children:"Не удалось загрузить транзакции. Попробуйте обновить страницу."}):m.length===0?o.jsx("p",{className:ui.empty,children:"У вас пока нет транзакций."}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:ui.list,children:m.map(_=>o.jsx(Wk,{item:_},_.order.id))}),d&&o.jsx("div",{className:ui.loadMore,children:o.jsx("button",{className:ui.loadMoreBtn,onClick:()=>r(),disabled:f,type:"button",children:f?"Загрузка...":"Загрузить ещё"})})]})}const iA="_status_1yzxr_1",oA="_statusError_1yzxr_8",rA="_empty_1yzxr_15",cA="_tableWrap_1yzxr_22",uA="_table_1yzxr_22",dA="_mono_1yzxr_53",fA="_statusBadge_1yzxr_57",Ha={status:iA,statusError:oA,empty:rA,tableWrap:cA,table:uA,mono:dA,statusBadge:fA};function Jp(a,s){return a?`${a} ${s}`:"—"}function hA(a){if(!a)return"—";const s=new Date(a);return Number.isNaN(s.getTime())?"—":s.toLocaleString("ru-RU")}function mA(){const{data:a,isLoading:s,isError:i}=a7();return s?o.jsx("p",{className:Ha.status,children:"Загрузка..."}):i?o.jsx("p",{className:Ha.statusError,children:"Не удалось загрузить заявки. Попробуйте обновить страницу."}):!a||a.items.length===0?o.jsx("p",{className:Ha.empty,children:"У вас пока нет заявок."}):o.jsx("div",{className:Ha.tableWrap,children:o.jsxs("table",{className:Ha.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"USDT"}),o.jsx("th",{children:"Сумма ₽"}),o.jsx("th",{children:"Курс"}),o.jsx("th",{children:"Статус"}),o.jsx("th",{children:"Создана"})]})}),o.jsx("tbody",{children:a.items.map(r=>o.jsxs("tr",{children:[o.jsx("td",{className:Ha.mono,children:Jp(r.usdt_amount,"USDT")}),o.jsx("td",{className:Ha.mono,children:Jp(r.rub_amount,"₽")}),o.jsx("td",{className:Ha.mono,children:r.exchange_rate??"—"}),o.jsx("td",{children:o.jsx("span",{className:Ha.statusBadge,children:r.status})}),o.jsx("td",{children:hA(r.created_at)})]},r.id))})]})})}const pA="_inner_1umld_1",gA="_glow_1umld_9",_A="_title_1umld_21",vA="_tabs_1umld_30",yA="_tab_1umld_30",di={inner:pA,glow:gA,title:_A,tabs:vA,tab:yA};function bA(){const{data:a}=ta(),[s,i]=S.useState("transactions"),r=!!a&&a.account_type!=="individual",d=r?s:"transactions";return o.jsxs("div",{className:di.inner,children:[o.jsx("div",{className:di.glow}),o.jsx("h1",{className:di.title,children:"Транзакции"}),r&&o.jsxs("div",{className:di.tabs,children:[o.jsx("button",{type:"button",className:di.tab,"data-active":d==="transactions"||void 0,onClick:()=>i("transactions"),children:"Транзакции"}),o.jsx("button",{type:"button",className:di.tab,"data-active":d==="requests"||void 0,onClick:()=>i("requests"),children:"Заявки"})]}),d==="transactions"?o.jsx(sA,{}):o.jsx(mA,{})]})}const Fg={ETH:{symbol:"ETH",aprLabel:"APR",protocol:"Lido"},SOL:{symbol:"SOL",aprLabel:"APY",protocol:"Нативный"}},xA=[{chain:"ETH",label:"ETH · Lido"},{chain:"SOL",label:"SOL · нативный"}],SA={active:{label:"Активна",variant:"active"},activating:{label:"Активируется",variant:"muted"},deactivating:{label:"Деактивация",variant:"muted"},inactive:{label:"Завершена",variant:"ready"}},jA="_toggle_xc9o8_1",wA="_tab_xc9o8_6",CA="_active_xc9o8_18",NA="_inactive_xc9o8_23",Rc={toggle:jA,tab:wA,active:CA,inactive:NA};function EA({value:a,onChange:s}){return o.jsx("div",{className:Rc.toggle,children:xA.map(({chain:i,label:r})=>o.jsx("button",{className:`${Rc.tab} ${a===i?Rc.active:Rc.inactive}`,onClick:()=>s(i),children:r},i))})}const Gg="https://app.cryptowallet.elcsa.ru",ys={ETH:18,SOL:9};async function D2(a,s=!0){const i=await tn(),r=wt.get(),d=await fetch(`${Gg}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&s)try{return await ea(),D2(a,!1)}catch{throw wt.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function Ol(a,s,i=!0,r={}){const d=await tn(),f=wt.get(),m=await fetch(`${Gg}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(s)});if(m.status===401&&i)try{return await ea(),Ol(a,s,!1,r)}catch{throw wt.clear(),new Error("Unauthorized")}const _=await m.json();if(!m.ok)throw _;return _}function au(){return{"Idempotency-Key":crypto.randomUUID()}}async function TA(a,s){const i=Jn(s,ys[a]);if(a==="ETH"){const m=(await Ol("/api/wallets/ETH/stake/quote",{amount:i})).data;return{chain:a,amountHuman:m.amountWeiHuman,feeHuman:m.appFeeWeiHuman,afterFeeHuman:m.stakeAmountWeiHuman,resultHuman:m.expectedStEthWeiHuman,aprPercent:m.aprPercent}}const d=(await Ol("/api/wallets/SOL/stake/quote",{amount:i})).data;return{chain:a,amountHuman:d.amountLamportsHuman,feeHuman:d.appFeeLamportsHuman,afterFeeHuman:d.stakeLamportsHuman,resultHuman:d.stakeLamportsHuman,aprPercent:d.estApyPercent,validator:d.validator}}async function RA(a,s){const i=Jn(s,ys[a]);await Ol(`/api/wallets/${a}/stake`,{amount:i},!0,au())}async function kA(){return(await D2("/api/wallets/ETH/stake/positions")).data}async function AA(){return(await D2("/api/wallets/SOL/stake/positions")).data}async function MA(a,s){const i=Jn(a,ys.ETH);return(await Ol("/api/wallets/ETH/unstake",{amount:i,mode:s},!0,au())).data}async function OA(a){return(await Ol("/api/wallets/SOL/unstake",{stakeAccount:a},!0,au())).data}async function LA(a){await Ol("/api/wallets/ETH/unstake/claim",{requestId:a},!0,au())}async function DA(a,s){return(await Ol(`/api/wallets/${a}/op-cost`,{token:a,amountHuman:s})).data}function $o(a){if(a&&typeof a=="object"&&"error"in a){const s=a.error;if(typeof s=="string")return s}return a instanceof Error?a.message==="Unauthorized"?"Сессия истекла — перезагрузите страницу.":a.message:"Произошла ошибка. Попробуйте ещё раз."}function zA(a,s){if(a.chain==="ETH"){const r=BigInt(Jn(a.stEthBalanceWeiHuman,ys.ETH)),d=BigInt(Jn(s,ys.ETH));return{...a,stEthBalanceWeiHuman:Vo((r+d).toString(),ys.ETH),optimistic:!0}}const i={stakeAccount:"pending",lamportsHuman:s,state:"activating",validator:a.validator,optimistic:!0};return{...a,positions:[i,...a.positions]}}function BA(a,s){const i=parseFloat(s);return vt({queryKey:["staking","quote",a,s],queryFn:()=>TA(a,s),enabled:Number.isFinite(i)&&i>0,staleTime:15e3,retry:!1})}function UA(a,s){const i=parseFloat(s);return vt({queryKey:["staking","op-cost",a,s],queryFn:()=>DA(a,s),enabled:Number.isFinite(i)&&i>0,staleTime:15e3,retry:!1})}function $A(a){return vt({queryKey:["staking","positions",a],queryFn:()=>a==="ETH"?kA():AA(),staleTime:3e4,retry:!1})}function HA(){const a=en();return _t({mutationFn:({chain:s,amountHuman:i})=>RA(s,i),onMutate:async({chain:s,amountHuman:i})=>{const r=["staking","positions",s];await a.cancelQueries({queryKey:r});const d=a.getQueryData(r);return d&&a.setQueryData(r,zA(d,i)),{key:r,previous:d}},onError:(s,i,r)=>{r!=null&&r.previous&&a.setQueryData(r.key,r.previous)},onSettled:(s,i,{chain:r})=>{a.invalidateQueries({queryKey:["wallet","balance",r]}),setTimeout(()=>{a.invalidateQueries({queryKey:["staking","positions",r]}),a.invalidateQueries({queryKey:["wallet","balance",r]})},6e3)}})}function qA(){const a=en();return _t({mutationFn:s=>s.chain==="ETH"?MA(s.amountHuman,s.mode):OA(s.stakeAccount),onSuccess:(s,i)=>{a.invalidateQueries({queryKey:["staking","positions",i.chain]}),a.invalidateQueries({queryKey:["wallet","balance",i.chain]})}})}function FA(){const a=en();return _t({mutationFn:s=>LA(s),onSuccess:()=>{a.invalidateQueries({queryKey:["staking","positions","ETH"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})}})}const GA="_panel_jl9ez_1",VA="_row_jl9ez_13",QA="_label_jl9ez_26",YA="_value_jl9ez_31",PA="_success_jl9ez_39",IA="_highlight_jl9ez_43",XA="_rowTotal_jl9ez_48",KA="_valueLg_jl9ez_55",is={panel:GA,row:VA,label:QA,value:YA,success:PA,highlight:IA,rowTotal:XA,valueLg:KA};function ZA({rows:a,loading:s}){return o.jsx("div",{className:is.panel,"data-loading":s?"true":void 0,children:a.map(({label:i,value:r,accent:d,emphasis:f})=>o.jsxs("div",{className:`${is.row} ${f?is.rowTotal:""}`,children:[o.jsx("span",{className:is.label,children:i}),o.jsx("span",{className:`${is.value} ${f?is.valueLg:""} ${d?is[d]:""}`,children:r})]},i))})}const WA="_wrapper_1y6dk_1",JA="_pillsOuter_1y6dk_7",eM="_card_1y6dk_12",tM="_top_1y6dk_19",nM="_tag_1y6dk_27",aM="_right_1y6dk_35",lM="_apr_1y6dk_41",sM="_pillsInner_1y6dk_52",iM="_pill_1y6dk_7",oM="_mid_1y6dk_75",rM="_input_1y6dk_83",cM="_token_1y6dk_99",uM="_bottom_1y6dk_109",dM="_balance_1y6dk_116",fM="_max_1y6dk_124",hM="_hint_1y6dk_139",mM="_stakeBtn_1y6dk_147",pM="_stakeBtnDisabled_1y6dk_151",Ot={wrapper:WA,pillsOuter:JA,card:eM,top:tM,tag:nM,right:aM,apr:lM,pillsInner:sM,pill:iM,mid:oM,input:rM,token:cM,bottom:uM,balance:dM,max:fM,hint:hM,stakeBtn:mM,stakeBtnDisabled:pM},gM=[25,50,100],fi="—";function e3(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function _M(a,s,i,r,d){var z,O,q;const f=a.symbol==="ETH",m=`Годовая доходность (${a.aprLabel})`,_=(z=i==null?void 0:i.appCommission)==null?void 0:z.usd,h=_!=null?e3(_):fi,p=(s==null?void 0:s.aprPercent)!=null?`${s.aprPercent}%`:fi,v=f?"Вы получите":"Делегируется валидатору",y=s?f?`${it(s.resultHuman,8)} stETH`:`${it(s.resultHuman,8)} SOL`:fi,x=(q=(O=i==null?void 0:i.balance)==null?void 0:O.gas)==null?void 0:q.needReserve,j=x!=null&&parseFloat(String(x))||0,w=x!=null?`${it(String(x),8)} ${a.symbol}`:fi,C=Math.max(0,r-j),N=x!=null&&r>0?`${it(C.toString(),8)} ${a.symbol}`:fi,A=d>0&&r>0?e3(r*d):fi;return[{label:"Сетевой сбор (газ)",value:w},{label:"Сумма в стейкинг",value:N},{label:"Комиссия сервиса (0.7%)",value:h},{label:m,value:p,accent:"success"},{label:"Итого к списанию",value:A},{label:v,value:y,accent:"highlight",emphasis:!0}]}function vM({chain:a,amount:s,onAmountChange:i,onStake:r,isStaking:d}){var ce,ie;const f=Fg[a],m=ys[a],{data:_}=Ri(a),h=(_==null?void 0:_.native.formatted)??"0",p=parseFloat(h)||0,v=ma(s,400),{data:y,isError:x}=UA(a,v),j=((ie=(ce=y==null?void 0:y.balance)==null?void 0:ce.gas)==null?void 0:ie.needReserve)!=null?String(y.balance.gas.needReserve):null;function w(ue){if((parseFloat(ue)||0)<=0)return"0";if(j!=null){const he=BigInt(Jn(ue,m)),ne=BigInt(Jn(j,m)),H=he>ne?he-ne:0n;return Vo(H.toString(),m)}return x?ue:"0"}const C=w(s),N=w(v),A=parseFloat(C)||0,{data:z,isFetching:O}=BA(a,N),q=parseFloat(s)||0,Y=q>0&&q<=p,X=Y&&j!=null&&A<=0,U=Y&&A>0&&!d,P=ue=>{ue>=100?i(h):i((p*ue/100).toString())},W=o.jsx(o.Fragment,{children:gM.map(ue=>o.jsxs("button",{className:Ot.pill,onClick:()=>P(ue),"aria-label":`${ue}% от баланса`,children:[ue,"%"]},ue))});return o.jsxs("div",{className:Ot.wrapper,children:[o.jsx("div",{className:Ot.pillsOuter,children:W}),o.jsxs("div",{className:Ot.card,children:[o.jsxs("div",{className:Ot.top,children:[o.jsx("span",{className:Ot.tag,children:"Сумма к списанию"}),o.jsxs("div",{className:Ot.right,children:[o.jsxs("span",{className:Ot.apr,children:[f.aprLabel," ",(z==null?void 0:z.aprPercent)!=null?`${z.aprPercent}%`:"—"]}),o.jsx("div",{className:Ot.pillsInner,children:W})]})]}),o.jsxs("div",{className:Ot.mid,children:[o.jsx("input",{className:Ot.input,type:"text",inputMode:"decimal",value:s,onChange:ue=>{const te=ue.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(te)||te==="")&&i(te)},placeholder:"0","aria-label":`Сумма к списанию в ${f.symbol}`}),o.jsxs("div",{className:Ot.token,children:[o.jsx(qo,{letter:f.symbol[0],color:"var(--grad-center)",logo:st[f.symbol],size:28}),o.jsx("span",{children:f.symbol})]})]}),o.jsx("div",{className:Ot.bottom,children:o.jsxs("span",{className:Ot.balance,children:["Баланс: ",it(h,6)," ",f.symbol,o.jsx("button",{className:Ot.max,onClick:()=>P(100),"aria-label":"Использовать весь баланс",children:"МАКС"})]})}),o.jsx(ZA,{rows:_M(f,z,y,q,(_==null?void 0:_.native.usdPrice)??0),loading:O}),X&&o.jsx("p",{className:Ot.hint,children:"Сумма меньше сетевого сбора (газ)."}),o.jsx("div",{className:`${Ot.stakeBtn} ${U?"":Ot.stakeBtnDisabled}`,children:o.jsx(Qn,{label:d?"Отправка…":"Застейкать",type:"button",onClick:()=>r(C),disabled:!U})})]})]})}const yM="_notice_y8uqt_1",bM="_icon_y8uqt_14",xM="_compact_y8uqt_29",Gd={notice:yM,icon:bM,compact:xM};function Vg({compact:a}){return o.jsxs("div",{className:`${Gd.notice} ${a?Gd.compact:""}`,children:[o.jsx("span",{className:Gd.icon,"aria-hidden":"true",children:"!"}),o.jsx("span",{children:"Вывод средств из стейкинга может занимать до 2 недель."})]})}const SM="_panel_156jb_1",jM="_inner_156jb_8",wM="_body_156jb_16",CM="_head_156jb_45",NM="_title_156jb_51",EM="_total_156jb_59",TM="_totalUnit_156jb_65",RM="_subhead_156jb_70",kM="_list_156jb_79",AM="_pos_156jb_85",MM="_pending_156jb_93",OM="_reqCard_156jb_108",LM="_posTop_156jb_112",DM="_coin_156jb_120",zM="_amount_156jb_129",BM="_meta_156jb_136",UM="_badge_156jb_143",$M="_badgeActive_156jb_151",HM="_badgeReady_156jb_156",qM="_badgeMuted_156jb_161",FM="_btn_156jb_166",GM="_btnPrimary_156jb_189",VM="_note_156jb_201",QM="_empty_156jb_208",YM="_emptyState_156jb_215",PM="_emptyIcon_156jb_227",IM="_emptyTitle_156jb_239",XM="_emptyText_156jb_246",pe={panel:SM,inner:jM,body:wM,head:CM,title:NM,total:EM,totalUnit:TM,subhead:RM,list:kM,pos:AM,pending:MM,reqCard:OM,posTop:LM,coin:DM,amount:zM,meta:BM,badge:UM,badgeActive:$M,badgeReady:HM,badgeMuted:qM,btn:FM,btnPrimary:GM,note:VM,empty:QM,emptyState:YM,emptyIcon:PM,emptyTitle:IM,emptyText:XM};function KM({chain:a,onUnstakeEth:s,onUnstakeSol:i,onClaim:r,unstakePending:d,claimPending:f}){var N;const{data:m,isLoading:_,isError:h,error:p}=$A(a),v={active:pe.badgeActive,ready:pe.badgeReady,muted:pe.badgeMuted},y=(m==null?void 0:m.chain)==="ETH"?m.stEthBalanceWeiHuman:(m==null?void 0:m.chain)==="SOL"?m.positions.reduce((A,z)=>A+(parseFloat(z.lamportsHuman)||0),0).toString():"0",x=a==="ETH"?"stETH":"SOL",j=(m==null?void 0:m.chain)==="ETH"&&(parseFloat(m.stEthBalanceWeiHuman)||0)<1e-11&&m.withdrawalRequests.length===0,w=(m==null?void 0:m.chain)==="SOL"&&m.positions.length===0,C=j||w;return o.jsx("div",{className:pe.panel,children:o.jsxs("div",{className:pe.inner,children:[o.jsxs("div",{className:pe.head,children:[o.jsx("span",{className:pe.title,children:"Мои позиции"}),o.jsxs("div",{className:pe.total,children:[it(h?"0":y,6)," ",o.jsx("span",{className:pe.totalUnit,children:x})]})]}),o.jsxs("div",{className:pe.body,children:[!_&&!h&&!C&&o.jsx(Vg,{compact:!0}),_&&o.jsx(Kc,{label:"Загрузка позиций"}),h&&o.jsx("div",{className:pe.empty,children:$o(p)}),!_&&!h&&(C||(m==null?void 0:m.chain)==="ETH"&&(parseFloat(m.stEthBalanceWeiHuman)||0)<1e-14)&&o.jsxs("div",{className:pe.emptyState,children:[o.jsx("span",{className:pe.emptyIcon,"aria-hidden":!0,children:o.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M3 7.5 12 3l9 4.5-9 4.5z"}),o.jsx("path",{d:"M3 12.5 12 17l9-4.5"}),o.jsx("path",{d:"M3 16.5 12 21l9-4.5"})]})}),o.jsx("p",{className:pe.emptyTitle,children:"Активных позиций пока нет"}),o.jsx("p",{className:pe.emptyText,children:"На данный момент у Вас нет активных позиций стейкинга."})]}),!h&&(m==null?void 0:m.chain)==="ETH"&&!C&&o.jsxs(o.Fragment,{children:[(parseFloat(m.stEthBalanceWeiHuman)||0)>1e-14&&o.jsx("div",{className:pe.list,children:o.jsxs("div",{className:`${pe.pos} ${m.optimistic?pe.pending:""}`,children:[o.jsxs("div",{className:pe.posTop,children:[o.jsxs("span",{className:pe.coin,children:[o.jsx(qo,{letter:"E",color:"var(--grad-center)",logo:st.ETH,size:24}),"stETH"]}),o.jsxs("span",{className:`${pe.badge} ${pe.badgeActive}`,children:["Активна",m.aprPercent!=null?` · APR ${m.aprPercent}%`:""]})]}),o.jsx("div",{className:pe.amount,children:it(m.stEthBalanceWeiHuman,8)}),o.jsx("button",{className:pe.btn,onClick:()=>s(m.stEthBalanceWeiHuman),disabled:d,children:"Вывести"})]})}),(parseFloat((N=m.withdrawalRequests[0])==null?void 0:N.amountStEthWeiHuman)||0)>1e-14&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:pe.subhead,children:"Заявки на вывод"}),o.jsx("div",{className:pe.list,children:m.withdrawalRequests.map(A=>{const z=A.isFinalized&&!A.isClaimed;return o.jsxs("div",{className:`${pe.pos} ${z?pe.reqCard:""}`,children:[o.jsxs("div",{className:pe.posTop,children:[o.jsxs("span",{className:pe.coin,children:["Заявка #",A.requestId]}),o.jsx("span",{className:`${pe.badge} ${A.isClaimed?pe.badgeMuted:z?pe.badgeReady:pe.badgeMuted}`,children:A.isClaimed?"Выведено":z?"Готово к выводу":"В очереди"})]}),o.jsxs("div",{className:pe.amount,children:[it(A.amountStEthWeiHuman,8)," ETH"]}),z?o.jsx("button",{className:`${pe.btn} ${pe.btnPrimary}`,onClick:()=>r(A.requestId),disabled:f,children:"Забрать ETH"}):A.isClaimed?null:o.jsx("div",{className:pe.note,children:"Ожидает финализации в Lido"})]},A.requestId)})})]})]}),!h&&(m==null?void 0:m.chain)==="SOL"&&!C&&o.jsx("div",{className:pe.list,children:m.positions.map(A=>{const z=SA[A.state];return o.jsxs("div",{className:`${pe.pos} ${A.optimistic?pe.pending:""}`,children:[o.jsxs("div",{className:pe.posTop,children:[o.jsxs("span",{className:pe.coin,children:[o.jsx(qo,{letter:"S",color:"var(--grad-center)",logo:st.SOL,size:24}),"SOL"]}),o.jsx("span",{className:`${pe.badge} ${v[z.variant]}`,children:z.label})]}),o.jsx("div",{className:pe.amount,children:it(A.lamportsHuman,8)}),o.jsxs("div",{className:pe.meta,children:["Валидатор: ",A.validator," · ",A.stakeAccount]}),A.state==="active"&&o.jsx("button",{className:pe.btn,onClick:()=>i(A),disabled:d,children:"Вывести"}),A.state==="inactive"&&o.jsx("button",{className:`${pe.btn} ${pe.btnPrimary}`,onClick:()=>i(A),disabled:d,children:"Вывести средства"}),A.state==="deactivating"&&o.jsx("div",{className:pe.note,children:"Разблокируется через 12 эпохи"}),A.state==="activating"&&o.jsx("div",{className:pe.note,children:"Активируется…"})]},A.stakeAccount)})})]})]})})}const ZM="_overlay_17qoe_1",WM="_card_17qoe_13",JM="_header_17qoe_25",eO="_title_17qoe_31",tO="_closeBtn_17qoe_37",nO="_token_17qoe_52",aO="_tokenLabel_17qoe_62",lO="_tokenAmount_17qoe_70",sO="_modes_17qoe_77",iO="_mode_17qoe_77",oO="_modeActive_17qoe_101",rO="_modeTitle_17qoe_106",cO="_modeDesc_17qoe_112",uO="_solNote_17qoe_118",dO="_confirmBtn_17qoe_125",Et={overlay:ZM,card:WM,header:JM,title:eO,closeBtn:tO,token:nO,tokenLabel:aO,tokenAmount:lO,modes:sO,mode:iO,modeActive:oO,modeTitle:rO,modeDesc:cO,solNote:uO,confirmBtn:dO};function t3({chain:a,symbol:s,amount:i,solState:r,pending:d,onConfirm:f,onClose:m}){const[_,h]=S.useState("swap");S.useEffect(()=>{function x(j){j.key==="Escape"&&m()}return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[m]);const p=a==="SOL"&&r==="inactive",v=d?"Отправка…":a==="ETH"?"Подтвердить вывод":p?"Вывести средства":"Запустить деактивацию",y=a==="SOL"||a==="ETH"&&_==="queue";return o.jsx("div",{className:Et.overlay,onClick:m,children:o.jsxs("div",{className:Et.card,onClick:x=>x.stopPropagation(),children:[o.jsxs("div",{className:Et.header,children:[o.jsx("span",{className:Et.title,children:"Вывод из стейкинга"}),o.jsx("button",{className:Et.closeBtn,onClick:m,children:"×"})]}),o.jsxs("div",{className:Et.token,children:[o.jsx("span",{className:Et.tokenLabel,children:"Сумма"}),o.jsxs("span",{className:Et.tokenAmount,children:[i," ",a==="ETH"?"stETH":s]})]}),a==="ETH"&&o.jsxs("div",{className:Et.modes,children:[o.jsxs("button",{className:`${Et.mode} ${_==="swap"?Et.modeActive:""}`,onClick:()=>h("swap"),children:[o.jsx("span",{className:Et.modeTitle,children:"Мгновенно"}),o.jsx("span",{className:Et.modeDesc,children:"Своп stETH → ETH через Curve"})]}),o.jsxs("button",{className:`${Et.mode} ${_==="queue"?Et.modeActive:""}`,onClick:()=>h("queue"),children:[o.jsx("span",{className:Et.modeTitle,children:"Очередь"}),o.jsx("span",{className:Et.modeDesc,children:"Заявка в Lido Withdrawal Queue"})]})]}),a==="SOL"&&!p&&o.jsx("p",{className:Et.solNote,children:"Средства разблокируются через 12 эпохи. После завершения вернитесь и подтвердите вывод."}),y&&o.jsx(Vg,{}),o.jsx("button",{className:Et.confirmBtn,onClick:()=>f(a==="ETH"?_:void 0),disabled:d,children:v})]})})}const fO="_widget_wxtkp_1",hO="_grid_wxtkp_7",n3={widget:fO,grid:hO};function mO(){const[a,s]=S.useState("ETH"),[i,r]=S.useState(""),[d,f]=S.useState(null),[m,_]=S.useState(null),h=HA(),p=qA(),v=FA();function y(C){s(C),r("")}function x(C){h.mutate({chain:a,amountHuman:C},{onSuccess:()=>{_({status:"success",message:`Стейкинг ${it(C,6)} ${Fg[a].symbol} выполнен`}),r("")},onError:N=>_({status:"error",message:$o(N)})})}function j(C){if((d==null?void 0:d.kind)==="eth"){const N=C??"swap";p.mutate({chain:"ETH",amountHuman:d.amount,mode:N},{onSuccess:()=>{f(null),_({status:"success",message:N==="queue"?"Заявка на вывод добавлена в очередь Lido":"Вывод stETH → ETH выполнен"})},onError:A=>_({status:"error",message:$o(A)})})}else(d==null?void 0:d.kind)==="sol"&&p.mutate({chain:"SOL",stakeAccount:d.position.stakeAccount},{onSuccess:N=>{f(null);const A="action"in N&&N.action==="withdraw";_({status:"success",message:A?"Средства выведены на кошелёк":"Деактивация запущена — вывод через 12 эпохи"})},onError:N=>_({status:"error",message:$o(N)})})}function w(C){v.mutate(C,{onSuccess:()=>_({status:"success",message:"ETH забран на кошелёк"}),onError:N=>_({status:"error",message:$o(N)})})}return o.jsxs("div",{className:n3.widget,children:[o.jsx(EA,{value:a,onChange:y}),o.jsxs("div",{className:n3.grid,children:[o.jsx(vM,{chain:a,amount:i,onAmountChange:r,onStake:x,isStaking:h.isPending}),o.jsx(KM,{chain:a,onUnstakeEth:C=>f({kind:"eth",amount:C}),onUnstakeSol:C=>f({kind:"sol",position:C}),onClaim:w,unstakePending:p.isPending,claimPending:v.isPending})]}),(d==null?void 0:d.kind)==="eth"&&o.jsx(t3,{chain:"ETH",symbol:"ETH",amount:d.amount,pending:p.isPending,onConfirm:j,onClose:()=>f(null)}),(d==null?void 0:d.kind)==="sol"&&o.jsx(t3,{chain:"SOL",symbol:"SOL",amount:d.position.lamportsHuman,solState:d.position.state,pending:p.isPending,onConfirm:j,onClose:()=>f(null)}),m&&o.jsx(Ml,{status:m.status,message:m.message,onClose:()=>_(null)})]})}const pO="_page_1j4fk_1",gO="_head_1j4fk_8",_O="_title_1j4fk_12",vO="_subtitle_1j4fk_19",kc={page:pO,head:gO,title:_O,subtitle:vO};function yO(){return o.jsxs("div",{className:kc.page,children:[o.jsxs("header",{className:kc.head,children:[o.jsx("h1",{className:kc.title,children:"Стейкинг"}),o.jsx("p",{className:kc.subtitle,children:"Выберите сеть и укажите, сколько монет хотите застейкать. Ваши средства отправляются в стейкинг и начинают приносить доход (APR). Все ваши вклады видны в блоке «Мои позиции», откуда их можно вывести вместе с накопленной наградой. Учтите, что вывод средств занимает некоторое время. Комиссия сервиса — 0.7%."})]}),o.jsx(mO,{})]})}const Qg="https://app.cryptowallet.elcsa.ru";async function z2(a,s=!0){const i=await tn(),r=wt.get(),d=await fetch(`${Qg}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&s)try{return await ea(),z2(a,!1)}catch{throw wt.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function lu(a,s,i=!0,r={}){const d=await tn(),f=wt.get(),m=await fetch(`${Qg}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(s)});if(m.status===401&&i)try{return await ea(),lu(a,s,!1,r)}catch{throw wt.clear(),new Error("Unauthorized")}const _=await m.json();if(!m.ok)throw _;return _}function Yg(){return{"Idempotency-Key":crypto.randomUUID()}}async function bO(){return(await z2("/api/wallets/ETH/lp/pools")).data}function Pg(a){const{pool:s,amount0Human:i,amount1Human:r,priceLower:d,priceUpper:f,slippageBps:m,useNativeEth:_}=a;return{pool:s.poolAddress,priceLower:d,priceUpper:f,amount0Desired:Jn(i||"0",s.decimals0),amount1Desired:Jn(r||"0",s.decimals1),...m!=null?{slippageBps:m}:{},..._!=null?{useNativeEth:_}:{}}}async function xO(a){return(await lu("/api/wallets/ETH/lp/quote",Pg(a))).data}async function SO(a){return(await lu("/api/wallets/ETH/lp/add",Pg(a),!0,Yg())).data}async function jO(a,s=100){return(await lu("/api/wallets/ETH/lp/remove",{tokenId:a,percent:s},!0,Yg())).data}async function wO(){return(await z2("/api/wallets/ETH/lp/positions")).data}function Ac(a){if(a&&typeof a=="object"&&"error"in a){const s=a.error;if(typeof s=="string")return s}return a instanceof Error?a.message==="Unauthorized"?"Сессия истекла — перезагрузите страницу.":a.message:"Произошла ошибка. Попробуйте ещё раз."}function CO(){return vt({queryKey:["pools","list"],queryFn:bO,staleTime:3e4,retry:!1})}function NO(){return vt({queryKey:["pools","positions"],queryFn:wO,staleTime:3e4,retry:!1})}function EO(a){const s=a!=null&&a.priceLower>0&&a.priceUpper>0&&(parseFloat(a.amount0Human)>0||parseFloat(a.amount1Human)>0);return vt({queryKey:["pools","quote",a==null?void 0:a.pool.poolAddress,a==null?void 0:a.priceLower,a==null?void 0:a.priceUpper,a==null?void 0:a.amount0Human,a==null?void 0:a.amount1Human,a==null?void 0:a.slippageBps,a==null?void 0:a.useNativeEth],queryFn:()=>xO(a),enabled:s,staleTime:15e3,retry:!1})}function TO(){const a=en();return _t({mutationFn:s=>SO(s),onSettled:()=>{setTimeout(()=>{a.invalidateQueries({queryKey:["wallet","balance","ETH"]}),a.invalidateQueries({queryKey:["pools","positions"]})},1500),setTimeout(()=>{a.invalidateQueries({queryKey:["pools","positions"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})},6e3)}})}function RO(){const a=en();return _t({mutationFn:({tokenId:s,percent:i})=>jO(s,i),onSuccess:()=>{a.invalidateQueries({queryKey:["pools","positions"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})}})}const kO={WETH:"ETH",WBTC:"BTC"};function lt(a){return kO[a]??a}function su(a){return`${a/1e4}%`}const AO="_card_1uvgu_1",MO="_head_1uvgu_8",OO="_title_1uvgu_12",LO="_scroll_1uvgu_20",DO="_message_1uvgu_24",zO="_spinnerWrap_1uvgu_31",BO="_table_1uvgu_38",UO="_thLeft_1uvgu_55",$O="_sortable_1uvgu_59",HO="_arrow_1uvgu_69",qO="_row_1uvgu_73",FO="_rowSelected_1uvgu_74",GO="_tdLeft_1uvgu_96",VO="_tdAction_1uvgu_100",QO="_mono_1uvgu_104",YO="_apr_1uvgu_108",PO="_pairName_1uvgu_113",IO="_fee_1uvgu_118",XO="_btn_1uvgu_128",KO="_btnSelected_1uvgu_129",nt={card:AO,head:MO,title:OO,scroll:LO,message:DO,spinnerWrap:zO,table:BO,thLeft:UO,sortable:$O,arrow:HO,row:qO,rowSelected:FO,tdLeft:GO,tdAction:VO,mono:QO,apr:YO,pairName:PO,fee:IO,btn:XO,btnSelected:KO},Ig="—";function a3(a){return a==null?Ig:a>=1e6?`$${(a/1e6).toFixed(2)}M`:a>=1e3?`$${(a/1e3).toFixed(2)}K`:`$${a.toFixed(2)}`}function ZO(a){return a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}function WO(a){return a==null?Ig:`${parseFloat(a.toFixed(3))}%`}function l3(a){return`${lt(a.symbol0)}/${lt(a.symbol1)}`}function JO(a,s,i,r){if(i==="pair"){const _=l3(a).localeCompare(l3(s));return r==="asc"?_:-_}const d=a[i],f=s[i];if(d==null&&f==null)return 0;if(d==null)return 1;if(f==null)return-1;const m=d-f;return r==="asc"?m:-m}function eL({pools:a,selected:s,onSelect:i,loading:r,error:d}){const[f,m]=S.useState(null),[_,h]=S.useState(null);function p(j){if(f!==j){m(j),h("desc");return}_==="desc"?h("asc"):_==="asc"?(m(null),h(null)):h("desc")}const v=S.useMemo(()=>!f||!_?a:[...a].sort((j,w)=>JO(j,w,f,_)),[a,f,_]);function y(j){return f!==j||!_?"":_==="desc"?" ▼":" ▲"}const x=[{key:"pair",label:"Пул",align:"left"},{key:"feeTier",label:"Комиссия",align:"right"},{key:"currentPrice",label:"Цена",align:"right"},{key:"tvlUSD",label:"TVL",align:"right"},{key:"volumeUSD24h",label:"Объём 24ч",align:"right"},{key:"aprPercent",label:"APR",align:"right"}];return o.jsxs("div",{className:nt.card,children:[o.jsx("div",{className:nt.head,children:o.jsx("span",{className:nt.title,children:"Курируемые пулы"})}),r&&o.jsx("div",{className:nt.spinnerWrap,children:o.jsx(Kc,{label:"Загрузка пулов"})}),!r&&d&&o.jsx("div",{className:nt.message,children:d}),!r&&!d&&a.length===0&&o.jsx("div",{className:nt.message,children:"Курируемых пулов пока нет."}),!r&&!d&&a.length>0&&o.jsx("div",{className:nt.scroll,children:o.jsxs("table",{className:nt.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[x.map(j=>o.jsxs("th",{className:`${nt.sortable} ${j.align==="left"?nt.thLeft:""}`,onClick:()=>p(j.key),"aria-sort":f===j.key?_==="asc"?"ascending":"descending":"none",children:[j.label,o.jsx("span",{className:nt.arrow,children:y(j.key)})]},j.key)),o.jsx("th",{"aria-label":"Действие"})]})}),o.jsx("tbody",{children:v.map(j=>{const w=j.poolAddress===s;return o.jsxs("tr",{className:w?nt.rowSelected:nt.row,onClick:()=>i(j.poolAddress),children:[o.jsx("td",{className:nt.tdLeft,children:o.jsxs("span",{className:nt.pairName,children:[lt(j.symbol0),"/",lt(j.symbol1)]})}),o.jsx("td",{children:o.jsx("span",{className:nt.fee,children:su(j.feeTier)})}),o.jsx("td",{className:nt.mono,children:ZO(j.currentPrice)}),o.jsx("td",{className:nt.mono,children:a3(j.tvlUSD)}),o.jsx("td",{className:nt.mono,children:a3(j.volumeUSD24h)}),o.jsx("td",{className:`${nt.mono} ${nt.apr}`,children:WO(j.aprPercent)}),o.jsx("td",{className:nt.tdAction,children:o.jsx("button",{type:"button",className:w?nt.btnSelected:nt.btn,onClick:C=>{C.stopPropagation(),i(j.poolAddress)},children:w?"Выбран":"Выбрать"})})]},j.poolAddress)})})]})})]})}const tL="_card_9umyw_1",nL="_top_9umyw_8",aL="_pair_9umyw_16",lL="_fee_9umyw_25",sL="_tag_9umyw_34",iL="_amounts_9umyw_44",oL="_amountField_9umyw_51",rL="_balance_9umyw_57",cL="_amountRow_9umyw_64",uL="_amountInput_9umyw_75",dL="_token_9umyw_91",fL="_range_9umyw_101",hL="_priceField_9umyw_108",mL="_priceLabel_9umyw_118",pL="_priceInput_9umyw_124",gL="_quote_9umyw_140",_L="_quoteRow_9umyw_147",vL="_quoteLabel_9umyw_160",yL="_quoteValue_9umyw_165",bL="_feeValue_9umyw_173",xL="_success_9umyw_178",SL="_warning_9umyw_182",jL="_submit_9umyw_190",wL="_placeholder_9umyw_195",CL="_placeholderTitle_9umyw_207",NL="_placeholderText_9umyw_214",we={card:tL,top:nL,pair:aL,fee:lL,tag:sL,amounts:iL,amountField:oL,balance:rL,amountRow:cL,amountInput:uL,token:dL,range:fL,priceField:hL,priceLabel:mL,priceInput:pL,quote:gL,quoteRow:_L,quoteLabel:vL,quoteValue:yL,feeValue:bL,success:xL,warning:SL,submit:jL,placeholder:wL,placeholderTitle:CL,placeholderText:NL},Mc="—",B2=/^(\d+\.?\d*|\.?\d*)$/;function s3(a,s){var i;return a?lt(s)===a.chain?a.native.formatted:((i=a.tokens[s])==null?void 0:i.formatted)??"0":"0"}function i3({symbol:a,value:s,onChange:i,balance:r}){return o.jsxs("div",{className:we.amountField,children:[o.jsxs("div",{className:we.amountRow,children:[o.jsx("input",{className:we.amountInput,type:"text",inputMode:"decimal",value:s,onChange:d=>{const f=d.target.value;(B2.test(f)||f==="")&&i(f)},placeholder:"0","aria-label":`Сумма ${a}`}),o.jsx("div",{className:we.token,children:o.jsx("span",{children:a})})]}),o.jsxs("span",{className:we.balance,children:["Баланс: ",it(r,6)," ",a]})]})}function o3({label:a,value:s,onChange:i}){return o.jsxs("label",{className:we.priceField,children:[o.jsx("span",{className:we.priceLabel,children:a}),o.jsx("input",{className:we.priceInput,type:"text",inputMode:"decimal",value:s,onChange:r=>{const d=r.target.value;(B2.test(d)||d==="")&&i(d)},placeholder:"0"})]})}function EL({pool:a,quote:s,quoteFetching:i,pending:r,amount0:d,amount1:f,priceLower:m,priceUpper:_,slippage:h,onAmount0Change:p,onAmount1Change:v,onPriceLowerChange:y,onPriceUpperChange:x,onSlippageChange:j,onSubmit:w}){const{data:C}=Ri("ETH");if(!a)return o.jsx("div",{className:we.card,children:o.jsxs("div",{className:we.placeholder,children:[o.jsx("p",{className:we.placeholderTitle,children:"Выберите пул"}),o.jsx("p",{className:we.placeholderText,children:"Выберите пул в таблице выше, чтобы внести ликвидность."})]})});const N=s==null?void 0:s.balance,A=(N==null?void 0:N.sufficient)===!1,z=(s==null?void 0:s.aprPercent)!=null?`${s.aprPercent}%`:Mc,O=(s==null?void 0:s.appFeeTotalUsd)!=null?`$${s.appFeeTotalUsd.toFixed(2)}`:Mc,q=s?it(s.amount0DesiredHuman,8):Mc,Y=s?it(s.amount1DesiredHuman,8):Mc,X=N&&N.token1.sufficient===!1?N.token1:N==null?void 0:N.token0,U=!!s&&!A&&!r;return o.jsxs("div",{className:we.card,children:[o.jsxs("div",{className:we.top,children:[o.jsxs("span",{className:we.pair,children:[lt(a.symbol0),"/",lt(a.symbol1)]}),o.jsx("span",{className:we.fee,children:su(a.feeTier)})]}),o.jsx("span",{className:we.tag,children:"Суммы взноса"}),o.jsxs("div",{className:we.amounts,children:[o.jsx(i3,{symbol:lt(a.symbol0),value:d,onChange:p,balance:s3(C,a.symbol0)}),o.jsx(i3,{symbol:lt(a.symbol1),value:f,onChange:v,balance:s3(C,a.symbol1)})]}),o.jsxs("span",{className:we.tag,children:["Диапазон цен (",lt(a.symbol1)," за ",lt(a.symbol0),")"]}),o.jsxs("div",{className:we.range,children:[o.jsx(o3,{label:"Мин.",value:m,onChange:y}),o.jsx(o3,{label:"Макс.",value:_,onChange:x}),o.jsxs("label",{className:we.priceField,children:[o.jsx("span",{className:we.priceLabel,children:"Проскальзывание, %"}),o.jsx("input",{className:we.priceInput,type:"text",inputMode:"decimal",value:h,onChange:P=>{const W=P.target.value;(B2.test(W)||W==="")&&j(W)},placeholder:"1"})]})]}),o.jsxs("div",{className:we.quote,"data-loading":i?"true":void 0,children:[o.jsxs("div",{className:we.quoteRow,children:[o.jsxs("span",{className:we.quoteLabel,children:["Взнос ",lt(a.symbol0)]}),o.jsx("span",{className:we.quoteValue,children:q})]}),o.jsxs("div",{className:we.quoteRow,children:[o.jsxs("span",{className:we.quoteLabel,children:["Взнос ",lt(a.symbol1)]}),o.jsx("span",{className:we.quoteValue,children:Y})]}),o.jsxs("div",{className:we.quoteRow,children:[o.jsx("span",{className:we.quoteLabel,children:"Комиссия сервиса (0.7%)"}),o.jsx("span",{className:`${we.quoteValue} ${we.feeValue}`,children:O})]}),o.jsxs("div",{className:we.quoteRow,children:[o.jsx("span",{className:we.quoteLabel,children:"Годовая доходность (APR)"}),o.jsx("span",{className:`${we.quoteValue} ${we.success}`,children:z})]})]}),A&&o.jsxs("p",{className:we.warning,children:["Недостаточно средств",X?`: не хватает ${lt(X.symbol)}`:"",". Пополните баланс."]}),o.jsx("div",{className:we.submit,children:o.jsx(Qn,{label:r?"Отправка…":"Внести в пул",type:"button",onClick:w,disabled:!U})})]})}const TL="_panel_1yqb9_1",RL="_inner_1yqb9_8",kL="_body_1yqb9_15",AL="_head_1yqb9_60",ML="_title_1yqb9_66",OL="_total_1yqb9_74",LL="_totalUnit_1yqb9_80",DL="_list_1yqb9_85",zL="_message_1yqb9_91",BL="_pos_1yqb9_98",UL="_posTop_1yqb9_105",$L="_coin_1yqb9_113",HL="_fee_1yqb9_122",qL="_badge_1yqb9_131",FL="_badgeActive_1yqb9_139",GL="_badgeWarn_1yqb9_144",VL="_rows_1yqb9_149",QL="_row_1yqb9_149",YL="_label_1yqb9_163",PL="_value_1yqb9_168",IL="_success_1yqb9_176",XL="_btn_1yqb9_180",KL="_emptyState_1yqb9_203",ZL="_emptyTitle_1yqb9_215",WL="_emptyText_1yqb9_222",Oe={panel:TL,inner:RL,body:kL,head:AL,title:ML,total:OL,totalUnit:LL,list:DL,message:zL,pos:BL,posTop:UL,coin:$L,fee:HL,badge:qL,badgeActive:FL,badgeWarn:GL,rows:VL,row:QL,label:YL,value:PL,success:IL,btn:XL,emptyState:KL,emptyTitle:ZL,emptyText:WL};function JL({positions:a,onRemove:s,removePending:i,isLoading:r,error:d}){const f=a.length===0;return o.jsx("div",{className:Oe.panel,children:o.jsxs("div",{className:Oe.inner,children:[o.jsxs("div",{className:Oe.head,children:[o.jsx("span",{className:Oe.title,children:"Мои позиции"}),o.jsxs("div",{className:Oe.total,children:[a.length," ",o.jsx("span",{className:Oe.totalUnit,children:"NFT"})]})]}),o.jsxs("div",{className:Oe.body,children:[r&&o.jsx(Kc,{label:"Загрузка позиций"}),!r&&d&&o.jsx("div",{className:Oe.message,children:d}),!r&&!d&&f&&o.jsxs("div",{className:Oe.emptyState,children:[o.jsx("p",{className:Oe.emptyTitle,children:"Активных позиций пока нет"}),o.jsx("p",{className:Oe.emptyText,children:"На данный момент у Вас нет позиций в пулах ликвидности."})]}),!r&&!d&&!f&&o.jsx("div",{className:Oe.list,children:a.map(m=>o.jsxs("div",{className:Oe.pos,children:[o.jsxs("div",{className:Oe.posTop,children:[o.jsxs("span",{className:Oe.coin,children:[lt(m.symbol0),"/",lt(m.symbol1),o.jsx("span",{className:Oe.fee,children:su(m.feeTier)})]}),o.jsx("span",{className:`${Oe.badge} ${m.inRange?Oe.badgeActive:Oe.badgeWarn}`,children:m.inRange?"В диапазоне":"Вне диапазона"})]}),o.jsxs("div",{className:Oe.rows,children:[o.jsxs("div",{className:Oe.row,children:[o.jsx("span",{className:Oe.label,children:"Диапазон цен"}),o.jsxs("span",{className:Oe.value,children:[m.priceLower," ",m.priceUpper]})]}),o.jsxs("div",{className:Oe.row,children:[o.jsx("span",{className:Oe.label,children:lt(m.symbol0)}),o.jsx("span",{className:Oe.value,children:it(m.currentAmount0Human,8)})]}),o.jsxs("div",{className:Oe.row,children:[o.jsx("span",{className:Oe.label,children:lt(m.symbol1)}),o.jsx("span",{className:Oe.value,children:it(m.currentAmount1Human,8)})]}),o.jsxs("div",{className:Oe.row,children:[o.jsx("span",{className:Oe.label,children:"Комиссии к выводу"}),o.jsxs("span",{className:`${Oe.value} ${Oe.success}`,children:[it(m.feesOwed0Human,8)," ",lt(m.symbol0)," · ",it(m.feesOwed1Human,8)," ",lt(m.symbol1)]})]})]}),o.jsx("button",{className:Oe.btn,onClick:()=>s(m.tokenId),disabled:i,children:"Вывести"})]},m.tokenId))})]})]})})}const eD="_overlay_mbhaz_1",tD="_card_mbhaz_13",nD="_header_mbhaz_25",aD="_title_mbhaz_31",lD="_closeBtn_mbhaz_37",sD="_token_mbhaz_52",iD="_tokenLabel_mbhaz_62",oD="_tokenAmount_mbhaz_70",rD="_tokenMeta_mbhaz_77",cD="_modes_mbhaz_83",uD="_mode_mbhaz_83",dD="_modeActive_mbhaz_107",fD="_note_mbhaz_112",hD="_confirmBtn_mbhaz_119",fn={overlay:eD,card:tD,header:nD,title:aD,closeBtn:lD,token:sD,tokenLabel:iD,tokenAmount:oD,tokenMeta:rD,modes:cD,mode:uD,modeActive:dD,note:fD,confirmBtn:hD},mD=[25,50,100];function pD({position:a,pending:s,onConfirm:i,onClose:r}){const[d,f]=S.useState(100);return S.useEffect(()=>{function m(_){_.key==="Escape"&&r()}return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[r]),o.jsx("div",{className:fn.overlay,onClick:r,children:o.jsxs("div",{className:fn.card,onClick:m=>m.stopPropagation(),children:[o.jsxs("div",{className:fn.header,children:[o.jsx("span",{className:fn.title,children:"Вывод ликвидности"}),o.jsx("button",{className:fn.closeBtn,onClick:r,children:"×"})]}),o.jsxs("div",{className:fn.token,children:[o.jsx("span",{className:fn.tokenLabel,children:"Позиция"}),o.jsxs("span",{className:fn.tokenAmount,children:[lt(a.symbol0),"/",lt(a.symbol1)]}),o.jsxs("span",{className:fn.tokenMeta,children:[su(a.feeTier)," · #",a.tokenId]})]}),o.jsx("div",{className:fn.modes,children:mD.map(m=>o.jsxs("button",{className:`${fn.mode} ${d===m?fn.modeActive:""}`,onClick:()=>f(m),children:[m,"%"]},m))}),d===100&&o.jsx("p",{className:fn.note,children:"При выводе 100% позиция (NFT) будет сожжена."}),o.jsx("button",{className:fn.confirmBtn,onClick:()=>i(d),disabled:s,children:s?"Отправка…":"Подтвердить вывод"})]})})}const gD="_widget_za8nj_1",_D="_grid_za8nj_7",r3={widget:gD,grid:_D},c3=.05;function vD(){var ae;const a=CO(),s=NO(),i=TO(),r=RO(),d=a.data??[],f=((ae=s.data)==null?void 0:ae.positions)??[],[m,_]=S.useState(null),[h,p]=S.useState(""),[v,y]=S.useState(""),[x,j]=S.useState(""),[w,C]=S.useState(""),[N,A]=S.useState("1"),z=!1,[O,q]=S.useState(null),[Y,X]=S.useState(null),U=d.find(fe=>fe.poolAddress===m)??null;function P(fe){_(fe);const _e=d.find(R=>R.poolAddress===fe);_e&&(j((_e.currentPrice*(1-c3)).toFixed(2)),C((_e.currentPrice*(1+c3)).toFixed(2))),p(""),y("")}S.useEffect(()=>{!m&&d.length>0&&P(d[0].poolAddress)},[d,m]);const W=ma(h,400),ce=ma(v,400),ie=ma(x,400),ue=ma(w,400),te=ma(N,400),he=S.useMemo(()=>{if(!U)return null;const fe=parseFloat(te);return{pool:U,amount0Human:W,amount1Human:ce,priceLower:parseFloat(ie)||0,priceUpper:parseFloat(ue)||0,slippageBps:Number.isFinite(fe)?Math.round(fe*100):void 0,useNativeEth:z}},[U,W,ce,ie,ue,te,z]),ne=EO(he);function H(){if(!U)return;const fe=parseFloat(N),_e={pool:U,amount0Human:h,amount1Human:v,priceLower:parseFloat(x)||0,priceUpper:parseFloat(w)||0,slippageBps:Number.isFinite(fe)?Math.round(fe*100):void 0,useNativeEth:z};X({status:"info",message:"Внесение в пул может занять несколько минут…"}),i.mutate(_e,{onSuccess:()=>{X({status:"success",message:`Депозит в пул ${lt(U.symbol0)}/${lt(U.symbol1)} выполнен`}),p(""),y("")},onError:R=>X({status:"error",message:Ac(R)})})}function I(fe){O&&r.mutate({tokenId:O.tokenId,percent:fe},{onSuccess:()=>{q(null),X({status:"success",message:"Ликвидность выведена на кошелёк"})},onError:_e=>X({status:"error",message:Ac(_e)})})}return o.jsxs("div",{className:r3.widget,children:[o.jsx(eL,{pools:d,selected:m,onSelect:P,loading:a.isLoading,error:a.isError?Ac(a.error):null}),o.jsxs("div",{className:r3.grid,children:[o.jsx(EL,{pool:U,quote:ne.data,quoteFetching:ne.isFetching,pending:i.isPending,amount0:h,amount1:v,priceLower:x,priceUpper:w,slippage:N,onAmount0Change:p,onAmount1Change:y,onPriceLowerChange:j,onPriceUpperChange:C,onSlippageChange:A,onSubmit:H}),o.jsx(JL,{positions:f,onRemove:fe=>q(f.find(_e=>_e.tokenId===fe)??null),removePending:r.isPending,isLoading:s.isLoading,error:s.isError?Ac(s.error):null})]}),O&&o.jsx(pD,{position:O,pending:r.isPending,onConfirm:I,onClose:()=>q(null)}),Y&&o.jsx(Ml,{status:Y.status,message:Y.message,onClose:()=>X(null)})]})}const yD="_page_1j4fk_1",bD="_head_1j4fk_8",xD="_title_1j4fk_12",SD="_subtitle_1j4fk_19",Oc={page:yD,head:bD,title:xD,subtitle:SD};function jD(){return o.jsxs("div",{className:Oc.page,children:[o.jsxs("header",{className:Oc.head,children:[o.jsx("h1",{className:Oc.title,children:"Пулы"}),o.jsx("p",{className:Oc.subtitle,children:"Выберите пул из списка, укажите, количество каждого токена, и задайте диапазон цен, в котором ваши деньги будут работать. Пока цена остаётся в этом диапазоне, вы зарабатываете на комиссиях с каждой сделки в пуле (это и есть APR). Внесённая позиция учитывается как NFT в блоке «Мои позиции», откуда её можно вывести вместе с накопленными комиссиями. Комиссия сервиса на депозит — 0.7%."})]}),o.jsx(vD,{})]})}const wD="_page_uz94v_1",CD="_main_uz94v_8",ND="_center_uz94v_13",Lc={page:wD,main:CD,center:ND};function u3({footer:a=!1,center:s=!1}){return o.jsxs("div",{className:Lc.page,children:[o.jsx(tu,{}),o.jsx("main",{className:s?`${Lc.main} ${Lc.center}`:Lc.main,children:o.jsx(x2,{})}),a&&o.jsx(Ss,{})]})}function ED(){const{pathname:a}=An();return S.useEffect(()=>{window.scrollTo(0,0)},[a]),null}function TD(){const{isAuthenticated:a,isLoading:s}=og(),i=An();return s?null:a?o.jsx(x2,{}):o.jsx(Ic,{to:re.LOGIN,state:{from:i},replace:!0})}function RD(){var d,f;const{isAuthenticated:a,isLoading:s}=og(),r=((f=(d=An().state)==null?void 0:d.from)==null?void 0:f.pathname)??re.WALLET;return s?null:a?o.jsx(Ic,{to:r,replace:!0}):o.jsx(x2,{})}function kD(){return o.jsxs(I4,{children:[o.jsx(ED,{}),o.jsxs(w4,{children:[o.jsx(Ze,{path:re.HOME,element:o.jsx(B8,{})}),o.jsx(Ze,{path:re.PUBLICHNAYA_OFERTA,element:o.jsx(rk,{})}),o.jsx(Ze,{path:re.POLITIKA_PERSONALNYH_DANNYH,element:o.jsx(uk,{})}),o.jsx(Ze,{path:re.POLITIKA_COOKIE,element:o.jsx(fk,{})}),o.jsx(Ze,{path:re.SOGLASIE_PERSONALNYH_DANNYH,element:o.jsx(mk,{})}),o.jsx(Ze,{path:re.REESTR_PD_RKN,element:o.jsx(gk,{})}),o.jsx(Ze,{path:re.REGISTER_TEST,element:o.jsx(OT,{})}),o.jsxs(Ze,{element:o.jsx(RD,{}),children:[o.jsx(Ze,{path:re.LOGIN,element:o.jsx(DE,{})}),o.jsx(Ze,{path:re.REGISTER,element:o.jsx(dT,{})}),o.jsx(Ze,{path:re.RESTORE_PASSWORD,element:o.jsx(HR,{})})]}),o.jsxs(Ze,{element:o.jsx(TD,{}),children:[o.jsx(Ze,{element:o.jsx(u3,{footer:!0,center:!0}),children:o.jsx(Ze,{path:re.CONVERTER,element:o.jsx(BT,{})})}),o.jsxs(Ze,{element:o.jsx(u3,{footer:!0}),children:[o.jsx(Ze,{path:re.SWAP,element:o.jsx(jC,{})}),o.jsx(Ze,{path:re.BRIDGE,element:o.jsx(aN,{})}),o.jsx(Ze,{path:re.TRANSACTIONS,element:o.jsx(bA,{})}),o.jsx(Ze,{path:re.STAKING,element:o.jsx(yO,{})}),o.jsx(Ze,{path:re.POOLS,element:o.jsx(jD,{})})]}),o.jsx(Ze,{path:re.WALLET,element:o.jsx(Ep,{})}),o.jsx(Ze,{path:re.WALLET_CHAIN,element:o.jsx(Ep,{})}),o.jsx(Ze,{path:re.PROFILE,element:o.jsx(vE,{})}),o.jsx(Ze,{path:re.SEED_PHRASE,element:o.jsx(iR,{})}),o.jsx(Ze,{path:re.KYC,element:o.jsx(ER,{})})]})]})]})}const AD=new n6({defaultOptions:{queries:{retry:!1}}});function MD({children:a}){return o.jsx(a6,{client:AD,children:a})}function OD(){return o.jsx(MD,{children:o.jsx(kD,{})})}wy.createRoot(document.getElementById("root")).render(o.jsx(S.StrictMode,{children:o.jsx(OD,{})}));