UNPKG

react-typescript-pdf-reader-built

Version:
1 lines 563 kB
(function e(t,r){if(typeof exports==="object"&&typeof module==="object")module.exports=r();else if(typeof define==="function"&&define.amd)define([],r);else{var n=r();for(var i in n)(typeof exports==="object"?exports:t)[i]=n[i]}})(this,function(){return function(e){var t=window["webpackJsonp"];window["webpackJsonp"]=function r(i,a,o){var s,l,u=0,f=[],c;for(;u<i.length;u++){l=i[u];if(n[l]){f.push(n[l][0])}n[l]=0}for(s in a){if(Object.prototype.hasOwnProperty.call(a,s)){e[s]=a[s]}}if(t)t(i,a,o);while(f.length){f.shift()()}};var r={};var n={1:0};function i(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,i);n.l=true;return n.exports}i.e=function e(t){var r=n[t];if(r===0){return new Promise(function(e){e()})}if(r){return r[2]}var a=new Promise(function(e,i){r=n[t]=[e,i]});r[2]=a;var o=document.getElementsByTagName("head")[0];var s=document.createElement("script");s.type="text/javascript";s.charset="utf-8";s.async=true;s.timeout=12e4;if(i.nc){s.setAttribute("nonce",i.nc)}s.src=i.p+""+t+".index.js";var l=setTimeout(u,12e4);s.onerror=s.onload=u;function u(){s.onerror=s.onload=null;clearTimeout(l);var e=n[t];if(e!==0){if(e){e[1](new Error("Loading chunk "+t+" failed."))}n[t]=undefined}}o.appendChild(s);return a};i.m=e;i.c=r;i.d=function(e,t,r){if(!i.o(e,t)){Object.defineProperty(e,t,{configurable:false,enumerable:true,get:r})}};i.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};i.d(t,"a",t);return t};i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};i.p="";i.oe=function(e){console.error(e);throw e};return i(i.s=0)}({"./node_modules/assert/assert.js":function(e,t,r){"use strict";(function(t){function n(e,t){if(e===t){return 0}var r=e.length;var n=t.length;for(var i=0,a=Math.min(r,n);i<a;++i){if(e[i]!==t[i]){r=e[i];n=t[i];break}}if(r<n){return-1}if(n<r){return 1}return 0}function i(e){if(t.Buffer&&typeof t.Buffer.isBuffer==="function"){return t.Buffer.isBuffer(e)}return!!(e!=null&&e._isBuffer)}var a=r("./node_modules/util/util.js");var o=Object.prototype.hasOwnProperty;var s=Array.prototype.slice;var l=function(){return function e(){}.name==="foo"}();function u(e){return Object.prototype.toString.call(e)}function f(e){if(i(e)){return false}if(typeof t.ArrayBuffer!=="function"){return false}if(typeof ArrayBuffer.isView==="function"){return ArrayBuffer.isView(e)}if(!e){return false}if(e instanceof DataView){return true}if(e.buffer&&e.buffer instanceof ArrayBuffer){return true}return false}var c=e.exports=b;var d=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(!a.isFunction(e)){return}if(l){return e.name}var t=e.toString();var r=t.match(d);return r&&r[1]}c.AssertionError=function e(t){this.name="AssertionError";this.actual=t.actual;this.expected=t.expected;this.operator=t.operator;if(t.message){this.message=t.message;this.generatedMessage=false}else{this.message=m(this);this.generatedMessage=true}var r=t.stackStartFunction||g;if(Error.captureStackTrace){Error.captureStackTrace(this,r)}else{var n=new Error;if(n.stack){var i=n.stack;var a=h(r);var o=i.indexOf("\n"+a);if(o>=0){var s=i.indexOf("\n",o+1);i=i.substring(s+1)}this.stack=i}}};a.inherits(c.AssertionError,Error);function p(e,t){if(typeof e==="string"){return e.length<t?e:e.slice(0,t)}else{return e}}function v(e){if(l||!a.isFunction(e)){return a.inspect(e)}var t=h(e);var r=t?": "+t:"";return"[Function"+r+"]"}function m(e){return p(v(e.actual),128)+" "+e.operator+" "+p(v(e.expected),128)}function g(e,t,r,n,i){throw new c.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}c.fail=g;function b(e,t){if(!e)g(e,true,t,"==",c.ok)}c.ok=b;c.equal=function e(t,r,n){if(t!=r)g(t,r,n,"==",c.equal)};c.notEqual=function e(t,r,n){if(t==r){g(t,r,n,"!=",c.notEqual)}};c.deepEqual=function e(t,r,n){if(!_(t,r,false)){g(t,r,n,"deepEqual",c.deepEqual)}};c.deepStrictEqual=function e(t,r,n){if(!_(t,r,true)){g(t,r,n,"deepStrictEqual",c.deepStrictEqual)}};function _(e,t,r,o){if(e===t){return true}else if(i(e)&&i(t)){return n(e,t)===0}else if(a.isDate(e)&&a.isDate(t)){return e.getTime()===t.getTime()}else if(a.isRegExp(e)&&a.isRegExp(t)){return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase}else if((e===null||typeof e!=="object")&&(t===null||typeof t!=="object")){return r?e===t:e==t}else if(f(e)&&f(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array)){return n(new Uint8Array(e.buffer),new Uint8Array(t.buffer))===0}else if(i(e)!==i(t)){return false}else{o=o||{actual:[],expected:[]};var s=o.actual.indexOf(e);if(s!==-1){if(s===o.expected.indexOf(t)){return true}}o.actual.push(e);o.expected.push(t);return w(e,t,r,o)}}function y(e){return Object.prototype.toString.call(e)=="[object Arguments]"}function w(e,t,r,n){if(e===null||e===undefined||t===null||t===undefined)return false;if(a.isPrimitive(e)||a.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return false;var i=y(e);var o=y(t);if(i&&!o||!i&&o)return false;if(i){e=s.call(e);t=s.call(t);return _(e,t,r)}var l=E(e);var u=E(t);var f,c;if(l.length!==u.length)return false;l.sort();u.sort();for(c=l.length-1;c>=0;c--){if(l[c]!==u[c])return false}for(c=l.length-1;c>=0;c--){f=l[c];if(!_(e[f],t[f],r,n))return false}return true}c.notDeepEqual=function e(t,r,n){if(_(t,r,false)){g(t,r,n,"notDeepEqual",c.notDeepEqual)}};c.notDeepStrictEqual=S;function S(e,t,r){if(_(e,t,true)){g(e,t,r,"notDeepStrictEqual",S)}}c.strictEqual=function e(t,r,n){if(t!==r){g(t,r,n,"===",c.strictEqual)}};c.notStrictEqual=function e(t,r,n){if(t===r){g(t,r,n,"!==",c.notStrictEqual)}};function A(e,t){if(!e||!t){return false}if(Object.prototype.toString.call(t)=="[object RegExp]"){return t.test(e)}try{if(e instanceof t){return true}}catch(e){}if(Error.isPrototypeOf(t)){return false}return t.call({},e)===true}function k(e){var t;try{e()}catch(e){t=e}return t}function x(e,t,r,n){var i;if(typeof t!=="function"){throw new TypeError('"block" argument must be a function')}if(typeof r==="string"){n=r;r=null}i=k(t);n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:".");if(e&&!i){g(i,r,"Missing expected exception"+n)}var o=typeof n==="string";var s=!e&&a.isError(i);var l=!e&&i&&!r;if(s&&o&&A(i,r)||l){g(i,r,"Got unwanted exception"+n)}if(e&&i&&r&&!A(i,r)||!e&&i){throw i}}c.throws=function(e,t,r){x(true,e,t,r)};c.doesNotThrow=function(e,t,r){x(false,e,t,r)};c.ifError=function(e){if(e)throw e};var E=Object.keys||function(e){var t=[];for(var r in e){if(o.call(e,r))t.push(r)}return t}}).call(t,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/base64-js/index.js":function(e,t,r){"use strict";t.byteLength=f;t.toByteArray=c;t.fromByteArray=p;var n=[];var i=[];var a=typeof Uint8Array!=="undefined"?Uint8Array:Array;var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var s=0,l=o.length;s<l;++s){n[s]=o[s];i[o.charCodeAt(s)]=s}i["-".charCodeAt(0)]=62;i["_".charCodeAt(0)]=63;function u(e){var t=e.length;if(t%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}return e[t-2]==="="?2:e[t-1]==="="?1:0}function f(e){return e.length*3/4-u(e)}function c(e){var t,r,n,o,s;var l=e.length;o=u(e);s=new a(l*3/4-o);r=o>0?l-4:l;var f=0;for(t=0;t<r;t+=4){n=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)];s[f++]=n>>16&255;s[f++]=n>>8&255;s[f++]=n&255}if(o===2){n=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4;s[f++]=n&255}else if(o===1){n=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2;s[f++]=n>>8&255;s[f++]=n&255}return s}function d(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[e&63]}function h(e,t,r){var n;var i=[];for(var a=t;a<r;a+=3){n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255);i.push(d(n))}return i.join("")}function p(e){var t;var r=e.length;var i=r%3;var a="";var o=[];var s=16383;for(var l=0,u=r-i;l<u;l+=s){o.push(h(e,l,l+s>u?u:l+s))}if(i===1){t=e[r-1];a+=n[t>>2];a+=n[t<<4&63];a+="=="}else if(i===2){t=(e[r-2]<<8)+e[r-1];a+=n[t>>10];a+=n[t>>4&63];a+=n[t<<2&63];a+="="}o.push(a);return o.join("")}},"./node_modules/browserify-zlib/lib/binding.js":function(e,t,r){"use strict";(function(e,n){var i=r("./node_modules/assert/assert.js");var a=r("./node_modules/pako/lib/zlib/zstream.js");var o=r("./node_modules/pako/lib/zlib/deflate.js");var s=r("./node_modules/pako/lib/zlib/inflate.js");var l=r("./node_modules/pako/lib/zlib/constants.js");for(var u in l){t[u]=l[u]}t.NONE=0;t.DEFLATE=1;t.INFLATE=2;t.GZIP=3;t.GUNZIP=4;t.DEFLATERAW=5;t.INFLATERAW=6;t.UNZIP=7;var f=31;var c=139;function d(e){if(typeof e!=="number"||e<t.DEFLATE||e>t.UNZIP){throw new TypeError("Bad argument")}this.dictionary=null;this.err=0;this.flush=0;this.init_done=false;this.level=0;this.memLevel=0;this.mode=e;this.strategy=0;this.windowBits=0;this.write_in_progress=false;this.pending_close=false;this.gzip_id_bytes_read=0}d.prototype.close=function(){if(this.write_in_progress){this.pending_close=true;return}this.pending_close=false;i(this.init_done,"close before init");i(this.mode<=t.UNZIP);if(this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW){o.deflateEnd(this.strm)}else if(this.mode===t.INFLATE||this.mode===t.GUNZIP||this.mode===t.INFLATERAW||this.mode===t.UNZIP){s.inflateEnd(this.strm)}this.mode=t.NONE;this.dictionary=null};d.prototype.write=function(e,t,r,n,i,a,o){return this._write(true,e,t,r,n,i,a,o)};d.prototype.writeSync=function(e,t,r,n,i,a,o){return this._write(false,e,t,r,n,i,a,o)};d.prototype._write=function(r,a,o,s,l,u,f,c){i.equal(arguments.length,8);i(this.init_done,"write before init");i(this.mode!==t.NONE,"already finalized");i.equal(false,this.write_in_progress,"write already in progress");i.equal(false,this.pending_close,"close is pending");this.write_in_progress=true;i.equal(false,a===undefined,"must provide flush value");this.write_in_progress=true;if(a!==t.Z_NO_FLUSH&&a!==t.Z_PARTIAL_FLUSH&&a!==t.Z_SYNC_FLUSH&&a!==t.Z_FULL_FLUSH&&a!==t.Z_FINISH&&a!==t.Z_BLOCK){throw new Error("Invalid flush value")}if(o==null){o=e.alloc(0);l=0;s=0}this.strm.avail_in=l;this.strm.input=o;this.strm.next_in=s;this.strm.avail_out=c;this.strm.output=u;this.strm.next_out=f;this.flush=a;if(!r){this._process();if(this._checkError()){return this._afterSync()}return}var d=this;n.nextTick(function(){d._process();d._after()});return this};d.prototype._afterSync=function(){var e=this.strm.avail_out;var t=this.strm.avail_in;this.write_in_progress=false;return[t,e]};d.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case t.UNZIP:if(this.strm.avail_in>0){e=this.strm.next_in}switch(this.gzip_id_bytes_read){case 0:if(e===null){break}if(this.strm.input[e]===f){this.gzip_id_bytes_read=1;e++;if(this.strm.avail_in===1){break}}else{this.mode=t.INFLATE;break}case 1:if(e===null){break}if(this.strm.input[e]===c){this.gzip_id_bytes_read=2;this.mode=t.GUNZIP}else{this.mode=t.INFLATE}break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:this.err=s.inflate(this.strm,this.flush);if(this.err===t.Z_NEED_DICT&&this.dictionary){this.err=s.inflateSetDictionary(this.strm,this.dictionary);if(this.err===t.Z_OK){this.err=s.inflate(this.strm,this.flush)}else if(this.err===t.Z_DATA_ERROR){this.err=t.Z_NEED_DICT}}while(this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&this.strm.next_in[0]!==0){this.reset();this.err=s.inflate(this.strm,this.flush)}break;default:throw new Error("Unknown mode "+this.mode)}};d.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===t.Z_FINISH){this._error("unexpected end of file");return false}break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:if(this.dictionary==null){this._error("Missing dictionary")}else{this._error("Bad dictionary")}return false;default:this._error("Zlib error");return false}return true};d.prototype._after=function(){if(!this._checkError()){return}var e=this.strm.avail_out;var t=this.strm.avail_in;this.write_in_progress=false;this.callback(t,e);if(this.pending_close){this.close()}};d.prototype._error=function(e){if(this.strm.msg){e=this.strm.msg}this.onerror(e,this.err);this.write_in_progress=false;if(this.pending_close){this.close()}};d.prototype.init=function(e,r,n,a,o){i(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])");i(e>=8&&e<=15,"invalid windowBits");i(r>=-1&&r<=9,"invalid compression level");i(n>=1&&n<=9,"invalid memlevel");i(a===t.Z_FILTERED||a===t.Z_HUFFMAN_ONLY||a===t.Z_RLE||a===t.Z_FIXED||a===t.Z_DEFAULT_STRATEGY,"invalid strategy");this._init(r,e,n,a,o);this._setDictionary()};d.prototype.params=function(){throw new Error("deflateParams Not supported")};d.prototype.reset=function(){this._reset();this._setDictionary()};d.prototype._init=function(e,r,n,i,l){this.level=e;this.windowBits=r;this.memLevel=n;this.strategy=i;this.flush=t.Z_NO_FLUSH;this.err=t.Z_OK;if(this.mode===t.GZIP||this.mode===t.GUNZIP){this.windowBits+=16}if(this.mode===t.UNZIP){this.windowBits+=32}if(this.mode===t.DEFLATERAW||this.mode===t.INFLATERAW){this.windowBits=-1*this.windowBits}this.strm=new a;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}if(this.err!==t.Z_OK){this._error("Init error")}this.dictionary=l;this.write_in_progress=false;this.init_done=true};d.prototype._setDictionary=function(){if(this.dictionary==null){return}this.err=t.Z_OK;switch(this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary);break;default:break}if(this.err!==t.Z_OK){this._error("Failed to set dictionary")}};d.prototype._reset=function(){this.err=t.Z_OK;switch(this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=o.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=s.inflateReset(this.strm);break;default:break}if(this.err!==t.Z_OK){this._error("Failed to reset stream")}};t.Zlib=d}).call(t,r("./node_modules/buffer/index.js").Buffer,r("./node_modules/process/browser.js"))},"./node_modules/browserify-zlib/lib/index.js":function(e,t,r){"use strict";(function(e){var n=r("./node_modules/buffer/index.js").Buffer;var i=r("./node_modules/stream-browserify/index.js").Transform;var a=r("./node_modules/browserify-zlib/lib/binding.js");var o=r("./node_modules/util/util.js");var s=r("./node_modules/assert/assert.js").ok;var l=r("./node_modules/buffer/index.js").kMaxLength;var u="Cannot create final Buffer. It would be larger "+"than 0x"+l.toString(16)+" bytes";a.Z_MIN_WINDOWBITS=8;a.Z_MAX_WINDOWBITS=15;a.Z_DEFAULT_WINDOWBITS=15;a.Z_MIN_CHUNK=64;a.Z_MAX_CHUNK=Infinity;a.Z_DEFAULT_CHUNK=16*1024;a.Z_MIN_MEMLEVEL=1;a.Z_MAX_MEMLEVEL=9;a.Z_DEFAULT_MEMLEVEL=8;a.Z_MIN_LEVEL=-1;a.Z_MAX_LEVEL=9;a.Z_DEFAULT_LEVEL=a.Z_DEFAULT_COMPRESSION;var f=Object.keys(a);for(var c=0;c<f.length;c++){var d=f[c];if(d.match(/^Z/)){Object.defineProperty(t,d,{enumerable:true,value:a[d],writable:false})}}var h={Z_OK:a.Z_OK,Z_STREAM_END:a.Z_STREAM_END,Z_NEED_DICT:a.Z_NEED_DICT,Z_ERRNO:a.Z_ERRNO,Z_STREAM_ERROR:a.Z_STREAM_ERROR,Z_DATA_ERROR:a.Z_DATA_ERROR,Z_MEM_ERROR:a.Z_MEM_ERROR,Z_BUF_ERROR:a.Z_BUF_ERROR,Z_VERSION_ERROR:a.Z_VERSION_ERROR};var p=Object.keys(h);for(var v=0;v<p.length;v++){var m=p[v];h[h[m]]=m}Object.defineProperty(t,"codes",{enumerable:true,value:Object.freeze(h),writable:false});t.Deflate=_;t.Inflate=y;t.Gzip=w;t.Gunzip=S;t.DeflateRaw=A;t.InflateRaw=k;t.Unzip=x;t.createDeflate=function(e){return new _(e)};t.createInflate=function(e){return new y(e)};t.createDeflateRaw=function(e){return new A(e)};t.createInflateRaw=function(e){return new k(e)};t.createGzip=function(e){return new w(e)};t.createGunzip=function(e){return new S(e)};t.createUnzip=function(e){return new x(e)};t.deflate=function(e,t,r){if(typeof t==="function"){r=t;t={}}return g(new _(t),e,r)};t.deflateSync=function(e,t){return b(new _(t),e)};t.gzip=function(e,t,r){if(typeof t==="function"){r=t;t={}}return g(new w(t),e,r)};t.gzipSync=function(e,t){return b(new w(t),e)};t.deflateRaw=function(e,t,r){if(typeof t==="function"){r=t;t={}}return g(new A(t),e,r)};t.deflateRawSync=function(e,t){return b(new A(t),e)};t.unzip=function(e,t,r){if(typeof t==="function"){r=t;t={}}return g(new x(t),e,r)};t.unzipSync=function(e,t){return b(new x(t),e)};t.inflate=function(e,t,r){if(typeof t==="function"){r=t;t={}}return g(new y(t),e,r)};t.inflateSync=function(e,t){return b(new y(t),e)};t.gunzip=function(e,t,r){if(typeof t==="function"){r=t;t={}}return g(new S(t),e,r)};t.gunzipSync=function(e,t){return b(new S(t),e)};t.inflateRaw=function(e,t,r){if(typeof t==="function"){r=t;t={}}return g(new k(t),e,r)};t.inflateRawSync=function(e,t){return b(new k(t),e)};function g(e,t,r){var i=[];var a=0;e.on("error",s);e.on("end",f);e.end(t);o();function o(){var t;while(null!==(t=e.read())){i.push(t);a+=t.length}e.once("readable",o)}function s(t){e.removeListener("end",f);e.removeListener("readable",o);r(t)}function f(){var t;var o=null;if(a>=l){o=new RangeError(u)}else{t=n.concat(i,a)}i=[];e.close();r(o,t)}}function b(e,t){if(typeof t==="string")t=n.from(t);if(!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function _(e){if(!(this instanceof _))return new _(e);C.call(this,e,a.DEFLATE)}function y(e){if(!(this instanceof y))return new y(e);C.call(this,e,a.INFLATE)}function w(e){if(!(this instanceof w))return new w(e);C.call(this,e,a.GZIP)}function S(e){if(!(this instanceof S))return new S(e);C.call(this,e,a.GUNZIP)}function A(e){if(!(this instanceof A))return new A(e);C.call(this,e,a.DEFLATERAW)}function k(e){if(!(this instanceof k))return new k(e);C.call(this,e,a.INFLATERAW)}function x(e){if(!(this instanceof x))return new x(e);C.call(this,e,a.UNZIP)}function E(e){return e===a.Z_NO_FLUSH||e===a.Z_PARTIAL_FLUSH||e===a.Z_SYNC_FLUSH||e===a.Z_FULL_FLUSH||e===a.Z_FINISH||e===a.Z_BLOCK}function C(e,r){var o=this;this._opts=e=e||{};this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK;i.call(this,e);if(e.flush&&!E(e.flush)){throw new Error("Invalid flush flag: "+e.flush)}if(e.finishFlush&&!E(e.finishFlush)){throw new Error("Invalid flush flag: "+e.finishFlush)}this._flushFlag=e.flush||a.Z_NO_FLUSH;this._finishFlushFlag=typeof e.finishFlush!=="undefined"?e.finishFlush:a.Z_FINISH;if(e.chunkSize){if(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK){throw new Error("Invalid chunk size: "+e.chunkSize)}}if(e.windowBits){if(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS){throw new Error("Invalid windowBits: "+e.windowBits)}}if(e.level){if(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL){throw new Error("Invalid compression level: "+e.level)}}if(e.memLevel){if(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL){throw new Error("Invalid memLevel: "+e.memLevel)}}if(e.strategy){if(e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY){throw new Error("Invalid strategy: "+e.strategy)}}if(e.dictionary){if(!n.isBuffer(e.dictionary)){throw new Error("Invalid dictionary: it should be a Buffer instance")}}this._handle=new a.Zlib(r);var s=this;this._hadError=false;this._handle.onerror=function(e,r){P(s);s._hadError=true;var n=new Error(e);n.errno=r;n.code=t.codes[r];s.emit("error",n)};var l=t.Z_DEFAULT_COMPRESSION;if(typeof e.level==="number")l=e.level;var u=t.Z_DEFAULT_STRATEGY;if(typeof e.strategy==="number")u=e.strategy;this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,l,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary);this._buffer=n.allocUnsafe(this._chunkSize);this._offset=0;this._level=l;this._strategy=u;this.once("end",this.close);Object.defineProperty(this,"_closed",{get:function(){return!o._handle},configurable:true,enumerable:true})}o.inherits(C,i);C.prototype.params=function(r,n,i){if(r<t.Z_MIN_LEVEL||r>t.Z_MAX_LEVEL){throw new RangeError("Invalid compression level: "+r)}if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY){throw new TypeError("Invalid strategy: "+n)}if(this._level!==r||this._strategy!==n){var o=this;this.flush(a.Z_SYNC_FLUSH,function(){s(o._handle,"zlib binding closed");o._handle.params(r,n);if(!o._hadError){o._level=r;o._strategy=n;if(i)i()}})}else{e.nextTick(i)}};C.prototype.reset=function(){s(this._handle,"zlib binding closed");return this._handle.reset()};C.prototype._flush=function(e){this._transform(n.alloc(0),"",e)};C.prototype.flush=function(t,r){var i=this;var o=this._writableState;if(typeof t==="function"||t===undefined&&!r){r=t;t=a.Z_FULL_FLUSH}if(o.ended){if(r)e.nextTick(r)}else if(o.ending){if(r)this.once("end",r)}else if(o.needDrain){if(r){this.once("drain",function(){return i.flush(t,r)})}}else{this._flushFlag=t;this.write(n.alloc(0),"",r)}};C.prototype.close=function(t){P(this,t);e.nextTick(T,this)};function P(t,r){if(r)e.nextTick(r);if(!t._handle)return;t._handle.close();t._handle=null}function T(e){e.emit("close")}C.prototype._transform=function(e,t,r){var i;var o=this._writableState;var s=o.ending||o.ended;var l=s&&(!e||o.length===e.length);if(e!==null&&!n.isBuffer(e))return r(new Error("invalid input"));if(!this._handle)return r(new Error("zlib binding closed"));if(l)i=this._finishFlushFlag;else{i=this._flushFlag;if(e.length>=o.length){this._flushFlag=this._opts.flush||a.Z_NO_FLUSH}}this._processChunk(e,i,r)};C.prototype._processChunk=function(e,t,r){var i=e&&e.length;var a=this._chunkSize-this._offset;var o=0;var f=this;var c=typeof r==="function";if(!c){var d=[];var h=0;var p;this.on("error",function(e){p=e});s(this._handle,"zlib binding closed");do{var v=this._handle.writeSync(t,e,o,i,this._buffer,this._offset,a)}while(!this._hadError&&b(v[0],v[1]));if(this._hadError){throw p}if(h>=l){P(this);throw new RangeError(u)}var m=n.concat(d,h);P(this);return m}s(this._handle,"zlib binding closed");var g=this._handle.write(t,e,o,i,this._buffer,this._offset,a);g.buffer=e;g.callback=b;function b(l,u){if(this){this.buffer=null;this.callback=null}if(f._hadError)return;var p=a-u;s(p>=0,"have should not go down");if(p>0){var v=f._buffer.slice(f._offset,f._offset+p);f._offset+=p;if(c){f.push(v)}else{d.push(v);h+=v.length}}if(u===0||f._offset>=f._chunkSize){a=f._chunkSize;f._offset=0;f._buffer=n.allocUnsafe(f._chunkSize)}if(u===0){o+=i-l;i=l;if(!c)return true;var m=f._handle.write(t,e,o,i,f._buffer,f._offset,f._chunkSize);m.callback=b;m.buffer=e;return}if(!c)return false;r()}};o.inherits(_,C);o.inherits(y,C);o.inherits(w,C);o.inherits(S,C);o.inherits(A,C);o.inherits(k,C);o.inherits(x,C)}).call(t,r("./node_modules/process/browser.js"))},"./node_modules/buffer/index.js":function(e,t,r){"use strict";(function(e){var n=r("./node_modules/base64-js/index.js");var i=r("./node_modules/ieee754/index.js");var a=r("./node_modules/isarray/index.js");t.Buffer=u;t.SlowBuffer=_;t.INSPECT_MAX_BYTES=50;u.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:o();t.kMaxLength=s();function o(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return e.foo()===42&&typeof e.subarray==="function"&&e.subarray(1,1).byteLength===0}catch(e){return false}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t){throw new RangeError("Invalid typed array length")}if(u.TYPED_ARRAY_SUPPORT){e=new Uint8Array(t);e.__proto__=u.prototype}else{if(e===null){e=new u(t)}e.length=t}return e}function u(e,t,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u)){return new u(e,t,r)}if(typeof e==="number"){if(typeof t==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return h(this,e)}return f(this,e,t,r)}u.poolSize=8192;u._augment=function(e){e.__proto__=u.prototype;return e};function f(e,t,r,n){if(typeof t==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&t instanceof ArrayBuffer){return m(e,t,r,n)}if(typeof t==="string"){return p(e,t,r)}return g(e,t)}u.from=function(e,t,r){return f(null,e,t,r)};if(u.TYPED_ARRAY_SUPPORT){u.prototype.__proto__=Uint8Array.prototype;u.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&u[Symbol.species]===u){Object.defineProperty(u,Symbol.species,{value:null,configurable:true})}}function c(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}else if(e<0){throw new RangeError('"size" argument must not be negative')}}function d(e,t,r,n){c(t);if(t<=0){return l(e,t)}if(r!==undefined){return typeof n==="string"?l(e,t).fill(r,n):l(e,t).fill(r)}return l(e,t)}u.alloc=function(e,t,r){return d(null,e,t,r)};function h(e,t){c(t);e=l(e,t<0?0:b(t)|0);if(!u.TYPED_ARRAY_SUPPORT){for(var r=0;r<t;++r){e[r]=0}}return e}u.allocUnsafe=function(e){return h(null,e)};u.allocUnsafeSlow=function(e){return h(null,e)};function p(e,t,r){if(typeof r!=="string"||r===""){r="utf8"}if(!u.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}var n=y(t,r)|0;e=l(e,n);var i=e.write(t,r);if(i!==n){e=e.slice(0,i)}return e}function v(e,t){var r=t.length<0?0:b(t.length)|0;e=l(e,r);for(var n=0;n<r;n+=1){e[n]=t[n]&255}return e}function m(e,t,r,n){t.byteLength;if(r<0||t.byteLength<r){throw new RangeError("'offset' is out of bounds")}if(t.byteLength<r+(n||0)){throw new RangeError("'length' is out of bounds")}if(r===undefined&&n===undefined){t=new Uint8Array(t)}else if(n===undefined){t=new Uint8Array(t,r)}else{t=new Uint8Array(t,r,n)}if(u.TYPED_ARRAY_SUPPORT){e=t;e.__proto__=u.prototype}else{e=v(e,t)}return e}function g(e,t){if(u.isBuffer(t)){var r=b(t.length)|0;e=l(e,r);if(e.length===0){return e}t.copy(e,0,0,r);return e}if(t){if(typeof ArrayBuffer!=="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t){if(typeof t.length!=="number"||te(t.length)){return l(e,0)}return v(e,t)}if(t.type==="Buffer"&&a(t.data)){return v(e,t.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(e){if(e>=s()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+s().toString(16)+" bytes")}return e|0}function _(e){if(+e!=e){e=0}return u.alloc(+e)}u.isBuffer=function e(t){return!!(t!=null&&t._isBuffer)};u.compare=function e(t,r){if(!u.isBuffer(t)||!u.isBuffer(r)){throw new TypeError("Arguments must be Buffers")}if(t===r)return 0;var n=t.length;var i=r.length;for(var a=0,o=Math.min(n,i);a<o;++a){if(t[a]!==r[a]){n=t[a];i=r[a];break}}if(n<i)return-1;if(i<n)return 1;return 0};u.isEncoding=function e(t){switch(String(t).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}};u.concat=function e(t,r){if(!a(t)){throw new TypeError('"list" argument must be an Array of Buffers')}if(t.length===0){return u.alloc(0)}var n;if(r===undefined){r=0;for(n=0;n<t.length;++n){r+=t[n].length}}var i=u.allocUnsafe(r);var o=0;for(n=0;n<t.length;++n){var s=t[n];if(!u.isBuffer(s)){throw new TypeError('"list" argument must be an Array of Buffers')}s.copy(i,o);o+=s.length}return i};function y(e,t){if(u.isBuffer(e)){return e.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){e=""+e}var r=e.length;if(r===0)return 0;var n=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case undefined:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return K(e).length;t=(""+t).toLowerCase();n=true}}}u.byteLength=y;function w(e,t,r){var n=false;if(t===undefined||t<0){t=0}if(t>this.length){return""}if(r===undefined||r>this.length){r=this.length}if(r<=0){return""}r>>>=0;t>>>=0;if(r<=t){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return D(this,t,r);case"utf8":case"utf-8":return j(this,t,r);case"ascii":return N(this,t,r);case"latin1":case"binary":return F(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}}u.prototype._isBuffer=true;function S(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}u.prototype.swap16=function e(){var t=this.length;if(t%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var r=0;r<t;r+=2){S(this,r,r+1)}return this};u.prototype.swap32=function e(){var t=this.length;if(t%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var r=0;r<t;r+=4){S(this,r,r+3);S(this,r+1,r+2)}return this};u.prototype.swap64=function e(){var t=this.length;if(t%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var r=0;r<t;r+=8){S(this,r,r+7);S(this,r+1,r+6);S(this,r+2,r+5);S(this,r+3,r+4)}return this};u.prototype.toString=function e(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return j(this,0,t);return w.apply(this,arguments)};u.prototype.equals=function e(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return u.compare(this,t)===0};u.prototype.inspect=function e(){var r="";var n=t.INSPECT_MAX_BYTES;if(this.length>0){r=this.toString("hex",0,n).match(/.{2}/g).join(" ");if(this.length>n)r+=" ... "}return"<Buffer "+r+">"};u.prototype.compare=function e(t,r,n,i,a){if(!u.isBuffer(t)){throw new TypeError("Argument must be a Buffer")}if(r===undefined){r=0}if(n===undefined){n=t?t.length:0}if(i===undefined){i=0}if(a===undefined){a=this.length}if(r<0||n>t.length||i<0||a>this.length){throw new RangeError("out of range index")}if(i>=a&&r>=n){return 0}if(i>=a){return-1}if(r>=n){return 1}r>>>=0;n>>>=0;i>>>=0;a>>>=0;if(this===t)return 0;var o=a-i;var s=n-r;var l=Math.min(o,s);var f=this.slice(i,a);var c=t.slice(r,n);for(var d=0;d<l;++d){if(f[d]!==c[d]){o=f[d];s=c[d];break}}if(o<s)return-1;if(s<o)return 1;return 0};function A(e,t,r,n,i){if(e.length===0)return-1;if(typeof r==="string"){n=r;r=0}else if(r>2147483647){r=2147483647}else if(r<-2147483648){r=-2147483648}r=+r;if(isNaN(r)){r=i?0:e.length-1}if(r<0)r=e.length+r;if(r>=e.length){if(i)return-1;else r=e.length-1}else if(r<0){if(i)r=0;else return-1}if(typeof t==="string"){t=u.from(t,n)}if(u.isBuffer(t)){if(t.length===0){return-1}return k(e,t,r,n,i)}else if(typeof t==="number"){t=t&255;if(u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(i){return Uint8Array.prototype.indexOf.call(e,t,r)}else{return Uint8Array.prototype.lastIndexOf.call(e,t,r)}}return k(e,[t],r,n,i)}throw new TypeError("val must be string, number or Buffer")}function k(e,t,r,n,i){var a=1;var o=e.length;var s=t.length;if(n!==undefined){n=String(n).toLowerCase();if(n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(e.length<2||t.length<2){return-1}a=2;o/=2;s/=2;r/=2}}function l(e,t){if(a===1){return e[t]}else{return e.readUInt16BE(t*a)}}var u;if(i){var f=-1;for(u=r;u<o;u++){if(l(e,u)===l(t,f===-1?0:u-f)){if(f===-1)f=u;if(u-f+1===s)return f*a}else{if(f!==-1)u-=u-f;f=-1}}}else{if(r+s>o)r=o-s;for(u=r;u>=0;u--){var c=true;for(var d=0;d<s;d++){if(l(e,u+d)!==l(t,d)){c=false;break}}if(c)return u}}return-1}u.prototype.includes=function e(t,r,n){return this.indexOf(t,r,n)!==-1};u.prototype.indexOf=function e(t,r,n){return A(this,t,r,n,true)};u.prototype.lastIndexOf=function e(t,r,n){return A(this,t,r,n,false)};function x(e,t,r,n){r=Number(r)||0;var i=e.length-r;if(!n){n=i}else{n=Number(n);if(n>i){n=i}}var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");if(n>a/2){n=a/2}for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function E(e,t,r,n){return ee(K(t,e.length-r),e,r,n)}function C(e,t,r,n){return ee(Q(t),e,r,n)}function P(e,t,r,n){return C(e,t,r,n)}function T(e,t,r,n){return ee($(t),e,r,n)}function R(e,t,r,n){return ee(J(t,e.length-r),e,r,n)}u.prototype.write=function e(t,r,n,i){if(r===undefined){i="utf8";n=this.length;r=0}else if(n===undefined&&typeof r==="string"){i=r;n=this.length;r=0}else if(isFinite(r)){r=r|0;if(isFinite(n)){n=n|0;if(i===undefined)i="utf8"}else{i=n;n=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var a=this.length-r;if(n===undefined||n>a)n=a;if(t.length>0&&(n<0||r<0)||r>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!i)i="utf8";var o=false;for(;;){switch(i){case"hex":return x(this,t,r,n);case"utf8":case"utf-8":return E(this,t,r,n);case"ascii":return C(this,t,r,n);case"latin1":case"binary":return P(this,t,r,n);case"base64":return T(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase();o=true}}};u.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,r){if(t===0&&r===e.length){return n.fromByteArray(e)}else{return n.fromByteArray(e.slice(t,r))}}function j(e,t,r){r=Math.min(e.length,r);var n=[];var i=t;while(i<r){var a=e[i];var o=null;var s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var l,u,f,c;switch(s){case 1:if(a<128){o=a}break;case 2:l=e[i+1];if((l&192)===128){c=(a&31)<<6|l&63;if(c>127){o=c}}break;case 3:l=e[i+1];u=e[i+2];if((l&192)===128&&(u&192)===128){c=(a&15)<<12|(l&63)<<6|u&63;if(c>2047&&(c<55296||c>57343)){o=c}}break;case 4:l=e[i+1];u=e[i+2];f=e[i+3];if((l&192)===128&&(u&192)===128&&(f&192)===128){c=(a&15)<<18|(l&63)<<12|(u&63)<<6|f&63;if(c>65535&&c<1114112){o=c}}}}if(o===null){o=65533;s=1}else if(o>65535){o-=65536;n.push(o>>>10&1023|55296);o=56320|o&1023}n.push(o);i+=s}return L(n)}var I=4096;function L(e){var t=e.length;if(t<=I){return String.fromCharCode.apply(String,e)}var r="";var n=0;while(n<t){r+=String.fromCharCode.apply(String,e.slice(n,n+=I))}return r}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i){n+=String.fromCharCode(e[i]&127)}return n}function F(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i){n+=String.fromCharCode(e[i])}return n}function D(e,t,r){var n=e.length;if(!t||t<0)t=0;if(!r||r<0||r>n)r=n;var i="";for(var a=t;a<r;++a){i+=Z(e[a])}return i}function M(e,t,r){var n=e.slice(t,r);var i="";for(var a=0;a<n.length;a+=2){i+=String.fromCharCode(n[a]+n[a+1]*256)}return i}u.prototype.slice=function e(t,r){var n=this.length;t=~~t;r=r===undefined?n:~~r;if(t<0){t+=n;if(t<0)t=0}else if(t>n){t=n}if(r<0){r+=n;if(r<0)r=0}else if(r>n){r=n}if(r<t)r=t;var i;if(u.TYPED_ARRAY_SUPPORT){i=this.subarray(t,r);i.__proto__=u.prototype}else{var a=r-t;i=new u(a,undefined);for(var o=0;o<a;++o){i[o]=this[o+t]}}return i};function U(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)U(t,r,this.length);var i=this[t];var a=1;var o=0;while(++o<r&&(a*=256)){i+=this[t+o]*a}return i};u.prototype.readUIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n){U(t,r,this.length)}var i=this[t+--r];var a=1;while(r>0&&(a*=256)){i+=this[t+--r]*a}return i};u.prototype.readUInt8=function e(t,r){if(!r)U(t,1,this.length);return this[t]};u.prototype.readUInt16LE=function e(t,r){if(!r)U(t,2,this.length);return this[t]|this[t+1]<<8};u.prototype.readUInt16BE=function e(t,r){if(!r)U(t,2,this.length);return this[t]<<8|this[t+1]};u.prototype.readUInt32LE=function e(t,r){if(!r)U(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUInt32BE=function e(t,r){if(!r)U(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function e(t,r,n){t=t|0;r=r|0;if(!n)U(t,r,this.length);var i=this[t];var a=1;var o=0;while(++o<r&&(a*=256)){i+=this[t+o]*a}a*=128;if(i>=a)i-=Math.pow(2,8*r);return i};u.prototype.readIntBE=function e(t,r,n){t=t|0;r=r|0;if(!n)U(t,r,this.length);var i=r;var a=1;var o=this[t+--i];while(i>0&&(a*=256)){o+=this[t+--i]*a}a*=128;if(o>=a)o-=Math.pow(2,8*r);return o};u.prototype.readInt8=function e(t,r){if(!r)U(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};u.prototype.readInt16LE=function e(t,r){if(!r)U(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function e(t,r){if(!r)U(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function e(t,r){if(!r)U(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function e(t,r){if(!r)U(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function e(t,r){if(!r)U(t,4,this.length);return i.read(this,t,true,23,4)};u.prototype.readFloatBE=function e(t,r){if(!r)U(t,4,this.length);return i.read(this,t,false,23,4)};u.prototype.readDoubleLE=function e(t,r){if(!r)U(t,8,this.length);return i.read(this,t,true,52,8)};u.prototype.readDoubleBE=function e(t,r){if(!r)U(t,8,this.length);return i.read(this,t,false,52,8)};function q(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function e(t,r,n,i){t=+t;r=r|0;n=n|0;if(!i){var a=Math.pow(2,8*n)-1;q(this,t,r,n,a,0)}var o=1;var s=0;this[r]=t&255;while(++s<n&&(o*=256)){this[r+s]=t/o&255}return r+n};u.prototype.writeUIntBE=function e(t,r,n,i){t=+t;r=r|0;n=n|0;if(!i){var a=Math.pow(2,8*n)-1;q(this,t,r,n,a,0)}var o=n-1;var s=1;this[r+o]=t&255;while(--o>=0&&(s*=256)){this[r+o]=t/s&255}return r+n};u.prototype.writeUInt8=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,1,255,0);if(!u.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[r]=t&255;return r+1};function z(e,t,r,n){if(t<0)t=65535+t+1;for(var i=0,a=Math.min(e.length-r,2);i<a;++i){e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}}u.prototype.writeUInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,2,65535,0);if(u.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{z(this,t,r,true)}return r+2};u.prototype.writeUInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,2,65535,0);if(u.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{z(this,t,r,false)}return r+2};function B(e,t,r,n){if(t<0)t=4294967295+t+1;for(var i=0,a=Math.min(e.length-r,4);i<a;++i){e[r+i]=t>>>(n?i:3-i)*8&255}}u.prototype.writeUInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,4,4294967295,0);if(u.TYPED_ARRAY_SUPPORT){this[r+3]=t>>>24;this[r+2]=t>>>16;this[r+1]=t>>>8;this[r]=t&255}else{B(this,t,r,true)}return r+4};u.prototype.writeUInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,4,4294967295,0);if(u.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{B(this,t,r,false)}return r+4};u.prototype.writeIntLE=function e(t,r,n,i){t=+t;r=r|0;if(!i){var a=Math.pow(2,8*n-1);q(this,t,r,n,a-1,-a)}var o=0;var s=1;var l=0;this[r]=t&255;while(++o<n&&(s*=256)){if(t<0&&l===0&&this[r+o-1]!==0){l=1}this[r+o]=(t/s>>0)-l&255}return r+n};u.prototype.writeIntBE=function e(t,r,n,i){t=+t;r=r|0;if(!i){var a=Math.pow(2,8*n-1);q(this,t,r,n,a-1,-a)}var o=n-1;var s=1;var l=0;this[r+o]=t&255;while(--o>=0&&(s*=256)){if(t<0&&l===0&&this[r+o+1]!==0){l=1}this[r+o]=(t/s>>0)-l&255}return r+n};u.prototype.writeInt8=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,1,127,-128);if(!u.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[r]=t&255;return r+1};u.prototype.writeInt16LE=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,2,32767,-32768);if(u.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8}else{z(this,t,r,true)}return r+2};u.prototype.writeInt16BE=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,2,32767,-32768);if(u.TYPED_ARRAY_SUPPORT){this[r]=t>>>8;this[r+1]=t&255}else{z(this,t,r,false)}return r+2};u.prototype.writeInt32LE=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,4,2147483647,-2147483648);if(u.TYPED_ARRAY_SUPPORT){this[r]=t&255;this[r+1]=t>>>8;this[r+2]=t>>>16;this[r+3]=t>>>24}else{B(this,t,r,true)}return r+4};u.prototype.writeInt32BE=function e(t,r,n){t=+t;r=r|0;if(!n)q(this,t,r,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(u.TYPED_ARRAY_SUPPORT){this[r]=t>>>24;this[r+1]=t>>>16;this[r+2]=t>>>8;this[r+3]=t&255}else{B(this,t,r,false)}return r+4};function W(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,a){if(!a){W(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38)}i.write(e,t,r,n,23,4);return r+4}u.prototype.writeFloatLE=function e(t,r,n){return H(this,t,r,true,n)};u.prototype.writeFloatBE=function e(t,r,n){return H(this,t,r,false,n)};function G(e,t,r,n,a){if(!a){W(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308)}i.write(e,t,r,n,52,8);return r+8}u.prototype.writeDoubleLE=function e(t,r,n){return G(this,t,r,true,n)};u.prototype.writeDoubleBE=function e(t,r,n){return G(this,t,r,false,n)};u.prototype.copy=function e(t,r,n,i){if(!n)n=0;if(!i&&i!==0)i=this.length;if(r>=t.length)r=t.length;if(!r)r=0;if(i>0&&i<n)i=n;if(i===n)return 0;if(t.length===0||this.length===0)return 0;if(r<0){throw new RangeError("targetStart out of bounds")}if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");if(i>this.length)i=this.length;if(t.length-r<i-n){i=t.length-r+n}var a=i-n;var o;if(this===t&&n<r&&r<i){for(o=a-1;o>=0;--o){t[o+r]=this[o+n]}}else if(a<1e3||!u.TYPED_ARRAY_SUPPORT){for(o=0;o<a;++o){t[o+r]=this[o+n]}}else{Uint8Array.prototype.set.call(t,this.subarray(n,n+a),r)}return a};u.prototype.fill=function e(t,r,n,i){if(typeof t==="string"){if(typeof r==="string"){i=r;r=0;n=this.length}else if(typeof n==="string"){i=n;n=this.length}if(t.length===1){var a=t.charCodeAt(0);if(a<256){t=a}}if(i!==undefined&&typeof i!=="string"){throw new TypeError("encoding must be a string")}if(typeof i==="string"&&!u.isEncoding(i)){throw new TypeError("Unknown encoding: "+i)}}else if(typeof t==="number"){t=t&255}if(r<0||this.length<r||this.length<n){throw new RangeError("Out of range index")}if(n<=r){return this}r=r>>>0;n=n===undefined?this.length:n>>>0;if(!t)t=0;var o;if(typeof t==="number"){for(o=r;o<n;++o){this[o]=t}}else{var s=u.isBuffer(t)?t:K(new u(t,i).toString());var l=s.length;for(o=0;o<n-r;++o){this[o+r]=s[o%l]}}return this};var V=/[^+\/0-9A-Za-z-_]/g;function Y(e){e=X(e).replace(V,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function X(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function Z(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function K(e,t){t=t||Infinity;var r;var n=e.length;var i=null;var a=[];for(var o=0;o<n;++o){r=e.charCodeAt(o);if(r>55295&&r<57344){if(!i){if(r>56319){if((t-=3)>-1)a.push(239,191,189);continue}else if(o+1===n){if((t-=3)>-1)a.push(239,191,189);continue}i=r;continue}if(r<56320){if((t-=3)>-1)a.push(239,191,189);i=r;continue}r=(i-55296<<10|r-56320)+65536}else if(i){if((t-=3)>-1)a.push(239,191,189)}i=null;if(r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return a}function Q(e){var t=[];for(var r=0;r<e.length;++r){t.push(e.charCodeAt(r)&255)}return t}function J(e,t){var r,n,i;var a=[];for(var o=0;o<e.length;++o){if((t-=2)<0)break;r=e.charCodeAt(o);n=r>>8;i=r%256;a.push(i);a.push(n)}return a}function $(e){return n.toByteArray(Y(e))}function ee(e,t,r,n){for(var i=0;i<n;++i){if(i+r>=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function te(e){return e!==e}}).call(t,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-util-is/lib/util.js":function(e,t,r){(function(e){function r(e){if(Array.isArray){return Array.isArray(e)}return m(e)==="[object Array]"}t.isArray=r;function n(e){return typeof e==="boolean"}t.isBoolean=n;function i(e){return e===null}t.isNull=i;function a(e){return e==null}t.isNullOrUndefined=a;function o(e){return typeof e==="number"}t.isNumber=o;function s(e){return typeof e==="string"}t.isString=s;function l(e){return typeof e==="symbol"}t.isSymbol=l;function u(e){return e===void 0}t.isUndefined=u;function f(e){return m(e)==="[object RegExp]"}t.isRegExp=f;function c(e){return typeof e==="object"&&e!==null}t.isObject=c;function d(e){return m(e)==="[object Date]"}t.isDate=d;function h(e){return m(e)==="[object Error]"||e instanceof Error}t.isError=h;function p(e){return typeof e==="function"}t.isFunction=p;function v(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=v;t.isBuffer=e.isBuffer;function m(e){return Object.prototype.toString.call(e)}}).call(t,r("./node_modules/buffer/index.js").Buffer)},"./node_modules/events/events.js":function(e,t){function r(){this._events=this._events||{};this._maxListeners=this._maxListeners||undefined}e.exports=r;r.EventEmitter=r;r.prototype._events=undefined;r.prototype._maxListeners=undefined;r.defaultMaxListeners=10;r.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");this._maxListeners=e;return this};r.prototype.emit=function(e){var t,r,i,s,l,u;if(!this._events)this._events={};if(e==="error"){if(!this._events.error||a(this._events.error)&&!this._events.error.length){t=arguments[1];if(t instanceof Error){throw t}else{var f=new Error('Uncaught, unspecified "error" event. ('+t+")");f.context=t;throw f}}}r=this._events[e];if(o(r))return false;if(n(r)){switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1);r.apply(this,s)}}else if(a(r)){s=Array.prototype.slice.call(arguments,1);u=r.slice();i=u.length;for(l=0;l<i;l++)u[l].apply(this,s)}return true};r.prototype.addListener=function(e,t){var i;if(!n(t))throw TypeError("listener must be a function");if(!this._events)this._events={};if(this._events.newListener)this.emit("newListener",e,n(t.listener)?t.listener:t);if(!this._events[e])this._events[e]=t;else if(a(this._events[e]))this._events[e].push(t);else this._events[e]=[this._events[e],t];if(a(this._events[e])&&!this._events[e].warned){if(!o(this._maxListeners)){i=this._maxListeners}else{i=r.defaultMaxListeners}if(i&&i>0&&this._events[e].length>i){this._events[e].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[e].length);if(typeof console.trace==="function"){console.trace()}}}return this};r.prototype.on=r.prototype.addListener;r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=false;function i(){this.removeListener(e,i);if(!r){r=true;t.apply(this,arguments)}}i.listener=t;this.on(e,i);return this};r.prototype.removeListener=function(e,t){var r,i,o,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;r=this._events[e];o=r.length;i=-1;if(r===t||n(r.listener)&&r.listener===t){delete this._events[e];if(this._events.removeListener)this.emit("removeListener",e,t)}else if(a(r)){for(s=o;s-- >0;){if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}}if(i<0)return this;if(r.length===1){r.length=0;delete this._events[e]}else{r.splice(i,1)}if(this._events.removeListener)this.emit("removeListener",e,t)}return this};r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener){if(arguments.length===0)this._events={};else if(this._events[e])delete this._events[e];return this}if(arguments.length===0){for(t in this._events){if(t==="removeListener")continue;this.removeAllListeners(t)}this.removeAllListeners("removeListener");this._events={};return this}r=this._events[e];if(n(r)){this.removeListener(e,r)}else if(r){while(r.length)this.removeListener(e,r[r.length-1])}delete this._events[e];return this};r.prototype.listeners=function(e){var t;if(!this._events||!this._events[e])t=[];else if(n(this._events[e]))t=[this._events[e]];else t=this._events[e].slice();return t};r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;else if(t)return t.length}return 0};r.listenerCount=function(e,t){return e.listenerCount(t)};function n(e){return typeof e==="function"}function i(e){return typeof e==="number"}function a(e){return typeof e==="object"&&e!==null}function o(e){return e===void 0}},"./node_modules/fbjs/lib/EventListener.js":function(e,t,r){"use strict";var n=r("./node_modules/fbjs/lib/emptyFunction.js");var i={listen:function e(t,r,n){if(t.addEventListener){t.addEventListener(r,n,false);return{remove:function e(){t.removeEventListener(r,n,false)}}}else if(t.attachEvent){t.attachEvent("on"+r,n);return{remove:function e(){t.detachEvent("on"+r,n)}}}},capture:function e(t,r,i){if(t.addEventListener){t.addEventListener(r,i,true);return{remove:function e(){t.removeEventListener(r,i,true)}}}else{if(false){console.error("Attempted to listen to events during the capture phase on a "+"browser that does not support the capture phase. Your application "+"will not receive some events.")}return{remove:n}}},registerDefault:function e(){}};e.exports=i},"./node_modules/fbjs/lib/ExecutionEnvironment.js":function