functionTb(e,t,r,n){returnnew(r||(r=Promise))((function(i,a){functiono(e){try{c(n.next(e))}catch(e){a(e)}}functions(e){try{c(n.throw(e))}catch(e){a(e)}}functionc(e){vart;e.done?i(e.value):(t=e.value,tinstanceofr?t:newr((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))}"function"==typeofSuppressedError&&SuppressedError;classqb{constructor(){this.mutex=Promise.resolve()}lock(){lete=()=>{};returnthis.mutex=this.mutex.then((()=>newPromise(e))),newPromise((t=>{e=t}))}dispatch(e){returnTb(this,void0,void0,(function*(){constt=yieldthis.lock();try{returnyieldPromise.resolve(e())}finally{t()}}))}}varOb;constKb="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:r,Hb=null!==(Ob=Kb.Buffer)&&void0!==Ob?Ob:null,Nb=Kb.TextEncoder?newKb.TextEncoder:null;functionLb(e,t){return(15&e)+(e>>6|e>>3&8)<<4|(15&t)+(t>>6|t>>3&8)}functionGb(e,t){constr=t.length>>1;for(letn=0;n<r;n++){constr=n<<1;e[n]=Lb(t.charCodeAt(r),t.charCodeAt(r+1))}}constjb="a".charCodeAt(0)-10,zb="0".charCodeAt(0);functionWb(e,t,r){letn=0;for(leti=0;i<r;i++){letr=t[i]>>>4;e[n++]=r>9?r+jb:r+zb,r=15&t[i],e[n++]=r>9?r+jb:r+zb}returnString.fromCharCode.apply(null,e)}constZb=null!==Hb?e=>{if("string"==typeofe){constt=Hb.from(e,"utf8");returnnewUint8Array(t.buffer,t.byteOffset,t.length)}if(Hb.isBuffer(e))returnnewUint8Array(e.buffer,e.byteOffset,e.length);if(ArrayBuffer.isView(e))returnnewUint8Array(e.buffer,e.byteOffset,e.byteLength);thrownewError("Invalid data type!")}:e=>{if("string"==typeofe)returnNb.encode(e);if(ArrayBuffer.isView(e))returnnewUint8Array(e.buffer,e.byteOffset,e.byteLength);thrownewError("Invalid data type!")},Jb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vb=newUint8Array(256);for(lete=0;e<Jb.length;e++)Vb[Jb.charCodeAt(e)]=e;functionYb(e,t=!0){constr=e.length,n=r%3,i=[],a=r-n;for(lett=0;t<a;t+=3){constr=(e[t]<<16&16711680)+(e[t+1]<<8&65280)+(255&e[t+2]),n=Jb.charAt(r>>18&63)+Jb.charAt(r>>12&63)+Jb.charAt(r>>6&63)+Jb.charAt(63&r);i.push(n)}if(1===n){constn=e[r-1],a=Jb.charAt(n>>2),o=Jb.charAt(n<<4&63);i.push(`${a}${o}`),t&&i.push("==")}elseif(2===n){constn=(e[r-2]<<8)+e[r-1],a=Jb.charAt(n>>10),o=Jb.charAt(n>>4&63),s=Jb.charAt(n<<2&63);i.push(`${a}${o}${s}`),t&&i.push("=")}returni.join("")}function$b(e){lett=Math.floor(.75*e.length);constr=e.length;return"="===e[r-1]&&(t-=1,"="===e[r-2]&&(t-=1)),t}functionXb(e){constt=$b(e),r=e.length,n=newUint8Array(t);leti=0;for(lett=0;t<r;t+=4){constr=Vb[e.charCodeAt(t)],a=Vb[e.charCodeAt(t+1)],o=Vb[e.charCodeAt(t+2)],s=Vb[e.charCodeAt(t+3)];n[i]=r<<2|a>>4,i+=1,n[i]=(15&a)<<4|o>>2,i+=1,n[i]=(3&o)<<6|63&s,i+=1}returnn}constew=16384,tw=4,rw=newqb,nw=newMap;functioniw(e,t){returnTb(this,void0,void0,(function*(){letr=null,n=null,i=!1;if("undefined"==typeofWebAssembly)thrownewError("WebAssembly is not supported in this environment!");consta=()=>newDataView(r.exports.memory.buffer).getUint32(r.exports.STATE_SIZE,!0),o=rw.dispatch((()=>Tb(this,void0,void0,(function*(){if(!nw.has(e.name)){constt=Xb(e.data),r=WebAssembly.compile(t);nw.set(e.name,r)}constt=yieldnw.get(e.name);r=yieldWebAssembly.instantiate(t,{})})))),s=(e=null)=>{i=!0,r.exports.Hash_Init(e)},c=e=>{if(!i)thrownewError("update() called before init()");(e=>{lett=0;for(;t<e.length;){consti=e.subarray(t,t+ew);t+=i.length,n.set(i),r.exports.Hash_Update(i.length)}})(Zb(e))},u=newUint8Array(2*t),h=(e,a=null)=>{if(!i)thrownewError("digest() called before init()");returni=!1,r.exports.Hash_Final(a),"binary"===e?n.slice(0,t):Wb(u,n,t)},l=e=>"string"==typeofe?e.length<ew/4:e.byteLength<ew;letf=l;switch(e.name){case"argon2":case"scrypt":f=()=>!0;break;case"blake2b":case"blake2s":f=(e,t)=>t<=512&&l(e);break;case"blake3":f=(e,t)=>0===t&&l(e);break;case"xxhash64":case"xxhash3":case"xxhash128":f=()=>!1}returnyield(()=>Tb(this,void0,void0,(function*(){r||(yieldo);conste=r.exports.Hash_GetBuffer(),t=r.exports.memory.buffer;n=newUint8Array(t,e,ew)})))(),{getMemory:()=>n,writeMemory:(e,t