varr=n(34),o=n(35),i=n(36);functions(){returnc.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiona(t,e){if(s()<e)thrownewRangeError("Invalid typed array length");returnc.TYPED_ARRAY_SUPPORT?(t=newUint8Array(e)).__proto__=c.prototype:(null===t&&(t=newc(e)),t.length=e),t}functionc(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||thisinstanceofc))returnnewc(t,e,n);if("number"==typeoft){if("string"==typeofe)thrownewError("If encoding is specified then the first argument must be a string");returnf(this,t)}returnu(this,t,e,n)}functionu(t,e,n,r){if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&einstanceofArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))thrownewRangeError("'length' is out of bounds");e=void0===n&&void0===r?newUint8Array(e):void0===r?newUint8Array(e,n):newUint8Array(e,n,r);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=p(t,e);returnt}(t,e,n,r):"string"==typeofe?function(t,e,n){"string"==typeofn&&""!==n||(n="utf8");if(!c.isEncoding(n))thrownewTypeError('"encoding" must be a valid string encoding');varr=0|d(e,n),o=(t=a(t,r)).write(e,n);o!==r&&(t=t.slice(0,o));returnt}(t,e,n):function(t,e){if(c.isBuffer(e)){varn=0|l(e.length);return0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)return"number"!=typeofe.length||(r=e.length)!=r?a(t,0):p(t,e);if("Buffer"===e.type&&i(e.data))returnp(t,e.data)}varr;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}functionh(t){if("number"!=typeoft)thrownewTypeError('"size" argument must be a number');if(t<0)thrownewRangeError('"size" argument must not be negative')}functionf(t,e){if(h(e),t=a(t,e<0?0:0|l(e)),!c.TYPED_ARRAY_SUPPORT)for(varn=0;n<e;++n)t[n]=0;returnt}functionp(t,e){varn=e.length<0?0:0|l(e.length);t=a(t,n);for(varr=0;r<n;r+=1)t[r]=255&e[r];returnt}functionl(t){if(t>=s())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return0|t}functiond(t,e){if(c.isBuffer(t))returnt.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(t)||tinstanceofArrayBuffer))returnt.byteLength;"string"!=typeoft&&(t=""+t);varn=t.length;if(0===n)return0;for(varr=!1;;)switch(e){case"ascii":case"latin1":case"binary":returnn;case"utf8":case"utf-8":casevoid0:returnM(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*n;case"hex":returnn>>>1;case"base64":returnq(t).length;default:if(r)returnM(t).length;e=(""+e).toLowerCase(),r=!0}}functiony(t,e,n){varr=!1;if((void0===e||e<0)&&(e=0),e>this.length)return"";if((void0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return_(this,e,n);case"utf8":case"utf-8":returnB(this,e,n);case"ascii":returnS(this,e,n);case"latin1":case"binary":returnR(this,e,n);case"base64":returnx(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnT(this,e,n);default:if(r)thrownewTypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}functiong(t,e,n){varr=t[e];t[e]=t[n],t[n]=r}functionm(t,e,n,r,o){if(0===t.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:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}elseif(n<0){if(!o)return-1;n=0}if("string"==typeofe&&(e=c.from(e,r)),c.isBuffer(e))return0===e.length?-1:v(t,e,n,r,o);if("number"==typeofe)returne&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,o);thrownewTypeError("val must be string, number or Buffer")}functionv(t,e,n,r,o){vari,s=1,a=t.length,c=e.length;if(void0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs