edge-currency-accountbased 4.5.3 → 4.7.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 +14 -0
- package/android/src/main/assets/edge-currency-accountbased/3839.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/5565.chunk.js +16 -16
- package/android/src/main/assets/edge-currency-accountbased/6291.chunk.js +35 -35
- package/android/src/main/assets/edge-currency-accountbased/6341.chunk.js +10 -10
- package/android/src/main/assets/edge-currency-accountbased/7224.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/7381.chunk.js +1 -0
- package/android/src/main/assets/edge-currency-accountbased/8193.chunk.js +5 -3
- package/android/src/main/assets/edge-currency-accountbased/8367.chunk.js +1 -1
- package/android/src/main/assets/edge-currency-accountbased/9539.chunk.js +10 -10
- package/android/src/main/assets/edge-currency-accountbased/axelar.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +3 -3
- package/android/src/main/assets/edge-currency-accountbased/ethereum.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/tezos.chunk.js +2 -2
- package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +4 -4
- package/lib/cosmos/CosmosEngine.js +13 -4
- package/lib/cosmos/cosmosUtils.js +74 -0
- package/lib/cosmos/info/cosmoshubInfo.js +4 -4
- package/lib/cosmos/info/thorchainruneInfo.js +2 -71
- package/lib/ethereum/ethereumInfos.js +2 -0
- package/lib/ethereum/info/bobevmInfo.js +111 -0
- package/lib/ethereum/info/ethereumclassicInfo.js +1 -1
- package/lib/piratechain/PiratechainEngine.js +19 -4
- package/lib/piratechain/piratechainTypes.js +2 -1
- package/lib/solana/SolanaEngine.js +180 -184
- package/lib/solana/SolanaTools.js +66 -6
- package/lib/solana/solanaTypes.js +2 -83
- package/lib/tezos/TezosTools.js +2 -3
- package/lib/zcash/ZcashEngine.js +20 -4
- package/lib/zcash/zcashTypes.js +1 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 4.7.0 (2024-06-05)
|
|
6
|
+
|
|
7
|
+
- added: Build On Bitcoin (BOB) EVM chain
|
|
8
|
+
- added: (Zcash/Piratechain) Cache addresses on local data
|
|
9
|
+
- added: (Ethereum Classic) Add evmscan provider for transaction history
|
|
10
|
+
- added: (Cosmos) WalletConnect ADR36 message support
|
|
11
|
+
- fixed: (Cosmos) cosmos_signAmino signer derivation
|
|
12
|
+
|
|
13
|
+
## 4.6.0 (2024-05-30)
|
|
14
|
+
|
|
15
|
+
- changed: (Solana) Upgrade SDKs
|
|
16
|
+
- removed: (ATOM) Archive transaction query
|
|
17
|
+
- removed: (Thorchain) Remove synth assets
|
|
18
|
+
|
|
5
19
|
## 4.5.3 (2024-05-28)
|
|
6
20
|
|
|
7
21
|
- added: Added two alternative evmscan servers to zkSync
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[3839],{27320:function(T,t){Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0;function E(h){if(!Number.isSafeInteger(h)||h<0)throw new Error(`Wrong positive integer: ${h}`)}t.number=E;function p(h){if(typeof h!="boolean")throw new Error(`Expected boolean, not ${h}`)}t.bool=p;function i(h,...l){if(!(h instanceof Uint8Array))throw new Error("Expected Uint8Array");if(l.length>0&&!l.includes(h.length))throw new Error(`Expected Uint8Array of length ${l}, not of length=${h.length}`)}t.bytes=i;function j(h){if(typeof h!="function"||typeof h.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");E(h.outputLen),E(h.blockLen)}t.hash=j;function I(h,l=!0){if(h.destroyed)throw new Error("Hash instance has been destroyed");if(l&&h.finished)throw new Error("Hash#digest() has already been called")}t.exists=I;function U(h,l){i(h);const A=l.outputLen;if(h.length<A)throw new Error(`digestInto() expects output buffer of length at least ${A}`)}t.output=U;const s={number:E,bool:p,bytes:i,hash:j,exists:I,output:U};t.default=s},27505:function(T,t,E){Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const p=E(27320),i=E(98089);function j(U,s,h,l){if(typeof U.setBigUint64=="function")return U.setBigUint64(s,h,l);const A=BigInt(32),w=BigInt(4294967295),u=Number(h>>A&w),L=Number(h&w),y=l?4:0,m=l?0:4;U.setUint32(s+y,u,l),U.setUint32(s+m,L,l)}class I extends i.Hash{constructor(s,h,l,A){super(),this.blockLen=s,this.outputLen=h,this.padOffset=l,this.isLE=A,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(s),this.view=(0,i.createView)(this.buffer)}update(s){(0,p.exists)(this);const{view:h,buffer:l,blockLen:A}=this;s=(0,i.toBytes)(s);const w=s.length;for(let u=0;u<w;){const L=Math.min(A-this.pos,w-u);if(L===A){const y=(0,i.createView)(s);for(;A<=w-u;u+=A)this.process(y,u);continue}l.set(s.subarray(u,u+L),this.pos),this.pos+=L,u+=L,this.pos===A&&(this.process(h,0),this.pos=0)}return this.length+=s.length,this.roundClean(),this}digestInto(s){(0,p.exists)(this),(0,p.output)(s,this),this.finished=!0;const{buffer:h,view:l,blockLen:A,isLE:w}=this;let{pos:u}=this;h[u++]=128,this.buffer.subarray(u).fill(0),this.padOffset>A-u&&(this.process(l,0),u=0);for(let b=u;b<A;b++)h[b]=0;j(l,A-8,BigInt(this.length*8),w),this.process(l,0);const L=(0,i.createView)(s),y=this.outputLen;if(y%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const m=y/4,H=this.get();if(m>H.length)throw new Error("_sha2: outputLen bigger than state");for(let b=0;b<m;b++)L.setUint32(4*b,H[b],w)}digest(){const{buffer:s,outputLen:h}=this;this.digestInto(s);const l=s.slice(0,h);return this.destroy(),l}_cloneInto(s){s||(s=new this.constructor),s.set(...this.get());const{blockLen:h,buffer:l,length:A,finished:w,destroyed:u,pos:L}=this;return s.length=A,s.pos=L,s.finished=w,s.destroyed=u,A%h&&s.buffer.set(l),s}}t.SHA2=I},6873:function(T,t){Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const E=BigInt(2**32-1),p=BigInt(32);function i(e,c=!1){return c?{h:Number(e&E),l:Number(e>>p&E)}:{h:Number(e>>p&E)|0,l:Number(e&E)|0}}t.fromBig=i;function j(e,c=!1){let o=new Uint32Array(e.length),B=new Uint32Array(e.length);for(let C=0;C<e.length;C++){const{h:k,l:S}=i(e[C],c);[o[C],B[C]]=[k,S]}return[o,B]}t.split=j;const I=(e,c)=>BigInt(e>>>0)<<p|BigInt(c>>>0);t.toBig=I;const U=(e,c,o)=>e>>>o;t.shrSH=U;const s=(e,c,o)=>e<<32-o|c>>>o;t.shrSL=s;const h=(e,c,o)=>e>>>o|c<<32-o;t.rotrSH=h;const l=(e,c,o)=>e<<32-o|c>>>o;t.rotrSL=l;const A=(e,c,o)=>e<<64-o|c>>>o-32;t.rotrBH=A;const w=(e,c,o)=>e>>>o-32|c<<64-o;t.rotrBL=w;const u=(e,c)=>c;t.rotr32H=u;const L=(e,c)=>e;t.rotr32L=L;const y=(e,c,o)=>e<<o|c>>>32-o;t.rotlSH=y;const m=(e,c,o)=>c<<o|e>>>32-o;t.rotlSL=m;const H=(e,c,o)=>c<<o-32|e>>>64-o;t.rotlBH=H;const b=(e,c,o)=>e<<o-32|c>>>64-o;t.rotlBL=b;function r(e,c,o,B){const C=(c>>>0)+(B>>>0);return{h:e+o+(C/2**32|0)|0,l:C|0}}t.add=r;const d=(e,c,o)=>(e>>>0)+(c>>>0)+(o>>>0);t.add3L=d;const x=(e,c,o,B)=>c+o+B+(e/2**32|0)|0;t.add3H=x;const _=(e,c,o,B)=>(e>>>0)+(c>>>0)+(o>>>0)+(B>>>0);t.add4L=_;const g=(e,c,o,B,C)=>c+o+B+C+(e/2**32|0)|0;t.add4H=g;const n=(e,c,o,B,C)=>(e>>>0)+(c>>>0)+(o>>>0)+(B>>>0)+(C>>>0);t.add5L=n;const a=(e,c,o,B,C,k)=>c+o+B+C+k+(e/2**32|0)|0;t.add5H=a;const f={fromBig:i,split:j,toBig:I,shrSH:U,shrSL:s,rotrSH:h,rotrSL:l,rotrBH:A,rotrBL:w,rotr32H:u,rotr32L:L,rotlSH:y,rotlSL:m,rotlBH:H,rotlBL:b,add:r,add3L:d,add3H:x,add4L:_,add4H:g,add5H:a,add5L:n};t.default=f},31945:function(T,t){Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0},79569:function(T,t,E){Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const p=E(27320),i=E(98089);class j extends i.Hash{constructor(s,h){super(),this.finished=!1,this.destroyed=!1,(0,p.hash)(s);const l=(0,i.toBytes)(h);if(this.iHash=s.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const A=this.blockLen,w=new Uint8Array(A);w.set(l.length>A?s.create().update(l).digest():l);for(let u=0;u<w.length;u++)w[u]^=54;this.iHash.update(w),this.oHash=s.create();for(let u=0;u<w.length;u++)w[u]^=106;this.oHash.update(w),w.fill(0)}update(s){return(0,p.exists)(this),this.iHash.update(s),this}digestInto(s){(0,p.exists)(this),(0,p.bytes)(s,this.outputLen),this.finished=!0,this.iHash.digestInto(s),this.oHash.update(s),this.oHash.digestInto(s),this.destroy()}digest(){const s=new Uint8Array(this.oHash.outputLen);return this.digestInto(s),s}_cloneInto(s){s||(s=Object.create(Object.getPrototypeOf(this),{}));const{oHash:h,iHash:l,finished:A,destroyed:w,blockLen:u,outputLen:L}=this;return s=s,s.finished=A,s.destroyed=w,s.blockLen=u,s.outputLen=L,s.oHash=h._cloneInto(s.oHash),s.iHash=l._cloneInto(s.iHash),s}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=j;const I=(U,s,h)=>new j(U,s).update(h).digest();t.hmac=I,t.hmac.create=(U,s)=>new j(U,s)},70830:function(T,t,E){Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const p=E(27505),i=E(98089),j=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),I=Uint8Array.from({length:16},(r,d)=>d),U=I.map(r=>(9*r+5)%16);let s=[I],h=[U];for(let r=0;r<4;r++)for(let d of[s,h])d.push(d[r].map(x=>j[x]));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(r=>new Uint8Array(r)),A=s.map((r,d)=>r.map(x=>l[d][x])),w=h.map((r,d)=>r.map(x=>l[d][x])),u=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),L=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),y=(r,d)=>r<<d|r>>>32-d;function m(r,d,x,_){return r===0?d^x^_:r===1?d&x|~d&_:r===2?(d|~x)^_:r===3?d&_|x&~_:d^(x|~_)}const H=new Uint32Array(16);class b extends p.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:d,h1:x,h2:_,h3:g,h4:n}=this;return[d,x,_,g,n]}set(d,x,_,g,n){this.h0=d|0,this.h1=x|0,this.h2=_|0,this.h3=g|0,this.h4=n|0}process(d,x){for(let k=0;k<16;k++,x+=4)H[k]=d.getUint32(x,!0);let _=this.h0|0,g=_,n=this.h1|0,a=n,f=this.h2|0,e=f,c=this.h3|0,o=c,B=this.h4|0,C=B;for(let k=0;k<5;k++){const S=4-k,G=u[k],M=L[k],W=s[k],P=h[k],D=A[k],F=w[k];for(let O=0;O<16;O++){const v=y(_+m(k,n,f,c)+H[W[O]]+G,D[O])+B|0;_=B,B=c,c=y(f,10)|0,f=n,n=v}for(let O=0;O<16;O++){const v=y(g+m(S,a,e,o)+H[P[O]]+M,F[O])+C|0;g=C,C=o,o=y(e,10)|0,e=a,a=v}}this.set(this.h1+f+o|0,this.h2+c+C|0,this.h3+B+g|0,this.h4+_+a|0,this.h0+n+e|0)}roundClean(){H.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=b,t.ripemd160=(0,i.wrapConstructor)(()=>new b)},23061:function(T,t,E){Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const p=E(27505),i=E(98089),j=(w,u,L)=>w&u^~w&L,I=(w,u,L)=>w&u^w&L^u&L,U=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),h=new Uint32Array(64);class l extends p.SHA2{constructor(){super(64,32,8,!1),this.A=s[0]|0,this.B=s[1]|0,this.C=s[2]|0,this.D=s[3]|0,this.E=s[4]|0,this.F=s[5]|0,this.G=s[6]|0,this.H=s[7]|0}get(){const{A:u,B:L,C:y,D:m,E:H,F:b,G:r,H:d}=this;return[u,L,y,m,H,b,r,d]}set(u,L,y,m,H,b,r,d){this.A=u|0,this.B=L|0,this.C=y|0,this.D=m|0,this.E=H|0,this.F=b|0,this.G=r|0,this.H=d|0}process(u,L){for(let g=0;g<16;g++,L+=4)h[g]=u.getUint32(L,!1);for(let g=16;g<64;g++){const n=h[g-15],a=h[g-2],f=(0,i.rotr)(n,7)^(0,i.rotr)(n,18)^n>>>3,e=(0,i.rotr)(a,17)^(0,i.rotr)(a,19)^a>>>10;h[g]=e+h[g-7]+f+h[g-16]|0}let{A:y,B:m,C:H,D:b,E:r,F:d,G:x,H:_}=this;for(let g=0;g<64;g++){const n=(0,i.rotr)(r,6)^(0,i.rotr)(r,11)^(0,i.rotr)(r,25),a=_+n+j(r,d,x)+U[g]+h[g]|0,e=((0,i.rotr)(y,2)^(0,i.rotr)(y,13)^(0,i.rotr)(y,22))+I(y,m,H)|0;_=x,x=d,d=r,r=b+a|0,b=H,H=m,m=y,y=a+e|0}y=y+this.A|0,m=m+this.B|0,H=H+this.C|0,b=b+this.D|0,r=r+this.E|0,d=d+this.F|0,x=x+this.G|0,_=_+this.H|0,this.set(y,m,H,b,r,d,x,_)}roundClean(){h.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class A extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)(()=>new l),t.sha224=(0,i.wrapConstructor)(()=>new A)},86262:function(T,t,E){Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const p=E(27505),i=E(6873),j=E(98089),[I,U]=(()=>i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(L=>BigInt(L))))(),s=new Uint32Array(80),h=new Uint32Array(80);class l extends p.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:y,Al:m,Bh:H,Bl:b,Ch:r,Cl:d,Dh:x,Dl:_,Eh:g,El:n,Fh:a,Fl:f,Gh:e,Gl:c,Hh:o,Hl:B}=this;return[y,m,H,b,r,d,x,_,g,n,a,f,e,c,o,B]}set(y,m,H,b,r,d,x,_,g,n,a,f,e,c,o,B){this.Ah=y|0,this.Al=m|0,this.Bh=H|0,this.Bl=b|0,this.Ch=r|0,this.Cl=d|0,this.Dh=x|0,this.Dl=_|0,this.Eh=g|0,this.El=n|0,this.Fh=a|0,this.Fl=f|0,this.Gh=e|0,this.Gl=c|0,this.Hh=o|0,this.Hl=B|0}process(y,m){for(let S=0;S<16;S++,m+=4)s[S]=y.getUint32(m),h[S]=y.getUint32(m+=4);for(let S=16;S<80;S++){const G=s[S-15]|0,M=h[S-15]|0,W=i.default.rotrSH(G,M,1)^i.default.rotrSH(G,M,8)^i.default.shrSH(G,M,7),P=i.default.rotrSL(G,M,1)^i.default.rotrSL(G,M,8)^i.default.shrSL(G,M,7),D=s[S-2]|0,F=h[S-2]|0,O=i.default.rotrSH(D,F,19)^i.default.rotrBH(D,F,61)^i.default.shrSH(D,F,6),v=i.default.rotrSL(D,F,19)^i.default.rotrBL(D,F,61)^i.default.shrSL(D,F,6),N=i.default.add4L(P,v,h[S-7],h[S-16]),V=i.default.add4H(N,W,O,s[S-7],s[S-16]);s[S]=V|0,h[S]=N|0}let{Ah:H,Al:b,Bh:r,Bl:d,Ch:x,Cl:_,Dh:g,Dl:n,Eh:a,El:f,Fh:e,Fl:c,Gh:o,Gl:B,Hh:C,Hl:k}=this;for(let S=0;S<80;S++){const G=i.default.rotrSH(a,f,14)^i.default.rotrSH(a,f,18)^i.default.rotrBH(a,f,41),M=i.default.rotrSL(a,f,14)^i.default.rotrSL(a,f,18)^i.default.rotrBL(a,f,41),W=a&e^~a&o,P=f&c^~f&B,D=i.default.add5L(k,M,P,U[S],h[S]),F=i.default.add5H(D,C,G,W,I[S],s[S]),O=D|0,v=i.default.rotrSH(H,b,28)^i.default.rotrBH(H,b,34)^i.default.rotrBH(H,b,39),N=i.default.rotrSL(H,b,28)^i.default.rotrBL(H,b,34)^i.default.rotrBL(H,b,39),V=H&r^H&x^r&x,$=b&d^b&_^d&_;C=o|0,k=B|0,o=e|0,B=c|0,e=a|0,c=f|0,{h:a,l:f}=i.default.add(g|0,n|0,F|0,O|0),g=x|0,n=_|0,x=r|0,_=d|0,r=H|0,d=b|0;const R=i.default.add3L(O,N,$);H=i.default.add3H(R,F,v,V),b=R|0}({h:H,l:b}=i.default.add(this.Ah|0,this.Al|0,H|0,b|0)),{h:r,l:d}=i.default.add(this.Bh|0,this.Bl|0,r|0,d|0),{h:x,l:_}=i.default.add(this.Ch|0,this.Cl|0,x|0,_|0),{h:g,l:n}=i.default.add(this.Dh|0,this.Dl|0,g|0,n|0),{h:a,l:f}=i.default.add(this.Eh|0,this.El|0,a|0,f|0),{h:e,l:c}=i.default.add(this.Fh|0,this.Fl|0,e|0,c|0),{h:o,l:B}=i.default.add(this.Gh|0,this.Gl|0,o|0,B|0),{h:C,l:k}=i.default.add(this.Hh|0,this.Hl|0,C|0,k|0),this.set(H,b,r,d,x,_,g,n,a,f,e,c,o,B,C,k)}roundClean(){s.fill(0),h.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=l;class A extends l{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class w extends l{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class u extends l{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,j.wrapConstructor)(()=>new l),t.sha512_224=(0,j.wrapConstructor)(()=>new A),t.sha512_256=(0,j.wrapConstructor)(()=>new w),t.sha384=(0,j.wrapConstructor)(()=>new u)},98089:function(T,t,E){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const p=E(31945),i=n=>n instanceof Uint8Array,j=n=>new Uint8Array(n.buffer,n.byteOffset,n.byteLength);t.u8=j;const I=n=>new Uint32Array(n.buffer,n.byteOffset,Math.floor(n.byteLength/4));t.u32=I;const U=n=>new DataView(n.buffer,n.byteOffset,n.byteLength);t.createView=U;const s=(n,a)=>n<<32-a|n>>>a;if(t.rotr=s,t.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!t.isLE)throw new Error("Non little-endian hardware is not supported");const h=Array.from({length:256},(n,a)=>a.toString(16).padStart(2,"0"));function l(n){if(!i(n))throw new Error("Uint8Array expected");let a="";for(let f=0;f<n.length;f++)a+=h[n[f]];return a}t.bytesToHex=l;function A(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);const a=n.length;if(a%2)throw new Error("padded hex string expected, got unpadded hex of length "+a);const f=new Uint8Array(a/2);for(let e=0;e<f.length;e++){const c=e*2,o=n.slice(c,c+2),B=Number.parseInt(o,16);if(Number.isNaN(B)||B<0)throw new Error("Invalid byte sequence");f[e]=B}return f}t.hexToBytes=A;const w=async()=>{};t.nextTick=w;async function u(n,a,f){let e=Date.now();for(let c=0;c<n;c++){f(c);const o=Date.now()-e;o>=0&&o<a||(await(0,t.nextTick)(),e+=o)}}t.asyncLoop=u;function L(n){if(typeof n!="string")throw new Error(`utf8ToBytes expected string, got ${typeof n}`);return new Uint8Array(new TextEncoder().encode(n))}t.utf8ToBytes=L;function y(n){if(typeof n=="string"&&(n=L(n)),!i(n))throw new Error(`expected Uint8Array, got ${typeof n}`);return n}t.toBytes=y;function m(...n){const a=new Uint8Array(n.reduce((e,c)=>e+c.length,0));let f=0;return n.forEach(e=>{if(!i(e))throw new Error("Uint8Array expected");a.set(e,f),f+=e.length}),a}t.concatBytes=m;class H{clone(){return this._cloneInto()}}t.Hash=H;const b={}.toString;function r(n,a){if(a!==void 0&&b.call(a)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(n,a)}t.checkOpts=r;function d(n){const a=e=>n().update(y(e)).digest(),f=n();return a.outputLen=f.outputLen,a.blockLen=f.blockLen,a.create=()=>n(),a}t.wrapConstructor=d;function x(n){const a=(e,c)=>n(c).update(y(e)).digest(),f=n({});return a.outputLen=f.outputLen,a.blockLen=f.blockLen,a.create=e=>n(e),a}t.wrapConstructorWithOpts=x;function _(n){const a=(e,c)=>n(c).update(y(e)).digest(),f=n({});return a.outputLen=f.outputLen,a.blockLen=f.blockLen,a.create=e=>n(e),a}t.wrapXOFConstructorWithOpts=_;function g(n=32){if(p.crypto&&typeof p.crypto.getRandomValues=="function")return p.crypto.getRandomValues(new Uint8Array(n));throw new Error("crypto.getRandomValues must be defined")}t.randomBytes=g}}]);
|
|
1
|
+
"use strict";(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[3839],{27320:function(T,t){Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=t.isBytes=void 0;function C(s){if(!Number.isSafeInteger(s)||s<0)throw new Error(`positive integer expected, not ${s}`)}t.number=C;function U(s){if(typeof s!="boolean")throw new Error(`boolean expected, not ${s}`)}t.bool=U;function n(s){return s instanceof Uint8Array||s!=null&&typeof s=="object"&&s.constructor.name==="Uint8Array"}t.isBytes=n;function k(s,...y){if(!n(s))throw new Error("Uint8Array expected");if(y.length>0&&!y.includes(s.length))throw new Error(`Uint8Array expected of length ${y}, not of length=${s.length}`)}t.bytes=k;function D(s){if(typeof s!="function"||typeof s.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");C(s.outputLen),C(s.blockLen)}t.hash=D;function p(s,y=!0){if(s.destroyed)throw new Error("Hash instance has been destroyed");if(y&&s.finished)throw new Error("Hash#digest() has already been called")}t.exists=p;function o(s,y){k(s);const H=y.outputLen;if(s.length<H)throw new Error(`digestInto() expects output buffer of length at least ${H}`)}t.output=o;const g={number:C,bool:U,bytes:k,hash:D,exists:p,output:o};t.default=g},75457:function(T,t,C){Object.defineProperty(t,"__esModule",{value:!0}),t.HashMD=t.Maj=t.Chi=void 0;const U=C(27320),n=C(98089);function k(g,s,y,H){if(typeof g.setBigUint64=="function")return g.setBigUint64(s,y,H);const b=BigInt(32),L=BigInt(4294967295),f=Number(y>>b&L),_=Number(y&L),w=H?4:0,r=H?0:4;g.setUint32(s+w,f,H),g.setUint32(s+r,_,H)}const D=(g,s,y)=>g&s^~g&y;t.Chi=D;const p=(g,s,y)=>g&s^g&y^s&y;t.Maj=p;class o extends n.Hash{constructor(s,y,H,b){super(),this.blockLen=s,this.outputLen=y,this.padOffset=H,this.isLE=b,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(s),this.view=(0,n.createView)(this.buffer)}update(s){(0,U.exists)(this);const{view:y,buffer:H,blockLen:b}=this;s=(0,n.toBytes)(s);const L=s.length;for(let f=0;f<L;){const _=Math.min(b-this.pos,L-f);if(_===b){const w=(0,n.createView)(s);for(;b<=L-f;f+=b)this.process(w,f);continue}H.set(s.subarray(f,f+_),this.pos),this.pos+=_,f+=_,this.pos===b&&(this.process(y,0),this.pos=0)}return this.length+=s.length,this.roundClean(),this}digestInto(s){(0,U.exists)(this),(0,U.output)(s,this),this.finished=!0;const{buffer:y,view:H,blockLen:b,isLE:L}=this;let{pos:f}=this;y[f++]=128,this.buffer.subarray(f).fill(0),this.padOffset>b-f&&(this.process(H,0),f=0);for(let u=f;u<b;u++)y[u]=0;k(H,b-8,BigInt(this.length*8),L),this.process(H,0);const _=(0,n.createView)(s),w=this.outputLen;if(w%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const r=w/4,x=this.get();if(r>x.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<r;u++)_.setUint32(4*u,x[u],L)}digest(){const{buffer:s,outputLen:y}=this;this.digestInto(s);const H=s.slice(0,y);return this.destroy(),H}_cloneInto(s){s||(s=new this.constructor),s.set(...this.get());const{blockLen:y,buffer:H,length:b,finished:L,destroyed:f,pos:_}=this;return s.length=b,s.pos=_,s.finished=L,s.destroyed=f,b%y&&s.buffer.set(H),s}}t.HashMD=o},6873:function(T,t){Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const C=BigInt(2**32-1),U=BigInt(32);function n(c,a=!1){return a?{h:Number(c&C),l:Number(c>>U&C)}:{h:Number(c>>U&C)|0,l:Number(c&C)|0}}t.fromBig=n;function k(c,a=!1){let h=new Uint32Array(c.length),e=new Uint32Array(c.length);for(let i=0;i<c.length;i++){const{h:B,l}=n(c[i],a);[h[i],e[i]]=[B,l]}return[h,e]}t.split=k;const D=(c,a)=>BigInt(c>>>0)<<U|BigInt(a>>>0);t.toBig=D;const p=(c,a,h)=>c>>>h;t.shrSH=p;const o=(c,a,h)=>c<<32-h|a>>>h;t.shrSL=o;const g=(c,a,h)=>c>>>h|a<<32-h;t.rotrSH=g;const s=(c,a,h)=>c<<32-h|a>>>h;t.rotrSL=s;const y=(c,a,h)=>c<<64-h|a>>>h-32;t.rotrBH=y;const H=(c,a,h)=>c>>>h-32|a<<64-h;t.rotrBL=H;const b=(c,a)=>a;t.rotr32H=b;const L=(c,a)=>c;t.rotr32L=L;const f=(c,a,h)=>c<<h|a>>>32-h;t.rotlSH=f;const _=(c,a,h)=>a<<h|c>>>32-h;t.rotlSL=_;const w=(c,a,h)=>a<<h-32|c>>>64-h;t.rotlBH=w;const r=(c,a,h)=>c<<h-32|a>>>64-h;t.rotlBL=r;function x(c,a,h,e){const i=(a>>>0)+(e>>>0);return{h:c+h+(i/2**32|0)|0,l:i|0}}t.add=x;const u=(c,a,h)=>(c>>>0)+(a>>>0)+(h>>>0);t.add3L=u;const d=(c,a,h,e)=>a+h+e+(c/2**32|0)|0;t.add3H=d;const m=(c,a,h,e)=>(c>>>0)+(a>>>0)+(h>>>0)+(e>>>0);t.add4L=m;const S=(c,a,h,e,i)=>a+h+e+i+(c/2**32|0)|0;t.add4H=S;const I=(c,a,h,e,i)=>(c>>>0)+(a>>>0)+(h>>>0)+(e>>>0)+(i>>>0);t.add5L=I;const A=(c,a,h,e,i,B)=>a+h+e+i+B+(c/2**32|0)|0;t.add5H=A;const j={fromBig:n,split:k,toBig:D,shrSH:p,shrSL:o,rotrSH:g,rotrSL:s,rotrBH:y,rotrBL:H,rotr32H:b,rotr32L:L,rotlSH:f,rotlSL:_,rotlBH:w,rotlBL:r,add:x,add3L:u,add3H:d,add4L:m,add4H:S,add5H:A,add5L:I};t.default=j},31945:function(T,t){Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0},79569:function(T,t,C){Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const U=C(27320),n=C(98089);class k extends n.Hash{constructor(o,g){super(),this.finished=!1,this.destroyed=!1,(0,U.hash)(o);const s=(0,n.toBytes)(g);if(this.iHash=o.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const y=this.blockLen,H=new Uint8Array(y);H.set(s.length>y?o.create().update(s).digest():s);for(let b=0;b<H.length;b++)H[b]^=54;this.iHash.update(H),this.oHash=o.create();for(let b=0;b<H.length;b++)H[b]^=106;this.oHash.update(H),H.fill(0)}update(o){return(0,U.exists)(this),this.iHash.update(o),this}digestInto(o){(0,U.exists)(this),(0,U.bytes)(o,this.outputLen),this.finished=!0,this.iHash.digestInto(o),this.oHash.update(o),this.oHash.digestInto(o),this.destroy()}digest(){const o=new Uint8Array(this.oHash.outputLen);return this.digestInto(o),o}_cloneInto(o){o||(o=Object.create(Object.getPrototypeOf(this),{}));const{oHash:g,iHash:s,finished:y,destroyed:H,blockLen:b,outputLen:L}=this;return o=o,o.finished=y,o.destroyed=H,o.blockLen=b,o.outputLen=L,o.oHash=g._cloneInto(o.oHash),o.iHash=s._cloneInto(o.iHash),o}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=k;const D=(p,o,g)=>new k(p,o).update(g).digest();t.hmac=D,t.hmac.create=(p,o)=>new k(p,o)},70830:function(T,t,C){Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const U=C(75457),n=C(98089),k=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),D=new Uint8Array(new Array(16).fill(0).map((r,x)=>x)),p=D.map(r=>(9*r+5)%16);let o=[D],g=[p];for(let r=0;r<4;r++)for(let x of[o,g])x.push(x[r].map(u=>k[u]));const s=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(r=>new Uint8Array(r)),y=o.map((r,x)=>r.map(u=>s[x][u])),H=g.map((r,x)=>r.map(u=>s[x][u])),b=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),L=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function f(r,x,u,d){return r===0?x^u^d:r===1?x&u|~x&d:r===2?(x|~u)^d:r===3?x&d|u&~d:x^(u|~d)}const _=new Uint32Array(16);class w extends U.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:x,h1:u,h2:d,h3:m,h4:S}=this;return[x,u,d,m,S]}set(x,u,d,m,S){this.h0=x|0,this.h1=u|0,this.h2=d|0,this.h3=m|0,this.h4=S|0}process(x,u){for(let i=0;i<16;i++,u+=4)_[i]=x.getUint32(u,!0);let d=this.h0|0,m=d,S=this.h1|0,I=S,A=this.h2|0,j=A,c=this.h3|0,a=c,h=this.h4|0,e=h;for(let i=0;i<5;i++){const B=4-i,l=b[i],E=L[i],M=o[i],G=g[i],v=y[i],F=H[i];for(let O=0;O<16;O++){const W=(0,n.rotl)(d+f(i,S,A,c)+_[M[O]]+l,v[O])+h|0;d=h,h=c,c=(0,n.rotl)(A,10)|0,A=S,S=W}for(let O=0;O<16;O++){const W=(0,n.rotl)(m+f(B,I,j,a)+_[G[O]]+E,F[O])+e|0;m=e,e=a,a=(0,n.rotl)(j,10)|0,j=I,I=W}}this.set(this.h1+A+a|0,this.h2+c+e|0,this.h3+h+m|0,this.h4+d+I|0,this.h0+S+j|0)}roundClean(){_.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=w,t.ripemd160=(0,n.wrapConstructor)(()=>new w)},23061:function(T,t,C){Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const U=C(75457),n=C(98089),k=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),D=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),p=new Uint32Array(64);class o extends U.HashMD{constructor(){super(64,32,8,!1),this.A=D[0]|0,this.B=D[1]|0,this.C=D[2]|0,this.D=D[3]|0,this.E=D[4]|0,this.F=D[5]|0,this.G=D[6]|0,this.H=D[7]|0}get(){const{A:y,B:H,C:b,D:L,E:f,F:_,G:w,H:r}=this;return[y,H,b,L,f,_,w,r]}set(y,H,b,L,f,_,w,r){this.A=y|0,this.B=H|0,this.C=b|0,this.D=L|0,this.E=f|0,this.F=_|0,this.G=w|0,this.H=r|0}process(y,H){for(let d=0;d<16;d++,H+=4)p[d]=y.getUint32(H,!1);for(let d=16;d<64;d++){const m=p[d-15],S=p[d-2],I=(0,n.rotr)(m,7)^(0,n.rotr)(m,18)^m>>>3,A=(0,n.rotr)(S,17)^(0,n.rotr)(S,19)^S>>>10;p[d]=A+p[d-7]+I+p[d-16]|0}let{A:b,B:L,C:f,D:_,E:w,F:r,G:x,H:u}=this;for(let d=0;d<64;d++){const m=(0,n.rotr)(w,6)^(0,n.rotr)(w,11)^(0,n.rotr)(w,25),S=u+m+(0,U.Chi)(w,r,x)+k[d]+p[d]|0,A=((0,n.rotr)(b,2)^(0,n.rotr)(b,13)^(0,n.rotr)(b,22))+(0,U.Maj)(b,L,f)|0;u=x,x=r,r=w,w=_+S|0,_=f,f=L,L=b,b=S+A|0}b=b+this.A|0,L=L+this.B|0,f=f+this.C|0,_=_+this.D|0,w=w+this.E|0,r=r+this.F|0,x=x+this.G|0,u=u+this.H|0,this.set(b,L,f,_,w,r,x,u)}roundClean(){p.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class g extends o{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,n.wrapConstructor)(()=>new o),t.sha224=(0,n.wrapConstructor)(()=>new g)},86262:function(T,t,C){Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const U=C(75457),n=C(6873),k=C(98089),[D,p]=(()=>n.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(L=>BigInt(L))))(),o=new Uint32Array(80),g=new Uint32Array(80);class s extends U.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:f,Al:_,Bh:w,Bl:r,Ch:x,Cl:u,Dh:d,Dl:m,Eh:S,El:I,Fh:A,Fl:j,Gh:c,Gl:a,Hh:h,Hl:e}=this;return[f,_,w,r,x,u,d,m,S,I,A,j,c,a,h,e]}set(f,_,w,r,x,u,d,m,S,I,A,j,c,a,h,e){this.Ah=f|0,this.Al=_|0,this.Bh=w|0,this.Bl=r|0,this.Ch=x|0,this.Cl=u|0,this.Dh=d|0,this.Dl=m|0,this.Eh=S|0,this.El=I|0,this.Fh=A|0,this.Fl=j|0,this.Gh=c|0,this.Gl=a|0,this.Hh=h|0,this.Hl=e|0}process(f,_){for(let l=0;l<16;l++,_+=4)o[l]=f.getUint32(_),g[l]=f.getUint32(_+=4);for(let l=16;l<80;l++){const E=o[l-15]|0,M=g[l-15]|0,G=n.default.rotrSH(E,M,1)^n.default.rotrSH(E,M,8)^n.default.shrSH(E,M,7),v=n.default.rotrSL(E,M,1)^n.default.rotrSL(E,M,8)^n.default.shrSL(E,M,7),F=o[l-2]|0,O=g[l-2]|0,W=n.default.rotrSH(F,O,19)^n.default.rotrBH(F,O,61)^n.default.shrSH(F,O,6),V=n.default.rotrSL(F,O,19)^n.default.rotrBL(F,O,61)^n.default.shrSL(F,O,6),P=n.default.add4L(v,V,g[l-7],g[l-16]),R=n.default.add4H(P,G,W,o[l-7],o[l-16]);o[l]=R|0,g[l]=P|0}let{Ah:w,Al:r,Bh:x,Bl:u,Ch:d,Cl:m,Dh:S,Dl:I,Eh:A,El:j,Fh:c,Fl:a,Gh:h,Gl:e,Hh:i,Hl:B}=this;for(let l=0;l<80;l++){const E=n.default.rotrSH(A,j,14)^n.default.rotrSH(A,j,18)^n.default.rotrBH(A,j,41),M=n.default.rotrSL(A,j,14)^n.default.rotrSL(A,j,18)^n.default.rotrBL(A,j,41),G=A&c^~A&h,v=j&a^~j&e,F=n.default.add5L(B,M,v,p[l],g[l]),O=n.default.add5H(F,i,E,G,D[l],o[l]),W=F|0,V=n.default.rotrSH(w,r,28)^n.default.rotrBH(w,r,34)^n.default.rotrBH(w,r,39),P=n.default.rotrSL(w,r,28)^n.default.rotrBL(w,r,34)^n.default.rotrBL(w,r,39),R=w&x^w&d^x&d,K=r&u^r&m^u&m;i=h|0,B=e|0,h=c|0,e=a|0,c=A|0,a=j|0,{h:A,l:j}=n.default.add(S|0,I|0,O|0,W|0),S=d|0,I=m|0,d=x|0,m=u|0,x=w|0,u=r|0;const N=n.default.add3L(W,P,K);w=n.default.add3H(N,O,V,R),r=N|0}({h:w,l:r}=n.default.add(this.Ah|0,this.Al|0,w|0,r|0)),{h:x,l:u}=n.default.add(this.Bh|0,this.Bl|0,x|0,u|0),{h:d,l:m}=n.default.add(this.Ch|0,this.Cl|0,d|0,m|0),{h:S,l:I}=n.default.add(this.Dh|0,this.Dl|0,S|0,I|0),{h:A,l:j}=n.default.add(this.Eh|0,this.El|0,A|0,j|0),{h:c,l:a}=n.default.add(this.Fh|0,this.Fl|0,c|0,a|0),{h,l:e}=n.default.add(this.Gh|0,this.Gl|0,h|0,e|0),{h:i,l:B}=n.default.add(this.Hh|0,this.Hl|0,i|0,B|0),this.set(w,r,x,u,d,m,S,I,A,j,c,a,h,e,i,B)}roundClean(){o.fill(0),g.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=s;class y extends s{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class H extends s{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class b extends s{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,k.wrapConstructor)(()=>new s),t.sha512_224=(0,k.wrapConstructor)(()=>new y),t.sha512_256=(0,k.wrapConstructor)(()=>new H),t.sha384=(0,k.wrapConstructor)(()=>new b)},98089:function(T,t,C){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.byteSwap32=t.byteSwapIfBE=t.byteSwap=t.isLE=t.rotl=t.rotr=t.createView=t.u32=t.u8=t.isBytes=void 0;const U=C(31945),n=C(27320);function k(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}t.isBytes=k;const D=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u8=D;const p=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.u32=p;const o=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);t.createView=o;const g=(e,i)=>e<<32-i|e>>>i;t.rotr=g;const s=(e,i)=>e<<i|e>>>32-i>>>0;t.rotl=s,t.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const y=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;t.byteSwap=y,t.byteSwapIfBE=t.isLE?e=>e:e=>(0,t.byteSwap)(e);function H(e){for(let i=0;i<e.length;i++)e[i]=(0,t.byteSwap)(e[i])}t.byteSwap32=H;const b=Array.from({length:256},(e,i)=>i.toString(16).padStart(2,"0"));function L(e){(0,n.bytes)(e);let i="";for(let B=0;B<e.length;B++)i+=b[e[B]];return i}t.bytesToHex=L;const f={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function _(e){if(e>=f._0&&e<=f._9)return e-f._0;if(e>=f._A&&e<=f._F)return e-(f._A-10);if(e>=f._a&&e<=f._f)return e-(f._a-10)}function w(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const i=e.length,B=i/2;if(i%2)throw new Error("padded hex string expected, got unpadded hex of length "+i);const l=new Uint8Array(B);for(let E=0,M=0;E<B;E++,M+=2){const G=_(e.charCodeAt(M)),v=_(e.charCodeAt(M+1));if(G===void 0||v===void 0){const F=e[M]+e[M+1];throw new Error('hex string expected, got non-hex character "'+F+'" at index '+M)}l[E]=G*16+v}return l}t.hexToBytes=w;const r=async()=>{};t.nextTick=r;async function x(e,i,B){let l=Date.now();for(let E=0;E<e;E++){B(E);const M=Date.now()-l;M>=0&&M<i||(await(0,t.nextTick)(),l+=M)}}t.asyncLoop=x;function u(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}t.utf8ToBytes=u;function d(e){return typeof e=="string"&&(e=u(e)),(0,n.bytes)(e),e}t.toBytes=d;function m(...e){let i=0;for(let l=0;l<e.length;l++){const E=e[l];(0,n.bytes)(E),i+=E.length}const B=new Uint8Array(i);for(let l=0,E=0;l<e.length;l++){const M=e[l];B.set(M,E),E+=M.length}return B}t.concatBytes=m;class S{clone(){return this._cloneInto()}}t.Hash=S;const I={}.toString;function A(e,i){if(i!==void 0&&I.call(i)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(e,i)}t.checkOpts=A;function j(e){const i=l=>e().update(d(l)).digest(),B=e();return i.outputLen=B.outputLen,i.blockLen=B.blockLen,i.create=()=>e(),i}t.wrapConstructor=j;function c(e){const i=(l,E)=>e(E).update(d(l)).digest(),B=e({});return i.outputLen=B.outputLen,i.blockLen=B.blockLen,i.create=l=>e(l),i}t.wrapConstructorWithOpts=c;function a(e){const i=(l,E)=>e(E).update(d(l)).digest(),B=e({});return i.outputLen=B.outputLen,i.blockLen=B.blockLen,i.create=l=>e(l),i}t.wrapXOFConstructorWithOpts=a;function h(e=32){if(U.crypto&&typeof U.crypto.getRandomValues=="function")return U.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}t.randomBytes=h}}]);
|