consto=n(526),r=n(251),i="function"==typeofSymbol&&"function"==typeofSymbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=s,e.IS=50;consta=2147483647;functionc(t){if(t>a)thrownewRangeError('The value "'+t+'" is invalid for option "size"');conste=newUint8Array(t);returnObject.setPrototypeOf(e,s.prototype),e}functions(t,e,n){if("number"==typeoft){if("string"==typeofe)thrownewTypeError('The "string" argument must be of type string. Received type number');returnf(t)}returnl(t,e,n)}functionl(t,e,n){if("string"==typeoft)returnfunction(t,e){"string"==typeofe&&""!==e||(e="utf8");if(!s.isEncoding(e))thrownewTypeError("Unknown encoding: "+e);constn=0|m(t,e);leto=c(n);constr=o.write(t,e);r!==n&&(o=o.slice(0,r));returno}(t,e);if(ArrayBuffer.isView(t))returnfunction(t){if(J(t,Uint8Array)){conste=newUint8Array(t);returnd(e.buffer,e.byteOffset,e.byteLength)}returnp(t)}(t);if(null==t)thrownewTypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeoft);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer))returnd(t,e,n);if("undefined"!=typeofSharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))returnd(t,e,n);if("number"==typeoft)thrownewTypeError('The "value" argument must not be of type number. Received type number');consto=t.valueOf&&t.valueOf();if(null!=o&&o!==t)returns.from(o,e,n);constr=function(t){if(s.isBuffer(t)){conste=0|h(t.length),n=c(e);return0===n.length||t.copy(n,0,0,e),n}if(void0!==t.length)return"number"!=typeoft.length||X(t.length)?c(0):p(t);if("Buffer"===t.type&&Array.isArray(t.data))returnp(t.data)}(t);if(r)returnr;if("undefined"!=typeofSymbol&&null!=Symbol.toPrimitive&&"function"==typeoft[Symbol.toPrimitive])returns.from(t[Symbol.toPrimitive]("string"),e,n);thrownewTypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeoft)}functionu(t){if("number"!=typeoft)thrownewTypeError('"size" argument must be of type number');if(t<0)thrownewRangeError('The value "'+t+'" is invalid for option "size"')}functionf(t){returnu(t),c(t<0?0:0|h(t))}functionp(t){conste=t.length<0?0:0|h(t.length),n=c(e);for(leto=0;o<e;o+=1)n[o]=255&t[o];returnn}functiond(t,e,n){if(e<0||t.byteLength<e)thrownewRangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))thrownewRangeError('"length" is outside of buffer bounds');leto;returno=void0===e&&void0===n?newUint8Array(t):void0===n?newUint8Array(t,e):newUint8Array(t,e,n),Object.setPrototypeOf(o,s.prototype),o}functionh(t){if(t>=a)thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return0|t}functionm(t,e){if(s.isBuffer(t))returnt.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))returnt.byteLength;if("string"!=typeoft)thrownewTypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeoft);constn=t.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return0;letr=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":returnn;case"utf8":case"utf-8":returnq(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*n;case"hex":returnn>>>1;case"base64":returnG(t).length;default:if(r)returno?-1:q(t).length;e=(""+e).toLowerCase(),r=!0}}functiony(t,e,n){leto=!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":returnS(this,e,n);case"utf8":case"utf-8":returnB(this,e,n);case"ascii":returnx(this,e,n);case"latin1":case"binary":returnN(this,e,n);case"base64":returnC(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnP(this,e,n);default:if(o)thrownewTypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}functiong(t,e,n){consto=t[e];t[e]=t[n],t[n]=o}functionb(t,e,n,o,r){if(0===t.length)return-1;if("string"==typeofn?(o=n,n=0):n>2147483647?n=214748