uni-ticket-system/node_modules/jimp/browser/lib/jimp.min.js
2023-12-05 10:11:10 +08:00

27 lines
579 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.10.2
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 a(o,s,l){function u(e,t){if(!s[e]){if(!o[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(f)return f(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[e]={exports:{}};o[e][0].call(i.exports,function(t){return u(o[e][1][t]||t)},i,i.exports,a,o,s,l)}return s[e].exports}for(var f="function"==typeof require&&require,t=0;t<l.length;t++)u(l[t]);return u}({1:[function(t,e,r){e.exports=function(t){if(Array.isArray(t))return t}},{}],2:[function(t,e,r){e.exports=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}}},{}],3:[function(t,e,r){e.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},{}],4:[function(t,e,r){e.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},{}],5:[function(t,n,e){var a=t("./setPrototypeOf");function i(t,e,r){return!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}}()?n.exports=i=function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&a(i,r.prototype),i}:n.exports=i=Reflect.construct,i.apply(null,arguments)}n.exports=i},{"./setPrototypeOf":17}],6:[function(t,e,r){function n(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)}}e.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},{}],7:[function(t,e,r){e.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},{}],8:[function(t,e,r){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}e.exports=n},{}],9:[function(t,e,r){var n=t("./setPrototypeOf");e.exports=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&&n(t,e)}},{"./setPrototypeOf":17}],10:[function(t,e,r){e.exports=function(t){return t&&t.__esModule?t:{default:t}}},{}],11:[function(t,e,r){var o=t("../helpers/typeof");function s(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}e.exports=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var a=n?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=t[i]}return r.default=t,e&&e.set(t,r),r}},{"../helpers/typeof":20}],12:[function(t,e,r){e.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},{}],13:[function(t,e,r){e.exports=function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}}},{}],14:[function(t,e,r){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},{}],15:[function(t,e,r){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},{}],16:[function(t,e,r){var n=t("../helpers/typeof"),i=t("./assertThisInitialized");e.exports=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?i(t):e}},{"../helpers/typeof":20,"./assertThisInitialized":3}],17:[function(t,r,e){function n(t,e){return r.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(t,e)}r.exports=n},{}],18:[function(t,e,r){var n=t("./arrayWithHoles"),i=t("./iterableToArrayLimit"),a=t("./nonIterableRest");e.exports=function(t,e){return n(t)||i(t,e)||a()}},{"./arrayWithHoles":1,"./iterableToArrayLimit":13,"./nonIterableRest":14}],19:[function(t,e,r){var n=t("./arrayWithoutHoles"),i=t("./iterableToArray"),a=t("./nonIterableSpread");e.exports=function(t){return n(t)||i(t)||a()}},{"./arrayWithoutHoles":2,"./iterableToArray":12,"./nonIterableSpread":15}],20:[function(t,e,r){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)}function i(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=i=function(t){return n(t)}:e.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},i(t)}e.exports=i},{}],21:[function(t,e,r){e.exports=t("regenerator-runtime")},{"regenerator-runtime":332}],22:[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":23}],23:[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={},a=this.srcAlphabet.length,o=this.dstAlphabet.length,s=t.length,l="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++)o<=(r=r*a+i[e])?(i[n++]=parseInt(r/o,10),r%=o):0<n&&(i[n++]=0);s=n,l=this.dstAlphabet.slice(r,r+1).concat(l)}while(0!==n);return l},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},{}],24:[function(x,E,t){(function(e){"use strict";var t=x("object-assign");function a(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function o(t){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var f=x("util/"),n=Object.prototype.hasOwnProperty,h=Array.prototype.slice,r="foo"===function(){}.name;function s(t){return Object.prototype.toString.call(t)}function l(t){return!o(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var u=E.exports=m,i=/\s*function\s+([^\(\s]*)\s*/;function c(t){if(f.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||!f.isFunction(t))return f.inspect(t);var e=c(t);return"[Function"+(e?": "+e:"")+"]"}function b(t,e,r,n,i){throw new u.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function m(t,e){t||b(t,!0,e,"==",u.ok)}function g(t,e,r,n){if(t===e)return!0;if(o(t)&&o(e))return 0===a(t,e);if(f.isDate(t)&&f.isDate(e))return t.getTime()===e.getTime();if(f.isRegExp(t)&&f.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(l(t)&&l(e)&&s(t)===s(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===a(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(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(f.isPrimitive(t)||f.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=y(t),a=y(e);if(i&&!a||!i&&a)return!1;if(i)return t=h.call(t),e=h.call(e),g(t,e,r);var o,s,l=w(t),u=w(e);if(l.length!==u.length)return!1;for(l.sort(),u.sort(),s=l.length-1;0<=s;s--)if(l[s]!==u[s])return!1;for(s=l.length-1;0<=s;s--)if(o=l[s],!g(t[o],e[o],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function y(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function v(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 _(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&&b(i,r,"Missing expected exception"+n);var a="string"==typeof n,o=!t&&i&&!r;if((!t&&f.isError(i)&&a&&v(i,r)||o)&&b(i,r,"Got unwanted exception"+n),t&&i&&r&&!v(i,r)||!t&&i)throw i}u.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||b;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=c(e),a=n.indexOf("\n"+i);if(0<=a){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}},f.inherits(u.AssertionError,Error),u.fail=b,u.ok=m,u.equal=function(t,e,r){t!=e&&b(t,e,r,"==",u.equal)},u.notEqual=function(t,e,r){t==e&&b(t,e,r,"!=",u.notEqual)},u.deepEqual=function(t,e,r){g(t,e,!1)||b(t,e,r,"deepEqual",u.deepEqual)},u.deepStrictEqual=function(t,e,r){g(t,e,!0)||b(t,e,r,"deepStrictEqual",u.deepStrictEqual)},u.notDeepEqual=function(t,e,r){g(t,e,!1)&&b(t,e,r,"notDeepEqual",u.notDeepEqual)},u.notDeepStrictEqual=function t(e,r,n){g(e,r,!0)&&b(e,r,n,"notDeepStrictEqual",t)},u.strictEqual=function(t,e,r){t!==e&&b(t,e,r,"===",u.strictEqual)},u.notStrictEqual=function(t,e,r){t===e&&b(t,e,r,"!==",u.notStrictEqual)},u.throws=function(t,e,r){_(!0,t,e,r)},u.doesNotThrow=function(t,e,r){_(!1,t,e,r)},u.ifError=function(t){if(t)throw t},u.strict=t(function t(e,r){e||b(e,!0,r,"==",t)},u,{equal:u.strictEqual,deepEqual:u.deepStrictEqual,notEqual:u.notStrictEqual,notDeepEqual:u.notDeepStrictEqual}),u.strict.strict=u.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":263,"util/":27}],25:[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}},{}],26:[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}},{}],27:[function(S,t,A){(function(n,i){var s=/%[sdj%]/g;A.format=function(t){if(!v(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(l(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,a=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}}),o=n[r];r<i;o=n[++r])g(o)||!f(o)?a+=" "+o:a+=" "+l(o);return a},A.deprecate=function(t,e){if(_(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,a={};function l(t,e){var r={seen:[],stylize:u};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),m(e)?r.showHidden=e:e&&A._extend(r,e),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),c(r,t,r.depth)}function o(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function u(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 v(t)||(t=c(e,t,n)),t}var i=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(y(e))return t.stylize(""+e,"number");if(m(e))return t.stylize(""+e,"boolean");if(g(e))return t.stylize("null","null")}(e,r);if(i)return i;var a=Object.keys(r),o=function(t){var r={};return t.forEach(function(t,e){r[t]=!0}),r}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(0<=a.indexOf("message")||0<=a.indexOf("description")))return d(r);if(0===a.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(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return d(r)}var l,u="",f=!1,h=["{","}"];b(r)&&(f=!0,h=["[","]"]),k(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(u=" "+RegExp.prototype.toString.call(r)),x(r)&&(u=" "+Date.prototype.toUTCString.call(r)),E(r)&&(u=" "+d(r)),0!==a.length||f&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),l=f?function(e,r,n,i,t){for(var a=[],o=0,s=r.length;o<s;++o)j(r,String(o))?a.push(p(e,r,n,i,String(o),!0)):a.push("");return t.forEach(function(t){t.match(/^\d+$/)||a.push(p(e,r,n,i,t,!0))}),a}(e,r,n,o,a):a.map(function(t){return p(e,r,n,o,t,f)}),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]}(l,u,h)):h[0]+u+h[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),j(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(l.value)<0?-1<(s=g(r)?c(t,l.value,null):c(t,l.value,r-1)).indexOf("\n")&&(s=a?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")),_(o)){if(a&&i.match(/^\d+$/))return s;o=(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),t.stylize(o,"string"))}return o+": "+s}function b(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function g(t){return null===t}function y(t){return"number"==typeof t}function v(t){return"string"==typeof t}function _(t){return void 0===t}function w(t){return f(t)&&"[object RegExp]"===e(t)}function f(t){return"object"==typeof t&&null!==t}function x(t){return f(t)&&"[object Date]"===e(t)}function E(t){return f(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(_(t)&&(t=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(t)){var r=n.pid;a[e]=function(){var t=A.format.apply(A,arguments);console.error("%s %d: %s",e,r,t)}}else a[e]=function(){};return a[e]},(A.inspect=l).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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},A.isArray=b,A.isBoolean=m,A.isNull=g,A.isNullOrUndefined=function(t){return null==t},A.isNumber=y,A.isString=v,A.isSymbol=function(t){return"symbol"==typeof t},A.isUndefined=_,A.isRegExp=w,A.isObject=f,A.isDate=x,A.isError=E,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=S("./support/isBuffer");var h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(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=S("inherits"),A._extend=function(t,e){if(!e||!f(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"./support/isBuffer":26,_process:312,inherits:25}],28:[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],a=n[1],o=new f(function(t,e,r){return 3*(e+r)/4-r}(0,i,a)),s=0,l=0<a?i-4:i;for(r=0;r<l;r+=4)e=u[t.charCodeAt(r)]<<18|u[t.charCodeAt(r+1)]<<12|u[t.charCodeAt(r+2)]<<6|u[t.charCodeAt(r+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=255&e;2===a&&(e=u[t.charCodeAt(r)]<<2|u[t.charCodeAt(r+1)]>>4,o[s++]=255&e);1===a&&(e=u[t.charCodeAt(r)]<<10|u[t.charCodeAt(r+1)]<<4|u[t.charCodeAt(r+2)]>>2,o[s++]=e>>8&255,o[s++]=255&e);return o},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i=[],a=0,o=r-n;a<o;a+=16383)i.push(l(t,a,o<a+16383?o:a+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=[],u=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=n.length;i<a;++i)s[i]=n[i],u[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 l(t,e,r){for(var n,i,a=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),a.push(s[(i=n)>>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return a.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],29:[function(t,e,r){var n=t("./lib/encoder"),i=t("./lib/decoder");e.exports={encode:n,decode:i}},{"./lib/decoder":30,"./lib/encoder":31}],30:[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++),a=this.buffer.readUInt8(this.pos++);this.palette[e]={red:i,green:n,blue:r,quad:a}}}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 a=this.buffer.readUInt8(this.pos++),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=0,this.data[o+4*s+1]=l.blue,this.data[o+4*s+2]=l.green,this.data[o+4*s+3]=l.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 a=this.buffer.readUInt8(this.pos++),o=this.buffer.readUInt8(this.pos++);this.bottom_up?t-=o:t+=o,r+=o*this.width*4+4*a}else{for(var s=this.buffer.readUInt8(this.pos++),l=0;l<i;l++)u.call(this,e?15&s:(240&s)>>4),1&l&&l+1<i&&(s=this.buffer.readUInt8(this.pos++)),e=!e;1==(i+1>>1&1)&&this.pos++}}else for(l=0;l<n;l++)u.call(this,e?15&i:(240&i)>>4),e=!e}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=Math.ceil(this.width/2),h=f%4;for(o=this.height-1;0<=o;o--){var c=this.bottom_up?o:this.height-1-o;for(a=0;a<f;a++){i=this.buffer.readUInt8(this.pos++),r=c*this.width*4+2*a*4;var d=i>>4,p=15&i,b=this.palette[d];if(this.data[r]=0,this.data[r+1]=b.blue,this.data[r+2]=b.green,this.data[r+3]=b.red,2*a+1>=this.width)break;b=this.palette[p],this.data[r+4]=0,this.data[r+4+1]=b.blue,this.data[r+4+2]=b.green,this.data[r+4+3]=b.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++),a=this.buffer.readUInt8(this.pos++);this.bottom_up?t-=a:t+=a,r+=a*this.width*4+4*i}else{for(var o=0;o<n;o++){var s=this.buffer.readUInt8(this.pos++);l.call(this,s)}!0&n&&this.pos++}}else for(o=0;o<e;o++)l.call(this,n)}function l(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 u=this.width%4;for(a=this.height-1;0<=a;a--){var f=this.bottom_up?a:this.height-1-a;for(i=0;i<this.width;i++){n=this.buffer.readUInt8(this.pos++),r=f*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!=u&&(this.pos+=4-u)}}},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 a=this.buffer.readUInt16LE(this.pos);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,l=(a>>10&e)/e*255|0,u=a>>15?255:0,f=n*this.width*4+4*i;this.data[f]=u,this.data[1+f]=o,this.data[2+f]=s,this.data[3+f]=l}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,a=0;a<this.width;a++){var o=this.buffer.readUInt16LE(this.pos);this.pos+=2;var s=(o&this.maskBlue)<<e[0],l=(o&this.maskGreen)>>e[1],u=(o&this.maskRed)>>e[2],f=i*this.width*4+4*a;this.data[f]=0,this.data[1+f]=s,this.data[2+f]=l,this.data[3+f]=u}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++),a=this.buffer.readUInt8(this.pos++),o=e*this.width*4+4*r;this.data[o]=0,this.data[1+o]=n,this.data[2+o]=i,this.data[3+o]=a}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++),a=this.buffer.readUInt8(this.pos++),o=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]=a,this.data[s+3]=o}}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++),a=this.buffer.readUInt8(this.pos++),o=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]=a,this.data[s+3]=o}},e.prototype.getData=function(){return this.data},n.exports=function(t){return new e(t)}}).call(this,t("buffer").Buffer)},{buffer:47}],31:[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 a=this.pos+n*r+3*i;e++,t[a]=this.buffer[e++],t[a+1]=this.buffer[e++],t[a+2]=this.buffer[e++]}if(0<this.extraBytes){var o=this.pos+n*r+3*this.width;t.fill(0,o,o+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:47}],32:[function(t,e,r){},{}],33:[function(n,t,c){(function(u,f){"use strict";var h=n("assert"),a=n("pako/lib/zlib/zstream"),o=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?o.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,a,o){return this._write(!0,t,e,r,n,i,a,o)},r.prototype.writeSync=function(t,e,r,n,i,a,o){return this._write(!1,t,e,r,n,i,a,o)},r.prototype._write=function(t,e,r,n,i,a,o,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=f.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=a,this.strm.next_out=o,this.flush=e,!t)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return u.nextTick(function(){l._process(),l._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=o.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 a,this.mode){case c.DEFLATE:case c.GZIP:case c.DEFLATERAW:this.err=o.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=o.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=o.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:312,assert:24,buffer:47,"pako/lib/zlib/constants":37,"pako/lib/zlib/deflate.js":39,"pako/lib/zlib/inflate.js":41,"pako/lib/zlib/zstream":45}],34:[function(I,t,T){(function(i){"use strict";var m=I("buffer").Buffer,o=I("stream").Transform,s=I("./binding"),t=I("util"),g=I("assert").ok,y=I("buffer").kMaxLength,v="Cannot create final Buffer. It would be larger than 0x"+y.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 a={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},l=Object.keys(a),u=0;u<l.length;u++){var f=l[u];a[a[f]]=f}function h(r,t,n){var i=[],a=0;function e(){for(var t;null!==(t=r.read());)i.push(t),a+=t.length;r.once("readable",e)}function o(){var t,e=null;y<=a?e=new RangeError(v):t=m.concat(i,a),i=[],r.close(),n(e,t)}r.on("error",function(t){r.removeListener("end",o),r.removeListener("readable",e),n(t)}),r.on("end",o),r.end(t),e()}function c(t,e){if("string"==typeof e&&(e=m.from(e)),!m.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);j.call(this,t,s.DEFLATE)}function p(t){if(!(this instanceof p))return new p(t);j.call(this,t,s.INFLATE)}function b(t){if(!(this instanceof b))return new b(t);j.call(this,t,s.GZIP)}function _(t){if(!(this instanceof _))return new _(t);j.call(this,t,s.GUNZIP)}function w(t){if(!(this instanceof w))return new w(t);j.call(this,t,s.DEFLATERAW)}function x(t){if(!(this instanceof x))return new x(t);j.call(this,t,s.INFLATERAW)}function E(t){if(!(this instanceof E))return new E(t);j.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 j(t,e){var r=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||T.Z_DEFAULT_CHUNK,o.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&&!m.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){S(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 a=T.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(a=t.strategy),this._handle.init(t.windowBits||T.Z_DEFAULT_WINDOWBITS,i,t.memLevel||T.Z_DEFAULT_MEMLEVEL,a,t.dictionary),this._buffer=m.allocUnsafe(this._chunkSize),this._offset=0,this._level=i,this._strategy=a,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function S(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(a),writable:!1}),T.Deflate=d,T.Inflate=p,T.Gzip=b,T.Gunzip=_,T.DeflateRaw=w,T.InflateRaw=x,T.Unzip=E,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 x(t)},T.createGzip=function(t){return new b(t)},T.createGunzip=function(t){return new _(t)},T.createUnzip=function(t){return new E(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 b(e),t,r)},T.gzipSync=function(t,e){return c(new b(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 E(e),t,r)},T.unzipSync=function(t,e){return c(new E(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 _(e),t,r)},T.gunzipSync=function(t,e){return c(new _(e),t)},T.inflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),h(new x(e),t,r)},T.inflateRawSync=function(t,e){return c(new x(e),t)},t.inherits(j,o),j.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(){g(n._handle,"zlib binding closed"),n._handle.params(t,e),n._hadError||(n._level=t,n._strategy=e,r&&r())})}else i.nextTick(r)},j.prototype.reset=function(){return g(this._handle,"zlib binding closed"),this._handle.reset()},j.prototype._flush=function(t){this._transform(m.alloc(0),"",t)},j.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(m.alloc(0),"",e))},j.prototype.close=function(t){S(this,t),i.nextTick(A,this)},j.prototype._transform=function(t,e,r){var n,i=this._writableState,a=(i.ending||i.ended)&&(!t||i.length===t.length);return null===t||m.isBuffer(t)?this._handle?(a?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"))},j.prototype._processChunk=function(a,o,s){var l=a&&a.length,u=this._chunkSize-this._offset,f=0,h=this,c="function"==typeof s;if(!c){var e,d=[],p=0;this.on("error",function(t){e=t}),g(this._handle,"zlib binding closed");do{var t=this._handle.writeSync(o,a,f,l,this._buffer,this._offset,u)}while(!this._hadError&&b(t[0],t[1]));if(this._hadError)throw e;if(y<=p)throw S(this),new RangeError(v);var r=m.concat(d,p);return S(this),r}g(this._handle,"zlib binding closed");var n=this._handle.write(o,a,f,l,this._buffer,this._offset,u);function b(t,e){if(this&&(this.buffer=null,this.callback=null),!h._hadError){var r=u-e;if(g(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)&&(u=h._chunkSize,h._offset=0,h._buffer=m.allocUnsafe(h._chunkSize)),0===e){if(f+=l-t,l=t,!c)return!0;var i=h._handle.write(o,a,f,l,h._buffer,h._offset,h._chunkSize);return i.callback=b,void(i.buffer=a)}if(!c)return!1;s()}}n.buffer=a,n.callback=b},t.inherits(d,j),t.inherits(p,j),t.inherits(b,j),t.inherits(_,j),t.inherits(w,j),t.inherits(x,j),t.inherits(E,j)}).call(this,I("_process"))},{"./binding":33,_process:312,assert:24,buffer:47,stream:334,util:365}],35:[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 a in i)e=i,r=a,Object.prototype.hasOwnProperty.call(e,r)&&(t[a]=i[a])}}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 a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(e=n=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),e=i=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},a={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},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,a))},r.setTyped(n)},{}],36:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;a=a+(i=i+e[n++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],37:[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}},{}],38:[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,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e[o])];return-1^t}},{}],39:[function(t,e,r){"use strict";var l,c=t("../utils/common"),u=t("./trees"),d=t("./adler32"),p=t("./crc32"),n=t("./messages"),f=0,h=4,b=0,m=-2,g=-1,y=4,i=2,v=8,_=9,a=286,o=30,s=19,w=2*a+1,x=15,E=3,k=258,j=k+E+1,S=42,A=113,I=1,T=2,O=3,R=4;function P(t,e){return t.msg=n[e],e}function M(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){u._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 D(t,e){t.pending_buf[t.pending++]=e}function N(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,a=t.strstart,o=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-j?t.strstart-(t.w_size-j):0,u=t.window,f=t.w_mask,h=t.prev,c=t.strstart+k,d=u[a+o-1],p=u[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(r=e)+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&a<c);if(n=k-(c-a),a=c-k,o<n){if(t.match_start=e,s<=(o=n))break;d=u[a+o-1],p=u[a+o]}}}while((e=h[e&f])>l&&0!=--i);return o<=t.lookahead?o:t.lookahead}function z(t){var e,r,n,i,a,o,s,l,u,f,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-j)){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(o=t.strm,s=t.window,l=t.strstart+t.lookahead,u=i,f=void 0,f=o.avail_in,u<f&&(f=u),r=0===f?0:(o.avail_in-=f,c.arraySet(s,o.input,o.next_in,f,l),1===o.state.wrap?o.adler=d(o.adler,s,f,l):2===o.state.wrap&&(o.adler=p(o.adler,s,f,l)),o.next_in+=f,o.total_in+=f,f),t.lookahead+=r,t.lookahead+t.insert>=E)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+E-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<j&&0!==t.strm.avail_in)}function F(t,e){for(var r,n;;){if(t.lookahead<j){if(z(t),t.lookahead<j&&e===f)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-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-j&&(t.match_length=U(t,r)),t.match_length>=E)if(n=u._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-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=u._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<E-1?t.strstart:E-1,e===h?(B(t,!0),0===t.strm.avail_out?O:R):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<j){if(z(t),t.lookahead<j&&e===f)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-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=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-j&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&4096<t.strstart-t.match_start)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-E,n=u._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),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+E-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=E-1,t.strstart++,n&&(B(t,!1),0===t.strm.avail_out))return I}else if(t.match_available){if((n=u._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=u._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===h?(B(t,!0),0===t.strm.avail_out?O:R):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 q(){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=v,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*o+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(x+1),this.heap=new c.Buf16(2*a+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*a+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 W(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?S:A,t.adler=2===e.wrap?0:1,e.last_flush=f,u._tr_init(e),b):P(t,m)}function Z(t){var e=W(t);return e===b&&function(t){t.window_size=2*t.w_size,L(t.head),t.max_lazy_match=l[t.level].max_lazy,t.good_match=l[t.level].good_length,t.nice_match=l[t.level].nice_length,t.max_chain_length=l[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=E-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,r,n,i,a){if(!t)return m;var o=1;if(e===g&&(e=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),i<1||_<i||r!==v||n<8||15<n||e<0||9<e||a<0||y<a)return P(t,m);8===n&&(n=9);var s=new q;return(t.state=s).strm=t,s.wrap=o,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+E-1)/E),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=a,s.method=r,Z(t)}l=[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(z(t),0===t.lookahead&&e===f)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-j&&(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:R):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),I)}),new G(4,4,8,4,F),new G(4,5,16,8,F),new G(4,6,32,32,F),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,v,15,8,0)},r.deflateInit2=Y,r.deflateReset=Z,r.deflateResetKeep=W,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,b):m},r.deflate=function(t,e){var r,n,i,a;if(!t||!t.state||5<e||e<0)return t?P(t,m):m;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&e!==h)return P(t,0===t.avail_out?-5:m);if(n.strm=t,r=n.last_flush,n.last_flush=e,n.status===S)if(2===n.wrap)t.adler=0,D(n,31),D(n,139),D(n,8),n.gzhead?(D(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)),D(n,255&n.gzhead.time),D(n,n.gzhead.time>>8&255),D(n,n.gzhead.time>>16&255),D(n,n.gzhead.time>>24&255),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(D(n,255&n.gzhead.extra.length),D(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):(D(n,0),D(n,0),D(n,0),D(n,0),D(n,0),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,3),n.status=A);else{var o=v+(n.w_bits-8<<4)<<8;o|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=A,N(n,o),0!==n.strstart&&(N(n,t.adler>>>16),N(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));)D(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)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,D(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(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)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,D(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(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&&(D(n,255&t.adler),D(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,b}else if(0===t.avail_in&&M(e)<=M(r)&&e!==h)return P(t,-5);if(666===n.status&&0!==t.avail_in)return P(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==f&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(z(t),0===t.lookahead)){if(e===f)return I;break}if(t.match_length=0,r=u._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:R):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,a,o=t.window;;){if(t.lookahead<=k){if(z(t),t.lookahead<=k&&e===f)return I;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&0<t.strstart&&(n=o[i=t.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=t.strstart+k;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);t.match_length=k-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=u._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=u._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:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):l[n.level].func(n,e);if(s!==O&&s!==R||(n.status=666),s===I||s===O)return 0===t.avail_out&&(n.last_flush=-1),b;if(s===T&&(1===e?u._tr_align(n):5!==e&&(u._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,b}return e!==h?b:n.wrap<=0?1:(2===n.wrap?(D(n,255&t.adler),D(n,t.adler>>8&255),D(n,t.adler>>16&255),D(n,t.adler>>24&255),D(n,255&t.total_in),D(n,t.total_in>>8&255),D(n,t.total_in>>16&255),D(n,t.total_in>>24&255)):(N(n,t.adler>>>16),N(n,65535&t.adler)),C(t),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?b:1)},r.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==S&&69!==e&&73!==e&&91!==e&&103!==e&&e!==A&&666!==e?P(t,m):(t.state=null,e===A?P(t,-3):b):m},r.deflateSetDictionary=function(t,e){var r,n,i,a,o,s,l,u,f=e.length;if(!t||!t.state)return m;if(2===(a=(r=t.state).wrap)||1===a&&r.status!==S||r.lookahead)return m;for(1===a&&(t.adler=d(t.adler,e,f,0)),r.wrap=0,f>=r.w_size&&(0===a&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,e,f-r.w_size,r.w_size,0),e=u,f=r.w_size),o=t.avail_in,s=t.next_in,l=t.input,t.avail_in=f,t.next_in=0,t.input=e,z(r);r.lookahead>=E;){for(n=r.strstart,i=r.lookahead-(E-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-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=E-1,z(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=s,t.input=l,t.avail_in=o,r.wrap=a,b},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":35,"./adler32":36,"./crc32":38,"./messages":43,"./trees":44}],40:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n,i,a,o,s,l,u,f,h,c,d,p,b,m,g,y,v,_,w,x,E,k,j,S;r=t.state,n=t.next_in,j=t.input,i=n+(t.avail_in-5),a=t.next_out,S=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),l=r.dmax,u=r.wsize,f=r.whave,h=r.wnext,c=r.window,d=r.hold,p=r.bits,b=r.lencode,m=r.distcode,g=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;t:do{p<15&&(d+=j[n++]<<p,p+=8,d+=j[n++]<<p,p+=8),v=b[d&g];e:for(;;){if(d>>>=_=v>>>24,p-=_,0===(_=v>>>16&255))S[a++]=65535&v;else{if(!(16&_)){if(0==(64&_)){v=b[(65535&v)+(d&(1<<_)-1)];continue e}if(32&_){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&v,(_&=15)&&(p<_&&(d+=j[n++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=j[n++]<<p,p+=8,d+=j[n++]<<p,p+=8),v=m[d&y];r:for(;;){if(d>>>=_=v>>>24,p-=_,!(16&(_=v>>>16&255))){if(0==(64&_)){v=m[(65535&v)+(d&(1<<_)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(x=65535&v,p<(_&=15)&&(d+=j[n++]<<p,(p+=8)<_&&(d+=j[n++]<<p,p+=8)),l<(x+=d&(1<<_)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=_,p-=_,(_=a-o)<x){if(f<(_=x-_)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(k=c,(E=0)===h){if(E+=u-_,_<w){for(w-=_;S[a++]=c[E++],--_;);E=a-x,k=S}}else if(h<_){if(E+=u+h-_,(_-=h)<w){for(w-=_;S[a++]=c[E++],--_;);if(E=0,h<w){for(w-=_=h;S[a++]=c[E++],--_;);E=a-x,k=S}}}else if(E+=h-_,_<w){for(w-=_;S[a++]=c[E++],--_;);E=a-x,k=S}for(;2<w;)S[a++]=k[E++],S[a++]=k[E++],S[a++]=k[E++],w-=3;w&&(S[a++]=k[E++],1<w&&(S[a++]=k[E++]))}else{for(E=a-x;S[a++]=S[E++],S[a++]=S[E++],S[a++]=S[E++],2<(w-=3););w&&(S[a++]=S[E++],1<w&&(S[a++]=S[E++]))}break}}break}}while(n<i&&a<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=d,r.bits=p}},{}],41:[function(t,e,r){"use strict";var T=t("../utils/common"),O=t("./adler32"),R=t("./crc32"),P=t("./inffast"),M=t("./inftrees"),L=1,C=2,B=0,D=-2,N=1,n=852,i=592;function U(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function a(){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 o(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=N,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):D}function s(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,o(t)):D}function l(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)?D:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,s(t))):D}function u(t,e){var r,n;return t?(n=new a,(t.state=n).window=null,(r=l(t,e))!==B&&(t.state=null),r):D}var f,h,c=!0;function z(t){if(c){var e;for(f=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(M(L,t.lens,0,288,f,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;M(C,t.lens,0,32,h,0,t.work,{bits:5}),c=!1}t.lencode=f,t.lenbits=9,t.distcode=h,t.distbits=5}function F(t,e,r,n){var i,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new T.Buf8(a.wsize)),n>=a.wsize?(T.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n<(i=a.wsize-a.wnext)&&(i=n),T.arraySet(a.window,e,r-n,i,a.wnext),(n-=i)?(T.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}r.inflateReset=s,r.inflateReset2=l,r.inflateResetKeep=o,r.inflateInit=function(t){return u(t,15)},r.inflateInit2=u,r.inflate=function(t,e){var r,n,i,a,o,s,l,u,f,h,c,d,p,b,m,g,y,v,_,w,x,E,k,j,S=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 D;12===(r=t.state).mode&&(r.mode=13),o=t.next_out,i=t.output,l=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,u=r.hold,f=r.bits,h=s,c=l,E=B;t:for(;;)switch(r.mode){case N:if(0===r.wrap){r.mode=13;break}for(;f<16;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if(2&r.wrap&&35615===u){A[r.check=0]=255&u,A[1]=u>>>8&255,r.check=R(r.check,A,2,0),f=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&u)){t.msg="unknown compression method",r.mode=30;break}if(f-=4,x=8+(15&(u>>>=4)),0===r.wbits)r.wbits=x;else if(x>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<x,t.adler=r.check=1,r.mode=512&u?10:12,f=u=0;break;case 2:for(;f<16;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if(r.flags=u,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=u>>8&1),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=R(r.check,A,2,0)),f=u=0,r.mode=3;case 3:for(;f<32;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}r.head&&(r.head.time=u),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,r.check=R(r.check,A,4,0)),f=u=0,r.mode=4;case 4:for(;f<16;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=R(r.check,A,2,0)),f=u=0,r.mode=5;case 5:if(1024&r.flags){for(;f<16;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=R(r.check,A,2,0)),f=u=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&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),T.arraySet(r.head.extra,n,a,d,x)),512&r.flags&&(r.check=R(r.check,n,d,a)),s-=d,a+=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;x=n[a+d++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x)),x&&d<s;);if(512&r.flags&&(r.check=R(r.check,n,d,a)),s-=d,a+=d,x)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;x=n[a+d++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x)),x&&d<s;);if(512&r.flags&&(r.check=R(r.check,n,d,a)),s-=d,a+=d,x)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;f<16;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if(u!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}f=u=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(;f<32;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}t.adler=r.check=U(u),f=u=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=o,t.avail_out=l,t.next_in=a,t.avail_in=s,r.hold=u,r.bits=f,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){u>>>=7&f,f-=7&f,r.mode=27;break}for(;f<3;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}switch(r.last=1&u,f-=1,3&(u>>>=1)){case 0:r.mode=14;break;case 1:if(z(r),r.mode=20,6!==e)break;u>>>=2,f-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}u>>>=2,f-=2;break;case 14:for(u>>>=7&f,f-=7&f;f<32;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if((65535&u)!=(u>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,f=u=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(s<d&&(d=s),l<d&&(d=l),0===d)break t;T.arraySet(i,n,a,d,o),s-=d,a+=d,l-=d,o+=d,r.length-=d;break}r.mode=12;break;case 17:for(;f<14;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if(r.nlen=257+(31&u),u>>>=5,f-=5,r.ndist=1+(31&u),u>>>=5,f-=5,r.ncode=4+(15&u),u>>>=4,f-=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(;f<3;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}r.lens[I[r.have++]]=7&u,u>>>=3,f-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},E=M(0,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,E){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(;g=(S=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,y=65535&S,!((m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if(y<16)u>>>=m,f-=m,r.lens[r.have++]=y;else{if(16===y){for(j=m+2;f<j;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if(u>>>=m,f-=m,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}x=r.lens[r.have-1],d=3+(3&u),u>>>=2,f-=2}else if(17===y){for(j=m+3;f<j;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}f-=m,x=0,d=3+(7&(u>>>=m)),u>>>=3,f-=3}else{for(j=m+7;f<j;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}f-=m,x=0,d=11+(127&(u>>>=m)),u>>>=7,f-=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++]=x}}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},E=M(L,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,E){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},E=M(C,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,E){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<=l){t.next_out=o,t.avail_out=l,t.next_in=a,t.avail_in=s,r.hold=u,r.bits=f,P(t,c),o=t.next_out,i=t.output,l=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,u=r.hold,f=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(S=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,y=65535&S,!((m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if(g&&0==(240&g)){for(v=m,_=g,w=y;g=(S=r.lencode[w+((u&(1<<v+_)-1)>>v)])>>>16&255,y=65535&S,!(v+(m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}u>>>=v,f-=v,r.back+=v}if(u>>>=m,f-=m,r.back+=m,r.length=y,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(j=r.extra;f<j;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(S=r.distcode[u&(1<<r.distbits)-1])>>>16&255,y=65535&S,!((m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if(0==(240&g)){for(v=m,_=g,w=y;g=(S=r.distcode[w+((u&(1<<v+_)-1)>>v)])>>>16&255,y=65535&S,!(v+(m=S>>>24)<=f);){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}u>>>=v,f-=v,r.back+=v}if(u>>>=m,f-=m,r.back+=m,64&g){t.msg="invalid distance code",r.mode=30;break}r.offset=y,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(j=r.extra;f<j;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,f-=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===l)break t;if(d=c-l,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),b=r.window}else b=i,p=o-r.offset,d=r.length;for(l<d&&(d=l),l-=d,r.length-=d;i[o++]=b[p++],--d;);0===r.length&&(r.mode=21);break;case 26:if(0===l)break t;i[o++]=r.length,l--,r.mode=21;break;case 27:if(r.wrap){for(;f<32;){if(0===s)break t;s--,u|=n[a++]<<f,f+=8}if(c-=l,t.total_out+=c,r.total+=c,c&&(t.adler=r.check=r.flags?R(r.check,i,c,o-c):O(r.check,i,c,o-c)),c=l,(r.flags?u:U(u))!==r.check){t.msg="incorrect data check",r.mode=30;break}f=u=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break t;s--,u+=n[a++]<<f,f+=8}if(u!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}f=u=0}r.mode=29;case 29:E=1;break t;case 30:E=-3;break t;case 31:return-4;case 32:default:return D}return t.next_out=o,t.avail_out=l,t.next_in=a,t.avail_in=s,r.hold=u,r.bits=f,(r.wsize||c!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&F(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?R(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)&&E===B&&(E=-5),E)},r.inflateEnd=function(t){if(!t||!t.state)return D;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)?D:((r.head=e).done=!1,B):D},r.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?D:11===r.mode&&O(1,e,n,0)!==r.check?-3:F(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,B):D},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":35,"./adler32":36,"./crc32":38,"./inffast":40,"./inftrees":42}],42:[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],D=[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],N=[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,a,o,s){var l,u,f,h,c,d,p,b,m,g=s.bits,y=0,v=0,_=0,w=0,x=0,E=0,k=0,j=0,S=0,A=0,I=null,T=0,O=new L.Buf16(16),R=new L.Buf16(16),P=null,M=0;for(y=0;y<=15;y++)O[y]=0;for(v=0;v<n;v++)O[e[r+v]]++;for(x=g,w=15;1<=w&&0===O[w];w--);if(w<x&&(x=w),0===w)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(_=1;_<w&&0===O[_];_++);for(x<_&&(x=_),y=j=1;y<=15;y++)if(j<<=1,(j-=O[y])<0)return-1;if(0<j&&(0===t||1!==w))return-1;for(R[1]=0,y=1;y<15;y++)R[y+1]=R[y]+O[y];for(v=0;v<n;v++)0!==e[r+v]&&(o[R[e[r+v]]++]=v);if(d=0===t?(I=P=o,19):1===t?(I=C,T-=257,P=B,M-=257,256):(I=D,P=N,-1),y=_,c=a,k=v=A=0,f=-1,h=(S=1<<(E=x))-1,1===t&&852<S||2===t&&592<S)return 1;for(;;){for(p=y-k,m=o[v]<d?(b=0,o[v]):o[v]>d?(b=P[M+o[v]],I[T+o[v]]):(b=96,0),l=1<<y-k,_=u=1<<E;i[c+(A>>k)+(u-=l)]=p<<24|b<<16|m|0,0!==u;);for(l=1<<y-1;A&l;)l>>=1;if(0!==l?(A&=l-1,A+=l):A=0,v++,0==--O[y]){if(y===w)break;y=e[r+o[v]]}if(x<y&&(A&h)!==f){for(0===k&&(k=x),c+=_,j=1<<(E=y-k);E+k<w&&!((j-=O[E+k])<=0);)E++,j<<=1;if(S+=1<<E,1===t&&852<S||2===t&&592<S)return 1;i[f=A&h]=x<<24|E<<16|c-a|0}}return 0!==A&&(i[c+A]=y-k<<24|64<<16|0),s.bits=x,0}},{"../utils/common":35}],43:[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"}},{}],44:[function(t,e,r){"use strict";var i=t("../utils/common"),s=0,l=1;function n(t){for(var e=t.length;0<=--e;)t[e]=0}var a=0,o=29,u=256,f=u+1+o,h=30,c=19,m=2*f+1,g=15,d=16,p=7,b=256,y=16,v=17,_=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],x=[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],E=[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],j=new Array(2*(f+2));n(j);var S=new Array(2*h);n(S);var A=new Array(512);n(A);var I=new Array(256);n(I);var T=new Array(o);n(T);var O,R,P,M=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 D(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,r){t.bi_valid>d-r?(t.bi_buf|=e<<t.bi_valid&65535,D(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){N(t,r[2*e],r[2*e+1])}function z(t,e){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--e;);return r>>>1}function F(t,e,r){var n,i,a=new Array(g+1),o=0;for(n=1;n<=g;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(a[s]++,s))}}function H(t){var e;for(e=0;e<f;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*b]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function G(t){8<t.bi_valid?D(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 q(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function W(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&q(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!q(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,a,o,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,(a=I[i])+u+1,e),0!==(o=w[a])&&N(t,i-=T[a],o),U(t,a=B(--n),r),0!==(o=x[a])&&N(t,n-=M[a],o)),s<t.last_lit;);U(t,b,e)}function Y(t,e){var r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=m,r=0;r<l;r++)0!==a[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=u,r=t.heap_len>>1;1<=r;r--)W(t,a,r);for(i=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,W(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,l=e.dyn_tree,u=e.max_code,f=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,b=0;for(a=0;a<=g;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<m;r++)p<(a=l[2*l[2*(n=t.heap[r])+1]+1]+1)&&(a=p,b++),l[2*n+1]=a,u<n||(t.bl_count[a]++,o=0,d<=n&&(o=c[n-d]),s=l[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(f[2*n+1]+o)));if(0!==b){do{for(a=p-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[p]--,b-=2}while(0<b);for(a=p;0!==a;a--)for(n=t.bl_count[a];0!==n;)u<(i=t.heap[--r])||(l[2*i+1]!==a&&(t.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}(t,e),F(a,u,t.bl_count)}function V(t,e,r){var n,i,a=-1,o=e[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<l&&i===o||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[2*y]++):s<=10?t.bl_tree[2*v]++:t.bl_tree[2*_]++,a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function X(t,e,r){var n,i,a=-1,o=e[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<l&&i===o)){if(s<u)for(;U(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==a&&(U(t,i,t.bl_tree),s--),U(t,y,t.bl_tree),N(t,s-3,2)):s<=10?(U(t,v,t.bl_tree),N(t,s-3,3)):(U(t,_,t.bl_tree),N(t,s-11,7));a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}n(M);var J=!1;function K(t,e,r,n){N(t,(a<<1)+(n?1:0),3),function(t,e,r,n){G(t),n&&(D(t,r),D(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,a=new Array(g+1);for(n=r=0;n<o-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(M[n]=i,t=0;t<1<<x[n];t++)A[i++]=n;for(i>>=7;n<h;n++)for(M[n]=i<<7,t=0;t<1<<x[n]-7;t++)A[256+i++]=n;for(e=0;e<=g;e++)a[e]=0;for(t=0;t<=143;)j[2*t+1]=8,t++,a[8]++;for(;t<=255;)j[2*t+1]=9,t++,a[9]++;for(;t<=279;)j[2*t+1]=7,t++,a[7]++;for(;t<=287;)j[2*t+1]=8,t++,a[8]++;for(F(j,f+1,a),t=0;t<h;t++)S[2*t+1]=5,S[2*t]=z(t,5);O=new L(j,w,u+1,f,g),R=new L(S,x,0,h,g),P=new L(new Array(0),E,0,c,p)}(),J=!0),t.l_desc=new C(t.dyn_ltree,O),t.d_desc=new C(t.dyn_dtree,R),t.bl_desc=new C(t.bl_tree,P),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,a,o=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 l;for(e=32;e<u;e++)if(0!==t.dyn_ltree[2*e])return l;return s}(t)),Y(t,t.l_desc),Y(t,t.d_desc),o=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,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?K(t,e,r,n):4===t.strategy||a===i?(N(t,2+(n?1:0),3),Z(t,j,S)):(N(t,4+(n?1:0),3),function(t,e,r,n){var i;for(N(t,e-257,5),N(t,r-1,5),N(t,n-4,4),i=0;i<n;i++)N(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,o+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]+u+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){N(t,2,3),U(t,b,j),function(t){16===t.bi_valid?(D(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":35}],45:[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}},{}],46:[function(t,e,r){arguments[4][32][0].apply(r,arguments)},{dup:32}],47:[function(B,t,D){(function(h){"use strict";var n=B("base64-js"),a=B("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 o(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 l(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=o(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return u(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(M(t,ArrayBuffer)||t&&M(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|f(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||L(t.length)?o(0):u(t);if("Buffer"===t.type&&Array.isArray(t.data))return u(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 l(t){return s(t),o(t<0?0:0|f(t))}function u(t){for(var e=t.length<0?0:0|f(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(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)||M(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 O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(t).length;default:if(i)return n?-1:O(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),L(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:b(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):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var a,o=1,s=t.length,l=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/=o=2,l/=2,r/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;a<s;a++)if(u(t,a)===u(e,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===l)return f*o}else-1!==f&&(a-=a-f),f=-1}else for(s<r+l&&(r=s-l),a=r;0<=a;a--){for(var h=!0,c=0;c<l;c++)if(u(t,a+c)!==u(e,c)){h=!1;break}if(h)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?i<(n=Number(n))&&(n=i):n=i;var a=e.length;a/2<n&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(L(s))return o;t[r+o]=s}return o}function g(t,e,r,n){return P(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),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 a,o,s,l,u=t[i],f=null,h=239<u?4:223<u?3:191<u?2:1;if(i+h<=r)switch(h){case 1:u<128&&(f=u);break;case 2:128==(192&(a=t[i+1]))&&127<(l=(31&u)<<6|63&a)&&(f=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&2047<(l=(15&u)<<12|(63&a)<<6|63&o)&&(l<55296||57343<l)&&(f=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)&&l<1114112&&(f=l)}null===f?(f=65533,h=1):65535<f&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(t){var e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=_));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?o(t):void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}(t,e,r)},h.allocUnsafe=function(t){return l(t)},h.allocUnsafeSlow=function(t){return l(t)},h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,e){if(M(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),M(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,a=Math.min(r,n);i<a;++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 a=t[r];if(M(a,Uint8Array)&&(a=h.from(a)),!h.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.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 E(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return w(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 k(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(M(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 a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),l=this.slice(n,i),u=t.slice(e,r),f=0;f<s;++f)if(l[f]!==u[f]){a=l[f],o=u[f];break}return a<o?-1:o<a?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 a,o,s,l,u,f,h,c,d,p=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return c=e,d=r,P(O(t,(h=this).length-c),h,c,d);case"ascii":return g(this,t,e,r);case"latin1":case"binary":return g(this,t,e,r);case"base64":return l=this,u=e,f=r,P(R(t),l,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=e,s=r,P(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,(a=this).length-o),a,o,s);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function w(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 E(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||n<r)&&(r=n);for(var i="",a=e;a<r;++a)i+=C[t[a]];return i}function k(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+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 S(t,e,r,n,i,a){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<e||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function A(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 I(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,4),a.write(t,e,r,n,23,4),r+4}function T(t,e,r,n,i){return e=+e,r>>>=0,i||A(t,0,r,8),a.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,a=0;++a<e&&(i*=256);)n+=this[t+a]*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,a=0;++a<e&&(i*=256);)n+=this[t+a]*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,a=this[t+--n];0<n&&(i*=256);)a+=this[t+--n]*i;return(i*=128)<=a&&(a-=Math.pow(2,8*e)),a},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),a.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||j(t,4,this.length),a.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||j(t,8,this.length),a.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||j(t,8,this.length),a.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||S(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},h.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||S(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;0<=--i&&(a*=256);)this[e+i]=t/a&255;return e+r},h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||S(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||S(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||S(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||S(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||S(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);S(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},h.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);S(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;0<=--a&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||S(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||S(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||S(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||S(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||S(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 I(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return T(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return T(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 a=i-1;0<=a;--a)t[a+e]=this[a+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 a;if(e>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(a=e;a<r;++a)this[a]=t;else{var o=h.isBuffer(t)?t:h.from(t,n),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<r-e;++a)this[a+e]=o[a%s]}return this};var e=/[^+/0-9A-Za-z-_]/g;function O(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if(55295<(r=t.charCodeAt(o))&&r<57344){if(!i){if(56319<r){-1<(e-=3)&&a.push(239,191,189);continue}if(o+1===n){-1<(e-=3)&&a.push(239,191,189);continue}i=r;continue}if(r<56320){-1<(e-=3)&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&-1<(e-=3)&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.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;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function R(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 P(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 M(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function L(t){return t!=t}var C=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,B("buffer").Buffer)},{"base64-js":28,buffer:47,ieee754:253}],48:[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:47}],49:[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"}},{}],50:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},{}],51:[function(t,e,r){var n=t("../internals/is-object");e.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},{"../internals/is-object":105}],52:[function(t,e,r){var n=t("../internals/well-known-symbol"),i=t("../internals/object-create"),a=t("../internals/create-non-enumerable-property"),o=n("unscopables"),s=Array.prototype;null==s[o]&&a(s,o,i(null)),e.exports=function(t){s[o][t]=!0}},{"../internals/create-non-enumerable-property":76,"../internals/object-create":118,"../internals/well-known-symbol":169}],53:[function(t,e,r){"use strict";var n=t("../internals/string-multibyte").charAt;e.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},{"../internals/string-multibyte":151}],54:[function(t,e,r){e.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},{}],55:[function(t,e,r){var n=t("../internals/is-object");e.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},{"../internals/is-object":105}],56:[function(t,e,r){"use strict";function n(t){return s(t)&&l(P,u(t))}var i,a=t("../internals/descriptors"),o=t("../internals/global"),s=t("../internals/is-object"),l=t("../internals/has"),u=t("../internals/classof"),f=t("../internals/create-non-enumerable-property"),h=t("../internals/redefine"),c=t("../internals/object-define-property").f,d=t("../internals/object-get-prototype-of"),p=t("../internals/object-set-prototype-of"),b=t("../internals/well-known-symbol"),m=t("../internals/uid"),g=o.DataView,y=g&&g.prototype,v=o.Int8Array,_=v&&v.prototype,w=o.Uint8ClampedArray,x=w&&w.prototype,E=v&&d(v),k=_&&d(_),j=Object.prototype,S=j.isPrototypeOf,A=b("toStringTag"),I=m("TYPED_ARRAY_TAG"),T=!(!o.ArrayBuffer||!g),O=T&&!!p&&"Opera"!==u(o.opera),R=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};for(i in P)o[i]||(O=!1);if((!O||"function"!=typeof E||E===Function.prototype)&&(E=function(){throw TypeError("Incorrect invocation")},O))for(i in P)o[i]&&p(o[i],E);if((!O||!k||k===j)&&(k=E.prototype,O))for(i in P)o[i]&&p(o[i].prototype,k);if(O&&d(x)!==k&&p(x,k),a&&!l(k,A))for(i in R=!0,c(k,A,{get:function(){return s(this)?this[I]:void 0}}),P)o[i]&&f(o[i],I,i);T&&p&&d(y)!==j&&p(y,j),e.exports={NATIVE_ARRAY_BUFFER:T,NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:R&&I,aTypedArray:function(t){if(n(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(p){if(S.call(E,t))return t}else for(var e in P)if(l(P,i)){var r=o[e];if(r&&(t===r||S.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},exportProto:function(t,e,r){if(a){if(r)for(var n in P){var i=o[n];i&&l(i.prototype,t)&&delete i.prototype[t]}k[t]&&!r||h(k,t,r?e:O&&_[t]||e)}},exportStatic:function(t,e,r){var n,i;if(a){if(p){if(r)for(n in P)(i=o[n])&&l(i,t)&&delete i[t];if(E[t]&&!r)return;try{return h(E,t,r?e:O&&v[t]||e)}catch(t){}}for(n in P)!(i=o[n])||i[t]&&!r||h(i,t,e)}},isView:function(t){var e=u(t);return"DataView"===e||l(P,e)},isTypedArray:n,TypedArray:E,TypedArrayPrototype:k}},{"../internals/classof":71,"../internals/create-non-enumerable-property":76,"../internals/descriptors":81,"../internals/global":92,"../internals/has":93,"../internals/is-object":105,"../internals/object-define-property":120,"../internals/object-get-prototype-of":125,"../internals/object-set-prototype-of":129,"../internals/redefine":138,"../internals/uid":166,"../internals/well-known-symbol":169}],57:[function(t,e,r){"use strict";function n(t,e,r){var n,i,a,o=new Array(r),s=8*r-e-1,l=(1<<s)-1,u=l>>1,f=23===e?F(2,-24)-F(2,-77):0,h=t<0||0===t&&1/t<0?1:0,c=0;for((t=z(t))!=t||t===1/0?(i=t!=t?1:0,n=l):(n=H(G(t)/q),t*(a=F(2,-n))<1&&(n--,a*=2),2<=(t+=1<=n+u?f/a:f*F(2,1-u))*a&&(n++,a/=2),l<=n+u?(i=0,n=l):1<=n+u?(i=(t*a-1)*F(2,e),n+=u):(i=t*F(2,u-1)*F(2,e),n=0));8<=e;o[c++]=255&i,i/=256,e-=8);for(n=n<<e|i,s+=e;0<s;o[c++]=255&n,n/=256,s-=8);return o[--c]|=128*h,o}function i(t,e){var r,n=t.length,i=8*n-e-1,a=(1<<i)-1,o=a>>1,s=i-7,l=n-1,u=t[l--],f=127&u;for(u>>=7;0<s;f=256*f+t[l],l--,s-=8);for(r=f&(1<<-s)-1,f>>=-s,s+=e;0<s;r=256*r+t[l],l--,s-=8);if(0===f)f=1-o;else{if(f===a)return r?NaN:u?-1/0:1/0;r+=F(2,e),f-=o}return(u?-1:1)*r*F(2,f-e)}function a(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function o(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function l(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function u(t){return n(t,23,4)}function f(t){return n(t,52,8)}function h(t,e){j(t[M],e,{get:function(){return T(this)[e]}})}function c(t,e,r,n){var i=E(+r),a=T(t);if(i+e>a.byteLength)throw U(L);var o=T(a.buffer).bytes,s=i+a.byteOffset,l=o.slice(s,s+e);return n?l:l.reverse()}function d(t,e,r,n,i,a){var o=E(+r),s=T(t);if(o+e>s.byteLength)throw U(L);for(var l=T(s.buffer).bytes,u=o+s.byteOffset,f=n(+i),h=0;h<e;h++)l[u+h]=f[a?h:e-h-1]}var p=t("../internals/global"),b=t("../internals/descriptors"),m=t("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER,g=t("../internals/create-non-enumerable-property"),y=t("../internals/redefine-all"),v=t("../internals/fails"),_=t("../internals/an-instance"),w=t("../internals/to-integer"),x=t("../internals/to-length"),E=t("../internals/to-index"),k=t("../internals/object-get-own-property-names").f,j=t("../internals/object-define-property").f,S=t("../internals/array-fill"),A=t("../internals/set-to-string-tag"),I=t("../internals/internal-state"),T=I.get,O=I.set,R="ArrayBuffer",P="DataView",M="prototype",L="Wrong index",C=p[R],B=C,D=p[P],N=p.Math,U=p.RangeError,z=N.abs,F=N.pow,H=N.floor,G=N.log,q=N.LN2;if(m){if(!v(function(){C(1)})||!v(function(){new C(-1)})||v(function(){return new C,new C(1.5),new C(NaN),C.name!=R})){for(var W,Z=(B=function(t){return _(this,B),new C(E(t))})[M]=C[M],Y=k(C),V=0;Y.length>V;)(W=Y[V++])in B||g(B,W,C[W]);Z.constructor=B}var X=new D(new B(2)),J=D[M].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||y(D[M],{setInt8:function(t,e){J.call(this,t,e<<24>>24)},setUint8:function(t,e){J.call(this,t,e<<24>>24)}},{unsafe:!0})}else B=function(t){_(this,B,R);var e=E(t);O(this,{bytes:S.call(new Array(e),0),byteLength:e}),b||(this.byteLength=e)},D=function(t,e,r){_(this,D,P),_(t,B,P);var n=T(t).byteLength,i=w(e);if(i<0||n<i)throw U("Wrong offset");if(n<i+(r=void 0===r?n-i:x(r)))throw U("Wrong length");O(this,{buffer:t,byteLength:r,byteOffset:i}),b||(this.buffer=t,this.byteLength=r,this.byteOffset=i)},b&&(h(B,"byteLength"),h(D,"buffer"),h(D,"byteLength"),h(D,"byteOffset")),y(D[M],{getInt8:function(t){return c(this,1,t)[0]<<24>>24},getUint8:function(t){return c(this,1,t)[0]},getInt16:function(t,e){var r=c(this,2,t,1<arguments.length?e:void 0);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t,e){var r=c(this,2,t,1<arguments.length?e:void 0);return r[1]<<8|r[0]},getInt32:function(t,e){return a(c(this,4,t,1<arguments.length?e:void 0))},getUint32:function(t,e){return a(c(this,4,t,1<arguments.length?e:void 0))>>>0},getFloat32:function(t,e){return i(c(this,4,t,1<arguments.length?e:void 0),23)},getFloat64:function(t,e){return i(c(this,8,t,1<arguments.length?e:void 0),52)},setInt8:function(t,e){d(this,1,t,o,e)},setUint8:function(t,e){d(this,1,t,o,e)},setInt16:function(t,e,r){d(this,2,t,s,e,2<arguments.length?r:void 0)},setUint16:function(t,e,r){d(this,2,t,s,e,2<arguments.length?r:void 0)},setInt32:function(t,e,r){d(this,4,t,l,e,2<arguments.length?r:void 0)},setUint32:function(t,e,r){d(this,4,t,l,e,2<arguments.length?r:void 0)},setFloat32:function(t,e,r){d(this,4,t,u,e,2<arguments.length?r:void 0)},setFloat64:function(t,e,r){d(this,8,t,f,e,2<arguments.length?r:void 0)}});A(B,R),A(D,P),e.exports={ArrayBuffer:B,DataView:D}},{"../internals/an-instance":54,"../internals/array-buffer-view-core":56,"../internals/array-fill":59,"../internals/create-non-enumerable-property":76,"../internals/descriptors":81,"../internals/fails":86,"../internals/global":92,"../internals/internal-state":100,"../internals/object-define-property":120,"../internals/object-get-own-property-names":123,"../internals/redefine-all":137,"../internals/set-to-string-tag":145,"../internals/to-index":155,"../internals/to-integer":157,"../internals/to-length":158}],58:[function(t,e,r){"use strict";var f=t("../internals/to-object"),h=t("../internals/to-absolute-index"),c=t("../internals/to-length"),d=Math.min;e.exports=[].copyWithin||function(t,e,r){var n=f(this),i=c(n.length),a=h(t,i),o=h(e,i),s=2<arguments.length?r:void 0,l=d((void 0===s?i:h(s,i))-o,i-a),u=1;for(o<a&&a<o+l&&(u=-1,o+=l-1,a+=l-1);0<l--;)o in n?n[a]=n[o]:delete n[a],a+=u,o+=u;return n}},{"../internals/to-absolute-index":154,"../internals/to-length":158,"../internals/to-object":159}],59:[function(t,e,r){"use strict";var u=t("../internals/to-object"),f=t("../internals/to-absolute-index"),h=t("../internals/to-length");e.exports=function(t,e,r){for(var n=u(this),i=h(n.length),a=arguments.length,o=f(1<a?e:void 0,i),s=2<a?r:void 0,l=void 0===s?i:f(s,i);o<l;)n[o++]=t;return n}},{"../internals/to-absolute-index":154,"../internals/to-length":158,"../internals/to-object":159}],60:[function(t,e,r){"use strict";var n=t("../internals/array-iteration").forEach,i=t("../internals/sloppy-array-method");e.exports=i("forEach")?function(t,e){return n(this,t,1<arguments.length?e:void 0)}:[].forEach},{"../internals/array-iteration":62,"../internals/sloppy-array-method":149}],61:[function(t,e,r){function n(s){return function(t,e,r){var n,i=l(t),a=u(i.length),o=f(r,a);if(s&&e!=e){for(;o<a;)if((n=i[o++])!=n)return!0}else for(;o<a;o++)if((s||o in i)&&i[o]===e)return s||o||0;return!s&&-1}}var l=t("../internals/to-indexed-object"),u=t("../internals/to-length"),f=t("../internals/to-absolute-index");e.exports={includes:n(!0),indexOf:n(!1)}},{"../internals/to-absolute-index":154,"../internals/to-indexed-object":156,"../internals/to-length":158}],62:[function(t,e,r){function n(d){var p=1==d,b=2==d,m=3==d,g=4==d,y=6==d,v=5==d||y;return function(t,e,r,n){for(var i,a,o=x(t),s=w(o),l=_(e,r,3),u=E(s.length),f=0,h=n||k,c=p?h(t,u):b?h(t,0):void 0;f<u;f++)if((v||f in s)&&(a=l(i=s[f],f,o),d))if(p)c[f]=a;else if(a)switch(d){case 3:return!0;case 5:return i;case 6:return f;case 2:j.call(c,i)}else if(g)return!1;return y?-1:m||g?g:c}}var _=t("../internals/bind-context"),w=t("../internals/indexed-object"),x=t("../internals/to-object"),E=t("../internals/to-length"),k=t("../internals/array-species-create"),j=[].push;e.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6)}},{"../internals/array-species-create":66,"../internals/bind-context":67,"../internals/indexed-object":98,"../internals/to-length":158,"../internals/to-object":159}],63:[function(t,e,r){"use strict";var a=t("../internals/to-indexed-object"),o=t("../internals/to-integer"),s=t("../internals/to-length"),n=t("../internals/sloppy-array-method"),l=Math.min,u=[].lastIndexOf,f=!!u&&1/[1].lastIndexOf(1,-0)<0,i=n("lastIndexOf");e.exports=f||i?function(t,e){if(f)return u.apply(this,arguments)||0;var r=a(this),n=s(r.length),i=n-1;for(1<arguments.length&&(i=l(i,o(e))),i<0&&(i=n+i);0<=i;i--)if(i in r&&r[i]===t)return i||0;return-1}:u},{"../internals/sloppy-array-method":149,"../internals/to-indexed-object":156,"../internals/to-integer":157,"../internals/to-length":158}],64:[function(t,e,r){var n=t("../internals/fails"),i=t("../internals/well-known-symbol"),a=t("../internals/v8-version"),o=i("species");e.exports=function(e){return 51<=a||!n(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},{"../internals/fails":86,"../internals/v8-version":168,"../internals/well-known-symbol":169}],65:[function(t,e,r){function n(u){return function(t,e,r,n){f(e);var i=h(t),a=c(i),o=d(i.length),s=u?o-1:0,l=u?-1:1;if(r<2)for(;;){if(s in a){n=a[s],s+=l;break}if(s+=l,u?s<0:o<=s)throw TypeError("Reduce of empty array with no initial value")}for(;u?0<=s:s<o;s+=l)s in a&&(n=e(n,a[s],s,i));return n}}var f=t("../internals/a-function"),h=t("../internals/to-object"),c=t("../internals/indexed-object"),d=t("../internals/to-length");e.exports={left:n(!1),right:n(!0)}},{"../internals/a-function":50,"../internals/indexed-object":98,"../internals/to-length":158,"../internals/to-object":159}],66:[function(t,e,r){var n=t("../internals/is-object"),i=t("../internals/is-array"),a=t("../internals/well-known-symbol")("species");e.exports=function(t,e){var r;return i(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},{"../internals/is-array":102,"../internals/is-object":105,"../internals/well-known-symbol":169}],67:[function(t,e,r){var a=t("../internals/a-function");e.exports=function(n,i,t){if(a(n),void 0===i)return n;switch(t){case 0:return function(){return n.call(i)};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)}}},{"../internals/a-function":50}],68:[function(t,e,r){var a=t("../internals/an-object");e.exports=function(e,t,r,n){try{return n?t(a(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&a(i.call(e)),t}}},{"../internals/an-object":55}],69:[function(t,e,r){var i=t("../internals/well-known-symbol")("iterator"),a=!1;try{var n=0,o={next:function(){return{done:!!n++}},return:function(){a=!0}};o[i]=function(){return this},Array.from(o,function(){throw 2})}catch(t){}e.exports=function(t,e){if(!e&&!a)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},{"../internals/well-known-symbol":169}],70:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],71:[function(t,e,r){var i=t("../internals/classof-raw"),a=t("../internals/well-known-symbol")("toStringTag"),o="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),a))?r:o?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},{"../internals/classof-raw":70,"../internals/well-known-symbol":169}],72:[function(t,e,r){var s=t("../internals/has"),l=t("../internals/own-keys"),u=t("../internals/object-get-own-property-descriptor"),f=t("../internals/object-define-property");e.exports=function(t,e){for(var r=l(e),n=f.f,i=u.f,a=0;a<r.length;a++){var o=r[a];s(t,o)||n(t,o,i(e,o))}}},{"../internals/has":93,"../internals/object-define-property":120,"../internals/object-get-own-property-descriptor":121,"../internals/own-keys":132}],73:[function(t,e,r){var n=t("../internals/well-known-symbol")("match");e.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,"/./"[e](r)}catch(t){}}return!1}},{"../internals/well-known-symbol":169}],74:[function(t,e,r){var n=t("../internals/fails");e.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},{"../internals/fails":86}],75:[function(t,e,r){"use strict";function i(){return this}var a=t("../internals/iterators-core").IteratorPrototype,o=t("../internals/object-create"),s=t("../internals/create-property-descriptor"),l=t("../internals/set-to-string-tag"),u=t("../internals/iterators");e.exports=function(t,e,r){var n=e+" Iterator";return t.prototype=o(a,{next:s(1,r)}),l(t,n,!1,!0),u[n]=i,t}},{"../internals/create-property-descriptor":77,"../internals/iterators":110,"../internals/iterators-core":109,"../internals/object-create":118,"../internals/set-to-string-tag":145}],76:[function(t,e,r){var n=t("../internals/descriptors"),i=t("../internals/object-define-property"),a=t("../internals/create-property-descriptor");e.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},{"../internals/create-property-descriptor":77,"../internals/descriptors":81,"../internals/object-define-property":120}],77:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],78:[function(t,e,r){"use strict";var i=t("../internals/to-primitive"),a=t("../internals/object-define-property"),o=t("../internals/create-property-descriptor");e.exports=function(t,e,r){var n=i(e);n in t?a.f(t,n,o(0,r)):t[n]=r}},{"../internals/create-property-descriptor":77,"../internals/object-define-property":120,"../internals/to-primitive":162}],79:[function(t,e,r){"use strict";function g(){return this}var y=t("../internals/export"),v=t("../internals/create-iterator-constructor"),_=t("../internals/object-get-prototype-of"),w=t("../internals/object-set-prototype-of"),x=t("../internals/set-to-string-tag"),E=t("../internals/create-non-enumerable-property"),k=t("../internals/redefine"),n=t("../internals/well-known-symbol"),j=t("../internals/is-pure"),S=t("../internals/iterators"),i=t("../internals/iterators-core"),A=i.IteratorPrototype,I=i.BUGGY_SAFARI_ITERATORS,T=n("iterator"),O="values",R="entries";e.exports=function(t,e,r,n,i,a,o){v(r,e,n);function s(t){if(t===i&&b)return b;if(!I&&t in d)return d[t];switch(t){case"keys":case O:case R:return function(){return new r(this,t)}}return function(){return new r(this)}}var l,u,f,h=e+" Iterator",c=!1,d=t.prototype,p=d[T]||d["@@iterator"]||i&&d[i],b=!I&&p||s(i),m="Array"==e&&d.entries||p;if(m&&(l=_(m.call(new t)),A!==Object.prototype&&l.next&&(j||_(l)===A||(w?w(l,A):"function"!=typeof l[T]&&E(l,T,g)),x(l,h,!0,!0),j&&(S[h]=g))),i==O&&p&&p.name!==O&&(c=!0,b=function(){return p.call(this)}),j&&!o||d[T]===b||E(d,T,b),S[e]=b,i)if(u={values:s(O),keys:a?b:s("keys"),entries:s(R)},o)for(f in u)!I&&!c&&f in d||k(d,f,u[f]);else y({target:e,proto:!0,forced:I||c},u);return u}},{"../internals/create-iterator-constructor":75,"../internals/create-non-enumerable-property":76,"../internals/export":85,"../internals/is-pure":106,"../internals/iterators":110,"../internals/iterators-core":109,"../internals/object-get-prototype-of":125,"../internals/object-set-prototype-of":129,"../internals/redefine":138,"../internals/set-to-string-tag":145,"../internals/well-known-symbol":169}],80:[function(t,e,r){var n=t("../internals/path"),i=t("../internals/has"),a=t("../internals/wrapped-well-known-symbol"),o=t("../internals/object-define-property").f;e.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},{"../internals/has":93,"../internals/object-define-property":120,"../internals/path":134,"../internals/wrapped-well-known-symbol":171}],81:[function(t,e,r){var n=t("../internals/fails");e.exports=!n(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"../internals/fails":86}],82:[function(t,e,r){var n=t("../internals/global"),i=t("../internals/is-object"),a=n.document,o=i(a)&&i(a.createElement);e.exports=function(t){return o?a.createElement(t):{}}},{"../internals/global":92,"../internals/is-object":105}],83:[function(t,e,r){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],84:[function(t,e,r){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],85:[function(t,e,r){var f=t("../internals/global"),h=t("../internals/object-get-own-property-descriptor").f,c=t("../internals/create-non-enumerable-property"),d=t("../internals/redefine"),p=t("../internals/set-global"),b=t("../internals/copy-constructor-properties"),m=t("../internals/is-forced");e.exports=function(t,e){var r,n,i,a,o,s=t.target,l=t.global,u=t.stat;if(r=l?f:u?f[s]||p(s,{}):(f[s]||{}).prototype)for(n in e){if(a=e[n],i=t.noTargetGet?(o=h(r,n))&&o.value:r[n],!m(l?n:s+(u?".":"#")+n,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;b(a,i)}(t.sham||i&&i.sham)&&c(a,"sham",!0),d(r,n,a,t)}}},{"../internals/copy-constructor-properties":72,"../internals/create-non-enumerable-property":76,"../internals/global":92,"../internals/is-forced":103,"../internals/object-get-own-property-descriptor":121,"../internals/redefine":138,"../internals/set-global":143}],86:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],87:[function(t,e,r){"use strict";var h=t("../internals/create-non-enumerable-property"),c=t("../internals/redefine"),d=t("../internals/fails"),p=t("../internals/well-known-symbol"),b=t("../internals/regexp-exec"),m=p("species"),g=!d(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),y=!d(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]});e.exports=function(r,t,e,n){var i=p(r),a=!d(function(){var t={};return t[i]=function(){return 7},7!=""[r](t)}),o=a&&!d(function(){var t=!1,e=/a/;return"split"===r&&((e={constructor:{}}).constructor[m]=function(){return e},e.flags="",e[i]=/./[i]),e.exec=function(){return t=!0,null},e[i](""),!t});if(!a||!o||"replace"===r&&!g||"split"===r&&!y){var s=/./[i],l=e(i,""[r],function(t,e,r,n,i){return e.exec===b?a&&!i?{done:!0,value:s.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),u=l[0],f=l[1];c(String.prototype,r,u),c(RegExp.prototype,i,2==t?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}),n&&h(RegExp.prototype[i],"sham",!0)}}},{"../internals/create-non-enumerable-property":76,"../internals/fails":86,"../internals/redefine":138,"../internals/regexp-exec":140,"../internals/well-known-symbol":169}],88:[function(t,e,r){"use strict";var a=t("../internals/a-function"),o=t("../internals/is-object"),s=[].slice,l={};e.exports=Function.bind||function(e){var r=a(this),n=s.call(arguments,1),i=function(){var t=n.concat(s.call(arguments));return this instanceof i?function(t,e,r){if(!(e in l)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";l[e]=Function("C,a","return new C("+n.join(",")+")")}return l[e](t,r)}(r,t.length,t):r.apply(e,t)};return o(r.prototype)&&(i.prototype=r.prototype),i}},{"../internals/a-function":50,"../internals/is-object":105}],89:[function(t,e,r){var n=t("../internals/shared");e.exports=n("native-function-to-string",Function.toString)},{"../internals/shared":148}],90:[function(t,e,r){function n(t){return"function"==typeof t?t:void 0}var i=t("../internals/path"),a=t("../internals/global");e.exports=function(t,e){return arguments.length<2?n(i[t])||n(a[t]):i[t]&&i[t][e]||a[t]&&a[t][e]}},{"../internals/global":92,"../internals/path":134}],91:[function(t,e,r){var n=t("../internals/classof"),i=t("../internals/iterators"),a=t("../internals/well-known-symbol")("iterator");e.exports=function(t){if(null!=t)return t[a]||t["@@iterator"]||i[n(t)]}},{"../internals/classof":71,"../internals/iterators":110,"../internals/well-known-symbol":169}],92:[function(t,r,e){(function(t){function e(t){return t&&t.Math==Math&&t}r.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||Function("return this")()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],93:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],94:[function(t,e,r){e.exports={}},{}],95:[function(t,e,r){var n=t("../internals/global");e.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},{"../internals/global":92}],96:[function(t,e,r){var n=t("../internals/get-built-in");e.exports=n("document","documentElement")},{"../internals/get-built-in":90}],97:[function(t,e,r){var n=t("../internals/descriptors"),i=t("../internals/fails"),a=t("../internals/document-create-element");e.exports=!n&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":81,"../internals/document-create-element":82,"../internals/fails":86}],98:[function(t,e,r){var n=t("../internals/fails"),i=t("../internals/classof-raw"),a="".split;e.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?a.call(t,""):Object(t)}:Object},{"../internals/classof-raw":70,"../internals/fails":86}],99:[function(t,e,r){var a=t("../internals/is-object"),o=t("../internals/object-set-prototype-of");e.exports=function(t,e,r){var n,i;return o&&"function"==typeof(n=e.constructor)&&n!==r&&a(i=n.prototype)&&i!==r.prototype&&o(t,i),t}},{"../internals/is-object":105,"../internals/object-set-prototype-of":129}],100:[function(t,e,r){var n,i,a,o=t("../internals/native-weak-map"),s=t("../internals/global"),l=t("../internals/is-object"),u=t("../internals/create-non-enumerable-property"),f=t("../internals/has"),h=t("../internals/shared-key"),c=t("../internals/hidden-keys"),d=s.WeakMap;if(o){var p=new d,b=p.get,m=p.has,g=p.set;n=function(t,e){return g.call(p,t,e),e},i=function(t){return b.call(p,t)||{}},a=function(t){return m.call(p,t)}}else{var y=h("state");c[y]=!0,n=function(t,e){return u(t,y,e),e},i=function(t){return f(t,y)?t[y]:{}},a=function(t){return f(t,y)}}e.exports={set:n,get:i,has:a,enforce:function(t){return a(t)?i(t):n(t,{})},getterFor:function(r){return function(t){var e;if(!l(t)||(e=i(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}}},{"../internals/create-non-enumerable-property":76,"../internals/global":92,"../internals/has":93,"../internals/hidden-keys":94,"../internals/is-object":105,"../internals/native-weak-map":114,"../internals/shared-key":146}],101:[function(t,e,r){var n=t("../internals/well-known-symbol"),i=t("../internals/iterators"),a=n("iterator"),o=Array.prototype;e.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},{"../internals/iterators":110,"../internals/well-known-symbol":169}],102:[function(t,e,r){var n=t("../internals/classof-raw");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"../internals/classof-raw":70}],103:[function(t,e,r){function n(t,e){var r=s[o(t)];return r==u||r!=l&&("function"==typeof e?i(e):!!e)}var i=t("../internals/fails"),a=/#|\.prototype\./,o=n.normalize=function(t){return String(t).replace(a,".").toLowerCase()},s=n.data={},l=n.NATIVE="N",u=n.POLYFILL="P";e.exports=n},{"../internals/fails":86}],104:[function(t,e,r){var n=t("../internals/user-agent");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},{"../internals/user-agent":167}],105:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],106:[function(t,e,r){e.exports=!1},{}],107:[function(t,e,r){var n=t("../internals/is-object"),i=t("../internals/classof-raw"),a=t("../internals/well-known-symbol")("match");e.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},{"../internals/classof-raw":70,"../internals/is-object":105,"../internals/well-known-symbol":169}],108:[function(t,e,r){function d(t,e){this.stopped=t,this.result=e}var p=t("../internals/an-object"),b=t("../internals/is-array-iterator-method"),m=t("../internals/to-length"),g=t("../internals/bind-context"),y=t("../internals/get-iterator-method"),v=t("../internals/call-with-safe-iteration-closing");(e.exports=function(t,e,r,n,i){var a,o,s,l,u,f,h,c=g(e,r,n?2:1);if(i)a=t;else{if("function"!=typeof(o=y(t)))throw TypeError("Target is not iterable");if(b(o)){for(s=0,l=m(t.length);s<l;s++)if((u=n?c(p(h=t[s])[0],h[1]):c(t[s]))&&u instanceof d)return u;return new d(!1)}a=o.call(t)}for(f=a.next;!(h=f.call(a)).done;)if("object"==typeof(u=v(a,c,h.value,n))&&u&&u instanceof d)return u;return new d(!1)}).stop=function(t){return new d(!0,t)}},{"../internals/an-object":55,"../internals/bind-context":67,"../internals/call-with-safe-iteration-closing":68,"../internals/get-iterator-method":91,"../internals/is-array-iterator-method":101,"../internals/to-length":158}],109:[function(t,e,r){"use strict";var n,i,a,o=t("../internals/object-get-prototype-of"),s=t("../internals/create-non-enumerable-property"),l=t("../internals/has"),u=t("../internals/well-known-symbol"),f=t("../internals/is-pure"),h=u("iterator"),c=!1;[].keys&&("next"in(a=[].keys())?(i=o(o(a)))!==Object.prototype&&(n=i):c=!0),null==n&&(n={}),f||l(n,h)||s(n,h,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:c}},{"../internals/create-non-enumerable-property":76,"../internals/has":93,"../internals/is-pure":106,"../internals/object-get-prototype-of":125,"../internals/well-known-symbol":169}],110:[function(t,e,r){arguments[4][94][0].apply(r,arguments)},{dup:94}],111:[function(t,e,r){var n,i,a,o,s,l,u,f,h=t("../internals/global"),c=t("../internals/object-get-own-property-descriptor").f,d=t("../internals/classof-raw"),p=t("../internals/task").set,b=t("../internals/is-ios"),m=h.MutationObserver||h.WebKitMutationObserver,g=h.process,y=h.Promise,v="process"==d(g),_=c(h,"queueMicrotask"),w=_&&_.value;w||(n=function(){var t,e;for(v&&(t=g.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?o():a=void 0,t}}a=void 0,t&&t.enter()},o=v?function(){g.nextTick(n)}:m&&!b?(s=!0,l=document.createTextNode(""),new m(n).observe(l,{characterData:!0}),function(){l.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),f=u.then,function(){f.call(u,n)}):function(){p.call(h,n)}),e.exports=w||function(t){var e={fn:t,next:void 0};a&&(a.next=e),i||(i=e,o()),a=e}},{"../internals/classof-raw":70,"../internals/global":92,"../internals/is-ios":104,"../internals/object-get-own-property-descriptor":121,"../internals/task":153}],112:[function(t,e,r){var n=t("../internals/global");e.exports=n.Promise},{"../internals/global":92}],113:[function(t,e,r){var n=t("../internals/fails");e.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},{"../internals/fails":86}],114:[function(t,e,r){var n=t("../internals/global"),i=t("../internals/function-to-string"),a=n.WeakMap;e.exports="function"==typeof a&&/native code/.test(i.call(a))},{"../internals/function-to-string":89,"../internals/global":92}],115:[function(t,e,r){"use strict";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)}var i=t("../internals/a-function");e.exports.f=function(t){return new n(t)}},{"../internals/a-function":50}],116:[function(t,e,r){var n=t("../internals/is-regexp");e.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},{"../internals/is-regexp":107}],117:[function(t,e,r){"use strict";var c=t("../internals/descriptors"),n=t("../internals/fails"),d=t("../internals/object-keys"),p=t("../internals/object-get-own-property-symbols"),b=t("../internals/object-property-is-enumerable"),m=t("../internals/to-object"),g=t("../internals/indexed-object"),i=Object.assign;e.exports=!i||n(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=i({},t)[r]||d(i({},e)).join("")!=n})?function(t,e){for(var r=m(t),n=arguments.length,i=1,a=p.f,o=b.f;i<n;)for(var s,l=g(arguments[i++]),u=a?d(l).concat(a(l)):d(l),f=u.length,h=0;h<f;)s=u[h++],c&&!o.call(l,s)||(r[s]=l[s]);return r}:i},{"../internals/descriptors":81,"../internals/fails":86,"../internals/indexed-object":98,"../internals/object-get-own-property-symbols":124,"../internals/object-keys":127,"../internals/object-property-is-enumerable":128,"../internals/to-object":159}],118:[function(t,e,r){function n(){}var i=t("../internals/an-object"),a=t("../internals/object-define-properties"),o=t("../internals/enum-bug-keys"),s=t("../internals/hidden-keys"),l=t("../internals/html"),u=t("../internals/document-create-element"),f=t("../internals/shared-key")("IE_PROTO"),h="prototype",c=function(){var t,e=u("iframe"),r=o.length,n="script";for(e.style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object</"+n+">"),t.close(),c=t.F;r--;)delete c[h][o[r]];return c()};e.exports=Object.create||function(t,e){var r;return null!==t?(n[h]=i(t),r=new n,n[h]=null,r[f]=t):r=c(),void 0===e?r:a(r,e)},s[f]=!0},{"../internals/an-object":55,"../internals/document-create-element":82,"../internals/enum-bug-keys":84,"../internals/hidden-keys":94,"../internals/html":96,"../internals/object-define-properties":119,"../internals/shared-key":146}],119:[function(t,e,r){var n=t("../internals/descriptors"),o=t("../internals/object-define-property"),s=t("../internals/an-object"),l=t("../internals/object-keys");e.exports=n?Object.defineProperties:function(t,e){s(t);for(var r,n=l(e),i=n.length,a=0;a<i;)o.f(t,r=n[a++],e[r]);return t}},{"../internals/an-object":55,"../internals/descriptors":81,"../internals/object-define-property":120,"../internals/object-keys":127}],120:[function(t,e,r){var n=t("../internals/descriptors"),i=t("../internals/ie8-dom-define"),a=t("../internals/an-object"),o=t("../internals/to-primitive"),s=Object.defineProperty;r.f=n?s:function(t,e,r){if(a(t),e=o(e,!0),a(r),i)try{return s(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}},{"../internals/an-object":55,"../internals/descriptors":81,"../internals/ie8-dom-define":97,"../internals/to-primitive":162}],121:[function(t,e,r){var n=t("../internals/descriptors"),i=t("../internals/object-property-is-enumerable"),a=t("../internals/create-property-descriptor"),o=t("../internals/to-indexed-object"),s=t("../internals/to-primitive"),l=t("../internals/has"),u=t("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;r.f=n?f:function(t,e){if(t=o(t),e=s(e,!0),u)try{return f(t,e)}catch(t){}if(l(t,e))return a(!i.f.call(t,e),t[e])}},{"../internals/create-property-descriptor":77,"../internals/descriptors":81,"../internals/has":93,"../internals/ie8-dom-define":97,"../internals/object-property-is-enumerable":128,"../internals/to-indexed-object":156,"../internals/to-primitive":162}],122:[function(t,e,r){var n=t("../internals/to-indexed-object"),i=t("../internals/object-get-own-property-names").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(t){return o&&"[object Window]"==a.call(t)?function(t){try{return i(t)}catch(t){return o.slice()}}(t):i(n(t))}},{"../internals/object-get-own-property-names":123,"../internals/to-indexed-object":156}],123:[function(t,e,r){var n=t("../internals/object-keys-internal"),i=t("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},{"../internals/enum-bug-keys":84,"../internals/object-keys-internal":126}],124:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],125:[function(t,e,r){var n=t("../internals/has"),i=t("../internals/to-object"),a=t("../internals/shared-key"),o=t("../internals/correct-prototype-getter"),s=a("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(t){return t=i(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},{"../internals/correct-prototype-getter":74,"../internals/has":93,"../internals/shared-key":146,"../internals/to-object":159}],126:[function(t,e,r){var o=t("../internals/has"),s=t("../internals/to-indexed-object"),l=t("../internals/array-includes").indexOf,u=t("../internals/hidden-keys");e.exports=function(t,e){var r,n=s(t),i=0,a=[];for(r in n)!o(u,r)&&o(n,r)&&a.push(r);for(;e.length>i;)o(n,r=e[i++])&&(~l(a,r)||a.push(r));return a}},{"../internals/array-includes":61,"../internals/has":93,"../internals/hidden-keys":94,"../internals/to-indexed-object":156}],127:[function(t,e,r){var n=t("../internals/object-keys-internal"),i=t("../internals/enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"../internals/enum-bug-keys":84,"../internals/object-keys-internal":126}],128:[function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);r.f=a?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},{}],129:[function(t,e,r){var i=t("../internals/an-object"),a=t("../internals/a-possible-prototype");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,t={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(t){}return function(t,e){return i(t),a(e),n?r.call(t,e):t.__proto__=e,t}}():void 0)},{"../internals/a-possible-prototype":51,"../internals/an-object":55}],130:[function(t,e,r){function n(s){return function(t){for(var e,r=f(t),n=u(r),i=n.length,a=0,o=[];a<i;)e=n[a++],l&&!h.call(r,e)||o.push(s?[e,r[e]]:r[e]);return o}}var l=t("../internals/descriptors"),u=t("../internals/object-keys"),f=t("../internals/to-indexed-object"),h=t("../internals/object-property-is-enumerable").f;e.exports={entries:n(!0),values:n(!1)}},{"../internals/descriptors":81,"../internals/object-keys":127,"../internals/object-property-is-enumerable":128,"../internals/to-indexed-object":156}],131:[function(t,e,r){"use strict";var n=t("../internals/classof"),i={};i[t("../internals/well-known-symbol")("toStringTag")]="z",e.exports="[object z]"!==String(i)?function(){return"[object "+n(this)+"]"}:i.toString},{"../internals/classof":71,"../internals/well-known-symbol":169}],132:[function(t,e,r){var n=t("../internals/get-built-in"),i=t("../internals/object-get-own-property-names"),a=t("../internals/object-get-own-property-symbols"),o=t("../internals/an-object");e.exports=n("Reflect","ownKeys")||function(t){var e=i.f(o(t)),r=a.f;return r?e.concat(r(t)):e}},{"../internals/an-object":55,"../internals/get-built-in":90,"../internals/object-get-own-property-names":123,"../internals/object-get-own-property-symbols":124}],133:[function(t,e,r){var n=t("../internals/global"),i=t("../internals/string-trim").trim,a=t("../internals/whitespaces"),o=n.parseInt,s=/^[+-]?0[Xx]/,l=8!==o(a+"08")||22!==o(a+"0x16");e.exports=l?function(t,e){var r=i(String(t));return o(r,e>>>0||(s.test(r)?16:10))}:o},{"../internals/global":92,"../internals/string-trim":152,"../internals/whitespaces":170}],134:[function(t,e,r){e.exports=t("../internals/global")},{"../internals/global":92}],135:[function(t,e,r){e.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},{}],136:[function(t,e,r){var n=t("../internals/an-object"),i=t("../internals/is-object"),a=t("../internals/new-promise-capability");e.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=a.f(t);return(0,r.resolve)(e),r.promise}},{"../internals/an-object":55,"../internals/is-object":105,"../internals/new-promise-capability":115}],137:[function(t,e,r){var i=t("../internals/redefine");e.exports=function(t,e,r){for(var n in e)i(t,n,e[n],r);return t}},{"../internals/redefine":138}],138:[function(t,e,r){var s=t("../internals/global"),n=t("../internals/shared"),l=t("../internals/create-non-enumerable-property"),u=t("../internals/has"),f=t("../internals/set-global"),i=t("../internals/function-to-string"),a=t("../internals/internal-state"),o=a.get,h=a.enforce,c=String(i).split("toString");n("inspectSource",function(t){return i.call(t)}),(e.exports=function(t,e,r,n){var i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,o=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||u(r,"name")||l(r,"name",e),h(r).source=c.join("string"==typeof e?e:"")),t!==s?(i?!o&&t[e]&&(a=!0):delete t[e],a?t[e]=r:l(t,e,r)):a?t[e]=r:f(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&o(this).source||i.call(this)})},{"../internals/create-non-enumerable-property":76,"../internals/function-to-string":89,"../internals/global":92,"../internals/has":93,"../internals/internal-state":100,"../internals/set-global":143,"../internals/shared":148}],139:[function(t,e,r){var i=t("./classof-raw"),a=t("./regexp-exec");e.exports=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==i(t))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(t,e)}},{"./classof-raw":70,"./regexp-exec":140}],140:[function(t,e,r){"use strict";var n,i,o=t("./regexp-flags"),s=RegExp.prototype.exec,l=String.prototype.replace,a=s,u=(n=/a/,i=/b*/g,s.call(n,"a"),s.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),f=void 0!==/()??/.exec("")[1];(u||f)&&(a=function(t){var e,r,n,i,a=this;return f&&(r=new RegExp("^"+a.source+"$(?!\\s)",o.call(a))),u&&(e=a.lastIndex),n=s.call(a,t),u&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),f&&n&&1<n.length&&l.call(n[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)}),n}),e.exports=a},{"./regexp-flags":141}],141:[function(t,e,r){"use strict";var n=t("../internals/an-object");e.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"../internals/an-object":55}],142:[function(t,e,r){e.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},{}],143:[function(t,e,r){var n=t("../internals/global"),i=t("../internals/create-non-enumerable-property");e.exports=function(e,r){try{i(n,e,r)}catch(t){n[e]=r}return r}},{"../internals/create-non-enumerable-property":76,"../internals/global":92}],144:[function(t,e,r){"use strict";var n=t("../internals/get-built-in"),i=t("../internals/object-define-property"),a=t("../internals/well-known-symbol"),o=t("../internals/descriptors"),s=a("species");e.exports=function(t){var e=n(t),r=i.f;o&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":81,"../internals/get-built-in":90,"../internals/object-define-property":120,"../internals/well-known-symbol":169}],145:[function(t,e,r){var n=t("../internals/object-define-property").f,i=t("../internals/has"),a=t("../internals/well-known-symbol")("toStringTag");e.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,a)&&n(t,a,{configurable:!0,value:e})}},{"../internals/has":93,"../internals/object-define-property":120,"../internals/well-known-symbol":169}],146:[function(t,e,r){var n=t("../internals/shared"),i=t("../internals/uid"),a=n("keys");e.exports=function(t){return a[t]||(a[t]=i(t))}},{"../internals/shared":148,"../internals/uid":166}],147:[function(t,e,r){var n=t("../internals/global"),i=t("../internals/set-global"),a="__core-js_shared__",o=n[a]||i(a,{});e.exports=o},{"../internals/global":92,"../internals/set-global":143}],148:[function(t,e,r){var n=t("../internals/is-pure"),i=t("../internals/shared-store");(e.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.4.1",mode:n?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":106,"../internals/shared-store":147}],149:[function(t,e,r){"use strict";var n=t("../internals/fails");e.exports=function(t,e){var r=[][t];return!r||!n(function(){r.call(null,e||function(){throw 1},1)})}},{"../internals/fails":86}],150:[function(t,e,r){var i=t("../internals/an-object"),a=t("../internals/a-function"),o=t("../internals/well-known-symbol")("species");e.exports=function(t,e){var r,n=i(t).constructor;return void 0===n||null==(r=i(n)[o])?e:a(r)}},{"../internals/a-function":50,"../internals/an-object":55,"../internals/well-known-symbol":169}],151:[function(t,e,r){function n(s){return function(t,e){var r,n,i=String(u(t)),a=l(e),o=i.length;return a<0||o<=a?s?"":void 0:(r=i.charCodeAt(a))<55296||56319<r||a+1===o||(n=i.charCodeAt(a+1))<56320||57343<n?s?i.charAt(a):r:s?i.slice(a,a+2):n-56320+(r-55296<<10)+65536}}var l=t("../internals/to-integer"),u=t("../internals/require-object-coercible");e.exports={codeAt:n(!1),charAt:n(!0)}},{"../internals/require-object-coercible":142,"../internals/to-integer":157}],152:[function(t,e,r){function n(r){return function(t){var e=String(i(t));return 1&r&&(e=e.replace(o,"")),2&r&&(e=e.replace(s,"")),e}}var i=t("../internals/require-object-coercible"),a="["+t("../internals/whitespaces")+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$");e.exports={start:n(1),end:n(2),trim:n(3)}},{"../internals/require-object-coercible":142,"../internals/whitespaces":170}],153:[function(t,e,r){function n(t){if(k.hasOwnProperty(t)){var e=k[t];delete k[t],e()}}function i(t){return function(){n(t)}}function a(t){n(t.data)}function o(t){f.postMessage(t+"",g.protocol+"//"+g.host)}var s,l,u,f=t("../internals/global"),h=t("../internals/fails"),c=t("../internals/classof-raw"),d=t("../internals/bind-context"),p=t("../internals/html"),b=t("../internals/document-create-element"),m=t("../internals/is-ios"),g=f.location,y=f.setImmediate,v=f.clearImmediate,_=f.process,w=f.MessageChannel,x=f.Dispatch,E=0,k={},j="onreadystatechange";y&&v||(y=function(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return k[++E]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},s(E),E},v=function(t){delete k[t]},"process"==c(_)?s=function(t){_.nextTick(i(t))}:x&&x.now?s=function(t){x.now(i(t))}:w&&!m?(u=(l=new w).port2,l.port1.onmessage=a,s=d(u.postMessage,u,1)):!f.addEventListener||"function"!=typeof postMessage||f.importScripts||h(o)?s=j in b("script")?function(t){p.appendChild(b("script"))[j]=function(){p.removeChild(this),n(t)}}:function(t){setTimeout(i(t),0)}:(s=o,f.addEventListener("message",a,!1))),e.exports={set:y,clear:v}},{"../internals/bind-context":67,"../internals/classof-raw":70,"../internals/document-create-element":82,"../internals/fails":86,"../internals/global":92,"../internals/html":96,"../internals/is-ios":104}],154:[function(t,e,r){var n=t("../internals/to-integer"),i=Math.max,a=Math.min;e.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):a(r,e)}},{"../internals/to-integer":157}],155:[function(t,e,r){var n=t("../internals/to-integer"),i=t("../internals/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 or index");return r}},{"../internals/to-integer":157,"../internals/to-length":158}],156:[function(t,e,r){var n=t("../internals/indexed-object"),i=t("../internals/require-object-coercible");e.exports=function(t){return n(i(t))}},{"../internals/indexed-object":98,"../internals/require-object-coercible":142}],157:[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)}},{}],158:[function(t,e,r){var n=t("../internals/to-integer"),i=Math.min;e.exports=function(t){return 0<t?i(n(t),9007199254740991):0}},{"../internals/to-integer":157}],159:[function(t,e,r){var n=t("../internals/require-object-coercible");e.exports=function(t){return Object(n(t))}},{"../internals/require-object-coercible":142}],160:[function(t,e,r){var n=t("../internals/to-positive-integer");e.exports=function(t,e){var r=n(t);if(r%e)throw RangeError("Wrong offset");return r}},{"../internals/to-positive-integer":161}],161:[function(t,e,r){var n=t("../internals/to-integer");e.exports=function(t){var e=n(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},{"../internals/to-integer":157}],162:[function(t,e,r){var i=t("../internals/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")}},{"../internals/is-object":105}],163:[function(t,e,r){"use strict";function p(t,e){for(var r=0,n=e.length,i=new(Y(t))(n);r<n;)i[r]=e[r++];return i}function n(t,e){D(t,e,{get:function(){return C(this)[e]}})}function b(t){var e;return t instanceof F||"ArrayBuffer"==(e=E(t))||"SharedArrayBuffer"==e}function i(t,e){return V(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)}function a(t,e){return i(t,e=d(e,!0))?c(2,t[e]):N(t,e)}function o(t,e,r){return!(i(t,e=d(e,!0))&&k(r)&&x(r,"value"))||x(r,"get")||x(r,"set")||r.configurable||x(r,"writable")&&!r.writable||x(r,"enumerable")&&!r.enumerable?D(t,e,r):(t[e]=r.value,t)}var l=t("../internals/export"),u=t("../internals/global"),s=t("../internals/descriptors"),m=t("../internals/typed-arrays-constructors-requires-wrappers"),f=t("../internals/array-buffer-view-core"),h=t("../internals/array-buffer"),g=t("../internals/an-instance"),c=t("../internals/create-property-descriptor"),y=t("../internals/create-non-enumerable-property"),v=t("../internals/to-length"),_=t("../internals/to-index"),w=t("../internals/to-offset"),d=t("../internals/to-primitive"),x=t("../internals/has"),E=t("../internals/classof"),k=t("../internals/is-object"),j=t("../internals/object-create"),S=t("../internals/object-set-prototype-of"),A=t("../internals/object-get-own-property-names").f,I=t("../internals/typed-array-from"),T=t("../internals/array-iteration").forEach,O=t("../internals/set-species"),R=t("../internals/object-define-property"),P=t("../internals/object-get-own-property-descriptor"),M=t("../internals/internal-state"),L=t("../internals/inherit-if-required"),C=M.get,B=M.set,D=R.f,N=P.f,U=Math.round,z=u.RangeError,F=h.ArrayBuffer,H=h.DataView,G=f.NATIVE_ARRAY_BUFFER_VIEWS,q=f.TYPED_ARRAY_TAG,W=f.TypedArray,Z=f.TypedArrayPrototype,Y=f.aTypedArrayConstructor,V=f.isTypedArray,X="BYTES_PER_ELEMENT",J="Wrong length";s?(G||(P.f=a,R.f=o,n(Z,"buffer"),n(Z,"byteOffset"),n(Z,"byteLength"),n(Z,"length")),l({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:a,defineProperty:o}),e.exports=function(t,f,e,i){function h(t,e){D(t,e,{get:function(){return function(t,e){var r=C(t);return r.view[n](e*f+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var n=C(t);i&&(r=(r=U(r))<0?0:255<r?255:255&r),n.view[a](e*f+n.byteOffset,r,!0)}(this,e,t)},enumerable:!0})}var c=t+(i?"Clamped":"")+"Array",n="get"+t,a="set"+t,o=u[c],d=o,r=d&&d.prototype,s={};G?m&&(d=e(function(t,e,r,n){return g(t,d,c),L(k(e)?b(e)?void 0!==n?new o(e,w(r,f),n):void 0!==r?new o(e,w(r,f)):new o(e):V(e)?p(d,e):I.call(d,e):new o(_(e)),t,d)}),S&&S(d,W),T(A(o),function(t){t in d||y(d,t,o[t])}),d.prototype=r):(d=e(function(t,e,r,n){g(t,d,c);var i,a,o,s=0,l=0;if(k(e)){if(!b(e))return V(e)?p(d,e):I.call(d,e);i=e,l=w(r,f);var u=e.byteLength;if(void 0===n){if(u%f)throw z(J);if((a=u-l)<0)throw z(J)}else if(u<(a=v(n)*f)+l)throw z(J);o=a/f}else o=_(e),i=new F(a=o*f);for(B(t,{buffer:i,byteOffset:l,byteLength:a,length:o,view:new H(i)});s<o;)h(t,s++)}),S&&S(d,W),r=d.prototype=j(Z)),r.constructor!==d&&y(r,"constructor",d),q&&y(r,q,c),s[c]=d,l({global:!0,forced:d!=o,sham:!G},s),X in d||y(d,X,f),X in r||y(r,X,f),O(c)}):e.exports=function(){}},{"../internals/an-instance":54,"../internals/array-buffer":57,"../internals/array-buffer-view-core":56,"../internals/array-iteration":62,"../internals/classof":71,"../internals/create-non-enumerable-property":76,"../internals/create-property-descriptor":77,"../internals/descriptors":81,"../internals/export":85,"../internals/global":92,"../internals/has":93,"../internals/inherit-if-required":99,"../internals/internal-state":100,"../internals/is-object":105,"../internals/object-create":118,"../internals/object-define-property":120,"../internals/object-get-own-property-descriptor":121,"../internals/object-get-own-property-names":123,"../internals/object-set-prototype-of":129,"../internals/set-species":144,"../internals/to-index":155,"../internals/to-length":158,"../internals/to-offset":160,"../internals/to-primitive":162,"../internals/typed-array-from":164,"../internals/typed-arrays-constructors-requires-wrappers":165}],164:[function(t,e,r){var p=t("../internals/to-object"),b=t("../internals/to-length"),m=t("../internals/get-iterator-method"),g=t("../internals/is-array-iterator-method"),y=t("../internals/bind-context"),v=t("../internals/array-buffer-view-core").aTypedArrayConstructor;e.exports=function(t,e,r){var n,i,a,o,s,l,u=p(t),f=arguments.length,h=1<f?e:void 0,c=void 0!==h,d=m(u);if(null!=d&&!g(d))for(l=(s=d.call(u)).next,u=[];!(o=l.call(s)).done;)u.push(o.value);for(c&&2<f&&(h=y(h,r,2)),i=b(u.length),a=new(v(this))(i),n=0;n<i;n++)a[n]=c?h(u[n],n):u[n];return a}},{"../internals/array-buffer-view-core":56,"../internals/bind-context":67,"../internals/get-iterator-method":91,"../internals/is-array-iterator-method":101,"../internals/to-length":158,"../internals/to-object":159}],165:[function(t,e,r){var n=t("../internals/global"),i=t("../internals/fails"),a=t("../internals/check-correctness-of-iteration"),o=t("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;e.exports=!o||!i(function(){l(1)})||!i(function(){new l(-1)})||!a(function(t){new l,new l(null),new l(1.5),new l(t)},!0)||i(function(){return 1!==new l(new s(2),1,void 0).length})},{"../internals/array-buffer-view-core":56,"../internals/check-correctness-of-iteration":69,"../internals/fails":86,"../internals/global":92}],166:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+i).toString(36)}},{}],167:[function(t,e,r){var n=t("../internals/get-built-in");e.exports=n("navigator","userAgent")||""},{"../internals/get-built-in":90}],168:[function(t,e,r){var n,i,a=t("../internals/global"),o=t("../internals/user-agent"),s=a.process,l=s&&s.versions,u=l&&l.v8;u?i=(n=u.split("."))[0]+n[1]:o&&(!(n=o.match(/Edge\/(\d+)/))||74<=n[1])&&(n=o.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},{"../internals/global":92,"../internals/user-agent":167}],169:[function(t,e,r){var n=t("../internals/global"),i=t("../internals/shared"),a=t("../internals/uid"),o=t("../internals/native-symbol"),s=n.Symbol,l=i("wks");e.exports=function(t){return l[t]||(l[t]=o&&s[t]||(o?s:a)("Symbol."+t))}},{"../internals/global":92,"../internals/native-symbol":113,"../internals/shared":148,"../internals/uid":166}],170:[function(t,e,r){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},{}],171:[function(t,e,r){r.f=t("../internals/well-known-symbol")},{"../internals/well-known-symbol":169}],172:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/fails"),a=t("../internals/array-buffer"),u=t("../internals/an-object"),f=t("../internals/to-absolute-index"),h=t("../internals/to-length"),c=t("../internals/species-constructor"),d=a.ArrayBuffer,p=a.DataView,b=d.prototype.slice;n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i(function(){return!new d(2).slice(1,void 0).byteLength})},{slice:function(t,e){if(void 0!==b&&void 0===e)return b.call(u(this),t);for(var r=u(this).byteLength,n=f(t,r),i=f(void 0===e?r:e,r),a=new(c(this,d))(h(i-n)),o=new p(this),s=new p(a),l=0;n<i;)s.setUint8(l++,o.getUint8(n++));return a}})},{"../internals/an-object":55,"../internals/array-buffer":57,"../internals/export":85,"../internals/fails":86,"../internals/species-constructor":150,"../internals/to-absolute-index":154,"../internals/to-length":158}],173:[function(t,e,r){"use strict";function u(t){if(!o(t))return!1;var e=t[b];return void 0!==e?!!e:a(t)}var n=t("../internals/export"),i=t("../internals/fails"),a=t("../internals/is-array"),o=t("../internals/is-object"),f=t("../internals/to-object"),h=t("../internals/to-length"),c=t("../internals/create-property"),d=t("../internals/array-species-create"),s=t("../internals/array-method-has-species-support"),l=t("../internals/well-known-symbol"),p=t("../internals/v8-version"),b=l("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",y=51<=p||!i(function(){var t=[];return t[b]=!1,t.concat()[0]!==t}),v=s("concat");n({target:"Array",proto:!0,forced:!y||!v},{concat:function(t){var e,r,n,i,a,o=f(this),s=d(o,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(u(a=-1===e?o:arguments[e])){if(i=h(a.length),m<l+i)throw TypeError(g);for(r=0;r<i;r++,l++)r in a&&c(s,l,a[r])}else{if(m<=l)throw TypeError(g);c(s,l++,a)}return s.length=l,s}})},{"../internals/array-method-has-species-support":64,"../internals/array-species-create":66,"../internals/create-property":78,"../internals/export":85,"../internals/fails":86,"../internals/is-array":102,"../internals/is-object":105,"../internals/to-length":158,"../internals/to-object":159,"../internals/v8-version":168,"../internals/well-known-symbol":169}],174:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/array-fill"),a=t("../internals/add-to-unscopables");n({target:"Array",proto:!0},{fill:i}),a("fill")},{"../internals/add-to-unscopables":52,"../internals/array-fill":59,"../internals/export":85}],175:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/array-iteration").filter;n({target:"Array",proto:!0,forced:!t("../internals/array-method-has-species-support")("filter")},{filter:function(t,e){return i(this,t,1<arguments.length?e:void 0)}})},{"../internals/array-iteration":62,"../internals/array-method-has-species-support":64,"../internals/export":85}],176:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/array-iteration").findIndex,a=t("../internals/add-to-unscopables"),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),n({target:"Array",proto:!0,forced:s},{findIndex:function(t,e){return i(this,t,1<arguments.length?e:void 0)}}),a(o)},{"../internals/add-to-unscopables":52,"../internals/array-iteration":62,"../internals/export":85}],177:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/array-iteration").find,a=t("../internals/add-to-unscopables"),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n({target:"Array",proto:!0,forced:o},{find:function(t,e){return i(this,t,1<arguments.length?e:void 0)}}),a("find")},{"../internals/add-to-unscopables":52,"../internals/array-iteration":62,"../internals/export":85}],178:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/array-for-each");n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},{"../internals/array-for-each":60,"../internals/export":85}],179:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/array-includes").includes,a=t("../internals/add-to-unscopables");n({target:"Array",proto:!0},{includes:function(t,e){return i(this,t,1<arguments.length?e:void 0)}}),a("includes")},{"../internals/add-to-unscopables":52,"../internals/array-includes":61,"../internals/export":85}],180:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/array-includes").indexOf,a=t("../internals/sloppy-array-method"),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0,l=a("indexOf");n({target:"Array",proto:!0,forced:s||l},{indexOf:function(t,e){return s?o.apply(this,arguments)||0:i(this,t,1<arguments.length?e:void 0)}})},{"../internals/array-includes":61,"../internals/export":85,"../internals/sloppy-array-method":149}],181:[function(t,e,r){t("../internals/export")({target:"Array",stat:!0},{isArray:t("../internals/is-array")})},{"../internals/export":85,"../internals/is-array":102}],182:[function(t,e,r){"use strict";var n=t("../internals/to-indexed-object"),i=t("../internals/add-to-unscopables"),a=t("../internals/iterators"),o=t("../internals/internal-state"),s=t("../internals/define-iterator"),l="Array Iterator",u=o.set,f=o.getterFor(l);e.exports=s(Array,"Array",function(t,e){u(this,{type:l,target:n(t),index:0,kind:e})},function(){var t=f(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?{value:t.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},{"../internals/add-to-unscopables":52,"../internals/define-iterator":79,"../internals/internal-state":100,"../internals/iterators":110,"../internals/to-indexed-object":156}],183:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/indexed-object"),a=t("../internals/to-indexed-object"),o=t("../internals/sloppy-array-method"),s=[].join,l=i!=Object,u=o("join",",");n({target:"Array",proto:!0,forced:l||u},{join:function(t){return s.call(a(this),void 0===t?",":t)}})},{"../internals/export":85,"../internals/indexed-object":98,"../internals/sloppy-array-method":149,"../internals/to-indexed-object":156}],184:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/array-iteration").map;n({target:"Array",proto:!0,forced:!t("../internals/array-method-has-species-support")("map")},{map:function(t,e){return i(this,t,1<arguments.length?e:void 0)}})},{"../internals/array-iteration":62,"../internals/array-method-has-species-support":64,"../internals/export":85}],185:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/is-array"),a=[].reverse,o=[1,2];n({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a.call(this)}})},{"../internals/export":85,"../internals/is-array":102}],186:[function(t,e,r){"use strict";var n=t("../internals/export"),u=t("../internals/is-object"),f=t("../internals/is-array"),h=t("../internals/to-absolute-index"),c=t("../internals/to-length"),d=t("../internals/to-indexed-object"),p=t("../internals/create-property"),i=t("../internals/array-method-has-species-support"),b=t("../internals/well-known-symbol")("species"),m=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!i("slice")},{slice:function(t,e){var r,n,i,a=d(this),o=c(a.length),s=h(t,o),l=h(void 0===e?o:e,o);if(f(a)&&("function"!=typeof(r=a.constructor)||r!==Array&&!f(r.prototype)?u(r)&&null===(r=r[b])&&(r=void 0):r=void 0,r===Array||void 0===r))return m.call(a,s,l);for(n=new(void 0===r?Array:r)(g(l-s,0)),i=0;s<l;s++,i++)s in a&&p(n,i,a[s]);return n.length=i,n}})},{"../internals/array-method-has-species-support":64,"../internals/create-property":78,"../internals/export":85,"../internals/is-array":102,"../internals/is-object":105,"../internals/to-absolute-index":154,"../internals/to-indexed-object":156,"../internals/to-length":158,"../internals/well-known-symbol":169}],187:[function(t,e,r){var n=t("../internals/redefine"),i=Date.prototype,a="Invalid Date",o=i.toString,s=i.getTime;new Date(NaN)+""!=a&&n(i,"toString",function(){var t=s.call(this);return t==t?o.call(this):a})},{"../internals/redefine":138}],188:[function(t,e,r){t("../internals/export")({target:"Function",proto:!0},{bind:t("../internals/function-bind")})},{"../internals/export":85,"../internals/function-bind":88}],189:[function(t,e,r){"use strict";function n(t){var e,r,n,i,a,o,s,l,u=h(t,!1);if("string"==typeof u&&2<u.length)if(43===(e=(u=g(u)).charCodeAt(0))||45===e){if(88===(r=u.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+u}for(o=(a=u.slice(2)).length,s=0;s<o;s++)if((l=a.charCodeAt(s))<48||i<l)return NaN;return parseInt(a,n)}return+u}var i=t("../internals/descriptors"),a=t("../internals/global"),o=t("../internals/is-forced"),s=t("../internals/redefine"),l=t("../internals/has"),u=t("../internals/classof-raw"),f=t("../internals/inherit-if-required"),h=t("../internals/to-primitive"),c=t("../internals/fails"),d=t("../internals/object-create"),p=t("../internals/object-get-own-property-names").f,b=t("../internals/object-get-own-property-descriptor").f,m=t("../internals/object-define-property").f,g=t("../internals/string-trim").trim,y="Number",v=a[y],_=v.prototype,w=u(d(_))==y;if(o(y,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var x,E=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof E&&(w?c(function(){_.valueOf.call(r)}):u(r)!=y)?f(new v(n(e)),r,E):n(e)},k=i?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j=0;k.length>j;j++)l(v,x=k[j])&&!l(E,x)&&m(E,x,b(v,x));(E.prototype=_).constructor=E,s(a,y,E)}},{"../internals/classof-raw":70,"../internals/descriptors":81,"../internals/fails":86,"../internals/global":92,"../internals/has":93,"../internals/inherit-if-required":99,"../internals/is-forced":103,"../internals/object-create":118,"../internals/object-define-property":120,"../internals/object-get-own-property-descriptor":121,"../internals/object-get-own-property-names":123,"../internals/redefine":138,"../internals/string-trim":152,"../internals/to-primitive":162}],190:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/object-assign");n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},{"../internals/export":85,"../internals/object-assign":117}],191:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/descriptors");n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:t("../internals/object-define-properties")})},{"../internals/descriptors":81,"../internals/export":85,"../internals/object-define-properties":119}],192:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/descriptors");n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:t("../internals/object-define-property").f})},{"../internals/descriptors":81,"../internals/export":85,"../internals/object-define-property":120}],193:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/object-to-array").entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},{"../internals/export":85,"../internals/object-to-array":130}],194:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/fails"),a=t("../internals/to-indexed-object"),o=t("../internals/object-get-own-property-descriptor").f,s=t("../internals/descriptors"),l=i(function(){o(1)});n({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},{"../internals/descriptors":81,"../internals/export":85,"../internals/fails":86,"../internals/object-get-own-property-descriptor":121,"../internals/to-indexed-object":156}],195:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/descriptors"),l=t("../internals/own-keys"),u=t("../internals/to-indexed-object"),f=t("../internals/object-get-own-property-descriptor"),h=t("../internals/create-property");n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=u(t),i=f.f,a=l(n),o={},s=0;a.length>s;)void 0!==(r=i(n,e=a[s++]))&&h(o,e,r);return o}})},{"../internals/create-property":78,"../internals/descriptors":81,"../internals/export":85,"../internals/object-get-own-property-descriptor":121,"../internals/own-keys":132,"../internals/to-indexed-object":156}],196:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/to-object"),a=t("../internals/object-keys");n({target:"Object",stat:!0,forced:t("../internals/fails")(function(){a(1)})},{keys:function(t){return a(i(t))}})},{"../internals/export":85,"../internals/fails":86,"../internals/object-keys":127,"../internals/to-object":159}],197:[function(t,e,r){var n=t("../internals/redefine"),i=t("../internals/object-to-string"),a=Object.prototype;i!==a.toString&&n(a,"toString",i,{unsafe:!0})},{"../internals/object-to-string":131,"../internals/redefine":138}],198:[function(t,e,r){var n=t("../internals/export"),i=t("../internals/parse-int");n({global:!0,forced:parseInt!=i},{parseInt:i})},{"../internals/export":85,"../internals/parse-int":133}],199:[function(t,e,r){"use strict";function b(t){var e;return!(!x(t)||"function"!=typeof(e=t.then))&&e}function a(h,c,d){if(!c.notified){c.notified=!0;var p=c.reactions;O(function(){for(var t=c.value,e=1==c.state,r=0;p.length>r;){var n,i,a,o=p[r++],s=e?o.ok:o.fail,l=o.resolve,u=o.reject,f=o.domain;try{s?(e||(2===c.rejection&&at(h,c),c.rejection=1),!0===s?n=t:(f&&f.enter(),n=s(t),f&&(f.exit(),a=!0)),n===o.promise?u(W("Promise-chain cycle")):(i=b(n))?i.call(n,l,u):l(n)):u(t)}catch(t){f&&!a&&f.exit(),u(t)}}c.reactions=[],c.notified=!1,d&&!c.rejection&&nt(h,c)})}}function i(t,e,r){var n,i;$?((n=Z.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),d.dispatchEvent(n)):n={promise:e,reason:r},(i=d["on"+t])?i(n):t===tt&&P("Unhandled promise rejection",r)}function o(e,r,n,i){return function(t){e(r,n,t,i)}}function s(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,a(t,e,!0))}var n,l,u,f,h=t("../internals/export"),c=t("../internals/is-pure"),d=t("../internals/global"),p=t("../internals/get-built-in"),m=t("../internals/native-promise-constructor"),g=t("../internals/redefine"),y=t("../internals/redefine-all"),v=t("../internals/shared"),_=t("../internals/set-to-string-tag"),w=t("../internals/set-species"),x=t("../internals/is-object"),E=t("../internals/a-function"),k=t("../internals/an-instance"),j=t("../internals/classof-raw"),S=t("../internals/iterate"),A=t("../internals/check-correctness-of-iteration"),I=t("../internals/species-constructor"),T=t("../internals/task").set,O=t("../internals/microtask"),R=t("../internals/promise-resolve"),P=t("../internals/host-report-errors"),M=t("../internals/new-promise-capability"),L=t("../internals/perform"),C=t("../internals/internal-state"),B=t("../internals/is-forced"),D=t("../internals/well-known-symbol"),N=t("../internals/v8-version"),U=D("species"),z="Promise",F=C.get,H=C.set,G=C.getterFor(z),q=m,W=d.TypeError,Z=d.document,Y=d.process,V=v("inspectSource"),X=p("fetch"),J=M.f,K=J,Q="process"==j(Y),$=!!(Z&&Z.createEvent&&d.dispatchEvent),tt="unhandledrejection",et=B(z,function(){var t=V(q)!==String(q);if(66===N)return!0;if(!t&&!Q&&"function"!=typeof PromiseRejectionEvent)return!0;if(c&&!q.prototype.finally)return!0;if(51<=N&&/native code/.test(q))return!1;function e(t){t(function(){},function(){})}var r=q.resolve(1);return(r.constructor={})[U]=e,!(r.then(function(){})instanceof e)}),rt=et||!A(function(t){q.all(t).catch(function(){})}),nt=function(r,n){T.call(d,function(){var t,e=n.value;if(it(n)&&(t=L(function(){Q?Y.emit("unhandledRejection",e,r):i(tt,r,e)}),n.rejection=Q||it(n)?2:1,t.error))throw t.value})},it=function(t){return 1!==t.rejection&&!t.parent},at=function(t,e){T.call(d,function(){Q?Y.emit("rejectionHandled",t):i("rejectionhandled",t,e.value)})},ot=function(r,n,t,e){if(!n.done){n.done=!0,e&&(n=e);try{if(r===t)throw W("Promise can't be resolved itself");var i=b(t);i?O(function(){var e={done:!1};try{i.call(t,o(ot,r,e,n),o(s,r,e,n))}catch(t){s(r,e,t,n)}}):(n.value=t,n.state=1,a(r,n,!1))}catch(t){s(r,{done:!1},t,n)}}};et&&(q=function(t){k(this,q,z),E(t),n.call(this);var e=F(this);try{t(o(ot,this,e),o(s,this,e))}catch(t){s(this,e,t)}},(n=function(t){H(this,{type:z,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=y(q.prototype,{then:function(t,e){var r=G(this),n=J(I(this,q));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=Q?Y.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&a(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),l=function(){var t=new n,e=F(t);this.promise=t,this.resolve=o(ot,t,e),this.reject=o(s,t,e)},M.f=J=function(t){return t===q||t===u?new l(t):K(t)},c||"function"!=typeof m||(f=m.prototype.then,g(m.prototype,"then",function(t,e){var r=this;return new q(function(t,e){f.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof X&&h({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return R(q,X.apply(d,arguments))}}))),h({global:!0,wrap:!0,forced:et},{Promise:q}),_(q,z,!1,!0),w(z),u=p(z),h({target:z,stat:!0,forced:et},{reject:function(t){var e=J(this);return e.reject.call(void 0,t),e.promise}}),h({target:z,stat:!0,forced:c||et},{resolve:function(t){return R(c&&this===u?q:this,t)}}),h({target:z,stat:!0,forced:rt},{all:function(t){var s=this,e=J(s),l=e.resolve,u=e.reject,r=L(function(){var n=E(s.resolve),i=[],a=0,o=1;S(t,function(t){var e=a++,r=!1;i.push(void 0),o++,n.call(s,t).then(function(t){r||(r=!0,i[e]=t,--o||l(i))},u)}),--o||l(i)});return r.error&&u(r.value),e.promise},race:function(t){var r=this,n=J(r),i=n.reject,e=L(function(){var e=E(r.resolve);S(t,function(t){e.call(r,t).then(n.resolve,i)})});return e.error&&i(e.value),n.promise}})},{"../internals/a-function":50,"../internals/an-instance":54,"../internals/check-correctness-of-iteration":69,"../internals/classof-raw":70,"../internals/export":85,"../internals/get-built-in":90,"../internals/global":92,"../internals/host-report-errors":95,"../internals/internal-state":100,"../internals/is-forced":103,"../internals/is-object":105,"../internals/is-pure":106,"../internals/iterate":108,"../internals/microtask":111,"../internals/native-promise-constructor":112,"../internals/new-promise-capability":115,"../internals/perform":135,"../internals/promise-resolve":136,"../internals/redefine":138,"../internals/redefine-all":137,"../internals/set-species":144,"../internals/set-to-string-tag":145,"../internals/shared":148,"../internals/species-constructor":150,"../internals/task":153,"../internals/v8-version":168,"../internals/well-known-symbol":169}],200:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/regexp-exec");n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},{"../internals/export":85,"../internals/regexp-exec":140}],201:[function(t,e,r){"use strict";var n=t("../internals/redefine"),i=t("../internals/an-object"),a=t("../internals/fails"),o=t("../internals/regexp-flags"),s="toString",l=RegExp.prototype,u=l[s],f=a(function(){return"/a/b"!=u.call({source:"a",flags:"b"})}),h=u.name!=s;(f||h)&&n(RegExp.prototype,s,function(){var t=i(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in l)?o.call(t):r)},{unsafe:!0})},{"../internals/an-object":55,"../internals/fails":86,"../internals/redefine":138,"../internals/regexp-flags":141}],202:[function(t,e,r){"use strict";var n=t("../internals/export"),i=t("../internals/not-a-regexp"),a=t("../internals/require-object-coercible");n({target:"String",proto:!0,forced:!t("../internals/correct-is-regexp-logic")("includes")},{includes:function(t,e){return!!~String(a(this)).indexOf(i(t),1<arguments.length?e:void 0)}})},{"../internals/correct-is-regexp-logic":73,"../internals/export":85,"../internals/not-a-regexp":116,"../internals/require-object-coercible":142}],203:[function(t,e,r){"use strict";var i=t("../internals/string-multibyte").charAt,n=t("../internals/internal-state"),a=t("../internals/define-iterator"),o="String Iterator",s=n.set,l=n.getterFor(o);a(String,"String",function(t){s(this,{type:o,string:String(t),index:0})},function(){var t,e=l(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=i(r,n),e.index+=t.length,{value:t,done:!1})})},{"../internals/define-iterator":79,"../internals/internal-state":100,"../internals/string-multibyte":151}],204:[function(t,e,r){"use strict";var n=t("../internals/fix-regexp-well-known-symbol-logic"),h=t("../internals/an-object"),c=t("../internals/to-length"),i=t("../internals/require-object-coercible"),d=t("../internals/advance-string-index"),p=t("../internals/regexp-exec-abstract");n("match",1,function(n,u,f){return[function(t){var e=i(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,e):new RegExp(t)[n](String(e))},function(t){var e=f(u,t,this);if(e.done)return e.value;var r=h(t),n=String(this);if(!r.global)return p(r,n);for(var i,a=r.unicode,o=[],s=r.lastIndex=0;null!==(i=p(r,n));){var l=String(i[0]);""===(o[s]=l)&&(r.lastIndex=d(n,c(r.lastIndex),a)),s++}return 0===s?null:o}]})},{"../internals/advance-string-index":53,"../internals/an-object":55,"../internals/fix-regexp-well-known-symbol-logic":87,"../internals/regexp-exec-abstract":139,"../internals/require-object-coercible":142,"../internals/to-length":158}],205:[function(t,e,r){"use strict";var n=t("../internals/fix-regexp-well-known-symbol-logic"),k=t("../internals/an-object"),c=t("../internals/to-object"),j=t("../internals/to-length"),S=t("../internals/to-integer"),a=t("../internals/require-object-coercible"),A=t("../internals/advance-string-index"),I=t("../internals/regexp-exec-abstract"),T=Math.max,O=Math.min,d=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g;n("replace",2,function(i,w,x){return[function(t,e){var r=a(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):w.call(String(r),t,e)},function(t,e){var r=x(w,t,this,e);if(r.done)return r.value;var n=k(t),i=String(this),a="function"==typeof e;a||(e=String(e));var o=n.global;if(o){var s=n.unicode;n.lastIndex=0}for(var l=[];;){var u=I(n,i);if(null===u)break;if(l.push(u),!o)break;""===String(u[0])&&(n.lastIndex=A(i,j(n.lastIndex),s))}for(var f,h="",c=0,d=0;d<l.length;d++){u=l[d];for(var p=String(u[0]),b=T(O(S(u.index),i.length),0),m=[],g=1;g<u.length;g++)m.push(void 0===(f=u[g])?f:String(f));var y=u.groups;if(a){var v=[p].concat(m,b,i);void 0!==y&&v.push(y);var _=String(e.apply(void 0,v))}else _=E(p,i,b,m,y,e);c<=b&&(h+=i.slice(c,b)+_,c=b+p.length)}return h+i.slice(c)}];function E(a,o,s,l,u,t){var f=s+a.length,h=l.length,e=b;return void 0!==u&&(u=c(u),e=p),w.call(t,e,function(t,e){var r;switch(e.charAt(0)){case"$":return"$";case"&":return a;case"`":return o.slice(0,s);case"'":return o.slice(f);case"<":r=u[e.slice(1,-1)];break;default:var n=+e;if(0==n)return t;if(h<n){var i=d(n/10);return 0===i?t:i<=h?void 0===l[i-1]?e.charAt(1):l[i-1]+e.charAt(1):t}r=l[n-1]}return void 0===r?"":r})}})},{"../internals/advance-string-index":53,"../internals/an-object":55,"../internals/fix-regexp-well-known-symbol-logic":87,"../internals/regexp-exec-abstract":139,"../internals/require-object-coercible":142,"../internals/to-integer":157,"../internals/to-length":158,"../internals/to-object":159}],206:[function(t,e,r){"use strict";var n=t("../internals/fix-regexp-well-known-symbol-logic"),h=t("../internals/is-regexp"),v=t("../internals/an-object"),c=t("../internals/require-object-coercible"),_=t("../internals/species-constructor"),w=t("../internals/advance-string-index"),x=t("../internals/to-length"),E=t("../internals/regexp-exec-abstract"),d=t("../internals/regexp-exec"),i=t("../internals/fails"),p=[].push,k=Math.min,j=4294967295,S=!i(function(){return!RegExp(j,"y")});n("split",2,function(i,m,g){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var r=String(c(this)),n=void 0===e?j:e>>>0;if(0==n)return[];if(void 0===t)return[r];if(!h(t))return m.call(r,t,n);for(var i,a,o,s=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,f=new RegExp(t.source,l+"g");(i=d.call(f,r))&&!(u<(a=f.lastIndex)&&(s.push(r.slice(u,i.index)),1<i.length&&i.index<r.length&&p.apply(s,i.slice(1)),o=i[0].length,u=a,s.length>=n));)f.lastIndex===i.index&&f.lastIndex++;return u===r.length?!o&&f.test("")||s.push(""):s.push(r.slice(u)),s.length>n?s.slice(0,n):s}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:m.call(this,t,e)}:m,[function(t,e){var r=c(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):y.call(String(r),t,e)},function(t,e){var r=g(y,t,this,e,y!==m);if(r.done)return r.value;var n=v(t),i=String(this),a=_(n,RegExp),o=n.unicode,s=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(S?"y":"g"),l=new a(S?n:"^(?:"+n.source+")",s),u=void 0===e?j:e>>>0;if(0==u)return[];if(0===i.length)return null===E(l,i)?[i]:[];for(var f=0,h=0,c=[];h<i.length;){l.lastIndex=S?h:0;var d,p=E(l,S?i:i.slice(h));if(null===p||(d=k(x(l.lastIndex+(S?0:h)),i.length))===f)h=w(i,h,o);else{if(c.push(i.slice(f,h)),c.length===u)return c;for(var b=1;b<=p.length-1;b++)if(c.push(p[b]),c.length===u)return c;h=f=d}}return c.push(i.slice(f)),c}]},!S)},{"../internals/advance-string-index":53,"../internals/an-object":55,"../internals/fails":86,"../internals/fix-regexp-well-known-symbol-logic":87,"../internals/is-regexp":107,"../internals/regexp-exec":140,"../internals/regexp-exec-abstract":139,"../internals/require-object-coercible":142,"../internals/species-constructor":150,"../internals/to-length":158}],207:[function(t,e,r){"use strict";function i(t,e){var r=et[t]=x(X[q]);return Z(r,{type:G,tag:t,description:e}),h||(r.description=e),r}function n(e,t){g(e);var r=v(t),n=E(r).concat(ct(r));return F(n,function(t){h&&!ht.call(r,t)||ft(e,t,r[t])}),e}function a(t,e){var r=v(t),n=_(e,!0);if(r!==V||!p(et,n)||p(rt,n)){var i=K(r,n);return!i||!p(et,n)||p(r,H)&&r[H][n]||(i.enumerable=!0),i}}function o(t){var e=$(v(t)),r=[];return F(e,function(t){p(et,t)||p(L,t)||r.push(t)}),r}var s=t("../internals/export"),l=t("../internals/global"),u=t("../internals/get-built-in"),f=t("../internals/is-pure"),h=t("../internals/descriptors"),c=t("../internals/native-symbol"),d=t("../internals/fails"),p=t("../internals/has"),b=t("../internals/is-array"),m=t("../internals/is-object"),g=t("../internals/an-object"),y=t("../internals/to-object"),v=t("../internals/to-indexed-object"),_=t("../internals/to-primitive"),w=t("../internals/create-property-descriptor"),x=t("../internals/object-create"),E=t("../internals/object-keys"),k=t("../internals/object-get-own-property-names"),j=t("../internals/object-get-own-property-names-external"),S=t("../internals/object-get-own-property-symbols"),A=t("../internals/object-get-own-property-descriptor"),I=t("../internals/object-define-property"),T=t("../internals/object-property-is-enumerable"),O=t("../internals/create-non-enumerable-property"),R=t("../internals/redefine"),P=t("../internals/shared"),M=t("../internals/shared-key"),L=t("../internals/hidden-keys"),C=t("../internals/uid"),B=t("../internals/well-known-symbol"),D=t("../internals/wrapped-well-known-symbol"),N=t("../internals/define-well-known-symbol"),U=t("../internals/set-to-string-tag"),z=t("../internals/internal-state"),F=t("../internals/array-iteration").forEach,H=M("hidden"),G="Symbol",q="prototype",W=B("toPrimitive"),Z=z.set,Y=z.getterFor(G),V=Object[q],X=l.Symbol,J=u("JSON","stringify"),K=A.f,Q=I.f,$=j.f,tt=T.f,et=P("symbols"),rt=P("op-symbols"),nt=P("string-to-symbol-registry"),it=P("symbol-to-string-registry"),at=P("wks"),ot=l.QObject,st=!ot||!ot[q]||!ot[q].findChild,lt=h&&d(function(){return 7!=x(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=K(V,e);n&&delete V[e],Q(t,e,r),n&&t!==V&&Q(V,e,n)}:Q,ut=c&&"symbol"==typeof X.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof X},ft=function(t,e,r){t===V&&ft(rt,e,r),g(t);var n=_(e,!0);return g(r),p(et,n)?(r.enumerable?(p(t,H)&&t[H][n]&&(t[H][n]=!1),r=x(r,{enumerable:w(0,!1)})):(p(t,H)||Q(t,H,w(1,{})),t[H][n]=!0),lt(t,n,r)):Q(t,n,r)},ht=function(t){var e=_(t,!0),r=tt.call(this,e);return!(this===V&&p(et,e)&&!p(rt,e))&&(!(r||!p(this,e)||!p(et,e)||p(this,H)&&this[H][e])||r)},ct=function(t){var e=t===V,r=$(e?rt:v(t)),n=[];return F(r,function(t){!p(et,t)||e&&!p(V,t)||n.push(et[t])}),n};c||(R((X=function(t){if(this instanceof X)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==t?String(t):void 0,r=C(e),n=function(t){this===V&&n.call(rt,t),p(this,H)&&p(this[H],r)&&(this[H][r]=!1),lt(this,r,w(1,t))};return h&&st&&lt(V,r,{configurable:!0,set:n}),i(r,e)})[q],"toString",function(){return Y(this).tag}),T.f=ht,I.f=ft,A.f=a,k.f=j.f=o,S.f=ct,h&&(Q(X[q],"description",{configurable:!0,get:function(){return Y(this).description}}),f||R(V,"propertyIsEnumerable",ht,{unsafe:!0})),D.f=function(t){return i(B(t),t)}),s({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:X}),F(E(at),function(t){N(t)}),s({target:G,stat:!0,forced:!c},{for:function(t){var e=String(t);if(p(nt,e))return nt[e];var r=X(e);return nt[e]=r,it[r]=e,r},keyFor:function(t){if(!ut(t))throw TypeError(t+" is not a symbol");if(p(it,t))return it[t]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),s({target:"Object",stat:!0,forced:!c,sham:!h},{create:function(t,e){return void 0===e?x(t):n(x(t),e)},defineProperty:ft,defineProperties:n,getOwnPropertyDescriptor:a}),s({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:o,getOwnPropertySymbols:ct}),s({target:"Object",stat:!0,forced:d(function(){S.f(1)})},{getOwnPropertySymbols:function(t){return S.f(y(t))}}),J&&s({target:"JSON",stat:!0,forced:!c||d(function(){var t=X();return"[null]"!=J([t])||"{}"!=J({a:t})||"{}"!=J(Object(t))})},{stringify:function(t,e,r){for(var n,i=[t],a=1;a<arguments.length;)i.push(arguments[a++]);if((m(n=e)||void 0!==t)&&!ut(t))return b(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ut(e))return e}),i[1]=e,J.apply(null,i)}});X[q][W]||O(X[q],W,X[q].valueOf),U(X,G),L[H]=!0},{"../internals/an-object":55,"../internals/array-iteration":62,"../internals/create-non-enumerable-property":76,"../internals/create-property-descriptor":77,"../internals/define-well-known-symbol":80,"../internals/descriptors":81,"../internals/export":85,"../internals/fails":86,"../internals/get-built-in":90,"../internals/global":92,"../internals/has":93,"../internals/hidden-keys":94,"../internals/internal-state":100,"../internals/is-array":102,"../internals/is-object":105,"../internals/is-pure":106,"../internals/native-symbol":113,"../internals/object-create":118,"../internals/object-define-property":120,"../internals/object-get-own-property-descriptor":121,"../internals/object-get-own-property-names":123,"../internals/object-get-own-property-names-external":122,"../internals/object-get-own-property-symbols":124,"../internals/object-keys":127,"../internals/object-property-is-enumerable":128,"../internals/redefine":138,"../internals/set-to-string-tag":145,"../internals/shared":148,"../internals/shared-key":146,"../internals/to-indexed-object":156,"../internals/to-object":159,"../internals/to-primitive":162,"../internals/uid":166,"../internals/well-known-symbol":169,"../internals/wrapped-well-known-symbol":171}],208:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-copy-within"),a=n.aTypedArray;n.exportProto("copyWithin",function(t,e,r){return i.call(a(this),t,e,2<arguments.length?r:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-copy-within":58}],209:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-iteration").every,a=n.aTypedArray;n.exportProto("every",function(t,e){return i(a(this),t,1<arguments.length?e:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-iteration":62}],210:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-fill"),a=n.aTypedArray;n.exportProto("fill",function(t){return i.apply(a(this),arguments)})},{"../internals/array-buffer-view-core":56,"../internals/array-fill":59}],211:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),s=t("../internals/array-iteration").filter,l=t("../internals/species-constructor"),u=n.aTypedArray,f=n.aTypedArrayConstructor;n.exportProto("filter",function(t,e){for(var r=s(u(this),t,1<arguments.length?e:void 0),n=l(this,this.constructor),i=0,a=r.length,o=new(f(n))(a);i<a;)o[i]=r[i++];return o})},{"../internals/array-buffer-view-core":56,"../internals/array-iteration":62,"../internals/species-constructor":150}],212:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-iteration").findIndex,a=n.aTypedArray;n.exportProto("findIndex",function(t,e){return i(a(this),t,1<arguments.length?e:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-iteration":62}],213:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-iteration").find,a=n.aTypedArray;n.exportProto("find",function(t,e){return i(a(this),t,1<arguments.length?e:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-iteration":62}],214:[function(t,e,r){t("../internals/typed-array-constructor")("Float32",4,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"../internals/typed-array-constructor":163}],215:[function(t,e,r){t("../internals/typed-array-constructor")("Float64",8,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"../internals/typed-array-constructor":163}],216:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-iteration").forEach,a=n.aTypedArray;n.exportProto("forEach",function(t,e){i(a(this),t,1<arguments.length?e:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-iteration":62}],217:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-includes").includes,a=n.aTypedArray;n.exportProto("includes",function(t,e){return i(a(this),t,1<arguments.length?e:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-includes":61}],218:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-includes").indexOf,a=n.aTypedArray;n.exportProto("indexOf",function(t,e){return i(a(this),t,1<arguments.length?e:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-includes":61}],219:[function(t,e,r){"use strict";function n(){return u.call(c(this))}var i=t("../internals/global"),a=t("../internals/array-buffer-view-core"),o=t("../modules/es.array.iterator"),s=t("../internals/well-known-symbol")("iterator"),l=i.Uint8Array,u=o.values,f=o.keys,h=o.entries,c=a.aTypedArray,d=a.exportProto,p=l&&l.prototype[s],b=!!p&&("values"==p.name||null==p.name);d("entries",function(){return h.call(c(this))}),d("keys",function(){return f.call(c(this))}),d("values",n,!b),d(s,n,!b)},{"../internals/array-buffer-view-core":56,"../internals/global":92,"../internals/well-known-symbol":169,"../modules/es.array.iterator":182}],220:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=n.aTypedArray,a=[].join;n.exportProto("join",function(t){return a.apply(i(this),arguments)})},{"../internals/array-buffer-view-core":56}],221:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-last-index-of"),a=n.aTypedArray;n.exportProto("lastIndexOf",function(t){return i.apply(a(this),arguments)})},{"../internals/array-buffer-view-core":56,"../internals/array-last-index-of":63}],222:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-iteration").map,a=t("../internals/species-constructor"),o=n.aTypedArray,s=n.aTypedArrayConstructor;n.exportProto("map",function(t,e){return i(o(this),t,1<arguments.length?e:void 0,function(t,e){return new(s(a(t,t.constructor)))(e)})})},{"../internals/array-buffer-view-core":56,"../internals/array-iteration":62,"../internals/species-constructor":150}],223:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-reduce").right,a=n.aTypedArray;n.exportProto("reduceRight",function(t,e){return i(a(this),t,arguments.length,1<arguments.length?e:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-reduce":65}],224:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-reduce").left,a=n.aTypedArray;n.exportProto("reduce",function(t,e){return i(a(this),t,arguments.length,1<arguments.length?e:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-reduce":65}],225:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=n.aTypedArray,a=Math.floor;n.exportProto("reverse",function(){for(var t,e=i(this).length,r=a(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this})},{"../internals/array-buffer-view-core":56}],226:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),s=t("../internals/to-length"),l=t("../internals/to-offset"),u=t("../internals/to-object"),i=t("../internals/fails"),f=n.aTypedArray,a=i(function(){new Int8Array(1).set({})});n.exportProto("set",function(t,e){f(this);var r=l(1<arguments.length?e:void 0,1),n=this.length,i=u(t),a=s(i.length),o=0;if(n<a+r)throw RangeError("Wrong length");for(;o<a;)this[r+o]=i[o++]},a)},{"../internals/array-buffer-view-core":56,"../internals/fails":86,"../internals/to-length":158,"../internals/to-object":159,"../internals/to-offset":160}],227:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),s=t("../internals/species-constructor"),i=t("../internals/fails"),l=n.aTypedArray,u=n.aTypedArrayConstructor,f=[].slice,a=i(function(){new Int8Array(1).slice()});n.exportProto("slice",function(t,e){for(var r=f.call(l(this),t,e),n=s(this,this.constructor),i=0,a=r.length,o=new(u(n))(a);i<a;)o[i]=r[i++];return o},a)},{"../internals/array-buffer-view-core":56,"../internals/fails":86,"../internals/species-constructor":150}],228:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=t("../internals/array-iteration").some,a=n.aTypedArray;n.exportProto("some",function(t,e){return i(a(this),t,1<arguments.length?e:void 0)})},{"../internals/array-buffer-view-core":56,"../internals/array-iteration":62}],229:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),i=n.aTypedArray,a=[].sort;n.exportProto("sort",function(t){return a.call(i(this),t)})},{"../internals/array-buffer-view-core":56}],230:[function(t,e,r){"use strict";var n=t("../internals/array-buffer-view-core"),a=t("../internals/to-length"),o=t("../internals/to-absolute-index"),s=t("../internals/species-constructor"),l=n.aTypedArray;n.exportProto("subarray",function(t,e){var r=l(this),n=r.length,i=o(t,n);return new(s(r,r.constructor))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,a((void 0===e?n:o(e,n))-i))})},{"../internals/array-buffer-view-core":56,"../internals/species-constructor":150,"../internals/to-absolute-index":154,"../internals/to-length":158}],231:[function(t,e,r){"use strict";var n=t("../internals/global"),i=t("../internals/array-buffer-view-core"),a=t("../internals/fails"),o=n.Int8Array,s=i.aTypedArray,l=[].toLocaleString,u=[].slice,f=!!o&&a(function(){l.call(new o(1))}),h=a(function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()})||!a(function(){o.prototype.toLocaleString.call([1,2])});i.exportProto("toLocaleString",function(){return l.apply(f?u.call(s(this)):s(this),arguments)},h)},{"../internals/array-buffer-view-core":56,"../internals/fails":86,"../internals/global":92}],232:[function(t,e,r){"use strict";var n=t("../internals/global"),i=t("../internals/array-buffer-view-core"),a=t("../internals/fails"),o=n.Uint8Array,s=o&&o.prototype,l=[].toString,u=[].join;a(function(){l.call({})})&&(l=function(){return u.call(this)}),i.exportProto("toString",l,(s||{}).toString!=l)},{"../internals/array-buffer-view-core":56,"../internals/fails":86,"../internals/global":92}],233:[function(t,e,r){t("../internals/typed-array-constructor")("Uint8",1,function(n){return function(t,e,r){return n(this,t,e,r)}})},{"../internals/typed-array-constructor":163}],234:[function(t,e,r){t("../internals/typed-array-constructor")("Uint8",1,function(n){return function(t,e,r){return n(this,t,e,r)}},!0)},{"../internals/typed-array-constructor":163}],235:[function(t,e,r){var n=t("../internals/global"),i=t("../internals/dom-iterables"),a=t("../internals/array-for-each"),o=t("../internals/create-non-enumerable-property");for(var s in i){var l=n[s],u=l&&l.prototype;if(u&&u.forEach!==a)try{o(u,"forEach",a)}catch(t){u.forEach=a}}},{"../internals/array-for-each":60,"../internals/create-non-enumerable-property":76,"../internals/dom-iterables":83,"../internals/global":92}],236:[function(t,e,r){var n=t("../internals/global"),i=t("../internals/dom-iterables"),a=t("../modules/es.array.iterator"),o=t("../internals/create-non-enumerable-property"),s=t("../internals/well-known-symbol"),l=s("iterator"),u=s("toStringTag"),f=a.values;for(var h in i){var c=n[h],d=c&&c.prototype;if(d){if(d[l]!==f)try{o(d,l,f)}catch(t){d[l]=f}if(d[u]||o(d,u,h),i[h])for(var p in a)if(d[p]!==a[p])try{o(d,p,a[p])}catch(t){d[p]=a[p]}}}},{"../internals/create-non-enumerable-property":76,"../internals/dom-iterables":83,"../internals/global":92,"../internals/well-known-symbol":169,"../modules/es.array.iterator":182}],237:[function(t,e,r){function n(i){return function(t,e){var r=2<arguments.length,n=r?s.call(arguments,2):void 0;return i(r?function(){("function"==typeof t?t:Function(t)).apply(this,n)}:t,e)}}var i=t("../internals/export"),a=t("../internals/global"),o=t("../internals/user-agent"),s=[].slice;i({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:n(a.setTimeout),setInterval:n(a.setInterval)})},{"../internals/export":85,"../internals/global":92,"../internals/user-agent":167}],238:[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":255}],239:[function(t,e,r){var l=Object.create||function(t){function e(){}return e.prototype=t,new e},o=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return r},a=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=l(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 u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),i=0===u.x}catch(t){i=!1}function f(t){return void 0===t._maxListeners?n.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,a,o;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]):(a=t._events=l(null),t._eventsCount=0),o){if("function"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(i=f(t))&&0<i&&o.length>i){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=o.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else o=a[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=a.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):m(i,i.length):[]}function b(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 m(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 f(this)},n.prototype.emit=function(t,e,r,n){var i,a,o,s,l,u,f="error"===t;if(u=this._events)f=f&&null==u.error;else if(!f)return!1;if(f){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(!(a=u[t]))return!1;var c="function"==typeof a;switch(o=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,i=m(t,n),a=0;a<n;++a)i[a].call(r)}(a,c,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=m(t,i),o=0;o<i;++o)a[o].call(r,n)}(a,c,this,e);break;case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=m(t,a),s=0;s<a;++s)o[s].call(r,n,i)}(a,c,this,e,r);break;case 4:!function(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=m(t,o),l=0;l<o;++l)s[l].call(r,n,i,a)}(a,c,this,e,r,n);break;default:for(s=new Array(o-1),l=1;l<o;l++)s[l-1]=arguments[l];!function(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=m(t,i),o=0;o<i;++o)a[o].apply(r,n)}(a,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,a,o;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=l(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,a=r.length-1;0<=a;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;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,o||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=l(null),this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=l(null):delete r[t]),this;if(0===arguments.length){var i,a=o(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=l(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):b.call(t,e)},n.prototype.listenerCount=b,n.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],240:[function(YBa,ZBa,$Ba){var _Ba=YBa("./lib/parser");ZBa.exports={create:function(bCa,cCa){if(bCa instanceof(cCa=cCa||eval("this")).ArrayBuffer){var dCa=YBa("./lib/dom-bufferstream");return new _Ba(new dCa(bCa,0,bCa.byteLength,!0,cCa))}var eCa=YBa("./lib/bufferstream");return new _Ba(new eCa(bCa,0,bCa.length,!0))}}},{"./lib/bufferstream":241,"./lib/dom-bufferstream":243,"./lib/parser":247}],241:[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},{}],242:[function(t,e,r){function l(t){return parseInt(t,10)}var o=3600,s=60;function u(t,e){t=t.map(l),e=e.map(l);var r=t[0],n=t[1]-1,i=t[2],a=e[0],o=e[1],s=e[2];return Date.UTC(r,n,i,a,o,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(l),i=n[0]*o+n[1]*s,a=u(e,r);if("number"==typeof(a-=i)&&!isNaN(a))return a}function i(t){var e=t.split(" "),r=u(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}}},{}],243:[function(t,e,r){function n(t,e,r,n,i,a){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=(a||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},{}],244:[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"}}},{}],245:[function(t,e,r){function f(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 o(t,e){var r,n,i=e.nextUInt16(),a=e.nextUInt16(),o=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}}(a),s=e.nextUInt32(),l=o*s;if(4<l&&(e=t.openWithOffset(e.nextUInt32())),2===a){var u=(r=e.nextString(s)).indexOf("\0");-1!==u&&(r=r.substr(0,u))}else if(7===a)r=e.nextBuffer(s);else if(0!==a)for(r=[],n=0;n<s;++n)r.push(f(a,e));return l<4&&e.skip(4-l),[i,r,a]}function p(t,e,r){var n,i,a=e.nextUInt16();for(i=0;i<a;++i)r((n=o(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,a,o;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:a=e[0];break;case 34665:i=e[0];break;default:n(s,t,e,r)}});var l=r.nextUInt32();if(0!==l){var u=e.openWithOffset(l);p(e,u,n.bind(null,this.IFD1))}if(a){var f=e.openWithOffset(a);p(e,f,n.bind(null,this.GPSIFD))}if(i){var h=e.openWithOffset(i),c=this.InteropIFD;p(e,h,function(t,e,r){40965===t?o=e[0]:n(c,t,e,r)})}if(o){var d=e.openWithOffset(o);p(e,d,n.bind(null,this.InteropIFD))}return!0}}},{}],246:[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}}},{}],247:[function(c,t,e){var d=c("./jpeg"),p=c("./exif"),b=c("./simplify");function m(t,e,r,n,i,a,o){this.startMarker=t,this.tags=e,this.imageSize=r,this.thumbnailOffset=n,this.thumbnailLength=i,this.thumbnailType=a,this.app1Offset=o}function r(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}m.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 a,n,o,s,l,i,u,t,e,f=this.stream.mark(),r=f.openWithOffset(0),h=this.flags;return h.resolveTagNames&&(u=c("./exif-tags")),e=h.resolveTagNames?(a={},t=function(t){return a[t.name]},function(t,e){a[t.name]=e}):(a=[],t=function(t){var e;for(e=0;e<a.length;++e)if(a[e].type===t.type&&a[e].section===t.section)return a.value},function(t,e){var r;for(r=0;r<a.length;++r)if(a[r].type===t.type&&a[r].section===t.section)return void(a.value=e)}),d.parseSections(r,function(t,e){var r=e.offsetFrom(f);225===t?p.parseTags(e,function(t,e,r,n){if(h.readBinaryTags||7!==n){if(513===e){if(o=r[0],h.hidePointers)return}else if(514===e){if(s=r[0],h.hidePointers)return}else if(259===e&&(l=r[0],h.hidePointers))return;if(h.returnTags)if(h.simplifyValues&&(r=b.simplifyValue(r,n)),h.resolveTagNames){var i=(t===p.GPSIFD?u.gps:u.exif)[e];i=i||u.exif[e],a.hasOwnProperty(i)||(a[i]=r)}else a.push({section:t,type:e,value:r})}})&&(i=r):h.imageSize&&"SOF"===d.getSectionName(t).name&&(n=d.getSizeFromSOFSection(e))}),h.simplifyValues&&(b.castDegreeValues(t,e),b.castDateValues(t,e)),new m(f,a,n,o,s,l,i)}},t.exports=r},{"./exif":245,"./exif-tags":244,"./jpeg":246,"./simplify":248}],248:[function(t,e,r){var n=t("./exif"),a=t("./date"),o=[{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,a){o.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;a(t,n)}})},castDateValues:function(n,i){s.forEach(function(t){var e=n(t);if(e){var r=a.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":242,"./exif":245}],249:[function(t,e,r){"use strict";function p(t){return(0,b.default)(t).map(function(t){return t.charCodeAt(0)})}var b=t("@babel/runtime/helpers/interopRequireDefault")(t("@babel/runtime/helpers/toConsumableArray")),m=p("META-INF/mozilla.rsa"),g=p("[Content_Types].xml"),y=p("_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(p(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(m,{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]})},a=0,o=!1,s=null;do{var l=a+30;if(o=o||(r(g,{offset:l})||r(y,{offset:l})),s||(e("word/",{offset:l})?s={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:e("ppt/",{offset:l})?s={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:e("xl/",{offset:l})&&(s={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),o&&s)return s;a=i(n,l)}while(0<=a);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 u=n.subarray(4,4100),f=u.findIndex(function(t,e,r){return 66===r[e]&&130===r[e+1]});if(-1!==f){var h=f+3,c=function(t){return(0,b.default)(t).every(function(t,e){return u[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}},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/toConsumableArray":19}],250:[function(t,e,r){"use strict";var i=t("is-callable"),a=Object.prototype.toString,o=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]"===a.call(t)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.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)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,n)}},{"is-callable":256}],251:[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:{})},{}],252:[function(t,e,r){var n=t("http"),i=t("url"),a=e.exports;for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);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}a.request=function(t,e){return t=s(t),n.request.call(this,t,e)},a.get=function(t,e){return t=s(t),n.get.call(this,t,e)}},{http:335,url:359}],253:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,f=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,a=d&(1<<-f)-1,d>>=-f,f+=s;0<f;a=256*a+t[e+h],h+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;0<f;o=256*o+t[e+h],h+=c,f-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=u}return(d?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,u=8*a-i-1,f=(1<<u)-1,h=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),2<=(e+=1<=o+h?c/l:c*Math.pow(2,1-h))*l&&(o++,l/=2),f<=o+h?(s=0,o=f):1<=o+h?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));8<=i;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;0<u;t[r+d]=255&o,d+=p,o/=256,u-=8);t[r+d-p]|=128*b}},{}],254:[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}}},{}],255:[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)}},{}],256:[function(t,e,r){"use strict";function n(t){try{var e=i.call(t);return a.test(e)}catch(t){return!1}}var i=Function.prototype.toString,a=/^\s*class\b/,o=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=o.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},{}],257:[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},{}],258:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],259:[function(t,e,r){var n=t("./lib/encoder"),i=t("./lib/decoder");e.exports={encode:n,decode:i}},{"./lib/decoder":260,"./lib/encoder":261}],260:[function(t,e,r){(function(a){var o=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]),v=4017,_=799,w=3406,x=2276,E=1567,k=3784,j=5793,S=2896;function t(){}function z(t,e){for(var r,n,i=0,a=[],o=16;0<o&&!t[o-1];)o--;a.push({children:[],index:0});var s,l=a[0];for(r=0;r<o;r++){for(n=0;n<t[r];n++){for((l=a.pop()).children[l.index]=e[i];0<l.index;)l=a.pop();for(l.index++,a.push(l);a.length<=r;)a.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;i++}r+1<o&&(a.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s)}return a[0].children}function F(e,r,t,n,i,u,f,a,h){t.precision,t.samplesPerLine,t.scanLines;var o=t.mcusPerLine,s=t.progressive,l=(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 b(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 m(t){for(var e=0;0<t;){var r=p();if(null===r)return;e=e<<1|r,t--}return e}function g(t){var e=m(t);return 1<<t-1<=e?e:e+(-1<<t)+1}var y=0;var v,_=0;var w,x,E,k,j,S,A=n.length;S=s?0===u?0===a?function(t,e){var r=b(t.huffmanTableDC),n=0===r?0:g(r)<<h;e[0]=t.pred+=n}:function(t,e){e[0]|=p()<<h}:0===a?function(t,e){if(0<y)y--;else for(var r=u,n=f;r<=n;){var i=b(t.huffmanTableAC),a=15&i,o=i>>4;if(0!=a){e[Z[r+=o]]=g(a)*(1<<h),r++}else{if(o<15){y=m(o)+(1<<o)-1;break}r+=16}}}:function(t,e){for(var r=u,n=f,i=0;r<=n;){var a=Z[r],o=e[a]<0?-1:1;switch(_){case 0:var s=b(t.huffmanTableAC),l=15&s;i=s>>4;if(0==l)_=i<15?(y=m(i)+(1<<i),4):(i=16,1);else{if(1!=l)throw new Error("invalid ACn encoding");v=g(l),_=i?2:3}continue;case 1:case 2:e[a]?e[a]+=(p()<<h)*o:0===--i&&(_=2==_?3:0);break;case 3:e[a]?e[a]+=(p()<<h)*o:(e[a]=v<<h,_=0);break;case 4:e[a]&&(e[a]+=(p()<<h)*o)}r++}4===_&&0===--y&&(_=0)}:function(t,e){var r=b(t.huffmanTableDC),n=0===r?0:g(r);e[0]=t.pred+=n;for(var i=1;i<64;){var a=b(t.huffmanTableAC),o=15&a,s=a>>4;if(0!=o){e[Z[i+=s]]=g(o),i++}else{if(s<15)break;i+=16}}};var I,T,O,R,P,M,L,C,B,D,N,U,z,F,H,G,q,W=0;for(T=1==A?n[0].blocksPerLine*n[0].blocksPerColumn:o*t.mcusPerColumn,i=i||T;W<T;){for(x=0;x<A;x++)n[x].pred=0;if(y=0,1==A)for(w=n[0],j=0;j<i;j++)F=S,void 0,G=(H=W)/(z=w).blocksPerLine|0,q=H%z.blocksPerLine,F(z,z.blocks[G][q]),W++;else for(j=0;j<i;j++){for(x=0;x<A;x++)for(O=(w=n[x]).h,R=w.v,E=0;E<R;E++)for(k=0;k<O;k++)M=S,C=E,B=k,void 0,D=(L=W)%o,N=(L/o|0)*(P=w).v+C,U=D*P.h+B,M(P,P.blocks[N][U]);if(++W===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-l}function H(t,y){var e,r,n=[],i=y.blocksPerLine,a=y.blocksPerColumn,o=i<<3,s=new Int32Array(64),l=new Uint8Array(64);function u(t,e,r){var n,i,a,o,s,l,u,f,h,c,d=y.quantizationTable,p=r;for(c=0;c<64;c++)p[c]=t[c]*d[c];for(c=0;c<8;++c){var b=8*c;0!=p[1+b]||0!=p[2+b]||0!=p[3+b]||0!=p[4+b]||0!=p[5+b]||0!=p[6+b]||0!=p[7+b]?(n=j*p[0+b]+128>>8,i=j*p[4+b]+128>>8,a=p[2+b],o=p[6+b],s=S*(p[1+b]-p[7+b])+128>>8,f=S*(p[1+b]+p[7+b])+128>>8,l=p[3+b]<<4,u=p[5+b]<<4,h=n-i+1>>1,n=n+i+1>>1,i=h,h=a*k+o*E+128>>8,a=a*E-o*k+128>>8,o=h,h=s-u+1>>1,s=s+u+1>>1,u=h,h=f+l+1>>1,l=f-l+1>>1,f=h,h=n-o+1>>1,n=n+o+1>>1,o=h,h=i-a+1>>1,i=i+a+1>>1,a=h,h=s*x+f*w+2048>>12,s=s*w-f*x+2048>>12,f=h,h=l*_+u*v+2048>>12,l=l*v-u*_+2048>>12,u=h,p[0+b]=n+f,p[7+b]=n-f,p[1+b]=i+u,p[6+b]=i-u,p[2+b]=a+l,p[5+b]=a-l,p[3+b]=o+s,p[4+b]=o-s):(h=j*p[0+b]+512>>10,p[0+b]=h,p[1+b]=h,p[2+b]=h,p[3+b]=h,p[4+b]=h,p[5+b]=h,p[6+b]=h,p[7+b]=h)}for(c=0;c<8;++c){var m=c;0!=p[8+m]||0!=p[16+m]||0!=p[24+m]||0!=p[32+m]||0!=p[40+m]||0!=p[48+m]||0!=p[56+m]?(n=j*p[0+m]+2048>>12,i=j*p[32+m]+2048>>12,a=p[16+m],o=p[48+m],s=S*(p[8+m]-p[56+m])+2048>>12,f=S*(p[8+m]+p[56+m])+2048>>12,l=p[24+m],u=p[40+m],h=n-i+1>>1,n=n+i+1>>1,i=h,h=a*k+o*E+2048>>12,a=a*E-o*k+2048>>12,o=h,h=s-u+1>>1,s=s+u+1>>1,u=h,h=f+l+1>>1,l=f-l+1>>1,f=h,h=n-o+1>>1,n=n+o+1>>1,o=h,h=i-a+1>>1,i=i+a+1>>1,a=h,h=s*x+f*w+2048>>12,s=s*w-f*x+2048>>12,f=h,h=l*_+u*v+2048>>12,l=l*v-u*_+2048>>12,u=h,p[0+m]=n+f,p[56+m]=n-f,p[8+m]=i+u,p[48+m]=i-u,p[16+m]=a+l,p[40+m]=a-l,p[24+m]=o+s,p[32+m]=o-s):(h=j*r[c+0]+8192>>14,p[0+m]=h,p[8+m]=h,p[16+m]=h,p[24+m]=h,p[32+m]=h,p[40+m]=h,p[48+m]=h,p[56+m]=h)}for(c=0;c<64;++c){var g=128+(p[c]+8>>4);e[c]=g<0?0:255<g?255:g}}for(var f=0;f<a;f++){var h=f<<3;for(e=0;e<8;e++)n.push(new Uint8Array(o));for(var c=0;c<i;c++){u(y.blocks[f][c],l,s);var d=0,p=c<<3;for(r=0;r<8;r++){var b=n[h+r];for(e=0;e<8;e++)b[p+e]=l[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 a=Math.ceil(t.samplesPerLine/8/n),o=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),l=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),u=a*e.h,f=o*e.v,h=[],c=0;c<f;c++){for(var d=[],p=0;p<u;p++)d.push(new Int32Array(64));h.push(d)}e.blocksPerLine=s,e.blocksPerColumn=l,e.blocks=h}t.maxH=n,t.maxV=i,t.mcusPerLine=a,t.mcusPerColumn=o}var i,a,o,s,l=null,u=null,f=[],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 b=(void 0,o=t(),s=e.subarray(r,r+o-2),r+=s.length,s);65504===p&&74===b[0]&&70===b[1]&&73===b[2]&&70===b[3]&&0===b[4]&&(l={version:{major:b[5],minor:b[6]},densityUnits:b[7],xDensity:b[8]<<8|b[9],yDensity:b[10]<<8|b[11],thumbWidth:b[12],thumbHeight:b[13],thumbData:b.subarray(14,14+3*b[12]*b[13])}),65518===p&&65===b[0]&&100===b[1]&&111===b[2]&&98===b[3]&&101===b[4]&&0===b[5]&&(u={version:b[6],flags0:b[7]<<8|b[8],flags1:b[9]<<8|b[10],transformCode:b[11]});break;case 65499:for(var m=t()+r-2;r<m;){var g=e[r++],y=new Int32Array(64);if(g>>4==0)for(N=0;N<64;N++){y[Z[N]]=e[r++]}else{if(g>>4!=1)throw new Error("DQT: invalid table spec");for(N=0;N<64;N++){y[Z[N]]=t()}}f[15&g]=y}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 v,_=e[r++];for(B=0;B<_;B++){v=e[r];var w=e[r+1]>>4,x=15&e[r+1],E=e[r+2];i.componentsOrder.push(v),i.components[v]={h:w,v:x,quantizationIdx:E},r+=3}n(i),h.push(i);break;case 65476:var k=t();for(B=2;B<k;){var j=e[r++],S=new Uint8Array(16),A=0;for(N=0;N<16;N++,r++)A+=S[N]=e[r];var I=new Uint8Array(A);for(N=0;N<A;N++,r++)I[N]=e[r];B+=17+A,(j>>4==0?d:c)[15&j]=z(S,I)}break;case 65501:t(),a=t();break;case 65498:t();var T=e[r++],O=[];for(B=0;B<T;B++){U=i.components[e[r++]];var R=e[r++];U.huffmanTableDC=d[R>>4],U.huffmanTableAC=c[15&R],O.push(U)}var P=e[r++],M=e[r++],L=e[r++],C=F(e,r,i,O,a,P,M,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 D=h[B].components;for(var N in D)D[N].quantizationTable=f[D[N].quantizationIdx],delete D[N].quantizationIdx}this.width=i.samplesPerLine,this.height=i.scanLines,this.jfif=l,this.adobe=u,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,a,o,s,l,u,f,h,c,d,p,b,m,g,y,v,_,w,x,E=this.width/t,k=this.height/e,j=0,S=t*e*this.components.length,A=new Uint8Array(S);switch(this.components.length){case 1:for(r=this.components[0],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*k],f=0;f<t;f++)c=o[0|f*r.scaleX*E],A[j++]=c;break;case 2:for(r=this.components[0],n=this.components[1],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*k],s=n.lines[0|h*n.scaleY*k],f=0;f<t;f++)c=o[0|f*r.scaleX*E],A[j++]=c,c=s[0|f*n.scaleX*E],A[j++]=c;break;case 3:for(x=!0,this.adobe&&this.adobe.transformCode?x=!0:void 0!==this.colorTransform&&(x=!!this.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*k],s=n.lines[0|h*n.scaleY*k],l=i.lines[0|h*i.scaleY*k],f=0;f<t;f++)w=x?(c=o[0|f*r.scaleX*E],d=s[0|f*n.scaleX*E],v=I(c+1.402*((p=l[0|f*i.scaleX*E])-128)),_=I(c-.3441363*(d-128)-.71413636*(p-128)),I(c+1.772*(d-128))):(v=o[0|f*r.scaleX*E],_=s[0|f*n.scaleX*E],l[0|f*i.scaleX*E]),A[j++]=v,A[j++]=_,A[j++]=w;break;case 4:if(!this.adobe)throw"Unsupported color mode (4 components)";for(x=!1,this.adobe&&this.adobe.transformCode?x=!0:void 0!==this.colorTransform&&(x=!!this.colorTransform),r=this.components[0],n=this.components[1],i=this.components[2],a=this.components[3],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*k],s=n.lines[0|h*n.scaleY*k],l=i.lines[0|h*i.scaleY*k],u=a.lines[0|h*a.scaleY*k],f=0;f<t;f++)x?(c=o[0|f*r.scaleX*E],d=s[0|f*n.scaleX*E],p=l[0|f*i.scaleX*E],b=u[0|f*a.scaleX*E],m=255-I(c+1.402*(p-128)),g=255-I(c-.3441363*(d-128)-.71413636*(p-128)),y=255-I(c+1.772*(d-128))):(m=o[0|f*r.scaleX*E],g=s[0|f*n.scaleX*E],y=l[0|f*i.scaleX*E],b=u[0|f*a.scaleX*E]),A[j++]=255-m,A[j++]=255-g,A[j++]=255-y,A[j++]=255-b;break;default:throw"Unsupported color mode"}return A},copyToImageData:function(t){var e,r,n,i,a,o,s,l,u,f=t.width,h=t.height,c=t.data,d=this.getData(f,h),p=0,b=0;switch(this.components.length){case 1:for(r=0;r<h;r++)for(e=0;e<f;e++)n=d[p++],c[b++]=n,c[b++]=n,c[b++]=n,c[b++]=255;break;case 3:for(r=0;r<h;r++)for(e=0;e<f;e++)s=d[p++],l=d[p++],u=d[p++],c[b++]=s,c[b++]=l,c[b++]=u,c[b++]=255;break;case 4:for(r=0;r<h;r++)for(e=0;e<f;e++)a=d[p++],o=d[p++],n=d[p++],s=255-I(a*(1-(i=d[p++])/255)+i),l=255-I(o*(1-i/255)+i),u=255-I(n*(1-i/255)+i),c[b++]=s,c[b++]=l,c[b++]=u,c[b++]=255;break;default:throw"Unsupported color mode"}}},t}();e.exports=function(t,e){var r=new Uint8Array(t),n=new o;n.parse(r);var i={width:n.width,height:n.height,data:e?new Uint8Array(n.width*n.height*4):new a(n.width*n.height*4)};return n.copyToImageData(i),i}}).call(this,t("buffer").Buffer)},{buffer:47}],261:[function(t,e,r){(function(X){function r(t){Math.round;var _,w,x,E,e,h=Math.floor,k=new Array(64),j=new Array(64),S=new Array(64),A=new Array(64),g=new Array(65535),y=new Array(65535),K=new Array(64),v=new Array(64),I=[],T=0,O=7,R=new Array(64),P=new Array(64),M=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],D=[0,1,2,3,4,5,6,7,8,9,10,11],N=[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],z=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[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,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=a,n++,r++;r*=2}return i}function q(t){for(var e=t[0],r=t[1]-1;0<=r;)e&1<<r&&(T|=1<<O),r--,--O<0&&(255==T?(W(255),W(0)):W(T),O=7,T=0)}function W(t){I.push(t)}function Z(t){W(t>>8&255),W(255&t)}function Y(t,e,r,n,i){for(var a,o=i[0],s=i[240],l=function(t,e){var r,n,i,a,o,s,l,u,f,h,c=0;for(f=0;f<8;++f){r=t[c],n=t[c+1],i=t[c+2],a=t[c+3],o=t[c+4],s=t[c+5],l=t[c+6];var d=r+(u=t[c+7]),p=r-u,b=n+l,m=n-l,g=i+s,y=i-s,v=a+o,_=a-o,w=d+v,x=d-v,E=b+g,k=b-g;t[c]=w+E,t[c+4]=w-E;var j=.707106781*(k+x);t[c+2]=x+j,t[c+6]=x-j;var S=.382683433*((w=_+y)-(k=m+p)),A=.5411961*w+S,I=1.306562965*k+S,T=.707106781*(E=y+m),O=p+T,R=p-T;t[c+5]=R+A,t[c+3]=R-A,t[c+1]=O+I,t[c+7]=O-I,c+=8}for(f=c=0;f<8;++f){r=t[c],n=t[c+8],i=t[c+16],a=t[c+24],o=t[c+32],s=t[c+40],l=t[c+48];var P=r+(u=t[c+56]),M=r-u,L=n+l,C=n-l,B=i+s,D=i-s,N=a+o,U=a-o,z=P+N,F=P-N,H=L+B,G=L-B;t[c]=z+H,t[c+32]=z-H;var q=.707106781*(G+F);t[c+16]=F+q,t[c+48]=F-q;var W=.382683433*((z=U+D)-(G=C+M)),Z=.5411961*z+W,Y=1.306562965*G+W,V=.707106781*(H=D+C),X=M+V,J=M-V;t[c+40]=J+Z,t[c+24]=J-Z,t[c+8]=X+Y,t[c+56]=X-Y,c++}for(f=0;f<64;++f)h=t[f]*e[f],K[f]=0<h?.5+h|0:h-.5|0;return K}(t,e),u=0;u<64;++u)v[C[u]]=l[u];var f=v[0]-r;r=v[0],0==f?q(n[0]):(q(n[y[a=32767+f]]),q(g[a]));for(var h=63;0<h&&0==v[h];h--);if(0==h)return q(o),r;for(var c,d=1;d<=h;){for(var p=d;0==v[d]&&d<=h;++d);var b=d-p;if(16<=b){c=b>>4;for(var m=1;m<=c;++m)q(s);b&=15}a=32767+v[d],q(i[(b<<4)+y[a]]),q(g[a]),d++}return 63!=h&&q(o),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],a=0;a<64;a++){var o=h((i[a]*t+50)/100);o<1?o=1:255<o&&(o=255),j[C[a]]=o}for(var s=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],l=0,u=0;u<8;u++)for(var f=0;f<8;f++)S[l]=1/(k[C[l]]*s[u]*s[f]*8),A[l]=1/(j[C[l]]*s[u]*s[f]*8),l++})(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),W(74),W(70),W(73),W(70),W(0),W(1),W(1),W(0),Z(1),Z(1),W(0),W(0),function(){Z(65499),Z(132),W(0);for(var t=0;t<64;t++)W(k[t]);W(1);for(var e=0;e<64;e++)W(j[e])}(),function(t,e){Z(65472),Z(17),W(8),Z(e),Z(t),W(3),W(1),W(17),W(0),W(2),W(17),W(1),W(3),W(17),W(1)}(t.width,t.height),function(){Z(65476),Z(418),W(0);for(var t=0;t<16;t++)W(B[t+1]);for(var e=0;e<=11;e++)W(D[e]);W(16);for(var r=0;r<16;r++)W(N[r+1]);for(var n=0;n<=161;n++)W(U[n]);W(1);for(var i=0;i<16;i++)W(z[i+1]);for(var a=0;a<=11;a++)W(F[a]);W(17);for(var o=0;o<16;o++)W(H[o+1]);for(var s=0;s<=161;s++)W(G[s])}(),Z(65498),Z(12),W(3),W(1),W(0),W(2),W(17),W(3),W(17),W(0),W(63),W(0);var r=0,n=0,i=0;T=0,O=7,this.encode.displayName="_encode_";for(var a,o,s,l,u,f,h,c,d,p=t.data,b=t.width,m=t.height,g=4*b,y=0;y<m;){for(a=0;a<g;){for(f=u=g*y+a,h=-1,d=c=0;d<64;d++)f=u+(c=d>>3)*g+(h=4*(7&d)),m<=y+c&&(f-=g*(y+1+c-m)),g<=a+h&&(f-=a+h-g+4),o=p[f++],s=p[f++],l=p[f++],R[d]=(L[o]+L[s+256>>0]+L[l+512>>0]>>16)-128,P[d]=(L[o+768>>0]+L[s+1024>>0]+L[l+1280>>0]>>16)-128,M[d]=(L[o+1280>>0]+L[s+1536>>0]+L[l+1792>>0]>>16)-128;r=Y(R,S,r,_,x),n=Y(P,A,n,w,E),i=Y(M,A,i,w,E),a+=32}y+=8}if(0<=O){var v=[];v[1]=O+1,v[0]=(1<<O+1)-1,q(v)}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)}(),_=n(B,D),w=n(z,F),x=n(N,U),E=n(H,G),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)y[32767+n]=r,g[32767+n]=[],g[32767+n][1]=r,g[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)y[32767+i]=r,g[32767+i]=[],g[32767+i][1]=r,g[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:47}],262:[function(t,e,r){(function(l){var u=t("path"),f=t("fs"),h=parseInt("0777",8);function c(n,i,t,a){"function"==typeof i?(t=i,i={}):i&&"object"==typeof i||(i={mode:i});var e=i.mode,o=i.fs||f;void 0===e&&(e=h&~l.umask()),a=a||null;var s=t||function(){};n=u.resolve(n),o.mkdir(n,e,function(r){if(!r)return s(null,a=a||n);switch(r.code){case"ENOENT":c(u.dirname(n),i,function(t,e){t?s(t,e):c(n,i,s,e)});break;default:o.stat(n,function(t,e){t||!e.isDirectory()?s(r,a):s(null,a)})}})}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,a=n.fs||f;void 0===e&&(e=h&~l.umask()),i=i||null,r=u.resolve(r);try{a.mkdirSync(r,e),i=i||r}catch(e){switch(e.code){case"ENOENT":t(r,n,i=t(u.dirname(r),n,i));break;default:var o;try{o=a.statSync(r)}catch(t){throw e}if(!o.isDirectory())throw e}}return i}}).call(this,t("_process"))},{_process:312,fs:46,path:286}],263:[function(t,e,r){"use strict";var l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=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),a=1;a<arguments.length;a++){for(var o in r=Object(arguments[a]))u.call(r,o)&&(i[o]=r[o]);if(l){n=l(r);for(var s=0;s<n.length;s++)f.call(r,n[s])&&(i[n[s]]=r[n[s]])}}return i}},{}],264:[function(t,e,r){"use strict";function I(t,e,r,n){for(var i=t[e++],a=1<<i,o=1+a,s=1+o,l=i+1,u=(1<<l)-1,f=0,h=0,c=0,d=t[e++],p=new Int32Array(4096),b=null;;){for(;f<16&&0!==d;)h|=t[e++]<<f,f+=8,1===d?d=t[e++]:--d;if(f<l)break;var m=h&u;if(h>>=l,f-=l,m!=a){if(m==o)break;for(var g=m<s?m:b,y=0,v=g;a<v;)v=p[v]>>8,++y;var _=v;if(n<c+y+(g!==m?1:0))return void console.log("Warning, gif stream longer than expected.");r[c++]=_;var w=c+=y;for(g!==m&&(r[c++]=_),v=g;y--;)v=p[v],r[--w]=255&v,v>>=8;null!==b&&s<4096&&(p[s++]=b<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),b=m}else s=1+o,u=(1<<(l=i+1))-1,b=null}return c!==n&&console.log("Warning, gif stream shorter than expected."),r}try{r.GifWriter=function(g,t,e,r){var y=0,n=void 0===(r=void 0===r?{}:r).loop?null:r.loop,v=void 0===r.palette?null:r.palette;if(t<=0||e<=0||65535<t||65535<e)throw new Error("Width/Height invalid.");function _(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[y++]=71,g[y++]=73,g[y++]=70,g[y++]=56,g[y++]=57,g[y++]=97;var i=0,a=0;if(null!==v){for(var o=_(v);o>>=1;)++i;if(o=1<<i,--i,void 0!==r.background){if(o<=(a=r.background))throw new Error("Background index out of range.");if(0===a)throw new Error("Background index explicitly passed as 0.")}}if(g[y++]=255&t,g[y++]=t>>8&255,g[y++]=255&e,g[y++]=e>>8&255,g[y++]=(null!==v?128:0)|i,g[y++]=a,g[y++]=0,null!==v)for(var s=0,l=v.length;s<l;++s){var u=v[s];g[y++]=u>>16&255,g[y++]=u>>8&255,g[y++]=255&u}if(null!==n){if(n<0||65535<n)throw new Error("Loop count invalid.");g[y++]=33,g[y++]=255,g[y++]=11,g[y++]=78,g[y++]=69,g[y++]=84,g[y++]=83,g[y++]=67,g[y++]=65,g[y++]=80,g[y++]=69,g[y++]=50,g[y++]=46,g[y++]=48,g[y++]=3,g[y++]=1,g[y++]=255&n,g[y++]=n>>8&255,g[y++]=0}var w=!1;this.addFrame=function(t,e,r,n,i,a){if(!0===w&&(--y,w=!1),a=void 0===a?{}:a,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 o=!0,s=a.palette;if(null==s&&(o=!1,s=v),null==s)throw new Error("Must supply either a local or global palette.");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var f=void 0===a.delay?0:a.delay,h=void 0===a.disposal?0:a.disposal;if(h<0||3<h)throw new Error("Disposal out of range.");var c=!1,d=0;if(void 0!==a.transparent&&null!==a.transparent&&(c=!0,(d=a.transparent)<0||l<=d))throw new Error("Transparent color index.");if(0===h&&!c&&0===f||(g[y++]=33,g[y++]=249,g[y++]=4,g[y++]=h<<2|(!0===c?1:0),g[y++]=255&f,g[y++]=f>>8&255,g[y++]=d,g[y++]=0),g[y++]=44,g[y++]=255&t,g[y++]=t>>8&255,g[y++]=255&e,g[y++]=e>>8&255,g[y++]=255&r,g[y++]=r>>8&255,g[y++]=255&n,g[y++]=n>>8&255,g[y++]=!0===o?128|u-1:0,!0===o)for(var p=0,b=s.length;p<b;++p){var m=s[p];g[y++]=m>>16&255,g[y++]=m>>8&255,g[y++]=255&m}return y=function(e,r,t,n){e[r++]=t;var i=r++,a=1<<t,o=a-1,s=1+a,l=1+s,u=t+1,f=0,h=0;function c(t){for(;t<=f;)e[r++]=255&h,h>>=8,f-=8,r===i+256&&(e[i]=255,i=r++)}function d(t){h|=t<<f,f+=u,c(8)}var p=n[0]&o,b={};d(a);for(var m=1,g=n.length;m<g;++m){var y=n[m]&o,v=p<<8|y,_=b[v];if(void 0===_){for(h|=p<<f,f+=u;8<=f;)e[r++]=255&h,h>>=8,f-=8,r===i+256&&(e[i]=255,i=r++);4096===l?(d(a),l=1+s,u=t+1,b={}):(1<<u<=l&&++u,b[v]=l++),p=y}else p=_}d(p),d(s),c(1),i+1===r?e[i]=0:(e[i]=r-i-1,e[r++]=0);return r}(g,y,u<2?2:u,i)},this.end=function(){return!1===w&&(g[y++]=59,w=!0),y},this.getOutputBuffer=function(){return g},this.setOutputBuffer=function(t){g=t},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(t){y=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 x=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 a=null,o=null;n&&(a=t,t+=3*(o=i));var s=!0,l=[],u=0,f=null,h=0,c=null;for(this.width=x,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++];u=w[t++]|w[t++]<<8,f=w[t++],0==(1&d)&&(f=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,b=w[t++]|w[t++]<<8,m=w[t++]|w[t++]<<8,g=w[t++]|w[t++]<<8,y=w[t++],v=y>>6&1,_=1<<1+(7&y),E=a,k=o,j=!1;if(y>>7){j=!0;E=t,t+=3*(k=_)}var S=t;for(t++;;){var A;if(!(0<=(A=w[t++])))throw Error("Invalid block size");if(0===A)break;t+=A}l.push({x:p,y:b,width:m,height:g,has_local_palette:j,palette_offset:E,palette_size:k,data_offset:S,data_length:t-S,transparent_index:f,interlaced:!!v,delay:u,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 l.length},this.loopCount=function(){return c},this.frameInfo=function(t){if(t<0||t>=l.length)throw new Error("Frame index out of range.");return l[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 a=r.palette_offset,o=r.transparent_index;null===o&&(o=256);var s=r.width,l=x-s,u=s,f=4*(r.y*x+r.x),h=4*((r.y+r.height)*x+r.x),c=f,d=4*l;!0===r.interlaced&&(d+=4*x*7);for(var p=8,b=0,m=i.length;b<m;++b){var g=i[b];if(0===u&&(u=s,h<=(c+=d)&&(d=4*l+4*x*(p-1),c=f+(s+l)*(p<<1),p>>=1)),g===o)c+=4;else{var y=w[a+3*g],v=w[a+3*g+1],_=w[a+3*g+2];e[c++]=_,e[c++]=v,e[c++]=y,e[c++]=255}--u}},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 a=r.palette_offset,o=r.transparent_index;null===o&&(o=256);var s=r.width,l=x-s,u=s,f=4*(r.y*x+r.x),h=4*((r.y+r.height)*x+r.x),c=f,d=4*l;!0===r.interlaced&&(d+=4*x*7);for(var p=8,b=0,m=i.length;b<m;++b){var g=i[b];if(0===u&&(u=s,h<=(c+=d)&&(d=4*l+4*x*(p-1),c=f+(s+l)*(p<<1),p>>=1)),g===o)c+=4;else{var y=w[a+3*g],v=w[a+3*g+1],_=w[a+3*g+2];e[c++]=y,e[c++]=v,e[c++]=_,e[c++]=255}--u}}}}catch(t){}},{}],265:[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":266,"./lib/inflate":267,"./lib/utils/common":268,"./lib/zlib/constants":271}],266:[function(t,e,r){"use strict";var o=t("./zlib/deflate"),s=t("./utils/common"),l=t("./utils/strings"),i=t("./zlib/messages"),a=t("./zlib/zstream"),u=Object.prototype.toString,f=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 a,this.strm.avail_out=0;var r=o.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==f)throw new Error(i[r]);if(e.header&&o.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?l.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=o.deflateSetDictionary(this.strm,n))!==f)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,a=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=l.string2buf(t):"[object ArrayBuffer]"===u.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(a),i.next_out=0,i.avail_out=a),1!==(r=o.deflate(i,n))&&r!==f)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(l.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=o.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===f):2!==n||(this.onEnd(f),!(i.avail_out=0))},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===f&&("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":268,"./utils/strings":269,"./zlib/deflate":273,"./zlib/messages":278,"./zlib/zstream":280}],267:[function(t,e,r){"use strict";var c=t("./zlib/inflate"),d=t("./utils/common"),p=t("./utils/strings"),b=t("./zlib/constants"),n=t("./zlib/messages"),i=t("./zlib/zstream"),a=t("./zlib/gzheader"),m=Object.prototype.toString;function o(t){if(!(this instanceof o))return new o(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!==b.Z_OK)throw new Error(n[r]);this.header=new a,c.inflateGetHeader(this.strm,this.header)}function s(t,e){var r=new o(e);if(r.push(t,!0),r.err)throw r.msg||n[r.err];return r.result}o.prototype.push=function(t,e){var r,n,i,a,o,s,l=this.strm,u=this.options.chunkSize,f=this.options.dictionary,h=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?b.Z_FINISH:b.Z_NO_FLUSH,"string"==typeof t?l.input=p.binstring2buf(t):"[object ArrayBuffer]"===m.call(t)?l.input=new Uint8Array(t):l.input=t,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new d.Buf8(u),l.next_out=0,l.avail_out=u),(r=c.inflate(l,b.Z_NO_FLUSH))===b.Z_NEED_DICT&&f&&(s="string"==typeof f?p.string2buf(f):"[object ArrayBuffer]"===m.call(f)?new Uint8Array(f):f,r=c.inflateSetDictionary(this.strm,s)),r===b.Z_BUF_ERROR&&!0===h&&(r=b.Z_OK,h=!1),r!==b.Z_STREAM_END&&r!==b.Z_OK)return this.onEnd(r),!(this.ended=!0);l.next_out&&(0!==l.avail_out&&r!==b.Z_STREAM_END&&(0!==l.avail_in||n!==b.Z_FINISH&&n!==b.Z_SYNC_FLUSH)||("string"===this.options.to?(i=p.utf8border(l.output,l.next_out),a=l.next_out-i,o=p.buf2string(l.output,i),l.next_out=a,l.avail_out=u-a,a&&d.arraySet(l.output,l.output,i,a,0),this.onData(o)):this.onData(d.shrinkBuf(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(h=!0)}while((0<l.avail_in||0===l.avail_out)&&r!==b.Z_STREAM_END);return r===b.Z_STREAM_END&&(n=b.Z_FINISH),n===b.Z_FINISH?(r=c.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===b.Z_OK):n!==b.Z_SYNC_FLUSH||(this.onEnd(b.Z_OK),!(l.avail_out=0))},o.prototype.onData=function(t){this.chunks.push(t)},o.prototype.onEnd=function(t){t===b.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=o,r.inflate=s,r.inflateRaw=function(t,e){return(e=e||{}).raw=!0,s(t,e)},r.ungzip=s},{"./utils/common":268,"./utils/strings":269,"./zlib/constants":271,"./zlib/gzheader":274,"./zlib/inflate":276,"./zlib/messages":278,"./zlib/zstream":280}],268:[function(t,e,r){arguments[4][35][0].apply(r,arguments)},{dup:35}],269:[function(t,e,r){"use strict";var l=t("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var u=new l.Buf8(256),n=0;n<256;n++)u[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function f(t,e){if(e<65537&&(t.subarray&&a||!t.subarray&&i))return String.fromCharCode.apply(null,l.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}u[254]=u[254]=1,r.string2buf=function(t){var e,r,n,i,a,o=t.length,s=0;for(i=0;i<o;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&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 l.Buf8(s),i=a=0;a<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[a++]=r:(r<2048?e[a++]=192|r>>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},r.buf2binstring=function(t){return f(t,t.length)},r.binstring2buf=function(t){for(var e=new l.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,a,o=e||t.length,s=new Array(2*o);for(r=n=0;r<o;)if((i=t[r++])<128)s[n++]=i;else if(4<(a=u[i]))s[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&r<o;)i=i<<6|63&t[r++],a--;1<a?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return f(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+u[t[r]]>e?r:e}},{"./common":268}],270:[function(t,e,r){arguments[4][36][0].apply(r,arguments)},{dup:36}],271:[function(t,e,r){arguments[4][37][0].apply(r,arguments)},{dup:37}],272:[function(t,e,r){arguments[4][38][0].apply(r,arguments)},{dup:38}],273:[function(t,e,r){"use strict";var l,c=t("../utils/common"),u=t("./trees"),d=t("./adler32"),p=t("./crc32"),n=t("./messages"),f=0,h=4,b=0,m=-2,g=-1,y=4,i=2,v=8,_=9,a=286,o=30,s=19,w=2*a+1,x=15,E=3,k=258,j=k+E+1,S=42,A=113,I=1,T=2,O=3,R=4;function P(t,e){return t.msg=n[e],e}function M(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){u._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 D(t,e){t.pending_buf[t.pending++]=e}function N(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,a=t.strstart,o=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-j?t.strstart-(t.w_size-j):0,u=t.window,f=t.w_mask,h=t.prev,c=t.strstart+k,d=u[a+o-1],p=u[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(r=e)+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&a<c);if(n=k-(c-a),a=c-k,o<n){if(t.match_start=e,s<=(o=n))break;d=u[a+o-1],p=u[a+o]}}}while((e=h[e&f])>l&&0!=--i);return o<=t.lookahead?o:t.lookahead}function z(t){var e,r,n,i,a,o,s,l,u,f,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-j)){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(o=t.strm,s=t.window,l=t.strstart+t.lookahead,u=i,f=void 0,f=o.avail_in,u<f&&(f=u),r=0===f?0:(o.avail_in-=f,c.arraySet(s,o.input,o.next_in,f,l),1===o.state.wrap?o.adler=d(o.adler,s,f,l):2===o.state.wrap&&(o.adler=p(o.adler,s,f,l)),o.next_in+=f,o.total_in+=f,f),t.lookahead+=r,t.lookahead+t.insert>=E)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+E-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<j&&0!==t.strm.avail_in)}function F(t,e){for(var r,n;;){if(t.lookahead<j){if(z(t),t.lookahead<j&&e===f)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-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-j&&(t.match_length=U(t,r)),t.match_length>=E)if(n=u._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-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=u._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<E-1?t.strstart:E-1,e===h?(B(t,!0),0===t.strm.avail_out?O:R):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<j){if(z(t),t.lookahead<j&&e===f)return I;if(0===t.lookahead)break}if(r=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-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=E-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-j&&(t.match_length=U(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===E&&4096<t.strstart-t.match_start)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-E,n=u._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-E),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+E-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=E-1,t.strstart++,n&&(B(t,!1),0===t.strm.avail_out))return I}else if(t.match_available){if((n=u._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=u._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,e===h?(B(t,!0),0===t.strm.avail_out?O:R):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 q(){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=v,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*o+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(x+1),this.heap=new c.Buf16(2*a+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*a+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 W(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?S:A,t.adler=2===e.wrap?0:1,e.last_flush=f,u._tr_init(e),b):P(t,m)}function Z(t){var e=W(t);return e===b&&function(t){t.window_size=2*t.w_size,L(t.head),t.max_lazy_match=l[t.level].max_lazy,t.good_match=l[t.level].good_length,t.nice_match=l[t.level].nice_length,t.max_chain_length=l[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=E-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,r,n,i,a){if(!t)return m;var o=1;if(e===g&&(e=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),i<1||_<i||r!==v||n<8||15<n||e<0||9<e||a<0||y<a)return P(t,m);8===n&&(n=9);var s=new q;return(t.state=s).strm=t,s.wrap=o,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+E-1)/E),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=a,s.method=r,Z(t)}l=[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(z(t),0===t.lookahead&&e===f)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-j&&(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:R):(t.strstart>t.block_start&&(B(t,!1),t.strm.avail_out),I)}),new G(4,4,8,4,F),new G(4,5,16,8,F),new G(4,6,32,32,F),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,v,15,8,0)},r.deflateInit2=Y,r.deflateReset=Z,r.deflateResetKeep=W,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,b):m},r.deflate=function(t,e){var r,n,i,a;if(!t||!t.state||5<e||e<0)return t?P(t,m):m;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&e!==h)return P(t,0===t.avail_out?-5:m);if(n.strm=t,r=n.last_flush,n.last_flush=e,n.status===S)if(2===n.wrap)t.adler=0,D(n,31),D(n,139),D(n,8),n.gzhead?(D(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)),D(n,255&n.gzhead.time),D(n,n.gzhead.time>>8&255),D(n,n.gzhead.time>>16&255),D(n,n.gzhead.time>>24&255),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(D(n,255&n.gzhead.extra.length),D(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):(D(n,0),D(n,0),D(n,0),D(n,0),D(n,0),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,3),n.status=A);else{var o=v+(n.w_bits-8<<4)<<8;o|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=A,N(n,o),0!==n.strstart&&(N(n,t.adler>>>16),N(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));)D(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)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,D(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(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)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,D(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=p(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(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&&(D(n,255&t.adler),D(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,b}else if(0===t.avail_in&&M(e)<=M(r)&&e!==h)return P(t,-5);if(666===n.status&&0!==t.avail_in)return P(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==f&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(z(t),0===t.lookahead)){if(e===f)return I;break}if(t.match_length=0,r=u._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:R):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,a,o=t.window;;){if(t.lookahead<=k){if(z(t),t.lookahead<=k&&e===f)return I;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=E&&0<t.strstart&&(n=o[i=t.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=t.strstart+k;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);t.match_length=k-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=E?(r=u._tr_tally(t,1,t.match_length-E),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=u._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:R):t.last_lit&&(B(t,!1),0===t.strm.avail_out)?I:T}(n,e):l[n.level].func(n,e);if(s!==O&&s!==R||(n.status=666),s===I||s===O)return 0===t.avail_out&&(n.last_flush=-1),b;if(s===T&&(1===e?u._tr_align(n):5!==e&&(u._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,b}return e!==h?b:n.wrap<=0?1:(2===n.wrap?(D(n,255&t.adler),D(n,t.adler>>8&255),D(n,t.adler>>16&255),D(n,t.adler>>24&255),D(n,255&t.total_in),D(n,t.total_in>>8&255),D(n,t.total_in>>16&255),D(n,t.total_in>>24&255)):(N(n,t.adler>>>16),N(n,65535&t.adler)),C(t),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?b:1)},r.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==S&&69!==e&&73!==e&&91!==e&&103!==e&&e!==A&&666!==e?P(t,m):(t.state=null,e===A?P(t,-3):b):m},r.deflateSetDictionary=function(t,e){var r,n,i,a,o,s,l,u,f=e.length;if(!t||!t.state)return m;if(2===(a=(r=t.state).wrap)||1===a&&r.status!==S||r.lookahead)return m;for(1===a&&(t.adler=d(t.adler,e,f,0)),r.wrap=0,f>=r.w_size&&(0===a&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,e,f-r.w_size,r.w_size,0),e=u,f=r.w_size),o=t.avail_in,s=t.next_in,l=t.input,t.avail_in=f,t.next_in=0,t.input=e,z(r);r.lookahead>=E;){for(n=r.strstart,i=r.lookahead-(E-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+E-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=E-1,z(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=E-1,r.match_available=0,t.next_in=s,t.input=l,t.avail_in=o,r.wrap=a,b},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":268,"./adler32":270,"./crc32":272,"./messages":278,"./trees":279}],274:[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}},{}],275:[function(t,e,r){arguments[4][40][0].apply(r,arguments)},{dup:40}],276:[function(t,e,r){arguments[4][41][0].apply(r,arguments)},{"../utils/common":268,"./adler32":270,"./crc32":272,"./inffast":275,"./inftrees":277,dup:41}],277:[function(t,e,r){arguments[4][42][0].apply(r,arguments)},{"../utils/common":268,dup:42}],278:[function(t,e,r){arguments[4][43][0].apply(r,arguments)},{dup:43}],279:[function(t,e,r){"use strict";var i=t("../utils/common"),s=0,l=1;function n(t){for(var e=t.length;0<=--e;)t[e]=0}var a=0,o=29,u=256,f=u+1+o,h=30,c=19,m=2*f+1,g=15,d=16,p=7,b=256,y=16,v=17,_=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],x=[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],E=[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],j=new Array(2*(f+2));n(j);var S=new Array(2*h);n(S);var A=new Array(512);n(A);var I=new Array(256);n(I);var T=new Array(o);n(T);var O,R,P,M=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 D(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,r){t.bi_valid>d-r?(t.bi_buf|=e<<t.bi_valid&65535,D(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){N(t,r[2*e],r[2*e+1])}function z(t,e){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--e;);return r>>>1}function F(t,e,r){var n,i,a=new Array(g+1),o=0;for(n=1;n<=g;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=z(a[s]++,s))}}function H(t){var e;for(e=0;e<f;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*b]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function G(t){8<t.bi_valid?D(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 q(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function W(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&q(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!q(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,a,o,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,(a=I[i])+u+1,e),0!==(o=w[a])&&N(t,i-=T[a],o),U(t,a=B(--n),r),0!==(o=x[a])&&N(t,n-=M[a],o)),s<t.last_lit;);U(t,b,e)}function Y(t,e){var r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=m,r=0;r<l;r++)0!==a[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=u,r=t.heap_len>>1;1<=r;r--)W(t,a,r);for(i=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,W(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,l=e.dyn_tree,u=e.max_code,f=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,b=0;for(a=0;a<=g;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<m;r++)p<(a=l[2*l[2*(n=t.heap[r])+1]+1]+1)&&(a=p,b++),l[2*n+1]=a,u<n||(t.bl_count[a]++,o=0,d<=n&&(o=c[n-d]),s=l[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(f[2*n+1]+o)));if(0!==b){do{for(a=p-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[p]--,b-=2}while(0<b);for(a=p;0!==a;a--)for(n=t.bl_count[a];0!==n;)u<(i=t.heap[--r])||(l[2*i+1]!==a&&(t.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}(t,e),F(a,u,t.bl_count)}function V(t,e,r){var n,i,a=-1,o=e[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<l&&i===o||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[2*y]++):s<=10?t.bl_tree[2*v]++:t.bl_tree[2*_]++,a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function X(t,e,r){var n,i,a=-1,o=e[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<l&&i===o)){if(s<u)for(;U(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==a&&(U(t,i,t.bl_tree),s--),U(t,y,t.bl_tree),N(t,s-3,2)):s<=10?(U(t,v,t.bl_tree),N(t,s-3,3)):(U(t,_,t.bl_tree),N(t,s-11,7));a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}n(M);var J=!1;function K(t,e,r,n){N(t,(a<<1)+(n?1:0),3),function(t,e,r,n){G(t),n&&(D(t,r),D(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,a=new Array(g+1);for(n=r=0;n<o-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(M[n]=i,t=0;t<1<<x[n];t++)A[i++]=n;for(i>>=7;n<h;n++)for(M[n]=i<<7,t=0;t<1<<x[n]-7;t++)A[256+i++]=n;for(e=0;e<=g;e++)a[e]=0;for(t=0;t<=143;)j[2*t+1]=8,t++,a[8]++;for(;t<=255;)j[2*t+1]=9,t++,a[9]++;for(;t<=279;)j[2*t+1]=7,t++,a[7]++;for(;t<=287;)j[2*t+1]=8,t++,a[8]++;for(F(j,f+1,a),t=0;t<h;t++)S[2*t+1]=5,S[2*t]=z(t,5);O=new L(j,w,u+1,f,g),R=new L(S,x,0,h,g),P=new L(new Array(0),E,0,c,p)}(),J=!0),t.l_desc=new C(t.dyn_ltree,O),t.d_desc=new C(t.dyn_dtree,R),t.bl_desc=new C(t.bl_tree,P),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,a,o=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 l;for(e=32;e<u;e++)if(0!==t.dyn_ltree[2*e])return l;return s}(t)),Y(t,t.l_desc),Y(t,t.d_desc),o=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,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?K(t,e,r,n):4===t.strategy||a===i?(N(t,2+(n?1:0),3),Z(t,j,S)):(N(t,4+(n?1:0),3),function(t,e,r,n){var i;for(N(t,e-257,5),N(t,r-1,5),N(t,n-4,4),i=0;i<n;i++)N(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,o+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]+u+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){N(t,2,3),U(t,b,j),function(t){16===t.bi_valid?(D(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":268}],280:[function(t,e,r){arguments[4][45][0].apply(r,arguments)},{dup:45}],281:[function(t,e,r){function a(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=[],a=0;a<t.length;a++){var o=t[a];0===a?i.push({key:o[0],data:""}):a===t.length-1?i[i.length-1].data=l(o[0]):(i[i.length-1].data=l(o[0]),i.push({key:o[1],data:""}))}var s={key:n,data:{}};return i.forEach(function(t){s.data[t.key]=t.data}),s}function l(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=a(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}},{}],282:[function(t,e,r){var i=[66,77,70];function a(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 l(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=l(t,e),a=i.length+1,o=r/a,s=0;s<o;s++)n[s]=t.slice(e,e+i.length).toString("utf8"),e+=a;return n}(e,r,i);break;case 4:t.chars=function(t,e,r){for(var n=[],i=r/20,a=0;a<i;a++){var o={},s=20*a;o.id=t.readUInt32LE(e+0+s),o.x=t.readUInt16LE(e+4+s),o.y=t.readUInt16LE(e+6+s),o.width=t.readUInt16LE(e+8+s),o.height=t.readUInt16LE(e+10+s),o.xoffset=t.readInt16LE(e+12+s),o.yoffset=t.readInt16LE(e+14+s),o.xadvance=t.readInt16LE(e+16+s),o.page=t.readUInt8(e+18+s),o.chnl=t.readUInt8(e+19+s),n[a]=o}return n}(e,r,i);break;case 5:t.kernings=function(t,e,r){for(var n=[],i=r/10,a=0;a<i;a++){var o={},s=10*a;o.first=t.readUInt32LE(e+0+s),o.second=t.readUInt32LE(e+4+s),o.amount=t.readInt16LE(e+8+s),n[a]=o}return n}(e,r,i)}return 5+i}function l(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+=a(e,r,t);return e}},{}],283:[function(t,e,r){var u=t("./parse-attribs"),f=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 o=f(t),s={pages:[],chars:[],kernings:[]};["info","common"].forEach(function(t){var e=o.getElementsByTagName(t)[0];e&&(s[t]=u(h(e)))});var e=o.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],a=parseInt(i.getAttribute("id"),10),l=i.getAttribute("file");if(isNaN(a))throw new Error('malformed file -- page "id" attribute is NaN');if(!l)throw new Error('malformed file -- needs page "file" attribute');s.pages[parseInt(a,10)]=l}return["chars","kernings"].forEach(function(t){var e=o.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 a=n[i];s[t].push(u(h(a)))}}),s}},{"./parse-attribs":284,"xml-parse-from-string":367}],284:[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}},{}],285:[function(t,e,r){var a=t("trim"),n=t("for-each");e.exports=function(t){if(!t)return{};var i={};return n(a(t).split("\n"),function(t){var e=t.indexOf(":"),r=a(t.slice(0,e)).toLowerCase(),n=a(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":250,trim:358}],286:[function(t,e,u){(function(i){function a(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 o(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}u.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=a(o(t.split("/"),function(t){return!!t}),!e).join("/"))||"."},u.normalize=function(t){var e=u.isAbsolute(t),r="/"===n(t,-1);return(t=a(o(t.split("/"),function(t){return!!t}),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},u.isAbsolute=function(t){return"/"===t.charAt(0)},u.join=function(){var t=Array.prototype.slice.call(arguments,0);return u.normalize(o(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},u.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=u.resolve(t).substr(1),e=u.resolve(e).substr(1);for(var n=r(t.split("/")),i=r(e.split("/")),a=Math.min(n.length,i.length),o=a,s=0;s<a;s++)if(n[s]!==i[s]){o=s;break}var l=[];for(s=o;s<n.length;s++)l.push("..");return(l=l.concat(i.slice(o))).join("/")},u.sep="/",u.delimiter=":",u.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,a=t.length-1;1<=a;--a)if(47===(e=t.charCodeAt(a))){if(!i){n=a;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},u.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},u.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,i=!0,a=0,o=t.length-1;0<=o;--o){var s=t.charCodeAt(o);if(47===s){if(i)continue;r=o+1;break}-1===n&&(i=!1,n=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1)}return-1===e||-1===n||0===a||1===a&&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:312}],287:[function(e,r,t){(function(l){"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":u(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":u(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"!==u(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"]=l.byteLength(i),t.data=i}function a(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(null,e)):(e.body=new l([]),t.on("data",function(t){e.body=l.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 o=void 0;switch(e.protocol.toLowerCase()){case"http:":o=f.request(n,a);break;case"https:":o=h.request(n,a);break;default:return void(r&&r(new Error("Invalid / unknown URL protocol. Expected HTTP or HTTPS."),null))}if("number"==typeof t.timeout&&o.setTimeout(t.timeout,function(){o.abort(),r(new Error("Timeout has been reached."),null),r=null}),o.on("error",function(t){r&&r(t,null)}),t.hasOwnProperty("data")){var s=t.data;if(!(t.data instanceof l)&&"object"===u(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(new Error("Couldn't stringify object. (Likely due to a circular reference.)"),null)}o.write(s)}o.end()}var u="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},f=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:47,http:335,https:252,querystring:316,url:359,util:365,zlib:34}],288:[function(t,e,r){"use strict";function E(t,e,r,n,i,a){for(var o,s,l,u,f=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),b=0,m=0,g=0,y=0,v=0,_=f;_<=c;_++)for(var w=h;w<=d;w++)if(_!==e||w!==r){var x=k(t,t,p,4*(w*n+_),!0);if(0===x?b++:x<0?g++:0<x&&m++,2<b)return!1;a&&(x<y&&(y=x,o=_,s=w),v<x&&(v=x,l=_,u=w))}return!a||0!==g&&0!==m&&(!E(t,o,s,n,i)&&!E(a,o,s,n,i)||!E(t,l,u,n,i)&&!E(a,l,u,n,i))}function k(t,e,r,n,i){var a=t[r+3]/255,o=e[n+3]/255,s=w(t[r+0],a),l=w(t[r+1],a),u=w(t[r+2],a),f=w(e[n+0],o),h=w(e[n+1],o),c=w(e[n+2],o),d=_(s,l,u)-_(f,h,c);if(i)return d;var p=m(s,l,u)-m(f,h,c),b=g(s,l,u)-g(f,h,c);return.5053*d*d+.299*p*p+.1957*b*b}function _(t,e,r){return.29889531*t+.58662247*e+.11448223*r}function m(t,e,r){return.59597799*t-.2741761*e-.32180189*r}function g(t,e,r){return.21147017*t-.52261711*e+.31114694*r}function w(t,e){return 255+(t-255)*e}function x(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,a){a=a||{};for(var o=void 0===a.threshold?.1:a.threshold,s=35215*o*o,l=0,u=0;u<i;u++)for(var f=0;f<n;f++){var h=4*(u*n+f),c=k(t,e,h,h);if(s<c)a.includeAA||!E(t,f,u,n,i,e)&&!E(e,f,u,n,i,t)?(r&&x(r,h,255,0,0),l++):r&&x(r,h,255,255,0);else if(r){var d=w((void 0,m=(p=t)[(b=h)+3]/255,g=w(p[b+0],m),y=w(p[b+1],m),v=w(p[b+2],m),_(g,y,v)),.1);x(r,h,d,d,d)}}var p,b,m,g,y,v;return l}},{}],289:[function(t,e,r){(function(b){"use strict";var m=t("./interlace"),g={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 y(t,e,r,n,i,a){for(var o=t.width,s=t.height,l=t.index,u=0;u<s;u++)for(var f=0;f<o;f++){for(var h=r(f,u,l),c=0;c<4;c++){var d=g[n][c];if(255===d)e[h+c]=255;else{var p=d+a;if(p===i.length)throw new Error("Ran out of data");e[h+c]=i[p]}}a+=n}return a}function v(t,e,r,n,i,a){for(var o=t.width,s=t.height,l=t.index,u=0;u<s;u++){for(var f=0;f<o;f++)for(var h=i.get(n),c=r(f,u,l),d=0;d<4;d++){var p=g[n][d];e[c+d]=255!==p?h[p]:a}i.resetAfterLine()}}r.dataToBitMap=function(t,e){var r,n=e.width,i=e.height,a=e.depth,o=e.bpp,s=e.interlace;if(8!==a)var l=function(u,f){var h=[],c=0;function r(){if(c===u.length)throw new Error("Ran out of data");var t,e,r,n,i,a,o,s,l=u[c];switch(c++,f){default:throw new Error("unrecognised depth");case 16:o=u[c],c++,h.push((l<<8)+o);break;case 4:o=15&l,s=l>>4,h.push(s,o);break;case 2:i=3&l,a=l>>2&3,o=l>>4&3,s=l>>6&3,h.push(s,o,a,i);break;case 1:t=1&l,e=l>>1&1,r=l>>2&1,n=l>>3&1,i=l>>4&1,a=l>>5&1,o=l>>6&1,s=l>>7&1,h.push(s,o,a,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!==u.length)throw new Error("extra data found")}}}(t,a);r=a<=8?new b(n*i*4):new Uint16Array(n*i*4);var u,f,h=Math.pow(2,a)-1,c=0;if(s)u=m.getImagePasses(n,i),f=m.getInterlaceIterator(n,i);else{var d=0;f=function(){var t=d;return d+=4,t},u=[{width:n,height:i}]}for(var p=0;p<u.length;p++)8===a?c=y(u[p],r,f,o,t,c):v(u[p],r,f,o,l,h);if(8===a){if(c!==t.length)throw new Error("extra data found")}else l.end();return r}}).call(this,t("buffer").Buffer)},{"./interlace":299,buffer:47}],290:[function(t,e,r){(function(_){"use strict";var w=t("./constants");e.exports=function(t,e,r,o){var n,s=-1!==[w.COLORTYPE_COLOR_ALPHA,w.COLORTYPE_ALPHA].indexOf(o.colorType);if(o.colorType===o.inputColorType){var i=(n=new ArrayBuffer(2),new DataView(n).setInt16(0,256,!0),256!==new Int16Array(n)[0]);if(8===o.bitDepth||16===o.bitDepth&&i)return t}var a=16!==o.bitDepth?t:new Uint16Array(t.buffer),l=255,u=w.COLORTYPE_TO_BPP_MAP[o.inputColorType];4!=u||o.inputHasAlpha||(u=3);var f=w.COLORTYPE_TO_BPP_MAP[o.colorType];16===o.bitDepth&&(l=65535,f*=2);var h=new _(e*r*f),c=0,d=0,p=o.bgColor||{};function b(t,e){var r,n,i,a=l;switch(o.inputColorType){case w.COLORTYPE_COLOR_ALPHA:a=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:a=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:"+o.inputColorType+" is not supported at present")}return o.inputHasAlpha&&(s||(a/=l,r=Math.min(Math.max(Math.round((1-a)*p.red+a*r),0),l),n=Math.min(Math.max(Math.round((1-a)*p.green+a*n),0),l),i=Math.min(Math.max(Math.round((1-a)*p.blue+a*i),0),l))),{red:r,green:n,blue:i,alpha:a}}void 0===p.red&&(p.red=l),void 0===p.green&&(p.green=l),void 0===p.blue&&(p.blue=l);for(var m=0;m<r;m++)for(var g=0;g<e;g++){var y=b(a,c);switch(o.colorType){case w.COLORTYPE_COLOR_ALPHA:case w.COLORTYPE_COLOR:8===o.bitDepth?(h[d]=y.red,h[d+1]=y.green,h[d+2]=y.blue,s&&(h[d+3]=y.alpha)):(h.writeUInt16BE(y.red,d),h.writeUInt16BE(y.green,d+2),h.writeUInt16BE(y.blue,d+4),s&&h.writeUInt16BE(y.alpha,d+6));break;case w.COLORTYPE_ALPHA:case w.COLORTYPE_GRAYSCALE:var v=(y.red+y.green+y.blue)/3;8===o.bitDepth?(h[d]=v,s&&(h[d+1]=y.alpha)):(h.writeUInt16BE(v,d),s&&h.writeUInt16BE(y.alpha,d+2))}c+=u,d+=f}return h}}).call(this,t("buffer").Buffer)},{"./constants":292,buffer:47}],291:[function(i,a,t){(function(r,o){"use strict";var t=i("util"),e=i("stream"),n=a.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=o.isBuffer(t)?t:new o(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 o(t.length);e<t.length;){var i=this._buffers[r++],a=Math.min(i.length,t.length-e);i.copy(n,e,0,a),e+=a,a!==i.length&&(this._buffers[--r]=i.slice(a))}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:312,buffer:47,stream:334,util:365}],292:[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}},{}],293:[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}},{}],294:[function(t,e,r){(function(b){"use strict";var h=t("./paeth-predictor");var m={0:function(t,e,r,n,i){for(var a=0;a<r;a++)n[i+a]=t[e+a]},1:function(t,e,r,n,i,a){for(var o=0;o<r;o++){var s=a<=o?t[e+o-a]:0,l=t[e+o]-s;n[i+o]=l}},2:function(t,e,r,n,i){for(var a=0;a<r;a++){var o=0<e?t[e+a-r]:0,s=t[e+a]-o;n[i+a]=s}},3:function(t,e,r,n,i,a){for(var o=0;o<r;o++){var s=a<=o?t[e+o-a]:0,l=0<e?t[e+o-r]:0,u=t[e+o]-(s+l>>1);n[i+o]=u}},4:function(t,e,r,n,i,a){for(var o=0;o<r;o++){var s=a<=o?t[e+o-a]:0,l=0<e?t[e+o-r]:0,u=0<e&&a<=o?t[e+o-(r+a)]:0,f=t[e+o]-h(s,l,u);n[i+o]=f}}},g={0:function(t,e,r){for(var n=0,i=e+r,a=e;a<i;a++)n+=Math.abs(t[a]);return n},1:function(t,e,r,n){for(var i=0,a=0;a<r;a++){var o=n<=a?t[e+a-n]:0,s=t[e+a]-o;i+=Math.abs(s)}return i},2:function(t,e,r){for(var n=0,i=e+r,a=e;a<i;a++){var o=0<e?t[a-r]:0,s=t[a]-o;n+=Math.abs(s)}return n},3:function(t,e,r,n){for(var i=0,a=0;a<r;a++){var o=n<=a?t[e+a-n]:0,s=0<e?t[e+a-r]:0,l=t[e+a]-(o+s>>1);i+=Math.abs(l)}return i},4:function(t,e,r,n){for(var i=0,a=0;a<r;a++){var o=n<=a?t[e+a-n]:0,s=0<e?t[e+a-r]:0,l=0<e&&n<=a?t[e+a-(r+n)]:0,u=t[e+a]-h(o,s,l);i+=Math.abs(u)}return i}};e.exports=function(t,e,r,n,i){var a;if("filterType"in n&&-1!==n.filterType){if("number"!=typeof n.filterType)throw new Error("unrecognised filter types");a=[n.filterType]}else a=[0,1,2,3,4];16===n.bitDepth&&(i*=2);for(var o=e*i,s=0,l=0,u=new b((1+o)*r),f=a[0],h=0;h<r;h++){if(1<a.length)for(var c=1/0,d=0;d<a.length;d++){var p=g[a[d]](t,l,o,i);p<c&&(f=a[d],c=p)}u[s]=f,s++,m[f](t,l,o,u,s,i),s+=o,l+=o}return u}}).call(this,t("buffer").Buffer)},{"./paeth-predictor":303,buffer:47}],295:[function(r,o,t){(function(n){"use strict";var t=r("util"),i=r("./chunkstream"),a=r("./filter-parse"),e=o.exports=function(t){i.call(this);var e=[],r=this;this._filter=new a(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":291,"./filter-parse":297,buffer:47,util:365}],296:[function(t,e,r){(function(i){"use strict";var a=t("./sync-reader"),o=t("./filter-parse");r.process=function(t,e){var r=[],n=new a(t);return new o(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":297,"./sync-reader":310,buffer:47}],297:[function(e,r,t){(function(a){"use strict";var u=e("./interlace"),c=e("./paeth-predictor");function f(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,a=t.bpp,o=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],i)for(var s=u.getImagePasses(r,n),l=0;l<s.length;l++)this._images.push({byteWidth:f(s[l].width,a,o),height:s[l].height,lineIndex:0});else this._images.push({byteWidth:f(r,a,o),height:n,lineIndex:0});this._xComparison=8===o?a:16===o?2*a: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,a=0;a<r;a++){var o=t[1+a],s=i<a?e[a-n]:0;e[a]=o+s}},t.prototype._unFilterType2=function(t,e,r){for(var n=this._lastLine,i=0;i<r;i++){var a=t[1+i],o=n?n[i]:0;e[i]=a+o}},t.prototype._unFilterType3=function(t,e,r){for(var n=this._xComparison,i=n-1,a=this._lastLine,o=0;o<r;o++){var s=t[1+o],l=a?a[o]:0,u=i<o?e[o-n]:0,f=Math.floor((u+l)/2);e[o]=s+f}},t.prototype._unFilterType4=function(t,e,r){for(var n=this._xComparison,i=n-1,a=this._lastLine,o=0;o<r;o++){var s=t[1+o],l=a?a[o]:0,u=i<o?e[o-n]:0,f=i<o&&a?a[o-n]:0,h=c(u,l,f);e[o]=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 a(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":299,"./paeth-predictor":303,buffer:47}],298:[function(t,e,r){(function(u){"use strict";e.exports=function(t,e){var r=e.depth,n=e.width,i=e.height,a=e.colorType,o=e.transColor,s=e.palette,l=t;return 3===a?function(t,e,r,n,i){for(var a=0,o=0;o<n;o++)for(var s=0;s<r;s++){var l=i[t[a]];if(!l)throw new Error("index "+t[a]+" not in palette");for(var u=0;u<4;u++)e[a+u]=l[u];a+=4}}(t,l,n,i,s):(o&&function(t,e,r,n,i){for(var a=0,o=0;o<n;o++)for(var s=0;s<r;s++){var l=!1;if(1===i.length?i[0]===t[a]&&(l=!0):i[0]===t[a]&&i[1]===t[a+1]&&i[2]===t[a+2]&&(l=!0),l)for(var u=0;u<4;u++)e[a+u]=0;a+=4}}(t,l,n,i,o),8!==r&&(16===r&&(l=new u(n*i*4)),function(t,e,r,n,i){for(var a=Math.pow(2,i)-1,o=0,s=0;s<n;s++)for(var l=0;l<r;l++){for(var u=0;u<4;u++)e[o+u]=Math.floor(255*t[o+u]/a+.5);o+=4}}(t,l,n,i,r))),l}}).call(this,t("buffer").Buffer)},{buffer:47}],299:[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,a=(t-n)/8,o=(e-i)/8,s=0;s<c.length;s++){for(var l=c[s],u=a*l.x.length,f=o*l.y.length,h=0;h<l.x.length&&l.x[h]<n;h++)u++;for(h=0;h<l.y.length&&l.y[h]<i;h++)f++;0<u&&0<f&&r.push({width:u,height:f,index:s})}return r},r.getInterlaceIterator=function(o){return function(t,e,r){var n=t%c[r].x.length,i=(t-n)/c[r].x.length*8+c[r].x[n],a=e%c[r].y.length;return 4*i+((e-a)/c[r].y.length*8+c[r].y[a])*o*4}}},{}],300:[function(i,s,t){(function(a){"use strict";var t=i("util"),r=i("stream"),o=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 a(o.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":292,"./packer":302,buffer:47,stream:334,util:365}],301:[function(t,e,r){(function(o){"use strict";var s=!0,l=t("zlib");l.deflateSync||(s=!1);var u=t("./constants"),f=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 f(e||{}),n=[];n.push(new o(u.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),a=l.deflateSync(i,r.getDeflateOptions());if(i=null,!a||!a.length)throw new Error("bad png - invalid compressed data response");return n.push(r.packIDAT(a)),n.push(r.packIEND()),o.concat(n)}}).call(this,t("buffer").Buffer)},{"./constants":292,"./packer":302,buffer:47,zlib:34}],302:[function(r,n,t){(function(i){"use strict";var a=r("./constants"),o=r("./crc"),s=r("./bitpacker"),l=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:a.COLORTYPE_COLOR_ALPHA,t.inputColorType="number"==typeof t.inputColorType?t.inputColorType:a.COLORTYPE_COLOR_ALPHA,-1===[a.COLORTYPE_GRAYSCALE,a.COLORTYPE_COLOR,a.COLORTYPE_COLOR_ALPHA,a.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error("option color type:"+t.colorType+" is not supported at present");if(-1===[a.COLORTYPE_GRAYSCALE,a.COLORTYPE_COLOR,a.COLORTYPE_COLOR_ALPHA,a.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=a.COLORTYPE_TO_BPP_MAP[this._options.colorType];return l(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(o.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*a.GAMMA_DIVISION),0),this._packChunk(a.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(a.TYPE_IHDR,r)},t.prototype.packIDAT=function(t){return this._packChunk(a.TYPE_IDAT,t)},t.prototype.packIEND=function(){return this._packChunk(a.TYPE_IEND,null)}}).call(this,r("buffer").Buffer)},{"./bitpacker":290,"./constants":292,"./crc":293,"./filter-pack":294,buffer:47,zlib:34}],303:[function(t,e,r){"use strict";e.exports=function(t,e,r){var n=t+e-r,i=Math.abs(n-t),a=Math.abs(n-e),o=Math.abs(n-r);return i<=a&&i<=o?t:a<=o?e:r}},{}],304:[function(t,e,r){"use strict";var n=t("util"),o=t("zlib"),i=t("./chunkstream"),a=t("./filter-parse-async"),s=t("./parser"),l=t("./bitmapper"),u=t("./format-normaliser"),f=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(f,i),f.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},f.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=o.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,o.Z_MIN_CHUNK);this._inflate=o.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 a=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,a(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},f.prototype._handleMetaData=function(t){this.emit("metadata",t),this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},f.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},f.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},f.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},f.prototype._complete=function(t){if(!this.errord){try{var e=l.dataToBitMap(t,this._bitmapInfo),r=u(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",r)}}},{"./bitmapper":289,"./chunkstream":291,"./filter-parse-async":295,"./format-normaliser":298,"./parser":306,util:365,zlib:34}],305:[function(t,e,r){(function(d){"use strict";var p=!0,b=t("zlib"),m=t("./sync-inflate");b.deflateSync||(p=!1);var g=t("./sync-reader"),y=t("./filter-parse-sync"),v=t("./parser"),_=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 a=[];var o=new g(t);if(new v(e,{read:o.read.bind(o),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){a.push(t)}}).start(),o.process(),r)throw r;var s,l=d.concat(a);if(a.length=0,n.interlace)s=b.inflateSync(l);else{var u=(1+(n.width*n.bpp*n.depth+7>>3))*n.height;s=m(l,{chunkSize:u,maxLength:u})}if(l=null,!s||!s.length)throw new Error("bad png - invalid inflate data response");var f=y.process(s,n);l=null;var h=_.dataToBitMap(f,n);f=null;var c=w(h,n);return n.data=c,n.gamma=i||0,n}}).call(this,t("buffer").Buffer)},{"./bitmapper":289,"./filter-parse-sync":296,"./format-normaliser":298,"./parser":306,"./sync-inflate":309,"./sync-reader":310,buffer:47,zlib:34}],306:[function(e,r,t){(function(o){"use strict";var u=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[u.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[u.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[u.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[u.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[u.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[u.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(u.PNG_SIGNATURE.length,this._parseSignature.bind(this))},t.prototype._parseSignature=function(t){for(var e=u.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 a=Boolean(32&t[4]);if(this._hasIHDR||r===u.TYPE_IHDR){if(this._crc=new s,this._crc.write(new o(n)),this._chunks[r])return this._chunks[r](e);a?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],a=t[10],o=t[11],s=t[12];if(8===n||4===n||2===n||1===n||16===n)if(i in u.COLORTYPE_TO_BPP_MAP)if(0===a)if(0===o)if(0===s||1===s){this._colorType=i;var l=u.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:r,depth:n,interlace:Boolean(s),palette:Boolean(i&u.COLORTYPE_PALETTE),color:Boolean(i&u.COLORTYPE_COLOR),alpha:Boolean(i&u.COLORTYPE_ALPHA),bpp:l,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===u.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===u.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===u.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)/u.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===u.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":292,"./crc":293,buffer:47}],307:[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":301,"./parser-sync":305}],308:[function(l,t,u){(function(t,e){"use strict";var r=l("util"),n=l("stream"),i=l("./parser-async"),a=l("./packer-async"),o=l("./png-sync"),s=u.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 a(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=o,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,a,o,s){if(n|=0,i|=0,a|=0,o|=0,s|=0,(r|=0)>t.width||n>t.height||r+i>t.width||n+a>t.height)throw new Error("bitblt reading outside image");if(o>e.width||s>e.height||o+i>e.width||s+a>e.height)throw new Error("bitblt writing outside image");for(var l=0;l<a;l++)t.data.copy(e.data,(s+l)*e.width+o<<2,(n+l)*t.width+r<<2,(n+l)*t.width+r+i<<2)},s.prototype.bitblt=function(t,e,r,n,i,a,o){return s.bitblt(this,t,e,r,n,i,a,o),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 a=t.data[n+i]/255;a=Math.pow(a,1/2.2/t.gamma),t.data[n+i]=Math.round(255*a)}t.gamma=0}},s.prototype.adjustGamma=function(){s.adjustGamma(this)}}).call(this,l("_process"),l("buffer").Buffer)},{"./packer-async":300,"./parser-async":304,"./png-sync":307,_process:312,buffer:47,stream:334,util:365}],309:[function(i,a,o){(function(r,p){"use strict";var b=i("assert").ok,m=i("zlib"),t=i("util"),g=i("buffer").kMaxLength;function n(t){if(!(this instanceof n))return new n(t);t&&t.chunkSize<m.Z_MIN_CHUNK&&(t.chunkSize=m.Z_MIN_CHUNK),m.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 y(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=m.Z_FINISH),t._processChunk(e,r)}(new n(e),t)}n.prototype._processChunk=function(t,e,r){if("function"==typeof r)return m.Inflate._processChunk.call(this,t,e,r);var n,i=this,a=t&&t.length,o=this._chunkSize-this._offset,s=this._maxLength,l=0,u=[],f=0;function h(t,e){if(!i._hadError){var r=o-e;if(b(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)),u.push(n),f+=n.length,0===(s-=n.length))return!1}return(0===e||i._offset>=i._chunkSize)&&(o=i._chunkSize,i._offset=0,i._buffer=p.allocUnsafe(i._chunkSize)),0===e&&(l+=a-t,a=t,!0)}}this.on("error",function(t){n=t}),b(this._handle,"zlib binding closed");do{var c=this._handle.writeSync(e,t,l,a,this._buffer,this._offset,o);c=c||this._writeState}while(!this._hadError&&h(c[0],c[1]));if(this._hadError)throw n;if(g<=f)throw y(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+g.toString(16)+" bytes");var d=p.concat(u,f);return y(this),d},t.inherits(n,m.Inflate),a.exports=o=e,o.Inflate=n,o.createInflate=function(t){return new n(t)},o.inflateSync=e}).call(this,i("_process"),i("buffer").Buffer)},{_process:312,assert:24,buffer:47,util:365,zlib:34}],310:[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}},{}],311:[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,a,o=arguments.length;switch(o){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(o-1),a=0;a<i.length;)i[a++]=arguments[a];return s.nextTick(function(){t.apply(null,i)})}}}:e.exports=s}).call(this,t("_process"))},{_process:312}],312:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!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:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var u,f=[],h=!1,c=-1;function d(){h&&u&&(h=!1,u.length?f=u.concat(f):c=-1,f.length&&p())}function p(){if(!h){var t=l(d);h=!0;for(var e=f.length;e;){for(u=f,f=[];++c<e;)u&&u[c].run();c=-1,e=f.length}u=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 b(t,e){this.fun=t,this.array=e}function m(){}a.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];f.push(new b(t,e)),1!==f.length||h||l(p)},b.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(t){return[]},a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],313:[function(t,P,M){(function(R){!function(t){var e="object"==typeof M&&M&&!M.nodeType&&M,r="object"==typeof P&&P&&!P.nodeType&&P,n="object"==typeof R&&R;n.global!==n&&n.window!==n&&n.self!==n||(t=n);var i,a,g=2147483647,y=36,v=1,_=26,o=38,s=700,w=72,x=128,E="-",l=/^xn--/,u=/[^\x20-\x7E]/,f=/[\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=y-v,k=Math.floor,j=String.fromCharCode;function S(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(f,".")).split("."),e).join(".")}function A(t){for(var e,r,n=[],i=0,a=t.length;i<a;)55296<=(e=t.charCodeAt(i++))&&e<=56319&&i<a?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+=j((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=j(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*_>>1<t;n+=y)t=k(t/c);return k(n+(c+1)*t/(t+o))}function b(t){var e,r,n,i,a,o,s,l,u,f,h,c=[],d=t.length,p=0,b=x,m=w;for((r=t.lastIndexOf(E))<0&&(r=0),n=0;n<r;++n)128<=t.charCodeAt(n)&&S("not-basic"),c.push(t.charCodeAt(n));for(i=0<r?r+1:0;i<d;){for(a=p,o=1,s=y;d<=i&&S("invalid-input"),h=t.charCodeAt(i++),(y<=(l=h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:y)||l>k((g-p)/o))&&S("overflow"),p+=l*o,!(l<(u=s<=m?v:m+_<=s?_:s-m));s+=y)o>k(g/(f=y-u))&&S("overflow"),o*=f;m=O(p-a,e=c.length+1,0==a),k(p/e)>g-b&&S("overflow"),b+=k(p/e),p%=e,c.splice(p++,0,b)}return I(c)}function m(t){var e,r,n,i,a,o,s,l,u,f,h,c,d,p,b,m=[];for(c=(t=A(t)).length,e=x,a=w,o=r=0;o<c;++o)(h=t[o])<128&&m.push(j(h));for(n=i=m.length,i&&m.push(E);n<c;){for(s=g,o=0;o<c;++o)e<=(h=t[o])&&h<s&&(s=h);for(s-e>k((g-r)/(d=n+1))&&S("overflow"),r+=(s-e)*d,e=s,o=0;o<c;++o)if((h=t[o])<e&&++r>g&&S("overflow"),h==e){for(l=r,u=y;!(l<(f=u<=a?v:a+_<=u?_:u-a));u+=y)b=l-f,p=y-f,m.push(j(T(f+b%p,0))),l=k(b/p);m.push(j(T(l,0))),a=O(r,d,n==i),r=0,++n}++r,++e}return m.join("")}if(i={version:"1.4.1",ucs2:{decode:A,encode:I},decode:b,encode:m,toASCII:function(t){return p(t,function(t){return u.test(t)?"xn--"+m(t):t})},toUnicode:function(t){return p(t,function(t){return l.test(t)?b(t.slice(4).toLowerCase()):t})}},e&&r)if(P.exports==e)r.exports=i;else for(a in i)i.hasOwnProperty(a)&&(e[a]=i[a]);else t.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],314:[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 a=/\+/g;t=t.split(e);var o=1e3;n&&"number"==typeof n.maxKeys&&(o=n.maxKeys);var s,l,u=t.length;0<o&&o<u&&(u=o);for(var f=0;f<u;++f){var h,c,d,p,b=t[f].replace(a,"%20"),m=b.indexOf(r);c=0<=m?(h=b.substr(0,m),b.substr(m+1)):(h=b,""),d=decodeURIComponent(h),p=decodeURIComponent(c),s=i,l=d,Object.prototype.hasOwnProperty.call(s,l)?g(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i};var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],315:[function(t,e,r){"use strict";function a(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(l(r),function(t){var e=encodeURIComponent(a(t))+i;return o(r[t])?s(r[t],function(t){return e+encodeURIComponent(a(t))}).join(n):e+encodeURIComponent(a(r[t]))}).join(n):t?encodeURIComponent(a(t))+i+encodeURIComponent(a(r)):""};var o=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 l=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],316:[function(t,e,r){"use strict";r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":314,"./encode":315}],317:[function(t,e,r){e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":318}],318:[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 a=t("core-util-is");a.inherits=t("inherits");var o=t("./_stream_readable"),s=t("./_stream_writable");a.inherits(h,o);for(var l=i(s.prototype),u=0;u<l.length;u++){var f=l[u];h.prototype[f]||(h.prototype[f]=s.prototype[f])}function h(t){if(!(this instanceof h))return new h(t);o.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":320,"./_stream_writable":322,"core-util-is":238,inherits:254,"process-nextick-args":311}],319:[function(t,e,r){"use strict";e.exports=a;var n=t("./_stream_transform"),i=t("core-util-is");function a(t){if(!(this instanceof a))return new a(t);n.call(this,t)}i.inherits=t("inherits"),i.inherits(a,n),a.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":321,"core-util-is":238,inherits:254}],320:[function(M,L,t){(function(b,t){"use strict";var m=M("process-nextick-args");L.exports=c;var o,g=M("isarray");c.ReadableState=a;function y(t,e){return t.listeners(e).length}M("events").EventEmitter;var i=M("./internal/streams/stream"),s=M("safe-buffer").Buffer,l=t.Uint8Array||function(){};var e=M("core-util-is");e.inherits=M("inherits");var r=M("util"),v=void 0;v=r&&r.debuglog?r.debuglog("stream"):function(){};var u,f=M("./internal/streams/BufferList"),n=M("./internal/streams/destroy");e.inherits(c,i);var h=["error","close","destroy","pause","resume"];function a(t,e){t=t||{};var r=e instanceof(o=o||M("./_stream_duplex"));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,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&&(u=u||M("string_decoder/").StringDecoder,this.decoder=new u(t.encoding),this.encoding=t.encoding)}function c(t){if(o=o||M("./_stream_duplex"),!(this instanceof c))return new c(t);this._readableState=new a(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 a,o=t._readableState;null===e?(o.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,x(t)}(t,o)):(i||(a=function(t,e){var r;(function(t){return s.isBuffer(t)||t instanceof l})(e)||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(o,e)),a?t.emit("error",a):o.objectMode||e&&0<e.length?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):p(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?p(t,o,e,!1):k(t,o)):p(t,o,e,!1))):n||(o.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(o)}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&&x(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 u=u||M("string_decoder/").StringDecoder,this._readableState.decoder=new u(t),this._readableState.encoding=t,this};var _=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 _<=t?t=_:(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 x(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(v("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?m.nextTick(E,t):E(t))}function E(t){v("emit readable"),t.emit("readable"),I(t)}function k(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(j,t,e))}function j(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(v("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function S(t){v("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(v("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(v("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 a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=a.slice(o);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 a=n.data,o=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,o),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=a.slice(o);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,m.nextTick(R,e,t))}function R(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(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){v("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 v("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?O(this):x(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,i=e.needReadable;return v("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&v("length less than watermark",i=!0),e.ended||e.reading?v("reading or ended",i=!1):i&&(v("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,v("pipe count=%d opts=%j",i.pipesCount,t);var e=(!t||!1!==t.end)&&r!==b.stdout&&r!==b.stderr?o:p;function a(t,e){v("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,v("cleanup"),r.removeListener("close",c),r.removeListener("finish",d),r.removeListener("drain",s),r.removeListener("error",h),r.removeListener("unpipe",a),n.removeListener("end",o),n.removeListener("end",p),n.removeListener("data",f),l=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||s())}function o(){v("onend"),r.end()}i.endEmitted?m.nextTick(e):n.once("end",e),r.on("unpipe",a);var s=function(e){return function(){var t=e._readableState;v("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&y(e,"data")&&(t.flowing=!0,I(e))}}(n);r.on("drain",s);var l=!1;var u=!1;function f(t){v("ondata"),(u=!1)!==r.write(t)||u||((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==P(i.pipes,r))&&!l&&(v("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function h(t){v("onerror",t),p(),r.removeListener("error",h),0===y(r,"error")&&r.emit("error",t)}function c(){r.removeListener("finish",d),p()}function d(){v("onfinish"),r.removeListener("close",c),p()}function p(){v("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]?g(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||(v("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 a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=P(e.pipes,t);return-1===o||(e.pipes.splice(o,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&&x(this):m.nextTick(S,this))}return r},c.prototype.resume=function(){var t=this._readableState;return t.flowing||(v("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,m.nextTick(A,t,e))}(this,t)),this},c.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(v("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(v("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){v("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 a=0;a<h.length;a++)e.on(h[a],this.emit.bind(this,h[a]));return this._read=function(t){v("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,M("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"./_stream_duplex":318,"./internal/streams/BufferList":323,"./internal/streams/destroy":324,"./internal/streams/stream":325,_process:312,"core-util-is":238,events:239,inherits:254,isarray:258,"process-nextick-args":311,"safe-buffer":326,"string_decoder/":327,util:32}],321:[function(t,e,r){"use strict";e.exports=a;var n=t("./_stream_duplex"),i=t("core-util-is");function a(t){if(!(this instanceof a))return new a(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",o)}function o(){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(a,n),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,n.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},a.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)}},a.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},a.prototype._destroy=function(t,e){var r=this;n.prototype._destroy.call(this,t,function(t){e(t),r.emit("close")})}},{"./_stream_duplex":318,"core-util-is":238,inherits:254}],322:[function(E,k,t){(function(t,e,r){"use strict";var s=E("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=m;var l,u=!t.browser&&-1<["v0.10","v0.9."].indexOf(t.version.slice(0,5))?r:s.nextTick;m.WritableState=b;var n=E("core-util-is");n.inherits=E("inherits");var i={deprecate:E("util-deprecate")},a=E("./internal/streams/stream"),f=E("safe-buffer").Buffer,o=e.Uint8Array||function(){};var c,d=E("./internal/streams/destroy");function p(){}function b(t,e){l=l||E("./_stream_duplex"),t=t||{};var r=e instanceof l;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=t.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=(this.destroyed=!1)===t.decodeStrings;this.decodeStrings=!o,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(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),x(t,e))}(t,r,n,e,i);else{var a=_(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||v(t,r),n?u(y,t,r,a,i):y(t,r,a,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 m(t){if(l=l||E("./_stream_duplex"),!(c.call(m,this)||this instanceof l))return new m(t);this._writableState=new b(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)),a.call(this)}function g(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function y(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),x(t,e)}function v(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)(i[o]=r).isBuf||(s=!1),r=r.next,o+=1;i.allBuffers=s,g(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new h(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback;if(g(t,e,!1,e.objectMode?1:l.length,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function _(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"),x(e,r)})}function x(t,e){var r=_(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(m,a),b.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(b.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(m,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===m&&(t&&t._writableState instanceof b)}})):c=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,r){var n=this._writableState,i=!1,a=!n.objectMode&&function(t){return f.isBuffer(t)||t instanceof o}(t);return a&&!f.isBuffer(t)&&(t=function(t){return f.from(t)}(t)),"function"==typeof e&&(r=e,e=null),e=a?"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):(a||function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),s.nextTick(n,a),i=!1),i}(this,n,t,r))&&(n.pendingcb++,i=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=f.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,s,n,i,a);return l}(this,n,a,t,e,r)),i},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||v(this,t))},m.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(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.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,x(t,e),r&&(e.finished?s.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=d.destroy,m.prototype._undestroy=d.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{},E("timers").setImmediate)},{"./_stream_duplex":318,"./internal/streams/destroy":324,"./internal/streams/stream":325,_process:312,"core-util-is":238,inherits:254,"process-nextick-args":311,"safe-buffer":326,timers:355,"util-deprecate":362}],323:[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),a=this.head,o=0;a;)e=a.data,r=i,n=o,e.copy(r,n),o+=a.data.length,a=a.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":326,util:32}],324:[function(t,e,r){"use strict";var a=t("process-nextick-args");function o(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||a.nextTick(o,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(a.nextTick(o,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":311}],325:[function(t,e,r){e.exports=t("events").EventEmitter},{events:239}],326:[function(t,e,r){var n=t("buffer"),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,r),r.Buffer=o),a(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.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},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:47}],327:[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 a(t){var e;switch(this.encoding=function(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}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=f,this.end=h,e=3;break;default:return this.write=c,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(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 l(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 u(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 f(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 h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(t){return t.toString(this.encoding)}function d(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=o(e[n]);if(0<=i)return 0<i&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(0<=(i=o(e[n])))return 0<i&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(0<=(i=o(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":326}],328:[function(t,e,r){e.exports=t("./readable").PassThrough},{"./readable":329}],329:[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":318,"./lib/_stream_passthrough.js":319,"./lib/_stream_readable.js":320,"./lib/_stream_transform.js":321,"./lib/_stream_writable.js":322}],330:[function(t,e,r){e.exports=t("./readable").Transform},{"./readable":329}],331:[function(t,e,r){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":322}],332:[function(t,e,r){var n=function(a){"use strict";var l,t=Object.prototype,u=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",n=e.toStringTag||"@@toStringTag";function o(t,e,r,n){var i=e&&e.prototype instanceof s?e:s,a=Object.create(i.prototype),o=new A(n||[]);return a._invoke=function(a,o,s){var l=h;return function(t,e){if(l===d)throw new Error("Generator is already running");if(l===p){if("throw"===t)throw e;return T()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r){var n=k(r,s);if(n){if(n===b)continue;return n}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===h)throw l=p,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=d;var i=f(a,o,s);if("normal"===i.type){if(l=s.done?p:c,i.arg===b)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(l=p,s.method="throw",s.arg=i.arg)}}}(t,r,o),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=o;var h="suspendedStart",c="suspendedYield",d="executing",p="completed",b={};function s(){}function m(){}function g(){}var y={};y[i]=function(){return this};var v=Object.getPrototypeOf,_=v&&v(v(I([])));_&&_!==t&&u.call(_,i)&&(y=_);var w=g.prototype=s.prototype=Object.create(y);function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(l){var e;this._invoke=function(r,n){function t(){return new Promise(function(t,e){!function e(t,r,n,i){var a=f(l[t],l,r);if("throw"!==a.type){var o=a.arg,s=o.value;return s&&"object"==typeof s&&u.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,n,i)},function(t){e("throw",t,n,i)}):Promise.resolve(s).then(function(t){o.value=t,n(o)},function(t){return e("throw",t,n,i)})}i(a.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}}function k(t,e){var r=t.iterator[e.method];if(r===l){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=l,k(t,e),"throw"===e.method))return b;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,b;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=l),e.delegate=null,b):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function I(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(u.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=l,t.done=!0,t};return n.next=n}}return{next:T}}function T(){return{value:l,done:!0}}return m.prototype=w.constructor=g,g.constructor=m,g[n]=m.displayName="GeneratorFunction",a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,n in t||(t[n]="GeneratorFunction")),t.prototype=Object.create(w),t},a.awrap=function(t){return{__await:t}},x(E.prototype),E.prototype[r]=function(){return this},a.AsyncIterator=E,a.async=function(t,e,r,n){var i=new E(o(t,e,r,n));return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},x(w),w[n]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},a.keys=function(r){var n=[];for(var t in r)n.push(t);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=l)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return a.type="throw",a.arg=r,n.next=t,e&&(n.method="next",n.arg=l),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],a=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var o=u.call(i,"catchLoc"),s=u.call(i,"finallyLoc");if(o&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=l),b}},a}("object"==typeof e?e.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},{}],333:[function(t,e,r){var n=t("buffer"),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,r),r.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.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},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:47}],334:[function(t,e,r){e.exports=n;var f=t("events").EventEmitter;function n(){f.call(this)}t("inherits")(n,f),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",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(t){if(u(),0===f.listenerCount(this,"error"))throw t}function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",l),e.on("error",l),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{events:239,inherits:254,"readable-stream/duplex.js":317,"readable-stream/passthrough.js":328,"readable-stream/readable.js":329,"readable-stream/transform.js":330,"readable-stream/writable.js":331}],335:[function(r,t,i){(function(l){var u=r("./lib/request"),t=r("./lib/response"),f=r("xtend"),e=r("builtin-status-codes"),h=r("url"),n=i;n.request=function(t,e){t="string"==typeof t?h.parse(t):f(t);var r=-1===l.location.protocol.search(/^https?:$/)?"http:":"",n=t.protocol||r,i=t.hostname||t.host,a=t.port,o=t.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),t.url=(i?n+"//"+i:"")+(a?":"+a:"")+o,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var s=new u(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=u,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":337,"./lib/response":338,"builtin-status-codes":49,url:359,xtend:368}],336:[function(t,e,a){(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}a.fetch=i(t.fetch)&&i(t.ReadableStream),a.writableStream=i(t.WritableStream),a.abortController=i(t.AbortController),a.arraybuffer=a.fetch||n("arraybuffer"),a.msstream=!a.fetch&&n("ms-stream"),a.mozchunkedarraybuffer=!a.fetch&&n("moz-chunked-arraybuffer"),a.overrideMimeType=a.fetch||!!r()&&i(r().overrideMimeType),e=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{}],337:[function(s,c,t){(function(l,u,i){var f=s("./capability"),t=s("inherits"),e=s("./response"),a=s("readable-stream"),r=e.IncomingMessage,h=e.readyStates;var n=c.exports=function(e){var t,r=this;a.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&&!f.abortController)t=!(n=!1);else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!f.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 f.fetch&&e?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&t?"arraybuffer":"text"}(t,n),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};t(n,a.Writable),n.prototype.setHeader=function(t,e){var r=t.toLowerCase();-1===o.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 a=null;if(f.abortController){var o=new AbortController;a=o.signal,e._fetchAbortController=o,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=u.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}u.fetch(e._opts.url,{method:e._opts.method,headers:i,body:r||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:a}).then(function(t){e._fetchResponse=t,e._connect()},function(t){u.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var s=e._xhr=new u.XMLHttpRequest;try{s.open(e._opts.method,e._opts.url,!0)}catch(t){return void l.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 l.nextTick(function(){e.emit("error",t)})}}}},n.prototype._onXHRProgress=function(){!function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}}(this._xhr)||this._destroyed||(this._response||this._connect(),this._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(){this._destroyed=!0,u.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},n.prototype.end=function(t,e,r){"function"==typeof t&&(r=t,t=void 0),a.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 o=["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":336,"./response":338,_process:312,buffer:47,inherits:254,"readable-stream":353}],338:[function(r,t,n){(function(u,f,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(){u.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 a=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(){f.clearTimeout(n),i._destroyed||i.push(null)},abort:function(t){i._destroyed||i.emit("error",t)}});try{return void e.body.pipeTo(a).catch(function(t){f.clearTimeout(n),i._destroyed||i.emit("error",t)})}catch(t){}}var o=e.body.getReader();!function e(){o.read().then(function(t){if(!i._destroyed){if(t.done)return f.clearTimeout(n),void i.push(null);i.push(h.from(t.value)),e()}}).catch(function(t){f.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 l=s.match(/;\s*charset=([^;])(;|$)/);l&&(i._charset=l[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),a=0;a<n.length;a++)i[a]=255&n.charCodeAt(a);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 o=new f.MSStreamReader;o.onprogress=function(){o.result.byteLength>t._pos&&(t.push(h.from(new Uint8Array(o.result.slice(t._pos)))),t._pos=o.result.byteLength)},o.onload=function(){t.push(null)},o.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":336,_process:312,buffer:47,inherits:254,"readable-stream":353}],339:[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 o(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(o(e,"type"));else{var a=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(a," ").concat(n," ").concat(o(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},{}],340:[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:312}],341:[function(f,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=f("./_stream_readable"),n=f("./_stream_writable");f("inherits")(s,r);for(var i=e(n.prototype),a=0;a<i.length;a++){var o=i[a];s.prototype[o]||(s.prototype[o]=n.prototype[o])}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",l)))}function l(){this._writableState.ended||t.nextTick(u,this)}function u(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,f("_process"))},{"./_stream_readable":343,"./_stream_writable":345,_process:312,inherits:254}],342:[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":344,inherits:254}],343:[function(U,z,t){(function(p,t){"use strict";var n;(z.exports=x).ReadableState=w;function b(t,e){return t.listeners(e).length}U("events").EventEmitter;var i=U("./internal/streams/stream"),s=U("buffer").Buffer,l=t.Uint8Array||function(){};var m,e=U("util");m=e&&e.debuglog?e.debuglog("stream"):function(){};var a,r,o=U("./internal/streams/buffer_list"),u=U("./internal/streams/destroy"),f=U("./internal/streams/state").getHighWaterMark,h=U("../errors").codes,c=h.ERR_INVALID_ARG_TYPE,d=h.ERR_STREAM_PUSH_AFTER_EOF,g=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,v=U("../experimentalWarning").emitExperimentalWarning;U("inherits")(x,i);var _=["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=f(this,t,"readableHighWaterMark",r),this.buffer=new o,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&&(a=a||U("string_decoder/").StringDecoder,this.decoder=new a(t.encoding),this.encoding=t.encoding)}function x(t){if(n=n||U("./_stream_duplex"),!(this instanceof x))return new x(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 E(t,e,r,n,i){m("readableAddChunk",e);var a,o=t._readableState;if(null===e)o.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,o);else if(i||(a=function(t,e){var r;(function(t){return s.isBuffer(t)||t instanceof l})(e)||"string"==typeof e||void 0===e||t.objectMode||(r=new c("chunk",["string","Buffer","Uint8Array"],e));return r}(o,e)),a)t.emit("error",a);else if(o.objectMode||e&&0<e.length)if("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)o.endEmitted?t.emit("error",new y):k(t,o,e,!0);else if(o.ended)t.emit("error",new d);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?k(t,o,e,!1):T(t,o)):k(t,o,e,!1)}else n||(o.reading=!1,T(t,o));return!o.ended&&(o.length<o.highWaterMark||0===o.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(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),x.prototype.destroy=u.destroy,x.prototype._undestroy=u.undestroy,x.prototype._destroy=function(t,e){e(t)},x.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),E(this,t,e,!1,r)},x.prototype.unshift=function(t){return E(this,t,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(t){return a=a||U("string_decoder/").StringDecoder,this._readableState.decoder=new a(t),this._readableState.encoding=this._readableState.decoder.encoding,this};var j=8388608;function S(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 j<=t?t=j:(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||(m("emitReadable",e.flowing),e.emittedReadable=!0,p.nextTick(I,t))}function I(t){var e=t._readableState;m("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(m("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function R(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 P(t){m("readable nexttick read 0"),t.read(0)}function M(t,e){m("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(m("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;m("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,p.nextTick(D,e,t))}function D(t,e){m("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function N(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}x.prototype.read=function(t){m("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 m("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):A(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&B(this),null;var n,i=e.needReadable;return m("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&m("length less than watermark",i=!0),e.ended||e.reading?m("reading or ended",i=!1):i&&(m("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=S(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},x.prototype._read=function(t){this.emit("error",new g("_read()"))},x.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,m("pipe count=%d opts=%j",i.pipesCount,t);var e=(!t||!1!==t.end)&&r!==p.stdout&&r!==p.stderr?o:d;function a(t,e){m("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,m("cleanup"),r.removeListener("close",h),r.removeListener("finish",c),r.removeListener("drain",s),r.removeListener("error",f),r.removeListener("unpipe",a),n.removeListener("end",o),n.removeListener("end",d),n.removeListener("data",u),l=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||s())}function o(){m("onend"),r.end()}i.endEmitted?p.nextTick(e):n.once("end",e),r.on("unpipe",a);var s=function(e){return function(){var t=e._readableState;m("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&b(e,"data")&&(t.flowing=!0,L(e))}}(n);r.on("drain",s);var l=!1;function u(t){m("ondata");var e=r.write(t);m("dest.write",e),!1===e&&((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==N(i.pipes,r))&&!l&&(m("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function f(t){m("onerror",t),d(),r.removeListener("error",f),0===b(r,"error")&&r.emit("error",t)}function h(){r.removeListener("finish",c),d()}function c(){m("onfinish"),r.removeListener("close",h),d()}function d(){m("unpipe"),n.unpipe(r)}return n.on("data",u),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",f),r.once("close",h),r.once("finish",c),r.emit("pipe",n),i.flowing||(m("pipe resume"),n.resume()),r},x.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 a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=N(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},x.prototype.addListener=x.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,m("on readable",n.length,n.reading),n.length?A(this):n.reading||p.nextTick(P,this))),r},x.prototype.removeListener=function(t,e){var r=i.prototype.removeListener.call(this,t,e);return"readable"===t&&p.nextTick(R,this),r},x.prototype.removeAllListeners=function(t){var e=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||p.nextTick(R,this),e},x.prototype.resume=function(){var t=this._readableState;return t.flowing||(m("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,p.nextTick(M,t,e))}(this,t)),t.paused=!1,this},x.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var r=this,n=this._readableState,i=!1;for(var t in e.on("end",function(){if(m("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){m("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 a=0;a<_.length;a++)e.on(_[a],this.emit.bind(this,_[a]));return this._read=function(t){m("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return v("Readable[Symbol.asyncIterator]"),void 0===r&&(r=U("./internal/streams/async_iterator")),r(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),x._fromList=C,Object.defineProperty(x.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":339,"../experimentalWarning":340,"./_stream_duplex":341,"./internal/streams/async_iterator":346,"./internal/streams/buffer_list":347,"./internal/streams/destroy":348,"./internal/streams/state":351,"./internal/streams/stream":352,_process:312,buffer:47,events:239,inherits:254,"string_decoder/":354,util:32}],344:[function(t,e,r){"use strict";e.exports=u;var n=t("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=t("./_stream_duplex");function u(t){if(!(this instanceof u))return new u(t);l.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 a);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",f)}function f(){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 o;return t.push(null)}t("inherits")(u,l),u.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},u.prototype._transform=function(t,e,r){r(new i("_transform()"))},u.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)}},u.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))},u.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,function(t){e(t)})}},{"../errors":339,"./_stream_duplex":341,inherits:254}],345:[function(T,O,t){(function(o,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=x).WritableState=w;var e={deprecate:T("util-deprecate")},r=T("./internal/streams/stream"),f=T("buffer").Buffer,s=t.Uint8Array||function(){};var n,a=T("./internal/streams/destroy"),l=T("./internal/streams/state").getHighWaterMark,u=T("../errors").codes,c=u.ERR_INVALID_ARG_TYPE,d=u.ERR_METHOD_NOT_IMPLEMENTED,p=u.ERR_MULTIPLE_CALLBACK,b=u.ERR_STREAM_CANNOT_PIPE,m=u.ERR_STREAM_DESTROYED,g=u.ERR_STREAM_NULL_VALUES,y=u.ERR_STREAM_WRITE_AFTER_END,v=u.ERR_UNKNOWN_ENCODING;function _(){}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=l(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?(o.nextTick(i,n),o.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 a=S(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||j(t,r),n?o.nextTick(k,t,r,a,i):k(t,r,a,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 x(t){var e=this instanceof(i=i||T("./_stream_duplex"));if(!e&&!n.call(x,this))return new x(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 E(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new m("write")):r?t._writev(i,e.onwrite):t._write(i,a,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 j(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)(i[o]=r).isBuf||(s=!1),r=r.next,o+=1;i.allBuffers=s,E(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new h(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback;if(E(t,e,!1,e.objectMode?1:l.length,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function S(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=S(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,o.nextTick(A,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}T("inherits")(x,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(x,Symbol.hasInstance,{value:function(t){return!!n.call(this,t)||this===x&&(t&&t._writableState instanceof w)}})):n=function(t){return t instanceof this},x.prototype.pipe=function(){this.emit("error",new b)},x.prototype.write=function(t,e,r){var n=this._writableState,i=!1,a=!n.objectMode&&function(t){return f.isBuffer(t)||t instanceof s}(t);return a&&!f.isBuffer(t)&&(t=function(t){return f.from(t)}(t)),"function"==typeof e&&(r=e,e=null),e=a?"buffer":e||n.defaultEncoding,"function"!=typeof r&&(r=_),n.ending?function(t,e){var r=new y;t.emit("error",r),o.nextTick(e,r)}(this,r):(a||function(t,e,r,n){var i;return null===r?i=new g:"string"==typeof r||e.objectMode||(i=new c("chunk",["string","Buffer"],r)),!i||(t.emit("error",i),o.nextTick(n,i),!1)}(this,n,t,r))&&(n.pendingcb++,i=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=f.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else E(t,e,!1,s,n,i,a);return l}(this,n,a,t,e,r)),i},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||j(this,t))},x.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 v(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(t,e,r){r(new d("_write()"))},x.prototype._writev=null,x.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?o.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),x.prototype.destroy=a.destroy,x.prototype._undestroy=a.undestroy,x.prototype._destroy=function(t,e){e(t)}}).call(this,T("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0!==window?window:{})},{"../errors":339,"./_stream_duplex":341,"./internal/streams/destroy":348,"./internal/streams/state":351,"./internal/streams/stream":352,_process:312,buffer:47,inherits:254,"util-deprecate":362}],346:[function(n,m,t){(function(a){"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"),o=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),c=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[o];if(null!==e){var r=t[c].read();null!==r&&(t[f]=null,t[o]=null,t[s]=null,e(d(r,!1)))}}var e=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((r(t={get stream(){return this[c]},next:function(){var r=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(d(void 0,!0));if(this[c].destroyed)return new Promise(function(t,e){a.nextTick(function(){r[l]?e(r[l]):t(d(void 0,!0))})});var e,n=this[f];if(n)e=new Promise(function(r,n){return function(t,e){r.then(function(){n[u]?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[f]=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);m.exports=function(t){var e,n=Object.create(b,(r(e={},c,{value:t,writable:!0}),r(e,o,{value:null,writable:!0}),r(e,s,{value:null,writable:!0}),r(e,l,{value:null,writable:!0}),r(e,u,{value:t._readableState.endEmitted,writable:!0}),r(e,h,{value:function(t,e){var r=n[c].read();r?(n[f]=null,n[o]=null,n[s]=null,t(d(r,!1))):(n[o]=t,n[s]=e)},writable:!0}),e));return n[f]=null,i(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[f]=null,n[o]=null,n[s]=null,e(t)),void(n[l]=t)}var r=n[o];null!==r&&(n[f]=null,n[o]=null,r(d(void 0,!(n[s]=null)))),n[u]=!0}),t.on("readable",function(t){a.nextTick(p,t)}.bind(null,n)),n}}).call(this,n("_process"))},{"./end-of-stream":349,_process:312}],347:[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,a=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),a=this.head,o=0;a;)e=a.data,r=i,n=o,s.prototype.copy.call(e,r,n),o+=a.data.length,a=a.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,a=t>i.length?i.length:t;if(a===i.length?n+=i:n+=i.slice(0,t),0===(t-=a)){a===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=i.slice(a);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,a=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0===(t-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r).data=i.slice(a);break}++n}return this.length-=n,e},e[a]=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:47,util:32}],348:[function(t,e,r){(function(a){"use strict";function o(t,e){l(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function l(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||a.nextTick(l,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(a.nextTick(o,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e?(a.nextTick(s,r),e(t)):a.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:312}],349:[function(t,e,r){"use strict";var p=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function b(){}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||b);function i(){e.writable||c()}function a(){d=!(u=!1),f||n.call(e)}function o(t){n.call(e,t)}function s(){var t;return u&&!d?(e._readableState&&e._readableState.ended||(t=new p),n.call(e,t)):f&&!h?(e._writableState&&e._writableState.ended||(t=new p),n.call(e,t)):void 0}function l(){e.req.on("finish",c)}var u=r.readable||!1!==r.readable&&e.readable,f=r.writable||!1!==r.writable&&e.writable,h=e._writableState&&e._writableState.finished,c=function(){h=!(f=!1),u||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?l():e.on("request",l)):f&&!e._writableState&&(e.on("end",i),e.on("close",i)),e.on("end",a),e.on("finish",c),!1!==r.error&&e.on("error",o),e.on("close",s),function(){e.removeListener("complete",c),e.removeListener("abort",s),e.removeListener("request",l),e.req&&e.req.removeListener("finish",c),e.removeListener("end",i),e.removeListener("close",i),e.removeListener("finish",c),e.removeListener("end",a),e.removeListener("error",o),e.removeListener("close",s)}}},{"../../../errors":339}],350:[function(s,t,e){"use strict";var l;var r=s("../../../errors").codes,u=r.ERR_MISSING_ARGS,f=r.ERR_STREAM_DESTROYED;function h(t){if(t)throw t}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,a=function(t){return t.length?"function"!=typeof t[t.length-1]?h:t.pop():h}(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new u("streams");var o=n.map(function(t,e){var r=e<n.length-1;return function(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===l&&(l=s("./end-of-stream")),l(e,{readable:t,writable:r},function(t){if(t)return n(t);i=!0,n()});var a=!1;return function(t){if(!i&&!a)return a=!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"))}}(t,r,0<e,function(t){i=i||t,t&&o.forEach(c),r||(o.forEach(c),a(i))})});return n.reduce(d)}},{"../../../errors":339,"./end-of-stream":349}],351:[function(t,e,r){"use strict";var a=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 a(n?r:"highWaterMark",i);return Math.floor(i)}}},{"../../../errors":339}],352:[function(t,e,r){arguments[4][325][0].apply(r,arguments)},{dup:325,events:239}],353:[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":341,"./lib/_stream_passthrough.js":342,"./lib/_stream_readable.js":343,"./lib/_stream_transform.js":344,"./lib/_stream_writable.js":345,"./lib/internal/streams/end-of-stream.js":349,"./lib/internal/streams/pipeline.js":350}],354:[function(t,e,r){arguments[4][327][0].apply(r,arguments)},{dup:327,"safe-buffer":333}],355:[function(l,t,u){(function(t,e){var n=l("process/browser.js").nextTick,r=Function.prototype.apply,i=Array.prototype.slice,a={},o=0;function s(t,e){this._id=t,this._clearFn=e}u.setTimeout=function(){return new s(r.call(setTimeout,window,arguments),clearTimeout)},u.setInterval=function(){return new s(r.call(setInterval,window,arguments),clearInterval)},u.clearTimeout=u.clearInterval=function(t){t.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},u.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},u.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},u._unrefActive=u.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},u.setImmediate="function"==typeof t?t:function(t){var e=o++,r=!(arguments.length<2)&&i.call(arguments,1);return a[e]=!0,n(function(){a[e]&&(r?t.apply(null,r):t.call(null),u.clearImmediate(e))}),e},u.clearImmediate="function"==typeof e?e:function(t){delete a[t]}}).call(this,l("timers").setImmediate,l("timers").clearImmediate)},{"process/browser.js":312,timers:355}],356:[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=y,A.addLast=t,A.addFirst=e,A.removeLast=n,A.removeFirst=i,A.insert=a,A.removeAt=o,A.replaceAt=s,A.getIn=h,A.set=l,A.setIn=c,A.update=f,A.updateIn=d,A.merge=w,A.mergeDeep=x,A.mergeIn=E,A.omit=k,A.addDefaults=j;var b="INVALID_ARGS";function m(t){throw new Error(t)}function g(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var u={}.hasOwnProperty;function y(t){if(Array.isArray(t))return t.slice();for(var e=g(t),r={},n=0;n<e.length;n++){var i=e[n];r[i]=t[i]}return r}function v(t,e,r){var n=r;null==n&&m("production"!==p.env.NODE_ENV?"At least one object should be provided to merge()":b);for(var i=!1,a=arguments.length,o=Array(3<a?a-3:0),s=3;s<a;s++)o[s-3]=arguments[s];for(var l=0;l<o.length;l++){var u=o[l];if(null!=u){var f=g(u);if(f.length)for(var h=0;h<=f.length;h++){var c=f[h];if(!t||void 0===n[c]){var d=u[c];e&&_(n[c])&&_(d)&&(d=v(t,e,n[c],d)),void 0!==d&&d!==n[c]&&(i||(i=!0,n=y(n)),n[c]=d)}}}}return n}function _(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 a(t,e,r){return t.slice(0,e).concat(Array.isArray(r)?r:[r]).concat(t.slice(e))}function o(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),a=0;a<n;a++)i[a]=t[a];return i[e]=r,i}function h(t,e){if(Array.isArray(e)||m("production"!==p.env.NODE_ENV?"A path array should be provided when calling getIn()":b),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 l(t,e,r){var n=null==t?"number"==typeof e?[]:{}:t;if(n[e]===r)return n;var i=y(n);return i[e]=r,i}function c(t,e,r){return e.length?function t(e,r,n,i){var a=void 0,o=r[i];a=i===r.length-1?n:t(_(e)&&_(e[o])?e[o]:"number"==typeof r[i+1]?[]:{},r,n,i+1);return l(e,o,a)}(t,e,r,0):r}function f(t,e,r){return l(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,a){for(var o=arguments.length,s=Array(6<o?o-6:0),l=6;l<o;l++)s[l-6]=arguments[l];return s.length?v.call.apply(v,[null,!1,!1,t,e,r,n,i,a].concat(s)):v(!1,!1,t,e,r,n,i,a)}function x(t,e,r,n,i,a){for(var o=arguments.length,s=Array(6<o?o-6:0),l=6;l<o;l++)s[l-6]=arguments[l];return s.length?v.call.apply(v,[null,!1,!0,t,e,r,n,i,a].concat(s)):v(!1,!0,t,e,r,n,i,a)}function E(t,e,r,n,i,a,o){var s=h(t,e);null==s&&(s={});for(var l=arguments.length,u=Array(7<l?l-7:0),f=7;f<l;f++)u[f-7]=arguments[f];return c(t,e,u.length?v.call.apply(v,[null,!1,!1,s,r,n,i,a,o].concat(u)):v(!1,!1,s,r,n,i,a,o))}function k(t,e){for(var r=Array.isArray(e)?e:[e],n=!1,i=0;i<r.length;i++)if(u.call(t,r[i])){n=!0;break}if(!n)return t;for(var a={},o=g(t),s=0;s<o.length;s++){var l=o[s];0<=r.indexOf(l)||(a[l]=t[l])}return a}function j(t,e,r,n,i,a){for(var o=arguments.length,s=Array(6<o?o-6:0),l=6;l<o;l++)s[l-6]=arguments[l];return s.length?v.call.apply(v,[null,!0,!1,t,e,r,n,i,a].concat(s)):v(!0,!1,t,e,r,n,i,a)}var S={clone:y,addLast:t,addFirst:e,removeLast:n,removeFirst:i,insert:a,removeAt:o,replaceAt:s,getIn:h,set:l,setIn:c,update:f,updateIn:d,merge:w,mergeDeep:x,mergeIn:E,omit:k,addDefaults:j};A.default=S}).call(this,t("_process"))},{_process:312}],357:[function(t,F,e){!function(u){var l=/^\s+/,f=/\s+$/,n=0,o=u.round,h=u.min,c=u.max,t=u.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,a=null,o=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(l,"").replace(f,"").toLowerCase();var e,r=!1;if(S[t])t=S[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:R(e[1]),g:R(e[2]),b:R(e[3]),a:C(e[4]),format:r?"name":"hex8"};if(e=U.hex6.exec(t))return{r:R(e[1]),g:R(e[2]),b:R(e[3]),format:r?"name":"hex"};if(e=U.hex4.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),a:C(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=U.hex3.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==typeof t&&(z(t.r)&&z(t.g)&&z(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),o=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):z(t.h)&&z(t.s)&&z(t.v)?(n=M(t.s),i=M(t.v),e=function(t,e,r){t=6*T(t,360),e=T(e,100),r=T(r,100);var n=u.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),l=n%6;return{r:255*[r,o,a,a,s,r][l],g:255*[s,r,r,o,a,a][l],b:255*[a,a,s,r,r,o][l]}}(t.h,n,i),o=!0,s="hsv"):z(t.h)&&z(t.s)&&z(t.l)&&(n=M(t.s),a=M(t.l),e=function(t,e,r){var n,i,a;function o(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=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(t.h,n,a),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a));return r=I(r),{ok:o,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=o(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(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,a=c(t,e,r),o=h(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=.5<s?l/(2-a-o):l/(a+o),a){case t:n=(e-r)/l+(e<r?6:0);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,l:s}}function a(t,e,r){t=T(t,255),e=T(e,255),r=T(r,255);var n,i,a=c(t,e,r),o=h(t,e,r),s=a,l=a-o;if(i=0===a?0:l/a,a==o)n=0;else{switch(a){case t:n=(e-r)/l+(e<r?6:0);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,v:s}}function e(t,e,r,n){var i=[P(o(t).toString(16)),P(o(e).toString(16)),P(o(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[P(L(n)),P(o(t).toString(16)),P(o(e).toString(16)),P(o(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 b(t){return d(t).desaturate(100)}function m(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 g(t,e){e=0===e?0:e||10;var r=d(t).toRgb();return r.r=c(0,h(255,r.r-o(-e/100*255))),r.g=c(0,h(255,r.g-o(-e/100*255))),r.b=c(0,h(255,r.b-o(-e/100*255))),d(r)}function y(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 v(t,e){var r=d(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,d(r)}function _(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 x(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 E(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,a=[d(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(d(n));return a}function j(t,e){e=e||6;for(var r=d(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(d({h:n,s:i,v:a})),a=(a+s)%1;return o}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:u.pow((.055+t)/1.055,2.4))+.7152*(e<=.03928?e/12.92:u.pow((.055+e)/1.055,2.4))+.0722*(r<=.03928?r/12.92:u.pow((.055+r)/1.055,2.4))},setAlpha:function(t){return this._a=I(t),this._roundA=o(100*this._a)/100,this},toHsv:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=a(this._r,this._g,this._b),e=o(360*t.h),r=o(100*t.s),n=o(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=o(360*t.h),r=o(100*t.s),n=o(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 a=[P(o(t).toString(16)),P(o(e).toString(16)),P(o(r).toString(16)),P(L(n))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(100*T(this._r,255))+"%",g:o(100*T(this._g,255))+"%",b:o(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+o(100*T(this._r,255))+"%, "+o(100*T(this._g,255))+"%, "+o(100*T(this._b,255))+"%)":"rgba("+o(100*T(this._r,255))+"%, "+o(100*T(this._g,255))+"%, "+o(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(m,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(r,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(v,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(_,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(x,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]:M(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(),a=r/100;return d({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},d.readability=function(t,e){var r=d(t),n=d(e);return(u.max(r.getLuminance(),n.getLuminance())+.05)/(u.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(t,e,r){var n,i,a=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<=a;break;case"AAlarge":i=3<=a;break;case"AAAsmall":i=7<=a}return i},d.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u<e.length;u++)l<(n=d.readability(t,e[u]))&&(l=n,s=d(e[u]));return d.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,d.mostReadable(t,["#fff","#000"],r))};var S=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}(S);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),u.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function O(t){return h(1,c(0,t))}function R(t){return parseInt(t,16)}function P(t){return 1==t.length?"0"+t:""+t}function M(t){return t<=1&&(t=100*t+"%"),t}function L(t){return u.round(255*parseFloat(t)).toString(16)}function C(t){return R(t)/255}var B,D,N,U=(D="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",N="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+N),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 z(t){return!!U.CSS_UNIT.exec(t)}void 0!==F&&F.exports?F.exports=d:window.tinycolor=d}(Math)},{}],358:[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*$/,"")}},{}],359:[function(t,e,r){"use strict";var M=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=a,r.resolve=function(t,e){return a(t,!1,!0).resolve(e)},r.resolveObject=function(t,e){return t?a(t,!1,!0).resolveObject(e):e},r.format=function(t){L.isString(t)&&(t=a(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"]),D=["'"].concat(i),N=["%","/","?",";","#"].concat(D),U=["/","?","#"],z=/^[+a-z0-9A-Z_-]{0,63}$/,F=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,H={javascript:!0,"javascript:":!0},G={javascript:!0,"javascript:":!0},q={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W=t("querystring");function a(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("#")?"?":"#",a=t.split(i);a[0]=a[0].replace(/\\/g,"/");var o=t=a.join(i);if(o=o.trim(),!r&&1===t.split("#").length){var s=B.exec(o);if(s)return this.path=o,this.href=o,this.pathname=s[1],s[2]?(this.search=s[2],this.query=e?W.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var l=C.exec(o);if(l){var u=(l=l[0]).toLowerCase();this.protocol=u,o=o.substr(l.length)}if(r||l||o.match(/^\/\/[^@\/]+@[^@\/]+/)){var f="//"===o.substr(0,2);!f||l&&G[l]||(o=o.substr(2),this.slashes=!0)}if(!G[l]&&(f||l&&!q[l])){for(var h,c,d=-1,p=0;p<U.length;p++){-1!==(b=o.indexOf(U[p]))&&(-1===d||b<d)&&(d=b)}-1!==(c=-1===d?o.lastIndexOf("@"):o.lastIndexOf("@",d))&&(h=o.slice(0,c),o=o.slice(c+1),this.auth=decodeURIComponent(h)),d=-1;for(p=0;p<N.length;p++){var b;-1!==(b=o.indexOf(N[p]))&&(-1===d||b<d)&&(d=b)}-1===d&&(d=o.length),this.host=o.slice(0,d),o=o.slice(d),this.parseHost(),this.hostname=this.hostname||"";var m="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!m)for(var g=this.hostname.split(/\./),y=(p=0,g.length);p<y;p++){var v=g[p];if(v&&!v.match(z)){for(var _="",w=0,x=v.length;w<x;w++)127<v.charCodeAt(w)?_+="x":_+=v[w];if(!_.match(z)){var E=g.slice(0,p),k=g.slice(p+1),j=v.match(F);j&&(E.push(j[1]),k.unshift(j[2])),k.length&&(o="/"+k.join(".")+o),this.hostname=E.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),m||(this.hostname=M.toASCII(this.hostname));var S=this.port?":"+this.port:"",A=this.hostname||"";this.host=A+S,this.href+=this.host,m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!H[u])for(p=0,y=D.length;p<y;p++){var I=D[p];if(-1!==o.indexOf(I)){var T=encodeURIComponent(I);T===I&&(T=escape(I)),o=o.split(I).join(T)}}var O=o.indexOf("#");-1!==O&&(this.hash=o.substr(O),o=o.slice(0,O));var R=o.indexOf("?");if(-1!==R?(this.search=o.substr(R),this.query=o.substr(R+1),e&&(this.query=W.parse(this.query)),o=o.slice(0,R)):e&&(this.search="",this.query={}),o&&(this.pathname=o),q[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){S=this.pathname||"";var P=this.search||"";this.path=S+P}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,a="";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&&(a=W.stringify(this.query));var o=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||q[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i=i||"",n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),e+i+(r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(o=o.replace("#","%23"))+n},A.prototype.resolve=function(t){return this.resolveObject(a(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 a=n[i];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var o=Object.keys(t),s=0;s<o.length;s++){var l=o[s];"protocol"!==l&&(r[l]=t[l])}return q[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!q[t.protocol]){for(var u=Object.keys(t),f=0;f<u.length;f++){var h=u[f];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 b=r.pathname&&"/"===r.pathname.charAt(0),m=t.host||t.pathname&&"/"===t.pathname.charAt(0),g=m||b||r.host&&t.pathname,y=g,v=r.pathname&&r.pathname.split("/")||[],_=(c=t.pathname&&t.pathname.split("/")||[],r.protocol&&!q[r.protocol]);if(_&&(r.hostname="",r.port=null,r.host&&(""===v[0]?v[0]=r.host:v.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),g=g&&(""===c[0]||""===v[0])),m)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,v=c;else if(c.length)(v=v||[]).pop(),v=v.concat(c),r.search=t.search,r.query=t.query;else if(!L.isNullOrUndefined(t.search)){if(_)r.hostname=r.host=v.shift(),(j=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.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(!v.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=v.slice(-1)[0],x=(r.host||t.host||1<v.length)&&("."===w||".."===w)||""===w,E=0,k=v.length;0<=k;k--)"."===(w=v[k])?v.splice(k,1):".."===w?(v.splice(k,1),E++):E&&(v.splice(k,1),E--);if(!g&&!y)for(;E--;)v.unshift("..");!g||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),x&&"/"!==v.join("/").substr(-1)&&v.push("");var j,S=""===v[0]||v[0]&&"/"===v[0].charAt(0);_&&(r.hostname=r.host=S?"":v.length?v.shift():"",(j=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.shift()));return(g=g||r.host&&v.length)&&!S&&v.unshift(""),v.length?r.pathname=v.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":360,punycode:313,querystring:316}],360:[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}}},{}],361:[function(o,s,t){(function(t){function P(){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 E(t,e){for(var r,n,i=0,a=[],o=16;0<o&&!t[o-1];)o--;a.push({children:[],index:0});var s,l=a[0];for(r=0;r<o;r++){for(n=0;n<t[r];n++){for((l=a.pop()).children[l.index]=e[i];0<l.index;)l=a.pop();for(l.index++,a.push(l);a.length<=r;)a.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;i++}r+1<o&&(a.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s)}return a[0].children}function k(r,n,i,t,e,o,s,a,l,u){function f(){if(0<j)return k>>--j&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 N("Found DNL marker (0xFFDC) while parsing scan data",e)}throw new D("unexpected marker "+(k<<8|t).toString(16))}}return k>>>(j=7)}function h(t){for(;;){if("number"==typeof(t=t[f()]))return t;if("object"!==(void 0===t?"undefined":B(t)))throw new D("invalid huffman sequence")}}function c(t){for(var e=0;0<t;)e=e<<1|f(),t--;return e}function d(t){if(1===t)return 1===f()?1:-1;var e=c(t);return 1<<t-1<=e?e:e+(-1<<t)+1}for(var p,b,m,g,y,v,_,w=9<arguments.length&&void 0!==u&&u,x=i.P,E=n,k=0,j=0,S=0,A=0,I=t.length,T=i.S?0===o?0===a?function(t,e){var r=h(t.D);r=0===r?0:d(r)<<l,t.a[e]=t.m+=r}:function(t,e){t.a[e]|=f()<<l}:0===a?function(t,e){if(0<S)S--;else for(var r=o;r<=s;){var n=h(t.o),i=15&n;if(n>>=4,0==i){if(n<15){S=c(n)+(1<<n)-1;break}r+=16}else r+=n,t.a[e+C[r]]=d(i)*(1<<l),r++}}:function(t,e){for(var r,n=o,i=0;n<=s;){r=e+C[n];var a=t.a[r]<0?-1:1;switch(A){case 0:if(r=15&(i=h(t.o)),i>>=4,0===r)A=i<15?(S=c(i)+(1<<i),4):(i=16,1);else{if(1!==r)throw new D("invalid ACn encoding");p=d(r),A=i?2:3}continue;case 1:case 2:t.a[r]?t.a[r]+=a*(f()<<l):0===--i&&(A=2===A?3:0);break;case 3:t.a[r]?t.a[r]+=a*(f()<<l):(t.a[r]=p<<l,A=0);break;case 4:t.a[r]&&(t.a[r]+=a*(f()<<l))}n++}4!==A||0===--S&&(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,R=1===I?t[0].c*t[0].l:x*i.O;O<R;){var P=e?Math.min(R-O,e):R;for(b=0;b<I;b++)t[b].m=0;if(S=0,1===I){var M=t[0];for(y=0;y<P;y++)T(M,64*((M.c+1)*(O/M.c|0)+O%M.c)),O++}else for(y=0;y<P;y++){for(b=0;b<I;b++)for(v=(M=t[b]).h,_=M.j,m=0;m<_;m++)for(g=0;g<v;g++)T(M,64*((M.c+1)*((O/x|0)*M.j+m)+(O%x*M.h+g)));O++}if(j=0,(M=L(r,n))&&M.f&&((0,_util.warn)("decodeScan - unexpected MCU data, current marker is: "+M.f),n=M.offset),!(M=M&&M.F)||M<=65280)throw new D("marker was not found");if(!(65488<=M&&M<=65495))break;n+=2}return(M=L(r,n))&&M.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+M.f),n=M.offset),n-E}function j(t,e){for(var r=e.c,n=e.l,i=new Int16Array(64),a=0;a<n;a++)for(var o=0;o<r;o++){var s=64*((e.c+1)*a+o),l=i,u=e.G,f=e.a;if(!u)throw new D("missing required Quantization Table.");for(var h=0;h<64;h+=8){var c=f[s+h],d=f[s+h+1],p=f[s+h+2],b=f[s+h+3],m=f[s+h+4],g=f[s+h+5],y=f[s+h+6],v=f[s+h+7];if(c*=u[h],0==(d|p|b|m|g|y|v))c=5793*c+512>>10,l[h]=c,l[h+1]=c,l[h+2]=c,l[h+3]=c,l[h+4]=c,l[h+5]=c,l[h+6]=c,l[h+7]=c;else{d*=u[h+1],p*=u[h+2],b*=u[h+3],m*=u[h+4],g*=u[h+5];var _=5793*c+128>>8,w=5793*m+128>>8,x=p,E=y*=u[h+6];w=(_=_+w+1>>1)-w,c=3784*x+1567*E+128>>8,x=1567*x-3784*E+128>>8,g=(m=(m=2896*(d-(v*=u[h+7]))+128>>8)+(g<<=4)+1>>1)-g,b=(v=(v=2896*(d+v)+128>>8)+(b<<=4)+1>>1)-b,E=(_=_+(E=c)+1>>1)-E,x=(w=w+x+1>>1)-x,c=2276*m+3406*v+2048>>12,m=3406*m-2276*v+2048>>12,v=c,c=799*b+4017*g+2048>>12,b=4017*b-799*g+2048>>12,g=c,l[h]=_+v,l[h+7]=_-v,l[h+1]=w+g,l[h+6]=w-g,l[h+2]=x+b,l[h+5]=x-b,l[h+3]=E+m,l[h+4]=E-m}}for(u=0;u<8;++u)c=l[u],0==((d=l[u+8])|(p=l[u+16])|(b=l[u+24])|(m=l[u+32])|(g=l[u+40])|(y=l[u+48])|(v=l[u+56]))?(c=(c=5793*c+8192>>14)<-2040?0:2024<=c?255:c+2056>>4,f[s+u]=c,f[s+u+8]=c,f[s+u+16]=c,f[s+u+24]=c,f[s+u+32]=c,f[s+u+40]=c,f[s+u+48]=c,f[s+u+56]=c):(_=5793*c+2048>>12,w=5793*m+2048>>12,c=3784*(x=p)+1567*(E=y)+2048>>12,x=1567*x-3784*E+2048>>12,E=c,g=(m=(m=2896*(d-v)+2048>>12)+g+1>>1)-g,b=(v=(v=2896*(d+v)+2048>>12)+b+1>>1)-b,c=2276*m+3406*v+2048>>12,m=3406*m-2276*v+2048>>12,v=c,c=799*b+4017*g+2048>>12,b=4017*b-799*g+2048>>12,d=(w=(w=(_=4112+(_+w+1>>1))-w)+x+1>>1)+(g=c),y=w-g,g=(x=w-x)-b,c=(c=(_=_+E+1>>1)+v)<16?0:4080<=c?255:c>>4,d=d<16?0:4080<=d?255:d>>4,p=(p=x+b)<16?0:4080<=p?255:p>>4,b=(b=(E=_-E)+m)<16?0:4080<=b?255:b>>4,m=(m=E-m)<16?0:4080<=m?255:m>>4,g=g<16?0:4080<=g?255:g>>4,y=y<16?0:4080<=y?255:y>>4,v=(v=_-v)<16?0:4080<=v?255:v>>4,f[s+u]=c,f[s+u+8]=d,f[s+u+16]=p,f[s+u+24]=b,f[s+u+32]=m,f[s+u+40]=g,f[s+u+48]=y,f[s+u+56]=v)}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 a=t[e]<<8|t[e+1];if(65472<=a&&a<=65534)return{f:null,F:a,offset:e};for(var o=t[n]<<8|t[n+1];!(65472<=o&&o<=65534);){if(++n>=i)return null;o=t[n]<<8|t[n+1]}return{f:a.toString(16),F:o,offset:n}}var i,S,g,C,B,D,N,a;a={},"object"==typeof s?s.exports=a:self.UTIF=a,i="function"==typeof o?o("pako"):self.pako,S=a,g=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",D=r.constructor=r,(e.prototype=Error()).name="DNLMarkerError",N=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[a]<<8|e[a+1];return a+=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),a=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=a}t.P=e,t.O=r}var n=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).N,i=void 0===n?null:n,a=0,o=null,s=0;n=[];var l,u,f=[],h=[],c=t();if(65496!==c)throw new D("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=(l=void 0,l=t(),(u=L(e,l=a+l-2,a))&&u.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+u.f),l=u.offset),l=e.subarray(a,l),a+=l.length,l);65518===c&&65===d[0]&&100===d[1]&&111===d[2]&&98===d[3]&&101===d[4]&&(o={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()+a-2;for(var p;a<c;){var b=e[a++],m=new Uint16Array(64);if(0==b>>4)for(d=0;d<64;d++)m[p=C[d]]=e[a++];else{if(1!=b>>4)throw new D("DQT - invalid table spec");for(d=0;d<64;d++)m[p=C[d]]=t()}n[15&b]=m}break;case 65472:case 65473:case 65474:if(g)throw new D("Only single frame JPEGs supported");t();var g={};for(g.X=65473===c,g.S=65474===c,g.precision=e[a++],c=t(),g.g=i||c,g.v=t(),g.b=[],g.C={},d=e[a++],c=m=b=0;c<d;c++){p=e[a];var y=e[a+1]>>4,v=15&e[a+1];b<y&&(b=y),m<v&&(m=v),y=g.b.push({h:y,j:v,T:e[a+2],G:null}),g.C[p]=y-1,a+=3}g.s=b,g.u=m,r(g);break;case 65476:for(p=t(),c=2;c<p;){for(b=e[a++],m=new Uint8Array(16),d=y=0;d<16;d++,a++)y+=m[d]=e[a];for(v=new Uint8Array(y),d=0;d<y;d++,a++)v[d]=e[a];c+=17+y,(0==b>>4?h:f)[15&b]=E(m,v)}break;case 65501:t();var _=t();break;case 65498:for(d=1==++s&&!i,t(),b=e[a++],p=[],c=0;c<b;c++){m=g.C[e[a++]];var w=g.b[m];m=e[a++],w.D=h[m>>4],w.o=f[15&m],p.push(w)}c=e[a++],b=e[a++],m=e[a++];try{var x=k(e,a,g,p,_,c,b,m>>4,15&m,d);a+=x}catch(t){if(t instanceof N)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:a+=4;break;case 65535:255!==e[a]&&a--;break;default:if(255===e[a-3]&&192<=e[a-2]&&e[a-2]<=254)a-=3;else{if(!(d=L(e,a-2))||!d.f)throw new D("unknown marker "+c.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+d.f),a=d.offset}}c=t()}for(this.width=g.v,this.height=g.g,this.A=o,this.b=[],c=0;c<g.b.length;c++)(_=n[(w=g.b[c]).T])&&(w.G=_),this.b.push({R:j(0,w),U:w.h/g.s,V:w.j/g.u,c:w.c,l:w.l});this.i=this.b.length},L:function(t,e){var r,n,i=this.width/t,a=this.height/e,o=this.b.length,s=t*e*o,l=new Uint8ClampedArray(s),u=new Uint32Array(t);for(n=0;n<o;n++){var f=this.b[n],h=f.U*i,c=f.V*a,d=n,p=f.R,b=f.c+1<<3;for(r=0;r<t;r++)f=0|r*h,u[r]=(4294967288&f)<<3|7&f;for(h=0;h<e;h++)for(f=b*(4294967288&(f=0|h*c))|(7&f)<<3,r=0;r<t;r++)l[d]=p[f+u[r]],d+=o}if(a=this.M)for(n=0;n<s;)for(i=f=0;f<o;f++,n++,i+=2)l[n]=(l[n]*a[i]>>8)+a[i+1];return l},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,a=t.length;i<a;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,a=0,o=0,s=t.length;o<s;o+=4)e=t[o],r=t[o+1],n=t[o+2],i=t[o+3],t[a++]=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[a++]=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[a++]=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,a)},J:function(t){for(var e,r,n,i=0,a=t.length;i<a;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,a=0,o=0,s=t.length;o<s;o+=4)e=t[o]*(1/255),r=t[o+1]*(1/255),n=t[o+2]*(1/255),i=t[o+3]*(1/255),t[a++]=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[a++]=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[a++]=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,a)},getData:function(t,e,r){if(4<this.i)throw new D("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 a=t[i];e[n++]=a,e[n++]=a,e[n++]=a}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}},S.JpegDecoder=n,S.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 a in n)i[a]=n[a];var o=new Uint8Array(S.encode([i])),s=new Uint8Array(t),l=new Uint8Array(1e3+e*r*4);for(a=0;a<o.length;a++)l[a]=o[a];for(a=0;a<s.length;a++)l[1e3+a]=s[a];return l.buffer},S.encode=function(t){var e=new Uint8Array(2e4),r=4,n=S._binBE;e[0]=77,e[1]=77,e[3]=42;var i=8;n.writeUint(e,r,i),r+=4;for(var a=0;a<t.length;a++){var o=S._writeIFD(n,e,i,t[a]);i=o[1],a<t.length-1&&n.writeUint(e,o[0],i)}return e.slice(0,i).buffer},S.decode=function(t){S.decode._decodeG3.allow2D=null;var e=new Uint8Array(t),r=0,n=S._binBE.readASCII(e,r,2);r+=2;var i="II"==n?S._binLE:S._binBE;i.readUshort(e,r),r+=2;var a=i.readUint(e,r);r+=4;for(var o=[];;){var s=S._readIFD(i,e,a,o);if(0==(a=i.readUint(e,s)))break}return o},S.decodeImages=function(t,e){for(var r=new Uint8Array(t),n=S._binBE.readASCII(r,0,2),i=0;i<e.length;i++){var a=e[i];if(null!=a.t256){a.isLE="II"==n,a.width=a.t256[0],a.height=a.t257[0];var o=a.t259?a.t259[0]:1,s=a.t266?a.t266[0]:1;a.t284&&2==a.t284[0]&&P("PlanarConfiguration 2 should not be used!");var l=(a.t258?Math.min(32,a.t258[0]):1)*(a.t277?a.t277[0]:1),u=8*Math.ceil(a.width*l/8),f=a.t273;null==f&&(f=a.t324);var h=a.t279;1==o&&1==f.length&&(h=[a.height*(u>>>3)]),null==h&&(h=a.t325);var c=new Uint8Array(a.height*(u>>>3)),d=0;if(null!=a.t322){for(var p=a.t322[0],b=a.t323[0],m=Math.floor((a.width+p-1)/p),g=Math.floor((a.height+b-1)/b),y=new Uint8Array(0|Math.ceil(p*b*l/8)),v=0;v<g;v++)for(var _=0;_<m;_++){for(var w=v*m+_,x=0;x<y.length;x++)y[x]=0;S.decode._decompress(a,r,f[w],h[w],o,y,0,s),6==o?c=y:S._copyTile(y,0|Math.ceil(p*l/8),b,c,0|Math.ceil(a.width*l/8),a.height,0|Math.ceil(_*p*l/8),v*b)}d=8*c.length}else{var E=a.t278?a.t278[0]:a.height;for(E=Math.min(E,a.height),w=0;w<f.length;w++)S.decode._decompress(a,r,f[w],h[w],o,c,0|Math.ceil(d/8),s),d+=u*E;d=Math.min(d,8*c.length)}a.data=new Uint8Array(c.buffer,0,0|Math.ceil(d/8))}}},S.decode._decompress=function(t,e,r,n,i,a,o,s){if(1==i)for(var l=0;l<n;l++)a[o+l]=e[r+l];else if(3==i)S.decode._decodeG3(e,r,n,a,o,t.width,s);else if(4==i)S.decode._decodeG4(e,r,n,a,o,t.width,s);else if(5==i)S.decode._decodeLZW(e,r,a,o);else if(6==i)S.decode._decodeOldJPEG(t,e,r,n,a,o);else if(7==i)S.decode._decodeNewJPEG(t,e,r,n,a,o);else if(8==i)for(var u=new Uint8Array(e.buffer,r,n),f=g.inflate(u),h=0;h<f.length;h++)a[o+h]=f[h];else 32773==i?S.decode._decodePackBits(e,r,n,a,o):32809==i?S.decode._decodeThunder(e,r,n,a,o):P("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,b=0;b<d;b++){var m=o+b*p;if(3==c)for(l=3;l<p;l+=3)a[m+l]=a[m+l]+a[m+l-3]&255,a[m+l+1]=a[m+l+1]+a[m+l-2]&255,a[m+l+2]=a[m+l+2]+a[m+l-1]&255;else for(l=c;l<p;l++)a[m+l]=a[m+l]+a[m+l-c]&255}},S.decode._decodeNikon=function(t,e,r,n,i){var a,o;P(t.slice(e,e+100)),a=t[e],o=t[++e],e++,P(a.toString(16),o.toString(16),r)},S.decode._decodeNewJPEG=function(t,e,r,n,i,a){var o=t.t347,s=o?o.length:0,l=new Uint8Array(s+n);if(o){for(var u=0,f=0;f<s-1&&(255!=o[f]||217!=o[f+1]);f++)l[u++]=o[f];var h=e[r],c=e[r+1];for(255==h&&216==c||(l[u++]=h,l[u++]=c),f=2;f<n;f++)l[u++]=e[r+f]}else for(f=0;f<n;f++)l[f]=e[r+f];if(32803==t.t262){var d=t.t258[0],p=(new LosslessJpegDecoder).decode(l),b=p.length;if(16==d)for(f=0;f<b;f++)i[a++]=255&p[f],i[a++]=p[f]>>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(f=0;f<b;f+=2)i[a++]=p[f]>>>4,i[a++]=255&(p[f]<<4|p[f+1]>>>8),i[a++]=255&p[f+1]}}else{var m=new S.JpegDecoder;m.parse(l);var g=m.getData(m.width,m.height);for(f=0;f<g.length;f++)i[a+f]=g[f]}6==t.t262[0]&&(t.t262[0]=2)},S.decode._decodeOldJPEGInit=function(t,e,r,n){var i,a,o,s,l,u=0,f=0,h=!1,c=t.t513,d=c?c[0]:0,p=t.t514,b=p?p[0]:0,m=t.t324||t.t273||c,g=t.t530,y=0,v=0,_=t.t277?t.t277[0]:1,w=t.t515;if(m&&(f=m[0],h=1<m.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]?u=r+d:P("JPEGInterchangeFormat does not point to SOI"),null==p?P("JPEGInterchangeFormatLength field is missing"):(f<=d||d+b<=f)&&P("JPEGInterchangeFormatLength field value is invalid"),null!=u))return{jpegOffset:u}}if(null!=g&&(y=g[0],v=g[1]),null!=c&&null!=p)if(2<=b&&d+b<=f){for(i=255==e[r+d+b-2]&&216==e[r+d+b-1]?new Uint8Array(b-2):new Uint8Array(b),o=0;o<i.length;o++)i[o]=e[r+d+o];P("Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables")}else P("JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile");if(null==i){var x=0,E=[];E[x++]=255,E[x++]=216;var k=t.t519;if(null==k)throw new Error("JPEGQTables tag is missing");for(o=0;o<k.length;o++)for(E[x++]=255,E[x++]=219,E[x++]=0,E[x++]=67,E[x++]=o,s=0;s<64;s++)E[x++]=e[r+k[o]+s];for(l=0;l<2;l++){var j=t[0==l?"t520":"t521"];if(null==j)throw new Error((0==l?"JPEGDCTables":"JPEGACTables")+" tag is missing");for(o=0;o<j.length;o++){E[x++]=255,E[x++]=196;var S=19;for(s=0;s<16;s++)S+=e[r+j[o]+s];for(E[x++]=S>>>8,E[x++]=255&S,E[x++]=o|l<<4,s=0;s<16;s++)E[x++]=e[r+j[o]+s];for(s=0;s<S;s++)E[x++]=e[r+j[o]+16+s]}}if(E[x++]=255,E[x++]=192,E[x++]=0,E[x++]=8+3*_,E[x++]=8,E[x++]=t.height>>>8&255,E[x++]=255&t.height,E[x++]=t.width>>>8&255,E[x++]=255&t.width,1==(E[x++]=_))E[x++]=1,E[x++]=17,E[x++]=0;else for(o=0;o<3;o++)E[x++]=o+1,E[x++]=0!=o?17:(15&y)<<4|15&v,E[x++]=o;null!=w&&0!=w[0]&&(E[x++]=255,E[x++]=221,E[x++]=0,E[x++]=4,E[x++]=w[0]>>>8&255,E[x++]=255&w[0]),i=new Uint8Array(E)}var A=-1;for(o=0;o<i.length-1;){if(255==i[o]&&192==i[o+1]){A=o;break}o++}if(-1==A){var I=new Uint8Array(i.length+10+3*_);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*_,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++]=_))i[T++]=1,i[T++]=17,i[T++]=0;else for(o=0;o<3;o++)i[T++]=o+1,i[T++]=0!=o?17:(15&y)<<4|15&v,i[T++]=o}if(255==e[f]&&218==e[f+1]){var O=e[f+2]<<8|e[f+3];for((a=new Uint8Array(2+O))[0]=e[f],a[1]=e[f+1],a[2]=e[f+2],a[3]=e[f+3],o=0;o<O-2;o++)a[o+4]=e[f+o+4]}else{var R=0;if((a=new Uint8Array(8+2*_))[R++]=255,a[R++]=218,a[R++]=0,a[R++]=6+2*_,1==(a[R++]=_))a[R++]=1,a[R++]=0;else for(o=0;o<3;o++)a[R++]=o+1,a[R++]=o<<4|o;a[R++]=0,a[R++]=63,a[R++]=0}return{jpegOffset:r,tables:i,sosMarker:a,sofPosition:A}},S.decode._decodeOldJPEG=function(t,e,r,n,i,a){var o,s,l,u=S.decode._decodeOldJPEGInit(t,e,r,n);if(null!=u.jpegOffset)for(o=r+n-u.jpegOffset,l=new Uint8Array(o),c=0;c<o;c++)l[c]=e[u.jpegOffset+c];else{for(s=u.tables.length,(l=new Uint8Array(s+u.sosMarker.length+n+2)).set(u.tables),l[u.sofPosition+5]=t.height>>>8&255,l[u.sofPosition+6]=255&t.height,l[u.sofPosition+7]=t.width>>>8&255,l[u.sofPosition+8]=255&t.width,255==e[r]&&e[r+1]==SOS||(l.set(u.sosMarker,bufoff),bufoff+=sosMarker.length),c=0;c<n;c++)l[bufoff++]=e[r+c];l[bufoff++]=255,l[bufoff++]=EOI}var f=new S.JpegDecoder;f.parse(l);for(var h=f.getData(f.width,f.height),c=0;c<h.length;c++)i[a+c]=h[c];6==t.t262[0]&&(t.t262[0]=2)},S.decode._decodePackBits=function(t,e,r,n,i){for(var a=new Int8Array(t.buffer),o=new Int8Array(n.buffer),s=e+r;e<s;){var l=a[e];if(e++,0<=l&&l<128)for(var u=0;u<l+1;u++)o[i]=a[e],i++,e++;if(-127<=l&&l<0){for(u=0;u<1-l;u++)o[i]=a[e],i++;e++}}},S.decode._decodeThunder=function(t,e,r,n,i){for(var a=[0,1,0,-1],o=[0,1,2,3,0,-3,-2,-1],s=e+r,l=2*i,u=0;e<s;){var f=t[e],h=f>>>6,c=63&f;if(e++,3==h&&(u=15&c,n[l>>>1]|=u<<4*(1-l&1),l++),0==h)for(var d=0;d<c;d++)n[l>>>1]|=u<<4*(1-l&1),l++;if(2==h)for(d=0;d<2;d++)4!=(p=c>>>3*(1-d)&7)&&(u+=o[p],n[l>>>1]|=u<<4*(1-l&1),l++);if(1==h)for(d=0;d<3;d++){var p;2!=(p=c>>>2*(2-d)&3)&&(u+=a[p],n[l>>>1]|=u<<4*(1-l&1),l++)}}},S.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},S.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",a="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(","),a=a.split(",");var o={},s={};return t(o,e,0,1),t(o,n,64,64),t(o,a,1792,64),t(s,r,0,1),t(s,i,64,64),t(s,a,1792,64),[o,s]}(),S.decode._decodeG4=function(t,e,r,n,i,a,o){for(var s=S.decode,l=e<<3,u=0,f="",h=[],c=[],d=0;d<a;d++)c.push(0);c=s._makeDiff(c);for(var p=0,b=0,m=0,g=0,y=0,v=0,_="",w=0,x=8*Math.ceil(a/8);l>>>3<e+r;){m=s._findDiff(c,p+(0==p?0:1),1-y),g=s._findDiff(c,m,y);var E=0;if(1==o&&(E=t[l>>>3]>>>7-(7&l)&1),2==o&&(E=t[l>>>3]>>>(7&l)&1),l++,f+=E,"H"==_){if(null!=s._lens[y][f]){var k=s._lens[y][f];f="",u+=k,k<64&&(s._addNtimes(h,u,y),p+=u,y=1-y,(u=0)==--w&&(_=""))}}else"0001"==f&&(f="",s._addNtimes(h,g-p,y),p=g),"001"==f&&(f="",_="H",w=2),null!=s._dmap[f]&&(b=m+s._dmap[f],s._addNtimes(h,b-p,y),p=b,f="",y=1-y);h.length==a&&""==_&&(s._writeBits(h,n,8*i+v*x),v++,p=y=0,c=s._makeDiff(h),h=[])}},S.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]},S.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},S.decode._decodeG3=function(t,e,r,n,i,a,o){for(var s=S.decode,l=e<<3,u=0,f="",h=[],c=[],d=0;d<a;d++)h.push(0);for(var p=0,b=0,m=0,g=0,y=0,v=-1,_="",w=0,x=!1,E=8*Math.ceil(a/8);l>>>3<e+r;){m=s._findDiff(c,p+(0==p?0:1),1-y),g=s._findDiff(c,m,y);var k=0;if(1==o&&(k=t[l>>>3]>>>7-(7&l)&1),2==o&&(k=t[l>>>3]>>>(7&l)&1),l++,f+=k,x){if(null!=s._lens[y][f]){var j=s._lens[y][f];f="",u+=j,j<64&&(s._addNtimes(h,u,y),y=1-y,u=0)}}else"H"==_?null!=s._lens[y][f]&&(j=s._lens[y][f],f="",u+=j,j<64&&(s._addNtimes(h,u,y),p+=u,y=1-y,(u=0)==--w&&(_=""))):("0001"==f&&(f="",s._addNtimes(h,g-p,y),p=g),"001"==f&&(f="",_="H",w=2),null!=s._dmap[f]&&(b=m+s._dmap[f],s._addNtimes(h,b-p,y),p=b,f="",y=1-y));f.endsWith("000000000001")&&(0<=v&&s._writeBits(h,n,8*i+v*E),1==o&&(x=1==(t[l>>>3]>>>7-(7&l)&1)),2==o&&(x=1==(t[l>>>3]>>>(7&l)&1)),l++,null==s._decodeG3.allow2D&&(s._decodeG3.allow2D=x),s._decodeG3.allow2D||(x=!0,l--),f="",v++,p=y=0,c=s._makeDiff(h),h=[])}h.length==a&&s._writeBits(h,n,8*i+v*E)},S.decode._addNtimes=function(t,e,r){for(var n=0;n<e;n++)t.push(r)},S.decode._writeBits=function(t,e,r){for(var n=0;n<t.length;n++)e[r+n>>>3]|=t[n]<<7-(r+n&7)},S.decode._decodeLZW=function(t,e,r,n){if(null==S.decode._lzwTab){for(var i=new Uint32Array(65535),a=new Uint16Array(65535),o=new Uint8Array(2e6),s=0;s<256;s++)i[o[s<<2]=s]=s<<2,a[s]=1;S.decode._lzwTab=[i,a,o]}for(var l=S.decode._copyData,u=S.decode._lzwTab[0],f=S.decode._lzwTab[1],h=(o=S.decode._lzwTab[2],258),c=1032,d=9,p=e<<3,b=0,m=0;b=(t[p>>>3]<<16|t[p+8>>>3]<<8|t[p+16>>>3])>>24-(7&p)-d&(1<<d)-1,p+=d,257!=b;){if(256==b){if(d=9,h=258,c=1032,b=(t[p>>>3]<<16|t[p+8>>>3]<<8|t[p+16>>>3])>>24-(7&p)-d&(1<<d)-1,p+=d,257==b)break;r[n]=b,n++}else if(b<h){var g=u[b],y=f[b];l(o,g,r,n,y),n+=y,h<=m?(u[h]=c,o[u[h]]=g[0],c=c+(f[h]=1)+3&-4,h++):(u[h]=c,l(o,u[m],o,c,v=f[m]),o[c+v]=o[g],v++,f[h]=v,h++,c=c+v+3&-4),h+1==1<<d&&d++}else{var v;h<=m?(u[h]=c,f[h]=0,h++):(u[h]=c,l(o,u[m],o,c,v=f[m]),o[c+v]=o[c],v++,f[h]=v,h++,l(o,c,r,n,v),n+=v,c=c+v+3&-4),h+1==1<<d&&d++}m=b}},S.decode._copyData=function(t,e,r,n,i){for(var a=0;a<i;a+=4)r[n+a]=t[e+a],r[n+a+1]=t[e+a+1],r[n+a+2]=t[e+a+2],r[n+a+3]=t[e+a+3]},S.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"},S.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},S._readIFD=function(t,e,r,n){var i=t.readUshort(e,r);r+=2;var a={};n.push(a);for(var o=0;o<i;o++){var s=t.readUshort(e,r);r+=2;var l=t.readUshort(e,r);r+=2;var u=t.readUint(e,r);r+=4;var f=t.readUint(e,r);r+=4;var h=[];if(a["t"+s]=h,1==l||7==l)for(var c=0;c<u;c++)h.push(e[(u<5?r-4:f)+c]);if(2==l&&h.push(t.readASCII(e,u<5?r-4:f,u-1)),3==l)for(c=0;c<u;c++)h.push(t.readUshort(e,(u<3?r-4:f)+2*c));if(4==l)for(c=0;c<u;c++)h.push(t.readUint(e,(u<2?r-4:f)+4*c));if(5==l)for(c=0;c<u;c++)h.push(t.readUint(e,f+8*c)/t.readUint(e,f+8*c+4));if(8==l)for(c=0;c<u;c++)h.push(t.readShort(e,(u<3?r-4:f)+2*c));if(9==l)for(c=0;c<u;c++)h.push(t.readInt(e,(u<2?r-4:f)+4*c));if(10==l)for(c=0;c<u;c++)h.push(t.readInt(e,f+8*c)/t.readInt(e,f+8*c+4));if(11==l)for(c=0;c<u;c++)h.push(t.readFloat(e,f+4*c));if(12==l)for(c=0;c<u;c++)h.push(t.readDouble(e,f+8*c));if(0!=u&&0==h.length&&P("unknown TIFF tag type: ",l,"num:",u),330==s)for(c=0;c<u;c++)S._readIFD(t,e,h[c],n)}return r},S._writeIFD=function(t,e,r,n){var i=Object.keys(n);t.writeUshort(e,r,i.length);for(var a=(r+=2)+12*i.length+4,o=0;o<i.length;o++){var s=i[o],l=parseInt(s.slice(1)),u=S.ttypes[l];if(null==u)throw new Error("unknown type of tag: "+l);var f=n[s];2==u&&(f=f[0]+"\0");var h=f.length;t.writeUshort(e,r,l),r+=2,t.writeUshort(e,r,u),r+=2,t.writeUint(e,r,h);var c=[-1,1,1,2,4,8,0,0,0,0,0,0,8][u]*h,d=r+=4;if(4<c&&(t.writeUint(e,r,a),d=a),2==u&&t.writeASCII(e,d,f),3==u)for(var p=0;p<h;p++)t.writeUshort(e,d+2*p,f[p]);if(4==u)for(p=0;p<h;p++)t.writeUint(e,d+4*p,f[p]);if(5==u)for(p=0;p<h;p++)t.writeUint(e,d+8*p,Math.round(1e4*f[p])),t.writeUint(e,d+8*p+4,1e4);if(12==u)for(p=0;p<h;p++)t.writeDouble(e,d+8*p,f[p]);4<c&&(a+=c+=1&c),r+=4}return[r,a]},S.toRGBA8=function(t){var e=t.width,r=t.height,n=e*r,i=4*n,a=t.data,o=new Uint8Array(4*n),s=t.t262[0],l=t.t258?Math.min(32,t.t258[0]):1,u=t.isLE?1:0;if(0==s)for(var f=Math.ceil(l*e/8),h=0;h<r;h++){var c=h*f,d=h*e;if(1==l)for(var p=0;p<e;p++){var b=d+p<<2,m=a[c+(p>>3)]>>7-(7&p)&1;o[b]=o[b+1]=o[b+2]=255*(1-m),o[b+3]=255}if(4==l)for(p=0;p<e;p++)b=d+p<<2,m=a[c+(p>>1)]>>4-4*(1&p)&15,o[b]=o[b+1]=o[b+2]=17*(15-m),o[b+3]=255;if(8==l)for(p=0;p<e;p++)b=d+p<<2,m=a[c+p],o[b]=o[b+1]=o[b+2]=255-m,o[b+3]=255}else if(1==s)for(f=Math.ceil(l*e/8),h=0;h<r;h++){if(c=h*f,d=h*e,1==l)for(p=0;p<e;p++)b=d+p<<2,m=a[c+(p>>3)]>>7-(7&p)&1,o[b]=o[b+1]=o[b+2]=255*m,o[b+3]=255;if(2==l)for(p=0;p<e;p++)b=d+p<<2,m=a[c+(p>>2)]>>6-2*(3&p)&3,o[b]=o[b+1]=o[b+2]=85*m,o[b+3]=255;if(8==l)for(p=0;p<e;p++)b=d+p<<2,m=a[c+p],o[b]=o[b+1]=o[b+2]=m,o[b+3]=255;if(16==l)for(p=0;p<e;p++)b=d+p<<2,m=a[c+(2*p+u)],o[b]=o[b+1]=o[b+2]=Math.min(255,m),o[b+3]=255}else if(2==s)if(8==l)if(t.t338)if(0<t.t338[0])for(p=0;p<i;p++)o[p]=a[p];else for(p=0;p<i;p+=4)o[p]=a[p],o[p+1]=a[p+1],o[p+2]=a[p+2],o[p+3]=255;else{if(4==(_=t.t258?t.t258.length:3))for(p=0;p<i;p++)o[p]=a[p];if(3==_)for(p=0;p<n;p++){var g=3*p;o[b=p<<2]=a[g],o[b+1]=a[g+1],o[b+2]=a[g+2],o[b+3]=255}}else for(p=0;p<n;p++)g=6*p,o[b=p<<2]=a[g],o[b+1]=a[g+2],o[b+2]=a[g+4],o[b+3]=255;else if(3==s){var y=t.t320;for(p=0;p<n;p++){b=p<<2;var v=a[p];o[b]=y[v]>>8,o[b+1]=y[256+v]>>8,o[b+2]=y[512+v]>>8,o[b+3]=255}}else if(5==s){var _,w=4<(_=t.t258?t.t258.length:4)?1:0;for(p=0;p<n;p++){b=p<<2;var x=p*_,E=255-a[x],k=255-a[1+x],j=255-a[2+x],S=(255-a[3+x])*(1/255);o[b]=~~(E*S+.5),o[b+1]=~~(k*S+.5),o[b+2]=~~(j*S+.5),o[b+3]=255*(1-w)+a[4+x]*w}}else P("Unknown Photometric interpretation: "+s);return o},S.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 a=new XMLHttpRequest;S._xhrs.push(a),S._imgs.push(r),a.open("GET",n),a.responseType="arraybuffer",a.onload=S._imgLoaded,a.send()}}}},S._xhrs=[],S._imgs=[],S._imgLoaded=function(t){var e=t.target.response,r=S.decode(e),n=r[0];S.decodeImages(e,r);var i=S.toRGBA8(n),a=n.width,o=n.height,s=S._xhrs.indexOf(t.target),l=S._imgs[s];S._xhrs.splice(s,1),S._imgs.splice(s,1);var u=document.createElement("canvas");u.width=a,u.height=o;for(var f=u.getContext("2d"),h=f.createImageData(a,o),c=0;c<i.length;c++)h.data[c]=i[c];f.putImageData(h,0,0);var d=["style","class","id"];for(c=0;c<d.length;c++)u.setAttribute(d[c],l.getAttribute(d[c]));l.parentNode.replaceChild(u,l)},S._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=S._binBE.ui8;return r[0]=t[e+1],r[1]=t[e+0],S._binBE.i16[0]},readInt:function(t,e){var r=S._binBE.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],S._binBE.i32[0]},readUint:function(t,e){var r=S._binBE.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],S._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=S._binBE.ui8,n=0;n<4;n++)r[n]=t[e+3-n];return S._binBE.fl32[0]},readDouble:function(t,e){for(var r=S._binBE.ui8,n=0;n<8;n++)r[n]=t[e+7-n];return S._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){S._binBE.fl64[0]=r;for(var n=0;n<8;n++)t[e+n]=S._binBE.ui8[7-n]}},S._binBE.ui8=new Uint8Array(8),S._binBE.i16=new Int16Array(S._binBE.ui8.buffer),S._binBE.i32=new Int32Array(S._binBE.ui8.buffer),S._binBE.ui32=new Uint32Array(S._binBE.ui8.buffer),S._binBE.fl32=new Float32Array(S._binBE.ui8.buffer),S._binBE.fl64=new Float64Array(S._binBE.ui8.buffer),S._binLE={nextZero:S._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(t,e){var r=S._binBE.ui8;return r[0]=t[e+0],r[1]=t[e+1],S._binBE.i16[0]},readInt:function(t,e){var r=S._binBE.ui8;return r[0]=t[e+0],r[1]=t[e+1],r[2]=t[e+2],r[3]=t[e+3],S._binBE.i32[0]},readUint:function(t,e){var r=S._binBE.ui8;return r[0]=t[e+0],r[1]=t[e+1],r[2]=t[e+2],r[3]=t[e+3],S._binBE.ui32[0]},readASCII:S._binBE.readASCII,readFloat:function(t,e){for(var r=S._binBE.ui8,n=0;n<4;n++)r[n]=t[e+n];return S._binBE.fl32[0]},readDouble:function(t,e){for(var r=S._binBE.ui8,n=0;n<8;n++)r[n]=t[e+n];return S._binBE.fl64[0]}},S._copyTile=function(t,e,r,n,i,a,o,s){for(var l=Math.min(e,i-o),u=Math.min(r,a-s),f=0;f<u;f++)for(var h=(s+f)*i+o,c=f*e,d=0;d<l;d++)n[h+d]=t[c+d]}}).call(this,o("_process"))},{_process:312,pako:265}],362:[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:{})},{}],363:[function(t,e,r){arguments[4][25][0].apply(r,arguments)},{dup:25}],364:[function(t,e,r){arguments[4][26][0].apply(r,arguments)},{dup:26}],365:[function(t,e,r){arguments[4][27][0].apply(r,arguments)},{"./support/isBuffer":364,_process:312,dup:27,inherits:363}],366:[function(t,e,r){"use strict";var n=t("global/window"),i=t("is-function"),m=t("parse-headers"),a=t("xtend");function o(t,e,r){var n=t;return i(e)?(r=e,"string"==typeof t&&(n={uri:t})):n=a(e,{uri:t}),n.callback=r,n}function g(t,e,r){return s(e=o(t,e,r))}function s(n){if(void 0===n.callback)throw new Error("callback argument missing");var i=!1,a=function(t,e,r){i||(i=!0,n.callback(t,e,r))};function e(t){return clearTimeout(s),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,a(t,b)}function t(){if(!o){var t;clearTimeout(s),t=n.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var e=b,r=null;return 0!==t?(e={body:function(){var t=void 0;if(t=l.response?l.response:l.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}(l),p)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:t,method:f,headers:{},url:u,rawRequest:l},l.getAllResponseHeaders&&(e.headers=m(l.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),a(r,e,e.body)}}var r,o,s,l=n.xhr||null,u=(l=l||(n.cors||n.useXDR?new g.XDomainRequest:new g.XMLHttpRequest)).url=n.uri||n.url,f=l.method=n.method||"GET",h=n.body||n.data,c=l.headers=n.headers||{},d=!!n.sync,p=!1,b={body:void 0,headers:{},statusCode:0,method:f,url:u,rawRequest:l};if("json"in n&&!1!==n.json&&(p=!0,c.accept||c.Accept||(c.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(c["content-type"]||c["Content-Type"]||(c["Content-Type"]="application/json"),h=JSON.stringify(!0===n.json?h:n.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(t,0)},l.onload=t,l.onerror=e,l.onprogress=function(){},l.onabort=function(){o=!0},l.ontimeout=e,l.open(f,u,!d,n.username,n.password),d||(l.withCredentials=!!n.withCredentials),!d&&0<n.timeout&&(s=setTimeout(function(){if(!o){o=!0,l.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",e(t)}},n.timeout)),l.setRequestHeader)for(r in c)c.hasOwnProperty(r)&&l.setRequestHeader(r,c[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&&(l.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(l),l.send(h||null),l}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=o(t,e,r)).method=n.toUpperCase(),s(e)}})},{"global/window":251,"is-function":257,"parse-headers":285,xtend:368}],367:[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}},{}],368:[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},{}],369:[function(t,e,r){"use strict";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,a=(t.g*t.a+e.g*e.a*(1-t.a))/n,o=(t.b*t.a+e.b*e.a*(1-t.a))/n;return{r:i,g:a,b:o,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,a=(e.g*e.a+t.g*t.a*(1-e.a))/n,o=(e.b*e.a+t.b*t.a*(1-e.a))/n;return{r:i,g:a,b:o,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,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,u=e.b*e.a,f=(i*s+i*(1-e.a)+s*(1-t.a))/n,h=(a*l+a*(1-e.a)+l*(1-t.a))/n,c=(o*u+o*(1-e.a)+u*(1-t.a))/n;return{r:f,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,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,u=e.b*e.a,f=(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/n,h=(a*e.a+l*t.a-a*l+a*(1-e.a)+l*(1-t.a))/n,c=(o*e.a+u*t.a-o*u+o*(1-e.a)+u*(1-t.a))/n;return{r:f,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,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,u=e.b*e.a,f=(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*l<=e.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/n,c=(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;return{r:f,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,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,u=e.b*e.a,f=(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,h=(Math.min(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/n,c=(Math.min(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n;return{r:f,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,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,u=e.b*e.a,f=(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,h=(Math.max(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/n,c=(Math.max(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/n;return{r:f,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,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,u=e.b*e.a,f=(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*a<=t.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/n,c=(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;return{r:f,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,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,u=e.b*e.a,f=(i+s-2*Math.min(i*e.a,s*t.a))/n,h=(a+l-2*Math.min(a*e.a,l*t.a))/n,c=(o+u-2*Math.min(o*e.a,u*t.a))/n;return{r:f,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,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,u=e.b*e.a,f=(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/n,h=(a*e.a+l*t.a-2*a*l+a*(1-e.a)+l*(1-t.a))/n,c=(o*e.a+u*t.a-2*o*u+o*(1-e.a)+u*(1-t.a))/n;return{r:f,g:h,b:c,a:n}}},{}],370:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,a,o){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 a||"number"!=typeof o)return h.throwError.call(this,"x and y must be numbers",r);var n=e,i=n.mode,s=n.opacitySource,l=n.opacityDest;i=i||c.BLEND_SOURCE_OVER;("number"!=typeof s||s<0||1<s)&&(s=1);("number"!=typeof l||l<0||1<l)&&(l=1);var u=d[i];a=Math.round(a),o=Math.round(o);var f=this;1!==l&&f.opacity(l);t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,e,r){var n=f.getPixelIndex(a+t,o+e,c.EDGE_CROP),i=u({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:f.bitmap.data[n+0]/255,g:f.bitmap.data[n+1]/255,b:f.bitmap.data[n+2]/255,a:f.bitmap.data[n+3]/255},s);f.bitmap.data[n+0]=this.constructor.limit255(255*i.r),f.bitmap.data[n+1]=this.constructor.limit255(255*i.g),f.bitmap.data[n+2]=this.constructor.limit255(255*i.b),f.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"));e.exports=r.default},{"../constants":371,"./composite-modes":369,"@babel/runtime/helpers/interopRequireWildcard":11,"@jimp/utils":414}],371:[function(t,e,r){"use strict";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},{}],372:[function(H,t,G){(function(g){"use strict";var t=H("@babel/runtime/helpers/interopRequireWildcard"),e=H("@babel/runtime/helpers/interopRequireDefault");H("core-js/modules/es.array.concat"),H("core-js/modules/es.array.find"),H("core-js/modules/es.array.for-each"),H("core-js/modules/es.array.index-of"),H("core-js/modules/es.array.iterator"),H("core-js/modules/es.array.join"),H("core-js/modules/es.array-buffer.slice"),H("core-js/modules/es.date.to-string"),H("core-js/modules/es.number.constructor"),H("core-js/modules/es.object.assign"),H("core-js/modules/es.object.entries"),H("core-js/modules/es.object.to-string"),H("core-js/modules/es.parse-int"),H("core-js/modules/es.promise"),H("core-js/modules/es.regexp.exec"),H("core-js/modules/es.regexp.to-string"),H("core-js/modules/es.string.match"),H("core-js/modules/es.string.replace"),H("core-js/modules/es.typed-array.uint8-array"),H("core-js/modules/es.typed-array.uint8-clamped-array"),H("core-js/modules/es.typed-array.copy-within"),H("core-js/modules/es.typed-array.every"),H("core-js/modules/es.typed-array.fill"),H("core-js/modules/es.typed-array.filter"),H("core-js/modules/es.typed-array.find"),H("core-js/modules/es.typed-array.find-index"),H("core-js/modules/es.typed-array.for-each"),H("core-js/modules/es.typed-array.includes"),H("core-js/modules/es.typed-array.index-of"),H("core-js/modules/es.typed-array.iterator"),H("core-js/modules/es.typed-array.join"),H("core-js/modules/es.typed-array.last-index-of"),H("core-js/modules/es.typed-array.map"),H("core-js/modules/es.typed-array.reduce"),H("core-js/modules/es.typed-array.reduce-right"),H("core-js/modules/es.typed-array.reverse"),H("core-js/modules/es.typed-array.set"),H("core-js/modules/es.typed-array.slice"),H("core-js/modules/es.typed-array.some"),H("core-js/modules/es.typed-array.sort"),H("core-js/modules/es.typed-array.subarray"),H("core-js/modules/es.typed-array.to-locale-string"),H("core-js/modules/es.typed-array.to-string"),H("core-js/modules/web.dom-collections.for-each"),H("core-js/modules/web.timers"),Object.defineProperty(G,"__esModule",{value:!0}),G.addConstants=D,G.addJimpMethods=N,G.jimpEvMethod=U,G.jimpEvChange=z,Object.defineProperty(G,"addType",{enumerable:!0,get:function(){return b.addType}}),G.default=void 0;for(var i=e(H("@babel/runtime/helpers/construct")),a=e(H("@babel/runtime/helpers/slicedToArray")),y=e(H("@babel/runtime/helpers/classCallCheck")),r=e(H("@babel/runtime/helpers/createClass")),v=e(H("@babel/runtime/helpers/possibleConstructorReturn")),_=e(H("@babel/runtime/helpers/getPrototypeOf")),w=e(H("@babel/runtime/helpers/assertThisInitialized")),n=e(H("@babel/runtime/helpers/inherits")),x=e(H("@babel/runtime/helpers/defineProperty")),E=e(H("@babel/runtime/helpers/typeof")),k=e(H("fs")),o=e(H("path")),s=e(H("events")),j=H("@jimp/utils"),l=e(H("any-base")),u=e(H("mkdirp")),f=e(H("pixelmatch")),h=e(H("tinycolor2")),c=e(H("./modules/phash")),d=e(H("./request")),p=e(H("./composite")),S=e(H("./utils/promisify")),b=t(H("./utils/mime")),A=H("./utils/image-bitmap"),m=t(H("./constants")),I="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",T=[NaN,NaN],O=2;O<65;O++){var R=(0,l.default)(l.default.BIN,I.slice(0,O))(new Array(65).join("1"));T.push(R.length)}function P(){}function M(i,a){(0,d.default)(i,function(t,e,r){if(t)return a(t);if("headers"in e&&"location"in e.headers)return i.url=e.headers.location,M(i,a);if("object"===(0,E.default)(r)&&g.isBuffer(r))return a(null,r);var n="Could not load Buffer from <"+i.url+"> (HTTP: "+e.statusCode+")";return new Error(n)})}var L,C={data:null,width:null,height:null},B=function(t){function m(){for(var n,t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];(0,y.default)(this,m),n=(0,v.default)(this,(0,_.default)(m).call(this)),(0,x.default)((0,w.default)(n),"bitmap",C),(0,x.default)((0,w.default)(n),"_background",0),(0,x.default)((0,w.default)(n),"_originalMime",m.MIME_PNG),(0,x.default)((0,w.default)(n),"_exif",null),(0,x.default)((0,w.default)(n),"_rgba",!0),(0,x.default)((0,w.default)(n),"writeAsync",function(t){return(0,S.default)(n.write,(0,w.default)(n),t)}),(0,x.default)((0,w.default)(n),"getBase64Async",function(t){return(0,S.default)(n.getBase64,(0,w.default)(n),t)}),(0,x.default)((0,w.default)(n),"getBuffer",A.getBuffer),(0,x.default)((0,w.default)(n),"getBufferAsync",A.getBufferAsync),(0,x.default)((0,w.default)(n),"getPixelColour",n.getPixelColor),(0,x.default)((0,w.default)(n),"setPixelColour",n.setPixelColor);var a=(0,w.default)(n),o=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&&o===P?a.emitError("constructor",n):n||a.emitMulti("constructor","initialized"),(t=o).call.apply(t,[a].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=g.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),l=parseInt(i[1],10);if(o=i[2],"number"==typeof i[2]&&(n._background=i[2],o=i[3]),"string"==typeof i[2]&&(n._background=m.cssColorToHex(i[2]),o=i[3]),void 0===o&&(o=P),"function"!=typeof o)return(0,v.default)(n,j.throwError.call((0,w.default)(n),"cb must be a function",r));n.bitmap={data:g.alloc(s*l*4),width:s,height:l};for(var u=0;u<n.bitmap.data.length;u+=4)n.bitmap.data.writeUInt32BE(n._background,u);r(null,(0,w.default)(n))}else if("object"===(0,E.default)(i[0])&&i[0].url){if("function"!=typeof(o=i[1]||P))return(0,v.default)(n,j.throwError.call((0,w.default)(n),"cb must be a function",r));M(i[0],function(t,e){if(t)return j.throwError.call((0,w.default)(n),t,r);n.parseBitmap(e,i[0].url,r)})}else if(i[0]instanceof m){var f=i[0];if(void 0===(o=i[1])&&(o=P),"function"!=typeof o)return(0,v.default)(n,j.throwError.call((0,w.default)(n),"cb must be a function",r));n.bitmap={data:g.from(f.bitmap.data),width:f.bitmap.width,height:f.bitmap.height},n._quality=f._quality,n._deflateLevel=f._deflateLevel,n._deflateStrategy=f._deflateStrategy,n._filterType=f._filterType,n._rgba=f._rgba,n._background=f._background,n._originalMime=f._originalMime,r(null,(0,w.default)(n))}else if(function(t){return t&&"object"===(0,E.default)(t)&&"number"==typeof t.width&&"number"==typeof t.height&&(g.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];o=i[1]||P;var c=h.width*h.height*4===h.data.length?g.from(h.data):function(t){if(t.length%3!=0)throw new Error("Buffer length is incorrect");for(var e=g.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,(0,w.default)(n))}else if("string"==typeof i[0]){var d=i[0];if(void 0===(o=i[1])&&(o=P),"function"!=typeof o)return(0,v.default)(n,j.throwError.call((0,w.default)(n),"cb must be a function",r));!function(t,e){k.default&&"function"==typeof k.default.readFile&&!t.match(/^(http|ftp)s?:\/\/./)?k.default.readFile(t,e):M({url:t},e)}(d,function(t,e){if(t)return j.throwError.call((0,w.default)(n),t,r);n.parseBitmap(e,d,r)})}else if("object"===(0,E.default)(i[0])&&g.isBuffer(i[0])){var p=i[0];if("function"!=typeof(o=i[1]))return(0,v.default)(n,j.throwError.call((0,w.default)(n),"cb must be a function",r));n.parseBitmap(p,null,r)}else{"function"!=typeof(o=i[i.length-1])&&"function"!=typeof(o=i[i.length-2])&&(o=P);var b=m.__extraConstructors.find(function(t){return t.test.apply(t,i)});if(!b)return(0,v.default)(n,j.throwError.call((0,w.default)(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=b.run).call.apply(r,[(0,w.default)(n),t,e].concat(i))}).then(function(){return r(null,(0,w.default)(n))}).catch(r)}return n}return(0,n.default)(m,t),(0,r.default)(m,[{key:"parseBitmap",value:function(t,e,r){A.parseBitmap.call(this,t,null,r)}},{key:"rgba",value:function(t,e){return"boolean"!=typeof t?j.throwError.call(this,"bool must be a boolean, true for RGBA or false for RGB",e):(this._rgba=t,(0,j.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===C?"pending...":this.bitmap.width+"x"+this.bitmap.height)+">"}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||m.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return b.getExtension(t)}},{key:"write",value:function(n,i){var a=this;if(!k.default||!k.default.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof n)return j.throwError.call(this,"path must be a string",i);if(void 0===i&&(i=P),"function"!=typeof i)return j.throwError.call(this,"cb must be a function",i);var t=b.getType(n)||this.getMIME(),e=o.default.parse(n);return e.dir&&u.default.sync(e.dir),this.getBuffer(t,function(t,e){if(t)return j.throwError.call(a,t,i);var r=k.default.createWriteStream(n);r.on("open",function(){r.write(e),r.end()}).on("error",function(t){return j.throwError.call(a,t,i)}),r.on("finish",function(){i.call(a,null,a)})}),this}},{key:"getBase64",value:function(n,i){return n===m.AUTO&&(n=this.getMIME()),"string"!=typeof n?j.throwError.call(this,"mime must be a string",i):"function"!=typeof i?j.throwError.call(this,"cb must be a function",i):(this.getBuffer(n,function(t,e){if(t)return j.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 j.throwError.call(this,"base must be a number",e);if(t<2||64<t)return j.throwError.call(this,"base must be a number between 2 and 64",e);var r=this.pHash();for(r=(0,l.default)(l.default.BIN,I.slice(0,t))(r);r.length<T[t];)r="0"+r;return(0,j.isNodePattern)(e)&&e.call(this,null,r),r}},{key:"pHash",value:function(){var t=new c.default;return t.getHash(this)}},{key:"distanceFromHash",value:function(t){var e=new c.default,r=e.getHash(this);return e.distance(r,t)}},{key:"getPixelIndex",value:function(t,e,r,n){var i,a;if("function"==typeof r&&void 0===n&&(n=r,r=null),r=r||m.EDGE_EXTEND,"number"!=typeof t||"number"!=typeof e)return j.throwError.call(this,"x and y must be numbers",n);i=t=Math.round(t),a=e=Math.round(e),r===m.EDGE_EXTEND&&(t<0&&(i=0),t>=this.bitmap.width&&(i=this.bitmap.width-1),e<0&&(a=0),e>=this.bitmap.height&&(a=this.bitmap.height-1)),r===m.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&&(a=e%this.bitmap.height));var o=this.bitmap.width*a+i<<2;return(i<0||i>=this.bitmap.width)&&(o=-1),(a<0||a>=this.bitmap.height)&&(o=-1),(0,j.isNodePattern)(n)&&n.call(this,null,o),o}},{key:"getPixelColor",value:function(t,e,r){if("number"!=typeof t||"number"!=typeof e)return j.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,j.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 j.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,j.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}},{key:"scanIterator",value:function(t,e,r,n){return"number"!=typeof t||"number"!=typeof e?j.throwError.call(this,"x and y must be numbers"):"number"!=typeof r||"number"!=typeof n?j.throwError.call(this,"w and h must be numbers"):(0,j.scanIterator)(this,t,e,r,n)}}]),m}(s.default);function D(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:B;Object.entries(t).forEach(function(t){var e=(0,a.default)(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]:B;Object.entries(t).forEach(function(t){var e=(0,a.default)(t,2),r=e[0],n=e[1];i.prototype[r]=n})}function U(s,t,l){var u="before-"+t,f=t.replace(/e$/,"")+"ed";B.prototype[s]=function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i,a=r[l.length-1],o=this;"function"==typeof a?(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?o.emitError(s,n):o.emitMulti(s,f,(0,x.default)({},s,i)),a.apply(this,e)},r[r.length-1]=t):t=!1,this.emitMulti(s,u);try{i=l.apply(this,r),t||this.emitMulti(s,f,(0,x.default)({},s,i))}catch(t){t.methodName=s,this.emitError(s,t)}return i},B.prototype[s+"Quiet"]=l}function z(t,e){U(t,"change",e)}D(m),N({composite:p.default}),B.__extraConstructors=[],B.appendConstructorOption=function(t,e,r){B.__extraConstructors.push({name:t,test:e,run:r})},B.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){(0,i.default)(B,e.concat([function(t,e){t?n(t):r(e)}]))})},B.create=B.read,B.rgbaToInt=function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof r||"number"!=typeof n)return j.throwError.call(this,"r, g, b and a must be numbers",i);if(t<0||255<t)return j.throwError.call(this,"r must be between 0 and 255",i);if((e<0||255<e)&&j.throwError.call(this,"g must be between 0 and 255",i),r<0||255<r)return j.throwError.call(this,"b must be between 0 and 255",i);if(n<0||255<n)return j.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 a=t*Math.pow(256,3)+e*Math.pow(256,2)+r*Math.pow(256,1)+n*Math.pow(256,0);return(0,j.isNodePattern)(i)&&i.call(this,null,a),a},B.intToRGBA=function(t,e){if("number"!=typeof t)return j.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,j.isNodePattern)(e)&&e.call(this,null,r),r},B.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt((0,h.default)(t).toHex8(),16)},B.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},B.diff=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof B&&e instanceof B))return j.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 j.throwError.call(this,"threshold must be a number between 0 and 1");var a=new B(n.width,n.height,4294967295);return{percent:(0,f.default)(n.data,i.data,a.bitmap.data,a.bitmap.width,a.bitmap.height,{threshold:r})/(a.bitmap.width*a.bitmap.height),image:a}},B.distance=function(t,e){var r=new c.default,n=r.getHash(t),i=r.getHash(e);return r.distance(n,i)},B.compareHashes=function(t,e){return(new c.default).distance(t,e)},B.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},U("clone","clone",function(t){var e=new B(this);return(0,j.isNodePattern)(t)&&t.call(e,null,e),e}),z("background",function(t,e){return"number"!=typeof t?j.throwError.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,(0,j.isNodePattern)(e)&&e.call(this,null,this),this)}),z("scan",function(t,e,r,n,i,a){if("number"!=typeof t||"number"!=typeof e)return j.throwError.call(this,"x and y must be numbers",a);if("number"!=typeof r||"number"!=typeof n)return j.throwError.call(this,"w and h must be numbers",a);if("function"!=typeof i)return j.throwError.call(this,"f must be a function",a);var o=(0,j.scan)(this,t,e,r,n,i);return(0,j.isNodePattern)(a)&&a.call(this,null,o),o}),void 0!==window&&"object"===(void 0===window?"undefined":(0,E.default)(window))&&(L=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":(0,E.default)(self))&&(L=self),L.Jimp=B,L.Buffer=g;var F=B;G.default=F}).call(this,H("buffer").Buffer)},{"./composite":370,"./constants":371,"./modules/phash":373,"./request":374,"./utils/image-bitmap":375,"./utils/mime":376,"./utils/promisify":377,"@babel/runtime/helpers/assertThisInitialized":3,"@babel/runtime/helpers/classCallCheck":4,"@babel/runtime/helpers/construct":5,"@babel/runtime/helpers/createClass":6,"@babel/runtime/helpers/defineProperty":7,"@babel/runtime/helpers/getPrototypeOf":8,"@babel/runtime/helpers/inherits":9,"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/interopRequireWildcard":11,"@babel/runtime/helpers/possibleConstructorReturn":16,"@babel/runtime/helpers/slicedToArray":18,"@babel/runtime/helpers/typeof":20,"@jimp/utils":414,"any-base":22,buffer:47,"core-js/modules/es.array-buffer.slice":172,"core-js/modules/es.array.concat":173,"core-js/modules/es.array.find":177,"core-js/modules/es.array.for-each":178,"core-js/modules/es.array.index-of":180,"core-js/modules/es.array.iterator":182,"core-js/modules/es.array.join":183,"core-js/modules/es.date.to-string":187,"core-js/modules/es.number.constructor":189,"core-js/modules/es.object.assign":190,"core-js/modules/es.object.entries":193,"core-js/modules/es.object.to-string":197,"core-js/modules/es.parse-int":198,"core-js/modules/es.promise":199,"core-js/modules/es.regexp.exec":200,"core-js/modules/es.regexp.to-string":201,"core-js/modules/es.string.match":204,"core-js/modules/es.string.replace":205,"core-js/modules/es.typed-array.copy-within":208,"core-js/modules/es.typed-array.every":209,"core-js/modules/es.typed-array.fill":210,"core-js/modules/es.typed-array.filter":211,"core-js/modules/es.typed-array.find":213,"core-js/modules/es.typed-array.find-index":212,"core-js/modules/es.typed-array.for-each":216,"core-js/modules/es.typed-array.includes":217,"core-js/modules/es.typed-array.index-of":218,"core-js/modules/es.typed-array.iterator":219,"core-js/modules/es.typed-array.join":220,"core-js/modules/es.typed-array.last-index-of":221,"core-js/modules/es.typed-array.map":222,"core-js/modules/es.typed-array.reduce":224,"core-js/modules/es.typed-array.reduce-right":223,"core-js/modules/es.typed-array.reverse":225,"core-js/modules/es.typed-array.set":226,"core-js/modules/es.typed-array.slice":227,"core-js/modules/es.typed-array.some":228,"core-js/modules/es.typed-array.sort":229,"core-js/modules/es.typed-array.subarray":230,"core-js/modules/es.typed-array.to-locale-string":231,"core-js/modules/es.typed-array.to-string":232,"core-js/modules/es.typed-array.uint8-array":233,"core-js/modules/es.typed-array.uint8-clamped-array":234,"core-js/modules/web.dom-collections.for-each":235,"core-js/modules/web.timers":237,events:239,fs:46,mkdirp:262,path:286,pixelmatch:288,tinycolor2:357}],373:[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 a=0;a<r;a++){for(var o=0,s=0;s<r;s++)for(var l=0;l<r;l++)o+=Math.cos((2*s+1)/(2*r)*i*Math.PI)*Math.cos((2*l+1)/(2*r)*a*Math.PI)*t[s][l];o*=d[i]*d[a]/4,n[i][a]=o}}return n}(e,this.size),a=0,o=0;o<this.smallerSize;o++)for(var s=0;s<this.smallerSize;s++)a+=i[o][s];for(var l=a/(this.smallerSize*this.smallerSize),u="",f=0;f<this.smallerSize;f++)for(var h=0;h<this.smallerSize;h++)u+=i[f][h]>l?"1":"0";return u};var d=[];e.exports=n},{}],374:[function(r,n,t){(function(t,i){"use strict";var e=r("@babel/runtime/helpers/interopRequireDefault");r("core-js/modules/es.symbol"),r("core-js/modules/es.array.filter"),r("core-js/modules/es.array.for-each"),r("core-js/modules/es.object.assign"),r("core-js/modules/es.object.define-properties"),r("core-js/modules/es.object.define-property"),r("core-js/modules/es.object.get-own-property-descriptor"),r("core-js/modules/es.object.get-own-property-descriptors"),r("core-js/modules/es.object.keys"),r("core-js/modules/web.dom-collections.for-each");e(r("@babel/runtime/helpers/defineProperty"));t.browser,n.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,r("_process"),r("buffer").Buffer)},{"@babel/runtime/helpers/defineProperty":7,"@babel/runtime/helpers/interopRequireDefault":10,_process:312,buffer:47,"core-js/modules/es.array.filter":175,"core-js/modules/es.array.for-each":178,"core-js/modules/es.object.assign":190,"core-js/modules/es.object.define-properties":191,"core-js/modules/es.object.define-property":192,"core-js/modules/es.object.get-own-property-descriptor":194,"core-js/modules/es.object.get-own-property-descriptors":195,"core-js/modules/es.object.keys":196,"core-js/modules/es.symbol":207,"core-js/modules/web.dom-collections.for-each":235,phin:287}],375:[function(f,t,h){(function(m){"use strict";var t=f("@babel/runtime/helpers/interopRequireWildcard"),e=f("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(h,"__esModule",{value:!0}),h.parseBitmap=function(t,e,r){var n=function(t,e){var r=(0,a.default)(t);if(r)return r.mime;if(e)return l.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=o.default.create(t).parse(),function(t){if(u(t)<2)return;var e=function(t){var r=t.getWidth(),n=t.getHeight();switch(u(t)){case 1:return null;case 2:return function(t,e){return[r-t-1,e]};case 3:return function(t,e){return[r-t-1,n-e-1]};case 4:return function(t,e){return[t,n-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,n-t-1]};case 7:return function(t,e){return[r-e-1,n-t-1]};case 8:return function(t,e){return[r-e-1,t]};default:return null}}(t),r=4<u(t),n=r?t.bitmap.height:t.bitmap.width,i=r?t.bitmap.width:t.bitmap.height;!function(t,e,r,n){for(var i=t.bitmap.data,a=t.bitmap.width,o=m.alloc(i.length),s=0;s<e;s++)for(var l=0;l<r;l++){var u=n(s,l),f=(0,g.default)(u,2),h=f[0],c=f[1],d=e*l+s<<2,p=a*c+h<<2,b=i.readUInt32BE(p);o.writeUInt32BE(b,d)}t.bitmap.data=o,t.bitmap.width=e,t.bitmap.height=r}(t,n,i,e)}(this)}catch(t){}return r.call(this,null,this),this},h.getBuffer=i,h.getBufferAsync=function(t){return(0,r.default)(i,this,t)};var g=e(f("@babel/runtime/helpers/slicedToArray")),a=e(f("file-type")),o=e(f("exif-parser")),s=f("@jimp/utils"),n=t(f("../constants")),l=t(f("./mime")),r=e(f("./promisify"));function u(t){return t._exif&&t._exif.tags&&t._exif.tags.Orientation||1}function i(t,e){if(t===n.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=m.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,f("buffer").Buffer)},{"../constants":371,"./mime":376,"./promisify":377,"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/interopRequireWildcard":11,"@babel/runtime/helpers/slicedToArray":18,"@jimp/utils":414,buffer:47,"exif-parser":240,"file-type":249}],376:[function(t,e,r){"use strict";t("core-js/modules/es.array.find"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.entries"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.split"),Object.defineProperty(r,"__esModule",{value:!0}),r.getExtension=r.getType=r.addType=void 0;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(".").pop())[0]};r.getExtension=function(t){return(n[t.toLowerCase()]||[])[0]}},{"core-js/modules/es.array.find":177,"core-js/modules/es.array.includes":179,"core-js/modules/es.array.slice":186,"core-js/modules/es.object.entries":193,"core-js/modules/es.regexp.exec":200,"core-js/modules/es.string.includes":202,"core-js/modules/es.string.split":206}],377:[function(t,e,r){"use strict";t("core-js/modules/es.function.bind"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;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/es.function.bind":188,"core-js/modules/es.object.to-string":197,"core-js/modules/es.promise":199}],378:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireWildcard"),i=t("@babel/runtime/helpers/interopRequireDefault");t("core-js/modules/es.symbol"),t("core-js/modules/es.array.filter"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.is-array"),t("core-js/modules/es.object.define-properties"),t("core-js/modules/es.object.define-property"),t("core-js/modules/es.object.entries"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.get-own-property-descriptors"),t("core-js/modules/es.object.keys"),t("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:l.default,i={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function r(t){Object.entries(t).forEach(function(t){var e=(0,s.default)(t,2),r=e[0],n=e[1];i[r]=f({},i[r],{},n)})}t.types&&(t.types.forEach(function(t){var e=t();Array.isArray(e.mime)?l.addType.apply(void 0,(0,a.default)(e.mime)):Object.entries(e.mime).forEach(function(t){return l.addType.apply(void 0,(0,a.default)(t))}),delete e.mime,r(e)}),e.decoders=f({},e.decoders,{},i.decoders),e.encoders=f({},e.encoders,{},i.encoders),e.hasAlpha=f({},e.hasAlpha,{},i.hasAlpha));t.plugins&&t.plugins.forEach(function(t){var e=t(l.jimpEvChange)||{};e.class||e.constants?r(e):r({class:e})});return(0,l.addJimpMethods)(i.class,e),(0,l.addConstants)(i.constants,e),l.default};var a=i(t("@babel/runtime/helpers/toConsumableArray")),o=i(t("@babel/runtime/helpers/defineProperty")),s=i(t("@babel/runtime/helpers/slicedToArray")),l=n(t("@jimp/core"));function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(r,!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}e.exports=r.default},{"@babel/runtime/helpers/defineProperty":7,"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/interopRequireWildcard":11,"@babel/runtime/helpers/slicedToArray":18,"@babel/runtime/helpers/toConsumableArray":19,"@jimp/core":372,"core-js/modules/es.array.filter":175,"core-js/modules/es.array.for-each":178,"core-js/modules/es.array.is-array":181,"core-js/modules/es.object.define-properties":191,"core-js/modules/es.object.define-property":192,"core-js/modules/es.object.entries":193,"core-js/modules/es.object.get-own-property-descriptor":194,"core-js/modules/es.object.get-own-property-descriptors":195,"core-js/modules/es.object.keys":196,"core-js/modules/es.symbol":207,"core-js/modules/web.dom-collections.for-each":235}],379:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(t("@jimp/custom")),a=n(t("@jimp/types")),o=n(t("@jimp/plugins")),s=(0,i.default)({types:[a.default],plugins:[o.default]});r.default=s,e.exports=r.default},{"@babel/runtime/helpers/interopRequireDefault":10,"@jimp/custom":378,"@jimp/plugins":407,"@jimp/types":413}],380:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(t("@babel/runtime/helpers/typeof")),a=t("@jimp/utils");r.default=function(){return{blit:function(t,p,b,m,g,e,r,n){if(!(t instanceof this.constructor))return a.throwError.call(this,"The source must be a Jimp image",n);if("number"!=typeof p||"number"!=typeof b)return a.throwError.call(this,"x and y must be numbers",n);if("function"==typeof m)n=m,g=m=0,e=t.bitmap.width,r=t.bitmap.height;else{if((0,i.default)(m)!==(0,i.default)(g)||(0,i.default)(g)!==(0,i.default)(e)||(0,i.default)(e)!==(0,i.default)(r))return a.throwError.call(this,"srcx, srcy, srcw, srch must be numbers",n);m=m||0,g=g||0,e=e||t.bitmap.width,r=r||t.bitmap.height}p=Math.round(p),b=Math.round(b),m=Math.round(m),g=Math.round(g),e=Math.round(e),r=Math.round(r);var y=this.bitmap.width,v=this.bitmap.height,_=this;return t.scanQuiet(m,g,e,r,function(t,e,r){var n=p+t-m,i=b+e-g;if(0<=n&&0<=i&&0<y-n&&0<v-i){var a=_.getPixelIndex(n,i),o=this.bitmap.data[r],s=this.bitmap.data[r+1],l=this.bitmap.data[r+2],u=this.bitmap.data[r+3],f=_.bitmap.data[a],h=_.bitmap.data[a+1],c=_.bitmap.data[a+2],d=_.bitmap.data[a+3];_.bitmap.data[a]=(u*(o-f)-f+255>>8)+f,_.bitmap.data[a+1]=(u*(s-h)-h+255>>8)+h,_.bitmap.data[a+2]=(u*(l-c)-c+255>>8)+c,_.bitmap.data[a+3]=this.constructor.limit255(d+u)}}),(0,a.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/typeof":20,"@jimp/utils":414}],381:[function(t,e,r){"use strict";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]},{}],382:[function(t,e,r){"use strict";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,a,o,s,l,u,f,h,c,d,p,b,m=this.bitmap.width-1,g=this.bitmap.height-1,y=t+1,v=T.mulTable[t],_=T.shgTable[t],w=[],x=[],E=[],k=[],j=[],S=[],A=2;0<A--;){for(s=p=d=0;s<this.bitmap.height;s++){for(r=this.bitmap.data[p]*y,n=this.bitmap.data[p+1]*y,i=this.bitmap.data[p+2]*y,a=this.bitmap.data[p+3]*y,l=1;l<=t;l++)u=p+((m<l?m:l)<<2),r+=this.bitmap.data[u++],n+=this.bitmap.data[u++],i+=this.bitmap.data[u++],a+=this.bitmap.data[u];for(o=0;o<this.bitmap.width;o++)w[d]=r,x[d]=n,E[d]=i,k[d]=a,0===s&&(j[o]=((u=o+y)<m?u:m)<<2,S[o]=0<(u=o-t)?u<<2:0),f=p+j[o],h=p+S[o],r+=this.bitmap.data[f++]-this.bitmap.data[h++],n+=this.bitmap.data[f++]-this.bitmap.data[h++],i+=this.bitmap.data[f++]-this.bitmap.data[h++],a+=this.bitmap.data[f]-this.bitmap.data[h],d++;p+=this.bitmap.width<<2}for(o=0;o<this.bitmap.width;o++){for(r=w[c=o]*y,n=x[c]*y,i=E[c]*y,a=k[c]*y,l=1;l<=t;l++)r+=w[c+=g<l?0:this.bitmap.width],n+=x[c],i+=E[c],a+=k[c];for(d=o<<2,s=0;s<this.bitmap.height;s++)b=a*v>>>_,255<(this.bitmap.data[d+3]=b)&&(this.bitmap.data[d+3]=255),0<b?(b=255/b,this.bitmap.data[d]=(r*v>>>_)*b,this.bitmap.data[d+1]=(n*v>>>_)*b,this.bitmap.data[d+2]=(i*v>>>_)*b):(this.bitmap.data[d+2]=0,this.bitmap.data[d+1]=0,this.bitmap.data[d]=0),0===o&&(j[s]=((u=s+y)<g?u:g)*this.bitmap.width,S[s]=0<(u=s-t)?u*this.bitmap.width:0),f=o+j[s],h=o+S[s],r+=w[f]-w[h],n+=x[f]-x[h],i+=E[f]-E[h],a+=k[f]-k[h],d+=this.bitmap.width<<2}}return(0,I.isNodePattern)(e)&&e.call(this,null,this),this}}},e.exports=r.default},{"./blur-tables":381,"@jimp/utils":414}],383:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var s=t("@jimp/utils");r.default=function(){return{circle:function(t,e){var r=0<arguments.length&&void 0!==t?t:{},n=1<arguments.length?e:void 0;"function"==typeof r&&(n=r,r={});var i=r.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,a="number"==typeof r.x?r.x:this.bitmap.width/2,o="number"==typeof r.y?r.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=Math.sqrt(Math.pow(t-a,2)+Math.pow(e-o,2));i-n<=0?this.bitmap.data[r+3]=0:i-n<1&&(this.bitmap.data[r+3]=255*(i-n))}),(0,s.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],384:[function(i,a,o){(function(n){"use strict";var t=i("@babel/runtime/helpers/interopRequireDefault");i("core-js/modules/es.array.for-each"),i("core-js/modules/es.array.is-array"),i("core-js/modules/es.array.map"),i("core-js/modules/es.parse-int"),i("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var l=t(i("@babel/runtime/helpers/toConsumableArray")),u=t(i("tinycolor2")),x=i("@jimp/utils");function f(t,e,r,n){for(var i=[0,0,0],a=(e.length-1)/2,o=0;o<e.length;o+=1)for(var s=0;s<e[o].length;s+=1){var l=t.getPixelIndex(r+o-a,n+s-a);i[0]+=t.bitmap.data[l]*e[o][s],i[1]+=t.bitmap.data[l+1]*e[o][s],i[2]+=t.bitmap.data[l+2]*e[o][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,x.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(a,o){var s=this;return a&&Array.isArray(a)?(a=a.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){function n(t,e){return s.constructor.limit255(i[t]+e)}var i={r:s.bitmap.data[r],g:s.bitmap.data[r+1],b:s.bitmap.data[r+2]};a.forEach(function(t){if("mix"===t.apply)i=c(i,t.params[0],t.params[1]);else if("tint"===t.apply)i=c(i,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)i=c(i,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)i={r:i.r^t.params[0].r,g:i.g^t.params[0].g,b:i.b^t.params[0].b};else if("red"===t.apply)i.r=n("r",t.params[0]);else if("green"===t.apply)i.g=n("g",t.params[0]);else if("blue"===t.apply)i.b=n("b",t.params[0]);else{var e;if("hue"===t.apply&&(t.apply="spin"),!(i=(0,u.default)(i))[t.apply])return x.throwError.call(s,"action "+t.apply+" not supported",o);i=(e=i)[t.apply].apply(e,(0,l.default)(t.params)).toRgb()}}),s.bitmap.data[r]=i.r,s.bitmap.data[r+1]=i.g,s.bitmap.data[r+2]=i.b}),(0,x.isNodePattern)(o)&&o.call(this,null,this),this):x.throwError.call(this,"actions must be an array",o)}o.default=function(){return{brightness:function(n,t){return"number"!=typeof n?x.throwError.call(this,"val must be numbers",t):n<-1||1<n?x.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,x.isNodePattern)(t)&&t.call(this,null,this),this)},contrast:function(t,e){if("number"!=typeof t)return x.throwError.call(this,"val must be numbers",e);if(t<-1||1<t)return x.throwError.call(this,"val must be a number between -1 and +1",e);var r=(t+1)/(1-t);function n(t){return(t=Math.floor(r*(t-127)+127))<0?0:255<t?255:t}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,x.isNodePattern)(e)&&e.call(this,null,this),this},posterize:function(n,t){return"number"!=typeof n?x.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,x.isNodePattern)(t)&&t.call(this,null,this),this)},greyscale:e,grayscale:e,opacity:function(i,t){return"number"!=typeof i?x.throwError.call(this,"f must be a number",t):i<0||1<i?x.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,x.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],a=this.bitmap.data[r+2];a=.272*(n=.393*n+.769*i+.189*a)+.534*(i=.349*n+.686*i+.168*a)+.131*a,this.bitmap.data[r]=n<255?n:255,this.bitmap.data[r+1]=i<255?i:255,this.bitmap.data[r+2]=a<255?a:255}),(0,x.isNodePattern)(t)&&t.call(this,null,this),this},fade:function(t,e){return"number"!=typeof t?x.throwError.call(this,"f must be a number",e):t<0||1<t?x.throwError.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),(0,x.isNodePattern)(e)&&e.call(this,null,this),this)},convolution:function(a,o,t){"function"==typeof o&&void 0===t&&(t=o,o=null),o=o||this.constructor.EDGE_EXTEND;var s,l,u,f,h,c,d,p,b,m,g=n.from(this.bitmap.data),e=a.length,r=a[0].length,y=Math.floor(e/2),v=Math.floor(r/2),_=-y,w=-v;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){l=u=f=0;for(var n=_;n<=y;n++)for(var i=w;i<=v;i++)p=t+i,b=e+n,s=a[n+y][i+v],-1===(m=this.getPixelIndex(p,b,o))?h=c=d=0:(h=this.bitmap.data[m+0],c=this.bitmap.data[m+1],d=this.bitmap.data[m+2]),l+=s*h,u+=s*c,f+=s*d;l<0&&(l=0),u<0&&(u=0),f<0&&(f=0),255<l&&(l=255),255<u&&(u=255),255<f&&(f=255),g[r+0]=l,g[r+1]=u,g[r+2]=f}),this.bitmap.data=g,(0,x.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,x.isNodePattern)(t)&&t.call(this,null,this),this},pixelate:function(i,t,e,r,n,a){if("function"==typeof t)a=t,t=e=r=n=null;else{if("number"!=typeof i)return x.throwError.call(this,"size must be a number",a);if(h(t)&&"number"!=typeof t)return x.throwError.call(this,"x must be a number",a);if(h(e)&&"number"!=typeof e)return x.throwError.call(this,"y must be a number",a);if(h(r)&&"number"!=typeof r)return x.throwError.call(this,"w must be a number",a);if(h(n)&&"number"!=typeof n)return x.throwError.call(this,"h must be a number",a)}var o=[[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=f(s,o,t,e);this.bitmap.data[r]=n[0],this.bitmap.data[r+1]=n[1],this.bitmap.data[r+2]=n[2]}),(0,x.isNodePattern)(a)&&a.call(this,null,this),this},convolute:function(i,t,e,r,n,a){if(!Array.isArray(i))return x.throwError.call(this,"the kernel must be an array",a);if("function"==typeof t)a=t,n=r=e=t=null;else{if(h(t)&&"number"!=typeof t)return x.throwError.call(this,"x must be a number",a);if(h(e)&&"number"!=typeof e)return x.throwError.call(this,"y must be a number",a);if(h(r)&&"number"!=typeof r)return x.throwError.call(this,"w must be a number",a);if(h(n)&&"number"!=typeof n)return x.throwError.call(this,"h must be a number",a)}var o=(i.length-1)/2;t=h(t)?t:o,e=h(e)?e:o,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=f(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,x.isNodePattern)(a)&&a.call(this,null,this),this},color:r,colour:r}},a.exports=o.default}).call(this,i("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/toConsumableArray":19,"@jimp/utils":414,buffer:47,"core-js/modules/es.array.for-each":178,"core-js/modules/es.array.is-array":181,"core-js/modules/es.array.map":184,"core-js/modules/es.parse-int":198,"core-js/modules/web.dom-collections.for-each":235,tinycolor2:357}],385:[function(t,e,r){"use strict";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 a=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=r>>3;if((0==a||a&a-1)&&(0==o||o&o-1))return h.throwError.call(this,"only use one flag per alignment direction",i);var s=a>>1,l=o>>1,u=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,f=this.cloneQuiet().scale(u,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(f,(this.bitmap.width-f.bitmap.width)/2*s,(this.bitmap.height-f.bitmap.height)/2*l),(0,h.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],386:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var f=t("@jimp/utils");r.default=function(){return{cover:function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return f.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 a=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=r>>3;if((0==a||a&a-1)&&(0==o||o&o-1))return f.throwError.call(this,"only use one flag per alignment direction",i);var s=a>>1,l=o>>1,u=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(u,n),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*l,t,e),(0,f.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],387:[function(e,r,n){(function(u){"use strict";var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.slice"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){return t("crop",function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e)return z.throwError.call(this,"x and y must be numbers",i);if("number"!=typeof r||"number"!=typeof n)return z.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 a=r*e+t<<2,o=a+n*r<<2;this.bitmap.data=this.bitmap.data.slice(a,o)}else{var s=u.allocUnsafe(r*n*4),l=0;this.scanQuiet(t,e,r,n,function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);s.writeUInt32BE(n,l,!0),l+=4}),this.bitmap.data=s}return this.bitmap.width=r,this.bitmap.height=n,(0,z.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,a=!0,o=!1,s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];for(var f=0,h=l.length;f<h;f++)if("number"==typeof l[f]&&(i=l[f]),"boolean"==typeof l[f]&&(a=l[f]),"function"==typeof l[f]&&(t=l[f]),"object"===(0,U.default)(l[f])){var c=l[f];void 0!==c.tolerance&&(i=c.tolerance),void 0!==c.cropOnlyFrames&&(a=c.cropOnlyFrames),void 0!==c.cropSymmetric&&(o=c.cropSymmetric),void 0!==c.leaveBorder&&(n=c.leaveBorder)}var d=this.getPixelColor(0,0),p=this.constructor.intToRGBA(d),b=0,m=0,g=0,y=0;d=this.getPixelColor(0,0);t:for(var v=0;v<r-1;v++){for(var _=0;_<e;_++){var w=this.getPixelColor(_,v),x=this.constructor.intToRGBA(w);if(this.constructor.colorDiff(p,x)>i)break t}b++}d=this.getPixelColor(e,0);t:for(var E=0;E<e-1;E++){for(var k=0+b;k<r;k++){var j=this.getPixelColor(E,k),S=this.constructor.intToRGBA(j);if(this.constructor.colorDiff(p,S)>i)break t}m++}d=this.getPixelColor(0,r);t:for(var A=r-1;b+1<=A;A--){for(var I=e-m-1;0<=I;I--){var T=this.getPixelColor(I,A),O=this.constructor.intToRGBA(T);if(this.constructor.colorDiff(p,O)>i)break t}g++}d=this.getPixelColor(e,r);t:for(var R=e-1;0+m+1<=R;R--){for(var P=r-1;0+b<=P;P--){var M=this.getPixelColor(R,P),L=this.constructor.intToRGBA(M);if(this.constructor.colorDiff(p,L)>i)break t}y++}if(y-=n,m-=n,b-=n,g-=n,o){var C=Math.min(m,y),B=Math.min(b,g);m=y=C,g=b=B}var D=e-((y=0<=y?y:0)+(m=0<=m?m:0)),N=r-((g=0<=g?g:0)+(b=0<=b?b:0));return(a?0!==m&&0!==b&&0!==y&&0!==g:0!==m||0!==b||0!==y||0!==g)&&this.crop(m,b,D,N),(0,z.isNodePattern)(t)&&t.call(this,null,this),this}}}};var U=t(e("@babel/runtime/helpers/typeof")),z=e("@jimp/utils");r.exports=n.default}).call(this,e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/typeof":20,"@jimp/utils":414,buffer:47,"core-js/modules/es.array.slice":186}],388:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(t("@babel/runtime/helpers/typeof")),l=t("@jimp/utils");r.default=function(){return{displace:function(a,o,t){if("object"!==(0,i.default)(a)||a.constructor!==this.constructor)return l.throwError.call(this,"The source must be a Jimp image",t);if("number"!=typeof o)return l.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=a.bitmap.data[r]/256*o;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,l.isNodePattern)(t)&&t.call(this,null,this),this}}},e.exports=r.default},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/typeof":20,"@jimp/utils":414}],389:[function(t,e,r){"use strict";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":414}],390:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=t("@jimp/utils");r.default=function(){return{fisheye:function(t,e){var h=this,c=0<arguments.length&&void 0!==t?t:{r:2.5},r=1<arguments.length?e:void 0;"function"==typeof c&&(r=c,c={r:2.5});var d=this.cloneQuiet(),n=d.bitmap,p=n.width,b=n.height;return d.scanQuiet(0,0,p,b,function(t,e){var r=t/p,n=e/b,i=Math.sqrt(Math.pow(r-.5,2)+Math.pow(n-.5,2)),a=2*Math.pow(i,c.r),o=(r-.5)/i,s=(n-.5)/i,l=Math.round((a*o+.5)*p),u=Math.round((a*s+.5)*b),f=d.getPixelColor(l,u);h.setPixelColor(f,t,e)}),this.setPixelColor(d.getPixelColor(p/2,b/2),p/2,b/2),(0,i.isNodePattern)(r)&&r.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],391:[function(n,i,a){(function(e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var r=n("@jimp/utils");function t(s,l,t){if("boolean"!=typeof s||"boolean"!=typeof l)return r.throwError.call(this,"horizontal and vertical must be Booleans",t);var u=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=l?this.bitmap.height-1-e:e,a=this.bitmap.width*i+n<<2,o=this.bitmap.data.readUInt32BE(r);u.writeUInt32BE(o,a)}),this.bitmap.data=e.from(u),(0,r.isNodePattern)(t)&&t.call(this,null,this),this}a.default=function(){return{flip:t,mirror:t}},i.exports=a.default}).call(this,n("buffer").Buffer)},{"@jimp/utils":414,buffer:47}],392:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var k=t("@jimp/utils");r.default=function(){return{gaussian:function(t,e){if("number"!=typeof t)return k.throwError.call(this,"r must be a number",e);if(t<1)return k.throwError.call(this,"r must be greater than 0",e);for(var r=Math.ceil(2.57*t),n=2*r+1,i=t*t*2,a=i*Math.PI,o=[],s=0;s<n;s++){o[s]=[];for(var l=0;l<n;l++){var u=Math.pow(l-r,2)+Math.pow(s-r,2);o[s][l]=Math.exp(-u/i)/a}}for(var f=0;f<this.bitmap.height;f++)for(var h=0;h<this.bitmap.width;h++)for(var c=0,d=0,p=0,b=0,m=0,g=0;g<n;g++){for(var y=0;y<n;y++){var v=Math.min(this.bitmap.width-1,Math.max(0,y+h-r)),_=Math.min(this.bitmap.height-1,Math.max(0,g+f-r)),w=o[g][y],x=_*this.bitmap.width+v<<2;c+=this.bitmap.data[x]*w,d+=this.bitmap.data[1+x]*w,p+=this.bitmap.data[2+x]*w,b+=this.bitmap.data[3+x]*w,m+=w}var E=f*this.bitmap.width+h<<2;this.bitmap.data[E]=Math.round(c/m),this.bitmap.data[1+E]=Math.round(d/m),this.bitmap.data[2+E]=Math.round(p/m),this.bitmap.data[3+E]=Math.round(b/m)}return(0,k.isNodePattern)(e)&&e.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],393:[function(t,e,r){"use strict";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":414}],394:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=t("@jimp/utils");r.default=function(){return{mask:function(t,e,r,n){var l=1<arguments.length&&void 0!==e?e:0,u=2<arguments.length&&void 0!==r?r:0,i=3<arguments.length?n:void 0;if(!(t instanceof this.constructor))return a.throwError.call(this,"The source must be a Jimp image",i);if("number"!=typeof l||"number"!=typeof u)return a.throwError.call(this,"x and y must be numbers",i);l=Math.round(l),u=Math.round(u);var f=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=l+t,i=u+e;if(0<=n&&0<=i&&n<f&&i<h){var a=c.getPixelIndex(n,i),o=this.bitmap.data,s=(o[r+0]+o[r+1]+o[r+2])/3;c.bitmap.data[a+3]*=s/255}}),(0,a.isNodePattern)(i)&&i.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],395:[function(t,e,r){"use strict";t("core-js/modules/es.array.fill"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.reverse"),t("core-js/modules/es.array.slice"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;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),o={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],a=this.bitmap.data[r+2];this.bitmap.data[r+0]=s(n,o.r[0],o.r[1]),this.bitmap.data[r+1]=s(i,o.g[0],o.g[1]),this.bitmap.data[r+2]=s(a,o.b[0],o.b[1])}),(0,n.isNodePattern)(t)&&t.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414,"core-js/modules/es.array.fill":174,"core-js/modules/es.array.find-index":176,"core-js/modules/es.array.reverse":185,"core-js/modules/es.array.slice":186}],396:[function(n,a,o){(function(t){"use strict";var e=n("@babel/runtime/helpers/interopRequireDefault");n("core-js/modules/es.array.concat"),n("core-js/modules/es.array.for-each"),n("core-js/modules/es.array.iterator"),n("core-js/modules/es.array.join"),n("core-js/modules/es.array.map"),n("core-js/modules/es.date.to-string"),n("core-js/modules/es.object.entries"),n("core-js/modules/es.object.to-string"),n("core-js/modules/es.promise"),n("core-js/modules/es.regexp.exec"),n("core-js/modules/es.regexp.to-string"),n("core-js/modules/es.string.iterator"),n("core-js/modules/es.string.split"),n("core-js/modules/web.dom-collections.for-each"),n("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var p=e(n("@babel/runtime/helpers/typeof")),b=e(n("@babel/runtime/helpers/toConsumableArray")),f=e(n("path")),i=e(n("load-bmfont")),m=n("@jimp/utils"),g=n("./measure-text");function y(t,e,r,n,i){if(0<i.width&&0<i.height){var a=e.pages[i.page];t.blit(a,r+i.xoffset,n+i.yoffset,i.x,i.y,i.width,i.height)}return t}var r="browser/lib/";o.default=function(){return{constants:{measureText:g.measureText,measureTextHeight:g.measureTextHeight,FONT_SANS_8_BLACK:f.default.join(r,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:f.default.join(r,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:f.default.join(r,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:f.default.join(r,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:f.default.join(r,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:f.default.join(r,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:f.default.join(r,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:f.default.join(r,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:f.default.join(r,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:f.default.join(r,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:f.default.join(r,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:f.default.join(r,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:f.default.join(r,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(s,l){var u=this;return"string"!=typeof s?m.throwError.call(this,"file must be a string",l):new Promise(function(r,n){l=l||function(t,e){t?n(t):r(e)},(0,i.default)(s,function(t,e){var r={},n={};if(t)return m.throwError.call(u,t,l);for(var i=0;i<e.chars.length;i++)r[String.fromCharCode(e.chars[i].id)]=e.chars[i];for(var a=0;a<e.kernings.length;a++){var o=String.fromCharCode(e.kernings[a].first);n[o]=n[o]||{},n[o][String.fromCharCode(e.kernings[a].second)]=e.kernings[a].amount}(function(e,r,t){var n=t.map(function(t){return e.read(r+"/"+t)});return Promise.all(n)})(u,f.default.dirname(s),e.pages).then(function(t){l(null,{chars:r,kernings:n,pages:t,common:e.common,info:e.info})})})})}},class:{print:function(n,i,a,t,o,e,r){var s,l,u=this;if("function"==typeof o&&void 0===r&&(r=o,o=1/0),void 0===o&&(o=1/0),"function"==typeof e&&void 0===r&&(r=e,e=1/0),void 0===e&&(e=1/0),"object"!==(0,p.default)(n))return m.throwError.call(this,"font must be a Jimp loadFont",r);if("number"!=typeof i||"number"!=typeof a||"number"!=typeof o)return m.throwError.call(this,"x, y and maxWidth must be numbers",r);if("number"!=typeof o)return m.throwError.call(this,"maxWidth must be a number",r);if("number"!=typeof e)return m.throwError.call(this,"maxHeight must be a number",r);"object"===(0,p.default)(t)&&null!==t.text&&void 0!==t.text?(s=t.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,l=t.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,t=t.text):(s=this.constructor.HORIZONTAL_ALIGN_LEFT,l=this.constructor.VERTICAL_ALIGN_TOP,t=t.toString());e!==1/0&&l===this.constructor.VERTICAL_ALIGN_BOTTOM?a+=e-(0,g.measureTextHeight)(n,t,o):e!==1/0&&l===this.constructor.VERTICAL_ALIGN_MIDDLE&&(a+=e/2-(0,g.measureTextHeight)(n,t,o)/2);var f=Object.entries(n.chars)[0][1].xadvance,h=function(n,t,i){var e=t.split(" "),a=[],o=[],s=0;return e.forEach(function(t){var e=[].concat((0,b.default)(o),[t]).join(" "),r=(0,g.measureText)(n,e);r<=i?(s<r&&(s=r),o.push(t)):(a.push(o),o=[t])}),a.push(o),{lines:a,longestLine:s}}(n,t,o),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,g.measureText)(e,r))/2:n-(0,g.measureText)(e,r)}(u.constructor,n,e,o,s);(function(t,e,r,n,i){for(var a=0;a<n.length;a++){var o=void 0;o=t.chars[n[a]]?n[a]:/\s/.test(n[a])?"":"?";var s=t.chars[o]||{},l=t.kernings[o];y(this,t,e,r,s||{}),e+=(l&&l[n[a+1]]?l[n[a+1]]:0)+(s.xadvance||i)}}).call(u,n,i+r,a,e,f),a+=n.common.lineHeight}),(0,m.isNodePattern)(r)&&r.call(this,null,this,{x:i+d,y:a}),this}}}},a.exports=o.default}).call(this,"/../../node_modules/@jimp/plugin-print/dist")},{"./measure-text":397,"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/toConsumableArray":19,"@babel/runtime/helpers/typeof":20,"@jimp/utils":414,"core-js/modules/es.array.concat":173,"core-js/modules/es.array.for-each":178,"core-js/modules/es.array.iterator":182,"core-js/modules/es.array.join":183,"core-js/modules/es.array.map":184,"core-js/modules/es.date.to-string":187,"core-js/modules/es.object.entries":193,"core-js/modules/es.object.to-string":197,"core-js/modules/es.promise":199,"core-js/modules/es.regexp.exec":200,"core-js/modules/es.regexp.to-string":201,"core-js/modules/es.string.iterator":203,"core-js/modules/es.string.split":206,"core-js/modules/web.dom-collections.for-each":235,"core-js/modules/web.dom-collections.iterator":236,"load-bmfont":398,path:286}],397:[function(t,e,r){"use strict";function u(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/es.regexp.exec"),t("core-js/modules/es.string.split"),Object.defineProperty(r,"__esModule",{value:!0}),r.measureText=u,r.measureTextHeight=function(t,e,r){for(var n=e.split(" "),i="",a=t.common.lineHeight,o=0;o<n.length;o++){var s=i+n[o]+" ",l=u(t,s);i=r<l&&0<o?(a+=t.common.lineHeight,n[o]+" "):s}return a}},{"core-js/modules/es.regexp.exec":200,"core-js/modules/es.string.split":206}],398:[function(e,i,t){(function(u){function f(){}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,l){l="function"==typeof l?l:f,(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 l(t);if(!/^2/.test(e.statusCode))return l(new Error("http status code: "+e.statusCode));if(!r)return l(new Error("no body result"));var n,i=!1;if(function(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}(r)){var a=new Uint8Array(r);r=new u(a,"binary")}p(r)&&(i=!0,"string"==typeof r&&(r=new u(r,"binary"))),i||(u.isBuffer(r)&&(r=r.toString(s.encoding)),r=r.trim());try{var o=e.headers["content-type"];n=i?d(r):/json/.test(o)||"{"===r.charAt(0)?JSON.parse(r):/xml/.test(o)||"<"===r.charAt(0)?c(r):h(r)}catch(t){l(new Error("error parsing font "+t.message)),l=f}l(null,n)})}}).call(this,e("buffer").Buffer)},{"./lib/is-binary":399,buffer:47,"parse-bmfont-ascii":281,"parse-bmfont-binary":282,"parse-bmfont-xml":283,xhr:366,xtend:368}],399:[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:47,"buffer-equal":48}],400:[function(e,r,n){(function(s){"use strict";var t=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=e("@jimp/utils"),u=t(e("./modules/resize")),f=t(e("./modules/resize2"));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 l.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 l.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 l.throwError.call(this,"w and h must be positive numbers",n);if(e=Math.round(e),r=Math.round(r),"function"==typeof f.default[t]){var i={data:s.alloc(e*r*4),width:e,height:r};f.default[t](this.bitmap,i),this.bitmap=i}else{var a=this,o=new u.default(this.bitmap.width,this.bitmap.height,e,r,!0,!0,function(t){a.bitmap.data=s.from(t),a.bitmap.width=e,a.bitmap.height=r});o.resize(this.bitmap.data)}return(0,l.isNodePattern)(n)&&n.call(this,null,this),this}}}},r.exports=n.default}).call(this,e("buffer").Buffer)},{"./modules/resize":401,"./modules/resize2":402,"@babel/runtime/helpers/interopRequireDefault":10,"@jimp/utils":414,buffer:47}],401:[function(t,e,r){"use strict";function n(t,e,r,n,i,a,o){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(a),this.resizeCallback="function"==typeof o?o: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/es.array.iterator"),t("core-js/modules/es.array-buffer.slice"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.typed-array.float32-array"),t("core-js/modules/es.typed-array.float64-array"),t("core-js/modules/es.typed-array.uint8-array"),t("core-js/modules/es.typed-array.copy-within"),t("core-js/modules/es.typed-array.every"),t("core-js/modules/es.typed-array.fill"),t("core-js/modules/es.typed-array.filter"),t("core-js/modules/es.typed-array.find"),t("core-js/modules/es.typed-array.find-index"),t("core-js/modules/es.typed-array.for-each"),t("core-js/modules/es.typed-array.includes"),t("core-js/modules/es.typed-array.index-of"),t("core-js/modules/es.typed-array.iterator"),t("core-js/modules/es.typed-array.join"),t("core-js/modules/es.typed-array.last-index-of"),t("core-js/modules/es.typed-array.map"),t("core-js/modules/es.typed-array.reduce"),t("core-js/modules/es.typed-array.reduce-right"),t("core-js/modules/es.typed-array.reverse"),t("core-js/modules/es.typed-array.set"),t("core-js/modules/es.typed-array.slice"),t("core-js/modules/es.typed-array.some"),t("core-js/modules/es.typed-array.sort"),t("core-js/modules/es.typed-array.subarray"),t("core-js/modules/es.typed-array.to-locale-string"),t("core-js/modules/es.typed-array.to-string"),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,a=this.ratioWeightWidthPass,o=this.widthBuffer,s=0,l=0,u=0,f=0,h=0;for(r=0;s<1/3;r+=i,s+=a)for(l=r,u=0;l<this.widthPassResultSize;u+=this.originalWidthMultipliedByChannels,l+=this.targetWidthMultipliedByChannels)o[l]=t[u],o[l+1]=t[u+1],o[l+2]=t[u+2],e&&(o[l+3]=t[u+3]);for(s-=1/3,n=this.widthOriginal-1;s<n;r+=i,s+=a)for(f=1-(h=s%1),l=r,u=Math.floor(s)*i;l<this.widthPassResultSize;u+=this.originalWidthMultipliedByChannels,l+=this.targetWidthMultipliedByChannels)o[l+0]=t[u+0]*f+t[u+i+0]*h,o[l+1]=t[u+1]*f+t[u+i+1]*h,o[l+2]=t[u+2]*f+t[u+i+2]*h,e&&(o[l+3]=t[u+3]*f+t[u+i+3]*h);for(n=this.originalWidthMultipliedByChannels-i;r<this.targetWidthMultipliedByChannels;r+=i)for(l=r,u=n;l<this.widthPassResultSize;u+=this.originalWidthMultipliedByChannels,l+=this.targetWidthMultipliedByChannels)o[l]=t[u],o[l+1]=t[u+1],o[l+2]=t[u+2],e&&(o[l+3]=t[u+3]);return o},n.prototype._resizeWidthRGBChannels=function(t,e){var r=e?4:3,n=this.ratioWeightWidthPass,i=1/n,a=this.originalWidthMultipliedByChannels-r+1,o=this.targetWidthMultipliedByChannels-r+1,s=this.outputWidthWorkBench,l=this.widthBuffer,u=this.outputWidthWorkBenchOpaquePixelsCount,f=0,h=0,c=0,d=0,p=0,b=0,m=0,g=1,y=0,v=0,_=0,w=0;do{for(p=0;p<this.originalHeightMultipliedByChannels;)s[p++]=0,s[p++]=0,s[p++]=0,e&&(s[p++]=0,u[p/r-1]=0);f=n;do{for(h=1+c-d,g=Math.min(f,h),p=0,b=c;p<this.originalHeightMultipliedByChannels;b+=a)y=t[b],v=t[++b],_=t[++b],w=e?t[++b]:255,s[p++]+=(w?y:0)*g,s[p++]+=(w?v:0)*g,s[p++]+=(w?_:0)*g,e&&(s[p++]+=w*g,u[p/r-1]+=w?g:0);if(!(h<=f)){d+=f;break}d=c+=r,f-=h}while(0<f&&c<this.originalWidthMultipliedByChannels);for(p=0,b=m;p<this.originalHeightMultipliedByChannels;b+=o)f=e?u[p/r]:1,g=e?f?1/f:0:i,l[b]=s[p++]*g,l[++b]=s[p++]*g,l[++b]=s[p++]*g,e&&(l[++b]=s[p++]*i);m+=r}while(m<this.targetWidthMultipliedByChannels);return l},n.prototype._resizeHeightRGBChannels=function(t,e){var r=this.ratioWeightHeightPass,n=1/r,i=this.outputHeightWorkBench,a=this.heightBuffer,o=this.outputHeightWorkBenchOpaquePixelsCount,s=0,l=0,u=0,f=0,h=0,c=0,d=0,p=1,b=0,m=0,g=0,y=0;do{for(h=0;h<this.targetWidthMultipliedByChannels;)i[h++]=0,i[h++]=0,i[h++]=0,e&&(i[h++]=0,o[h/4-1]=0);s=r;do{for(l=1+u-f,p=Math.min(s,l),d=u,h=0;h<this.targetWidthMultipliedByChannels;)b=t[d++],m=t[d++],g=t[d++],y=e?t[d++]:255,i[h++]+=(y?b:0)*p,i[h++]+=(y?m:0)*p,i[h++]+=(y?g:0)*p,e&&(i[h++]+=y*p,o[h/4-1]+=y?p:0);if(!(l<=s)){f+=s;break}f=u=d,s-=l}while(0<s&&u<this.widthPassResultSize);for(h=0;h<this.targetWidthMultipliedByChannels;)s=e?o[h/4]:1,p=e?s?1/s:0:n,a[c++]=Math.round(i[h++]*p),a[c++]=Math.round(i[h++]*p),a[c++]=Math.round(i[h++]*p),e&&(a[c++]=Math.round(i[h++]*n))}while(c<this.finalResultSize);return a},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,a=0,o=0,s=0,l=0,u=0,f=0;i<1/3;i+=r)for(o=0;o<this.targetWidthMultipliedByChannels;)n[a++]=Math.round(t[o++]);for(i-=1/3,e=this.heightOriginal-1;i<e;i+=r)for(u=1-(f=i%1),l=(s=Math.floor(i)*this.targetWidthMultipliedByChannels)+this.targetWidthMultipliedByChannels,o=0;o<this.targetWidthMultipliedByChannels;++o)n[a++]=Math.round(t[s++]*u+t[l++]*f);for(;a<this.finalResultSize;)for(o=0,s=e*this.targetWidthMultipliedByChannels;o<this.targetWidthMultipliedByChannels;++o)n[a++]=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/es.array-buffer.slice":172,"core-js/modules/es.array.iterator":182,"core-js/modules/es.object.to-string":197,"core-js/modules/es.typed-array.copy-within":208,"core-js/modules/es.typed-array.every":209,"core-js/modules/es.typed-array.fill":210,"core-js/modules/es.typed-array.filter":211,"core-js/modules/es.typed-array.find":213,"core-js/modules/es.typed-array.find-index":212,"core-js/modules/es.typed-array.float32-array":214,"core-js/modules/es.typed-array.float64-array":215,"core-js/modules/es.typed-array.for-each":216,"core-js/modules/es.typed-array.includes":217,"core-js/modules/es.typed-array.index-of":218,"core-js/modules/es.typed-array.iterator":219,"core-js/modules/es.typed-array.join":220,"core-js/modules/es.typed-array.last-index-of":221,"core-js/modules/es.typed-array.map":222,"core-js/modules/es.typed-array.reduce":224,"core-js/modules/es.typed-array.reduce-right":223,"core-js/modules/es.typed-array.reverse":225,"core-js/modules/es.typed-array.set":226,"core-js/modules/es.typed-array.slice":227,"core-js/modules/es.typed-array.some":228,"core-js/modules/es.typed-array.sort":229,"core-js/modules/es.typed-array.subarray":230,"core-js/modules/es.typed-array.to-locale-string":231,"core-js/modules/es.typed-array.to-string":232,"core-js/modules/es.typed-array.uint8-array":233}],402:[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,a=e.height,o=t.data,s=e.data,l=0;l<a;l++)for(var u=0;u<i;u++){var f=4*(l*i+u),h=4*(Math.floor(l*n/a)*r+Math.floor(u*r/i));s[f++]=o[h++],s[f++]=o[h++],s[f++]=o[h++],s[f++]=o[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,b=function(t,e,r,n,i){return e===n?r:Math.round((t-e)*i+(n-t)*r)},a=function(t,e,r,n,i,a,o,s){var l=4*(o*c+n)+e,u=4*(o*c+i)+e,f=b(r,n,d[l],i,d[u]);if(s===o)p[t+e]=f;else{u=4*(s*c+i)+e;var h=b(r,n,d[l=4*(s*c+n)+e],i,d[u]);p[t+e]=b(a,o,f,s,h)}},o=0;o<i;o++)for(var s=0;s<n;s++){var l=4*(o*n+s),u=s*c/n,f=Math.floor(u),h=Math.min(Math.ceil(u),c-1),m=o*r/i,g=Math.floor(m),y=Math.min(Math.ceil(m),r-1);a(l,0,u,f,h,m,g,y),a(l,1,u,f,h,m,g,y),a(l,2,u,f,h,m,g,y),a(l,3,u,f,h,m,g,y)}},_interpolate2D:function(t,e,r,n){for(var i=t.data,a=e.data,o=t.width,s=t.height,l=e.width,u=e.height,f=Math.max(1,Math.floor(o/l)),h=l*f,c=Math.max(1,Math.floor(s/u)),d=u*c,p=rt.alloc(h*s*4),b=0;b<s;b++)for(var m=0;m<h;m++)for(var g=m*(o-1)/h,y=Math.floor(g),v=g-y,_=4*(b*o+y),w=4*(b*h+m),x=0;x<4;x++){var E=_+x,k=0<y?i[E-4]:2*i[E]-i[E+4],j=i[E],S=i[E+4],A=y<o-2?i[E+8]:2*i[E+4]-i[E];p[w+x]=n(k,j,S,A,v)}for(var I=rt.alloc(h*d*4),T=0;T<d;T++)for(var O=0;O<h;O++)for(var R=T*(s-1)/d,P=Math.floor(R),M=R-P,L=4*(P*h+O),C=4*(T*h+O),B=0;B<4;B++){var D=L+B,N=0<P?p[D-4*h]:2*p[D]-p[D+4*h],U=p[D],z=p[D+4*h],F=P<s-2?p[D+8*h]:2*p[D+4*h]-p[D];I[C+B]=n(N,U,z,F,M)}var H=f*c;if(1<H)for(var G=0;G<u;G++)for(var q=0;q<l;q++){for(var W=0,Z=0,Y=0,V=0,X=0,J=0;J<c;J++)for(var K=G*c+J,Q=0;Q<f;Q++){var $=4*(K*h+(q*f+Q)),tt=I[3+$];tt&&(W+=I[$],Z+=I[1+$],Y+=I[2+$],X++),V+=tt}var et=4*(G*l+q);a[et]=X?Math.round(W/X):0,a[1+et]=X?Math.round(Z/X):0,a[2+et]=X?Math.round(Y/X):0,a[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 a=n-r-t+e,o=t-e-a,s=r-t,l=e;return Math.max(0,Math.min(255,a*(i*i*i)+i*i*o+s*i+l))})},hermiteInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,function(t,e,r,n,i){var a=e,o=.5*(r-t),s=t-2.5*e+2*r-.5*n,l=.5*(n-t)+1.5*(e-r);return Math.max(0,Math.min(255,Math.round(((l*i+s)*i+o)*i+a)))})},bezierInterpolation:function(t,e,r){return this._interpolate2D(t,e,r,function(t,e,r,n,i){var a=1-i,o=e*a*a*a,s=3*(e+(r-t)/4)*a*a*i,l=3*(r-(n-e)/4)*a*i*i,u=r*i*i*i;return Math.max(0,Math.min(255,Math.round(o+s+l+u)))})}}}).call(this,t("buffer").Buffer)},{buffer:47}],403:[function(t,e,r){(function(k){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=t("@jimp/utils");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):(function(t,e){var r=(t%=360)*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=this.bitmap.width,o=this.bitmap.height;if(!0===e||"string"==typeof e){(a=Math.ceil(Math.abs(this.bitmap.width*n)+Math.abs(this.bitmap.height*i))+1)%2!=0&&a++,(o=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*n))+1)%2!=0&&o++;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 l=Math.max(a,o,this.bitmap.width,this.bitmap.height);this.resize(l,l,e),this.blit(s,this.bitmap.width/2-s.bitmap.width/2,this.bitmap.height/2-s.bitmap.height/2)}var u=this.bitmap.width,f=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(-u/2,-f/2),p=c(u/2+.5,f/2+.5),b=1;b<=f;b++)for(var m=1;m<=u;m++){var g=d(m,b),y=p(n*g.x-i*g.y,n*g.y+i*g.x),v=u*(b-1)+m-1<<2;if(0<=y.x&&y.x<u&&0<=y.y&&y.y<f){var _=(u*(0|y.y)+y.x|0)<<2,w=this.bitmap.data.readUInt32BE(_);h.writeUInt32BE(w,v)}else h.writeUInt32BE(this._background,v)}if(this.bitmap.data=h,!0===e||"string"==typeof e){var x=u/2-a/2,E=f/2-o/2;this.crop(x,E,a,o)}}.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":414,buffer:47}],404:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=t("@jimp/utils");r.default=function(){return{scale:function(t,e,r){if("number"!=typeof t)return a.throwError.call(this,"f must be a number",r);if(t<0)return a.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,a.isNodePattern)(r)&&r.call(this,null,this),this},scaleToFit:function(t,e,r,n){if("number"!=typeof t||"number"!=typeof e)return a.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,a.isNodePattern)(n)&&n.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],405:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var m=t("@jimp/utils");r.default=function(){return{shadow:function(){var n=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length?arguments[1]:void 0;"function"==typeof t&&(e=t,t={});var r=t,i=r.opacity,a=void 0===i?.7:i,o=r.size,s=void 0===o?1.1:o,l=r.x,u=void 0===l?-25:l,f=r.y,h=void 0===f?25:f,c=r.blur,d=void 0===c?5:c,p=this.clone(),b=this.clone();return b.scan(0,0,b.bitmap.width,b.bitmap.height,function(t,e,r){b.bitmap.data[r]=0,b.bitmap.data[r+1]=0,b.bitmap.data[r+2]=0,b.bitmap.data[r+3]=b.constructor.limit255(b.bitmap.data[r+3]*a),n.bitmap.data[r]=0,n.bitmap.data[r+1]=0,n.bitmap.data[r+2]=0,n.bitmap.data[r+3]=0}),b.resize(b.bitmap.width*s,b.bitmap.height*s).blur(d),this.composite(b,u,h),this.composite(p,0,0),(0,m.isNodePattern)(e)&&e.call(this,null,this),this}}},e.exports=r.default},{"@jimp/utils":414}],406:[function(t,e,r){"use strict";t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.replace"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var l=t("@jimp/utils");r.default=function(){return{threshold:function(t,e){var i=this,a=t.max,r=t.replace,o=void 0===r?255:r,n=t.autoGreyscale,s=void 0===n||n;return"number"!=typeof a?l.throwError.call(this,"max must be a number",e):"number"!=typeof o?l.throwError.call(this,"replace must be a number",e):"boolean"!=typeof s?l.throwError.call(this,"autoGreyscale must be a boolean",e):(a=this.constructor.limit255(a),o=this.constructor.limit255(o),s&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var n=i.bitmap.data[r]<a?i.bitmap.data[r]:o;i.bitmap.data[r]=n,i.bitmap.data[r+1]=n,i.bitmap.data[r+2]=n}),(0,l.isNodePattern)(e)&&e.call(this,null,this),this)}}},e.exports=r.default},{"@jimp/utils":414,"core-js/modules/es.regexp.exec":200,"core-js/modules/es.string.replace":205}],407:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");t("core-js/modules/es.array.map"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(t("@babel/runtime/helpers/toConsumableArray")),a=t("timm"),o=n(t("@jimp/plugin-blit")),s=n(t("@jimp/plugin-blur")),l=n(t("@jimp/plugin-circle")),u=n(t("@jimp/plugin-color")),f=n(t("@jimp/plugin-contain")),h=n(t("@jimp/plugin-cover")),c=n(t("@jimp/plugin-crop")),d=n(t("@jimp/plugin-displace")),p=n(t("@jimp/plugin-dither")),b=n(t("@jimp/plugin-fisheye")),m=n(t("@jimp/plugin-flip")),g=n(t("@jimp/plugin-gaussian")),y=n(t("@jimp/plugin-invert")),v=n(t("@jimp/plugin-mask")),_=n(t("@jimp/plugin-normalize")),w=n(t("@jimp/plugin-print")),x=n(t("@jimp/plugin-resize")),E=n(t("@jimp/plugin-rotate")),k=n(t("@jimp/plugin-scale")),j=n(t("@jimp/plugin-shadow")),S=n(t("@jimp/plugin-threshold")),A=[o.default,s.default,l.default,u.default,f.default,h.default,c.default,d.default,p.default,b.default,m.default,g.default,y.default,v.default,_.default,w.default,x.default,E.default,k.default,j.default,S.default];r.default=function(r){var t=A.map(function(t){var e=t(r)||{};return e.class||e.constants||(e={class:e}),e});return a.mergeDeep.apply(void 0,(0,i.default)(t))},e.exports=r.default},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/toConsumableArray":19,"@jimp/plugin-blit":380,"@jimp/plugin-blur":382,"@jimp/plugin-circle":383,"@jimp/plugin-color":384,"@jimp/plugin-contain":385,"@jimp/plugin-cover":386,"@jimp/plugin-crop":387,"@jimp/plugin-displace":388,"@jimp/plugin-dither":389,"@jimp/plugin-fisheye":390,"@jimp/plugin-flip":391,"@jimp/plugin-gaussian":392,"@jimp/plugin-invert":393,"@jimp/plugin-mask":394,"@jimp/plugin-normalize":395,"@jimp/plugin-print":396,"@jimp/plugin-resize":400,"@jimp/plugin-rotate":403,"@jimp/plugin-scale":404,"@jimp/plugin-shadow":405,"@jimp/plugin-threshold":406,"core-js/modules/es.array.map":184,timm:356}],408:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(t("@babel/runtime/helpers/defineProperty")),a=n(t("bmp-js")),o=t("@jimp/utils"),s="image/bmp",l="image/x-ms-bmp";function u(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],a=this.bitmap.data[r+2],o=this.bitmap.data[r+3];this.bitmap.data[r+0]=o,this.bitmap.data[r+1]=a,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=s.is_with_alpha?n:255}).bitmap}(a.default.decode(t))}function f(t){return a.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],a=this.bitmap.data[r+2],o=this.bitmap.data[r+3];this.bitmap.data[r+0]=o,this.bitmap.data[r+1]=a,this.bitmap.data[r+2]=i,this.bitmap.data[r+3]=n}).bitmap}(t)).data}r.default=function(){var t,e;return{mime:(0,i.default)({},s,["bmp"]),constants:{MIME_BMP:s,MIME_X_MS_BMP:l},decoders:(t={},(0,i.default)(t,s,u),(0,i.default)(t,l,u),t),encoders:(e={},(0,i.default)(e,s,f),(0,i.default)(e,l,f),e)}},e.exports=r.default},{"@babel/runtime/helpers/defineProperty":7,"@babel/runtime/helpers/interopRequireDefault":10,"@jimp/utils":414,"bmp-js":29}],409:[function(a,o,s){(function(n){"use strict";var t=a("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var e=t(a("@babel/runtime/helpers/defineProperty")),i=t(a("omggif")),r="image/gif";s.default=function(){return{mime:(0,e.default)({},r,["gif"]),constants:{MIME_GIF:r},decoders:(0,e.default)({},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}})}},o.exports=s.default}).call(this,a("buffer").Buffer)},{"@babel/runtime/helpers/defineProperty":7,"@babel/runtime/helpers/interopRequireDefault":10,buffer:47,omggif:264}],410:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(t("@babel/runtime/helpers/defineProperty")),a=n(t("jpeg-js")),o=t("@jimp/utils"),s="image/jpeg";r.default=function(){return{mime:(0,i.default)({},s,["jpeg","jpg","jpe"]),constants:{MIME_JPEG:s},decoders:(0,i.default)({},s,a.default.decode),encoders:(0,i.default)({},s,function(t){return a.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},{"@babel/runtime/helpers/defineProperty":7,"@babel/runtime/helpers/interopRequireDefault":10,"@jimp/utils":414,"jpeg-js":259}],411:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(t("@babel/runtime/helpers/defineProperty")),a=t("pngjs"),o=t("@jimp/utils"),s="image/png";r.default=function(){return{mime:(0,i.default)({},s,["png"]),constants:{MIME_PNG:s,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:(0,i.default)({},s,!0),decoders:(0,i.default)({},s,a.PNG.sync.read),encoders:(0,i.default)({},s,function(t){var e=new a.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,a.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?o.throwError.call(this,"l must be a number",e):t<0||9<t?o.throwError.call(this,"l must be a number 0 - 9",e):(this._deflateLevel=Math.round(t),(0,o.isNodePattern)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return"number"!=typeof t?o.throwError.call(this,"s must be a number",e):t<0||3<t?o.throwError.call(this,"s must be a number 0 - 3",e):(this._deflateStrategy=Math.round(t),(0,o.isNodePattern)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return"number"!=typeof t?o.throwError.call(this,"n must be a number",e):t<-1||4<t?o.throwError.call(this,"n must be -1 (auto) or a number 0 - 4",e):(this._filterType=Math.round(t),(0,o.isNodePattern)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return"number"!=typeof t?o.throwError.call(this,"s must be a number",e):0!==t&&2!==t&&4!==t&&6!==t?o.throwError.call(this,"s must be a number 0, 2, 4, 6.",e):(this._colorType=Math.round(t),(0,o.isNodePattern)(e)&&e.call(this,null,this),this)}}}},e.exports=r.default},{"@babel/runtime/helpers/defineProperty":7,"@babel/runtime/helpers/interopRequireDefault":10,"@jimp/utils":414,pngjs:308}],412:[function(n,o,s){(function(i){"use strict";var t=n("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var e=t(n("@babel/runtime/helpers/defineProperty")),a=t(n("utif")),r="image/tiff";s.default=function(){return{mime:(0,e.default)({},r,["tiff","tif"]),constants:{MIME_TIFF:r},decoders:(0,e.default)({},r,function(t){var e=a.default.decode(t),r=e[0];a.default.decodeImages(t,e);var n=a.default.toRGBA8(r);return{data:i.from(n),width:r.t256[0],height:r.t257[0]}}),encoders:(0,e.default)({},r,function(t){var e=a.default.encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return i.from(e)})}},o.exports=s.default}).call(this,n("buffer").Buffer)},{"@babel/runtime/helpers/defineProperty":7,"@babel/runtime/helpers/interopRequireDefault":10,buffer:47,utif:361}],413:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=t("timm"),a=n(t("@jimp/jpeg")),o=n(t("@jimp/png")),s=n(t("@jimp/bmp")),l=n(t("@jimp/tiff")),u=n(t("@jimp/gif"));r.default=function(){return(0,i.mergeDeep)((0,a.default)(),(0,o.default)(),(0,s.default)(),(0,l.default)(),(0,u.default)())},e.exports=r.default},{"@babel/runtime/helpers/interopRequireDefault":10,"@jimp/bmp":408,"@jimp/gif":409,"@jimp/jpeg":410,"@jimp/png":411,"@jimp/tiff":412,timm:356}],414:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");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,a){e=Math.round(e),r=Math.round(r),n=Math.round(n),i=Math.round(i);for(var o=r;o<r+i;o++)for(var s=e;s<e+n;s++){var l=t.bitmap.width*o+s<<2;a.call(t,s,o,l)}return t},r.scanIterator=i;var u=n(t("@babel/runtime/regenerator"));t("regenerator-runtime/runtime");var f=u.default.mark(i);function i(e,r,n,i,a){var o,s,l;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=Math.round(r),n=Math.round(n),i=Math.round(i),a=Math.round(a),o=n;case 5:if(!(o<n+a)){t.next=17;break}s=r;case 7:if(s<r+i)return l=e.bitmap.width*o+s<<2,t.next=11,{x:s,y:o,idx:l,image:e};t.next=14;break;case 11:s++,t.next=7;break;case 14:o++,t.next=5;break;case 17:case"end":return t.stop()}},f)}},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/regenerator":21,"regenerator-runtime/runtime":332}]},{},[379])(379)});