UNPKG

@edgex-web/components

Version:

EdgeX Universal UI Components Library - Reusable React components for deposit, withdraw and other common UI patterns

36 lines (34 loc) 483 kB
(function(re,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],v):(re=typeof globalThis<"u"?globalThis:re||self,v(re.EdgeXComponents={},re.React,re.ReactDOM))})(this,function(re,v,Me){"use strict";var _P=Object.defineProperty;var UP=(re,v,Me)=>v in re?_P(re,v,{enumerable:!0,configurable:!0,writable:!0,value:Me}):re[v]=Me;var ko=(re,v,Me)=>UP(re,typeof v!="symbol"?v+"":v,Me);function iu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const z=iu(v),Or=iu(Me);function Q0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Js={exports:{}},Cr={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var au;function J0(){if(au)return Cr;au=1;var e=v,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(c,a,u){var l,f={},p=null,d=null;u!==void 0&&(p=""+u),a.key!==void 0&&(p=""+a.key),a.ref!==void 0&&(d=a.ref);for(l in a)r.call(a,l)&&!s.hasOwnProperty(l)&&(f[l]=a[l]);if(c&&c.defaultProps)for(l in a=c.defaultProps,a)f[l]===void 0&&(f[l]=a[l]);return{$$typeof:t,type:c,key:p,ref:d,props:f,_owner:o.current}}return Cr.Fragment=n,Cr.jsx=i,Cr.jsxs=i,Cr}var Nr={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var cu;function em(){return cu||(cu=1,process.env.NODE_ENV!=="production"&&function(){var e=v,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator";function x(F){if(F===null||typeof F!="object")return null;var Z=h&&F[h]||F[m];return typeof Z=="function"?Z:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(F){{for(var Z=arguments.length,X=new Array(Z>1?Z-1:0),te=1;te<Z;te++)X[te-1]=arguments[te];A("error",F,X)}}function A(F,Z,X){{var te=T.ReactDebugCurrentFrame,fe=te.getStackAddendum();fe!==""&&(Z+="%s",X=X.concat([fe]));var de=X.map(function(ce){return String(ce)});de.unshift("Warning: "+Z),Function.prototype.apply.call(console[F],console,de)}}var B=!1,L=!1,_=!1,D=!1,g=!1,w;w=Symbol.for("react.module.reference");function $(F){return!!(typeof F=="string"||typeof F=="function"||F===r||F===s||g||F===o||F===u||F===l||D||F===d||B||L||_||typeof F=="object"&&F!==null&&(F.$$typeof===p||F.$$typeof===f||F.$$typeof===i||F.$$typeof===c||F.$$typeof===a||F.$$typeof===w||F.getModuleId!==void 0))}function I(F,Z,X){var te=F.displayName;if(te)return te;var fe=Z.displayName||Z.name||"";return fe!==""?X+"("+fe+")":X}function C(F){return F.displayName||"Context"}function P(F){if(F==null)return null;if(typeof F.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof F=="function")return F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case l:return"SuspenseList"}if(typeof F=="object")switch(F.$$typeof){case c:var Z=F;return C(Z)+".Consumer";case i:var X=F;return C(X._context)+".Provider";case a:return I(F,F.render,"ForwardRef");case f:var te=F.displayName||null;return te!==null?te:P(F.type)||"Memo";case p:{var fe=F,de=fe._payload,ce=fe._init;try{return P(ce(de))}catch{return null}}}return null}var S=Object.assign,E=0,O,N,b,k,R,j,U;function H(){}H.__reactDisabledLog=!0;function K(){{if(E===0){O=console.log,N=console.info,b=console.warn,k=console.error,R=console.group,j=console.groupCollapsed,U=console.groupEnd;var F={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:F,log:F,warn:F,error:F,group:F,groupCollapsed:F,groupEnd:F})}E++}}function G(){{if(E--,E===0){var F={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},F,{value:O}),info:S({},F,{value:N}),warn:S({},F,{value:b}),error:S({},F,{value:k}),group:S({},F,{value:R}),groupCollapsed:S({},F,{value:j}),groupEnd:S({},F,{value:U})})}E<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=T.ReactCurrentDispatcher,V;function Y(F,Z,X){{if(V===void 0)try{throw Error()}catch(fe){var te=fe.stack.trim().match(/\n( *(at )?)/);V=te&&te[1]||""}return` `+V+F}}var Q=!1,oe;{var pe=typeof WeakMap=="function"?WeakMap:Map;oe=new pe}function Se(F,Z){if(!F||Q)return"";{var X=oe.get(F);if(X!==void 0)return X}var te;Q=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var de;de=W.current,W.current=null,K();try{if(Z){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(Ge){te=Ge}Reflect.construct(F,[],ce)}else{try{ce.call()}catch(Ge){te=Ge}F.call(ce.prototype)}}else{try{throw Error()}catch(Ge){te=Ge}F()}}catch(Ge){if(Ge&&te&&typeof Ge.stack=="string"){for(var ie=Ge.stack.split(` `),Re=te.stack.split(` `),Ee=ie.length-1,Pe=Re.length-1;Ee>=1&&Pe>=0&&ie[Ee]!==Re[Pe];)Pe--;for(;Ee>=1&&Pe>=0;Ee--,Pe--)if(ie[Ee]!==Re[Pe]){if(Ee!==1||Pe!==1)do if(Ee--,Pe--,Pe<0||ie[Ee]!==Re[Pe]){var lt=` `+ie[Ee].replace(" at new "," at ");return F.displayName&&lt.includes("<anonymous>")&&(lt=lt.replace("<anonymous>",F.displayName)),typeof F=="function"&&oe.set(F,lt),lt}while(Ee>=1&&Pe>=0);break}}}finally{Q=!1,W.current=de,G(),Error.prepareStackTrace=fe}var Tr=F?F.displayName||F.name:"",qn=Tr?Y(Tr):"";return typeof F=="function"&&oe.set(F,qn),qn}function he(F,Z,X){return Se(F,!1)}function me(F){var Z=F.prototype;return!!(Z&&Z.isReactComponent)}function le(F,Z,X){if(F==null)return"";if(typeof F=="function")return Se(F,me(F));if(typeof F=="string")return Y(F);switch(F){case u:return Y("Suspense");case l:return Y("SuspenseList")}if(typeof F=="object")switch(F.$$typeof){case a:return he(F.render);case f:return le(F.type,Z,X);case p:{var te=F,fe=te._payload,de=te._init;try{return le(de(fe),Z,X)}catch{}}}return""}var xn=Object.prototype.hasOwnProperty,cn={},D0=T.ReactDebugCurrentFrame;function Qs(F){if(F){var Z=F._owner,X=le(F.type,F._source,Z?Z.type:null);D0.setExtraStackFrame(X)}else D0.setExtraStackFrame(null)}function yP(F,Z,X,te,fe){{var de=Function.call.bind(xn);for(var ce in F)if(de(F,ce)){var ie=void 0;try{if(typeof F[ce]!="function"){var Re=Error((te||"React class")+": "+X+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof F[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Re.name="Invariant Violation",Re}ie=F[ce](Z,ce,te,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ee){ie=Ee}ie&&!(ie instanceof Error)&&(Qs(fe),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",X,ce,typeof ie),Qs(null)),ie instanceof Error&&!(ie.message in cn)&&(cn[ie.message]=!0,Qs(fe),y("Failed %s type: %s",X,ie.message),Qs(null))}}}var wP=Array.isArray;function Jc(F){return wP(F)}function vP(F){{var Z=typeof Symbol=="function"&&Symbol.toStringTag,X=Z&&F[Symbol.toStringTag]||F.constructor.name||"Object";return X}}function xP(F){try{return j0(F),!1}catch{return!0}}function j0(F){return""+F}function _0(F){if(xP(F))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",vP(F)),j0(F)}var U0=T.ReactCurrentOwner,EP={key:!0,ref:!0,__self:!0,__source:!0},z0,H0;function SP(F){if(xn.call(F,"ref")){var Z=Object.getOwnPropertyDescriptor(F,"ref").get;if(Z&&Z.isReactWarning)return!1}return F.ref!==void 0}function PP(F){if(xn.call(F,"key")){var Z=Object.getOwnPropertyDescriptor(F,"key").get;if(Z&&Z.isReactWarning)return!1}return F.key!==void 0}function $P(F,Z){typeof F.ref=="string"&&U0.current}function AP(F,Z){{var X=function(){z0||(z0=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Z))};X.isReactWarning=!0,Object.defineProperty(F,"key",{get:X,configurable:!0})}}function TP(F,Z){{var X=function(){H0||(H0=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Z))};X.isReactWarning=!0,Object.defineProperty(F,"ref",{get:X,configurable:!0})}}var OP=function(F,Z,X,te,fe,de,ce){var ie={$$typeof:t,type:F,key:Z,ref:X,props:ce,_owner:de};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function CP(F,Z,X,te,fe){{var de,ce={},ie=null,Re=null;X!==void 0&&(_0(X),ie=""+X),PP(Z)&&(_0(Z.key),ie=""+Z.key),SP(Z)&&(Re=Z.ref,$P(Z,fe));for(de in Z)xn.call(Z,de)&&!EP.hasOwnProperty(de)&&(ce[de]=Z[de]);if(F&&F.defaultProps){var Ee=F.defaultProps;for(de in Ee)ce[de]===void 0&&(ce[de]=Ee[de])}if(ie||Re){var Pe=typeof F=="function"?F.displayName||F.name||"Unknown":F;ie&&AP(ce,Pe),Re&&TP(ce,Pe)}return OP(F,ie,Re,fe,te,U0.current,ce)}}var eu=T.ReactCurrentOwner,W0=T.ReactDebugCurrentFrame;function Ar(F){if(F){var Z=F._owner,X=le(F.type,F._source,Z?Z.type:null);W0.setExtraStackFrame(X)}else W0.setExtraStackFrame(null)}var tu;tu=!1;function nu(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function V0(){{if(eu.current){var F=P(eu.current.type);if(F)return` Check the render method of \``+F+"`."}return""}}function NP(F){return""}var G0={};function IP(F){{var Z=V0();if(!Z){var X=typeof F=="string"?F:F.displayName||F.name;X&&(Z=` Check the top-level render call using <`+X+">.")}return Z}}function q0(F,Z){{if(!F._store||F._store.validated||F.key!=null)return;F._store.validated=!0;var X=IP(Z);if(G0[X])return;G0[X]=!0;var te="";F&&F._owner&&F._owner!==eu.current&&(te=" It was passed a child from "+P(F._owner.type)+"."),Ar(F),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,te),Ar(null)}}function Z0(F,Z){{if(typeof F!="object")return;if(Jc(F))for(var X=0;X<F.length;X++){var te=F[X];nu(te)&&q0(te,Z)}else if(nu(F))F._store&&(F._store.validated=!0);else if(F){var fe=x(F);if(typeof fe=="function"&&fe!==F.entries)for(var de=fe.call(F),ce;!(ce=de.next()).done;)nu(ce.value)&&q0(ce.value,Z)}}}function MP(F){{var Z=F.type;if(Z==null||typeof Z=="string")return;var X;if(typeof Z=="function")X=Z.propTypes;else if(typeof Z=="object"&&(Z.$$typeof===a||Z.$$typeof===f))X=Z.propTypes;else return;if(X){var te=P(Z);yP(X,F.props,"prop",te,F)}else if(Z.PropTypes!==void 0&&!tu){tu=!0;var fe=P(Z);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof Z.getDefaultProps=="function"&&!Z.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kP(F){{for(var Z=Object.keys(F.props),X=0;X<Z.length;X++){var te=Z[X];if(te!=="children"&&te!=="key"){Ar(F),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),Ar(null);break}}F.ref!==null&&(Ar(F),y("Invalid attribute `ref` supplied to `React.Fragment`."),Ar(null))}}var K0={};function Y0(F,Z,X,te,fe,de){{var ce=$(F);if(!ce){var ie="";(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Re=NP();Re?ie+=Re:ie+=V0();var Ee;F===null?Ee="null":Jc(F)?Ee="array":F!==void 0&&F.$$typeof===t?(Ee="<"+(P(F.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):Ee=typeof F,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ee,ie)}var Pe=CP(F,Z,X,fe,de);if(Pe==null)return Pe;if(ce){var lt=Z.children;if(lt!==void 0)if(te)if(Jc(lt)){for(var Tr=0;Tr<lt.length;Tr++)Z0(lt[Tr],F);Object.freeze&&Object.freeze(lt)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Z0(lt,F)}if(xn.call(Z,"key")){var qn=P(F),Ge=Object.keys(Z).filter(function(jP){return jP!=="key"}),ru=Ge.length>0?"{key: someKey, "+Ge.join(": ..., ")+": ...}":"{key: someKey}";if(!K0[qn+ru]){var DP=Ge.length>0?"{"+Ge.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,ru,qn,DP,qn),K0[qn+ru]=!0}}return F===r?kP(Pe):MP(Pe),Pe}}function BP(F,Z,X){return Y0(F,Z,X,!0)}function LP(F,Z,X){return Y0(F,Z,X,!1)}var FP=LP,RP=BP;Nr.Fragment=r,Nr.jsx=FP,Nr.jsxs=RP}()),Nr}process.env.NODE_ENV==="production"?Js.exports=J0():Js.exports=em();var M=Js.exports;const tm={deposit:{title:"充值",chain:"链",asset:"资产",amount:"数量",available:"可用",equity:"总资产",confirmDeposit:"充值确认",switchNetwork:"切换网络",max:"最大",arrivalTime:"到账时间",minDeposit:"最小充值金额",minDepositParsed:"最少充值 {{amount}} {{token}}",maxDeposit:"最大充值金额",depositTipFor25w:"单笔充值金额上限为 200,000。若充值金额大于200,000,请使用Ethereum链充值。",depositAllTip:`仅支持发送 {{coin}} ({{v}}) 资产到此地址。 充值金额大于 200,000 时,到账时间存在一定延迟,请耐心等待。`,enableSystemProWithToken:"在{{network}}上启用{{token}}",enableTokenDesc:"您首次在{{network}}上存款时必须启用{{token}}。",enableWithToken:"启用 {{token}}",arrivaltimeTooltip1:"资金约在 {{v}} 分钟 内 (达到 {{v1}} 个区块确认后) 到账。",arrivaltimeTooltip2:"预计时间是根据历史数据计算所得,仅供参考。网络拥堵可能会导致实际到账时间变长。",arrivalEstimated:"≈ {{v}}分钟",availableDesc:"您可以充值的最大金额。当可用为0或负数时,无法进行充值。",noPrivateKeyWalletWarning:"请勿使用无私钥钱包进行充值,无私钥钱包充值会导致资金损失且无法追回。",layerZeroDepositTip:"系统会根据充值资金实际情况,将您的充值通过LayerZero完成。",layerZeroDepositTipExceedPool:"由于充值资金大于资金池,将通过LayerZero完成您的充值。",layerZeroDepositTipGte200k:"由于充值资金大于等于200,000 USDT,将通过LayerZero完成您的充值。",layerZeroDepositButton:"使用LayerZero充值"},withdraw:{noticeDesc:"普通提现是一个两步过程。 此步骤将发起您的提现请求,并将在 Layer2 进行处理。 一旦资金准备就绪(可能需要最多 4 小时),您将收到一条将资金提现到钱包的通知。受链同步等情况影响下,时长可能到 48 小时。您需要自行承担交易 gas 费用。",crossChainTips:"跨链提币需在 L2(通过零知识证明)进行验证。提币过程最多约需2小时。相关链的资产池中需有充足的资金来处理跨链提币,其间还将产生矿工费。 edgeX 将收取一定的手续费作为矿工费。",commonWithdraw:"提现说明",withdraw:"提现",speed:"速度",confirmWithdraw:"提现确认",speedNote:"处理时间:",speedNoteSpeed1:"用时约8分钟",speedNoteSpeed2:"用时约 2-4 小时",speedNoteSpeed3:"用时约4小时",receiverAddress:"接收地址",fee:"手续费",feeRate:"费率",withdrawlAmount:"提现金额",amountToReceive:"到账金额",invalidReceiverAddress:"接收地址不能为空",availableDesc:"您可以提现的最大金额。当可用为0或负数时,无法进行提现。",feeCalculationTip:"提现手续费按照提现金额乘以费率计算,最低为1 USDT/USDC。费率会根据链上实际情况进行调整。",crossChainPoolBalance:"跨链资金池余额",poolBalance:"资金池余额",poolBalanceInsufficientTip:"提现金额大于资金池余额,无法进行提现。请选择资金池余额充足的选项。"},account:{title:"账户",perpetual:"合约账户",spot:"现货账户"}},nm={deposit:{title:"Deposit",chain:"Chain",asset:"Asset",amount:"Amount",available:"Available",equity:"Equity",confirmDeposit:"Confirm Deposit",switchNetwork:"Switch Network",max:"Max",arrivalTime:"Arrival Time",minDeposit:"Minimum Deposit Amount",minDepositParsed:"Min. Deposit {{amount}} {{token}}",maxDeposit:"Maximum Deposit Amount",depositTipFor25w:"The maximum amount per deposit is 200,000. If your deposit exceeds 200,000, please use the Ethereum chain.",depositAllTip:`Only {{coin}} ({{v}}) is supported for deposits to this address. If the deposit amount exceeds 200,000, there may be a delay in the arrival time. Please be patient.`,enableSystemProWithToken:"Enable {{token}} on {{network}}",enableTokenDesc:"You must enable {{token}} the first time you deposit on {{network}}.",enableWithToken:"Enable {{token}}",arrivaltimeTooltip1:"The funds will arrive in approximately {{v}} minutes (after reaching {{v1}} block confirmations).",arrivaltimeTooltip2:"Estimated time is calculated based on historical data and is for reference only. Network congestion may result in longer actual arrival times.",arrivalEstimated:"≈ {{v}} minutes",availableDesc:"The maximum amount you can deposit. When the available balance is 0 or negative, deposits cannot be made.",noPrivateKeyWalletWarning:"Do not use keyless wallets to make deposits. Depositing with a keyless wallet may result in irreversible loss of funds.",layerZeroDepositTip:"The system will complete your deposit via LayerZero based on the actual deposit conditions.",layerZeroDepositTipExceedPool:"Since the deposit amount exceeds the pool, your deposit will be completed via LayerZero.",layerZeroDepositTipGte200k:"Since the deposit amount is greater than or equal to 200,000 USDT, your deposit will be completed via LayerZero.",layerZeroDepositButton:"Deposit with LayerZero"},withdraw:{noticeDesc:"Normal withdrawals are a two-step process. The current step initiates your withdrawal request and will be processed on Layer 2. Once your funds are ready (can take up to 4 hours), you will receive a notification to withdraw funds to your wallet. Due to chain synchronization and other factors, the duration may take up to 48 hours. You are responsible for any transaction gas fees.",crossChainTips:"Cross-chain withdrawals require verification at L2 (via ZK proofs) and the withdrawal process may take up to 2 hours. Sufficient funds in the corresponding chain's asset pool are required to process cross-chain withdrawals. Gas fees will also be incurred. edgeX will charge a fee to cover this.",commonWithdraw:"Withdrawal FAQ",withdraw:"Withdraw",speed:"Speed",confirmWithdraw:"Confirm Withdrawal",speedNote:"Processing Times:",speedNoteSpeed1:"Approx. 8 Minutes",speedNoteSpeed2:"Approx. 2-4 Hours",speedNoteSpeed3:"Approx. 4 Hours",receiverAddress:"Receiver Address",fee:"Fee",feeRate:"Fee Rate",withdrawlAmount:"Withdrawal amount",amountToReceive:"Amount to Receive",invalidReceiverAddress:"Address cannot be empty",availableDesc:"The maximum amount you can withdraw. When the available balance is 0 or negative, withdrawals cannot be made.",feeCalculationTip:"Withdrawal fees are calculated by multiplying the withdrawal amount by the fee rate, with a minimum of 1 USDT/USDC. The fee rate may be adjusted based on actual on-chain conditions.",crossChainPoolBalance:"Cross-chain pool balance",poolBalance:"Pool balance",poolBalanceInsufficientTip:"The withdrawal amount exceeds the fund pool balance, and the withdrawal cannot be processed. Please select an option with a sufficient fund pool balance."},account:{title:"Account",perpetual:"Perpetual Account",spot:"Spot Account"}},rm={deposit:{title:"入金",chain:"チェーン",asset:"資産",amount:"数量",available:"利用可能",equity:"総資産",confirmDeposit:"入金確認",switchNetwork:"ネットワークを切り替え",max:"最大",arrivalTime:"着金予定時間",minDeposit:"最低入金額",minDepositParsed:"最低入金額 {{amount}} {{token}}",maxDeposit:"最大入金額",depositTipFor25w:"1回の入金上限額は200,000です。200,000を超える場合は、Ethereumチェーンでの入金をご利用ください。",depositAllTip:`このアドレスは{{coin}}({{v}})専用です。他通貨は送金しないでください。 入金金額が 200,000 を超える場合、反映までに時間がかかることがあります。しばらくお待ちください。`,enableSystemProWithToken:"{{network}} 上で {{token}} を有効化",enableTokenDesc:"初めて {{network}} に入金する際は、{{token}} の有効化が必要です。",enableWithToken:"{{token}} を有効化",arrivaltimeTooltip1:"資金は約 {{v}} 分以内({{v1}} 回のブロック確認が完了後)に到账します。",arrivaltimeTooltip2:"着金時間は過去データに基づいた目安であり、ネットワーク状況により遅延する場合があります。",arrivalEstimated:"≈ {{v}}分",availableDesc:"入金可能な最大金額。利用可能残高が0または負の数の場合、入金はできません。",noPrivateKeyWalletWarning:"秘密鍵のないウォレットでの入金は行わないでください。そのような入金は資金を失い、取り戻すことができません。",layerZeroDepositTip:"システムは入金資金の実際の状況に基づき、LayerZeroを通じて入金を完了します。",layerZeroDepositTipExceedPool:"入金額がプールを超えているため、LayerZero を通じて入金が完了します。",layerZeroDepositTipGte200k:"入金額が 200,000 USDT 以上のため、LayerZero を通じて入金が完了します。",layerZeroDepositButton:"LayerZeroで入金"},withdraw:{noticeDesc:"通常出金は2ステップで行われます。このステップで出金リクエストを送信し、Layer2で処理されます。資金の準備が完了すると(最大4時間かかる場合があります)、出金の通知が届きます。チェーンの同期などの影響により、所要時間は最長で48時間かかる場合があります。ガス代はユーザー負担です。",crossChainTips:"クロスチェーン出金はL2上(ゼロ知識証明経由)で検証が必要です。出金処理には最大2時間ほどかかる場合があります。対応するチェーンの資産プールに十分な流動性が必要であり、ガス代も発生します。edgeXはそのコストを補うため、一定の手数料を徴収します。",commonWithdraw:"出金ガイド",withdraw:"出金",speed:"出金時間",confirmWithdraw:"出金確認",speedNote:"処理時間:",speedNoteSpeed1:"約8分",speedNoteSpeed2:"約2~4時間",speedNoteSpeed3:"約4時間",receiverAddress:"受取アドレス",fee:"手数料",feeRate:"手数料率",withdrawlAmount:"出金額",amountToReceive:"受け取り金額",invalidReceiverAddress:"ウォレットアドレスは必須です",availableDesc:"引き出し可能な最大金額。利用可能残高が0または負の数の場合、引き出しはできません。",feeCalculationTip:"出金手数料は、出金金額に料率を乗じて計算され、最低1 USDT/USDCとなります。料率は、ブロックチェーンの実際の状況に基づいて調整される場合があります。",crossChainPoolBalance:"クロスチェーンプール残高",poolBalance:"プール残高",poolBalanceInsufficientTip:"出金額が資金プールの残高を上回っているため、出金は処理できません。資金プールの残高が十分にあるオプションを選択してください。"},account:{title:"アカウント",perpetual:"パーペチュアルアカウント",spot:"スポットアカウント"}},om={deposit:{title:"Депозит",chain:"Сеть",asset:"Актив",amount:"Сумма",available:"Доступно",equity:"Капитал",confirmDeposit:"Подтвердить депозит",switchNetwork:"Сменить сеть",max:"Максимум",arrivalTime:"Время поступления",minDeposit:"Минимальная сумма депозита",minDepositParsed:"Мин. депозит {{amount}} {{token}}",maxDeposit:"Максимальная сумма депозита",depositTipFor25w:"Максимальная сумма одного пополнения — 200 000. Если сумма превышает 200 000, пожалуйста, используйте сеть Ethereum для пополнения.",depositAllTip:`На этот адрес можно внести только {{coin}} ({{v}}). Если сумма депозита превышает 200 000, время поступления может быть увеличено. Пожалуйста, ожидайте.`,enableSystemProWithToken:"Включить {{token}} в сети {{network}}",enableTokenDesc:"При первом депозите в сети {{network}} необходимо включить {{token}}.",enableWithToken:"Включить {{token}}",arrivaltimeTooltip1:"Средства поступят в течение примерно {{v}} минут (после достижения {{v1}} подтверждений блоков).",arrivaltimeTooltip2:"Оценка времени основана на истории и дана только для справки. Задержки сети могут увеличить фактическое время поступления.",arrivalEstimated:"≈ {{v}} минут",availableDesc:"Максимальная сумма, которую вы можете пополнить. Если доступный баланс равен 0 или отрицательный, пополнение невозможно.",noPrivateKeyWalletWarning:"Не используйте кошельки без приватных ключей для пополнения. Пополнение с такого кошелька может привести к безвозвратной потере средств.",layerZeroDepositTip:"Система завершит ваше пополнение через LayerZero в зависимости от фактических условий депозита.",layerZeroDepositTipExceedPool:"Поскольку сумма пополнения превышает пул, ваше пополнение будет выполнено через LayerZero.",layerZeroDepositTipGte200k:"Поскольку сумма пополнения больше либо равна 200,000 USDT, ваше пополнение будет выполнено через LayerZero.",layerZeroDepositButton:"Пополнение через LayerZero"},withdraw:{noticeDesc:"Вывод средств происходит в два этапа: сначала подаётся заявка на вывод (обрабатывается на Layer 2), затем - перевод на кошелёк после подготовки средств (до 14 часов). Из-за синхронизации цепочки и других факторов процесс может занять до 48 часов. За gas-комиссии отвечает пользователь.",crossChainTips:"• Кроссчейн выводы требуют проверки на L2 (через ZK доказательства) и могут занять до 2 часов. Для вывода нужны средства в пуле соответствующей цепи. Также взимается комиссия за газ. edgeX взимает плату за обслуживание.",commonWithdraw:"Часто задаваемые вопросы по выводу",withdraw:"Вывод",speed:"Скорость",confirmWithdraw:"Подтвердить вывод",speedNote:"Время обработки:",speedNoteSpeed1:"Прибл. 8 минут",speedNoteSpeed2:"Прибл. 2-4 часа",speedNoteSpeed3:"Прибл. 4 часа",receiverAddress:"Адрес получателя",fee:"Комиссия",feeRate:"Тариф",withdrawlAmount:"Сумма вывода",amountToReceive:"Сумма к получению",invalidReceiverAddress:"Укажите адрес кошелька",availableDesc:"Максимальная сумма, которую вы можете вывести. Если доступный баланс равен 0 или отрицательный, вывод средств невозможен.",feeCalculationTip:"Комиссия за вывод средств рассчитывается путем умножения суммы вывода на ставку комиссии, минимальная комиссия составляет 1 USDT/USDC. Ставка комиссии может быть скорректирована в зависимости от фактической ситуации в сети блокчейн.",crossChainPoolBalance:"Баланс кросс-чейн пула",poolBalance:"Баланс пула",poolBalanceInsufficientTip:"Сумма вывода превышает баланс пула средств, и операция не может быть выполнена. Пожалуйста, выберите опцию с достаточным балансом пула средств."},account:{title:"Аккаунт",perpetual:"Перпетуальный счет",spot:"Спотовый счет"}},sm={deposit:{title:"充值",chain:"鏈",asset:"資產",amount:"數量",available:"可用",equity:"總資產",confirmDeposit:"充值確認",switchNetwork:"切換網絡",max:"最大",arrivalTime:"到帳時間",minDeposit:"最小儲值金額",minDepositParsed:"最少充值 {{amount}} {{token}}",maxDeposit:"最大儲值金額",depositTipFor25w:"單筆充值金額上限為 200,000。若充值金額大於 200,000,請使用 Ethereum 鏈充值。",depositAllTip:`僅支援發送 {{coin}} ({{v}}) 資產到此位址。 充值金額大於 200,000 時,到账時間可能會有延遲,請耐心等待。`,enableSystemProWithToken:"在{{network}}上啓用{{token}}",enableTokenDesc:"您首次在{{network}}上存款時必須啓用{{token}}。",enableWithToken:"啓用 {{token}}",arrivaltimeTooltip1:"資金約在 {{v}} 分鐘內(達到 {{v1}} 個區塊確認後)到賬。",arrivaltimeTooltip2:"預計時間是根據歷史資料計算所得,僅供參考。網路壅塞可能會導致實際到帳時間變長。",arrivalEstimated:"≈ {{v}}分鐘",availableDesc:"您可以充值的最大金額。當可用餘額為0或負數時,無法進行充值。",noPrivateKeyWalletWarning:"請勿使用無私鑰錢包進行充值,無私鑰錢包充值會導致資金損失且無法追回。",layerZeroDepositTip:"系統會根據充值資金的實際情況,通過 LayerZero 完成您的充值。",layerZeroDepositTipExceedPool:"由於充值資金大於資金池,將透過 LayerZero 完成您的充值。",layerZeroDepositTipGte200k:"由於充值資金大於等於 200,000 USDT,將透過 LayerZero 完成您的充值。",layerZeroDepositButton:"使用LayerZero充值"},withdraw:{noticeDesc:"普通提現是一個兩步過程。此步驟將發起您的提現請求,並將在 Layer2 進行處理。一旦資金準備就緒(可能需要最多 4 小時),您將收到一條將資金提現到錢包的通知。受鏈同步等情況影響下,時長可能需要長達 48 小時。您需要自行承擔交易 gas 費用。",crossChainTips:"跨鏈提幣需在 L2(通過零知識證明)進行驗證。提幣過程最多約需2小時。相關鏈的資產池中需有充足的資金來處理跨鏈提幣,其間還將產生礦工費。 edgeX 將收取一定的手續費作爲礦工費。",commonWithdraw:"提現說明",withdraw:"提現",speed:"速度",confirmWithdraw:"提現確認",speedNote:"處理時間:",speedNoteSpeed1:"用時約8分鐘",speedNoteSpeed2:"用時約 2-4 小時",speedNoteSpeed3:"用時約4小時",receiverAddress:"接收地址",fee:"手續費",feeRate:"費率",withdrawlAmount:"提現金額",amountToReceive:"到账金額",invalidReceiverAddress:"接收地址不能為空",availableDesc:"您可以提現的最大金額。當可用餘額為0或負數時,無法進行提現。",feeCalculationTip:"提現手續費按照提現金額乘以費率計算,最低為 1 USDT/USDC。費率會根據鏈上實際情況進行調整。",crossChainPoolBalance:"跨鏈資金池餘額",poolBalance:"資金池餘額",poolBalanceInsufficientTip:"提現金額大於資金池餘額,無法進行提現。請選擇資金池餘額充足的選項。"},account:{title:"帳戶",perpetual:"合約帳戶",spot:"現貨帳戶"}},ei=["en-US","ja-JP","ru-RU","zh-CN","zh-TW"],uu={"en-US":nm,"ja-JP":rm,"ru-RU":om,"zh-CN":tm,"zh-TW":sm},Bo="en-US",im={"en-US":"English","zh-CN":"简体中文","zh-TW":"繁體中文","ja-JP":"日本語","ru-RU":"Русский"},am=e=>ei.includes(e)?uu[e]:uu[Bo],cm=e=>ei.includes(e),lu=v.createContext(null),um=({config:e,children:t})=>{const n=v.useMemo(()=>{const r=e.locale||Bo,o=cm(r)?r:Bo,s=am(o);return{...e,currentLocale:o,translations:s}},[e]);return M.jsx(lu.Provider,{value:n,children:t})},fu=()=>{const e=v.useContext(lu);if(!e)throw new Error("useComponentConfig must be used within ComponentProvider");return e};var lm=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,ti=Math.ceil,Ye=Math.floor,De="[BigNumber Error] ",du=De+"Number primitive has more than 15 significant digits: ",ft=1e14,ne=14,ni=9007199254740991,ri=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],un=1e7,Te=1e9;function pu(e){var t,n,r,o=y.prototype={constructor:y,toString:null,valueOf:null},s=new y(1),i=20,c=4,a=-7,u=21,l=-1e7,f=1e7,p=!1,d=1,h=0,m={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},x="0123456789abcdefghijklmnopqrstuvwxyz",T=!0;function y(g,w){var $,I,C,P,S,E,O,N,b=this;if(!(b instanceof y))return new y(g,w);if(w==null){if(g&&g._isBigNumber===!0){b.s=g.s,!g.c||g.e>f?b.c=b.e=null:g.e<l?b.c=[b.e=0]:(b.e=g.e,b.c=g.c.slice());return}if((E=typeof g=="number")&&g*0==0){if(b.s=1/g<0?(g=-g,-1):1,g===~~g){for(P=0,S=g;S>=10;S/=10,P++);P>f?b.c=b.e=null:(b.e=P,b.c=[g]);return}N=String(g)}else{if(!lm.test(N=String(g)))return r(b,N,E);b.s=N.charCodeAt(0)==45?(N=N.slice(1),-1):1}(P=N.indexOf("."))>-1&&(N=N.replace(".","")),(S=N.search(/e/i))>0?(P<0&&(P=S),P+=+N.slice(S+1),N=N.substring(0,S)):P<0&&(P=N.length)}else{if(ye(w,2,x.length,"Base"),w==10&&T)return b=new y(g),_(b,i+b.e+1,c);if(N=String(g),E=typeof g=="number"){if(g*0!=0)return r(b,N,E,w);if(b.s=1/g<0?(N=N.slice(1),-1):1,y.DEBUG&&N.replace(/^0\.0*|\./,"").length>15)throw Error(du+g)}else b.s=N.charCodeAt(0)===45?(N=N.slice(1),-1):1;for($=x.slice(0,w),P=S=0,O=N.length;S<O;S++)if($.indexOf(I=N.charAt(S))<0){if(I=="."){if(S>P){P=O;continue}}else if(!C&&(N==N.toUpperCase()&&(N=N.toLowerCase())||N==N.toLowerCase()&&(N=N.toUpperCase()))){C=!0,S=-1,P=0;continue}return r(b,String(g),E,w)}E=!1,N=n(N,w,10,b.s),(P=N.indexOf("."))>-1?N=N.replace(".",""):P=N.length}for(S=0;N.charCodeAt(S)===48;S++);for(O=N.length;N.charCodeAt(--O)===48;);if(N=N.slice(S,++O)){if(O-=S,E&&y.DEBUG&&O>15&&(g>ni||g!==Ye(g)))throw Error(du+b.s*g);if((P=P-S-1)>f)b.c=b.e=null;else if(P<l)b.c=[b.e=0];else{if(b.e=P,b.c=[],S=(P+1)%ne,P<0&&(S+=ne),S<O){for(S&&b.c.push(+N.slice(0,S)),O-=ne;S<O;)b.c.push(+N.slice(S,S+=ne));S=ne-(N=N.slice(S)).length}else S-=O;for(;S--;N+="0");b.c.push(+N)}}else b.c=[b.e=0]}y.clone=pu,y.ROUND_UP=0,y.ROUND_DOWN=1,y.ROUND_CEIL=2,y.ROUND_FLOOR=3,y.ROUND_HALF_UP=4,y.ROUND_HALF_DOWN=5,y.ROUND_HALF_EVEN=6,y.ROUND_HALF_CEIL=7,y.ROUND_HALF_FLOOR=8,y.EUCLID=9,y.config=y.set=function(g){var w,$;if(g!=null)if(typeof g=="object"){if(g.hasOwnProperty(w="DECIMAL_PLACES")&&($=g[w],ye($,0,Te,w),i=$),g.hasOwnProperty(w="ROUNDING_MODE")&&($=g[w],ye($,0,8,w),c=$),g.hasOwnProperty(w="EXPONENTIAL_AT")&&($=g[w],$&&$.pop?(ye($[0],-Te,0,w),ye($[1],0,Te,w),a=$[0],u=$[1]):(ye($,-Te,Te,w),a=-(u=$<0?-$:$))),g.hasOwnProperty(w="RANGE"))if($=g[w],$&&$.pop)ye($[0],-Te,-1,w),ye($[1],1,Te,w),l=$[0],f=$[1];else if(ye($,-Te,Te,w),$)l=-(f=$<0?-$:$);else throw Error(De+w+" cannot be zero: "+$);if(g.hasOwnProperty(w="CRYPTO"))if($=g[w],$===!!$)if($)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))p=$;else throw p=!$,Error(De+"crypto unavailable");else p=$;else throw Error(De+w+" not true or false: "+$);if(g.hasOwnProperty(w="MODULO_MODE")&&($=g[w],ye($,0,9,w),d=$),g.hasOwnProperty(w="POW_PRECISION")&&($=g[w],ye($,0,Te,w),h=$),g.hasOwnProperty(w="FORMAT"))if($=g[w],typeof $=="object")m=$;else throw Error(De+w+" not an object: "+$);if(g.hasOwnProperty(w="ALPHABET"))if($=g[w],typeof $=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test($))T=$.slice(0,10)=="0123456789",x=$;else throw Error(De+w+" invalid: "+$)}else throw Error(De+"Object expected: "+g);return{DECIMAL_PLACES:i,ROUNDING_MODE:c,EXPONENTIAL_AT:[a,u],RANGE:[l,f],CRYPTO:p,MODULO_MODE:d,POW_PRECISION:h,FORMAT:m,ALPHABET:x}},y.isBigNumber=function(g){if(!g||g._isBigNumber!==!0)return!1;if(!y.DEBUG)return!0;var w,$,I=g.c,C=g.e,P=g.s;e:if({}.toString.call(I)=="[object Array]"){if((P===1||P===-1)&&C>=-Te&&C<=Te&&C===Ye(C)){if(I[0]===0){if(C===0&&I.length===1)return!0;break e}if(w=(C+1)%ne,w<1&&(w+=ne),String(I[0]).length==w){for(w=0;w<I.length;w++)if($=I[w],$<0||$>=ft||$!==Ye($))break e;if($!==0)return!0}}}else if(I===null&&C===null&&(P===null||P===1||P===-1))return!0;throw Error(De+"Invalid BigNumber: "+g)},y.maximum=y.max=function(){return B(arguments,-1)},y.minimum=y.min=function(){return B(arguments,1)},y.random=function(){var g=9007199254740992,w=Math.random()*g&2097151?function(){return Ye(Math.random()*g)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function($){var I,C,P,S,E,O=0,N=[],b=new y(s);if($==null?$=i:ye($,0,Te),S=ti($/ne),p)if(crypto.getRandomValues){for(I=crypto.getRandomValues(new Uint32Array(S*=2));O<S;)E=I[O]*131072+(I[O+1]>>>11),E>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),I[O]=C[0],I[O+1]=C[1]):(N.push(E%1e14),O+=2);O=S/2}else if(crypto.randomBytes){for(I=crypto.randomBytes(S*=7);O<S;)E=(I[O]&31)*281474976710656+I[O+1]*1099511627776+I[O+2]*4294967296+I[O+3]*16777216+(I[O+4]<<16)+(I[O+5]<<8)+I[O+6],E>=9e15?crypto.randomBytes(7).copy(I,O):(N.push(E%1e14),O+=7);O=S/7}else throw p=!1,Error(De+"crypto unavailable");if(!p)for(;O<S;)E=w(),E<9e15&&(N[O++]=E%1e14);for(S=N[--O],$%=ne,S&&$&&(E=ri[ne-$],N[O]=Ye(S/E)*E);N[O]===0;N.pop(),O--);if(O<0)N=[P=0];else{for(P=-1;N[0]===0;N.splice(0,1),P-=ne);for(O=1,E=N[0];E>=10;E/=10,O++);O<ne&&(P-=ne-O)}return b.e=P,b.c=N,b}}(),y.sum=function(){for(var g=1,w=arguments,$=new y(w[0]);g<w.length;)$=$.plus(w[g++]);return $},n=function(){var g="0123456789";function w($,I,C,P){for(var S,E=[0],O,N=0,b=$.length;N<b;){for(O=E.length;O--;E[O]*=I);for(E[0]+=P.indexOf($.charAt(N++)),S=0;S<E.length;S++)E[S]>C-1&&(E[S+1]==null&&(E[S+1]=0),E[S+1]+=E[S]/C|0,E[S]%=C)}return E.reverse()}return function($,I,C,P,S){var E,O,N,b,k,R,j,U,H=$.indexOf("."),K=i,G=c;for(H>=0&&(b=h,h=0,$=$.replace(".",""),U=new y(I),R=U.pow($.length-H),h=b,U.c=w(_t(Qe(R.c),R.e,"0"),10,C,g),U.e=U.c.length),j=w($,I,C,S?(E=x,g):(E=g,x)),N=b=j.length;j[--b]==0;j.pop());if(!j[0])return E.charAt(0);if(H<0?--N:(R.c=j,R.e=N,R.s=P,R=t(R,U,K,G,C),j=R.c,k=R.r,N=R.e),O=N+K+1,H=j[O],b=C/2,k=k||O<0||j[O+1]!=null,k=G<4?(H!=null||k)&&(G==0||G==(R.s<0?3:2)):H>b||H==b&&(G==4||k||G==6&&j[O-1]&1||G==(R.s<0?8:7)),O<1||!j[0])$=k?_t(E.charAt(1),-K,E.charAt(0)):E.charAt(0);else{if(j.length=O,k)for(--C;++j[--O]>C;)j[O]=0,O||(++N,j=[1].concat(j));for(b=j.length;!j[--b];);for(H=0,$="";H<=b;$+=E.charAt(j[H++]));$=_t($,N,E.charAt(0))}return $}}(),t=function(){function g(I,C,P){var S,E,O,N,b=0,k=I.length,R=C%un,j=C/un|0;for(I=I.slice();k--;)O=I[k]%un,N=I[k]/un|0,S=j*O+N*R,E=R*O+S%un*un+b,b=(E/P|0)+(S/un|0)+j*N,I[k]=E%P;return b&&(I=[b].concat(I)),I}function w(I,C,P,S){var E,O;if(P!=S)O=P>S?1:-1;else for(E=O=0;E<P;E++)if(I[E]!=C[E]){O=I[E]>C[E]?1:-1;break}return O}function $(I,C,P,S){for(var E=0;P--;)I[P]-=E,E=I[P]<C[P]?1:0,I[P]=E*S+I[P]-C[P];for(;!I[0]&&I.length>1;I.splice(0,1));}return function(I,C,P,S,E){var O,N,b,k,R,j,U,H,K,G,W,V,Y,Q,oe,pe,Se,he=I.s==C.s?1:-1,me=I.c,le=C.c;if(!me||!me[0]||!le||!le[0])return new y(!I.s||!C.s||(me?le&&me[0]==le[0]:!le)?NaN:me&&me[0]==0||!le?he*0:he/0);for(H=new y(he),K=H.c=[],N=I.e-C.e,he=P+N+1,E||(E=ft,N=Xe(I.e/ne)-Xe(C.e/ne),he=he/ne|0),b=0;le[b]==(me[b]||0);b++);if(le[b]>(me[b]||0)&&N--,he<0)K.push(1),k=!0;else{for(Q=me.length,pe=le.length,b=0,he+=2,R=Ye(E/(le[0]+1)),R>1&&(le=g(le,R,E),me=g(me,R,E),pe=le.length,Q=me.length),Y=pe,G=me.slice(0,pe),W=G.length;W<pe;G[W++]=0);Se=le.slice(),Se=[0].concat(Se),oe=le[0],le[1]>=E/2&&oe++;do{if(R=0,O=w(le,G,pe,W),O<0){if(V=G[0],pe!=W&&(V=V*E+(G[1]||0)),R=Ye(V/oe),R>1)for(R>=E&&(R=E-1),j=g(le,R,E),U=j.length,W=G.length;w(j,G,U,W)==1;)R--,$(j,pe<U?Se:le,U,E),U=j.length,O=1;else R==0&&(O=R=1),j=le.slice(),U=j.length;if(U<W&&(j=[0].concat(j)),$(G,j,W,E),W=G.length,O==-1)for(;w(le,G,pe,W)<1;)R++,$(G,pe<W?Se:le,W,E),W=G.length}else O===0&&(R++,G=[0]);K[b++]=R,G[0]?G[W++]=me[Y]||0:(G=[me[Y]],W=1)}while((Y++<Q||G[0]!=null)&&he--);k=G[0]!=null,K[0]||K.splice(0,1)}if(E==ft){for(b=1,he=K[0];he>=10;he/=10,b++);_(H,P+(H.e=b+N*ne-1)+1,S,k)}else H.e=N,H.r=+k;return H}}();function A(g,w,$,I){var C,P,S,E,O;if($==null?$=c:ye($,0,8),!g.c)return g.toString();if(C=g.c[0],S=g.e,w==null)O=Qe(g.c),O=I==1||I==2&&(S<=a||S>=u)?Fo(O,S):_t(O,S,"0");else if(g=_(new y(g),w,$),P=g.e,O=Qe(g.c),E=O.length,I==1||I==2&&(w<=P||P<=a)){for(;E<w;O+="0",E++);O=Fo(O,P)}else if(w-=S+(I===2&&P>S),O=_t(O,P,"0"),P+1>E){if(--w>0)for(O+=".";w--;O+="0");}else if(w+=P-E,w>0)for(P+1==E&&(O+=".");w--;O+="0");return g.s<0&&C?"-"+O:O}function B(g,w){for(var $,I,C=1,P=new y(g[0]);C<g.length;C++)I=new y(g[C]),(!I.s||($=En(P,I))===w||$===0&&P.s===w)&&(P=I);return P}function L(g,w,$){for(var I=1,C=w.length;!w[--C];w.pop());for(C=w[0];C>=10;C/=10,I++);return($=I+$*ne-1)>f?g.c=g.e=null:$<l?g.c=[g.e=0]:(g.e=$,g.c=w),g}r=function(){var g=/^(-?)0([xbo])(?=\w[\w.]*$)/i,w=/^([^.]+)\.$/,$=/^\.([^.]+)$/,I=/^-?(Infinity|NaN)$/,C=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(P,S,E,O){var N,b=E?S:S.replace(C,"");if(I.test(b))P.s=isNaN(b)?null:b<0?-1:1;else{if(!E&&(b=b.replace(g,function(k,R,j){return N=(j=j.toLowerCase())=="x"?16:j=="b"?2:8,!O||O==N?R:k}),O&&(N=O,b=b.replace(w,"$1").replace($,"0.$1")),S!=b))return new y(b,N);if(y.DEBUG)throw Error(De+"Not a"+(O?" base "+O:"")+" number: "+S);P.s=null}P.c=P.e=null}}();function _(g,w,$,I){var C,P,S,E,O,N,b,k=g.c,R=ri;if(k){e:{for(C=1,E=k[0];E>=10;E/=10,C++);if(P=w-C,P<0)P+=ne,S=w,O=k[N=0],b=Ye(O/R[C-S-1]%10);else if(N=ti((P+1)/ne),N>=k.length)if(I){for(;k.length<=N;k.push(0));O=b=0,C=1,P%=ne,S=P-ne+1}else break e;else{for(O=E=k[N],C=1;E>=10;E/=10,C++);P%=ne,S=P-ne+C,b=S<0?0:Ye(O/R[C-S-1]%10)}if(I=I||w<0||k[N+1]!=null||(S<0?O:O%R[C-S-1]),I=$<4?(b||I)&&($==0||$==(g.s<0?3:2)):b>5||b==5&&($==4||I||$==6&&(P>0?S>0?O/R[C-S]:0:k[N-1])%10&1||$==(g.s<0?8:7)),w<1||!k[0])return k.length=0,I?(w-=g.e+1,k[0]=R[(ne-w%ne)%ne],g.e=-w||0):k[0]=g.e=0,g;if(P==0?(k.length=N,E=1,N--):(k.length=N+1,E=R[ne-P],k[N]=S>0?Ye(O/R[C-S]%R[S])*E:0),I)for(;;)if(N==0){for(P=1,S=k[0];S>=10;S/=10,P++);for(S=k[0]+=E,E=1;S>=10;S/=10,E++);P!=E&&(g.e++,k[0]==ft&&(k[0]=1));break}else{if(k[N]+=E,k[N]!=ft)break;k[N--]=0,E=1}for(P=k.length;k[--P]===0;k.pop());}g.e>f?g.c=g.e=null:g.e<l&&(g.c=[g.e=0])}return g}function D(g){var w,$=g.e;return $===null?g.toString():(w=Qe(g.c),w=$<=a||$>=u?Fo(w,$):_t(w,$,"0"),g.s<0?"-"+w:w)}return o.absoluteValue=o.abs=function(){var g=new y(this);return g.s<0&&(g.s=1),g},o.comparedTo=function(g,w){return En(this,new y(g,w))},o.decimalPlaces=o.dp=function(g,w){var $,I,C,P=this;if(g!=null)return ye(g,0,Te),w==null?w=c:ye(w,0,8),_(new y(P),g+P.e+1,w);if(!($=P.c))return null;if(I=((C=$.length-1)-Xe(this.e/ne))*ne,C=$[C])for(;C%10==0;C/=10,I--);return I<0&&(I=0),I},o.dividedBy=o.div=function(g,w){return t(this,new y(g,w),i,c)},o.dividedToIntegerBy=o.idiv=function(g,w){return t(this,new y(g,w),0,1)},o.exponentiatedBy=o.pow=function(g,w){var $,I,C,P,S,E,O,N,b,k=this;if(g=new y(g),g.c&&!g.isInteger())throw Error(De+"Exponent not an integer: "+D(g));if(w!=null&&(w=new y(w)),E=g.e>14,!k.c||!k.c[0]||k.c[0]==1&&!k.e&&k.c.length==1||!g.c||!g.c[0])return b=new y(Math.pow(+D(k),E?g.s*(2-Lo(g)):+D(g))),w?b.mod(w):b;if(O=g.s<0,w){if(w.c?!w.c[0]:!w.s)return new y(NaN);I=!O&&k.isInteger()&&w.isInteger(),I&&(k=k.mod(w))}else{if(g.e>9&&(k.e>0||k.e<-1||(k.e==0?k.c[0]>1||E&&k.c[1]>=24e7:k.c[0]<8e13||E&&k.c[0]<=9999975e7)))return P=k.s<0&&Lo(g)?-0:0,k.e>-1&&(P=1/P),new y(O?1/P:P);h&&(P=ti(h/ne+2))}for(E?($=new y(.5),O&&(g.s=1),N=Lo(g)):(C=Math.abs(+D(g)),N=C%2),b=new y(s);;){if(N){if(b=b.times(k),!b.c)break;P?b.c.length>P&&(b.c.length=P):I&&(b=b.mod(w))}if(C){if(C=Ye(C/2),C===0)break;N=C%2}else if(g=g.times($),_(g,g.e+1,1),g.e>14)N=Lo(g);else{if(C=+D(g),C===0)break;N=C%2}k=k.times(k),P?k.c&&k.c.length>P&&(k.c.length=P):I&&(k=k.mod(w))}return I?b:(O&&(b=s.div(b)),w?b.mod(w):P?_(b,h,c,S):b)},o.integerValue=function(g){var w=new y(this);return g==null?g=c:ye(g,0,8),_(w,w.e+1,g)},o.isEqualTo=o.eq=function(g,w){return En(this,new y(g,w))===0},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(g,w){return En(this,new y(g,w))>0},o.isGreaterThanOrEqualTo=o.gte=function(g,w){return(w=En(this,new y(g,w)))===1||w===0},o.isInteger=function(){return!!this.c&&Xe(this.e/ne)>this.c.length-2},o.isLessThan=o.lt=function(g,w){return En(this,new y(g,w))<0},o.isLessThanOrEqualTo=o.lte=function(g,w){return(w=En(this,new y(g,w)))===-1||w===0},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&this.c[0]==0},o.minus=function(g,w){var $,I,C,P,S=this,E=S.s;if(g=new y(g,w),w=g.s,!E||!w)return new y(NaN);if(E!=w)return g.s=-w,S.plus(g);var O=S.e/ne,N=g.e/ne,b=S.c,k=g.c;if(!O||!N){if(!b||!k)return b?(g.s=-w,g):new y(k?S:NaN);if(!b[0]||!k[0])return k[0]?(g.s=-w,g):new y(b[0]?S:c==3?-0:0)}if(O=Xe(O),N=Xe(N),b=b.slice(),E=O-N){for((P=E<0)?(E=-E,C=b):(N=O,C=k),C.reverse(),w=E;w--;C.push(0));C.reverse()}else for(I=(P=(E=b.length)<(w=k.length))?E:w,E=w=0;w<I;w++)if(b[w]!=k[w]){P=b[w]<k[w];break}if(P&&(C=b,b=k,k=C,g.s=-g.s),w=(I=k.length)-($=b.length),w>0)for(;w--;b[$++]=0);for(w=ft-1;I>E;){if(b[--I]<k[I]){for($=I;$&&!b[--$];b[$]=w);--b[$],b[I]+=ft}b[I]-=k[I]}for(;b[0]==0;b.splice(0,1),--N);return b[0]?L(g,b,N):(g.s=c==3?-1:1,g.c=[g.e=0],g)},o.modulo=o.mod=function(g,w){var $,I,C=this;return g=new y(g,w),!C.c||!g.s||g.c&&!g.c[0]?new y(NaN):!g.c||C.c&&!C.c[0]?new y(C):(d==9?(I=g.s,g.s=1,$=t(C,g,0,3),g.s=I,$.s*=I):$=t(C,g,0,d),g=C.minus($.times(g)),!g.c[0]&&d==1&&(g.s=C.s),g)},o.multipliedBy=o.times=function(g,w){var $,I,C,P,S,E,O,N,b,k,R,j,U,H,K,G=this,W=G.c,V=(g=new y(g,w)).c;if(!W||!V||!W[0]||!V[0])return!G.s||!g.s||W&&!W[0]&&!V||V&&!V[0]&&!W?g.c=g.e=g.s=null:(g.s*=G.s,!W||!V?g.c=g.e=null:(g.c=[0],g.e=0)),g;for(I=Xe(G.e/ne)+Xe(g.e/ne),g.s*=G.s,O=W.length,k=V.length,O<k&&(U=W,W=V,V=U,C=O,O=k,k=C),C=O+k,U=[];C--;U.push(0));for(H=ft,K=un,C=k;--C>=0;){for($=0,R=V[C]%K,j=V[C]/K|0,S=O,P=C+S;P>C;)N=W[--S]%K,b=W[S]/K|0,E=j*N+b*R,N=R*N+E%K*K+U[P]+$,$=(N/H|0)+(E/K|0)+j*b,U[P--]=N%H;U[P]=$}return $?++I:U.splice(0,1),L(g,U,I)},o.negated=function(){var g=new y(this);return g.s=-g.s||null,g},o.plus=function(g,w){var $,I=this,C=I.s;if(g=new y(g,w),w=g.s,!C||!w)return new y(NaN);if(C!=w)return g.s=-w,I.minus(g);var P=I.e/ne,S=g.e/ne,E=I.c,O=g.c;if(!P||!S){if(!E||!O)return new y(C/0);if(!E[0]||!O[0])return O[0]?g:new y(E[0]?I:C*0)}if(P=Xe(P),S=Xe(S),E=E.slice(),C=P-S){for(C>0?(S=P,$=O):(C=-C,$=E),$.reverse();C--;$.push(0));$.reverse()}for(C=E.length,w=O.length,C-w<0&&($=O,O=E,E=$,w=C),C=0;w;)C=(E[--w]=E[w]+O[w]+C)/ft|0,E[w]=ft===E[w]?0:E[w]%ft;return C&&(E=[C].concat(E),++S),L(g,E,S)},o.precision=o.sd=function(g,w){var $,I,C,P=this;if(g!=null&&g!==!!g)return ye(g,1,Te),w==null?w=c:ye(w,0,8),_(new y(P),g,w);if(!($=P.c))return null;if(C=$.length-1,I=C*ne+1,C=$[C]){for(;C%10==0;C/=10,I--);for(C=$[0];C>=10;C/=10,I++);}return g&&P.e+1>I&&(I=P.e+1),I},o.shiftedBy=function(g){return ye(g,-ni,ni),this.times("1e"+g)},o.squareRoot=o.sqrt=function(){var g,w,$,I,C,P=this,S=P.c,E=P.s,O=P.e,N=i+4,b=new y("0.5");if(E!==1||!S||!S[0])return new y(!E||E<0&&(!S||S[0])?NaN:S?P:1/0);if(E=Math.sqrt(+D(P)),E==0||E==1/0?(w=Qe(S),(w.length+O)%2==0&&(w+="0"),E=Math.sqrt(+w),O=Xe((O+1)/2)-(O<0||O%2),E==1/0?w="5e"+O:(w=E.toExponential(),w=w.slice(0,w.indexOf("e")+1)+O),$=new y(w)):$=new y(E+""),$.c[0]){for(O=$.e,E=O+N,E<3&&(E=0);;)if(C=$,$=b.times(C.plus(t(P,C,N,1))),Qe(C.c).slice(0,E)===(w=Qe($.c)).slice(0,E))if($.e<O&&--E,w=w.slice(E-3,E+1),w=="9999"||!I&&w=="4999"){if(!I&&(_(C,C.e+i+2,0),C.times(C).eq(P))){$=C;break}N+=4,E+=4,I=1}else{(!+w||!+w.slice(1)&&w.charAt(0)=="5")&&(_($,$.e+i+2,1),g=!$.times($).eq(P));break}}return _($,$.e+i+1,c,g)},o.toExponential=function(g,w){return g!=null&&(ye(g,0,Te),g++),A(this,g,w,1)},o.toFixed=function(g,w){return g!=null&&(ye(g,0,Te),g=g+this.e+1),A(this,g,w)},o.toFormat=function(g,w,$){var I,C=this;if($==null)g!=null&&w&&typeof w=="object"?($=w,w=null):g&&typeof g=="object"?($=g,g=w=null):$=m;else if(typeof $!="object")throw Error(De+"Argument not an object: "+$);if(I=C.toFixed(g,w),C.c){var P,S=I.split("."),E=+$.groupSize,O=+$.secondaryGroupSize,N=$.groupSeparator||"",b=S[0],k=S[1],R=C.s<0,j=R?b.slice(1):b,U=j.length;if(O&&(P=E,E=O,O=P,U-=P),E>0&&U>0){for(P=U%E||E,b=j.substr(0,P);P<U;P+=E)b+=N+j.substr(P,E);O>0&&(b+=N+j.slice(P)),R&&(b="-"+b)}I=k?b+($.decimalSeparator||"")+((O=+$.fractionGroupSize)?k.replace(new RegExp("\\d{"+O+"}\\B","g"),"$&"+($.fractionGroupSeparator||"")):k):b}return($.prefix||"")+I+($.suffix||"")},o.toFraction=function(g){var w,$,I,C,P,S,E,O,N,b,k,R,j=this,U=j.c;if(g!=null&&(E=new y(g),!E.isInteger()&&(E.c||E.s!==1)||E.lt(s)))throw Error(De+"Argument "+(E.isInteger()?"out of range: ":"not an integer: ")+D(E));if(!U)return new y(j);for(w=new y(s),N=$=new y(s),I=O=new y(s),R=Qe(U),P=w.e=R.length-j.e-1,w.c[0]=ri[(S=P%ne)<0?ne+S:S],g=!g||E.comparedTo(w)>0?P>0?w:N:E,S=f,f=1/0,E=new y(R),O.c[0]=0;b=t(E,w,0,1),C=$.plus(b.times(I)),C.comparedTo(g)!=1;)$=I,I=C,N=O.plus(b.times(C=N)),O=C,w=E.minus(b.times(C=w)),E=C;return C=t(g.minus($),I,0,1),O=O.plus(C.times(N)),$=$.plus(C.times(I)),O.s=N.s=j.s,P=P*2,k=t(N,I,P,c).minus(j).abs().comparedTo(t(O,$,P,c).minus(j).abs())<1?[N,I]:[O,$],f=S,k},o.toNumber=function(){return+D(this)},o.toPrecision=function(g,w){return g!=null&&ye(g,1,Te),A(this,g,w,2)},o.toString=function(g){var w,$=this,I=$.s,C=$.e;return C===null?I?(w="Infinity",I<0&&(w="-"+w)):w="NaN":(g==null?w=C<=a||C>=u?Fo(Qe($.c),C):_t(Qe($.c),C,"0"):g===10&&T?($=_(new y($),i+C+1,c),w=_t(Qe($.c),$.e,"0")):(ye(g,2,x.length,"Base"),w=n(_t(Qe($.c),C,"0"),10,g,I,!0)),I<0&&$.c[0]&&(w="-"+w)),w},o.valueOf=o.toJSON=function(){return D(this)},o._isBigNumber=!0,o[Symbol.toStringTag]="BigNumber",o[Symbol.for("nodejs.util.inspect.custom")]=o.valueOf,e!=null&&y.set(e),y}function Xe(e){var t=e|0;return e>0||e===t?t:t-1}function Qe(e){for(var t,n,r=1,o=e.length,s=e[0]+"";r<o;){for(t=e[r++]+"",n=ne-t.length;n--;t="0"+t);s+=t}for(o=s.length;s.charCodeAt(--o)===48;);return s.slice(0,o+1||1)}function En(e,t){var n,r,o=e.c,s=t.c,i=e.s,c=t.s,a=e.e,u=t.e;if(!i||!c)return null;if(n=o&&!o[0],r=s&&!s[0],n||r)return n?r?0:-c:i;if(i!=c)return i;if(n=i<0,r=a==u,!o||!s)return r?0:!o^n?1:-1;if(!r)return a>u^n?1:-1;for(c=(a=o.length)<(u=s.length)?a:u,i=0;i<c;i++)if(o[i]!=s[i])return o[i]>s[i]^n?1:-1;return a==u?0:a>u^n?1:-1}function ye(e,t,n,r){if(e<t||e>n||e!==Ye(e))throw Error(De+(r||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Lo(e){var t=e.c.length-1;return Xe(e.e/ne)==t&&e.c[t]%2!=0}function Fo(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function _t(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(r=e.length,++t>r){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var ke=pu();const fm=(e,t=6)=>{try{const n=new ke(e||"0");if(n.isNaN())return"0";const r=n.decimalPlaces(t,ke.ROUND_DOWN),[o,s=""]=r.toString().split("."),i=o.replace(/\B(?=(\d{3})+(?!\d))/g,",");if(t>0){const c=(s||"").padEnd(t,"0");return`${i}.${c}`}return i}catch(n){return console.warn("formatThousands error:",n),"0"}},dt=()=>{const{translations:e,currentLocale:t}=fu();return{t:(s,i)=>{try{const c=s.split(".");let a=e;for(const l of c)if(a&&typeof a=="object"&&l in a)a=a[l];else return s;let u=typeof a=="string"?a:s;return i&&typeof u=="string"&&Object.keys(i).forEach(l=>{const f=`{{${l}}}`;u=u.replace(new RegExp(f,"g"),String(i[l]))}),u}catch(c){return console.warn(`Translation error for key "${s}":`,c),s}},translations:e,locale:t,getTranslationObject:s=>{try{const i=s.split(".");let c=e;for(const a of i)if(c&&typeof c=="object"&&a in c)c=c[a];else return{};return typeof c=="object"?c:{}}catch(i){return console.warn(`Translation object error for key "${s}":`,i),{}}},hasTranslation:s=>{try{const i=s.split(".");let c=e;for(const a of i)if(c&&typeof c=="object"&&a in c)c=c[a];else return!1;return typeof c=="string"}catch{return!1}}}},dm="1.0.8";let qe=class ou extends Error{constructor(t,n={}){var i;const r=n.cause instanceof ou?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,o=n.cause instanceof ou&&n.cause.docsPath||n.docsPath,s=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${dm}`].join(` `);super(s),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}};function Ut(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const hu=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,mu=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,gu=/^\(.+?\).*?$/,bu=/^tuple(?<array>(\[(\d*)\])*)$/;function oi(e){let t=e.type;if(bu.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let o=0;o<n;o++){const s=e.components[o];t+=oi(s),o<n-1&&(t+=", ")}const r=Ut(bu,e.type);return t+=`)${(r==null?void 0:r.array)??""}`,oi({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Ir(e){let t="";const n=e.length;for(let r=0;r<n;r++){const o=e[r];t+=oi(o),r!==n-1&&(t+=", ")}