@layerzerolabs/hyperliquid-composer
Version:
LayerZero Labs reference EVM OmniChain Fungible Token (OFT) implementation for Hyperliquid
1 lines • 1.97 MB
JavaScript
import UEe,{createHash,randomBytes,createHmac,pbkdf2Sync}from'crypto';import*as xx from'node:crypto';import Vc from'fs';import Yd from'path';import qEe from'url';import Gye from'http';import zye from'https';import Iye from'util';import zc from'zlib';import ih,{Readable}from'stream';import {EventEmitter}from'events';import {AsyncLocalStorage,AsyncResource}from'node:async_hooks';import To from'node:process';import*as BK from'node:readline';import BK__default from'node:readline';import {stripVTControlCharacters}from'node:util';var tte=Object.create;var lp=Object.defineProperty;var rte=Object.getOwnPropertyDescriptor;var nte=Object.getOwnPropertyNames;var ite=Object.getPrototypeOf,ste=Object.prototype.hasOwnProperty;var Q9=t=>{throw TypeError(t)};var ote=(t,e,r)=>e in t?lp(t,e,{enumerable:true,configurable:true,writable:true,value:r}):t[e]=r;var se=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var ie=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bt=(t,e)=>{for(var r in e)lp(t,r,{get:e[r],enumerable:true});},eO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of nte(e))!ste.call(t,i)&&i!==r&&lp(t,i,{get:()=>e[i],enumerable:!(n=rte(e,i))||n.enumerable});return t};var We=(t,e,r)=>(r=t!=null?tte(ite(t)):{},eO(e||!t||!t.__esModule?lp(r,"default",{value:t,enumerable:true}):r,t)),sr=t=>eO(lp({},"__esModule",{value:true}),t);var be=(t,e,r)=>ote(t,typeof e!="symbol"?e+"":e,r),P6=(t,e,r)=>e.has(t)||Q9("Cannot "+r);var ne=(t,e,r)=>(P6(t,e,"read from private field"),r?r.call(t):e.get(t)),Te=(t,e,r)=>e.has(t)?Q9("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),pe=(t,e,r,n)=>(P6(t,e,"write to private field"),e.set(t,r),r),rt=(t,e,r)=>(P6(t,e,"access private method"),r);var F6=E((aO,B6)=>{(function(t,e){function r(P,h){if(!P)throw new Error(h||"Assertion failed")}function n(P,h){P.super_=h;var g=function(){};g.prototype=h.prototype,P.prototype=new g,P.prototype.constructor=P;}function i(P,h,g){if(i.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((h==="le"||h==="be")&&(g=h,h=10),this._init(P||0,h||10,g||"be"));}typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?s=window.Buffer:s=se("buffer").Buffer;}catch(P){}i.isBN=function(h){return h instanceof i?true:h!==null&&typeof h=="object"&&h.constructor.wordSize===i.wordSize&&Array.isArray(h.words)},i.max=function(h,g){return h.cmp(g)>0?h:g},i.min=function(h,g){return h.cmp(g)<0?h:g},i.prototype._init=function(h,g,T){if(typeof h=="number")return this._initNumber(h,g,T);if(typeof h=="object")return this._initArray(h,g,T);g==="hex"&&(g=16),r(g===(g|0)&&g>=2&&g<=36),h=h.toString().replace(/\s+/g,"");var A=0;h[0]==="-"&&(A++,this.negative=1),A<h.length&&(g===16?this._parseHex(h,A,T):(this._parseBase(h,g,A),T==="le"&&this._initArray(this.toArray(),g,T)));},i.prototype._initNumber=function(h,g,T){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),T==="le"&&this._initArray(this.toArray(),g,T);},i.prototype._initArray=function(h,g,T){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var D,w,C=0;if(T==="be")for(A=h.length-1,D=0;A>=0;A-=3)w=h[A]|h[A-1]<<8|h[A-2]<<16,this.words[D]|=w<<C&67108863,this.words[D+1]=w>>>26-C&67108863,C+=24,C>=26&&(C-=26,D++);else if(T==="le")for(A=0,D=0;A<h.length;A+=3)w=h[A]|h[A+1]<<8|h[A+2]<<16,this.words[D]|=w<<C&67108863,this.words[D+1]=w>>>26-C&67108863,C+=24,C>=26&&(C-=26,D++);return this._strip()};function o(P,h){var g=P.charCodeAt(h);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;r(false,"Invalid character in "+P);}function a(P,h,g){var T=o(P,g);return g-1>=h&&(T|=o(P,g-1)<<4),T}i.prototype._parseHex=function(h,g,T){this.length=Math.ceil((h.length-g)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var D=0,w=0,C;if(T==="be")for(A=h.length-1;A>=g;A-=2)C=a(h,g,A)<<D,this.words[w]|=C&67108863,D>=18?(D-=18,w+=1,this.words[w]|=C>>>26):D+=8;else {var S=h.length-g;for(A=S%2===0?g+1:g;A<h.length;A+=2)C=a(h,g,A)<<D,this.words[w]|=C&67108863,D>=18?(D-=18,w+=1,this.words[w]|=C>>>26):D+=8;}this._strip();};function c(P,h,g,T){for(var A=0,D=0,w=Math.min(P.length,g),C=h;C<w;C++){var S=P.charCodeAt(C)-48;A*=T,S>=49?D=S-49+10:S>=17?D=S-17+10:D=S,r(S>=0&&D<T,"Invalid character"),A+=D;}return A}i.prototype._parseBase=function(h,g,T){this.words=[0],this.length=1;for(var A=0,D=1;D<=67108863;D*=g)A++;A--,D=D/g|0;for(var w=h.length-T,C=w%A,S=Math.min(w,w-C)+T,b=0,O=T;O<S;O+=A)b=c(h,O,O+A,g),this.imuln(D),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(C!==0){var K=1;for(b=c(h,O,h.length,g),O=0;O<C;O++)K*=g;this.imuln(K),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);}this._strip();},i.prototype.copy=function(h){h.words=new Array(this.length);for(var g=0;g<this.length;g++)h.words[g]=this.words[g];h.length=this.length,h.negative=this.negative,h.red=this.red;};function u(P,h){P.words=h.words,P.length=h.length,P.negative=h.negative,P.red=h.red;}if(i.prototype._move=function(h){u(h,this);},i.prototype.clone=function(){var h=new i(null);return this.copy(h),h},i.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol!="undefined"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=f;}catch(P){i.prototype.inspect=f;}else i.prototype.inspect=f;function f(){return (this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(h,g){h=h||10,g=g|0||1;var T;if(h===16||h==="hex"){T="";for(var A=0,D=0,w=0;w<this.length;w++){var C=this.words[w],S=((C<<A|D)&16777215).toString(16);D=C>>>24-A&16777215,A+=2,A>=26&&(A-=26,w--),D!==0||w!==this.length-1?T=d[6-S.length]+S+T:T=S+T;}for(D!==0&&(T=D.toString(16)+T);T.length%g!==0;)T="0"+T;return this.negative!==0&&(T="-"+T),T}if(h===(h|0)&&h>=2&&h<=36){var b=m[h],O=p[h];T="";var K=this.clone();for(K.negative=0;!K.isZero();){var _=K.modrn(O).toString(h);K=K.idivn(O),K.isZero()?T=_+T:T=d[b-_.length]+_+T;}for(this.isZero()&&(T="0"+T);T.length%g!==0;)T="0"+T;return this.negative!==0&&(T="-"+T),T}r(false,"Base should be between 2 and 36");},i.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(false,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(h,g){return this.toArrayLike(s,h,g)}),i.prototype.toArray=function(h,g){return this.toArrayLike(Array,h,g)};var x=function(h,g){return h.allocUnsafe?h.allocUnsafe(g):new h(g)};i.prototype.toArrayLike=function(h,g,T){this._strip();var A=this.byteLength(),D=T||Math.max(1,A);r(A<=D,"byte array longer than desired length"),r(D>0,"Requested array length <= 0");var w=x(h,D),C=g==="le"?"LE":"BE";return this["_toArrayLike"+C](w,A),w},i.prototype._toArrayLikeLE=function(h,g){for(var T=0,A=0,D=0,w=0;D<this.length;D++){var C=this.words[D]<<w|A;h[T++]=C&255,T<h.length&&(h[T++]=C>>8&255),T<h.length&&(h[T++]=C>>16&255),w===6?(T<h.length&&(h[T++]=C>>24&255),A=0,w=0):(A=C>>>24,w+=2);}if(T<h.length)for(h[T++]=A;T<h.length;)h[T++]=0;},i.prototype._toArrayLikeBE=function(h,g){for(var T=h.length-1,A=0,D=0,w=0;D<this.length;D++){var C=this.words[D]<<w|A;h[T--]=C&255,T>=0&&(h[T--]=C>>8&255),T>=0&&(h[T--]=C>>16&255),w===6?(T>=0&&(h[T--]=C>>24&255),A=0,w=0):(A=C>>>24,w+=2);}if(T>=0)for(h[T--]=A;T>=0;)h[T--]=0;},Math.clz32?i.prototype._countBits=function(h){return 32-Math.clz32(h)}:i.prototype._countBits=function(h){var g=h,T=0;return g>=4096&&(T+=13,g>>>=13),g>=64&&(T+=7,g>>>=7),g>=8&&(T+=4,g>>>=4),g>=2&&(T+=2,g>>>=2),T+g},i.prototype._zeroBits=function(h){if(h===0)return 26;var g=h,T=0;return (g&8191)===0&&(T+=13,g>>>=13),(g&127)===0&&(T+=7,g>>>=7),(g&15)===0&&(T+=4,g>>>=4),(g&3)===0&&(T+=2,g>>>=2),(g&1)===0&&T++,T},i.prototype.bitLength=function(){var h=this.words[this.length-1],g=this._countBits(h);return (this.length-1)*26+g};function v(P){for(var h=new Array(P.bitLength()),g=0;g<h.length;g++){var T=g/26|0,A=g%26;h[g]=P.words[T]>>>A&1;}return h}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,g=0;g<this.length;g++){var T=this._zeroBits(this.words[g]);if(h+=T,T!==26)break}return h},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},i.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var g=0;g<h.length;g++)this.words[g]=this.words[g]|h.words[g];return this._strip()},i.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},i.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},i.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},i.prototype.iuand=function(h){var g;this.length>h.length?g=h:g=this;for(var T=0;T<g.length;T++)this.words[T]=this.words[T]&h.words[T];return this.length=g.length,this._strip()},i.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},i.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},i.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},i.prototype.iuxor=function(h){var g,T;this.length>h.length?(g=this,T=h):(g=h,T=this);for(var A=0;A<T.length;A++)this.words[A]=g.words[A]^T.words[A];if(this!==g)for(;A<g.length;A++)this.words[A]=g.words[A];return this.length=g.length,this._strip()},i.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},i.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},i.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},i.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var g=Math.ceil(h/26)|0,T=h%26;this._expand(g),T>0&&g--;for(var A=0;A<g;A++)this.words[A]=~this.words[A]&67108863;return T>0&&(this.words[A]=~this.words[A]&67108863>>26-T),this._strip()},i.prototype.notn=function(h){return this.clone().inotn(h)},i.prototype.setn=function(h,g){r(typeof h=="number"&&h>=0);var T=h/26|0,A=h%26;return this._expand(T+1),g?this.words[T]=this.words[T]|1<<A:this.words[T]=this.words[T]&~(1<<A),this._strip()},i.prototype.iadd=function(h){var g;if(this.negative!==0&&h.negative===0)return this.negative=0,g=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,g=this.isub(h),h.negative=1,g._normSign();var T,A;this.length>h.length?(T=this,A=h):(T=h,A=this);for(var D=0,w=0;w<A.length;w++)g=(T.words[w]|0)+(A.words[w]|0)+D,this.words[w]=g&67108863,D=g>>>26;for(;D!==0&&w<T.length;w++)g=(T.words[w]|0)+D,this.words[w]=g&67108863,D=g>>>26;if(this.length=T.length,D!==0)this.words[this.length]=D,this.length++;else if(T!==this)for(;w<T.length;w++)this.words[w]=T.words[w];return this},i.prototype.add=function(h){var g;return h.negative!==0&&this.negative===0?(h.negative=0,g=this.sub(h),h.negative^=1,g):h.negative===0&&this.negative!==0?(this.negative=0,g=h.sub(this),this.negative=1,g):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},i.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var g=this.iadd(h);return h.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var T=this.cmp(h);if(T===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,D;T>0?(A=this,D=h):(A=h,D=this);for(var w=0,C=0;C<D.length;C++)g=(A.words[C]|0)-(D.words[C]|0)+w,w=g>>26,this.words[C]=g&67108863;for(;w!==0&&C<A.length;C++)g=(A.words[C]|0)+w,w=g>>26,this.words[C]=g&67108863;if(w===0&&C<A.length&&A!==this)for(;C<A.length;C++)this.words[C]=A.words[C];return this.length=Math.max(this.length,C),A!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(h){return this.clone().isub(h)};function y(P,h,g){g.negative=h.negative^P.negative;var T=P.length+h.length|0;g.length=T,T=T-1|0;var A=P.words[0]|0,D=h.words[0]|0,w=A*D,C=w&67108863,S=w/67108864|0;g.words[0]=C;for(var b=1;b<T;b++){for(var O=S>>>26,K=S&67108863,_=Math.min(b,h.length-1),U=Math.max(0,b-P.length+1);U<=_;U++){var V=b-U|0;A=P.words[V]|0,D=h.words[U]|0,w=A*D+K,O+=w/67108864|0,K=w&67108863;}g.words[b]=K|0,S=O|0;}return S!==0?g.words[b]=S|0:g.length--,g._strip()}var N=function(h,g,T){var A=h.words,D=g.words,w=T.words,C=0,S,b,O,K=A[0]|0,_=K&8191,U=K>>>13,V=A[1]|0,$=V&8191,ee=V>>>13,xe=A[2]|0,fe=xe&8191,ae=xe>>>13,Ze=A[3]|0,he=Ze&8191,De=Ze>>>13,Ps=A[4]|0,At=Ps&8191,St=Ps>>>13,Tu=A[5]|0,Ot=Tu&8191,Dt=Tu>>>13,Nu=A[6]|0,Rt=Nu&8191,Mt=Nu>>>13,wu=A[7]|0,Ct=wu&8191,Pt=wu>>>13,Au=A[8]|0,It=Au&8191,Bt=Au>>>13,Su=A[9]|0,Ft=Su&8191,kt=Su>>>13,Ou=D[0]|0,Lt=Ou&8191,qt=Ou>>>13,Du=D[1]|0,Ut=Du&8191,jt=Du>>>13,Ru=D[2]|0,Vt=Ru&8191,Ht=Ru>>>13,Mu=D[3]|0,Gt=Mu&8191,zt=Mu>>>13,Cu=D[4]|0,Wt=Cu&8191,$t=Cu>>>13,Pu=D[5]|0,Kt=Pu&8191,Yt=Pu>>>13,Iu=D[6]|0,Jt=Iu&8191,Zt=Iu>>>13,Bu=D[7]|0,Xt=Bu&8191,Qt=Bu>>>13,Fu=D[8]|0,er=Fu&8191,tr=Fu>>>13,ku=D[9]|0,rr=ku&8191,nr=ku>>>13;T.negative=h.negative^g.negative,T.length=19,S=Math.imul(_,Lt),b=Math.imul(_,qt),b=b+Math.imul(U,Lt)|0,O=Math.imul(U,qt);var Ba=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,S=Math.imul($,Lt),b=Math.imul($,qt),b=b+Math.imul(ee,Lt)|0,O=Math.imul(ee,qt),S=S+Math.imul(_,Ut)|0,b=b+Math.imul(_,jt)|0,b=b+Math.imul(U,Ut)|0,O=O+Math.imul(U,jt)|0;var Fa=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(Fa>>>26)|0,Fa&=67108863,S=Math.imul(fe,Lt),b=Math.imul(fe,qt),b=b+Math.imul(ae,Lt)|0,O=Math.imul(ae,qt),S=S+Math.imul($,Ut)|0,b=b+Math.imul($,jt)|0,b=b+Math.imul(ee,Ut)|0,O=O+Math.imul(ee,jt)|0,S=S+Math.imul(_,Vt)|0,b=b+Math.imul(_,Ht)|0,b=b+Math.imul(U,Vt)|0,O=O+Math.imul(U,Ht)|0;var ka=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(ka>>>26)|0,ka&=67108863,S=Math.imul(he,Lt),b=Math.imul(he,qt),b=b+Math.imul(De,Lt)|0,O=Math.imul(De,qt),S=S+Math.imul(fe,Ut)|0,b=b+Math.imul(fe,jt)|0,b=b+Math.imul(ae,Ut)|0,O=O+Math.imul(ae,jt)|0,S=S+Math.imul($,Vt)|0,b=b+Math.imul($,Ht)|0,b=b+Math.imul(ee,Vt)|0,O=O+Math.imul(ee,Ht)|0,S=S+Math.imul(_,Gt)|0,b=b+Math.imul(_,zt)|0,b=b+Math.imul(U,Gt)|0,O=O+Math.imul(U,zt)|0;var La=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(La>>>26)|0,La&=67108863,S=Math.imul(At,Lt),b=Math.imul(At,qt),b=b+Math.imul(St,Lt)|0,O=Math.imul(St,qt),S=S+Math.imul(he,Ut)|0,b=b+Math.imul(he,jt)|0,b=b+Math.imul(De,Ut)|0,O=O+Math.imul(De,jt)|0,S=S+Math.imul(fe,Vt)|0,b=b+Math.imul(fe,Ht)|0,b=b+Math.imul(ae,Vt)|0,O=O+Math.imul(ae,Ht)|0,S=S+Math.imul($,Gt)|0,b=b+Math.imul($,zt)|0,b=b+Math.imul(ee,Gt)|0,O=O+Math.imul(ee,zt)|0,S=S+Math.imul(_,Wt)|0,b=b+Math.imul(_,$t)|0,b=b+Math.imul(U,Wt)|0,O=O+Math.imul(U,$t)|0;var qa=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(qa>>>26)|0,qa&=67108863,S=Math.imul(Ot,Lt),b=Math.imul(Ot,qt),b=b+Math.imul(Dt,Lt)|0,O=Math.imul(Dt,qt),S=S+Math.imul(At,Ut)|0,b=b+Math.imul(At,jt)|0,b=b+Math.imul(St,Ut)|0,O=O+Math.imul(St,jt)|0,S=S+Math.imul(he,Vt)|0,b=b+Math.imul(he,Ht)|0,b=b+Math.imul(De,Vt)|0,O=O+Math.imul(De,Ht)|0,S=S+Math.imul(fe,Gt)|0,b=b+Math.imul(fe,zt)|0,b=b+Math.imul(ae,Gt)|0,O=O+Math.imul(ae,zt)|0,S=S+Math.imul($,Wt)|0,b=b+Math.imul($,$t)|0,b=b+Math.imul(ee,Wt)|0,O=O+Math.imul(ee,$t)|0,S=S+Math.imul(_,Kt)|0,b=b+Math.imul(_,Yt)|0,b=b+Math.imul(U,Kt)|0,O=O+Math.imul(U,Yt)|0;var v6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(v6>>>26)|0,v6&=67108863,S=Math.imul(Rt,Lt),b=Math.imul(Rt,qt),b=b+Math.imul(Mt,Lt)|0,O=Math.imul(Mt,qt),S=S+Math.imul(Ot,Ut)|0,b=b+Math.imul(Ot,jt)|0,b=b+Math.imul(Dt,Ut)|0,O=O+Math.imul(Dt,jt)|0,S=S+Math.imul(At,Vt)|0,b=b+Math.imul(At,Ht)|0,b=b+Math.imul(St,Vt)|0,O=O+Math.imul(St,Ht)|0,S=S+Math.imul(he,Gt)|0,b=b+Math.imul(he,zt)|0,b=b+Math.imul(De,Gt)|0,O=O+Math.imul(De,zt)|0,S=S+Math.imul(fe,Wt)|0,b=b+Math.imul(fe,$t)|0,b=b+Math.imul(ae,Wt)|0,O=O+Math.imul(ae,$t)|0,S=S+Math.imul($,Kt)|0,b=b+Math.imul($,Yt)|0,b=b+Math.imul(ee,Kt)|0,O=O+Math.imul(ee,Yt)|0,S=S+Math.imul(_,Jt)|0,b=b+Math.imul(_,Zt)|0,b=b+Math.imul(U,Jt)|0,O=O+Math.imul(U,Zt)|0;var E6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(E6>>>26)|0,E6&=67108863,S=Math.imul(Ct,Lt),b=Math.imul(Ct,qt),b=b+Math.imul(Pt,Lt)|0,O=Math.imul(Pt,qt),S=S+Math.imul(Rt,Ut)|0,b=b+Math.imul(Rt,jt)|0,b=b+Math.imul(Mt,Ut)|0,O=O+Math.imul(Mt,jt)|0,S=S+Math.imul(Ot,Vt)|0,b=b+Math.imul(Ot,Ht)|0,b=b+Math.imul(Dt,Vt)|0,O=O+Math.imul(Dt,Ht)|0,S=S+Math.imul(At,Gt)|0,b=b+Math.imul(At,zt)|0,b=b+Math.imul(St,Gt)|0,O=O+Math.imul(St,zt)|0,S=S+Math.imul(he,Wt)|0,b=b+Math.imul(he,$t)|0,b=b+Math.imul(De,Wt)|0,O=O+Math.imul(De,$t)|0,S=S+Math.imul(fe,Kt)|0,b=b+Math.imul(fe,Yt)|0,b=b+Math.imul(ae,Kt)|0,O=O+Math.imul(ae,Yt)|0,S=S+Math.imul($,Jt)|0,b=b+Math.imul($,Zt)|0,b=b+Math.imul(ee,Jt)|0,O=O+Math.imul(ee,Zt)|0,S=S+Math.imul(_,Xt)|0,b=b+Math.imul(_,Qt)|0,b=b+Math.imul(U,Xt)|0,O=O+Math.imul(U,Qt)|0;var y6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(y6>>>26)|0,y6&=67108863,S=Math.imul(It,Lt),b=Math.imul(It,qt),b=b+Math.imul(Bt,Lt)|0,O=Math.imul(Bt,qt),S=S+Math.imul(Ct,Ut)|0,b=b+Math.imul(Ct,jt)|0,b=b+Math.imul(Pt,Ut)|0,O=O+Math.imul(Pt,jt)|0,S=S+Math.imul(Rt,Vt)|0,b=b+Math.imul(Rt,Ht)|0,b=b+Math.imul(Mt,Vt)|0,O=O+Math.imul(Mt,Ht)|0,S=S+Math.imul(Ot,Gt)|0,b=b+Math.imul(Ot,zt)|0,b=b+Math.imul(Dt,Gt)|0,O=O+Math.imul(Dt,zt)|0,S=S+Math.imul(At,Wt)|0,b=b+Math.imul(At,$t)|0,b=b+Math.imul(St,Wt)|0,O=O+Math.imul(St,$t)|0,S=S+Math.imul(he,Kt)|0,b=b+Math.imul(he,Yt)|0,b=b+Math.imul(De,Kt)|0,O=O+Math.imul(De,Yt)|0,S=S+Math.imul(fe,Jt)|0,b=b+Math.imul(fe,Zt)|0,b=b+Math.imul(ae,Jt)|0,O=O+Math.imul(ae,Zt)|0,S=S+Math.imul($,Xt)|0,b=b+Math.imul($,Qt)|0,b=b+Math.imul(ee,Xt)|0,O=O+Math.imul(ee,Qt)|0,S=S+Math.imul(_,er)|0,b=b+Math.imul(_,tr)|0,b=b+Math.imul(U,er)|0,O=O+Math.imul(U,tr)|0;var _6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(_6>>>26)|0,_6&=67108863,S=Math.imul(Ft,Lt),b=Math.imul(Ft,qt),b=b+Math.imul(kt,Lt)|0,O=Math.imul(kt,qt),S=S+Math.imul(It,Ut)|0,b=b+Math.imul(It,jt)|0,b=b+Math.imul(Bt,Ut)|0,O=O+Math.imul(Bt,jt)|0,S=S+Math.imul(Ct,Vt)|0,b=b+Math.imul(Ct,Ht)|0,b=b+Math.imul(Pt,Vt)|0,O=O+Math.imul(Pt,Ht)|0,S=S+Math.imul(Rt,Gt)|0,b=b+Math.imul(Rt,zt)|0,b=b+Math.imul(Mt,Gt)|0,O=O+Math.imul(Mt,zt)|0,S=S+Math.imul(Ot,Wt)|0,b=b+Math.imul(Ot,$t)|0,b=b+Math.imul(Dt,Wt)|0,O=O+Math.imul(Dt,$t)|0,S=S+Math.imul(At,Kt)|0,b=b+Math.imul(At,Yt)|0,b=b+Math.imul(St,Kt)|0,O=O+Math.imul(St,Yt)|0,S=S+Math.imul(he,Jt)|0,b=b+Math.imul(he,Zt)|0,b=b+Math.imul(De,Jt)|0,O=O+Math.imul(De,Zt)|0,S=S+Math.imul(fe,Xt)|0,b=b+Math.imul(fe,Qt)|0,b=b+Math.imul(ae,Xt)|0,O=O+Math.imul(ae,Qt)|0,S=S+Math.imul($,er)|0,b=b+Math.imul($,tr)|0,b=b+Math.imul(ee,er)|0,O=O+Math.imul(ee,tr)|0,S=S+Math.imul(_,rr)|0,b=b+Math.imul(_,nr)|0,b=b+Math.imul(U,rr)|0,O=O+Math.imul(U,nr)|0;var T6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(T6>>>26)|0,T6&=67108863,S=Math.imul(Ft,Ut),b=Math.imul(Ft,jt),b=b+Math.imul(kt,Ut)|0,O=Math.imul(kt,jt),S=S+Math.imul(It,Vt)|0,b=b+Math.imul(It,Ht)|0,b=b+Math.imul(Bt,Vt)|0,O=O+Math.imul(Bt,Ht)|0,S=S+Math.imul(Ct,Gt)|0,b=b+Math.imul(Ct,zt)|0,b=b+Math.imul(Pt,Gt)|0,O=O+Math.imul(Pt,zt)|0,S=S+Math.imul(Rt,Wt)|0,b=b+Math.imul(Rt,$t)|0,b=b+Math.imul(Mt,Wt)|0,O=O+Math.imul(Mt,$t)|0,S=S+Math.imul(Ot,Kt)|0,b=b+Math.imul(Ot,Yt)|0,b=b+Math.imul(Dt,Kt)|0,O=O+Math.imul(Dt,Yt)|0,S=S+Math.imul(At,Jt)|0,b=b+Math.imul(At,Zt)|0,b=b+Math.imul(St,Jt)|0,O=O+Math.imul(St,Zt)|0,S=S+Math.imul(he,Xt)|0,b=b+Math.imul(he,Qt)|0,b=b+Math.imul(De,Xt)|0,O=O+Math.imul(De,Qt)|0,S=S+Math.imul(fe,er)|0,b=b+Math.imul(fe,tr)|0,b=b+Math.imul(ae,er)|0,O=O+Math.imul(ae,tr)|0,S=S+Math.imul($,rr)|0,b=b+Math.imul($,nr)|0,b=b+Math.imul(ee,rr)|0,O=O+Math.imul(ee,nr)|0;var N6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(N6>>>26)|0,N6&=67108863,S=Math.imul(Ft,Vt),b=Math.imul(Ft,Ht),b=b+Math.imul(kt,Vt)|0,O=Math.imul(kt,Ht),S=S+Math.imul(It,Gt)|0,b=b+Math.imul(It,zt)|0,b=b+Math.imul(Bt,Gt)|0,O=O+Math.imul(Bt,zt)|0,S=S+Math.imul(Ct,Wt)|0,b=b+Math.imul(Ct,$t)|0,b=b+Math.imul(Pt,Wt)|0,O=O+Math.imul(Pt,$t)|0,S=S+Math.imul(Rt,Kt)|0,b=b+Math.imul(Rt,Yt)|0,b=b+Math.imul(Mt,Kt)|0,O=O+Math.imul(Mt,Yt)|0,S=S+Math.imul(Ot,Jt)|0,b=b+Math.imul(Ot,Zt)|0,b=b+Math.imul(Dt,Jt)|0,O=O+Math.imul(Dt,Zt)|0,S=S+Math.imul(At,Xt)|0,b=b+Math.imul(At,Qt)|0,b=b+Math.imul(St,Xt)|0,O=O+Math.imul(St,Qt)|0,S=S+Math.imul(he,er)|0,b=b+Math.imul(he,tr)|0,b=b+Math.imul(De,er)|0,O=O+Math.imul(De,tr)|0,S=S+Math.imul(fe,rr)|0,b=b+Math.imul(fe,nr)|0,b=b+Math.imul(ae,rr)|0,O=O+Math.imul(ae,nr)|0;var w6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(w6>>>26)|0,w6&=67108863,S=Math.imul(Ft,Gt),b=Math.imul(Ft,zt),b=b+Math.imul(kt,Gt)|0,O=Math.imul(kt,zt),S=S+Math.imul(It,Wt)|0,b=b+Math.imul(It,$t)|0,b=b+Math.imul(Bt,Wt)|0,O=O+Math.imul(Bt,$t)|0,S=S+Math.imul(Ct,Kt)|0,b=b+Math.imul(Ct,Yt)|0,b=b+Math.imul(Pt,Kt)|0,O=O+Math.imul(Pt,Yt)|0,S=S+Math.imul(Rt,Jt)|0,b=b+Math.imul(Rt,Zt)|0,b=b+Math.imul(Mt,Jt)|0,O=O+Math.imul(Mt,Zt)|0,S=S+Math.imul(Ot,Xt)|0,b=b+Math.imul(Ot,Qt)|0,b=b+Math.imul(Dt,Xt)|0,O=O+Math.imul(Dt,Qt)|0,S=S+Math.imul(At,er)|0,b=b+Math.imul(At,tr)|0,b=b+Math.imul(St,er)|0,O=O+Math.imul(St,tr)|0,S=S+Math.imul(he,rr)|0,b=b+Math.imul(he,nr)|0,b=b+Math.imul(De,rr)|0,O=O+Math.imul(De,nr)|0;var A6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(A6>>>26)|0,A6&=67108863,S=Math.imul(Ft,Wt),b=Math.imul(Ft,$t),b=b+Math.imul(kt,Wt)|0,O=Math.imul(kt,$t),S=S+Math.imul(It,Kt)|0,b=b+Math.imul(It,Yt)|0,b=b+Math.imul(Bt,Kt)|0,O=O+Math.imul(Bt,Yt)|0,S=S+Math.imul(Ct,Jt)|0,b=b+Math.imul(Ct,Zt)|0,b=b+Math.imul(Pt,Jt)|0,O=O+Math.imul(Pt,Zt)|0,S=S+Math.imul(Rt,Xt)|0,b=b+Math.imul(Rt,Qt)|0,b=b+Math.imul(Mt,Xt)|0,O=O+Math.imul(Mt,Qt)|0,S=S+Math.imul(Ot,er)|0,b=b+Math.imul(Ot,tr)|0,b=b+Math.imul(Dt,er)|0,O=O+Math.imul(Dt,tr)|0,S=S+Math.imul(At,rr)|0,b=b+Math.imul(At,nr)|0,b=b+Math.imul(St,rr)|0,O=O+Math.imul(St,nr)|0;var S6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(S6>>>26)|0,S6&=67108863,S=Math.imul(Ft,Kt),b=Math.imul(Ft,Yt),b=b+Math.imul(kt,Kt)|0,O=Math.imul(kt,Yt),S=S+Math.imul(It,Jt)|0,b=b+Math.imul(It,Zt)|0,b=b+Math.imul(Bt,Jt)|0,O=O+Math.imul(Bt,Zt)|0,S=S+Math.imul(Ct,Xt)|0,b=b+Math.imul(Ct,Qt)|0,b=b+Math.imul(Pt,Xt)|0,O=O+Math.imul(Pt,Qt)|0,S=S+Math.imul(Rt,er)|0,b=b+Math.imul(Rt,tr)|0,b=b+Math.imul(Mt,er)|0,O=O+Math.imul(Mt,tr)|0,S=S+Math.imul(Ot,rr)|0,b=b+Math.imul(Ot,nr)|0,b=b+Math.imul(Dt,rr)|0,O=O+Math.imul(Dt,nr)|0;var O6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(O6>>>26)|0,O6&=67108863,S=Math.imul(Ft,Jt),b=Math.imul(Ft,Zt),b=b+Math.imul(kt,Jt)|0,O=Math.imul(kt,Zt),S=S+Math.imul(It,Xt)|0,b=b+Math.imul(It,Qt)|0,b=b+Math.imul(Bt,Xt)|0,O=O+Math.imul(Bt,Qt)|0,S=S+Math.imul(Ct,er)|0,b=b+Math.imul(Ct,tr)|0,b=b+Math.imul(Pt,er)|0,O=O+Math.imul(Pt,tr)|0,S=S+Math.imul(Rt,rr)|0,b=b+Math.imul(Rt,nr)|0,b=b+Math.imul(Mt,rr)|0,O=O+Math.imul(Mt,nr)|0;var D6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(D6>>>26)|0,D6&=67108863,S=Math.imul(Ft,Xt),b=Math.imul(Ft,Qt),b=b+Math.imul(kt,Xt)|0,O=Math.imul(kt,Qt),S=S+Math.imul(It,er)|0,b=b+Math.imul(It,tr)|0,b=b+Math.imul(Bt,er)|0,O=O+Math.imul(Bt,tr)|0,S=S+Math.imul(Ct,rr)|0,b=b+Math.imul(Ct,nr)|0,b=b+Math.imul(Pt,rr)|0,O=O+Math.imul(Pt,nr)|0;var R6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(R6>>>26)|0,R6&=67108863,S=Math.imul(Ft,er),b=Math.imul(Ft,tr),b=b+Math.imul(kt,er)|0,O=Math.imul(kt,tr),S=S+Math.imul(It,rr)|0,b=b+Math.imul(It,nr)|0,b=b+Math.imul(Bt,rr)|0,O=O+Math.imul(Bt,nr)|0;var M6=(C+S|0)+((b&8191)<<13)|0;C=(O+(b>>>13)|0)+(M6>>>26)|0,M6&=67108863,S=Math.imul(Ft,rr),b=Math.imul(Ft,nr),b=b+Math.imul(kt,rr)|0,O=Math.imul(kt,nr);var C6=(C+S|0)+((b&8191)<<13)|0;return C=(O+(b>>>13)|0)+(C6>>>26)|0,C6&=67108863,w[0]=Ba,w[1]=Fa,w[2]=ka,w[3]=La,w[4]=qa,w[5]=v6,w[6]=E6,w[7]=y6,w[8]=_6,w[9]=T6,w[10]=N6,w[11]=w6,w[12]=A6,w[13]=S6,w[14]=O6,w[15]=D6,w[16]=R6,w[17]=M6,w[18]=C6,C!==0&&(w[19]=C,T.length++),T};Math.imul||(N=y);function M(P,h,g){g.negative=h.negative^P.negative,g.length=P.length+h.length;for(var T=0,A=0,D=0;D<g.length-1;D++){var w=A;A=0;for(var C=T&67108863,S=Math.min(D,h.length-1),b=Math.max(0,D-P.length+1);b<=S;b++){var O=D-b,K=P.words[O]|0,_=h.words[b]|0,U=K*_,V=U&67108863;w=w+(U/67108864|0)|0,V=V+C|0,C=V&67108863,w=w+(V>>>26)|0,A+=w>>>26,w&=67108863;}g.words[D]=C,T=w,w=A;}return T!==0?g.words[D]=T:g.length--,g._strip()}function I(P,h,g){return M(P,h,g)}i.prototype.mulTo=function(h,g){var T,A=this.length+h.length;return this.length===10&&h.length===10?T=N(this,h,g):A<63?T=y(this,h,g):A<1024?T=M(this,h,g):T=I(this,h,g),T};i.prototype.mul=function(h){var g=new i(null);return g.words=new Array(this.length+h.length),this.mulTo(h,g)},i.prototype.mulf=function(h){var g=new i(null);return g.words=new Array(this.length+h.length),I(this,h,g)},i.prototype.imul=function(h){return this.clone().mulTo(h,this)},i.prototype.imuln=function(h){var g=h<0;g&&(h=-h),r(typeof h=="number"),r(h<67108864);for(var T=0,A=0;A<this.length;A++){var D=(this.words[A]|0)*h,w=(D&67108863)+(T&67108863);T>>=26,T+=D/67108864|0,T+=w>>>26,this.words[A]=w&67108863;}return T!==0&&(this.words[A]=T,this.length++),g?this.ineg():this},i.prototype.muln=function(h){return this.clone().imuln(h)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(h){var g=v(h);if(g.length===0)return new i(1);for(var T=this,A=0;A<g.length&&g[A]===0;A++,T=T.sqr());if(++A<g.length)for(var D=T.sqr();A<g.length;A++,D=D.sqr())g[A]!==0&&(T=T.mul(D));return T},i.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var g=h%26,T=(h-g)/26,A=67108863>>>26-g<<26-g,D;if(g!==0){var w=0;for(D=0;D<this.length;D++){var C=this.words[D]&A,S=(this.words[D]|0)-C<<g;this.words[D]=S|w,w=C>>>26-g;}w&&(this.words[D]=w,this.length++);}if(T!==0){for(D=this.length-1;D>=0;D--)this.words[D+T]=this.words[D];for(D=0;D<T;D++)this.words[D]=0;this.length+=T;}return this._strip()},i.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},i.prototype.iushrn=function(h,g,T){r(typeof h=="number"&&h>=0);var A;g?A=(g-g%26)/26:A=0;var D=h%26,w=Math.min((h-D)/26,this.length),C=67108863^67108863>>>D<<D,S=T;if(A-=w,A=Math.max(0,A),S){for(var b=0;b<w;b++)S.words[b]=this.words[b];S.length=w;}if(w!==0)if(this.length>w)for(this.length-=w,b=0;b<this.length;b++)this.words[b]=this.words[b+w];else this.words[0]=0,this.length=1;var O=0;for(b=this.length-1;b>=0&&(O!==0||b>=A);b--){var K=this.words[b]|0;this.words[b]=O<<26-D|K>>>D,O=K&C;}return S&&O!==0&&(S.words[S.length++]=O),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(h,g,T){return r(this.negative===0),this.iushrn(h,g,T)},i.prototype.shln=function(h){return this.clone().ishln(h)},i.prototype.ushln=function(h){return this.clone().iushln(h)},i.prototype.shrn=function(h){return this.clone().ishrn(h)},i.prototype.ushrn=function(h){return this.clone().iushrn(h)},i.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,T=(h-g)/26,A=1<<g;if(this.length<=T)return false;var D=this.words[T];return !!(D&A)},i.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,T=(h-g)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=T)return this;if(g!==0&&T++,this.length=Math.min(T,this.length),g!==0){var A=67108863^67108863>>>g<<g;this.words[this.length-1]&=A;}return this._strip()},i.prototype.maskn=function(h){return this.clone().imaskn(h)},i.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<=h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},i.prototype._iaddn=function(h){this.words[0]+=h;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},i.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this._strip()},i.prototype.addn=function(h){return this.clone().iaddn(h)},i.prototype.subn=function(h){return this.clone().isubn(h)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(h,g,T){var A=h.length+T,D;this._expand(A);var w,C=0;for(D=0;D<h.length;D++){w=(this.words[D+T]|0)+C;var S=(h.words[D]|0)*g;w-=S&67108863,C=(w>>26)-(S/67108864|0),this.words[D+T]=w&67108863;}for(;D<this.length-T;D++)w=(this.words[D+T]|0)+C,C=w>>26,this.words[D+T]=w&67108863;if(C===0)return this._strip();for(r(C===-1),C=0,D=0;D<this.length;D++)w=-(this.words[D]|0)+C,C=w>>26,this.words[D]=w&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(h,g){var T=this.length-h.length,A=this.clone(),D=h,w=D.words[D.length-1]|0,C=this._countBits(w);T=26-C,T!==0&&(D=D.ushln(T),A.iushln(T),w=D.words[D.length-1]|0);var S=A.length-D.length,b;if(g!=="mod"){b=new i(null),b.length=S+1,b.words=new Array(b.length);for(var O=0;O<b.length;O++)b.words[O]=0;}var K=A.clone()._ishlnsubmul(D,1,S);K.negative===0&&(A=K,b&&(b.words[S]=1));for(var _=S-1;_>=0;_--){var U=(A.words[D.length+_]|0)*67108864+(A.words[D.length+_-1]|0);for(U=Math.min(U/w|0,67108863),A._ishlnsubmul(D,U,_);A.negative!==0;)U--,A.negative=0,A._ishlnsubmul(D,1,_),A.isZero()||(A.negative^=1);b&&(b.words[_]=U);}return b&&b._strip(),A._strip(),g!=="div"&&T!==0&&A.iushrn(T),{div:b||null,mod:A}},i.prototype.divmod=function(h,g,T){if(r(!h.isZero()),this.isZero())return {div:new i(0),mod:new i(0)};var A,D,w;return this.negative!==0&&h.negative===0?(w=this.neg().divmod(h,g),g!=="mod"&&(A=w.div.neg()),g!=="div"&&(D=w.mod.neg(),T&&D.negative!==0&&D.iadd(h)),{div:A,mod:D}):this.negative===0&&h.negative!==0?(w=this.divmod(h.neg(),g),g!=="mod"&&(A=w.div.neg()),{div:A,mod:w.mod}):(this.negative&h.negative)!==0?(w=this.neg().divmod(h.neg(),g),g!=="div"&&(D=w.mod.neg(),T&&D.negative!==0&&D.isub(h)),{div:w.div,mod:D}):h.length>this.length||this.cmp(h)<0?{div:new i(0),mod:this}:h.length===1?g==="div"?{div:this.divn(h.words[0]),mod:null}:g==="mod"?{div:null,mod:new i(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new i(this.modrn(h.words[0]))}:this._wordDiv(h,g)},i.prototype.div=function(h){return this.divmod(h,"div",false).div},i.prototype.mod=function(h){return this.divmod(h,"mod",false).mod},i.prototype.umod=function(h){return this.divmod(h,"mod",true).mod},i.prototype.divRound=function(h){var g=this.divmod(h);if(g.mod.isZero())return g.div;var T=g.div.negative!==0?g.mod.isub(h):g.mod,A=h.ushrn(1),D=h.andln(1),w=T.cmp(A);return w<0||D===1&&w===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},i.prototype.modrn=function(h){var g=h<0;g&&(h=-h),r(h<=67108863);for(var T=(1<<26)%h,A=0,D=this.length-1;D>=0;D--)A=(T*A+(this.words[D]|0))%h;return g?-A:A},i.prototype.modn=function(h){return this.modrn(h)},i.prototype.idivn=function(h){var g=h<0;g&&(h=-h),r(h<=67108863);for(var T=0,A=this.length-1;A>=0;A--){var D=(this.words[A]|0)+T*67108864;this.words[A]=D/h|0,T=D%h;}return this._strip(),g?this.ineg():this},i.prototype.divn=function(h){return this.clone().idivn(h)},i.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var g=this,T=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var A=new i(1),D=new i(0),w=new i(0),C=new i(1),S=0;g.isEven()&&T.isEven();)g.iushrn(1),T.iushrn(1),++S;for(var b=T.clone(),O=g.clone();!g.isZero();){for(var K=0,_=1;(g.words[0]&_)===0&&K<26;++K,_<<=1);if(K>0)for(g.iushrn(K);K-- >0;)(A.isOdd()||D.isOdd())&&(A.iadd(b),D.isub(O)),A.iushrn(1),D.iushrn(1);for(var U=0,V=1;(T.words[0]&V)===0&&U<26;++U,V<<=1);if(U>0)for(T.iushrn(U);U-- >0;)(w.isOdd()||C.isOdd())&&(w.iadd(b),C.isub(O)),w.iushrn(1),C.iushrn(1);g.cmp(T)>=0?(g.isub(T),A.isub(w),D.isub(C)):(T.isub(g),w.isub(A),C.isub(D));}return {a:w,b:C,gcd:T.iushln(S)}},i.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var g=this,T=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var A=new i(1),D=new i(0),w=T.clone();g.cmpn(1)>0&&T.cmpn(1)>0;){for(var C=0,S=1;(g.words[0]&S)===0&&C<26;++C,S<<=1);if(C>0)for(g.iushrn(C);C-- >0;)A.isOdd()&&A.iadd(w),A.iushrn(1);for(var b=0,O=1;(T.words[0]&O)===0&&b<26;++b,O<<=1);if(b>0)for(T.iushrn(b);b-- >0;)D.isOdd()&&D.iadd(w),D.iushrn(1);g.cmp(T)>=0?(g.isub(T),A.isub(D)):(T.isub(g),D.isub(A));}var K;return g.cmpn(1)===0?K=A:K=D,K.cmpn(0)<0&&K.iadd(h),K},i.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var g=this.clone(),T=h.clone();g.negative=0,T.negative=0;for(var A=0;g.isEven()&&T.isEven();A++)g.iushrn(1),T.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;T.isEven();)T.iushrn(1);var D=g.cmp(T);if(D<0){var w=g;g=T,T=w;}else if(D===0||T.cmpn(1)===0)break;g.isub(T);}while(true);return T.iushln(A)},i.prototype.invm=function(h){return this.egcd(h).a.umod(h)},i.prototype.isEven=function(){return (this.words[0]&1)===0},i.prototype.isOdd=function(){return (this.words[0]&1)===1},i.prototype.andln=function(h){return this.words[0]&h},i.prototype.bincn=function(h){r(typeof h=="number");var g=h%26,T=(h-g)/26,A=1<<g;if(this.length<=T)return this._expand(T+1),this.words[T]|=A,this;for(var D=A,w=T;D!==0&&w<this.length;w++){var C=this.words[w]|0;C+=D,D=C>>>26,C&=67108863,this.words[w]=C;}return D!==0&&(this.words[w]=D,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(h){var g=h<0;if(this.negative!==0&&!g)return -1;if(this.negative===0&&g)return 1;this._strip();var T;if(this.length>1)T=1;else {g&&(h=-h),r(h<=67108863,"Number is too big");var A=this.words[0]|0;T=A===h?0:A<h?-1:1;}return this.negative!==0?-T|0:T},i.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return -1;if(this.negative===0&&h.negative!==0)return 1;var g=this.ucmp(h);return this.negative!==0?-g|0:g},i.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return -1;for(var g=0,T=this.length-1;T>=0;T--){var A=this.words[T]|0,D=h.words[T]|0;if(A!==D){A<D?g=-1:A>D&&(g=1);break}}return g},i.prototype.gtn=function(h){return this.cmpn(h)===1},i.prototype.gt=function(h){return this.cmp(h)===1},i.prototype.gten=function(h){return this.cmpn(h)>=0},i.prototype.gte=function(h){return this.cmp(h)>=0},i.prototype.ltn=function(h){return this.cmpn(h)===-1},i.prototype.lt=function(h){return this.cmp(h)===-1},i.prototype.lten=function(h){return this.cmpn(h)<=0},i.prototype.lte=function(h){return this.cmp(h)<=0},i.prototype.eqn=function(h){return this.cmpn(h)===0},i.prototype.eq=function(h){return this.cmp(h)===0},i.red=function(h){return new X(h)},i.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(h){return this.red=h,this},i.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},i.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},i.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},i.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},i.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},i.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},i.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},i.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var B={k256:null,p224:null,p192:null,p25519:null};function k(P,h){this.name=P,this.p=new i(h,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp();}k.prototype._tmp=function(){var h=new i(null);return h.words=new Array(Math.ceil(this.n/13)),h},k.prototype.ireduce=function(h){var g=h,T;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),T=g.bitLength();while(T>this.n);var A=T<this.n?-1:g.ucmp(this.p);return A===0?(g.words[0]=0,g.length=1):A>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},k.prototype.split=function(h,g){h.iushrn(this.n,0,g);},k.prototype.imulK=function(h){return h.imul(this.k)};function z(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f");}n(z,k),z.prototype.split=function(h,g){for(var T=4194303,A=Math.min(h.length,9),D=0;D<A;D++)g.words[D]=h.words[D];if(g.length=A,h.length<=9){h.words[0]=0,h.length=1;return}var w=h.words[9];for(g.words[g.length++]=w&T,D=10;D<h.length;D++){var C=h.words[D]|0;h.words[D-10]=(C&T)<<4|w>>>22,w=C;}w>>>=22,h.words[D-10]=w,w===0&&h.length>10?h.length-=10:h.length-=9;},z.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var g=0,T=0;T<h.length;T++){var A=h.words[T]|0;g+=A*977,h.words[T]=g&67108863,g=A*64+(g/67108864|0);}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function H(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001");}n(H,k);function Y(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff");}n(Y,k);function re(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed");}n(re,k),re.prototype.imulK=function(h){for(var g=0,T=0;T<h.length;T++){var A=(h.words[T]|0)*19+g,D=A&67108863;A>>>=26,h.words[T]=D,g=A;}return g!==0&&(h.words[h.length++]=g),h},i._prime=function(h){if(B[h])return B[h];var g;if(h==="k256")g=new z;else if(h==="p224")g=new H;else if(h==="p192")g=new Y;else if(h==="p25519")g=new re;else throw new Error("Unknown prime "+h);return B[h]=g,g};function X(P){if(typeof P=="string"){var h=i._prime(P);this.m=h.p,this.prime=h;}else r(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null;}X.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers");},X.prototype._verify2=function(h,g){r((h.negative|g.negative)===0,"red works only with positives"),r(h.red&&h.red===g.red,"red works only with red numbers");},X.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(u(h,h.umod(this.m)._forceRed(this)),h)},X.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},X.prototype.add=function(h,g){this._verify2(h,g);var T=h.add(g);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},X.prototype.iadd=function(h,g){this._verify2(h,g);var T=h.iadd(g);return T.cmp(this.m)>=0&&T.isub(this.m),T},X.prototype.sub=function(h,g){this._verify2(h,g);var T=h.sub(g);return T.cmpn(0)<0&&T.iadd(this.m),T._forceRed(this)},X.prototype.isub=function(h,g){this._verify2(h,g);var T=h.isub(g);return T.cmpn(0)<0&&T.iadd(this.m),T},X.prototype.shl=function(h,g){return this._verify1(h),this.imod(h.ushln(g))},X.prototype.imul=function(h,g){return this._verify2(h,g),this.imod(h.imul(g))},X.prototype.mul=function(h,g){return this._verify2(h,g),this.imod(h.mul(g))},X.prototype.isqr=function(h){return this.imul(h,h.clone())},X.prototype.sqr=function(h){return this.mul(h,h)},X.prototype.sqrt=function(h){if(h.isZero())return h.clone();var g=this.m.andln(3);if(r(g%2===1),g===3){var T=this.m.add(new i(1)).iushrn(2);return this.pow(h,T)}for(var A=this.m.subn(1),D=0;!A.isZero()&&A.andln(1)===0;)D++,A.iushrn(1);r(!A.isZero());var w=new i(1).toRed(this),C=w.redNeg(),S=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,S).cmp(C)!==0;)b.redIAdd(C);for(var O=this.pow(b,A),K=this.pow(h,A.addn(1).iushrn(1)),_=this.pow(h,A),U=D;_.cmp(w)!==0;){for(var V=_,$=0;V.cmp(w)!==0;$++)V=V.redSqr();r($<U);var ee=this.pow(O,new i(1).iushln(U-$-1));K=K.redMul(ee),O=ee.redSqr(),_=_.redMul(O),U=$;}return K},X.prototype.invm=function(h){var g=h._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},X.prototype.pow=function(h,g){if(g.isZero())return new i(1).toRed(this);if(g.cmpn(1)===0)return h.clone();var T=4,A=new Array(1<<T);A[0]=new i(1).toRed(this),A[1]=h;for(var D=2;D<A.length;D++)A[D]=this.mul(A[D-1],h);var w=A[0],C=0,S=0,b=g.bitLength()%26;for(b===0&&(b=26),D=g.length-1;D>=0;D--){for(var O=g.words[D],K=b-1;K>=0;K--){var _=O>>K&1;if(w!==A[0]&&(w=this.sqr(w)),_===0&&C===0){S=0;continue}C<<=1,C|=_,S++,!(S!==T&&(D!==0||K!==0))&&(w=this.mul(w,A[C]),S=0,C=0);}b=26;}return w},X.prototype.convertTo=function(h){var g=h.umod(this.m);return g===h?g.clone():g},X.prototype.convertFrom=function(h){var g=h.clone();return g.red=null,g},i.mont=function(h){return new ue(h)};function ue(P){X.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv);}n(ue,X),ue.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},ue.prototype.convertFrom=function(h){var g=this.imod(h.mul(this.rinv));return g.red=null,g},ue.prototype.imul=function(h,g){if(h.isZero()||g.isZero())return h.words[0]=0,h.length=1,h;var T=h.imul(g),A=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=T.isub(A).iushrn(this.shift),w=D;return D.cmp(this.m)>=0?w=D.isub(this.m):D.cmpn(0)<0&&(w=D.iadd(this.m)),w._forceRed(this)},ue.prototype.mul=function(h,g){if(h.isZero()||g.isZero())return new i(0)._forceRed(this);var T=h.mul(g),A=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=T.isub(A).iushrn(this.shift),w=D;return D.cmp(this.m)>=0?w=D.isub(this.m):D.cmpn(0)<0&&(w=D.iadd(this.m)),w._forceRed(this)},ue.prototype.invm=function(h){var g=this.imod(h._invmp(this.m).mul(this.r2));return g._forceRed(this)};})(typeof B6=="undefined"||B6,aO);});var cO,uO=ie(()=>{cO="logger/5.7.0";});var xO={};bt(xO,{ErrorCode:()=>wn,LogLevel:()=>_b,Logger:()=>F});function _te(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch(r){t.push(e);}}),t.length)throw new Error("missing "+t.join(", "));if("\xE9".normalize("NFD")!=="e\u0301")throw new Error("broken implementation")}catch(t){return t.message}return null}var lO,fO,yb,dO,k6,hO,_b,wn,pO,F,Se=ie(()=>{uO();lO=false,fO=false,yb={debug:1,default:2,info:2,warning:3,error:4,off:5},dO=yb.default,k6=null;hO=_te();(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF";})(_b||(_b={}));(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED";})(wn||(wn={}));pO="0123456789abcdef",F=class t{constructor(e){Object.defineProperty(this,"version",{enumerable:true,value:e,writable:false});}_log(e,r){let n=e.toLowerCase();yb[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(dO>yb[n])&&console.log.apply(console,r);}debug(...e){this._log(t.levels.DEBUG,e);}info(...e){this._log(t.levels.INFO,e);}warn(...e){this._log(t.levels.WARNING,e);}makeError(e,r,n){if(fO)return this.makeError("censored error",r,{});r||(r=t.errors.UNKNOWN_ERROR),n||(n={});let i=[];Object.keys(n).forEach(c=>{let u=n[c];try{if(u instanceof Uint8Array){let f="";for(let d=0;d<u.length;d++)f+=pO[u[d]>>4],f+=pO[u[d]&15];i.push(c+"=Uint8Array(0x"+f+")");}else i.push(c+"="+JSON.stringify(u));}catch(f){i.push(c+"="+JSON.stringify(n[c].toString()));}}),i.push(`code=${r}`),i.push(`version=${this.version}`);let s=e,o="";switch(r){case wn.NUMERIC_FAULT:{o="NUMERIC_FAULT";let c=e;switch(c){case "overflow":case "underflow":case "division-by-zero":o+="-"+c;break;case "negative-power":case "negative-width":o+="-unsupported";break;case "unbound-bitwise-result":o+="-unbound-result";break}break}case wn.CALL_EXCEPTION:case wn.INSUFFICIENT_FUNDS:case wn.MISSING_NEW:case wn.NONCE_EXPIRED:case wn.REPLACEMENT_UNDERPRICED:case wn.TRANSACTION_REPLACED:case wn.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),i.length&&(e+=" ("+i.join(", ")+")");let a=new Error(e);return a.reason=s,a.code=r,Object.keys(n).forEach(function(c){a[c]=n[c];}),a}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,i){e||this.throwError(r,n,i);}assertArgument(e,r,n,i){e||this.throwArgumentError(r,n,i);}checkNormalize(e){hO&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:hO});}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}));}checkArgumentCount(e,r,n){n?n=": "+n:n="",e<r&&this.throwError("missing argument"+n,t.errors.MISSING_ARGUMENT,{count:e,expectedCount:r}),e>r&&this.throwError("too many arguments"+n,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r});}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name});}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name});}static globalLogger(){return k6||(k6=new t(cO)),k6}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),lO){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"});}fO=!!e,lO=!!r;}static setLogLevel(e){let r=yb[e.toLowerCase()];if(r==null){t.globalLogger().warn("invalid log level - "+e);return}dO=r;}static from(e){return new t(e)}};F.errors=wn;F.levels=_b;});var mO,bO=ie(()=>{mO="bytes/5.7.0";});var EO={};bt(EO,{arrayify:()=>J,concat:()=>L