diff --git a/asset-manifest.json b/asset-manifest.json index 0b44768..44c06b5 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,17 +1,17 @@ { "files": { "main.css": "./static/css/main.ef0ebcad.css", - "main.js": "./static/js/main.0bf65f56.js", + "main.js": "./static/js/main.2264be27.js", "static/js/787.0618da53.chunk.js": "./static/js/787.0618da53.chunk.js", "static/media/intro_bg1.jpg": "./static/media/intro_bg1.211beec6bf1c367aa889.jpg", "static/media/intro_bg2.jpg": "./static/media/intro_bg2.852bfe3709f00249a572.jpg", "index.html": "./index.html", "main.ef0ebcad.css.map": "./static/css/main.ef0ebcad.css.map", - "main.0bf65f56.js.map": "./static/js/main.0bf65f56.js.map", + "main.2264be27.js.map": "./static/js/main.2264be27.js.map", "787.0618da53.chunk.js.map": "./static/js/787.0618da53.chunk.js.map" }, "entrypoints": [ "static/css/main.ef0ebcad.css", - "static/js/main.0bf65f56.js" + "static/js/main.2264be27.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 7a9e7e6..856dcab 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Bread Festival Scanner
\ No newline at end of file +Bread Festival Scanner
\ No newline at end of file diff --git a/static/js/main.0bf65f56.js b/static/js/main.2264be27.js similarity index 99% rename from static/js/main.0bf65f56.js rename to static/js/main.2264be27.js index 297b141..424280b 100644 --- a/static/js/main.0bf65f56.js +++ b/static/js/main.2264be27.js @@ -1,3 +1,3 @@ -/*! For license information please see main.0bf65f56.js.LICENSE.txt */ -(function(){var __webpack_modules__={694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?n[0]:void 0]}}))}))},e.resolve=function(t){return r(this,void 0,void 0,(function(){var n,i=this;return o(this,(function(u){switch(u.label){case 0:return n=l.asArray(t||[]).filter(l.notUndefined),[4,l.serial(n.map((function(t){return function(){return r(i,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return"string"!==typeof t?[3,5]:d.isFile(t)?[4,e.fromFile(t)]:[3,2];case 1:case 3:return[2,n.sent()];case 2:return[4,e.fromUrl(t)];case 4:return[3,6];case 5:return a.ok(ArrayBuffer.isView(t._mat.data.buffer)),[2,t];case 6:return[2]}}))}))}})))];case 1:return[2,u.sent().filter(l.notUndefined)]}}))}))},e.isFile=function(e){return!!e&&!!e.name&&!!e._mat&&!!e._mat.data&&"undefined"!==typeof e.constructor&&!!e.asImageData&&!!e.asMat},e.asPath=function(e){return"string"===typeof e?e:e.name},e.fromData=function(t,n){return new e(e._buildName(n),cv.matFromImageData(t))},e._buildName=function(e){return e||l.unique("file")+".png"},e.fromMat=function(t,n){return new e(e._buildName(n),t)},e.prototype.toString=function(){return'[File "'+this.name+'"]'},e.fromUrl=function(t,n){return void 0===n&&(n={}),r(this,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:return c.getDefaultCodec(),[4,u.default(t)];case 1:return[4,o.sent().arrayBuffer()];case 2:return r=o.sent(),[4,c.decodeOrThrow(r)];case 3:return i=o.sent(),[2,e.fromData(i,n.name||l.getFileNameFromUrl(t))]}}))}))},e.fromFile=function(t,n){return void 0===n&&(n=l.basename(t)),r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return[4,c.decodeOrThrow(d.readFile(t).buffer)];case 1:return r=o.sent(),[2,e.fromData(r,n)]}}))}))},e}();n.File=m}).call(this,e("buffer").Buffer)},{"./browser/imageCreation":3,"./format":9,"./util/base64":58,"./util/fileUtil":59,"./util/imageUtil":61,assert:64,buffer:70,"cross-fetch":71,"file-type":72,"misc-utils-of-mine-generic":92}],7:[function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function u(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&r.rows==o.rows&&r.cols>0&&r.cols==r.cols){var i=cv.norm1(r,o,cv.NORM_L2)/(r.rows*r.cols);return n&&f(r,o),i}return 1},n.asMat=c,n.del=f,n.set=d,n.get=p,n.map=function(e,t,n){for(var r=0;r=0;s--)if(c[s]!==f[s])return!1;for(s=c.length-1;s>=0;s--)if(!b(e[u=c[s]],t[u],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,n,r){var o;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),o=function(e){var t;try{e()}catch(n){t=n}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!o&&y(o,n,"Missing expected exception"+r);var i="string"===typeof r,u=!e&&o&&!n;if((!e&&a.isError(o)&&i&&x(o,n)||u)&&y(o,n,"Got unwanted exception"+r),e&&o&&n&&!x(o,n)||!e&&o)throw o}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(v(e.actual),128)+" "+e.operator+" "+m(v(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,o=h(t),i=r.indexOf("\n"+o);if(i>=0){var a=r.indexOf("\n",i+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(d.AssertionError,Error),d.fail=y,d.ok=g,d.equal=function(e,t,n){e!=t&&y(e,t,n,"==",d.equal)},d.notEqual=function(e,t,n){e==t&&y(e,t,n,"!=",d.notEqual)},d.deepEqual=function(e,t,n){b(e,t,!1)||y(e,t,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,n){b(e,t,!0)||y(e,t,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,n){b(e,t,!1)&&y(e,t,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&y(t,n,r,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,n){e!==t&&y(e,t,n,"===",d.strictEqual)},d.notStrictEqual=function(e,t,n){e===t&&y(e,t,n,"!==",d.notStrictEqual)},d.throws=function(e,t,n){_(!0,e,t,n)},d.doesNotThrow=function(e,t,n){_(!1,e,t,n)},d.ifError=function(e){if(e)throw e},d.strict=r((function e(t,n){t||y(t,!0,n,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var k=Object.keys||function(e){var t=[];for(var n in e)u.call(e,n)&&t.push(n);return t}}).call(this,"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"object-assign":119,"util/":67}],65:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],66:[function(e,t,n){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],67:[function(e,t,n){(function(t,r){var o=/%[sdj%]/g;n.format=function(e){if(!y(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),l=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(t)?r.showHidden=t:t&&n._extend(r,t),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),c(r,e,r.depth)}function l(e,t){var n=u.styles[t];return n?"\x1b["+u.colors[n][0]+"m"+e+"\x1b["+u.colors[n][1]+"m":e}function s(e,t){return e}function c(e,t,r){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r,e);return y(o)||(o=c(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var a=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),_(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(t);if(0===a.length){if(k(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(b(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(_(t))return f(t)}var s,w="",S=!1,E=["{","}"];return p(t)&&(S=!0,E=["[","]"]),k(t)&&(w=" [Function"+(t.name?": "+t.name:"")+"]"),b(t)&&(w=" "+RegExp.prototype.toString.call(t)),x(t)&&(w=" "+Date.prototype.toUTCString.call(t)),_(t)&&(w=" "+f(t)),0!==a.length||S&&0!=t.length?r<0?b(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),s=S?function(e,t,n,r,o){for(var i=[],a=0,u=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(s,w,E)):E[0]+w+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var a,u,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?u=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(u=e.stylize("[Setter]","special")),C(r,o)||(a="["+o+"]"),u||(e.seen.indexOf(l.value)<0?(u=m(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+u.split("\n").map((function(e){return" "+e})).join("\n")):u=e.stylize("[Circular]","special")),g(a)){if(i&&o.match(/^\d+$/))return u;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function p(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function m(e){return null===e}function v(e){return"number"===typeof e}function y(e){return"string"===typeof e}function g(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"===typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===S(e)}function _(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function k(e){return"function"===typeof e}function S(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(g(i)&&(i=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=t.pid;a[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else a[e]=function(){};return a[e]},n.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=h,n.isNull=m,n.isNullOrUndefined=function(e){return null==e},n.isNumber=v,n.isString=y,n.isSymbol=function(e){return"symbol"===typeof e},n.isUndefined=g,n.isRegExp=b,n.isObject=w,n.isDate=x,n.isError=_,n.isFunction=k,n.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},n.isBuffer=e("./support/isBuffer");var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",function(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":66,_process:121,inherits:65}],68:[function(e,t,n){"use strict";n.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=s(e),a=r[0],u=r[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),c=0,f=u>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===u&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===u&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},n.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,u=0,l=n-o;ul?l:u+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,l=a.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var o,i,a=[],u=t;u>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],69:[function(e,t,n){},{}],70:[function(e,t,n){(function(t){"use strict";var r=e("base64-js"),o=e("ieee754"),i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=t,n.SlowBuffer=function(e){return+e!=e&&(e=0),t.alloc(+e)},n.INSPECT_MAX_BYTES=50;var a=2147483647;function u(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return Object.setPrototypeOf(n,t.prototype),n}function t(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,n,r){if("string"===typeof e)return function(e,n){if("string"===typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|p(e,n),o=u(r),i=o.write(e,n);return i!==r&&(o=o.slice(0,i)),o}(e,n);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return function(e,n,r){if(n<0||e.byteLength=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function p(e,n){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;for(var i=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(i)return o?-1:I(e).length;n=(""+n).toLowerCase(),i=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,n,r,o,i){if(0===e.length)return-1;if("string"===typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof n&&(n=t.from(n,o)),t.isBuffer(n))return 0===n.length?-1:y(e,n,r,o,i);if("number"===typeof n)return n&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):y(e,[n],r,o,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,u=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,l/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;iu&&(n=u-l),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(c=s);break;case 2:128===(192&(i=e[o+1]))&&(l=(31&s)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(l=(15&s)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&u)&&(l=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);for(var n="",r=0;rt&&(e+=" ... "),""},i&&(t.prototype[i]=t.prototype.inspect),t.prototype.compare=function(e,n,r,o,i){if(U(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),n<0||r>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&n>=r)return 0;if(o>=i)return-1;if(n>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(o>>>=0),u=(r>>>=0)-(n>>>=0),l=Math.min(a,u),s=this.slice(o,i),c=e.slice(n,r),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function R(e,n,r,o,i,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||ne.length)throw new RangeError("Index out of range")}function A(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||A(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return t=+t,n>>>=0,i||A(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.prototype.slice=function(e,n){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n>>=0,t>>>=0,n||T(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||T(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},t.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},t.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},t.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},t.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+n},t.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},t.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},t.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},t.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},t.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},t.prototype.copy=function(e,n,r,o){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),n>=e.length&&(n=e.length),n||(n=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-n=0;--a)e[a+n]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,o),n);return i},t.prototype.fill=function(e,n,r,o){if("string"===typeof e){if("string"===typeof n?(o=n,n=0,r=this.length):"string"===typeof r&&(o=r,r=this.length),void 0!==o&&"string"!==typeof o)throw new TypeError("encoding must be a string");if("string"===typeof o&&!t.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){var i=e.charCodeAt(0);("utf8"===o&&i<128||"latin1"===o)&&(e=i)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(n<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(a=n;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function B(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!==e}var q=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()}).call(this,e("buffer").Buffer)},{"base64-js":68,buffer:70,ieee754:75}],71:[function(e,t,n){var r=function(e){function t(){this.fetch=!1,this.DOMException=e.DOMException}return t.prototype=e,new t}("undefined"!==typeof self?self:this);!function(e){!function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(n.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function i(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!==typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function s(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function f(e){var t=new FileReader,n=c(t);return t.readAsArrayBuffer(e),n}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=c(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function y(e){var t=new l;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},p.call(m.prototype),p.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];g.redirect=function(e,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(x){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,r){return new Promise((function(o,i){var a=new m(e,r);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function l(){u.abort()}u.onload=function(){var e={status:u.status,statusText:u.statusText,headers:y(u.getAllResponseHeaders()||"")};e.url="responseURL"in u?u.responseURL:e.headers.get("X-Request-URL");var t="response"in u?u.response:u.responseText;o(new g(t,e))},u.onerror=function(){i(new TypeError("Network request failed"))},u.ontimeout=function(){i(new TypeError("Network request failed"))},u.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},u.open(a.method,a.url,!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&n.blob&&(u.responseType="blob"),a.headers.forEach((function(e,t){u.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",l)}),u.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}w.polyfill=!0,e.fetch||(e.fetch=w,e.Headers=l,e.Request=m,e.Response=g),t.Headers=l,t.Request=m,t.Response=g,t.fetch=w}({})}(r),delete r.fetch.polyfill,(n=r.fetch).default=r.fetch,n.fetch=r.fetch,n.Headers=r.Headers,n.Request=r.Request,n.Response=r.Response,t.exports=n},{}],72:[function(require,module,exports){(function(Buffer){"use strict";var _require=require("./util"),multiByteIndexOf=_require.multiByteIndexOf,stringToBytes=_require.stringToBytes,readUInt64LE=_require.readUInt64LE,tarHeaderChecksumMatches=_require.tarHeaderChecksumMatches,uint8ArrayUtf8ByteString=_require.uint8ArrayUtf8ByteString,supported=require("./supported"),xpiZipFilename=stringToBytes("META-INF/mozilla.rsa"),oxmlContentTypes=stringToBytes("[Content_Types].xml"),oxmlRels=stringToBytes("_rels/.rels"),fileType=function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError("Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `".concat(typeof e,"`"));var t=e instanceof Uint8Array?e:new Uint8Array(e);if(t&&t.length>1){var n=function(e,n){n=_objectSpread({offset:0},n);for(var r=0;r=33&&73===t[n]&&68===t[n+1]&&65===t[n+2]&&84===t[n+3]})),i=t.subarray(33,o);return i.findIndex((function(e,t){return 97===i[t]&&99===i[t+1]&&84===i[t+2]&&76===i[t+3]}))>=0?{ext:"apng",mime:"image/apng"}:{ext:"png",mime:"image/png"}}if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(n([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((n([73,73,42,0])||n([77,77,0,42]))&&n([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(n([73,73,42,0])&&(n([16,251,134,1],{offset:4})||n([8,0,0,0,19,0],{offset:4})||n([8,0,0,0,18,0],{offset:4})))return{ext:"arw",mime:"image/x-sony-arw"};if(n([73,73,42,0,8,0,0,0])&&(n([45,0,254,0],{offset:8})||n([39,0,254,0],{offset:8})))return{ext:"dng",mime:"image/x-adobe-dng"};if(n([73,73,42,0])&&n([28,0,254,0],{offset:8}))return{ext:"nef",mime:"image/x-nikon-nef"};if(n([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(r("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(n([73,73,42,0])||n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};var a=[80,75,3,4];if(n(a)){if(n([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(n(xpiZipFilename,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(r("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(r("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};var u,l=0,s=!1;do{var c=l+30;if(s||(s=n(oxmlContentTypes,{offset:c})||n(oxmlRels,{offset:c})),u||(r("word/",{offset:c})?u={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:r("ppt/",{offset:c})?u={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:r("xl/",{offset:c})&&(u={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),s&&u)return u;l=multiByteIndexOf(t,a,c)}while(l>=0);if(u)return u}if(n([80,75])&&(3===t[2]||5===t[2]||7===t[2])&&(4===t[3]||6===t[3]||8===t[3]))return{ext:"zip",mime:"application/zip"};if(n([48,48,48,48,48,48],{offset:148,mask:[248,248,248,248,248,248]})&&tarHeaderChecksumMatches(t))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===t[6]||1===t[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([102,114,101,101],{offset:4})||n([109,100,97,116],{offset:4})||n([109,111,111,118],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([102,116,121,112],{offset:4})&&0!==(96&t[8])&&0!==(96&t[9])&&0!==(96&t[10])&&0!==(96&t[11])){var f=uint8ArrayUtf8ByteString(t,8,12);switch(f){case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt ":return{ext:"mov",mime:"video/quicktime"};case"M4V ":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P ":return{ext:"m4p",mime:"video/mp4"};case"M4B ":return{ext:"m4b",mime:"audio/mp4"};case"M4A ":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V ":return{ext:"f4v",mime:"video/mp4"};case"F4P ":return{ext:"f4p",mime:"video/mp4"};case"F4A ":return{ext:"f4a",mime:"audio/mp4"};case"F4B ":return{ext:"f4b",mime:"audio/mp4"};default:return f.startsWith("3g")?f.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){var d=t.subarray(4,4100),p=d.findIndex((function(e,t,n){return 66===n[t]&&130===n[t+1]}));if(-1!==p){var h=p+3,m=function(e){return _toConsumableArray(e).every((function(e,t){return d[h+t]===e.charCodeAt(0)}))};if(m("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(m("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([82,73,70,70])){if(n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(n([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(n([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n([48,38,178,117,142,102,207,17,166,217])){var v=30;do{var y=readUInt64LE(t,v+16);if(n([145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101],{offset:v})){if(n([64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43],{offset:v+24}))return{ext:"wma",mime:"audio/x-ms-wma"};if(n([192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43],{offset:v+24}))return{ext:"wmv",mime:"video/x-ms-asf"};break}v+=y}while(v+24<=t.length);return{ext:"asf",mime:"application/vnd.ms-asf"}}if(n([0,0,1,186])||n([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};for(var g=0;g<2&&g1&&void 0!==arguments[1]?arguments[1]:0,n=e[t],r=1,o=0;++o<8;)r*=256,n+=e[t+o]*r;return n},n.tarHeaderChecksumMatches=function(e){if(e.length<512)return!1;for(var n=256,r=0,o=0;o<148;o++){var i=e[o];n+=i,r+=128&i}for(var a=156;a<512;a++){var u=e[a];n+=u,r+=128&u}var l=parseInt(t(e,148,154),8);return l===n||l===n-(r<<1)},n.multiByteIndexOf=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e&&e.isBuffer(t))return t.indexOf(e.from(n),r);for(var o=function(e,t,n){for(var r=1;r=0;){if(o(t,n,i))return i;i=t.indexOf(n[0],i+1)}return-1},n.uint8ArrayUtf8ByteString=t}).call(this,e("buffer").Buffer)},{buffer:70}],75:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,l=(1<>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=u;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-s;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=s}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,u,l,s=8*i-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(u=0,a=c):a+f>=1?(u=(t*l-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,s-=8);e[n+p-h]|=128*m}},{}],76:[function(e,t,n){function r(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(r(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],77:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.array=function(e,t){for(var n=[],r=0;rn.length-r?"\r\n":"\n"}},{}],90:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isGenerator=function(e){return e&&"function"===typeof e.next&&"function"===typeof e.throw},n.isGeneratorFunction=function(e){return"function"===typeof e&&e.constructor&&"GeneratorFunction"===e.constructor.name},n.isClassConstructorFunction=function(e){return e&&e.prototype&&e.prototype.constructor&&e.prototype.constructor.toString().startsWith("class")}},{}],91:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){this.x=e,this.y=t,this.set(e,t)}return e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equals=function(e,t){return this.x==e&&this.y==t},e.prototype.toString=function(){return"("+this.x+","+this.y+")"},e.prototype.map=function(e){return this.x=e(this.x),this.y=e(this.y),this},e.prototype.add=function(e,t){return this.x+=e,this.y+=t,this},e.prototype.subtract=function(e,t){return this.x-=e,this.y-=t,this},e.prototype.scale=function(e){return this.x*=e,this.y*=e,this},e.prototype.isZero=function(){return 0===this.x&&0==this.y},e}();n.Point=r;var o=function(){function e(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r}return Object.defineProperty(e.prototype,"x",{get:function(){return this.left},set:function(e){var t=this.left-e;this.left=e,this.right-=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.top},set:function(e){var t=this.top-e;this.top=e,this.bottom-=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},set:function(e){this.right=this.left+e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},set:function(e){this.bottom=this.top+e},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this.left>=this.right||this.top>=this.bottom},e.prototype.setRect=function(e,t,n,r){return this.left=e,this.top=t,this.right=e+n,this.bottom=t+r,this},e.prototype.setBounds=function(e,t,n,r){return this.top=t,this.left=e,this.bottom=r,this.right=n,this},e.prototype.equals=function(e){return e&&(this.isEmpty()&&e.isEmpty()||this.top==e.top&&this.left==e.left&&this.bottom==e.bottom&&this.right==e.right)},e.prototype.clone=function(){return new e(this.left,this.top,this.right-this.left,this.bottom-this.top)},e.prototype.center=function(){if(this.isEmpty())throw new Error("Empty rectangles do not have centers");return new r(this.left+(this.right-this.left)/2,this.top+(this.bottom-this.top)/2)},e.prototype.copyFrom=function(e){return this.top=e.top,this.left=e.left,this.bottom=e.bottom,this.right=e.right,this},e.prototype.translate=function(e,t){return this.left+=e,this.right+=e,this.top+=t,this.bottom+=t,this},e.prototype.toString=function(){return"["+this.x+","+this.y+","+this.width+","+this.height+"]"},e.prototype.union=function(e){return this.clone().expandToContain(e)},e.prototype.contains=function(e){return!!e.isEmpty()||!this.isEmpty()&&e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom},e.prototype.intersect=function(e){return this.clone().restrictTo(e)},e.prototype.intersects=function(e){if(this.isEmpty()||e.isEmpty())return!1;var t=Math.max(this.left,e.left),n=Math.min(this.right,e.right),r=Math.max(this.top,e.top),o=Math.min(this.bottom,e.bottom);return te.right&&(t=e.right-this.right);var n=0;return this.top<=e.top?n=e.top-this.top:this.bottom>e.bottom&&(n=e.bottom-this.bottom),this.translate(t,n)},e.prototype.subtract=function(t){var n=new e(0,0,0,0),r=[];return(t=t.intersect(this)).isEmpty()?[this.clone()]:(n.setBounds(this.left,this.top,t.left,this.bottom),n.isEmpty()||r.push(n.clone()),n.setBounds(t.left,this.top,t.right,t.top),n.isEmpty()||r.push(n.clone()),n.setBounds(t.left,t.bottom,t.right,this.bottom),n.isEmpty()||r.push(n.clone()),n.setBounds(t.right,this.top,this.right,this.bottom),n.isEmpty()||r.push(n.clone()),r)},e.prototype.blend=function(t,n){return new e(this.left+(t.left-this.left)*n,this.top+(t.top-this.top)*n,this.width+(t.width-this.width)*n,this.height+(t.height-this.height)*n)},e.prototype.inflate=function(e,t){var n=(this.width*e-this.width)/2,r=arguments.length>1?t:e,o=(this.height*r-this.height)/2;return this.left-=n,this.right+=n,this.top-=o,this.bottom+=o,this},e.prototype.inflateFixed=function(e){return this.left-=e,this.right+=e,this.top-=e,this.bottom+=e,this},e}();n.Rect=o},{}],92:[function(e,t,n){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(e("./array")),r(e("./color")),r(e("./compareText")),r(e("./environment")),r(e("./event")),r(e("./exceptions")),r(e("./file")),r(e("./function")),r(e("./geometry")),r(e("./json")),r(e("./merge")),r(e("./mime")),r(e("./number")),r(e("./object")),r(e("./promise")),r(e("./string")),r(e("./time")),r(e("./tree")),r(e("./type")),r(e("./url"))},{"./array":81,"./color":84,"./compareText":85,"./environment":86,"./event":87,"./exceptions":88,"./file":89,"./function":90,"./geometry":91,"./json":93,"./merge":94,"./mime":95,"./number":96,"./object":97,"./promise":98,"./string":106,"./time":111,"./tree":116,"./type":117,"./url":118}],93:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./object"),o=e("./type");function i(e,t,n){return o.isArray(e)&&e?t(e,n)||e.some((function(e,n){return i(e,t,n)})):"object"===typeof e&&e?t(e,n)||r.objectToArray(e).some((function(e){return i(e.value,t,e.key)})):t(e,n)}n.parseJSON=function(e,t){void 0===t&&(t=void 0);try{return JSON.parse(e)}catch(n){return t}},n.stringifyJSON=function(e,t){void 0===t&&(t=void 0);try{return JSON.stringify(e)}catch(n){return t}},n.cloneJSON=function(e){return JSON.parse(JSON.stringify(e))},n.visitJson=i,n.findJson=function(e,t,n){var r=void 0;return i(e,(function(e,n){return!!t(e,n)&&(r={value:e,key:n},!0)})),r},n.isJSONObject=function(e){return"object"===typeof e&&!Array.isArray(e)}},{"./object":97,"./type":117}],94:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("./type");function o(e){var t,n,i=e,a=r.typeOf(e);if("array"===a)for(i=[],n=e.length,t=0;t0}));return t.leafsOnly?o.filter((function(e){return!o.find((function(t){return t!==e&&t.length>e.length&&JSON.stringify(e)===JSON.stringify(t.slice(0,e.length))}))})):o}},{"./type":117}],98:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.serial=function(e){return new Promise((function(t){e.reduce((function(e,t){return e.then((function(e){return t().then((function(t){return e.concat([t])}))}))}),Promise.resolve([])).then((function(e){t(e)}))}))};var r=function(){function e(e){var t=this;this.resolve=null,this.reject=null,this.status="pending",this.promise=new Promise((function(e,n){t.resolve=function(){this.status="resolved",e.apply(this,arguments)},t.reject=function(){this.status="rejected",n.apply(this,arguments)}})),"function"===typeof e&&e.call(this,this.resolve,this.reject)}return e.prototype.then=function(e){return this.promise.then(e)},e.prototype.catch=function(e){return this.promise.catch(e)},e}();n.Deferred=r},{}],99:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o,i=e("../array");!function(e){e.light="light",e.double="double",e.round="round",e.heavy="heavy",e.lightDouble="lightDouble",e.doubleLight="doubleLight",e.classic="classic",e.lightTripleDash="lightTripleDash",e.lightQuadrupleDash="lightQuadrupleDash",e.lightDoubleDash="lightDoubleDash",e.heavier="heavier",e.roundDoubleDash="roundDoubleDash",e.roundTripleDash="roundTripleDash",e.roundQuadrupleDash="roundQuadrupleDash",e.heavyDoubleDash="heavyDoubleDash",e.heavyTripleDash="heavyTripleDash",e.heavyQuadrupleDash="heavyQuadrupleDash",e.singleRareCorners="singleRareCorners",e.triangleCorners="triangleCorners"}(r=n.BorderStyle||(n.BorderStyle={})),n.borderStyles=i.enumKeys(r),function(e){e.topLeft="topLeft",e.topRight="topRight",e.bottomRight="bottomRight",e.bottomLeft="bottomLeft",e.left="left",e.bottom="bottom",e.top="top",e.right="right"}(n.BorderSide||(n.BorderSide={})),n.getBoxChar=function(e,t){return a()[e][t]};var a=function(){return o||(o={light:{topLeft:"\u250c",topRight:"\u2510",bottomRight:"\u2518",bottomLeft:"\u2514",left:"\u2502",right:"\u2502",bottom:"\u2500",top:"\u2500"},lightTripleDash:{topLeft:"\u250c",topRight:"\u2510",bottomRight:"\u2518",bottomLeft:"\u2514",left:"\u2506",right:"\u2506",bottom:"\u2504",top:"\u2504"},lightQuadrupleDash:{topLeft:"\u250c",topRight:"\u2510",bottomRight:"\u2518",bottomLeft:"\u2514",left:"\u250a",right:"\u250a",bottom:"\u2508",top:"\u2508"},lightDoubleDash:{topLeft:"\u250c",topRight:"\u2510",bottomRight:"\u2518",bottomLeft:"\u2514",left:"\u254e",right:"\u254e",bottom:"\u254c",top:"\u254c"},double:{topLeft:"\u2554",topRight:"\u2557",bottomRight:"\u255d",bottomLeft:"\u255a",left:"\u2551",right:"\u2551",bottom:"\u2550",top:"\u2550"},round:{topLeft:"\u256d",topRight:"\u256e",bottomRight:"\u256f",bottomLeft:"\u2570",left:"\u2502",right:"\u2502",bottom:"\u2500",top:"\u2500"},roundDoubleDash:{topLeft:"\u256d",topRight:"\u256e",bottomRight:"\u256f",bottomLeft:"\u2570",left:"\u254e",right:"\u254e",bottom:"\u254c",top:"\u254c"},roundTripleDash:{topLeft:"\u256d",topRight:"\u256e",bottomRight:"\u256f",bottomLeft:"\u2570",left:"\u2506",right:"\u2506",bottom:"\u2504",top:"\u2504"},roundQuadrupleDash:{topLeft:"\u256d",topRight:"\u256e",bottomRight:"\u256f",bottomLeft:"\u2570",left:"\u250a",right:"\u250a",bottom:"\u2508",top:"\u2508"},heavy:{topLeft:"\u250f",topRight:"\u2513",bottomRight:"\u251b",bottomLeft:"\u2517",left:"\u2503",right:"\u2503",bottom:"\u2501",top:"\u2501"},heavyDoubleDash:{topLeft:"\u250f",topRight:"\u2513",bottomRight:"\u251b",bottomLeft:"\u2517",left:"\u254f",right:"\u254f",bottom:"\u254d",top:"\u254d"},heavyTripleDash:{topLeft:"\u250f",topRight:"\u2513",bottomRight:"\u251b",bottomLeft:"\u2517",left:"\u2507",right:"\u2507",bottom:"\u2505",top:"\u2505"},heavyQuadrupleDash:{topLeft:"\u250f",topRight:"\u2513",bottomRight:"\u251b",bottomLeft:"\u2517",left:"\u250b",right:"\u250b",bottom:"\u2509",top:"\u2509"},heavier:{topLeft:"\u259b",topRight:"\u259c",bottomRight:"\u259f",bottomLeft:"\u2599",left:"\u258c",right:"\u2590",bottom:"\u2584",top:"\u2580"},lightDouble:{topLeft:"\u2553",topRight:"\u2556",bottomRight:"\u255c",bottomLeft:"\u2559",left:"\u2551",right:"\u2551",bottom:"\u2500",top:"\u2500"},singleRareCorners:{bottom:"\u23bd",top:"\u23ba",left:"\u23a2",right:"\u23a5",topLeft:"\u23a1",topRight:"\u23a4",bottomRight:"\u23a6",bottomLeft:"\u23a3"},triangleCorners:{bottom:"_",top:"\u23bb",left:"\u23b8",right:" \u23b8",topLeft:"\u25f8",topRight:"\u25f9",bottomRight:"\u25ff",bottomLeft:"\u25fa"},doubleLight:{topLeft:"\u2552",topRight:"\u2555",bottomRight:"\u255b",bottomLeft:"\u2558",left:"\u2502",right:"\u2502",bottom:"\u2550",top:"\u2550"},classic:{topLeft:"+",topRight:"+",bottomRight:"+",bottomLeft:"+",left:"|",right:"|",bottom:"\u2550",top:"-"}}),o}},{"../array":81}],100:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.changeText=function(e,t){var n=e.split(""),r=0;return t.forEach((function(e){e.toAdd=e.toAdd||"",e.toRemove=e.toRemove||"",n.splice.apply(n,[e.pos+r,e.toRemove.length].concat(e.toAdd.split(""))),r+=e.toAdd.length-e.toRemove.length})),n.join("")}},{}],101:[function(require,module,exports){"use strict";function evaluate(s,defaultValue){void 0===defaultValue&&(defaultValue=void 0);try{return eval("("+s+")")}catch(error){return defaultValue}}function stringToObject(e,t,n){void 0===e&&(e=""),void 0===t&&(t=","),void 0===n&&(n=":");var r=e.split(t).map((function(e){return e.trim()})),o={};return r.forEach((function(e){var t=e.split(n).map((function(e){return e.trim()}));2===t.length&&(o[t[0]]=t[1])})),o}Object.defineProperty(exports,"__esModule",{value:!0}),exports.evaluate=evaluate,exports.stringToObject=stringToObject},{}],102:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../array");function o(e,t){return r.array(e,t).join("")}n.quote=function(e,t){return void 0===t&&(t='"'),t+e.replace(new RegExp(t,"g"),"\\"+t)+t},n.unquote=function(e){return e.substring(1,e.length-1)},n.repeat=o,n.indent=function(e,t){return void 0===e&&(e=1),void 0===t&&(t=2),o(e*t," ")},n.wordWrap=function(e,t,n){void 0===n&&(n="\n");var r=n.replace(/\\/,"\\\\");return e.replace(new RegExp("(?![^"+r+"]{1,"+t+"}$)([^"+r+"]{1,"+t+"})\\s","g"),"$1"+n)}},{"../array":81}],103:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPreviousMatchingPos=function(e,t,n){if(t=e.length<=t?e.length:t,"string"===typeof n){var r=n;n=function(e){return e===r}}for(;t>=0&&!n(e[t]);)t--;return t},n.getPosition=function(e,t,n){return e.split(t,n).join(t).length}},{}],104:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hashCode=function(e){var t=0,n=e.length,r=0;if(n>0)for(;r\n\n\n \n \n title\n \n\n\n'+e+"\n\n\n"},n.styleObjectToCss=function(e,t){return void 0===t&&(t=""),Object.keys(e).map((function(t){return r(t)+": "+e[t]+";"})).join(t)},n.stylePropertyNameToCssSyntax=r},{}],106:[function(e,t,n){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(e("./boxes")),r(e("./change")),r(e("./evaluate")),r(e("./format")),r(e("./getPreviousMatchingPos")),r(e("./hash")),r(e("./html")),r(e("./template")),r(e("./whiteSpace"))},{"./boxes":99,"./change":100,"./evaluate":101,"./format":102,"./getPreviousMatchingPos":103,"./hash":104,"./html":105,"./template":107,"./whiteSpace":108}],107:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={};n.template=function e(t,n){var o=/\W/.test(t)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):r[t]=r[t]||e(t);return n?o(n):o}},{}],108:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.shorter=function(e,t){return void 0===t&&(t=10),e.trim().substring(0,Math.min(e.length,t))+"..."},n.removeWhites=function(e,t){return void 0===t&&(t=" "),e.replace(/\s+/gm,t).trim()},n.removeEmptyLines=function(e,t){return void 0===t&&(t="\n"),e.split(t).filter((function(e){return!!e.trim()})).join(t)},n.trimRightLines=function(e,t){return void 0===t&&(t="\n"),e.split(t).map((function(e){return e.trimRight()})).join(t)}},{}],109:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("../type");function o(e,t){void 0===t&&(t=0),setTimeout((function(){return e(Date.now())}),t)}n.animate=function(e){var t=e.duration,n=e.draw,i=e.timing,a=e.lapse,u=e.end;return new Promise((function(e){r.isObject(i)&&(i=i.fn(t));var l=Date.now(),s=0;o((function r(c){var f=(c-l)/t;f>1&&(f=1),s=i(f,c-l,t),n(s),f<1?o(r,a):(u&&u(),e())}))}))},function(e){function t(e){for(var t=0,n=1;;t+=n,n/=2)if(e>=(7-4*t)/11)return-Math.pow((11-6*t-11*e)/4,2)+Math.pow(n,2)}e.bounceEasyOut=function(){return e=t,function(t){return 1-e(1-t)};var e},e.quad=function(e){return Math.pow(e,2)},e.back=function(e){return void 0===e&&(e=1.5),function(t){return Math.pow(t,2)*((e+1)*t-e)}},e.elastic=function(e){return void 0===e&&(e=1.5),function(t){return Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*e/3*t)}},e.bounceEaseInOut=function(){return e=t,function(t){return t<.5?e(2*t)/2:(2-e(2*(1-t)))/2};var e},e.easeInQuad=function(){return{fn:function(e){return function(t,n){return 1*(n/=e)*n+0}}}},e.easeOutQuad=function(){return{fn:function(e){return function(t,n){return-1*(n/=e)*(n-2)+0}}}},e.easeInOutQuad=function(){return{fn:function(e){return function(t,n){return(n/=e/2)<1?.5*n*n+0:-.5*(--n*(n-2)-1)+0}}}},e.easeInElastic=function(){return{fn:function(e){return function(t,n){var r=1.70158,o=0,i=1;return 0==n?0:1==(n/=e)?1:(o||(o=.3*e),i0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&e.parentNode?(e.childNodes||[])[t-1]:void 0},n.visitAncestors=i,n.findAncestor=a,n.findRootElement=function(e){return e?e.parentNode?a(e.parentNode,(function(e){return!e.parentNode})):e:void 0},n.filterAncestors=function(e,t,n){void 0===n&&(n={});var r=[];return i(e,(function(e){return t(e)&&r.push(e),!1})),r},n.visitDescendants=u,n.filterDescendants=function(e,t,n){void 0===n&&(n={});var r=[];return u(e,(function(e){return t(e)&&r.push(e),!1}),n),r},n.mapDescendants=function(e,t,n){void 0===n&&(n={});var r=[];return u(e,(function(e){return r.push(t(e)),!1}),n),r},n.findDescendant=function(e,t,n){var r;return void 0===n&&(n={}),u(e,(function(e){return!!t(e)&&(r=e,!0)}),n),r},n.getAncestors=function(e){for(var t=e,n=[];t&&(t=t.parentNode);)n.push(t);return n},n.getDistanceToAncestor=function e(t,n){return t!==n&&t&&n?e(t.parentNode,n)+1:0}},{}],117:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.prototype.toString;function o(e){return r.call(e)}n.getType=o,n.isObject=function(e){return"object"===typeof e&&"[object Object]"===o(e)},n.isArray=Array.isArray||function(e){return"[object Array]"===r.call(e)},n.isString=function(e){return"string"===typeof e},n.isBoolean=function(e){return"boolean"===typeof e||"[object Boolean]"===o(e)},n.typeOf=function(e){return{}.toString.call(e).slice(8,-1).toLowerCase()},n.notUndefined=function(e){return void 0!==e},n.notFalsy=function(e){return!!e}},{}],118:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getFileNameFromUrl=function(e){var t=e.indexOf("#");return((e=-1!==t?e.substring(0,t):e).split("/").pop()||"").replace(/[\?].*$/g,"")},n.getParametersFromUrl=function(e){var t=e.split("?")[1],n={};if(!t)return n;for(var r=(t=t.split("#")[0]).split("&"),o=0;o=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,o="/"===a.charAt(0))}return(o?"/":"")+(n=t(r(n.split("/"),(function(e){return!!e})),!o).join("/"))||"."},n.normalize=function(e){var i=n.isAbsolute(e),a="/"===o(e,-1);return(e=t(r(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),u=a,l=0;l=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=function(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===r&&(o=!1,r=a+1),46===u?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o=function(e,t,n){return e.substr(t,n)}}).call(this,e("_process"))},{_process:121}],121:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"===typeof clearTimeout?clearTimeout:u}catch(e){o=u}}();var s,c=[],f=!1,d=-1;function p(){f&&s&&(f=!1,s.length?c=s.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=l(p);f=!0;for(var t=c.length;t;){for(s=c,c=[];++d1)for(var n=1;n