varr=n(416),o=n(417),a=n(418);functioni(){returnu.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functionc(e,t){if(i()<t)thrownewRangeError("Invalid typed array length");returnu.TYPED_ARRAY_SUPPORT?(e=newUint8Array(t)).__proto__=u.prototype:(null===e&&(e=newu(t)),e.length=t),e}functionu(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||thisinstanceofu))returnnewu(e,t,n);if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returnp(this,e)}returns(this,e,t,n)}functions(e,t,n,r){if("number"==typeoft)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)thrownewRangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))thrownewRangeError("'length' is out of bounds");t=void0===n&&void0===r?newUint8Array(t):void0===r?newUint8Array(t,n):newUint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t);returne}(e,t,n,r):"string"==typeoft?function(e,t,n){"string"==typeofn&&""!==n||(n="utf8");if(!u.isEncoding(n))thrownewTypeError('"encoding" must be a valid string encoding');varr=0|h(t,n),o=(e=c(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));returne}(e,t,n):function(e,t){if(u.isBuffer(t)){varn=0|d(t.length);return0===(e=c(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeofArrayBuffer&&t.bufferinstanceofArrayBuffer||"length"int)return"number"!=typeoft.length||(r=t.length)!=r?c(e,0):f(e,t);if("Buffer"===t.type&&a(t.data))returnf(e,t.data)}varr;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}functionl(e){if("number"!=typeofe)thrownewTypeError('"size" argument must be a number');if(e<0)thrownewRangeError('"size" argument must not be negative')}functionp(e,t){if(l(t),e=c(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(varn=0;n<t;++n)e[n]=0;returne}functionf(e,t){varn=t.length<0?0:0|d(t.length);e=c(e,n);for(varr=0;r<n;r+=1)e[r]=255&t[r];returne}functiond(e){if(e>=i())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return0|e}functionh(e,t){if(u.isBuffer(e))returne.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(e)||einstanceofArrayBuffer))returne.byteLength;"string"!=typeofe&&(e=""+e);varn=e.length;if(0===n)return0;for(varr=!1;;)switch(t){case"ascii":case"latin1":case"binary":returnn;case"utf8":case"utf-8":casevoid0:returnF(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*n;case"hex":returnn>>>1;case"base64":returnz(e).length;default:if(r)returnF(e).length;t=(""+t).toLowerCase(),r=!0}}functionm(e,t,n){varr=!1;if((void0===t||t<0)&&(t=0),t>this.length)return"";if((void0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":returnI(this,t,n);case"utf8":case"utf-8":returnO(this,t,n);case"ascii":returnA(this,t,n);case"latin1":case"binary":returnk(this,t,n);case"base64":return_(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnT(this,t,n);default:if(r)thrownewTypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}functionv(e,t,n){varr=e[t];e[t]=e[n],e[n]=r}functiong(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeofn?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}elseif(n<0){if(!o)return-1;n=0}if("string"==typeoft&&(t=u.from(t,r)),u.isBuffer(t))return0===t.length?-1:y(e,t,n,r,o);if("number"==typeoft)returnt&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);thrownewTypeError("val must be string, number or Buffer")}functiony(e,t,n,r,o){vara,i=1,c=e.length,u=t.length;if(void0!==r&&("ucs2"===(r=String(r).toLowerCase())