@readyio/react-native-wallet 0.1.58 → 0.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
|
|
3
3
|
!(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach((function(n,t){e[n]=!0})),e}function t(n,t,a){if(n.formatValueCalls++,n.formatValueCalls>200)return"[TOO BIG formatValueCalls "+n.formatValueCalls+" exceeded limit of 200]";var f=r(n,t);if(f)return f;var c=Object.keys(t),s=e(c);if(d(t)&&(c.indexOf('message')>=0||c.indexOf('description')>=0))return o(t);if(0===c.length){if(v(t)){var g=t.name?': '+t.name:'';return n.stylize('[Function'+g+']','special')}if(p(t))return n.stylize(RegExp.prototype.toString.call(t),'regexp');if(y(t))return n.stylize(Date.prototype.toString.call(t),'date');if(d(t))return o(t)}var h,b,m='',j=!1,O=['{','}'];(h=t,Array.isArray(h)&&(j=!0,O=['[',']']),v(t))&&(m=' [Function'+(t.name?': '+t.name:'')+']');return p(t)&&(m=' '+RegExp.prototype.toString.call(t)),y(t)&&(m=' '+Date.prototype.toUTCString.call(t)),d(t)&&(m=' '+o(t)),0!==c.length||j&&0!=t.length?a<0?p(t)?n.stylize(RegExp.prototype.toString.call(t),'regexp'):n.stylize('[Object]','special'):(n.seen.push(t),b=j?i(n,t,a,s,c):c.map((function(e){return l(n,t,a,s,e,j)})),n.seen.pop(),u(b,m,O)):O[0]+m+O[1]}function r(n,e){if(s(e))return n.stylize('undefined','undefined');if('string'==typeof e){var t="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(t,'string')}return c(e)?n.stylize(''+e,'number'):a(e)?n.stylize(''+e,'boolean'):f(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,t,r,o){for(var i=[],u=0,a=e.length;u<a;++u)b(e,String(u))?i.push(l(n,e,t,r,String(u),!0)):i.push('');return o.forEach((function(o){o.match(/^\d+$/)||i.push(l(n,e,t,r,o,!0))})),i}function l(n,e,r,o,i,l){var u,a,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=c.set?n.stylize('[Getter/Setter]','special'):n.stylize('[Getter]','special'):c.set&&(a=n.stylize('[Setter]','special')),b(o,i)||(u='['+i+']'),a||(n.seen.indexOf(c.value)<0?(a=f(r)?t(n,c.value,null):t(n,c.value,r-1)).indexOf('\n')>-1&&(a=l?a.split('\n').map((function(n){return' '+n})).join('\n').substr(2):'\n'+a.split('\n').map((function(n){return' '+n})).join('\n')):a=n.stylize('[Circular]','special')),s(u)){if(l&&i.match(/^\d+$/))return a;(u=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=n.stylize(u,'name')):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=n.stylize(u,'string'))}return u+': '+a}function u(n,e,t){return n.reduce((function(n,e){return e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1}),0)>60?t[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+t[1]:t[0]+e+' '+n.join(', ')+' '+t[1]}function a(n){return'boolean'==typeof n}function f(n){return null===n}function c(n){return'number'==typeof n}function s(n){return void 0===n}function p(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function b(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,r){return t({seen:[],formatValueCalls:0,stylize:n},e,r.depth)}})(),t=0,r=1,o=2,i=3,l=[];l[t]='debug',l[r]='log',l[o]='warning',l[i]='error';function u(t){return function(){var r;r=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,(function(n){return e(n,{depth:10})})).join(', ');var u=arguments[0],a=t;'string'==typeof u&&'Warning: '===u.slice(0,9)&&a>=i&&(a=o),n.__inspectorLog&&n.__inspectorLog(l[a],r,[].slice.call(arguments),1),f.length&&(r=c('',r)),n.nativeLoggingHook(r,a)}}function a(n,e){return Array.apply(null,Array(e)).map((function(){return n}))}var f=[];function c(n,e){return f.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:u(i),info:u(r),log:u(r),warn:u(o),trace:u(t),debug:u(t),table:function(e){if(!Array.isArray(e)){var t=e;for(var o in e=[],t)if(t.hasOwnProperty(o)){var i=t[o];i["(index)"]=o,e.push(i)}}if(0!==e.length){var l=Object.keys(e[0]).sort(),u=[],f=[];l.forEach((function(n,t){f[t]=n.length;for(var r=0;r<e.length;r++){var o=(e[r][n]||'?').toString();u[r]=u[r]||[],u[r][t]=o,f[t]=Math.max(f[t],o.length)}}));for(var c=g(f.map((function(n){return a('-',n).join('')})),'-'),s=[g(l),c],p=0;p<e.length;p++)s.push(g(u[p]));n.nativeLoggingHook('\n'+s.join('\n'),r)}else n.nativeLoggingHook('',r);function g(n,e){var t=n.map((function(n,e){return n+a(' ',f[e]-n.length).join('')}));return e=e||' ',t.join(e+'|'+e)}},group:function(e){n.nativeLoggingHook(c("\u2510",e),r),f.push("\u2502")},groupEnd:function(){f.pop(),n.nativeLoggingHook(c("\u2518"),r)},groupCollapsed:function(e){n.nativeLoggingHook(c("\u2518",e),r),f.push("\u2502")},assert:function(e,t){e||n.nativeLoggingHook('Assertion failed: '+t,i)}},Object.defineProperty(console,'_isPolyfilled',{value:!0,enumerable:!1})}else if(!n.console){var s=function(){},p=n.print||s;n.console={debug:p,error:p,info:p,log:p,trace:p,warn:p,assert:function(n,e){n||p('Assertion failed: '+e)},clear:s,dir:s,dirxml:s,group:s,groupCollapsed:s,groupEnd:s,profile:s,profileEnd:s,table:s},Object.defineProperty(console,'_isPolyfilled',{value:!0,enumerable:!1})}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this);
|
|
4
4
|
!(function(n){var r=0,t=function(n,r){throw n},l={setGlobalHandler:function(n){t=n},getGlobalHandler:function(){return t},reportError:function(n){t&&t(n,!1)},reportFatalError:function(n){t&&t(n,!0)},applyWithGuard:function(n,t,u,o,e){try{return r++,n.apply(t,u)}catch(n){l.reportError(n)}finally{r--}return null},applyWithGuardIfNeeded:function(n,r,t){return l.inGuard()?n.apply(r,t):(l.applyWithGuard(n,r,t),null)},inGuard:function(){return!!r},guard:function(n,r,t){var u;if('function'!=typeof n)return console.warn('A function must be passed to ErrorUtils.guard, got ',n),null;var o=null!=(u=null!=r?r:n.name)?u:'<generated guard>';return function(){for(var r=arguments.length,u=new Array(r),e=0;e<r;e++)u[e]=arguments[e];return l.applyWithGuard(n,null!=t?t:this,u,null,o)}}};n.ErrorUtils=l})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this);
|
|
5
5
|
'undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window&&window,(function(){'use strict';var e=Object.prototype.hasOwnProperty;'function'!=typeof Object.entries&&(Object.entries=function(n){if(null==n)throw new TypeError('Object.entries called on non-object');var o=[];for(var t in n)e.call(n,t)&&o.push([t,n[t]]);return o}),'function'!=typeof Object.values&&(Object.values=function(n){if(null==n)throw new TypeError('Object.values called on non-object');var o=[];for(var t in n)e.call(n,t)&&o.push(n[t]);return o})})();
|
|
6
|
-
__d((function(g,r,i,a,m,e,d){r(d[0]),r(d[1]),r(d[2]),r(d[3]),r(d[4]);var t=r(d[5])(r(d[6]));r(d[7]);var n=r(d[8]),o=r(d[5])(r(d[9]));function u(t){return(0,r(d[11]).jsx)(o.default,Object.assign({},t))}'undefined'==typeof BigInt&&(g.BigInt=r(d[10])),BigInt.prototype.toJSON=function(){return this.toString()},t.default.scaleY=!0,n.AppRegistry.registerComponent(r(d[12]).name,(function(){return u}))}),0,[1,17,425,427,428,20,149,440,18,442,
|
|
6
|
+
__d((function(g,r,i,a,m,e,d){r(d[0]),r(d[1]),r(d[2]),r(d[3]),r(d[4]);var t=r(d[5])(r(d[6]));r(d[7]);var n=r(d[8]),o=r(d[5])(r(d[9]));function u(t){return(0,r(d[11]).jsx)(o.default,Object.assign({},t))}'undefined'==typeof BigInt&&(g.BigInt=r(d[10])),BigInt.prototype.toJSON=function(){return this.toString()},t.default.scaleY=!0,n.AppRegistry.registerComponent(r(d[12]).name,(function(){return u}))}),0,[1,17,425,427,428,20,149,440,18,442,4973,180,4974]);
|
|
7
7
|
__d((function(g,r,i,a,m,e,d){g.Buffer=r(d[0]).Buffer,g.process=r(d[1]),g.location={protocol:'file:'},g.navigator.userAgent='React Native',g.atob=r(d[2]).decode,g.btoa=r(d[2]).encode}),1,[2,15,16]);
|
|
8
8
|
__d((function(g,r,_i,_a,_m,_e,d){
|
|
9
9
|
/*!
|
|
@@ -499,7 +499,7 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
|
499
499
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]);e.default=o.TurboModuleRegistry.getEnforcing("RNWalletConnectModule")}),439,[18]);
|
|
500
500
|
__d((function(g,r,i,a,m,e,d){var t,n;t=this,n=function(t){'use strict';return t.defineLocale('vi',{months:'th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12'.split('_'),monthsShort:'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split('_'),monthsParseExact:!0,weekdays:'ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y'.split('_'),weekdaysShort:'CN_T2_T3_T4_T5_T6_T7'.split('_'),weekdaysMin:'CN_T2_T3_T4_T5_T6_T7'.split('_'),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,n,h){return t<12?h?'sa':'SA':h?'ch':'CH'},longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD/MM/YYYY',LL:'D MMMM [n\u0103m] YYYY',LLL:'D MMMM [n\u0103m] YYYY HH:mm',LLLL:'dddd, D MMMM [n\u0103m] YYYY HH:mm',l:'DD/M/YYYY',ll:'D MMM YYYY',lll:'D MMM YYYY HH:mm',llll:'ddd, D MMM YYYY HH:mm'},calendar:{sameDay:'[H\xf4m nay l\xfac] LT',nextDay:'[Ng\xe0y mai l\xfac] LT',nextWeek:'dddd [tu\u1ea7n t\u1edbi l\xfac] LT',lastDay:'[H\xf4m qua l\xfac] LT',lastWeek:'dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT',sameElse:'L'},relativeTime:{future:'%s t\u1edbi',past:'%s tr\u01b0\u1edbc',s:'v\xe0i gi\xe2y',ss:'%d gi\xe2y',m:'m\u1ed9t ph\xfat',mm:'%d ph\xfat',h:'m\u1ed9t gi\u1edd',hh:'%d gi\u1edd',d:'m\u1ed9t ng\xe0y',dd:'%d ng\xe0y',w:'m\u1ed9t tu\u1ea7n',ww:'%d tu\u1ea7n',M:'m\u1ed9t th\xe1ng',MM:'%d th\xe1ng',y:'m\u1ed9t n\u0103m',yy:'%d n\u0103m'},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?n(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],n):n(t.moment)}),440,[441]);
|
|
501
501
|
__d((function(e,t,n,s,i,r,a){!(function(e,t){'object'==typeof r&&void 0!==i?i.exports=t():'function'==typeof define&&define.amd?define(t):e.moment=t()})(this,(function(){'use strict';var e,n;function s(){return e.apply(null,arguments)}function r(e){return e instanceof Array||'[object Array]'===Object.prototype.toString.call(e)}function a(e){return null!=e&&'[object Object]'===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function d(e){return'number'==typeof e||'[object Number]'===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||'[object Date]'===Object.prototype.toString.call(e)}function c(e,t){var n,s=[],i=e.length;for(n=0;n<i;++n)s.push(t(e[n],n));return s}function f(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,'toString')&&(e.toString=t.toString),o(t,'valueOf')&&(e.valueOf=t.valueOf),e}function m(e,t,n,s){return Bt(e,t,n,s,!0).utc()}function _(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function y(e){var t=null,s=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=_(e),s=n.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function g(e){var t=m(NaN);return null!=e?f(_(t),e):_(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),s=n.length>>>0;for(t=0;t<s;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var w=s.momentProperties=[],v=!1;function p(e,t){var n,s,i,r=w.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=_(t)),l(t._locale)||(e._locale=t._locale),r>0)for(n=0;n<r;n++)l(i=t[s=w[n]])||(e[s]=i);return e}function k(e){p(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,s.updateOffset(this),v=!1)}function M(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function D(e){!1===s.suppressDeprecationWarnings&&'undefined'!=typeof console&&console.warn&&console.warn('Deprecation warning: '+e)}function Y(e,t){var n=!0;return f((function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,e),n){var i,r,a,u=[],l=arguments.length;for(r=0;r<l;r++){if(i='','object'==typeof arguments[r]){for(a in i+='\n['+r+'] ',arguments[0])o(arguments[0],a)&&(i+=a+': '+arguments[0][a]+', ');i=i.slice(0,-2)}else i=arguments[r];u.push(i)}D(e+'\nArguments: '+Array.prototype.slice.call(u).join('')+'\n'+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var S,O={};function b(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),O[e]||(D(t),O[e]=!0)}function T(e){return'undefined'!=typeof Function&&e instanceof Function||'[object Function]'===Object.prototype.toString.call(e)}function x(e,t){var n,s=f({},e);for(n in t)o(t,n)&&(a(e[n])&&a(t[n])?(s[n]={},f(s[n],e[n]),f(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)o(e,n)&&!o(t,n)&&a(e[n])&&(s[n]=f({},s[n]));return s}function N(e){null!=e&&this.set(e)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};function W(e,t,n){var s=''+Math.abs(e),i=t-s.length;return(e>=0?n?'+':'':'-')+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,C={},U={};function H(e,t,n,s){var i=s;'string'==typeof s&&(i=function(){return this[s]()}),e&&(U[e]=i),t&&(U[t[0]]=function(){return W(i.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function F(e){var t,n,s,i=e.match(P);for(t=0,n=i.length;t<n;t++)U[i[t]]?i[t]=U[i[t]]:i[t]=(s=i[t]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,''):s.replace(/\\/g,'');return function(t){var s,r='';for(s=0;s<n;s++)r+=T(i[s])?i[s].call(t,e):i[s];return r}}function L(e,t){return e.isValid()?(t=V(t,e.localeData()),C[t]=C[t]||F(t),C[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;n>=0&&R.test(e);)e=e.replace(R,s),R.lastIndex=0,n-=1;return e}var G={D:'date',dates:'date',date:'date',d:'day',days:'day',day:'day',e:'weekday',weekdays:'weekday',weekday:'weekday',E:'isoWeekday',isoweekdays:'isoWeekday',isoweekday:'isoWeekday',DDD:'dayOfYear',dayofyears:'dayOfYear',dayofyear:'dayOfYear',h:'hour',hours:'hour',hour:'hour',ms:'millisecond',milliseconds:'millisecond',millisecond:'millisecond',m:'minute',minutes:'minute',minute:'minute',M:'month',months:'month',month:'month',Q:'quarter',quarters:'quarter',quarter:'quarter',s:'second',seconds:'second',second:'second',gg:'weekYear',weekyears:'weekYear',weekyear:'weekYear',GG:'isoWeekYear',isoweekyears:'isoWeekYear',isoweekyear:'isoWeekYear',w:'week',weeks:'week',week:'week',W:'isoWeek',isoweeks:'isoWeek',isoweek:'isoWeek',y:'year',years:'year',year:'year'};function E(e){return'string'==typeof e?G[e]||G[e.toLowerCase()]:void 0}function A(e){var t,n,s={};for(n in e)o(e,n)&&(t=E(n))&&(s[t]=e[n]);return s}var j={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function I(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:j[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var Z,z=/\d/,$=/\d\d/,q=/\d{3}/,B=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,X=/\d\d\d\d?/,K=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,te=/\d{1,4}/,ne=/[+-]?\d{1,6}/,se=/\d+/,ie=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,oe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue=/^[1-9]\d?/,le=/^([1-9]\d|\d)/;function de(e,t,n){Z[e]=T(t)?t:function(e,s){return e&&n?n:t}}function he(e,t){return o(Z,e)?Z[e](t._strict,t._locale):new RegExp(ce(e.replace('\\','').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,s,i){return t||n||s||i}))))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}function fe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function me(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=fe(t)),n}Z={};var _e={};function ye(e,t){var n,s,i=t;for('string'==typeof e&&(e=[e]),d(t)&&(i=function(e,n){n[t]=me(e)}),s=e.length,n=0;n<s;n++)_e[e[n]]=i}function ge(e,t){ye(e,(function(e,n,s,i){s._w=s._w||{},t(e,s._w,s,i)}))}function we(e,t,n){null!=t&&o(_e,e)&&_e[e](t,n._a,n,e)}function ve(e){return e%4==0&&e%100!=0||e%400==0}var pe=0,ke=1,Me=2,De=3,Ye=4,Se=5,Oe=6,be=7,Te=8;function xe(e){return ve(e)?366:365}H('Y',0,0,(function(){var e=this.year();return e<=9999?W(e,4):'+'+e})),H(0,['YY',2],0,(function(){return this.year()%100})),H(0,['YYYY',4],0,'year'),H(0,['YYYYY',5],0,'year'),H(0,['YYYYYY',6,!0],0,'year'),de('Y',ie),de('YY',Q,$),de('YYYY',te,B),de('YYYYY',ne,J),de('YYYYYY',ne,J),ye(['YYYYY','YYYYYY'],pe),ye('YYYY',(function(e,t){t[pe]=2===e.length?s.parseTwoDigitYear(e):me(e)})),ye('YY',(function(e,t){t[pe]=s.parseTwoDigitYear(e)})),ye('Y',(function(e,t){t[pe]=parseInt(e,10)})),s.parseTwoDigitYear=function(e){return me(e)+(me(e)>68?1900:2e3)};var Ne,We=Pe('FullYear',!0);function Pe(e,t){return function(n){return null!=n?(Ce(this,e,n),s.updateOffset(this,t),this):Re(this,e)}}function Re(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case'Milliseconds':return s?n.getUTCMilliseconds():n.getMilliseconds();case'Seconds':return s?n.getUTCSeconds():n.getSeconds();case'Minutes':return s?n.getUTCMinutes():n.getMinutes();case'Hours':return s?n.getUTCHours():n.getHours();case'Date':return s?n.getUTCDate():n.getDate();case'Day':return s?n.getUTCDay():n.getDay();case'Month':return s?n.getUTCMonth():n.getMonth();case'FullYear':return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ce(e,t,n){var s,i,r,a,o;if(e.isValid()&&!isNaN(n)){switch(s=e._d,i=e._isUTC,t){case'Milliseconds':return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case'Seconds':return void(i?s.setUTCSeconds(n):s.setSeconds(n));case'Minutes':return void(i?s.setUTCMinutes(n):s.setMinutes(n));case'Hours':return void(i?s.setUTCHours(n):s.setHours(n));case'Date':return void(i?s.setUTCDate(n):s.setDate(n));case'FullYear':break;default:return}r=n,a=e.month(),o=29!==(o=e.date())||1!==a||ve(r)?o:28,i?s.setUTCFullYear(r,a,o):s.setFullYear(r,a,o)}}function Ue(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?ve(e)?29:28:31-s%7%2}Ne=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H('M',['MM',2],'Mo',(function(){return this.month()+1})),H('MMM',0,0,(function(e){return this.localeData().monthsShort(this,e)})),H('MMMM',0,0,(function(e){return this.localeData().months(this,e)})),de('M',Q,ue),de('MM',Q,$),de('MMM',(function(e,t){return t.monthsShortRegex(e)})),de('MMMM',(function(e,t){return t.monthsRegex(e)})),ye(['M','MM'],(function(e,t){t[ke]=me(e)-1})),ye(['MMM','MMMM'],(function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[ke]=i:_(n).invalidMonth=e}));var He='January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),Fe='Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ve=oe,Ge=oe;function Ee(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=m([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,'').toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,'').toLocaleLowerCase();return n?'MMM'===t?-1!==(i=Ne.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ne.call(this._longMonthsParse,a))?i:null:'MMM'===t?-1!==(i=Ne.call(this._shortMonthsParse,a))||-1!==(i=Ne.call(this._longMonthsParse,a))?i:null:-1!==(i=Ne.call(this._longMonthsParse,a))||-1!==(i=Ne.call(this._shortMonthsParse,a))?i:null}function Ae(e,t){if(!e.isValid())return e;if('string'==typeof t)if(/^\d+$/.test(t))t=me(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var n=t,s=e.date();return s=s<29?s:Math.min(s,Ue(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function je(e){return null!=e?(Ae(this,e),s.updateOffset(this,!0),this):Re(this,'Month')}function Ie(){function e(e,t){return t.length-e.length}var t,n,s,i,r=[],a=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),s=ce(this.monthsShort(n,'')),i=ce(this.months(n,'')),r.push(s),a.push(i),o.push(i),o.push(s);r.sort(e),a.sort(e),o.sort(e),this._monthsRegex=new RegExp('^('+o.join('|')+')','i'),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp('^('+a.join('|')+')','i'),this._monthsShortStrictRegex=new RegExp('^('+r.join('|')+')','i')}function Ze(e,t,n,s,i,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function ze(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $e(e,t,n){var s=7+t-n;return-((7+ze(e,0,s).getUTCDay()-t)%7)+s-1}function qe(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+$e(e,s,i);return o<=0?a=xe(r=e-1)+o:o>xe(e)?(r=e+1,a=o-xe(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Be(e,t,n){var s,i,r=$e(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Je(i=e.year()-1,t,n):a>Je(e.year(),t,n)?(s=a-Je(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Je(e,t,n){var s=$e(e,t,n),i=$e(e+1,t,n);return(xe(e)-s+i)/7}H('w',['ww',2],'wo','week'),H('W',['WW',2],'Wo','isoWeek'),de('w',Q,ue),de('ww',Q,$),de('W',Q,ue),de('WW',Q,$),ge(['w','ww','W','WW'],(function(e,t,n,s){t[s.substr(0,1)]=me(e)}));function Qe(e,t){return'string'!=typeof e?e:isNaN(e)?'number'==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Xe(e,t){return'string'==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}H('d',0,'do','day'),H('dd',0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H('ddd',0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H('dddd',0,0,(function(e){return this.localeData().weekdays(this,e)})),H('e',0,0,'weekday'),H('E',0,0,'isoWeekday'),de('d',Q),de('e',Q),de('E',Q),de('dd',(function(e,t){return t.weekdaysMinRegex(e)})),de('ddd',(function(e,t){return t.weekdaysShortRegex(e)})),de('dddd',(function(e,t){return t.weekdaysRegex(e)})),ge(['dd','ddd','dddd'],(function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:_(n).invalidWeekday=e})),ge(['d','e','E'],(function(e,t,n,s){t[s]=me(e)}));var et='Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),tt='Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),nt='Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),st=oe,it=oe,rt=oe;function at(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=m([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,'').toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,'').toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,'').toLocaleLowerCase();return n?'dddd'===t?-1!==(i=Ne.call(this._weekdaysParse,a))?i:null:'ddd'===t?-1!==(i=Ne.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:'dddd'===t?-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._shortWeekdaysParse,a))||-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:'ddd'===t?-1!==(i=Ne.call(this._shortWeekdaysParse,a))||-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ne.call(this._minWeekdaysParse,a))||-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._shortWeekdaysParse,a))?i:null}function ot(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),s=ce(this.weekdaysMin(n,'')),i=ce(this.weekdaysShort(n,'')),r=ce(this.weekdays(n,'')),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp('^('+l.join('|')+')','i'),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp('^('+u.join('|')+')','i'),this._weekdaysShortStrictRegex=new RegExp('^('+o.join('|')+')','i'),this._weekdaysMinStrictRegex=new RegExp('^('+a.join('|')+')','i')}function ut(){return this.hours()%12||12}function lt(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function dt(e,t){return t._meridiemParse}H('H',['HH',2],0,'hour'),H('h',['hh',2],0,ut),H('k',['kk',2],0,(function(){return this.hours()||24})),H('hmm',0,0,(function(){return''+ut.apply(this)+W(this.minutes(),2)})),H('hmmss',0,0,(function(){return''+ut.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)})),H('Hmm',0,0,(function(){return''+this.hours()+W(this.minutes(),2)})),H('Hmmss',0,0,(function(){return''+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)})),lt('a',!0),lt('A',!1),de('a',dt),de('A',dt),de('H',Q,le),de('h',Q,ue),de('k',Q,ue),de('HH',Q,$),de('hh',Q,$),de('kk',Q,$),de('hmm',X),de('hmmss',K),de('Hmm',X),de('Hmmss',K),ye(['H','HH'],De),ye(['k','kk'],(function(e,t,n){var s=me(e);t[De]=24===s?0:s})),ye(['a','A'],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(['h','hh'],(function(e,t,n){t[De]=me(e),_(n).bigHour=!0})),ye('hmm',(function(e,t,n){var s=e.length-2;t[De]=me(e.substr(0,s)),t[Ye]=me(e.substr(s)),_(n).bigHour=!0})),ye('hmmss',(function(e,t,n){var s=e.length-4,i=e.length-2;t[De]=me(e.substr(0,s)),t[Ye]=me(e.substr(s,2)),t[Se]=me(e.substr(i)),_(n).bigHour=!0})),ye('Hmm',(function(e,t,n){var s=e.length-2;t[De]=me(e.substr(0,s)),t[Ye]=me(e.substr(s))})),ye('Hmmss',(function(e,t,n){var s=e.length-4,i=e.length-2;t[De]=me(e.substr(0,s)),t[Ye]=me(e.substr(s,2)),t[Se]=me(e.substr(i))}));var ht=Pe('Hours',!0);var ct,ft={calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'},longDateFormat:{LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY h:mm A',LLLL:'dddd, MMMM D, YYYY h:mm A'},invalidDate:'Invalid date',ordinal:'%d',dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:'in %s',past:'%s ago',s:'a few seconds',ss:'%d seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',w:'a week',ww:'%d weeks',M:'a month',MM:'%d months',y:'a year',yy:'%d years'},months:He,monthsShort:Fe,week:{dow:0,doy:6},weekdays:et,weekdaysMin:nt,weekdaysShort:tt,meridiemParse:/[ap]\.?m?\.?/i},mt={},_t={};function yt(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function gt(e){return e?e.toLowerCase().replace('_','-'):e}function wt(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=gt(e[r]).split('-')).length,n=(n=gt(e[r+1]))?n.split('-'):null;t>0;){if(s=pt(i.slice(0,t).join('-')))return s;if(n&&n.length>=t&&yt(i,n)>=t-1)break;t--}r++}return ct}function vt(e){return!(!e||!e.match('^[^/\\\\]*$'))}function pt(e){var n=null;if(void 0===mt[e]&&void 0!==i&&i&&i.exports&&vt(e))try{n=ct._abbr,t('./locale/'+e),kt(n)}catch(t){mt[e]=null}return mt[e]}function kt(e,t){var n;return e&&((n=l(t)?Dt(e):Mt(e,t))?ct=n:'undefined'!=typeof console&&console.warn&&console.warn('Locale '+e+' not found. Did you forget to load it?')),ct._abbr}function Mt(e,t){if(null!==t){var n,s=ft;if(t.abbr=e,null!=mt[e])b('defineLocaleOverride',"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=mt[e]._config;else if(null!=t.parentLocale)if(null!=mt[t.parentLocale])s=mt[t.parentLocale]._config;else{if(null==(n=pt(t.parentLocale)))return _t[t.parentLocale]||(_t[t.parentLocale]=[]),_t[t.parentLocale].push({name:e,config:t}),null;s=n._config}return mt[e]=new N(x(s,t)),_t[e]&&_t[e].forEach((function(e){Mt(e.name,e.config)})),kt(e),mt[e]}return delete mt[e],null}function Dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ct;if(!r(e)){if(t=pt(e))return t;e=[e]}return wt(e)}function Yt(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[ke]<0||n[ke]>11?ke:n[Me]<1||n[Me]>Ue(n[pe],n[ke])?Me:n[De]<0||n[De]>24||24===n[De]&&(0!==n[Ye]||0!==n[Se]||0!==n[Oe])?De:n[Ye]<0||n[Ye]>59?Ye:n[Se]<0||n[Se]>59?Se:n[Oe]<0||n[Oe]>999?Oe:-1,_(e)._overflowDayOfYear&&(t<pe||t>Me)&&(t=Me),_(e)._overflowWeeks&&-1===t&&(t=be),_(e)._overflowWeekday&&-1===t&&(t=Te),_(e).overflow=t),e}var St=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ot=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,Tt=[['YYYYYY-MM-DD',/[+-]\d{6}-\d\d-\d\d/],['YYYY-MM-DD',/\d{4}-\d\d-\d\d/],['GGGG-[W]WW-E',/\d{4}-W\d\d-\d/],['GGGG-[W]WW',/\d{4}-W\d\d/,!1],['YYYY-DDD',/\d{4}-\d{3}/],['YYYY-MM',/\d{4}-\d\d/,!1],['YYYYYYMMDD',/[+-]\d{10}/],['YYYYMMDD',/\d{8}/],['GGGG[W]WWE',/\d{4}W\d{3}/],['GGGG[W]WW',/\d{4}W\d{2}/,!1],['YYYYDDD',/\d{7}/],['YYYYMM',/\d{6}/,!1],['YYYY',/\d{4}/,!1]],xt=[['HH:mm:ss.SSSS',/\d\d:\d\d:\d\d\.\d+/],['HH:mm:ss,SSSS',/\d\d:\d\d:\d\d,\d+/],['HH:mm:ss',/\d\d:\d\d:\d\d/],['HH:mm',/\d\d:\d\d/],['HHmmss.SSSS',/\d\d\d\d\d\d\.\d+/],['HHmmss,SSSS',/\d\d\d\d\d\d,\d+/],['HHmmss',/\d\d\d\d\d\d/],['HHmm',/\d\d\d\d/],['HH',/\d\d/]],Nt=/^\/?Date\((-?\d+)/i,Wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Pt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Rt(e){var t,n,s,i,r,a,o=e._i,u=St.exec(o)||Ot.exec(o),l=Tt.length,d=xt.length;if(u){for(_(e).iso=!0,t=0,n=l;t<n;t++)if(Tt[t][1].exec(u[1])){i=Tt[t][0],s=!1!==Tt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=d;t<n;t++)if(xt[t][1].exec(u[3])){r=(u[2]||' ')+xt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!bt.exec(u[4]))return void(e._isValid=!1);a='Z'}e._f=i+(r||'')+(a||''),jt(e)}else e._isValid=!1}function Ct(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ut(e,t,n){if(e&&tt.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return _(n).weekdayMismatch=!0,n._isValid=!1,!1;return!0}function Ht(e,t,n){if(e)return Pt[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return 60*((s-i)/100)+i}function Ft(e){var t,n,s,i,r,a,o,u,l=Wt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g,' ').replace(/(\s\s+)/g,' ').replace(/^\s\s*/,'').replace(/\s\s*$/,''));if(l){if(n=l[4],s=l[3],i=l[2],r=l[5],a=l[6],o=l[7],u=[Ct(n),Fe.indexOf(s),parseInt(i,10),parseInt(r,10),parseInt(a,10)],o&&u.push(parseInt(o,10)),t=u,!Ut(l[1],t,e))return;e._a=t,e._tzm=Ht(l[8],l[9],l[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function Lt(e){var t=Nt.exec(e._i);null===t?(Rt(e),!1===e._isValid&&(delete e._isValid,Ft(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:s.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Vt(e,t,n){return null!=e?e:null!=t?t:n}function Gt(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Et(e){var t,n,s,i,r,a=[];if(!e._d){for(s=Gt(e),e._w&&null==e._a[Me]&&null==e._a[ke]&&At(e),null!=e._dayOfYear&&(r=Vt(e._a[pe],s[pe]),(e._dayOfYear>xe(r)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=ze(r,0,e._dayOfYear),e._a[ke]=n.getUTCMonth(),e._a[Me]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[De]&&0===e._a[Ye]&&0===e._a[Se]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[De]=0),e._d=(e._useUTC?ze:Ze).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[De]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(_(e).weekdayMismatch=!0)}}function At(e){var t,n,s,i,r,a,o,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,a=4,n=Vt(t.GG,e._a[pe],Be(Jt(),1,4).year),s=Vt(t.W,1),((i=Vt(t.E,1))<1||i>7)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,l=Be(Jt(),r,a),n=Vt(t.gg,e._a[pe],l.year),s=Vt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r),s<1||s>Je(n,r,a)?_(e)._overflowWeeks=!0:null!=u?_(e)._overflowWeekday=!0:(o=qe(n,s,i,r,a),e._a[pe]=o.year,e._dayOfYear=o.dayOfYear)}function jt(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],_(e).empty=!0;var t,n,i,r,a,o,u,l=''+e._i,d=l.length,h=0;for(u=(i=V(e._f,e._locale).match(P)||[]).length,t=0;t<u;t++)r=i[t],(n=(l.match(he(r,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&_(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),h+=n.length),U[r]?(n?_(e).empty=!1:_(e).unusedTokens.push(r),we(r,n,e)):e._strict&&!n&&_(e).unusedTokens.push(r);_(e).charsLeftOver=d-h,l.length>0&&_(e).unusedInput.push(l),e._a[De]<=12&&!0===_(e).bigHour&&e._a[De]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[De]=It(e._locale,e._a[De],e._meridiem),null!==(o=_(e).era)&&(e._a[pe]=e._locale.erasConvertYear(o,e._a[pe])),Et(e),Yt(e)}else Ft(e);else Rt(e)}function It(e,t,n){var s;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}function Zt(e){var t,n,s,i,r,a,o=!1,u=e._f.length;if(0===u)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)r=0,a=!1,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],jt(t),y(t)&&(a=!0),r+=_(t).charsLeftOver,r+=10*_(t).unusedTokens.length,_(t).score=r,o?r<s&&(s=r,n=t):(null==s||r<s||a)&&(s=r,n=t,a&&(o=!0));f(e,n||t)}function zt(e){if(!e._d){var t=A(e._i),n=void 0===t.day?t.date:t.day;e._a=c([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Et(e)}}function $t(e){var t=e._i,n=e._f;return e._locale=e._locale||Dt(e._l),null===t||void 0===n&&''===t?g({nullInput:!0}):('string'==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new k(Yt(t)):(h(t)?e._d=t:r(n)?Zt(e):n?jt(e):qt(e),y(e)||(e._d=null),e))}function qt(e){var t=e._i;l(t)?e._d=new Date(s.now()):h(t)?e._d=new Date(t.valueOf()):'string'==typeof t?Lt(e):r(t)?(e._a=c(t.slice(0),(function(e){return parseInt(e,10)})),Et(e)):a(t)?zt(e):d(t)?e._d=new Date(t):s.createFromInputFallback(e)}function Bt(e,t,n,s,i){var o,l={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(a(e)&&u(e)||r(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=s,(o=new k(Yt($t(l))))._nextDay&&(o.add(1,'d'),o._nextDay=void 0),o}function Jt(e,t,n,s){return Bt(e,t,n,s,!1)}s.createFromInputFallback=Y("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?' UTC':''))})),s.ISO_8601=function(){},s.RFC_2822=function(){};var Qt=Y('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',(function(){var e=Jt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Xt=Y('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',(function(){var e=Jt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Kt(e,t){var n,s;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Jt();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var en=['year','quarter','month','week','day','hour','minute','second','millisecond'];function tn(e){var t,n,s=!1,i=en.length;for(t in e)if(o(e,t)&&(-1===Ne.call(en,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[en[n]]){if(s)return!1;parseFloat(e[en[n]])!==me(e[en[n]])&&(s=!0)}return!0}function nn(e){var t=A(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=tn(t),this._milliseconds=+d+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=Dt(),this._bubble()}function sn(e){return e instanceof nn}function rn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function an(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&me(e[s])!==me(t[s]))&&a++;return a+r}function on(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n='+';return e<0&&(e=-e,n='-'),n+W(~~(e/60),2)+t+W(~~e%60,2)}))}on('Z',':'),on('ZZ',''),de('Z',ae),de('ZZ',ae),ye(['Z','ZZ'],(function(e,t,n){n._useUTC=!0,n._tzm=ln(ae,e)}));var un=/([\+\-]|\d\d)/gi;function ln(e,t){var n,s,i=(t||'').match(e);return null===i?null:0===(s=60*(n=((i[i.length-1]||[])+'').match(un)||['-',0,0])[1]+me(n[2]))?0:'+'===n[0]?s:-s}function dn(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(M(e)||h(e)?e.valueOf():Jt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),s.updateOffset(n,!1),n):Jt(e).local()}function hn(e){return-Math.round(e._d.getTimezoneOffset())}function cn(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}s.updateOffset=function(){};var fn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _n(e,t){var n,s,i,r=e,a=null;return sn(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(a=fn.exec(e))?(n='-'===a[1]?-1:1,r={y:0,d:me(a[Me])*n,h:me(a[De])*n,m:me(a[Ye])*n,s:me(a[Se])*n,ms:me(rn(1e3*a[Oe]))*n}):(a=mn.exec(e))?(n='-'===a[1]?-1:1,r={y:yn(a[2],n),M:yn(a[3],n),w:yn(a[4],n),d:yn(a[5],n),h:yn(a[6],n),m:yn(a[7],n),s:yn(a[8],n)}):null==r?r={}:'object'==typeof r&&('from'in r||'to'in r)&&(i=wn(Jt(r.from),Jt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),s=new nn(r),sn(e)&&o(e,'_locale')&&(s._locale=e._locale),sn(e)&&o(e,'_isValid')&&(s._isValid=e._isValid),s}function yn(e,t){var n=e&&parseFloat(e.replace(',','.'));return(isNaN(n)?0:n)*t}function gn(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,'M').isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,'M'),n}function wn(e,t){var n;return e.isValid()&&t.isValid()?(t=dn(t,e),e.isBefore(t)?n=gn(e,t):((n=gn(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function vn(e,t){return function(n,s){var i;return null===s||isNaN(+s)||(b(t,'moment().'+t+'(period, number) is deprecated. Please use moment().'+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=s,s=i),pn(this,_n(n,s),e),this}}function pn(e,t,n,i){var r=t._milliseconds,a=rn(t._days),o=rn(t._months);e.isValid()&&(i=null==i||i,o&&Ae(e,Re(e,'Month')+o*n),a&&Ce(e,'Date',Re(e,'Date')+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&s.updateOffset(e,a||o))}_n.fn=nn.prototype,_n.invalid=function(){return _n(NaN)};var kn=vn(1,'add'),Mn=vn(-1,'subtract');function Dn(e){return'string'==typeof e||e instanceof String}function Yn(e){var t,n=a(e)&&!u(e),s=!1,i=['years','year','y','months','month','M','days','day','d','dates','date','D','hours','hour','h','minutes','minute','m','seconds','second','s','milliseconds','millisecond','ms'],r=i.length;for(t=0;t<r;t+=1)s=s||o(e,i[t]);return n&&s}function Sn(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Dn(e)})).length),t&&n}function On(e){var t,n=a(e)&&!u(e),s=!1,i=['sameDay','nextDay','lastDay','nextWeek','lastWeek','sameElse'];for(t=0;t<i.length;t+=1)s=s||o(e,i[t]);return n&&s}function bn(e,t){if(e.date()<t.date())return-bn(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,'months');return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,'months')):(t-s)/(e.clone().add(n+1,'months')-s)))||0}function Tn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=Dt(e))&&(this._locale=t),this)}s.defaultFormat='YYYY-MM-DDTHH:mm:ssZ',s.defaultFormatUtc='YYYY-MM-DDTHH:mm:ss[Z]';var xn=Y('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',(function(e){return void 0===e?this.localeData():this.locale(e)}));function Nn(){return this._locale}var Wn=1e3,Pn=6e4,Rn=36e5,Cn=126227808e5;function Un(e,t){return(e%t+t)%t}function Hn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Cn:new Date(e,t,n).valueOf()}function Fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Cn:Date.UTC(e,t,n)}function Ln(e,t){return t.erasAbbrRegex(e)}function Vn(){var e,t,n,s,i,r=[],a=[],o=[],u=[],l=this.eras();for(e=0,t=l.length;e<t;++e)n=ce(l[e].name),s=ce(l[e].abbr),i=ce(l[e].narrow),a.push(n),r.push(s),o.push(i),u.push(n),u.push(s),u.push(i);this._erasRegex=new RegExp('^('+u.join('|')+')','i'),this._erasNameRegex=new RegExp('^('+a.join('|')+')','i'),this._erasAbbrRegex=new RegExp('^('+r.join('|')+')','i'),this._erasNarrowRegex=new RegExp('^('+o.join('|')+')','i')}function Gn(e,t){H(0,[e,e.length],0,t)}function En(e,t,n,s,i){var r;return null==e?Be(this,s,i).year:(t>(r=Je(e,s,i))&&(t=r),An.call(this,e,t,n,s,i))}function An(e,t,n,s,i){var r=qe(e,t,n,s,i),a=ze(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}H('N',0,0,'eraAbbr'),H('NN',0,0,'eraAbbr'),H('NNN',0,0,'eraAbbr'),H('NNNN',0,0,'eraName'),H('NNNNN',0,0,'eraNarrow'),H('y',['y',1],'yo','eraYear'),H('y',['yy',2],0,'eraYear'),H('y',['yyy',3],0,'eraYear'),H('y',['yyyy',4],0,'eraYear'),de('N',Ln),de('NN',Ln),de('NNN',Ln),de('NNNN',(function(e,t){return t.erasNameRegex(e)})),de('NNNNN',(function(e,t){return t.erasNarrowRegex(e)})),ye(['N','NN','NNN','NNNN','NNNNN'],(function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?_(n).era=i:_(n).invalidEra=e})),de('y',se),de('yy',se),de('yyy',se),de('yyyy',se),de('yo',(function(e,t){return t._eraYearOrdinalRegex||se})),ye(['y','yy','yyy','yyyy'],pe),ye(['yo'],(function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[pe]=n._locale.eraYearOrdinalParse(e,i):t[pe]=parseInt(e,10)})),H(0,['gg',2],0,(function(){return this.weekYear()%100})),H(0,['GG',2],0,(function(){return this.isoWeekYear()%100})),Gn('gggg','weekYear'),Gn('ggggg','weekYear'),Gn('GGGG','isoWeekYear'),Gn('GGGGG','isoWeekYear'),de('G',ie),de('g',ie),de('GG',Q,$),de('gg',Q,$),de('GGGG',te,B),de('gggg',te,B),de('GGGGG',ne,J),de('ggggg',ne,J),ge(['gggg','ggggg','GGGG','GGGGG'],(function(e,t,n,s){t[s.substr(0,2)]=me(e)})),ge(['gg','GG'],(function(e,t,n,i){t[i]=s.parseTwoDigitYear(e)})),H('Q',0,'Qo','quarter'),de('Q',z),ye('Q',(function(e,t){t[ke]=3*(me(e)-1)})),H('D',['DD',2],'Do','date'),de('D',Q,ue),de('DD',Q,$),de('Do',(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(['D','DD'],Me),ye('Do',(function(e,t){t[Me]=me(e.match(Q)[0])}));var jn=Pe('Date',!0);H('DDD',['DDDD',3],'DDDo','dayOfYear'),de('DDD',ee),de('DDDD',q),ye(['DDD','DDDD'],(function(e,t,n){n._dayOfYear=me(e)})),H('m',['mm',2],0,'minute'),de('m',Q,le),de('mm',Q,$),ye(['m','mm'],Ye);var In=Pe('Minutes',!1);H('s',['ss',2],0,'second'),de('s',Q,le),de('ss',Q,$),ye(['s','ss'],Se);var Zn,zn,$n=Pe('Seconds',!1);for(H('S',0,0,(function(){return~~(this.millisecond()/100)})),H(0,['SS',2],0,(function(){return~~(this.millisecond()/10)})),H(0,['SSS',3],0,'millisecond'),H(0,['SSSS',4],0,(function(){return 10*this.millisecond()})),H(0,['SSSSS',5],0,(function(){return 100*this.millisecond()})),H(0,['SSSSSS',6],0,(function(){return 1e3*this.millisecond()})),H(0,['SSSSSSS',7],0,(function(){return 1e4*this.millisecond()})),H(0,['SSSSSSSS',8],0,(function(){return 1e5*this.millisecond()})),H(0,['SSSSSSSSS',9],0,(function(){return 1e6*this.millisecond()})),de('S',ee,z),de('SS',ee,$),de('SSS',ee,q),Zn='SSSS';Zn.length<=9;Zn+='S')de(Zn,se);function qn(e,t){t[Oe]=me(1e3*('0.'+e))}for(Zn='S';Zn.length<=9;Zn+='S')ye(Zn,qn);zn=Pe('Milliseconds',!1),H('z',0,0,'zoneAbbr'),H('zz',0,0,'zoneName');var Bn=k.prototype;function Jn(e){return e}Bn.add=kn,Bn.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?M(n=arguments[0])||h(n)||Dn(n)||d(n)||Sn(n)||Yn(n)||null==n?(e=arguments[0],t=void 0):On(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i=e||Jt(),r=dn(i,this).startOf('day'),a=s.calendarFormat(this,r)||'sameElse',o=t&&(T(t[a])?t[a].call(this,i):t[a]);return this.format(o||this.localeData().calendar(a,this,Jt(i)))},Bn.clone=function(){return new k(this)},Bn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=dn(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=E(t)){case'year':r=bn(this,s)/12;break;case'month':r=bn(this,s);break;case'quarter':r=bn(this,s)/3;break;case'second':r=(this-s)/1e3;break;case'minute':r=(this-s)/6e4;break;case'hour':r=(this-s)/36e5;break;case'day':r=(this-s-i)/864e5;break;case'week':r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:fe(r)},Bn.endOf=function(e){var t,n;if(void 0===(e=E(e))||'millisecond'===e||!this.isValid())return this;switch(n=this._isUTC?Fn:Hn,e){case'year':t=n(this.year()+1,0,1)-1;break;case'quarter':t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case'month':t=n(this.year(),this.month()+1,1)-1;break;case'week':t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case'isoWeek':t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case'day':case'date':t=n(this.year(),this.month(),this.date()+1)-1;break;case'hour':t=this._d.valueOf(),t+=Rn-Un(t+(this._isUTC?0:this.utcOffset()*Pn),Rn)-1;break;case'minute':t=this._d.valueOf(),t+=Pn-Un(t,Pn)-1;break;case'second':t=this._d.valueOf(),t+=Wn-Un(t,Wn)-1}return this._d.setTime(t),s.updateOffset(this,!0),this},Bn.format=function(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=L(this,e);return this.localeData().postformat(t)},Bn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Jt(e).isValid())?_n({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Bn.fromNow=function(e){return this.from(Jt(),e)},Bn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Jt(e).isValid())?_n({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Bn.toNow=function(e){return this.to(Jt(),e)},Bn.get=function(e){return T(this[e=E(e)])?this[e]():this},Bn.invalidAt=function(){return _(this).overflow},Bn.isAfter=function(e,t){var n=M(e)?e:Jt(e);return!(!this.isValid()||!n.isValid())&&('millisecond'===(t=E(t)||'millisecond')?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Bn.isBefore=function(e,t){var n=M(e)?e:Jt(e);return!(!this.isValid()||!n.isValid())&&('millisecond'===(t=E(t)||'millisecond')?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Bn.isBetween=function(e,t,n,s){var i=M(e)?e:Jt(e),r=M(t)?t:Jt(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&(('('===(s=s||'()')[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(')'===s[1]?this.isBefore(r,n):!this.isAfter(r,n)))},Bn.isSame=function(e,t){var n,s=M(e)?e:Jt(e);return!(!this.isValid()||!s.isValid())&&('millisecond'===(t=E(t)||'millisecond')?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Bn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Bn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Bn.isValid=function(){return y(this)},Bn.lang=xn,Bn.locale=Tn,Bn.localeData=Nn,Bn.max=Xt,Bn.min=Qt,Bn.parsingFlags=function(){return f({},_(this))},Bn.set=function(e,t){if('object'==typeof e){var n,s=I(e=A(e)),i=s.length;for(n=0;n<i;n++)this[s[n].unit](e[s[n].unit])}else if(T(this[e=E(e)]))return this[e](t);return this},Bn.startOf=function(e){var t,n;if(void 0===(e=E(e))||'millisecond'===e||!this.isValid())return this;switch(n=this._isUTC?Fn:Hn,e){case'year':t=n(this.year(),0,1);break;case'quarter':t=n(this.year(),this.month()-this.month()%3,1);break;case'month':t=n(this.year(),this.month(),1);break;case'week':t=n(this.year(),this.month(),this.date()-this.weekday());break;case'isoWeek':t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case'day':case'date':t=n(this.year(),this.month(),this.date());break;case'hour':t=this._d.valueOf(),t-=Un(t+(this._isUTC?0:this.utcOffset()*Pn),Rn);break;case'minute':t=this._d.valueOf(),t-=Un(t,Pn);break;case'second':t=this._d.valueOf(),t-=Un(t,Wn)}return this._d.setTime(t),s.updateOffset(this,!0),this},Bn.subtract=Mn,Bn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Bn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Bn.toDate=function(){return new Date(this.valueOf())},Bn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?L(n,t?'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace('Z',L(n,'Z')):L(n,t?'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ')},Bn.inspect=function(){if(!this.isValid())return'moment.invalid(/* '+this._i+' */)';var e,t,n,s='moment',i='';return this.isLocal()||(s=0===this.utcOffset()?'moment.utc':'moment.parseZone',i='Z'),e='['+s+'("]',t=0<=this.year()&&this.year()<=9999?'YYYY':'YYYYYY',n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},'undefined'!=typeof Symbol&&null!=Symbol.for&&(Bn[Symbol.for('nodejs.util.inspect.custom')]=function(){return'Moment<'+this.format()+'>'}),Bn.toJSON=function(){return this.isValid()?this.toISOString():null},Bn.toString=function(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ')},Bn.unix=function(){return Math.floor(this.valueOf()/1e3)},Bn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Bn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Bn.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf('day').valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].name;if(s[e].until<=n&&n<=s[e].since)return s[e].name}return''},Bn.eraNarrow=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf('day').valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].narrow;if(s[e].until<=n&&n<=s[e].since)return s[e].narrow}return''},Bn.eraAbbr=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf('day').valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].abbr;if(s[e].until<=n&&n<=s[e].since)return s[e].abbr}return''},Bn.eraYear=function(){var e,t,n,i,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,i=this.clone().startOf('day').valueOf(),r[e].since<=i&&i<=r[e].until||r[e].until<=i&&i<=r[e].since)return(this.year()-s(r[e].since).year())*n+r[e].offset;return this.year()},Bn.year=We,Bn.isLeapYear=function(){return ve(this.year())},Bn.weekYear=function(e){return En.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Bn.isoWeekYear=function(e){return En.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Bn.quarter=Bn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Bn.month=je,Bn.daysInMonth=function(){return Ue(this.year(),this.month())},Bn.week=Bn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),'d')},Bn.isoWeek=Bn.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),'d')},Bn.weeksInYear=function(){var e=this.localeData()._week;return Je(this.year(),e.dow,e.doy)},Bn.weeksInWeekYear=function(){var e=this.localeData()._week;return Je(this.weekYear(),e.dow,e.doy)},Bn.isoWeeksInYear=function(){return Je(this.year(),1,4)},Bn.isoWeeksInISOWeekYear=function(){return Je(this.isoWeekYear(),1,4)},Bn.date=jn,Bn.day=Bn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Re(this,'Day');return null!=e?(e=Qe(e,this.localeData()),this.add(e-t,'d')):t},Bn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,'d')},Bn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Xe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Bn.dayOfYear=function(e){var t=Math.round((this.clone().startOf('day')-this.clone().startOf('year'))/864e5)+1;return null==e?t:this.add(e-t,'d')},Bn.hour=Bn.hours=ht,Bn.minute=Bn.minutes=In,Bn.second=Bn.seconds=$n,Bn.millisecond=Bn.milliseconds=zn,Bn.utcOffset=function(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if('string'==typeof e){if(null===(e=ln(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=hn(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,'m'),r!==e&&(!t||this._changeInProgress?pn(this,_n(e-r,'m'),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:hn(this)},Bn.utc=function(e){return this.utcOffset(0,e)},Bn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hn(this),'m')),this},Bn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if('string'==typeof this._i){var e=ln(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Bn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Jt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Bn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Bn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Bn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Bn.isUtc=cn,Bn.isUTC=cn,Bn.zoneAbbr=function(){return this._isUTC?'UTC':''},Bn.zoneName=function(){return this._isUTC?'Coordinated Universal Time':''},Bn.dates=Y('dates accessor is deprecated. Use date instead.',jn),Bn.months=Y('months accessor is deprecated. Use month instead',je),Bn.years=Y('years accessor is deprecated. Use year instead',We),Bn.zone=Y('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',(function(e,t){return null!=e?('string'!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Bn.isDSTShifted=Y('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return p(t,this),(t=$t(t))._a?(e=t._isUTC?m(t._a):Jt(t._a),this._isDSTShifted=this.isValid()&&an(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Qn=N.prototype;function Xn(e,t,n,s){var i=Dt(),r=m().set(s,t);return i[n](r,e)}function Kn(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||'',null!=t)return Xn(e,t,n,'month');var s,i=[];for(s=0;s<12;s++)i[s]=Xn(e,s,n,'month');return i}function es(e,t,n,s){'boolean'==typeof e?(d(t)&&(n=t,t=void 0),t=t||''):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||'');var i,r=Dt(),a=e?r._week.dow:0,o=[];if(null!=n)return Xn(t,(n+a)%7,s,'day');for(i=0;i<7;i++)o[i]=Xn(t,(i+a)%7,s,'day');return o}Qn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return T(s)?s.call(t,n):s},Qn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return'MMMM'===e||'MM'===e||'DD'===e||'dddd'===e?e.slice(1):e})).join(''),this._longDateFormat[e])},Qn.invalidDate=function(){return this._invalidDate},Qn.ordinal=function(e){return this._ordinal.replace('%d',e)},Qn.preparse=Jn,Qn.postformat=Jn,Qn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return T(i)?i(e,t,n,s):i.replace(/%d/i,e)},Qn.pastFuture=function(e,t){var n=this._relativeTime[e>0?'future':'past'];return T(n)?n(t):n.replace(/%s/i,t)},Qn.set=function(e){var t,n;for(n in e)o(e,n)&&(T(t=e[n])?this[n]=t:this['_'+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\d{1,2}/.source)},Qn.eras=function(e,t){var n,i,r,a=this._eras||Dt('en')._eras;for(n=0,i=a.length;n<i;++n){if('string'==typeof a[n].since)r=s(a[n].since).startOf('day'),a[n].since=r.valueOf();switch(typeof a[n].until){case'undefined':a[n].until=1/0;break;case'string':r=s(a[n].until).startOf('day').valueOf(),a[n].until=r.valueOf()}}return a},Qn.erasParse=function(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;s<i;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case'N':case'NN':case'NNN':if(a===e)return u[s];break;case'NNNN':if(r===e)return u[s];break;case'NNNNN':if(o===e)return u[s]}else if([r,a,o].indexOf(e)>=0)return u[s]},Qn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n},Qn.erasAbbrRegex=function(e){return o(this,'_erasAbbrRegex')||Vn.call(this),e?this._erasAbbrRegex:this._erasRegex},Qn.erasNameRegex=function(e){return o(this,'_erasNameRegex')||Vn.call(this),e?this._erasNameRegex:this._erasRegex},Qn.erasNarrowRegex=function(e){return o(this,'_erasNarrowRegex')||Vn.call(this),e?this._erasNarrowRegex:this._erasRegex},Qn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Le).test(t)?'format':'standalone'][e.month()]:r(this._months)?this._months:this._months.standalone},Qn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Le.test(t)?'format':'standalone'][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Qn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return Ee.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=m([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp('^'+this.months(i,'').replace('.','')+'$','i'),this._shortMonthsParse[s]=new RegExp('^'+this.monthsShort(i,'').replace('.','')+'$','i')),n||this._monthsParse[s]||(r='^'+this.months(i,'')+'|^'+this.monthsShort(i,''),this._monthsParse[s]=new RegExp(r.replace('.',''),'i')),n&&'MMMM'===t&&this._longMonthsParse[s].test(e))return s;if(n&&'MMM'===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},Qn.monthsRegex=function(e){return this._monthsParseExact?(o(this,'_monthsRegex')||Ie.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,'_monthsRegex')||(this._monthsRegex=Ge),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Qn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,'_monthsRegex')||Ie.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,'_monthsShortRegex')||(this._monthsShortRegex=Ve),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Qn.week=function(e){return Be(e,this._week.dow,this._week.doy).week},Qn.firstDayOfYear=function(){return this._week.doy},Qn.firstDayOfWeek=function(){return this._week.dow},Qn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?'format':'standalone'];return!0===e?Ke(n,this._week.dow):e?n[e.day()]:n},Qn.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Qn.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Qn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return at.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=m([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp('^'+this.weekdays(i,'').replace('.','\\.?')+'$','i'),this._shortWeekdaysParse[s]=new RegExp('^'+this.weekdaysShort(i,'').replace('.','\\.?')+'$','i'),this._minWeekdaysParse[s]=new RegExp('^'+this.weekdaysMin(i,'').replace('.','\\.?')+'$','i')),this._weekdaysParse[s]||(r='^'+this.weekdays(i,'')+'|^'+this.weekdaysShort(i,'')+'|^'+this.weekdaysMin(i,''),this._weekdaysParse[s]=new RegExp(r.replace('.',''),'i')),n&&'dddd'===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&'ddd'===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&'dd'===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},Qn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,'_weekdaysRegex')||ot.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,'_weekdaysRegex')||(this._weekdaysRegex=st),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Qn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,'_weekdaysRegex')||ot.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,'_weekdaysShortRegex')||(this._weekdaysShortRegex=it),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Qn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,'_weekdaysRegex')||ot.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,'_weekdaysMinRegex')||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Qn.isPM=function(e){return'p'===(e+'').toLowerCase().charAt(0)},Qn.meridiem=function(e,t,n){return e>11?n?'pm':'PM':n?'am':'AM'},kt('en',{eras:[{since:'0001-01-01',until:1/0,offset:1,name:'Anno Domini',narrow:'AD',abbr:'AD'},{since:'0000-12-31',until:-1/0,offset:1,name:'Before Christ',narrow:'BC',abbr:'BC'}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===me(e%100/10)?'th':1===t?'st':2===t?'nd':3===t?'rd':'th')}}),s.lang=Y('moment.lang is deprecated. Use moment.locale instead.',kt),s.langData=Y('moment.langData is deprecated. Use moment.localeData instead.',Dt);var ts=Math.abs;function ns(e,t,n,s){var i=_n(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function ss(e){return e<0?Math.floor(e):Math.ceil(e)}function is(e){return 4800*e/146097}function rs(e){return 146097*e/4800}function as(e){return function(){return this.as(e)}}var os=as('ms'),us=as('s'),ls=as('m'),ds=as('h'),hs=as('d'),cs=as('w'),fs=as('M'),ms=as('Q'),_s=as('y'),ys=os;function gs(e){return function(){return this.isValid()?this._data[e]:NaN}}var ws=gs('milliseconds'),vs=gs('seconds'),ps=gs('minutes'),ks=gs('hours'),Ms=gs('days'),Ds=gs('months'),Ys=gs('years');var Ss=Math.round,Os={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bs(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}function Ts(e,t,n,s){var i=_n(e).abs(),r=Ss(i.as('s')),a=Ss(i.as('m')),o=Ss(i.as('h')),u=Ss(i.as('d')),l=Ss(i.as('M')),d=Ss(i.as('w')),h=Ss(i.as('y')),c=r<=n.ss&&['s',r]||r<n.s&&['ss',r]||a<=1&&['m']||a<n.m&&['mm',a]||o<=1&&['h']||o<n.h&&['hh',o]||u<=1&&['d']||u<n.d&&['dd',u];return null!=n.w&&(c=c||d<=1&&['w']||d<n.w&&['ww',d]),(c=c||l<=1&&['M']||l<n.M&&['MM',l]||h<=1&&['y']||['yy',h])[2]=t,c[3]=+e>0,c[4]=s,bs.apply(null,c)}var xs=Math.abs;function Ns(e){return(e>0)-(e<0)||+e}function Ws(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=xs(this._milliseconds)/1e3,l=xs(this._days),d=xs(this._months),h=this.asSeconds();return h?(e=fe(u/60),t=fe(e/60),u%=60,e%=60,n=fe(d/12),d%=12,s=u?u.toFixed(3).replace(/\.?0+$/,''):'',i=h<0?'-':'',r=Ns(this._months)!==Ns(h)?'-':'',a=Ns(this._days)!==Ns(h)?'-':'',o=Ns(this._milliseconds)!==Ns(h)?'-':'',i+'P'+(n?r+n+'Y':'')+(d?r+d+'M':'')+(l?a+l+'D':'')+(t||e||u?'T':'')+(t?o+t+'H':'')+(e?o+e+'M':'')+(u?o+s+'S':'')):'P0D'}var Ps=nn.prototype;return Ps.isValid=function(){return this._isValid},Ps.abs=function(){var e=this._data;return this._milliseconds=ts(this._milliseconds),this._days=ts(this._days),this._months=ts(this._months),e.milliseconds=ts(e.milliseconds),e.seconds=ts(e.seconds),e.minutes=ts(e.minutes),e.hours=ts(e.hours),e.months=ts(e.months),e.years=ts(e.years),this},Ps.add=function(e,t){return ns(this,e,t,1)},Ps.subtract=function(e,t){return ns(this,e,t,-1)},Ps.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if('month'===(e=E(e))||'quarter'===e||'year'===e)switch(t=this._days+s/864e5,n=this._months+is(t),e){case'month':return n;case'quarter':return n/3;case'year':return n/12}else switch(t=this._days+Math.round(rs(this._months)),e){case'week':return t/7+s/6048e5;case'day':return t+s/864e5;case'hour':return 24*t+s/36e5;case'minute':return 1440*t+s/6e4;case'second':return 86400*t+s/1e3;case'millisecond':return Math.floor(864e5*t)+s;default:throw new Error('Unknown unit '+e)}},Ps.asMilliseconds=os,Ps.asSeconds=us,Ps.asMinutes=ls,Ps.asHours=ds,Ps.asDays=hs,Ps.asWeeks=cs,Ps.asMonths=fs,Ps.asQuarters=ms,Ps.asYears=_s,Ps.valueOf=ys,Ps._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*ss(rs(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=fe(r/1e3),u.seconds=e%60,t=fe(e/60),u.minutes=t%60,n=fe(t/60),u.hours=n%24,a+=fe(n/24),o+=i=fe(is(a)),a-=ss(rs(i)),s=fe(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},Ps.clone=function(){return _n(this)},Ps.get=function(e){return e=E(e),this.isValid()?this[e+'s']():NaN},Ps.milliseconds=ws,Ps.seconds=vs,Ps.minutes=ps,Ps.hours=ks,Ps.days=Ms,Ps.weeks=function(){return fe(this.days()/7)},Ps.months=Ds,Ps.years=Ys,Ps.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i=!1,r=Os;return'object'==typeof e&&(t=e,e=!1),'boolean'==typeof e&&(i=e),'object'==typeof t&&(r=Object.assign({},Os,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),s=Ts(this,!i,r,n=this.localeData()),i&&(s=n.pastFuture(+this,s)),n.postformat(s)},Ps.toISOString=Ws,Ps.toString=Ws,Ps.toJSON=Ws,Ps.locale=Tn,Ps.localeData=Nn,Ps.toIsoString=Y('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',Ws),Ps.lang=xn,H('X',0,0,'unix'),H('x',0,0,'valueOf'),de('x',ie),de('X',/[+-]?\d+(\.\d{1,3})?/),ye('X',(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye('x',(function(e,t,n){n._d=new Date(me(e))})),s.version='2.30.1',e=Jt,s.fn=Bn,s.min=function(){return Kt('isBefore',[].slice.call(arguments,0))},s.max=function(){return Kt('isAfter',[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=m,s.unix=function(e){return Jt(1e3*e)},s.months=function(e,t){return Kn(e,t,'months')},s.isDate=h,s.locale=kt,s.invalid=g,s.duration=_n,s.isMoment=M,s.weekdays=function(e,t,n){return es(e,t,n,'weekdays')},s.parseZone=function(){return Jt.apply(null,arguments).parseZone()},s.localeData=Dt,s.isDuration=sn,s.monthsShort=function(e,t){return Kn(e,t,'monthsShort')},s.weekdaysMin=function(e,t,n){return es(e,t,n,'weekdaysMin')},s.defineLocale=Mt,s.updateLocale=function(e,t){if(null!=t){var n,s,i=ft;null!=mt[e]&&null!=mt[e].parentLocale?mt[e].set(x(mt[e]._config,t)):(null!=(s=pt(e))&&(i=s._config),t=x(i,t),null==s&&(t.abbr=e),(n=new N(t)).parentLocale=mt[e],mt[e]=n),kt(e)}else null!=mt[e]&&(null!=mt[e].parentLocale?(mt[e]=mt[e].parentLocale,e===kt()&&kt(e)):null!=mt[e]&&delete mt[e]);return mt[e]},s.locales=function(){return S(mt)},s.weekdaysShort=function(e,t,n){return es(e,t,n,'weekdaysShort')},s.normalizeUnits=E,s.relativeTimeRounding=function(e){return void 0===e?Ss:'function'==typeof e&&(Ss=e,!0)},s.relativeTimeThreshold=function(e,t){return void 0!==Os[e]&&(void 0===t?Os[e]:(Os[e]=t,'s'===e&&(Os.ss=t-1),!0))},s.calendarFormat=function(e,t){var n=e.diff(t,'days',!0);return n<-6?'sameElse':n<-1?'lastWeek':n<0?'lastDay':n<1?'sameDay':n<2?'nextDay':n<7?'nextWeek':'sameElse'},s.prototype=Bn,s.HTML5_FMT={DATETIME_LOCAL:'YYYY-MM-DDTHH:mm',DATETIME_LOCAL_SECONDS:'YYYY-MM-DDTHH:mm:ss',DATETIME_LOCAL_MS:'YYYY-MM-DDTHH:mm:ss.SSS',DATE:'YYYY-MM-DD',TIME:'HH:mm',TIME_SECONDS:'HH:mm:ss',TIME_MS:'HH:mm:ss.SSS',WEEK:'GGGG-[W]WW',MONTH:'YYYY-MM'},s}))}),441,[]);
|
|
502
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0,_r(d[0]);_r(d[1])(_r(d[2]));var e=_r(d[1])(_r(d[3])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(a,i,u):a[i]=e[i]}return a.default=e,n&&n.set(e,a),a})(_r(d[4]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}_r(d[5]).IS_STAGING||t.init({dsn:_r(d[6]).SENTRY_DSN,tracesSampleRate:1,beforeSend:function(e){var t,r,n,a=null==(t=_r(d[7]).navigationRef.current)?void 0:t.getRootState(),o=null==(r=_r(d[7]).navigationRef.current)||null==(n=r.getCurrentRoute())?void 0:n.name,i=(0,_r(d[8]).getStackScreens)(a);return o&&(e.tags=Object.assign({},e.tags,{routeName:o,screenStacks:i.toString()})),e.tags=Object.assign({},e.tags),e}}),_r(d[9]).tokenDataService.loadCustomTokens();_e.default=t.wrap((function(t){var r=t.language,a=t.deepLinkUrl,o=t.pushToken,i=void 0===o?null:o,u=t.userId,c=t.userInfo,l=t.walletId,s=t.isCreateNewWallet,f=t.currency,S=r||'vi';(0,_r(d[10]).setLang)(S);var p=(0,_r(d[11]).useInitialRootStore)(),v=p.rehydrated,h=p.rootStore;return v?(h.userStore.setFCMToken(i),h.userStore.setSuperAppUserId(u),_r(d[12]).cacheStorage.set(_r(d[12]).CacheStorageKey.MAPPING_WALLET_ID,l),_r(d[12]).cacheStorage.set(_r(d[12]).CacheStorageKey.IS_CREATE_NEW_WALLET,s),_r(d[12]).cacheStorage.set(_r(d[12]).CacheStorageKey.USER_INFO,c),_r(d[12]).cacheStorage.set(_r(d[12]).CacheStorageKey.CURRENCY,f),(0,_r(d[13]).jsx)(_r(d[14]).SafeAreaProvider,{initialMetrics:_r(d[14]).initialWindowMetrics,children:(0,_r(d[13]).jsx)(_r(d[15]).ErrorBoundary,{children:(0,_r(d[13]).jsx)(_r(d[16]).GestureHandlerRootView,{style:n,children:(0,_r(d[13]).jsx)(_r(d[17]).ThemeContextProvider,{initLanguage:r,children:(0,_r(d[13]).jsx)(e.default,{components:[_r(d[18]).AlertContextProvider],children:(0,_r(d[13]).jsx)(_r(d[19]).AppNavigator,{deepLinkUrl:a})})})})})})):null}));var n={flex:1,backgroundColor:_r(d[20]).colors.background}}),442,[443,20,140,444,445,625,628,631,4050,2812,3172,701,1459,180,3156,
|
|
502
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0,_r(d[0]);_r(d[1])(_r(d[2]));var e=_r(d[1])(_r(d[3])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(a,i,u):a[i]=e[i]}return a.default=e,n&&n.set(e,a),a})(_r(d[4]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}_r(d[5]).IS_STAGING||t.init({dsn:_r(d[6]).SENTRY_DSN,tracesSampleRate:1,beforeSend:function(e){var t,r,n,a=null==(t=_r(d[7]).navigationRef.current)?void 0:t.getRootState(),o=null==(r=_r(d[7]).navigationRef.current)||null==(n=r.getCurrentRoute())?void 0:n.name,i=(0,_r(d[8]).getStackScreens)(a);return o&&(e.tags=Object.assign({},e.tags,{routeName:o,screenStacks:i.toString()})),e.tags=Object.assign({},e.tags),e}}),_r(d[9]).tokenDataService.loadCustomTokens();_e.default=t.wrap((function(t){var r=t.language,a=t.deepLinkUrl,o=t.pushToken,i=void 0===o?null:o,u=t.userId,c=t.userInfo,l=t.walletId,s=t.isCreateNewWallet,f=t.currency,S=r||'vi';(0,_r(d[10]).setLang)(S);var p=(0,_r(d[11]).useInitialRootStore)(),v=p.rehydrated,h=p.rootStore;return v?(h.userStore.setFCMToken(i),h.userStore.setSuperAppUserId(u),_r(d[12]).cacheStorage.set(_r(d[12]).CacheStorageKey.MAPPING_WALLET_ID,l),_r(d[12]).cacheStorage.set(_r(d[12]).CacheStorageKey.IS_CREATE_NEW_WALLET,s),_r(d[12]).cacheStorage.set(_r(d[12]).CacheStorageKey.USER_INFO,c),_r(d[12]).cacheStorage.set(_r(d[12]).CacheStorageKey.CURRENCY,f),(0,_r(d[13]).jsx)(_r(d[14]).SafeAreaProvider,{initialMetrics:_r(d[14]).initialWindowMetrics,children:(0,_r(d[13]).jsx)(_r(d[15]).ErrorBoundary,{children:(0,_r(d[13]).jsx)(_r(d[16]).GestureHandlerRootView,{style:n,children:(0,_r(d[13]).jsx)(_r(d[17]).ThemeContextProvider,{initLanguage:r,children:(0,_r(d[13]).jsx)(e.default,{components:[_r(d[18]).AlertContextProvider],children:(0,_r(d[13]).jsx)(_r(d[19]).AppNavigator,{deepLinkUrl:a})})})})})})):null}));var n={flex:1,backgroundColor:_r(d[20]).colors.background}}),442,[443,20,140,444,445,625,628,631,4050,2812,3172,701,1459,180,3156,4971,4078,3165,4366,632,3166]);
|
|
503
503
|
__d((function(g,r,i,a,m,e,d){r(d[0]).LogBox.ignoreLogs(["Require cycle:"])}),443,[18]);
|
|
504
504
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=n.components,c=void 0===t?[]:t,u=n.children;return(0,r(d[2]).jsx)(r(d[2]).Fragment,{children:c.reduceRight((function(n,t){return(0,r(d[2]).jsx)(t,{children:n})}),u)})};r(d[0])(r(d[1]))}),444,[20,140,180]);
|
|
505
505
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"BrowserIntegrations",{enumerable:!0,get:function(){return _r(d[0]).Integrations}}),Object.defineProperty(_e,"ErrorBoundary",{enumerable:!0,get:function(){return _r(d[0]).ErrorBoundary}}),Object.defineProperty(_e,"Hub",{enumerable:!0,get:function(){return _r(d[1]).Hub}}),_e.Integrations=void 0,Object.defineProperty(_e,"Profiler",{enumerable:!0,get:function(){return _r(d[0]).Profiler}}),Object.defineProperty(_e,"ReactNativeClient",{enumerable:!0,get:function(){return _r(d[2]).ReactNativeClient}}),Object.defineProperty(_e,"ReactNativeNavigationInstrumentation",{enumerable:!0,get:function(){return _r(d[3]).ReactNativeNavigationInstrumentation}}),Object.defineProperty(_e,"ReactNativeTracing",{enumerable:!0,get:function(){return _r(d[3]).ReactNativeTracing}}),Object.defineProperty(_e,"ReactNavigationInstrumentation",{enumerable:!0,get:function(){return _r(d[3]).ReactNavigationInstrumentation}}),Object.defineProperty(_e,"ReactNavigationV4Instrumentation",{enumerable:!0,get:function(){return _r(d[3]).ReactNavigationV4Instrumentation}}),Object.defineProperty(_e,"ReactNavigationV5Instrumentation",{enumerable:!0,get:function(){return _r(d[3]).ReactNavigationV5Instrumentation}}),Object.defineProperty(_e,"RoutingInstrumentation",{enumerable:!0,get:function(){return _r(d[3]).RoutingInstrumentation}}),Object.defineProperty(_e,"SDK_NAME",{enumerable:!0,get:function(){return _r(d[4]).SDK_NAME}}),Object.defineProperty(_e,"SDK_VERSION",{enumerable:!0,get:function(){return _r(d[4]).SDK_VERSION}}),Object.defineProperty(_e,"Scope",{enumerable:!0,get:function(){return _r(d[1]).Scope}}),Object.defineProperty(_e,"TouchEventBoundary",{enumerable:!0,get:function(){return _r(d[5]).TouchEventBoundary}}),Object.defineProperty(_e,"addBreadcrumb",{enumerable:!0,get:function(){return _r(d[1]).addBreadcrumb}}),Object.defineProperty(_e,"addGlobalEventProcessor",{enumerable:!0,get:function(){return _r(d[1]).addGlobalEventProcessor}}),Object.defineProperty(_e,"captureEvent",{enumerable:!0,get:function(){return _r(d[1]).captureEvent}}),Object.defineProperty(_e,"captureException",{enumerable:!0,get:function(){return _r(d[1]).captureException}}),Object.defineProperty(_e,"captureMessage",{enumerable:!0,get:function(){return _r(d[1]).captureMessage}}),Object.defineProperty(_e,"captureUserFeedback",{enumerable:!0,get:function(){return _r(d[6]).captureUserFeedback}}),Object.defineProperty(_e,"close",{enumerable:!0,get:function(){return _r(d[6]).close}}),Object.defineProperty(_e,"configureScope",{enumerable:!0,get:function(){return _r(d[6]).configureScope}}),Object.defineProperty(_e,"createReduxEnhancer",{enumerable:!0,get:function(){return _r(d[0]).createReduxEnhancer}}),Object.defineProperty(_e,"flush",{enumerable:!0,get:function(){return _r(d[6]).flush}}),Object.defineProperty(_e,"getCurrentHub",{enumerable:!0,get:function(){return _r(d[1]).getCurrentHub}}),Object.defineProperty(_e,"getHubFromCarrier",{enumerable:!0,get:function(){return _r(d[1]).getHubFromCarrier}}),Object.defineProperty(_e,"init",{enumerable:!0,get:function(){return _r(d[6]).init}}),Object.defineProperty(_e,"lastEventId",{enumerable:!0,get:function(){return _r(d[7]).lastEventId}}),Object.defineProperty(_e,"nativeCrash",{enumerable:!0,get:function(){return _r(d[6]).nativeCrash}}),Object.defineProperty(_e,"setContext",{enumerable:!0,get:function(){return _r(d[1]).setContext}}),Object.defineProperty(_e,"setDist",{enumerable:!0,get:function(){return _r(d[6]).setDist}}),Object.defineProperty(_e,"setExtra",{enumerable:!0,get:function(){return _r(d[1]).setExtra}}),Object.defineProperty(_e,"setExtras",{enumerable:!0,get:function(){return _r(d[1]).setExtras}}),Object.defineProperty(_e,"setRelease",{enumerable:!0,get:function(){return _r(d[6]).setRelease}}),Object.defineProperty(_e,"setTag",{enumerable:!0,get:function(){return _r(d[1]).setTag}}),Object.defineProperty(_e,"setTags",{enumerable:!0,get:function(){return _r(d[1]).setTags}}),Object.defineProperty(_e,"setUser",{enumerable:!0,get:function(){return _r(d[1]).setUser}}),Object.defineProperty(_e,"startTransaction",{enumerable:!0,get:function(){return _r(d[1]).startTransaction}}),Object.defineProperty(_e,"useProfiler",{enumerable:!0,get:function(){return _r(d[0]).useProfiler}}),Object.defineProperty(_e,"withErrorBoundary",{enumerable:!0,get:function(){return _r(d[0]).withErrorBoundary}}),Object.defineProperty(_e,"withProfiler",{enumerable:!0,get:function(){return _r(d[0]).withProfiler}}),Object.defineProperty(_e,"withScope",{enumerable:!0,get:function(){return _r(d[6]).withScope}}),Object.defineProperty(_e,"withTouchEventBoundary",{enumerable:!0,get:function(){return _r(d[5]).withTouchEventBoundary}}),Object.defineProperty(_e,"wrap",{enumerable:!0,get:function(){return _r(d[6]).wrap}}),_r(d[8]);var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(u,i,a):u[i]=e[i]}return u.default=e,n&&n.set(e,u),u})(_r(d[9]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.Integrations=e,(0,_r(d[10])._addTracingExtensions)()}),445,[446,479,537,550,546,596,597,448,556,601,624]);
|
|
@@ -691,14 +691,14 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,'__esModule',{value:!0});va
|
|
|
691
691
|
__d((function(g,r,_i,a,m,e,d){Object.defineProperty(e,'__esModule',{value:!0});var t=(function(){"use strict";function t(){r(d[0])(this,t),t.prototype.__init.call(this)}return r(d[1])(t,[{key:"__init",value:function(){this.name=t.id}},{key:"setupOnce",value:function(n,i){n((function(n){var o=i().getIntegration(t);return o?o.process(n):n}))}},{key:"process",value:function(t){for(var n=this._getFramesFromEvent(t),i=n.length-1;i>=0;i--){var o=n[i];if(!0===o.in_app){t.transaction=this._getTransaction(o);break}}return t}},{key:"_getFramesFromEvent",value:function(t){var n=t.exception&&t.exception.values&&t.exception.values[0];return n&&n.stacktrace&&n.stacktrace.frames||[]}},{key:"_getTransaction",value:function(t){return t.module||t.function?(t.module||'?')+"/"+(t.function||'?'):'<unknown>'}}],[{key:"__initStatic",value:function(){this.id='Transaction'}}])})();t.__initStatic(),e.Transaction=t}),622,[9,12]);
|
|
692
692
|
__d((function(g,r,i,a,m,_e,d){Object.defineProperty(_e,'__esModule',{value:!0});var e=(function(){"use strict";function e(t){r(d[0])(this,e),e.prototype.__init.call(this),this._options=Object.assign({failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/]},t)}return r(d[1])(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(e,t){this._getCurrentHub=t,this._wrapFetch(),this._wrapXHR()}},{key:"_fetchResponseHandler",value:function(e,t,s){var n=this;if(this._getCurrentHub&&this._shouldCaptureResponse(t.status,t.url)){var o,u,_,c,l=new Request(e,s),p=this._getCurrentHub();if(p.shouldSendDefaultPii()){var h=[{cookieHeader:'Cookie',obj:l},{cookieHeader:'Set-Cookie',obj:t}].map((function(e){var t,s=e.cookieHeader,o=e.obj,u=n._extractFetchHeaders(o.headers);try{var _=u[s]||u[s.toLowerCase()]||void 0;_&&(t=n._parseCookieString(_))}catch(e){('undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r(d[2]).logger.log("Could not extract cookies from header "+s)}return{headers:u,cookies:t}})),f=r(d[3])(h,2),v=f[0];o=v.headers,_=v.cookies;var R=f[1];u=R.headers,c=R.cookies}var y=this._createEvent({url:l.url,method:l.method,status:t.status,requestHeaders:o,responseHeaders:u,requestCookies:_,responseCookies:c});p.captureEvent(y)}}},{key:"_xhrResponseHandler",value:function(e,t,s){if(this._getCurrentHub&&this._shouldCaptureResponse(e.status,e.responseURL)){var n,o,u,_=this._getCurrentHub();if(_.shouldSendDefaultPii()){try{var c=e.getResponseHeader('Set-Cookie')||e.getResponseHeader('set-cookie')||void 0;c&&(o=this._parseCookieString(c))}catch(e){('undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r(d[2]).logger.log('Could not extract cookies from response headers')}try{u=this._getXHRResponseHeaders(e)}catch(e){('undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r(d[2]).logger.log('Could not extract headers from response')}n=s}var l=this._createEvent({url:e.responseURL,method:t,status:e.status,requestHeaders:n,responseHeaders:u,responseCookies:o});_.captureEvent(l)}}},{key:"_getResponseSizeFromHeaders",value:function(e){if(e){var t=e['Content-Length']||e['content-length'];if(t)return parseInt(t,10)}}},{key:"_parseCookieString",value:function(e){return e.split('; ').reduce((function(e,t){var s=t.split('='),n=r(d[3])(s,2),o=n[0],u=n[1];return e[o]=u,e}),{})}},{key:"_extractFetchHeaders",value:function(e){var t={};return e.forEach((function(e,s){t[s]=e})),t}},{key:"_getXHRResponseHeaders",value:function(e){var t=e.getAllResponseHeaders();return t?t.split('\r\n').reduce((function(e,t){var s=t.split(': '),n=r(d[3])(s,2),o=n[0],u=n[1];return e[o]=u,e}),{}):{}}},{key:"_isInGivenRequestTargets",value:function(e){return!!this._options.failedRequestTargets&&this._options.failedRequestTargets.some((function(t){return'string'==typeof t?e.includes(t):t.test(e)}))}},{key:"_isInGivenStatusRanges",value:function(e){return!!this._options.failedRequestStatusCodes&&this._options.failedRequestStatusCodes.some((function(t){return'number'==typeof t?t===e:e>=t[0]&&e<=t[1]}))}},{key:"_wrapFetch",value:function(){if(r(d[2]).supportsNativeFetch()){var e=this;r(d[2]).fill(r(d[2]).GLOBAL_OBJ,'fetch',(function(t){return function(){for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];var u=n[0],_=n[1],c=t.apply(this,n);return c.then((function(t){return e._fetchResponseHandler(u,t,_),t})).catch((function(e){throw e})),c}}))}}},{key:"_wrapXHR",value:function(){if('XMLHttpRequest'in r(d[2]).GLOBAL_OBJ){var e=this;r(d[2]).fill(XMLHttpRequest.prototype,'open',(function(t){return function(){for(var s=this,n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];var _=o[0],c={};return r(d[2]).fill(s,'setRequestHeader',(function(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var u=n[0],_=n[1];return c[u]=_,e.apply(s,n)}})),r(d[2]).fill(s,'onloadend',(function(t){return function(){try{e._xhrResponseHandler(s,_,c)}catch(e){('undefined'==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r(d[2]).logger.warn('Error while extracting response event form XHR response',e)}if(t){for(var n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return t.apply(s,o)}}})),t.apply(this,o)}}))}}},{key:"_isSentryRequest",value:function(e){var t=this._getCurrentHub&&this._getCurrentHub().getClient();if(!t)return!1;var s=t.getDsn();return!!s&&e.includes(s.host)}},{key:"_shouldCaptureResponse",value:function(e,t){return this._isInGivenStatusRanges(e)&&this._isInGivenRequestTargets(t)&&!this._isSentryRequest(t)}},{key:"_createEvent",value:function(e){var t="HTTP Client Error with status code: "+e.status,s={message:t,exception:{values:[{type:'Error',value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:this._getResponseSizeFromHeaders(e.responseHeaders)}}};return r(d[2]).addExceptionMechanism(s,{type:'http.client'}),s}}],[{key:"__initStatic",value:function(){this.id='HttpClient'}}])})();e.__initStatic(),_e.HttpClient=e}),623,[9,12,450,34]);
|
|
693
693
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e._addTracingExtensions=function(){var n=(0,r(d[0]).getMainCarrier)();if(n.__SENTRY__&&(n.__SENTRY__.extensions=n.__SENTRY__.extensions||{},n.__SENTRY__.extensions.startTransaction)){var s=n.__SENTRY__.extensions.startTransaction,_=t(s);n.__SENTRY__.extensions.startTransaction=_}};var n='default';var t=function(t){return function(s,_){s.op||(s.op=n);var o=t.apply(this,[s,_]),c=o.startChild.bind(o);o.startChild=function(t){return c(Object.assign(Object.assign({},t),{op:(null==t?void 0:t.op)||n}))};var u=(0,r(d[0]).getCurrentHub)().getIntegration(r(d[1]).ReactNativeTracing);if(u){u.onTransactionStart(o);var T=o.finish;o.finish=function(n){return u&&u.onTransactionFinish(o),T.apply(o,[n])}}return o}}}),624,[479,550]);
|
|
694
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.WS_HEADERS=e.WORLD_CHAT_GROUP_ID=e.WALLET_CONNECT_PROJECT_ID=e.WALLET_API_URL=e.LINK_DEVICE_WS_URL=e.IS_STAGING=e.IS_JS_BUNDLE=e.IGNORE_API_LOG=e.CHAT_WS_URL=e.CHAT_API_URL=e.CF_ACCESS_CLIENT_SECRET=e.CF_ACCESS_CLIENT_ID=e.API_URL=void 0;var _=null==r(d[0])?void 0:r(d[0]).Config;_&&_.API_URL||(_=r(d[1]));e.IS_STAGING='true'===_.IS_STAGING,e.IS_JS_BUNDLE='true'===_.IS_JS_BUNDLE,e.API_URL=_.API_URL,e.CHAT_API_URL=_.CHAT_API_URL,e.WALLET_API_URL=_.WALLET_API_URL,e.CHAT_WS_URL=_.CHAT_WS_URL,e.LINK_DEVICE_WS_URL=_.LINK_DEVICE_WS_URL,e.WALLET_CONNECT_PROJECT_ID=_.WALLET_CONNECT_PROJECT_ID;var C=e.CF_ACCESS_CLIENT_ID=_.CF_ACCESS_CLIENT_ID,
|
|
694
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.WS_HEADERS=e.WORLD_CHAT_GROUP_ID=e.WALLET_CONNECT_PROJECT_ID=e.WALLET_API_URL=e.LINK_DEVICE_WS_URL=e.IS_STAGING=e.IS_JS_BUNDLE=e.IGNORE_API_LOG=e.CHAT_WS_URL=e.CHAT_API_URL=e.CF_ACCESS_CLIENT_SECRET=e.CF_ACCESS_CLIENT_ID=e.BUNDLE_VERSION=e.API_URL=void 0;var _=null==r(d[0])?void 0:r(d[0]).Config;_&&_.API_URL||(_=r(d[1]));e.IS_STAGING='true'===_.IS_STAGING,e.IS_JS_BUNDLE='true'===_.IS_JS_BUNDLE,e.API_URL=_.API_URL,e.CHAT_API_URL=_.CHAT_API_URL,e.WALLET_API_URL=_.WALLET_API_URL,e.CHAT_WS_URL=_.CHAT_WS_URL,e.LINK_DEVICE_WS_URL=_.LINK_DEVICE_WS_URL,e.WALLET_CONNECT_PROJECT_ID=_.WALLET_CONNECT_PROJECT_ID;var C=e.CF_ACCESS_CLIENT_ID=_.CF_ACCESS_CLIENT_ID,E=e.CF_ACCESS_CLIENT_SECRET=_.CF_ACCESS_CLIENT_SECRET;e.WORLD_CHAT_GROUP_ID=_.WORLD_CHAT_GROUP_ID,e.WS_HEADERS={headers:{'CF-Access-Client-Id':C,'CF-Access-Client-Secret':E}},e.IGNORE_API_LOG=!!_.IGNORE_API_LOG,e.BUNDLE_VERSION=_.BUNDLE_VERSION}),625,[626,627]);
|
|
695
695
|
__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Config=void 0;var o=r(d[0]),t=e.Config=o.NativeModules.RNCConfigModule||{};e.default=t}),626,[18]);
|
|
696
|
-
__d((function(a,
|
|
696
|
+
__d((function(_,a,e,s,i,t,L){i.exports={IS_STAGING:"false",IGNORE_API_LOG:"true",API_URL:"https://api.ready.io",CHAT_API_URL:"https://api.ready.io/chat",WALLET_API_URL:"https://api.ready.io/wallet",CHAT_WS_URL:"wss://api.ready.io/chat/ws/messages",LINK_DEVICE_WS_URL:"wss://api.ready.io/chat/ws/provisioning",WALLET_CONNECT_PROJECT_ID:"f2cf0e444a766e2b5fa9e0e3db5963c9",BUNDLE_VERSION:"20240909"}}),627,[]);
|
|
697
697
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var _={IS_IOS:!0,IS_ANDROID:!0,MAX_LINK_DEVICE:!0,PAGE_SIZE:!0,OPEN_DEVELOPER_BY_TOUCH_COUNT:!0,ANDROID_BOTTOM_NAV_HEIGHT:!0,SHOW_DEV_FEATURE:!0,SENTRY_DSN:!0,FIR_APP_ID_ANDROID:!0,FIR_APP_ID_IOS:!0,API_SECRET_ANDROID:!0,API_SECRET_IOS:!0};e.SHOW_DEV_FEATURE=e.SENTRY_DSN=e.PAGE_SIZE=e.OPEN_DEVELOPER_BY_TOUCH_COUNT=e.MAX_LINK_DEVICE=e.IS_IOS=e.IS_ANDROID=e.FIR_APP_ID_IOS=e.FIR_APP_ID_ANDROID=e.API_SECRET_IOS=e.API_SECRET_ANDROID=e.ANDROID_BOTTOM_NAV_HEIGHT=void 0;var I=r(d[0]);Object.keys(r(d[1])).forEach((function(I){"default"!==I&&"__esModule"!==I&&(Object.prototype.hasOwnProperty.call(_,I)||I in e&&e[I]===r(d[1])[I]||Object.defineProperty(e,I,{enumerable:!0,get:function(){return r(d[1])[I]}}))})),Object.keys(r(d[2])).forEach((function(I){"default"!==I&&"__esModule"!==I&&(Object.prototype.hasOwnProperty.call(_,I)||I in e&&e[I]===r(d[2])[I]||Object.defineProperty(e,I,{enumerable:!0,get:function(){return r(d[2])[I]}}))}));e.IS_IOS='ios'===I.Platform.OS,e.IS_ANDROID='android'===I.Platform.OS,e.MAX_LINK_DEVICE=r(d[3]).IS_STAGING?3:5,e.PAGE_SIZE=20,e.OPEN_DEVELOPER_BY_TOUCH_COUNT=8;var E=I.Dimensions.get('screen').height,O=I.Dimensions.get('window').height;e.ANDROID_BOTTOM_NAV_HEIGHT=E-O-I.StatusBar.currentHeight,e.SHOW_DEV_FEATURE=r(d[3]).IS_STAGING,e.SENTRY_DSN='https://4404eeb622f846d4bd0984ba824fefab@o256038.ingest.sentry.io/6626158',e.FIR_APP_ID_ANDROID='1:475083082462:android:ab7977e2ef28270048d04f',e.FIR_APP_ID_IOS='1:475083082462:ios:afcddadef28b045a48d04f',e.API_SECRET_ANDROID='NDMayeE2SmqJo8xBvCF3Og',e.API_SECRET_IOS='EYiY_RHtS_uHW9a-BU-s4Q'}),628,[18,629,630,625]);
|
|
698
698
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SPRINT_CONFIG=e.REQUIRED_PRE_KEY_AMOUNT=e.MIN_PRE_KEY_THRESHOLD=e.GHOST_AVATAR_URL=void 0;e.MIN_PRE_KEY_THRESHOLD=10,e.REQUIRED_PRE_KEY_AMOUNT=100,e.SPRINT_CONFIG={mass:1,stiffness:100,damping:200},e.GHOST_AVATAR_URL='https://www.gravatar.com/avatar/?d=mp&s=300'}),629,[]);
|
|
699
699
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.UNKNOWN_TOKEN_PREFIX=e.TransactionAction=e.SWAP_RELOAD_TIME=e.SWAP_MIN_SLIPPAGE=e.SWAP_MAX_SLIPPAGE=e.READY_SWAP_CONTRACT=e.PLATFORM_ID=e.GasFeeOptionsDisplay=e.GasFeeOptions=e.DEFAULT_DECIMALS=e.DEFAULT_CHAIN=void 0;e.READY_SWAP_CONTRACT='0x2286E63Fd0701Fc219686b5bA6bb4D4A6e8ED35B',e.UNKNOWN_TOKEN_PREFIX='unknown_token__',e.DEFAULT_CHAIN=137,e.DEFAULT_DECIMALS=18,e.SWAP_RELOAD_TIME=2e4,e.SWAP_MIN_SLIPPAGE=1,e.SWAP_MAX_SLIPPAGE=2,e.PLATFORM_ID={PLATFORM_ETHEREUM:'ethereum',PLATFORM_SEPOLIA:'sepolia',PLATFORM_GOERLI:'goerli',PLATFORM_TESTNET_GOERLI_BASE:'goerli.base',PLATFORM_BSC:'bsc',PLATFORM_TESTNET_BSC:'testnet.bsc',PLATFORM_ARBI:'arbi',PLATFORM_POLY:'poly',PLATFORM_TESTNET_POLY_MUMBAI:'mumbai',PLATFORM_AVAX:'avax',PLATFORM_TESTNET_AVAX:'testnet.avax',PLATFORM_FTM:'ftm'},e.TransactionAction=(function(A){return A.REQUEST="request",A.SEND="send",A.SWAP="swap",A.APPROVE="approve",A.UNKNOWN="unknown",A})({});var A=e.GasFeeOptions=(function(A){return A[A.NORMAL=1]="NORMAL",A[A.FAST=1.02]="FAST",A[A.EMERGENCY=1.05]="EMERGENCY",A})({});e.GasFeeOptionsDisplay=[{tx:'swapToken.time.normal',icon:'timer',val:A.NORMAL},{tx:'swapToken.time.fast',icon:'lightning',val:A.FAST},{tx:'swapToken.time.asFastAsPossible',icon:'rocket-launch',val:A.EMERGENCY}]}),630,[]);
|
|
700
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))}))}),631,[632,
|
|
701
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.AppNavigator=void 0;var e=o(_r(d[0])),n=_r(d[1])(_r(d[2])),t=o(_r(d[3]));function r(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(r=function(e){return e?t:n})(e)}function o(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r(n);if(t&&t.has(e))return t.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=a?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=e[i]}return o.default=e,t&&t.set(e,o),o}var a=(0,_r(d[4]).createNativeStackNavigator)(),i=(0,_r(d[5]).observer)((function(){return(0,_r(d[6]).jsxs)(a.Navigator,{screenOptions:{headerShown:!1},initialRouteName:"init",children:[(0,_r(d[6]).jsx)(a.Screen,{name:"init",component:t.InitScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"importAccountStack",component:_r(d[7]).ImportAccountNavigator}),(0,_r(d[6]).jsx)(a.Screen,{name:"onboard",component:t.OnboardScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"waitingForCreatingWallet",component:_r(d[8]).WaitingForCreatingWalletScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"setPasscode",component:t.SetPasscodeScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"confirmPasscode",component:t.ConfirmPasscodeScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"authentication",component:t.AuthenticationScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"backupWallet",component:t.BackupWalletScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"confirmSeedPhrase",component:t.ConfirmSeedPhraseScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"browserMobileView",component:_r(d[9]).BrowserMobileScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"start",component:_r(d[8]).StartScreen,options:{presentation:'transparentModal'}}),(0,_r(d[6]).jsx)(a.Screen,{name:"main",component:_r(d[10]).MainNavigator}),(0,_r(d[6]).jsx)(a.Screen,{name:"dAppPairing",component:_r(d[8]).DAppPairingScreen,options:{presentation:'transparentModal',animation:'fade'}}),(0,_r(d[6]).jsx)(a.Screen,{name:"listWalletModal",component:_r(d[11]).WalletListModalScreen,options:{presentation:'transparentModal',animation:'fade'}})]})})),c=[];_e.AppNavigator=(0,_r(d[5]).observer)((function(t){var r=t.deepLinkUrl,o=void 0===r?null:r,a=(0,_r(d[
|
|
700
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))}))}),631,[632,4909]);
|
|
701
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.AppNavigator=void 0;var e=o(_r(d[0])),n=_r(d[1])(_r(d[2])),t=o(_r(d[3]));function r(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(r=function(e){return e?t:n})(e)}function o(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r(n);if(t&&t.has(e))return t.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=a?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=e[i]}return o.default=e,t&&t.set(e,o),o}var a=(0,_r(d[4]).createNativeStackNavigator)(),i=(0,_r(d[5]).observer)((function(){return(0,_r(d[6]).jsxs)(a.Navigator,{screenOptions:{headerShown:!1},initialRouteName:"init",children:[(0,_r(d[6]).jsx)(a.Screen,{name:"init",component:t.InitScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"importAccountStack",component:_r(d[7]).ImportAccountNavigator}),(0,_r(d[6]).jsx)(a.Screen,{name:"onboard",component:t.OnboardScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"waitingForCreatingWallet",component:_r(d[8]).WaitingForCreatingWalletScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"setPasscode",component:t.SetPasscodeScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"confirmPasscode",component:t.ConfirmPasscodeScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"authentication",component:t.AuthenticationScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"backupWallet",component:t.BackupWalletScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"confirmSeedPhrase",component:t.ConfirmSeedPhraseScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"browserMobileView",component:_r(d[9]).BrowserMobileScreen}),(0,_r(d[6]).jsx)(a.Screen,{name:"start",component:_r(d[8]).StartScreen,options:{presentation:'transparentModal'}}),(0,_r(d[6]).jsx)(a.Screen,{name:"main",component:_r(d[10]).MainNavigator}),(0,_r(d[6]).jsx)(a.Screen,{name:"dAppPairing",component:_r(d[8]).DAppPairingScreen,options:{presentation:'transparentModal',animation:'fade'}}),(0,_r(d[6]).jsx)(a.Screen,{name:"listWalletModal",component:_r(d[11]).WalletListModalScreen,options:{presentation:'transparentModal',animation:'fade'}}),(0,_r(d[6]).jsx)(a.Screen,{name:"noPk",component:_r(d[12]).NoPkScreen})]})})),c=[];_e.AppNavigator=(0,_r(d[5]).observer)((function(t){var r=t.deepLinkUrl,o=void 0===r?null:r,a=(0,_r(d[13]).useProcedureMixins)().onusAuthentication;(0,_r(d[14]).useBackButtonHandler)((function(e){return c.includes(e)})),(0,_r(d[15]).useMiniappPushHandler)(),(0,_r(d[15]).useDeeplinkHandler)(o),(0,_r(d[16]).useSessionHandler)(),(0,_r(d[15]).useWalletSnapshot)();var s={success:function(e){return(0,_r(d[6]).jsx)(_r(d[18]).SuccessToast,Object.assign({},e,e.props))},error:function(e){return(0,_r(d[6]).jsx)(_r(d[18]).ErrorToast,Object.assign({},e,e.props))},info:function(e){return(0,_r(d[6]).jsx)(_r(d[18]).InfoToast,Object.assign({},e,e.props))},shortSuccess:function(e){return(0,_r(d[6]).jsx)(_r(d[18]).ShortSuccessToast,Object.assign({},e,e.props))}};return(0,e.useEffect)((function(){var e=_r(d[19]).EventBus.createListener(_r(d[19]).AppEventType.SESSION_EXPIRED,(function(){a()}));return function(){_r(d[19]).EventBus.removeListener(e)}}),[]),(0,_r(d[6]).jsxs)(_r(d[20]).NavigationContainer,Object.assign({ref:_r(d[14]).navigationRef,theme:_r(d[20]).DarkTheme},t,{onStateChange:function(){var e,n=null==(e=_r(d[14]).navigationRef.current.getCurrentRoute())?void 0:e.name;_r(d[17]).gaService.trackingScreen(n.includes('website')?'dapp_website':n)},children:[(0,_r(d[6]).jsx)(i,{}),(0,_r(d[6]).jsx)(n.default,{config:s})]}))}))}),632,[140,20,633,660,4322,686,180,4362,4363,4892,4908,4968,4969,3410,4909,3177,4970,3448,3617,1061,3450]);
|
|
702
702
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={BaseToast:!0,SuccessToast:!0,ErrorToast:!0,InfoToast:!0};Object.defineProperty(e,"BaseToast",{enumerable:!0,get:function(){return r(d[0]).BaseToast}}),Object.defineProperty(e,"ErrorToast",{enumerable:!0,get:function(){return r(d[1]).ErrorToast}}),Object.defineProperty(e,"InfoToast",{enumerable:!0,get:function(){return r(d[2]).InfoToast}}),Object.defineProperty(e,"SuccessToast",{enumerable:!0,get:function(){return r(d[3]).SuccessToast}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r(d[4]).Toast}}),Object.keys(r(d[5])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[5])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[5])[n]}}))}))}),633,[634,638,639,640,641,659]);
|
|
703
703
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BaseToast=function(n){var s,l,o=n.text1,c=n.text2,x=n.onPress,u=n.activeOpacity,y=n.style,b=n.touchableContainerProps,T=n.contentContainerStyle,O=n.contentContainerProps,I=n.text1Style,h=n.text1NumberOfLines,j=void 0===h?1:h,p=n.text1Props,v=n.text2Style,f=n.text2NumberOfLines,C=void 0===f?1:f,P=n.text2Props,L=n.renderLeadingIcon,D=n.renderTrailingIcon;return(0,r(d[3]).jsxs)(r(d[4]).Touchable,Object.assign({testID:(0,r(d[5]).getTestId)('TouchableContainer'),onPress:x,activeOpacity:u,style:[r(d[6]).styles.base,r(d[6]).styles.leadingBorder,y]},b,{children:[L&&L(),(0,r(d[3]).jsxs)(t.View,Object.assign({testID:(0,r(d[5]).getTestId)('ContentContainer'),style:[r(d[6]).styles.contentContainer,T]},O,{children:[(null!=(s=null==o?void 0:o.length)?s:0)>0&&(0,r(d[3]).jsx)(t.Text,Object.assign({testID:(0,r(d[5]).getTestId)('Text1'),style:[r(d[6]).styles.text1,I],numberOfLines:j,ellipsizeMode:"tail"},p,{children:o})),(null!=(l=null==c?void 0:c.length)?l:0)>0&&(0,r(d[3]).jsx)(t.Text,Object.assign({testID:(0,r(d[5]).getTestId)('Text2'),style:[r(d[6]).styles.text2,v],numberOfLines:C,ellipsizeMode:"tail"},P,{children:c}))]})),D&&D()]}))};r(d[0])(r(d[1]));var t=r(d[2])}),634,[20,140,18,180,635,636,637]);
|
|
704
704
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Touchable=function(l){var u=l.children,o=l.activeOpacity,v=void 0===o?1:o,O=(0,c.default)(l,n);return(0,r(d[4]).jsx)(t.TouchableOpacity,Object.assign({activeOpacity:v},O,{children:u}))};var c=r(d[0])(r(d[1])),t=(r(d[0])(r(d[2])),r(d[3])),n=["children","activeOpacity"]}),635,[20,105,140,18,180]);
|
|
@@ -1122,8 +1122,8 @@ __d((function(g,r,i,a,m,e,d){var n=r(d[0])((function(n,t){for(var o=0,f=Math.min
|
|
|
1122
1122
|
__d((function(g,r,i,_a,m,e,d){var n=r(d[0])((function(n,t,o){for(var a=[],f=0,h=Math.min(t.length,o.length);f<h;)a[f]=n(t[f],o[f]),f+=1;return a}));m.exports=n}),1053,[720]);
|
|
1123
1123
|
__d((function(g,r,i,a,m,e,d){var n=r(d[0])((function(n){return r(d[1])(n.length,(function(){var t=arguments;return function(){return n.apply(this,t)}}))}));m.exports=n}),1054,[712,714]);
|
|
1124
1124
|
__d((function(g,r,i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createUserStoreDefaultModel=e.UserStoreModel=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=e.UserStoreModel=r(d[3]).types.model('UserStore').props({isLoggedIn:r(d[3]).types.maybeNull(r(d[3]).types.boolean),apiToken:r(d[3]).types.maybeNull(r(d[3]).types.string),accounts:r(d[3]).types.optional(r(d[3]).types.array(r(d[4]).AccountModel),[]),selectedAccountId:r(d[3]).types.maybeNull(r(d[3]).types.string),fcmToken:r(d[3]).types.maybeNull(r(d[3]).types.string),superAppUserId:r(d[3]).types.maybeNull(r(d[3]).types.string),superAppUserMap:r(d[3]).types.maybeNull(r(d[3]).types.map(r(d[3]).types.string))}).views((function(t){return{get selectedAccount(){return t.accounts.find((function(n){return n.id===t.selectedAccountId}))||{conversations:[],selectedWallet:{},selectedConversation:{},selectedContact:{},friendList:[]}}}})).actions((function(t){return{setIsLoggedIn:function(n){t.isLoggedIn=n},setApiToken:function(n){t.apiToken=n},setSelectedAccountId:function(n){t.selectedAccountId=n},addAccount:function(u){var c=(0,n.default)(t.accounts);c.unshift((0,r(d[3]).cast)(u)),t.accounts=(0,r(d[3]).cast)(c)},deleteAccount:function(n){t.accounts=(0,r(d[3]).cast)(t.accounts.filter((function(t){return t.id!==n})))},setFCMToken:function(n){t.fcmToken=n},clearData:function(){t.isLoggedIn=!1,t.apiToken=null},reset:function(){t.apiToken=null,t.selectedAccountId=null,t.accounts=(0,r(d[3]).cast)([]),r(d[5]).db.reset()},setSuperAppUserId:function(n){t.superAppUserId=n},updateSuperUserMap:function(n){t.superAppUserMap||(t.superAppUserMap=(0,r(d[3]).cast)({})),t.superAppUserId&&t.superAppUserMap.set(t.superAppUserId,n)}}})).actions((function(n){return{getRandomNames:(L=(0,t.default)((function*(){return yield r(d[6]).accountApi.getRandomNames()})),function(){return L.apply(this,arguments)}),registerDevice:(b=(0,t.default)((function*(t){return yield r(d[6]).accountApi.register(t)})),function(t){return b.apply(this,arguments)}),setPrimaryWallet:(P=(0,t.default)((function*(t){return yield r(d[6]).accountApi.setPrimaryWallet(n.apiToken,t)})),function(t){return P.apply(this,arguments)}),resetPassword:(M=(0,t.default)((function*(t){return yield r(d[6]).accountApi.resetPassword(t)})),function(t){return M.apply(this,arguments)}),registerNewDevice:(S=(0,t.default)((function*(t){return yield r(d[6]).accountApi.registerNewDevice(t)})),function(t){return S.apply(this,arguments)}),checkWalletExistence:(I=(0,t.default)((function*(t){return yield r(d[6]).accountApi.checkWalletExistence(t)})),function(t){return I.apply(this,arguments)}),addWallet:(U=(0,t.default)((function*(t){return yield r(d[6]).accountApi.addWallet(t,n.apiToken)})),function(t){return U.apply(this,arguments)}),removeWallet:(D=(0,t.default)((function*(t){return yield r(d[6]).accountApi.removeWallet(t,n.apiToken)})),function(t){return D.apply(this,arguments)}),authenticate:(T=(0,t.default)((function*(t,u){var c=yield r(d[6]).accountApi.authenticate(t);return'ok'!==c.kind||null!=u&&u.ignoreToken||n.setApiToken(c.data.token),c})),function(t,n){return T.apply(this,arguments)}),onusAuthenticate:(v=(0,t.default)((function*(t){var u=yield r(d[6]).accountApi.onusAuthentication(t);return'ok'===u.kind&&n.setApiToken(u.data.token),u})),function(t){return v.apply(this,arguments)}),changePassword:(h=(0,t.default)((function*(t){var u=yield r(d[6]).accountApi.changePassword(t,n.apiToken);return'ok'===u.kind&&n.setApiToken(u.data.token),u})),function(t){return h.apply(this,arguments)}),deleteAccountFromServer:(k=(0,t.default)((function*(){return yield r(d[6]).accountApi.deleteAccount(n.apiToken)})),function(){return k.apply(this,arguments)}),getLinkDeviceCode:(A=(0,t.default)((function*(){return yield r(d[6]).accountApi.getLinkDeviceCode()})),function(){return A.apply(this,arguments)}),setPrimaryDevice:(y=(0,t.default)((function*(t,u){return yield r(d[6]).accountApi.setPrimaryDevice(t,u,n.apiToken)})),function(t,n){return y.apply(this,arguments)}),removeLinkDeviceCode:(f=(0,t.default)((function*(t,u){return yield r(d[6]).accountApi.removeLinkDeviceCode(t,u,n.apiToken)})),function(t,n){return f.apply(this,arguments)}),notifySyncDeviceFound:(l=(0,t.default)((function*(t){return yield r(d[6]).accountApi.notifySyncDeviceFound(t,n.apiToken)})),function(t){return l.apply(this,arguments)}),sendSyncDeviceData:(p=(0,t.default)((function*(t){return yield r(d[6]).accountApi.sendSyncDeviceData(t,n.apiToken)})),function(t){return p.apply(this,arguments)}),getSelfDevices:(s=(0,t.default)((function*(){return yield r(d[6]).accountApi.getSelfDevices(n.apiToken)})),function(){return s.apply(this,arguments)}),checkExistUsername:(a=(0,t.default)((function*(t){return yield r(d[6]).accountApi.checkExistUsername(t)})),function(t){return a.apply(this,arguments)}),updateProfile:(o=(0,t.default)((function*(t,u,c,o,a,s,p){return yield r(d[6]).accountApi.updateProfile(n.apiToken,t,u,c,o,a,s,p)})),function(t,n,u,c,a,s,p){return o.apply(this,arguments)}),getReferral:(c=(0,t.default)((function*(){return yield r(d[6]).accountApi.fetchReferral(n.apiToken)})),function(){return c.apply(this,arguments)}),submitReferral:(u=(0,t.default)((function*(t){return yield r(d[6]).accountApi.submitReferral(n.apiToken,t)})),function(t){return u.apply(this,arguments)})};var u,c,o,a,s,p,l,f,y,A,k,h,v,T,D,U,I,S,M,P,b,L})).postProcessSnapshot((0,r(d[7]).omit)(['isLoggedIn']));e.createUserStoreDefaultModel=function(){return r(d[3]).types.optional(u,{})}}),1055,[20,316,23,703,1056,1065,3136,705]);
|
|
1125
|
-
__d((function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createAccountDefaultModel=e.AccountModel=void 0;var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),n=e.AccountModel=r(d[3]).types.model('Account').props({id:r(d[3]).types.identifier,address:r(d[3]).types.string,name:r(d[3]).types.string,customUsername:r(d[3]).types.maybeNull(r(d[3]).types.string),deviceUserId:r(d[3]).types.number,avatar:r(d[3]).types.maybeNull(r(d[3]).types.string),avatarThumb:r(d[3]).types.maybeNull(r(d[3]).types.string),mainWalletAddress:r(d[3]).types.maybeNull(r(d[3]).types.string),isMainWalletDeleted:r(d[3]).types.maybeNull(r(d[3]).types.boolean),faceIdEnabled:r(d[3]).types.maybeNull(r(d[3]).types.boolean),pushNotiDisabled:r(d[3]).types.maybeNull(r(d[3]).types.boolean),selectedWalletId:r(d[3]).types.maybeNull(r(d[3]).types.string),wallets:r(d[3]).types.array(r(d[4]).WalletModel),isWalletsLoaded:!1,isKeepLoginSession:r(d[3]).types.optional(r(d[3]).types.boolean,!1),isFirstTimeLoginAfterLogout:r(d[3]).types.optional(r(d[3]).types.boolean,!1),loginTime:r(d[3]).types.optional(r(d[3]).types.number,0),passcodeHash:r(d[3]).types.optional(r(d[3]).types.string,''),addressBook:r(d[3]).types.optional(r(d[3]).types.array(r(d[3]).types.frozen()),[]),currency:r(d[3]).types.maybeNull(r(d[3]).types.frozen())}).views((function(t){return{get hasMainWallet(){return!!t.mainWalletAddress},get mainWallet(){return t.wallets.find((function(t){return t.isPrimary}))},get isLoadingBalance(){return t.wallets.some((function(t){return t.isLoadingToken}))},get selectedWallet(){return t.wallets.find((function(s){return s.id===t.selectedWalletId}))||{}}}})).actions((function(t){return{setName:function(s){t.name=s},setCustomUsername:function(s){t.customUsername=s},setAvatar:function(s){t.avatar=s},setAvatarThumb:function(s){t.avatarThumb=s},setDeviceUserId:function(s){t.deviceUserId=s},setMainWalletAddress:function(s){t.mainWalletAddress=s},setIsMainWalletDeleted:function(s){t.isMainWalletDeleted=s},setFaceIdUnlock:function(s){t.faceIdEnabled=s},setPushNotiDisabled:function(s){t.pushNotiDisabled=s},setKeepLoginSession:function(s){t.isKeepLoginSession=s},setIsFirstTimeLoginAfterLogout:function(s){t.isFirstTimeLoginAfterLogout=s},setLoginTime:function(s){t.loginTime=s},addWallet:function(n){var o=(0,s.default)(t.wallets);o.unshift((0,r(d[3]).cast)(n)),t.wallets=(0,r(d[3]).cast)(o),r(d[5]).EventBus.emit(r(d[5]).AppEventType.WALLET_SNAPSHOT)},removeWallet:function(s){t.wallets=(0,r(d[3]).cast)(t.wallets.filter((function(t){return t.id!==s})))},setSelectedWalletId:function(s){t.selectedWalletId=s},setWallets:function(s){t.wallets=(0,r(d[3]).cast)(s),r(d[5]).EventBus.emit(r(d[5]).AppEventType.WALLET_SNAPSHOT)},setIsWalletsLoaded:function(s){t.isWalletsLoaded=s},resetCache:function(){t.isWalletsLoaded=!1,t.isFirstTimeLoginAfterLogout=!0},setAddressToAddresList:function(s){var n=t.addressBook.findIndex((function(t){return t.address===s.address}));-1!==n&&t.addressBook.splice(n,1),t.addressBook.unshift(s)},removeAddressFromList:function(s){var n=t.addressBook.findIndex((function(t){return t.address===s.address}));-1!==n&&t.addressBook.splice(n,1)},updateAddressFromList:function(s,n){var o=t.addressBook.findIndex((function(t){return t.address===s.address}));-1!==o&&(t.addressBook[o]=n)},setPasscodeHash:function(s){t.passcodeHash=s},setCurrency:function(s){t.currency=s}}})).actions((function(n){return{loadWalletsFromDB:(i=(0,t.default)((function*(){var t=yield r(d[6]).db.loadWallets(n.id),o=[];return t.forEach((function(t){var s=n.wallets.find((function(s){return s.id===t.id}));if(!s){var i=r(d[7]).tokenDataService.getAllPopularTokens();return t.chainId&&(i=i.filter((function(s){return s.chainId===t.chainId}))),void o.push({id:t.id,name:t.name,address:t.address,frozenTokens:i,totalAmount:null,isPrimary:t.isPrimary,background:t.background,icon:'happy-face',isBackUp:!0,tronEvmAddress:t.tronEvmAddress,chainId:t.chainId})}s.setName(t.name),s.setBackground(t.background),s.setIcon(t.walletIcon)})),n.setWallets([].concat(o,(0,s.default)(n.wallets))),n.setIsWalletsLoaded(!0),{newWallets:o}})),function(){return i.apply(this,arguments)}),updateName:function(t){n.setName(t.name),n.setAvatar(t.avatar),n.setCustomUsername(t.customUsername),r(d[6]).db.updateAccount(n.id,{name:t.name,avatar:t.avatar,customUsername:t.customUsername})},getDataForSync:(o=(0,t.default)((function*(){var t=n.wallets.find((function(t){return t.isPrimary}));if(!t)return null;var s=yield t.
|
|
1126
|
-
__d((function(g,r,i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.createWalletDefaultModel=_e.WalletModel=void 0;var e=r(d[0])(r(d[1])),n=new Map,t=_e.WalletModel=r(d[2]).types.model('Wallet').props({id:r(d[2]).types.identifier,name:r(d[2]).types.string,address:r(d[2]).types.string,isPrimary:r(d[2]).types.maybeNull(r(d[2]).types.boolean),background:r(d[2]).types.maybeNull(r(d[2]).types.string),icon:r(d[2]).types.maybeNull(r(d[2]).types.frozen()),totalAmount:r(d[2]).types.maybeNull(r(d[2]).types.string),frozenTokens:r(d[2]).types.optional(r(d[2]).types.array(r(d[2]).types.frozen()),[]),tronEvmAddress:r(d[2]).types.maybeNull(r(d[2]).types.string),chainId:r(d[2]).types.maybeNull(r(d[2]).types.frozen()),isLoadingToken:r(d[2]).types.maybeNull(r(d[2]).types.boolean),isLoadingHistory:r(d[2]).types.maybeNull(r(d[2]).types.boolean),isBackUp:r(d[2]).types.maybeNull(r(d[2]).types.boolean)}).views((function(e){return{get tokens(){var n;return null==(n=e.frozenTokens)?void 0:n.toJSON().map((function(e){return Object.assign({},e)}))},get tokensWithBalance(){return e.frozenTokens.filter((function(e){return r(d[3]).BlockChainUtils.toBigNumber(e.balance).isGreaterThan(0)}))}}})).actions((function(e){return{setTotalAmount:function(n){e.totalAmount=n,r(d[4]).EventBus.emit(r(d[4]).AppEventType.WALLET_SNAPSHOT)},setTokens:function(n){e.frozenTokens=(0,r(d[2]).cast)((0,r(d[5]).orderBy)(n,['usdAmount','balance'],['desc','desc']))},setName:function(n){e.name=n,r(d[4]).EventBus.emit(r(d[4]).AppEventType.WALLET_SNAPSHOT)},setBackground:function(n){e.background=n,r(d[4]).EventBus.emit(r(d[4]).AppEventType.WALLET_SNAPSHOT)},setIcon:function(n){e.icon=n,r(d[4]).EventBus.emit(r(d[4]).AppEventType.WALLET_SNAPSHOT)},setIsLoadingToken:function(n){e.isLoadingToken=n},setIsLoadingHistory:function(n){e.isLoadingHistory=n},setIsBackUp:function(n){e.isBackUp=n},setTest:function(n){e.tronEvmAddress=n},clearCache:function(){e.frozenTokens=(0,r(d[2]).cast)([]),e.totalAmount=null},_setTronAddress:function(n){e.tronEvmAddress=n},_setChainId:function(n){e.chainId=n}}})).actions((function(n){return{getKeyPair:(u=(0,e.default)((function*(){var e=yield r(d[6]).db.getWallet(n.id,!0);return{publicKey:null==e?void 0:e.publicKey,privateKey:null==e?void 0:e.privateKey,tronPrivateKey:null==e?void 0:e.tronPrivateKey}})),function(){return u.apply(this,arguments)}),getPrivateKeyPairByChain:(c=(0,e.default)((function*(e){var t=yield r(d[6]).db.getWallet(n.id,!0),a=e.chainId,o=e.namespace;if(!
|
|
1125
|
+
__d((function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createAccountDefaultModel=e.AccountModel=void 0;var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),n=e.AccountModel=r(d[3]).types.model('Account').props({id:r(d[3]).types.identifier,address:r(d[3]).types.string,name:r(d[3]).types.string,customUsername:r(d[3]).types.maybeNull(r(d[3]).types.string),deviceUserId:r(d[3]).types.number,avatar:r(d[3]).types.maybeNull(r(d[3]).types.string),avatarThumb:r(d[3]).types.maybeNull(r(d[3]).types.string),mainWalletAddress:r(d[3]).types.maybeNull(r(d[3]).types.string),isMainWalletDeleted:r(d[3]).types.maybeNull(r(d[3]).types.boolean),faceIdEnabled:r(d[3]).types.maybeNull(r(d[3]).types.boolean),pushNotiDisabled:r(d[3]).types.maybeNull(r(d[3]).types.boolean),selectedWalletId:r(d[3]).types.maybeNull(r(d[3]).types.string),wallets:r(d[3]).types.array(r(d[4]).WalletModel),isWalletsLoaded:!1,isKeepLoginSession:r(d[3]).types.optional(r(d[3]).types.boolean,!1),isFirstTimeLoginAfterLogout:r(d[3]).types.optional(r(d[3]).types.boolean,!1),loginTime:r(d[3]).types.optional(r(d[3]).types.number,0),passcodeHash:r(d[3]).types.optional(r(d[3]).types.string,''),addressBook:r(d[3]).types.optional(r(d[3]).types.array(r(d[3]).types.frozen()),[]),currency:r(d[3]).types.maybeNull(r(d[3]).types.frozen())}).views((function(t){return{get hasMainWallet(){return!!t.mainWalletAddress},get mainWallet(){return t.wallets.find((function(t){return t.isPrimary}))},get isLoadingBalance(){return t.wallets.some((function(t){return t.isLoadingToken}))},get selectedWallet(){return t.wallets.find((function(s){return s.id===t.selectedWalletId}))||{}}}})).actions((function(t){return{setName:function(s){t.name=s},setCustomUsername:function(s){t.customUsername=s},setAvatar:function(s){t.avatar=s},setAvatarThumb:function(s){t.avatarThumb=s},setDeviceUserId:function(s){t.deviceUserId=s},setMainWalletAddress:function(s){t.mainWalletAddress=s},setIsMainWalletDeleted:function(s){t.isMainWalletDeleted=s},setFaceIdUnlock:function(s){t.faceIdEnabled=s},setPushNotiDisabled:function(s){t.pushNotiDisabled=s},setKeepLoginSession:function(s){t.isKeepLoginSession=s},setIsFirstTimeLoginAfterLogout:function(s){t.isFirstTimeLoginAfterLogout=s},setLoginTime:function(s){t.loginTime=s},addWallet:function(n){var o=(0,s.default)(t.wallets);o.unshift((0,r(d[3]).cast)(n)),t.wallets=(0,r(d[3]).cast)(o),r(d[5]).EventBus.emit(r(d[5]).AppEventType.WALLET_SNAPSHOT)},removeWallet:function(s){t.wallets=(0,r(d[3]).cast)(t.wallets.filter((function(t){return t.id!==s})))},setSelectedWalletId:function(s){t.selectedWalletId=s},setWallets:function(s){t.wallets=(0,r(d[3]).cast)(s),r(d[5]).EventBus.emit(r(d[5]).AppEventType.WALLET_SNAPSHOT)},setIsWalletsLoaded:function(s){t.isWalletsLoaded=s},resetCache:function(){t.isWalletsLoaded=!1,t.isFirstTimeLoginAfterLogout=!0},setAddressToAddresList:function(s){var n=t.addressBook.findIndex((function(t){return t.address===s.address}));-1!==n&&t.addressBook.splice(n,1),t.addressBook.unshift(s)},removeAddressFromList:function(s){var n=t.addressBook.findIndex((function(t){return t.address===s.address}));-1!==n&&t.addressBook.splice(n,1)},updateAddressFromList:function(s,n){var o=t.addressBook.findIndex((function(t){return t.address===s.address}));-1!==o&&(t.addressBook[o]=n)},setPasscodeHash:function(s){t.passcodeHash=s},setCurrency:function(s){t.currency=s}}})).actions((function(n){return{loadWalletsFromDB:(i=(0,t.default)((function*(){var t=yield r(d[6]).db.loadWallets(n.id),o=[];return t.forEach((function(t){var s=n.wallets.find((function(s){return s.id===t.id}));if(!s){var i=r(d[7]).tokenDataService.getAllPopularTokens();return t.chainId&&(i=i.filter((function(s){return s.chainId===t.chainId}))),void o.push({id:t.id,name:t.name,address:t.address,frozenTokens:i,totalAmount:null,isPrimary:t.isPrimary,background:t.background,icon:'happy-face',isBackUp:!0,tronEvmAddress:t.tronEvmAddress,chainId:t.chainId})}s.setName(t.name),s.setBackground(t.background),s.setIcon(t.walletIcon)})),n.setWallets([].concat(o,(0,s.default)(n.wallets))),n.setIsWalletsLoaded(!0),{newWallets:o}})),function(){return i.apply(this,arguments)}),updateName:function(t){n.setName(t.name),n.setAvatar(t.avatar),n.setCustomUsername(t.customUsername),r(d[6]).db.updateAccount(n.id,{name:t.name,avatar:t.avatar,customUsername:t.customUsername})},getDataForSync:(o=(0,t.default)((function*(){var t=n.wallets.find((function(t){return t.isPrimary}));if(!t)return null;var s=yield t.getPrivateKeyPairByChain({namespace:'eip155'}),o=yield r(d[6]).db.getAccount(n.id,!0);return{privateKey:s,wallets:yield r(d[6]).db.loadWallets(n.id,!0),password:o.password}})),function(){return o.apply(this,arguments)})};var o,i})).postProcessSnapshot((0,r(d[8]).omit)(['isWalletsLoaded','isConversationsLoaded','isContactsLoaded']));e.createAccountDefaultModel=function(){return r(d[3]).types.optional(n,{})}}),1056,[20,316,23,703,1057,1061,1065,2812,705]);
|
|
1126
|
+
__d((function(g,r,i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.createWalletDefaultModel=_e.WalletModel=void 0;var e=r(d[0])(r(d[1])),n=new Map,t=_e.WalletModel=r(d[2]).types.model('Wallet').props({id:r(d[2]).types.identifier,name:r(d[2]).types.string,address:r(d[2]).types.string,isPrimary:r(d[2]).types.maybeNull(r(d[2]).types.boolean),background:r(d[2]).types.maybeNull(r(d[2]).types.string),icon:r(d[2]).types.maybeNull(r(d[2]).types.frozen()),totalAmount:r(d[2]).types.maybeNull(r(d[2]).types.string),frozenTokens:r(d[2]).types.optional(r(d[2]).types.array(r(d[2]).types.frozen()),[]),tronEvmAddress:r(d[2]).types.maybeNull(r(d[2]).types.string),chainId:r(d[2]).types.maybeNull(r(d[2]).types.frozen()),isLoadingToken:r(d[2]).types.maybeNull(r(d[2]).types.boolean),isLoadingHistory:r(d[2]).types.maybeNull(r(d[2]).types.boolean),isBackUp:r(d[2]).types.maybeNull(r(d[2]).types.boolean)}).views((function(e){return{get tokens(){var n;return null==(n=e.frozenTokens)?void 0:n.toJSON().map((function(e){return Object.assign({},e)}))},get tokensWithBalance(){return e.frozenTokens.filter((function(e){return r(d[3]).BlockChainUtils.toBigNumber(e.balance).isGreaterThan(0)}))}}})).actions((function(e){return{setTotalAmount:function(n){e.totalAmount=n,r(d[4]).EventBus.emit(r(d[4]).AppEventType.WALLET_SNAPSHOT)},setTokens:function(n){e.frozenTokens=(0,r(d[2]).cast)((0,r(d[5]).orderBy)(n,['usdAmount','balance'],['desc','desc']))},setName:function(n){e.name=n,r(d[4]).EventBus.emit(r(d[4]).AppEventType.WALLET_SNAPSHOT)},setBackground:function(n){e.background=n,r(d[4]).EventBus.emit(r(d[4]).AppEventType.WALLET_SNAPSHOT)},setIcon:function(n){e.icon=n,r(d[4]).EventBus.emit(r(d[4]).AppEventType.WALLET_SNAPSHOT)},setIsLoadingToken:function(n){e.isLoadingToken=n},setIsLoadingHistory:function(n){e.isLoadingHistory=n},setIsBackUp:function(n){e.isBackUp=n},setTest:function(n){e.tronEvmAddress=n},clearCache:function(){e.frozenTokens=(0,r(d[2]).cast)([]),e.totalAmount=null},_setTronAddress:function(n){e.tronEvmAddress=n},_setChainId:function(n){e.chainId=n}}})).actions((function(n){return{getKeyPair:(u=(0,e.default)((function*(){var e=yield r(d[6]).db.getWallet(n.id,!0);return{publicKey:null==e?void 0:e.publicKey,privateKey:null==e?void 0:e.privateKey,tronPrivateKey:null==e?void 0:e.tronPrivateKey}})),function(){return u.apply(this,arguments)}),getPrivateKeyPairByChain:(c=(0,e.default)((function*(e){var t=yield r(d[6]).db.getWallet(n.id,!0),a=e.chainId,o=e.ignoreEmpty,s=e.namespace,l='';if(!s&&a){var c=(0,r(d[7]).getChainFromId)({chainId:a});s=null==c?void 0:c.namespace}switch(s){case'tron':l=t.tronPrivateKey;break;case'eip155':l=t.privateKey;break;default:return''}return l||o||r(d[4]).EventBus.emit(r(d[4]).AppEventType.WALLET_PK_NOT_FOUND,{id:n.id}),l})),function(e){return c.apply(this,arguments)}),getPassphrase:(l=(0,e.default)((function*(){var e=yield r(d[6]).db.getWallet(n.id,!0);return null==e?void 0:e.passphrase})),function(){return l.apply(this,arguments)}),updateAppearance:(s=(0,e.default)((function*(e){var t=e.background;n.setBackground(t),yield r(d[6]).db.updateWallet(n.id,{background:t})})),function(e){return s.apply(this,arguments)}),updateIcon:(o=(0,e.default)((function*(e){n.icon=e,yield r(d[6]).db.updateWallet(n.id,{icon:e})})),function(e){return o.apply(this,arguments)}),update:function(){return r(d[6]).db.updateWallet(n.id,{name:n.name})},delete:function(){return r(d[6]).db.deleteWallet(n.id)},loadTokensByChain:(a=(0,e.default)((function*(e){var t=e.namespace,a=e.chainNumber,o=e.currency,s=(0,r(d[7]).fromInfoToChainId)({namespace:t,chainNumber:a}),l='tron'===t,c=yield r(d[8]).tokenBalanceService.getWalletBalance({chainId:s,address:l?n.tronEvmAddress:n.address,tokens:n.tokens.filter((function(e){return e.chainId===s})),currency:o});if(c){var u=n.tokens.filter((function(e){return e.chainId!==s})).concat(c.tokens);n.setTokens(u);var p=yield r(d[8]).tokenBalanceService.calculateWalletBalance(u,o);n.setTotalAmount(p.total)}})),function(e){return a.apply(this,arguments)}),loadSomeTokens:(t=(0,e.default)((function*(e,t,a){var o=null!=a&&a.ignoreExisted?e.filter((function(e){return!n.tokens.find((function(n){return n.chainId===e.chainId&&n.address==e.address}))})):e;if(o.length){var s=o[0].chainId,l=o.map((function(e){return e.address})),c=s.startsWith('tron:'),u=yield r(d[8]).tokenBalanceService.getWalletBalance({chainId:s,address:c?n.tronEvmAddress:n.address,tokens:o,currency:t});if(u){var p=n.tokens.filter((function(e){return e.chainId!==s||!l.includes(e.address)})).concat(u.tokens);n.setTokens(p);var y=yield r(d[8]).tokenBalanceService.calculateWalletBalance(p,t);n.setTotalAmount(y.total)}}})),function(e,n,a){return t.apply(this,arguments)})};var t,a,o,s,l,c,u})).actions((function(n){return{loadHistoryFromChain:(o=(0,e.default)((function*(e){var t=e.namespace,a=e.chainNumber,o=e.currency,s=!0,l='tron'===t;try{var c=(yield r(d[9]).walletHistoryService.loadAllHistoryFromChain({chainNumber:a,namespace:t,address:l?n.tronEvmAddress:n.address})).relatedTokens;n.loadSomeTokens(c,o,{ignoreExisted:!0}),r(d[10]).Logger.debug("wallet.loadHistory: loaded "+t+":"+a)}catch(n){s=!1,r(d[10]).Logger.error("wallet.loadHistory "+JSON.stringify(e)+": "+n)}return s})),function(e){return o.apply(this,arguments)}),checkUnconfirmedTransactions:(a=(0,e.default)((function*(e){var t=e.namespace,a=e.chainNumber,o='tron'===t;yield r(d[9]).walletHistoryService.loadAllUnconfirmedFromChain({namespace:t,chainNumber:a,address:o?n.tronEvmAddress:n.address})})),function(e){return a.apply(this,arguments)}),checkPendingTransactions:(t=(0,e.default)((function*(e){var t=e.namespace,a=e.chainNumber,o=yield n.getPrivateKeyPairByChain({namespace:t,ignoreEmpty:!0}),s='tron'===t;yield r(d[9]).walletHistoryService.checkAllPending({namespace:t,chainNumber:a,address:s?n.tronEvmAddress:n.address,privateKey:o})})),function(e){return t.apply(this,arguments)})};var t,a,o})).preProcessSnapshot((function(e){var t=r(d[7]).SUPPORTED_CHAINS.map((function(e){return e.chainId})),o=n.get(e.id)||[],s=a(o,e.frozenTokens.filter((function(e){return!t.includes(e.chainId)})));return n.set(e.id,s),Object.assign({},e,{frozenTokens:e.frozenTokens.filter((function(e){return t.includes(e.chainId)}))})})).postProcessSnapshot((function(e){var t=n.get(e.id)||[];return(0,r(d[11]).omit)(['isLoadingToken','isLoadingHistory'])(Object.assign({},e,{frozenTokens:a(t,e.frozenTokens)}))})),a=(_e.createWalletDefaultModel=function(){return r(d[2]).types.optional(t,{})},function(e,n){var t=(0,r(d[5]).keyBy)(e,(function(e){return e.chainId+"-"+e.address}));return n.forEach((function(e){t[e.chainId+"-"+e.address]=e})),Object.values(t)})}),1057,[20,316,703,1058,1061,1064,1065,1474,2812,2916,1413,705]);
|
|
1127
1127
|
__d((function(g,r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.BlockChainUtils=_e.ALL_IN_HEX_AMOUNT=void 0;var f,t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),i=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),n=(function(f){return f.ALL="ALL",f})(n||{}),o=_e.ALL_IN_HEX_AMOUNT='ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff',l=_e.BlockChainUtils=(0,e.default)((function f(){(0,t.default)(this,f)}),null,[{key:"toBigNumber",value:function(f,t){return new i.default(f,t)}},{key:"amountToWei",value:function(f,t){return this.toBigNumber(f).multipliedBy("1e"+('number'==typeof t?t:18)).toString(10)}},{key:"weiToAmount",value:function(f,t){return this.toBigNumber(f).div("1e"+('number'==typeof t?t:18)).toString(10)}},{key:"weiToHex",value:function(f){return this.toBigNumber(f).toString(16)}},{key:"amountToHex",value:function(f,t){return this.toBigNumber(this.amountToWei(f,t)).toString(16)}},{key:"hexToAmount",value:function(f,t){if(f===o||f==="0x"+o)return n.ALL;var e=this.toBigNumber(f,16);return this.weiToAmount(e.toString(10),t)}}]);f=l,l.toFixed=function(t,e){if(t===n.ALL)return t;if(t||(t=0),f.toBigNumber(t).isNaN())return'--';if(e&&e>0){var i=f.toBigNumber(t),o='0.000001';if(e<6){o='0.';for(var l=0;l<e-1;l++)o+='0';o+='1'}if(i.gt(0)&&i.lt(o)&&!i.eq(0))return"<"+o}null==e&&(e=4);for(var c,s=function(f){return f.replace(/\B(?=(\d{3})+(?!\d))/g,',')},v='0,0.[',N=0;N<e;N+=1)v+='0';v+=']';try{var B=f.toBigNumber(t).toFixed(e,1),b=(0,u.default)(B).format(v);if('NaN'===b)if(B.includes('.')){var h=B.split('.');b=s(h[0])+"."+h[1].slice(0,e)}else b=s(B);return(c=b).includes('.')&&c.split('.')[1].split('').every((function(f){return'0'===f}))&&18!==e?f.toFixed(t,18):b}catch(f){return'0'}}}),1058,[20,9,12,1059,1060]);
|
|
1128
1128
|
__d((function(g,_r,_i,_a,_m,_e,_d){!(function(e){'use strict';var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,t=Math.ceil,i=Math.floor,o='[BigNumber Error] ',s="[BigNumber Error] Number primitive has more than 15 significant digits: ",u=1e14,f=14,l=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],a=1e7,h=1e9;function p(e){var r=0|e;return e>0||e===r?r:r-1}function w(e){for(var r,n,t=1,i=e.length,o=e[0]+'';t<i;){for(r=e[t++]+'',n=f-r.length;n--;r='0'+r);o+=r}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function m(e,r){var n,t,i=e.c,o=r.c,s=e.s,u=r.s,f=e.e,l=r.e;if(!s||!u)return null;if(n=i&&!i[0],t=o&&!o[0],n||t)return n?t?0:-u:s;if(s!=u)return s;if(n=s<0,t=f==l,!i||!o)return t?0:!i^n?1:-1;if(!t)return f>l^n?1:-1;for(u=(f=i.length)<(l=o.length)?f:l,s=0;s<u;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return f==l?0:f>l^n?1:-1}function d(e,r,n,t){if(e<r||e>n||e!==i(e))throw Error(o+(t||'Argument')+('number'==typeof e?e<r||e>n?' out of range: ':' not an integer: ':' not a primitive number: ')+String(e))}function N(e){var r=e.c.length-1;return p(e.e/f)==r&&e.c[r]%2!=0}function v(e,r){return(e.length>1?e.charAt(0)+'.'+e.slice(1):e)+(r<0?'e':'e+')+r}function b(e,r,n){var t,i;if(r<0){for(i=n+'.';++r;i+=n);e=i+e}else if(++r>(t=e.length)){for(i=n,r-=t;--r;i+=n);e+=i}else r<t&&(e=e.slice(0,r)+'.'+e.slice(r));return e}r=(function e(r){var E,O,y,A,B,_,S,R,D,P,x=H.prototype={constructor:H,toString:null,valueOf:null},L=new H(1),U=20,I=4,T=-7,C=21,M=-1e7,G=1e7,F=!1,k=1,q=0,j={prefix:'',groupSize:3,secondaryGroupSize:0,groupSeparator:',',decimalSeparator:'.',fractionGroupSize:0,fractionGroupSeparator:'\xa0',suffix:''},$='0123456789abcdefghijklmnopqrstuvwxyz',z=!0;function H(e,r){var t,o,u,c,a,h,p,w,m=this;if(!(m instanceof H))return new H(e,r);if(null==r){if(e&&!0===e._isBigNumber)return m.s=e.s,void(!e.c||e.e>G?m.c=m.e=null:e.e<M?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice()));if((h='number'==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,a=e;a>=10;a/=10,c++);return void(c>G?m.c=m.e=null:(m.e=c,m.c=[e]))}w=String(e)}else{if(!n.test(w=String(e)))return y(m,w,h);m.s=45==w.charCodeAt(0)?(w=w.slice(1),-1):1}(c=w.indexOf('.'))>-1&&(w=w.replace('.','')),(a=w.search(/e/i))>0?(c<0&&(c=a),c+=+w.slice(a+1),w=w.substring(0,a)):c<0&&(c=w.length)}else{if(d(r,2,$.length,'Base'),10==r&&z)return Y(m=new H(e),U+m.e+1,I);if(w=String(e),h='number'==typeof e){if(0*e!=0)return y(m,w,h,r);if(m.s=1/e<0?(w=w.slice(1),-1):1,H.DEBUG&&w.replace(/^0\.0*|\./,'').length>15)throw Error(s+e)}else m.s=45===w.charCodeAt(0)?(w=w.slice(1),-1):1;for(t=$.slice(0,r),c=a=0,p=w.length;a<p;a++)if(t.indexOf(o=w.charAt(a))<0){if('.'==o){if(a>c){c=p;continue}}else if(!u&&(w==w.toUpperCase()&&(w=w.toLowerCase())||w==w.toLowerCase()&&(w=w.toUpperCase()))){u=!0,a=-1,c=0;continue}return y(m,String(e),h,r)}h=!1,(c=(w=O(w,r,10,m.s)).indexOf('.'))>-1?w=w.replace('.',''):c=w.length}for(a=0;48===w.charCodeAt(a);a++);for(p=w.length;48===w.charCodeAt(--p););if(w=w.slice(a,++p)){if(p-=a,h&&H.DEBUG&&p>15&&(e>l||e!==i(e)))throw Error(s+m.s*e);if((c=c-a-1)>G)m.c=m.e=null;else if(c<M)m.c=[m.e=0];else{if(m.e=c,m.c=[],a=(c+1)%f,c<0&&(a+=f),a<p){for(a&&m.c.push(+w.slice(0,a)),p-=f;a<p;)m.c.push(+w.slice(a,a+=f));a=f-(w=w.slice(a)).length}else a-=p;for(;a--;w+='0');m.c.push(+w)}}else m.c=[m.e=0]}function V(e,r,n,t){var i,o,s,u,f;if(null==n?n=I:d(n,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==r)f=w(e.c),f=1==t||2==t&&(s<=T||s>=C)?v(f,s):b(f,s,'0');else if(o=(e=Y(new H(e),r,n)).e,u=(f=w(e.c)).length,1==t||2==t&&(r<=o||o<=T)){for(;u<r;f+='0',u++);f=v(f,o)}else if(r-=s,f=b(f,o,'0'),o+1>u){if(--r>0)for(f+='.';r--;f+='0');}else if((r+=o-u)>0)for(o+1==u&&(f+='.');r--;f+='0');return e.s<0&&i?'-'+f:f}function W(e,r){for(var n,t,i=1,o=new H(e[0]);i<e.length;i++)(!(t=new H(e[i])).s||(n=m(o,t))===r||0===n&&o.s===r)&&(o=t);return o}function X(e,r,n){for(var t=1,i=r.length;!r[--i];r.pop());for(i=r[0];i>=10;i/=10,t++);return(n=t+n*f-1)>G?e.c=e.e=null:n<M?e.c=[e.e=0]:(e.e=n,e.c=r),e}function Y(e,r,n,o){var s,l,a,h,p,w,m,d=e.c,N=c;if(d){e:{for(s=1,h=d[0];h>=10;h/=10,s++);if((l=r-s)<0)l+=f,a=r,p=d[w=0],m=i(p/N[s-a-1]%10);else if((w=t((l+1)/f))>=d.length){if(!o)break e;for(;d.length<=w;d.push(0));p=m=0,s=1,a=(l%=f)-f+1}else{for(p=h=d[w],s=1;h>=10;h/=10,s++);m=(a=(l%=f)-f+s)<0?0:i(p/N[s-a-1]%10)}if(o=o||r<0||null!=d[w+1]||(a<0?p:p%N[s-a-1]),o=n<4?(m||o)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||o||6==n&&(l>0?a>0?p/N[s-a]:0:d[w-1])%10&1||n==(e.s<0?8:7)),r<1||!d[0])return d.length=0,o?(r-=e.e+1,d[0]=N[(f-r%f)%f],e.e=-r||0):d[0]=e.e=0,e;if(0==l?(d.length=w,h=1,w--):(d.length=w+1,h=N[f-l],d[w]=a>0?i(p/N[s-a]%N[a])*h:0),o)for(;;){if(0==w){for(l=1,a=d[0];a>=10;a/=10,l++);for(a=d[0]+=h,h=1;a>=10;a/=10,h++);l!=h&&(e.e++,d[0]==u&&(d[0]=1));break}if(d[w]+=h,d[w]!=u)break;d[w--]=0,h=1}for(l=d.length;0===d[--l];d.pop());}e.e>G?e.c=e.e=null:e.e<M&&(e.c=[e.e=0])}return e}function J(e){var r,n=e.e;return null===n?e.toString():(r=w(e.c),r=n<=T||n>=C?v(r,n):b(r,n,'0'),e.s<0?'-'+r:r)}return H.clone=e,H.ROUND_UP=0,H.ROUND_DOWN=1,H.ROUND_CEIL=2,H.ROUND_FLOOR=3,H.ROUND_HALF_UP=4,H.ROUND_HALF_DOWN=5,H.ROUND_HALF_EVEN=6,H.ROUND_HALF_CEIL=7,H.ROUND_HALF_FLOOR=8,H.EUCLID=9,H.config=H.set=function(e){var r,n;if(null!=e){if('object'!=typeof e)throw Error("[BigNumber Error] Object expected: "+e);if(e.hasOwnProperty(r='DECIMAL_PLACES')&&(d(n=e[r],0,h,r),U=n),e.hasOwnProperty(r='ROUNDING_MODE')&&(d(n=e[r],0,8,r),I=n),e.hasOwnProperty(r='EXPONENTIAL_AT')&&((n=e[r])&&n.pop?(d(n[0],-1e9,0,r),d(n[1],0,h,r),T=n[0],C=n[1]):(d(n,-1e9,h,r),T=-(C=n<0?-n:n))),e.hasOwnProperty(r='RANGE'))if((n=e[r])&&n.pop)d(n[0],-1e9,-1,r),d(n[1],1,h,r),M=n[0],G=n[1];else{if(d(n,-1e9,h,r),!n)throw Error(o+r+' cannot be zero: '+n);M=-(G=n<0?-n:n)}if(e.hasOwnProperty(r='CRYPTO')){if((n=e[r])!==!!n)throw Error(o+r+' not true or false: '+n);if(n){if('undefined'==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!n,Error("[BigNumber Error] crypto unavailable");F=n}else F=n}if(e.hasOwnProperty(r='MODULO_MODE')&&(d(n=e[r],0,9,r),k=n),e.hasOwnProperty(r='POW_PRECISION')&&(d(n=e[r],0,h,r),q=n),e.hasOwnProperty(r='FORMAT')){if('object'!=typeof(n=e[r]))throw Error(o+r+' not an object: '+n);j=n}if(e.hasOwnProperty(r='ALPHABET')){if('string'!=typeof(n=e[r])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(o+r+' invalid: '+n);z='0123456789'==n.slice(0,10),$=n}}return{DECIMAL_PLACES:U,ROUNDING_MODE:I,EXPONENTIAL_AT:[T,C],RANGE:[M,G],CRYPTO:F,MODULO_MODE:k,POW_PRECISION:q,FORMAT:j,ALPHABET:$}},H.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!H.DEBUG)return!0;var r,n,t=e.c,o=e.e,s=e.s;e:if('[object Array]'=={}.toString.call(t)){if((1===s||-1===s)&&o>=-1e9&&o<=h&&o===i(o)){if(0===t[0]){if(0===o&&1===t.length)return!0;break e}if((r=(o+1)%f)<1&&(r+=f),String(t[0]).length==r){for(r=0;r<t.length;r++)if((n=t[r])<0||n>=u||n!==i(n))break e;if(0!==n)return!0}}}else if(null===t&&null===o&&(null===s||1===s||-1===s))return!0;throw Error("[BigNumber Error] Invalid BigNumber: "+e)},H.maximum=H.max=function(){return W(arguments,-1)},H.minimum=H.min=function(){return W(arguments,1)},H.random=(A=9007199254740992,B=Math.random()*A&2097151?function(){return i(Math.random()*A)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var r,n,o,s,u,l=0,a=[],p=new H(L);if(null==e?e=U:d(e,0,h),s=t(e/f),F)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(s*=2));l<s;)(u=131072*r[l]+(r[l+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[l]=n[0],r[l+1]=n[1]):(a.push(u%1e14),l+=2);l=s/2}else{if(!crypto.randomBytes)throw F=!1,Error("[BigNumber Error] crypto unavailable");for(r=crypto.randomBytes(s*=7);l<s;)(u=281474976710656*(31&r[l])+1099511627776*r[l+1]+4294967296*r[l+2]+16777216*r[l+3]+(r[l+4]<<16)+(r[l+5]<<8)+r[l+6])>=9e15?crypto.randomBytes(7).copy(r,l):(a.push(u%1e14),l+=7);l=s/7}if(!F)for(;l<s;)(u=B())<9e15&&(a[l++]=u%1e14);for(s=a[--l],e%=f,s&&e&&(u=c[f-e],a[l]=i(s/u)*u);0===a[l];a.pop(),l--);if(l<0)a=[o=0];else{for(o=-1;0===a[0];a.splice(0,1),o-=f);for(l=1,u=a[0];u>=10;u/=10,l++);l<f&&(o-=f-l)}return p.e=o,p.c=a,p}),H.sum=function(){for(var e=1,r=arguments,n=new H(r[0]);e<r.length;)n=n.plus(r[e++]);return n},O=(function(){var e='0123456789';function r(e,r,n,t){for(var i,o,s=[0],u=0,f=e.length;u<f;){for(o=s.length;o--;s[o]*=r);for(s[0]+=t.indexOf(e.charAt(u++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(n,t,i,o,s){var u,f,l,c,a,h,p,m,d=n.indexOf('.'),N=U,v=I;for(d>=0&&(c=q,q=0,n=n.replace('.',''),h=(m=new H(t)).pow(n.length-d),q=c,m.c=r(b(w(h.c),h.e,'0'),10,i,e),m.e=m.c.length),l=c=(p=r(n,t,i,s?(u=$,e):(u=e,$))).length;0==p[--c];p.pop());if(!p[0])return u.charAt(0);if(d<0?--l:(h.c=p,h.e=l,h.s=o,p=(h=E(h,m,N,v,i)).c,a=h.r,l=h.e),d=p[f=l+N+1],c=i/2,a=a||f<0||null!=p[f+1],a=v<4?(null!=d||a)&&(0==v||v==(h.s<0?3:2)):d>c||d==c&&(4==v||a||6==v&&1&p[f-1]||v==(h.s<0?8:7)),f<1||!p[0])n=a?b(u.charAt(1),-N,u.charAt(0)):u.charAt(0);else{if(p.length=f,a)for(--i;++p[--f]>i;)p[f]=0,f||(++l,p=[1].concat(p));for(c=p.length;!p[--c];);for(d=0,n='';d<=c;n+=u.charAt(p[d++]));n=b(n,l,u.charAt(0))}return n}})(),E=(function(){function e(e,r,n){var t,i,o,s,u=0,f=e.length,l=r%a,c=r/a|0;for(e=e.slice();f--;)u=((i=l*(o=e[f]%a)+(t=c*o+(s=e[f]/a|0)*l)%a*a+u)/n|0)+(t/a|0)+c*s,e[f]=i%n;return u&&(e=[u].concat(e)),e}function r(e,r,n,t){var i,o;if(n!=t)o=n>t?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=r[i]){o=e[i]>r[i]?1:-1;break}return o}function n(e,r,n,t){for(var i=0;n--;)e[n]-=i,i=e[n]<r[n]?1:0,e[n]=i*t+e[n]-r[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(t,o,s,l,c){var a,h,w,m,d,N,v,b,E,O,y,A,B,_,S,R,D,P=t.s==o.s?1:-1,x=t.c,L=o.c;if(!(x&&x[0]&&L&&L[0]))return new H(t.s&&o.s&&(x?!L||x[0]!=L[0]:L)?x&&0==x[0]||!L?0*P:P/0:NaN);for(E=(b=new H(P)).c=[],P=s+(h=t.e-o.e)+1,c||(c=u,h=p(t.e/f)-p(o.e/f),P=P/f|0),w=0;L[w]==(x[w]||0);w++);if(L[w]>(x[w]||0)&&h--,P<0)E.push(1),m=!0;else{for(_=x.length,R=L.length,w=0,P+=2,(d=i(c/(L[0]+1)))>1&&(L=e(L,d,c),x=e(x,d,c),R=L.length,_=x.length),B=R,y=(O=x.slice(0,R)).length;y<R;O[y++]=0);D=L.slice(),D=[0].concat(D),S=L[0],L[1]>=c/2&&S++;do{if(d=0,(a=r(L,O,R,y))<0){if(A=O[0],R!=y&&(A=A*c+(O[1]||0)),(d=i(A/S))>1)for(d>=c&&(d=c-1),v=(N=e(L,d,c)).length,y=O.length;1==r(N,O,v,y);)d--,n(N,R<v?D:L,v,c),v=N.length,a=1;else 0==d&&(a=d=1),v=(N=L.slice()).length;if(v<y&&(N=[0].concat(N)),n(O,N,y,c),y=O.length,-1==a)for(;r(L,O,R,y)<1;)d++,n(O,R<y?D:L,y,c),y=O.length}else 0===a&&(d++,O=[0]);E[w++]=d,O[0]?O[y++]=x[B]||0:(O=[x[B]],y=1)}while((B++<_||null!=O[0])&&P--);m=null!=O[0],E[0]||E.splice(0,1)}if(c==u){for(w=1,P=E[0];P>=10;P/=10,w++);Y(b,s+(b.e=w+h*f-1)+1,l,m)}else b.e=h,b.r=+m;return b}})(),_=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,R=/^\.([^.]+)$/,D=/^-?(Infinity|NaN)$/,P=/^\s*\+(?=[\w.])|^\s+|\s+$/g,y=function(e,r,n,t){var i,o=n?r:r.replace(P,'');if(D.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(_,(function(e,r,n){return i='x'==(n=n.toLowerCase())?16:'b'==n?2:8,t&&t!=i?e:r})),t&&(i=t,o=o.replace(S,'$1').replace(R,'0.$1')),r!=o))return new H(o,i);if(H.DEBUG)throw Error("[BigNumber Error] Not a"+(t?' base '+t:'')+' number: '+r);e.s=null}e.c=e.e=null},x.absoluteValue=x.abs=function(){var e=new H(this);return e.s<0&&(e.s=1),e},x.comparedTo=function(e,r){return m(this,new H(e,r))},x.decimalPlaces=x.dp=function(e,r){var n,t,i,o=this;if(null!=e)return d(e,0,h),null==r?r=I:d(r,0,8),Y(new H(o),e+o.e+1,r);if(!(n=o.c))return null;if(t=((i=n.length-1)-p(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,t--);return t<0&&(t=0),t},x.dividedBy=x.div=function(e,r){return E(this,new H(e,r),U,I)},x.dividedToIntegerBy=x.idiv=function(e,r){return E(this,new H(e,r),0,1)},x.exponentiatedBy=x.pow=function(e,r){var n,o,s,u,l,c,a,h,p=this;if((e=new H(e)).c&&!e.isInteger())throw Error("[BigNumber Error] Exponent not an integer: "+J(e));if(null!=r&&(r=new H(r)),l=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new H(Math.pow(+J(p),l?e.s*(2-N(e)):+J(e))),r?h.mod(r):h;if(c=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new H(NaN);(o=!c&&p.isInteger()&&r.isInteger())&&(p=p.mod(r))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return u=p.s<0&&N(e)?-0:0,p.e>-1&&(u=1/u),new H(c?1/u:u);q&&(u=t(q/f+2))}for(l?(n=new H(.5),c&&(e.s=1),a=N(e)):a=(s=Math.abs(+J(e)))%2,h=new H(L);;){if(a){if(!(h=h.times(p)).c)break;u?h.c.length>u&&(h.c.length=u):o&&(h=h.mod(r))}if(s){if(0===(s=i(s/2)))break;a=s%2}else if(Y(e=e.times(n),e.e+1,1),e.e>14)a=N(e);else{if(0===(s=+J(e)))break;a=s%2}p=p.times(p),u?p.c&&p.c.length>u&&(p.c.length=u):o&&(p=p.mod(r))}return o?h:(c&&(h=L.div(h)),r?h.mod(r):u?Y(h,q,I,undefined):h)},x.integerValue=function(e){var r=new H(this);return null==e?e=I:d(e,0,8),Y(r,r.e+1,e)},x.isEqualTo=x.eq=function(e,r){return 0===m(this,new H(e,r))},x.isFinite=function(){return!!this.c},x.isGreaterThan=x.gt=function(e,r){return m(this,new H(e,r))>0},x.isGreaterThanOrEqualTo=x.gte=function(e,r){return 1===(r=m(this,new H(e,r)))||0===r},x.isInteger=function(){return!!this.c&&p(this.e/f)>this.c.length-2},x.isLessThan=x.lt=function(e,r){return m(this,new H(e,r))<0},x.isLessThanOrEqualTo=x.lte=function(e,r){return-1===(r=m(this,new H(e,r)))||0===r},x.isNaN=function(){return!this.s},x.isNegative=function(){return this.s<0},x.isPositive=function(){return this.s>0},x.isZero=function(){return!!this.c&&0==this.c[0]},x.minus=function(e,r){var n,t,i,o,s=this,l=s.s;if(r=(e=new H(e,r)).s,!l||!r)return new H(NaN);if(l!=r)return e.s=-r,s.plus(e);var c=s.e/f,a=e.e/f,h=s.c,w=e.c;if(!c||!a){if(!h||!w)return h?(e.s=-r,e):new H(w?s:NaN);if(!h[0]||!w[0])return w[0]?(e.s=-r,e):new H(h[0]?s:3==I?-0:0)}if(c=p(c),a=p(a),h=h.slice(),l=c-a){for((o=l<0)?(l=-l,i=h):(a=c,i=w),i.reverse(),r=l;r--;i.push(0));i.reverse()}else for(t=(o=(l=h.length)<(r=w.length))?l:r,l=r=0;r<t;r++)if(h[r]!=w[r]){o=h[r]<w[r];break}if(o&&(i=h,h=w,w=i,e.s=-e.s),(r=(t=w.length)-(n=h.length))>0)for(;r--;h[n++]=0);for(r=99999999999999;t>l;){if(h[--t]<w[t]){for(n=t;n&&!h[--n];h[n]=r);--h[n],h[t]+=u}h[t]-=w[t]}for(;0==h[0];h.splice(0,1),--a);return h[0]?X(e,h,a):(e.s=3==I?-1:1,e.c=[e.e=0],e)},x.modulo=x.mod=function(e,r){var n,t,i=this;return e=new H(e,r),!i.c||!e.s||e.c&&!e.c[0]?new H(NaN):!e.c||i.c&&!i.c[0]?new H(i):(9==k?(t=e.s,e.s=1,n=E(i,e,0,3),e.s=t,n.s*=t):n=E(i,e,0,k),(e=i.minus(n.times(e))).c[0]||1!=k||(e.s=i.s),e)},x.multipliedBy=x.times=function(e,r){var n,t,i,o,s,l,c,h,w,m,d,N,v,b,E,O=this,y=O.c,A=(e=new H(e,r)).c;if(!(y&&A&&y[0]&&A[0]))return!O.s||!e.s||y&&!y[0]&&!A||A&&!A[0]&&!y?e.c=e.e=e.s=null:(e.s*=O.s,y&&A?(e.c=[0],e.e=0):e.c=e.e=null),e;for(t=p(O.e/f)+p(e.e/f),e.s*=O.s,(c=y.length)<(m=A.length)&&(v=y,y=A,A=v,i=c,c=m,m=i),i=c+m,v=[];i--;v.push(0));for(b=u,E=a,i=m;--i>=0;){for(n=0,d=A[i]%E,N=A[i]/E|0,o=i+(s=c);o>i;)n=((h=d*(h=y[--s]%E)+(l=N*h+(w=y[s]/E|0)*d)%E*E+v[o]+n)/b|0)+(l/E|0)+N*w,v[o--]=h%b;v[o]=n}return n?++t:v.splice(0,1),X(e,v,t)},x.negated=function(){var e=new H(this);return e.s=-e.s||null,e},x.plus=function(e,r){var n,t=this,i=t.s;if(r=(e=new H(e,r)).s,!i||!r)return new H(NaN);if(i!=r)return e.s=-r,t.minus(e);var o=t.e/f,s=e.e/f,l=t.c,c=e.c;if(!o||!s){if(!l||!c)return new H(i/0);if(!l[0]||!c[0])return c[0]?e:new H(l[0]?t:0*i)}if(o=p(o),s=p(s),l=l.slice(),i=o-s){for(i>0?(s=o,n=c):(i=-i,n=l),n.reverse();i--;n.push(0));n.reverse()}for((i=l.length)-(r=c.length)<0&&(n=c,c=l,l=n,r=i),i=0;r;)i=(l[--r]=l[r]+c[r]+i)/u|0,l[r]=u===l[r]?0:l[r]%u;return i&&(l=[i].concat(l),++s),X(e,l,s)},x.precision=x.sd=function(e,r){var n,t,i,o=this;if(null!=e&&e!==!!e)return d(e,1,h),null==r?r=I:d(r,0,8),Y(new H(o),e,r);if(!(n=o.c))return null;if(t=(i=n.length-1)*f+1,i=n[i]){for(;i%10==0;i/=10,t--);for(i=n[0];i>=10;i/=10,t++);}return e&&o.e+1>t&&(t=o.e+1),t},x.shiftedBy=function(e){return d(e,-9007199254740991,l),this.times('1e'+e)},x.squareRoot=x.sqrt=function(){var e,r,n,t,i,o=this,s=o.c,u=o.s,f=o.e,l=U+4,c=new H('0.5');if(1!==u||!s||!s[0])return new H(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(u=Math.sqrt(+J(o)))||u==1/0?(((r=w(s)).length+f)%2==0&&(r+='0'),u=Math.sqrt(+r),f=p((f+1)/2)-(f<0||f%2),n=new H(r=u==1/0?'5e'+f:(r=u.toExponential()).slice(0,r.indexOf('e')+1)+f)):n=new H(u+''),n.c[0])for((u=(f=n.e)+l)<3&&(u=0);;)if(i=n,n=c.times(i.plus(E(o,i,l,1))),w(i.c).slice(0,u)===(r=w(n.c)).slice(0,u)){if(n.e<f&&--u,'9999'!=(r=r.slice(u-3,u+1))&&(t||'4999'!=r)){+r&&(+r.slice(1)||'5'!=r.charAt(0))||(Y(n,n.e+U+2,1),e=!n.times(n).eq(o));break}if(!t&&(Y(i,i.e+U+2,0),i.times(i).eq(o))){n=i;break}l+=4,u+=4,t=1}return Y(n,n.e+U+1,I,e)},x.toExponential=function(e,r){return null!=e&&(d(e,0,h),e++),V(this,e,r,1)},x.toFixed=function(e,r){return null!=e&&(d(e,0,h),e=e+this.e+1),V(this,e,r)},x.toFormat=function(e,r,n){var t,i=this;if(null==n)null!=e&&r&&'object'==typeof r?(n=r,r=null):e&&'object'==typeof e?(n=e,e=r=null):n=j;else if('object'!=typeof n)throw Error("[BigNumber Error] Argument not an object: "+n);if(t=i.toFixed(e,r),i.c){var o,s=t.split('.'),u=+n.groupSize,f=+n.secondaryGroupSize,l=n.groupSeparator||'',c=s[0],a=s[1],h=i.s<0,p=h?c.slice(1):c,w=p.length;if(f&&(o=u,u=f,f=o,w-=o),u>0&&w>0){for(o=w%u||u,c=p.substr(0,o);o<w;o+=u)c+=l+p.substr(o,u);f>0&&(c+=l+p.slice(o)),h&&(c='-'+c)}t=a?c+(n.decimalSeparator||'')+((f=+n.fractionGroupSize)?a.replace(new RegExp('\\d{'+f+'}\\B','g'),'$&'+(n.fractionGroupSeparator||'')):a):c}return(n.prefix||'')+t+(n.suffix||'')},x.toFraction=function(e){var r,n,t,i,o,s,u,l,a,h,p,m,d=this,N=d.c;if(null!=e&&(!(u=new H(e)).isInteger()&&(u.c||1!==u.s)||u.lt(L)))throw Error("[BigNumber Error] Argument "+(u.isInteger()?'out of range: ':'not an integer: ')+J(u));if(!N)return new H(d);for(r=new H(L),a=n=new H(L),t=l=new H(L),m=w(N),o=r.e=m.length-d.e-1,r.c[0]=c[(s=o%f)<0?f+s:s],e=!e||u.comparedTo(r)>0?o>0?r:a:u,s=G,G=1/0,u=new H(m),l.c[0]=0;h=E(u,r,0,1),1!=(i=n.plus(h.times(t))).comparedTo(e);)n=t,t=i,a=l.plus(h.times(i=a)),l=i,r=u.minus(h.times(i=r)),u=i;return i=E(e.minus(n),t,0,1),l=l.plus(i.times(a)),n=n.plus(i.times(t)),l.s=a.s=d.s,p=E(a,t,o*=2,I).minus(d).abs().comparedTo(E(l,n,o,I).minus(d).abs())<1?[a,t]:[l,n],G=s,p},x.toNumber=function(){return+J(this)},x.toPrecision=function(e,r){return null!=e&&d(e,1,h),V(this,e,r,2)},x.toString=function(e){var r,n=this,t=n.s,i=n.e;return null===i?t?(r='Infinity',t<0&&(r='-'+r)):r='NaN':(null==e?r=i<=T||i>=C?v(w(n.c),i):b(w(n.c),i,'0'):10===e&&z?r=b(w((n=Y(new H(n),U+i+1,I)).c),n.e,'0'):(d(e,2,$.length,'Base'),r=O(b(w(n.c),i,'0'),10,e,t,!0)),t<0&&n.c[0]&&(r='-'+r)),r},x.valueOf=x.toJSON=function(){return J(this)},x._isBigNumber=!0,null!=r&&H.set(r),H})(),r.default=r.BigNumber=r,'function'==typeof define&&define.amd?define((function(){return r})):void 0!==_m&&_m.exports?_m.exports=r:(e||(e='undefined'!=typeof self&&self?self:window),e.BigNumber=r)})(this)}),1059,[]);
|
|
1129
1129
|
__d((function(g,r,_i,a,m,_e,d){
|
|
@@ -1135,7 +1135,7 @@ __d((function(g,r,_i,a,m,_e,d){
|
|
|
1135
1135
|
* http://adamwdraper.github.com/Numeral-js/
|
|
1136
1136
|
*/
|
|
1137
1137
|
var e,t;e=this,t=function(){var e,t,n,i,o,l={},u={},s={currentLocale:'en',zeroFormat:null,nullFormat:null,defaultFormat:'0,0',scalePercentBy100:!0},c={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function f(e,t){this._input=e,this._value=t}return(e=function(n){var i,o,u,s;if(e.isNumeral(n))i=n.value();else if(0===n||void 0===n)i=0;else if(null===n||t.isNaN(n))i=null;else if('string'==typeof n)if(c.zeroFormat&&n===c.zeroFormat)i=0;else if(c.nullFormat&&n===c.nullFormat||!n.replace(/[^0-9]+/g,'').length)i=null;else{for(o in l)if((s='function'==typeof l[o].regexps.unformat?l[o].regexps.unformat():l[o].regexps.unformat)&&n.match(s)){u=l[o].unformat;break}i=(u=u||e._.stringToNumber)(n)}else i=Number(n)||null;return new f(n,i)}).version='2.0.6',e.isNumeral=function(e){return e instanceof f},e._=t={numberToFormat:function(t,n,i){var o,l,s,c,f,h,b,p,v=u[e.options.currentLocale],_=!1,y=!1,F='',x=1e12,w=1e9,B=1e6,N='',M=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,'(')?(_=!0,n=n.replace(/[\(|\)]/g,'')):(e._.includes(n,'+')||e._.includes(n,'-'))&&(h=e._.includes(n,'+')?n.indexOf('+'):t<0?n.indexOf('-'):-1,n=n.replace(/[\+|\-]/g,'')),e._.includes(n,'a')&&(l=!!(l=n.match(/a(k|m|b|t)?/))&&l[1],e._.includes(n,' a')&&(F=' '),n=n.replace(new RegExp(F+'a[kmbt]?'),''),s>=x&&!l||'t'===l?(F+=v.abbreviations.trillion,t/=x):s<x&&s>=w&&!l||'b'===l?(F+=v.abbreviations.billion,t/=w):s<w&&s>=B&&!l||'m'===l?(F+=v.abbreviations.million,t/=B):(s<B&&s>=1e3&&!l||'k'===l)&&(F+=v.abbreviations.thousand,t/=1e3)),e._.includes(n,'[.]')&&(y=!0,n=n.replace('[.]','.')),c=t.toString().split('.')[0],f=n.split('.')[1],b=n.indexOf(','),o=(n.split('.')[0].split(',')[0].match(/0/g)||[]).length,f?(e._.includes(f,'[')?(f=(f=f.replace(']','')).split('['),N=e._.toFixed(t,f[0].length+f[1].length,i,f[1].length)):N=e._.toFixed(t,f.length,i),c=N.split('.')[0],N=e._.includes(N,'.')?v.delimiters.decimal+N.split('.')[1]:'',y&&0===Number(N.slice(1))&&(N='')):c=e._.toFixed(t,0,i),F&&!l&&Number(c)>=1e3&&F!==v.abbreviations.trillion)switch(c=String(Number(c)/1e3),F){case v.abbreviations.thousand:F=v.abbreviations.million;break;case v.abbreviations.million:F=v.abbreviations.billion;break;case v.abbreviations.billion:F=v.abbreviations.trillion}if(e._.includes(c,'-')&&(c=c.slice(1),M=!0),c.length<o)for(var T=o-c.length;T>0;T--)c='0'+c;return b>-1&&(c=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,'$1'+v.delimiters.thousands)),0===n.indexOf('.')&&(c=''),p=c+N+(F||''),_?p=(_&&M?'(':'')+p+(_&&M?')':''):h>=0?p=0===h?(M?'-':'+')+p:p+(M?'-':'+'):M&&(p='-'+p),p},stringToNumber:function(e){var t,n,i,o=u[c.currentLocale],l=e,s={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)n=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,'').length)n=null;else{for(t in n=1,'.'!==o.delimiters.decimal&&(e=e.replace(/\./g,'').replace(o.delimiters.decimal,'.')),s)if(i=new RegExp('[^a-zA-Z]'+o.abbreviations[t]+'(?:\\)|(\\'+o.currency.symbol+')?(?:\\))?)?$'),l.match(i)){n*=Math.pow(10,s[t]);break}n*=(e.split('-').length+Math.min(e.split('(').length-1,e.split(')').length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,''),n*=Number(e)}return n},isNaN:(function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t})((function(e){return'number'==typeof e&&isNaN(e)})),includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError('Array.prototype.reduce called on null or undefined');if('function'!=typeof t)throw new TypeError(t+' is not a function');var n,i=Object(e),o=i.length>>>0,l=0;if(3===arguments.length)n=arguments[2];else{for(;l<o&&!(l in i);)l++;if(l>=o)throw new TypeError('Reduce of empty array with no initial value');n=i[l++]}for(;l<o;l++)l in i&&(n=t(n,i[l],l,i));return n},multiplier:function(e){var t=e.toString().split('.');return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var i=t.multiplier(n);return e>i?e:i}),1)},toFixed:function(e,t,n,i){var o,l,u,s,c=e.toString().split('.'),f=t-(i||0);return o=2===c.length?Math.min(Math.max(c[1].length,f),t):f,u=Math.pow(10,o),s=(n(e+'e+'+o)/u).toFixed(o),i>t-o&&(l=new RegExp('\\.?0{1,'+(i-(t-o))+'}$'),s=s.replace(l,'')),s}},e.options=c,e.formats=l,e.locales=u,e.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},e.localeData=function(e){if(!e)return u[c.currentLocale];if(e=e.toLowerCase(),!u[e])throw new Error('Unknown locale : '+e);return u[e]},e.reset=function(){for(var e in s)c[e]=s[e]},e.zeroFormat=function(e){c.zeroFormat='string'==typeof e?e:null},e.nullFormat=function(e){c.nullFormat='string'==typeof e?e:null},e.defaultFormat=function(e){c.defaultFormat='string'==typeof e?e:'0.0'},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+'s'][t])throw new TypeError(t+' '+e+' already registered.');return this[e+'s'][t]=n,n},e.validate=function(t,n){var i,o,l,u,s,c,f,h;if('string'!=typeof t&&(t+='',console.warn&&console.warn('Numeral.js: Value is not string. It has been co-erced to: ',t)),(t=t.trim()).match(/^\d+$/))return!0;if(''===t)return!1;try{f=e.localeData(n)}catch(t){f=e.localeData(e.locale())}return l=f.currency.symbol,s=f.abbreviations,i=f.delimiters.decimal,o='.'===f.delimiters.thousands?'\\.':f.delimiters.thousands,!(null!==(h=t.match(/^[^\d]+/))&&(t=t.substr(1),h[0]!==l)||null!==(h=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),h[0]!==s.thousand&&h[0]!==s.million&&h[0]!==s.billion&&h[0]!==s.trillion)||(c=new RegExp(o+'{2}'),t.match(/[^\d.,]/g)||(u=t.split(i)).length>2||(u.length<2?!u[0].match(/^\d+.*\d$/)||u[0].match(c):1===u[0].length?!u[0].match(/^\d+$/)||u[0].match(c)||!u[1].match(/^\d+$/):!u[0].match(/^\d+.*\d$/)||u[0].match(c)||!u[1].match(/^\d+$/))))},e.fn=f.prototype={clone:function(){return e(this)},format:function(t,n){var i,o,u,s=this._value,f=t||c.defaultFormat;if(n=n||Math.round,0===s&&null!==c.zeroFormat)o=c.zeroFormat;else if(null===s&&null!==c.nullFormat)o=c.nullFormat;else{for(i in l)if(f.match(l[i].regexps.format)){u=l[i].format;break}o=(u=u||e._.numberToFormat)(s,f,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,i,o){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,i,o){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,i,o){var l=t.correctionFactor(e,n);return Math.round(e*l)*Math.round(n*l)/Math.round(l*l)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,i,o){var l=t.correctionFactor(e,n);return Math.round(e*l)/Math.round(n*l)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register('locale','en',{delimiters:{thousands:',',decimal:'.'},abbreviations:{thousand:'k',million:'m',billion:'b',trillion:'t'},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?'th':1===t?'st':2===t?'nd':3===t?'rd':'th'},currency:{symbol:'$'}}),e.register('format','bps',{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,i){var o,l=e._.includes(n,' BPS')?' ':'';return t*=1e4,n=n.replace(/\s?BPS/,''),o=e._.numberToFormat(t,n,i),e._.includes(o,')')?((o=o.split('')).splice(-1,0,l+'BPS'),o=o.join('')):o=o+l+'BPS',o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),i={base:1024,suffixes:['B','KiB','MiB','GiB','TiB','PiB','EiB','ZiB','YiB']},o='('+(o=(n={base:1e3,suffixes:['B','KB','MB','GB','TB','PB','EB','ZB','YB']}).suffixes.concat(i.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join('|')).replace('B','B(?!PS)')+')',e.register('format','bytes',{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,l){var u,s,c,f=e._.includes(o,'ib')?i:n,h=e._.includes(o,' b')||e._.includes(o,' ib')?' ':'';for(o=o.replace(/\s?i?b/,''),u=0;u<=f.suffixes.length;u++)if(s=Math.pow(f.base,u),c=Math.pow(f.base,u+1),null===t||0===t||t>=s&&t<c){h+=f.suffixes[u],s>0&&(t/=s);break}return e._.numberToFormat(t,o,l)+h},unformat:function(t){var o,l,u=e._.stringToNumber(t);if(u){for(o=n.suffixes.length-1;o>=0;o--){if(e._.includes(t,n.suffixes[o])){l=Math.pow(n.base,o);break}if(e._.includes(t,i.suffixes[o])){l=Math.pow(i.base,o);break}}u*=l||1}return u}}),e.register('format','currency',{regexps:{format:/(\$)/},format:function(t,n,i){var o,l,u=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,''),o=e._.numberToFormat(t,n,i),t>=0?(s.before=s.before.replace(/[\-\(]/,''),s.after=s.after.replace(/[\-\)]/,'')):t<0&&!e._.includes(s.before,'-')&&!e._.includes(s.before,'(')&&(s.before='-'+s.before),l=0;l<s.before.length;l++)switch(s.before[l]){case'$':o=e._.insert(o,u.currency.symbol,l);break;case' ':o=e._.insert(o,' ',l+u.currency.symbol.length-1)}for(l=s.after.length-1;l>=0;l--)switch(s.after[l]){case'$':o=l===s.after.length-1?o+u.currency.symbol:e._.insert(o,u.currency.symbol,-(s.after.length-(1+l)));break;case' ':o=l===s.after.length-1?o+' ':e._.insert(o,' ',-(s.after.length-(1+l)+u.currency.symbol.length-1))}return o}}),e.register('format','exponential',{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,i){var o=('number'!=typeof t||e._.isNaN(t)?'0e+0':t.toExponential()).split('e');return n=n.replace(/e[\+|\-]{1}0/,''),e._.numberToFormat(Number(o[0]),n,i)+'e'+o[1]},unformat:function(t){var n=e._.includes(t,'e+')?t.split('e+'):t.split('e-'),i=Number(n[0]),o=Number(n[1]);return o=e._.includes(t,'e-')?o*=-1:o,e._.reduce([i,Math.pow(10,o)],(function(t,n,i,o){var l=e._.correctionFactor(t,n);return t*l*(n*l)/(l*l)}),1)}}),e.register('format','ordinal',{regexps:{format:/(o)/},format:function(t,n,i){var o=e.locales[e.options.currentLocale],l=e._.includes(n,' o')?' ':'';return n=n.replace(/\s?o/,''),l+=o.ordinal(t),e._.numberToFormat(t,n,i)+l}}),e.register('format','percentage',{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,i){var o,l=e._.includes(n,' %')?' ':'';return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,''),o=e._.numberToFormat(t,n,i),e._.includes(o,')')?((o=o.split('')).splice(-1,0,l+'%'),o=o.join('')):o=o+l+'%',o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register('format','time',{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var i=Math.floor(e/60/60),o=Math.floor((e-60*i*60)/60),l=Math.round(e-60*i*60-60*o);return i+':'+(o<10?'0'+o:o)+':'+(l<10?'0'+l:l)},unformat:function(e){var t=e.split(':'),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},'function'==typeof define&&define.amd?define(t):'object'==typeof m&&m.exports?m.exports=t():e.numeral=t()}),1060,[]);
|
|
1138
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EventBus=e.AppEventType=void 0;var E=r(d[0])(r(d[1])),T=r(d[0])(r(d[2]));e.AppEventType=(function(E){return E.SESSION_EXPIRED="SESSION_EXPIRED",E.CURRENT_ACCOUNT_CHANGE="CURRENT_ACCOUNT_CHANGE",E.WALLET_SNAPSHOT="WALLET_SNAPSHOT",E.WALLET_DELETED="WALLET_DELETED",E.TRANSACTION_RESOLVED="TRANSACTION_RESOLVED",E.TRANSACTION_UPDATED="TRANSACTION_UPDATED",E.TRANSACTION_DELETED="TRANSACTION_DELETED",E.TRANSACTION_HISTORY_LOADED="TRANSACTION_HISTORY_LOADED",E.TRANSACTION_HISTORY_WITH_UNKNOWN_TOKENS_LOADED="TRANSACTION_HISTORY_WITH_UNKNOWN_TOKENS_LOADED",E.DAPP_CONNECTION_UPDATED="DAPP_CONNECTION_UPDATED",E.INJECTED_WALLET_RESPONSE="INJECTED_WALLET_RESPONSE",E})({}),e.EventBus=(0,T.default)((function T(){(0,E.default)(this,T)}),null,[{key:"createListener",value:function(E,T){return r(d[3]).EventRegister.addEventListener(E,T)}},{key:"removeListener",value:function(E){r(d[3]).EventRegister.removeEventListener(E)}},{key:"emit",value:function(E){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;r(d[3]).EventRegister.emit(E,T)}}])}),1061,[20,9,12,1062]);
|
|
1138
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EventBus=e.AppEventType=void 0;var E=r(d[0])(r(d[1])),T=r(d[0])(r(d[2]));e.AppEventType=(function(E){return E.SESSION_EXPIRED="SESSION_EXPIRED",E.CURRENT_ACCOUNT_CHANGE="CURRENT_ACCOUNT_CHANGE",E.WALLET_SNAPSHOT="WALLET_SNAPSHOT",E.WALLET_DELETED="WALLET_DELETED",E.WALLET_PK_NOT_FOUND="WALLET_PK_NOT_FOUND",E.TRANSACTION_RESOLVED="TRANSACTION_RESOLVED",E.TRANSACTION_UPDATED="TRANSACTION_UPDATED",E.TRANSACTION_DELETED="TRANSACTION_DELETED",E.TRANSACTION_HISTORY_LOADED="TRANSACTION_HISTORY_LOADED",E.TRANSACTION_HISTORY_WITH_UNKNOWN_TOKENS_LOADED="TRANSACTION_HISTORY_WITH_UNKNOWN_TOKENS_LOADED",E.DAPP_CONNECTION_UPDATED="DAPP_CONNECTION_UPDATED",E.INJECTED_WALLET_RESPONSE="INJECTED_WALLET_RESPONSE",E})({}),e.EventBus=(0,T.default)((function T(){(0,E.default)(this,T)}),null,[{key:"createListener",value:function(E,T){return r(d[3]).EventRegister.addEventListener(E,T)}},{key:"removeListener",value:function(E){r(d[3]).EventRegister.removeEventListener(E)}},{key:"emit",value:function(E){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;r(d[3]).EventRegister.emit(E,T)}}])}),1061,[20,9,12,1062]);
|
|
1139
1139
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EventRegister=void 0;var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3]));(e.EventRegister=(function(){function u(){(0,n.default)(this,u)}return(0,t.default)(u,null,[{key:"addEventListener",value:function(n,t){if('string'===(0,s.default)(n)&&'function'===(0,s.default)(t)){u._Listeners.count++;var f='l'+u._Listeners.count;return u._Listeners.refs[f]={name:n,callback:t},f}return!1}},{key:"removeEventListener",value:function(n){return'string'===(0,s.default)(n)&&delete u._Listeners.refs[n]}},{key:"removeAllListeners",value:function(){var n=!1;return Object.keys(u._Listeners.refs).forEach((function(t){var s=delete u._Listeners.refs[t];n=n||!s})),!n}},{key:"emitEvent",value:function(n,t){Object.keys(u._Listeners.refs).forEach((function(s){u._Listeners.refs[s]&&n===u._Listeners.refs[s].name&&u._Listeners.refs[s].callback(t)}))}},{key:"on",value:function(n,t){return u.addEventListener(n,t)}},{key:"rm",value:function(n){return u.removeEventListener(n)}},{key:"rmAll",value:function(){return u.removeAllListeners()}},{key:"emit",value:function(n,t){u.emitEvent(n,t)}}])})())._Listeners={count:0,refs:{}}}),1062,[20,9,12,1063]);
|
|
1140
1140
|
__d((function(g,r,i,a,m,e,d){var t,o;t=this,o=function(){'use strict';var t='function'==typeof Promise,o='object'==typeof self?self:g,n='undefined'!=typeof Symbol,p='undefined'!=typeof Map,f='undefined'!=typeof Set,y='undefined'!=typeof WeakMap,u='undefined'!=typeof WeakSet,l='undefined'!=typeof DataView,c=n&&void 0!==Symbol.iterator,w=n&&void 0!==Symbol.toStringTag,b=f&&'function'==typeof Set.prototype.entries,S=p&&'function'==typeof Map.prototype.entries,s=b&&Object.getPrototypeOf((new Set).entries()),j=S&&Object.getPrototypeOf((new Map).entries()),T=c&&'function'==typeof Array.prototype[Symbol.iterator],M=T&&Object.getPrototypeOf([][Symbol.iterator]()),O=c&&'function'==typeof String.prototype[Symbol.iterator],v=O&&Object.getPrototypeOf(''[Symbol.iterator]());return function(n){var c=typeof n;if('object'!==c)return c;if(null===n)return'null';if(n===o)return'global';if(Array.isArray(n)&&(!1===w||!(Symbol.toStringTag in n)))return'Array';if('object'==typeof window&&null!==window){if('object'==typeof window.location&&n===window.location)return'Location';if('object'==typeof window.document&&n===window.document)return'Document';if('object'==typeof window.navigator){if('object'==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return'MimeTypeArray';if('object'==typeof window.navigator.plugins&&n===window.navigator.plugins)return'PluginArray'}if(('function'==typeof window.HTMLElement||'object'==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if('BLOCKQUOTE'===n.tagName)return'HTMLQuoteElement';if('TD'===n.tagName)return'HTMLTableDataCellElement';if('TH'===n.tagName)return'HTMLTableHeaderCellElement'}}var b=w&&n[Symbol.toStringTag];if('string'==typeof b)return b;var S=Object.getPrototypeOf(n);return S===RegExp.prototype?'RegExp':S===Date.prototype?'Date':t&&S===Promise.prototype?'Promise':f&&S===Set.prototype?'Set':p&&S===Map.prototype?'Map':u&&S===WeakSet.prototype?'WeakSet':y&&S===WeakMap.prototype?'WeakMap':l&&S===DataView.prototype?'DataView':p&&S===j?'Map Iterator':f&&S===s?'Set Iterator':T&&S===M?'Array Iterator':O&&S===v?'String Iterator':null===S?'Object':Object.prototype.toString.call(n).slice(8,-1)}},'object'==typeof e&&void 0!==m?m.exports=o():'function'==typeof define&&define.amd?define(o):t.typeDetect=o()}),1063,[]);
|
|
1141
1141
|
__d((function(n,t,r,e,u,i,o){(function(){var t,r='Expected a function',e='__lodash_hash_undefined__',o='__lodash_placeholder__',f=32,a=128,c=1/0,l=9007199254740991,s=NaN,h=4294967295,p=[['ary',a],['bind',1],['bindKey',2],['curry',8],['curryRight',16],['flip',512],['partial',f],['partialRight',64],['rearg',256]],v='[object Arguments]',_='[object Array]',g='[object Boolean]',d='[object Date]',y='[object Error]',x='[object Function]',b='[object GeneratorFunction]',w='[object Map]',m='[object Number]',j='[object Object]',A='[object Promise]',k='[object RegExp]',z='[object Set]',O='[object String]',I='[object Symbol]',R='[object WeakMap]',E='[object ArrayBuffer]',S='[object DataView]',L='[object Float32Array]',W='[object Float64Array]',C='[object Int8Array]',U='[object Int16Array]',B='[object Int32Array]',T='[object Uint8Array]',D='[object Uint8ClampedArray]',$='[object Uint16Array]',M='[object Uint32Array]',F=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,K=RegExp(P.source),V=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nn=/[\\^$.*+?()[\]{}|]/g,tn=RegExp(nn.source),rn=/^\s+/,en=/\s/,un=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,on=/\{\n\/\* \[wrapped with (.+)\] \*/,fn=/,? & /,an=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cn=/[()=,{}\[\]\/\s]/,ln=/\\(\\)?/g,sn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hn=/\w*$/,pn=/^[-+]0x[0-9a-f]+$/i,vn=/^0b[01]+$/i,_n=/^\[object .+?Constructor\]$/,gn=/^0o[0-7]+$/i,dn=/^(?:0|[1-9]\d*)$/,yn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xn=/($^)/,bn=/['\n\r\u2028\u2029\\]/g,wn="[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]",mn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",jn="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",kn="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?"+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",jn,An].join('|')+")[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*"),zn='(?:'+["[\\u2700-\\u27bf]",jn,An].join('|')+')'+kn,On='(?:'+["[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?",mn,jn,An,"[\\ud800-\\udfff]"].join('|')+')',In=RegExp("['\u2019]",'g'),Rn=RegExp(mn,'g'),En=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+On+kn,'g'),Sn=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[wn,"[A-Z\\xc0-\\xd6\\xd8-\\xde]",'$'].join('|')+')',"(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[wn,"[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])",'$'].join('|')+')',"[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?","[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",'\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])','\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])','\\d+',zn].join('|'),'g'),Ln=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Wn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Cn=['Array','Buffer','DataView','Date','Error','Float32Array','Float64Array','Function','Int8Array','Int16Array','Int32Array','Map','Math','Object','Promise','RegExp','Set','String','Symbol','TypeError','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','WeakMap','_','clearTimeout','isFinite','parseInt','setTimeout'],Un=-1,Bn={};Bn[L]=Bn[W]=Bn[C]=Bn[U]=Bn[B]=Bn[T]=Bn[D]=Bn[$]=Bn[M]=!0,Bn[v]=Bn[_]=Bn[E]=Bn[g]=Bn[S]=Bn[d]=Bn[y]=Bn[x]=Bn[w]=Bn[m]=Bn[j]=Bn[k]=Bn[z]=Bn[O]=Bn[R]=!1;var Tn={};Tn[v]=Tn[_]=Tn[E]=Tn[S]=Tn[g]=Tn[d]=Tn[L]=Tn[W]=Tn[C]=Tn[U]=Tn[B]=Tn[w]=Tn[m]=Tn[j]=Tn[k]=Tn[z]=Tn[O]=Tn[I]=Tn[T]=Tn[D]=Tn[$]=Tn[M]=!0,Tn[y]=Tn[x]=Tn[R]=!1;var Dn={'\\':'\\',"'":"'",'\n':'n','\r':'r',"\u2028":'u2028',"\u2029":'u2029'},$n=parseFloat,Mn=parseInt,Fn='object'==typeof n&&n&&n.Object===Object&&n,Nn='object'==typeof self&&self&&self.Object===Object&&self,Zn=Fn||Nn||Function('return this')(),Pn='object'==typeof i&&i&&!i.nodeType&&i,qn=Pn&&'object'==typeof u&&u&&!u.nodeType&&u,Kn=qn&&qn.exports===Pn,Vn=Kn&&Fn.process,Gn=(function(){try{var n=qn&&qn.require&&qn.require('util').types;return n||Vn&&Vn.binding&&Vn.binding('util')}catch(n){}})(),Hn=Gn&&Gn.isArrayBuffer,Jn=Gn&&Gn.isDate,Yn=Gn&&Gn.isMap,Qn=Gn&&Gn.isRegExp,Xn=Gn&&Gn.isSet,nt=Gn&&Gn.isTypedArray;function tt(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function rt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function et(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function ut(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}function it(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function ot(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function ft(n,t){return!!(null==n?0:n.length)&&xt(n,t,0)>-1}function at(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function ct(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function lt(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function st(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function ht(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function pt(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}var vt=jt('length');function _t(n){return n.split('')}function gt(n){return n.match(an)||[]}function dt(n,t,r){var e;return r(n,(function(n,r,u){if(t(n,r,u))return e=r,!1})),e}function yt(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function xt(n,t,r){return t==t?Ht(n,t,r):yt(n,wt,r)}function bt(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function wt(n){return n!=n}function mt(n,t){var r=null==n?0:n.length;return r?Ot(n,t)/r:s}function jt(n){return function(r){return null==r?t:r[n]}}function At(n){return function(r){return null==n?t:n[r]}}function kt(n,t,r,e,u){return u(n,(function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)})),r}function zt(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}function Ot(n,r){for(var e,u=-1,i=n.length;++u<i;){var o=r(n[u]);o!==t&&(e=e===t?o:e+o)}return e}function It(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function Rt(n,t){return ct(t,(function(t){return[t,n[t]]}))}function Et(n){return n?n.slice(0,Xt(n)+1).replace(rn,''):n}function St(n){return function(t){return n(t)}}function Lt(n,t){return ct(t,(function(t){return n[t]}))}function Wt(n,t){return n.has(t)}function Ct(n,t){for(var r=-1,e=n.length;++r<e&&xt(t,n[r],0)>-1;);return r}function Ut(n,t){for(var r=n.length;r--&&xt(t,n[r],0)>-1;);return r}function Bt(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}var Tt=At({'\xc0':'A','\xc1':'A','\xc2':'A','\xc3':'A','\xc4':'A','\xc5':'A','\xe0':'a','\xe1':'a','\xe2':'a','\xe3':'a','\xe4':'a','\xe5':'a','\xc7':'C','\xe7':'c','\xd0':'D','\xf0':'d','\xc8':'E','\xc9':'E','\xca':'E','\xcb':'E','\xe8':'e','\xe9':'e','\xea':'e','\xeb':'e','\xcc':'I','\xcd':'I','\xce':'I','\xcf':'I','\xec':'i','\xed':'i','\xee':'i','\xef':'i','\xd1':'N','\xf1':'n','\xd2':'O','\xd3':'O','\xd4':'O','\xd5':'O','\xd6':'O','\xd8':'O','\xf2':'o','\xf3':'o','\xf4':'o','\xf5':'o','\xf6':'o','\xf8':'o','\xd9':'U','\xda':'U','\xdb':'U','\xdc':'U','\xf9':'u','\xfa':'u','\xfb':'u','\xfc':'u','\xdd':'Y','\xfd':'y','\xff':'y','\xc6':'Ae','\xe6':'ae','\xde':'Th','\xfe':'th','\xdf':'ss',"\u0100":'A',"\u0102":'A',"\u0104":'A',"\u0101":'a',"\u0103":'a',"\u0105":'a',"\u0106":'C',"\u0108":'C',"\u010a":'C',"\u010c":'C',"\u0107":'c',"\u0109":'c',"\u010b":'c',"\u010d":'c',"\u010e":'D',"\u0110":'D',"\u010f":'d',"\u0111":'d',"\u0112":'E',"\u0114":'E',"\u0116":'E',"\u0118":'E',"\u011a":'E',"\u0113":'e',"\u0115":'e',"\u0117":'e',"\u0119":'e',"\u011b":'e',"\u011c":'G',"\u011e":'G',"\u0120":'G',"\u0122":'G',"\u011d":'g',"\u011f":'g',"\u0121":'g',"\u0123":'g',"\u0124":'H',"\u0126":'H',"\u0125":'h',"\u0127":'h',"\u0128":'I',"\u012a":'I',"\u012c":'I',"\u012e":'I',"\u0130":'I',"\u0129":'i',"\u012b":'i',"\u012d":'i',"\u012f":'i',"\u0131":'i',"\u0134":'J',"\u0135":'j',"\u0136":'K',"\u0137":'k',"\u0138":'k',"\u0139":'L',"\u013b":'L',"\u013d":'L',"\u013f":'L',"\u0141":'L',"\u013a":'l',"\u013c":'l',"\u013e":'l',"\u0140":'l',"\u0142":'l',"\u0143":'N',"\u0145":'N',"\u0147":'N',"\u014a":'N',"\u0144":'n',"\u0146":'n',"\u0148":'n',"\u014b":'n',"\u014c":'O',"\u014e":'O',"\u0150":'O',"\u014d":'o',"\u014f":'o',"\u0151":'o',"\u0154":'R',"\u0156":'R',"\u0158":'R',"\u0155":'r',"\u0157":'r',"\u0159":'r',"\u015a":'S',"\u015c":'S',"\u015e":'S',"\u0160":'S',"\u015b":'s',"\u015d":'s',"\u015f":'s',"\u0161":'s',"\u0162":'T',"\u0164":'T',"\u0166":'T',"\u0163":'t',"\u0165":'t',"\u0167":'t',"\u0168":'U',"\u016a":'U',"\u016c":'U',"\u016e":'U',"\u0170":'U',"\u0172":'U',"\u0169":'u',"\u016b":'u',"\u016d":'u',"\u016f":'u',"\u0171":'u',"\u0173":'u',"\u0174":'W',"\u0175":'w',"\u0176":'Y',"\u0177":'y',"\u0178":'Y',"\u0179":'Z',"\u017b":'Z',"\u017d":'Z',"\u017a":'z',"\u017c":'z',"\u017e":'z',"\u0132":'IJ',"\u0133":'ij',"\u0152":'Oe',"\u0153":'oe',"\u0149":"'n","\u017f":'s'}),Dt=At({'&':'&','<':'<','>':'>','"':'"',"'":'''});function $t(n){return'\\'+Dn[n]}function Mt(n,r){return null==n?t:n[r]}function Ft(n){return Ln.test(n)}function Nt(n){return Wn.test(n)}function Zt(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}function Pt(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function qt(n,t){return function(r){return n(t(r))}}function Kt(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var f=n[r];f!==t&&f!==o||(n[r]=o,i[u++]=r)}return i}function Vt(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=n})),r}function Gt(n){var t=-1,r=Array(n.size);return n.forEach((function(n){r[++t]=[n,n]})),r}function Ht(n,t,r){for(var e=r-1,u=n.length;++e<u;)if(n[e]===t)return e;return-1}function Jt(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}function Yt(n){return Ft(n)?tr(n):vt(n)}function Qt(n){return Ft(n)?rr(n):_t(n)}function Xt(n){for(var t=n.length;t--&&en.test(n.charAt(t)););return t}var nr=At({'&':'&','<':'<','>':'>','"':'"',''':"'"});function tr(n){for(var t=En.lastIndex=0;En.test(n);)++t;return t}function rr(n){return n.match(En)||[]}function er(n){return n.match(Sn)||[]}var ur=(function n(u){var i,en=(u=null==u?Zn:ur.defaults(Zn.Object(),u,ur.pick(Zn,Cn))).Array,an=u.Date,wn=u.Error,mn=u.Function,jn=u.Math,An=u.Object,kn=u.RegExp,zn=u.String,On=u.TypeError,En=en.prototype,Sn=mn.prototype,Ln=An.prototype,Wn=u['__core-js_shared__'],Dn=Sn.toString,Fn=Ln.hasOwnProperty,Nn=0,Pn=(i=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||''))?'Symbol(src)_1.'+i:'',qn=Ln.toString,Vn=Dn.call(An),Gn=Zn._,vt=kn('^'+Dn.call(Fn).replace(nn,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$'),_t=Kn?u.Buffer:t,At=u.Symbol,Ht=u.Uint8Array,tr=_t?_t.allocUnsafe:t,rr=qt(An.getPrototypeOf,An),ir=An.create,or=Ln.propertyIsEnumerable,fr=En.splice,ar=At?At.isConcatSpreadable:t,cr=At?At.iterator:t,lr=At?At.toStringTag:t,sr=(function(){try{var n=Ui(An,'defineProperty');return n({},'',{}),n}catch(n){}})(),hr=u.clearTimeout!==Zn.clearTimeout&&u.clearTimeout,pr=an&&an.now!==Zn.Date.now&&an.now,vr=u.setTimeout!==Zn.setTimeout&&u.setTimeout,_r=jn.ceil,gr=jn.floor,dr=An.getOwnPropertySymbols,yr=_t?_t.isBuffer:t,xr=u.isFinite,br=En.join,wr=qt(An.keys,An),mr=jn.max,jr=jn.min,Ar=an.now,kr=u.parseInt,zr=jn.random,Or=En.reverse,Ir=Ui(u,'DataView'),Rr=Ui(u,'Map'),Er=Ui(u,'Promise'),Sr=Ui(u,'Set'),Lr=Ui(u,'WeakMap'),Wr=Ui(An,'create'),Cr=Lr&&new Lr,Ur={},Br=yo(Ir),Tr=yo(Rr),Dr=yo(Er),$r=yo(Sr),Mr=yo(Lr),Fr=At?At.prototype:t,Nr=Fr?Fr.valueOf:t,Zr=Fr?Fr.toString:t;function Pr(n){if(Tf(n)&&!zf(n)&&!(n instanceof Gr)){if(n instanceof Vr)return n;if(Fn.call(n,'__wrapped__'))return bo(n)}return new Vr(n)}var qr=(function(){function n(){}return function(r){if(!Bf(r))return{};if(ir)return ir(r);n.prototype=r;var e=new n;return n.prototype=t,e}})();function Kr(){}function Vr(n,r){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=t}function Gr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Hr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Jr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Yr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Qr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Yr;++t<r;)this.add(n[t])}function Xr(n){var t=this.__data__=new Jr(n);this.size=t.size}function ne(n,t){var r=zf(n),e=!r&&kf(n),u=!r&&!e&&Ef(n),i=!r&&!e&&!u&&qf(n),o=r||e||u||i,f=o?It(n.length,zn):[],a=f.length;for(var c in n)!t&&!Fn.call(n,c)||o&&('length'==c||u&&('offset'==c||'parent'==c)||i&&('buffer'==c||'byteLength'==c||'byteOffset'==c)||Gi(c,a))||f.push(c);return f}function te(n){var r=n.length;return r?n[fu(0,r-1)]:t}function re(n,t){return vo(Ku(n),he(t,0,n.length))}function ee(n){return vo(Ku(n))}function ue(n,r,e){(e!==t&&!mf(n[r],e)||e===t&&!(r in n))&&le(n,r,e)}function ie(n,r,e){var u=n[r];Fn.call(n,r)&&mf(u,e)&&(e!==t||r in n)||le(n,r,e)}function oe(n,t){for(var r=n.length;r--;)if(mf(n[r][0],t))return r;return-1}function fe(n,t,r,e){return ye(n,(function(n,u,i){t(e,n,r(n),i)})),e}function ae(n,t){return n&&Vu(t,pa(t),n)}function ce(n,t){return n&&Vu(t,va(t),n)}function le(n,t,r){'__proto__'==t&&sr?sr(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function se(n,r){for(var e=-1,u=r.length,i=en(u),o=null==n;++e<u;)i[e]=o?t:aa(n,r[e]);return i}function he(n,r,e){return n==n&&(e!==t&&(n=n<=e?n:e),r!==t&&(n=n>=r?n:r)),n}function pe(n,r,e,u,i,o){var f,a=1&r,c=2&r,l=4&r;if(e&&(f=i?e(n,u,i,o):e(n)),f!==t)return f;if(!Bf(n))return n;var s=zf(n);if(s){if(f=Zi(n),!a)return Ku(n,f)}else{var h=$i(n),p=h==x||h==b;if(Ef(n))return Tu(n,a);if(h==j||h==v||p&&!i){if(f=c||p?{}:Pi(n),!a)return c?Hu(n,ce(f,n)):Gu(n,ae(f,n))}else{if(!Tn[h])return i?n:{};f=qi(n,h,a)}}o||(o=new Xr);var _=o.get(n);if(_)return _;o.set(n,f),Nf(n)?n.forEach((function(t){f.add(pe(t,r,e,t,n,o))})):Df(n)&&n.forEach((function(t,u){f.set(u,pe(t,r,e,u,n,o))}));var g=s?t:(l?c?Ii:Oi:c?va:pa)(n);return et(g||n,(function(t,u){g&&(t=n[u=t]),ie(f,u,pe(t,r,e,u,n,o))})),f}function ve(n){var t=pa(n);return function(r){return _e(r,n,t)}}function _e(n,r,e){var u=e.length;if(null==n)return!u;for(n=An(n);u--;){var i=e[u],o=r[i],f=n[i];if(f===t&&!(i in n)||!o(f))return!1}return!0}function ge(n,e,u){if('function'!=typeof n)throw new On(r);return lo((function(){n.apply(t,u)}),e)}function de(n,t,r,e){var u=-1,i=ft,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=ct(t,St(r))),e?(i=at,o=!1):t.length>=200&&(i=Wt,o=!1,t=new Qr(t));n:for(;++u<f;){var l=n[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,o&&s==s){for(var h=c;h--;)if(t[h]===s)continue n;a.push(l)}else i(t,s,e)||a.push(l)}return a}Pr.templateSettings={escape:G,evaluate:H,interpolate:J,variable:'',imports:{_:Pr}},Pr.prototype=Kr.prototype,Pr.prototype.constructor=Pr,Vr.prototype=qr(Kr.prototype),Vr.prototype.constructor=Vr,Gr.prototype=qr(Kr.prototype),Gr.prototype.constructor=Gr,Hr.prototype.clear=function(){this.__data__=Wr?Wr(null):{},this.size=0},Hr.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Hr.prototype.get=function(n){var r=this.__data__;if(Wr){var u=r[n];return u===e?t:u}return Fn.call(r,n)?r[n]:t},Hr.prototype.has=function(n){var r=this.__data__;return Wr?r[n]!==t:Fn.call(r,n)},Hr.prototype.set=function(n,r){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=Wr&&r===t?e:r,this},Jr.prototype.clear=function(){this.__data__=[],this.size=0},Jr.prototype.delete=function(n){var t=this.__data__,r=oe(t,n);return!(r<0)&&(r==t.length-1?t.pop():fr.call(t,r,1),--this.size,!0)},Jr.prototype.get=function(n){var r=this.__data__,e=oe(r,n);return e<0?t:r[e][1]},Jr.prototype.has=function(n){return oe(this.__data__,n)>-1},Jr.prototype.set=function(n,t){var r=this.__data__,e=oe(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Yr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(Rr||Jr),string:new Hr}},Yr.prototype.delete=function(n){var t=Wi(this,n).delete(n);return this.size-=t?1:0,t},Yr.prototype.get=function(n){return Wi(this,n).get(n)},Yr.prototype.has=function(n){return Wi(this,n).has(n)},Yr.prototype.set=function(n,t){var r=Wi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Qr.prototype.add=Qr.prototype.push=function(n){return this.__data__.set(n,e),this},Qr.prototype.has=function(n){return this.__data__.has(n)},Xr.prototype.clear=function(){this.__data__=new Jr,this.size=0},Xr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Xr.prototype.get=function(n){return this.__data__.get(n)},Xr.prototype.has=function(n){return this.__data__.has(n)},Xr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Jr){var e=r.__data__;if(!Rr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(n,t),this.size=r.size,this};var ye=Qu(Oe),xe=Qu(Ie,!0);function be(n,t){var r=!0;return ye(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function we(n,r,e){for(var u=-1,i=n.length;++u<i;){var o=n[u],f=r(o);if(null!=f&&(a===t?f==f&&!Pf(f):e(f,a)))var a=f,c=o}return c}function me(n,r,e,u){var i=n.length;for((e=Jf(e))<0&&(e=-e>i?0:i+e),(u=u===t||u>i?i:Jf(u))<0&&(u+=i),u=e>u?0:Yf(u);e<u;)n[e++]=r;return n}function je(n,t){var r=[];return ye(n,(function(n,e,u){t(n,e,u)&&r.push(n)})),r}function Ae(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=Vi),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?Ae(f,t-1,r,e,u):lt(u,f):e||(u[u.length]=f)}return u}var ke=Xu(),ze=Xu(!0);function Oe(n,t){return n&&ke(n,t,pa)}function Ie(n,t){return n&&ze(n,t,pa)}function Re(n,t){return ot(t,(function(t){return Wf(n[t])}))}function Ee(n,r){for(var e=0,u=(r=Wu(r,n)).length;null!=n&&e<u;)n=n[go(r[e++])];return e&&e==u?n:t}function Se(n,t,r){var e=t(n);return zf(n)?e:lt(e,r(n))}function Le(n){return null==n?n===t?"[object Undefined]":"[object Null]":lr&&lr in An(n)?Bi(n):uo(n)}function We(n,t){return n>t}function Ce(n,t){return null!=n&&Fn.call(n,t)}function Ue(n,t){return null!=n&&t in An(n)}function Be(n,t,r){return n>=jr(t,r)&&n<mr(t,r)}function Te(n,r,e){for(var u=e?at:ft,i=n[0].length,o=n.length,f=o,a=en(o),c=1/0,l=[];f--;){var s=n[f];f&&r&&(s=ct(s,St(r))),c=jr(s.length,c),a[f]=!e&&(r||i>=120&&s.length>=120)?new Qr(f&&s):t}s=n[0];var h=-1,p=a[0];n:for(;++h<i&&l.length<c;){var v=s[h],_=r?r(v):v;if(v=e||0!==v?v:0,!(p?Wt(p,_):u(l,_,e))){for(f=o;--f;){var g=a[f];if(!(g?Wt(g,_):u(n[f],_,e)))continue n}p&&p.push(_),l.push(v)}}return l}function De(n,t,r,e){return Oe(n,(function(n,u,i){t(e,r(n),u,i)})),e}function $e(n,r,e){var u=null==(n=oo(n,r=Wu(r,n)))?n:n[go(So(r))];return null==u?t:tt(u,n,e)}function Me(n){return Tf(n)&&Le(n)==v}function Fe(n,t,r,e,u){return n===t||(null==n||null==t||!Tf(n)&&!Tf(t)?n!=n&&t!=t:Ne(n,t,r,e,Fe,u))}function Ne(n,t,r,e,u,i){var o=zf(n),f=zf(t),a=o?_:$i(n),c=f?_:$i(t),l=(a=a==v?j:a)==j,s=(c=c==v?j:c)==j,h=a==c;if(h&&Ef(n)){if(!Ef(t))return!1;o=!0,l=!1}if(h&&!l)return i||(i=new Xr),o||qf(n)?ji(n,t,r,e,u,i):Ai(n,t,a,r,e,u,i);if(!(1&r)){var p=l&&Fn.call(n,'__wrapped__'),g=s&&Fn.call(t,'__wrapped__');if(p||g){var d=p?n.value():n,y=g?t.value():t;return i||(i=new Xr),u(d,y,r,e,i)}}return!!h&&(i||(i=new Xr),ki(n,t,r,e,u,i))}function Ze(n,r,e,u){var i=e.length,o=i,f=!u;if(null==n)return!o;for(n=An(n);i--;){var a=e[i];if(f&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++i<o;){var c=(a=e[i])[0],l=n[c],s=a[1];if(f&&a[2]){if(l===t&&!(c in n))return!1}else{var h=new Xr;if(u)var p=u(l,s,c,n,r,h);if(!(p===t?Fe(s,l,3,u,h):p))return!1}}return!0}function Pe(n){return!(!Bf(n)||(t=n,Pn&&Pn in t))&&(Wf(n)?vt:_n).test(yo(n));var t}function qe(n){return'function'==typeof n?n:null==n?$a:'object'==typeof n?zf(n)?Ye(n[0],n[1]):Je(n):Ga(n)}function Ke(n){if(!Xi(n))return wr(n);var t=[];for(var r in An(n))Fn.call(n,r)&&'constructor'!=r&&t.push(r);return t}function Ve(n){if(!Bf(n))return eo(n);var t=Xi(n),r=[];for(var e in n)('constructor'!=e||!t&&Fn.call(n,e))&&r.push(e);return r}function Ge(n,t){return n<t}function He(n,t){var r=-1,e=If(n)?en(n.length):[];return ye(n,(function(n,u,i){e[++r]=t(n,u,i)})),e}function Je(n){var t=Ci(n);return 1==t.length&&t[0][2]?to(t[0][0],t[0][1]):function(r){return r===n||Ze(r,n,t)}}function Ye(n,r){return Ji(n)&&no(r)?to(go(n),r):function(e){var u=aa(e,n);return u===t&&u===r?ca(e,n):Fe(r,u,3)}}function Qe(n,r,e,u,i){n!==r&&ke(r,(function(o,f){if(i||(i=new Xr),Bf(o))Xe(n,r,f,e,Qe,u,i);else{var a=u?u(ao(n,f),o,f+'',n,r,i):t;a===t&&(a=o),ue(n,f,a)}}),va)}function Xe(n,r,e,u,i,o,f){var a=ao(n,e),c=ao(r,e),l=f.get(c);if(l)ue(n,e,l);else{var s=o?o(a,c,e+'',n,r,f):t,h=s===t;if(h){var p=zf(c),v=!p&&Ef(c),_=!p&&!v&&qf(c);s=c,p||v||_?zf(a)?s=a:Rf(a)?s=Ku(a):v?(h=!1,s=Tu(c,!0)):_?(h=!1,s=Fu(c,!0)):s=[]:Mf(c)||kf(c)?(s=a,kf(a)?s=Xf(a):Bf(a)&&!Wf(a)||(s=Pi(c))):h=!1}h&&(f.set(c,s),i(s,c,u,o,f),f.delete(c)),ue(n,e,s)}}function nu(n,r){var e=n.length;if(e)return Gi(r+=r<0?e:0,e)?n[r]:t}function tu(n,t,r){t=t.length?ct(t,(function(n){return zf(n)?function(t){return Ee(t,1===n.length?n[0]:n)}:n})):[$a];var e=-1;t=ct(t,St(Li()));var u=He(n,(function(n,r,u){var i=ct(t,(function(t){return t(n)}));return{criteria:i,index:++e,value:n}}));return zt(u,(function(n,t){return Zu(n,t,r)}))}function ru(n,t){return eu(n,t,(function(t,r){return ca(n,r)}))}function eu(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=Ee(n,o);r(f,o)&&pu(i,Wu(o,n),f)}return i}function uu(n){return function(t){return Ee(t,n)}}function iu(n,t,r,e){var u=e?bt:xt,i=-1,o=t.length,f=n;for(n===t&&(t=Ku(t)),r&&(f=ct(n,St(r)));++i<o;)for(var a=0,c=t[i],l=r?r(c):c;(a=u(f,l,a,e))>-1;)f!==n&&fr.call(f,a,1),fr.call(n,a,1);return n}function ou(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;Gi(u)?fr.call(n,u,1):ku(n,u)}}return n}function fu(n,t){return n+gr(zr()*(t-n+1))}function au(n,t,r,e){for(var u=-1,i=mr(_r((t-n)/(r||1)),0),o=en(i);i--;)o[e?i:++u]=n,n+=r;return o}function cu(n,t){var r='';if(!n||t<1||t>l)return r;do{t%2&&(r+=n),(t=gr(t/2))&&(n+=n)}while(t);return r}function lu(n,t){return so(io(n,t,$a),n+'')}function su(n){return te(ma(n))}function hu(n,t){var r=ma(n);return vo(r,he(t,0,r.length))}function pu(n,r,e,u){if(!Bf(n))return n;for(var i=-1,o=(r=Wu(r,n)).length,f=o-1,a=n;null!=a&&++i<o;){var c=go(r[i]),l=e;if('__proto__'===c||'constructor'===c||'prototype'===c)return n;if(i!=f){var s=a[c];(l=u?u(s,c,a):t)===t&&(l=Bf(s)?s:Gi(r[i+1])?[]:{})}ie(a,c,l),a=a[c]}return n}var vu=Cr?function(n,t){return Cr.set(n,t),n}:$a,_u=sr?function(n,t){return sr(n,'toString',{configurable:!0,enumerable:!1,value:Ba(t),writable:!0})}:$a;function gu(n){return vo(ma(n))}function du(n,t,r){var e=-1,u=n.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=en(u);++e<u;)i[e]=n[e+t];return i}function yu(n,t){var r;return ye(n,(function(n,e,u){return!(r=t(n,e,u))})),!!r}function xu(n,t,r){var e=0,u=null==n?e:n.length;if('number'==typeof t&&t==t&&u<=2147483647){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!Pf(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return bu(n,t,$a,r)}function bu(n,r,e,u){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var f=(r=e(r))!=r,a=null===r,c=Pf(r),l=r===t;i<o;){var s=gr((i+o)/2),h=e(n[s]),p=h!==t,v=null===h,_=h==h,g=Pf(h);if(f)var d=u||_;else d=l?_&&(u||p):a?_&&p&&(u||!v):c?_&&p&&!v&&(u||!g):!v&&!g&&(u?h<=r:h<r);d?i=s+1:o=s}return jr(o,4294967294)}function wu(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!mf(f,a)){var a=f;i[u++]=0===o?0:o}}return i}function mu(n){return'number'==typeof n?n:Pf(n)?s:+n}function ju(n){if('string'==typeof n)return n;if(zf(n))return ct(n,ju)+'';if(Pf(n))return Zr?Zr.call(n):'';var t=n+'';return'0'==t&&1/n==-1/0?'-0':t}function Au(n,t,r){var e=-1,u=ft,i=n.length,o=!0,f=[],a=f;if(r)o=!1,u=at;else if(i>=200){var c=t?null:di(n);if(c)return Vt(c);o=!1,u=Wt,a=new Qr}else a=t?[]:f;n:for(;++e<i;){var l=n[e],s=t?t(l):l;if(l=r||0!==l?l:0,o&&s==s){for(var h=a.length;h--;)if(a[h]===s)continue n;t&&a.push(s),f.push(l)}else u(a,s,r)||(a!==f&&a.push(s),f.push(l))}return f}function ku(n,t){return null==(n=oo(n,t=Wu(t,n)))||delete n[go(So(t))]}function zu(n,t,r,e){return pu(n,t,r(Ee(n,t)),e)}function Ou(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?du(n,e?0:i,e?i+1:u):du(n,e?i+1:0,e?u:i)}function Iu(n,t){var r=n;return r instanceof Gr&&(r=r.value()),st(t,(function(n,t){return t.func.apply(t.thisArg,lt([n],t.args))}),r)}function Ru(n,t,r){var e=n.length;if(e<2)return e?Au(n[0]):[];for(var u=-1,i=en(e);++u<e;)for(var o=n[u],f=-1;++f<e;)f!=u&&(i[u]=de(i[u]||o,n[f],t,r));return Au(Ae(i,1),t,r)}function Eu(n,r,e){for(var u=-1,i=n.length,o=r.length,f={};++u<i;){var a=u<o?r[u]:t;e(f,n[u],a)}return f}function Su(n){return Rf(n)?n:[]}function Lu(n){return'function'==typeof n?n:$a}function Wu(n,t){return zf(n)?n:Ji(n,t)?[n]:_o(na(n))}var Cu=lu;function Uu(n,r,e){var u=n.length;return e=e===t?u:e,!r&&e>=u?n:du(n,r,e)}var Bu=hr||function(n){return Zn.clearTimeout(n)};function Tu(n,t){if(t)return n.slice();var r=n.length,e=tr?tr(r):new n.constructor(r);return n.copy(e),e}function Du(n){var t=new n.constructor(n.byteLength);return new Ht(t).set(new Ht(n)),t}function $u(n,t){var r=t?Du(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}function Mu(n){var t=new n.constructor(n.source,hn.exec(n));return t.lastIndex=n.lastIndex,t}function Fu(n,t){var r=t?Du(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Nu(n,r){if(n!==r){var e=n!==t,u=null===n,i=n==n,o=Pf(n),f=r!==t,a=null===r,c=r==r,l=Pf(r);if(!a&&!l&&!o&&n>r||o&&f&&c&&!a&&!l||u&&f&&c||!e&&c||!i)return 1;if(!u&&!o&&!l&&n<r||l&&e&&i&&!u&&!o||a&&e&&i||!f&&i||!c)return-1}return 0}function Zu(n,t,r){for(var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;++e<o;){var a=Nu(u[e],i[e]);if(a)return e>=f?a:a*('desc'==r[e]?-1:1)}return n.index-t.index}function Pu(n,t,r,e){for(var u=-1,i=n.length,o=r.length,f=-1,a=t.length,c=mr(i-o,0),l=en(a+c),s=!e;++f<a;)l[f]=t[f];for(;++u<o;)(s||u<i)&&(l[r[u]]=n[u]);for(;c--;)l[f++]=n[u++];return l}function qu(n,t,r,e){for(var u=-1,i=n.length,o=-1,f=r.length,a=-1,c=t.length,l=mr(i-f,0),s=en(l+c),h=!e;++u<l;)s[u]=n[u];for(var p=u;++a<c;)s[p+a]=t[a];for(;++o<f;)(h||u<i)&&(s[p+r[o]]=n[u++]);return s}function Ku(n,t){var r=-1,e=n.length;for(t||(t=en(e));++r<e;)t[r]=n[r];return t}function Vu(n,r,e,u){var i=!e;e||(e={});for(var o=-1,f=r.length;++o<f;){var a=r[o],c=u?u(e[a],n[a],a,e,n):t;c===t&&(c=n[a]),i?le(e,a,c):ie(e,a,c)}return e}function Gu(n,t){return Vu(n,Ti(n),t)}function Hu(n,t){return Vu(n,Di(n),t)}function Ju(n,t){return function(r,e){var u=zf(r)?rt:fe,i=t?t():{};return u(r,n,Li(e,2),i)}}function Yu(n){return lu((function(r,e){var u=-1,i=e.length,o=i>1?e[i-1]:t,f=i>2?e[2]:t;for(o=n.length>3&&'function'==typeof o?(i--,o):t,f&&Hi(e[0],e[1],f)&&(o=i<3?t:o,i=1),r=An(r);++u<i;){var a=e[u];a&&n(r,a,u,o)}return r}))}function Qu(n,t){return function(r,e){if(null==r)return r;if(!If(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=An(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function Xu(n){return function(t,r,e){for(var u=-1,i=An(t),o=e(t),f=o.length;f--;){var a=o[n?f:++u];if(!1===r(i[a],a,i))break}return t}}function ni(n,t,r){var e=1&t,u=ei(n);return function t(){return(this&&this!==Zn&&this instanceof t?u:n).apply(e?r:this,arguments)}}function ti(n){return function(r){var e=Ft(r=na(r))?Qt(r):t,u=e?e[0]:r.charAt(0),i=e?Uu(e,1).join(''):r.slice(1);return u[n]()+i}}function ri(n){return function(t){return st(Wa(ka(t).replace(In,'')),n,'')}}function ei(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=qr(n.prototype),e=n.apply(r,t);return Bf(e)?e:r}}function ui(n,r,e){var u=ei(n);return function i(){for(var o=arguments.length,f=en(o),a=o,c=Si(i);a--;)f[a]=arguments[a];var l=o<3&&f[0]!==c&&f[o-1]!==c?[]:Kt(f,c);return(o-=l.length)<e?_i(n,r,fi,i.placeholder,t,f,l,t,t,e-o):tt(this&&this!==Zn&&this instanceof i?u:n,this,f)}}function ii(n){return function(r,e,u){var i=An(r);if(!If(r)){var o=Li(e,3);r=pa(r),e=function(n){return o(i[n],n,i)}}var f=n(r,e,u);return f>-1?i[o?r[f]:f]:t}}function oi(n){return zi((function(e){var u=e.length,i=u,o=Vr.prototype.thru;for(n&&e.reverse();i--;){var f=e[i];if('function'!=typeof f)throw new On(r);if(o&&!a&&'wrapper'==Ei(f))var a=new Vr([],!0)}for(i=a?i:u;++i<u;){var c=Ei(f=e[i]),l='wrapper'==c?Ri(f):t;a=l&&Yi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Ei(l[0])].apply(a,l[3]):1==f.length&&Yi(f)?a[c]():a.thru(f)}return function(){var n=arguments,t=n[0];if(a&&1==n.length&&zf(t))return a.plant(t).value();for(var r=0,i=u?e[r].apply(this,n):t;++r<u;)i=e[r].call(this,i);return i}}))}function fi(n,r,e,u,i,o,f,c,l,s){var h=r&a,p=1&r,v=2&r,_=24&r,g=512&r,d=v?t:ei(n);return function t(){for(var a=arguments.length,y=en(a),x=a;x--;)y[x]=arguments[x];if(_)var b=Si(t),w=Bt(y,b);if(u&&(y=Pu(y,u,i,_)),o&&(y=qu(y,o,f,_)),a-=w,_&&a<s){var m=Kt(y,b);return _i(n,r,fi,t.placeholder,e,y,m,c,l,s-a)}var j=p?e:this,A=v?j[n]:n;return a=y.length,c?y=fo(y,c):g&&a>1&&y.reverse(),h&&l<a&&(y.length=l),this&&this!==Zn&&this instanceof t&&(A=d||ei(A)),A.apply(j,y)}}function ai(n,t){return function(r,e){return De(r,n,t(e),{})}}function ci(n,r){return function(e,u){var i;if(e===t&&u===t)return r;if(e!==t&&(i=e),u!==t){if(i===t)return u;'string'==typeof e||'string'==typeof u?(e=ju(e),u=ju(u)):(e=mu(e),u=mu(u)),i=n(e,u)}return i}}function li(n){return zi((function(t){return t=ct(t,St(Li())),lu((function(r){var e=this;return n(t,(function(n){return tt(n,e,r)}))}))}))}function si(n,r){var e=(r=r===t?' ':ju(r)).length;if(e<2)return e?cu(r,n):r;var u=cu(r,_r(n/Yt(r)));return Ft(r)?Uu(Qt(u),0,n).join(''):u.slice(0,n)}function hi(n,t,r,e){var u=1&t,i=ei(n);return function t(){for(var o=-1,f=arguments.length,a=-1,c=e.length,l=en(c+f),s=this&&this!==Zn&&this instanceof t?i:n;++a<c;)l[a]=e[a];for(;f--;)l[a++]=arguments[++o];return tt(s,u?r:this,l)}}function pi(n){return function(r,e,u){return u&&'number'!=typeof u&&Hi(r,e,u)&&(e=u=t),r=Hf(r),e===t?(e=r,r=0):e=Hf(e),au(r,e,u=u===t?r<e?1:-1:Hf(u),n)}}function vi(n){return function(t,r){return'string'==typeof t&&'string'==typeof r||(t=Qf(t),r=Qf(r)),n(t,r)}}function _i(n,r,e,u,i,o,a,c,l,s){var h=8&r;r|=h?f:64,4&(r&=~(h?64:f))||(r&=-4);var p=[n,r,i,h?o:t,h?a:t,h?t:o,h?t:a,c,l,s],v=e.apply(t,p);return Yi(n)&&co(v,p),v.placeholder=u,ho(v,n,r)}function gi(n){var t=jn[n];return function(n,r){if(n=Qf(n),(r=null==r?0:jr(Jf(r),292))&&xr(n)){var e=(na(n)+'e').split('e');return+((e=(na(t(e[0]+'e'+(+e[1]+r)))+'e').split('e'))[0]+'e'+(+e[1]-r))}return t(n)}}var di=Sr&&1/Vt(new Sr([,-0]))[1]==c?function(n){return new Sr(n)}:Pa;function yi(n){return function(t){var r=$i(t);return r==w?Pt(t):r==z?Gt(t):Rt(t,n(t))}}function xi(n,e,u,i,o,a,c,l){var s=2&e;if(!s&&'function'!=typeof n)throw new On(r);var h=i?i.length:0;if(h||(e&=-97,i=o=t),c=c===t?c:mr(Jf(c),0),l=l===t?l:Jf(l),h-=o?o.length:0,64&e){var p=i,v=o;i=o=t}var _=s?t:Ri(n),g=[n,e,u,i,o,p,v,a,c,l];if(_&&ro(g,_),n=g[0],e=g[1],u=g[2],i=g[3],o=g[4],!(l=g[9]=g[9]===t?s?0:n.length:mr(g[9]-h,0))&&24&e&&(e&=-25),e&&1!=e)d=8==e||16==e?ui(n,e,l):e!=f&&33!=e||o.length?fi.apply(t,g):hi(n,e,u,i);else var d=ni(n,e,u);return ho((_?vu:co)(d,g),n,e)}function bi(n,r,e,u){return n===t||mf(n,Ln[e])&&!Fn.call(u,e)?r:n}function wi(n,r,e,u,i,o){return Bf(n)&&Bf(r)&&(o.set(r,n),Qe(n,r,t,wi,o),o.delete(r)),n}function mi(n){return Mf(n)?t:n}function ji(n,r,e,u,i,o){var f=1&e,a=n.length,c=r.length;if(a!=c&&!(f&&c>a))return!1;var l=o.get(n),s=o.get(r);if(l&&s)return l==r&&s==n;var h=-1,p=!0,v=2&e?new Qr:t;for(o.set(n,r),o.set(r,n);++h<a;){var _=n[h],g=r[h];if(u)var d=f?u(g,_,h,r,n,o):u(_,g,h,n,r,o);if(d!==t){if(d)continue;p=!1;break}if(v){if(!pt(r,(function(n,t){if(!Wt(v,t)&&(_===n||i(_,n,e,u,o)))return v.push(t)}))){p=!1;break}}else if(_!==g&&!i(_,g,e,u,o)){p=!1;break}}return o.delete(n),o.delete(r),p}function Ai(n,t,r,e,u,i,o){switch(r){case S:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case E:return!(n.byteLength!=t.byteLength||!i(new Ht(n),new Ht(t)));case g:case d:case m:return mf(+n,+t);case y:return n.name==t.name&&n.message==t.message;case k:case O:return n==t+'';case w:var f=Pt;case z:var a=1&e;if(f||(f=Vt),n.size!=t.size&&!a)return!1;var c=o.get(n);if(c)return c==t;e|=2,o.set(n,t);var l=ji(f(n),f(t),e,u,i,o);return o.delete(n),l;case I:if(Nr)return Nr.call(n)==Nr.call(t)}return!1}function ki(n,r,e,u,i,o){var f=1&e,a=Oi(n),c=a.length;if(c!=Oi(r).length&&!f)return!1;for(var l=c;l--;){var s=a[l];if(!(f?s in r:Fn.call(r,s)))return!1}var h=o.get(n),p=o.get(r);if(h&&p)return h==r&&p==n;var v=!0;o.set(n,r),o.set(r,n);for(var _=f;++l<c;){var g=n[s=a[l]],d=r[s];if(u)var y=f?u(d,g,s,r,n,o):u(g,d,s,n,r,o);if(!(y===t?g===d||i(g,d,e,u,o):y)){v=!1;break}_||(_='constructor'==s)}if(v&&!_){var x=n.constructor,b=r.constructor;x==b||!('constructor'in n)||!('constructor'in r)||'function'==typeof x&&x instanceof x&&'function'==typeof b&&b instanceof b||(v=!1)}return o.delete(n),o.delete(r),v}function zi(n){return so(io(n,t,zo),n+'')}function Oi(n){return Se(n,pa,Ti)}function Ii(n){return Se(n,va,Di)}var Ri=Cr?function(n){return Cr.get(n)}:Pa;function Ei(n){for(var t=n.name+'',r=Ur[t],e=Fn.call(Ur,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function Si(n){return(Fn.call(Pr,'placeholder')?Pr:n).placeholder}function Li(){var n=Pr.iteratee||Ma;return n=n===Ma?qe:n,arguments.length?n(arguments[0],arguments[1]):n}function Wi(n,t){var r,e,u=n.__data__;return('string'==(e=typeof(r=t))||'number'==e||'symbol'==e||'boolean'==e?'__proto__'!==r:null===r)?u['string'==typeof t?'string':'hash']:u.map}function Ci(n){for(var t=pa(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,no(u)]}return t}function Ui(n,r){var e=Mt(n,r);return Pe(e)?e:t}function Bi(n){var r=Fn.call(n,lr),e=n[lr];try{n[lr]=t}catch(n){}var u=qn.call(n);return r?n[lr]=e:delete n[lr],u}var Ti=dr?function(n){return null==n?[]:(n=An(n),ot(dr(n),(function(t){return or.call(n,t)})))}:Ya,Di=dr?function(n){for(var t=[];n;)lt(t,Ti(n)),n=rr(n);return t}:Ya,$i=Le;function Mi(n,t,r){for(var e=-1,u=r.length;++e<u;){var i=r[e],o=i.size;switch(i.type){case'drop':n+=o;break;case'dropRight':t-=o;break;case'take':t=jr(t,n+o);break;case'takeRight':n=mr(n,t-o)}}return{start:n,end:t}}function Fi(n){var t=n.match(on);return t?t[1].split(fn):[]}function Ni(n,t,r){for(var e=-1,u=(t=Wu(t,n)).length,i=!1;++e<u;){var o=go(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&Uf(u)&&Gi(o,u)&&(zf(n)||kf(n))}function Zi(n){var t=n.length,r=new n.constructor(t);return t&&'string'==typeof n[0]&&Fn.call(n,'index')&&(r.index=n.index,r.input=n.input),r}function Pi(n){return'function'!=typeof n.constructor||Xi(n)?{}:qr(rr(n))}function qi(n,t,r){var e,u=n.constructor;switch(t){case E:return Du(n);case g:case d:return new u(+n);case S:return $u(n,r);case L:case W:case C:case U:case B:case T:case D:case $:case M:return Fu(n,r);case w:return new u;case m:case O:return new u(n);case k:return Mu(n);case z:return new u;case I:return e=n,Nr?An(Nr.call(e)):{}}}function Ki(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?'& ':'')+t[e],t=t.join(r>2?', ':' '),n.replace(un,'{\n/* [wrapped with '+t+'] */\n')}function Vi(n){return zf(n)||kf(n)||!!(ar&&n&&n[ar])}function Gi(n,t){var r=typeof n;return!!(t=null==t?l:t)&&('number'==r||'symbol'!=r&&dn.test(n))&&n>-1&&n%1==0&&n<t}function Hi(n,t,r){if(!Bf(r))return!1;var e=typeof t;return!!('number'==e?If(r)&&Gi(t,r.length):'string'==e&&t in r)&&mf(r[t],n)}function Ji(n,t){if(zf(n))return!1;var r=typeof n;return!('number'!=r&&'symbol'!=r&&'boolean'!=r&&null!=n&&!Pf(n))||(Q.test(n)||!Y.test(n)||null!=t&&n in An(t))}function Yi(n){var t=Ei(n),r=Pr[t];if('function'!=typeof r||!(t in Gr.prototype))return!1;if(n===r)return!0;var e=Ri(r);return!!e&&n===e[0]}(Ir&&$i(new Ir(new ArrayBuffer(1)))!=S||Rr&&$i(new Rr)!=w||Er&&$i(Er.resolve())!=A||Sr&&$i(new Sr)!=z||Lr&&$i(new Lr)!=R)&&($i=function(n){var r=Le(n),e=r==j?n.constructor:t,u=e?yo(e):'';if(u)switch(u){case Br:return S;case Tr:return w;case Dr:return A;case $r:return z;case Mr:return R}return r});var Qi=Wn?Wf:Qa;function Xi(n){var t=n&&n.constructor;return n===('function'==typeof t&&t.prototype||Ln)}function no(n){return n==n&&!Bf(n)}function to(n,r){return function(e){return null!=e&&(e[n]===r&&(r!==t||n in An(e)))}}function ro(n,t){var r=n[1],e=t[1],u=r|e,i=u<131,f=e==a&&8==r||e==a&&256==r&&n[7].length<=t[8]||384==e&&t[7].length<=t[8]&&8==r;if(!i&&!f)return n;1&e&&(n[2]=t[2],u|=1&r?0:4);var c=t[3];if(c){var l=n[3];n[3]=l?Pu(l,c,t[4]):c,n[4]=l?Kt(n[3],o):t[4]}return(c=t[5])&&(l=n[5],n[5]=l?qu(l,c,t[6]):c,n[6]=l?Kt(n[5],o):t[6]),(c=t[7])&&(n[7]=c),e&a&&(n[8]=null==n[8]?t[8]:jr(n[8],t[8])),null==n[9]&&(n[9]=t[9]),n[0]=t[0],n[1]=u,n}function eo(n){var t=[];if(null!=n)for(var r in An(n))t.push(r);return t}function uo(n){return qn.call(n)}function io(n,r,e){return r=mr(r===t?n.length-1:r,0),function(){for(var t=arguments,u=-1,i=mr(t.length-r,0),o=en(i);++u<i;)o[u]=t[r+u];u=-1;for(var f=en(r+1);++u<r;)f[u]=t[u];return f[r]=e(o),tt(n,this,f)}}function oo(n,t){return t.length<2?n:Ee(n,du(t,0,-1))}function fo(n,r){for(var e=n.length,u=jr(r.length,e),i=Ku(n);u--;){var o=r[u];n[u]=Gi(o,e)?i[o]:t}return n}function ao(n,t){if(('constructor'!==t||'function'!=typeof n[t])&&'__proto__'!=t)return n[t]}var co=po(vu),lo=vr||function(n,t){return Zn.setTimeout(n,t)},so=po(_u);function ho(n,t,r){var e=t+'';return so(n,Ki(e,xo(Fi(e),r)))}function po(n){var r=0,e=0;return function(){var u=Ar(),i=16-(u-e);if(e=u,i>0){if(++r>=800)return arguments[0]}else r=0;return n.apply(t,arguments)}}function vo(n,r){var e=-1,u=n.length,i=u-1;for(r=r===t?u:r;++e<r;){var o=fu(e,i),f=n[o];n[o]=n[e],n[e]=f}return n.length=r,n}var _o=(function(n){var t=gf(n,(function(n){return 500===r.size&&r.clear(),n})),r=t.cache;return t})((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(''),n.replace(X,(function(n,r,e,u){t.push(e?u.replace(ln,'$1'):r||n)})),t}));function go(n){if('string'==typeof n||Pf(n))return n;var t=n+'';return'0'==t&&1/n==-1/0?'-0':t}function yo(n){if(null!=n){try{return Dn.call(n)}catch(n){}try{return n+''}catch(n){}}return''}function xo(n,t){return et(p,(function(r){var e='_.'+r[0];t&r[1]&&!ft(n,e)&&n.push(e)})),n.sort()}function bo(n){if(n instanceof Gr)return n.clone();var t=new Vr(n.__wrapped__,n.__chain__);return t.__actions__=Ku(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var wo=lu((function(n,t){return Rf(n)?de(n,Ae(t,1,Rf,!0)):[]})),mo=lu((function(n,r){var e=So(r);return Rf(e)&&(e=t),Rf(n)?de(n,Ae(r,1,Rf,!0),Li(e,2)):[]})),jo=lu((function(n,r){var e=So(r);return Rf(e)&&(e=t),Rf(n)?de(n,Ae(r,1,Rf,!0),t,e):[]}));function Ao(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:Jf(r);return u<0&&(u=mr(e+u,0)),yt(n,Li(t,3),u)}function ko(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var i=u-1;return e!==t&&(i=Jf(e),i=e<0?mr(u+i,0):jr(i,u-1)),yt(n,Li(r,3),i,!0)}function zo(n){return(null==n?0:n.length)?Ae(n,1):[]}function Oo(n){return n&&n.length?n[0]:t}var Io=lu((function(n){var t=ct(n,Su);return t.length&&t[0]===n[0]?Te(t):[]})),Ro=lu((function(n){var r=So(n),e=ct(n,Su);return r===So(e)?r=t:e.pop(),e.length&&e[0]===n[0]?Te(e,Li(r,2)):[]})),Eo=lu((function(n){var r=So(n),e=ct(n,Su);return(r='function'==typeof r?r:t)&&e.pop(),e.length&&e[0]===n[0]?Te(e,t,r):[]}));function So(n){var r=null==n?0:n.length;return r?n[r-1]:t}var Lo=lu(Wo);function Wo(n,t){return n&&n.length&&t&&t.length?iu(n,t):n}var Co=zi((function(n,t){var r=null==n?0:n.length,e=se(n,t);return ou(n,ct(t,(function(n){return Gi(n,r)?+n:n})).sort(Nu)),e}));function Uo(n){return null==n?n:Or.call(n)}var Bo=lu((function(n){return Au(Ae(n,1,Rf,!0))})),To=lu((function(n){var r=So(n);return Rf(r)&&(r=t),Au(Ae(n,1,Rf,!0),Li(r,2))})),Do=lu((function(n){var r=So(n);return r='function'==typeof r?r:t,Au(Ae(n,1,Rf,!0),t,r)}));function $o(n){if(!n||!n.length)return[];var t=0;return n=ot(n,(function(n){if(Rf(n))return t=mr(n.length,t),!0})),It(t,(function(t){return ct(n,jt(t))}))}function Mo(n,r){if(!n||!n.length)return[];var e=$o(n);return null==r?e:ct(e,(function(n){return tt(r,t,n)}))}var Fo=lu((function(n,t){return Rf(n)?de(n,t):[]})),No=lu((function(n){return Ru(ot(n,Rf))})),Zo=lu((function(n){var r=So(n);return Rf(r)&&(r=t),Ru(ot(n,Rf),Li(r,2))})),Po=lu((function(n){var r=So(n);return r='function'==typeof r?r:t,Ru(ot(n,Rf),t,r)})),qo=lu($o);var Ko=lu((function(n){var r=n.length,e=r>1?n[r-1]:t;return e='function'==typeof e?(n.pop(),e):t,Mo(n,e)}));function Vo(n){var t=Pr(n);return t.__chain__=!0,t}function Go(n,t){return t(n)}var Ho=zi((function(n){var r=n.length,e=r?n[0]:0,u=this.__wrapped__,i=function(t){return se(t,n)};return!(r>1||this.__actions__.length)&&u instanceof Gr&&Gi(e)?((u=u.slice(e,+e+(r?1:0))).__actions__.push({func:Go,args:[i],thisArg:t}),new Vr(u,this.__chain__).thru((function(n){return r&&!n.length&&n.push(t),n}))):this.thru(i)}));var Jo=Ju((function(n,t,r){Fn.call(n,r)?++n[r]:le(n,r,1)}));var Yo=ii(Ao),Qo=ii(ko);function Xo(n,t){return(zf(n)?et:ye)(n,Li(t,3))}function nf(n,t){return(zf(n)?ut:xe)(n,Li(t,3))}var tf=Ju((function(n,t,r){Fn.call(n,r)?n[r].push(t):le(n,r,[t])}));var rf=lu((function(n,t,r){var e=-1,u='function'==typeof t,i=If(n)?en(n.length):[];return ye(n,(function(n){i[++e]=u?tt(t,n,r):$e(n,t,r)})),i})),ef=Ju((function(n,t,r){le(n,r,t)}));function uf(n,t){return(zf(n)?ct:He)(n,Li(t,3))}var of=Ju((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ff=lu((function(n,t){if(null==n)return[];var r=t.length;return r>1&&Hi(n,t[0],t[1])?t=[]:r>2&&Hi(t[0],t[1],t[2])&&(t=[t[0]]),tu(n,Ae(t,1),[])})),af=pr||function(){return Zn.Date.now()};function cf(n,r,e){return r=e?t:r,r=n&&null==r?n.length:r,xi(n,a,t,t,t,t,r)}function lf(n,e){var u;if('function'!=typeof e)throw new On(r);return n=Jf(n),function(){return--n>0&&(u=e.apply(this,arguments)),n<=1&&(e=t),u}}var sf=lu((function(n,t,r){var e=1;if(r.length){var u=Kt(r,Si(sf));e|=f}return xi(n,e,t,r,u)})),hf=lu((function(n,t,r){var e=3;if(r.length){var u=Kt(r,Si(hf));e|=f}return xi(t,e,n,r,u)}));function pf(n,e,u){var i,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if('function'!=typeof n)throw new On(r);function _(r){var e=i,u=o;return i=o=t,s=r,a=n.apply(u,e)}function g(n){return s=n,c=lo(x,e),h?_(n):a}function d(n){var t=e-(n-l);return p?jr(t,f-(n-s)):t}function y(n){var r=n-l;return l===t||r>=e||r<0||p&&n-s>=f}function x(){var n=af();if(y(n))return b(n);c=lo(x,d(n))}function b(n){return c=t,v&&i?_(n):(i=o=t,a)}function w(){var n=af(),r=y(n);if(i=arguments,o=this,l=n,r){if(c===t)return g(l);if(p)return Bu(c),c=lo(x,e),_(l)}return c===t&&(c=lo(x,e)),a}return e=Qf(e)||0,Bf(u)&&(h=!!u.leading,f=(p='maxWait'in u)?mr(Qf(u.maxWait)||0,e):f,v='trailing'in u?!!u.trailing:v),w.cancel=function(){c!==t&&Bu(c),s=0,i=l=o=c=t},w.flush=function(){return c===t?a:b(af())},w}var vf=lu((function(n,t){return ge(n,1,t)})),_f=lu((function(n,t,r){return ge(n,Qf(t)||0,r)}));function gf(n,t){if('function'!=typeof n||null!=t&&'function'!=typeof t)throw new On(r);var e=function r(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return e.cache=new(gf.Cache||Yr),e}function df(n){if('function'!=typeof n)throw new On(r);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}gf.Cache=Yr;var yf=Cu((function(n,t){var r=(t=1==t.length&&zf(t[0])?ct(t[0],St(Li())):ct(Ae(t,1),St(Li()))).length;return lu((function(e){for(var u=-1,i=jr(e.length,r);++u<i;)e[u]=t[u].call(this,e[u]);return tt(n,this,e)}))})),xf=lu((function(n,r){var e=Kt(r,Si(xf));return xi(n,f,t,r,e)})),bf=lu((function(n,r){var e=Kt(r,Si(bf));return xi(n,64,t,r,e)})),wf=zi((function(n,r){return xi(n,256,t,t,t,r)}));function mf(n,t){return n===t||n!=n&&t!=t}var jf=vi(We),Af=vi((function(n,t){return n>=t})),kf=Me((function(){return arguments})())?Me:function(n){return Tf(n)&&Fn.call(n,'callee')&&!or.call(n,'callee')},zf=en.isArray,Of=Hn?St(Hn):function(n){return Tf(n)&&Le(n)==E};function If(n){return null!=n&&Uf(n.length)&&!Wf(n)}function Rf(n){return Tf(n)&&If(n)}var Ef=yr||Qa,Sf=Jn?St(Jn):function(n){return Tf(n)&&Le(n)==d};function Lf(n){if(!Tf(n))return!1;var t=Le(n);return t==y||"[object DOMException]"==t||'string'==typeof n.message&&'string'==typeof n.name&&!Mf(n)}function Wf(n){if(!Bf(n))return!1;var t=Le(n);return t==x||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Cf(n){return'number'==typeof n&&n==Jf(n)}function Uf(n){return'number'==typeof n&&n>-1&&n%1==0&&n<=l}function Bf(n){var t=typeof n;return null!=n&&('object'==t||'function'==t)}function Tf(n){return null!=n&&'object'==typeof n}var Df=Yn?St(Yn):function(n){return Tf(n)&&$i(n)==w};function $f(n){return'number'==typeof n||Tf(n)&&Le(n)==m}function Mf(n){if(!Tf(n)||Le(n)!=j)return!1;var t=rr(n);if(null===t)return!0;var r=Fn.call(t,'constructor')&&t.constructor;return'function'==typeof r&&r instanceof r&&Dn.call(r)==Vn}var Ff=Qn?St(Qn):function(n){return Tf(n)&&Le(n)==k};var Nf=Xn?St(Xn):function(n){return Tf(n)&&$i(n)==z};function Zf(n){return'string'==typeof n||!zf(n)&&Tf(n)&&Le(n)==O}function Pf(n){return'symbol'==typeof n||Tf(n)&&Le(n)==I}var qf=nt?St(nt):function(n){return Tf(n)&&Uf(n.length)&&!!Bn[Le(n)]};var Kf=vi(Ge),Vf=vi((function(n,t){return n<=t}));function Gf(n){if(!n)return[];if(If(n))return Zf(n)?Qt(n):Ku(n);if(cr&&n[cr])return Zt(n[cr]());var t=$i(n);return(t==w?Pt:t==z?Vt:ma)(n)}function Hf(n){return n?(n=Qf(n))===c||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function Jf(n){var t=Hf(n),r=t%1;return t==t?r?t-r:t:0}function Yf(n){return n?he(Jf(n),0,h):0}function Qf(n){if('number'==typeof n)return n;if(Pf(n))return s;if(Bf(n)){var t='function'==typeof n.valueOf?n.valueOf():n;n=Bf(t)?t+'':t}if('string'!=typeof n)return 0===n?n:+n;n=Et(n);var r=vn.test(n);return r||gn.test(n)?Mn(n.slice(2),r?2:8):pn.test(n)?s:+n}function Xf(n){return Vu(n,va(n))}function na(n){return null==n?'':ju(n)}var ta=Yu((function(n,t){if(Xi(t)||If(t))Vu(t,pa(t),n);else for(var r in t)Fn.call(t,r)&&ie(n,r,t[r])})),ra=Yu((function(n,t){Vu(t,va(t),n)})),ea=Yu((function(n,t,r,e){Vu(t,va(t),n,e)})),ua=Yu((function(n,t,r,e){Vu(t,pa(t),n,e)})),ia=zi(se);var oa=lu((function(n,r){n=An(n);var e=-1,u=r.length,i=u>2?r[2]:t;for(i&&Hi(r[0],r[1],i)&&(u=1);++e<u;)for(var o=r[e],f=va(o),a=-1,c=f.length;++a<c;){var l=f[a],s=n[l];(s===t||mf(s,Ln[l])&&!Fn.call(n,l))&&(n[l]=o[l])}return n})),fa=lu((function(n){return n.push(t,wi),tt(ga,t,n)}));function aa(n,r,e){var u=null==n?t:Ee(n,r);return u===t?e:u}function ca(n,t){return null!=n&&Ni(n,t,Ue)}var la=ai((function(n,t,r){null!=t&&'function'!=typeof t.toString&&(t=qn.call(t)),n[t]=r}),Ba($a)),sa=ai((function(n,t,r){null!=t&&'function'!=typeof t.toString&&(t=qn.call(t)),Fn.call(n,t)?n[t].push(r):n[t]=[r]}),Li),ha=lu($e);function pa(n){return If(n)?ne(n):Ke(n)}function va(n){return If(n)?ne(n,!0):Ve(n)}var _a=Yu((function(n,t,r){Qe(n,t,r)})),ga=Yu((function(n,t,r,e){Qe(n,t,r,e)})),da=zi((function(n,t){var r={};if(null==n)return r;var e=!1;t=ct(t,(function(t){return t=Wu(t,n),e||(e=t.length>1),t})),Vu(n,Ii(n),r),e&&(r=pe(r,7,mi));for(var u=t.length;u--;)ku(r,t[u]);return r}));var ya=zi((function(n,t){return null==n?{}:ru(n,t)}));function xa(n,t){if(null==n)return{};var r=ct(Ii(n),(function(n){return[n]}));return t=Li(t),eu(n,r,(function(n,r){return t(n,r[0])}))}var ba=yi(pa),wa=yi(va);function ma(n){return null==n?[]:Lt(n,pa(n))}var ja=ri((function(n,t,r){return t=t.toLowerCase(),n+(r?Aa(t):t)}));function Aa(n){return La(na(n).toLowerCase())}function ka(n){return(n=na(n))&&n.replace(yn,Tt).replace(Rn,'')}var za=ri((function(n,t,r){return n+(r?'-':'')+t.toLowerCase()})),Oa=ri((function(n,t,r){return n+(r?' ':'')+t.toLowerCase()})),Ia=ti('toLowerCase');var Ra=ri((function(n,t,r){return n+(r?'_':'')+t.toLowerCase()}));var Ea=ri((function(n,t,r){return n+(r?' ':'')+La(t)}));var Sa=ri((function(n,t,r){return n+(r?' ':'')+t.toUpperCase()})),La=ti('toUpperCase');function Wa(n,r,e){return n=na(n),(r=e?t:r)===t?Nt(n)?er(n):gt(n):n.match(r)||[]}var Ca=lu((function(n,r){try{return tt(n,t,r)}catch(n){return Lf(n)?n:new wn(n)}})),Ua=zi((function(n,t){return et(t,(function(t){t=go(t),le(n,t,sf(n[t],n))})),n}));function Ba(n){return function(){return n}}var Ta=oi(),Da=oi(!0);function $a(n){return n}function Ma(n){return qe('function'==typeof n?n:pe(n,1))}var Fa=lu((function(n,t){return function(r){return $e(r,n,t)}})),Na=lu((function(n,t){return function(r){return $e(n,r,t)}}));function Za(n,t,r){var e=pa(t),u=Re(t,e);null!=r||Bf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=Re(t,pa(t)));var i=!(Bf(r)&&'chain'in r&&!r.chain),o=Wf(n);return et(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Ku(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,lt([this.value()],arguments))})})),n}function Pa(){}var qa=li(ct),Ka=li(it),Va=li(pt);function Ga(n){return Ji(n)?jt(go(n)):uu(n)}var Ha=pi(),Ja=pi(!0);function Ya(){return[]}function Qa(){return!1}var Xa=ci((function(n,t){return n+t}),0),nc=gi('ceil'),tc=ci((function(n,t){return n/t}),1),rc=gi('floor');var ec,uc=ci((function(n,t){return n*t}),1),ic=gi('round'),oc=ci((function(n,t){return n-t}),0);return Pr.after=function(n,t){if('function'!=typeof t)throw new On(r);return n=Jf(n),function(){if(--n<1)return t.apply(this,arguments)}},Pr.ary=cf,Pr.assign=ta,Pr.assignIn=ra,Pr.assignInWith=ea,Pr.assignWith=ua,Pr.at=ia,Pr.before=lf,Pr.bind=sf,Pr.bindAll=Ua,Pr.bindKey=hf,Pr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return zf(n)?n:[n]},Pr.chain=Vo,Pr.chunk=function(n,r,e){r=(e?Hi(n,r,e):r===t)?1:mr(Jf(r),0);var u=null==n?0:n.length;if(!u||r<1)return[];for(var i=0,o=0,f=en(_r(u/r));i<u;)f[o++]=du(n,i,i+=r);return f},Pr.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},Pr.concat=function(){var n=arguments.length;if(!n)return[];for(var t=en(n-1),r=arguments[0],e=n;e--;)t[e-1]=arguments[e];return lt(zf(r)?Ku(r):[r],Ae(t,1))},Pr.cond=function(n){var t=null==n?0:n.length,e=Li();return n=t?ct(n,(function(n){if('function'!=typeof n[1])throw new On(r);return[e(n[0]),n[1]]})):[],lu((function(r){for(var e=-1;++e<t;){var u=n[e];if(tt(u[0],this,r))return tt(u[1],this,r)}}))},Pr.conforms=function(n){return ve(pe(n,1))},Pr.constant=Ba,Pr.countBy=Jo,Pr.create=function(n,t){var r=qr(n);return null==t?r:ae(r,t)},Pr.curry=function n(r,e,u){var i=xi(r,8,t,t,t,t,t,e=u?t:e);return i.placeholder=n.placeholder,i},Pr.curryRight=function n(r,e,u){var i=xi(r,16,t,t,t,t,t,e=u?t:e);return i.placeholder=n.placeholder,i},Pr.debounce=pf,Pr.defaults=oa,Pr.defaultsDeep=fa,Pr.defer=vf,Pr.delay=_f,Pr.difference=wo,Pr.differenceBy=mo,Pr.differenceWith=jo,Pr.drop=function(n,r,e){var u=null==n?0:n.length;return u?du(n,(r=e||r===t?1:Jf(r))<0?0:r,u):[]},Pr.dropRight=function(n,r,e){var u=null==n?0:n.length;return u?du(n,0,(r=u-(r=e||r===t?1:Jf(r)))<0?0:r):[]},Pr.dropRightWhile=function(n,t){return n&&n.length?Ou(n,Li(t,3),!0,!0):[]},Pr.dropWhile=function(n,t){return n&&n.length?Ou(n,Li(t,3),!0):[]},Pr.fill=function(n,t,r,e){var u=null==n?0:n.length;return u?(r&&'number'!=typeof r&&Hi(n,t,r)&&(r=0,e=u),me(n,t,r,e)):[]},Pr.filter=function(n,t){return(zf(n)?ot:je)(n,Li(t,3))},Pr.flatMap=function(n,t){return Ae(uf(n,t),1)},Pr.flatMapDeep=function(n,t){return Ae(uf(n,t),c)},Pr.flatMapDepth=function(n,r,e){return e=e===t?1:Jf(e),Ae(uf(n,r),e)},Pr.flatten=zo,Pr.flattenDeep=function(n){return(null==n?0:n.length)?Ae(n,c):[]},Pr.flattenDepth=function(n,r){return(null==n?0:n.length)?Ae(n,r=r===t?1:Jf(r)):[]},Pr.flip=function(n){return xi(n,512)},Pr.flow=Ta,Pr.flowRight=Da,Pr.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},Pr.functions=function(n){return null==n?[]:Re(n,pa(n))},Pr.functionsIn=function(n){return null==n?[]:Re(n,va(n))},Pr.groupBy=tf,Pr.initial=function(n){return(null==n?0:n.length)?du(n,0,-1):[]},Pr.intersection=Io,Pr.intersectionBy=Ro,Pr.intersectionWith=Eo,Pr.invert=la,Pr.invertBy=sa,Pr.invokeMap=rf,Pr.iteratee=Ma,Pr.keyBy=ef,Pr.keys=pa,Pr.keysIn=va,Pr.map=uf,Pr.mapKeys=function(n,t){var r={};return t=Li(t,3),Oe(n,(function(n,e,u){le(r,t(n,e,u),n)})),r},Pr.mapValues=function(n,t){var r={};return t=Li(t,3),Oe(n,(function(n,e,u){le(r,e,t(n,e,u))})),r},Pr.matches=function(n){return Je(pe(n,1))},Pr.matchesProperty=function(n,t){return Ye(n,pe(t,1))},Pr.memoize=gf,Pr.merge=_a,Pr.mergeWith=ga,Pr.method=Fa,Pr.methodOf=Na,Pr.mixin=Za,Pr.negate=df,Pr.nthArg=function(n){return n=Jf(n),lu((function(t){return nu(t,n)}))},Pr.omit=da,Pr.omitBy=function(n,t){return xa(n,df(Li(t)))},Pr.once=function(n){return lf(2,n)},Pr.orderBy=function(n,r,e,u){return null==n?[]:(zf(r)||(r=null==r?[]:[r]),zf(e=u?t:e)||(e=null==e?[]:[e]),tu(n,r,e))},Pr.over=qa,Pr.overArgs=yf,Pr.overEvery=Ka,Pr.overSome=Va,Pr.partial=xf,Pr.partialRight=bf,Pr.partition=of,Pr.pick=ya,Pr.pickBy=xa,Pr.property=Ga,Pr.propertyOf=function(n){return function(r){return null==n?t:Ee(n,r)}},Pr.pull=Lo,Pr.pullAll=Wo,Pr.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?iu(n,t,Li(r,2)):n},Pr.pullAllWith=function(n,r,e){return n&&n.length&&r&&r.length?iu(n,r,t,e):n},Pr.pullAt=Co,Pr.range=Ha,Pr.rangeRight=Ja,Pr.rearg=wf,Pr.reject=function(n,t){return(zf(n)?ot:je)(n,df(Li(t,3)))},Pr.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=Li(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return ou(n,u),r},Pr.rest=function(n,e){if('function'!=typeof n)throw new On(r);return lu(n,e=e===t?e:Jf(e))},Pr.reverse=Uo,Pr.sampleSize=function(n,r,e){return r=(e?Hi(n,r,e):r===t)?1:Jf(r),(zf(n)?re:hu)(n,r)},Pr.set=function(n,t,r){return null==n?n:pu(n,t,r)},Pr.setWith=function(n,r,e,u){return u='function'==typeof u?u:t,null==n?n:pu(n,r,e,u)},Pr.shuffle=function(n){return(zf(n)?ee:gu)(n)},Pr.slice=function(n,r,e){var u=null==n?0:n.length;return u?(e&&'number'!=typeof e&&Hi(n,r,e)?(r=0,e=u):(r=null==r?0:Jf(r),e=e===t?u:Jf(e)),du(n,r,e)):[]},Pr.sortBy=ff,Pr.sortedUniq=function(n){return n&&n.length?wu(n):[]},Pr.sortedUniqBy=function(n,t){return n&&n.length?wu(n,Li(t,2)):[]},Pr.split=function(n,r,e){return e&&'number'!=typeof e&&Hi(n,r,e)&&(r=e=t),(e=e===t?h:e>>>0)?(n=na(n))&&('string'==typeof r||null!=r&&!Ff(r))&&!(r=ju(r))&&Ft(n)?Uu(Qt(n),0,e):n.split(r,e):[]},Pr.spread=function(n,t){if('function'!=typeof n)throw new On(r);return t=null==t?0:mr(Jf(t),0),lu((function(r){var e=r[t],u=Uu(r,0,t);return e&<(u,e),tt(n,this,u)}))},Pr.tail=function(n){var t=null==n?0:n.length;return t?du(n,1,t):[]},Pr.take=function(n,r,e){return n&&n.length?du(n,0,(r=e||r===t?1:Jf(r))<0?0:r):[]},Pr.takeRight=function(n,r,e){var u=null==n?0:n.length;return u?du(n,(r=u-(r=e||r===t?1:Jf(r)))<0?0:r,u):[]},Pr.takeRightWhile=function(n,t){return n&&n.length?Ou(n,Li(t,3),!1,!0):[]},Pr.takeWhile=function(n,t){return n&&n.length?Ou(n,Li(t,3)):[]},Pr.tap=function(n,t){return t(n),n},Pr.throttle=function(n,t,e){var u=!0,i=!0;if('function'!=typeof n)throw new On(r);return Bf(e)&&(u='leading'in e?!!e.leading:u,i='trailing'in e?!!e.trailing:i),pf(n,t,{leading:u,maxWait:t,trailing:i})},Pr.thru=Go,Pr.toArray=Gf,Pr.toPairs=ba,Pr.toPairsIn=wa,Pr.toPath=function(n){return zf(n)?ct(n,go):Pf(n)?[n]:Ku(_o(na(n)))},Pr.toPlainObject=Xf,Pr.transform=function(n,t,r){var e=zf(n),u=e||Ef(n)||qf(n);if(t=Li(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:Bf(n)&&Wf(i)?qr(rr(n)):{}}return(u?et:Oe)(n,(function(n,e,u){return t(r,n,e,u)})),r},Pr.unary=function(n){return cf(n,1)},Pr.union=Bo,Pr.unionBy=To,Pr.unionWith=Do,Pr.uniq=function(n){return n&&n.length?Au(n):[]},Pr.uniqBy=function(n,t){return n&&n.length?Au(n,Li(t,2)):[]},Pr.uniqWith=function(n,r){return r='function'==typeof r?r:t,n&&n.length?Au(n,t,r):[]},Pr.unset=function(n,t){return null==n||ku(n,t)},Pr.unzip=$o,Pr.unzipWith=Mo,Pr.update=function(n,t,r){return null==n?n:zu(n,t,Lu(r))},Pr.updateWith=function(n,r,e,u){return u='function'==typeof u?u:t,null==n?n:zu(n,r,Lu(e),u)},Pr.values=ma,Pr.valuesIn=function(n){return null==n?[]:Lt(n,va(n))},Pr.without=Fo,Pr.words=Wa,Pr.wrap=function(n,t){return xf(Lu(t),n)},Pr.xor=No,Pr.xorBy=Zo,Pr.xorWith=Po,Pr.zip=qo,Pr.zipObject=function(n,t){return Eu(n||[],t||[],ie)},Pr.zipObjectDeep=function(n,t){return Eu(n||[],t||[],pu)},Pr.zipWith=Ko,Pr.entries=ba,Pr.entriesIn=wa,Pr.extend=ra,Pr.extendWith=ea,Za(Pr,Pr),Pr.add=Xa,Pr.attempt=Ca,Pr.camelCase=ja,Pr.capitalize=Aa,Pr.ceil=nc,Pr.clamp=function(n,r,e){return e===t&&(e=r,r=t),e!==t&&(e=(e=Qf(e))==e?e:0),r!==t&&(r=(r=Qf(r))==r?r:0),he(Qf(n),r,e)},Pr.clone=function(n){return pe(n,4)},Pr.cloneDeep=function(n){return pe(n,5)},Pr.cloneDeepWith=function(n,r){return pe(n,5,r='function'==typeof r?r:t)},Pr.cloneWith=function(n,r){return pe(n,4,r='function'==typeof r?r:t)},Pr.conformsTo=function(n,t){return null==t||_e(n,t,pa(t))},Pr.deburr=ka,Pr.defaultTo=function(n,t){return null==n||n!=n?t:n},Pr.divide=tc,Pr.endsWith=function(n,r,e){n=na(n),r=ju(r);var u=n.length,i=e=e===t?u:he(Jf(e),0,u);return(e-=r.length)>=0&&n.slice(e,i)==r},Pr.eq=mf,Pr.escape=function(n){return(n=na(n))&&V.test(n)?n.replace(q,Dt):n},Pr.escapeRegExp=function(n){return(n=na(n))&&tn.test(n)?n.replace(nn,'\\$&'):n},Pr.every=function(n,r,e){var u=zf(n)?it:be;return e&&Hi(n,r,e)&&(r=t),u(n,Li(r,3))},Pr.find=Yo,Pr.findIndex=Ao,Pr.findKey=function(n,t){return dt(n,Li(t,3),Oe)},Pr.findLast=Qo,Pr.findLastIndex=ko,Pr.findLastKey=function(n,t){return dt(n,Li(t,3),Ie)},Pr.floor=rc,Pr.forEach=Xo,Pr.forEachRight=nf,Pr.forIn=function(n,t){return null==n?n:ke(n,Li(t,3),va)},Pr.forInRight=function(n,t){return null==n?n:ze(n,Li(t,3),va)},Pr.forOwn=function(n,t){return n&&Oe(n,Li(t,3))},Pr.forOwnRight=function(n,t){return n&&Ie(n,Li(t,3))},Pr.get=aa,Pr.gt=jf,Pr.gte=Af,Pr.has=function(n,t){return null!=n&&Ni(n,t,Ce)},Pr.hasIn=ca,Pr.head=Oo,Pr.identity=$a,Pr.includes=function(n,t,r,e){n=If(n)?n:ma(n),r=r&&!e?Jf(r):0;var u=n.length;return r<0&&(r=mr(u+r,0)),Zf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&xt(n,t,r)>-1},Pr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:Jf(r);return u<0&&(u=mr(e+u,0)),xt(n,t,u)},Pr.inRange=function(n,r,e){return r=Hf(r),e===t?(e=r,r=0):e=Hf(e),Be(n=Qf(n),r,e)},Pr.invoke=ha,Pr.isArguments=kf,Pr.isArray=zf,Pr.isArrayBuffer=Of,Pr.isArrayLike=If,Pr.isArrayLikeObject=Rf,Pr.isBoolean=function(n){return!0===n||!1===n||Tf(n)&&Le(n)==g},Pr.isBuffer=Ef,Pr.isDate=Sf,Pr.isElement=function(n){return Tf(n)&&1===n.nodeType&&!Mf(n)},Pr.isEmpty=function(n){if(null==n)return!0;if(If(n)&&(zf(n)||'string'==typeof n||'function'==typeof n.splice||Ef(n)||qf(n)||kf(n)))return!n.length;var t=$i(n);if(t==w||t==z)return!n.size;if(Xi(n))return!Ke(n).length;for(var r in n)if(Fn.call(n,r))return!1;return!0},Pr.isEqual=function(n,t){return Fe(n,t)},Pr.isEqualWith=function(n,r,e){var u=(e='function'==typeof e?e:t)?e(n,r):t;return u===t?Fe(n,r,t,e):!!u},Pr.isError=Lf,Pr.isFinite=function(n){return'number'==typeof n&&xr(n)},Pr.isFunction=Wf,Pr.isInteger=Cf,Pr.isLength=Uf,Pr.isMap=Df,Pr.isMatch=function(n,t){return n===t||Ze(n,t,Ci(t))},Pr.isMatchWith=function(n,r,e){return e='function'==typeof e?e:t,Ze(n,r,Ci(r),e)},Pr.isNaN=function(n){return $f(n)&&n!=+n},Pr.isNative=function(n){if(Qi(n))throw new wn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pe(n)},Pr.isNil=function(n){return null==n},Pr.isNull=function(n){return null===n},Pr.isNumber=$f,Pr.isObject=Bf,Pr.isObjectLike=Tf,Pr.isPlainObject=Mf,Pr.isRegExp=Ff,Pr.isSafeInteger=function(n){return Cf(n)&&n>=-9007199254740991&&n<=l},Pr.isSet=Nf,Pr.isString=Zf,Pr.isSymbol=Pf,Pr.isTypedArray=qf,Pr.isUndefined=function(n){return n===t},Pr.isWeakMap=function(n){return Tf(n)&&$i(n)==R},Pr.isWeakSet=function(n){return Tf(n)&&"[object WeakSet]"==Le(n)},Pr.join=function(n,t){return null==n?'':br.call(n,t)},Pr.kebabCase=za,Pr.last=So,Pr.lastIndexOf=function(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var i=u;return e!==t&&(i=(i=Jf(e))<0?mr(u+i,0):jr(i,u-1)),r==r?Jt(n,r,i):yt(n,wt,i,!0)},Pr.lowerCase=Oa,Pr.lowerFirst=Ia,Pr.lt=Kf,Pr.lte=Vf,Pr.max=function(n){return n&&n.length?we(n,$a,We):t},Pr.maxBy=function(n,r){return n&&n.length?we(n,Li(r,2),We):t},Pr.mean=function(n){return mt(n,$a)},Pr.meanBy=function(n,t){return mt(n,Li(t,2))},Pr.min=function(n){return n&&n.length?we(n,$a,Ge):t},Pr.minBy=function(n,r){return n&&n.length?we(n,Li(r,2),Ge):t},Pr.stubArray=Ya,Pr.stubFalse=Qa,Pr.stubObject=function(){return{}},Pr.stubString=function(){return''},Pr.stubTrue=function(){return!0},Pr.multiply=uc,Pr.nth=function(n,r){return n&&n.length?nu(n,Jf(r)):t},Pr.noConflict=function(){return Zn._===this&&(Zn._=Gn),this},Pr.noop=Pa,Pr.now=af,Pr.pad=function(n,t,r){n=na(n);var e=(t=Jf(t))?Yt(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return si(gr(u),r)+n+si(_r(u),r)},Pr.padEnd=function(n,t,r){n=na(n);var e=(t=Jf(t))?Yt(n):0;return t&&e<t?n+si(t-e,r):n},Pr.padStart=function(n,t,r){n=na(n);var e=(t=Jf(t))?Yt(n):0;return t&&e<t?si(t-e,r)+n:n},Pr.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),kr(na(n).replace(rn,''),t||0)},Pr.random=function(n,r,e){if(e&&'boolean'!=typeof e&&Hi(n,r,e)&&(r=e=t),e===t&&('boolean'==typeof r?(e=r,r=t):'boolean'==typeof n&&(e=n,n=t)),n===t&&r===t?(n=0,r=1):(n=Hf(n),r===t?(r=n,n=0):r=Hf(r)),n>r){var u=n;n=r,r=u}if(e||n%1||r%1){var i=zr();return jr(n+i*(r-n+$n('1e-'+((i+'').length-1))),r)}return fu(n,r)},Pr.reduce=function(n,t,r){var e=zf(n)?st:kt,u=arguments.length<3;return e(n,Li(t,4),r,u,ye)},Pr.reduceRight=function(n,t,r){var e=zf(n)?ht:kt,u=arguments.length<3;return e(n,Li(t,4),r,u,xe)},Pr.repeat=function(n,r,e){return r=(e?Hi(n,r,e):r===t)?1:Jf(r),cu(na(n),r)},Pr.replace=function(){var n=arguments,t=na(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Pr.result=function(n,r,e){var u=-1,i=(r=Wu(r,n)).length;for(i||(i=1,n=t);++u<i;){var o=null==n?t:n[go(r[u])];o===t&&(u=i,o=e),n=Wf(o)?o.call(n):o}return n},Pr.round=ic,Pr.runInContext=n,Pr.sample=function(n){return(zf(n)?te:su)(n)},Pr.size=function(n){if(null==n)return 0;if(If(n))return Zf(n)?Yt(n):n.length;var t=$i(n);return t==w||t==z?n.size:Ke(n).length},Pr.snakeCase=Ra,Pr.some=function(n,r,e){var u=zf(n)?pt:yu;return e&&Hi(n,r,e)&&(r=t),u(n,Li(r,3))},Pr.sortedIndex=function(n,t){return xu(n,t)},Pr.sortedIndexBy=function(n,t,r){return bu(n,t,Li(r,2))},Pr.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=xu(n,t);if(e<r&&mf(n[e],t))return e}return-1},Pr.sortedLastIndex=function(n,t){return xu(n,t,!0)},Pr.sortedLastIndexBy=function(n,t,r){return bu(n,t,Li(r,2),!0)},Pr.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=xu(n,t,!0)-1;if(mf(n[r],t))return r}return-1},Pr.startCase=Ea,Pr.startsWith=function(n,t,r){return n=na(n),r=null==r?0:he(Jf(r),0,n.length),t=ju(t),n.slice(r,r+t.length)==t},Pr.subtract=oc,Pr.sum=function(n){return n&&n.length?Ot(n,$a):0},Pr.sumBy=function(n,t){return n&&n.length?Ot(n,Li(t,2)):0},Pr.template=function(n,r,e){var u=Pr.templateSettings;e&&Hi(n,r,e)&&(r=t),n=na(n),r=ea({},r,u,bi);var i,o,f=ea({},r.imports,u.imports,bi),a=pa(f),c=Lt(f,a),l=0,s=r.interpolate||xn,h="__p += '",p=kn((r.escape||xn).source+'|'+s.source+'|'+(s===J?sn:xn).source+'|'+(r.evaluate||xn).source+'|$','g'),v='//# sourceURL='+(Fn.call(r,'sourceURL')?(r.sourceURL+'').replace(/\s/g,' '):'lodash.templateSources['+ ++Un+']')+'\n';n.replace(p,(function(t,r,e,u,f,a){return e||(e=u),h+=n.slice(l,a).replace(bn,$t),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),f&&(o=!0,h+="';\n"+f+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=a+t.length,t})),h+="';\n";var _=Fn.call(r,'variable')&&r.variable;if(_){if(cn.test(_))throw new wn("Invalid `variable` option passed into `_.template`")}else h='with (obj) {\n'+h+'\n}\n';h=(o?h.replace(F,''):h).replace(N,'$1').replace(Z,'$1;'),h='function('+(_||'obj')+') {\n'+(_?'':'obj || (obj = {});\n')+"var __t, __p = ''"+(i?', __e = _.escape':'')+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":';\n')+h+'return __p\n}';var g=Ca((function(){return mn(a,v+'return '+h).apply(t,c)}));if(g.source=h,Lf(g))throw g;return g},Pr.times=function(n,t){if((n=Jf(n))<1||n>l)return[];var r=h,e=jr(n,h);t=Li(t),n-=h;for(var u=It(e,t);++r<n;)t(r);return u},Pr.toFinite=Hf,Pr.toInteger=Jf,Pr.toLength=Yf,Pr.toLower=function(n){return na(n).toLowerCase()},Pr.toNumber=Qf,Pr.toSafeInteger=function(n){return n?he(Jf(n),-9007199254740991,l):0===n?n:0},Pr.toString=na,Pr.toUpper=function(n){return na(n).toUpperCase()},Pr.trim=function(n,r,e){if((n=na(n))&&(e||r===t))return Et(n);if(!n||!(r=ju(r)))return n;var u=Qt(n),i=Qt(r);return Uu(u,Ct(u,i),Ut(u,i)+1).join('')},Pr.trimEnd=function(n,r,e){if((n=na(n))&&(e||r===t))return n.slice(0,Xt(n)+1);if(!n||!(r=ju(r)))return n;var u=Qt(n);return Uu(u,0,Ut(u,Qt(r))+1).join('')},Pr.trimStart=function(n,r,e){if((n=na(n))&&(e||r===t))return n.replace(rn,'');if(!n||!(r=ju(r)))return n;var u=Qt(n);return Uu(u,Ct(u,Qt(r))).join('')},Pr.truncate=function(n,r){var e=30,u="...";if(Bf(r)){var i='separator'in r?r.separator:i;e='length'in r?Jf(r.length):e,u='omission'in r?ju(r.omission):u}var o=(n=na(n)).length;if(Ft(n)){var f=Qt(n);o=f.length}if(e>=o)return n;var a=e-Yt(u);if(a<1)return u;var c=f?Uu(f,0,a).join(''):n.slice(0,a);if(i===t)return c+u;if(f&&(a+=c.length-a),Ff(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=kn(i.source,na(hn.exec(i))+'g')),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===t?a:h)}}else if(n.indexOf(ju(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+u},Pr.unescape=function(n){return(n=na(n))&&K.test(n)?n.replace(P,nr):n},Pr.uniqueId=function(n){var t=++Nn;return na(n)+t},Pr.upperCase=Sa,Pr.upperFirst=La,Pr.each=Xo,Pr.eachRight=nf,Pr.first=Oo,Za(Pr,(ec={},Oe(Pr,(function(n,t){Fn.call(Pr.prototype,t)||(ec[t]=n)})),ec),{chain:!1}),Pr.VERSION="4.17.21",et(['bind','bindKey','curry','curryRight','partial','partialRight'],(function(n){Pr[n].placeholder=Pr})),et(['drop','take'],(function(n,r){Gr.prototype[n]=function(e){e=e===t?1:mr(Jf(e),0);var u=this.__filtered__&&!r?new Gr(this):this.clone();return u.__filtered__?u.__takeCount__=jr(e,u.__takeCount__):u.__views__.push({size:jr(e,h),type:n+(u.__dir__<0?'Right':'')}),u},Gr.prototype[n+'Right']=function(t){return this.reverse()[n](t).reverse()}})),et(['filter','map','takeWhile'],(function(n,t){var r=t+1,e=1==r||3==r;Gr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:Li(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),et(['head','last'],(function(n,t){var r='take'+(t?'Right':'');Gr.prototype[n]=function(){return this[r](1).value()[0]}})),et(['initial','tail'],(function(n,t){var r='drop'+(t?'':'Right');Gr.prototype[n]=function(){return this.__filtered__?new Gr(this):this[r](1)}})),Gr.prototype.compact=function(){return this.filter($a)},Gr.prototype.find=function(n){return this.filter(n).head()},Gr.prototype.findLast=function(n){return this.reverse().find(n)},Gr.prototype.invokeMap=lu((function(n,t){return'function'==typeof n?new Gr(this):this.map((function(r){return $e(r,n,t)}))})),Gr.prototype.reject=function(n){return this.filter(df(Li(n)))},Gr.prototype.slice=function(n,r){n=Jf(n);var e=this;return e.__filtered__&&(n>0||r<0)?new Gr(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),r!==t&&(e=(r=Jf(r))<0?e.dropRight(-r):e.take(r-n)),e)},Gr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Gr.prototype.toArray=function(){return this.take(h)},Oe(Gr.prototype,(function(n,r){var e=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),i=Pr[u?'take'+('last'==r?'Right':''):r],o=u||/^find/.test(r);i&&(Pr.prototype[r]=function(){var r=this.__wrapped__,f=u?[1]:arguments,a=r instanceof Gr,c=f[0],l=a||zf(r),s=function(n){var t=i.apply(Pr,lt([n],f));return u&&h?t[0]:t};l&&e&&'function'==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){r=_?r:new Gr(this);var g=n.apply(r,f);return g.__actions__.push({func:Go,args:[s],thisArg:t}),new Vr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?u?g.value()[0]:g.value():g)})})),et(['pop','push','shift','sort','splice','unshift'],(function(n){var t=En[n],r=/^(?:push|sort|unshift)$/.test(n)?'tap':'thru',e=/^(?:pop|shift)$/.test(n);Pr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(zf(u)?u:[],n)}return this[r]((function(r){return t.apply(zf(r)?r:[],n)}))}})),Oe(Gr.prototype,(function(n,t){var r=Pr[t];if(r){var e=r.name+'';Fn.call(Ur,e)||(Ur[e]=[]),Ur[e].push({name:t,func:r})}})),Ur[fi(t,2).name]=[{name:'wrapper',func:t}],Gr.prototype.clone=function(){var n=new Gr(this.__wrapped__);return n.__actions__=Ku(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ku(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ku(this.__views__),n},Gr.prototype.reverse=function(){if(this.__filtered__){var n=new Gr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Gr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=zf(n),e=t<0,u=r?n.length:0,i=Mi(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=jr(a,this.__takeCount__);if(!r||!e&&u==a&&p==a)return Iu(n,this.__actions__);var v=[];n:for(;a--&&h<p;){for(var _=-1,g=n[c+=t];++_<s;){var d=l[_],y=d.iteratee,x=d.type,b=y(g);if(2==x)g=b;else if(!b){if(1==x)continue n;break n}}v[h++]=g}return v},Pr.prototype.at=Ho,Pr.prototype.chain=function(){return Vo(this)},Pr.prototype.commit=function(){return new Vr(this.value(),this.__chain__)},Pr.prototype.next=function(){this.__values__===t&&(this.__values__=Gf(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?t:this.__values__[this.__index__++]}},Pr.prototype.plant=function(n){for(var r,e=this;e instanceof Kr;){var u=bo(e);u.__index__=0,u.__values__=t,r?i.__wrapped__=u:r=u;var i=u;e=e.__wrapped__}return i.__wrapped__=n,r},Pr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Gr){var r=n;return this.__actions__.length&&(r=new Gr(this)),(r=r.reverse()).__actions__.push({func:Go,args:[Uo],thisArg:t}),new Vr(r,this.__chain__)}return this.thru(Uo)},Pr.prototype.toJSON=Pr.prototype.valueOf=Pr.prototype.value=function(){return Iu(this.__wrapped__,this.__actions__)},Pr.prototype.first=Pr.prototype.head,cr&&(Pr.prototype[cr]=function(){return this}),Pr})();'function'==typeof define&&'object'==typeof define.amd&&define.amd?(Zn._=ur,define((function(){return ur}))):qn?((qn.exports=ur)._=ur,Pn._=ur):Zn._=ur}).call(this)}),1064,[]);
|
|
@@ -3385,8 +3385,8 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
|
3385
3385
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.timing=void 0;e.timing={mini:500,short:1e3,medium:2e3,long:3e3}}),3171,[]);
|
|
3386
3386
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))}))}),3172,[3173,3176]);
|
|
3387
3387
|
__d((function(g,r,i,a,m,e,d){var l=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),f=r(d[0])(r(d[3])),t=r(d[4]),u={en:n.default,vi:f.default};l.default.fallbacks=!0,l.default.translations=u,t.I18nManager.allowRTL(!1),t.I18nManager.forceRTL(!1)}),3173,[20,3140,3174,3175,18]);
|
|
3388
|
-
__d((function(e,t,a,o,n,r,s){n.exports={common:{cancel:"Cancel",approve:"Approve",reject:"Reject",next:"Next",enterYourPassword:"Enter your password",enterYourPIN:"Enter your PIN",confirmPIN:"Confirm with Password",confirm:"Confirm",done:"Done",search:"Search",noData:"No data",tryAgain:"Try again",ok:"OK",requireField:"This field is required",wallets:"Wallets",send:"Send",request:"Request",swap:"Swap",share:"Share",continue:"Continue",later:"Later",copied:"Copied to clipboard",copy:"Copy",save:"Save",receive:"Receive",name:"Name",max:"Max",today:"Today",thisWeek:"This week",thisMonth:"This month",earlier:"Recently",link:"Links",exit:"Exit",close:"Close",blank:"",to:"To",no_data:"No data",uninstall:"Remove",edit:"Customize",back:"Back",setting:"Settings",paste:"Paste",unknown:"Unknown",dapps:"DApps",change:"Change",all:"All",reset:"Reset",apply:"Apply",smartContract:"Smart Contract",approveTransaction:"Approved",from:"From"},error:{wrongPw:"Wrong password",incorrectPassword:"Incorrect Password",biometric_unlock_failed:"Face ID/Touch ID verification failed",biometricNotSupport:"Your phone does not support Face ID/Touch ID authentication",noAccountFound:"No account found. You can create a new account with this private key",invalidWallet:"Invalid wallet",invalidSeed:"Invalid Seed Phrase",invalidPK:"Invalid private key",invalidQR:"Invalid QR code",linkUnsuccess:"Link unsuccessfully",socketError:"Connection error",qrTimeout:"For security reasons, this QR code will be refreshed every 60 seconds.",notFoundSeed:"Seed Phrase not found",notFoundPK:"Private key not found",notFoundWalletAddress:"No wallet found\nPlease enter another Web3 wallet address",noInternetConnection:"No Internet connection",retryConnection:"Please check your Internet connection",somethingWentWrong:"Oops! Something went wrong",cantGetGasPrice:"Unable to get gas price",transaction_failed:"Transaction failed!",mediaPickerError:"An error occurred while selecting a photo from the gallery",noRelatedQR:"No QR code detected in the image",api:{network_error:"Network error",invalid_data:"Invalid data",forbidden:"You don't have permission to perform this action",not_found:"Resource not found",token_expired:"Your session has expired"},txn:{value_underflow:"The value is too small. The fractional component has exceeded the token's decimals",insufficient_funds:"Not enough {{nativeToken}} in your wallet to cover gas fees for this transaction",server_error:"Blockchain server error. Please try again",replacement_underpriced:"Replacement fee is too low. Please try again",unsupported_token_type:"{{token}} kh\xf4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3"},qrReader:"The QR code translation from the image failed",noToken:"No tokens available"},errorScreen:{title:"Something went wrong!",friendlySubtitle:"This is the screen that your users will see in production when an error is thrown. You'll want to customize this message (located in `app/i18n/en.json`) and probably the layout as well (`app/screens/error`). If you want to remove this entirely, check `app/app.tsx` for the <ErrorBoundary> component.",traceTitle:"Error from {{name}} stack",reset:"RESET APP"},shareQrModal:{title:"Ready {{typeAddress}} address",subTitle:"Ready {{typeAddress}} address",url:"data:image/png;base64,{{base64Image}}",btn:"Share QR Code"},onBoardScreen:{haveWallet:"Import wallet",web3Wallet:"Web3 Wallet",supportedBy:"Provided by Ready",termContent:"When you choose to create new wallet, you agree to be bound by ",termAndCondition:"Terms of Service",ours:"our ",createWallet:"I don't have a wallet"},creatingWallet:{initializing:"Creating your wallet...",pleaseWait:"Wallet in the making! Hang tight!",successText1:"Voil\xe0! Your wallet is ",successText2:"ready",backup:"View and backup Seed Phrase ",later:"Maybe later",myWallet:"My Wallet"},importAccount:{linkDevice:"Link a device",linkDeviceLabel:"Integrate the main wallet linked with your account.",seedPhrase:"Log in with my Seed Phrase",seedPhraseLabel:"Use the Seed Phrase of my main wallet to access my account.",privKey:"Log in with my Private Key",privKeyLabel:"Use the Private Key of my main wallet to access my account.",importAccount:"Import your existing account",importAccountLabel:"Your account and everything inside of it are securely stored on this device. Only you can have the access.",forgotSeed:{forgot:"I don't remember my seed phrase",checkWallet:"Check your wallet information again",unlucky:"In the unlucky case, you should try the way below to get your Seed Phrase (it may be stored locally in a vault of data, which has been encrypted using your password):",how:"How to recover a Seed Phrase",ok:"Ok, I got it"},qr:{sync:"Synchronizing",await:"Awaiting data from {{sourceDeviceName}}"},privateKey:{enterKey:"Enter your Private Key",yourKey:"Your Private Key",desc:"Your Private Key is a 64-character string."},seed:{enterSeed:"Enter your Seed Phrase",yourSeed:"Your Seed Phrase",desc:"Your Seed Phrase comprises 12 words separated by single spaces. For example,\nOne Two Three Four Five Six Alpha Beta Gamma Delta Epsilon Zeta."}},walletListScreen:{header:"Wallets",addNew:"Safely manage your crypto assets and enjoy easy Web3 interactions with decentralized wallets!",addNewOnSearch:"No suitable wallet found",createNew:"You can create a new wallet or import any existing one.",importWalletFromSeed:"Import with Seed Phrase",importWalletFromKey:"Import with Private key",addWallet:"Add your wallet",addWalletOrImport:"Create or Import Wallet",createNewWallet:"Create a new wallet",backToOnus:"ONUS",walletListTitle:"Web3 Wallet"},walletEditScreen:{manageToken:"Manage Token",header:"Wallet Settings",customWallet:"Customize wallet",seedBackup:"View and backup Seed Phrase",seed:"Reveal your Seed Phrase",key:"Reveal your Private Key",loadHistory:"Load History from Block Scanners",remove:"Remove Wallet",useBiometricSeed:"Use biometric authentication to reveal seed phrase",useBiometricKey:"Use biometric authentication to reveal private key",yourSeedPhrase:"Your Seed Phrase",manualBackup:"Manual backup",yourKey:"Your Private Key",removeWallet:"Remove {{walletName}}",removeWalletDes:"No further updates will be provided for this wallet. Ensure you've backed up the data.",showSeedOrKeyModal:{safeSeed:"Keep the Seed Phrase safe",safeKey:"Keep the Private Key safe",seedDes:"The Seed Phrase consists of 12 random words, serving as the primary key to your Web3 wallet. Anyone possessing this phrase can control the assets in the wallet.",keyDes:"The private key consists of a character string and serves as the primary key to your wallet. Anyone possessing this key can control the assets within the wallet.",safePlace:"Keep it in a safe place",noShare:"Don't share with anyone",beCareful:"If you lose it, we cannot restore it"},reloadHistory:"Load transactions from Block Explorers.",editName:{walletName:"Wallet name",editWalletName:"Edit wallet name",invalidName:"The wallet name must not contain special characters such as *, &, $,..."}},walletDetailScreen:{walletAdded:"Wallet Added",addNewWallet:"You have successfully added a new wallet",tokens:"Tokens",history:"History",querying:"Querying",queryResult:"Your transactions will appear here.\nNone to show just yet!",loadFromBlock:"Load history from blocks scanner",backupBanner:"Backup Not Created Yet",backupBannerContent:"Backup Seed phrase now to keep your wallet safe",myTokens:"My Tokens",manageToken:"Manage",allToken:"All your assets are hidden",importToken:"Import Token",showQr:"Show QR code",sendRequestTo:"Send a request to",loadingHistory:"Querying from block scanner. This may take a while",myContractAddress:"Contract address",chooseTime:"Choose the time",chooseTransactionType:"Select transaction type",chooseNetwork:"Select network",transaction:"Transaction",time:"Time",resetFilter:"Clear filters",transactionDate:"Transaction Date",noResult:"No matching transactions found",loadHistory:{success:"Wallet history on {{chain}} is loaded",error:"Cannot load wallet history on {{chain}}"},priceNotTracked:"Price not tracked",onusWallet:"Onus Wallet",onusName:"Onus user"},tokenDetailScreen:{warning:"This token has{{numberThreats}} warning signs",detail:"Detail",emptyTransaction:"No data available.\nTransaction history on your wallet\nwill be displayed here"},sharedWalletScreen:{saveImage:"Save image",sharedQr:"Share QR Code",title:"Scan QR Code or share wallet address to send, receive, or request tokens",photoSaved:"Saved to Photos"},passcode:{setPinTitle:"Set up a PIN code",confirmPinTitle:"Confirm the PIN code",titleButton:"Confirm and continue",error:"Incorrect PIN code. Please try again!",confirmPasscode:"PIN code confirmation",typePin:"Enter your PIN code here"},authentication:{activateBy:"Enable {{biometricType}} authentication ",safeAccess:"Ensuring secure access and transactions",setPin:"Setup PIN code",authenticateBy:"Authenticate by {{biometricType}}"},backupWallet:{rememberSeed:"Remember your Seed Phrase",descriptionSeed:"A Seed Phrase is a set of 12 random words for backup and recovery. It's like the key to your wallet - anyone with it can control your assets. Keep it private and safe; don't share it with anyone!",copyToClipboard:"Copy to clipboard",checkSeedBackup:"Have you backed up your Seed Phrase?",checkDescription:"Enter the #{{pos1}} and #{{pos2}} words of your Seed Phrase to confirm that you have backed it up"},walletDetail:{requestTrans:"Request a transaction",sendTrans:"Send a transaction",request:"Request",send:"Send",assets:"Assets",collectibles:"Collectibles",transactionStatus:{confirmed:"Confirmed",error:"Error",pending:"Pending"}},WalletAppearanceScreen:{title:"Customize Wallet",enterWalletName:"Enter wallet name"},sendToken:{yourOtherWallet:"Send to your other wallets",youWantToSend:"You are sending to",contactOrWalletAddress:"Search contact name or wallet address",chooseWallet:"Choose wallet to receive",notFoundWallet:"No wallet found",notEnoughToken:"Insufficient balance",notValid:"Invalid value",youAreSendingTo:"You are sending to",usingMax:"Using Max",useMax:"Use Max",recently:"Recently",transaction_confirmed:"Send token successfully!",confirmTransactionTo:"Confirm sending",totalValue:"Total",feeEstimate:"Transaction fee",from:"From",sendTokenValue:"Token value {{tokenSymbol}}",confirmText:"Please review the information before confirming. Once confirmed, your transaction cannot be changed.",processingTransaction:"Processing transaction...",pleaseWait:"Please wait for a moment",confirmAndSend:"Confirm and send",chooseWalletToSend:"Choose wallet to send",notAvailableToken:"This token is not available",sendToSelf:"Duplicate wallet address"},receiveToken:{qRCode:"Wallet QR code",description:"Share your QR code to receive from others",chooseWallet:"Choose wallet to receive"},QR:{scanQR:"QR scan",scanQRTitle:"Scan QR code",directCameraToObject:"Point camera to QR code"},createWallet:{createNewWallet:"Create new wallet",walletName:"Wallet name (only shown to you)",walletBackground:"Cover",symbol:"Choose Emoji"},importWallet:{importBySeedphrase:"Log in with Seed Phrase",seedPhraseDescription:"The Seed Phrase consists of 12 words provided when you create your wallet. For example, ",seedPhraseExample:"One Two Three Four Five Six Alpha Beta Gamma Delta Epsilon Zeta",importByPrivateKey:"Log in with Private Key",privateKeyDescription:"Your Private Key is a 64-character string.",seedphrase:"Seed Phrase",privateKey:"Private Key"},transactionDetail:{from:"From",to:"To",chain:"Network",fee:"Transaction fee",viewOnBlock:"View more from Block Explorers",transactionDetailTitle:"Transaction details"},backupBanner:{safeYourAssets:"Protect your assets!",backupBySeedphrase:"Start by backing up your Seed Phrase now!",backupNow:"Back up"},manageTokensScreen:{title:"Manage Tokens",multiChain:"Multi-chain",loadingNewTokens:"Loading balance of new tokens...",customToken:"Import Tokens"},chooseToken:{chooseTokenToSend:"Choose Token to send"},warningThreats:{warningThreatsTitle:"Warning: Potential risk",highRisks:"High risk detected",highRiskDescription:"are marked as unsafe. Continuing could mean losing all your funds. Please proceed carefully.",walletThreats:"Wallet flagged in {{numberThreats}} scam reports",tokenThreats:"Token flagged in {{numberThreats}} threat reports",continueAndSend:"Confirm",wallet:"Wallet",token:"Token",walletAndToken:"This wallet and token"},tokenSecurity:{report:"Threats report",warning:"This token has been marked as unsafe. Proceed with caution!",foundThreats:"{{numberThreats}} threats found"},walletSecurity:{report:"Threats report",warning:"This wallet has been marked as unsafe. Proceed with caution!",foundThreats:" threats found",wallet:"Wallet address"},importCustomToken:{warning:"Please ensure that the contract address of the token matches the network and only add trusted tokens. We are not responsible for any fraudulent activities related to the token",chooseNetwork:"Choose network",network:"Network",contractAddress:"Contract address",tokenName:"Token name",symbol:"Symbol",decimals:"Decimal",autoVerify:"Automatically verify the safety of this cryptocurrency asset with Honeypot Check, provided by ",checkAndContinue:"Check and continue",confirmToAddToken:"Confirm to import token",showDetail:"Show details",foundThreats:"Token flagged in {{numberThreats}} threat reports",generalInfo:"Basic information",holder:"Token holders",price:"Price",age:"Token age",tranfer:"Circulating supply",total:"Total supply",confirmToAdd:"Confirm",typeToken:"Import Token",tokenRemove:"Remove Token",poweredBy:"Powered by",whenPress:"When you choose to confirm, you agree to be bound by ",termAndCondition:"Terms of Service",ours:"our ",coingecko:"Coingecko",tokenUpdated:"Token is updated",tokenExisted:"Token already imported"},walletConnect:{title:"Connect to {{name}}",selectWallet:"Suggested wallet",changeWallet:"Change",supportedChain:"Supported networks",checkBox:"I've read and agreed to the Risk Warning when connecting my wallet to",connect:"Connect",changeWalletModal:"Change",connecting:"Connect to {{name}}",connectSuccess:"Successfully connected to {{name}}",connectFailed:"Failed to connect to {{name}}"},confirmTransactionScreen:{title:"Confirm transaction",from:"From DApp",givePermission:"To authorize",swap:"Swap",transactionWarning:"By confirming this, you authorize {{name}} to use your {{currency}} for upcoming transactions",transactionAmount:"Amount",estimateFee:"Estimated fee",maxFee:"Max. fee",transactionWallet:"Wallet",walletBalance:"Balance for transaction",feeBalance:"Balance for fee",authorized:"Authorized amount",network:"Network",transactionData:"Transaction data",rawData:"Original data",decode:"Decode",notSupported:"Decoded data is not available",inProgress:"Processing transaction...",waitMinute:"Almost there. Hang tight!",cannotDecodeData:"Decoded data unavailable",error:{noSession:"No session found, please try again",chainNotSupported:"Network {{chain}} not supported",noWalletFound:"No supported wallet found to confirm transaction"},decoded_data:{name:"Name",type:"Type",data:"Data"}},dapp:{recently:"Recently",recentlySearch:"Recently searched",mostSearched:"Most searched",searchUrl:"Search ",searchGoogle:"Search '{{search}}' using Google.",search:"Enter DApp name or links...",explore:"Explore",favorite:"Favourites",favoriteToast:"Added to Favourites",unFavoriteToast:"Removed from Favourites",connected:"Connected",connectedWallet:"Connected wallet",trend:"Trending",all:"All",exchange:"Exchange",openApp:{action:"Access",title:"Confirm app opening",desc:"You're being redirected to {{name}}",warning:"Potential risk warning",readAndUnderstand:{t1:"I have read and understand the",t2:" Potential risk ",t3:"warning when connecting my wallet to {{name}}."},hidePopupNextTime:"Hide popup next time you visit {{name}}."},notConnected:"Not connected",disconnect:{action:"Disconnect",title:"Confirm wallet disconnect",desc1:"Are you sure you want to disconnect ?",desc2:" from {{dapp}} ?"},browser:{closeAllTabs:"Close all",clearScuccess:"Cache cleared successfully",menu:{share:"Share",copy:"Copy URL",clearCache:"Clear cache",home:"Home",enable_injected_wallet:"Enable injected wallet",disable_injected_wallet:"Disable injected wallet"}},emptyFavorite:"No favorite DApps have been added yet",emptyConnected:"No connected DApps have been added yet"},settings:{securityManagement:{security:"Security",description:"To enhance security, all transactions require {{biometricType}} authentication. If you disable it, you will instead need to use a password.",changePin:"Change PIN",enterCurrentPin:"Enter current PIN",enterNewPin:"Enter new PIN",confirmPin:"Confirm the newly created PIN",confirmAndContinue:"Confirm and Continue",error:"The PIN you entered is incorrect.",errorMatch:"The PIN you entered does not match.",success:"The PIN has been successfully changed.",desBiometrics:"To enhance security, all transactions require FaceID authentication. If you disable it, you will need to use a password instead.",setPin:"Set PIN"},title:{setting:"Settings",security:"Security Management",addressBook:"Address Book",support:"Support",termAndPolicy:"Term And Policy"},addressBook:{title:"Address Book",addAddress:"Add wallet address",name:"Name",address:"Wallet Address",invalid:"Invalid wallet address",add:"Add",confirm:"Are you sure you want to delete this address?",edit:"Edit address",remove:"Remove wallet address",empty:"No wallet has been added yet",noResult:"No matching address",del_title:"Confirm wallet address deletion",del_description:"Are you sure you want to delete this wallet address? If deleted, you will have to repeat the process of adding the address from the beginning."},termAndPolicy:{cookies:"Cookies",terms:"Terms of Service",policy:"Privacy Policy",Risk:"Risk Warning","terms-wallet":"Terms of Service - Wallet"},currency:"Currency"},swapToken:{swapTitle:"You are swapping",swapToken:"Choose token to send",receiveToken:"Choose token to receive",balance:"Balance",chooseToken:"Choose token",checkingForBestPrice:"Fetching the best price...",notFoundDex:"No DEX found to support this transaction",outOfBalance:"Insufficient {{token}} balance",gasFee:"Gas fee",serviceFee:"Service fee",priceImpact:"Price impact {{number}}%",changeWallet:"Change wallet",changeAggregator:"Change DEX",best:"Best",setting:"Settings",maxInflation:"Max slippage (%)",priority:"Priority",time:{normal:"Normal",fast:"Fast",asFastAsPossible:"Urgent"},saveSetting:"Save settings",confirmTransaction:"Confirm and Swap",from:"From wallet",network:"Network",inflation:"Slippage",dexTransaction:"DEX",confirmSwap:"Confirm and Swap",swaping:"Swapping",confirmedTransaction:"Transaction Approved",onProcess:"Processing",failed:"Failed",swapFailed:"Swap failed",swapSuccess:"Swap successful",authorization:"Authorize Ready for this swap",authorizationDetail:"Authorization details",swapDetail:"Swap details",dex:"DEX",showDetail:"More details",noti:{swap_success:"Swap success",swap_failed:"Swap failed"},error:{insufficient_funds:"Insufficient {{nativeToken}}",insufficient_in_token:"Insufficient {{token}}",subswap_failed:"{{token}} ammount is too low",cannot_estimate_gas:"Unable to estimate gas fee"},allowance_config:{title:"Allowance to Ready Swap",fast:"All",fast_desc:{text1:"Allow Ready to access",text2:" all {{symbol}}",text3:" in your wallet for easier and cheaper future transaction"},sufficient:"Sufficient",sufficient_desc:{text1:"Allow Ready to access",text2:" exactly {{amount}} {{symbol}}",text3:" for this transaction"}},spender:"Spender"},approve_info:{title:"Token approval for Ready Swap",description:"Token approvals are permissions you grant for dApps to access a specific amount of your tokens. This step is required by the blockchain to execute transactions. You can revoke these permissions anytime. ",note:"Note: Token approval costs are charged by the blockchain, not by Ready.",all_info:"Allow Ready to access all of this token in your wallet. Future swaps with this token will then proceed without additional approvals, saving you time and costs. Gas fees will also be more accurately estimated.",confirm:"Okay!",all_des:"Allow Ready to access all of this token in your wallet. Future swaps with this token will then proceed without additional approvals, saving you time and costs. Gas fees will also be more accurately estimated.",sufficient_desc:"Allow Ready to access just enough of this token for the transaction. Next time, you'll need to approve the token again, incurring additional waiting time and fees. Gas fees may also be less accurately estimated."},push_noti:{new_txn:"{{wallet}} has a new transaction on {{chain}}"}}}),3174,[]);
|
|
3389
|
-
__d((function(n,t,e,h,i,c,a){i.exports={common:{cancel:"Hu\u1ef7",approve:"U\u1ef7 quy\u1ec1n",reject:"T\u1eeb ch\u1ed1i",next:"Ti\u1ebfp t\u1ee5c",enterYourPassword:"Nh\u1eadp m\u1eadt kh\u1ea9u c\u1ee7a b\u1ea1n",enterYourPIN:"Nh\u1eadp PIN c\u1ee7a b\u1ea1n",confirmPIN:"X\xe1c nh\u1eadn b\u1eb1ng m\xe3 pin",confirm:"X\xe1c nh\u1eadn",done:"Xong",search:"T\xecm ki\u1ebfm",noData:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u",tryAgain:"Th\u1eed l\u1ea1i",ok:"OK",requireField:"B\u1eaft bu\u1ed9c",wallets:"C\xe1c v\xed",send:"G\u1eedi",request:"Nh\u1eadn",swap:"Quy \u0111\u1ed5i",share:"Chia s\u1ebb",continue:"Ti\u1ebfp",later:"\u0110\u1ec3 sau",copied:"\u0110\xe3 sao ch\xe9p v\xe0o b\u1ed9 nh\u1edb t\u1ea1m",copy:"Sao ch\xe9p",save:"L\u01b0u",receive:"Nh\u1eadn",name:"T\xean",max:"T\u1ed1i \u0111a",today:"H\xf4m nay",thisWeek:"Tu\u1ea7n n\xe0y",thisMonth:"Th\xe1ng n\xe0y",earlier:"L\xe2u h\u01a1n n\u1eefa",link:"Li\xean k\u1ebft",exit:"Tho\xe1t",close:"\u0110\xf3ng",blank:"",to:"\u0110\u1ebfn",no_data:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u",uninstall:"G\u1ee1",edit:"Ch\u1ec9nh s\u1eeda",setting:"C\xe0i \u0111\u1eb7t",back:"Tr\u1edf v\u1ec1",paste:"D\xe1n",unknown:"Kh\xf4ng x\xe1c \u0111\u1ecbnh",dapps:"DApps",change:"Thay \u0111\u1ed5i",all:"T\u1ea5t c\u1ea3",reset:"\u0110\u1eb7t l\u1ea1i",apply:"\xc1p d\u1ee5ng",smartContract:"H\u1ee3p \u0111\u1ed3ng th\xf4ng minh",approveTransaction:"U\u1ef7 quy\u1ec1n",from:"T\u1eeb"},error:{wrongPw:"Sai m\u1eadt kh\u1ea9u",incorrectPassword:"M\u1eadt kh\u1ea9u kh\xf4ng \u0111\xfang",biometric_unlock_failed:"X\xe1c th\u1ef1c Face ID/Touch ID th\u1ea5t b\u1ea1i",biometricNotSupport:"\u0110i\u1ec7n tho\u1ea1i c\u1ee7a b\u1ea1n kh\xf4ng h\u1ed7 tr\u1ee3 x\xe1c th\u1ef1c Face ID/Touch ID",noAccountFound:"B\u1ea1n c\xf3 th\u1ec3 t\u1ea1o t\xe0i kho\u1ea3n m\u1edbi t\u1eeb ",invalidWallet:"V\xed kh\xf4ng h\u1ee3p l\u1ec7",invalidSeed:"C\u1ee5m t\u1eeb b\xed m\u1eadt kh\xf4ng h\u1ee3p l\u1ec7",invalidPK:"Kho\xe1 ri\xeang t\u01b0 kh\xf4ng h\u1ee3p l\u1ec7",invalidQR:"QR kh\xf4ng h\u1ee3p l\u1ec7",linkUnsuccess:"\u0110\u1ed3ng b\u1ed9 th\xe0nh c\xf4ng",socketError:"L\u1ed7i k\u1ebft n\u1ed1i",qrTimeout:"M\xe3 QR s\u1ebd \u0111\u01b0\u1ee3c t\u1ea1o l\u1ea1i sau 60s",notFoundSeed:"Kh\xf4ng t\xecm th\u1ea5y c\u1ee5m t\u1eeb b\xed m\u1eadt",notFoundPK:"Kh\xf4ng t\xecm th\u1ea5y kho\xe1 ri\xeang t\u01b0",notFoundWalletAddress:"Kh\xf4ng t\xecm th\u1ea5y th\xf4ng tin\nVui l\xf2ng nh\u1eadp \u0111\u1ecba ch\u1ec9 v\xed Web3 kh\xe1c",noInternetConnection:"M\u1ea5t k\u1ebft n\u1ed1i m\u1ea1ng",retryConnection:"Vui l\xf2ng ki\u1ec3m tra k\u1ebft n\u1ed1i m\u1ea1ng",somethingWentWrong:"C\xf3 l\u1ed7i x\u1ea3y ra",cantGetGasPrice:"Kh\xf4ng th\u1ec3 t\xednh \u0111\u01b0\u1ee3c ph\xed gas",transaction_failed:"Giao d\u1ecbch kh\xf4ng th\xe0nh c\xf4ng!",mediaPickerError:"C\xf3 l\u1ed7i x\u1ea3y ra khi ch\u1ecdn \u1ea3nh t\u1eeb th\u01b0 vi\u1ec7n",noRelatedQR:"Kh\xf4ng t\xecm th\u1ea5y m\xe3 QR trong \u1ea3nh",api:{network_error:"L\u1ed7i k\u1ebft n\u1ed1i",invalid_data:"D\u1eef li\u1ec7u kh\xf4ng h\u1ee3p l\u1ec7",forbidden:"B\u1ea1n kh\xf4ng c\xf3 quy\u1ec1n th\u1ef1c hi\u1ec7n h\xe0nh \u0111\u1ed9ng n\xe0y",not_found:"Kh\xf4ng t\u1ed3n t\u1ea1i",token_expired:"Phi\xean c\u1ee7a b\u1ea1n \u0111\xe3 h\u1ebft h\u1ea1n"},txn:{value_underflow:"Gi\xe1 tr\u1ecb qu\xe1 nh\u1ecf. Ph\u1ea7n ph\xe2n s\u1ed1 \u0111\xe3 v\u01b0\u1ee3t qu\xe1 s\u1ed1 th\u1eadp ph\xe2n c\u1ee7a token",insufficient_funds:"B\u1ea1n kh\xf4ng c\xf3 \u0111\u1ee7 {{nativeToken}} trong v\xed c\u1ee7a m\xecnh \u0111\u1ec3 ho\xe0n t\u1ea5t giao d\u1ecbch n\xe0y",server_error:"\u0110\xe3 x\u1ea3y ra l\u1ed7i v\u1edbi m\xe1y ch\u1ee7 blockchain. Vui l\xf2ng th\u1eed l\u1ea1i",replacement_underpriced:"Ph\xed thay th\u1ebf qu\xe1 th\u1ea5p. Vui l\xf2ng th\u1eed l\u1ea1i",unsupported_token_type:"{{token}} kh\xf4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3"},qrReader:"D\u1ecbch m\xe3 QR t\u1eeb \u1ea3nh th\u1ea5t b\u1ea1i",noToken:"B\u1ea1n ch\u01b0a c\xf3 t\xe0i s\u1ea3n n\xe0o"},errorScreen:{title:"L\u1ed7i!",friendlySubtitle:"\u0110\xe2y l\xe0 m\xe0n h\xecnh m\xe0 ng\u01b0\u1eddi d\xf9ng c\u1ee7a b\u1ea1n s\u1ebd th\u1ea5y khi c\xf3 l\u1ed7i x\u1ea3y ra trong qu\xe1 tr\xecnh s\u1ea3n xu\u1ea5t. B\u1ea1n s\u1ebd mu\u1ed1n t\xf9y ch\u1ec9nh th\xf4ng b\xe1o n\xe0y (n\u1eb1m trong `app/i18n/en.json`) v\xe0 c\xf3 th\u1ec3 c\u1ea3 b\u1ed1 c\u1ee5c (n\u1eb1m trong `app/screens/error`). N\u1ebfu b\u1ea1n mu\u1ed1n x\xf3a ho\xe0n to\xe0n n\xf3, ki\u1ec3m tra `app/app.tsx` cho th\xe0nh ph\u1ea7n <ErrorBoundary>.",traceTitle:"L\u1ed7i {{name}} stack",reset:"RESET APP"},shareQrModal:{title:"\u0110\u1ecba ch\u1ec9 {{typeAddress}}",subTitle:"\u0110\u1ecba ch\u1ec9 {{typeAddress}} ",url:"data:image/png;base64,{{base64Image}}",btn:"Chia s\u1ebb m\xe3 QR "},onBoardScreen:{haveWallet:"Th\xeam v\xed hi\u1ec7n c\xf3",web3Wallet:"V\xed Web3",supportedBy:"Cung c\u1ea5p b\u1edfi Ready",termContent:"Khi b\u1ea5m c\xe1c n\xfat \u1edf d\u01b0\u1edbi, b\u1ea1n \u0111\xe3 \u0111\u1ed3ng \xfd v\u1edbi ",termAndCondition:"\u0110i\u1ec1u kho\u1ea3n D\u1ecbch v\u1ee5",ours:" c\u1ee7a ch\xfang t\xf4i",createWallet:"T\xf4i ch\u01b0a c\xf3 v\xed Web3"},creatingWallet:{initializing:"\u0110ang th\xeam v\xed...",pleaseWait:"Vui l\xf2ng ch\u1edd trong gi\xe2y l\xe1t",successText1:"Ch\xfac m\u1eebng!\n V\xed c\u1ee7a b\u1ea1n \u0111\xe3 ",successText2:"s\u1eb5n s\xe0ng",backup:"Xem v\xe0 sao l\u01b0u c\u1ee5m t\u1eeb b\xed m\u1eadt",later:"\u0110\u1ec3 sau",myWallet:"V\xed c\u1ee7a t\xf4i"},importAccount:{linkDevice:"Li\xean k\u1ebft thi\u1ebft b\u1ecb",linkDeviceLabel:"K\u1ebft h\u1ee3p v\xed ch\xednh \u0111\xe3 li\xean k\u1ebft v\u1edbi t\xe0i kho\u1ea3n c\u1ee7a b\u1ea1n.",seedPhrase:"Nh\u1eadp c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a t\xf4i",seedPhraseLabel:"S\u1eed d\u1ee5ng c\u1ee5m t\u1eeb b\xed m\u1eadt (Seed Phrase) \u0111\u1ec3 truy c\u1eadp v\xed.",privKey:"Nh\u1eadp kho\xe1 ri\xeang t\u01b0",privKeyLabel:"S\u1eed d\u1ee5ng kho\xe1 ri\xeang t\u01b0 (Private Key) \u0111\u1ec3 truy c\u1eadp v\xed.",importAccount:"Nh\u1eadp v\xed hi\u1ec7n c\xf3 c\u1ee7a b\u1ea1n",importAccountLabel:"V\xed c\u1ee7a b\u1ea1n \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef an to\xe0n tr\xean thi\u1ebft b\u1ecb n\xe0y. Ch\u1ec9 c\xf3 b\u1ea1n m\u1edbi c\xf3 quy\u1ec1n truy c\u1eadp.",forgotSeed:{forgot:"T\xf4i kh\xf4ng nh\u1edb c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a m\xecnh",checkWallet:"Ki\u1ec3m tra l\u1ea1i th\xf4ng tin v\xed c\u1ee7a b\u1ea1n",unlucky:"Trong tr\u01b0\u1eddng h\u1ee3p kh\xf4ng may, b\u1ea1n n\xean th\u1eed c\xe1ch d\u01b0\u1edbi \u0111\xe2y \u0111\u1ec3 l\u1ea5y c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n (n\xf3 c\xf3 th\u1ec3 \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef c\u1ee5c b\u1ed9 trong m\u1ed9t kh\u1ed1i d\u1eef li\u1ec7u, \u0111\xe3 \u0111\u01b0\u1ee3c m\xe3 h\xf3a b\u1eb1ng m\u1eadt kh\u1ea9u c\u1ee7a b\u1ea1n):",how:"C\xe1ch kh\xf4i ph\u1ee5c c\u1ee5m t\u1eeb b\xed m\u1eadt",ok:"Ok, t\xf4i \u0111\xe3 hi\u1ec3u"},qr:{sync:"\u0110\u1ed3ng b\u1ed9 h\xf3a",await:"\u0110ang \u0111\u1ee3i d\u1eef li\u1ec7u t\u1eeb {{sourceDeviceName}}"},privateKey:{enterKey:"Nh\u1eadp Private Key c\u1ee7a b\u1ea1n",yourKey:"Private Key c\u1ee7a b\u1ea1n",desc:"Private Key c\u1ee7a b\u1ea1n l\xe0 m\u1ed9t chu\u1ed7i 64 k\xfd t\u1ef1."},seed:{enterSeed:"Nh\u1eadp c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n",yourSeed:"C\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n",desc:"C\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n bao g\u1ed3m 12 t\u1eeb, c\xe1ch nhau b\u1eb1ng kho\u1ea3ng tr\u1eafng. V\xed d\u1ee5:\nM\u1ed9t Hai Ba B\u1ed1n N\u0103m S\xe1u Alpha Beta Gamma Delta Epsilon Zeta."}},walletListScreen:{header:"V\xed",addNew:"Tr\u1ea3i nghi\u1ec7m Web3 d\u1ec5 d\xe0ng v\xe0 an to\xe0n h\u01a1n v\u1edbi v\xed phi t\u1eadp trung",addNewOnSearch:"Kh\xf4ng t\xecm th\u1ea5y v\xed ph\xf9 h\u1ee3p",createNew:"B\u1ea1n c\xf3 th\u1ec3 t\u1ea1o m\u1ed9t v\xed m\u1edbi ho\u1eb7c nh\u1eadp b\u1ea5t k\u1ef3 v\xed n\xe0o \u0111\xe3 t\u1ed3n t\u1ea1i.",importWalletFromSeed:"Th\xeam v\xed hi\u1ec7n c\xf3 b\u1eb1ng c\u1ee5m t\u1eeb b\xed m\u1eadt",importWalletFromKey:"Th\xeam v\xed hi\u1ec7n c\xf3 b\u1eb1ng kho\xe1 ri\xeang t\u01b0",addWallet:"Th\xeam v\xed",addWalletOrImport:"T\u1ea1o m\u1edbi ho\u1eb7c Th\xeam v\xed hi\u1ec7n c\xf3",createNewWallet:"T\u1ea1o v\xed Web3 m\u1edbi",backToOnus:"ONUS",walletListTitle:"V\xed Web3"},walletEditScreen:{manageToken:"Qu\u1ea3n l\xfd t\xe0i s\u1ea3n",header:"C\xe0i \u0111\u1eb7t v\xed",customWallet:"T\xf9y ch\u1ec9nh v\xed",seedBackup:"Xem v\xe0 sao l\u01b0u c\u1ee5m t\u1eeb b\xed m\u1eadt",seed:"Xem c\u1ee5m t\u1eeb b\xed m\u1eadt",key:"Xem kho\xe1 ri\xeang t\u01b0",loadHistory:"T\u1ea3i L\u1ecbch s\u1eed t\u1eeb Block Explorers",remove:"G\u1ee1 b\u1ecf v\xed n\xe0y",useBiometricSeed:"S\u1eed d\u1ee5ng x\xe1c minh sinh tr\u1eafc h\u1ecdc \u0111\u1ec3 hi\u1ec3n th\u1ecb c\u1ee5m t\u1eeb b\xed m\u1eadt",useBiometricKey:"S\u1eed d\u1ee5ng x\xe1c minh sinh tr\u1eafc h\u1ecdc \u0111\u1ec3 hi\u1ec3n th\u1ecb Private Key",yourSeedPhrase:"C\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n",manualBackup:"Sao l\u01b0u th\u1ee7 c\xf4ng",yourKey:"Private Key c\u1ee7a b\u1ea1n",removeWallet:"G\u1ee1 b\u1ecf v\xed \u201c{{walletName}}\u201c",removeWalletDes:"M\u1ecdi th\xf4ng tin li\xean quan \u0111\u1ebfn v\xed s\u1ebd kh\xf4ng c\xf2n \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt. H\xe3y \u0111\u1ea3m b\u1ea3o b\u1ea1n \u0111\xe3 sao l\u01b0u th\xf4ng tin v\u1ec1 v\xed.",showSeedOrKeyModal:{safeSeed:"Gi\u1eef an to\xe0n cho c\u1ee5m t\u1eeb b\xed m\u1eadt",safeKey:"Gi\u1eef an to\xe0n cho kho\xe1 ri\xeang t\u01b0",seedDes:"C\u1ee5m t\u1eeb b\xed m\u1eadt (Seed Phrase) g\u1ed3m 12 t\u1eeb v\xe0 l\xe0 m\u1ed9t ch\xeca kho\xe1 ch\xednh cho v\xed c\u1ee7a b\u1ea1n. B\u1ea5t k\u1ef3 ai c\xf3 c\u1ee5m t\u1eeb n\xe0y \u0111\u1ec1u c\xf3 th\u1ec3 ki\u1ec3m so\xe1t t\xe0i s\u1ea3n trong v\xed.",keyDes:"Kho\xe1 ri\xeang t\u01b0 g\u1ed3m m\u1ed9t chu\u1ed7i k\xfd t\u1ef1 v\xe0 l\xe0 m\u1ed9t ch\xeca kho\xe1 ch\xednh cho v\xed c\u1ee7a b\u1ea1n. B\u1ea5t k\u1ef3 ai c\xf3 kho\xe1 n\xe0y \u0111\u1ec1u c\xf3 th\u1ec3 ki\u1ec3m so\xe1t t\xe0i s\u1ea3n trong v\xed.",safePlace:"Gi\u1eef \u1edf n\u01a1i an to\xe0n",noShare:"Kh\xf4ng chia s\u1ebb v\u1edbi b\u1ea5t k\xec ai",beCareful:"N\u1ebfu b\u1ea1n m\u1ea5t n\xf3, ch\xfang t\xf4i kh\xf4ng th\u1ec3 kh\xf4i ph\u1ee5c l\u1ea1i"},reloadHistory:"C\u1eadp nh\u1eadt giao d\u1ecbch t\u1eeb Block Explorers",editName:{walletName:"T\xean v\xed",editWalletName:"\u0110\u1ed5i t\xean v\xed",invalidName:"T\xean v\xed kh\xf4ng ch\u1ee9a c\xe1c k\xfd t\u1ef1 \u0111\u1eb7c bi\u1ec7t *, &, $,..."}},walletDetailScreen:{walletAdded:"V\xed \u0110\xe3 Th\xeam",addNewWallet:"B\u1ea1n \u0111\xe3 th\xe0nh c\xf4ng khi th\xeam m\u1ed9t v\xed m\u1edbi",tokens:"T\xe0i s\u1ea3n",history:"L\u1ecbch s\u1eed",querying:"\u0110ang truy v\u1ea5n",queryResult:"Ch\u01b0a c\xf3 d\u1eef li\u1ec7u.\nL\u1ecbch s\u1eed giao d\u1ecbch tr\xean v\xed c\u1ee7a b\u1ea1n\ns\u1ebd \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb \u1edf \u0111\xe2y",loadFromBlock:"C\u1eadp nh\u1eadt t\u1eeb Block Explorers",backupBanner:"Ch\u01b0a T\u1ea1o B\u1ea3n Sao L\u01b0u",backupBannerContent:"Sao l\u01b0u c\u1ee5m t\u1eeb b\xed m\u1eadt ngay b\xe2y gi\u1edd \u0111\u1ec3 b\u1ea3o v\u1ec7 v\xed c\u1ee7a b\u1ea1n",myTokens:"Tokens C\u1ee7a T\xf4i",manageToken:"Qu\u1ea3n l\xfd",allToken:"B\u1ea1n \u0111\xe3 \u1ea9n t\u1ea5t c\u1ea3 t\xe0i s\u1ea3n",importToken:"Qu\u1ea3n l\xfd t\xe0i s\u1ea3n",showQr:"Hi\u1ec3n th\u1ecb m\xe3 QR",sendRequestTo:"G\u1eedi y\xeau c\u1ea7u \u0111\u1ebfn",loadingHistory:"Truy v\u1ea5n t\u1eeb block scanner. Vi\u1ec7c n\xe0y c\xf3 th\u1ec3 m\u1ea5t m\u1ed9t l\xfac",myContractAddress:"\u0110\u1ecba ch\u1ec9 h\u1ee3p \u0111\u1ed3ng",chooseTime:"Ch\u1ecdn th\u1eddi gian",chooseTransactionType:"Ch\u1ecdn lo\u1ea1i giao d\u1ecbch",chooseNetwork:"Ch\u1ecdn m\u1ea1ng l\u01b0\u1edbi",transaction:"Giao d\u1ecbch",time:"M\u1ed1c th\u1eddi gian",resetFilter:"Xo\xe1 b\u1ed9 l\u1ecdc",transactionDate:"Ng\xe0y giao d\u1ecbch",noResult:"Kh\xf4ng t\xecm th\u1ea5y giao d\u1ecbch ph\xf9 h\u1ee3p",loadHistory:{success:"L\u1ecbch s\u1eed v\xed tr\xean {{chain}} \u0111\xe3 \u0111\u01b0\u1ee3c n\u1ea1p",error:"Kh\xf4ng th\u1ec3 truy v\u1ea5n l\u1ecbch s\u1eed v\xed tr\xean {{chain}}"},priceNotTracked:"Kh\xf4ng c\xf3 th\xf4ng tin gi\xe1",onusWallet:"V\xed Onus",onusName:"Ng\u01b0\u1eddi d\xf9ng Onus"},tokenDetailScreen:{warning:"T\xe0i s\u1ea3n c\xf3{{numberThreats}} d\u1ea5u hi\u1ec7u nguy h\u1ea1i",detail:"Chi ti\u1ebft",emptyTransaction:"Ch\u01b0a c\xf3 d\u1eef li\u1ec7u.\nL\u1ecbch s\u1eed giao d\u1ecbch tr\xean v\xed c\u1ee7a b\u1ea1n\ns\u1ebd \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb \u1edf \u0111\xe2y"},sharedWalletScreen:{saveImage:"L\u01b0u \u1ea3nh",sharedQr:"Chia s\u1ebb M\xe3 QR",title:"Qu\xe9t M\xe3 QR ho\u1eb7c chia s\u1ebb \u0111\u1ecba ch\u1ec9 v\xed \u0111\u1ec3 g\u1eedi, nh\u1eadn ho\u1eb7c y\xeau c\u1ea7u token",photoSaved:"\u0110\xe3 l\u01b0u v\xe0o Photos"},passcode:{setPinTitle:"Thi\u1ebft l\u1eadp m\xe3 PIN \u0111\u1ec3 x\xe1c th\u1ef1c",confirmPinTitle:"X\xe1c nh\u1eadn l\u1ea1i m\xe3 PIN v\u1eeba t\u1ea1o",titleButton:"X\xe1c nh\u1eadn v\xe0 ti\u1ebfp t\u1ee5c",error:"M\xe3 PIN kh\xf4ng \u0111\xfang. Xin vui l\xf2ng nh\u1eadp l\u1ea1i!",confirmPasscode:"X\xe1c nh\u1eadn PIN",typePin:"Nh\u1eadp PIN \u1edf \u0111\xe2y"},authentication:{activateBy:"K\xedch ho\u1ea1t x\xe1c th\u1ef1c \nb\u1eb1ng {{biometricType}}",safeAccess:"B\u1ea3o v\u1ec7 truy c\u1eadp v\xe0 giao d\u1ecbch an to\xe0n.",setPin:"C\xe0i \u0111\u1eb7t m\xe3 PIN",authenticateBy:"X\xe1c th\u1ef1c b\u1eb1ng {{biometricType}}"},backupWallet:{rememberSeed:"Ghi nh\u1edb c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n b\xean d\u01b0\u1edbi",descriptionSeed:"C\u1ee5m t\u1eeb b\xed m\u1eadt (Seed Phrase) g\u1ed3m 12 t\u1eeb ng\u1eabu nhi\xean, l\xe0 ch\xeca kho\xe1 ch\xednh cho v\xed Web3 c\u1ee7a b\u1ea1n. B\u1ea5t k\u1ef3 ai c\xf3 c\u1ee5m t\u1eeb n\xe0y \u0111\u1ec1u c\xf3 th\u1ec3 ki\u1ec3m so\xe1t t\xe0i s\u1ea3n b\xean trong v\xed. V\xec v\u1eady, b\u1ea1n n\xean gi\u1eef n\xf3 an to\xe0n; KH\xd4NG chia s\u1ebb v\u1edbi b\u1ea5t k\u1ef3 ai!",copyToClipboard:"Sao ch\xe9p v\xe0o b\u1ed9 nh\u1edb t\u1ea1m",checkSeedBackup:"B\u1ea1n \u0111\xe3 sao l\u01b0u c\u1ee5m t\u1eeb b\xed m\u1eadt ch\u01b0a?",checkDescription:"\u0110i\u1ec1n t\u1eeb th\u1ee9 #{{pos1}} v\xe0 th\u1ee9 #{{pos2}} trong c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n \u0111\u1ec3 x\xe1c nh\u1eadn b\u1ea1n \u0111\xe3 sao l\u01b0u."},walletDetail:{requestTrans:"Y\xeau c\u1ea7u giao d\u1ecbch",sendTrans:"G\u1eedi giao d\u1ecbch",request:"Y\xeau c\u1ea7u",send:"G\u1eedi",assets:"T\xe0i s\u1ea3n",collectibles:"B\u1ed9 s\u01b0u t\u1eadp",transactionStatus:{confirmed:"Th\xe0nh c\xf4ng",error:"Th\u1ea5t b\u1ea1i",pending:"\u0110ang x\u1eed l\xfd"}},WalletAppearanceScreen:{title:"T\xf9y ch\u1ec9nh V\xed",enterWalletName:"Nh\u1eadp t\xean v\xed"},sendToken:{yourOtherWallet:"G\u1eedi \u0111\u1ebfn v\xed kh\xe1c c\u1ee7a b\u1ea1n",youWantToSend:"B\u1ea1n mu\u1ed1n g\u1eedi t\u1edbi",contactOrWalletAddress:"M\u1ed9t li\xean h\u1ec7 ho\u1eb7c \u0111\u1ecba ch\u1ec9 v\xed Web3",chooseWallet:"Ch\u1ecdn v\xed mu\u1ed1n nh\u1eadn",notFoundWallet:"Kh\xf4ng t\xecm th\u1ea5y v\xed",notEnoughToken:"V\u01b0\u1ee3t qu\xe1 s\u1ed1 d\u01b0 hi\u1ec7n c\xf3 trong v\xed",notValid:"Gi\xe1 tr\u1ecb kh\xf4ng h\u1ee3p l\u1ec7",youAreSendingTo:"B\u1ea1n \u0111ang g\u1eedi \u0111\u1ebfn",usingMax:"T\u1ed1i \u0111a",useMax:"T\u1ed1i \u0111a",recently:"G\u1ea7n \u0111\xe2y",transaction_confirmed:"G\u1eedi token th\xe0nh c\xf4ng!",confirmTransactionTo:"X\xe1c nh\u1eadn giao d\u1ecbch ",totalValue:"T\u1ed5ng",feeEstimate:"Ph\xed giao d\u1ecbch",from:"T\u1eeb v\xed",sendTokenValue:"Gi\xe1 tr\u1ecb {{tokenSymbol}}",confirmText:"Vui l\xf2ng xem l\u1ea1i th\xf4ng tin tr\u01b0\u1edbc khi x\xe1c nh\u1eadn. Sau khi \u0111\u01b0\u1ee3c x\xe1c nh\u1eadn, giao d\u1ecbch c\u1ee7a b\u1ea1n s\u1ebd kh\xf4ng th\u1ec3 thay \u0111\u1ed5i \u0111\u01b0\u1ee3c.",processingTransaction:"\u0110ang x\u1eed l\xfd giao d\u1ecbch",pleaseWait:"S\u1eafp xong r\u1ed3i! B\u1ea1n vui l\xf2ng ch\u1edd trong gi\xe2y l\xe1t",confirmAndSend:"X\xe1c nh\u1eadn v\xe0 g\u1eedi",chooseWalletToSend:"Ch\u1ecdn v\xed g\u1eedi \u0111i",notAvailableToken:"T\xe0i s\u1ea3n kh\xf4ng kh\u1ea3 d\u1ee5ng",sendToSelf:"Tr\xf9ng \u0111\u1ecba ch\u1ec9 v\xed"},receiveToken:{qRCode:"M\xe3 QR v\xed",description:"Chia s\u1ebb m\xe3 QR v\xed c\u1ee7a b\u1ea1n\n\u0111\u1ec3 nh\u1eadn t\xe0i s\u1ea3n m\xe3 ho\xe1 t\u1eeb ng\u01b0\u1eddi kh\xe1c",chooseWallet:"Ch\u1ecdn v\xed mu\u1ed1n nh\u1eadn"},QR:{scanQR:"Qu\xe9t m\xe3 QR",scanQRTitle:"Qu\xe9t m\xe3 QR",directCameraToObject:"H\u01b0\u1edbng camera t\u1edbi m\xe3 QR"},createWallet:{createNewWallet:"T\u1ea1o v\xed m\u1edbi",walletName:"T\xean v\xed (ch\u1ec9 hi\u1ec3n th\u1ecb v\u1edbi b\u1ea1n)",walletBackground:"M\xe0u n\u1ec1n",symbol:"Ch\u1ecdn bi\u1ec3u t\u01b0\u1ee3ng"},importWallet:{importBySeedphrase:"Nh\u1eadp c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a v\xed",seedPhraseDescription:"C\u1ee5m t\u1eeb b\xed m\u1eadt (Seed Phrase) g\u1ed3m 12 t\u1eeb \u0111\u01b0\u1ee3c cung c\u1ea5p khi b\u1ea1n t\u1ea1o v\xed c\u1ee7a m\xecnh. V\xed d\u1ee5: ",seedPhraseExample:"One Two Three Four Five Six Alpha Beta Gamma Delta Epsilon Zeta",importByPrivateKey:"Nh\u1eadp kho\xe1 ri\xeang t\u01b0 c\u1ee7a v\xed",privateKeyDescription:"Kho\xe1 ri\xeang t\u01b0 g\u1ed3m 64 k\xfd t\u1ef1 ch\u1eef v\xe0 s\u1ed1",seedphrase:"C\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a v\xed",privateKey:"Kho\xe1 ri\xeang t\u01b0 c\u1ee7a v\xed"},transactionDetail:{from:"T\u1eeb v\xed",to:"\u0110\u1ebfn v\xed",chain:"M\u1ea1ng l\u01b0\u1edbi",fee:"Ph\xed giao d\u1ecbch",viewOnBlock:"Xem th\xeam t\u1eeb Block Explorers",transactionDetailTitle:"Chi ti\u1ebft giao d\u1ecbch"},backupBanner:{safeYourAssets:"B\u1ea3o v\u1ec7 t\xe0i s\u1ea3n c\u1ee7a b\u1ea1n",backupBySeedphrase:"B\u1eaft \u0111\u1ea7u t\u1eeb vi\u1ec7c sao l\u01b0u v\xed b\u1eb1ng c\u1ee5m t\u1eeb b\xed m\u1eadt",backupNow:"Sao l\u01b0u ngay b\xe2y gi\u1edd!"},manageTokensScreen:{title:"Qu\u1ea3n l\xfd t\xe0i s\u1ea3n",multiChain:"\u0110a m\u1ea1ng l\u01b0\u1edbi",loadingNewTokens:"C\u1eadp nh\u1eadt th\xf4ng tin token m\u1edbi...",customToken:"Th\xeam t\xe0i s\u1ea3n"},chooseToken:{chooseTokenToSend:"Ch\u1ecdn t\xe0i s\u1ea3n mu\u1ed1n g\u1eedi"},warningThreats:{warningThreatsTitle:"C\u1ea3nh b\xe1o: R\u1ee7i ro ti\u1ec1m \u1ea9n",highRisks:"Ph\xe1t hi\u1ec7n r\u1ee7i ro cao",highRiskDescription:"\u0111\u01b0\u1ee3c \u0111\xe1nh d\u1ea5u l\xe0 kh\xf4ng an to\xe0n. Ti\u1ebfp t\u1ee5c c\xf3 th\u1ec3 c\xf3 ngh\u0129a l\xe0 m\u1ea5t t\u1ea5t c\u1ea3 t\xe0i s\u1ea3n c\u1ee7a b\u1ea1n. H\xe3y ti\u1ebfn h\xe0nh c\u1ea9n th\u1eadn.",walletThreats:"V\xed c\xf3 {{numberThreats}} b\xe1o c\xe1o l\u1eeba \u0111\u1ea3o",tokenThreats:"T\xe0i s\u1ea3n c\xf3 {{numberThreats}} b\xe1o c\xe1o l\u1eeba \u0111\u1ea3o",continueAndSend:"Ti\u1ebfp t\u1ee5c v\xe0 g\u1eedi",wallet:"\u0110\u1ecba ch\u1ec9 v\xed n\xe0y",token:"T\xe0i s\u1ea3n n\xe0y",walletAndToken:"\u0110\u1ecba ch\u1ec9 v\xed v\xe0 t\xe0i s\u1ea3n n\xe0y"},tokenSecurity:{report:"B\xe1o c\xe1o m\u1ed1i \u0111e do\u1ea1",warning:"T\xe0i s\u1ea3n m\xe3 ho\xe1 n\xe0y b\u1ecb \u0111\xe1nh d\u1ea5u l\xe0 kh\xf4ng an to\xe0n. H\xe3y c\u1ea9n th\u1eadn!",foundThreats:"{{numberThreats}} m\u1ed1i \u0111e do\u1ea1 \u0111\u01b0\u1ee3c t\xecm th\u1ea5y"},walletSecurity:{report:"B\xe1o c\xe1o m\u1ed1i \u0111e do\u1ea1",warning:"\u0110\u1ecba ch\u1ec9 v\xed n\xe0y b\u1ecb \u0111\xe1nh d\u1ea5u l\xe0 kh\xf4ng an to\xe0n. H\xe3y c\u1ea9n th\u1eadn!",foundThreats:" m\u1ed1i \u0111e do\u1ea1 \u0111\u01b0\u1ee3c t\xecm th\u1ea5y",wallet:"\u0110\u1ecba ch\u1ec9 v\xed"},importCustomToken:{warning:"Vui l\xf2ng \u0111\u1ea3m b\u1ea3o \u0111\u1ecba ch\u1ec9 h\u1ee3p \u0111\u1ed3ng c\u1ee7a token kh\u1edbp v\u1edbi m\u1ea1ng l\u01b0\u1edbi v\xe0 ch\u1ec9 th\xeam c\xe1c token \u0111\xe1ng tin c\u1eady. Ch\xfang t\xf4i kh\xf4ng ch\u1ecbu tr\xe1ch nhi\u1ec7m v\u1ec1 b\u1ea5t k\u1ef3 h\xe0nh vi gian l\u1eadn n\xe0o li\xean quan \u0111\u1ebfn token.",chooseNetwork:"Ch\u1ecdn m\u1ea1ng l\u01b0\u1edbi",network:"M\u1ea1ng l\u01b0\u1edbi",contractAddress:"\u0110\u1ecba ch\u1ec9 h\u1ee3p \u0111\u1ed3ng",tokenName:"T\xean t\xe0i s\u1ea3n m\xe3 ho\xe1",symbol:"K\xfd hi\u1ec7u token",decimals:"S\u1ed1 th\u1eadp ph\xe2n",autoVerify:"T\u1ef1 \u0111\u1ed9ng x\xe1c minh \u0111\u1ed9 an to\xe0n c\u1ee7a t\xe0i s\u1ea3n m\xe3 ho\xe1 n\xe0y v\u1edbi Honeypot Check, \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi",checkAndContinue:"Ki\u1ec3m tra v\xe0 ti\u1ebfp t\u1ee5c",confirmToAddToken:"X\xe1c nh\u1eadn th\xeam t\xe0i s\u1ea3n m\xe3 ho\xe1",showDetail:"Xem chi ti\u1ebft b\xe1o c\xe1o",foundThreats:"Ph\xe1t hi\u1ec7n {{numberThreats}} b\xe1o c\xe1o m\u1ed1i \u0111e do\u1ea1 v\u1ec1 t\xe0i s\u1ea3n m\xe3 ho\xe1 n\xe0y",generalInfo:"Th\xf4ng tin chung",holder:"S\u1ed1 l\u01b0\u1ee3ng ng\u01b0\u1eddi n\u1eafm gi\u1eef",price:"Gi\xe1",age:"Tu\u1ed5i",tranfer:"Cung l\u01b0u th\xf4ng",total:"T\u1ed5ng cung",confirmToAdd:"X\xe1c nh\u1eadn th\xeam",typeToken:"Nh\u1eadp t\xe0i s\u1ea3n m\xe3 ho\xe1",tokenRemove:"Xo\xe1 t\xe0i s\u1ea3n m\xe3 ho\xe1",poweredBy:"Powered by",whenPress:"Khi b\u1ea5m \"X\xe1c nh\u1eadn th\xeam\", b\u1ea1n \u0111\xe3 \u0111\u1ed3ng \xfd v\u1edbi ",termAndCondition:"\u0110i\u1ec1u kho\u1ea3n D\u1ecbch v\u1ee5",ours:" c\u1ee7a ch\xfang t\xf4i",coingecko:"Coingecko",tokenUpdated:"T\xe0i s\u1ea3n m\xe3 ho\xe1 \u0111\xe3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt",tokenExisted:"T\xe0i s\u1ea3n m\xe3 ho\xe1 \u0111\xe3 t\u1ed3n t\u1ea1i"},walletConnect:{title:"K\u1ebft n\u1ed1i v\u1edbi {{name}}",selectWallet:"V\xed \u0111\u1ec1 xu\u1ea5t",changeWallet:"\u0110\u1ed5i v\xed",supportedChain:"C\xe1c m\u1ea1ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3",checkBox:"T\xf4i \u0111\xe3 \u0111\u1ecdc k\u0129 v\xe0 \u0111\u1ea3m b\u1ea3o tin t\u01b0\u1edfng trang m\xe0 t\xf4i \u0111ang mu\u1ed1n k\u1ebft n\u1ed1i",connect:"K\u1ebft n\u1ed1i",changeWalletModal:"Thay \u0111\u1ed5i v\xed",connecting:"B\u1ea1n \u0111ang k\u1ebft n\u1ed1i \u0111\u1ebfn {{name}}",connectSuccess:"K\u1ebft n\u1ed1i th\xe0nh c\xf4ng \u0111\u1ebfn {{name}}",connectFailed:"K\u1ebft n\u1ed1i th\u1ea5t b\u1ea1i \u0111\u1ebfn {{name}}"},confirmTransactionScreen:{title:"X\xe1c th\u1ef1c giao d\u1ecbch",from:"T\u1eeb \u1ee9ng d\u1ee5ng",givePermission:"Xin u\u1ef7 quy\u1ec1n",swap:"Trao \u0111\u1ed5i",transactionWarning:"B\u1eb1ng c\xe1ch x\xe1c th\u1ef1c giao d\u1ecbch n\xe0y, b\u1ea1n cho ph\xe9p {{name}} s\u1eed d\u1ee5ng {{currency}} c\u1ee7a b\u1ea1n cho c\xe1c giao d\u1ecbch s\u1eafp t\u1edbi",transactionAmount:"S\u1ed1 ti\u1ec1n giao d\u1ecbch",estimateFee:"Ph\xed \u01b0\u1edbc t\xednh",maxFee:"Ph\xed t\u1ed1i \u0111a",transactionWallet:"V\xed giao d\u1ecbch",walletBalance:"S\u1ed1 d\u01b0 cho giao d\u1ecbch",feeBalance:"S\u1ed1 d\u01b0 cho ph\xed",authorized:"\u0110\xe3 u\u1ef7 quy\u1ec1n",network:"M\u1ea1ng",transactionData:"D\u1eef li\u1ec7u giao d\u1ecbch",rawData:"D\u1eef li\u1ec7u g\u1ed1c",decode:"Gi\u1ea3i m\xe3",notSupported:"Ch\u01b0a h\u1ed7 tr\u1ee3 gi\u1ea3i m\xe3 \u0111o\u1ea1n d\u1eef li\u1ec7u n\xe0y",inProgress:"\u0110ang x\u1eed l\xfd giao d\u1ecbch c\u1ee7a b\u1ea1n",waitMinute:"S\u1eafp xong r\u1ed3i! Ch\u1edd th\xeam x\xedu n\u1eefa",cannotDecodeData:"D\u1eef li\u1ec7u gi\u1ea3i m\xe3 kh\xf4ng kh\u1ea3 d\u1ee5ng",error:{noSession:"Kh\xf4ng t\xecm th\u1ea5y phi\xean ho\u1ea1t \u0111\u1ed9ng n\xe0o, vui l\xf2ng k\u1ebft n\u1ed1i l\u1ea1i",chainNotSupported:"M\u1ea1ng {{chain}} kh\xf4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3",noWalletFound:"Kh\xf4ng t\xecm th\u1ea5y v\xed t\u01b0\u01a1ng \u1ee9ng \u0111\u1ec3 x\xe1c nh\u1eadn giao d\u1ecbch"},decoded_data:{name:"T\xean",type:"Lo\u1ea1i",data:"D\u1eef li\u1ec7u"}},dapp:{recently:"G\u1ea7n \u0111\xe2y",recentlySearch:"T\xecm ki\u1ebfm g\u1ea7n \u0111\xe2y",mostSearched:"T\xecm ki\u1ebfm nhi\u1ec1u nh\u1ea5t",searchUrl:"M\u1edf ",searchGoogle:"T\xecm ki\u1ebfm '{{search}}' th\xf4ng qua Google",search:"T\xecm t\xean ho\u1eb7c m\u1ed9t \u0111\u1ecba ch\u1ec9 DApp",explore:"Kh\xe1m ph\xe1",favorite:"Danh s\xe1ch y\xeau th\xedch",favoriteToast:"\u0110\xe3 th\xeam v\xe0o danh m\u1ee5c y\xeau th\xedch",unFavoriteToast:"\u0110\xe3 g\u1ee1 kh\u1ecfi danh m\u1ee5c y\xeau th\xedch",connected:"\u0110\xe3 k\u1ebft n\u1ed1i",connectedWallet:"V\xed k\u1ebft n\u1ed1i",trend:"Xu h\u01b0\u1edbng",all:"T\u1ea5t c\u1ea3",exchange:"Exchange",openApp:{action:"Truy c\u1eadp",title:"X\xe1c nh\u1eadn m\u1edf app",desc:"B\u1ea1n \u0111ang \u0111\u01b0\u1ee3c chuy\u1ec3n h\u01b0\u1edbng \u0111\u1ebfn {{name}}",warning:"C\u1ea3nh b\xe1o r\u1ee7i ro",readAndUnderstand:{t1:"T\xf4i \u0111\xe3 \u0111\u1ecdc k\u1ef9 v\xe0 hi\u1ec3u r\xf5",t2:" C\u1ea3nh b\xe1o r\u1ee7i ro ",t3:"khi k\u1ebft n\u1ed1i v\xed v\u1edbi {{name}}."},hidePopupNextTime:"Kh\xf4ng hi\u1ec3n th\u1ecb popup n\xe0y v\xe0o l\u1ea7n truy c\u1eadp {{name}} sau."},notConnected:"Ch\u01b0a k\u1ebft n\u1ed1i",disconnect:{action:"Ng\u1eaft k\u1ebft n\u1ed1i",title:"X\xe1c nh\u1eadn ng\u1eaft k\u1ebft n\u1ed1i v\xed",desc1:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n ng\u1eaft k\u1ebft n\u1ed1i v\xed ",desc2:" kh\u1ecfi {{dapp}} kh\xf4ng?"},browser:{closeAllTabs:"\u0110\xf3ng t\u1ea5t c\u1ea3",clearScuccess:"Xo\xe1 b\u1ed9 nh\u1edb \u0111\u1ec7m th\xe0nh c\xf4ng",menu:{share:"Chia s\u1ebb",copy:"Sao ch\xe9p URL",clearCache:"Xo\xe1 b\u1ed9 nh\u1edb \u0111\u1ec7m",home:"V\u1ec1 trang ch\u1ee7",enable_injected_wallet:"B\u1eadt v\xed t\xedch h\u1ee3p",disable_injected_wallet:"T\u1eaft v\xed t\xedch h\u1ee3p"}},emptyFavorite:"Danh s\xe1ch Y\xeau th\xedch c\u1ee7a b\u1ea1n \u0111ang tr\u1ed1ng",emptyConnected:"Danh s\xe1ch DApp \u0111\xe3 k\u1ebft n\u1ed1i c\u1ee7a b\u1ea1n \u0111ang tr\u1ed1ng"},settings:{securityManagement:{security:"B\u1ea3o m\u1eadt",description:"\u0110\u1ec3 t\u0103ng c\u01b0\u1eddng b\u1ea3o m\u1eadt, t\u1ea5t c\u1ea3 c\xe1c giao d\u1ecbch \u0111\u1ec1u y\xeau c\u1ea7u x\xe1c th\u1ef1c {{biometricType}}. N\u1ebfu b\u1ea1n t\u1eaft n\xf3, b\u1ea1n s\u1ebd c\u1ea7n s\u1eed d\u1ee5ng m\u1eadt kh\u1ea9u thay v\xe0o \u0111\xf3.",changePin:"Thay \u0111\u1ed5i PIN",enterCurrentPin:"Nh\u1eadp m\xe3 PIN hi\u1ec7n t\u1ea1i",enterNewPin:"Nh\u1eadp m\xe3 PIN m\u1edbi",confirmPin:"X\xe1c nh\u1eadn l\u1ea1i m\xe3 PIN v\u1eeba t\u1ea1o",confirmAndContinue:"X\xe1c nh\u1eadn v\xe0 Ti\u1ebfp t\u1ee5c",error:"M\xe3 PIN b\u1ea1n nh\u1eadp kh\xf4ng \u0111\xfang.",errorMatch:"M\xe3 PIN b\u1ea1n nh\u1eadp kh\xf4ng kh\u1edbp.",success:"M\xe3 Pin \u0111\xe3 \u0111\u01b0\u1ee3c \u0111\u1ed5i th\xe0nh c\xf4ng",desBiometrics:"\u0110\u1ec3 t\u0103ng c\u01b0\u1eddng b\u1ea3o m\u1eadt, t\u1ea5t c\u1ea3 c\xe1c giao d\u1ecbch \u0111\u1ec1u y\xeau c\u1ea7u x\xe1c th\u1ef1c FaceID. N\u1ebfu b\u1ea1n t\u1eaft n\xf3, b\u1ea1n s\u1ebd c\u1ea7n s\u1eed d\u1ee5ng m\u1eadt kh\u1ea9u thay v\xe0o \u0111\xf3.",setPin:"Thi\u1ebft l\u1eadp m\xe3 PIN"},title:{setting:"C\xe0i \u0111\u1eb7t",security:"B\u1ea3o m\u1eadt",addressBook:"S\u1ed5 \u0111\u1ecba ch\u1ec9",support:"H\u1ed7 tr\u1ee3",termAndPolicy:"\u0110i\u1ec1u kho\u1ea3n v\xe0 ch\xednh s\xe1ch"},addressBook:{title:"Danh b\u1ea1 \u0111\u1ecba ch\u1ec9",addAddress:"Th\xeam \u0111\u1ecba ch\u1ec9 v\xed",name:"T\xean",address:"\u0110\u1ecba ch\u1ec9 v\xed",invalid:"\u0110\u1ecba ch\u1ec9 v\xed kh\xf4ng h\u1ee3p l\u1ec7",add:"Th\xeam",confirm:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n xo\xe1 \u0111\u1ecba ch\u1ec9 n\xe0y kh\xf4ng?",edit:"S\u1eeda \u0111\u1ecba ch\u1ec9",remove:"Xo\xe1 \u0111\u1ecba ch\u1ec9 v\xed",empty:"B\u1ea1n ch\u01b0a th\xeam \u0111\u1ecba ch\u1ec9 v\xed n\xe0o",noResult:"Kh\xf4ng t\xecm th\u1ea5y \u0111\u1ecba ch\u1ec9 ph\xf9 h\u1ee3p",del_title:"X\xe1c nh\u1eadn xo\xe1 \u0111\u1ecba ch\u1ec9 v\xed",del_description:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n xo\xe1 \u0111\u1ecba ch\u1ec9 v\xed n\xe0y kh\xf4ng? N\u1ebfu xo\xe1, b\u1ea1n ph\u1ea3i l\u1eb7p l\u1ea1i thao t\xe1c th\xeam \u0111\u1ecba ch\u1ec9 t\u1eeb \u0111\u1ea7u."},termAndPolicy:{cookies:"Ch\xednh s\xe1ch cookie",terms:"\u0110i\u1ec1u kho\u1ea3n D\u1ecbch v\u1ee5",policy:"Ch\xednh s\xe1ch B\u1ea3o m\u1eadt",Risk:"C\u1ea3nh b\xe1o r\u1ee7i ro","terms-wallet":"\u0110i\u1ec1u kho\u1ea3n D\u1ecbch v\u1ee5 - V\xed"},currency:"\u0110\u01a1n v\u1ecb ti\u1ec1n t\u1ec7"},swapToken:{swapTitle:"B\u1ea1n \u0111ang quy \u0111\u1ed5i",swapToken:"Ch\u1ecdn t\xe0i s\u1ea3n mu\u1ed1n quy \u0111\u1ed5i",receiveToken:"Ch\u1ecdn t\xe0i s\u1ea3n mu\u1ed1n nh\u1eadn",balance:"S\u1ed1 d\u01b0",chooseToken:"Ch\u1ecdn Token",checkingForBestPrice:"\u0110ang t\xecm ki\u1ebfm gi\xe1 t\u1ed1t nh\u1ea5t...",notFoundDex:"Kh\xf4ng t\xecm th\u1ea5y DEX n\xe0o h\u1ed7 tr\u1ee3 giao d\u1ecbch n\xe0y",outOfBalance:"Kh\xf4ng \u0111\u1ee7 s\u1ed1 d\u01b0 {{token}}",gasFee:"Ph\xed gas",serviceFee:"Ph\xed d\u1ecbch v\u1ee5",priceImpact:"T\xe1c \u0111\u1ed9ng gi\xe1 {{number}}%",changeWallet:"Thay \u0111\u1ed5i v\xed",changeAggregator:"Thay \u0111\u1ed5i Aggregator",best:"T\u1ed1t nh\u1ea5t",setting:"C\xe0i \u0111\u1eb7t",maxInflation:"Tr\u01b0\u1ecdt gi\xe1 t\u1ed1i \u0111a (%)",priority:"\u01afu ti\xean",time:{normal:"B\xecnh th\u01b0\u1eddng",fast:"Nhanh",asFastAsPossible:"Kh\u1ea9n c\u1ea5p"},saveSetting:"L\u01b0u c\xe0i \u0111\u1eb7t",confirmTransaction:"X\xe1c nh\u1eadn giao d\u1ecbch",from:"T\u1eeb v\xed",network:"M\u1ea1ng",inflation:"Tr\u01b0\u1ee3t gi\xe1",dexTransaction:"Dex giao d\u1ecbch",confirmSwap:"X\xe1c nh\u1eadn quy \u0111\u1ed5i",swaping:"\u0110ang quy \u0111\u1ed5i",confirmedTransaction:"Giao d\u1ecbch \u0111\xe3 \u0111\u01b0\u1ee3c ch\u1ea5p nh\u1eadn",onProcess:"\u0110ang x\u1eed l\xfd",failed:"Kh\xf4ng th\xe0nh c\xf4ng",swapFailed:"Quy \u0111\u1ed5i th\u1ea5t b\u1ea1i",swapSuccess:"Quy \u0111\u1ed5i th\xe0nh c\xf4ng",authorization:"U\u1ef7 quy\u1ec1n cho Ready",authorizationDetail:"Chi ti\u1ebft u\u1ef7 quy\u1ec1n",swapDetail:"Chi ti\u1ebft quy \u0111\u1ed5i",dex:"S\xe0n giao d\u1ecbch",showDetail:"Xem chi ti\u1ebft",noti:{swap_success:"Quy \u0111\u1ed5i th\xe0nh c\xf4ng",swap_failed:"Quy \u0111\u1ed5i th\u1ea5t b\u1ea1i"},error:{insufficient_funds:"Kh\xf4ng \u0111\u1ee7 {{nativeToken}}",insufficient_in_token:"Kh\xf4ng \u0111\u1ee7 {{token}}",subswap_failed:"S\u1ed1 l\u01b0\u1ee3ng {{token}} qu\xe1 th\u1ea5p",cannot_estimate_gas:"Kh\xf4ng th\u1ec3 t\xednh ph\xed gas"},allowance_config:{title:"U\u1ef7 quy\u1ec1n cho Ready",fast:"To\xe0n b\u1ed9",fast_desc:{text1:"Cho ph\xe9p Ready truy c\u1eadp v\xe0o",text2:" t\u1ea5t c\u1ea3 t\xe0i s\u1ea3n {{symbol}}",text3:" trong v\xed c\u1ee7a b\u1ea1n \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\xe1c giao d\u1ecbch trong t\u01b0\u01a1ng lai d\u1ec5 d\xe0ng v\xe0 ti\u1ebft ki\u1ec7m h\u01a1n"},sufficient:"V\u1eeba \u0111\u1ee7",sufficient_desc:{text1:"Cho ph\xe9p Ready truy c\u1eadp",text2:" v\u1eeba \u0111\u1ee7 s\u1ed1 t\xe0i s\u1ea3n {{amount}} {{symbol}}",text3:" cho giao d\u1ecbch n\xe0y"}},spender:"Spender"},approve_info:{title:"U\u1ef7 quy\u1ec1n token cho Ready Swap",description:"U\u1ef7 quy\u1ec1n token l\xe0 vi\u1ec7c b\u1ea1n cho ph\xe9p dApps truy c\u1eadp v\xe0o token nh\u1ea5t \u0111\u1ecbnh trong v\xed. B\u01b0\u1edbc n\xe0y \u0111\u01b0\u1ee3c y\xeau c\u1ea7u b\u1edfi blockchain \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\xe1c giao d\u1ecbch. B\u1ea1n c\xf3 th\u1ec3 thu h\u1ed3i c\xe1c quy\u1ec1n n\xe0y b\u1ea5t c\u1ee9 l\xfac n\xe0o.",note:"L\u01b0u \xfd: Ph\xed u\u1ef7 quy\u1ec1n token do blockchain y\xeau c\u1ea7u, kh\xf4ng ph\u1ea3i Ready.",all_info:"Cho ph\xe9p Ready truy c\u1eadp v\u1eeba \u0111\u1ee7 s\u1ed1 token cho giao d\u1ecbch n\xe0y. L\u1ea7n t\u1edbi, b\u1ea1n s\u1ebd c\u1ea7n u\u1ef7 quy\u1ec1n l\u1ea1i, ph\xe1t sinh th\xeam th\u1eddi gian ch\u1edd \u0111\u1ee3i v\xe0 ph\xed. Ph\xed gas cho swap \u0111\u01b0\u1ee3c \u01b0\u1edbc t\xednh k\xe9m ch\xednh x\xe1c h\u01a1n.",confirm:"Okay!",all_des:"Cho ph\xe9p Ready truy c\u1eadp to\xe0n b\u1ed9 token n\xe0y trong v\xed c\u1ee7a b\u1ea1n. B\u1ea1n s\u1ebd kh\xf4ng ph\u1ea3i u\u1ef7 quy\u1ec1n l\u1ea1i trong c\xe1c giao d\u1ecbch t\u01b0\u01a1ng lai v\u1edbi token n\xe0y, ti\u1ebft ki\u1ec7m th\u1eddi gian v\xe0 chi ph\xed. Ph\xed gas cho swap c\u0169ng s\u1ebd \u0111\u01b0\u1ee3c \u01b0\u1edbc t\xednh ch\xednh x\xe1c h\u01a1n.",sufficient_desc:"Cho ph\xe9p Ready truy c\u1eadp v\u1eeba \u0111\u1ee7 s\u1ed1 token cho giao d\u1ecbch n\xe0y. L\u1ea7n t\u1edbi, b\u1ea1n s\u1ebd c\u1ea7n u\u1ef7 quy\u1ec1n l\u1ea1i, ph\xe1t sinh th\xeam th\u1eddi gian ch\u1edd \u0111\u1ee3i v\xe0 ph\xed. Ph\xed gas cho swap \u0111\u01b0\u1ee3c \u01b0\u1edbc t\xednh k\xe9m ch\xednh x\xe1c h\u01a1n."},push_noti:{new_txn:"{{wallet}} c\xf3 giao d\u1ecbch m\u1edbi tr\xean {{chain}}"}}}),3175,[]);
|
|
3388
|
+
__d((function(e,t,a,o,n,r,s){n.exports={common:{cancel:"Cancel",approve:"Approve",reject:"Reject",next:"Next",enterYourPassword:"Enter your password",enterYourPIN:"Enter your PIN",confirmPIN:"Confirm with Password",confirm:"Confirm",done:"Done",search:"Search",noData:"No data",tryAgain:"Try again",ok:"OK",requireField:"This field is required",wallets:"Wallets",send:"Send",request:"Request",swap:"Swap",share:"Share",continue:"Continue",later:"Later",copied:"Copied to clipboard",copy:"Copy",save:"Save",receive:"Receive",name:"Name",max:"Max",today:"Today",thisWeek:"This week",thisMonth:"This month",earlier:"Recently",link:"Links",exit:"Exit",close:"Close",blank:"",to:"To",no_data:"No data",uninstall:"Remove",edit:"Customize",back:"Back",setting:"Settings",paste:"Paste",unknown:"Unknown",dapps:"DApps",change:"Change",all:"All",reset:"Reset",apply:"Apply",smartContract:"Smart Contract",approveTransaction:"Approved",from:"From"},error:{wrongPw:"Wrong password",incorrectPassword:"Incorrect Password",biometric_unlock_failed:"Face ID/Touch ID verification failed",biometricNotSupport:"Your phone does not support Face ID/Touch ID authentication",noAccountFound:"No account found. You can create a new account with this private key",invalidWallet:"Invalid wallet",invalidSeed:"Invalid Seed Phrase",invalidPK:"Invalid private key",invalidQR:"Invalid QR code",linkUnsuccess:"Link unsuccessfully",socketError:"Connection error",qrTimeout:"For security reasons, this QR code will be refreshed every 60 seconds.",notFoundSeed:"Seed Phrase not found",notFoundPK:"Private key not found",notFoundWalletAddress:"No wallet found\nPlease enter another Web3 wallet address",noInternetConnection:"No Internet connection",retryConnection:"Please check your Internet connection",somethingWentWrong:"Oops! Something went wrong",cantGetGasPrice:"Unable to get gas price",transaction_failed:"Transaction failed!",mediaPickerError:"An error occurred while selecting a photo from the gallery",noRelatedQR:"No QR code detected in the image",api:{network_error:"Network error",invalid_data:"Invalid data",forbidden:"You don't have permission to perform this action",not_found:"Resource not found",token_expired:"Your session has expired"},txn:{value_underflow:"The value is too small. The fractional component has exceeded the token's decimals",insufficient_funds:"Not enough {{nativeToken}} in your wallet to cover gas fees for this transaction",server_error:"Blockchain server error. Please try again",replacement_underpriced:"Replacement fee is too low. Please try again",unsupported_token_type:"{{token}} kh\xf4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3"},qrReader:"The QR code translation from the image failed",noToken:"No tokens available"},errorScreen:{title:"Something went wrong!",friendlySubtitle:"This is the screen that your users will see in production when an error is thrown. You'll want to customize this message (located in `app/i18n/en.json`) and probably the layout as well (`app/screens/error`). If you want to remove this entirely, check `app/app.tsx` for the <ErrorBoundary> component.",traceTitle:"Error from {{name}} stack",reset:"RESET APP"},shareQrModal:{title:"Ready {{typeAddress}} address",subTitle:"Ready {{typeAddress}} address",url:"data:image/png;base64,{{base64Image}}",btn:"Share QR Code"},onBoardScreen:{haveWallet:"Import wallet",web3Wallet:"Web3 Wallet",supportedBy:"Provided by Ready",termContent:"When you choose to create new wallet, you agree to be bound by ",termAndCondition:"Terms of Service",ours:"our ",createWallet:"I don't have a wallet"},creatingWallet:{initializing:"Creating your wallet...",pleaseWait:"Wallet in the making! Hang tight!",successText1:"Voil\xe0! Your wallet is ",successText2:"ready",backup:"View and backup Seed Phrase ",later:"Maybe later",myWallet:"My Wallet"},importAccount:{linkDevice:"Link a device",linkDeviceLabel:"Integrate the main wallet linked with your account.",seedPhrase:"Log in with my Seed Phrase",seedPhraseLabel:"Use the Seed Phrase of my main wallet to access my account.",privKey:"Log in with my Private Key",privKeyLabel:"Use the Private Key of my main wallet to access my account.",importAccount:"Import your existing account",importAccountLabel:"Your account and everything inside of it are securely stored on this device. Only you can have the access.",forgotSeed:{forgot:"I don't remember my seed phrase",checkWallet:"Check your wallet information again",unlucky:"In the unlucky case, you should try the way below to get your Seed Phrase (it may be stored locally in a vault of data, which has been encrypted using your password):",how:"How to recover a Seed Phrase",ok:"Ok, I got it"},qr:{sync:"Synchronizing",await:"Awaiting data from {{sourceDeviceName}}"},privateKey:{enterKey:"Enter your Private Key",yourKey:"Your Private Key",desc:"Your Private Key is a 64-character string."},seed:{enterSeed:"Enter your Seed Phrase",yourSeed:"Your Seed Phrase",desc:"Your Seed Phrase comprises 12 words separated by single spaces. For example,\nOne Two Three Four Five Six Alpha Beta Gamma Delta Epsilon Zeta."}},walletListScreen:{header:"Wallets",addNew:"Safely manage your crypto assets and enjoy easy Web3 interactions with decentralized wallets!",addNewOnSearch:"No suitable wallet found",createNew:"You can create a new wallet or import any existing one.",importWalletFromSeed:"Import with Seed Phrase",importWalletFromKey:"Import with Private key",addWallet:"Add your wallet",addWalletOrImport:"Create or Import Wallet",createNewWallet:"Create a new wallet",backToOnus:"ONUS",walletListTitle:"Web3 Wallet"},walletEditScreen:{manageToken:"Manage Token",header:"Wallet Settings",customWallet:"Customize wallet",seedBackup:"View and backup Seed Phrase",seed:"Reveal your Seed Phrase",key:"Reveal your Private Key",loadHistory:"Load History from Block Scanners",remove:"Remove Wallet",useBiometricSeed:"Use biometric authentication to reveal seed phrase",useBiometricKey:"Use biometric authentication to reveal private key",yourSeedPhrase:"Your Seed Phrase",manualBackup:"Manual backup",yourKey:"Your Private Key",removeWallet:"Remove {{walletName}}",removeWalletDes:"No further updates will be provided for this wallet. Ensure you've backed up the data.",showSeedOrKeyModal:{safeSeed:"Keep the Seed Phrase safe",safeKey:"Keep the Private Key safe",seedDes:"The Seed Phrase consists of 12 random words, serving as the primary key to your Web3 wallet. Anyone possessing this phrase can control the assets in the wallet.",keyDes:"The private key consists of a character string and serves as the primary key to your wallet. Anyone possessing this key can control the assets within the wallet.",safePlace:"Keep it in a safe place",noShare:"Don't share with anyone",beCareful:"If you lose it, we cannot restore it"},reloadHistory:"Load transactions from Block Explorers.",editName:{walletName:"Wallet name",editWalletName:"Edit wallet name",invalidName:"The wallet name must not contain special characters such as *, &, $,..."}},walletDetailScreen:{walletAdded:"Wallet Added",addNewWallet:"You have successfully added a new wallet",tokens:"Tokens",history:"History",querying:"Querying",queryResult:"Your transactions will appear here.\nNone to show just yet!",loadFromBlock:"Load history from blocks scanner",backupBanner:"Backup Not Created Yet",backupBannerContent:"Backup Seed phrase now to keep your wallet safe",myTokens:"My Tokens",manageToken:"Manage",allToken:"All your assets are hidden",importToken:"Import Token",showQr:"Show QR code",sendRequestTo:"Send a request to",loadingHistory:"Querying from block scanner. This may take a while",myContractAddress:"Contract address",chooseTime:"Choose the time",chooseTransactionType:"Select transaction type",chooseNetwork:"Select network",transaction:"Transaction",time:"Time",resetFilter:"Clear filters",transactionDate:"Transaction Date",noResult:"No matching transactions found",loadHistory:{success:"Wallet history on {{chain}} is loaded",error:"Cannot load wallet history on {{chain}}"},priceNotTracked:"Price not tracked",onusWallet:"Onus Wallet",onusName:"Onus user"},tokenDetailScreen:{warning:"This token has{{numberThreats}} warning signs",detail:"Detail",emptyTransaction:"No data available.\nTransaction history on your wallet\nwill be displayed here"},sharedWalletScreen:{saveImage:"Save image",sharedQr:"Share QR Code",title:"Scan QR Code or share wallet address to send, receive, or request tokens",photoSaved:"Saved to Photos"},passcode:{setPinTitle:"Set up a PIN code",confirmPinTitle:"Confirm the PIN code",titleButton:"Confirm and continue",error:"Incorrect PIN code. Please try again!",confirmPasscode:"PIN code confirmation",typePin:"Enter your PIN code here"},authentication:{activateBy:"Enable {{biometricType}} authentication ",safeAccess:"Ensuring secure access and transactions",setPin:"Setup PIN code",authenticateBy:"Authenticate by {{biometricType}}"},backupWallet:{rememberSeed:"Remember your Seed Phrase",descriptionSeed:"A Seed Phrase is a set of 12 random words for backup and recovery. It's like the key to your wallet - anyone with it can control your assets. Keep it private and safe; don't share it with anyone!",copyToClipboard:"Copy to clipboard",checkSeedBackup:"Have you backed up your Seed Phrase?",checkDescription:"Enter the #{{pos1}} and #{{pos2}} words of your Seed Phrase to confirm that you have backed it up"},walletDetail:{requestTrans:"Request a transaction",sendTrans:"Send a transaction",request:"Request",send:"Send",assets:"Assets",collectibles:"Collectibles",transactionStatus:{confirmed:"Confirmed",error:"Error",pending:"Pending"}},WalletAppearanceScreen:{title:"Customize Wallet",enterWalletName:"Enter wallet name"},sendToken:{yourOtherWallet:"Send to your other wallets",youWantToSend:"You are sending to",contactOrWalletAddress:"Search contact name or wallet address",chooseWallet:"Choose wallet to receive",notFoundWallet:"No wallet found",notEnoughToken:"Insufficient balance",notValid:"Invalid value",youAreSendingTo:"You are sending to",usingMax:"Using Max",useMax:"Use Max",recently:"Recently",transaction_confirmed:"Send token successfully!",confirmTransactionTo:"Confirm sending",totalValue:"Total",feeEstimate:"Transaction fee",from:"From",sendTokenValue:"Token value {{tokenSymbol}}",confirmText:"Please review the information before confirming. Once confirmed, your transaction cannot be changed.",processingTransaction:"Processing transaction...",pleaseWait:"Please wait for a moment",confirmAndSend:"Confirm and send",chooseWalletToSend:"Choose wallet to send",notAvailableToken:"This token is not available",sendToSelf:"Duplicate wallet address"},receiveToken:{qRCode:"Wallet QR code",description:"Share your QR code to receive from others",chooseWallet:"Choose wallet to receive"},QR:{scanQR:"QR scan",scanQRTitle:"Scan QR code",directCameraToObject:"Point camera to QR code"},createWallet:{createNewWallet:"Create new wallet",walletName:"Wallet name (only shown to you)",walletBackground:"Cover",symbol:"Choose Emoji"},importWallet:{importBySeedphrase:"Log in with Seed Phrase",seedPhraseDescription:"The Seed Phrase consists of 12 words provided when you create your wallet. For example, ",seedPhraseExample:"One Two Three Four Five Six Alpha Beta Gamma Delta Epsilon Zeta",importByPrivateKey:"Log in with Private Key",privateKeyDescription:"Your Private Key is a 64-character string.",seedphrase:"Seed Phrase",privateKey:"Private Key"},transactionDetail:{from:"From",to:"To",chain:"Network",fee:"Transaction fee",viewOnBlock:"View more from Block Explorers",transactionDetailTitle:"Transaction details"},backupBanner:{safeYourAssets:"Protect your assets!",backupBySeedphrase:"Start by backing up your Seed Phrase now!",backupNow:"Back up"},manageTokensScreen:{title:"Manage Tokens",multiChain:"Multi-chain",loadingNewTokens:"Loading balance of new tokens...",customToken:"Import Tokens"},chooseToken:{chooseTokenToSend:"Choose Token to send"},warningThreats:{warningThreatsTitle:"Warning: Potential risk",highRisks:"High risk detected",highRiskDescription:"are marked as unsafe. Continuing could mean losing all your funds. Please proceed carefully.",walletThreats:"Wallet flagged in {{numberThreats}} scam reports",tokenThreats:"Token flagged in {{numberThreats}} threat reports",continueAndSend:"Confirm",wallet:"Wallet",token:"Token",walletAndToken:"This wallet and token"},tokenSecurity:{report:"Threats report",warning:"This token has been marked as unsafe. Proceed with caution!",foundThreats:"{{numberThreats}} threats found"},walletSecurity:{report:"Threats report",warning:"This wallet has been marked as unsafe. Proceed with caution!",foundThreats:" threats found",wallet:"Wallet address"},importCustomToken:{warning:"Please ensure that the contract address of the token matches the network and only add trusted tokens. We are not responsible for any fraudulent activities related to the token",chooseNetwork:"Choose network",network:"Network",contractAddress:"Contract address",tokenName:"Token name",symbol:"Symbol",decimals:"Decimal",autoVerify:"Automatically verify the safety of this cryptocurrency asset with Honeypot Check, provided by ",checkAndContinue:"Check and continue",confirmToAddToken:"Confirm to import token",showDetail:"Show details",foundThreats:"Token flagged in {{numberThreats}} threat reports",generalInfo:"Basic information",holder:"Token holders",price:"Price",age:"Token age",tranfer:"Circulating supply",total:"Total supply",confirmToAdd:"Confirm",typeToken:"Import Token",tokenRemove:"Remove Token",poweredBy:"Powered by",whenPress:"When you choose to confirm, you agree to be bound by ",termAndCondition:"Terms of Service",ours:"our ",coingecko:"Coingecko",tokenUpdated:"Token is updated",tokenExisted:"Token already imported"},walletConnect:{title:"Connect to {{name}}",selectWallet:"Suggested wallet",changeWallet:"Change",supportedChain:"Supported networks",checkBox:"I've read and agreed to the Risk Warning when connecting my wallet to",connect:"Connect",changeWalletModal:"Change",connecting:"Connect to {{name}}",connectSuccess:"Successfully connected to {{name}}",connectFailed:"Failed to connect to {{name}}"},confirmTransactionScreen:{title:"Confirm transaction",from:"From DApp",givePermission:"To authorize",swap:"Swap",transactionWarning:"By confirming this, you authorize {{name}} to use your {{currency}} for upcoming transactions",transactionAmount:"Amount",estimateFee:"Estimated fee",maxFee:"Max. fee",transactionWallet:"Wallet",walletBalance:"Balance for transaction",feeBalance:"Balance for fee",authorized:"Authorized amount",network:"Network",transactionData:"Transaction data",rawData:"Original data",decode:"Decode",notSupported:"Decoded data is not available",inProgress:"Processing transaction...",waitMinute:"Almost there. Hang tight!",cannotDecodeData:"Decoded data unavailable",error:{noSession:"No session found, please try again",chainNotSupported:"Network {{chain}} not supported",noWalletFound:"No supported wallet found to confirm transaction"},decoded_data:{name:"Name",type:"Type",data:"Data"}},dapp:{recently:"Recently",recentlySearch:"Recently searched",mostSearched:"Most searched",searchUrl:"Search ",searchGoogle:"Search '{{search}}' using Google.",search:"Enter DApp name or links...",explore:"Explore",favorite:"Favourites",favoriteToast:"Added to Favourites",unFavoriteToast:"Removed from Favourites",connected:"Connected",connectedWallet:"Connected wallet",trend:"Trending",all:"All",exchange:"Exchange",openApp:{action:"Access",title:"Confirm app opening",desc:"You're being redirected to {{name}}",warning:"Potential risk warning",readAndUnderstand:{t1:"I have read and understand the",t2:" Potential risk ",t3:"warning when connecting my wallet to {{name}}."},hidePopupNextTime:"Hide popup next time you visit {{name}}."},notConnected:"Not connected",disconnect:{action:"Disconnect",title:"Confirm wallet disconnect",desc1:"Are you sure you want to disconnect ?",desc2:" from {{dapp}} ?"},browser:{closeAllTabs:"Close all",clearScuccess:"Cache cleared successfully",menu:{share:"Share",copy:"Copy URL",clearCache:"Clear cache",home:"Home",enable_injected_wallet:"Enable injected wallet",disable_injected_wallet:"Disable injected wallet"}},emptyFavorite:"No favorite DApps have been added yet",emptyConnected:"No connected DApps have been added yet"},settings:{securityManagement:{security:"Security",description:"To enhance security, all transactions require {{biometricType}} authentication. If you disable it, you will instead need to use a password.",changePin:"Change PIN",enterCurrentPin:"Enter current PIN",enterNewPin:"Enter new PIN",confirmPin:"Confirm the newly created PIN",confirmAndContinue:"Confirm and Continue",error:"The PIN you entered is incorrect.",errorMatch:"The PIN you entered does not match.",success:"The PIN has been successfully changed.",desBiometrics:"To enhance security, all transactions require FaceID authentication. If you disable it, you will need to use a password instead.",setPin:"Set PIN"},title:{setting:"Settings",security:"Security Management",addressBook:"Address Book",support:"Support",termAndPolicy:"Term And Policy"},addressBook:{title:"Address Book",addAddress:"Add wallet address",name:"Name",address:"Wallet Address",invalid:"Invalid wallet address",add:"Add",confirm:"Are you sure you want to delete this address?",edit:"Edit address",remove:"Remove wallet address",empty:"No wallet has been added yet",noResult:"No matching address",del_title:"Confirm wallet address deletion",del_description:"Are you sure you want to delete this wallet address? If deleted, you will have to repeat the process of adding the address from the beginning."},termAndPolicy:{cookies:"Cookies",terms:"Terms of Service",policy:"Privacy Policy",Risk:"Risk Warning","terms-wallet":"Terms of Service - Wallet"},currency:"Currency"},swapToken:{swapTitle:"You are swapping",swapToken:"Choose token to send",receiveToken:"Choose token to receive",balance:"Balance",chooseToken:"Choose token",checkingForBestPrice:"Fetching the best price...",notFoundDex:"No DEX found to support this transaction",outOfBalance:"Insufficient {{token}} balance",gasFee:"Gas fee",serviceFee:"Service fee",priceImpact:"Price impact {{number}}%",changeWallet:"Change wallet",changeAggregator:"Change DEX",best:"Best",setting:"Settings",maxInflation:"Max slippage (%)",priority:"Priority",time:{normal:"Normal",fast:"Fast",asFastAsPossible:"Urgent"},saveSetting:"Save settings",confirmTransaction:"Confirm and Swap",from:"From wallet",network:"Network",inflation:"Slippage",dexTransaction:"DEX",confirmSwap:"Confirm and Swap",swaping:"Swapping",confirmedTransaction:"Transaction Approved",onProcess:"Processing",failed:"Failed",swapFailed:"Swap failed",swapSuccess:"Swap successful",authorization:"Authorize Ready for this swap",authorizationDetail:"Authorization details",swapDetail:"Swap details",dex:"DEX",showDetail:"More details",noti:{swap_success:"Swap success",swap_failed:"Swap failed"},error:{insufficient_funds:"Insufficient {{nativeToken}}",insufficient_in_token:"Insufficient {{token}}",subswap_failed:"{{token}} ammount is too low",cannot_estimate_gas:"Unable to estimate gas fee"},allowance_config:{title:"Allowance to Ready Swap",fast:"All",fast_desc:{text1:"Allow Ready to access",text2:" all {{symbol}}",text3:" in your wallet for easier and cheaper future transaction"},sufficient:"Sufficient",sufficient_desc:{text1:"Allow Ready to access",text2:" exactly {{amount}} {{symbol}}",text3:" for this transaction"}},spender:"Spender"},approve_info:{title:"Token approval for Ready Swap",description:"Token approvals are permissions you grant for dApps to access a specific amount of your tokens. This step is required by the blockchain to execute transactions. You can revoke these permissions anytime. ",note:"Note: Token approval costs are charged by the blockchain, not by Ready.",all_info:"Allow Ready to access all of this token in your wallet. Future swaps with this token will then proceed without additional approvals, saving you time and costs. Gas fees will also be more accurately estimated.",confirm:"Okay!",all_des:"Allow Ready to access all of this token in your wallet. Future swaps with this token will then proceed without additional approvals, saving you time and costs. Gas fees will also be more accurately estimated.",sufficient_desc:"Allow Ready to access just enough of this token for the transaction. Next time, you'll need to approve the token again, incurring additional waiting time and fees. Gas fees may also be less accurately estimated."},push_noti:{new_txn:"{{wallet}} has a new transaction on {{chain}}"},no_pk_error:{title:"Unable to locate private key for wallet {{wallet}}",desc:"This might happen due to a bug in the migration process from an older version of the application. Your wallet's private key is essential for signing transactions on the blockchain. Without it, you won't be able to send funds or interact with smart contracts.",to_resolve:"To resolve this issue:",step_1:"1. Ensure you have the latest app version installed",step_2:"2. Try removing and re-importing your wallet using the correct seed phrase or private key",contact:"If the problem persists after these steps, please contact our support team for further assistance.",note:"Remember: Never share your private key with anyone."}}}),3174,[]);
|
|
3389
|
+
__d((function(n,t,e,h,i,c,a){i.exports={common:{cancel:"Hu\u1ef7",approve:"U\u1ef7 quy\u1ec1n",reject:"T\u1eeb ch\u1ed1i",next:"Ti\u1ebfp t\u1ee5c",enterYourPassword:"Nh\u1eadp m\u1eadt kh\u1ea9u c\u1ee7a b\u1ea1n",enterYourPIN:"Nh\u1eadp PIN c\u1ee7a b\u1ea1n",confirmPIN:"X\xe1c nh\u1eadn b\u1eb1ng m\xe3 pin",confirm:"X\xe1c nh\u1eadn",done:"Xong",search:"T\xecm ki\u1ebfm",noData:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u",tryAgain:"Th\u1eed l\u1ea1i",ok:"OK",requireField:"B\u1eaft bu\u1ed9c",wallets:"C\xe1c v\xed",send:"G\u1eedi",request:"Nh\u1eadn",swap:"Quy \u0111\u1ed5i",share:"Chia s\u1ebb",continue:"Ti\u1ebfp",later:"\u0110\u1ec3 sau",copied:"\u0110\xe3 sao ch\xe9p v\xe0o b\u1ed9 nh\u1edb t\u1ea1m",copy:"Sao ch\xe9p",save:"L\u01b0u",receive:"Nh\u1eadn",name:"T\xean",max:"T\u1ed1i \u0111a",today:"H\xf4m nay",thisWeek:"Tu\u1ea7n n\xe0y",thisMonth:"Th\xe1ng n\xe0y",earlier:"L\xe2u h\u01a1n n\u1eefa",link:"Li\xean k\u1ebft",exit:"Tho\xe1t",close:"\u0110\xf3ng",blank:"",to:"\u0110\u1ebfn",no_data:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u",uninstall:"G\u1ee1",edit:"Ch\u1ec9nh s\u1eeda",setting:"C\xe0i \u0111\u1eb7t",back:"Tr\u1edf v\u1ec1",paste:"D\xe1n",unknown:"Kh\xf4ng x\xe1c \u0111\u1ecbnh",dapps:"DApps",change:"Thay \u0111\u1ed5i",all:"T\u1ea5t c\u1ea3",reset:"\u0110\u1eb7t l\u1ea1i",apply:"\xc1p d\u1ee5ng",smartContract:"H\u1ee3p \u0111\u1ed3ng th\xf4ng minh",approveTransaction:"U\u1ef7 quy\u1ec1n",from:"T\u1eeb"},error:{wrongPw:"Sai m\u1eadt kh\u1ea9u",incorrectPassword:"M\u1eadt kh\u1ea9u kh\xf4ng \u0111\xfang",biometric_unlock_failed:"X\xe1c th\u1ef1c Face ID/Touch ID th\u1ea5t b\u1ea1i",biometricNotSupport:"\u0110i\u1ec7n tho\u1ea1i c\u1ee7a b\u1ea1n kh\xf4ng h\u1ed7 tr\u1ee3 x\xe1c th\u1ef1c Face ID/Touch ID",noAccountFound:"B\u1ea1n c\xf3 th\u1ec3 t\u1ea1o t\xe0i kho\u1ea3n m\u1edbi t\u1eeb ",invalidWallet:"V\xed kh\xf4ng h\u1ee3p l\u1ec7",invalidSeed:"C\u1ee5m t\u1eeb b\xed m\u1eadt kh\xf4ng h\u1ee3p l\u1ec7",invalidPK:"Kho\xe1 ri\xeang t\u01b0 kh\xf4ng h\u1ee3p l\u1ec7",invalidQR:"QR kh\xf4ng h\u1ee3p l\u1ec7",linkUnsuccess:"\u0110\u1ed3ng b\u1ed9 th\xe0nh c\xf4ng",socketError:"L\u1ed7i k\u1ebft n\u1ed1i",qrTimeout:"M\xe3 QR s\u1ebd \u0111\u01b0\u1ee3c t\u1ea1o l\u1ea1i sau 60s",notFoundSeed:"Kh\xf4ng t\xecm th\u1ea5y c\u1ee5m t\u1eeb b\xed m\u1eadt",notFoundPK:"Kh\xf4ng t\xecm th\u1ea5y kho\xe1 ri\xeang t\u01b0",notFoundWalletAddress:"Kh\xf4ng t\xecm th\u1ea5y th\xf4ng tin\nVui l\xf2ng nh\u1eadp \u0111\u1ecba ch\u1ec9 v\xed Web3 kh\xe1c",noInternetConnection:"M\u1ea5t k\u1ebft n\u1ed1i m\u1ea1ng",retryConnection:"Vui l\xf2ng ki\u1ec3m tra k\u1ebft n\u1ed1i m\u1ea1ng",somethingWentWrong:"C\xf3 l\u1ed7i x\u1ea3y ra",cantGetGasPrice:"Kh\xf4ng th\u1ec3 t\xednh \u0111\u01b0\u1ee3c ph\xed gas",transaction_failed:"Giao d\u1ecbch kh\xf4ng th\xe0nh c\xf4ng!",mediaPickerError:"C\xf3 l\u1ed7i x\u1ea3y ra khi ch\u1ecdn \u1ea3nh t\u1eeb th\u01b0 vi\u1ec7n",noRelatedQR:"Kh\xf4ng t\xecm th\u1ea5y m\xe3 QR trong \u1ea3nh",api:{network_error:"L\u1ed7i k\u1ebft n\u1ed1i",invalid_data:"D\u1eef li\u1ec7u kh\xf4ng h\u1ee3p l\u1ec7",forbidden:"B\u1ea1n kh\xf4ng c\xf3 quy\u1ec1n th\u1ef1c hi\u1ec7n h\xe0nh \u0111\u1ed9ng n\xe0y",not_found:"Kh\xf4ng t\u1ed3n t\u1ea1i",token_expired:"Phi\xean c\u1ee7a b\u1ea1n \u0111\xe3 h\u1ebft h\u1ea1n"},txn:{value_underflow:"Gi\xe1 tr\u1ecb qu\xe1 nh\u1ecf. Ph\u1ea7n ph\xe2n s\u1ed1 \u0111\xe3 v\u01b0\u1ee3t qu\xe1 s\u1ed1 th\u1eadp ph\xe2n c\u1ee7a token",insufficient_funds:"B\u1ea1n kh\xf4ng c\xf3 \u0111\u1ee7 {{nativeToken}} trong v\xed c\u1ee7a m\xecnh \u0111\u1ec3 ho\xe0n t\u1ea5t giao d\u1ecbch n\xe0y",server_error:"\u0110\xe3 x\u1ea3y ra l\u1ed7i v\u1edbi m\xe1y ch\u1ee7 blockchain. Vui l\xf2ng th\u1eed l\u1ea1i",replacement_underpriced:"Ph\xed thay th\u1ebf qu\xe1 th\u1ea5p. Vui l\xf2ng th\u1eed l\u1ea1i",unsupported_token_type:"{{token}} kh\xf4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3"},qrReader:"D\u1ecbch m\xe3 QR t\u1eeb \u1ea3nh th\u1ea5t b\u1ea1i",noToken:"B\u1ea1n ch\u01b0a c\xf3 t\xe0i s\u1ea3n n\xe0o"},errorScreen:{title:"L\u1ed7i!",friendlySubtitle:"\u0110\xe2y l\xe0 m\xe0n h\xecnh m\xe0 ng\u01b0\u1eddi d\xf9ng c\u1ee7a b\u1ea1n s\u1ebd th\u1ea5y khi c\xf3 l\u1ed7i x\u1ea3y ra trong qu\xe1 tr\xecnh s\u1ea3n xu\u1ea5t. B\u1ea1n s\u1ebd mu\u1ed1n t\xf9y ch\u1ec9nh th\xf4ng b\xe1o n\xe0y (n\u1eb1m trong `app/i18n/en.json`) v\xe0 c\xf3 th\u1ec3 c\u1ea3 b\u1ed1 c\u1ee5c (n\u1eb1m trong `app/screens/error`). N\u1ebfu b\u1ea1n mu\u1ed1n x\xf3a ho\xe0n to\xe0n n\xf3, ki\u1ec3m tra `app/app.tsx` cho th\xe0nh ph\u1ea7n <ErrorBoundary>.",traceTitle:"L\u1ed7i {{name}} stack",reset:"RESET APP"},shareQrModal:{title:"\u0110\u1ecba ch\u1ec9 {{typeAddress}}",subTitle:"\u0110\u1ecba ch\u1ec9 {{typeAddress}} ",url:"data:image/png;base64,{{base64Image}}",btn:"Chia s\u1ebb m\xe3 QR "},onBoardScreen:{haveWallet:"Th\xeam v\xed hi\u1ec7n c\xf3",web3Wallet:"V\xed Web3",supportedBy:"Cung c\u1ea5p b\u1edfi Ready",termContent:"Khi b\u1ea5m c\xe1c n\xfat \u1edf d\u01b0\u1edbi, b\u1ea1n \u0111\xe3 \u0111\u1ed3ng \xfd v\u1edbi ",termAndCondition:"\u0110i\u1ec1u kho\u1ea3n D\u1ecbch v\u1ee5",ours:" c\u1ee7a ch\xfang t\xf4i",createWallet:"T\xf4i ch\u01b0a c\xf3 v\xed Web3"},creatingWallet:{initializing:"\u0110ang th\xeam v\xed...",pleaseWait:"Vui l\xf2ng ch\u1edd trong gi\xe2y l\xe1t",successText1:"Ch\xfac m\u1eebng!\n V\xed c\u1ee7a b\u1ea1n \u0111\xe3 ",successText2:"s\u1eb5n s\xe0ng",backup:"Xem v\xe0 sao l\u01b0u c\u1ee5m t\u1eeb b\xed m\u1eadt",later:"\u0110\u1ec3 sau",myWallet:"V\xed c\u1ee7a t\xf4i"},importAccount:{linkDevice:"Li\xean k\u1ebft thi\u1ebft b\u1ecb",linkDeviceLabel:"K\u1ebft h\u1ee3p v\xed ch\xednh \u0111\xe3 li\xean k\u1ebft v\u1edbi t\xe0i kho\u1ea3n c\u1ee7a b\u1ea1n.",seedPhrase:"Nh\u1eadp c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a t\xf4i",seedPhraseLabel:"S\u1eed d\u1ee5ng c\u1ee5m t\u1eeb b\xed m\u1eadt (Seed Phrase) \u0111\u1ec3 truy c\u1eadp v\xed.",privKey:"Nh\u1eadp kho\xe1 ri\xeang t\u01b0",privKeyLabel:"S\u1eed d\u1ee5ng kho\xe1 ri\xeang t\u01b0 (Private Key) \u0111\u1ec3 truy c\u1eadp v\xed.",importAccount:"Nh\u1eadp v\xed hi\u1ec7n c\xf3 c\u1ee7a b\u1ea1n",importAccountLabel:"V\xed c\u1ee7a b\u1ea1n \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef an to\xe0n tr\xean thi\u1ebft b\u1ecb n\xe0y. Ch\u1ec9 c\xf3 b\u1ea1n m\u1edbi c\xf3 quy\u1ec1n truy c\u1eadp.",forgotSeed:{forgot:"T\xf4i kh\xf4ng nh\u1edb c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a m\xecnh",checkWallet:"Ki\u1ec3m tra l\u1ea1i th\xf4ng tin v\xed c\u1ee7a b\u1ea1n",unlucky:"Trong tr\u01b0\u1eddng h\u1ee3p kh\xf4ng may, b\u1ea1n n\xean th\u1eed c\xe1ch d\u01b0\u1edbi \u0111\xe2y \u0111\u1ec3 l\u1ea5y c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n (n\xf3 c\xf3 th\u1ec3 \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef c\u1ee5c b\u1ed9 trong m\u1ed9t kh\u1ed1i d\u1eef li\u1ec7u, \u0111\xe3 \u0111\u01b0\u1ee3c m\xe3 h\xf3a b\u1eb1ng m\u1eadt kh\u1ea9u c\u1ee7a b\u1ea1n):",how:"C\xe1ch kh\xf4i ph\u1ee5c c\u1ee5m t\u1eeb b\xed m\u1eadt",ok:"Ok, t\xf4i \u0111\xe3 hi\u1ec3u"},qr:{sync:"\u0110\u1ed3ng b\u1ed9 h\xf3a",await:"\u0110ang \u0111\u1ee3i d\u1eef li\u1ec7u t\u1eeb {{sourceDeviceName}}"},privateKey:{enterKey:"Nh\u1eadp Private Key c\u1ee7a b\u1ea1n",yourKey:"Private Key c\u1ee7a b\u1ea1n",desc:"Private Key c\u1ee7a b\u1ea1n l\xe0 m\u1ed9t chu\u1ed7i 64 k\xfd t\u1ef1."},seed:{enterSeed:"Nh\u1eadp c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n",yourSeed:"C\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n",desc:"C\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n bao g\u1ed3m 12 t\u1eeb, c\xe1ch nhau b\u1eb1ng kho\u1ea3ng tr\u1eafng. V\xed d\u1ee5:\nM\u1ed9t Hai Ba B\u1ed1n N\u0103m S\xe1u Alpha Beta Gamma Delta Epsilon Zeta."}},walletListScreen:{header:"V\xed",addNew:"Tr\u1ea3i nghi\u1ec7m Web3 d\u1ec5 d\xe0ng v\xe0 an to\xe0n h\u01a1n v\u1edbi v\xed phi t\u1eadp trung",addNewOnSearch:"Kh\xf4ng t\xecm th\u1ea5y v\xed ph\xf9 h\u1ee3p",createNew:"B\u1ea1n c\xf3 th\u1ec3 t\u1ea1o m\u1ed9t v\xed m\u1edbi ho\u1eb7c nh\u1eadp b\u1ea5t k\u1ef3 v\xed n\xe0o \u0111\xe3 t\u1ed3n t\u1ea1i.",importWalletFromSeed:"Th\xeam v\xed hi\u1ec7n c\xf3 b\u1eb1ng c\u1ee5m t\u1eeb b\xed m\u1eadt",importWalletFromKey:"Th\xeam v\xed hi\u1ec7n c\xf3 b\u1eb1ng kho\xe1 ri\xeang t\u01b0",addWallet:"Th\xeam v\xed",addWalletOrImport:"T\u1ea1o m\u1edbi ho\u1eb7c Th\xeam v\xed hi\u1ec7n c\xf3",createNewWallet:"T\u1ea1o v\xed Web3 m\u1edbi",backToOnus:"ONUS",walletListTitle:"V\xed Web3"},walletEditScreen:{manageToken:"Qu\u1ea3n l\xfd t\xe0i s\u1ea3n",header:"C\xe0i \u0111\u1eb7t v\xed",customWallet:"T\xf9y ch\u1ec9nh v\xed",seedBackup:"Xem v\xe0 sao l\u01b0u c\u1ee5m t\u1eeb b\xed m\u1eadt",seed:"Xem c\u1ee5m t\u1eeb b\xed m\u1eadt",key:"Xem kho\xe1 ri\xeang t\u01b0",loadHistory:"T\u1ea3i L\u1ecbch s\u1eed t\u1eeb Block Explorers",remove:"G\u1ee1 b\u1ecf v\xed n\xe0y",useBiometricSeed:"S\u1eed d\u1ee5ng x\xe1c minh sinh tr\u1eafc h\u1ecdc \u0111\u1ec3 hi\u1ec3n th\u1ecb c\u1ee5m t\u1eeb b\xed m\u1eadt",useBiometricKey:"S\u1eed d\u1ee5ng x\xe1c minh sinh tr\u1eafc h\u1ecdc \u0111\u1ec3 hi\u1ec3n th\u1ecb Private Key",yourSeedPhrase:"C\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n",manualBackup:"Sao l\u01b0u th\u1ee7 c\xf4ng",yourKey:"Private Key c\u1ee7a b\u1ea1n",removeWallet:"G\u1ee1 b\u1ecf v\xed \u201c{{walletName}}\u201c",removeWalletDes:"M\u1ecdi th\xf4ng tin li\xean quan \u0111\u1ebfn v\xed s\u1ebd kh\xf4ng c\xf2n \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt. H\xe3y \u0111\u1ea3m b\u1ea3o b\u1ea1n \u0111\xe3 sao l\u01b0u th\xf4ng tin v\u1ec1 v\xed.",showSeedOrKeyModal:{safeSeed:"Gi\u1eef an to\xe0n cho c\u1ee5m t\u1eeb b\xed m\u1eadt",safeKey:"Gi\u1eef an to\xe0n cho kho\xe1 ri\xeang t\u01b0",seedDes:"C\u1ee5m t\u1eeb b\xed m\u1eadt (Seed Phrase) g\u1ed3m 12 t\u1eeb v\xe0 l\xe0 m\u1ed9t ch\xeca kho\xe1 ch\xednh cho v\xed c\u1ee7a b\u1ea1n. B\u1ea5t k\u1ef3 ai c\xf3 c\u1ee5m t\u1eeb n\xe0y \u0111\u1ec1u c\xf3 th\u1ec3 ki\u1ec3m so\xe1t t\xe0i s\u1ea3n trong v\xed.",keyDes:"Kho\xe1 ri\xeang t\u01b0 g\u1ed3m m\u1ed9t chu\u1ed7i k\xfd t\u1ef1 v\xe0 l\xe0 m\u1ed9t ch\xeca kho\xe1 ch\xednh cho v\xed c\u1ee7a b\u1ea1n. B\u1ea5t k\u1ef3 ai c\xf3 kho\xe1 n\xe0y \u0111\u1ec1u c\xf3 th\u1ec3 ki\u1ec3m so\xe1t t\xe0i s\u1ea3n trong v\xed.",safePlace:"Gi\u1eef \u1edf n\u01a1i an to\xe0n",noShare:"Kh\xf4ng chia s\u1ebb v\u1edbi b\u1ea5t k\xec ai",beCareful:"N\u1ebfu b\u1ea1n m\u1ea5t n\xf3, ch\xfang t\xf4i kh\xf4ng th\u1ec3 kh\xf4i ph\u1ee5c l\u1ea1i"},reloadHistory:"C\u1eadp nh\u1eadt giao d\u1ecbch t\u1eeb Block Explorers",editName:{walletName:"T\xean v\xed",editWalletName:"\u0110\u1ed5i t\xean v\xed",invalidName:"T\xean v\xed kh\xf4ng ch\u1ee9a c\xe1c k\xfd t\u1ef1 \u0111\u1eb7c bi\u1ec7t *, &, $,..."}},walletDetailScreen:{walletAdded:"V\xed \u0110\xe3 Th\xeam",addNewWallet:"B\u1ea1n \u0111\xe3 th\xe0nh c\xf4ng khi th\xeam m\u1ed9t v\xed m\u1edbi",tokens:"T\xe0i s\u1ea3n",history:"L\u1ecbch s\u1eed",querying:"\u0110ang truy v\u1ea5n",queryResult:"Ch\u01b0a c\xf3 d\u1eef li\u1ec7u.\nL\u1ecbch s\u1eed giao d\u1ecbch tr\xean v\xed c\u1ee7a b\u1ea1n\ns\u1ebd \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb \u1edf \u0111\xe2y",loadFromBlock:"C\u1eadp nh\u1eadt t\u1eeb Block Explorers",backupBanner:"Ch\u01b0a T\u1ea1o B\u1ea3n Sao L\u01b0u",backupBannerContent:"Sao l\u01b0u c\u1ee5m t\u1eeb b\xed m\u1eadt ngay b\xe2y gi\u1edd \u0111\u1ec3 b\u1ea3o v\u1ec7 v\xed c\u1ee7a b\u1ea1n",myTokens:"Tokens C\u1ee7a T\xf4i",manageToken:"Qu\u1ea3n l\xfd",allToken:"B\u1ea1n \u0111\xe3 \u1ea9n t\u1ea5t c\u1ea3 t\xe0i s\u1ea3n",importToken:"Qu\u1ea3n l\xfd t\xe0i s\u1ea3n",showQr:"Hi\u1ec3n th\u1ecb m\xe3 QR",sendRequestTo:"G\u1eedi y\xeau c\u1ea7u \u0111\u1ebfn",loadingHistory:"Truy v\u1ea5n t\u1eeb block scanner. Vi\u1ec7c n\xe0y c\xf3 th\u1ec3 m\u1ea5t m\u1ed9t l\xfac",myContractAddress:"\u0110\u1ecba ch\u1ec9 h\u1ee3p \u0111\u1ed3ng",chooseTime:"Ch\u1ecdn th\u1eddi gian",chooseTransactionType:"Ch\u1ecdn lo\u1ea1i giao d\u1ecbch",chooseNetwork:"Ch\u1ecdn m\u1ea1ng l\u01b0\u1edbi",transaction:"Giao d\u1ecbch",time:"M\u1ed1c th\u1eddi gian",resetFilter:"Xo\xe1 b\u1ed9 l\u1ecdc",transactionDate:"Ng\xe0y giao d\u1ecbch",noResult:"Kh\xf4ng t\xecm th\u1ea5y giao d\u1ecbch ph\xf9 h\u1ee3p",loadHistory:{success:"L\u1ecbch s\u1eed v\xed tr\xean {{chain}} \u0111\xe3 \u0111\u01b0\u1ee3c n\u1ea1p",error:"Kh\xf4ng th\u1ec3 truy v\u1ea5n l\u1ecbch s\u1eed v\xed tr\xean {{chain}}"},priceNotTracked:"Kh\xf4ng c\xf3 th\xf4ng tin gi\xe1",onusWallet:"V\xed Onus",onusName:"Ng\u01b0\u1eddi d\xf9ng Onus"},tokenDetailScreen:{warning:"T\xe0i s\u1ea3n c\xf3{{numberThreats}} d\u1ea5u hi\u1ec7u nguy h\u1ea1i",detail:"Chi ti\u1ebft",emptyTransaction:"Ch\u01b0a c\xf3 d\u1eef li\u1ec7u.\nL\u1ecbch s\u1eed giao d\u1ecbch tr\xean v\xed c\u1ee7a b\u1ea1n\ns\u1ebd \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb \u1edf \u0111\xe2y"},sharedWalletScreen:{saveImage:"L\u01b0u \u1ea3nh",sharedQr:"Chia s\u1ebb M\xe3 QR",title:"Qu\xe9t M\xe3 QR ho\u1eb7c chia s\u1ebb \u0111\u1ecba ch\u1ec9 v\xed \u0111\u1ec3 g\u1eedi, nh\u1eadn ho\u1eb7c y\xeau c\u1ea7u token",photoSaved:"\u0110\xe3 l\u01b0u v\xe0o Photos"},passcode:{setPinTitle:"Thi\u1ebft l\u1eadp m\xe3 PIN \u0111\u1ec3 x\xe1c th\u1ef1c",confirmPinTitle:"X\xe1c nh\u1eadn l\u1ea1i m\xe3 PIN v\u1eeba t\u1ea1o",titleButton:"X\xe1c nh\u1eadn v\xe0 ti\u1ebfp t\u1ee5c",error:"M\xe3 PIN kh\xf4ng \u0111\xfang. Xin vui l\xf2ng nh\u1eadp l\u1ea1i!",confirmPasscode:"X\xe1c nh\u1eadn PIN",typePin:"Nh\u1eadp PIN \u1edf \u0111\xe2y"},authentication:{activateBy:"K\xedch ho\u1ea1t x\xe1c th\u1ef1c \nb\u1eb1ng {{biometricType}}",safeAccess:"B\u1ea3o v\u1ec7 truy c\u1eadp v\xe0 giao d\u1ecbch an to\xe0n.",setPin:"C\xe0i \u0111\u1eb7t m\xe3 PIN",authenticateBy:"X\xe1c th\u1ef1c b\u1eb1ng {{biometricType}}"},backupWallet:{rememberSeed:"Ghi nh\u1edb c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n b\xean d\u01b0\u1edbi",descriptionSeed:"C\u1ee5m t\u1eeb b\xed m\u1eadt (Seed Phrase) g\u1ed3m 12 t\u1eeb ng\u1eabu nhi\xean, l\xe0 ch\xeca kho\xe1 ch\xednh cho v\xed Web3 c\u1ee7a b\u1ea1n. B\u1ea5t k\u1ef3 ai c\xf3 c\u1ee5m t\u1eeb n\xe0y \u0111\u1ec1u c\xf3 th\u1ec3 ki\u1ec3m so\xe1t t\xe0i s\u1ea3n b\xean trong v\xed. V\xec v\u1eady, b\u1ea1n n\xean gi\u1eef n\xf3 an to\xe0n; KH\xd4NG chia s\u1ebb v\u1edbi b\u1ea5t k\u1ef3 ai!",copyToClipboard:"Sao ch\xe9p v\xe0o b\u1ed9 nh\u1edb t\u1ea1m",checkSeedBackup:"B\u1ea1n \u0111\xe3 sao l\u01b0u c\u1ee5m t\u1eeb b\xed m\u1eadt ch\u01b0a?",checkDescription:"\u0110i\u1ec1n t\u1eeb th\u1ee9 #{{pos1}} v\xe0 th\u1ee9 #{{pos2}} trong c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a b\u1ea1n \u0111\u1ec3 x\xe1c nh\u1eadn b\u1ea1n \u0111\xe3 sao l\u01b0u."},walletDetail:{requestTrans:"Y\xeau c\u1ea7u giao d\u1ecbch",sendTrans:"G\u1eedi giao d\u1ecbch",request:"Y\xeau c\u1ea7u",send:"G\u1eedi",assets:"T\xe0i s\u1ea3n",collectibles:"B\u1ed9 s\u01b0u t\u1eadp",transactionStatus:{confirmed:"Th\xe0nh c\xf4ng",error:"Th\u1ea5t b\u1ea1i",pending:"\u0110ang x\u1eed l\xfd"}},WalletAppearanceScreen:{title:"T\xf9y ch\u1ec9nh V\xed",enterWalletName:"Nh\u1eadp t\xean v\xed"},sendToken:{yourOtherWallet:"G\u1eedi \u0111\u1ebfn v\xed kh\xe1c c\u1ee7a b\u1ea1n",youWantToSend:"B\u1ea1n mu\u1ed1n g\u1eedi t\u1edbi",contactOrWalletAddress:"M\u1ed9t li\xean h\u1ec7 ho\u1eb7c \u0111\u1ecba ch\u1ec9 v\xed Web3",chooseWallet:"Ch\u1ecdn v\xed mu\u1ed1n nh\u1eadn",notFoundWallet:"Kh\xf4ng t\xecm th\u1ea5y v\xed",notEnoughToken:"V\u01b0\u1ee3t qu\xe1 s\u1ed1 d\u01b0 hi\u1ec7n c\xf3 trong v\xed",notValid:"Gi\xe1 tr\u1ecb kh\xf4ng h\u1ee3p l\u1ec7",youAreSendingTo:"B\u1ea1n \u0111ang g\u1eedi \u0111\u1ebfn",usingMax:"T\u1ed1i \u0111a",useMax:"T\u1ed1i \u0111a",recently:"G\u1ea7n \u0111\xe2y",transaction_confirmed:"G\u1eedi token th\xe0nh c\xf4ng!",confirmTransactionTo:"X\xe1c nh\u1eadn giao d\u1ecbch ",totalValue:"T\u1ed5ng",feeEstimate:"Ph\xed giao d\u1ecbch",from:"T\u1eeb v\xed",sendTokenValue:"Gi\xe1 tr\u1ecb {{tokenSymbol}}",confirmText:"Vui l\xf2ng xem l\u1ea1i th\xf4ng tin tr\u01b0\u1edbc khi x\xe1c nh\u1eadn. Sau khi \u0111\u01b0\u1ee3c x\xe1c nh\u1eadn, giao d\u1ecbch c\u1ee7a b\u1ea1n s\u1ebd kh\xf4ng th\u1ec3 thay \u0111\u1ed5i \u0111\u01b0\u1ee3c.",processingTransaction:"\u0110ang x\u1eed l\xfd giao d\u1ecbch",pleaseWait:"S\u1eafp xong r\u1ed3i! B\u1ea1n vui l\xf2ng ch\u1edd trong gi\xe2y l\xe1t",confirmAndSend:"X\xe1c nh\u1eadn v\xe0 g\u1eedi",chooseWalletToSend:"Ch\u1ecdn v\xed g\u1eedi \u0111i",notAvailableToken:"T\xe0i s\u1ea3n kh\xf4ng kh\u1ea3 d\u1ee5ng",sendToSelf:"Tr\xf9ng \u0111\u1ecba ch\u1ec9 v\xed"},receiveToken:{qRCode:"M\xe3 QR v\xed",description:"Chia s\u1ebb m\xe3 QR v\xed c\u1ee7a b\u1ea1n\n\u0111\u1ec3 nh\u1eadn t\xe0i s\u1ea3n m\xe3 ho\xe1 t\u1eeb ng\u01b0\u1eddi kh\xe1c",chooseWallet:"Ch\u1ecdn v\xed mu\u1ed1n nh\u1eadn"},QR:{scanQR:"Qu\xe9t m\xe3 QR",scanQRTitle:"Qu\xe9t m\xe3 QR",directCameraToObject:"H\u01b0\u1edbng camera t\u1edbi m\xe3 QR"},createWallet:{createNewWallet:"T\u1ea1o v\xed m\u1edbi",walletName:"T\xean v\xed (ch\u1ec9 hi\u1ec3n th\u1ecb v\u1edbi b\u1ea1n)",walletBackground:"M\xe0u n\u1ec1n",symbol:"Ch\u1ecdn bi\u1ec3u t\u01b0\u1ee3ng"},importWallet:{importBySeedphrase:"Nh\u1eadp c\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a v\xed",seedPhraseDescription:"C\u1ee5m t\u1eeb b\xed m\u1eadt (Seed Phrase) g\u1ed3m 12 t\u1eeb \u0111\u01b0\u1ee3c cung c\u1ea5p khi b\u1ea1n t\u1ea1o v\xed c\u1ee7a m\xecnh. V\xed d\u1ee5: ",seedPhraseExample:"One Two Three Four Five Six Alpha Beta Gamma Delta Epsilon Zeta",importByPrivateKey:"Nh\u1eadp kho\xe1 ri\xeang t\u01b0 c\u1ee7a v\xed",privateKeyDescription:"Kho\xe1 ri\xeang t\u01b0 g\u1ed3m 64 k\xfd t\u1ef1 ch\u1eef v\xe0 s\u1ed1",seedphrase:"C\u1ee5m t\u1eeb b\xed m\u1eadt c\u1ee7a v\xed",privateKey:"Kho\xe1 ri\xeang t\u01b0 c\u1ee7a v\xed"},transactionDetail:{from:"T\u1eeb v\xed",to:"\u0110\u1ebfn v\xed",chain:"M\u1ea1ng l\u01b0\u1edbi",fee:"Ph\xed giao d\u1ecbch",viewOnBlock:"Xem th\xeam t\u1eeb Block Explorers",transactionDetailTitle:"Chi ti\u1ebft giao d\u1ecbch"},backupBanner:{safeYourAssets:"B\u1ea3o v\u1ec7 t\xe0i s\u1ea3n c\u1ee7a b\u1ea1n",backupBySeedphrase:"B\u1eaft \u0111\u1ea7u t\u1eeb vi\u1ec7c sao l\u01b0u v\xed b\u1eb1ng c\u1ee5m t\u1eeb b\xed m\u1eadt",backupNow:"Sao l\u01b0u ngay b\xe2y gi\u1edd!"},manageTokensScreen:{title:"Qu\u1ea3n l\xfd t\xe0i s\u1ea3n",multiChain:"\u0110a m\u1ea1ng l\u01b0\u1edbi",loadingNewTokens:"C\u1eadp nh\u1eadt th\xf4ng tin token m\u1edbi...",customToken:"Th\xeam t\xe0i s\u1ea3n"},chooseToken:{chooseTokenToSend:"Ch\u1ecdn t\xe0i s\u1ea3n mu\u1ed1n g\u1eedi"},warningThreats:{warningThreatsTitle:"C\u1ea3nh b\xe1o: R\u1ee7i ro ti\u1ec1m \u1ea9n",highRisks:"Ph\xe1t hi\u1ec7n r\u1ee7i ro cao",highRiskDescription:"\u0111\u01b0\u1ee3c \u0111\xe1nh d\u1ea5u l\xe0 kh\xf4ng an to\xe0n. Ti\u1ebfp t\u1ee5c c\xf3 th\u1ec3 c\xf3 ngh\u0129a l\xe0 m\u1ea5t t\u1ea5t c\u1ea3 t\xe0i s\u1ea3n c\u1ee7a b\u1ea1n. H\xe3y ti\u1ebfn h\xe0nh c\u1ea9n th\u1eadn.",walletThreats:"V\xed c\xf3 {{numberThreats}} b\xe1o c\xe1o l\u1eeba \u0111\u1ea3o",tokenThreats:"T\xe0i s\u1ea3n c\xf3 {{numberThreats}} b\xe1o c\xe1o l\u1eeba \u0111\u1ea3o",continueAndSend:"Ti\u1ebfp t\u1ee5c v\xe0 g\u1eedi",wallet:"\u0110\u1ecba ch\u1ec9 v\xed n\xe0y",token:"T\xe0i s\u1ea3n n\xe0y",walletAndToken:"\u0110\u1ecba ch\u1ec9 v\xed v\xe0 t\xe0i s\u1ea3n n\xe0y"},tokenSecurity:{report:"B\xe1o c\xe1o m\u1ed1i \u0111e do\u1ea1",warning:"T\xe0i s\u1ea3n m\xe3 ho\xe1 n\xe0y b\u1ecb \u0111\xe1nh d\u1ea5u l\xe0 kh\xf4ng an to\xe0n. H\xe3y c\u1ea9n th\u1eadn!",foundThreats:"{{numberThreats}} m\u1ed1i \u0111e do\u1ea1 \u0111\u01b0\u1ee3c t\xecm th\u1ea5y"},walletSecurity:{report:"B\xe1o c\xe1o m\u1ed1i \u0111e do\u1ea1",warning:"\u0110\u1ecba ch\u1ec9 v\xed n\xe0y b\u1ecb \u0111\xe1nh d\u1ea5u l\xe0 kh\xf4ng an to\xe0n. H\xe3y c\u1ea9n th\u1eadn!",foundThreats:" m\u1ed1i \u0111e do\u1ea1 \u0111\u01b0\u1ee3c t\xecm th\u1ea5y",wallet:"\u0110\u1ecba ch\u1ec9 v\xed"},importCustomToken:{warning:"Vui l\xf2ng \u0111\u1ea3m b\u1ea3o \u0111\u1ecba ch\u1ec9 h\u1ee3p \u0111\u1ed3ng c\u1ee7a token kh\u1edbp v\u1edbi m\u1ea1ng l\u01b0\u1edbi v\xe0 ch\u1ec9 th\xeam c\xe1c token \u0111\xe1ng tin c\u1eady. Ch\xfang t\xf4i kh\xf4ng ch\u1ecbu tr\xe1ch nhi\u1ec7m v\u1ec1 b\u1ea5t k\u1ef3 h\xe0nh vi gian l\u1eadn n\xe0o li\xean quan \u0111\u1ebfn token.",chooseNetwork:"Ch\u1ecdn m\u1ea1ng l\u01b0\u1edbi",network:"M\u1ea1ng l\u01b0\u1edbi",contractAddress:"\u0110\u1ecba ch\u1ec9 h\u1ee3p \u0111\u1ed3ng",tokenName:"T\xean t\xe0i s\u1ea3n m\xe3 ho\xe1",symbol:"K\xfd hi\u1ec7u token",decimals:"S\u1ed1 th\u1eadp ph\xe2n",autoVerify:"T\u1ef1 \u0111\u1ed9ng x\xe1c minh \u0111\u1ed9 an to\xe0n c\u1ee7a t\xe0i s\u1ea3n m\xe3 ho\xe1 n\xe0y v\u1edbi Honeypot Check, \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi",checkAndContinue:"Ki\u1ec3m tra v\xe0 ti\u1ebfp t\u1ee5c",confirmToAddToken:"X\xe1c nh\u1eadn th\xeam t\xe0i s\u1ea3n m\xe3 ho\xe1",showDetail:"Xem chi ti\u1ebft b\xe1o c\xe1o",foundThreats:"Ph\xe1t hi\u1ec7n {{numberThreats}} b\xe1o c\xe1o m\u1ed1i \u0111e do\u1ea1 v\u1ec1 t\xe0i s\u1ea3n m\xe3 ho\xe1 n\xe0y",generalInfo:"Th\xf4ng tin chung",holder:"S\u1ed1 l\u01b0\u1ee3ng ng\u01b0\u1eddi n\u1eafm gi\u1eef",price:"Gi\xe1",age:"Tu\u1ed5i",tranfer:"Cung l\u01b0u th\xf4ng",total:"T\u1ed5ng cung",confirmToAdd:"X\xe1c nh\u1eadn th\xeam",typeToken:"Nh\u1eadp t\xe0i s\u1ea3n m\xe3 ho\xe1",tokenRemove:"Xo\xe1 t\xe0i s\u1ea3n m\xe3 ho\xe1",poweredBy:"Powered by",whenPress:"Khi b\u1ea5m \"X\xe1c nh\u1eadn th\xeam\", b\u1ea1n \u0111\xe3 \u0111\u1ed3ng \xfd v\u1edbi ",termAndCondition:"\u0110i\u1ec1u kho\u1ea3n D\u1ecbch v\u1ee5",ours:" c\u1ee7a ch\xfang t\xf4i",coingecko:"Coingecko",tokenUpdated:"T\xe0i s\u1ea3n m\xe3 ho\xe1 \u0111\xe3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt",tokenExisted:"T\xe0i s\u1ea3n m\xe3 ho\xe1 \u0111\xe3 t\u1ed3n t\u1ea1i"},walletConnect:{title:"K\u1ebft n\u1ed1i v\u1edbi {{name}}",selectWallet:"V\xed \u0111\u1ec1 xu\u1ea5t",changeWallet:"\u0110\u1ed5i v\xed",supportedChain:"C\xe1c m\u1ea1ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3",checkBox:"T\xf4i \u0111\xe3 \u0111\u1ecdc k\u0129 v\xe0 \u0111\u1ea3m b\u1ea3o tin t\u01b0\u1edfng trang m\xe0 t\xf4i \u0111ang mu\u1ed1n k\u1ebft n\u1ed1i",connect:"K\u1ebft n\u1ed1i",changeWalletModal:"Thay \u0111\u1ed5i v\xed",connecting:"B\u1ea1n \u0111ang k\u1ebft n\u1ed1i \u0111\u1ebfn {{name}}",connectSuccess:"K\u1ebft n\u1ed1i th\xe0nh c\xf4ng \u0111\u1ebfn {{name}}",connectFailed:"K\u1ebft n\u1ed1i th\u1ea5t b\u1ea1i \u0111\u1ebfn {{name}}"},confirmTransactionScreen:{title:"X\xe1c th\u1ef1c giao d\u1ecbch",from:"T\u1eeb \u1ee9ng d\u1ee5ng",givePermission:"Xin u\u1ef7 quy\u1ec1n",swap:"Trao \u0111\u1ed5i",transactionWarning:"B\u1eb1ng c\xe1ch x\xe1c th\u1ef1c giao d\u1ecbch n\xe0y, b\u1ea1n cho ph\xe9p {{name}} s\u1eed d\u1ee5ng {{currency}} c\u1ee7a b\u1ea1n cho c\xe1c giao d\u1ecbch s\u1eafp t\u1edbi",transactionAmount:"S\u1ed1 ti\u1ec1n giao d\u1ecbch",estimateFee:"Ph\xed \u01b0\u1edbc t\xednh",maxFee:"Ph\xed t\u1ed1i \u0111a",transactionWallet:"V\xed giao d\u1ecbch",walletBalance:"S\u1ed1 d\u01b0 cho giao d\u1ecbch",feeBalance:"S\u1ed1 d\u01b0 cho ph\xed",authorized:"\u0110\xe3 u\u1ef7 quy\u1ec1n",network:"M\u1ea1ng",transactionData:"D\u1eef li\u1ec7u giao d\u1ecbch",rawData:"D\u1eef li\u1ec7u g\u1ed1c",decode:"Gi\u1ea3i m\xe3",notSupported:"Ch\u01b0a h\u1ed7 tr\u1ee3 gi\u1ea3i m\xe3 \u0111o\u1ea1n d\u1eef li\u1ec7u n\xe0y",inProgress:"\u0110ang x\u1eed l\xfd giao d\u1ecbch c\u1ee7a b\u1ea1n",waitMinute:"S\u1eafp xong r\u1ed3i! Ch\u1edd th\xeam x\xedu n\u1eefa",cannotDecodeData:"D\u1eef li\u1ec7u gi\u1ea3i m\xe3 kh\xf4ng kh\u1ea3 d\u1ee5ng",error:{noSession:"Kh\xf4ng t\xecm th\u1ea5y phi\xean ho\u1ea1t \u0111\u1ed9ng n\xe0o, vui l\xf2ng k\u1ebft n\u1ed1i l\u1ea1i",chainNotSupported:"M\u1ea1ng {{chain}} kh\xf4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3",noWalletFound:"Kh\xf4ng t\xecm th\u1ea5y v\xed t\u01b0\u01a1ng \u1ee9ng \u0111\u1ec3 x\xe1c nh\u1eadn giao d\u1ecbch"},decoded_data:{name:"T\xean",type:"Lo\u1ea1i",data:"D\u1eef li\u1ec7u"}},dapp:{recently:"G\u1ea7n \u0111\xe2y",recentlySearch:"T\xecm ki\u1ebfm g\u1ea7n \u0111\xe2y",mostSearched:"T\xecm ki\u1ebfm nhi\u1ec1u nh\u1ea5t",searchUrl:"M\u1edf ",searchGoogle:"T\xecm ki\u1ebfm '{{search}}' th\xf4ng qua Google",search:"T\xecm t\xean ho\u1eb7c m\u1ed9t \u0111\u1ecba ch\u1ec9 DApp",explore:"Kh\xe1m ph\xe1",favorite:"Danh s\xe1ch y\xeau th\xedch",favoriteToast:"\u0110\xe3 th\xeam v\xe0o danh m\u1ee5c y\xeau th\xedch",unFavoriteToast:"\u0110\xe3 g\u1ee1 kh\u1ecfi danh m\u1ee5c y\xeau th\xedch",connected:"\u0110\xe3 k\u1ebft n\u1ed1i",connectedWallet:"V\xed k\u1ebft n\u1ed1i",trend:"Xu h\u01b0\u1edbng",all:"T\u1ea5t c\u1ea3",exchange:"Exchange",openApp:{action:"Truy c\u1eadp",title:"X\xe1c nh\u1eadn m\u1edf app",desc:"B\u1ea1n \u0111ang \u0111\u01b0\u1ee3c chuy\u1ec3n h\u01b0\u1edbng \u0111\u1ebfn {{name}}",warning:"C\u1ea3nh b\xe1o r\u1ee7i ro",readAndUnderstand:{t1:"T\xf4i \u0111\xe3 \u0111\u1ecdc k\u1ef9 v\xe0 hi\u1ec3u r\xf5",t2:" C\u1ea3nh b\xe1o r\u1ee7i ro ",t3:"khi k\u1ebft n\u1ed1i v\xed v\u1edbi {{name}}."},hidePopupNextTime:"Kh\xf4ng hi\u1ec3n th\u1ecb popup n\xe0y v\xe0o l\u1ea7n truy c\u1eadp {{name}} sau."},notConnected:"Ch\u01b0a k\u1ebft n\u1ed1i",disconnect:{action:"Ng\u1eaft k\u1ebft n\u1ed1i",title:"X\xe1c nh\u1eadn ng\u1eaft k\u1ebft n\u1ed1i v\xed",desc1:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n ng\u1eaft k\u1ebft n\u1ed1i v\xed ",desc2:" kh\u1ecfi {{dapp}} kh\xf4ng?"},browser:{closeAllTabs:"\u0110\xf3ng t\u1ea5t c\u1ea3",clearScuccess:"Xo\xe1 b\u1ed9 nh\u1edb \u0111\u1ec7m th\xe0nh c\xf4ng",menu:{share:"Chia s\u1ebb",copy:"Sao ch\xe9p URL",clearCache:"Xo\xe1 b\u1ed9 nh\u1edb \u0111\u1ec7m",home:"V\u1ec1 trang ch\u1ee7",enable_injected_wallet:"B\u1eadt v\xed t\xedch h\u1ee3p",disable_injected_wallet:"T\u1eaft v\xed t\xedch h\u1ee3p"}},emptyFavorite:"Danh s\xe1ch Y\xeau th\xedch c\u1ee7a b\u1ea1n \u0111ang tr\u1ed1ng",emptyConnected:"Danh s\xe1ch DApp \u0111\xe3 k\u1ebft n\u1ed1i c\u1ee7a b\u1ea1n \u0111ang tr\u1ed1ng"},settings:{securityManagement:{security:"B\u1ea3o m\u1eadt",description:"\u0110\u1ec3 t\u0103ng c\u01b0\u1eddng b\u1ea3o m\u1eadt, t\u1ea5t c\u1ea3 c\xe1c giao d\u1ecbch \u0111\u1ec1u y\xeau c\u1ea7u x\xe1c th\u1ef1c {{biometricType}}. N\u1ebfu b\u1ea1n t\u1eaft n\xf3, b\u1ea1n s\u1ebd c\u1ea7n s\u1eed d\u1ee5ng m\u1eadt kh\u1ea9u thay v\xe0o \u0111\xf3.",changePin:"Thay \u0111\u1ed5i PIN",enterCurrentPin:"Nh\u1eadp m\xe3 PIN hi\u1ec7n t\u1ea1i",enterNewPin:"Nh\u1eadp m\xe3 PIN m\u1edbi",confirmPin:"X\xe1c nh\u1eadn l\u1ea1i m\xe3 PIN v\u1eeba t\u1ea1o",confirmAndContinue:"X\xe1c nh\u1eadn v\xe0 Ti\u1ebfp t\u1ee5c",error:"M\xe3 PIN b\u1ea1n nh\u1eadp kh\xf4ng \u0111\xfang.",errorMatch:"M\xe3 PIN b\u1ea1n nh\u1eadp kh\xf4ng kh\u1edbp.",success:"M\xe3 Pin \u0111\xe3 \u0111\u01b0\u1ee3c \u0111\u1ed5i th\xe0nh c\xf4ng",desBiometrics:"\u0110\u1ec3 t\u0103ng c\u01b0\u1eddng b\u1ea3o m\u1eadt, t\u1ea5t c\u1ea3 c\xe1c giao d\u1ecbch \u0111\u1ec1u y\xeau c\u1ea7u x\xe1c th\u1ef1c FaceID. N\u1ebfu b\u1ea1n t\u1eaft n\xf3, b\u1ea1n s\u1ebd c\u1ea7n s\u1eed d\u1ee5ng m\u1eadt kh\u1ea9u thay v\xe0o \u0111\xf3.",setPin:"Thi\u1ebft l\u1eadp m\xe3 PIN"},title:{setting:"C\xe0i \u0111\u1eb7t",security:"B\u1ea3o m\u1eadt",addressBook:"S\u1ed5 \u0111\u1ecba ch\u1ec9",support:"H\u1ed7 tr\u1ee3",termAndPolicy:"\u0110i\u1ec1u kho\u1ea3n v\xe0 ch\xednh s\xe1ch"},addressBook:{title:"Danh b\u1ea1 \u0111\u1ecba ch\u1ec9",addAddress:"Th\xeam \u0111\u1ecba ch\u1ec9 v\xed",name:"T\xean",address:"\u0110\u1ecba ch\u1ec9 v\xed",invalid:"\u0110\u1ecba ch\u1ec9 v\xed kh\xf4ng h\u1ee3p l\u1ec7",add:"Th\xeam",confirm:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n xo\xe1 \u0111\u1ecba ch\u1ec9 n\xe0y kh\xf4ng?",edit:"S\u1eeda \u0111\u1ecba ch\u1ec9",remove:"Xo\xe1 \u0111\u1ecba ch\u1ec9 v\xed",empty:"B\u1ea1n ch\u01b0a th\xeam \u0111\u1ecba ch\u1ec9 v\xed n\xe0o",noResult:"Kh\xf4ng t\xecm th\u1ea5y \u0111\u1ecba ch\u1ec9 ph\xf9 h\u1ee3p",del_title:"X\xe1c nh\u1eadn xo\xe1 \u0111\u1ecba ch\u1ec9 v\xed",del_description:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n xo\xe1 \u0111\u1ecba ch\u1ec9 v\xed n\xe0y kh\xf4ng? N\u1ebfu xo\xe1, b\u1ea1n ph\u1ea3i l\u1eb7p l\u1ea1i thao t\xe1c th\xeam \u0111\u1ecba ch\u1ec9 t\u1eeb \u0111\u1ea7u."},termAndPolicy:{cookies:"Ch\xednh s\xe1ch cookie",terms:"\u0110i\u1ec1u kho\u1ea3n D\u1ecbch v\u1ee5",policy:"Ch\xednh s\xe1ch B\u1ea3o m\u1eadt",Risk:"C\u1ea3nh b\xe1o r\u1ee7i ro","terms-wallet":"\u0110i\u1ec1u kho\u1ea3n D\u1ecbch v\u1ee5 - V\xed"},currency:"\u0110\u01a1n v\u1ecb ti\u1ec1n t\u1ec7"},swapToken:{swapTitle:"B\u1ea1n \u0111ang quy \u0111\u1ed5i",swapToken:"Ch\u1ecdn t\xe0i s\u1ea3n mu\u1ed1n quy \u0111\u1ed5i",receiveToken:"Ch\u1ecdn t\xe0i s\u1ea3n mu\u1ed1n nh\u1eadn",balance:"S\u1ed1 d\u01b0",chooseToken:"Ch\u1ecdn Token",checkingForBestPrice:"\u0110ang t\xecm ki\u1ebfm gi\xe1 t\u1ed1t nh\u1ea5t...",notFoundDex:"Kh\xf4ng t\xecm th\u1ea5y DEX n\xe0o h\u1ed7 tr\u1ee3 giao d\u1ecbch n\xe0y",outOfBalance:"Kh\xf4ng \u0111\u1ee7 s\u1ed1 d\u01b0 {{token}}",gasFee:"Ph\xed gas",serviceFee:"Ph\xed d\u1ecbch v\u1ee5",priceImpact:"T\xe1c \u0111\u1ed9ng gi\xe1 {{number}}%",changeWallet:"Thay \u0111\u1ed5i v\xed",changeAggregator:"Thay \u0111\u1ed5i Aggregator",best:"T\u1ed1t nh\u1ea5t",setting:"C\xe0i \u0111\u1eb7t",maxInflation:"Tr\u01b0\u1ecdt gi\xe1 t\u1ed1i \u0111a (%)",priority:"\u01afu ti\xean",time:{normal:"B\xecnh th\u01b0\u1eddng",fast:"Nhanh",asFastAsPossible:"Kh\u1ea9n c\u1ea5p"},saveSetting:"L\u01b0u c\xe0i \u0111\u1eb7t",confirmTransaction:"X\xe1c nh\u1eadn giao d\u1ecbch",from:"T\u1eeb v\xed",network:"M\u1ea1ng",inflation:"Tr\u01b0\u1ee3t gi\xe1",dexTransaction:"Dex giao d\u1ecbch",confirmSwap:"X\xe1c nh\u1eadn quy \u0111\u1ed5i",swaping:"\u0110ang quy \u0111\u1ed5i",confirmedTransaction:"Giao d\u1ecbch \u0111\xe3 \u0111\u01b0\u1ee3c ch\u1ea5p nh\u1eadn",onProcess:"\u0110ang x\u1eed l\xfd",failed:"Kh\xf4ng th\xe0nh c\xf4ng",swapFailed:"Quy \u0111\u1ed5i th\u1ea5t b\u1ea1i",swapSuccess:"Quy \u0111\u1ed5i th\xe0nh c\xf4ng",authorization:"U\u1ef7 quy\u1ec1n cho Ready",authorizationDetail:"Chi ti\u1ebft u\u1ef7 quy\u1ec1n",swapDetail:"Chi ti\u1ebft quy \u0111\u1ed5i",dex:"S\xe0n giao d\u1ecbch",showDetail:"Xem chi ti\u1ebft",noti:{swap_success:"Quy \u0111\u1ed5i th\xe0nh c\xf4ng",swap_failed:"Quy \u0111\u1ed5i th\u1ea5t b\u1ea1i"},error:{insufficient_funds:"Kh\xf4ng \u0111\u1ee7 {{nativeToken}}",insufficient_in_token:"Kh\xf4ng \u0111\u1ee7 {{token}}",subswap_failed:"S\u1ed1 l\u01b0\u1ee3ng {{token}} qu\xe1 th\u1ea5p",cannot_estimate_gas:"Kh\xf4ng th\u1ec3 t\xednh ph\xed gas"},allowance_config:{title:"U\u1ef7 quy\u1ec1n cho Ready",fast:"To\xe0n b\u1ed9",fast_desc:{text1:"Cho ph\xe9p Ready truy c\u1eadp v\xe0o",text2:" t\u1ea5t c\u1ea3 t\xe0i s\u1ea3n {{symbol}}",text3:" trong v\xed c\u1ee7a b\u1ea1n \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\xe1c giao d\u1ecbch trong t\u01b0\u01a1ng lai d\u1ec5 d\xe0ng v\xe0 ti\u1ebft ki\u1ec7m h\u01a1n"},sufficient:"V\u1eeba \u0111\u1ee7",sufficient_desc:{text1:"Cho ph\xe9p Ready truy c\u1eadp",text2:" v\u1eeba \u0111\u1ee7 s\u1ed1 t\xe0i s\u1ea3n {{amount}} {{symbol}}",text3:" cho giao d\u1ecbch n\xe0y"}},spender:"Spender"},approve_info:{title:"U\u1ef7 quy\u1ec1n token cho Ready Swap",description:"U\u1ef7 quy\u1ec1n token l\xe0 vi\u1ec7c b\u1ea1n cho ph\xe9p dApps truy c\u1eadp v\xe0o token nh\u1ea5t \u0111\u1ecbnh trong v\xed. B\u01b0\u1edbc n\xe0y \u0111\u01b0\u1ee3c y\xeau c\u1ea7u b\u1edfi blockchain \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\xe1c giao d\u1ecbch. B\u1ea1n c\xf3 th\u1ec3 thu h\u1ed3i c\xe1c quy\u1ec1n n\xe0y b\u1ea5t c\u1ee9 l\xfac n\xe0o.",note:"L\u01b0u \xfd: Ph\xed u\u1ef7 quy\u1ec1n token do blockchain y\xeau c\u1ea7u, kh\xf4ng ph\u1ea3i Ready.",all_info:"Cho ph\xe9p Ready truy c\u1eadp v\u1eeba \u0111\u1ee7 s\u1ed1 token cho giao d\u1ecbch n\xe0y. L\u1ea7n t\u1edbi, b\u1ea1n s\u1ebd c\u1ea7n u\u1ef7 quy\u1ec1n l\u1ea1i, ph\xe1t sinh th\xeam th\u1eddi gian ch\u1edd \u0111\u1ee3i v\xe0 ph\xed. Ph\xed gas cho swap \u0111\u01b0\u1ee3c \u01b0\u1edbc t\xednh k\xe9m ch\xednh x\xe1c h\u01a1n.",confirm:"Okay!",all_des:"Cho ph\xe9p Ready truy c\u1eadp to\xe0n b\u1ed9 token n\xe0y trong v\xed c\u1ee7a b\u1ea1n. B\u1ea1n s\u1ebd kh\xf4ng ph\u1ea3i u\u1ef7 quy\u1ec1n l\u1ea1i trong c\xe1c giao d\u1ecbch t\u01b0\u01a1ng lai v\u1edbi token n\xe0y, ti\u1ebft ki\u1ec7m th\u1eddi gian v\xe0 chi ph\xed. Ph\xed gas cho swap c\u0169ng s\u1ebd \u0111\u01b0\u1ee3c \u01b0\u1edbc t\xednh ch\xednh x\xe1c h\u01a1n.",sufficient_desc:"Cho ph\xe9p Ready truy c\u1eadp v\u1eeba \u0111\u1ee7 s\u1ed1 token cho giao d\u1ecbch n\xe0y. L\u1ea7n t\u1edbi, b\u1ea1n s\u1ebd c\u1ea7n u\u1ef7 quy\u1ec1n l\u1ea1i, ph\xe1t sinh th\xeam th\u1eddi gian ch\u1edd \u0111\u1ee3i v\xe0 ph\xed. Ph\xed gas cho swap \u0111\u01b0\u1ee3c \u01b0\u1edbc t\xednh k\xe9m ch\xednh x\xe1c h\u01a1n."},push_noti:{new_txn:"{{wallet}} c\xf3 giao d\u1ecbch m\u1edbi tr\xean {{chain}}"},no_pk_error:{title:"Kh\xf4ng th\u1ec3 t\xecm th\u1ea5y kh\xf3a ri\xeang t\u01b0 cho v\xed {{wallet}}",desc:"\u0110i\u1ec1u n\xe0y c\xf3 th\u1ec3 x\u1ea3y ra do l\u1ed7i trong qu\xe1 tr\xecnh c\u1eadp nh\u1eadt t\u1eeb phi\xean b\u1ea3n c\u0169 h\u01a1n c\u1ee7a \u1ee9ng d\u1ee5ng. Kh\xf3a ri\xeang t\u01b0 (private key) c\u1ee7a v\xed r\u1ea5t c\u1ea7n thi\u1ebft \u0111\u1ec3 k\xfd c\xe1c giao d\u1ecbch tr\xean blockchain. N\u1ebfu kh\xf4ng c\xf3 n\xf3, b\u1ea1n s\u1ebd kh\xf4ng th\u1ec3 g\u1eedi ti\u1ec1n ho\u1eb7c t\u01b0\u01a1ng t\xe1c v\u1edbi c\xe1c h\u1ee3p \u0111\u1ed3ng th\xf4ng minh.",to_resolve:"\u0110\u1ec3 gi\u1ea3i quy\u1ebft v\u1ea5n \u0111\u1ec1 n\xe0y:",step_1:"1. \u0110\u1ea3m b\u1ea3o b\u1ea1n \u0111\xe3 c\xe0i \u0111\u1eb7t phi\xean b\u1ea3n \u1ee9ng d\u1ee5ng m\u1edbi nh\u1ea5t",step_2:"2. Th\u1eed x\xf3a v\xe0 nh\u1eadp l\u1ea1i v\xed c\u1ee7a b\u1ea1n b\u1eb1ng c\u1ee5m t\u1eeb b\xed m\u1eadt ho\u1eb7c kh\xf3a ri\xeang t\u01b0 ch\xednh x\xe1c",contact:"N\u1ebfu s\u1ef1 c\u1ed1 v\u1eabn ti\u1ebfp di\u1ec5n sau khi \u0111\xe3 th\u1ef1c hi\u1ec7n c\xe1c b\u01b0\u1edbc n\xe0y, vui l\xf2ng li\xean h\u1ec7 v\u1edbi nh\xf3m h\u1ed7 tr\u1ee3 c\u1ee7a ch\xfang t\xf4i \u0111\u1ec3 \u0111\u01b0\u1ee3c tr\u1ee3 gi\xfap th\xeam.",note:"L\u01b0u \xfd: Kh\xf4ng bao gi\u1edd chia s\u1ebb kh\xf3a ri\xeang t\u01b0 c\u1ee7a b\u1ea1n v\u1edbi b\u1ea5t k\u1ef3 ai."}}}),3175,[]);
|
|
3390
3390
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.setLang=function(n){t.default.locale=n,l.default.locale(n)},e.translate=function(l,n){return l?t.default.t(l,n):null};var t=r(d[0])(r(d[1])),l=r(d[0])(r(d[2]))}),3176,[20,3140,441]);
|
|
3391
3391
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))})),Object.keys(r(d[2])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[2])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[2])[n]}}))})),Object.keys(r(d[3])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[3])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[3])[n]}}))})),Object.keys(r(d[4])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[4])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[4])[n]}}))})),Object.keys(r(d[5])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[5])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[5])[n]}}))}))}),3177,[3178,3404,3405,3406,3407,3408]);
|
|
3392
3392
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useDeeplinkHandler=function(l){var u=(0,r(d[2]).useMixins)().notify,c=(0,r(d[3]).useDeepLink)().url,s=function(n){if(n.deepLinkUrl){var t=n.deepLinkUrl;r(d[4]).Logger.debug("DEEP LINK: "+t);var o='';if(t.startsWith('wc:')?o=t:t.includes('://wc?uri=')&&(o=decodeURIComponent(t.split('://wc?uri=')[1])),o){var l=r(d[5]).walletConnectService.parseUri(o),c=l.isValid;if(1===l.version)return void u('error','WalletConnect V1 is not supported');if(!c)return void(o.includes('requestId=')||u('error','Invalid WalletConnect URI'));u('success','Connecting to dApp...'),r(d[5]).walletConnectService.pair(o)}}};if((0,n.useEffect)((function(){s({deepLinkUrl:l||c})}),[l,c]),o){var v=new t.NativeEventEmitter(o);(0,n.useEffect)((function(){var n=v.addListener('ReadyWallet_FOREGROUND_DEEPLINK_EVENT',s);return function(){n.remove()}}),[])}};var n=r(d[0]),t=r(d[1]),o=t.NativeModules.ReadyWallet}),3178,[140,18,3149,3179,1413,3180]);
|
|
@@ -3629,9 +3629,9 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
|
3629
3629
|
__d((function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e,t,n,l,u,o=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),f=r(d[0])(r(d[3])),y=r(d[4]),c=y.NativeModules.ReadyWallet,v=(0,f.default)((function e(){(0,s.default)(this,e),this.AS_READY_WALLET='@readyio_ready_wallet'}),[{key:"checkValidInput",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var l=t[0],u=t[1];if('string'!=typeof l&&console.warn("[AsyncStorage] Using "+typeof l+" type for key is not supported. This can lead to unexpected behavior/errors. Use string instead.\nKey passed: "+l+"\n"),t.length>1&&'string'!=typeof u){if(null==u)throw new Error("[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.\nPassed value: "+u+"\nPassed key: "+l+"\n");console.warn("[AsyncStorage] The value for key \""+l+"\" is not a string. This can lead to unexpected behavior/errors. Consider stringifying it.\nPassed value: "+u+"\nPassed key: "+l+"\n")}}},{key:"ensureArray",value:function(e){return Array.isArray(e)?0===e.length?null:e:e?[e]:null}},{key:"convertError",value:function(e){if(!e)return null;var t=new Error(e.message);return t.key=e.key,t}},{key:"convertErrors",value:function(e){var t=this,n=this.ensureArray(e);return n?n.map((function(e){return t.convertError(e)})):null}},{key:"getItem",value:(u=(0,o.default)((function*(e,t){var n=this;return new Promise((function(l,u){n.checkValidInput(e),'android'===y.Platform.OS&&c.multiGet([e],(function(e,o){var s,f=null!=o&&null!=(s=o[0])&&s[1]?o[0][1]:null,y=n.convertErrors(e);null==t||t(null==y?void 0:y[0],f),y?u(y[0]):l(f)})),'ios'===y.Platform.OS&&c.getItem(e).then((function(e){l(e)}))}))})),function(e,t){return u.apply(this,arguments)})},{key:"setItem",value:(l=(0,o.default)((function*(e,t,n){var l=this;return new Promise((function(u,o){l.checkValidInput(e,t),'android'===y.Platform.OS&&c.multiSet([[e,t]],(function(e){var t=l.convertErrors(e);null==n||n(null==t?void 0:t[0]),t?o(t[0]):u()})),'ios'===y.Platform.OS&&(c.setItem(e,t),u())}))})),function(e,t,n){return l.apply(this,arguments)})},{key:"getAllMiniappWalletdata",value:(n=(0,o.default)((function*(){if(!c)return{};var e=yield this.getItem(this.AS_READY_WALLET);return e?JSON.parse(e):{}})),function(){return n.apply(this,arguments)})},{key:"setMininappWalletData",value:(t=(0,o.default)((function*(e){if(c){var t=yield this.getItem(this.AS_READY_WALLET),n=t?JSON.parse(t):{};n[e.id]=e,yield this.setItem(this.AS_READY_WALLET,JSON.stringify(n))}})),function(e){return t.apply(this,arguments)})},{key:"removeMiniappWalletData",value:(e=(0,o.default)((function*(e){if(c){var t=yield this.getItem(this.AS_READY_WALLET),n=t?JSON.parse(t):{};n[e]&&(delete n[e],yield this.setItem(this.AS_READY_WALLET,JSON.stringify(n)))}})),function(t){return e.apply(this,arguments)})}]);_e.default=new v}),3407,[20,316,9,12,18]);
|
|
3630
3630
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useWalletSnapshot=function(){var c=(0,r(d[4]).useStores)(),l=c.userStore,s=c.account,o=(0,t.useRef)({});(0,t.useEffect)((function(){n.default.getAllMiniappWalletdata().then((function(t){o.current=t}))}),[]),(0,t.useEffect)((function(){var t=r(d[5]).EventBus.createListener(r(d[5]).AppEventType.WALLET_SNAPSHOT,(function(){l.selectedAccountId&&null!=s&&s.wallets&&(l.superAppUserId&&(s.wallets.map((function(t){var c,s=r(d[6]).WALLET_BACKGROUND[t.background]||'#4676ED',p='vnd'===(null==(c=l.selectedAccount.currency)?void 0:c.name),f=t.totalAmount||'0',v={vnd:r(d[7]).tokenRateService.getValueDisplayForCurrency(p?f:(0,u.default)(f).div('0.000039').toString(),'vnd').display,usd:r(d[7]).tokenRateService.getValueDisplayForCurrency(p?(0,u.default)(f).multipliedBy('0.000039').toString():f,'usd').display},A={id:t.id,userId:l.superAppUserId,name:t.name,icon:t.icon,background:s,totalAmount:v},E=o.current[t.id];(0,r(d[8]).isEqual)(E,A)||(o.current[t.id]=A,n.default.setMininappWalletData(A))})),(0,r(d[8]).difference)(Object.keys(o.current),s.wallets.map((function(t){return t.id}))).forEach((function(t){delete o.current[t],n.default.removeMiniappWalletData(t)}))))}));return function(){r(d[5]).EventBus.removeListener(t)}}),[l.superAppUserId,l.selectedAccountId,s.wallets]),(0,t.useEffect)((function(){var t=r(d[5]).EventBus.createListener(r(d[5]).AppEventType.WALLET_DELETED,(function(t){var u=t.id;l.superAppUserId&&o.current[u]&&(delete o.current[u],n.default.removeMiniappWalletData(u))}));return function(){r(d[5]).EventBus.removeListener(t)}}),[l.superAppUserId])};var t=r(d[0]),n=r(d[1])(r(d[2])),u=r(d[1])(r(d[3]))}),3408,[140,20,3407,1059,701,1061,3409,2812,1064]);
|
|
3631
3631
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.WALLET_ICON=e.WALLET_BACKGROUND=e.PLACEHOLDER=void 0;e.PLACEHOLDER={avatar:{uri:'https://onlineimagetools.com/images/examples-onlineimagetools/color-grid.png'},wallet:'0x5574Cd97432cEd0D7Caf58ac3c4fEDB2061C98fB',coin:{uri:'https://icon-library.com/images/doge-icon/doge-icon-21.jpg'}},e.WALLET_BACKGROUND={bg1:r(d[0]).palette.blue2,bg2:'#D37EF4',bg3:'#26A69A',bg4:'#FA6565',bg5:'#887AF9',bg6:'#8492A7',bg7:'#FF9F1A',bg8:'#0AB7E2',bg9:'#36445A'},e.WALLET_ICON=['happy-face-with-enlarged-eyes','face-savouring-food','smiling-face-with-halo','smiling-face-with-heart-eyes','smiling-face-with-horns','smiling-face-with-smiling-eyes','smiling-face-with-sunglasses','smirking-face','confounded-face','confused-face','cricket-game','crying-face','disappointed-face-1','disappointed-face','diving-mask','dizzy-face','happy-face','downcast-face-with-sweat','expressionless-face','face-blowing-a-kiss','face-exhaling','face-in-clouds','face-screaming-in-fear','face-with-medical-mask','face-with-open-mouth','face-with-spiral-eyes','face-with-steam-from-nose','face-with-tears-of-joy','face-with-tongue','face-without-mouth','fearful-face','beaming-face-with-smiling-eyes','angry-face','anguished-face','anxious-face-with-sweat','astonished-face','flushed-face','hushed-face','grinning-face-with-smiling-eyes','grinning-face-with-sweat','grinning-squinting-face','frowning-face-with-open-mouth','grimacing-face','kissing-face-with-closed-eyes','kissing-face-with-smiling-eyes','kissing-face','sleeping-face','sleepy-face','weary-face','winking-face-with-tongue','winking-face','worried-face','tired-face','persevering-face','relieved-face','loudly-crying-face','neutral-face','pouting-face','squinting-face-with-tongue','unamused-face','grinning-cat-with-smiling-eyes','cat-with-tears-of-joy','halloween','1st-place-medal','2nd-place-medal','3rd-place-medal','admission-ticket','american-football','artist-palette','badminton','baseball','basketball','bowling','crystal-ball','boxing-glove','bullseye','carp-streamer','chess-pawn','christmas-tree','confetti-ball','field-hockey','firecracker','fireworks','fishing-pole','flag-in-hole','framed-picture','game-die','ice-skate','ice-hockey','ice-skate','japanese-dolls','joker','joystick','kite','knot','lacrosse','large-orange-diamond','magic-wand','mahjong-red-dragon','martial-arts-uniform','military-medal','nazar-amulet','nesting-dolls','painting-on-the-wall','party-popper','performing-arts','pinata','pine-decoration','ping-pong','pool-8-ball','puzzle-piece','red-envelope','reminder-ribbon','ribbon','rugby-football','sewing-needle','sled','slot-machine','soccer-ball','softball','spade-suit','sparkler','sparkles','sports-medal','t-shirt','tanabata-tree','teddy-bear','tennis','thread','ticket','trophy','video-game','volleyball','yarn','yo-yo']}),3409,[3168]);
|
|
3632
|
-
__d((function(g,r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.useProcedureMixins=void 0;var e=r(d[0])(r(d[1])),a=r(d[0])(r(d[2])),t=r(d[0])(r(d[3]));_e.useProcedureMixins=function(){var n,i,s,o,c,u,l,f,p,v,y,I=(0,r(d[4]).useStores)(),_=I.userStore,h=I.walletStore,A=I.account,b=(0,r(d[5]).useMixins)(),k=b.notifyApiError,U=b.getDeviceIdentifier,T=b.detectBiometricType,S=(0,r(d[6]).useWalletMixins)(),K=S.loadWalletTokens,w=S.loadWalletHistory,W=(0,r(d[7]).useTheme)().translate,E=(n=(0,a.default)((function*(e){if(null!=A&&A.id){e.dispatch(r(d[8]).CommonActions.reset({index:0,routes:[{name:'main'}]})),A.passcodeHash||A.faceIdEnabled||T().then((function(a){var t=a.available;e.replace(t?'authentication':'setPasscode')})),M(),r(d[9]).gaService.sendEvent('user_active',{id:A.id});var a=r(d[10]).AccountHelper.getDefaultCurrency({currentCurrency:A.currency});A.setCurrency(a),x()}})),function(e){return n.apply(this,arguments)}),P=(i=(0,a.default)((function*(e,a,n,i){try{var s=r(d[11]).Signal.generateRegistrationId(),o=yield U(),c=yield _.registerDevice({custom_username:i,first_name:e,last_name:a,user_attributes:{name:t.default.getDeviceNameSync(),registration_id:s.toString(),auth_token:n,signaling_key:null,registration_lock:null,unidentified_access_key:null,unrestricted_unidentified_access:!0,discoverable_by_phone_number:!0,discoverable_by_address:!0,device_identifier:o},external_source:'onus'});if('ok'!==c.kind)return k(c),{status:!1,reason:c};var u=c.data,l=u.device_user_id,f=u.token,p=u.username,v=u.custom_username;r(d[9]).gaService.sendEvent('user_identifier',{account_id:p}),R(f),_.setIsLoggedIn(!0);var y=yield r(d[12]).db.createAccount({name:"{"+e+"}{"+a+"}",customUsername:v,avatar:'',address:p,password:n,registrationId:s,deviceUserId:l});return _.addAccount({address:p,deviceUserId:l,name:"{"+e+"}{"+a+"}",id:y,customUsername:v,faceIdEnabled:!1,pushNotiDisabled:!1,wallets:[],mainWalletAddress:null,avatar:'',avatarThumb:'',isKeepLoginSession:!1,isFirstTimeLoginAfterLogout:!1,loginTime:0,passcodeHash:'',addressBook:[],isMainWalletDeleted:!1}),_.setSelectedAccountId(y),_.superAppUserId&&_.updateSuperUserMap(y),{status:!0,reason:null,data:{accountId:y}}}catch(e){return r(d[13]).Logger.debug(e),{status:!1,reason:null,data:{accountId:null}}}})),function(e,a,t,n){return i.apply(this,arguments)}),D=(s=(0,a.default)((function*(e,a,t){var n=r(d[14]).Utils.fromHexToArray(a.privateKey.slice(2)).buffer,i=yield r(d[11]).Signal.generateIdentityKeyPair(n),s=r(d[14]).Utils.fromBufferToB64(i.pubKey.slice(1)),o=yield _.setPrimaryWallet({address:a.address,public_key:s});if('ok'!==o.kind)return k(o),!1;var c=r(d[14]).Utils.fromBufferToHex(i.pubKey),u=r(d[14]).Utils.fromBufferToHex(i.privKey);yield r(d[12]).db.updateAccount(e,{publicKey:c,privateKey:u});var l=yield r(d[12]).db.createWallet({accountId:e,address:a.address,name:(null==t?void 0:t.name)||W('creatingWallet.myWallet'),publicKey:a.publicKey,privateKey:a.privateKey,passphrase:a.passphrase,isPrimary:!0,background:(null==t?void 0:t.background)||'bg1',icon:null==t?void 0:t.icon,tronEvmAddress:a.tronEvmAddress,tronPrivateKey:a.tronPrivateKey,chainId:a.chainId}),f=_.accounts.find((function(a){return a.id===e})),p=r(d[15]).tokenDataService.getAllPopularTokens();return a.chainId&&(p=p.filter((function(e){return e.chainId===a.chainId}))),f.addWallet({id:l,address:a.address,name:(null==t?void 0:t.name)||W('creatingWallet.myWallet'),isPrimary:!0,background:(null==t?void 0:t.background)||'bg1',icon:(null==t?void 0:t.icon)||'happy-face',totalAmount:null,frozenTokens:p,isBackUp:!(null==t||!t.isBackUp),tronEvmAddress:a.tronEvmAddress,chainId:a.chainId}),r(d[16]).cacheStorage.set(r(d[16]).CacheStorageKey.NEW_WALLET_ID,l),f.setMainWalletAddress(a.address),f.setSelectedWalletId(l),!0})),function(e,a,t){return s.apply(this,arguments)}),B=(o=(0,a.default)((function*(e){var a=e.wallet,n=r(d[11]).Signal.generateRegistrationId(),i=(yield r(d[12]).db.loadWalletsByAddress(a.address,a.chainId)).find((function(e){return e.isPrimary}));i&&(n=(yield r(d[12]).db.getAccount(i.accountId)).registrationId);var s=r(d[14]).Utils.fromHexToArray(a.privateKey.slice(2)).buffer,o=yield r(d[11]).Signal.generateIdentityKeyPair(s),c=Math.floor(Date.now()/1e3),u=yield r(d[17]).Curve25519.sign(o.privKey,r(d[14]).Utils.fromUtf8ToArray(a.address+"_"+c).buffer),l=yield _.registerNewDevice({address:a.address,timestamp:c,signature:r(d[14]).Utils.fromBufferToB64(u),user_attributes:{registration_id:n,name:t.default.getDeviceNameSync(),device_identifier:yield U()}});if('ok'!==l.kind)return k(l),null;n=l.data.registration_id;var f=l.data.token;if(R(f),_.setIsLoggedIn(!0),i){yield r(d[12]).db.updateAccount(i.accountId,{registrationId:n,deviceUserId:l.data.device_user_id});var p=_.accounts.find((function(e){return e.id===i.accountId}));return p&&p.setDeviceUserId(l.data.device_user_id),_.superAppUserId&&_.updateSuperUserMap(i.accountId),{accountId:i.accountId,walletId:i.id}}var v=r(d[14]).Utils.fromBufferToHex(o.pubKey),y=r(d[14]).Utils.fromBufferToHex(o.privKey),I=yield r(d[12]).db.createAccount({name:l.data.name,address:l.data.username,avatar:l.data.avatar,customUsername:l.data.custom_username,password:'',registrationId:n,deviceUserId:l.data.device_user_id,publicKey:v,privateKey:y});_.superAppUserId&&_.updateSuperUserMap(I);var h=yield r(d[12]).db.createWallet({accountId:I,address:a.address,name:W('creatingWallet.myWallet'),publicKey:a.publicKey,privateKey:a.privateKey,passphrase:a.passphrase,isPrimary:!0,background:'bg1',chainId:a.chainId,tronEvmAddress:a.tronEvmAddress,tronPrivateKey:a.tronPrivateKey}),A=r(d[15]).tokenDataService.getAllPopularTokens();return a.chainId&&(A=A.filter((function(e){return e.chainId===a.chainId}))),_.addAccount({address:l.data.username,deviceUserId:l.data.device_user_id,name:l.data.name,avatar:l.data.avatar,customUsername:l.data.custom_username,id:I,faceIdEnabled:!1,pushNotiDisabled:!1,wallets:[{id:h,address:a.address,name:W('creatingWallet.myWallet'),isPrimary:!0,background:'bg1',icon:'happy-face',totalAmount:null,frozenTokens:A,isBackUp:!0,tronEvmAddress:a.tronEvmAddress,chainId:a.chainId}],mainWalletAddress:a.address,avatarThumb:'',isKeepLoginSession:!1,isFirstTimeLoginAfterLogout:!1,loginTime:0,passcodeHash:'',addressBook:[],isMainWalletDeleted:!1}),r(d[16]).cacheStorage.set(r(d[16]).CacheStorageKey.NEW_WALLET_ID,h),{accountId:I,walletId:h}})),function(e){return o.apply(this,arguments)}),L=(c=(0,a.default)((function*(e){var a,n,i,s=e.wallet,o=e.password,c=(yield r(d[12]).db.loadWalletsByAddress(s.address)).find((function(e){return e.isPrimary}));c&&(i=yield r(d[12]).db.getAccount(c.accountId));var u=r(d[14]).Utils.fromHexToArray(s.privateKey.slice(2)).buffer,l=yield r(d[11]).Signal.generateIdentityKeyPair(u),f=(null==(a=i)?void 0:a.registrationId)||r(d[11]).Signal.generateRegistrationId(),p=Math.floor(Date.now()/1e3),v=yield r(d[17]).Curve25519.sign(l.privKey,r(d[14]).Utils.fromUtf8ToArray(o+"_"+p).buffer),y={address:s.address,new_password:o,timestamp:p,signature:r(d[14]).Utils.fromBufferToB64(v),new_device:!i,user_attributes:{registration_id:f,name:t.default.getDeviceNameSync(),device_user_id:null==(n=i)?void 0:n.deviceUserId,device_identifier:yield U()}},I=yield _.resetPassword(y);if('ok'!==I.kind){var h;if('bad-data'!==I.kind||'2002'!==(null==(h=I.data)?void 0:h.code))return k(I),!1;if(y.new_device=!0,'ok'!==(I=yield _.resetPassword(y)).kind)return k(I),!1}f=I.data.registration_id;var A=I.data.token;R(A),_.setIsLoggedIn(!0);var b=r(d[14]).Utils.fromBufferToHex(l.pubKey),T=r(d[14]).Utils.fromBufferToHex(l.privKey);if(i){yield r(d[12]).db.updateAccount(i.id,{password:o,registrationId:f,deviceUserId:I.data.device_user_id});var S=_.accounts.find((function(e){return e.id===c.accountId}));S&&S.setDeviceUserId(I.data.device_user_id),_.setSelectedAccountId(i.id)}else{var K=yield r(d[12]).db.createAccount({name:I.data.name,address:I.data.username,avatar:I.data.avatar,customUsername:I.data.custom_username,password:o,registrationId:f,deviceUserId:I.data.device_user_id,publicKey:b,privateKey:T});_.addAccount({address:I.data.username,deviceUserId:I.data.device_user_id,name:I.data.name,customUsername:I.data.custom_username,id:K,faceIdEnabled:!1,pushNotiDisabled:!1,wallets:[],mainWalletAddress:s.address,avatar:'',avatarThumb:'',isKeepLoginSession:!1,isFirstTimeLoginAfterLogout:!1,loginTime:0,passcodeHash:'',addressBook:[],isMainWalletDeleted:!1}),_.setSelectedAccountId(K),yield r(d[12]).db.createWallet({accountId:K,address:s.address,name:W('creatingWallet.myWallet'),publicKey:s.publicKey,privateKey:s.privateKey,passphrase:s.passphrase,isPrimary:!0,background:'bg1'})}return!0})),function(e){return c.apply(this,arguments)}),N=(u=(0,a.default)((function*(e){var a=e.password,t=e.newPassword,n=yield _.changePassword({password:a,new_password:t,confirm_new_password:t});return'ok'!==n.kind?(k(n),!1):(R(n.data.token),yield r(d[12]).db.updateAccount(A.id,{password:t}),!0)})),function(e){return u.apply(this,arguments)}),C=(l=(0,a.default)((function*(){var a;if(null!=A&&A.id){var t=[],n=[];n.length&&(t=n.map((function(e){return e.id})));var i=r(d[16]).cacheStorage.get(r(d[16]).CacheStorageKey.NEW_WALLET_ID);i&&!t.includes(i)&&(r(d[16]).cacheStorage.delete(r(d[16]).CacheStorageKey.NEW_WALLET_ID),t.push(i)),yield(0,r(d[18]).checkProviderRPCs)();var s=(new Date).getTime(),o=yield(0,r(d[16]).load)(r(d[16]).AsyncStorageKey.LAST_UPDATED_KEY);o||(o=[]);var c=_.superAppUserId||A.id,u=o?null==(a=o.find((function(e){return e.userId===c})))?void 0:a.lastUpdated:null,l=parseInt(u,10)||null;A.wallets.map((function(e){return e.address})).length>0&&A.wallets.forEach((function(a){if(null===l||s-l>=3e5)K(a.id);else{var t,n=(0,e.default)(a.tokens);r(d[15]).tokenBalanceService.calculateWalletBalance(n,null==(t=A.currency)?void 0:t.name).then((function(e){a.setTotalAmount(e.total),a.setTokens(e.tokens)}))}r(d[19]).SUPPORTED_CHAINS.forEach((function(e){a.checkUnconfirmedTransactions({chainNumber:e.id,namespace:e.namespace}).then((function(){a.checkPendingTransactions({chainNumber:e.id,namespace:e.namespace})}))}))})),t.forEach((function(e){return w(e)}))}})),function(){return l.apply(this,arguments)}),H=(f=(0,a.default)((function*(e){var a,t=e.accountId,n=e.password,i=yield r(d[12]).db.getAccount(t,!n),s=yield _.authenticate({username:i.address,password:n||i.password,device_user_id:i.deviceUserId,registration_id:i.registrationId,device_identifier:yield U()});if('ok'!==s.kind)return'bad-data'===s.kind&&'2001'===(null==(a=s.data)?void 0:a.code)?{isSuccess:!1,isStaled:!0}:(k(s),_.clearData(),{isSuccess:!1});if(s.data){var o=_.accounts.find((function(e){return e.id===t}));null==o||o.updateName({name:s.data.name,avatar:s.data.avatar,customUsername:s.data.custom_username})}_.setIsLoggedIn(!1),_.setSelectedAccountId(t);var c=s.data.token;return R(c),_.setIsLoggedIn(!0),r(d[20]).EventBus.emit(r(d[20]).AppEventType.CURRENT_ACCOUNT_CHANGE),{isSuccess:!0}})),function(e){return f.apply(this,arguments)}),x=(p=(0,a.default)((function*(){return yield Promise.all([C()])})),function(){return p.apply(this,arguments)}),M=(v=(0,a.default)((function*(){var e,a=yield r(d[12]).db.getAccount(A.id,!0),t=Math.floor(Date.now()/1e3),n=yield r(d[17]).Curve25519.signWithNativeModule(a.privateKey,t.toString()),i=yield _.onusAuthenticate({address:A.mainWalletAddress,signature:r(d[14]).Utils.fromBufferToB64(n),timestamp:t,new_device:!1});if('ok'!==i.kind)return'bad-data'===i.kind&&'2001'===(null==(e=i.data)?void 0:e.code)?{isSuccess:!1,isStaled:!0}:(k(i),{isSuccess:!1});_.setIsLoggedIn(!1);var s=i.data.token;return R(s),_.setIsLoggedIn(!0),r(d[20]).EventBus.emit(r(d[20]).AppEventType.CURRENT_ACCOUNT_CHANGE),{isSuccess:!0}})),function(){return v.apply(this,arguments)}),R=function(e){_.setApiToken(e),h.setApiToken(e)},O=(y=(0,a.default)((function*(){var e=yield _.getRandomNames();if('ok'===e.kind){var a=e.data[0].name,t=r(d[10]).AccountHelper.parseFullName(a),n=r(d[10]).AccountHelper.generateInitialUsername(t.firstName),i=yield _.checkExistUsername(n);if('ok'===i.kind){if(i.data.exist)return Object.assign({},t,{customUsername:n});var s=i.data.suggest[0];return Object.assign({},t,{customUsername:s})}return null}return null})),function(){return y.apply(this,arguments)});return{processAuthentication:H,processLocalData:x,createAccount:P,connectPrimaryWallet:D,importAccount:B,resetAccountPassword:L,changeAccountPassword:N,prepareAccountWallets:C,onusAuthentication:M,getAccountNameAndCustomUsername:O,setApiTokenToStore:R,startProcedure:E}}}),3410,[20,23,316,1414,701,3149,3411,3165,3450,3448,3541,3569,1065,1413,3614,2812,1459,3615,3616,1474,1061]);
|
|
3632
|
+
__d((function(g,r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.useProcedureMixins=void 0;var e=r(d[0])(r(d[1])),a=r(d[0])(r(d[2])),t=r(d[0])(r(d[3]));_e.useProcedureMixins=function(){var n,i,s,o,c,u,l,f,p,v,y,I=(0,r(d[4]).useStores)(),_=I.userStore,h=I.walletStore,A=I.account,b=(0,r(d[5]).useMixins)(),k=b.notifyApiError,U=b.getDeviceIdentifier,T=b.detectBiometricType,S=(0,r(d[6]).useWalletMixins)(),K=S.loadWalletTokens,w=S.loadWalletHistory,W=(0,r(d[7]).useTheme)().translate,E=(n=(0,a.default)((function*(e){if(null!=A&&A.id){e.dispatch(r(d[8]).CommonActions.reset({index:0,routes:[{name:'main'}]})),A.passcodeHash||A.faceIdEnabled||T().then((function(a){var t=a.available;e.replace(t?'authentication':'setPasscode')})),M(),r(d[9]).gaService.sendEvent('user_active',{id:A.id});var a=r(d[10]).AccountHelper.getDefaultCurrency({currentCurrency:A.currency});A.setCurrency(a),x()}})),function(e){return n.apply(this,arguments)}),P=(i=(0,a.default)((function*(e,a,n,i){try{var s=r(d[11]).Signal.generateRegistrationId(),o=yield U(),c=yield _.registerDevice({custom_username:i,first_name:e,last_name:a,user_attributes:{name:t.default.getDeviceNameSync(),registration_id:s.toString(),auth_token:n,signaling_key:null,registration_lock:null,unidentified_access_key:null,unrestricted_unidentified_access:!0,discoverable_by_phone_number:!0,discoverable_by_address:!0,device_identifier:o},external_source:'onus'});if('ok'!==c.kind)return k(c),{status:!1,reason:c};var u=c.data,l=u.device_user_id,f=u.token,p=u.username,v=u.custom_username;r(d[9]).gaService.sendEvent('user_identifier',{account_id:p}),R(f),_.setIsLoggedIn(!0);var y=yield r(d[12]).db.createAccount({name:"{"+e+"}{"+a+"}",customUsername:v,avatar:'',address:p,password:n,registrationId:s,deviceUserId:l});return _.addAccount({address:p,deviceUserId:l,name:"{"+e+"}{"+a+"}",id:y,customUsername:v,faceIdEnabled:!1,pushNotiDisabled:!1,wallets:[],mainWalletAddress:null,avatar:'',avatarThumb:'',isKeepLoginSession:!1,isFirstTimeLoginAfterLogout:!1,loginTime:0,passcodeHash:'',addressBook:[],isMainWalletDeleted:!1}),_.setSelectedAccountId(y),_.superAppUserId&&_.updateSuperUserMap(y),{status:!0,reason:null,data:{accountId:y}}}catch(e){return r(d[13]).Logger.debug(e),{status:!1,reason:null,data:{accountId:null}}}})),function(e,a,t,n){return i.apply(this,arguments)}),D=(s=(0,a.default)((function*(e,a,t){var n=r(d[14]).Utils.fromHexToArray(a.privateKey.slice(2)).buffer,i=yield r(d[11]).Signal.generateIdentityKeyPair(n),s=r(d[14]).Utils.fromBufferToB64(i.pubKey.slice(1)),o=yield _.setPrimaryWallet({address:a.address,public_key:s});if('ok'!==o.kind)return k(o),!1;var c=r(d[14]).Utils.fromBufferToHex(i.pubKey),u=r(d[14]).Utils.fromBufferToHex(i.privKey);yield r(d[12]).db.updateAccount(e,{publicKey:c,privateKey:u});var l=yield r(d[12]).db.createWallet({accountId:e,address:a.address,name:(null==t?void 0:t.name)||W('creatingWallet.myWallet'),publicKey:a.publicKey,privateKey:a.privateKey,passphrase:a.passphrase,isPrimary:!0,background:(null==t?void 0:t.background)||'bg1',icon:null==t?void 0:t.icon,tronEvmAddress:a.tronEvmAddress,tronPrivateKey:a.tronPrivateKey,chainId:a.chainId}),f=_.accounts.find((function(a){return a.id===e})),p=r(d[15]).tokenDataService.getAllPopularTokens();return a.chainId&&(p=p.filter((function(e){return e.chainId===a.chainId}))),f.addWallet({id:l,address:a.address,name:(null==t?void 0:t.name)||W('creatingWallet.myWallet'),isPrimary:!0,background:(null==t?void 0:t.background)||'bg1',icon:(null==t?void 0:t.icon)||'happy-face',totalAmount:null,frozenTokens:p,isBackUp:!(null==t||!t.isBackUp),tronEvmAddress:a.tronEvmAddress,chainId:a.chainId}),r(d[16]).cacheStorage.set(r(d[16]).CacheStorageKey.NEW_WALLET_ID,l),f.setMainWalletAddress(a.address),f.setSelectedWalletId(l),!0})),function(e,a,t){return s.apply(this,arguments)}),B=(o=(0,a.default)((function*(e){var a=e.wallet,n=r(d[11]).Signal.generateRegistrationId(),i=(yield r(d[12]).db.loadWalletsByAddress(a.address,a.chainId)).find((function(e){return e.isPrimary}));i&&(n=(yield r(d[12]).db.getAccount(i.accountId)).registrationId);var s=r(d[14]).Utils.fromHexToArray(a.privateKey.slice(2)).buffer,o=yield r(d[11]).Signal.generateIdentityKeyPair(s),c=Math.floor(Date.now()/1e3),u=yield r(d[17]).Curve25519.sign(o.privKey,r(d[14]).Utils.fromUtf8ToArray(a.address+"_"+c).buffer),l=yield _.registerNewDevice({address:a.address,timestamp:c,signature:r(d[14]).Utils.fromBufferToB64(u),user_attributes:{registration_id:n,name:t.default.getDeviceNameSync(),device_identifier:yield U()}});if('ok'!==l.kind)return k(l),null;n=l.data.registration_id;var f=l.data.token;if(R(f),_.setIsLoggedIn(!0),i){var p=_.accounts.find((function(e){return e.id===i.accountId}));if(p)return p.setDeviceUserId(l.data.device_user_id),yield r(d[12]).db.updateAccount(i.accountId,{registrationId:n,deviceUserId:l.data.device_user_id}),_.superAppUserId&&_.updateSuperUserMap(i.accountId),{accountId:i.accountId,walletId:i.id}}var v=r(d[14]).Utils.fromBufferToHex(o.pubKey),y=r(d[14]).Utils.fromBufferToHex(o.privKey),I=yield r(d[12]).db.createAccount({name:l.data.name,address:l.data.username,avatar:l.data.avatar,customUsername:l.data.custom_username,password:'',registrationId:n,deviceUserId:l.data.device_user_id,publicKey:v,privateKey:y});_.superAppUserId&&_.updateSuperUserMap(I);var h=yield r(d[12]).db.createWallet({accountId:I,address:a.address,name:W('creatingWallet.myWallet'),publicKey:a.publicKey,privateKey:a.privateKey,passphrase:a.passphrase,isPrimary:!0,background:'bg1',chainId:a.chainId,tronEvmAddress:a.tronEvmAddress,tronPrivateKey:a.tronPrivateKey}),A=r(d[15]).tokenDataService.getAllPopularTokens();return a.chainId&&(A=A.filter((function(e){return e.chainId===a.chainId}))),_.addAccount({address:l.data.username,deviceUserId:l.data.device_user_id,name:l.data.name,avatar:l.data.avatar,customUsername:l.data.custom_username,id:I,faceIdEnabled:!1,pushNotiDisabled:!1,wallets:[{id:h,address:a.address,name:W('creatingWallet.myWallet'),isPrimary:!0,background:'bg1',icon:'happy-face',totalAmount:null,frozenTokens:A,isBackUp:!0,tronEvmAddress:a.tronEvmAddress,chainId:a.chainId}],mainWalletAddress:a.address,avatarThumb:'',isKeepLoginSession:!1,isFirstTimeLoginAfterLogout:!1,loginTime:0,passcodeHash:'',addressBook:[],isMainWalletDeleted:!1}),r(d[16]).cacheStorage.set(r(d[16]).CacheStorageKey.NEW_WALLET_ID,h),{accountId:I,walletId:h}})),function(e){return o.apply(this,arguments)}),L=(c=(0,a.default)((function*(e){var a,n,i,s=e.wallet,o=e.password,c=(yield r(d[12]).db.loadWalletsByAddress(s.address)).find((function(e){return e.isPrimary}));c&&(i=yield r(d[12]).db.getAccount(c.accountId));var u=r(d[14]).Utils.fromHexToArray(s.privateKey.slice(2)).buffer,l=yield r(d[11]).Signal.generateIdentityKeyPair(u),f=(null==(a=i)?void 0:a.registrationId)||r(d[11]).Signal.generateRegistrationId(),p=Math.floor(Date.now()/1e3),v=yield r(d[17]).Curve25519.sign(l.privKey,r(d[14]).Utils.fromUtf8ToArray(o+"_"+p).buffer),y={address:s.address,new_password:o,timestamp:p,signature:r(d[14]).Utils.fromBufferToB64(v),new_device:!i,user_attributes:{registration_id:f,name:t.default.getDeviceNameSync(),device_user_id:null==(n=i)?void 0:n.deviceUserId,device_identifier:yield U()}},I=yield _.resetPassword(y);if('ok'!==I.kind){var h;if('bad-data'!==I.kind||'2002'!==(null==(h=I.data)?void 0:h.code))return k(I),!1;if(y.new_device=!0,'ok'!==(I=yield _.resetPassword(y)).kind)return k(I),!1}f=I.data.registration_id;var A=I.data.token;R(A),_.setIsLoggedIn(!0);var b=r(d[14]).Utils.fromBufferToHex(l.pubKey),T=r(d[14]).Utils.fromBufferToHex(l.privKey);if(i){yield r(d[12]).db.updateAccount(i.id,{password:o,registrationId:f,deviceUserId:I.data.device_user_id});var S=_.accounts.find((function(e){return e.id===c.accountId}));S&&S.setDeviceUserId(I.data.device_user_id),_.setSelectedAccountId(i.id)}else{var K=yield r(d[12]).db.createAccount({name:I.data.name,address:I.data.username,avatar:I.data.avatar,customUsername:I.data.custom_username,password:o,registrationId:f,deviceUserId:I.data.device_user_id,publicKey:b,privateKey:T});_.addAccount({address:I.data.username,deviceUserId:I.data.device_user_id,name:I.data.name,customUsername:I.data.custom_username,id:K,faceIdEnabled:!1,pushNotiDisabled:!1,wallets:[],mainWalletAddress:s.address,avatar:'',avatarThumb:'',isKeepLoginSession:!1,isFirstTimeLoginAfterLogout:!1,loginTime:0,passcodeHash:'',addressBook:[],isMainWalletDeleted:!1}),_.setSelectedAccountId(K),yield r(d[12]).db.createWallet({accountId:K,address:s.address,name:W('creatingWallet.myWallet'),publicKey:s.publicKey,privateKey:s.privateKey,passphrase:s.passphrase,isPrimary:!0,background:'bg1'})}return!0})),function(e){return c.apply(this,arguments)}),N=(u=(0,a.default)((function*(e){var a=e.password,t=e.newPassword,n=yield _.changePassword({password:a,new_password:t,confirm_new_password:t});return'ok'!==n.kind?(k(n),!1):(R(n.data.token),yield r(d[12]).db.updateAccount(A.id,{password:t}),!0)})),function(e){return u.apply(this,arguments)}),C=(l=(0,a.default)((function*(){var a;if(null!=A&&A.id){var t=[],n=[];n.length&&(t=n.map((function(e){return e.id})));var i=r(d[16]).cacheStorage.get(r(d[16]).CacheStorageKey.NEW_WALLET_ID);i&&!t.includes(i)&&(r(d[16]).cacheStorage.delete(r(d[16]).CacheStorageKey.NEW_WALLET_ID),t.push(i)),yield(0,r(d[18]).checkProviderRPCs)();var s=(new Date).getTime(),o=yield(0,r(d[16]).load)(r(d[16]).AsyncStorageKey.LAST_UPDATED_KEY);o||(o=[]);var c=_.superAppUserId||A.id,u=o?null==(a=o.find((function(e){return e.userId===c})))?void 0:a.lastUpdated:null,l=parseInt(u,10)||null;A.wallets.map((function(e){return e.address})).length>0&&A.wallets.forEach((function(a){if(null===l||s-l>=3e5)K(a.id);else{var t,n=(0,e.default)(a.tokens);r(d[15]).tokenBalanceService.calculateWalletBalance(n,null==(t=A.currency)?void 0:t.name).then((function(e){a.setTotalAmount(e.total),a.setTokens(e.tokens)}))}r(d[19]).SUPPORTED_CHAINS.forEach((function(e){a.checkUnconfirmedTransactions({chainNumber:e.id,namespace:e.namespace}).then((function(){a.checkPendingTransactions({chainNumber:e.id,namespace:e.namespace})}))}))})),t.forEach((function(e){return w(e)}))}})),function(){return l.apply(this,arguments)}),H=(f=(0,a.default)((function*(e){var a,t=e.accountId,n=e.password,i=yield r(d[12]).db.getAccount(t,!n),s=yield _.authenticate({username:i.address,password:n||i.password,device_user_id:i.deviceUserId,registration_id:i.registrationId,device_identifier:yield U()});if('ok'!==s.kind)return'bad-data'===s.kind&&'2001'===(null==(a=s.data)?void 0:a.code)?{isSuccess:!1,isStaled:!0}:(k(s),_.clearData(),{isSuccess:!1});if(s.data){var o=_.accounts.find((function(e){return e.id===t}));null==o||o.updateName({name:s.data.name,avatar:s.data.avatar,customUsername:s.data.custom_username})}_.setIsLoggedIn(!1),_.setSelectedAccountId(t);var c=s.data.token;return R(c),_.setIsLoggedIn(!0),r(d[20]).EventBus.emit(r(d[20]).AppEventType.CURRENT_ACCOUNT_CHANGE),{isSuccess:!0}})),function(e){return f.apply(this,arguments)}),x=(p=(0,a.default)((function*(){return yield Promise.all([C()])})),function(){return p.apply(this,arguments)}),M=(v=(0,a.default)((function*(){var e,a=yield r(d[12]).db.getAccount(A.id,!0),t=Math.floor(Date.now()/1e3),n=yield r(d[17]).Curve25519.signWithNativeModule(a.privateKey,t.toString()),i=yield _.onusAuthenticate({address:A.mainWalletAddress,signature:r(d[14]).Utils.fromBufferToB64(n),timestamp:t,new_device:!1});if('ok'!==i.kind)return'bad-data'===i.kind&&'2001'===(null==(e=i.data)?void 0:e.code)?{isSuccess:!1,isStaled:!0}:(k(i),{isSuccess:!1});_.setIsLoggedIn(!1);var s=i.data.token;return R(s),_.setIsLoggedIn(!0),r(d[20]).EventBus.emit(r(d[20]).AppEventType.CURRENT_ACCOUNT_CHANGE),{isSuccess:!0}})),function(){return v.apply(this,arguments)}),R=function(e){_.setApiToken(e),h.setApiToken(e)},O=(y=(0,a.default)((function*(){var e=yield _.getRandomNames();if('ok'===e.kind){var a=e.data[0].name,t=r(d[10]).AccountHelper.parseFullName(a),n=r(d[10]).AccountHelper.generateInitialUsername(t.firstName),i=yield _.checkExistUsername(n);if('ok'===i.kind){if(i.data.exist)return Object.assign({},t,{customUsername:n});var s=i.data.suggest[0];return Object.assign({},t,{customUsername:s})}return null}return null})),function(){return y.apply(this,arguments)});return{processAuthentication:H,processLocalData:x,createAccount:P,connectPrimaryWallet:D,importAccount:B,resetAccountPassword:L,changeAccountPassword:N,prepareAccountWallets:C,onusAuthentication:M,getAccountNameAndCustomUsername:O,setApiTokenToStore:R,startProcedure:E}}}),3410,[20,23,316,1414,701,3149,3411,3165,3450,3448,3541,3569,1065,1413,3614,2812,1459,3615,3616,1474,1061]);
|
|
3633
3633
|
__d((function(g,r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.useWalletMixins=void 0;var e=r(d[0])(r(d[1]));_e.useWalletMixins=function(){var n,t,i,l,s,c,o=(0,r(d[2]).useStores)(),u=o.userStore,f=o.walletStore,h=o.account,y=(0,r(d[3]).useTheme)().translate,p=(0,r(d[4]).useMixins)(),v=p.notifyApiError,k=p.notify,I=(0,r(d[5]).useWalletHelperMixins)().getRandomWalletBackground,A=(n=(0,e.default)((function*(e){var n=e.name,t=e.wallet,i=e.walletBackground,l=e.walletIcon,s=e.isBackup,c=h.wallets.find((function(e){return e.address===t.address&&(!t.chainId&&!e.chainId||t.chainId===e.chainId)}));if(c)return yield E(c.id,{name:n,background:i,emoji:l}),c.id;var o=yield u.addWallet(t.address);if('ok'!==o.kind)return v(o),null;var y=I(),p=yield r(d[6]).db.createWallet({accountId:h.id,address:t.address,name:n,publicKey:t.publicKey,privateKey:t.privateKey,passphrase:t.passphrase,background:i||y,icon:l,tronEvmAddress:t.tronEvmAddress,tronPrivateKey:t.tronPrivateKey,chainId:t.chainId}),k=r(d[7]).tokenDataService.getAllPopularTokens();return t.chainId&&(k=k.filter((function(e){return e.chainId===t.chainId}))),h.addWallet({id:p,name:n,address:t.address,totalAmount:null,frozenTokens:k,isPrimary:!1,background:i||y,icon:l,isBackUp:s,tronEvmAddress:t.tronEvmAddress,chainId:t.chainId}),S(p),s&&W(p),f.subscribeAllChains([t.address],u.fcmToken,h.address),p})),function(e){return n.apply(this,arguments)}),S=(t=(0,e.default)((function*(e){var n=w(e);if(n){if(n.setIsLoadingToken(!0),n.chainId){var t=(0,r(d[8]).getChainFromId)({chainId:n.chainId});yield n.loadTokensByChain({chainNumber:t.id,namespace:t.namespace,currency:h.currency.name})}else yield Promise.allSettled(r(d[8]).SUPPORTED_CHAINS.map((function(e){return n.loadTokensByChain({chainNumber:e.id,namespace:e.namespace,currency:h.currency.name})})));var i=yield(0,r(d[9]).load)(r(d[9]).AsyncStorageKey.LAST_UPDATED_KEY);i||(i=[]);var l=(new Date).getTime().toString(),s=u.superAppUserId||h.id,c=i.findIndex((function(e){return e.userId===s}));c<0?i.push({userId:s,lastUpdated:l}):i[c].lastUpdated=l,yield(0,r(d[9]).save)(r(d[9]).AsyncStorageKey.LAST_UPDATED_KEY,i),n.setIsLoadingToken(!1)}})),function(e){return t.apply(this,arguments)}),W=(i=(0,e.default)((function*(e,n){var t=w(e);if(t){t.setIsLoadingHistory(!0);var i=r(d[8]).SUPPORTED_CHAINS.filter((function(e){return!e.canCheckActiveWallet}));if(n||t.chainId)i=[r(d[8]).SUPPORTED_CHAINS.find((function(e){return e.chainId===(n||t.chainId)}))];else{var l=yield f.getActiveChains(t.address);'ok'===l.kind&&'OK'===l.data.status?r(d[8]).SUPPORTED_CHAINS.filter((function(e){return e.canCheckActiveWallet})).forEach((function(e){var n;null!=(n=l.data.data)&&n.find((function(n){return n.chain_id===e.chainId}))&&i.push(e)})):i=r(d[8]).SUPPORTED_CHAINS}for(var s of(k('success',y('walletDetailScreen.loadingHistory')),i))(yield t.loadHistoryFromChain({namespace:s.namespace,chainNumber:s.id,currency:h.currency.name}))?k('success',y('walletDetailScreen.loadHistory.success',{chain:s.name})):k('error',y('walletDetailScreen.loadHistory.error',{chain:s.name}));t.setIsLoadingHistory(!1)}})),function(e,n){return i.apply(this,arguments)}),E=(l=(0,e.default)((function*(e,n){var t=w(e);if(!t)return{kind:'unknown'};var i=n.name,l=n.background,s=n.emoji;return i&&t.setName(i),l&&t.setBackground(l),s&&t.setIcon(s),t.update(),{kind:'ok'}})),function(e,n){return l.apply(this,arguments)}),T=(s=(0,e.default)((function*(e){var n=w(e);if(!n)return{kind:'unknown'};if(n.isPrimary?h.setIsMainWalletDeleted(!0):(yield u.removeWallet(n.address)).kind,yield Promise.allSettled([r(d[10]).walletConnectService.disconnectWallet({evm:n.address,tronEvm:n.tronEvmAddress}),r(d[11]).injectedWalletService.disconnectWallet(n.address)]),n.delete(),u.fcmToken&&f.unsubscribeAllChains(n.address,u.fcmToken,h.address),h.removeWallet(e),r(d[12]).EventBus.emit(r(d[12]).AppEventType.WALLET_DELETED,{id:e}),h.selectedWalletId===e&&0!==h.wallets.length){var t=h.wallets.filter((function(n){return n.id!==e}));h.setSelectedWalletId(t[0].id)}return{kind:'ok'}})),function(e){return s.apply(this,arguments)}),P=(c=(0,e.default)((function*(e){var n,t=e.seedphrase,i=e.privateKey,l=e.isCheckingDuplicate,s=e.chainId;try{n=t?yield r(d[13]).walletCreator.createMultiChainWalletFromPassphrase(t.trim()):i?yield r(d[13]).walletCreator.createFromPrivateKey(i.trim(),s):yield r(d[13]).walletCreator.createMultiChainWalletRandom()}catch(e){return r(d[14]).Logger.debug(e),k('error',y(t?'error.invalidSeed':'error.invalidPK')),{wallet:null,existed:!1}}if(l){var c=yield u.checkWalletExistence(n.address);return'ok'!==c.kind?(v(c),{wallet:null,existed:!1}):{wallet:n,existed:c.data.existed}}return{wallet:n,existed:!1}})),function(e){return c.apply(this,arguments)});function w(e){return null!=h&&h.id?h.wallets.find((function(n){return n.id===e})):null}return{createWallet:A,loadWalletTokens:S,loadWalletHistory:W,updateWallet:E,deleteWallet:T,createWalletAndCheckDuplicate:P}}}),3411,[20,316,701,3165,3149,3412,1065,2812,1474,1459,3180,3449,1061,2920,1413]);
|
|
3634
|
-
__d((function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useWalletHelperMixins=void 0;var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),i=r(d[0])(r(d[4]));e.useWalletHelperMixins=function(){var s,c,l,u=(0,r(d[5]).useMixins)().notify,p=(0,r(d[6]).useTheme)(),T=p.colors,v=p.translate,k=(0,r(d[7]).useStores)().account,w=k.selectedWallet,f=function(n,t){var o=t.walletAddress,i={type:(null==n?void 0:n.type)||r(d[8]).TransactionType.UNKNOWN,text:v('common.unknown'),action:r(d[9]).TransactionAction.UNKNOWN,color:T.success,backgroundColor:T.success,isReceiver:!1,isSwap:!1,isApprove:!1};if(!n)return i;switch(n.type){case r(d[8]).TransactionType.TRANSFER:var s;i.action=r(d[9]).TransactionAction.SEND;var c=(null==(s=n.to)?void 0:s.toLowerCase())===(null==o?void 0:o.toLowerCase());i.text=c?""+v('common.receive'):""+v('common.send'),i.action=c?r(d[9]).TransactionAction.REQUEST:r(d[9]).TransactionAction.SEND,i.color=c?T.success:T.primary,i.backgroundColor=c?T.success:T.primary,i.isReceiver=c;break;case r(d[8]).TransactionType.SWAP:i.text=v('common.swap'),i.action=r(d[9]).TransactionAction.SWAP,i.color=T.error,i.backgroundColor=T.error,i.isSwap=!0;break;case r(d[8]).TransactionType.APPROVE:i.text=v('common.approve'),i.action=r(d[9]).TransactionAction.APPROVE,i.color=T.warning,i.backgroundColor=T.warning,i.isApprove=!0;break;case r(d[8]).TransactionType.SMART_CONTRACT:i.text=v('common.smartContract')}return i},h=function(n,t){var o=n,i=v('error.somethingWentWrong');if(null!=t&&t.raw){JSON.stringify(t.raw).includes('balance is not sufficient')&&(o='INSUFFICIENT_FUNDS');try{var s=(function n(t){var o=['reason','message'];if('object'!=typeof t||null===t)return null;for(var i in t){if(o.includes(i))return t[i];if('object'==typeof t[i]){var s=n(t[i]);if(s)return s}}return null})(JSON.parse(JSON.stringify(t.raw)));s&&(i+=". "+s)}catch(n){}}return'error.somethingWentWrong'!==r(d[11]).TransactionErrorMessage[o]&&v(r(d[11]).TransactionErrorMessage[o])?v(r(d[11]).TransactionErrorMessage[o],{nativeToken:null==t?void 0:t.nativeToken,token:null==t?void 0:t.token}):i},y=function(n,t){var o=h(n,t);u('error',o,5e3)},S=(s=(0,t.default)((function*(n,t){var o=n.sendWallet,i=n.sendToken,s=n.sentAmount,c=t.address,l=i.tokenChainId.startsWith('tron:'),p=yield r(d[12]).db.getWallet(o.walletId,!0),T=l?p.tronPrivateKey:p.privateKey,k='',w='';try{var f=yield r(d[13]).transferTxnHandler.send({chainId:i.tokenChainId,privateKey:T,toAddress:c,sentAmount:s,sentTokenAddress:i.tokenAddress,callback:function(n){n?u('success',v('sendToken.transaction_confirmed')):u('error',v('error.transaction_failed'))}});k=f.hash,w=f.id}catch(n){var h;r(d[14]).Logger.error(n);var S=(0,r(d[15]).getChainFromId)({chainId:i.tokenChainId});return y(null==n?void 0:n.code,{nativeToken:null==S||null==(h=S.defaultToken)?void 0:h.symbol,token:i.tokenSymbol,raw:n}),{isSuccess:!1}}return{isSuccess:!0,hash:k,id:w}})),function(n,t){return s.apply(this,arguments)}),A=(c=(0,t.default)((function*(n){var t,o=n.selectedWallet,i=n.sentAmount,s=n.sentToken,c=n.receivedToken,l=yield o.getKeyPair(),p=l.privateKey,T=l.tronPrivateKey,k=(0,r(d[15]).getChainFromId)({chainId:s.chainId}),w='tron'===k.namespace?T:p,f=E(s,c),h=f.isDeposit,y=f.isWithdraw;if(!h&&!y)throw new Error('Incorrect wrap pair');var S,A,I='ok';try{A=h?yield r(d[13]).wrapTxnHandler.deposit({privateKey:w,chainId:k.chainId,amount:i,callback:function(n){n?u('success',v('swapToken.noti.swap_success')):(I=r(d[11]).SwapErrorType.SWAP_ERROR,u('error',v('swapToken.noti.swap_failed')))}}):yield r(d[13]).wrapTxnHandler.withdraw({privateKey:w,chainId:k.chainId,amount:i,callback:function(n){n?u('success',v('swapToken.noti.swap_success')):(I=r(d[11]).SwapErrorType.SWAP_ERROR,u('error',v('swapToken.noti.swap_failed')))}})}catch(n){return r(d[14]).Logger.error(n),{kind:I=r(d[11]).SwapErrorType.TXN_ERROR,data:S=n}}return'ok'!==I?{kind:I,data:S}:{kind:'ok',data:{id:null==(t=A)?void 0:t.id}}})),function(n){return c.apply(this,arguments)}),I=(l=(0,t.default)((function*(n){var t,o=n.selectedWallet,i=n.sentAmount,s=n.sentToken,c=n.receivedAmount,l=n.receivedToken,p=n.dex,T=n.gasPriority,k=n.approveAll,f=n.gaMappingId,h=performance.now(),y=yield o.getKeyPair(),S=y.privateKey,A=y.tronPrivateKey,I=(0,r(d[15]).getChainFromId)({chainId:s.chainId}),E='tron'===I.namespace,_=E?A:S,R=E?(0,r(d[16]).getWalletAddressByChain)(I.chainId,w.tronEvmAddress):w.address;if(!I.supportSwap)throw new Error("Swap is not supported on "+I.name);var b,C,D=yield r(d[17]).readyAggregator.getContractAddress(I.chainId),N='ok',x=!1;if(I.defaultToken.address!==s.address){var O=yield r(d[13]).approveTxnHandler.getAllowance({owner:R,spender:D,token:s});'ALL'!==O&&r(d[18]).BlockChainUtils.toBigNumber(O).isLessThan(i)&&(x=!0)}var W={source_token:JSON.stringify({address:s.address,symbol:s.symbol,chainId:s.chainId}),destination_token:JSON.stringify({address:l.address,symbol:l.symbol,chainId:l.chainId}),source_token_amount:i,destination_token_suggest_amount:p.raw.outAmount,dex_fee:p.raw.serviceFee,suggest_slippage:p.slippage,chosen_dex:p.name,transaction_hash:null,transaction_completion_time:null,approved:!1,status:!1};try{if(x){var P=yield r(d[13]).swapTxnHandler.createPendingSwap({privateKey:_,sentAmount:i,sentToken:s,receivedAmount:c,receivedToken:l,dex:p.raw,dexSwapData:p.swapData,gasPriority:T,chainId:s.chainId});try{C=yield r(d[13]).approveTxnHandler.approve({privateKey:_,spenderAddress:D,token:s,amount:i,approveAll:k,gasPriority:T,linkedTransactionId:P,callback:function(n){n||(u('error',v('swapToken.noti.swap_failed')),N=r(d[11]).SwapErrorType.APPROVE_ERROR)},linkedTransactionCallback:function(n){var t=n.isSuccess,o=n.error,i=n.hash;t?u('success',v('swapToken.noti.swap_success')):null!=o&&o.code?(N=r(d[11]).SwapErrorType.TXN_ERROR,b=o):(u('error',v('swapToken.noti.swap_failed')),N=r(d[11]).SwapErrorType.LINK_TXN_ERROR),W.transaction_hash="hash-"+i,W.status=t,W.approved=!0,W.transaction_completion_time=(performance.now()-h)/1e3,r(d[19]).gaService.sendEvent('swap_result',Object.assign({},W,{bundle_id:f}))}})}catch(n){throw yield r(d[20]).walletHistoryService.delete(P),n}}else C=yield r(d[13]).swapTxnHandler.swap({privateKey:_,sentAmount:i,sentToken:s,receivedAmount:c,receivedToken:l,dex:p.raw,dexSwapData:p.swapData,gasPriority:T,chainId:I.chainId,callback:function(n,t){n?u('success',v('swapToken.noti.swap_success')):(N=r(d[11]).SwapErrorType.SWAP_ERROR,u('error',v('swapToken.noti.swap_failed'))),W.transaction_hash="hash-"+t,W.status=n,W.transaction_completion_time=(performance.now()-h)/1e3,r(d[19]).gaService.sendEvent('swap_result',Object.assign({},W,{bundle_id:f}))}})}catch(n){return r(d[14]).Logger.error(n),{kind:N=r(d[11]).SwapErrorType.TXN_ERROR,data:b=n}}return'ok'!==N?{kind:N,data:b}:{kind:'ok',data:{id:null==(t=C)?void 0:t.id}}})),function(n){return l.apply(this,arguments)}),E=function(n,t){var o,i,s,c,l=(0,r(d[15]).getChainFromId)({chainId:null==n?void 0:n.chainId});return{isDeposit:(null==n?void 0:n.address)===(null==l||null==(o=l.defaultToken)?void 0:o.address)&&t&&t.address===(null==l||null==(i=l.wrappedToken)?void 0:i.address),isWithdraw:t&&t.address===(null==l||null==(s=l.defaultToken)?void 0:s.address)&&(null==n?void 0:n.address)===(null==l||null==(c=l.wrappedToken)?void 0:c.address)}},_=function(n,t){var o='tron'===t,i=k.wallets.filter((function(t){return n.toLowerCase()===(o?t.tronEvmAddress:t.address)}));return i.find((function(n){return n.id===k.selectedWalletId}))||i[0]},R={getTransactionStatusText:function(n){var t={text:v('walletDetail.transactionStatus.pending'),color:T.warning};switch(n){case r(d[8]).TransactionStatus.CONFIRMED:t.text=v('walletDetail.transactionStatus.confirmed'),t.color=T.success;break;case r(d[8]).TransactionStatus.ERROR:case r(d[8]).TransactionStatus.CANCELED:case r(d[8]).TransactionStatus.DROPPED:t.text=v('walletDetail.transactionStatus.error'),t.color=T.error;break;case r(d[8]).TransactionStatus.PENDING:case r(d[8]).TransactionStatus.UNCONFIRMED:t.text=v('walletDetail.transactionStatus.pending'),t.color=T.warning}return t},getTransactionDetailText:f,getAndSaveRandomEmoji:function(n){var t=Math.floor(134*Math.random())+1,o=r(d[10]).WALLET_ICON[t];return i.default.isEmpty(n)||null==n||n.updateIcon(o),o},getTransactionErrorMessage:h,notifyTransactionError:y,getRandomWalletBackground:function(){var n;if(null==k||null==(n=k.wallets)||!n.length)return'bg1';var t=k.wallets,i=Object.keys(r(d[10]).WALLET_BACKGROUND).filter((function(n){return!t.map((function(n){return n.background})).includes(n)}));return i.length||(i=Object.keys(r(d[10]).WALLET_BACKGROUND).filter((function(n){return n!==t[0].background}))),(0,o.default)(i)},handleSendToken:S,handleWrapToken:A,handleSwapToken:I,importCustomToken:function(t,o,i){return!r(d[21]).tokenDataService.getToken({chainId:t,address:o.address})||i?(r(d[21]).tokenDataService.addCustomToken(o),k.wallets.forEach((function(t){t.chainId&&t.chainId!==o.chainId||(t.setTokens([].concat((0,n.default)(t.tokens),[Object.assign({},o,{balance:'0',usdAmount:'0',isCustomToken:!0})])),t.loadSomeTokens([o],k.currency.name))})),!0):(u('error',v('importCustomToken.tokenExisted')),!1)},getGasFeeFromTxn:function(n){if(!n||!n.gasPrice)return'0';var t=(0,r(d[15]).getChainFromId)({chainNumber:n.chainId,namespace:n.namespace}),o=r(d[18]).BlockChainUtils.hexToAmount(n.gasPrice,t.defaultToken.decimals),i=r(d[18]).BlockChainUtils.hexToAmount(n.gasUsed||n.gasLimit,0);return r(d[18]).BlockChainUtils.toBigNumber(o).multipliedBy(r(d[18]).BlockChainUtils.toBigNumber(i)).toString(10)},filterTransactions:function(n,t,o,i){var s=o.transactionType,c=o.chainId,l=o.fromDate,u=o.toDate,p=(t-1)*(i||15);return n.filter((function(n){var t,o=1e3*n.timestamp,i=new Date(o),p=l?new Date(l):null,T=u?new Date(u):null,v=p&&T&&p.toDateString()===T.toDateString(),k=!l||!u||o>=l&&o<=u,h=v&&i.toDateString()===p.toDateString(),y=(t=f(n,{walletAddress:w.address}),1===(null==s?void 0:s.type)?n.type===(null==s?void 0:s.type)&&t.action===r(d[9]).TransactionAction.SEND:1.5===(null==s?void 0:s.type)?1===n.type&&t.action===r(d[9]).TransactionAction.REQUEST:n.type===(null==s?void 0:s.type)),S=!(null!=s&&s.type)||y,A=!c||n.namespace+":"+n.chainId===c;return(k||h)&&S&&A})).slice(p,p+(i||15))},isDepositOrWithdraw:E,getWalletModelInTxnDetail:_,getWalletItemInTxnDetail:function(n,t){var o=_(n,t);if(o)return{icon:o.icon,name:o.name};var i=k.addressBook.find((function(t){return t.address.toLowerCase()===n.toLowerCase()}));return i?{name:i.name}:null}};return R}}),3412,[20,23,316,3413,1064,3149,3165,701,1440,628,3409,1452,1065,2917,1413,1474,2920,3059,1058,3448,2916,2812]);
|
|
3634
|
+
__d((function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useWalletHelperMixins=void 0;var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),i=r(d[0])(r(d[4]));e.useWalletHelperMixins=function(){var s,c,l,u=(0,r(d[5]).useMixins)().notify,p=(0,r(d[6]).useTheme)(),T=p.colors,v=p.translate,h=(0,r(d[7]).useStores)().account,k=h.selectedWallet,w=function(n,t){var o=t.walletAddress,i={type:(null==n?void 0:n.type)||r(d[8]).TransactionType.UNKNOWN,text:v('common.unknown'),action:r(d[9]).TransactionAction.UNKNOWN,color:T.success,backgroundColor:T.success,isReceiver:!1,isSwap:!1,isApprove:!1};if(!n)return i;switch(n.type){case r(d[8]).TransactionType.TRANSFER:var s;i.action=r(d[9]).TransactionAction.SEND;var c=(null==(s=n.to)?void 0:s.toLowerCase())===(null==o?void 0:o.toLowerCase());i.text=c?""+v('common.receive'):""+v('common.send'),i.action=c?r(d[9]).TransactionAction.REQUEST:r(d[9]).TransactionAction.SEND,i.color=c?T.success:T.primary,i.backgroundColor=c?T.success:T.primary,i.isReceiver=c;break;case r(d[8]).TransactionType.SWAP:i.text=v('common.swap'),i.action=r(d[9]).TransactionAction.SWAP,i.color=T.error,i.backgroundColor=T.error,i.isSwap=!0;break;case r(d[8]).TransactionType.APPROVE:i.text=v('common.approve'),i.action=r(d[9]).TransactionAction.APPROVE,i.color=T.warning,i.backgroundColor=T.warning,i.isApprove=!0;break;case r(d[8]).TransactionType.SMART_CONTRACT:i.text=v('common.smartContract')}return i},f=function(n,t){var o=n,i=v('error.somethingWentWrong');if(null!=t&&t.raw){JSON.stringify(t.raw).includes('balance is not sufficient')&&(o='INSUFFICIENT_FUNDS');try{var s=(function n(t){var o=['reason','message'];if('object'!=typeof t||null===t)return null;for(var i in t){if(o.includes(i))return t[i];if('object'==typeof t[i]){var s=n(t[i]);if(s)return s}}return null})(JSON.parse(JSON.stringify(t.raw)));s&&(i+=". "+s)}catch(n){}}return'error.somethingWentWrong'!==r(d[11]).TransactionErrorMessage[o]&&v(r(d[11]).TransactionErrorMessage[o])?v(r(d[11]).TransactionErrorMessage[o],{nativeToken:null==t?void 0:t.nativeToken,token:null==t?void 0:t.token}):i},y=function(n,t){var o=f(n,t);u('error',o,5e3)},S=(s=(0,t.default)((function*(n,t){var o=n.sendWallet,i=n.sendToken,s=n.sentAmount,c=t.address,l=i.tokenChainId.startsWith('tron:'),p=yield r(d[12]).db.getWallet(o.walletId,!0),T=l?p.tronPrivateKey:p.privateKey,h='',k='';try{var w=yield r(d[13]).transferTxnHandler.send({chainId:i.tokenChainId,privateKey:T,toAddress:c,sentAmount:s,sentTokenAddress:i.tokenAddress,callback:function(n){n?u('success',v('sendToken.transaction_confirmed')):u('error',v('error.transaction_failed'))}});h=w.hash,k=w.id}catch(n){var f;r(d[14]).Logger.error(n);var S=(0,r(d[15]).getChainFromId)({chainId:i.tokenChainId});return y(null==n?void 0:n.code,{nativeToken:null==S||null==(f=S.defaultToken)?void 0:f.symbol,token:i.tokenSymbol,raw:n}),{isSuccess:!1}}return{isSuccess:!0,hash:h,id:k}})),function(n,t){return s.apply(this,arguments)}),I=(c=(0,t.default)((function*(n){var t,o=n.selectedWallet,i=n.sentAmount,s=n.sentToken,c=n.receivedToken,l=(0,r(d[15]).getChainFromId)({chainId:s.chainId}),p=yield o.getPrivateKeyPairByChain({chainId:s.chainId}),T=E(s,c),h=T.isDeposit,k=T.isWithdraw;if(!h&&!k)throw new Error('Incorrect wrap pair');var w,f,y='ok';try{f=h?yield r(d[13]).wrapTxnHandler.deposit({privateKey:p,chainId:l.chainId,amount:i,callback:function(n){n?u('success',v('swapToken.noti.swap_success')):(y=r(d[11]).SwapErrorType.SWAP_ERROR,u('error',v('swapToken.noti.swap_failed')))}}):yield r(d[13]).wrapTxnHandler.withdraw({privateKey:p,chainId:l.chainId,amount:i,callback:function(n){n?u('success',v('swapToken.noti.swap_success')):(y=r(d[11]).SwapErrorType.SWAP_ERROR,u('error',v('swapToken.noti.swap_failed')))}})}catch(n){return r(d[14]).Logger.error(n),{kind:y=r(d[11]).SwapErrorType.TXN_ERROR,data:w=n}}return'ok'!==y?{kind:y,data:w}:{kind:'ok',data:{id:null==(t=f)?void 0:t.id}}})),function(n){return c.apply(this,arguments)}),A=(l=(0,t.default)((function*(n){var t,o=n.selectedWallet,i=n.sentAmount,s=n.sentToken,c=n.receivedAmount,l=n.receivedToken,p=n.dex,T=n.gasPriority,h=n.approveAll,w=n.gaMappingId,f=performance.now(),y=(0,r(d[15]).getChainFromId)({chainId:s.chainId}),S='tron'===y.namespace,I=yield o.getPrivateKeyPairByChain({chainId:s.chainId}),A=S?(0,r(d[16]).getWalletAddressByChain)(y.chainId,k.tronEvmAddress):k.address;if(!y.supportSwap)throw new Error("Swap is not supported on "+y.name);var E,_,R=yield r(d[17]).readyAggregator.getContractAddress(y.chainId),C='ok',b=!1;if(y.defaultToken.address!==s.address){var D=yield r(d[13]).approveTxnHandler.getAllowance({owner:A,spender:R,token:s});'ALL'!==D&&r(d[18]).BlockChainUtils.toBigNumber(D).isLessThan(i)&&(b=!0)}var N={source_token:JSON.stringify({address:s.address,symbol:s.symbol,chainId:s.chainId}),destination_token:JSON.stringify({address:l.address,symbol:l.symbol,chainId:l.chainId}),source_token_amount:i,destination_token_suggest_amount:p.raw.outAmount,dex_fee:p.raw.serviceFee,suggest_slippage:p.slippage,chosen_dex:p.name,transaction_hash:null,transaction_completion_time:null,approved:!1,status:!1};try{if(b){var x=yield r(d[13]).swapTxnHandler.createPendingSwap({privateKey:I,sentAmount:i,sentToken:s,receivedAmount:c,receivedToken:l,dex:p.raw,dexSwapData:p.swapData,gasPriority:T,chainId:s.chainId});try{_=yield r(d[13]).approveTxnHandler.approve({privateKey:I,spenderAddress:R,token:s,amount:i,approveAll:h,gasPriority:T,linkedTransactionId:x,callback:function(n){n||(u('error',v('swapToken.noti.swap_failed')),C=r(d[11]).SwapErrorType.APPROVE_ERROR)},linkedTransactionCallback:function(n){var t=n.isSuccess,o=n.error,i=n.hash;t?u('success',v('swapToken.noti.swap_success')):null!=o&&o.code?(C=r(d[11]).SwapErrorType.TXN_ERROR,E=o):(u('error',v('swapToken.noti.swap_failed')),C=r(d[11]).SwapErrorType.LINK_TXN_ERROR),N.transaction_hash="hash-"+i,N.status=t,N.approved=!0,N.transaction_completion_time=(performance.now()-f)/1e3,r(d[19]).gaService.sendEvent('swap_result',Object.assign({},N,{bundle_id:w}))}})}catch(n){throw yield r(d[20]).walletHistoryService.delete(x),n}}else _=yield r(d[13]).swapTxnHandler.swap({privateKey:I,sentAmount:i,sentToken:s,receivedAmount:c,receivedToken:l,dex:p.raw,dexSwapData:p.swapData,gasPriority:T,chainId:y.chainId,callback:function(n,t){n?u('success',v('swapToken.noti.swap_success')):(C=r(d[11]).SwapErrorType.SWAP_ERROR,u('error',v('swapToken.noti.swap_failed'))),N.transaction_hash="hash-"+t,N.status=n,N.transaction_completion_time=(performance.now()-f)/1e3,r(d[19]).gaService.sendEvent('swap_result',Object.assign({},N,{bundle_id:w}))}})}catch(n){return r(d[14]).Logger.error(n),{kind:C=r(d[11]).SwapErrorType.TXN_ERROR,data:E=n}}return'ok'!==C?{kind:C,data:E}:{kind:'ok',data:{id:null==(t=_)?void 0:t.id}}})),function(n){return l.apply(this,arguments)}),E=function(n,t){var o,i,s,c,l=(0,r(d[15]).getChainFromId)({chainId:null==n?void 0:n.chainId});return{isDeposit:(null==n?void 0:n.address)===(null==l||null==(o=l.defaultToken)?void 0:o.address)&&t&&t.address===(null==l||null==(i=l.wrappedToken)?void 0:i.address),isWithdraw:t&&t.address===(null==l||null==(s=l.defaultToken)?void 0:s.address)&&(null==n?void 0:n.address)===(null==l||null==(c=l.wrappedToken)?void 0:c.address)}},_=function(n,t){var o='tron'===t,i=h.wallets.filter((function(t){return n.toLowerCase()===(o?t.tronEvmAddress:t.address)}));return i.find((function(n){return n.id===h.selectedWalletId}))||i[0]},R={getTransactionStatusText:function(n){var t={text:v('walletDetail.transactionStatus.pending'),color:T.warning};switch(n){case r(d[8]).TransactionStatus.CONFIRMED:t.text=v('walletDetail.transactionStatus.confirmed'),t.color=T.success;break;case r(d[8]).TransactionStatus.ERROR:case r(d[8]).TransactionStatus.CANCELED:case r(d[8]).TransactionStatus.DROPPED:t.text=v('walletDetail.transactionStatus.error'),t.color=T.error;break;case r(d[8]).TransactionStatus.PENDING:case r(d[8]).TransactionStatus.UNCONFIRMED:t.text=v('walletDetail.transactionStatus.pending'),t.color=T.warning}return t},getTransactionDetailText:w,getAndSaveRandomEmoji:function(n){var t=Math.floor(134*Math.random())+1,o=r(d[10]).WALLET_ICON[t];return i.default.isEmpty(n)||null==n||n.updateIcon(o),o},getTransactionErrorMessage:f,notifyTransactionError:y,getRandomWalletBackground:function(){var n;if(null==h||null==(n=h.wallets)||!n.length)return'bg1';var t=h.wallets,i=Object.keys(r(d[10]).WALLET_BACKGROUND).filter((function(n){return!t.map((function(n){return n.background})).includes(n)}));return i.length||(i=Object.keys(r(d[10]).WALLET_BACKGROUND).filter((function(n){return n!==t[0].background}))),(0,o.default)(i)},handleSendToken:S,handleWrapToken:I,handleSwapToken:A,importCustomToken:function(t,o,i){return!r(d[21]).tokenDataService.getToken({chainId:t,address:o.address})||i?(r(d[21]).tokenDataService.addCustomToken(o),h.wallets.forEach((function(t){t.chainId&&t.chainId!==o.chainId||(t.setTokens([].concat((0,n.default)(t.tokens),[Object.assign({},o,{balance:'0',usdAmount:'0',isCustomToken:!0})])),t.loadSomeTokens([o],h.currency.name))})),!0):(u('error',v('importCustomToken.tokenExisted')),!1)},getGasFeeFromTxn:function(n){if(!n||!n.gasPrice)return'0';var t=(0,r(d[15]).getChainFromId)({chainNumber:n.chainId,namespace:n.namespace}),o=r(d[18]).BlockChainUtils.hexToAmount(n.gasPrice,t.defaultToken.decimals),i=r(d[18]).BlockChainUtils.hexToAmount(n.gasUsed||n.gasLimit,0);return r(d[18]).BlockChainUtils.toBigNumber(o).multipliedBy(r(d[18]).BlockChainUtils.toBigNumber(i)).toString(10)},filterTransactions:function(n,t,o,i){var s=o.transactionType,c=o.chainId,l=o.fromDate,u=o.toDate,p=(t-1)*(i||15);return n.filter((function(n){var t,o=1e3*n.timestamp,i=new Date(o),p=l?new Date(l):null,T=u?new Date(u):null,v=p&&T&&p.toDateString()===T.toDateString(),h=!l||!u||o>=l&&o<=u,f=v&&i.toDateString()===p.toDateString(),y=(t=w(n,{walletAddress:k.address}),1===(null==s?void 0:s.type)?n.type===(null==s?void 0:s.type)&&t.action===r(d[9]).TransactionAction.SEND:1.5===(null==s?void 0:s.type)?1===n.type&&t.action===r(d[9]).TransactionAction.REQUEST:n.type===(null==s?void 0:s.type)),S=!(null!=s&&s.type)||y,I=!c||n.namespace+":"+n.chainId===c;return(h||f)&&S&&I})).slice(p,p+(i||15))},isDepositOrWithdraw:E,getWalletModelInTxnDetail:_,getWalletItemInTxnDetail:function(n,t){var o=_(n,t);if(o)return{icon:o.icon,name:o.name};var i=h.addressBook.find((function(t){return t.address.toLowerCase()===n.toLowerCase()}));return i?{name:i.name}:null}};return R}}),3412,[20,23,316,3413,1064,3149,3165,701,1440,628,3409,1452,1065,2917,1413,1474,2920,3059,1058,3448,2916,2812]);
|
|
3635
3635
|
__d((function(g,r,i,a,m,e,d){m.exports=function(n){return(r(d[0])(n)?r(d[1]):r(d[2]))(n)}}),3413,[3414,3415,3417]);
|
|
3636
3636
|
__d((function(g,r,i,a,m,e,d){var n=Array.isArray;m.exports=n}),3414,[]);
|
|
3637
3637
|
__d((function(g,r,i,a,m,e,d){m.exports=function(n){var t=n.length;return t?n[r(d[0])(0,t-1)]:void 0}}),3415,[3416]);
|
|
@@ -4680,7 +4680,7 @@ __d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0
|
|
|
4680
4680
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletEditButton=void 0;r(d[0])(r(d[1]));var t=r(d[2]);e.WalletEditButton=function(o){var s=o.onPress,n=o.title,l=o.textRight,c=o.titleColor,x=o.textRightStyle,h=o.isDisable,y=o.isLoading,j=o.leftIcon,u=o.leftIconColor,b=o.rightIcon,I=o.rightIconColor,f=o.testID,R=o.containerStyle,p=(0,r(d[3]).useTheme)().colors,v={flexDirection:'row',alignItems:'center'};return(0,r(d[4]).jsx)(t.TouchableOpacity,{onPress:s,disabled:h,testID:f,children:(0,r(d[4]).jsxs)(t.View,{style:[{borderRadius:16,justifyContent:'space-between',padding:16,backgroundColor:p.block,opacity:h?.5:1},v,R],children:[(0,r(d[4]).jsxs)(t.View,{style:[v,{flex:1}],children:[j&&(y?(0,r(d[4]).jsx)(t.ActivityIndicator,{size:'small',color:p.text,style:{marginRight:16}}):(0,r(d[4]).jsx)(r(d[5]).Icon,{icon:j,size:24,containerStyle:{marginRight:16},color:u||p.text})),(0,r(d[4]).jsx)(r(d[5]).Text,Object.assign({},c,{text:n,style:{maxWidth:'85%',marginRight:20}}))]}),(0,r(d[4]).jsxs)(t.View,{style:v,children:[l&&(0,r(d[4]).jsx)(r(d[5]).Text,Object.assign({},x,{text:l,ellipsizeMode:"tail",style:{marginRight:14},numberOfLines:1})),b&&(0,r(d[4]).jsx)(r(d[5]).Icon,{icon:b,size:24,color:I||p.text})]})]})})}}),4370,[20,140,18,3165,180,3617]);
|
|
4681
4681
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ViewSeedPhraseModal=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(n,s,l):n[s]=e[s]}return n.default=e,o&&o.set(e,n),n})(_r(d[3])),n=_r(d[4]);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}_e.ViewSeedPhraseModal=(0,_r(d[5]).observer)((function(r){var i,s,l=r.isOpen,a=r.onClose,c=(0,_r(d[6]).useStores)().account,u=(0,_r(d[7]).useMixins)().copyToClipboard,f=(0,_r(d[8]).useTheme)(),p=f.colors,x=f.translate,y=(0,o.useState)(''),h=(0,t.default)(y,2),S=h[0],w=h[1],b=(0,o.useState)(!1),j=(0,t.default)(b,2),M=j[0],O=j[1],P=c.selectedWallet,v=(i=(0,e.default)((function*(){var e=yield P.getPassphrase();w(e)})),function(){return i.apply(this,arguments)}),I=(s=(0,e.default)((function*(){O(!1),w('')})),function(){return s.apply(this,arguments)});return(0,o.useEffect)((function(){l||I()}),[l]),(0,_r(d[9]).jsxs)(_r(d[10]).ModalWithAuth,{isOpen:l,onClose:a,onSuccess:v,children:[(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:"x",size:24,containerStyle:{alignSelf:'flex-end',marginBottom:16},onPress:a}),(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:"seedphrase",size:40,containerStyle:{alignSelf:'center'},color:p.primary}),(0,_r(d[9]).jsx)(_r(d[11]).Text,{preset:"bold",tx:"walletEditScreen.showSeedOrKeyModal.safeSeed",style:{textAlign:'center',marginTop:16,marginBottom:8},size:"lg"}),(0,_r(d[9]).jsx)(_r(d[11]).Text,{preset:"label",size:"base",tx:"walletEditScreen.showSeedOrKeyModal.seedDes",style:{textAlign:'center',marginBottom:16}}),(0,_r(d[9]).jsx)(n.View,{style:{borderRadius:12,borderWidth:1,borderColor:p.border,padding:16,marginBottom:16,backgroundColor:p.background},children:(0,_r(d[9]).jsx)(_r(d[11]).Text,{testID:"viewSeedPhraseModal.text.notFound",text:S||x('error.notFoundSeed'),style:{textAlign:'center'}})}),(0,_r(d[9]).jsxs)(n.View,{style:{paddingHorizontal:16,paddingVertical:8,marginBottom:24},children:[(0,_r(d[9]).jsx)(_r(d[12]).TextInfoWithIcon,{icon:'shield-check',tx:"walletEditScreen.showSeedOrKeyModal.safePlace"}),(0,_r(d[9]).jsx)(_r(d[12]).TextInfoWithIcon,{icon:'user-circle-minus',tx:"walletEditScreen.showSeedOrKeyModal.noShare"}),(0,_r(d[9]).jsx)(_r(d[12]).TextInfoWithIcon,{icon:'prohibit',tx:"walletEditScreen.showSeedOrKeyModal.beCareful"})]}),(0,_r(d[9]).jsxs)(n.View,{style:{flexDirection:'row',marginBottom:16},children:[(0,_r(d[9]).jsx)(_r(d[11]).Button,{preset:"secondary",style:{backgroundColor:p.transparent,flex:1,marginRight:16},onPress:a,tx:'common.done'}),(0,_r(d[9]).jsx)(_r(d[11]).Button,{testID:"viewSeedPhraseModal.button.copy",onPress:function(){O(!0),u(S)},style:{flex:1},tx:M?'common.copied':'common.copy'})]})]})}))}),4371,[20,316,34,140,18,686,701,3149,3165,180,3896,3617,4372]);
|
|
4682
4682
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.TextInfoWithIcon=void 0;r(d[0])(r(d[1]));var t=r(d[2]);e.TextInfoWithIcon=function(n){var o=n.icon,c=n.tx,s=(0,r(d[3]).useTheme)().colors;return(0,r(d[4]).jsxs)(t.View,{style:{flexDirection:'row',marginVertical:8,maxWidth:'95%',alignItems:'center'},children:[(0,r(d[4]).jsx)(r(d[5]).Icon,{icon:o,color:s.success,style:{marginRight:8}}),(0,r(d[4]).jsx)(r(d[5]).Text,{preset:"label",tx:c,size:"base"})]})}}),4372,[20,140,18,3165,180,3617]);
|
|
4683
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ViewPrivateKeyModal=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),
|
|
4683
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ViewPrivateKeyModal=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var a=i?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o})(_r(d[3])),o=_r(d[4]);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}_e.ViewPrivateKeyModal=(0,_r(d[5]).observer)((function(r){var i,l,a=r.isOpen,s=r.onClose,c=r.chainId,u=(0,_r(d[6]).useStores)().account,f=(0,_r(d[7]).useMixins)().copyToClipboard,y=(0,_r(d[8]).useTheme)(),x=y.colors,p=y.translate,h=(0,n.useState)(''),w=(0,t.default)(h,2),b=w[0],S=w[1],j=(0,n.useState)(!1),v=(0,t.default)(j,2),P=v[0],M=v[1],O=u.selectedWallet,I=(i=(0,e.default)((function*(){var e=yield O.getPrivateKeyPairByChain({chainId:c});S(null==e?void 0:e.slice(2))})),function(){return i.apply(this,arguments)}),K=(l=(0,e.default)((function*(){M(!1),S('')})),function(){return l.apply(this,arguments)});return(0,n.useEffect)((function(){a||K()}),[a]),(0,_r(d[9]).jsxs)(_r(d[10]).ModalWithAuth,{isOpen:a,onClose:s,onSuccess:I,children:[(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:"x",size:24,containerStyle:{alignSelf:'flex-end',marginBottom:16},onPress:s}),(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:"key",size:40,containerStyle:{alignSelf:'center'},color:x.primary}),(0,_r(d[9]).jsx)(_r(d[11]).Text,{preset:"bold",tx:"walletEditScreen.showSeedOrKeyModal.safeKey",size:"lg",style:{textAlign:'center',marginTop:16,marginBottom:8}}),(0,_r(d[9]).jsx)(_r(d[11]).Text,{preset:"label",size:"base",tx:"walletEditScreen.showSeedOrKeyModal.keyDes",style:{textAlign:'center',marginBottom:16}}),(0,_r(d[9]).jsx)(o.View,{style:{borderRadius:12,borderWidth:1,borderColor:x.border,padding:16,marginBottom:16,backgroundColor:x.background},children:(0,_r(d[9]).jsx)(_r(d[11]).Text,{testID:"viewSeedPhraseModal.text.notFound",text:b||p('error.notFoundPK'),style:{textAlign:'center'}})}),(0,_r(d[9]).jsxs)(o.View,{style:{paddingHorizontal:16,paddingVertical:8,marginBottom:24},children:[(0,_r(d[9]).jsx)(_r(d[12]).TextInfoWithIcon,{icon:'shield-check',tx:"walletEditScreen.showSeedOrKeyModal.safePlace"}),(0,_r(d[9]).jsx)(_r(d[12]).TextInfoWithIcon,{icon:'user-circle-minus',tx:"walletEditScreen.showSeedOrKeyModal.noShare"}),(0,_r(d[9]).jsx)(_r(d[12]).TextInfoWithIcon,{icon:'prohibit',tx:"walletEditScreen.showSeedOrKeyModal.beCareful"})]}),(0,_r(d[9]).jsxs)(o.View,{style:{flexDirection:'row',marginBottom:16},children:[(0,_r(d[9]).jsx)(_r(d[11]).Button,{preset:"secondary",style:{backgroundColor:x.transparent,flex:1,marginRight:16},onPress:s,tx:'common.done'}),(0,_r(d[9]).jsx)(_r(d[11]).Button,{testID:"viewSeedPhraseModal.button.copy",onPress:function(){M(!0),f(b)},tx:P?'common.copied':'common.copy',style:{flex:1}})]})]})}))}),4373,[20,316,34,140,18,686,701,3149,3165,180,3896,3617,4372]);
|
|
4684
4684
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletAppearanceScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var u=l?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(n,o,u):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),n=_r(d[4]);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}_e.WalletAppearanceScreen=(0,_r(d[5]).observer)((function(){var a,l=(0,_r(d[6]).useNavigation)(),o=(0,_r(d[7]).useStores)().account,u=(0,_r(d[8]).useTheme)(),c=u.colors,i=u.translate,s=(0,_r(d[9]).useWalletMixins)().updateWallet,f=o.selectedWallet,p=(0,r.useState)(f.icon),v=(0,t.default)(p,2),W=v[0],x=v[1],j=(0,r.useState)(f.background),y=(0,t.default)(j,2),h=y[0],b=y[1],k=(0,r.useState)(f.name||''),C=(0,t.default)(k,2),S=C[0],_=C[1],P=W!==f.icon||h!==f.background||S!==f.name&&S,w=(a=(0,e.default)((function*(){yield null==f?void 0:f.updateAppearance({background:h}),yield null==f?void 0:f.updateIcon(W),s(f.id,{name:S}),l.goBack()})),function(){return a.apply(this,arguments)});return(0,_r(d[10]).jsx)(_r(d[11]).Screen,{safeAreaEdges:['top','bottom'],header:(0,_r(d[10]).jsx)(_r(d[11]).Header,{title:i('WalletAppearanceScreen.title'),leftIcon:"arrow-left",onLeftPress:function(){l.goBack()},rightText:i('common.save'),rightTextColor:P?c.primary:c.label,onRightPress:P&&w}),contentContainerStyle:{flex:1},children:(0,_r(d[10]).jsxs)(n.View,{style:{marginTop:16,marginHorizontal:16,flex:1},children:[(0,_r(d[10]).jsxs)(n.View,{children:[(0,_r(d[10]).jsx)(_r(d[12]).ProfileWallet,{currentWalletEmoji:W,setCurrentWalletEmoji:x,currentBackgroundCoverWallet:h}),(0,_r(d[10]).jsx)(_r(d[11]).Text,{tx:"common.name",style:{marginTop:16,marginBottom:8},color:c.label}),(0,_r(d[10]).jsx)(_r(d[11]).TextInput,{placeholder:i('WalletAppearanceScreen.enterWalletName'),value:S,onChangeText:_})]}),(0,_r(d[10]).jsx)(_r(d[13]).ChooseColorCoverWallet,{setCurrentBackgroundCoverWallet:b,currentBackgroundCoverWallet:h})]})})}))}),4374,[20,316,34,140,18,686,3450,701,3165,3411,180,3617,4375,4376]);
|
|
4685
4685
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProfileWallet=function(o){var l=o.currentWalletEmoji,u=o.currentBackgroundCoverWallet,i=o.setCurrentWalletEmoji,a=(0,t.useState)(!1),c=(0,e.default)(a,2),f=c[0],s=c[1];return(0,_r(d[5]).jsxs)(r.View,{children:[(0,_r(d[5]).jsx)(n.default,{backgroundColor:u,style:{height:143,borderRadius:12},children:(0,_r(d[5]).jsx)(r.View,{children:(0,_r(d[5]).jsx)(_r(d[6]).AvatarWallet,{currentWalletEmoji:l,onAction:function(){return s(!f)},styles:{marginTop:16,marginLeft:16}})})}),(0,_r(d[5]).jsx)(_r(d[7]).EmojiPicker,{isOpenWalletEmoji:f,onClose:function(){return s(!1)},setCurrentWalletEmoji:i})]})};var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=l?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),r=_r(d[3]),n=_r(d[0])(_r(d[4]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}}),4375,[20,34,140,18,4313,180,4314,4369]);
|
|
4686
4686
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ChooseColorCoverWallet=function(l){var t=l.currentBackgroundCoverWallet,n=l.setCurrentBackgroundCoverWallet,c=(0,r(d[3]).useTheme)().colors;return(0,r(d[4]).jsxs)(o.View,{children:[(0,r(d[4]).jsx)(r(d[5]).Text,{style:{marginTop:16},color:c.label,tx:"createWallet.walletBackground"}),(0,r(d[4]).jsx)(r(d[6]).ChooseWalletColor,{background:t,setBackground:n})]})};var o=r(d[0]);r(d[1])(r(d[2]))}),4376,[18,20,140,3165,180,3617,4368]);
|
|
@@ -5002,7 +5002,7 @@ __d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0
|
|
|
5002
5002
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.NumberKeyboard=void 0;r(d[0])(r(d[1]));var n=r(d[2]);e.NumberKeyboard=function(t){var o=t.keyboardValue,l=t.setKeyboardValue,c=t.styles,u=t.numOfCharacters,s=t.isDisableDotButton,b=(0,r(d[3]).useTheme)().colors,f=o.replaceAll(',','').length-(o.replaceAll(',','').indexOf('.')>=0?o.replaceAll(',','').indexOf('.')+1:o.replaceAll(',','').length),x=o.replaceAll(',','').indexOf('.')>-1?o.replaceAll(',','').indexOf('.')-1:o.replaceAll(',','').length,y=0,p=Array.from({length:12},(function(){return 10===(y+=1)?{id:y,value:'.',color:s?b.label:b.text,onAction:function(n){if(!s)return!!o&&-1===o.indexOf('.')&&l(o+".")}}:11===y?{id:y,value:'0',onAction:function(n){var t=o.replaceAll(',','');t.indexOf('.')<0&&0===parseFloat(t)||f>=u||x>=8||l(o+"0")}}:12===y?{id:y,icon:(0,r(d[4]).jsx)(r(d[5]).Icon,{size:24,icon:"backspace",color:b.text,style:{backgroundColor:b.background,margin:10}}),onAction:function(n){if(o){var t=o.substring(0,o.length-1);l(t)}}}:{id:y,value:y.toString(),onAction:function(n){f>=u||x>=8||l('0'===o||''===o?n:""+o+n)}}}));return(0,r(d[4]).jsx)(n.FlatList,{testID:"numberKeyboard",scrollEnabled:!1,data:p,keyExtractor:function(n){return n.id.toString()},style:[{backgroundColor:b.background,marginTop:16,marginBottom:8,alignSelf:'center'},c],renderItem:function(t){var o=t.item;return(0,r(d[4]).jsx)(n.TouchableWithoutFeedback,{testID:"numberKeyboard."+o.value,onPress:function(){return o.onAction(o.value)},onLongPress:function(){12===o.id&&l('')},children:(0,r(d[4]).jsx)(n.View,{style:{width:n.Dimensions.get('screen').width/3-12,alignItems:'center',justifyContent:'center',backgroundColor:b.background,paddingVertical:10},children:12!==o.id?(0,r(d[4]).jsx)(r(d[5]).Text,{testID:"numberKeyboard.text.Value",weight:"medium",preset:"bold",text:o.value,color:o.color,size:"3x",style:{marginTop:10===o.id?-20:0}}):o.icon})})},numColumns:3})}}),4692,[20,140,18,3165,180,3617]);
|
|
5003
5003
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SendTokenRecipientSelect=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var i=a?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(r,s,i):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r})(_r(d[3])),r=_r(d[4]);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}_e.SendTokenRecipientSelect=(0,_r(d[5]).observer)((function(o){var s=(0,_r(d[6]).useTheme)().colors,i=(0,_r(d[7]).useStores)().userStore,l=o.navigation,c=o.route.params||{},u=c.searchAddress,f=c.sendParams,x=i.selectedAccount,p=null==f?void 0:f.token,h=(0,n.useState)(''),b=(0,t.default)(h,2),w=b[0],k=b[1],j=(0,n.useState)(!1),y=(0,t.default)(j,2),T=y[0],S=y[1],C=w.trim().toLowerCase(),v=x.addressBook.filter((function(e){return e.address.toLowerCase().includes(C)&&e.address.toLowerCase()!==x.selectedWallet.address.toLowerCase()})),O=C===x.selectedWallet.address||!(0,_r(d[8]).isWalletAddress)(w.trim())||-1!==v.findIndex((function(e){return e.address.toLowerCase()===C})),I=[{title:'sendToken.yourOtherWallet',icon:(0,_r(d[9]).jsx)(_r(d[10]).Icon,{icon:"wallet",size:24,color:s.label}),action:function(){l.navigate('walletSelection',{token:p,sendParams:f})},isHide:x.wallets.length<2}],P=function(t,n,r){var o={wallet:null,walletAddress:null,addressBookName:null};o.walletAddress=t.trim(),o.source='wallet',p&&(o.token=p),n?o.addressBookName=n:o.wallet=r,l.dispatch((function(t){var n=t.routes.filter((function(e){return!['selectToken','sendTokenReceipientSelect'].includes(e.name)}));return _r(d[11]).CommonActions.reset(Object.assign({},t,{routes:[].concat((0,e.default)(n),[{name:'sendToken'}]),index:n.length-1>0?n.length-1:0}))})),l.navigate('sendToken',{sendParams:o})};(0,n.useEffect)((function(){u&&k(u)}),[u]);var L=[{header:(0,_r(d[9]).jsx)(_r(d[12]).SearchBar,{onSearch:k,value:w,placeholderTx:"sendToken.contactOrWalletAddress"}),data:[{content:(0,_r(d[9]).jsx)(r.View,{children:I.map((function(e,t){return!e.isHide&&(0,_r(d[9]).jsx)(r.TouchableOpacity,{onPress:e.action,children:(0,_r(d[9]).jsxs)(r.View,{style:[a.actionContainer,{backgroundColor:s.dark2}],children:[(0,_r(d[9]).jsxs)(r.View,{style:a.actionContent,children:[e.icon,(0,_r(d[9]).jsx)(_r(d[10]).Text,{tx:e.title,size:"md",weight:"medium",style:a.actionText})]}),(0,_r(d[9]).jsx)(_r(d[10]).Icon,{icon:"caret-right",color:s.label,size:16})]})},t)}))}),hide:!!w}]},{data:[{content:(0,_r(d[9]).jsxs)(r.TouchableOpacity,{onPress:function(){return P(w,null)},style:[a.addressContainer,{backgroundColor:s.dark2}],children:[(0,_r(d[9]).jsx)(_r(d[10]).Icon,{icon:"wallet",color:s.label,containerStyle:[a.walletIcon,{backgroundColor:s.background2}]}),(0,_r(d[9]).jsx)(_r(d[10]).Text,{text:w,numberOfLines:1,ellipsizeMode:"middle",style:{marginLeft:12,flex:1}})]}),hide:O}]},{data:[{content:(0,_r(d[9]).jsxs)(r.View,{style:{marginTop:16},children:[(0,_r(d[9]).jsx)(_r(d[10]).Text,{tx:"settings.addressBook.title",color:s.label,size:"base"}),v.map((function(e,t){return(0,_r(d[9]).jsxs)(r.TouchableOpacity,{onPress:function(){return P(e.address,e.name)},style:[a.addressContainer,{backgroundColor:s.dark2}],children:[(0,_r(d[9]).jsx)(_r(d[10]).Icon,{icon:"wallet",color:s.label,containerStyle:[a.walletIcon,{backgroundColor:s.background2}]}),(0,_r(d[9]).jsxs)(r.View,{style:a.addressContent,children:[(0,_r(d[9]).jsx)(_r(d[10]).Text,{text:e.name,numberOfLines:1,ellipsizeMode:"middle"}),(0,_r(d[9]).jsx)(_r(d[10]).Text,{text:e.address,numberOfLines:1,ellipsizeMode:"middle",preset:"label",size:"base"})]})]},t)}))]}),hide:!(v.length>0)}]},{data:[{content:(0,_r(d[9]).jsx)(_r(d[10]).Text,{tx:"error.notFoundWalletAddress",style:[a.notFoundText,{color:s.label}]}),hide:!O||!w||v.length>0}]}];return(0,_r(d[9]).jsxs)(_r(d[10]).Screen,{padding:!0,safeAreaEdges:['top','bottom'],backgroundColor:s.background,header:(0,_r(d[9]).jsx)(_r(d[10]).Header,{leftIcon:"arrow-left",onLeftPress:function(){return l.goBack()},titleTx:"sendToken.youWantToSend",rightIcon:"scan-qr-onus",onRightPress:function(){return S(!0)}}),children:[(0,_r(d[9]).jsx)(_r(d[13]).QRScannerModal,{isOpen:T,onClose:function(){return S(!1)},setValue:k,targets:['wallet-address']}),(0,_r(d[9]).jsx)(r.SectionList,{stickySectionHeadersEnabled:!0,sections:L,keyExtractor:function(e,t){return t.toString()},renderSectionHeader:function(e){var t=e.section.header;return!!t&&t},renderItem:function(e){var t=e.item;return t.hide?null:t.content},bounces:!1,style:{zIndex:100,flex:1}})]})}));var a=r.StyleSheet.create({actionContainer:{flexDirection:'row',alignItems:'center',padding:16,borderRadius:12,justifyContent:'space-between',marginTop:16},actionContent:{flexDirection:'row',alignItems:'center'},actionText:{marginLeft:12},addressContainer:{flexDirection:'row',alignItems:'center',paddingVertical:12,paddingHorizontal:16,marginTop:16,borderRadius:12},walletIcon:{padding:8,borderRadius:45},addressContent:{marginLeft:12,flex:1,marginRight:100},notFoundText:{alignSelf:'center',textAlign:'center',lineHeight:24,marginTop:24}})}),4693,[20,23,34,140,18,686,3165,701,2920,180,3617,3450,3896,4044]);
|
|
5004
5004
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletSelectionScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=o?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(n,l,s):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),n=_r(d[4]);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}_e.WalletSelectionScreen=function(a){var o=(0,_r(d[5]).useStores)().userStore,l=(0,_r(d[6]).useTheme)().colors,s=a.navigation,i=a.route.params||{},u=i.token,c=i.sendParams,f=(0,r.useState)(''),p=(0,t.default)(f,2),h=p[0],v=p[1],w=o.selectedAccount,y=w.wallets||[],j=w.selectedWalletId,k=(0,_r(d[7]).orderBy)(y.filter((function(e){return e.id!==j&&((!e.chainId||e.chainId===u.chainId)&&(e.address.includes(h)||e.name.includes(h)))})),['name'],['asc']);return(0,_r(d[9]).jsxs)(_r(d[11]).Screen,{safeAreaEdges:_r(d[12]).IS_ANDROID?['top','bottom']:['top'],padding:!0,header:(0,_r(d[9]).jsx)(_r(d[11]).Header,{leftIcon:"arrow-left",titleTx:"sendToken.chooseWallet",onLeftPress:function(){return(0,_r(d[13]).goBack)()}}),children:[(0,_r(d[9]).jsx)(_r(d[14]).SearchBar,{value:h,onSearch:v,placeholderTx:"common.search"}),(0,_r(d[9]).jsx)(n.FlatList,{data:k,ItemSeparatorComponent:function(){return(0,_r(d[9]).jsx)(n.View,{style:{height:8}})},ListEmptyComponent:(0,_r(d[9]).jsx)(_r(d[11]).Text,{tx:"sendToken.notFoundWallet",style:{alignSelf:'center'}}),style:{marginTop:16},keyExtractor:function(e,t){return t.toString()},renderItem:function(t){var r=t.item;return(0,_r(d[9]).jsx)(_r(d[10]).WalletItem,{wallet:r,showWalletAmount:!0,onPress:function(){var t,n,a,o,l={};l.wallet=null,l.walletAddress=null,l.addressBookName=null,l.source='wallet',l.wallet=r,l.walletAddress=r.address,l.token=u,t=l,n=(null==c?void 0:c.walletAddress)||(null==c?void 0:c.wallet),a='sendToken',o=n?{reload:!0,sendParams:t}:{sendParams:t},s.dispatch((function(t){var r=t.routes.slice(0,-2);return _r(d[8]).CommonActions.reset(Object.assign({},t,{routes:[].concat((0,e.default)(r),[{name:a,params:o}]),index:n&&r.length-1>0?r.length-1:0}))})),n?s.navigate(a,o):s.replace(a,o)},style:{borderRadius:12,borderWidth:1,paddingVertical:12,paddingHorizontal:16,backgroundColor:l.dark2,borderColor:l.dark3}})}})]})}}),4694,[20,23,34,140,18,701,3165,1064,3450,180,4044,3617,628,631,3896]);
|
|
5005
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConfirmSendTokenScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=
|
|
5005
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConfirmSendTokenScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=o(_r(d[3])),i=_r(d[4]),r=o(_r(d[5]));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}_e.ConfirmSendTokenScreen=function(s){var o,l,a=s.navigation,c=(s.route.params||{}).transactionConfirmationParams,u=c.sendToAddress,f=c.totalValueUSD,x=c.totalValueToken,y=c.token,h=c.wallet,p=c.params,b=c.sendToWallet,j=(0,_r(d[6]).useMixins)(),T=j.promptBiometric,k=j.isBiometricAvailable,v=j.notify,w=(0,_r(d[7]).useTheme)(),I=w.colors,S=w.translate,C=(0,_r(d[8]).useStores)().account,z=(0,_r(d[9]).useBiometricType)().biometryType,A=(0,_r(d[10]).useSafeAreaInsets)(),V=(0,n.useState)(!1),B=(0,t.default)(V,2),D=B[0],O=B[1],P=(0,n.useState)('--'),W=(0,t.default)(P,2),L=W[0],M=W[1],_=(0,n.useState)(!1),E=(0,t.default)(_,2),F=E[0],R=E[1],G=(0,_r(d[11]).getChainFromId)({chainId:null==y?void 0:y.chainId}),H=p.sendWallet.walletAddress===u,U='tron'===(null==G?void 0:G.namespace),K=[{title:S('sendToken.from'),content:(0,_r(d[12]).jsxs)(i.View,{style:{flex:1,marginLeft:16,maxWidth:'60%'},children:[(0,_r(d[12]).jsxs)(i.View,{style:{flexDirection:'row',justifyContent:'flex-end',alignItems:'center'},children:[(0,_r(d[12]).jsx)(_r(d[13]).Icon3D,{icon:null==h?void 0:h.icon,size:24,style:{marginRight:8}}),(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:null==h?void 0:h.name,size:"base",numberOfLines:1,ellipsizeMode:"tail",style:{textAlign:'right'}})]}),(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:U?(0,_r(d[14]).getWalletAddressByChain)(null==G?void 0:G.chainId,null==h?void 0:h.tronEvmAddress):null==h?void 0:h.address,numberOfLines:1,ellipsizeMode:"middle",style:{textAlign:'right'}})]})},{title:S('transactionDetail.to'),content:b?(0,_r(d[12]).jsxs)(i.View,{style:{flex:1,marginLeft:16,maxWidth:'60%'},children:[(0,_r(d[12]).jsxs)(i.View,{style:{flexDirection:'row',justifyContent:'flex-end',alignItems:'center'},children:[(0,_r(d[12]).jsx)(_r(d[13]).Icon3D,{icon:b.icon,size:24,style:{marginRight:8}}),(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:b.name,size:"base",numberOfLines:1,ellipsizeMode:"tail",style:{textAlign:'right'}})]}),(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:u,numberOfLines:1,ellipsizeMode:"middle",style:{textAlign:'right'}})]}):(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:u,style:{flex:1,maxWidth:'45%',textAlign:'right'},numberOfLines:1,ellipsizeMode:"middle",size:"base"})},{title:S('transactionDetail.chain'),content:(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:G.name,style:{flex:1,maxWidth:'45%',textAlign:'right'},numberOfLines:1,size:"base"})},{title:S('sendToken.feeEstimate'),content:F?(0,_r(d[12]).jsx)(i.ActivityIndicator,{size:"small"},2):(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:""+L,size:"base",style:{textAlign:'right'}},2)}],N=_r(d[15]).tokenRateService.getValueDisplayForCurrency(f,C.currency.name).display,q=function(){a.replace('waitingForSendingToken',p)},J=function(){(0,_r(d[16]).goBack)()},Q=(o=(0,e.default)((function*(){if(C.faceIdEnabled){if(!(yield k()))return void O(!0);yield T({message:S('authentication.activateBy',{biometricType:z}),onSuccess:q,onFail:function(){O(!0)}})}else O(!0)})),function(){return o.apply(this,arguments)}),X=(l=(0,e.default)((function*(){R(!0);try{var e=yield h.getPrivateKeyPairByChain({chainId:y.chainId}),t=yield _r(d[17]).transferTxnHandler.estimateGas({chainId:y.chainId,privateKey:e,toAddress:u,sentAmount:x,sentTokenAddress:y.address});if(t.gasPrice&&t.gasLimit){var n=(0,_r(d[11]).getChainFromId)({chainId:null==y?void 0:y.chainId}),i=_r(d[18]).BlockChainUtils.toBigNumber(t.gasPrice.toString()).multipliedBy(t.gasLimit.toString()).toString(10);M(_r(d[18]).BlockChainUtils.toFixed(_r(d[18]).BlockChainUtils.weiToAmount(i,n.defaultToken.decimals),8)+" "+(null==n?void 0:n.currency)),R(!1)}}catch(e){_r(d[19]).Logger.debug("Get gas price confirm send token error: "+e),v('error',S('error.cantGetGasPrice')+". Error: "+e),(0,_r(d[16]).goBack)(),R(!0)}})),function(){return l.apply(this,arguments)});(0,n.useEffect)((function(){X()}),[]);return(0,_r(d[12]).jsx)(_r(d[13]).Screen,{KeyboardAvoidingViewProps:{enabled:!1},backgroundColor:(0,_r(d[21]).colorTransparency)(I.black,40),children:(0,_r(d[12]).jsxs)(i.View,{style:{flex:1,justifyContent:'flex-end',backgroundColor:(0,_r(d[21]).colorTransparency)(I.black,40)},children:[(0,_r(d[12]).jsx)(i.TouchableWithoutFeedback,{onPress:J,style:{flex:1},children:(0,_r(d[12]).jsx)(i.View,{style:{flex:1}})}),(0,_r(d[12]).jsxs)(r.default.View,{entering:r.SlideInDown.duration(300).delay(200),style:[{backgroundColor:I.block,paddingBottom:A.bottom+16,borderRadius:12,paddingHorizontal:16,height:.7*_r(d[22]).SCREEN_HEIGHT,justifyContent:'space-between'}],children:[(0,_r(d[12]).jsxs)(i.View,{children:[(0,_r(d[12]).jsxs)(i.View,{style:{flexDirection:'row',justifyContent:'space-between',paddingVertical:16},children:[(0,_r(d[12]).jsx)(_r(d[13]).Text,{tx:"sendToken.confirmTransactionTo",preset:"bold",size:"lg"}),(0,_r(d[12]).jsx)(_r(d[13]).Icon,{icon:"x",onPress:J,size:24})]}),(0,_r(d[12]).jsxs)(i.View,{style:{borderWidth:1,borderRadius:12,borderColor:I.dark3,padding:16},children:[(0,_r(d[12]).jsxs)(i.View,{style:{padding:16,borderRadius:12,backgroundColor:I.background2,justifyContent:'center',alignItems:'center',marginBottom:16},children:[(0,_r(d[12]).jsx)(_r(d[20]).CryptoIcon,{symbol:null==y?void 0:y.symbol,chainId:null==y?void 0:y.chainId,size:40}),(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:"-"+x+" "+(null==y?void 0:y.symbol),size:"base",color:I.error,style:{paddingTop:8,paddingBottom:4}}),(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:"~ "+N,size:"base",preset:"label"})]}),K.map((function(e,t){return(0,_r(d[12]).jsxs)(i.View,{testID:"confirmSendTokenScreen.view."+e.title,style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingVertical:8},children:[(0,_r(d[12]).jsx)(_r(d[13]).Text,{testID:"confirmSendTokenScreen.text."+e.title,preset:"label",size:"base",text:e.title}),e.content]},t)}))]})]}),(0,_r(d[12]).jsxs)(i.View,{children:[(0,_r(d[12]).jsx)(_r(d[13]).Text,{tx:"sendToken.confirmText",style:{textAlign:'center',marginVertical:16},size:"sm",color:I.label}),(0,_r(d[12]).jsx)(_r(d[13]).Button,{testID:"confirmSendTokenScreen.button.confirm",disabled:F||L.includes('--')||H,onPress:Q,tx:H?'sendToken.sendToSelf':'sendToken.confirmAndSend',LeftAccessory:H?void 0:function(e){return C.faceIdEnabled?(0,_r(d[12]).jsx)(_r(d[13]).Icon,Object.assign({icon:z===_r(d[23]).FaceID?'face-id':'fingerprint',size:32,color:I.text},e)):(0,_r(d[12]).jsx)(_r(d[13]).Icon,Object.assign({icon:"password-check",size:24,color:I.text},e))}})]})]}),(0,_r(d[12]).jsx)(_r(d[24]).ModalWithAuth,{isOpen:D,onClose:function(){return O(!1)},onSuccess:function(){O(!1),q()}})]})})}}),4695,[20,316,34,140,18,3932,3149,3165,701,4696,3156,1474,180,3617,2920,2812,631,2917,1058,1413,4044,3166,4054,3154,3896]);
|
|
5006
5006
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useBiometricType=void 0;var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),n=r(d[3]);e.useBiometricType=function(){var o,c=(0,r(d[4]).useStores)().account,f=(0,r(d[5]).useMixins)().detectBiometricType,s=(0,n.useState)(null),y=(0,u.default)(s,2),l=y[0],p=y[1],v=(o=(0,t.default)((function*(){if(c.faceIdEnabled){var t=yield f();p(t.biometryType)}})),function(){return o.apply(this,arguments)});return(0,n.useEffect)((function(){v()}),[]),{biometryType:l}}}),4696,[20,316,34,140,701,3149]);
|
|
5007
5007
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WaitingForSendingTokenScreen=void 0;var e=i(_r(d[0])),n=_r(d[1]),t=_r(d[2])(_r(d[3])),r=i(_r(d[4]));function a(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:n})(e)}function i(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(n);if(t&&t.has(e))return t.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var o=i?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(r,l,o):r[l]=e[l]}return r.default=e,t&&t.set(e,r),r}_e.WaitingForSendingTokenScreen=function(a){var i=a.navigation,l=a.route.params||{},o=l.sendToken,s=l.sentAmount,c=l.sendWallet,u=l.address,f=(0,_r(d[5]).useWalletHelperMixins)().handleSendToken;return(0,e.useEffect)((function(){return e={sendWallet:c,sentAmount:s,sendToken:{tokenChainId:null==o?void 0:o.tokenChainId,tokenAddress:null==o?void 0:o.tokenAddress,tokenSymbol:null==o?void 0:o.tokenSymbol}},void f(e,{address:u}).then((function(e){var n=e.isSuccess,t=e.id;if(n){var r=(0,_r(d[6]).getChainInfo)(null==o?void 0:o.tokenChainId),a=r.chainNumber,l=r.namespace;i.replace('transactionDetail',{id:t,chainId:a,namespace:l,selfAddress:c.walletAddress,source:'wallet'})}else(0,_r(d[7]).goBack)()}));var e}),[]),(0,_r(d[8]).jsxs)(_r(d[9]).Screen,{safeAreaEdges:['top'],contentContainerStyle:{justifyContent:'center'},children:[(0,_r(d[8]).jsx)(r.default.View,{entering:r.FadeIn,style:{alignSelf:'center'},children:(0,_r(d[8]).jsx)(t.default,{source:_r(d[10]).SENDING_TOKEN,autoPlay:!0,loop:!0,style:{width:64,height:64}})}),(0,_r(d[8]).jsx)(n.View,{style:{alignItems:'center'},children:(0,_r(d[8]).jsxs)(r.default.View,{entering:r.FadeIn,style:{alignSelf:'center'},children:[(0,_r(d[8]).jsx)(_r(d[9]).Text,{tx:"sendToken.processingTransaction",style:{marginTop:32,marginBottom:4,alignSelf:'center'},preset:"bold",size:"x"}),(0,_r(d[8]).jsx)(r.default.View,{entering:r.ZoomIn.delay(500),style:{alignSelf:'center'},children:(0,_r(d[8]).jsx)(_r(d[9]).Text,{tx:"sendToken.pleaseWait",preset:"label"})})]})})]})}}),4697,[140,18,20,3901,3932,3412,1474,631,180,3617,3906]);
|
|
5008
5008
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))})),Object.keys(r(d[2])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[2])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[2])[n]}}))}))}),4698,[4699,4721,4731]);
|
|
@@ -5026,7 +5026,7 @@ __d((function(_g,_r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),
|
|
|
5026
5026
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useTranslation=e.transformOrigin2d=e.transformOrigin=void 0;var t={code:"function transformOrigin(_ref,transformations){var x=_ref.x,y=_ref.y;return[{translateX:x},{translateY:y}].concat(transformations).concat([{translateX:-x},{translateY:-y}]);}"},n=(e.transformOrigin=(function(){var n=function(t,n){var o=t.x,s=t.y;return[{translateX:o},{translateY:s}].concat(n).concat([{translateX:-o},{translateY:-s}])};return n.__closure={},n.__initData=t,n.__workletHash=6723429871707,n})(),{code:"function transformOrigin2d(_ref2,transformations){var x=_ref2.x,y=_ref2.y;return[{translateX:x},{translateY:y}].concat(transformations).concat([{translateX:-x},{translateY:-y}]);}"}),o=(e.transformOrigin2d=(function(){var t=function(t,n){var o=t.x,s=t.y;return[{translateX:o},{translateY:s}].concat(n).concat([{translateX:-o},{translateY:-s}])};return t.__closure={},t.__initData=n,t.__workletHash=6277619704351,t})(),{code:"function anonymous(){const{x,y}=this.__closure;return{transform:[{translateX:x.value},{translateY:y.value}]};}"});e.useTranslation=function(t){var n,s=t.x,l=t.y;return(0,r(d[0]).useAnimatedStyle)(((n=function(){return{transform:[{translateX:s.value},{translateY:l.value}]}}).__closure={x:s,y:l},n.__initData=o,n.__workletHash=682941835563,n))}}),4716,[3932]);
|
|
5027
5027
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[4]),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[5]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var o=["style","text"],l=n.StyleSheet.create({baseStyle:{color:"black"}});a.default.addWhitelistedNativeProps({text:!0});var i=a.default.createAnimatedComponent(n.TextInput),c={code:"function anonymous(){const{text}=this.__closure;return{text:text.value};}"};_e.default=function(n){var u,f=n.style,s=n.text,p=(0,t.default)(n,o),_=(0,a.useAnimatedProps)(((u=function(){return{text:s.value}}).__closure={text:s},u.__initData=c,u.__workletHash=6805794311032,u));return r.default.createElement(i,(0,e.default)({underlineColorAndroid:"transparent",editable:!1,value:s.value,style:[l.baseStyle,f||void 0]},p,{animatedProps:_,__source:{fileName:"/home/circleci/repo/src/ReText.tsx",lineNumber:30,columnNumber:5}}))}}),4717,[20,3895,105,140,18,3932]);
|
|
5028
5028
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.deflate=function(t){return o.deflate(t)},e.inflate=function(t){return o.inflate(t)};var t=r(d[0]),n="The package 'react-native-gzip' doesn't seem to be linked. Make sure: \n\n"+t.Platform.select({ios:"- You have run 'pod install'\n",default:''})+"- You rebuilt the app after installing the package\n- You are not using Expo Go\n",o=t.NativeModules.Gzip?t.NativeModules.Gzip:new Proxy({},{get:function(){throw new Error(n)}})}),4718,[18]);
|
|
5029
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.TransactionInfo=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=s(_r(d[3])),i=_r(d[4]),r=s(_r(d[5]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var a=r?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i}_e.TransactionInfo=function(o){var s,a,l,c=o.inToken,u=o.aggregator,f=o.inAmount,p=o.outToken,x=o.slippage,y=o.gasPriority,h=o.onLayout,w=o.walletId,T=o.onClose,b=o.confirmSwap,j=o.isApproveAll,k=o.setIsApproveAll,v=o.gaMappingId,I=o.navigation,_=(0,_r(d[6]).useTheme)(),z=_.colors,C=_.translate,S=(0,_r(d[7]).useStores)().account,A=(0,_r(d[8]).useMixins)().toFixed,O=(0,_r(d[9]).useBiometricType)().biometryType,D=(0,_r(d[10]).useWalletHelperMixins)().isDepositOrWithdraw,P=S.wallets.find((function(e){return e.id===w})),R=(0,_r(d[11]).getChainFromId)({chainId:null==c?void 0:c.chainId}),F=D(c,p),V=F.isDeposit,W=F.isWithdraw,L=S.currency,B=(0,n.useState)('--'),H=(0,t.default)(B,2),M=H[0],E=H[1],K=(0,n.useState)('--'),G=(0,t.default)(K,2),U=G[0],N=G[1],q=(0,n.useState)('--'),Y=(0,t.default)(q,2),J=Y[0],Q=Y[1],X=(0,n.useState)(!0),Z=(0,t.default)(X,2),$=Z[0],ee=Z[1],te=(0,n.useState)(''),ne=(0,t.default)(te,2),ie=ne[0],re=ne[1],oe=(0,n.useState)(!0),se=(0,t.default)(oe,2),ae=se[0],le=se[1],ce=(0,n.useState)(null),de=(0,t.default)(ce,2),ue=de[0],fe=de[1],pe=c.chainId.startsWith('tron:'),xe=(a=(0,e.default)((function*(){if(c.address===R.defaultToken.address||V||W)fe(!1);else{var e=yield _r(d[12]).readyAggregator.getContractAddress(R.chainId),t=yield _r(d[13]).approveTxnHandler.getAllowance({owner:pe?P.tronEvmAddress:P.address,spender:e,token:c});'ALL'===t||_r(d[14]).BlockChainUtils.toBigNumber(t).isGreaterThanOrEqualTo(f)?fe(!1):fe(!0)}})),function(){return a.apply(this,arguments)}),ge=(l=(0,e.default)((function*(){le(!0),re('');try{var e=yield P.getKeyPair(),t=e.privateKey,n=e.tronPrivateKey,i=pe?n:t;if(V||W){var r=yield _r(d[13]).wrapTxnHandler.estimateGas({privateKey:i,chainId:R.chainId,amount:f,isDeposit:V});Q(r.estimatedFee)}else if(u)if(ue){var o=yield _r(d[12]).readyAggregator.getContractAddress(R.chainId),s=yield _r(d[13]).approveTxnHandler.estimateGas({privateKey:i,spenderAddress:o,token:c,amount:f,gasPriority:y,approveAll:j}),a=_r(d[14]).BlockChainUtils.toBigNumber(u.gasFee||0).multipliedBy(y||1).plus(s.estimatedFee);ee(!1),Q(a.toString(10))}else{var l=yield _r(d[13]).swapTxnHandler.estimateGas({privateKey:i,chainId:R.chainId,value:u.swapData.value,data:u.swapData.data,gasPriority:y});ee(!0),Q(l.estimatedFee)}}catch(e){var p,x=e.toString().toLowerCase();x.includes('insufficient funds')?re(C('swapToken.error.insufficient_funds',{nativeToken:null==R||null==(p=R.defaultToken)?void 0:p.symbol})):x.includes('transfer amount exceeds balance')?re(C('swapToken.error.insufficient_in_token',{token:c.symbol})):x.includes('subswap failed')?re(C('swapToken.error.subswap_failed',{token:c.symbol})):(re(C('swapToken.error.cannot_estimate_gas')),_r(d[15]).Logger.error(e))}le(!1)})),function(){return l.apply(this,arguments)});return(0,n.useEffect)((function(){le(!0),xe()}),[]),(0,n.useEffect)((function(){le(!0);var e=setTimeout((function(){null!==ue&&(ge(),V||W?_r(d[17]).tokenRateService.toCurrencyValue(f,c,L.name).then((function(e){E(e.value),N(e.value)})):u&&(E(u.inUsdAmount),N(u.outUsdAmount)))}),200);return function(){clearTimeout(e)}}),[u,V,W,ue,j]),(0,_r(d[18]).jsxs)(i.View,{onLayout:function(e){h(e.nativeEvent.layout.height)},children:[(0,_r(d[18]).jsxs)(i.View,{style:{height:56,padding:6,flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingHorizontal:16},children:[(0,_r(d[18]).jsx)(_r(d[19]).Text,{tx:'swapToken.confirmTransaction',numberOfLines:1,style:{maxWidth:'85%'}}),(0,_r(d[18]).jsx)(_r(d[19]).Icon,{icon:"x",onPress:T})]}),(0,_r(d[18]).jsxs)(i.View,{style:{borderWidth:1,borderRadius:12,marginHorizontal:16,marginBottom:16,paddingVertical:16,borderColor:z.dark3},children:[(0,_r(d[18]).jsx)(i.View,{style:{height:166,paddingHorizontal:16},children:(0,_r(d[18]).jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[18]).jsx)(_r(d[20]).SwapTokenBlock,{token:c,amount:f,usdAmount:M,style:{marginRight:-9,zIndex:1}}),(0,_r(d[18]).jsx)(_r(d[19]).Icon,{icon:"arrow-right",size:16,containerStyle:{width:32,height:32,backgroundColor:z.dark2,borderWidth:1,borderColor:z.dark3,borderRadius:40,alignItems:'center',justifyContent:'center',zIndex:2}}),(0,_r(d[18]).jsx)(_r(d[20]).SwapTokenBlock,{token:p,amount:A(V||W?f:u.outAmount,6),usdAmount:U,style:{marginLeft:-9,zIndex:1}})]})}),(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.from",rightComponents:(0,_r(d[18]).jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',flex:1,marginLeft:16,justifyContent:'flex-end',maxWidth:'60%'},children:[(0,_r(d[18]).jsx)(_r(d[19]).Icon3D,{size:24,icon:P.icon,style:{marginRight:2}}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{size:"base",text:P.name,numberOfLines:1,ellipsizeMode:"tail",style:{textAlign:'right'}})]})}),(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.network",rightText:R.name}),!!u&&(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.dexTransaction",rightComponents:(0,_r(d[18]).jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',flex:1,marginLeft:16,justifyContent:'flex-end',maxWidth:'60%'},children:[(0,_r(d[18]).jsx)(i.Image,{source:u.logoSrc,style:{width:24,height:24,borderRadius:12,marginRight:4,backgroundColor:z.white}}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{size:"base",text:u.name,numberOfLines:1,ellipsizeMode:"tail",style:{textAlign:'right'}})]})}),!!u&&(0,_r(d[18]).jsx)(_r(d[18]).Fragment,{children:(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.inflation",rightText:x+"%"})}),!!y&&(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.priority",rightText:C(null==(s=_r(d[22]).GasFeeOptionsDisplay.find((function(e){return e.val===y})))?void 0:s.tx)}),(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.gasFee",rightText:A(J,6)+" "+R.defaultToken.symbol,rightComponents:ie?(0,_r(d[18]).jsx)(_r(d[19]).Text,{size:"base",text:C('swapToken.error.cannot_estimate_gas'),color:z.error}):$?null:(0,_r(d[18]).jsxs)(_r(d[19]).Text,{size:"base",color:z.text,children:[(0,_r(d[18]).jsx)(_r(d[19]).Icon,{icon:"warning",color:z.error,size:14,style:{marginRight:4,transform:[{translateY:2}]}}),A(J,6)+" "+R.defaultToken.symbol]})}),!!u&&(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.serviceFee",rightText:A(u.serviceFee,6)+" "+p.symbol})]}),!!ue&&(0,_r(d[18]).jsx)(_r(d[18]).Fragment,{children:(0,_r(d[18]).jsxs)(r.default.View,{entering:r.FadeIn,style:{paddingBottom:16,paddingHorizontal:16},children:[(0,_r(d[18]).jsxs)(i.View,{style:{flexDirection:'row',justifyContent:'center',alignItems:'center'},children:[(0,_r(d[18]).jsx)(_r(d[19]).Text,{size:"base",tx:"swapToken.allowance_config.title",style:{marginRight:8}}),(0,_r(d[18]).jsx)(i.TouchableOpacity,{onPress:function(){return I.navigate('approvalInfoScreen')},children:(0,_r(d[18]).jsx)(_r(d[19]).Icon,{icon:"info",size:20,color:z.label})})]}),(0,_r(d[18]).jsxs)(i.View,{style:{marginTop:16,flexDirection:'row'},children:[(0,_r(d[18]).jsxs)(i.TouchableOpacity,{onPress:function(){k(!0)},style:{flexDirection:'row',flex:1,marginRight:4,borderColor:j?z.primary:z.border,borderRadius:56,borderWidth:1,justifyContent:'center',alignItems:'center',backgroundColor:j?(0,_r(d[23]).colorTransparency)(z.primary,10):null},children:[(0,_r(d[18]).jsx)(_r(d[19]).Icon,{size:16,icon:'lightning',color:j?z.primary:z.text,style:{marginRight:4}}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{tx:"swapToken.allowance_config.fast",size:"base",preset:"bold",color:j?z.primary:z.text})]}),(0,_r(d[18]).jsxs)(i.TouchableOpacity,{onPress:function(){k(!1)},style:{flexDirection:'row',flex:1,marginRight:4,borderColor:j?z.border:z.primary,borderRadius:56,borderWidth:1,justifyContent:'center',alignItems:'center',paddingVertical:8,backgroundColor:j?null:(0,_r(d[23]).colorTransparency)(z.primary,10)},children:[(0,_r(d[18]).jsx)(_r(d[19]).Icon,{size:16,icon:'shield',color:j?z.text:z.primary,style:{marginRight:4}}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{color:j?z.text:z.primary,tx:"swapToken.allowance_config.sufficient",size:"base",preset:"bold"})]})]}),j?(0,_r(d[18]).jsxs)(_r(d[19]).Text,{preset:"label",size:"sm",style:{marginTop:16,textAlign:'center'},children:[C('swapToken.allowance_config.fast_desc.text1'),(0,_r(d[18]).jsx)(_r(d[19]).Text,{preset:"bold",size:"sm",text:C('swapToken.allowance_config.fast_desc.text2',{symbol:c.symbol})}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{preset:"label",size:"sm",tx:"swapToken.allowance_config.fast_desc.text3"})]}):(0,_r(d[18]).jsxs)(_r(d[19]).Text,{preset:"label",size:"sm",style:{marginTop:16,textAlign:'center'},children:[C('swapToken.allowance_config.sufficient_desc.text1'),(0,_r(d[18]).jsx)(_r(d[19]).Text,{preset:"bold",size:"sm",text:C('swapToken.allowance_config.sufficient_desc.text2',{amount:f,symbol:c.symbol})}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{preset:"label",size:"sm",tx:"swapToken.allowance_config.sufficient_desc.text3"})]})]})}),(0,_r(d[18]).jsx)(_r(d[19]).Button,{text:ie||C('swapToken.confirmSwap'),LeftAccessory:function(e){return(0,_r(d[18]).jsx)(i.View,Object.assign({},e,{children:S.faceIdEnabled?(0,_r(d[18]).jsx)(_r(d[19]).Icon,Object.assign({icon:O===_r(d[24]).FaceID?'face-id':'fingerprint',size:32,color:z.text},e)):(0,_r(d[18]).jsx)(_r(d[19]).Icon,Object.assign({icon:"password-check",size:24,color:z.text},e))}))},onPress:function(){b(),ue&&_r(d[16]).gaService.sendEvent(j?'fast_approved':'sufficient_approved',{bundle_id:v})},loading:ae,disabled:ae||!!ie,style:{marginHorizontal:16,marginTop:8}})]})}}),4719,[20,316,34,140,18,3932,3165,701,3149,4696,3412,1474,3059,2918,1058,1413,3448,2812,180,3617,4681,4683,628,3166,3154]);
|
|
5029
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.TransactionInfo=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=a(_r(d[3])),i=_r(d[4]),r=a(_r(d[5]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=r?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}_e.TransactionInfo=function(o){var a,s,l,c=o.inToken,u=o.aggregator,f=o.inAmount,x=o.outToken,p=o.slippage,y=o.gasPriority,h=o.onLayout,w=o.walletId,T=o.onClose,b=o.confirmSwap,j=o.isApproveAll,k=o.setIsApproveAll,I=o.gaMappingId,v=o.navigation,_=(0,_r(d[6]).useTheme)(),z=_.colors,C=_.translate,S=(0,_r(d[7]).useStores)().account,A=(0,_r(d[8]).useMixins)().toFixed,O=(0,_r(d[9]).useBiometricType)().biometryType,D=(0,_r(d[10]).useWalletHelperMixins)().isDepositOrWithdraw,P=S.wallets.find((function(e){return e.id===w})),R=(0,_r(d[11]).getChainFromId)({chainId:null==c?void 0:c.chainId}),F=D(c,x),V=F.isDeposit,W=F.isWithdraw,L=S.currency,B=(0,n.useState)('--'),H=(0,t.default)(B,2),M=H[0],E=H[1],G=(0,n.useState)('--'),K=(0,t.default)(G,2),U=K[0],N=K[1],q=(0,n.useState)('--'),Y=(0,t.default)(q,2),J=Y[0],Q=Y[1],X=(0,n.useState)(!0),Z=(0,t.default)(X,2),$=Z[0],ee=Z[1],te=(0,n.useState)(''),ne=(0,t.default)(te,2),ie=ne[0],re=ne[1],oe=(0,n.useState)(!0),ae=(0,t.default)(oe,2),se=ae[0],le=ae[1],ce=(0,n.useState)(null),de=(0,t.default)(ce,2),ue=de[0],fe=de[1],xe=c.chainId.startsWith('tron:'),pe=(s=(0,e.default)((function*(){if(c.address===R.defaultToken.address||V||W)fe(!1);else{var e=yield _r(d[12]).readyAggregator.getContractAddress(R.chainId),t=yield _r(d[13]).approveTxnHandler.getAllowance({owner:xe?P.tronEvmAddress:P.address,spender:e,token:c});'ALL'===t||_r(d[14]).BlockChainUtils.toBigNumber(t).isGreaterThanOrEqualTo(f)?fe(!1):fe(!0)}})),function(){return s.apply(this,arguments)}),ge=(l=(0,e.default)((function*(){le(!0),re('');try{var e=yield P.getPrivateKeyPairByChain({chainId:c.chainId});if(V||W){var t=yield _r(d[13]).wrapTxnHandler.estimateGas({privateKey:e,chainId:R.chainId,amount:f,isDeposit:V});Q(t.estimatedFee)}else if(u)if(ue){var n=yield _r(d[12]).readyAggregator.getContractAddress(R.chainId),i=yield _r(d[13]).approveTxnHandler.estimateGas({privateKey:e,spenderAddress:n,token:c,amount:f,gasPriority:y,approveAll:j}),r=_r(d[14]).BlockChainUtils.toBigNumber(u.gasFee||0).multipliedBy(y||1).plus(i.estimatedFee);ee(!1),Q(r.toString(10))}else{var o=yield _r(d[13]).swapTxnHandler.estimateGas({privateKey:e,chainId:R.chainId,value:u.swapData.value,data:u.swapData.data,gasPriority:y});ee(!0),Q(o.estimatedFee)}}catch(e){var a,s=e.toString().toLowerCase();s.includes('insufficient funds')?re(C('swapToken.error.insufficient_funds',{nativeToken:null==R||null==(a=R.defaultToken)?void 0:a.symbol})):s.includes('transfer amount exceeds balance')?re(C('swapToken.error.insufficient_in_token',{token:c.symbol})):s.includes('subswap failed')?re(C('swapToken.error.subswap_failed',{token:c.symbol})):(re(C('swapToken.error.cannot_estimate_gas')),_r(d[15]).Logger.error(e))}le(!1)})),function(){return l.apply(this,arguments)});return(0,n.useEffect)((function(){le(!0),pe()}),[]),(0,n.useEffect)((function(){le(!0);var e=setTimeout((function(){null!==ue&&(ge(),V||W?_r(d[17]).tokenRateService.toCurrencyValue(f,c,L.name).then((function(e){E(e.value),N(e.value)})):u&&(E(u.inUsdAmount),N(u.outUsdAmount)))}),200);return function(){clearTimeout(e)}}),[u,V,W,ue,j]),(0,_r(d[18]).jsxs)(i.View,{onLayout:function(e){h(e.nativeEvent.layout.height)},children:[(0,_r(d[18]).jsxs)(i.View,{style:{height:56,padding:6,flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingHorizontal:16},children:[(0,_r(d[18]).jsx)(_r(d[19]).Text,{tx:'swapToken.confirmTransaction',numberOfLines:1,style:{maxWidth:'85%'}}),(0,_r(d[18]).jsx)(_r(d[19]).Icon,{icon:"x",onPress:T})]}),(0,_r(d[18]).jsxs)(i.View,{style:{borderWidth:1,borderRadius:12,marginHorizontal:16,marginBottom:16,paddingVertical:16,borderColor:z.dark3},children:[(0,_r(d[18]).jsx)(i.View,{style:{height:166,paddingHorizontal:16},children:(0,_r(d[18]).jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[18]).jsx)(_r(d[20]).SwapTokenBlock,{token:c,amount:f,usdAmount:M,style:{marginRight:-9,zIndex:1}}),(0,_r(d[18]).jsx)(_r(d[19]).Icon,{icon:"arrow-right",size:16,containerStyle:{width:32,height:32,backgroundColor:z.dark2,borderWidth:1,borderColor:z.dark3,borderRadius:40,alignItems:'center',justifyContent:'center',zIndex:2}}),(0,_r(d[18]).jsx)(_r(d[20]).SwapTokenBlock,{token:x,amount:A(V||W?f:u.outAmount,6),usdAmount:U,style:{marginLeft:-9,zIndex:1}})]})}),(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.from",rightComponents:(0,_r(d[18]).jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',flex:1,marginLeft:16,justifyContent:'flex-end',maxWidth:'60%'},children:[(0,_r(d[18]).jsx)(_r(d[19]).Icon3D,{size:24,icon:P.icon,style:{marginRight:2}}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{size:"base",text:P.name,numberOfLines:1,ellipsizeMode:"tail",style:{textAlign:'right'}})]})}),(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.network",rightText:R.name}),!!u&&(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.dexTransaction",rightComponents:(0,_r(d[18]).jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',flex:1,marginLeft:16,justifyContent:'flex-end',maxWidth:'60%'},children:[(0,_r(d[18]).jsx)(i.Image,{source:u.logoSrc,style:{width:24,height:24,borderRadius:12,marginRight:4,backgroundColor:z.white}}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{size:"base",text:u.name,numberOfLines:1,ellipsizeMode:"tail",style:{textAlign:'right'}})]})}),!!u&&(0,_r(d[18]).jsx)(_r(d[18]).Fragment,{children:(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.inflation",rightText:p+"%"})}),!!y&&(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.priority",rightText:C(null==(a=_r(d[22]).GasFeeOptionsDisplay.find((function(e){return e.val===y})))?void 0:a.tx)}),(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.gasFee",rightText:A(J,6)+" "+R.defaultToken.symbol,rightComponents:ie?(0,_r(d[18]).jsx)(_r(d[19]).Text,{size:"base",text:C('swapToken.error.cannot_estimate_gas'),color:z.error}):$?null:(0,_r(d[18]).jsxs)(_r(d[19]).Text,{size:"base",color:z.text,children:[(0,_r(d[18]).jsx)(_r(d[19]).Icon,{icon:"warning",color:z.error,size:14,style:{marginRight:4,transform:[{translateY:2}]}}),A(J,6)+" "+R.defaultToken.symbol]})}),!!u&&(0,_r(d[18]).jsx)(_r(d[21]).SwapInfo,{leftTx:"swapToken.serviceFee",rightText:A(u.serviceFee,6)+" "+x.symbol})]}),!!ue&&(0,_r(d[18]).jsx)(_r(d[18]).Fragment,{children:(0,_r(d[18]).jsxs)(r.default.View,{entering:r.FadeIn,style:{paddingBottom:16,paddingHorizontal:16},children:[(0,_r(d[18]).jsxs)(i.View,{style:{flexDirection:'row',justifyContent:'center',alignItems:'center'},children:[(0,_r(d[18]).jsx)(_r(d[19]).Text,{size:"base",tx:"swapToken.allowance_config.title",style:{marginRight:8}}),(0,_r(d[18]).jsx)(i.TouchableOpacity,{onPress:function(){return v.navigate('approvalInfoScreen')},children:(0,_r(d[18]).jsx)(_r(d[19]).Icon,{icon:"info",size:20,color:z.label})})]}),(0,_r(d[18]).jsxs)(i.View,{style:{marginTop:16,flexDirection:'row'},children:[(0,_r(d[18]).jsxs)(i.TouchableOpacity,{onPress:function(){k(!0)},style:{flexDirection:'row',flex:1,marginRight:4,borderColor:j?z.primary:z.border,borderRadius:56,borderWidth:1,justifyContent:'center',alignItems:'center',backgroundColor:j?(0,_r(d[23]).colorTransparency)(z.primary,10):null},children:[(0,_r(d[18]).jsx)(_r(d[19]).Icon,{size:16,icon:'lightning',color:j?z.primary:z.text,style:{marginRight:4}}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{tx:"swapToken.allowance_config.fast",size:"base",preset:"bold",color:j?z.primary:z.text})]}),(0,_r(d[18]).jsxs)(i.TouchableOpacity,{onPress:function(){k(!1)},style:{flexDirection:'row',flex:1,marginRight:4,borderColor:j?z.border:z.primary,borderRadius:56,borderWidth:1,justifyContent:'center',alignItems:'center',paddingVertical:8,backgroundColor:j?null:(0,_r(d[23]).colorTransparency)(z.primary,10)},children:[(0,_r(d[18]).jsx)(_r(d[19]).Icon,{size:16,icon:'shield',color:j?z.text:z.primary,style:{marginRight:4}}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{color:j?z.text:z.primary,tx:"swapToken.allowance_config.sufficient",size:"base",preset:"bold"})]})]}),j?(0,_r(d[18]).jsxs)(_r(d[19]).Text,{preset:"label",size:"sm",style:{marginTop:16,textAlign:'center'},children:[C('swapToken.allowance_config.fast_desc.text1'),(0,_r(d[18]).jsx)(_r(d[19]).Text,{preset:"bold",size:"sm",text:C('swapToken.allowance_config.fast_desc.text2',{symbol:c.symbol})}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{preset:"label",size:"sm",tx:"swapToken.allowance_config.fast_desc.text3"})]}):(0,_r(d[18]).jsxs)(_r(d[19]).Text,{preset:"label",size:"sm",style:{marginTop:16,textAlign:'center'},children:[C('swapToken.allowance_config.sufficient_desc.text1'),(0,_r(d[18]).jsx)(_r(d[19]).Text,{preset:"bold",size:"sm",text:C('swapToken.allowance_config.sufficient_desc.text2',{amount:f,symbol:c.symbol})}),(0,_r(d[18]).jsx)(_r(d[19]).Text,{preset:"label",size:"sm",tx:"swapToken.allowance_config.sufficient_desc.text3"})]})]})}),(0,_r(d[18]).jsx)(_r(d[19]).Button,{text:ie||C('swapToken.confirmSwap'),LeftAccessory:function(e){return(0,_r(d[18]).jsx)(i.View,Object.assign({},e,{children:S.faceIdEnabled?(0,_r(d[18]).jsx)(_r(d[19]).Icon,Object.assign({icon:O===_r(d[24]).FaceID?'face-id':'fingerprint',size:32,color:z.text},e)):(0,_r(d[18]).jsx)(_r(d[19]).Icon,Object.assign({icon:"password-check",size:24,color:z.text},e))}))},onPress:function(){b(),ue&&_r(d[16]).gaService.sendEvent(j?'fast_approved':'sufficient_approved',{bundle_id:I})},loading:se,disabled:se||!!ie,style:{marginHorizontal:16,marginTop:8}})]})}}),4719,[20,316,34,140,18,3932,3165,701,3149,4696,3412,1474,3059,2918,1058,1413,3448,2812,180,3617,4681,4683,628,3166,3154]);
|
|
5030
5030
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WaitingForSwapToken=void 0;var e=i(_r(d[0])),t=_r(d[1]),r=i(_r(d[2])),n=_r(d[3])(_r(d[4]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(n,s,l):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}_e.WaitingForSwapToken=function(o){var i=o.errorText,s=(0,_r(d[5]).useNavigation)(),l=(0,r.useSharedValue)(0);return(0,e.useEffect)((function(){l.value=i?0:(0,r.withRepeat)((0,r.withTiming)(360,{duration:720}),-1)}),[i]),(0,_r(d[6]).jsxs)(t.View,{style:{flex:1,marginHorizontal:12},children:[(0,_r(d[6]).jsxs)(t.View,{style:{flex:1,justifyContent:'center',alignItems:'center'},children:[!i&&(0,_r(d[6]).jsx)(r.default.View,{style:[{width:64,height:64,borderRadius:32,justifyContent:'center',alignItems:'center'}],children:(0,_r(d[6]).jsx)(n.default,{source:_r(d[7]).SWAP_PROCESSING,style:{width:72,height:72},autoPlay:!0,loop:!0})}),i&&(0,_r(d[6]).jsx)(r.default.View,{style:[{borderRadius:32,justifyContent:'center',alignItems:'center'}],children:(0,_r(d[6]).jsx)(_r(d[8]).Icon,{icon:'smiley-sad',size:64,color:_r(d[9]).colors.error})}),(0,_r(d[6]).jsx)(_r(d[8]).Text,{tx:i?'swapToken.noti.swap_failed':'sendToken.processingTransaction',style:{marginTop:32,marginBottom:4,alignSelf:'center'},preset:"bold",color:i?_r(d[9]).colors.error:_r(d[9]).colors.text,size:"x"}),i?(0,_r(d[6]).jsx)(_r(d[8]).Text,{text:i,color:_r(d[9]).colors.error,style:{textAlign:'center'}}):(0,_r(d[6]).jsx)(_r(d[8]).Text,{tx:"sendToken.pleaseWait",preset:"label"})]}),!!i&&(0,_r(d[6]).jsx)(t.View,{style:{position:'absolute',bottom:0,left:0,right:0},children:(0,_r(d[6]).jsx)(_r(d[8]).Button,{tx:"common.back",onPress:s.goBack})})]})}}),4720,[140,18,3932,20,3901,3450,180,3906,3617,3166]);
|
|
5031
5031
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SwapTokenScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=s?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r})(_r(d[3])),r=_r(d[4]);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}_e.SwapTokenScreen=(0,_r(d[5]).observer)((function(a){var i,o,l=a.navigation,u=(a.route.params||{}).inToken,c=(0,_r(d[6]).useTheme)(),f=c.colors,p=c.translate,x=(0,_r(d[7]).useMixins)().toFixed,b=function(e){return x(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:8)},h=(0,_r(d[8]).useStores)().account,w=(0,_r(d[9]).useWalletHelperMixins)().isDepositOrWithdraw,y=h.selectedWallet||h.wallets.find((function(e){return e.isPrimary}))||h.wallets[0],j=(0,n.useMemo)((function(){var e=_r(d[10]).SUPPORTED_CHAINS.filter((function(e){return e.supportSwap})).map((function(e){return e.chainId})),t=_r(d[10]).SUPPORTED_CHAINS.filter((function(e){return!e.disableWrap})).map((function(e){return e.chainId}));if(u)return u;var n=y.tokens.find((function(t){return e.includes(t.chainId)}));if(n)return n;var r=y.tokens.find((function(e){return _r(d[11]).tokenDataService.isNativeToken(e.address,e.chainId)&&t.includes(e.chainId)}));return r||y.tokens[0]}),[u,y]),T=(0,n.useState)(y),S=(0,t.default)(T,2),k=S[0],v=S[1],O=(0,n.useState)(j),I=(0,t.default)(O,2),C=I[0],V=I[1],A=(0,n.useState)(''),z=(0,t.default)(A,2),W=z[0],P=z[1],M=(0,n.useState)('0.00'),D=(0,t.default)(M,2),F=D[0],L=D[1],R=(0,n.useState)(null),_=(0,t.default)(R,2),B=_[0],E=_[1],N=(0,n.useState)('0.00'),G=(0,t.default)(N,2),U=G[0],H=G[1],K=(0,n.useState)('0'),Y=(0,t.default)(K,2),q=Y[0],J=Y[1],Q=(0,n.useState)(.5),X=(0,t.default)(Q,2),Z=X[0],$=X[1],ee=(0,n.useState)(_r(d[12]).GasFeeOptions.NORMAL),te=(0,t.default)(ee,2),ne=te[0],re=te[1],ae=(0,n.useState)(null),se=(0,t.default)(ae,2),ie=se[0],oe=se[1],le=(0,n.useState)(!1),ue=(0,t.default)(le,2),ce=ue[0],de=ue[1],fe=(0,n.useState)(!1),pe=(0,t.default)(fe,2),xe=pe[0],ge=pe[1],be=(0,n.useState)(!1),me=(0,t.default)(be,2),he=me[0],we=me[1],ye=(0,n.useRef)(null),je=(0,n.useRef)(null),Te=(0,n.useMemo)((function(){return Date.now()+"-"+(0,_r(d[13]).getBundleId)()}),[]),Se=w(C,B),ke=Se.isDeposit,ve=Se.isWithdraw,Oe=_r(d[14]).BlockChainUtils.toBigNumber(W).isGreaterThan(null==C?void 0:C.balance),Ie=_r(d[14]).BlockChainUtils.toBigNumber(W).isGreaterThan(0),Ce=_r(d[14]).BlockChainUtils.toBigNumber(U).isGreaterThan(0),Ve=p(Oe?'sendToken.notEnoughToken':'common.swap'),Ae=(ke||ve)&&Ie?'0':B&&ie?b(ie.compareToInUsd,2):null,ze=!(Ie&&!Oe&&Ce&&(ke||ve||null!=ie&&ie.swapData)),We=h.currency,Pe=!!B&&Ie&&!ke&&!ve,Me=function(e){var t=_r(d[11]).tokenRateService.getValueDisplayForCurrency(e,We.name);return'0.00'===t.value?We.symbol+"0.00":t.display},De=(0,n.useCallback)((function(e){var t;ye.current.focus();var n=e.replace(',','.');if(n||(P(''),oe(null)),n.length>1&&'0'===n[0]&&'.'!==n[1]&&(n=n.slice(1)),!((null==(t=n.match(/\./g))?void 0:t.length)>1||parseFloat(n)>1e8)){var r=n.indexOf('.');r>0&&n.length-r>10||/\d|\./.test(n[n.length-1])&&P(n)}}),[]),Fe=(0,n.useCallback)((function(e){v(e),Le(k.tokens[0]),P(''),re(_r(d[12]).GasFeeOptions.NORMAL),$(.5),oe(null),E(null),h.setSelectedWalletId(e.id)}),[]),Le=(i=(0,e.default)((function*(e){oe(null),P(''),E(null),V(e)})),function(e){return i.apply(this,arguments)}),Re=(o=(0,e.default)((function*(e){E(e)})),function(e){return o.apply(this,arguments)});(0,n.useEffect)((function(){Le(j)}),[j]),(0,n.useEffect)((function(){return l.addListener('focus',(function(){ge(!1)}))}),[l]),(0,n.useEffect)((function(){ke||ve?(oe(null),Ie?(H(W),_r(d[11]).tokenRateService.toCurrencyValue(W,C,We.name).then((function(e){L(e.value),J(e.value)}))):(L('0.00'),H('0'),J('0.00'))):(H((null==ie?void 0:ie.outAmount)||'0'),L((null==ie?void 0:ie.inUsdAmount)||'0.00'),J((null==ie?void 0:ie.outUsdAmount)||'0.00'))}),[C,ke,ve,ie,W]),(0,n.useEffect)((function(){var e=setTimeout((function(){var e;ie&&(null==(e=je.current)||e.scrollToEnd())}),200);return function(){return clearTimeout(e)}}),[ie]);var Be=(0,_r(d[15]).colorTransparency)(f.block,40),Ee={borderWidth:1,borderColor:f.border,backgroundColor:Be,borderRadius:8},Ne=Object.assign({},Ee,{borderRadius:45}),Ge={flexDirection:'row',alignItems:'center',justifyContent:'space-between'};return(0,_r(d[16]).jsxs)(_r(d[17]).Screen,{ref:je,safeAreaEdges:['top','bottom'],padding:!0,preset:"scroll",ScrollViewProps:{showsVerticalScrollIndicator:!1},KeyboardAvoidingViewProps:{enabled:!1},backgroundColor:f.background2,header:(0,_r(d[16]).jsx)(_r(d[17]).Header,{leftIcon:"arrow-left",onLeftPress:l.goBack,RightActionComponent:(0,_r(d[16]).jsx)(_r(d[17]).Icon,{icon:"sliders-horizontal",onPress:function(){return de(!0)},containerStyle:{padding:16,transform:[{rotate:'90deg'}]}}),childrenContainerStyle:{justifyContent:'center',maxWidth:'50%',alignItems:'center'},children:(0,_r(d[16]).jsx)(_r(d[18]).WalletSelect,{wallet:k,setWallet:Fe})}),footer:(0,_r(d[16]).jsxs)(r.View,{children:[(0,_r(d[16]).jsx)(_r(d[19]).NumberKeyboard,{keyboardValue:W,setKeyboardValue:De,numOfCharacters:Math.min(C.decimals,8)}),(0,_r(d[16]).jsx)(_r(d[17]).Button,{disabled:ze,text:Ve,onPress:function(){r.Keyboard.dismiss(),l.navigate('confirmSwapTransaction',{aggregator:ie,inToken:C,inAmount:W,outToken:B,slippage:x(Z,1).toString(),walletId:k.id,gasPriority:ne,gaMappingId:Te}),ge(!0)}})]}),children:[(0,_r(d[16]).jsx)(_r(d[20]).GasAndInflationSetting,{isOpen:ce,onClose:function(){return de(!1)},gasFeeOptions:ne,setGasFeeOptions:re,slippage:Z,setSlippage:$}),(0,_r(d[16]).jsx)(_r(d[17]).Text,{tx:"swapToken.swapTitle",size:"lg",style:{paddingVertical:16}}),(0,_r(d[16]).jsxs)(r.View,{style:[Ee,{paddingVertical:12,paddingHorizontal:16,borderColor:he?f.primary:f.border,backgroundColor:he?f.background2:Be}],children:[(0,_r(d[16]).jsxs)(r.View,{style:Ge,children:[(0,_r(d[16]).jsx)(_r(d[17]).Text,{tx:"common.from",size:"base",preset:"label"}),(0,_r(d[16]).jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'flex-end',flexWrap:'wrap'},children:[(0,_r(d[16]).jsx)(_r(d[17]).Text,{suppressHighlighting:!1,preset:"label",text:p('swapToken.balance')+':',size:"base",numberOfLines:1}),(0,_r(d[16]).jsx)(_r(d[17]).Text,{text:" "+(b(C.balance,8)||0),size:"base"}),(0,_r(d[16]).jsx)(_r(d[17]).TextTouchable,{tx:'common.max',onPress:function(){P(s(C.balance,Math.min(C.decimals,8)))},size:"base",preset:"bold"})]})]}),(0,_r(d[16]).jsxs)(r.View,{style:[Ge,{marginTop:4}],children:[(0,_r(d[16]).jsx)(_r(d[21]).SwapTokenSelect,{isSelectSwap:!0,token:C,setToken:Le,wallet:k}),(0,_r(d[16]).jsx)(r.View,{onTouchEnd:function(){var e;return null==(e=ye.current)?void 0:e.focus()},children:(0,_r(d[16]).jsx)(r.TextInput,{ref:ye,value:W,keyboardType:"decimal-pad",onChangeText:De,onFocus:function(){return we(!0)},onBlur:function(){return we(!1)},numberOfLines:1,style:{fontSize:21,fontFamily:_r(d[15]).typography.secondary.medium,color:f.text,flex:1,marginLeft:16,textAlign:'right'},placeholder:"0",placeholderTextColor:f.label,showSoftInputOnFocus:!1,autoFocus:!0,pointerEvents:"none"})})]}),(0,_r(d[16]).jsxs)(r.View,{style:Ge,children:[(0,_r(d[16]).jsx)(r.View,{}),(0,_r(d[16]).jsx)(_r(d[17]).Text,{preset:"label",size:"base",numberOfLines:1,text:"~"+Me(F),style:{maxWidth:'50%',alignSelf:'flex-end',textAlign:'right'}})]})]}),(0,_r(d[16]).jsx)(r.TouchableOpacity,{style:Object.assign({},Ne,{width:32,height:32,alignSelf:'center',justifyContent:'center',alignItems:'center',zIndex:2,transform:[{translateY:-12}],backgroundColor:f.block}),onPress:function(){if(C&&B){var e=C;Le(B),Re(e)}},children:(0,_r(d[16]).jsx)(_r(d[17]).Icon,{icon:"arrows-down-up",size:16})}),(0,_r(d[16]).jsxs)(r.View,{style:[Ee,{transform:[{translateY:-22}],paddingVertical:12,paddingHorizontal:16,marginBottom:-10}],children:[(0,_r(d[16]).jsxs)(r.View,{style:[Ge,{flexGrow:0}],children:[(0,_r(d[16]).jsx)(_r(d[17]).Text,{tx:"common.to",size:"base",preset:"label"}),(0,_r(d[16]).jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center',maxWidth:'70%'},children:[(0,_r(d[16]).jsx)(_r(d[17]).Text,{preset:"label",size:"base",text:p('swapToken.balance')+':',numberOfLines:1}),(0,_r(d[16]).jsx)(_r(d[17]).Text,{text:" "+(B?x(B.balance,8)||0:'0.00'),color:B?f.text:f.label,size:"base",numberOfLines:1,style:{textAlign:'right'},ellipsizeMode:"middle"})]})]}),(0,_r(d[16]).jsxs)(r.View,{style:[Ge,{marginTop:4}],children:[(0,_r(d[16]).jsx)(_r(d[21]).SwapTokenSelect,{isSelectSwap:!1,token:B,setToken:Re,inChainId:C.chainId,inTokenAddress:C.address,inTokenSymbol:C.symbol}),(0,_r(d[16]).jsx)(_r(d[17]).Text,{text:x(U,8),numberOfLines:1,style:{maxWidth:'55%',color:'0'===U?f.label:f.text,textAlign:'right'},size:"0.5x"})]}),(0,_r(d[16]).jsxs)(r.View,{style:Ge,children:[(0,_r(d[16]).jsx)(r.View,{}),(0,_r(d[16]).jsxs)(r.View,{style:{flexWrap:'wrap',flexDirection:'row',alignItems:'center',maxWidth:'60%'},children:[(0,_r(d[16]).jsx)(_r(d[17]).Text,{preset:"label",numberOfLines:1,text:"~"+Me(q),size:"base"}),!!Ae&&(0,_r(d[16]).jsxs)(_r(d[16]).Fragment,{children:[(0,_r(d[16]).jsx)(_r(d[17]).Icon,{icon:"arrow",color:parseFloat(Ae)<0?f.error:f.success,style:{marginRight:2,marginLeft:8,transform:[{rotate:parseFloat(Ae)<0?'180deg':'0deg'}]},size:8}),(0,_r(d[16]).jsx)(_r(d[17]).Text,{style:{color:parseFloat(Ae)<0?f.error:f.success},text:(Ae.startsWith('-')?Ae.substring(1):Ae)+"%",size:"base"})]})]})]})]}),Pe&&(0,_r(d[16]).jsx)(_r(d[22]).ChangeAggregator,{wallet:k,isStopCountDown:xe,swapAggregator:ie,setSwapAggregator:oe,inToken:C,inAmount:W,outToken:B,slippage:Z,gaMappingId:Te,currency:We.name})]})}));var s=function(e,t){if(!e)return'0';var n=e.indexOf('.');return n>=0?e.substring(0,n+t):e}}),4721,[20,316,34,140,18,686,3165,3149,701,3412,1474,2812,628,1414,1058,3166,180,3617,4722,4692,4723,4724,4727]);
|
|
5032
5032
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletSelect=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=l?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r})(_r(d[2])),n=_r(d[3]);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}_e.WalletSelect=function(o){var r=o.wallet,l=o.setWallet,a=o.style,i=(0,_r(d[4]).useTheme)().colors,c=(0,_r(d[5]).useWalletHelperMixins)().getAndSaveRandomEmoji,s=(0,t.useState)(!1),u=(0,e.default)(s,2),f=u[0],p=u[1];return(0,_r(d[6]).jsxs)(_r(d[6]).Fragment,{children:[(0,_r(d[6]).jsx)(n.TouchableOpacity,{testID:"walletSelection.button.open",onPress:function(){return p(!0)},style:[{backgroundColor:i.transparent,paddingHorizontal:0},a],children:(0,_r(d[6]).jsxs)(n.View,{testID:"walletSelection.view",style:{alignSelf:'center',flexDirection:'row',alignItems:'center',justifyContent:'center'},children:[(0,_r(d[6]).jsx)(_r(d[7]).Icon3D,{icon:(null==r?void 0:r.icon)||c(r),size:24,containerStyle:{backgroundColor:_r(d[8]).WALLET_BACKGROUND[null==r?void 0:r.background],justifyContent:'center',alignItems:'center',padding:4,borderRadius:40}}),(0,_r(d[6]).jsx)(_r(d[7]).Text,{testID:"walletSelection.text.currentWallet",text:r.name,style:{marginHorizontal:10},size:"base",numberOfLines:1}),(0,_r(d[6]).jsx)(_r(d[7]).Icon,{size:16,icon:"caret-down",color:i.text})]})}),(0,_r(d[6]).jsx)(_r(d[9]).BottomModal,{isOpen:f,onClose:function(){return p(!1)},backgroundColor:i.block,titleTx:"swapToken.changeWallet",children:(0,_r(d[6]).jsx)(_r(d[10]).WalletList,{wallet:r,setWallet:function(e){r.id!==e.id&&l(e),p(!1)},contentContainerStyle:{backgroundColor:i.block,paddingHorizontal:20}})})]})}}),4722,[20,34,140,18,3165,3412,180,3617,3409,3896,4044]);
|
|
@@ -5034,14 +5034,14 @@ __d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0
|
|
|
5034
5034
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SwapTokenSelect=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o})(_r(d[3])),o=_r(d[4]),r=["token","setToken","wallet","isSelectSwap"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}_e.SwapTokenSelect=function(l){var i=l.token,s=l.setToken,c=l.wallet,a=l.isSelectSwap,u=(0,t.default)(l,r),f=(0,_r(d[5]).useTheme)(),p=f.colors,w=f.translate,k=(0,n.useState)(!1),b=(0,e.default)(k,2),j=b[0],y=b[1];return(0,_r(d[6]).jsxs)(o.View,{children:[(0,_r(d[6]).jsx)(o.TouchableOpacity,{testID:"tokenSelection.button.openSelectWallet",onPress:function(){return y(!0)},children:(0,_r(d[6]).jsxs)(o.View,{style:{flexDirection:'row',paddingVertical:4,justifyContent:'space-between'},children:[null!=i&&i.symbol?(0,_r(d[6]).jsx)(_r(d[7]).TokenIcon,{token:i,size:32}):(0,_r(d[6]).jsx)(_r(d[8]).Icon,{icon:"plus",size:20,containerStyle:{width:32,height:32,borderRadius:40,backgroundColor:p.background2,justifyContent:'center',alignItems:'center',borderWidth:1,borderColor:p.dark3}}),(0,_r(d[6]).jsx)(o.View,{style:{marginLeft:8,justifyContent:'center'},children:(0,_r(d[6]).jsxs)(o.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'flex-start'},children:[(0,_r(d[6]).jsx)(_r(d[8]).Text,{testID:"tokenSelection.text.symbol",numberOfLines:1,text:(null==i?void 0:i.symbol)||w('swapToken.chooseToken'),style:{marginRight:8},size:null!=i&&i.symbol?'lg':'base',weight:"medium"}),(0,_r(d[6]).jsx)(_r(d[8]).Icon,{icon:"caret-down",size:16,color:p.label})]})})]})}),a?(0,_r(d[6]).jsx)(_r(d[9]).SelectSwapTokenSheet,Object.assign({isOpen:j,titleTx:'swapToken.swapToken',onClose:function(){y(!1)},wallet:c,onSelectToken:s},u)):(0,_r(d[6]).jsx)(_r(d[10]).SelectReceiveTokenSheet,Object.assign({isOpen:j,titleTx:'swapToken.receiveToken',onClose:function(){y(!1)},onSelectToken:s},u))]})}}),4724,[20,34,105,140,18,3165,180,4044,3617,4725,4726]);
|
|
5035
5035
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SelectSwapTokenSheet=void 0;var e=_r(d[0])(_r(d[1])),t=a(_r(d[2])),n=a(_r(d[3])),r=_r(d[0])(_r(d[4]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}_e.SelectSwapTokenSheet=(0,_r(d[5]).observer)((function(o){var a=o.titleTx,i=o.isOpen,l=o.onSelectToken,s=o.onClose,u=o.wallet,c=o.inTokenSymbol,f=o.inChainId,p=(0,_r(d[6]).useTheme)().colors,h=(0,_r(d[7]).useSafeAreaInsets)(),S=(0,t.useState)(''),y=(0,e.default)(S,2),v=y[0],w=y[1],I=(0,t.useState)([]),j=(0,e.default)(I,2),x=j[0],T=j[1],b=(0,t.useState)(null),k=(0,e.default)(b,2),C=k[0],_=k[1],O=(0,t.useState)(1),M=(0,e.default)(O,2),P=M[0],B=M[1],D=[{id:'all',name:'Multi chain',supportSwap:!0}].concat(_r(d[8]).SUPPORTED_CHAINS.filter((function(e){return e.supportSwap||!e.disableWrap})).map((function(e){return{id:e.chainId,name:e.name,supportSwap:e.supportSwap}}))),E=function(e){var t,n,r,o=null==(t=e.symbol)?void 0:t.includes(v.toUpperCase()),a=null==(n=e.name)?void 0:n.toLowerCase().includes(v.toLowerCase()),i=null==(r=e.address)?void 0:r.toLowerCase().includes(v.toLowerCase());if(!o&&!a&&!i)return!1;if(null!=C&&C.chainId&&(null==C?void 0:C.chainId)!==e.chainId)return!1;var l=D.find((function(t){return t.id===e.chainId}));return l&&(l.supportSwap||_r(d[9]).tokenDataService.isNativeToken(e.address,e.chainId))},L=(0,t.useMemo)((function(){return u.tokens.filter(E)}),[E]);(0,t.useEffect)((function(){w(''),_(null)}),[i]),(0,t.useEffect)((function(){if(L){var e=L.sort((function(e,t){return _r(d[10]).BlockChainUtils.toBigNumber(t.balance).comparedTo(e.balance)})).slice(0,10*P);T(e)}}),[v,C,i,u,P]),(0,t.useEffect)((function(){1!==P&&B(1)}),[C]);return(0,_r(d[11]).jsxs)(_r(d[16]).BottomModal,{fullScreen:!0,isOpen:i,onClose:s,titleTx:a,style:{paddingHorizontal:16},children:[(0,_r(d[11]).jsx)(_r(d[16]).SearchBar,{value:v,onSearch:w,placeholderTx:"common.search",style:{marginVertical:16}}),!u.chainId&&(0,_r(d[11]).jsx)(_r(d[17]).ChainsDropDown,{setSelectedChain:_,selectedChain:C,styles:{marginBottom:8}}),(0,_r(d[11]).jsx)(_r(d[18]).FlatList,{data:x,keyExtractor:function(e){return e.chainId+"_"+e.address},renderItem:function(e){var t=e.item,n=c===t.symbol&&f===t.chainId;return(0,_r(d[11]).jsx)(_r(d[12]).TokenItem,{item:t,onPress:function(){var e;e=t,s&&s(),l&&l(e)},isSelected:n})},initialNumToRender:10,showsVerticalScrollIndicator:!1,contentContainerStyle:{paddingBottom:h.bottom+(_r(d[19]).IS_ANDROID&&56)},ListEmptyComponent:function(){return(0,_r(d[11]).jsxs)(n.default.View,{entering:n.ZoomIn,style:{justifyContent:'center',alignItems:'center',paddingVertical:16},children:[(0,_r(d[11]).jsx)(r.default,{source:_r(d[13]),style:{height:180,aspectRatio:1,padding:16},resizeMode:"contain"}),(0,_r(d[11]).jsx)(_r(d[14]).Text,{tx:"error.noToken",preset:"label",style:{marginBottom:16}}),(0,_r(d[11]).jsx)(_r(d[14]).Button,{tx:"manageTokensScreen.title",preset:"secondary",onPress:function(){s(),setTimeout((function(){(0,_r(d[15]).navigate)('tokenManager')}),300)},LeftAccessory:function(){return(0,_r(d[11]).jsx)(_r(d[14]).Icon,{icon:"list-plus",color:p.primary,containerStyle:{marginRight:8}})}})]})},onEndReached:function(){x.length<L.length&&B((function(e){return e+1}))}})]})}))}),4725,[20,34,140,3932,3894,686,3165,3156,1474,2812,1058,180,4691,3070,3617,631,3896,4291,4078,628]);
|
|
5036
5036
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SelectReceiveTokenSheet=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r})(_r(d[3])),r=_r(d[4]);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}_e.SelectReceiveTokenSheet=(0,_r(d[5]).observer)((function(o){var a=o.titleTx,i=o.isOpen,s=o.onSelectToken,l=o.onClose,u=o.inTokenSymbol,c=o.inChainId,f=o.inTokenAddress,p=(0,_r(d[6]).useStores)().account,h=(0,_r(d[7]).useTheme)().translate,v=(0,_r(d[8]).useSafeAreaInsets)(),y=p.selectedWallet,T=_r(d[9]).tokenDataService.getAllTokens(),S=(0,n.useMemo)((function(){var e=(0,_r(d[10]).getChainFromId)({chainId:c}),n=function(t){return t.chainId===c&&t.address!==f&&(!!e.supportSwap||f===e.defaultToken.address&&t.address===(null==(n=e.wrappedToken)?void 0:n.address));var n},r=y.tokens.filter(n),o=r.map((function(e){return e.address})),a=T.filter((function(e){return n(e)&&!o.includes(e.address)}));return[].concat((0,t.default)(r),(0,t.default)(a))}),[y.tokens,c,f]),k=(0,n.useRef)(S),I=(0,n.useState)(''),w=(0,e.default)(I,2),x=w[0],b=w[1],j=(0,n.useState)(S.slice(0,15)),_=(0,e.default)(j,2),C=_[0],O=_[1],R=(0,n.useRef)();(0,n.useEffect)((function(){if(x){var e=setTimeout((function(){k.current=S.filter((function(e){var t,n,r,o=x.toLowerCase();return(null==(t=e.name)?void 0:t.toLowerCase().includes(o))||(null==(n=e.address)?void 0:n.toLowerCase().includes(o))||(null==(r=e.symbol)?void 0:r.toLowerCase().includes(o))})),O(k.current.slice(0,15))}),150);return function(){clearTimeout(e)}}return k.current=(0,t.default)(S),O(k.current.slice(0,15)),function(){}}),[x,S]);return(0,_r(d[11]).jsxs)(_r(d[13]).BottomModal,{fullScreen:!0,isOpen:i,onClose:l,titleTx:a,style:{marginHorizontal:16},children:[(0,_r(d[11]).jsx)(_r(d[13]).SearchBar,{value:x,onSearch:b,placeholderTx:"common.search",style:{marginBottom:16}}),(0,_r(d[11]).jsx)(_r(d[14]).FlatList,{testID:"animmatedHeader.flatlist.listTokens",ref:R,data:C,onEndReachedThreshold:.5,showsVerticalScrollIndicator:!1,onEndReached:function(){var e=C.length,n=k.current.length;e!==n&&O(e+15<=n?[].concat((0,t.default)(C),(0,t.default)(k.current.slice(e,e+15))):k.current)},keyExtractor:function(e){return e.chainId+"_"+e.address},getItemLayout:function(e,t){return{length:74,offset:74*t,index:t}},style:{height:0},contentContainerStyle:{paddingBottom:v.bottom+(_r(d[15]).IS_ANDROID&&56)},ListEmptyComponent:(0,_r(d[11]).jsx)(r.View,{style:{justifyContent:'center',alignItems:'center',marginTop:8},children:(0,_r(d[11]).jsx)(_r(d[16]).Text,{text:h('common.no_data'),preset:"label"})}),removeClippedSubviews:!0,initialNumToRender:20,maxToRenderPerBatch:15,renderItem:function(e){var t=e.item,n=u===t.symbol&&c===t.chainId;return(0,_r(d[11]).jsx)(_r(d[12]).TokenItem,{item:t,onPress:function(){var e;e=t,l&&l(),s&&s(e)},isSelected:n})}})]})}))}),4726,[20,34,23,140,18,686,701,3165,3156,2812,1474,180,4691,3896,4078,628,3617]);
|
|
5037
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ChangeAggregator=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(n,s,l):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),n=_r(d[4]),o=_r(d[0])(_r(d[5]));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}_e.ChangeAggregator=function(i){var l,a,x=i.wallet,f=i.swapAggregator,p=i.setSwapAggregator,h=i.inToken,y=i.inAmount,b=i.outToken,j=i.slippage,w=i.isStopCountDown,T=i.gaMappingId,v=i.currency,k=(0,_r(d[6]).useTheme)().colors,C=(0,_r(d[7]).useMixins)().toFixed,S=(0,r.useState)([]),V=(0,t.default)(S,2),
|
|
5037
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ChangeAggregator=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=o?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(n,s,l):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),n=_r(d[4]),o=_r(d[0])(_r(d[5]));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}_e.ChangeAggregator=function(i){var l,a,x=i.wallet,f=i.swapAggregator,p=i.setSwapAggregator,h=i.inToken,y=i.inAmount,b=i.outToken,j=i.slippage,w=i.isStopCountDown,T=i.gaMappingId,v=i.currency,k=(0,_r(d[6]).useTheme)().colors,C=(0,_r(d[7]).useMixins)().toFixed,S=(0,r.useState)([]),V=(0,t.default)(S,2),I=V[0],z=V[1],_=(0,r.useState)(!1),R=(0,t.default)(_,2),D=R[0],P=R[1],O=(0,r.useState)(!0),A=(0,t.default)(O,2),F=A[0],B=A[1],L=(0,r.useState)(''),M=(0,t.default)(L,2),E=M[0],W=M[1],H=(0,r.useRef)(''),U=(0,r.useRef)(null),G=(0,r.useRef)(null),K=(0,_r(d[8]).getChainFromId)({chainId:h.chainId}),q="1 "+h.symbol+" = "+(E?C(E,6):'--')+" "+b.symbol,N=(l=(0,e.default)((function*(e,t,r,n,o){if(!e||!r)return p(null),void B(!1);if(o&&(p(null),z([])),B(!0),!H.current){var i=yield x.getPrivateKeyPairByChain({chainId:e.chainId});H.current=i}yield _r(d[9]).swapAggregatorService.fetchSwapOptions({inToken:e,inAmount:t,outToken:r,slippage:n,forceUpdate:o,privateKey:H.current,taskId:'swap-screen',currency:v},(function(e){clearTimeout(U.current),U.current=setTimeout((function(){z(e||[]),e.length>0?p(e[0]):p(null)}),500)})),B(!1)})),function(e,t,r,n,o){return l.apply(this,arguments)}),J=(a=(0,e.default)((function*(){var e=yield _r(d[10]).tokenRateService.getRateBetweenTokens(h,b);W(e)})),function(){return a.apply(this,arguments)}),Q=function(){P(!1)};(0,r.useEffect)((function(){if(!F){var e=I.map((function(e){return e.id})).sort();o.default.isEqual(G.current,e)||(G.current=e,_r(d[11]).gaService.sendEvent('number_suggested_dex',{dex_count:I.length,list_dex_name:I.map((function(e){return e.id})).toString(),bundle_id:T}))}}),[I]),(0,r.useEffect)((function(){var e=null;return _r(d[12]).BlockChainUtils.toBigNumber(y).isGreaterThan(0)&&(e=setTimeout((function(){B(!0),p(null),z([]),N(h,y,b,j)}),200)),function(){clearTimeout(e)}}),[h,b,y,j]),(0,r.useEffect)((function(){J()}),[]);var X={flexDirection:'row',alignItems:'center',justifyContent:'space-between'};return(0,_r(d[13]).jsxs)(n.View,{children:[(0,_r(d[13]).jsxs)(n.View,{style:{borderRadius:8,borderWidth:1,borderColor:k.border,paddingHorizontal:16,paddingVertical:8,backgroundColor:k.dark2},children:[F&&0===I.length&&(0,_r(d[13]).jsx)(c,{}),!F&&0===I.length&&(0,_r(d[13]).jsx)(u,{}),!!f&&(0,_r(d[13]).jsxs)(n.View,{children:[(0,_r(d[13]).jsx)(n.TouchableOpacity,{onPress:(0,e.default)((function*(){B(!0),yield N(h,y,b,j,!0)})),children:(0,_r(d[13]).jsxs)(n.View,{style:[X,{marginBottom:8}],children:[(0,_r(d[13]).jsx)(_r(d[14]).Text,{preset:"label",size:"base",text:q}),(0,_r(d[13]).jsx)(_r(d[15]).CountdownCircleTimer,{onComplete:function(){return N(h,y,b,j),{shouldRepeat:!0}},size:16,isPlaying:!w,duration:30,colors:k.primary,strokeWidth:2.5,isSmoothColorTransition:!0,rotation:"counterclockwise",strokeLinecap:"round"})]})}),(0,_r(d[13]).jsxs)(n.TouchableOpacity,{style:[X],onPress:function(){return P(!0)},children:[(0,_r(d[13]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[13]).jsx)(n.Image,{source:null==f?void 0:f.logoSrc,style:{width:24,height:24,borderRadius:16,marginRight:8,backgroundColor:k.white}}),(0,_r(d[13]).jsx)(n.View,{children:(0,_r(d[13]).jsx)(_r(d[14]).Text,{text:null==f?void 0:f.name,size:"base"})})]}),(0,_r(d[13]).jsx)(_r(d[14]).Text,{tx:"common.change",color:k.primary,size:"sm",preset:"bold"})]})]})]}),(0,_r(d[13]).jsx)(_r(d[16]).BottomModal,{isOpen:D,onClose:Q,titleTx:"swapToken.changeAggregator",backgroundColor:k.block,children:(0,_r(d[13]).jsx)(n.FlatList,{data:I,keyExtractor:function(e,t){return e.id+t},contentContainerStyle:{paddingHorizontal:16},ItemSeparatorComponent:function(){return(0,_r(d[13]).jsx)(n.View,{style:{height:16}})},renderItem:function(e){var t,r=e.item,n=e.index;return(0,_r(d[13]).jsx)(s,{item:r,index:n,toFixed:C,isSelected:r.id===(null==f?void 0:f.id),outSymbol:b.symbol,gasSymbol:null==K||null==(t=K.defaultToken)?void 0:t.symbol,onPress:function(){Q(),p(r),_r(d[11]).gaService.sendEvent('change_dex',{dex_name:r.name,bundle_id:T})},currency:v})}})})]})};var s=function(e){var t,r=e.isSelected,o=e.item,i=e.index,s=e.outSymbol,c=e.gasSymbol,u=e.toFixed,x=e.onPress,f=e.currency,p=(0,_r(d[6]).useTheme)().colors;return(0,_r(d[13]).jsx)(n.TouchableOpacity,{onPress:x,children:(0,_r(d[13]).jsxs)(n.View,{style:{borderRadius:12,borderWidth:1,borderColor:r?p.primary:p.border,backgroundColor:r?p.background2:p.transparent,padding:16},children:[(0,_r(d[13]).jsxs)(n.View,{style:{flexDirection:'row'},children:[(0,_r(d[13]).jsx)(n.Image,{source:o.logoSrc,style:{width:40,height:40,borderRadius:40,marginRight:8,backgroundColor:p.white}}),(0,_r(d[13]).jsxs)(n.View,{style:{flex:1},children:[(0,_r(d[13]).jsxs)(n.View,{style:{flexDirection:'row',justifyContent:'space-between',marginBottom:4},children:[(0,_r(d[13]).jsx)(_r(d[14]).Text,{preset:"bold",size:"base",text:o.name}),0!=i?(0,_r(d[13]).jsx)(a,{val:u(o.compareToBestDex,2)}):(0,_r(d[13]).jsx)(l,{})]}),(0,_r(d[13]).jsxs)(n.View,{children:[(0,_r(d[13]).jsx)(_r(d[14]).Text,{text:u(o.outAmount,6)+' '+s}),(0,_r(d[13]).jsx)(_r(d[14]).Text,{preset:"label",size:"base",text:"~"+_r(d[10]).tokenRateService.getValueDisplayForCurrency(o.outUsdAmount,f).display})]})]})]}),(0,_r(d[13]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginTop:8},children:[(0,_r(d[13]).jsx)(_r(d[14]).Text,{tx:"swapToken.gasFee",preset:"label",size:"base"}),(0,_r(d[13]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[13]).jsx)(_r(d[14]).Text,{preset:"label",size:"base",text:(o.gasFee?u(o.gasFee,6):'--')+' '+c,style:{marginLeft:4}}),!1===(null==(t=o.swapData)?void 0:t.isGasLimitCorrect)&&(0,_r(d[13]).jsx)(_r(d[14]).Icon,{icon:"warning",color:p.error,size:14,style:{marginLeft:4}})]})]})]})})},l=function(){var e=(0,_r(d[6]).useTheme)().colors;return(0,_r(d[13]).jsxs)(n.View,{style:{flexDirection:'row',paddingVertical:2,paddingHorizontal:4,borderRadius:12,borderWidth:1,borderColor:e.border,backgroundColor:e.greenLight},children:[(0,_r(d[13]).jsx)(_r(d[14]).Icon,{icon:"fire-fill",size:16,color:e.success}),(0,_r(d[13]).jsx)(_r(d[14]).Text,{tx:"swapToken.best",size:"sm",color:e.success,style:{marginLeft:4}})]})},a=function(e){var t=e.val,r=(0,_r(d[6]).useTheme)().colors;return(0,_r(d[13]).jsx)(n.View,{style:{paddingVertical:2,paddingHorizontal:4,borderRadius:12,backgroundColor:r.redLight},children:(0,_r(d[13]).jsx)(_r(d[14]).Text,{text:t+"%",size:"sm",color:r.error})})},c=function(){var e=(0,_r(d[6]).useTheme)().colors;return(0,_r(d[13]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[13]).jsx)(n.ActivityIndicator,{size:"small",color:e.primary,style:{marginRight:4}}),(0,_r(d[13]).jsx)(_r(d[14]).Text,{tx:'swapToken.checkingForBestPrice',size:"sm",color:e.primary})]})},u=function(){var e=(0,_r(d[6]).useTheme)().colors;return(0,_r(d[13]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[13]).jsx)(_r(d[14]).Icon,{icon:"magnifying-glass-minus",size:22,color:e.error,style:{marginRight:4}}),(0,_r(d[13]).jsx)(_r(d[14]).Text,{tx:'swapToken.notFoundDex',size:"sm",color:e.error})]})}}),4727,[20,316,34,140,18,1064,3165,3149,1474,4728,2812,3448,1058,180,3617,4730,3896]);
|
|
5038
5038
|
__d((function(g,_r,i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.swapAggregatorService=void 0;var t,a,n,r,o=_r(d[0])(_r(d[1])),s=_r(d[0])(_r(d[2])),u=_r(d[0])(_r(d[3])),l=_r(d[0])(_r(d[4])),c=_r(d[0])(_r(d[5])),p=_r(d[0])(_r(d[6])),y=_r(d[0])(_r(d[7])),f=new y.default({concurrency:1}),h=(0,c.default)((function t(){(0,l.default)(this,t),this.cache=new Map,this.runningTasks=new Map}),[{key:"fetchSwapOptions",value:(r=(0,u.default)((function*(t,a){var n=this,r=t.inToken,o=t.outToken,s=t.inAmount,u=t.taskId,l=t.forceUpdate,c=this.generateCacheKey(r,o,s),p=new AbortController,y=this.cache.get(c);l||!this.isCacheValid(y)?(this.cache.delete(c),u&&(this.runningTasks.has(u)&&this.runningTasks.get(u).abort(),this.runningTasks.set(u,p)),yield Promise.all(_r(d[8]).SUPPORTED_DEXES.map((function(r){return n.queryDexAndUpdate(r,t,a,p.signal)}))),p.signal.aborted||this.runningTasks.delete(u)):a(y.data)})),function(t,a){return r.apply(this,arguments)})},{key:"generateCacheKey",value:function(t,a,n){return t.chainId+"-"+t.address+"-"+a.address+"-"+n}},{key:"isCacheValid",value:function(t){return t&&Date.now()-t.timestamp<2e4}},{key:"queryDexAndUpdate",value:(n=(0,u.default)((function*(t,a,n,r){var o,s=this;return new Promise((o=(0,u.default)((function*(o){var u=a.inToken,l=a.outToken;r&&r.addEventListener('abort',(function(){_r(d[9]).Logger.debug("Cancel querying "+u.symbol+" -> "+l.symbol+" on DEX "+t),o()}));try{var c=yield(0,_r(d[8]).querySingleDex)(t,a),p=yield s.parseAndSortResponses(a,[c]);if(null!=r&&r.aborted)return;n(p);var y=yield(0,_r(d[8]).prepareSwapData)(t,a);if(p=yield s.parseAndSortResponses(a,[Object.assign({},c,{txn:y})]),null!=r&&r.aborted)return;n(p)}catch(a){_r(d[9]).Logger.debug("Cannot query "+u.symbol+" -> "+l.symbol+" on DEX "+t+", error: "+a)}o()})),function(t){return o.apply(this,arguments)}))})),function(t,a,r,o){return n.apply(this,arguments)})},{key:"parseAndSortResponses",value:(a=(0,u.default)((function*(t,a){var n=this;return f.add((0,u.default)((function*(){var r,o=t.inToken,l=t.outToken,c=t.inAmount,y=n.generateCacheKey(o,l,c),f=n.cache.has(y)?(0,s.default)(n.cache.get(y).data):[],h=(r=(0,u.default)((function*(a){try{var r=yield n.parseResponse(a,t),o=f.findIndex((function(t){return t.id===a.id}));o>=0?f[o]=r:f.push(r)}catch(t){_r(d[9]).Logger.error("parseAndSortResponses: "+t)}})),function(t){return r.apply(this,arguments)});yield Promise.all(a.map(h));var v=f.sort((function(t,a){return(0,p.default)(a.outUsdAmountAfterGasFee||a.outUsdAmount).comparedTo(t.outUsdAmountAfterGasFee||t.outUsdAmount)})),A=v[0],S=v.map((function(t){var a=(0,p.default)(t.outUsdAmountAfterGasFee||t.outUsdAmount).minus(A.outUsdAmountAfterGasFee||A.outUsdAmount).div(A.outUsdAmountAfterGasFee||A.outUsdAmount).abs().multipliedBy(-100);return Object.assign({},t,{compareToBestDex:a.toString(10)})}));return n.cache.set(y,{timestamp:Date.now(),data:S}),S})))})),function(t,n){return a.apply(this,arguments)})},{key:"parseResponse",value:(t=(0,u.default)((function*(t,a){var n=a.inAmount,r=a.inToken,s=a.outToken,u=a.slippage,l=a.privateKey,c=a.currency,y=(0,_r(d[10]).getChainFromId)({chainId:r.chainId}),f=yield _r(d[11]).tokenRateService.allToCurrencyValue([Object.assign({},r,{value:'1'}),Object.assign({},s,{value:'1'}),Object.assign({},y.defaultToken,{value:'1'})],c),h=(0,o.default)(f,3),v=h[0],A=h[1],S=h[2],k=(0,p.default)(t.outAmount).minus(t.serviceFee),U=(0,p.default)(t.outAmount).multipliedBy(1-u/100).minus(t.serviceFee),T=k.multipliedBy(A.currencyValue),w=U.multipliedBy(A.currencyValue),b=(0,p.default)(t.serviceFee).multipliedBy(v.currencyValue).toString(10),D=(0,p.default)(n).multipliedBy(v.currencyValue),F={id:t.id,name:t.name,logoSrc:t.logoSrc,slippage:u,outAmount:k.toString(10),outUsdAmount:T.toString(10),outAmountAfterSlippage:U.toString(10),outUsdAmountAfterSlippage:w.toString(10),serviceFee:t.serviceFee,serviceFeeRate:t.serviceFeeRate,serviceUsdFee:b,inUsdAmount:D.toString(10),inOutRate:k.div(n).toString(10),compareToInUsd:T.div(D).minus(1).multipliedBy(100).toString(10),compareToBestDex:'',raw:Object.assign({},t,{logoSrc:void 0,txn:void 0}),swapDetail:t.swapDetail};if(t.txn){var B=yield _r(d[12]).networkFeeService.getFeeData(r.chainId),C=_r(d[13]).swapTxnHandler.generateTxnData({inToken:r,outToken:s,inAmountWei:t.txn.inAmountWei,outAmountWei:t.txn.outAmountWei,contractAddress:t.txn.address,rawData:t.txn.data,serviceFeeRate:t.serviceFeeRate}),x=C.data,L=C.value;F.swapData={data:x,value:L,gasLimit:_r(d[14]).BlockChainUtils.toBigNumber(t.txn.gasLimit.toString(10)).multipliedBy(2).toString(10)};try{var R=yield _r(d[13]).swapTxnHandler.estimateGas({privateKey:l,chainId:y.chainId,value:L,data:x});'0'!==R.gasLimit?(F.swapData.gasLimit=R.gasLimit,F.swapData.isGasLimitCorrect=!0):F.swapData.isGasLimitCorrect=!1}catch(t){F.swapData.isGasLimitCorrect=!1}F.gasFee=_r(d[14]).BlockChainUtils.weiToAmount(_r(d[14]).BlockChainUtils.toBigNumber(B.gasPrice,10).multipliedBy(F.swapData.gasLimit).toString(10),y.defaultToken.decimals),F.gasFeeUsd=_r(d[14]).BlockChainUtils.toBigNumber(F.gasFee).multipliedBy(S.currencyValue).toString(10),F.outUsdAmountAfterGasFee=_r(d[14]).BlockChainUtils.toBigNumber(F.outUsdAmount).minus(F.gasFeeUsd).toString(10)}return F})),function(a,n){return t.apply(this,arguments)})}]);e.swapAggregatorService=new h}),4728,[20,34,23,316,9,12,1059,1407,4729,1413,1474,2812,3056,2917,1058]);
|
|
5039
5039
|
__d((function(g,_r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SUPPORTED_DEXES=void 0,e.getDexInfo=function(r){if(_r(d[3]).readyAggregator.dexList.includes(r))return _r(d[3]).readyAggregator.getDexInfo(r);return null},e.prepareSwapData=function(r,t){return p.apply(this,arguments)},e.queryAllDex=function(r){return u.apply(this,arguments)},e.querySingleDex=function(r,t){return o.apply(this,arguments)};var r=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=e.SUPPORTED_DEXES=(0,t.default)(_r(d[3]).readyAggregator.dexList);function u(){return u=(0,r.default)((function*(t){var u,o=t.inToken,p=t.outToken,f=[],y=(u=(0,r.default)((function*(r){try{var n=yield l(r,t);f.push(n)}catch(t){_r(d[4]).Logger.debug("Cannot query "+o.symbol+" -> "+p.symbol+" on DEX "+r+", error: "+t)}})),function(r){return u.apply(this,arguments)});return(0,_r(d[5]).getChainFromId)({chainId:o.chainId}).supportSwap&&(yield Promise.all(n.map(y))),f})),u.apply(this,arguments)}function o(){return(o=(0,r.default)((function*(r,t){return yield l(r,t)}))).apply(this,arguments)}function p(){return(p=(0,r.default)((function*(r,t){return yield f(r,t)}))).apply(this,arguments)}var l=function(r,t){if(_r(d[3]).readyAggregator.dexList.includes(r))return _r(d[3]).readyAggregator.query(r,t);throw Error("Querying dex id "+r+" is not supported")},f=function(r,t){if(_r(d[3]).readyAggregator.dexList.includes(r))return _r(d[3]).readyAggregator.prepareSwapData(r,t);throw Error("Preparing data for dex id "+r+" is not supported")}}),4729,[20,316,23,3059,1413,1474]);
|
|
5040
5040
|
__d((function(_g,_r,_i,_a,_m,_e,_d){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,o=function(e){return t(e,"__esModule",{value:!0})},a=function(e,i,o){if(i&&"object"==typeof i||"function"==typeof i){var a=function(r){!u.call(e,r)&&"default"!==r&&t(e,r,{get:function(){return i[r]},enumerable:!(o=n(i,r))||o.enumerable})};for(var l of r(i))a(l)}return e},l=function(n){return a(o(t(null!=n?e(i(n)):{},"default",n&&n.__esModule&&"default"in n?{get:function(){return n.default},enumerable:!0}:{value:n,enumerable:!0})),n)};!(function(e,n){for(var r in o(e),n)t(e,r,{get:n[r],enumerable:!0})})(_e,{CountdownCircleTimer:function(){return P},useCountdown:function(){return R}});var c=l(_r(_d[0])),f=l(_r(_d[1])),s=l(_r(_d[2])),d=l(_r(_d[0])),m=l(_r(_d[0])),p=l(_r(_d[0])),h="undefined"==typeof window?p.useEffect:p.useLayoutEffect,v=function(e){var t=e.isPlaying,n=e.duration,r=e.startAt,i=void 0===r?0:r,u=e.updateInterval,o=void 0===u?0:u,a=e.onComplete,l=e.onUpdate,c=(0,m.useState)(i),f=_r(_d[3])(c,2),s=f[0],d=f[1],p=(0,m.useRef)(0),v=(0,m.useRef)(i),y=(0,m.useRef)(-1e3*i),g=(0,m.useRef)(null),w=(0,m.useRef)(null),k=(0,m.useRef)(null),b=function e(t){var r=t/1e3;if(null===w.current)return w.current=r,void(g.current=requestAnimationFrame(e));var i=r-w.current,u=p.current+i;w.current=r,p.current=u;var a=v.current+(0===o?u:(u/o|0)*o),l=v.current+u,c="number"==typeof n&&l>=n;d(c?n:a),c||(g.current=requestAnimationFrame(e))},T=function(){g.current&&cancelAnimationFrame(g.current),k.current&&clearTimeout(k.current),w.current=null},C=(0,m.useCallback)((function(e){T(),p.current=0;var n="number"==typeof e?e:i;v.current=n,d(n),t&&(g.current=requestAnimationFrame(b))}),[t,i]);return h((function(){if(null==l||l(s),n&&s>=n){y.current+=1e3*n;var e=(null==a?void 0:a(y.current/1e3))||{},t=e.shouldRepeat,r=void 0!==t&&t,i=e.delay,u=void 0===i?0:i,o=e.newStartAt;r&&(k.current=setTimeout((function(){return C(o)}),1e3*u))}}),[s,n]),h((function(){return t&&(g.current=requestAnimationFrame(b)),T}),[t,n,o]),{elapsedTime:s,reset:C}},y=function(e,t,n){var r=e/2,i=t/2,u=r-i,o=2*u,a="clockwise"===n?"1,0":"0,1";return{path:"m "+r+","+i+" a "+u+","+u+" 0 "+a+" 0,"+o+" a "+u+","+u+" 0 "+a+" 0,-"+o,pathLength:2*Math.PI*u}},g=function(e,t){return 0===e||e===t?0:"number"==typeof t?e-t:0},w=function(e){return{position:"relative",width:e,height:e}},k={display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:0,top:0,width:"100%",height:"100%"},b=function(e,t,n,r,i){return 0===r?t:t+n*((i?r-e:e)/r)},T=function(e){var t,n;return null!=(n=null==(t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return"#"+t+t+n+n+r+r})).substring(1).match(/.{2}/g))?void 0:t.map((function(e){return parseInt(e,16)})))?n:[]},C=function(e,t){var n,r=e.colors,i=e.colorsTime,u=e.isSmoothColorTransition,o=void 0===u||u;if("string"==typeof r)return r;var a=null!=(n=null==i?void 0:i.findIndex((function(e,n){return e>=t&&t>=i[n+1]})))?n:-1;if(!i||-1===a)return r[0];if(!o)return r[a];var l=i[a]-t,c=i[a]-i[a+1],f=T(r[a]),s=T(r[a+1]),d=!!e.isGrowing;return"rgb("+f.map((function(e,t){return 0|b(l,e,s[t]-e,c,d)})).join(",")+")"},R=function(e){var t=e.duration,n=e.initialRemainingTime,r=e.updateInterval,i=e.size,u=void 0===i?180:i,o=e.strokeWidth,a=void 0===o?12:o,l=e.trailStrokeWidth,c=e.isPlaying,f=void 0!==c&&c,s=e.isGrowing,m=void 0!==s&&s,p=e.rotation,h=void 0===p?"clockwise":p,w=e.onComplete,k=e.onUpdate,T=(0,d.useRef)(),R=Math.max(a,null!=l?l:0),P=y(u,R,h),O=P.path,j=P.pathLength,A=v({isPlaying:f,duration:t,startAt:g(t,n),updateInterval:r,onUpdate:"function"==typeof k?function(e){var n=Math.ceil(t-e);n!==T.current&&(T.current=n,k(n))}:void 0,onComplete:"function"==typeof w?function(e){var n,r=null!=(n=w(e))?n:{},i=r.shouldRepeat,u=r.delay,o=r.newInitialRemainingTime;if(i)return{shouldRepeat:i,delay:u,newStartAt:g(t,o)}}:void 0}).elapsedTime,I=t-A;return{elapsedTime:A,path:O,pathLength:j,remainingTime:Math.ceil(I),rotation:h,size:u,stroke:C(e,I),strokeDashoffset:b(A,0,j,t,m),strokeWidth:a}},P=function(e){var t=e.children,n=e.duration,r=e.strokeLinecap,i=e.trailColor,u=e.trailStrokeWidth,o=R(e),a=o.path,l=o.pathLength,d=o.stroke,m=o.strokeDashoffset,p=o.remainingTime,h=o.elapsedTime,v=o.size,y=o.strokeWidth;return c.default.createElement(f.View,{style:w(v)},c.default.createElement(s.default,{viewBox:"0 0 "+v+" "+v,width:v,height:v},c.default.createElement(s.Path,{d:a,fill:"none",stroke:null!=i?i:"#d9d9d9",strokeWidth:null!=u?u:y}),h!==n&&c.default.createElement(s.Path,{d:a,fill:"none",stroke:d,strokeLinecap:null!=r?r:"round",strokeWidth:y,strokeDasharray:l,strokeDashoffset:m})),"function"==typeof t&&c.default.createElement(f.View,{style:k},t({remainingTime:p,elapsedTime:h,color:d})))};P.displayName="CountdownCircleTimer"}),4730,[140,18,4385,34]);
|
|
5041
5041
|
__d((function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ApprovalInfoScreen=void 0;r(d[0])(r(d[1]));var o=r(d[2]);e.ApprovalInfoScreen=function(){var t=(0,r(d[3]).useTheme)().colors;return(0,r(d[4]).jsxs)(r(d[5]).Screen,{safeAreaEdges:r(d[6]).IS_ANDROID?['top','bottom']:['bottom'],header:(0,r(d[4]).jsx)(r(d[5]).Header,{titleTx:"approve_info.title"}),backgroundColor:t.dark2,style:{paddingHorizontal:16},footer:(0,r(d[4]).jsx)(r(d[5]).Button,{tx:"approve_info.confirm",style:{marginHorizontal:16},onPress:function(){return(0,r(d[7]).goBack)()}}),children:[(0,r(d[4]).jsx)(r(d[5]).Text,{tx:"approve_info.description",preset:"label",size:"base",style:{marginVertical:16}}),(0,r(d[4]).jsx)(r(d[5]).Text,{tx:"approve_info.note",preset:"label",size:"base",weight:"bold"}),[{icon:'lightning',title:'swapToken.allowance_config.fast',des:'approve_info.all_des'},{icon:'shield',title:'swapToken.allowance_config.sufficient',des:'approve_info.sufficient_desc'}].map((function(n,i){return(0,r(d[4]).jsxs)(o.View,{style:{paddingBottom:16,borderRadius:12,borderWidth:1,borderColor:t.dark3,overflow:'hidden',marginTop:16},children:[(0,r(d[4]).jsxs)(o.View,{style:{flexDirection:'row',alignItems:'center',marginBottom:8,paddingVertical:12,backgroundColor:t.background,paddingHorizontal:16},children:[(0,r(d[4]).jsx)(r(d[5]).Icon,{icon:n.icon,size:20}),(0,r(d[4]).jsx)(r(d[5]).Text,{tx:n.title,size:"base",style:{marginLeft:8}})]}),(0,r(d[4]).jsx)(r(d[5]).Text,{tx:n.des,size:"base",preset:"label",style:{paddingHorizontal:16}})]},i)}))]})}}),4731,[20,140,18,3165,180,3617,628,631]);
|
|
5042
5042
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))})),Object.keys(r(d[2])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[2])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[2])[n]}}))}))}),4732,[4733,4734,4738]);
|
|
5043
5043
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.CustomizeWallet=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var u=l?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(a,o,u):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a})(_r(d[3])),a=_r(d[4]);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.CustomizeWallet=(0,_r(d[5]).observer)((function(n){var l,o=(0,_r(d[6]).useTheme)(),u=o.translate,i=o.colors,c=n.navigation,s=(0,r.useState)(''),f=(0,t.default)(s,2),p=f[0],v=f[1],x=(0,r.useState)('happy-face'),W=(0,t.default)(x,2),h=W[0],j=W[1],y=(0,r.useState)('bg1'),w=(0,t.default)(y,2),C=w[0],b=w[1],_=p.replace(/\s+/g,' ').trim(),P=!!_&&h&&C,k=(l=(0,e.default)((function*(){P&&c.navigate('waitingForCreatingWallet',{walletName:_,walletBackground:C,walletEmoji:h})})),function(){return l.apply(this,arguments)});return(0,_r(d[7]).jsxs)(_r(d[8]).Screen,{safeAreaEdges:['top','bottom'],padding:!0,header:(0,_r(d[7]).jsx)(_r(d[8]).Header,{title:u('createWallet.createNewWallet'),leftIcon:"arrow-left",onLeftPress:function(){return c.goBack()},rightText:u('common.continue'),rightTextColor:P?i.primary:i.label,onRightPress:function(){return P&&k()}}),contentContainerStyle:{flex:1},children:[(0,_r(d[7]).jsxs)(a.View,{style:{marginVertical:16},children:[(0,_r(d[7]).jsx)(_r(d[9]).ProfileWallet,{currentWalletEmoji:h,setCurrentWalletEmoji:j,currentBackgroundCoverWallet:C}),(0,_r(d[7]).jsx)(_r(d[8]).Text,{testID:"createWalletScreen.text.labelName",tx:"createWallet.walletName",style:{marginVertical:16},color:i.label}),(0,_r(d[7]).jsx)(_r(d[8]).TextInput,{testID:"textinput_change_walletname",placeholder:u('common.name')+" (*)",onChangeText:v,value:p,maxLength:64})]}),(0,_r(d[7]).jsx)(_r(d[10]).ChooseColorCoverWallet,{setCurrentBackgroundCoverWallet:b,currentBackgroundCoverWallet:C})]})}))}),4733,[20,316,34,140,18,686,3165,180,3617,4375,4376]);
|
|
5044
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ImportWalletScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var s=n?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a})(_r(d[3])),a=_r(d[4]);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}_e.ImportWalletScreen=(0,_r(d[5]).observer)((function(i){var n,o,s=i.navigation,c=i.route,l=(0,_r(d[6]).useTheme)(),u=l.colors,f=l.translate,p=(0,_r(d[7]).useMixins)(),y=p.notify,h=p.detectBiometricType,v=(0,_r(d[8]).useProcedureMixins)().importAccount,S=(0,_r(d[9]).useWalletMixins)().createWalletAndCheckDuplicate,
|
|
5044
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ImportWalletScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var s=n?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a})(_r(d[3])),a=_r(d[4]);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}_e.ImportWalletScreen=(0,_r(d[5]).observer)((function(i){var n,o,s=i.navigation,c=i.route,l=(0,_r(d[6]).useTheme)(),u=l.colors,f=l.translate,p=(0,_r(d[7]).useMixins)(),y=p.notify,h=p.detectBiometricType,v=(0,_r(d[8]).useProcedureMixins)().importAccount,S=(0,_r(d[9]).useWalletMixins)().createWalletAndCheckDuplicate,I=(0,_r(d[10]).useStores)().userStore,P=c.params,_=P.type,b=P.isLogin,C=(0,r.useState)(''),O=(0,t.default)(C,2),j=O[0],x=O[1],A=(0,r.useState)(''),K=(0,t.default)(A,2),T=K[0],w=K[1],W=(0,r.useState)(_r(d[11]).ChainId.ONUS_MAINNET),E=(0,t.default)(W,2),M=E[0],k=E[1],D=(0,r.useState)(!1),L=(0,t.default)(D,2),N=L[0],R=L[1],B=j?j.trim().split(' ').filter((function(e){return!!e.trim()})).length:0,U='seed'===_&&(!j||12!==B)||'key'===_&&!T.trim(),z=(n=(0,e.default)((function*(){(yield h()).available?s.navigate('authentication'):s.navigate('setPasscode')})),function(){return n.apply(this,arguments)}),H=(o=(0,e.default)((function*(e){var t=e.seedPhrase,r=e.privateKey,a=e.chainId,i=!!t;if(t||r){if(i&&!_r(d[12]).Passphrase.validate(t))return void y('error',f('error.invalidSeed'));R(!0);var n=yield S({seedphrase:t,privateKey:r,isCheckingDuplicate:!b,chainId:a}),o=n.wallet,c=n.existed;if(o){if(_r(d[13]).cacheStorage.set(_r(d[13]).CacheStorageKey.WALLET,o),_r(d[13]).cacheStorage.set(_r(d[13]).CacheStorageKey.IS_IMPORT_WALLET_BY_SP_OR_PK,{value:!0,isSeedPhrase:i}),b)return R(!1),_r(d[13]).cacheStorage.set(_r(d[13]).CacheStorageKey.IS_ACCOUNT_EXISTED,!0),void s.navigate('customizeWallet');if(o&&!c)return R(!1),void(yield z());_r(d[13]).cacheStorage.set(_r(d[13]).CacheStorageKey.IS_ACCOUNT_EXISTED,!0);var l=yield v({wallet:o}),u=l.accountId,p=l.walletId;if(R(!1),u){var h=I.accounts.find((function(e){return e.id===u}));I.setSelectedAccountId(u);var P=_r(d[14]).AccountHelper.getDefaultCurrency({});h.setCurrency(P),h.setSelectedWalletId(p),yield z()}}else R(!1)}})),function(e){return o.apply(this,arguments)});return(0,_r(d[15]).jsxs)(_r(d[16]).Screen,{safeAreaEdges:['top','bottom'],header:(0,_r(d[15]).jsx)(_r(d[16]).Header,{leftIcon:"arrow-left",onLeftPress:function(){s.goBack()},RightActionComponent:(0,_r(d[15]).jsx)(a.TouchableOpacity,{disabled:N||U,onPress:function(){return H({seedPhrase:j.trim(),privateKey:T.trim(),chainId:M})},style:{padding:4,marginRight:12},children:N?(0,_r(d[15]).jsx)(a.ActivityIndicator,{size:"small",color:u.disable}):(0,_r(d[15]).jsx)(_r(d[16]).Text,{tx:"common.continue",style:{color:U?u.disable:u.primary},weight:"medium"})})}),KeyboardAvoidingViewProps:{enabled:!1},children:['seed'===_&&(0,_r(d[15]).jsx)(_r(d[17]).EnterPassphrase,{passphrase:j,setPassphrase:x,onSubmit:H}),'key'===_&&(0,_r(d[15]).jsx)(_r(d[18]).EnterKey,{privateKey:T,setPrivateKey:w,onSubmit:H,chainId:M,setChainId:k})]})}))}),4734,[20,316,34,140,18,686,3165,3149,3410,3411,701,1479,4735,1459,3541,180,3617,4736,4737]);
|
|
5045
5045
|
__d((function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Passphrase=void 0;var e=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));_e.Passphrase=(0,n.default)((function n(){(0,e.default)(this,n)}),null,[{key:"validate",value:function(e){return r(d[3]).validateMnemonic(e)}},{key:"recover",value:function(e){return new Promise((function(n,t){try{n(r(d[4]).Utils.toArrayBuffer(r(d[3]).mnemonicToSeedSync(e).slice(32)))}catch(e){t(e)}}))}},{key:"createRandom",value:function(){return r(d[3]).generateMnemonic()}}])}),4735,[20,9,12,2922,3614]);
|
|
5046
5046
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EnterPassphrase=void 0;r(d[0])(r(d[1]));var t=r(d[2]);e.EnterPassphrase=(0,r(d[3]).observer)((function(s){var n=s.onSubmit,l=s.passphrase,o=s.setPassphrase,p=(0,r(d[4]).useTheme)(),h=p.colors,u=p.translate;return(0,r(d[5]).jsxs)(t.View,{style:{marginHorizontal:16,marginTop:16},children:[(0,r(d[5]).jsx)(r(d[6]).Text,{testID:"enterPassphrase.text.title",size:"2x",weight:"medium",tx:"importWallet.importBySeedphrase"}),(0,r(d[5]).jsx)(r(d[6]).Text,{testID:"enterPassphrase.text.description",size:"base",tx:"importWallet.seedPhraseDescription",style:{color:h.label,marginTop:16}}),(0,r(d[5]).jsx)(t.View,{style:{borderRadius:12,backgroundColor:h.dark2,marginVertical:16,padding:16},children:(0,r(d[5]).jsx)(r(d[6]).Text,{testID:"enterPassphrase.text.descriptionSeedPhrase",size:"base",tx:"importWallet.seedPhraseExample",style:{color:h.label},preset:"bold"})}),(0,r(d[5]).jsx)(r(d[6]).TextInput,{testID:"enterPassphrase.textInput",onSubmitEditing:function(){return n({seedPhrase:l})},onChangeText:function(t){var s=t.trim();12===s.split(/\s+/).length?(o(s),n({seedPhrase:s})):o(t)},value:l,multiline:!0,autoCapitalize:"none",placeholder:u('importWallet.seedphrase'),style:{lineHeight:20,textAlignVertical:'top',height:132},inputWrapperStyle:{borderRadius:12}})]})}))}),4736,[20,140,18,686,3165,180,3617]);
|
|
5047
5047
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EnterKey=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,r&&r.set(e,i),i})(_r(d[2])),r=_r(d[3]);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.EnterKey=(0,_r(d[4]).observer)((function(n){var i=n.onSubmit,o=n.privateKey,a=n.setPrivateKey,s=n.setChainId,l=n.chainId,c=(0,_r(d[5]).useTheme)(),u=c.translate,p=c.colors,y=(0,t.useState)(!1),f=(0,e.default)(y,2),x=f[0],b=f[1],h=_r(d[6]).SUPPORTED_CHAINS.find((function(e){return e.chainId===l}));return(0,_r(d[7]).jsxs)(r.View,{testID:"enterKey.view",style:{marginHorizontal:16,marginTop:16},children:[(0,_r(d[7]).jsx)(_r(d[8]).Text,{testID:"enterKey.text.title",size:"2x",weight:"medium",tx:"importWallet.importByPrivateKey"}),(0,_r(d[7]).jsxs)(r.View,{style:{flexDirection:'row',justifyContent:'space-between',paddingVertical:16,alignItems:'center'},children:[(0,_r(d[7]).jsx)(_r(d[8]).Text,{tx:"importCustomToken.network",size:"base",color:p.label}),(0,_r(d[7]).jsxs)(r.TouchableOpacity,{style:{flexDirection:'row',backgroundColor:p.dark2,borderRadius:12,padding:8},onPress:function(){return b(!0)},children:[(0,_r(d[7]).jsx)(_r(d[9]).CryptoIcon,{symbol:h.currency,chainNumber:h.id,namespace:h.namespace,size:20}),(0,_r(d[7]).jsx)(_r(d[8]).Text,{text:h.name,style:{marginHorizontal:8}}),(0,_r(d[7]).jsx)(_r(d[8]).Icon,{icon:"caret-down",size:20,color:p.label})]})]}),(0,_r(d[7]).jsx)(_r(d[8]).Text,{testID:"enterKey.text.description",tx:"importWallet.privateKeyDescription",size:"base",style:{marginVertical:16,color:p.label}}),(0,_r(d[7]).jsx)(_r(d[8]).TextInput,{testID:"enterKey.textInput",isPassword:!0,onSubmitEditing:function(){return i({privateKey:o,chainId:l})},onChangeText:function(e){var t=e.trim(),r=t.startsWith('0x')?t.slice(2):t;/^[a-fA-F0-9]{64}$/.test(r)?(a(t),i({privateKey:t,chainId:l})):a(e)},value:o,placeholder:u('importWallet.privateKey'),placeholderTextColor:p.label}),(0,_r(d[7]).jsx)(_r(d[10]).BottomModal,{isOpen:x,onClose:function(){return b(!1)},titleTx:"importCustomToken.chooseNetwork",backgroundColor:p.background2,children:(0,_r(d[7]).jsx)(r.View,{style:{paddingHorizontal:16},children:_r(d[6]).SUPPORTED_CHAINS.map((function(e){return(0,_r(d[7]).jsxs)(r.TouchableOpacity,{onPress:function(){s(e.chainId),b(!1)},style:{flexDirection:'row',paddingVertical:16},children:[(0,_r(d[7]).jsx)(_r(d[9]).CryptoIcon,{symbol:e.currency,chainNumber:e.id,namespace:e.namespace,size:24}),(0,_r(d[7]).jsx)(_r(d[8]).Text,{text:e.name,style:{marginLeft:16}})]},e.chainId)}))})})]})}))}),4737,[20,34,140,18,686,3165,1474,180,3617,4044,3896]);
|
|
@@ -5167,7 +5167,7 @@ __d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0
|
|
|
5167
5167
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SwapHeaderComponent=void 0;r(d[0])(r(d[1]));var t=r(d[2]);e.SwapHeaderComponent=function(o){var n=o.sendTokenAddress,s=o.receivedTokenAddress,l=o.sentHexAmount,x=o.receivedHexAmount,c=o.chainId,h=(0,r(d[3]).useTheme)().colors,w=r(d[4]).tokenDataService.getToken({chainId:c,address:n}),u=r(d[4]).tokenDataService.getToken({chainId:c,address:s}),j=r(d[5]).BlockChainUtils.toFixed(r(d[5]).BlockChainUtils.hexToAmount(l)),y=r(d[5]).BlockChainUtils.toFixed(r(d[5]).BlockChainUtils.hexToAmount(x));return(0,r(d[6]).jsxs)(t.View,{children:[(0,r(d[6]).jsx)(t.View,{style:{borderBottomWidth:1,borderColor:h.border,marginBottom:16}}),(0,r(d[6]).jsx)(r(d[7]).Text,{preset:"bold",tx:'confirmTransactionScreen.swap',size:"base",style:{marginBottom:16}}),(0,r(d[6]).jsxs)(t.View,{style:{flex:1,flexDirection:'column',width:'100%',alignItems:'center'},children:[(0,r(d[6]).jsxs)(t.View,{style:{alignItems:'center',justifyContent:'space-between',flexDirection:'row'},children:[(0,r(d[6]).jsxs)(t.View,{style:{flexDirection:'row'},children:[(0,r(d[6]).jsx)(r(d[8]).TokenIcon,{token:w}),(0,r(d[6]).jsxs)(t.View,{style:{marginLeft:12},children:[(0,r(d[6]).jsx)(r(d[7]).Text,{text:"Swapping",weight:"medium",size:"base",color:h.label}),(0,r(d[6]).jsx)(r(d[7]).Text,{text:null==w?void 0:w.symbol,color:h.text,size:"md",weight:"medium"})]})]}),(0,r(d[6]).jsx)(r(d[7]).Text,{text:j+" "+(null==w?void 0:w.symbol),size:"md",weight:"medium",style:{flex:1,textAlign:'right'}})]}),(0,r(d[6]).jsx)(r(d[7]).Icon,{icon:"caret-down",color:h.label,size:24}),(0,r(d[6]).jsxs)(t.View,{style:{alignItems:'center',justifyContent:'space-between',flexDirection:'row'},children:[(0,r(d[6]).jsxs)(t.View,{style:{flexDirection:'row'},children:[(0,r(d[6]).jsx)(r(d[8]).TokenIcon,{token:u}),(0,r(d[6]).jsxs)(t.View,{style:{marginLeft:12},children:[(0,r(d[6]).jsx)(r(d[7]).Text,{text:"Receiving",weight:"medium",size:"base",color:h.label}),(0,r(d[6]).jsx)(r(d[7]).Text,{text:null==u?void 0:u.symbol,color:h.text,size:"md",weight:"medium"})]})]}),(0,r(d[6]).jsx)(r(d[7]).Text,{text:y+" "+(null==u?void 0:u.symbol),size:"md",weight:"medium",style:{flex:1,textAlign:'right'}})]})]})]})}}),4857,[20,140,18,3165,2812,1058,180,3617,4044]);
|
|
5168
5168
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.TransactionData=void 0;var e=_r(d[0])(_r(d[1])),t=o(_r(d[2])),r=_r(d[3]),n=o(_r(d[4]));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var i={code:"function anonymous(){const{withTiming,bin,showTransactionData}=this.__closure;return withTiming(bin(showTransactionData));}"},c={code:"function anonymous(){const{interpolate,showTransactionDataAnim}=this.__closure;return{transform:[{rotate:interpolate(showTransactionDataAnim.value,[0,1],[0,90])+\"deg\"}]};}"};_e.TransactionData=function(a){var o,s=a.data,l=a.decodedData,u=(0,_r(d[5]).useTheme)().colors,f=(0,t.useState)(!1),p=(0,e.default)(f,2),b=p[0],h=p[1],y=(0,t.useState)(!0),T=(0,e.default)(y,2),w=T[0],_=T[1],x=(0,n.useDerivedValue)(((o=function(){return(0,n.withTiming)((0,_r(d[6]).bin)(b))}).__closure={withTiming:n.withTiming,bin:_r(d[6]).bin,showTransactionData:b},o.__initData=i,o.__workletHash=6409535870300,o)),D=(0,n.useAnimatedStyle)((function(){var e=function(){return{transform:[{rotate:(0,n.interpolate)(x.value,[0,1],[0,90])+"deg"}]}};return e.__closure={interpolate:n.interpolate,showTransactionDataAnim:x},e.__initData=c,e.__workletHash=0xbf5028147f2,e})(),[]),j={borderWidth:1,borderRadius:12,borderColor:u.border,backgroundColor:(0,_r(d[7]).colorTransparency)(u.dark3,40),marginBottom:16,padding:16};return(0,_r(d[8]).jsxs)(r.View,{style:[j],children:[(0,_r(d[8]).jsxs)(r.TouchableOpacity,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},onPress:function(){h((function(e){return!e})),r.LayoutAnimation.configureNext({duration:250,update:{type:r.LayoutAnimation.Types.easeInEaseOut}})},children:[(0,_r(d[8]).jsx)(_r(d[9]).Text,{preset:"label",tx:"confirmTransactionScreen.transactionData"}),(0,_r(d[8]).jsx)(n.default.View,{style:D,children:(0,_r(d[8]).jsx)(_r(d[9]).Icon,{icon:"caret-right",color:u.white})})]}),b&&(0,_r(d[8]).jsxs)(r.View,{children:[(0,_r(d[8]).jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center',marginVertical:16},children:[(0,_r(d[8]).jsx)(r.TouchableOpacity,{onPress:function(){_(!0)},style:{backgroundColor:w?(0,_r(d[7]).colorTransparency)(u.primary,20):u.background,paddingHorizontal:16,paddingVertical:8,borderRadius:50,borderWidth:w?1:0,borderColor:w?u.link:u.border,marginRight:16},children:(0,_r(d[8]).jsx)(_r(d[9]).Text,{tx:'confirmTransactionScreen.rawData',color:w?u.link:u.label})}),(0,_r(d[8]).jsx)(r.TouchableOpacity,{onPress:function(){_(!1)},style:{backgroundColor:w?u.background:(0,_r(d[7]).colorTransparency)(u.primary,20),paddingHorizontal:16,paddingVertical:8,borderRadius:50,borderWidth:w?0:1,borderColor:w?u.border:u.link},children:(0,_r(d[8]).jsx)(_r(d[9]).Text,{tx:'confirmTransactionScreen.decode',color:w?u.label:u.link})})]}),w?(0,_r(d[8]).jsx)(_r(d[9]).Text,{text:s}):(0,_r(d[8]).jsx)(_r(d[10]).TransactionDataDecode,{rawData:s,data:l})]})]})}}),4858,[20,34,140,18,3932,3165,4700,3166,180,3617,4859]);
|
|
5169
5169
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionDataDecode=void 0;r(d[0])(r(d[1]));var t=r(d[2]),n=(e.TransactionDataDecode=function(s){var c,o=s.data,l=s.rawData,x=(0,r(d[3]).useTheme)().translate;if(null==o||null==(c=o.params)||!c.length){try{if((0,r(d[4]).convertHexToUtf8)(l)!==l)return(0,r(d[5]).jsx)(r(d[6]).Text,{text:(0,r(d[4]).convertHexToUtf8)(l)})}catch(t){}return(0,r(d[5]).jsx)(r(d[6]).Text,{preset:"label",tx:"confirmTransactionScreen.cannotDecodeData"})}return(0,r(d[5]).jsxs)(t.View,{children:[(0,r(d[5]).jsx)(n,{label:!0,text1:'#',text2:x('confirmTransactionScreen.decoded_data.name'),text3:x('confirmTransactionScreen.decoded_data.type'),text4:x('confirmTransactionScreen.decoded_data.data')}),o.params.map((function(t,s){return(0,r(d[5]).jsx)(n,{text1:s.toString(),text2:t.name,text3:t.type,text4:t.value,copyable:'address'===t.type},s)}))]})},function(n){var s=n.label,c=n.text1,o=n.text2,l=n.text3,x=n.text4,f=n.copyable,j=(0,r(d[7]).useMixins)().copyToClipboard,u={preset:s?'label':'bold',size:'sm',numberOfLines:1,ellipsizeMode:'middle'};return(0,r(d[5]).jsxs)(t.View,{style:{flexDirection:'row',alignItems:'center',marginVertical:8},children:[(0,r(d[5]).jsx)(t.View,{style:{flex:1,justifyContent:'center',alignItems:'center'},children:(0,r(d[5]).jsx)(r(d[6]).Text,Object.assign({text:c},u))}),(0,r(d[5]).jsx)(t.View,{style:{flex:3,justifyContent:'center',marginHorizontal:8},children:(0,r(d[5]).jsx)(r(d[6]).Text,Object.assign({text:o},u))}),(0,r(d[5]).jsx)(t.View,{style:{flex:3,justifyContent:'center',marginHorizontal:8},children:(0,r(d[5]).jsx)(r(d[6]).Text,Object.assign({text:l},u))}),(0,r(d[5]).jsx)(t.View,{style:{flex:7},children:(0,r(d[5]).jsxs)(t.TouchableOpacity,{disabled:!f,onPress:function(){return j(x)},style:{flex:1,justifyContent:'flex-end',alignItems:'center',flexDirection:'row'},children:[(0,r(d[5]).jsx)(r(d[6]).Text,Object.assign({text:x},u)),f&&(0,r(d[5]).jsx)(r(d[6]).Icon,{icon:"copy",size:16})]})})]})})}),4859,[20,140,18,3165,3296,180,3617,3149]);
|
|
5170
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConfirmDAppTransactionStatusScreen=void 0;var e=_r(d[0])(_r(d[1])),t=a(_r(d[2])),n=_r(d[3]),r=_r(d[0])(_r(d[4])),i=a(_r(d[5]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}_e.ConfirmDAppTransactionStatusScreen=function(o){var a,s=o.navigation,c=o.route.params||{},l=c.sessionRequest,u=c.injectedRequest,f=c.walletId,p=c.chainId,y=(0,_r(d[6]).useMixins)().notify,
|
|
5170
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConfirmDAppTransactionStatusScreen=void 0;var e=_r(d[0])(_r(d[1])),t=a(_r(d[2])),n=_r(d[3]),r=_r(d[0])(_r(d[4])),i=a(_r(d[5]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}_e.ConfirmDAppTransactionStatusScreen=function(o){var a,s=o.navigation,c=o.route.params||{},l=c.sessionRequest,u=c.injectedRequest,f=c.walletId,p=c.chainId,y=(0,_r(d[6]).useMixins)().notify,h=(0,_r(d[7]).useTheme)().translate,v=(0,_r(d[8]).useStores)().account,S=(a=(0,e.default)((function*(){try{var e=v.wallets.find((function(e){return e.id===f}));if(!e)return y('success','Wallet not found'),void s.goBack();var t=yield e.getPrivateKeyPairByChain({chainId:p}),n=!1;l?n=(yield _r(d[9]).walletConnectService.approve(l,t)).isSuccess:u&&(n=(yield _r(d[10]).injectedWalletService.approve(u,t)).isSuccess),n?y('success',h('common.done')):y('error',h('error.somethingWentWrong'))}catch(e){_r(d[11]).Logger.error(e),y('error',h('error.somethingWentWrong'))}s.goBack()})),function(){return a.apply(this,arguments)});return(0,t.useEffect)((function(){S()}),[]),(0,_r(d[12]).jsxs)(_r(d[13]).Screen,{safeAreaEdges:['top'],contentContainerStyle:{justifyContent:'center'},children:[(0,_r(d[12]).jsx)(i.default.View,{entering:i.FadeIn,style:{alignSelf:'center'},children:(0,_r(d[12]).jsx)(r.default,{source:_r(d[14]).SENDING_WALLET_CONNECT,autoPlay:!0,loop:!0,style:{width:64,height:64}})}),(0,_r(d[12]).jsx)(n.View,{style:{alignItems:'center'},children:(0,_r(d[12]).jsxs)(i.default.View,{entering:i.FadeIn,style:{alignSelf:'center'},children:[(0,_r(d[12]).jsx)(_r(d[13]).Text,{tx:"confirmTransactionScreen.inProgress",style:{marginTop:32,marginBottom:4,alignSelf:'center'},preset:"bold",size:"x"}),(0,_r(d[12]).jsx)(i.default.View,{entering:i.ZoomIn.delay(500),style:{alignSelf:'center'},children:(0,_r(d[12]).jsx)(_r(d[13]).Text,{tx:"confirmTransactionScreen.waitMinute",preset:"label"})})]})})]})}}),4860,[20,316,140,18,3901,3932,3149,3165,701,3180,3449,1413,180,3617,3906]);
|
|
5171
5171
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectTokenScreen=void 0;r(d[0])(r(d[1])),e.SelectTokenScreen=(0,r(d[2]).observer)((function(n){var o=(0,r(d[3]).useStores)().userStore,t=n.navigation;return(0,r(d[4]).jsx)(r(d[5]).Screen,{safeAreaEdges:['top'],header:(0,r(d[4]).jsx)(r(d[5]).Header,{leftIcon:"arrow-left",titleTx:"chooseToken.chooseTokenToSend",onLeftPress:function(){return(0,r(d[6]).goBack)()}}),padding:!0,children:(0,r(d[4]).jsx)(r(d[7]).TokenList,{onSelectToken:function(n){var o={};o.token=n,t.replace('sendTokenReceipientSelect',{sendParams:o})},selectedWallet:o.selectedAccount.selectedWallet})})}))}),4861,[20,140,686,701,180,3617,631,4690]);
|
|
5172
5172
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ListTokenAmountByChainScreen=void 0;var e=_r(d[0])(_r(d[1])),n=_r(d[0])(_r(d[2])),t=a(_r(d[3])),r=_r(d[4]),o=a(_r(d[5]));function i(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(i=function(e){return e?t:n})(e)}function a(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i(n);if(t&&t.has(e))return t.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}_e.ListTokenAmountByChainScreen=function(i){var a,u,l=(0,_r(d[6]).useTheme)().colors,c=(0,_r(d[7]).useStores)().userStore,s=i.navigation,f=i.route.params||{},y=f.symbol,p=f.id,h=c.selectedAccount,v=h.selectedWallet,j=h.currency,x=(0,t.useState)(''),b=(0,n.default)(x,2),k=b[0],I=b[1],S=(0,t.useState)([]),T=(0,n.default)(S,2),w=T[0],C=T[1],A=(0,t.useState)([]),O=(0,n.default)(A,2),P=O[0],_=O[1],L=(0,t.useState)(!1),z=(0,n.default)(L,2),B=z[0],H=z[1],D=k.trim().toLowerCase(),E=_r(d[8]).SUPPORTED_CHAINS.filter((function(e){return e.name.toLocaleLowerCase().includes(D)})),M=(a=(0,e.default)((function*(){var e=yield _r(d[9]).tokenRateService.allToCurrencyValue(P.map((function(e){return Object.assign({},e,{value:'1'})})),j.name);C(e)})),function(){return a.apply(this,arguments)}),V=(u=(0,e.default)((function*(){H(!0);var n,t=yield Promise.all(v.tokens.map((n=(0,e.default)((function*(e){var n=e.symbol.toLowerCase().includes(D),t=e.name.toLowerCase().includes(D),r=E.some((function(n){return n.chainId===e.chainId}));if(e.symbol===y&&(n||t||r)){var o=yield _r(d[10]).coinGeckoService.getId(e);return p===o}return!1})),function(e){return n.apply(this,arguments)}))),r=v.tokens.filter((function(e,n){return t[n]})).sort((function(e,n){return _r(d[11]).BlockChainUtils.toBigNumber(n.usdAmount||0).comparedTo(e.usdAmount||0)}));_(r),H(!1)})),function(){return u.apply(this,arguments)});return(0,t.useEffect)((function(){P.length>0&&M()}),[P]),(0,t.useEffect)((function(){var e=setTimeout((function(){V()}),100);return function(){return clearTimeout(e)}}),[k]),(0,_r(d[12]).jsxs)(_r(d[13]).Screen,{safeAreaEdges:['top'],header:(0,_r(d[12]).jsx)(_r(d[13]).Header,{leftIcon:"arrow-left",onLeftPress:function(){return(0,_r(d[14]).goBack)()},children:(0,_r(d[12]).jsxs)(r.View,{style:{flex:1,alignItems:'center',flexDirection:'row',justifyContent:'center'},children:[(0,_r(d[12]).jsx)(_r(d[15]).CryptoIcon,{symbol:y,size:40}),(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:y,style:{marginLeft:8}})]}),rightIcon:"arrow-left",rightIconColor:l.background}),children:[(0,_r(d[12]).jsx)(t.Suspense,{fallback:(0,_r(d[12]).jsx)(r.ActivityIndicator,{size:"small",style:{marginTop:16}}),children:(0,_r(d[12]).jsx)(_r(d[16]).SearchBar,{placeholderTx:"common.search",value:k,onSearch:I,style:{marginHorizontal:16,marginTop:16}})}),B?(0,_r(d[12]).jsx)(r.ActivityIndicator,{size:"small",style:{marginTop:16}}):(0,_r(d[12]).jsx)(r.FlatList,{data:P,keyExtractor:function(e){return e.chainId+e.address},ItemSeparatorComponent:function(){return(0,_r(d[12]).jsx)(r.View,{style:{height:8}})},contentContainerStyle:{paddingTop:12,paddingHorizontal:16},renderItem:function(e){var n,i,a=e.item,u=e.index;return(0,_r(d[12]).jsx)(t.Suspense,{fallback:(0,_r(d[12]).jsx)(r.ActivityIndicator,{size:"small",style:{marginTop:16}}),children:(0,_r(d[12]).jsx)(o.default.View,{entering:o.FadeIn.delay(50*u),exiting:o.FadeOut,children:(0,_r(d[12]).jsx)(_r(d[17]).TokenAmount,{chainId:null==a?void 0:a.chainId,symbol:null==a?void 0:a.name,balance:null==a?void 0:a.balance,rate:null==(n=w.find((function(e){return e.symbol===(null==a?void 0:a.symbol)})))?void 0:n.currencyValue,usdAmount:a.usdAmount,change24Hr:null==(i=w.find((function(e){return e.symbol===(null==a?void 0:a.symbol)})))?void 0:i.change24Hr,onPress:function(){s.navigate('tokenDetail',{token:a})},icon:(0,_r(d[12]).jsx)(_r(d[15]).TokenIcon,{token:a})})})})}})]})}}),4862,[20,316,34,140,18,3932,3165,701,1474,2812,2819,1058,180,3617,631,4044,3896,4863]);
|
|
5173
5173
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.TokenAmount=void 0;var e=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var o=s?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(i,l,o):i[l]=e[l]}return i.default=e,r&&r.set(e,i),i})(_r(d[0])),t=_r(d[1]),r=_r(d[2])(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.TokenAmount=function(n){var i,s,l,o=(0,_r(d[4]).useTheme)(),a=o.colors,c=o.translate,u=(0,_r(d[5]).useMixins)().toFixed,f=(0,_r(d[6]).useStores)().account,x=n.symbol,p=n.rate,y=n.balance,b=n.usdAmount,j=n.onPress,w=n.icon,h=n.style,v=n.chainId,T=n.change24Hr,k=null==(i=(0,_r(d[7]).getChainFromId)({chainId:v}))?void 0:i.isTestnet,_=null==(s=f.currency)?void 0:s.symbol,I=null==(l=f.currency)?void 0:l.name,O='usd'===I,V=null==T?void 0:T.startsWith('-'),D=(0,e.useMemo)((function(){if(!T)return'';var e=u(T,2);return e.includes('<')||'0'===e?'':V?e.substring(1)+"%":e+"%"}),[T]),P=_r(d[8]).BlockChainUtils.toBigNumber(p).eq(0);return(0,_r(d[9]).jsxs)(t.TouchableOpacity,{style:[{flexDirection:'row',alignItems:'center',paddingVertical:12,paddingHorizontal:16,justifyContent:'space-between',backgroundColor:a.dark2,borderRadius:12},h],onPress:j,children:[(0,_r(d[9]).jsxs)(t.View,{style:{flexDirection:'row',alignItems:'center',flex:2},children:[w,(0,_r(d[9]).jsxs)(t.View,{style:{marginLeft:8,flex:P?void 0:1},children:[(0,_r(d[9]).jsx)(_r(d[10]).Text,{text:x+" "+(k?'(Testnet)':'')}),(0,_r(d[9]).jsxs)(t.View,{style:{flexDirection:'row',alignItems:'center',flexWrap:'wrap'},children:[(0,_r(d[9]).jsx)(_r(d[10]).Text,{preset:"label",text:P?c('walletDetailScreen.priceNotTracked'):""+_r(d[11]).tokenRateService.getValueDisplayForCurrency(p,I).display,size:"base",style:{paddingVertical:1}}),!!D&&(0,_r(d[9]).jsxs)(t.View,{style:{flexDirection:'row',marginLeft:6,alignItems:'center'},children:[(0,_r(d[9]).jsx)(_r(d[10]).Icon,{icon:"arrow",color:V?a.error:a.success,style:{transform:[{rotate:V?'180deg':'0deg'}]},size:8}),(0,_r(d[9]).jsx)(_r(d[10]).Text,{preset:"label",text:" "+D,size:"base",style:{paddingVertical:1,color:V?a.error:a.success}})]})]})]})]}),(0,_r(d[9]).jsxs)(t.View,{style:{flex:1,alignItems:'flex-end',maxWidth:'45%'},children:[(0,_r(d[9]).jsx)(_r(d[10]).Text,{text:u(y,3)}),(0,_r(d[9]).jsx)(_r(d[10]).Text,{text:P?'':""+_+(O?u(b,3):u((0,r.default)(y).multipliedBy(p),0)),size:"base",preset:"label"})]})]})}}),4863,[140,18,20,1059,3165,3149,701,1474,1058,180,3617,2812]);
|
|
@@ -5203,7 +5203,7 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Ob
|
|
|
5203
5203
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConfirmOldPinScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r})(_r(d[4]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}_e.ConfirmOldPinScreen=function(){var o,a=(0,_r(d[5]).useTheme)().colors,i=(0,_r(d[6]).useStores)().userStore,s=(0,_r(d[7]).useNavigation)(),u=(0,r.useState)(''),c=(0,t.default)(u,2),l=c[0],f=c[1],p=(0,r.useState)(!1),y=(0,t.default)(p,2),h=y[0],P=y[1],x=i.selectedAccount,j=6===l.length,v=(o=(0,e.default)((function*(){h&&P(!1),j&&((yield _r(d[8]).AccountHelper.hashPasscode(l))!==x.passcodeHash?P(!0):s.navigate('enterNewPin'))})),function(){return o.apply(this,arguments)});return(0,r.useEffect)((function(){v()}),[l]),(0,_r(d[9]).jsxs)(_r(d[10]).Screen,{padding:!0,safeAreaEdges:['top'],header:(0,_r(d[9]).jsx)(_r(d[10]).Header,{leftIcon:"arrow-left",onLeftPress:_r(d[11]).goBack,titleTx:"settings.securityManagement.changePin",rightTx:"common.continue",rightTextColor:j?a.primary:a.label,onRightPress:v}),children:[(0,_r(d[9]).jsx)(_r(d[10]).Text,{tx:"settings.securityManagement.enterCurrentPin",size:"2x"}),(0,_r(d[9]).jsx)(n.default,{pinCount:6,onCodeFilled:f,style:{justifyContent:'space-between',marginTop:24}}),h&&(0,_r(d[9]).jsx)(_r(d[10]).Text,{tx:"settings.securityManagement.error",size:"base",color:a.error})]})}}),4893,[20,316,34,3931,140,3165,701,3450,3541,180,3617,631]);
|
|
5204
5204
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ChangePinScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[3]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}_e.ChangePinScreen=function(){var r=(0,_r(d[4]).useTheme)().colors,o=(0,_r(d[5]).useNavigation)(),i=(0,n.useState)(''),a=(0,e.default)(i,2),u=a[0],s=a[1],f=6===u.length,c=function(){f&&o.navigate('confirmNewPin',{newCode:u})};return(0,n.useEffect)((function(){c()}),[u]),(0,_r(d[6]).jsxs)(_r(d[7]).Screen,{padding:!0,safeAreaEdges:['top'],header:(0,_r(d[6]).jsx)(_r(d[7]).Header,{leftIcon:"arrow-left",onLeftPress:_r(d[8]).goBack,titleTx:"settings.securityManagement.setPin",rightTx:"common.continue",rightTextColor:f?r.primary:r.label,onRightPress:c}),KeyboardAvoidingViewProps:{enabled:!_r(d[9]).IS_ANDROID},children:[(0,_r(d[6]).jsx)(_r(d[7]).Text,{tx:"settings.securityManagement.enterNewPin",size:"2x"}),(0,_r(d[6]).jsx)(t.default,{pinCount:6,onCodeFilled:s,style:{justifyContent:'space-between',marginTop:24}})]})}}),4894,[20,34,3931,140,3165,3450,180,3617,631,628]);
|
|
5205
5205
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConfirmNewPinScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r})(_r(d[4]));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}_e.ConfirmNewPinScreen=function(s){var o,a=(0,_r(d[5]).useTheme)(),i=a.colors,u=a.translate,c=(0,_r(d[6]).useMixins)().notify,f=(0,_r(d[7]).useNavigation)(),l=(0,_r(d[8]).useStores)().userStore,p=(s.route.params||{}).newCode,y=(0,r.useState)(''),h=(0,t.default)(y,2),P=h[0],x=h[1],b=(0,r.useState)(!1),v=(0,t.default)(b,2),j=v[0],w=v[1],M=6===P.length,_=l.selectedAccount,O=(o=(0,e.default)((function*(){if(j&&w(!1),M)if(P===p){var e=yield _r(d[9]).AccountHelper.hashPasscode(P);_.setPasscodeHash(e),c('success',u('settings.securityManagement.success')),f.navigate('bottomTabs',{screen:'settings'})}else w(!0)})),function(){return o.apply(this,arguments)});return(0,r.useEffect)((function(){O()}),[P]),(0,_r(d[10]).jsxs)(_r(d[11]).Screen,{padding:!0,safeAreaEdges:['top'],header:(0,_r(d[10]).jsx)(_r(d[11]).Header,{leftIcon:"arrow-left",onLeftPress:_r(d[12]).goBack,titleTx:"settings.securityManagement.changePin",rightTx:"common.continue",rightTextColor:M?i.primary:i.label,onRightPress:O}),KeyboardAvoidingViewProps:{enabled:!_r(d[13]).IS_ANDROID},children:[(0,_r(d[10]).jsx)(_r(d[11]).Text,{tx:"settings.securityManagement.confirmPin",size:"2x"}),(0,_r(d[10]).jsx)(n.default,{pinCount:6,onCodeFilled:x,style:{justifyContent:'space-between',marginTop:24}}),j&&(0,_r(d[10]).jsx)(_r(d[11]).Text,{tx:"settings.securityManagement.errorMatch",size:"base",color:i.error})]})}}),4895,[20,316,34,3931,140,3165,3149,3450,701,3541,180,3617,631,628]);
|
|
5206
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SettingScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),i=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=
|
|
5206
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SettingScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),i=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(i,o,a):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i})(_r(d[4])),r=_r(d[5]);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}_e.SettingScreen=(0,_r(d[6]).observer)((function(){var s,o,a,c=(0,_r(d[7]).useTheme)(),l=c.colors,u=c.translate,f=(0,_r(d[8]).useNavigation)(),p=(0,_r(d[9]).useMixins)(),b=p.detectBiometricType,y=p.promptBiometric,x=(0,_r(d[10]).useStores)().userStore,h=(0,_r(d[9]).useMixins)().notify,j=(0,i.useState)(''),v=(0,t.default)(j,2),w=v[0],k=v[1],S=x.selectedAccount,T=S.faceIdEnabled,B='vi'!==n.default.currentLocale(),R=!!w,I=!!S.passcodeHash,O=_r(d[11]).BUNDLE_VERSION||(0,_r(d[12]).getVersion)(),P=(o=(0,e.default)((function*(){var e=yield b();e.available&&k(e.biometryType)})),function(){return o.apply(this,arguments)}),L=(a=(0,e.default)((function*(){R?S.passcodeHash?yield y({message:u('authentication.authenticateBy',{biometricType:w}),onFail:_r(d[13]).goBack,onSuccess:function(){return S.setFaceIdUnlock(!T)}}):f.navigate('settingsStack',{screen:'enterNewPin'}):h('info',u('error.biometricNotSupport'),1e3)})),function(){return a.apply(this,arguments)});(0,i.useEffect)((function(){P()}),[]);var _=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;return(0,_r(d[14]).jsxs)(r.TouchableOpacity,{onPress:n,style:Object.assign({flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingVertical:12,paddingHorizontal:16,backgroundColor:l.dark2},i),children:[(0,_r(d[14]).jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[14]).jsx)(_r(d[15]).Icon,{icon:e,style:{marginRight:12},color:l.label}),(0,_r(d[14]).jsx)(_r(d[15]).Text,{text:u(t),size:"base"})]}),(0,_r(d[14]).jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[14]).jsx)(_r(d[15]).Text,{text:s}),(0,_r(d[14]).jsx)(_r(d[15]).Icon,{icon:"caret-right",size:20,color:l.label,style:{marginLeft:12}})]})]})};return(0,_r(d[14]).jsxs)(_r(d[15]).Screen,{safeAreaEdges:['top'],padding:!0,header:(0,_r(d[14]).jsx)(_r(d[15]).Header,{titleTx:"settings.title.setting",style:{marginBottom:16}}),backgroundColor:l.background2,footer:(0,_r(d[14]).jsxs)(r.View,{style:{marginTop:8,flexDirection:'row',alignItems:'center',alignSelf:'center',paddingHorizontal:16},children:[(0,_r(d[14]).jsx)(_r(d[15]).Text,{text:"Version "+O+". ",size:"sm",color:l.label,style:{textAlign:'center'}}),(0,_r(d[14]).jsx)(_r(d[15]).Text,{text:u('onBoardScreen.supportedBy'),size:"sm",color:l.label}),(0,_r(d[14]).jsx)(_r(d[16]).ReadyLogo,{preset:"default",style:{width:20,height:20,marginLeft:6},resizeMode:"contain",source:0})]}),children:[_('identification-badge','settings.title.addressBook',(function(){return f.navigate('settingsStack',{screen:'addressBook'})}),{borderRadius:12,marginBottom:18},null),_('coin','settings.currency',(function(){return f.navigate('settingsStack',{screen:'setCurrency'})}),{borderRadius:12,marginBottom:18},null==(s=S.currency)?void 0:s.name.toUpperCase()),(0,_r(d[14]).jsx)(_r(d[15]).Text,{tx:"settings.title.security",preset:"label",size:"base"}),_('password',I?'settings.securityManagement.changePin':'settings.securityManagement.setPin',(function(){f.navigate('settingsStack',{screen:I?'confirmOldPin':'enterNewPin'})}),{borderTopLeftRadius:12,borderTopRightRadius:12,marginTop:12},null),(0,_r(d[14]).jsxs)(_r(d[14]).Fragment,{children:[(0,_r(d[14]).jsxs)(r.TouchableOpacity,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingVertical:12,paddingHorizontal:16,backgroundColor:l.dark2,borderBottomLeftRadius:12,borderBottomRightRadius:12,marginBottom:12},disabled:R,children:[(0,_r(d[14]).jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[14]).jsx)(_r(d[15]).Icon,{icon:'FaceID'===w?'face-id':'fingerprint',size:24,color:l.disable}),(0,_r(d[14]).jsx)(_r(d[15]).Text,{text:w||(_r(d[17]).IS_IOS?'FaceID':'Biometrics'),size:"base",style:{marginLeft:12},color:R?l.text:l.label})]}),(0,_r(d[14]).jsx)(r.Switch,{value:T,onChange:L,thumbColor:l.white,trackColor:{true:l.primary,false:l.disable},ios_backgroundColor:l.disable,style:{transform:[{scaleX:.8},{scaleY:.8}]}})]}),(0,_r(d[14]).jsx)(_r(d[15]).Text,{tx:"settings.securityManagement.desBiometrics",preset:"label",size:"sm"})]}),_('files','settings.title.termAndPolicy',(function(){return f.navigate('settingsStack',{screen:'termAndPolicy'})}),{borderTopLeftRadius:12,borderTopRightRadius:12,marginTop:12},null),_('seal-warning','settings.termAndPolicy.Risk',(function(){var e="https://ready.io"+(B?'':'/vi')+"/risk";r.Linking.canOpenURL(e)?r.Linking.openURL(e):f.navigate('settingsStack',{screen:'browserMobileView',params:{url:e}})}),{borderBottomLeftRadius:12,borderBottomRightRadius:12,marginBottom:18},null)]})}))}),4896,[20,316,34,3140,140,18,686,3165,3450,3149,701,625,1414,631,180,3617,3896,628]);
|
|
5207
5207
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.AddressBookManagementScreen=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),r=_r(d[3]),n=_r(d[0])(_r(d[4])),o=_r(d[0])(_r(d[5]));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}_e.AddressBookManagementScreen=(0,_r(d[6]).observer)((function(){var s=(0,_r(d[7]).useTheme)(),a=s.colors,i=s.translate,l=(0,_r(d[8]).useStores)().userStore,c=(0,_r(d[9]).useAlert)().Alert,u=(0,t.useState)(null),f=(0,e.default)(u,2),p=f[0],x=f[1],h=(0,t.useState)(!1),y=(0,e.default)(h,2),b=y[0],j=y[1],k=(0,t.useState)(0),w=(0,e.default)(k,2),S=w[0],v=w[1],B=(0,t.useState)(!1),C=(0,e.default)(B,2),_=C[0],L=C[1],T=(0,t.useState)(''),O=(0,e.default)(T,2),M=O[0],A=O[1],I=l.selectedAccount,P=I.addressBook.filter((function(e){return e.name.toLowerCase().includes(M.toLowerCase())||e.address.toLowerCase().includes(M.toLowerCase())})).slice(10*S,10*(S+1)),R=0===I.addressBook.length;return(0,t.useEffect)((function(){L(!1)}),[P]),(0,t.useEffect)((function(){v(0)}),[M]),(0,_r(d[10]).jsxs)(_r(d[11]).Screen,{safeAreaEdges:['top','bottom'],padding:!0,header:(0,_r(d[10]).jsx)(_r(d[11]).Header,{leftIcon:"arrow-left",onLeftPress:_r(d[12]).goBack,titleTx:"settings.title.addressBook"}),footer:(0,_r(d[10]).jsx)(_r(d[11]).Button,{tx:"settings.addressBook.addAddress",onPress:function(){x({name:'',address:''}),j(!0)}}),children:[!R&&(0,_r(d[10]).jsx)(_r(d[13]).SearchBar,{value:M,onSearch:A,placeholderTx:"common.search"}),(0,_r(d[10]).jsx)(r.FlatList,{data:P,keyExtractor:function(e){return e.address},ItemSeparatorComponent:function(){return(0,_r(d[10]).jsx)(r.View,{style:{height:8}})},style:{marginTop:16},contentContainerStyle:{flex:1},ListEmptyComponent:(0,_r(d[10]).jsx)(r.View,{style:{alignSelf:'center',alignItems:'center',marginTop:100},children:M?(0,_r(d[10]).jsx)(_r(d[11]).Text,{tx:"settings.addressBook.noResult",preset:"label",style:{marginTop:24}}):(0,_r(d[10]).jsxs)(_r(d[10]).Fragment,{children:[(0,_r(d[10]).jsx)(n.default,{source:o.default.Image.address_book_empty,style:{height:180,aspectRatio:1,marginBottom:20,marginTop:24},resizeMode:"contain"}),(0,_r(d[10]).jsx)(_r(d[11]).Text,{tx:"settings.addressBook.empty",preset:"label"})]})}),renderItem:function(e){var t=e.item;return(0,_r(d[10]).jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center',borderWidth:1,backgroundColor:a.dark2,borderColor:a.border,borderRadius:8,padding:16,justifyContent:'space-between'},children:[(0,_r(d[10]).jsxs)(r.TouchableOpacity,{style:{flexDirection:'row',flex:1,alignItems:'center',marginRight:16},onPress:function(){x({name:t.name,address:t.address}),j(!0)},children:[(0,_r(d[10]).jsx)(_r(d[11]).Icon,{icon:"wallet",size:24,color:a.label,containerStyle:{padding:8,backgroundColor:a.background2,borderRadius:40,height:40,aspectRatio:1}}),(0,_r(d[10]).jsxs)(r.View,{style:{marginLeft:16,flex:1},children:[(0,_r(d[10]).jsx)(_r(d[11]).Text,{text:t.name,numberOfLines:2,ellipsizeMode:"tail",style:{flexShrink:1,flexGrow:1}}),(0,_r(d[10]).jsx)(_r(d[11]).Text,{text:t.address,numberOfLines:1,ellipsizeMode:"middle",preset:"label",style:{width:'50%',flexShrink:1},size:"base"})]})]}),(0,_r(d[10]).jsx)(_r(d[11]).Icon,{icon:"trash",color:a.error,size:24,containerStyle:{padding:8,backgroundColor:a.redLight,borderRadius:40},onPress:function(){return e=t,void c({title:i('settings.addressBook.del_title'),content:i('settings.addressBook.del_description'),buttons:[{text:i('common.cancel')},{text:i('common.confirm'),action:function(){I.removeAddressFromList(e)}}]});var e}})]})},onEndReached:function(){P.length<I.addressBook.length&&v(S+1)},onEndReachedThreshold:.1,ListFooterComponent:_&&(0,_r(d[10]).jsx)(r.ActivityIndicator,{size:"small",color:a.primary})}),(0,_r(d[10]).jsx)(_r(d[14]).EditAddressModal,{isOpen:b,onClose:function(){return j(!1)},address:null==p?void 0:p.address,name:null==p?void 0:p.name})]})}))}),4897,[20,34,140,18,3894,3060,686,3165,701,4366,180,3617,631,3896,4684]);
|
|
5208
5208
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.TermAndPolicyScreen=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i})(_r(d[2])),n=_r(d[3]);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}_e.TermAndPolicyScreen=function(){var r=(0,_r(d[4]).useTheme)(),i=r.colors,o=r.translate,a=r.lang,l=(0,_r(d[5]).useNavigation)(),s='vi'!==a,c=[{title:o('settings.termAndPolicy.cookies'),url:"https://ready.io"+(s?'':'/vi')+"/cookies"},{title:o('settings.termAndPolicy.terms'),url:"https://ready.io"+(s?'':'/vi')+"/terms"},{title:o('settings.termAndPolicy.terms-wallet'),url:"https://ready.io"+(s?'':'/vi')+"/terms-wallet"},{title:o('settings.termAndPolicy.policy'),url:"https://ready.io"+(s?'':'/vi')+"/policy"}],u=(0,_r(d[6]).useStores)().userStore,p=(0,_r(d[7]).useMixins)().copyToClipboard,f=(0,t.useState)(0),y=(0,e.default)(f,2),v=y[0],x=y[1],b=v>5?[{title:'Get API token',url:'',action:function(){p(u.apiToken)}},{title:'Get FCM token',url:'',action:function(){p(u.fcmToken)}},{title:'Get super app user id',url:'',action:function(){p(u.superAppUserId)}},{title:'Get miniapp account address',url:'',action:function(){var e;p(null==(e=u.selectedAccount)?void 0:e.address)}}]:[{title:'',url:'',action:function(){x(v+1)}}];return(0,_r(d[8]).jsx)(_r(d[9]).Screen,{safeAreaEdges:['top'],padding:!0,header:(0,_r(d[8]).jsx)(_r(d[9]).Header,{leftIcon:"arrow-left",titleTx:"settings.title.termAndPolicy",onLeftPress:_r(d[10]).goBack}),children:(0,_r(d[8]).jsx)(n.FlatList,{style:{marginTop:16},data:c.concat(b),keyExtractor:function(e,t){return t.toString()},ItemSeparatorComponent:function(){return(0,_r(d[8]).jsx)(n.View,{style:{height:8}})},renderItem:function(e){var t=e.item,r=e.index;return t.url?(0,_r(d[8]).jsxs)(n.TouchableOpacity,{style:{paddingHorizontal:16,paddingVertical:16,backgroundColor:i.dark2,borderRadius:12,flexDirection:'row',justifyContent:'space-between',alignItems:'center'},onPress:function(){return e=t.url,void(n.Linking.canOpenURL(e)?n.Linking.openURL(e):l.navigate('browserMobileView',{url:e}));var e},children:[(0,_r(d[8]).jsx)(_r(d[9]).Text,{text:t.title,size:"base"}),(0,_r(d[8]).jsx)(_r(d[9]).Icon,{icon:"caret-right"})]},r):(0,_r(d[8]).jsx)(n.TouchableWithoutFeedback,{onPress:function(){t.action()},children:(0,_r(d[8]).jsxs)(n.View,{style:{paddingHorizontal:16,paddingVertical:16,backgroundColor:i.dark2,borderRadius:12,flexDirection:'row',justifyContent:'space-between',alignItems:'center',opacity:t.title?1:0},children:[(0,_r(d[8]).jsx)(_r(d[9]).Text,{text:t.title,size:"base"}),(0,_r(d[8]).jsx)(_r(d[9]).Icon,{icon:"caret-right"})]},r)})}})})}}),4898,[20,34,140,18,3165,3450,701,3149,180,3617,631]);
|
|
5209
5209
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SelectCurrencyScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),n=_r(d[4]),o=_r(d[0])(_r(d[5])),a=_r(d[0])(_r(d[6]));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}_e.SelectCurrencyScreen=function(){var c=(0,_r(d[7]).useStores)().account,u=(0,_r(d[8]).useTheme)().colors,i=c.currency,s=(0,r.useState)(i),l=(0,t.default)(s,2),f=l[0],y=l[1],p=[{id:'vnd',source:a.default.Icon.Image.vnd,title:'VND',currency:'\u20ab',onPress:function(){y({symbol:'\u20ab',name:'vnd'})}},{id:'usd',source:a.default.Icon.Image.usd,title:'USD',currency:'$',onPress:function(){y({symbol:'$',name:'usd'})}}],b=(0,r.useMemo)((function(){return p.sort((function(e,t){return e.id===i.name?-1:t.id===i.name?1:0}))}),[]),h=f!==i;return(0,_r(d[10]).jsx)(_r(d[11]).Screen,{safeAreaEdges:['top'],backgroundColor:u.background2,header:(0,_r(d[10]).jsx)(_r(d[11]).Header,{leftIcon:"arrow-left",onLeftPress:function(){return(0,_r(d[12]).goBack)()},titleTx:"settings.currency",rightTx:"common.save",rightTextColor:h?u.primary:u.label,onRightPress:function(){f!==i&&(c.setCurrency(f),c.wallets.map((function(t){var r=(0,e.default)(t.tokens);_r(d[9]).tokenBalanceService.calculateWalletBalance(r,f.name).then((function(e){t.setTotalAmount(e.total),t.setTokens(e.tokens)}))})),(0,_r(d[12]).goBack)())}}),style:{paddingHorizontal:16},children:b.map((function(e,t){var r=e.id===f.name;return(0,_r(d[10]).jsxs)(n.TouchableOpacity,{style:{padding:16,backgroundColor:r?u.background2:u.dark2,borderRadius:12,flexDirection:'row',justifyContent:'space-between',marginTop:16,borderColor:r?u.primary:u.dark2,borderWidth:1},onPress:e.onPress,children:[(0,_r(d[10]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[10]).jsx)(o.default,{source:e.source,style:{height:24,width:24,marginRight:16},resizeMode:"contain"}),(0,_r(d[10]).jsx)(_r(d[11]).Text,{text:e.title})]}),(0,_r(d[10]).jsx)(_r(d[11]).Text,{text:e.currency,size:"x",preset:"label"})]},t)}))})}}),4899,[20,23,34,140,18,3894,3060,701,3165,2812,180,3617,631]);
|
|
@@ -5215,72 +5215,73 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
|
5215
5215
|
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]).StyleSheet.create({container:{flex:1,overflow:'hidden'},loadingOrErrorView:{position:'absolute',flex:1,justifyContent:'center',alignItems:'center',height:'100%',width:'100%',backgroundColor:'white'},loadingProgressBar:{height:20},errorText:{fontSize:14,textAlign:'center',marginBottom:2},errorTextTitle:{fontSize:15,fontWeight:'500',marginBottom:10},webView:{backgroundColor:'#ffffff'},flexStart:{alignSelf:'flex-start'},colorRed:{color:'red'}});e.default=t}),4905,[18]);
|
|
5216
5216
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.useWebViewLogic=_e.defaultRenderLoading=_e.defaultRenderError=_e.defaultOriginWhitelist=_e.createOnShouldStartLoadWithRequest=void 0;var e=_r(d[0])(_r(d[1])),n=_r(d[0])(_r(d[2])),t=_r(d[0])(_r(d[3])),r=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u(n);if(t&&t.has(e))return t.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r})(_r(d[4])),o=_r(d[5]),a=_r(d[0])(_r(d[6]));function u(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(u=function(e){return e?t:n})(e)}_e.defaultOriginWhitelist=['http://*','https://*'];var i=function(e){var n=/^[A-Za-z][A-Za-z0-9+\-.]+:(\/\/)?[^/]*/.exec(e);return null===n?'':n[0]},l=function(e){return"^"+(0,t.default)(e).replace(/\\\*/g,'.*')},c=function(e,n){var t=i(n);return e.some((function(e){return new RegExp(e).test(t)}))},s=function(e){return['about:blank'].concat((0,n.default)(e||[])).map(l)},f=_e.createOnShouldStartLoadWithRequest=function(e,n,t){return function(r){var a=r.nativeEvent,u=!0,i=a.url,l=a.lockIdentifier;c(s(n),i)?t&&(u=t(a)):(o.Linking.canOpenURL(i).then((function(e){if(e)return o.Linking.openURL(i);console.warn("Can't open url: "+i)})).catch((function(e){console.warn('Error opening URL: ',e)})),u=!1),e(u,i,l)}};_e.defaultRenderLoading=function(){return(0,_r(d[7]).jsx)(o.View,{style:a.default.loadingOrErrorView,children:(0,_r(d[7]).jsx)(o.ActivityIndicator,{})})},_e.defaultRenderError=function(e,n,t){return(0,_r(d[7]).jsxs)(o.View,{style:a.default.loadingOrErrorView,children:[(0,_r(d[7]).jsx)(o.Text,{style:a.default.errorTextTitle,children:"Error loading page"}),(0,_r(d[7]).jsx)(o.Text,{style:a.default.errorText,children:"Domain: "+e}),(0,_r(d[7]).jsx)(o.Text,{style:a.default.errorText,children:"Error Code: "+n}),(0,_r(d[7]).jsx)(o.Text,{style:a.default.errorText,children:"Description: "+t})]})},_e.useWebViewLogic=function(n){var t=n.startInLoadingState,a=n.onNavigationStateChange,u=n.onLoadStart,i=n.onLoad,l=n.onLoadProgress,c=n.onLoadEnd,s=n.onError,p=n.onHttpErrorProp,v=n.onMessageProp,L=n.onOpenWindowProp,h=n.onRenderProcessGoneProp,E=n.onContentProcessDidTerminateProp,O=n.originWhitelist,b=n.onShouldStartLoadWithRequestProp,P=n.onShouldStartLoadWithRequestCallback,S=(0,r.useState)(t?'LOADING':'IDLE'),w=(0,e.default)(S,2),R=w[0],k=w[1],x=(0,r.useState)(null),y=(0,e.default)(x,2),C=y[0],W=y[1],j=(0,r.useRef)(null),D=(0,r.useCallback)((function(e){null==a||a(e.nativeEvent)}),[a]),T=(0,r.useCallback)((function(e){j.current=e.nativeEvent.url,null==u||u(e),D(e)}),[u,D]),_=(0,r.useCallback)((function(e){e.persist(),s?s(e):console.warn('Encountered an error loading page',e.nativeEvent),null==c||c(e),e.isDefaultPrevented()||(k('ERROR'),W(e.nativeEvent))}),[s,c]),I=(0,r.useCallback)((function(e){null==p||p(e)}),[p]),M=(0,r.useCallback)((function(e){null==h||h(e)}),[h]),V=(0,r.useCallback)((function(e){null==E||E(e)}),[E]),q=(0,r.useCallback)((function(e){null==i||i(e),null==c||c(e);var n=e.nativeEvent.url;'android'===o.Platform.OS&&n!==j.current||k('IDLE'),D(e)}),[i,c,D]),A=(0,r.useCallback)((function(e){null==v||v(e)}),[v]),G=(0,r.useCallback)((function(e){var n=e.nativeEvent.progress;'android'===o.Platform.OS&&1===n&&k((function(e){return'LOADING'===e?'IDLE':e})),null==l||l(e)}),[l]);return{onShouldStartLoadWithRequest:(0,r.useMemo)((function(){return f(P,O,b)}),[O,b,P]),onLoadingStart:T,onLoadingProgress:G,onLoadingError:_,onLoadingFinish:q,onHttpError:I,onRenderProcessGone:M,onContentProcessDidTerminate:V,onMessage:A,onOpenWindow:(0,r.useCallback)((function(e){null==L||L(e)}),[L]),viewState:R,setViewState:k,lastErrorEvent:C}}}),4906,[20,34,23,4907,140,18,4905,180]);
|
|
5217
5217
|
__d((function(g,r,i,a,m,e,d){'use strict';var t=/[|\\{}()[\]^$+*?.-]/g;m.exports=function(n){if('string'!=typeof n)throw new TypeError('Expected a string');return n.replace(t,'\\$&')}}),4907,[]);
|
|
5218
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.MainNavigator=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=n(t);if(a&&a.has(e))return a.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var
|
|
5219
|
-
__d((function(g,
|
|
5220
|
-
__d((function(g,
|
|
5221
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),
|
|
5222
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),
|
|
5223
|
-
__d((function(g,
|
|
5224
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.
|
|
5225
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.
|
|
5226
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.
|
|
5227
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.
|
|
5228
|
-
__d((function(g,
|
|
5229
|
-
__d((function(g,
|
|
5230
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.
|
|
5231
|
-
__d((function(g,
|
|
5232
|
-
__d((function(g,
|
|
5233
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.
|
|
5234
|
-
__d((function(g,
|
|
5235
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),
|
|
5236
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
5237
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
5238
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
5239
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
5240
|
-
__d((function(g,
|
|
5241
|
-
__d((function(g,
|
|
5242
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
5243
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),
|
|
5244
|
-
__d((function(g,
|
|
5245
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=
|
|
5246
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!
|
|
5218
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.MainNavigator=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=n(t);if(a&&a.has(e))return a.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,a&&a.set(e,r),r})(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(n=function(e){return e?a:t})(e)}var a=(0,_r(d[3]).createNativeStackNavigator)();_e.MainNavigator=(0,_r(d[4]).observer)((function(){var n=(0,_r(d[5]).useStores)().account,r=(0,_r(d[6]).useWalletHelperMixins)().getGasFeeFromTxn;return(0,t.useEffect)((function(){var t,a,o=_r(d[7]).EventBus.createListener(_r(d[7]).AppEventType.TRANSACTION_RESOLVED,(t=(0,e.default)((function*(t){try{var a,o=t.chainId,i=t.hash,s=t.walletAddresses,c=t.isNativeTxn,u=o.startsWith('tron:'),l=s.map((function(e){return e.toLowerCase()}));if(null==(a=n.wallets)||!a.length)return;var f=(0,_r(d[8]).getChainFromId)({chainId:o}),v=n.wallets.filter((function(e){return l.includes(u?e.tronEvmAddress.toLowerCase():e.address.toLowerCase())})),p=yield _r(d[9]).walletHistoryService.getByHash({chainId:o,hash:i});if(p.status!==_r(d[10]).TransactionStatus.CONFIRMED)return;v.forEach((h=(0,e.default)((function*(e){var t,a=p.to.toLowerCase()===(u?e.tronEvmAddress.toLowerCase():e.address.toLowerCase()),i=e.tokens.filter((function(e){return e.chainId===o}));if(yield e.loadTokensByChain({chainNumber:f.id,namespace:f.namespace,currency:n.currency.name}),c){var s=[];e.tokens.filter((function(e){return e.chainId===o})).forEach((function(e,t){if(e.balance===i[t].balance){var n=Object.assign({},e);if(n.address===p.sentTokenAddress){var o=_r(d[11]).BlockChainUtils.toBigNumber(n.balance),c=_r(d[11]).BlockChainUtils.hexToAmount(p.sentAmount,p.sentDecimals);n.balance=a?o.plus(c).toString(10):o.minus(c).toString(10)}else n.address===p.receivedTokenAddress&&(n.balance=_r(d[11]).BlockChainUtils.toBigNumber(n.balance).plus(_r(d[11]).BlockChainUtils.hexToAmount(p.sentAmount,p.sentDecimals)).toString(10));if(n.address===f.defaultToken.address&&!a){var u=r(p);n.balance=_r(d[11]).BlockChainUtils.toBigNumber(n.balance).minus(u).toString(10)}s.push(n)}else s.push(e)}));var l=e.tokens.filter((function(e){return e.chainId!==o})).concat(s);e.setTokens(l);var v=yield _r(d[12]).tokenBalanceService.calculateWalletBalance(l,null==(t=n.currency)?void 0:t.name);e.setTotalAmount(v.total)}})),function(e){return h.apply(this,arguments)}))}catch(e){_r(d[13]).Logger.debug(e)}var h})),function(e){return t.apply(this,arguments)})),i=_r(d[7]).EventBus.createListener(_r(d[7]).AppEventType.TRANSACTION_HISTORY_WITH_UNKNOWN_TOKENS_LOADED,(a=(0,e.default)((function*(e){var t=e.chainId.startsWith('tron:'),a=n.wallets.find((function(n){return(t?n.tronEvmAddress:n.address)===e.walletAddress}));a&&a.loadSomeTokens(e.tokens,n.currency.name)})),function(e){return a.apply(this,arguments)})),s=_r(d[7]).EventBus.createListener(_r(d[7]).AppEventType.WALLET_PK_NOT_FOUND,(function(e){var t,a=e.id;(null==(t=n.wallets)?void 0:t.find((function(e){return e.id===a})))&&setTimeout((function(){_r(d[14]).navigationRef.navigate('noPk',{id:a})}),2e3)}));return function(){_r(d[7]).EventBus.removeListener(o),_r(d[7]).EventBus.removeListener(i),_r(d[7]).EventBus.removeListener(s)}}),[n.wallets]),(0,_r(d[15]).jsxs)(a.Navigator,{initialRouteName:"bottomTabs",screenOptions:{headerShown:!1},children:[(0,_r(d[15]).jsx)(a.Screen,{name:"bottomTabs",component:_r(d[16]).BottomTabsNavigator}),(0,_r(d[15]).jsx)(a.Screen,{name:"walletStack",component:_r(d[17]).WalletNavigator}),(0,_r(d[15]).jsx)(a.Screen,{name:"dappStack",component:_r(d[18]).DAppsNavigator}),(0,_r(d[15]).jsx)(a.Screen,{name:"settingsStack",component:_r(d[19]).SettingNavigator})]})}))}),4908,[20,316,140,4322,686,701,3412,1061,1474,2916,1440,1058,2812,1413,4909,180,4910,4965,4966,4967]);
|
|
5219
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getActiveRouteName=c,e.goBack=function(){o.isReady()&&o.canGoBack()&&o.goBack()},e.navigate=function(t,n){o.isReady()&&o.navigate(t,n)},e.navigationRef=void 0,e.resetRoot=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{index:0,routes:[]};o.isReady()&&o.resetRoot(t)},e.useBackButtonHandler=function(u){if('ios'===n.Platform.OS)return;var f=(0,t.useRef)(u);(0,t.useEffect)((function(){f.current=u}),[u]),(0,t.useEffect)((function(){var t=function(){if(!o.isReady())return!1;var t=c(o.getRootState());return f.current(t)?(n.BackHandler.exitApp(),!0):!!o.canGoBack()&&(o.goBack(),!0)};return n.BackHandler.addEventListener('hardwareBackPress',t),function(){return n.BackHandler.removeEventListener('hardwareBackPress',t)}}),[])};var t=r(d[0]),n=r(d[1]),o=e.navigationRef=(0,r(d[2]).createNavigationContainerRef)();function c(t){var n,o=t.routes[null!=(n=t.index)?n:0];return o.state?c(o.state):o.name}}),4909,[140,18,3450]);
|
|
5220
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.BottomTabsNavigator=void 0;var e=a(_r(d[0])),t=a(_r(d[1])),r=a(_r(d[2])),o=_r(d[3]);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=a?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}var i=(0,_r(d[4]).createBottomTabNavigator)();_e.BottomTabsNavigator=(0,_r(d[5]).observer)((function(){var n=(0,_r(d[6]).useTheme)().colors,a=(0,_r(d[7]).useExitApp)().closeApp;return(0,e.useEffect)((function(){var e=o.BackHandler.addEventListener('hardwareBackPress',(function(){var e;return'walletHome'===(null==(e=_r(d[8]).navigationRef.current.getCurrentRoute())?void 0:e.name)&&(a(),!0)}));return function(){return e.remove()}}),[]),(0,_r(d[9]).jsxs)(i.Navigator,{initialRouteName:"walletHome",screenOptions:{headerShown:!1,tabBarActiveTintColor:n.primary,tabBarInactiveTintColor:n.label,tabBarStyle:[{alignItems:'center',justifyContent:'center',backgroundColor:n.background2,borderTopWidth:1,borderTopColor:n.border},_r(d[10]).IS_ANDROID&&{height:58,paddingBottom:8}]},backBehavior:"initialRoute",children:[(0,_r(d[9]).jsx)(i.Screen,{name:"walletHome",component:r.WalletDetailScreen,options:{tabBarItemStyle:{flex:0,width:72},tabBarLabel:function(e){var t=e.focused,r=e.color;return(0,_r(d[9]).jsx)(_r(d[11]).Text,{tx:'onBoardScreen.web3Wallet',color:r,weight:t?'medium':'regular',size:"xsm"})},tabBarIcon:function(e){var t=e.focused,r=e.color;return(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:'wallet'+(t?'-fill':''),size:24,color:r})},tabBarTestID:'walletDetail'}}),(0,_r(d[9]).jsx)(i.Screen,{name:"dappHome",component:t.HomeScreen,options:{tabBarTestID:'dappHome',tabBarItemStyle:{flex:0,width:72},tabBarLabel:function(e){var t=e.focused,r=e.color;return(0,_r(d[9]).jsx)(_r(d[11]).Text,{tx:'common.dapps',color:r,weight:t?'medium':'regular',size:"xsm"})},tabBarIcon:function(e){var t=e.focused,r=e.color;e.size;return(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:'circles-three-plus'+(t?'-fill':''),size:24,color:r})}}}),(0,_r(d[9]).jsx)(i.Screen,{name:"settings",component:_r(d[12]).SettingScreen,options:{tabBarTestID:'settings',tabBarItemStyle:{flex:0,width:72},tabBarLabel:function(e){var t=e.focused,r=e.color;return(0,_r(d[9]).jsx)(_r(d[11]).Text,{tx:'common.setting',color:r,weight:t?'medium':'regular',size:"xsm"})},tabBarIcon:function(e){var t=e.focused,r=e.color;return(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:'gear-six'+(t?'-fill':''),size:24,color:r})}}})]})}))}),4910,[140,4911,4364,18,4934,686,3165,3177,4909,180,628,3617,4896]);
|
|
5221
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))})),Object.keys(r(d[2])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[2])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[2])[n]}}))})),Object.keys(r(d[3])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[3])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[3])[n]}}))})),Object.keys(r(d[4])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[4])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[4])[n]}}))})),Object.keys(r(d[5])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[5])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[5])[n]}}))}))}),4911,[4912,4931,4933,4962,4963,4964]);
|
|
5222
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.HomeScreen=void 0;var o=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[3]),l=(0,r(d[4]).SceneMap)({explore:r(d[5]).ExploreTab,connected:r(d[5]).ConnectedTab});e.HomeScreen=(0,r(d[6]).observer)((function(c){var s=(0,r(d[7]).useTheme)(),u=s.colors,b=s.translate,p=(0,n.useWindowDimensions)(),x=t.default.useState(0),f=(0,o.default)(x,2),S=f[0],k=f[1],h=t.default.useState([{key:'explore',title:b('dapp.explore')},{key:'connected',title:b('dapp.connected')}]),v=(0,o.default)(h,1)[0];return(0,r(d[8]).jsxs)(r(d[9]).Screen,{safeAreaEdges:['top'],contentContainerStyle:{flex:1},backgroundColor:u.background2,children:[(0,r(d[8]).jsx)(r(d[10]).MiniAppHeader,{}),(0,r(d[8]).jsx)(r(d[4]).TabView,{navigationState:{index:S,routes:v},renderScene:l,onIndexChange:k,swipeEnabled:!1,renderTabBar:function(o){return(0,r(d[8]).jsx)(r(d[4]).TabBar,Object.assign({},o,{labelStyle:{color:u.text},activeColor:u.link,indicatorStyle:{backgroundColor:u.link},style:{backgroundColor:u.background2,borderBottomColor:u.border,borderBottomWidth:1},renderLabel:function(o){var t=o.route,n=o.focused;return(0,r(d[8]).jsx)(r(d[9]).Text,{weight:"semiBold",size:"md",color:n?u.link:u.label,children:t.title})}}))},initialLayout:{width:p.width}})]})}))}),4912,[20,34,140,18,4913,4925,686,3165,180,3617,3896]);
|
|
5223
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SceneMap",{enumerable:!0,get:function(){return r(d[0]).SceneMap}}),Object.defineProperty(e,"TabBar",{enumerable:!0,get:function(){return r(d[1]).TabBar}}),Object.defineProperty(e,"TabBarIndicator",{enumerable:!0,get:function(){return r(d[2]).TabBarIndicator}}),Object.defineProperty(e,"TabBarItem",{enumerable:!0,get:function(){return r(d[3]).TabBarItem}}),Object.defineProperty(e,"TabView",{enumerable:!0,get:function(){return r(d[4]).TabView}})}),4913,[4914,4915,4916,4918,4921]);
|
|
5224
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SceneMap=function(e){return function(t){var n=t.route,r=t.jumpTo,u=t.position;return(0,_r(d[3]).jsx)(o,{component:e[n.key],route:n,jumpTo:r,position:u},n.key)}};var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[2])),n=["component"];function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var o=t.memo((function(r){var o=r.component,u=(0,e.default)(r,n);return t.createElement(o,u)}))}),4914,[20,105,140,180]);
|
|
5225
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.TabBar=function(a){var f=a.getLabelText,x=void 0===f?b:f,W=a.getAccessible,j=void 0===W?v:W,I=a.getAccessibilityLabel,O=void 0===I?y:I,C=a.getTestID,k=void 0===C?w:C,P=a.renderIndicator,E=void 0===P?p:P,L=a.gap,M=void 0===L?0:L,A=a.scrollEnabled,_=a.jumpTo,B=a.navigationState,D=a.position,R=a.activeColor,V=a.bounces,z=a.contentContainerStyle,F=a.inactiveColor,N=a.indicatorContainerStyle,H=a.indicatorStyle,X=a.labelStyle,q=a.onTabLongPress,G=a.onTabPress,J=a.pressColor,K=a.pressOpacity,Q=a.renderBadge,U=a.renderIcon,Y=a.renderLabel,Z=a.renderTabBarItem,$=a.style,tt=a.tabStyle,et=a.testID,nt=a.android_ripple,rt=e.useState({width:0,height:0}),at=(0,t.default)(rt,2),it=at[0],ot=at[1],lt=e.useState({}),ut=(0,t.default)(lt,2),st=ut[0],dt=ut[1],ct=e.useRef(null),ft=e.useRef(!0),ht=(0,_r(d[7]).useAnimatedValue)(0),bt=e.useRef({}),vt=B.routes,yt=o(tt),gt='auto'===yt,pt=h({layout:it,navigationState:B,tabWidths:st,gap:M,scrollEnabled:A,flattenedTabWidth:yt}),wt=Boolean(it.width)&&vt.slice(0,B.index).every((function(t){return'number'==typeof st[t.key]}));e.useEffect((function(){var t;ft.current?ft.current=!1:gt&&!wt||A&&(null==(t=ct.current)||t.scrollToOffset({offset:pt,animated:!0}))}),[wt,gt,A,pt]);var mt=c({layout:it,navigationState:B,tabWidths:st,gap:M,scrollEnabled:A,flattenedTabWidth:yt}),St=Math.max(0,vt.length-1)*M,Tt=St/mt*100,xt=40*vt.length+"%",Wt=e.useMemo((function(){return s(ht,u(mt,it.width))}),[it.width,ht,mt]),jt=e.useCallback((function(t){var e=t.item,n=t.index,r={key:e.key,position:D,route:e,navigationState:B,getAccessibilityLabel:O,getAccessible:j,getLabelText:x,getTestID:k,renderBadge:Q,renderIcon:U,renderLabel:Y,activeColor:R,inactiveColor:F,pressColor:J,pressOpacity:K,onLayout:gt?function(t){bt.current[e.key]=t.nativeEvent.layout.width,(vt.length>S&&n===S&&vt.slice(0,S).every((function(t){return'number'==typeof bt.current[t.key]}))||vt.every((function(t){return'number'==typeof bt.current[t.key]})))&&dt(Object.assign({},bt.current))}:void 0,onPress:function(){var t={route:e,defaultPrevented:!1,preventDefault:function(){t.defaultPrevented=!0}};null==G||G(t),t.defaultPrevented||_(e.key)},onLongPress:function(){return null==q?void 0:q({route:e})},labelStyle:X,style:tt,defaultTabWidth:gt?void 0:l(n,it,vt,A,st,o(tt)),android_ripple:nt};return(0,_r(d[5]).jsxs)(_r(d[5]).Fragment,{children:[M>0&&n>0?(0,_r(d[5]).jsx)(i,{width:M}):null,Z?Z(r):(0,_r(d[5]).jsx)(_r(d[8]).TabBarItem,Object.assign({},r))]})}),[R,nt,M,O,j,x,k,F,gt,_,X,it,B,q,G,D,J,K,Q,U,Y,Z,vt,A,tt,st]),It=e.useCallback((function(t){return t.key}),[]),Ot=e.useMemo((function(){return[T.tabContent,A?{width:mt>St?mt:xt}:T.container,z]}),[z,A,St,mt,xt]),Ct=e.useMemo((function(){return n.Animated.event([{nativeEvent:{contentOffset:{x:ht}}}],{useNativeDriver:!0})}),[ht]),kt=(0,r.default)((function(t){var e=t.changed;if(!(vt.length<=S)){var n=e[e.length-1],r=(null==n?void 0:n.index)||0;!n.isViewable||r%10!=0&&r!==B.index&&r!==vt.length-1||dt(Object.assign({},bt.current))}}));return(0,_r(d[5]).jsxs)(n.Animated.View,{onLayout:function(t){var e=t.nativeEvent.layout,n=e.height,r=e.width;ot((function(t){return t.width===r&&t.height===n?t:{width:r,height:n}}))},style:[T.tabBar,$],children:[(0,_r(d[5]).jsx)(n.Animated.View,{pointerEvents:"none",style:[T.indicatorContainer,A?{transform:[{translateX:Wt}]}:null,mt>St?{width:mt-St}:A?{width:xt}:null,N],children:E({position:D,layout:it,navigationState:B,jumpTo:_,width:gt?'auto':(100-Tt)/vt.length+"%",style:H,getTabWidth:function(t){return l(t,it,vt,A,st,yt)},gap:M})}),(0,_r(d[5]).jsx)(n.View,{style:T.scroll,children:(0,_r(d[5]).jsx)(n.Animated.FlatList,{data:vt,keyExtractor:It,horizontal:!0,accessibilityRole:"tablist",keyboardShouldPersistTaps:"handled",scrollEnabled:A,bounces:V,initialNumToRender:S,onViewableItemsChanged:kt,alwaysBounceHorizontal:!1,scrollsToTop:!1,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1,automaticallyAdjustContentInsets:!1,overScrollMode:"never",contentContainerStyle:Ot,scrollEventThrottle:16,renderItem:jt,onScroll:Ct,ref:ct,testID:et})})]})};var t=_r(d[0])(_r(d[1])),e=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&{}.hasOwnProperty.call(t,o)){var l=i?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r})(_r(d[2])),n=_r(d[3]),r=_r(d[0])(_r(d[4]));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}var i=function(t){var e=t.width;return(0,_r(d[5]).jsx)(n.View,{style:{width:e}})},o=function(t){var e=n.StyleSheet.flatten(t);return null==e?void 0:e.width},l=function(t,e,n,r,a,i){if('auto'===i)return a[n[t].key]||0;switch(typeof i){case'number':return i;case'string':if(i.endsWith('%')){var o=parseFloat(i);if(Number.isFinite(o))return e.width*(o/100)}}return r?e.width/5*2:e.width/n.length},u=function(t,e){return t-e},s=function(t,e){return n.Animated.multiply('android'===n.Platform.OS&&n.I18nManager.isRTL?n.Animated.add(e,n.Animated.multiply(t,-1)):t,n.I18nManager.isRTL?1:-1)},c=function(t){var e=t.navigationState,n=t.layout,r=t.gap,a=t.scrollEnabled,i=t.flattenedTabWidth,o=t.tabWidths,u=e.routes;return u.reduce((function(t,e,s){return t+(s>0&&null!=r?r:0)+l(s,n,u,a,o,i)}),0)},f=function(t){var e=t.layout,r=t.navigationState,a=t.gap,i=t.scrollEnabled,o=t.tabWidths,l=t.value,s=t.flattenedTabWidth,f=c({layout:e,navigationState:r,tabWidths:o,gap:a,scrollEnabled:i,flattenedTabWidth:s}),h=u(f,e.width),b=Math.max(Math.min(l,h),0);return'android'===n.Platform.OS&&n.I18nManager.isRTL?h-b:b},h=function(t){var e=t.layout,n=t.navigationState,r=t.gap,a=t.scrollEnabled,i=t.flattenedTabWidth,o=t.tabWidths,u=Array.from({length:n.index+1}).reduce((function(t,u,s){var c=l(s,e,n.routes,a,o,i);return t+(n.index===s?(c+(null!=r?r:0))/2:c+(null!=r?r:0))}),0)-e.width/2;return f({layout:e,navigationState:n,tabWidths:o,value:u,gap:r,scrollEnabled:a,flattenedTabWidth:i})},b=function(t){return t.route.title},v=function(t){var e=t.route;return void 0===e.accessible||e.accessible},y=function(t){var e=t.route;return'string'==typeof e.accessibilityLabel?e.accessibilityLabel:'string'==typeof e.title?e.title:void 0},p=function(t){return(0,_r(d[5]).jsx)(_r(d[6]).TabBarIndicator,Object.assign({},t))},w=function(t){return t.route.testID},S=10;var T=n.StyleSheet.create({container:{flex:1},scroll:{overflow:n.Platform.select({default:'scroll',web:void 0})},tabBar:{backgroundColor:'#2196f3',elevation:4,shadowColor:'black',shadowOpacity:.1,shadowRadius:n.StyleSheet.hairlineWidth,shadowOffset:{height:n.StyleSheet.hairlineWidth,width:0},zIndex:1},tabContent:{flexDirection:'row',flexWrap:'nowrap'},indicatorContainer:{position:'absolute',top:0,left:0,right:0,bottom:0}})}),4915,[20,34,140,18,3497,180,4916,4917,4918]);
|
|
5226
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.TabBarIndicator=function(t){var r=t.getTabWidth,u=t.layout,o=t.navigationState,l=t.position,f=t.width,c=t.gap,p=t.style,s=e.useRef(!1),v='auto'===f,h=(0,_r(d[4]).useAnimatedValue)(v?0:1),y=!v||u.width&&o.routes.slice(0,o.index).every((function(t,e){return r(e)}));e.useEffect((function(){return!s.current&&v&&y&&(s.current=!0,n.Animated.timing(h,{toValue:1,duration:150,easing:n.Easing.in(n.Easing.linear),useNativeDriver:!0}).start()),function(){return h.stopAnimation()}}),[y,v,h]);var b=o.routes,w=[];if(u.width){var _=b.length>1?a(l,b,r,c):0;w.push({translateX:_})}if('auto'===f){var O=b.map((function(t,e){return e})),j=O.map(r);w.push({scaleX:b.length>1?l.interpolate({inputRange:O,outputRange:j,extrapolate:'clamp'}):j[0]},{translateX:.5})}return(0,_r(d[5]).jsx)(n.Animated.View,{style:[i.indicator,{width:'auto'===f?1:f},u.width&&'macos'!==n.Platform.OS?{left:0}:{left:100/b.length*o.index+"%"},{transform:w},'auto'===f?{opacity:h}:null,p]})};var t=_r(d[0])(_r(d[1])),e=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var o=i?Object.getOwnPropertyDescriptor(t,u):null;o&&(o.get||o.set)?Object.defineProperty(a,u,o):a[u]=t[u]}return a.default=t,n&&n.set(t,a),a})(_r(d[2])),n=_r(d[3]);function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}var a=function(e,r,a,i){var u=r.map((function(t,e){return e})),o=r.reduce((function(e,n,r){return 0===r?[0]:[].concat((0,t.default)(e),[e[r-1]+a(r-1)+(null!=i?i:0)])}),[]),l=e.interpolate({inputRange:u,outputRange:o,extrapolate:'clamp'});return n.Animated.multiply(l,n.I18nManager.isRTL?-1:1)};var i=n.StyleSheet.create({indicator:{backgroundColor:'#ffeb3b',position:'absolute',left:0,bottom:0,right:0,height:2}})}),4916,[20,23,140,18,4917,180]);
|
|
5227
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.useAnimatedValue=function(t){var n=e.useRef();void 0===n.current&&(n.current=new r.Animated.Value(t));return n.current};var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0])),r=_r(d[1]);function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}}),4917,[140,18]);
|
|
5228
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.TabBarItem=function(t){var n=t.onPress,o=t.onLongPress,l=t.onLayout,s=t.navigationState,u=t.route,c=t.getAccessibilityLabel,f=t.getLabelText,b=t.getTestID,y=t.getAccessible,p=(0,e.default)(t,i),v=(0,r.default)(n),h=(0,r.default)(o),L=(0,r.default)(l||function(){}),j=s.routes.indexOf(u),P={route:u},x=c(P),S=f(P),w=b(P),O=y(P);return(0,_r(d[5]).jsx)(a,Object.assign({},p,{onPress:v,onLayout:L,onLongPress:h,isFocused:s.index===j,route:u,index:j,routesLength:s.routes.length,accessibilityLabel:x,label:S,testID:w,accessible:O}))};var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(r,l,s):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r})(_r(d[2])),n=_r(d[3]),r=_r(d[0])(_r(d[4])),i=["onPress","onLongPress","onLayout","navigationState","route","getAccessibilityLabel","getLabelText","getTestID","getAccessible"];function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}var l=function(e,t,n){if(t>1){var r=Array.from({length:t},(function(e,t){return t}));return e.interpolate({inputRange:r,outputRange:r.map((function(e){return e===n?1:0}))})}return 1},s=function(e,t,n){if(t>1){var r=Array.from({length:t},(function(e,t){return t}));return e.interpolate({inputRange:r,outputRange:r.map((function(e){return e===n?0:1}))})}return 0},a=t.memo((function(e){var t=e.accessibilityLabel,r=e.accessible,i=e.label,o=e.testID,a=e.onLongPress,c=e.onPress,f=e.isFocused,b=e.position,y=e.route,p=e.style,v=e.inactiveColor,h=e.activeColor,L=e.labelStyle,j=e.onLayout,P=e.index,x=e.pressColor,S=e.pressOpacity,w=e.renderBadge,O=e.renderIcon,_=e.defaultTabWidth,A=e.routesLength,I=e.renderLabel,V=e.android_ripple,D=void 0===V?{borderless:!0}:V,T=n.StyleSheet.flatten(L||{}).color,C=void 0!==h?h:'string'==typeof T?T:"rgba(255, 255, 255, 1)",M=void 0!==v?v:'string'==typeof T?T:"rgba(255, 255, 255, 0.7)",R=l(b,A,P),k=s(b,A,P),F=null,W=null;if(O){var B=O({route:y,focused:!0,color:C}),E=O({route:y,focused:!1,color:M});null!=E&&null!=B&&(F=(0,_r(d[5]).jsxs)(n.View,{style:u.icon,children:[(0,_r(d[5]).jsx)(n.Animated.View,{style:{opacity:k},children:E}),(0,_r(d[5]).jsx)(n.Animated.View,{style:[n.StyleSheet.absoluteFill,{opacity:R}],children:B})]}))}var H=I||function(e){return(0,_r(d[5]).jsx)(_r(d[6]).TabBarItemLabel,Object.assign({},e,{icon:F,label:i,labelStyle:L}))};if(H){var q=H({route:y,focused:!0,color:C}),z=H({route:y,focused:!1,color:M});W=(0,_r(d[5]).jsxs)(n.View,{children:[(0,_r(d[5]).jsx)(n.Animated.View,{style:{opacity:k},children:z}),(0,_r(d[5]).jsx)(n.Animated.View,{style:[n.StyleSheet.absoluteFill,{opacity:R}],children:q})]})}var G=n.StyleSheet.flatten(p),J=void 0!==(null==G?void 0:G.width)?null:{width:_};t=void 0!==t?t:i;var K=w?w({route:y}):null;return(0,_r(d[5]).jsx)(_r(d[7]).PlatformPressable,{android_ripple:D,testID:o,accessible:r,accessibilityLabel:t,accessibilityRole:"tab",accessibilityState:{selected:f},accessibilityStates:f?['selected']:[],pressColor:x,pressOpacity:S,delayPressIn:0,onLayout:j,onPress:c,onLongPress:a,style:[u.pressable,J],children:(0,_r(d[5]).jsxs)(n.View,{pointerEvents:"none",style:[u.item,G],children:[F,W,null!=K?(0,_r(d[5]).jsx)(n.View,{style:u.badge,children:K}):null]})})}));var u=n.StyleSheet.create({icon:{margin:2},item:{flex:1,alignItems:'center',justifyContent:'center',padding:10,minHeight:48},badge:{position:'absolute',top:0,right:0},pressable:{backgroundColor:'transparent'}})}),4918,[20,105,140,18,3497,180,4919,4920]);
|
|
5229
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.TabBarItemLabel=void 0;var l=r(d[0])(r(d[1])),t=r(d[2]),n=(e.TabBarItemLabel=l.default.memo((function(l){var o=l.color,b=l.label,c=l.labelStyle,u=l.icon;return b?(0,r(d[3]).jsx)(t.Animated.Text,{style:[n.label,u?{marginTop:0}:null,c,{color:o}],children:b}):null})),t.StyleSheet.create({label:{margin:4,backgroundColor:'transparent',textTransform:'uppercase'}}))}),4919,[20,140,18,180]);
|
|
5230
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PlatformPressable=function(n){var a=n.android_ripple,i=n.pressColor,s=void 0===i?'rgba(0, 0, 0, .32)':i,l=n.pressOpacity,p=n.style,f=(0,e.default)(n,t);return(0,_r(d[4]).jsx)(r.Pressable,Object.assign({android_ripple:o?Object.assign({color:s},a):void 0,style:function(e){var r=e.pressed;return[{opacity:r&&!o?l:1},'function'==typeof p?p({pressed:r}):p]}},f))};var e=_r(d[0])(_r(d[1])),r=((function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}o.default=e,t&&t.set(e,o)})(_r(d[2])),_r(d[3])),t=["android_ripple","pressColor","pressOpacity","style"];function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}var o='android'===r.Platform.OS&&r.Platform.Version>=21}),4920,[20,105,140,18,180]);
|
|
5231
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.TabView=function(r){var o=r.onIndexChange,u=r.navigationState,l=r.renderScene,s=r.initialLayout,c=r.keyboardDismissMode,f=void 0===c?'auto':c,p=r.lazy,y=void 0!==p&&p,v=r.lazyPreloadDistance,b=void 0===v?0:v,h=r.onSwipeStart,S=r.onSwipeEnd,w=r.renderLazyPlaceholder,j=void 0===w?function(){return null}:w,O=r.renderTabBar,P=void 0===O?function(e){return(0,_r(d[4]).jsx)(_r(d[5]).TabBar,Object.assign({},e))}:O,E=r.sceneContainerStyle,_=r.pagerStyle,x=r.style,M=r.swipeEnabled,k=void 0===M||M,D=r.tabBarPosition,z=void 0===D?'top':D,L=r.animationEnabled,T=void 0===L||L,B=r.overScrollMode,C=n.useState(Object.assign({width:0,height:0},s)),V=(0,e.default)(C,2),W=V[0],I=V[1];return(0,_r(d[4]).jsx)(i.View,{onLayout:function(e){var t=e.nativeEvent.layout,n=t.height,i=t.width;I((function(e){return e.width===i&&e.height===n?e:{height:n,width:i}}))},style:[a.pager,x],children:(0,_r(d[4]).jsx)(_r(d[6]).Pager,{layout:W,navigationState:u,keyboardDismissMode:f,swipeEnabled:k,onSwipeStart:h,onSwipeEnd:S,onIndexChange:function(e){e!==u.index&&o(e)},animationEnabled:T,overScrollMode:B,style:_,children:function(e){var i=e.position,r=e.render,a=e.addEnterListener,o=e.jumpTo,s={position:i,layout:W,jumpTo:o};return(0,_r(d[4]).jsxs)(n.Fragment,{children:['top'===z&&P(Object.assign({},s,{navigationState:u})),r(u.routes.map((function(e,n){return(0,t.createElement)(_r(d[7]).SceneView,Object.assign({},s,{addEnterListener:a,key:e.key,index:n,lazy:'function'==typeof y?y({route:e}):y,lazyPreloadDistance:b,navigationState:u,style:E}),(function(t){return t.loading?j({route:e}):l(Object.assign({},s,{route:e}))}))}))),'bottom'===z&&P(Object.assign({},s,{navigationState:u}))]})}})})};var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var u=a?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(i,o,u):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i})(_r(d[2])),n=t,i=_r(d[3]);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var a=i.StyleSheet.create({pager:{flex:1,overflow:'hidden'}})}),4921,[20,34,140,18,180,4915,4922,4924]);
|
|
5232
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Pager",{enumerable:!0,get:function(){return r(d[0]).PagerViewAdapter}})}),4922,[4923]);
|
|
5233
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PagerViewAdapter=function(r){var i=r.keyboardDismissMode,l=void 0===i?'auto':i,c=r.swipeEnabled,s=void 0===c||c,f=r.navigationState,v=r.onIndexChange,p=r.onSwipeStart,b=r.onSwipeEnd,y=r.children,h=r.style,S=r.animationEnabled,P=(0,e.default)(r,a),E=f.index,w=n.useRef([]),M=n.useRef(),O=n.useRef(E),_=n.useRef(f),j=(0,_r(d[5]).useAnimatedValue)(E),k=(0,_r(d[5]).useAnimatedValue)(0);n.useEffect((function(){_.current=f}));var A=n.useCallback((function(e){var n,t,r=_.current.routes.findIndex((function(n){return n.key===e}));S?null==(n=M.current)||n.setPage(r):(null==(t=M.current)||t.setPageWithoutAnimation(r),j.setValue(r))}),[S,j]);n.useEffect((function(){var e,n;('auto'===l&&t.Keyboard.dismiss(),O.current!==E)&&(S?null==(e=M.current)||e.setPage(E):(null==(n=M.current)||n.setPageWithoutAnimation(E),j.setValue(E)))}),[l,E,S,j]);var x=function(e){switch(e.nativeEvent.pageScrollState){case'idle':return void(null==b||b());case'dragging':var n=k.addListener((function(e){var t=e.value,r=E+(t>0?Math.ceil(t):Math.floor(t));r!==E&&w.current.forEach((function(e){return e(r)})),k.removeListener(n)}));return void(null==p||p())}},C=n.useCallback((function(e){return w.current.push(e),function(){var n=w.current.indexOf(e);n>-1&&w.current.splice(n,1)}}),[]),D=n.useMemo((function(){return t.Animated.add(j,k)}),[k,j]);return y({position:D,addEnterListener:C,jumpTo:A,render:function(e){return(0,_r(d[6]).jsx)(o,Object.assign({},P,{ref:M,style:[u.container,h],initialPage:E,keyboardDismissMode:'auto'===l?'on-drag':l,onPageScroll:t.Animated.event([{nativeEvent:{position:j,offset:k}}],{useNativeDriver:!0}),onPageSelected:function(e){var n=e.nativeEvent.position;O.current=n,v(n)},onPageScrollStateChanged:x,scrollEnabled:s,children:e}))}})};var e=_r(d[0])(_r(d[1])),n=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i(n);if(t&&t.has(e))return t.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var u=a?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r})(_r(d[2])),t=_r(d[3]),r=_r(d[0])(_r(d[4])),a=["keyboardDismissMode","swipeEnabled","navigationState","onIndexChange","onSwipeStart","onSwipeEnd","children","style","animationEnabled"];function i(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(i=function(e){return e?t:n})(e)}var o=t.Animated.createAnimatedComponent(r.default);var u=t.StyleSheet.create({container:{flex:1}})}),4923,[20,105,140,18,4869,4917,180]);
|
|
5234
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SceneView=function(r){var a=r.children,u=r.navigationState,o=r.lazy,l=r.layout,c=r.index,f=r.lazyPreloadDistance,s=r.addEnterListener,y=r.style,p=t.useState(Math.abs(u.index-c)>f),h=(0,e.default)(p,2),v=h[0],w=h[1];v&&Math.abs(u.index-c)<=f&&w(!1);t.useEffect((function(){var e,t;return o&&v?e=s((function(e){e===c&&w((function(e){return!e&&e}))})):v&&(t=setTimeout((function(){return w(!1)}),0)),function(){null==e||e(),clearTimeout(t)}}),[s,c,v,o]);var b=u.index===c;return(0,_r(d[4]).jsx)(n.View,{accessibilityElementsHidden:!b,importantForAccessibility:b?'auto':'no-hide-descendants',style:[i.route,l.width?{width:l.width}:b?n.StyleSheet.absoluteFill:null,y],children:b||l.width?a({loading:v}):null})};var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var o=a?Object.getOwnPropertyDescriptor(e,u):null;o&&(o.get||o.set)?Object.defineProperty(i,u,o):i[u]=e[u]}return i.default=e,n&&n.set(e,i),i})(_r(d[2])),n=_r(d[3]);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var i=n.StyleSheet.create({route:{flex:1,overflow:'hidden'}})}),4924,[20,34,140,18,180]);
|
|
5235
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))})),Object.keys(r(d[2])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[2])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[2])[n]}}))}))}),4925,[4926,4927,4929]);
|
|
5236
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ExploreTab=void 0;r(d[0])(r(d[1]));var t=r(d[2]);e.ExploreTab=(0,r(d[3]).observer)((function(){var o=(0,r(d[4]).useTabNavigation)().searchApp,n=[{title:'Favorite',data:[(0,r(d[5]).jsx)(r(d[6]).FavoritesTab,{})]},{title:'Explore',data:[(0,r(d[5]).jsx)(r(d[7]).DAppsList,{showHeader:!0})]}];return(0,r(d[5]).jsx)(t.View,{style:{flex:1},children:(0,r(d[5]).jsx)(t.SectionList,{ListHeaderComponent:(0,r(d[5]).jsx)(r(d[8]).SearchBar,{placeholderTx:"dapp.search",onPress:o,style:{paddingHorizontal:16,paddingVertical:8}}),sections:n,keyExtractor:function(t,o){return o.toString()},renderItem:function(t){return t.item}})})}))}),4926,[20,140,18,686,4301,180,4927,4296,4928]);
|
|
5237
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.FavoritesTab=void 0;r(d[0])(r(d[1]));var t=r(d[2]),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4]));e.FavoritesTab=(0,r(d[5]).observer)((function(){var s=(0,r(d[6]).useStores)(),l=s.dappStore,c=s.account,p=(0,r(d[7]).useNavigation)(),u=(0,r(d[8]).useTheme)().colors,f=(0,r(d[9]).useTabNavigation)(),x=f.openAppOrBrowser,y=f.openApp,h=l.favoriteDApps.toJSON().filter((function(t){return t.accountId===c.id})),j=h.length>5,v=j?h.slice(0,3):h;return(0,r(d[10]).jsxs)(t.View,{style:{flex:1},children:[(0,r(d[10]).jsx)(n.default,{colors:['#193259','#0C182B'],useAngle:!0,angle:129,style:t.StyleSheet.absoluteFillObject}),(0,r(d[10]).jsx)(t.FlatList,{data:v,keyExtractor:function(t,n){return t.name+n},style:{paddingVertical:16},ListHeaderComponent:(0,r(d[10]).jsx)(t.TouchableOpacity,{disabled:!j,onPress:function(){p.navigate('dappStack',{screen:'favorites'})},children:(0,r(d[10]).jsxs)(t.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingVertical:8,paddingHorizontal:16},children:[(0,r(d[10]).jsxs)(t.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,r(d[10]).jsx)(r(d[11]).Icon,{icon:"star-fill",color:u.warning}),(0,r(d[10]).jsx)(r(d[11]).Text,{tx:"dapp.favorite",weight:"medium",size:"lg",style:{marginLeft:8}})]}),j&&(0,r(d[10]).jsx)(r(d[11]).Icon,{icon:"caret-right",color:u.label})]})}),getItemLayout:function(t,n){return{length:72,offset:72*n,index:n}},ListEmptyComponent:(0,r(d[10]).jsxs)(t.View,{style:{flex:1,paddingHorizontal:16,marginTop:16,alignItems:'center',flexDirection:'row'},children:[(0,r(d[10]).jsx)(t.Image,{source:o.default.Image.empty_favorite,style:{width:64,height:64,marginRight:16},resizeMode:"contain"}),(0,r(d[10]).jsx)(r(d[11]).Text,{preset:"label",tx:"dapp.emptyFavorite",style:{maxWidth:'75%'}})]}),renderItem:function(t){var n=t.item;return(0,r(d[10]).jsx)(r(d[12]).DAppItem,{dapp:n,openApp:function(){y(n)},openUrl:function(){x(n)}})}})]})}))}),4927,[20,140,18,4306,3060,686,701,3450,3165,4301,180,3617,4296]);
|
|
5238
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SearchBar=void 0;r(d[0])(r(d[1]));var l=r(d[2]);e.SearchBar=function(o){var n=o.placeholderTx,s=o.style,c=o.onPress,t=(0,r(d[3]).useTheme)().colors,h={flexDirection:'row',alignItems:'center',backgroundColor:t.block,borderRadius:6,paddingLeft:12,paddingVertical:2,paddingRight:8};return(0,r(d[4]).jsx)(r(d[5]).TouchableOpacity,{onPress:c,style:s,children:(0,r(d[4]).jsxs)(l.View,{testID:"searchBar.view",style:h,children:[(0,r(d[4]).jsx)(r(d[6]).Icon,{icon:"magnifying-glass",size:20,color:t.label}),(0,r(d[4]).jsx)(l.View,{style:{flex:1,paddingVertical:8,paddingHorizontal:8},children:(0,r(d[4]).jsx)(r(d[6]).Text,{size:"md",color:t.label,tx:n})})]})})}}),4928,[20,140,18,3165,180,4078,3617]);
|
|
5239
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectedTab=void 0;r(d[0])(r(d[1]));var t=r(d[2]),n=r(d[0])(r(d[3]));e.ConnectedTab=(0,r(d[4]).observer)((function(){var o=(0,r(d[5]).useTabNavigation)(),p=o.openAppOrBrowser,s=o.openApp,c=o.searchApp,l=(0,r(d[6]).useConnectedDapps)().dapps;return(0,r(d[7]).jsx)(t.View,{style:{flex:1},children:(0,r(d[7]).jsx)(t.FlatList,{data:l,keyExtractor:function(t,n){return t.dappId+"_"+n},contentContainerStyle:{flex:1},getItemLayout:function(t,n){return{length:72,offset:72*n,index:n}},ListHeaderComponent:l.length>0&&(0,r(d[7]).jsx)(r(d[8]).SearchBar,{placeholderTx:"dapp.search",onPress:c,style:{paddingHorizontal:16,paddingVertical:8}}),ListEmptyComponent:(0,r(d[7]).jsxs)(t.View,{style:{flex:1,justifyContent:'center',alignItems:'center',marginBottom:100},children:[(0,r(d[7]).jsx)(t.Image,{source:n.default.Image.empty_connected,style:{width:180,height:180},resizeMode:"contain"}),(0,r(d[7]).jsx)(r(d[9]).Text,{preset:"label",tx:"dapp.emptyConnected",style:{maxWidth:'80%',textAlign:'center'}})]}),renderItem:function(t){var n=t.item;return(0,r(d[7]).jsx)(r(d[10]).DAppItem,{dapp:n,openApp:function(){s(n)},openUrl:function(){p(n)}})}})})}))}),4929,[20,140,18,3060,686,4301,4930,180,4928,3617,4296]);
|
|
5240
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useConnectedDapps=void 0;var n=r(d[0])(r(d[1])),t=r(d[2]);e.useConnectedDapps=function(){var l=(0,r(d[3]).useStores)(),u=l.dappStore,c=l.account,o=u.dapps,s=(0,t.useState)([]),p=(0,n.default)(s,2),f=p[0],v=p[1],C=function(){var n=r(d[4]).walletConnectService.getAllDApps().filter((function(n){var t;return!(null==n||null==(t=n.wallets)||!t.find((function(n){var t;return!(null==(t=c.wallets)||!t.find((function(t){return t.address===n||t.tronEvmAddress===n})))})))})),t=r(d[5]).injectedWalletService.getAllDApps().filter((function(n){var t;return!(null==n||null==(t=n.wallets)||!t.find((function(n){var t;return!(null==(t=c.wallets)||!t.find((function(t){return t.address===n})))})))}));return(0,r(d[6]).uniqBy)(n.concat(t),'url').map((function(n){return o.find((function(t){return(0,r(d[7]).isUrlEqual)(n.url,t.website)}))||{dappId:-1,name:n.name,description:{en:n.description,vi:n.description},fullDescription:{en:n.description,vi:n.description},logo:n.icons[0],link:n.url,website:n.url,chains:n.chains,categories:[r(d[8]).DAppCategories.UNKNOWN],socialLinks:[],tags:[]}}))},D=(0,t.useCallback)((function(n){return o.find((function(t){return(0,r(d[7]).isUrlEqual)(n,t.website)}))}),[o]),S=(0,t.useCallback)((function(n){return!!f.find((function(t){return(0,r(d[7]).isUrlEqual)(n,t.website)}))}),[f]),w=(0,t.useCallback)((function(n){var t=r(d[4]).walletConnectService.getDappConnectionStatusFromUrl(n);return t.connected?t:r(d[5]).injectedWalletService.getDappConnectionStatusFromUrl(n)}),[]),E=(0,t.useCallback)((function(n){return Promise.all([r(d[4]).walletConnectService.disconnectFromUrl(n),r(d[5]).injectedWalletService.disconnectFromUrl(n)])}),[]);return(0,t.useEffect)((function(){v(C());var n=r(d[9]).EventBus.createListener(r(d[9]).AppEventType.DAPP_CONNECTION_UPDATED,(function(){v(C())}));return function(){r(d[9]).EventBus.removeListener(n)}}),[o]),{dapps:f,getDappInfoFromUrl:D,isDappConnected:S,getConnectionStatus:w,disconnectDapp:E}}}),4930,[20,34,140,701,3180,3449,1064,3296,4850,1061]);
|
|
5241
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.DetailScreen=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r})(_r(d[3])),r=_r(d[4]);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}_e.DetailScreen=(0,_r(d[5]).observer)((function(o){var i,s,a=(0,_r(d[6]).useStores)(),l=a.dappStore,c=a.account,u=(0,_r(d[7]).useTheme)(),p=u.colors,f=u.lang,x=u.translate,h=(0,_r(d[8]).useMixins)(),y=h.notify,b=h.getUuid,w=(0,_r(d[9]).useConnectedDapps)(),j=w.isDappConnected,v=w.getConnectionStatus,C=w.disconnectDapp,D=o.navigation,k=(o.route.params||{}).dapp,T=c.wallets,A=(0,n.useMemo)((function(){return l.isDisableWarning(k)}),[l.disableWarningUrl]),V=(0,n.useState)(!1),S=(0,t.default)(V,2),I=S[0],R=S[1],W=(0,n.useState)(A),B=(0,t.default)(W,2),P=B[0],O=B[1],L=(0,n.useState)(!1),z=(0,t.default)(L,2),H=z[0],_=z[1],M=(0,n.useState)(),U=(0,t.default)(M,2),F=U[0],E=U[1],N=(0,n.useMemo)((function(){return l.isFavoriteDApp(c.id,k)}),[l.favoriteDApps.toJSON()]),J=_r(d[10]).SUPPORTED_CHAINS.filter((function(e){var t;return null==F||null==(t=F.tokensWithBalance)?void 0:t.some((function(t){return t.chainId===e.chainId}))})),q=j(k.website),G=(s=(0,e.default)((function*(){_(!0),yield C(k.website),_(!1)})),function(){return s.apply(this,arguments)});return(0,n.useEffect)((function(){if(q){var e=v(k.website).walletAddresses,t=null,n=T.filter((function(t){return t.address===e[0]||t.tronEvmAddress===e[0]}));(t=n.find((function(e){return e.id===c.selectedWalletId})))||(t=n[0]),E(t)}else E(null)}),[q]),(0,_r(d[12]).jsxs)(_r(d[13]).Screen,{preset:"scroll",padding:!0,safeAreaEdges:['top','bottom'],backgroundColor:p.background2,header:(0,_r(d[12]).jsx)(_r(d[13]).Header,{leftIcon:"arrow-left",onLeftPress:D.goBack,title:k.name,RightActionComponent:(0,_r(d[12]).jsx)(_r(d[14]).ScaleButton,{style:{paddingRight:16},onPress:function(){N?(l.removeFavoriteDApps(c.id,k),y('success',x('dapp.unFavoriteToast'),2e3,{icon:'trash',iconColor:p.error,customBackgroundColor:p.background})):(l.addFavoriteDApps(c.id,k),y('success',x('dapp.favoriteToast'),2e3,{icon:'check-circle',iconColor:p.success,customBackgroundColor:p.background}))},children:(0,_r(d[12]).jsx)(_r(d[13]).Icon,{icon:N?'star-fill':'star',color:N?p.warning:p.text})})}),footer:(0,_r(d[12]).jsxs)(r.View,{style:{paddingTop:12},children:[!A&&(0,_r(d[12]).jsxs)(r.View,{style:{flexDirection:'row',marginBottom:12},children:[(0,_r(d[12]).jsx)(_r(d[14]).CheckBox,{value:P,onValueChange:O,style:{marginRight:12,marginTop:3}}),(0,_r(d[12]).jsx)(r.TouchableOpacity,{onPress:function(){return O((function(e){return!e}))},style:{flex:1},children:(0,_r(d[12]).jsxs)(r.Text,{style:{fontSize:14,lineHeight:18,fontFamily:_r(d[15]).typography.secondary.medium,color:p.text},children:[x('dapp.openApp.readAndUnderstand.t1'),(0,_r(d[12]).jsx)(r.Text,{style:{color:p.link},onPress:function(){var e="https://ready.io"+('vi'!==f?'':'/vi')+"/risk";r.Linking.canOpenURL(e)?r.Linking.openURL(e):_r(d[11]).navigationRef.navigate('browserMobileView',{url:e})},children:x('dapp.openApp.readAndUnderstand.t2')}),(0,_r(d[12]).jsx)(r.Text,{children:x('dapp.openApp.readAndUnderstand.t3',{name:k.name})})]})})]}),(0,_r(d[12]).jsxs)(r.View,{style:{flexDirection:'row'},children:[q&&(0,_r(d[12]).jsx)(_r(d[13]).Button,{tx:'dapp.disconnect.action',onPress:function(){R(!0)},style:{flex:1,marginRight:8,backgroundColor:(0,_r(d[15]).colorTransparency)(p.error,10)},disabled:H,loading:H,textStyle:{color:p.error}}),(0,_r(d[12]).jsx)(_r(d[13]).Button,{disabled:!P,tx:'dapp.openApp.action',onPress:function(){var e={title:k.name,url:k.website,id:b(),dapp:k};l.addDisableWarningUrl(k.website),l.addBrowserTabs(e),l.addRecentAccessDapps(k),D.navigate('browser',{screen:'website'+e.id,params:e})},style:{flex:1,marginLeft:q?8:0}})]})]}),children:[q&&(0,_r(d[12]).jsx)(_r(d[16]).DisconnectAppModal,{isOpen:I,onClose:function(){R(!1)},dappName:k.name,walletName:null==F?void 0:F.name,disconnectFromUrl:G}),(0,_r(d[12]).jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[12]).jsx)(_r(d[17]).DAppLogo,{logo:k.logo,style:{width:64,height:64,borderRadius:12,marginRight:16}}),(0,_r(d[12]).jsxs)(r.View,{style:{flex:1},children:[(0,_r(d[12]).jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginBottom:4},children:[(0,_r(d[12]).jsx)(_r(d[13]).Text,{preset:"bold",size:"x",text:k.name,style:{flex:1,marginRight:8}}),(0,_r(d[12]).jsx)(r.View,{style:{paddingVertical:4,paddingHorizontal:8,borderRadius:100,backgroundColor:(0,_r(d[15]).colorTransparency)(p.warning,10)},children:(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:'#'+k.categories[0].toLocaleLowerCase(),color:p.warning,size:"sm",style:{lineHeight:18}})})]}),q?(0,_r(d[12]).jsx)(_r(d[13]).Text,{tx:"dapp.connected",color:p.success,size:"sm",style:{lineHeight:18}}):(0,_r(d[12]).jsx)(_r(d[13]).Text,{tx:"dapp.notConnected",color:p.error2,size:"sm",style:{lineHeight:18}})]})]}),(0,_r(d[12]).jsxs)(r.View,{style:{marginVertical:16,paddingVertical:12,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:p.border,backgroundColor:(0,_r(d[15]).colorTransparency)(p.block,40),flexDirection:'row',alignItems:'center'},children:[(0,_r(d[12]).jsx)(_r(d[13]).Icon,{icon:"link",color:p.borderLight}),(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:k.website,color:p.borderLight,size:"base",style:{marginLeft:8,lineHeight:20,maxWidth:'90%'}})]}),q&&F&&(0,_r(d[12]).jsxs)(r.View,{style:{borderWidth:1,borderRadius:12,borderColor:p.border,backgroundColor:(0,_r(d[15]).colorTransparency)(p.border,40),marginBottom:16,padding:16},children:[(0,_r(d[12]).jsx)(r.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},children:(0,_r(d[12]).jsx)(_r(d[13]).Text,{tx:"dapp.connectedWallet",size:"base"})}),(0,_r(d[12]).jsxs)(r.View,{style:{flexDirection:'row',justifyContent:'space-between',paddingVertical:12},children:[(0,_r(d[12]).jsx)(r.View,{style:{flex:1},children:(0,_r(d[12]).jsx)(_r(d[18]).WalletItem,{wallet:F,maxWidth:"90%"})}),(0,_r(d[12]).jsxs)(r.View,{style:{flex:1,alignItems:'flex-end'},children:[(0,_r(d[12]).jsx)(_r(d[13]).Text,{preset:"label",size:"base",text:null==(i=_r(d[19]).tokenRateService.getValueDisplayForCurrency(null==F?void 0:F.totalAmount,c.currency.name))?void 0:i.display,style:{lineHeight:24,maxWidth:'90%',marginBottom:6}}),(0,_r(d[12]).jsx)(_r(d[20]).SuportedChainIcon,{chainIds:J.map((function(e){return e.chainId})),limit:5})]})]})]}),(0,_r(d[12]).jsx)(_r(d[13]).Text,{text:k.fullDescription[f],color:p.label,style:{marginBottom:16,lineHeight:20},size:"base"})]})}))}),4931,[20,316,34,140,18,686,701,3165,3149,4930,1474,631,180,3617,3896,3166,4932,4298,4044,2812,4296]);
|
|
5242
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DisconnectAppModal=void 0;var t=r(d[0]);r(d[1])(r(d[2])),e.DisconnectAppModal=function(n){var o=n.isOpen,c=n.onClose,l=n.walletName,s=n.dappName,p=n.disconnectFromUrl,x=(0,r(d[3]).useTheme)(),u=x.colors,y=x.translate,f=[{style:'cancel',text:y('common.cancel'),action:c},{text:y('common.confirm'),action:p}];return(0,r(d[4]).jsx)(t.Modal,{visible:o,transparent:!0,animationType:"fade",children:(0,r(d[4]).jsx)(t.View,{style:{flex:1,backgroundColor:u.overlayModal,justifyContent:'center',alignItems:'center',padding:24},children:(0,r(d[4]).jsxs)(t.View,{style:{padding:24,paddingBottom:16,backgroundColor:u.block,width:'100%',borderRadius:12},children:[(0,r(d[4]).jsx)(r(d[5]).Text,{tx:'dapp.disconnect.title',size:"x"}),(0,r(d[4]).jsxs)(t.Text,{style:{marginVertical:16,color:u.label,fontFamily:r(d[6]).typography.secondary.medium},children:[y('dapp.disconnect.desc1'),(0,r(d[4]).jsx)(t.Text,{style:{color:u.text},children:l}),(0,r(d[4]).jsx)(t.Text,{children:y('dapp.disconnect.desc2',{dapp:s})})]}),(0,r(d[4]).jsx)(t.View,{style:{marginTop:4,flexDirection:'row',justifyContent:'flex-end'},children:f.map((function(t){return(0,r(d[4]).jsx)(r(d[5]).Button,{testID:t.text,preset:"teriatary",teriataryBackground:u.block,text:t.text,onPress:function(){t.action(),c()}},t.text)}))})]})})})}}),4932,[18,20,140,3165,180,3617,3166]);
|
|
5243
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserTabsNavigator=void 0;var o=(0,r(d[0]).createBottomTabNavigator)();e.BrowserTabsNavigator=(0,r(d[1]).observer)((function(){var n=(0,r(d[2]).useStores)().dappStore.browserTabs.toJSON().filter((function(o){return o.id}));return(0,r(d[3]).jsxs)(o.Navigator,{tabBar:function(){return null},screenOptions:{lazy:!0,headerShown:!1},backBehavior:"none",children:[(0,r(d[3]).jsx)(o.Screen,{name:"tabs",component:r(d[4]).BrowserTabsScreen}),n.map((function(n){return(0,r(d[3]).jsx)(o.Screen,{name:'website'+n.id,component:r(d[5]).BrowserScreen,initialParams:{url:'google.com'}},n.id)}))]})}))}),4933,[4934,686,701,180,4954,4956]);
|
|
5244
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BottomTabBar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"BottomTabBarHeightCallbackContext",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"BottomTabBarHeightContext",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"BottomTabView",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"createBottomTabNavigator",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"useBottomTabBarHeight",{enumerable:!0,get:function(){return f.default}});var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),b=r(d[0])(r(d[5])),f=r(d[0])(r(d[6]))}),4934,[20,4935,4939,4936,4937,4938,4953]);
|
|
5245
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=((function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=r(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}n.default=e,a&&a.set(e,n)})(_r(d[2])),_r(d[0])(_r(d[3]))),a=_r(d[0])(_r(d[4])),n=["id","initialRouteName","backBehavior","children","screenListeners","screenOptions","sceneContainerStyle"],o=["lazy","tabBarOptions"];function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(r=function(e){return e?a:t})(e)}_e.default=(0,_r(d[5]).createNavigatorFactory)((function(r){var i,l=r.id,c=r.initialRouteName,s=r.backBehavior,b=r.children,u=r.screenListeners,p=r.screenOptions,f=r.sceneContainerStyle,v=(0,e.default)(r,n),y=v.lazy,B=v.tabBarOptions,O=(0,e.default)(v,o),S={};B&&(Object.assign(S,{tabBarHideOnKeyboard:B.keyboardHidesTabBar,tabBarActiveTintColor:B.activeTintColor,tabBarInactiveTintColor:B.inactiveTintColor,tabBarActiveBackgroundColor:B.activeBackgroundColor,tabBarInactiveBackgroundColor:B.inactiveBackgroundColor,tabBarAllowFontScaling:B.allowFontScaling,tabBarShowLabel:B.showLabel,tabBarLabelStyle:B.labelStyle,tabBarIconStyle:B.iconStyle,tabBarItemStyle:B.tabStyle,tabBarLabelPosition:null!=(i=B.labelPosition)?i:!1===B.adaptive?'below-icon':void 0,tabBarStyle:[{display:B.tabBarVisible?'none':'flex'},S.tabBarStyle]}),Object.keys(S).forEach((function(e){void 0===S[e]&&delete S[e]})),(0,t.default)(B,"Bottom Tab Navigator: 'tabBarOptions' is deprecated. Migrate the options to 'screenOptions' instead.\n\nPlace the following in 'screenOptions' in your code to keep current behavior:\n\n"+JSON.stringify(S,null,2)+"\n\nSee https://reactnavigation.org/docs/bottom-tab-navigator#options for more details.")),'boolean'==typeof y&&(S.lazy=y,(0,t.default)(!0,"Bottom Tab Navigator: 'lazy' in props is deprecated. Move it to 'screenOptions' instead.\n\nSee https://reactnavigation.org/docs/bottom-tab-navigator/#lazy for more details."));var h=(0,_r(d[5]).useNavigationBuilder)(_r(d[5]).TabRouter,{id:l,initialRouteName:c,backBehavior:s,children:b,screenListeners:u,screenOptions:p,defaultScreenOptions:S}),k=h.state,C=h.descriptors,j=h.navigation,w=h.NavigationContent;return(0,_r(d[6]).jsx)(w,{children:(0,_r(d[6]).jsx)(a.default,Object.assign({},O,{state:k,navigation:j,descriptors:C,sceneContainerStyle:f}))})}))}),4935,[20,105,140,4325,4936,3450,180]);
|
|
5246
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(l){var u=l.tabBar,f=void 0===u?function(e){return(0,_r(d[8]).jsx)(o.default,Object.assign({},e))}:u,c=l.state,v=l.navigation,h=l.descriptors,p=l.safeAreaInsets,y=l.detachInactiveScreens,S=void 0===y?'web'===r.Platform.OS||'android'===r.Platform.OS||'ios'===r.Platform.OS:y,b=l.sceneContainerStyle,j=c.routes[c.index].key,O=n.useState([j]),x=(0,t.default)(O,2),P=x[0],w=x[1];P.includes(j)||w([].concat((0,e.default)(P),[j]));var _=_r(d[9]).SafeAreaProviderCompat.initialMetrics.frame,M=n.useState((function(){return(0,o.getTabBarHeight)({state:c,descriptors:h,dimensions:_,layout:{width:_.width,height:0},insets:Object.assign({},_r(d[9]).SafeAreaProviderCompat.initialMetrics.insets,l.safeAreaInsets),style:h[c.routes[c.index].key].options.tabBarStyle})})),k=(0,t.default)(M,2),B=k[0],C=k[1],A=c.routes;return(0,_r(d[8]).jsxs)(_r(d[9]).SafeAreaProviderCompat,{children:[(0,_r(d[8]).jsx)(_r(d[11]).MaybeScreenContainer,{enabled:S,hasTwoStates:!0,style:s.container,children:A.map((function(e,t){var n=h[e.key],a=n.options,o=a.lazy,l=void 0===o||o,u=a.unmountOnBlur,s=c.index===t;if(u&&!s)return null;if(l&&!P.includes(e.key)&&!s)return null;var f=n.options,v=f.freezeOnBlur,p=f.header,y=void 0===p?function(t){var n=t.layout,r=t.options;return(0,_r(d[8]).jsx)(_r(d[9]).Header,Object.assign({},r,{layout:n,title:(0,_r(d[9]).getHeaderTitle)(r,e.name)}))}:p,j=f.headerShown,O=f.headerStatusBarHeight,x=f.headerTransparent;return(0,_r(d[8]).jsx)(_r(d[11]).MaybeScreen,{style:[r.StyleSheet.absoluteFill,{zIndex:s?0:-1}],visible:s,enabled:S,freezeOnBlur:v,children:(0,_r(d[8]).jsx)(i.default.Provider,{value:B,children:(0,_r(d[8]).jsx)(_r(d[9]).Screen,{focused:s,route:n.route,navigation:n.navigation,headerShown:j,headerStatusBarHeight:O,headerTransparent:x,header:y({layout:_,route:n.route,navigation:n.navigation,options:n.options}),style:b,children:n.render()})})},e.key)}))}),(0,_r(d[8]).jsx)(a.default.Provider,{value:C,children:(0,_r(d[8]).jsx)(_r(d[10]).SafeAreaInsetsContext.Consumer,{children:function(e){var t,n,r,a,i,o,l,u;return f({state:c,descriptors:h,navigation:v,insets:{top:null!=(t=null!=(n=null==p?void 0:p.top)?n:null==e?void 0:e.top)?t:0,right:null!=(r=null!=(a=null==p?void 0:p.right)?a:null==e?void 0:e.right)?r:0,bottom:null!=(i=null!=(o=null==p?void 0:p.bottom)?o:null==e?void 0:e.bottom)?i:0,left:null!=(l=null!=(u=null==p?void 0:p.left)?u:null==e?void 0:e.left)?l:0}})}})})]})};var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=u(_r(d[3])),r=_r(d[4]),a=_r(d[0])(_r(d[5])),i=_r(d[0])(_r(d[6])),o=u(_r(d[7]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var s=r.StyleSheet.create({container:{flex:1,overflow:'hidden'}})}),4936,[20,23,34,140,18,4937,4938,4939,180,4331,3156,4952]);
|
|
5247
5247
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.createContext(void 0)}),4937,[140]);
|
|
5248
|
-
__d((function(g,
|
|
5249
|
-
__d((function(g,
|
|
5250
|
-
__d((function(g,
|
|
5251
|
-
__d((function(g,r,
|
|
5252
|
-
__d((function(g,r,_i,
|
|
5253
|
-
__d((function(
|
|
5254
|
-
__d((function(
|
|
5255
|
-
__d((function(g,r,
|
|
5256
|
-
__d((function(
|
|
5257
|
-
__d((function(
|
|
5258
|
-
__d((function(g,r,
|
|
5259
|
-
__d((function(g,r,i,a,m,e,d){
|
|
5260
|
-
__d((function(g,
|
|
5261
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.
|
|
5262
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.
|
|
5263
|
-
__d((function(g,
|
|
5264
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
5265
|
-
__d((function(g,
|
|
5266
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useInjectedWallet=void 0;var n=r(d[0])(r(d[1])),s=r(d[2]);e.useInjectedWallet=function(t){var o,M=t.webViewRef,c=(0,r(d[3]).useStores)().account,u=(0,r(d[4]).useMixins)().notify,I=(0,r(d[5]).useTheme)().translate,N=(0,r(d[6]).useConnectedDapps)().getDappInfoFromUrl,l=c.selectedWallet,D=(0,s.useMemo)((function(){return"\n function generateRandomString(length) {\n const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'\n let result = ''\n const charactersLength = characters.length\n for (let i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength))\n }\n return result\n }\n\n const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms))\n\n function generateUUID() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n var r = Math.random() * 16 | 0,\n v = c === 'x' ? r : (r & 0x3 | 0x8);\n return v.toString(16);\n });\n }\n const uuid = generateUUID()\n\n const emitMessage = (type, e, extraData) => {\n const id = Date.now().toString() + generateRandomString(10)\n window.ReactNativeWebView.postMessage(\n JSON.stringify({\n id,\n type,\n payload: e,\n extraData,\n dappInfo: {\n name: document.title,\n url: window.location.protocol + '//' + window.location.host\n }\n })\n )\n return id\n }\n\n const awaitResponse = (_id) => {\n return new Promise((resolve, reject) => {\n const handler = function(event) {\n const { id, error, response } = JSON.parse(event.data)\n if (id === _id) {\n window.removeEventListener('message', handler)\n if (error) {\n reject(error)\n } else {\n resolve(response)\n }\n }\n }\n window.addEventListener('message', handler)\n })\n }\n\n class ReadyEthereumProvider {\n isMetaMask = false\n isTronLink = false\n events = {}\n selectedAddress = ''\n chainId = '0x1'\n\n constructor() {\n //\n }\n\n on(event, listener) {\n // emitMessage('log-on', event)\n if (!this.events[event]) {\n this.events[event] = []\n }\n this.events[event].push(listener)\n }\n\n removeListener(event, listenerToRemove) {\n if (!this.events[event]) return\n this.events[event] = this.events[event].filter((listener) => listener !== listenerToRemove)\n }\n\n removeAllListeners(event) {\n if (!this.events[event]) return\n delete this.events[event]\n }\n\n emit(event, ...args) {\n if (!this.events[event]) return\n this.events[event].forEach((listener) => listener(...args))\n }\n\n isConnected() {\n return !!this.selectedAddress\n }\n\n eventNames() {\n return "+JSON.stringify(r(d[7]).SUPPORTED_EVENT)+"\n }\n\n async enable(e) {\n const _id = emitMessage('enable', e)\n const address = await awaitResponse(_id)\n this.selectedAddress = address\n return [address]\n }\n\n async request(e) {\n try {\n // emitMessage('log-request', e)\n let response = null\n switch (e.method) {\n case 'eth_requestAccounts': {\n const _id = emitMessage('request', e)\n const address = await awaitResponse(_id)\n this.selectedAddress = address\n response = [address]\n break\n }\n case 'eth_accounts': {\n const _id = emitMessage('request', e)\n const address = await awaitResponse(_id)\n if (address) {\n this.selectedAddress = address\n response = [address]\n } else {\n response = []\n }\n break\n }\n case 'eth_chainId': {\n const _id = emitMessage('request', e)\n const chainId = await awaitResponse(_id)\n this.chainId = chainId\n response = chainId\n break\n }\n case 'wallet_switchEthereumChain': {\n const _id = emitMessage('request', e)\n const chainId = await awaitResponse(_id)\n this.chainId = chainId\n break\n }\n case 'wallet_revokePermissions': {\n const _id = emitMessage('request', e)\n await awaitResponse(_id)\n this.selectedAddress = ''\n this.emit('disconnect')\n break\n }\n case 'wallet_requestPermissions': {\n const _id = emitMessage('request', e)\n const { id, address } = await awaitResponse(_id)\n this.selectedAddress = address\n response = [\n {\n date: Date.now(),\n id,\n parentCapability: 'eth_accounts',\n caveats: [\n {\n type: 'restrictReturnedAccounts',\n value: [address],\n },\n ],\n },\n ]\n break\n }\n case 'eth_gasPrice': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_call': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_estimateGas': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_getTransactionReceipt': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_getTransactionByHash': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_blockNumber': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'personal_sign':\n case 'eth_sign':\n case 'eth_signTransaction':\n case 'eth_signTypedData':\n case 'eth_signTypedData_v3':\n case 'eth_signTypedData_v4':\n case 'eth_sendRawTransaction':\n case 'eth_sendTransaction': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n default: {\n const _id = emitMessage('unhandled-request', e)\n response = await awaitResponse(_id)\n }\n }\n // emitMessage('log-request-response', e, response)\n return response\n } catch (e) {\n emitMessage('error-request', e)\n this.emit('error', e)\n throw e\n }\n }\n }\n\n const readyProvider = new ReadyEthereumProvider()\n\n window.ethereum = readyProvider\n window.otherEthereumProviderArray = [readyProvider]\n\n const announcementEvent = new CustomEvent('eip6963:announceProvider', {\n detail: {\n info: {\n rdns: 'io.goonus',\n uuid,\n name: 'ONUS',\n icon: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzI3Ml8yNjUpIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTMuNzA2NSAxNS4yNTU0QzEzLjg4MjQgMTUuMzU2MSAxNC4wODcyIDE1LjM5NDEgMTQuMjg3NSAxNS4zNjMxQzE0LjQ4NzggMTUuMzMyMiAxNC42NzE2IDE1LjIzNDIgMTQuODA4OSAxNS4wODUxQzE1LjQ3NyAxNC4zNjUxIDE2LjI4NjUgMTMuNzkwOCAxNy4xODY4IDEzLjM5OEMxOC4wODcgMTMuMDA1MiAxOS4wNTg3IDEyLjgwMjUgMjAuMDQwOSAxMi44MDI1QzIxLjAyMzEgMTIuODAyNSAyMS45OTQ4IDEzLjAwNTIgMjIuODk1IDEzLjM5OEMyMy43OTUzIDEzLjc5MDggMjQuNjA0OCAxNC4zNjUxIDI1LjI3MjkgMTUuMDg1MUMyNS40MTAxIDE1LjIzNDMgMjUuNTk0IDE1LjMzMjQgMjUuNzk0MyAxNS4zNjM0QzI1Ljk5NDYgMTUuMzk0MyAyNi4xOTk0IDE1LjM1NjIgMjYuMzc1MyAxNS4yNTU0TDI5LjUyMTQgMTMuNDM3NUMyOS42MzI2IDEzLjM3MzUgMjkuNzI4OCAxMy4yODYyIDI5LjgwMzIgMTMuMTgxN0MyOS44Nzc3IDEzLjA3NzEgMjkuOTI4NyAxMi45NTc3IDI5Ljk1MjggMTIuODMxNkMyOS45NzY5IDEyLjcwNTUgMjkuOTczNiAxMi41NzU4IDI5Ljk0MjkgMTIuNDUxMUMyOS45MTIzIDEyLjMyNjQgMjkuODU1MSAxMi4yMDk5IDI5Ljc3NTMgMTIuMTA5M0MyOC42MDQyIDEwLjY1NDEgMjcuMTIxOSA5LjQ3OTk3IDI1LjQzNzIgOC42NzMyNUMyMy43NTI1IDcuODY2NTIgMjEuOTA4NCA3LjQ0Nzc1IDIwLjA0MDUgNy40NDc3NUMxOC4xNzI2IDcuNDQ3NzUgMTYuMzI4NSA3Ljg2NjUyIDE0LjY0MzggOC42NzMyNUMxMi45NTkyIDkuNDc5OTcgMTEuNDc2OCAxMC42NTQxIDEwLjMwNTcgMTIuMTA5M0MxMC4yMjU5IDEyLjIwOTkgMTAuMTY4NyAxMi4zMjY0IDEwLjEzODEgMTIuNDUxMUMxMC4xMDc1IDEyLjU3NTggMTAuMTA0MSAxMi43MDU1IDEwLjEyODIgMTIuODMxNkMxMC4xNTIzIDEyLjk1NzcgMTAuMjAzMyAxMy4wNzcxIDEwLjI3NzggMTMuMTgxN0MxMC4zNTIyIDEzLjI4NjIgMTAuNDQ4NCAxMy4zNzM1IDEwLjU1OTYgMTMuNDM3NUwxMy43MDY1IDE1LjI1NTRaIiBmaWxsPSIjMDA2OEZGIi8+CjxwYXRoIGQ9Ik0yNi44NjYxIDE3LjgzOTFDMjcuMDk0NSAxOC41ODM0IDI3LjIgMTkuMzYgMjcuMTc4NiAyMC4xMzgzQzI3LjA3ODYgMjMuODcyNyAyNC4wNDk3IDI2LjkzNTIgMjAuMzE2MSAyNy4wNzgyQzE5LjE3NTggMjcuMTIxNSAxOC4wNDE3IDI2Ljg5MSAxNy4wMDg4IDI2LjQwNjFDMTUuOTc1OSAyNS45MjEyIDE1LjA3NDEgMjUuMTk1OSAxNC4zNzkgMjQuMjkxQzEzLjY4MzkgMjMuMzg2IDEzLjIxNTYgMjIuMzI3NyAxMy4wMTM0IDIxLjIwNDdDMTIuODExMyAyMC4wODE3IDEyLjg4MSAxOC45MjY1IDEzLjIxNjkgMTcuODM2QzEzLjI3NzcgMTcuNjQyNyAxMy4yNzA4IDE3LjQzNDQgMTMuMTk3NCAxNy4yNDU1QzEzLjEyNCAxNy4wNTY2IDEyLjk4ODQgMTYuODk4NCAxMi44MTMgMTYuNzk2OUw5LjY2NDUyIDE0Ljk4MjhDOS41NTQwMyAxNC45MTg1IDkuNDMwOTcgMTQuODc4NiA5LjMwMzcgMTQuODY2MUM5LjE3NjQ0IDE0Ljg1MzYgOS4wNDc5NyAxNC44Njg2IDguOTI3MDUgMTQuOTEwMkM4LjgwNjEyIDE0Ljk1MTggOC42OTU1OCAxNS4wMTkgOC42MDI5NiAxNS4xMDcxQzguNTEwMzMgMTUuMTk1MyA4LjQzNzggMTUuMzAyNCA4LjM5MDMgMTUuNDIxMUM3Ljc4NzggMTYuOTc0OSA3LjUwMjUgMTguNjMzNSA3LjU1MTI0IDIwLjI5OTJDNy43MzU2MSAyNi45MDk0IDEzLjEzOCAzMi4yODM2IDE5Ljc0OTcgMzIuNDM0NEMyMS44MDQ1IDMyLjQ4MTQgMjMuODM5MyAzMi4wMjA5IDI1LjY3MzcgMzEuMDkzOEMyNy41MDgxIDMwLjE2NjYgMjkuMDg1NiAyOC44MDE0IDMwLjI2NjQgMjcuMTE5MUMzMS40NDczIDI1LjQzNjggMzIuMTk1MSAyMy40ODkyIDMyLjQ0MzYgMjEuNDQ4OUMzMi42OTIxIDE5LjQwODYgMzIuNDMzNiAxNy4zMzg1IDMxLjY5MTEgMTUuNDIxOUMzMS42NDM3IDE1LjMwMzEgMzEuNTcxMiAxNS4xOTU5IDMxLjQ3ODYgMTUuMTA3N0MzMS4zODYgMTUuMDE5NCAzMS4yNzU1IDE0Ljk1MjIgMzEuMTU0NSAxNC45MTA1QzMxLjAzMzYgMTQuODY4OCAzMC45MDUxIDE0Ljg1MzcgMzAuNzc3OCAxNC44NjYyQzMwLjY1MDUgMTQuODc4NyAzMC41Mjc0IDE0LjkxODUgMzAuNDE2OSAxNC45ODI4TDI3LjI3IDE2Ljc5NjlDMjcuMDk0MiAxNi44OTg4IDI2Ljk1ODQgMTcuMDU3NiAyNi44ODUgMTcuMjQ3MUMyNi44MTE2IDE3LjQzNjUgMjYuODA0OSAxNy42NDUzIDI2Ljg2NjEgMTcuODM5MVYxNy44MzkxWiIgZmlsbD0iIzAwNjhGRiIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzI3Ml8yNjUiPgo8cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=='\n },\n provider: readyProvider\n },\n bubbles: false,\n cancelable: false\n })\n\n window.addEventListener('eip6963:requestProvider', () => {\n window.dispatchEvent(announcementEvent)\n })\n\n window.dispatchEvent(announcementEvent)\n "}),[]),j=function(n){var s;null==(s=M.current)||s.injectJavaScript("\n window.postMessage('"+JSON.stringify(n)+"')\n ")},h=(0,s.useCallback)((o=(0,n.default)((function*(n){var s=JSON.parse(n.nativeEvent.data),t=s.id,o=s.type,M=s.payload,c=s.extraData,D=s.dappInfo,h={id:t};o.startsWith('log-');try{switch(o){case'enable':var T,E=N(D.url);return yield r(d[8]).injectedWalletService.connect({dapp:{name:(null==E?void 0:E.name)||D.name,url:(null==E?void 0:E.website)||D.url,icons:null!=E&&E.logo?[E.logo]:void 0,description:(null==E||null==(T=E.description)?void 0:T.en)||''},walletAddress:l.address}),h.response=l.address,void j(h);case'request':switch(M.method){case'eth_requestAccounts':return yield r(d[8]).injectedWalletService.connect({dapp:{name:D.name,url:D.url,icons:[],description:''},walletAddress:l.address}),h.response=l.address,void j(h);case'eth_accounts':return r(d[8]).injectedWalletService.getActiveSession(D.url)&&(h.response=l.address),void j(h);case'eth_chainId':var p=r(d[8]).injectedWalletService.getActiveSession(D.url),v=(null==p?void 0:p.chainId)||r(d[9]).ChainId.MAINNET,y=(0,r(d[10]).getChainInfo)(v).chainNumber;return h.response='0x'+y.toString(16),void j(h);case'wallet_revokePermissions':return yield r(d[8]).injectedWalletService.disconnect(D.url),void j(h);case'wallet_requestPermissions':return yield r(d[8]).injectedWalletService.connect({dapp:{name:D.name,url:D.url,icons:[],description:''},walletAddress:l.address}),h.response={address:l.address,id:l.id},void j(h);case'eth_gasPrice':var x=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)});if(x){var w=yield r(d[11]).networkFeeService.getFeeData(x.chainId);h.response='0x'+w.gasPriceHex}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case'eth_call':var A=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),z=r(d[9]).RPC_PROVIDERS[null==A?void 0:A.chainId];return z?h.response=yield z.call(M.params[0]):h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported'),void j(h);case'eth_estimateGas':var O=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),S=r(d[9]).RPC_PROVIDERS[null==O?void 0:O.chainId];if(S)if(M.params[0].from.toLowerCase()!==l.address){var L=yield S.estimateGas(M.params[0]);h.response='0x'+r(d[13]).BlockChainUtils.amountToHex(L,0)}else{var _=yield l.getPrivateKeyPairByChain({chainId:O.chainId}),k=new(r(d[14]).Wallet)(_,S),C=yield k.estimateGas(M.params[0]);h.response='0x'+C.toString(16)}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case'wallet_switchEthereumChain':var U=parseInt(M.params[0].chainId,16),R=(0,r(d[10]).getChainFromId)({chainNumber:U});return R?(yield r(d[8]).injectedWalletService.changeChain({url:D.url,chainId:R.chainId,walletAddress:l.address}),h.response='0x'+R.id.toString(16)):(u('error',I('confirmTransactionScreen.error.chainNotSupported',{chain:U})),h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported')),void j(h);case'eth_getTransactionReceipt':var f=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),P=r(d[9]).RPC_PROVIDERS[null==f?void 0:f.chainId];if(P){var Q=yield P.getTransactionReceipt(M.params[0]);if(Q){var b=JSON.parse(JSON.stringify(Q));Object.keys(b).forEach((function(n){(['cumulativeGasUsed','gasPrice','gasUsed'].includes(n)||'number'==typeof b[n])&&null!==b[n]&&void 0!==b[n]&&''!==b[n]&&(b[n]='0x'+r(d[13]).BlockChainUtils.amountToHex(b[n].toString(),0))})),h.response=b}else h.response=Q}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case'eth_getTransactionByHash':var Y=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),G=r(d[9]).RPC_PROVIDERS[null==Y?void 0:Y.chainId];if(G){var q=yield G.getTransaction(M.params[0]);if(q){var H=JSON.parse(JSON.stringify(q));Object.keys(H).forEach((function(n){(['chainId','gasLimit','gasPrice','maxFeePerGas','maxPriorityFeePerGas','value'].includes(n)||'number'==typeof H[n])&&null!==H[n]&&void 0!==H[n]&&''!==H[n]&&(H[n]='0x'+r(d[13]).BlockChainUtils.amountToHex(H[n].toString(),0))})),h.response=H}else h.response=q}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case'eth_blockNumber':var W=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),B=r(d[9]).RPC_PROVIDERS[null==W?void 0:W.chainId];if(B){var F=yield B.getBlockNumber();h.response='0x'+r(d[13]).BlockChainUtils.amountToHex(F.toString(),0)}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case r(d[7]).EIP155_SIGNING_METHODS.ETH_SEND_RAW_TRANSACTION:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SEND_TRANSACTION:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN_TRANSACTION:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN_TYPED_DATA:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN_TYPED_DATA_V3:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN_TYPED_DATA_V4:case r(d[7]).EIP155_SIGNING_METHODS.PERSONAL_SIGN:var J,Z=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),V=N(D.url);return void r(d[15]).navigationRef.navigate('main',{screen:'walletStack',params:{screen:'confirmDAppTransaction',params:{injectedRequest:{id:t,dapp:{name:(null==V?void 0:V.name)||D.name,url:(null==V?void 0:V.website)||D.url,icons:null!=V&&V.logo?[V.logo]:void 0,description:(null==V||null==(J=V.description)?void 0:J.en)||''},params:{chainId:null==Z?void 0:Z.chainId,request:M}}}}})}return;case'unhandled-request':return h.error=r(d[12]).providerErrors.unsupportedMethod(),void j(h)}}catch(n){r(d[16]).Logger.error("Injected wallet "+M.method+": "+n),h.error=r(d[12]).rpcErrors.internal(),j(h)}})),function(n){return o.apply(this,arguments)}),[]);return(0,s.useEffect)((function(){var n=r(d[17]).EventBus.createListener(r(d[17]).AppEventType.INJECTED_WALLET_RESPONSE,(function(n){j(n)}));return function(){r(d[17]).EventBus.removeListener(n)}}),[]),{injectedScript:D,handleWebviewMessage:h}}}),4956,[20,316,140,701,3149,3165,4929,3295,3449,1479,1474,3056,3318,1058,2937,631,1413,1061]);
|
|
5267
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Header=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(o,s,a):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o})(_r(d[2])),n=_r(d[3]);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}_e.Header=(0,_r(d[4]).observer)((function(r){var o=r.closeBrowser,i=r.title,s=r.dapp,a=r.searchUrl,c=(0,_r(d[5]).useStores)(),l=c.dappStore,u=c.account,p=(0,_r(d[6]).useTheme)(),f=p.colors,w=p.translate,y=(0,_r(d[7]).useMixins)().notify,x=(0,_r(d[8]).useConnectedDapps)().isDappConnected,h=(0,t.useState)(!1),j=(0,e.default)(h,2),v=j[0],b=j[1],C=!!s,D=(0,t.useState)(!!C&&l.isFavoriteDApp(u.id,s)),O=(0,e.default)(D,2),_=O[0],P=O[1],k=x((null==s?void 0:s.website)||a);return(0,_r(d[9]).jsxs)(n.View,{children:[(0,_r(d[9]).jsx)(_r(d[10]).ChangeWalletModal,{dapp:s,isOpen:v,onClose:function(){b(!1)}}),(0,_r(d[9]).jsxs)(n.View,{style:{height:54,flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:4},children:[(0,_r(d[9]).jsx)(n.View,{style:{width:92,borderRadius:100,flexDirection:'row',alignItems:'center',marginLeft:12},children:(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:"arrow-left",containerStyle:{paddingVertical:12,paddingHorizontal:4},size:24,onPress:o})}),(0,_r(d[9]).jsx)(n.View,{style:{position:'absolute',left:92,right:92},children:(0,_r(d[9]).jsx)(_r(d[11]).Text,{text:i,size:'base',style:{paddingHorizontal:12,textAlign:'center'},numberOfLines:2})}),(0,_r(d[9]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'flex-end',width:92},children:[C&&(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:_?'star-fill':'star',color:_?f.warning:f.text,containerStyle:{paddingHorizontal:16},onPress:function(){P(!_),_?(l.removeFavoriteDApps(u.id,s),y('success',w('dapp.unFavoriteToast'),2e3,{icon:'trash',iconColor:f.error,customBackgroundColor:f.background})):(l.addFavoriteDApps(u.id,s),y('success',w('dapp.favoriteToast'),2e3,{icon:'check-circle',iconColor:f.success,customBackgroundColor:f.background}))}}),k&&(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:"wallet",containerStyle:{paddingRight:16},size:24,onPress:function(){return b(!0)}})]})]})]})}))}),4957,[20,34,140,18,686,701,3165,3149,4929,180,4958,3617]);
|
|
5268
|
-
__d((function(g,
|
|
5269
|
-
__d((function(g,
|
|
5270
|
-
__d((function(g,
|
|
5271
|
-
__d((function(g,r,i,a,m,
|
|
5272
|
-
__d((function(g,
|
|
5273
|
-
__d((function(g,
|
|
5274
|
-
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.
|
|
5248
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.createContext(void 0)}),4938,[140]);
|
|
5249
|
+
__d((function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var c=e.state,p=e.navigation,B=e.descriptors,S=e.insets,w=e.style,x=(0,r(d[8]).useTheme)().colors,k=(0,r(d[8]).useLinkBuilder)(),P=c.routes[c.index],A=B[P.key].options,C=A.tabBarShowLabel,L=A.tabBarHideOnKeyboard,j=void 0!==L&&L,T=A.tabBarVisibilityAnimationConfig,I=A.tabBarStyle,O=A.tabBarBackground,V=A.tabBarActiveTintColor,D=A.tabBarInactiveTintColor,E=A.tabBarActiveBackgroundColor,R=A.tabBarInactiveBackgroundColor,W=(0,r(d[9]).useSafeAreaFrame)(),z=(0,s.default)(),F=n.default.useContext(l.default),H=!(j&&z),M=n.default.useRef(T);n.default.useEffect((function(){M.current=T}));var N=n.default.useState(!H),_=(0,t.default)(N,2),K=_[0],Y=_[1],q=n.default.useState((function(){return new o.Animated.Value(H?1:0)})),G=(0,t.default)(q,1)[0];n.default.useEffect((function(){var t,e,n,l,s=M.current;H?('spring'===(null==s||null==(t=s.show)?void 0:t.animation)?o.Animated.spring:o.Animated.timing)(G,Object.assign({toValue:1,useNativeDriver:b,duration:250},null==s||null==(e=s.show)?void 0:e.config)).start((function(t){t.finished&&Y(!1)})):(Y(!0),('spring'===(null==s||null==(n=s.hide)?void 0:n.animation)?o.Animated.spring:o.Animated.timing)(G,Object.assign({toValue:0,useNativeDriver:b,duration:200},null==s||null==(l=s.hide)?void 0:l.config)).start());return function(){return G.stopAnimation()}}),[G,H]);var J=n.default.useState({height:0,width:W.width}),Q=(0,t.default)(J,2),U=Q[0],X=Q[1],Z=c.routes,$=h(S),tt=v({state:c,descriptors:B,insets:S,dimensions:W,layout:U,style:[I,w]}),et=f({state:c,descriptors:B,dimensions:W,layout:U}),it=null==O?void 0:O();return(0,r(d[10]).jsxs)(o.Animated.View,{style:[y.tabBar,{backgroundColor:null!=it?'transparent':x.card,borderTopColor:x.border},{transform:[{translateY:G.interpolate({inputRange:[0,1],outputRange:[U.height+$+o.StyleSheet.hairlineWidth,0]})}],position:K?'absolute':null},{height:tt,paddingBottom:$,paddingHorizontal:Math.max(S.left,S.right)},I],pointerEvents:K?'none':'auto',onLayout:function(t){var e=t.nativeEvent.layout,n=e.height,o=e.width;null==F||F(n),X((function(t){return n===t.height&&o===t.width?t:{height:n,width:o}}))},children:[(0,r(d[10]).jsx)(o.View,{pointerEvents:"none",style:o.StyleSheet.absoluteFill,children:it}),(0,r(d[10]).jsx)(o.View,{accessibilityRole:"tablist",style:y.content,children:Z.map((function(t,e){var n,l=e===c.index,s=B[t.key].options,b=void 0!==s.tabBarLabel?s.tabBarLabel:void 0!==s.title?s.title:t.name,f=void 0!==s.tabBarAccessibilityLabel?s.tabBarAccessibilityLabel:'string'==typeof b&&'ios'===o.Platform.OS?b+", tab, "+(e+1)+" of "+Z.length:void 0;return(0,r(d[10]).jsx)(r(d[8]).NavigationContext.Provider,{value:B[t.key].navigation,children:(0,r(d[10]).jsx)(r(d[8]).NavigationRouteContext.Provider,{value:t,children:(0,r(d[10]).jsx)(u.default,{route:t,descriptor:B[t.key],focused:l,horizontal:et,onPress:function(){var e=p.emit({type:'tabPress',target:t.key,canPreventDefault:!0});l||e.defaultPrevented||p.dispatch(Object.assign({},r(d[8]).CommonActions.navigate({name:t.name,merge:!0}),{target:c.key}))},onLongPress:function(){p.emit({type:'tabLongPress',target:t.key})},accessibilityLabel:f,to:k(t.name,t.params),testID:s.tabBarTestID,allowFontScaling:s.tabBarAllowFontScaling,activeTintColor:V,inactiveTintColor:D,activeBackgroundColor:E,inactiveBackgroundColor:R,button:s.tabBarButton,icon:null!=(n=s.tabBarIcon)?n:function(t){var e=t.color,n=t.size;return(0,r(d[10]).jsx)(r(d[11]).MissingIcon,{color:e,size:n})},badge:s.tabBarBadge,badgeStyle:s.tabBarBadgeStyle,label:b,showLabel:C,labelStyle:s.tabBarLabelStyle,iconStyle:s.tabBarIconStyle,style:s.tabBarItemStyle})})},t.key)}))})]})},_e.getTabBarHeight=void 0;var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[4]),l=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),u=r(d[0])(r(d[7])),c=["state","descriptors","dimensions","insets","style"],b='web'!==o.Platform.OS,f=function(t){var e=t.state,n=t.descriptors,l=t.layout,s=t.dimensions,u=n[e.routes[e.index].key].options.tabBarLabelPosition;if(u)switch(u){case'beside-icon':return!0;case'below-icon':return!1}return l.width>=768?e.routes.reduce((function(t,e){var l=n[e.key].options.tabBarItemStyle,s=o.StyleSheet.flatten(l);if(s){if('number'==typeof s.width)return t+s.width;if('number'==typeof s.maxWidth)return t+s.maxWidth}return t+125}),0)<=l.width:s.width>s.height},h=function(t){return Math.max(t.bottom-o.Platform.select({ios:4,default:0}),0)},v=_e.getTabBarHeight=function(t){var n,l=t.state,s=t.descriptors,u=t.dimensions,b=t.insets,v=t.style,y=(0,e.default)(t,c),p=null==(n=o.StyleSheet.flatten(v))?void 0:n.height;if('number'==typeof p)return p;var B=u.width>u.height,S=f(Object.assign({state:l,descriptors:s,dimensions:u},y)),w=h(b);return'ios'===o.Platform.OS&&!o.Platform.isPad&&B&&S?32+w:49+w};var y=o.StyleSheet.create({tabBar:{left:0,right:0,bottom:0,borderTopWidth:o.StyleSheet.hairlineWidth,elevation:8},content:{flex:1,flexDirection:'row'}})}),4939,[20,34,105,140,18,4937,4940,4941,3450,3156,180,4331]);
|
|
5250
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var n=r.useState(!1),o=(0,e.default)(n,2),a=o[0],u=o[1];return r.useEffect((function(){var e,r=function(){return u(!0)},n=function(){return u(!1)};return e='ios'===t.Platform.OS?[t.Keyboard.addListener('keyboardWillShow',r),t.Keyboard.addListener('keyboardWillHide',n)]:[t.Keyboard.addListener('keyboardDidShow',r),t.Keyboard.addListener('keyboardDidHide',n)],function(){e.forEach((function(e){return e.remove()}))}}),[]),a};var e=_r(d[0])(_r(d[1])),r=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(o,u,i):o[u]=e[u]}return o.default=e,t&&t.set(e,o),o})(_r(d[2])),t=_r(d[3]);function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}}),4940,[20,34,140,18]);
|
|
5251
|
+
__d((function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(b){var u=b.focused,f=b.route,y=b.descriptor,v=b.label,h=b.icon,p=b.badge,x=b.badgeStyle,P=b.to,S=b.button,L=void 0===S?function(t){var l=t.children,o=t.style,b=t.onPress,u=t.to,f=t.accessibilityRole,y=(0,e.default)(t,s);return'web'===n.Platform.OS&&u?(0,r(d[6]).jsx)(r(d[7]).Link,Object.assign({},y,{to:u,style:[c.button,o],onPress:function(e){e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||null!=e.button&&0!==e.button||(e.preventDefault(),null==b||b(e))},children:l})):(0,r(d[6]).jsx)(n.Pressable,Object.assign({},y,{accessibilityRole:f,onPress:b,style:o,children:l}))}:S,j=b.accessibilityLabel,C=b.testID,B=b.onPress,O=b.onLongPress,T=b.horizontal,w=b.activeTintColor,k=b.inactiveTintColor,D=b.activeBackgroundColor,z=void 0===D?'transparent':D,I=b.inactiveBackgroundColor,K=void 0===I?'transparent':I,R=b.showLabel,_=void 0===R||R,F=b.allowFontScaling,A=b.labelStyle,M=b.iconStyle,q=b.style,E=(0,r(d[7]).useTheme)().colors,G=void 0===w?E.primary:w,H=void 0===k?(0,t.default)(E.text).mix((0,t.default)(E.card),.5).hex():k,J={route:f,focused:u},N=u?z:K;return L({to:P,onPress:B,onLongPress:O,testID:C,accessibilityLabel:j,accessibilityRole:n.Platform.select({ios:'button',default:'tab'}),accessibilityState:{selected:u},accessibilityStates:u?['selected']:[],style:[c.tab,{backgroundColor:N},T?c.tabLandscape:c.tabPortrait,q],children:(0,r(d[6]).jsxs)(l.default.Fragment,{children:[(function(e){var t=e.focused;if(void 0===h)return null;var l=t?1:0,n=t?0:1;return(0,r(d[6]).jsx)(o.default,{route:f,horizontal:T,badge:p,badgeStyle:x,activeOpacity:l,inactiveOpacity:n,activeTintColor:G,inactiveTintColor:H,renderIcon:h,style:M})})(J),(function(e){var t=e.focused;if(!1===_)return null;var l=t?G:H;if('string'==typeof v)return(0,r(d[6]).jsx)(n.Text,{numberOfLines:1,style:[c.label,{color:l},T?c.labelBeside:c.labelBeneath,A],allowFontScaling:F,children:v});var o=y.options,s='string'==typeof o.tabBarLabel?o.tabBarLabel:void 0!==o.title?o.title:f.name;return v({focused:t,color:l,position:T?'beside-icon':'below-icon',children:s})})(J)]})})};var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),n=r(d[4]),o=r(d[0])(r(d[5])),s=["children","style","onPress","to","accessibilityRole"];var c=n.StyleSheet.create({tab:{flex:1,alignItems:'center'},tabPortrait:{justifyContent:'flex-end',flexDirection:'column'},tabLandscape:{justifyContent:'center',flexDirection:'row'},label:{textAlign:'center',backgroundColor:'transparent'},labelBeneath:{fontSize:10},labelBeside:{fontSize:13,marginLeft:20,marginTop:3},button:{display:'flex'}})}),4941,[20,105,4942,140,18,4950,180,3450]);
|
|
5252
|
+
__d((function(g,r,_i,_a,_m,e,d){var t=['keyword','gray','hex'],o={};for(var n of Object.keys(r(d[0])))o[r(d[1])(r(d[0])[n].labels).sort().join('')]=n;var a={};function i(n,h){if(!(this instanceof i))return new i(n,h);if(h&&h in t&&(h=null),h&&!(h in r(d[0])))throw new Error('Unknown model: '+h);var l,s;if(null==n)this.model='rgb',this.color=[0,0,0],this.valpha=1;else if(n instanceof i)this.model=n.model,this.color=r(d[1])(n.color),this.valpha=n.valpha;else if('string'==typeof n){var c=r(d[2]).get(n);if(null===c)throw new Error('Unable to parse color from string: '+n);this.model=c.model,s=r(d[0])[this.model].channels,this.color=c.value.slice(0,s),this.valpha='number'==typeof c.value[s]?c.value[s]:1}else if(n.length>0){this.model=h||'rgb',s=r(d[0])[this.model].channels;var u=Array.prototype.slice.call(n,0,s);this.color=v(u,s),this.valpha='number'==typeof n[s]?n[s]:1}else if('number'==typeof n)this.model='rgb',this.color=[n>>16&255,n>>8&255,255&n],this.valpha=1;else{this.valpha=1;var f=Object.keys(n);'alpha'in n&&(f.splice(f.indexOf('alpha'),1),this.valpha='number'==typeof n.alpha?n.alpha:0);var p=f.sort().join('');if(!(p in o))throw new Error('Unable to parse color from object: '+JSON.stringify(n));this.model=o[p];var b=r(d[0])[this.model].labels,m=[];for(l=0;l<b.length;l++)m.push(n[b[l]]);this.color=v(m)}if(a[this.model])for(s=r(d[0])[this.model].channels,l=0;l<s;l++){var y=a[this.model][l];y&&(this.color[l]=y(this.color[l]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}i.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var o=this.model in r(d[2]).to?this:this.rgb(),n=1===(o=o.round('number'==typeof t?t:1)).valpha?o.color:[].concat(r(d[1])(o.color),[this.valpha]);return r(d[2]).to[o.model](n)},percentString:function(t){var o=this.rgb().round('number'==typeof t?t:1),n=1===o.valpha?o.color:[].concat(r(d[1])(o.color),[this.valpha]);return r(d[2]).to.rgb.percent(n)},array:function(){return 1===this.valpha?r(d[1])(this.color):[].concat(r(d[1])(this.color),[this.valpha])},object:function(){for(var t={},o=r(d[0])[this.model].channels,n=r(d[0])[this.model].labels,a=0;a<o;a++)t[n[a]]=this.color[a];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new i([].concat(r(d[1])(this.color.map(c(t))),[this.valpha]),this.model)},alpha:function(t){return void 0!==t?new i([].concat(r(d[1])(this.color),[Math.max(0,Math.min(1,t))]),this.model):this.valpha},red:u('rgb',0,f(255)),green:u('rgb',1,f(255)),blue:u('rgb',2,f(255)),hue:u(['hsl','hsv','hsl','hwb','hcg'],0,(function(t){return(t%360+360)%360})),saturationl:u('hsl',1,f(100)),lightness:u('hsl',2,f(100)),saturationv:u('hsv',1,f(100)),value:u('hsv',2,f(100)),chroma:u('hcg',1,f(100)),gray:u('hcg',2,f(100)),white:u('hwb',1,f(100)),wblack:u('hwb',2,f(100)),cyan:u('cmyk',0,f(100)),magenta:u('cmyk',1,f(100)),yellow:u('cmyk',2,f(100)),black:u('cmyk',3,f(100)),x:u('xyz',0,f(95.047)),y:u('xyz',1,f(100)),z:u('xyz',2,f(108.833)),l:u('lab',0,f(100)),a:u('lab',1),b:u('lab',2),keyword:function(t){return void 0!==t?new i(t):r(d[0])[this.model].keyword(this.color)},hex:function(t){return void 0!==t?new i(t):r(d[2]).to.hex(this.rgb().round().color)},hexa:function(t){if(void 0!==t)return new i(t);var o=this.rgb().round().color,n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n='0'+n),r(d[2]).to.hex(o)+n},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){var t=this.rgb().color,o=[];for(var n of t.entries()){var a=r(d[3])(n,2),i=a[0],h=a[1]/255;o[i]=h<=.04045?h/12.92:((h+.055)/1.055)**2.4}return.2126*o[0]+.7152*o[1]+.0722*o[2]},contrast:function(t){var o=this.luminosity(),n=t.luminosity();return o>n?(o+.05)/(n+.05):(n+.05)/(o+.05)},level:function(t){var o=this.contrast(t);return o>=7?'AAA':o>=4.5?'AA':''},isDark:function(){var t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),o=0;o<3;o++)t.color[o]=255-t.color[o];return t},lighten:function(t){var o=this.hsl();return o.color[2]+=o.color[2]*t,o},darken:function(t){var o=this.hsl();return o.color[2]-=o.color[2]*t,o},saturate:function(t){var o=this.hsl();return o.color[1]+=o.color[1]*t,o},desaturate:function(t){var o=this.hsl();return o.color[1]-=o.color[1]*t,o},whiten:function(t){var o=this.hwb();return o.color[1]+=o.color[1]*t,o},blacken:function(t){var o=this.hwb();return o.color[2]+=o.color[2]*t,o},grayscale:function(){var t=this.rgb().color,o=.3*t[0]+.59*t[1]+.11*t[2];return i.rgb(o,o,o)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var o=this.hsl(),n=o.color[0];return n=(n=(n+t)%360)<0?360+n:n,o.color[0]=n,o},mix:function(t,o){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),a=this.rgb(),h=void 0===o?.5:o,l=2*h-1,s=n.alpha()-a.alpha(),c=((l*s==-1?l:(l+s)/(1+l*s))+1)/2,u=1-c;return i.rgb(c*n.red()+u*a.red(),c*n.green()+u*a.green(),c*n.blue()+u*a.blue(),n.alpha()*h+a.alpha()*(1-h))}};var h=function(o){if(t.includes(o))return 1;var n=r(d[0])[o].channels;i.prototype[o]=function(){if(this.model===o)return new i(this);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return n.length>0?new i(n,o):new i([].concat(r(d[1])((h=r(d[0])[this.model][o].raw(this.color),Array.isArray(h)?h:[h])),[this.valpha]),o);var h},i[o]=function(){for(var t=arguments.length,a=new Array(t),h=0;h<t;h++)a[h]=arguments[h];var l=a[0];return'number'==typeof l&&(l=v(a,n)),new i(l,o)}};for(var l of Object.keys(r(d[0])))h(l);function s(t,o){return Number(t.toFixed(o))}function c(t){return function(o){return s(o,t)}}function u(t,o,n){for(var i of t=Array.isArray(t)?t:[t])(a[i]||(a[i]=[]))[o]=n;return t=t[0],function(a){var i;return void 0!==a?(n&&(a=n(a)),(i=this[t]()).color[o]=a,i):(i=this[t]().color[o],n&&(i=n(i)),i)}}function f(t){return function(o){return Math.max(0,Math.min(t,o))}}function v(t,o){for(var n=0;n<o;n++)'number'!=typeof t[n]&&(t[n]=0);return t}_m.exports=i}),4942,[4943,23,4947,34]);
|
|
5253
|
+
__d((function(g,r,_i,a,m,e,d){var n={};function o(n){var o=function(){for(var o=arguments.length,t=new Array(o),c=0;c<o;c++)t[c]=arguments[c];var i=t[0];return null==i?i:(i.length>1&&(t=i),n(t))};return'conversion'in n&&(o.conversion=n.conversion),o}function t(n){var o=function(){for(var o=arguments.length,t=new Array(o),c=0;c<o;c++)t[c]=arguments[c];var i=t[0];if(null==i)return i;i.length>1&&(t=i);var v=n(t);if('object'==typeof v)for(var f=v.length,l=0;l<f;l++)v[l]=Math.round(v[l]);return v};return'conversion'in n&&(o.conversion=n.conversion),o}Object.keys(r(d[0])).forEach((function(c){n[c]={},Object.defineProperty(n[c],'channels',{value:r(d[0])[c].channels}),Object.defineProperty(n[c],'labels',{value:r(d[0])[c].labels});var i=r(d[1])(c);Object.keys(i).forEach((function(v){var f=i[v];n[c][v]=t(f),n[c][v].raw=o(f)}))})),m.exports=n}),4943,[4944,4946]);
|
|
5254
|
+
__d((function(_g,_r,_i,_a,_m,e,d){var r={};for(var n of Object.keys(_r(d[0])))r[_r(d[0])[n]]=n;var a={rgb:{channels:3,labels:'rgb'},hsl:{channels:3,labels:'hsl'},hsv:{channels:3,labels:'hsv'},hwb:{channels:3,labels:'hwb'},cmyk:{channels:4,labels:'cmyk'},xyz:{channels:3,labels:'xyz'},lab:{channels:3,labels:'lab'},lch:{channels:3,labels:'lch'},hex:{channels:1,labels:['hex']},keyword:{channels:1,labels:['keyword']},ansi16:{channels:1,labels:['ansi16']},ansi256:{channels:1,labels:['ansi256']},hcg:{channels:3,labels:['h','c','g']},apple:{channels:3,labels:['r16','g16','b16']},gray:{channels:1,labels:['gray']}};for(var t of(_m.exports=a,Object.keys(a))){if(!('channels'in a[t]))throw new Error('missing channels property: '+t);if(!('labels'in a[t]))throw new Error('missing channel labels property: '+t);if(a[t].labels.length!==a[t].channels)throw new Error('channel and label counts mismatch: '+t);var h=a[t],u=h.channels,c=h.labels;delete a[t].channels,delete a[t].labels,Object.defineProperty(a[t],'channels',{value:u}),Object.defineProperty(a[t],'labels',{value:c})}a.rgb.hsl=function(r){var n,a=r[0]/255,t=r[1]/255,h=r[2]/255,u=Math.min(a,t,h),c=Math.max(a,t,h),s=c-u;c===u?n=0:a===c?n=(t-h)/s:t===c?n=2+(h-a)/s:h===c&&(n=4+(a-t)/s),(n=Math.min(60*n,360))<0&&(n+=360);var l=(u+c)/2;return[n,100*(c===u?0:l<=.5?s/(c+u):s/(2-c-u)),100*l]},a.rgb.hsv=function(r){var n,a,t,h,u,c=r[0]/255,s=r[1]/255,l=r[2]/255,i=Math.max(c,s,l),o=i-Math.min(c,s,l),b=function(r){return(i-r)/6/o+.5};return 0===o?(h=0,u=0):(u=o/i,n=b(c),a=b(s),t=b(l),c===i?h=t-a:s===i?h=.3333333333333333+n-t:l===i&&(h=.6666666666666666+a-n),h<0?h+=1:h>1&&(h-=1)),[360*h,100*u,100*i]},a.rgb.hwb=function(r){var n=r[0],t=r[1],h=r[2];return[a.rgb.hsl(r)[0],100*(.00392156862745098*Math.min(n,Math.min(t,h))),100*(h=1-.00392156862745098*Math.max(n,Math.max(t,h)))]},a.rgb.cmyk=function(r){var n=r[0]/255,a=r[1]/255,t=r[2]/255,h=Math.min(1-n,1-a,1-t);return[100*((1-n-h)/(1-h)||0),100*((1-a-h)/(1-h)||0),100*((1-t-h)/(1-h)||0),100*h]},a.rgb.keyword=function(n){var a=r[n];if(a)return a;var t,h,u,c=1/0;for(var s of Object.keys(_r(d[0]))){var l=_r(d[0])[s],i=(u=l,((h=n)[0]-u[0])**2+(h[1]-u[1])**2+(h[2]-u[2])**2);i<c&&(c=i,t=s)}return t},a.keyword.rgb=function(r){return _r(d[0])[r]},a.rgb.xyz=function(r){var n=r[0]/255,a=r[1]/255,t=r[2]/255;return[100*(.4124*(n=n>.04045?((n+.055)/1.055)**2.4:n/12.92)+.3576*(a=a>.04045?((a+.055)/1.055)**2.4:a/12.92)+.1805*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)),100*(.2126*n+.7152*a+.0722*t),100*(.0193*n+.1192*a+.9505*t)]},a.rgb.lab=function(r){var n=a.rgb.xyz(r),t=n[0],h=n[1],u=n[2];return[116*(h=(h/=100)>.008856?h**.3333333333333333:7.787*h+.13793103448275862)-16,500*((t=(t/=95.047)>.008856?t**.3333333333333333:7.787*t+.13793103448275862)-h),200*(h-(u=(u/=108.883)>.008856?u**.3333333333333333:7.787*u+.13793103448275862))]},a.hsl.rgb=function(r){var n,a,t,h=r[0]/360,u=r[1]/100,c=r[2]/100;if(0===u)return[t=255*c,t,t];for(var s=2*c-(n=c<.5?c*(1+u):c+u-c*u),l=[0,0,0],i=0;i<3;i++)(a=h+.3333333333333333*-(i-1))<0&&a++,a>1&&a--,t=6*a<1?s+6*(n-s)*a:2*a<1?n:3*a<2?s+(n-s)*(.6666666666666666-a)*6:s,l[i]=255*t;return l},a.hsl.hsv=function(r){var n=r[0],a=r[1]/100,t=r[2]/100,h=a,u=Math.max(t,.01);return a*=(t*=2)<=1?t:2-t,h*=u<=1?u:2-u,[n,100*(0===t?2*h/(u+h):2*a/(t+a)),100*((t+a)/2)]},a.hsv.rgb=function(r){var n=r[0]/60,a=r[1]/100,t=r[2]/100,h=Math.floor(n)%6,u=n-Math.floor(n),c=255*t*(1-a),s=255*t*(1-a*u),l=255*t*(1-a*(1-u));switch(t*=255,h){case 0:return[t,l,c];case 1:return[s,t,c];case 2:return[c,t,l];case 3:return[c,s,t];case 4:return[l,c,t];case 5:return[t,c,s]}},a.hsv.hsl=function(r){var n,a,t=r[0],h=r[1]/100,u=r[2]/100,c=Math.max(u,.01);a=(2-h)*u;var s=(2-h)*c;return n=h*c,[t,100*(n=(n/=s<=1?s:2-s)||0),100*(a/=2)]},a.hwb.rgb=function(r){var n,a=r[0]/360,t=r[1]/100,h=r[2]/100,u=t+h;u>1&&(t/=u,h/=u);var c=Math.floor(6*a),s=1-h;n=6*a-c,1&c&&(n=1-n);var l,i,o,b=t+n*(s-t);switch(c){default:case 6:case 0:l=s,i=b,o=t;break;case 1:l=b,i=s,o=t;break;case 2:l=t,i=s,o=b;break;case 3:l=t,i=b,o=s;break;case 4:l=b,i=t,o=s;break;case 5:l=s,i=t,o=b}return[255*l,255*i,255*o]},a.cmyk.rgb=function(r){var n=r[0]/100,a=r[1]/100,t=r[2]/100,h=r[3]/100;return[255*(1-Math.min(1,n*(1-h)+h)),255*(1-Math.min(1,a*(1-h)+h)),255*(1-Math.min(1,t*(1-h)+h))]},a.xyz.rgb=function(r){var n,a,t,h=r[0]/100,u=r[1]/100,c=r[2]/100;return n=(n=3.2406*h+-1.5372*u+-.4986*c)>.0031308?1.055*n**.4166666666666667-.055:12.92*n,a=(a=-.9689*h+1.8758*u+.0415*c)>.0031308?1.055*a**.4166666666666667-.055:12.92*a,t=(t=.0557*h+-.204*u+1.057*c)>.0031308?1.055*t**.4166666666666667-.055:12.92*t,[255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1)),255*(t=Math.min(Math.max(0,t),1))]},a.xyz.lab=function(r){var n=r[0],a=r[1],t=r[2];return[116*(a=(a/=100)>.008856?a**.3333333333333333:7.787*a+.13793103448275862)-16,500*((n=(n/=95.047)>.008856?n**.3333333333333333:7.787*n+.13793103448275862)-a),200*(a-(t=(t/=108.883)>.008856?t**.3333333333333333:7.787*t+.13793103448275862))]},a.lab.xyz=function(r){var n,a,t,h=(a=(r[0]+16)/116)**3,u=(n=r[1]/500+a)**3,c=(t=a-r[2]/200)**3;return a=h>.008856?h:(a-.13793103448275862)/7.787,n=u>.008856?u:(n-.13793103448275862)/7.787,t=c>.008856?c:(t-.13793103448275862)/7.787,[n*=95.047,a*=100,t*=108.883]},a.lab.lch=function(r){var n,a=r[0],t=r[1],h=r[2];return(n=360*Math.atan2(h,t)/2/Math.PI)<0&&(n+=360),[a,Math.sqrt(t*t+h*h),n]},a.lch.lab=function(r){var n=r[0],a=r[1],t=r[2]/360*2*Math.PI;return[n,a*Math.cos(t),a*Math.sin(t)]},a.rgb.ansi16=function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=_r(d[1])(r,3),h=t[0],u=t[1],c=t[2],s=null===n?a.rgb.hsv(r)[2]:n;if(0===(s=Math.round(s/50)))return 30;var l=30+(Math.round(c/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return 2===s&&(l+=60),l},a.hsv.ansi16=function(r){return a.rgb.ansi16(a.hsv.rgb(r),r[2])},a.rgb.ansi256=function(r){var n=r[0],a=r[1],t=r[2];return n===a&&a===t?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(a/255*5)+Math.round(t/255*5)},a.ansi16.rgb=function(r){var n=r%10;if(0===n||7===n)return r>50&&(n+=3.5),[n=n/10.5*255,n,n];var a=.5*(1+~~(r>50));return[(1&n)*a*255,(n>>1&1)*a*255,(n>>2&1)*a*255]},a.ansi256.rgb=function(r){if(r>=232){var n=10*(r-232)+8;return[n,n,n]}var a;return r-=16,[Math.floor(r/36)/5*255,Math.floor((a=r%36)/6)/5*255,a%6/5*255]},a.rgb.hex=function(r){var n=(((255&Math.round(r[0]))<<16)+((255&Math.round(r[1]))<<8)+(255&Math.round(r[2]))).toString(16).toUpperCase();return'000000'.substring(n.length)+n},a.hex.rgb=function(r){var n=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];var a=n[0];3===n[0].length&&(a=a.split('').map((function(r){return r+r})).join(''));var t=parseInt(a,16);return[t>>16&255,t>>8&255,255&t]},a.rgb.hcg=function(r){var n,a=r[0]/255,t=r[1]/255,h=r[2]/255,u=Math.max(Math.max(a,t),h),c=Math.min(Math.min(a,t),h),s=u-c;return n=s<=0?0:u===a?(t-h)/s%6:u===t?2+(h-a)/s:4+(a-t)/s,n/=6,[360*(n%=1),100*s,100*(s<1?c/(1-s):0)]},a.hsl.hcg=function(r){var n=r[1]/100,a=r[2]/100,t=a<.5?2*n*a:2*n*(1-a),h=0;return t<1&&(h=(a-.5*t)/(1-t)),[r[0],100*t,100*h]},a.hsv.hcg=function(r){var n=r[1]/100,a=r[2]/100,t=n*a,h=0;return t<1&&(h=(a-t)/(1-t)),[r[0],100*t,100*h]},a.hcg.rgb=function(r){var n=r[0]/360,a=r[1]/100,t=r[2]/100;if(0===a)return[255*t,255*t,255*t];var h,u=[0,0,0],c=n%1*6,s=c%1,l=1-s;switch(Math.floor(c)){case 0:u[0]=1,u[1]=s,u[2]=0;break;case 1:u[0]=l,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=s;break;case 3:u[0]=0,u[1]=l,u[2]=1;break;case 4:u[0]=s,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=l}return h=(1-a)*t,[255*(a*u[0]+h),255*(a*u[1]+h),255*(a*u[2]+h)]},a.hcg.hsv=function(r){var n=r[1]/100,a=n+r[2]/100*(1-n),t=0;return a>0&&(t=n/a),[r[0],100*t,100*a]},a.hcg.hsl=function(r){var n=r[1]/100,a=r[2]/100*(1-n)+.5*n,t=0;return a>0&&a<.5?t=n/(2*a):a>=.5&&a<1&&(t=n/(2*(1-a))),[r[0],100*t,100*a]},a.hcg.hwb=function(r){var n=r[1]/100,a=n+r[2]/100*(1-n);return[r[0],100*(a-n),100*(1-a)]},a.hwb.hcg=function(r){var n=r[1]/100,a=1-r[2]/100,t=a-n,h=0;return t<1&&(h=(a-t)/(1-t)),[r[0],100*t,100*h]},a.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]},a.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]},a.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]},a.gray.hsl=function(r){return[0,0,r[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(r){return[0,100,r[0]]},a.gray.cmyk=function(r){return[0,0,0,r[0]]},a.gray.lab=function(r){return[r[0],0,0]},a.gray.hex=function(r){var n=255&Math.round(r[0]/100*255),a=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return'000000'.substring(a.length)+a},a.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}}),4944,[4945,34]);
|
|
5255
|
+
__d((function(g,r,i,a,m,e,d){'use strict';m.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),4945,[]);
|
|
5256
|
+
__d((function(g,r,_i,a,m,e,d){function n(){for(var n={},t=Object.keys(r(d[0])),u=t.length,c=0;c<u;c++)n[t[c]]={distance:-1,parent:null};return n}function t(t){var u=n(),c=[t];for(u[t].distance=0;c.length;)for(var o=c.pop(),i=Object.keys(r(d[0])[o]),f=i.length,p=0;p<f;p++){var s=i[p],l=u[s];-1===l.distance&&(l.distance=u[o].distance+1,l.parent=o,c.unshift(s))}return u}function u(n,t){return function(u){return t(n(u))}}function c(n,t){for(var c=[t[n].parent,n],o=r(d[0])[t[n].parent][n],i=t[n].parent;t[i].parent;)c.unshift(t[i].parent),o=u(r(d[0])[t[i].parent][i],o),i=t[i].parent;return o.conversion=c,o}m.exports=function(n){for(var u=t(n),o={},i=Object.keys(u),f=i.length,p=0;p<f;p++){var s=i[p];null!==u[s].parent&&(o[s]=c(s,u))}return o}}),4946,[4944]);
|
|
5257
|
+
__d((function(_g,_r,_i,_a,m,e,d){var r=Object.hasOwnProperty,t=Object.create(null);for(var a in _r(d[0]))r.call(_r(d[0]),a)&&(t[_r(d[0])[a]]=a);var n=m.exports={to:{},get:{}};function s(r,t,a){return Math.min(Math.max(t,r),a)}function o(r){var t=Math.round(r).toString(16).toUpperCase();return t.length<2?'0'+t:t}n.get=function(r){var t,a;switch(r.substring(0,3).toLowerCase()){case'hsl':t=n.get.hsl(r),a='hsl';break;case'hwb':t=n.get.hwb(r),a='hwb';break;default:t=n.get.rgb(r),a='rgb'}return t?{model:a,value:t}:null},n.get.rgb=function(t){if(!t)return null;var a,n,o,l=[0,0,0,1];if(a=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=a[2],a=a[1],n=0;n<3;n++){var u=2*n;l[n]=parseInt(a.slice(u,u+2),16)}o&&(l[3]=parseInt(o,16)/255)}else if(a=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(a=a[1])[3],n=0;n<3;n++)l[n]=parseInt(a[n]+a[n],16);o&&(l[3]=parseInt(o+o,16)/255)}else if(a=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)l[n]=parseInt(a[n+1],0);a[4]&&(a[5]?l[3]=.01*parseFloat(a[4]):l[3]=parseFloat(a[4]))}else{if(!(a=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(a=t.match(/^(\w+)$/))?'transparent'===a[1]?[0,0,0,0]:r.call(_r(d[0]),a[1])?((l=_r(d[0])[a[1]])[3]=1,l):null:null;for(n=0;n<3;n++)l[n]=Math.round(2.55*parseFloat(a[n+1]));a[4]&&(a[5]?l[3]=.01*parseFloat(a[4]):l[3]=parseFloat(a[4]))}for(n=0;n<3;n++)l[n]=s(l[n],0,255);return l[3]=s(l[3],0,1),l},n.get.hsl=function(r){if(!r)return null;var t=r.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(a)?1:a,0,1)]}return null},n.get.hwb=function(r){if(!r)return null;var t=r.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(a)?1:a,0,1)]}return null},n.to.hex=function(){var r=_r(d[1])(arguments);return'#'+o(r[0])+o(r[1])+o(r[2])+(r[3]<1?o(Math.round(255*r[3])):'')},n.to.rgb=function(){var r=_r(d[1])(arguments);return r.length<4||1===r[3]?'rgb('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+')':'rgba('+Math.round(r[0])+', '+Math.round(r[1])+', '+Math.round(r[2])+', '+r[3]+')'},n.to.rgb.percent=function(){var r=_r(d[1])(arguments),t=Math.round(r[0]/255*100),a=Math.round(r[1]/255*100),n=Math.round(r[2]/255*100);return r.length<4||1===r[3]?'rgb('+t+'%, '+a+'%, '+n+'%)':'rgba('+t+'%, '+a+'%, '+n+'%, '+r[3]+')'},n.to.hsl=function(){var r=_r(d[1])(arguments);return r.length<4||1===r[3]?'hsl('+r[0]+', '+r[1]+'%, '+r[2]+'%)':'hsla('+r[0]+', '+r[1]+'%, '+r[2]+'%, '+r[3]+')'},n.to.hwb=function(){var r=_r(d[1])(arguments),t='';return r.length>=4&&1!==r[3]&&(t=', '+r[3]),'hwb('+r[0]+', '+r[1]+'%, '+r[2]+'%'+t+')'},n.to.keyword=function(r){return t[r.slice(0,3)]}}),4947,[4945,4948]);
|
|
5258
|
+
__d((function(g,r,_i,a,m,e,d){'use strict';var t=Array.prototype.concat,n=Array.prototype.slice,o=m.exports=function(o){for(var c=[],u=0,p=o.length;u<p;u++){var i=o[u];r(d[0])(i)?c=t.call(c,n.call(i)):c.push(i)}return c};o.wrap=function(t){return function(){return t(o(arguments))}}}),4948,[4949]);
|
|
5259
|
+
__d((function(g,r,i,a,m,e,d){m.exports=function(n){return!(!n||'string'==typeof n)&&(n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&'String'!==n.constructor.name))}}),4949,[]);
|
|
5260
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l){l.route;var c=l.horizontal,s=l.badge,u=l.badgeStyle,y=l.activeOpacity,b=l.inactiveOpacity,h=l.activeTintColor,f=l.inactiveTintColor,p=l.renderIcon,v=l.style;return(0,r(d[4]).jsxs)(t.View,{style:[c?n.iconHorizontal:n.iconVertical,v],children:[(0,r(d[4]).jsx)(t.View,{style:[n.icon,{opacity:y}],children:p({focused:!0,size:25,color:h})}),(0,r(d[4]).jsx)(t.View,{style:[n.icon,{opacity:b}],children:p({focused:!1,size:25,color:f})}),(0,r(d[4]).jsx)(o.default,{visible:null!=s,style:[n.badge,c?n.badgeHorizontal:n.badgeVertical,u],size:18.75,children:s})]})};r(d[0])(r(d[1]));var t=r(d[2]),o=r(d[0])(r(d[3]));var n=t.StyleSheet.create({icon:{position:'absolute',alignSelf:'center',alignItems:'center',justifyContent:'center',height:'100%',width:'100%',minWidth:25},iconVertical:{flex:1},iconHorizontal:{height:'100%',marginTop:3},badge:{position:'absolute',left:3},badgeVertical:{top:3},badgeHorizontal:{top:7}})}),4950,[20,140,18,4951,180]);
|
|
5261
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(u){var f=u.children,c=u.style,s=u.visible,p=void 0===s||s,v=u.size,h=void 0===v?18:v,b=(0,t.default)(u,o),y=r.useState((function(){return new i.Animated.Value(p?1:0)})),O=(0,e.default)(y,1)[0],_=r.useState(p),j=(0,e.default)(_,2),w=j[0],S=j[1],k=(0,_r(d[6]).useTheme)();if(r.useEffect((function(){if(w)return i.Animated.timing(O,{toValue:p?1:0,duration:150,useNativeDriver:!0}).start((function(e){e.finished&&!p&&S(!1)})),function(){return O.stopAnimation()}}),[O,w,p]),!w){if(!p)return null;S(!0)}var M=i.StyleSheet.flatten(c)||{},P=M.backgroundColor,A=void 0===P?k.colors.notification:P,x=(0,t.default)(M,a),z=(0,n.default)(A).isLight()?'black':'white',W=h/2,C=Math.floor(3*h/4);return(0,_r(d[7]).jsx)(i.Animated.Text,Object.assign({numberOfLines:1,style:[{transform:[{scale:O.interpolate({inputRange:[0,1],outputRange:[.5,1]})}],color:z,lineHeight:h-1,height:h,minWidth:h,opacity:O,backgroundColor:A,fontSize:C,borderRadius:W},l.container,x]},b,{children:f}))};var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[4])),i=_r(d[5]),o=["children","style","visible","size"],a=["backgroundColor"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var l=i.StyleSheet.create({container:{alignSelf:'flex-end',textAlign:'center',paddingHorizontal:4,overflow:'hidden'}})}),4951,[20,34,105,4942,140,18,3450,180]);
|
|
5262
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.MaybeScreen=function(r){var t,i=r.visible,l=r.children,c=(0,n.default)(r,a);if(null!=(t=e)&&null!=t.screensEnabled&&t.screensEnabled())return(0,_r(d[5]).jsx)(e.Screen,Object.assign({activityState:i?2:0},c,{children:l}));return(0,_r(d[5]).jsx)(_r(d[6]).ResourceSavingView,Object.assign({visible:i},c,{children:l}))},_e.MaybeScreenContainer=void 0;var e,n=_r(d[0])(_r(d[1])),r=((function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(n);if(r&&r.has(e))return r.get(e);var t={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(t,l,c):t[l]=e[l]}t.default=e,r&&r.set(e,t)})(_r(d[2])),_r(d[3])),t=["enabled"],a=["visible","children"];function i(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:n})(e)}try{e=_r(d[4])}catch(e){}_e.MaybeScreenContainer=function(a){var i,l=a.enabled,c=(0,n.default)(a,t);return null!=(i=e)&&null!=i.screensEnabled&&i.screensEnabled()?(0,_r(d[5]).jsx)(e.ScreenContainer,Object.assign({enabled:l},c)):(0,_r(d[5]).jsx)(r.View,Object.assign({},c))}}),4952,[20,105,140,18,4354,180,4331]);
|
|
5263
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var r=e.useContext(t.default);if(void 0===r)throw new Error("Couldn't find the bottom tab bar height. Are you inside a screen in Bottom Tab Navigator?");return r};var e=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0])),t=_r(d[1])(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}}),4953,[140,20,4938]);
|
|
5264
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserTabsScreen=void 0;r(d[0])(r(d[1]));var t=r(d[2]);e.BrowserTabsScreen=(0,r(d[3]).observer)((function(o){var n=o.navigation,s=(0,r(d[4]).useStores)().dappStore,c=s.browserTabs.toJSON().filter((function(t){return t.id})).reverse(),l=function(){n.navigate('bottomTabs',{screen:'dappHome'})};return(0,r(d[5]).jsx)(r(d[6]).Screen,{safeAreaEdges:['top','bottom'],header:(0,r(d[5]).jsx)(r(d[6]).Header,{leftIcon:"x",onLeftPress:l,title:"Tabs"}),footer:(0,r(d[5]).jsxs)(t.View,{style:{paddingHorizontal:20,paddingVertical:12,flexDirection:'row',alignItems:'center',justifyContent:'space-between'},children:[(0,r(d[5]).jsx)(t.View,{style:{position:'absolute',left:0,top:10,right:0,alignItems:'center',justifyContent:'center'},children:(0,r(d[5]).jsx)(t.TouchableOpacity,{onPress:l,children:(0,r(d[5]).jsx)(r(d[6]).Icon,{icon:"plus",size:28,color:r(d[7]).colors.background,containerStyle:{width:40,height:40,padding:12,borderRadius:8,backgroundColor:r(d[7]).colors.text,alignItems:'center',justifyContent:'center'}})})}),(0,r(d[5]).jsx)(t.TouchableOpacity,{onPress:function(){s.removeAllBrowserTabs(),l()},style:{height:'100%'},children:(0,r(d[5]).jsx)(r(d[6]).Text,{preset:"bold",tx:"dapp.browser.closeAllTabs"})}),(0,r(d[5]).jsx)(t.TouchableOpacity,{onPress:function(){n.goBack()},children:(0,r(d[5]).jsx)(r(d[6]).Text,{preset:"bold",tx:"common.done"})})]}),contentContainerStyle:{backgroundColor:r(d[7]).colors.black},children:(0,r(d[5]).jsx)(t.FlatList,{data:c,keyExtractor:function(t){return t.id},contentContainerStyle:{padding:20},showsVerticalScrollIndicator:!1,numColumns:2,ItemSeparatorComponent:function(){return(0,r(d[5]).jsx)(t.View,{style:{height:12}})},renderItem:function(t){var o=t.item,c=t.index;return(0,r(d[5]).jsx)(r(d[8]).TabView,{localImage:o.localImage,lastUpdate:o.lastUpdateImage,title:o.title,index:c,onPress:function(){var t;t=o,n.navigate('website'+t.id,t)},onClose:function(){var t;t=o.id,s.removeBrowserTabs(t)}})}})})}))}),4954,[20,140,18,686,701,180,3617,3166,4955]);
|
|
5265
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.TabView=e.NUMBER_OF_COLUMN=void 0;r(d[0])(r(d[1]));var o=r(d[2]),t=e.NUMBER_OF_COLUMN=2,n=(o.Dimensions.get('screen').width-60)/2;e.TabView=function(s){var l=s.title,c=s.localImage,h=s.lastUpdate,u=s.index,b=s.onPress,x=s.onClose,f=(0,r(d[3]).useTheme)().colors;return(0,r(d[4]).jsxs)(o.View,{style:{width:n,height:n+40,borderRadius:12,borderWidth:.5,borderColor:f.border,marginLeft:u%t!=0?20:0,overflow:'hidden'},children:[(0,r(d[4]).jsxs)(o.View,{style:{height:40,padding:4,backgroundColor:f.background,flexDirection:'row',alignItems:'center',justifyContent:'space-between'},children:[(0,r(d[4]).jsx)(r(d[5]).Text,{text:l,numberOfLines:1,size:'sm',ellipsizeMode:"tail",style:{marginLeft:12,maxWidth:n-48}}),(0,r(d[4]).jsx)(r(d[5]).Icon,{icon:"x",color:f.label,size:18,containerStyle:{padding:4},onPress:x})]}),(0,r(d[4]).jsx)(o.TouchableOpacity,{onPress:b,children:(0,r(d[4]).jsx)(o.View,{style:{width:n,height:n,backgroundColor:f.background},children:!!c&&(0,r(d[4]).jsx)(o.Image,{source:{uri:'file://'+c},style:{flex:1,maxWidth:n},resizeMode:"cover"},h)})})]})}}),4955,[20,140,18,3165,180,3617]);
|
|
5266
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.BrowserScreen=void 0;var e=_r(d[0])(_r(d[1])),r=_r(d[0])(_r(d[2])),n=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(r);if(n&&n.has(e))return n.get(e);var t={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(t,o,l):t[o]=e[o]}return t.default=e,n&&n.set(e,t),t})(_r(d[3])),t=_r(d[4]),a=_r(d[0])(_r(d[5])),o=_r(d[0])(_r(d[6])),l=_r(d[0])(_r(d[7]));function i(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:r})(e)}_e.BrowserScreen=(0,_r(d[8]).observer)((function(i){var u,c,s,f=(0,_r(d[9]).useStores)(),p=f.dappStore,v=f.wallet,b=i.navigation,w=i.route.params||null,y=(0,n.useRef)(null),k=(0,n.useRef)(null),h=(0,_r(d[10]).useInjectedWallet)({webViewRef:y}),B=h.injectedScript,j=h.handleWebviewMessage,S=w.url||w.dapp.website,P=(0,n.useState)({url:'',loading:!1,title:'',canGoBack:!1,canGoForward:!1,navigationType:'click',lockIdentifier:0}),O=(0,r.default)(P,2),C=O[0],E=O[1],I=(0,n.useRef)(!1),W=p.tabsImageFolderPath,_=W+"/"+w.id+".png",x=p.isInjectedWalletEnabled&&!(null!=v&&null!=(u=v.chainId)&&u.startsWith('tron:')),M=(c=(0,e.default)((function*(){try{var e,r=yield null==(e=k.current)?void 0:e.capture();r&&((yield l.default.exists(W))||(yield l.default.mkdir(W)),_r(d[11]).IS_IOS&&(yield l.default.exists(_))&&(yield l.default.unlink(_)),yield l.default.copyFile(r,_)),p.updateBrowserTabs(Object.assign({},w,{localImage:r?_:'',lastUpdateImage:Date.now()}))}catch(e){_r(d[12]).Logger.error("removeAllBrowserTabs failed "+JSON.stringify(e))}})),function(){return c.apply(this,arguments)}),R=(s=(0,e.default)((function*(){try{yield M()}catch(e){console.log(e)}b.navigate('tabs')})),function(){return s.apply(this,arguments)}),T=function(){var e;return I.current?(null==(e=y.current)||e.goBack(),!0):(b.goBack(),!0)},F=(0,n.useCallback)((function(e){E(e),I.current=e.canGoBack;var r=e.url,n=e.title;if(r){var t,a;if(p.updateBrowserTabs(Object.assign({},w,{url:r,title:n})),r.includes('?message=success'))null==(t=y.current)||t.stopLoading();if(r.includes('?errors=true'))null==(a=y.current)||a.stopLoading()}}),[]);return(0,n.useEffect)((function(){return'android'===t.Platform.OS?(t.BackHandler.addEventListener('hardwareBackPress',T),function(){t.BackHandler.removeEventListener('hardwareBackPress',T)}):function(){}}),[]),(0,_r(d[13]).jsx)(_r(d[14]).Screen,{safeAreaEdges:['top','bottom'],KeyboardAvoidingViewProps:{enabled:!1},header:(0,_r(d[13]).jsx)(_r(d[15]).Header,{dapp:w.dapp,closeBrowser:function(){p.removeBrowserTabs(w.id),b.goBack()},title:C.title,searchUrl:w.url}),footer:(0,_r(d[13]).jsx)(_r(d[16]).Footer,{currentWebState:C,goBack:function(){var e;null==(e=y.current)||e.goBack()},goForward:function(){var e;null==(e=y.current)||e.goForward()},changeTabs:R,reload:function(){var e;null==(e=y.current)||e.reload()},clearCache:function(){var e;null==(e=y.current)||e.clearCache()},goHome:function(){b.navigate('bottomTabs',{screen:'dappHome'})}}),backgroundColor:_r(d[17]).colors.background2,contentContainerStyle:{flex:1,backgroundColor:_r(d[17]).colors.background},children:(0,_r(d[13]).jsx)(o.default,{ref:k,options:{quality:.5,fileName:w.id+Date.now()/1e3},style:{flex:1},children:(0,_r(d[13]).jsx)(a.default,{ref:y,source:{uri:S},style:{backgroundColor:_r(d[17]).colors.background,borderTopLeftRadius:12,borderTopRightRadius:12},mediaPlaybackRequiresUserAction:!0,sharedCookiesEnabled:!0,allowsBackForwardNavigationGestures:!0,allowsInlineMediaPlayback:!0,allowsFullscreenVideo:!1,onNavigationStateChange:F,onRenderProcessGone:function(e){var r=e.nativeEvent;console.warn('WebView Crashed: ',r.didCrash)},onError:function(e){var r=e.nativeEvent;console.warn('WebView error: ',r)},onLoadEnd:function(e){e.nativeEvent.loading||M()},setSupportMultipleWindows:!1,renderLoading:function(){return(0,_r(d[13]).jsx)(t.ActivityIndicator,{})},onMessage:x?j:void 0,injectedJavaScript:x?B:void 0})})})}))}),4956,[20,316,34,140,18,4901,4659,3142,686,701,4957,628,1413,180,3617,4958,4960,3166]);
|
|
5267
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useInjectedWallet=void 0;var n=r(d[0])(r(d[1])),s=r(d[2]);e.useInjectedWallet=function(t){var o,M=t.webViewRef,c=(0,r(d[3]).useStores)().account,u=(0,r(d[4]).useMixins)().notify,I=(0,r(d[5]).useTheme)().translate,N=(0,r(d[6]).useConnectedDapps)().getDappInfoFromUrl,l=c.selectedWallet,D=(0,s.useMemo)((function(){return"\n function generateRandomString(length) {\n const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'\n let result = ''\n const charactersLength = characters.length\n for (let i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength))\n }\n return result\n }\n\n const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms))\n\n function generateUUID() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n var r = Math.random() * 16 | 0,\n v = c === 'x' ? r : (r & 0x3 | 0x8);\n return v.toString(16);\n });\n }\n const uuid = generateUUID()\n\n const emitMessage = (type, e, extraData) => {\n const id = Date.now().toString() + generateRandomString(10)\n window.ReactNativeWebView.postMessage(\n JSON.stringify({\n id,\n type,\n payload: e,\n extraData,\n dappInfo: {\n name: document.title,\n url: window.location.protocol + '//' + window.location.host\n }\n })\n )\n return id\n }\n\n const awaitResponse = (_id) => {\n return new Promise((resolve, reject) => {\n const handler = function(event) {\n const { id, error, response } = JSON.parse(event.data)\n if (id === _id) {\n window.removeEventListener('message', handler)\n if (error) {\n reject(error)\n } else {\n resolve(response)\n }\n }\n }\n window.addEventListener('message', handler)\n })\n }\n\n class ReadyEthereumProvider {\n isMetaMask = false\n isTronLink = false\n events = {}\n selectedAddress = ''\n chainId = '0x1'\n\n constructor() {\n //\n }\n\n on(event, listener) {\n // emitMessage('log-on', event)\n if (!this.events[event]) {\n this.events[event] = []\n }\n this.events[event].push(listener)\n }\n\n removeListener(event, listenerToRemove) {\n if (!this.events[event]) return\n this.events[event] = this.events[event].filter((listener) => listener !== listenerToRemove)\n }\n\n removeAllListeners(event) {\n if (!this.events[event]) return\n delete this.events[event]\n }\n\n emit(event, ...args) {\n if (!this.events[event]) return\n this.events[event].forEach((listener) => listener(...args))\n }\n\n isConnected() {\n return !!this.selectedAddress\n }\n\n eventNames() {\n return "+JSON.stringify(r(d[7]).SUPPORTED_EVENT)+"\n }\n\n async enable(e) {\n const _id = emitMessage('enable', e)\n const address = await awaitResponse(_id)\n this.selectedAddress = address\n return [address]\n }\n\n async request(e) {\n try {\n // emitMessage('log-request', e)\n let response = null\n switch (e.method) {\n case 'eth_requestAccounts': {\n const _id = emitMessage('request', e)\n const address = await awaitResponse(_id)\n this.selectedAddress = address\n response = [address]\n break\n }\n case 'eth_accounts': {\n const _id = emitMessage('request', e)\n const address = await awaitResponse(_id)\n if (address) {\n this.selectedAddress = address\n response = [address]\n } else {\n response = []\n }\n break\n }\n case 'eth_chainId': {\n const _id = emitMessage('request', e)\n const chainId = await awaitResponse(_id)\n this.chainId = chainId\n response = chainId\n break\n }\n case 'wallet_switchEthereumChain': {\n const _id = emitMessage('request', e)\n const chainId = await awaitResponse(_id)\n this.chainId = chainId\n break\n }\n case 'wallet_revokePermissions': {\n const _id = emitMessage('request', e)\n await awaitResponse(_id)\n this.selectedAddress = ''\n this.emit('disconnect')\n break\n }\n case 'wallet_requestPermissions': {\n const _id = emitMessage('request', e)\n const { id, address } = await awaitResponse(_id)\n this.selectedAddress = address\n response = [\n {\n date: Date.now(),\n id,\n parentCapability: 'eth_accounts',\n caveats: [\n {\n type: 'restrictReturnedAccounts',\n value: [address],\n },\n ],\n },\n ]\n break\n }\n case 'eth_gasPrice': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_call': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_estimateGas': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_getTransactionReceipt': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_getTransactionByHash': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'eth_blockNumber': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n case 'personal_sign':\n case 'eth_sign':\n case 'eth_signTransaction':\n case 'eth_signTypedData':\n case 'eth_signTypedData_v3':\n case 'eth_signTypedData_v4':\n case 'eth_sendRawTransaction':\n case 'eth_sendTransaction': {\n const _id = emitMessage('request', e, { chainId: this.chainId })\n response = await awaitResponse(_id)\n break\n }\n default: {\n const _id = emitMessage('unhandled-request', e)\n response = await awaitResponse(_id)\n }\n }\n // emitMessage('log-request-response', e, response)\n return response\n } catch (e) {\n emitMessage('error-request', e)\n this.emit('error', e)\n throw e\n }\n }\n }\n\n const readyProvider = new ReadyEthereumProvider()\n\n window.ethereum = readyProvider\n window.otherEthereumProviderArray = [readyProvider]\n\n const announcementEvent = new CustomEvent('eip6963:announceProvider', {\n detail: {\n info: {\n rdns: 'io.goonus',\n uuid,\n name: 'ONUS',\n icon: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzI3Ml8yNjUpIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTMuNzA2NSAxNS4yNTU0QzEzLjg4MjQgMTUuMzU2MSAxNC4wODcyIDE1LjM5NDEgMTQuMjg3NSAxNS4zNjMxQzE0LjQ4NzggMTUuMzMyMiAxNC42NzE2IDE1LjIzNDIgMTQuODA4OSAxNS4wODUxQzE1LjQ3NyAxNC4zNjUxIDE2LjI4NjUgMTMuNzkwOCAxNy4xODY4IDEzLjM5OEMxOC4wODcgMTMuMDA1MiAxOS4wNTg3IDEyLjgwMjUgMjAuMDQwOSAxMi44MDI1QzIxLjAyMzEgMTIuODAyNSAyMS45OTQ4IDEzLjAwNTIgMjIuODk1IDEzLjM5OEMyMy43OTUzIDEzLjc5MDggMjQuNjA0OCAxNC4zNjUxIDI1LjI3MjkgMTUuMDg1MUMyNS40MTAxIDE1LjIzNDMgMjUuNTk0IDE1LjMzMjQgMjUuNzk0MyAxNS4zNjM0QzI1Ljk5NDYgMTUuMzk0MyAyNi4xOTk0IDE1LjM1NjIgMjYuMzc1MyAxNS4yNTU0TDI5LjUyMTQgMTMuNDM3NUMyOS42MzI2IDEzLjM3MzUgMjkuNzI4OCAxMy4yODYyIDI5LjgwMzIgMTMuMTgxN0MyOS44Nzc3IDEzLjA3NzEgMjkuOTI4NyAxMi45NTc3IDI5Ljk1MjggMTIuODMxNkMyOS45NzY5IDEyLjcwNTUgMjkuOTczNiAxMi41NzU4IDI5Ljk0MjkgMTIuNDUxMUMyOS45MTIzIDEyLjMyNjQgMjkuODU1MSAxMi4yMDk5IDI5Ljc3NTMgMTIuMTA5M0MyOC42MDQyIDEwLjY1NDEgMjcuMTIxOSA5LjQ3OTk3IDI1LjQzNzIgOC42NzMyNUMyMy43NTI1IDcuODY2NTIgMjEuOTA4NCA3LjQ0Nzc1IDIwLjA0MDUgNy40NDc3NUMxOC4xNzI2IDcuNDQ3NzUgMTYuMzI4NSA3Ljg2NjUyIDE0LjY0MzggOC42NzMyNUMxMi45NTkyIDkuNDc5OTcgMTEuNDc2OCAxMC42NTQxIDEwLjMwNTcgMTIuMTA5M0MxMC4yMjU5IDEyLjIwOTkgMTAuMTY4NyAxMi4zMjY0IDEwLjEzODEgMTIuNDUxMUMxMC4xMDc1IDEyLjU3NTggMTAuMTA0MSAxMi43MDU1IDEwLjEyODIgMTIuODMxNkMxMC4xNTIzIDEyLjk1NzcgMTAuMjAzMyAxMy4wNzcxIDEwLjI3NzggMTMuMTgxN0MxMC4zNTIyIDEzLjI4NjIgMTAuNDQ4NCAxMy4zNzM1IDEwLjU1OTYgMTMuNDM3NUwxMy43MDY1IDE1LjI1NTRaIiBmaWxsPSIjMDA2OEZGIi8+CjxwYXRoIGQ9Ik0yNi44NjYxIDE3LjgzOTFDMjcuMDk0NSAxOC41ODM0IDI3LjIgMTkuMzYgMjcuMTc4NiAyMC4xMzgzQzI3LjA3ODYgMjMuODcyNyAyNC4wNDk3IDI2LjkzNTIgMjAuMzE2MSAyNy4wNzgyQzE5LjE3NTggMjcuMTIxNSAxOC4wNDE3IDI2Ljg5MSAxNy4wMDg4IDI2LjQwNjFDMTUuOTc1OSAyNS45MjEyIDE1LjA3NDEgMjUuMTk1OSAxNC4zNzkgMjQuMjkxQzEzLjY4MzkgMjMuMzg2IDEzLjIxNTYgMjIuMzI3NyAxMy4wMTM0IDIxLjIwNDdDMTIuODExMyAyMC4wODE3IDEyLjg4MSAxOC45MjY1IDEzLjIxNjkgMTcuODM2QzEzLjI3NzcgMTcuNjQyNyAxMy4yNzA4IDE3LjQzNDQgMTMuMTk3NCAxNy4yNDU1QzEzLjEyNCAxNy4wNTY2IDEyLjk4ODQgMTYuODk4NCAxMi44MTMgMTYuNzk2OUw5LjY2NDUyIDE0Ljk4MjhDOS41NTQwMyAxNC45MTg1IDkuNDMwOTcgMTQuODc4NiA5LjMwMzcgMTQuODY2MUM5LjE3NjQ0IDE0Ljg1MzYgOS4wNDc5NyAxNC44Njg2IDguOTI3MDUgMTQuOTEwMkM4LjgwNjEyIDE0Ljk1MTggOC42OTU1OCAxNS4wMTkgOC42MDI5NiAxNS4xMDcxQzguNTEwMzMgMTUuMTk1MyA4LjQzNzggMTUuMzAyNCA4LjM5MDMgMTUuNDIxMUM3Ljc4NzggMTYuOTc0OSA3LjUwMjUgMTguNjMzNSA3LjU1MTI0IDIwLjI5OTJDNy43MzU2MSAyNi45MDk0IDEzLjEzOCAzMi4yODM2IDE5Ljc0OTcgMzIuNDM0NEMyMS44MDQ1IDMyLjQ4MTQgMjMuODM5MyAzMi4wMjA5IDI1LjY3MzcgMzEuMDkzOEMyNy41MDgxIDMwLjE2NjYgMjkuMDg1NiAyOC44MDE0IDMwLjI2NjQgMjcuMTE5MUMzMS40NDczIDI1LjQzNjggMzIuMTk1MSAyMy40ODkyIDMyLjQ0MzYgMjEuNDQ4OUMzMi42OTIxIDE5LjQwODYgMzIuNDMzNiAxNy4zMzg1IDMxLjY5MTEgMTUuNDIxOUMzMS42NDM3IDE1LjMwMzEgMzEuNTcxMiAxNS4xOTU5IDMxLjQ3ODYgMTUuMTA3N0MzMS4zODYgMTUuMDE5NCAzMS4yNzU1IDE0Ljk1MjIgMzEuMTU0NSAxNC45MTA1QzMxLjAzMzYgMTQuODY4OCAzMC45MDUxIDE0Ljg1MzcgMzAuNzc3OCAxNC44NjYyQzMwLjY1MDUgMTQuODc4NyAzMC41Mjc0IDE0LjkxODUgMzAuNDE2OSAxNC45ODI4TDI3LjI3IDE2Ljc5NjlDMjcuMDk0MiAxNi44OTg4IDI2Ljk1ODQgMTcuMDU3NiAyNi44ODUgMTcuMjQ3MUMyNi44MTE2IDE3LjQzNjUgMjYuODA0OSAxNy42NDUzIDI2Ljg2NjEgMTcuODM5MVYxNy44MzkxWiIgZmlsbD0iIzAwNjhGRiIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzI3Ml8yNjUiPgo8cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=='\n },\n provider: readyProvider\n },\n bubbles: false,\n cancelable: false\n })\n\n window.addEventListener('eip6963:requestProvider', () => {\n window.dispatchEvent(announcementEvent)\n })\n\n window.dispatchEvent(announcementEvent)\n "}),[]),j=function(n){var s;null==(s=M.current)||s.injectJavaScript("\n window.postMessage('"+JSON.stringify(n)+"')\n ")},h=(0,s.useCallback)((o=(0,n.default)((function*(n){var s=JSON.parse(n.nativeEvent.data),t=s.id,o=s.type,M=s.payload,c=s.extraData,D=s.dappInfo,h={id:t};o.startsWith('log-');try{switch(o){case'enable':var T,E=N(D.url);return yield r(d[8]).injectedWalletService.connect({dapp:{name:(null==E?void 0:E.name)||D.name,url:(null==E?void 0:E.website)||D.url,icons:null!=E&&E.logo?[E.logo]:void 0,description:(null==E||null==(T=E.description)?void 0:T.en)||''},walletAddress:l.address}),h.response=l.address,void j(h);case'request':switch(M.method){case'eth_requestAccounts':return yield r(d[8]).injectedWalletService.connect({dapp:{name:D.name,url:D.url,icons:[],description:''},walletAddress:l.address}),h.response=l.address,void j(h);case'eth_accounts':return r(d[8]).injectedWalletService.getActiveSession(D.url)&&(h.response=l.address),void j(h);case'eth_chainId':var p=r(d[8]).injectedWalletService.getActiveSession(D.url),v=(null==p?void 0:p.chainId)||r(d[9]).ChainId.MAINNET,y=(0,r(d[10]).getChainInfo)(v).chainNumber;return h.response='0x'+y.toString(16),void j(h);case'wallet_revokePermissions':return yield r(d[8]).injectedWalletService.disconnect(D.url),void j(h);case'wallet_requestPermissions':return yield r(d[8]).injectedWalletService.connect({dapp:{name:D.name,url:D.url,icons:[],description:''},walletAddress:l.address}),h.response={address:l.address,id:l.id},void j(h);case'eth_gasPrice':var x=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)});if(x){var w=yield r(d[11]).networkFeeService.getFeeData(x.chainId);h.response='0x'+w.gasPriceHex}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case'eth_call':var A=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),z=r(d[9]).RPC_PROVIDERS[null==A?void 0:A.chainId];return z?h.response=yield z.call(M.params[0]):h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported'),void j(h);case'eth_estimateGas':var O=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),S=r(d[9]).RPC_PROVIDERS[null==O?void 0:O.chainId];if(S)if(M.params[0].from.toLowerCase()!==l.address){var L=yield S.estimateGas(M.params[0]);h.response='0x'+r(d[13]).BlockChainUtils.amountToHex(L,0)}else{var _=yield l.getPrivateKeyPairByChain({chainId:O.chainId}),k=new(r(d[14]).Wallet)(_,S),C=yield k.estimateGas(M.params[0]);h.response='0x'+C.toString(16)}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case'wallet_switchEthereumChain':var U=parseInt(M.params[0].chainId,16),R=(0,r(d[10]).getChainFromId)({chainNumber:U});return R?(yield r(d[8]).injectedWalletService.changeChain({url:D.url,chainId:R.chainId,walletAddress:l.address}),h.response='0x'+R.id.toString(16)):(u('error',I('confirmTransactionScreen.error.chainNotSupported',{chain:U})),h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported')),void j(h);case'eth_getTransactionReceipt':var f=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),P=r(d[9]).RPC_PROVIDERS[null==f?void 0:f.chainId];if(P){var Q=yield P.getTransactionReceipt(M.params[0]);if(Q){var b=JSON.parse(JSON.stringify(Q));Object.keys(b).forEach((function(n){(['cumulativeGasUsed','gasPrice','gasUsed'].includes(n)||'number'==typeof b[n])&&null!==b[n]&&void 0!==b[n]&&''!==b[n]&&(b[n]='0x'+r(d[13]).BlockChainUtils.amountToHex(b[n].toString(),0))})),h.response=b}else h.response=Q}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case'eth_getTransactionByHash':var Y=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),G=r(d[9]).RPC_PROVIDERS[null==Y?void 0:Y.chainId];if(G){var q=yield G.getTransaction(M.params[0]);if(q){var H=JSON.parse(JSON.stringify(q));Object.keys(H).forEach((function(n){(['chainId','gasLimit','gasPrice','maxFeePerGas','maxPriorityFeePerGas','value'].includes(n)||'number'==typeof H[n])&&null!==H[n]&&void 0!==H[n]&&''!==H[n]&&(H[n]='0x'+r(d[13]).BlockChainUtils.amountToHex(H[n].toString(),0))})),h.response=H}else h.response=q}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case'eth_blockNumber':var W=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),B=r(d[9]).RPC_PROVIDERS[null==W?void 0:W.chainId];if(B){var F=yield B.getBlockNumber();h.response='0x'+r(d[13]).BlockChainUtils.amountToHex(F.toString(),0)}else h.error=r(d[12]).providerErrors.userRejectedRequest('Network not supported');return void j(h);case r(d[7]).EIP155_SIGNING_METHODS.ETH_SEND_RAW_TRANSACTION:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SEND_TRANSACTION:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN_TRANSACTION:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN_TYPED_DATA:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN_TYPED_DATA_V3:case r(d[7]).EIP155_SIGNING_METHODS.ETH_SIGN_TYPED_DATA_V4:case r(d[7]).EIP155_SIGNING_METHODS.PERSONAL_SIGN:var J,Z=(0,r(d[10]).getChainFromId)({chainNumber:parseInt(c.chainId,16)}),V=N(D.url);return void r(d[15]).navigationRef.navigate('main',{screen:'walletStack',params:{screen:'confirmDAppTransaction',params:{injectedRequest:{id:t,dapp:{name:(null==V?void 0:V.name)||D.name,url:(null==V?void 0:V.website)||D.url,icons:null!=V&&V.logo?[V.logo]:void 0,description:(null==V||null==(J=V.description)?void 0:J.en)||''},params:{chainId:null==Z?void 0:Z.chainId,request:M}}}}})}return;case'unhandled-request':return h.error=r(d[12]).providerErrors.unsupportedMethod(),void j(h)}}catch(n){r(d[16]).Logger.error("Injected wallet "+M.method+": "+n),h.error=r(d[12]).rpcErrors.internal(),j(h)}})),function(n){return o.apply(this,arguments)}),[]);return(0,s.useEffect)((function(){var n=r(d[17]).EventBus.createListener(r(d[17]).AppEventType.INJECTED_WALLET_RESPONSE,(function(n){j(n)}));return function(){r(d[17]).EventBus.removeListener(n)}}),[]),{injectedScript:D,handleWebviewMessage:h}}}),4957,[20,316,140,701,3149,3165,4930,3295,3449,1479,1474,3056,3318,1058,2937,631,1413,1061]);
|
|
5268
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Header=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(o,s,a):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o})(_r(d[2])),n=_r(d[3]);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}_e.Header=(0,_r(d[4]).observer)((function(r){var o=r.closeBrowser,i=r.title,s=r.dapp,a=r.searchUrl,c=(0,_r(d[5]).useStores)(),l=c.dappStore,u=c.account,p=(0,_r(d[6]).useTheme)(),f=p.colors,w=p.translate,y=(0,_r(d[7]).useMixins)().notify,x=(0,_r(d[8]).useConnectedDapps)().isDappConnected,h=(0,t.useState)(!1),j=(0,e.default)(h,2),v=j[0],b=j[1],C=!!s,D=(0,t.useState)(!!C&&l.isFavoriteDApp(u.id,s)),O=(0,e.default)(D,2),_=O[0],P=O[1],k=x((null==s?void 0:s.website)||a);return(0,_r(d[9]).jsxs)(n.View,{children:[(0,_r(d[9]).jsx)(_r(d[10]).ChangeWalletModal,{dapp:s,isOpen:v,onClose:function(){b(!1)}}),(0,_r(d[9]).jsxs)(n.View,{style:{height:54,flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:4},children:[(0,_r(d[9]).jsx)(n.View,{style:{width:92,borderRadius:100,flexDirection:'row',alignItems:'center',marginLeft:12},children:(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:"arrow-left",containerStyle:{paddingVertical:12,paddingHorizontal:4},size:24,onPress:o})}),(0,_r(d[9]).jsx)(n.View,{style:{position:'absolute',left:92,right:92},children:(0,_r(d[9]).jsx)(_r(d[11]).Text,{text:i,size:'base',style:{paddingHorizontal:12,textAlign:'center'},numberOfLines:2})}),(0,_r(d[9]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'flex-end',width:92},children:[C&&(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:_?'star-fill':'star',color:_?f.warning:f.text,containerStyle:{paddingHorizontal:16},onPress:function(){P(!_),_?(l.removeFavoriteDApps(u.id,s),y('success',w('dapp.unFavoriteToast'),2e3,{icon:'trash',iconColor:f.error,customBackgroundColor:f.background})):(l.addFavoriteDApps(u.id,s),y('success',w('dapp.favoriteToast'),2e3,{icon:'check-circle',iconColor:f.success,customBackgroundColor:f.background}))}}),k&&(0,_r(d[9]).jsx)(_r(d[11]).Icon,{icon:"wallet",containerStyle:{paddingRight:16},size:24,onPress:function(){return b(!0)}})]})]})]})}))}),4958,[20,34,140,18,686,701,3165,3149,4930,180,4959,3617]);
|
|
5269
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ChangeWalletModal=void 0;r(d[0])(r(d[1]));var t=r(d[2]),n=r(d[0])(r(d[3]));e.ChangeWalletModal=function(o){var s=o.isOpen,l=o.onClose,c=o.dapp,u=(0,r(d[4]).useTheme)().colors,x=(0,r(d[5]).useSafeAreaInsets)().bottom,p=(0,r(d[6]).useStores)().account,f=(0,r(d[7]).useConnectedDapps)().getConnectionStatus,h=p.wallets;if(!c)return null;var b=f(c.website),j=b.walletAddresses,w=b.supportedChains,y=(function(){var t,n=null,o=w.find((function(t){return'tron'===t.namespace})),s=function(t){var s=h.filter((function(n){return(o?n.tronEvmAddress:n.address)===t}));for(var l of s){if(l.id===p.selectedWalletId)return{v:l};n||(n=l)}};for(var l of j)if(t=s(l))return t.v;return n})(),C=r(d[8]).SUPPORTED_CHAINS.filter((function(t){var n;return null==y||null==(n=y.tokensWithBalance)?void 0:n.some((function(n){return n.chainId===t.chainId}))}));return(0,r(d[9]).jsxs)(n.default,{isVisible:s,style:{margin:0,justifyContent:'flex-end'},children:[(0,r(d[9]).jsx)(t.View,{style:{backgroundColor:'transparent',flex:1},onTouchEnd:l}),(0,r(d[9]).jsxs)(t.View,{style:{backgroundColor:u.background2,paddingHorizontal:16,paddingBottom:x+16,borderTopLeftRadius:16,borderTopRightRadius:16},children:[(0,r(d[9]).jsx)(t.View,{style:{flexDirection:'row',justifyContent:'flex-end',paddingVertical:16},children:(0,r(d[9]).jsx)(r(d[10]).Icon,{icon:"x",onPress:l})}),(0,r(d[9]).jsxs)(t.View,{children:[(0,r(d[9]).jsxs)(t.View,{style:{flexDirection:'row',alignItems:'center',marginBottom:16},children:[(0,r(d[9]).jsx)(r(d[11]).DAppLogo,{logo:c.logo,style:{width:64,height:64,borderRadius:12,marginRight:16}}),(0,r(d[9]).jsxs)(t.View,{style:{flex:1},children:[(0,r(d[9]).jsxs)(t.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginBottom:4,flexWrap:'wrap'},children:[(0,r(d[9]).jsx)(r(d[10]).Text,{preset:"bold",size:"x",text:c.name,style:{maxWidth:'80%'}}),(0,r(d[9]).jsx)(t.View,{style:{paddingVertical:4,paddingHorizontal:8,borderRadius:100,backgroundColor:(0,r(d[12]).colorTransparency)(u.warning,10)},children:(0,r(d[9]).jsx)(r(d[10]).Text,{text:'#'+c.categories[0].toLocaleLowerCase(),color:u.warning})})]}),(0,r(d[9]).jsx)(r(d[10]).Text,{tx:"dapp.connected",color:u.success,size:"sm"})]})]}),(0,r(d[9]).jsxs)(t.View,{style:{borderWidth:1,borderRadius:12,borderColor:u.border,backgroundColor:(0,r(d[12]).colorTransparency)(u.border,40),marginBottom:16,padding:16},children:[(0,r(d[9]).jsx)(r(d[10]).Text,{tx:"walletConnect.supportedChain",size:"base",style:{marginBottom:16}}),(0,r(d[9]).jsx)(r(d[13]).SuportedChainIcon,{chainIds:w.map((function(t){return t.chainId})),size:16,gap:8})]}),y&&(0,r(d[9]).jsxs)(t.View,{style:{borderWidth:1,borderRadius:12,borderColor:u.border,backgroundColor:(0,r(d[12]).colorTransparency)(u.border,40),marginBottom:16,padding:16},children:[(0,r(d[9]).jsx)(t.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},children:(0,r(d[9]).jsx)(r(d[10]).Text,{tx:"dapp.connectedWallet",size:"base"})}),(0,r(d[9]).jsxs)(t.View,{style:{flexDirection:'row',justifyContent:'space-between',paddingVertical:12},children:[(0,r(d[9]).jsx)(t.View,{style:{flex:1},children:(0,r(d[9]).jsx)(r(d[14]).WalletItem,{wallet:y,maxWidth:"90%"})}),(0,r(d[9]).jsxs)(t.View,{style:{flex:1,alignItems:'flex-end'},children:[(0,r(d[9]).jsx)(r(d[10]).Text,{preset:"label",size:"base",text:r(d[15]).tokenRateService.getValueDisplayForCurrency(y.totalAmount,p.currency.name).display,style:{lineHeight:24,maxWidth:'90%',marginBottom:6}}),(0,r(d[9]).jsx)(r(d[13]).SuportedChainIcon,{chainIds:C.map((function(t){return t.chainId})),limit:5})]})]})]})]})]})]})}}),4959,[20,140,18,3867,3165,3156,701,4930,1474,180,3617,4298,3166,4296,4044,2812]);
|
|
5270
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Footer=void 0;var e=_r(d[0])(_r(d[1])),r=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(r);if(n&&n.has(e))return n.get(e);var t={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(t,s,u):t[s]=e[s]}return t.default=e,n&&n.set(e,t),t})(_r(d[2])),n=_r(d[3]);function o(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:r})(e)}_e.Footer=(0,_r(d[4]).observer)((function(o){var a,s=o.currentWebState,u=o.goBack,c=o.goForward,i=o.changeTabs,l=o.reload,f=o.clearCache,b=o.goHome,p=(0,_r(d[5]).useStores)().dappStore,w=(0,_r(d[6]).useTheme)().colors,j=null==(a=p.browserTabs)?void 0:a.length,v=(0,r.useState)(!1),h=(0,e.default)(v,2),x=h[0],y=h[1];return(0,_r(d[7]).jsxs)(n.View,{children:[(0,_r(d[7]).jsxs)(n.View,{style:{paddingVertical:12,paddingBottom:16,paddingHorizontal:20,flexDirection:'row',alignItems:'center',justifyContent:'space-between'},children:[(0,_r(d[7]).jsx)(_r(d[8]).Icon,{color:s.canGoBack?w.text:w.label,disabled:!s.canGoBack,icon:"caret-left",onPress:u}),(0,_r(d[7]).jsx)(_r(d[8]).Icon,{color:s.canGoForward?w.text:w.label,disabled:!s.canGoForward,icon:"caret-right",onPress:c}),(0,_r(d[7]).jsx)(_r(d[8]).Icon,{icon:t[j],onPress:i}),(0,_r(d[7]).jsx)(_r(d[8]).Icon,{icon:"arrows-clockwise",onPress:l}),(0,_r(d[7]).jsx)(_r(d[8]).Icon,{icon:"dots-three-bold",onPress:function(){y(!0)}})]}),(0,_r(d[7]).jsx)(_r(d[9]).Menu,{isOpen:x,onClose:function(){y(!1)},url:s.url,clearCache:f,goHome:b,reload:l})]})}));var t={1:'number-square-one',2:'number-square-two',3:'number-square-three',4:'number-square-four',5:'number-square-five',6:'number-square-six',7:'number-square-seven',8:'number-square-eight',9:'number-square-nine'}}),4960,[20,34,140,18,686,701,3165,180,3617,4961]);
|
|
5271
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Menu=void 0;var n=r(d[0])(r(d[1])),t=(r(d[0])(r(d[2])),r(d[3])),o=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),c=(e.Menu=function(l){var u,p=l.url,b=l.isOpen,f=l.onClose,h=l.clearCache,x=l.goHome,y=l.reload,j=(0,r(d[6]).useTheme)(),w=j.colors,C=j.translate,I=(0,r(d[7]).useMixins)(),P=I.copyToClipboard,T=I.notify,_=(0,r(d[8]).useStores)().dappStore,O=(0,r(d[9]).useSafeAreaInsets)(),k=[{tx:'dapp.browser.menu.share',icon:'share',onPress:(u=(0,n.default)((function*(){try{var n={title:'URL',url:p,failOnCancel:!1};yield s.default.open(n)}catch(n){r(d[10]).Logger.debug(n)}})),function(){return u.apply(this,arguments)})},{tx:'dapp.browser.menu.copy',icon:'copy',onPress:function(){f(),setTimeout((function(){P(p)}),200)}},{tx:'dapp.browser.menu.clearCache',icon:'trash',onPress:function(){f(),h(),T('success',C('dapp.browser.clearScuccess'))}},{tx:_.isInjectedWalletEnabled?'dapp.browser.menu.disable_injected_wallet':'dapp.browser.menu.enable_injected_wallet',icon:'wallet',onPress:function(){f(),_.toggleInjectedWallet(),y()}},{tx:'dapp.browser.menu.home',icon:'house-line',onPress:function(){f(),x()}}];return(0,r(d[11]).jsx)(o.default,{isVisible:b,animationIn:'slideInUp',animationOut:'slideOutDown',onBackdropPress:f,style:{margin:0,justifyContent:'flex-end'},children:(0,r(d[11]).jsxs)(t.View,{style:{borderTopLeftRadius:12,borderTopEndRadius:12,backgroundColor:w.background2,paddingBottom:O.bottom},children:[(0,r(d[11]).jsx)(t.View,{style:{padding:6,justifyContent:'center',alignItems:'center'},children:(0,r(d[11]).jsx)(t.View,{style:{height:4,borderRadius:2,width:50,backgroundColor:w.border}})}),(0,r(d[11]).jsx)(t.View,{style:{marginTop:8},children:k.map((function(n){return(0,r(d[11]).jsx)(c,Object.assign({},n),n.tx)}))})]})})},function(n){var o=n.tx,s=n.icon,c=n.onPress,l=(0,r(d[6]).useTheme)().colors;return(0,r(d[11]).jsxs)(t.TouchableOpacity,{style:{alignItems:'center',flexDirection:'row',paddingHorizontal:16,paddingVertical:8},onPress:c,children:[(0,r(d[11]).jsx)(r(d[12]).Icon,{size:20,icon:s,containerStyle:{width:40,height:40,backgroundColor:l.background1,borderRadius:8,justifyContent:'center',alignItems:'center',marginRight:16}}),(0,r(d[11]).jsx)(r(d[12]).Text,{tx:o,size:"base"})]})})}),4961,[20,316,140,18,3867,4650,3165,3149,701,3156,1413,180,3617]);
|
|
5272
|
+
__d((function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.RecentlyOpenDappsScreen=void 0;r(d[0])(r(d[1]));var e=r(d[2]);_e.RecentlyOpenDappsScreen=(0,r(d[3]).observer)((function(n){var t=n.navigation,o=(0,r(d[4]).useStores)().dappStore,c=(0,r(d[5]).useTheme)().colors,p=o.recentAccessDapps.toJSON(),s=(0,r(d[6]).useTabNavigation)(),u=s.openApp,l=s.openAppOrBrowser;return(0,r(d[7]).jsx)(r(d[8]).Screen,{backgroundColor:c.background2,safeAreaEdges:['top','bottom'],header:(0,r(d[7]).jsx)(r(d[8]).Header,{leftIcon:"arrow-left",onLeftPress:t.goBack,titleTx:"dapp.recentlySearch",rightIcon:"trash",onRightPress:function(){o.clearRecentAccessDapps(),t.goBack()}}),children:(0,r(d[7]).jsx)(e.FlatList,{data:p,keyExtractor:function(e){return e.website},renderItem:function(e){var n=e.item;e.index;return(0,r(d[7]).jsx)(r(d[9]).DAppItem,{dapp:n,openApp:function(){u(n)},openUrl:function(){l(n)}})}})})}))}),4962,[20,140,18,686,701,3165,4301,180,3617,4296]);
|
|
5273
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SearchDappsScreen=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i})(_r(d[2])),n=_r(d[3]);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var i=n.Dimensions.get('screen').width;_e.SearchDappsScreen=(0,_r(d[4]).observer)((function(r){var o=(0,_r(d[5]).useStores)().dappStore,a=(0,_r(d[6]).useTheme)(),s=a.colors,c=a.translate,l=(0,_r(d[7]).useTabNavigation)().openApp,p=(0,t.useState)(''),u=(0,e.default)(p,2),x=u[0],f=u[1],h=o.dapps.filter((function(e){return e.categories.includes(_r(d[8]).DAppCategories.EXCHANGES)})).slice(0,8),y=o.recentAccessDapps.toJSON(),j=(i-32-36)/4,w=function(){r.navigation.navigate('recentOpen')},b=(0,t.useMemo)((function(){return[{title:c('dapp.mostSearched'),data:[{content:(0,_r(d[9]).jsx)(n.FlatList,{data:h,style:{marginBottom:16,paddingHorizontal:16},ListHeaderComponent:(0,_r(d[9]).jsx)(n.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingVertical:8,height:40,marginBottom:4},children:(0,_r(d[9]).jsx)(_r(d[10]).Text,{tx:'dapp.mostSearched'})}),keyExtractor:function(e){return e.website},numColumns:4,ItemSeparatorComponent:function(){return(0,_r(d[9]).jsx)(n.View,{style:{height:12}})},renderItem:function(e){var t=e.item,r=e.index;return(0,_r(d[9]).jsx)(n.TouchableOpacity,{onPress:function(){l(t)},children:(0,_r(d[9]).jsxs)(n.View,{style:{width:j,marginLeft:r%4!=0?12:0,alignItems:'center'},children:[(0,_r(d[9]).jsx)(_r(d[11]).DAppLogo,{logo:t.logo,style:{width:40,height:40,borderRadius:12,marginBottom:10}}),(0,_r(d[9]).jsx)(_r(d[10]).Text,{text:t.name,ellipsizeMode:"tail",size:"sm",style:{textAlign:'center'},numberOfLines:1})]})})}})}]},{title:c('dapp.recently'),data:[{content:y.length?(0,_r(d[9]).jsx)(n.FlatList,{data:y,keyExtractor:function(e){return e.website},ListEmptyComponent:function(){return(0,_r(d[9]).jsx)(n.View,{children:(0,_r(d[9]).jsx)(_r(d[10]).Text,{preset:"label",tx:"common.noData",style:{textAlign:'center'}})})},ListHeaderComponent:(0,_r(d[9]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingVertical:8,paddingHorizontal:16,height:40},children:[(0,_r(d[9]).jsx)(_r(d[10]).Text,{tx:'dapp.recently'}),(0,_r(d[9]).jsx)(n.TouchableOpacity,{onPress:w,children:(0,_r(d[9]).jsx)(_r(d[10]).Text,{tx:'dapp.all',color:s.link})})]}),renderItem:function(e){var t=e.item;e.index;return(0,_r(d[9]).jsx)(_r(d[12]).DAppItem,{isShowFlag:!0,dapp:t,openApp:function(){l&&l(t)},openUrl:function(){}})}}):null}]}]}),[y]);return(0,_r(d[9]).jsxs)(_r(d[10]).Screen,{safeAreaEdges:['top'],contentContainerStyle:{flex:1},backgroundColor:s.background2,children:[(0,_r(d[9]).jsxs)(n.View,{style:{paddingLeft:16,height:54,flexDirection:'row',alignItems:'center',width:'100%'},children:[(0,_r(d[9]).jsx)(n.View,{style:{flex:1},children:(0,_r(d[9]).jsx)(_r(d[13]).SearchBar,{onSearch:f,value:x,placeholderTx:"dapp.search",autoCapitalize:"none",autoCorrect:!1})}),(0,_r(d[9]).jsx)(n.TouchableOpacity,{style:{paddingVertical:12,paddingHorizontal:16},onPress:function(){f(''),r.navigation.goBack()},children:(0,_r(d[9]).jsx)(_r(d[10]).Text,{tx:"common.cancel",color:s.link,style:{textAlign:'center'}})})]}),x?(0,_r(d[9]).jsx)(_r(d[12]).DAppsList,{searchText:x}):(0,_r(d[9]).jsx)(n.SectionList,{sections:b,stickySectionHeadersEnabled:!1,scrollEventThrottle:16,keyExtractor:function(e,t){return t.toString()},renderItem:function(e){return e.item.content}})]})}))}),4963,[20,34,140,18,686,701,3165,4301,4850,180,3617,4298,4296,3896]);
|
|
5274
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.FavoritesDappScreen=void 0;r(d[0])(r(d[1]));var t=r(d[2]);e.FavoritesDappScreen=(0,r(d[3]).observer)((function(n){var o=(0,r(d[4]).useStores)(),p=o.dappStore,c=o.account,u=(0,r(d[5]).useTheme)().colors,s=p.favoriteDApps.toJSON().filter((function(t){return t.accountId===c.id})),f=(0,r(d[6]).useTabNavigation)(),l=f.openApp,v=f.openAppOrBrowser;return(0,r(d[7]).jsx)(r(d[8]).Screen,{safeAreaEdges:['top'],contentContainerStyle:{flex:1},backgroundColor:u.background2,header:(0,r(d[7]).jsx)(r(d[8]).Header,{titleTx:"dapp.favorite",leftIcon:"arrow-left",onLeftPress:n.navigation.goBack}),children:(0,r(d[7]).jsx)(t.FlatList,{data:s,keyExtractor:function(t,n){return t.name+n},getItemLayout:function(t,n){return{length:72,offset:72*n,index:n}},renderItem:function(t){var n=t.item;return(0,r(d[7]).jsx)(r(d[9]).DAppItem,{dapp:n,openApp:function(){l(n)},openUrl:function(){v(n)}})}})})}))}),4964,[20,140,18,686,701,3165,4301,180,3617,4296]);
|
|
5275
5275
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletNavigator=void 0;_r(d[0])(_r(d[1]));var e=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=n(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&{}.hasOwnProperty.call(e,c)){var i=a?Object.getOwnPropertyDescriptor(e,c):null;i&&(i.get||i.set)?Object.defineProperty(r,c,i):r[c]=e[c]}return r.default=e,o&&o.set(e,r),r})(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(n=function(e){return e?o:t})(e)}var t=(0,_r(d[3]).createNativeStackNavigator)();_e.WalletNavigator=(0,_r(d[4]).observer)((function(){return(0,_r(d[5]).jsxs)(t.Navigator,{screenOptions:function(e){e.route;return{cardStyle:{backgroundColor:'transparent'},headerShown:!1}},children:[(0,_r(d[5]).jsx)(t.Screen,{name:"walletEdit",component:e.WalletEditScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"walletAppearance",component:e.WalletAppearanceScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"customizeWallet",component:e.CustomizeWallet}),(0,_r(d[5]).jsx)(t.Screen,{name:"waitingForCreatingWallet",component:e.WaitingForCreatingWalletScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"importWallet",initialParams:{type:'seed'},component:e.ImportWalletScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"tokenManager",component:e.TokenManagerScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"importCustomToken",component:e.ImportCustomTokenScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"transactionDetail",component:e.TransactionDetailScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"shareWalletScreenByQR",component:e.ShareWalletScreenByQR}),(0,_r(d[5]).jsx)(t.Screen,{name:"sendTokenReceipientSelect",component:e.SendTokenRecipientSelect}),(0,_r(d[5]).jsx)(t.Screen,{name:"sendToken",component:e.SendTokenScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"confirmSendToken",component:e.ConfirmSendTokenScreen,options:{presentation:'transparentModal',animation:'fade'}}),(0,_r(d[5]).jsx)(t.Screen,{name:"waitingForSendingToken",component:e.WaitingForSendingTokenScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"walletSelection",component:e.WalletSelectionScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"confirmDAppTransaction",component:e.ConfirmDAppTransactionScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"confirmDAppTransactionStatus",component:e.ConfirmDAppTransactionStatusScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"dAppPairingStatus",component:e.DAppPairingStatusScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"tokenDetail",component:e.TokenDetailsScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"tokenIntroduction",component:e.TokenIntroductionScreen,options:{presentation:'modal'}}),(0,_r(d[5]).jsx)(t.Screen,{name:"tokenSecurity",component:e.TokenSecurityScreen,options:{presentation:'modal'}}),(0,_r(d[5]).jsx)(t.Screen,{name:"walletSecurity",component:e.WalletSecurityScreen,options:{presentation:'modal'}}),(0,_r(d[5]).jsx)(t.Screen,{name:"warningThreats",component:e.WarningThreatsScreen,options:{presentation:'transparentModal'}}),(0,_r(d[5]).jsx)(t.Screen,{name:"scamCustomToken",component:e.ScamCustomTokenScreen,options:{presentation:'transparentModal'}}),(0,_r(d[5]).jsx)(t.Screen,{name:"swapToken",component:e.SwapTokenScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"confirmSwapTransaction",component:e.ConfirmSwapTransactionScreen,options:{presentation:'transparentModal',animation:'fade'}}),(0,_r(d[5]).jsx)(t.Screen,{name:"listTokenAmountByChain",component:e.ListTokenAmountByChainScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"approvalInfoScreen",options:{presentation:'modal'},component:e.ApprovalInfoScreen}),(0,_r(d[5]).jsx)(t.Screen,{name:"selectToken",component:e.SelectTokenScreen})]})}))}),4965,[20,140,4364,4322,686,180]);
|
|
5276
|
-
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.DAppsNavigator=void 0;_r(d[0])(_r(d[1]));var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(a,i,c):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a})(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}var r=(0,_r(d[3]).createNativeStackNavigator)();_e.DAppsNavigator=(0,_r(d[4]).observer)((function(){return(0,_r(d[5]).jsxs)(r.Navigator,{initialRouteName:"detail",screenOptions:{headerShown:!1},children:[(0,_r(d[5]).jsx)(r.Screen,{name:"detail",component:e.DetailScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"browser",component:e.BrowserTabsNavigator}),(0,_r(d[5]).jsx)(r.Screen,{name:"recentOpen",component:e.RecentlyOpenDappsScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"search",component:e.SearchDappsScreen,options:{animation:'slide_from_bottom'}}),(0,_r(d[5]).jsx)(r.Screen,{name:"favorites",component:e.FavoritesDappScreen})]})}))}),4966,[20,140,
|
|
5276
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.DAppsNavigator=void 0;_r(d[0])(_r(d[1]));var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(a,i,c):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a})(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}var r=(0,_r(d[3]).createNativeStackNavigator)();_e.DAppsNavigator=(0,_r(d[4]).observer)((function(){return(0,_r(d[5]).jsxs)(r.Navigator,{initialRouteName:"detail",screenOptions:{headerShown:!1},children:[(0,_r(d[5]).jsx)(r.Screen,{name:"detail",component:e.DetailScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"browser",component:e.BrowserTabsNavigator}),(0,_r(d[5]).jsx)(r.Screen,{name:"recentOpen",component:e.RecentlyOpenDappsScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"search",component:e.SearchDappsScreen,options:{animation:'slide_from_bottom'}}),(0,_r(d[5]).jsx)(r.Screen,{name:"favorites",component:e.FavoritesDappScreen})]})}))}),4966,[20,140,4911,4322,686,180]);
|
|
5277
5277
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SettingNavigator=void 0;_r(d[0])(_r(d[1]));var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var o={__proto__:null},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=c?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,t&&t.set(e,o),o})(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}var r=(0,_r(d[3]).createNativeStackNavigator)();_e.SettingNavigator=(0,_r(d[4]).observer)((function(){return(0,_r(d[5]).jsxs)(r.Navigator,{screenOptions:function(e){e.route;return{cardStyle:{backgroundColor:'transparent'},headerShown:!1}},initialRouteName:"settings",children:[(0,_r(d[5]).jsx)(r.Screen,{name:"confirmOldPin",component:e.ConfirmOldPinScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"enterNewPin",component:e.ChangePinScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"confirmNewPin",component:e.ConfirmNewPinScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"settings",component:e.SettingScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"addressBook",component:e.AddressBookManagementScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"termAndPolicy",component:e.TermAndPolicyScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"setCurrency",component:e.SelectCurrencyScreen}),(0,_r(d[5]).jsx)(r.Screen,{name:"browserMobileView",component:e.BrowserMobileScreen})]})}))}),4967,[20,140,4892,4322,686,180]);
|
|
5278
5278
|
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletListModalScreen=void 0;var e=_r(d[0])(_r(d[1])),t=l(_r(d[2])),n=_r(d[3]),r=_r(d[0])(_r(d[4])),o=l(_r(d[5])),i=_r(d[0])(_r(d[6]));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}_e.WalletListModalScreen=function(){var a=(0,_r(d[7]).useStores)().userStore,l=(0,_r(d[8]).useTheme)(),s=l.colors,c=l.translate,u=(0,_r(d[9]).useSafeAreaInsets)(),f=(0,_r(d[10]).useExitApp)().closeApp,p=_r(d[11]).cacheStorage.get(_r(d[11]).CacheStorageKey.USER_INFO),x=(0,t.useState)(null!=p&&p.avatar?{uri:null==p?void 0:p.avatar}:i.default.Image.onus_user),y=(0,e.default)(x,2),b=y[0],h=y[1],j=(0,t.useState)(!1),w=(0,e.default)(j,2),I=w[0],C=w[1],S=a.selectedAccount,k=S.wallets||[],v=S.selectedWalletId,T=(0,_r(d[12]).orderBy)(k.filter((function(e){e.name,e.background,e.address,e.totalAmount,e.isLoadingToken,e.icon;return!0})).map((function(e){return Object.assign({},e,{isSelected:e.id===v})})),['isSelected','totalAmount'],['desc','desc']),O=function(){(0,_r(d[13]).goBack)()};return(0,_r(d[14]).jsxs)(n.View,{style:{flex:1,justifyContent:'flex-end',backgroundColor:s.overlayModal,paddingTop:u.top+16},children:[(0,_r(d[14]).jsx)(n.View,{style:{flex:1},onTouchEnd:O}),(0,_r(d[14]).jsxs)(o.default.View,{entering:o.SlideInDown.duration(300),exiting:o.FadeInDown,style:{borderTopLeftRadius:12,borderTopEndRadius:12,backgroundColor:s.onusBottomSheet,paddingBottom:u.bottom+16,marginTop:u.top},children:[(0,_r(d[14]).jsx)(n.FlatList,{data:T,keyExtractor:function(e,t){return e.id+t},contentContainerStyle:{paddingHorizontal:16},ListHeaderComponent:function(){return(0,_r(d[14]).jsxs)(_r(d[14]).Fragment,{children:[(0,_r(d[14]).jsxs)(n.View,{style:{paddingVertical:16},children:[(0,_r(d[14]).jsx)(_r(d[15]).Text,{tx:"walletDetailScreen.onusWallet",preset:"bold",size:"base",color:s.label}),(0,_r(d[14]).jsx)(n.TouchableOpacity,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginTop:12,borderRadius:12,backgroundColor:s.dark3,paddingVertical:12,paddingHorizontal:16},onPress:function(){return f()},children:(0,_r(d[14]).jsxs)(n.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,_r(d[14]).jsx)(r.default,{source:b,resizeMode:"cover",style:{borderRadius:40,height:40,width:40,alignItems:'center',justifyContent:'center',marginRight:12},onError:function(){return h(i.default.Image.onus_user)}}),(0,_r(d[14]).jsx)(_r(d[15]).Text,{text:(null==p?void 0:p.name)||c('walletDetailScreen.onusName'),size:"base",style:{flex:1},numberOfLines:2})]})})]}),(0,_r(d[14]).jsx)(_r(d[15]).Text,{tx:"onBoardScreen.web3Wallet",preset:"bold",size:"base",color:s.label})]})},renderItem:function(e){var t,r,o=e.item,i=e.index;return(0,_r(d[14]).jsxs)(n.TouchableOpacity,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginTop:12,borderRadius:12,backgroundColor:s.dark3,paddingVertical:12,paddingHorizontal:16,flex:1},onPress:function(){S.setSelectedWalletId(o.id),O()},children:[(0,_r(d[14]).jsxs)(n.View,{style:{flexDirection:'row',flex:1},children:[(0,_r(d[14]).jsxs)(n.View,{style:{borderRadius:40,height:40,width:40,backgroundColor:_r(d[16]).WALLET_BACKGROUND[o.background],alignItems:'center',justifyContent:'center',marginRight:12},children:[(0,_r(d[14]).jsx)(_r(d[15]).Icon3D,{icon:o.icon,size:24}),!!o.chainId&&(0,_r(d[14]).jsx)(_r(d[17]).CryptoIcon,{symbol:null==(t=(0,_r(d[18]).getChainFromId)({chainId:o.chainId}))?void 0:t.currency,size:18,chainId:null==(r=(0,_r(d[18]).getChainFromId)({chainId:o.chainId}))?void 0:r.chainId,style:{backgroundColor:s.background,position:'absolute',bottom:-4,right:-3,borderRadius:9,borderWidth:2,borderColor:s.dark3}})]}),(0,_r(d[14]).jsxs)(n.View,{style:{flex:1,marginRight:16},children:[(0,_r(d[14]).jsx)(_r(d[15]).Text,{text:o.name,size:"base",style:{flexShrink:1,flexGrow:1},numberOfLines:1}),(0,_r(d[14]).jsx)(_r(d[15]).Text,{text:_r(d[19]).tokenRateService.getValueDisplayForCurrency(o.totalAmount,S.currency.name).display,size:"base",preset:"label"})]})]}),(0,_r(d[14]).jsx)(_r(d[15]).Icon,{icon:"check-circle-fill",color:v===o.id?s.primary:s.dark3,size:24})]},i)}}),(0,_r(d[14]).jsx)(n.View,{style:{marginTop:24,paddingHorizontal:16},children:(0,_r(d[14]).jsx)(_r(d[15]).Button,{preset:"secondary",tx:"walletListScreen.addWallet",style:{borderColor:s.white,borderRadius:8},textStyle:{color:s.white},LeftAccessory:function(){return(0,_r(d[14]).jsx)(_r(d[15]).Icon,{icon:"plus",size:24,style:{marginRight:10}})},onPress:function(){C(!0)}})})]}),(0,_r(d[14]).jsx)(_r(d[20]).CreateWalletActions,{isOpen:I,onClose:function(){C(!1)}})]})}}),4968,[20,34,140,18,3894,3932,3060,701,3165,3156,3177,1459,1064,631,180,3617,3409,4044,1474,2812,4315]);
|
|
5279
|
-
__d((function(g,
|
|
5280
|
-
__d((function(g,
|
|
5281
|
-
__d((function(g,
|
|
5282
|
-
__d((function(g,_r,_i,_a,m,_e,_d){var t=(function(e){"use strict";var r=1e7,o=7,n=9007199254740992,i=h(n),u="0123456789abcdefghijklmnopqrstuvwxyz",p="function"==typeof BigInt;function a(t,e,r,o){return void 0===t?a[0]:void 0!==e&&(10!=+e||r)?W(t,e,r,o):nt(t)}function s(t,e){this.value=t,this.sign=e,this.isSmall=!1}function l(t){this.value=t,this.sign=t<0,this.isSmall=!0}function f(t){this.value=t}function v(t){return-9007199254740992<t&&t<n}function h(t){return t<1e7?[t]:t<1e14?[t%1e7,Math.floor(t/1e7)]:[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function y(t){c(t);var e=t.length;if(e<4&&T(t,i)<0)switch(e){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*r;default:return t[0]+(t[1]+t[2]*r)*r}return t}function c(t){for(var e=t.length;0===t[--e];);t.length=e+1}function d(t){for(var e=new Array(t),r=-1;++r<t;)e[r]=0;return e}function w(t){return t>0?Math.floor(t):Math.ceil(t)}function b(t,e){var o,n,i=t.length,u=e.length,p=new Array(i),a=0,s=r;for(n=0;n<u;n++)a=(o=t[n]+e[n]+a)>=s?1:0,p[n]=o-a*s;for(;n<i;)a=(o=t[n]+a)===s?1:0,p[n++]=o-a*s;return a>0&&p.push(a),p}function S(t,e){return t.length>=e.length?b(t,e):b(e,t)}function q(t,e){var o,n,i=t.length,u=new Array(i),p=r;for(n=0;n<i;n++)o=t[n]-p+e,e=Math.floor(o/p),u[n]=o-e*p,e+=1;for(;e>0;)u[n++]=e%p,e=Math.floor(e/p);return u}function M(t,e){var o,n,i=t.length,u=e.length,p=new Array(i),a=0,s=r;for(o=0;o<u;o++)(n=t[o]-a-e[o])<0?(n+=s,a=1):a=0,p[o]=n;for(o=u;o<i;o++){if(!((n=t[o]-a)<0)){p[o++]=n;break}n+=s,p[o]=n}for(;o<i;o++)p[o]=t[o];return c(p),p}function N(t,e,r){var o;return T(t,e)>=0?o=M(t,e):(o=M(e,t),r=!r),"number"==typeof(o=y(o))?(r&&(o=-o),new l(o)):new s(o,r)}function E(t,e,o){var n,i,u=t.length,p=new Array(u),a=-e,f=r;for(n=0;n<u;n++)i=t[n]+a,a=Math.floor(i/f),i%=f,p[n]=i<0?i+f:i;return"number"==typeof(p=y(p))?(o&&(p=-p),new l(p)):new s(p,o)}function I(t,e){var o,n,i,u,p=t.length,a=e.length,s=d(p+a),l=r;for(i=0;i<p;++i){u=t[i];for(var f=0;f<a;++f)o=u*e[f]+s[i+f],n=Math.floor(o/l),s[i+f]=o-n*l,s[i+f+1]+=n}return c(s),s}function O(t,e){var o,n,i=t.length,u=new Array(i),p=r,a=0;for(n=0;n<i;n++)o=t[n]*e+a,a=Math.floor(o/p),u[n]=o-a*p;for(;a>0;)u[n++]=a%p,a=Math.floor(a/p);return u}function B(t,e){for(var r=[];e-- >0;)r.push(0);return r.concat(t)}function A(t,e){var r=Math.max(t.length,e.length);if(r<=30)return I(t,e);r=Math.ceil(r/2);var o=t.slice(r),n=t.slice(0,r),i=e.slice(r),u=e.slice(0,r),p=A(n,u),a=A(o,i),s=A(S(n,o),S(u,i)),l=S(S(p,B(M(M(s,p),a),r)),B(a,2*r));return c(l),l}function P(t,e,o){return new s(t<r?O(e,t):I(e,h(t)),o)}function Z(t){var e,o,n,i,u=t.length,p=d(u+u),a=r;for(n=0;n<u;n++){o=0-(i=t[n])*i;for(var s=n;s<u;s++)e=i*t[s]*2+p[n+s]+o,o=Math.floor(e/a),p[n+s]=e-o*a;p[n+u]=o}return c(p),p}function x(t,e){var o,n,i,u,p,a,s,l=t.length,f=e.length,v=r,h=d(e.length),c=e[f-1],w=Math.ceil(v/(2*c)),b=O(t,w),S=O(e,w);for(b.length<=l&&b.push(0),S.push(0),c=S[f-1],n=l-f;n>=0;n--){for(o=9999999,b[n+f]!==c&&(o=Math.floor((b[n+f]*v+b[n+f-1])/c)),i=0,u=0,a=S.length,p=0;p<a;p++)i+=o*S[p],s=Math.floor(i/v),u+=b[n+p]-(i-s*v),i=s,u<0?(b[n+p]=u+v,u=-1):(b[n+p]=u,u=0);for(;0!==u;){for(o-=1,i=0,p=0;p<a;p++)(i+=b[n+p]-v+S[p])<0?(b[n+p]=i+v,i=0):(b[n+p]=i,i=1);u+=i}h[n]=o}return b=L(b,w)[0],[y(h),y(b)]}function J(t,e){for(var o,n,i,u,p,a=t.length,s=e.length,l=[],f=[],v=r;a;)if(f.unshift(t[--a]),c(f),T(f,e)<0)l.push(0);else{i=f[(n=f.length)-1]*v+f[n-2],u=e[s-1]*v+e[s-2],n>s&&(i=(i+1)*v),o=Math.ceil(i/u);do{if(T(p=O(e,o),f)<=0)break;o--}while(o);l.push(o),f=M(f,p)}return l.reverse(),[y(l),y(f)]}function L(t,e){var o,n,i,u,p=t.length,a=d(p),s=r;for(i=0,o=p-1;o>=0;--o)i=(u=i*s+t[o])-(n=w(u/e))*e,a[o]=0|n;return[a,0|i]}function U(t,e){var o,n=nt(e);if(p)return[new f(t.value/n.value),new f(t.value%n.value)];var i,u=t.value,v=n.value;if(0===v)throw new Error("Cannot divide by zero");if(t.isSmall)return n.isSmall?[new l(w(u/v)),new l(u%v)]:[a[0],t];if(n.isSmall){if(1===v)return[t,a[0]];if(-1==v)return[t.negate(),a[0]];var c=Math.abs(v);if(c<r){i=y((o=L(u,c))[0]);var d=o[1];return t.sign&&(d=-d),"number"==typeof i?(t.sign!==n.sign&&(i=-i),[new l(i),new l(d)]):[new s(i,t.sign!==n.sign),new l(d)]}v=h(c)}var b=T(u,v);if(-1===b)return[a[0],t];if(0===b)return[a[t.sign===n.sign?1:-1],a[0]];i=(o=u.length+v.length<=200?x(u,v):J(u,v))[0];var S=t.sign!==n.sign,q=o[1],M=t.sign;return"number"==typeof i?(S&&(i=-i),i=new l(i)):i=new s(i,S),"number"==typeof q?(M&&(q=-q),q=new l(q)):q=new s(q,M),[i,q]}function T(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}function j(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(49)||void 0))}function C(e,r){for(var o,n,i,u=e.prev(),p=u,a=0;p.isEven();)p=p.divide(2),a++;t:for(n=0;n<r.length;n++)if(!e.lesser(r[n])&&!(i=t(r[n]).modPow(p,e)).isUnit()&&!i.equals(u)){for(o=a-1;0!=o;o--){if((i=i.square().mod(e)).isUnit())return!1;if(i.equals(u))continue t}return!1}return!0}s.prototype=Object.create(a.prototype),l.prototype=Object.create(a.prototype),f.prototype=Object.create(a.prototype),s.prototype.add=function(t){var e=nt(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,o=e.value;return e.isSmall?new s(q(r,Math.abs(o)),this.sign):new s(S(r,o),this.sign)},s.prototype.plus=s.prototype.add,l.prototype.add=function(t){var e=nt(t),r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var o=e.value;if(e.isSmall){if(v(r+o))return new l(r+o);o=h(Math.abs(o))}return new s(q(o,Math.abs(r)),r<0)},l.prototype.plus=l.prototype.add,f.prototype.add=function(t){return new f(this.value+nt(t).value)},f.prototype.plus=f.prototype.add,s.prototype.subtract=function(t){var e=nt(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,o=e.value;return e.isSmall?E(r,Math.abs(o),this.sign):N(r,o,this.sign)},s.prototype.minus=s.prototype.subtract,l.prototype.subtract=function(t){var e=nt(t),r=this.value;if(r<0!==e.sign)return this.add(e.negate());var o=e.value;return e.isSmall?new l(r-o):E(o,Math.abs(r),r>=0)},l.prototype.minus=l.prototype.subtract,f.prototype.subtract=function(t){return new f(this.value-nt(t).value)},f.prototype.minus=f.prototype.subtract,s.prototype.negate=function(){return new s(this.value,!this.sign)},l.prototype.negate=function(){var t=this.sign,e=new l(-this.value);return e.sign=!t,e},f.prototype.negate=function(){return new f(-this.value)},s.prototype.abs=function(){return new s(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)},s.prototype.multiply=function(t){var e,o,n,i=nt(t),u=this.value,p=i.value,l=this.sign!==i.sign;if(i.isSmall){if(0===p)return a[0];if(1===p)return this;if(-1===p)return this.negate();if((e=Math.abs(p))<r)return new s(O(u,e),l);p=h(e)}return o=u.length,n=p.length,new s(-.012*o-.012*n+15e-6*o*n>0?A(u,p):I(u,p),l)},s.prototype.times=s.prototype.multiply,l.prototype._multiplyBySmall=function(t){return v(t.value*this.value)?new l(t.value*this.value):P(Math.abs(t.value),h(Math.abs(this.value)),this.sign!==t.sign)},s.prototype._multiplyBySmall=function(t){return 0===t.value?a[0]:1===t.value?this:-1===t.value?this.negate():P(Math.abs(t.value),this.value,this.sign!==t.sign)},l.prototype.multiply=function(t){return nt(t)._multiplyBySmall(this)},l.prototype.times=l.prototype.multiply,f.prototype.multiply=function(t){return new f(this.value*nt(t).value)},f.prototype.times=f.prototype.multiply,s.prototype.square=function(){return new s(Z(this.value),!1)},l.prototype.square=function(){var t=this.value*this.value;return v(t)?new l(t):new s(Z(h(Math.abs(this.value))),!1)},f.prototype.square=function(t){return new f(this.value*this.value)},s.prototype.divmod=function(t){var e=U(this,t);return{quotient:e[0],remainder:e[1]}},f.prototype.divmod=l.prototype.divmod=s.prototype.divmod,s.prototype.divide=function(t){return U(this,t)[0]},f.prototype.over=f.prototype.divide=function(t){return new f(this.value/nt(t).value)},l.prototype.over=l.prototype.divide=s.prototype.over=s.prototype.divide,s.prototype.mod=function(t){return U(this,t)[1]},f.prototype.mod=f.prototype.remainder=function(t){return new f(this.value%nt(t).value)},l.prototype.remainder=l.prototype.mod=s.prototype.remainder=s.prototype.mod,s.prototype.pow=function(t){var e,r,o,n=nt(t),i=this.value,u=n.value;if(0===u)return a[1];if(0===i)return a[0];if(1===i)return a[1];if(-1===i)return n.isEven()?a[1]:a[-1];if(n.sign)return a[0];if(!n.isSmall)throw new Error("The exponent "+n.toString()+" is too large.");if(this.isSmall&&v(e=Math.pow(i,u)))return new l(w(e));for(r=this,o=a[1];!0&u&&(o=o.times(r),--u),0!==u;)u/=2,r=r.square();return o},l.prototype.pow=s.prototype.pow,f.prototype.pow=function(t){var e=nt(t),r=this.value,o=e.value,n=BigInt(0),i=BigInt(1),u=BigInt(2);if(o===n)return a[1];if(r===n)return a[0];if(r===i)return a[1];if(r===BigInt(-1))return e.isEven()?a[1]:a[-1];if(e.isNegative())return new f(n);for(var p=this,s=a[1];(o&i)===i&&(s=s.times(p),--o),o!==n;)o/=u,p=p.square();return s},s.prototype.modPow=function(t,e){if(t=nt(t),(e=nt(e)).isZero())throw new Error("Cannot take modPow with modulus 0");var r=a[1],o=this.mod(e);for(t.isNegative()&&(t=t.multiply(a[-1]),o=o.modInv(e));t.isPositive();){if(o.isZero())return a[0];t.isOdd()&&(r=r.multiply(o).mod(e)),t=t.divide(2),o=o.square().mod(e)}return r},f.prototype.modPow=l.prototype.modPow=s.prototype.modPow,s.prototype.compareAbs=function(t){var e=nt(t),r=this.value,o=e.value;return e.isSmall?1:T(r,o)},l.prototype.compareAbs=function(t){var e=nt(t),r=Math.abs(this.value),o=e.value;return e.isSmall?r===(o=Math.abs(o))?0:r>o?1:-1:-1},f.prototype.compareAbs=function(t){var e=this.value,r=nt(t).value;return(e=e>=0?e:-e)===(r=r>=0?r:-r)?0:e>r?1:-1},s.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=nt(t),r=this.value,o=e.value;return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:T(r,o)*(this.sign?-1:1)},s.prototype.compareTo=s.prototype.compare,l.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=nt(t),r=this.value,o=e.value;return e.isSmall?r==o?0:r>o?1:-1:r<0!==e.sign?r<0?-1:1:r<0?1:-1},l.prototype.compareTo=l.prototype.compare,f.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=this.value,r=nt(t).value;return e===r?0:e>r?1:-1},f.prototype.compareTo=f.prototype.compare,s.prototype.equals=function(t){return 0===this.compare(t)},f.prototype.eq=f.prototype.equals=l.prototype.eq=l.prototype.equals=s.prototype.eq=s.prototype.equals,s.prototype.notEquals=function(t){return 0!==this.compare(t)},f.prototype.neq=f.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=s.prototype.neq=s.prototype.notEquals,s.prototype.greater=function(t){return this.compare(t)>0},f.prototype.gt=f.prototype.greater=l.prototype.gt=l.prototype.greater=s.prototype.gt=s.prototype.greater,s.prototype.lesser=function(t){return this.compare(t)<0},f.prototype.lt=f.prototype.lesser=l.prototype.lt=l.prototype.lesser=s.prototype.lt=s.prototype.lesser,s.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},f.prototype.geq=f.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals,s.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},f.prototype.leq=f.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals,s.prototype.isEven=function(){return!(1&this.value[0])},l.prototype.isEven=function(){return!(1&this.value)},f.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},s.prototype.isOdd=function(){return!(1&~this.value[0])},l.prototype.isOdd=function(){return!(1&~this.value)},f.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},s.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},f.prototype.isPositive=l.prototype.isPositive,s.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},f.prototype.isNegative=l.prototype.isNegative,s.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return 1===Math.abs(this.value)},f.prototype.isUnit=function(){return this.abs().value===BigInt(1)},s.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return 0===this.value},f.prototype.isZero=function(){return this.value===BigInt(0)},s.prototype.isDivisibleBy=function(t){var e=nt(t);return!e.isZero()&&(!!e.isUnit()||(0===e.compareAbs(2)?this.isEven():this.mod(e).isZero()))},f.prototype.isDivisibleBy=l.prototype.isDivisibleBy=s.prototype.isDivisibleBy,s.prototype.isPrime=function(r){var o=j(this);if(o!==e)return o;var n=this.abs(),i=n.bitLength();if(i<=64)return C(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var u=Math.log(2)*i.toJSNumber(),p=Math.ceil(!0===r?2*Math.pow(u,2):u),a=[],s=0;s<p;s++)a.push(t(s+2));return C(n,a)},f.prototype.isPrime=l.prototype.isPrime=s.prototype.isPrime,s.prototype.isProbablePrime=function(r,o){var n=j(this);if(n!==e)return n;for(var i=this.abs(),u=r===e?5:r,p=[],a=0;a<u;a++)p.push(t.randBetween(2,i.minus(2),o));return C(i,p)},f.prototype.isProbablePrime=l.prototype.isProbablePrime=s.prototype.isProbablePrime,s.prototype.modInv=function(e){for(var r,o,n,i=t.zero,u=t.one,p=nt(e),a=this.abs();!a.isZero();)r=p.divide(a),o=i,n=p,i=u,p=a,u=o.subtract(r.multiply(u)),a=n.subtract(r.multiply(a));if(!p.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===i.compare(0)&&(i=i.add(e)),this.isNegative()?i.negate():i},f.prototype.modInv=l.prototype.modInv=s.prototype.modInv,s.prototype.next=function(){var t=this.value;return this.sign?E(t,1,this.sign):new s(q(t,1),this.sign)},l.prototype.next=function(){var t=this.value;return t+1<n?new l(t+1):new s(i,!1)},f.prototype.next=function(){return new f(this.value+BigInt(1))},s.prototype.prev=function(){var t=this.value;return this.sign?new s(q(t,1),!0):E(t,1,this.sign)},l.prototype.prev=function(){var t=this.value;return t-1>-9007199254740992?new l(t-1):new s(i,!0)},f.prototype.prev=function(){return new f(this.value-BigInt(1))};for(var D=[1];2*D[D.length-1]<=r;)D.push(2*D[D.length-1]);var z=D.length,R=D[z-1];function _(t){return Math.abs(t)<=r}function k(e,r,o){r=nt(r);for(var n=e.isNegative(),i=r.isNegative(),u=n?e.not():e,p=i?r.not():r,a=0,s=0,l=null,f=null,v=[];!u.isZero()||!p.isZero();)a=(l=U(u,R))[1].toJSNumber(),n&&(a=R-1-a),s=(f=U(p,R))[1].toJSNumber(),i&&(s=R-1-s),u=l[0],p=f[0],v.push(o(a,s));for(var h=0!==o(n?1:0,i?1:0)?t(-1):t(0),y=v.length-1;y>=0;y-=1)h=h.multiply(R).add(t(v[y]));return h}s.prototype.shiftLeft=function(t){var e=nt(t).toJSNumber();if(!_(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;for(;e>=z;)r=r.multiply(R),e-=z-1;return r.multiply(D[e])},f.prototype.shiftLeft=l.prototype.shiftLeft=s.prototype.shiftLeft,s.prototype.shiftRight=function(t){var e,r=nt(t).toJSNumber();if(!_(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var o=this;r>=z;){if(o.isZero()||o.isNegative()&&o.isUnit())return o;o=(e=U(o,R))[1].isNegative()?e[0].prev():e[0],r-=z-1}return(e=U(o,D[r]))[1].isNegative()?e[0].prev():e[0]},f.prototype.shiftRight=l.prototype.shiftRight=s.prototype.shiftRight,s.prototype.not=function(){return this.negate().prev()},f.prototype.not=l.prototype.not=s.prototype.not,s.prototype.and=function(t){return k(this,t,(function(t,e){return t&e}))},f.prototype.and=l.prototype.and=s.prototype.and,s.prototype.or=function(t){return k(this,t,(function(t,e){return t|e}))},f.prototype.or=l.prototype.or=s.prototype.or,s.prototype.xor=function(t){return k(this,t,(function(t,e){return t^e}))},f.prototype.xor=l.prototype.xor=s.prototype.xor;var $=1073741824,F=1073758208;function G(t){var e=t.value,o="number"==typeof e?e|$:"bigint"==typeof e?e|BigInt($):e[0]+e[1]*r|F;return o&-o}function H(e,r){if(r.compareTo(e)<=0){var o=H(e,r.square(r)),n=o.p,i=o.e,u=n.multiply(r);return u.compareTo(e)<=0?{p:u,e:2*i+1}:{p:n,e:2*i}}return{p:t(1),e:0}}function K(t,e){return t=nt(t),e=nt(e),t.greater(e)?t:e}function Q(t,e){return t=nt(t),e=nt(e),t.lesser(e)?t:e}function V(t,e){if(t=nt(t).abs(),e=nt(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var r,o,n=a[1];t.isEven()&&e.isEven();)r=Q(G(t),G(e)),t=t.divide(r),e=e.divide(r),n=n.multiply(r);for(;t.isEven();)t=t.divide(G(t));do{for(;e.isEven();)e=e.divide(G(e));t.greater(e)&&(o=e,e=t,t=o),e=e.subtract(t)}while(!e.isZero());return n.isUnit()?t:t.multiply(n)}s.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),0===e.compareTo(t(0))?t(0):t(H(e,t(2)).e).add(t(1))},f.prototype.bitLength=l.prototype.bitLength=s.prototype.bitLength;var W=function(t,e,r,o){r=r||u,t=String(t),o||(t=t.toLowerCase(),r=r.toLowerCase());var n,i=t.length,p=Math.abs(e),a={};for(n=0;n<r.length;n++)a[r[n]]=n;for(n=0;n<i;n++){if("-"!==(f=t[n])&&(f in a&&a[f]>=p)){if("1"===f&&1===p)continue;throw new Error(f+" is not a valid digit in base "+e+".")}}e=nt(e);var s=[],l="-"===t[0];for(n=l?1:0;n<t.length;n++){var f;if((f=t[n])in a)s.push(nt(a[f]));else{if("<"!==f)throw new Error(f+" is not a valid character");var v=n;do{n++}while(">"!==t[n]&&n<t.length);s.push(nt(t.slice(v+1,n)))}}return X(s,e,l)};function X(t,e,r){var o,n=a[0],i=a[1];for(o=t.length-1;o>=0;o--)n=n.add(t[o].times(i)),i=i.times(e);return r?n.negate():n}function Y(t,e){return t<(e=e||u).length?e[t]:"<"+t+">"}function tt(e,r){if((r=t(r)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(r.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var o=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return o.unshift([1]),{value:[].concat.apply([],o),isNegative:!1}}var n=!1;if(e.isNegative()&&r.isPositive()&&(n=!0,e=e.abs()),r.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var i,u=[],p=e;p.isNegative()||p.compareAbs(r)>=0;){i=p.divmod(r),p=i.quotient;var a=i.remainder;a.isNegative()&&(a=r.minus(a).abs(),p=p.next()),u.push(a.toJSNumber())}return u.push(p.toJSNumber()),{value:u.reverse(),isNegative:n}}function et(t,e,r){var o=tt(t,e);return(o.isNegative?"-":"")+o.value.map((function(t){return Y(t,r)})).join('')}function rt(t){if(v(+t)){var e=+t;if(e===w(e))return p?new f(BigInt(e)):new l(e);throw new Error("Invalid integer: "+t)}var r="-"===t[0];r&&(t=t.slice(1));var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var i=n[1];if("+"===i[0]&&(i=i.slice(1)),(i=+i)!==w(i)||!v(i))throw new Error("Invalid integer: "+i+" is not a valid exponent.");var u=n[0],a=u.indexOf(".");if(a>=0&&(i-=u.length-a-1,u=u.slice(0,a)+u.slice(a+1)),i<0)throw new Error("Cannot include negative exponent part for integers");t=u+=new Array(i+1).join("0")}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);if(p)return new f(BigInt(r?"-"+t:t));for(var h=[],y=t.length,d=o,b=y-d;y>0;)h.push(+t.slice(b,y)),(b-=d)<0&&(b=0),y-=d;return c(h),new s(h,r)}function ot(t){if(p)return new f(BigInt(t));if(v(t)){if(t!==w(t))throw new Error(t+" is not an integer.");return new l(t)}return rt(t.toString())}function nt(t){return"number"==typeof t?ot(t):"string"==typeof t?rt(t):"bigint"==typeof t?new f(t):t}s.prototype.toArray=function(t){return tt(this,t)},l.prototype.toArray=function(t){return tt(this,t)},f.prototype.toArray=function(t){return tt(this,t)},s.prototype.toString=function(t,r){if(t===e&&(t=10),10!==t||r)return et(this,t,r);for(var o,n=this.value,i=n.length,u=String(n[--i]);--i>=0;)o=String(n[i]),u+="0000000".slice(o.length)+o;return(this.sign?"-":"")+u},l.prototype.toString=function(t,r){return t===e&&(t=10),10!=t||r?et(this,t,r):String(this.value)},f.prototype.toString=l.prototype.toString,f.prototype.toJSON=s.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},s.prototype.valueOf=function(){return parseInt(this.toString(),10)},s.prototype.toJSNumber=s.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var it=0;it<1e3;it++)a[it]=nt(it),it>0&&(a[-it]=nt(-it));return a.one=a[1],a.zero=a[0],a.minusOne=a[-1],a.max=K,a.min=Q,a.gcd=V,a.lcm=function(t,e){return t=nt(t).abs(),e=nt(e).abs(),t.divide(V(t,e)).multiply(e)},a.isInstance=function(t){return t instanceof s||t instanceof l||t instanceof f},a.randBetween=function(t,e,o){t=nt(t),e=nt(e);var n=o||Math.random,i=Q(t,e),u=K(t,e).subtract(i).add(1);if(u.isSmall)return i.add(Math.floor(n()*u));for(var p=tt(u,r).value,s=[],l=!0,f=0;f<p.length;f++){var v=l?p[f]+(f+1<p.length?p[f+1]/r:0):r,h=w(n()*v);s.push(h),h<p[f]&&(l=!1)}return i.add(a.fromArray(s,r,!1))},a.fromArray=function(t,e,r){return X(t.map(nt),nt(e||10),r)},a})();void 0!==m&&m.hasOwnProperty("exports")&&(m.exports=t),"function"==typeof define&&define.amd&&define((function(){return t}))}),4972,[]);
|
|
5283
|
-
__d((function(a,e,l,d,t,n,y){t.exports={name:"ReadyWallet",displayName:"ReadyWallet"}}),4973,[]);
|
|
5279
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.NoPkScreen=void 0;var e=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=l?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0])),t=_r(d[1]);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}_e.NoPkScreen=(0,_r(d[2]).observer)((function(r){var n,o=r.navigation,l=r.route.params.id,a=(0,_r(d[3]).useStores)().account,s=(0,_r(d[4]).useTheme)().translate,i=null==a||null==(n=a.wallets)?void 0:n.find((function(e){return e.id===l}));return(0,e.useEffect)((function(){i||o.goBack()}),[i]),(0,_r(d[5]).jsx)(_r(d[6]).Screen,{safeAreaEdges:['top','bottom'],preset:"scroll",header:(0,_r(d[5]).jsx)(_r(d[6]).Header,{leftIcon:"arrow-left",onLeftPress:function(){o.goBack()}}),footer:(0,_r(d[5]).jsx)(_r(d[6]).Button,{onPress:function(){o.goBack()},tx:"common.ok",style:{margin:16}}),children:(0,_r(d[5]).jsxs)(t.View,{style:{marginHorizontal:16,marginTop:16},children:[(0,_r(d[5]).jsx)(_r(d[6]).Text,{size:"2x",weight:"medium",text:s('no_pk_error.title',{wallet:null==i?void 0:i.name})}),(0,_r(d[5]).jsx)(_r(d[6]).Text,{tx:"no_pk_error.desc",preset:"label",style:{marginTop:16}}),(0,_r(d[5]).jsx)(_r(d[6]).Text,{tx:"no_pk_error.to_resolve",preset:"label",style:{marginTop:16}}),(0,_r(d[5]).jsx)(_r(d[6]).Text,{tx:"no_pk_error.step_1",preset:"label",style:{marginTop:8}}),(0,_r(d[5]).jsx)(_r(d[6]).Text,{tx:"no_pk_error.step_2",preset:"label",style:{marginTop:4}}),(0,_r(d[5]).jsx)(_r(d[6]).Text,{tx:"no_pk_error.contact",preset:"label",style:{marginTop:16}}),(0,_r(d[5]).jsx)(_r(d[6]).Text,{tx:"no_pk_error.note",preset:"label",style:{marginTop:16}})]})})}))}),4969,[140,18,686,701,3165,180,3617]);
|
|
5280
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useSessionHandler=void 0;var n=r(d[0]);e.useSessionHandler=function(){(0,n.useEffect)((function(){var n=function(n){return r(d[1]).walletConnectService.getDAppConnectionStatus(n).connected},t=r(d[1]).walletConnectService.setListener('session_request',(function(t){r(d[2]).Logger.debug('WALLET CONNECT SESSION REQUEST'),n(t.topic)&&r(d[3]).navigationRef.navigate('main',{screen:'walletStack',params:{screen:'confirmDAppTransaction',params:{sessionRequest:t}}})})),o=r(d[1]).walletConnectService.setListener('session_proposal',(function(t){r(d[2]).Logger.debug('WALLET CONNECT SESSION PROPOSAL'),n(t.params.pairingTopic)||r(d[3]).navigationRef.navigate('dAppPairing',{pairProposal:t})})),s=r(d[1]).walletConnectService.setListener('session_delete',(function(){r(d[2]).Logger.debug('WALLET CONNECT SESSION DELETE'),r(d[4]).EventBus.emit(r(d[4]).AppEventType.DAPP_CONNECTION_UPDATED)}));return function(){t.remove(),o.remove(),s.remove()}}),[])}}),4970,[140,3180,1413,631,1061]);
|
|
5281
|
+
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ErrorBoundary=void 0;var r=_r(d[0])(_r(d[1])),e=_r(d[0])(_r(d[2])),t=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),o=_r(d[0])(_r(d[5])),u=f(_r(d[6])),a=f(_r(d[7]));function l(r){if("function"!=typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(l=function(r){return r?t:e})(r)}function f(r,e){if(!e&&r&&r.__esModule)return r;if(null===r||"object"!=typeof r&&"function"!=typeof r)return{default:r};var t=l(e);if(t&&t.has(r))return t.get(r);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in r)if("default"!==u&&{}.hasOwnProperty.call(r,u)){var a=o?Object.getOwnPropertyDescriptor(r,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=r[u]}return n.default=r,t&&t.set(r,n),n}function i(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(r){}return(i=function(){return!!r})()}_e.ErrorBoundary=(function(u){function l(){var e,o,u,a;(0,r.default)(this,l);for(var f=arguments.length,c=new Array(f),s=0;s<f;s++)c[s]=arguments[s];return o=this,u=l,a=[].concat(c),u=(0,n.default)(u),(e=(0,t.default)(o,i()?Reflect.construct(u,a||[],(0,n.default)(o).constructor):u.apply(o,a))).state={error:null,errorInfo:null},e.resetError=function(){e.setState({error:null,errorInfo:null})},e}return(0,o.default)(l,u),(0,e.default)(l,[{key:"componentDidCatch",value:function(r,e){this.isEnabled()&&(this.setState({error:r,errorInfo:e}),a.captureException(r))}},{key:"shouldComponentUpdate",value:function(r,e){return e.error!==this.state.error}},{key:"isEnabled",value:function(){return!0}},{key:"render",value:function(){return this.isEnabled()&&this.state.error?(0,_r(d[8]).jsx)(_r(d[9]).ErrorDetails,{onReset:this.resetError,error:this.state.error,errorInfo:this.state.errorInfo}):this.props.children}}])})(u.Component)}),4971,[20,9,12,4,3,10,140,445,180,4972]);
|
|
5282
|
+
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorDetails=function(y){var b,f;return(0,r(d[3]).jsxs)(r(d[4]).Screen,{preset:"fixed",safeAreaEdges:["top","bottom"],contentContainerStyle:t,children:[(0,r(d[3]).jsxs)(o.View,{style:n,children:[(0,r(d[3]).jsx)(r(d[4]).Icon,{icon:"bug",size:64}),(0,r(d[3]).jsx)(r(d[4]).Text,{style:s,preset:"bold",text:"error"})]}),(0,r(d[3]).jsxs)(o.ScrollView,{style:l,contentContainerStyle:c,children:[(0,r(d[3]).jsx)(r(d[4]).Text,{style:x,weight:"medium",text:(""+y.error).trim()}),(0,r(d[3]).jsx)(r(d[4]).Text,{selectable:!0,style:p,text:(""+(null!=(b=null==(f=y.errorInfo)?void 0:f.componentStack)?b:"")).trim()})]}),(0,r(d[3]).jsx)(r(d[4]).Button,{preset:"secondary",style:u,onPress:y.onReset,text:"Reset"})]})};r(d[0])(r(d[1]));var o=r(d[2]);var t={alignItems:"center",paddingHorizontal:r(d[5]).spacing.x20,paddingTop:r(d[5]).spacing.x24,flex:1},n={flex:1,alignItems:"center"},s={color:r(d[5]).colors.error,marginBottom:r(d[5]).spacing.x16},l={flex:2,backgroundColor:r(d[5]).colors.background,marginVertical:r(d[5]).spacing.x16,borderRadius:6},c={padding:r(d[5]).spacing.x16},x={color:r(d[5]).colors.error},p={marginTop:r(d[5]).spacing.x16,color:r(d[5]).colors.text},u={backgroundColor:r(d[5]).colors.error,paddingHorizontal:r(d[5]).spacing.x32}}),4972,[20,140,18,180,3617,3166]);
|
|
5283
|
+
__d((function(g,_r,_i,_a,m,_e,_d){var t=(function(e){"use strict";var r=1e7,o=7,n=9007199254740992,i=h(n),u="0123456789abcdefghijklmnopqrstuvwxyz",p="function"==typeof BigInt;function a(t,e,r,o){return void 0===t?a[0]:void 0!==e&&(10!=+e||r)?W(t,e,r,o):nt(t)}function s(t,e){this.value=t,this.sign=e,this.isSmall=!1}function l(t){this.value=t,this.sign=t<0,this.isSmall=!0}function f(t){this.value=t}function v(t){return-9007199254740992<t&&t<n}function h(t){return t<1e7?[t]:t<1e14?[t%1e7,Math.floor(t/1e7)]:[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function y(t){c(t);var e=t.length;if(e<4&&T(t,i)<0)switch(e){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*r;default:return t[0]+(t[1]+t[2]*r)*r}return t}function c(t){for(var e=t.length;0===t[--e];);t.length=e+1}function d(t){for(var e=new Array(t),r=-1;++r<t;)e[r]=0;return e}function w(t){return t>0?Math.floor(t):Math.ceil(t)}function b(t,e){var o,n,i=t.length,u=e.length,p=new Array(i),a=0,s=r;for(n=0;n<u;n++)a=(o=t[n]+e[n]+a)>=s?1:0,p[n]=o-a*s;for(;n<i;)a=(o=t[n]+a)===s?1:0,p[n++]=o-a*s;return a>0&&p.push(a),p}function S(t,e){return t.length>=e.length?b(t,e):b(e,t)}function q(t,e){var o,n,i=t.length,u=new Array(i),p=r;for(n=0;n<i;n++)o=t[n]-p+e,e=Math.floor(o/p),u[n]=o-e*p,e+=1;for(;e>0;)u[n++]=e%p,e=Math.floor(e/p);return u}function M(t,e){var o,n,i=t.length,u=e.length,p=new Array(i),a=0,s=r;for(o=0;o<u;o++)(n=t[o]-a-e[o])<0?(n+=s,a=1):a=0,p[o]=n;for(o=u;o<i;o++){if(!((n=t[o]-a)<0)){p[o++]=n;break}n+=s,p[o]=n}for(;o<i;o++)p[o]=t[o];return c(p),p}function N(t,e,r){var o;return T(t,e)>=0?o=M(t,e):(o=M(e,t),r=!r),"number"==typeof(o=y(o))?(r&&(o=-o),new l(o)):new s(o,r)}function E(t,e,o){var n,i,u=t.length,p=new Array(u),a=-e,f=r;for(n=0;n<u;n++)i=t[n]+a,a=Math.floor(i/f),i%=f,p[n]=i<0?i+f:i;return"number"==typeof(p=y(p))?(o&&(p=-p),new l(p)):new s(p,o)}function I(t,e){var o,n,i,u,p=t.length,a=e.length,s=d(p+a),l=r;for(i=0;i<p;++i){u=t[i];for(var f=0;f<a;++f)o=u*e[f]+s[i+f],n=Math.floor(o/l),s[i+f]=o-n*l,s[i+f+1]+=n}return c(s),s}function O(t,e){var o,n,i=t.length,u=new Array(i),p=r,a=0;for(n=0;n<i;n++)o=t[n]*e+a,a=Math.floor(o/p),u[n]=o-a*p;for(;a>0;)u[n++]=a%p,a=Math.floor(a/p);return u}function B(t,e){for(var r=[];e-- >0;)r.push(0);return r.concat(t)}function A(t,e){var r=Math.max(t.length,e.length);if(r<=30)return I(t,e);r=Math.ceil(r/2);var o=t.slice(r),n=t.slice(0,r),i=e.slice(r),u=e.slice(0,r),p=A(n,u),a=A(o,i),s=A(S(n,o),S(u,i)),l=S(S(p,B(M(M(s,p),a),r)),B(a,2*r));return c(l),l}function P(t,e,o){return new s(t<r?O(e,t):I(e,h(t)),o)}function Z(t){var e,o,n,i,u=t.length,p=d(u+u),a=r;for(n=0;n<u;n++){o=0-(i=t[n])*i;for(var s=n;s<u;s++)e=i*t[s]*2+p[n+s]+o,o=Math.floor(e/a),p[n+s]=e-o*a;p[n+u]=o}return c(p),p}function x(t,e){var o,n,i,u,p,a,s,l=t.length,f=e.length,v=r,h=d(e.length),c=e[f-1],w=Math.ceil(v/(2*c)),b=O(t,w),S=O(e,w);for(b.length<=l&&b.push(0),S.push(0),c=S[f-1],n=l-f;n>=0;n--){for(o=9999999,b[n+f]!==c&&(o=Math.floor((b[n+f]*v+b[n+f-1])/c)),i=0,u=0,a=S.length,p=0;p<a;p++)i+=o*S[p],s=Math.floor(i/v),u+=b[n+p]-(i-s*v),i=s,u<0?(b[n+p]=u+v,u=-1):(b[n+p]=u,u=0);for(;0!==u;){for(o-=1,i=0,p=0;p<a;p++)(i+=b[n+p]-v+S[p])<0?(b[n+p]=i+v,i=0):(b[n+p]=i,i=1);u+=i}h[n]=o}return b=L(b,w)[0],[y(h),y(b)]}function J(t,e){for(var o,n,i,u,p,a=t.length,s=e.length,l=[],f=[],v=r;a;)if(f.unshift(t[--a]),c(f),T(f,e)<0)l.push(0);else{i=f[(n=f.length)-1]*v+f[n-2],u=e[s-1]*v+e[s-2],n>s&&(i=(i+1)*v),o=Math.ceil(i/u);do{if(T(p=O(e,o),f)<=0)break;o--}while(o);l.push(o),f=M(f,p)}return l.reverse(),[y(l),y(f)]}function L(t,e){var o,n,i,u,p=t.length,a=d(p),s=r;for(i=0,o=p-1;o>=0;--o)i=(u=i*s+t[o])-(n=w(u/e))*e,a[o]=0|n;return[a,0|i]}function U(t,e){var o,n=nt(e);if(p)return[new f(t.value/n.value),new f(t.value%n.value)];var i,u=t.value,v=n.value;if(0===v)throw new Error("Cannot divide by zero");if(t.isSmall)return n.isSmall?[new l(w(u/v)),new l(u%v)]:[a[0],t];if(n.isSmall){if(1===v)return[t,a[0]];if(-1==v)return[t.negate(),a[0]];var c=Math.abs(v);if(c<r){i=y((o=L(u,c))[0]);var d=o[1];return t.sign&&(d=-d),"number"==typeof i?(t.sign!==n.sign&&(i=-i),[new l(i),new l(d)]):[new s(i,t.sign!==n.sign),new l(d)]}v=h(c)}var b=T(u,v);if(-1===b)return[a[0],t];if(0===b)return[a[t.sign===n.sign?1:-1],a[0]];i=(o=u.length+v.length<=200?x(u,v):J(u,v))[0];var S=t.sign!==n.sign,q=o[1],M=t.sign;return"number"==typeof i?(S&&(i=-i),i=new l(i)):i=new s(i,S),"number"==typeof q?(M&&(q=-q),q=new l(q)):q=new s(q,M),[i,q]}function T(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}function j(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(49)||void 0))}function C(e,r){for(var o,n,i,u=e.prev(),p=u,a=0;p.isEven();)p=p.divide(2),a++;t:for(n=0;n<r.length;n++)if(!e.lesser(r[n])&&!(i=t(r[n]).modPow(p,e)).isUnit()&&!i.equals(u)){for(o=a-1;0!=o;o--){if((i=i.square().mod(e)).isUnit())return!1;if(i.equals(u))continue t}return!1}return!0}s.prototype=Object.create(a.prototype),l.prototype=Object.create(a.prototype),f.prototype=Object.create(a.prototype),s.prototype.add=function(t){var e=nt(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,o=e.value;return e.isSmall?new s(q(r,Math.abs(o)),this.sign):new s(S(r,o),this.sign)},s.prototype.plus=s.prototype.add,l.prototype.add=function(t){var e=nt(t),r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var o=e.value;if(e.isSmall){if(v(r+o))return new l(r+o);o=h(Math.abs(o))}return new s(q(o,Math.abs(r)),r<0)},l.prototype.plus=l.prototype.add,f.prototype.add=function(t){return new f(this.value+nt(t).value)},f.prototype.plus=f.prototype.add,s.prototype.subtract=function(t){var e=nt(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,o=e.value;return e.isSmall?E(r,Math.abs(o),this.sign):N(r,o,this.sign)},s.prototype.minus=s.prototype.subtract,l.prototype.subtract=function(t){var e=nt(t),r=this.value;if(r<0!==e.sign)return this.add(e.negate());var o=e.value;return e.isSmall?new l(r-o):E(o,Math.abs(r),r>=0)},l.prototype.minus=l.prototype.subtract,f.prototype.subtract=function(t){return new f(this.value-nt(t).value)},f.prototype.minus=f.prototype.subtract,s.prototype.negate=function(){return new s(this.value,!this.sign)},l.prototype.negate=function(){var t=this.sign,e=new l(-this.value);return e.sign=!t,e},f.prototype.negate=function(){return new f(-this.value)},s.prototype.abs=function(){return new s(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},f.prototype.abs=function(){return new f(this.value>=0?this.value:-this.value)},s.prototype.multiply=function(t){var e,o,n,i=nt(t),u=this.value,p=i.value,l=this.sign!==i.sign;if(i.isSmall){if(0===p)return a[0];if(1===p)return this;if(-1===p)return this.negate();if((e=Math.abs(p))<r)return new s(O(u,e),l);p=h(e)}return o=u.length,n=p.length,new s(-.012*o-.012*n+15e-6*o*n>0?A(u,p):I(u,p),l)},s.prototype.times=s.prototype.multiply,l.prototype._multiplyBySmall=function(t){return v(t.value*this.value)?new l(t.value*this.value):P(Math.abs(t.value),h(Math.abs(this.value)),this.sign!==t.sign)},s.prototype._multiplyBySmall=function(t){return 0===t.value?a[0]:1===t.value?this:-1===t.value?this.negate():P(Math.abs(t.value),this.value,this.sign!==t.sign)},l.prototype.multiply=function(t){return nt(t)._multiplyBySmall(this)},l.prototype.times=l.prototype.multiply,f.prototype.multiply=function(t){return new f(this.value*nt(t).value)},f.prototype.times=f.prototype.multiply,s.prototype.square=function(){return new s(Z(this.value),!1)},l.prototype.square=function(){var t=this.value*this.value;return v(t)?new l(t):new s(Z(h(Math.abs(this.value))),!1)},f.prototype.square=function(t){return new f(this.value*this.value)},s.prototype.divmod=function(t){var e=U(this,t);return{quotient:e[0],remainder:e[1]}},f.prototype.divmod=l.prototype.divmod=s.prototype.divmod,s.prototype.divide=function(t){return U(this,t)[0]},f.prototype.over=f.prototype.divide=function(t){return new f(this.value/nt(t).value)},l.prototype.over=l.prototype.divide=s.prototype.over=s.prototype.divide,s.prototype.mod=function(t){return U(this,t)[1]},f.prototype.mod=f.prototype.remainder=function(t){return new f(this.value%nt(t).value)},l.prototype.remainder=l.prototype.mod=s.prototype.remainder=s.prototype.mod,s.prototype.pow=function(t){var e,r,o,n=nt(t),i=this.value,u=n.value;if(0===u)return a[1];if(0===i)return a[0];if(1===i)return a[1];if(-1===i)return n.isEven()?a[1]:a[-1];if(n.sign)return a[0];if(!n.isSmall)throw new Error("The exponent "+n.toString()+" is too large.");if(this.isSmall&&v(e=Math.pow(i,u)))return new l(w(e));for(r=this,o=a[1];!0&u&&(o=o.times(r),--u),0!==u;)u/=2,r=r.square();return o},l.prototype.pow=s.prototype.pow,f.prototype.pow=function(t){var e=nt(t),r=this.value,o=e.value,n=BigInt(0),i=BigInt(1),u=BigInt(2);if(o===n)return a[1];if(r===n)return a[0];if(r===i)return a[1];if(r===BigInt(-1))return e.isEven()?a[1]:a[-1];if(e.isNegative())return new f(n);for(var p=this,s=a[1];(o&i)===i&&(s=s.times(p),--o),o!==n;)o/=u,p=p.square();return s},s.prototype.modPow=function(t,e){if(t=nt(t),(e=nt(e)).isZero())throw new Error("Cannot take modPow with modulus 0");var r=a[1],o=this.mod(e);for(t.isNegative()&&(t=t.multiply(a[-1]),o=o.modInv(e));t.isPositive();){if(o.isZero())return a[0];t.isOdd()&&(r=r.multiply(o).mod(e)),t=t.divide(2),o=o.square().mod(e)}return r},f.prototype.modPow=l.prototype.modPow=s.prototype.modPow,s.prototype.compareAbs=function(t){var e=nt(t),r=this.value,o=e.value;return e.isSmall?1:T(r,o)},l.prototype.compareAbs=function(t){var e=nt(t),r=Math.abs(this.value),o=e.value;return e.isSmall?r===(o=Math.abs(o))?0:r>o?1:-1:-1},f.prototype.compareAbs=function(t){var e=this.value,r=nt(t).value;return(e=e>=0?e:-e)===(r=r>=0?r:-r)?0:e>r?1:-1},s.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=nt(t),r=this.value,o=e.value;return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:T(r,o)*(this.sign?-1:1)},s.prototype.compareTo=s.prototype.compare,l.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=nt(t),r=this.value,o=e.value;return e.isSmall?r==o?0:r>o?1:-1:r<0!==e.sign?r<0?-1:1:r<0?1:-1},l.prototype.compareTo=l.prototype.compare,f.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=this.value,r=nt(t).value;return e===r?0:e>r?1:-1},f.prototype.compareTo=f.prototype.compare,s.prototype.equals=function(t){return 0===this.compare(t)},f.prototype.eq=f.prototype.equals=l.prototype.eq=l.prototype.equals=s.prototype.eq=s.prototype.equals,s.prototype.notEquals=function(t){return 0!==this.compare(t)},f.prototype.neq=f.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=s.prototype.neq=s.prototype.notEquals,s.prototype.greater=function(t){return this.compare(t)>0},f.prototype.gt=f.prototype.greater=l.prototype.gt=l.prototype.greater=s.prototype.gt=s.prototype.greater,s.prototype.lesser=function(t){return this.compare(t)<0},f.prototype.lt=f.prototype.lesser=l.prototype.lt=l.prototype.lesser=s.prototype.lt=s.prototype.lesser,s.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},f.prototype.geq=f.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals,s.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},f.prototype.leq=f.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals,s.prototype.isEven=function(){return!(1&this.value[0])},l.prototype.isEven=function(){return!(1&this.value)},f.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},s.prototype.isOdd=function(){return!(1&~this.value[0])},l.prototype.isOdd=function(){return!(1&~this.value)},f.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},s.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},f.prototype.isPositive=l.prototype.isPositive,s.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},f.prototype.isNegative=l.prototype.isNegative,s.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return 1===Math.abs(this.value)},f.prototype.isUnit=function(){return this.abs().value===BigInt(1)},s.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return 0===this.value},f.prototype.isZero=function(){return this.value===BigInt(0)},s.prototype.isDivisibleBy=function(t){var e=nt(t);return!e.isZero()&&(!!e.isUnit()||(0===e.compareAbs(2)?this.isEven():this.mod(e).isZero()))},f.prototype.isDivisibleBy=l.prototype.isDivisibleBy=s.prototype.isDivisibleBy,s.prototype.isPrime=function(r){var o=j(this);if(o!==e)return o;var n=this.abs(),i=n.bitLength();if(i<=64)return C(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var u=Math.log(2)*i.toJSNumber(),p=Math.ceil(!0===r?2*Math.pow(u,2):u),a=[],s=0;s<p;s++)a.push(t(s+2));return C(n,a)},f.prototype.isPrime=l.prototype.isPrime=s.prototype.isPrime,s.prototype.isProbablePrime=function(r,o){var n=j(this);if(n!==e)return n;for(var i=this.abs(),u=r===e?5:r,p=[],a=0;a<u;a++)p.push(t.randBetween(2,i.minus(2),o));return C(i,p)},f.prototype.isProbablePrime=l.prototype.isProbablePrime=s.prototype.isProbablePrime,s.prototype.modInv=function(e){for(var r,o,n,i=t.zero,u=t.one,p=nt(e),a=this.abs();!a.isZero();)r=p.divide(a),o=i,n=p,i=u,p=a,u=o.subtract(r.multiply(u)),a=n.subtract(r.multiply(a));if(!p.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===i.compare(0)&&(i=i.add(e)),this.isNegative()?i.negate():i},f.prototype.modInv=l.prototype.modInv=s.prototype.modInv,s.prototype.next=function(){var t=this.value;return this.sign?E(t,1,this.sign):new s(q(t,1),this.sign)},l.prototype.next=function(){var t=this.value;return t+1<n?new l(t+1):new s(i,!1)},f.prototype.next=function(){return new f(this.value+BigInt(1))},s.prototype.prev=function(){var t=this.value;return this.sign?new s(q(t,1),!0):E(t,1,this.sign)},l.prototype.prev=function(){var t=this.value;return t-1>-9007199254740992?new l(t-1):new s(i,!0)},f.prototype.prev=function(){return new f(this.value-BigInt(1))};for(var D=[1];2*D[D.length-1]<=r;)D.push(2*D[D.length-1]);var z=D.length,R=D[z-1];function _(t){return Math.abs(t)<=r}function k(e,r,o){r=nt(r);for(var n=e.isNegative(),i=r.isNegative(),u=n?e.not():e,p=i?r.not():r,a=0,s=0,l=null,f=null,v=[];!u.isZero()||!p.isZero();)a=(l=U(u,R))[1].toJSNumber(),n&&(a=R-1-a),s=(f=U(p,R))[1].toJSNumber(),i&&(s=R-1-s),u=l[0],p=f[0],v.push(o(a,s));for(var h=0!==o(n?1:0,i?1:0)?t(-1):t(0),y=v.length-1;y>=0;y-=1)h=h.multiply(R).add(t(v[y]));return h}s.prototype.shiftLeft=function(t){var e=nt(t).toJSNumber();if(!_(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;for(;e>=z;)r=r.multiply(R),e-=z-1;return r.multiply(D[e])},f.prototype.shiftLeft=l.prototype.shiftLeft=s.prototype.shiftLeft,s.prototype.shiftRight=function(t){var e,r=nt(t).toJSNumber();if(!_(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var o=this;r>=z;){if(o.isZero()||o.isNegative()&&o.isUnit())return o;o=(e=U(o,R))[1].isNegative()?e[0].prev():e[0],r-=z-1}return(e=U(o,D[r]))[1].isNegative()?e[0].prev():e[0]},f.prototype.shiftRight=l.prototype.shiftRight=s.prototype.shiftRight,s.prototype.not=function(){return this.negate().prev()},f.prototype.not=l.prototype.not=s.prototype.not,s.prototype.and=function(t){return k(this,t,(function(t,e){return t&e}))},f.prototype.and=l.prototype.and=s.prototype.and,s.prototype.or=function(t){return k(this,t,(function(t,e){return t|e}))},f.prototype.or=l.prototype.or=s.prototype.or,s.prototype.xor=function(t){return k(this,t,(function(t,e){return t^e}))},f.prototype.xor=l.prototype.xor=s.prototype.xor;var $=1073741824,F=1073758208;function G(t){var e=t.value,o="number"==typeof e?e|$:"bigint"==typeof e?e|BigInt($):e[0]+e[1]*r|F;return o&-o}function H(e,r){if(r.compareTo(e)<=0){var o=H(e,r.square(r)),n=o.p,i=o.e,u=n.multiply(r);return u.compareTo(e)<=0?{p:u,e:2*i+1}:{p:n,e:2*i}}return{p:t(1),e:0}}function K(t,e){return t=nt(t),e=nt(e),t.greater(e)?t:e}function Q(t,e){return t=nt(t),e=nt(e),t.lesser(e)?t:e}function V(t,e){if(t=nt(t).abs(),e=nt(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var r,o,n=a[1];t.isEven()&&e.isEven();)r=Q(G(t),G(e)),t=t.divide(r),e=e.divide(r),n=n.multiply(r);for(;t.isEven();)t=t.divide(G(t));do{for(;e.isEven();)e=e.divide(G(e));t.greater(e)&&(o=e,e=t,t=o),e=e.subtract(t)}while(!e.isZero());return n.isUnit()?t:t.multiply(n)}s.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),0===e.compareTo(t(0))?t(0):t(H(e,t(2)).e).add(t(1))},f.prototype.bitLength=l.prototype.bitLength=s.prototype.bitLength;var W=function(t,e,r,o){r=r||u,t=String(t),o||(t=t.toLowerCase(),r=r.toLowerCase());var n,i=t.length,p=Math.abs(e),a={};for(n=0;n<r.length;n++)a[r[n]]=n;for(n=0;n<i;n++){if("-"!==(f=t[n])&&(f in a&&a[f]>=p)){if("1"===f&&1===p)continue;throw new Error(f+" is not a valid digit in base "+e+".")}}e=nt(e);var s=[],l="-"===t[0];for(n=l?1:0;n<t.length;n++){var f;if((f=t[n])in a)s.push(nt(a[f]));else{if("<"!==f)throw new Error(f+" is not a valid character");var v=n;do{n++}while(">"!==t[n]&&n<t.length);s.push(nt(t.slice(v+1,n)))}}return X(s,e,l)};function X(t,e,r){var o,n=a[0],i=a[1];for(o=t.length-1;o>=0;o--)n=n.add(t[o].times(i)),i=i.times(e);return r?n.negate():n}function Y(t,e){return t<(e=e||u).length?e[t]:"<"+t+">"}function tt(e,r){if((r=t(r)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(r.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var o=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return o.unshift([1]),{value:[].concat.apply([],o),isNegative:!1}}var n=!1;if(e.isNegative()&&r.isPositive()&&(n=!0,e=e.abs()),r.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var i,u=[],p=e;p.isNegative()||p.compareAbs(r)>=0;){i=p.divmod(r),p=i.quotient;var a=i.remainder;a.isNegative()&&(a=r.minus(a).abs(),p=p.next()),u.push(a.toJSNumber())}return u.push(p.toJSNumber()),{value:u.reverse(),isNegative:n}}function et(t,e,r){var o=tt(t,e);return(o.isNegative?"-":"")+o.value.map((function(t){return Y(t,r)})).join('')}function rt(t){if(v(+t)){var e=+t;if(e===w(e))return p?new f(BigInt(e)):new l(e);throw new Error("Invalid integer: "+t)}var r="-"===t[0];r&&(t=t.slice(1));var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var i=n[1];if("+"===i[0]&&(i=i.slice(1)),(i=+i)!==w(i)||!v(i))throw new Error("Invalid integer: "+i+" is not a valid exponent.");var u=n[0],a=u.indexOf(".");if(a>=0&&(i-=u.length-a-1,u=u.slice(0,a)+u.slice(a+1)),i<0)throw new Error("Cannot include negative exponent part for integers");t=u+=new Array(i+1).join("0")}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);if(p)return new f(BigInt(r?"-"+t:t));for(var h=[],y=t.length,d=o,b=y-d;y>0;)h.push(+t.slice(b,y)),(b-=d)<0&&(b=0),y-=d;return c(h),new s(h,r)}function ot(t){if(p)return new f(BigInt(t));if(v(t)){if(t!==w(t))throw new Error(t+" is not an integer.");return new l(t)}return rt(t.toString())}function nt(t){return"number"==typeof t?ot(t):"string"==typeof t?rt(t):"bigint"==typeof t?new f(t):t}s.prototype.toArray=function(t){return tt(this,t)},l.prototype.toArray=function(t){return tt(this,t)},f.prototype.toArray=function(t){return tt(this,t)},s.prototype.toString=function(t,r){if(t===e&&(t=10),10!==t||r)return et(this,t,r);for(var o,n=this.value,i=n.length,u=String(n[--i]);--i>=0;)o=String(n[i]),u+="0000000".slice(o.length)+o;return(this.sign?"-":"")+u},l.prototype.toString=function(t,r){return t===e&&(t=10),10!=t||r?et(this,t,r):String(this.value)},f.prototype.toString=l.prototype.toString,f.prototype.toJSON=s.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},s.prototype.valueOf=function(){return parseInt(this.toString(),10)},s.prototype.toJSNumber=s.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,f.prototype.valueOf=f.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var it=0;it<1e3;it++)a[it]=nt(it),it>0&&(a[-it]=nt(-it));return a.one=a[1],a.zero=a[0],a.minusOne=a[-1],a.max=K,a.min=Q,a.gcd=V,a.lcm=function(t,e){return t=nt(t).abs(),e=nt(e).abs(),t.divide(V(t,e)).multiply(e)},a.isInstance=function(t){return t instanceof s||t instanceof l||t instanceof f},a.randBetween=function(t,e,o){t=nt(t),e=nt(e);var n=o||Math.random,i=Q(t,e),u=K(t,e).subtract(i).add(1);if(u.isSmall)return i.add(Math.floor(n()*u));for(var p=tt(u,r).value,s=[],l=!0,f=0;f<p.length;f++){var v=l?p[f]+(f+1<p.length?p[f+1]/r:0):r,h=w(n()*v);s.push(h),h<p[f]&&(l=!1)}return i.add(a.fromArray(s,r,!1))},a.fromArray=function(t,e,r){return X(t.map(nt),nt(e||10),r)},a})();void 0!==m&&m.hasOwnProperty("exports")&&(m.exports=t),"function"==typeof define&&define.amd&&define((function(){return t}))}),4973,[]);
|
|
5284
|
+
__d((function(a,e,l,d,t,n,y){t.exports={name:"ReadyWallet",displayName:"ReadyWallet"}}),4974,[]);
|
|
5284
5285
|
__r(58);
|
|
5285
5286
|
__r(0);
|
|
5286
5287
|
//# sourceMappingURL=ReadyWallet.bundle.packager.map
|