blockbench/lib/jimp.min.js
2019-12-15 20:04:31 +01:00

27 lines
530 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
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<u.length;t++)f(u[t]);return f}({1:[function(E,x,t){(function(e){"use strict";var t=E("object-assign");function o(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function a(t){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var l=E("util/"),n=Object.prototype.hasOwnProperty,h=Array.prototype.slice,r="foo"===function(){}.name;function s(t){return Object.prototype.toString.call(t)}function u(t){return!a(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var f=x.exports=b,i=/\s*function\s+([^\(\s]*)\s*/;function c(t){if(l.isFunction(t)){if(r)return t.name;var e=t.toString().match(i);return e&&e[1]}}function d(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function p(t){if(r||!l.isFunction(t))return l.inspect(t);var e=c(t);return"[Function"+(e?": "+e:"")+"]"}function m(t,e,r,n,i){throw new f.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function b(t,e){t||m(t,!0,e,"==",f.ok)}function _(t,e,r,n){if(t===e)return!0;if(a(t)&&a(e))return 0===o(t,e);if(l.isDate(t)&&l.isDate(e))return t.getTime()===e.getTime();if(l.isRegExp(t)&&l.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(u(t)&&u(e)&&s(t)===s(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===o(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var i=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==i&&i===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(l.isPrimitive(t)||l.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=g(t),o=g(e);if(i&&!o||!i&&o)return!1;if(i)return t=h.call(t),e=h.call(e),_(t,e,r);var a,s,u=w(t),f=w(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),s=u.length-1;0<=s;s--)if(u[s]!==f[s])return!1;for(s=u.length-1;0<=s;s--)if(a=u[s],!_(t[a],e[a],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function g(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function y(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function v(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&m(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!t&&i&&!r;if((!t&&l.isError(i)&&o&&y(i,r)||a)&&m(i,r,"Got unwanted exception"+n),t&&i&&r&&!y(i,r)||!t&&i)throw i}f.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return d(p(t.actual),128)+" "+t.operator+" "+d(p(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=c(e),o=n.indexOf("\n"+i);if(0<=o){var a=n.indexOf("\n",o+1);n=n.substring(a+1)}this.stack=n}}},l.inherits(f.AssertionError,Error),f.fail=m,f.ok=b,f.equal=function(t,e,r){t!=e&&m(t,e,r,"==",f.equal)},f.notEqual=function(t,e,r){t==e&&m(t,e,r,"!=",f.notEqual)},f.deepEqual=function(t,e,r){_(t,e,!1)||m(t,e,r,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(t,e,r){_(t,e,!0)||m(t,e,r,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(t,e,r){_(t,e,!1)&&m(t,e,r,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function t(e,r,n){_(e,r,!0)&&m(e,r,n,"notDeepStrictEqual",t)},f.strictEqual=function(t,e,r){t!==e&&m(t,e,r,"===",f.strictEqual)},f.notStrictEqual=function(t,e,r){t===e&&m(t,e,r,"!==",f.notStrictEqual)},f.throws=function(t,e,r){v(!0,t,e,r)},f.doesNotThrow=function(t,e,r){v(!1,t,e,r)},f.ifError=function(t){if(t)throw t},f.strict=t(function t(e,r){e||m(e,!0,r,"==",t)},f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual}),f.strict.strict=f.strict;var w=Object.keys||function(t){var e=[];for(var r in t)n.call(t,r)&&e.push(r);return e}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"object-assign":39,"util/":4}],2:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;function r(){}r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],3:[function(t,e,r){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],4:[function(j,t,A){(function(n,i){var s=/%[sdj%]/g;A.format=function(t){if(!y(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(s,function(t){if("%%"===t)return"%";if(i<=r)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),a=n[r];r<i;a=n[++r])_(a)||!l(a)?o+=" "+a:o+=" "+u(a);return o},A.deprecate=function(t,e){if(v(i.process))return function(){return A.deprecate(t,e).apply(this,arguments)};if(!0===n.noDeprecation)return t;var r=!1;return function(){if(!r){if(n.throwDeprecation)throw new Error(e);n.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}};var t,o={};function u(t,e){var r={seen:[],stylize:f};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),b(e)?r.showHidden=e:e&&A._extend(r,e),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),c(r,t,r.depth)}function a(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function f(t,e){return t}function c(e,r,n){if(e.customInspect&&r&&k(r.inspect)&&r.inspect!==A.inspect&&(!r.constructor||r.constructor.prototype!==r)){var t=r.inspect(n,e);return y(t)||(t=c(e,t,n)),t}var i=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(y(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(g(e))return t.stylize(""+e,"number");if(b(e))return t.stylize(""+e,"boolean");if(_(e))return t.stylize("null","null")}(e,r);if(i)return i;var o=Object.keys(r),a=function(t){var r={};return t.forEach(function(t,e){r[t]=!0}),r}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),x(r)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return d(r);if(0===o.length){if(k(r)){var s=r.name?": "+r.name:"";return e.stylize("[Function"+s+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x(r))return d(r)}var u,f="",l=!1,h=["{","}"];m(r)&&(l=!0,h=["[","]"]),k(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(f=" "+RegExp.prototype.toString.call(r)),E(r)&&(f=" "+Date.prototype.toUTCString.call(r)),x(r)&&(f=" "+d(r)),0!==o.length||l&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=l?function(e,r,n,i,t){for(var o=[],a=0,s=r.length;a<s;++a)S(r,String(a))?o.push(p(e,r,n,i,String(a),!0)):o.push("");return t.forEach(function(t){t.match(/^\d+$/)||o.push(p(e,r,n,i,t,!0))}),o}(e,r,n,a,o):o.map(function(t){return p(e,r,n,a,t,l)}),e.seen.pop(),function(t,e,r){if(60<t.reduce(function(t,e){return 0,0<=e.indexOf("\n")&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0))return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(u,f,h)):h[0]+f+h[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),S(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?-1<(s=_(r)?c(t,u.value,null):c(t,u.value,r-1)).indexOf("\n")&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n")):s=t.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;a=(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),t.stylize(a,"string"))}return a+": "+s}function m(t){return Array.isArray(t)}function b(t){return"boolean"==typeof t}function _(t){return null===t}function g(t){return"number"==typeof t}function y(t){return"string"==typeof t}function v(t){return void 0===t}function w(t){return l(t)&&"[object RegExp]"===e(t)}function l(t){return"object"==typeof t&&null!==t}function E(t){return l(t)&&"[object Date]"===e(t)}function x(t){return l(t)&&("[object Error]"===e(t)||t instanceof Error)}function k(t){return"function"==typeof t}function e(t){return Object.prototype.toString.call(t)}function r(t){return t<10?"0"+t.toString(10):t.toString(10)}A.debuglog=function(e){if(v(t)&&(t=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(t)){var r=n.pid;o[e]=function(){var t=A.format.apply(A,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},(A.inspect=u).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},A.isArray=m,A.isBoolean=b,A.isNull=_,A.isNullOrUndefined=function(t){return null==t},A.isNumber=g,A.isString=y,A.isSymbol=function(t){return"symbol"==typeof t},A.isUndefined=v,A.isRegExp=w,A.isObject=l,A.isDate=E,A.isError=x,A.isFunction=k,A.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},A.isBuffer=j("./support/isBuffer");var h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}A.log=function(){console.log("%s - %s",function(){var t=new Date,e=[r(t.getHours()),r(t.getMinutes()),r(t.getSeconds())].join(":");return[t.getDate(),h[t.getMonth()],e].join(" ")}(),A.format.apply(A,arguments))},A.inherits=j("inherits"),A._extend=function(t,e){if(!e||!l(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,j("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"./support/isBuffer":3,_process:53,inherits:2}],5:[function(t,e,r){"use strict";r.byteLength=function(t){var e=h(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=h(t),i=n[0],o=n[1],a=new l(function(t,e,r){return 3*(e+r)/4-r}(0,i,o)),s=0,u=0<o?i-4:i;for(r=0;r<u;r+=4)e=f[t.charCodeAt(r)]<<18|f[t.charCodeAt(r+1)]<<12|f[t.charCodeAt(r+2)]<<6|f[t.charCodeAt(r+3)],a[s++]=e>>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<a;o+=16383)i.push(u(t,o,a<o+16383?a:o+16383));1==n?(e=t[r-1],i.push(s[e>>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<o;++i)s[i]=n[i],f[n.charCodeAt(i)]=i;function h(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var n,i,o=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(s[(i=n)>>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||t<c.DEFLATE||t>c.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(0<this.strm.avail_in&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=c.INFLATE;break}if(t++,(this.gzip_id_bytes_read=1)===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=c.GUNZIP):this.mode=c.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case c.INFLATE:case c.GUNZIP:case c.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===c.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===c.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===c.Z_DATA_ERROR&&(this.err=c.Z_NEED_DICT));0<this.strm.avail_in&&this.mode===c.GUNZIP&&this.err===c.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},r.prototype._checkError=function(){switch(this.err){case c.Z_OK:case c.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===c.Z_FINISH)return this._error("unexpected end of file"),!1;break;case c.Z_STREAM_END:break;case c.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},r.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},r.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},r.prototype.init=function(t,e,r,n,i){h(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),h(8<=t&&t<=15,"invalid windowBits"),h(-1<=e&&e<=9,"invalid compression level"),h(1<=r&&r<=9,"invalid memlevel"),h(n===c.Z_FILTERED||n===c.Z_HUFFMAN_ONLY||n===c.Z_RLE||n===c.Z_FIXED||n===c.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(e,t,r,n,i),this._setDictionary()},r.prototype.params=function(){throw new Error("deflateParams Not supported")},r.prototype.reset=function(){this._reset(),this._setDictionary()},r.prototype._init=function(t,e,r,n,i){switch(this.level=t,this.windowBits=e,this.memLevel=r,this.strategy=n,this.flush=c.Z_NO_FLUSH,this.err=c.Z_OK,this.mode!==c.GZIP&&this.mode!==c.GUNZIP||(this.windowBits+=16),this.mode===c.UNZIP&&(this.windowBits+=32),this.mode!==c.DEFLATERAW&&this.mode!==c.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case c.DEFLATE:case c.GZIP:case c.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,c.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case c.INFLATE:case c.GUNZIP:case c.INFLATERAW:case c.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==c.Z_OK&&this._error("Init error"),this.dictionary=i,this.write_in_progress=!1,this.init_done=!0},r.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=c.Z_OK,this.mode){case c.DEFLATE:case c.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==c.Z_OK&&this._error("Failed to set dictionary")}},r.prototype._reset=function(){switch(this.err=c.Z_OK,this.mode){case c.DEFLATE:case c.DEFLATERAW:case c.GZIP:this.err=a.deflateReset(this.strm);break;case c.INFLATE:case c.INFLATERAW:case c.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==c.Z_OK&&this._error("Failed to reset stream")},c.Zlib=r}).call(this,n("_process"),n("buffer").Buffer)},{_process:53,assert:1,buffer:11,"pako/lib/zlib/constants":42,"pako/lib/zlib/deflate.js":44,"pako/lib/zlib/inflate.js":46,"pako/lib/zlib/zstream":50}],8:[function(I,t,T){(function(i){"use strict";var b=I("buffer").Buffer,a=I("stream").Transform,s=I("./binding"),t=I("util"),_=I("assert").ok,g=I("buffer").kMaxLength,y="Cannot create final Buffer. It would be larger than 0x"+g.toString(16)+" bytes";s.Z_MIN_WINDOWBITS=8,s.Z_MAX_WINDOWBITS=15,s.Z_DEFAULT_WINDOWBITS=15,s.Z_MIN_CHUNK=64,s.Z_MAX_CHUNK=1/0,s.Z_DEFAULT_CHUNK=16384,s.Z_MIN_MEMLEVEL=1,s.Z_MAX_MEMLEVEL=9,s.Z_DEFAULT_MEMLEVEL=8,s.Z_MIN_LEVEL=-1,s.Z_MAX_LEVEL=9,s.Z_DEFAULT_LEVEL=s.Z_DEFAULT_COMPRESSION;for(var e=Object.keys(s),r=0;r<e.length;r++){var n=e[r];n.match(/^Z/)&&Object.defineProperty(T,n,{enumerable:!0,value:s[n],writable:!1})}for(var o={Z_OK:s.Z_OK,Z_STREAM_END:s.Z_STREAM_END,Z_NEED_DICT:s.Z_NEED_DICT,Z_ERRNO:s.Z_ERRNO,Z_STREAM_ERROR:s.Z_STREAM_ERROR,Z_DATA_ERROR:s.Z_DATA_ERROR,Z_MEM_ERROR:s.Z_MEM_ERROR,Z_BUF_ERROR:s.Z_BUF_ERROR,Z_VERSION_ERROR:s.Z_VERSION_ERROR},u=Object.keys(o),f=0;f<u.length;f++){var l=u[f];o[o[l]]=l}function h(r,t,n){var i=[],o=0;function e(){for(var t;null!==(t=r.read());)i.push(t),o+=t.length;r.once("readable",e)}function a(){var t,e=null;g<=o?e=new RangeError(y):t=b.concat(i,o),i=[],r.close(),n(e,t)}r.on("error",function(t){r.removeListener("end",a),r.removeListener("readable",e),n(t)}),r.on("end",a),r.end(t),e()}function c(t,e){if("string"==typeof e&&(e=b.from(e)),!b.isBuffer(e))throw new TypeError("Not a string or buffer");var r=t._finishFlushFlag;return t._processChunk(e,r)}function d(t){if(!(this instanceof d))return new d(t);S.call(this,t,s.DEFLATE)}function p(t){if(!(this instanceof p))return new p(t);S.call(this,t,s.INFLATE)}function m(t){if(!(this instanceof m))return new m(t);S.call(this,t,s.GZIP)}function v(t){if(!(this instanceof v))return new v(t);S.call(this,t,s.GUNZIP)}function w(t){if(!(this instanceof w))return new w(t);S.call(this,t,s.DEFLATERAW)}function E(t){if(!(this instanceof E))return new E(t);S.call(this,t,s.INFLATERAW)}function x(t){if(!(this instanceof x))return new x(t);S.call(this,t,s.UNZIP)}function k(t){return t===s.Z_NO_FLUSH||t===s.Z_PARTIAL_FLUSH||t===s.Z_SYNC_FLUSH||t===s.Z_FULL_FLUSH||t===s.Z_FINISH||t===s.Z_BLOCK}function S(t,e){var r=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||T.Z_DEFAULT_CHUNK,a.call(this,t),t.flush&&!k(t.flush))throw new Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!k(t.finishFlush))throw new Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||s.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:s.Z_FINISH,t.chunkSize&&(t.chunkSize<T.Z_MIN_CHUNK||t.chunkSize>T.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<T.Z_MIN_WINDOWBITS||t.windowBits>T.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<T.Z_MIN_LEVEL||t.level>T.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<T.Z_MIN_MEMLEVEL||t.memLevel>T.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(t<T.Z_MIN_LEVEL||t>T.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<r){var n=h._buffer.slice(h._offset,h._offset+r);h._offset+=r,c?h.push(n):(d.push(n),p+=n.length)}if((0===e||h._offset>=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<r.length&&(n=r[0]+"@",t=r[1]),n+d((t=t.replace(l,".")).split("."),e).join(".")}function A(t){for(var e,r,n=[],i=0,o=t.length;i<o;)55296<=(e=t.charCodeAt(i++))&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function I(t){return d(t,function(t){var e="";return 65535<t&&(e+=S((t-=65536)>>>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>>1<t;n+=g)t=k(t/c);return k(n+(c+1)*t/(t+a))}function m(t){var e,r,n,i,o,a,s,u,f,l,h,c=[],d=t.length,p=0,m=E,b=w;for((r=t.lastIndexOf(x))<0&&(r=0),n=0;n<r;++n)128<=t.charCodeAt(n)&&j("not-basic"),c.push(t.charCodeAt(n));for(i=0<r?r+1:0;i<d;){for(o=p,a=1,s=g;d<=i&&j("invalid-input"),h=t.charCodeAt(i++),(g<=(u=h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:g)||u>k((_-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;a<c;++a)(h=t[a])<128&&b.push(S(h));for(n=i=b.length,i&&b.push(x);n<c;){for(s=_,a=0;a<c;++a)e<=(h=t[a])&&h<s&&(s=h);for(s-e>k((_-r)/(d=n+1))&&j("overflow"),r+=(s-e)*d,e=s,a=0;a<c;++a)if((h=t[a])<e&&++r>_&&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<t)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,h.prototype),e}function h(t,e,r){if("number"!=typeof t)return i(t,e,r);if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}function i(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!h.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|c(t,e),n=a(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return f(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,ArrayBuffer)||t&&L(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return Object.setPrototypeOf(n,h.prototype),n}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return h.from(n,e,r);var i=function(t){if(h.isBuffer(t)){var e=0|l(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||C(t.length)?a(0):f(t);if("Buffer"===t.type&&Array.isArray(t.data))return f(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return s(t),a(t<0?0:0|l(t))}function f(t){for(var e=t.length<0?0:0|l(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function l(t){if(r<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function c(t,e){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||L(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return P(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return 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<r?r=2147483647:r<-2147483648&&(r=-2147483648),C(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=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<s;o++)if(f(t,o)===f(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(s<r+u&&(r=s-u),o=r;0<=o;o--){for(var h=!0,c=0;c<u;c++)if(f(t,o+c)!==f(e,c)){h=!1;break}if(h)return o}return-1}function b(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?i<(n=Number(n))&&(n=i):n=i;var o=e.length;o/2<n&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(C(s))return a;t[r+a]=s}return a}function _(t,e,r,n){return R(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function g(t,e,r,n){return R(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>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<r;){var o,a,s,u,f=t[i],l=null,h=239<f?4:223<f?3:191<f?2:1;if(i+h<=r)switch(h){case 1:f<128&&(l=f);break;case 2:128==(192&(o=t[i+1]))&&127<(u=(31&f)<<6|63&o)&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&2047<(u=(15&f)<<12|(63&o)<<6|63&a)&&(u<55296||57343<u)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)&&u<1114112&&(l=u)}null===l?(l=65533,h=1):65535<l&&(l-=65536,n.push(l>>>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(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=w));return r}(n)}D.kMaxLength=r,(h.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),h.poolSize=8192,h.from=function(t,e,r){return i(t,e,r)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(t,e,r){return function(t,e,r){return s(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},h.allocUnsafe=function(t){return u(t)},h.allocUnsafeSlow=function(t){return u(t)},h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,e){if(L(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),L(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);var r;if(void 0===e)for(r=e=0;r<t.length;++r)e+=t[r].length;var n=h.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(L(o,Uint8Array)&&(o=h.from(o)),!h.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},h.byteLength=c,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)d(this,e,e+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},h.prototype.toLocaleString=h.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?v(this,0,t):function(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.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+=" ... "),"<Buffer "+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<s;++l)if(u[l]!==f[l]){o=u[l],a=f[l];break}return o<a?-1:a<o?1:0},h.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},h.prototype.indexOf=function(t,e,r){return p(this,t,e,r,!0)},h.prototype.lastIndexOf=function(t,e,r){return p(this,t,e,r,!1)},h.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||i<r)&&(r=i),0<t.length&&(r<0||e<0)||e>this.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;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function x(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function k(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||n<r)&&(r=n);for(var i="",o=e;o<r;++o)i+=B[t[o]];return i}function S(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function j(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function A(t,e,r,n,i,o){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<e||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.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<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,h.prototype),n},h.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||j(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},h.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||j(t,e,this.length);for(var n=this[t+--e],i=1;0<e&&(i*=256);)n+=this[t+--e]*i;return n},h.prototype.readUInt8=function(t,e){return t>>>=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<e&&(i*=256);)n+=this[t+o]*i;return(i*=128)<=n&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||j(t,e,this.length);for(var n=e,i=1,o=this[t+--n];0<n&&(i*=256);)o+=this[t+--n]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return t>>>=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<r&&(i*=256);)this[e+o]=t/i&255;return e+r},h.prototype.writeUIntBE=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=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<r&&(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.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<n&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;0<=o;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},h.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(o=e;o<r;++o)this[o]=t;else{var a=h.isBuffer(t)?t:h.from(t,n),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var e=/[^+/0-9A-Za-z-_]/g;function P(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if(55295<(r=t.charCodeAt(a))&&r<57344){if(!i){if(56319<r){-1<(e-=3)&&o.push(239,191,189);continue}if(a+1===n){-1<(e-=3)&&o.push(239,191,189);continue}i=r;continue}if(r<56320){-1<(e-=3)&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&-1<(e-=3)&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>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<n&&!(i+r>=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))&&0<i&&a.length>i){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<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=o.call(c,n);return i.listener=r,n.wrapFn=i}function p(t,e,r){var n=t._events;if(!n)return[];var i=n[e];return i?"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):b(i,i.length):[]}function m(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function b(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}i?Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||t!=t)throw new TypeError('"defaultMaxListeners" must be a positive number');s=t}}):n.defaultMaxListeners=s,n.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},n.prototype.getMaxListeners=function(){return l(this)},n.prototype.emit=function(t,e,r,n){var i,o,a,s,u,f,l="error"===t;if(f=this._events)l=l&&null==f.error;else if(!l)return!1;if(l){if(1<arguments.length&&(i=e),i instanceof Error)throw i;var h=new Error('Unhandled "error" event. ('+i+")");throw h.context=i,h}if(!(o=f[t]))return!1;var c="function"==typeof o;switch(a=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,i=b(t,n),o=0;o<n;++o)i[o].call(r)}(o,c,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,o=b(t,i),a=0;a<i;++a)o[a].call(r,n)}(o,c,this,e);break;case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i);else for(var o=t.length,a=b(t,o),s=0;s<o;++s)a[s].call(r,n,i)}(o,c,this,e,r);break;case 4:!function(t,e,r,n,i,o){if(e)t.call(r,n,i,o);else for(var a=t.length,s=b(t,a),u=0;u<a;++u)s[u].call(r,n,i,o)}(o,c,this,e,r,n);break;default:for(s=new Array(a-1),u=1;u<a;u++)s[u-1]=arguments[u];!function(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,o=b(t,i),a=0;a<i;++a)o[a].apply(r,n)}(o,c,this,s)}return!0},n.prototype.on=n.prototype.addListener=function(t,e){return h(this,t,e,!1)},n.prototype.prependListener=function(t,e){return h(this,t,e,!0)},n.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,d(this,t,e)),this},n.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,d(this,t,e)),this},n.prototype.removeListener=function(t,e){var r,n,i,o,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=u(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;0<=o;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),n.removeListener&&this.emit("removeListener",t,a||e)}return this},n.prototype.removeAllListeners=function(t){var e,r,n;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=u(null),this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=u(null):delete r[t]),this;if(0===arguments.length){var i,o=a(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=u(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)for(n=e.length-1;0<=n;n--)this.removeListener(t,e[n]);return this},n.prototype.listeners=function(t){return p(this,t,!0)},n.prototype.rawListeners=function(t){return p(this,t,!1)},n.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},n.prototype.listenerCount=m,n.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],34:[function(t,e,r){var n=t("http"),i=t("url"),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(t){if("string"==typeof t&&(t=i.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(t,e){return t=s(t),n.request.call(this,t,e)},o.get=function(t,e){return t=s(t),n.get.call(this,t,e)}},{http:72,url:93}],35:[function(t,e,r){r.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,f=u>>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;o=256*o+t[e+h],h+=c,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;0<l;a=256*a+t[e+h],h+=c,l-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var a,s,u,f=8*o-i-1,l=(1<<f)-1,h=l>>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<<i|s,f+=i;0<f;t[r+d]=255&a,d+=p,a/=256,f-=8);t[r+d-p]|=128*m}},{}],36:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;function r(){}r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],37:[function(t,e,r){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}e.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],38:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],39:[function(t,e,r){"use strict";var u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,i=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var a in r=Object(arguments[o]))f.call(r,a)&&(i[a]=r[a]);if(u){n=u(r);for(var s=0;s<n.length;s++)l.call(r,n[s])&&(i[n[s]]=r[n[s]])}}return i}},{}],40:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var e,r,n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var o in i)e=i,r=o,Object.prototype.hasOwnProperty.call(e,r)&&(t[o]=i[o])}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(e=n=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),e=i=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],41:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;o=o+(i=i+e[n++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],42:[function(t,e,r){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],43:[function(t,e,r){"use strict";var s=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>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<o;a++)t=t>>>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)-(4<t?9:0)}function L(t){for(var e=t.length;0<=--e;)t[e]=0}function C(t){var e=t.state,r=e.pending;r>t.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]&&o<c);if(n=k-(c-o),o=c-k,a<n){if(t.match_start=e,s<=(a=n))break;d=f[o+a-1],p=f[o+a]}}}while((e=h[e&l])>u&&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<l&&(l=f),r=0===l?0:(a.avail_in-=l,c.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=d(a.adler,s,l,u):2===a.state.wrap&&(a.adler=p(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=r,t.lookahead+t.insert>=x)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+x-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<x)););}while(t.lookahead<S&&0!==t.strm.avail_in)}function z(t,e){for(var r,n;;){if(t.lookahead<S){if(F(t),t.lookahead<S&&e===l)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=x&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-S&&(t.match_length=U(t,r)),t.match_length>=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<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=f._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=t.strstart<x-1?t.strstart:x-1,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}function H(t,e){for(var r,n,i;;){if(t.lookahead<S){if(F(t),t.lookahead<S&&e===l)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=x&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=x-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-S&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===x&&4096<t.strstart-t.match_start)&&(t.match_length=x-1)),t.prev_length>=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.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=x-1,t.strstart++,n&&(B(t,!1),0===t.strm.avail_out))return I}else if(t.match_available){if((n=f._tr_tally(t,0,t.window[t.strstart-1]))&&B(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return I}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=f._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<x-1?t.strstart:x-1,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}function G(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new c.Buf16(2*w),this.dyn_dtree=new c.Buf16(2*(2*a+1)),this.bl_tree=new c.Buf16(2*(2*s+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new c.Buf16(E+1),this.heap=new c.Buf16(2*o+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*o+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function q(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=i,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?j:A,t.adler=2===e.wrap?0:1,e.last_flush=l,f._tr_init(e),m):M(t,b)}function Z(t){var e=q(t);return e===m&&function(t){t.window_size=2*t.w_size,L(t.head),t.max_lazy_match=u[t.level].max_lazy,t.good_match=u[t.level].good_length,t.nice_match=u[t.level].nice_length,t.max_chain_length=u[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=x-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,r,n,i,o){if(!t)return b;var a=1;if(e===_&&(e=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),i<1||v<i||r!==y||n<8||15<n||e<0||9<e||o<0||g<o)return M(t,b);8===n&&(n=9);var s=new W;return(t.state=s).strm=t,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+x-1)/x),s.window=new c.Buf8(2*s.w_size),s.head=new c.Buf16(s.hash_size),s.prev=new c.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new c.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=r,Z(t)}u=[new G(0,0,0,0,function(t,e){var r=65535;for(r>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<e||e<0)return t?M(t,b):b;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&e!==h)return M(t,0===t.avail_out?-5:b);if(n.strm=t,r=n.last_flush,n.last_flush=e,n.status===j)if(2===n.wrap)t.adler=0,N(n,31),N(n,139),N(n,8),n.gzhead?(N(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),N(n,255&n.gzhead.time),N(n,n.gzhead.time>>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.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,N(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(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.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,N(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(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&&0<t.strstart&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+k;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=k-(o-i),t.match_length>t.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<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?m:1)},r.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==j&&69!==e&&73!==e&&91!==e&&103!==e&&e!==A&&666!==e?M(t,b):(t.state=null,e===A?M(t,-3):m):b},r.deflateSetDictionary=function(t,e){var r,n,i,o,a,s,u,f,l=e.length;if(!t||!t.state)return b;if(2===(o=(r=t.state).wrap)||1===o&&r.status!==j||r.lookahead)return b;for(1===o&&(t.adler=d(t.adler,e,l,0)),r.wrap=0,l>=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<<r.hash_shift^r.window[n+x-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=x-1,F(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=x-1,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=o,m},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":40,"./adler32":41,"./crc32":43,"./messages":48,"./trees":49}],45:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n,i,o,a,s,u,f,l,h,c,d,p,m,b,_,g,y,v,w,E,x,k,S,j;r=t.state,n=t.next_in,S=t.input,i=n+(t.avail_in-5),o=t.next_out,j=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,f=r.wsize,l=r.whave,h=r.wnext,c=r.window,d=r.hold,p=r.bits,m=r.lencode,b=r.distcode,_=(1<<r.lenbits)-1,g=(1<<r.distbits)-1;t:do{p<15&&(d+=S[n++]<<p,p+=8,d+=S[n++]<<p,p+=8),y=m[d&_];e:for(;;){if(d>>>=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)-1)];continue e}if(32&v){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&y,(v&=15)&&(p<v&&(d+=S[n++]<<p,p+=8),w+=d&(1<<v)-1,d>>>=v,p-=v),p<15&&(d+=S[n++]<<p,p+=8,d+=S[n++]<<p,p+=8),y=b[d&g];r:for(;;){if(d>>>=v=y>>>24,p-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=b[(65535&y)+(d&(1<<v)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(E=65535&y,p<(v&=15)&&(d+=S[n++]<<p,(p+=8)<v&&(d+=S[n++]<<p,p+=8)),u<(E+=d&(1<<v)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=v,p-=v,(v=o-a)<E){if(l<(v=E-v)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(k=c,(x=0)===h){if(x+=f-v,v<w){for(w-=v;j[o++]=c[x++],--v;);x=o-E,k=j}}else if(h<v){if(x+=f+h-v,(v-=h)<w){for(w-=v;j[o++]=c[x++],--v;);if(x=0,h<w){for(w-=v=h;j[o++]=c[x++],--v;);x=o-E,k=j}}}else if(x+=h-v,v<w){for(w-=v;j[o++]=c[x++],--v;);x=o-E,k=j}for(;2<w;)j[o++]=k[x++],j[o++]=k[x++],j[o++]=k[x++],w-=3;w&&(j[o++]=k[x++],1<w&&(j[o++]=k[x++]))}else{for(x=o-E;j[o++]=j[x++],j[o++]=j[x++],j[o++]=j[x++],2<(w-=3););w&&(j[o++]=j[x++],1<w&&(j[o++]=j[x++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p}},{}],46:[function(t,e,r){"use strict";var T=t("../utils/common"),O=t("./adler32"),P=t("./crc32"),M=t("./inffast"),R=t("./inftrees"),L=1,C=2,B=0,N=-2,D=1,n=852,i=592;function U(t){return(t>>>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<e)?N:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,s(t))):N}function f(t,e){var r,n;return t?(n=new o,(t.state=n).window=null,(r=u(t,e))!==B&&(t.state=null),r):N}var l,h,c=!0;function F(t){if(c){var e;for(l=new T.Buf32(512),h=new T.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(R(L,t.lens,0,288,l,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;R(C,t.lens,0,32,h,0,t.work,{bits:5}),c=!1}t.lencode=l,t.lenbits=9,t.distcode=h,t.distbits=5}function z(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new T.Buf8(o.wsize)),n>=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<o.wsize&&(o.whave+=i))),0}r.inflateReset=s,r.inflateReset2=u,r.inflateResetKeep=a,r.inflateInit=function(t){return f(t,15)},r.inflateInit2=f,r.inflate=function(t,e){var r,n,i,o,a,s,u,f,l,h,c,d,p,m,b,_,g,y,v,w,E,x,k,S,j=0,A=new T.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return N;12===(r=t.state).mode&&(r.mode=13),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,h=s,c=u,x=B;t:for(;;)switch(r.mode){case D:if(0===r.wrap){r.mode=13;break}for(;l<16;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}if(2&r.wrap&&35615===f){A[r.check=0]=255&f,A[1]=f>>>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<<E,t.adler=r.check=1,r.mode=512&f?10:12,l=f=0;break;case 2:for(;l<16;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}if(r.flags=f,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=f>>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++]<<l,l+=8}r.head&&(r.head.time=f),512&r.flags&&(A[0]=255&f,A[1]=f>>>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++]<<l,l+=8}r.head&&(r.head.xflags=255&f,r.head.os=f>>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++]<<l,l+=8}r.length=f,r.head&&(r.head.extra_len=f),512&r.flags&&(A[0]=255&f,A[1]=f>>>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<s;);if(512&r.flags&&(r.check=P(r.check,n,d,o)),s-=d,o+=d,E)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break t;for(d=0;E=n[o+d++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E)),E&&d<s;);if(512&r.flags&&(r.check=P(r.check,n,d,o)),s-=d,o+=d,E)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;l<16;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}if(f!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}l=f=0}r.head&&(r.head.hcrc=r.flags>>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++]<<l,l+=8}t.adler=r.check=U(f),l=f=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=f,r.bits=l,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){f>>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}switch(r.last=1&f,l-=1,3&(f>>>=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++]<<l,l+=8}if((65535&f)!=(f>>>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<d&&(d=s),u<d&&(d=u),0===d)break t;T.arraySet(i,n,o,d,a),s-=d,o+=d,u-=d,a+=d,r.length-=d;break}r.mode=12;break;case 17:for(;l<14;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}if(r.nlen=257+(31&f),f>>>=5,l-=5,r.ndist=1+(31&f),f>>>=5,l-=5,r.ncode=4+(15&f),f>>>=4,l-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;l<3;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}r.lens[I[r.have++]]=7&f,f>>>=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<r.nlen+r.ndist;){for(;_=(j=r.lencode[f&(1<<r.lenbits)-1])>>>16&255,g=65535&j,!((b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}if(g<16)f>>>=b,l-=b,r.lens[r.have++]=g;else{if(16===g){for(S=b+2;l<S;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}if(f>>>=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<S;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}l-=b,E=0,d=3+(7&(f>>>=b)),f>>>=3,l-=3}else{for(S=b+7;l<S;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}l-=b,E=0,d=11+(127&(f>>>=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<<r.lenbits)-1])>>>16&255,g=65535&j,!((b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}if(_&&0==(240&_)){for(y=b,v=_,w=g;_=(j=r.lencode[w+((f&(1<<y+v)-1)>>y)])>>>16&255,g=65535&j,!(y+(b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}f>>>=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<S;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;_=(j=r.distcode[f&(1<<r.distbits)-1])>>>16&255,g=65535&j,!((b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}if(0==(240&_)){for(y=b,v=_,w=g;_=(j=r.distcode[w+((f&(1<<y+v)-1)>>y)])>>>16&255,g=65535&j,!(y+(b=j>>>24)<=l);){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}f>>>=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<S;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}r.offset+=f&(1<<r.extra)-1,f>>>=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(u<d&&(d=u),u-=d,r.length-=d;i[a++]=m[p++],--d;);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;i[a++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;l<32;){if(0===s)break t;s--,f|=n[o++]<<l,l+=8}if(c-=u,t.total_out+=c,r.total+=c,c&&(t.adler=r.check=r.flags?P(r.check,i,c,a-c):O(r.check,i,c,a-c)),c=u,(r.flags?f:U(f))!==r.check){t.msg="incorrect data check",r.mode=30;break}l=f=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;l<32;){if(0===s)break t;s--,f+=n[o++]<<l,l+=8}if(f!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}l=f=0}r.mode=29;case 29:x=1;break t;case 30:x=-3;break t;case 31:return-4;case 32:default:return N}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=f,r.bits=l,(r.wsize||c!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&z(t,t.output,t.next_out,c-t.avail_out)?(r.mode=31,-4):(h-=t.avail_in,c-=t.avail_out,t.total_in+=h,t.total_out+=c,r.total+=c,r.wrap&&c&&(t.adler=r.check=r.flags?P(r.check,i,c,t.next_out-c):O(r.check,i,c,t.next_out-c)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==h&&0===c||4===e)&&x===B&&(x=-5),x)},r.inflateEnd=function(t){if(!t||!t.state)return N;var e=t.state;return e.window&&(e.window=null),t.state=null,B},r.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?N:((r.head=e).done=!1,B):N},r.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?N:11===r.mode&&O(1,e,n,0)!==r.check?-3:z(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,B):N},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":40,"./adler32":41,"./crc32":43,"./inffast":45,"./inftrees":47}],47:[function(t,e,r){"use strict";var L=t("../utils/common"),C=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],B=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],N=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],D=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,r,n,i,o,a,s){var u,f,l,h,c,d,p,m,b,_=s.bits,g=0,y=0,v=0,w=0,E=0,x=0,k=0,S=0,j=0,A=0,I=null,T=0,O=new L.Buf16(16),P=new L.Buf16(16),M=null,R=0;for(g=0;g<=15;g++)O[g]=0;for(y=0;y<n;y++)O[e[r+y]]++;for(E=_,w=15;1<=w&&0===O[w];w--);if(w<E&&(E=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(v=1;v<w&&0===O[v];v++);for(E<v&&(E=v),g=S=1;g<=15;g++)if(S<<=1,(S-=O[g])<0)return-1;if(0<S&&(0===t||1!==w))return-1;for(P[1]=0,g=1;g<15;g++)P[g+1]=P[g]+O[g];for(y=0;y<n;y++)0!==e[r+y]&&(a[P[e[r+y]]++]=y);if(d=0===t?(I=M=a,19):1===t?(I=C,T-=257,M=B,R-=257,256):(I=N,M=D,-1),g=v,c=o,k=y=A=0,l=-1,h=(j=1<<(x=E))-1,1===t&&852<j||2===t&&592<j)return 1;for(;;){for(p=g-k,b=a[y]<d?(m=0,a[y]):a[y]>d?(m=M[R+a[y]],I[T+a[y]]):(m=96,0),u=1<<g-k,v=f=1<<x;i[c+(A>>k)+(f-=u)]=p<<24|m<<16|b|0,0!==f;);for(u=1<<g-1;A&u;)u>>=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<g&&(A&h)!==l){for(0===k&&(k=E),c+=v,S=1<<(x=g-k);x+k<w&&!((S-=O[x+k])<=0);)x++,S<<=1;if(j+=1<<x,1===t&&852<j||2===t&&592<j)return 1;i[l=A&h]=E<<24|x<<16|c-o|0}}return 0!==A&&(i[c+A]=g-k<<24|64<<16|0),s.bits=E,0}},{"../utils/common":40}],48:[function(t,e,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],49:[function(t,e,r){"use strict";var i=t("../utils/common"),s=0,u=1;function n(t){for(var e=t.length;0<=--e;)t[e]=0}var o=0,a=29,f=256,l=f+1+a,h=30,c=19,b=2*l+1,_=15,d=16,p=7,m=256,g=16,y=17,v=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(2*(l+2));n(S);var j=new Array(2*h);n(j);var A=new Array(512);n(A);var I=new Array(256);n(I);var T=new Array(a);n(T);var O,P,M,R=new Array(h);function L(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function C(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function B(t){return t<256?A[t]:A[256+(t>>>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<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>d-t.bi_valid,t.bi_valid+=r-d):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function U(t,e,r){D(t,r[2*e],r[2*e+1])}function F(t,e){for(var r=0;r|=1&t,t>>>=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<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<c;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*m]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function G(t){8<t.bi_valid?N(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function W(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function q(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&W(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!W(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function Z(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?U(t,i,e):(U(t,(o=I[i])+f+1,e),0!==(a=w[o])&&D(t,i-=T[o],a),U(t,o=B(--n),r),0!==(a=E[o])&&D(t,n-=R[o],a)),s<t.last_lit;);U(t,m,e)}function Y(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=b,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=f=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=f,r=t.heap_len>>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<b;r++)p<(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)&&(o=p,m++),u[2*n+1]=o,f<n||(t.bl_count[o]++,a=0,d<=n&&(a=c[n-d]),s=u[2*n],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==m){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,m-=2}while(0<m);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)f<(i=t.heap[--r])||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),z(o,f,t.bl_count)}function V(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,f=4;for(0===a&&(u=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<f?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*g]++):s<=10?t.bl_tree[2*y]++:t.bl_tree[2*v]++,o=i,f=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4))}function X(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,f=4;for(0===a&&(u=138,f=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<f)for(;U(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==o&&(U(t,i,t.bl_tree),s--),U(t,g,t.bl_tree),D(t,s-3,2)):s<=10?(U(t,y,t.bl_tree),D(t,s-3,3)):(U(t,v,t.bl_tree),D(t,s-11,7));o=i,f=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4)}}n(R);var J=!1;function K(t,e,r,n){D(t,(o<<1)+(n?1:0),3),function(t,e,r,n){G(t),n&&(N(t,r),N(t,~r)),i.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}r._tr_init=function(t){J||(function(){var t,e,r,n,i,o=new Array(_+1);for(n=r=0;n<a-1;n++)for(T[n]=r,t=0;t<1<<w[n];t++)I[r++]=n;for(I[r-1]=n,n=i=0;n<16;n++)for(R[n]=i,t=0;t<1<<E[n];t++)A[i++]=n;for(i>>=7;n<h;n++)for(R[n]=i<<7,t=0;t<1<<E[n]-7;t++)A[256+i++]=n;for(e=0;e<=_;e++)o[e]=0;for(t=0;t<=143;)S[2*t+1]=8,t++,o[8]++;for(;t<=255;)S[2*t+1]=9,t++,o[9]++;for(;t<=279;)S[2*t+1]=7,t++,o[7]++;for(;t<=287;)S[2*t+1]=8,t++,o[8]++;for(z(S,l+1,o),t=0;t<h;t++)j[2*t+1]=5,j[2*t]=F(t,5);O=new L(S,w,f+1,l,_),P=new L(j,E,0,h,_),M=new L(new Array(0),x,0,c,p)}(),J=!0),t.l_desc=new C(t.dyn_ltree,O),t.d_desc=new C(t.dyn_dtree,P),t.bl_desc=new C(t.bl_tree,M),t.bi_buf=0,t.bi_valid=0,H(t)},r._tr_stored_block=K,r._tr_flush_block=function(t,e,r,n){var i,o,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=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<f;e++)if(0!==t.dyn_ltree[2*e])return u;return s}(t)),Y(t,t.l_desc),Y(t,t.d_desc),a=function(t){var e;for(V(t,t.dyn_ltree,t.l_desc.max_code),V(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=c-1;3<=e&&0===t.bl_tree[2*k[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>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<n;i++)D(t,t.bl_tree[2*k[i]+1],3);X(t,t.dyn_ltree,e-1),X(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Z(t,t.dyn_ltree,t.dyn_dtree)),H(t),n&&G(t)},r._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>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;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}f.resolve=function(){for(var t="",e=!1,r=arguments.length-1;-1<=r&&!e;r--){var n=0<=r?arguments[r]:i.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(t=n+"/"+t,e="/"===n.charAt(0))}return(e?"/":"")+(t=o(a(t.split("/"),function(t){return!!t}),!e).join("/"))||"."},f.normalize=function(t){var e=f.isAbsolute(t),r="/"===n(t,-1);return(t=o(a(t.split("/"),function(t){return!!t}),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},f.isAbsolute=function(t){return"/"===t.charAt(0)},f.join=function(){var t=Array.prototype.slice.call(arguments,0);return f.normalize(a(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},f.relative=function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;0<=r&&""===t[r];r--);return r<e?[]:t.slice(e,r-e+1)}t=f.resolve(t).substr(1),e=f.resolve(e).substr(1);for(var n=r(t.split("/")),i=r(e.split("/")),o=Math.min(n.length,i.length),a=o,s=0;s<o;s++)if(n[s]!==i[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push("..");return(u=u.concat(i.slice(a))).join("/")},f.sep="/",f.delimiter=":",f.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,i=!0,o=t.length-1;1<=o;--o)if(47===(e=t.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},f.basename=function(t,e){var r=function(t){"string"!=typeof t&&(t+="");var e,r=0,n=-1,i=!0;for(e=t.length-1;0<=e;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},f.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,i=!0,o=0,a=t.length-1;0<=a;--a){var s=t.charCodeAt(a);if(47===s){if(i)continue;r=a+1;break}-1===n&&(i=!1,n=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1)}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?"":t.slice(e,n)};var n="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,t("_process"))},{_process:53}],52:[function(t,e,r){(function(s){"use strict";void 0===s||!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?e.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return s.nextTick(t);case 2:return s.nextTick(function(){t.call(null,e)});case 3:return s.nextTick(function(){t.call(null,e,r)});case 4:return s.nextTick(function(){t.call(null,e,r,n)});default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return s.nextTick(function(){t.apply(null,i)})}}}:e.exports=s}).call(this,t("_process"))},{_process:53}],53:[function(t,e,r){var n,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var f,l=[],h=!1,c=-1;function d(){h&&f&&(h=!1,f.length?l=f.concat(l):c=-1,l.length&&p())}function p(){if(!h){var t=u(d);h=!0;for(var e=l.length;e;){for(f=l,l=[];++c<e;)f&&f[c].run();c=-1,e=l.length}f=null,h=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function b(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new m(t,e)),1!==l.length||h||u(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],54:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){e=e||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var o=/\+/g;t=t.split(e);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s,u,f=t.length;0<a&&a<f&&(f=a);for(var l=0;l<f;++l){var h,c,d,p,m=t[l].replace(o,"%20"),b=m.indexOf(r);c=0<=b?(h=m.substr(0,b),m.substr(b+1)):(h=m,""),d=decodeURIComponent(h),p=decodeURIComponent(c),s=i,u=d,Object.prototype.hasOwnProperty.call(s,u)?_(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i};var _=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],55:[function(t,e,r){"use strict";function o(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}e.exports=function(r,n,i,t){return n=n||"&",i=i||"=",null===r&&(r=void 0),"object"==typeof r?s(u(r),function(t){var e=encodeURIComponent(o(t))+i;return a(r[t])?s(r[t],function(t){return e+encodeURIComponent(o(t))}).join(n):e+encodeURIComponent(o(r[t]))}).join(n):t?encodeURIComponent(o(t))+i+encodeURIComponent(o(r)):""};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function s(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var u=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],56:[function(t,e,r){"use strict";r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":54,"./encode":55}],57:[function(t,e,r){e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":58}],58:[function(t,e,r){"use strict";var n=t("process-nextick-args"),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=h;var o=t("core-util-is");o.inherits=t("inherits");var a=t("./_stream_readable"),s=t("./_stream_writable");o.inherits(h,a);for(var u=i(s.prototype),f=0;f<u.length;f++){var l=u[f];h.prototype[l]||(h.prototype[l]=s.prototype[l])}function h(t){if(!(this instanceof h))return new h(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),n.nextTick(e,t)}},{"./_stream_readable":60,"./_stream_writable":62,"core-util-is":32,inherits:36,"process-nextick-args":52}],59:[function(t,e,r){"use strict";e.exports=o;var n=t("./_stream_transform"),i=t("core-util-is");function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=t("inherits"),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":61,"core-util-is":32,inherits:36}],60:[function(R,L,t){(function(m,t){"use strict";var b=R("process-nextick-args");L.exports=c;var a,_=R("isarray");c.ReadableState=o;function g(t,e){return t.listeners(e).length}R("events").EventEmitter;var i=R("./internal/streams/stream"),s=R("safe-buffer").Buffer,u=t.Uint8Array||function(){};var e=R("core-util-is");e.inherits=R("inherits");var r=R("util"),y=void 0;y=r&&r.debuglog?r.debuglog("stream"):function(){};var f,l=R("./internal/streams/BufferList"),n=R("./internal/streams/destroy");e.inherits(c,i);var h=["error","close","destroy","pause","resume"];function o(t,e){t=t||{};var r=e instanceof(a=a||R("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f=f||R("string_decoder/").StringDecoder,this.decoder=new f(t.encoding),this.encoding=t.encoding)}function c(t){if(a=a||R("./_stream_duplex"),!(this instanceof c))return new c(t);this._readableState=new o(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function d(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,E(t)}(t,a)):(i||(o=function(t,e){var r;(function(t){return s.isBuffer(t)||t instanceof u})(e)||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(a,e)),o?t.emit("error",o):a.objectMode||e&&0<e.length?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):p(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?p(t,a,e,!1):k(t,a)):p(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function p(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&E(t)),k(t,e)}Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),c.prototype.destroy=n.destroy,c.prototype._undestroy=n.undestroy,c.prototype._destroy=function(t,e){this.push(null),e(t)},c.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),r=!0),d(this,t,e,!1,r)},c.prototype.unshift=function(t){return d(this,t,null,!0,!1)},c.prototype.isPaused=function(){return!1===this._readableState.flowing},c.prototype.setEncoding=function(t){return f=f||R("string_decoder/").StringDecoder,this._readableState.decoder=new f(t),this._readableState.encoding=t,this};var v=8388608;function w(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.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.highWaterMark&&(y("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function j(t){y("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(y("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),I(t),e.flowing&&!e.reading&&t.read(0)}function I(t){var e=t._readableState;for(y("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=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;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.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.length)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,b.nextTick(P,e,t))}function P(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function M(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}c.prototype.read=function(t){y("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=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<e.highWaterMark)&&y("length less than watermark",i=!0),e.ended||e.reading?y("reading or ended",i=!1):i&&(y("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=w(r,e))),null===(n=0<t?T(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&O(this)),null!==n&&this.emit("data",n),n},c.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(r,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r)}i.pipesCount+=1,y("pipe count=%d opts=%j",i.pipesCount,t);var e=(!t||!1!==t.end)&&r!==m.stdout&&r!==m.stderr?a:p;function o(t,e){y("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,y("cleanup"),r.removeListener("close",c),r.removeListener("finish",d),r.removeListener("drain",s),r.removeListener("error",h),r.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",p),n.removeListener("data",l),u=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||s())}function a(){y("onend"),r.end()}i.endEmitted?b.nextTick(e):n.once("end",e),r.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;y("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&g(e,"data")&&(t.flowing=!0,I(e))}}(n);r.on("drain",s);var u=!1;var f=!1;function l(t){y("ondata"),(f=!1)!==r.write(t)||f||((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==M(i.pipes,r))&&!u&&(y("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function h(t){y("onerror",t),p(),r.removeListener("error",h),0===g(r,"error")&&r.emit("error",t)}function c(){r.removeListener("finish",d),p()}function d(){y("onfinish"),r.removeListener("close",c),p()}function p(){y("unpipe"),n.unpipe(r)}return n.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?_(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(r,"error",h),r.once("close",c),r.once("finish",d),r.emit("pipe",n),i.flowing||(y("pipe resume"),n.resume()),r},c.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t=t||e.pipes,e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=M(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},c.prototype.addListener=c.prototype.on=function(t,e){var r=i.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&E(this):b.nextTick(j,this))}return r},c.prototype.resume=function(){var t=this._readableState;return t.flowing||(y("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,b.nextTick(A,t,e))}(this,t)),this},c.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this},c.prototype.wrap=function(e){var r=this,n=this._readableState,i=!1;for(var t in e.on("end",function(){if(y("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),e.on("data",function(t){y("wrapped data"),n.decoder&&(t=n.decoder.write(t)),n.objectMode&&null==t||(n.objectMode||t&&t.length)&&(r.push(t)||(i=!0,e.pause()))}),e)void 0===this[t]&&"function"==typeof e[t]&&(this[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t));for(var o=0;o<h.length;o++)e.on(h[o],this.emit.bind(this,h[o]));return this._read=function(t){y("wrapped _read",t),i&&(i=!1,e.resume())},this},Object.defineProperty(c.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),c._fromList=T}).call(this,R("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"./_stream_duplex":58,"./internal/streams/BufferList":63,"./internal/streams/destroy":64,"./internal/streams/stream":65,_process:53,"core-util-is":32,events:33,inherits:36,isarray:38,"process-nextick-args":52,"safe-buffer":70,"string_decoder/":91,util:6}],61:[function(t,e,r){"use strict";e.exports=o;var n=t("./_stream_duplex"),i=t("core-util-is");function o(t){if(!(this instanceof o))return new o(t);n.call(this,t),this._transformState={afterTransform:function(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var r=this;"function"==typeof this._flush?this._flush(function(t,e){s(r,t,e)}):s(this,null,null)}function s(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=t("inherits"),i.inherits(o,n),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,function(t){e(t),r.emit("close")})}},{"./_stream_duplex":58,"core-util-is":32,inherits:36}],62:[function(x,k,t){(function(t,e,r){"use strict";var s=x("process-nextick-args");function h(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}k.exports=b;var u,f=!t.browser&&-1<["v0.10","v0.9."].indexOf(t.version.slice(0,5))?r:s.nextTick;b.WritableState=m;var n=x("core-util-is");n.inherits=x("inherits");var i={deprecate:x("util-deprecate")},o=x("./internal/streams/stream"),l=x("safe-buffer").Buffer,a=e.Uint8Array||function(){};var c,d=x("./internal/streams/destroy");function p(){}function m(t,e){u=u||x("./_stream_duplex"),t=t||{};var r=e instanceof u;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=t.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=(this.destroyed=!1)===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(s.nextTick(i,n),s.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),E(t,e))}(t,r,n,e,i);else{var o=v(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||y(t,r),n?f(g,t,r,o,i):g(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}function b(t){if(u=u||x("./_stream_duplex"),!(c.call(b,this)||this instanceof u))return new b(t);this._writableState=new m(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),o.call(this)}function _(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function g(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),E(t,e)}function y(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)(i[a]=r).isBuf||(s=!1),r=r.next,a+=1;i.allBuffers=s,_(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new h(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(_(t,e,!1,e.objectMode?1:u.length,u,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),E(e,r)})}function E(t,e){var r=v(e);return r&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,s.nextTick(w,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}n.inherits(b,o),m.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(m.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===b&&(t&&t._writableState instanceof m)}})):c=function(t){return t instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&function(t){return l.isBuffer(t)||t instanceof a}(t);return o&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),e=o?"buffer":e||n.defaultEncoding,"function"!=typeof r&&(r=p),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),s.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),s.nextTick(n,o),i=!1),i}(this,n,t,r))&&(n.pendingcb++,i=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else _(t,e,!1,s,n,i,o);return u}(this,n,o,t,e,r)),i},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||y(this,t))},b.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,e=t=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,E(t,e),r&&(e.finished?s.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=d.destroy,b.prototype._undestroy=d.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,x("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{},x("timers").setImmediate)},{"./_stream_duplex":58,"./internal/streams/destroy":64,"./internal/streams/stream":65,_process:53,"core-util-is":32,inherits:36,"process-nextick-args":52,"safe-buffer":70,timers:92,"util-deprecate":95}],63:[function(t,e,r){"use strict";var s=t("safe-buffer").Buffer,n=t("util");function i(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),this.head=null,this.tail=null,this.length=0}e.exports=(i.prototype.push=function(t){var e={data:t,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},i.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},i.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},i.prototype.concat=function(t){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var e,r,n,i=s.allocUnsafe(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;o<n.length;o++)i[o]=255&n.charCodeAt(o);t.push(i)}else t.push(n,t._charset);t._pos=r.length}break;case"arraybuffer":if(e.readyState!==s.DONE||!e.response)break;r=e.response,t.push(h.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=e.response,e.readyState!==s.LOADING||!r)break;t.push(h.from(new Uint8Array(r)));break;case"ms-stream":if(r=e.response,e.readyState!==s.LOADING)break;var a=new l.MSStreamReader;a.onprogress=function(){a.result.byteLength>t._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)}),2<r?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(t,e,r){var n,i;if("string"==typeof e&&function(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.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;o<i.length;o++){var a=i[o];s.prototype[a]||(s.prototype[a]=n.prototype[a])}function s(t){if(!(this instanceof s))return new s(t);r.call(this,t),n.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,l("_process"))},{"./_stream_readable":80,"./_stream_writable":82,_process:53,inherits:36}],79:[function(t,e,r){"use strict";e.exports=i;var n=t("./_stream_transform");function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}t("inherits")(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":81,inherits:36}],80:[function(U,F,t){(function(p,t){"use strict";var n;(F.exports=E).ReadableState=w;function m(t,e){return t.listeners(e).length}U("events").EventEmitter;var i=U("./internal/streams/stream"),s=U("buffer").Buffer,u=t.Uint8Array||function(){};var b,e=U("util");b=e&&e.debuglog?e.debuglog("stream"):function(){};var o,r,a=U("./internal/streams/buffer_list"),f=U("./internal/streams/destroy"),l=U("./internal/streams/state").getHighWaterMark,h=U("../errors").codes,c=h.ERR_INVALID_ARG_TYPE,d=h.ERR_STREAM_PUSH_AFTER_EOF,_=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y=U("../experimentalWarning").emitExperimentalWarning;U("inherits")(E,i);var v=["error","close","destroy","pause","resume"];function w(t,e,r){n=n||U("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=e instanceof n),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=l(this,t,"readableHighWaterMark",r),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(o=o||U("string_decoder/").StringDecoder,this.decoder=new o(t.encoding),this.encoding=t.encoding)}function E(t){if(n=n||U("./_stream_duplex"),!(this instanceof E))return new E(t);var e=this instanceof n;this._readableState=new w(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function x(t,e,r,n,i){b("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?A(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}(t,a);else if(i||(o=function(t,e){var r;(function(t){return s.isBuffer(t)||t instanceof u})(e)||"string"==typeof e||void 0===e||t.objectMode||(r=new c("chunk",["string","Buffer","Uint8Array"],e));return r}(a,e)),o)t.emit("error",o);else if(a.objectMode||e&&0<e.length)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)a.endEmitted?t.emit("error",new g):k(t,a,e,!0);else if(a.ended)t.emit("error",new d);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?k(t,a,e,!1):T(t,a)):k(t,a,e,!1)}else n||(a.reading=!1,T(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function k(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&A(t)),T(t,e)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),r=!0),x(this,t,e,!1,r)},E.prototype.unshift=function(t){return x(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){return o=o||U("string_decoder/").StringDecoder,this._readableState.decoder=new o(t),this._readableState.encoding=this._readableState.decoder.encoding,this};var S=8388608;function j(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.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.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(b("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function P(t){var e=t._readableState;e.readableListening=0<t.listenerCount("readable"),e.resumeScheduled&&!e.paused?e.flowing=!0:0<t.listenerCount("data")&&t.resume()}function M(t){b("readable nexttick read 0"),t.read(0)}function R(t,e){b("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),L(t),e.flowing&&!e.reading&&t.read(0)}function L(t){var e=t._readableState;for(b("flow",e.flowing);e.flowing&&null!==t.read(););}function C(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=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<n;r++)if(t[r]===e)return r;return-1}E.prototype.read=function(t){b("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:0<e.length)||e.ended))return b("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):A(this),null;if(0===(t=j(t,e))&&e.ended)return 0===e.length&&B(this),null;var n,i=e.needReadable;return b("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&b("length less than watermark",i=!0),e.ended||e.reading?b("reading or ended",i=!1):i&&(b("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=j(r,e))),null===(n=0<t?C(t,e):null)?(e.needReadable=!0,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&B(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){this.emit("error",new _("_read()"))},E.prototype.pipe=function(r,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r)}i.pipesCount+=1,b("pipe count=%d opts=%j",i.pipesCount,t);var e=(!t||!1!==t.end)&&r!==p.stdout&&r!==p.stderr?a:d;function o(t,e){b("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,b("cleanup"),r.removeListener("close",h),r.removeListener("finish",c),r.removeListener("drain",s),r.removeListener("error",l),r.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",d),n.removeListener("data",f),u=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||s())}function a(){b("onend"),r.end()}i.endEmitted?p.nextTick(e):n.once("end",e),r.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;b("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&m(e,"data")&&(t.flowing=!0,L(e))}}(n);r.on("drain",s);var u=!1;function f(t){b("ondata");var e=r.write(t);b("dest.write",e),!1===e&&((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==D(i.pipes,r))&&!u&&(b("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function l(t){b("onerror",t),d(),r.removeListener("error",l),0===m(r,"error")&&r.emit("error",t)}function h(){r.removeListener("finish",c),d()}function c(){b("onfinish"),r.removeListener("close",h),d()}function d(){b("unpipe"),n.unpipe(r)}return n.on("data",f),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(r,"error",l),r.once("close",h),r.once("finish",c),r.emit("pipe",n),i.flowing||(b("pipe resume"),n.resume()),r},E.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t=t||e.pipes,e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=D(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},E.prototype.addListener=E.prototype.on=function(t,e){var r=i.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=0<this.listenerCount("readable"),!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,b("on readable",n.length,n.reading),n.length?A(this):n.reading||p.nextTick(M,this))),r},E.prototype.removeListener=function(t,e){var r=i.prototype.removeListener.call(this,t,e);return"readable"===t&&p.nextTick(P,this),r},E.prototype.removeAllListeners=function(t){var e=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||p.nextTick(P,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(b("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,p.nextTick(R,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var r=this,n=this._readableState,i=!1;for(var t in e.on("end",function(){if(b("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),e.on("data",function(t){b("wrapped data"),n.decoder&&(t=n.decoder.write(t)),n.objectMode&&null==t||(n.objectMode||t&&t.length)&&(r.push(t)||(i=!0,e.pause()))}),e)void 0===this[t]&&"function"==typeof e[t]&&(this[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){b("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return y("Readable[Symbol.asyncIterator]"),void 0===r&&(r=U("./internal/streams/async_iterator")),r(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=C,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}})}).call(this,U("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"../errors":76,"../experimentalWarning":77,"./_stream_duplex":78,"./internal/streams/async_iterator":83,"./internal/streams/buffer_list":84,"./internal/streams/destroy":85,"./internal/streams/state":88,"./internal/streams/stream":89,_process:53,buffer:11,events:33,inherits:36,"string_decoder/":91,util:6}],81:[function(t,e,r){"use strict";e.exports=f;var n=t("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=t("./_stream_duplex");function f(t){if(!(this instanceof f))return new f(t);u.call(this,t),this._transformState={afterTransform:function(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,(r.writecb=null)!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",l)}function l(){var r=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,e){h(r,t,e)})}function h(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}t("inherits")(f,u),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new i("_transform()"))},f.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},f.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,function(t){e(t)})}},{"../errors":76,"./_stream_duplex":78,inherits:36}],82:[function(T,O,t){(function(a,t){"use strict";function h(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var i;(O.exports=E).WritableState=w;var e={deprecate:T("util-deprecate")},r=T("./internal/streams/stream"),l=T("buffer").Buffer,s=t.Uint8Array||function(){};var n,o=T("./internal/streams/destroy"),u=T("./internal/streams/state").getHighWaterMark,f=T("../errors").codes,c=f.ERR_INVALID_ARG_TYPE,d=f.ERR_METHOD_NOT_IMPLEMENTED,p=f.ERR_MULTIPLE_CALLBACK,m=f.ERR_STREAM_CANNOT_PIPE,b=f.ERR_STREAM_DESTROYED,_=f.ERR_STREAM_NULL_VALUES,g=f.ERR_STREAM_WRITE_AFTER_END,y=f.ERR_UNKNOWN_ENCODING;function v(){}function w(t,e,r){i=i||T("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=u(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=(this.destroyed=!1)===t.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new p;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(a.nextTick(i,n),a.nextTick(I,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),I(t,e))}(t,r,n,e,i);else{var o=j(r)||t.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||S(t,r),n?a.nextTick(k,t,r,o,i):k(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}function E(t){var e=this instanceof(i=i||T("./_stream_duplex"));if(!e&&!n.call(E,this))return new E(t);this._writableState=new w(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),r.call(this)}function x(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function k(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),I(t,e)}function S(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)(i[a]=r).isBuf||(s=!1),r=r.next,a+=1;i.allBuffers=s,x(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new h(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(x(t,e,!1,e.objectMode?1:u.length,u,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function j(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function A(e,r){e._final(function(t){r.pendingcb--,t&&e.emit("error",t),r.prefinished=!0,e.emit("prefinish"),I(e,r)})}function I(t,e){var r=j(e);return r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,a.nextTick(A,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}T("inherits")(E,r),w.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(w.prototype,"buffer",{get:e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(t){return!!n.call(this,t)||this===E&&(t&&t._writableState instanceof w)}})):n=function(t){return t instanceof this},E.prototype.pipe=function(){this.emit("error",new m)},E.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&function(t){return l.isBuffer(t)||t instanceof s}(t);return o&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),e=o?"buffer":e||n.defaultEncoding,"function"!=typeof r&&(r=v),n.ending?function(t,e){var r=new g;t.emit("error",r),a.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var i;return null===r?i=new _:"string"==typeof r||e.objectMode||(i=new c("chunk",["string","Buffer"],r)),!i||(t.emit("error",i),a.nextTick(n,i),!1)}(this,n,t,r))&&(n.pendingcb++,i=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,s,n,i,o);return u}(this,n,o,t,e,r)),i},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||S(this,t))},E.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())))throw new y(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,r){r(new d("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,e=t=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,I(t,e),r&&(e.finished?a.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=o.destroy,E.prototype._undestroy=o.undestroy,E.prototype._destroy=function(t,e){e(t)}}).call(this,T("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"../errors":76,"./_stream_duplex":78,"./internal/streams/destroy":85,"./internal/streams/state":88,"./internal/streams/stream":89,_process:53,buffer:11,inherits:36,"util-deprecate":95}],83:[function(n,b,t){(function(o){"use strict";var t;function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=n("./end-of-stream"),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),c=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var r=t[c].read();null!==r&&(t[l]=null,t[a]=null,t[s]=null,e(d(r,!1)))}}var e=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((r(t={get stream(){return this[c]},next:function(){var r=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(d(void 0,!0));if(this[c].destroyed)return new Promise(function(t,e){o.nextTick(function(){r[u]?e(r[u]):t(d(void 0,!0))})});var e,n=this[l];if(n)e=new Promise(function(r,n){return function(t,e){r.then(function(){n[f]?t(d(void 0,!0)):n[h](t,e)},e)}}(n,this));else{var i=this[c].read();if(null!==i)return Promise.resolve(d(i,!1));e=new Promise(this[h])}return this[l]=e}},Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var t=this;return new Promise(function(e,r){t[c].destroy(null,function(t){t?r(t):e(d(void 0,!0))})})}),t),e);b.exports=function(t){var e,n=Object.create(m,(r(e={},c,{value:t,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,s,{value:null,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,f,{value:t._readableState.endEmitted,writable:!0}),r(e,h,{value:function(t,e){var r=n[c].read();r?(n[l]=null,n[a]=null,n[s]=null,t(d(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[l]=null,i(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[l]=null,n[a]=null,n[s]=null,e(t)),void(n[u]=t)}var r=n[a];null!==r&&(n[l]=null,n[a]=null,r(d(void 0,!(n[s]=null)))),n[f]=!0}),t.on("readable",function(t){o.nextTick(p,t)}.bind(null,n)),n}}).call(this,n("_process"))},{"./end-of-stream":86,_process:53}],84:[function(t,e,r){"use strict";function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=t("buffer").Buffer,n=t("util").inspect,o=n&&n.custom||"inspect";e.exports=function(){function t(){this.head=null,this.tail=null,this.length=0}var e=t.prototype;return e.push=function(t){var e={data:t,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},e.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},e.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},e.clear=function(){this.head=this.tail=null,this.length=0},e.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},e.concat=function(t){if(0===this.length)return s.alloc(0);for(var e,r,n,i=s.allocUnsafe(t>>>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 t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r},e.first=function(){return this.head.data},e._getString=function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.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<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(t){i(e,t,r[t])})}return e}({},e,{depth:0,customInspect:!1}))},t}()},{buffer:11,util:6}],85:[function(t,e,r){(function(o){"use strict";function a(t,e){u(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function u(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(u,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?(o.nextTick(s,r),e(t)):o.nextTick(s,r)})),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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}).call(this,t("_process"))},{_process:53}],86:[function(t,e,r){"use strict";var p=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function m(){}e.exports=function t(e,r,n){if("function"==typeof r)return t(e,null,r);r=r||{},n=function(n){var i=!1;return function(){if(!i){i=!0;for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.apply(this,e)}}}(n||m);function i(){e.writable||c()}function o(){d=!(f=!1),l||n.call(e)}function a(t){n.call(e,t)}function s(){var t;return f&&!d?(e._readableState&&e._readableState.ended||(t=new p),n.call(e,t)):l&&!h?(e._writableState&&e._writableState.ended||(t=new p),n.call(e,t)):void 0}function u(){e.req.on("finish",c)}var f=r.readable||!1!==r.readable&&e.readable,l=r.writable||!1!==r.writable&&e.writable,h=e._writableState&&e._writableState.finished,c=function(){h=!(l=!1),f||n.call(e)},d=e._readableState&&e._readableState.endEmitted;return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",c),e.on("abort",s),e.req?u():e.on("request",u)):l&&!e._writableState&&(e.on("end",i),e.on("close",i)),e.on("end",o),e.on("finish",c),!1!==r.error&&e.on("error",a),e.on("close",s),function(){e.removeListener("complete",c),e.removeListener("abort",s),e.removeListener("request",u),e.req&&e.req.removeListener("finish",c),e.removeListener("end",i),e.removeListener("close",i),e.removeListener("finish",c),e.removeListener("end",o),e.removeListener("error",a),e.removeListener("close",s)}}},{"../../../errors":76}],87:[function(a,t,e){"use strict";var s;var r=a("../../../errors").codes,u=r.ERR_MISSING_ARGS,f=r.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function h(e,t,r,n){n=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(n);var i=!1;e.on("close",function(){i=!0}),void 0===s&&(s=a("./end-of-stream")),s(e,{readable:t,writable:r},function(t){if(t)return n(t);i=!0,n()});var o=!1;return function(t){if(!i&&!o)return o=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void n(t||new f("pipe"))}}function c(t){t()}function d(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];var i,o=function(t){return t.length?"function"!=typeof t[t.length-1]?l:t.pop():l}(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new u("streams");var a=n.map(function(t,e){var r=e<n.length-1;return h(t,r,0<e,function(t){i=i||t,t&&a.forEach(c),r||(a.forEach(c),o(i))})});return n.reduce(d)}},{"../../../errors":76,"./end-of-stream":86}],88:[function(t,e,r){"use strict";var o=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,r,n){var i=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,n,r);if(null==i)return t.objectMode?16:16384;if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new o(n?r:"highWaterMark",i);return Math.floor(i)}}},{"../../../errors":76}],89:[function(t,e,r){arguments[4][65][0].apply(r,arguments)},{dup:65,events:33}],90:[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"),r.finished=t("./lib/internal/streams/end-of-stream.js"),r.pipeline=t("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":78,"./lib/_stream_passthrough.js":79,"./lib/_stream_readable.js":80,"./lib/_stream_transform.js":81,"./lib/_stream_writable.js":82,"./lib/internal/streams/end-of-stream.js":86,"./lib/internal/streams/pipeline.js":87}],91:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function a(t){var e;switch(this.encoding=o(t),this.encoding){case"utf16le":this.text=f,this.end=l,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=h,this.end=c,e=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0: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,"<22>";if(1<t.lastNeed&&1<e.length){if(128!=(192&e[1]))return t.lastNeed=1,"<22>";if(2<t.lastNeed&&2<e.length&&128!=(192&e[2]))return t.lastNeed=2,"<22>"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function f(t,e){if((t.length-e)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1);var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(55296<=n&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0==r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}(r.StringDecoder=a).prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},a.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>":e},a.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=s(e[n]);if(0<=i)return 0<i&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(0<=(i=s(e[n])))return 0<i&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(0<=(i=s(e[n])))return 0<i&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":70}],92:[function(u,t,f){(function(t,e){var n=u("process/browser.js").nextTick,r=Function.prototype.apply,i=Array.prototype.slice,o={},a=0;function s(t,e){this._id=t,this._clearFn=e}f.setTimeout=function(){return new s(r.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new s(r.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(t){t.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},f.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},f._unrefActive=f.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},f.setImmediate="function"==typeof t?t:function(t){var e=a++,r=!(arguments.length<2)&&i.call(arguments,1);return o[e]=!0,n(function(){o[e]&&(r?t.apply(null,r):t.call(null),f.clearImmediate(e))}),e},f.clearImmediate="function"==typeof e?e:function(t){delete o[t]}}).call(this,u("timers").setImmediate,u("timers").clearImmediate)},{"process/browser.js":53,timers:92}],93:[function(t,e,r){"use strict";var R=t("punycode"),L=t("./util");function A(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=o,r.resolve=function(t,e){return o(t,!1,!0).resolve(e)},r.resolveObject=function(t,e){return t?o(t,!1,!0).resolveObject(e):e},r.format=function(t){L.isString(t)&&(t=o(t));return t instanceof A?t.format():A.prototype.format.call(t)},r.Url=A;var C=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,B=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\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<t.indexOf("#")?"?":"#",o=t.split(i);o[0]=o[0].replace(/\\/g,"/");var a=t=o.join(i);if(a=a.trim(),!r&&1===t.split("#").length){var s=B.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=e?q.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var u=C.exec(a);if(u){var f=(u=u[0]).toLowerCase();this.protocol=f,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var l="//"===a.substr(0,2);!l||u&&G[u]||(a=a.substr(2),this.slashes=!0)}if(!G[u]&&(l||u&&!W[u])){for(var h,c,d=-1,p=0;p<U.length;p++){-1!==(m=a.indexOf(U[p]))&&(-1===d||m<d)&&(d=m)}-1!==(c=-1===d?a.lastIndexOf("@"):a.lastIndexOf("@",d))&&(h=a.slice(0,c),a=a.slice(c+1),this.auth=decodeURIComponent(h)),d=-1;for(p=0;p<D.length;p++){var m;-1!==(m=a.indexOf(D[p]))&&(-1===d||m<d)&&(d=m)}-1===d&&(d=a.length),this.host=a.slice(0,d),a=a.slice(d),this.parseHost(),this.hostname=this.hostname||"";var b="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!b)for(var _=this.hostname.split(/\./),g=(p=0,_.length);p<g;p++){var y=_[p];if(y&&!y.match(F)){for(var v="",w=0,E=y.length;w<E;w++)127<y.charCodeAt(w)?v+="x":v+=y[w];if(!v.match(F)){var x=_.slice(0,p),k=_.slice(p+1),S=y.match(z);S&&(x.push(S[1]),k.unshift(S[2])),k.length&&(a="/"+k.join(".")+a),this.hostname=x.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),b||(this.hostname=R.toASCII(this.hostname));var j=this.port?":"+this.port:"",A=this.hostname||"";this.host=A+j,this.href+=this.host,b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!H[f])for(p=0,g=N.length;p<g;p++){var I=N[p];if(-1!==a.indexOf(I)){var T=encodeURIComponent(I);T===I&&(T=escape(I)),a=a.split(I).join(T)}}var O=a.indexOf("#");-1!==O&&(this.hash=a.substr(O),a=a.slice(0,O));var P=a.indexOf("?");if(-1!==P?(this.search=a.substr(P),this.query=a.substr(P+1),e&&(this.query=q.parse(this.query)),a=a.slice(0,P)):e&&(this.search="",this.query={}),a&&(this.pathname=a),W[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){j=this.pathname||"";var M=this.search||"";this.path=j+M}return this.href=this.format(),this},A.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&L.isObject(this.query)&&Object.keys(this.query).length&&(o=q.stringify(this.query));var a=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||W[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i=i||"",n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+i+(r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+n},A.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},A.prototype.resolveObject=function(t){if(L.isString(t)){var e=new A;e.parse(t,!1,!0),t=e}for(var r=new A,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var a=Object.keys(t),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=t[u])}return W[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!W[t.protocol]){for(var f=Object.keys(t),l=0;l<f.length;l++){var h=f[l];r[h]=t[h]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||G[t.protocol])r.pathname=t.pathname;else{for(var c=(t.pathname||"").split("/");c.length&&!(t.host=c.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==c[0]&&c.unshift(""),c.length<2&&c.unshift(""),r.pathname=c.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),_=b||m||r.host&&t.pathname,g=_,y=r.pathname&&r.pathname.split("/")||[],v=(c=t.pathname&&t.pathname.split("/")||[],r.protocol&&!W[r.protocol]);if(v&&(r.hostname="",r.port=null,r.host&&(""===y[0]?y[0]=r.host:y.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===c[0]?c[0]=t.host:c.unshift(t.host)),t.host=null),_=_&&(""===c[0]||""===y[0])),b)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,y=c;else if(c.length)(y=y||[]).pop(),y=y.concat(c),r.search=t.search,r.query=t.query;else if(!L.isNullOrUndefined(t.search)){if(v)r.hostname=r.host=y.shift(),(S=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift());return r.search=t.search,r.query=t.query,L.isNull(r.pathname)&&L.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=y.slice(-1)[0],E=(r.host||t.host||1<y.length)&&("."===w||".."===w)||""===w,x=0,k=y.length;0<=k;k--)"."===(w=y[k])?y.splice(k,1):".."===w?(y.splice(k,1),x++):x&&(y.splice(k,1),x--);if(!_&&!g)for(;x--;)y.unshift("..");!_||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""),E&&"/"!==y.join("/").substr(-1)&&y.push("");var S,j=""===y[0]||y[0]&&"/"===y[0].charAt(0);v&&(r.hostname=r.host=j?"":y.length?y.shift():"",(S=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift()));return(_=_||r.host&&y.length)&&!j&&y.unshift(""),y.length?r.pathname=y.join("/"):(r.pathname=null,r.path=null),L.isNull(r.pathname)&&L.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},A.prototype.parseHost=function(){var t=this.host,e=n.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":94,punycode:10,querystring:56}],94:[function(t,e,r){"use strict";e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],95:[function(t,e,r){(function(r){function n(t){try{if(!r.localStorage)return!1}catch(t){return!1}var e=r.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}e.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],96:[function(t,e,r){arguments[4][2][0].apply(r,arguments)},{dup:2}],97:[function(t,e,r){arguments[4][3][0].apply(r,arguments)},{dup:3}],98:[function(t,e,r){arguments[4][4][0].apply(r,arguments)},{"./support/isBuffer":97,_process:53,dup:4,inherits:96}],99:[function(t,e,r){e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var n in r)i.call(r,n)&&(t[n]=r[n])}return t};var i=Object.prototype.hasOwnProperty},{}],100:[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=a(t("@jimp/custom")),i=a(t("@jimp/types")),o=a(t("@jimp/plugins"));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,n.default)({types:[i.default],plugins:[o.default]});r.default=s,e.exports=r.default},{"@jimp/custom":111,"@jimp/plugins":135,"@jimp/types":138,"core-js/modules/es6.object.define-property":31}],101:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es6.object.define-property");var n,i=(n=t("bmp-js"))&&n.__esModule?n:{default:n},o=t("@jimp/utils");function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s="image/bmp",u="image/x-ms-bmp";function f(t){return function(s){return(0,o.scan)({bitmap:s},0,0,s.width,s.height,function(t,e,r){var n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2],a=this.bitmap.data[r+3];this.bitmap.data[r+0]=a,this.bitmap.data[r+1]=o,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=s.is_with_alpha?n:255}).bitmap}(i.default.decode(t))}function l(t){return i.default.encode(function(t){return(0,o.scan)(t,0,0,t.bitmap.width,t.bitmap.height,function(t,e,r){var n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2],a=this.bitmap.data[r+3];this.bitmap.data[r+0]=a,this.bitmap.data[r+1]=o,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=n}).bitmap}(t)).data}r.default=function(){var t,e;return{mime:a({},s,["bmp"]),constants:{MIME_BMP:s,MIME_X_MS_BMP:u},decoders:(t={},a(t,s,f),a(t,u,f),t),encoders:(e={},a(e,s,l),a(e,u,l),e)}},e.exports=r.default},{"@jimp/utils":139,"bmp-js":142,"core-js/modules/es6.object.define-property":257}],102:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.srcOver=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=(t.r*t.a+e.r*e.a*(1-t.a))/n,o=(t.g*t.a+e.g*e.a*(1-t.a))/n,a=(t.b*t.a+e.b*e.a*(1-t.a))/n;return{r:i,g:o,b:a,a:n}},r.dstOver=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=(e.r*e.a+t.r*t.a*(1-e.a))/n,o=(e.g*e.a+t.g*t.a*(1-e.a))/n,a=(e.b*e.a+t.b*t.a*(1-e.a))/n;return{r:i,g:o,b:a,a:n}},r.multiply=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a,l=(i*s+i*(1-e.a)+s*(1-t.a))/n,h=(o*u+o*(1-e.a)+u*(1-t.a))/n,c=(a*f+a*(1-e.a)+f*(1-t.a))/n;return{r:l,g:h,b:c,a:n}},r.screen=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a,l=(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/n,h=(o*e.a+u*t.a-o*u+o*(1-e.a)+u*(1-t.a))/n,c=(a*e.a+f*t.a-a*f+a*(1-e.a)+f*(1-t.a))/n;return{r:l,g:h,b:c,a:n}},r.overlay=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a,l=(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,h=(2*u<=e.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/n,c=(2*f<=e.a?2*a*f+a*(1-e.a)+f*(1-t.a):a*(1+e.a)+f*(1+t.a)-2*f*a-e.a*t.a)/n;return{r:l,g:h,b:c,a:n}},r.darken=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a,l=(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,h=(Math.min(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n,c=(Math.min(a*e.a,f*t.a)+a*(1-e.a)+f*(1-t.a))/n;return{r:l,g:h,b:c,a:n}},r.lighten=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a,l=(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,h=(Math.max(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n,c=(Math.max(a*e.a,f*t.a)+a*(1-e.a)+f*(1-t.a))/n;return{r:l,g:h,b:c,a:n}},r.hardLight=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a,l=(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/n,h=(2*o<=t.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/n,c=(2*a<=t.a?2*a*f+a*(1-e.a)+f*(1-t.a):a*(1+e.a)+f*(1+t.a)-2*f*a-e.a*t.a)/n;return{r:l,g:h,b:c,a:n}},r.difference=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a,l=(i+s-2*Math.min(i*e.a,s*t.a))/n,h=(o+u-2*Math.min(o*e.a,u*t.a))/n,c=(a+f-2*Math.min(a*e.a,f*t.a))/n;return{r:l,g:h,b:c,a:n}},r.exclusion=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,f=e.b*e.a,l=(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/n,h=(o*e.a+u*t.a-2*o*u+o*(1-e.a)+u*(1-t.a))/n,c=(a*e.a+f*t.a-2*a*f+a*(1-e.a)+f*(1-t.a))/n;return{r:l,g:h,b:c,a:n}}},{"core-js/modules/es6.object.define-property":257}],103:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,o,a){var e=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},r=4<arguments.length?arguments[4]:void 0;"function"==typeof e&&(r=e,e={});if(!(t instanceof this.constructor))return h.throwError.call(this,"The source must be a Jimp image",r);if("number"!=typeof o||"number"!=typeof a)return h.throwError.call(this,"x and y must be numbers",r);var n=e,i=n.mode,s=n.opacitySource,u=n.opacityDest;i=i||c.BLEND_SOURCE_OVER;("number"!=typeof s||s<0||1<s)&&(s=1);("number"!=typeof u||u<0||1<u)&&(u=1);var f=d[i];o=Math.round(o),a=Math.round(a);var l=this;1!==u&&l.opacity(u);t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,e,r){var n=l.getPixelIndex(o+t,a+e,c.EDGE_CROP),i=f({r:this.bitmap.data[r+0]/255,g:this.bitmap.data[r+1]/255,b:this.bitmap.data[r+2]/255,a:this.bitmap.data[r+3]/255},{r:l.bitmap.data[n+0]/255,g:l.bitmap.data[n+1]/255,b:l.bitmap.data[n+2]/255,a:l.bitmap.data[n+3]/255},s);l.bitmap.data[n+0]=this.constructor.limit255(255*i.r),l.bitmap.data[n+1]=this.constructor.limit255(255*i.g),l.bitmap.data[n+2]=this.constructor.limit255(255*i.b),l.bitmap.data[n+3]=this.constructor.limit255(255*i.a)}),(0,h.isNodePattern)(r)&&r.call(this,null,this);return this};var h=t("@jimp/utils"),c=n(t("../constants")),d=n(t("./composite-modes"));function n(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}e.exports=r.default},{"../constants":104,"./composite-modes":102,"@jimp/utils":139,"core-js/modules/es6.object.define-property":257}],104:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.EDGE_CROP=r.EDGE_WRAP=r.EDGE_EXTEND=r.BLEND_EXCLUSION=r.BLEND_DIFFERENCE=r.BLEND_HARDLIGHT=r.BLEND_LIGHTEN=r.BLEND_DARKEN=r.BLEND_OVERLAY=r.BLEND_SCREEN=r.BLEND_MULTIPLY=r.BLEND_DESTINATION_OVER=r.BLEND_SOURCE_OVER=r.VERTICAL_ALIGN_BOTTOM=r.VERTICAL_ALIGN_MIDDLE=r.VERTICAL_ALIGN_TOP=r.HORIZONTAL_ALIGN_RIGHT=r.HORIZONTAL_ALIGN_CENTER=r.HORIZONTAL_ALIGN_LEFT=r.AUTO=void 0;r.AUTO=-1;r.HORIZONTAL_ALIGN_LEFT=1;r.HORIZONTAL_ALIGN_CENTER=2;r.HORIZONTAL_ALIGN_RIGHT=4;r.VERTICAL_ALIGN_TOP=8;r.VERTICAL_ALIGN_MIDDLE=16;r.VERTICAL_ALIGN_BOTTOM=32;r.BLEND_SOURCE_OVER="srcOver";r.BLEND_DESTINATION_OVER="dstOver";r.BLEND_MULTIPLY="multiply";r.BLEND_SCREEN="screen";r.BLEND_OVERLAY="overlay";r.BLEND_DARKEN="darken";r.BLEND_LIGHTEN="lighten";r.BLEND_HARDLIGHT="hardLight";r.BLEND_DIFFERENCE="difference";r.BLEND_EXCLUSION="exclusion";r.EDGE_EXTEND=1;r.EDGE_WRAP=2;r.EDGE_CROP=3},{"core-js/modules/es6.object.define-property":257}],105:[function(z,t,H){(function(_){"use strict";z("core-js/modules/es6.array.is-array"),Object.defineProperty(H,"__esModule",{value:!0}),H.addConstants=B,H.addJimpMethods=N,H.jimpEvMethod=D,H.jimpEvChange=U,Object.defineProperty(H,"addType",{enumerable:!0,get:function(){return f.addType}}),H.default=void 0,z("core-js/modules/es6.function.bind"),z("core-js/modules/es6.reflect.construct"),z("core-js/modules/es7.symbol.async-iterator"),z("core-js/modules/es6.symbol"),z("core-js/modules/es6.regexp.replace"),z("core-js/modules/es6.number.constructor"),z("core-js/modules/es6.array.iterator"),z("core-js/modules/es7.object.entries"),z("core-js/modules/web.dom.iterable"),z("core-js/modules/es6.array.for-each"),z("core-js/modules/es6.object.define-property"),z("core-js/modules/es6.object.create"),z("core-js/modules/es6.object.set-prototype-of"),z("core-js/modules/es6.object.assign"),z("core-js/modules/es6.promise"),z("core-js/modules/es6.array.find"),z("core-js/modules/es6.typed.uint8-clamped-array"),z("core-js/modules/es6.regexp.match"),z("core-js/modules/es6.typed.uint8-array"),z("core-js/modules/es6.regexp.to-string"),z("core-js/modules/es6.date.to-string"),z("core-js/modules/es6.array.index-of");var g=c(z("fs")),r=c(z("path")),t=c(z("events")),y=z("@jimp/utils"),n=c(z("any-base")),a=c(z("mkdirp")),s=c(z("pixelmatch")),e=c(z("tinycolor2")),o=c(z("./modules/phash")),u=c(z("./request")),i=c(z("./composite")),v=c(z("./utils/promisify")),f=h(z("./utils/mime")),w=z("./utils/image-bitmap"),l=h(z("./constants"));function h(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 c(t){return t&&t.__esModule?t:{default:t}}function d(t,e,r){return(d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&k(i,r.prototype),i}).apply(null,arguments)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function E(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?S(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function A(t){return(A="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)}for(var I="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",T=[NaN,NaN],b=2;b<65;b++){var O=(0,n.default)(n.default.BIN,I.slice(0,b))(new Array(65).join("1"));T.push(O.length)}function P(){}function M(i,o){(0,u.default)(i,function(t,e,r){if(t)return o(t);if("object"===A(r)&&_.isBuffer(r))return o(null,r);var n="Could not load Buffer from <"+i.url+"> (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<t;e++)i[e]=arguments[e];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),j(S(S(n=E(this,x(b).call(this)))),"bitmap",L),j(S(S(n)),"_background",0),j(S(S(n)),"_originalMime",b.MIME_PNG),j(S(S(n)),"_exif",null),j(S(S(n)),"_rgba",!0),j(S(S(n)),"writeAsync",function(t){return(0,v.default)(n.write,S(S(n)),t)}),j(S(S(n)),"getBase64Async",function(t){return(0,v.default)(n.getBase64,S(S(n)),t)}),j(S(S(n)),"getBuffer",w.getBuffer),j(S(S(n)),"getBufferAsync",w.getBufferAsync),j(S(S(n)),"getPixelColour",n.getPixelColor),j(S(S(n)),"setPixelColour",n.setPixelColor);var o=S(S(n)),a=P;function r(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];(n||{}).methodName="constructor",setTimeout(function(){var t;n&&a===P?o.emitError("constructor",n):n||o.emitMulti("constructor","initialized"),(t=a).call.apply(t,[o].concat(e))},1)}if(function(t){return-1<Object.prototype.toString.call(t).toLowerCase().indexOf("arraybuffer")}(i[0])&&(i[0]=function(t){for(var e=_.alloc(t.byteLength),r=new Uint8Array(t),n=0;n<e.length;++n)e[n]=r[n];return e}(i[0])),"number"==typeof i[0]&&"number"==typeof i[1]||parseInt(i[0],10)&&parseInt(i[1],10)){var s=parseInt(i[0],10),u=parseInt(i[1],10);if(a=i[2],"number"==typeof i[2]&&(n._background=i[2],a=i[3]),"string"==typeof i[2]&&(n._background=b.cssColorToHex(i[2]),a=i[3]),void 0===a&&(a=P),"function"!=typeof a)return E(n,y.throwError.call(S(S(n)),"cb must be a function",r));n.bitmap={data:_.alloc(s*u*4),width:s,height:u};for(var f=0;f<n.bitmap.data.length;f+=4)n.bitmap.data.writeUInt32BE(n._background,f);r(null,S(S(n)))}else if("object"===A(i[0])&&i[0].url){if("function"!=typeof(a=i[1]||P))return E(n,y.throwError.call(S(S(n)),"cb must be a function",r));M(i[0],function(t,e){if(t)return y.throwError.call(S(S(n)),t,r);n.parseBitmap(e,i[0].url,r)})}else if(i[0]instanceof b){var l=i[0];if(void 0===(a=i[1])&&(a=P),"function"!=typeof a)return E(n,y.throwError.call(S(S(n)),"cb must be a function",r));n.bitmap={data:_.from(l.bitmap.data),width:l.bitmap.width,height:l.bitmap.height},n._quality=l._quality,n._deflateLevel=l._deflateLevel,n._deflateStrategy=l._deflateStrategy,n._filterType=l._filterType,n._rgba=l._rgba,n._background=l._background,n._originalMime=l._originalMime,r(null,S(S(n)))}else if(function(t){return t&&"object"===A(t)&&"number"==typeof t.width&&"number"==typeof t.height&&(_.isBuffer(t.data)||t.data instanceof Uint8Array||"function"==typeof Uint8ClampedArray&&t.data instanceof Uint8ClampedArray)&&(t.data.length===t.width*t.height*4||t.data.length===t.width*t.height*3)}(i[0])){var h=i[0];a=i[1]||P;var c=h.width*h.height*4===h.data.length?_.from(h.data):function(t){if(t.length%3!=0)throw new Error("Buffer length is incorrect");for(var e=_.allocUnsafe(t.length/3*4),r=0,n=0;n<t.length;n++)e[r]=t[n],(n+1)%3==0&&(e[++r]=255),r++;return e}(h.data);n.bitmap={data:c,width:h.width,height:h.height},r(null,S(S(n)))}else if("string"==typeof i[0]){var d=i[0];if(void 0===(a=i[1])&&(a=P),"function"!=typeof a)return E(n,y.throwError.call(S(S(n)),"cb must be a function",r));!function(t,e){g.default&&"function"==typeof g.default.readFile&&!t.match(/^(http|ftp)s?:\/\/./)?g.default.readFile(t,e):M({url:t},e)}(d,function(t,e){if(t)return y.throwError.call(S(S(n)),t,r);n.parseBitmap(e,d,r)})}else if("object"===A(i[0])&&_.isBuffer(i[0])){var p=i[0];if("function"!=typeof(a=i[1]))return E(n,y.throwError.call(S(S(n)),"cb must be a function",r));n.parseBitmap(p,null,r)}else{"function"!=typeof(a=i[i.length-1])&&"function"!=typeof(a=i[i.length-2])&&(a=P);var m=b.__extraConstructors.find(function(t){return t.test.apply(t,i)});if(!m)return E(n,y.throwError.call(S(S(n)),"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.",r));new Promise(function(t,e){var r;return(r=m.run).call.apply(r,[S(S(n)),t,e].concat(i))}).then(function(){return r(null,S(S(n)))}).catch(r)}return n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(b,t.default),function(t,e,r){e&&m(t.prototype,e),r&&m(t,r)}(b,[{key:"parseBitmap",value:function(t,e,r){w.parseBitmap.call(this,t,null,r)}},{key:"rgba",value:function(t,e){return"boolean"!=typeof t?y.throwError.call(this,"bool must be a boolean, true for RGBA or false for RGB",e):(this._rgba=t,(0,y.isNodePattern)(e)&&e.call(this,null,this),this)}},{key:"emitMulti",value:function(t,e,r){var n=2<arguments.length&&void 0!==r?r:{};n=Object.assign(n,{methodName:t,eventName:e}),this.emit("any",n),t&&this.emit(t,n),this.emit(e,n)}},{key:"emitError",value:function(t,e){this.emitMulti(t,"error",e)}},{key:"getHeight",value:function(){return this.bitmap.height}},{key:"getWidth",value:function(){return this.bitmap.width}},{key:"inspect",value:function(){return"<Jimp "+(this.bitmap===L?"pending...":this.bitmap.width+"x"+this.bitmap.height)+">"}},{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<t)return y.throwError.call(this,"base must be a number between 2 and 64",e);var r=this.pHash();for(r=(0,n.default)(n.default.BIN,I.slice(0,t))(r);r.length<T[t];)r="0"+r;return(0,y.isNodePattern)(e)&&e.call(this,null,r),r}},{key:"pHash",value:function(){var t=new o.default;return t.getHash(this)}},{key:"distanceFromHash",value:function(t){var e=new o.default,r=e.getHash(this);return e.distance(r,t)}},{key:"getPixelIndex",value:function(t,e,r,n){var i,o;if("function"==typeof r&&void 0===n&&(n=r,r=null),r=r||b.EDGE_EXTEND,"number"!=typeof t||"number"!=typeof e)return y.throwError.call(this,"x and y must be numbers",n);i=t=Math.round(t),o=e=Math.round(e),r===b.EDGE_EXTEND&&(t<0&&(i=0),t>=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;t<this.bitmap.height;t++)for(var e=0;e<this.bitmap.width;e++){var r=this.bitmap.width*t+e<<2;if(255!==this.bitmap.data[3+r])return!0}return!1}}]),b}();function B(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:C;Object.entries(t).forEach(function(t){var e=p(t,2),r=e[0],n=e[1];i[r]=n})}function N(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:C;Object.entries(t).forEach(function(t){var e=p(t,2),r=e[0],n=e[1];i.prototype[r]=n})}function D(s,t,u){var f="before-"+t,l=t.replace(/e$/,"")+"ed";C.prototype[s]=function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i,o=r[u.length-1],a=this;"function"==typeof o?(t=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1];n?a.emitError(s,n):a.emitMulti(s,l,j({},s,i)),o.apply(this,e)},r[r.length-1]=t):t=!1,this.emitMulti(s,f);try{i=u.apply(this,r),t||this.emitMulti(s,l,j({},s,i))}catch(t){t.methodName=s,this.emitError(s,t)}return i},C.prototype[s+"Quiet"]=u}function U(t,e){D(t,"change",e)}B(l),N({composite:i.default}),C.__extraConstructors=[],C.appendConstructorOption=function(t,e,r){C.__extraConstructors.push({name:t,test:e,run:r})},C.read=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return new Promise(function(r,n){d(C,e.concat([function(t,e){t?n(t):r(e)}]))})},C.create=C.read,C.rgbaToInt=function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof r||"number"!=typeof n)return y.throwError.call(this,"r, g, b and a must be numbers",i);if(t<0||255<t)return y.throwError.call(this,"r must be between 0 and 255",i);if((e<0||255<e)&&y.throwError.call(this,"g must be between 0 and 255",i),r<0||255<r)return y.throwError.call(this,"b must be between 0 and 255",i);if(n<0||255<n)return y.throwError.call(this,"a must be between 0 and 255",i);t=Math.round(t),r=Math.round(r),e=Math.round(e),n=Math.round(n);var o=t*Math.pow(256,3)+e*Math.pow(256,2)+r*Math.pow(256,1)+n*Math.pow(256,0);return(0,y.isNodePattern)(i)&&i.call(this,null,o),o},C.intToRGBA=function(t,e){if("number"!=typeof t)return y.throwError.call(this,"i must be a number",e);var r={};return r.r=Math.floor(t/Math.pow(256,3)),r.g=Math.floor((t-r.r*Math.pow(256,3))/Math.pow(256,2)),r.b=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2))/Math.pow(256,1)),r.a=Math.floor((t-r.r*Math.pow(256,3)-r.g*Math.pow(256,2)-r.b*Math.pow(256,1))/Math.pow(256,0)),(0,y.isNodePattern)(e)&&e.call(this,null,r),r},C.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt((0,e.default)(t).toHex8(),16)},C.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},C.diff=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof C&&e instanceof C))return y.throwError.call(this,"img1 and img2 must be an Jimp images");var n=t.bitmap,i=e.bitmap;if(n.width===i.width&&n.height===i.height||(n.width*n.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(n.width,n.height)),"number"!=typeof r||r<0||1<r)return y.throwError.call(this,"threshold must be a number between 0 and 1");var o=new C(n.width,n.height,4294967295);return{percent:(0,s.default)(n.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:r})/(o.bitmap.width*o.bitmap.height),image:o}},C.distance=function(t,e){var r=new o.default,n=r.getHash(t),i=r.getHash(e);return r.distance(n,i)},C.compareHashes=function(t,e){return(new o.default).distance(t,e)},C.colorDiff=function(t,e){function r(t){return Math.pow(t,2)}var n=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(n(r(t.r-e.r),r(t.r-e.r-t.a+e.a))+n(r(t.g-e.g),r(t.g-e.g-t.a+e.a))+n(r(t.b-e.b),r(t.b-e.b-t.a+e.a)))/195075},D("clone","clone",function(t){var e=new C(this);return(0,y.isNodePattern)(t)&&t.call(e,null,e),e}),U("background",function(t,e){return"number"!=typeof t?y.throwError.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,(0,y.isNodePattern)(e)&&e.call(this,null,this),this)}),U("scan",function(t,e,r,n,i,o){if("number"!=typeof t||"number"!=typeof e)return y.throwError.call(this,"x and y must be numbers",o);if("number"!=typeof r||"number"!=typeof n)return y.throwError.call(this,"w and h must be numbers",o);if("function"!=typeof i)return y.throwError.call(this,"f must be a function",o);var a=(0,y.scan)(this,t,e,r,n,i);return(0,y.isNodePattern)(o)&&o.call(this,null,a),a}),void 0!==window&&"object"===(void 0===window?"undefined":A(window))&&(R=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":A(self))&&(R=self),R.Jimp=C,R.Buffer=_;var F=C;H.default=F}).call(this,z("buffer").Buffer)},{"./composite":103,"./constants":104,"./modules/phash":106,"./request":107,"./utils/image-bitmap":108,"./utils/mime":109,"./utils/promisify":110,"@jimp/utils":139,"any-base":140,buffer:11,"core-js/modules/es6.array.find":245,"core-js/modules/es6.array.for-each":246,"core-js/modules/es6.array.index-of":248,"core-js/modules/es6.array.is-array":249,"core-js/modules/es6.array.iterator":250,"core-js/modules/es6.date.to-string":252,"core-js/modules/es6.function.bind":253,"core-js/modules/es6.number.constructor":254,"core-js/modules/es6.object.assign":255,"core-js/modules/es6.object.create":256,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.object.set-prototype-of":259,"core-js/modules/es6.promise":260,"core-js/modules/es6.reflect.construct":261,"core-js/modules/es6.regexp.match":263,"core-js/modules/es6.regexp.replace":264,"core-js/modules/es6.regexp.to-string":266,"core-js/modules/es6.symbol":269,"core-js/modules/es6.typed.uint8-array":272,"core-js/modules/es6.typed.uint8-clamped-array":273,"core-js/modules/es7.object.entries":275,"core-js/modules/es7.symbol.async-iterator":276,"core-js/modules/web.dom.iterable":277,events:33,fs:9,mkdirp:298,path:51,pixelmatch:322,tinycolor2:346}],106:[function(t,e,r){"use strict";function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;e<t;e++)d[e]=1;d[0]=1/Math.sqrt(2)}(this.size)}function c(t){var e={};return e.r=Math.floor(t/Math.pow(256,3)),e.g=Math.floor((t-e.r*Math.pow(256,3))/Math.pow(256,2)),e.b=Math.floor((t-e.r*Math.pow(256,3)-e.g*Math.pow(256,2))/Math.pow(256,1)),e.a=Math.floor((t-e.r*Math.pow(256,3)-e.g*Math.pow(256,2)-e.b*Math.pow(256,1))/Math.pow(256,0)),e}n.prototype.size=32,n.prototype.smallerSize=8,n.prototype.distance=function(t,e){for(var r=0,n=0;n<t.length;n++)t[n]!==e[n]&&r++;return r/t.length},n.prototype.getHash=function(t){(t=t.clone().resize(this.size,this.size)).grayscale();for(var e=[],r=0;r<t.bitmap.width;r++){e[r]=[];for(var n=0;n<t.bitmap.height;n++)e[r][n]=c(t.getPixelColor(r,n)).b}for(var i=function(t,e){for(var r=e,n=[],i=0;i<r;i++){n[i]=[];for(var o=0;o<r;o++){for(var a=0,s=0;s<r;s++)for(var u=0;u<r;u++)a+=Math.cos((2*s+1)/(2*r)*i*Math.PI)*Math.cos((2*u+1)/(2*r)*o*Math.PI)*t[s][u];a*=d[i]*d[o]/4,n[i][o]=a}}return n}(e,this.size),o=0,a=0;a<this.smallerSize;a++)for(var s=0;s<this.smallerSize;s++)o+=i[a][s];for(var u=o/(this.smallerSize*this.smallerSize),f="",l=0;l<this.smallerSize;l++)for(var h=0;h<this.smallerSize;h++)f+=i[l][h]>u?"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<r?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];return new Promise(function(r,n){i.push(function(t,e){t&&n(t),r(e)}),t.bind(e).apply(void 0,i)})}r.default=n,e.exports=r.default},{"core-js/modules/es6.function.bind":253,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.promise":260}],111:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:n.default,i={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function r(t){Object.entries(t).forEach(function(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t,2),r=e[0],n=e[1];i[r]=a({},i[r],n)})}t.types&&(t.types.forEach(function(t){var e=t();Array.isArray(e.mime)?n.addType.apply(void 0,o(e.mime)):Object.entries(e.mime).forEach(function(t){return n.addType.apply(void 0,o(t))}),delete e.mime,r(e)}),e.decoders=a({},e.decoders,i.decoders),e.encoders=a({},e.encoders,i.encoders),e.hasAlpha=a({},e.hasAlpha,i.hasAlpha));t.plugins&&t.plugins.forEach(function(t){var e=t(n.jimpEvChange)||{};e.class||e.constants?r(e):r({class:e})});return(0,n.addJimpMethods)(i.class,e),(0,n.addConstants)(i.constants,e),n.default},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/es6.array.filter"),t("core-js/modules/es6.object.keys"),t("core-js/modules/es6.object.define-property"),t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol"),t("core-js/modules/es6.array.is-array"),t("core-js/modules/es6.array.iterator"),t("core-js/modules/es7.object.entries"),t("core-js/modules/web.dom.iterable"),t("core-js/modules/es6.array.for-each");var n=function(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}}(t("@jimp/core"));function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(t){i(e,t,r[t])})}return e}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.exports=r.default},{"@jimp/core":105,"core-js/modules/es6.array.filter":243,"core-js/modules/es6.array.for-each":246,"core-js/modules/es6.array.from":247,"core-js/modules/es6.array.is-array":249,"core-js/modules/es6.array.iterator":250,"core-js/modules/es6.date.to-string":252,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.object.keys":258,"core-js/modules/es6.regexp.to-string":266,"core-js/modules/es6.string.iterator":268,"core-js/modules/es6.symbol":269,"core-js/modules/es7.object.entries":275,"core-js/modules/es7.symbol.async-iterator":276,"core-js/modules/web.dom.iterable":277}],112:[function(o,a,s){(function(n){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,o("core-js/modules/es6.object.define-property");var t,i=(t=o("omggif"))&&t.__esModule?t:{default:t};function e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var r="image/gif";s.default=function(){return{mime:e({},r,["gif"]),constants:{MIME_GIF:r},decoders:e({},r,function(t){var e=new i.default.GifReader(t),r=n.alloc(e.width*e.height*4);return e.decodeAndBlitFrameRGBA(0,r),{data:r,width:e.width,height:e.height}})}},a.exports=s.default}).call(this,o("buffer").Buffer)},{buffer:11,"core-js/modules/es6.object.define-property":257,omggif:299}],113:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es6.object.define-property");var n,i=(n=t("jpeg-js"))&&n.__esModule?n:{default:n},o=t("@jimp/utils");function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s="image/jpeg";r.default=function(){return{mime:a({},s,["jpeg","jpg","jpe"]),constants:{MIME_JPEG:s},decoders:a({},s,i.default.decode),encoders:a({},s,function(t){return i.default.encode(t.bitmap,t._quality).data}),class:{_quality:100,quality:function(t,e){return"number"!=typeof t?o.throwError.call(this,"n must be a number",e):t<0||100<t?o.throwError.call(this,"n must be a number 0 - 100",e):(this._quality=Math.round(t),(0,o.isNodePattern)(e)&&e.call(this,null,this),this)}}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257,"jpeg-js":292}],114:[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 i=t("@jimp/utils");function o(t){return(o="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{blit:function(t,p,m,b,_,e,r,n){if(!(t instanceof this.constructor))return i.throwError.call(this,"The source must be a Jimp image",n);if("number"!=typeof p||"number"!=typeof m)return i.throwError.call(this,"x and y must be numbers",n);if("function"==typeof b)n=b,_=b=0,e=t.bitmap.width,r=t.bitmap.height;else{if(o(b)!==o(_)||o(_)!==o(e)||o(e)!==o(r))return i.throwError.call(this,"srcx, srcy, srcw, srch must be numbers",n);b=b||0,_=_||0,e=e||t.bitmap.width,r=r||t.bitmap.height}p=Math.round(p),m=Math.round(m),b=Math.round(b),_=Math.round(_),e=Math.round(e),r=Math.round(r);var g=this.bitmap.width,y=this.bitmap.height,v=this;return t.scanQuiet(b,_,e,r,function(t,e,r){var n=p+t-b,i=m+e-_;if(0<=n&&0<=i&&0<g-n&&0<y-i){var o=v.getPixelIndex(n,i),a=this.bitmap.data[r],s=this.bitmap.data[r+1],u=this.bitmap.data[r+2],f=this.bitmap.data[r+3],l=v.bitmap.data[o],h=v.bitmap.data[o+1],c=v.bitmap.data[o+2],d=v.bitmap.data[o+3];v.bitmap.data[o]=(f*(a-l)-l+255>>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<A--;){for(s=p=d=0;s<this.bitmap.height;s++){for(r=this.bitmap.data[p]*g,n=this.bitmap.data[p+1]*g,i=this.bitmap.data[p+2]*g,o=this.bitmap.data[p+3]*g,u=1;u<=t;u++)f=p+((b<u?b:u)<<2),r+=this.bitmap.data[f++],n+=this.bitmap.data[f++],i+=this.bitmap.data[f++],o+=this.bitmap.data[f];for(a=0;a<this.bitmap.width;a++)w[d]=r,E[d]=n,x[d]=i,k[d]=o,0===s&&(S[a]=((f=a+g)<b?f:b)<<2,j[a]=0<(f=a-t)?f<<2:0),l=p+S[a],h=p+j[a],r+=this.bitmap.data[l++]-this.bitmap.data[h++],n+=this.bitmap.data[l++]-this.bitmap.data[h++],i+=this.bitmap.data[l++]-this.bitmap.data[h++],o+=this.bitmap.data[l]-this.bitmap.data[h],d++;p+=this.bitmap.width<<2}for(a=0;a<this.bitmap.width;a++){for(r=w[c=a]*g,n=E[c]*g,i=x[c]*g,o=k[c]*g,u=1;u<=t;u++)r+=w[c+=_<u?0:this.bitmap.width],n+=E[c],i+=x[c],o+=k[c];for(d=a<<2,s=0;s<this.bitmap.height;s++)m=o*y>>>v,255<(this.bitmap.data[d+3]=m)&&(this.bitmap.data[d+3]=255),0<m?(m=255/m,this.bitmap.data[d]=(r*y>>>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<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(t,e,r,n){for(var i=[0,0,0],o=(e.length-1)/2,a=0;a<e.length;a+=1)for(var s=0;s<e[a].length;s+=1){var u=t.getPixelIndex(r+a-o,n+s-o);i[0]+=t.bitmap.data[u]*e[a][s],i[1]+=t.bitmap.data[u+1]*e[a][s],i[2]+=t.bitmap.data[u+2]*e[a][s]}return i}function h(t){return null!=t}function e(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=parseInt(.2126*this.bitmap.data[r]+.7152*this.bitmap.data[r+1]+.0722*this.bitmap.data[r+2],10);this.bitmap.data[r]=n,this.bitmap.data[r+1]=n,this.bitmap.data[r+2]=n}),(0,E.isNodePattern)(t)&&t.call(this,null,this),this}function c(t,e,r){var n=2<arguments.length&&void 0!==r?r:50;return{r:(e.r-t.r)*(n/100)+t.r,g:(e.g-t.g)*(n/100)+t.g,b:(e.b-t.b)*(n/100)+t.b}}function r(o,a){var s=this;return o&&Array.isArray(o)?(o=o.map(function(t){return"xor"!==t.apply&&"mix"!==t.apply||(t.params[0]=(0,u.default)(t.params[0]).toRgb()),t}),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n={r:s.bitmap.data[r],g:s.bitmap.data[r+1],b:s.bitmap.data[r+2]};function i(t,e){return this.constructor.limit255(n[t]+e)}o.forEach(function(t){if("mix"===t.apply)n=c(n,t.params[0],t.params[1]);else if("tint"===t.apply)n=c(n,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)n=c(n,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)n={r:n.r^t.params[0].r,g:n.g^t.params[0].g,b:n.b^t.params[0].b};else if("red"===t.apply)n.r=i("r",t.params[0]);else if("green"===t.apply)n.g=i("g",t.params[0]);else if("blue"===t.apply)n.b=i("b",t.params[0]);else{var e;if("hue"===t.apply&&(t.apply="spin"),!(n=(0,u.default)(n))[t.apply])return E.throwError.call(s,"action "+t.apply+" not supported",a);n=(e=n)[t.apply].apply(e,f(t.params)).toRgb()}}),s.bitmap.data[r]=n.r,s.bitmap.data[r+1]=n.g,s.bitmap.data[r+2]=n.b}),(0,E.isNodePattern)(a)&&a.call(this,null,this),this):E.throwError.call(this,"actions must be an array",a)}a.default=function(){return{brightness:function(n,t){return"number"!=typeof n?E.throwError.call(this,"val must be numbers",t):n<-1||1<n?E.throwError.call(this,"val must be a number between -1 and +1",t):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){n<0?(this.bitmap.data[r]=this.bitmap.data[r]*(1+n),this.bitmap.data[r+1]=this.bitmap.data[r+1]*(1+n),this.bitmap.data[r+2]=this.bitmap.data[r+2]*(1+n)):(this.bitmap.data[r]=this.bitmap.data[r]+(255-this.bitmap.data[r])*n,this.bitmap.data[r+1]=this.bitmap.data[r+1]+(255-this.bitmap.data[r+1])*n,this.bitmap.data[r+2]=this.bitmap.data[r+2]+(255-this.bitmap.data[r+2])*n)}),(0,E.isNodePattern)(t)&&t.call(this,null,this),this)},contrast:function(r,t){if("number"!=typeof r)return E.throwError.call(this,"val must be numbers",t);if(r<-1||1<r)return E.throwError.call(this,"val must be a number between -1 and +1",t);function n(t){var e;return e=r<0?((e=127<t?1-t/255:t/255)<0&&(e=0),.5*Math.pow(2*e,1+r)):((e=127<t?1-t/255:t/255)<0&&(e=0),.5*Math.pow(2*e,1===r?127:1/(1-r))),127<t?255*(1-e):255*e}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){this.bitmap.data[r]=n(this.bitmap.data[r]),this.bitmap.data[r+1]=n(this.bitmap.data[r+1]),this.bitmap.data[r+2]=n(this.bitmap.data[r+2])}),(0,E.isNodePattern)(t)&&t.call(this,null,this),this},posterize:function(n,t){return"number"!=typeof n?E.throwError.call(this,"n must be numbers",t):(n<2&&(n=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){this.bitmap.data[r]=Math.floor(this.bitmap.data[r]/255*(n-1))/(n-1)*255,this.bitmap.data[r+1]=Math.floor(this.bitmap.data[r+1]/255*(n-1))/(n-1)*255,this.bitmap.data[r+2]=Math.floor(this.bitmap.data[r+2]/255*(n-1))/(n-1)*255}),(0,E.isNodePattern)(t)&&t.call(this,null,this),this)},greyscale:e,grayscale:e,opacity:function(i,t){return"number"!=typeof i?E.throwError.call(this,"f must be a number",t):i<0||1<i?E.throwError.call(this,"f must be a number from 0 to 1",t):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=this.bitmap.data[r+3]*i;this.bitmap.data[r+3]=n}),(0,E.isNodePattern)(t)&&t.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=this.bitmap.data[r],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2];o=.272*(n=.393*n+.769*i+.189*o)+.534*(i=.349*n+.686*i+.168*o)+.131*o,this.bitmap.data[r]=n<255?n:255,this.bitmap.data[r+1]=i<255?i:255,this.bitmap.data[r+2]=o<255?o:255}),(0,E.isNodePattern)(t)&&t.call(this,null,this),this},fade:function(t,e){return"number"!=typeof t?E.throwError.call(this,"f must be a number",e):t<0||1<t?E.throwError.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),(0,E.isNodePattern)(e)&&e.call(this,null,this),this)},convolution:function(o,a,t){"function"==typeof a&&void 0===t&&(t=a,a=null),a=a||this.constructor.EDGE_EXTEND;var s,u,f,l,h,c,d,p,m,b,_=n.from(this.bitmap.data),e=o.length,r=o[0].length,g=Math.floor(e/2),y=Math.floor(r/2),v=-g,w=-y;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){u=f=l=0;for(var n=v;n<=g;n++)for(var i=w;i<=y;i++)p=t+i,m=e+n,s=o[n+g][i+y],-1===(b=this.getPixelIndex(p,m,a))?h=c=d=0:(h=this.bitmap.data[b+0],c=this.bitmap.data[b+1],d=this.bitmap.data[b+2]),u+=s*h,f+=s*c,l+=s*d;u<0&&(u=0),f<0&&(f=0),l<0&&(l=0),255<u&&(u=255),255<f&&(f=255),255<l&&(l=255),_[r+0]=u,_[r+1]=f,_[r+2]=l}),this.bitmap.data=_,(0,E.isNodePattern)(t)&&t.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){this.bitmap.data[r+3]=255}),(0,E.isNodePattern)(t)&&t.call(this,null,this),this},pixelate:function(i,t,e,r,n,o){if("function"==typeof t)o=t,t=e=r=n=null;else{if("number"!=typeof i)return E.throwError.call(this,"size must be a number",o);if(h(t)&&"number"!=typeof t)return E.throwError.call(this,"x must be a number",o);if(h(e)&&"number"!=typeof e)return E.throwError.call(this,"y must be a number",o);if(h(r)&&"number"!=typeof r)return E.throwError.call(this,"w must be a number",o);if(h(n)&&"number"!=typeof n)return E.throwError.call(this,"h must be a number",o)}var a=[[1/16,.125,1/16],[.125,.25,.125],[1/16,.125,1/16]];t=t||0,e=e||0,r=h(r)?r:this.bitmap.width-t,n=h(n)?n:this.bitmap.height-e;var s=this.cloneQuiet();return this.scanQuiet(t,e,r,n,function(t,e,r){t=i*Math.floor(t/i),e=i*Math.floor(e/i);var n=l(s,a,t,e);this.bitmap.data[r]=n[0],this.bitmap.data[r+1]=n[1],this.bitmap.data[r+2]=n[2]}),(0,E.isNodePattern)(o)&&o.call(this,null,this),this},convolute:function(i,t,e,r,n,o){if(!Array.isArray(i))return E.throwError.call(this,"the kernel must be an array",o);if("function"==typeof t)o=t,n=r=e=t=null;else{if(h(t)&&"number"!=typeof t)return E.throwError.call(this,"x must be a number",o);if(h(e)&&"number"!=typeof e)return E.throwError.call(this,"y must be a number",o);if(h(r)&&"number"!=typeof r)return E.throwError.call(this,"w must be a number",o);if(h(n)&&"number"!=typeof n)return E.throwError.call(this,"h must be a number",o)}var a=(i.length-1)/2;t=h(t)?t:a,e=h(e)?e:a,r=h(r)?r:this.bitmap.width-t,n=h(n)?n:this.bitmap.height-e;var s=this.cloneQuiet();return this.scanQuiet(t,e,r,n,function(t,e,r){var n=l(s,i,t,e);this.bitmap.data[r]=this.constructor.limit255(n[0]),this.bitmap.data[r+1]=this.constructor.limit255(n[1]),this.bitmap.data[r+2]=this.constructor.limit255(n[2])}),(0,E.isNodePattern)(o)&&o.call(this,null,this),this},color:r,colour:r}},o.exports=a.default}).call(this,i("buffer").Buffer)},{"@jimp/utils":139,buffer:11,"core-js/modules/es6.array.for-each":246,"core-js/modules/es6.array.from":247,"core-js/modules/es6.array.is-array":249,"core-js/modules/es6.array.map":251,"core-js/modules/es6.date.to-string":252,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.regexp.to-string":266,"core-js/modules/es6.string.iterator":268,"core-js/modules/es6.symbol":269,"core-js/modules/es7.symbol.async-iterator":276,"core-js/modules/web.dom.iterable":277,tinycolor2:346}],118:[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 h=t("@jimp/utils");r.default=function(){return{contain:function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return h.throwError.call(this,"w and h must be numbers",i);"string"==typeof r&&("function"==typeof n&&void 0===i&&(i=n),n=r,r=null),"function"==typeof r&&(void 0===i&&(i=r),r=n=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 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;s<u;s++)if("number"==typeof(s<0||arguments.length<=s?void 0:arguments[s])&&(i=s<0||arguments.length<=s?void 0:arguments[s]),"boolean"==typeof(s<0||arguments.length<=s?void 0:arguments[s])&&(o=s<0||arguments.length<=s?void 0:arguments[s]),"function"==typeof(s<0||arguments.length<=s?void 0:arguments[s])&&(t=s<0||arguments.length<=s?void 0:arguments[s]),"object"===N(s<0||arguments.length<=s?void 0:arguments[s])){var f=s<0||arguments.length<=s?void 0:arguments[s];void 0!==f.tolerance&&(i=f.tolerance),void 0!==f.cropOnlyFrames&&(o=f.cropOnlyFrames),void 0!==f.cropSymmetric&&(a=f.cropSymmetric),void 0!==f.leaveBorder&&(n=f.leaveBorder)}var l=this.getPixelColor(0,0),h=this.constructor.intToRGBA(l),c=0,d=0,p=0,m=0;l=this.getPixelColor(0,0);t:for(var b=0;b<r-1;b++){for(var _=0;_<e;_++){var g=this.getPixelColor(_,b),y=this.constructor.intToRGBA(g);if(this.constructor.colorDiff(h,y)>i){c-=n;break t}}c++}l=this.getPixelColor(e,0);t:for(var v=0;v<e-1;v++){for(var w=0+c;w<r;w++){var E=this.getPixelColor(v,w),x=this.constructor.intToRGBA(E);if(this.constructor.colorDiff(h,x)>i){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;n<this.bitmap.height;n++)for(var i=0;i<this.bitmap.width;i++)for(var o=0,a=0,s=0,u=0,f=0,l=n-r;l<n+r+1;l++){for(var h=i-r;h<i+r+1;h++){var c=Math.min(this.bitmap.width-1,Math.max(0,h)),d=Math.min(this.bitmap.height-1,Math.max(0,l)),p=(h-i)*(h-i)+(l-n)*(l-n),m=Math.exp(-p/(2*t*t))/(2*Math.PI*t*t),b=d*this.bitmap.width+c<<2;o+=this.bitmap.data[b]*m,a+=this.bitmap.data[1+b]*m,s+=this.bitmap.data[2+b]*m,u+=this.bitmap.data[3+b]*m,f+=m}var _=n*this.bitmap.width+i<<2;this.bitmap.data[_]=Math.round(o/f),this.bitmap.data[1+_]=Math.round(a/f),this.bitmap.data[2+_]=Math.round(s/f),this.bitmap.data[3+_]=Math.round(u/f)}return(0,g.isNodePattern)(e)&&e.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257}],125:[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");r.default=function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){this.bitmap.data[r]=255-this.bitmap.data[r],this.bitmap.data[r+1]=255-this.bitmap.data[r+1],this.bitmap.data[r+2]=255-this.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}],126:[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 o=t("@jimp/utils");r.default=function(){return{mask:function(t,e,r,n){var u=1<arguments.length&&void 0!==e?e:0,f=2<arguments.length&&void 0!==r?r:0,i=3<arguments.length?n:void 0;if(!(t instanceof this.constructor))return o.throwError.call(this,"The source must be a Jimp image",i);if("number"!=typeof u||"number"!=typeof f)return o.throwError.call(this,"x and y must be numbers",i);u=Math.round(u),f=Math.round(f);var l=this.bitmap.width,h=this.bitmap.height,c=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,e,r){var n=u+t,i=f+e;if(0<=n&&0<=i&&n<l&&i<h){var o=c.getPixelIndex(n,i),a=this.bitmap.data,s=(a[r+0]+a[r+1]+a[r+2])/3;c.bitmap.data[o+3]*=s/255}}),(0,o.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257}],127:[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.array.find-index"),t("core-js/modules/es6.array.fill");var n=t("@jimp/utils");function s(t,e,r){return 255*(t-e)/(r-e)}function i(t){return[t.findIndex(function(t){return 0<t}),255-t.slice().reverse().findIndex(function(t){return 0<t})]}r.default=function(){return{normalize:function(t){var e=function(){var n={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){n.r[this.bitmap.data[r+0]]++,n.g[this.bitmap.data[r+1]]++,n.b[this.bitmap.data[r+2]]++}),n}.call(this),a={r:i(e.r),g:i(e.g),b:i(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=this.bitmap.data[r+0],i=this.bitmap.data[r+1],o=this.bitmap.data[r+2];this.bitmap.data[r+0]=s(n,a.r[0],a.r[1]),this.bitmap.data[r+1]=s(i,a.g[0],a.g[1]),this.bitmap.data[r+2]=s(o,a.b[0],a.b[1])}),(0,n.isNodePattern)(t)&&t.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.array.fill":242,"core-js/modules/es6.array.find-index":244,"core-js/modules/es6.object.define-property":257}],128:[function(i,o,a){(function(t){"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.array.from"),i("core-js/modules/es7.symbol.async-iterator"),i("core-js/modules/es6.symbol"),i("core-js/modules/es6.array.is-array"),i("core-js/modules/es7.object.entries"),i("core-js/modules/es6.regexp.to-string"),i("core-js/modules/es6.date.to-string"),i("core-js/modules/es6.promise"),i("core-js/modules/es6.array.iterator"),i("core-js/modules/es6.string.iterator"),i("core-js/modules/es6.array.map"),i("core-js/modules/web.dom.iterable"),i("core-js/modules/es6.array.for-each"),i("core-js/modules/es6.regexp.split");var l=r(i("path")),e=r(i("load-bmfont")),p=i("@jimp/utils"),m=i("./measure-text");function r(t){return t&&t.__esModule?t:{default:t}}function b(t){return(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})(t)}function _(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function g(t,e,r,n,i){if(0<i.width&&0<i.height){var o=e.pages[i.page];t.blit(o,r+i.xoffset,n+i.yoffset,i.x,i.y,i.width,i.height)}return t}var n="browser/lib/";a.default=function(){return{constants:{measureText:m.measureText,measureTextHeight:m.measureTextHeight,FONT_SANS_8_BLACK:l.default.join(n,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:l.default.join(n,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:l.default.join(n,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:l.default.join(n,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:l.default.join(n,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:l.default.join(n,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:l.default.join(n,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:l.default.join(n,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:l.default.join(n,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:l.default.join(n,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:l.default.join(n,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:l.default.join(n,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:l.default.join(n,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(s,u){var f=this;return"string"!=typeof s?p.throwError.call(this,"file must be a string",u):new Promise(function(r,n){u=u||function(t,e){t?n(t):r(e)},(0,e.default)(s,function(t,e){var r={},n={};if(t)return p.throwError.call(f,t,u);for(var i=0;i<e.chars.length;i++)r[String.fromCharCode(e.chars[i].id)]=e.chars[i];for(var o=0;o<e.kernings.length;o++){var a=String.fromCharCode(e.kernings[o].first);n[a]=n[a]||{},n[a][String.fromCharCode(e.kernings[o].second)]=e.kernings[o].amount}(function(e,r,t){var n=t.map(function(t){return e.read(r+"/"+t)});return Promise.all(n)})(f,l.default.dirname(s),e.pages).then(function(t){u(null,{chars:r,kernings:n,pages:t,common:e.common,info:e.info})})})})}},class:{print:function(n,i,o,t,a,e,r){var s,u,f=this;if("function"==typeof a&&void 0===r&&(r=a,a=1/0),void 0===a&&(a=1/0),"function"==typeof e&&void 0===r&&(r=e,e=1/0),void 0===e&&(e=1/0),"object"!==b(n))return p.throwError.call(this,"font must be a Jimp loadFont",r);if("number"!=typeof i||"number"!=typeof o||"number"!=typeof a)return p.throwError.call(this,"x, y and maxWidth must be numbers",r);if("number"!=typeof a)return p.throwError.call(this,"maxWidth must be a number",r);if("number"!=typeof e)return p.throwError.call(this,"maxHeight must be a number",r);"object"===b(t)&&null!==t.text&&void 0!==t.text?(s=t.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,u=t.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,t=t.text):(s=this.constructor.HORIZONTAL_ALIGN_LEFT,u=this.constructor.VERTICAL_ALIGN_TOP,t=t.toString());e!==1/0&&u===this.constructor.VERTICAL_ALIGN_BOTTOM?o+=e-(0,m.measureTextHeight)(n,t,a):e!==1/0&&u===this.constructor.VERTICAL_ALIGN_MIDDLE&&(o+=e/2-(0,m.measureTextHeight)(n,t,a)/2);var l=Object.entries(n.chars)[0][1].xadvance,h=function(n,t,i){var e=t.split(" "),o=[],a=[],s=0;return e.forEach(function(t){var e=_(a).concat([t]).join(" "),r=(0,m.measureText)(n,e);r<=i?(s<r&&(s=r),a.push(t)):(o.push(a),a=[t])}),o.push(a),{lines:o,longestLine:s}}(n,t,a),c=h.lines,d=h.longestLine;return c.forEach(function(t){var e=t.join(" "),r=function(t,e,r,n,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(n-(0,m.measureText)(e,r))/2:n-(0,m.measureText)(e,r)}(f.constructor,n,e,a,s);(function(t,e,r,n,i){for(var o=0;o<n.length;o++){var a=void 0;a=t.chars[n[o]]?n[o]:/\s/.test(n[o])?"":"?";var s=t.chars[a]||{},u=t.kernings[a];g(this,t,e,r,s||{}),e+=(u&&u[n[o+1]]?u[n[o+1]]:0)+(s.xadvance||i)}}).call(f,n,i+r,o,e,l),o+=n.common.lineHeight}),(0,p.isNodePattern)(r)&&r.call(this,null,this,{x:i+d,y:o}),this}}}},o.exports=a.default}).call(this,"/../../../../../node_modules/@jimp/plugin-print/dist")},{"./measure-text":129,"@jimp/utils":139,"core-js/modules/es6.array.for-each":246,"core-js/modules/es6.array.from":247,"core-js/modules/es6.array.is-array":249,"core-js/modules/es6.array.iterator":250,"core-js/modules/es6.array.map":251,"core-js/modules/es6.date.to-string":252,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.promise":260,"core-js/modules/es6.regexp.split":265,"core-js/modules/es6.regexp.to-string":266,"core-js/modules/es6.string.iterator":268,"core-js/modules/es6.symbol":269,"core-js/modules/es7.object.entries":275,"core-js/modules/es7.symbol.async-iterator":276,"core-js/modules/web.dom.iterable":277,"load-bmfont":295,path:51}],129:[function(t,e,r){"use strict";function f(t,e){for(var r=0,n=0;n<e.length;n++)if(t.chars[e[n]]){var i=t.kernings[e[n]]&&t.kernings[e[n]][e[n+1]]?t.kernings[e[n]][e[n+1]]:0;r+=(t.chars[e[n]].xadvance||0)+i}return r}t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.measureText=f,r.measureTextHeight=function(t,e,r){for(var n=e.split(" "),i="",o=t.common.lineHeight,a=0;a<n.length;a++){var s=i+n[a]+" ",u=f(t,s);i=r<u&&0<a?(o+=t.common.lineHeight,n[a]+" "):s}return o},t("core-js/modules/es6.regexp.split")},{"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.regexp.split":265}],130:[function(e,r,n){(function(s){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=e("@jimp/utils"),f=t(e("./modules/resize")),l=t(e("./modules/resize2"));function t(t){return t&&t.__esModule?t:{default:t}}n.default=function(){return{constants:{RESIZE_NEAREST_NEIGHBOR:"nearestNeighbor",RESIZE_BILINEAR:"bilinearInterpolation",RESIZE_BICUBIC:"bicubicInterpolation",RESIZE_HERMITE:"hermiteInterpolation",RESIZE_BEZIER:"bezierInterpolation"},class:{resize:function(e,r,t,n){if("number"!=typeof e||"number"!=typeof r)return u.throwError.call(this,"w and h must be numbers",n);if("function"==typeof t&&void 0===n&&(n=t,t=null),e===this.constructor.AUTO&&r===this.constructor.AUTO)return u.throwError.call(this,"w and h cannot both be set to auto",n);if(e===this.constructor.AUTO&&(e=this.bitmap.width*(r/this.bitmap.height)),r===this.constructor.AUTO&&(r=this.bitmap.height*(e/this.bitmap.width)),e<0||r<0)return u.throwError.call(this,"w and h must be positive numbers",n);if(e=Math.round(e),r=Math.round(r),"function"==typeof l.default[t]){var i={data:s.alloc(e*r*4),width:e,height:r};l.default[t](this.bitmap,i),this.bitmap=i}else{var o=this,a=new f.default(this.bitmap.width,this.bitmap.height,e,r,!0,!0,function(t){o.bitmap.data=s.from(t),o.bitmap.width=e,o.bitmap.height=r});a.resize(this.bitmap.data)}return(0,u.isNodePattern)(n)&&n.call(this,null,this),this}}}},r.exports=n.default}).call(this,e("buffer").Buffer)},{"./modules/resize":131,"./modules/resize2":132,"@jimp/utils":139,buffer:11,"core-js/modules/es6.object.define-property":257}],131:[function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(r)||0),this.targetHeight=Math.abs(Math.floor(n)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback="function"==typeof a?a:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}t("core-js/modules/es6.typed.uint8-array"),t("core-js/modules/es6.typed.float64-array"),t("core-js/modules/es6.typed.float32-array"),n.prototype.initialize=function(){if(!(0<this.widthOriginal&&0<this.heightOriginal&&0<this.targetWidth&&0<this.targetHeight))throw new Error("Invalid settings specified for the resizer.");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var r,n,i=e?4:3,o=this.ratioWeightWidthPass,a=this.widthBuffer,s=0,u=0,f=0,l=0,h=0;for(r=0;s<1/3;r+=i,s+=o)for(u=r,f=0;u<this.widthPassResultSize;f+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[f],a[u+1]=t[f+1],a[u+2]=t[f+2],e&&(a[u+3]=t[f+3]);for(s-=1/3,n=this.widthOriginal-1;s<n;r+=i,s+=o)for(l=1-(h=s%1),u=r,f=Math.floor(s)*i;u<this.widthPassResultSize;f+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u+0]=t[f+0]*l+t[f+i+0]*h,a[u+1]=t[f+1]*l+t[f+i+1]*h,a[u+2]=t[f+2]*l+t[f+i+2]*h,e&&(a[u+3]=t[f+3]*l+t[f+i+3]*h);for(n=this.originalWidthMultipliedByChannels-i;r<this.targetWidthMultipliedByChannels;r+=i)for(u=r,f=n;u<this.widthPassResultSize;f+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)a[u]=t[f],a[u+1]=t[f+1],a[u+2]=t[f+2],e&&(a[u+3]=t[f+3]);return a},n.prototype._resizeWidthRGBChannels=function(t,e){var r=e?4:3,n=this.ratioWeightWidthPass,i=1/n,o=this.originalWidthMultipliedByChannels-r+1,a=this.targetWidthMultipliedByChannels-r+1,s=this.outputWidthWorkBench,u=this.widthBuffer,f=this.outputWidthWorkBenchOpaquePixelsCount,l=0,h=0,c=0,d=0,p=0,m=0,b=0,_=1,g=0,y=0,v=0,w=0;do{for(p=0;p<this.originalHeightMultipliedByChannels;)s[p++]=0,s[p++]=0,s[p++]=0,e&&(s[p++]=0,f[p/r-1]=0);l=n;do{for(h=1+c-d,_=Math.min(l,h),p=0,m=c;p<this.originalHeightMultipliedByChannels;m+=o)g=t[m],y=t[++m],v=t[++m],w=e?t[++m]:255,s[p++]+=(w?g:0)*_,s[p++]+=(w?y:0)*_,s[p++]+=(w?v:0)*_,e&&(s[p++]+=w*_,f[p/r-1]+=w?_:0);if(!(h<=l)){d+=l;break}d=c+=r,l-=h}while(0<l&&c<this.originalWidthMultipliedByChannels);for(p=0,m=b;p<this.originalHeightMultipliedByChannels;m+=a)l=e?f[p/r]:1,_=e?l?1/l:0:i,u[m]=s[p++]*_,u[++m]=s[p++]*_,u[++m]=s[p++]*_,e&&(u[++m]=s[p++]*i);b+=r}while(b<this.targetWidthMultipliedByChannels);return u},n.prototype._resizeHeightRGBChannels=function(t,e){var r=this.ratioWeightHeightPass,n=1/r,i=this.outputHeightWorkBench,o=this.heightBuffer,a=this.outputHeightWorkBenchOpaquePixelsCount,s=0,u=0,f=0,l=0,h=0,c=0,d=0,p=1,m=0,b=0,_=0,g=0;do{for(h=0;h<this.targetWidthMultipliedByChannels;)i[h++]=0,i[h++]=0,i[h++]=0,e&&(i[h++]=0,a[h/4-1]=0);s=r;do{for(u=1+f-l,p=Math.min(s,u),d=f,h=0;h<this.targetWidthMultipliedByChannels;)m=t[d++],b=t[d++],_=t[d++],g=e?t[d++]:255,i[h++]+=(g?m:0)*p,i[h++]+=(g?b:0)*p,i[h++]+=(g?_:0)*p,e&&(i[h++]+=g*p,a[h/4-1]+=g?p:0);if(!(u<=s)){l+=s;break}l=f=d,s-=u}while(0<s&&f<this.widthPassResultSize);for(h=0;h<this.targetWidthMultipliedByChannels;)s=e?a[h/4]:1,p=e?s?1/s:0:n,o[c++]=Math.round(i[h++]*p),o[c++]=Math.round(i[h++]*p),o[c++]=Math.round(i[h++]*p),e&&(o[c++]=Math.round(i[h++]*n))}while(c<this.finalResultSize);return o},n.prototype.resizeWidthInterpolatedRGB=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!1)},n.prototype.resizeWidthInterpolatedRGBA=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!0)},n.prototype.resizeWidthRGB=function(t){return this._resizeWidthRGBChannels(t,!1)},n.prototype.resizeWidthRGBA=function(t){return this._resizeWidthRGBChannels(t,!0)},n.prototype.resizeHeightInterpolated=function(t){for(var e,r=this.ratioWeightHeightPass,n=this.heightBuffer,i=0,o=0,a=0,s=0,u=0,f=0,l=0;i<1/3;i+=r)for(a=0;a<this.targetWidthMultipliedByChannels;)n[o++]=Math.round(t[a++]);for(i-=1/3,e=this.heightOriginal-1;i<e;i+=r)for(f=1-(l=i%1),u=(s=Math.floor(i)*this.targetWidthMultipliedByChannels)+this.targetWidthMultipliedByChannels,a=0;a<this.targetWidthMultipliedByChannels;++a)n[o++]=Math.round(t[s++]*f+t[u++]*l);for(;o<this.finalResultSize;)for(a=0,s=e*this.targetWidthMultipliedByChannels;a<this.targetWidthMultipliedByChannels;++a)n[o++]=Math.round(t[s++]);return n},n.prototype.resizeHeightRGB=function(t){return this._resizeHeightRGBChannels(t,!1)},n.prototype.resizeHeightRGBA=function(t){return this._resizeHeightRGBChannels(t,!0)},n.prototype.resize=function(t){this.resizeCallback(this.resizeHeight(this.resizeWidth(t)))},n.prototype.bypassResizer=function(t){return t},n.prototype.initializeFirstPassBuffers=function(t){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),t||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),3<this.colorChannels&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),3<this.colorChannels&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},e.exports=n},{"core-js/modules/es6.typed.float32-array":270,"core-js/modules/es6.typed.float64-array":271,"core-js/modules/es6.typed.uint8-array":272}],132:[function(t,e,r){(function(rt){"use strict";e.exports={nearestNeighbor:function(t,e){for(var r=t.width,n=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=0;u<o;u++)for(var f=0;f<i;f++){var l=4*(u*i+f),h=4*(Math.floor(u*n/o)*r+Math.floor(f*r/i));s[l++]=a[h++],s[l++]=a[h++],s[l++]=a[h++],s[l++]=a[h++]}},bilinearInterpolation:function(t,e){for(var c=t.width,r=t.height,n=e.width,i=e.height,d=t.data,p=e.data,m=function(t,e,r,n,i){return e===n?r:Math.round((t-e)*i+(n-t)*r)},o=function(t,e,r,n,i,o,a,s){var u=4*(a*c+n)+e,f=4*(a*c+i)+e,l=m(r,n,d[u],i,d[f]);if(s===a)p[t+e]=l;else{f=4*(s*c+i)+e;var h=m(r,n,d[u=4*(s*c+n)+e],i,d[f]);p[t+e]=m(o,a,l,s,h)}},a=0;a<i;a++)for(var s=0;s<n;s++){var u=4*(a*n+s),f=s*c/n,l=Math.floor(f),h=Math.min(Math.ceil(f),c-1),b=a*r/i,_=Math.floor(b),g=Math.min(Math.ceil(b),r-1);o(u,0,f,l,h,b,_,g),o(u,1,f,l,h,b,_,g),o(u,2,f,l,h,b,_,g),o(u,3,f,l,h,b,_,g)}},_interpolate2D:function(t,e,r,n){for(var i=t.data,o=e.data,a=t.width,s=t.height,u=e.width,f=e.height,l=Math.max(1,Math.floor(a/u)),h=u*l,c=Math.max(1,Math.floor(s/f)),d=f*c,p=rt.alloc(h*s*4),m=0;m<s;m++)for(var b=0;b<h;b++)for(var _=b*(a-1)/h,g=Math.floor(_),y=_-g,v=4*(m*a+g),w=4*(m*h+b),E=0;E<4;E++){var x=v+E,k=0<g?i[x-4]:2*i[x]-i[x+4],S=i[x],j=i[x+4],A=g<a-2?i[x+8]:2*i[x+4]-i[x];p[w+E]=n(k,S,j,A,y)}for(var I=rt.alloc(h*d*4),T=0;T<d;T++)for(var O=0;O<h;O++)for(var P=T*(s-1)/d,M=Math.floor(P),R=P-M,L=4*(M*h+O),C=4*(T*h+O),B=0;B<4;B++){var N=L+B,D=0<M?p[N-4*h]:2*p[N]-p[N+4*h],U=p[N],F=p[N+4*h],z=M<s-2?p[N+8*h]:2*p[N+4*h]-p[N];I[C+B]=n(D,U,F,z,R)}var H=l*c;if(1<H)for(var G=0;G<f;G++)for(var W=0;W<u;W++){for(var q=0,Z=0,Y=0,V=0,X=0,J=0;J<c;J++)for(var K=G*c+J,Q=0;Q<l;Q++){var $=4*(K*h+(W*l+Q)),tt=I[3+$];tt&&(q+=I[$],Z+=I[1+$],Y+=I[2+$],X++),V+=tt}var et=4*(G*u+W);o[et]=X?Math.round(q/X):0,o[1+et]=X?Math.round(Z/X):0,o[2+et]=X?Math.round(Y/X):0,o[3+et]=Math.round(V/H)}else e.data=I},bicubicInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,function(t,e,r,n,i){var o=n-r-t+e,a=t-e-o,s=r-t,u=e;return Math.max(0,Math.min(255,o*(i*i*i)+i*i*a+s*i+u))})},hermiteInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,function(t,e,r,n,i){var o=e,a=.5*(r-t),s=t-2.5*e+2*r-.5*n,u=.5*(n-t)+1.5*(e-r);return Math.max(0,Math.min(255,Math.round(((u*i+s)*i+a)*i+o)))})},bezierInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,function(t,e,r,n,i){var o=1-i,a=e*o*o*o,s=3*(e+(r-t)/4)*o*o*i,u=3*(r-(n-e)/4)*o*i*i,f=r*i*i*i;return Math.max(0,Math.min(255,Math.round(a+s+u+f)))})}}}).call(this,t("buffer").Buffer)},{buffer:11}],133:[function(t,e,r){(function(k){"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 e=Math.round(t/90)%4;if(0!==(e+=e<0?4:0)){var r,n=this.bitmap.data,i=n.length,o=k.allocUnsafe(i);if(2===e)for(var a=0;a<i;a+=4)r=n.readUInt32BE(a,!0),o.writeUInt32BE(r,i-a-4,!0);else!function(t,e,r){var n,i,o,a,s=r?-4:4,u=r?e.length-4:0;for(i=0;i<t.width;i++)for(o=t.height-1;0<=o;o--)a=t.width*o+i<<2,n=t.data.readUInt32BE(a,!0),e.writeUInt32BE(n,u,!0),u+=s}(this.bitmap,o,1===e),r=this.bitmap.width,this.bitmap.width=this.bitmap.height,this.bitmap.height=r;this.bitmap.data=o}}r.default=function(){return{rotate:function(t,e,r){return null==e&&(e=!0),"function"==typeof e&&void 0===r&&(r=e,e=!0),"number"!=typeof t?n.throwError.call(this,"deg must be a number",r):"boolean"!=typeof e&&"string"!=typeof e?n.throwError.call(this,"mode must be a boolean or a string",r):(t%90==0&&!1===Boolean(e)?i.call(this,t,r):function(t,e){var r=(t%=360)*Math.PI/180,n=Math.cos(r),i=Math.sin(r),o=this.bitmap.width,a=this.bitmap.height;if(!0===e||"string"==typeof e){(o=Math.ceil(Math.abs(this.bitmap.width*n)+Math.abs(this.bitmap.height*i))+1)%2!=0&&o++,(a=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*n))+1)%2!=0&&a++;var s=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)});var u=Math.max(o,a,this.bitmap.width,this.bitmap.height);this.resize(u,u,e),this.blit(s,this.bitmap.width/2-s.bitmap.width/2,this.bitmap.height/2-s.bitmap.height/2)}var f=this.bitmap.width,l=this.bitmap.height,h=k.alloc(this.bitmap.data.length);function c(r,n){return function(t,e){return{x:t+r,y:e+n}}}for(var d=c(-f/2,-l/2),p=c(f/2+.5,l/2+.5),m=1;m<=l;m++)for(var b=1;b<=f;b++){var _=d(b,m),g=p(n*_.x-i*_.y,n*_.y+i*_.x),y=f*(m-1)+b-1<<2;if(0<=g.x&&g.x<f&&0<=g.y&&g.y<l){var v=(f*(0|g.y)+g.x|0)<<2,w=this.bitmap.data.readUInt32BE(v);h.writeUInt32BE(w,y)}else h.writeUInt32BE(this._background,y)}if(this.bitmap.data=h,!0===e||"string"==typeof e){var E=f/2-o/2,x=l/2-a/2;this.crop(E,x,o,a)}}.call(this,t,e,r),(0,n.isNodePattern)(r)&&r.call(this,null,this),this)}}},e.exports=r.default}).call(this,t("buffer").Buffer)},{"@jimp/utils":139,buffer:11,"core-js/modules/es6.object.define-property":257}],134:[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 o=t("@jimp/utils");r.default=function(){return{scale:function(t,e,r){if("number"!=typeof t)return o.throwError.call(this,"f must be a number",r);if(t<0)return o.throwError.call(this,"f must be a positive number",r);"function"==typeof e&&void 0===r&&(r=e,e=null);var n=this.bitmap.width*t,i=this.bitmap.height*t;return this.resize(n,i,e),(0,o.isNodePattern)(r)&&r.call(this,null,this),this},scaleToFit:function(t,e,r,n){if("number"!=typeof t||"number"!=typeof e)return o.throwError.call(this,"w and h must be numbers",n);"function"==typeof r&&void 0===n&&(n=r,r=null);var i=t/e>this.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<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var x=[i.default,o.default,a.default,s.default,u.default,f.default,l.default,h.default,c.default,d.default,p.default,m.default,b.default,_.default,g.default,y.default,v.default];r.default=function(r){var t=x.map(function(t){var e=t(r)||{};return e.class||e.constants||(e={class:e}),e});return n.mergeDeep.apply(void 0,E(t))},e.exports=r.default},{"@jimp/plugin-blit":114,"@jimp/plugin-blur":116,"@jimp/plugin-color":117,"@jimp/plugin-contain":118,"@jimp/plugin-cover":119,"@jimp/plugin-crop":120,"@jimp/plugin-displace":121,"@jimp/plugin-dither":122,"@jimp/plugin-flip":123,"@jimp/plugin-gaussian":124,"@jimp/plugin-invert":125,"@jimp/plugin-mask":126,"@jimp/plugin-normalize":127,"@jimp/plugin-print":128,"@jimp/plugin-resize":130,"@jimp/plugin-rotate":133,"@jimp/plugin-scale":134,"core-js/modules/es6.array.from":247,"core-js/modules/es6.array.is-array":249,"core-js/modules/es6.array.map":251,"core-js/modules/es6.date.to-string":252,"core-js/modules/es6.object.define-property":257,"core-js/modules/es6.regexp.to-string":266,"core-js/modules/es6.string.iterator":268,"core-js/modules/es6.symbol":269,"core-js/modules/es7.symbol.async-iterator":276,"core-js/modules/web.dom.iterable":277,timm:345}],136:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("core-js/modules/es6.object.define-property");var n=t("pngjs"),i=t("@jimp/utils");function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a="image/png";r.default=function(){return{mime:o({},a,["png"]),constants:{MIME_PNG:a,PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:o({},a,!0),decoders:o({},a,n.PNG.sync.read),encoders:o({},a,function(t){var e=new n.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,n.PNG.sync.write(e,{width:t.bitmap.width,height:t.bitmap.height,deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:"number"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})}),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return"number"!=typeof t?i.throwError.call(this,"l must be a number",e):t<0||9<t?i.throwError.call(this,"l must be a number 0 - 9",e):(this._deflateLevel=Math.round(t),(0,i.isNodePattern)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return"number"!=typeof t?i.throwError.call(this,"s must be a number",e):t<0||3<t?i.throwError.call(this,"s must be a number 0 - 3",e):(this._deflateStrategy=Math.round(t),(0,i.isNodePattern)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return"number"!=typeof t?i.throwError.call(this,"n must be a number",e):t<-1||4<t?i.throwError.call(this,"n must be -1 (auto) or a number 0 - 4",e):(this._filterType=Math.round(t),(0,i.isNodePattern)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return"number"!=typeof t?i.throwError.call(this,"s must be a number",e):0!==t&&2!==t&&4!==t&&6!==t?i.throwError.call(this,"s must be a number 0, 2, 4, 6.",e):(this._colorType=Math.round(t),(0,i.isNodePattern)(e)&&e.call(this,null,this),this)}}}},e.exports=r.default},{"@jimp/utils":139,"core-js/modules/es6.object.define-property":257,pngjs:342}],137:[function(n,a,s){(function(i){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,n("core-js/modules/es6.object.define-property");var t,o=(t=n("utif"))&&t.__esModule?t:{default:t};function e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var r="image/tiff";s.default=function(){return{mime:e({},r,["tiff","tif"]),constants:{MIME_TIFF:r},decoders:e({},r,function(t){var e=o.default.decode(t),r=e[0];o.default.decodeImages(t,e);var n=o.default.toRGBA8(r);return{data:i.from(n),width:r.t256[0],height:r.t257[0]}}),encoders:e({},r,function(t){var e=o.default.encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return i.from(e)})}},a.exports=s.default}).call(this,n("buffer").Buffer)},{buffer:11,"core-js/modules/es6.object.define-property":257,utif:348}],138:[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("timm"),i=f(t("@jimp/jpeg")),o=f(t("@jimp/png")),a=f(t("@jimp/bmp")),s=f(t("@jimp/tiff")),u=f(t("@jimp/gif"));function f(t){return t&&t.__esModule?t:{default:t}}r.default=function(){return(0,n.mergeDeep)((0,i.default)(),(0,o.default)(),(0,a.default)(),(0,s.default)(),(0,u.default)())},e.exports=r.default},{"@jimp/bmp":101,"@jimp/gif":112,"@jimp/jpeg":113,"@jimp/png":136,"@jimp/tiff":137,"core-js/modules/es6.object.define-property":257,timm:345}],139:[function(t,e,r){"use strict";t("core-js/modules/es6.object.define-property"),Object.defineProperty(r,"__esModule",{value:!0}),r.isNodePattern=function(t){if(void 0===t)return!1;if("function"==typeof t)return!0;throw new TypeError("Callback must be a function")},r.throwError=function(t,e){"string"==typeof t&&(t=new Error(t));if("function"!=typeof e)throw t;return e.call(this,t)},r.scan=function(t,e,r,n,i,o){e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i);for(var a=r;a<r+i;a++)for(var s=e;s<e+n;s++){var u=t.bitmap.width*a+s<<2;o.call(t,s,a,u)}return t}},{"core-js/modules/es6.object.define-property":257}],140:[function(t,e,r){var n=t("./src/converter");function i(t,e){var r=new n(t,e);return function(t){return r.convert(t)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",e.exports=i},{"./src/converter":141}],141:[function(t,e,r){"use strict";function n(t,e){if(!(t&&e&&t.length&&e.length))throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=e}n.prototype.convert=function(t){var e,r,n,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=t.length,u="string"==typeof t?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e<s;e++)i[e]=this.srcAlphabet.indexOf(t[e]);do{for(e=n=r=0;e<s;e++)a<=(r=r*o+i[e])?(i[n++]=parseInt(r/a,10),r%=a):0<n&&(i[n++]=0);s=n,u=this.dstAlphabet.slice(r,r+1).concat(u)}while(0!==n);return u},n.prototype.isValid=function(t){for(var e=0;e<t.length;++e)if(-1===this.srcAlphabet.indexOf(t[e]))return!1;return!0},e.exports=n},{}],142:[function(t,e,r){var n=t("./lib/encoder"),i=t("./lib/decoder");e.exports={encode:n,decode:i}},{"./lib/decoder":143,"./lib/encoder":144}],143:[function(t,n,e){(function(r){function e(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}e.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},e.prototype.parseRGBA=function(){var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new r(e),this[t]()},e.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,r=0<=this.height?this.height-1:-this.height;for(r=this.height-1;0<=r;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++)for(var o=this.buffer.readUInt8(this.pos++),a=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var u=this.palette[o>>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<this.data.length;){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++);if(0==n){if(0==i){this.bottom_up?t--:t++,r=t*this.width*4,e=!1;continue}if(1==i)break;if(2==i){var o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++);this.bottom_up?t-=a:t+=a,r+=a*this.width*4+4*o}else{for(var s=this.buffer.readUInt8(this.pos++),u=0;u<i;u++)f.call(this,e?15&s:(240&s)>>4),1&u&&u+1<i&&(s=this.buffer.readUInt8(this.pos++)),e=!e;1==(i+1>>1&1)&&this.pos++}}else for(u=0;u<n;u++)f.call(this,e?15&i:(240&i)>>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<l;o++){i=this.buffer.readUInt8(this.pos++),r=c*this.width*4+2*o*4;var d=i>>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<this.data.length;){var e=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++);if(0==e){if(0==n){this.bottom_up?t--:t++,r=t*this.width*4;continue}if(1==n)break;if(2==n){var i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.bottom_up?t-=o:t+=o,r+=o*this.width*4+4*i}else{for(var a=0;a<n;a++){var s=this.buffer.readUInt8(this.pos++);u.call(this,s)}!0&n&&this.pos++}}else for(a=0;a<e;a++)u.call(this,n)}function u(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 f=this.width%4;for(o=this.height-1;0<=o;o--){var l=this.bottom_up?o:this.height-1-o;for(i=0;i<this.width;i++){n=this.buffer.readUInt8(this.pos++),r=l*this.width*4+4*i;if(n<this.palette.length){var h=this.palette[n];this.data[r]=0,this.data[r+1]=h.blue,this.data[r+2]=h.green,this.data[r+3]=h.red}else this.data[r]=0,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}0!=f&&(this.pos+=4-f)}}},e.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;0<=r;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>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<this.width;o++){var a=this.buffer.readUInt16LE(this.pos);this.pos+=2;var s=(a&this.maskBlue)<<e[0],u=(a&this.maskGreen)>>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;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=e*this.width*4+4*r;this.data[a]=0,this.data[1+a]=n,this.data[2+a]=i,this.data[3+a]=o}this.pos+=this.width%4}},e.prototype.bit32=function(){if(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 t=this.height-1;0<=t;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.buffer.readUInt8(this.pos++),i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}}else for(t=this.height-1;0<=t;t--)for(e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){i=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++),a=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++),s=e*this.width*4+4*r;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=o,this.data[s+3]=a}},e.prototype.getData=function(){return this.data},n.exports=function(t){return new e(t)}}).call(this,t("buffer").Buffer)},{buffer:11}],144:[function(t,e,r){(function(s){function r(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}r.prototype.encode=function(){var t=new s(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,r=3*this.width+this.extraBytes,n=0;n<this.height;n++){for(var i=0;i<this.width;i++){var o=this.pos+n*r+3*i;e++,t[o]=this.buffer[e++],t[o+1]=this.buffer[e++],t[o+2]=this.buffer[e++]}if(0<this.extraBytes){var a=this.pos+n*r+3*this.width;t.fill(0,a,a+this.extraBytes)}}return t},e.exports=function(t,e){return void 0===e&&(e=100),{data:new r(t).encode(),width:t.width,height:t.height}}}).call(this,t("buffer").Buffer)},{buffer:11}],145:[function(t,e,r){var n=t("buffer").Buffer;e.exports=function(t,e){if(n.isBuffer(t)&&n.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}}},{buffer:11}],146:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],147:[function(t,e,r){var n=t("./_wks")("unscopables"),i=Array.prototype;null==i[n]&&t("./_hide")(i,n,{}),e.exports=function(t){i[n][t]=!0}},{"./_hide":175,"./_wks":240}],148:[function(t,e,r){e.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},{}],149:[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":183}],150:[function(t,e,r){"use strict";var l=t("./_to-object"),h=t("./_to-absolute-index"),c=t("./_to-length");e.exports=[].copyWithin||function(t,e,r){var n=l(this),i=c(n.length),o=h(t,i),a=h(e,i),s=2<arguments.length?r:void 0,u=Math.min((void 0===s?i:h(s,i))-a,i-o),f=1;for(a<o&&o<a+u&&(f=-1,a+=u-1,o+=u-1);0<u--;)a in n?n[o]=n[a]:delete n[o],o+=f,a+=f;return n}},{"./_to-absolute-index":226,"./_to-length":230,"./_to-object":231}],151:[function(t,e,r){"use strict";var f=t("./_to-object"),l=t("./_to-absolute-index"),h=t("./_to-length");e.exports=function(t,e,r){for(var n=f(this),i=h(n.length),o=arguments.length,a=l(1<o?e:void 0,i),s=2<o?r:void 0,u=void 0===s?i:l(s,i);a<u;)n[a++]=t;return n}},{"./_to-absolute-index":226,"./_to-length":230,"./_to-object":231}],152:[function(t,e,r){var u=t("./_to-iobject"),f=t("./_to-length"),l=t("./_to-absolute-index");e.exports=function(s){return function(t,e,r){var n,i=u(t),o=f(i.length),a=l(r,o);if(s&&e!=e){for(;a<o;)if((n=i[a++])!=n)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===e)return s||a||0;return!s&&-1}}},{"./_to-absolute-index":226,"./_to-iobject":229,"./_to-length":230}],153:[function(t,e,r){var y=t("./_ctx"),v=t("./_iobject"),w=t("./_to-object"),E=t("./_to-length"),n=t("./_array-species-create");e.exports=function(h,t){var c=1==h,d=2==h,p=3==h,m=4==h,b=6==h,_=5==h||b,g=t||n;return function(t,e,r){for(var n,i,o=w(t),a=v(o),s=y(e,r,3),u=E(a.length),f=0,l=c?g(t,u):d?g(t,0):void 0;f<u;f++)if((_||f in a)&&(i=s(n=a[f],f,o),h))if(c)l[f]=i;else if(i)switch(h){case 3:return!0;case 5:return n;case 6:return f;case 2:l.push(n)}else if(m)return!1;return b?-1:p||m?m:l}}},{"./_array-species-create":155,"./_ctx":161,"./_iobject":180,"./_to-length":230,"./_to-object":231}],154:[function(t,e,r){var n=t("./_is-object"),i=t("./_is-array"),o=t("./_wks")("species");e.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},{"./_is-array":182,"./_is-object":183,"./_wks":240}],155:[function(t,e,r){var n=t("./_array-species-constructor");e.exports=function(t,e){return new(n(t))(e)}},{"./_array-species-constructor":154}],156:[function(t,e,r){"use strict";var o=t("./_a-function"),a=t("./_is-object"),s=t("./_invoke"),u=[].slice,f={};e.exports=Function.bind||function(e){var r=o(this),n=u.call(arguments,1),i=function(){var t=n.concat(u.call(arguments));return this instanceof i?function(t,e,r){if(!(e in f)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";f[e]=Function("F,a","return new F("+n.join(",")+")")}return f[e](t,r)}(r,t.length,t):s(r,t,e)};return a(r.prototype)&&(i.prototype=r.prototype),i}},{"./_a-function":146,"./_invoke":179,"./_is-object":183}],157:[function(t,e,r){var i=t("./_cof"),o=t("./_wks")("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:a?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},{"./_cof":158,"./_wks":240}],158:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],159:[function(t,e,r){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},{}],160:[function(t,e,r){"use strict";var n=t("./_object-dp"),i=t("./_property-desc");e.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},{"./_object-dp":197,"./_property-desc":211}],161:[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":146}],162:[function(t,e,r){e.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},{}],163:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":169}],164:[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":173,"./_is-object":183}],165:[function(t,e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],166:[function(t,e,r){var s=t("./_object-keys"),u=t("./_object-gops"),f=t("./_object-pie");e.exports=function(t){var e=s(t),r=u.f;if(r)for(var n,i=r(t),o=f.f,a=0;i.length>a;)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);h<o;h++)if((u=e?l(m(a=t[h])[0],a[1]):l(t[h]))===g||u===y)return u}else for(s=f.call(t);!(a=s.next()).done;)if((u=d(s,l,a.value,e))===g||u===y)return u}).BREAK=g,r.RETURN=y},{"./_an-object":149,"./_ctx":161,"./_is-array-iter":181,"./_iter-call":185,"./_to-length":230,"./core.get-iterator-method":241}],173:[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)},{}],174:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],175:[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":163,"./_object-dp":197,"./_property-desc":211}],176:[function(t,e,r){var n=t("./_global").document;e.exports=n&&n.documentElement},{"./_global":173}],177:[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":163,"./_dom-create":164,"./_fails":169}],178:[function(t,e,r){var o=t("./_is-object"),a=t("./_set-proto").set;e.exports=function(t,e,r){var n,i=e.constructor;return i!==r&&"function"==typeof i&&(n=i.prototype)!==r.prototype&&o(n)&&a&&a(t,n),t}},{"./_is-object":183,"./_set-proto":214}],179:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],180:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":158}],181:[function(t,e,r){var n=t("./_iterators"),i=t("./_wks")("iterator"),o=Array.prototype;e.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},{"./_iterators":190,"./_wks":240}],182:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":158}],183:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],184:[function(t,e,r){var n=t("./_is-object"),i=t("./_cof"),o=t("./_wks")("match");e.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},{"./_cof":158,"./_is-object":183,"./_wks":240}],185:[function(t,e,r){var o=t("./_an-object");e.exports=function(e,t,r,n){try{return n?t(o(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},{"./_an-object":149}],186:[function(t,e,r){"use strict";var n=t("./_object-create"),i=t("./_property-desc"),o=t("./_set-to-string-tag"),a={};t("./_hide")(a,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},{"./_hide":175,"./_object-create":196,"./_property-desc":211,"./_set-to-string-tag":216,"./_wks":240}],187:[function(t,e,r){"use strict";function y(){return this}var v=t("./_library"),w=t("./_export"),E=t("./_redefine"),x=t("./_hide"),k=t("./_iterators"),S=t("./_iter-create"),j=t("./_set-to-string-tag"),A=t("./_object-gpo"),I=t("./_wks")("iterator"),T=!([].keys&&"next"in[].keys()),O="values";e.exports=function(t,e,r,n,i,o,a){S(r,e,n);function s(t){if(!T&&t in p)return p[t];switch(t){case"keys":case O:return function(){return new r(this,t)}}return function(){return new r(this,t)}}var u,f,l,h=e+" Iterator",c=i==O,d=!1,p=t.prototype,m=p[I]||p["@@iterator"]||i&&p[i],b=m||s(i),_=i?c?s("entries"):b:void 0,g="Array"==e&&p.entries||m;if(g&&(l=A(g.call(new t)))!==Object.prototype&&l.next&&(j(l,h,!0),v||"function"==typeof l[I]||x(l,I,y)),c&&m&&m.name!==O&&(d=!0,b=function(){return m.call(this)}),v&&!a||!T&&!d&&p[I]||x(p,I,b),k[e]=b,k[h]=y,i)if(u={values:c?b:s(O),keys:o?b:s("keys"),entries:_},a)for(f in u)f in p||E(p,f,u[f]);else w(w.P+w.F*(T||d),e,u);return u}},{"./_export":167,"./_hide":175,"./_iter-create":186,"./_iterators":190,"./_library":191,"./_object-gpo":203,"./_redefine":213,"./_set-to-string-tag":216,"./_wks":240}],188:[function(t,e,r){var o=t("./_wks")("iterator"),a=!1;try{var n=[7][o]();n.return=function(){a=!0},Array.from(n,function(){throw 2})}catch(t){}e.exports=function(t,e){if(!e&&!a)return!1;var r=!1;try{var n=[7],i=n[o]();i.next=function(){return{done:r=!0}},n[o]=function(){return i},t(n)}catch(t){}return r}},{"./_wks":240}],189:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],190:[function(t,e,r){e.exports={}},{}],191:[function(t,e,r){e.exports=!1},{}],192:[function(t,e,r){function n(t){s(t,i,{value:{i:"O"+ ++u,w:{}}})}var i=t("./_uid")("meta"),o=t("./_is-object"),a=t("./_has"),s=t("./_object-dp").f,u=0,f=Object.isExtensible||function(){return!0},l=!t("./_fails")(function(){return f(Object.preventExtensions({}))}),h=e.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!f(t))return"F";if(!e)return"E";n(t)}return t[i].i},getWeak:function(t,e){if(!a(t,i)){if(!f(t))return!0;if(!e)return!1;n(t)}return t[i].w},onFreeze:function(t){return l&&h.NEED&&f(t)&&!a(t,i)&&n(t),t}}},{"./_fails":169,"./_has":174,"./_is-object":183,"./_object-dp":197,"./_uid":236}],193:[function(t,e,r){var s=t("./_global"),u=t("./_task").set,f=s.MutationObserver||s.WebKitMutationObserver,l=s.process,h=s.Promise,c="process"==t("./_cof")(l);e.exports=function(){function t(){var t,e;for(c&&(t=l.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?i():n=void 0,t}}n=void 0,t&&t.enter()}var r,n,i;if(c)i=function(){l.nextTick(t)};else if(!f||s.navigator&&s.navigator.standalone)if(h&&h.resolve){var e=h.resolve(void 0);i=function(){e.then(t)}}else i=function(){u.call(s,t)};else{var o=!0,a=document.createTextNode("");new f(t).observe(a,{characterData:!0}),i=function(){a.data=o=!o}}return function(t){var e={fn:t,next:void 0};n&&(n.next=e),r||(r=e,i()),n=e}}},{"./_cof":158,"./_global":173,"./_task":225}],194:[function(t,e,r){"use strict";var i=t("./_a-function");function n(t){var r,n;this.promise=new t(function(t,e){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=t,n=e}),this.resolve=i(r),this.reject=i(n)}e.exports.f=function(t){return new n(t)}},{"./_a-function":146}],195:[function(t,e,r){"use strict";var c=t("./_object-keys"),d=t("./_object-gops"),p=t("./_object-pie"),m=t("./_to-object"),b=t("./_iobject"),i=Object.assign;e.exports=!i||t("./_fails")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=i({},t)[r]||Object.keys(i({},e)).join("")!=n})?function(t,e){for(var r=m(t),n=arguments.length,i=1,o=d.f,a=p.f;i<n;)for(var s,u=b(arguments[i++]),f=o?c(u).concat(o(u)):c(u),l=f.length,h=0;h<l;)a.call(u,s=f[h++])&&(r[s]=u[s]);return r}:i},{"./_fails":169,"./_iobject":180,"./_object-gops":202,"./_object-keys":205,"./_object-pie":206,"./_to-object":231}],196:[function(n,t,e){function i(){}var o=n("./_an-object"),a=n("./_object-dps"),s=n("./_enum-bug-keys"),u=n("./_shared-key")("IE_PROTO"),f="prototype",l=function(){var t,e=n("./_dom-create")("iframe"),r=s.length;for(e.style.display="none",n("./_html").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.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;o<i;)a.f(t,r=n[o++],e[r]);return t}},{"./_an-object":149,"./_descriptors":163,"./_object-dp":197,"./_object-keys":205}],199:[function(t,e,r){var n=t("./_object-pie"),i=t("./_property-desc"),o=t("./_to-iobject"),a=t("./_to-primitive"),s=t("./_has"),u=t("./_ie8-dom-define"),f=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?f:function(t,e){if(t=o(t),e=a(e,!0),u)try{return f(t,e)}catch(t){}if(s(t,e))return i(!n.f.call(t,e),t[e])}},{"./_descriptors":163,"./_has":174,"./_ie8-dom-define":177,"./_object-pie":206,"./_property-desc":211,"./_to-iobject":229,"./_to-primitive":232}],200:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_object-gopn").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},{"./_object-gopn":201,"./_to-iobject":229}],201:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},{"./_enum-bug-keys":165,"./_object-keys-internal":204}],202:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],203:[function(t,e,r){var n=t("./_has"),i=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},{"./_has":174,"./_shared-key":217,"./_to-object":231}],204:[function(t,e,r){var a=t("./_has"),s=t("./_to-iobject"),u=t("./_array-includes")(!1),f=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,n=s(t),i=0,o=[];for(r in n)r!=f&&a(n,r)&&o.push(r);for(;e.length>i;)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<i;)l.call(r,e=n[o++])&&a.push(s?[e,r[e]]:r[e]);return a}}},{"./_object-keys":205,"./_object-pie":206,"./_to-iobject":229}],209:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],210:[function(t,e,r){var n=t("./_an-object"),i=t("./_is-object"),o=t("./_new-promise-capability");e.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},{"./_an-object":149,"./_is-object":183,"./_new-promise-capability":194}],211:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],212:[function(t,e,r){var i=t("./_redefine");e.exports=function(t,e,r){for(var n in e)i(t,n,e[n],r);return t}},{"./_redefine":213}],213:[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":159,"./_global":173,"./_has":174,"./_hide":175,"./_uid":236}],214:[function(e,t,r){function i(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var n=e("./_is-object"),o=e("./_an-object");t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,n){try{(n=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),r=!(t instanceof Array)}catch(t){r=!0}return function(t,e){return i(t,e),r?t.__proto__=e:n(t,e),t}}({},!1):void 0),check:i}},{"./_an-object":149,"./_ctx":161,"./_is-object":183,"./_object-gopd":199}],215:[function(t,e,r){"use strict";var n=t("./_global"),i=t("./_object-dp"),o=t("./_descriptors"),a=t("./_wks")("species");e.exports=function(t){var e=n[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},{"./_descriptors":163,"./_global":173,"./_object-dp":197,"./_wks":240}],216:[function(t,e,r){var n=t("./_object-dp").f,i=t("./_has"),o=t("./_wks")("toStringTag");e.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},{"./_has":174,"./_object-dp":197,"./_wks":240}],217:[function(t,e,r){var n=t("./_shared")("keys"),i=t("./_uid");e.exports=function(t){return n[t]||(n[t]=i(t))}},{"./_shared":218,"./_uid":236}],218:[function(t,e,r){var n=t("./_core"),i=t("./_global"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:t("./_library")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":159,"./_global":173,"./_library":191}],219:[function(t,e,r){var i=t("./_an-object"),o=t("./_a-function"),a=t("./_wks")("species");e.exports=function(t,e){var r,n=i(t).constructor;return void 0===n||null==(r=i(n)[a])?e:o(r)}},{"./_a-function":146,"./_an-object":149,"./_wks":240}],220:[function(t,e,r){"use strict";var n=t("./_fails");e.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},{"./_fails":169}],221:[function(t,e,r){var u=t("./_to-integer"),f=t("./_defined");e.exports=function(s){return function(t,e){var r,n,i=String(f(t)),o=u(e),a=i.length;return o<0||a<=o?s?"":void 0:(r=i.charCodeAt(o))<55296||56319<r||o+1===a||(n=i.charCodeAt(o+1))<56320||57343<n?s?i.charAt(o):r:s?i.slice(o,o+2):n-56320+(r-55296<<10)+65536}}},{"./_defined":162,"./_to-integer":228}],222:[function(t,e,r){var n=t("./_is-regexp"),i=t("./_defined");e.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},{"./_defined":162,"./_is-regexp":184}],223:[function(t,e,r){function n(t,e,r){var n={},i=s(function(){return!!u[t]()||"…"!="…"[t]()}),o=n[t]=i?e(h):u[t];r&&(n[r]=o),a(a.P+a.F*i,"String",n)}var a=t("./_export"),i=t("./_defined"),s=t("./_fails"),u=t("./_string-ws"),o="["+u+"]",f=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),h=n.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(f,"")),2&e&&(t=t.replace(l,"")),t};e.exports=n},{"./_defined":162,"./_export":167,"./_fails":169,"./_string-ws":224}],224:[function(t,e,r){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},{}],225:[function(t,e,r){function n(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}}function i(t){n.call(t.data)}var o,a,s,u=t("./_ctx"),f=t("./_invoke"),l=t("./_html"),h=t("./_dom-create"),c=t("./_global"),d=c.process,p=c.setImmediate,m=c.clearImmediate,b=c.MessageChannel,_=c.Dispatch,g=0,y={},v="onreadystatechange";p&&m||(p=function(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return y[++g]=function(){f("function"==typeof t?t:Function(t),e)},o(g),g},m=function(t){delete y[t]},"process"==t("./_cof")(d)?o=function(t){d.nextTick(u(n,t,1))}:_&&_.now?o=function(t){_.now(u(n,t,1))}:b?(s=(a=new b).port2,a.port1.onmessage=i,o=u(s.postMessage,s,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(t){c.postMessage(t+"","*")},c.addEventListener("message",i,!1)):o=v in h("script")?function(t){l.appendChild(h("script"))[v]=function(){l.removeChild(this),n.call(t)}}:function(t){setTimeout(u(n,t,1),0)}),e.exports={set:p,clear:m}},{"./_cof":158,"./_ctx":161,"./_dom-create":164,"./_global":173,"./_html":176,"./_invoke":179}],226:[function(t,e,r){var n=t("./_to-integer"),i=Math.max,o=Math.min;e.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},{"./_to-integer":228}],227:[function(t,e,r){var n=t("./_to-integer"),i=t("./_to-length");e.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":228,"./_to-length":230}],228:[function(t,e,r){var n=Math.ceil,i=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(0<t?i:n)(t)}},{}],229:[function(t,e,r){var n=t("./_iobject"),i=t("./_defined");e.exports=function(t){return n(i(t))}},{"./_defined":162,"./_iobject":180}],230:[function(t,e,r){var n=t("./_to-integer"),i=Math.min;e.exports=function(t){return 0<t?i(n(t),9007199254740991):0}},{"./_to-integer":228}],231:[function(t,e,r){var n=t("./_defined");e.exports=function(t){return Object(n(t))}},{"./_defined":162}],232:[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":183}],233:[function(t,e,r){"use strict";if(t("./_descriptors")){var _=t("./_library"),g=t("./_global"),y=t("./_fails"),v=t("./_export"),w=t("./_typed"),n=t("./_typed-buffer"),p=t("./_ctx"),E=t("./_an-instance"),i=t("./_property-desc"),x=t("./_hide"),o=t("./_redefine-all"),a=t("./_to-integer"),k=t("./_to-length"),S=t("./_to-index"),s=t("./_to-absolute-index"),u=t("./_to-primitive"),f=t("./_has"),j=t("./_classof"),A=t("./_is-object"),m=t("./_to-object"),b=t("./_is-array-iter"),I=t("./_object-create"),T=t("./_object-gpo"),O=t("./_object-gopn").f,P=t("./core.get-iterator-method"),l=t("./_uid"),h=t("./_wks"),c=t("./_array-methods"),d=t("./_array-includes"),M=t("./_species-constructor"),R=t("./es6.array.iterator"),L=t("./_iterators"),C=t("./_iter-detect"),B=t("./_set-species"),N=t("./_array-fill"),D=t("./_array-copy-within"),U=t("./_object-dp"),F=t("./_object-gopd"),z=U.f,H=F.f,G=g.RangeError,W=g.TypeError,q=g.Uint8Array,Z="ArrayBuffer",Y="Shared"+Z,V="BYTES_PER_ELEMENT",X="prototype",J=Array[X],K=n.ArrayBuffer,Q=n.DataView,$=c(0),tt=c(2),et=c(3),rt=c(4),nt=c(5),it=c(6),ot=d(!0),at=d(!1),st=R.values,ut=R.keys,ft=R.entries,lt=J.lastIndexOf,ht=J.reduce,ct=J.reduceRight,dt=J.join,pt=J.sort,mt=J.slice,bt=J.toString,_t=J.toLocaleString,gt=h("iterator"),yt=h("toStringTag"),vt=l("typed_constructor"),wt=l("def_constructor"),Et=w.CONSTR,xt=w.TYPED,kt=w.VIEW,St="Wrong length!",jt=c(1,function(t,e){return Pt(M(t,t[wt]),e)}),At=y(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),It=!!q&&!!q[X].set&&y(function(){new q(1).set({})}),Tt=function(t,e){var r=a(t);if(r<0||r%e)throw G("Wrong offset!");return r},Ot=function(t){if(A(t)&&xt in t)return t;throw W(t+" is not a typed array!")},Pt=function(t,e){if(!(A(t)&&vt in t))throw W("It is not a typed array constructor!");return new t(e)},Mt=function(t,e){return Rt(M(t,t[wt]),e)},Rt=function(t,e){for(var r=0,n=e.length,i=Pt(t,n);r<n;)i[r]=e[r++];return i},Lt=function(t,e,r){z(t,e,{get:function(){return this._d[r]}})},Ct=function(t,e,r){var n,i,o,a,s,u,f=m(t),l=arguments.length,h=1<l?e:void 0,c=void 0!==h,d=P(f);if(null!=d&&!b(d)){for(u=d.call(f),o=[],n=0;!(s=u.next()).done;n++)o.push(s.value);f=o}for(c&&2<l&&(h=p(h,r,2)),n=0,i=k(f.length),a=Pt(this,i);n<i;n++)a[n]=c?h(f[n],n):f[n];return a},Bt=function(){for(var t=0,e=arguments.length,r=Pt(this,e);t<e;)r[t]=arguments[t++];return r},Nt=!!q&&y(function(){_t.call(new q(1))}),Dt=function(){return _t.apply(Nt?mt.call(Ot(this)):Ot(this),arguments)},Ut={copyWithin:function(t,e,r){return D.call(Ot(this),t,e,2<arguments.length?r:void 0)},every:function(t,e){return rt(Ot(this),t,1<arguments.length?e:void 0)},fill:function(t){return N.apply(Ot(this),arguments)},filter:function(t,e){return Mt(this,tt(Ot(this),t,1<arguments.length?e:void 0))},find:function(t,e){return nt(Ot(this),t,1<arguments.length?e:void 0)},findIndex:function(t,e){return it(Ot(this),t,1<arguments.length?e:void 0)},forEach:function(t,e){$(Ot(this),t,1<arguments.length?e:void 0)},indexOf:function(t,e){return at(Ot(this),t,1<arguments.length?e:void 0)},includes:function(t,e){return ot(Ot(this),t,1<arguments.length?e:void 0)},join:function(t){return dt.apply(Ot(this),arguments)},lastIndexOf:function(t){return lt.apply(Ot(this),arguments)},map:function(t,e){return jt(Ot(this),t,1<arguments.length?e:void 0)},reduce:function(t){return ht.apply(Ot(this),arguments)},reduceRight:function(t){return ct.apply(Ot(this),arguments)},reverse:function(){for(var t,e=Ot(this).length,r=Math.floor(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this},some:function(t,e){return et(Ot(this),t,1<arguments.length?e:void 0)},sort:function(t){return pt.call(Ot(this),t)},subarray:function(t,e){var r=Ot(this),n=r.length,i=s(t,n);return new(M(r,r[wt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,k((void 0===e?n:s(e,n))-i))}},Ft=function(t,e){return Mt(this,mt.call(Ot(this),t,e))},zt=function(t,e){Ot(this);var r=Tt(e,1),n=this.length,i=m(t),o=k(i.length),a=0;if(n<o+r)throw G(St);for(;a<o;)this[r+a]=i[a++]},Ht={entries:function(){return ft.call(Ot(this))},keys:function(){return ut.call(Ot(this))},values:function(){return st.call(Ot(this))}},Gt=function(t,e){return A(t)&&t[xt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Wt=function(t,e){return Gt(t,e=u(e,!0))?i(2,t[e]):H(t,e)},qt=function(t,e,r){return!(Gt(t,e=u(e,!0))&&A(r)&&f(r,"value"))||f(r,"get")||f(r,"set")||r.configurable||f(r,"writable")&&!r.writable||f(r,"enumerable")&&!r.enumerable?z(t,e,r):(t[e]=r.value,t)};Et||(F.f=Wt,U.f=qt),v(v.S+v.F*!Et,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:qt}),y(function(){bt.call({})})&&(bt=_t=function(){return dt.call(this)});var Zt=o({},Ut);o(Zt,Ht),x(Zt,gt,Ht.values),o(Zt,{slice:Ft,set:zt,constructor:function(){},toString:bt,toLocaleString:Dt}),Lt(Zt,"buffer","b"),Lt(Zt,"byteOffset","o"),Lt(Zt,"byteLength","l"),Lt(Zt,"length","e"),z(Zt,yt,{get:function(){return this[xt]}}),e.exports=function(t,h,e,i){function c(t,e){z(t,e,{get:function(){return function(t,e){var r=t._d;return r.v[n](e*h+r.o,At)}(this,e)},set:function(t){return function(t,e,r){var n=t._d;i&&(r=(r=Math.round(r))<0?0:255<r?255:255&r),n.v[o](e*h+n.o,r,At)}(this,e,t)},enumerable:!0})}var d=t+((i=!!i)?"Clamped":"")+"Array",n="get"+t,o="set"+t,p=g[d],a=p||{},r=p&&T(p),s=!p||!w.ABV,u={},f=p&&p[X];s?(p=e(function(t,e,r,n){E(t,p,d,"_d");var i,o,a,s,u=0,f=0;if(A(e)){if(!(e instanceof K||(s=j(e))==Z||s==Y))return xt in e?Rt(p,e):Ct.call(p,e);i=e,f=Tt(r,h);var l=e.byteLength;if(void 0===n){if(l%h)throw G(St);if((o=l-f)<0)throw G(St)}else if(l<(o=k(n)*h)+f)throw G(St);a=o/h}else a=S(e),i=new K(o=a*h);for(x(t,"_d",{b:i,o:f,l:o,e:a,v:new Q(i)});u<a;)c(t,u++)}),f=p[X]=I(Zt),x(f,"constructor",p)):y(function(){p(1)})&&y(function(){new p(-1)})&&C(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=e(function(t,e,r,n){var i;return E(t,p,d),A(e)?e instanceof K||(i=j(e))==Z||i==Y?void 0!==n?new a(e,Tt(r,h),n):void 0!==r?new a(e,Tt(r,h)):new a(e):xt in e?Rt(p,e):Ct.call(p,e):new a(S(e))}),$(r!==Function.prototype?O(a).concat(O(r)):O(a),function(t){t in p||x(p,t,a[t])}),p[X]=f,_||(f.constructor=p));var l=f[gt],m=!!l&&("values"==l.name||null==l.name),b=Ht.values;x(p,vt,!0),x(f,xt,d),x(f,kt,!0),x(f,wt,p),(i?new p(1)[yt]==d:yt in f)||z(f,yt,{get:function(){return d}}),u[d]=p,v(v.G+v.W+v.F*(p!=a),u),v(v.S,d,{BYTES_PER_ELEMENT:h}),v(v.S+v.F*y(function(){a.of.call(p,1)}),d,{from:Ct,of:Bt}),V in f||x(f,V,h),v(v.P,d,Ut),B(d),v(v.P+v.F*It,d,{set:zt}),v(v.P+v.F*!m,d,Ht),_||f.toString==bt||(f.toString=bt),v(v.P+v.F*y(function(){new p(1).slice()}),d,{slice:Ft}),v(v.P+v.F*(y(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!y(function(){f.toLocaleString.call([1,2])})),d,{toLocaleString:Dt}),L[d]=m?l:b,_||m||x(f,gt,b)}}else e.exports=function(){}},{"./_an-instance":148,"./_array-copy-within":150,"./_array-fill":151,"./_array-includes":152,"./_array-methods":153,"./_classof":157,"./_ctx":161,"./_descriptors":163,"./_export":167,"./_fails":169,"./_global":173,"./_has":174,"./_hide":175,"./_is-array-iter":181,"./_is-object":183,"./_iter-detect":188,"./_iterators":190,"./_library":191,"./_object-create":196,"./_object-dp":197,"./_object-gopd":199,"./_object-gopn":201,"./_object-gpo":203,"./_property-desc":211,"./_redefine-all":212,"./_set-species":215,"./_species-constructor":219,"./_to-absolute-index":226,"./_to-index":227,"./_to-integer":228,"./_to-length":230,"./_to-object":231,"./_to-primitive":232,"./_typed":235,"./_typed-buffer":234,"./_uid":236,"./_wks":240,"./core.get-iterator-method":241,"./es6.array.iterator":250}],234:[function(t,e,r){"use strict";var n=t("./_global"),i=t("./_descriptors"),o=t("./_library"),a=t("./_typed"),s=t("./_hide"),u=t("./_redefine-all"),f=t("./_fails"),l=t("./_an-instance"),h=t("./_to-integer"),c=t("./_to-length"),d=t("./_to-index"),p=t("./_object-gopn").f,m=t("./_object-dp").f,b=t("./_array-fill"),_=t("./_set-to-string-tag"),g="ArrayBuffer",y="DataView",v="prototype",w="Wrong index!",E=n[g],x=n[y],k=n.Math,S=n.RangeError,j=n.Infinity,A=E,I=k.abs,T=k.pow,O=k.floor,P=k.log,M=k.LN2,R="byteLength",L="byteOffset",C=i?"_b":"buffer",B=i?"_l":R,N=i?"_o":L;function D(t,e,r){var n,i,o,a=new Array(r),s=8*r-e-1,u=(1<<s)-1,f=u>>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<<e|i,s+=e;0<s;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*c,a}function U(t,e,r){var n,i=8*r-e-1,o=(1<<i)-1,a=o>>1,s=i-7,u=r-1,f=t[u--],l=127&f;for(f>>=7;0<s;l=256*l+t[u],u--,s-=8);for(n=l&(1<<-s)-1,l>>=-s,s+=e;0<s;n=256*n+t[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return n?NaN:f?-j:j;n+=T(2,e),l-=a}return(f?-1:1)*n*T(2,l-e)}function F(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function z(t){return[255&t]}function H(t){return[255&t,t>>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;l<e;l++)s[u+l]=f[o?l:e-l-1]}if(a.ABV){if(!f(function(){E(1)})||!f(function(){new E(-1)})||f(function(){return new E,new E(1.5),new E(NaN),E.name!=g})){for(var X,J=(E=function(t){return l(this,E),new A(d(t))})[v]=A[v],K=p(A),Q=0;K.length>Q;)(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<i)throw S("Wrong offset!");if(n<i+(r=void 0===r?n-i:c(r)))throw S("Wrong length!");this[C]=t,this[N]=i,this[B]=r},i&&(Z(E,R,"_l"),Z(x,"buffer","_b"),Z(x,R,"_l"),Z(x,L,"_o")),u(x[v],{getInt8:function(t){return Y(this,1,t)[0]<<24>>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<arguments.length?e:void 0)}}),t("./_add-to-unscopables")(o)},{"./_add-to-unscopables":147,"./_array-methods":153,"./_export":167}],245:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(t,e){return i(this,t,1<arguments.length?e:void 0)}}),t("./_add-to-unscopables")("find")},{"./_add-to-unscopables":147,"./_array-methods":153,"./_export":167}],246:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-methods")(0),o=t("./_strict-method")([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t,e){return i(this,t,e)}})},{"./_array-methods":153,"./_export":167,"./_strict-method":220}],247:[function(t,e,r){"use strict";var p=t("./_ctx"),n=t("./_export"),m=t("./_to-object"),b=t("./_iter-call"),_=t("./_is-array-iter"),g=t("./_to-length"),y=t("./_create-property"),v=t("./core.get-iterator-method");n(n.S+n.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t,e,r){var n,i,o,a,s=m(t),u="function"==typeof this?this:Array,f=arguments.length,l=1<f?e:void 0,h=void 0!==l,c=0,d=v(s);if(h&&(l=p(l,2<f?r:void 0,2)),null==d||u==Array&&_(d))for(i=new u(n=g(s.length));c<n;c++)y(i,c,h?l(s[c],c):s[c]);else for(a=d.call(s),i=new u;!(o=a.next()).done;c++)y(i,c,h?b(a,l,[o.value,c],!0):o.value);return i.length=c,i}})},{"./_create-property":160,"./_ctx":161,"./_export":167,"./_is-array-iter":181,"./_iter-call":185,"./_iter-detect":188,"./_to-length":230,"./_to-object":231,"./core.get-iterator-method":241}],248:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-includes")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!t("./_strict-method")(o)),"Array",{indexOf:function(t,e){return a?o.apply(this,arguments)||0:i(this,t,e)}})},{"./_array-includes":152,"./_export":167,"./_strict-method":220}],249:[function(t,e,r){var n=t("./_export");n(n.S,"Array",{isArray:t("./_is-array")})},{"./_export":167,"./_is-array":182}],250:[function(t,e,r){"use strict";var n=t("./_add-to-unscopables"),i=t("./_iter-step"),o=t("./_iterators"),a=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=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&&2<e.length){var r,n,i,o=(e=y?e.trim():d(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var a,s=e.slice(2),u=0,f=s.length;u<f;u++)if((a=s.charCodeAt(u))<48||i<a)return NaN;return parseInt(s,n)}}return+e}var i=t("./_global"),o=t("./_has"),a=t("./_cof"),s=t("./_inherit-if-required"),l=t("./_to-primitive"),u=t("./_fails"),f=t("./_object-gopn").f,h=t("./_object-gopd").f,c=t("./_object-dp").f,d=t("./_string-trim").trim,p="Number",m=i[p],b=m,_=m.prototype,g=a(t("./_object-create")(_))==p,y="trim"in String.prototype;if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof m&&(g?u(function(){_.valueOf.call(r)}):a(r)!=p)?s(new b(n(e)),r,m):n(e)};for(var v,w=t("./_descriptors")?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;w.length>E;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<i[b]&&i[0].replace(n,function(){for(s=1;s<arguments[b]-2;s++)void 0===arguments[s]&&(i[s]=void 0)}),1<i[b]&&i.index<r[b]&&m.apply(u,i.slice(1)),a=i[0][b],l=o,u[b]>=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<arguments.length?e:void 0)}})},{"./_export":167,"./_fails-is-regexp":168,"./_string-context":222}],268:[function(t,e,r){"use strict";var n=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=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;i<o;)$(t,r=n[i++],e[r]);return t}function o(t){var e=G.call(this,t=A(t,!0));return!(this===Y&&l(q,t)&&!l(Z,t))&&(!(e||!l(this,t)||!l(q,t)||l(this,z)&&this[z][t])||e)}function a(t,e){if(t=j(t),e=A(e,!0),t!==Y||!l(q,e)||l(Z,e)){var r=L(t,e);return!r||!l(q,e)||l(t,z)&&t[z][e]||(r.enumerable=!0),r}}function s(t){for(var e,r=B(j(t)),n=[],i=0;r.length>i;)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(0<arguments.length?t:void 0),r=function(t){this===Y&&r.call(Z,t),l(this,z)&&l(this[z],e)&&(this[z][e]=!1),K(this,e,I(1,t))};return h&&J&&K(Y,e,{configurable:!0,set:r}),n(e)})[F],"toString",function(){return this._k}),P.f=a,M.f=$,t("./_object-gopn").f=O.f=s,t("./_object-pie").f=o,t("./_object-gops").f=u,h&&!t("./_library")&&d(Y,"propertyIsEnumerable",o,!0),v.f=function(t){return n(y(t))}),c(c.G+c.W+c.F*!V,{Symbol:N});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)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<arguments.length;)n.push(arguments[i++]);if(r=e=n[1],(S(e)||void 0!==t)&&!Q(t))return x(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Q(e))return e}),n[1]=e,U.apply(D,n)}}),N[F][H]||t("./_hide")(N[F],H,N[F].valueOf),_(N,"Symbol"),_(Math,"Math",!0),_(f.JSON,"JSON",!0)},{"./_an-object":149,"./_descriptors":163,"./_enum-keys":166,"./_export":167,"./_fails":169,"./_global":173,"./_has":174,"./_hide":175,"./_is-array":182,"./_is-object":183,"./_library":191,"./_meta":192,"./_object-create":196,"./_object-dp":197,"./_object-gopd":199,"./_object-gopn":201,"./_object-gopn-ext":200,"./_object-gops":202,"./_object-keys":205,"./_object-pie":206,"./_property-desc":211,"./_redefine":213,"./_set-to-string-tag":216,"./_shared":218,"./_to-iobject":229,"./_to-primitive":232,"./_uid":236,"./_wks":240,"./_wks-define":238,"./_wks-ext":239}],270:[function(t,e,r){t("./_typed-array")("Float32",4,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"./_typed-array":233}],271:[function(t,e,r){t("./_typed-array")("Float64",8,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"./_typed-array":233}],272:[function(t,e,r){t("./_typed-array")("Uint8",1,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"./_typed-array":233}],273:[function(t,e,r){t("./_typed-array")("Uint8",1,function(n){return function(t,e,r){return n(this,t,e,r)}},!0)},{"./_typed-array":233}],274:[function(t,e,r){"use strict";var n=t("./_export"),i=t("./_array-includes")(!0);n(n.P,"Array",{includes:function(t,e){return i(this,t,1<arguments.length?e:void 0)}}),t("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":147,"./_array-includes":152,"./_export":167}],275:[function(t,e,r){var n=t("./_export"),i=t("./_object-to-array")(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},{"./_export":167,"./_object-to-array":208}],276:[function(t,e,r){t("./_wks-define")("asyncIterator")},{"./_wks-define":238}],277:[function(t,e,r){for(var n=t("./es6.array.iterator"),i=t("./_object-keys"),o=t("./_redefine"),a=t("./_global"),s=t("./_hide"),u=t("./_iterators"),f=t("./_wks"),l=f("iterator"),h=f("toStringTag"),c=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),m=0;m<p.length;m++){var b,_=p[m],g=d[_],y=a[_],v=y&&y.prototype;if(v&&(v[l]||s(v,l,c),v[h]||s(v,h,_),u[_]=c,g))for(b in n)v[b]||o(v,b,n[b],!0)}},{"./_global":173,"./_hide":175,"./_iterators":190,"./_object-keys":205,"./_redefine":213,"./_wks":240,"./es6.array.iterator":250}],278:[function(yub,zub,Aub){var Bub=yub("./lib/parser");zub.exports={create:function(Dub,Eub){if(Dub instanceof(Eub=Eub||eval("this")).ArrayBuffer){var Fub=yub("./lib/dom-bufferstream");return new Bub(new Fub(Dub,0,Dub.byteLength,!0,Eub))}var Gub=yub("./lib/bufferstream");return new Bub(new Gub(Dub,0,Dub.length,!0))}}},{"./lib/bufferstream":279,"./lib/dom-bufferstream":281,"./lib/parser":285}],279:[function(t,e,r){function n(t,e,r,n){this.buffer=t,this.offset=e||0,r="number"==typeof r?r:t.length,this.endPosition=this.offset+r,this.setBigEndian(n)}n.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString("utf8",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var e=this;return{openWithOffset:function(t){return t=(t||0)+this.offset,new n(e.buffer,t,e.endPosition-t,e.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.endPosition-(this.offset+t),new n(this.buffer,this.offset+t,e,this.bigEndian)}},e.exports=n},{}],280:[function(t,e,r){function u(t){return parseInt(t,10)}var a=3600,s=60;function f(t,e){t=t.map(u),e=e.map(u);var r=t[0],n=t[1]-1,i=t[2],o=e[0],a=e[1],s=e[2];return Date.UTC(r,n,i,o,a,s,0)/1e3}function n(t){var e=t.substr(0,10).split("-"),r=t.substr(11,8).split(":"),n=t.substr(19,6).split(":").map(u),i=n[0]*a+n[1]*s,o=f(e,r);if("number"==typeof(o-=i)&&!isNaN(o))return o}function i(t){var e=t.split(" "),r=f(e[0].split(":"),e[1].split(":"));if("number"==typeof r&&!isNaN(r))return r}e.exports={parseDateWithSpecFormat:i,parseDateWithTimezoneFormat:n,parseExifDate:function(t){var e=19===t.length&&":"===t.charAt(4);return 25===t.length&&"T"===t.charAt(10)?n(t):e?i(t):void 0}}},{}],281:[function(t,e,r){function n(t,e,r,n,i,o){this.global=i,e=e||0,r=r||t.byteLength-e,this.arrayBuffer=t.slice(e,e+r),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(n),this.offset=0,this.parentOffset=(o||0)+e}n.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var e=this;return{openWithOffset:function(t){return t=(t||0)+this.offset,new n(e.arrayBuffer,t,e.arrayBuffer.byteLength-t,!e.littleEndian,e.global,e.parentOffset)},offset:this.offset,getParentOffset:function(){return e.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new n(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},e.exports=n},{}],282:[function(t,e,r){e.exports={exif:{1:"InteropIndex",2:"InteropVersion",11:"ProcessingSoftware",254:"SubfileType",255:"OldSubfileType",256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:"Thresholding",264:"CellWidth",265:"CellLength",266:"FillOrder",269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",285:"PageName",286:"XPosition",287:"YPosition",288:"FreeOffsets",289:"FreeByteCounts",290:"GrayResponseUnit",291:"GrayResponseCurve",292:"T4Options",293:"T6Options",296:"ResolutionUnit",297:"PageNumber",300:"ColorResponseUnit",301:"TransferFunction",305:"Software",306:"ModifyDate",315:"Artist",316:"HostComputer",317:"Predictor",318:"WhitePoint",319:"PrimaryChromaticities",320:"ColorMap",321:"HalftoneHints",322:"TileWidth",323:"TileLength",324:"TileOffsets",325:"TileByteCounts",326:"BadFaxLines",327:"CleanFaxData",328:"ConsecutiveBadFaxLines",330:"SubIFD",332:"InkSet",333:"InkNames",334:"NumberofInks",336:"DotRange",337:"TargetPrinter",338:"ExtraSamples",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",342:"TransferRange",343:"ClipPath",344:"XClipPathUnits",345:"YClipPathUnits",346:"Indexed",347:"JPEGTables",351:"OPIProxy",400:"GlobalParametersIFD",401:"ProfileType",402:"FaxProfile",403:"CodingMethods",404:"VersionYear",405:"ModeNumber",433:"Decode",434:"DefaultImageColor",435:"T82Options",437:"JPEGTables",512:"JPEGProc",513:"ThumbnailOffset",514:"ThumbnailLength",515:"JPEGRestartInterval",517:"JPEGLosslessPredictors",518:"JPEGPointTransforms",519:"JPEGQTables",520:"JPEGDCTables",521:"JPEGACTables",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite",559:"StripRowCounts",700:"ApplicationNotes",999:"USPTOMiscellaneous",4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight",18246:"Rating",18247:"XP_DIP_XML",18248:"StitchInfo",18249:"RatingPercent",32781:"ImageID",32931:"WangTag1",32932:"WangAnnotation",32933:"WangTag3",32934:"WangTag4",32995:"Matteing",32996:"DataType",32997:"ImageDepth",32998:"TileDepth",33405:"Model2",33421:"CFARepeatPatternDim",33422:"CFAPattern2",33423:"BatteryLevel",33424:"KodakIFD",33432:"Copyright",33434:"ExposureTime",33437:"FNumber",33445:"MDFileTag",33446:"MDScalePixel",33447:"MDColorTable",33448:"MDLabName",33449:"MDSampleInfo",33450:"MDPrepDate",33451:"MDPrepTime",33452:"MDFileUnits",33550:"PixelScale",33589:"AdventScale",33590:"AdventRevision",33628:"UIC1Tag",33629:"UIC2Tag",33630:"UIC3Tag",33631:"UIC4Tag",33723:"IPTC-NAA",33918:"IntergraphPacketData",33919:"IntergraphFlagRegisters",33920:"IntergraphMatrix",33921:"INGRReserved",33922:"ModelTiePoint",34016:"Site",34017:"ColorSequence",34018:"IT8Header",34019:"RasterPadding",34020:"BitsPerRunLength",34021:"BitsPerExtendedRunLength",34022:"ColorTable",34023:"ImageColorIndicator",34024:"BackgroundColorIndicator",34025:"ImageColorValue",34026:"BackgroundColorValue",34027:"PixelIntensityRange",34028:"TransparencyIndicator",34029:"ColorCharacterization",34030:"HCUsage",34031:"TrapIndicator",34032:"CMYKEquivalent",34118:"SEMInfo",34152:"AFCP_IPTC",34232:"PixelMagicJBIGOptions",34264:"ModelTransform",34306:"WB_GRGBLevels",34310:"LeafData",34377:"PhotoshopSettings",34665:"ExifOffset",34675:"ICC_Profile",34687:"TIFF_FXExtensions",34688:"MultiProfiles",34689:"SharedData",34690:"T88Options",34732:"ImageLayer",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34850:"ExposureProgram",34852:"SpectralSensitivity",34853:"GPSInfo",34855:"ISO",34856:"Opto-ElectricConvFactor",34857:"Interlace",34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",34908:"FaxRecvParams",34909:"FaxSubAddress",34910:"FaxRecvTime",34954:"LeafSubIFD",36864:"ExifVersion",36867:"DateTimeOriginal",36868:"CreateDate",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureCompensation",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",37387:"FlashEnergy",37388:"SpatialFrequencyResponse",37389:"Noise",37390:"FocalPlaneXResolution",37391:"FocalPlaneYResolution",37392:"FocalPlaneResolutionUnit",37393:"ImageNumber",37394:"SecurityClassification",37395:"ImageHistory",37396:"SubjectArea",37397:"ExposureIndex",37398:"TIFF-EPStandardID",37399:"SensingMethod",37434:"CIP3DataFile",37435:"CIP3Sheet",37436:"CIP3Side",37439:"StoNits",37500:"MakerNote",37510:"UserComment",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37679:"MSDocumentText",37680:"MSPropertySetStorage",37681:"MSDocumentTextPosition",37724:"ImageSourceData",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",40960:"FlashpixVersion",40961:"ColorSpace",40962:"ExifImageWidth",40963:"ExifImageHeight",40964:"RelatedSoundFile",40965:"InteropOffset",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41485:"Noise",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41489:"ImageNumber",41490:"SecurityClassification",41491:"ImageHistory",41492:"SubjectLocation",41493:"ExposureIndex",41494:"TIFF-EPStandardID",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFormat",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"OwnerName",42033:"SerialNumber",42034:"LensInfo",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42112:"GDALMetadata",42113:"GDALNoData",42240:"Gamma",44992:"ExpandSoftware",44993:"ExpandLens",44994:"ExpandFilm",44995:"ExpandFilterLens",44996:"ExpandScanner",44997:"ExpandFlashLamp",48129:"PixelFormat",48130:"Transformation",48131:"Uncompressed",48132:"ImageType",48256:"ImageWidth",48257:"ImageHeight",48258:"WidthResolution",48259:"HeightResolution",48320:"ImageOffset",48321:"ImageByteCount",48322:"AlphaOffset",48323:"AlphaByteCount",48324:"ImageDataDiscard",48325:"AlphaDataDiscard",50215:"OceScanjobDesc",50216:"OceApplicationSelector",50217:"OceIDNumber",50218:"OceImageLogic",50255:"Annotations",50341:"PrintIM",50560:"USPTOOriginalContentType",50706:"DNGVersion",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50710:"CFAPlaneColor",50711:"CFALayout",50712:"LinearizationTable",50713:"BlackLevelRepeatDim",50714:"BlackLevel",50715:"BlackLevelDeltaH",50716:"BlackLevelDeltaV",50717:"WhiteLevel",50718:"DefaultScale",50719:"DefaultCropOrigin",50720:"DefaultCropSize",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50733:"BayerGreenSplit",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50737:"ChromaBlurRadius",50738:"AntiAliasStrength",50739:"ShadowScale",50740:"DNGPrivateData",50741:"MakerNoteSafety",50752:"RawImageSegmentation",50778:"CalibrationIlluminant1",50779:"CalibrationIlluminant2",50780:"BestQualityScale",50781:"RawDataUniqueID",50784:"AliasLayerMetadata",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50829:"ActiveArea",50830:"MaskedAreas",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50935:"NoiseReductionApplied",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:"ProfileEmbedPolicy",50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:"PreviewColorSpace",50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50974:"SubTileBlockSize",50975:"RowInterleaveFactor",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51008:"OpcodeList1",51009:"OpcodeList2",51022:"OpcodeList3",51041:"NoiseProfile",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:"ProfileHueSatMapEncoding",51108:"ProfileLookTableEncoding",51109:"BaselineExposureOffset",51110:"DefaultBlackRender",51111:"NewRawImageDigest",51112:"RawToPreviewGain",51125:"DefaultUserCrop",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65024:"KDC_IFD",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"}}},{}],283:[function(t,e,r){function l(t,e){switch(t){case 1:return e.nextUInt8();case 3:return e.nextUInt16();case 4:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 8:return e.nextUInt16();case 9:return e.nextUInt32();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error("Invalid format while decoding: "+t)}}function a(t,e){var r,n,i=e.nextUInt16(),o=e.nextUInt16(),a=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(o),s=e.nextUInt32(),u=a*s;if(4<u&&(e=t.openWithOffset(e.nextUInt32())),2===o){var f=(r=e.nextString(s)).indexOf("\0");-1!==f&&(r=r.substr(0,f))}else if(7===o)r=e.nextBuffer(s);else if(0!==o)for(r=[],n=0;n<s;++n)r.push(l(o,e));return u<4&&e.skip(4-u),[i,r,o]}function p(t,e,r){var n,i,o=e.nextUInt16();for(i=0;i<o;++i)r((n=a(t,e))[0],n[1],n[2])}e.exports={IFD0:1,IFD1:2,GPSIFD:3,SubIFD:4,InteropIFD:5,parseTags:function(t,n){var e,i,o,a;try{e=function(t){if("Exif\0\0"!==t.nextString(6))throw new Error("Invalid EXIF header");var e=t.mark(),r=t.nextUInt16();if(18761===r)t.setBigEndian(!1);else{if(19789!==r)throw new Error("Invalid TIFF header");t.setBigEndian(!0)}if(42!==t.nextUInt16())throw new Error("Invalid TIFF data");return e}(t)}catch(t){return!1}var r=e.openWithOffset(t.nextUInt32()),s=this.IFD0;p(e,r,function(t,e,r){switch(t){case 34853:o=e[0];break;case 34665:i=e[0];break;default:n(s,t,e,r)}});var u=r.nextUInt32();if(0!==u){var f=e.openWithOffset(u);p(e,f,n.bind(null,this.IFD1))}if(o){var l=e.openWithOffset(o);p(e,l,n.bind(null,this.GPSIFD))}if(i){var h=e.openWithOffset(i),c=this.InteropIFD;p(e,h,function(t,e,r){40965===t?a=e[0]:n(c,t,e,r)})}if(a){var d=e.openWithOffset(a);p(e,d,n.bind(null,this.InteropIFD))}return!0}}},{}],284:[function(t,e,r){e.exports={parseSections:function(t,e){var r,n;for(t.setBigEndian(!0);0<t.remainingLength()&&218!==n;){if(255!==t.nextUInt8())throw new Error("Invalid JPEG section offset");r=208<=(n=t.nextUInt8())&&n<=217||218===n?0:t.nextUInt16()-2,e(n,t.branch(0,r)),t.skip(r)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,r;switch(t){case 216:e="SOI";break;case 196:e="DHT";break;case 219:e="DQT";break;case 221:e="DRI";break;case 218:e="SOS";break;case 254:e="COM";break;case 217:e="EOI";break;default:224<=t&&t<=239?(e="APP",r=t-224):192<=t&&t<=207&&196!==t&&200!==t&&204!==t?(e="SOF",r=t-192):208<=t&&t<=215&&(e="RST",r=t-208)}var n={name:e};return"number"==typeof r&&(n.index=r),n}}},{}],285:[function(c,t,e){var d=c("./jpeg"),p=c("./exif"),m=c("./simplify");function b(t,e,r,n,i,o,a){this.startMarker=t,this.tags=e,this.imageSize=r,this.thumbnailOffset=n,this.thumbnailLength=i,this.thumbnailType=o,this.app1Offset=a}function r(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}b.prototype={hasThumbnail:function(t){return!(!this.thumbnailOffset||!this.thumbnailLength)&&("string"!=typeof t||("image/jpeg"===t.toLowerCase().trim()?6===this.thumbnailType:"image/tiff"===t.toLowerCase().trim()&&1===this.thumbnailType))},getThumbnailOffset:function(){return this.app1Offset+6+this.thumbnailOffset},getThumbnailLength:function(){return this.thumbnailLength},getThumbnailBuffer:function(){return this._getThumbnailStream().nextBuffer(this.thumbnailLength)},_getThumbnailStream:function(){return this.startMarker.openWithOffset(this.getThumbnailOffset())},getImageSize:function(){return this.imageSize},getThumbnailSize:function(){var r,t=this._getThumbnailStream();return d.parseSections(t,function(t,e){"SOF"===d.getSectionName(t).name&&(r=d.getSizeFromSOFSection(e))}),r}},r.prototype={enableBinaryFields:function(t){return this.flags.readBinaryTags=!!t,this},enablePointers:function(t){return this.flags.hidePointers=!t,this},enableTagNames:function(t){return this.flags.resolveTagNames=!!t,this},enableImageSize:function(t){return this.flags.imageSize=!!t,this},enableReturnTags:function(t){return this.flags.returnTags=!!t,this},enableSimpleValues:function(t){return this.flags.simplifyValues=!!t,this},parse:function(){var o,n,a,s,u,i,f,t,e,l=this.stream.mark(),r=l.openWithOffset(0),h=this.flags;return h.resolveTagNames&&(f=c("./exif-tags")),e=h.resolveTagNames?(o={},t=function(t){return o[t.name]},function(t,e){o[t.name]=e}):(o=[],t=function(t){var e;for(e=0;e<o.length;++e)if(o[e].type===t.type&&o[e].section===t.section)return o.value},function(t,e){var r;for(r=0;r<o.length;++r)if(o[r].type===t.type&&o[r].section===t.section)return void(o.value=e)}),d.parseSections(r,function(t,e){var r=e.offsetFrom(l);225===t?p.parseTags(e,function(t,e,r,n){if(h.readBinaryTags||7!==n){if(513===e){if(a=r[0],h.hidePointers)return}else if(514===e){if(s=r[0],h.hidePointers)return}else if(259===e&&(u=r[0],h.hidePointers))return;if(h.returnTags)if(h.simplifyValues&&(r=m.simplifyValue(r,n)),h.resolveTagNames){var i=(t===p.GPSIFD?f.gps:f.exif)[e];i=i||f.exif[e],o.hasOwnProperty(i)||(o[i]=r)}else o.push({section:t,type:e,value:r})}})&&(i=r):h.imageSize&&"SOF"===d.getSectionName(t).name&&(n=d.getSizeFromSOFSection(e))}),h.simplifyValues&&(m.castDegreeValues(t,e),m.castDateValues(t,e)),new b(l,o,n,a,s,u,i)}},t.exports=r},{"./exif":283,"./exif-tags":282,"./jpeg":284,"./simplify":286}],286:[function(t,e,r){var n=t("./exif"),o=t("./date"),a=[{section:n.GPSIFD,type:2,name:"GPSLatitude",refType:1,refName:"GPSLatitudeRef",posVal:"N"},{section:n.GPSIFD,type:4,name:"GPSLongitude",refType:3,refName:"GPSLongitudeRef",posVal:"E"}],s=[{section:n.SubIFD,type:306,name:"ModifyDate"},{section:n.SubIFD,type:36867,name:"DateTimeOriginal"},{section:n.SubIFD,type:36868,name:"CreateDate"},{section:n.SubIFD,type:306,name:"ModifyDate"}];e.exports={castDegreeValues:function(i,o){a.forEach(function(t){var e=i(t);if(e){var r=i({section:t.section,type:t.refType,name:t.refName})===t.posVal?1:-1,n=(e[0]+e[1]/60+e[2]/3600)*r;o(t,n)}})},castDateValues:function(n,i){s.forEach(function(t){var e=n(t);if(e){var r=o.parseExifDate(e);void 0!==r&&i(t,r)}})},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map(function(t){return 10===e||5===e?t[0]/t[1]:t})).length&&(t=t[0]),t}}},{"./date":280,"./exif":283}],287:[function(t,e,r){"use strict";function p(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function m(t){return p(t).map(function(t){return t.charCodeAt(0)})}var b=m("META-INF/mozilla.rsa"),_=m("[Content_Types].xml"),g=m("_rels/.rels");e.exports=function(t){var n=t instanceof Uint8Array?t:new Uint8Array(t);if(!(n&&1<n.length))return null;function r(t,e){e=Object.assign({offset:0},e);for(var r=0;r<t.length;r++)if(e.mask){if(t[r]!==(e.mask[r]&n[r+e.offset]))return!1}else if(t[r]!==n[r+e.offset])return!1;return!0}function e(t,e){return r(m(t),e)}if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(b,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(e("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(e("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(e("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};var i=function(t,e){var n=1<arguments.length&&void 0!==e?e:0;return t.findIndex(function(t,e,r){return n<=e&&80===r[e]&&75===r[e+1]&&3===r[e+2]&&4===r[e+3]})},o=0,a=!1,s=null;do{var u=o+30;if(a=a||(r(_,{offset:u})||r(g,{offset:u})),s||(e("word/",{offset:u})?s={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:e("ppt/",{offset:u})?s={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:e("xl/",{offset:u})&&(s={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),a&&s)return s;o=i(n,u)}while(0<=o);if(s)return s}if(r([80,75])&&(3===n[2]||5===n[2]||7===n[2])&&(4===n[3]||6===n[3]||8===n[3]))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(0===n[6]||1===n[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){var f=n.subarray(4,4100),l=f.findIndex(function(t,e,r){return 66===r[e]&&130===r[e+1]});if(-1!==l){var h=l+3,c=function(t){return p(t).every(function(t,e){return f[h+e]===t.charCodeAt(0)})};if(c("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(c("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(var d=0;d<2&&d<n.length-16;d++){if(r([73,68,51],{offset:d})||r([255,226],{offset:d,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([255,228],{offset:d,mask:[255,228]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,248],{offset:d,mask:[255,252]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,240],{offset:d,mask:[255,252]}))return{ext:"mp4",mime:"audio/mpeg"}}if(r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32]))return{ext:"m4a",mime:"audio/mp4"};if(r([79,112,117,115,72,101,97,100],{offset:28}))return{ext:"opus",mime:"audio/opus"};if(r([79,103,103,83]))return r([128,116,104,101,111,114,97],{offset:28})?{ext:"ogv",mime:"video/ogg"}:r([1,118,105,100,101,111,0],{offset:28})?{ext:"ogm",mime:"video/ogg"}:r([127,70,76,65,67],{offset:28})?{ext:"oga",mime:"audio/ogg"}:r([83,112,101,101,120,32,32],{offset:28})?{ext:"spx",mime:"audio/ogg"}:r([1,118,111,114,98,105,115],{offset:28})?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"};if(r([102,76,97,67]))return{ext:"flac",mime:"audio/x-flac"};if(r([77,65,67,32]))return{ext:"ape",mime:"audio/ape"};if(r([119,118,112,107]))return{ext:"wv",mime:"audio/wavpack"};if(r([35,33,65,77,82,10]))return{ext:"amr",mime:"audio/amr"};if(r([37,80,68,70]))return{ext:"pdf",mime:"application/pdf"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if((67===n[0]||70===n[0])&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([123,92,114,116,102]))return{ext:"rtf",mime:"application/rtf"};if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff",mime:"font/woff"};if(r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(r([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r([37,33]))return{ext:"ps",mime:"application/postscript"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r([83,81,76,105]))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r([67,114,50,52]))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r([77,83,67,70])||r([73,83,99,40]))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121]))return{ext:"deb",mime:"application/x-deb"};if(r([33,60,97,114,99,104,62]))return{ext:"ar",mime:"application/x-unix-archive"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([76,90,73,80]))return{ext:"lz",mime:"application/x-lzip"};if(r([208,207,17,224,161,177,26,225]))return{ext:"msi",mime:"application/x-msi"};if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,76,69,78,68,69,82]))return{ext:"blend",mime:"application/x-blender"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r([0,0,0,12,106,80,32,32,13,10,135,10])){if(r([106,112,50,32],{offset:20}))return{ext:"jp2",mime:"image/jp2"};if(r([106,112,120,32],{offset:20}))return{ext:"jpx",mime:"image/jpx"};if(r([106,112,109,32],{offset:20}))return{ext:"jpm",mime:"image/jpm"};if(r([109,106,112,50],{offset:20}))return{ext:"mj2",mime:"image/mj2"}}if(r([70,79,82,77,0]))return{ext:"aif",mime:"audio/aiff"};if(e("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([102,116,121,112],{offset:4})){if(r([109,105,102,49],{offset:8}))return{ext:"heic",mime:"image/heif"};if(r([109,115,102,49],{offset:8}))return{ext:"heic",mime:"image/heif-sequence"};if(r([104,101,105,99],{offset:8})||r([104,101,105,120],{offset:8}))return{ext:"heic",mime:"image/heic"};if(r([104,101,118,99],{offset:8})||r([104,101,118,120],{offset:8}))return{ext:"heic",mime:"image/heic-sequence"}}return r([171,75,84,88,32,49,49,187,13,10,26,10])?{ext:"ktx",mime:"image/ktx"}:null}},{}],288:[function(t,e,r){"use strict";var i=t("is-callable"),o=Object.prototype.toString,a=Object.prototype.hasOwnProperty;e.exports=function(t,e,r){if(!i(e))throw new TypeError("iterator must be a function");var n;3<=arguments.length&&(n=r),"[object Array]"===o.call(t)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)a.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,n):"string"==typeof t?function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,n):function(t,e,r){for(var n in t)a.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,n)}},{"is-callable":290}],289:[function(t,r,e){(function(t){var e;e=void 0!==window?window:void 0!==t?t:"undefined"!=typeof self?self:{},r.exports=e}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],290:[function(t,e,r){"use strict";function n(t){try{var e=i.call(t);return o.test(e)}catch(t){return!1}}var i=Function.prototype.toString,o=/^\s*class\b/,a=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(s)return function(t){try{return!n(t)&&(i.call(t),!0)}catch(t){return!1}}(t);if(n(t))return!1;var e=a.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},{}],291:[function(t,e,r){e.exports=function(t){var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||void 0!==window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},{}],292:[function(t,e,r){var n=t("./lib/encoder"),i=t("./lib/decoder");e.exports={encode:n,decode:i}},{"./lib/decoder":293,"./lib/encoder":294}],293:[function(t,e,r){(function(o){var a=function(){"use strict";var Z=new Int32Array([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]),y=4017,v=799,w=3406,E=2276,x=1567,k=3784,S=5793,j=2896;function t(){}function F(t,e){for(var r,n,i=0,o=[],a=16;0<a&&!t[a-1];)a--;o.push({children:[],index:0});var s,u=o[0];for(r=0;r<a;r++){for(n=0;n<t[r];n++){for((u=o.pop()).children[u.index]=e[i];0<u.index;)u=o.pop();for(u.index++,o.push(u);o.length<=r;)o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<a&&(o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return o[0].children}function z(e,r,t,n,i,f,l,o,h){t.precision,t.samplesPerLine,t.scanLines;var a=t.mcusPerLine,s=t.progressive,u=(t.maxH,t.maxV,r),c=0,d=0;function p(){if(0<d)return c>>--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<t;){var r=p();if(null===r)return;e=e<<1|r,t--}return e}function _(t){var e=b(t);return 1<<t-1<=e?e:e+(-1<<t)+1}var g=0;var y,v=0;var w,E,x,k,S,j,A=n.length;j=s?0===f?0===o?function(t,e){var r=m(t.huffmanTableDC),n=0===r?0:_(r)<<h;e[0]=t.pred+=n}:function(t,e){e[0]|=p()<<h}:0===o?function(t,e){if(0<g)g--;else for(var r=f,n=l;r<=n;){var i=m(t.huffmanTableAC),o=15&i,a=i>>4;if(0!=o){e[Z[r+=a]]=_(o)*(1<<h),r++}else{if(a<15){g=b(a)+(1<<a)-1;break}r+=16}}}:function(t,e){for(var r=f,n=l,i=0;r<=n;){var o=Z[r],a=e[o]<0?-1:1;switch(v){case 0:var s=m(t.huffmanTableAC),u=15&s;i=s>>4;if(0==u)v=i<15?(g=b(i)+(1<<i),4):(i=16,1);else{if(1!=u)throw new Error("invalid ACn encoding");y=_(u),v=i?2:3}continue;case 1:case 2:e[o]?e[o]+=(p()<<h)*a:0===--i&&(v=2==v?3:0);break;case 3:e[o]?e[o]+=(p()<<h)*a:(e[o]=y<<h,v=0);break;case 4:e[o]&&(e[o]+=(p()<<h)*a)}r++}4===v&&0===--g&&(v=0)}:function(t,e){var r=m(t.huffmanTableDC),n=0===r?0:_(r);e[0]=t.pred+=n;for(var i=1;i<64;){var o=m(t.huffmanTableAC),a=15&o,s=o>>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<T;){for(E=0;E<A;E++)n[E].pred=0;if(g=0,1==A)for(w=n[0],S=0;S<i;S++)z=j,void 0,G=(H=q)/(F=w).blocksPerLine|0,W=H%F.blocksPerLine,z(F,F.blocks[G][W]),q++;else for(S=0;S<i;S++){for(E=0;E<A;E++)for(O=(w=n[E]).h,P=w.v,x=0;x<P;x++)for(k=0;k<O;k++)R=j,C=x,B=k,void 0,N=(L=q)%a,D=(L/a|0)*(M=w).v+C,U=N*M.h+B,R(M,M.blocks[D][U]);if(++q===T)break}if(d=0,(I=e[r]<<8|e[r+1])<65280)throw new Error("marker was not found");if(!(65488<=I&&I<=65495))break;r+=2}return r-u}function H(t,g){var e,r,n=[],i=g.blocksPerLine,o=g.blocksPerColumn,a=i<<3,s=new Int32Array(64),u=new Uint8Array(64);function f(t,e,r){var n,i,o,a,s,u,f,l,h,c,d=g.quantizationTable,p=r;for(c=0;c<64;c++)p[c]=t[c]*d[c];for(c=0;c<8;++c){var m=8*c;0!=p[1+m]||0!=p[2+m]||0!=p[3+m]||0!=p[4+m]||0!=p[5+m]||0!=p[6+m]||0!=p[7+m]?(n=S*p[0+m]+128>>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<o;l++){var h=l<<3;for(e=0;e<8;e++)n.push(new Uint8Array(a));for(var c=0;c<i;c++){f(g.blocks[l][c],u,s);var d=0,p=c<<3;for(r=0;r<8;r++){var m=n[h+r];for(e=0;e<8;e++)m[p+e]=u[d++]}}}return n}function I(t){return t<0?0:255<t?255:t}return t.prototype={load:function(t){var e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var r=0;e.length;function t(){var t=e[r]<<8|e[r+1];return r+=2,t}function n(t){var e,r,n=0,i=0;for(r in t.components)t.components.hasOwnProperty(r)&&(n<(e=t.components[r]).h&&(n=e.h),i<e.v&&(i=e.v));var o=Math.ceil(t.samplesPerLine/8/n),a=Math.ceil(t.scanLines/8/i);for(r in t.components)if(t.components.hasOwnProperty(r)){e=t.components[r];for(var s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/n),u=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),f=o*e.h,l=a*e.v,h=[],c=0;c<l;c++){for(var d=[],p=0;p<f;p++)d.push(new Int32Array(64));h.push(d)}e.blocksPerLine=s,e.blocksPerColumn=u,e.blocks=h}t.maxH=n,t.maxV=i,t.mcusPerLine=o,t.mcusPerColumn=a}var i,o,a,s,u=null,f=null,l=[],h=[],c=[],d=[],p=t();if(65496!=p)throw new Error("SOI not found");for(p=t();65497!=p;){switch(p){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var m=(void 0,a=t(),s=e.subarray(r,r+a-2),r+=s.length,s);65504===p&&74===m[0]&&70===m[1]&&73===m[2]&&70===m[3]&&0===m[4]&&(u={version:{major:m[5],minor:m[6]},densityUnits:m[7],xDensity:m[8]<<8|m[9],yDensity:m[10]<<8|m[11],thumbWidth:m[12],thumbHeight:m[13],thumbData:m.subarray(14,14+3*m[12]*m[13])}),65518===p&&65===m[0]&&100===m[1]&&111===m[2]&&98===m[3]&&101===m[4]&&0===m[5]&&(f={version:m[6],flags0:m[7]<<8|m[8],flags1:m[9]<<8|m[10],transformCode:m[11]});break;case 65499:for(var b=t()+r-2;r<b;){var _=e[r++],g=new Int32Array(64);if(_>>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<v;B++){y=e[r];var w=e[r+1]>>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<k;){var S=e[r++],j=new Uint8Array(16),A=0;for(D=0;D<16;D++,r++)A+=j[D]=e[r];var I=new Uint8Array(A);for(D=0;D<A;D++,r++)I[D]=e[r];B+=17+A,(S>>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<T;B++){U=i.components[e[r++]];var P=e[r++];U.huffmanTableDC=d[P>>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<h.length;B++){var N=h[B].components;for(var D in N)N[D].quantizationTable=l[N[D].quantizationIdx],delete N[D].quantizationIdx}this.width=i.samplesPerLine,this.height=i.scanLines,this.jfif=u,this.adobe=f,this.components=[];for(B=0;B<i.componentsOrder.length;B++){var U=i.components[i.componentsOrder[B]];this.components.push({lines:H(0,U),scaleX:U.h/i.maxH,scaleY:U.v/i.maxV})}},getData:function(t,e){var r,n,i,o,a,s,u,f,l,h,c,d,p,m,b,_,g,y,v,w,E,x=this.width/t,k=this.height/e,S=0,j=t*e*this.components.length,A=new Uint8Array(j);switch(this.components.length){case 1:for(r=this.components[0],h=0;h<e;h++)for(a=r.lines[0|h*r.scaleY*k],l=0;l<t;l++)c=a[0|l*r.scaleX*x],A[S++]=c;break;case 2:for(r=this.components[0],n=this.components[1],h=0;h<e;h++)for(a=r.lines[0|h*r.scaleY*k],s=n.lines[0|h*n.scaleY*k],l=0;l<t;l++)c=a[0|l*r.scaleX*x],A[S++]=c,c=s[0|l*n.scaleX*x],A[S++]=c;break;case 3:for(E=!0,this.adobe&&this.adobe.transformCode?E=!0:void 0!==this.colorTransform&&(E=!!this.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],h=0;h<e;h++)for(a=r.lines[0|h*r.scaleY*k],s=n.lines[0|h*n.scaleY*k],u=i.lines[0|h*i.scaleY*k],l=0;l<t;l++)w=E?(c=a[0|l*r.scaleX*x],d=s[0|l*n.scaleX*x],y=I(c+1.402*((p=u[0|l*i.scaleX*x])-128)),v=I(c-.3441363*(d-128)-.71413636*(p-128)),I(c+1.772*(d-128))):(y=a[0|l*r.scaleX*x],v=s[0|l*n.scaleX*x],u[0|l*i.scaleX*x]),A[S++]=y,A[S++]=v,A[S++]=w;break;case 4:if(!this.adobe)throw"Unsupported color mode (4 components)";for(E=!1,this.adobe&&this.adobe.transformCode?E=!0:void 0!==this.colorTransform&&(E=!!this.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],o=this.components[3],h=0;h<e;h++)for(a=r.lines[0|h*r.scaleY*k],s=n.lines[0|h*n.scaleY*k],u=i.lines[0|h*i.scaleY*k],f=o.lines[0|h*o.scaleY*k],l=0;l<t;l++)E?(c=a[0|l*r.scaleX*x],d=s[0|l*n.scaleX*x],p=u[0|l*i.scaleX*x],m=f[0|l*o.scaleX*x],b=255-I(c+1.402*(p-128)),_=255-I(c-.3441363*(d-128)-.71413636*(p-128)),g=255-I(c+1.772*(d-128))):(b=a[0|l*r.scaleX*x],_=s[0|l*n.scaleX*x],g=u[0|l*i.scaleX*x],m=f[0|l*o.scaleX*x]),A[S++]=255-b,A[S++]=255-_,A[S++]=255-g,A[S++]=255-m;break;default:throw"Unsupported color mode"}return A},copyToImageData:function(t){var e,r,n,i,o,a,s,u,f,l=t.width,h=t.height,c=t.data,d=this.getData(l,h),p=0,m=0;switch(this.components.length){case 1:for(r=0;r<h;r++)for(e=0;e<l;e++)n=d[p++],c[m++]=n,c[m++]=n,c[m++]=n,c[m++]=255;break;case 3:for(r=0;r<h;r++)for(e=0;e<l;e++)s=d[p++],u=d[p++],f=d[p++],c[m++]=s,c[m++]=u,c[m++]=f,c[m++]=255;break;case 4:for(r=0;r<h;r++)for(e=0;e<l;e++)o=d[p++],a=d[p++],n=d[p++],s=255-I(o*(1-(i=d[p++])/255)+i),u=255-I(a*(1-i/255)+i),f=255-I(n*(1-i/255)+i),c[m++]=s,c[m++]=u,c[m++]=f,c[m++]=255;break;default:throw"Unsupported color mode"}}},t}();e.exports=function(t,e){var r=new Uint8Array(t),n=new a;n.parse(r);var i={width:n.width,height:n.height,data:e?new Uint8Array(n.width*n.height*4):new o(n.width*n.height*4)};return n.copyToImageData(i),i}}).call(this,t("buffer").Buffer)},{buffer:11}],294:[function(t,e,r){(function(X){function r(t){Math.round;var v,w,E,x,e,h=Math.floor,k=new Array(64),S=new Array(64),j=new Array(64),A=new Array(64),_=new Array(65535),g=new Array(65535),K=new Array(64),y=new Array(64),I=[],T=0,O=7,P=new Array(64),M=new Array(64),R=new Array(64),r=new Array(256),L=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],B=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],U=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],G=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function n(t,e){for(var r=0,n=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=o,n++,r++;r*=2}return i}function W(t){for(var e=t[0],r=t[1]-1;0<=r;)e&1<<r&&(T|=1<<O),r--,--O<0&&(255==T?(q(255),q(0)):q(T),O=7,T=0)}function q(t){I.push(t)}function Z(t){q(t>>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<h?.5+h|0:h-.5|0;return K}(t,e),f=0;f<64;++f)y[C[f]]=u[f];var l=y[0]-r;r=y[0],0==l?W(n[0]):(W(n[g[o=32767+l]]),W(_[o]));for(var h=63;0<h&&0==y[h];h--);if(0==h)return W(a),r;for(var c,d=1;d<=h;){for(var p=d;0==y[d]&&d<=h;++d);var m=d-p;if(16<=m){c=m>>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<t&&(t=100),e!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=h((e[r]*t+50)/100);n<1?n=1:255<n&&(n=255),k[C[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var a=h((i[o]*t+50)/100);a<1?a=1:255<a&&(a=255),S[C[o]]=a}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],u=0,f=0;f<8;f++)for(var l=0;l<8;l++)j[u]=1/(k[C[u]]*s[f]*s[l]*8),A[u]=1/(S[C[u]]*s[f]*s[l]*8),u++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),e=t}}this.encode=function(t,e){(new Date).getTime();e&&V(e),I=new Array,T=0,O=7,Z(65496),Z(65504),Z(16),q(74),q(70),q(73),q(70),q(0),q(1),q(1),q(0),Z(1),Z(1),q(0),q(0),function(){Z(65499),Z(132),q(0);for(var t=0;t<64;t++)q(k[t]);q(1);for(var e=0;e<64;e++)q(S[e])}(),function(t,e){Z(65472),Z(17),q(8),Z(e),Z(t),q(3),q(1),q(17),q(0),q(2),q(17),q(1),q(3),q(17),q(1)}(t.width,t.height),function(){Z(65476),Z(418),q(0);for(var t=0;t<16;t++)q(B[t+1]);for(var e=0;e<=11;e++)q(N[e]);q(16);for(var r=0;r<16;r++)q(D[r+1]);for(var n=0;n<=161;n++)q(U[n]);q(1);for(var i=0;i<16;i++)q(F[i+1]);for(var o=0;o<=11;o++)q(z[o]);q(17);for(var a=0;a<16;a++)q(H[a+1]);for(var s=0;s<=161;s++)q(G[s])}(),Z(65498),Z(12),q(3),q(1),q(0),q(2),q(17),q(3),q(17),q(0),q(63),q(0);var r=0,n=0,i=0;T=0,O=7,this.encode.displayName="_encode_";for(var o,a,s,u,f,l,h,c,d,p=t.data,m=t.width,b=t.height,_=4*m,g=0;g<b;){for(o=0;o<_;){for(l=f=_*g+o,h=-1,d=c=0;d<64;d++)l=f+(c=d>>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<<O+1)-1,W(y)}return Z(65497),new X(I)},function(){(new Date).getTime();t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)r[e]=t(e)}(),v=n(B,N),w=n(F,z),E=n(D,U),x=n(H,G),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)g[32767+n]=r,_[32767+n]=[],_[32767+n][1]=r,_[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)g[32767+i]=r,_[32767+i]=[],_[32767+i][1]=r,_[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)L[t]=19595*t,L[t+256>>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<t.length&&e(t.slice(0,4),r)}}).call(this,n("buffer").Buffer)},{buffer:11,"buffer-equal":145}],297:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{dup:99}],298:[function(t,e,r){(function(u){var f=t("path"),l=t("fs"),h=parseInt("0777",8);function c(n,i,t,o){"function"==typeof i?(t=i,i={}):i&&"object"==typeof i||(i={mode:i});var e=i.mode,a=i.fs||l;void 0===e&&(e=h&~u.umask()),o=o||null;var s=t||function(){};n=f.resolve(n),a.mkdir(n,e,function(r){if(!r)return s(null,o=o||n);switch(r.code){case"ENOENT":c(f.dirname(n),i,function(t,e){t?s(t,e):c(n,i,s,e)});break;default:a.stat(n,function(t,e){t||!e.isDirectory()?s(r,o):s(null,o)})}})}e.exports=c.mkdirp=c.mkdirP=c,c.sync=function t(r,n,i){n&&"object"==typeof n||(n={mode:n});var e=n.mode,o=n.fs||l;void 0===e&&(e=h&~u.umask()),i=i||null,r=f.resolve(r);try{o.mkdirSync(r,e),i=i||r}catch(e){switch(e.code){case"ENOENT":t(r,n,i=t(f.dirname(r),n,i));break;default:var a;try{a=o.statSync(r)}catch(t){throw e}if(!a.isDirectory())throw e}}return i}}).call(this,t("_process"))},{_process:53,fs:9,path:51}],299:[function(t,e,r){"use strict";function I(t,e,r,n){for(var i=t[e++],o=1<<i,a=1+o,s=1+a,u=i+1,f=(1<<u)-1,l=0,h=0,c=0,d=t[e++],p=new Int32Array(4096),m=null;;){for(;l<16&&0!==d;)h|=t[e++]<<l,l+=8,1===d?d=t[e++]:--d;if(l<u)break;var b=h&f;if(h>>=u,l-=u,b!=o){if(b==a)break;for(var _=b<s?b:m,g=0,y=_;o<y;)y=p[y]>>8,++g;var v=y;if(n<c+g+(_!==b?1:0))return void console.log("Warning, gif stream longer than expected.");r[c++]=v;var w=c+=g;for(_!==b&&(r[c++]=v),y=_;g--;)y=p[y],r[--w]=255&y,y>>=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<t||65535<e)throw new Error("Width/Height invalid.");function v(t){var e=t.length;if(e<2||256<e||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return e}_[g++]=71,_[g++]=73,_[g++]=70,_[g++]=56,_[g++]=57,_[g++]=97;var i=0,o=0;if(null!==y){for(var a=v(y);a>>=1;)++i;if(a=1<<i,--i,void 0!==r.background){if(a<=(o=r.background))throw new Error("Background index out of range.");if(0===o)throw new Error("Background index explicitly passed as 0.")}}if(_[g++]=255&t,_[g++]=t>>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<u;++s){var f=y[s];_[g++]=f>>16&255,_[g++]=f>>8&255,_[g++]=255&f}if(null!==n){if(n<0||65535<n)throw new Error("Loop count invalid.");_[g++]=33,_[g++]=255,_[g++]=11,_[g++]=78,_[g++]=69,_[g++]=84,_[g++]=83,_[g++]=67,_[g++]=65,_[g++]=80,_[g++]=69,_[g++]=50,_[g++]=46,_[g++]=48,_[g++]=3,_[g++]=1,_[g++]=255&n,_[g++]=n>>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<t||65535<e)throw new Error("x/y invalid.");if(r<=0||n<=0||65535<r||65535<n)throw new Error("Width/Height invalid.");if(i.length<r*n)throw new Error("Not enough pixels for the frame size.");var a=!0,s=o.palette;if(null==s&&(a=!1,s=y),null==s)throw new Error("Must supply either a local or global palette.");for(var u=v(s),f=0;u>>=1;)++f;u=1<<f;var l=void 0===o.delay?0:o.delay,h=void 0===o.disposal?0:o.disposal;if(h<0||3<h)throw new Error("Disposal out of range.");var c=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(c=!0,(d=o.transparent)<0||u<=d))throw new Error("Transparent color index.");if(0===h&&!c&&0===l||(_[g++]=33,_[g++]=249,_[g++]=4,_[g++]=h<<2|(!0===c?1:0),_[g++]=255&l,_[g++]=l>>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<m;++p){var b=s[p];_[g++]=b>>16&255,_[g++]=b>>8&255,_[g++]=255&b}return g=function(e,r,t,n){e[r++]=t;var i=r++,o=1<<t,a=o-1,s=1+o,u=1+s,f=t+1,l=0,h=0;function c(t){for(;t<=l;)e[r++]=255&h,h>>=8,l-=8,r===i+256&&(e[i]=255,i=r++)}function d(t){h|=t<<l,l+=f,c(8)}var p=n[0]&a,m={};d(o);for(var b=1,_=n.length;b<_;++b){var g=n[b]&a,y=p<<8|g,v=m[y];if(void 0===v){for(h|=p<<l,l+=f;8<=l;)e[r++]=255&h,h>>=8,l-=8,r===i+256&&(e[i]=255,i=r++);4096===u?(d(o),u=1+s,f=t+1,m={}):(1<<f<=u&&++f,m[y]=u++),p=g}else p=v}d(p),d(s),c(1),i+1===r?e[i]=0:(e[i]=r-i-1,e[r++]=0);return r}(_,g,f<2?2:f,i)},this.end=function(){return!1===w&&(_[g++]=59,w=!0),g},this.getOutputBuffer=function(){return _},this.setOutputBuffer=function(t){_=t},this.getOutputBufferPosition=function(){return g},this.setOutputBufferPosition=function(t){g=t}},r.GifReader=function(w){var t=0;if(71!==w[t++]||73!==w[t++]||70!==w[t++]||56!==w[t++]||56!=(w[t++]+1&253)||97!==w[t++])throw new Error("Invalid GIF 87a/89a header.");var E=w[t++]|w[t++]<<8,e=w[t++]|w[t++]<<8,r=w[t++],n=r>>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<w.length;)switch(w[t++]){case 33:switch(w[t++]){case 255:if(11!==w[t]||78==w[t+1]&&69==w[t+2]&&84==w[t+3]&&83==w[t+4]&&67==w[t+5]&&65==w[t+6]&&80==w[t+7]&&69==w[t+8]&&50==w[t+9]&&46==w[t+10]&&48==w[t+11]&&3==w[t+12]&&1==w[t+13]&&0==w[t+16])t+=14,c=w[t++]|w[t++]<<8,t++;else for(t+=12;;){if(!(0<=(A=w[t++])))throw Error("Invalid block size");if(0===A)break;t+=A}break;case 249:if(4!==w[t++]||0!==w[t+4])throw new Error("Invalid graphics extension block.");var d=w[t++];f=w[t++]|w[t++]<<8,l=w[t++],0==(1&d)&&(l=null),h=d>>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<b;++m){var _=i[m];if(0===f&&(f=s,h<=(c+=d)&&(d=4*u+4*E*(p-1),c=l+(s+u)*(p<<1),p>>=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<b;++m){var _=i[m];if(0===f&&(f=s,h<=(c+=d)&&(d=4*u+4*E*(p-1),c=l+(s+u)*(p<<1),p>>=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<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=a.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==l)throw new Error(i[r]);if(e.header&&a.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?u.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=a.deflateSetDictionary(this.strm,n))!==l)throw new Error(i[r]);this._dict_set=!0}}function n(t,e){var r=new p(e);if(r.push(t,!0),r.err)throw r.msg||i[r.err];return r.result}p.prototype.push=function(t,e){var r,n,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=u.string2buf(t):"[object ArrayBuffer]"===f.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new s.Buf8(o),i.next_out=0,i.avail_out=o),1!==(r=a.deflate(i,n))&&r!==l)return this.onEnd(r),!(this.ended=!0);0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(u.buf2binstring(s.shrinkBuf(i.output,i.next_out))):this.onData(s.shrinkBuf(i.output,i.next_out)))}while((0<i.avail_in||0===i.avail_out)&&1!==r);return 4===n?(r=a.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==n||(this.onEnd(l),!(i.avail_out=0))},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=p,r.deflate=n,r.deflateRaw=function(t,e){return(e=e||{}).raw=!0,n(t,e)},r.gzip=function(t,e){return(e=e||{}).gzip=!0,n(t,e)}},{"./utils/common":303,"./utils/strings":304,"./zlib/deflate":308,"./zlib/messages":313,"./zlib/zstream":315}],302:[function(t,e,r){"use strict";var c=t("./zlib/inflate"),d=t("./utils/common"),p=t("./utils/strings"),m=t("./zlib/constants"),n=t("./zlib/messages"),i=t("./zlib/zstream"),o=t("./zlib/gzheader"),b=Object.prototype.toString;function a(t){if(!(this instanceof a))return new a(t);this.options=d.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var r=c.inflateInit2(this.strm,e.windowBits);if(r!==m.Z_OK)throw new Error(n[r]);this.header=new o,c.inflateGetHeader(this.strm,this.header)}function s(t,e){var r=new a(e);if(r.push(t,!0),r.err)throw r.msg||n[r.err];return r.result}a.prototype.push=function(t,e){var r,n,i,o,a,s,u=this.strm,f=this.options.chunkSize,l=this.options.dictionary,h=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?m.Z_FINISH:m.Z_NO_FLUSH,"string"==typeof t?u.input=p.binstring2buf(t):"[object ArrayBuffer]"===b.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new d.Buf8(f),u.next_out=0,u.avail_out=f),(r=c.inflate(u,m.Z_NO_FLUSH))===m.Z_NEED_DICT&&l&&(s="string"==typeof l?p.string2buf(l):"[object ArrayBuffer]"===b.call(l)?new Uint8Array(l):l,r=c.inflateSetDictionary(this.strm,s)),r===m.Z_BUF_ERROR&&!0===h&&(r=m.Z_OK,h=!1),r!==m.Z_STREAM_END&&r!==m.Z_OK)return this.onEnd(r),!(this.ended=!0);u.next_out&&(0!==u.avail_out&&r!==m.Z_STREAM_END&&(0!==u.avail_in||n!==m.Z_FINISH&&n!==m.Z_SYNC_FLUSH)||("string"===this.options.to?(i=p.utf8border(u.output,u.next_out),o=u.next_out-i,a=p.buf2string(u.output,i),u.next_out=o,u.avail_out=f-o,o&&d.arraySet(u.output,u.output,i,o,0),this.onData(a)):this.onData(d.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(h=!0)}while((0<u.avail_in||0===u.avail_out)&&r!==m.Z_STREAM_END);return r===m.Z_STREAM_END&&(n=m.Z_FINISH),n===m.Z_FINISH?(r=c.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===m.Z_OK):n!==m.Z_SYNC_FLUSH||(this.onEnd(m.Z_OK),!(u.avail_out=0))},a.prototype.onData=function(t){this.chunks.push(t)},a.prototype.onEnd=function(t){t===m.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=a,r.inflate=s,r.inflateRaw=function(t,e){return(e=e||{}).raw=!0,s(t,e)},r.ungzip=s},{"./utils/common":303,"./utils/strings":304,"./zlib/constants":306,"./zlib/gzheader":309,"./zlib/inflate":311,"./zlib/messages":313,"./zlib/zstream":315}],303:[function(t,e,r){arguments[4][40][0].apply(r,arguments)},{dup:40}],304:[function(t,e,r){"use strict";var u=t("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var f=new u.Buf8(256),n=0;n<256;n++)f[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,u.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}f[254]=f[254]=1,r.string2buf=function(t){var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new u.Buf8(s),i=o=0;o<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:(r<2048?e[o++]=192|r>>>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<n;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,n,i,o,a=e||t.length,s=new Array(2*a);for(r=n=0;r<a;)if((i=t[r++])<128)s[n++]=i;else if(4<(o=f[i]))s[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<a;)i=i<<6|63&t[r++],o--;1<o?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>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)-(4<t?9:0)}function L(t){for(var e=t.length;0<=--e;)t[e]=0}function C(t){var e=t.state,r=e.pending;r>t.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]&&o<c);if(n=k-(c-o),o=c-k,a<n){if(t.match_start=e,s<=(a=n))break;d=f[o+a-1],p=f[o+a]}}}while((e=h[e&l])>u&&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<l&&(l=f),r=0===l?0:(a.avail_in-=l,c.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=d(a.adler,s,l,u):2===a.state.wrap&&(a.adler=p(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=r,t.lookahead+t.insert>=x)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+x-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<x)););}while(t.lookahead<S&&0!==t.strm.avail_in)}function z(t,e){for(var r,n;;){if(t.lookahead<S){if(F(t),t.lookahead<S&&e===l)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=x&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-S&&(t.match_length=U(t,r)),t.match_length>=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<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=f._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(B(t,!1),0===t.strm.avail_out))return I}return t.insert=t.strstart<x-1?t.strstart:x-1,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}function H(t,e){for(var r,n,i;;){if(t.lookahead<S){if(F(t),t.lookahead<S&&e===l)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=x&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=x-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-S&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===x&&4096<t.strstart-t.match_start)&&(t.match_length=x-1)),t.prev_length>=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.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=x-1,t.strstart++,n&&(B(t,!1),0===t.strm.avail_out))return I}else if(t.match_available){if((n=f._tr_tally(t,0,t.window[t.strstart-1]))&&B(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return I}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=f._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<x-1?t.strstart:x-1,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}function G(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new c.Buf16(2*w),this.dyn_dtree=new c.Buf16(2*(2*a+1)),this.bl_tree=new c.Buf16(2*(2*s+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new c.Buf16(E+1),this.heap=new c.Buf16(2*o+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*o+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function q(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=i,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?j:A,t.adler=2===e.wrap?0:1,e.last_flush=l,f._tr_init(e),m):M(t,b)}function Z(t){var e=q(t);return e===m&&function(t){t.window_size=2*t.w_size,L(t.head),t.max_lazy_match=u[t.level].max_lazy,t.good_match=u[t.level].good_length,t.nice_match=u[t.level].nice_length,t.max_chain_length=u[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=x-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,r,n,i,o){if(!t)return b;var a=1;if(e===_&&(e=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),i<1||v<i||r!==y||n<8||15<n||e<0||9<e||o<0||g<o)return M(t,b);8===n&&(n=9);var s=new W;return(t.state=s).strm=t,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+x-1)/x),s.window=new c.Buf8(2*s.w_size),s.head=new c.Buf16(s.hash_size),s.prev=new c.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new c.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=r,Z(t)}u=[new G(0,0,0,0,function(t,e){var r=65535;for(r>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<e||e<0)return t?M(t,b):b;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&e!==h)return M(t,0===t.avail_out?-5:b);if(n.strm=t,r=n.last_flush,n.last_flush=e,n.status===j)if(2===n.wrap)t.adler=0,N(n,31),N(n,139),N(n,8),n.gzhead?(N(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),N(n,255&n.gzhead.time),N(n,n.gzhead.time>>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.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,N(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(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.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,N(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(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&&0<t.strstart&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+k;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=k-(o-i),t.match_length>t.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<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?m:1)},r.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==j&&69!==e&&73!==e&&91!==e&&103!==e&&e!==A&&666!==e?M(t,b):(t.state=null,e===A?M(t,-3):m):b},r.deflateSetDictionary=function(t,e){var r,n,i,o,a,s,u,f,l=e.length;if(!t||!t.state)return b;if(2===(o=(r=t.state).wrap)||1===o&&r.status!==j||r.lookahead)return b;for(1===o&&(t.adler=d(t.adler,e,l,0)),r.wrap=0,l>=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<<r.hash_shift^r.window[n+x-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=x-1,F(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=x-1,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=o,m},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":303,"./adler32":305,"./crc32":307,"./messages":313,"./trees":314}],309:[function(t,e,r){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],310:[function(t,e,r){arguments[4][45][0].apply(r,arguments)},{dup:45}],311:[function(t,e,r){arguments[4][46][0].apply(r,arguments)},{"../utils/common":303,"./adler32":305,"./crc32":307,"./inffast":310,"./inftrees":312,dup:46}],312:[function(t,e,r){arguments[4][47][0].apply(r,arguments)},{"../utils/common":303,dup:47}],313:[function(t,e,r){arguments[4][48][0].apply(r,arguments)},{dup:48}],314:[function(t,e,r){"use strict";var i=t("../utils/common"),s=0,u=1;function n(t){for(var e=t.length;0<=--e;)t[e]=0}var o=0,a=29,f=256,l=f+1+a,h=30,c=19,b=2*l+1,_=15,d=16,p=7,m=256,g=16,y=17,v=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(2*(l+2));n(S);var j=new Array(2*h);n(j);var A=new Array(512);n(A);var I=new Array(256);n(I);var T=new Array(a);n(T);var O,P,M,R=new Array(h);function L(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function C(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function B(t){return t<256?A[t]:A[256+(t>>>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<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>d-t.bi_valid,t.bi_valid+=r-d):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function U(t,e,r){D(t,r[2*e],r[2*e+1])}function F(t,e){for(var r=0;r|=1&t,t>>>=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<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<c;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*m]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function G(t){8<t.bi_valid?N(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function W(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function q(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&W(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!W(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function Z(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?U(t,i,e):(U(t,(o=I[i])+f+1,e),0!==(a=w[o])&&D(t,i-=T[o],a),U(t,o=B(--n),r),0!==(a=E[o])&&D(t,n-=R[o],a)),s<t.last_lit;);U(t,m,e)}function Y(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=b,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=f=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=f<2?++f:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=f,r=t.heap_len>>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<b;r++)p<(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)&&(o=p,m++),u[2*n+1]=o,f<n||(t.bl_count[o]++,a=0,d<=n&&(a=c[n-d]),s=u[2*n],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==m){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,m-=2}while(0<m);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)f<(i=t.heap[--r])||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),z(o,f,t.bl_count)}function V(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,f=4;for(0===a&&(u=138,f=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<f?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*g]++):s<=10?t.bl_tree[2*y]++:t.bl_tree[2*v]++,o=i,f=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4))}function X(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,f=4;for(0===a&&(u=138,f=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<f)for(;U(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==o&&(U(t,i,t.bl_tree),s--),U(t,g,t.bl_tree),D(t,s-3,2)):s<=10?(U(t,y,t.bl_tree),D(t,s-3,3)):(U(t,v,t.bl_tree),D(t,s-11,7));o=i,f=(s=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4)}}n(R);var J=!1;function K(t,e,r,n){D(t,(o<<1)+(n?1:0),3),function(t,e,r,n){G(t),n&&(N(t,r),N(t,~r)),i.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}r._tr_init=function(t){J||(function(){var t,e,r,n,i,o=new Array(_+1);for(n=r=0;n<a-1;n++)for(T[n]=r,t=0;t<1<<w[n];t++)I[r++]=n;for(I[r-1]=n,n=i=0;n<16;n++)for(R[n]=i,t=0;t<1<<E[n];t++)A[i++]=n;for(i>>=7;n<h;n++)for(R[n]=i<<7,t=0;t<1<<E[n]-7;t++)A[256+i++]=n;for(e=0;e<=_;e++)o[e]=0;for(t=0;t<=143;)S[2*t+1]=8,t++,o[8]++;for(;t<=255;)S[2*t+1]=9,t++,o[9]++;for(;t<=279;)S[2*t+1]=7,t++,o[7]++;for(;t<=287;)S[2*t+1]=8,t++,o[8]++;for(z(S,l+1,o),t=0;t<h;t++)j[2*t+1]=5,j[2*t]=F(t,5);O=new L(S,w,f+1,l,_),P=new L(j,E,0,h,_),M=new L(new Array(0),x,0,c,p)}(),J=!0),t.l_desc=new C(t.dyn_ltree,O),t.d_desc=new C(t.dyn_dtree,P),t.bl_desc=new C(t.bl_tree,M),t.bi_buf=0,t.bi_valid=0,H(t)},r._tr_stored_block=K,r._tr_flush_block=function(t,e,r,n){var i,o,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=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<f;e++)if(0!==t.dyn_ltree[2*e])return u;return s}(t)),Y(t,t.l_desc),Y(t,t.d_desc),a=function(t){var e;for(V(t,t.dyn_ltree,t.l_desc.max_code),V(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=c-1;3<=e&&0===t.bl_tree[2*k[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>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<n;i++)D(t,t.bl_tree[2*k[i]+1],3);X(t,t.dyn_ltree,e-1),X(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Z(t,t.dyn_ltree,t.dyn_dtree)),H(t),n&&G(t)},r._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>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;o<t.length;o++){var a=t[o];0===o?i.push({key:a[0],data:""}):o===t.length-1?i[i.length-1].data=u(a[0]):(i[i.length-1].data=u(a[0]),i.push({key:a[1],data:""}))}var s={key:n,data:{}};return i.forEach(function(t){s.data[t.key]=t.data}),s}function u(t){return t&&0!==t.length?0===t.indexOf('"')||0===t.indexOf("'")?t.substring(1,t.length-1):-1!==t.indexOf(",")?function(t){return t.split(",").map(function(t){return parseInt(t,10)})}(t):parseInt(t,10):""}e.exports=function(t){if(!t)throw new Error("no data provided");var e={pages:[],chars:[],kernings:[]},r=(t=t.toString().trim()).split(/\r\n?|\n/g);if(0===r.length)throw new Error("no data in BMFont file");for(var n=0;n<r.length;n++){var i=o(r[n],n);if(i)if("page"===i.key){if("number"!=typeof i.data.id)throw new Error("malformed file at line "+n+" -- needs page id=N");if("string"!=typeof i.data.file)throw new Error("malformed file at line "+n+' -- needs page file="path"');e.pages[i.data.id]=i.data.file}else"chars"===i.key||"kernings"===i.key||("char"===i.key?e.chars.push(i.data):"kerning"===i.key?e.kernings.push(i.data):e[i.key]=i.data)}return e}},{}],317:[function(t,e,r){var i=[66,77,70];function o(t,e,r){if(r>e.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<a;s++)n[s]=t.slice(e,e+i.length).toString("utf8"),e+=o;return n}(e,r,i);break;case 4:t.chars=function(t,e,r){for(var n=[],i=r/20,o=0;o<i;o++){var a={},s=20*o;a.id=t.readUInt32LE(e+0+s),a.x=t.readUInt16LE(e+4+s),a.y=t.readUInt16LE(e+6+s),a.width=t.readUInt16LE(e+8+s),a.height=t.readUInt16LE(e+10+s),a.xoffset=t.readInt16LE(e+12+s),a.yoffset=t.readInt16LE(e+14+s),a.xadvance=t.readInt16LE(e+16+s),a.page=t.readUInt8(e+18+s),a.chnl=t.readUInt8(e+19+s),n[o]=a}return n}(e,r,i);break;case 5:t.kernings=function(t,e,r){for(var n=[],i=r/10,o=0;o<i;o++){var a={},s=10*o;a.first=t.readUInt32LE(e+0+s),a.second=t.readUInt32LE(e+4+s),a.amount=t.readInt16LE(e+8+s),n[o]=a}return n}(e,r,i)}return 5+i}function u(t,e){for(var r=e;r<t.length&&0!==t[r];r++);return t.slice(e,r)}e.exports=function(r){if(r.length<6)throw new Error("invalid buffer length for BMFont");if(!i.every(function(t,e){return r.readUInt8(e)===t}))throw new Error("BMFont missing BMF byte header");var t=3;if(3<r.readUInt8(t++))throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(var e={kernings:[],chars:[]},n=0;n<5;n++)t+=o(e,r,t);return e}},{}],318:[function(t,e,r){var f=t("./parse-attribs"),l=t("xml-parse-from-string"),n={scaleh:"scaleH",scalew:"scaleW",stretchh:"stretchH",lineheight:"lineHeight",alphachnl:"alphaChnl",redchnl:"redChnl",greenchnl:"greenChnl",bluechnl:"blueChnl"};function h(t){return function(t){for(var e=[],r=0;r<t.attributes.length;r++)e.push(t.attributes[r]);return e}(t).reduce(function(t,e){return t[function(t){return n[t.toLowerCase()]||t}(e.nodeName)]=e.nodeValue,t},{})}e.exports=function(t){t=t.toString();var a=l(t),s={pages:[],chars:[],kernings:[]};["info","common"].forEach(function(t){var e=a.getElementsByTagName(t)[0];e&&(s[t]=f(h(e)))});var e=a.getElementsByTagName("pages")[0];if(!e)throw new Error("malformed file -- no <pages> element");for(var r=e.getElementsByTagName("page"),n=0;n<r.length;n++){var i=r[n],o=parseInt(i.getAttribute("id"),10),u=i.getAttribute("file");if(isNaN(o))throw new Error('malformed file -- page "id" attribute is NaN');if(!u)throw new Error('malformed file -- needs page "file" attribute');s.pages[parseInt(o,10)]=u}return["chars","kernings"].forEach(function(t){var e=a.getElementsByTagName(t)[0];if(e)for(var r=t.substring(0,t.length-1),n=e.getElementsByTagName(r),i=0;i<n.length;i++){var o=n[i];s[t].push(f(h(o)))}}),s}},{"./parse-attribs":319,"xml-parse-from-string":351}],319:[function(t,e,r){var n="chasrset";e.exports=function(t){for(var e in n in t&&(t.charset=t[n],delete t[n]),t)"face"!==e&&"charset"!==e&&(t[e]="padding"===e||"spacing"===e?t[e].split(",").map(function(t){return parseInt(t,10)}):parseInt(t[e],10));return t}},{}],320:[function(t,e,r){var o=t("trim"),n=t("for-each");e.exports=function(t){if(!t)return{};var i={};return n(o(t).split("\n"),function(t){var e=t.indexOf(":"),r=o(t.slice(0,e)).toLowerCase(),n=o(t.slice(e+1));void 0===i[r]?i[r]=n:!function(t){return"[object Array]"===Object.prototype.toString.call(t)}(i[r])?i[r]=[i[r],n]:i[r].push(n)}),i}},{"for-each":288,trim:347}],321:[function(e,r,t){(function(u){"use strict";function i(t,r){if("string"!=typeof t&&!t.hasOwnProperty("url"))throw new Error("Missing url option from options for request method.");var e="object"===(void 0===t?"undefined":f(t))?c.parse(t.url):c.parse(t),n={hostname:e.hostname,port:e.port||("http:"===e.protocol.toLowerCase()?80:443),path:e.path,method:"GET",headers:{},auth:e.auth||null,parse:"none",stream:!1};if("object"===(void 0===t?"undefined":f(t))&&(n=Object.assign(n,t)),n.port=Number(n.port),n.hasOwnProperty("timeout")&&delete n.timeout,!0===n.compressed&&(n.headers["accept-encoding"]="gzip, deflate"),t.hasOwnProperty("form")){if("object"!==f(t.form))throw new Error("phin 'form' option must be of type Object if present.");var i=d.stringify(t.form);n.headers["Content-Type"]="application/x-www-form-urlencoded",n.headers["Content-Length"]=u.byteLength(i),t.data=i}function o(e){var t=e;!0===n.compressed&&("gzip"===e.headers["content-encoding"]?t=e.pipe(p.createGunzip()):"deflate"===e.headers["content-encoding"]&&(t=e.pipe(p.createInflate()))),!0===n.stream?(e.stream=t,r&&r(null,e)):(e.body=new u([]),t.on("data",function(t){e.body=u.concat([e.body,t])}),t.on("end",function(){if(r){if("json"===n.parse)try{e.body=JSON.parse(e.body.toString())}catch(t){return void r("Invalid JSON received.",e)}r(null,e)}}))}var a=void 0;switch(e.protocol.toLowerCase()){case"http:":a=l.request(n,o);break;case"https:":a=h.request(n,o);break;default:return void(r&&r(new Error("Invalid / unknown URL protocol. Expected HTTP or HTTPS."),null))}if("number"==typeof t.timeout&&a.setTimeout(t.timeout,function(){a.abort(),r&&r(new Error("Timeout has been reached."),null),r=null}),a.on("error",function(t){r&&r(t,null)}),t.hasOwnProperty("data")){var s=t.data;if(!(t.data instanceof u)&&"object"===f(t.data))if("application/x-www-form-urlencoded"===(n.headers["content-type"]||n.headers["Content-Type"]))s=d.stringify(t.data);else try{s=JSON.stringify(t.data)}catch(t){r&&r(new Error("Couldn't stringify object. (Likely due to a circular reference.)"),null)}a.write(s)}a.end()}var f="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},l=e("http"),h=e("https"),c=e("url"),d=e("querystring"),p=e("zlib"),t=e("util");i.promisified=function(t,e){return new Promise(function(r,n){i(t,function(t,e){t?n(t):r(e)})})},t.promisify&&(i[t.promisify.custom]=i.promisified),r.exports=i}).call(this,e("buffer").Buffer)},{buffer:11,http:72,https:34,querystring:56,url:93,util:98,zlib:8}],322:[function(t,e,r){"use strict";function x(t,e,r,n,i,o){for(var a,s,u,f,l=Math.max(e-1,0),h=Math.max(r-1,0),c=Math.min(e+1,n-1),d=Math.min(r+1,i-1),p=4*(r*n+e),m=0,b=0,_=0,g=0,y=0,v=l;v<=c;v++)for(var w=h;w<=d;w++)if(v!==e||w!==r){var E=k(t,t,p,4*(w*n+v),!0);if(0===E?m++:E<0?_++:0<E&&b++,2<m)return!1;o&&(E<g&&(g=E,a=v,s=w),y<E&&(y=E,u=v,f=w))}return!o||0!==_&&0!==b&&(!x(t,a,s,n,i)&&!x(o,a,s,n,i)||!x(t,u,f,n,i)&&!x(o,u,f,n,i))}function k(t,e,r,n,i){var o=t[r+3]/255,a=e[n+3]/255,s=w(t[r+0],o),u=w(t[r+1],o),f=w(t[r+2],o),l=w(e[n+0],a),h=w(e[n+1],a),c=w(e[n+2],a),d=v(s,u,f)-v(l,h,c);if(i)return d;var p=b(s,u,f)-b(l,h,c),m=_(s,u,f)-_(l,h,c);return.5053*d*d+.299*p*p+.1957*m*m}function v(t,e,r){return.29889531*t+.58662247*e+.11448223*r}function b(t,e,r){return.59597799*t-.2741761*e-.32180189*r}function _(t,e,r){return.21147017*t-.52261711*e+.31114694*r}function w(t,e){return 255+(t-255)*e}function E(t,e,r,n,i){t[e+0]=r,t[e+1]=n,t[e+2]=i,t[e+3]=255}e.exports=function(t,e,r,n,i,o){o=o||{};for(var a=void 0===o.threshold?.1:o.threshold,s=35215*a*a,u=0,f=0;f<i;f++)for(var l=0;l<n;l++){var h=4*(f*n+l),c=k(t,e,h,h);if(s<c)o.includeAA||!x(t,l,f,n,i,e)&&!x(e,l,f,n,i,t)?(r&&E(r,h,255,0,0),u++):r&&E(r,h,255,255,0);else if(r){var d=w((void 0,b=(p=t)[(m=h)+3]/255,_=w(p[m+0],b),g=w(p[m+1],b),y=w(p[m+2],b),v(_,g,y)),.1);E(r,h,d,d,d)}}var p,m,b,_,g,y;return u}},{}],323:[function(t,e,r){(function(m){"use strict";var b=t("./interlace"),_={1:{0:0,1:0,2:0,3:255},2:{0:0,1:0,2:0,3:1},3:{0:0,1:1,2:2,3:255},4:{0:0,1:1,2:2,3:3}};function g(t,e,r,n,i,o){for(var a=t.width,s=t.height,u=t.index,f=0;f<s;f++)for(var l=0;l<a;l++){for(var h=r(l,f,u),c=0;c<4;c++){var d=_[n][c];if(255===d)e[h+c]=255;else{var p=d+o;if(p===i.length)throw new Error("Ran out of data");e[h+c]=i[p]}}o+=n}return o}function y(t,e,r,n,i,o){for(var a=t.width,s=t.height,u=t.index,f=0;f<s;f++){for(var l=0;l<a;l++)for(var h=i.get(n),c=r(l,f,u),d=0;d<4;d++){var p=_[n][d];e[c+d]=255!==p?h[p]:o}i.resetAfterLine()}}r.dataToBitMap=function(t,e){var r,n=e.width,i=e.height,o=e.depth,a=e.bpp,s=e.interlace;if(8!==o)var u=function(f,l){var h=[],c=0;function r(){if(c===f.length)throw new Error("Ran out of data");var t,e,r,n,i,o,a,s,u=f[c];switch(c++,l){default:throw new Error("unrecognised depth");case 16:a=f[c],c++,h.push((u<<8)+a);break;case 4:a=15&u,s=u>>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.length<t;)r();var e=h.slice(0,t);return h=h.slice(t),e},resetAfterLine:function(){h.length=0},end:function(){if(c!==f.length)throw new Error("extra data found")}}}(t,o);r=o<=8?new m(n*i*4):new Uint16Array(n*i*4);var f,l,h=Math.pow(2,o)-1,c=0;if(s)f=b.getImagePasses(n,i),l=b.getInterlaceIterator(n,i);else{var d=0;l=function(){var t=d;return d+=4,t},f=[{width:n,height:i}]}for(var p=0;p<f.length;p++)8===o?c=g(f[p],r,l,a,t,c):y(f[p],r,l,a,u,h);if(8===o){if(c!==t.length)throw new Error("extra data found")}else u.end();return r}}).call(this,t("buffer").Buffer)},{"./interlace":333,buffer:11}],324:[function(t,e,r){(function(v){"use strict";var w=t("./constants");e.exports=function(t,e,r,a){var n,s=-1!==[w.COLORTYPE_COLOR_ALPHA,w.COLORTYPE_ALPHA].indexOf(a.colorType);if(a.colorType===a.inputColorType){var i=(n=new ArrayBuffer(2),new DataView(n).setInt16(0,256,!0),256!==new Int16Array(n)[0]);if(8===a.bitDepth||16===a.bitDepth&&i)return t}var o=16!==a.bitDepth?t:new Uint16Array(t.buffer),u=255,f=w.COLORTYPE_TO_BPP_MAP[a.inputColorType];4!=f||a.inputHasAlpha||(f=3);var l=w.COLORTYPE_TO_BPP_MAP[a.colorType];16===a.bitDepth&&(u=65535,l*=2);var h=new v(e*r*l),c=0,d=0,p=a.bgColor||{};function m(t,e){var r,n,i,o=u;switch(a.inputColorType){case w.COLORTYPE_COLOR_ALPHA:o=t[e+3],r=t[e],n=t[e+1],i=t[e+2];break;case w.COLORTYPE_COLOR:r=t[e],n=t[e+1],i=t[e+2];break;case w.COLORTYPE_ALPHA:o=t[e+1],i=n=r=t[e];break;case w.COLORTYPE_GRAYSCALE:i=n=r=t[e];break;default:throw new Error("input color type:"+a.inputColorType+" is not supported at present")}return a.inputHasAlpha&&(s||(o/=u,r=Math.min(Math.max(Math.round((1-o)*p.red+o*r),0),u),n=Math.min(Math.max(Math.round((1-o)*p.green+o*n),0),u),i=Math.min(Math.max(Math.round((1-o)*p.blue+o*i),0),u))),{red:r,green:n,blue:i,alpha:o}}void 0===p.red&&(p.red=u),void 0===p.green&&(p.green=u),void 0===p.blue&&(p.blue=u);for(var b=0;b<r;b++)for(var _=0;_<e;_++){var g=m(o,c);switch(a.colorType){case w.COLORTYPE_COLOR_ALPHA:case w.COLORTYPE_COLOR:8===a.bitDepth?(h[d]=g.red,h[d+1]=g.green,h[d+2]=g.blue,s&&(h[d+3]=g.alpha)):(h.writeUInt16BE(g.red,d),h.writeUInt16BE(g.green,d+2),h.writeUInt16BE(g.blue,d+4),s&&h.writeUInt16BE(g.alpha,d+6));break;case w.COLORTYPE_ALPHA:case w.COLORTYPE_GRAYSCALE:var y=(g.red+g.green+g.blue)/3;8===a.bitDepth?(h[d]=y,s&&(h[d+1]=g.alpha)):(h.writeUInt16BE(y,d),s&&h.writeUInt16BE(g.alpha,d+2))}c+=f,d+=l}return h}}).call(this,t("buffer").Buffer)},{"./constants":326,buffer:11}],325:[function(i,o,t){(function(r,a){"use strict";var t=i("util"),e=i("stream"),n=o.exports=function(){e.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};t.inherits(n,e),n.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e}),r.nextTick(function(){this._process(),this._paused&&0<this._reads.length&&(this._paused=!1,this.emit("drain"))}.bind(this))},n.prototype.write=function(t,e){return this.writable?(r=a.isBuffer(t)?t:new a(t,e||this._encoding),this._buffers.push(r),this._buffered+=r.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",new Error("Stream not writable")),!1);var r},n.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},n.prototype.destroySoon=n.prototype.end,n.prototype._end=function(){0<this._reads.length&&this.emit("error",new Error("There are some read requests waiting on finished stream")),this.destroy()},n.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},n.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.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;){var i=this._buffers[r++],o=Math.min(i.length,t.length-e);i.copy(n,e,0,o),e+=o,o!==i.length&&(this._buffers[--r]=i.slice(o))}0<r&&this._buffers.splice(0,r),this._buffered-=t.length,t.func.call(this,n)},n.prototype._process=function(){try{for(;0<this._buffered&&this._reads&&0<this._reads.length;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&0<this._buffers.length&&null===this._buffers[0]&&this._end()}catch(t){this.emit("error",t)}}}).call(this,i("_process"),i("buffer").Buffer)},{_process:53,buffer:11,stream:71,util:98}],326:[function(t,e,r){"use strict";e.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},{}],327:[function(t,e,r){"use strict";var n=[];!function(){for(var t=0;t<256;t++){for(var e=t,r=0;r<8;r++)1&e?e=3988292384^e>>>1:e>>>=1;n[t]=e}}();var i=e.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e<t.length;e++)this._crc=n[255&(this._crc^t[e])]^this._crc>>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,r=0;r<t.length;r++)e=n[255&(e^t[r])]^e>>>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<r;o++)n[i+o]=t[e+o]},1:function(t,e,r,n,i,o){for(var a=0;a<r;a++){var s=o<=a?t[e+a-o]:0,u=t[e+a]-s;n[i+a]=u}},2:function(t,e,r,n,i){for(var o=0;o<r;o++){var a=0<e?t[e+o-r]:0,s=t[e+o]-a;n[i+o]=s}},3:function(t,e,r,n,i,o){for(var a=0;a<r;a++){var s=o<=a?t[e+a-o]:0,u=0<e?t[e+a-r]:0,f=t[e+a]-(s+u>>1);n[i+a]=f}},4:function(t,e,r,n,i,o){for(var a=0;a<r;a++){var s=o<=a?t[e+a-o]:0,u=0<e?t[e+a-r]:0,f=0<e&&o<=a?t[e+a-(r+o)]:0,l=t[e+a]-h(s,u,f);n[i+a]=l}}},_={0:function(t,e,r){for(var n=0,i=e+r,o=e;o<i;o++)n+=Math.abs(t[o]);return n},1:function(t,e,r,n){for(var i=0,o=0;o<r;o++){var a=n<=o?t[e+o-n]:0,s=t[e+o]-a;i+=Math.abs(s)}return i},2:function(t,e,r){for(var n=0,i=e+r,o=e;o<i;o++){var a=0<e?t[o-r]:0,s=t[o]-a;n+=Math.abs(s)}return n},3:function(t,e,r,n){for(var i=0,o=0;o<r;o++){var a=n<=o?t[e+o-n]:0,s=0<e?t[e+o-r]:0,u=t[e+o]-(a+s>>1);i+=Math.abs(u)}return i},4:function(t,e,r,n){for(var i=0,o=0;o<r;o++){var a=n<=o?t[e+o-n]:0,s=0<e?t[e+o-r]:0,u=0<e&&n<=o?t[e+o-(r+n)]:0,f=t[e+o]-h(a,s,u);i+=Math.abs(f)}return i}};e.exports=function(t,e,r,n,i){var o;if("filterType"in n&&-1!==n.filterType){if("number"!=typeof n.filterType)throw new Error("unrecognised filter types");o=[n.filterType]}else o=[0,1,2,3,4];16===n.bitDepth&&(i*=2);for(var a=e*i,s=0,u=0,f=new m((1+a)*r),l=o[0],h=0;h<r;h++){if(1<o.length)for(var c=1/0,d=0;d<o.length;d++){var p=_[o[d]](t,u,a,i);p<c&&(l=o[d],c=p)}f[s]=l,s++,b[l](t,u,a,f,s,i),s+=a,u+=a}return f}}).call(this,t("buffer").Buffer)},{"./paeth-predictor":337,buffer:11}],329:[function(r,a,t){(function(n){"use strict";var t=r("util"),i=r("./chunkstream"),o=r("./filter-parse"),e=a.exports=function(t){i.call(this);var e=[],r=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){e.push(t)},complete:function(){r.emit("complete",n.concat(e))}}),this._filter.start()};t.inherits(e,i)}).call(this,r("buffer").Buffer)},{"./chunkstream":325,"./filter-parse":331,buffer:11,util:98}],330:[function(t,e,r){(function(i){"use strict";var o=t("./sync-reader"),a=t("./filter-parse");r.process=function(t,e){var r=[],n=new o(t);return new a(e,{read:n.read.bind(n),write:function(t){r.push(t)},complete:function(){}}).start(),n.process(),i.concat(r)}}).call(this,t("buffer").Buffer)},{"./filter-parse":331,"./sync-reader":344,buffer:11}],331:[function(e,r,t){(function(o){"use strict";var f=e("./interlace"),c=e("./paeth-predictor");function l(t,e,r){var n=t*e;return 8!==r&&(n=Math.ceil(n/(8/r))),n}var t=r.exports=function(t,e){var r=t.width,n=t.height,i=t.interlace,o=t.bpp,a=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],i)for(var s=f.getImagePasses(r,n),u=0;u<s.length;u++)this._images.push({byteWidth:l(s[u].width,o,a),height:s[u].height,lineIndex:0});else this._images.push({byteWidth:l(r,o,a),height:n,lineIndex:0});this._xComparison=8===a?o:16===a?2*o:1};t.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},t.prototype._unFilterType1=function(t,e,r){for(var n=this._xComparison,i=n-1,o=0;o<r;o++){var a=t[1+o],s=i<o?e[o-n]:0;e[o]=a+s}},t.prototype._unFilterType2=function(t,e,r){for(var n=this._lastLine,i=0;i<r;i++){var o=t[1+i],a=n?n[i]:0;e[i]=o+a}},t.prototype._unFilterType3=function(t,e,r){for(var n=this._xComparison,i=n-1,o=this._lastLine,a=0;a<r;a++){var s=t[1+a],u=o?o[a]:0,f=i<a?e[a-n]:0,l=Math.floor((f+u)/2);e[a]=s+l}},t.prototype._unFilterType4=function(t,e,r){for(var n=this._xComparison,i=n-1,o=this._lastLine,a=0;a<r;a++){var s=t[1+a],u=o?o[a]:0,f=i<a?e[a-n]:0,l=i<a&&o?o[a-n]:0,h=c(f,u,l);e[a]=s+h}},t.prototype._reverseFilterLine=function(t){var e,r=t[0],n=this._images[this._imageIndex],i=n.byteWidth;if(0===r)e=t.slice(1,i+1);else switch(e=new o(i),r){case 1:this._unFilterType1(t,e,i);break;case 2:this._unFilterType2(t,e,i);break;case 3:this._unFilterType3(t,e,i);break;case 4:this._unFilterType4(t,e,i);break;default:throw new Error("Unrecognised filter type - "+r)}this.write(e),n.lineIndex++,n.lineIndex>=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<n;a++)for(var s=0;s<r;s++){var u=i[t[o]];if(!u)throw new Error("index "+t[o]+" not in palette");for(var f=0;f<4;f++)e[o+f]=u[f];o+=4}}(t,u,n,i,s):(a&&function(t,e,r,n,i){for(var o=0,a=0;a<n;a++)for(var s=0;s<r;s++){var u=!1;if(1===i.length?i[0]===t[o]&&(u=!0):i[0]===t[o]&&i[1]===t[o+1]&&i[2]===t[o+2]&&(u=!0),u)for(var f=0;f<4;f++)e[o+f]=0;o+=4}}(t,u,n,i,a),8!==r&&(16===r&&(u=new f(n*i*4)),function(t,e,r,n,i){for(var o=Math.pow(2,i)-1,a=0,s=0;s<n;s++)for(var u=0;u<r;u++){for(var f=0;f<4;f++)e[a+f]=Math.floor(255*t[a+f]/o+.5);a+=4}}(t,u,n,i,r))),u}}).call(this,t("buffer").Buffer)},{buffer:11}],333:[function(t,e,r){"use strict";var c=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];r.getImagePasses=function(t,e){for(var r=[],n=t%8,i=e%8,o=(t-n)/8,a=(e-i)/8,s=0;s<c.length;s++){for(var u=c[s],f=o*u.x.length,l=a*u.y.length,h=0;h<u.x.length&&u.x[h]<n;h++)f++;for(h=0;h<u.y.length&&u.y[h]<i;h++)l++;0<f&&0<l&&r.push({width:f,height:l,index:s})}return r},r.getInterlaceIterator=function(a){return function(t,e,r){var n=t%c[r].x.length,i=(t-n)/c[r].x.length*8+c[r].x[n],o=e%c[r].y.length;return 4*i+((e-o)/c[r].y.length*8+c[r].y[o])*a*4}}},{}],334:[function(i,s,t){(function(o){"use strict";var t=i("util"),r=i("stream"),a=i("./constants"),n=i("./packer"),e=s.exports=function(t){r.call(this);var e=t||{};this._packer=new n(e),this._deflate=this._packer.createDeflate(),this.readable=!0};t.inherits(e,r),e.prototype.pack=function(t,e,r,n){this.emit("data",new o(a.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,r)),n&&this.emit("data",this._packer.packGAMA(n));var i=this._packer.filterData(t,e,r);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(t){this.emit("data",this._packer.packIDAT(t))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(i)}}).call(this,i("buffer").Buffer)},{"./constants":326,"./packer":336,buffer:11,stream:71,util:98}],335:[function(t,e,r){(function(a){"use strict";var s=!0,u=t("zlib");u.deflateSync||(s=!1);var f=t("./constants"),l=t("./packer");e.exports=function(t,e){if(!s)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var r=new l(e||{}),n=[];n.push(new a(f.PNG_SIGNATURE)),n.push(r.packIHDR(t.width,t.height)),t.gamma&&n.push(r.packGAMA(t.gamma));var i=r.filterData(t.data,t.width,t.height),o=u.deflateSync(i,r.getDeflateOptions());if(i=null,!o||!o.length)throw new Error("bad png - invalid compressed data response");return n.push(r.packIDAT(o)),n.push(r.packIEND()),a.concat(n)}}).call(this,t("buffer").Buffer)},{"./constants":326,"./packer":336,buffer:11,zlib:8}],336:[function(r,n,t){(function(i){"use strict";var o=r("./constants"),a=r("./crc"),s=r("./bitpacker"),u=r("./filter-pack"),e=r("zlib"),t=n.exports=function(t){if((this._options=t).deflateChunkSize=t.deflateChunkSize||32768,t.deflateLevel=null!=t.deflateLevel?t.deflateLevel:9,t.deflateStrategy=null!=t.deflateStrategy?t.deflateStrategy:3,t.inputHasAlpha=null==t.inputHasAlpha||t.inputHasAlpha,t.deflateFactory=t.deflateFactory||e.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType="number"==typeof t.colorType?t.colorType:o.COLORTYPE_COLOR_ALPHA,t.inputColorType="number"==typeof t.inputColorType?t.inputColorType:o.COLORTYPE_COLOR_ALPHA,-1===[o.COLORTYPE_GRAYSCALE,o.COLORTYPE_COLOR,o.COLORTYPE_COLOR_ALPHA,o.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error("option color type:"+t.colorType+" is not supported at present");if(-1===[o.COLORTYPE_GRAYSCALE,o.COLORTYPE_COLOR,o.COLORTYPE_COLOR_ALPHA,o.COLORTYPE_ALPHA].indexOf(t.inputColorType))throw new Error("option input color type:"+t.inputColorType+" is not supported at present");if(8!==t.bitDepth&&16!==t.bitDepth)throw new Error("option bit depth:"+t.bitDepth+" is not supported at present")};t.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},t.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},t.prototype.filterData=function(t,e,r){var n=s(t,e,r,this._options),i=o.COLORTYPE_TO_BPP_MAP[this._options.colorType];return u(n,e,r,this._options,i)},t.prototype._packChunk=function(t,e){var r=e?e.length:0,n=new i(r+12);return n.writeUInt32BE(r,0),n.writeUInt32BE(t,4),e&&e.copy(n,8),n.writeInt32BE(a.crc32(n.slice(4,n.length-4)),n.length-4),n},t.prototype.packGAMA=function(t){var e=new i(4);return e.writeUInt32BE(Math.floor(t*o.GAMMA_DIVISION),0),this._packChunk(o.TYPE_gAMA,e)},t.prototype.packIHDR=function(t,e){var r=new i(13);return r.writeUInt32BE(t,0),r.writeUInt32BE(e,4),r[8]=this._options.bitDepth,r[9]=this._options.colorType,r[10]=0,r[11]=0,r[12]=0,this._packChunk(o.TYPE_IHDR,r)},t.prototype.packIDAT=function(t){return this._packChunk(o.TYPE_IDAT,t)},t.prototype.packIEND=function(){return this._packChunk(o.TYPE_IEND,null)}}).call(this,r("buffer").Buffer)},{"./bitpacker":324,"./constants":326,"./crc":327,"./filter-pack":328,buffer:11,zlib:8}],337:[function(t,e,r){"use strict";e.exports=function(t,e,r){var n=t+e-r,i=Math.abs(n-t),o=Math.abs(n-e),a=Math.abs(n-r);return i<=o&&i<=a?t:o<=a?e:r}},{}],338:[function(t,e,r){"use strict";var n=t("util"),a=t("zlib"),i=t("./chunkstream"),o=t("./filter-parse-async"),s=t("./parser"),u=t("./bitmapper"),f=t("./format-normaliser"),l=e.exports=function(t){i.call(this),this._parser=new s(t,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};n.inherits(l,i),l.prototype._handleError=function(t){this.emit("error",t),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0},l.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=a.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{var e=(1+(this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>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;r<e.length;r++)if(t[r]!==e[r])return void this.error(new Error("Invalid file signature"));this.read(8,this._parseChunkBegin.bind(this))},t.prototype._parseChunkBegin=function(t){for(var e=t.readUInt32BE(0),r=t.readUInt32BE(4),n="",i=4;i<8;i++)n+=String.fromCharCode(t[i]);var o=Boolean(32&t[4]);if(this._hasIHDR||r===f.TYPE_IHDR){if(this._crc=new s,this._crc.write(new a(n)),this._chunks[r])return this._chunks[r](e);o?this.read(e+4,this._skipChunk.bind(this)):this.error(new Error("Unsupported critical chunk type "+n))}else this.error(new Error("Expected IHDR on beggining"))},t.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},t.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},t.prototype._parseChunkEnd=function(t){var e=t.readInt32BE(0),r=this._crc.crc32();this._options.checkCRC&&r!==e?this.error(new Error("Crc error - "+e+" - "+r)):this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},t.prototype._handleIHDR=function(t){this.read(t,this._parseIHDR.bind(this))},t.prototype._parseIHDR=function(t){this._crc.write(t);var e=t.readUInt32BE(0),r=t.readUInt32BE(4),n=t[8],i=t[9],o=t[10],a=t[11],s=t[12];if(8===n||4===n||2===n||1===n||16===n)if(i in f.COLORTYPE_TO_BPP_MAP)if(0===o)if(0===a)if(0===s||1===s){this._colorType=i;var u=f.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:r,depth:n,interlace:Boolean(s),palette:Boolean(i&f.COLORTYPE_PALETTE),color:Boolean(i&f.COLORTYPE_COLOR),alpha:Boolean(i&f.COLORTYPE_ALPHA),bpp:u,colorType:i}),this._handleChunkEnd()}else this.error(new Error("Unsupported interlace method"));else this.error(new Error("Unsupported filter method"));else this.error(new Error("Unsupported compression method"));else this.error(new Error("Unsupported color type"));else this.error(new Error("Unsupported bit depth "+n))},t.prototype._handlePLTE=function(t){this.read(t,this._parsePLTE.bind(this))},t.prototype._parsePLTE=function(t){this._crc.write(t);for(var e=Math.floor(t.length/3),r=0;r<e;r++)this._palette.push([t[3*r],t[3*r+1],t[3*r+2],255]);this.palette(this._palette),this._handleChunkEnd()},t.prototype._handleTRNS=function(t){this.read(t,this._parseTRNS.bind(this))},t.prototype._parseTRNS=function(t){if(this._crc.write(t),this._colorType===f.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length)return void this.error(new Error("Transparency chunk must be after palette"));if(t.length>this._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;e<t.length;e++)this._palette[e][3]=t[e];this.palette(this._palette)}this._colorType===f.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===f.COLORTYPE_COLOR&&this.transColor([t.readUInt16BE(0),t.readUInt16BE(2),t.readUInt16BE(4)]),this._handleChunkEnd()},t.prototype._handleGAMA=function(t){this.read(t,this._parseGAMA.bind(this))},t.prototype._parseGAMA=function(t){this._crc.write(t),this.gamma(t.readUInt32BE(0)/f.GAMMA_DIVISION),this._handleChunkEnd()},t.prototype._handleIDAT=function(t){this.read(-t,this._parseIDAT.bind(this,t))},t.prototype._parseIDAT=function(t,e){if(this._crc.write(e),this._colorType===f.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error("Expected palette not found");this.inflateData(e);var r=t-e.length;0<r?this._handleIDAT(r):this._handleChunkEnd()},t.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},t.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}}).call(this,e("buffer").Buffer)},{"./constants":326,"./crc":327,buffer:11}],341:[function(t,e,r){"use strict";var n=t("./parser-sync"),i=t("./packer-sync");r.read=function(t,e){return n(t,e||{})},r.write=function(t,e){return i(t,e)}},{"./packer-sync":335,"./parser-sync":339}],342:[function(u,t,f){(function(t,e){"use strict";var r=u("util"),n=u("stream"),i=u("./parser-async"),o=u("./packer-async"),a=u("./png-sync"),s=f.PNG=function(t){n.call(this),t=t||{},this.width=0|t.width,this.height=0|t.height,this.data=0<this.width&&0<this.height?new e(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new i(t),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new o(t),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};r.inherits(s,n),s.sync=a,s.prototype.pack=function(){return this.data&&this.data.length?t.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)):this.emit("error","No data provided"),this},s.prototype.parse=function(t,e){var r,n;e&&(r=function(t){this.removeListener("error",n),this.data=t,e(null,this)}.bind(this),n=function(t){this.removeListener("parsed",r),e(t,null)}.bind(this),this.once("parsed",r),this.once("error",n));return this.end(t),this},s.prototype.write=function(t){return this._parser.write(t),!0},s.prototype.end=function(t){this._parser.end(t)},s.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},s.prototype._gamma=function(t){this.gamma=t},s.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},s.bitblt=function(t,e,r,n,i,o,a,s){if(n|=0,i|=0,o|=0,a|=0,s|=0,(r|=0)>t.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;u<o;u++)t.data.copy(e.data,(s+u)*e.width+a<<2,(n+u)*t.width+r<<2,(n+u)*t.width+r+i<<2)},s.prototype.bitblt=function(t,e,r,n,i,o,a){return s.bitblt(this,t,e,r,n,i,o,a),this},s.adjustGamma=function(t){if(t.gamma){for(var e=0;e<t.height;e++)for(var r=0;r<t.width;r++)for(var n=t.width*e+r<<2,i=0;i<3;i++){var o=t.data[n+i]/255;o=Math.pow(o,1/2.2/t.gamma),t.data[n+i]=Math.round(255*o)}t.gamma=0}},s.prototype.adjustGamma=function(){s.adjustGamma(this)}}).call(this,u("_process"),u("buffer").Buffer)},{"./packer-async":334,"./parser-async":338,"./png-sync":341,_process:53,buffer:11,stream:71,util:98}],343:[function(i,o,a){(function(r,p){"use strict";var m=i("assert").ok,b=i("zlib"),t=i("util"),_=i("buffer").kMaxLength;function n(t){if(!(this instanceof n))return new n(t);t&&t.chunkSize<b.Z_MIN_CHUNK&&(t.chunkSize=b.Z_MIN_CHUNK),b.Inflate.call(this,t),this._offset=void 0===this._offset?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,t&&null!=t.maxLength&&(this._maxLength=t.maxLength)}function g(t,e){e&&r.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function e(t,e){return function(t,e){if("string"==typeof e&&(e=p.from(e)),!(e instanceof p))throw new TypeError("Not a string or buffer");var r=t._finishFlushFlag;return null==r&&(r=b.Z_FINISH),t._processChunk(e,r)}(new n(e),t)}n.prototype._processChunk=function(t,e,r){if("function"==typeof r)return b.Inflate._processChunk.call(this,t,e,r);var n,i=this,o=t&&t.length,a=this._chunkSize-this._offset,s=this._maxLength,u=0,f=[],l=0;function h(t,e){if(!i._hadError){var r=a-e;if(m(0<=r,"have should not go down"),0<r){var n=i._buffer.slice(i._offset,i._offset+r);if(i._offset+=r,n.length>s&&(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<this._reads.length&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=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<this._reads.length?new Error("There are some read requests waitng on finished stream"):0<this._buffer.length?new Error("unrecognised content at end of stream"):void 0}},{}],345:[function(t,e,A){(function(p){"use strict";Object.defineProperty(A,"__esModule",{value:!0});var r="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};A.clone=g,A.addLast=t,A.addFirst=e,A.removeLast=n,A.removeFirst=i,A.insert=o,A.removeAt=a,A.replaceAt=s,A.getIn=h,A.set=u,A.setIn=c,A.update=l,A.updateIn=d,A.merge=w,A.mergeDeep=E,A.mergeIn=x,A.omit=k,A.addDefaults=S;var m="INVALID_ARGS";function b(t){throw new Error(t)}function _(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var f={}.hasOwnProperty;function g(t){if(Array.isArray(t))return t.slice();for(var e=_(t),r={},n=0;n<e.length;n++){var i=e[n];r[i]=t[i]}return r}function y(t,e,r){var n=r;null==n&&b("production"!==p.env.NODE_ENV?"At least one object should be provided to merge()":m);for(var i=!1,o=arguments.length,a=Array(3<o?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];for(var u=0;u<a.length;u++){var f=a[u];if(null!=f){var l=_(f);if(l.length)for(var h=0;h<=l.length;h++){var c=l[h];if(!t||void 0===n[c]){var d=f[c];e&&v(n[c])&&v(d)&&(d=y(t,e,n[c],d)),void 0!==d&&d!==n[c]&&(i||(i=!0,n=g(n)),n[c]=d)}}}}return n}function v(t){var e=void 0===t?"undefined":r(t);return null!=t&&"object"===e}function t(t,e){return Array.isArray(e)?t.concat(e):t.concat([e])}function e(t,e){return Array.isArray(e)?e.concat(t):[e].concat(t)}function n(t){return t.length?t.slice(0,t.length-1):t}function i(t){return t.length?t.slice(1):t}function o(t,e,r){return t.slice(0,e).concat(Array.isArray(r)?r:[r]).concat(t.slice(e))}function a(t,e){return e>=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<n;o++)i[o]=t[o];return i[e]=r,i}function h(t,e){if(Array.isArray(e)||b("production"!==p.env.NODE_ENV?"A path array should be provided when calling getIn()":m),null!=t){for(var r=t,n=0;n<e.length;n++){var i=e[n];if(void 0===(r=null!=r?r[i]:void 0))return r}return r}}function u(t,e,r){var n=null==t?"number"==typeof e?[]:{}:t;if(n[e]===r)return n;var i=g(n);return i[e]=r,i}function c(t,e,r){return e.length?function t(e,r,n,i){var o=void 0,a=r[i];o=i===r.length-1?n:t(v(e)&&v(e[a])?e[a]:"number"==typeof r[i+1]?[]:{},r,n,i+1);return u(e,a,o)}(t,e,r,0):r}function l(t,e,r){return u(t,e,r(null==t?void 0:t[e]))}function d(t,e,r){return c(t,e,r(h(t,e)))}function w(t,e,r,n,i,o){for(var a=arguments.length,s=Array(6<a?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?y.call.apply(y,[null,!1,!1,t,e,r,n,i,o].concat(s)):y(!1,!1,t,e,r,n,i,o)}function E(t,e,r,n,i,o){for(var a=arguments.length,s=Array(6<a?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?y.call.apply(y,[null,!1,!0,t,e,r,n,i,o].concat(s)):y(!1,!0,t,e,r,n,i,o)}function x(t,e,r,n,i,o,a){var s=h(t,e);null==s&&(s={});for(var u=arguments.length,f=Array(7<u?u-7:0),l=7;l<u;l++)f[l-7]=arguments[l];return c(t,e,f.length?y.call.apply(y,[null,!1,!1,s,r,n,i,o,a].concat(f)):y(!1,!1,s,r,n,i,o,a))}function k(t,e){for(var r=Array.isArray(e)?e:[e],n=!1,i=0;i<r.length;i++)if(f.call(t,r[i])){n=!0;break}if(!n)return t;for(var o={},a=_(t),s=0;s<a.length;s++){var u=a[s];0<=r.indexOf(u)||(o[u]=t[u])}return o}function S(t,e,r,n,i,o){for(var a=arguments.length,s=Array(6<a?a-6:0),u=6;u<a;u++)s[u-6]=arguments[u];return s.length?y.call.apply(y,[null,!0,!1,t,e,r,n,i,o].concat(s)):y(!0,!1,t,e,r,n,i,o)}var j={clone:g,addLast:t,addFirst:e,removeLast:n,removeFirst:i,insert:o,removeAt:a,replaceAt:s,getIn:h,set:u,setIn:c,update:l,updateIn:d,merge:w,mergeDeep:E,mergeIn:x,omit:k,addDefaults:S};A.default=j}).call(this,t("_process"))},{_process:53}],346:[function(t,z,e){!function(f){var u=/^\s+/,l=/\s+$/,n=0,a=f.round,h=f.min,c=f.max,t=f.random;function d(t,e){if(e=e||{},(t=t||"")instanceof d)return t;if(!(this instanceof d))return new d(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(u,"").replace(l,"").toLowerCase();var e,r=!1;if(j[t])t=j[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=U.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=U.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=U.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=U.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=U.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=U.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=U.hex8.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:C(e[4]),format:r?"name":"hex8"};if(e=U.hex6.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:r?"name":"hex"};if(e=U.hex4.exec(t))return{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),a:C(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=U.hex3.exec(t))return{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==typeof t&&(F(t.r)&&F(t.g)&&F(t.b)?(e=function(t,e,r){return{r:255*T(t,255),g:255*T(e,255),b:255*T(r,255)}}(t.r,t.g,t.b),a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):F(t.h)&&F(t.s)&&F(t.v)?(n=R(t.s),i=R(t.v),e=function(t,e,r){t=6*T(t,360),e=T(e,100),r=T(r,100);var n=f.floor(t),i=t-n,o=r*(1-e),a=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6;return{r:255*[r,a,o,o,s,r][u],g:255*[s,r,r,a,o,o][u],b:255*[o,o,s,r,r,a][u]}}(t.h,n,i),a=!0,s="hsv"):F(t.h)&&F(t.s)&&F(t.l)&&(n=R(t.s),o=R(t.l),e=function(t,e,r){var n,i,o;function a(t,e,r){return r<0&&(r+=1),1<r&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=T(t,360),e=T(e,100),r=T(r,100),0===e)n=i=o=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*o}}(t.h,n,o),a=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a));return r=I(r),{ok:a,format:t.format||s,r:h(255,c(e.r,0)),g:h(255,c(e.g,0)),b:h(255,c(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=a(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=r.ok,this._tc_id=n++}function i(t,e,r){t=T(t,255),e=T(e,255),r=T(r,255);var n,i,o=c(t,e,r),a=h(t,e,r),s=(o+a)/2;if(o==a)n=i=0;else{var u=o-a;switch(i=.5<s?u/(2-o-a):u/(o+a),o){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function o(t,e,r){t=T(t,255),e=T(e,255),r=T(r,255);var n,i,o=c(t,e,r),a=h(t,e,r),s=o,u=o-a;if(i=0===o?0:u/o,o==a)n=0;else{switch(o){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function e(t,e,r,n){var i=[M(a(t).toString(16)),M(a(e).toString(16)),M(a(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function s(t,e,r,n){return[M(L(n)),M(a(t).toString(16)),M(a(e).toString(16)),M(a(r).toString(16))].join("")}function r(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.s-=e/100,r.s=O(r.s),d(r)}function p(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.s+=e/100,r.s=O(r.s),d(r)}function m(t){return d(t).desaturate(100)}function b(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.l+=e/100,r.l=O(r.l),d(r)}function _(t,e){e=0===e?0:e||10;var r=d(t).toRgb();return r.r=c(0,h(255,r.r-a(-e/100*255))),r.g=c(0,h(255,r.g-a(-e/100*255))),r.b=c(0,h(255,r.b-a(-e/100*255))),d(r)}function g(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.l-=e/100,r.l=O(r.l),d(r)}function y(t,e){var r=d(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,d(r)}function v(t){var e=d(t).toHsl();return e.h=(e.h+180)%360,d(e)}function w(t){var e=d(t).toHsl(),r=e.h;return[d(t),d({h:(r+120)%360,s:e.s,l:e.l}),d({h:(r+240)%360,s:e.s,l:e.l})]}function E(t){var e=d(t).toHsl(),r=e.h;return[d(t),d({h:(r+90)%360,s:e.s,l:e.l}),d({h:(r+180)%360,s:e.s,l:e.l}),d({h:(r+270)%360,s:e.s,l:e.l})]}function x(t){var e=d(t).toHsl(),r=e.h;return[d(t),d({h:(r+72)%360,s:e.s,l:e.l}),d({h:(r+216)%360,s:e.s,l:e.l})]}function k(t,e,r){e=e||6,r=r||30;var n=d(t).toHsl(),i=360/r,o=[d(t)];for(n.h=(n.h-(i*e>>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<e.length;f++)u<(n=d.readability(t,e[f]))&&(u=n,s=d(e[f]));return d.isReadable(t,s,{level:o,size:a})||!i?s:(r.includeFallbackColors=!1,d.mostReadable(t,["#fff","#000"],r))};var j=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=d.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(j);function I(t){return t=parseFloat(t),(isNaN(t)||t<0||1<t)&&(t=1),t}function T(t,e){!function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}(t)||(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=h(e,c(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),f.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function O(t){return h(1,c(0,t))}function P(t){return parseInt(t,16)}function M(t){return 1==t.length?"0"+t:""+t}function R(t){return t<=1&&(t=100*t+"%"),t}function L(t){return f.round(255*parseFloat(t)).toString(16)}function C(t){return P(t)/255}var B,N,D,U=(N="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",D="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+D),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function F(t){return!!U.CSS_UNIT.exec(t)}void 0!==z&&z.exports?z.exports=d:window.tinycolor=d}(Math)},{}],347:[function(t,e,r){(r=e.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},r.right=function(t){return t.replace(/\s*$/,"")}},{}],348:[function(a,s,t){(function(t){function M(){void 0!==t&&"development"!=t.env.NODE_ENV||console.log.apply(console,arguments)}function e(t,e){this.message=t,this.g=e}function r(t){this.message="JPEG error: "+t}function n(){this.M=null,this.B=-1}function x(t,e){for(var r,n,i=0,o=[],a=16;0<a&&!t[a-1];)a--;o.push({children:[],index:0});var s,u=o[0];for(r=0;r<a;r++){for(n=0;n<t[r];n++){for((u=o.pop()).children[u.index]=e[i];0<u.index;)u=o.pop();for(u.index++,o.push(u);o.length<=r;)o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<a&&(o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return o[0].children}function k(r,n,i,t,e,a,s,o,u,f){function l(){if(0<S)return k>>--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<e&&e!==i.g)throw new D("Found DNL marker (0xFFDC) while parsing scan data",e)}throw new N("unexpected marker "+(k<<8|t).toString(16))}}return k>>>(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<t;)e=e<<1|l(),t--;return e}function d(t){if(1===t)return 1===l()?1:-1;var e=c(t);return 1<<t-1<=e?e:e+(-1<<t)+1}for(var p,m,b,_,g,y,v,w=9<arguments.length&&void 0!==f&&f,E=i.P,x=n,k=0,S=0,j=0,A=0,I=t.length,T=i.S?0===a?0===o?function(t,e){var r=h(t.D);r=0===r?0:d(r)<<u,t.a[e]=t.m+=r}:function(t,e){t.a[e]|=l()<<u}:0===o?function(t,e){if(0<j)j--;else for(var r=a;r<=s;){var n=h(t.o),i=15&n;if(n>>=4,0==i){if(n<15){j=c(n)+(1<<n)-1;break}r+=16}else r+=n,t.a[e+C[r]]=d(i)*(1<<u),r++}}:function(t,e){for(var r,n=a,i=0;n<=s;){r=e+C[n];var o=t.a[r]<0?-1:1;switch(A){case 0:if(r=15&(i=h(t.o)),i>>=4,0===r)A=i<15?(j=c(i)+(1<<i),4):(i=16,1);else{if(1!==r)throw new N("invalid ACn encoding");p=d(r),A=i?2:3}continue;case 1:case 2:t.a[r]?t.a[r]+=o*(l()<<u):0===--i&&(A=2===A?3:0);break;case 3:t.a[r]?t.a[r]+=o*(l()<<u):(t.a[r]=p<<u,A=0);break;case 4:t.a[r]&&(t.a[r]+=o*(l()<<u))}n++}4!==A||0===--j&&(A=0)}:function(t,e){var r=h(t.D);for(r=0===r?0:d(r),t.a[e]=t.m+=r,r=1;r<64;){var n=h(t.o),i=15&n;if(n>>=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<P;){var M=e?Math.min(P-O,e):P;for(m=0;m<I;m++)t[m].m=0;if(j=0,1===I){var R=t[0];for(g=0;g<M;g++)T(R,64*((R.c+1)*(O/R.c|0)+O%R.c)),O++}else for(g=0;g<M;g++){for(m=0;m<I;m++)for(y=(R=t[m]).h,v=R.j,b=0;b<v;b++)for(_=0;_<y;_++)T(R,64*((R.c+1)*((O/E|0)*R.j+b)+(O%E*R.h+_)));O++}if(S=0,(R=L(r,n))&&R.f&&((0,_util.warn)("decodeScan - unexpected MCU data, current marker is: "+R.f),n=R.offset),!(R=R&&R.F)||R<=65280)throw new N("marker was not found");if(!(65488<=R&&R<=65495))break;n+=2}return(R=L(r,n))&&R.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+R.f),n=R.offset),n-x}function S(t,e){for(var r=e.c,n=e.l,i=new Int16Array(64),o=0;o<n;o++)for(var a=0;a<r;a++){var s=64*((e.c+1)*o+a),u=i,f=e.G,l=e.a;if(!f)throw new N("missing required Quantization Table.");for(var h=0;h<64;h+=8){var c=l[s+h],d=l[s+h+1],p=l[s+h+2],m=l[s+h+3],b=l[s+h+4],_=l[s+h+5],g=l[s+h+6],y=l[s+h+7];if(c*=f[h],0==(d|p|m|b|_|g|y))c=5793*c+512>>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<arguments.length&&void 0!==r?r:e,i=t.length-1;if(n=n<e?n:e,i<=e)return null;var o=t[e]<<8|t[e+1];if(65472<=o&&o<=65534)return{f:null,F:o,offset:e};for(var a=t[n]<<8|t[n+1];!(65472<=a&&a<=65534);){if(++n>=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<t.b.length;n++){w=t.b[n];var i=Math.ceil(Math.ceil(t.v/8)*w.h/t.s),o=Math.ceil(Math.ceil(t.g/8)*w.j/t.u);w.a=new Int16Array(64*r*w.j*(e*w.h+1)),w.c=i,w.l=o}t.P=e,t.O=r}var n=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).N,i=void 0===n?null:n,o=0,a=null,s=0;n=[];var u,f,l=[],h=[],c=t();if(65496!==c)throw new N("SOI not found");for(c=t();65497!==c;){switch(c){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var d=(u=void 0,u=t(),(f=L(e,u=o+u-2,o))&&f.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+f.f),u=f.offset),u=e.subarray(o,u),o+=u.length,u);65518===c&&65===d[0]&&100===d[1]&&111===d[2]&&98===d[3]&&101===d[4]&&(a={version:d[5]<<8|d[6],Y:d[7]<<8|d[8],Z:d[9]<<8|d[10],W:d[11]});break;case 65499:c=t()+o-2;for(var p;o<c;){var m=e[o++],b=new Uint16Array(64);if(0==m>>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<d;c++){p=e[o];var g=e[o+1]>>4,y=15&e[o+1];m<g&&(m=g),b<y&&(b=y),g=_.b.push({h:g,j:y,T:e[o+2],G:null}),_.C[p]=g-1,o+=3}_.s=m,_.u=b,r(_);break;case 65476:for(p=t(),c=2;c<p;){for(m=e[o++],b=new Uint8Array(16),d=g=0;d<16;d++,o++)g+=b[d]=e[o];for(y=new Uint8Array(g),d=0;d<g;d++,o++)y[d]=e[o];c+=17+g,(0==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<m;c++){b=_.C[e[o++]];var w=_.b[b];b=e[o++],w.D=h[b>>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<a;n++){var l=this.b[n],h=l.U*i,c=l.V*o,d=n,p=l.R,m=l.c+1<<3;for(r=0;r<t;r++)l=0|r*h,f[r]=(4294967288&l)<<3|7&l;for(h=0;h<e;h++)for(l=m*(4294967288&(l=0|h*c))|(7&l)<<3,r=0;r<t;r++)u[d]=p[l+f[r]],d+=a}if(o=this.M)for(n=0;n<s;)for(i=l=0;l<a;l++,n++,i+=2)u[n]=(u[n]*o[i]>>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<o;i+=3)e=t[i],r=t[i+1],n=t[i+2],t[i]=e-179.456+1.402*n,t[i+1]=e+135.459-.344*r-.714*n,t[i+2]=e-226.816+1.772*r;return t},K:function(t){for(var e,r,n,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a],r=t[a+1],n=t[a+2],i=t[a+3],t[o++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*i-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*i+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),t[o++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*e+.000426105652938837*i-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*i-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),t[o++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*i+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*i-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return t.subarray(0,o)},J:function(t){for(var e,r,n,i=0,o=t.length;i<o;i+=4)e=t[i],r=t[i+1],n=t[i+2],t[i]=434.456-e-1.402*n,t[i+1]=119.541-e+.344*r+.714*n,t[i+2]=481.816-e-1.772*r;return t},H:function(t){for(var e,r,n,i,o=0,a=0,s=t.length;a<s;a+=4)e=t[a]*(1/255),r=t[a+1]*(1/255),n=t[a+2]*(1/255),i=t[a+3]*(1/255),t[o++]=255+e*(-4.387332384609988*e+54.48615194189176*r+18.82290502165302*n+212.25662451639585*i-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*n-17.873870861415444*i-5.497006427196366)+n*(-2.5217340131683033*n-21.248923337353073*i+17.5119270841813)-i*(21.86122147463605*i+189.48180835922747),t[o++]=255+e*(8.841041422036149*e+60.118027045597366*r+6.871425592049007*n+31.159100130055922*i-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*n+131.35250912493976*i-190.9453302588951)+n*(4.444339102852739*n+9.8632861493405*i-24.86741582555878)-i*(20.737325471181034*i+187.80453709719578),t[o++]=255+e*(.8842522430003296*e+8.078677503112928*r+30.89978309703729*n-.23883238689178934*i-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*n+50.606957656360734*i-112.23884253719248)+n*(.03296041114873217*n+115.60384449646641*i-193.58209356861505)-i*(22.33816807309886*i+180.12613974708367);return t.subarray(0,o)},getData:function(t,e,r){if(4<this.i)throw new N("Unsupported color mode");if(t=this.L(t,e),1===this.i&&r){r=t.length,e=new Uint8ClampedArray(3*r);for(var n=0,i=0;i<r;i++){var o=t[i];e[n++]=o,e[n++]=o,e[n++]=o}return e}if(3===this.i&&this.w())return this.I(t);if(4===this.i){if(this.w())return r?this.K(t):this.J(t);if(r)return this.H(t)}return t}},j.JpegDecoder=n,j.encodeImage=function(t,e,r,n){var i={t256:[e],t257:[r],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[r],t279:[e*r*4],t282:[1],t283:[1],t284:[1],t286:[0],t287:[0],t296:[1],t305:["Photopea (UTIF.js)"],t338:[1]};if(n)for(var o in n)i[o]=n[o];var a=new Uint8Array(j.encode([i])),s=new Uint8Array(t),u=new Uint8Array(1e3+e*r*4);for(o=0;o<a.length;o++)u[o]=a[o];for(o=0;o<s.length;o++)u[1e3+o]=s[o];return u.buffer},j.encode=function(t){var e=new Uint8Array(2e4),r=4,n=j._binBE;e[0]=77,e[1]=77,e[3]=42;var i=8;n.writeUint(e,r,i),r+=4;for(var o=0;o<t.length;o++){var a=j._writeIFD(n,e,i,t[o]);i=a[1],o<t.length-1&&n.writeUint(e,a[0],i)}return e.slice(0,i).buffer},j.decode=function(t){j.decode._decodeG3.allow2D=null;var e=new Uint8Array(t),r=0,n=j._binBE.readASCII(e,r,2);r+=2;var i="II"==n?j._binLE:j._binBE;i.readUshort(e,r),r+=2;var o=i.readUint(e,r);r+=4;for(var a=[];;){var s=j._readIFD(i,e,o,a);if(0==(o=i.readUint(e,s)))break}return a},j.decodeImages=function(t,e){for(var r=new Uint8Array(t),n=j._binBE.readASCII(r,0,2),i=0;i<e.length;i++){var o=e[i];if(null!=o.t256){o.isLE="II"==n,o.width=o.t256[0],o.height=o.t257[0];var a=o.t259?o.t259[0]:1,s=o.t266?o.t266[0]:1;o.t284&&2==o.t284[0]&&M("PlanarConfiguration 2 should not be used!");var u=(o.t258?Math.min(32,o.t258[0]):1)*(o.t277?o.t277[0]:1),f=8*Math.ceil(o.width*u/8),l=o.t273;null==l&&(l=o.t324);var h=o.t279;1==a&&1==l.length&&(h=[o.height*(f>>>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<b;v++){for(var w=y*b+v,E=0;E<g.length;E++)g[E]=0;j.decode._decompress(o,r,l[w],h[w],a,g,0,s),6==a?c=g:j._copyTile(g,0|Math.ceil(p*u/8),m,c,0|Math.ceil(o.width*u/8),o.height,0|Math.ceil(v*p*u/8),y*m)}d=8*c.length}else{var x=o.t278?o.t278[0]:o.height;for(x=Math.min(x,o.height),w=0;w<l.length;w++)j.decode._decompress(o,r,l[w],h[w],a,c,0|Math.ceil(d/8),s),d+=f*x;d=Math.min(d,8*c.length)}o.data=new Uint8Array(c.buffer,0,0|Math.ceil(d/8))}}},j.decode._decompress=function(t,e,r,n,i,o,a,s){if(1==i)for(var u=0;u<n;u++)o[a+u]=e[r+u];else if(3==i)j.decode._decodeG3(e,r,n,o,a,t.width,s);else if(4==i)j.decode._decodeG4(e,r,n,o,a,t.width,s);else if(5==i)j.decode._decodeLZW(e,r,o,a);else if(6==i)j.decode._decodeOldJPEG(t,e,r,n,o,a);else if(7==i)j.decode._decodeNewJPEG(t,e,r,n,o,a);else if(8==i)for(var f=new Uint8Array(e.buffer,r,n),l=_.inflate(f),h=0;h<l.length;h++)o[a+h]=l[h];else 32773==i?j.decode._decodePackBits(e,r,n,o,a):32809==i?j.decode._decodeThunder(e,r,n,o,a):M("Unknown compression",i);if(t.t317&&2==t.t317[0])for(var c=t.t277?t.t277[0]:1,d=t.t278?t.t278[0]:t.height,p=t.width*c,m=0;m<d;m++){var b=a+m*p;if(3==c)for(u=3;u<p;u+=3)o[b+u]=o[b+u]+o[b+u-3]&255,o[b+u+1]=o[b+u+1]+o[b+u-2]&255,o[b+u+2]=o[b+u+2]+o[b+u-1]&255;else for(u=c;u<p;u++)o[b+u]=o[b+u]+o[b+u-c]&255}},j.decode._decodeNikon=function(t,e,r,n,i){var o,a;M(t.slice(e,e+100)),o=t[e],a=t[++e],e++,M(o.toString(16),a.toString(16),r)},j.decode._decodeNewJPEG=function(t,e,r,n,i,o){var a=t.t347,s=a?a.length:0,u=new Uint8Array(s+n);if(a){for(var f=0,l=0;l<s-1&&(255!=a[l]||217!=a[l+1]);l++)u[f++]=a[l];var h=e[r],c=e[r+1];for(255==h&&216==c||(u[f++]=h,u[f++]=c),l=2;l<n;l++)u[f++]=e[r+l]}else for(l=0;l<n;l++)u[l]=e[r+l];if(32803==t.t262){var d=t.t258[0],p=(new LosslessJpegDecoder).decode(u),m=p.length;if(16==d)for(l=0;l<m;l++)i[o++]=255&p[l],i[o++]=p[l]>>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(l=0;l<m;l+=2)i[o++]=p[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<b.length),!h){if(255==e[r]&&216==e[r+1])return{jpegOffset:r};if(null!=c&&(255==e[r+d]&&216==e[r+d+1]?f=r+d:M("JPEGInterchangeFormat does not point to SOI"),null==p?M("JPEGInterchangeFormatLength field is missing"):(l<=d||d+m<=l)&&M("JPEGInterchangeFormatLength field value is invalid"),null!=f))return{jpegOffset:f}}if(null!=_&&(g=_[0],y=_[1]),null!=c&&null!=p)if(2<=m&&d+m<=l){for(i=255==e[r+d+m-2]&&216==e[r+d+m-1]?new Uint8Array(m-2):new Uint8Array(m),a=0;a<i.length;a++)i[a]=e[r+d+a];M("Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables")}else M("JPEGInterchangeFormat+JPEGInterchangeFormatLength > 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<k.length;a++)for(x[E++]=255,x[E++]=219,x[E++]=0,x[E++]=67,x[E++]=a,s=0;s<64;s++)x[E++]=e[r+k[a]+s];for(u=0;u<2;u++){var S=t[0==u?"t520":"t521"];if(null==S)throw new Error((0==u?"JPEGDCTables":"JPEGACTables")+" tag is missing");for(a=0;a<S.length;a++){x[E++]=255,x[E++]=196;var j=19;for(s=0;s<16;s++)j+=e[r+S[a]+s];for(x[E++]=j>>>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<j;s++)x[E++]=e[r+S[a]+16+s]}}if(x[E++]=255,x[E++]=192,x[E++]=0,x[E++]=8+3*v,x[E++]=8,x[E++]=t.height>>>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<i.length-1;){if(255==i[a]&&192==i[a+1]){A=a;break}a++}if(-1==A){var I=new Uint8Array(i.length+10+3*v);I.set(i);var T=i.length;if(A=i.length,(i=I)[T++]=255,i[T++]=192,i[T++]=0,i[T++]=8+3*v,i[T++]=8,i[T++]=t.height>>>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<O-2;a++)o[a+4]=e[l+a+4]}else{var P=0;if((o=new Uint8Array(8+2*v))[P++]=255,o[P++]=218,o[P++]=0,o[P++]=6+2*v,1==(o[P++]=v))o[P++]=1,o[P++]=0;else for(a=0;a<3;a++)o[P++]=a+1,o[P++]=a<<4|a;o[P++]=0,o[P++]=63,o[P++]=0}return{jpegOffset:r,tables:i,sosMarker:o,sofPosition:A}},j.decode._decodeOldJPEG=function(t,e,r,n,i,o){var a,s,u,f=j.decode._decodeOldJPEGInit(t,e,r,n);if(null!=f.jpegOffset)for(a=r+n-f.jpegOffset,u=new Uint8Array(a),c=0;c<a;c++)u[c]=e[f.jpegOffset+c];else{for(s=f.tables.length,(u=new Uint8Array(s+f.sosMarker.length+n+2)).set(f.tables),u[f.sofPosition+5]=t.height>>>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<n;c++)u[bufoff++]=e[r+c];u[bufoff++]=255,u[bufoff++]=EOI}var l=new j.JpegDecoder;l.parse(u);for(var h=l.getData(l.width,l.height),c=0;c<h.length;c++)i[o+c]=h[c];6==t.t262[0]&&(t.t262[0]=2)},j.decode._decodePackBits=function(t,e,r,n,i){for(var o=new Int8Array(t.buffer),a=new Int8Array(n.buffer),s=e+r;e<s;){var u=o[e];if(e++,0<=u&&u<128)for(var f=0;f<u+1;f++)a[i]=o[e],i++,e++;if(-127<=u&&u<0){for(f=0;f<1-u;f++)a[i]=o[e],i++;e++}}},j.decode._decodeThunder=function(t,e,r,n,i){for(var o=[0,1,0,-1],a=[0,1,2,3,0,-3,-2,-1],s=e+r,u=2*i,f=0;e<s;){var l=t[e],h=l>>>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<c;d++)n[u>>>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<e.length;i++)t[e[i]]=r+i*n}var e="00110101,000111,0111,1000,1011,1100,1110,1111,10011,10100,00111,01000,001000,000011,110100,110101,101010,101011,0100111,0001100,0001000,0010111,0000011,0000100,0101000,0101011,0010011,0100100,0011000,00000010,00000011,00011010,00011011,00010010,00010011,00010100,00010101,00010110,00010111,00101000,00101001,00101010,00101011,00101100,00101101,00000100,00000101,00001010,00001011,01010010,01010011,01010100,01010101,00100100,00100101,01011000,01011001,01011010,01011011,01001010,01001011,00110010,00110011,00110100",r="0000110111,010,11,10,011,0011,0010,00011,000101,000100,0000100,0000101,0000111,00000100,00000111,000011000,0000010111,0000011000,0000001000,00001100111,00001101000,00001101100,00000110111,00000101000,00000010111,00000011000,000011001010,000011001011,000011001100,000011001101,000001101000,000001101001,000001101010,000001101011,000011010010,000011010011,000011010100,000011010101,000011010110,000011010111,000001101100,000001101101,000011011010,000011011011,000001010100,000001010101,000001010110,000001010111,000001100100,000001100101,000001010010,000001010011,000000100100,000000110111,000000111000,000000100111,000000101000,000001011000,000001011001,000000101011,000000101100,000001011010,000001100110,000001100111",n="11011,10010,010111,0110111,00110110,00110111,01100100,01100101,01101000,01100111,011001100,011001101,011010010,011010011,011010100,011010101,011010110,011010111,011011000,011011001,011011010,011011011,010011000,010011001,010011010,011000,010011011",i="0000001111,000011001000,000011001001,000001011011,000000110011,000000110100,000000110101,0000001101100,0000001101101,0000001001010,0000001001011,0000001001100,0000001001101,0000001110010,0000001110011,0000001110100,0000001110101,0000001110110,0000001110111,0000001010010,0000001010011,0000001010100,0000001010101,0000001011010,0000001011011,0000001100100,0000001100101",o="00000001000,00000001100,00000001101,000000010010,000000010011,000000010100,000000010101,000000010110,000000010111,000000011100,000000011101,000000011110,000000011111";e=e.split(","),r=r.split(","),n=n.split(","),i=i.split(","),o=o.split(",");var a={},s={};return t(a,e,0,1),t(a,n,64,64),t(a,o,1792,64),t(s,r,0,1),t(s,i,64,64),t(s,o,1792,64),[a,s]}(),j.decode._decodeG4=function(t,e,r,n,i,o,a){for(var s=j.decode,u=e<<3,f=0,l="",h=[],c=[],d=0;d<o;d++)c.push(0);c=s._makeDiff(c);for(var p=0,m=0,b=0,_=0,g=0,y=0,v="",w=0,E=8*Math.ceil(o/8);u>>>3<e+r;){b=s._findDiff(c,p+(0==p?0:1),1-g),_=s._findDiff(c,b,g);var x=0;if(1==a&&(x=t[u>>>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<t.length;n+=2)if(t[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<t.length;r++)t[r-1]!=t[r]&&e.push(r,t[r]);return e.push(t.length,0,t.length,1),e},j.decode._decodeG3=function(t,e,r,n,i,o,a){for(var s=j.decode,u=e<<3,f=0,l="",h=[],c=[],d=0;d<o;d++)h.push(0);for(var p=0,m=0,b=0,_=0,g=0,y=-1,v="",w=0,E=!1,x=8*Math.ceil(o/8);u>>>3<e+r;){b=s._findDiff(c,p+(0==p?0:1),1-g),_=s._findDiff(c,b,g);var k=0;if(1==a&&(k=t[u>>>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<e;n++)t.push(r)},j.decode._writeBits=function(t,e,r){for(var n=0;n<t.length;n++)e[r+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<<d)-1,p+=d,257!=m;){if(256==m){if(d=9,h=258,c=1032,m=(t[p>>>3]<<16|t[p+8>>>3]<<8|t[p+16>>>3])>>24-(7&p)-d&(1<<d)-1,p+=d,257==m)break;r[n]=m,n++}else if(m<h){var _=f[m],g=l[m];u(a,_,r,n,g),n+=g,h<=b?(f[h]=c,a[f[h]]=_[0],c=c+(l[h]=1)+3&-4,h++):(f[h]=c,u(a,f[b],a,c,y=l[b]),a[c+y]=a[_],y++,l[h]=y,h++,c=c+y+3&-4),h+1==1<<d&&d++}else{var y;h<=b?(f[h]=c,l[h]=0,h++):(f[h]=c,u(a,f[b],a,c,y=l[b]),a[c+y]=a[c],y++,l[h]=y,h++,u(a,c,r,n,y),n+=y,c=c+y+3&-4),h+1==1<<d&&d++}b=m}},j.decode._copyData=function(t,e,r,n,i){for(var o=0;o<i;o+=4)r[n+o]=t[e+o],r[n+o+1]=t[e+o+1],r[n+o+2]=t[e+o+2],r[n+o+3]=t[e+o+3]},j.tags={254:"NewSubfileType",255:"SubfileType",256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",266:"FillOrder",269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffset",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",285:"PageName",286:"XPosition",287:"YPosition",292:"T4Options",296:"ResolutionUnit",297:"PageNumber",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:"WhitePoint",319:"PrimaryChromaticities",320:"ColorMap",321:"HalftoneHints",322:"TileWidth",323:"TileLength",324:"TileOffset",325:"TileByteCounts",330:"SubIFDs",336:"DotRange",338:"ExtraSample",339:"SampleFormat",347:"JPEGTables",512:"JPEGProc",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",519:"JPEGQTables",520:"JPEGDCTables",521:"JPEGACTables",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite",700:"XMP",33421:"CFARepeatPatternDim",33422:"CFAPattern",33432:"Copyright",33434:"ExposureTime",33437:"FNumber",33723:"IPTC/NAA",34377:"Photoshop",34665:"ExifIFD",34675:"ICC Profile",34850:"ExposureProgram",34853:"GPSInfo",34855:"ISOSpeedRatings",34858:"TimeZoneOffset",34859:"SelfTimeMode",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37377:"ShutterSpeedValue",37378:"ApertureValue",37380:"ExposureBiasValue",37383:"MeteringMode",37385:"Flash",37386:"FocalLength",37390:"FocalPlaneXResolution",37391:"FocalPlaneYResolution",37392:"FocalPlaneResolutionUnit",37393:"ImageNumber",37398:"TIFF/EPStandardID",37399:"SensingMethod",37500:"MakerNote",37510:"UserComment",37724:"ImageSourceData",40092:"XPComment",40094:"XPKeywords",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelXDimension",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41990:"SceneCaptureType",50706:"DNGVersion",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50710:"CFAPlaneColor",50711:"CFALayout",50712:"LinearizationTable",50713:"BlackLevelRepeatDim",50714:"BlackLevel",50716:"BlackLevelDeltaV",50717:"WhiteLevel",50718:"DefaultScale",50719:"DefaultCropOrigin",50720:"DefaultCropSize",50733:"BayerGreenSplit",50738:"AntiAliasStrength",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50727:"AnalogBalance",50728:"AsShotNeutral",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"LensInfo",50739:"ShadowScale",50740:"DNGPrivateData",50741:"MakerNoteSafety",50778:"CalibrationIlluminant1",50779:"CalibrationIlluminant2",50780:"BestQualityScale",50781:"RawDataUniqueID",50827:"OriginalRawFileName",50829:"ActiveArea",50830:"MaskedAreas",50931:"CameraCalibrationSignature",50932:"ProfileCalibrationSignature",50935:"NoiseReductionApplied",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:"ProfileEmbedPolicy",50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50969:"PreviewSettingsDigest",50970:"PreviewColorSpace",50971:"PreviewDateTime",50972:"RawImageDigest",51008:"OpcodeList1",51009:"OpcodeList2",51022:"OpcodeList3",51041:"NoiseProfile",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualityFinalSize",51091:"OriginalDefaultCropSize",51125:"DefaultUserCrop"},j.ttypes={256:3,257:3,258:3,259:3,262:3,273:4,274:3,277:3,278:4,279:4,282:5,283:5,284:3,286:5,287:5,296:3,305:2,306:2,338:3,513:4,514:4,34665:4},j._readIFD=function(t,e,r,n){var i=t.readUshort(e,r);r+=2;var o={};n.push(o);for(var a=0;a<i;a++){var s=t.readUshort(e,r);r+=2;var u=t.readUshort(e,r);r+=2;var f=t.readUint(e,r);r+=4;var l=t.readUint(e,r);r+=4;var h=[];if(o["t"+s]=h,1==u||7==u)for(var c=0;c<f;c++)h.push(e[(f<5?r-4:l)+c]);if(2==u&&h.push(t.readASCII(e,f<5?r-4:l,f-1)),3==u)for(c=0;c<f;c++)h.push(t.readUshort(e,(f<3?r-4:l)+2*c));if(4==u)for(c=0;c<f;c++)h.push(t.readUint(e,(f<2?r-4:l)+4*c));if(5==u)for(c=0;c<f;c++)h.push(t.readUint(e,l+8*c)/t.readUint(e,l+8*c+4));if(8==u)for(c=0;c<f;c++)h.push(t.readShort(e,(f<3?r-4:l)+2*c));if(9==u)for(c=0;c<f;c++)h.push(t.readInt(e,(f<2?r-4:l)+4*c));if(10==u)for(c=0;c<f;c++)h.push(t.readInt(e,l+8*c)/t.readInt(e,l+8*c+4));if(11==u)for(c=0;c<f;c++)h.push(t.readFloat(e,l+4*c));if(12==u)for(c=0;c<f;c++)h.push(t.readDouble(e,l+8*c));if(0!=f&&0==h.length&&M("unknown TIFF tag type: ",u,"num:",f),330==s)for(c=0;c<f;c++)j._readIFD(t,e,h[c],n)}return r},j._writeIFD=function(t,e,r,n){var i=Object.keys(n);t.writeUshort(e,r,i.length);for(var o=(r+=2)+12*i.length+4,a=0;a<i.length;a++){var s=i[a],u=parseInt(s.slice(1)),f=j.ttypes[u];if(null==f)throw new Error("unknown type of tag: "+u);var l=n[s];2==f&&(l=l[0]+"\0");var h=l.length;t.writeUshort(e,r,u),r+=2,t.writeUshort(e,r,f),r+=2,t.writeUint(e,r,h);var c=[-1,1,1,2,4,8,0,0,0,0,0,0,8][f]*h,d=r+=4;if(4<c&&(t.writeUint(e,r,o),d=o),2==f&&t.writeASCII(e,d,l),3==f)for(var p=0;p<h;p++)t.writeUshort(e,d+2*p,l[p]);if(4==f)for(p=0;p<h;p++)t.writeUint(e,d+4*p,l[p]);if(5==f)for(p=0;p<h;p++)t.writeUint(e,d+8*p,Math.round(1e4*l[p])),t.writeUint(e,d+8*p+4,1e4);if(12==f)for(p=0;p<h;p++)t.writeDouble(e,d+8*p,l[p]);4<c&&(o+=c+=1&c),r+=4}return[r,o]},j.toRGBA8=function(t){var e=t.width,r=t.height,n=e*r,i=4*n,o=t.data,a=new Uint8Array(4*n),s=t.t262[0],u=t.t258?Math.min(32,t.t258[0]):1,f=t.isLE?1:0;if(0==s)for(var l=Math.ceil(u*e/8),h=0;h<r;h++){var c=h*l,d=h*e;if(1==u)for(var p=0;p<e;p++){var m=d+p<<2,b=o[c+(p>>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<e;p++)m=d+p<<2,b=o[c+(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<e;p++)m=d+p<<2,b=o[c+p],a[m]=a[m+1]=a[m+2]=255-b,a[m+3]=255}else if(1==s)for(l=Math.ceil(u*e/8),h=0;h<r;h++){if(c=h*l,d=h*e,1==u)for(p=0;p<e;p++)m=d+p<<2,b=o[c+(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<e;p++)m=d+p<<2,b=o[c+(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<e;p++)m=d+p<<2,b=o[c+p],a[m]=a[m+1]=a[m+2]=b,a[m+3]=255;if(16==u)for(p=0;p<e;p++)m=d+p<<2,b=o[c+(2*p+f)],a[m]=a[m+1]=a[m+2]=Math.min(255,b),a[m+3]=255}else if(2==s)if(8==u)if(t.t338)if(0<t.t338[0])for(p=0;p<i;p++)a[p]=o[p];else for(p=0;p<i;p+=4)a[p]=o[p],a[p+1]=o[p+1],a[p+2]=o[p+2],a[p+3]=255;else{if(4==(v=t.t258?t.t258.length:3))for(p=0;p<i;p++)a[p]=o[p];if(3==v)for(p=0;p<n;p++){var _=3*p;a[m=p<<2]=o[_],a[m+1]=o[_+1],a[m+2]=o[_+2],a[m+3]=255}}else for(p=0;p<n;p++)_=6*p,a[m=p<<2]=o[_],a[m+1]=o[_+2],a[m+2]=o[_+4],a[m+3]=255;else if(3==s){var g=t.t320;for(p=0;p<n;p++){m=p<<2;var y=o[p];a[m]=g[y]>>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<n;p++){m=p<<2;var E=p*v,x=255-o[E],k=255-o[1+E],S=255-o[2+E],j=(255-o[3+E])*(1/255);a[m]=~~(x*j+.5),a[m+1]=~~(k*j+.5),a[m+2]=~~(S*j+.5),a[m+3]=255*(1-w)+o[4+E]*w}}else M("Unknown Photometric interpretation: "+s);return a},j.replaceIMG=function(){for(var t=document.getElementsByTagName("img"),e=0;e<t.length;e++){var r=t[e],n=r.getAttribute("src");if(null!=n){var i=n.split(".").pop().toLowerCase();if("tif"==i||"tiff"==i){var o=new XMLHttpRequest;j._xhrs.push(o),j._imgs.push(r),o.open("GET",n),o.responseType="arraybuffer",o.onload=j._imgLoaded,o.send()}}}},j._xhrs=[],j._imgs=[],j._imgLoaded=function(t){var e=t.target.response,r=j.decode(e),n=r[0];j.decodeImages(e,r);var i=j.toRGBA8(n),o=n.width,a=n.height,s=j._xhrs.indexOf(t.target),u=j._imgs[s];j._xhrs.splice(s,1),j._imgs.splice(s,1);var f=document.createElement("canvas");f.width=o,f.height=a;for(var l=f.getContext("2d"),h=l.createImageData(o,a),c=0;c<i.length;c++)h.data[c]=i[c];l.putImageData(h,0,0);var d=["style","class","id"];for(c=0;c<d.length;c++)f.setAttribute(d[c],u.getAttribute(d[c]));u.parentNode.replaceChild(f,u)},j._binBE={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},readShort:function(t,e){var r=j._binBE.ui8;return r[0]=t[e+1],r[1]=t[e+0],j._binBE.i16[0]},readInt:function(t,e){var r=j._binBE.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],j._binBE.i32[0]},readUint:function(t,e){var r=j._binBE.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],j._binBE.ui32[0]},readASCII:function(t,e,r){for(var n="",i=0;i<r;i++)n+=String.fromCharCode(t[e+i]);return n},readFloat:function(t,e){for(var r=j._binBE.ui8,n=0;n<4;n++)r[n]=t[e+3-n];return j._binBE.fl32[0]},readDouble:function(t,e){for(var r=j._binBE.ui8,n=0;n<8;n++)r[n]=t[e+7-n];return j._binBE.fl64[0]},writeUshort:function(t,e,r){t[e]=r>>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<r.length;n++)t[e+n]=r.charCodeAt(n)},writeDouble:function(t,e,r){j._binBE.fl64[0]=r;for(var n=0;n<8;n++)t[e+n]=j._binBE.ui8[7-n]}},j._binBE.ui8=new Uint8Array(8),j._binBE.i16=new Int16Array(j._binBE.ui8.buffer),j._binBE.i32=new Int32Array(j._binBE.ui8.buffer),j._binBE.ui32=new Uint32Array(j._binBE.ui8.buffer),j._binBE.fl32=new Float32Array(j._binBE.ui8.buffer),j._binBE.fl64=new Float64Array(j._binBE.ui8.buffer),j._binLE={nextZero:j._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(t,e){var r=j._binBE.ui8;return r[0]=t[e+0],r[1]=t[e+1],j._binBE.i16[0]},readInt:function(t,e){var r=j._binBE.ui8;return r[0]=t[e+0],r[1]=t[e+1],r[2]=t[e+2],r[3]=t[e+3],j._binBE.i32[0]},readUint:function(t,e){var r=j._binBE.ui8;return r[0]=t[e+0],r[1]=t[e+1],r[2]=t[e+2],r[3]=t[e+3],j._binBE.ui32[0]},readASCII:j._binBE.readASCII,readFloat:function(t,e){for(var r=j._binBE.ui8,n=0;n<4;n++)r[n]=t[e+n];return j._binBE.fl32[0]},readDouble:function(t,e){for(var r=j._binBE.ui8,n=0;n<8;n++)r[n]=t[e+n];return j._binBE.fl64[0]}},j._copyTile=function(t,e,r,n,i,o,a,s){for(var u=Math.min(e,i-a),f=Math.min(r,o-s),l=0;l<f;l++)for(var h=(s+l)*i+a,c=l*e,d=0;d<u;d++)n[h+d]=t[c+d]}}).call(this,a("_process"))},{_process:53,pako:300}],349:[function(t,e,r){"use strict";var n=t("global/window"),i=t("is-function"),_=t("parse-headers"),o=t("xtend");function a(t,e,r){var n=t;return i(e)?(r=e,"string"==typeof t&&(n={uri:t})):n=o(e,{uri:t}),n.callback=r,n}function g(t,e,r){return s(e=a(t,e,r))}function s(n){if(void 0===n.callback)throw new Error("callback argument missing");var i=!1,o=function(t,e,r){i||(i=!0,n.callback(t,e,r))};function a(){var t=void 0;if(t=f.response?f.response:f.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(f),m)try{t=JSON.parse(t)}catch(t){}return t}function e(t){return clearTimeout(u),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,o(t,b)}function t(){if(!s){var t;clearTimeout(u),t=n.useXDR&&void 0===f.status?200:1223===f.status?204:f.status;var e=b,r=null;return 0!==t?(e={body:a(),statusCode:t,method:h,headers:{},url:l,rawRequest:f},f.getAllResponseHeaders&&(e.headers=_(f.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),o(r,e,e.body)}}var r,s,u,f=n.xhr||null,l=(f=f||(n.cors||n.useXDR?new g.XDomainRequest:new g.XMLHttpRequest)).url=n.uri||n.url,h=f.method=n.method||"GET",c=n.body||n.data,d=f.headers=n.headers||{},p=!!n.sync,m=!1,b={body:void 0,headers:{},statusCode:0,method:h,url:l,rawRequest:f};if("json"in n&&!1!==n.json&&(m=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),c=JSON.stringify(!0===n.json?c:n.json))),f.onreadystatechange=function(){4===f.readyState&&setTimeout(t,0)},f.onload=t,f.onerror=e,f.onprogress=function(){},f.onabort=function(){s=!0},f.ontimeout=e,f.open(h,l,!p,n.username,n.password),p||(f.withCredentials=!!n.withCredentials),!p&&0<n.timeout&&(u=setTimeout(function(){if(!s){s=!0,f.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",e(t)}},n.timeout)),f.setRequestHeader)for(r in d)d.hasOwnProperty(r)&&f.setRequestHeader(r,d[r]);else if(n.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(f.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(f),f.send(c||null),f}e.exports=g,(e.exports.default=g).XMLHttpRequest=n.XMLHttpRequest||function(){},g.XDomainRequest="withCredentials"in new g.XMLHttpRequest?g.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}(["get","put","post","patch","head","delete"],function(n){g["delete"===n?"del":n]=function(t,e,r){return(e=a(t,e,r)).method=n.toUpperCase(),s(e)}})},{"global/window":289,"is-function":291,"parse-headers":320,xtend:350}],350:[function(t,e,r){arguments[4][99][0].apply(r,arguments)},{dup:99}],351:[function(t,e,r){e.exports=void 0!==self.DOMParser?function(t){return(new self.DOMParser).parseFromString(t,"application/xml")}:void 0!==self.ActiveXObject&&new self.ActiveXObject("Microsoft.XMLDOM")?function(t){var e=new self.ActiveXObject("Microsoft.XMLDOM");return e.async="false",e.loadXML(t),e}:function(t){var e=document.createElement("div");return e.innerHTML=t,e}},{}]},{},[100])(100)});