edge-currency-accountbased 2.16.0 → 2.17.0
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.
- package/CHANGELOG.md +9 -0
- package/android/src/main/assets/edge-currency-accountbased/4431.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/4843.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/5336.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/7131.chunk.js +6 -6
- package/android/src/main/assets/edge-currency-accountbased/7428.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/8193.chunk.js +109 -0
- package/android/src/main/assets/edge-currency-accountbased/9612.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/coreum.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/filecoin.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/hedera.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +3 -3
- package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +1 -1
- package/lib/common/CurrencyEngine.js +63 -0
- package/lib/common/types.js +6 -0
- package/lib/cosmos/CosmosEngine.js +124 -70
- package/lib/cosmos/CosmosTools.js +12 -1
- package/lib/cosmos/cosmosTypes.js +12 -28
- package/lib/cosmos/cosmosUtils.js +98 -3
- package/lib/cosmos/info/osmosisInfo.js +14 -1
- package/lib/cosmos/info/thorchainruneInfo.js +1 -1
- package/lib/solana/SolanaEngine.js +393 -113
- package/lib/solana/SolanaTools.js +16 -10
- package/lib/solana/solanaInfo.js +65 -5
- package/lib/solana/solanaTypes.js +101 -25
- package/package.json +2 -1
- package/android/src/main/assets/edge-currency-accountbased/9645.chunk.js +0 -136
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 2.17.0 (2023-12-04)
|
|
6
|
+
|
|
7
|
+
- added: (Solana) Add SPL token support
|
|
8
|
+
- added: (Osmosis) Add ION token
|
|
9
|
+
- added: (Cosmos-based) Add token spending
|
|
10
|
+
- added: Missing RUNE symbol
|
|
11
|
+
- added: Cosmos getMaxTx method
|
|
12
|
+
|
|
5
13
|
## 2.16.0 (2023-12-01)
|
|
6
14
|
|
|
7
15
|
- added: Coreum (COREUM)
|
|
@@ -11,6 +19,7 @@
|
|
|
11
19
|
- changed: Upgrade edge-core-js to 1.12.0
|
|
12
20
|
- changed: (Cosmos-based) Use gas limit estimation for fees
|
|
13
21
|
- changed: (Cosmos-based) Use both archive and validator nodes to optimize requests
|
|
22
|
+
- changed: (Cosmos-based) Replace `transfer` with `coin_received` and `coin_spent` events for transaction processing
|
|
14
23
|
|
|
15
24
|
## 2.15.0 (2023-11-30)
|
|
16
25
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[4431],{44431:function(we,Ee,Ae){var fe;(function(_e){"use strict";var b,me=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,le=Math.ceil,H=Math.floor,L="[BigNumber Error] ",Ne=L+"Number primitive has more than 15 significant digits: ",$=1e14,E=14,se=9007199254740991,oe=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Y=1e7,T=1e9;function Oe(O){var N,v,R,g=h.prototype={constructor:h,toString:null,valueOf:null},D=new h(1),_=20,S=4,k=-7,U=21,K=-1e7,z=1e7,Q=!1,ee=1,J=0,ue={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},Z="0123456789abcdefghijklmnopqrstuvwxyz",ce=!0;function h(e,r){var i,o,t,l,c,n,f,u,s=this;if(!(s instanceof h))return new h(e,r);if(r==null){if(e&&e._isBigNumber===!0){s.s=e.s,!e.c||e.e>z?s.c=s.e=null:e.e<K?s.c=[s.e=0]:(s.e=e.e,s.c=e.c.slice());return}if((n=typeof e=="number")&&e*0==0){if(s.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,c=e;c>=10;c/=10,l++);l>z?s.c=s.e=null:(s.e=l,s.c=[e]);return}u=String(e)}else{if(!me.test(u=String(e)))return R(s,u,n);s.s=u.charCodeAt(0)==45?(u=u.slice(1),-1):1}(l=u.indexOf("."))>-1&&(u=u.replace(".","")),(c=u.search(/e/i))>0?(l<0&&(l=c),l+=+u.slice(c+1),u=u.substring(0,c)):l<0&&(l=u.length)}else{if(x(r,2,Z.length,"Base"),r==10&&ce)return s=new h(e),q(s,_+s.e+1,S);if(u=String(e),n=typeof e=="number"){if(e*0!=0)return R(s,u,n,r);if(s.s=1/e<0?(u=u.slice(1),-1):1,h.DEBUG&&u.replace(/^0\.0*|\./,"").length>15)throw Error(Ne+e)}else s.s=u.charCodeAt(0)===45?(u=u.slice(1),-1):1;for(i=Z.slice(0,r),l=c=0,f=u.length;c<f;c++)if(i.indexOf(o=u.charAt(c))<0){if(o=="."){if(c>l){l=f;continue}}else if(!t&&(u==u.toUpperCase()&&(u=u.toLowerCase())||u==u.toLowerCase()&&(u=u.toUpperCase()))){t=!0,c=-1,l=0;continue}return R(s,String(e),n,r)}n=!1,u=v(u,r,10,s.s),(l=u.indexOf("."))>-1?u=u.replace(".",""):l=u.length}for(c=0;u.charCodeAt(c)===48;c++);for(f=u.length;u.charCodeAt(--f)===48;);if(u=u.slice(c,++f)){if(f-=c,n&&h.DEBUG&&f>15&&(e>se||e!==H(e)))throw Error(Ne+s.s*e);if((l=l-c-1)>z)s.c=s.e=null;else if(l<K)s.c=[s.e=0];else{if(s.e=l,s.c=[],c=(l+1)%E,l<0&&(c+=E),c<f){for(c&&s.c.push(+u.slice(0,c)),f-=E;c<f;)s.c.push(+u.slice(c,c+=E));c=E-(u=u.slice(c)).length}else c-=f;for(;c--;u+="0");s.c.push(+u)}}else s.c=[s.e=0]}h.clone=Oe,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,i;if(e!=null)if(typeof e=="object"){if(e.hasOwnProperty(r="DECIMAL_PLACES")&&(i=e[r],x(i,0,T,r),_=i),e.hasOwnProperty(r="ROUNDING_MODE")&&(i=e[r],x(i,0,8,r),S=i),e.hasOwnProperty(r="EXPONENTIAL_AT")&&(i=e[r],i&&i.pop?(x(i[0],-T,0,r),x(i[1],0,T,r),k=i[0],U=i[1]):(x(i,-T,T,r),k=-(U=i<0?-i:i))),e.hasOwnProperty(r="RANGE"))if(i=e[r],i&&i.pop)x(i[0],-T,-1,r),x(i[1],1,T,r),K=i[0],z=i[1];else if(x(i,-T,T,r),i)K=-(z=i<0?-i:i);else throw Error(L+r+" cannot be zero: "+i);if(e.hasOwnProperty(r="CRYPTO"))if(i=e[r],i===!!i)if(i)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))Q=i;else throw Q=!i,Error(L+"crypto unavailable");else Q=i;else throw Error(L+r+" not true or false: "+i);if(e.hasOwnProperty(r="MODULO_MODE")&&(i=e[r],x(i,0,9,r),ee=i),e.hasOwnProperty(r="POW_PRECISION")&&(i=e[r],x(i,0,T,r),J=i),e.hasOwnProperty(r="FORMAT"))if(i=e[r],typeof i=="object")ue=i;else throw Error(L+r+" not an object: "+i);if(e.hasOwnProperty(r="ALPHABET"))if(i=e[r],typeof i=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(i))ce=i.slice(0,10)=="0123456789",Z=i;else throw Error(L+r+" invalid: "+i)}else throw Error(L+"Object expected: "+e);return{DECIMAL_PLACES:_,ROUNDING_MODE:S,EXPONENTIAL_AT:[k,U],RANGE:[K,z],CRYPTO:Q,MODULO_MODE:ee,POW_PRECISION:J,FORMAT:ue,ALPHABET:Z}},h.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!h.DEBUG)return!0;var r,i,o=e.c,t=e.e,l=e.s;e:if({}.toString.call(o)=="[object Array]"){if((l===1||l===-1)&&t>=-T&&t<=T&&t===H(t)){if(o[0]===0){if(t===0&&o.length===1)return!0;break e}if(r=(t+1)%E,r<1&&(r+=E),String(o[0]).length==r){for(r=0;r<o.length;r++)if(i=o[r],i<0||i>=$||i!==H(i))break e;if(i!==0)return!0}}}else if(o===null&&t===null&&(l===null||l===1||l===-1))return!0;throw Error(L+"Invalid BigNumber: "+e)},h.maximum=h.max=function(){return de(arguments,g.lt)},h.minimum=h.min=function(){return de(arguments,g.gt)},h.random=function(){var e=9007199254740992,r=Math.random()*e&2097151?function(){return H(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(i){var o,t,l,c,n,f=0,u=[],s=new h(D);if(i==null?i=_:x(i,0,T),c=le(i/E),Q)if(crypto.getRandomValues){for(o=crypto.getRandomValues(new Uint32Array(c*=2));f<c;)n=o[f]*131072+(o[f+1]>>>11),n>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),o[f]=t[0],o[f+1]=t[1]):(u.push(n%1e14),f+=2);f=c/2}else if(crypto.randomBytes){for(o=crypto.randomBytes(c*=7);f<c;)n=(o[f]&31)*281474976710656+o[f+1]*1099511627776+o[f+2]*4294967296+o[f+3]*16777216+(o[f+4]<<16)+(o[f+5]<<8)+o[f+6],n>=9e15?crypto.randomBytes(7).copy(o,f):(u.push(n%1e14),f+=7);f=c/7}else throw Q=!1,Error(L+"crypto unavailable");if(!Q)for(;f<c;)n=r(),n<9e15&&(u[f++]=n%1e14);for(c=u[--f],i%=E,c&&i&&(n=oe[E-i],u[f]=H(c/n)*n);u[f]===0;u.pop(),f--);if(f<0)u=[l=0];else{for(l=-1;u[0]===0;u.splice(0,1),l-=E);for(f=1,n=u[0];n>=10;n/=10,f++);f<E&&(l-=E-f)}return s.e=l,s.c=u,s}}(),h.sum=function(){for(var e=1,r=arguments,i=new h(r[0]);e<r.length;)i=i.plus(r[e++]);return i},v=function(){var e="0123456789";function r(i,o,t,l){for(var c,n=[0],f,u=0,s=i.length;u<s;){for(f=n.length;f--;n[f]*=o);for(n[0]+=l.indexOf(i.charAt(u++)),c=0;c<n.length;c++)n[c]>t-1&&(n[c+1]==null&&(n[c+1]=0),n[c+1]+=n[c]/t|0,n[c]%=t)}return n.reverse()}return function(i,o,t,l,c){var n,f,u,s,a,p,w,A,B=i.indexOf("."),M=_,d=S;for(B>=0&&(s=J,J=0,i=i.replace(".",""),A=new h(o),p=A.pow(i.length-B),J=s,A.c=r(V(F(p.c),p.e,"0"),10,t,e),A.e=A.c.length),w=r(i,o,t,c?(n=Z,e):(n=e,Z)),u=s=w.length;w[--s]==0;w.pop());if(!w[0])return n.charAt(0);if(B<0?--u:(p.c=w,p.e=u,p.s=l,p=N(p,A,M,d,t),w=p.c,a=p.r,u=p.e),f=u+M+1,B=w[f],s=t/2,a=a||f<0||w[f+1]!=null,a=d<4?(B!=null||a)&&(d==0||d==(p.s<0?3:2)):B>s||B==s&&(d==4||a||d==6&&w[f-1]&1||d==(p.s<0?8:7)),f<1||!w[0])i=a?V(n.charAt(1),-M,n.charAt(0)):n.charAt(0);else{if(w.length=f,a)for(--t;++w[--f]>t;)w[f]=0,f||(++u,w=[1].concat(w));for(s=w.length;!w[--s];);for(B=0,i="";B<=s;i+=n.charAt(w[B++]));i=V(i,u,n.charAt(0))}return i}}(),N=function(){function e(o,t,l){var c,n,f,u,s=0,a=o.length,p=t%Y,w=t/Y|0;for(o=o.slice();a--;)f=o[a]%Y,u=o[a]/Y|0,c=w*f+u*p,n=p*f+c%Y*Y+s,s=(n/l|0)+(c/Y|0)+w*u,o[a]=n%l;return s&&(o=[s].concat(o)),o}function r(o,t,l,c){var n,f;if(l!=c)f=l>c?1:-1;else for(n=f=0;n<l;n++)if(o[n]!=t[n]){f=o[n]>t[n]?1:-1;break}return f}function i(o,t,l,c){for(var n=0;l--;)o[l]-=n,n=o[l]<t[l]?1:0,o[l]=n*c+o[l]-t[l];for(;!o[0]&&o.length>1;o.splice(0,1));}return function(o,t,l,c,n){var f,u,s,a,p,w,A,B,M,d,m,P,te,ge,pe,X,re,y=o.s==t.s?1:-1,C=o.c,I=t.c;if(!C||!C[0]||!I||!I[0])return new h(!o.s||!t.s||(C?I&&C[0]==I[0]:!I)?NaN:C&&C[0]==0||!I?y*0:y/0);for(B=new h(y),M=B.c=[],u=o.e-t.e,y=l+u+1,n||(n=$,u=G(o.e/E)-G(t.e/E),y=y/E|0),s=0;I[s]==(C[s]||0);s++);if(I[s]>(C[s]||0)&&u--,y<0)M.push(1),a=!0;else{for(ge=C.length,X=I.length,s=0,y+=2,p=H(n/(I[0]+1)),p>1&&(I=e(I,p,n),C=e(C,p,n),X=I.length,ge=C.length),te=X,d=C.slice(0,X),m=d.length;m<X;d[m++]=0);re=I.slice(),re=[0].concat(re),pe=I[0],I[1]>=n/2&&pe++;do{if(p=0,f=r(I,d,X,m),f<0){if(P=d[0],X!=m&&(P=P*n+(d[1]||0)),p=H(P/pe),p>1)for(p>=n&&(p=n-1),w=e(I,p,n),A=w.length,m=d.length;r(w,d,A,m)==1;)p--,i(w,X<A?re:I,A,n),A=w.length,f=1;else p==0&&(f=p=1),w=I.slice(),A=w.length;if(A<m&&(w=[0].concat(w)),i(d,w,m,n),m=d.length,f==-1)for(;r(I,d,X,m)<1;)p++,i(d,X<m?re:I,m,n),m=d.length}else f===0&&(p++,d=[0]);M[s++]=p,d[0]?d[m++]=C[te]||0:(d=[C[te]],m=1)}while((te++<ge||d[0]!=null)&&y--);a=d[0]!=null,M[0]||M.splice(0,1)}if(n==$){for(s=1,y=M[0];y>=10;y/=10,s++);q(B,l+(B.e=s+u*E-1)+1,c,a)}else B.e=u,B.r=+a;return B}}();function ae(e,r,i,o){var t,l,c,n,f;if(i==null?i=S:x(i,0,8),!e.c)return e.toString();if(t=e.c[0],c=e.e,r==null)f=F(e.c),f=o==1||o==2&&(c<=k||c>=U)?ne(f,c):V(f,c,"0");else if(e=q(new h(e),r,i),l=e.e,f=F(e.c),n=f.length,o==1||o==2&&(r<=l||l<=k)){for(;n<r;f+="0",n++);f=ne(f,l)}else if(r-=c,f=V(f,l,"0"),l+1>n){if(--r>0)for(f+=".";r--;f+="0");}else if(r+=l-n,r>0)for(l+1==n&&(f+=".");r--;f+="0");return e.s<0&&t?"-"+f:f}function de(e,r){for(var i,o=1,t=new h(e[0]);o<e.length;o++)if(i=new h(e[o]),i.s)r.call(t,i)&&(t=i);else{t=i;break}return t}function he(e,r,i){for(var o=1,t=r.length;!r[--t];r.pop());for(t=r[0];t>=10;t/=10,o++);return(i=o+i*E-1)>z?e.c=e.e=null:i<K?e.c=[e.e=0]:(e.e=i,e.c=r),e}R=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,i=/^\.([^.]+)$/,o=/^-?(Infinity|NaN)$/,t=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(l,c,n,f){var u,s=n?c:c.replace(t,"");if(o.test(s))l.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(e,function(a,p,w){return u=(w=w.toLowerCase())=="x"?16:w=="b"?2:8,!f||f==u?p:a}),f&&(u=f,s=s.replace(r,"$1").replace(i,"0.$1")),c!=s))return new h(s,u);if(h.DEBUG)throw Error(L+"Not a"+(f?" base "+f:"")+" number: "+c);l.s=null}l.c=l.e=null}}();function q(e,r,i,o){var t,l,c,n,f,u,s,a=e.c,p=oe;if(a){e:{for(t=1,n=a[0];n>=10;n/=10,t++);if(l=r-t,l<0)l+=E,c=r,f=a[u=0],s=f/p[t-c-1]%10|0;else if(u=le((l+1)/E),u>=a.length)if(o){for(;a.length<=u;a.push(0));f=s=0,t=1,l%=E,c=l-E+1}else break e;else{for(f=n=a[u],t=1;n>=10;n/=10,t++);l%=E,c=l-E+t,s=c<0?0:f/p[t-c-1]%10|0}if(o=o||r<0||a[u+1]!=null||(c<0?f:f%p[t-c-1]),o=i<4?(s||o)&&(i==0||i==(e.s<0?3:2)):s>5||s==5&&(i==4||o||i==6&&(l>0?c>0?f/p[t-c]:0:a[u-1])%10&1||i==(e.s<0?8:7)),r<1||!a[0])return a.length=0,o?(r-=e.e+1,a[0]=p[(E-r%E)%E],e.e=-r||0):a[0]=e.e=0,e;if(l==0?(a.length=u,n=1,u--):(a.length=u+1,n=p[E-l],a[u]=c>0?H(f/p[t-c]%p[c])*n:0),o)for(;;)if(u==0){for(l=1,c=a[0];c>=10;c/=10,l++);for(c=a[0]+=n,n=1;c>=10;c/=10,n++);l!=n&&(e.e++,a[0]==$&&(a[0]=1));break}else{if(a[u]+=n,a[u]!=$)break;a[u--]=0,n=1}for(l=a.length;a[--l]===0;a.pop());}e.e>z?e.c=e.e=null:e.e<K&&(e.c=[e.e=0])}return e}function W(e){var r,i=e.e;return i===null?e.toString():(r=F(e.c),r=i<=k||i>=U?ne(r,i):V(r,i,"0"),e.s<0?"-"+r:r)}return g.absoluteValue=g.abs=function(){var e=new h(this);return e.s<0&&(e.s=1),e},g.comparedTo=function(e,r){return j(this,new h(e,r))},g.decimalPlaces=g.dp=function(e,r){var i,o,t,l=this;if(e!=null)return x(e,0,T),r==null?r=S:x(r,0,8),q(new h(l),e+l.e+1,r);if(!(i=l.c))return null;if(o=((t=i.length-1)-G(this.e/E))*E,t=i[t])for(;t%10==0;t/=10,o--);return o<0&&(o=0),o},g.dividedBy=g.div=function(e,r){return N(this,new h(e,r),_,S)},g.dividedToIntegerBy=g.idiv=function(e,r){return N(this,new h(e,r),0,1)},g.exponentiatedBy=g.pow=function(e,r){var i,o,t,l,c,n,f,u,s,a=this;if(e=new h(e),e.c&&!e.isInteger())throw Error(L+"Exponent not an integer: "+W(e));if(r!=null&&(r=new h(r)),n=e.e>14,!a.c||!a.c[0]||a.c[0]==1&&!a.e&&a.c.length==1||!e.c||!e.c[0])return s=new h(Math.pow(+W(a),n?e.s*(2-ie(e)):+W(e))),r?s.mod(r):s;if(f=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new h(NaN);o=!f&&a.isInteger()&&r.isInteger(),o&&(a=a.mod(r))}else{if(e.e>9&&(a.e>0||a.e<-1||(a.e==0?a.c[0]>1||n&&a.c[1]>=24e7:a.c[0]<8e13||n&&a.c[0]<=9999975e7)))return l=a.s<0&&ie(e)?-0:0,a.e>-1&&(l=1/l),new h(f?1/l:l);J&&(l=le(J/E+2))}for(n?(i=new h(.5),f&&(e.s=1),u=ie(e)):(t=Math.abs(+W(e)),u=t%2),s=new h(D);;){if(u){if(s=s.times(a),!s.c)break;l?s.c.length>l&&(s.c.length=l):o&&(s=s.mod(r))}if(t){if(t=H(t/2),t===0)break;u=t%2}else if(e=e.times(i),q(e,e.e+1,1),e.e>14)u=ie(e);else{if(t=+W(e),t===0)break;u=t%2}a=a.times(a),l?a.c&&a.c.length>l&&(a.c.length=l):o&&(a=a.mod(r))}return o?s:(f&&(s=D.div(s)),r?s.mod(r):l?q(s,J,S,c):s)},g.integerValue=function(e){var r=new h(this);return e==null?e=S:x(e,0,8),q(r,r.e+1,e)},g.isEqualTo=g.eq=function(e,r){return j(this,new h(e,r))===0},g.isFinite=function(){return!!this.c},g.isGreaterThan=g.gt=function(e,r){return j(this,new h(e,r))>0},g.isGreaterThanOrEqualTo=g.gte=function(e,r){return(r=j(this,new h(e,r)))===1||r===0},g.isInteger=function(){return!!this.c&&G(this.e/E)>this.c.length-2},g.isLessThan=g.lt=function(e,r){return j(this,new h(e,r))<0},g.isLessThanOrEqualTo=g.lte=function(e,r){return(r=j(this,new h(e,r)))===-1||r===0},g.isNaN=function(){return!this.s},g.isNegative=function(){return this.s<0},g.isPositive=function(){return this.s>0},g.isZero=function(){return!!this.c&&this.c[0]==0},g.minus=function(e,r){var i,o,t,l,c=this,n=c.s;if(e=new h(e,r),r=e.s,!n||!r)return new h(NaN);if(n!=r)return e.s=-r,c.plus(e);var f=c.e/E,u=e.e/E,s=c.c,a=e.c;if(!f||!u){if(!s||!a)return s?(e.s=-r,e):new h(a?c:NaN);if(!s[0]||!a[0])return a[0]?(e.s=-r,e):new h(s[0]?c:S==3?-0:0)}if(f=G(f),u=G(u),s=s.slice(),n=f-u){for((l=n<0)?(n=-n,t=s):(u=f,t=a),t.reverse(),r=n;r--;t.push(0));t.reverse()}else for(o=(l=(n=s.length)<(r=a.length))?n:r,n=r=0;r<o;r++)if(s[r]!=a[r]){l=s[r]<a[r];break}if(l&&(t=s,s=a,a=t,e.s=-e.s),r=(o=a.length)-(i=s.length),r>0)for(;r--;s[i++]=0);for(r=$-1;o>n;){if(s[--o]<a[o]){for(i=o;i&&!s[--i];s[i]=r);--s[i],s[o]+=$}s[o]-=a[o]}for(;s[0]==0;s.splice(0,1),--u);return s[0]?he(e,s,u):(e.s=S==3?-1:1,e.c=[e.e=0],e)},g.modulo=g.mod=function(e,r){var i,o,t=this;return e=new h(e,r),!t.c||!e.s||e.c&&!e.c[0]?new h(NaN):!e.c||t.c&&!t.c[0]?new h(t):(ee==9?(o=e.s,e.s=1,i=N(t,e,0,3),e.s=o,i.s*=o):i=N(t,e,0,ee),e=t.minus(i.times(e)),!e.c[0]&&ee==1&&(e.s=t.s),e)},g.multipliedBy=g.times=function(e,r){var i,o,t,l,c,n,f,u,s,a,p,w,A,B,M,d=this,m=d.c,P=(e=new h(e,r)).c;if(!m||!P||!m[0]||!P[0])return!d.s||!e.s||m&&!m[0]&&!P||P&&!P[0]&&!m?e.c=e.e=e.s=null:(e.s*=d.s,!m||!P?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(o=G(d.e/E)+G(e.e/E),e.s*=d.s,f=m.length,a=P.length,f<a&&(A=m,m=P,P=A,t=f,f=a,a=t),t=f+a,A=[];t--;A.push(0));for(B=$,M=Y,t=a;--t>=0;){for(i=0,p=P[t]%M,w=P[t]/M|0,c=f,l=t+c;l>t;)u=m[--c]%M,s=m[c]/M|0,n=w*u+s*p,u=p*u+n%M*M+A[l]+i,i=(u/B|0)+(n/M|0)+w*s,A[l--]=u%B;A[l]=i}return i?++o:A.splice(0,1),he(e,A,o)},g.negated=function(){var e=new h(this);return e.s=-e.s||null,e},g.plus=function(e,r){var i,o=this,t=o.s;if(e=new h(e,r),r=e.s,!t||!r)return new h(NaN);if(t!=r)return e.s=-r,o.minus(e);var l=o.e/E,c=e.e/E,n=o.c,f=e.c;if(!l||!c){if(!n||!f)return new h(t/0);if(!n[0]||!f[0])return f[0]?e:new h(n[0]?o:t*0)}if(l=G(l),c=G(c),n=n.slice(),t=l-c){for(t>0?(c=l,i=f):(t=-t,i=n),i.reverse();t--;i.push(0));i.reverse()}for(t=n.length,r=f.length,t-r<0&&(i=f,f=n,n=i,r=t),t=0;r;)t=(n[--r]=n[r]+f[r]+t)/$|0,n[r]=$===n[r]?0:n[r]%$;return t&&(n=[t].concat(n),++c),he(e,n,c)},g.precision=g.sd=function(e,r){var i,o,t,l=this;if(e!=null&&e!==!!e)return x(e,1,T),r==null?r=S:x(r,0,8),q(new h(l),e,r);if(!(i=l.c))return null;if(t=i.length-1,o=t*E+1,t=i[t]){for(;t%10==0;t/=10,o--);for(t=i[0];t>=10;t/=10,o++);}return e&&l.e+1>o&&(o=l.e+1),o},g.shiftedBy=function(e){return x(e,-se,se),this.times("1e"+e)},g.squareRoot=g.sqrt=function(){var e,r,i,o,t,l=this,c=l.c,n=l.s,f=l.e,u=_+4,s=new h("0.5");if(n!==1||!c||!c[0])return new h(!n||n<0&&(!c||c[0])?NaN:c?l:1/0);if(n=Math.sqrt(+W(l)),n==0||n==1/0?(r=F(c),(r.length+f)%2==0&&(r+="0"),n=Math.sqrt(+r),f=G((f+1)/2)-(f<0||f%2),n==1/0?r="5e"+f:(r=n.toExponential(),r=r.slice(0,r.indexOf("e")+1)+f),i=new h(r)):i=new h(n+""),i.c[0]){for(f=i.e,n=f+u,n<3&&(n=0);;)if(t=i,i=s.times(t.plus(N(l,t,u,1))),F(t.c).slice(0,n)===(r=F(i.c)).slice(0,n))if(i.e<f&&--n,r=r.slice(n-3,n+1),r=="9999"||!o&&r=="4999"){if(!o&&(q(t,t.e+_+2,0),t.times(t).eq(l))){i=t;break}u+=4,n+=4,o=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(q(i,i.e+_+2,1),e=!i.times(i).eq(l));break}}return q(i,i.e+_+1,S,e)},g.toExponential=function(e,r){return e!=null&&(x(e,0,T),e++),ae(this,e,r,1)},g.toFixed=function(e,r){return e!=null&&(x(e,0,T),e=e+this.e+1),ae(this,e,r)},g.toFormat=function(e,r,i){var o,t=this;if(i==null)e!=null&&r&&typeof r=="object"?(i=r,r=null):e&&typeof e=="object"?(i=e,e=r=null):i=ue;else if(typeof i!="object")throw Error(L+"Argument not an object: "+i);if(o=t.toFixed(e,r),t.c){var l,c=o.split("."),n=+i.groupSize,f=+i.secondaryGroupSize,u=i.groupSeparator||"",s=c[0],a=c[1],p=t.s<0,w=p?s.slice(1):s,A=w.length;if(f&&(l=n,n=f,f=l,A-=l),n>0&&A>0){for(l=A%n||n,s=w.substr(0,l);l<A;l+=n)s+=u+w.substr(l,n);f>0&&(s+=u+w.slice(l)),p&&(s="-"+s)}o=a?s+(i.decimalSeparator||"")+((f=+i.fractionGroupSize)?a.replace(new RegExp("\\d{"+f+"}\\B","g"),"$&"+(i.fractionGroupSeparator||"")):a):s}return(i.prefix||"")+o+(i.suffix||"")},g.toFraction=function(e){var r,i,o,t,l,c,n,f,u,s,a,p,w=this,A=w.c;if(e!=null&&(n=new h(e),!n.isInteger()&&(n.c||n.s!==1)||n.lt(D)))throw Error(L+"Argument "+(n.isInteger()?"out of range: ":"not an integer: ")+W(n));if(!A)return new h(w);for(r=new h(D),u=i=new h(D),o=f=new h(D),p=F(A),l=r.e=p.length-w.e-1,r.c[0]=oe[(c=l%E)<0?E+c:c],e=!e||n.comparedTo(r)>0?l>0?r:u:n,c=z,z=1/0,n=new h(p),f.c[0]=0;s=N(n,r,0,1),t=i.plus(s.times(o)),t.comparedTo(e)!=1;)i=o,o=t,u=f.plus(s.times(t=u)),f=t,r=n.minus(s.times(t=r)),n=t;return t=N(e.minus(i),o,0,1),f=f.plus(t.times(u)),i=i.plus(t.times(o)),f.s=u.s=w.s,l=l*2,a=N(u,o,l,S).minus(w).abs().comparedTo(N(f,i,l,S).minus(w).abs())<1?[u,o]:[f,i],z=c,a},g.toNumber=function(){return+W(this)},g.toPrecision=function(e,r){return e!=null&&x(e,1,T),ae(this,e,r,2)},g.toString=function(e){var r,i=this,o=i.s,t=i.e;return t===null?o?(r="Infinity",o<0&&(r="-"+r)):r="NaN":(e==null?r=t<=k||t>=U?ne(F(i.c),t):V(F(i.c),t,"0"):e===10&&ce?(i=q(new h(i),_+t+1,S),r=V(F(i.c),i.e,"0")):(x(e,2,Z.length,"Base"),r=v(V(F(i.c),t,"0"),10,e,o,!0)),o<0&&i.c[0]&&(r="-"+r)),r},g.valueOf=g.toJSON=function(){return W(this)},g._isBigNumber=!0,O!=null&&h.set(O),h}function G(O){var N=O|0;return O>0||O===N?N:N-1}function F(O){for(var N,v,R=1,g=O.length,D=O[0]+"";R<g;){for(N=O[R++]+"",v=E-N.length;v--;N="0"+N);D+=N}for(g=D.length;D.charCodeAt(--g)===48;);return D.slice(0,g+1||1)}function j(O,N){var v,R,g=O.c,D=N.c,_=O.s,S=N.s,k=O.e,U=N.e;if(!_||!S)return null;if(v=g&&!g[0],R=D&&!D[0],v||R)return v?R?0:-S:_;if(_!=S)return _;if(v=_<0,R=k==U,!g||!D)return R?0:!g^v?1:-1;if(!R)return k>U^v?1:-1;for(S=(k=g.length)<(U=D.length)?k:U,_=0;_<S;_++)if(g[_]!=D[_])return g[_]>D[_]^v?1:-1;return k==U?0:k>U^v?1:-1}function x(O,N,v,R){if(O<N||O>v||O!==H(O))throw Error(L+(R||"Argument")+(typeof O=="number"?O<N||O>v?" out of range: ":" not an integer: ":" not a primitive number: ")+String(O))}function ie(O){var N=O.c.length-1;return G(O.e/E)==N&&O.c[N]%2!=0}function ne(O,N){return(O.length>1?O.charAt(0)+"."+O.slice(1):O)+(N<0?"e":"e+")+N}function V(O,N,v){var R,g;if(N<0){for(g=v+".";++N;g+=v);O=g+O}else if(R=O.length,++N>R){for(g=v,N-=R;--N;g+=v);O+=g}else N<R&&(O=O.slice(0,N)+"."+O.slice(N));return O}b=Oe(),b.default=b.BigNumber=b,fe=function(){return b}.call(Ee,Ae,Ee,we),fe!==void 0&&(we.exports=fe)})(this)}}]);
|
|
1
|
+
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[4431],{44431:function(we,Ee,Ae){var fe;(function(_e){"use strict";var b,me=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,le=Math.ceil,G=Math.floor,L="[BigNumber Error] ",Ne=L+"Number primitive has more than 15 significant digits: ",z=1e14,E=14,se=9007199254740991,oe=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Y=1e7,T=1e9;function Oe(O){var N,v,R,g=h.prototype={constructor:h,toString:null,valueOf:null},D=new h(1),_=20,S=4,k=-7,U=21,Q=-1e7,H=1e7,Z=!1,ee=1,J=0,ue={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",ce=!0;function h(e,r){var i,o,t,l,c,n,f,u,s=this;if(!(s instanceof h))return new h(e,r);if(r==null){if(e&&e._isBigNumber===!0){s.s=e.s,!e.c||e.e>H?s.c=s.e=null:e.e<Q?s.c=[s.e=0]:(s.e=e.e,s.c=e.c.slice());return}if((n=typeof e=="number")&&e*0==0){if(s.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,c=e;c>=10;c/=10,l++);l>H?s.c=s.e=null:(s.e=l,s.c=[e]);return}u=String(e)}else{if(!me.test(u=String(e)))return R(s,u,n);s.s=u.charCodeAt(0)==45?(u=u.slice(1),-1):1}(l=u.indexOf("."))>-1&&(u=u.replace(".","")),(c=u.search(/e/i))>0?(l<0&&(l=c),l+=+u.slice(c+1),u=u.substring(0,c)):l<0&&(l=u.length)}else{if(x(r,2,j.length,"Base"),r==10&&ce)return s=new h(e),y(s,_+s.e+1,S);if(u=String(e),n=typeof e=="number"){if(e*0!=0)return R(s,u,n,r);if(s.s=1/e<0?(u=u.slice(1),-1):1,h.DEBUG&&u.replace(/^0\.0*|\./,"").length>15)throw Error(Ne+e)}else s.s=u.charCodeAt(0)===45?(u=u.slice(1),-1):1;for(i=j.slice(0,r),l=c=0,f=u.length;c<f;c++)if(i.indexOf(o=u.charAt(c))<0){if(o=="."){if(c>l){l=f;continue}}else if(!t&&(u==u.toUpperCase()&&(u=u.toLowerCase())||u==u.toLowerCase()&&(u=u.toUpperCase()))){t=!0,c=-1,l=0;continue}return R(s,String(e),n,r)}n=!1,u=v(u,r,10,s.s),(l=u.indexOf("."))>-1?u=u.replace(".",""):l=u.length}for(c=0;u.charCodeAt(c)===48;c++);for(f=u.length;u.charCodeAt(--f)===48;);if(u=u.slice(c,++f)){if(f-=c,n&&h.DEBUG&&f>15&&(e>se||e!==G(e)))throw Error(Ne+s.s*e);if((l=l-c-1)>H)s.c=s.e=null;else if(l<Q)s.c=[s.e=0];else{if(s.e=l,s.c=[],c=(l+1)%E,l<0&&(c+=E),c<f){for(c&&s.c.push(+u.slice(0,c)),f-=E;c<f;)s.c.push(+u.slice(c,c+=E));c=E-(u=u.slice(c)).length}else c-=f;for(;c--;u+="0");s.c.push(+u)}}else s.c=[s.e=0]}h.clone=Oe,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,i;if(e!=null)if(typeof e=="object"){if(e.hasOwnProperty(r="DECIMAL_PLACES")&&(i=e[r],x(i,0,T,r),_=i),e.hasOwnProperty(r="ROUNDING_MODE")&&(i=e[r],x(i,0,8,r),S=i),e.hasOwnProperty(r="EXPONENTIAL_AT")&&(i=e[r],i&&i.pop?(x(i[0],-T,0,r),x(i[1],0,T,r),k=i[0],U=i[1]):(x(i,-T,T,r),k=-(U=i<0?-i:i))),e.hasOwnProperty(r="RANGE"))if(i=e[r],i&&i.pop)x(i[0],-T,-1,r),x(i[1],1,T,r),Q=i[0],H=i[1];else if(x(i,-T,T,r),i)Q=-(H=i<0?-i:i);else throw Error(L+r+" cannot be zero: "+i);if(e.hasOwnProperty(r="CRYPTO"))if(i=e[r],i===!!i)if(i)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))Z=i;else throw Z=!i,Error(L+"crypto unavailable");else Z=i;else throw Error(L+r+" not true or false: "+i);if(e.hasOwnProperty(r="MODULO_MODE")&&(i=e[r],x(i,0,9,r),ee=i),e.hasOwnProperty(r="POW_PRECISION")&&(i=e[r],x(i,0,T,r),J=i),e.hasOwnProperty(r="FORMAT"))if(i=e[r],typeof i=="object")ue=i;else throw Error(L+r+" not an object: "+i);if(e.hasOwnProperty(r="ALPHABET"))if(i=e[r],typeof i=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(i))ce=i.slice(0,10)=="0123456789",j=i;else throw Error(L+r+" invalid: "+i)}else throw Error(L+"Object expected: "+e);return{DECIMAL_PLACES:_,ROUNDING_MODE:S,EXPONENTIAL_AT:[k,U],RANGE:[Q,H],CRYPTO:Z,MODULO_MODE:ee,POW_PRECISION:J,FORMAT:ue,ALPHABET:j}},h.isBigNumber=function(e){if(!e||e._isBigNumber!==!0)return!1;if(!h.DEBUG)return!0;var r,i,o=e.c,t=e.e,l=e.s;e:if({}.toString.call(o)=="[object Array]"){if((l===1||l===-1)&&t>=-T&&t<=T&&t===G(t)){if(o[0]===0){if(t===0&&o.length===1)return!0;break e}if(r=(t+1)%E,r<1&&(r+=E),String(o[0]).length==r){for(r=0;r<o.length;r++)if(i=o[r],i<0||i>=z||i!==G(i))break e;if(i!==0)return!0}}}else if(o===null&&t===null&&(l===null||l===1||l===-1))return!0;throw Error(L+"Invalid BigNumber: "+e)},h.maximum=h.max=function(){return de(arguments,-1)},h.minimum=h.min=function(){return de(arguments,1)},h.random=function(){var e=9007199254740992,r=Math.random()*e&2097151?function(){return G(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(i){var o,t,l,c,n,f=0,u=[],s=new h(D);if(i==null?i=_:x(i,0,T),c=le(i/E),Z)if(crypto.getRandomValues){for(o=crypto.getRandomValues(new Uint32Array(c*=2));f<c;)n=o[f]*131072+(o[f+1]>>>11),n>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),o[f]=t[0],o[f+1]=t[1]):(u.push(n%1e14),f+=2);f=c/2}else if(crypto.randomBytes){for(o=crypto.randomBytes(c*=7);f<c;)n=(o[f]&31)*281474976710656+o[f+1]*1099511627776+o[f+2]*4294967296+o[f+3]*16777216+(o[f+4]<<16)+(o[f+5]<<8)+o[f+6],n>=9e15?crypto.randomBytes(7).copy(o,f):(u.push(n%1e14),f+=7);f=c/7}else throw Z=!1,Error(L+"crypto unavailable");if(!Z)for(;f<c;)n=r(),n<9e15&&(u[f++]=n%1e14);for(c=u[--f],i%=E,c&&i&&(n=oe[E-i],u[f]=G(c/n)*n);u[f]===0;u.pop(),f--);if(f<0)u=[l=0];else{for(l=-1;u[0]===0;u.splice(0,1),l-=E);for(f=1,n=u[0];n>=10;n/=10,f++);f<E&&(l-=E-f)}return s.e=l,s.c=u,s}}(),h.sum=function(){for(var e=1,r=arguments,i=new h(r[0]);e<r.length;)i=i.plus(r[e++]);return i},v=function(){var e="0123456789";function r(i,o,t,l){for(var c,n=[0],f,u=0,s=i.length;u<s;){for(f=n.length;f--;n[f]*=o);for(n[0]+=l.indexOf(i.charAt(u++)),c=0;c<n.length;c++)n[c]>t-1&&(n[c+1]==null&&(n[c+1]=0),n[c+1]+=n[c]/t|0,n[c]%=t)}return n.reverse()}return function(i,o,t,l,c){var n,f,u,s,a,p,w,A,B=i.indexOf("."),M=_,d=S;for(B>=0&&(s=J,J=0,i=i.replace(".",""),A=new h(o),p=A.pow(i.length-B),J=s,A.c=r(V(q(p.c),p.e,"0"),10,t,e),A.e=A.c.length),w=r(i,o,t,c?(n=j,e):(n=e,j)),u=s=w.length;w[--s]==0;w.pop());if(!w[0])return n.charAt(0);if(B<0?--u:(p.c=w,p.e=u,p.s=l,p=N(p,A,M,d,t),w=p.c,a=p.r,u=p.e),f=u+M+1,B=w[f],s=t/2,a=a||f<0||w[f+1]!=null,a=d<4?(B!=null||a)&&(d==0||d==(p.s<0?3:2)):B>s||B==s&&(d==4||a||d==6&&w[f-1]&1||d==(p.s<0?8:7)),f<1||!w[0])i=a?V(n.charAt(1),-M,n.charAt(0)):n.charAt(0);else{if(w.length=f,a)for(--t;++w[--f]>t;)w[f]=0,f||(++u,w=[1].concat(w));for(s=w.length;!w[--s];);for(B=0,i="";B<=s;i+=n.charAt(w[B++]));i=V(i,u,n.charAt(0))}return i}}(),N=function(){function e(o,t,l){var c,n,f,u,s=0,a=o.length,p=t%Y,w=t/Y|0;for(o=o.slice();a--;)f=o[a]%Y,u=o[a]/Y|0,c=w*f+u*p,n=p*f+c%Y*Y+s,s=(n/l|0)+(c/Y|0)+w*u,o[a]=n%l;return s&&(o=[s].concat(o)),o}function r(o,t,l,c){var n,f;if(l!=c)f=l>c?1:-1;else for(n=f=0;n<l;n++)if(o[n]!=t[n]){f=o[n]>t[n]?1:-1;break}return f}function i(o,t,l,c){for(var n=0;l--;)o[l]-=n,n=o[l]<t[l]?1:0,o[l]=n*c+o[l]-t[l];for(;!o[0]&&o.length>1;o.splice(0,1));}return function(o,t,l,c,n){var f,u,s,a,p,w,A,B,M,d,m,P,te,ge,pe,X,re,$=o.s==t.s?1:-1,C=o.c,I=t.c;if(!C||!C[0]||!I||!I[0])return new h(!o.s||!t.s||(C?I&&C[0]==I[0]:!I)?NaN:C&&C[0]==0||!I?$*0:$/0);for(B=new h($),M=B.c=[],u=o.e-t.e,$=l+u+1,n||(n=z,u=F(o.e/E)-F(t.e/E),$=$/E|0),s=0;I[s]==(C[s]||0);s++);if(I[s]>(C[s]||0)&&u--,$<0)M.push(1),a=!0;else{for(ge=C.length,X=I.length,s=0,$+=2,p=G(n/(I[0]+1)),p>1&&(I=e(I,p,n),C=e(C,p,n),X=I.length,ge=C.length),te=X,d=C.slice(0,X),m=d.length;m<X;d[m++]=0);re=I.slice(),re=[0].concat(re),pe=I[0],I[1]>=n/2&&pe++;do{if(p=0,f=r(I,d,X,m),f<0){if(P=d[0],X!=m&&(P=P*n+(d[1]||0)),p=G(P/pe),p>1)for(p>=n&&(p=n-1),w=e(I,p,n),A=w.length,m=d.length;r(w,d,A,m)==1;)p--,i(w,X<A?re:I,A,n),A=w.length,f=1;else p==0&&(f=p=1),w=I.slice(),A=w.length;if(A<m&&(w=[0].concat(w)),i(d,w,m,n),m=d.length,f==-1)for(;r(I,d,X,m)<1;)p++,i(d,X<m?re:I,m,n),m=d.length}else f===0&&(p++,d=[0]);M[s++]=p,d[0]?d[m++]=C[te]||0:(d=[C[te]],m=1)}while((te++<ge||d[0]!=null)&&$--);a=d[0]!=null,M[0]||M.splice(0,1)}if(n==z){for(s=1,$=M[0];$>=10;$/=10,s++);y(B,l+(B.e=s+u*E-1)+1,c,a)}else B.e=u,B.r=+a;return B}}();function ae(e,r,i,o){var t,l,c,n,f;if(i==null?i=S:x(i,0,8),!e.c)return e.toString();if(t=e.c[0],c=e.e,r==null)f=q(e.c),f=o==1||o==2&&(c<=k||c>=U)?ne(f,c):V(f,c,"0");else if(e=y(new h(e),r,i),l=e.e,f=q(e.c),n=f.length,o==1||o==2&&(r<=l||l<=k)){for(;n<r;f+="0",n++);f=ne(f,l)}else if(r-=c,f=V(f,l,"0"),l+1>n){if(--r>0)for(f+=".";r--;f+="0");}else if(r+=l-n,r>0)for(l+1==n&&(f+=".");r--;f+="0");return e.s<0&&t?"-"+f:f}function de(e,r){for(var i,o,t=1,l=new h(e[0]);t<e.length;t++)o=new h(e[t]),(!o.s||(i=K(l,o))===r||i===0&&l.s===r)&&(l=o);return l}function he(e,r,i){for(var o=1,t=r.length;!r[--t];r.pop());for(t=r[0];t>=10;t/=10,o++);return(i=o+i*E-1)>H?e.c=e.e=null:i<Q?e.c=[e.e=0]:(e.e=i,e.c=r),e}R=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,i=/^\.([^.]+)$/,o=/^-?(Infinity|NaN)$/,t=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(l,c,n,f){var u,s=n?c:c.replace(t,"");if(o.test(s))l.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(e,function(a,p,w){return u=(w=w.toLowerCase())=="x"?16:w=="b"?2:8,!f||f==u?p:a}),f&&(u=f,s=s.replace(r,"$1").replace(i,"0.$1")),c!=s))return new h(s,u);if(h.DEBUG)throw Error(L+"Not a"+(f?" base "+f:"")+" number: "+c);l.s=null}l.c=l.e=null}}();function y(e,r,i,o){var t,l,c,n,f,u,s,a=e.c,p=oe;if(a){e:{for(t=1,n=a[0];n>=10;n/=10,t++);if(l=r-t,l<0)l+=E,c=r,f=a[u=0],s=G(f/p[t-c-1]%10);else if(u=le((l+1)/E),u>=a.length)if(o){for(;a.length<=u;a.push(0));f=s=0,t=1,l%=E,c=l-E+1}else break e;else{for(f=n=a[u],t=1;n>=10;n/=10,t++);l%=E,c=l-E+t,s=c<0?0:G(f/p[t-c-1]%10)}if(o=o||r<0||a[u+1]!=null||(c<0?f:f%p[t-c-1]),o=i<4?(s||o)&&(i==0||i==(e.s<0?3:2)):s>5||s==5&&(i==4||o||i==6&&(l>0?c>0?f/p[t-c]:0:a[u-1])%10&1||i==(e.s<0?8:7)),r<1||!a[0])return a.length=0,o?(r-=e.e+1,a[0]=p[(E-r%E)%E],e.e=-r||0):a[0]=e.e=0,e;if(l==0?(a.length=u,n=1,u--):(a.length=u+1,n=p[E-l],a[u]=c>0?G(f/p[t-c]%p[c])*n:0),o)for(;;)if(u==0){for(l=1,c=a[0];c>=10;c/=10,l++);for(c=a[0]+=n,n=1;c>=10;c/=10,n++);l!=n&&(e.e++,a[0]==z&&(a[0]=1));break}else{if(a[u]+=n,a[u]!=z)break;a[u--]=0,n=1}for(l=a.length;a[--l]===0;a.pop());}e.e>H?e.c=e.e=null:e.e<Q&&(e.c=[e.e=0])}return e}function W(e){var r,i=e.e;return i===null?e.toString():(r=q(e.c),r=i<=k||i>=U?ne(r,i):V(r,i,"0"),e.s<0?"-"+r:r)}return g.absoluteValue=g.abs=function(){var e=new h(this);return e.s<0&&(e.s=1),e},g.comparedTo=function(e,r){return K(this,new h(e,r))},g.decimalPlaces=g.dp=function(e,r){var i,o,t,l=this;if(e!=null)return x(e,0,T),r==null?r=S:x(r,0,8),y(new h(l),e+l.e+1,r);if(!(i=l.c))return null;if(o=((t=i.length-1)-F(this.e/E))*E,t=i[t])for(;t%10==0;t/=10,o--);return o<0&&(o=0),o},g.dividedBy=g.div=function(e,r){return N(this,new h(e,r),_,S)},g.dividedToIntegerBy=g.idiv=function(e,r){return N(this,new h(e,r),0,1)},g.exponentiatedBy=g.pow=function(e,r){var i,o,t,l,c,n,f,u,s,a=this;if(e=new h(e),e.c&&!e.isInteger())throw Error(L+"Exponent not an integer: "+W(e));if(r!=null&&(r=new h(r)),n=e.e>14,!a.c||!a.c[0]||a.c[0]==1&&!a.e&&a.c.length==1||!e.c||!e.c[0])return s=new h(Math.pow(+W(a),n?e.s*(2-ie(e)):+W(e))),r?s.mod(r):s;if(f=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new h(NaN);o=!f&&a.isInteger()&&r.isInteger(),o&&(a=a.mod(r))}else{if(e.e>9&&(a.e>0||a.e<-1||(a.e==0?a.c[0]>1||n&&a.c[1]>=24e7:a.c[0]<8e13||n&&a.c[0]<=9999975e7)))return l=a.s<0&&ie(e)?-0:0,a.e>-1&&(l=1/l),new h(f?1/l:l);J&&(l=le(J/E+2))}for(n?(i=new h(.5),f&&(e.s=1),u=ie(e)):(t=Math.abs(+W(e)),u=t%2),s=new h(D);;){if(u){if(s=s.times(a),!s.c)break;l?s.c.length>l&&(s.c.length=l):o&&(s=s.mod(r))}if(t){if(t=G(t/2),t===0)break;u=t%2}else if(e=e.times(i),y(e,e.e+1,1),e.e>14)u=ie(e);else{if(t=+W(e),t===0)break;u=t%2}a=a.times(a),l?a.c&&a.c.length>l&&(a.c.length=l):o&&(a=a.mod(r))}return o?s:(f&&(s=D.div(s)),r?s.mod(r):l?y(s,J,S,c):s)},g.integerValue=function(e){var r=new h(this);return e==null?e=S:x(e,0,8),y(r,r.e+1,e)},g.isEqualTo=g.eq=function(e,r){return K(this,new h(e,r))===0},g.isFinite=function(){return!!this.c},g.isGreaterThan=g.gt=function(e,r){return K(this,new h(e,r))>0},g.isGreaterThanOrEqualTo=g.gte=function(e,r){return(r=K(this,new h(e,r)))===1||r===0},g.isInteger=function(){return!!this.c&&F(this.e/E)>this.c.length-2},g.isLessThan=g.lt=function(e,r){return K(this,new h(e,r))<0},g.isLessThanOrEqualTo=g.lte=function(e,r){return(r=K(this,new h(e,r)))===-1||r===0},g.isNaN=function(){return!this.s},g.isNegative=function(){return this.s<0},g.isPositive=function(){return this.s>0},g.isZero=function(){return!!this.c&&this.c[0]==0},g.minus=function(e,r){var i,o,t,l,c=this,n=c.s;if(e=new h(e,r),r=e.s,!n||!r)return new h(NaN);if(n!=r)return e.s=-r,c.plus(e);var f=c.e/E,u=e.e/E,s=c.c,a=e.c;if(!f||!u){if(!s||!a)return s?(e.s=-r,e):new h(a?c:NaN);if(!s[0]||!a[0])return a[0]?(e.s=-r,e):new h(s[0]?c:S==3?-0:0)}if(f=F(f),u=F(u),s=s.slice(),n=f-u){for((l=n<0)?(n=-n,t=s):(u=f,t=a),t.reverse(),r=n;r--;t.push(0));t.reverse()}else for(o=(l=(n=s.length)<(r=a.length))?n:r,n=r=0;r<o;r++)if(s[r]!=a[r]){l=s[r]<a[r];break}if(l&&(t=s,s=a,a=t,e.s=-e.s),r=(o=a.length)-(i=s.length),r>0)for(;r--;s[i++]=0);for(r=z-1;o>n;){if(s[--o]<a[o]){for(i=o;i&&!s[--i];s[i]=r);--s[i],s[o]+=z}s[o]-=a[o]}for(;s[0]==0;s.splice(0,1),--u);return s[0]?he(e,s,u):(e.s=S==3?-1:1,e.c=[e.e=0],e)},g.modulo=g.mod=function(e,r){var i,o,t=this;return e=new h(e,r),!t.c||!e.s||e.c&&!e.c[0]?new h(NaN):!e.c||t.c&&!t.c[0]?new h(t):(ee==9?(o=e.s,e.s=1,i=N(t,e,0,3),e.s=o,i.s*=o):i=N(t,e,0,ee),e=t.minus(i.times(e)),!e.c[0]&&ee==1&&(e.s=t.s),e)},g.multipliedBy=g.times=function(e,r){var i,o,t,l,c,n,f,u,s,a,p,w,A,B,M,d=this,m=d.c,P=(e=new h(e,r)).c;if(!m||!P||!m[0]||!P[0])return!d.s||!e.s||m&&!m[0]&&!P||P&&!P[0]&&!m?e.c=e.e=e.s=null:(e.s*=d.s,!m||!P?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(o=F(d.e/E)+F(e.e/E),e.s*=d.s,f=m.length,a=P.length,f<a&&(A=m,m=P,P=A,t=f,f=a,a=t),t=f+a,A=[];t--;A.push(0));for(B=z,M=Y,t=a;--t>=0;){for(i=0,p=P[t]%M,w=P[t]/M|0,c=f,l=t+c;l>t;)u=m[--c]%M,s=m[c]/M|0,n=w*u+s*p,u=p*u+n%M*M+A[l]+i,i=(u/B|0)+(n/M|0)+w*s,A[l--]=u%B;A[l]=i}return i?++o:A.splice(0,1),he(e,A,o)},g.negated=function(){var e=new h(this);return e.s=-e.s||null,e},g.plus=function(e,r){var i,o=this,t=o.s;if(e=new h(e,r),r=e.s,!t||!r)return new h(NaN);if(t!=r)return e.s=-r,o.minus(e);var l=o.e/E,c=e.e/E,n=o.c,f=e.c;if(!l||!c){if(!n||!f)return new h(t/0);if(!n[0]||!f[0])return f[0]?e:new h(n[0]?o:t*0)}if(l=F(l),c=F(c),n=n.slice(),t=l-c){for(t>0?(c=l,i=f):(t=-t,i=n),i.reverse();t--;i.push(0));i.reverse()}for(t=n.length,r=f.length,t-r<0&&(i=f,f=n,n=i,r=t),t=0;r;)t=(n[--r]=n[r]+f[r]+t)/z|0,n[r]=z===n[r]?0:n[r]%z;return t&&(n=[t].concat(n),++c),he(e,n,c)},g.precision=g.sd=function(e,r){var i,o,t,l=this;if(e!=null&&e!==!!e)return x(e,1,T),r==null?r=S:x(r,0,8),y(new h(l),e,r);if(!(i=l.c))return null;if(t=i.length-1,o=t*E+1,t=i[t]){for(;t%10==0;t/=10,o--);for(t=i[0];t>=10;t/=10,o++);}return e&&l.e+1>o&&(o=l.e+1),o},g.shiftedBy=function(e){return x(e,-se,se),this.times("1e"+e)},g.squareRoot=g.sqrt=function(){var e,r,i,o,t,l=this,c=l.c,n=l.s,f=l.e,u=_+4,s=new h("0.5");if(n!==1||!c||!c[0])return new h(!n||n<0&&(!c||c[0])?NaN:c?l:1/0);if(n=Math.sqrt(+W(l)),n==0||n==1/0?(r=q(c),(r.length+f)%2==0&&(r+="0"),n=Math.sqrt(+r),f=F((f+1)/2)-(f<0||f%2),n==1/0?r="5e"+f:(r=n.toExponential(),r=r.slice(0,r.indexOf("e")+1)+f),i=new h(r)):i=new h(n+""),i.c[0]){for(f=i.e,n=f+u,n<3&&(n=0);;)if(t=i,i=s.times(t.plus(N(l,t,u,1))),q(t.c).slice(0,n)===(r=q(i.c)).slice(0,n))if(i.e<f&&--n,r=r.slice(n-3,n+1),r=="9999"||!o&&r=="4999"){if(!o&&(y(t,t.e+_+2,0),t.times(t).eq(l))){i=t;break}u+=4,n+=4,o=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(y(i,i.e+_+2,1),e=!i.times(i).eq(l));break}}return y(i,i.e+_+1,S,e)},g.toExponential=function(e,r){return e!=null&&(x(e,0,T),e++),ae(this,e,r,1)},g.toFixed=function(e,r){return e!=null&&(x(e,0,T),e=e+this.e+1),ae(this,e,r)},g.toFormat=function(e,r,i){var o,t=this;if(i==null)e!=null&&r&&typeof r=="object"?(i=r,r=null):e&&typeof e=="object"?(i=e,e=r=null):i=ue;else if(typeof i!="object")throw Error(L+"Argument not an object: "+i);if(o=t.toFixed(e,r),t.c){var l,c=o.split("."),n=+i.groupSize,f=+i.secondaryGroupSize,u=i.groupSeparator||"",s=c[0],a=c[1],p=t.s<0,w=p?s.slice(1):s,A=w.length;if(f&&(l=n,n=f,f=l,A-=l),n>0&&A>0){for(l=A%n||n,s=w.substr(0,l);l<A;l+=n)s+=u+w.substr(l,n);f>0&&(s+=u+w.slice(l)),p&&(s="-"+s)}o=a?s+(i.decimalSeparator||"")+((f=+i.fractionGroupSize)?a.replace(new RegExp("\\d{"+f+"}\\B","g"),"$&"+(i.fractionGroupSeparator||"")):a):s}return(i.prefix||"")+o+(i.suffix||"")},g.toFraction=function(e){var r,i,o,t,l,c,n,f,u,s,a,p,w=this,A=w.c;if(e!=null&&(n=new h(e),!n.isInteger()&&(n.c||n.s!==1)||n.lt(D)))throw Error(L+"Argument "+(n.isInteger()?"out of range: ":"not an integer: ")+W(n));if(!A)return new h(w);for(r=new h(D),u=i=new h(D),o=f=new h(D),p=q(A),l=r.e=p.length-w.e-1,r.c[0]=oe[(c=l%E)<0?E+c:c],e=!e||n.comparedTo(r)>0?l>0?r:u:n,c=H,H=1/0,n=new h(p),f.c[0]=0;s=N(n,r,0,1),t=i.plus(s.times(o)),t.comparedTo(e)!=1;)i=o,o=t,u=f.plus(s.times(t=u)),f=t,r=n.minus(s.times(t=r)),n=t;return t=N(e.minus(i),o,0,1),f=f.plus(t.times(u)),i=i.plus(t.times(o)),f.s=u.s=w.s,l=l*2,a=N(u,o,l,S).minus(w).abs().comparedTo(N(f,i,l,S).minus(w).abs())<1?[u,o]:[f,i],H=c,a},g.toNumber=function(){return+W(this)},g.toPrecision=function(e,r){return e!=null&&x(e,1,T),ae(this,e,r,2)},g.toString=function(e){var r,i=this,o=i.s,t=i.e;return t===null?o?(r="Infinity",o<0&&(r="-"+r)):r="NaN":(e==null?r=t<=k||t>=U?ne(q(i.c),t):V(q(i.c),t,"0"):e===10&&ce?(i=y(new h(i),_+t+1,S),r=V(q(i.c),i.e,"0")):(x(e,2,j.length,"Base"),r=v(V(q(i.c),t,"0"),10,e,o,!0)),o<0&&i.c[0]&&(r="-"+r)),r},g.valueOf=g.toJSON=function(){return W(this)},g._isBigNumber=!0,O!=null&&h.set(O),h}function F(O){var N=O|0;return O>0||O===N?N:N-1}function q(O){for(var N,v,R=1,g=O.length,D=O[0]+"";R<g;){for(N=O[R++]+"",v=E-N.length;v--;N="0"+N);D+=N}for(g=D.length;D.charCodeAt(--g)===48;);return D.slice(0,g+1||1)}function K(O,N){var v,R,g=O.c,D=N.c,_=O.s,S=N.s,k=O.e,U=N.e;if(!_||!S)return null;if(v=g&&!g[0],R=D&&!D[0],v||R)return v?R?0:-S:_;if(_!=S)return _;if(v=_<0,R=k==U,!g||!D)return R?0:!g^v?1:-1;if(!R)return k>U^v?1:-1;for(S=(k=g.length)<(U=D.length)?k:U,_=0;_<S;_++)if(g[_]!=D[_])return g[_]>D[_]^v?1:-1;return k==U?0:k>U^v?1:-1}function x(O,N,v,R){if(O<N||O>v||O!==G(O))throw Error(L+(R||"Argument")+(typeof O=="number"?O<N||O>v?" out of range: ":" not an integer: ":" not a primitive number: ")+String(O))}function ie(O){var N=O.c.length-1;return F(O.e/E)==N&&O.c[N]%2!=0}function ne(O,N){return(O.length>1?O.charAt(0)+"."+O.slice(1):O)+(N<0?"e":"e+")+N}function V(O,N,v){var R,g;if(N<0){for(g=v+".";++N;g+=v);O=g+O}else if(R=O.length,++N>R){for(g=v,N-=R;--N;g+=v);O+=g}else N<R&&(O=O.slice(0,N)+"."+O.slice(N));return O}b=Oe(),b.default=b.BigNumber=b,fe=function(){return b}.call(Ee,Ae,Ee,we),fe!==void 0&&(we.exports=fe)})(this)}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[4843],{79014:function(V,H,c){"use strict";c.d(H,{Q:function(){return N},k:function(){return b}});var w=c(77591),x=c.n(w),L=c(24350),O=c(84564),z=c.n(O),B=c(76714),g=Object.defineProperty,U=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,A=(o,f,p)=>f in o?g(o,f,{enumerable:!0,configurable:!0,writable:!0,value:p}):o[f]=p,C=(o,f)=>{for(var p in f||(f={}))F.call(f,p)&&A(o,p,f[p]);if(U)for(var p of U(f))M.call(f,p)&&A(o,p,f[p]);return o};function b(o,f,p,m,S=[]){const d=C({},z()(f,{},!0)),D=f.startsWith(`${o.pluginId}://`);if(d.protocol!=null&&(d.protocol=d.protocol.replace(":","")),d.protocol!=null&&d.protocol!==""&&!p[d.protocol])throw new Error(`Uri protocol '${d.protocol}' is not supported for ${o.pluginId}.`);if(d.host===""&&d.pathname==="")throw new Error("Path and host not found in uri.");const v={publicAddress:d.host!==""?d.host:d.pathname.split("/")[0]},K=d.query.label,P=d.query.message,y=d.query.category;(K!=null||P!=null||y!=null||D)&&(v.metadata={},v.metadata.name=K,v.metadata.notes=P,v.metadata.category=y,v.metadata.gateway=D!=null?D:!1);const E=d.query.amount;if(E!=null&&typeof E=="string"){m==null&&(m=o.currencyCode);const k=(0,B.Qs)(m!=null?m:"",o,S);if(k==null)throw new Error("InternalErrorInvalidCurrencyCode");let T=(0,w.mul)(E,k.multiplier);T=(0,w.toFixed)(T,0,0),v.nativeAmount=T,v.currencyCode=m}return{edgeParsedUri:v,parsedUri:d}}function N(o,f,p){if(o.publicAddress==null)throw new Error("InvalidPublicAddressError");if(p==null&&o.label==null&&o.message==null)return o.publicAddress;{let m="";p!=null&&(m+="amount="+p+"&"),(o.label!=null||o.message!=null)&&(typeof o.label=="string"&&(m+="label="+o.label+"&"),typeof o.message=="string"&&(m+="message="+o.message+"&")),m=m.substr(0,m.length-1);const S={scheme:f,path:o.publicAddress,query:m};return(0,L.qC)(S)}}},80504:function(V,H,c){"use strict";c.r(H),c.d(H,{PiratechainTools:function(){return W},makeCurrencyEngine:function(){return T},makeCurrencyTools:function(){return _}});var w=c(77591),x=c(2153),L=c(48764),O=c(62177),z=c(79014),B=c(76714),g=c(82448);const U=(0,g.su)({first:g.mH,last:g.mH}),F=(0,g.su)({alias:(0,g.Vk)(g.XC),blockRange:(0,g.Vk)(U,()=>({first:0,last:0}))}),M=(0,g.su)({birthdayHeight:g.mH,publicKey:g.XC}),A=(0,O.jd)(M),C=a=>{const t=(0,g.su)({[`${a}Mnemonic`]:g.XC,[`${a}BirthdayHeight`]:g.mH});return(0,g.W1)(e=>{const n=t(e);return{mnemonic:n[`${a}Mnemonic`],birthdayHeight:n[`${a}BirthdayHeight`]}},e=>({[`${a}Mnemonic`]:e.mnemonic,[`${a}BirthdayHeight`]:e.birthdayHeight}))};var b=c(94935),N=c(35620),o=c(84650),f=c(72681),p=Object.defineProperty,m=Object.getOwnPropertySymbols,S=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,$=Reflect.get,v=(a,t,e)=>t in a?p(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,K=(a,t)=>{for(var e in t||(t={}))d.call(t,e)&&v(a,e,t[e]);if(m)for(var e of m(t))D.call(t,e)&&v(a,e,t[e]);return a},P=(a,t,e)=>$(S(a),e,t),y=(a,t,e)=>new Promise((n,r)=>{var l=s=>{try{h(e.next(s))}catch(u){r(u)}},i=s=>{try{h(e.throw(s))}catch(u){r(u)}},h=s=>s.done?n(s.value):Promise.resolve(s.value).then(l,i);h((e=e.apply(a,t)).next())});const E=3e4;class k extends o.P{constructor(t,e,n,r,l){super(t,e,n,r);const{networkInfo:i}=t;this.pluginId=this.currencyInfo.pluginId,this.networkInfo=i,this.makeSynchronizer=l,this.queryMutex=!1,this.started=!1,this.progressRatio=0}setOtherData(t){this.otherData=F(t)}initData(){const{birthdayHeight:t}=this.initializer;this.otherData.blockRange.first===0&&(this.otherData.blockRange={first:t,last:t}),this.initialNumBlocksToDownload=-1,this.synchronizerStatus="DISCONNECTED",this.availableZatoshi="0"}initSubscriptions(){this.synchronizer!=null&&(this.synchronizer.on("update",t=>y(this,null,function*(){const{lastDownloadedHeight:e,scanProgress:n,networkBlockHeight:r}=t;this.onUpdateBlockHeight(r),this.onUpdateProgress(e,n,r),yield this.queryAll()})),this.synchronizer.on("statusChanged",t=>y(this,null,function*(){this.synchronizerStatus=t.name,yield this.queryAll()})))}queryAll(){return y(this,null,function*(){if(this.lastUpdateFromSynchronizer=Date.now(),!this.queryMutex){this.queryMutex=!0;try{yield this.queryBalance(),yield this.queryTransactions(),this.onUpdateTransactions()}catch{}this.queryMutex=!1}})}onUpdateBlockHeight(t){this.walletLocalData.blockHeight!==t&&(this.walletLocalData.blockHeight=t,this.walletLocalDataDirty=!0,this.currencyEngineCallbacks.onBlockHeightChanged(this.walletLocalData.blockHeight))}onUpdateTransactions(){this.transactionsChangedArray.length>0&&(this.currencyEngineCallbacks.onTransactionsChanged(this.transactionsChangedArray),this.transactionsChangedArray=[])}onUpdateProgress(t,e,n){if(!this.addressesChecked&&!this.isSynced()){const r=e*.99,l=e*.8;this.tokenCheckBalanceStatus[this.currencyInfo.currencyCode]=r/100,this.tokenCheckTransactionsStatus[this.currencyInfo.currencyCode]=l/100;const i=(r+l)/2;i>this.progressRatio&&(this.progressRatio=i,this.log.warn(`Scan and download progress: ${Math.floor(i)}%`),this.updateOnAddressesChecked())}}bumpSynchronizer(){return y(this,null,function*(){var t;this.isSynced()||this.lastUpdateFromSynchronizer==null||Date.now()<this.lastUpdateFromSynchronizer+E||(this.log.warn("Haven't heard from the synchronizer in a while. Applying the Fonzie Method..."),yield(t=this.synchronizer)==null?void 0:t.stop(),this.stopSyncing!=null&&(yield this.stopSyncing(5e3),this.stopSyncing=void 0),this.log.warn("\u{1F44D} Ayyy \u{1F44D}"),this.lastUpdateFromSynchronizer=void 0)})}startEngine(){return y(this,null,function*(){this.engineOn=!0,this.started=!0,this.addToLoop("bumpSynchronizer",E).catch(()=>{}),yield P(k.prototype,this,"startEngine").call(this)})}isSynced(){return this.synchronizerStatus==="SYNCED"}queryBalance(){return y(this,null,function*(){if(!(!this.isSynced()||this.synchronizer==null))try{const t=yield this.synchronizer.getBalance();if(t.totalZatoshi==="-1")return;this.availableZatoshi=t.availableZatoshi,this.updateBalance(this.currencyInfo.currencyCode,t.totalZatoshi)}catch(t){this.warn("Failed to update balances",t),this.updateBalance(this.currencyInfo.currencyCode,"0")}})}queryTransactions(){return y(this,null,function*(){if(this.synchronizer!=null)try{let t=this.otherData.blockRange.first,e=this.otherData.blockRange.last;for(;this.isSynced()&&e<=this.walletLocalData.blockHeight;){if((yield this.synchronizer.getTransactions({first:t,last:e})).forEach(r=>this.processTransaction(r)),e===this.walletLocalData.blockHeight){t=this.walletLocalData.blockHeight,this.walletLocalDataDirty=!0,this.tokenCheckTransactionsStatus[this.currencyInfo.currencyCode]=1,this.updateOnAddressesChecked();break}t=e+1,e=e+this.networkInfo.transactionQueryLimit<this.walletLocalData.blockHeight?e+this.networkInfo.transactionQueryLimit:this.walletLocalData.blockHeight,this.otherData.blockRange={first:t,last:e},this.walletLocalDataDirty=!0}}catch(t){this.error(`Error querying ${this.currencyInfo.currencyCode} transactions `,t)}})}processTransaction(t){let e=t.value;const n=[];t.toAddress!=null?e=`-${(0,w.add)(e,this.networkInfo.defaultNetworkFee)}`:n.push(this.walletInfo.keys.publicKey);const r=t.memos.filter(i=>i!=="").map(i=>({memoName:"memo",type:"text",value:i})),l={blockHeight:t.minedHeight,currencyCode:this.currencyInfo.currencyCode,date:t.blockTimeInSeconds,isSend:e.startsWith("-"),memos:r,nativeAmount:e,networkFee:this.networkInfo.defaultNetworkFee,otherParams:{},ourReceiveAddresses:n,signedTx:"",txid:t.rawTransactionId,walletId:this.walletId};this.addTransaction(this.currencyInfo.currencyCode,l)}syncNetwork(t){return y(this,null,function*(){if(!this.started)return 1e3;const e=C(this.currencyInfo.pluginId)(t==null?void 0:t.privateKeys),{rpcNode:n}=this.networkInfo;return this.initializer=K({mnemonicSeed:e.mnemonic,birthdayHeight:e.birthdayHeight,alias:N.YU.stringify(N.US.parse(this.walletId))},n),this.synchronizer=yield this.makeSynchronizer(this.initializer),this.initData(),this.initSubscriptions(),yield new Promise(r=>{this.stopSyncing=r})})}killEngine(){return y(this,null,function*(){var t;this.started=!1,this.stopSyncing!=null&&(yield this.stopSyncing(1e3),this.stopSyncing=void 0),yield(t=this.synchronizer)==null?void 0:t.stop(),yield P(k.prototype,this,"killEngine").call(this)})}clearBlockchainCache(){return y(this,null,function*(){yield P(k.prototype,this,"clearBlockchainCache").call(this)})}resyncBlockchain(){return y(this,null,function*(){var t;yield P(k.prototype,this,"killEngine").call(this),yield this.clearBlockchainCache(),yield this.startEngine(),(t=this.synchronizer)==null||t.rescan().catch(e=>this.warn("resyncBlockchain failed: ",e)),this.initData(),this.progressRatio=0,this.synchronizerStatus="SYNCING"})}getMaxSpendable(){return y(this,null,function*(){const t=(0,w.sub)(this.availableZatoshi,this.networkInfo.defaultNetworkFee);if((0,w.lte)(t,"0"))throw new b.C_;return t})}makeSpend(t){return y(this,null,function*(){var e;if(t=(0,f.s)(t,this.currencyInfo),!this.isSynced())throw new Error("Cannot spend until wallet is synced");const{edgeSpendInfo:n,currencyCode:r}=this.makeSpendCheck(t),{memos:l=[]}=n,i=n.spendTargets[0],{publicAddress:h,nativeAmount:s}=i;if(h==null)throw new Error("makeSpend Missing publicAddress");if(s==null)throw new b.$D;if((0,w.eq)(s,"0"))throw new b.$D;const u=(0,w.add)(s,this.networkInfo.defaultNetworkFee);if((0,w.gt)(u,(e=this.walletLocalData.totalBalances[this.currencyInfo.currencyCode])!=null?e:"0"))throw new b.C_;if((0,w.gt)(u,this.availableZatoshi))throw new b.C_("Amount exceeds available balance");const R=(0,w.mul)(u,"-1");return{blockHeight:0,currencyCode:r,date:0,isSend:!0,memos:l,nativeAmount:R,networkFee:this.networkInfo.defaultNetworkFee,ourReceiveAddresses:[],signedTx:"",txid:"",walletId:this.walletId}})}signTx(t){return y(this,null,function*(){return t})}broadcastTx(t,e){return y(this,null,function*(){var n;if(this.synchronizer==null)throw new Error("Synchronizer undefined");const{memos:r}=t,l=C(this.pluginId)(e==null?void 0:e.privateKeys);if(t.spendTargets==null||t.spendTargets.length!==1)throw new Error("Invalid spend targets");const i=((n=r[0])==null?void 0:n.type)==="text"?r[0].value:"",h=t.spendTargets[0],s={zatoshi:(0,w.sub)((0,w.abs)(t.nativeAmount),t.networkFee),toAddress:h.publicAddress,memo:i,fromAccountIndex:0,mnemonicSeed:l.mnemonic};try{const u=yield this.synchronizer.sendToAddress(s);t.txid=u.txId,t.signedTx=u.raw,t.date=Date.now()/1e3,this.warn(`SUCCESS broadcastTx
|
|
1
|
+
(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[4843],{79014:function(V,H,c){"use strict";c.d(H,{Q:function(){return N},k:function(){return b}});var w=c(77591),x=c.n(w),L=c(24350),O=c(84564),z=c.n(O),B=c(76714),g=Object.defineProperty,U=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,A=(o,f,p)=>f in o?g(o,f,{enumerable:!0,configurable:!0,writable:!0,value:p}):o[f]=p,C=(o,f)=>{for(var p in f||(f={}))F.call(f,p)&&A(o,p,f[p]);if(U)for(var p of U(f))M.call(f,p)&&A(o,p,f[p]);return o};function b(o,f,p,m,S=[]){const d=C({},z()(f,{},!0)),D=f.startsWith(`${o.pluginId}://`);if(d.protocol!=null&&(d.protocol=d.protocol.replace(":","")),d.protocol!=null&&d.protocol!==""&&!p[d.protocol])throw new Error(`Uri protocol '${d.protocol}' is not supported for ${o.pluginId}.`);if(d.host===""&&d.pathname==="")throw new Error("Path and host not found in uri.");const v={publicAddress:d.host!==""?d.host:d.pathname.split("/")[0]},K=d.query.label,P=d.query.message,y=d.query.category;(K!=null||P!=null||y!=null||D)&&(v.metadata={},v.metadata.name=K,v.metadata.notes=P,v.metadata.category=y,v.metadata.gateway=D!=null?D:!1);const E=d.query.amount;if(E!=null&&typeof E=="string"){m==null&&(m=o.currencyCode);const k=(0,B.Qs)(m!=null?m:"",o,S);if(k==null)throw new Error("InternalErrorInvalidCurrencyCode");let T=(0,w.mul)(E,k.multiplier);T=(0,w.toFixed)(T,0,0),v.nativeAmount=T,v.currencyCode=m}return{edgeParsedUri:v,parsedUri:d}}function N(o,f,p){if(o.publicAddress==null)throw new Error("InvalidPublicAddressError");if(p==null&&o.label==null&&o.message==null)return o.publicAddress;{let m="";p!=null&&(m+="amount="+p+"&"),(o.label!=null||o.message!=null)&&(typeof o.label=="string"&&(m+="label="+o.label+"&"),typeof o.message=="string"&&(m+="message="+o.message+"&")),m=m.substr(0,m.length-1);const S={scheme:f,path:o.publicAddress,query:m};return(0,L.qC)(S)}}},80504:function(V,H,c){"use strict";c.r(H),c.d(H,{PiratechainTools:function(){return W},makeCurrencyEngine:function(){return T},makeCurrencyTools:function(){return _}});var w=c(77591),x=c(2153),L=c(48764),O=c(62177),z=c(79014),B=c(76714),g=c(82448);const U=(0,g.su)({first:g.mH,last:g.mH}),F=(0,g.su)({alias:(0,g.Vk)(g.XC),blockRange:(0,g.Vk)(U,()=>({first:0,last:0}))}),M=(0,g.su)({birthdayHeight:g.mH,publicKey:g.XC}),A=(0,O.jd)(M),C=a=>{const t=(0,g.su)({[`${a}Mnemonic`]:g.XC,[`${a}BirthdayHeight`]:g.mH});return(0,g.W1)(e=>{const n=t(e);return{mnemonic:n[`${a}Mnemonic`],birthdayHeight:n[`${a}BirthdayHeight`]}},e=>({[`${a}Mnemonic`]:e.mnemonic,[`${a}BirthdayHeight`]:e.birthdayHeight}))};var b=c(94935),N=c(79325),o=c(84650),f=c(72681),p=Object.defineProperty,m=Object.getOwnPropertySymbols,S=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,$=Reflect.get,v=(a,t,e)=>t in a?p(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,K=(a,t)=>{for(var e in t||(t={}))d.call(t,e)&&v(a,e,t[e]);if(m)for(var e of m(t))D.call(t,e)&&v(a,e,t[e]);return a},P=(a,t,e)=>$(S(a),e,t),y=(a,t,e)=>new Promise((n,r)=>{var l=s=>{try{h(e.next(s))}catch(u){r(u)}},i=s=>{try{h(e.throw(s))}catch(u){r(u)}},h=s=>s.done?n(s.value):Promise.resolve(s.value).then(l,i);h((e=e.apply(a,t)).next())});const E=3e4;class k extends o.P{constructor(t,e,n,r,l){super(t,e,n,r);const{networkInfo:i}=t;this.pluginId=this.currencyInfo.pluginId,this.networkInfo=i,this.makeSynchronizer=l,this.queryMutex=!1,this.started=!1,this.progressRatio=0}setOtherData(t){this.otherData=F(t)}initData(){const{birthdayHeight:t}=this.initializer;this.otherData.blockRange.first===0&&(this.otherData.blockRange={first:t,last:t}),this.initialNumBlocksToDownload=-1,this.synchronizerStatus="DISCONNECTED",this.availableZatoshi="0"}initSubscriptions(){this.synchronizer!=null&&(this.synchronizer.on("update",t=>y(this,null,function*(){const{lastDownloadedHeight:e,scanProgress:n,networkBlockHeight:r}=t;this.onUpdateBlockHeight(r),this.onUpdateProgress(e,n,r),yield this.queryAll()})),this.synchronizer.on("statusChanged",t=>y(this,null,function*(){this.synchronizerStatus=t.name,yield this.queryAll()})))}queryAll(){return y(this,null,function*(){if(this.lastUpdateFromSynchronizer=Date.now(),!this.queryMutex){this.queryMutex=!0;try{yield this.queryBalance(),yield this.queryTransactions(),this.onUpdateTransactions()}catch{}this.queryMutex=!1}})}onUpdateBlockHeight(t){this.walletLocalData.blockHeight!==t&&(this.walletLocalData.blockHeight=t,this.walletLocalDataDirty=!0,this.currencyEngineCallbacks.onBlockHeightChanged(this.walletLocalData.blockHeight))}onUpdateTransactions(){this.transactionsChangedArray.length>0&&(this.currencyEngineCallbacks.onTransactionsChanged(this.transactionsChangedArray),this.transactionsChangedArray=[])}onUpdateProgress(t,e,n){if(!this.addressesChecked&&!this.isSynced()){const r=e*.99,l=e*.8;this.tokenCheckBalanceStatus[this.currencyInfo.currencyCode]=r/100,this.tokenCheckTransactionsStatus[this.currencyInfo.currencyCode]=l/100;const i=(r+l)/2;i>this.progressRatio&&(this.progressRatio=i,this.log.warn(`Scan and download progress: ${Math.floor(i)}%`),this.updateOnAddressesChecked())}}bumpSynchronizer(){return y(this,null,function*(){var t;this.isSynced()||this.lastUpdateFromSynchronizer==null||Date.now()<this.lastUpdateFromSynchronizer+E||(this.log.warn("Haven't heard from the synchronizer in a while. Applying the Fonzie Method..."),yield(t=this.synchronizer)==null?void 0:t.stop(),this.stopSyncing!=null&&(yield this.stopSyncing(5e3),this.stopSyncing=void 0),this.log.warn("\u{1F44D} Ayyy \u{1F44D}"),this.lastUpdateFromSynchronizer=void 0)})}startEngine(){return y(this,null,function*(){this.engineOn=!0,this.started=!0,this.addToLoop("bumpSynchronizer",E).catch(()=>{}),yield P(k.prototype,this,"startEngine").call(this)})}isSynced(){return this.synchronizerStatus==="SYNCED"}queryBalance(){return y(this,null,function*(){if(!(!this.isSynced()||this.synchronizer==null))try{const t=yield this.synchronizer.getBalance();if(t.totalZatoshi==="-1")return;this.availableZatoshi=t.availableZatoshi,this.updateBalance(this.currencyInfo.currencyCode,t.totalZatoshi)}catch(t){this.warn("Failed to update balances",t),this.updateBalance(this.currencyInfo.currencyCode,"0")}})}queryTransactions(){return y(this,null,function*(){if(this.synchronizer!=null)try{let t=this.otherData.blockRange.first,e=this.otherData.blockRange.last;for(;this.isSynced()&&e<=this.walletLocalData.blockHeight;){if((yield this.synchronizer.getTransactions({first:t,last:e})).forEach(r=>this.processTransaction(r)),e===this.walletLocalData.blockHeight){t=this.walletLocalData.blockHeight,this.walletLocalDataDirty=!0,this.tokenCheckTransactionsStatus[this.currencyInfo.currencyCode]=1,this.updateOnAddressesChecked();break}t=e+1,e=e+this.networkInfo.transactionQueryLimit<this.walletLocalData.blockHeight?e+this.networkInfo.transactionQueryLimit:this.walletLocalData.blockHeight,this.otherData.blockRange={first:t,last:e},this.walletLocalDataDirty=!0}}catch(t){this.error(`Error querying ${this.currencyInfo.currencyCode} transactions `,t)}})}processTransaction(t){let e=t.value;const n=[];t.toAddress!=null?e=`-${(0,w.add)(e,this.networkInfo.defaultNetworkFee)}`:n.push(this.walletInfo.keys.publicKey);const r=t.memos.filter(i=>i!=="").map(i=>({memoName:"memo",type:"text",value:i})),l={blockHeight:t.minedHeight,currencyCode:this.currencyInfo.currencyCode,date:t.blockTimeInSeconds,isSend:e.startsWith("-"),memos:r,nativeAmount:e,networkFee:this.networkInfo.defaultNetworkFee,otherParams:{},ourReceiveAddresses:n,signedTx:"",txid:t.rawTransactionId,walletId:this.walletId};this.addTransaction(this.currencyInfo.currencyCode,l)}syncNetwork(t){return y(this,null,function*(){if(!this.started)return 1e3;const e=C(this.currencyInfo.pluginId)(t==null?void 0:t.privateKeys),{rpcNode:n}=this.networkInfo;return this.initializer=K({mnemonicSeed:e.mnemonic,birthdayHeight:e.birthdayHeight,alias:N.YU.stringify(N.US.parse(this.walletId))},n),this.synchronizer=yield this.makeSynchronizer(this.initializer),this.initData(),this.initSubscriptions(),yield new Promise(r=>{this.stopSyncing=r})})}killEngine(){return y(this,null,function*(){var t;this.started=!1,this.stopSyncing!=null&&(yield this.stopSyncing(1e3),this.stopSyncing=void 0),yield(t=this.synchronizer)==null?void 0:t.stop(),yield P(k.prototype,this,"killEngine").call(this)})}clearBlockchainCache(){return y(this,null,function*(){yield P(k.prototype,this,"clearBlockchainCache").call(this)})}resyncBlockchain(){return y(this,null,function*(){var t;yield P(k.prototype,this,"killEngine").call(this),yield this.clearBlockchainCache(),yield this.startEngine(),(t=this.synchronizer)==null||t.rescan().catch(e=>this.warn("resyncBlockchain failed: ",e)),this.initData(),this.progressRatio=0,this.synchronizerStatus="SYNCING"})}getMaxSpendable(){return y(this,null,function*(){const t=(0,w.sub)(this.availableZatoshi,this.networkInfo.defaultNetworkFee);if((0,w.lte)(t,"0"))throw new b.C_;return t})}makeSpend(t){return y(this,null,function*(){var e;if(t=(0,f.s)(t,this.currencyInfo),!this.isSynced())throw new Error("Cannot spend until wallet is synced");const{edgeSpendInfo:n,currencyCode:r}=this.makeSpendCheck(t),{memos:l=[]}=n,i=n.spendTargets[0],{publicAddress:h,nativeAmount:s}=i;if(h==null)throw new Error("makeSpend Missing publicAddress");if(s==null)throw new b.$D;if((0,w.eq)(s,"0"))throw new b.$D;const u=(0,w.add)(s,this.networkInfo.defaultNetworkFee);if((0,w.gt)(u,(e=this.walletLocalData.totalBalances[this.currencyInfo.currencyCode])!=null?e:"0"))throw new b.C_;if((0,w.gt)(u,this.availableZatoshi))throw new b.C_("Amount exceeds available balance");const R=(0,w.mul)(u,"-1");return{blockHeight:0,currencyCode:r,date:0,isSend:!0,memos:l,nativeAmount:R,networkFee:this.networkInfo.defaultNetworkFee,ourReceiveAddresses:[],signedTx:"",txid:"",walletId:this.walletId}})}signTx(t){return y(this,null,function*(){return t})}broadcastTx(t,e){return y(this,null,function*(){var n;if(this.synchronizer==null)throw new Error("Synchronizer undefined");const{memos:r}=t,l=C(this.pluginId)(e==null?void 0:e.privateKeys);if(t.spendTargets==null||t.spendTargets.length!==1)throw new Error("Invalid spend targets");const i=((n=r[0])==null?void 0:n.type)==="text"?r[0].value:"",h=t.spendTargets[0],s={zatoshi:(0,w.sub)((0,w.abs)(t.nativeAmount),t.networkFee),toAddress:h.publicAddress,memo:i,fromAccountIndex:0,mnemonicSeed:l.mnemonic};try{const u=yield this.synchronizer.sendToAddress(s);t.txid=u.txId,t.signedTx=u.raw,t.date=Date.now()/1e3,this.warn(`SUCCESS broadcastTx
|
|
2
2
|
${(0,B.oX)(t)}`)}catch(u){throw this.warn("FAILURE broadcastTx failed: ",u),u}return t})}getFreshAddress(){return y(this,null,function*(){if(this.synchronizer==null)throw new Error("Synchronizer undefined");return{publicAddress:(yield this.synchronizer.deriveUnifiedAddress()).saplingAddress}})}}function T(a,t,e,n){return y(this,null,function*(){const r=A(e),{makeSynchronizer:l}=a.nativeIo["edge-currency-accountbased"].piratechain,i=new k(a,t,r,n,l);return yield i.loadEngine(),i})}var I=(a,t,e)=>new Promise((n,r)=>{var l=s=>{try{h(e.next(s))}catch(u){r(u)}},i=s=>{try{h(e.throw(s))}catch(u){r(u)}},h=s=>s.done?n(s.value):Promise.resolve(s.value).then(l,i);h((e=e.apply(a,t)).next())});class W{constructor(t){const{builtinTokens:e,currencyInfo:n,io:r,networkInfo:l}=t;this.builtinTokens=e,this.currencyInfo=n,this.io=r,this.networkInfo=l;const i=t.nativeIo["edge-currency-accountbased"];if(i==null)throw new Error("Need opts");const{Tools:h}=i.piratechain;this.nativeTools=h}getDisplayPrivateKey(t){return I(this,null,function*(){const{pluginId:e}=this.currencyInfo;return C(e)(t.keys).mnemonic})}getDisplayPublicKey(t){return I(this,null,function*(){const{keys:e}=A(t);return e.publicKey})}getNewWalletBirthdayBlockheight(){return I(this,null,function*(){try{return yield this.nativeTools.getBirthdayHeight(this.networkInfo.rpcNode.defaultHost,this.networkInfo.rpcNode.defaultPort)}catch{return this.networkInfo.defaultBirthday}})}isValidAddress(t){return I(this,null,function*(){return yield this.nativeTools.isValidAddress(t)})}importPrivateKey(t){return I(this,arguments,function*(e,n={}){const{pluginId:r}=this.currencyInfo;if(!(0,x.validateMnemonic)(e))throw new Error(`Invalid ${this.currencyInfo.currencyCode} mnemonic`);const i=yield this.getNewWalletBirthdayBlockheight();let h=i;const{birthdayHeight:s}=n;if(s!=null){(0,O.jD)(s);const u=parseInt(s);if(u>i)throw new Error("InvalidBirthdayHeight");h=u}return{[`${r}Mnemonic`]:e,[`${r}BirthdayHeight`]:h}})}createPrivateKey(t){return I(this,null,function*(){if(t!==this.currencyInfo.walletType)throw new Error("InvalidWalletType");const e=L.Buffer.from(this.io.random(32)).toString("hex"),n=(0,x.entropyToMnemonic)(e);return yield this.importPrivateKey(n)})}checkPublicKey(t){return I(this,null,function*(){try{return M(t),!0}catch{return!1}})}derivePublicKey(t){return I(this,null,function*(){const{pluginId:e}=this.currencyInfo,n=C(e)(t.keys);if(t.type!==this.currencyInfo.walletType)throw new Error("InvalidWalletType");const r=n.mnemonic;if(typeof r!="string")throw new Error("InvalidMnemonic");const l=yield this.nativeTools.deriveViewingKey(r,this.networkInfo.rpcNode.networkName);return{birthdayHeight:n.birthdayHeight,publicKey:l}})}parseUri(t,e,n){return I(this,null,function*(){const{pluginId:r}=this.currencyInfo,l={[r]:!0},{edgeParsedUri:i,edgeParsedUri:{publicAddress:h}}=(0,z.k)(this.currencyInfo,t,l,e!=null?e:this.currencyInfo.currencyCode,n);if(h==null||!(yield this.isValidAddress(h)))throw new Error("InvalidPublicAddressError");return i})}encodeUri(t){return I(this,arguments,function*(e,n=[]){const{pluginId:r}=this.currencyInfo,{nativeAmount:l,currencyCode:i,publicAddress:h}=e;if(!(yield this.isValidAddress(h)))throw new Error("InvalidPublicAddressError");let s;if(l!=null){const R=(0,B.Qs)(i!=null?i:this.currencyInfo.currencyCode,this.currencyInfo,n);if(R==null)throw new Error("InternalErrorInvalidCurrencyCode");s=(0,w.div)(l,R.multiplier,18)}return(0,z.Q)(e,`${r}`,s)})}}function _(a){return I(this,null,function*(){return new W(a)})}},52361:function(){},94616:function(){}}]);
|