UNPKG

wowok_agent

Version:

Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.

2 lines 18.5 kB
/*! For license information please see 153.0e09a3e7bd0bed0427de.js.LICENSE.txt */ "use strict";(this.webpackChunkwowok_agent=this.webpackChunkwowok_agent||[]).push([[153],{1454:(t,e,s)=>{s.d(e,{w:()=>r});var n=s(9190),i=s(4976);class h extends i.Vw{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,n.sd)(t);const s=(0,i.ZJ)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const h=this.blockLen,r=new Uint8Array(h);r.set(s.length>h?t.create().update(s).digest():s);for(let t=0;t<r.length;t++)r[t]^=54;this.iHash.update(r),this.oHash=t.create();for(let t=0;t<r.length;t++)r[t]^=106;this.oHash.update(r),r.fill(0)}update(t){return(0,n.CC)(this),this.iHash.update(t),this}digestInto(t){(0,n.CC)(this),(0,n.DO)(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:s,finished:n,destroyed:i,blockLen:h,outputLen:r}=this;return t.finished=n,t.destroyed=i,t.blockLen=h,t.outputLen=r,t.oHash=e._cloneInto(t.oHash),t.iHash=s._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const r=(t,e,s)=>new h(t,e).update(s).digest();r.create=(t,e)=>new h(t,e)},2341:(t,e,s)=>{s.d(e,{Zf:()=>f});var n=s(9190),i=s(4976);class h extends i.Vw{constructor(t,e,s,n){super(),this.blockLen=t,this.outputLen=e,this.padOffset=s,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.O8)(this.buffer)}update(t){(0,n.CC)(this);const{view:e,buffer:s,blockLen:h}=this,r=(t=(0,i.ZJ)(t)).length;for(let n=0;n<r;){const o=Math.min(h-this.pos,r-n);if(o!==h)s.set(t.subarray(n,n+o),this.pos),this.pos+=o,n+=o,this.pos===h&&(this.process(e,0),this.pos=0);else{const e=(0,i.O8)(t);for(;h<=r-n;n+=h)this.process(e,n)}}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,n.CC)(this),(0,n.Ht)(t,this),this.finished=!0;const{buffer:e,view:s,blockLen:h,isLE:r}=this;let{pos:o}=this;e[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>h-o&&(this.process(s,0),o=0);for(let t=o;t<h;t++)e[t]=0;!function(t,e,s,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,s,n);const i=BigInt(32),h=BigInt(4294967295),r=Number(s>>i&h),o=Number(s&h),c=n?4:0,a=n?0:4;t.setUint32(e+c,r,n),t.setUint32(e+a,o,n)}(s,h-8,BigInt(8*this.length),r),this.process(s,0);const c=(0,i.O8)(t),a=this.outputLen;if(a%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=a/4,l=this.get();if(d>l.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<d;t++)c.setUint32(4*t,l[t],r)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const s=t.slice(0,e);return this.destroy(),s}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:s,length:n,finished:i,destroyed:h,pos:r}=this;return t.length=n,t.pos=r,t.finished=i,t.destroyed=h,n%e&&t.buffer.set(s),t}}var r=s(9271);const[o,c]=(()=>r.Ay.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((t=>BigInt(t)))))(),a=new Uint32Array(80),d=new Uint32Array(80);class l extends h{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:t,Al:e,Bh:s,Bl:n,Ch:i,Cl:h,Dh:r,Dl:o,Eh:c,El:a,Fh:d,Fl:l,Gh:f,Gl:u,Hh:b,Hl:y}=this;return[t,e,s,n,i,h,r,o,c,a,d,l,f,u,b,y]}set(t,e,s,n,i,h,r,o,c,a,d,l,f,u,b,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|s,this.Bl=0|n,this.Ch=0|i,this.Cl=0|h,this.Dh=0|r,this.Dl=0|o,this.Eh=0|c,this.El=0|a,this.Fh=0|d,this.Fl=0|l,this.Gh=0|f,this.Gl=0|u,this.Hh=0|b,this.Hl=0|y}process(t,e){for(let s=0;s<16;s++,e+=4)a[s]=t.getUint32(e),d[s]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|a[t-15],s=0|d[t-15],n=r.Ay.rotrSH(e,s,1)^r.Ay.rotrSH(e,s,8)^r.Ay.shrSH(e,s,7),i=r.Ay.rotrSL(e,s,1)^r.Ay.rotrSL(e,s,8)^r.Ay.shrSL(e,s,7),h=0|a[t-2],o=0|d[t-2],c=r.Ay.rotrSH(h,o,19)^r.Ay.rotrBH(h,o,61)^r.Ay.shrSH(h,o,6),l=r.Ay.rotrSL(h,o,19)^r.Ay.rotrBL(h,o,61)^r.Ay.shrSL(h,o,6),f=r.Ay.add4L(i,l,d[t-7],d[t-16]),u=r.Ay.add4H(f,n,c,a[t-7],a[t-16]);a[t]=0|u,d[t]=0|f}let{Ah:s,Al:n,Bh:i,Bl:h,Ch:l,Cl:f,Dh:u,Dl:b,Eh:y,El:p,Fh:g,Fl:v,Gh:x,Gl:A,Hh:w,Hl:L}=this;for(let t=0;t<80;t++){const e=r.Ay.rotrSH(y,p,14)^r.Ay.rotrSH(y,p,18)^r.Ay.rotrBH(y,p,41),H=r.Ay.rotrSL(y,p,14)^r.Ay.rotrSL(y,p,18)^r.Ay.rotrBL(y,p,41),B=y&g^~y&x,k=p&v^~p&A,D=r.Ay.add5L(L,H,k,c[t],d[t]),E=r.Ay.add5H(D,w,e,B,o[t],a[t]),S=0|D,F=r.Ay.rotrSH(s,n,28)^r.Ay.rotrBH(s,n,34)^r.Ay.rotrBH(s,n,39),I=r.Ay.rotrSL(s,n,28)^r.Ay.rotrBL(s,n,34)^r.Ay.rotrBL(s,n,39),U=s&i^s&l^i&l,C=n&h^n&f^h&f;w=0|x,L=0|A,x=0|g,A=0|v,g=0|y,v=0|p,({h:y,l:p}=r.Ay.add(0|u,0|b,0|E,0|S)),u=0|l,b=0|f,l=0|i,f=0|h,i=0|s,h=0|n;const m=r.Ay.add3L(S,I,C);s=r.Ay.add3H(m,E,F,U),n=0|m}({h:s,l:n}=r.Ay.add(0|this.Ah,0|this.Al,0|s,0|n)),({h:i,l:h}=r.Ay.add(0|this.Bh,0|this.Bl,0|i,0|h)),({h:l,l:f}=r.Ay.add(0|this.Ch,0|this.Cl,0|l,0|f)),({h:u,l:b}=r.Ay.add(0|this.Dh,0|this.Dl,0|u,0|b)),({h:y,l:p}=r.Ay.add(0|this.Eh,0|this.El,0|y,0|p)),({h:g,l:v}=r.Ay.add(0|this.Fh,0|this.Fl,0|g,0|v)),({h:x,l:A}=r.Ay.add(0|this.Gh,0|this.Gl,0|x,0|A)),({h:w,l:L}=r.Ay.add(0|this.Hh,0|this.Hl,0|w,0|L)),this.set(s,n,i,h,l,f,u,b,y,p,g,v,x,A,w,L)}roundClean(){a.fill(0),d.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)}}const f=(0,i.ld)((()=>new l))},4976:(t,e,s)=>{s.d(e,{DH:()=>i,Fc:()=>a,My:()=>l,O8:()=>h,Vw:()=>p,ZJ:()=>y,aT:()=>b,c:()=>c,ld:()=>v,qv:()=>r,t6:()=>x,tY:()=>g});var n=s(9190);function i(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function h(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const r=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])();function o(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const c=r?t=>t:t=>o(t);function a(t){for(let e=0;e<t.length;e++)t[e]=o(t[e])}const d=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function l(t){(0,n.DO)(t);let e="";for(let s=0;s<t.length;s++)e+=d[t[s]];return e}const f={_0:48,_9:57,A:65,F:70,a:97,f:102};function u(t){return t>=f._0&&t<=f._9?t-f._0:t>=f.A&&t<=f.F?t-(f.A-10):t>=f.a&&t<=f.f?t-(f.a-10):void 0}function b(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);const e=t.length,s=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const n=new Uint8Array(s);for(let e=0,i=0;e<s;e++,i+=2){const s=u(t.charCodeAt(i)),h=u(t.charCodeAt(i+1));if(void 0===s||void 0===h){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}n[e]=16*s+h}return n}function y(t){return"string"==typeof t&&(t=function(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}(t)),(0,n.DO)(t),t}class p{clone(){return this._cloneInto()}}function g(t,e){if(void 0!==e&&"[object Object]"!=={}.toString.call(e))throw new Error("Options should be object or undefined");return Object.assign(t,e)}function v(t){const e=e=>t().update(y(e)).digest(),s=t();return e.outputLen=s.outputLen,e.blockLen=s.blockLen,e.create=()=>t(),e}function x(t){const e=(e,s)=>t(s).update(y(e)).digest(),s=t({});return e.outputLen=s.outputLen,e.blockLen=s.blockLen,e.create=e=>t(e),e}},5398:(t,e,s)=>{s.d(e,{S:()=>u});var n=s(9190),i=s(4976);const h=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9]);class r extends i.Vw{constructor(t,e,s={},h,r,o){if(super(),this.blockLen=t,this.outputLen=e,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,(0,n.Fe)(t),(0,n.Fe)(e),(0,n.Fe)(h),e<0||e>h)throw new Error("outputLen bigger than keyLen");if(void 0!==s.key&&(s.key.length<1||s.key.length>h))throw new Error("key length must be undefined or 1.."+h);if(void 0!==s.salt&&s.salt.length!==r)throw new Error("salt must be undefined or "+r);if(void 0!==s.personalization&&s.personalization.length!==o)throw new Error("personalization must be undefined or "+o);this.buffer=new Uint8Array(t),this.buffer32=(0,i.DH)(this.buffer)}update(t){(0,n.CC)(this);const{blockLen:e,buffer:s,buffer32:h}=this,r=(t=(0,i.ZJ)(t)).length,o=t.byteOffset,c=t.buffer;for(let n=0;n<r;){this.pos===e&&(i.qv||(0,i.Fc)(h),this.compress(h,0,!1),i.qv||(0,i.Fc)(h),this.pos=0);const a=Math.min(e-this.pos,r-n),d=o+n;if(a!==e||d%4||!(n+a<r))s.set(t.subarray(n,n+a),this.pos),this.pos+=a,this.length+=a,n+=a;else{const t=new Uint32Array(c,d,Math.floor((r-n)/4));i.qv||(0,i.Fc)(t);for(let s=0;n+e<r;s+=h.length,n+=e)this.length+=e,this.compress(t,s,!1);i.qv||(0,i.Fc)(t)}}return this}digestInto(t){(0,n.CC)(this),(0,n.Ht)(t,this);const{pos:e,buffer32:s}=this;this.finished=!0,this.buffer.subarray(e).fill(0),i.qv||(0,i.Fc)(s),this.compress(s,0,!0),i.qv||(0,i.Fc)(s);const h=(0,i.DH)(t);this.get().forEach(((t,e)=>h[e]=(0,i.c)(t)))}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const s=t.slice(0,e);return this.destroy(),s}_cloneInto(t){const{buffer:e,length:s,finished:n,destroyed:i,outputLen:h,pos:r}=this;return t||(t=new this.constructor({dkLen:h})),t.set(...this.get()),t.length=s,t.finished=n,t.destroyed=i,t.outputLen=h,t.buffer.set(e),t.pos=r,t}}var o=s(9271);const c=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),a=new Uint32Array(32);function d(t,e,s,n,i,h){const r=i[h],c=i[h+1];let d=a[2*t],l=a[2*t+1],f=a[2*e],u=a[2*e+1],b=a[2*s],y=a[2*s+1],p=a[2*n],g=a[2*n+1],v=o.Ay.add3L(d,f,r);l=o.Ay.add3H(v,l,u,c),d=0|v,({Dh:g,Dl:p}={Dh:g^l,Dl:p^d}),({Dh:g,Dl:p}={Dh:o.Ay.rotr32H(g,p),Dl:o.Ay.rotr32L(g,p)}),({h:y,l:b}=o.Ay.add(y,b,g,p)),({Bh:u,Bl:f}={Bh:u^y,Bl:f^b}),({Bh:u,Bl:f}={Bh:o.Ay.rotrSH(u,f,24),Bl:o.Ay.rotrSL(u,f,24)}),a[2*t]=d,a[2*t+1]=l,a[2*e]=f,a[2*e+1]=u,a[2*s]=b,a[2*s+1]=y,a[2*n]=p,a[2*n+1]=g}function l(t,e,s,n,i,h){const r=i[h],c=i[h+1];let d=a[2*t],l=a[2*t+1],f=a[2*e],u=a[2*e+1],b=a[2*s],y=a[2*s+1],p=a[2*n],g=a[2*n+1],v=o.Ay.add3L(d,f,r);l=o.Ay.add3H(v,l,u,c),d=0|v,({Dh:g,Dl:p}={Dh:g^l,Dl:p^d}),({Dh:g,Dl:p}={Dh:o.Ay.rotrSH(g,p,16),Dl:o.Ay.rotrSL(g,p,16)}),({h:y,l:b}=o.Ay.add(y,b,g,p)),({Bh:u,Bl:f}={Bh:u^y,Bl:f^b}),({Bh:u,Bl:f}={Bh:o.Ay.rotrBH(u,f,63),Bl:o.Ay.rotrBL(u,f,63)}),a[2*t]=d,a[2*t+1]=l,a[2*e]=f,a[2*e+1]=u,a[2*s]=b,a[2*s+1]=y,a[2*n]=p,a[2*n+1]=g}class f extends r{constructor(t={}){super(128,void 0===t.dkLen?64:t.dkLen,t,64,16,16),this.v0l=0|c[0],this.v0h=0|c[1],this.v1l=0|c[2],this.v1h=0|c[3],this.v2l=0|c[4],this.v2h=0|c[5],this.v3l=0|c[6],this.v3h=0|c[7],this.v4l=0|c[8],this.v4h=0|c[9],this.v5l=0|c[10],this.v5h=0|c[11],this.v6l=0|c[12],this.v6h=0|c[13],this.v7l=0|c[14],this.v7h=0|c[15];const e=t.key?t.key.length:0;if(this.v0l^=this.outputLen|e<<8|65536|1<<24,t.salt){const e=(0,i.DH)((0,i.ZJ)(t.salt));this.v4l^=(0,i.c)(e[0]),this.v4h^=(0,i.c)(e[1]),this.v5l^=(0,i.c)(e[2]),this.v5h^=(0,i.c)(e[3])}if(t.personalization){const e=(0,i.DH)((0,i.ZJ)(t.personalization));this.v6l^=(0,i.c)(e[0]),this.v6h^=(0,i.c)(e[1]),this.v7l^=(0,i.c)(e[2]),this.v7h^=(0,i.c)(e[3])}if(t.key){const e=new Uint8Array(this.blockLen);e.set((0,i.ZJ)(t.key)),this.update(e)}}get(){let{v0l:t,v0h:e,v1l:s,v1h:n,v2l:i,v2h:h,v3l:r,v3h:o,v4l:c,v4h:a,v5l:d,v5h:l,v6l:f,v6h:u,v7l:b,v7h:y}=this;return[t,e,s,n,i,h,r,o,c,a,d,l,f,u,b,y]}set(t,e,s,n,i,h,r,o,c,a,d,l,f,u,b,y){this.v0l=0|t,this.v0h=0|e,this.v1l=0|s,this.v1h=0|n,this.v2l=0|i,this.v2h=0|h,this.v3l=0|r,this.v3h=0|o,this.v4l=0|c,this.v4h=0|a,this.v5l=0|d,this.v5h=0|l,this.v6l=0|f,this.v6h=0|u,this.v7l=0|b,this.v7h=0|y}compress(t,e,s){this.get().forEach(((t,e)=>a[e]=t)),a.set(c,16);let{h:n,l:i}=o.Ay.fromBig(BigInt(this.length));a[24]=c[8]^i,a[25]=c[9]^n,s&&(a[28]=~a[28],a[29]=~a[29]);let r=0;const f=h;for(let s=0;s<12;s++)d(0,4,8,12,t,e+2*f[r++]),l(0,4,8,12,t,e+2*f[r++]),d(1,5,9,13,t,e+2*f[r++]),l(1,5,9,13,t,e+2*f[r++]),d(2,6,10,14,t,e+2*f[r++]),l(2,6,10,14,t,e+2*f[r++]),d(3,7,11,15,t,e+2*f[r++]),l(3,7,11,15,t,e+2*f[r++]),d(0,5,10,15,t,e+2*f[r++]),l(0,5,10,15,t,e+2*f[r++]),d(1,6,11,12,t,e+2*f[r++]),l(1,6,11,12,t,e+2*f[r++]),d(2,7,8,13,t,e+2*f[r++]),l(2,7,8,13,t,e+2*f[r++]),d(3,4,9,14,t,e+2*f[r++]),l(3,4,9,14,t,e+2*f[r++]);this.v0l^=a[0]^a[16],this.v0h^=a[1]^a[17],this.v1l^=a[2]^a[18],this.v1h^=a[3]^a[19],this.v2l^=a[4]^a[20],this.v2h^=a[5]^a[21],this.v3l^=a[6]^a[22],this.v3h^=a[7]^a[23],this.v4l^=a[8]^a[24],this.v4h^=a[9]^a[25],this.v5l^=a[10]^a[26],this.v5h^=a[11]^a[27],this.v6l^=a[12]^a[28],this.v6h^=a[13]^a[29],this.v7l^=a[14]^a[30],this.v7h^=a[15]^a[31],a.fill(0)}destroy(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const u=(0,i.t6)((t=>new f(t)))},7059:(t,e,s)=>{s.d(e,{kw:()=>a});var n=s(9190),i=s(1454),h=s(4976);var r=s(2341);function o(t){if("string"!=typeof t)throw new TypeError("invalid mnemonic type: "+typeof t);return t.normalize("NFKD")}const c=t=>o("mnemonic"+t);function a(t,e=""){return function(t,e,s){const{c:r,dkLen:o,DK:c,PRF:a,PRFSalt:d}=function(t,e,s,r){(0,n.sd)(t);const o=(0,h.tY)({dkLen:32,asyncTick:10},r),{c,dkLen:a,asyncTick:d}=o;if((0,n.Fe)(c),(0,n.Fe)(a),(0,n.Fe)(d),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=(0,h.ZJ)(e),f=(0,h.ZJ)(s),u=new Uint8Array(a),b=i.w.create(t,l),y=b._cloneInto().update(f);return{c,dkLen:a,asyncTick:d,DK:u,PRF:b,PRFSalt:y}}(t,e,s,{c:2048,dkLen:64});let l;const f=new Uint8Array(4),u=(0,h.O8)(f),b=new Uint8Array(a.outputLen);for(let t=1,e=0;e<o;t++,e+=a.outputLen){const s=c.subarray(e,e+a.outputLen);u.setInt32(0,t,!1),(l=d._cloneInto(l)).update(f).digestInto(b),s.set(b.subarray(0,s.length));for(let t=1;t<r;t++){a._cloneInto(l).update(b).digestInto(b);for(let t=0;t<s.length;t++)s[t]^=b[t]}}return function(t,e,s,n,i){return t.destroy(),e.destroy(),n&&n.destroy(),i.fill(0),s}(a,d,c,l,b)}(r.Zf,function(t){const e=o(t),s=e.split(" ");if(![12,15,18,21,24].includes(s.length))throw new Error("Invalid mnemonic");return{nfkd:e,words:s}}(t).nfkd,c(e))}},9190:(t,e,s)=>{function n(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function i(t,...e){if(!((s=t)instanceof Uint8Array||ArrayBuffer.isView(s)&&"Uint8Array"===s.constructor.name))throw new Error("Uint8Array expected");var s;if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function h(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(t.outputLen),n(t.blockLen)}function r(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function o(t,e){i(t);const s=e.outputLen;if(t.length<s)throw new Error("digestInto() expects output buffer of length at least "+s)}s.d(e,{CC:()=>r,DO:()=>i,Fe:()=>n,Ht:()=>o,sd:()=>h})},9271:(t,e,s)=>{s.d(e,{Ay:()=>r});const n=BigInt(2**32-1),i=BigInt(32);function h(t,e=!1){return e?{h:Number(t&n),l:Number(t>>i&n)}:{h:0|Number(t>>i&n),l:0|Number(t&n)}}const r={fromBig:h,split:function(t,e=!1){let s=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let i=0;i<t.length;i++){const{h:r,l:o}=h(t[i],e);[s[i],n[i]]=[r,o]}return[s,n]},toBig:(t,e)=>BigInt(t>>>0)<<i|BigInt(e>>>0),shrSH:(t,e,s)=>t>>>s,shrSL:(t,e,s)=>t<<32-s|e>>>s,rotrSH:(t,e,s)=>t>>>s|e<<32-s,rotrSL:(t,e,s)=>t<<32-s|e>>>s,rotrBH:(t,e,s)=>t<<64-s|e>>>s-32,rotrBL:(t,e,s)=>t>>>s-32|e<<64-s,rotr32H:(t,e)=>e,rotr32L:(t,e)=>t,rotlSH:(t,e,s)=>t<<s|e>>>32-s,rotlSL:(t,e,s)=>e<<s|t>>>32-s,rotlBH:(t,e,s)=>e<<s-32|t>>>64-s,rotlBL:(t,e,s)=>t<<s-32|e>>>64-s,add:function(t,e,s,n){const i=(e>>>0)+(n>>>0);return{h:t+s+(i/2**32|0)|0,l:0|i}},add3L:(t,e,s)=>(t>>>0)+(e>>>0)+(s>>>0),add3H:(t,e,s,n)=>e+s+n+(t/2**32|0)|0,add4L:(t,e,s,n)=>(t>>>0)+(e>>>0)+(s>>>0)+(n>>>0),add4H:(t,e,s,n,i)=>e+s+n+i+(t/2**32|0)|0,add5H:(t,e,s,n,i,h)=>e+s+n+i+h+(t/2**32|0)|0,add5L:(t,e,s,n,i)=>(t>>>0)+(e>>>0)+(s>>>0)+(n>>>0)+(i>>>0)}}}]);