/* Jimp v0.8.4 https://github.com/oliver-moran/jimp Ported for the Web by Phil Seaton MIT License Copyright (c) 2018 Oliver Moran Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ if((void 0===window||!window)&&"undefined"!=typeof self)var window=self;!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{(void 0!==window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).jimp=t()}}(function(){return function o(a,s,u){function f(e,t){if(!s[e]){if(!a[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[e]={exports:{}};a[e][0].call(i.exports,function(t){return f(a[e][1][t]||t)},i,i.exports,o,a,s,u)}return s[e].exports}for(var l="function"==typeof require&&require,t=0;t>16&255,a[s++]=e>>8&255,a[s++]=255&e;2===o&&(e=f[t.charCodeAt(r)]<<2|f[t.charCodeAt(r+1)]>>4,a[s++]=255&e);1===o&&(e=f[t.charCodeAt(r)]<<10|f[t.charCodeAt(r+1)]<<4|f[t.charCodeAt(r+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e);return a},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i=[],o=0,a=r-n;o>2]+s[e<<4&63]+"==")):2==n&&(e=(t[r-2]<<8)+t[r-1],i.push(s[e>>10]+s[e>>4&63]+s[e<<2&63]+"="));return i.join("")};for(var s=[],f=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return o.join("")}f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},{}],6:[function(t,e,r){},{}],7:[function(n,t,c){(function(f,l){"use strict";var h=n("assert"),o=n("pako/lib/zlib/zstream"),a=n("pako/lib/zlib/deflate.js"),s=n("pako/lib/zlib/inflate.js"),t=n("pako/lib/zlib/constants");for(var e in t)c[e]=t[e];c.NONE=0,c.DEFLATE=1,c.INFLATE=2,c.GZIP=3,c.GUNZIP=4,c.DEFLATERAW=5,c.INFLATERAW=6,c.UNZIP=7;function r(t){if("number"!=typeof t||tc.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}r.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,h(this.init_done,"close before init"),h(this.mode<=c.UNZIP),this.mode===c.DEFLATE||this.mode===c.GZIP||this.mode===c.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==c.INFLATE&&this.mode!==c.GUNZIP&&this.mode!==c.INFLATERAW&&this.mode!==c.UNZIP||s.inflateEnd(this.strm),this.mode=c.NONE,this.dictionary=null)},r.prototype.write=function(t,e,r,n,i,o,a){return this._write(!0,t,e,r,n,i,o,a)},r.prototype.writeSync=function(t,e,r,n,i,o,a){return this._write(!1,t,e,r,n,i,o,a)},r.prototype._write=function(t,e,r,n,i,o,a,s){if(h.equal(arguments.length,8),h(this.init_done,"write before init"),h(this.mode!==c.NONE,"already finalized"),h.equal(!1,this.write_in_progress,"write already in progress"),h.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,h.equal(!1,void 0===e,"must provide flush value"),this.write_in_progress=!0,e!==c.Z_NO_FLUSH&&e!==c.Z_PARTIAL_FLUSH&&e!==c.Z_SYNC_FLUSH&&e!==c.Z_FULL_FLUSH&&e!==c.Z_FINISH&&e!==c.Z_BLOCK)throw new Error("Invalid flush value");if(null==r&&(r=l.alloc(0),n=i=0),this.strm.avail_in=i,this.strm.input=r,this.strm.next_in=n,this.strm.avail_out=s,this.strm.output=o,this.strm.next_out=a,this.flush=e,!t)return this._process(),this._checkError()?this._afterSync():void 0;var u=this;return f.nextTick(function(){u._process(),u._after()}),this},r.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},r.prototype._process=function(){var t=null;switch(this.mode){case c.DEFLATE:case c.GZIP:case c.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case c.UNZIP:switch(0T.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBitsT.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.levelT.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevelT.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=T.Z_FILTERED&&t.strategy!=T.Z_HUFFMAN_ONLY&&t.strategy!=T.Z_RLE&&t.strategy!=T.Z_FIXED&&t.strategy!=T.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!b.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(e);var n=this;this._hadError=!1,this._handle.onerror=function(t,e){j(n),n._hadError=!0;var r=new Error(t);r.errno=e,r.code=T.codes[e],n.emit("error",r)};var i=T.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(i=t.level);var o=T.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(o=t.strategy),this._handle.init(t.windowBits||T.Z_DEFAULT_WINDOWBITS,i,t.memLevel||T.Z_DEFAULT_MEMLEVEL,o,t.dictionary),this._buffer=b.allocUnsafe(this._chunkSize),this._offset=0,this._level=i,this._strategy=o,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function j(t,e){e&&i.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function A(t){t.emit("close")}Object.defineProperty(T,"codes",{enumerable:!0,value:Object.freeze(o),writable:!1}),T.Deflate=d,T.Inflate=p,T.Gzip=m,T.Gunzip=v,T.DeflateRaw=w,T.InflateRaw=E,T.Unzip=x,T.createDeflate=function(t){return new d(t)},T.createInflate=function(t){return new p(t)},T.createDeflateRaw=function(t){return new w(t)},T.createInflateRaw=function(t){return new E(t)},T.createGzip=function(t){return new m(t)},T.createGunzip=function(t){return new v(t)},T.createUnzip=function(t){return new x(t)},T.deflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new d(e),t,r)},T.deflateSync=function(t,e){return c(new d(e),t)},T.gzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new m(e),t,r)},T.gzipSync=function(t,e){return c(new m(e),t)},T.deflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new w(e),t,r)},T.deflateRawSync=function(t,e){return c(new w(e),t)},T.unzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new x(e),t,r)},T.unzipSync=function(t,e){return c(new x(e),t)},T.inflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new p(e),t,r)},T.inflateSync=function(t,e){return c(new p(e),t)},T.gunzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new v(e),t,r)},T.gunzipSync=function(t,e){return c(new v(e),t)},T.inflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new E(e),t,r)},T.inflateRawSync=function(t,e){return c(new E(e),t)},t.inherits(S,a),S.prototype.params=function(t,e,r){if(tT.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(e!=T.Z_FILTERED&&e!=T.Z_HUFFMAN_ONLY&&e!=T.Z_RLE&&e!=T.Z_FIXED&&e!=T.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+e);if(this._level!==t||this._strategy!==e){var n=this;this.flush(s.Z_SYNC_FLUSH,function(){_(n._handle,"zlib binding closed"),n._handle.params(t,e),n._hadError||(n._level=t,n._strategy=e,r&&r())})}else i.nextTick(r)},S.prototype.reset=function(){return _(this._handle,"zlib binding closed"),this._handle.reset()},S.prototype._flush=function(t){this._transform(b.alloc(0),"",t)},S.prototype.flush=function(t,e){var r=this,n=this._writableState;"function"!=typeof t&&(void 0!==t||e)||(e=t,t=s.Z_FULL_FLUSH),n.ended?e&&i.nextTick(e):n.ending?e&&this.once("end",e):n.needDrain?e&&this.once("drain",function(){return r.flush(t,e)}):(this._flushFlag=t,this.write(b.alloc(0),"",e))},S.prototype.close=function(t){j(this,t),i.nextTick(A,this)},S.prototype._transform=function(t,e,r){var n,i=this._writableState,o=(i.ending||i.ended)&&(!t||i.length===t.length);return null===t||b.isBuffer(t)?this._handle?(o?n=this._finishFlushFlag:(n=this._flushFlag,t.length>=i.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),void this._processChunk(t,n,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},S.prototype._processChunk=function(o,a,s){var u=o&&o.length,f=this._chunkSize-this._offset,l=0,h=this,c="function"==typeof s;if(!c){var e,d=[],p=0;this.on("error",function(t){e=t}),_(this._handle,"zlib binding closed");do{var t=this._handle.writeSync(a,o,l,u,this._buffer,this._offset,f)}while(!this._hadError&&m(t[0],t[1]));if(this._hadError)throw e;if(g<=p)throw j(this),new RangeError(y);var r=b.concat(d,p);return j(this),r}_(this._handle,"zlib binding closed");var n=this._handle.write(a,o,l,u,this._buffer,this._offset,f);function m(t,e){if(this&&(this.buffer=null,this.callback=null),!h._hadError){var r=f-e;if(_(0<=r,"have should not go down"),0=h._chunkSize)&&(f=h._chunkSize,h._offset=0,h._buffer=b.allocUnsafe(h._chunkSize)),0===e){if(l+=u-t,u=t,!c)return!0;var i=h._handle.write(a,o,l,u,h._buffer,h._offset,h._chunkSize);return i.callback=m,void(i.buffer=o)}if(!c)return!1;s()}}n.buffer=o,n.callback=m},t.inherits(d,S),t.inherits(p,S),t.inherits(m,S),t.inherits(v,S),t.inherits(w,S),t.inherits(E,S),t.inherits(x,S)}).call(this,I("_process"))},{"./binding":7,_process:53,assert:1,buffer:11,stream:71,util:98}],9:[function(t,e,r){arguments[4][6][0].apply(r,arguments)},{dup:6}],10:[function(t,M,R){(function(P){!function(t){var e="object"==typeof R&&R&&!R.nodeType&&R,r="object"==typeof M&&M&&!M.nodeType&&M,n="object"==typeof P&&P;n.global!==n&&n.window!==n&&n.self!==n||(t=n);var i,o,_=2147483647,g=36,y=1,v=26,a=38,s=700,w=72,E=128,x="-",u=/^xn--/,f=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=g-y,k=Math.floor,S=String.fromCharCode;function j(t){throw new RangeError(h[t])}function d(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function p(t,e){var r=t.split("@"),n="";return 1>>10&1023|55296),t=56320|1023&t),e+=S(t)}).join("")}function T(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function O(t,e,r){var n=0;for(t=r?k(t/s):t>>1,t+=k(t/e);c*v>>1k((_-p)/a))&&j("overflow"),p+=u*a,!(u<(f=s<=b?y:b+v<=s?v:s-b));s+=g)a>k(_/(l=g-f))&&j("overflow"),a*=l;b=O(p-o,e=c.length+1,0==o),k(p/e)>_-m&&j("overflow"),m+=k(p/e),p%=e,c.splice(p++,0,m)}return I(c)}function b(t){var e,r,n,i,o,a,s,u,f,l,h,c,d,p,m,b=[];for(c=(t=A(t)).length,e=E,o=w,a=r=0;ak((_-r)/(d=n+1))&&j("overflow"),r+=(s-e)*d,e=s,a=0;a_&&j("overflow"),h==e){for(u=r,f=g;!(u<(l=f<=o?y:o+v<=f?v:f-o));f+=g)m=u-l,p=g-l,b.push(S(T(l+m%p,0))),u=k(m/p);b.push(S(T(u,0))),o=O(r,d,n==i),r=0,++n}++r,++e}return b.join("")}if(i={version:"1.4.1",ucs2:{decode:A,encode:I},decode:m,encode:b,toASCII:function(t){return p(t,function(t){return f.test(t)?"xn--"+b(t):t})},toUnicode:function(t){return p(t,function(t){return u.test(t)?m(t.slice(4).toLowerCase()):t})}},e&&r)if(M.exports==e)r.exports=i;else for(o in i)i.hasOwnProperty(o)&&(e[o]=i[o]);else t.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],11:[function(N,t,D){(function(h){"use strict";var n=N("base64-js"),o=N("ieee754"),t="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=h,D.SlowBuffer=function(t){+t!=t&&(t=0);return h.alloc(+t)},D.INSPECT_MAX_BYTES=50;var r=2147483647;function a(t){if(r>>1;case"base64":return M(t).length;default:if(i)return n?-1:P(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function p(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s/=a=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=r;o>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function y(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function v(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(t){var e=t.length;if(e<=w)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return k(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return x(this,e,r);case"base64":return y(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},h.prototype.equals=function(t){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){var t="",e=D.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),""},t&&(h.prototype[t]=h.prototype.inspect),h.prototype.compare=function(t,e,r,n,i){if(L(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=e)return 0;if(i<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||ithis.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var o,a,s,u,f,l,h=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return f=e,l=r,R(P(t,(u=this).length-f),u,f,l);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return o=this,a=e,s=r,R(M(t),o,a,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g(this,t,e,r);default:if(h)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;it.length)throw new RangeError("Index out of range")}function I(t,e,r,n){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T(t,e,r,n,i){return e=+e,r>>>=0,i||I(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function O(t,e,r,n,i){return e=+e,r>>>=0,i||I(t,0,r,8),o.write(t,e,r,n,52,8),r+8}h.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r>>=0,e>>>=0,r||j(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||j(t,e,this.length);for(var n=this[t+--e],i=1;0>>=0,e||j(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||j(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||j(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||j(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||j(t,e,this.length);for(var n=e,i=1,o=this[t+--n];0>>=0,e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||j(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(t,e){t>>>=0,e||j(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return t>>>=0,e||j(t,4,this.length),o.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||j(t,4,this.length),o.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||j(t,8,this.length),o.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||j(t,8,this.length),o.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||A(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,n||A(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;0<=--i&&(o*=256);)this[e+i]=t/o&255;return e+r},h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);A(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+r},h.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);A(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;0<=--o&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeFloatLE=function(t,e,r){return T(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return T(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return O(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return O(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,n){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),e>=t.length&&(e=t.length),e=e||0,0=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(o=e;o>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function M(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(e,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function R(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function L(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function C(t){return t!=t}var B=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()}).call(this,N("buffer").Buffer)},{"base64-js":5,buffer:11,ieee754:35}],12:[function(t,e,r){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],13:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],14:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":25}],15:[function(t,e,r){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},{}],16:[function(t,e,r){var o=t("./_a-function");e.exports=function(n,i,t){if(o(n),void 0===i)return n;switch(t){case 1:return function(t){return n.call(i,t)};case 2:return function(t,e){return n.call(i,t,e)};case 3:return function(t,e,r){return n.call(i,t,e,r)}}return function(){return n.apply(i,arguments)}}},{"./_a-function":13}],17:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":20}],18:[function(t,e,r){var n=t("./_is-object"),i=t("./_global").document,o=n(i)&&n(i.createElement);e.exports=function(t){return o?i.createElement(t):{}}},{"./_global":21,"./_is-object":25}],19:[function(t,e,r){var m=t("./_global"),b=t("./_core"),_=t("./_hide"),g=t("./_redefine"),y=t("./_ctx"),v="prototype",w=function(t,e,r){var n,i,o,a,s=t&w.F,u=t&w.G,f=t&w.S,l=t&w.P,h=t&w.B,c=u?m:f?m[e]||(m[e]={}):(m[e]||{})[v],d=u?b:b[e]||(b[e]={}),p=d[v]||(d[v]={});for(n in u&&(r=e),r)o=((i=!s&&c&&void 0!==c[n])?c:r)[n],a=h&&i?y(o,m):l&&"function"==typeof o?y(Function.call,o):o,c&&g(c,n,o,t&w.U),d[n]!=o&&_(d,n,a),l&&p[n]!=o&&(p[n]=o)};m.core=b,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},{"./_core":15,"./_ctx":16,"./_global":21,"./_hide":23,"./_redefine":28}],20:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],21:[function(t,e,r){var n=e.exports=void 0!==window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],22:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],23:[function(t,e,r){var n=t("./_object-dp"),i=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":17,"./_object-dp":26,"./_property-desc":27}],24:[function(t,e,r){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":17,"./_dom-create":18,"./_fails":20}],25:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],26:[function(t,e,r){var n=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),a=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":14,"./_descriptors":17,"./_ie8-dom-define":24,"./_to-primitive":29}],27:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],28:[function(t,e,r){var o=t("./_global"),a=t("./_hide"),s=t("./_has"),u=t("./_uid")("src"),n="toString",i=Function[n],f=(""+i).split(n);t("./_core").inspectSource=function(t){return i.call(t)},(e.exports=function(t,e,r,n){var i="function"==typeof r;i&&(s(r,"name")||a(r,"name",e)),t[e]!==r&&(i&&(s(r,u)||a(r,u,t[e]?""+t[e]:f.join(String(e)))),t===o?t[e]=r:n?t[e]?t[e]=r:a(t,e,r):(delete t[e],a(t,e,r)))})(Function.prototype,n,function(){return"function"==typeof this&&this[u]||i.call(this)})},{"./_core":15,"./_global":21,"./_has":22,"./_hide":23,"./_uid":30}],29:[function(t,e,r){var i=t("./_is-object");e.exports=function(t,e){if(!i(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!i(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!i(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!i(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":25}],30:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],31:[function(t,e,r){var n=t("./_export");n(n.S+n.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":17,"./_export":19,"./_object-dp":26}],32:[function(t,e,r){(function(t){function e(t){return Object.prototype.toString.call(t)}r.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},r.isBoolean=function(t){return"boolean"==typeof t},r.isNull=function(t){return null===t},r.isNullOrUndefined=function(t){return null==t},r.isNumber=function(t){return"number"==typeof t},r.isString=function(t){return"string"==typeof t},r.isSymbol=function(t){return"symbol"==typeof t},r.isUndefined=function(t){return void 0===t},r.isRegExp=function(t){return"[object RegExp]"===e(t)},r.isObject=function(t){return"object"==typeof t&&null!==t},r.isDate=function(t){return"[object Date]"===e(t)},r.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},r.isFunction=function(t){return"function"==typeof t},r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},r.isBuffer=t.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":37}],33:[function(t,e,r){var u=Object.create||function(t){function e(){}return e.prototype=t,new e},a=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return r},o=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function n(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=u(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((e.exports=n).EventEmitter=n).prototype._events=void 0,n.prototype._maxListeners=void 0;var i,s=10;try{var f={};Object.defineProperty&&Object.defineProperty(f,"x",{value:0}),i=0===f.x}catch(t){i=!1}function l(t){return void 0===t._maxListeners?n.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,o,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]):(o=t._events=u(null),t._eventsCount=0),a){if("function"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=l(t))&&0i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=o[e]=r,++t._eventsCount;return t}function c(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e>1,l=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,o=d&(1<<-l)-1,d>>=-l,l+=s;0>=-l,l+=n;0>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(e+=1<=a+h?c/u:c*Math.pow(2,1-h))*u&&(a++,u/=2),l<=a+h?(s=0,a=l):1<=a+h?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));8<=i;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var i=s,o=n+r;t^=-1;for(var a=n;a>>8^i[255&(t^e[a])];return-1^t}},{}],44:[function(t,e,r){"use strict";var u,c=t("../utils/common"),f=t("./trees"),d=t("./adler32"),p=t("./crc32"),n=t("./messages"),l=0,h=4,m=0,b=-2,_=-1,g=4,i=2,y=8,v=9,o=286,a=30,s=19,w=2*o+1,E=15,x=3,k=258,S=k+x+1,j=42,A=113,I=1,T=2,O=3,P=4;function M(t,e){return t.msg=n[e],e}function R(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(c.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function B(t,e){f._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,C(t.strm)}function N(t,e){t.pending_buf[t.pending++]=e}function D(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-S?t.strstart-(t.w_size-S):0,f=t.window,l=t.w_mask,h=t.prev,c=t.strstart+k,d=f[o+a-1],p=f[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(f[(r=e)+a]===p&&f[r+a-1]===d&&f[r]===f[o]&&f[++r]===f[o+1]){o+=2,r++;do{}while(f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&ou&&0!=--i);return a<=t.lookahead?a:t.lookahead}function F(t){var e,r,n,i,o,a,s,u,f,l,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-S)){for(c.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=r=t.hash_size;n=t.head[--e],t.head[e]=h<=n?n-h:0,--r;);for(e=r=h;n=t.prev[--e],t.prev[e]=h<=n?n-h:0,--r;);i+=h}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,u=t.strstart+t.lookahead,f=i,l=void 0,l=a.avail_in,f=x)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<=x&&(t.ins_h=(t.ins_h<=x)if(n=f._tr_tally(t,t.strstart-t.match_start,t.match_length-x),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=x){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=x&&(t.ins_h=(t.ins_h<=x&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-x,n=f._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-x),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(F(t),0===t.lookahead&&e===l)return I;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,B(t,!1),0===t.strm.avail_out))return I;if(t.strstart-t.block_start>=t.w_size-S&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:P):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),I)}),new G(4,4,8,4,z),new G(4,5,16,8,z),new G(4,6,32,32,z),new G(4,4,16,16,H),new G(8,16,32,32,H),new G(8,16,128,128,H),new G(8,32,128,256,H),new G(32,128,258,1024,H),new G(32,258,258,4096,H)],r.deflateInit=function(t,e){return Y(t,e,y,15,8,0)},r.deflateInit2=Y,r.deflateReset=Z,r.deflateResetKeep=q,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?b:(t.state.gzhead=e,m):b},r.deflate=function(t,e){var r,n,i,o;if(!t||!t.state||5>8&255),N(n,n.gzhead.time>>16&255),N(n,n.gzhead.time>>24&255),N(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),N(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(N(n,255&n.gzhead.extra.length),N(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=p(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(N(n,0),N(n,0),N(n,0),N(n,0),N(n,0),N(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),N(n,3),n.status=A);else{var a=y+(n.w_bits-8<<4)<<8;a|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=A,D(n,a),0!==n.strstart&&(D(n,t.adler>>>16),D(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending!==n.pending_buf_size));)N(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&C(t),n.pending+2<=n.pending_buf_size&&(N(n,255&t.adler),N(n,t.adler>>8&255),t.adler=0,n.status=A)):n.status=A),0!==n.pending){if(C(t),0===t.avail_out)return n.last_flush=-1,m}else if(0===t.avail_in&&R(e)<=R(r)&&e!==h)return M(t,-5);if(666===n.status&&0!==t.avail_in)return M(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==l&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(F(t),0===t.lookahead)){if(e===l)return I;break}if(t.match_length=0,r=f._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):3===n.strategy?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=k){if(F(t),t.lookahead<=k&&e===l)return I;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=x&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=x?(r=f._tr_tally(t,1,t.match_length-x),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=f._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):u[n.level].func(n,e);if(s!==O&&s!==P||(n.status=666),s===I||s===O)return 0===t.avail_out&&(n.last_flush=-1),m;if(s===T&&(1===e?f._tr_align(n):5!==e&&(f._tr_stored_block(n,0,0,!1),3===e&&(L(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),C(t),0===t.avail_out))return n.last_flush=-1,m}return e!==h?m:n.wrap<=0?1:(2===n.wrap?(N(n,255&t.adler),N(n,t.adler>>8&255),N(n,t.adler>>16&255),N(n,t.adler>>24&255),N(n,255&t.total_in),N(n,t.total_in>>8&255),N(n,t.total_in>>16&255),N(n,t.total_in>>24&255)):(D(n,t.adler>>>16),D(n,65535&t.adler)),C(t),0=r.w_size&&(0===o&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new c.Buf8(r.w_size),c.arraySet(f,e,l-r.w_size,r.w_size,0),e=f,l=r.w_size),a=t.avail_in,s=t.next_in,u=t.input,t.avail_in=l,t.next_in=0,t.input=e,F(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>=v=y>>>24,p-=v,0===(v=y>>>16&255))j[o++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=m[(65535&y)+(d&(1<>>=v,p-=v),p<15&&(d+=S[n++]<>>=v=y>>>24,p-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=b[(65535&y)+(d&(1<>>=v,p-=v,(v=o-a)>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new T.Buf16(320),this.work=new T.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=D,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new T.Buf32(n),e.distcode=e.distdyn=new T.Buf32(i),e.sane=1,e.back=-1,B):N}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,a(t)):N}function u(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=o.wsize?(T.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(n<(i=o.wsize-o.wnext)&&(i=n),T.arraySet(o.window,e,r-n,i,o.wnext),(n-=i)?(T.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=P(r.check,A,2,0),l=f=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&f)){t.msg="unknown compression method",r.mode=30;break}if(l-=4,E=8+(15&(f>>>=4)),0===r.wbits)r.wbits=E;else if(E>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(A[0]=255&f,A[1]=f>>>8&255,r.check=P(r.check,A,2,0)),l=f=0,r.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,f+=n[o++]<>>8&255,A[2]=f>>>16&255,A[3]=f>>>24&255,r.check=P(r.check,A,4,0)),l=f=0,r.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,f+=n[o++]<>8),512&r.flags&&(A[0]=255&f,A[1]=f>>>8&255,r.check=P(r.check,A,2,0)),l=f=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===s)break t;s--,f+=n[o++]<>>8&255,r.check=P(r.check,A,2,0)),l=f=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(s<(d=r.length)&&(d=s),d&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),T.arraySet(r.head.extra,n,o,d,E)),512&r.flags&&(r.check=P(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;for(d=0;E=n[o+d++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E)),E&&d>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===s)break t;s--,f+=n[o++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===s)break t;s--,f+=n[o++]<>>=1)){case 0:r.mode=14;break;case 1:if(F(r),r.mode=20,6!==e)break;f>>>=2,l-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}f>>>=2,l-=2;break;case 14:for(f>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,f+=n[o++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&f,l=f=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(s>>=5,l-=5,r.ndist=1+(31&f),f>>>=5,l-=5,r.ncode=4+(15&f),f>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},x=R(0,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,x){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,g=65535&j,!((b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>>=b,l-=b,r.lens[r.have++]=g;else{if(16===g){for(S=b+2;l>>=b,l-=b,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}E=r.lens[r.have-1],d=3+(3&f),f>>>=2,l-=2}else if(17===g){for(S=b+3;l>>=b)),f>>>=3,l-=3}else{for(S=b+7;l>>=b)),f>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=E}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,k={bits:r.lenbits},x=R(L,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,x){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},x=R(C,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,x){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=s&&258<=u){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=f,r.bits=l,M(t,c),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,f=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;_=(j=r.lencode[f&(1<>>16&255,g=65535&j,!((b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>y)])>>>16&255,g=65535&j,!(y+(b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>>=y,l-=y,r.back+=y}if(f>>>=b,l-=b,r.back+=b,r.length=g,0===_){r.mode=26;break}if(32&_){r.back=-1,r.mode=12;break}if(64&_){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&_,r.mode=22;case 22:if(r.extra){for(S=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;_=(j=r.distcode[f&(1<>>16&255,g=65535&j,!((b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>y)])>>>16&255,g=65535&j,!(y+(b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<>>=y,l-=y,r.back+=y}if(f>>>=b,l-=b,r.back+=b,64&_){t.msg="invalid distance code",r.mode=30;break}r.offset=g,r.extra=15&_,r.mode=24;case 24:if(r.extra){for(S=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===u)break t;if(d=c-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=a-r.offset,d=r.length;for(ud?(m=M[R+a[y]],I[T+a[y]]):(m=96,0),u=1<>k)+(f-=u)]=p<<24|m<<16|b|0,0!==f;);for(u=1<>=1;if(0!==u?(A&=u-1,A+=u):A=0,y++,0==--O[g]){if(g===w)break;g=e[r+a[y]]}if(E>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function D(t,e,r){t.bi_valid>d-r?(t.bi_buf|=e<>d-t.bi_valid,t.bi_valid+=r-d):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function z(t,e,r){var n,i,o=new Array(_+1),a=0;for(n=1;n<=_;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=F(o[s]++,s))}}function H(t){var e;for(e=0;e>1;1<=r;r--)q(t,o,r);for(i=u;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],q(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,q(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,f=e.max_code,l=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,m=0;for(o=0;o<=_;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r>=7;n>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return s;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return u;for(e=32;e>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?K(t,e,r,n):4===t.strategy||o===i?(D(t,2+(n?1:0),3),Z(t,S,j)):(D(t,4+(n?1:0),3),function(t,e,r,n){var i;for(D(t,e-257,5),D(t,r-1,5),D(t,n-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(I[r]+f+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){D(t,2,3),U(t,m,S),function(t){16===t.bi_valid?(N(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":40}],50:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],51:[function(t,e,f){(function(i){function o(t,e){for(var r=0,n=t.length-1;0<=n;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;)t.unshift("..");return t}function a(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;ne.highWaterMark&&(e.highWaterMark=function(t){return v<=t?t=v:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(y("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?b.nextTick(x,t):x(t))}function x(t){y("emit readable"),t.emit("readable"),I(t)}function k(t,e){e.readingMore||(e.readingMore=!0,b.nextTick(S,t,e))}function S(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(a);break}++n}return e.length-=n,i}(t,e):function(t,e){var r=s.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=o.slice(a);break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function O(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return y("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?O(this):E(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,i=e.needReadable;return y("need readable",i),(0===e.length||e.length-t>>0),o=this.head,a=0;o;)e=o.data,r=i,n=a,e.copy(r,n),a+=o.data.length,o=o.next;return i},i),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":70,util:6}],64:[function(t,e,r){"use strict";var o=t("process-nextick-args");function a(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(o.nextTick(a,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":52}],65:[function(t,e,r){e.exports=t("events").EventEmitter},{events:33}],66:[function(t,e,r){e.exports=t("./readable").PassThrough},{"./readable":67}],67:[function(t,e,r){(((r=e.exports=t("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=t("./lib/_stream_writable.js"),r.Duplex=t("./lib/_stream_duplex.js"),r.Transform=t("./lib/_stream_transform.js"),r.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":58,"./lib/_stream_passthrough.js":59,"./lib/_stream_readable.js":60,"./lib/_stream_transform.js":61,"./lib/_stream_writable.js":62}],68:[function(t,e,r){e.exports=t("./readable").Transform},{"./readable":67}],69:[function(t,e,r){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":62}],70:[function(t,e,r){var n=t("buffer"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,r),r.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:11}],71:[function(t,e,r){e.exports=n;var l=t("events").EventEmitter;function n(){l.call(this)}t("inherits")(n,l),n.Readable=t("readable-stream/readable.js"),n.Writable=t("readable-stream/writable.js"),n.Duplex=t("readable-stream/duplex.js"),n.Transform=t("readable-stream/transform.js"),n.PassThrough=t("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(t){if(f(),0===l.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},{events:33,inherits:36,"readable-stream/duplex.js":57,"readable-stream/passthrough.js":66,"readable-stream/readable.js":67,"readable-stream/transform.js":68,"readable-stream/writable.js":69}],72:[function(r,t,i){(function(u){var f=r("./lib/request"),t=r("./lib/response"),l=r("xtend"),e=r("builtin-status-codes"),h=r("url"),n=i;n.request=function(t,e){t="string"==typeof t?h.parse(t):l(t);var r=-1===u.location.protocol.search(/^https?:$/)?"http:":"",n=t.protocol||r,i=t.hostname||t.host,o=t.port,a=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?n+"//"+i:"")+(o?":"+o:"")+a,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var s=new f(t);return e&&s.on("response",e),s},n.get=function(t,e){var r=n.request(t,e);return r.end(),r},n.ClientRequest=f,n.IncomingMessage=t.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=e,n.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"./lib/request":74,"./lib/response":75,"builtin-status-codes":12,url:93,xtend:99}],73:[function(t,e,o){(function(t){var e;function r(){if(void 0!==e)return e;if(t.XMLHttpRequest){e=new t.XMLHttpRequest;try{e.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){e=null}}else e=null;return e}function n(t){var e=r();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}function i(t){return"function"==typeof t}o.fetch=i(t.fetch)&&i(t.ReadableStream),o.writableStream=i(t.WritableStream),o.abortController=i(t.AbortController),o.arraybuffer=o.fetch||n("arraybuffer"),o.msstream=!o.fetch&&n("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&n("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||!!r()&&i(r().overrideMimeType),e=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],74:[function(s,c,t){(function(u,f,i){var l=s("./capability"),t=s("inherits"),e=s("./response"),o=s("readable-stream"),r=e.IncomingMessage,h=e.readyStates;var n=c.exports=function(e){var t,r=this;o.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+i.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!l.abortController)t=!(n=!1);else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!l.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(t,e){return l.fetch&&e?"fetch":l.mozchunkedarraybuffer?"moz-chunked-arraybuffer":l.msstream?"ms-stream":l.arraybuffer&&t?"arraybuffer":"text"}(t,n),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};t(n,o.Writable),n.prototype.setHeader=function(t,e){var r=t.toLowerCase();-1===a.indexOf(r)&&(this._headers[r]={name:t,value:e})},n.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},n.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},n.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,n=e._headers,r=null;"GET"!==t.method&&"HEAD"!==t.method&&(r=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var i=[];if(Object.keys(n).forEach(function(t){var e=n[t].name,r=n[t].value;Array.isArray(r)?r.forEach(function(t){i.push([e,t])}):i.push([e,r])}),"fetch"===e._mode){var o=null;if(l.abortController){var a=new AbortController;o=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=f.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}f.fetch(e._opts.url,{method:e._opts.method,headers:i,body:r||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:o}).then(function(t){e._fetchResponse=t,e._connect()},function(t){f.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var s=e._xhr=new f.XMLHttpRequest;try{s.open(e._opts.method,e._opts.url,!0)}catch(t){return void u.nextTick(function(){e.emit("error",t)})}"responseType"in s&&(s.responseType=e._mode),"withCredentials"in s&&(s.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(s.timeout=t.requestTimeout,s.ontimeout=function(){e.emit("requestTimeout")}),i.forEach(function(t){s.setRequestHeader(t[0],t[1])}),e._response=null,s.onreadystatechange=function(){switch(s.readyState){case h.LOADING:case h.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(s.onprogress=function(){e._onXHRProgress()}),s.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{s.send(r)}catch(t){return void u.nextTick(function(){e.emit("error",t)})}}}},n.prototype._onXHRProgress=function(){var t=this;!function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}}(t._xhr)||t._destroyed||(t._response||t._connect(),t._response._onXHRProgress())},n.prototype._connect=function(){var e=this;e._destroyed||(e._response=new r(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},n.prototype._write=function(t,e,r){this._body.push(t),r()},n.prototype.abort=n.prototype.destroy=function(){var t=this;t._destroyed=!0,f.clearTimeout(t._fetchTimer),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort()},n.prototype.end=function(t,e,r){"function"==typeof t&&(r=t,t=void 0),o.Writable.prototype.end.call(this,t,e,r)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var a=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,s("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{},s("buffer").Buffer)},{"./capability":73,"./response":75,_process:53,buffer:11,inherits:36,"readable-stream":90}],75:[function(r,t,n){(function(f,l,h){var c=r("./capability"),t=r("inherits"),d=r("readable-stream"),s=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},e=n.IncomingMessage=function(t,e,r,n){var i=this;if(d.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){f.nextTick(function(){i.emit("close")})}),"fetch"===r){if(i._fetchResponse=e,i.url=e.url,i.statusCode=e.status,i.statusMessage=e.statusText,e.headers.forEach(function(t,e){i.headers[e.toLowerCase()]=t,i.rawHeaders.push(e,t)}),c.writableStream){var o=new WritableStream({write:function(r){return new Promise(function(t,e){i._destroyed?e():i.push(h.from(r))?t():i._resumeFetch=t})},close:function(){l.clearTimeout(n),i._destroyed||i.push(null)},abort:function(t){i._destroyed||i.emit("error",t)}});try{return void e.body.pipeTo(o).catch(function(t){l.clearTimeout(n),i._destroyed||i.emit("error",t)})}catch(t){}}var a=e.body.getReader();!function e(){a.read().then(function(t){if(!i._destroyed){if(t.done)return l.clearTimeout(n),void i.push(null);i.push(h.from(t.value)),e()}}).catch(function(t){l.clearTimeout(n),i._destroyed||i.emit("error",t)})}()}else{if(i._xhr=t,i._pos=0,i.url=t.responseURL,i.statusCode=t.status,i.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var r=e[1].toLowerCase();"set-cookie"===r?(void 0===i.headers[r]&&(i.headers[r]=[]),i.headers[r].push(e[2])):void 0!==i.headers[r]?i.headers[r]+=", "+e[2]:i.headers[r]=e[2],i.rawHeaders.push(e[1],e[2])}}),i._charset="x-user-defined",!c.overrideMimeType){var s=i.rawHeaders["mime-type"];if(s){var u=s.match(/;\s*charset=([^;])(;|$)/);u&&(i._charset=u[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};t(e,d.Readable),e.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},e.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text":if((r=e.responseText).length>t._pos){var n=r.substr(t._pos);if("x-user-defined"===t._charset){for(var i=h.alloc(n.length),o=0;ot._pos&&(t.push(h.from(new Uint8Array(a.result.slice(t._pos)))),t._pos=a.result.byteLength)},a.onload=function(){t.push(null)},a.readAsArrayBuffer(r)}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{},r("buffer").Buffer)},{"./capability":73,_process:53,buffer:11,inherits:36,"readable-stream":90}],76:[function(t,e,r){"use strict";var n={};function i(t,i,e){var r=function(n){function t(t,e,r){return n.call(this,function(t,e,r){return"string"==typeof i?i:i(t,e,r)}(t,e,r))||this}return function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}(t,n),t}(e=e||Error);r.prototype.name=e.name,r.prototype.code=t,n[t]=r}function a(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),2t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))i="The ".concat(t," ").concat(n," ").concat(a(e,"type"));else{var o=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(n," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},{}],77:[function(t,e,r){(function(r){"use strict";var n=new Set;e.exports.emitExperimentalWarning=r.emitWarning?function(t){if(!n.has(t)){var e=t+" is an experimental feature. This feature could change at any time";n.add(t),r.emitWarning(e,"ExperimentalWarning")}}:function(){}}).call(this,t("_process"))},{_process:53}],78:[function(l,h,t){(function(t){"use strict";var e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};h.exports=s;var r=l("./_stream_readable"),n=l("./_stream_writable");l("inherits")(s,r);for(var i=e(n.prototype),o=0;oe.highWaterMark&&(e.highWaterMark=function(t){return S<=t?t=S:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function A(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(b("emitReadable",e.flowing),e.emittedReadable=!0,p.nextTick(I,t))}function I(t){var e=t._readableState;b("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||t.emit("readable"),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,L(t)}function T(t,e){e.readingMore||(e.readingMore=!0,p.nextTick(O,t,e))}function O(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function B(t){var e=t._readableState;b("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,p.nextTick(N,e,t))}function N(t,e){b("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function D(t,e){for(var r=0,n=t.length;r=e.highWaterMark:0>>0),o=this.head,a=0;o;)e=o.data,r=i,n=a,s.prototype.copy.call(e,r,n),a+=o.data.length,o=o.next;return i},e.consume=function(t,e){var r;return ti.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0===(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=i.slice(o);break}++r}return this.length-=r,n},e._getBuffer=function(t){var e=s.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r).data=i.slice(o);break}++n}return this.length-=n,e},e[o]=function(t,e){return n(this,function(e){for(var t=1;t>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function u(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(1",'"',"`"," ","\r","\n","\t"]),N=["'"].concat(i),D=["%","/","?",";","#"].concat(N),U=["/","?","#"],F=/^[+a-z0-9A-Z_-]{0,63}$/,z=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,H={javascript:!0,"javascript:":!0},G={javascript:!0,"javascript:":!0},W={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},q=t("querystring");function o(t,e,r){if(t&&L.isObject(t)&&t instanceof A)return t;var n=new A;return n.parse(t,e,r),n}A.prototype.parse=function(t,e,r){if(!L.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),i=-1!==n&&n (HTTP: "+e.statusCode+")";return new Error(n)})}var R,L={data:null,width:null,height:null},C=function(){function b(){for(var n,t=arguments.length,i=new Array(t),e=0;e"}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||b.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return f.getExtension(t)}},{key:"write",value:function(n,i){var o=this;if(!g.default||!g.default.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof n)return y.throwError.call(this,"path must be a string",i);if(void 0===i&&(i=P),"function"!=typeof i)return y.throwError.call(this,"cb must be a function",i);var t=f.getType(n)||this.getMIME(),e=r.default.parse(n);return e.dir&&a.default.sync(e.dir),this.getBuffer(t,function(t,e){if(t)return y.throwError.call(o,t,i);var r=g.default.createWriteStream(n);r.on("open",function(){r.write(e),r.end()}).on("error",function(t){return y.throwError.call(o,t,i)}),r.on("finish",function(){i.call(o,null,o)})}),this}},{key:"getBase64",value:function(n,i){return n===b.AUTO&&(n=this.getMIME()),"string"!=typeof n?y.throwError.call(this,"mime must be a string",i):"function"!=typeof i?y.throwError.call(this,"cb must be a function",i):(this.getBuffer(n,function(t,e){if(t)return y.throwError.call(this,t,i);var r="data:"+n+";base64,"+e.toString("base64");i.call(this,null,r)}),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return y.throwError.call(this,"base must be a number",e);if(t<2||64=this.bitmap.width&&(i=this.bitmap.width-1),e<0&&(o=0),e>=this.bitmap.height&&(o=this.bitmap.height-1)),r===b.EDGE_WRAP&&(t<0&&(i=this.bitmap.width+t),t>=this.bitmap.width&&(i=t%this.bitmap.width),e<0&&(i=this.bitmap.height+e),e>=this.bitmap.height&&(o=e%this.bitmap.height));var a=this.bitmap.width*o+i<<2;return(i<0||i>=this.bitmap.width)&&(a=-1),(o<0||o>=this.bitmap.height)&&(a=-1),(0,y.isNodePattern)(n)&&n.call(this,null,a),a}},{key:"getPixelColor",value:function(t,e,r){if("number"!=typeof t||"number"!=typeof e)return y.throwError.call(this,"x and y must be numbers",r);t=Math.round(t),e=Math.round(e);var n=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(n);return(0,y.isNodePattern)(r)&&r.call(this,null,i),i}},{key:"setPixelColor",value:function(t,e,r,n){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof r)return y.throwError.call(this,"hex, x and y must be numbers",n);e=Math.round(e),r=Math.round(r);var i=this.getPixelIndex(e,r);return this.bitmap.data.writeUInt32BE(t,i),(0,y.isNodePattern)(n)&&n.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var t=0;ti.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),"number"!=typeof r||r<0||1u?"1":"0";return f};var d=[];e.exports=n},{}],107:[function(e,r,t){(function(t,i){"use strict";e("core-js/modules/es6.array.for-each"),e("core-js/modules/es6.array.filter"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.object.define-property"),e("core-js/modules/es6.object.assign"),t.browser,r.exports=function(e,r){var n=new XMLHttpRequest;n.open("GET",e.url,!0),n.responseType="arraybuffer",n.addEventListener("load",function(){if(n.status<400)try{var t=i.from(this.response);r(null,n,t)}catch(t){return r(new Error("Response is not a buffer for url "+e.url+". Error: "+t.message))}else r(new Error("HTTP Status "+n.status+" for url "+e.url))}),n.addEventListener("error",function(t){r(t)}),n.send()}}).call(this,e("_process"),e("buffer").Buffer)},{_process:53,buffer:11,"core-js/modules/es6.array.filter":243,"core-js/modules/es6.array.for-each":246,"core-js/modules/es6.array.iterator":250,"core-js/modules/es6.object.assign":255,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.object.keys":258,"core-js/modules/web.dom.iterable":277,phin:321}],108:[function(l,t,h){(function(n){"use strict";l("core-js/modules/es6.object.define-property"),Object.defineProperty(h,"__esModule",{value:!0}),h.parseBitmap=function(t,e,r){var n=function(t,e){var r=(0,o.default)(t);if(r)return r.mime;if(e)return u.getType(e);return null}(t,e);if("string"!=typeof n)return r(new Error("Could not find MIME for Buffer <"+e+">"));this._originalMime=n.toLowerCase();try{var i=this.getMIME();if(!this.constructor.decoders[i])return s.throwError.call(this,"Unsupported MIME type: "+i,r);this.bitmap=this.constructor.decoders[i](t)}catch(t){return r.call(this,t,this)}try{this._exif=a.default.create(t).parse(),function(t){var e=t._exif;if(e&&e.tags&&e.tags.Orientation)switch(t._exif.tags.Orientation){case 1:break;case 2:t.mirror(!0,!1);break;case 3:t.rotate(180,!1);break;case 4:t.mirror(!1,!0);break;case 5:t.rotate(-90,!1).mirror(!0,!1);break;case 6:t.rotate(-90,!1);break;case 7:t.rotate(90,!1).mirror(!0,!1);break;case 8:t.rotate(-270,!1)}}(this)}catch(t){}return r.call(this,null,this),this},h.getBuffer=f,h.getBufferAsync=function(t){return(0,e.default)(f,this,t)};var o=r(l("file-type")),a=r(l("exif-parser")),s=l("@jimp/utils"),i=t(l("../constants")),u=t(l("./mime")),e=r(l("./promisify"));function t(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(t===i.AUTO&&(t=this.getMIME()),"string"!=typeof t)return s.throwError.call(this,"mime must be a string",e);if("function"!=typeof e)return s.throwError.call(this,"cb must be a function",e);if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=n.from(this.bitmap.data):this.bitmap.data=function(t,e){return new t(e.bitmap.width,e.bitmap.height,e._background).composite(e,0,0).bitmap}(this.constructor,this).data,this.constructor.encoders[t]){var r=this.constructor.encoders[t](this);e.call(this,null,r)}else e.call(this,"Unsupported MIME type: "+t);return this}}).call(this,l("buffer").Buffer)},{"../constants":104,"./mime":109,"./promisify":110,"@jimp/utils":139,buffer:11,"core-js/modules/es6.object.define-property":257,"exif-parser":278,"file-type":287}],109:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.getExtension=r.getType=r.addType=void 0,t("core-js/modules/es6.regexp.split"),t("core-js/modules/es7.array.includes"),t("core-js/modules/es6.string.includes"),t("core-js/modules/web.dom.iterable"),t("core-js/modules/es6.array.iterator"),t("core-js/modules/es7.object.entries"),t("core-js/modules/es6.array.find");var n={};r.addType=function(t,e){n[t]=e};r.getType=function(t){var e=t.split("/").slice(-1);return function(e){return Object.entries(n).find(function(t){return t[1].includes(e)})||[]}(e[e.length-1].split(".")[1])[0]};r.getExtension=function(t){return(n[t.toLowerCase()]||[])[0]}},{"core-js/modules/es6.array.find":245,"core-js/modules/es6.array.iterator":250,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.regexp.split":265,"core-js/modules/es6.string.includes":267,"core-js/modules/es7.array.includes":274,"core-js/modules/es7.object.entries":275,"core-js/modules/web.dom.iterable":277}],110:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es6.function.bind"),t("core-js/modules/es6.promise");function n(t,e){for(var r=arguments.length,i=new Array(2>8)+l,v.bitmap.data[o+1]=(f*(s-h)-h+255>>8)+h,v.bitmap.data[o+2]=(f*(u-c)-c+255>>8)+c,v.bitmap.data[o+3]=this.constructor.limit255(d+f)}}),(0,i.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.symbol":269,"core-js/modules/es7.symbol.async-iterator":276}],115:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.shgTable=r.mulTable=void 0;r.mulTable=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1];r.shgTable=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18]},{"core-js/modules/es6.object.define-property":257}],116:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var I=t("@jimp/utils"),T=t("./blur-tables");r.default=function(){return{blur:function(t,e){if("number"!=typeof t)return I.throwError.call(this,"r must be a number",e);if(t<1)return I.throwError.call(this,"r must be greater than 0",e);for(var r,n,i,o,a,s,u,f,l,h,c,d,p,m,b=this.bitmap.width-1,_=this.bitmap.height-1,g=t+1,y=T.mulTable[t],v=T.shgTable[t],w=[],E=[],x=[],k=[],S=[],j=[],A=2;0>>v,255<(this.bitmap.data[d+3]=m)&&(this.bitmap.data[d+3]=255),0>>v)*m,this.bitmap.data[d+1]=(n*y>>>v)*m,this.bitmap.data[d+2]=(i*y>>>v)*m):(this.bitmap.data[d+2]=0,this.bitmap.data[d+1]=0,this.bitmap.data[d]=0),0===a&&(S[s]=((f=s+g)<_?f:_)*this.bitmap.width,j[s]=0<(f=s-t)?f*this.bitmap.width:0),l=a+S[s],h=a+j[s],r+=w[l]-w[h],n+=E[l]-E[h],i+=x[l]-x[h],o+=k[l]-k[h],d+=this.bitmap.width<<2}}return(0,I.isNodePattern)(e)&&e.call(this,null,this),this}}},e.exports=r.default},{"./blur-tables":115,"@jimp/utils":139,"core-js/modules/es6.object.define-property":257}],117:[function(i,o,a){(function(n){"use strict";i("core-js/modules/es6.object.define-property"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,i("core-js/modules/es6.string.iterator"),i("core-js/modules/es6.array.from"),i("core-js/modules/es6.regexp.to-string"),i("core-js/modules/es6.date.to-string"),i("core-js/modules/es7.symbol.async-iterator"),i("core-js/modules/es6.symbol"),i("core-js/modules/web.dom.iterable"),i("core-js/modules/es6.array.for-each"),i("core-js/modules/es6.array.map"),i("core-js/modules/es6.array.is-array");var t,u=(t=i("tinycolor2"))&&t.__esModule?t:{default:t},E=i("@jimp/utils");function f(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e>3;if((0==o||o&o-1)&&(0==a||a&a-1))return h.throwError.call(this,"only use one flag per alignment direction",i);var s=o>>1,u=a>>1,f=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,l=this.cloneQuiet().scale(f,n);return this.resize(t,e,n),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)}),this.blit(l,(this.bitmap.width-l.bitmap.width)/2*s,(this.bitmap.height-l.bitmap.height)/2*u),(0,h.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257}],119:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var l=t("@jimp/utils");r.default=function(){return{cover:function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return l.throwError.call(this,"w and h must be numbers",i);r&&"function"==typeof r&&void 0===i?(i=r,n=r=null):"function"==typeof n&&void 0===i&&(i=n,n=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=r>>3;if((0==o||o&o-1)&&(0==a||a&a-1))return l.throwError.call(this,"only use one flag per alignment direction",i);var s=o>>1,u=a>>1,f=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(f,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),(0,l.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257}],120:[function(t,e,r){(function(f){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return t("crop",function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return B.throwError.call(this,"x and y must be numbers",i);if("number"!=typeof r||"number"!=typeof n)return B.throwError.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),r=Math.round(r),n=Math.round(n),0===t&&r===this.bitmap.width){var o=r*e+t<<2,a=o+n*r<<3;this.bitmap.data=this.bitmap.data.slice(o,a)}else{var s=f.allocUnsafe(r*n*4),u=0;this.scanQuiet(t,e,r,n,function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);s.writeUInt32BE(n,u,!0),u+=4}),this.bitmap.data=s}return this.bitmap.width=r,this.bitmap.height=n,(0,B.isNodePattern)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,n=0,i=2e-4,o=!0,a=!1,s=0,u=arguments.length;si){c-=n;break t}}c++}l=this.getPixelColor(e,0);t:for(var v=0;vi){d-=n;break t}}d++}l=this.getPixelColor(0,r);t:for(var k=r-1;c+1<=k;k--){for(var S=e-d-1;0<=S;S--){var j=this.getPixelColor(S,k),A=this.constructor.intToRGBA(j);if(this.constructor.colorDiff(h,A)>i){p-=n;break t}}p++}l=this.getPixelColor(e,r);t:for(var I=e-1;0+d+1<=I;I--){for(var T=r-1;0+c<=T;T--){var O=this.getPixelColor(I,T),P=this.constructor.intToRGBA(O);if(this.constructor.colorDiff(h,P)>i){m-=n;break t}}m++}if(a){var M=Math.min(d,m),R=Math.min(c,p);d=m=M,p=c=R}var L=e-(m+d),C=r-(p+c);return(o?0!==d&&0!==c&&0!==m&&0!==p:0!==d||0!==c||0!==m||0!==p)&&this.crop(d,c,L,C),(0,B.isNodePattern)(t)&&t.call(this,null,this),this}}}},t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol");var B=t("@jimp/utils");function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports=r.default}).call(this,t("buffer").Buffer)},{"@jimp/utils":139,buffer:11,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.symbol":269,"core-js/modules/es7.symbol.async-iterator":276}],121:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol");var n=t("@jimp/utils");function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.default=function(){return{displace:function(o,a,t){if("object"!==i(o)||o.constructor!==this.constructor)return n.throwError.call(this,"The source must be a Jimp image",t);if("number"!=typeof a)return n.throwError.call(this,"factor must be a number",t);var s=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=o.bitmap.data[r]/256*a;n=Math.round(n);var i=this.getPixelIndex(t+n,e);this.bitmap.data[i]=s.bitmap.data[r],this.bitmap.data[i+1]=s.bitmap.data[r+1],this.bitmap.data[i+2]=s.bitmap.data[r+2]}),(0,n.isNodePattern)(t)&&t.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.symbol":269,"core-js/modules/es7.symbol.async-iterator":276}],122:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=t("@jimp/utils");function i(t){var i=[1,9,3,11,13,5,15,7,4,12,2,10,16,8,14,6];return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=i[((3&e)<<2)+t%4];this.bitmap.data[r]=Math.min(this.bitmap.data[r]+n,255),this.bitmap.data[r+1]=Math.min(this.bitmap.data[r+1]+n,255),this.bitmap.data[r+2]=Math.min(this.bitmap.data[r+2]+n,255)}),(0,n.isNodePattern)(t)&&t.call(this,null,this),this}r.default=function(){return{dither565:i,dither16:i}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257}],123:[function(n,i,o){(function(e){"use strict";n("core-js/modules/es6.object.define-property"),Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=n("@jimp/utils");function t(s,u,t){if("boolean"!=typeof s||"boolean"!=typeof u)return r.throwError.call(this,"horizontal and vertical must be Booleans",t);if(s&&u)return this.rotate(180,!0,t);var f=e.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=s?this.bitmap.width-1-t:t,i=u?this.bitmap.height-1-e:e,o=this.bitmap.width*i+n<<2,a=this.bitmap.data.readUInt32BE(r);f.writeUInt32BE(a,o)}),this.bitmap.data=e.from(f),(0,r.isNodePattern)(t)&&t.call(this,null,this),this}o.default=function(){return{flip:t,mirror:t}},i.exports=o.default}).call(this,n("buffer").Buffer)},{"@jimp/utils":139,buffer:11,"core-js/modules/es6.object.define-property":257}],124:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var g=t("@jimp/utils");r.default=function(){return{gaussian:function(t,e){if("number"!=typeof t)return g.throwError.call(this,"r must be a number",e);if(t<1)return g.throwError.call(this,"r must be greater than 0",e);for(var r=Math.ceil(2.57*t),n=0;nthis.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,r),(0,o.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257}],135:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es6.string.iterator"),t("core-js/modules/es6.array.from"),t("core-js/modules/es6.regexp.to-string"),t("core-js/modules/es6.date.to-string"),t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol"),t("core-js/modules/web.dom.iterable"),t("core-js/modules/es6.array.is-array"),t("core-js/modules/es6.array.map");var n=t("timm"),i=w(t("@jimp/plugin-dither")),o=w(t("@jimp/plugin-resize")),a=w(t("@jimp/plugin-blit")),s=w(t("@jimp/plugin-rotate")),u=w(t("@jimp/plugin-color")),f=w(t("@jimp/plugin-print")),l=w(t("@jimp/plugin-blur")),h=w(t("@jimp/plugin-crop")),c=w(t("@jimp/plugin-normalize")),d=w(t("@jimp/plugin-invert")),p=w(t("@jimp/plugin-gaussian")),m=w(t("@jimp/plugin-flip")),b=w(t("@jimp/plugin-mask")),_=w(t("@jimp/plugin-scale")),g=w(t("@jimp/plugin-displace")),y=w(t("@jimp/plugin-contain")),v=w(t("@jimp/plugin-cover"));function w(t){return t&&t.__esModule?t:{default:t}}function E(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=u.blue,this.data[a+4*s+2]=u.green,this.data[a+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},e.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var r=0,t=this.bottom_up?this.height-1:0,e=!1;r>4),1&u&&u+1>1&1)&&this.pos++}}else for(u=0;u>4),e=!e}function f(t){var e=this.palette[t];this.data[r]=0,this.data[r+1]=e.blue,this.data[r+2]=e.green,this.data[r+3]=e.red,r+=4}}else{var l=Math.ceil(this.width/2),h=l%4;for(a=this.height-1;0<=a;a--){var c=this.bottom_up?a:this.height-1-a;for(o=0;o>4,p=15&i,m=this.palette[d];if(this.data[r]=0,this.data[r+1]=m.blue,this.data[r+2]=m.green,this.data[r+3]=m.red,2*o+1>=this.width)break;m=this.palette[p],this.data[r+4]=0,this.data[r+4+1]=m.blue,this.data[r+4+2]=m.green,this.data[r+4+3]=m.red}0!=h&&(this.pos+=4-h)}}},e.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var r=0,t=this.bottom_up?this.height-1:0;r>5&e)/e*255|0,u=(o>>10&e)/e*255|0,f=o>>15?255:0,l=n*this.width*4+4*i;this.data[l]=f,this.data[1+l]=a,this.data[2+l]=s,this.data[3+l]=u}this.pos+=t}},e.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;0<=n;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o>e[1],f=(a&this.maskRed)>>e[2],l=i*this.width*4+4*o;this.data[l]=0,this.data[1+l]=s,this.data[2+l]=u,this.data[3+l]=f}this.pos+=t}},e.prototype.bit24=function(){for(var t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;ra;)o.call(t,n=i[a++])&&e.push(n);return e}},{"./_object-gops":202,"./_object-keys":205,"./_object-pie":206}],167:[function(t,e,r){var m=t("./_global"),b=t("./_core"),_=t("./_hide"),g=t("./_redefine"),y=t("./_ctx"),v="prototype",w=function(t,e,r){var n,i,o,a,s=t&w.F,u=t&w.G,f=t&w.S,l=t&w.P,h=t&w.B,c=u?m:f?m[e]||(m[e]={}):(m[e]||{})[v],d=u?b:b[e]||(b[e]={}),p=d[v]||(d[v]={});for(n in u&&(r=e),r)o=((i=!s&&c&&void 0!==c[n])?c:r)[n],a=h&&i?y(o,m):l&&"function"==typeof o?y(Function.call,o):o,c&&g(c,n,o,t&w.U),d[n]!=o&&_(d,n,a),l&&p[n]!=o&&(p[n]=o)};m.core=b,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},{"./_core":159,"./_ctx":161,"./_global":173,"./_hide":175,"./_redefine":213}],168:[function(t,e,r){var n=t("./_wks")("match");e.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,!"/./"[e](r)}catch(t){}}return!0}},{"./_wks":240}],169:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],170:[function(t,e,r){"use strict";var s=t("./_hide"),u=t("./_redefine"),f=t("./_fails"),l=t("./_defined"),h=t("./_wks");e.exports=function(e,t,r){var n=h(e),i=r(l,n,""[e]),o=i[0],a=i[1];f(function(){var t={};return t[n]=function(){return 7},7!=""[e](t)})&&(u(String.prototype,e,o),s(RegExp.prototype,n,2==t?function(t,e){return a.call(t,this,e)}:function(t){return a.call(t,this)}))}},{"./_defined":162,"./_fails":169,"./_hide":175,"./_redefine":213,"./_wks":240}],171:[function(t,e,r){"use strict";var n=t("./_an-object");e.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./_an-object":149}],172:[function(t,e,r){var c=t("./_ctx"),d=t("./_iter-call"),p=t("./_is-array-iter"),m=t("./_an-object"),b=t("./_to-length"),_=t("./core.get-iterator-method"),g={},y={};(r=e.exports=function(t,e,r,n,i){var o,a,s,u,f=i?function(){return t}:_(t),l=c(r,n,e?2:1),h=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(p(f)){for(o=b(t.length);hdocument.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l[f][s[r]];return l()};t.exports=Object.create||function(t,e){var r;return null!==t?(i[f]=o(t),r=new i,i[f]=null,r[u]=t):r=l(),void 0===e?r:a(r,e)}},{"./_an-object":149,"./_dom-create":164,"./_enum-bug-keys":165,"./_html":176,"./_object-dps":198,"./_shared-key":217}],197:[function(t,e,r){var n=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),a=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":149,"./_descriptors":163,"./_ie8-dom-define":177,"./_to-primitive":232}],198:[function(t,e,r){var a=t("./_object-dp"),s=t("./_an-object"),u=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){s(t);for(var r,n=u(e),i=n.length,o=0;oi;)a(n,r=e[i++])&&(~u(o,r)||o.push(r));return o}},{"./_array-includes":152,"./_has":174,"./_shared-key":217,"./_to-iobject":229}],205:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"./_enum-bug-keys":165,"./_object-keys-internal":204}],206:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],207:[function(t,e,r){var i=t("./_export"),o=t("./_core"),a=t("./_fails");e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],n={};n[t]=e(r),i(i.S+i.F*a(function(){r(1)}),"Object",n)}},{"./_core":159,"./_export":167,"./_fails":169}],208:[function(t,e,r){var u=t("./_object-keys"),f=t("./_to-iobject"),l=t("./_object-pie").f;e.exports=function(s){return function(t){for(var e,r=f(t),n=u(r),i=n.length,o=0,a=[];o>1,l=23===e?T(2,-24)-T(2,-77):0,h=0,c=t<0||0===t&&1/t<0?1:0;for((t=I(t))!=t||t===j?(i=t!=t?1:0,n=u):(n=O(P(t)/M),t*(o=T(2,-n))<1&&(n--,o*=2),2<=(t+=1<=n+f?l/o:l*T(2,1-f))*o&&(n++,o/=2),u<=n+f?(i=0,n=u):1<=n+f?(i=(t*o-1)*T(2,e),n+=f):(i=t*T(2,f-1)*T(2,e),n=0));8<=e;a[h++]=255&i,i/=256,e-=8);for(n=n<>1,s=i-7,u=r-1,f=t[u--],l=127&f;for(f>>=7;0>=-s,s+=e;0>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function W(t){return D(t,52,8)}function q(t){return D(t,23,4)}function Z(t,e,r){m(t[v],e,{get:function(){return this[r]}})}function Y(t,e,r,n){var i=d(+r);if(i+e>t[B])throw S(w);var o=t[C]._b,a=i+t[N],s=o.slice(a,a+e);return n?s:s.reverse()}function V(t,e,r,n,i,o){var a=d(+r);if(a+e>t[B])throw S(w);for(var s=t[C]._b,u=a+t[N],f=n(+i),l=0;lQ;)(X=K[Q++])in E||s(E,X,A[X]);o||(J.constructor=E)}var $=new x(new E(2)),tt=x[v].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||u(x[v],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else E=function(t){l(this,E,g);var e=d(t);this._b=b.call(new Array(e),0),this[B]=e},x=function(t,e,r){l(this,x,y),l(t,E,y);var n=t[B],i=h(e);if(i<0||n>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t,e){var r=Y(this,2,t,e);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t,e){var r=Y(this,2,t,e);return r[1]<<8|r[0]},getInt32:function(t,e){return F(Y(this,4,t,e))},getUint32:function(t,e){return F(Y(this,4,t,e))>>>0},getFloat32:function(t,e){return U(Y(this,4,t,e),23,4)},getFloat64:function(t,e){return U(Y(this,8,t,e),52,8)},setInt8:function(t,e){V(this,1,t,z,e)},setUint8:function(t,e){V(this,1,t,z,e)},setInt16:function(t,e,r){V(this,2,t,H,e,r)},setUint16:function(t,e,r){V(this,2,t,H,e,r)},setInt32:function(t,e,r){V(this,4,t,G,e,r)},setUint32:function(t,e,r){V(this,4,t,G,e,r)},setFloat32:function(t,e,r){V(this,4,t,q,e,r)},setFloat64:function(t,e,r){V(this,8,t,W,e,r)}});_(E,g),_(x,y),s(x[v],a.VIEW,!0),r[g]=E,r[y]=x},{"./_an-instance":148,"./_array-fill":151,"./_descriptors":163,"./_fails":169,"./_global":173,"./_hide":175,"./_library":191,"./_object-dp":197,"./_object-gopn":201,"./_redefine-all":212,"./_set-to-string-tag":216,"./_to-index":227,"./_to-integer":228,"./_to-length":230,"./_typed":235}],235:[function(t,e,r){for(var n,i=t("./_global"),o=t("./_hide"),a=t("./_uid"),s=a("typed_array"),u=a("view"),f=!(!i.ArrayBuffer||!i.DataView),l=f,h=0,c="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=i[c[h++]])?(o(n.prototype,s,!0),o(n.prototype,u,!0)):l=!1;e.exports={ABV:f,CONSTR:l,TYPED:s,VIEW:u}},{"./_global":173,"./_hide":175,"./_uid":236}],236:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],237:[function(t,e,r){var n=t("./_global").navigator;e.exports=n&&n.userAgent||""},{"./_global":173}],238:[function(t,e,r){var n=t("./_global"),i=t("./_core"),o=t("./_library"),a=t("./_wks-ext"),s=t("./_object-dp").f;e.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},{"./_core":159,"./_global":173,"./_library":191,"./_object-dp":197,"./_wks-ext":239}],239:[function(t,e,r){r.f=t("./_wks")},{"./_wks":240}],240:[function(t,e,r){var n=t("./_shared")("wks"),i=t("./_uid"),o=t("./_global").Symbol,a="function"==typeof o;(e.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},{"./_global":173,"./_shared":218,"./_uid":236}],241:[function(t,e,r){var n=t("./_classof"),i=t("./_wks")("iterator"),o=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},{"./_classof":157,"./_core":159,"./_iterators":190,"./_wks":240}],242:[function(t,e,r){var n=t("./_export");n(n.P,"Array",{fill:t("./_array-fill")}),t("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":147,"./_array-fill":151,"./_export":167}],243:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(2);n(n.P+n.F*!t("./_strict-method")([].filter,!0),"Array",{filter:function(t,e){return i(this,t,e)}})},{"./_array-methods":153,"./_export":167,"./_strict-method":220}],244:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(t,e){return i(this,t,1=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":147,"./_iter-define":187,"./_iter-step":189,"./_iterators":190,"./_to-iobject":229}],251:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(1);n(n.P+n.F*!t("./_strict-method")([].map,!0),"Array",{map:function(t,e){return i(this,t,e)}})},{"./_array-methods":153,"./_export":167,"./_strict-method":220}],252:[function(t,e,r){var n=Date.prototype,i="Invalid Date",o=n.toString,a=n.getTime;new Date(NaN)+""!=i&&t("./_redefine")(n,"toString",function(){var t=a.call(this);return t==t?o.call(this):i})},{"./_redefine":213}],253:[function(t,e,r){var n=t("./_export");n(n.P,"Function",{bind:t("./_bind")})},{"./_bind":156,"./_export":167}],254:[function(t,e,r){"use strict";function n(t){var e=l(t,!1);if("string"==typeof e&&2E;E++)o(b,v=w[E])&&!o(m,v)&&c(m,v,h(b,v));(m.prototype=_).constructor=m,t("./_redefine")(i,p,m)}},{"./_cof":158,"./_descriptors":163,"./_fails":169,"./_global":173,"./_has":174,"./_inherit-if-required":178,"./_object-create":196,"./_object-dp":197,"./_object-gopd":199,"./_object-gopn":201,"./_redefine":213,"./_string-trim":223,"./_to-primitive":232}],255:[function(t,e,r){var n=t("./_export");n(n.S+n.F,"Object",{assign:t("./_object-assign")})},{"./_export":167,"./_object-assign":195}],256:[function(t,e,r){var n=t("./_export");n(n.S,"Object",{create:t("./_object-create")})},{"./_export":167,"./_object-create":196}],257:[function(t,e,r){var n=t("./_export");n(n.S+n.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":163,"./_export":167,"./_object-dp":197}],258:[function(t,e,r){var n=t("./_to-object"),i=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return i(n(t))}})},{"./_object-keys":205,"./_object-sap":207,"./_to-object":231}],259:[function(t,e,r){var n=t("./_export");n(n.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":167,"./_set-proto":214}],260:[function(r,t,e){"use strict";function n(){}function h(t){var e;return!(!b(t)||"function"!=typeof(e=t.then))&&e}function i(l,r){if(!l._n){l._n=!0;var n=l._c;E(function(){for(var u=l._v,f=1==l._s,t=0,e=function(t){var e,r,n,i=f?t.ok:t.fail,o=t.resolve,a=t.reject,s=t.domain;try{i?(f||(2==l._h&&D(l),l._h=1),!0===i?e=u:(s&&s.enter(),e=i(u),s&&(s.exit(),n=!0)),e===t.promise?a(I("Promise-chain cycle")):(r=h(e))?r.call(e,o,a):o(e)):a(u)}catch(t){s&&!n&&s.exit(),a(t)}};n.length>t;)e(n[t++]);l._c=[],l._n=!1,r&&!l._h&&B(l)})}}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),i(e,!0))}var a,s,u,f,l=r("./_library"),c=r("./_global"),d=r("./_ctx"),p=r("./_classof"),m=r("./_export"),b=r("./_is-object"),_=r("./_a-function"),g=r("./_an-instance"),y=r("./_for-of"),v=r("./_species-constructor"),w=r("./_task").set,E=r("./_microtask")(),x=r("./_new-promise-capability"),k=r("./_perform"),S=r("./_user-agent"),j=r("./_promise-resolve"),A="Promise",I=c.TypeError,T=c.process,O=T&&T.versions,P=O&&O.v8||"",M=c[A],R="process"==p(T),L=s=x.f,C=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[r("./_wks")("species")]=function(t){t(n,n)};return(R||"function"==typeof PromiseRejectionEvent)&&t.then(n)instanceof e&&0!==P.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(t){}}(),B=function(o){w.call(c,function(){var t,e,r,n=o._v,i=N(o);if(i&&(t=k(function(){R?T.emit("unhandledRejection",n,o):(e=c.onunhandledrejection)?e({promise:o,reason:n}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",n)}),o._h=R||N(o)?2:1),o._a=void 0,i&&t.e)throw t.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(e){w.call(c,function(){var t;R?T.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},U=function(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw I("Promise can't be resolved itself");(r=h(t))?E(function(){var e={_w:n,_d:!1};try{r.call(t,d(U,e,1),d(o,e,1))}catch(t){o.call(e,t)}}):(n._v=t,n._s=1,i(n,!1))}catch(t){o.call({_w:n,_d:!1},t)}}};C||(M=function(t){g(this,M,A,"_h"),_(t),a.call(this);try{t(d(U,this,1),d(o,this,1))}catch(t){o.call(this,t)}},(a=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("./_redefine-all")(M.prototype,{then:function(t,e){var r=L(v(this,M));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=R?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&i(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),u=function(){var t=new a;this.promise=t,this.resolve=d(U,t,1),this.reject=d(o,t,1)},x.f=L=function(t){return t===M||t===f?new u(t):s(t)}),m(m.G+m.W+m.F*!C,{Promise:M}),r("./_set-to-string-tag")(M,A),r("./_set-species")(A),f=r("./_core")[A],m(m.S+m.F*!C,A,{reject:function(t){var e=L(this);return(0,e.reject)(t),e.promise}}),m(m.S+m.F*(l||!C),A,{resolve:function(t){return j(l&&this===f?M:this,t)}}),m(m.S+m.F*!(C&&r("./_iter-detect")(function(t){M.all(t).catch(n)})),A,{all:function(t){var a=this,e=L(a),s=e.resolve,u=e.reject,r=k(function(){var n=[],i=0,o=1;y(t,!1,function(t){var e=i++,r=!1;n.push(void 0),o++,a.resolve(t).then(function(t){r||(r=!0,n[e]=t,--o||s(n))},u)}),--o||s(n)});return r.e&&u(r.v),e.promise},race:function(t){var e=this,r=L(e),n=r.reject,i=k(function(){y(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},{"./_a-function":146,"./_an-instance":148,"./_classof":157,"./_core":159,"./_ctx":161,"./_export":167,"./_for-of":172,"./_global":173,"./_is-object":183,"./_iter-detect":188,"./_library":191,"./_microtask":193,"./_new-promise-capability":194,"./_perform":209,"./_promise-resolve":210,"./_redefine-all":212,"./_set-species":215,"./_set-to-string-tag":216,"./_species-constructor":219,"./_task":225,"./_user-agent":237,"./_wks":240}],261:[function(t,e,r){var n=t("./_export"),u=t("./_object-create"),f=t("./_a-function"),l=t("./_an-object"),h=t("./_is-object"),i=t("./_fails"),c=t("./_bind"),d=(t("./_global").Reflect||{}).construct,p=i(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),m=!i(function(){d(function(){})});n(n.S+n.F*(p||m),"Reflect",{construct:function(t,e,r){f(t),l(e);var n=arguments.length<3?t:f(r);if(m&&!p)return d(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(c.apply(t,i))}var o=n.prototype,a=u(h(o)?o:Object.prototype),s=Function.apply.call(t,a,e);return h(s)?s:a}})},{"./_a-function":146,"./_an-object":149,"./_bind":156,"./_export":167,"./_fails":169,"./_global":173,"./_is-object":183,"./_object-create":196}],262:[function(t,e,r){t("./_descriptors")&&"g"!=/./g.flags&&t("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:t("./_flags")})},{"./_descriptors":163,"./_flags":171,"./_object-dp":197}],263:[function(t,e,r){t("./_fix-re-wks")("match",1,function(n,i,t){return[function(t){"use strict";var e=n(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e):new RegExp(t)[i](String(e))},t]})},{"./_fix-re-wks":170}],264:[function(t,e,r){t("./_fix-re-wks")("replace",2,function(i,o,a){return[function(t,e){"use strict";var r=i(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):a.call(String(r),t,e)},a]})},{"./_fix-re-wks":170}],265:[function(e,t,r){e("./_fix-re-wks")("split",2,function(i,o,a){"use strict";var d=e("./_is-regexp"),p=a,m=[].push,t="split",b="length";if("c"=="abbc"[t](/(b)*/)[1]||4!="test"[t](/(?:)/,-1)[b]||2!="ab"[t](/(?:ab)*/)[b]||4!="."[t](/(.?)(.?)/)[b]||1<"."[t](/()()/)[b]||""[t](/.?/)[b]){var _=void 0===/()??/.exec("")[1];a=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!d(t))return p.call(r,t,e);var n,i,o,a,s,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===e?4294967295:e>>>0,c=new RegExp(t.source,f+"g");for(_||(n=new RegExp("^"+c.source+"$(?!\\s)",f));(i=c.exec(r))&&!(l<(o=i.index+i[0][b])&&(u.push(r.slice(l,i.index)),!_&&1=h));)c.lastIndex===i.index&&c.lastIndex++;return l===r[b]?!a&&c.test("")||u.push(""):u.push(r.slice(l)),u[b]>h?u.slice(0,h):u}}else"0"[t](void 0,0)[b]&&(a=function(t,e){return void 0===t&&0===e?[]:p.call(this,t,e)});return[function(t,e){var r=i(this),n=null==t?void 0:t[o];return void 0!==n?n.call(t,r,e):a.call(String(r),t,e)},a]})},{"./_fix-re-wks":170,"./_is-regexp":184}],266:[function(e,t,r){"use strict";e("./es6.regexp.flags");function n(t){e("./_redefine")(RegExp.prototype,s,t,!0)}var i=e("./_an-object"),o=e("./_flags"),a=e("./_descriptors"),s="toString",u=/./[s];e("./_fails")(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?n(function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)}):u.name!=s&&n(function(){return u.call(this)})},{"./_an-object":149,"./_descriptors":163,"./_fails":169,"./_flags":171,"./_redefine":213,"./es6.regexp.flags":262}],267:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_string-context");n(n.P+n.F*t("./_fails-is-regexp")("includes"),"String",{includes:function(t,e){return!!~i(this,t,"includes").indexOf(t,1=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":187,"./_string-at":221}],269:[function(t,e,r){"use strict";function n(t){var e=q[t]=T(N[F]);return e._k=t,e}function i(t,e){k(t);for(var r,n=E(e=j(e)),i=0,o=n.length;ii;)l(q,e=r[i++])||e==z||e==p||n.push(e);return n}function u(t){for(var e,r=t===Y,n=B(r?Z:j(t)),i=[],o=0;n.length>o;)!l(q,e=n[o++])||r&&!l(Y,e)||i.push(q[e]);return i}var f=t("./_global"),l=t("./_has"),h=t("./_descriptors"),c=t("./_export"),d=t("./_redefine"),p=t("./_meta").KEY,m=t("./_fails"),b=t("./_shared"),_=t("./_set-to-string-tag"),g=t("./_uid"),y=t("./_wks"),v=t("./_wks-ext"),w=t("./_wks-define"),E=t("./_enum-keys"),x=t("./_is-array"),k=t("./_an-object"),S=t("./_is-object"),j=t("./_to-iobject"),A=t("./_to-primitive"),I=t("./_property-desc"),T=t("./_object-create"),O=t("./_object-gopn-ext"),P=t("./_object-gopd"),M=t("./_object-dp"),R=t("./_object-keys"),L=P.f,C=M.f,B=O.f,N=f.Symbol,D=f.JSON,U=D&&D.stringify,F="prototype",z=y("_hidden"),H=y("toPrimitive"),G={}.propertyIsEnumerable,W=b("symbol-registry"),q=b("symbols"),Z=b("op-symbols"),Y=Object[F],V="function"==typeof N,X=f.QObject,J=!X||!X[F]||!X[F].findChild,K=h&&m(function(){return 7!=T(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=L(Y,e);n&&delete Y[e],C(t,e,r),n&&t!==Y&&C(Y,e,n)}:C,Q=V&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},$=function(t,e,r){return t===Y&&$(Z,e,r),k(t),e=A(e,!0),k(r),l(q,e)?(r.enumerable?(l(t,z)&&t[z][e]&&(t[z][e]=!1),r=T(r,{enumerable:I(0,!1)})):(l(t,z)||C(t,z,I(1,{})),t[z][e]=!0),K(t,e,r)):C(t,e,r)};V||(d((N=function(t){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=g(0et;)y(tt[et++]);for(var rt=R(y.store),nt=0;rt.length>nt;)w(rt[nt++]);c(c.S+c.F*!V,"Symbol",{for:function(t){return l(W,t+="")?W[t]:W[t]=N(t)},keyFor:function(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var e in W)if(W[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),c(c.S+c.F*!V,"Object",{create:function(t,e){return void 0===e?T(t):i(T(t),e)},defineProperty:$,defineProperties:i,getOwnPropertyDescriptor:a,getOwnPropertyNames:s,getOwnPropertySymbols:u}),D&&c(c.S+c.F*(!V||m(function(){var t=N();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;i>--d&1;if(255==(c=e[r++])){var t=e[r++];if(t)throw new Error("unexpected marker: "+(c<<8|t).toString(16))}return c>>>(d=7)}function m(t){for(var e,r=t;null!==(e=p());){if("number"==typeof(r=r[e]))return r;if("object"!=typeof r)throw new Error("invalid huffman sequence")}return null}function b(t){for(var e=0;0>4;if(0!=o){e[Z[r+=a]]=_(o)*(1<>4;if(0==u)v=i<15?(g=b(i)+(1<>4;if(0!=a){e[Z[i+=s]]=_(a),i++}else{if(s<15)break;i+=16}}};var I,T,O,P,M,R,L,C,B,N,D,U,F,z,H,G,W,q=0;for(T=1==A?n[0].blocksPerLine*n[0].blocksPerColumn:a*t.mcusPerColumn,i=i||T;q>8,i=S*p[4+m]+128>>8,o=p[2+m],a=p[6+m],s=j*(p[1+m]-p[7+m])+128>>8,l=j*(p[1+m]+p[7+m])+128>>8,u=p[3+m]<<4,f=p[5+m]<<4,h=n-i+1>>1,n=n+i+1>>1,i=h,h=o*k+a*x+128>>8,o=o*x-a*k+128>>8,a=h,h=s-f+1>>1,s=s+f+1>>1,f=h,h=l+u+1>>1,u=l-u+1>>1,l=h,h=n-a+1>>1,n=n+a+1>>1,a=h,h=i-o+1>>1,i=i+o+1>>1,o=h,h=s*E+l*w+2048>>12,s=s*w-l*E+2048>>12,l=h,h=u*v+f*y+2048>>12,u=u*y-f*v+2048>>12,f=h,p[0+m]=n+l,p[7+m]=n-l,p[1+m]=i+f,p[6+m]=i-f,p[2+m]=o+u,p[5+m]=o-u,p[3+m]=a+s,p[4+m]=a-s):(h=S*p[0+m]+512>>10,p[0+m]=h,p[1+m]=h,p[2+m]=h,p[3+m]=h,p[4+m]=h,p[5+m]=h,p[6+m]=h,p[7+m]=h)}for(c=0;c<8;++c){var b=c;0!=p[8+b]||0!=p[16+b]||0!=p[24+b]||0!=p[32+b]||0!=p[40+b]||0!=p[48+b]||0!=p[56+b]?(n=S*p[0+b]+2048>>12,i=S*p[32+b]+2048>>12,o=p[16+b],a=p[48+b],s=j*(p[8+b]-p[56+b])+2048>>12,l=j*(p[8+b]+p[56+b])+2048>>12,u=p[24+b],f=p[40+b],h=n-i+1>>1,n=n+i+1>>1,i=h,h=o*k+a*x+2048>>12,o=o*x-a*k+2048>>12,a=h,h=s-f+1>>1,s=s+f+1>>1,f=h,h=l+u+1>>1,u=l-u+1>>1,l=h,h=n-a+1>>1,n=n+a+1>>1,a=h,h=i-o+1>>1,i=i+o+1>>1,o=h,h=s*E+l*w+2048>>12,s=s*w-l*E+2048>>12,l=h,h=u*v+f*y+2048>>12,u=u*y-f*v+2048>>12,f=h,p[0+b]=n+l,p[56+b]=n-l,p[8+b]=i+f,p[48+b]=i-f,p[16+b]=o+u,p[40+b]=o-u,p[24+b]=a+s,p[32+b]=a-s):(h=S*r[c+0]+8192>>14,p[0+b]=h,p[8+b]=h,p[16+b]=h,p[24+b]=h,p[32+b]=h,p[40+b]=h,p[48+b]=h,p[56+b]=h)}for(c=0;c<64;++c){var _=128+(p[c]+8>>4);e[c]=_<0?0:255<_?255:_}}for(var l=0;l>4==0)for(D=0;D<64;D++){g[Z[D]]=e[r++]}else{if(_>>4!=1)throw new Error("DQT: invalid table spec");for(D=0;D<64;D++){g[Z[D]]=t()}}l[15&_]=g}break;case 65472:case 65473:case 65474:t(),(i={}).extended=65473===p,i.progressive=65474===p,i.precision=e[r++],i.scanLines=t(),i.samplesPerLine=t(),i.components={},i.componentsOrder=[];var y,v=e[r++];for(B=0;B>4,E=15&e[r+1],x=e[r+2];i.componentsOrder.push(y),i.components[y]={h:w,v:E,quantizationIdx:x},r+=3}n(i),h.push(i);break;case 65476:var k=t();for(B=2;B>4==0?d:c)[15&S]=F(j,I)}break;case 65501:t(),o=t();break;case 65498:t();var T=e[r++],O=[];for(B=0;B>4],U.huffmanTableAC=c[15&P],O.push(U)}var M=e[r++],R=e[r++],L=e[r++],C=z(e,r,i,O,o,M,R,L>>4,15&L);r+=C;break;case 65535:255!==e[r]&&r--;break;default:if(255==e[r-3]&&192<=e[r-2]&&e[r-2]<=254){r-=3;break}throw new Error("unknown JPEG marker "+p.toString(16))}p=t()}if(1!=h.length)throw new Error("only single frame JPEGs supported");for(var B=0;B>8&255),q(255&t)}function Y(t,e,r,n,i){for(var o,a=i[0],s=i[240],u=function(t,e){var r,n,i,o,a,s,u,f,l,h,c=0;for(l=0;l<8;++l){r=t[c],n=t[c+1],i=t[c+2],o=t[c+3],a=t[c+4],s=t[c+5],u=t[c+6];var d=r+(f=t[c+7]),p=r-f,m=n+u,b=n-u,_=i+s,g=i-s,y=o+a,v=o-a,w=d+y,E=d-y,x=m+_,k=m-_;t[c]=w+x,t[c+4]=w-x;var S=.707106781*(k+E);t[c+2]=E+S,t[c+6]=E-S;var j=.382683433*((w=v+g)-(k=b+p)),A=.5411961*w+j,I=1.306562965*k+j,T=.707106781*(x=g+b),O=p+T,P=p-T;t[c+5]=P+A,t[c+3]=P-A,t[c+1]=O+I,t[c+7]=O-I,c+=8}for(l=c=0;l<8;++l){r=t[c],n=t[c+8],i=t[c+16],o=t[c+24],a=t[c+32],s=t[c+40],u=t[c+48];var M=r+(f=t[c+56]),R=r-f,L=n+u,C=n-u,B=i+s,N=i-s,D=o+a,U=o-a,F=M+D,z=M-D,H=L+B,G=L-B;t[c]=F+H,t[c+32]=F-H;var W=.707106781*(G+z);t[c+16]=z+W,t[c+48]=z-W;var q=.382683433*((F=U+N)-(G=C+R)),Z=.5411961*F+q,Y=1.306562965*G+q,V=.707106781*(H=N+C),X=R+V,J=R-V;t[c+40]=J+Z,t[c+24]=J-Z,t[c+8]=X+Y,t[c+56]=X-Y,c++}for(l=0;l<64;++l)h=t[l]*e[l],K[l]=0>4;for(var b=1;b<=c;++b)W(s);m&=15}o=32767+y[d],W(i[(m<<4)+g[o]]),W(_[o]),d++}return 63!=h&&W(a),r}function V(t){if(t<=0&&(t=1),100>3)*_+(h=4*(7&d)),b<=g+c&&(l-=_*(g+1+c-b)),_<=o+h&&(l-=o+h-_+4),a=p[l++],s=p[l++],u=p[l++],P[d]=(L[a]+L[s+256>>0]+L[u+512>>0]>>16)-128,M[d]=(L[a+768>>0]+L[s+1024>>0]+L[u+1280>>0]>>16)-128,R[d]=(L[a+1280>>0]+L[s+1536>>0]+L[u+1792>>0]>>16)-128;r=Y(P,j,r,v,E),n=Y(M,A,n,w,x),i=Y(R,A,i,w,x),o+=32}g+=8}if(0<=O){var y=[];y[1]=O+1,y[0]=(1<>0]=38470*t,L[t+512>>0]=7471*t+32768,L[t+768>>0]=-11059*t,L[t+1024>>0]=-21709*t,L[t+1280>>0]=32768*t+8421375,L[t+1536>>0]=-27439*t,L[t+1792>>0]=-5329*t}(),V(t),(new Date).getTime()}()}e.exports=function(t,e){void 0===e&&(e=50);return{data:new r(e).encode(t,e),width:t.width,height:t.height}}}).call(this,t("buffer").Buffer)},{buffer:11}],295:[function(e,i,t){(function(f){function l(){}var t=e("xhr"),h=e("parse-bmfont-ascii"),c=e("parse-bmfont-xml"),d=e("parse-bmfont-binary"),p=e("./lib/is-binary"),r=e("xtend"),n=self.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest;i.exports=function(s,u){u="function"==typeof u?u:l,(s="string"==typeof s?{uri:s}:s||{}).binary&&(s=function(t){if(n)return r(t,{responseType:"arraybuffer"});if(void 0===self.XMLHttpRequest)throw new Error("your browser does not support XHR loading");var e=new self.XMLHttpRequest;return e.overrideMimeType("text/plain; charset=x-user-defined"),r({xhr:e},t)}(s)),t(s,function(t,e,r){if(t)return u(t);if(!/^2/.test(e.statusCode))return u(new Error("http status code: "+e.statusCode));if(!r)return u(new Error("no body result"));var n,i=!1;if(function(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}(r)){var o=new Uint8Array(r);r=new f(o,"binary")}p(r)&&(i=!0,"string"==typeof r&&(r=new f(r,"binary"))),i||(f.isBuffer(r)&&(r=r.toString(s.encoding)),r=r.trim());try{var a=e.headers["content-type"];n=i?d(r):/json/.test(a)||"{"===r.charAt(0)?JSON.parse(r):/xml/.test(a)||"<"===r.charAt(0)?c(r):h(r)}catch(t){u(new Error("error parsing font "+t.message)),u=l}u(null,n)})}}).call(this,e("buffer").Buffer)},{"./lib/is-binary":296,buffer:11,"parse-bmfont-ascii":316,"parse-bmfont-binary":317,"parse-bmfont-xml":318,xhr:349,xtend:297}],296:[function(n,i,t){(function(t){var e=n("buffer-equal"),r=new t([66,77,70,3]);i.exports=function(t){return"string"==typeof t?"BMF"===t.substring(0,3):4>=u,l-=u,b!=o){if(b==a)break;for(var _=b>8,++g;var v=y;if(n>=8;null!==m&&s<4096&&(p[s++]=m<<8|v,f+1<=s&&u<12&&(++u,f=f<<1|1)),m=b}else s=1+a,f=(1<<(u=i+1))-1,m=null}return c!==n&&console.log("Warning, gif stream shorter than expected."),r}try{r.GifWriter=function(_,t,e,r){var g=0,n=void 0===(r=void 0===r?{}:r).loop?null:r.loop,y=void 0===r.palette?null:r.palette;if(t<=0||e<=0||65535>=1;)++i;if(a=1<>8&255,_[g++]=255&e,_[g++]=e>>8&255,_[g++]=(null!==y?128:0)|i,_[g++]=o,_[g++]=0,null!==y)for(var s=0,u=y.length;s>16&255,_[g++]=f>>8&255,_[g++]=255&f}if(null!==n){if(n<0||65535>8&255,_[g++]=0}var w=!1;this.addFrame=function(t,e,r,n,i,o){if(!0===w&&(--g,w=!1),o=void 0===o?{}:o,t<0||e<0||65535>=1;)++f;u=1<>8&255,_[g++]=d,_[g++]=0),_[g++]=44,_[g++]=255&t,_[g++]=t>>8&255,_[g++]=255&e,_[g++]=e>>8&255,_[g++]=255&r,_[g++]=r>>8&255,_[g++]=255&n,_[g++]=n>>8&255,_[g++]=!0===a?128|f-1:0,!0===a)for(var p=0,m=s.length;p>16&255,_[g++]=b>>8&255,_[g++]=255&b}return g=function(e,r,t,n){e[r++]=t;var i=r++,o=1<>=8,l-=8,r===i+256&&(e[i]=255,i=r++)}function d(t){h|=t<>=8,l-=8,r===i+256&&(e[i]=255,i=r++);4096===u?(d(o),u=1+s,f=t+1,m={}):(1<>7,i=1<<1+(7&r);w[t++],w[t++];var o=null,a=null;n&&(o=t,t+=3*(a=i));var s=!0,u=[],f=0,l=null,h=0,c=null;for(this.width=E,this.height=e;s&&t>2&7,t++;break;case 254:for(;;){if(!(0<=(A=w[t++])))throw Error("Invalid block size");if(0===A)break;t+=A}break;default:throw new Error("Unknown graphic control label: 0x"+w[t-1].toString(16))}break;case 44:var p=w[t++]|w[t++]<<8,m=w[t++]|w[t++]<<8,b=w[t++]|w[t++]<<8,_=w[t++]|w[t++]<<8,g=w[t++],y=g>>6&1,v=1<<1+(7&g),x=o,k=a,S=!1;if(g>>7){S=!0;x=t,t+=3*(k=v)}var j=t;for(t++;;){var A;if(!(0<=(A=w[t++])))throw Error("Invalid block size");if(0===A)break;t+=A}u.push({x:p,y:m,width:b,height:_,has_local_palette:S,palette_offset:x,palette_size:k,data_offset:j,data_length:t-j,transparent_index:l,interlaced:!!y,delay:f,disposal:h});break;case 59:s=!1;break;default:throw new Error("Unknown gif block: 0x"+w[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return c},this.frameInfo=function(t){if(t<0||t>=u.length)throw new Error("Frame index out of range.");return u[t]},this.decodeAndBlitFrameBGRA=function(t,e){var r=this.frameInfo(t),n=r.width*r.height,i=new Uint8Array(n);I(w,r.data_offset,i,n);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,u=E-s,f=s,l=4*(r.y*E+r.x),h=4*((r.y+r.height)*E+r.x),c=l,d=4*u;!0===r.interlaced&&(d+=4*E*7);for(var p=8,m=0,b=i.length;m>=1)),_===a)c+=4;else{var g=w[o+3*_],y=w[o+3*_+1],v=w[o+3*_+2];e[c++]=v,e[c++]=y,e[c++]=g,e[c++]=255}--f}},this.decodeAndBlitFrameRGBA=function(t,e){var r=this.frameInfo(t),n=r.width*r.height,i=new Uint8Array(n);I(w,r.data_offset,i,n);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,u=E-s,f=s,l=4*(r.y*E+r.x),h=4*((r.y+r.height)*E+r.x),c=l,d=4*u;!0===r.interlaced&&(d+=4*E*7);for(var p=8,m=0,b=i.length;m>=1)),_===a)c+=4;else{var g=w[o+3*_],y=w[o+3*_+1],v=w[o+3*_+2];e[c++]=g,e[c++]=y,e[c++]=v,e[c++]=255}--f}}}}catch(t){}},{}],300:[function(t,e,r){"use strict";var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":301,"./lib/inflate":302,"./lib/utils/common":303,"./lib/zlib/constants":306}],301:[function(t,e,r){"use strict";var a=t("./zlib/deflate"),s=t("./utils/common"),u=t("./utils/strings"),i=t("./zlib/messages"),o=t("./zlib/zstream"),f=Object.prototype.toString,l=0,h=-1,c=0,d=8;function p(t){if(!(this instanceof p))return new p(t);this.options=s.assign({level:h,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},t||{});var e=this.options;e.raw&&0>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e},r.buf2binstring=function(t){return l(t,t.length)},r.binstring2buf=function(t){for(var e=new u.Buf8(t.length),r=0,n=e.length;r>10&1023,s[n++]=56320|1023&i)}return l(s,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+f[t[r]]>e?r:e}},{"./common":303}],305:[function(t,e,r){arguments[4][41][0].apply(r,arguments)},{dup:41}],306:[function(t,e,r){arguments[4][42][0].apply(r,arguments)},{dup:42}],307:[function(t,e,r){arguments[4][43][0].apply(r,arguments)},{dup:43}],308:[function(t,e,r){"use strict";var u,c=t("../utils/common"),f=t("./trees"),d=t("./adler32"),p=t("./crc32"),n=t("./messages"),l=0,h=4,m=0,b=-2,_=-1,g=4,i=2,y=8,v=9,o=286,a=30,s=19,w=2*o+1,E=15,x=3,k=258,S=k+x+1,j=42,A=113,I=1,T=2,O=3,P=4;function M(t,e){return t.msg=n[e],e}function R(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(c.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function B(t,e){f._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,C(t.strm)}function N(t,e){t.pending_buf[t.pending++]=e}function D(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-S?t.strstart-(t.w_size-S):0,f=t.window,l=t.w_mask,h=t.prev,c=t.strstart+k,d=f[o+a-1],p=f[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(f[(r=e)+a]===p&&f[r+a-1]===d&&f[r]===f[o]&&f[++r]===f[o+1]){o+=2,r++;do{}while(f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&ou&&0!=--i);return a<=t.lookahead?a:t.lookahead}function F(t){var e,r,n,i,o,a,s,u,f,l,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-S)){for(c.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=r=t.hash_size;n=t.head[--e],t.head[e]=h<=n?n-h:0,--r;);for(e=r=h;n=t.prev[--e],t.prev[e]=h<=n?n-h:0,--r;);i+=h}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,u=t.strstart+t.lookahead,f=i,l=void 0,l=a.avail_in,f=x)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<=x&&(t.ins_h=(t.ins_h<=x)if(n=f._tr_tally(t,t.strstart-t.match_start,t.match_length-x),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=x){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=x&&(t.ins_h=(t.ins_h<=x&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-x,n=f._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-x),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(F(t),0===t.lookahead&&e===l)return I;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,B(t,!1),0===t.strm.avail_out))return I;if(t.strstart-t.block_start>=t.w_size-S&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:P):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),I)}),new G(4,4,8,4,z),new G(4,5,16,8,z),new G(4,6,32,32,z),new G(4,4,16,16,H),new G(8,16,32,32,H),new G(8,16,128,128,H),new G(8,32,128,256,H),new G(32,128,258,1024,H),new G(32,258,258,4096,H)],r.deflateInit=function(t,e){return Y(t,e,y,15,8,0)},r.deflateInit2=Y,r.deflateReset=Z,r.deflateResetKeep=q,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?b:(t.state.gzhead=e,m):b},r.deflate=function(t,e){var r,n,i,o;if(!t||!t.state||5>8&255),N(n,n.gzhead.time>>16&255),N(n,n.gzhead.time>>24&255),N(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),N(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(N(n,255&n.gzhead.extra.length),N(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=p(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(N(n,0),N(n,0),N(n,0),N(n,0),N(n,0),N(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),N(n,3),n.status=A);else{var a=y+(n.w_bits-8<<4)<<8;a|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=A,D(n,a),0!==n.strstart&&(D(n,t.adler>>>16),D(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending!==n.pending_buf_size));)N(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),C(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&C(t),n.pending+2<=n.pending_buf_size&&(N(n,255&t.adler),N(n,t.adler>>8&255),t.adler=0,n.status=A)):n.status=A),0!==n.pending){if(C(t),0===t.avail_out)return n.last_flush=-1,m}else if(0===t.avail_in&&R(e)<=R(r)&&e!==h)return M(t,-5);if(666===n.status&&0!==t.avail_in)return M(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==l&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(F(t),0===t.lookahead)){if(e===l)return I;break}if(t.match_length=0,r=f._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):3===n.strategy?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=k){if(F(t),t.lookahead<=k&&e===l)return I;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=x&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=x?(r=f._tr_tally(t,1,t.match_length-x),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=f._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=0,e===h?(B(t,!0),0===t.strm.avail_out?O:P):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):u[n.level].func(n,e);if(s!==O&&s!==P||(n.status=666),s===I||s===O)return 0===t.avail_out&&(n.last_flush=-1),m;if(s===T&&(1===e?f._tr_align(n):5!==e&&(f._tr_stored_block(n,0,0,!1),3===e&&(L(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),C(t),0===t.avail_out))return n.last_flush=-1,m}return e!==h?m:n.wrap<=0?1:(2===n.wrap?(N(n,255&t.adler),N(n,t.adler>>8&255),N(n,t.adler>>16&255),N(n,t.adler>>24&255),N(n,255&t.total_in),N(n,t.total_in>>8&255),N(n,t.total_in>>16&255),N(n,t.total_in>>24&255)):(D(n,t.adler>>>16),D(n,65535&t.adler)),C(t),0=r.w_size&&(0===o&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new c.Buf8(r.w_size),c.arraySet(f,e,l-r.w_size,r.w_size,0),e=f,l=r.w_size),a=t.avail_in,s=t.next_in,u=t.input,t.avail_in=l,t.next_in=0,t.input=e,F(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function D(t,e,r){t.bi_valid>d-r?(t.bi_buf|=e<>d-t.bi_valid,t.bi_valid+=r-d):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function z(t,e,r){var n,i,o=new Array(_+1),a=0;for(n=1;n<=_;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=F(o[s]++,s))}}function H(t){var e;for(e=0;e>1;1<=r;r--)q(t,o,r);for(i=u;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],q(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,q(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,f=e.max_code,l=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,m=0;for(o=0;o<=_;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r>=7;n>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return s;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return u;for(e=32;e>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?K(t,e,r,n):4===t.strategy||o===i?(D(t,2+(n?1:0),3),Z(t,S,j)):(D(t,4+(n?1:0),3),function(t,e,r,n){var i;for(D(t,e-257,5),D(t,r-1,5),D(t,n-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(I[r]+f+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){D(t,2,3),U(t,m,S),function(t){16===t.bi_valid?(N(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":303}],315:[function(t,e,r){arguments[4][50][0].apply(r,arguments)},{dup:50}],316:[function(t,e,r){function o(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var r=t.indexOf(" ");if(-1===r)throw new Error("no named row at line "+e);var n=t.substring(0,r);t=(t=(t=(t=t.substring(r+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map(function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)});for(var i=[],o=0;oe.length-1)return 0;var n=e.readUInt8(r++),i=e.readInt32LE(r);switch(r+=4,n){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var n=t.readUInt8(e+2);r.smooth=n>>7&1,r.unicode=n>>6&1,r.italic=n>>5&1,r.bold=n>>4&1,n>>3&1&&(r.fixedHeight=1);return r.charset=t.readUInt8(e+3)||"",r.stretchH=t.readUInt16LE(e+4),r.aa=t.readUInt8(e+6),r.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],r.spacing=[t.readInt8(e+11),t.readInt8(e+12)],r.outline=t.readUInt8(e+13),r.face=function(t,e){return u(t,e).toString("utf8")}(t,e+14),r}(e,r);break;case 2:t.common=function(t,e){var r={};r.lineHeight=t.readUInt16LE(e),r.base=t.readUInt16LE(e+2),r.scaleW=t.readUInt16LE(e+4),r.scaleH=t.readUInt16LE(e+6),r.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return r.packed=0,r.alphaChnl=t.readUInt8(e+11),r.redChnl=t.readUInt8(e+12),r.greenChnl=t.readUInt8(e+13),r.blueChnl=t.readUInt8(e+14),r}(e,r);break;case 3:t.pages=function(t,e,r){for(var n=[],i=u(t,e),o=i.length+1,a=r/o,s=0;s element");for(var r=e.getElementsByTagName("page"),n=0;n>4,h.push(s,a);break;case 2:i=3&u,o=u>>2&3,a=u>>4&3,s=u>>6&3,h.push(s,a,o,i);break;case 1:t=1&u,e=u>>1&1,r=u>>2&1,n=u>>3&1,i=u>>4&1,o=u>>5&1,a=u>>6&1,s=u>>7&1,h.push(s,a,o,i,n,r,e,t)}}return{get:function(t){for(;h.lengtht.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},n.prototype._processRead=function(t){this._reads.shift();for(var e=0,r=0,n=new a(t.length);e=t.length))break;this._processRead(t)}}this._buffers&&0>>1:e>>>=1;n[t]=e}}();var i=e.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,r=0;r>>8;return-1^e}},{}],328:[function(t,e,r){(function(m){"use strict";var h=t("./paeth-predictor");var b={0:function(t,e,r,n,i){for(var o=0;o>1);n[i+a]=f}},4:function(t,e,r,n,i,o){for(var a=0;a>1);i+=Math.abs(u)}return i},4:function(t,e,r,n){for(var i=0,o=0;o=n.height?(this._lastLine=null,this._imageIndex++,n=this._images[this._imageIndex]):this._lastLine=e,n?this.read(n.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}}).call(this,e("buffer").Buffer)},{"./interlace":333,"./paeth-predictor":337,buffer:11}],332:[function(t,e,r){(function(f){"use strict";e.exports=function(t,e){var r=e.depth,n=e.width,i=e.height,o=e.colorType,a=e.transColor,s=e.palette,u=t;return 3===o?function(t,e,r,n,i){for(var o=0,a=0;a>3))*this._bitmapInfo.height,r=Math.max(e,a.Z_MIN_CHUNK);this._inflate=a.createInflate({chunkSize:r});var n=e,i=this.emit.bind(this,"error");this._inflate.on("error",function(t){n&&i(t)}),this._filter.on("complete",this._complete.bind(this));var o=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,o(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},l.prototype._handleMetaData=function(t){this.emit("metadata",t),this._bitmapInfo=Object.create(t),this._filter=new o(this._bitmapInfo)},l.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},l.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},l.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},l.prototype._complete=function(t){if(!this.errord){try{var e=u.dataToBitMap(t,this._bitmapInfo),r=f(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",r)}}},{"./bitmapper":323,"./chunkstream":325,"./filter-parse-async":329,"./format-normaliser":332,"./parser":340,util:98,zlib:8}],339:[function(t,e,r){(function(d){"use strict";var p=!0,m=t("zlib"),b=t("./sync-inflate");m.deflateSync||(p=!1);var _=t("./sync-reader"),g=t("./filter-parse-sync"),y=t("./parser"),v=t("./bitmapper"),w=t("./format-normaliser");e.exports=function(t,e){if(!p)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var r,n,i;var o=[];var a=new _(t);if(new y(e,{read:a.read.bind(a),error:function(t){r=t},metadata:function(t){n=t},gamma:function(t){i=t},palette:function(t){n.palette=t},transColor:function(t){n.transColor=t},inflateData:function(t){o.push(t)}}).start(),a.process(),r)throw r;var s,u=d.concat(o);if(o.length=0,n.interlace)s=m.inflateSync(u);else{var f=(1+(n.width*n.bpp*n.depth+7>>3))*n.height;s=b(u,{chunkSize:f,maxLength:f})}if(u=null,!s||!s.length)throw new Error("bad png - invalid inflate data response");var l=g.process(s,n);u=null;var h=v.dataToBitMap(l,n);l=null;var c=w(h,n);return n.data=c,n.gamma=i||0,n}}).call(this,t("buffer").Buffer)},{"./bitmapper":323,"./filter-parse-sync":330,"./format-normaliser":332,"./parser":340,"./sync-inflate":343,"./sync-reader":344,buffer:11,zlib:8}],340:[function(e,r,t){(function(a){"use strict";var f=e("./constants"),s=e("./crc"),t=r.exports=function(t,e){(this._options=t).checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[f.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[f.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[f.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[f.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[f.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[f.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished};t.prototype.start=function(){this.read(f.PNG_SIGNATURE.length,this._parseSignature.bind(this))},t.prototype._parseSignature=function(t){for(var e=f.PNG_SIGNATURE,r=0;rthis._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;et.width||n>t.height||r+i>t.width||n+o>t.height)throw new Error("bitblt reading outside image");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error("bitblt writing outside image");for(var u=0;us&&(n=n.slice(0,s)),f.push(n),l+=n.length,0===(s-=n.length))return!1}return(0===e||i._offset>=i._chunkSize)&&(a=i._chunkSize,i._offset=0,i._buffer=p.allocUnsafe(i._chunkSize)),0===e&&(u+=o-t,o=t,!0)}}this.on("error",function(t){n=t}),m(this._handle,"zlib binding closed");do{var c=this._handle.writeSync(e,t,u,o,this._buffer,this._offset,a);c=c||this._writeState}while(!this._hadError&&h(c[0],c[1]));if(this._hadError)throw n;if(_<=l)throw g(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+_.toString(16)+" bytes");var d=p.concat(f,l);return g(this),d},t.inherits(n,b.Inflate),o.exports=a=e,a.Inflate=n,a.createInflate=function(t){return new n(t)},a.inflateSync=e}).call(this,i("_process"),i("buffer").Buffer)},{_process:53,assert:1,buffer:11,util:98,zlib:8}],344:[function(t,e,r){"use strict";var n=e.exports=function(t){this._buffer=t,this._reads=[]};n.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},n.prototype.process=function(){for(;0=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}return 0=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function s(t,e,r){if(t[e]===r)return t;for(var n=t.length,i=Array(n),o=0;o>1)+720)%360;--e;)n.h=(n.h+i)%360,o.push(d(n));return o}function S(t,e){e=e||6;for(var r=d(t).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/e;e--;)a.push(d({h:n,s:i,v:o})),o=(o+s)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:f.pow((.055+t)/1.055,2.4))+.7152*(e<=.03928?e/12.92:f.pow((.055+e)/1.055,2.4))+.0722*(r<=.03928?r/12.92:f.pow((.055+r)/1.055,2.4))},setAlpha:function(t){return this._a=I(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return e(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[M(a(t).toString(16)),M(a(e).toString(16)),M(a(r).toString(16)),M(L(n))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*T(this._r,255))+"%",g:a(100*T(this._g,255))+"%",b:a(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*T(this._r,255))+"%, "+a(100*T(this._g,255))+"%, "+a(100*T(this._b,255))+"%)":"rgba("+a(100*T(this._r,255))+"%, "+a(100*T(this._g,255))+"%, "+a(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[e(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+s(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=d(t);r="#"+s(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&0<=this._a;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(r,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},d.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:R(t[n]));t=r}return d(t,e)},d.equals=function(t,e){return!(!t||!e)&&d(t).toRgbString()==d(e).toRgbString()},d.random=function(){return d.fromRatio({r:t(),g:t(),b:t()})},d.mix=function(t,e,r){r=0===r?0:r||50;var n=d(t).toRgb(),i=d(e).toRgb(),o=r/100;return d({r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a})},d.readability=function(t,e){var r=d(t),n=d(e);return(f.max(r.getLuminance(),n.getLuminance())+.05)/(f.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(t,e,r){var n,i,o=d.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":i=4.5<=o;break;case"AAlarge":i=3<=o;break;case"AAAsmall":i=7<=o}return i},d.mostReadable=function(t,e,r){var n,i,o,a,s=null,u=0;i=(r=r||{}).includeFallbackColors,o=r.level,a=r.size;for(var f=0;f>--S&1;if(255===(k=r[n++])){var t=r[n++];if(t){if(220===t&&w){n+=2;var e=r[n++]<<8|r[n++];if(0>>(S=7)}function h(t){for(;;){if("number"==typeof(t=t[l()]))return t;if("object"!==(void 0===t?"undefined":B(t)))throw new N("invalid huffman sequence")}}function c(t){for(var e=0;0>=4,0==i){if(n<15){j=c(n)+(1<>=4,0===r)A=i<15?(j=c(i)+(1<>=4,0==i){if(n<15)break;r+=16}else r+=n,t.a[e+C[r]]=d(i),r++}},O=0,P=1===I?t[0].c*t[0].l:E*i.O;O>10,u[h]=c,u[h+1]=c,u[h+2]=c,u[h+3]=c,u[h+4]=c,u[h+5]=c,u[h+6]=c,u[h+7]=c;else{d*=f[h+1],p*=f[h+2],m*=f[h+3],b*=f[h+4],_*=f[h+5];var v=5793*c+128>>8,w=5793*b+128>>8,E=p,x=g*=f[h+6];w=(v=v+w+1>>1)-w,c=3784*E+1567*x+128>>8,E=1567*E-3784*x+128>>8,_=(b=(b=2896*(d-(y*=f[h+7]))+128>>8)+(_<<=4)+1>>1)-_,m=(y=(y=2896*(d+y)+128>>8)+(m<<=4)+1>>1)-m,x=(v=v+(x=c)+1>>1)-x,E=(w=w+E+1>>1)-E,c=2276*b+3406*y+2048>>12,b=3406*b-2276*y+2048>>12,y=c,c=799*m+4017*_+2048>>12,m=4017*m-799*_+2048>>12,_=c,u[h]=v+y,u[h+7]=v-y,u[h+1]=w+_,u[h+6]=w-_,u[h+2]=E+m,u[h+5]=E-m,u[h+3]=x+b,u[h+4]=x-b}}for(f=0;f<8;++f)c=u[f],0==((d=u[f+8])|(p=u[f+16])|(m=u[f+24])|(b=u[f+32])|(_=u[f+40])|(g=u[f+48])|(y=u[f+56]))?(c=(c=5793*c+8192>>14)<-2040?0:2024<=c?255:c+2056>>4,l[s+f]=c,l[s+f+8]=c,l[s+f+16]=c,l[s+f+24]=c,l[s+f+32]=c,l[s+f+40]=c,l[s+f+48]=c,l[s+f+56]=c):(v=5793*c+2048>>12,w=5793*b+2048>>12,c=3784*(E=p)+1567*(x=g)+2048>>12,E=1567*E-3784*x+2048>>12,x=c,_=(b=(b=2896*(d-y)+2048>>12)+_+1>>1)-_,m=(y=(y=2896*(d+y)+2048>>12)+m+1>>1)-m,c=2276*b+3406*y+2048>>12,b=3406*b-2276*y+2048>>12,y=c,c=799*m+4017*_+2048>>12,m=4017*m-799*_+2048>>12,d=(w=(w=(v=4112+(v+w+1>>1))-w)+E+1>>1)+(_=c),g=w-_,_=(E=w-E)-m,c=(c=(v=v+x+1>>1)+y)<16?0:4080<=c?255:c>>4,d=d<16?0:4080<=d?255:d>>4,p=(p=E+m)<16?0:4080<=p?255:p>>4,m=(m=(x=v-x)+b)<16?0:4080<=m?255:m>>4,b=(b=x-b)<16?0:4080<=b?255:b>>4,_=_<16?0:4080<=_?255:_>>4,g=g<16?0:4080<=g?255:g>>4,y=(y=v-y)<16?0:4080<=y?255:y>>4,l[s+f]=c,l[s+f+8]=d,l[s+f+16]=p,l[s+f+24]=m,l[s+f+32]=b,l[s+f+40]=_,l[s+f+48]=g,l[s+f+56]=y)}return e.a}function L(t,e,r){var n=2=i)return null;a=t[n]<<8|t[n+1]}return{f:o.toString(16),F:a,offset:n}}var i,j,_,C,B,N,D,o;o={},"object"==typeof s?s.exports=o:self.UTIF=o,i="function"==typeof a?a("pako"):self.pako,j=o,_=i,B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},(r.prototype=Error()).name="JpegError",N=r.constructor=r,(e.prototype=Error()).name="DNLMarkerError",D=e.constructor=e,C=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),n.prototype={parse:function(e){function t(){var t=e[o]<<8|e[o+1];return o+=2,t}function r(t){for(var e=Math.ceil(t.v/8/t.s),r=Math.ceil(t.g/8/t.u),n=0;n>4)for(d=0;d<64;d++)b[p=C[d]]=e[o++];else{if(1!=m>>4)throw new N("DQT - invalid table spec");for(d=0;d<64;d++)b[p=C[d]]=t()}n[15&m]=b}break;case 65472:case 65473:case 65474:if(_)throw new N("Only single frame JPEGs supported");t();var _={};for(_.X=65473===c,_.S=65474===c,_.precision=e[o++],c=t(),_.g=i||c,_.v=t(),_.b=[],_.C={},d=e[o++],c=b=m=0;c>4,y=15&e[o+1];m>4?h:l)[15&m]=x(b,y)}break;case 65501:t();var v=t();break;case 65498:for(d=1==++s&&!i,t(),m=e[o++],p=[],c=0;c>4],w.o=l[15&b],p.push(w)}c=e[o++],m=e[o++],b=e[o++];try{var E=k(e,o,_,p,v,c,m,b>>4,15&b,d);o+=E}catch(t){if(t instanceof D)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(e,{N:t.g});throw t}break;case 65500:o+=4;break;case 65535:255!==e[o]&&o--;break;default:if(255===e[o-3]&&192<=e[o-2]&&e[o-2]<=254)o-=3;else{if(!(d=L(e,o-2))||!d.f)throw new N("unknown marker "+c.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+d.f),o=d.offset}}c=t()}for(this.width=_.v,this.height=_.g,this.A=a,this.b=[],c=0;c<_.b.length;c++)(v=n[(w=_.b[c]).T])&&(w.G=v),this.b.push({R:S(0,w),U:w.h/_.s,V:w.j/_.u,c:w.c,l:w.l});this.i=this.b.length},L:function(t,e){var r,n,i=this.width/t,o=this.height/e,a=this.b.length,s=t*e*a,u=new Uint8ClampedArray(s),f=new Uint32Array(t);for(n=0;n>8)+o[i+1];return u},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,r,n,i=0,o=t.length;i>>3)]),null==h&&(h=o.t325);var c=new Uint8Array(o.height*(f>>>3)),d=0;if(null!=o.t322){for(var p=o.t322[0],m=o.t323[0],b=Math.floor((o.width+p-1)/p),_=Math.floor((o.height+m-1)/m),g=new Uint8Array(0|Math.ceil(p*m*u/8)),y=0;y<_;y++)for(var v=0;v>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(l=0;l>>4,i[o++]=255&(p[l]<<4|p[l+1]>>>8),i[o++]=255&p[l+1]}}else{var b=new j.JpegDecoder;b.parse(u);var _=b.getData(b.width,b.height);for(l=0;l<_.length;l++)i[o+l]=_[l]}6==t.t262[0]&&(t.t262[0]=2)},j.decode._decodeOldJPEGInit=function(t,e,r,n){var i,o,a,s,u,f=0,l=0,h=!1,c=t.t513,d=c?c[0]:0,p=t.t514,m=p?p[0]:0,b=t.t324||t.t273||c,_=t.t530,g=0,y=0,v=t.t277?t.t277[0]:1,w=t.t515;if(b&&(l=b[0],h=1 offset to first strip or tile");if(null==i){var E=0,x=[];x[E++]=255,x[E++]=216;var k=t.t519;if(null==k)throw new Error("JPEGQTables tag is missing");for(a=0;a>>8,x[E++]=255&j,x[E++]=a|u<<4,s=0;s<16;s++)x[E++]=e[r+S[a]+s];for(s=0;s>>8&255,x[E++]=255&t.height,x[E++]=t.width>>>8&255,x[E++]=255&t.width,1==(x[E++]=v))x[E++]=1,x[E++]=17,x[E++]=0;else for(a=0;a<3;a++)x[E++]=a+1,x[E++]=0!=a?17:(15&g)<<4|15&y,x[E++]=a;null!=w&&0!=w[0]&&(x[E++]=255,x[E++]=221,x[E++]=0,x[E++]=4,x[E++]=w[0]>>>8&255,x[E++]=255&w[0]),i=new Uint8Array(x)}var A=-1;for(a=0;a>>8&255,i[T++]=255&t.height,i[T++]=t.width>>>8&255,i[T++]=255&t.width,1==(i[T++]=v))i[T++]=1,i[T++]=17,i[T++]=0;else for(a=0;a<3;a++)i[T++]=a+1,i[T++]=0!=a?17:(15&g)<<4|15&y,i[T++]=a}if(255==e[l]&&218==e[l+1]){var O=e[l+2]<<8|e[l+3];for((o=new Uint8Array(2+O))[0]=e[l],o[1]=e[l+1],o[2]=e[l+2],o[3]=e[l+3],a=0;a>>8&255,u[f.sofPosition+6]=255&t.height,u[f.sofPosition+7]=t.width>>>8&255,u[f.sofPosition+8]=255&t.width,255==e[r]&&e[r+1]==SOS||(u.set(f.sosMarker,bufoff),bufoff+=sosMarker.length),c=0;c>>6,c=63&l;if(e++,3==h&&(f=15&c,n[u>>>1]|=f<<4*(1-u&1),u++),0==h)for(var d=0;d>>1]|=f<<4*(1-u&1),u++;if(2==h)for(d=0;d<2;d++)4!=(p=c>>>3*(1-d)&7)&&(f+=a[p],n[u>>>1]|=f<<4*(1-u&1),u++);if(1==h)for(d=0;d<3;d++){var p;2!=(p=c>>>2*(2-d)&3)&&(f+=o[p],n[u>>>1]|=f<<4*(1-u&1),u++)}}},j.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},j.decode._lens=function(){function t(t,e,r,n){for(var i=0;i>>3>>3]>>>7-(7&u)&1),2==a&&(x=t[u>>>3]>>>(7&u)&1),u++,l+=x,"H"==v){if(null!=s._lens[g][l]){var k=s._lens[g][l];l="",f+=k,k<64&&(s._addNtimes(h,f,g),p+=f,g=1-g,(f=0)==--w&&(v=""))}}else"0001"==l&&(l="",s._addNtimes(h,_-p,g),p=_),"001"==l&&(l="",v="H",w=2),null!=s._dmap[l]&&(m=b+s._dmap[l],s._addNtimes(h,m-p,g),p=m,l="",g=1-g);h.length==o&&""==v&&(s._writeBits(h,n,8*i+y*E),y++,p=g=0,c=s._makeDiff(h),h=[])}},j.decode._findDiff=function(t,e,r){for(var n=0;n=e&&t[n+1]==r)return t[n]},j.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var r=1;r>>3>>3]>>>7-(7&u)&1),2==a&&(k=t[u>>>3]>>>(7&u)&1),u++,l+=k,E){if(null!=s._lens[g][l]){var S=s._lens[g][l];l="",f+=S,S<64&&(s._addNtimes(h,f,g),g=1-g,f=0)}}else"H"==v?null!=s._lens[g][l]&&(S=s._lens[g][l],l="",f+=S,S<64&&(s._addNtimes(h,f,g),p+=f,g=1-g,(f=0)==--w&&(v=""))):("0001"==l&&(l="",s._addNtimes(h,_-p,g),p=_),"001"==l&&(l="",v="H",w=2),null!=s._dmap[l]&&(m=b+s._dmap[l],s._addNtimes(h,m-p,g),p=m,l="",g=1-g));l.endsWith("000000000001")&&(0<=y&&s._writeBits(h,n,8*i+y*x),1==a&&(E=1==(t[u>>>3]>>>7-(7&u)&1)),2==a&&(E=1==(t[u>>>3]>>>(7&u)&1)),u++,null==s._decodeG3.allow2D&&(s._decodeG3.allow2D=E),s._decodeG3.allow2D||(E=!0,u--),l="",y++,p=g=0,c=s._makeDiff(h),h=[])}h.length==o&&s._writeBits(h,n,8*i+y*x)},j.decode._addNtimes=function(t,e,r){for(var n=0;n>>3]|=t[n]<<7-(r+n&7)},j.decode._decodeLZW=function(t,e,r,n){if(null==j.decode._lzwTab){for(var i=new Uint32Array(65535),o=new Uint16Array(65535),a=new Uint8Array(2e6),s=0;s<256;s++)i[a[s<<2]=s]=s<<2,o[s]=1;j.decode._lzwTab=[i,o,a]}for(var u=j.decode._copyData,f=j.decode._lzwTab[0],l=j.decode._lzwTab[1],h=(a=j.decode._lzwTab[2],258),c=1032,d=9,p=e<<3,m=0,b=0;m=(t[p>>>3]<<16|t[p+8>>>3]<<8|t[p+16>>>3])>>24-(7&p)-d&(1<>>3]<<16|t[p+8>>>3]<<8|t[p+16>>>3])>>24-(7&p)-d&(1<>3)]>>7-(7&p)&1;a[m]=a[m+1]=a[m+2]=255*(1-b),a[m+3]=255}if(4==u)for(p=0;p>1)]>>4-4*(1&p)&15,a[m]=a[m+1]=a[m+2]=17*(15-b),a[m+3]=255;if(8==u)for(p=0;p>3)]>>7-(7&p)&1,a[m]=a[m+1]=a[m+2]=255*b,a[m+3]=255;if(2==u)for(p=0;p>2)]>>6-2*(3&p)&3,a[m]=a[m+1]=a[m+2]=85*b,a[m+3]=255;if(8==u)for(p=0;p>8,a[m+1]=g[256+y]>>8,a[m+2]=g[512+y]>>8,a[m+3]=255}}else if(5==s){var v,w=4<(v=t.t258?t.t258.length:4)?1:0;for(p=0;p>8&255,t[e+1]=255&r},writeUint:function(t,e,r){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=r>>0&255},writeASCII:function(t,e,r){for(var n=0;n