next
Version:
The React Framework
1 lines • 26.9 kB
JavaScript
module.exports=(()=>{var r={550:(r,t)=>{"use strict";t.byteLength=byteLength;t.toByteArray=toByteArray;t.fromByteArray=fromByteArray;var e=[];var f=[];var i=typeof Uint8Array!=="undefined"?Uint8Array:Array;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var u=0,a=n.length;u<a;++u){e[u]=n[u];f[n.charCodeAt(u)]=u}f["-".charCodeAt(0)]=62;f["_".charCodeAt(0)]=63;function getLens(r){var t=r.length;if(t%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var e=r.indexOf("=");if(e===-1)e=t;var f=e===t?0:4-e%4;return[e,f]}function byteLength(r){var t=getLens(r);var e=t[0];var f=t[1];return(e+f)*3/4-f}function _byteLength(r,t,e){return(t+e)*3/4-e}function toByteArray(r){var t;var e=getLens(r);var n=e[0];var u=e[1];var a=new i(_byteLength(r,n,u));var o=0;var h=u>0?n-4:n;var s;for(s=0;s<h;s+=4){t=f[r.charCodeAt(s)]<<18|f[r.charCodeAt(s+1)]<<12|f[r.charCodeAt(s+2)]<<6|f[r.charCodeAt(s+3)];a[o++]=t>>16&255;a[o++]=t>>8&255;a[o++]=t&255}if(u===2){t=f[r.charCodeAt(s)]<<2|f[r.charCodeAt(s+1)]>>4;a[o++]=t&255}if(u===1){t=f[r.charCodeAt(s)]<<10|f[r.charCodeAt(s+1)]<<4|f[r.charCodeAt(s+2)]>>2;a[o++]=t>>8&255;a[o++]=t&255}return a}function tripletToBase64(r){return e[r>>18&63]+e[r>>12&63]+e[r>>6&63]+e[r&63]}function encodeChunk(r,t,e){var f;var i=[];for(var n=t;n<e;n+=3){f=(r[n]<<16&16711680)+(r[n+1]<<8&65280)+(r[n+2]&255);i.push(tripletToBase64(f))}return i.join("")}function fromByteArray(r){var t;var f=r.length;var i=f%3;var n=[];var u=16383;for(var a=0,o=f-i;a<o;a+=u){n.push(encodeChunk(r,a,a+u>o?o:a+u))}if(i===1){t=r[f-1];n.push(e[t>>2]+e[t<<4&63]+"==")}else if(i===2){t=(r[f-2]<<8)+r[f-1];n.push(e[t>>10]+e[t>>4&63]+e[t<<2&63]+"=")}return n.join("")}},348:(r,t)=>{t.read=function(r,t,e,f,i){var n,u;var a=i*8-f-1;var o=(1<<a)-1;var h=o>>1;var s=-7;var c=e?i-1:0;var p=e?-1:1;var l=r[t+c];c+=p;n=l&(1<<-s)-1;l>>=-s;s+=a;for(;s>0;n=n*256+r[t+c],c+=p,s-=8){}u=n&(1<<-s)-1;n>>=-s;s+=f;for(;s>0;u=u*256+r[t+c],c+=p,s-=8){}if(n===0){n=1-h}else if(n===o){return u?NaN:(l?-1:1)*Infinity}else{u=u+Math.pow(2,f);n=n-h}return(l?-1:1)*u*Math.pow(2,n-f)};t.write=function(r,t,e,f,i,n){var u,a,o;var h=n*8-i-1;var s=(1<<h)-1;var c=s>>1;var p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var l=f?0:n-1;var B=f?1:-1;var w=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){a=isNaN(t)?1:0;u=s}else{u=Math.floor(Math.log(t)/Math.LN2);if(t*(o=Math.pow(2,-u))<1){u--;o*=2}if(u+c>=1){t+=p/o}else{t+=p*Math.pow(2,1-c)}if(t*o>=2){u++;o/=2}if(u+c>=s){a=0;u=s}else if(u+c>=1){a=(t*o-1)*Math.pow(2,i);u=u+c}else{a=t*Math.pow(2,c-1)*Math.pow(2,i);u=0}}for(;i>=8;r[e+l]=a&255,l+=B,a/=256,i-=8){}u=u<<i|a;h+=i;for(;h>0;r[e+l]=u&255,l+=B,u/=256,h-=8){}r[e+l-B]|=w*128}},352:r=>{var t={}.toString;r.exports=Array.isArray||function(r){return t.call(r)=="[object Array]"}},979:(r,t,e)=>{"use strict";var f=e(550);var i=e(348);var n=e(352);t.Buffer=Buffer;t.SlowBuffer=SlowBuffer;t.INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=global.TYPED_ARRAY_SUPPORT!==undefined?global.TYPED_ARRAY_SUPPORT:typedArraySupport();t.kMaxLength=kMaxLength();function typedArraySupport(){try{var r=new Uint8Array(1);r.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return r.foo()===42&&typeof r.subarray==="function"&&r.subarray(1,1).byteLength===0}catch(r){return false}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(r,t){if(kMaxLength()<t){throw new RangeError("Invalid typed array length")}if(Buffer.TYPED_ARRAY_SUPPORT){r=new Uint8Array(t);r.__proto__=Buffer.prototype}else{if(r===null){r=new Buffer(t)}r.length=t}return r}function Buffer(r,t,e){if(!Buffer.TYPED_ARRAY_SUPPORT&&!(this instanceof Buffer)){return new Buffer(r,t,e)}if(typeof r==="number"){if(typeof t==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return allocUnsafe(this,r)}return from(this,r,t,e)}Buffer.poolSize=8192;Buffer._augment=function(r){r.__proto__=Buffer.prototype;return r};function from(r,t,e,f){if(typeof t==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&t instanceof ArrayBuffer){return fromArrayBuffer(r,t,e,f)}if(typeof t==="string"){return fromString(r,t,e)}return fromObject(r,t)}Buffer.from=function(r,t,e){return from(null,r,t,e)};if(Buffer.TYPED_ARRAY_SUPPORT){Buffer.prototype.__proto__=Uint8Array.prototype;Buffer.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&Buffer[Symbol.species]===Buffer){Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:true})}}function assertSize(r){if(typeof r!=="number"){throw new TypeError('"size" argument must be a number')}else if(r<0){throw new RangeError('"size" argument must not be negative')}}function alloc(r,t,e,f){assertSize(t);if(t<=0){return createBuffer(r,t)}if(e!==undefined){return typeof f==="string"?createBuffer(r,t).fill(e,f):createBuffer(r,t).fill(e)}return createBuffer(r,t)}Buffer.alloc=function(r,t,e){return alloc(null,r,t,e)};function allocUnsafe(r,t){assertSize(t);r=createBuffer(r,t<0?0:checked(t)|0);if(!Buffer.TYPED_ARRAY_SUPPORT){for(var e=0;e<t;++e){r[e]=0}}return r}Buffer.allocUnsafe=function(r){return allocUnsafe(null,r)};Buffer.allocUnsafeSlow=function(r){return allocUnsafe(null,r)};function fromString(r,t,e){if(typeof e!=="string"||e===""){e="utf8"}if(!Buffer.isEncoding(e)){throw new TypeError('"encoding" must be a valid string encoding')}var f=byteLength(t,e)|0;r=createBuffer(r,f);var i=r.write(t,e);if(i!==f){r=r.slice(0,i)}return r}function fromArrayLike(r,t){var e=t.length<0?0:checked(t.length)|0;r=createBuffer(r,e);for(var f=0;f<e;f+=1){r[f]=t[f]&255}return r}function fromArrayBuffer(r,t,e,f){t.byteLength;if(e<0||t.byteLength<e){throw new RangeError("'offset' is out of bounds")}if(t.byteLength<e+(f||0)){throw new RangeError("'length' is out of bounds")}if(e===undefined&&f===undefined){t=new Uint8Array(t)}else if(f===undefined){t=new Uint8Array(t,e)}else{t=new Uint8Array(t,e,f)}if(Buffer.TYPED_ARRAY_SUPPORT){r=t;r.__proto__=Buffer.prototype}else{r=fromArrayLike(r,t)}return r}function fromObject(r,t){if(Buffer.isBuffer(t)){var e=checked(t.length)|0;r=createBuffer(r,e);if(r.length===0){return r}t.copy(r,0,0,e);return r}if(t){if(typeof ArrayBuffer!=="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t){if(typeof t.length!=="number"||isnan(t.length)){return createBuffer(r,0)}return fromArrayLike(r,t)}if(t.type==="Buffer"&&n(t.data)){return fromArrayLike(r,t.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function checked(r){if(r>=kMaxLength()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+kMaxLength().toString(16)+" bytes")}return r|0}function SlowBuffer(r){if(+r!=r){r=0}return Buffer.alloc(+r)}Buffer.isBuffer=function isBuffer(r){return!!(r!=null&&r._isBuffer)};Buffer.compare=function compare(r,t){if(!Buffer.isBuffer(r)||!Buffer.isBuffer(t)){throw new TypeError("Arguments must be Buffers")}if(r===t)return 0;var e=r.length;var f=t.length;for(var i=0,n=Math.min(e,f);i<n;++i){if(r[i]!==t[i]){e=r[i];f=t[i];break}}if(e<f)return-1;if(f<e)return 1;return 0};Buffer.isEncoding=function isEncoding(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};Buffer.concat=function concat(r,t){if(!n(r)){throw new TypeError('"list" argument must be an Array of Buffers')}if(r.length===0){return Buffer.alloc(0)}var e;if(t===undefined){t=0;for(e=0;e<r.length;++e){t+=r[e].length}}var f=Buffer.allocUnsafe(t);var i=0;for(e=0;e<r.length;++e){var u=r[e];if(!Buffer.isBuffer(u)){throw new TypeError('"list" argument must be an Array of Buffers')}u.copy(f,i);i+=u.length}return f};function byteLength(r,t){if(Buffer.isBuffer(r)){return r.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer)){return r.byteLength}if(typeof r!=="string"){r=""+r}var e=r.length;if(e===0)return 0;var f=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case undefined:return utf8ToBytes(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return base64ToBytes(r).length;default:if(f)return utf8ToBytes(r).length;t=(""+t).toLowerCase();f=true}}}Buffer.byteLength=byteLength;function slowToString(r,t,e){var f=false;if(t===undefined||t<0){t=0}if(t>this.length){return""}if(e===undefined||e>this.length){e=this.length}if(e<=0){return""}e>>>=0;t>>>=0;if(e<=t){return""}if(!r)r="utf8";while(true){switch(r){case"hex":return hexSlice(this,t,e);case"utf8":case"utf-8":return utf8Slice(this,t,e);case"ascii":return asciiSlice(this,t,e);case"latin1":case"binary":return latin1Slice(this,t,e);case"base64":return base64Slice(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,e);default:if(f)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase();f=true}}}Buffer.prototype._isBuffer=true;function swap(r,t,e){var f=r[t];r[t]=r[e];r[e]=f}Buffer.prototype.swap16=function swap16(){var r=this.length;if(r%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var t=0;t<r;t+=2){swap(this,t,t+1)}return this};Buffer.prototype.swap32=function swap32(){var r=this.length;if(r%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var t=0;t<r;t+=4){swap(this,t,t+3);swap(this,t+1,t+2)}return this};Buffer.prototype.swap64=function swap64(){var r=this.length;if(r%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var t=0;t<r;t+=8){swap(this,t,t+7);swap(this,t+1,t+6);swap(this,t+2,t+5);swap(this,t+3,t+4)}return this};Buffer.prototype.toString=function toString(){var r=this.length|0;if(r===0)return"";if(arguments.length===0)return utf8Slice(this,0,r);return slowToString.apply(this,arguments)};Buffer.prototype.equals=function equals(r){if(!Buffer.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(this===r)return true;return Buffer.compare(this,r)===0};Buffer.prototype.inspect=function inspect(){var r="";var e=t.INSPECT_MAX_BYTES;if(this.length>0){r=this.toString("hex",0,e).match(/.{2}/g).join(" ");if(this.length>e)r+=" ... "}return"<Buffer "+r+">"};Buffer.prototype.compare=function compare(r,t,e,f,i){if(!Buffer.isBuffer(r)){throw new TypeError("Argument must be a Buffer")}if(t===undefined){t=0}if(e===undefined){e=r?r.length:0}if(f===undefined){f=0}if(i===undefined){i=this.length}if(t<0||e>r.length||f<0||i>this.length){throw new RangeError("out of range index")}if(f>=i&&t>=e){return 0}if(f>=i){return-1}if(t>=e){return 1}t>>>=0;e>>>=0;f>>>=0;i>>>=0;if(this===r)return 0;var n=i-f;var u=e-t;var a=Math.min(n,u);var o=this.slice(f,i);var h=r.slice(t,e);for(var s=0;s<a;++s){if(o[s]!==h[s]){n=o[s];u=h[s];break}}if(n<u)return-1;if(u<n)return 1;return 0};function bidirectionalIndexOf(r,t,e,f,i){if(r.length===0)return-1;if(typeof e==="string"){f=e;e=0}else if(e>2147483647){e=2147483647}else if(e<-2147483648){e=-2147483648}e=+e;if(isNaN(e)){e=i?0:r.length-1}if(e<0)e=r.length+e;if(e>=r.length){if(i)return-1;else e=r.length-1}else if(e<0){if(i)e=0;else return-1}if(typeof t==="string"){t=Buffer.from(t,f)}if(Buffer.isBuffer(t)){if(t.length===0){return-1}return arrayIndexOf(r,t,e,f,i)}else if(typeof t==="number"){t=t&255;if(Buffer.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(i){return Uint8Array.prototype.indexOf.call(r,t,e)}else{return Uint8Array.prototype.lastIndexOf.call(r,t,e)}}return arrayIndexOf(r,[t],e,f,i)}throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(r,t,e,f,i){var n=1;var u=r.length;var a=t.length;if(f!==undefined){f=String(f).toLowerCase();if(f==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le"){if(r.length<2||t.length<2){return-1}n=2;u/=2;a/=2;e/=2}}function read(r,t){if(n===1){return r[t]}else{return r.readUInt16BE(t*n)}}var o;if(i){var h=-1;for(o=e;o<u;o++){if(read(r,o)===read(t,h===-1?0:o-h)){if(h===-1)h=o;if(o-h+1===a)return h*n}else{if(h!==-1)o-=o-h;h=-1}}}else{if(e+a>u)e=u-a;for(o=e;o>=0;o--){var s=true;for(var c=0;c<a;c++){if(read(r,o+c)!==read(t,c)){s=false;break}}if(s)return o}}return-1}Buffer.prototype.includes=function includes(r,t,e){return this.indexOf(r,t,e)!==-1};Buffer.prototype.indexOf=function indexOf(r,t,e){return bidirectionalIndexOf(this,r,t,e,true)};Buffer.prototype.lastIndexOf=function lastIndexOf(r,t,e){return bidirectionalIndexOf(this,r,t,e,false)};function hexWrite(r,t,e,f){e=Number(e)||0;var i=r.length-e;if(!f){f=i}else{f=Number(f);if(f>i){f=i}}var n=t.length;if(n%2!==0)throw new TypeError("Invalid hex string");if(f>n/2){f=n/2}for(var u=0;u<f;++u){var a=parseInt(t.substr(u*2,2),16);if(isNaN(a))return u;r[e+u]=a}return u}function utf8Write(r,t,e,f){return blitBuffer(utf8ToBytes(t,r.length-e),r,e,f)}function asciiWrite(r,t,e,f){return blitBuffer(asciiToBytes(t),r,e,f)}function latin1Write(r,t,e,f){return asciiWrite(r,t,e,f)}function base64Write(r,t,e,f){return blitBuffer(base64ToBytes(t),r,e,f)}function ucs2Write(r,t,e,f){return blitBuffer(utf16leToBytes(t,r.length-e),r,e,f)}Buffer.prototype.write=function write(r,t,e,f){if(t===undefined){f="utf8";e=this.length;t=0}else if(e===undefined&&typeof t==="string"){f=t;e=this.length;t=0}else if(isFinite(t)){t=t|0;if(isFinite(e)){e=e|0;if(f===undefined)f="utf8"}else{f=e;e=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var i=this.length-t;if(e===undefined||e>i)e=i;if(r.length>0&&(e<0||t<0)||t>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!f)f="utf8";var n=false;for(;;){switch(f){case"hex":return hexWrite(this,r,t,e);case"utf8":case"utf-8":return utf8Write(this,r,t,e);case"ascii":return asciiWrite(this,r,t,e);case"latin1":case"binary":return latin1Write(this,r,t,e);case"base64":return base64Write(this,r,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,r,t,e);default:if(n)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase();n=true}}};Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(r,t,e){if(t===0&&e===r.length){return f.fromByteArray(r)}else{return f.fromByteArray(r.slice(t,e))}}function utf8Slice(r,t,e){e=Math.min(r.length,e);var f=[];var i=t;while(i<e){var n=r[i];var u=null;var a=n>239?4:n>223?3:n>191?2:1;if(i+a<=e){var o,h,s,c;switch(a){case 1:if(n<128){u=n}break;case 2:o=r[i+1];if((o&192)===128){c=(n&31)<<6|o&63;if(c>127){u=c}}break;case 3:o=r[i+1];h=r[i+2];if((o&192)===128&&(h&192)===128){c=(n&15)<<12|(o&63)<<6|h&63;if(c>2047&&(c<55296||c>57343)){u=c}}break;case 4:o=r[i+1];h=r[i+2];s=r[i+3];if((o&192)===128&&(h&192)===128&&(s&192)===128){c=(n&15)<<18|(o&63)<<12|(h&63)<<6|s&63;if(c>65535&&c<1114112){u=c}}}}if(u===null){u=65533;a=1}else if(u>65535){u-=65536;f.push(u>>>10&1023|55296);u=56320|u&1023}f.push(u);i+=a}return decodeCodePointsArray(f)}var u=4096;function decodeCodePointsArray(r){var t=r.length;if(t<=u){return String.fromCharCode.apply(String,r)}var e="";var f=0;while(f<t){e+=String.fromCharCode.apply(String,r.slice(f,f+=u))}return e}function asciiSlice(r,t,e){var f="";e=Math.min(r.length,e);for(var i=t;i<e;++i){f+=String.fromCharCode(r[i]&127)}return f}function latin1Slice(r,t,e){var f="";e=Math.min(r.length,e);for(var i=t;i<e;++i){f+=String.fromCharCode(r[i])}return f}function hexSlice(r,t,e){var f=r.length;if(!t||t<0)t=0;if(!e||e<0||e>f)e=f;var i="";for(var n=t;n<e;++n){i+=toHex(r[n])}return i}function utf16leSlice(r,t,e){var f=r.slice(t,e);var i="";for(var n=0;n<f.length;n+=2){i+=String.fromCharCode(f[n]+f[n+1]*256)}return i}Buffer.prototype.slice=function slice(r,t){var e=this.length;r=~~r;t=t===undefined?e:~~t;if(r<0){r+=e;if(r<0)r=0}else if(r>e){r=e}if(t<0){t+=e;if(t<0)t=0}else if(t>e){t=e}if(t<r)t=r;var f;if(Buffer.TYPED_ARRAY_SUPPORT){f=this.subarray(r,t);f.__proto__=Buffer.prototype}else{var i=t-r;f=new Buffer(i,undefined);for(var n=0;n<i;++n){f[n]=this[n+r]}}return f};function checkOffset(r,t,e){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+t>e)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function readUIntLE(r,t,e){r=r|0;t=t|0;if(!e)checkOffset(r,t,this.length);var f=this[r];var i=1;var n=0;while(++n<t&&(i*=256)){f+=this[r+n]*i}return f};Buffer.prototype.readUIntBE=function readUIntBE(r,t,e){r=r|0;t=t|0;if(!e){checkOffset(r,t,this.length)}var f=this[r+--t];var i=1;while(t>0&&(i*=256)){f+=this[r+--t]*i}return f};Buffer.prototype.readUInt8=function readUInt8(r,t){if(!t)checkOffset(r,1,this.length);return this[r]};Buffer.prototype.readUInt16LE=function readUInt16LE(r,t){if(!t)checkOffset(r,2,this.length);return this[r]|this[r+1]<<8};Buffer.prototype.readUInt16BE=function readUInt16BE(r,t){if(!t)checkOffset(r,2,this.length);return this[r]<<8|this[r+1]};Buffer.prototype.readUInt32LE=function readUInt32LE(r,t){if(!t)checkOffset(r,4,this.length);return(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Buffer.prototype.readUInt32BE=function readUInt32BE(r,t){if(!t)checkOffset(r,4,this.length);return this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Buffer.prototype.readIntLE=function readIntLE(r,t,e){r=r|0;t=t|0;if(!e)checkOffset(r,t,this.length);var f=this[r];var i=1;var n=0;while(++n<t&&(i*=256)){f+=this[r+n]*i}i*=128;if(f>=i)f-=Math.pow(2,8*t);return f};Buffer.prototype.readIntBE=function readIntBE(r,t,e){r=r|0;t=t|0;if(!e)checkOffset(r,t,this.length);var f=t;var i=1;var n=this[r+--f];while(f>0&&(i*=256)){n+=this[r+--f]*i}i*=128;if(n>=i)n-=Math.pow(2,8*t);return n};Buffer.prototype.readInt8=function readInt8(r,t){if(!t)checkOffset(r,1,this.length);if(!(this[r]&128))return this[r];return(255-this[r]+1)*-1};Buffer.prototype.readInt16LE=function readInt16LE(r,t){if(!t)checkOffset(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};Buffer.prototype.readInt16BE=function readInt16BE(r,t){if(!t)checkOffset(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};Buffer.prototype.readInt32LE=function readInt32LE(r,t){if(!t)checkOffset(r,4,this.length);return this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Buffer.prototype.readInt32BE=function readInt32BE(r,t){if(!t)checkOffset(r,4,this.length);return this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Buffer.prototype.readFloatLE=function readFloatLE(r,t){if(!t)checkOffset(r,4,this.length);return i.read(this,r,true,23,4)};Buffer.prototype.readFloatBE=function readFloatBE(r,t){if(!t)checkOffset(r,4,this.length);return i.read(this,r,false,23,4)};Buffer.prototype.readDoubleLE=function readDoubleLE(r,t){if(!t)checkOffset(r,8,this.length);return i.read(this,r,true,52,8)};Buffer.prototype.readDoubleBE=function readDoubleBE(r,t){if(!t)checkOffset(r,8,this.length);return i.read(this,r,false,52,8)};function checkInt(r,t,e,f,i,n){if(!Buffer.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<n)throw new RangeError('"value" argument is out of bounds');if(e+f>r.length)throw new RangeError("Index out of range")}Buffer.prototype.writeUIntLE=function writeUIntLE(r,t,e,f){r=+r;t=t|0;e=e|0;if(!f){var i=Math.pow(2,8*e)-1;checkInt(this,r,t,e,i,0)}var n=1;var u=0;this[t]=r&255;while(++u<e&&(n*=256)){this[t+u]=r/n&255}return t+e};Buffer.prototype.writeUIntBE=function writeUIntBE(r,t,e,f){r=+r;t=t|0;e=e|0;if(!f){var i=Math.pow(2,8*e)-1;checkInt(this,r,t,e,i,0)}var n=e-1;var u=1;this[t+n]=r&255;while(--n>=0&&(u*=256)){this[t+n]=r/u&255}return t+e};Buffer.prototype.writeUInt8=function writeUInt8(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,1,255,0);if(!Buffer.TYPED_ARRAY_SUPPORT)r=Math.floor(r);this[t]=r&255;return t+1};function objectWriteUInt16(r,t,e,f){if(t<0)t=65535+t+1;for(var i=0,n=Math.min(r.length-e,2);i<n;++i){r[e+i]=(t&255<<8*(f?i:1-i))>>>(f?i:1-i)*8}}Buffer.prototype.writeUInt16LE=function writeUInt16LE(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r&255;this[t+1]=r>>>8}else{objectWriteUInt16(this,r,t,true)}return t+2};Buffer.prototype.writeUInt16BE=function writeUInt16BE(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r>>>8;this[t+1]=r&255}else{objectWriteUInt16(this,r,t,false)}return t+2};function objectWriteUInt32(r,t,e,f){if(t<0)t=4294967295+t+1;for(var i=0,n=Math.min(r.length-e,4);i<n;++i){r[e+i]=t>>>(f?i:3-i)*8&255}}Buffer.prototype.writeUInt32LE=function writeUInt32LE(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[t+3]=r>>>24;this[t+2]=r>>>16;this[t+1]=r>>>8;this[t]=r&255}else{objectWriteUInt32(this,r,t,true)}return t+4};Buffer.prototype.writeUInt32BE=function writeUInt32BE(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r>>>24;this[t+1]=r>>>16;this[t+2]=r>>>8;this[t+3]=r&255}else{objectWriteUInt32(this,r,t,false)}return t+4};Buffer.prototype.writeIntLE=function writeIntLE(r,t,e,f){r=+r;t=t|0;if(!f){var i=Math.pow(2,8*e-1);checkInt(this,r,t,e,i-1,-i)}var n=0;var u=1;var a=0;this[t]=r&255;while(++n<e&&(u*=256)){if(r<0&&a===0&&this[t+n-1]!==0){a=1}this[t+n]=(r/u>>0)-a&255}return t+e};Buffer.prototype.writeIntBE=function writeIntBE(r,t,e,f){r=+r;t=t|0;if(!f){var i=Math.pow(2,8*e-1);checkInt(this,r,t,e,i-1,-i)}var n=e-1;var u=1;var a=0;this[t+n]=r&255;while(--n>=0&&(u*=256)){if(r<0&&a===0&&this[t+n+1]!==0){a=1}this[t+n]=(r/u>>0)-a&255}return t+e};Buffer.prototype.writeInt8=function writeInt8(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,1,127,-128);if(!Buffer.TYPED_ARRAY_SUPPORT)r=Math.floor(r);if(r<0)r=255+r+1;this[t]=r&255;return t+1};Buffer.prototype.writeInt16LE=function writeInt16LE(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r&255;this[t+1]=r>>>8}else{objectWriteUInt16(this,r,t,true)}return t+2};Buffer.prototype.writeInt16BE=function writeInt16BE(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r>>>8;this[t+1]=r&255}else{objectWriteUInt16(this,r,t,false)}return t+2};Buffer.prototype.writeInt32LE=function writeInt32LE(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,4,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r&255;this[t+1]=r>>>8;this[t+2]=r>>>16;this[t+3]=r>>>24}else{objectWriteUInt32(this,r,t,true)}return t+4};Buffer.prototype.writeInt32BE=function writeInt32BE(r,t,e){r=+r;t=t|0;if(!e)checkInt(this,r,t,4,2147483647,-2147483648);if(r<0)r=4294967295+r+1;if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r>>>24;this[t+1]=r>>>16;this[t+2]=r>>>8;this[t+3]=r&255}else{objectWriteUInt32(this,r,t,false)}return t+4};function checkIEEE754(r,t,e,f,i,n){if(e+f>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function writeFloat(r,t,e,f,n){if(!n){checkIEEE754(r,t,e,4,3.4028234663852886e38,-3.4028234663852886e38)}i.write(r,t,e,f,23,4);return e+4}Buffer.prototype.writeFloatLE=function writeFloatLE(r,t,e){return writeFloat(this,r,t,true,e)};Buffer.prototype.writeFloatBE=function writeFloatBE(r,t,e){return writeFloat(this,r,t,false,e)};function writeDouble(r,t,e,f,n){if(!n){checkIEEE754(r,t,e,8,1.7976931348623157e308,-1.7976931348623157e308)}i.write(r,t,e,f,52,8);return e+8}Buffer.prototype.writeDoubleLE=function writeDoubleLE(r,t,e){return writeDouble(this,r,t,true,e)};Buffer.prototype.writeDoubleBE=function writeDoubleBE(r,t,e){return writeDouble(this,r,t,false,e)};Buffer.prototype.copy=function copy(r,t,e,f){if(!e)e=0;if(!f&&f!==0)f=this.length;if(t>=r.length)t=r.length;if(!t)t=0;if(f>0&&f<e)f=e;if(f===e)return 0;if(r.length===0||this.length===0)return 0;if(t<0){throw new RangeError("targetStart out of bounds")}if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(f<0)throw new RangeError("sourceEnd out of bounds");if(f>this.length)f=this.length;if(r.length-t<f-e){f=r.length-t+e}var i=f-e;var n;if(this===r&&e<t&&t<f){for(n=i-1;n>=0;--n){r[n+t]=this[n+e]}}else if(i<1e3||!Buffer.TYPED_ARRAY_SUPPORT){for(n=0;n<i;++n){r[n+t]=this[n+e]}}else{Uint8Array.prototype.set.call(r,this.subarray(e,e+i),t)}return i};Buffer.prototype.fill=function fill(r,t,e,f){if(typeof r==="string"){if(typeof t==="string"){f=t;t=0;e=this.length}else if(typeof e==="string"){f=e;e=this.length}if(r.length===1){var i=r.charCodeAt(0);if(i<256){r=i}}if(f!==undefined&&typeof f!=="string"){throw new TypeError("encoding must be a string")}if(typeof f==="string"&&!Buffer.isEncoding(f)){throw new TypeError("Unknown encoding: "+f)}}else if(typeof r==="number"){r=r&255}if(t<0||this.length<t||this.length<e){throw new RangeError("Out of range index")}if(e<=t){return this}t=t>>>0;e=e===undefined?this.length:e>>>0;if(!r)r=0;var n;if(typeof r==="number"){for(n=t;n<e;++n){this[n]=r}}else{var u=Buffer.isBuffer(r)?r:utf8ToBytes(new Buffer(r,f).toString());var a=u.length;for(n=0;n<e-t;++n){this[n+t]=u[n%a]}}return this};var a=/[^+\/0-9A-Za-z-_]/g;function base64clean(r){r=stringtrim(r).replace(a,"");if(r.length<2)return"";while(r.length%4!==0){r=r+"="}return r}function stringtrim(r){if(r.trim)return r.trim();return r.replace(/^\s+|\s+$/g,"")}function toHex(r){if(r<16)return"0"+r.toString(16);return r.toString(16)}function utf8ToBytes(r,t){t=t||Infinity;var e;var f=r.length;var i=null;var n=[];for(var u=0;u<f;++u){e=r.charCodeAt(u);if(e>55295&&e<57344){if(!i){if(e>56319){if((t-=3)>-1)n.push(239,191,189);continue}else if(u+1===f){if((t-=3)>-1)n.push(239,191,189);continue}i=e;continue}if(e<56320){if((t-=3)>-1)n.push(239,191,189);i=e;continue}e=(i-55296<<10|e-56320)+65536}else if(i){if((t-=3)>-1)n.push(239,191,189)}i=null;if(e<128){if((t-=1)<0)break;n.push(e)}else if(e<2048){if((t-=2)<0)break;n.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;n.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;n.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else{throw new Error("Invalid code point")}}return n}function asciiToBytes(r){var t=[];for(var e=0;e<r.length;++e){t.push(r.charCodeAt(e)&255)}return t}function utf16leToBytes(r,t){var e,f,i;var n=[];for(var u=0;u<r.length;++u){if((t-=2)<0)break;e=r.charCodeAt(u);f=e>>8;i=e%256;n.push(i);n.push(f)}return n}function base64ToBytes(r){return f.toByteArray(base64clean(r))}function blitBuffer(r,t,e,f){for(var i=0;i<f;++i){if(i+e>=t.length||i>=r.length)break;t[i+e]=r[i]}return i}function isnan(r){return r!==r}}};var t={};function __nccwpck_require__(e){if(t[e]){return t[e].exports}var f=t[e]={exports:{}};var i=true;try{r[e](f,f.exports,__nccwpck_require__);i=false}finally{if(i)delete t[e]}return f.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(979)})();