CyberChef/modules/Image.js

2 lines
905 KiB
JavaScript
Executable File
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.

/*! For license information please see Image.js.LICENSE.txt */
(()=>{var __webpack_modules__={66212:(t,e,r)=>{"use strict";var n=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(2676)),a=n(r(38064)),o=r(66576),s="image/bmp",u="image/x-ms-bmp",l=function(t){return e=a.default.decode(t),(0,o.scan)({bitmap:e},0,0,e.width,e.height,(function(t,r,n){var i=this.bitmap.data[n+0],a=this.bitmap.data[n+1],o=this.bitmap.data[n+2],s=this.bitmap.data[n+3];this.bitmap.data[n+0]=s,this.bitmap.data[n+1]=o,this.bitmap.data[n+2]=a,this.bitmap.data[n+3]=e.is_with_alpha?i:255})).bitmap;var e},c=function(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};e.default=function(){var t,e;return{mime:(0,i.default)({},s,["bmp"]),constants:{MIME_BMP:s,MIME_X_MS_BMP:u},decoders:(t={},(0,i.default)(t,s,l),(0,i.default)(t,u,l),t),encoders:(e={},(0,i.default)(e,s,c),(0,i.default)(e,u,c),e)}},t.exports=e.default},88292:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.srcOver=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/n,g:(t.g*t.a+e.g*e.a*(1-t.a))/n,b:(t.b*t.a+e.b*e.a*(1-t.a))/n,a:n}},e.dstOver=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=r;var n=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/n,g:(e.g*e.a+t.g*t.a*(1-e.a))/n,b:(e.b*e.a+t.b*t.a*(1-e.a))/n,a:n}},e.multiply=function(t,e){var r=arguments.length>2&&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,u=e.g*e.a,l=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*l+o*(1-e.a)+l*(1-t.a))/n,a:n}},e.add=function(t,e){var r=arguments.length>2&&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;return{r:(i+e.r*e.a)/n,g:(a+e.g*e.a)/n,b:(o+e.b*e.a)/n,a:n}},e.screen=function(t,e){var r=arguments.length>2&&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,u=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*e.a+u*t.a-a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*e.a+l*t.a-o*l+o*(1-e.a)+l*(1-t.a))/n,a:n}},e.overlay=function(t,e){var r=arguments.length>2&&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,u=e.g*e.a,l=e.b*e.a;return{r:(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,g:(2*u<=e.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/n,b:(2*l<=e.a?2*o*l+o*(1-e.a)+l*(1-t.a):o*(1+e.a)+l*(1+t.a)-2*l*o-e.a*t.a)/n,a:n}},e.darken=function(t,e){var r=arguments.length>2&&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,u=e.g*e.a,l=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.min(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/n,b:(Math.min(o*e.a,l*t.a)+o*(1-e.a)+l*(1-t.a))/n,a:n}},e.lighten=function(t,e){var r=arguments.length>2&&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,u=e.g*e.a,l=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/n,g:(Math.max(a*e.a,u*t.a)+a*(1-e.a)+u*(1-t.a))/n,b:(Math.max(o*e.a,l*t.a)+o*(1-e.a)+l*(1-t.a))/n,a:n}},e.hardLight=function(t,e){var r=arguments.length>2&&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,u=e.g*e.a,l=e.b*e.a;return{r:(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,g:(2*a<=t.a?2*a*u+a*(1-e.a)+u*(1-t.a):a*(1+e.a)+u*(1+t.a)-2*u*a-e.a*t.a)/n,b:(2*o<=t.a?2*o*l+o*(1-e.a)+l*(1-t.a):o*(1+e.a)+l*(1+t.a)-2*l*o-e.a*t.a)/n,a:n}},e.difference=function(t,e){var r=arguments.length>2&&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,u=e.g*e.a,l=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/n,g:(a+u-2*Math.min(a*e.a,u*t.a))/n,b:(o+l-2*Math.min(o*e.a,l*t.a))/n,a:n}},e.exclusion=function(t,e){var r=arguments.length>2&&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,u=e.g*e.a,l=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/n,g:(a*e.a+u*t.a-2*a*u+a*(1-e.a)+u*(1-t.a))/n,b:(o*e.a+l*t.a-2*o*l+o*(1-e.a)+l*(1-t.a))/n,a:n}}},86180:(t,e,r)=>{"use strict";var n=r(81480);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if("function"==typeof n&&(s=n,n={}),!(t instanceof this.constructor))return i.throwError.call(this,"The source must be a Jimp image",s);if("number"!=typeof e||"number"!=typeof r)return i.throwError.call(this,"x and y must be numbers",s);var u=n,l=u.mode,c=u.opacitySource,h=u.opacityDest;l||(l=a.BLEND_SOURCE_OVER),("number"!=typeof c||c<0||c>1)&&(c=1),("number"!=typeof h||h<0||h>1)&&(h=1);var f=o[l];e=Math.round(e),r=Math.round(r);var d=this;return 1!==h&&d.opacity(h),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,i){var o=d.getPixelIndex(e+t,r+n,a.EDGE_CROP),s=f({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:d.bitmap.data[o+0]/255,g:d.bitmap.data[o+1]/255,b:d.bitmap.data[o+2]/255,a:d.bitmap.data[o+3]/255},c);d.bitmap.data[o+0]=this.constructor.limit255(255*s.r),d.bitmap.data[o+1]=this.constructor.limit255(255*s.g),d.bitmap.data[o+2]=this.constructor.limit255(255*s.b),d.bitmap.data[o+3]=this.constructor.limit255(255*s.a)})),(0,i.isNodePattern)(s)&&s.call(this,null,this),this};var i=r(66576),a=n(r(57076)),o=n(r(88292));t.exports=e.default},57076:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EDGE_CROP=e.EDGE_WRAP=e.EDGE_EXTEND=e.BLEND_EXCLUSION=e.BLEND_DIFFERENCE=e.BLEND_HARDLIGHT=e.BLEND_LIGHTEN=e.BLEND_DARKEN=e.BLEND_OVERLAY=e.BLEND_SCREEN=e.BLEND_ADD=e.BLEND_MULTIPLY=e.BLEND_DESTINATION_OVER=e.BLEND_SOURCE_OVER=e.VERTICAL_ALIGN_BOTTOM=e.VERTICAL_ALIGN_MIDDLE=e.VERTICAL_ALIGN_TOP=e.HORIZONTAL_ALIGN_RIGHT=e.HORIZONTAL_ALIGN_CENTER=e.HORIZONTAL_ALIGN_LEFT=e.AUTO=void 0,e.AUTO=-1,e.HORIZONTAL_ALIGN_LEFT=1,e.HORIZONTAL_ALIGN_CENTER=2,e.HORIZONTAL_ALIGN_RIGHT=4,e.VERTICAL_ALIGN_TOP=8,e.VERTICAL_ALIGN_MIDDLE=16,e.VERTICAL_ALIGN_BOTTOM=32,e.BLEND_SOURCE_OVER="srcOver",e.BLEND_DESTINATION_OVER="dstOver",e.BLEND_MULTIPLY="multiply",e.BLEND_ADD="add",e.BLEND_SCREEN="screen",e.BLEND_OVERLAY="overlay",e.BLEND_DARKEN="darken",e.BLEND_LIGHTEN="lighten",e.BLEND_HARDLIGHT="hardLight",e.BLEND_DIFFERENCE="difference",e.BLEND_EXCLUSION="exclusion",e.EDGE_EXTEND=1,e.EDGE_WRAP=2,e.EDGE_CROP=3},49544:(t,e,r)=>{"use strict";var n=r(99532).Sn,i=r(26512),a=r(81480),o=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.addConstants=G,e.addJimpMethods=j,e.jimpEvMethod=H,e.jimpEvChange=W,Object.defineProperty(e,"addType",{enumerable:!0,get:function(){return M.addType}}),e.default=void 0;for(var s=o(r(40112)),u=o(r(97936)),l=o(r(94064)),c=o(r(66024)),h=o(r(96284)),f=o(r(85912)),d=o(r(71559)),p=o(r(54216)),m=o(r(2676)),g=o(r(59848)),b=o(r(54096)),v=o(r(38832)),y=o(r(84936)),w=r(66576),_=o(r(70276)),k=o(r(9624)),B=o(r(16976)),x=o(r(55024)),E=o(r(13540)),C=o(r(90120)),A=o(r(86180)),I=o(r(16664)),M=a(r(41136)),P=r(528),S=a(r(57076)),T="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",R=[NaN,NaN],L=2;L<65;L++){var O=(0,_.default)(_.default.BIN,T.slice(0,L))(new Array(65).join("1"));R.push(O.length)}function F(){}function N(t,e){(0,C.default)(t,(function(r,i,a){if(r)return e(r);if("headers"in i&&"location"in i.headers)return t.url=i.headers.location,N(t,e);if("object"===(0,g.default)(a)&&n.isBuffer(a))return e(null,a);var o="Could not load Buffer from <"+t.url+"> (HTTP: "+i.statusCode+")";return new Error(o)}))}var U,D={data:null,width:null,height:null},z=function(t){function e(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];(0,l.default)(this,e),t=(0,h.default)(this,(0,f.default)(e).call(this)),(0,m.default)((0,d.default)(t),"bitmap",D),(0,m.default)((0,d.default)(t),"_background",0),(0,m.default)((0,d.default)(t),"_originalMime",e.MIME_PNG),(0,m.default)((0,d.default)(t),"_exif",null),(0,m.default)((0,d.default)(t),"_rgba",!0),(0,m.default)((0,d.default)(t),"writeAsync",(function(e){return(0,I.default)(t.write,(0,d.default)(t),e)})),(0,m.default)((0,d.default)(t),"getBase64Async",(function(e){return(0,I.default)(t.getBase64,(0,d.default)(t),e)})),(0,m.default)((0,d.default)(t),"getBuffer",P.getBuffer),(0,m.default)((0,d.default)(t),"getBufferAsync",P.getBufferAsync),(0,m.default)((0,d.default)(t),"getPixelColour",t.getPixelColor),(0,m.default)((0,d.default)(t),"setPixelColour",t.setPixelColor);var o,s,u=(0,d.default)(t),c=F;function p(){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&&c===F?u.emitError("constructor",n):n||u.emitMulti("constructor","initialized"),(t=c).call.apply(t,[u].concat(e))}),1)}if(o=i[0],Object.prototype.toString.call(o).toLowerCase().indexOf("arraybuffer")>-1&&(i[0]=function(t){for(var e=n.alloc(t.byteLength),r=new Uint8Array(t),i=0;i<e.length;++i)e[i]=r[i];return e}(i[0])),"number"==typeof i[0]&&"number"==typeof i[1]||parseInt(i[0],10)&&parseInt(i[1],10)){var v=parseInt(i[0],10),y=parseInt(i[1],10);if(c=i[2],"number"==typeof i[2]&&(t._background=i[2],c=i[3]),"string"==typeof i[2]&&(t._background=e.cssColorToHex(i[2]),c=i[3]),void 0===c&&(c=F),"function"!=typeof c)return(0,h.default)(t,w.throwError.call((0,d.default)(t),"cb must be a function",p));t.bitmap={data:n.alloc(v*y*4),width:v,height:y};for(var _=0;_<t.bitmap.data.length;_+=4)t.bitmap.data.writeUInt32BE(t._background,_);p(null,(0,d.default)(t))}else if("object"===(0,g.default)(i[0])&&i[0].url){if("function"!=typeof(c=i[1]||F))return(0,h.default)(t,w.throwError.call((0,d.default)(t),"cb must be a function",p));N(i[0],(function(e,r){if(e)return w.throwError.call((0,d.default)(t),e,p);t.parseBitmap(r,i[0].url,p)}))}else if(i[0]instanceof e){var k=i[0];if(void 0===(c=i[1])&&(c=F),"function"!=typeof c)return(0,h.default)(t,w.throwError.call((0,d.default)(t),"cb must be a function",p));t.bitmap={data:n.from(k.bitmap.data),width:k.bitmap.width,height:k.bitmap.height},t._quality=k._quality,t._deflateLevel=k._deflateLevel,t._deflateStrategy=k._deflateStrategy,t._filterType=k._filterType,t._rgba=k._rgba,t._background=k._background,t._originalMime=k._originalMime,p(null,(0,d.default)(t))}else if((s=i[0])&&"object"===(0,g.default)(s)&&"number"==typeof s.width&&"number"==typeof s.height&&(n.isBuffer(s.data)||s.data instanceof Uint8Array||"function"==typeof Uint8ClampedArray&&s.data instanceof Uint8ClampedArray)&&(s.data.length===s.width*s.height*4||s.data.length===s.width*s.height*3)){var B=i[0];c=i[1]||F;var x=B.width*B.height*4===B.data.length?n.from(B.data):function(t){if(t.length%3!=0)throw new Error("Buffer length is incorrect");for(var e=n.allocUnsafe(t.length/3*4),r=0,i=0;i<t.length;i++)e[r]=t[i],(i+1)%3==0&&(e[++r]=255),r++;return e}(B.data);t.bitmap={data:x,width:B.width,height:B.height},p(null,(0,d.default)(t))}else if("string"==typeof i[0]){var E=i[0];if(void 0===(c=i[1])&&(c=F),"function"!=typeof c)return(0,h.default)(t,w.throwError.call((0,d.default)(t),"cb must be a function",p));!function(t,e){b.default&&"function"==typeof b.default.readFile&&!t.match(/^(http|ftp)s?:\/\/./)?b.default.readFile(t,e):N({url:t},e)}(E,(function(e,r){if(e)return w.throwError.call((0,d.default)(t),e,p);t.parseBitmap(r,E,p)}))}else if("object"===(0,g.default)(i[0])&&n.isBuffer(i[0])){var C=i[0];if("function"!=typeof(c=i[1]))return(0,h.default)(t,w.throwError.call((0,d.default)(t),"cb must be a function",p));t.parseBitmap(C,null,p)}else{"function"!=typeof(c=i[i.length-1])&&"function"!=typeof(c=i[i.length-2])&&(c=F);var A=e.__extraConstructors.find((function(t){return t.test.apply(t,i)}));if(!A)return(0,h.default)(t,w.throwError.call((0,d.default)(t),"No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.",p));new Promise((function(e,r){var n;(n=A.run).call.apply(n,[(0,d.default)(t),e,r].concat(i))})).then((function(){return p(null,(0,d.default)(t))})).catch(p)}return t}return(0,p.default)(e,t),(0,c.default)(e,[{key:"parseBitmap",value:function(t,e,r){P.parseBitmap.call(this,t,null,r)}},{key:"rgba",value:function(t,e){return"boolean"!=typeof t?w.throwError.call(this,"bool must be a boolean, true for RGBA or false for RGB",e):(this._rgba=t,(0,w.isNodePattern)(e)&&e.call(this,null,this),this)}},{key:"emitMulti",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=Object.assign(r,{methodName:t,eventName:e}),this.emit("any",r),t&&this.emit(t,r),this.emit(e,r)}},{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===D?"pending...":this.bitmap.width+"x"+this.bitmap.height)+">"}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||e.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return M.getExtension(t)}},{key:"write",value:function(t,e){var r=this;if(!b.default||!b.default.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof t)return w.throwError.call(this,"path must be a string",e);if(void 0===e&&(e=F),"function"!=typeof e)return w.throwError.call(this,"cb must be a function",e);var n=M.getType(t)||this.getMIME(),i=v.default.parse(t);return i.dir&&k.default.sync(i.dir),this.getBuffer(n,(function(n,i){if(n)return w.throwError.call(r,n,e);var a=b.default.createWriteStream(t);a.on("open",(function(){a.write(i),a.end()})).on("error",(function(t){return w.throwError.call(r,t,e)})),a.on("finish",(function(){e.call(r,null,r)}))})),this}},{key:"getBase64",value:function(t,r){return t===e.AUTO&&(t=this.getMIME()),"string"!=typeof t?w.throwError.call(this,"mime must be a string",r):"function"!=typeof r?w.throwError.call(this,"cb must be a function",r):(this.getBuffer(t,(function(e,n){if(e)return w.throwError.call(this,e,r);var i="data:"+t+";base64,"+n.toString("base64");r.call(this,null,i)})),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return w.throwError.call(this,"base must be a number",e);if(t<2||t>64)return w.throwError.call(this,"base must be a number between 2 and 64",e);var r=this.pHash();for(r=(0,_.default)(_.default.BIN,T.slice(0,t))(r);r.length<R[t];)r="0"+r;return(0,w.isNodePattern)(e)&&e.call(this,null,r),r}},{key:"pHash",value:function(){return(new E.default).getHash(this)}},{key:"distanceFromHash",value:function(t){var e=new E.default,r=e.getHash(this);return e.distance(r,t)}},{key:"getPixelIndex",value:function(t,r,n,i){var a,o;if("function"==typeof n&&void 0===i&&(i=n,n=null),n||(n=e.EDGE_EXTEND),"number"!=typeof t||"number"!=typeof r)return w.throwError.call(this,"x and y must be numbers",i);a=t=Math.round(t),o=r=Math.round(r),n===e.EDGE_EXTEND&&(t<0&&(a=0),t>=this.bitmap.width&&(a=this.bitmap.width-1),r<0&&(o=0),r>=this.bitmap.height&&(o=this.bitmap.height-1)),n===e.EDGE_WRAP&&(t<0&&(a=this.bitmap.width+t),t>=this.bitmap.width&&(a=t%this.bitmap.width),r<0&&(a=this.bitmap.height+r),r>=this.bitmap.height&&(o=r%this.bitmap.height));var s=this.bitmap.width*o+a<<2;return(a<0||a>=this.bitmap.width)&&(s=-1),(o<0||o>=this.bitmap.height)&&(s=-1),(0,w.isNodePattern)(i)&&i.call(this,null,s),s}},{key:"getPixelColor",value:function(t,e,r){if("number"!=typeof t||"number"!=typeof e)return w.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,w.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 w.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,w.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[r+3])return!0}return!1}},{key:"scanIterator",value:function(t,e,r,n){return"number"!=typeof t||"number"!=typeof e?w.throwError.call(this,"x and y must be numbers"):"number"!=typeof r||"number"!=typeof n?w.throwError.call(this,"w and h must be numbers"):(0,w.scanIterator)(this,t,e,r,n)}}]),e}(y.default);function G(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z;Object.entries(t).forEach((function(t){var r=(0,u.default)(t,2),n=r[0],i=r[1];e[n]=i}))}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z;Object.entries(t).forEach((function(t){var r=(0,u.default)(t,2),n=r[0],i=r[1];e.prototype[n]=i}))}function H(t,e,r){var n="before-"+e,i=e.replace(/e$/,"")+"ed";z.prototype[t]=function(){for(var e,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var u,l=o[r.length-1],c=this;"function"==typeof l?(e=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=r[0],o=r[1];a?c.emitError(t,a):c.emitMulti(t,i,(0,m.default)({},t,o)),l.apply(this,r)},o[o.length-1]=e):e=!1,this.emitMulti(t,n);try{u=r.apply(this,o),e||this.emitMulti(t,i,(0,m.default)({},t,u))}catch(e){e.methodName=t,this.emitError(t,e)}return u},z.prototype[t+"Quiet"]=r}function W(t,e){H(t,"change",e)}G(S),j({composite:A.default}),z.__extraConstructors=[],z.appendConstructorOption=function(t,e,r){z.__extraConstructors.push({name:t,test:e,run:r})},z.read=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return new Promise((function(t,r){(0,s.default)(z,e.concat([function(e,n){e?r(e):t(n)}]))}))},z.create=z.read,z.rgbaToInt=function(t,e,r,n,i){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof r||"number"!=typeof n)return w.throwError.call(this,"r, g, b and a must be numbers",i);if(t<0||t>255)return w.throwError.call(this,"r must be between 0 and 255",i);if((e<0||e>255)&&w.throwError.call(this,"g must be between 0 and 255",i),r<0||r>255)return w.throwError.call(this,"b must be between 0 and 255",i);if(n<0||n>255)return w.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,w.isNodePattern)(i)&&i.call(this,null,a),a},z.intToRGBA=function(t,e){if("number"!=typeof t)return w.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,w.isNodePattern)(e)&&e.call(this,null,r),r},z.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt((0,x.default)(t).toHex8(),16)},z.limit255=function(t){return t=Math.max(t,0),Math.min(t,255)},z.diff=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof z&&e instanceof z))return w.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||r>1)return w.throwError.call(this,"threshold must be a number between 0 and 1");var a=new z(n.width,n.height,4294967295);return{percent:(0,B.default)(n.data,i.data,a.bitmap.data,a.bitmap.width,a.bitmap.height,{threshold:r})/(a.bitmap.width*a.bitmap.height),image:a}},z.distance=function(t,e){var r=new E.default,n=r.getHash(t),i=r.getHash(e);return r.distance(n,i)},z.compareHashes=function(t,e){return(new E.default).distance(t,e)},z.colorDiff=function(t,e){var r=function(t){return Math.pow(t,2)},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},H("clone","clone",(function(t){var e=new z(this);return(0,w.isNodePattern)(t)&&t.call(e,null,e),e})),W("background",(function(t,e){return"number"!=typeof t?w.throwError.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,(0,w.isNodePattern)(e)&&e.call(this,null,this),this)})),W("scan",(function(t,e,r,n,i,a){if("number"!=typeof t||"number"!=typeof e)return w.throwError.call(this,"x and y must be numbers",a);if("number"!=typeof r||"number"!=typeof n)return w.throwError.call(this,"w and h must be numbers",a);if("function"!=typeof i)return w.throwError.call(this,"f must be a function",a);var o=(0,w.scan)(this,t,e,r,n,i);return(0,w.isNodePattern)(a)&&a.call(this,null,o),o})),"BROWSER"===i.env.ENVIRONMENT&&("undefined"!=typeof window&&"object"===("undefined"==typeof window?"undefined":(0,g.default)(window))&&(U=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":(0,g.default)(self))&&(U=self),U.Jimp=z,U.Buffer=n);var q=z;e.default=q},13540:t=>{"use strict";function e(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;e<t;e++)r[e]=1;r[0]=1/Math.sqrt(2)}(this.size)}e.prototype.size=32,e.prototype.smallerSize=8,e.prototype.distance=function(t,e){for(var r=0,n=0;n<t.length;n++)t[n]!==e[n]&&r++;return r/t.length},e.prototype.getHash=function(t){(t=t.clone().resize(this.size,this.size)).grayscale();for(var e=[],n=0;n<t.bitmap.width;n++){e[n]=[];for(var i=0;i<t.bitmap.height;i++)e[n][i]=(a=t.getPixelColor(n,i),o=void 0,o={},o.r=Math.floor(a/Math.pow(256,3)),o.g=Math.floor((a-o.r*Math.pow(256,3))/Math.pow(256,2)),o.b=Math.floor((a-o.r*Math.pow(256,3)-o.g*Math.pow(256,2))/Math.pow(256,1)),o.a=Math.floor((a-o.r*Math.pow(256,3)-o.g*Math.pow(256,2)-o.b*Math.pow(256,1))/Math.pow(256,0)),o).b}for(var a,o,s=function(t,e){for(var n=e,i=[],a=0;a<n;a++){i[a]=[];for(var o=0;o<n;o++){for(var s=0,u=0;u<n;u++)for(var l=0;l<n;l++)s+=Math.cos((2*u+1)/(2*n)*a*Math.PI)*Math.cos((2*l+1)/(2*n)*o*Math.PI)*t[u][l];s*=r[a]*r[o]/4,i[a][o]=s}}return i}(e,this.size),u=0,l=0;l<this.smallerSize;l++)for(var c=0;c<this.smallerSize;c++)u+=s[l][c];for(var h=u/(this.smallerSize*this.smallerSize),f="",d=0;d<this.smallerSize;d++)for(var p=0;p<this.smallerSize;p++)f+=s[d][p]>h?"1":"0";return f};var r=[];t.exports=e},90120:(t,e,r)=>{"use strict";var n=r(99532).Sn,i=r(22411);i(r(2676)),i(r(82048)),t.exports=function(t,e){var r=new XMLHttpRequest;r.open("GET",t.url,!0),r.responseType="arraybuffer",r.addEventListener("load",(function(){if(r.status<400)try{var i=n.from(this.response);e(null,r,i)}catch(r){return e(new Error("Response is not a buffer for url "+t.url+". Error: "+r.message))}else e(new Error("HTTP Status "+r.status+" for url "+t.url))})),r.addEventListener("error",(function(t){e(t)})),r.send()}},528:(t,e,r)=>{"use strict";var n=r(99532).Sn,i=r(81480),a=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.parseBitmap=function(t,e,r){var n,i;return s.default.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,s.default.awrap(p(t,e));case 2:if("string"==typeof(n=a.sent)){a.next=5;break}return a.abrupt("return",r(new Error("Could not find MIME for Buffer <"+e+">")));case 5:if(this._originalMime=n.toLowerCase(),a.prev=6,i=this.getMIME(),!this.constructor.decoders[i]){a.next=12;break}this.bitmap=this.constructor.decoders[i](t),a.next=13;break;case 12:return a.abrupt("return",c.throwError.call(this,"Unsupported MIME type: "+i,r));case 13:a.next=18;break;case 15:return a.prev=15,a.t0=a.catch(6),a.abrupt("return",r.call(this,a.t0,this));case 18:try{this._exif=l.default.create(t).parse(),g(this)}catch(t){}return r.call(this,null,this),a.abrupt("return",this);case 21:case"end":return a.stop()}}),null,this,[[6,15]])},e.getBuffer=b,e.getBufferAsync=function(t){return(0,d.default)(b,this,t)};var o=a(r(97936)),s=a(r(33248)),u=a(r(60927)),l=a(r(4440)),c=r(66576),h=i(r(57076)),f=i(r(41136)),d=a(r(16664));function p(t,e){var r;return s.default.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.default.awrap(u.default.fromBuffer(t));case 2:if(!(r=n.sent)){n.next=5;break}return n.abrupt("return",r.mime);case 5:if(!e){n.next=7;break}return n.abrupt("return",f.getType(e));case 7:return n.abrupt("return",null);case 8:case"end":return n.stop()}}))}function m(t){return t._exif&&t._exif.tags&&t._exif.tags.Orientation||1}function g(t){if(!(m(t)<2)){var e=function(t){var e=t.getWidth(),r=t.getHeight();switch(m(t)){case 1:default:return null;case 2:return function(t,r){return[e-t-1,r]};case 3:return function(t,n){return[e-t-1,r-n-1]};case 4:return function(t,e){return[t,r-e-1]};case 5:return function(t,e){return[e,t]};case 6:return function(t,e){return[e,r-t-1]};case 7:return function(t,n){return[e-n-1,r-t-1]};case 8:return function(t,r){return[e-r-1,t]}}}(t),r=m(t)>4;!function(t,e,r,i){for(var a=t.bitmap.data,s=t.bitmap.width,u=n.alloc(a.length),l=0;l<e;l++)for(var c=0;c<r;c++){var h=i(l,c),f=(0,o.default)(h,2),d=f[0],p=e*c+l<<2,m=s*f[1]+d<<2,g=a.readUInt32BE(m);u.writeUInt32BE(g,p)}t.bitmap.data=u,t.bitmap.width=e,t.bitmap.height=r}(t,r?t.bitmap.height:t.bitmap.width,r?t.bitmap.width:t.bitmap.height,e)}}function b(t,e){if(t===h.AUTO&&(t=this.getMIME()),"string"!=typeof t)return c.throwError.call(this,"mime must be a string",e);if("function"!=typeof e)return c.throwError.call(this,"cb must be a function",e);var r,i;if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=n.from(this.bitmap.data):this.bitmap.data=(r=this.constructor,i=this,new r(i.bitmap.width,i.bitmap.height,i._background).composite(i,0,0).bitmap).data,this.constructor.encoders[t]){var a=this.constructor.encoders[t](this);e.call(this,null,a)}else e.call(this,"Unsupported MIME type: "+t);return this}},41136:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getExtension=e.getType=e.addType=void 0;var r={};e.addType=function(t,e){r[t]=e},e.getType=function(t){var e,n=t.split("/").slice(-1);return(e=n[n.length-1].split(".").pop(),Object.entries(r).find((function(t){return t[1].includes(e)}))||[])[0]},e.getExtension=function(t){return(r[t.toLowerCase()]||[])[0]}},16664:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return new Promise((function(r,i){n.push((function(t,e){t&&i(t),r(e)})),t.bind(e).apply(void 0,n)}))},t.exports=e.default},99532:(t,e,r)=>{"use strict";var n=r(25704),i=r(24404),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Sn=u,e.ZK=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=s(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(G(t,Uint8Array)){var e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(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(G(t,ArrayBuffer)||t&&G(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(G(t,SharedArrayBuffer)||t&&G(t.buffer,SharedArrayBuffer)))return d(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 u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|p(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||j(t.length)?s(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.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 c(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 h(t){return c(t),s(t<0?0:0|p(t))}function f(t){for(var e=t.length<0?0:0|p(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(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;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,u.prototype),n}function p(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||G(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=arguments.length>2&&!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 U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(t).length;default:if(i)return n?-1:U(t).length;e=(""+e).toLowerCase(),i=!0}}function g(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 P(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return M(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),j(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=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(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):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var c=-1;for(a=r;a<s;a++)if(l(t,a)===l(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var h=!0,f=0;f<u;f++)if(l(t,a+f)!==l(e,f)){h=!1;break}if(h)return a}return-1}function w(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(j(s))return o;t[r+o]=s}return o}function _(t,e,r,n){return z(U(e,t.length-r),t,r,n)}function k(t,e,r,n){return z(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function B(t,e,r,n){return z(D(e),t,r,n)}function x(t,e,r,n){return z(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,u,l=t[i],c=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(a=t[i+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}u.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}}(),u.TYPED_ARRAY_SUPPORT||"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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)}(t,e,r)},u.allocUnsafe=function(t){return h(t)},u.allocUnsafeSlow=function(t){return h(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),G(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.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},u.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}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(G(a,Uint8Array))i+a.length>n.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.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)b(this,e,e+1);return this},u.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)b(this,e,e+3),b(this,e+1,e+2);return this},u.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)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?C(this,0,t):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.ZK;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.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(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)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),c=t.slice(e,r),h=0;h<s;++h)if(l[h]!==c[h]){a=l[h],o=c[h];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},u.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||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":case"latin1":case"binary":return k(this,t,e,r);case"base64":return B(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function I(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 M(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 P(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=H[t[a]];return i}function S(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function T(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function L(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function F(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(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},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(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},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(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},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);R(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},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);R(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(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},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(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},u.prototype.writeFloatLE=function(t,e,r){return O(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return O(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.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),n>0&&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;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.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&&!u.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,t||(t=0),"number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=u.isBuffer(t)?t:u.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 N=/[^+/0-9A-Za-z-_]/g;function U(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&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 D(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(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 G(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function j(t){return t!=t}var H=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}()},63496:(t,e,r)=>{"use strict";var n=r(81480),i=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default,r={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function n(t){Object.entries(t).forEach((function(t){var e=(0,s.default)(t,2),n=e[0],i=e[1];r[n]=c({},r[n],{},i)}))}return t.types&&(t.types.forEach((function(t){var e=t();Array.isArray(e.mime)?u.addType.apply(void 0,(0,a.default)(e.mime)):Object.entries(e.mime).forEach((function(t){return u.addType.apply(void 0,(0,a.default)(t))})),delete e.mime,n(e)})),e.decoders=c({},e.decoders,{},r.decoders),e.encoders=c({},e.encoders,{},r.encoders),e.hasAlpha=c({},e.hasAlpha,{},r.hasAlpha)),t.plugins&&t.plugins.forEach((function(t){var e=t(u.jimpEvChange)||{};e.class||e.constants?n(e):n({class:e})})),(0,u.addJimpMethods)(r.class,e),(0,u.addConstants)(r.constants,e),u.default};var a=i(r(25724)),o=i(r(2676)),s=i(r(97936)),u=n(r(49544));function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(r,!0).forEach((function(e){(0,o.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}t.exports=e.default},63176:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(r(2676)),o=i(r(98451)),s=r(96708),u="image/gif";e.default=function(){return{mime:(0,a.default)({},u,["gif"]),constants:{MIME_GIF:u},decoders:(0,a.default)({},u,(function(t){var e=new o.default.GifReader(t),r=n.alloc(e.width*e.height*4);return e.decodeAndBlitFrameRGBA(0,r),{data:r,width:e.width,height:e.height}})),encoders:(0,a.default)({},u,(function(t){var e=new s.BitmapImage(t.bitmap);s.GifUtil.quantizeDekker(e,256);var r=new s.GifFrame(e);return(new s.GifCodec).encodeGif([r],{}).then((function(t){return t.buffer}))}))}},t.exports=e.default},5492:(t,e,r)=>{"use strict";var n=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(2676)),a=n(r(71565)),o=r(66576),s="image/jpeg";e.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||t>100?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)}}}},t.exports=e.default},46728:(t,e,r)=>{"use strict";var n=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(59848)),a=r(66576);e.default=function(){return{blit:function(t,e,r,n,o,s,u,l){if(!(t instanceof this.constructor))return a.throwError.call(this,"The source must be a Jimp image",l);if("number"!=typeof e||"number"!=typeof r)return a.throwError.call(this,"x and y must be numbers",l);if("function"==typeof n)l=n,n=0,o=0,s=t.bitmap.width,u=t.bitmap.height;else{if((0,i.default)(n)!==(0,i.default)(o)||(0,i.default)(o)!==(0,i.default)(s)||(0,i.default)(s)!==(0,i.default)(u))return a.throwError.call(this,"srcx, srcy, srcw, srch must be numbers",l);n=n||0,o=o||0,s=s||t.bitmap.width,u=u||t.bitmap.height}e=Math.round(e),r=Math.round(r),n=Math.round(n),o=Math.round(o),s=Math.round(s),u=Math.round(u);var c=this.bitmap.width,h=this.bitmap.height,f=this;return t.scanQuiet(n,o,s,u,(function(t,i,a){var s=e+t-n,u=r+i-o;if(s>=0&&u>=0&&c-s>0&&h-u>0){var l=f.getPixelIndex(s,u),d={r:this.bitmap.data[a],g:this.bitmap.data[a+1],b:this.bitmap.data[a+2],a:this.bitmap.data[a+3]},p={r:f.bitmap.data[l],g:f.bitmap.data[l+1],b:f.bitmap.data[l+2],a:f.bitmap.data[l+3]};f.bitmap.data[l]=(d.a*(d.r-p.r)-p.r+255>>8)+p.r,f.bitmap.data[l+1]=(d.a*(d.g-p.g)-p.g+255>>8)+p.g,f.bitmap.data[l+2]=(d.a*(d.b-p.b)-p.b+255>>8)+p.b,f.bitmap.data[l+3]=this.constructor.limit255(p.a+d.a)}})),(0,a.isNodePattern)(l)&&l.call(this,null,this),this}}},t.exports=e.default},48539:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shgTable=e.mulTable=void 0,e.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],e.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]},72565:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576),i=r(48539);e.default=function(){return{blur:function(t,e){if("number"!=typeof t)return n.throwError.call(this,"r must be a number",e);if(t<1)return n.throwError.call(this,"r must be greater than 0",e);for(var r,a,o,s,u,l,c,h,f,d,p,m,g,b,v=this.bitmap.width-1,y=this.bitmap.height-1,w=t+1,_=i.mulTable[t],k=i.shgTable[t],B=[],x=[],E=[],C=[],A=[],I=[],M=2;M-- >0;){for(m=0,g=0,l=0;l<this.bitmap.height;l++){for(r=this.bitmap.data[g]*w,a=this.bitmap.data[g+1]*w,o=this.bitmap.data[g+2]*w,s=this.bitmap.data[g+3]*w,c=1;c<=t;c++)h=g+((c>v?v:c)<<2),r+=this.bitmap.data[h++],a+=this.bitmap.data[h++],o+=this.bitmap.data[h++],s+=this.bitmap.data[h];for(u=0;u<this.bitmap.width;u++)B[m]=r,x[m]=a,E[m]=o,C[m]=s,0===l&&(A[u]=((h=u+w)<v?h:v)<<2,I[u]=(h=u-t)>0?h<<2:0),f=g+A[u],d=g+I[u],r+=this.bitmap.data[f++]-this.bitmap.data[d++],a+=this.bitmap.data[f++]-this.bitmap.data[d++],o+=this.bitmap.data[f++]-this.bitmap.data[d++],s+=this.bitmap.data[f]-this.bitmap.data[d],m++;g+=this.bitmap.width<<2}for(u=0;u<this.bitmap.width;u++){for(r=B[p=u]*w,a=x[p]*w,o=E[p]*w,s=C[p]*w,c=1;c<=t;c++)r+=B[p+=c>y?0:this.bitmap.width],a+=x[p],o+=E[p],s+=C[p];for(m=u<<2,l=0;l<this.bitmap.height;l++)b=s*_>>>k,this.bitmap.data[m+3]=b,b>255&&(this.bitmap.data[m+3]=255),b>0?(b=255/b,this.bitmap.data[m]=(r*_>>>k)*b,this.bitmap.data[m+1]=(a*_>>>k)*b,this.bitmap.data[m+2]=(o*_>>>k)*b):(this.bitmap.data[m+2]=0,this.bitmap.data[m+1]=0,this.bitmap.data[m]=0),0===u&&(A[l]=((h=l+w)<y?h:y)*this.bitmap.width,I[l]=(h=l-t)>0?h*this.bitmap.width:0),f=u+A[l],d=u+I[l],r+=B[f]-B[d],a+=x[f]-x[d],o+=E[f]-E[d],s+=C[f]-C[d],m+=this.bitmap.width<<2}}return(0,n.isNodePattern)(e)&&e.call(this,null,this),this}}},t.exports=e.default},7800:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.default=function(){return{circle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(e=t,t={});var r=t.radius||(this.bitmap.width>this.bitmap.height?this.bitmap.height:this.bitmap.width)/2,i="number"==typeof t.x?t.x:this.bitmap.width/2,a="number"==typeof t.y?t.y:this.bitmap.height/2;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var o=Math.sqrt(Math.pow(t-i,2)+Math.pow(e-a,2));r-o<=0?this.bitmap.data[n+3]=0:r-o<1&&(this.bitmap.data[n+3]=255*(r-o))})),(0,n.isNodePattern)(e)&&e.call(this,null,this),this}}},t.exports=e.default},30456:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(r(25724)),o=i(r(55024)),s=r(66576);function u(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 u=t.getPixelIndex(r+o-a,n+s-a);i[0]+=t.bitmap.data[u]*e[o][s],i[1]+=t.bitmap.data[u+1]*e[o][s],i[2]+=t.bitmap.data[u+2]*e[o][s]}return i}var l=function(t){return null!=t};function c(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,s.isNodePattern)(t)&&t.call(this,null,this),this}function h(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(r/100)+t.r,g:(e.g-t.g)*(r/100)+t.g,b:(e.b-t.b)*(r/100)+t.b}}function f(t,e){var r=this;return t&&Array.isArray(t)?(t=t.map((function(t){return"xor"!==t.apply&&"mix"!==t.apply||(t.params[0]=(0,o.default)(t.params[0]).toRgb()),t})),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(n,i,u){var l={r:r.bitmap.data[u],g:r.bitmap.data[u+1],b:r.bitmap.data[u+2]},c=function(t,e){return r.constructor.limit255(l[t]+e)};t.forEach((function(t){if("mix"===t.apply)l=h(l,t.params[0],t.params[1]);else if("tint"===t.apply)l=h(l,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)l=h(l,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)l={r:l.r^t.params[0].r,g:l.g^t.params[0].g,b:l.b^t.params[0].b};else if("red"===t.apply)l.r=c("r",t.params[0]);else if("green"===t.apply)l.g=c("g",t.params[0]);else if("blue"===t.apply)l.b=c("b",t.params[0]);else{var n;if("hue"===t.apply&&(t.apply="spin"),!(l=(0,o.default)(l))[t.apply])return s.throwError.call(r,"action "+t.apply+" not supported",e);l=(n=l)[t.apply].apply(n,(0,a.default)(t.params)).toRgb()}})),r.bitmap.data[u]=l.r,r.bitmap.data[u+1]=l.g,r.bitmap.data[u+2]=l.b})),(0,s.isNodePattern)(e)&&e.call(this,null,this),this):s.throwError.call(this,"actions must be an array",e)}e.default=function(){return{brightness:function(t,e){return"number"!=typeof t?s.throwError.call(this,"val must be numbers",e):t<-1||t>1?s.throwError.call(this,"val must be a number between -1 and +1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){t<0?(this.bitmap.data[n]*=1+t,this.bitmap.data[n+1]*=1+t,this.bitmap.data[n+2]*=1+t):(this.bitmap.data[n]+=(255-this.bitmap.data[n])*t,this.bitmap.data[n+1]+=(255-this.bitmap.data[n+1])*t,this.bitmap.data[n+2]+=(255-this.bitmap.data[n+2])*t)})),(0,s.isNodePattern)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if("number"!=typeof t)return s.throwError.call(this,"val must be numbers",e);if(t<-1||t>1)return s.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:t>255?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,s.isNodePattern)(e)&&e.call(this,null,this),this},posterize:function(t,e){return"number"!=typeof t?s.throwError.call(this,"n must be numbers",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){this.bitmap.data[n]=Math.floor(this.bitmap.data[n]/255*(t-1))/(t-1)*255,this.bitmap.data[n+1]=Math.floor(this.bitmap.data[n+1]/255*(t-1))/(t-1)*255,this.bitmap.data[n+2]=Math.floor(this.bitmap.data[n+2]/255*(t-1))/(t-1)*255})),(0,s.isNodePattern)(e)&&e.call(this,null,this),this)},greyscale:c,grayscale:c,opacity:function(t,e){return"number"!=typeof t?s.throwError.call(this,"f must be a number",e):t<0||t>1?s.throwError.call(this,"f must be a number from 0 to 1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(e,r,n){var i=this.bitmap.data[n+3]*t;this.bitmap.data[n+3]=i})),(0,s.isNodePattern)(e)&&e.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,s.isNodePattern)(t)&&t.call(this,null,this),this},fade:function(t,e){return"number"!=typeof t?s.throwError.call(this,"f must be a number",e):t<0||t>1?s.throwError.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),(0,s.isNodePattern)(e)&&e.call(this,null,this),this)},convolution:function(t,e,r){"function"==typeof e&&void 0===r&&(r=e,e=null),e||(e=this.constructor.EDGE_EXTEND);var i,a,o,u,l,c,h,f,d,p,m=n.from(this.bitmap.data),g=t.length,b=t[0].length,v=Math.floor(g/2),y=Math.floor(b/2),w=-v,_=-y;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,n,s){u=0,o=0,a=0;for(var g=w;g<=v;g++)for(var b=_;b<=y;b++)f=r+b,d=n+g,i=t[g+v][b+y],-1===(p=this.getPixelIndex(f,d,e))?(h=0,c=0,l=0):(l=this.bitmap.data[p+0],c=this.bitmap.data[p+1],h=this.bitmap.data[p+2]),a+=i*l,o+=i*c,u+=i*h;a<0&&(a=0),o<0&&(o=0),u<0&&(u=0),a>255&&(a=255),o>255&&(o=255),u>255&&(u=255),m[s+0]=a,m[s+1]=o,m[s+2]=u})),this.bitmap.data=m,(0,s.isNodePattern)(r)&&r.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,s.isNodePattern)(t)&&t.call(this,null,this),this},pixelate:function(t,e,r,n,i,a){if("function"==typeof e)a=e,i=null,n=null,r=null,e=null;else{if("number"!=typeof t)return s.throwError.call(this,"size must be a number",a);if(l(e)&&"number"!=typeof e)return s.throwError.call(this,"x must be a number",a);if(l(r)&&"number"!=typeof r)return s.throwError.call(this,"y must be a number",a);if(l(n)&&"number"!=typeof n)return s.throwError.call(this,"w must be a number",a);if(l(i)&&"number"!=typeof i)return s.throwError.call(this,"h must be a number",a)}var o=[[1/16,2/16,1/16],[2/16,.25,2/16],[1/16,2/16,1/16]];e=e||0,r=r||0,n=l(n)?n:this.bitmap.width-e,i=l(i)?i:this.bitmap.height-r;var c=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){e=t*Math.floor(e/t),r=t*Math.floor(r/t);var i=u(c,o,e,r);this.bitmap.data[n]=i[0],this.bitmap.data[n+1]=i[1],this.bitmap.data[n+2]=i[2]})),(0,s.isNodePattern)(a)&&a.call(this,null,this),this},convolute:function(t,e,r,n,i,a){if(!Array.isArray(t))return s.throwError.call(this,"the kernel must be an array",a);if("function"==typeof e)a=e,e=null,r=null,n=null,i=null;else{if(l(e)&&"number"!=typeof e)return s.throwError.call(this,"x must be a number",a);if(l(r)&&"number"!=typeof r)return s.throwError.call(this,"y must be a number",a);if(l(n)&&"number"!=typeof n)return s.throwError.call(this,"w must be a number",a);if(l(i)&&"number"!=typeof i)return s.throwError.call(this,"h must be a number",a)}var o=(t.length-1)/2;e=l(e)?e:o,r=l(r)?r:o,n=l(n)?n:this.bitmap.width-e,i=l(i)?i:this.bitmap.height-r;var c=this.cloneQuiet();return this.scanQuiet(e,r,n,i,(function(e,r,n){var i=u(c,t,e,r);this.bitmap.data[n]=this.constructor.limit255(i[0]),this.bitmap.data[n+1]=this.constructor.limit255(i[1]),this.bitmap.data[n+2]=this.constructor.limit255(i[2])})),(0,s.isNodePattern)(a)&&a.call(this,null,this),this},color:f,colour:f}},t.exports=e.default},33284:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.default=function(){return{contain:function(t,e,r,i,a){if("number"!=typeof t||"number"!=typeof e)return n.throwError.call(this,"w and h must be numbers",a);"string"==typeof r&&("function"==typeof i&&void 0===a&&(a=i),i=r,r=null),"function"==typeof r&&(void 0===a&&(a=r),i=null,r=null),"function"==typeof i&&void 0===a&&(a=i,i=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),s=r>>3;if((0===o||o&o-1)&&(0===s||s&s-1))return n.throwError.call(this,"only use one flag per alignment direction",a);var u=o>>1,l=s>>1,c=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,h=this.cloneQuiet().scale(c,i);return this.resize(t,e,i),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,r){this.bitmap.data.writeUInt32BE(this._background,r)})),this.blit(h,(this.bitmap.width-h.bitmap.width)/2*u,(this.bitmap.height-h.bitmap.height)/2*l),(0,n.isNodePattern)(a)&&a.call(this,null,this),this}}},t.exports=e.default},78760:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.default=function(){return{cover:function(t,e,r,i,a){if("number"!=typeof t||"number"!=typeof e)return n.throwError.call(this,"w and h must be numbers",a);r&&"function"==typeof r&&void 0===a?(a=r,r=null,i=null):"function"==typeof i&&void 0===a&&(a=i,i=null);var o=7&(r=r||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),s=r>>3;if((0===o||o&o-1)&&(0===s||s&s-1))return n.throwError.call(this,"only use one flag per alignment direction",a);var u=o>>1,l=s>>1,c=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(c,i),this.crop((this.bitmap.width-t)/2*u,(this.bitmap.height-e)/2*l,t,e),(0,n.isNodePattern)(a)&&a.call(this,null,this),this}}},t.exports=e.default},25528:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t("crop",(function(t,e,r,i,a){if("number"!=typeof t||"number"!=typeof e)return o.throwError.call(this,"x and y must be numbers",a);if("number"!=typeof r||"number"!=typeof i)return o.throwError.call(this,"w and h must be numbers",a);if(t=Math.round(t),e=Math.round(e),r=Math.round(r),i=Math.round(i),0===t&&r===this.bitmap.width){var s=r*e+t<<2,u=s+(i*r<<2);this.bitmap.data=this.bitmap.data.slice(s,u)}else{var l=n.allocUnsafe(r*i*4),c=0;this.scanQuiet(t,e,r,i,(function(t,e,r){var n=this.bitmap.data.readUInt32BE(r,!0);l.writeUInt32BE(n,c,!0),c+=4})),this.bitmap.data=l}return this.bitmap.width=r,this.bitmap.height=i,(0,o.isNodePattern)(a)&&a.call(this,null,this),this})),{class:{autocrop:function(){for(var t,e=this.bitmap.width,r=this.bitmap.height,n=0,i=2e-4,s=!0,u=!1,l={north:!1,south:!1,east:!1,west:!1},c=arguments.length,h=new Array(c),f=0;f<c;f++)h[f]=arguments[f];for(var d=0,p=h.length;d<p;d++)if("number"==typeof h[d]&&(i=h[d]),"boolean"==typeof h[d]&&(s=h[d]),"function"==typeof h[d]&&(t=h[d]),"object"===(0,a.default)(h[d])){var m=h[d];void 0!==m.tolerance&&(i=m.tolerance),void 0!==m.cropOnlyFrames&&(s=m.cropOnlyFrames),void 0!==m.cropSymmetric&&(u=m.cropSymmetric),void 0!==m.leaveBorder&&(n=m.leaveBorder),void 0!==m.ignoreSides&&(l=m.ignoreSides)}var g=this.getPixelColor(0,0),b=this.constructor.intToRGBA(g),v=0,y=0,w=0,_=0;if(g=this.getPixelColor(0,0),!l.north)t:for(var k=0;k<r-1;k++){for(var B=0;B<e;B++){var x=this.getPixelColor(B,k),E=this.constructor.intToRGBA(x);if(this.constructor.colorDiff(b,E)>i)break t}v++}if(g=this.getPixelColor(e,0),!l.east)t:for(var C=0;C<e-1;C++){for(var A=0+v;A<r;A++){var I=this.getPixelColor(C,A),M=this.constructor.intToRGBA(I);if(this.constructor.colorDiff(b,M)>i)break t}y++}if(g=this.getPixelColor(0,r),!l.south)t:for(var P=r-1;P>=v+1;P--){for(var S=e-y-1;S>=0;S--){var T=this.getPixelColor(S,P),R=this.constructor.intToRGBA(T);if(this.constructor.colorDiff(b,R)>i)break t}w++}if(g=this.getPixelColor(e,r),!l.west)t:for(var L=e-1;L>=0+y+1;L--){for(var O=r-1;O>=0+v;O--){var F=this.getPixelColor(L,O),N=this.constructor.intToRGBA(F);if(this.constructor.colorDiff(b,N)>i)break t}_++}if(_-=n,y-=n,v-=n,w-=n,u){var U=Math.min(y,_),D=Math.min(v,w);_=U,y=U,v=D,w=D}var z=e-((_=_>=0?_:0)+(y=y>=0?y:0)),G=r-((w=w>=0?w:0)+(v=v>=0?v:0));return(s?0!==y&&0!==v&&0!==_&&0!==w:0!==y||0!==v||0!==_||0!==w)&&this.crop(y,v,z,G),(0,o.isNodePattern)(t)&&t.call(this,null,this),this}}}};var a=i(r(59848)),o=r(66576);t.exports=e.default},39328:(t,e,r)=>{"use strict";var n=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(59848)),a=r(66576);e.default=function(){return{displace:function(t,e,r){if("object"!==(0,i.default)(t)||t.constructor!==this.constructor)return a.throwError.call(this,"The source must be a Jimp image",r);if("number"!=typeof e)return a.throwError.call(this,"factor must be a number",r);var n=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,i,a){var o=t.bitmap.data[a]/256*e;o=Math.round(o);var s=this.getPixelIndex(r+o,i);this.bitmap.data[s]=n.bitmap.data[a],this.bitmap.data[s+1]=n.bitmap.data[a+1],this.bitmap.data[s+2]=n.bitmap.data[a+2]})),(0,a.isNodePattern)(r)&&r.call(this,null,this),this}}},t.exports=e.default},75344:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);function i(t){var e=[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,r,n){var i=e[((3&r)<<2)+t%4];this.bitmap.data[n]=Math.min(this.bitmap.data[n]+i,255),this.bitmap.data[n+1]=Math.min(this.bitmap.data[n+1]+i,255),this.bitmap.data[n+2]=Math.min(this.bitmap.data[n+2]+i,255)})),(0,n.isNodePattern)(t)&&t.call(this,null,this),this}e.default=function(){return{dither565:i,dither16:i}},t.exports=e.default},36211:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.default=function(){return{fisheye:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{r:2.5},r=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(r=e,e={r:2.5});var i=this.cloneQuiet(),a=i.bitmap,o=a.width,s=a.height;return i.scanQuiet(0,0,o,s,(function(r,n){var a=r/o,u=n/s,l=Math.sqrt(Math.pow(a-.5,2)+Math.pow(u-.5,2)),c=2*Math.pow(l,e.r),h=(a-.5)/l,f=(u-.5)/l,d=Math.round((c*h+.5)*o),p=Math.round((c*f+.5)*s),m=i.getPixelColor(d,p);t.setPixelColor(m,r,n)})),this.setPixelColor(i.getPixelColor(o/2,s/2),o/2,s/2),(0,n.isNodePattern)(r)&&r.call(this,null,this),this}}},t.exports=e.default},54716:(t,e,r)=>{"use strict";var n=r(33296).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(66576);function a(t,e,r){if("boolean"!=typeof t||"boolean"!=typeof e)return i.throwError.call(this,"horizontal and vertical must be Booleans",r);var a=n.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(r,n,i){var o=t?this.bitmap.width-1-r:r,s=e?this.bitmap.height-1-n:n,u=this.bitmap.width*s+o<<2,l=this.bitmap.data.readUInt32BE(i);a.writeUInt32BE(l,u)})),this.bitmap.data=n.from(a),(0,i.isNodePattern)(r)&&r.call(this,null,this),this}e.default=function(){return{flip:a,mirror:a}},t.exports=e.default},32064:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.default=function(){return{gaussian:function(t,e){if("number"!=typeof t)return n.throwError.call(this,"r must be a number",e);if(t<1)return n.throwError.call(this,"r must be greater than 0",e);for(var r=Math.ceil(2.57*t),i=2*r+1,a=t*t*2,o=a*Math.PI,s=[],u=0;u<i;u++){s[u]=[];for(var l=0;l<i;l++){var c=Math.pow(l-r,2)+Math.pow(u-r,2);s[u][l]=Math.exp(-c/a)/o}}for(var h=0;h<this.bitmap.height;h++)for(var f=0;f<this.bitmap.width;f++)for(var d=0,p=0,m=0,g=0,b=0,v=0;v<i;v++){for(var y=0;y<i;y++){var w=Math.min(this.bitmap.width-1,Math.max(0,y+f-r)),_=Math.min(this.bitmap.height-1,Math.max(0,v+h-r)),k=s[v][y],B=_*this.bitmap.width+w<<2;d+=this.bitmap.data[B]*k,p+=this.bitmap.data[B+1]*k,m+=this.bitmap.data[B+2]*k,g+=this.bitmap.data[B+3]*k,b+=k}var x=h*this.bitmap.width+f<<2;this.bitmap.data[x]=Math.round(d/b),this.bitmap.data[x+1]=Math.round(p/b),this.bitmap.data[x+2]=Math.round(m/b),this.bitmap.data[x+3]=Math.round(g/b)}return(0,n.isNodePattern)(e)&&e.call(this,null,this),this}}},t.exports=e.default},75440:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.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}}},t.exports=e.default},93784:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.default=function(){return{mask:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return n.throwError.call(this,"The source must be a Jimp image",i);if("number"!=typeof e||"number"!=typeof r)return n.throwError.call(this,"x and y must be numbers",i);e=Math.round(e),r=Math.round(r);var a=this.bitmap.width,o=this.bitmap.height,s=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,(function(t,n,i){var u=e+t,l=r+n;if(u>=0&&l>=0&&u<a&&l<o){var c=s.getPixelIndex(u,l),h=this.bitmap.data,f=(h[i+0]+h[i+1]+h[i+2])/3;s.bitmap.data[c+3]*=f/255}})),(0,n.isNodePattern)(i)&&i.call(this,null,this),this}}},t.exports=e.default},39264:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);function i(){var t={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(e,r,n){t.r[this.bitmap.data[n+0]]++,t.g[this.bitmap.data[n+1]]++,t.b[this.bitmap.data[n+2]]++})),t}var a=function(t,e,r){return 255*(t-e)/(r-e)},o=function(t){return[t.findIndex((function(t){return t>0})),255-t.slice().reverse().findIndex((function(t){return t>0}))]};e.default=function(){return{normalize:function(t){var e=i.call(this),r={r:o(e.r),g:o(e.g),b:o(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var i=this.bitmap.data[n+0],o=this.bitmap.data[n+1],s=this.bitmap.data[n+2];this.bitmap.data[n+0]=a(i,r.r[0],r.r[1]),this.bitmap.data[n+1]=a(o,r.g[0],r.g[1]),this.bitmap.data[n+2]=a(s,r.b[0],r.b[1])})),(0,n.isNodePattern)(t)&&t.call(this,null,this),this}}},t.exports=e.default},40596:(t,e,r)=>{"use strict";var n=r(26512),i=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(r(59848)),o=i(r(25724)),s=i(r(38832)),u=i(r(66131)),l=r(66576),c=r(7816);function h(t,e,r,n,i){if(i.width>0&&i.height>0){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}function f(t,e,r,n,i){for(var a=0;a<n.length;a++){var o;o=t.chars[n[a]]?n[a]:/\s/.test(n[a])?"":"?";var s=t.chars[o]||{},u=t.kernings[o];h(this,t,e,r,s||{}),e+=(u&&u[n[a+1]]?u[n[a+1]]:0)+(s.xadvance||i)}}var d=n.env.DIRNAME||"".concat("/","/../");e.default=function(){return{constants:{measureText:c.measureText,measureTextHeight:c.measureTextHeight,FONT_SANS_8_BLACK:s.default.join(d,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:s.default.join(d,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:s.default.join(d,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:s.default.join(d,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:s.default.join(d,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:s.default.join(d,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:s.default.join(d,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:s.default.join(d,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:s.default.join(d,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:s.default.join(d,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:s.default.join(d,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:s.default.join(d,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:s.default.join(d,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(t,e){var r=this;return"string"!=typeof t?l.throwError.call(this,"file must be a string",e):new Promise((function(n,i){e=e||function(t,e){t?i(t):n(e)},(0,u.default)(t,(function(n,i){var a={},o={};if(n)return l.throwError.call(r,n,e);for(var u=0;u<i.chars.length;u++)a[String.fromCharCode(i.chars[u].id)]=i.chars[u];for(var c=0;c<i.kernings.length;c++){var h=String.fromCharCode(i.kernings[c].first);o[h]=o[h]||{},o[h][String.fromCharCode(i.kernings[c].second)]=i.kernings[c].amount}(function(t,e,r){var n=r.map((function(r){return t.read(e+"/"+r)}));return Promise.all(n)})(r,s.default.dirname(t),i.pages).then((function(t){e(null,{chars:a,kernings:o,pages:t,common:i.common,info:i.info})}))}))}))}},class:{print:function(t,e,r,n,i,s,u){var h,d,p=this;if("function"==typeof i&&void 0===u&&(u=i,i=1/0),void 0===i&&(i=1/0),"function"==typeof s&&void 0===u&&(u=s,s=1/0),void 0===s&&(s=1/0),"object"!==(0,a.default)(t))return l.throwError.call(this,"font must be a Jimp loadFont",u);if("number"!=typeof e||"number"!=typeof r||"number"!=typeof i)return l.throwError.call(this,"x, y and maxWidth must be numbers",u);if("number"!=typeof i)return l.throwError.call(this,"maxWidth must be a number",u);if("number"!=typeof s)return l.throwError.call(this,"maxHeight must be a number",u);"object"===(0,a.default)(n)&&null!==n.text&&void 0!==n.text?(h=n.alignmentX||this.constructor.HORIZONTAL_ALIGN_LEFT,d=n.alignmentY||this.constructor.VERTICAL_ALIGN_TOP,n=n.text):(h=this.constructor.HORIZONTAL_ALIGN_LEFT,d=this.constructor.VERTICAL_ALIGN_TOP,n=n.toString()),s!==1/0&&d===this.constructor.VERTICAL_ALIGN_BOTTOM?r+=s-(0,c.measureTextHeight)(t,n,i):s!==1/0&&d===this.constructor.VERTICAL_ALIGN_MIDDLE&&(r+=s/2-(0,c.measureTextHeight)(t,n,i)/2);var m=Object.entries(t.chars)[0][1].xadvance,g=function(t,e,r){var n=e.split(" "),i=[],a=[],s=0;return n.forEach((function(e){var n=[].concat((0,o.default)(a),[e]).join(" "),u=(0,c.measureText)(t,n);u<=r?(u>s&&(s=u),a.push(e)):(i.push(a),a=[e])})),i.push(a),{lines:i,longestLine:s}}(t,n,i),b=g.lines,v=g.longestLine;return b.forEach((function(n){var a=n.join(" "),o=function(t,e,r,n,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(n-(0,c.measureText)(e,r))/2:n-(0,c.measureText)(e,r)}(p.constructor,t,a,i,h);f.call(p,t,e+o,r,a,m),r+=t.common.lineHeight})),(0,l.isNodePattern)(u)&&u.call(this,null,this,{x:e+v,y:r}),this}}}},t.exports=e.default},7816:(t,e)=>{"use strict";function r(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}Object.defineProperty(e,"__esModule",{value:!0}),e.measureText=r,e.measureTextHeight=function(t,e,n){for(var i=e.split(" "),a="",o=t.common.lineHeight,s=0;s<i.length;s++){var u=a+i[s]+" ";r(t,u)>n&&s>0?(o+=t.common.lineHeight,a=i[s]+" "):a=u}return o}},71460:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(66576),o=i(r(77264)),s=i(r(7912));e.default=function(){return{constants:{RESIZE_NEAREST_NEIGHBOR:"nearestNeighbor",RESIZE_BILINEAR:"bilinearInterpolation",RESIZE_BICUBIC:"bicubicInterpolation",RESIZE_HERMITE:"hermiteInterpolation",RESIZE_BEZIER:"bezierInterpolation"},class:{resize:function(t,e,r,i){if("number"!=typeof t||"number"!=typeof e)return a.throwError.call(this,"w and h must be numbers",i);if("function"==typeof r&&void 0===i&&(i=r,r=null),t===this.constructor.AUTO&&e===this.constructor.AUTO)return a.throwError.call(this,"w and h cannot both be set to auto",i);if(t===this.constructor.AUTO&&(t=this.bitmap.width*(e/this.bitmap.height)),e===this.constructor.AUTO&&(e=this.bitmap.height*(t/this.bitmap.width)),t<0||e<0)return a.throwError.call(this,"w and h must be positive numbers",i);if(t=Math.round(t),e=Math.round(e),"function"==typeof s.default[r]){var u={data:n.alloc(t*e*4),width:t,height:e};s.default[r](this.bitmap,u),this.bitmap=u}else{var l=this;new o.default(this.bitmap.width,this.bitmap.height,t,e,!0,!0,(function(r){l.bitmap.data=n.from(r),l.bitmap.width=t,l.bitmap.height=e})).resize(this.bitmap.data)}return(0,a.isNodePattern)(i)&&i.call(this,null,this),this}}}},t.exports=e.default},77264:t=>{"use strict";function e(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()}e.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error("Invalid settings specified for the resizer.");this.configurePasses()},e.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))},e.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var r,n,i=e?4:3,a=this.ratioWeightWidthPass,o=this.widthBuffer,s=0,u=0,l=0,c=0,h=0;for(r=0;s<1/3;r+=i,s+=a)for(u=r,l=0;u<this.widthPassResultSize;l+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)o[u]=t[l],o[u+1]=t[l+1],o[u+2]=t[l+2],e&&(o[u+3]=t[l+3]);for(s-=1/3,n=this.widthOriginal-1;s<n;r+=i,s+=a)for(c=1-(h=s%1),u=r,l=Math.floor(s)*i;u<this.widthPassResultSize;l+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)o[u+0]=t[l+0]*c+t[l+i+0]*h,o[u+1]=t[l+1]*c+t[l+i+1]*h,o[u+2]=t[l+2]*c+t[l+i+2]*h,e&&(o[u+3]=t[l+3]*c+t[l+i+3]*h);for(n=this.originalWidthMultipliedByChannels-i;r<this.targetWidthMultipliedByChannels;r+=i)for(u=r,l=n;u<this.widthPassResultSize;l+=this.originalWidthMultipliedByChannels,u+=this.targetWidthMultipliedByChannels)o[u]=t[l],o[u+1]=t[l+1],o[u+2]=t[l+2],e&&(o[u+3]=t[l+3]);return o},e.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,u=this.widthBuffer,l=this.outputWidthWorkBenchOpaquePixelsCount,c=0,h=0,f=0,d=0,p=0,m=0,g=0,b=1,v=0,y=0,w=0,_=0;do{for(p=0;p<this.originalHeightMultipliedByChannels;)s[p++]=0,s[p++]=0,s[p++]=0,e&&(s[p++]=0,l[p/r-1]=0);c=n;do{for(h=1+f-d,b=Math.min(c,h),p=0,m=f;p<this.originalHeightMultipliedByChannels;m+=a)v=t[m],y=t[++m],w=t[++m],_=e?t[++m]:255,s[p++]+=(_?v:0)*b,s[p++]+=(_?y:0)*b,s[p++]+=(_?w:0)*b,e&&(s[p++]+=_*b,l[p/r-1]+=_?b:0);if(!(c>=h)){d+=c;break}d=f+=r,c-=h}while(c>0&&f<this.originalWidthMultipliedByChannels);for(p=0,m=g;p<this.originalHeightMultipliedByChannels;m+=o)c=e?l[p/r]:1,b=e?c?1/c:0:i,u[m]=s[p++]*b,u[++m]=s[p++]*b,u[++m]=s[p++]*b,e&&(u[++m]=s[p++]*i);g+=r}while(g<this.targetWidthMultipliedByChannels);return u},e.prototype._resizeHeightRGBChannels=function(t,e){var r=this.ratioWeightHeightPass,n=1/r,i=this.outputHeightWorkBench,a=this.heightBuffer,o=this.outputHeightWorkBenchOpaquePixelsCount,s=0,u=0,l=0,c=0,h=0,f=0,d=0,p=1,m=0,g=0,b=0,v=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(u=1+l-c,p=Math.min(s,u),d=l,h=0;h<this.targetWidthMultipliedByChannels;)m=t[d++],g=t[d++],b=t[d++],v=e?t[d++]:255,i[h++]+=(v?m:0)*p,i[h++]+=(v?g:0)*p,i[h++]+=(v?b:0)*p,e&&(i[h++]+=v*p,o[h/4-1]+=v?p:0);if(!(s>=u)){c+=s;break}c=l=d,s-=u}while(s>0&&l<this.widthPassResultSize);for(h=0;h<this.targetWidthMultipliedByChannels;)s=e?o[h/4]:1,p=e?s?1/s:0:n,a[f++]=Math.round(i[h++]*p),a[f++]=Math.round(i[h++]*p),a[f++]=Math.round(i[h++]*p),e&&(a[f++]=Math.round(i[h++]*n))}while(f<this.finalResultSize);return a},e.prototype.resizeWidthInterpolatedRGB=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!1)},e.prototype.resizeWidthInterpolatedRGBA=function(t){return this._resizeWidthInterpolatedRGBChannels(t,!0)},e.prototype.resizeWidthRGB=function(t){return this._resizeWidthRGBChannels(t,!1)},e.prototype.resizeWidthRGBA=function(t){return this._resizeWidthRGBChannels(t,!0)},e.prototype.resizeHeightInterpolated=function(t){for(var e,r=this.ratioWeightHeightPass,n=this.heightBuffer,i=0,a=0,o=0,s=0,u=0,l=0,c=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(l=1-(c=i%1),u=(s=Math.floor(i)*this.targetWidthMultipliedByChannels)+this.targetWidthMultipliedByChannels,o=0;o<this.targetWidthMultipliedByChannels;++o)n[a++]=Math.round(t[s++]*l+t[u++]*c);for(;a<this.finalResultSize;)for(o=0,s=e*this.targetWidthMultipliedByChannels;o<this.targetWidthMultipliedByChannels;++o)n[a++]=Math.round(t[s++]);return n},e.prototype.resizeHeightRGB=function(t){return this._resizeHeightRGBChannels(t,!1)},e.prototype.resizeHeightRGBA=function(t){return this._resizeHeightRGBChannels(t,!0)},e.prototype.resize=function(t){this.resizeCallback(this.resizeHeight(this.resizeWidth(t)))},e.prototype.bypassResizer=function(t){return t},e.prototype.initializeFirstPassBuffers=function(t){this.widthBuffer=this.generateFloatBuffer(this.widthPassResultSize),t||(this.outputWidthWorkBench=this.generateFloatBuffer(this.originalHeightMultipliedByChannels),this.colorChannels>3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},e.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},e.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},e.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},e.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},t.exports=e},7912:(t,e,r)=>{"use strict";var n=r(33296).Buffer;t.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,u=0;u<a;u++)for(var l=0;l<i;l++){var c=4*(u*i+l),h=4*(Math.floor(u*n/a)*r+Math.floor(l*r/i));s[c++]=o[h++],s[c++]=o[h++],s[c++]=o[h++],s[c++]=o[h++]}},bilinearInterpolation:function(t,e){for(var r=t.width,n=t.height,i=e.width,a=e.height,o=t.data,s=e.data,u=function(t,e,r,n,i){return e===n?r:Math.round((t-e)*i+(n-t)*r)},l=function(t,e,n,i,a,l,c,h){var f=4*(c*r+i)+e,d=4*(c*r+a)+e,p=u(n,i,o[f],a,o[d]);if(h===c)s[t+e]=p;else{d=4*(h*r+a)+e;var m=u(n,i,o[f=4*(h*r+i)+e],a,o[d]);s[t+e]=u(l,c,p,h,m)}},c=0;c<a;c++)for(var h=0;h<i;h++){var f=4*(c*i+h),d=h*r/i,p=Math.floor(d),m=Math.min(Math.ceil(d),r-1),g=c*n/a,b=Math.floor(g),v=Math.min(Math.ceil(g),n-1);l(f,0,d,p,m,g,b,v),l(f,1,d,p,m,g,b,v),l(f,2,d,p,m,g,b,v),l(f,3,d,p,m,g,b,v)}},_interpolate2D:function(t,e,r,i){for(var a=t.data,o=e.data,s=t.width,u=t.height,l=e.width,c=e.height,h=Math.max(1,Math.floor(s/l)),f=l*h,d=Math.max(1,Math.floor(u/c)),p=c*d,m=n.alloc(f*u*4),g=0;g<u;g++)for(var b=0;b<f;b++)for(var v=b*(s-1)/f,y=Math.floor(v),w=v-y,_=4*(g*s+y),k=4*(g*f+b),B=0;B<4;B++){var x=_+B,E=y>0?a[x-4]:2*a[x]-a[x+4],C=a[x],A=a[x+4],I=y<s-2?a[x+8]:2*a[x+4]-a[x];m[k+B]=i(E,C,A,I,w)}for(var M=n.alloc(f*p*4),P=0;P<p;P++)for(var S=0;S<f;S++)for(var T=P*(u-1)/p,R=Math.floor(T),L=T-R,O=4*(R*f+S),F=4*(P*f+S),N=0;N<4;N++){var U=O+N,D=R>0?m[U-4*f]:2*m[U]-m[U+4*f],z=m[U],G=m[U+4*f],j=R<u-2?m[U+8*f]:2*m[U+4*f]-m[U];M[F+N]=i(D,z,G,j,L)}var H=h*d;if(H>1)for(var W=0;W<c;W++)for(var q=0;q<l;q++){for(var Z=0,$=0,V=0,Y=0,X=0,J=0;J<d;J++)for(var Q=W*d+J,K=0;K<h;K++){var tt=4*(Q*f+(q*h+K)),et=M[tt+3];et&&(Z+=M[tt],$+=M[tt+1],V+=M[tt+2],X++),Y+=et}var rt=4*(W*l+q);o[rt]=X?Math.round(Z/X):0,o[rt+1]=X?Math.round($/X):0,o[rt+2]=X?Math.round(V/X):0,o[rt+3]=Math.round(Y/H)}else e.data=M},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,u=e;return Math.max(0,Math.min(255,a*(i*i*i)+o*(i*i)+s*i+u))}))},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,u=.5*(n-t)+1.5*(e-r);return Math.max(0,Math.min(255,Math.round(((u*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,u=3*(r-(n-e)/4)*a*i*i,l=r*i*i*i;return Math.max(0,Math.min(255,Math.round(o+s+u+l)))}))}}},17328:(t,e,r)=>{"use strict";var n=r(33296).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(66576);function a(t,e){var r=(t%=360)*Math.PI/180,i=Math.cos(r),a=Math.sin(r),o=this.bitmap.width,s=this.bitmap.height;if(!0===e||"string"==typeof e){(o=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*a))+1)%2!=0&&o++,(s=Math.ceil(Math.abs(this.bitmap.width*a)+Math.abs(this.bitmap.height*i))+1)%2!=0&&s++;var u=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(o,s,this.bitmap.width,this.bitmap.height);this.resize(l,l,e),this.blit(u,this.bitmap.width/2-u.bitmap.width/2,this.bitmap.height/2-u.bitmap.height/2)}var c=this.bitmap.width,h=this.bitmap.height,f=n.alloc(this.bitmap.data.length);function d(t,e){return function(r,n){return{x:r+t,y:n+e}}}for(var p=d(-c/2,-h/2),m=d(c/2+.5,h/2+.5),g=1;g<=h;g++)for(var b=1;b<=c;b++){var v=p(b,g),y=m(i*v.x-a*v.y,i*v.y+a*v.x),w=c*(g-1)+b-1<<2;if(y.x>=0&&y.x<c&&y.y>=0&&y.y<h){var _=(c*(0|y.y)+y.x|0)<<2,k=this.bitmap.data.readUInt32BE(_);f.writeUInt32BE(k,w)}else f.writeUInt32BE(this._background,w)}if(this.bitmap.data=f,!0===e||"string"==typeof e){var B=c/2-o/2,x=h/2-s/2;this.crop(B,x,o,s)}}e.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?i.throwError.call(this,"deg must be a number",r):"boolean"!=typeof e&&"string"!=typeof e?i.throwError.call(this,"mode must be a boolean or a string",r):(a.call(this,t,e,r),(0,i.isNodePattern)(r)&&r.call(this,null,this),this)}}},t.exports=e.default},71284:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.default=function(){return{scale:function(t,e,r){if("number"!=typeof t)return n.throwError.call(this,"f must be a number",r);if(t<0)return n.throwError.call(this,"f must be a positive number",r);"function"==typeof e&&void 0===r&&(r=e,e=null);var i=this.bitmap.width*t,a=this.bitmap.height*t;return this.resize(i,a,e),(0,n.isNodePattern)(r)&&r.call(this,null,this),this},scaleToFit:function(t,e,r,i){if("number"!=typeof t||"number"!=typeof e)return n.throwError.call(this,"w and h must be numbers",i);"function"==typeof r&&void 0===i&&(i=r,r=null);var a=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(a,r),(0,n.isNodePattern)(i)&&i.call(this,null,this),this}}},t.exports=e.default},85512:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.default=function(){return{shadow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(r=e,e={});var i=e,a=i.opacity,o=void 0===a?.7:a,s=i.size,u=void 0===s?1.1:s,l=i.x,c=void 0===l?-25:l,h=i.y,f=void 0===h?25:h,d=i.blur,p=void 0===d?5:d,m=this.clone(),g=this.clone();return g.scan(0,0,g.bitmap.width,g.bitmap.height,(function(e,r,n){g.bitmap.data[n]=0,g.bitmap.data[n+1]=0,g.bitmap.data[n+2]=0,g.bitmap.data[n+3]=g.constructor.limit255(g.bitmap.data[n+3]*o),t.bitmap.data[n]=0,t.bitmap.data[n+1]=0,t.bitmap.data[n+2]=0,t.bitmap.data[n+3]=0})),g.resize(g.bitmap.width*u,g.bitmap.height*u).blur(p),this.composite(g,c,f),this.composite(m,0,0),(0,n.isNodePattern)(r)&&r.call(this,null,this),this}}},t.exports=e.default},89680:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(66576);e.default=function(){return{threshold:function(t,e){var r=this,i=t.max,a=t.replace,o=void 0===a?255:a,s=t.autoGreyscale,u=void 0===s||s;return"number"!=typeof i?n.throwError.call(this,"max must be a number",e):"number"!=typeof o?n.throwError.call(this,"replace must be a number",e):"boolean"!=typeof u?n.throwError.call(this,"autoGreyscale must be a boolean",e):(i=this.constructor.limit255(i),o=this.constructor.limit255(o),u&&this.greyscale(),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,(function(t,e,n){var a=r.bitmap.data[n]<i?r.bitmap.data[n]:o;r.bitmap.data[n]=a,r.bitmap.data[n+1]=a,r.bitmap.data[n+2]=a})),(0,n.isNodePattern)(e)&&e.call(this,null,this),this)}}},t.exports=e.default},85355:(t,e,r)=>{"use strict";var n=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(25724)),a=r(35808),o=n(r(46728)),s=n(r(72565)),u=n(r(7800)),l=n(r(30456)),c=n(r(33284)),h=n(r(78760)),f=n(r(25528)),d=n(r(39328)),p=n(r(75344)),m=n(r(36211)),g=n(r(54716)),b=n(r(32064)),v=n(r(75440)),y=n(r(93784)),w=n(r(39264)),_=n(r(40596)),k=n(r(71460)),B=n(r(17328)),x=n(r(71284)),E=n(r(85512)),C=n(r(89680)),A=[o.default,s.default,u.default,l.default,c.default,h.default,f.default,d.default,p.default,m.default,g.default,b.default,v.default,y.default,w.default,_.default,k.default,B.default,x.default,E.default,C.default];e.default=function(t){var e=A.map((function(e){var r=e(t)||{};return r.class||r.constants||(r={class:r}),r}));return a.mergeDeep.apply(void 0,(0,i.default)(e))},t.exports=e.default},85344:(t,e,r)=>{"use strict";var n=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(2676)),a=r(53952),o=r(66576),s="image/png";e.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||t>9?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||t>3?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||t>4?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)}}}},t.exports=e.default},29220:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(r(2676)),o=i(r(28728)),s="image/tiff";e.default=function(){return{mime:(0,a.default)({},s,["tiff","tif"]),constants:{MIME_TIFF:s},decoders:(0,a.default)({},s,(function(t){var e=o.default.decode(t),r=e[0];o.default.decodeImages(t,e);var i=o.default.toRGBA8(r);return{data:n.from(i),width:r.t256[0],height:r.t257[0]}})),encoders:(0,a.default)({},s,(function(t){var e=o.default.encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return n.from(e)}))}},t.exports=e.default},22032:(t,e,r)=>{"use strict";var n=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(35808),a=n(r(5492)),o=n(r(85344)),s=n(r(66212)),u=n(r(29220)),l=n(r(63176));e.default=function(){return(0,i.mergeDeep)((0,a.default)(),(0,o.default)(),(0,s.default)(),(0,u.default)(),(0,l.default)())},t.exports=e.default},66576:(t,e,r)=>{"use strict";var n=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.isNodePattern=function(t){if(void 0===t)return!1;if("function"!=typeof t)throw new TypeError("Callback must be a function");return!0},e.throwError=function(t,e){if("string"==typeof t&&(t=new Error(t)),"function"==typeof e)return e.call(this,t);throw t},e.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 u=t.bitmap.width*o+s<<2;a.call(t,s,o,u)}return t},e.scanIterator=o;var i=n(r(33248)),a=i.default.mark(o);function o(t,e,r,n,o){var s,u,l;return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e=Math.round(e),r=Math.round(r),n=Math.round(n),o=Math.round(o),s=r;case 5:if(!(s<r+o)){i.next=17;break}u=e;case 7:if(!(u<e+n)){i.next=14;break}return l=t.bitmap.width*s+u<<2,i.next=11,{x:u,y:s,idx:l,image:t};case 11:u++,i.next=7;break;case 14:s++,i.next=5;break;case 17:case"end":return i.stop()}}),a)}},70276:(t,e,r)=>{var n=r(54040);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",t.exports=i},54040:t=>{"use strict";function e(t,e){if(!(t&&e&&t.length&&e.length))throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=e}e.prototype.convert=function(t){var e,r,n,i={},a=this.srcAlphabet.length,o=this.dstAlphabet.length,s=t.length,u="string"==typeof t?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e<s;e++)i[e]=this.srcAlphabet.indexOf(t[e]);do{for(r=0,n=0,e=0;e<s;e++)(r=r*a+i[e])>=o?(i[n++]=parseInt(r/o,10),r%=o):n>0&&(i[n++]=0);s=n,u=this.dstAlphabet.slice(r,r+1).concat(u)}while(0!==n);return u},e.prototype.isValid=function(t){for(var e=0;e<t.length;++e)if(-1===this.srcAlphabet.indexOf(t[e]))return!1;return!0},t.exports=e},46584:(t,e,r)=>{"use strict";function n(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 i(t){return r.g.Buffer&&"function"==typeof r.g.Buffer.isBuffer?r.g.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var a=r(93912),o=Object.prototype.hasOwnProperty,s=Array.prototype.slice,u="foo"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function c(t){return!i(t)&&"function"==typeof r.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var h=t.exports=b,f=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(a.isFunction(t)){if(u)return t.name;var e=t.toString().match(f);return e&&e[1]}}function p(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function m(t){if(u||!a.isFunction(t))return a.inspect(t);var e=d(t);return"[Function"+(e?": "+e:"")+"]"}function g(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function b(t,e){t||g(t,!0,e,"==",h.ok)}function v(t,e,r,o){if(t===e)return!0;if(i(t)&&i(e))return 0===n(t,e);if(a.isDate(t)&&a.isDate(e))return t.getTime()===e.getTime();if(a.isRegExp(t)&&a.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(c(t)&&c(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===n(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;var u=(o=o||{actual:[],expected:[]}).actual.indexOf(t);return-1!==u&&u===o.expected.indexOf(e)||(o.actual.push(t),o.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(a.isPrimitive(t)||a.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=y(t),o=y(e);if(i&&!o||!i&&o)return!1;if(i)return v(t=s.call(t),e=s.call(e),r);var u,l,c=k(t),h=k(e);if(c.length!==h.length)return!1;for(c.sort(),h.sort(),l=c.length-1;l>=0;l--)if(c[l]!==h[l])return!1;for(l=c.length-1;l>=0;l--)if(!v(t[u=c[l]],e[u],r,n))return!1;return!0}(t,e,r,o))}return r?t===e:t==e}function y(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(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&&g(i,r,"Missing expected exception"+n);var o="string"==typeof n,s=!t&&i&&!r;if((!t&&a.isError(i)&&o&&w(i,r)||s)&&g(i,r,"Got unwanted exception"+n),t&&i&&r&&!w(i,r)||!t&&i)throw i}h.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 p(m(t.actual),128)+" "+t.operator+" "+p(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf("\n"+i);if(a>=0){var o=n.indexOf("\n",a+1);n=n.substring(o+1)}this.stack=n}}},a.inherits(h.AssertionError,Error),h.fail=g,h.ok=b,h.equal=function(t,e,r){t!=e&&g(t,e,r,"==",h.equal)},h.notEqual=function(t,e,r){t==e&&g(t,e,r,"!=",h.notEqual)},h.deepEqual=function(t,e,r){v(t,e,!1)||g(t,e,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,r){v(t,e,!0)||g(t,e,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){v(t,e,!1)&&g(t,e,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){v(e,r,!0)&&g(e,r,n,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,r){t!==e&&g(t,e,r,"===",h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&&g(t,e,r,"!==",h.notStrictEqual)},h.throws=function(t,e,r){_(!0,t,e,r)},h.doesNotThrow=function(t,e,r){_(!1,t,e,r)},h.ifError=function(t){if(t)throw t};var k=Object.keys||function(t){var e=[];for(var r in t)o.call(t,r)&&e.push(r);return e}},25704:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,a=s(t),o=a[0],u=a[1],l=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,u)),c=0,h=u>0?o-4:o;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[c++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,l=n-i;s<l;s+=o)a.push(u(t,s,s+o>l?l:s+o));return 1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var i,a,o=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},38064:(t,e,r)=>{var n=r(44916),i=r(35752);t.exports={encode:n,decode:i}},35752:(t,e,r)=>{var n=r(33296).Buffer;function i(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()}i.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)},i.prototype.parseRGBA=function(){var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new n(e),this[t]()},i.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,r=this.height>=0?this.height-1:-this.height;for(r=this.height-1;r>=0;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 u=this.palette[a>>7-s&1];this.data[o+4*s]=0,this.data[o+4*s+1]=u.blue,this.data[o+4*s+2]=u.green,this.data[o+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},i.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0,r=!1;t<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?e--:e++,t=e*this.width*4,r=!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?e-=o:e+=o,t+=o*this.width*4+4*a}else{for(var s=this.buffer.readUInt8(this.pos++),u=0;u<i;u++)r?l.call(this,15&s):l.call(this,(240&s)>>4),1&u&&u+1<i&&(s=this.buffer.readUInt8(this.pos++)),r=!r;1==(i+1>>1&1)&&this.pos++}}else for(u=0;u<n;u++)r?l.call(this,15&i):l.call(this,(240&i)>>4),r=!r}function l(e){var r=this.palette[e];this.data[t]=0,this.data[t+1]=r.blue,this.data[t+2]=r.green,this.data[t+3]=r.red,t+=4}}else{var c=Math.ceil(this.width/2),h=c%4;for(o=this.height-1;o>=0;o--){var f=this.bottom_up?o:this.height-1-o;for(a=0;a<c;a++){i=this.buffer.readUInt8(this.pos++),t=f*this.width*4+2*a*4;var d=i>>4,p=15&i,m=this.palette[d];if(this.data[t]=0,this.data[t+1]=m.blue,this.data[t+2]=m.green,this.data[t+3]=m.red,2*a+1>=this.width)break;m=this.palette[p],this.data[t+4]=0,this.data[t+4+1]=m.blue,this.data[t+4+2]=m.green,this.data[t+4+3]=m.red}0!=h&&(this.pos+=4-h)}}},i.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0;t<this.data.length;){var r=this.buffer.readUInt8(this.pos++),n=this.buffer.readUInt8(this.pos++);if(0==r){if(0==n){this.bottom_up?e--:e++,t=e*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?e-=a:e+=a,t+=a*this.width*4+4*i}else{for(var o=0;o<n;o++){var s=this.buffer.readUInt8(this.pos++);u.call(this,s)}!0&n&&this.pos++}}else for(o=0;o<r;o++)u.call(this,n)}function u(e){var r=this.palette[e];this.data[t]=0,this.data[t+1]=r.blue,this.data[t+2]=r.green,this.data[t+3]=r.red,t+=4}}else{var l=this.width%4;for(a=this.height-1;a>=0;a--){var c=this.bottom_up?a:this.height-1-a;for(i=0;i<this.width;i++)if(n=this.buffer.readUInt8(this.pos++),t=c*this.width*4+4*i,n<this.palette.length){var h=this.palette[n];this.data[t]=0,this.data[t+1]=h.blue,this.data[t+2]=h.green,this.data[t+3]=h.red}else this.data[t]=0,this.data[t+1]=255,this.data[t+2]=255,this.data[t+3]=255;0!=l&&(this.pos+=4-l)}}},i.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;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,u=(a>>10&e)/e*255|0,l=a>>15?255:0,c=n*this.width*4+4*i;this.data[c]=l,this.data[c+1]=o,this.data[c+2]=s,this.data[c+3]=u}this.pos+=t}},i.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;n>=0;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],u=(o&this.maskGreen)>>e[1],l=(o&this.maskRed)>>e[2],c=i*this.width*4+4*a;this.data[c]=0,this.data[c+1]=s,this.data[c+2]=u,this.data[c+3]=l}this.pos+=t}},i.prototype.bit24=function(){for(var t=this.height-1;t>=0;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[o+1]=n,this.data[o+2]=i,this.data[o+3]=a}this.pos+=this.width%4}},i.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;t>=0;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;t>=0;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},i.prototype.getData=function(){return this.data},t.exports=function(t){return new i(t)}},44916:(t,e,r)=>{var n=r(33296).Buffer;function i(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}i.prototype.encode=function(){var t=new n(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,i=0;i<this.height;i++){for(var a=0;a<this.width;a++){var o=this.pos+i*r+3*a;e++,t[o]=this.buffer[e++],t[o+1]=this.buffer[e++],t[o+2]=this.buffer[e++]}if(this.extraBytes>0){var s=this.pos+i*r+3*this.width;t.fill(0,s,s+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new i(t).encode(),width:t.width,height:t.height}}},39588:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(26512),a=r(46584),o=r(16092),s=r(89379),u=r(37040),l=r(20944);for(var c in l)e[c]=l[c];function h(t){if("number"!=typeof t||t<e.DEFLATE||t>e.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}e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7,h.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,a(this.init_done,"close before init"),a(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||u.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null)},h.prototype.write=function(t,e,r,n,i,a,o){return this._write(!0,t,e,r,n,i,a,o)},h.prototype.writeSync=function(t,e,r,n,i,a,o){return this._write(!1,t,e,r,n,i,a,o)},h.prototype._write=function(t,r,o,s,u,l,c,h){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==e.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==e.Z_NO_FLUSH&&r!==e.Z_PARTIAL_FLUSH&&r!==e.Z_SYNC_FLUSH&&r!==e.Z_FULL_FLUSH&&r!==e.Z_FINISH&&r!==e.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=n.alloc(0),u=0,s=0),this.strm.avail_in=u,this.strm.input=o,this.strm.next_in=s,this.strm.avail_out=h,this.strm.output=l,this.strm.next_out=c,this.flush=r,!t)return this._process(),this._checkError()?this._afterSync():void 0;var f=this;return i.nextTick((function(){f._process(),f._after()})),this},h.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},h.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,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=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},h.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.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},h.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()}},h.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()},h.prototype.init=function(t,r,n,i,o){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(t>=8&&t<=15,"invalid windowBits"),a(r>=-1&&r<=9,"invalid compression level"),a(n>=1&&n<=9,"invalid memlevel"),a(i===e.Z_FILTERED||i===e.Z_HUFFMAN_ONLY||i===e.Z_RLE||i===e.Z_FIXED||i===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,t,n,i,o),this._setDictionary()},h.prototype.params=function(){throw new Error("deflateParams Not supported")},h.prototype.reset=function(){this._reset(),this._setDictionary()},h.prototype._init=function(t,r,n,i,a){switch(this.level=t,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0},h.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},h.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=s.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=h},59160:(t,e,r)=>{"use strict";var n=r(26512),i=r(33296).Buffer,a=r(67084).Transform,o=r(39588),s=r(93912),u=r(46584).ok,l=r(33296).kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var h=Object.keys(o),f=0;f<h.length;f++){var d=h[f];d.match(/^Z/)&&Object.defineProperty(e,d,{enumerable:!0,value:o[d],writable:!1})}for(var p={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},m=Object.keys(p),g=0;g<m.length;g++){var b=m[g];p[p[b]]=b}function v(t,e,r){var n=[],a=0;function o(){for(var e;null!==(e=t.read());)n.push(e),a+=e.length;t.once("readable",o)}function s(){var e,o=null;a>=l?o=new RangeError(c):e=i.concat(n,a),n=[],t.close(),r(o,e)}t.on("error",(function(e){t.removeListener("end",s),t.removeListener("readable",o),r(e)})),t.on("end",s),t.end(e),o()}function y(t,e){if("string"==typeof e&&(e=i.from(e)),!i.isBuffer(e))throw new TypeError("Not a string or buffer");var r=t._finishFlushFlag;return t._processChunk(e,r)}function w(t){if(!(this instanceof w))return new w(t);I.call(this,t,o.DEFLATE)}function _(t){if(!(this instanceof _))return new _(t);I.call(this,t,o.INFLATE)}function k(t){if(!(this instanceof k))return new k(t);I.call(this,t,o.GZIP)}function B(t){if(!(this instanceof B))return new B(t);I.call(this,t,o.GUNZIP)}function x(t){if(!(this instanceof x))return new x(t);I.call(this,t,o.DEFLATERAW)}function E(t){if(!(this instanceof E))return new E(t);I.call(this,t,o.INFLATERAW)}function C(t){if(!(this instanceof C))return new C(t);I.call(this,t,o.UNZIP)}function A(t){return t===o.Z_NO_FLUSH||t===o.Z_PARTIAL_FLUSH||t===o.Z_SYNC_FLUSH||t===o.Z_FULL_FLUSH||t===o.Z_FINISH||t===o.Z_BLOCK}function I(t,r){var n=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,a.call(this,t),t.flush&&!A(t.flush))throw new Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!A(t.finishFlush))throw new Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:o.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!i.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(t,r){M(s),s._hadError=!0;var n=new Error(t);n.errno=r,n.code=e.codes[r],s.emit("error",n)};var u=e.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(u=t.level);var l=e.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(l=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,u,t.memLevel||e.Z_DEFAULT_MEMLEVEL,l,t.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=l,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!n._handle},configurable:!0,enumerable:!0})}function M(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function P(t){t.emit("close")}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),e.Deflate=w,e.Inflate=_,e.Gzip=k,e.Gunzip=B,e.DeflateRaw=x,e.InflateRaw=E,e.Unzip=C,e.createDeflate=function(t){return new w(t)},e.createInflate=function(t){return new _(t)},e.createDeflateRaw=function(t){return new x(t)},e.createInflateRaw=function(t){return new E(t)},e.createGzip=function(t){return new k(t)},e.createGunzip=function(t){return new B(t)},e.createUnzip=function(t){return new C(t)},e.deflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),v(new w(e),t,r)},e.deflateSync=function(t,e){return y(new w(e),t)},e.gzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),v(new k(e),t,r)},e.gzipSync=function(t,e){return y(new k(e),t)},e.deflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),v(new x(e),t,r)},e.deflateRawSync=function(t,e){return y(new x(e),t)},e.unzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),v(new C(e),t,r)},e.unzipSync=function(t,e){return y(new C(e),t)},e.inflate=function(t,e,r){return"function"==typeof e&&(r=e,e={}),v(new _(e),t,r)},e.inflateSync=function(t,e){return y(new _(e),t)},e.gunzip=function(t,e,r){return"function"==typeof e&&(r=e,e={}),v(new B(e),t,r)},e.gunzipSync=function(t,e){return y(new B(e),t)},e.inflateRaw=function(t,e,r){return"function"==typeof e&&(r=e,e={}),v(new E(e),t,r)},e.inflateRawSync=function(t,e){return y(new E(e),t)},s.inherits(I,a),I.prototype.params=function(t,r,i){if(t<e.Z_MIN_LEVEL||t>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(r!=e.Z_FILTERED&&r!=e.Z_HUFFMAN_ONLY&&r!=e.Z_RLE&&r!=e.Z_FIXED&&r!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==t||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){u(a._handle,"zlib binding closed"),a._handle.params(t,r),a._hadError||(a._level=t,a._strategy=r,i&&i())}))}else n.nextTick(i)},I.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},I.prototype._flush=function(t){this._transform(i.alloc(0),"",t)},I.prototype.flush=function(t,e){var r=this,a=this._writableState;("function"==typeof t||void 0===t&&!e)&&(e=t,t=o.Z_FULL_FLUSH),a.ended?e&&n.nextTick(e):a.ending?e&&this.once("end",e):a.needDrain?e&&this.once("drain",(function(){return r.flush(t,e)})):(this._flushFlag=t,this.write(i.alloc(0),"",e))},I.prototype.close=function(t){M(this,t),n.nextTick(P,this)},I.prototype._transform=function(t,e,r){var n,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);return null===t||i.isBuffer(t)?this._handle?(s?n=this._finishFlushFlag:(n=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(t,n,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},I.prototype._processChunk=function(t,e,r){var n=t&&t.length,a=this._chunkSize-this._offset,o=0,s=this,h="function"==typeof r;if(!h){var f,d=[],p=0;this.on("error",(function(t){f=t})),u(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,o,n,this._buffer,this._offset,a)}while(!this._hadError&&v(m[0],m[1]));if(this._hadError)throw f;if(p>=l)throw M(this),new RangeError(c);var g=i.concat(d,p);return M(this),g}u(this._handle,"zlib binding closed");var b=this._handle.write(e,t,o,n,this._buffer,this._offset,a);function v(l,c){if(this&&(this.buffer=null,this.callback=null),!s._hadError){var f=a-c;if(u(f>=0,"have should not go down"),f>0){var m=s._buffer.slice(s._offset,s._offset+f);s._offset+=f,h?s.push(m):(d.push(m),p+=m.length)}if((0===c||s._offset>=s._chunkSize)&&(a=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===c){if(o+=n-l,n=l,!h)return!0;var g=s._handle.write(e,t,o,n,s._buffer,s._offset,s._chunkSize);return g.callback=v,void(g.buffer=t)}if(!h)return!1;r()}}b.buffer=t,b.callback=v},s.inherits(w,I),s.inherits(_,I),s.inherits(k,I),s.inherits(B,I),s.inherits(x,I),s.inherits(E,I),s.inherits(C,I)},86388:(t,e,r)=>{var n=r(33296).Buffer;t.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}}},33296:(t,e,r)=>{"use strict";const n=r(25704),i=r(24404),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|m(t,e);let n=s(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(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(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);const i=function(t){if(u.isBuffer(t)){const e=0|p(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?s(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.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 c(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 h(t){return c(t),s(t<0?0:0|p(t))}function f(t){const e=t.length<0?0:0|p(t.length),r=s(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(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');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,u.prototype),n}function p(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(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);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(t).length;default:if(i)return n?-1:Z(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let 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 P(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return M(this,e,r);case"base64":return E(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(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=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(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):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){let a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){let n=-1;for(a=r;a<s;a++)if(l(t,a)===l(e,-1===n?0:a-n)){if(-1===n&&(n=a),a-n+1===u)return n*o}else-1!==n&&(a-=a-n),n=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){let r=!0;for(let n=0;n<u;n++)if(l(t,a+n)!==l(e,n)){r=!1;break}if(r)return a}return-1}function w(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const a=e.length;let o;for(n>a/2&&(n=a/2),o=0;o<n;++o){const n=parseInt(e.substr(2*o,2),16);if(X(n))return o;t[r+o]=n}return o}function _(t,e,r,n){return V(Z(e,t.length-r),t,r,n)}function k(t,e,r,n){return V(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function B(t,e,r,n){return V($(e),t,r,n)}function x(t,e,r,n){return V(function(t,e){let r,n,i;const a=[];for(let 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}(e,t.length-r),t,r,n)}function E(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let a=null,o=e>239?4:e>223?3:e>191?2:1;if(i+o<=r){let r,n,s,u;switch(o){case 1:e<128&&(a=e);break;case 2:r=t[i+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(a=u));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:r=t[i+1],n=t[i+2],s=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s,u>65535&&u<1114112&&(a=u))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=o}return function(t){const e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=A));return r}(n)}e.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=function(){try{const 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}}(),u.TYPED_ARRAY_SUPPORT||"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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)}(t,e,r)},u.allocUnsafe=function(t){return h(t)},u.allocUnsafeSlow=function(t){return h(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let 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},u.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}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=u.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(Y(e,Uint8Array))i+e.length>n.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)b(this,e,e+1);return this},u.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},u.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},u.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?C(this,0,t):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.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(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0);const s=Math.min(a,o),l=this.slice(n,i),c=t.slice(e,r);for(let t=0;t<s;++t)if(l[t]!==c[t]){a=l[t],o=c[t];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},u.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)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let a=!1;for(;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":case"latin1":case"binary":return k(this,t,e,r);case"base64":return B(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function I(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function M(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function P(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=J[t[n]];return i}function S(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function T(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function L(t,e,r,n,i){j(e,n,i,t,r,7);let a=Number(e&BigInt(4294967295));t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,r}function O(t,e,r,n,i){j(e,n,i,t,r,7);let a=Number(e&BigInt(4294967295));t[r+7]=a,a>>=8,t[r+6]=a,a>>=8,t[r+5]=a,a>>=8,t[r+4]=a;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=o,o>>=8,t[r+2]=o,o>>=8,t[r+1]=o,o>>=8,t[r]=o,r+8}function F(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,n,a){return e=+e,r>>>=0,a||F(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,a){return e=+e,r>>>=0,a||F(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t],i=1,a=0;for(;++a<e&&(i*=256);)n+=this[t+a]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=Q((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=Q((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t],i=1,a=0;for(;++a<e&&(i*=256);)n+=this[t+a]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=e,i=1,a=this[t+--n];for(;n>0&&(i*=256);)a+=this[t+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=Q((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),u.prototype.readBigInt64BE=Q((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(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},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(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},u.prototype.writeBigUInt64LE=Q((function(t,e=0){return L(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Q((function(t,e=0){return O(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,t,e,r,n-1,-n)}let i=0,a=1,o=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===o&&0!==this[e+i-1]&&(o=1),this[e+i]=(t/a>>0)-o&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,t,e,r,n-1,-n)}let i=r-1,a=1,o=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===o&&0!==this[e+i+1]&&(o=1),this[e+i]=(t/a>>0)-o&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||R(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},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||R(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},u.prototype.writeBigInt64LE=Q((function(t,e=0){return L(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Q((function(t,e=0){return O(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.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),n>0&&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);const i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.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&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}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;let i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{const a=u.isBuffer(t)?t:u.from(t,n),o=a.length;if(0===o)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%o]}return this};const D={};function z(t,e,r){D[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function G(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function j(t,e,r,n,i,a){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let i;throw i=a>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(a+1)}${n}`:`>= -(2${n} ** ${8*(a+1)-1}${n}) and < 2 ** ${8*(a+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new D.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||W(e,t.length-(r+1))}(n,i,a)}function H(t,e){if("number"!=typeof t)throw new D.ERR_INVALID_ARG_TYPE(e,"number",t)}function W(t,e,r){if(Math.floor(t)!==t)throw H(t,r),new D.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=G(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=G(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function Z(t,e){let r;e=e||1/0;const n=t.length;let i=null;const a=[];for(let o=0;o<n;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&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 $(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Q(t){return"undefined"==typeof BigInt?K:t}function K(){throw new Error("BigInt not supported")}},84936:t=>{function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function n(t){return"object"==typeof t&&null!==t}function i(t){return void 0===t}t.exports=e,e.EventEmitter=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},e.prototype.emit=function(t){var e,a,o,s,u,l;if(this._events||(this._events={}),"error"===t&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(i(a=this._events[t]))return!1;if(r(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),a.apply(this,s)}else if(n(a))for(s=Array.prototype.slice.call(arguments,1),o=(l=a.slice()).length,u=0;u<o;u++)l[u].apply(this,s);return!0},e.prototype.addListener=function(t,a){var o;if(!r(a))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(a.listener)?a.listener:a),this._events[t]?n(this._events[t])?this._events[t].push(a):this._events[t]=[this._events[t],a]:this._events[t]=a,n(this._events[t])&&!this._events[t].warned&&(o=i(this._maxListeners)?e.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[t].length>o&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(t,e){if(!r(e))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},e.prototype.removeListener=function(t,e){var i,a,o,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(o=(i=this._events[t]).length,a=-1,i===e||r(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(n(i)){for(s=o;s-- >0;)if(i[s]===e||i[s].listener&&i[s].listener===e){a=s;break}if(a<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(a,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},e.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},e.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},e.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},e.listenerCount=function(t,e){return t.listenerCount(e)}},4440:(t,e,r)=>{var n=r(97952);t.exports={create:function(t,e){if(t instanceof(e=e||(0,eval)("this")).ArrayBuffer){var i=r(31248);return new n(new i(t,0,t.byteLength,!0,e))}var a=r(1712);return new n(new a(t,0,t.length,!0))}}},1712:t=>{function e(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)}e.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 t=this;return{openWithOffset:function(r){return r=(r||0)+this.offset,new e(t.buffer,r,t.endPosition-r,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,r){return r="number"==typeof r?r:this.endPosition-(this.offset+t),new e(this.buffer,this.offset+t,r,this.bigEndian)}},t.exports=e},69792:t=>{function e(t){return parseInt(t,10)}function r(t,r){t=t.map(e),r=r.map(e);var n=t[0],i=t[1]-1,a=t[2],o=r[0],s=r[1],u=r[2];return Date.UTC(n,i,a,o,s,u,0)/1e3}function n(t){var n=t.substr(0,10).split("-"),i=t.substr(11,8).split(":"),a=t.substr(19,6).split(":").map(e),o=3600*a[0]+60*a[1],s=r(n,i);if("number"==typeof(s-=o)&&!isNaN(s))return s}function i(t){var e=t.split(" "),n=r(e[0].split(":"),e[1].split(":"));if("number"==typeof n&&!isNaN(n))return n}t.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}}},31248:t=>{function e(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}e.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 t=this;return{openWithOffset:function(r){return r=(r||0)+this.offset,new e(t.arrayBuffer,r,t.arrayBuffer.byteLength-r,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,r){return r="number"==typeof r?r:this.arrayBuffer.byteLength-(this.offset+t),new e(this.arrayBuffer,this.offset+t,r,!this.littleEndian,this.global,this.parentOffset)}},t.exports=e},64341:t=>{t.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"}}},89884:t=>{function e(t,e){switch(t){case 1:return e.nextUInt8();case 3:case 8:return e.nextUInt16();case 4:case 9:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();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 r(t,r){var n,i,a=r.nextUInt16(),o=r.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(o),u=r.nextUInt32(),l=s*u;if(l>4&&(r=t.openWithOffset(r.nextUInt32())),2===o){var c=(n=r.nextString(u)).indexOf("\0");-1!==c&&(n=n.substr(0,c))}else if(7===o)n=r.nextBuffer(u);else if(0!==o)for(n=[],i=0;i<u;++i)n.push(e(o,r));return l<4&&r.skip(4-l),[a,n,o]}function n(t,e,n){var i,a,o=e.nextUInt16();for(a=0;a<o;++a)n((i=r(t,e))[0],i[1],i[2])}t.exports={IFD0:1,IFD1:2,GPSIFD:3,SubIFD:4,InteropIFD:5,parseTags:function(t,e){var r,i,a,o;try{r=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 s=r.openWithOffset(t.nextUInt32()),u=this.IFD0;n(r,s,(function(t,r,n){switch(t){case 34853:a=r[0];break;case 34665:i=r[0];break;default:e(u,t,r,n)}}));var l=s.nextUInt32();if(0!==l){var c=r.openWithOffset(l);n(r,c,e.bind(null,this.IFD1))}if(a){var h=r.openWithOffset(a);n(r,h,e.bind(null,this.GPSIFD))}if(i){var f=r.openWithOffset(i),d=this.InteropIFD;n(r,f,(function(t,r,n){40965===t?o=r[0]:e(d,t,r,n)}))}if(o){var p=r.openWithOffset(o);n(r,p,e.bind(null,this.InteropIFD))}return!0}}},66840:t=>{t.exports={parseSections:function(t,e){var r,n;for(t.setBigEndian(!0);t.remainingLength()>0&&218!==n;){if(255!==t.nextUInt8())throw new Error("Invalid JPEG section offset");r=(n=t.nextUInt8())>=208&&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:t>=224&&t<=239?(e="APP",r=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e="SOF",r=t-192):t>=208&&t<=215&&(e="RST",r=t-208)}var n={name:e};return"number"==typeof r&&(n.index=r),n}}},97952:(t,e,r)=>{var n=r(66840),i=r(89884),a=r(97800);function o(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 s(t){this.stream=t,this.flags={readBinaryTags:!1,resolveTagNames:!0,simplifyValues:!0,imageSize:!0,hidePointers:!0,returnTags:!0}}o.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 t,e=this._getThumbnailStream();return n.parseSections(e,(function(e,r){"SOF"===n.getSectionName(e).name&&(t=n.getSizeFromSOFSection(r))})),t}},s.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 t,e,s,u,l,c,h,f,d,p=this.stream.mark(),m=p.openWithOffset(0),g=this.flags;return g.resolveTagNames&&(h=r(64341)),g.resolveTagNames?(t={},f=function(e){return t[e.name]},d=function(e,r){t[e.name]=r}):(t=[],f=function(e){var r;for(r=0;r<t.length;++r)if(t[r].type===e.type&&t[r].section===e.section)return t.value},d=function(e,r){var n;for(n=0;n<t.length;++n)if(t[n].type===e.type&&t[n].section===e.section)return void(t.value=r)}),n.parseSections(m,(function(r,o){var f=o.offsetFrom(p);225===r?i.parseTags(o,(function(e,r,n,o){if(g.readBinaryTags||7!==o){if(513===r){if(s=n[0],g.hidePointers)return}else if(514===r){if(u=n[0],g.hidePointers)return}else if(259===r&&(l=n[0],g.hidePointers))return;if(g.returnTags)if(g.simplifyValues&&(n=a.simplifyValue(n,o)),g.resolveTagNames){var c=(e===i.GPSIFD?h.gps:h.exif)[r];c||(c=h.exif[r]),t.hasOwnProperty(c)||(t[c]=n)}else t.push({section:e,type:r,value:n})}}))&&(c=f):g.imageSize&&"SOF"===n.getSectionName(r).name&&(e=n.getSizeFromSOFSection(o))})),g.simplifyValues&&(a.castDegreeValues(f,d),a.castDateValues(f,d)),new o(p,t,e,s,u,l,c)}},t.exports=s},97800:(t,e,r)=>{var n=r(89884),i=r(69792),a=[{section:n.GPSIFD,type:2,name:"GPSLatitude",refType:1,refName:"GPSLatitudeRef",posVal:"N"},{section:n.GPSIFD,type:4,name:"GPSLongitude",refType:3,refName:"GPSLongitudeRef",posVal:"E"}],o=[{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"}];t.exports={castDegreeValues:function(t,e){a.forEach((function(r){var n=t(r);if(n){var i=t({section:r.section,type:r.refType,name:r.refName})===r.posVal?1:-1,a=(n[0]+n[1]/60+n[2]/3600)*i;e(r,a)}}))},castDateValues:function(t,e){o.forEach((function(r){var n=t(r);if(n){var a=i.parseExifDate(n);void 0!==a&&e(r,a)}}))},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}}},57996:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var Buffer=__webpack_require__(33296).Buffer;const Token=__webpack_require__(71840),strtok3=__webpack_require__(53345),{stringToBytes,tarHeaderChecksumMatches,uint32SyncSafeToken}=__webpack_require__(55608),supported=__webpack_require__(46184),minimumBytes=4100;async function fromStream(t){const e=await strtok3.fromStream(t);try{return await fromTokenizer(e)}finally{await e.close()}}async function fromBuffer(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||Buffer.isBuffer(t)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof t}\``);const e=t instanceof Buffer?t:Buffer.from(t);if(e&&e.length>1)return fromTokenizer(strtok3.fromBuffer(e))}function _check(t,e,r){r={offset:0,...r};for(const[n,i]of e.entries())if(r.mask){if(i!==(r.mask[n]&t[n+r.offset]))return!1}else if(i!==t[n+r.offset])return!1;return!0}async function fromTokenizer(t){try{return _fromTokenizer(t)}catch(t){if(!(t instanceof strtok3.EndOfStreamError))throw t}}async function _fromTokenizer(t){let e=Buffer.alloc(minimumBytes);const r=(t,r)=>_check(e,t,r),n=(t,e)=>r(stringToBytes(t),e);if(t.fileInfo.size||(t.fileInfo.size=Number.MAX_SAFE_INTEGER),await t.peekBuffer(e,{length:12,mayBeLess:!0}),r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(r([37,33]))return await t.peekBuffer(e,{length:24,mayBeLess:!0}),n("PS-Adobe-",{offset:2})&&n(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n("ID3")){await t.ignore(6);const i=await t.readToken(uint32SyncSafeToken);return t.position+i>t.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await t.ignore(i),fromTokenizer(t))}if(n("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===e[0]||70===e[0])&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n("FLIF"))return{ext:"flif",mime:"image/flif"};if(n("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(n("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(n("FORM"))return{ext:"aif",mime:"audio/aiff"};if(n("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(r([80,75,3,4])){try{for(;t.position+30<t.fileInfo.size;){await t.readBuffer(e,{length:30});const a={compressedSize:e.readUInt32LE(18),uncompressedSize:e.readUInt32LE(22),filenameLength:e.readUInt16LE(26),extraFieldLength:e.readUInt16LE(28)};if(a.filename=await t.readToken(new Token.StringType(a.filenameLength,"utf-8")),await t.ignore(a.extraFieldLength),"META-INF/mozilla.rsa"===a.filename)return{ext:"xpi",mime:"application/x-xpinstall"};if(a.filename.endsWith(".rels")||a.filename.endsWith(".xml"))switch(a.filename.split("/")[0]){case"_rels":default:break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}if(a.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(a.filename.startsWith("3D/")&&a.filename.endsWith(".model"))return{ext:"3mf",mime:"model/3mf"};if("mimetype"===a.filename&&a.compressedSize===a.uncompressedSize)switch(await t.readToken(new Token.StringType(a.compressedSize,"utf-8"))){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"}}if(0===a.compressedSize){let o=-1;for(;o<0&&t.position<t.fileInfo.size;)await t.peekBuffer(e,{mayBeLess:!0}),o=e.indexOf("504B0304",0,"hex"),await t.ignore(o>=0?o:e.length)}else await t.ignore(a.compressedSize)}}catch(s){if(!(s instanceof strtok3.EndOfStreamError))throw s}return{ext:"zip",mime:"application/zip"}}if(n("OggS")){await t.ignore(28);const u=Buffer.alloc(8);return await t.readBuffer(u),_check(u,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:_check(u,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(u,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(u,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(u,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(u,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(r([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n("ftyp",{offset:4})&&0!=(96&e[8])){const l=e.toString("binary",8,12).replace("\0"," ").trim();switch(l){case"avif":return{ext:"avif",mime:"image/avif"};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"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return l.startsWith("3g")?l.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(n("MThd"))return{ext:"mid",mime:"audio/midi"};if(n("wOFF")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(n("wOF2")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([212,195,178,161])||r([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(n("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(n("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(n("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(n("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(n("%PDF")){await t.ignore(1350);const c=10485760,h=Buffer.alloc(Math.min(c,t.fileInfo.size));return await t.readBuffer(h,{mayBeLess:!0}),h.includes(Buffer.from("AIPrivateData"))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([73,73,42,0]))return n("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:r([28,0,254,0],{offset:8})||r([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:r([8,0,0,0],{offset:4})&&(r([45,0,254,0],{offset:8})||r([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(e=Buffer.alloc(24),await t.peekBuffer(e),(r([16,251,134,1],{offset:4})||r([8,0,0,0],{offset:4}))&&r([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n("MAC "))return{ext:"ape",mime:"audio/ape"};if(r([26,69,223,163])){async function f(){const e=await t.peekNumber(Token.UINT8);let r=128,n=0;for(;0==(e&r)&&0!==r;)++n,r>>=1;const i=Buffer.alloc(n+1);return await t.readBuffer(i),i}async function d(){const t=await f(),e=await f();e[0]^=128>>e.length-1;const r=Math.min(6,e.length);return{id:t.readUIntBE(0,t.length),len:e.readUIntBE(e.length-r,r)}}async function p(e,r){for(;r>0;){const e=await d();if(17026===e.id)return t.readToken(new Token.StringType(e.len,"utf-8"));await t.ignore(e.len),--r}}const m=await d();switch(await p(0,m.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}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(n("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(n("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(n("MSCF")||n("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(r([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(n("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(n("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(n("IMPM"))return{ext:"it",mime:"audio/x-it"};if(n("-lh0-",{offset:2})||n("-lh1-",{offset:2})||n("-lh2-",{offset:2})||n("-lh3-",{offset:2})||n("-lh4-",{offset:2})||n("-lh5-",{offset:2})||n("-lh6-",{offset:2})||n("-lh7-",{offset:2})||n("-lzs-",{offset:2})||n("-lz4-",{offset:2})||n("-lz5-",{offset:2})||n("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(r([0,0,1,186])){if(r([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(r([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(n("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(n("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n("solid "))return{ext:"stl",mime:"model/stl"};if(n("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(n("!<arch>"))return await t.ignore(8),"debian-binary"===await t.readToken(new Token.StringType(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(r([137,80,78,71,13,10,26,10])){async function g(){return{length:await t.readToken(Token.INT32_BE),type:await t.readToken(new Token.StringType(4,"binary"))}}await t.ignore(8);do{const b=await g();if(b.length<0)return;switch(b.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await t.ignore(b.length+4)}}while(t.position+8<t.fileInfo.size);return{ext:"png",mime:"image/png"}}if(r([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(r([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(r([102,114,101,101],{offset:4})||r([109,100,97,116],{offset:4})||r([109,111,111,118],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(n("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(r([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(r([48,38,178,117,142,102,207,17,166,217])){async function v(){const e=Buffer.alloc(16);return await t.readBuffer(e),{id:e,size:Number(await t.readToken(Token.UINT64_LE))}}for(await t.ignore(30);t.position+24<t.fileInfo.size;){const y=await v();let w=y.size-24;if(_check(y.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const _=Buffer.alloc(16);if(w-=await t.readBuffer(_),_check(_,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(_check(_,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await t.ignore(w)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(r([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((r([126,16,4])||r([126,24,4]))&&r([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(r([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(r([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await t.ignore(20),await t.readToken(new Token.StringType(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(r([255,10])||r([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};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([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await t.peekBuffer(e,{length:Math.min(256,t.fileInfo.size),mayBeLess:!0}),n("BEGIN:")){if(n("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(n("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(n("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(n("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(n("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(r([4,0,0,0])&&e.length>=16){const k=e.readUInt32LE(12);if(k>12&&e.length>=k+16)try{const B=e.slice(16,k+16).toString();if(JSON.parse(B).files)return{ext:"asar",mime:"application/x-asar"}}catch(x){}}if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(n("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(r([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(r([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};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([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await t.peekBuffer(e,{length:Math.min(512,t.fileInfo.size),mayBeLess:!0}),tarHeaderChecksumMatches(e))return{ext:"tar",mime:"application/x-tar"};if(r([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};if(n("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(e.length>=2&&r([255,224],{offset:0,mask:[255,224]})){if(r([16],{offset:1,mask:[22]}))return r([8],{offset:1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(r([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise(((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",(async()=>{const t=new stream.PassThrough;let e;e=stream.pipeline?stream.pipeline(readableStream,t,(()=>{})):readableStream.pipe(t);const r=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const e=await fromBuffer(r);t.fileType=e}catch(t){reject(t)}resolve(e)}))})),fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,"extensions",{get:()=>new Set(supported.extensions)}),Object.defineProperty(fileType,"mimeTypes",{get:()=>new Set(supported.mimeTypes)}),module.exports=fileType},60927:(t,e,r)=>{"use strict";const n=r(61292),i=r(57996),a={fromFile:async function(t){const e=await n.fromFile(t);try{return await i.fromTokenizer(e)}finally{await e.close()}}};Object.assign(a,i),Object.defineProperty(a,"extensions",{get:()=>i.extensions}),Object.defineProperty(a,"mimeTypes",{get:()=>i.mimeTypes}),t.exports=a},46184:t=>{"use strict";t.exports={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]}},55608:(t,e)=>{"use strict";e.stringToBytes=t=>[...t].map((t=>t.charCodeAt(0))),e.tarHeaderChecksumMatches=(t,e=0)=>{const r=parseInt(t.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(r))return!1;let n=256;for(let r=e;r<e+148;r++)n+=t[r];for(let r=e+156;r<e+512;r++)n+=t[r];return r===n},e.uint32SyncSafeToken={get:(t,e)=>127&t[e+3]|t[e+2]<<7|t[e+1]<<14|t[e]<<21,len:4}},22944:(t,e,r)=>{"use strict";var n=r(33296).Buffer;class i{constructor(...t){if(0===t.length)throw new Error("constructor requires parameters");const e=t[0];if(null!==e&&"object"==typeof e)if(e instanceof i){const t=e.bitmap;this.bitmap={width:t.width,height:t.height,data:new n(t.width*t.height*4)},t.data.copy(this.bitmap.data)}else{if(!(e.width&&e.height&&e.data))throw new Error("unrecognized constructor parameters");this.bitmap=e}else{if("number"!=typeof e||"number"!=typeof t[1])throw new Error("unrecognized constructor parameters");{const r=e,i=t[1],a=t[2];this.bitmap={width:r,height:i},n.isBuffer(a)?this.bitmap.data=a:(this.bitmap.data=new n(r*i*4),"number"==typeof a&&this.fillRGBA(a))}}}blit(t,e,r,n,i,a,o){if(n+a>this.bitmap.width)throw new Error("copy exceeds width of source bitmap");if(e+a>t.bitmap.width)throw new Error("copy exceeds width of target bitmap");if(i+o>this.bitmap.height)throw new Error("copy exceeds height of source bitmap");if(r+o>t.bitmap.height)throw new Erro("copy exceeds height of target bitmap");const s=this.bitmap.data,u=t.bitmap.data,l=4*this.bitmap.width,c=4*t.bitmap.width,h=4*a;let f=i*l+4*n,d=r*c+4*e;for(;--o>=0;)s.copy(u,d,f,f+h),f+=l,d+=c;return this}fillRGBA(t){const e=this.bitmap.data,r=4*this.bitmap.height;let n=0;for(;n<r;)e.writeUInt32BE(t,n),n+=4;for(;n<e.length;)e.copy(e,n,0,r),n+=r;return this}getRGBA(t,e){const r=4*(e*this.bitmap.width+t);return this.bitmap.data.readUInt32BE(r)}getRGBASet(){const t=new Set,e=this.bitmap.data;for(let r=0;r<e.length;r+=4)t.add(e.readUInt32BE(r,!0));return t}greyscale(){const t=this.bitmap.data;return this.scan(0,0,this.bitmap.width,this.bitmap.height,((e,r,n)=>{const i=Math.round(.299*t[n]+.587*t[n+1]+.114*t[n+2]);t[n]=i,t[n+1]=i,t[n+2]=i})),this}reframe(t,e,r,n,a){const o=t<0?0:t,s=e<0?0:e,u=r+o>this.bitmap.width?this.bitmap.width-o:r,l=n+s>this.bitmap.height?this.bitmap.height-s:n,c=t<0?-t:0,h=e<0?-e:0;let f;if(void 0===a){if(o!==t||s!=e||u!==r||l!==n)throw new GifError("fillRGBA required for this reframing");f=new i(r,n)}else f=new i(r,n,a);return this.blit(f,c,h,o,s,u,l),this.bitmap=f.bitmap,this}scale(t){if(1===t)return;if(!Number.isInteger(t)||t<1)throw new Error("the scale must be an integer >= 1");const e=this.bitmap.width,r=this.bitmap.height,i=e*t*4,a=this.bitmap.data,o=new n(r*i*t);let s,u=0,l=0;for(let n=0;n<r;++n){s=l;for(let r=0;r<e;++r){const e=a.readUInt32BE(u,!0);for(let r=0;r<t;++r)o.writeUInt32BE(e,l),l+=4;u+=4}for(let e=1;e<t;++e)o.copy(o,l,s,l),l+=i,s+=i}return this.bitmap={width:e*t,height:r*t,data:o},this}scanAllCoords(t){const e=this.bitmap.width,r=this.bitmap.data.length;let n=0,i=0;for(let a=0;a<r;a+=4)t(n,i,a),++n===e&&(n=0,++i)}scanAllIndexes(t){const e=this.bitmap.data.length;for(let r=0;r<e;r+=4)t(r)}}t.exports=i},83988:(t,e)=>{"use strict";class r{constructor(t,e,r){this.width=r.width,this.height=r.height,this.loops=r.loops,this.usesTransparency=r.usesTransparency,this.colorScope=r.colorScope,this.frames=e,this.buffer=t}}r.GlobalColorsPreferred=0,r.GlobalColorsOnly=1,r.LocalColorsOnly=2;class n extends Error{constructor(t){super(t),t instanceof Error&&(this.stack="Gif"+t.stack)}}e.Gif=r,e.GifError=n},63824:(t,e,r)=>{"use strict";var n=r(33296).Buffer;const i=r(98451),{Gif:a,GifError:o}=r(83988);function s(){const t=r(7056);return s=function(){return t},t}const{GifFrame:u}=r(452);function l(t,e){const r=t.indexOf(e);return-1===r?null:r}function c(t,e){for(var r,n=0,i=t.length-1;n<=i;)if(t[r=Math.floor((n+i)/2)]>e)i=r-1;else{if(!(t[r]<e))return r;n=r+1}return null}function h(t){const e=t.colors;t.usesTransparency&&e.push(0);const r=e.length;let n=2;for(;r>n;)n<<=1;e.length=n,e.fill(0,r)}function f(t,e){let r=t.bitmap.width*t.bitmap.height;return r=Math.ceil(r*e/8),r+=Math.ceil(r/255),100+r+768}function d(t){let e=t.indexCount,r=0;for(--e;e;)++r,e>>=1;return r>0?r:1}function p(t,e,r,i,a){if(r.interlaced)throw new o("writing interlaced GIFs is not supported");const s=function(t,e,r){const i=r.colors,a=i.length<=8?l:c,s=e.bitmap.data,u=new n(s.length/4);let h=i.length,f=0,d=0;for(;f<s.length;){if(0!==s[f+3]){const t=s.readUInt32BE(f,!0)>>8&16777215;u[d]=a(i,t)}else u[d]=h;f+=4,++d}if(r.usesTransparency){if(256===h)throw new o(`Frame ${t} already has 256 colorsand so can't use transparency`)}else h=null;return{buffer:u,transparentIndex:h}}(e,r,i),u={delay:r.delayCentisecs,disposal:r.disposalMethod,transparent:s.transparentIndex};a&&(h(i),u.palette=i.colors);try{let e,i=t.getOutputBuffer(),a=t.getOutputBufferPosition(),o=!0;for(;o;)if(e=t.addFrame(r.xOffset,r.yOffset,r.bitmap.width,r.bitmap.height,s.buffer,u),o=!1,e>=i.length-1){const e=new n(1.5*i.length);i.copy(e),t.setOutputBuffer(e),t.setOutputBufferPosition(a),i=e,o=!0}return i}catch(t){throw new o(t)}}e.GifCodec=class{constructor(t={}){this._transparentRGB=null,"number"==typeof t.transparentRGB&&0!==t.transparentRGB&&(this._transparentRGBA=256*t.transparentRGB),this._testInitialBufferSize=0}decodeGif(t){try{let e;try{e=new i.GifReader(t)}catch(t){throw new o(t)}const r=e.numFrames(),n=[],s={width:e.width,height:e.height,loops:e.loopCount(),usesTransparency:!1};for(let t=0;t<r;++t){const r=this._decodeFrame(e,t,s.usesTransparency);n.push(r.frame),r.usesTransparency&&(s.usesTransparency=!0)}return Promise.resolve(new a(t,n,s))}catch(t){return Promise.reject(t)}}encodeGif(t,e={}){try{if(null===t||0===t.length)throw new o("there are no frames");const r=s().getMaxDimensions(t);return(e=Object.assign({},e)).width=r.maxWidth,e.height=r.maxHeight,e.loops=e.loops||0,e.colorScope=e.colorScope||a.GlobalColorsPreferred,Promise.resolve(this._encodeGif(t,e))}catch(t){return Promise.reject(t)}}_decodeFrame(t,e,r){let i,a;try{if(i=t.frameInfo(e),a=new n(t.width*t.height*4),t.decodeAndBlitFrameRGBA(e,a),i.width!==t.width||i.height!==t.height){if(i.y&&(a=a.slice(i.y*t.width*4)),t.width>i.width)for(let e=0;e<i.height;++e)a.copy(a,e*i.width*4,4*(i.x+e*t.width),4*(i.x+e*t.width)+4*i.width);a=a.slice(0,i.width*i.height*4)}}catch(t){throw new o(t)}let s=!1;if(null===this._transparentRGBA){if(!r)for(let t=3;t<a.length;t+=4)0===a[t]&&(s=!0,t=a.length)}else for(let t=3;t<a.length;t+=4)0===a[t]&&(a.writeUInt32BE(this._transparentRGBA,t-3),s=!0);return{frame:new u(i.width,i.height,a,{xOffset:i.x,yOffset:i.y,disposalMethod:i.disposal,interlaced:i.interlaced,delayCentisecs:i.delay}),usesTransparency:s}}_encodeGif(t,e){let r;if(e.colorScope===a.LocalColorsOnly)r=s().getColorInfo(t,0);else if(r=s().getColorInfo(t,256),!r.colors){if(e.colorScope===a.GlobalColorsOnly)throw new o("Too many color indexes for global color table");e.colorScope=a.LocalColorsOnly}e.usesTransparency=r.usesTransparency;const u=r.palettes;return e.colorScope===a.LocalColorsOnly?function(t,e,r,s){const u={loop:e.loops};let l,c=new n(2e3);try{l=new i.GifWriter(c,e.width,e.height,u)}catch(t){throw new o(t)}for(let e=0;e<t.length;++e)c=p(l,e,t[e],s[e],!0);return new a(c.slice(0,l.end()),t,e)}(t,e,0,u):function(t,e,r,s){const u={colors:s.colors.slice(),usesTransparency:s.usesTransparency};h(u);const l={palette:u.colors,loop:e.loops};let c,f=new n(2e3);try{c=new i.GifWriter(f,e.width,e.height,l)}catch(t){throw new o(t)}for(let e=0;e<t.length;++e)f=p(c,e,t[e],s,!1);return new a(f.slice(0,c.end()),t,e)}(t,e,0,r)}_getSizeEstimateGlobal(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;let r=968;const n=d(t);return e.forEach((t=>{r+=f(t,n)})),r}_getSizeEstimateLocal(t,e){if(this._testInitialBufferSize>0)return this._testInitialBufferSize;let r=200;for(let n=0;n<e.length;++n){const i=d(t[n]);r+=f(e[n],i)}return r}}},452:(t,e,r)=>{"use strict";const n=r(22944),{GifError:i}=r(83988);class a extends n{constructor(...t){if(super(...t),t[0]instanceof a){const e=t[0];this.xOffset=e.xOffset,this.yOffset=e.yOffset,this.disposalMethod=e.disposalMethod,this.delayCentisecs=e.delayCentisecs,this.interlaced=e.interlaced}else{const e=t[t.length-1];let r={};"object"!=typeof e||e instanceof n||(r=e),this.xOffset=r.xOffset||0,this.yOffset=r.yOffset||0,this.disposalMethod=void 0!==r.disposalMethod?r.disposalMethod:a.DisposeToBackgroundColor,this.delayCentisecs=r.delayCentisecs||8,this.interlaced=r.interlaced||!1}}getPalette(){const t=new Set,e=this.bitmap.data;let r=0,n=!1;for(;r<e.length;){if(0===e[r+3])n=!0;else{const n=e.readUInt32BE(r,!0)>>8&16777215;t.add(n)}r+=4}const i=new Array(t.size),a=t.values();for(r=0;r<i.length;++r)i[r]=a.next().value;i.sort(((t,e)=>t-e));let o=i.length;return n&&++o,{colors:i,usesTransparency:n,indexCount:o}}}a.DisposeToAnything=0,a.DisposeNothing=1,a.DisposeToBackgroundColor=2,a.DisposeToPrevious=3,e.GifFrame=a},7056:(t,e,r)=>{"use strict";var n=r(33296).Buffer;const i=r(63152),a=r(72416),o=r(22944),{GifFrame:s}=r(452),{GifError:u}=r(83988),{GifCodec:l}=r(63824),c=[".jpg",".jpeg",".png",".bmp"],h=new l;function f(t,e,r,n,i){const o=Array.isArray(t)?t:[t];if(i){if(["FloydSteinberg","FalseFloydSteinberg","Stucki","Atkinson","Jarvis","Burkes","Sierra","TwoSierra","SierraLite"].indexOf(i.ditherAlgorithm)<0)throw new Error(`Invalid ditherAlgorithm '${i.ditherAlgorithm}'`);void 0===i.serpentine&&(i.serpentine=!0),void 0===i.minimumColorDistanceToDither&&(i.minimumColorDistanceToDither=0),void 0===i.calculateErrorLikeGIMP&&(i.calculateErrorLikeGIMP=!1)}const s=new a.distance.Euclidean,u=new a.palette[e](s,r,n);let l;l=i?new a.image.ErrorDiffusionArray(s,a.image.ErrorDiffusionArrayKernel[i.ditherAlgorithm],i.serpentine,i.minimumColorDistanceToDither,i.calculateErrorLikeGIMP):new a.image.NearestColor(s);const c=[];o.forEach((t=>{const e=t.bitmap.data,r=new ArrayBuffer(e.length),n=new Uint32Array(r);for(let t=0,r=0;t<e.length;t+=4,++r)n[r]=e.readUInt32LE(t,!0);const i=a.utils.PointContainer.fromUint32Array(n,t.bitmap.width,t.bitmap.height);u.sample(i),c.push(i)}));const h=u.quantizeSync();for(let t=0;t<o.length;++t){const e=o[t].bitmap.data,r=l.quantizeSync(c[t],h).toUint32Array();for(let t=0,n=0;t<e.length;t+=4,++n)e.writeUInt32LE(r[n],t)}}e.cloneFrames=function(t){let e=[];return t.forEach((t=>{e.push(new s(t))})),e},e.getColorInfo=function(t,e){let r=!1;const n=[];for(let e=0;e<t.length;++e){let i=t[e].getPalette();if(i.usesTransparency&&(r=!0),i.indexCount>256)throw new u(`Frame ${e} uses more than 256 color indexes`);n.push(i)}if(0===e)return{usesTransparency:r,palettes:n};const i=new Set;n.forEach((t=>{t.colors.forEach((t=>{i.add(t)}))}));let a=i.size;if(r&&++a,e&&a>e)return{usesTransparency:r,palettes:n};const o=new Array(i.size),s=i.values();for(let t=0;t<o.length;++t)o[t]=s.next().value;return o.sort(((t,e)=>t-e)),{colors:o,indexCount:a,usesTransparency:r,palettes:n}},e.copyAsJimp=function(t,r){return e.shareAsJimp(t,new o(r))},e.getMaxDimensions=function(t){let e=0,r=0;return t.forEach((t=>{const n=t.xOffset+t.bitmap.width;n>e&&(e=n);const i=t.yOffset+t.bitmap.height;i>r&&(r=i)})),{maxWidth:e,maxHeight:r}},e.quantizeDekker=function(t,e,r){f(t,"NeuQuantFloat",e=e||256,0,r)},e.quantizeSorokin=function(t,e,r,n){let i;switch(e=e||256,r=r||"min-pop"){case"min-pop":i=2;break;case"top-pop":i=1;break;default:throw new Error(`Invalid quantizeSorokin histogram '${r}'`)}f(t,"RGBQuant",e,i,n)},e.quantizeWu=function(t,e,r,n){if(e=e||256,(r=r||5)<1||r>8)throw new Error("Invalid quantization quality");f(t,"WuQuant",e,r,n)},e.read=function(t,e){return e=e||h,n.isBuffer(t)?e.decodeGif(t):(r=t,new Promise(((t,e)=>{i.readFile(r,((r,n)=>r?e(r):t(n)))}))).then((t=>e.decodeGif(t)));var r},e.shareAsJimp=function(t,e){const r=new t(e.bitmap.width,e.bitmap.height,0);return r.bitmap.data=e.bitmap.data,r},e.write=function(t,e,r,n){n=n||h;const a=t.match(/\.[a-zA-Z]+$/);if(null!==a&&c.includes(a[0].toLowerCase()))throw new Error(`GIF '${t}' has an unexpected suffix`);return n.encodeGif(e,r).then((e=>function(t,e){return new Promise(((r,n)=>{i.writeFile(t,e,(t=>t?n(t):r()))}))}(t,e.buffer).then((()=>e))))}},96708:(t,e,r)=>{"use strict";const n=r(22944),{Gif:i,GifError:a}=r(83988),{GifCodec:o}=r(63824),{GifFrame:s}=r(452),u=r(7056);t.exports={BitmapImage:n,Gif:i,GifCodec:o,GifFrame:s,GifUtil:u,GifError:a}},16796:(t,e,r)=>{var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},t.exports=n},24404:(t,e)=>{e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,l=u>>1,c=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+t[e+h],h+=f,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=l}return(d?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,l=8*a-i-1,c=(1<<l)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*u-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;t[r+d]=255&o,d+=p,o/=256,l-=8);t[r+d-p]|=128*m}},95868:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},25332:t=>{t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"==typeof t&&"[object RegExp]"!==r||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},66616:(t,e,r)=>{"use strict";var n=r(22411);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(63496)),a=n(r(22032)),o=n(r(85355)),s=(0,i.default)({types:[a.default],plugins:[o.default]});e.default=s,t.exports=e.default},71565:(t,e,r)=>{var n=r(57576),i=r(48525);t.exports={encode:n,decode:i}},48525:(t,e,r)=>{var n=r(33296).Buffer,i=function(){"use strict";var t=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]),e=4017,r=799,n=3406,i=2276,a=1567,o=3784,s=5793,u=2896;function l(){}function c(t,e){for(var r,n,i=0,a=[],o=16;o>0&&!t[o-1];)o--;a.push({children:[],index:0});var s,u=a[0];for(r=0;r<o;r++){for(n=0;n<t[r];n++){for((u=a.pop()).children[u.index]=e[i];u.index>0;){if(0===a.length)throw new Error("Could not recreate Huffman Table");u=a.pop()}for(u.index++,a.push(u);a.length<=r;)a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<o&&(a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return a[0].children}function h(e,r,n,i,a,o,s,u,l,c){n.precision,n.samplesPerLine,n.scanLines;var h=n.mcusPerLine,f=n.progressive,d=(n.maxH,n.maxV,r),p=0,m=0;function g(){if(m>0)return m--,p>>m&1;if(255==(p=e[r++])){var t=e[r++];if(t)throw new Error("unexpected marker: "+(p<<8|t).toString(16))}return m=7,p>>>7}function b(t){for(var e,r=t;null!==(e=g());){if("number"==typeof(r=r[e]))return r;if("object"!=typeof r)throw new Error("invalid huffman sequence")}return null}function v(t){for(var e=0;t>0;){var r=g();if(null===r)return;e=e<<1|r,t--}return e}function y(t){var e=v(t);return e>=1<<t-1?e:e+(-1<<t)+1}var w,_=0,k=0;function B(t,e,r,n,i){var a=r%h,o=(r/h|0)*t.v+n,s=a*t.h+i;void 0===t.blocks[o]&&c.tolerantDecoding||e(t,t.blocks[o][s])}function x(t,e,r){var n=r/t.blocksPerLine|0,i=r%t.blocksPerLine;void 0===t.blocks[n]&&c.tolerantDecoding||e(t,t.blocks[n][i])}var E,C,A,I,M,P,S=i.length;P=f?0===o?0===u?function(t,e){var r=b(t.huffmanTableDC),n=0===r?0:y(r)<<l;e[0]=t.pred+=n}:function(t,e){e[0]|=g()<<l}:0===u?function(e,r){if(_>0)_--;else for(var n=o,i=s;n<=i;){var a=b(e.huffmanTableAC),u=15&a,c=a>>4;if(0!==u)r[t[n+=c]]=y(u)*(1<<l),n++;else{if(c<15){_=v(c)+(1<<c)-1;break}n+=16}}}:function(e,r){for(var n=o,i=s,a=0;n<=i;){var u=t[n],c=r[u]<0?-1:1;switch(k){case 0:var h=b(e.huffmanTableAC),f=15&h;if(a=h>>4,0===f)a<15?(_=v(a)+(1<<a),k=4):(a=16,k=1);else{if(1!==f)throw new Error("invalid ACn encoding");w=y(f),k=a?2:3}continue;case 1:case 2:r[u]?r[u]+=(g()<<l)*c:0==--a&&(k=2==k?3:0);break;case 3:r[u]?r[u]+=(g()<<l)*c:(r[u]=w<<l,k=0);break;case 4:r[u]&&(r[u]+=(g()<<l)*c)}n++}4===k&&0==--_&&(k=0)}:function(e,r){var n=b(e.huffmanTableDC),i=0===n?0:y(n);r[0]=e.pred+=i;for(var a=1;a<64;){var o=b(e.huffmanTableAC),s=15&o,u=o>>4;if(0!==s)r[t[a+=u]]=y(s),a++;else{if(u<15)break;a+=16}}};var T,R,L,O,F=0;for(R=1==S?i[0].blocksPerLine*i[0].blocksPerColumn:h*n.mcusPerColumn,a||(a=R);F<R;){for(C=0;C<S;C++)i[C].pred=0;if(_=0,1==S)for(E=i[0],M=0;M<a;M++)x(E,P,F),F++;else for(M=0;M<a;M++){for(C=0;C<S;C++)for(L=(E=i[C]).h,O=E.v,A=0;A<O;A++)for(I=0;I<L;I++)B(E,P,F,A,I);if(++F===R)break}if(F===R)do{if(255===e[r]&&0!==e[r+1])break;r+=1}while(r<e.length-2);if(m=0,(T=e[r]<<8|e[r+1])<65280)throw new Error("marker was not found");if(!(T>=65488&&T<=65495))break;r+=2}return r-d}function f(t,l){var c,h,f=[],d=l.blocksPerLine,p=l.blocksPerColumn,m=d<<3,b=new Int32Array(64),v=new Uint8Array(64);function y(t,c,h){var f,d,p,m,g,b,v,y,w,_,k=l.quantizationTable,B=h;for(_=0;_<64;_++)B[_]=t[_]*k[_];for(_=0;_<8;++_){var x=8*_;0!=B[1+x]||0!=B[2+x]||0!=B[3+x]||0!=B[4+x]||0!=B[5+x]||0!=B[6+x]||0!=B[7+x]?(f=s*B[0+x]+128>>8,d=s*B[4+x]+128>>8,p=B[2+x],m=B[6+x],g=u*(B[1+x]-B[7+x])+128>>8,y=u*(B[1+x]+B[7+x])+128>>8,b=B[3+x]<<4,v=B[5+x]<<4,w=f-d+1>>1,f=f+d+1>>1,d=w,w=p*o+m*a+128>>8,p=p*a-m*o+128>>8,m=w,w=g-v+1>>1,g=g+v+1>>1,v=w,w=y+b+1>>1,b=y-b+1>>1,y=w,w=f-m+1>>1,f=f+m+1>>1,m=w,w=d-p+1>>1,d=d+p+1>>1,p=w,w=g*i+y*n+2048>>12,g=g*n-y*i+2048>>12,y=w,w=b*r+v*e+2048>>12,b=b*e-v*r+2048>>12,v=w,B[0+x]=f+y,B[7+x]=f-y,B[1+x]=d+v,B[6+x]=d-v,B[2+x]=p+b,B[5+x]=p-b,B[3+x]=m+g,B[4+x]=m-g):(w=s*B[0+x]+512>>10,B[0+x]=w,B[1+x]=w,B[2+x]=w,B[3+x]=w,B[4+x]=w,B[5+x]=w,B[6+x]=w,B[7+x]=w)}for(_=0;_<8;++_){var E=_;0!=B[8+E]||0!=B[16+E]||0!=B[24+E]||0!=B[32+E]||0!=B[40+E]||0!=B[48+E]||0!=B[56+E]?(f=s*B[0+E]+2048>>12,d=s*B[32+E]+2048>>12,p=B[16+E],m=B[48+E],g=u*(B[8+E]-B[56+E])+2048>>12,y=u*(B[8+E]+B[56+E])+2048>>12,b=B[24+E],v=B[40+E],w=f-d+1>>1,f=f+d+1>>1,d=w,w=p*o+m*a+2048>>12,p=p*a-m*o+2048>>12,m=w,w=g-v+1>>1,g=g+v+1>>1,v=w,w=y+b+1>>1,b=y-b+1>>1,y=w,w=f-m+1>>1,f=f+m+1>>1,m=w,w=d-p+1>>1,d=d+p+1>>1,p=w,w=g*i+y*n+2048>>12,g=g*n-y*i+2048>>12,y=w,w=b*r+v*e+2048>>12,b=b*e-v*r+2048>>12,v=w,B[0+E]=f+y,B[56+E]=f-y,B[8+E]=d+v,B[48+E]=d-v,B[16+E]=p+b,B[40+E]=p-b,B[24+E]=m+g,B[32+E]=m-g):(w=s*h[_+0]+8192>>14,B[0+E]=w,B[8+E]=w,B[16+E]=w,B[24+E]=w,B[32+E]=w,B[40+E]=w,B[48+E]=w,B[56+E]=w)}for(_=0;_<64;++_){var C=128+(B[_]+8>>4);c[_]=C<0?0:C>255?255:C}}g(m*p*8);for(var w=0;w<p;w++){var _=w<<3;for(c=0;c<8;c++)f.push(new Uint8Array(m));for(var k=0;k<d;k++){y(l.blocks[w][k],v,b);var B=0,x=k<<3;for(h=0;h<8;h++){var E=f[_+h];for(c=0;c<8;c++)E[x+c]=v[B++]}}}return f}function d(t){return t<0?0:t>255?255:t}l.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=1e3*this.opts.maxResolutionInMP*1e3,n=0;function i(){var t=e[n]<<8|e[n+1];return n+=2,t}function a(t){var e,r,n=1,i=1;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];var s=Math.ceil(Math.ceil(t.samplesPerLine/8)*e.h/n),u=Math.ceil(Math.ceil(t.scanLines/8)*e.v/i),l=a*e.h,c=o*e.v,h=[];g(c*l*256);for(var f=0;f<c;f++){for(var d=[],p=0;p<l;p++)d.push(new Int32Array(64));h.push(d)}e.blocksPerLine=s,e.blocksPerColumn=u,e.blocks=h}t.maxH=n,t.maxV=i,t.mcusPerLine=a,t.mcusPerColumn=o}e.length;var o,s,u,l,d=null,p=null,m=[],b=[],v=[],y=[],w=i(),_=-1;if(this.comments=[],65496!=w)throw new Error("SOI not found");for(w=i();65497!=w;){switch(w){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 k=(u=void 0,l=void 0,u=i(),l=e.subarray(n,n+u-2),n+=l.length,l);if(65534===w){var B=String.fromCharCode.apply(null,k);this.comments.push(B)}65504===w&&74===k[0]&&70===k[1]&&73===k[2]&&70===k[3]&&0===k[4]&&(d={version:{major:k[5],minor:k[6]},densityUnits:k[7],xDensity:k[8]<<8|k[9],yDensity:k[10]<<8|k[11],thumbWidth:k[12],thumbHeight:k[13],thumbData:k.subarray(14,14+3*k[12]*k[13])}),65505===w&&69===k[0]&&120===k[1]&&105===k[2]&&102===k[3]&&0===k[4]&&(this.exifBuffer=k.subarray(5,k.length)),65518===w&&65===k[0]&&100===k[1]&&111===k[2]&&98===k[3]&&101===k[4]&&0===k[5]&&(p={version:k[6],flags0:k[7]<<8|k[8],flags1:k[9]<<8|k[10],transformCode:k[11]});break;case 65499:for(var x=i()+n-2;n<x;){var E=e[n++];g(256);var C=new Int32Array(64);if(E>>4==0)for(V=0;V<64;V++)C[t[V]]=e[n++];else{if(E>>4!=1)throw new Error("DQT: invalid table spec");for(V=0;V<64;V++)C[t[V]]=i()}m[15&E]=C}break;case 65472:case 65473:case 65474:i(),(o={}).extended=65473===w,o.progressive=65474===w,o.precision=e[n++],o.scanLines=i(),o.samplesPerLine=i(),o.components={},o.componentsOrder=[];var A=o.scanLines*o.samplesPerLine;if(A>r){var I=Math.ceil((A-r)/1e6);throw new Error(`maxResolutionInMP limit exceeded by ${I}MP`)}var M,P=e[n++];for(Z=0;Z<P;Z++){M=e[n];var S=e[n+1]>>4,T=15&e[n+1],R=e[n+2];if(S<=0||T<=0)throw new Error("Invalid sampling factor, expected values above 0");o.componentsOrder.push(M),o.components[M]={h:S,v:T,quantizationIdx:R},n+=3}a(o),b.push(o);break;case 65476:var L=i();for(Z=2;Z<L;){var O=e[n++],F=new Uint8Array(16),N=0;for(V=0;V<16;V++,n++)N+=F[V]=e[n];g(16+N);var U=new Uint8Array(N);for(V=0;V<N;V++,n++)U[V]=e[n];Z+=17+N,(O>>4==0?y:v)[15&O]=c(F,U)}break;case 65501:i(),s=i();break;case 65500:i(),i();break;case 65498:i();var D=e[n++],z=[];for(Z=0;Z<D;Z++){Y=o.components[e[n++]];var G=e[n++];Y.huffmanTableDC=y[G>>4],Y.huffmanTableAC=v[15&G],z.push(Y)}var j=e[n++],H=e[n++],W=e[n++],q=h(e,n,o,z,s,j,H,W>>4,15&W,this.opts);n+=q;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}if(224===w||225==w){if(-1!==_)throw new Error(`first unknown JPEG marker at offset ${_.toString(16)}, second unknown JPEG marker ${w.toString(16)} at offset ${(n-1).toString(16)}`);_=n-1;const t=i();if(255===e[n+t-2]){n+=t-2;break}}throw new Error("unknown JPEG marker "+w.toString(16))}w=i()}if(1!=b.length)throw new Error("only single frame JPEGs supported");for(var Z=0;Z<b.length;Z++){var $=b[Z].components;for(var V in $)$[V].quantizationTable=m[$[V].quantizationIdx],delete $[V].quantizationIdx}for(this.width=o.samplesPerLine,this.height=o.scanLines,this.jfif=d,this.adobe=p,this.components=[],Z=0;Z<o.componentsOrder.length;Z++){var Y=o.components[o.componentsOrder[Z]];this.components.push({lines:f(0,Y),scaleX:Y.h/o.maxH,scaleY:Y.v/o.maxV})}},getData:function(t,e){var r,n,i,a,o,s,u,l,c,h,f,p,m,b,v,y,w,_,k,B,x,E=this.width/t,C=this.height/e,A=0,I=t*e*this.components.length;g(I);var M=new Uint8Array(I);switch(this.components.length){case 1:for(r=this.components[0],h=0;h<e;h++)for(o=r.lines[0|h*r.scaleY*C],c=0;c<t;c++)f=o[0|c*r.scaleX*E],M[A++]=f;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*C],s=n.lines[0|h*n.scaleY*C],c=0;c<t;c++)f=o[0|c*r.scaleX*E],M[A++]=f,f=s[0|c*n.scaleX*E],M[A++]=f;break;case 3:for(x=!0,this.adobe&&this.adobe.transformCode?x=!0:void 0!==this.opts.colorTransform&&(x=!!this.opts.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*C],s=n.lines[0|h*n.scaleY*C],u=i.lines[0|h*i.scaleY*C],c=0;c<t;c++)x?(f=o[0|c*r.scaleX*E],p=s[0|c*n.scaleX*E],_=d(f+1.402*((m=u[0|c*i.scaleX*E])-128)),k=d(f-.3441363*(p-128)-.71413636*(m-128)),B=d(f+1.772*(p-128))):(_=o[0|c*r.scaleX*E],k=s[0|c*n.scaleX*E],B=u[0|c*i.scaleX*E]),M[A++]=_,M[A++]=k,M[A++]=B;break;case 4:if(!this.adobe)throw new Error("Unsupported color mode (4 components)");for(x=!1,this.adobe&&this.adobe.transformCode?x=!0:void 0!==this.opts.colorTransform&&(x=!!this.opts.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*C],s=n.lines[0|h*n.scaleY*C],u=i.lines[0|h*i.scaleY*C],l=a.lines[0|h*a.scaleY*C],c=0;c<t;c++)x?(f=o[0|c*r.scaleX*E],p=s[0|c*n.scaleX*E],m=u[0|c*i.scaleX*E],b=l[0|c*a.scaleX*E],v=255-d(f+1.402*(m-128)),y=255-d(f-.3441363*(p-128)-.71413636*(m-128)),w=255-d(f+1.772*(p-128))):(v=o[0|c*r.scaleX*E],y=s[0|c*n.scaleX*E],w=u[0|c*i.scaleX*E],b=l[0|c*a.scaleX*E]),M[A++]=255-v,M[A++]=255-y,M[A++]=255-w,M[A++]=255-b;break;default:throw new Error("Unsupported color mode")}return M},copyToImageData:function(t,e){var r,n,i,a,o,s,u,l,c,h=t.width,f=t.height,p=t.data,m=this.getData(h,f),g=0,b=0;switch(this.components.length){case 1:for(n=0;n<f;n++)for(r=0;r<h;r++)i=m[g++],p[b++]=i,p[b++]=i,p[b++]=i,e&&(p[b++]=255);break;case 3:for(n=0;n<f;n++)for(r=0;r<h;r++)u=m[g++],l=m[g++],c=m[g++],p[b++]=u,p[b++]=l,p[b++]=c,e&&(p[b++]=255);break;case 4:for(n=0;n<f;n++)for(r=0;r<h;r++)o=m[g++],s=m[g++],i=m[g++],u=255-d(o*(1-(a=m[g++])/255)+a),l=255-d(s*(1-a/255)+a),c=255-d(i*(1-a/255)+a),p[b++]=u,p[b++]=l,p[b++]=c,e&&(p[b++]=255);break;default:throw new Error("Unsupported color mode")}}};var p=0,m=0;function g(t=0){var e=p+t;if(e>m){var r=Math.ceil((e-m)/1024/1024);throw new Error(`maxMemoryUsageInMB limit exceeded by at least ${r}MB`)}p=e}return l.resetMaxMemoryUsage=function(t){p=0,m=t},l.getBytesAllocated=function(){return p},l.requestMemoryAllocation=g,l}();t.exports=function(t,e={}){var r={colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512,...e},a=new Uint8Array(t),o=new i;o.opts=r,i.resetMaxMemoryUsage(1024*r.maxMemoryUsageInMB*1024),o.parse(a);var s=r.formatAsRGBA?4:3,u=o.width*o.height*s;try{i.requestMemoryAllocation(u);var l={width:o.width,height:o.height,exifBuffer:o.exifBuffer,data:r.useTArray?new Uint8Array(u):n.alloc(u)};o.comments.length>0&&(l.comments=o.comments)}catch(t){if(t instanceof RangeError)throw new Error("Could not allocate enough memory for the image. Required: "+u);if(t instanceof ReferenceError&&"Buffer is not defined"===t.message)throw new Error("Buffer is not globally defined in this environment. Consider setting useTArray to true");throw t}return o.copyToImageData(l,r.formatAsRGBA),l}},57576:(t,e,r)=>{var n=r(33296).Buffer;function i(t){Math.round;var e,r,i,a,o,s=Math.floor,u=new Array(64),l=new Array(64),c=new Array(64),h=new Array(64),f=new Array(65535),d=new Array(65535),p=new Array(64),m=new Array(64),g=[],b=0,v=7,y=new Array(64),w=new Array(64),_=new Array(64),k=new Array(256),B=new Array(2048),x=[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],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[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],M=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],T=[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 R(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 L(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(b|=1<<v),r--,--v<0&&(255==b?(O(255),O(0)):O(b),v=7,b=0)}function O(t){g.push(t)}function F(t){O(t>>8&255),O(255&t)}function N(t,e,r,n,i){for(var a,o=i[0],s=i[240],u=function(t,e){var r,n,i,a,o,s,u,l,c,h,f=0;for(c=0;c<8;++c){r=t[f],n=t[f+1],i=t[f+2],a=t[f+3],o=t[f+4],s=t[f+5],u=t[f+6];var d=r+(l=t[f+7]),m=r-l,g=n+u,b=n-u,v=i+s,y=i-s,w=a+o,_=a-o,k=d+w,B=d-w,x=g+v,E=g-v;t[f]=k+x,t[f+4]=k-x;var C=.707106781*(E+B);t[f+2]=B+C,t[f+6]=B-C;var A=.382683433*((k=_+y)-(E=b+m)),I=.5411961*k+A,M=1.306562965*E+A,P=.707106781*(x=y+b),S=m+P,T=m-P;t[f+5]=T+I,t[f+3]=T-I,t[f+1]=S+M,t[f+7]=S-M,f+=8}for(f=0,c=0;c<8;++c){r=t[f],n=t[f+8],i=t[f+16],a=t[f+24],o=t[f+32],s=t[f+40],u=t[f+48];var R=r+(l=t[f+56]),L=r-l,O=n+u,F=n-u,N=i+s,U=i-s,D=a+o,z=a-o,G=R+D,j=R-D,H=O+N,W=O-N;t[f]=G+H,t[f+32]=G-H;var q=.707106781*(W+j);t[f+16]=j+q,t[f+48]=j-q;var Z=.382683433*((G=z+U)-(W=F+L)),$=.5411961*G+Z,V=1.306562965*W+Z,Y=.707106781*(H=U+F),X=L+Y,J=L-Y;t[f+40]=J+$,t[f+24]=J-$,t[f+8]=X+V,t[f+56]=X-V,f++}for(c=0;c<64;++c)h=t[c]*e[c],p[c]=h>0?h+.5|0:h-.5|0;return p}(t,e),l=0;l<64;++l)m[x[l]]=u[l];var c=m[0]-r;r=m[0],0==c?L(n[0]):(L(n[d[a=32767+c]]),L(f[a]));for(var h=63;h>0&&0==m[h];h--);if(0==h)return L(o),r;for(var g,b=1;b<=h;){for(var v=b;0==m[b]&&b<=h;++b);var y=b-v;if(y>=16){g=y>>4;for(var w=1;w<=g;++w)L(s);y&=15}a=32767+m[b],L(i[(y<<4)+d[a]]),L(f[a]),b++}return 63!=h&&L(o),r}function U(t){t<=0&&(t=1),t>100&&(t=100),o!=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=s((e[r]*t+50)/100);n<1?n=1:n>255&&(n=255),u[x[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=s((i[a]*t+50)/100);o<1?o=1:o>255&&(o=255),l[x[a]]=o}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var m=0;m<8;m++)c[d]=1/(u[x[d]]*f[p]*f[m]*8),h[d]=1/(l[x[d]]*f[p]*f[m]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){var s;(new Date).getTime(),o&&U(o),g=new Array,b=0,v=7,F(65496),F(65504),F(16),O(74),O(70),O(73),O(70),O(0),O(1),O(1),O(0),F(1),F(1),O(0),O(0),void 0!==(s=t.comments)&&s.constructor===Array&&s.forEach((t=>{if("string"==typeof t){F(65534);var e,r=t.length;for(F(r+2),e=0;e<r;e++)O(t.charCodeAt(e))}})),function(t){if(t){F(65505),69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]?F(t.length+2):(F(t.length+5+2),O(69),O(120),O(105),O(102),O(0));for(var e=0;e<t.length;e++)O(t[e])}}(t.exifBuffer),function(){F(65499),F(132),O(0);for(var t=0;t<64;t++)O(u[t]);O(1);for(var e=0;e<64;e++)O(l[e])}(),function(t,e){F(65472),F(17),O(8),F(e),F(t),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(t.width,t.height),function(){F(65476),F(418),O(0);for(var t=0;t<16;t++)O(E[t+1]);for(var e=0;e<=11;e++)O(C[e]);O(16);for(var r=0;r<16;r++)O(A[r+1]);for(var n=0;n<=161;n++)O(I[n]);O(1);for(var i=0;i<16;i++)O(M[i+1]);for(var a=0;a<=11;a++)O(P[a]);O(17);for(var o=0;o<16;o++)O(S[o+1]);for(var s=0;s<=161;s++)O(T[s])}(),F(65498),F(12),O(3),O(1),O(0),O(2),O(17),O(3),O(17),O(0),O(63),O(0);var f=0,d=0,p=0;b=0,v=7,this.encode.displayName="_encode_";for(var m,k,x,R,D,z,G,j,H,W=t.data,q=t.width,Z=t.height,$=4*q,V=0;V<Z;){for(m=0;m<$;){for(z=D=$*V+m,G=-1,j=0,H=0;H<64;H++)z=D+(j=H>>3)*$+(G=4*(7&H)),V+j>=Z&&(z-=$*(V+1+j-Z)),m+G>=$&&(z-=m+G-$+4),k=W[z++],x=W[z++],R=W[z++],y[H]=(B[k]+B[x+256>>0]+B[R+512>>0]>>16)-128,w[H]=(B[k+768>>0]+B[x+1024>>0]+B[R+1280>>0]>>16)-128,_[H]=(B[k+1280>>0]+B[x+1536>>0]+B[R+1792>>0]>>16)-128;f=N(y,c,f,e,i),d=N(w,h,d,r,a),p=N(_,h,p,r,a),m+=32}V+=8}if(v>=0){var Y=[];Y[1]=v+1,Y[0]=(1<<v+1)-1,L(Y)}return F(65497),n.from(g)},(new Date).getTime(),t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)k[e]=t(e)}(),e=R(E,C),r=R(M,P),i=R(A,I),a=R(S,T),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)d[32767+n]=r,f[32767+n]=[],f[32767+n][1]=r,f[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)d[32767+i]=r,f[32767+i]=[],f[32767+i][1]=r,f[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)B[t]=19595*t,B[t+256>>0]=38470*t,B[t+512>>0]=7471*t+32768,B[t+768>>0]=-11059*t,B[t+1024>>0]=-21709*t,B[t+1280>>0]=32768*t+8421375,B[t+1536>>0]=-27439*t,B[t+1792>>0]=-5329*t}(),U(t),(new Date).getTime()}t.exports=function(t,e){return void 0===e&&(e=50),{data:new i(e).encode(t,e),width:t.width,height:t.height}}},7600:function(t){var e;"undefined"!=typeof self&&self,e=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=3)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.width=e,this.height=t.length/e,this.data=t}return t.createEmpty=function(e,r){return new t(new Uint8ClampedArray(e*r),e)},t.prototype.get=function(t,e){return!(t<0||t>=this.width||e<0||e>=this.height||!this.data[e*this.width+t])},t.prototype.set=function(t,e,r){this.data[e*this.width+t]=r?1:0},t.prototype.setRegion=function(t,e,r,n,i){for(var a=e;a<e+n;a++)for(var o=t;o<t+r;o++)this.set(o,a,!!i)},t}();e.BitMatrix=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.addOrSubtractGF=function(t,e){return t^e};var i=function(){function t(t,e,r){this.primitive=t,this.size=e,this.generatorBase=r,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var i=1,a=0;a<this.size;a++)this.expTable[a]=i,(i*=2)>=this.size&&(i=(i^this.primitive)&this.size-1);for(a=0;a<this.size-1;a++)this.logTable[this.expTable[a]]=a;this.zero=new n.default(this,Uint8ClampedArray.from([0])),this.one=new n.default(this,Uint8ClampedArray.from([1]))}return t.prototype.multiply=function(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.size-1)]},t.prototype.inverse=function(t){if(0===t)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[t]-1]},t.prototype.buildMonomial=function(t,e){if(t<0)throw new Error("Invalid monomial degree less than 0");if(0===e)return this.zero;var r=new Uint8ClampedArray(t+1);return r[0]=e,new n.default(this,r)},t.prototype.log=function(t){if(0===t)throw new Error("Can't take log(0)");return this.logTable[t]},t.prototype.exp=function(t){return this.expTable[t]},t}();e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=function(){function t(t,e){if(0===e.length)throw new Error("No coefficients.");this.field=t;var r=e.length;if(r>1&&0===e[0]){for(var n=1;n<r&&0===e[n];)n++;if(n===r)this.coefficients=t.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(r-n);for(var i=0;i<this.coefficients.length;i++)this.coefficients[i]=e[n+i]}}else this.coefficients=e}return t.prototype.degree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return 0===this.coefficients[0]},t.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},t.prototype.addOrSubtract=function(e){var r;if(this.isZero())return e;if(e.isZero())return this;var i=this.coefficients,a=e.coefficients;i.length>a.length&&(i=(r=[a,i])[0],a=r[1]);for(var o=new Uint8ClampedArray(a.length),s=a.length-i.length,u=0;u<s;u++)o[u]=a[u];for(u=s;u<a.length;u++)o[u]=n.addOrSubtractGF(i[u-s],a[u]);return new t(this.field,o)},t.prototype.multiply=function(e){if(0===e)return this.field.zero;if(1===e)return this;for(var r=this.coefficients.length,n=new Uint8ClampedArray(r),i=0;i<r;i++)n[i]=this.field.multiply(this.coefficients[i],e);return new t(this.field,n)},t.prototype.multiplyPoly=function(e){if(this.isZero()||e.isZero())return this.field.zero;for(var r=this.coefficients,i=r.length,a=e.coefficients,o=a.length,s=new Uint8ClampedArray(i+o-1),u=0;u<i;u++)for(var l=r[u],c=0;c<o;c++)s[u+c]=n.addOrSubtractGF(s[u+c],this.field.multiply(l,a[c]));return new t(this.field,s)},t.prototype.multiplyByMonomial=function(e,r){if(e<0)throw new Error("Invalid degree less than 0");if(0===r)return this.field.zero;for(var n=this.coefficients.length,i=new Uint8ClampedArray(n+e),a=0;a<n;a++)i[a]=this.field.multiply(this.coefficients[a],r);return new t(this.field,i)},t.prototype.evaluateAt=function(t){var e=0;if(0===t)return this.getCoefficient(0);var r=this.coefficients.length;if(1===t)return this.coefficients.forEach((function(t){e=n.addOrSubtractGF(e,t)})),e;e=this.coefficients[0];for(var i=1;i<r;i++)e=n.addOrSubtractGF(this.field.multiply(t,e),this.coefficients[i]);return e},t}();e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),i=r(5),a=r(11),o=r(12);function s(t){var e=o.locate(t);if(!e)return null;for(var r=0,n=e;r<n.length;r++){var s=n[r],u=a.extract(t,s),l=i.decode(u.matrix);if(l)return{binaryData:l.bytes,data:l.text,chunks:l.chunks,version:l.version,location:{topRightCorner:u.mappingFunction(s.dimension,0),topLeftCorner:u.mappingFunction(0,0),bottomRightCorner:u.mappingFunction(s.dimension,s.dimension),bottomLeftCorner:u.mappingFunction(0,s.dimension),topRightFinderPattern:s.topRight,topLeftFinderPattern:s.topLeft,bottomLeftFinderPattern:s.bottomLeft,bottomRightAlignmentPattern:s.alignmentPattern}}}return null}var u={inversionAttempts:"attemptBoth"};function l(t,e,r,i){void 0===i&&(i={});var a=u;Object.keys(a||{}).forEach((function(t){a[t]=i[t]||a[t]}));var o="attemptBoth"===a.inversionAttempts||"invertFirst"===a.inversionAttempts,l="onlyInvert"===a.inversionAttempts||"invertFirst"===a.inversionAttempts,c=n.binarize(t,e,r,o),h=c.binarized,f=c.inverted,d=s(l?f:h);return d||"attemptBoth"!==a.inversionAttempts&&"invertFirst"!==a.inversionAttempts||(d=s(l?h:f)),d}l.default=l,e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0);function i(t,e,r){return t<e?e:t>r?r:t}var a=function(){function t(t,e){this.width=t,this.data=new Uint8ClampedArray(t*e)}return t.prototype.get=function(t,e){return this.data[e*this.width+t]},t.prototype.set=function(t,e,r){this.data[e*this.width+t]=r},t}();e.binarize=function(t,e,r,o){if(t.length!==e*r*4)throw new Error("Malformed data passed to binarizer.");for(var s=new a(e,r),u=0;u<e;u++)for(var l=0;l<r;l++){var c=t[4*(l*e+u)+0],h=t[4*(l*e+u)+1],f=t[4*(l*e+u)+2];s.set(u,l,.2126*c+.7152*h+.0722*f)}for(var d=Math.ceil(e/8),p=Math.ceil(r/8),m=new a(d,p),g=0;g<p;g++)for(var b=0;b<d;b++){var v=0,y=1/0,w=0;for(l=0;l<8;l++)for(u=0;u<8;u++){var _=s.get(8*b+u,8*g+l);v+=_,y=Math.min(y,_),w=Math.max(w,_)}var k=v/Math.pow(8,2);if(w-y<=24&&(k=y/2,g>0&&b>0)){var B=(m.get(b,g-1)+2*m.get(b-1,g)+m.get(b-1,g-1))/4;y<B&&(k=B)}m.set(b,g,k)}var x=n.BitMatrix.createEmpty(e,r),E=null;for(o&&(E=n.BitMatrix.createEmpty(e,r)),g=0;g<p;g++)for(b=0;b<d;b++){for(var C=i(b,2,d-3),A=i(g,2,p-3),I=(v=0,-2);I<=2;I++)for(var M=-2;M<=2;M++)v+=m.get(C+I,A+M);var P=v/25;for(I=0;I<8;I++)for(M=0;M<8;M++){u=8*b+I,l=8*g+M;var S=s.get(u,l);x.set(u,l,S<=P),o&&E.set(u,l,!(S<=P))}}return o?{binarized:x,inverted:E}:{binarized:x}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(6),a=r(9),o=r(10);function s(t,e){for(var r=t^e,n=0;r;)n++,r&=r-1;return n}function u(t,e){return e<<1|t}var l=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],c=[function(t){return(t.y+t.x)%2==0},function(t){return t.y%2==0},function(t){return t.x%3==0},function(t){return(t.y+t.x)%3==0},function(t){return(Math.floor(t.y/2)+Math.floor(t.x/3))%2==0},function(t){return t.x*t.y%2+t.x*t.y%3==0},function(t){return(t.y*t.x%2+t.y*t.x%3)%2==0},function(t){return((t.y+t.x)%2+t.y*t.x%3)%2==0}];function h(t){var e=function(t){var e=t.height,r=Math.floor((e-17)/4);if(r<=6)return o.VERSIONS[r-1];for(var n=0,i=5;i>=0;i--)for(var a=e-9;a>=e-11;a--)n=u(t.get(a,i),n);var l=0;for(a=5;a>=0;a--)for(i=e-9;i>=e-11;i--)l=u(t.get(a,i),l);for(var c,h=1/0,f=0,d=o.VERSIONS;f<d.length;f++){var p=d[f];if(p.infoBits===n||p.infoBits===l)return p;var m=s(n,p.infoBits);m<h&&(c=p,h=m),(m=s(l,p.infoBits))<h&&(c=p,h=m)}return h<=3?c:void 0}(t);if(!e)return null;var r=function(t){for(var e=0,r=0;r<=8;r++)6!==r&&(e=u(t.get(r,8),e));for(var n=7;n>=0;n--)6!==n&&(e=u(t.get(8,n),e));var i=t.height,a=0;for(n=i-1;n>=i-7;n--)a=u(t.get(8,n),a);for(r=i-8;r<i;r++)a=u(t.get(r,8),a);for(var o=1/0,c=null,h=0,f=l;h<f.length;h++){var d=f[h],p=d.bits,m=d.formatInfo;if(p===e||p===a)return m;var g=s(e,p);g<o&&(c=m,o=g),e!==a&&(g=s(a,p))<o&&(c=m,o=g)}return o<=3?c:null}(t);if(!r)return null;var h=function(t,e,r){var n=e.errorCorrectionLevels[r],i=[],a=0;if(n.ecBlocks.forEach((function(t){for(var e=0;e<t.numBlocks;e++)i.push({numDataCodewords:t.dataCodewordsPerBlock,codewords:[]}),a+=t.dataCodewordsPerBlock+n.ecCodewordsPerBlock})),t.length<a)return null;t=t.slice(0,a);for(var o=n.ecBlocks[0].dataCodewordsPerBlock,s=0;s<o;s++)for(var u=0,l=i;u<l.length;u++)l[u].codewords.push(t.shift());if(n.ecBlocks.length>1){var c=n.ecBlocks[0].numBlocks,h=n.ecBlocks[1].numBlocks;for(s=0;s<h;s++)i[c+s].codewords.push(t.shift())}for(;t.length>0;)for(var f=0,d=i;f<d.length;f++)d[f].codewords.push(t.shift());return i}(function(t,e,r){for(var i=c[r.dataMask],a=t.height,o=function(t){var e=17+4*t.versionNumber,r=n.BitMatrix.createEmpty(e,e);r.setRegion(0,0,9,9,!0),r.setRegion(e-8,0,8,9,!0),r.setRegion(0,e-8,9,8,!0);for(var i=0,a=t.alignmentPatternCenters;i<a.length;i++)for(var o=a[i],s=0,u=t.alignmentPatternCenters;s<u.length;s++){var l=u[s];6===o&&6===l||6===o&&l===e-7||o===e-7&&6===l||r.setRegion(o-2,l-2,5,5,!0)}return r.setRegion(6,9,1,e-17,!0),r.setRegion(9,6,e-17,1,!0),t.versionNumber>6&&(r.setRegion(e-11,0,3,6,!0),r.setRegion(0,e-11,6,3,!0)),r}(e),s=[],l=0,h=0,f=!0,d=a-1;d>0;d-=2){6===d&&d--;for(var p=0;p<a;p++)for(var m=f?a-1-p:p,g=0;g<2;g++){var b=d-g;if(!o.get(b,m)){h++;var v=t.get(b,m);i({y:m,x:b})&&(v=!v),l=u(v,l),8===h&&(s.push(l),h=0,l=0)}}f=!f}return s}(t,e,r),e,r.errorCorrectionLevel);if(!h)return null;for(var f=h.reduce((function(t,e){return t+e.numDataCodewords}),0),d=new Uint8ClampedArray(f),p=0,m=0,g=h;m<g.length;m++){var b=g[m],v=a.decode(b.codewords,b.codewords.length-b.numDataCodewords);if(!v)return null;for(var y=0;y<b.numDataCodewords;y++)d[p++]=v[y]}try{return i.decode(d,e.versionNumber)}catch(t){return null}}e.decode=function(t){if(null==t)return null;var e=h(t);if(e)return e;for(var r=0;r<t.width;r++)for(var n=r+1;n<t.height;n++)t.get(r,n)!==t.get(n,r)&&(t.set(r,n,!t.get(r,n)),t.set(n,r,!t.get(n,r)));return h(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,a=r(7),o=r(8);function s(t,e){for(var r=[],n="",i=[10,12,14][e],a=t.readBits(i);a>=3;){if((l=t.readBits(10))>=1e3)throw new Error("Invalid numeric value above 999");var o=Math.floor(l/100),s=Math.floor(l/10)%10,u=l%10;r.push(48+o,48+s,48+u),n+=o.toString()+s.toString()+u.toString(),a-=3}if(2===a){if((l=t.readBits(7))>=100)throw new Error("Invalid numeric value above 99");o=Math.floor(l/10),s=l%10,r.push(48+o,48+s),n+=o.toString()+s.toString()}else if(1===a){var l;if((l=t.readBits(4))>=10)throw new Error("Invalid numeric value above 9");r.push(48+l),n+=l.toString()}return{bytes:r,text:n}}!function(t){t.Numeric="numeric",t.Alphanumeric="alphanumeric",t.Byte="byte",t.Kanji="kanji",t.ECI="eci"}(n=e.Mode||(e.Mode={})),function(t){t[t.Terminator=0]="Terminator",t[t.Numeric=1]="Numeric",t[t.Alphanumeric=2]="Alphanumeric",t[t.Byte=4]="Byte",t[t.Kanji=8]="Kanji",t[t.ECI=7]="ECI"}(i||(i={}));var u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function l(t,e){for(var r=[],n="",i=[9,11,13][e],a=t.readBits(i);a>=2;){var o=t.readBits(11),s=Math.floor(o/45),l=o%45;r.push(u[s].charCodeAt(0),u[l].charCodeAt(0)),n+=u[s]+u[l],a-=2}return 1===a&&(s=t.readBits(6),r.push(u[s].charCodeAt(0)),n+=u[s]),{bytes:r,text:n}}function c(t,e){for(var r=[],n="",i=[8,16,16][e],a=t.readBits(i),o=0;o<a;o++){var s=t.readBits(8);r.push(s)}try{n+=decodeURIComponent(r.map((function(t){return"%"+("0"+t.toString(16)).substr(-2)})).join(""))}catch(t){}return{bytes:r,text:n}}function h(t,e){for(var r=[],n="",i=[8,10,12][e],a=t.readBits(i),s=0;s<a;s++){var u=t.readBits(13),l=Math.floor(u/192)<<8|u%192;l+=l<7936?33088:49472,r.push(l>>8,255&l),n+=String.fromCharCode(o.shiftJISTable[l])}return{bytes:r,text:n}}e.decode=function(t,e){for(var r,o,u,f,d=new a.BitStream(t),p=e<=9?0:e<=26?1:2,m={text:"",bytes:[],chunks:[],version:e};d.available()>=4;){var g=d.readBits(4);if(g===i.Terminator)return m;if(g===i.ECI)0===d.readBits(1)?m.chunks.push({type:n.ECI,assignmentNumber:d.readBits(7)}):0===d.readBits(1)?m.chunks.push({type:n.ECI,assignmentNumber:d.readBits(14)}):0===d.readBits(1)?m.chunks.push({type:n.ECI,assignmentNumber:d.readBits(21)}):m.chunks.push({type:n.ECI,assignmentNumber:-1});else if(g===i.Numeric){var b=s(d,p);m.text+=b.text,(r=m.bytes).push.apply(r,b.bytes),m.chunks.push({type:n.Numeric,text:b.text})}else if(g===i.Alphanumeric){var v=l(d,p);m.text+=v.text,(o=m.bytes).push.apply(o,v.bytes),m.chunks.push({type:n.Alphanumeric,text:v.text})}else if(g===i.Byte){var y=c(d,p);m.text+=y.text,(u=m.bytes).push.apply(u,y.bytes),m.chunks.push({type:n.Byte,bytes:y.bytes,text:y.text})}else if(g===i.Kanji){var w=h(d,p);m.text+=w.text,(f=m.bytes).push.apply(f,w.bytes),m.chunks.push({type:n.Kanji,bytes:w.bytes,text:w.text})}}if(0===d.available()||0===d.readBits(d.available()))return m}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.byteOffset=0,this.bitOffset=0,this.bytes=t}return t.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new Error("Cannot read "+t.toString()+" bits");var e=0;if(this.bitOffset>0){var r=8-this.bitOffset,n=t<r?t:r,i=255>>8-n<<(a=r-n);e=(this.bytes[this.byteOffset]&i)>>a,t-=n,this.bitOffset+=n,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(t>0){for(;t>=8;)e=e<<8|255&this.bytes[this.byteOffset],this.byteOffset++,t-=8;var a;t>0&&(i=255>>(a=8-t)<<a,e=e<<t|(this.bytes[this.byteOffset]&i)>>a,this.bitOffset+=t)}return e},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}();e.BitStream=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(2);e.decode=function(t,e){var r=new Uint8ClampedArray(t.length);r.set(t);for(var a=new n.default(285,256,0),o=new i.default(a,r),s=new Uint8ClampedArray(e),u=!1,l=0;l<e;l++){var c=o.evaluateAt(a.exp(l+a.generatorBase));s[s.length-1-l]=c,0!==c&&(u=!0)}if(!u)return r;var h=new i.default(a,s),f=function(t,e,r,n){var i;e.degree()<r.degree()&&(e=(i=[r,e])[0],r=i[1]);for(var a=e,o=r,s=t.zero,u=t.one;o.degree()>=n/2;){var l=a,c=s;if(s=u,(a=o).isZero())return null;o=l;for(var h=t.zero,f=a.getCoefficient(a.degree()),d=t.inverse(f);o.degree()>=a.degree()&&!o.isZero();){var p=o.degree()-a.degree(),m=t.multiply(o.getCoefficient(o.degree()),d);h=h.addOrSubtract(t.buildMonomial(p,m)),o=o.addOrSubtract(a.multiplyByMonomial(p,m))}if(u=h.multiplyPoly(s).addOrSubtract(c),o.degree()>=a.degree())return null}var g=u.getCoefficient(0);if(0===g)return null;var b=t.inverse(g);return[u.multiply(b),o.multiply(b)]}(a,a.buildMonomial(e,1),h,e);if(null===f)return null;var d=function(t,e){var r=e.degree();if(1===r)return[e.getCoefficient(1)];for(var n=new Array(r),i=0,a=1;a<t.size&&i<r;a++)0===e.evaluateAt(a)&&(n[i]=t.inverse(a),i++);return i!==r?null:n}(a,f[0]);if(null==d)return null;for(var p=function(t,e,r){for(var i=r.length,a=new Array(i),o=0;o<i;o++){for(var s=t.inverse(r[o]),u=1,l=0;l<i;l++)o!==l&&(u=t.multiply(u,n.addOrSubtractGF(1,t.multiply(r[l],s))));a[o]=t.multiply(e.evaluateAt(s),t.inverse(u)),0!==t.generatorBase&&(a[o]=t.multiply(a[o],s))}return a}(a,f[1],d),m=0;m<d.length;m++){var g=r.length-1-a.log(d[m]);if(g<0)return null;r[g]=n.addOrSubtractGF(r[g],p[m])}return r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0);function i(t,e,r,n){var i=t.x-e.x+r.x-n.x,a=t.y-e.y+r.y-n.y;if(0===i&&0===a)return{a11:e.x-t.x,a12:e.y-t.y,a13:0,a21:r.x-e.x,a22:r.y-e.y,a23:0,a31:t.x,a32:t.y,a33:1};var o=e.x-r.x,s=n.x-r.x,u=e.y-r.y,l=n.y-r.y,c=o*l-s*u,h=(i*l-s*a)/c,f=(o*a-i*u)/c;return{a11:e.x-t.x+h*e.x,a12:e.y-t.y+h*e.y,a13:h,a21:n.x-t.x+f*n.x,a22:n.y-t.y+f*n.y,a23:f,a31:t.x,a32:t.y,a33:1}}e.extract=function(t,e){for(var r,a,o=function(t,e,r,n){var a=i({x:3.5,y:3.5},e,r,n);return{a11:a.a22*a.a33-a.a23*a.a32,a12:a.a13*a.a32-a.a12*a.a33,a13:a.a12*a.a23-a.a13*a.a22,a21:a.a23*a.a31-a.a21*a.a33,a22:a.a11*a.a33-a.a13*a.a31,a23:a.a13*a.a21-a.a11*a.a23,a31:a.a21*a.a32-a.a22*a.a31,a32:a.a12*a.a31-a.a11*a.a32,a33:a.a11*a.a22-a.a12*a.a21}}(0,{x:e.dimension-3.5,y:3.5},{x:e.dimension-6.5,y:e.dimension-6.5},{x:3.5,y:e.dimension-3.5}),s=(a=o,{a11:(r=i(e.topLeft,e.topRight,e.alignmentPattern,e.bottomLeft)).a11*a.a11+r.a21*a.a12+r.a31*a.a13,a12:r.a12*a.a11+r.a22*a.a12+r.a32*a.a13,a13:r.a13*a.a11+r.a23*a.a12+r.a33*a.a13,a21:r.a11*a.a21+r.a21*a.a22+r.a31*a.a23,a22:r.a12*a.a21+r.a22*a.a22+r.a32*a.a23,a23:r.a13*a.a21+r.a23*a.a22+r.a33*a.a23,a31:r.a11*a.a31+r.a21*a.a32+r.a31*a.a33,a32:r.a12*a.a31+r.a22*a.a32+r.a32*a.a33,a33:r.a13*a.a31+r.a23*a.a32+r.a33*a.a33}),u=n.BitMatrix.createEmpty(e.dimension,e.dimension),l=function(t,e){var r=s.a13*t+s.a23*e+s.a33;return{x:(s.a11*t+s.a21*e+s.a31)/r,y:(s.a12*t+s.a22*e+s.a32)/r}},c=0;c<e.dimension;c++)for(var h=0;h<e.dimension;h++){var f=l(h+.5,c+.5);u.set(h,c,t.get(Math.floor(f.x),Math.floor(f.y)))}return{matrix:u,mappingFunction:l}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))};function i(t){return t.reduce((function(t,e){return t+e}))}function a(t,e,r,i){var a,o,s,u,l=[{x:Math.floor(t.x),y:Math.floor(t.y)}],c=Math.abs(e.y-t.y)>Math.abs(e.x-t.x);c?(a=Math.floor(t.y),o=Math.floor(t.x),s=Math.floor(e.y),u=Math.floor(e.x)):(a=Math.floor(t.x),o=Math.floor(t.y),s=Math.floor(e.x),u=Math.floor(e.y));for(var h=Math.abs(s-a),f=Math.abs(u-o),d=Math.floor(-h/2),p=a<s?1:-1,m=o<u?1:-1,g=!0,b=a,v=o;b!==s+p;b+=p){var y=c?v:b,w=c?b:v;if(r.get(y,w)!==g&&(g=!g,l.push({x:y,y:w}),l.length===i+1))break;if((d+=f)>0){if(v===u)break;v+=m,d-=h}}for(var _=[],k=0;k<i;k++)l[k]&&l[k+1]?_.push(n(l[k],l[k+1])):_.push(0);return _}function o(t,e,r,n){var i,o=e.y-t.y,s=e.x-t.x,u=a(t,e,r,Math.ceil(n/2)),l=a(t,{x:t.x-s,y:t.y-o},r,Math.ceil(n/2)),c=u.shift()+l.shift()-1;return(i=l.concat(c)).concat.apply(i,u)}function s(t,e){var r=i(t)/i(e),n=0;return e.forEach((function(e,i){n+=Math.pow(t[i]-e*r,2)})),{averageSize:r,error:n}}function u(t,e,r){try{var n=o(t,{x:-1,y:t.y},r,e.length),i=o(t,{x:t.x,y:-1},r,e.length),a=o(t,{x:Math.max(0,t.x-t.y)-1,y:Math.max(0,t.y-t.x)-1},r,e.length),u=o(t,{x:Math.min(r.width,t.x+t.y)+1,y:Math.min(r.height,t.y+t.x)+1},r,e.length),l=s(n,e),c=s(i,e),h=s(a,e),f=s(u,e),d=Math.sqrt(l.error*l.error+c.error*c.error+h.error*h.error+f.error*f.error),p=(l.averageSize+c.averageSize+h.averageSize+f.averageSize)/4;return d+(Math.pow(l.averageSize-p,2)+Math.pow(c.averageSize-p,2)+Math.pow(h.averageSize-p,2)+Math.pow(f.averageSize-p,2))/p}catch(t){return 1/0}}function l(t,e){for(var r=Math.round(e.x);t.get(r,Math.round(e.y));)r--;for(var n=Math.round(e.x);t.get(n,Math.round(e.y));)n++;for(var i=(r+n)/2,a=Math.round(e.y);t.get(Math.round(i),a);)a--;for(var o=Math.round(e.y);t.get(Math.round(i),o);)o++;return{x:i,y:(a+o)/2}}function c(t,e,r,a,s){var l,c,h;try{l=function(t,e,r,a){var s=(i(o(t,r,a,5))/7+i(o(t,e,a,5))/7+i(o(r,t,a,5))/7+i(o(e,t,a,5))/7)/4;if(s<1)throw new Error("Invalid module size");var u=Math.round(n(t,e)/s),l=Math.round(n(t,r)/s),c=Math.floor((u+l)/2)+7;switch(c%4){case 0:c++;break;case 2:c--}return{dimension:c,moduleSize:s}}(a,r,s,t),c=l.dimension,h=l.moduleSize}catch(t){return null}var f=r.x-a.x+s.x,d=r.y-a.y+s.y,p=(n(a,s)+n(a,r))/2/h,m=1-3/p,g={x:a.x+m*(f-a.x),y:a.y+m*(d-a.y)},b=e.map((function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,a=(e.top.y+e.bottom.y+1)/2;if(t.get(Math.floor(r),Math.floor(a)))return i([e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1]),{x:r,y:a,score:u({x:Math.floor(r),y:Math.floor(a)},[1,1,1],t)+n({x:r,y:a},g)}})).filter((function(t){return!!t})).sort((function(t,e){return t.score-e.score}));return{alignmentPattern:p>=15&&b.length?b[0]:g,dimension:c}}e.locate=function(t){for(var e=[],r=[],a=[],o=[],s=function(n){for(var s=0,u=!1,l=[0,0,0,0,0],c=function(e){var a=t.get(e,n);if(a===u)s++;else{l=[l[1],l[2],l[3],l[4],s],s=1,u=a;var c=i(l)/7,h=Math.abs(l[0]-c)<c&&Math.abs(l[1]-c)<c&&Math.abs(l[2]-3*c)<3*c&&Math.abs(l[3]-c)<c&&Math.abs(l[4]-c)<c&&!a,f=i(l.slice(-3))/3,d=Math.abs(l[2]-f)<f&&Math.abs(l[3]-f)<f&&Math.abs(l[4]-f)<f&&a;if(h){var p=e-l[3]-l[4],m=p-l[2],g={startX:m,endX:p,y:n};(b=r.filter((function(t){return m>=t.bottom.startX&&m<=t.bottom.endX||p>=t.bottom.startX&&m<=t.bottom.endX||m<=t.bottom.startX&&p>=t.bottom.endX&&l[2]/(t.bottom.endX-t.bottom.startX)<1.5&&l[2]/(t.bottom.endX-t.bottom.startX)>.5}))).length>0?b[0].bottom=g:r.push({top:g,bottom:g})}if(d){var b,v=e-l[4],y=v-l[3];g={startX:y,y:n,endX:v},(b=o.filter((function(t){return y>=t.bottom.startX&&y<=t.bottom.endX||v>=t.bottom.startX&&y<=t.bottom.endX||y<=t.bottom.startX&&v>=t.bottom.endX&&l[2]/(t.bottom.endX-t.bottom.startX)<1.5&&l[2]/(t.bottom.endX-t.bottom.startX)>.5}))).length>0?b[0].bottom=g:o.push({top:g,bottom:g})}}},h=-1;h<=t.width;h++)c(h);e.push.apply(e,r.filter((function(t){return t.bottom.y!==n&&t.bottom.y-t.top.y>=2}))),r=r.filter((function(t){return t.bottom.y===n})),a.push.apply(a,o.filter((function(t){return t.bottom.y!==n}))),o=o.filter((function(t){return t.bottom.y===n}))},h=0;h<=t.height;h++)s(h);e.push.apply(e,r.filter((function(t){return t.bottom.y-t.top.y>=2}))),a.push.apply(a,o);var f=e.filter((function(t){return t.bottom.y-t.top.y>=2})).map((function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,n=(e.top.y+e.bottom.y+1)/2;if(t.get(Math.round(r),Math.round(n))){var a=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1],o=i(a)/a.length;return{score:u({x:Math.round(r),y:Math.round(n)},[1,1,3,1,1],t),x:r,y:n,size:o}}})).filter((function(t){return!!t})).sort((function(t,e){return t.score-e.score})).map((function(t,e,r){if(e>4)return null;var n=r.filter((function(t,r){return e!==r})).map((function(e){return{x:e.x,y:e.y,score:e.score+Math.pow(e.size-t.size,2)/t.size,size:e.size}})).sort((function(t,e){return t.score-e.score}));if(n.length<2)return null;var i=t.score+n[0].score+n[1].score;return{points:[t].concat(n.slice(0,2)),score:i}})).filter((function(t){return!!t})).sort((function(t,e){return t.score-e.score}));if(0===f.length)return null;var d=function(t,e,r){var i,a,o,s,u,l,c,h=n(t,e),f=n(e,r),d=n(t,r);return f>=h&&f>=d?(u=(i=[e,t,r])[0],l=i[1],c=i[2]):d>=f&&d>=h?(u=(a=[t,e,r])[0],l=a[1],c=a[2]):(u=(o=[t,r,e])[0],l=o[1],c=o[2]),(c.x-l.x)*(u.y-l.y)-(c.y-l.y)*(u.x-l.x)<0&&(u=(s=[c,u])[0],c=s[1]),{bottomLeft:u,topLeft:l,topRight:c}}(f[0].points[0],f[0].points[1],f[0].points[2]),p=d.topRight,m=d.topLeft,g=d.bottomLeft,b=c(t,a,p,m,g),v=[];b&&v.push({alignmentPattern:{x:b.alignmentPattern.x,y:b.alignmentPattern.y},bottomLeft:{x:g.x,y:g.y},dimension:b.dimension,topLeft:{x:m.x,y:m.y},topRight:{x:p.x,y:p.y}});var y=l(t,p),w=l(t,m),_=l(t,g),k=c(t,a,y,w,_);return k&&v.push({alignmentPattern:{x:k.alignmentPattern.x,y:k.alignmentPattern.y},bottomLeft:{x:_.x,y:_.y},topLeft:{x:w.x,y:w.y},topRight:{x:y.x,y:y.y},dimension:k.dimension}),0===v.length?null:v}}]).default},t.exports=e()},66131:(t,e,r)=>{var n=r(33296).Buffer,i=r(40380),a=function(){},o=r(67456),s=r(91272),u=r(26836),l=r(87144),c=r(99707),h=self.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest;t.exports=function(t,e){e="function"==typeof e?e:a,"string"==typeof t?t={uri:t}:t||(t={}),t.binary&&(t=function(t){if(h)return c(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"),c({xhr:e},t)}(t)),i(t,(function(r,i,c){if(r)return e(r);if(!/^2/.test(i.statusCode))return e(new Error("http status code: "+i.statusCode));if(!c)return e(new Error("no body result"));var h,f,d=!1;if(h=c,"[object ArrayBuffer]"===Object.prototype.toString.call(h)){var p=new Uint8Array(c);c=n.from(p,"binary")}l(c)&&(d=!0,"string"==typeof c&&(c=n.from(c,"binary"))),d||(n.isBuffer(c)&&(c=c.toString(t.encoding)),c=c.trim());try{var m=i.headers["content-type"];f=d?u(c):/json/.test(m)||"{"===c.charAt(0)?JSON.parse(c):/xml/.test(m)||"<"===c.charAt(0)?s(c):o(c)}catch(t){e(new Error("error parsing font "+t.message)),e=a}e(null,f)}))}},87144:(t,e,r)=>{var n=r(33296).Buffer,i=r(86388),a=n.from([66,77,70,3]);t.exports=function(t){return"string"==typeof t?"BMF"===t.substring(0,3):t.length>4&&i(t.slice(0,4),a)}},56220:function(t,e,r){var n,i;!function(a,o){"use strict";n=function(){var t=function(){},e="undefined",r=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},a=null;function o(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),i=0;i<n.length;i++){var a=n[i];this[a]=i<r?t:this.methodFactory(a,r,this.name)}if(this.log=this.debug,typeof console===e&&r<this.levels.SILENT)return"No console available for logging"}function l(t){return function(){typeof console!==e&&(u.call(this),this[t].apply(this,arguments))}}function c(n,i,a){return function(n){return"debug"===n&&(n="log"),typeof console!==e&&("trace"===n&&r?s:void 0!==console[n]?o(console,n):void 0!==console.log?o(console,"log"):t)}(n)||l.apply(this,arguments)}function h(t,r){var o,s,l,h=this,f="loglevel";function d(){var t;if(typeof window!==e&&f){try{t=window.localStorage[f]}catch(t){}if(typeof t===e)try{var r=window.document.cookie,n=encodeURIComponent(f),i=r.indexOf(n+"=");-1!==i&&(t=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(t){}return void 0===h.levels[t]&&(t=void 0),t}}function p(t){var e=t;if("string"==typeof e&&void 0!==h.levels[e.toUpperCase()]&&(e=h.levels[e.toUpperCase()]),"number"==typeof e&&e>=0&&e<=h.levels.SILENT)return e;throw new TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?f+=":"+t:"symbol"==typeof t&&(f=void 0),h.name=t,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=r||c,h.getLevel=function(){return null!=l?l:null!=s?s:o},h.setLevel=function(t,r){return l=p(t),!1!==r&&function(t){var r=(n[t]||"silent").toUpperCase();if(typeof window!==e&&f){try{return void(window.localStorage[f]=r)}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"="+r+";"}catch(t){}}}(l),u.call(h)},h.setDefaultLevel=function(t){s=p(t),d()||h.setLevel(t,!1)},h.resetLevel=function(){l=null,function(){if(typeof window!==e&&f){try{window.localStorage.removeItem(f)}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}}(),u.call(h)},h.enableAll=function(t){h.setLevel(h.levels.TRACE,t)},h.disableAll=function(t){h.setLevel(h.levels.SILENT,t)},h.rebuild=function(){if(a!==h&&(o=p(a.getLevel())),u.call(h),a===h)for(var t in i)i[t].rebuild()},o=p(a?a.getLevel():"WARN");var m=d();null!=m&&(l=p(m)),u.call(h)}(a=new h).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=i[t];return e||(e=i[t]=new h(t,a.methodFactory)),e};var f=typeof window!==e?window.log:void 0;return a.noConflict=function(){return typeof window!==e&&window.log===a&&(window.log=f),a},a.getLoggers=function(){return i},a.default=a,a},void 0===(i=n.call(e,r,e,t))||(t.exports=i)}()},9624:(t,e,r)=>{var n=r(38832),i=r(8464),a=parseInt("0777",8);function o(t,e,r,s){"function"==typeof e?(r=e,e={}):e&&"object"==typeof e||(e={mode:e});var u=e.mode,l=e.fs||i;void 0===u&&(u=a),s||(s=null);var c=r||function(){};t=n.resolve(t),l.mkdir(t,u,(function(r){if(!r)return c(null,s=s||t);if("ENOENT"===r.code){if(n.dirname(t)===t)return c(r);o(n.dirname(t),e,(function(r,n){r?c(r,n):o(t,e,c,n)}))}else l.stat(t,(function(t,e){t||!e.isDirectory()?c(r,s):c(null,s)}))}))}t.exports=o.mkdirp=o.mkdirP=o,o.sync=function t(e,r,o){r&&"object"==typeof r||(r={mode:r});var s=r.mode,u=r.fs||i;void 0===s&&(s=a),o||(o=null),e=n.resolve(e);try{u.mkdirSync(e,s),o=o||e}catch(i){if("ENOENT"===i.code)o=t(n.dirname(e),r,o),t(e,r,o);else{var l;try{l=u.statSync(e)}catch(t){throw i}if(!l.isDirectory())throw i}}return o}},98451:(t,e)=>{"use strict";function r(t,e,r,n){for(var i=t[e++],a=1<<i,o=a+1,s=o+1,u=i+1,l=(1<<u)-1,c=0,h=0,f=0,d=t[e++],p=new Int32Array(4096),m=null;;){for(;c<16&&0!==d;)h|=t[e++]<<c,c+=8,1===d?d=t[e++]:--d;if(c<u)break;var g=h&l;if(h>>=u,c-=u,g!==a){if(g===o)break;for(var b=g<s?g:m,v=0,y=b;y>a;)y=p[y]>>8,++v;var w=y;if(f+v+(b!==g?1:0)>n)return void console.log("Warning, gif stream longer than expected.");r[f++]=w;var _=f+=v;for(b!==g&&(r[f++]=w),y=b;v--;)y=p[y],r[--_]=255&y,y>>=8;null!==m&&s<4096&&(p[s++]=m<<8|w,s>=l+1&&u<12&&(++u,l=l<<1|1)),m=g}else s=o+1,l=(1<<(u=i+1))-1,m=null}return f!==n&&console.log("Warning, gif stream shorter than expected."),r}try{e.GifWriter=function(t,e,r,n){var i=0,a=void 0===(n=void 0===n?{}:n).loop?null:n.loop,o=void 0===n.palette?null:n.palette;if(e<=0||r<=0||e>65535||r>65535)throw new Error("Width/Height invalid.");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,l=0;if(null!==o){for(var c=s(o);c>>=1;)++u;if(c=1<<u,--u,void 0!==n.background){if((l=n.background)>=c)throw new Error("Background index out of range.");if(0===l)throw new Error("Background index explicitly passed as 0.")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=(null!==o?128:0)|u,t[i++]=l,t[i++]=0,null!==o)for(var h=0,f=o.length;h<f;++h){var d=o[h];t[i++]=d>>16&255,t[i++]=d>>8&255,t[i++]=255&d}if(null!==a){if(a<0||a>65535)throw new Error("Loop count invalid.");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=0}var p=!1;this.addFrame=function(e,r,n,a,u,l){if(!0===p&&(--i,p=!1),l=void 0===l?{}:l,e<0||r<0||e>65535||r>65535)throw new Error("x/y invalid.");if(n<=0||a<=0||n>65535||a>65535)throw new Error("Width/Height invalid.");if(u.length<n*a)throw new Error("Not enough pixels for the frame size.");var c=!0,h=l.palette;if(null==h&&(c=!1,h=o),null==h)throw new Error("Must supply either a local or global palette.");for(var f=s(h),d=0;f>>=1;)++d;f=1<<d;var m=void 0===l.delay?0:l.delay,g=void 0===l.disposal?0:l.disposal;if(g<0||g>3)throw new Error("Disposal out of range.");var b=!1,v=0;if(void 0!==l.transparent&&null!==l.transparent&&(b=!0,(v=l.transparent)<0||v>=f))throw new Error("Transparent color index.");if((0!==g||b||0!==m)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=g<<2|(!0===b?1:0),t[i++]=255&m,t[i++]=m>>8&255,t[i++]=v,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=!0===c?128|d-1:0,!0===c)for(var y=0,w=h.length;y<w;++y){var _=h[y];t[i++]=_>>16&255,t[i++]=_>>8&255,t[i++]=255&_}return i=function(t,e,r,n){t[e++]=r;var i=e++,a=1<<r,o=a-1,s=a+1,u=s+1,l=r+1,c=0,h=0;function f(r){for(;c>=r;)t[e++]=255&h,h>>=8,c-=8,e===i+256&&(t[i]=255,i=e++)}function d(t){h|=t<<c,c+=l,f(8)}var p=n[0]&o,m={};d(a);for(var g=1,b=n.length;g<b;++g){var v=n[g]&o,y=p<<8|v,w=m[y];if(void 0===w){for(h|=p<<c,c+=l;c>=8;)t[e++]=255&h,h>>=8,c-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(d(a),u=s+1,l=r+1,m={}):(u>=1<<l&&++l,m[y]=u++),p=v}else p=w}return d(p),d(s),f(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,d<2?2:d,u),i},this.end=function(){return!1===p&&(t[i++]=59,p=!0),i},this.getOutputBuffer=function(){return t},this.setOutputBuffer=function(e){t=e},this.getOutputBufferPosition=function(){return i},this.setOutputBufferPosition=function(t){i=t}},e.GifReader=function(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,a=t[e++],o=a>>7,s=1<<1+(7&a);t[e++],t[e++];var u=null,l=null;o&&(u=e,l=s,e+=3*s);var c=!0,h=[],f=0,d=null,p=0,m=null;for(this.width=n,this.height=i;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,m=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(0===I)break;e+=I}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];f=t[e++]|t[e++]<<8,d=t[e++],0==(1&g)&&(d=null),p=g>>2&7,e++;break;case 254:for(;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(0===I)break;e+=I}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var b=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,_=t[e++],k=_>>6&1,B=1<<1+(7&_),x=u,E=l,C=!1;_>>7&&(C=!0,x=e,E=B,e+=3*B);var A=e;for(e++;;){var I;if(!((I=t[e++])>=0))throw Error("Invalid block size");if(0===I)break;e+=I}h.push({x:b,y:v,width:y,height:w,has_local_palette:C,palette_offset:x,palette_size:E,data_offset:A,data_length:e-A,transparent_index:d,interlaced:!!k,delay:f,disposal:p});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return m},this.frameInfo=function(t){if(t<0||t>=h.length)throw new Error("Frame index out of range.");return h[t]},this.decodeAndBlitFrameBGRA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);r(t,a.data_offset,s,o);var u=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,h=n-c,f=c,d=4*(a.y*n+a.x),p=4*((a.y+a.height)*n+a.x),m=d,g=4*h;!0===a.interlaced&&(g+=4*n*7);for(var b=8,v=0,y=s.length;v<y;++v){var w=s[v];if(0===f&&(f=c,(m+=g)>=p&&(g=4*h+4*n*(b-1),m=d+(c+h)*(b<<1),b>>=1)),w===l)m+=4;else{var _=t[u+3*w],k=t[u+3*w+1],B=t[u+3*w+2];i[m++]=B,i[m++]=k,i[m++]=_,i[m++]=255}--f}},this.decodeAndBlitFrameRGBA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);r(t,a.data_offset,s,o);var u=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,h=n-c,f=c,d=4*(a.y*n+a.x),p=4*((a.y+a.height)*n+a.x),m=d,g=4*h;!0===a.interlaced&&(g+=4*n*7);for(var b=8,v=0,y=s.length;v<y;++v){var w=s[v];if(0===f&&(f=c,(m+=g)>=p&&(g=4*h+4*n*(b-1),m=d+(c+h)*(b<<1),b>>=1)),w===l)m+=4;else{var _=t[u+3*w],k=t[u+3*w+1],B=t[u+3*w+2];i[m++]=_,i[m++]=k,i[m++]=B,i[m++]=255}--f}}}}catch(t){}},63548:(t,e,r)=>{"use strict";var n={};(0,r(10012).assign)(n,r(33400),r(17888),r(20944)),t.exports=n},33400:(t,e,r)=>{"use strict";var n=r(89379),i=r(10012),a=r(53352),o=r(29451),s=r(16092),u=Object.prototype.toString,l=0,c=-1,h=0,f=8;function d(t){if(!(this instanceof d))return new d(t);this.options=i.assign({level:c,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==l)throw new Error(o[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?a.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==l)throw new Error(o[r]);this._dict_set=!0}}function p(t,e){var r=new d(e);if(r.push(t,!0),r.err)throw r.msg||o[r.err];return r.result}d.prototype.push=function(t,e){var r,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=a.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,o))&&r!==l)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==o||(this.onEnd(l),s.avail_out=0,!0)},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=d,e.deflate=p,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},17888:(t,e,r)=>{"use strict";var n=r(37040),i=r(10012),a=r(53352),o=r(20944),s=r(29451),u=r(16092),l=r(71112),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);if(this.header=new l,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=a.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==o.Z_OK))throw new Error(s[r])}function f(t,e){var r=new h(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}h.prototype.push=function(t,e){var r,s,u,l,h,f=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?f.input=a.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(d),f.next_out=0,f.avail_out=d),(r=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&r!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(u=a.utf8border(f.output,f.next_out),l=f.next_out-u,h=a.buf2string(f.output,u),f.next_out=l,f.avail_out=d-l,l&&i.arraySet(f.output,f.output,u,l,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((f.avail_in>0||0===f.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=h,e.inflate=f,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.ungzip=f},10012:(t,e)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(t[i]=r[i])}}return t},e.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(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=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)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(r)},53352:(t,e,r)=>{"use strict";var n=r(10012),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 o=new n.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&a||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",o=0;o<e;o++)r+=String.fromCharCode(t[o]);return r}o[254]=o[254]=1,e.string2buf=function(t){var e,r,i,a,o,s=t.length,u=0;for(a=0;a<s;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),u+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(u),o=0,a=0;o<u;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,a,s=e||t.length,l=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)l[n++]=i;else if((a=o[i])>4)l[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&r<s;)i=i<<6|63&t[r++],a--;a>1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return u(l,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+o[t[r]]>e?r:e}},52696:t=>{"use strict";t.exports=function(t,e,r,n){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},20944:t=>{"use strict";t.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}},69456:t=>{"use strict";var e=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}();t.exports=function(t,r,n,i){var a=e,o=i+n;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^r[s])];return-1^t}},89379:(t,e,r)=>{"use strict";var n,i=r(10012),a=r(32976),o=r(52696),s=r(69456),u=r(29451),l=0,c=0,h=-2,f=2,d=8,p=286,m=30,g=19,b=2*p+1,v=15,y=3,w=258,_=w+y+1,k=42,B=103,x=113,E=666;function C(t,e){return t.msg=u[e],e}function A(t){return(t<<1)-(t>4?9:0)}function I(t){for(var e=t.length;--e>=0;)t[e]=0}function M(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.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 P(t,e){a._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,M(t.strm)}function S(t,e){t.pending_buf[t.pending++]=e}function T(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function R(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-_?t.strstart-(t.w_size-_):0,l=t.window,c=t.w_mask,h=t.prev,f=t.strstart+w,d=l[a+o-1],p=l[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(r=e)+o]===p&&l[r+o-1]===d&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<f);if(n=w-(f-a),a=f-w,n>o){if(t.match_start=e,o=n,n>=s)break;d=l[a+o-1],p=l[a+o]}}}while((e=h[e&c])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function L(t){var e,r,n,a,u,l,c,h,f,d,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-_)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=p?n-p:0}while(--r);e=r=p;do{n=t.prev[--e],t.prev[e]=n>=p?n-p:0}while(--r);a+=p}if(0===t.strm.avail_in)break;if(l=t.strm,c=t.window,h=t.strstart+t.lookahead,f=a,d=void 0,(d=l.avail_in)>f&&(d=f),r=0===d?0:(l.avail_in-=d,i.arraySet(c,l.input,l.next_in,d,h),1===l.state.wrap?l.adler=o(l.adler,c,d,h):2===l.state.wrap&&(l.adler=s(l.adler,c,d,h)),l.next_in+=d,l.total_in+=d,d),t.lookahead+=r,t.lookahead+t.insert>=y)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+y-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<y)););}while(t.lookahead<_&&0!==t.strm.avail_in)}function O(t,e){for(var r,n;;){if(t.lookahead<_){if(L(t),t.lookahead<_&&e===l)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=y&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+y-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-_&&(t.match_length=R(t,r)),t.match_length>=y)if(n=a._tr_tally(t,t.strstart-t.match_start,t.match_length-y),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=y){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+y-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(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=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<y-1?t.strstart:y-1,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}function F(t,e){for(var r,n,i;;){if(t.lookahead<_){if(L(t),t.lookahead<_&&e===l)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=y&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+y-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=y-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-_&&(t.match_length=R(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===y&&t.strstart-t.match_start>4096)&&(t.match_length=y-1)),t.prev_length>=y&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-y,n=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-y),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+y-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=y-1,t.strstart++,n&&(P(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=a._tr_tally(t,0,t.window[t.strstart-1]))&&P(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<y-1?t.strstart:y-1,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}function N(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 U(){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=d,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 i.Buf16(2*b),this.dyn_dtree=new i.Buf16(2*(2*m+1)),this.bl_tree=new i.Buf16(2*(2*g+1)),I(this.dyn_ltree),I(this.dyn_dtree),I(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(v+1),this.heap=new i.Buf16(2*p+1),I(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*p+1),I(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 D(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=f,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?k:x,t.adler=2===e.wrap?0:1,e.last_flush=l,a._tr_init(e),c):C(t,h)}function z(t){var e,r=D(t);return r===c&&((e=t.state).window_size=2*e.w_size,I(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=y-1,e.match_available=0,e.ins_h=0),r}function G(t,e,r,n,a,o){if(!t)return h;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),a<1||a>9||r!==d||n<8||n>15||e<0||e>9||o<0||o>4)return C(t,h);8===n&&(n=9);var u=new U;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=a+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+y-1)/y),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<a+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=o,u.method=r,z(t)}n=[new N(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(L(t),0===t.lookahead&&e===l)return 1;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,P(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-_&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(P(t,!1),t.strm.avail_out),1)})),new N(4,4,8,4,O),new N(4,5,16,8,O),new N(4,6,32,32,O),new N(4,4,16,16,F),new N(8,16,32,32,F),new N(8,16,128,128,F),new N(8,32,128,256,F),new N(32,128,258,1024,F),new N(32,258,258,4096,F)],e.deflateInit=function(t,e){return G(t,e,d,15,8,0)},e.deflateInit2=G,e.deflateReset=z,e.deflateResetKeep=D,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,c):h},e.deflate=function(t,e){var r,i,o,u;if(!t||!t.state||e>5||e<0)return t?C(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===E&&4!==e)return C(t,0===t.avail_out?-5:h);if(i.strm=t,r=i.last_flush,i.last_flush=e,i.status===k)if(2===i.wrap)t.adler=0,S(i,31),S(i,139),S(i,8),i.gzhead?(S(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),S(i,255&i.gzhead.time),S(i,i.gzhead.time>>8&255),S(i,i.gzhead.time>>16&255),S(i,i.gzhead.time>>24&255),S(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),S(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(S(i,255&i.gzhead.extra.length),S(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(S(i,0),S(i,0),S(i,0),S(i,0),S(i,0),S(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),S(i,3),i.status=x);else{var f=d+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=x,T(i,f),0!==i.strstart&&(T(i,t.adler>>>16),T(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),M(t),o=i.pending,i.pending!==i.pending_buf_size));)S(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),M(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,S(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),M(t),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,S(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=B)}else i.status=B;if(i.status===B&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&M(t),i.pending+2<=i.pending_buf_size&&(S(i,255&t.adler),S(i,t.adler>>8&255),t.adler=0,i.status=x)):i.status=x),0!==i.pending){if(M(t),0===t.avail_out)return i.last_flush=-1,c}else if(0===t.avail_in&&A(e)<=A(r)&&4!==e)return C(t,-5);if(i.status===E&&0!==t.avail_in)return C(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==l&&i.status!==E){var p=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(L(t),0===t.lookahead)){if(e===l)return 1;break}if(t.match_length=0,r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,o,s=t.window;;){if(t.lookahead<=w){if(L(t),t.lookahead<=w&&e===l)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=y&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=t.strstart+w;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);t.match_length=w-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=y?(r=a._tr_tally(t,1,t.match_length-y),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(P(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(P(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(P(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==p&&4!==p||(i.status=E),1===p||3===p)return 0===t.avail_out&&(i.last_flush=-1),c;if(2===p&&(1===e?a._tr_align(i):5!==e&&(a._tr_stored_block(i,0,0,!1),3===e&&(I(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),M(t),0===t.avail_out))return i.last_flush=-1,c}return 4!==e?c:i.wrap<=0?1:(2===i.wrap?(S(i,255&t.adler),S(i,t.adler>>8&255),S(i,t.adler>>16&255),S(i,t.adler>>24&255),S(i,255&t.total_in),S(i,t.total_in>>8&255),S(i,t.total_in>>16&255),S(i,t.total_in>>24&255)):(T(i,t.adler>>>16),T(i,65535&t.adler)),M(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?c:1)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==k&&69!==e&&73!==e&&91!==e&&e!==B&&e!==x&&e!==E?C(t,h):(t.state=null,e===x?C(t,-3):c):h},e.deflateSetDictionary=function(t,e){var r,n,a,s,u,l,f,d,p=e.length;if(!t||!t.state)return h;if(2===(s=(r=t.state).wrap)||1===s&&r.status!==k||r.lookahead)return h;for(1===s&&(t.adler=o(t.adler,e,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(I(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new i.Buf8(r.w_size),i.arraySet(d,e,p-r.w_size,r.w_size,0),e=d,p=r.w_size),u=t.avail_in,l=t.next_in,f=t.input,t.avail_in=p,t.next_in=0,t.input=e,L(r);r.lookahead>=y;){n=r.strstart,a=r.lookahead-(y-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+y-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=y-1,L(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=y-1,r.match_available=0,t.next_in=l,t.input=f,t.avail_in=u,r.wrap=s,c},e.deflateInfo="pako deflate (from Nodeca project)"},71112:t=>{"use strict";t.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}},14180:t=>{"use strict";t.exports=function(t,e){var r,n,i,a,o,s,u,l,c,h,f,d,p,m,g,b,v,y,w,_,k,B,x,E,C;r=t.state,n=t.next_in,E=t.input,i=n+(t.avail_in-5),a=t.next_out,C=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,l=r.wsize,c=r.whave,h=r.wnext,f=r.window,d=r.hold,p=r.bits,m=r.lencode,g=r.distcode,b=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),y=m[d&b];e:for(;;){if(d>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))C[a++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(d&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=65535&y,(w&=15)&&(p<w&&(d+=E[n++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),y=g[d&v];r:for(;;){if(d>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=g[(65535&y)+(d&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&y,p<(w&=15)&&(d+=E[n++]<<p,(p+=8)<w&&(d+=E[n++]<<p,p+=8)),(k+=d&(1<<w)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=w,p-=w,k>(w=a-o)){if((w=k-w)>c&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(B=0,x=f,0===h){if(B+=l-w,w<_){_-=w;do{C[a++]=f[B++]}while(--w);B=a-k,x=C}}else if(h<w){if(B+=l+h-w,(w-=h)<_){_-=w;do{C[a++]=f[B++]}while(--w);if(B=0,h<_){_-=w=h;do{C[a++]=f[B++]}while(--w);B=a-k,x=C}}}else if(B+=h-w,w<_){_-=w;do{C[a++]=f[B++]}while(--w);B=a-k,x=C}for(;_>2;)C[a++]=x[B++],C[a++]=x[B++],C[a++]=x[B++],_-=3;_&&(C[a++]=x[B++],_>1&&(C[a++]=x[B++]))}else{B=a-k;do{C[a++]=C[B++],C[a++]=C[B++],C[a++]=C[B++],_-=3}while(_>2);_&&(C[a++]=C[B++],_>1&&(C[a++]=C[B++]))}break}}break}}while(n<i&&a<s);n-=_=p>>3,d&=(1<<(p-=_<<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}},37040:(t,e,r)=>{"use strict";var n=r(10012),i=r(52696),a=r(69456),o=r(14180),s=r(46120),u=0,l=-2,c=1,h=12,f=30,d=852,p=592;function m(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(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=c,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(d),e.distcode=e.distdyn=new n.Buf32(p),e.sane=1,e.back=-1,u):l}function v(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,b(t)):l}function y(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||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,v(t))):l}function w(t,e){var r,n;return t?(n=new g,t.state=n,n.window=null,(r=y(t,e))!==u&&(t.state=null),r):l}var _,k,B=!0;function x(t){if(B){var e;for(_=new n.Buf32(512),k=new n.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(s(1,t.lens,0,288,_,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,k,0,t.work,{bits:5}),B=!1}t.lencode=_,t.lenbits=9,t.distcode=k,t.distbits=5}function E(t,e,r,i){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),n.arraySet(o.window,e,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,e,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}e.inflateReset=v,e.inflateReset2=y,e.inflateResetKeep=b,e.inflateInit=function(t){return w(t,15)},e.inflateInit2=w,e.inflate=function(t,e){var r,d,p,g,b,v,y,w,_,k,B,C,A,I,M,P,S,T,R,L,O,F,N,U,D=0,z=new n.Buf8(4),G=[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 l;(r=t.state).mode===h&&(r.mode=13),b=t.next_out,p=t.output,y=t.avail_out,g=t.next_in,d=t.input,v=t.avail_in,w=r.hold,_=r.bits,k=v,B=y,F=u;t:for(;;)switch(r.mode){case c:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if(2&r.wrap&&35615===w){r.check=0,z[0]=255&w,z[1]=w>>>8&255,r.check=a(r.check,z,2,0),w=0,_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){t.msg="incorrect header check",r.mode=f;break}if(8!=(15&w)){t.msg="unknown compression method",r.mode=f;break}if(_-=4,O=8+(15&(w>>>=4)),0===r.wbits)r.wbits=O;else if(O>r.wbits){t.msg="invalid window size",r.mode=f;break}r.dmax=1<<O,t.adler=r.check=1,r.mode=512&w?10:h,w=0,_=0;break;case 2:for(;_<16;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=f;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=f;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(z[0]=255&w,z[1]=w>>>8&255,r.check=a(r.check,z,2,0)),w=0,_=0,r.mode=3;case 3:for(;_<32;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(z[0]=255&w,z[1]=w>>>8&255,z[2]=w>>>16&255,z[3]=w>>>24&255,r.check=a(r.check,z,4,0)),w=0,_=0,r.mode=4;case 4:for(;_<16;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(z[0]=255&w,z[1]=w>>>8&255,r.check=a(r.check,z,2,0)),w=0,_=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(z[0]=255&w,z[1]=w>>>8&255,r.check=a(r.check,z,2,0)),w=0,_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((C=r.length)>v&&(C=v),C&&(r.head&&(O=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,d,g,C,O)),512&r.flags&&(r.check=a(r.check,d,C,g)),v-=C,g+=C,r.length-=C),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===v)break t;C=0;do{O=d[g+C++],r.head&&O&&r.length<65536&&(r.head.name+=String.fromCharCode(O))}while(O&&C<v);if(512&r.flags&&(r.check=a(r.check,d,C,g)),v-=C,g+=C,O)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===v)break t;C=0;do{O=d[g+C++],r.head&&O&&r.length<65536&&(r.head.comment+=String.fromCharCode(O))}while(O&&C<v);if(512&r.flags&&(r.check=a(r.check,d,C,g)),v-=C,g+=C,O)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if(w!==(65535&r.check)){t.msg="header crc mismatch",r.mode=f;break}w=0,_=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=h;break;case 10:for(;_<32;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}t.adler=r.check=m(w),w=0,_=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=b,t.avail_out=y,t.next_in=g,t.avail_in=v,r.hold=w,r.bits=_,2;t.adler=r.check=1,r.mode=h;case h:if(5===e||6===e)break t;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(x(r),r.mode=20,6===e){w>>>=2,_-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=f}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){t.msg="invalid stored block lengths",r.mode=f;break}if(r.length=65535&w,w=0,_=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(C=r.length){if(C>v&&(C=v),C>y&&(C=y),0===C)break t;n.arraySet(p,d,g,C,b),v-=C,g+=C,y-=C,b+=C,r.length-=C;break}r.mode=h;break;case 17:for(;_<14;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=f;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}r.lens[G[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[G[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},F=s(0,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,F){t.msg="invalid code lengths set",r.mode=f;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;P=(D=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,S=65535&D,!((M=D>>>24)<=_);){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if(S<16)w>>>=M,_-=M,r.lens[r.have++]=S;else{if(16===S){for(U=M+2;_<U;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if(w>>>=M,_-=M,0===r.have){t.msg="invalid bit length repeat",r.mode=f;break}O=r.lens[r.have-1],C=3+(3&w),w>>>=2,_-=2}else if(17===S){for(U=M+3;_<U;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}_-=M,O=0,C=3+(7&(w>>>=M)),w>>>=3,_-=3}else{for(U=M+7;_<U;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}_-=M,O=0,C=11+(127&(w>>>=M)),w>>>=7,_-=7}if(r.have+C>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=f;break}for(;C--;)r.lens[r.have++]=O}}if(r.mode===f)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=f;break}if(r.lenbits=9,N={bits:r.lenbits},F=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,F){t.msg="invalid literal/lengths set",r.mode=f;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},F=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,F){t.msg="invalid distances set",r.mode=f;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(v>=6&&y>=258){t.next_out=b,t.avail_out=y,t.next_in=g,t.avail_in=v,r.hold=w,r.bits=_,o(t,B),b=t.next_out,p=t.output,y=t.avail_out,g=t.next_in,d=t.input,v=t.avail_in,w=r.hold,_=r.bits,r.mode===h&&(r.back=-1);break}for(r.back=0;P=(D=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,S=65535&D,!((M=D>>>24)<=_);){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if(P&&0==(240&P)){for(T=M,R=P,L=S;P=(D=r.lencode[L+((w&(1<<T+R)-1)>>T)])>>>16&255,S=65535&D,!(T+(M=D>>>24)<=_);){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}w>>>=T,_-=T,r.back+=T}if(w>>>=M,_-=M,r.back+=M,r.length=S,0===P){r.mode=26;break}if(32&P){r.back=-1,r.mode=h;break}if(64&P){t.msg="invalid literal/length code",r.mode=f;break}r.extra=15&P,r.mode=22;case 22:if(r.extra){for(U=r.extra;_<U;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;P=(D=r.distcode[w&(1<<r.distbits)-1])>>>16&255,S=65535&D,!((M=D>>>24)<=_);){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if(0==(240&P)){for(T=M,R=P,L=S;P=(D=r.distcode[L+((w&(1<<T+R)-1)>>T)])>>>16&255,S=65535&D,!(T+(M=D>>>24)<=_);){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}w>>>=T,_-=T,r.back+=T}if(w>>>=M,_-=M,r.back+=M,64&P){t.msg="invalid distance code",r.mode=f;break}r.offset=S,r.extra=15&P,r.mode=24;case 24:if(r.extra){for(U=r.extra;_<U;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=f;break}r.mode=25;case 25:if(0===y)break t;if(C=B-y,r.offset>C){if((C=r.offset-C)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=f;break}C>r.wnext?(C-=r.wnext,A=r.wsize-C):A=r.wnext-C,C>r.length&&(C=r.length),I=r.window}else I=p,A=b-r.offset,C=r.length;C>y&&(C=y),y-=C,r.length-=C;do{p[b++]=I[A++]}while(--C);0===r.length&&(r.mode=21);break;case 26:if(0===y)break t;p[b++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===v)break t;v--,w|=d[g++]<<_,_+=8}if(B-=y,t.total_out+=B,r.total+=B,B&&(t.adler=r.check=r.flags?a(r.check,p,B,b-B):i(r.check,p,B,b-B)),B=y,(r.flags?w:m(w))!==r.check){t.msg="incorrect data check",r.mode=f;break}w=0,_=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===v)break t;v--,w+=d[g++]<<_,_+=8}if(w!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=f;break}w=0,_=0}r.mode=29;case 29:F=1;break t;case f:F=-3;break t;case 31:return-4;default:return l}return t.next_out=b,t.avail_out=y,t.next_in=g,t.avail_in=v,r.hold=w,r.bits=_,(r.wsize||B!==t.avail_out&&r.mode<f&&(r.mode<27||4!==e))&&E(t,t.output,t.next_out,B-t.avail_out)?(r.mode=31,-4):(k-=t.avail_in,B-=t.avail_out,t.total_in+=k,t.total_out+=B,r.total+=B,r.wrap&&B&&(t.adler=r.check=r.flags?a(r.check,p,B,t.next_out-B):i(r.check,p,B,t.next_out-B)),t.data_type=r.bits+(r.last?64:0)+(r.mode===h?128:0)+(20===r.mode||15===r.mode?256:0),(0===k&&0===B||4===e)&&F===u&&(F=-5),F)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,u},e.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?l:(r.head=e,e.done=!1,u):l},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?l:11===r.mode&&i(1,e,n,0)!==r.check?-3:E(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,u):l},e.inflateInfo="pako inflate (from Nodeca project)"},46120:(t,e,r)=>{"use strict";var n=r(10012),i=[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],a=[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],o=[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],s=[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];t.exports=function(t,e,r,u,l,c,h,f){var d,p,m,g,b,v,y,w,_,k=f.bits,B=0,x=0,E=0,C=0,A=0,I=0,M=0,P=0,S=0,T=0,R=null,L=0,O=new n.Buf16(16),F=new n.Buf16(16),N=null,U=0;for(B=0;B<=15;B++)O[B]=0;for(x=0;x<u;x++)O[e[r+x]]++;for(A=k,C=15;C>=1&&0===O[C];C--);if(A>C&&(A=C),0===C)return l[c++]=20971520,l[c++]=20971520,f.bits=1,0;for(E=1;E<C&&0===O[E];E++);for(A<E&&(A=E),P=1,B=1;B<=15;B++)if(P<<=1,(P-=O[B])<0)return-1;if(P>0&&(0===t||1!==C))return-1;for(F[1]=0,B=1;B<15;B++)F[B+1]=F[B]+O[B];for(x=0;x<u;x++)0!==e[r+x]&&(h[F[e[r+x]]++]=x);if(0===t?(R=N=h,v=19):1===t?(R=i,L-=257,N=a,U-=257,v=256):(R=o,N=s,v=-1),T=0,x=0,B=E,b=c,I=A,M=0,m=-1,g=(S=1<<A)-1,1===t&&S>852||2===t&&S>592)return 1;for(;;){y=B-M,h[x]<v?(w=0,_=h[x]):h[x]>v?(w=N[U+h[x]],_=R[L+h[x]]):(w=96,_=0),d=1<<B-M,E=p=1<<I;do{l[b+(T>>M)+(p-=d)]=y<<24|w<<16|_|0}while(0!==p);for(d=1<<B-1;T&d;)d>>=1;if(0!==d?(T&=d-1,T+=d):T=0,x++,0==--O[B]){if(B===C)break;B=e[r+h[x]]}if(B>A&&(T&g)!==m){for(0===M&&(M=A),b+=E,P=1<<(I=B-M);I+M<C&&!((P-=O[I+M])<=0);)I++,P<<=1;if(S+=1<<I,1===t&&S>852||2===t&&S>592)return 1;l[m=T&g]=A<<24|I<<16|b-c|0}}return 0!==T&&(l[b+T]=B-M<<24|64<<16|0),f.bits=A,0}},29451:t=>{"use strict";t.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"}},32976:(t,e,r)=>{"use strict";var n=r(10012);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,o=286,s=30,u=15,l=16,c=[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],h=[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],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);i(p);var m=new Array(60);i(m);var g=new Array(512);i(g);var b=new Array(256);i(b);var v=new Array(29);i(v);var y,w,_,k=new Array(s);function B(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 x(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function E(t){return t<256?g[t]:g[256+(t>>>7)]}function C(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function A(t,e,r){t.bi_valid>l-r?(t.bi_buf|=e<<t.bi_valid&65535,C(t,t.bi_buf),t.bi_buf=e>>l-t.bi_valid,t.bi_valid+=r-l):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function I(t,e,r){A(t,r[2*e],r[2*e+1])}function M(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function P(t,e,r){var n,i,a=new Array(u+1),o=0;for(n=1;n<=u;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]=M(a[s]++,s))}}function S(t){var e;for(e=0;e<o;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){t.bi_valid>8?C(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function R(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 L(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&R(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!R(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function O(t,e,r){var n,i,o,s,u=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],i=t.pending_buf[t.l_buf+u],u++,0===n?I(t,i,e):(I(t,(o=b[i])+a+1,e),0!==(s=c[o])&&A(t,i-=v[o],s),I(t,o=E(--n),r),0!==(s=h[o])&&A(t,n-=k[o],s))}while(u<t.last_lit);I(t,256,e)}function F(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,c=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<l;r++)0!==a[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)L(t,a,r);i=l;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],L(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++,L(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,l=e.dyn_tree,c=e.max_code,h=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,m=e.stat_desc.max_length,g=0;for(a=0;a<=u;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(a=l[2*l[2*(n=t.heap[r])+1]+1]+1)>m&&(a=m,g++),l[2*n+1]=a,n>c||(t.bl_count[a]++,o=0,n>=p&&(o=d[n-p]),s=l[2*n],t.opt_len+=s*(a+o),f&&(t.static_len+=s*(h[2*n+1]+o)));if(0!==g){do{for(a=m-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[m]--,g-=2}while(g>0);for(a=m;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>c||(l[2*i+1]!==a&&(t.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}(t,e),P(a,c,t.bl_count)}function N(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function U(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<l)do{I(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(I(t,i,t.bl_tree),s--),I(t,16,t.bl_tree),A(t,s-3,2)):s<=10?(I(t,17,t.bl_tree),A(t,s-3,3)):(I(t,18,t.bl_tree),A(t,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}i(k);var D=!1;function z(t,e,r,i){A(t,0+(i?1:0),3),function(t,e,r,i){T(t),C(t,r),C(t,~r),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r)}e._tr_init=function(t){D||(function(){var t,e,r,n,i,a=new Array(u+1);for(r=0,n=0;n<28;n++)for(v[n]=r,t=0;t<1<<c[n];t++)b[r++]=n;for(b[r-1]=n,i=0,n=0;n<16;n++)for(k[n]=i,t=0;t<1<<h[n];t++)g[i++]=n;for(i>>=7;n<s;n++)for(k[n]=i<<7,t=0;t<1<<h[n]-7;t++)g[256+i++]=n;for(e=0;e<=u;e++)a[e]=0;for(t=0;t<=143;)p[2*t+1]=8,t++,a[8]++;for(;t<=255;)p[2*t+1]=9,t++,a[9]++;for(;t<=279;)p[2*t+1]=7,t++,a[7]++;for(;t<=287;)p[2*t+1]=8,t++,a[8]++;for(P(p,287,a),t=0;t<s;t++)m[2*t+1]=5,m[2*t]=M(t,5);y=new B(p,c,257,o,u),w=new B(m,h,0,s,u),_=new B(new Array(0),f,0,19,7)}(),D=!0),t.l_desc=new x(t.dyn_ltree,y),t.d_desc=new x(t.dyn_dtree,w),t.bl_desc=new x(t.bl_tree,_),t.bi_buf=0,t.bi_valid=0,S(t)},e._tr_stored_block=z,e._tr_flush_block=function(t,e,r,n){var i,o,s=0;t.level>0?(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 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),s=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?z(t,e,r,n):4===t.strategy||o===i?(A(t,2+(n?1:0),3),O(t,p,m)):(A(t,4+(n?1:0),3),function(t,e,r,n){var i;for(A(t,e-257,5),A(t,r-1,5),A(t,n-4,4),i=0;i<n;i++)A(t,t.bl_tree[2*d[i]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),O(t,t.dyn_ltree,t.dyn_dtree)),S(t),n&&T(t)},e._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*(b[r]+a+1)]++,t.dyn_dtree[2*E(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){A(t,2,3),I(t,256,p),function(t){16===t.bi_valid?(C(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},16092:t=>{"use strict";t.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}},67456:t=>{function e(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var n=t.indexOf(" ");if(-1===n)throw new Error("no named row at line "+e);var i=t.substring(0,n);t=(t=(t=(t=t.substring(n+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map((function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)}));for(var a=[],o=0;o<t.length;o++){var s=t[o];0===o?a.push({key:s[0],data:""}):o===t.length-1?a[a.length-1].data=r(s[0]):(a[a.length-1].data=r(s[0]),a.push({key:s[1],data:""}))}var u={key:i,data:{}};return a.forEach((function(t){u.data[t.key]=t.data})),u}function r(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):""}t.exports=function(t){if(!t)throw new Error("no data provided");var r={pages:[],chars:[],kernings:[]},n=(t=t.toString().trim()).split(/\r\n?|\n/g);if(0===n.length)throw new Error("no data in BMFont file");for(var i=0;i<n.length;i++){var a=e(n[i],i);if(a)if("page"===a.key){if("number"!=typeof a.data.id)throw new Error("malformed file at line "+i+" -- needs page id=N");if("string"!=typeof a.data.file)throw new Error("malformed file at line "+i+' -- needs page file="path"');r.pages[a.data.id]=a.data.file}else"chars"===a.key||"kernings"===a.key||("char"===a.key?r.chars.push(a.data):"kerning"===a.key?r.kernings.push(a.data):r[a.key]=a.data)}return r}},26836:t=>{var e=[66,77,70];function r(t,e,r){if(r>e.length-1)return 0;var i=e.readUInt8(r++),a=e.readInt32LE(r);switch(r+=4,i){case 1:t.info=function(t,e){var r={};r.size=t.readInt16LE(e);var i=t.readUInt8(e+2);return r.smooth=i>>7&1,r.unicode=i>>6&1,r.italic=i>>5&1,r.bold=i>>4&1,i>>3&1&&(r.fixedHeight=1),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 n(t,e).toString("utf8")}(t,e+14),r}(e,r);break;case 2:t.common=function(t,e){var r={};return 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),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 i=[],a=n(t,e),o=a.length+1,s=r/o,u=0;u<s;u++)i[u]=t.slice(e,e+a.length).toString("utf8"),e+=o;return i}(e,r,a);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,a);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,a)}return 5+a}function n(t,e){for(var r=e;r<t.length&&0!==t[r];r++);return t.slice(e,r)}t.exports=function(t){if(t.length<6)throw new Error("invalid buffer length for BMFont");var n=e.every((function(e,r){return t.readUInt8(r)===e}));if(!n)throw new Error("BMFont missing BMF byte header");var i=3;if(t.readUInt8(i++)>3)throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(var a={kernings:[],chars:[]},o=0;o<5;o++)i+=r(a,t,i);return a}},91272:(t,e,r)=>{var n=r(83032),i=r(22148),a={scaleh:"scaleH",scalew:"scaleW",stretchh:"stretchH",lineheight:"lineHeight",alphachnl:"alphaChnl",redchnl:"redChnl",greenchnl:"greenChnl",bluechnl:"blueChnl"};function o(t){var e=function(t){for(var e=[],r=0;r<t.attributes.length;r++)e.push(t.attributes[r]);return e}(t);return e.reduce((function(t,e){var r;return t[(r=e.nodeName,a[r.toLowerCase()]||r)]=e.nodeValue,t}),{})}t.exports=function(t){t=t.toString();var e=i(t),r={pages:[],chars:[],kernings:[]};["info","common"].forEach((function(t){var i=e.getElementsByTagName(t)[0];i&&(r[t]=n(o(i)))}));var a=e.getElementsByTagName("pages")[0];if(!a)throw new Error("malformed file -- no <pages> element");for(var s=a.getElementsByTagName("page"),u=0;u<s.length;u++){var l=s[u],c=parseInt(l.getAttribute("id"),10),h=l.getAttribute("file");if(isNaN(c))throw new Error('malformed file -- page "id" attribute is NaN');if(!h)throw new Error('malformed file -- needs page "file" attribute');r.pages[parseInt(c,10)]=h}return["chars","kernings"].forEach((function(t){var i=e.getElementsByTagName(t)[0];if(i)for(var a=t.substring(0,t.length-1),s=i.getElementsByTagName(a),u=0;u<s.length;u++){var l=s[u];r[t].push(n(o(l)))}})),r}},83032:t=>{var e="chasrset";t.exports=function(t){for(var r in e in t&&(t.charset=t[e],delete t[e]),t)"face"!==r&&"charset"!==r&&(t[r]="padding"===r||"spacing"===r?t[r].split(",").map((function(t){return parseInt(t,10)})):parseInt(t[r],10));return t}},35784:t=>{var e=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var r,n={},i=e(t).split("\n"),a=0;a<i.length;a++){var o=i[a],s=o.indexOf(":"),u=e(o.slice(0,s)).toLowerCase(),l=e(o.slice(s+1));void 0===n[u]?n[u]=l:(r=n[u],"[object Array]"===Object.prototype.toString.call(r)?n[u].push(l):n[u]=[n[u],l])}return n}},38832:(t,e,r)=>{"use strict";var n=r(26512),i="win32"===n.platform,a=r(93912);function o(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n];i&&"."!==i&&(".."===i?r.length&&".."!==r[r.length-1]?r.pop():e&&r.push(".."):r.push(i))}return r}function s(t){for(var e=t.length-1,r=0;r<=e&&!t[r];r++);for(var n=e;n>=0&&!t[n];n--);return 0===r&&n===e?t:r>n?[]:t.slice(r,n+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function h(t){var e=u.exec(t),r=(e[1]||"")+(e[2]||""),n=e[3]||"",i=l.exec(n);return[r,i[1],i[2],i[3]]}function f(t){var e=u.exec(t),r=e[1]||"",n=!!r&&":"!==r[1];return{device:r,isUnc:n,isAbsolute:n||!!e[2],tail:e[3]}}function d(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var t="",e="",r=!1,i=arguments.length-1;i>=-1;i--){var s;if(i>=0?s=arguments[i]:t?(s=n.env["="+t])&&s.substr(0,3).toLowerCase()===t.toLowerCase()+"\\"||(s=t+"\\"):s=n.cwd(),!a.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var u=f(s),l=u.device,c=u.isUnc,h=u.isAbsolute,p=u.tail;if((!l||!t||l.toLowerCase()===t.toLowerCase())&&(t||(t=l),r||(e=p+"\\"+e,r=h),t&&r))break}}return c&&(t=d(t)),t+(r?"\\":"")+(e=o(e.split(/[\\\/]+/),!r).join("\\"))||"."},c.normalize=function(t){var e=f(t),r=e.device,n=e.isUnc,i=e.isAbsolute,a=e.tail,s=/[\\\/]$/.test(a);return(a=o(a.split(/[\\\/]+/),!i).join("\\"))||i||(a="."),a&&s&&(a+="\\"),n&&(r=d(r)),r+(i?"\\":"")+a},c.isAbsolute=function(t){return f(t).isAbsolute},c.join=function(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(!a.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&t.push(r)}var n=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(n=n.replace(/^[\\\/]{2,}/,"\\")),c.normalize(n)},c.relative=function(t,e){t=c.resolve(t),e=c.resolve(e);for(var r=t.toLowerCase(),n=e.toLowerCase(),i=s(e.split("\\")),a=s(r.split("\\")),o=s(n.split("\\")),u=Math.min(a.length,o.length),l=u,h=0;h<u;h++)if(a[h]!==o[h]){l=h;break}if(0==l)return e;var f=[];for(h=l;h<a.length;h++)f.push("..");return(f=f.concat(i.slice(l))).join("\\")},c._makeLong=function(t){if(!a.isString(t))return t;if(!t)return"";var e=c.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t},c.dirname=function(t){var e=h(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},c.basename=function(t,e){var r=h(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},c.extname=function(t){return h(t)[3]},c.format=function(t){if(!a.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!a.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var r=t.dir,n=t.base||"";return r?r[r.length-1]===c.sep?r+n:r+c.sep+n:n},c.parse=function(t){if(!a.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=h(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},c.sep="\\",c.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,m={};function g(t){return p.exec(t).slice(1)}m.resolve=function(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var i=r>=0?arguments[r]:n.cwd();if(!a.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,e="/"===i[0])}return(e?"/":"")+(t=o(t.split("/"),!e).join("/"))||"."},m.normalize=function(t){var e=m.isAbsolute(t),r=t&&"/"===t[t.length-1];return(t=o(t.split("/"),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},m.isAbsolute=function(t){return"/"===t.charAt(0)},m.join=function(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];if(!a.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&(t+=t?"/"+r:r)}return m.normalize(t)},m.relative=function(t,e){t=m.resolve(t).substr(1),e=m.resolve(e).substr(1);for(var r=s(t.split("/")),n=s(e.split("/")),i=Math.min(r.length,n.length),a=i,o=0;o<i;o++)if(r[o]!==n[o]){a=o;break}var u=[];for(o=a;o<r.length;o++)u.push("..");return(u=u.concat(n.slice(a))).join("/")},m._makeLong=function(t){return t},m.dirname=function(t){var e=g(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},m.basename=function(t,e){var r=g(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},m.extname=function(t){return g(t)[3]},m.format=function(t){if(!a.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!a.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);return(t.dir?t.dir+m.sep:"")+(t.base||"")},m.parse=function(t){if(!a.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=g(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},m.sep="/",m.delimiter=":",t.exports=i?c:m,t.exports.posix=m,t.exports.win32=c},45152:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Deferred=void 0,e.Deferred=class{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise(((t,e)=>{this.reject=e,this.resolve=t}))}}},91023:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages="End-Of-Stream";class r extends Error{constructor(){super(e.defaultMessages)}}e.EndOfStreamError=r},71976:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;const n=r(91023),i=r(45152);var a=r(91023);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return a.EndOfStreamError}}),e.StreamReader=class{constructor(t){if(this.s=t,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!t.read||!t.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",(()=>this.reject(new n.EndOfStreamError))),this.s.once("error",(t=>this.reject(t))),this.s.once("close",(()=>this.reject(new Error("Stream closed"))))}async peek(t,e,r){const n=await this.read(t,e,r);return this.peekQueue.push(t.subarray(e,e+n)),n}async read(t,e,r){if(0===r)return 0;if(0===this.peekQueue.length&&this.endOfStream)throw new n.EndOfStreamError;let i=r,a=0;for(;this.peekQueue.length>0&&i>0;){const r=this.peekQueue.pop();if(!r)throw new Error("peekData should be defined");const n=Math.min(r.length,i);t.set(r.subarray(0,n),e+a),a+=n,i-=n,n<r.length&&this.peekQueue.push(r.subarray(n))}for(;i>0&&!this.endOfStream;){const r=Math.min(i,1048576),n=await this.readFromStream(t,e+a,r);if(a+=n,n<r)break;i-=n}return a}async readFromStream(t,e,r){const n=this.s.read(r);if(n)return t.set(n,e),n.length;{const n={buffer:t,offset:e,length:r,deferred:new i.Deferred};return this.deferred=n.deferred,this.s.once("readable",(()=>{this.readDeferred(n)})),n.deferred.promise}}readDeferred(t){const e=this.s.read(t.length);e?(t.buffer.set(e,t.offset),t.deferred.resolve(e.length),this.deferred=null):this.s.once("readable",(()=>{this.readDeferred(t)}))}reject(t){this.endOfStream=!0,this.deferred&&(this.deferred.reject(t),this.deferred=null)}}},30432:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=r(91023);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(71976);Object.defineProperty(e,"StreamReader",{enumerable:!0,get:function(){return i.StreamReader}})},16976:t=>{"use strict";function e(t,n,i,a,o,s){for(var u,l,c,h,f=Math.max(n-1,0),d=Math.max(i-1,0),p=Math.min(n+1,a-1),m=Math.min(i+1,o-1),g=4*(i*a+n),b=0,v=0,y=0,w=0,_=0,k=f;k<=p;k++)for(var B=d;B<=m;B++)if(k!==n||B!==i){var x=r(t,t,g,4*(B*a+k),!0);if(0===x?b++:x<0?y++:x>0&&v++,b>2)return!1;s&&(x<w&&(w=x,u=k,l=B),x>_&&(_=x,c=k,h=B))}return!s||0!==y&&0!==v&&(!e(t,u,l,a,o)&&!e(s,u,l,a,o)||!e(t,c,h,a,o)&&!e(s,c,h,a,o))}function r(t,e,r,s,u){var l=t[r+3]/255,c=e[s+3]/255,h=o(t[r+0],l),f=o(t[r+1],l),d=o(t[r+2],l),p=o(e[s+0],c),m=o(e[s+1],c),g=o(e[s+2],c),b=n(h,f,d)-n(p,m,g);if(u)return b;var v=i(h,f,d)-i(p,m,g),y=a(h,f,d)-a(p,m,g);return.5053*b*b+.299*v*v+.1957*y*y}function n(t,e,r){return.29889531*t+.58662247*e+.11448223*r}function i(t,e,r){return.59597799*t-.2741761*e-.32180189*r}function a(t,e,r){return.21147017*t-.52261711*e+.31114694*r}function o(t,e){return 255+(t-255)*e}function s(t,e,r,n,i){t[e+0]=r,t[e+1]=n,t[e+2]=i,t[e+3]=255}t.exports=function(t,i,a,u,l,c){c||(c={});for(var h=void 0===c.threshold?.1:c.threshold,f=35215*h*h,d=0,p=0;p<l;p++)for(var m=0;m<u;m++){var g=4*(p*u+m);if(r(t,i,g,g)>f)c.includeAA||!e(t,m,p,u,l,i)&&!e(i,m,p,u,l,t)?(a&&s(a,g,255,0,0),d++):a&&s(a,g,255,255,0);else if(a){var b=o((void 0,void 0,void 0,void 0,w=(v=t)[(y=g)+3]/255,n(o(v[y+0],w),o(v[y+1],w),o(v[y+2],w))),.1);s(a,g,b,b,b)}}var v,y,w;return d}},83712:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(49756),a=[function(){},function(t,e,r,n){if(n===e.length)throw new Error("Ran out of data");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=255},function(t,e,r,n){if(n+1>=e.length)throw new Error("Ran out of data");var i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=e[n+1]},function(t,e,r,n){if(n+2>=e.length)throw new Error("Ran out of data");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=255},function(t,e,r,n){if(n+3>=e.length)throw new Error("Ran out of data");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=e[n+3]}],o=[function(){},function(t,e,r,n){var i=e[0];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=n},function(t,e,r){var n=e[0];t[r]=n,t[r+1]=n,t[r+2]=n,t[r+3]=e[1]},function(t,e,r,n){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=n},function(t,e,r){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=e[3]}];function s(t,e,r,n,i,o){for(var s=t.width,u=t.height,l=t.index,c=0;c<u;c++)for(var h=0;h<s;h++){var f=r(h,c,l);a[n](e,i,f,o),o+=n}return o}function u(t,e,r,n,i,a){for(var s=t.width,u=t.height,l=t.index,c=0;c<u;c++){for(var h=0;h<s;h++){var f=i.get(n),d=r(h,c,l);o[n](e,f,d,a)}i.resetAfterLine()}}e.dataToBitMap=function(t,e){var r,a=e.width,o=e.height,l=e.depth,c=e.bpp,h=e.interlace;if(8!==l)var f=function(t,e){var r=[],n=0;function i(){if(n===t.length)throw new Error("Ran out of data");var i,a,o,s,u,l,c,h,f=t[n];switch(n++,e){default:throw new Error("unrecognised depth");case 16:c=t[n],n++,r.push((f<<8)+c);break;case 4:c=15&f,h=f>>4,r.push(h,c);break;case 2:u=3&f,l=f>>2&3,c=f>>4&3,h=f>>6&3,r.push(h,c,l,u);break;case 1:i=1&f,a=f>>1&1,o=f>>2&1,s=f>>3&1,u=f>>4&1,l=f>>5&1,c=f>>6&1,h=f>>7&1,r.push(h,c,l,u,s,o,a,i)}}return{get:function(t){for(;r.length<t;)i();var e=r.slice(0,t);return r=r.slice(t),e},resetAfterLine:function(){r.length=0},end:function(){if(n!==t.length)throw new Error("extra data found")}}}(t,l);r=l<=8?new n(a*o*4):new Uint16Array(a*o*4);var d,p,m=Math.pow(2,l)-1,g=0;if(h)d=i.getImagePasses(a,o),p=i.getInterlaceIterator(a,o);else{var b=0;p=function(){var t=b;return b+=4,t},d=[{width:a,height:o}]}for(var v=0;v<d.length;v++)8===l?g=s(d[v],r,p,c,t,g):u(d[v],r,p,c,f,m);if(8===l){if(g!==t.length)throw new Error("extra data found")}else f.end();return r}},17392:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(46884);t.exports=function(t,e,r,a){var o,s=-1!==[i.COLORTYPE_COLOR_ALPHA,i.COLORTYPE_ALPHA].indexOf(a.colorType);if(a.colorType===a.inputColorType){var u=(o=new ArrayBuffer(2),new DataView(o).setInt16(0,256,!0),256!==new Int16Array(o)[0]);if(8===a.bitDepth||16===a.bitDepth&&u)return t}var l=16!==a.bitDepth?t:new Uint16Array(t.buffer),c=255,h=i.COLORTYPE_TO_BPP_MAP[a.inputColorType];4!==h||a.inputHasAlpha||(h=3);var f=i.COLORTYPE_TO_BPP_MAP[a.colorType];16===a.bitDepth&&(c=65535,f*=2);var d=new n(e*r*f),p=0,m=0,g=a.bgColor||{};function b(){var t,e,r,n=c;switch(a.inputColorType){case i.COLORTYPE_COLOR_ALPHA:n=l[p+3],t=l[p],e=l[p+1],r=l[p+2];break;case i.COLORTYPE_COLOR:t=l[p],e=l[p+1],r=l[p+2];break;case i.COLORTYPE_ALPHA:n=l[p+1],e=t=l[p],r=t;break;case i.COLORTYPE_GRAYSCALE:e=t=l[p],r=t;break;default:throw new Error("input color type:"+a.inputColorType+" is not supported at present")}return a.inputHasAlpha&&(s||(n/=c,t=Math.min(Math.max(Math.round((1-n)*g.red+n*t),0),c),e=Math.min(Math.max(Math.round((1-n)*g.green+n*e),0),c),r=Math.min(Math.max(Math.round((1-n)*g.blue+n*r),0),c))),{red:t,green:e,blue:r,alpha:n}}void 0===g.red&&(g.red=c),void 0===g.green&&(g.green=c),void 0===g.blue&&(g.blue=c);for(var v=0;v<r;v++)for(var y=0;y<e;y++){var w=b();switch(a.colorType){case i.COLORTYPE_COLOR_ALPHA:case i.COLORTYPE_COLOR:8===a.bitDepth?(d[m]=w.red,d[m+1]=w.green,d[m+2]=w.blue,s&&(d[m+3]=w.alpha)):(d.writeUInt16BE(w.red,m),d.writeUInt16BE(w.green,m+2),d.writeUInt16BE(w.blue,m+4),s&&d.writeUInt16BE(w.alpha,m+6));break;case i.COLORTYPE_ALPHA:case i.COLORTYPE_GRAYSCALE:var _=(w.red+w.green+w.blue)/3;8===a.bitDepth?(d[m]=_,s&&(d[m+1]=w.alpha)):(d.writeUInt16BE(_,m),s&&d.writeUInt16BE(w.alpha,m+2));break;default:throw new Error("unrecognised color Type "+a.colorType)}p+=h,m+=f}return d}},95508:(t,e,r)=>{"use strict";var n=r(26512),i=r(33296).Buffer,a=r(93912),o=r(67084),s=t.exports=function(){o.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};a.inherits(s,o),s.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e}),n.nextTick(function(){this._process(),this._paused&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))},s.prototype.write=function(t,e){return this.writable?(r=i.isBuffer(t)?t:new i(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},s.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()))},s.prototype.destroySoon=s.prototype.end,s.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},s.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},s.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))},s.prototype._processRead=function(t){this._reads.shift();for(var e=0,r=0,n=new i(t.length);e<t.length;){var a=this._buffers[r++],o=Math.min(a.length,t.length-e);a.copy(n,e,0,o),e+=o,o!==a.length&&(this._buffers[--r]=a.slice(o))}r>0&&this._buffers.splice(0,r),this._buffered-=t.length,t.func.call(this,n)},s.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}},46884:t=>{"use strict";t.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}},19828:t=>{"use strict";var e=[];!function(){for(var t=0;t<256;t++){for(var r=t,n=0;n<8;n++)1&r?r=3988292384^r>>>1:r>>>=1;e[t]=r}}();var r=t.exports=function(){this._crc=-1};r.prototype.write=function(t){for(var r=0;r<t.length;r++)this._crc=e[255&(this._crc^t[r])]^this._crc>>>8;return!0},r.prototype.crc32=function(){return-1^this._crc},r.crc32=function(t){for(var r=-1,n=0;n<t.length;n++)r=e[255&(r^t[n])]^r>>>8;return-1^r}},30312:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(28144),a={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=o>=a?t[e+o-a]:0,u=t[e+o]-s;n[i+o]=u}},2:function(t,e,r,n,i){for(var a=0;a<r;a++){var o=e>0?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=o>=a?t[e+o-a]:0,u=e>0?t[e+o-r]:0,l=t[e+o]-(s+u>>1);n[i+o]=l}},4:function(t,e,r,n,a,o){for(var s=0;s<r;s++){var u=s>=o?t[e+s-o]:0,l=e>0?t[e+s-r]:0,c=e>0&&s>=o?t[e+s-(r+o)]:0,h=t[e+s]-i(u,l,c);n[a+s]=h}}},o={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=a>=n?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=e>0?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=a>=n?t[e+a-n]:0,s=e>0?t[e+a-r]:0,u=t[e+a]-(o+s>>1);i+=Math.abs(u)}return i},4:function(t,e,r,n){for(var a=0,o=0;o<r;o++){var s=o>=n?t[e+o-n]:0,u=e>0?t[e+o-r]:0,l=e>0&&o>=n?t[e+o-(r+n)]:0,c=t[e+o]-i(s,u,l);a+=Math.abs(c)}return a}};t.exports=function(t,e,r,i,s){var u;if("filterType"in i&&-1!==i.filterType){if("number"!=typeof i.filterType)throw new Error("unrecognised filter types");u=[i.filterType]}else u=[0,1,2,3,4];16===i.bitDepth&&(s*=2);for(var l=e*s,c=0,h=0,f=new n((l+1)*r),d=u[0],p=0;p<r;p++){if(u.length>1)for(var m=1/0,g=0;g<u.length;g++){var b=o[u[g]](t,h,l,s);b<m&&(d=u[g],m=b)}f[c]=d,c++,a[d](t,h,l,f,c,s),c+=l,h+=l}return f}},32112:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(93912),a=r(95508),o=r(26916),s=t.exports=function(t){a.call(this);var e=[],r=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){e.push(t)},complete:function(){r.emit("complete",n.concat(e))}}),this._filter.start()};i.inherits(s,a)},3688:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(24360),a=r(26916);e.process=function(t,e){var r=[],o=new i(t);return new a(e,{read:o.read.bind(o),write:function(t){r.push(t)},complete:function(){}}).start(),o.process(),n.concat(r)}},26916:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(49756),a=r(28144);function o(t,e,r){var n=t*e;return 8!==r&&(n=Math.ceil(n/(8/r))),n}var s=t.exports=function(t,e){var r=t.width,n=t.height,a=t.interlace,s=t.bpp,u=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a)for(var l=i.getImagePasses(r,n),c=0;c<l.length;c++)this._images.push({byteWidth:o(l[c].width,s,u),height:l[c].height,lineIndex:0});else this._images.push({byteWidth:o(r,s,u),height:n,lineIndex:0});this._xComparison=8===u?s:16===u?2*s:1};s.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},s.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=a>i?e[a-n]:0;e[a]=o+s}},s.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}},s.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],u=a?a[o]:0,l=o>i?e[o-n]:0,c=Math.floor((l+u)/2);e[o]=s+c}},s.prototype._unFilterType4=function(t,e,r){for(var n=this._xComparison,i=n-1,o=this._lastLine,s=0;s<r;s++){var u=t[1+s],l=o?o[s]:0,c=s>i?e[s-n]:0,h=s>i&&o?o[s-n]:0,f=a(c,l,h);e[s]=u+f}},s.prototype._reverseFilterLine=function(t){var e,r=t[0],i=this._images[this._imageIndex],a=i.byteWidth;if(0===r)e=t.slice(1,a+1);else switch(e=new n(a),r){case 1:this._unFilterType1(t,e,a);break;case 2:this._unFilterType2(t,e,a);break;case 3:this._unFilterType3(t,e,a);break;case 4:this._unFilterType4(t,e,a);break;default:throw new Error("Unrecognised filter type - "+r)}this.write(e),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=e,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}},4076:(t,e,r)=>{"use strict";var n=r(33296).Buffer;t.exports=function(t,e){var r=e.depth,i=e.width,a=e.height,o=e.colorType,s=e.transColor,u=e.palette,l=t;return 3===o?function(t,e,r,n,i){for(var a=0,o=0;o<n;o++)for(var s=0;s<r;s++){var u=i[t[a]];if(!u)throw new Error("index "+t[a]+" not in palette");for(var l=0;l<4;l++)e[a+l]=u[l];a+=4}}(t,l,i,a,u):(s&&function(t,e,r,n,i){for(var a=0,o=0;o<n;o++)for(var s=0;s<r;s++){var u=!1;if(1===i.length?i[0]===t[a]&&(u=!0):i[0]===t[a]&&i[1]===t[a+1]&&i[2]===t[a+2]&&(u=!0),u)for(var l=0;l<4;l++)e[a+l]=0;a+=4}}(t,l,i,a,s),8!==r&&(16===r&&(l=new n(i*a*4)),function(t,e,r,n,i){for(var a=Math.pow(2,i)-1,o=0,s=0;s<n;s++)for(var u=0;u<r;u++){for(var l=0;l<4;l++)e[o+l]=Math.floor(255*t[o+l]/a+.5);o+=4}}(t,l,i,a,r))),l}},49756:(t,e)=>{"use strict";var r=[{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]}];e.getImagePasses=function(t,e){for(var n=[],i=t%8,a=e%8,o=(t-i)/8,s=(e-a)/8,u=0;u<r.length;u++){for(var l=r[u],c=o*l.x.length,h=s*l.y.length,f=0;f<l.x.length&&l.x[f]<i;f++)c++;for(f=0;f<l.y.length&&l.y[f]<a;f++)h++;c>0&&h>0&&n.push({width:c,height:h,index:u})}return n},e.getInterlaceIterator=function(t){return function(e,n,i){var a=e%r[i].x.length,o=(e-a)/r[i].x.length*8+r[i].x[a],s=n%r[i].y.length;return 4*o+((n-s)/r[i].y.length*8+r[i].y[s])*t*4}}},21188:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(93912),a=r(67084),o=r(46884),s=r(76200),u=t.exports=function(t){a.call(this);var e=t||{};this._packer=new s(e),this._deflate=this._packer.createDeflate(),this.readable=!0};i.inherits(u,a),u.prototype.pack=function(t,e,r,i){this.emit("data",new n(o.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,r)),i&&this.emit("data",this._packer.packGAMA(i));var a=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(a)}},36432:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=!0,a=r(59160);a.deflateSync||(i=!1);var o=r(46884),s=r(76200);t.exports=function(t,e){if(!i)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 s(e||{}),u=[];u.push(new n(o.PNG_SIGNATURE)),u.push(r.packIHDR(t.width,t.height)),t.gamma&&u.push(r.packGAMA(t.gamma));var l=r.filterData(t.data,t.width,t.height),c=a.deflateSync(l,r.getDeflateOptions());if(l=null,!c||!c.length)throw new Error("bad png - invalid compressed data response");return u.push(r.packIDAT(c)),u.push(r.packIEND()),n.concat(u)}},76200:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(46884),a=r(19828),o=r(17392),s=r(30312),u=r(59160),l=t.exports=function(t){if(this._options=t,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||u.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType="number"==typeof t.colorType?t.colorType:i.COLORTYPE_COLOR_ALPHA,t.inputColorType="number"==typeof t.inputColorType?t.inputColorType:i.COLORTYPE_COLOR_ALPHA,-1===[i.COLORTYPE_GRAYSCALE,i.COLORTYPE_COLOR,i.COLORTYPE_COLOR_ALPHA,i.COLORTYPE_ALPHA].indexOf(t.colorType))throw new Error("option color type:"+t.colorType+" is not supported at present");if(-1===[i.COLORTYPE_GRAYSCALE,i.COLORTYPE_COLOR,i.COLORTYPE_COLOR_ALPHA,i.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")};l.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},l.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},l.prototype.filterData=function(t,e,r){var n=o(t,e,r,this._options),a=i.COLORTYPE_TO_BPP_MAP[this._options.colorType];return s(n,e,r,this._options,a)},l.prototype._packChunk=function(t,e){var r=e?e.length:0,i=new n(r+12);return i.writeUInt32BE(r,0),i.writeUInt32BE(t,4),e&&e.copy(i,8),i.writeInt32BE(a.crc32(i.slice(4,i.length-4)),i.length-4),i},l.prototype.packGAMA=function(t){var e=new n(4);return e.writeUInt32BE(Math.floor(t*i.GAMMA_DIVISION),0),this._packChunk(i.TYPE_gAMA,e)},l.prototype.packIHDR=function(t,e){var r=new n(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(i.TYPE_IHDR,r)},l.prototype.packIDAT=function(t){return this._packChunk(i.TYPE_IDAT,t)},l.prototype.packIEND=function(){return this._packChunk(i.TYPE_IEND,null)}},28144:t=>{"use strict";t.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}},82592:(t,e,r)=>{"use strict";var n=r(93912),i=r(59160),a=r(95508),o=r(32112),s=r(55832),u=r(83712),l=r(4076),c=t.exports=function(t){a.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),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=t,this.writable=!0,this._parser.start()};n.inherits(c,a),c.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},c.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i.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,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:r});var n=e,a=this.emit.bind(this,"error");this._inflate.on("error",(function(t){n&&a(t)})),this._filter.on("complete",this._complete.bind(this));var o=this._filter.write.bind(this._filter);this._inflate.on("data",(function(t){n&&(t.length>n&&(t=t.slice(0,n)),n-=t.length,o(t))})),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},c.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new o(this._bitmapInfo)},c.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},c.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},c.prototype._simpleTransparency=function(){this._metaData.alpha=!0},c.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},c.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},c.prototype._complete=function(t){if(!this.errord){try{var e=u.dataToBitMap(t,this._bitmapInfo),r=l(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",r)}}},69732:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=!0,a=r(59160),o=r(10576);a.deflateSync||(i=!1);var s=r(24360),u=r(3688),l=r(55832),c=r(83712),h=r(4076);t.exports=function(t,e){if(!i)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var r,f,d,p=[],m=new s(t),g=new l(e,{read:m.read.bind(m),error:function(t){r=t},metadata:function(t){f=t},gamma:function(t){d=t},palette:function(t){f.palette=t},transColor:function(t){f.transColor=t},inflateData:function(t){p.push(t)},simpleTransparency:function(){f.alpha=!0}});if(g.start(),m.process(),r)throw r;var b,v=n.concat(p);if(p.length=0,f.interlace)b=a.inflateSync(v);else{var y=(1+(f.width*f.bpp*f.depth+7>>3))*f.height;b=o(v,{chunkSize:y,maxLength:y})}if(v=null,!b||!b.length)throw new Error("bad png - invalid inflate data response");var w=u.process(b,f);v=null;var _=c.dataToBitMap(w,f);w=null;var k=h(_,f);return f.data=k,f.gamma=d||0,f}},55832:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(46884),a=r(19828),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[i.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[i.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[i.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[i.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[i.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[i.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,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(i.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=i.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))},o.prototype._parseChunkBegin=function(t){for(var e=t.readUInt32BE(0),r=t.readUInt32BE(4),o="",s=4;s<8;s++)o+=String.fromCharCode(t[s]);var u=Boolean(32&t[4]);if(this._hasIHDR||r===i.TYPE_IHDR){if(this._crc=new a,this._crc.write(new n(o)),this._chunks[r])return this._chunks[r](e);u?this.read(e+4,this._skipChunk.bind(this)):this.error(new Error("Unsupported critical chunk type "+o))}else this.error(new Error("Expected IHDR on beggining"))},o.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},o.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))},o.prototype._handleIHDR=function(t){this.read(t,this._parseIHDR.bind(this))},o.prototype._parseIHDR=function(t){this._crc.write(t);var e=t.readUInt32BE(0),r=t.readUInt32BE(4),n=t[8],a=t[9],o=t[10],s=t[11],u=t[12];if(8===n||4===n||2===n||1===n||16===n)if(a in i.COLORTYPE_TO_BPP_MAP)if(0===o)if(0===s)if(0===u||1===u){this._colorType=a;var l=i.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:r,depth:n,interlace:Boolean(u),palette:Boolean(a&i.COLORTYPE_PALETTE),color:Boolean(a&i.COLORTYPE_COLOR),alpha:Boolean(a&i.COLORTYPE_ALPHA),bpp:l,colorType:a}),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))},o.prototype._handlePLTE=function(t){this.read(t,this._parsePLTE.bind(this))},o.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()},o.prototype._handleTRNS=function(t){this.simpleTransparency(),this.read(t,this._parseTRNS.bind(this))},o.prototype._parseTRNS=function(t){if(this._crc.write(t),this._colorType===i.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===i.COLORTYPE_GRAYSCALE&&this.transColor([t.readUInt16BE(0)]),this._colorType===i.COLORTYPE_COLOR&&this.transColor([t.readUInt16BE(0),t.readUInt16BE(2),t.readUInt16BE(4)]),this._handleChunkEnd()},o.prototype._handleGAMA=function(t){this.read(t,this._parseGAMA.bind(this))},o.prototype._parseGAMA=function(t){this._crc.write(t),this.gamma(t.readUInt32BE(0)/i.GAMMA_DIVISION),this._handleChunkEnd()},o.prototype._handleIDAT=function(t){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-t,this._parseIDAT.bind(this,t))},o.prototype._parseIDAT=function(t,e){if(this._crc.write(e),this._colorType===i.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw new Error("Expected palette not found");this.inflateData(e);var r=t-e.length;r>0?this._handleIDAT(r):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}},1312:(t,e,r)=>{"use strict";var n=r(69732),i=r(36432);e.read=function(t,e){return n(t,e||{})},e.write=function(t,e){return i(t,e)}},53952:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(26512),a=r(93912),o=r(67084),s=r(82592),u=r(21188),l=r(1312),c=e.PNG=function(t){o.call(this),t=t||{},this.width=0|t.width,this.height=0|t.height,this.data=this.width>0&&this.height>0?new n(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 s(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 u(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"))};a.inherits(c,o),c.sync=l,c.prototype.pack=function(){return this.data&&this.data.length?(i.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},c.prototype.parse=function(t,e){var r,n;return 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)),this.end(t),this},c.prototype.write=function(t){return this._parser.write(t),!0},c.prototype.end=function(t){this._parser.end(t)},c.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},c.prototype._gamma=function(t){this.gamma=t},c.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},c.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 u=0;u<a;u++)t.data.copy(e.data,(s+u)*e.width+o<<2,(n+u)*t.width+r<<2,(n+u)*t.width+r+i<<2)},c.prototype.bitblt=function(t,e,r,n,i,a,o){return c.bitblt(this,t,e,r,n,i,a,o),this},c.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}},c.prototype.adjustGamma=function(){c.adjustGamma(this)}},10576:(t,e,r)=>{"use strict";var n=r(26512),i=r(33296).Buffer,a=r(46584).ok,o=r(59160),s=r(93912),u=r(33296).kMaxLength;function l(t){if(!(this instanceof l))return new l(t);t&&t.chunkSize<o.Z_MIN_CHUNK&&(t.chunkSize=o.Z_MIN_CHUNK),o.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 c(t,e){e&&n.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}function h(t,e){return function(t,e){if("string"==typeof e&&(e=i.from(e)),!(e instanceof i))throw new TypeError("Not a string or buffer");var r=t._finishFlushFlag;return null==r&&(r=o.Z_FINISH),t._processChunk(e,r)}(new l(e),t)}l.prototype._processChunk=function(t,e,r){if("function"==typeof r)return o.Inflate._processChunk.call(this,t,e,r);var n,s=this,l=t&&t.length,h=this._chunkSize-this._offset,f=this._maxLength,d=0,p=[],m=0;function g(t,e){if(!s._hadError){var r=h-e;if(a(r>=0,"have should not go down"),r>0){var n=s._buffer.slice(s._offset,s._offset+r);if(s._offset+=r,n.length>f&&(n=n.slice(0,f)),p.push(n),m+=n.length,0==(f-=n.length))return!1}return(0===e||s._offset>=s._chunkSize)&&(h=s._chunkSize,s._offset=0,s._buffer=i.allocUnsafe(s._chunkSize)),0===e&&(d+=l-t,l=t,!0)}}this.on("error",(function(t){n=t})),a(this._handle,"zlib binding closed");do{var b=this._handle.writeSync(e,t,d,l,this._buffer,this._offset,h);b=b||this._writeState}while(!this._hadError&&g(b[0],b[1]));if(this._hadError)throw n;if(m>=u)throw c(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes");var v=i.concat(p,m);return c(this),v},s.inherits(l,o.Inflate),t.exports=e=h,e.Inflate=l,e.createInflate=function(t){return new l(t)},e.inflateSync=h},24360:t=>{"use strict";var e=t.exports=function(t){this._buffer=t,this._reads=[]};e.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})},e.prototype.process=function(){for(;this._reads.length>0&&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 this._reads.length>0?new Error("There are some read requests waitng on finished stream"):this._buffer.length>0?new Error("unrecognised content at end of stream"):void 0}},26512:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var s,u=[],l=!1,c=-1;function h(){l&&s&&(l=!1,s.length?u=s.concat(u):c=-1,u.length&&f())}function f(){if(!l){var t=o(h);l=!0;for(var e=u.length;e;){for(s=u,u=[];++c<e;)s&&s[c].run();c=-1,e=u.length}s=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new d(t,e)),1!==u.length||l||o(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},81848:(t,e,r)=>{"use strict";var n=r(26512),i=r(33296).Buffer;!function(){if("arm"!==n.arch){var e=[];!function(){for(var t=0;t<256;t++){for(var r=t,n=0;n<8;n++)1&r?r=3988292384^r>>>1:r>>>=1;e[t]=r>>>0}}(),t.exports=function(){for(var t=arguments.length,e=-1,r=0;r<t;r++)e=a(e,new i(arguments[r]));return(-1^e)>>>0}}else t.exports=r(67240);function a(t,r){for(var n=r.length,i=0;i<n;i++)t=e[255&(t^r[i])]^t>>>8;return t}}()},67240:(t,e,r)=>{"use strict";for(var n=r(33296).Buffer,i=[],a=0;a<256;a++){var o=i[a]=new n(4);o.writeUInt32BE(a,0);for(var s=0;s<8;s++){var u=1&o[0],l=1&o[1],c=1&o[2],h=1&o[3];o[0]=o[0]>>1^(h?237:0),o[1]=o[1]>>1^(h?184:0)^(u?128:0),o[2]=o[2]>>1^(h?131:0)^(l?128:0),o[3]=o[3]>>1^(h?32:0)^(c?128:0)}}function f(t,e){for(var r=e.length,n=0;n<r;n++){var a=i[t[3]^e[n]];t[3]=a[3]^t[2],t[2]=a[2]^t[1],t[1]=a[1]^t[0],t[0]=a[0]}}t.exports=function(){var t=arguments.length,e=new n(4);e.fill(255);for(var r=0;r<t;r++)f(e,new n(arguments[r]));return e[0]=255^e[0],e[1]=255^e[1],e[2]=255^e[2],e[3]=255^e[3],e.readUInt32BE(0)}},2213:(t,e,r)=>{"use strict";var n=r(33296).Buffer;function i(t,e,r){for(var n=1<<e-1;n;n>>>=1)t.push(n&r?1:0)}var a=function(t){for(var e={},r=0;r<45;r++)e["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"[r]]=r;return e}();t.exports=function t(e,r){var o,s=typeof e;if("string"==s||"number"==s)e=new n(o=""+e);else if(n.isBuffer(e))o=e.toString();else{if(!Array.isArray(e))throw new Error("Bad data");o=(e=new n(e)).toString()}if(/^[0-9]+$/.test(o)){if(e.length>7089)throw new Error("Too much data");return function(t){for(var e=t.length,r=[],n=0;n<e;n+=3){var a=t.substr(n,3);i(r,Math.ceil(10*a.length/3),parseInt(a,10))}var o,s={};return i(o=[0,0,0,1],14,e),s.data27=o.concat(r),e<4096&&(i(o=[0,0,0,1],12,e),s.data10=o.concat(r)),e<1024&&(i(o=[0,0,0,1],10,e),s.data1=o.concat(r)),s}(o)}if(/^[0-9A-Z \$%\*\+\.\/\:\-]+$/.test(o)){if(e.length>4296)throw new Error("Too much data");return function(t){for(var e=t.length,r=[],n=0;n<e;n+=2){var o=6,s=a[t[n]];t[n+1]&&(o=11,s=45*s+a[t[n+1]]),i(r,o,s)}var u,l={};return i(u=[0,0,1,0],13,e),l.data27=u.concat(r),e<2048&&(i(u=[0,0,1,0],11,e),l.data10=u.concat(r)),e<512&&(i(u=[0,0,1,0],9,e),l.data1=u.concat(r)),l}(o)}if(r&&/^https?:/i.test(o))return function(e){var r=e.indexOf("/",8)+1||e.length,n=t(e.slice(0,r).toUpperCase(),!1);if(r>=e.length)return n;var i=t(e.slice(r),!1);return n.data27=n.data27.concat(i.data27),n.data10&&i.data10&&(n.data10=n.data10.concat(i.data10)),n.data1&&i.data1&&(n.data1=n.data1.concat(i.data1)),n}(o);if(e.length>2953)throw new Error("Too much data");return function(t){for(var e=t.length,r=[],n=0;n<e;n++)i(r,8,t[n]);var a,o={};return i(a=[0,1,0,0],16,e),o.data10=o.data27=a.concat(r),e<256&&(i(a=[0,1,0,0],8,e),o.data1=a.concat(r)),o}(e)}},2144:(t,e,r)=>{"use strict";for(var n=r(33296).Buffer,i=[1],a=[],o=1;o<256;o++){var s=i[o-1]<<1;s>255&&(s^=285),i[o]=s}for(o=0;o<255;o++)a[i[o]]=o;function u(t){for(;t<0;)t+=255;for(;t>255;)t-=255;return i[t]}function l(t){if(t<1||t>255)throw Error("Bad log("+t+")");return a[t]}var c=[[0],[0,0],[0,25,1]];function h(t){if(c[t])return c[t];var e=h(t-1),r=[];r[0]=e[0];for(var n=1;n<=t;n++)r[n]=l(u(e[n])^u(e[n-1]+t-1));return c[t]=r,r}t.exports=function(t,e){t=[].slice.call(t);for(var r=h(e),i=0;i<e;i++)t.push(0);for(;t.length>e;)if(t[0]){var a=l(t[0]);for(i=0;i<=e;i++)t[i]=t[i]^u(r[i]+a);t.shift()}else t.shift();return new n(t)}},59620:(t,e,r)=>{"use strict";var n=r(33296).Buffer;function i(t){var e=4*t+17,r=[],i=new n(e);i.fill(0),i=[].slice.call(i);for(var a=0;a<e;a++)r[a]=i.slice();return r}function a(t){for(var e=t.length,r=-3;r<=3;r++)for(var n=-3;n<=3;n++){var i=Math.max(r,n),a=Math.min(r,n),o=2==i&&a>=-2||-2==a&&i<=2?128:129;t[3+r][3+n]=o,t[3+r][e-4+n]=o,t[e-4+r][3+n]=o}for(r=0;r<8;r++)t[7][r]=t[r][7]=t[7][e-r-1]=t[r][e-8]=t[e-8][r]=t[e-1-r][7]=128}function o(t){var e=t.length;if(e>21){var r=e-13,n=Math.round(r/Math.ceil(r/28));n%2&&n++;for(var i=[],a=r+6;a>10;a-=n)i.unshift(a);i.unshift(6);for(var o=0;o<i.length;o++)for(var s=0;s<i.length;s++){var u=i[o],l=i[s];if(!t[u][l])for(var c=-2;c<=2;c++)for(var h=-2;h<=2;h++){var f=Math.max(c,h),d=Math.min(c,h),p=1==f&&d>=-1||-1==d&&f<=1?128:129;t[u+c][l+h]=p}}}for(o=8;o<e-8;o++)t[6][o]=t[o][6]=o%2?128:129}function s(t){for(var e=t.length,r=0;r<8;r++)6!=r&&(t[8][r]=t[r][8]=128),t[8][e-1-r]=128,t[e-1-r][8]=128;if(t[8][8]=128,t[e-8][8]=129,!(e<45))for(r=e-11;r<e-8;r++)for(var n=0;n<6;n++)t[r][n]=t[n][r]=128}var u,l=function(){for(var t=Array(32),e=Array(40),r=0;r<32;r++){for(var n=r<<10,i=5;i>0;i--)n>>>9+i&&(n^=1335<<i-1);t[r]=21522^(n|r<<10)}for(var a=7;a<=40;a++){for(n=a<<12,i=6;i>0;i--)n>>>11+i&&(n^=7973<<i-1);e[a]=n|a<<12}var o={L:1,M:0,Q:3,H:2};return function(r,n,i){var a=r.length,s=t[o[n]<<3|i];function u(t){return s>>t&1?129:128}for(var l=0;l<8;l++)r[8][a-1-l]=u(l),l<6&&(r[l][8]=u(l));for(l=8;l<15;l++)r[a-15+l][8]=u(l),l>8&&(r[8][14-l]=u(l));r[7][8]=u(6),r[8][8]=u(7),r[8][7]=u(8);var c=e[(a-17)/4];if(c)for(l=0;l<6;l++)for(var h=0;h<3;h++)r[a-11+h][l]=r[l][a-11+h]=c>>3*l+h&1?129:128}}(),c=(u=[function(t,e){return(t+e)%2==0},function(t,e){return t%2==0},function(t,e){return e%3==0},function(t,e){return(t+e)%3==0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0},function(t,e){return t*e%2+t*e%3==0},function(t,e){return(t*e%2+t*e%3)%2==0},function(t,e){return(t*e%3+(t+e)%2)%2==0}],function(t,e,r){var n,i,a=t.length,o=-1;n=i=a-1;for(var s=u[r],l=e.blocks[e.blocks.length-1].length,c=0;c<l;c++)for(var h=0;h<e.blocks.length;h++)e.blocks[h].length<=c||f(e.blocks[h][c]);for(l=e.ec_len,c=0;c<l;c++)for(h=0;h<e.ec.length;h++)f(e.ec[h][c]);if(i>-1)do{t[n][i]=s(n,i)?1:0}while(d());function f(e){for(var r=128;r;r>>=1){var a=!!(r&e);s(n,i)&&(a=!a),t[n][i]=a?1:0,d()}}function d(){do{if(i%2^i<6?o<0&&0==n||o>0&&n==a-1?(i--,o=-o):(i++,n+=o):i--,6==i&&i--,i<0)return!1}while(240&t[n][i]);return!0}});function h(t){for(var e=t.length,r=0,n=0;n<e;n++){for(var i=1&t[n][0],a=1,o=1;o<e;o++)(s=1&t[n][o])!=i?(a>=5&&(r+=a-2),i=s,a=1):a++;a>=5&&(r+=a-2)}for(o=0;o<e;o++){for(i=1&t[0][o],a=1,n=1;n<e;n++){var s;(s=1&t[n][o])!=i?(a>=5&&(r+=a-2),i=s,a=1):a++}a>=5&&(r+=a-2)}for(n=0;n<e-1;n++)for(o=0;o<e-1;o++){var u=t[n][o]+t[n][o+1]+t[n+1][o]+t[n+1][o+1]&7;0!=u&&4!=u||(r+=3)}function l(e){return 1&t[n][o+e]}function c(e){return 1&t[n+e][o]}for(n=0;n<e;n++)for(o=0;o<e;o++)o<e-6&&l(0)&&!l(1)&&l(2)&&l(3)&&l(4)&&!l(5)&&l(6)&&(o>=4&&!(l(-4)||l(-3)||l(-2)||l(-1))&&(r+=40),o<e-10&&!(l(7)||l(8)||l(9)||l(10))&&(r+=40)),n<e-6&&c(0)&&!c(1)&&c(2)&&c(3)&&c(4)&&!c(5)&&c(6)&&(n>=4&&!(c(-4)||c(-3)||c(-2)||c(-1))&&(r+=40),n<e-10&&!(c(7)||c(8)||c(9)||c(10))&&(r+=40));var h=0;for(n=0;n<e;n++)for(o=0;o<e;o++)1&t[n][o]&&h++;return r+10*Math.floor(Math.abs(10-20*h/(e*e)))}t.exports={getMatrix:function(t){var e=i(t.version);a(e),o(e),s(e);for(var r=1/0,n=0,u=0;u<8;u++){c(e,t,u),l(e,t.ec_level,u);var f=h(e);f<r&&(r=f,n=u)}return c(e,t,n),l(e,t.ec_level,n),e.map((function(t){return t.map((function(t){return 1&t}))}))},init:i,fillFinders:a,fillAlignAndTiming:o,fillStub:s,fillReserved:l,fillData:c,calculatePenalty:h}},80848:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(59160),a=r(81848),o=new n([137,80,78,71,13,10,26,10]),s=new n([0,0,0,13,73,72,68,82,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0]),u=new n([0,0,0,0,73,68,65,84]),l=new n([0,0,0,0,73,69,78,68,174,66,96,130]);t.exports={bitmap:function(t,e,r){var i=t.length,a=(i+2*r)*e,o=new n((a+1)*a);o.fill(255);for(var s=0;s<a;s++)o[s*(a+1)]=0;for(s=0;s<i;s++)for(var u=0;u<i;u++)if(t[s][u]){var l=((r+s)*(a+1)+(r+u))*e+1;o.fill(0,l,l+e);for(var c=1;c<e;c++)o.copy(o,l+c*(a+1),l,l+e)}return{data:o,size:a}},png:function(t,e){e.push(o);var r=n.concat([s]);r.writeUInt32BE(t.size,8),r.writeUInt32BE(t.size,12),r.writeUInt32BE(a(r.slice(4,-4)),21),e.push(r);var c=n.concat([u,i.deflateSync(t.data,{level:9}),new n(4)]);c.writeUInt32BE(c.length-12,0),c.writeUInt32BE(a(c.slice(4,-4)),c.length-4),e.push(c),e.push(l),e.push(null)}}},30328:(t,e,r)=>{"use strict";var n=r(33296).Buffer,i=r(2213),a=r(2144),o=r(59620);function s(t){return JSON.parse(JSON.stringify(t))}var u=["L","M","Q","H"],l=[[],[26,7,1,10,1,13,1,17,1],[44,10,1,16,1,22,1,28,1],[70,15,1,26,1,36,2,44,2],[100,20,1,36,2,52,2,64,4],[134,26,1,48,2,72,4,88,4],[172,36,2,64,4,96,4,112,4],[196,40,2,72,4,108,6,130,5],[242,48,2,88,4,132,6,156,6],[292,60,2,110,5,160,8,192,8],[346,72,4,130,5,192,8,224,8],[404,80,4,150,5,224,8,264,11],[466,96,4,176,8,260,10,308,11],[532,104,4,198,9,288,12,352,16],[581,120,4,216,9,320,16,384,16],[655,132,6,240,10,360,12,432,18],[733,144,6,280,10,408,17,480,16],[815,168,6,308,11,448,16,532,19],[901,180,6,338,13,504,18,588,21],[991,196,7,364,14,546,21,650,25],[1085,224,8,416,16,600,20,700,25],[1156,224,8,442,17,644,23,750,25],[1258,252,9,476,17,690,23,816,34],[1364,270,9,504,18,750,25,900,30],[1474,300,10,560,20,810,27,960,32],[1588,312,12,588,21,870,29,1050,35],[1706,336,12,644,23,952,34,1110,37],[1828,360,12,700,25,1020,34,1200,40],[1921,390,13,728,26,1050,35,1260,42],[2051,420,14,784,28,1140,38,1350,45],[2185,450,15,812,29,1200,40,1440,48],[2323,480,16,868,31,1290,43,1530,51],[2465,510,17,924,33,1350,45,1620,54],[2611,540,18,980,35,1440,48,1710,57],[2761,570,19,1036,37,1530,51,1800,60],[2876,570,19,1064,38,1590,53,1890,63],[3034,600,20,1120,40,1680,56,1980,66],[3196,630,21,1204,43,1770,59,2100,70],[3362,660,22,1260,45,1860,62,2220,74],[3532,720,24,1316,47,1950,65,2310,77],[3706,750,25,1372,49,2040,68,2430,81]];function c(t,e){var r,n=1;for(t.data1?r=Math.ceil(t.data1.length/8):n=10;n<10;n++)if((i=l[n][e]).data_len>=r)return s(i);for(t.data10?r=Math.ceil(t.data10.length/8):n=27;n<27;n++)if((i=l[n][e]).data_len>=r)return s(i);for(r=Math.ceil(t.data27.length/8);n<41;n++){var i;if((i=l[n][e]).data_len>=r)return s(i)}throw new Error("Too much data")}function h(t,e){var r=new n(e.data_len);r.fill(0);for(var i=(t=e.version<10?t.data1:e.version<27?t.data10:t.data27).length,o=0;o<i;o+=8){for(var s=0,u=0;u<8;u++)s=s<<1|(t[o+u]?1:0);r[o/8]=s}var l=236;for(o=Math.ceil((i+4)/8);o<r.length;o++)r[o]=l,l=236==l?17:236;var c=0;return e.blocks=e.blocks.map((function(t){var n=r.slice(c,c+t);return c+=t,e.ec.push(a(n,e.ec_len)),n})),e}l=l.map((function(t,e){if(!e)return{};for(var r={},n=1;n<8;n+=2){for(var i=t[0]-t[n],a=t[n+1],o=u[n/2|0],s={version:e,ec_level:o,data_len:i,ec_len:t[n]/a,blocks:[],ec:[]},l=a,c=i;l>0;l--){var h=c/l|0;s.blocks.push(h),c-=h}r[o]=s}return r})),t.exports={QR:function(t,e,r){e=u.indexOf(e)>-1?e:"M";var n=i(t,r),a=h(n,c(n,e));return o.getMatrix(a)},getTemplate:c,fillTemplate:h}},7976:(t,e,r)=>{"use strict";var n=r(26512),i=r(33296).Buffer,a=r(67084).Readable,o=r(30328).QR,s=r(80848),u=r(32528),l=function(){},c={parse_url:!1,ec_level:"M",size:5,margin:4,customize:null},h={parse_url:!1,ec_level:"M",margin:1,size:0};function f(t,e){t="string"==typeof t?{ec_level:t}:t||{};var r={type:String(e||t.type||"png").toLowerCase()},n="png"==r.type?c:h;for(var i in n)r[i]=i in t?t[i]:n[i];return r}t.exports={matrix:o,image:function(t,e){e=f(e);var r=o(t,e.ec_level,e.parse_url),i=new a;switch(i._read=l,e.type){case"svg":case"pdf":case"eps":n.nextTick((function(){u[e.type](r,i,e.margin,e.size)}));break;case"svgpath":n.nextTick((function(){var t=u.svg_object(r,e.margin,e.size);i.push(t.path),i.push(null)}));break;default:n.nextTick((function(){var t=s.bitmap(r,e.size,e.margin);e.customize&&e.customize(t),s.png(t,i)}))}return i},imageSync:function(t,e){e=f(e);var r,n=o(t,e.ec_level,e.parse_url),a=[];switch(e.type){case"svg":case"pdf":case"eps":u[e.type](n,a,e.margin,e.size),r=a.filter(Boolean).join("");break;default:var l=s.bitmap(n,e.size,e.margin);e.customize&&e.customize(l),s.png(l,a),r=i.concat(a.filter(Boolean))}return r},svgObject:function(t,e){e=f(e,"svg");var r=o(t,e.ec_level);return u.svg_object(r,e.margin)}}},32528:t=>{"use strict";function e(t){for(var e=t.length,r=[],n=-1;n<=e;n++)r[n]=[];var i=[];for(n=0;n<e;n++)for(var a=0;a<e;a++)r[n][a]||(r[n][a]=1,o(n,a)?o(n-1,a)||i.push(s(n,a,"right")):o(n,a-1)&&i.push(s(n,a,"down")));return i;function o(r,n){return!(r<0||n<0||r>=e||n>=e||!t[r][n])}function s(t,e,n){r[t][e]=1;var i=[];i.push(["M",e,t]);var a=t,s=e,u=0;do{switch(n){case"right":r[a][s]=1,o(a,s)?(r[a-1][s]=1,o(a-1,s)?(i.push(["h",u]),u=0,n="up"):(u++,s++)):(i.push(["h",u]),u=0,n="down");break;case"left":r[a-1][s-1]=1,o(a-1,s-1)?(r[a][s-1]=1,o(a,s-1)?(i.push(["h",-u]),u=0,n="down"):(u++,s--)):(i.push(["h",-u]),u=0,n="up");break;case"down":r[a][s-1]=1,o(a,s-1)?(r[a][s]=1,o(a,s)?(i.push(["v",u]),u=0,n="right"):(u++,a++)):(i.push(["v",u]),u=0,n="left");break;case"up":r[a-1][s]=1,o(a-1,s)?(r[a-1][s-1]=1,o(a-1,s-1)?(i.push(["v",-u]),u=0,n="left"):(u++,a--)):(i.push(["v",-u]),u=0,n="right")}}while(a!=t||s!=e);return i}}function r(t,r,n){e(t).forEach((function(t){for(var e="",i=0;i<t.length;i++){var a=t[i];"M"===a[0]?e+="M"+(a[1]+n)+" "+(a[2]+n):e+=a.join("")}e+="z",r.push(e)}))}t.exports={svg:function(t,e,n,i){var a=t.length+2*n;if(e.push('<svg xmlns="http://www.w3.org/2000/svg" '),i>0){var o=a*i;e.push('width="'+o+'" height="'+o+'" ')}e.push('viewBox="0 0 '+a+" "+a+'">'),e.push('<path d="'),r(t,e,n),e.push('"/></svg>'),e.push(null)},eps:function(t,r,n){var i=t.length,a=9*(i+2*n);r.push(["%!PS-Adobe-3.0 EPSF-3.0","%%BoundingBox: 0 0 "+a+" "+a,"/h { 0 rlineto } bind def","/v { 0 exch neg rlineto } bind def","/M { neg "+(i+n)+" add moveto } bind def","/z { closepath } bind def","9 9 scale",""].join("\n")),e(t).forEach((function(t){for(var e="",i=0;i<t.length;i++){var a=t[i];"M"===a[0]?e+=a[1]+n+" "+a[2]+" M ":e+=a[1]+" "+a[0]+" "}e+="z\n",r.push(e)})),r.push("fill\n%%EOF\n"),r.push(null)},pdf:function(t,r,n){var i=t.length,a=9*(i+2*n),o=["%PDF-1.0\n\n","1 0 obj << /Type /Catalog /Pages 2 0 R >> endobj\n","2 0 obj << /Type /Pages /Count 1 /Kids [ 3 0 R ] >> endobj\n"];o.push("3 0 obj << /Type /Page /Parent 2 0 R /Resources <<>> /Contents 4 0 R /MediaBox [ 0 0 "+a+" "+a+" ] >> endobj\n");var s="9 0 0 9 0 0 cm\n";s+=e(t).map((function(t){for(var e,r,a="",o=0;o<t.length;o++){var s=t[o];switch(s[0]){case"M":a+=(e=s[1]+n)+" "+(r=i-s[2]+n)+" m ";break;case"h":a+=(e+=s[1])+" "+r+" l ";break;case"v":a+=e+" "+(r-=s[1])+" l "}}return a+"h"})).join("\n"),s+="\nf\n",o.push("4 0 obj << /Length "+s.length+" >> stream\n"+s+"endstream\nendobj\n");for(var u="xref\n0 5\n0000000000 65535 f \n",l=1,c=o[0].length;l<5;l++)u+=("0000000000"+c).substr(-10)+" 00000 n \n",c+=o[l].length;o.push(u,"trailer << /Root 1 0 R /Size 5 >>\n","startxref\n"+c+"\n%%EOF\n"),r.push(o.join("")),r.push(null)},svg_object:function(t,e){var n=[];return r(t,n,e),{size:t.length+2*e,path:n.filter(Boolean).join("")}}}},43872:t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"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))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,a,o,s,u;if("string"==typeof e&&(a="not ",e.substr(0,4)===a)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))o="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var l=("number"!=typeof u&&(u=0),u+1>(s=t).length||-1===s.indexOf(".",u)?"argument":"property");o='The "'.concat(t,'" ').concat(l," ").concat(i," ").concat(n(e,"type"))}return o+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.i=e},73228:(t,e,r)=>{"use strict";var n=r(26512),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var a=r(41024),o=r(28352);r(95868)(c,a);for(var s=i(o.prototype),u=0;u<s.length;u++){var l=s[u];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);a.call(this,t),o.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",h)))}function h(){this._writableState.ended||n.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.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)}})},60936:(t,e,r)=>{"use strict";t.exports=i;var n=r(74456);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(95868)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},41024:(t,e,r)=>{"use strict";var n,i=r(26512);t.exports=E,E.ReadableState=x,r(84936).EventEmitter;var a,o=function(t,e){return t.listeners(e).length},s=r(28088),u=r(33296).Buffer,l=r.g.Uint8Array||function(){},c=r(13716);a=c&&c.debuglog?c.debuglog("stream"):function(){};var h,f,d,p=r(74776),m=r(5128),g=r(57124).getHighWaterMark,b=r(43872).i,v=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(95868)(E,s);var k=m.errorOrDestroy,B=["error","close","destroy","pause","resume"];function x(t,e,i){n=n||r(73228),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new p,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.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=r(87008).o),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function E(t){if(n=n||r(73228),!(this instanceof E))return new E(t);var e=this instanceof n;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function C(t,e,r,n,i){a("readableAddChunk",e);var o,s=t._readableState;if(null===e)s.reading=!1,function(t,e){if(a("onEofChunk"),!e.ended){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?P(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,S(t)))}}(t,s);else if(i||(o=function(t,e){var r,n;return n=e,u.isBuffer(n)||n instanceof l||"string"==typeof e||void 0===e||t.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],e)),r}(s,e)),o)k(t,o);else if(s.objectMode||e&&e.length>0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)s.endEmitted?k(t,new _):A(t,s,e,!0);else if(s.ended)k(t,new y);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?A(t,s,e,!1):T(t,s)):A(t,s,e,!1)}else n||(s.reading=!1,T(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function A(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&&P(t)),T(t,e)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=m.destroy,E.prototype._undestroy=m.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=u.from(t,e),e=""),r=!0),C(this,t,e,!1,r)},E.prototype.unshift=function(t){return C(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){h||(h=r(87008).o);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function M(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>=I?t=I:(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 P(t){var e=t._readableState;a("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(a("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(S,t))}function S(t){var e=t._readableState;a("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function T(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(a("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function L(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function O(t){a("readable nexttick read 0"),t.read(0)}function F(t,e){a("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(a("flow",e.flowing);e.flowing&&null!==t.read(););}function U(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 D(t){var e=t._readableState;a("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(z,e,t))}function z(t,e){if(a("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function G(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}E.prototype.read=function(t){a("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:e.length>0)||e.ended))return a("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?D(this):P(this),null;if(0===(t=M(t,e))&&e.ended)return 0===e.length&&D(this),null;var n,i=e.needReadable;return a("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&a("length less than watermark",i=!0),e.ended||e.reading?a("reading or ended",i=!1):i&&(a("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=M(r,e))),null===(n=t>0?U(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&D(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){k(this,new w("_read()"))},E.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,e);var s=e&&!1===e.end||t===i.stdout||t===i.stderr?m:u;function u(){a("onend"),t.end()}n.endEmitted?i.nextTick(s):r.once("end",s),t.on("unpipe",(function e(i,o){a("onunpipe"),i===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,a("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",e),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",h),c=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;a("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,N(t))}}(r);t.on("drain",l);var c=!1;function h(e){a("ondata");var i=t.write(e);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==G(n.pipes,t))&&!c&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(e){a("onerror",e),m(),t.removeListener("error",f),0===o(t,"error")&&k(t,e)}function d(){t.removeListener("finish",p),m()}function p(){a("onfinish"),t.removeListener("close",d),m()}function m(){a("unpipe"),r.unpipe(t)}return r.on("data",h),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)}(t,"error",f),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=G(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},E.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?P(this):n.reading||i.nextTick(O,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(L,this),r},E.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(L,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(a("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(F,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(a("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<B.length;o++)t.on(B[o],this.emit.bind(this,B[o]));return this._read=function(e){a("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=r(77904)),f(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=U,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(t,e){return void 0===d&&(d=r(40932)),d(E,t,e)})},74456:(t,e,r)=>{"use strict";t.exports=c;var n=r(43872).i,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(73228);function l(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,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);u.call(this,t),this._transformState={afterTransform:l.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",h)}function h(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(e,r){f(t,e,r)}))}function f(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)}r(95868)(c,u),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,r){r(new i("_transform()"))},c.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)}},c.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))},c.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},28352:(t,e,r)=>{"use strict";var n,i=r(26512);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(undefined),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=E,E.WritableState=x;var o,s={deprecate:r(76648)},u=r(28088),l=r(33296).Buffer,c=r.g.Uint8Array||function(){},h=r(5128),f=r(57124).getHighWaterMark,d=r(43872).i,p=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,k=h.errorOrDestroy;function B(){}function x(t,e,o){n=n||r(73228),t=t||{},"boolean"!=typeof o&&(o=e instanceof n),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,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,a=r.writecb;if("function"!=typeof a)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,a){--e.pendingcb,r?(i.nextTick(a,n),i.nextTick(S,t,e),t._writableState.errorEmitted=!0,k(t,n)):(a(n),t._writableState.errorEmitted=!0,k(t,n),S(t,e))}(t,r,n,e,a);else{var o=M(r)||t.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||I(t,r),n?i.nextTick(A,t,r,o,a):A(t,r,o,a)}}(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.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function E(t){var e=this instanceof(n=n||r(73228));if(!e&&!o.call(E,this))return new E(t);this._writableState=new x(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)),u.call(this)}function C(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),S(t,e)}function I(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,C(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,h=r.callback;if(C(t,e,!1,e.objectMode?1:l.length,l,c,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function P(t,e){t._final((function(r){e.pendingcb--,r&&k(t,r),e.prefinished=!0,t.emit("prefinish"),S(t,e)}))}function S(t,e){var r=M(e);if(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,i.nextTick(P,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(95868)(E,u),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:s.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]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(t){return!!o.call(this,t)||this===E&&t&&t._writableState instanceof x}})):o=function(t){return t instanceof this},E.prototype.pipe=function(){k(this,new b)},E.prototype.write=function(t,e,r){var n,a=this._writableState,o=!1,s=!a.objectMode&&(n=t,l.isBuffer(n)||n instanceof c);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=a.defaultEncoding),"function"!=typeof r&&(r=B),a.ending?function(t,e){var r=new w;k(t,r),i.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var a;return null===r?a=new y:"string"==typeof r||e.objectMode||(a=new p("chunk",["string","Buffer"],r)),!a||(k(t,a),i.nextTick(n,a),!1)}(this,a,t,r))&&(a.pendingcb++,o=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r)),e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else C(t,e,!1,s,n,i,a);return u}(this,a,s,t,e,r)),o},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||I(this,t))},E.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=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,S(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(t,e){e(t)}},77904:(t,e,r)=>{"use strict";var n,i=r(26512);function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(69856),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function m(t){var e=t[s];if(null!==e){var r=t[d].read();null!==r&&(t[h]=null,t[s]=null,t[u]=null,e(p(r,!1)))}}function g(t){i.nextTick(m,t)}var b=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((a(n={get stream(){return this[d]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(e,r){i.nextTick((function(){t[l]?r(t[l]):e(p(void 0,!0))}))}));var r,n=this[h];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(p(void 0,!0)):e[f](r,n)}),n)}}(n,this));else{var a=this[d].read();if(null!==a)return Promise.resolve(p(a,!1));r=new Promise(this[f])}return this[h]=r,r}},Symbol.asyncIterator,(function(){return this})),a(n,"return",(function(){var t=this;return new Promise((function(e,r){t[d].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),b);t.exports=function(t){var e,r=Object.create(v,(a(e={},d,{value:t,writable:!0}),a(e,s,{value:null,writable:!0}),a(e,u,{value:null,writable:!0}),a(e,l,{value:null,writable:!0}),a(e,c,{value:t._readableState.endEmitted,writable:!0}),a(e,f,{value:function(t,e){var n=r[d].read();n?(r[h]=null,r[s]=null,r[u]=null,t(p(n,!1))):(r[s]=t,r[u]=e)},writable:!0}),e));return r[h]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];return null!==e&&(r[h]=null,r[s]=null,r[u]=null,e(t)),void(r[l]=t)}var n=r[s];null!==n&&(r[h]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[c]=!0})),t.on("readable",g.bind(null,r)),r}},74776:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}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}function a(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)}}var o=r(33296).Buffer,s=r(73236).inspect,u=s&&s.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);for(var e,r,n,i=o.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=i,n=s,o.prototype.copy.call(e,r,n),s+=a.data.length,a=a.next;return i}},{key:"consume",value: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}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value: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,e.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=o.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,r.data=i.slice(a));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&a(e.prototype,r),t}()},5128:(t,e,r)=>{"use strict";var n=r(26512);function i(t,e){o(t,e),a(t)}function a(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,t)):n.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(a,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(a,r),e(t)):n.nextTick(a,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)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},69856:(t,e,r)=>{"use strict";var n=r(43872).i.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,a){if("function"==typeof r)return t(e,null,r);r||(r={}),a=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(a||i);var o=r.readable||!1!==r.readable&&e.readable,s=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||c()},l=e._writableState&&e._writableState.finished,c=function(){s=!1,l=!0,o||a.call(e)},h=e._readableState&&e._readableState.endEmitted,f=function(){o=!1,h=!0,s||a.call(e)},d=function(t){a.call(e,t)},p=function(){var t;return o&&!h?(e._readableState&&e._readableState.ended||(t=new n),a.call(e,t)):s&&!l?(e._writableState&&e._writableState.ended||(t=new n),a.call(e,t)):void 0},m=function(){e.req.on("finish",c)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",c),e.on("abort",p),e.req?m():e.on("request",m)):s&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",f),e.on("finish",c),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",c),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("end",f),e.removeListener("error",d),e.removeListener("close",p)}}},40932:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},2856:(t,e,r)=>{"use strict";var n,i=r(43872).i,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t){t()}function l(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var c,h=function(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a("streams");var f=e.map((function(t,i){var a=i<e.length-1;return function(t,e,i,a){a=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(a);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=r(69856)),n(t,{readable:e,writable:i},(function(t){if(t)return a(t);s=!0,a()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void a(e||new o("pipe"))}}(t,a,i>0,(function(t){c||(c=t),t&&f.forEach(u),a||(f.forEach(u),h(c))}))}));return e.reduce(l)}},57124:(t,e,r)=>{"use strict";var n=r(43872).i.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new n(i?r:"highWaterMark",a);return Math.floor(a)}return t.objectMode?16:16384}}},28088:(t,e,r)=>{t.exports=r(84936).EventEmitter},67084:(t,e,r)=>{t.exports=i;var n=r(84936).EventEmitter;function i(){n.call(this)}r(95868)(i,n),i.Readable=r(41024),i.Writable=r(28352),i.Duplex=r(73228),i.Transform=r(74456),i.PassThrough=r(60936),i.finished=r(69856),i.pipeline=r(2856),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",a),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",u));var o=!1;function s(){o||(o=!0,t.end())}function u(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",i),t.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",l),t.on("error",l),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},87008:(t,e,r)=>{"use strict";var n=r(26032).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=u,this.end=l,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=c,this.end=h,e=3;break;default:return this.write=f,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,r){if(128!=(192&e[0]))return t.lastNeed=0,"<22>";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"<22>";if(t.lastNeed>2&&e.length>2&&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 u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&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}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(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 f(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.o=a,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]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=o(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=o(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):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}},26032:(t,e,r)=>{var n=r(33296),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?t.exports=n:(a(n,e),e.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)}},39744:(t,e,r)=>{"use strict";var n=r(33296).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractTokenizer=void 0;const i=r(30432);e.AbstractTokenizer=class{constructor(t){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=t||{}}async readToken(t,e=this.position){const r=n.alloc(t.len);if(await this.readBuffer(r,{position:e})<t.len)throw new i.EndOfStreamError;return t.get(r,0)}async peekToken(t,e=this.position){const r=n.alloc(t.len);if(await this.peekBuffer(r,{position:e})<t.len)throw new i.EndOfStreamError;return t.get(r,0)}async readNumber(t){if(await this.readBuffer(this.numBuffer,{length:t.len})<t.len)throw new i.EndOfStreamError;return t.get(this.numBuffer,0)}async peekNumber(t){if(await this.peekBuffer(this.numBuffer,{length:t.len})<t.len)throw new i.EndOfStreamError;return t.get(this.numBuffer,0)}async ignore(t){if(void 0!==this.fileInfo.size){const e=this.fileInfo.size-this.position;if(t>e)return this.position+=e,e}return this.position+=t,t}async close(){}normalizeOptions(t,e){if(e&&void 0!==e.position&&e.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return e?{mayBeLess:!0===e.mayBeLess,offset:e.offset?e.offset:0,length:e.length?e.length:t.length-(e.offset?e.offset:0),position:e.position?e.position:this.position}:{mayBeLess:!1,offset:0,length:t.length,position:this.position}}}},7040:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BufferTokenizer=void 0;const n=r(30432),i=r(39744);class a extends i.AbstractTokenizer{constructor(t,e){super(e),this.uint8Array=t,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:t.length}async readBuffer(t,e){if(e&&e.position){if(e.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");this.position=e.position}const r=await this.peekBuffer(t,e);return this.position+=r,r}async peekBuffer(t,e){const r=this.normalizeOptions(t,e),i=Math.min(this.uint8Array.length-r.position,r.length);if(!r.mayBeLess&&i<r.length)throw new n.EndOfStreamError;return t.set(this.uint8Array.subarray(r.position,r.position+i),r.offset),i}async close(){}}e.BufferTokenizer=a},62860:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromFile=e.FileTokenizer=void 0;const n=r(39744),i=r(30432),a=r(50200);class o extends n.AbstractTokenizer{constructor(t,e){super(e),this.fd=t}async readBuffer(t,e){const r=this.normalizeOptions(t,e);this.position=r.position;const n=await a.read(this.fd,t,r.offset,r.length,r.position);if(this.position+=n.bytesRead,n.bytesRead<r.length&&(!e||!e.mayBeLess))throw new i.EndOfStreamError;return n.bytesRead}async peekBuffer(t,e){const r=this.normalizeOptions(t,e),n=await a.read(this.fd,t,r.offset,r.length,r.position);if(!r.mayBeLess&&n.bytesRead<r.length)throw new i.EndOfStreamError;return n.bytesRead}async close(){return a.close(this.fd)}}e.FileTokenizer=o,e.fromFile=async function(t){const e=await a.stat(t);if(!e.isFile)throw new Error(`File not a file: ${t}`);const r=await a.open(t,"r");return new o(r,{path:t,size:e.size})}},50200:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readFile=e.writeFileSync=e.writeFile=e.read=e.open=e.close=e.stat=e.createReadStream=e.pathExists=void 0;const n=r(69380);e.pathExists=n.existsSync,e.createReadStream=n.createReadStream,e.stat=async function(t){return new Promise(((e,r)=>{n.stat(t,((t,n)=>{t?r(t):e(n)}))}))},e.close=async function(t){return new Promise(((e,r)=>{n.close(t,(t=>{t?r(t):e()}))}))},e.open=async function(t,e){return new Promise(((r,i)=>{n.open(t,e,((t,e)=>{t?i(t):r(e)}))}))},e.read=async function(t,e,r,i,a){return new Promise(((o,s)=>{n.read(t,e,r,i,a,((t,e,r)=>{t?s(t):o({bytesRead:e,buffer:r})}))}))},e.writeFile=async function(t,e){return new Promise(((r,i)=>{n.writeFile(t,e,(t=>{t?i(t):r()}))}))},e.writeFileSync=function(t,e){n.writeFileSync(t,e)},e.readFile=async function(t){return new Promise(((e,r)=>{n.readFile(t,((t,n)=>{t?r(t):e(n)}))}))}},39488:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadStreamTokenizer=void 0;const n=r(39744),i=r(30432);class a extends n.AbstractTokenizer{constructor(t,e){super(e),this.streamReader=new i.StreamReader(t)}async getFileInfo(){return this.fileInfo}async readBuffer(t,e){const r=this.normalizeOptions(t,e),n=r.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(t,e);if(n<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===r.length)return 0;const a=await this.streamReader.read(t,r.offset,r.length);if(this.position+=a,(!e||!e.mayBeLess)&&a<r.length)throw new i.EndOfStreamError;return a}async peekBuffer(t,e){const r=this.normalizeOptions(t,e);let n=0;if(r.position){const e=r.position-this.position;if(e>0){const i=new Uint8Array(r.length+e);return n=await this.peekBuffer(i,{mayBeLess:r.mayBeLess}),t.set(i.subarray(e),r.offset),n-e}if(e<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(t,r.offset,r.length)}catch(t){if(e&&e.mayBeLess&&t instanceof i.EndOfStreamError)return 0;throw t}if(!r.mayBeLess&&n<r.length)throw new i.EndOfStreamError}return n}async ignore(t){const e=Math.min(256e3,t),r=new Uint8Array(e);let n=0;for(;n<t;){const i=t-n,a=await this.readBuffer(r,{length:Math.min(e,i)});if(a<0)return a;n+=a}return n}}e.ReadStreamTokenizer=a},53345:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;const n=r(39488),i=r(7040);var a=r(30432);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return a.EndOfStreamError}}),e.fromStream=function(t,e){return e=e||{},new n.ReadStreamTokenizer(t,e)},e.fromBuffer=function(t,e){return new i.BufferTokenizer(t,e)}},61292:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromStream=e.fromBuffer=e.EndOfStreamError=e.fromFile=void 0;const n=r(50200),i=r(53345);var a=r(62860);Object.defineProperty(e,"fromFile",{enumerable:!0,get:function(){return a.fromFile}});var o=r(53345);Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}}),Object.defineProperty(e,"fromBuffer",{enumerable:!0,get:function(){return o.fromBuffer}}),e.fromStream=async function(t,e){if(e=e||{},t.path){const r=await n.stat(t.path);e.path=t.path,e.size=r.size}return i.fromStream(t,e)}},35808:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clone=s,e.addLast=l,e.addFirst=c,e.removeLast=h,e.removeFirst=f,e.insert=d,e.removeAt=p,e.replaceAt=m,e.getIn=g,e.set=b,e.setIn=v,e.update=w,e.updateIn=_,e.merge=k,e.mergeDeep=B,e.mergeIn=x,e.omit=E,e.addDefaults=C,e.default=void 0;const r="INVALID_ARGS",n=!1;function i(t){throw new Error(t)}function a(t){const e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}const o={}.hasOwnProperty;function s(t){if(Array.isArray(t))return t.slice();const e=t,r=a(e),n={};for(let t=0;t<r.length;t++){const i=r[t];n[i]=e[i]}return n}function u(t){return null!=t&&"object"==typeof t}function l(t,e){return Array.isArray(e)?t.concat(e):t.concat([e])}function c(t,e){return Array.isArray(e)?e.concat(t):[e].concat(t)}function h(t){return t.length?t.slice(0,t.length-1):t}function f(t){return t.length?t.slice(1):t}function d(t,e,r){return t.slice(0,e).concat(Array.isArray(r)?r:[r]).concat(t.slice(e))}function p(t,e){return e>=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function m(t,e,r){if(t[e]===r)return t;const n=t.length,i=Array(n);for(let e=0;e<n;e++)i[e]=t[e];return i[e]=r,i}function g(t,e){if(Array.isArray(e)||i(n?"A path array should be provided when calling getIn()":r),null==t)return;let a=t;for(let t=0;t<e.length;t++){const r=e[t];if(a=null!=a?a[r]:void 0,void 0===a)return a}return a}function b(t,e,r){let n=t;if(null==n&&(n="number"==typeof e?[]:{}),n[e]===r)return n;const i=s(n);return i[e]=r,i}function v(t,e,r){return e.length?y(t,e,r,0):r}function y(t,e,r,n){let i;const a=e[n];return i=n===e.length-1?r:y(u(t)&&u(t[a])?t[a]:"number"==typeof e[n+1]?[]:{},e,r,n+1),b(t,a,i)}function w(t,e,r){return b(t,e,r(null==t?void 0:t[e]))}function _(t,e,r){return v(t,e,r(g(t,e)))}function k(t,e,r,n,i,a,...o){return o.length?A.call(null,!1,!1,t,e,r,n,i,a,...o):A(!1,!1,t,e,r,n,i,a)}function B(t,e,r,n,i,a,...o){return o.length?A.call(null,!1,!0,t,e,r,n,i,a,...o):A(!1,!0,t,e,r,n,i,a)}function x(t,e,r,n,i,a,o,...s){let u,l=g(t,e);return null==l&&(l={}),u=s.length?A.call(null,!1,!1,l,r,n,i,a,o,...s):A(!1,!1,l,r,n,i,a,o),v(t,e,u)}function E(t,e){const r=Array.isArray(e)?e:[e];let n=!1;for(let e=0;e<r.length;e++)if(o.call(t,r[e])){n=!0;break}if(!n)return t;const i={},s=a(t);for(let e=0;e<s.length;e++){const n=s[e];r.indexOf(n)>=0||(i[n]=t[n])}return i}function C(t,e,r,n,i,a,...o){return o.length?A.call(null,!0,!1,t,e,r,n,i,a,...o):A(!0,!1,t,e,r,n,i,a)}function A(t,e,o,...l){let c=o;null==c&&i(n?"At least one object should be provided to merge()":r);let h=!1;for(let r=0;r<l.length;r++){const n=l[r];if(null==n)continue;const i=a(n);if(i.length)for(let r=0;r<=i.length;r++){const a=i[r];if(t&&void 0!==c[a])continue;let o=n[a];e&&u(c[a])&&u(o)&&(o=A(t,e,c[a],o)),void 0!==o&&o!==c[a]&&(h||(h=!0,c=s(c)),c[a]=o)}}return c}var I={clone:s,addLast:l,addFirst:c,removeLast:h,removeFirst:f,insert:d,removeAt:p,replaceAt:m,getIn:g,set:b,setIn:v,update:w,updateIn:_,merge:k,mergeDeep:B,mergeIn:x,omit:E,addDefaults:C};e.default=I},71840:(t,e,r)=>{"use strict";var n=r(33296).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;const i=r(24404);function a(t){return new DataView(t.buffer,t.byteOffset)}e.UINT8={len:1,get:(t,e)=>a(t).getUint8(e),put:(t,e,r)=>(a(t).setUint8(e,r),e+1)},e.UINT16_LE={len:2,get:(t,e)=>a(t).getUint16(e,!0),put:(t,e,r)=>(a(t).setUint16(e,r,!0),e+2)},e.UINT16_BE={len:2,get:(t,e)=>a(t).getUint16(e),put:(t,e,r)=>(a(t).setUint16(e,r),e+2)},e.UINT24_LE={len:3,get(t,e){const r=a(t);return r.getUint8(e)+(r.getUint16(e+1,!0)<<8)},put(t,e,r){const n=a(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.UINT24_BE={len:3,get(t,e){const r=a(t);return(r.getUint16(e)<<8)+r.getUint8(e+2)},put(t,e,r){const n=a(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.UINT32_LE={len:4,get:(t,e)=>a(t).getUint32(e,!0),put:(t,e,r)=>(a(t).setUint32(e,r,!0),e+4)},e.UINT32_BE={len:4,get:(t,e)=>a(t).getUint32(e),put:(t,e,r)=>(a(t).setUint32(e,r),e+4)},e.INT8={len:1,get:(t,e)=>a(t).getInt8(e),put:(t,e,r)=>(a(t).setInt8(e,r),e+1)},e.INT16_BE={len:2,get:(t,e)=>a(t).getInt16(e),put:(t,e,r)=>(a(t).setInt16(e,r),e+2)},e.INT16_LE={len:2,get:(t,e)=>a(t).getInt16(e,!0),put:(t,e,r)=>(a(t).setInt16(e,r,!0),e+2)},e.INT24_LE={len:3,get(t,r){const n=e.UINT24_LE.get(t,r);return n>8388607?n-16777216:n},put(t,e,r){const n=a(t);return n.setUint8(e,255&r),n.setUint16(e+1,r>>8,!0),e+3}},e.INT24_BE={len:3,get(t,r){const n=e.UINT24_BE.get(t,r);return n>8388607?n-16777216:n},put(t,e,r){const n=a(t);return n.setUint16(e,r>>8),n.setUint8(e+2,255&r),e+3}},e.INT32_BE={len:4,get:(t,e)=>a(t).getInt32(e),put:(t,e,r)=>(a(t).setInt32(e,r),e+4)},e.INT32_LE={len:4,get:(t,e)=>a(t).getInt32(e,!0),put:(t,e,r)=>(a(t).setInt32(e,r,!0),e+4)},e.UINT64_LE={len:8,get:(t,e)=>a(t).getBigUint64(e,!0),put:(t,e,r)=>(a(t).setBigUint64(e,r,!0),e+8)},e.INT64_LE={len:8,get:(t,e)=>a(t).getBigInt64(e,!0),put:(t,e,r)=>(a(t).setBigInt64(e,r,!0),e+8)},e.UINT64_BE={len:8,get:(t,e)=>a(t).getBigUint64(e),put:(t,e,r)=>(a(t).setBigUint64(e,r),e+8)},e.INT64_BE={len:8,get:(t,e)=>a(t).getBigInt64(e),put:(t,e,r)=>(a(t).setBigInt64(e,r),e+8)},e.Float16_BE={len:2,get(t,e){return i.read(t,e,!1,10,this.len)},put(t,e,r){return i.write(t,r,e,!1,10,this.len),e+this.len}},e.Float16_LE={len:2,get(t,e){return i.read(t,e,!0,10,this.len)},put(t,e,r){return i.write(t,r,e,!0,10,this.len),e+this.len}},e.Float32_BE={len:4,get:(t,e)=>a(t).getFloat32(e),put:(t,e,r)=>(a(t).setFloat32(e,r),e+4)},e.Float32_LE={len:4,get:(t,e)=>a(t).getFloat32(e,!0),put:(t,e,r)=>(a(t).setFloat32(e,r,!0),e+4)},e.Float64_BE={len:8,get:(t,e)=>a(t).getFloat64(e),put:(t,e,r)=>(a(t).setFloat64(e,r),e+8)},e.Float64_LE={len:8,get:(t,e)=>a(t).getFloat64(e,!0),put:(t,e,r)=>(a(t).setFloat64(e,r,!0),e+8)},e.Float80_BE={len:10,get(t,e){return i.read(t,e,!1,63,this.len)},put(t,e,r){return i.write(t,r,e,!1,63,this.len),e+this.len}},e.Float80_LE={len:10,get(t,e){return i.read(t,e,!0,63,this.len)},put(t,e,r){return i.write(t,r,e,!0,63,this.len),e+this.len}},e.IgnoreType=class{constructor(t){this.len=t}get(t,e){}},e.Uint8ArrayType=class{constructor(t){this.len=t}get(t,e){return t.subarray(e,e+this.len)}},e.BufferType=class{constructor(t){this.len=t}get(t,e){return n.from(t.subarray(e,e+this.len))}},e.StringType=class{constructor(t,e){this.len=t,this.encoding=e}get(t,e){return n.from(t).toString(this.encoding,e,e+this.len)}};class o{constructor(t){this.len=t}static decode(t,e,r){let n="";for(let i=e;i<r;++i)n+=o.codePointToString(o.singleByteDecoder(t[i]));return n}static inRange(t,e,r){return e<=t&&t<=r}static codePointToString(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}static singleByteDecoder(t){if(o.inRange(t,0,127))return t;const e=o.windows1252[t-128];if(null===e)throw Error("invaliding encoding");return e}get(t,e=0){return o.decode(t,e,e+this.len)}}e.AnsiStringType=o,o.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]},43688:(t,e)=>{!function(t){var e,r,n,i=String.fromCharCode;function a(t){for(var e,r,n=[],i=0,a=t.length;i<a;)(e=t.charCodeAt(i++))>=55296&&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 o(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function s(t,e){return i(t>>e&63|128)}function u(t){if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(o(t),e=i(t>>12&15|224),e+=s(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=s(t,12),e+=s(t,6)),e+i(63&t|128)}function l(){if(n>=r)throw Error("Invalid byte index");var t=255&e[n];if(n++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function c(){var t,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(t=255&e[n],n++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|l())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|l()<<6|l())>=2048)return o(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=a(t),r=e.length,n=-1,i="";++n<r;)i+=u(e[n]);return i},t.decode=function(t){e=a(t),r=e.length,n=0;for(var o,s=[];!1!==(o=c());)s.push(o);return function(t){for(var e,r=t.length,n=-1,a="";++n<r;)(e=t[n])>65535&&(a+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),a+=i(e);return a}(s)}}(e)},28728:(t,e,r)=>{var n=r(26512);!function(){var e={};function i(){void 0===n&&console.log.apply(console,arguments)}t.exports=e,function(t,e){var r,n,a;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},n=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=Error(),t.prototype.name="JpegError",t.constructor=t}(),a=function(){function t(t,e){this.message=t,this.g=e}return t.prototype=Error(),t.prototype.name="DNLMarkerError",t.constructor=t}(),function(){function e(){this.M=null,this.B=-1}function i(t,e){for(var r,n,i=0,a=[],o=16;0<o&&!t[o-1];)o--;a.push({children:[],index:0});var s,u=a[0];for(r=0;r<o;r++){for(n=0;n<t[r];n++){for((u=a.pop()).children[u.index]=e[i];0<u.index;)u=a.pop();for(u.index++,a.push(u);a.length<=r;)a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}r+1<o&&(a.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s)}return a[0].children}function o(t,e,i,o,s,c,h,f,d){function p(){if(0<M)return M--,I>>M&1;if(255===(I=t[e++])){var r=t[e++];if(r){if(220===r&&E){e+=2;var o=t[e++]<<8|t[e++];if(0<o&&o!==i.g)throw new a("Found DNL marker (0xFFDC) while parsing scan data",o)}throw new n("unexpected marker "+(I<<8|r).toString(16))}}return M=7,I>>>7}function m(t){for(;;){if("number"==typeof(t=t[p()]))return t;if("object"!==(void 0===t?"undefined":r(t)))throw new n("invalid huffman sequence")}}function g(t){for(var e=0;0<t;)e=e<<1|p(),t--;return e}function b(t){if(1===t)return 1===p()?1:-1;var e=g(t);return e>=1<<t-1?e:e+(-1<<t)+1}for(var v,y,w,_,k,B,x,E=9<arguments.length&&void 0!==arguments[9]&&arguments[9],C=i.P,A=e,I=0,M=0,P=0,S=0,T=o.length,R=i.S?0===c?0===f?function(t,e){var r=m(t.D);r=0===r?0:b(r)<<d,t.a[e]=t.m+=r}:function(t,e){t.a[e]|=p()<<d}:0===f?function(t,e){if(0<P)P--;else for(var r=c;r<=h;){var n=m(t.o),i=15&n;if(n>>=4,0===i){if(15>n){P=g(n)+(1<<n)-1;break}r+=16}else r+=n,t.a[e+l[r]]=b(i)*(1<<d),r++}}:function(t,e){for(var r,i=c,a=0;i<=h;){r=e+l[i];var o=0>t.a[r]?-1:1;switch(S){case 0:if(r=15&(a=m(t.o)),a>>=4,0===r)15>a?(P=g(a)+(1<<a),S=4):(a=16,S=1);else{if(1!==r)throw new n("invalid ACn encoding");v=b(r),S=a?2:3}continue;case 1:case 2:t.a[r]?t.a[r]+=o*(p()<<d):0==--a&&(S=2===S?3:0);break;case 3:t.a[r]?t.a[r]+=o*(p()<<d):(t.a[r]=v<<d,S=0);break;case 4:t.a[r]&&(t.a[r]+=o*(p()<<d))}i++}4===S&&0==--P&&(S=0)}:function(t,e){var r=m(t.D);for(r=0===r?0:b(r),t.a[e]=t.m+=r,r=1;64>r;){var n=m(t.o),i=15&n;if(n>>=4,0===i){if(15>n)break;r+=16}else r+=n,t.a[e+l[r]]=b(i),r++}},L=0,O=1===T?o[0].c*o[0].l:C*i.O;L<O;){var F=s?Math.min(O-L,s):O;for(y=0;y<T;y++)o[y].m=0;if(P=0,1===T){var N=o[0];for(k=0;k<F;k++)R(N,64*((N.c+1)*(L/N.c|0)+L%N.c)),L++}else for(k=0;k<F;k++){for(y=0;y<T;y++)for(B=(N=o[y]).h,x=N.j,w=0;w<x;w++)for(_=0;_<B;_++)R(N,64*((N.c+1)*((L/C|0)*N.j+w)+(L%C*N.h+_)));L++}if(M=0,(N=u(t,e))&&N.f&&((0,_util.warn)("decodeScan - unexpected MCU data, current marker is: "+N.f),e=N.offset),!(N=N&&N.F)||65280>=N)throw new n("marker was not found");if(!(65488<=N&&65495>=N))break;e+=2}return(N=u(t,e))&&N.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+N.f),e=N.offset),e-A}function s(t,e){for(var r=e.c,i=e.l,a=new Int16Array(64),o=0;o<i;o++)for(var s=0;s<r;s++){var u=64*((e.c+1)*o+s),l=a,c=e.G,h=e.a;if(!c)throw new n("missing required Quantization Table.");for(var f=0;64>f;f+=8){var d=h[u+f],p=h[u+f+1],m=h[u+f+2],g=h[u+f+3],b=h[u+f+4],v=h[u+f+5],y=h[u+f+6],w=h[u+f+7];if(d*=c[f],0==(p|m|g|b|v|y|w))d=5793*d+512>>10,l[f]=d,l[f+1]=d,l[f+2]=d,l[f+3]=d,l[f+4]=d,l[f+5]=d,l[f+6]=d,l[f+7]=d;else{p*=c[f+1],m*=c[f+2],g*=c[f+3],b*=c[f+4],v*=c[f+5];var _=5793*d+128>>8,k=5793*b+128>>8,B=m,x=y*=c[f+6];k=(_=_+k+1>>1)-k,d=3784*B+1567*x+128>>8,B=1567*B-3784*x+128>>8,v=(b=(b=2896*(p-(w*=c[f+7]))+128>>8)+(v<<=4)+1>>1)-v,g=(w=(w=2896*(p+w)+128>>8)+(g<<=4)+1>>1)-g,x=(_=_+(x=d)+1>>1)-x,B=(k=k+B+1>>1)-B,d=2276*b+3406*w+2048>>12,b=3406*b-2276*w+2048>>12,w=d,d=799*g+4017*v+2048>>12,g=4017*g-799*v+2048>>12,v=d,l[f]=_+w,l[f+7]=_-w,l[f+1]=k+v,l[f+6]=k-v,l[f+2]=B+g,l[f+5]=B-g,l[f+3]=x+b,l[f+4]=x-b}}for(c=0;8>c;++c)d=l[c],0==((p=l[c+8])|(m=l[c+16])|(g=l[c+24])|(b=l[c+32])|(v=l[c+40])|(y=l[c+48])|(w=l[c+56]))?(d=-2040>(d=5793*d+8192>>14)?0:2024<=d?255:d+2056>>4,h[u+c]=d,h[u+c+8]=d,h[u+c+16]=d,h[u+c+24]=d,h[u+c+32]=d,h[u+c+40]=d,h[u+c+48]=d,h[u+c+56]=d):(_=5793*d+2048>>12,k=5793*b+2048>>12,d=3784*(B=m)+1567*(x=y)+2048>>12,B=1567*B-3784*x+2048>>12,x=d,v=(b=(b=2896*(p-w)+2048>>12)+v+1>>1)-v,g=(w=(w=2896*(p+w)+2048>>12)+g+1>>1)-g,d=2276*b+3406*w+2048>>12,b=3406*b-2276*w+2048>>12,w=d,d=799*g+4017*v+2048>>12,g=4017*g-799*v+2048>>12,p=(k=(k=(_=4112+(_+k+1>>1))-k)+B+1>>1)+(v=d),y=k-v,v=(B=k-B)-g,d=16>(d=(_=_+x+1>>1)+w)?0:4080<=d?255:d>>4,p=16>p?0:4080<=p?255:p>>4,m=16>(m=B+g)?0:4080<=m?255:m>>4,g=16>(g=(x=_-x)+b)?0:4080<=g?255:g>>4,b=16>(b=x-b)?0:4080<=b?255:b>>4,v=16>v?0:4080<=v?255:v>>4,y=16>y?0:4080<=y?255:y>>4,w=16>(w=_-w)?0:4080<=w?255:w>>4,h[u+c]=d,h[u+c+8]=p,h[u+c+16]=m,h[u+c+24]=g,h[u+c+32]=b,h[u+c+40]=v,h[u+c+48]=y,h[u+c+56]=w)}return e.a}function u(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e,n=t.length-1;if(r=r<e?r:e,e>=n)return null;var i=t[e]<<8|t[e+1];if(65472<=i&&65534>=i)return{f:null,F:i,offset:e};for(var a=t[r]<<8|t[r+1];!(65472<=a&&65534>=a);){if(++r>=n)return null;a=t[r]<<8|t[r+1]}return{f:i.toString(16),F:a,offset:r}}var l=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]);e.prototype={parse:function(t){function e(){var e=t[d]<<8|t[d+1];return d+=2,e}function r(){var r=e(),n=u(t,r=d+r-2,d);return n&&n.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+n.f),r=n.offset),r=t.subarray(d,r),d+=r.length,r}function c(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++){A=t.b[n];var i=Math.ceil(Math.ceil(t.v/8)*A.h/t.s),a=Math.ceil(Math.ceil(t.g/8)*A.j/t.u);A.a=new Int16Array(64*r*A.j*(e*A.h+1)),A.c=i,A.l=a}t.P=e,t.O=r}var h=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).N,f=void 0===h?null:h,d=0,p=null,m=0;h=[];var g=[],b=[],v=e();if(65496!==v)throw new n("SOI not found");for(v=e();65497!==v;){switch(v){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 y=r();65518===v&&65===y[0]&&100===y[1]&&111===y[2]&&98===y[3]&&101===y[4]&&(p={version:y[5]<<8|y[6],Y:y[7]<<8|y[8],Z:y[9]<<8|y[10],W:y[11]});break;case 65499:v=e()+d-2;for(var w;d<v;){var _=t[d++],k=new Uint16Array(64);if(0==_>>4)for(y=0;64>y;y++)k[w=l[y]]=t[d++];else{if(1!=_>>4)throw new n("DQT - invalid table spec");for(y=0;64>y;y++)k[w=l[y]]=e()}h[15&_]=k}break;case 65472:case 65473:case 65474:if(B)throw new n("Only single frame JPEGs supported");e();var B={};for(B.X=65473===v,B.S=65474===v,B.precision=t[d++],v=e(),B.g=f||v,B.v=e(),B.b=[],B.C={},y=t[d++],v=k=_=0;v<y;v++){w=t[d];var x=t[d+1]>>4,E=15&t[d+1];_<x&&(_=x),k<E&&(k=E),x=B.b.push({h:x,j:E,T:t[d+2],G:null}),B.C[w]=x-1,d+=3}B.s=_,B.u=k,c(B);break;case 65476:for(w=e(),v=2;v<w;){for(_=t[d++],k=new Uint8Array(16),y=x=0;16>y;y++,d++)x+=k[y]=t[d];for(E=new Uint8Array(x),y=0;y<x;y++,d++)E[y]=t[d];v+=17+x,(0==_>>4?b:g)[15&_]=i(k,E)}break;case 65501:e();var C=e();break;case 65498:for(y=1==++m&&!f,e(),_=t[d++],w=[],v=0;v<_;v++){k=B.C[t[d++]];var A=B.b[k];k=t[d++],A.D=b[k>>4],A.o=g[15&k],w.push(A)}v=t[d++],_=t[d++],k=t[d++];try{var I=o(t,d,B,w,C,v,_,k>>4,15&k,y);d+=I}catch(e){if(e instanceof a)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(t,{N:e.g});throw e}break;case 65500:d+=4;break;case 65535:255!==t[d]&&d--;break;default:if(255===t[d-3]&&192<=t[d-2]&&254>=t[d-2])d-=3;else{if(!(y=u(t,d-2))||!y.f)throw new n("unknown marker "+v.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+y.f),d=y.offset}}v=e()}for(this.width=B.v,this.height=B.g,this.A=p,this.b=[],v=0;v<B.b.length;v++)(C=h[(A=B.b[v]).T])&&(A.G=C),this.b.push({R:s(0,A),U:A.h/B.s,V:A.j/B.u,c:A.c,l:A.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,u=new Uint8ClampedArray(s),l=new Uint32Array(t);for(n=0;n<o;n++){var c=this.b[n],h=c.U*i,f=c.V*a,d=n,p=c.R,m=c.c+1<<3;for(r=0;r<t;r++)c=0|r*h,l[r]=(4294967288&c)<<3|7&c;for(h=0;h<e;h++)for(c=m*(4294967288&(c=0|h*f))|(7&c)<<3,r=0;r<t;r++)u[d]=p[c+l[r]],d+=o}if(a=this.M)for(n=0;n<s;)for(i=c=0;c<o;c++,n++,i+=2)u[n]=(u[n]*a[i]>>8)+a[i+1];return u},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,r,n,i=0,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=1/255,s=0,u=t.length;s<u;s+=4)e=t[s]*o,r=t[s+1]*o,n=t[s+2]*o,i=t[s+3]*o,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 n("Unsupported color mode");if(t=this.L(t,e),1===this.i&&r){r=t.length,e=new Uint8ClampedArray(3*r);for(var i=0,a=0;a<r;a++){var o=t[a];e[i++]=o,e[i++]=o,e[i++]=o}return e}if(3===this.i&&this.w())return this.I(t);if(4===this.i){if(this.w())return r?this.K(t):this.J(t);if(r)return this.H(t)}return t}},t.JpegDecoder=e}(),t.encodeImage=function(e,r,n,i){var a={t256:[r],t257:[n],t258:[8,8,8,8],t259:[1],t262:[2],t273:[1e3],t277:[4],t278:[n],t279:[r*n*4],t282:[1],t283:[1],t284:[1],t286:[0],t287:[0],t296:[1],t305:["Photopea (UTIF.js)"],t338:[1]};if(i)for(var o in i)a[o]=i[o];var s=new Uint8Array(t.encode([a])),u=new Uint8Array(e),l=new Uint8Array(1e3+r*n*4);for(o=0;o<s.length;o++)l[o]=s[o];for(o=0;o<u.length;o++)l[1e3+o]=u[o];return l.buffer},t.encode=function(e){var r=new Uint8Array(2e4),n=4,i=t._binBE;r[0]=77,r[1]=77,r[3]=42;var a=8;i.writeUint(r,n,a),n+=4;for(var o=0;o<e.length;o++){var s=t._writeIFD(i,r,a,e[o]);a=s[1],o<e.length-1&&i.writeUint(r,s[0],a)}return r.slice(0,a).buffer},t.decode=function(e){t.decode._decodeG3.allow2D=null;var r=new Uint8Array(e),n=0,i=t._binBE.readASCII(r,n,2);n+=2;var a="II"==i?t._binLE:t._binBE;a.readUshort(r,n),n+=2;var o=a.readUint(r,n);n+=4;for(var s=[];;){var u=t._readIFD(a,r,o,s);if(0==(o=a.readUint(r,u)))break}return s},t.decodeImages=function(e,r){for(var n=new Uint8Array(e),a=t._binBE.readASCII(n,0,2),o=0;o<r.length;o++){var s=r[o];if(null!=s.t256){s.isLE="II"==a,s.width=s.t256[0],s.height=s.t257[0];var u=s.t259?s.t259[0]:1,l=s.t266?s.t266[0]:1;s.t284&&2==s.t284[0]&&i("PlanarConfiguration 2 should not be used!");var c=(s.t258?Math.min(32,s.t258[0]):1)*(s.t277?s.t277[0]:1),h=8*Math.ceil(s.width*c/8),f=s.t273;null==f&&(f=s.t324);var d=s.t279;1==u&&1==f.length&&(d=[s.height*(h>>>3)]),null==d&&(d=s.t325);var p=new Uint8Array(s.height*(h>>>3)),m=0;if(null!=s.t322){for(var g=s.t322[0],b=s.t323[0],v=Math.floor((s.width+g-1)/g),y=Math.floor((s.height+b-1)/b),w=new Uint8Array(0|Math.ceil(g*b*c/8)),_=0;_<y;_++)for(var k=0;k<v;k++){for(var B=_*v+k,x=0;x<w.length;x++)w[x]=0;t.decode._decompress(s,n,f[B],d[B],u,w,0,l),6==u?p=w:t._copyTile(w,0|Math.ceil(g*c/8),b,p,0|Math.ceil(s.width*c/8),s.height,0|Math.ceil(k*g*c/8),_*b)}m=8*p.length}else{var E=s.t278?s.t278[0]:s.height;for(E=Math.min(E,s.height),B=0;B<f.length;B++)t.decode._decompress(s,n,f[B],d[B],u,p,0|Math.ceil(m/8),l),m+=h*E;m=Math.min(m,8*p.length)}s.data=new Uint8Array(p.buffer,0,0|Math.ceil(m/8))}}},t.decode._decompress=function(r,n,a,o,s,u,l,c){if(1==s)for(var h=0;h<o;h++)u[l+h]=n[a+h];else if(3==s)t.decode._decodeG3(n,a,o,u,l,r.width,c);else if(4==s)t.decode._decodeG4(n,a,o,u,l,r.width,c);else if(5==s)t.decode._decodeLZW(n,a,u,l);else if(6==s)t.decode._decodeOldJPEG(r,n,a,o,u,l);else if(7==s)t.decode._decodeNewJPEG(r,n,a,o,u,l);else if(8==s)for(var f=new Uint8Array(n.buffer,a,o),d=e.inflate(f),p=0;p<d.length;p++)u[l+p]=d[p];else 32773==s?t.decode._decodePackBits(n,a,o,u,l):32809==s?t.decode._decodeThunder(n,a,o,u,l):i("Unknown compression",s);if(r.t317&&2==r.t317[0])for(var m=r.t277?r.t277[0]:1,g=r.t278?r.t278[0]:r.height,b=r.width*m,v=0;v<g;v++){var y=l+v*b;if(3==m)for(h=3;h<b;h+=3)u[y+h]=u[y+h]+u[y+h-3]&255,u[y+h+1]=u[y+h+1]+u[y+h-2]&255,u[y+h+2]=u[y+h+2]+u[y+h-1]&255;else for(h=m;h<b;h++)u[y+h]=u[y+h]+u[y+h-m]&255}},t.decode._decodeNikon=function(t,e,r,n,a){var o,s;i(t.slice(e,e+100)),o=t[e],s=t[++e],e++,i(o.toString(16),s.toString(16),r)},t.decode._decodeNewJPEG=function(e,r,n,i,a,o){var s=e.t347,u=s?s.length:0,l=new Uint8Array(u+i);if(s){for(var c=0,h=0;h<u-1&&(255!=s[h]||217!=s[h+1]);h++)l[c++]=s[h];var f=r[n],d=r[n+1];for(255==f&&216==d||(l[c++]=f,l[c++]=d),h=2;h<i;h++)l[c++]=r[n+h]}else for(h=0;h<i;h++)l[h]=r[n+h];if(32803==e.t262){var p=e.t258[0],m=(new LosslessJpegDecoder).decode(l),g=m.length;if(16==p)for(h=0;h<g;h++)a[o++]=255&m[h],a[o++]=m[h]>>>8;else{if(12!=p)throw new Error("unsupported bit depth "+p);for(h=0;h<g;h+=2)a[o++]=m[h]>>>4,a[o++]=255&(m[h]<<4|m[h+1]>>>8),a[o++]=255&m[h+1]}}else{var b=new t.JpegDecoder;b.parse(l);var v=b.getData(b.width,b.height);for(h=0;h<v.length;h++)a[o+h]=v[h]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,r,n){var a,o,s,u,l,c=216,h=0,f=0,d=!1,p=t.t513,m=p?p[0]:0,g=t.t514,b=g?g[0]:0,v=t.t324||t.t273||p,y=t.t530,w=0,_=0,k=t.t277?t.t277[0]:1,B=t.t515;if(v&&(f=v[0],d=v.length>1),!d){if(255==e[r]&&e[r+1]==c)return{jpegOffset:r};if(null!=p&&(255==e[r+m]&&e[r+m+1]==c?h=r+m:i("JPEGInterchangeFormat does not point to SOI"),null==g?i("JPEGInterchangeFormatLength field is missing"):(m>=f||m+b<=f)&&i("JPEGInterchangeFormatLength field value is invalid"),null!=h))return{jpegOffset:h}}if(null!=y&&(w=y[0],_=y[1]),null!=p&&null!=g)if(b>=2&&m+b<=f){for(a=255==e[r+m+b-2]&&e[r+m+b-1]==c?new Uint8Array(b-2):new Uint8Array(b),s=0;s<a.length;s++)a[s]=e[r+m+s];i("Incorrect JPEG interchange format: using JPEGInterchangeFormat offset to derive tables")}else i("JPEGInterchangeFormat+JPEGInterchangeFormatLength > offset to first strip or tile");if(null==a){var x=0,E=[];E[x++]=255,E[x++]=c;var C=t.t519;if(null==C)throw new Error("JPEGQTables tag is missing");for(s=0;s<C.length;s++)for(E[x++]=255,E[x++]=219,E[x++]=0,E[x++]=67,E[x++]=s,u=0;u<64;u++)E[x++]=e[r+C[s]+u];for(l=0;l<2;l++){var A=t[0==l?"t520":"t521"];if(null==A)throw new Error((0==l?"JPEGDCTables":"JPEGACTables")+" tag is missing");for(s=0;s<A.length;s++){E[x++]=255,E[x++]=196;var I=19;for(u=0;u<16;u++)I+=e[r+A[s]+u];for(E[x++]=I>>>8,E[x++]=255&I,E[x++]=s|l<<4,u=0;u<16;u++)E[x++]=e[r+A[s]+u];for(u=0;u<I;u++)E[x++]=e[r+A[s]+16+u]}}if(E[x++]=255,E[x++]=192,E[x++]=0,E[x++]=8+3*k,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,E[x++]=k,1==k)E[x++]=1,E[x++]=17,E[x++]=0;else for(s=0;s<3;s++)E[x++]=s+1,E[x++]=0!=s?17:(15&w)<<4|15&_,E[x++]=s;null!=B&&0!=B[0]&&(E[x++]=255,E[x++]=221,E[x++]=0,E[x++]=4,E[x++]=B[0]>>>8&255,E[x++]=255&B[0]),a=new Uint8Array(E)}var M=-1;for(s=0;s<a.length-1;){if(255==a[s]&&192==a[s+1]){M=s;break}s++}if(-1==M){var P=new Uint8Array(a.length+10+3*k);P.set(a);var S=a.length;if(M=a.length,(a=P)[S++]=255,a[S++]=192,a[S++]=0,a[S++]=8+3*k,a[S++]=8,a[S++]=t.height>>>8&255,a[S++]=255&t.height,a[S++]=t.width>>>8&255,a[S++]=255&t.width,a[S++]=k,1==k)a[S++]=1,a[S++]=17,a[S++]=0;else for(s=0;s<3;s++)a[S++]=s+1,a[S++]=0!=s?17:(15&w)<<4|15&_,a[S++]=s}if(255==e[f]&&218==e[f+1]){var T=e[f+2]<<8|e[f+3];for((o=new Uint8Array(T+2))[0]=e[f],o[1]=e[f+1],o[2]=e[f+2],o[3]=e[f+3],s=0;s<T-2;s++)o[s+4]=e[f+s+4]}else{var R=0;if((o=new Uint8Array(8+2*k))[R++]=255,o[R++]=218,o[R++]=0,o[R++]=6+2*k,o[R++]=k,1==k)o[R++]=1,o[R++]=0;else for(s=0;s<3;s++)o[R++]=s+1,o[R++]=s<<4|s;o[R++]=0,o[R++]=63,o[R++]=0}return{jpegOffset:r,tables:a,sosMarker:o,sofPosition:M}},t.decode._decodeOldJPEG=function(e,r,n,i,a,o){var s,u,l,c=t.decode._decodeOldJPEGInit(e,r,n,i);if(null!=c.jpegOffset)for(s=n+i-c.jpegOffset,l=new Uint8Array(s),d=0;d<s;d++)l[d]=r[c.jpegOffset+d];else{for(u=c.tables.length,(l=new Uint8Array(u+c.sosMarker.length+i+2)).set(c.tables),l[c.sofPosition+5]=e.height>>>8&255,l[c.sofPosition+6]=255&e.height,l[c.sofPosition+7]=e.width>>>8&255,l[c.sofPosition+8]=255&e.width,255==r[n]&&r[n+1]==SOS||(l.set(c.sosMarker,bufoff),bufoff+=sosMarker.length),d=0;d<i;d++)l[bufoff++]=r[n+d];l[bufoff++]=255,l[bufoff++]=EOI}var h=new t.JpegDecoder;h.parse(l);for(var f=h.getData(h.width,h.height),d=0;d<f.length;d++)a[o+d]=f[d];6==e.t262[0]&&(e.t262[0]=2)},t.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 u=a[e];if(e++,u>=0&&u<128)for(var l=0;l<u+1;l++)o[i]=a[e],i++,e++;if(u>=-127&&u<0){for(l=0;l<1-u;l++)o[i]=a[e],i++;e++}}},t.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,u=2*i,l=0;e<s;){var c=t[e],h=c>>>6,f=63&c;if(e++,3==h&&(l=15&f,n[u>>>1]|=l<<4*(1-u&1),u++),0==h)for(var d=0;d<f;d++)n[u>>>1]|=l<<4*(1-u&1),u++;if(2==h)for(d=0;d<2;d++)4!=(p=f>>>3*(1-d)&7)&&(l+=o[p],n[u>>>1]|=l<<4*(1-u&1),u++);if(1==h)for(d=0;d<3;d++){var p;2!=(p=f>>>2*(2-d)&3)&&(l+=a[p],n[u>>>1]|=l<<4*(1-u&1),u++)}}},t.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},t.decode._lens=function(){var t=function(t,e,r,n){for(var i=0;i<e.length;i++)t[e[i]]=r+i*n},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]}(),t.decode._decodeG4=function(e,r,n,i,a,o,s){for(var u=t.decode,l=r<<3,c=0,h="",f=[],d=[],p=0;p<o;p++)d.push(0);d=u._makeDiff(d);for(var m=0,g=0,b=0,v=0,y=0,w=0,_="",k=0,B=8*Math.ceil(o/8);l>>>3<r+n;){b=u._findDiff(d,m+(0==m?0:1),1-y),v=u._findDiff(d,b,y);var x=0;if(1==s&&(x=e[l>>>3]>>>7-(7&l)&1),2==s&&(x=e[l>>>3]>>>(7&l)&1),l++,h+=x,"H"==_){if(null!=u._lens[y][h]){var E=u._lens[y][h];h="",c+=E,E<64&&(u._addNtimes(f,c,y),m+=c,y=1-y,c=0,0==--k&&(_=""))}}else"0001"==h&&(h="",u._addNtimes(f,v-m,y),m=v),"001"==h&&(h="",_="H",k=2),null!=u._dmap[h]&&(g=b+u._dmap[h],u._addNtimes(f,g-m,y),m=g,h="",y=1-y);f.length==o&&""==_&&(u._writeBits(f,i,8*a+w*B),y=0,w++,m=0,d=u._makeDiff(f),f=[])}},t.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]},t.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},t.decode._decodeG3=function(e,r,n,i,a,o,s){for(var u=t.decode,l=r<<3,c=0,h="",f=[],d=[],p=0;p<o;p++)f.push(0);for(var m=0,g=0,b=0,v=0,y=0,w=-1,_="",k=0,B=!1,x=8*Math.ceil(o/8);l>>>3<r+n;){b=u._findDiff(d,m+(0==m?0:1),1-y),v=u._findDiff(d,b,y);var E=0;if(1==s&&(E=e[l>>>3]>>>7-(7&l)&1),2==s&&(E=e[l>>>3]>>>(7&l)&1),l++,h+=E,B){if(null!=u._lens[y][h]){var C=u._lens[y][h];h="",c+=C,C<64&&(u._addNtimes(f,c,y),y=1-y,c=0)}}else"H"==_?null!=u._lens[y][h]&&(C=u._lens[y][h],h="",c+=C,C<64&&(u._addNtimes(f,c,y),m+=c,y=1-y,c=0,0==--k&&(_=""))):("0001"==h&&(h="",u._addNtimes(f,v-m,y),m=v),"001"==h&&(h="",_="H",k=2),null!=u._dmap[h]&&(g=b+u._dmap[h],u._addNtimes(f,g-m,y),m=g,h="",y=1-y));h.endsWith("000000000001")&&(w>=0&&u._writeBits(f,i,8*a+w*x),1==s&&(B=1==(e[l>>>3]>>>7-(7&l)&1)),2==s&&(B=1==(e[l>>>3]>>>(7&l)&1)),l++,null==u._decodeG3.allow2D&&(u._decodeG3.allow2D=B),u._decodeG3.allow2D||(B=!0,l--),h="",y=0,w++,m=0,d=u._makeDiff(f),f=[])}f.length==o&&u._writeBits(f,i,8*a+w*x)},t.decode._addNtimes=function(t,e,r){for(var n=0;n<e;n++)t.push(r)},t.decode._writeBits=function(t,e,r){for(var n=0;n<t.length;n++)e[r+n>>>3]|=t[n]<<7-(r+n&7)},t.decode._decodeLZW=function(e,r,n,i){if(null==t.decode._lzwTab){for(var a=new Uint32Array(65535),o=new Uint16Array(65535),s=new Uint8Array(2e6),u=0;u<256;u++)s[u<<2]=u,a[u]=u<<2,o[u]=1;t.decode._lzwTab=[a,o,s]}for(var l=t.decode._copyData,c=t.decode._lzwTab[0],h=t.decode._lzwTab[1],f=(s=t.decode._lzwTab[2],258),d=1032,p=9,m=r<<3,g=0,b=0;g=(e[m>>>3]<<16|e[m+8>>>3]<<8|e[m+16>>>3])>>24-(7&m)-p&(1<<p)-1,m+=p,257!=g;){if(256==g){if(p=9,f=258,d=1032,g=(e[m>>>3]<<16|e[m+8>>>3]<<8|e[m+16>>>3])>>24-(7&m)-p&(1<<p)-1,m+=p,257==g)break;n[i]=g,i++}else if(g<f){var v=c[g],y=h[g];l(s,v,n,i,y),i+=y,b>=f?(c[f]=d,s[c[f]]=v[0],h[f]=1,d=d+1+3&-4,f++):(c[f]=d,l(s,c[b],s,d,w=h[b]),s[d+w]=s[v],w++,h[f]=w,f++,d=d+w+3&-4),f+1==1<<p&&p++}else{var w;b>=f?(c[f]=d,h[f]=0,f++):(c[f]=d,l(s,c[b],s,d,w=h[b]),s[d+w]=s[d],w++,h[f]=w,f++,l(s,d,n,i,w),i+=w,d=d+w+3&-4),f+1==1<<p&&p++}b=g}},t.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]},t.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"},t.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},t._readIFD=function(e,r,n,a){var o=e.readUshort(r,n);n+=2;var s={};a.push(s);for(var u=0;u<o;u++){var l=e.readUshort(r,n);n+=2;var c=e.readUshort(r,n);n+=2;var h=e.readUint(r,n);n+=4;var f=e.readUint(r,n);n+=4;var d=[];if(s["t"+l]=d,1==c||7==c)for(var p=0;p<h;p++)d.push(r[(h<5?n-4:f)+p]);if(2==c&&d.push(e.readASCII(r,h<5?n-4:f,h-1)),3==c)for(p=0;p<h;p++)d.push(e.readUshort(r,(h<3?n-4:f)+2*p));if(4==c)for(p=0;p<h;p++)d.push(e.readUint(r,(h<2?n-4:f)+4*p));if(5==c)for(p=0;p<h;p++)d.push(e.readUint(r,f+8*p)/e.readUint(r,f+8*p+4));if(8==c)for(p=0;p<h;p++)d.push(e.readShort(r,(h<3?n-4:f)+2*p));if(9==c)for(p=0;p<h;p++)d.push(e.readInt(r,(h<2?n-4:f)+4*p));if(10==c)for(p=0;p<h;p++)d.push(e.readInt(r,f+8*p)/e.readInt(r,f+8*p+4));if(11==c)for(p=0;p<h;p++)d.push(e.readFloat(r,f+4*p));if(12==c)for(p=0;p<h;p++)d.push(e.readDouble(r,f+8*p));if(0!=h&&0==d.length&&i("unknown TIFF tag type: ",c,"num:",h),330==l)for(p=0;p<h;p++)t._readIFD(e,r,d[p],a)}return n},t._writeIFD=function(e,r,n,i){var a=Object.keys(i);e.writeUshort(r,n,a.length);for(var o=(n+=2)+12*a.length+4,s=0;s<a.length;s++){var u=a[s],l=parseInt(u.slice(1)),c=t.ttypes[l];if(null==c)throw new Error("unknown type of tag: "+l);var h=i[u];2==c&&(h=h[0]+"\0");var f=h.length;e.writeUshort(r,n,l),n+=2,e.writeUshort(r,n,c),n+=2,e.writeUint(r,n,f);var d=[-1,1,1,2,4,8,0,0,0,0,0,0,8][c]*f,p=n+=4;if(d>4&&(e.writeUint(r,n,o),p=o),2==c&&e.writeASCII(r,p,h),3==c)for(var m=0;m<f;m++)e.writeUshort(r,p+2*m,h[m]);if(4==c)for(m=0;m<f;m++)e.writeUint(r,p+4*m,h[m]);if(5==c)for(m=0;m<f;m++)e.writeUint(r,p+8*m,Math.round(1e4*h[m])),e.writeUint(r,p+8*m+4,1e4);if(12==c)for(m=0;m<f;m++)e.writeDouble(r,p+8*m,h[m]);d>4&&(o+=d+=1&d),n+=4}return[n,o]},t.toRGBA8=function(t){var e=t.width,r=t.height,n=e*r,a=4*n,o=t.data,s=new Uint8Array(4*n),u=t.t262[0],l=t.t258?Math.min(32,t.t258[0]):1,c=t.isLE?1:0;if(0==u)for(var h=Math.ceil(l*e/8),f=0;f<r;f++){var d=f*h,p=f*e;if(1==l)for(var m=0;m<e;m++){var g=p+m<<2,b=o[d+(m>>3)]>>7-(7&m)&1;s[g]=s[g+1]=s[g+2]=255*(1-b),s[g+3]=255}if(4==l)for(m=0;m<e;m++)g=p+m<<2,b=o[d+(m>>1)]>>4-4*(1&m)&15,s[g]=s[g+1]=s[g+2]=17*(15-b),s[g+3]=255;if(8==l)for(m=0;m<e;m++)g=p+m<<2,b=o[d+m],s[g]=s[g+1]=s[g+2]=255-b,s[g+3]=255}else if(1==u)for(h=Math.ceil(l*e/8),f=0;f<r;f++){if(d=f*h,p=f*e,1==l)for(m=0;m<e;m++)g=p+m<<2,b=o[d+(m>>3)]>>7-(7&m)&1,s[g]=s[g+1]=s[g+2]=255*b,s[g+3]=255;if(2==l)for(m=0;m<e;m++)g=p+m<<2,b=o[d+(m>>2)]>>6-2*(3&m)&3,s[g]=s[g+1]=s[g+2]=85*b,s[g+3]=255;if(8==l)for(m=0;m<e;m++)g=p+m<<2,b=o[d+m],s[g]=s[g+1]=s[g+2]=b,s[g+3]=255;if(16==l)for(m=0;m<e;m++)g=p+m<<2,b=o[d+(2*m+c)],s[g]=s[g+1]=s[g+2]=Math.min(255,b),s[g+3]=255}else if(2==u)if(8==l)if(t.t338)if(t.t338[0]>0)for(m=0;m<a;m++)s[m]=o[m];else for(m=0;m<a;m+=4)s[m]=o[m],s[m+1]=o[m+1],s[m+2]=o[m+2],s[m+3]=255;else{if(4==(_=t.t258?t.t258.length:3))for(m=0;m<a;m++)s[m]=o[m];if(3==_)for(m=0;m<n;m++){var v=3*m;s[g=m<<2]=o[v],s[g+1]=o[v+1],s[g+2]=o[v+2],s[g+3]=255}}else for(m=0;m<n;m++)v=6*m,s[g=m<<2]=o[v],s[g+1]=o[v+2],s[g+2]=o[v+4],s[g+3]=255;else if(3==u){var y=t.t320;for(m=0;m<n;m++){g=m<<2;var w=o[m];s[g]=y[w]>>8,s[g+1]=y[256+w]>>8,s[g+2]=y[512+w]>>8,s[g+3]=255}}else if(5==u){var _,k=(_=t.t258?t.t258.length:4)>4?1:0;for(m=0;m<n;m++){g=m<<2;var B=m*_,x=255-o[B],E=255-o[B+1],C=255-o[B+2],A=(255-o[B+3])*(1/255);s[g]=~~(x*A+.5),s[g+1]=~~(E*A+.5),s[g+2]=~~(C*A+.5),s[g+3]=255*(1-k)+o[B+4]*k}}else i("Unknown Photometric interpretation: "+u);return s},t.replaceIMG=function(){for(var e=document.getElementsByTagName("img"),r=0;r<e.length;r++){var n=e[r],i=n.getAttribute("src");if(null!=i){var a=i.split(".").pop().toLowerCase();if("tif"==a||"tiff"==a){var o=new XMLHttpRequest;t._xhrs.push(o),t._imgs.push(n),o.open("GET",i),o.responseType="arraybuffer",o.onload=t._imgLoaded,o.send()}}}},t._xhrs=[],t._imgs=[],t._imgLoaded=function(e){var r=e.target.response,n=t.decode(r),i=n[0];t.decodeImages(r,n);var a=t.toRGBA8(i),o=i.width,s=i.height,u=t._xhrs.indexOf(e.target),l=t._imgs[u];t._xhrs.splice(u,1),t._imgs.splice(u,1);var c=document.createElement("canvas");c.width=o,c.height=s;for(var h=c.getContext("2d"),f=h.createImageData(o,s),d=0;d<a.length;d++)f.data[d]=a[d];h.putImageData(f,0,0);var p=["style","class","id"];for(d=0;d<p.length;d++)c.setAttribute(p[d],l.getAttribute(p[d]));l.parentNode.replaceChild(c,l)},t._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(e,r){var n=t._binBE.ui8;return n[0]=e[r+1],n[1]=e[r+0],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+3],n[1]=e[r+2],n[2]=e[r+1],n[3]=e[r+0],t._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(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+3-i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+7-i];return t._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(e,r,n){t._binBE.fl64[0]=n;for(var i=0;i<8;i++)e[r+i]=t._binBE.ui8[7-i]}},t._binBE.ui8=new Uint8Array(8),t._binBE.i16=new Int16Array(t._binBE.ui8.buffer),t._binBE.i32=new Int32Array(t._binBE.ui8.buffer),t._binBE.ui32=new Uint32Array(t._binBE.ui8.buffer),t._binBE.fl32=new Float32Array(t._binBE.ui8.buffer),t._binBE.fl64=new Float64Array(t._binBE.ui8.buffer),t._binLE={nextZero:t._binBE.nextZero,readUshort:function(t,e){return t[e+1]<<8|t[e]},readShort:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],t._binBE.i16[0]},readInt:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.i32[0]},readUint:function(e,r){var n=t._binBE.ui8;return n[0]=e[r+0],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t._binBE.ui32[0]},readASCII:t._binBE.readASCII,readFloat:function(e,r){for(var n=t._binBE.ui8,i=0;i<4;i++)n[i]=e[r+i];return t._binBE.fl32[0]},readDouble:function(e,r){for(var n=t._binBE.ui8,i=0;i<8;i++)n[i]=e[r+i];return t._binBE.fl64[0]}},t._copyTile=function(t,e,r,n,i,a,o,s){for(var u=Math.min(e,i-o),l=Math.min(r,a-s),c=0;c<l;c++)for(var h=(s+c)*i+o,f=c*e,d=0;d<u;d++)n[h+d]=t[f+d]}}(e,r(63548))}()},76648:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.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)}}},76728:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},12848:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},93912:(t,e,r)=>{var n=r(26512),i=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=a)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}})),u=n[r];r<a;u=n[++r])m(u)||!w(u)?o+=" "+u:o+=" "+s(u);return o},e.deprecate=function(t,i){if(v(r.g.process))return function(){return e.deprecate(t,i).apply(this,arguments)};if(!0===n.noDeprecation)return t;var a=!1;return function(){if(!a){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,t,n.depth)}function u(t,e){var r=s.styles[e];return r?"["+s.colors[r][0]+"m"+t+"["+s.colors[r][1]+"m":t}function l(t,e){return t}function c(t,r,n){if(t.customInspect&&r&&B(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=c(t,i,n)),i}var a=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return g(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,r);if(a)return a;var o=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),k(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(r);if(0===o.length){if(B(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(y(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(k(r))return h(r)}var l,w="",x=!1,E=["{","}"];return d(r)&&(x=!0,E=["[","]"]),B(r)&&(w=" [Function"+(r.name?": "+r.name:"")+"]"),y(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),k(r)&&(w=" "+h(r)),0!==o.length||x&&0!=r.length?n<0?y(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),l=x?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)A(e,String(o))?a.push(f(t,e,r,n,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(f(t,e,r,n,i,!0))})),a}(t,r,n,s,o):o.map((function(e){return f(t,r,n,s,e,x)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(l,w,E)):E[0]+w+E[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),A(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=m(r)?c(t,u.value,null):c(t,u.value,r-1)).indexOf("\n")>-1&&(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")),v(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function d(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function m(t){return null===t}function g(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return void 0===t}function y(t){return w(t)&&"[object RegExp]"===x(t)}function w(t){return"object"==typeof t&&null!==t}function _(t){return w(t)&&"[object Date]"===x(t)}function k(t){return w(t)&&("[object Error]"===x(t)||t instanceof Error)}function B(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(v(a)&&(a=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(a)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=y,e.isObject=w,e.isDate=_,e.isError=k,e.isFunction=B,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(12848);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[E((t=new Date).getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":"),[t.getDate(),C[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(76728),e._extend=function(t,e){if(!e||!w(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}},40380:(t,e,r)=>{"use strict";var n=r(16796),i=r(25332),a=r(35784),o=r(99707);function s(t,e,r){var n=t;return i(e)?(r=e,"string"==typeof t&&(n={uri:t})):n=o(e,{uri:t}),n.callback=r,n}function u(t,e,r){return l(e=s(t,e,r))}function l(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.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}(c),b)try{t=JSON.parse(t)}catch(t){}return t}function i(t){return clearTimeout(h),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,v)}function o(){if(!l){var e;clearTimeout(h),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=v,o=null;return 0!==e?(i={body:n(),statusCode:e,method:d,headers:{},url:f,rawRequest:c},c.getAllResponseHeaders&&(i.headers=a(c.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),r(o,i,i.body)}}var s,l,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var h,f=c.url=t.uri||t.url,d=c.method=t.method||"GET",p=t.body||t.data,m=c.headers=t.headers||{},g=!!t.sync,b=!1,v={body:void 0,headers:{},statusCode:0,method:d,url:f,rawRequest:c};if("json"in t&&!1!==t.json&&(b=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(o,0)},c.onload=o,c.onerror=i,c.onprogress=function(){},c.onabort=function(){l=!0},c.ontimeout=i,c.open(d,f,!g,t.username,t.password),g||(c.withCredentials=!!t.withCredentials),!g&&t.timeout>0&&(h=setTimeout((function(){if(!l){l=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&c.setRequestHeader(s,m[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}(["get","put","post","patch","head","delete"],(function(t){u["delete"===t?"del":t]=function(e,r,n){return(r=s(e,r,n)).method=t.toUpperCase(),l(r)}}))},22148:t=>{t.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}},99707:t=>{t.exports=function(){for(var t={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(t[i]=n[i])}return t};var e=Object.prototype.hasOwnProperty},16176:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/Roboto72White.fnt"},46376:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/Roboto72White.png"},48856:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoBlack72White.fnt"},41144:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoBlack72White.png"},85542:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoMono72White.fnt"},25292:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoMono72White.png"},86456:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoSlab72White.fnt"},53680:(t,e,r)=>{"use strict";t.exports=r.p+"assets/fonts/RobotoSlab72White.png"},54096:()=>{},63152:()=>{},8464:()=>{},73236:()=>{},13716:()=>{},69380:()=>{},74899:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports},48388:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},57920:(t,e,r)=>{var n=r(74899);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},71559:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},94064:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},40112:(t,e,r)=>{var n=r(5816),i=r(72356);t.exports=function(t,e,r){if(i())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,e);var o=new(t.bind.apply(t,a));return r&&n(o,r.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports},66024:(t,e,r)=>{var n=r(35216);function i(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,n(i.key),i)}}t.exports=function(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},2676:(t,e,r)=>{var n=r(35216);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},82048:t=>{function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},85912:t=>{function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},54216:(t,e,r)=>{var n=r(5816);t.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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},22411:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},81480:(t,e,r)=>{var n=r(59848).default;function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=n(t)&&"function"!=typeof t)return{default:t};var r=i(e);if(r&&r.has(t))return r.get(t);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=o?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(a,s,u):a[s]=t[s]}return a.default=t,r&&r.set(t,a),a},t.exports.__esModule=!0,t.exports.default=t.exports},72356:t=>{function e(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(r){}return(t.exports=e=function(){return!!r},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},40203:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},90064:t=>{t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports},89708:t=>{t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},37752:t=>{t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},96284:(t,e,r)=>{var n=r(59848).default,i=r(71559);t.exports=function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},6636:(t,e,r)=>{var n=r(59848).default;function i(){"use strict";t.exports=i=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),o=new R(n||[]);return s(a,"_invoke",{value:M(t,r,o)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=d;var m="suspendedStart",g="suspendedYield",b="executing",v="completed",y={};function w(){}function _(){}function k(){}var B={};f(B,l,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(L([])));E&&E!==a&&o.call(E,l)&&(B=E);var C=k.prototype=w.prototype=Object.create(B);function A(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function r(i,a,s,u){var l=p(t[i],t,a);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==n(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,u)}))}u(l.arg)}var i;s(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}})}function M(t,r,n){var i=m;return function(a,o){if(i===b)throw new Error("Generator is already running");if(i===v){if("throw"===a)throw o;return{value:e,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var u=P(s,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=b;var l=p(t,r,n);if("normal"===l.type){if(i=n.done?v:g,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=v,n.method="throw",n.arg=l.arg)}}}function P(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=p(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(o.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=k,s(C,"constructor",{value:k,configurable:!0}),s(k,"constructor",{value:_,configurable:!0}),_.displayName=f(k,h,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,f(t,h,"GeneratorFunction")),t.prototype=Object.create(C),t},r.awrap=function(t){return{__await:t}},A(I.prototype),f(I.prototype,c,(function(){return this})),r.AsyncIterator=I,r.async=function(t,e,n,i,a){void 0===a&&(a=Promise);var o=new I(d(t,e,n,i),a);return r.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(C),f(C,h,"Generator"),f(C,l,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=L,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.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,y):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),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},r}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},5816:t=>{function e(r,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},97936:(t,e,r)=>{var n=r(48388),i=r(90064),a=r(83384),o=r(89708);t.exports=function(t,e){return n(t)||i(t,e)||a(t,e)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},25724:(t,e,r)=>{var n=r(57920),i=r(40203),a=r(83384),o=r(37752);t.exports=function(t){return n(t)||i(t)||a(t)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},26776:(t,e,r)=>{var n=r(59848).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},35216:(t,e,r)=>{var n=r(59848).default,i=r(26776);t.exports=function(t){var e=i(t,"string");return"symbol"==n(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},59848:t=>{function e(r){return t.exports=e="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.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},83384:(t,e,r)=>{var n=r(74899);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},33248:(t,e,r)=>{var n=r(6636)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},72416:(t,e,r)=>{var n=r(26512),i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},l=(t=>(e,r)=>t&&t.get(e)||(r=((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let r of o(e))s.call(t,r)||i(t,r,{get:()=>e[r],enumerable:!(n=a(e,r))||n.enumerable});return t})(i({},"__esModule",{value:!0}),e),t&&t.set(e,r),r))("undefined"!=typeof WeakMap?new WeakMap:0),c=(t,e,r)=>(((t,e,r)=>{e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,"symbol"!=typeof e?e+"":e,r),r),h={};u(h,{applyPalette:()=>te,applyPaletteSync:()=>Kt,buildPalette:()=>Qt,buildPaletteSync:()=>Jt,constants:()=>f,conversion:()=>b,distance:()=>H,image:()=>Ot,palette:()=>ot,quality:()=>Wt,utils:()=>ft});var f={};u(f,{bt709:()=>d});var d={};u(d,{Y:()=>p,x:()=>m,y:()=>g});var p=(t=>(t[t.RED=.2126]="RED",t[t.GREEN=.7152]="GREEN",t[t.BLUE=.0722]="BLUE",t[t.WHITE=1]="WHITE",t))(p||{}),m=(t=>(t[t.RED=.64]="RED",t[t.GREEN=.3]="GREEN",t[t.BLUE=.15]="BLUE",t[t.WHITE=.3127]="WHITE",t))(m||{}),g=(t=>(t[t.RED=.33]="RED",t[t.GREEN=.6]="GREEN",t[t.BLUE=.06]="BLUE",t[t.WHITE=.329]="WHITE",t))(g||{}),b={};function v(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}function y(t,e,r){return{x:.4124*(t=v(t/255))+.3576*(e=v(e/255))+.1805*(r=v(r/255)),y:.2126*t+.7152*e+.0722*r,z:.0193*t+.1192*e+.9505*r}}u(b,{lab2rgb:()=>j,lab2xyz:()=>D,rgb2hsl:()=>I,rgb2lab:()=>L,rgb2xyz:()=>y,xyz2lab:()=>R,xyz2rgb:()=>G});var w={};function _(t){return t*(Math.PI/180)}function k(t,e,r){let n=t;return n<e&&(n=e),n<r&&(n=r),n}function B(t,e,r){let n=t;return n>e&&(n=e),n>r&&(n=r),n}function x(t,e,r){return t>r&&(t=r),t<e&&(t=e),0|t}function E(t){return(t=Math.round(t))>255?t=255:t<0&&(t=0),t}function C(t){return t>255?t=255:t<0&&(t=0),t}function A(t,e){const r=typeof t[0];let n;if("number"===r||"string"===r){const r=Object.create(null);for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]||0===r[n]||(r[n]=e)}n=t.sort(((t,n)=>e(t,n)||r[t]-r[n]))}else{const r=t.slice(0);n=t.sort(((t,n)=>e(t,n)||r.indexOf(t)-r.indexOf(n)))}return n}function I(t,e,r){const n=B(t,e,r),i=k(t,e,r),a=i-n,o=(n+i)/510;let s=0;o>0&&o<1&&(s=a/(o<.5?i+n:510-i-n));let u=0;return a>0&&(u=i===t?(e-r)/a:i===e?2+(r-t)/a:4+(t-e)/a,u*=60,u<0&&(u+=360)),{h:u,s,l:o}}u(w,{degrees2radians:()=>_,inRange0to255:()=>C,inRange0to255Rounded:()=>E,intInRange:()=>x,max3:()=>k,min3:()=>B,stableSort:()=>A});var M=.95047,P=1,S=1.08883;function T(t){return t>.008856?t**(1/3):7.787*t+16/116}function R(t,e,r){if(t=T(t/M),e=T(e/P),r=T(r/S),116*e-16<0)throw new Error("xxx");return{L:Math.max(0,116*e-16),a:500*(t-e),b:200*(e-r)}}function L(t,e,r){const n=y(t,e,r);return R(n.x,n.y,n.z)}var O=.95047,F=1,N=1.08883;function U(t){return t>.206893034?t**3:(t-16/116)/7.787}function D(t,e,r){const n=(t+16)/116,i=n-r/200;return{x:O*U(e/500+n),y:F*U(n),z:N*U(i)}}function z(t){return t>.0031308?1.055*t**(1/2.4)-.055:12.92*t}function G(t,e,r){const n=z(3.2406*t+-1.5372*e+-.4986*r),i=z(-.9689*t+1.8758*e+.0415*r),a=z(.0557*t+-.204*e+1.057*r);return{r:E(255*n),g:E(255*i),b:E(255*a)}}function j(t,e,r){const n=D(t,e,r);return G(n.x,n.y,n.z)}var H={};u(H,{AbstractDistanceCalculator:()=>W,AbstractEuclidean:()=>J,AbstractManhattan:()=>et,CIE94GraphicArts:()=>$,CIE94Textiles:()=>Z,CIEDE2000:()=>Y,CMetric:()=>X,Euclidean:()=>Q,EuclideanBT709:()=>K,EuclideanBT709NoAlpha:()=>tt,Manhattan:()=>rt,ManhattanBT709:()=>it,ManhattanNommyde:()=>nt,PNGQuant:()=>at});var W=class{constructor(){c(this,"_maxDistance"),c(this,"_whitePoint"),this._setDefaults(),this.setWhitePoint(255,255,255,255)}setWhitePoint(t,e,r,n){this._whitePoint={r:t>0?255/t:0,g:e>0?255/e:0,b:r>0?255/r:0,a:n>0?255/n:0},this._maxDistance=this.calculateRaw(t,e,r,n,0,0,0,0)}calculateNormalized(t,e){return this.calculateRaw(t.r,t.g,t.b,t.a,e.r,e.g,e.b,e.a)/this._maxDistance}},q=class extends W{calculateRaw(t,e,r,n,i,a,o,s){const u=L(C(t*this._whitePoint.r),C(e*this._whitePoint.g),C(r*this._whitePoint.b)),l=L(C(i*this._whitePoint.r),C(a*this._whitePoint.g),C(o*this._whitePoint.b)),c=u.L-l.L,h=u.a-l.a,f=u.b-l.b,d=Math.sqrt(u.a*u.a+u.b*u.b),p=d-Math.sqrt(l.a*l.a+l.b*l.b);let m=h*h+f*f-p*p;m=m<0?0:Math.sqrt(m);const g=(s-n)*this._whitePoint.a*this._kA;return Math.sqrt((c/this._Kl)**2+(p/(1+this._K1*d))**2+(m/(1+this._K2*d))**2+g**2)}},Z=class extends q{_setDefaults(){this._Kl=2,this._K1=.048,this._K2=.014,this._kA=12.5/255}},$=class extends q{_setDefaults(){this._Kl=1,this._K1=.045,this._K2=.015,this._kA=25/255}},V=class extends W{_setDefaults(){}static _calculatehp(t,e){const r=Math.atan2(t,e);return r>=0?r:r+V._deg360InRad}static _calculateRT(t,e){const r=e**7,n=2*Math.sqrt(r/(r+V._pow25to7)),i=V._deg30InRad*Math.exp(-(((t-V._deg275InRad)/V._deg25InRad)**2));return-Math.sin(2*i)*n}static _calculateT(t){return 1-.17*Math.cos(t-V._deg30InRad)+.24*Math.cos(2*t)+.32*Math.cos(3*t+V._deg6InRad)-.2*Math.cos(4*t-V._deg63InRad)}static _calculate_ahp(t,e,r,n){const i=r+n;return 0===t?i:e<=V._deg180InRad?i/2:i<V._deg360InRad?(i+V._deg360InRad)/2:(i-V._deg360InRad)/2}static _calculate_dHp(t,e,r,n){let i;return i=0===t?0:e<=V._deg180InRad?r-n:r<=n?r-n+V._deg360InRad:r-n-V._deg360InRad,2*Math.sqrt(t)*Math.sin(i/2)}calculateRaw(t,e,r,n,i,a,o,s){const u=L(C(t*this._whitePoint.r),C(e*this._whitePoint.g),C(r*this._whitePoint.b)),l=L(C(i*this._whitePoint.r),C(a*this._whitePoint.g),C(o*this._whitePoint.b)),c=(s-n)*this._whitePoint.a*V._kA,h=this.calculateRawInLab(u,l);return Math.sqrt(h+c*c)}calculateRawInLab(t,e){const r=t.L,n=t.a,i=t.b,a=e.L,o=e.a,s=e.b,u=((Math.sqrt(n*n+i*i)+Math.sqrt(o*o+s*s))/2)**7,l=.5*(1-Math.sqrt(u/(u+V._pow25to7))),c=(1+l)*n,h=(1+l)*o,f=Math.sqrt(c*c+i*i),d=Math.sqrt(h*h+s*s),p=f*d,m=V._calculatehp(i,c),g=V._calculatehp(s,h),b=Math.abs(m-g),v=a-r,y=d-f,w=V._calculate_dHp(p,b,g,m),_=V._calculate_ahp(p,b,m,g),k=(f+d)/2,B=((r+a)/2-50)**2,x=y/(1+.045*k),E=w/(1+.015*V._calculateT(_)*k);return(v/(1+.015*B/Math.sqrt(20+B)))**2+x**2+E**2+V._calculateRT(_,k)*x*E}},Y=V;c(Y,"_kA",25/255),c(Y,"_pow25to7",25**7),c(Y,"_deg360InRad",_(360)),c(Y,"_deg180InRad",_(180)),c(Y,"_deg30InRad",_(30)),c(Y,"_deg6InRad",_(6)),c(Y,"_deg63InRad",_(63)),c(Y,"_deg275InRad",_(275)),c(Y,"_deg25InRad",_(25));var X=class extends W{calculateRaw(t,e,r,n,i,a,o,s){const u=(t+i)/2*this._whitePoint.r,l=(t-i)*this._whitePoint.r,c=(e-a)*this._whitePoint.g,h=(r-o)*this._whitePoint.b,f=((512+u)*l*l>>8)+4*c*c+((767-u)*h*h>>8),d=(s-n)*this._whitePoint.a;return Math.sqrt(f+d*d)}_setDefaults(){}},J=class extends W{calculateRaw(t,e,r,n,i,a,o,s){const u=i-t,l=a-e,c=o-r,h=s-n;return Math.sqrt(this._kR*u*u+this._kG*l*l+this._kB*c*c+this._kA*h*h)}},Q=class extends J{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},K=class extends J{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},tt=class extends J{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=0}},et=class extends W{calculateRaw(t,e,r,n,i,a,o,s){let u=i-t,l=a-e,c=o-r,h=s-n;return u<0&&(u=0-u),l<0&&(l=0-l),c<0&&(c=0-c),h<0&&(h=0-h),this._kR*u+this._kG*l+this._kB*c+this._kA*h}},rt=class extends et{_setDefaults(){this._kR=1,this._kG=1,this._kB=1,this._kA=1}},nt=class extends et{_setDefaults(){this._kR=.4984,this._kG=.8625,this._kB=.2979,this._kA=1}},it=class extends et{_setDefaults(){this._kR=.2126,this._kG=.7152,this._kB=.0722,this._kA=1}},at=class extends W{calculateRaw(t,e,r,n,i,a,o,s){const u=(s-n)*this._whitePoint.a;return this._colordifferenceCh(t*this._whitePoint.r,i*this._whitePoint.r,u)+this._colordifferenceCh(e*this._whitePoint.g,a*this._whitePoint.g,u)+this._colordifferenceCh(r*this._whitePoint.b,o*this._whitePoint.b,u)}_colordifferenceCh(t,e,r){const n=t-e,i=n+r;return n*n+i*i}_setDefaults(){}},ot={};u(ot,{AbstractPaletteQuantizer:()=>st,ColorHistogram:()=>xt,NeuQuant:()=>yt,NeuQuantFloat:()=>kt,RGBQuant:()=>Ct,WuColorCube:()=>Tt,WuQuant:()=>Lt});var st=class{quantizeSync(){for(const t of this.quantize())if(t.palette)return t.palette;throw new Error("unreachable")}},ut=class{constructor(){c(this,"r"),c(this,"g"),c(this,"b"),c(this,"a"),c(this,"uint32"),c(this,"rgba"),this.uint32=-1>>>0,this.r=this.g=this.b=this.a=0,this.rgba=new Array(4),this.rgba[0]=0,this.rgba[1]=0,this.rgba[2]=0,this.rgba[3]=0}static createByQuadruplet(t){const e=new ut;return e.r=0|t[0],e.g=0|t[1],e.b=0|t[2],e.a=0|t[3],e._loadUINT32(),e._loadQuadruplet(),e}static createByRGBA(t,e,r,n){const i=new ut;return i.r=0|t,i.g=0|e,i.b=0|r,i.a=0|n,i._loadUINT32(),i._loadQuadruplet(),i}static createByUint32(t){const e=new ut;return e.uint32=t>>>0,e._loadRGBA(),e._loadQuadruplet(),e}from(t){this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this.uint32=t.uint32,this.rgba[0]=t.r,this.rgba[1]=t.g,this.rgba[2]=t.b,this.rgba[3]=t.a}getLuminosity(t){let e=this.r,r=this.g,n=this.b;return t&&(e=Math.min(255,255-this.a+this.a*e/255),r=Math.min(255,255-this.a+this.a*r/255),n=Math.min(255,255-this.a+this.a*n/255)),.2126*e+.7152*r+.0722*n}_loadUINT32(){this.uint32=(this.a<<24|this.b<<16|this.g<<8|this.r)>>>0}_loadRGBA(){this.r=255&this.uint32,this.g=this.uint32>>>8&255,this.b=this.uint32>>>16&255,this.a=this.uint32>>>24&255}_loadQuadruplet(){this.rgba[0]=this.r,this.rgba[1]=this.g,this.rgba[2]=this.b,this.rgba[3]=this.a}},lt=class{constructor(){c(this,"_pointArray"),c(this,"_width"),c(this,"_height"),this._width=0,this._height=0,this._pointArray=[]}getWidth(){return this._width}getHeight(){return this._height}setWidth(t){this._width=t}setHeight(t){this._height=t}getPointArray(){return this._pointArray}clone(){const t=new lt;t._width=this._width,t._height=this._height;for(let e=0,r=this._pointArray.length;e<r;e++)t._pointArray[e]=ut.createByUint32(0|this._pointArray[e].uint32);return t}toUint32Array(){const t=this._pointArray.length,e=new Uint32Array(t);for(let r=0;r<t;r++)e[r]=this._pointArray[r].uint32;return e}toUint8Array(){return new Uint8Array(this.toUint32Array().buffer)}static fromHTMLImageElement(t){const e=t.naturalWidth,r=t.naturalHeight,n=document.createElement("canvas");return n.width=e,n.height=r,n.getContext("2d").drawImage(t,0,0,e,r,0,0,e,r),lt.fromHTMLCanvasElement(n)}static fromHTMLCanvasElement(t){const e=t.width,r=t.height,n=t.getContext("2d").getImageData(0,0,e,r);return lt.fromImageData(n)}static fromImageData(t){const e=t.width,r=t.height;return lt.fromUint8Array(t.data,e,r)}static fromUint8Array(t,e,r){switch(Object.prototype.toString.call(t)){case"[object Uint8ClampedArray]":case"[object Uint8Array]":break;default:t=new Uint8Array(t)}const n=new Uint32Array(t.buffer);return lt.fromUint32Array(n,e,r)}static fromUint32Array(t,e,r){const n=new lt;n._width=e,n._height=r;for(let e=0,r=t.length;e<r;e++)n._pointArray[e]=ut.createByUint32(0|t[e]);return n}static fromBuffer(t,e,r){const n=new Uint32Array(t.buffer,t.byteOffset,t.byteLength/Uint32Array.BYTES_PER_ELEMENT);return lt.fromUint32Array(n,e,r)}};function ct(t,e){const r=360/e;for(let n=1,i=r-r/2;n<e;n++,i+=r)if(t>=i&&t<i+r)return n;return 0}var ht=class{constructor(){c(this,"_pointContainer"),c(this,"_pointArray",[]),c(this,"_i32idx",{}),this._pointContainer=new lt,this._pointContainer.setHeight(1),this._pointArray=this._pointContainer.getPointArray()}add(t){this._pointArray.push(t),this._pointContainer.setWidth(this._pointArray.length)}has(t){for(let e=this._pointArray.length-1;e>=0;e--)if(t.uint32===this._pointArray[e].uint32)return!0;return!1}getNearestColor(t,e){return this._pointArray[0|this._getNearestIndex(t,e)]}getPointContainer(){return this._pointContainer}_nearestPointFromCache(t){return"number"==typeof this._i32idx[t]?this._i32idx[t]:-1}_getNearestIndex(t,e){let r=this._nearestPointFromCache(""+e.uint32);if(r>=0)return r;let n=Number.MAX_VALUE;r=0;for(let i=0,a=this._pointArray.length;i<a;i++){const a=this._pointArray[i],o=t.calculateRaw(e.r,e.g,e.b,e.a,a.r,a.g,a.b,a.a);o<n&&(n=o,r=i)}return this._i32idx[e.uint32]=r,r}sort(){this._i32idx={},this._pointArray.sort(((t,e)=>{const r=I(t.r,t.g,t.b),n=I(e.r,e.g,e.b),i=t.r===t.g&&t.g===t.b?0:1+ct(r.h,10),a=(e.r===e.g&&e.g===e.b?0:1+ct(n.h,10))-i;if(a)return-a;const o=t.getLuminosity(!0),s=e.getLuminosity(!0);if(s-o!=0)return s-o;const u=(100*n.s|0)-(100*r.s|0);return u?-u:0}))}},ft={};u(ft,{HueStatistics:()=>pt,Palette:()=>ht,Point:()=>ut,PointContainer:()=>lt,ProgressTracker:()=>gt,arithmetic:()=>w});var dt=class{constructor(){c(this,"num",0),c(this,"cols",[])}},pt=class{constructor(t,e){c(this,"_numGroups"),c(this,"_minCols"),c(this,"_stats"),c(this,"_groupsFull"),this._numGroups=t,this._minCols=e,this._stats=[];for(let e=0;e<=t;e++)this._stats[e]=new dt;this._groupsFull=0}check(t){this._groupsFull===this._numGroups+1&&(this.check=()=>{});const e=255&t,r=t>>>8&255,n=t>>>16&255,i=e===r&&r===n?0:1+ct(I(e,r,n).h,this._numGroups),a=this._stats[i],o=this._minCols;a.num++,a.num>o||(a.num===o&&this._groupsFull++,a.num<=o&&this._stats[i].cols.push(t))}injectIntoDictionary(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{t[e]?t[e]++:t[e]=1}))}injectIntoArray(t){for(let e=0;e<=this._numGroups;e++)this._stats[e].num<=this._minCols&&this._stats[e].cols.forEach((e=>{-1===t.indexOf(e)&&t.push(e)}))}},mt=class{constructor(t,e){c(this,"progress"),c(this,"_step"),c(this,"_range"),c(this,"_last"),c(this,"_progressRange"),this._range=t,this._progressRange=e,this._step=Math.max(1,this._range/(mt.steps+1)|0),this._last=-this._step,this.progress=0}shouldNotify(t){return t-this._last>=this._step&&(this._last=t,this.progress=Math.min(this._progressRange*this._last/this._range,this._progressRange),!0)}},gt=mt;c(gt,"steps",100);var bt=class{constructor(t){c(this,"r"),c(this,"g"),c(this,"b"),c(this,"a"),this.r=this.g=this.b=this.a=t}toPoint(){return ut.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=0|t,this.g-=0|e,this.b-=0|r,this.a-=0|n}},vt=class extends st{constructor(t,e=256){super(),c(this,"_pointArray"),c(this,"_networkSize"),c(this,"_network"),c(this,"_sampleFactor"),c(this,"_radPower"),c(this,"_freq"),c(this,"_bias"),c(this,"_distance"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new bt((t<<11)/this._networkSize|0),this._freq[t]=vt._initialBias/this._networkSize|0,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<vt._minpicturebytes&&(t=1);const r=30+(t-1)/3|0,n=e/t|0;let i,a=n/vt._nCycles|0,o=vt._initAlpha,s=(this._networkSize>>3)*vt._radiusBias,u=s>>vt._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*vt._radBias/(u*u))>>>0;i=e<vt._minpicturebytes?1:e%vt._prime1!=0?vt._prime1:e%vt._prime2!=0?vt._prime2:e%vt._prime3!=0?vt._prime3:vt._prime4;const l=new gt(n,99);for(let t=0,c=0;t<n;){l.shouldNotify(t)&&(yield{progress:l.progress});const n=this._pointArray[c],h=n.b<<3,f=n.g<<3,d=n.r<<3,p=n.a<<3,m=this._contest(h,f,d,p);if(this._alterSingle(o,m,h,f,d,p),0!==u&&this._alterNeighbour(u,m,h,f,d,p),c+=i,c>=e&&(c-=e),t++,0===a&&(a=1),t%a==0){o-=o/r|0,s-=s/vt._radiusDecrease|0,u=s>>vt._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*vt._radBias/(u*u))>>>0}}}_buildPalette(){const t=new ht;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,a){let o=e-t;o<-1&&(o=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,l=e-1,c=1;for(;u<s||l>o;){const t=this._radPower[c++]/vt._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}if(l>o){const e=this._network[l--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}}}_alterSingle(t,e,r,n,i,a){t/=vt._initAlpha;const o=this._network[e];o.subtract(t*(o.r-i),t*(o.g-n),t*(o.b-r),t*(o.a-a))}_contest(t,e,r,n){let i=~(1<<31),a=i,o=-1,s=o;for(let u=0;u<this._networkSize;u++){const l=this._network[u],c=8160*this._distance.calculateNormalized(l,{r,g:e,b:t,a:n})|0;c<i&&(i=c,o=u);const h=c-(this._bias[u]>>vt._initialBiasShift-3);h<a&&(a=h,s=u);const f=this._freq[u]>>vt._betaShift;this._freq[u]-=f,this._bias[u]+=f<<vt._gammaShift}return this._freq[o]+=vt._beta,this._bias[o]-=vt._betaGamma,s}},yt=vt;c(yt,"_prime1",499),c(yt,"_prime2",491),c(yt,"_prime3",487),c(yt,"_prime4",503),c(yt,"_minpicturebytes",vt._prime4),c(yt,"_nCycles",100),c(yt,"_initialBiasShift",16),c(yt,"_initialBias",1<<vt._initialBiasShift),c(yt,"_gammaShift",10),c(yt,"_betaShift",10),c(yt,"_beta",vt._initialBias>>vt._betaShift),c(yt,"_betaGamma",vt._initialBias<<vt._gammaShift-vt._betaShift),c(yt,"_radiusBiasShift",6),c(yt,"_radiusBias",1<<vt._radiusBiasShift),c(yt,"_radiusDecrease",30),c(yt,"_alphaBiasShift",10),c(yt,"_initAlpha",1<<vt._alphaBiasShift),c(yt,"_radBiasShift",8),c(yt,"_radBias",1<<vt._radBiasShift),c(yt,"_alphaRadBiasShift",vt._alphaBiasShift+vt._radBiasShift),c(yt,"_alphaRadBias",1<<vt._alphaRadBiasShift);var wt=class{constructor(t){c(this,"r"),c(this,"g"),c(this,"b"),c(this,"a"),this.r=this.g=this.b=this.a=t}toPoint(){return ut.createByRGBA(this.r>>3,this.g>>3,this.b>>3,this.a>>3)}subtract(t,e,r,n){this.r-=t,this.g-=e,this.b-=r,this.a-=n}},_t=class extends st{constructor(t,e=256){super(),c(this,"_pointArray"),c(this,"_networkSize"),c(this,"_network"),c(this,"_sampleFactor"),c(this,"_radPower"),c(this,"_freq"),c(this,"_bias"),c(this,"_distance"),this._distance=t,this._pointArray=[],this._sampleFactor=1,this._networkSize=e,this._distance.setWhitePoint(2040,2040,2040,2040)}sample(t){this._pointArray=this._pointArray.concat(t.getPointArray())}*quantize(){this._init(),yield*this._learn(),yield{palette:this._buildPalette(),progress:100}}_init(){this._freq=[],this._bias=[],this._radPower=[],this._network=[];for(let t=0;t<this._networkSize;t++)this._network[t]=new wt((t<<11)/this._networkSize),this._freq[t]=_t._initialBias/this._networkSize,this._bias[t]=0}*_learn(){let t=this._sampleFactor;const e=this._pointArray.length;e<_t._minpicturebytes&&(t=1);const r=30+(t-1)/3,n=e/t;let i,a=n/_t._nCycles|0,o=_t._initAlpha,s=(this._networkSize>>3)*_t._radiusBias,u=s>>_t._radiusBiasShift;u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*_t._radBias/(u*u));i=e<_t._minpicturebytes?1:e%_t._prime1!=0?_t._prime1:e%_t._prime2!=0?_t._prime2:e%_t._prime3!=0?_t._prime3:_t._prime4;const l=new gt(n,99);for(let t=0,c=0;t<n;){l.shouldNotify(t)&&(yield{progress:l.progress});const n=this._pointArray[c],h=n.b<<3,f=n.g<<3,d=n.r<<3,p=n.a<<3,m=this._contest(h,f,d,p);if(this._alterSingle(o,m,h,f,d,p),0!==u&&this._alterNeighbour(u,m,h,f,d,p),c+=i,c>=e&&(c-=e),t++,0===a&&(a=1),t%a==0){o-=o/r,s-=s/_t._radiusDecrease,u=s>>_t._radiusBiasShift,u<=1&&(u=0);for(let t=0;t<u;t++)this._radPower[t]=o*((u*u-t*t)*_t._radBias/(u*u))}}}_buildPalette(){const t=new ht;return this._network.forEach((e=>{t.add(e.toPoint())})),t.sort(),t}_alterNeighbour(t,e,r,n,i,a){let o=e-t;o<-1&&(o=-1);let s=e+t;s>this._networkSize&&(s=this._networkSize);let u=e+1,l=e-1,c=1;for(;u<s||l>o;){const t=this._radPower[c++]/_t._alphaRadBias;if(u<s){const e=this._network[u++];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}if(l>o){const e=this._network[l--];e.subtract(t*(e.r-i),t*(e.g-n),t*(e.b-r),t*(e.a-a))}}}_alterSingle(t,e,r,n,i,a){t/=_t._initAlpha;const o=this._network[e];o.subtract(t*(o.r-i),t*(o.g-n),t*(o.b-r),t*(o.a-a))}_contest(t,e,r,n){let i=~(1<<31),a=i,o=-1,s=o;for(let u=0;u<this._networkSize;u++){const l=this._network[u],c=8160*this._distance.calculateNormalized(l,{r,g:e,b:t,a:n});c<i&&(i=c,o=u);const h=c-(this._bias[u]>>_t._initialBiasShift-3);h<a&&(a=h,s=u);const f=this._freq[u]>>_t._betaShift;this._freq[u]-=f,this._bias[u]+=f<<_t._gammaShift}return this._freq[o]+=_t._beta,this._bias[o]-=_t._betaGamma,s}},kt=_t;c(kt,"_prime1",499),c(kt,"_prime2",491),c(kt,"_prime3",487),c(kt,"_prime4",503),c(kt,"_minpicturebytes",_t._prime4),c(kt,"_nCycles",100),c(kt,"_initialBiasShift",16),c(kt,"_initialBias",1<<_t._initialBiasShift),c(kt,"_gammaShift",10),c(kt,"_betaShift",10),c(kt,"_beta",_t._initialBias>>_t._betaShift),c(kt,"_betaGamma",_t._initialBias<<_t._gammaShift-_t._betaShift),c(kt,"_radiusBiasShift",6),c(kt,"_radiusBias",1<<_t._radiusBiasShift),c(kt,"_radiusDecrease",30),c(kt,"_alphaBiasShift",10),c(kt,"_initAlpha",1<<_t._alphaBiasShift),c(kt,"_radBiasShift",8),c(kt,"_radBias",1<<_t._radBiasShift),c(kt,"_alphaRadBiasShift",_t._alphaBiasShift+_t._radBiasShift),c(kt,"_alphaRadBias",1<<_t._alphaRadBiasShift);var Bt=class{constructor(t,e){c(this,"_method"),c(this,"_hueStats"),c(this,"_histogram"),c(this,"_initColors"),c(this,"_minHueCols"),this._method=t,this._minHueCols=e<<2,this._initColors=e<<2,this._hueStats=new pt(Bt._hueGroups,this._minHueCols),this._histogram=Object.create(null)}sample(t){switch(this._method){case 1:this._colorStats1D(t);break;case 2:this._colorStats2D(t)}}getImportanceSortedColorsIDXI32(){const t=A(Object.keys(this._histogram),((t,e)=>this._histogram[e]-this._histogram[t]));if(0===t.length)return[];let e;switch(this._method){case 1:const r=Math.min(t.length,this._initColors),n=t[r-1],i=this._histogram[n];e=t.slice(0,r);let a=r;const o=t.length;for(;a<o&&this._histogram[t[a]]===i;)e.push(t[a++]);this._hueStats.injectIntoArray(e);break;case 2:e=t;break;default:throw new Error("Incorrect method")}return e.map((t=>+t))}_colorStats1D(t){const e=this._histogram,r=t.getPointArray(),n=r.length;for(let t=0;t<n;t++){const n=r[t].uint32;this._hueStats.check(n),n in e?e[n]++:e[n]=1}}_colorStats2D(t){const e=t.getWidth(),r=t.getHeight(),n=t.getPointArray(),i=Bt._boxSize[0],a=Bt._boxSize[1],o=i*a,s=this._makeBoxes(e,r,i,a),u=this._histogram;s.forEach((t=>{let r=Math.round(t.w*t.h/o)*Bt._boxPixels;r<2&&(r=2);const i={};this._iterateBox(t,e,(t=>{const e=n[t].uint32;this._hueStats.check(e),e in u?u[e]++:e in i?++i[e]>=r&&(u[e]=i[e]):i[e]=1}))})),this._hueStats.injectIntoDictionary(u)}_iterateBox(t,e,r){const n=t,i=n.y*e+n.x,a=(n.y+n.h-1)*e+(n.x+n.w-1),o=e-n.w+1;let s=0,u=i;do{r.call(this,u),u+=++s%n.w==0?o:1}while(u<=a)}_makeBoxes(t,e,r,n){const i=t%r,a=e%n,o=t-i,s=e-a,u=[];for(let l=0;l<e;l+=n)for(let e=0;e<t;e+=r)u.push({x:e,y:l,w:e===o?i:r,h:l===s?a:n});return u}},xt=Bt;c(xt,"_boxSize",[64,64]),c(xt,"_boxPixels",2),c(xt,"_hueGroups",10);var Et=class{constructor(t,e,r){c(this,"index"),c(this,"color"),c(this,"distance"),this.index=t,this.color=e,this.distance=r}},Ct=class extends st{constructor(t,e=256,r=2){super(),c(this,"_colors"),c(this,"_initialDistance"),c(this,"_distanceIncrement"),c(this,"_histogram"),c(this,"_distance"),this._distance=t,this._colors=e,this._histogram=new xt(r,e),this._initialDistance=.01,this._distanceIncrement=.005}sample(t){this._histogram.sample(t)}*quantize(){const t=this._histogram.getImportanceSortedColorsIDXI32();if(0===t.length)throw new Error("No colors in image");yield*this._buildPalette(t)}*_buildPalette(t){const e=new ht,r=e.getPointContainer().getPointArray(),n=new Array(t.length);for(let e=0;e<t.length;e++)r.push(ut.createByUint32(t[e])),n[e]=1;const i=r.length,a=[];let o=i,s=this._initialDistance;const u=new gt(o-this._colors,99);for(;o>this._colors;){a.length=0;for(let t=0;t<i;t++){if(u.shouldNotify(i-o)&&(yield{progress:u.progress}),0===n[t])continue;const e=r[t];for(let u=t+1;u<i;u++){if(0===n[u])continue;const t=r[u],i=this._distance.calculateNormalized(e,t);i<s&&(a.push(new Et(u,t,i)),n[u]=0,o--)}}s+=o>3*this._colors?this._initialDistance:this._distanceIncrement}if(o<this._colors){A(a,((t,e)=>e.distance-t.distance));let t=0;for(;o<this._colors&&t<a.length;)n[a[t].index]=1,o++,t++}let l=r.length;for(let t=l-1;t>=0;t--)0===n[t]&&(t!==l-1&&(r[t]=r[l-1]),--l);r.length=l,e.sort(),yield{palette:e,progress:100}}};function At(t){const e=[];for(let r=0;r<t;r++)e[r]=0;return e}function It(t,e,r,n){const i=new Array(t);for(let a=0;a<t;a++){i[a]=new Array(e);for(let t=0;t<e;t++){i[a][t]=new Array(r);for(let e=0;e<r;e++){i[a][t][e]=new Array(n);for(let r=0;r<n;r++)i[a][t][e][r]=0}}}return i}function Mt(t,e,r){const n=new Array(t);for(let i=0;i<t;i++){n[i]=new Array(e);for(let t=0;t<e;t++){n[i][t]=new Array(r);for(let e=0;e<r;e++)n[i][t][e]=0}}return n}function Pt(t,e,r,n,i){for(let a=0;a<e;a++){t[a]=[];for(let e=0;e<r;e++){t[a][e]=[];for(let r=0;r<n;r++)t[a][e][r]=i}}}function St(t,e,r){for(let n=0;n<e;n++)t[n]=r}var Tt=class{constructor(){c(this,"redMinimum"),c(this,"redMaximum"),c(this,"greenMinimum"),c(this,"greenMaximum"),c(this,"blueMinimum"),c(this,"blueMaximum"),c(this,"volume"),c(this,"alphaMinimum"),c(this,"alphaMaximum")}},Rt=class extends st{constructor(t,e=256,r=5){super(),c(this,"_reds"),c(this,"_greens"),c(this,"_blues"),c(this,"_alphas"),c(this,"_sums"),c(this,"_weights"),c(this,"_momentsRed"),c(this,"_momentsGreen"),c(this,"_momentsBlue"),c(this,"_momentsAlpha"),c(this,"_moments"),c(this,"_table"),c(this,"_pixels"),c(this,"_cubes"),c(this,"_colors"),c(this,"_significantBitsPerChannel"),c(this,"_maxSideIndex"),c(this,"_alphaMaxSideIndex"),c(this,"_sideSize"),c(this,"_alphaSideSize"),c(this,"_distance"),this._distance=t,this._setQuality(r),this._initialize(e)}sample(t){const e=t.getPointArray();for(let t=0,r=e.length;t<r;t++)this._addColor(e[t]);this._pixels=this._pixels.concat(e)}*quantize(){yield*this._preparePalette();const t=new ht;for(let e=0;e<this._colors;e++)if(this._sums[e]>0){const r=this._sums[e],n=this._reds[e]/r,i=this._greens[e]/r,a=this._blues[e]/r,o=this._alphas[e]/r,s=ut.createByRGBA(0|n,0|i,0|a,0|o);t.add(s)}t.sort(),yield{palette:t,progress:100}}*_preparePalette(){yield*this._calculateMoments();let t=0;const e=At(this._colors);for(let r=1;r<this._colors;++r){this._cut(this._cubes[t],this._cubes[r])?(e[t]=this._cubes[t].volume>1?this._calculateVariance(this._cubes[t]):0,e[r]=this._cubes[r].volume>1?this._calculateVariance(this._cubes[r]):0):(e[t]=0,r--),t=0;let n=e[0];for(let i=1;i<=r;++i)e[i]>n&&(n=e[i],t=i);if(n<=0){this._colors=r+1;break}}const r=[],n=[],i=[],a=[];for(let t=0;t<this._colors;++t){const e=Rt._volume(this._cubes[t],this._weights);e>0?(r[t]=Rt._volume(this._cubes[t],this._momentsRed)/e|0,n[t]=Rt._volume(this._cubes[t],this._momentsGreen)/e|0,i[t]=Rt._volume(this._cubes[t],this._momentsBlue)/e|0,a[t]=Rt._volume(this._cubes[t],this._momentsAlpha)/e|0):(r[t]=0,n[t]=0,i[t]=0,a[t]=0)}this._reds=At(this._colors+1),this._greens=At(this._colors+1),this._blues=At(this._colors+1),this._alphas=At(this._colors+1),this._sums=At(this._colors+1);for(let t=0,e=this._pixels.length;t<e;t++){const e=this._pixels[t];let o=-1,s=Number.MAX_VALUE;for(let t=0;t<this._colors;t++){const u=r[t],l=n[t],c=i[t],h=a[t],f=this._distance.calculateRaw(u,l,c,h,e.r,e.g,e.b,e.a);f<s&&(s=f,o=t)}this._reds[o]+=e.r,this._greens[o]+=e.g,this._blues[o]+=e.b,this._alphas[o]+=e.a,this._sums[o]++}}_addColor(t){const e=8-this._significantBitsPerChannel,r=1+(t.r>>e),n=1+(t.g>>e),i=1+(t.b>>e),a=1+(t.a>>e);this._weights[a][r][n][i]++,this._momentsRed[a][r][n][i]+=t.r,this._momentsGreen[a][r][n][i]+=t.g,this._momentsBlue[a][r][n][i]+=t.b,this._momentsAlpha[a][r][n][i]+=t.a,this._moments[a][r][n][i]+=this._table[t.r]+this._table[t.g]+this._table[t.b]+this._table[t.a]}*_calculateMoments(){const t=[],e=[],r=[],n=[],i=[],a=[],o=Mt(this._sideSize,this._sideSize,this._sideSize),s=Mt(this._sideSize,this._sideSize,this._sideSize),u=Mt(this._sideSize,this._sideSize,this._sideSize),l=Mt(this._sideSize,this._sideSize,this._sideSize),c=Mt(this._sideSize,this._sideSize,this._sideSize),h=Mt(this._sideSize,this._sideSize,this._sideSize);let f=0;const d=new gt(this._alphaMaxSideIndex*this._maxSideIndex,99);for(let p=1;p<=this._alphaMaxSideIndex;++p){Pt(o,this._sideSize,this._sideSize,this._sideSize,0),Pt(s,this._sideSize,this._sideSize,this._sideSize,0),Pt(u,this._sideSize,this._sideSize,this._sideSize,0),Pt(l,this._sideSize,this._sideSize,this._sideSize,0),Pt(c,this._sideSize,this._sideSize,this._sideSize,0),Pt(h,this._sideSize,this._sideSize,this._sideSize,0);for(let m=1;m<=this._maxSideIndex;++m,++f){d.shouldNotify(f)&&(yield{progress:d.progress}),St(t,this._sideSize,0),St(e,this._sideSize,0),St(r,this._sideSize,0),St(n,this._sideSize,0),St(i,this._sideSize,0),St(a,this._sideSize,0);for(let f=1;f<=this._maxSideIndex;++f){let d=0,g=0,b=0,v=0,y=0,w=0;for(let _=1;_<=this._maxSideIndex;++_)d+=this._weights[p][m][f][_],g+=this._momentsRed[p][m][f][_],b+=this._momentsGreen[p][m][f][_],v+=this._momentsBlue[p][m][f][_],y+=this._momentsAlpha[p][m][f][_],w+=this._moments[p][m][f][_],t[_]+=d,e[_]+=g,r[_]+=b,n[_]+=v,i[_]+=y,a[_]+=w,o[m][f][_]=o[m-1][f][_]+t[_],s[m][f][_]=s[m-1][f][_]+e[_],u[m][f][_]=u[m-1][f][_]+r[_],l[m][f][_]=l[m-1][f][_]+n[_],c[m][f][_]=c[m-1][f][_]+i[_],h[m][f][_]=h[m-1][f][_]+a[_],this._weights[p][m][f][_]=this._weights[p-1][m][f][_]+o[m][f][_],this._momentsRed[p][m][f][_]=this._momentsRed[p-1][m][f][_]+s[m][f][_],this._momentsGreen[p][m][f][_]=this._momentsGreen[p-1][m][f][_]+u[m][f][_],this._momentsBlue[p][m][f][_]=this._momentsBlue[p-1][m][f][_]+l[m][f][_],this._momentsAlpha[p][m][f][_]=this._momentsAlpha[p-1][m][f][_]+c[m][f][_],this._moments[p][m][f][_]=this._moments[p-1][m][f][_]+h[m][f][_]}}}}static _volumeFloat(t,e){return e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMaximum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(e[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]-e[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+e[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-e[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]+e[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-e[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum])}static _volume(t,e){return 0|Rt._volumeFloat(t,e)}static _top(t,e,r,n){let i;switch(e){case Rt._alpha:i=n[r][t.redMaximum][t.greenMaximum][t.blueMaximum]-n[r][t.redMaximum][t.greenMinimum][t.blueMaximum]-n[r][t.redMinimum][t.greenMaximum][t.blueMaximum]+n[r][t.redMinimum][t.greenMinimum][t.blueMaximum]-(n[r][t.redMaximum][t.greenMaximum][t.blueMinimum]-n[r][t.redMaximum][t.greenMinimum][t.blueMinimum]-n[r][t.redMinimum][t.greenMaximum][t.blueMinimum]+n[r][t.redMinimum][t.greenMinimum][t.blueMinimum]);break;case Rt._red:i=n[t.alphaMaximum][r][t.greenMaximum][t.blueMaximum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMaximum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMaximum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMaximum]-(n[t.alphaMaximum][r][t.greenMaximum][t.blueMinimum]-n[t.alphaMaximum][r][t.greenMinimum][t.blueMinimum]-n[t.alphaMinimum][r][t.greenMaximum][t.blueMinimum]+n[t.alphaMinimum][r][t.greenMinimum][t.blueMinimum]);break;case Rt._green:i=n[t.alphaMaximum][t.redMaximum][r][t.blueMaximum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMaximum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMaximum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMaximum]-(n[t.alphaMaximum][t.redMaximum][r][t.blueMinimum]-n[t.alphaMaximum][t.redMinimum][r][t.blueMinimum]-n[t.alphaMinimum][t.redMaximum][r][t.blueMinimum]+n[t.alphaMinimum][t.redMinimum][r][t.blueMinimum]);break;case Rt._blue:i=n[t.alphaMaximum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMaximum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMaximum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMaximum][t.redMinimum][t.greenMinimum][r]-(n[t.alphaMinimum][t.redMaximum][t.greenMaximum][r]-n[t.alphaMinimum][t.redMaximum][t.greenMinimum][r]-n[t.alphaMinimum][t.redMinimum][t.greenMaximum][r]+n[t.alphaMinimum][t.redMinimum][t.greenMinimum][r]);break;default:throw new Error("impossible")}return 0|i}static _bottom(t,e,r){switch(e){case Rt._alpha:return-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case Rt._red:return-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case Rt._green:return-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMaximum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMaximum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMaximum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMaximum]-(-r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);case Rt._blue:return-r[t.alphaMaximum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMaximum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMaximum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMaximum][t.redMinimum][t.greenMinimum][t.blueMinimum]-(-r[t.alphaMinimum][t.redMaximum][t.greenMaximum][t.blueMinimum]+r[t.alphaMinimum][t.redMaximum][t.greenMinimum][t.blueMinimum]+r[t.alphaMinimum][t.redMinimum][t.greenMaximum][t.blueMinimum]-r[t.alphaMinimum][t.redMinimum][t.greenMinimum][t.blueMinimum]);default:return 0}}_calculateVariance(t){const e=Rt._volume(t,this._momentsRed),r=Rt._volume(t,this._momentsGreen),n=Rt._volume(t,this._momentsBlue),i=Rt._volume(t,this._momentsAlpha);return Rt._volumeFloat(t,this._moments)-(e*e+r*r+n*n+i*i)/Rt._volume(t,this._weights)}_maximize(t,e,r,n,i,a,o,s,u){const l=0|Rt._bottom(t,e,this._momentsRed),c=0|Rt._bottom(t,e,this._momentsGreen),h=0|Rt._bottom(t,e,this._momentsBlue),f=0|Rt._bottom(t,e,this._momentsAlpha),d=0|Rt._bottom(t,e,this._weights);let p=0,m=-1;for(let g=r;g<n;++g){let r=l+Rt._top(t,e,g,this._momentsRed),n=c+Rt._top(t,e,g,this._momentsGreen),b=h+Rt._top(t,e,g,this._momentsBlue),v=f+Rt._top(t,e,g,this._momentsAlpha),y=d+Rt._top(t,e,g,this._weights);if(0!==y){let t=r*r+n*n+b*b+v*v,e=t/y;r=i-r,n=a-n,b=o-b,v=s-v,y=u-y,0!==y&&(t=r*r+n*n+b*b+v*v,e+=t/y,e>p&&(p=e,m=g))}}return{max:p,position:m}}_cut(t,e){let r;const n=Rt._volume(t,this._momentsRed),i=Rt._volume(t,this._momentsGreen),a=Rt._volume(t,this._momentsBlue),o=Rt._volume(t,this._momentsAlpha),s=Rt._volume(t,this._weights),u=this._maximize(t,Rt._red,t.redMinimum+1,t.redMaximum,n,i,a,o,s),l=this._maximize(t,Rt._green,t.greenMinimum+1,t.greenMaximum,n,i,a,o,s),c=this._maximize(t,Rt._blue,t.blueMinimum+1,t.blueMaximum,n,i,a,o,s),h=this._maximize(t,Rt._alpha,t.alphaMinimum+1,t.alphaMaximum,n,i,a,o,s);if(h.max>=u.max&&h.max>=l.max&&h.max>=c.max){if(r=Rt._alpha,h.position<0)return!1}else r=u.max>=h.max&&u.max>=l.max&&u.max>=c.max?Rt._red:l.max>=h.max&&l.max>=u.max&&l.max>=c.max?Rt._green:Rt._blue;switch(e.redMaximum=t.redMaximum,e.greenMaximum=t.greenMaximum,e.blueMaximum=t.blueMaximum,e.alphaMaximum=t.alphaMaximum,r){case Rt._red:e.redMinimum=t.redMaximum=u.position,e.greenMinimum=t.greenMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case Rt._green:e.greenMinimum=t.greenMaximum=l.position,e.redMinimum=t.redMinimum,e.blueMinimum=t.blueMinimum,e.alphaMinimum=t.alphaMinimum;break;case Rt._blue:e.blueMinimum=t.blueMaximum=c.position,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum,e.alphaMinimum=t.alphaMinimum;break;case Rt._alpha:e.alphaMinimum=t.alphaMaximum=h.position,e.blueMinimum=t.blueMinimum,e.redMinimum=t.redMinimum,e.greenMinimum=t.greenMinimum}return t.volume=(t.redMaximum-t.redMinimum)*(t.greenMaximum-t.greenMinimum)*(t.blueMaximum-t.blueMinimum)*(t.alphaMaximum-t.alphaMinimum),e.volume=(e.redMaximum-e.redMinimum)*(e.greenMaximum-e.greenMinimum)*(e.blueMaximum-e.blueMinimum)*(e.alphaMaximum-e.alphaMinimum),!0}_initialize(t){this._colors=t,this._cubes=[];for(let e=0;e<t;e++)this._cubes[e]=new Tt;this._cubes[0].redMinimum=0,this._cubes[0].greenMinimum=0,this._cubes[0].blueMinimum=0,this._cubes[0].alphaMinimum=0,this._cubes[0].redMaximum=this._maxSideIndex,this._cubes[0].greenMaximum=this._maxSideIndex,this._cubes[0].blueMaximum=this._maxSideIndex,this._cubes[0].alphaMaximum=this._alphaMaxSideIndex,this._weights=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsRed=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsGreen=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsBlue=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._momentsAlpha=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._moments=It(this._alphaSideSize,this._sideSize,this._sideSize,this._sideSize),this._table=[];for(let t=0;t<256;++t)this._table[t]=t*t;this._pixels=[]}_setQuality(t=5){this._significantBitsPerChannel=t,this._maxSideIndex=1<<this._significantBitsPerChannel,this._alphaMaxSideIndex=this._maxSideIndex,this._sideSize=this._maxSideIndex+1,this._alphaSideSize=this._alphaMaxSideIndex+1}},Lt=Rt;c(Lt,"_alpha",3),c(Lt,"_red",2),c(Lt,"_green",1),c(Lt,"_blue",0);var Ot={};u(Ot,{AbstractImageQuantizer:()=>Ft,ErrorDiffusionArray:()=>Dt,ErrorDiffusionArrayKernel:()=>Ut,ErrorDiffusionRiemersma:()=>Ht,NearestColor:()=>Nt});var Ft=class{quantizeSync(t,e){for(const r of this.quantize(t,e))if(r.pointContainer)return r.pointContainer;throw new Error("unreachable")}},Nt=class extends Ft{constructor(t){super(),c(this,"_distance"),this._distance=t}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),a=new gt(i,99);for(let t=0;t<i;t++){a.shouldNotify(t)&&(yield{progress:a.progress});for(let i=0,a=t*n;i<n;i++,a++){const t=r[a];t.from(e.getNearestColor(this._distance,t))}}yield{pointContainer:t,progress:100}}},Ut=(t=>(t[t.FloydSteinberg=0]="FloydSteinberg",t[t.FalseFloydSteinberg=1]="FalseFloydSteinberg",t[t.Stucki=2]="Stucki",t[t.Atkinson=3]="Atkinson",t[t.Jarvis=4]="Jarvis",t[t.Burkes=5]="Burkes",t[t.Sierra=6]="Sierra",t[t.TwoSierra=7]="TwoSierra",t[t.SierraLite=8]="SierraLite",t))(Ut||{}),Dt=class extends Ft{constructor(t,e,r=!0,n=0,i=!1){super(),c(this,"_minColorDistance"),c(this,"_serpentine"),c(this,"_kernel"),c(this,"_calculateErrorLikeGIMP"),c(this,"_distance"),this._setKernel(e),this._distance=t,this._minColorDistance=n,this._serpentine=r,this._calculateErrorLikeGIMP=i}*quantize(t,e){const r=t.getPointArray(),n=new ut,i=t.getWidth(),a=t.getHeight(),o=[];let s=1,u=1;for(const t of this._kernel){const e=t[2]+1;u<e&&(u=e)}for(let t=0;t<u;t++)this._fillErrorLine(o[t]=[],i);const l=new gt(a,99);for(let t=0;t<a;t++){l.shouldNotify(t)&&(yield{progress:l.progress}),this._serpentine&&(s*=-1);const u=t*i,c=1===s?0:i-1,h=1===s?i:-1;this._fillErrorLine(o[0],i),o.push(o.shift());const f=o[0];for(let l=c,d=u+c;l!==h;l+=s,d+=s){const u=r[d],c=f[l];n.from(u);const h=ut.createByRGBA(E(u.r+c[0]),E(u.g+c[1]),E(u.b+c[2]),E(u.a+c[3])),p=e.getNearestColor(this._distance,h);if(u.from(p),this._minColorDistance&&this._distance.calculateNormalized(n,p)<this._minColorDistance)continue;let m,g,b,v;this._calculateErrorLikeGIMP?(m=h.r-p.r,g=h.g-p.g,b=h.b-p.b,v=h.a-p.a):(m=n.r-p.r,g=n.g-p.g,b=n.b-p.b,v=n.a-p.a);const y=1===s?0:this._kernel.length-1,w=1===s?this._kernel.length:-1;for(let e=y;e!==w;e+=s){const r=this._kernel[e][1]*s,n=this._kernel[e][2];if(r+l>=0&&r+l<i&&n+t>=0&&n+t<a){const t=this._kernel[e][0],i=o[n][r+l];i[0]+=m*t,i[1]+=g*t,i[2]+=b*t,i[3]+=v*t}}}}yield{pointContainer:t,progress:100}}_fillErrorLine(t,e){t.length>e&&(t.length=e);const r=t.length;for(let e=0;e<r;e++){const r=t[e];r[0]=r[1]=r[2]=r[3]=0}for(let n=r;n<e;n++)t[n]=[0,0,0,0]}_setKernel(t){switch(t){case 0:this._kernel=[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]];break;case 1:this._kernel=[[3/8,1,0],[3/8,0,1],[2/8,1,1]];break;case 2:this._kernel=[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]];break;case 3:this._kernel=[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]];break;case 4:this._kernel=[[7/48,1,0],[5/48,2,0],[3/48,-2,1],[5/48,-1,1],[7/48,0,1],[5/48,1,1],[3/48,2,1],[1/48,-2,2],[3/48,-1,2],[5/48,0,2],[3/48,1,2],[1/48,2,2]];break;case 5:this._kernel=[[.25,1,0],[4/32,2,0],[2/32,-2,1],[4/32,-1,1],[.25,0,1],[4/32,1,1],[2/32,2,1]];break;case 6:this._kernel=[[5/32,1,0],[3/32,2,0],[2/32,-2,1],[4/32,-1,1],[5/32,0,1],[4/32,1,1],[2/32,2,1],[2/32,-1,2],[3/32,0,2],[2/32,1,2]];break;case 7:this._kernel=[[.25,1,0],[3/16,2,0],[1/16,-2,1],[2/16,-1,1],[3/16,0,1],[2/16,1,1],[1/16,2,1]];break;case 8:this._kernel=[[.5,1,0],[1/4,-1,1],[1/4,0,1]];break;default:throw new Error(`ErrorDiffusionArray: unknown kernel = ${t}`)}}};function*zt(t,e,r){const n=Math.max(t,e),i={width:t,height:e,level:Math.floor(Math.log(n)/Math.log(2)+1),callback:r,tracker:new gt(t*e,99),index:0,x:0,y:0};yield*Gt(i,1),jt(i,0)}function*Gt(t,e){if(!(t.level<1)){switch(t.tracker.shouldNotify(t.index)&&(yield{progress:t.tracker.progress}),t.level--,e){case 2:yield*Gt(t,1),jt(t,3),yield*Gt(t,2),jt(t,4),yield*Gt(t,2),jt(t,2),yield*Gt(t,4);break;case 3:yield*Gt(t,4),jt(t,2),yield*Gt(t,3),jt(t,1),yield*Gt(t,3),jt(t,3),yield*Gt(t,1);break;case 1:yield*Gt(t,2),jt(t,4),yield*Gt(t,1),jt(t,3),yield*Gt(t,1),jt(t,1),yield*Gt(t,3);break;case 4:yield*Gt(t,3),jt(t,1),yield*Gt(t,4),jt(t,2),yield*Gt(t,4),jt(t,4),yield*Gt(t,2)}t.level++}}function jt(t,e){switch(t.x>=0&&t.x<t.width&&t.y>=0&&t.y<t.height&&(t.callback(t.x,t.y),t.index++),e){case 2:t.x--;break;case 3:t.x++;break;case 1:t.y--;break;case 4:t.y++}}var Ht=class extends Ft{constructor(t,e=16,r=1){super(),c(this,"_distance"),c(this,"_weights"),c(this,"_errorQueueSize"),this._distance=t,this._errorQueueSize=e,this._weights=Ht._createWeights(r,e)}*quantize(t,e){const r=t.getPointArray(),n=t.getWidth(),i=t.getHeight(),a=[];let o=0;for(let t=0;t<this._errorQueueSize;t++)a[t]={r:0,g:0,b:0,a:0};yield*zt(n,i,((t,i)=>{const s=r[t+i*n];let{r:u,g:l,b:c,a:h}=s;for(let t=0;t<this._errorQueueSize;t++){const e=this._weights[t],r=a[(t+o)%this._errorQueueSize];u+=r.r*e,l+=r.g*e,c+=r.b*e,h+=r.a*e}const f=ut.createByRGBA(E(u),E(l),E(c),E(h)),d=e.getNearestColor(this._distance,f);o=(o+1)%this._errorQueueSize;const p=(o+this._errorQueueSize-1)%this._errorQueueSize;a[p].r=s.r-d.r,a[p].g=s.g-d.g,a[p].b=s.b-d.b,a[p].a=s.a-d.a,s.from(d)})),yield{pointContainer:t,progress:100}}static _createWeights(t,e){const r=[],n=Math.exp(Math.log(e)/(e-1));for(let i=0,a=1;i<e;i++)r[i]=(a+.5|0)/e*t,a*=n;return r}},Wt={};u(Wt,{ssim:()=>$t});var qt=.01,Zt=.03;function $t(t,e){if(t.getHeight()!==e.getHeight()||t.getWidth()!==e.getWidth())throw new Error("Images have different sizes!");const r=(255*qt)**2,n=(255*Zt)**2;let i=0,a=0;return function(t,e,r){const n=t.getWidth(),i=t.getHeight();for(let a=0;a<i;a+=8)for(let o=0;o<n;o+=8){const s=Math.min(8,n-o),u=Math.min(8,i-a),l=Vt(t,o,a,s,u),c=Vt(e,o,a,s,u);r(l,c,Yt(l),Yt(c))}}(t,e,((t,e,o,s)=>{let u=0,l=0,c=0;for(let r=0;r<t.length;r++)l+=(t[r]-o)**2,c+=(e[r]-s)**2,u+=(t[r]-o)*(e[r]-s);const h=t.length-1;l/=h,c/=h,u/=h,a+=(2*o*s+r)*(2*u+n)/((o**2+s**2+r)*(l+c+n)),i++})),a/i}function Vt(t,e,r,n,i){const a=t.getPointArray(),o=[];let s=0;for(let u=r;u<r+i;u++){const r=u*t.getWidth();for(let t=e;t<e+n;t++){const e=a[r+t];o[s]=.2126*e.r+.7152*e.g+.0722*e.b,s++}}return o}function Yt(t){let e=0;for(const r of t)e+=r;return e/t.length}var Xt="function"==typeof setImmediate?setImmediate:void 0!==n&&"function"==typeof(null==n?void 0:n.nextTick)?t=>n.nextTick(t):t=>setTimeout(t,0);function Jt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n}={}){const i=ne(ee(e),r,n);return t.forEach((t=>i.sample(t))),i.quantizeSync()}async function Qt(t,{colorDistanceFormula:e,paletteQuantization:r,colors:n,onProgress:i}={}){return new Promise(((a,o)=>{const s=ne(ee(e),r,n);let u;t.forEach((t=>s.sample(t)));const l=s.quantize(),c=()=>{try{const t=l.next();t.done?a(u):(t.value.palette&&(u=t.value.palette),i&&i(t.value.progress),Xt(c))}catch(t){o(t)}};Xt(c)}))}function Kt(t,e,{colorDistanceFormula:r,imageQuantization:n}={}){return re(ee(r),n).quantizeSync(t,e)}async function te(t,e,{colorDistanceFormula:r,imageQuantization:n,onProgress:i}={}){return new Promise(((a,o)=>{let s;const u=re(ee(r),n).quantize(t,e),l=()=>{try{const t=u.next();t.done?a(s):(t.value.pointContainer&&(s=t.value.pointContainer),i&&i(t.value.progress),Xt(l))}catch(t){o(t)}};Xt(l)}))}function ee(t="euclidean-bt709"){switch(t){case"cie94-graphic-arts":return new $;case"cie94-textiles":return new Z;case"ciede2000":return new Y;case"color-metric":return new X;case"euclidean":return new Q;case"euclidean-bt709":return new K;case"euclidean-bt709-noalpha":return new tt;case"manhattan":return new rt;case"manhattan-bt709":return new it;case"manhattan-nommyde":return new nt;case"pngquant":return new at;default:throw new Error(`Unknown colorDistanceFormula ${t}`)}}function re(t,e="floyd-steinberg"){switch(e){case"nearest":return new Nt(t);case"riemersma":return new Ht(t);case"floyd-steinberg":return new Dt(t,0);case"false-floyd-steinberg":return new Dt(t,1);case"stucki":return new Dt(t,2);case"atkinson":return new Dt(t,3);case"jarvis":return new Dt(t,4);case"burkes":return new Dt(t,5);case"sierra":return new Dt(t,6);case"two-sierra":return new Dt(t,7);case"sierra-lite":return new Dt(t,8);default:throw new Error(`Unknown imageQuantization ${e}`)}}function ne(t,e="wuquant",r=256){switch(e){case"neuquant":return new yt(t,r);case"rgbquant":return new Ct(t,r);case"wuquant":return new Lt(t,r);case"neuquant-float":return new kt(t,r);default:throw new Error(`Unknown paletteQuantization ${e}`)}}t.exports=l(h)},55024:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=/^\s+/,r=/\s+$/;function n(i,a){if(a=a||{},(i=i||"")instanceof n)return i;if(!(this instanceof n))return new n(i,a);var o=function(n){var i={r:0,g:0,b:0},a=1,o=null,s=null,u=null,l=!1,c=!1;return"string"==typeof n&&(n=function(t){t=t.replace(e,"").replace(r,"").toLowerCase();var n,i=!1;if(w[t])t=w[t],i=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(n=R.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=R.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=R.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=R.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=R.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=R.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=R.hex8.exec(t))?{r:E(n[1]),g:E(n[2]),b:E(n[3]),a:M(n[4]),format:i?"name":"hex8"}:(n=R.hex6.exec(t))?{r:E(n[1]),g:E(n[2]),b:E(n[3]),format:i?"name":"hex"}:(n=R.hex4.exec(t))?{r:E(n[1]+""+n[1]),g:E(n[2]+""+n[2]),b:E(n[3]+""+n[3]),a:M(n[4]+""+n[4]),format:i?"name":"hex8"}:!!(n=R.hex3.exec(t))&&{r:E(n[1]+""+n[1]),g:E(n[2]+""+n[2]),b:E(n[3]+""+n[3]),format:i?"name":"hex"}}(n)),"object"==t(n)&&(L(n.r)&&L(n.g)&&L(n.b)?(h=n.r,f=n.g,d=n.b,i={r:255*B(h,255),g:255*B(f,255),b:255*B(d,255)},l=!0,c="%"===String(n.r).substr(-1)?"prgb":"rgb"):L(n.h)&&L(n.s)&&L(n.v)?(o=A(n.s),s=A(n.v),i=function(t,e,r){t=6*B(t,360),e=B(e,100),r=B(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6;return{r:255*[r,o,a,a,s,r][u],g:255*[s,r,r,o,a,a][u],b:255*[a,a,s,r,r,o][u]}}(n.h,o,s),l=!0,c="hsv"):L(n.h)&&L(n.s)&&L(n.l)&&(o=A(n.s),u=A(n.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(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=B(t,360),e=B(e,100),r=B(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),i=o(u,s,t),a=o(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(n.h,o,u),l=!0,c="hsl"),n.hasOwnProperty("a")&&(a=n.a)),a=k(a),{ok:l,format:n.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a};var h,f,d}(i);this._originalInput=i,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=a.format||o.format,this._gradientType=a.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function i(t,e,r){t=B(t,255),e=B(e,255),r=B(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function a(t,e,r){t=B(t,255),e=B(e,255),r=B(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=a,u=a-o;if(i=0===a?0:u/a,a==o)n=0;else{switch(a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function o(t,e,r,n){var i=[C(Math.round(t).toString(16)),C(Math.round(e).toString(16)),C(Math.round(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[C(I(n)),C(Math.round(t).toString(16)),C(Math.round(e).toString(16)),C(Math.round(r).toString(16))].join("")}function u(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=x(r.s),n(r)}function l(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=x(r.s),n(r)}function c(t){return n(t).desaturate(100)}function h(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=x(r.l),n(r)}function f(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),n(r)}function d(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=x(r.l),n(r)}function p(t,e){var r=n(t).toHsl(),i=(r.h+e)%360;return r.h=i<0?360+i:i,n(r)}function m(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function g(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=n(t).toHsl(),i=[n(t)],a=360/e,o=1;o<e;o++)i.push(n({h:(r.h+o*a)%360,s:r.s,l:r.l}));return i}function b(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function v(t,e,r){e=e||6,r=r||30;var i=n(t).toHsl(),a=360/r,o=[n(t)];for(i.h=(i.h-(a*e>>1)+720)%360;--e;)i.h=(i.h+a)%360,o.push(n(i));return o}function y(t,e){e=e||6;for(var r=n(t).toHsv(),i=r.h,a=r.s,o=r.v,s=[],u=1/e;e--;)s.push(n({h:i,s:a,v:o})),o=(o+u)%1;return s}n.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:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=k(t),this._roundA=Math.round(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=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(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=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return o(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=[C(Math.round(t).toString(16)),C(Math.round(e).toString(16)),C(Math.round(r).toString(16)),C(I(n))];return 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)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*B(this._r,255))+"%",g:Math.round(100*B(this._g,255))+"%",b:Math.round(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*B(this._r,255))+"%, "+Math.round(100*B(this._g,255))+"%, "+Math.round(100*B(this._b,255))+"%)":"rgba("+Math.round(100*B(this._r,255))+"%, "+Math.round(100*B(this._g,255))+"%, "+Math.round(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(_[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+s(this._r,this._g,this._b,this._a),r=e,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=n(t);r="#"+s(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;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 n(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(h,arguments)},brighten:function(){return this._applyModification(f,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(b,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},n.fromRatio=function(e,r){if("object"==t(e)){var i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]="a"===a?e[a]:A(e[a]));e=i}return n(e,r)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,e,r){r=0===r?0:r||50;var i=n(t).toRgb(),a=n(e).toRgb(),o=r/100;return n({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},n.readability=function(t,e){var r=n(t),i=n(e);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(t,e,r){var i,a,o,s,u,l=n.readability(t,e);switch(a=!1,(o=r,"AA"!==(s=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(u=(o.size||"small").toLowerCase())&&"large"!==u&&(u="small"),i={level:s,size:u}).level+i.size){case"AAsmall":case"AAAlarge":a=l>=4.5;break;case"AAlarge":a=l>=3;break;case"AAAsmall":a=l>=7}return a},n.mostReadable=function(t,e,r){var i,a,o,s,u=null,l=0;a=(r=r||{}).includeFallbackColors,o=r.level,s=r.size;for(var c=0;c<e.length;c++)(i=n.readability(t,e[c]))>l&&(l=i,u=n(e[c]));return n.isReadable(t,u,{level:o,size:s})||!a?u:(r.includeFallbackColors=!1,n.mostReadable(t,["#fff","#000"],r))};var w=n.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"},_=n.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(w);function k(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function B(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=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function x(t){return Math.min(1,Math.max(0,t))}function E(t){return parseInt(t,16)}function C(t){return 1==t.length?"0"+t:""+t}function A(t){return t<=1&&(t=100*t+"%"),t}function I(t){return Math.round(255*parseFloat(t)).toString(16)}function M(t){return E(t)/255}var P,S,T,R=(S="[\\s|\\(]+("+(P="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",T="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",{CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+T),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 L(t){return!!R.CSS_UNIT.exec(t)}return n}()}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.p="";var __webpack_exports__={};(()=>{"use strict";function t(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(i,a){var o=e.apply(r,n);function s(e){t(o,i,a,s,u,"next",e)}function u(e){t(o,i,a,s,u,"throw",e)}s(void 0)}))}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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},n(t)}function i(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:String(e)}function a(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,i(n.key),n)}}function o(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function h(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}var f=__webpack_require__(33248),d=__webpack_require__.n(f);function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}function g(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var b=__webpack_require__(56220),v=__webpack_require__.n(b),y=__webpack_require__(43688),w=__webpack_require__.n(y);function _(t,e,r){return e=l(e),u(t,k()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}const B=function(t){function e(){var t;r(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(t=_(this,e,[].concat(i))).type="OperationError",Error.captureStackTrace&&Error.captureStackTrace(s(t),e),t}return h(e,t),o(e)}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Error));function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!t)return"";if("string"==typeof t&&(t=O.strToArrayBuffer(t)),t instanceof ArrayBuffer&&(t=new Uint8Array(t)),64!==(e=O.expandAlphRange(e).join("")).length&&65!==e.length)throw new B(`Invalid Base64 alphabet length (${e.length}): ${e}`);for(var r,n,i,a,o,s,u,l="",c=0;c<t.length;)a=(r=t[c++])>>2,o=(3&r)<<4|(n=t[c++])>>4,s=(15&n)<<2|(i=t[c++])>>6,u=63&i,isNaN(n)?s=u=64:isNaN(i)&&(u=64),l+=e.charAt(a)+e.charAt(o)+e.charAt(s)+e.charAt(u);return l}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!t)return"string"===r?"":[];if(e=e||"A-Za-z0-9+/=",64!==(e=O.expandAlphRange(e).join("")).length&&65!==e.length)throw new B(`Error: Base64 alphabet should be 64 characters long, or 65 with a padding character. Found ${e.length}: ${e}`);if(n){var a=new RegExp("[^"+e.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");t=t.replace(a,"")}if(i){if(t.length%4==1)throw new B(`Error: Invalid Base64 input length (${t.length}). Cannot be 4n+1, even without padding chars.`);if(65===e.length){var o=e.charAt(64),s=t.indexOf(o);if(s>=0){if(s<t.length-2||t.charAt(t.length-1)!==o)throw new B(`Error: Base64 padding character (${o}) not used in the correct place.`);if(t.length%4!=0)throw new B("Error: Base64 not padded to a multiple of 4.")}}}for(var u,l,c,h,f,d,p,m=[],g=0;g<t.length;){if(h=e.indexOf(t.charAt(g++)||null),f=e.indexOf(t.charAt(g++)||null),d=e.indexOf(t.charAt(g++)||null),p=e.indexOf(t.charAt(g++)||null),i&&(h<0||f<0||d<0||p<0))throw new B("Error: Base64 input contains non-alphabet char(s)");l=(15&f)<<4|d>>2,c=(3&d)<<6|p,(u=h<<2|f>>4)>=0&&u<256&&m.push(u),l>=0&&l<256&&64!==d&&m.push(l),c>=0&&c<256&&64!==p&&m.push(c)}return"string"===r?O.byteArrayToUtf8(m):m}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(r<1||Math.round(r)!==r)throw new B("Byte length must be a positive integer");if("None"!==e){var n="Auto"===e?/[^a-f\d]|0x/gi:O.regexRep(e);t=t.split(n)}else t=[t];for(var i=[],a=0;a<t.length;a++)for(var o=0;o<t[a].length;o+=r)i.push(parseInt(t[a].substr(o,r),16));return i}function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto";e=O.charRep(e);var r=[],n=t.split(e);""===n[n.length-1]&&(n=n.slice(0,n.length-1));for(var i=0;i<n.length;i++)r[i]=parseInt(n[i],10);return r}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Space",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;if(r<1||Math.round(r)!==r)throw new B("Byte length must be a positive integer");var n=O.regexRep(e);t=t.replace(n,"");for(var i=[],a=0;a<t.length;a+=r)i.push(parseInt(t.substr(a,r),2));return i}["Auto"].concat(["Space","Percent","Comma","Semi-colon","Colon","Line feed","CRLF","0x","0x with comma","\\x","None"]);var M=__webpack_require__(33296).Buffer,P=__webpack_require__(26512),S=function(){function t(){r(this,t)}var n;return o(t,null,[{key:"chr",value:function(t){if(t>65535){t-=65536;var e=String.fromCharCode(t>>>10&1023|55296);return t=56320|1023&t,e+String.fromCharCode(t)}return String.fromCharCode(t)}},{key:"ord",value:function(t){if(2===t.length){var e=t.charCodeAt(0),r=t.charCodeAt(1);if(e>=55296&&e<56320&&r>=56320&&r<57344)return 1024*(e-55296)+r-56320+65536}return t.charCodeAt(0)}},{key:"padBytesRight",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=new Array(e);return n.fill(r),g(t).forEach((function(t,e){n[e]=t})),n}},{key:"truncate",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t.length>e&&(t=t.slice(0,e-r.length)+r),t}},{key:"hex",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(e="string"==typeof e?t.ord(e):e).toString(16).padStart(r,"0")}},{key:"bin",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(e="string"==typeof e?t.ord(e):e).toString(2).padStart(r,"0")}},{key:"printable",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?t.replace(/[^\x20-\x7f]/g,"."):(t=t.replace(/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,"."),e||(t=t.replace(/[\x09-\x10\u2028\u2029]/g,".")),t)}},{key:"escapeWhitespace",value:function(t){return t.replace(/[\x09-\x10]/g,(function(t){return String.fromCharCode(57344+t.charCodeAt(0))}))}},{key:"parseEscapedChars",value:function(t){return t.replace(/\\([abfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,(function(t,e){switch(e[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(e,8));case"a":return String.fromCharCode(7);case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(e.substr(1),16));case"u":return"{"===e[1]?String.fromCodePoint(parseInt(e.slice(2,-1),16)):String.fromCharCode(parseInt(e.substr(1),16))}}))}},{key:"escapeRegex",value:function(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(e){for(var r=[],n=0;n<e.length;n++)if(n<e.length-2&&"-"===e[n+1]&&"\\"!==e[n]){for(var i=t.ord(e[n]),a=t.ord(e[n+2]),o=i;o<=a;o++)r.push(t.chr(o));n+=2}else n<e.length-2&&"\\"===e[n]&&"-"===e[n+1]?(r.push("-"),n++):r.push(e[n]);return r}},{key:"convertToByteArray",value:function(e,r){switch(r.toLowerCase()){case"binary":return I(e);case"hex":return C(e);case"decimal":return A(e);case"base64":return E(e,null,"byteArray");case"utf8":return t.strToUtf8ByteArray(e);default:return t.strToByteArray(e)}}},{key:"convertToByteString",value:function(e,r){switch(r.toLowerCase()){case"binary":return t.byteArrayToChars(I(e));case"hex":return t.byteArrayToChars(C(e));case"decimal":return t.byteArrayToChars(A(e));case"base64":return t.byteArrayToChars(E(e,null,"byteArray"));case"utf8":return w().encode(e);default:return e}}},{key:"byteArrayToInt",value:function(t,e){var r=0;if("big"===e)for(var n=0;n<t.length;n++)r=256*r+t[n];else for(var i=t.length-1;i>=0;i--)r=256*r+t[i];return r}},{key:"intToByteArray",value:function(t,e,r){var n=new Array(e);if("little"===r)for(var i=0;i<e;i++)n[i]=255&t,t>>>=8;else for(var a=e-1;a>=0;a--)n[a]=255&t,t>>>=8;return n}},{key:"strToArrayBuffer",value:function(e){if(v().debug(`Converting string[${null==e?void 0:e.length}] to array buffer`),!e)return new ArrayBuffer;for(var r,n=new Uint8Array(e.length),i=e.length;i--;)if(r=e.charCodeAt(i),n[i]=r,r>255)return t.strToUtf8ArrayBuffer(e);return n.buffer}},{key:"strToUtf8ArrayBuffer",value:function(t){if(v().debug(`Converting string[${null==t?void 0:t.length}] to UTF8 array buffer`),!t)return new ArrayBuffer;var e=new TextEncoder("utf-8").encode(t);return t.length!==e.length&&(L()&&self&&"function"==typeof self.setOption?self.setOption("attemptHighlight",!1):R()&&(window.app.options.attemptHighlight=!1)),e.buffer}},{key:"strToByteArray",value:function(e){if(v().debug(`Converting string[${null==e?void 0:e.length}] to byte array`),!e)return[];for(var r,n=new Array(e.length),i=e.length;i--;)if(r=e.charCodeAt(i),n[i]=r,r>255)return t.strToUtf8ByteArray(e);return n}},{key:"strToUtf8ByteArray",value:function(e){if(v().debug(`Converting string[${null==e?void 0:e.length}] to UTF8 byte array`),!e)return[];var r=w().encode(e);return e.length!==r.length&&(L()?self.setOption("attemptHighlight",!1):R()&&(window.app.options.attemptHighlight=!1)),t.strToByteArray(r)}},{key:"strToCharcode",value:function(e){if(v().debug(`Converting string[${null==e?void 0:e.length}] to charcode`),!e)return[];for(var r=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(n<e.length-1&&i>=55296&&i<56320){var a=e[n+1].charCodeAt(0);a>=56320&&a<57344&&(i=t.ord(e[n]+e[++n]))}r.push(i)}return r}},{key:"byteArrayToUtf8",value:function(e){var r;if(v().debug(`Converting byte array[${null===(r=e)||void 0===r?void 0:r.length}] to UTF8`),!e||!e.length)return"";e instanceof Uint8Array||(e=new Uint8Array(e));try{var n=new TextDecoder("utf-8",{fatal:!0}).decode(e);return n.length!==e.length&&(L()?self.setOption("attemptHighlight",!1):R()&&(window.app.options.attemptHighlight=!1)),n}catch(r){return t.byteArrayToChars(e)}}},{key:"byteArrayToChars",value:function(t){if(v().debug(`Converting byte array[${null==t?void 0:t.length}] to chars`),!t||!t.length)return"";for(var e="",r=0;r<t.length;r+=2e4)e+=String.fromCharCode.apply(String,g(t.slice(r,r+2e4)));return e}},{key:"arrayBufferToStr",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(v().debug(`Converting array buffer[${null==e?void 0:e.byteLength}] to str`),!e||!e.byteLength)return"";var n=new Uint8Array(e);return r?t.byteArrayToUtf8(n):t.byteArrayToChars(n)}},{key:"calculateShannonEntropy",value:function(t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e,r=[],n=new Array(256).fill(0);for(e=0;e<t.length;e++)n[t[e]]++;for(e=0;e<n.length;e++)n[e]>0&&r.push(n[e]/t.length);var i,a=0;for(e=0;e<r.length;e++)a+=(i=r[e])*Math.log(i)/Math.log(2);return-a}},{key:"parseCSV",value:function(t){var e,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[","],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],a=!1,o=!1,s="",u=[],l=[];t.length&&"\ufeff"===t[0]&&(t=t.substr(1));for(var c=0;c<t.length;c++)e=t[c],r=t[c+1]||"",a?(s+=e,a=!1):'"'!==e||o?'"'===e&&o?'"'===r?a=!0:o=!1:!o&&n.indexOf(e)>=0?(u.push(s),s=""):!o&&i.indexOf(e)>=0?(u.push(s),s="",l.push(u),u=[],i.indexOf(r)>=0&&r!==e&&c++):s+=e:o=!0;return u.length&&(u.push(s),l.push(u)),l}},{key:"stripHtmlTags",value:function(t){function e(t,r){var n=r.replace(t,"");return n.length===r.length?n:e(t,n)}return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(t=e(/<script[^>]*>(\s|\S)*?<\/script[^>]*>/gi,t),t=e(/<style[^>]*>(\s|\S)*?<\/style[^>]*>/gi,t)),e(/<[^>]+>/g,t)}},{key:"escapeHtml",value:function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","\0":""};return t?t.replace(/[&<>"'`\u0000]/g,(function(t){return e[t]})):t}},{key:"unescapeHtml",value:function(t){var e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/","&#x60;":"`","":"\0"};return t.replace(/(&#?x?[a-z0-9]{2,4};|\ue000)/gi,(function(t){return e[t]||t}))}},{key:"toTitleCase",value:function(t){return t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},{key:"encodeURIFragment",value:function(t){var e={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(t=encodeURIComponent(t)).replace(/%[0-9A-F]{2}/g,(function(t){return e[t]||t}))}},{key:"generatePrettyRecipe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",n="",i="",a="",o="";return t.forEach((function(t){n=t.op.replace(/ /g,"_"),i=JSON.stringify(t.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),a=t.disabled?"/disabled":"",o=t.breakpoint?"/breakpoint":"",r+=`${n}(${i}${a}${o})`,e&&(r+="\n")})),r}},{key:"parseRecipeConfig",value:function(t){if(0===(t=t.trim()).length)return[];if("["===t[0])return JSON.parse(t);var e,r;t=t.replace(/\n/g,"");for(var n=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,i=[];e=n.exec(t);){r="["+(r=e[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var a={op:e[1].replace(/_/g," "),args:JSON.parse(r)};e[3]&&e[3].indexOf("disabled")>0&&(a.disabled=!0),e[3]&&e[3].indexOf("breakpoint")>0&&(a.breakpoint=!0),i.push(a)}return i}},{key:"displayFilesAsHTML",value:(n=e(d().mark((function r(n){var i,a,o,s,u;return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i=function(e){return`<div class='card' style='white-space: normal;'>\n <div class='card-header'>\n <h6 class="mb-0">\n ${t.escapeHtml(e.name)}\n </h6>\n </div>\n </div>`},a=function(e,r){if(r.startsWith("image")){var n="data:";return n+=r+";","<img style='max-width: 100%;' src='"+(n+="base64,"+x(e))+"'>"}return`<pre>${t.escapeHtml(t.arrayBufferToStr(e.buffer))}</pre>`},o=function(){var r=e(d().mark((function e(r,n){var i,o,s,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.readFile(r);case 2:return i=e.sent,o=new Blob([i],{type:r.type||"octet/stream"}),s=URL.createObjectURL(o),u=`<div class='card' style='white-space: normal;'>\n <div class='card-header' id='heading${n}'>\n <h6 class='mb-0'>\n <a class='collapsed'\n data-toggle='collapse'\n href='#collapse${n}'\n aria-expanded='false'\n aria-controls='collapse${n}'\n title="Show/hide contents of '${t.escapeHtml(r.name)}'">\n ${t.escapeHtml(r.name)}</a>\n <span class='float-right' style="margin-top: -3px">\n ${r.size.toLocaleString()} bytes\n <a title="Download ${t.escapeHtml(r.name)}"\n href="${s}"\n download="${t.escapeHtml(r.name)}"\n data-toggle="tooltip">\n <i class="material-icons" style="vertical-align: bottom">save</i>\n </a>\n <a title="Move to input"\n href="#"\n blob-url="${s}"\n file-name="${t.escapeHtml(r.name)}"\n class="extract-file"\n data-toggle="tooltip">\n <i class="material-icons" style="vertical-align: bottom">open_in_browser</i>\n </a>\n </span>\n </h6>\n </div>\n <div id='collapse${n}' class='collapse' aria-labelledby='heading${n}' data-parent="#files">\n <div class='card-body'>\n ${a(i,r.type)}\n </div>\n </div>\n </div>`,e.abrupt("return",u);case 7:case"end":return e.stop()}}),e)})));return function(t,e){return r.apply(this,arguments)}}(),s=`<div style='padding: 5px; white-space: normal;'>\n ${n.length} file(s) found\n </div><div id="files" style="padding: 20px">`,u=0;case 5:if(!(u<n.length)){r.next=17;break}if(!n[u].name.endsWith("/")){r.next=10;break}s+=i(n[u]),r.next=14;break;case 10:return r.t0=s,r.next=13,o(n[u],u);case 13:s=r.t0+=r.sent;case 14:u++,r.next=5;break;case 17:return r.abrupt("return",s+="</div>");case 18:case"end":return r.stop()}}),r)}))),function(t){return n.apply(this,arguments)})},{key:"parseURIParams",value:function(t){if(""===t)return{};"?"!==t[0]&&"#"!==t[0]||(t=t.substr(1));for(var e=t.split("&"),r={},n=0;n<e.length;n++){var i=e[n].split("=");2!==i.length?r[e[n]]=!0:r[i[0]]=decodeURIComponent(i[1].replace(/\+/g," "))}return r}},{key:"readFile",value:function(t){return T()?M.from(t).buffer:new Promise((function(e,r){var n=new FileReader,i=new Uint8Array(t.size),a=0,o=10485760,s=function(){if(a>=t.size)e(i);else{var r=t.slice(a,a+o);n.readAsArrayBuffer(r)}};n.onload=function(t){i.set(new Uint8Array(n.result),a),a+=o,s()},n.onerror=function(t){r(n.error.message)},s()}))}},{key:"readFileSync",value:function(t){if(!T())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(t.data).buffer}},{key:"mod",value:function(t,e){return(t%e+e)%e}},{key:"gcd",value:function(e,r){return r?t.gcd(r,e%r):e}},{key:"modInv",value:function(t,e){t%=e;for(var r=1;r<e;r++)if(t*r%26==1)return r}},{key:"charRep",value:function(t){return{Space:" ",Percent:"%",Comma:",","Semi-colon":";",Colon:":",Tab:"\t","Line feed":"\n",CRLF:"\r\n","Forward slash":"/",Backslash:"\\","0x":"0x","\\x":"\\x","Nothing (separate chars)":"",None:""}[t]}},{key:"regexRep",value:function(t){return{Space:/\s+/g,Percent:/%/g,Comma:/,/g,"Semi-colon":/;/g,Colon:/:/g,"Line feed":/\n/g,CRLF:/\r\n/g,"Forward slash":/\//g,Backslash:/\\/g,"0x with comma":/,?0x/g,"0x":/0x/g,"\\x":/\\x/g,None:/\s+/g}[t]}},{key:"chunked",value:d().mark((function t(e,r){var n,i,a,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e[Symbol.iterator]();case 1:i=[],a=0;case 4:if(!(a<r)){t.next=12;break}if(!(o=n.next()).done){t.next=8;break}return t.abrupt("break",12);case 8:i.push(o.value);case 9:a++,t.next=4;break;case 12:if(!i.length){t.next=17;break}return t.next=15,i;case 15:t.next=18;break;case 17:return t.abrupt("return");case 18:t.next=1;break;case 20:case"end":return t.stop()}}),t)}))}]),t}();function T(){return void 0!==P&&null!=P.versions&&null!=P.versions.node}function R(){return"object"==typeof window}function L(){return"function"==typeof importScripts}const O=S;function F(t,e,r){return e=l(e),u(t,N()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function N(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(N=function(){return!!t})()}Array.prototype.unique=function(){for(var t={},e=[],r=0,n=this.length;r<n;r++)Object.prototype.hasOwnProperty.call(t,this[r])||(e.push(this[r]),t[this[r]]=1);return e},Array.prototype.max=function(){return Math.max.apply(null,this)},Array.prototype.min=function(){return Math.min.apply(null,this)},Array.prototype.sum=function(){return this.reduce((function(t,e){return t+e}),0)},Array.prototype.equals=function(t){if(!t)return!1;var e=this.length;if(e!==t.length)return!1;for(;e--;)if(this[e]!==t[e])return!1;return!0},String.prototype.count=function(t){return this.split(t).length-1},String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(void 0!==e?e:" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))});const U=function(t){function e(){var t;r(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(t=F(this,e,[].concat(i))).type="DishError",Error.captureStackTrace&&Error.captureStackTrace(s(t),e),t}return h(e,t),o(e)}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Error));var D=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,z=Math.ceil,G=Math.floor,j="[BigNumber Error] ",H=j+"Number primitive has more than 15 significant digits: ",W=1e14,q=14,Z=9007199254740991,$=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],V=1e7,Y=1e9;function X(t){var e=0|t;return t>0||t===e?e:e-1}function J(t){for(var e,r,n=1,i=t.length,a=t[0]+"";n<i;){for(e=t[n++]+"",r=q-e.length;r--;e="0"+e);a+=e}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function Q(t,e){var r,n,i=t.c,a=e.c,o=t.s,s=e.s,u=t.e,l=e.e;if(!o||!s)return null;if(r=i&&!i[0],n=a&&!a[0],r||n)return r?n?0:-s:o;if(o!=s)return o;if(r=o<0,n=u==l,!i||!a)return n?0:!i^r?1:-1;if(!n)return u>l^r?1:-1;for(s=(u=i.length)<(l=a.length)?u:l,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return u==l?0:u>l^r?1:-1}function K(t,e,r,n){if(t<e||t>r||t!==G(t))throw Error(j+(n||"Argument")+("number"==typeof t?t<e||t>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function tt(t){var e=t.c.length-1;return X(t.e/q)==e&&t.c[e]%2!=0}function et(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function rt(t,e,r){var n,i;if(e<0){for(i=r+".";++e;i+=r);t=i+t}else if(++e>(n=t.length)){for(i=r,e-=n;--e;i+=r);t+=i}else e<n&&(t=t.slice(0,e)+"."+t.slice(e));return t}var nt=function t(e){var r,n,i,a,o,s,u,l,c,h,f=C.prototype={constructor:C,toString:null,valueOf:null},d=new C(1),p=20,m=4,g=-7,b=21,v=-1e7,y=1e7,w=!1,_=1,k=0,B={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},x="0123456789abcdefghijklmnopqrstuvwxyz",E=!0;function C(t,e){var r,a,o,s,u,l,c,h,f=this;if(!(f instanceof C))return new C(t,e);if(null==e){if(t&&!0===t._isBigNumber)return f.s=t.s,void(!t.c||t.e>y?f.c=f.e=null:t.e<v?f.c=[f.e=0]:(f.e=t.e,f.c=t.c.slice()));if((l="number"==typeof t)&&0*t==0){if(f.s=1/t<0?(t=-t,-1):1,t===~~t){for(s=0,u=t;u>=10;u/=10,s++);return void(s>y?f.c=f.e=null:(f.e=s,f.c=[t]))}h=String(t)}else{if(!D.test(h=String(t)))return i(f,h,l);f.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(s=h.indexOf("."))>-1&&(h=h.replace(".","")),(u=h.search(/e/i))>0?(s<0&&(s=u),s+=+h.slice(u+1),h=h.substring(0,u)):s<0&&(s=h.length)}else{if(K(e,2,x.length,"Base"),10==e&&E)return P(f=new C(t),p+f.e+1,m);if(h=String(t),l="number"==typeof t){if(0*t!=0)return i(f,h,l,e);if(f.s=1/t<0?(h=h.slice(1),-1):1,C.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(H+t)}else f.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(r=x.slice(0,e),s=u=0,c=h.length;u<c;u++)if(r.indexOf(a=h.charAt(u))<0){if("."==a){if(u>s){s=c;continue}}else if(!o&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){o=!0,u=-1,s=0;continue}return i(f,String(t),l,e)}l=!1,(s=(h=n(h,e,10,f.s)).indexOf("."))>-1?h=h.replace(".",""):s=h.length}for(u=0;48===h.charCodeAt(u);u++);for(c=h.length;48===h.charCodeAt(--c););if(h=h.slice(u,++c)){if(c-=u,l&&C.DEBUG&&c>15&&(t>Z||t!==G(t)))throw Error(H+f.s*t);if((s=s-u-1)>y)f.c=f.e=null;else if(s<v)f.c=[f.e=0];else{if(f.e=s,f.c=[],u=(s+1)%q,s<0&&(u+=q),u<c){for(u&&f.c.push(+h.slice(0,u)),c-=q;u<c;)f.c.push(+h.slice(u,u+=q));u=q-(h=h.slice(u)).length}else u-=c;for(;u--;h+="0");f.c.push(+h)}}else f.c=[f.e=0]}function A(t,e,r,n){var i,a,o,s,u;if(null==r?r=m:K(r,0,8),!t.c)return t.toString();if(i=t.c[0],o=t.e,null==e)u=J(t.c),u=1==n||2==n&&(o<=g||o>=b)?et(u,o):rt(u,o,"0");else if(a=(t=P(new C(t),e,r)).e,s=(u=J(t.c)).length,1==n||2==n&&(e<=a||a<=g)){for(;s<e;u+="0",s++);u=et(u,a)}else if(e-=o,u=rt(u,a,"0"),a+1>s){if(--e>0)for(u+=".";e--;u+="0");}else if((e+=a-s)>0)for(a+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function I(t,e){for(var r,n,i=1,a=new C(t[0]);i<t.length;i++)(!(n=new C(t[i])).s||(r=Q(a,n))===e||0===r&&a.s===e)&&(a=n);return a}function M(t,e,r){for(var n=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,n++);return(r=n+r*q-1)>y?t.c=t.e=null:r<v?t.c=[t.e=0]:(t.e=r,t.c=e),t}function P(t,e,r,n){var i,a,o,s,u,l,c,h=t.c,f=$;if(h){t:{for(i=1,s=h[0];s>=10;s/=10,i++);if((a=e-i)<0)a+=q,o=e,u=h[l=0],c=G(u/f[i-o-1]%10);else if((l=z((a+1)/q))>=h.length){if(!n)break t;for(;h.length<=l;h.push(0));u=c=0,i=1,o=(a%=q)-q+1}else{for(u=s=h[l],i=1;s>=10;s/=10,i++);c=(o=(a%=q)-q+i)<0?0:G(u/f[i-o-1]%10)}if(n=n||e<0||null!=h[l+1]||(o<0?u:u%f[i-o-1]),n=r<4?(c||n)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||n||6==r&&(a>0?o>0?u/f[i-o]:0:h[l-1])%10&1||r==(t.s<0?8:7)),e<1||!h[0])return h.length=0,n?(e-=t.e+1,h[0]=f[(q-e%q)%q],t.e=-e||0):h[0]=t.e=0,t;if(0==a?(h.length=l,s=1,l--):(h.length=l+1,s=f[q-a],h[l]=o>0?G(u/f[i-o]%f[o])*s:0),n)for(;;){if(0==l){for(a=1,o=h[0];o>=10;o/=10,a++);for(o=h[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(t.e++,h[0]==W&&(h[0]=1));break}if(h[l]+=s,h[l]!=W)break;h[l--]=0,s=1}for(a=h.length;0===h[--a];h.pop());}t.e>y?t.c=t.e=null:t.e<v&&(t.c=[t.e=0])}return t}function S(t){var e,r=t.e;return null===r?t.toString():(e=J(t.c),e=r<=g||r>=b?et(e,r):rt(e,r,"0"),t.s<0?"-"+e:e)}return C.clone=t,C.ROUND_UP=0,C.ROUND_DOWN=1,C.ROUND_CEIL=2,C.ROUND_FLOOR=3,C.ROUND_HALF_UP=4,C.ROUND_HALF_DOWN=5,C.ROUND_HALF_EVEN=6,C.ROUND_HALF_CEIL=7,C.ROUND_HALF_FLOOR=8,C.EUCLID=9,C.config=C.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(j+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(K(r=t[e],0,Y,e),p=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(K(r=t[e],0,8,e),m=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(K(r[0],-Y,0,e),K(r[1],0,Y,e),g=r[0],b=r[1]):(K(r,-Y,Y,e),g=-(b=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)K(r[0],-Y,-1,e),K(r[1],1,Y,e),v=r[0],y=r[1];else{if(K(r,-Y,Y,e),!r)throw Error(j+e+" cannot be zero: "+r);v=-(y=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(j+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw w=!r,Error(j+"crypto unavailable");w=r}else w=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(K(r=t[e],0,9,e),_=r),t.hasOwnProperty(e="POW_PRECISION")&&(K(r=t[e],0,Y,e),k=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(j+e+" not an object: "+r);B=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(j+e+" invalid: "+r);E="0123456789"==r.slice(0,10),x=r}}return{DECIMAL_PLACES:p,ROUNDING_MODE:m,EXPONENTIAL_AT:[g,b],RANGE:[v,y],CRYPTO:w,MODULO_MODE:_,POW_PRECISION:k,FORMAT:B,ALPHABET:x}},C.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!C.DEBUG)return!0;var e,r,n=t.c,i=t.e,a=t.s;t:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&i>=-Y&&i<=Y&&i===G(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break t}if((e=(i+1)%q)<1&&(e+=q),String(n[0]).length==e){for(e=0;e<n.length;e++)if((r=n[e])<0||r>=W||r!==G(r))break t;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(j+"Invalid BigNumber: "+t)},C.maximum=C.max=function(){return I(arguments,-1)},C.minimum=C.min=function(){return I(arguments,1)},C.random=(a=9007199254740992,o=Math.random()*a&2097151?function(){return G(Math.random()*a)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,r,n,i,a,s=0,u=[],l=new C(d);if(null==t?t=p:K(t,0,Y),i=z(t/q),w)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(a=131072*e[s]+(e[s+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),e[s]=r[0],e[s+1]=r[1]):(u.push(a%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw w=!1,Error(j+"crypto unavailable");for(e=crypto.randomBytes(i*=7);s<i;)(a=281474976710656*(31&e[s])+1099511627776*e[s+1]+4294967296*e[s+2]+16777216*e[s+3]+(e[s+4]<<16)+(e[s+5]<<8)+e[s+6])>=9e15?crypto.randomBytes(7).copy(e,s):(u.push(a%1e14),s+=7);s=i/7}if(!w)for(;s<i;)(a=o())<9e15&&(u[s++]=a%1e14);for(i=u[--s],t%=q,i&&t&&(a=$[q-t],u[s]=G(i/a)*a);0===u[s];u.pop(),s--);if(s<0)u=[n=0];else{for(n=-1;0===u[0];u.splice(0,1),n-=q);for(s=1,a=u[0];a>=10;a/=10,s++);s<q&&(n-=q-s)}return l.e=n,l.c=u,l}),C.sum=function(){for(var t=1,e=arguments,r=new C(e[0]);t<e.length;)r=r.plus(e[t++]);return r},n=function(){var t="0123456789";function e(t,e,r,n){for(var i,a,o=[0],s=0,u=t.length;s<u;){for(a=o.length;a--;o[a]*=e);for(o[0]+=n.indexOf(t.charAt(s++)),i=0;i<o.length;i++)o[i]>r-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(n,i,a,o,s){var u,l,c,h,f,d,g,b,v=n.indexOf("."),y=p,w=m;for(v>=0&&(h=k,k=0,n=n.replace(".",""),d=(b=new C(i)).pow(n.length-v),k=h,b.c=e(rt(J(d.c),d.e,"0"),10,a,t),b.e=b.c.length),c=h=(g=e(n,i,a,s?(u=x,t):(u=t,x))).length;0==g[--h];g.pop());if(!g[0])return u.charAt(0);if(v<0?--c:(d.c=g,d.e=c,d.s=o,g=(d=r(d,b,y,w,a)).c,f=d.r,c=d.e),v=g[l=c+y+1],h=a/2,f=f||l<0||null!=g[l+1],f=w<4?(null!=v||f)&&(0==w||w==(d.s<0?3:2)):v>h||v==h&&(4==w||f||6==w&&1&g[l-1]||w==(d.s<0?8:7)),l<1||!g[0])n=f?rt(u.charAt(1),-y,u.charAt(0)):u.charAt(0);else{if(g.length=l,f)for(--a;++g[--l]>a;)g[l]=0,l||(++c,g=[1].concat(g));for(h=g.length;!g[--h];);for(v=0,n="";v<=h;n+=u.charAt(g[v++]));n=rt(n,c,u.charAt(0))}return n}}(),r=function(){function t(t,e,r){var n,i,a,o,s=0,u=t.length,l=e%V,c=e/V|0;for(t=t.slice();u--;)s=((i=l*(a=t[u]%V)+(n=c*a+(o=t[u]/V|0)*l)%V*V+s)/r|0)+(n/V|0)+c*o,t[u]=i%r;return s&&(t=[s].concat(t)),t}function e(t,e,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(t[i]!=e[i]){a=t[i]>e[i]?1:-1;break}return a}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(n,i,a,o,s){var u,l,c,h,f,d,p,m,g,b,v,y,w,_,k,B,x,E=n.s==i.s?1:-1,A=n.c,I=i.c;if(!(A&&A[0]&&I&&I[0]))return new C(n.s&&i.s&&(A?!I||A[0]!=I[0]:I)?A&&0==A[0]||!I?0*E:E/0:NaN);for(g=(m=new C(E)).c=[],E=a+(l=n.e-i.e)+1,s||(s=W,l=X(n.e/q)-X(i.e/q),E=E/q|0),c=0;I[c]==(A[c]||0);c++);if(I[c]>(A[c]||0)&&l--,E<0)g.push(1),h=!0;else{for(_=A.length,B=I.length,c=0,E+=2,(f=G(s/(I[0]+1)))>1&&(I=t(I,f,s),A=t(A,f,s),B=I.length,_=A.length),w=B,v=(b=A.slice(0,B)).length;v<B;b[v++]=0);x=I.slice(),x=[0].concat(x),k=I[0],I[1]>=s/2&&k++;do{if(f=0,(u=e(I,b,B,v))<0){if(y=b[0],B!=v&&(y=y*s+(b[1]||0)),(f=G(y/k))>1)for(f>=s&&(f=s-1),p=(d=t(I,f,s)).length,v=b.length;1==e(d,b,p,v);)f--,r(d,B<p?x:I,p,s),p=d.length,u=1;else 0==f&&(u=f=1),p=(d=I.slice()).length;if(p<v&&(d=[0].concat(d)),r(b,d,v,s),v=b.length,-1==u)for(;e(I,b,B,v)<1;)f++,r(b,B<v?x:I,v,s),v=b.length}else 0===u&&(f++,b=[0]);g[c++]=f,b[0]?b[v++]=A[w]||0:(b=[A[w]],v=1)}while((w++<_||null!=b[0])&&E--);h=null!=b[0],g[0]||g.splice(0,1)}if(s==W){for(c=1,E=g[0];E>=10;E/=10,c++);P(m,a+(m.e=c+l*q-1)+1,o,h)}else m.e=l,m.r=+h;return m}}(),s=/^(-?)0([xbo])(?=\w[\w.]*$)/i,u=/^([^.]+)\.$/,l=/^\.([^.]+)$/,c=/^-?(Infinity|NaN)$/,h=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,r,n){var i,a=r?e:e.replace(h,"");if(c.test(a))t.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.replace(s,(function(t,e,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?t:e})),n&&(i=n,a=a.replace(u,"$1").replace(l,"0.$1")),e!=a))return new C(a,i);if(C.DEBUG)throw Error(j+"Not a"+(n?" base "+n:"")+" number: "+e);t.s=null}t.c=t.e=null},f.absoluteValue=f.abs=function(){var t=new C(this);return t.s<0&&(t.s=1),t},f.comparedTo=function(t,e){return Q(this,new C(t,e))},f.decimalPlaces=f.dp=function(t,e){var r,n,i,a=this;if(null!=t)return K(t,0,Y),null==e?e=m:K(e,0,8),P(new C(a),t+a.e+1,e);if(!(r=a.c))return null;if(n=((i=r.length-1)-X(this.e/q))*q,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},f.dividedBy=f.div=function(t,e){return r(this,new C(t,e),p,m)},f.dividedToIntegerBy=f.idiv=function(t,e){return r(this,new C(t,e),0,1)},f.exponentiatedBy=f.pow=function(t,e){var r,n,i,a,o,s,u,l,c=this;if((t=new C(t)).c&&!t.isInteger())throw Error(j+"Exponent not an integer: "+S(t));if(null!=e&&(e=new C(e)),o=t.e>14,!c.c||!c.c[0]||1==c.c[0]&&!c.e&&1==c.c.length||!t.c||!t.c[0])return l=new C(Math.pow(+S(c),o?t.s*(2-tt(t)):+S(t))),e?l.mod(e):l;if(s=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new C(NaN);(n=!s&&c.isInteger()&&e.isInteger())&&(c=c.mod(e))}else{if(t.e>9&&(c.e>0||c.e<-1||(0==c.e?c.c[0]>1||o&&c.c[1]>=24e7:c.c[0]<8e13||o&&c.c[0]<=9999975e7)))return a=c.s<0&&tt(t)?-0:0,c.e>-1&&(a=1/a),new C(s?1/a:a);k&&(a=z(k/q+2))}for(o?(r=new C(.5),s&&(t.s=1),u=tt(t)):u=(i=Math.abs(+S(t)))%2,l=new C(d);;){if(u){if(!(l=l.times(c)).c)break;a?l.c.length>a&&(l.c.length=a):n&&(l=l.mod(e))}if(i){if(0===(i=G(i/2)))break;u=i%2}else if(P(t=t.times(r),t.e+1,1),t.e>14)u=tt(t);else{if(0==(i=+S(t)))break;u=i%2}c=c.times(c),a?c.c&&c.c.length>a&&(c.c.length=a):n&&(c=c.mod(e))}return n?l:(s&&(l=d.div(l)),e?l.mod(e):a?P(l,k,m,void 0):l)},f.integerValue=function(t){var e=new C(this);return null==t?t=m:K(t,0,8),P(e,e.e+1,t)},f.isEqualTo=f.eq=function(t,e){return 0===Q(this,new C(t,e))},f.isFinite=function(){return!!this.c},f.isGreaterThan=f.gt=function(t,e){return Q(this,new C(t,e))>0},f.isGreaterThanOrEqualTo=f.gte=function(t,e){return 1===(e=Q(this,new C(t,e)))||0===e},f.isInteger=function(){return!!this.c&&X(this.e/q)>this.c.length-2},f.isLessThan=f.lt=function(t,e){return Q(this,new C(t,e))<0},f.isLessThanOrEqualTo=f.lte=function(t,e){return-1===(e=Q(this,new C(t,e)))||0===e},f.isNaN=function(){return!this.s},f.isNegative=function(){return this.s<0},f.isPositive=function(){return this.s>0},f.isZero=function(){return!!this.c&&0==this.c[0]},f.minus=function(t,e){var r,n,i,a,o=this,s=o.s;if(e=(t=new C(t,e)).s,!s||!e)return new C(NaN);if(s!=e)return t.s=-e,o.plus(t);var u=o.e/q,l=t.e/q,c=o.c,h=t.c;if(!u||!l){if(!c||!h)return c?(t.s=-e,t):new C(h?o:NaN);if(!c[0]||!h[0])return h[0]?(t.s=-e,t):new C(c[0]?o:3==m?-0:0)}if(u=X(u),l=X(l),c=c.slice(),s=u-l){for((a=s<0)?(s=-s,i=c):(l=u,i=h),i.reverse(),e=s;e--;i.push(0));i.reverse()}else for(n=(a=(s=c.length)<(e=h.length))?s:e,s=e=0;e<n;e++)if(c[e]!=h[e]){a=c[e]<h[e];break}if(a&&(i=c,c=h,h=i,t.s=-t.s),(e=(n=h.length)-(r=c.length))>0)for(;e--;c[r++]=0);for(e=W-1;n>s;){if(c[--n]<h[n]){for(r=n;r&&!c[--r];c[r]=e);--c[r],c[n]+=W}c[n]-=h[n]}for(;0==c[0];c.splice(0,1),--l);return c[0]?M(t,c,l):(t.s=3==m?-1:1,t.c=[t.e=0],t)},f.modulo=f.mod=function(t,e){var n,i,a=this;return t=new C(t,e),!a.c||!t.s||t.c&&!t.c[0]?new C(NaN):!t.c||a.c&&!a.c[0]?new C(a):(9==_?(i=t.s,t.s=1,n=r(a,t,0,3),t.s=i,n.s*=i):n=r(a,t,0,_),(t=a.minus(n.times(t))).c[0]||1!=_||(t.s=a.s),t)},f.multipliedBy=f.times=function(t,e){var r,n,i,a,o,s,u,l,c,h,f,d,p,m,g,b=this,v=b.c,y=(t=new C(t,e)).c;if(!(v&&y&&v[0]&&y[0]))return!b.s||!t.s||v&&!v[0]&&!y||y&&!y[0]&&!v?t.c=t.e=t.s=null:(t.s*=b.s,v&&y?(t.c=[0],t.e=0):t.c=t.e=null),t;for(n=X(b.e/q)+X(t.e/q),t.s*=b.s,(u=v.length)<(h=y.length)&&(p=v,v=y,y=p,i=u,u=h,h=i),i=u+h,p=[];i--;p.push(0));for(m=W,g=V,i=h;--i>=0;){for(r=0,f=y[i]%g,d=y[i]/g|0,a=i+(o=u);a>i;)r=((l=f*(l=v[--o]%g)+(s=d*l+(c=v[o]/g|0)*f)%g*g+p[a]+r)/m|0)+(s/g|0)+d*c,p[a--]=l%m;p[a]=r}return r?++n:p.splice(0,1),M(t,p,n)},f.negated=function(){var t=new C(this);return t.s=-t.s||null,t},f.plus=function(t,e){var r,n=this,i=n.s;if(e=(t=new C(t,e)).s,!i||!e)return new C(NaN);if(i!=e)return t.s=-e,n.minus(t);var a=n.e/q,o=t.e/q,s=n.c,u=t.c;if(!a||!o){if(!s||!u)return new C(i/0);if(!s[0]||!u[0])return u[0]?t:new C(s[0]?n:0*i)}if(a=X(a),o=X(o),s=s.slice(),i=a-o){for(i>0?(o=a,r=u):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(e=u.length)<0&&(r=u,u=s,s=r,e=i),i=0;e;)i=(s[--e]=s[e]+u[e]+i)/W|0,s[e]=W===s[e]?0:s[e]%W;return i&&(s=[i].concat(s),++o),M(t,s,o)},f.precision=f.sd=function(t,e){var r,n,i,a=this;if(null!=t&&t!==!!t)return K(t,1,Y),null==e?e=m:K(e,0,8),P(new C(a),t,e);if(!(r=a.c))return null;if(n=(i=r.length-1)*q+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return t&&a.e+1>n&&(n=a.e+1),n},f.shiftedBy=function(t){return K(t,-9007199254740991,Z),this.times("1e"+t)},f.squareRoot=f.sqrt=function(){var t,e,n,i,a,o=this,s=o.c,u=o.s,l=o.e,c=p+4,h=new C("0.5");if(1!==u||!s||!s[0])return new C(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(u=Math.sqrt(+S(o)))||u==1/0?(((e=J(s)).length+l)%2==0&&(e+="0"),u=Math.sqrt(+e),l=X((l+1)/2)-(l<0||l%2),n=new C(e=u==1/0?"5e"+l:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+l)):n=new C(u+""),n.c[0])for((u=(l=n.e)+c)<3&&(u=0);;)if(a=n,n=h.times(a.plus(r(o,a,c,1))),J(a.c).slice(0,u)===(e=J(n.c)).slice(0,u)){if(n.e<l&&--u,"9999"!=(e=e.slice(u-3,u+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(P(n,n.e+p+2,1),t=!n.times(n).eq(o));break}if(!i&&(P(a,a.e+p+2,0),a.times(a).eq(o))){n=a;break}c+=4,u+=4,i=1}return P(n,n.e+p+1,m,t)},f.toExponential=function(t,e){return null!=t&&(K(t,0,Y),t++),A(this,t,e,1)},f.toFixed=function(t,e){return null!=t&&(K(t,0,Y),t=t+this.e+1),A(this,t,e)},f.toFormat=function(t,e,r){var n,i=this;if(null==r)null!=t&&e&&"object"==typeof e?(r=e,e=null):t&&"object"==typeof t?(r=t,t=e=null):r=B;else if("object"!=typeof r)throw Error(j+"Argument not an object: "+r);if(n=i.toFixed(t,e),i.c){var a,o=n.split("."),s=+r.groupSize,u=+r.secondaryGroupSize,l=r.groupSeparator||"",c=o[0],h=o[1],f=i.s<0,d=f?c.slice(1):c,p=d.length;if(u&&(a=s,s=u,u=a,p-=a),s>0&&p>0){for(a=p%s||s,c=d.substr(0,a);a<p;a+=s)c+=l+d.substr(a,s);u>0&&(c+=l+d.slice(a)),f&&(c="-"+c)}n=h?c+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):c}return(r.prefix||"")+n+(r.suffix||"")},f.toFraction=function(t){var e,n,i,a,o,s,u,l,c,h,f,p,g=this,b=g.c;if(null!=t&&(!(u=new C(t)).isInteger()&&(u.c||1!==u.s)||u.lt(d)))throw Error(j+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+S(u));if(!b)return new C(g);for(e=new C(d),c=n=new C(d),i=l=new C(d),p=J(b),o=e.e=p.length-g.e-1,e.c[0]=$[(s=o%q)<0?q+s:s],t=!t||u.comparedTo(e)>0?o>0?e:c:u,s=y,y=1/0,u=new C(p),l.c[0]=0;h=r(u,e,0,1),1!=(a=n.plus(h.times(i))).comparedTo(t);)n=i,i=a,c=l.plus(h.times(a=c)),l=a,e=u.minus(h.times(a=e)),u=a;return a=r(t.minus(n),i,0,1),l=l.plus(a.times(c)),n=n.plus(a.times(i)),l.s=c.s=g.s,f=r(c,i,o*=2,m).minus(g).abs().comparedTo(r(l,n,o,m).minus(g).abs())<1?[c,i]:[l,n],y=s,f},f.toNumber=function(){return+S(this)},f.toPrecision=function(t,e){return null!=t&&K(t,1,Y),A(this,t,e,2)},f.toString=function(t){var e,r=this,i=r.s,a=r.e;return null===a?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=a<=g||a>=b?et(J(r.c),a):rt(J(r.c),a,"0"):10===t&&E?e=rt(J((r=P(new C(r),p+a+1,m)).c),r.e,"0"):(K(t,2,x.length,"Base"),e=n(rt(J(r.c),a,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},f.valueOf=f.toJSON=function(){return S(this)},f._isBigNumber=!0,f[Symbol.toStringTag]="BigNumber",f[Symbol.for("nodejs.util.inspect.custom")]=f.valueOf,null!=e&&C.set(e),C}();const it=nt;function at(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ot=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r(this,t),this.bytes=e,this.length=this.bytes.length,this.position=n,this.bitPos=i}return o(t,[{key:"clone",value:function(){return new t(this.bytes,this.position,this.bitPos)}},{key:"getBytes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!(this.position>this.length)){var e=null!==t?this.position+t:this.length,r=this.bytes.slice(this.position,e);return this.position=e,this.bitPos=0,r}}},{key:"readString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(this.position>this.length)){-1===t&&(t=this.length-this.position);for(var e="",r=this.position;r<this.position+t;r++){var n=this.bytes[r];if(0===n)break;e+=String.fromCharCode(n)}return this.position+=t,this.bitPos=0,e}}},{key:"readInt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var r=0;if("be"===e)for(var n=this.position;n<this.position+t;n++)r<<=8,r|=this.bytes[n];else for(var i=this.position+t-1;i>=this.position;i--)r<<=8,r|=this.bytes[i];return this.position+=t,this.bitPos=0,r}}},{key:"readBits",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var r,n=0,i=0;for(n=this.bytes[this.position++]&(r=this.bitPos,"be"===e?(1<<8-r)-1:256-(1<<r)),"be"!==e&&(n>>>=this.bitPos),i=8-this.bitPos,this.bitPos=0;i<t;)"be"===e?n=n<<i|this.bytes[this.position++]:n|=this.bytes[this.position++]<<i,i+=8;if(i>t){var a=i-t;"be"===e?n>>>=a:n&=(1<<t)-1,i-=a,this.position--,this.bitPos=8-a}return n}}},{key:"continueUntil",value:function(t){if(!(this.position>this.length))if(this.bitPos=0,"number"!=typeof t){var e=t.length,r=t[e-1];this.position=e;for(var n,i=function(t,e){var r=new Array;return t.forEach((function(t,n){r[t]=e-n})),r}(t,e);this.position<this.length;){for(;this.position<this.length&&this.bytes[this.position++]!==r;);n=!0;for(var a=e-1;a>=0;a--)if(this.bytes[this.position-e+a]!==t[a]){n=!1,this.position+=i[t[a]];break}if(n){this.position-=e;break}}}else for(;++this.position<this.length&&this.bytes[this.position]!==t;);}},{key:"consumeWhile",value:function(t){for(;this.position<this.length&&this.bytes[this.position]===t;)this.position++;this.bitPos=0}},{key:"consumeIf",value:function(t){this.bytes[this.position]===t&&(this.position++,this.bitPos=0)}},{key:"moveForwardsBy",value:function(t){var e=this.position+t;if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsBy",value:function(t){var e=this.position-t;if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(t){if(t<=this.bitPos)this.bitPos-=t;else for(this.bitPos>0&&(t-=this.bitPos,this.bitPos=0);t>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(t),t-=8}},{key:"moveTo",value:function(t){if(t<0||t>this.length)throw new Error("Cannot move to position "+t+" in stream. Out of bounds.");this.position=t,this.bitPos=0}},{key:"hasMore",value:function(){return this.position<this.length}},{key:"carve",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&e++,this.bytes.slice(t,e)}}]),t}();function st(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ut(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ut(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var lt={Images:[{name:"Joint Photographic Experts Group image",extension:"jpg,jpeg,jpe,thm,mpo",mime:"image/jpeg",description:"",signature:{0:255,1:216,2:255,3:[192,196,219,221,224,225,226,227,228,229,231,232,234,235,236,237,238,254]},extractor:function(t,e){for(var r=new ot(t.slice(e));r.hasMore();){var n=r.getBytes(2);if(255!==n[0])throw new Error(`Invalid marker while parsing JPEG at pos ${r.position}: ${n}`);var i=0;switch(n[1]){case 216:case 1:break;case 217:return r.carve();case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 219:case 222:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:i=r.readInt(2,"be"),r.position+=i-2;break;case 223:r.position++;break;case 220:case 221:r.position+=2;break;case 218:i=r.readInt(2,"be"),r.position+=i-2,r.continueUntil(255);break;default:r.continueUntil(255)}}throw new Error("Unable to parse JPEG successfully")}},{name:"Graphics Interchange Format image",extension:"gif",mime:"image/gif",description:"",signature:{0:71,1:73,2:70,3:56,4:[55,57],5:97},extractor:function(t,e){var r=new ot(t.slice(e));for(r.continueUntil([33,255]),r.continueUntil([33,249]),r.moveForwardsBy(2);r.hasMore();){for(r.moveForwardsBy(r.readInt(1)+1),r.moveForwardsBy(11);r.getBytes(2)!==[33,249]&&(r.moveBackwardsBy(2),r.moveForwardsBy(r.readInt(1)),r.readInt(1));)r.moveBackwardsBy(1);if(59===r.readInt(1))break;r.moveForwardsBy(1)}return r.carve()}},{name:"Portable Network Graphics image",extension:"png",mime:"image/png",description:"",signature:{0:137,1:80,2:78,3:71,4:13,5:10,6:26,7:10},extractor:function(t,e){var r=new ot(t.slice(e));r.moveForwardsBy(8);for(var n=0,i="";"IEND"!==i;)n=r.readInt(4,"be"),i=r.readString(4),r.moveForwardsBy(n+4);return r.carve()}},{name:"WEBP Image",extension:"webp",mime:"image/webp",description:"",signature:{8:87,9:69,10:66,11:80},extractor:function(t,e){var r=new ot(t.slice(e));r.moveForwardsBy(4);var n=r.readInt(4,"le");return r.moveForwardsBy(n),r.carve()}},{name:"High Efficiency Image File Format",extension:"heic,heif",mime:"image/heif",description:"",signature:{0:0,1:0,2:0,4:102,5:116,6:121,7:112,8:104,9:101,10:105,11:99},extractor:null},{name:"Camera Image File Format",extension:"crw",mime:"image/x-canon-crw",description:"",signature:{6:72,7:69,8:65,9:80,10:67,11:67,12:68,13:82},extractor:null},{name:"Canon CR2 raw image",extension:"cr2",mime:"image/x-canon-cr2",description:"",signature:[{0:73,1:73,2:42,3:0,8:67,9:82},{0:77,1:77,2:0,3:42,8:67,9:82}],extractor:null},{name:"Tagged Image File Format image",extension:"tif",mime:"image/tiff",description:"",signature:[{0:73,1:73,2:42,3:0},{0:77,1:77,2:0,3:42}],extractor:null},{name:"Bitmap image",extension:"bmp",mime:"image/bmp",description:"",signature:{0:66,1:77,7:0,9:0,14:[12,40,56,64,108,124],15:0,16:0,17:0},extractor:function(t,e){var r=new ot(t.slice(e));r.moveForwardsBy(2);var n=r.readInt(4,"le");return r.moveForwardsBy(n-6),r.carve()}},{name:"JPEG Extended Range image",extension:"jxr",mime:"image/vnd.ms-photo",description:"",signature:{0:73,1:73,2:188},extractor:null},{name:"Photoshop image",extension:"psd",mime:"image/vnd.adobe.photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:1,6:0,7:0,8:0,9:0,10:0,11:0},extractor:null},{name:"Photoshop Large Document",extension:"psb",mime:"application/x-photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:2,6:0,7:0,8:0,9:0,10:0,11:0,12:0},extractor:null},{name:"Paint Shop Pro image",extension:"psp",mime:"image/psp",description:"",signature:[{0:80,1:97,2:105,3:110,4:116,5:32,6:83,7:104,8:111,9:112,10:32,11:80,12:114,13:111,14:32,15:73,16:109},{0:126,1:66,2:75,3:0}],extractor:null},{name:"The GIMP image",extension:"xcf",mime:"image/x-xcf",description:"",signature:{0:103,1:105,2:109,3:112,4:32,5:120,6:99,7:102,8:32,9:[102,118],10:[105,48],11:[108,48],12:[101,49,50,51]},extractor:null},{name:"Icon image",extension:"ico",mime:"image/x-icon",description:"",signature:{0:0,1:0,2:1,3:0,4:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],5:0,6:[16,32,48,64,128],7:[16,32,48,64,128],9:0,10:[0,1]},extractor:function(t,e){var r=new ot(t.slice(e));r.moveTo(4);var n=r.readInt(2,"le");r.moveForwardsBy(8+16*(n-1));var i=r.readInt(4,"le"),a=r.readInt(4,"le");return r.moveTo(a+i),r.carve()}},{name:"Radiance High Dynamic Range image",extension:"hdr",mime:"image/vnd.radiance",description:"",signature:{0:35,1:63,2:82,3:65,4:68,5:73,6:65,7:78,8:67,9:69,10:10},extractor:null},{name:"Sony ARW image",extension:"arw",mime:"image/x-raw",description:"",signature:{0:5,1:0,2:0,3:0,4:65,5:87,6:49,7:46},extractor:null},{name:"Fujifilm Raw Image",extension:"raf",mime:"image/x-raw",description:"",signature:{0:70,1:85,2:74,3:73,4:70,5:73,6:76,7:77,8:67,9:67,10:68,11:45,12:82,13:65,14:87},extractor:null},{name:"Minolta RAW image",extension:"mrw",mime:"image/x-raw",description:"",signature:{0:0,1:77,2:82,3:77},extractor:null},{name:"Adobe Bridge Thumbnail Cache",extension:"bct",mime:"application/octet-stream",description:"",signature:{0:108,1:110,2:98,3:116,4:2,5:0,6:0,7:0},extractor:null},{name:"Microsoft Document Imaging",extension:"mdi",mime:"image/vnd.ms-modi",description:"",signature:{0:69,1:80,2:42,3:0},extractor:null},{name:"Joint Photographic Experts Group image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:47,1:57,2:106,3:47,4:52},extractor:null},{name:"Portable Network Graphics image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:105,1:86,2:66,3:79,4:82,5:119,6:48},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,123d",mime:"application/acad",description:"",signature:{0:65,1:67,2:49,3:48,4:[48,49],5:[48,49,50,51,52,53],6:0},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,dwt",mime:"application/acad",description:"",signature:[{0:65,1:67,2:49,3:48,4:49,5:56,6:0},{0:65,1:67,2:49,3:48,4:50,5:52,6:0},{0:65,1:67,2:49,3:48,4:50,5:55,6:0}],extractor:null},{name:"Targa Image",extension:"tga",mime:"image/x-targa",description:"",signature:[{0:84,1:82,2:85,3:69,4:86,5:73,6:83,7:73,8:79,9:78,10:45,11:88,12:70,13:73,14:76,15:69,16:46}],extractor:function(t,e){var r=new ot(t);r.moveTo(e-8);var n=r.readInt(4,"le"),i=r.readInt(4,"le");function a(t,e){for(var n=0;n<t;n++){r.moveBackwardsBy(1);var i=r.readInt(e,"le")-1;if(r.moveBackwardsBy(e),i===n)break}}return r.moveBackwardsBy(8),n||i?n?(a(65535,2),r.moveBackwardsBy(n)):i&&(a(4294967295,4),r.moveBackwardsBy(6),r.moveBackwardsBy(i)):(function(){r.moveBackwardsBy(5);for(var t=0;t<1048576&&r.readInt(2,"le")*r.readInt(2,"le")*r.readInt(1)/8!=t-1;t++)r.moveBackwardsBy(6)}(),r.moveBackwardsBy(17)),r.carve(r.position,e+18)}}],Video:[{name:"Matroska Multimedia Container",extension:"mkv",mime:"video/x-matroska",description:"",signature:{31:109,32:97,33:116,34:114,35:111,36:115,37:107,38:97},extractor:null},{name:"WEBM video",extension:"webm",mime:"video/webm",description:"",signature:{0:26,1:69,2:223,3:163},extractor:null},{name:"Flash MP4 video",extension:"f4v",mime:"video/mp4",description:"",signature:{4:102,5:116,6:121,7:112,8:[102,70],9:52,10:[118,86],11:32},extractor:null},{name:"MPEG-4 video",extension:"mp4",mime:"video/mp4",description:"",signature:[{0:0,1:0,2:0,3:[24,32],4:102,5:116,6:121,7:112},{0:51,1:103,2:112,3:53},{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:109,9:112,10:52,11:50,16:109,17:112,18:52,19:49,20:109,21:112,22:52,23:50,24:105,25:115,26:111,27:109}],extractor:null},{name:"M4V video",extension:"m4v",mime:"video/x-m4v",description:"",signature:{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:77,9:52,10:86},extractor:null},{name:"Quicktime video",extension:"mov",mime:"video/quicktime",description:"",signature:{0:0,1:0,2:0,3:20,4:102,5:116,6:121,7:112},extractor:null},{name:"Audio Video Interleave",extension:"avi",mime:"video/x-msvideo",description:"",signature:{0:82,1:73,2:70,3:70,8:65,9:86,10:73},extractor:null},{name:"Windows Media Video",extension:"wmv",mime:"video/x-ms-wmv",description:"",signature:{0:48,1:38,2:178,3:117,4:142,5:102,6:207,7:17,8:166,9:217},extractor:null},{name:"MPEG video",extension:"mpg",mime:"video/mpeg",description:"",signature:{0:0,1:0,2:1,3:186},extractor:null},{name:"Flash Video",extension:"flv",mime:"video/x-flv",description:"",signature:{0:70,1:76,2:86,3:1},extractor:function(t,e){var r=new ot(t.slice(e));r.moveForwardsBy(5);var n=r.readInt(4,"be");r.moveForwardsBy(n-9);for(var i=-11;r.hasMore();){var a=r.readInt(4,"be"),o=r.readInt(1);if([8,9,18].indexOf(o)<0){r.moveBackwardsBy(1);break}if(a!==i+11){r.moveBackwardsBy(i+11+5);break}i=r.readInt(3,"be"),r.moveForwardsBy(7+i)}return r.carve()}},{name:"OGG Video",extension:"ogv,ogm,opus,ogx",mime:"video/ogg",description:"",signature:[{0:79,1:103,2:103,3:83,4:0,5:2,28:1,29:118,30:105,31:100,32:101,33:111},{0:79,1:103,2:103,3:83,4:0,5:2,28:128,29:116,30:104,31:101,32:111,33:114,34:97},{0:79,1:103,2:103,3:83,4:0,5:2,28:102,29:105,30:115,31:104,32:101,33:97,34:100}],extractor:null}],Audio:[{name:"Waveform Audio",extension:"wav",mime:"audio/x-wav",description:"",signature:{0:82,1:73,2:70,3:70,8:87,9:65,10:86,11:69},extractor:function(t,e){var r=new ot(t.slice(e));return r.moveTo(4),r.moveTo(r.readInt(4,"le")+8),r.carve()}},{name:"OGG audio",extension:"ogg",mime:"audio/ogg",description:"",signature:{0:79,1:103,2:103,3:83},extractor:null},{name:"Musical Instrument Digital Interface audio",extension:"midi",mime:"audio/midi",description:"",signature:{0:77,1:84,2:104,3:100},extractor:null},{name:"MPEG-3 audio",extension:"mp3",mime:"audio/mpeg",description:"",signature:[{0:73,1:68,2:51},{0:255,1:251}],extractor:function(t,e){var r=new ot(t.slice(e)),n=["free",32e3,4e4,48e3,56e3,64e3,8e4,96e3,112e3,128e3,16e4,192e3,224e3,256e3,32e4,"bad"],i=[44100,48e3,32e3,"reserved"];if(r.getBytes(3).toString()===[73,68,51].toString()){r.moveTo(6);var a=r.readInt(1)<<21|r.readInt(1)<<14|r.readInt(1)<<7|r.readInt(1);r.moveForwardsBy(a)}else r.moveTo(0);for(;r.hasMore();){if(r.getBytes(3)===[84,65,71].toString()){r.moveForwardsBy(125);break}if(r.getBytes(2).toString()!==[255,251].toString()){r.moveBackwardsBy(2);break}var o=r.readInt(1),s=n[o>>4],u=i[(15&o)>>2],l=(2&o)>>1;if("free"===s||"bad"===s||"reserved"===u){r.moveBackwardsBy(1);break}var c=Math.floor(144*s/u+l);if(r.position+c>r.length){r.moveTo(r.length);break}r.moveForwardsBy(c-3)}return r.carve()}},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(t,e){var r=new ot(t.slice(e));return r.continueUntil([37,37,69,79,70]),r.moveForwardsBy(5),r.consumeIf(13),r.consumeIf(10),r.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(t,e){var r=new ot(t.slice(e)),n=0;if(123!==r.readInt(1))throw new Error("Not a valid RTF file");for(n++;n>0&&r.hasMore();)switch(r.readInt(1)){case 123:n++;break;case 125:n--;break;case 92:r.consumeIf(92),r.position++}return r.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:ct},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:ct}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(t,e){var r=new ot(t.slice(e));r.moveTo(60);var n=r.readInt(4,"le");r.moveTo(n),r.moveForwardsBy(6);var i=r.readInt(2,"le");r.moveForwardsBy(16);var a=523===r.readInt(2,"le")?112:96;r.moveForwardsBy(a-2),r.moveForwardsBy(32);var o=r.readInt(4,"le"),s=r.readInt(4,"le");if(o>0)return r.moveTo(o+s),r.carve();r.moveForwardsBy(88),r.moveForwardsBy(40*(i-1)),r.moveForwardsBy(16);var u=r.readInt(4,"le"),l=r.readInt(4,"le");return r.moveTo(l+u),r.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(t,e){var r=new ot(t.slice(e));r.moveForwardsBy(4);var n=1===r.readInt(1),i=1===r.readInt(1)?"le":"be";r.moveForwardsBy(n?26:34);var a=n?r.readInt(4,i):r.readInt(8,i);r.moveForwardsBy(10);var o=r.readInt(2,i),s=r.readInt(2,i);return r.moveTo(a),r.moveForwardsBy(o*s),r.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:ht},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:ht},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:ct},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(t,e){for(var r=new ot(t.slice(e)),n=function(){if(r.moveForwardsBy(257),r.getBytes(5).join("")!==[117,115,116,97,114].join(""))return r.moveBackwardsBy(262),1;r.moveBackwardsBy(138);var t=0;r.getBytes(11).forEach((function(e,r){t+=(e-48).toString()})),t=512*Math.ceil(parseInt(t,8)/512),r.moveForwardsBy(t+377)};r.hasMore()&&!n(););return r.consumeWhile(0),r.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(t,e){var r=new ot(t.slice(e));r.moveForwardsBy(3);var n=r.readInt(1);if(r.moveForwardsBy(4),r.readInt(1),r.moveForwardsBy(1),4&n){var i=r.readInt(2,"le");r.moveForwardsby(i)}return 8&n&&(r.continueUntil(0),r.moveForwardsBy(1)),16&n&&(r.continueUntil(0),r.moveForwardsBy(1)),2&n&&r.moveForwardsBy(2),bt(r),r.moveForwardsBy(8),r.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(t,e){for(var r=new ot(t.slice(e)),n=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],i=0;i<n.length&&(r.continueUntil(n[i]),r.getBytes(5).join("")!==n[i].join(""));i++)r.moveTo(0);return r.moveForwardsBy(4),r.carve()}},{name:"7zip",extension:"7z",mime:"application/x-7z-compressed",description:"",signature:{0:55,1:122,2:188,3:175,4:39,5:28},extractor:null},{name:"Zlib Deflate",extension:"zlib",mime:"application/x-deflate",description:"",signature:{0:120,1:[1,156,218,94]},extractor:function(t,e){var r=new ot(t.slice(e));return r.moveForwardsBy(1),32&r.readInt(1)&&r.moveForwardsBy(4),bt(r),r.moveForwardsBy(4),r.carve()}},{name:"xz compression",extension:"xz",mime:"application/x-xz",description:"",signature:{0:253,1:55,2:122,3:88,4:90,5:0},extractor:function(t,e){var r=new ot(t.slice(e));return r.continueUntil([0,0,0,0,4,89,90]),r.moveForwardsBy(7),r.carve()}},{name:"Tarball",extension:"tar.z",mime:"application/x-gtar",description:"",signature:{0:31,1:[157,160]},extractor:null},{name:"ISO disk image",extension:"iso",mime:"application/octet-stream",description:"ISO 9660 CD/DVD image file",signature:[{32769:67,32770:68,32771:48,32772:48,32773:49},{34817:67,34818:68,34819:48,34820:48,34821:49},{36865:67,36866:68,36867:48,36868:48,36869:49}],extractor:null},{name:"Virtual Machine Disk",extension:"vmdk",mime:"application/vmdk,application/x-virtualbox-vmdk",description:"",signature:{0:75,1:68,2:77,3:86,5:0,6:0,7:0},extractor:null},{name:"Virtual Hard Drive",extension:"vhd",mime:"application/x-vhd",description:"",signature:{0:99,1:111,2:110,3:101,4:99,5:116,6:105,7:120},extractor:null},{name:"Macintosh disk image",extension:"dmf,dmg",mime:"application/octet-stream",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96,7:96},extractor:null},{name:"ARJ Archive",extension:"arj",mime:"application/x-arj-compressed",description:"",signature:{0:96,1:234,8:[0,16,20],9:0,10:2},extractor:null},{name:"WinAce Archive",extension:"ace",mime:"application/x-ace-compressed",description:"",signature:{7:42,8:42,9:65,10:67,11:69,12:42,13:42},extractor:null},{name:"Macintosh BinHex Encoded File",extension:"hqx",mime:"application/mac-binhex",description:"",signature:{11:109,12:117,13:115,14:116,15:32,16:98,17:101,18:32,19:99,20:111,21:110,22:118,23:101,24:114,25:116,26:101,27:100,28:32,29:119,30:105,31:116,32:104,33:32,34:66,35:105,36:110,37:72,38:101,39:120},extractor:null},{name:"ALZip Archive",extension:"alz",mime:"application/octet-stream",description:"",signature:{0:65,1:76,2:90,3:1,4:10,5:0,6:0,7:0},extractor:null},{name:"KGB Compressed Archive",extension:"kgb",mime:"application/x-kgb-compressed",description:"",signature:{0:75,1:71,2:66,3:95,4:97,5:114,6:99,7:104,8:32,9:45},extractor:null},{name:"Microsoft Cabinet",extension:"cab",mime:"vnd.ms-cab-compressed",description:"",signature:{0:77,1:83,2:67,3:70,4:0,5:0,6:0,7:0},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:95,1:39,2:168,3:137},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:80,1:75,2:3,3:4,4:20,5:0,6:8,7:0,8:8,9:0},extractor:ct},{name:"lzop compressed",extension:"lzop,lzo",mime:"application/x-lzop",description:"",signature:{0:137,1:76,2:90,3:79,4:0,5:13,6:10,7:26},extractor:function(t,e){var r=new ot(t.slice(e)),n=0,i=0;r.moveForwardsBy(9);var a=r.readInt(2,"be");r.moveForwardsBy(6);var o=r.readInt(4,"be");2048&a&&r.moveForwardsBy(4),2&o&&n++,512&o&&n++,1&o&&i++,256&o&&i++,r.moveForwardsBy(8),a>=2368&&r.moveForwardsBy(4);var s=r.readInt(1,"be");if(r.moveForwardsBy(s),64&o){var u=r.readInt(4,"be");r.moveForwardsBy(u)}for(r.moveForwardsBy(4);r.hasMore();){var l=r.readInt(4,"be");if(0===l)break;var c=r.readInt(4,"be"),h=l===c?i:i+n;r.moveForwardsBy(c+4*h)}return r.carve()}},{name:"Linux deb package",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:function(t,e){var r=new ot(t.slice(e));for(r.moveForwardsBy(8);r.hasMore();){r.moveForwardsBy(48);var n,i="",a=st(r.getBytes(10));try{for(a.s();!(n=a.n()).done;){var o=n.value;i+=String.fromCharCode(o)}}catch(t){a.e(t)}finally{a.f()}i=parseInt(i.trim(),10),r.moveForwardsBy(2),r.moveForwardsBy(i)}return r.carve()}},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(t,e){var r=new ot(t.slice(e));r.moveTo(16);var n=r.readInt(2);r.moveTo(28);var i=r.readInt(4);return r.moveTo(n*i),r.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(t,e){var r=new ot(t.slice(e));r.moveTo(20);var n=r.readInt(4,"le");r.moveTo(n);var i=r.readInt(4,"le");return r.moveForwardsBy(i-4),r.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(t,e){var r=new ot(t.slice(e));r.moveTo(40);var n=r.readInt(4,"le")-44;for(r.moveForwardsBy(n);r.hasMore()&&r.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)r.moveForwardsBy(65529);return r.consumeWhile(0),r.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:function(t,e){var r=new ot(t.slice(e));return r.moveTo(112),r.moveTo(4096*(r.readInt(4,"le")+1)),r.carve()}},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:function(t,e){var r=new ot(t.slice(e));return r.moveTo(12),r.moveTo(r.readInt(4,"be")),r.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(t,e){var r=new ot(t.slice(e));return r.moveTo(r.readInt(4,"be")),r.carve()}},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(t,e){var r=new ot(t.slice(e)),n=0;for(r.continueUntil([60,112,108,105,115,116]),r.moveForwardsBy(6),n++;n>0&&r.hasMore();)60===r.readInt(1)&&(r.getBytes(5).join("")===[112,108,105,115,116].join("")?n++:r.moveBackwardsBy(5),r.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?n--:r.moveBackwardsBy(7));return r.consumeIf(10),r.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:function(t,e){var r=new ot(t.slice(e));return r.moveTo(20),r.moveForwardsBy(r.readInt(4)),r.carve()}},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(t){return t>=1&&t<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(t){return t>=1&&t<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(t){return 0!==t},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4},{0:149,1:5,2:134,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:function(t,e){var r=new ot(t.slice(e));return r.moveTo(52),r.moveTo(r.readInt(4,"le")),r.carve()}},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function ct(t,e){var r=new ot(t.slice(e));r.continueUntil([80,75,5,6]),r.moveForwardsBy(20);var n=r.readInt(2,"le");return r.moveForwardsBy(n),r.carve()}function ht(t,e){var r="207250237254",n=new ot(t.slice(e)),i=n.getBytes(4).join("");return n.moveTo(function(t,e,r){var n=28;e&&(n+=4),t.moveTo(16);var i=t.readInt(4,r);return function(t,e,r,n){for(var i=0,a=0;a<n;a++){t.moveTo(e);var o=t.readInt(4,r);25===o?(t.moveTo(e+48),i+=t.readInt(8,r),t.moveTo(e+4),e+=t.readInt(4,r)):1===o&&(t.moveTo(e+36),i+=t.readInt(4,r),t.moveTo(e+4),e+=t.readInt(4,r))}return i}(t,n,r,i)}(n,function(t){return t===r||"254237250207"===t}(i),function(t){return"206250237254"===t||t===r}(i)?"le":"be")),n.carve()}for(var ft=new Array(288),dt=0;dt<ft.length;dt++)ft[dt]=dt<=143?8:dt<=255?9:dt<=279?7:8;var pt=_t(ft),mt=_t(new Array(30).fill(5)),gt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function bt(t){for(var e=0;!e;){e=t.readBits(1,"le");var r=t.readBits(2,"le");if(0===r){t.moveForwardsBy(1);var n=t.readInt(2,"le");t.moveForwardsBy(2+n)}else if(1===r)wt(t,pt,mt);else{if(2!==r)throw new Error(`Invalid block type while parsing DEFLATE stream at pos ${t.position}`);for(var i=t.readBits(5,"le")+257,a=t.readBits(5,"le")+1,o=t.readBits(4,"le")+4,s=new Uint8Array(gt.length),u=0;u<o;u++)s[gt[u]]=t.readBits(3,"le");for(var l=_t(s),c=new Uint8Array(i+a),h=void 0,f=void 0,d=void 0,p=0;p<i+a;)switch(h=kt(t,l)){case 16:for(f=3+t.readBits(2,"le");f--;)c[p++]=d;break;case 17:for(f=3+t.readBits(3,"le");f--;)c[p++]=0;d=0;break;case 18:for(f=11+t.readBits(7,"le");f--;)c[p++]=0;d=0;break;default:c[p++]=h,d=h}wt(t,_t(c.subarray(0,i)),_t(c.subarray(i)))}}t.bitPos>0&&t.moveForwardsBy(1)}var vt=[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,0,0],yt=[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];function wt(t,e,r){for(var n,i=0;(n=kt(t,e))&&256!==n;){if(++i>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");n<256||(t.readBits(vt[n-257],"le"),n=kt(t,r),t.readBits(yt[n],"le"))}}function _t(t){for(var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t),n=1<<e,i=new Uint32Array(n),a=1,o=0,s=2;a<=e;){for(var u=0;u<t.length;u++)if(t[u]===a){var l=void 0,c=void 0,h=void 0;for(l=0,c=o,h=0;h<a;h++)l=l<<1|1&c,c>>=1;for(var f=a<<16|u,d=l;d<n;d+=s)i[d]=f;o++}a++,o<<=1,s<<=1}return[i,e,r]}function kt(t,e){var r=at(e,2),n=r[0],i=r[1],a=n[t.readBits(i,"le")&(1<<i)-1],o=a>>>16;if(o>i)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${t.position}: ${o}`);return t.moveBackwardsByBits(i-o),65535&a}function Bt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.length){for(var n=0;n<t.length;n++)if(xt(t[n],e,r))return!0;return!1}return xt(t,e,r)}function xt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var n in t){var i=parseInt(n,10)+r;switch(typeof t[n]){case"number":if(e[i]!==t[n])return!1;break;case"object":if(t[n].indexOf(e[i])<0)return!1;break;case"function":if(!t[n](e[i]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${n}`)}}return!0}function Et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(lt);if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),!(t&&t.length>1))return[];var r=[],n={};for(var i in lt)e.includes(i)&&(n[i]=lt[i]);for(var a in n)n[a].forEach((function(e){Bt(e.signature,t)&&r.push(e)}));return r}function Ct(t){return function(t,e){var r=Et(e);return!!r.length&&r.reduce((function(e,r){var n=!!r.mime.startsWith(t)&&r.mime;return e||n}),!1)}("image",t)}const At=function(){function t(){r(this,t)}return o(t,null,[{key:"checkForValue",value:function(t){if(void 0===t)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){throw new Error("fromArrayBuffer has not been implemented")}}]),t}();function It(t,e,r){return e=l(e),u(t,Mt()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Mt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Mt=function(){return!!t})()}const Pt=function(t){function e(){return r(this,e),It(this,e,arguments)}return h(e,t),o(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}]),e}(At);function St(t,e,r){return e=l(e),u(t,Tt()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Tt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Tt=function(){return!!t})()}const Rt=function(t){function e(){return r(this,e),St(this,e,arguments)}return h(e,t),o(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=it.isBigNumber(this.value)?O.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value);try{this.value=new it(O.arrayBufferToStr(this.value))}catch(t){this.value=new it(NaN)}}}]),e}(At);function Lt(t,e,r){return e=l(e),u(t,Ot()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Ot(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ot=function(){return!!t})()}const Ft=function(t){function e(){return r(this,e),Lt(this,e,arguments)}return h(e,t),o(e,null,[{key:"toArrayBuffer",value:function(){var t=this;if(e.checkForValue(this.value),!T())return new Promise((function(e,r){O.readFile(t.value).then((function(e){return t.value=e.buffer})).then(e).catch(r)}));this.value=O.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=new File(this.value,"unknown")}}]),e}(At);function Nt(t,e,r){return e=l(e),u(t,Ut()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Ut(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ut=function(){return!!t})()}const Dt=function(t){function e(){return r(this,e),Nt(this,e,arguments)}return h(e,t),o(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?O.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?O.arrayBufferToStr(this.value):""}}]),e}(At);function zt(t,e,r){return e=l(e),u(t,Gt()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Gt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gt=function(){return!!t})()}const jt=function(t){function e(){return r(this,e),zt(this,e,arguments)}return h(e,t),o(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?O.strToArrayBuffer(O.unescapeHtml(O.stripHtmlTags(this.value,!0))):new ArrayBuffer}}]),e}(Dt);function Ht(t,e,r){return e=l(e),u(t,Wt()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Wt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Wt=function(){return!!t})()}const qt=function(t){function e(){return r(this,e),Ht(this,e,arguments)}return h(e,t),o(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value=void 0!==this.value?O.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=JSON.parse(O.arrayBufferToStr(this.value))}}]),e}(At);function Zt(t,e,r){return e=l(e),u(t,$t()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function $t(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($t=function(){return!!t})()}const Vt=function(t){function n(){return r(this,n),Zt(this,n,arguments)}var i,a;return h(n,t),o(n,null,[{key:"toArrayBuffer",value:(a=e(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.checkForValue(this.value),!T()){t.next=5;break}this.value=this.value.map((function(t){return Uint8Array.from(t.data)})),t.next=8;break;case 5:return t.next=7,n.concatenateTypedArraysWithTypedElements.apply(n,g(this.value));case 7:this.value=t.sent;case 8:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){n.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(i=e(d().mark((function t(){var e,r,n,i,a,o,s,u,l,c,h,f,p,m=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=0,r=m.length,n=new Array(r),i=0;i<r;i++)n[i]=m[i];for(a=0,o=n;a<o.length;a++)s=o[a],e+=s.size;u=new Uint8Array(e),l=0,c=0,h=n;case 6:if(!(c<h.length)){t.next=16;break}return f=h[c],t.next=10,O.readFile(f);case 10:p=t.sent,u.set(p,l),l+=p.length;case 13:c++,t.next=6;break;case 16:return t.abrupt("return",u);case 17:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})},{key:"concatenateTypedArrays",value:function(){for(var t=0,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var i=0,a=r;i<a.length;i++)t+=a[i].length;for(var o=new Uint8Array(t),s=0,u=0,l=r;u<l.length;u++){var c=l[u];o.set(c,s),s+=c.length}return o}}]),n}(At);function Yt(t,e,r){return e=l(e),u(t,Xt()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Xt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xt=function(){return!!t})()}const Jt=function(t){function e(){return r(this,e),Yt(this,e,arguments)}return h(e,t),o(e,null,[{key:"toArrayBuffer",value:function(){e.checkForValue(this.value),this.value="number"==typeof this.value?O.strToArrayBuffer(this.value.toString()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(){e.checkForValue(this.value),this.value=this.value?parseFloat(O.arrayBufferToStr(this.value)):0}}]),e}(At);var Qt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(r(this,t),this.value=new ArrayBuffer(0),this.type=t.ARRAY_BUFFER,e&&Object.prototype.hasOwnProperty.call(e,"value")&&Object.prototype.hasOwnProperty.call(e,"type"))this.set(e.value,e.type);else if(e&&null!==n)this.set(e,n);else if(e){var i=t.typeEnum(e.constructor.name);this.set(e,i)}}var n;return o(t,[{key:"get",value:function(e){var r=this;return"string"==typeof e&&(e=t.typeEnum(e)),this.type!==e?T()?(this._translate(e),this.value):new Promise((function(t,n){r._translate(e).then((function(){t(r.value)})).catch(n)})):this.value}},{key:"set",value:function(e,r){if("string"==typeof r&&(r=t.typeEnum(r)),v().debug("Dish type: "+t.enumLookup(r)),this.value=e,this.type=r,!this.valid()){var n=O.truncate(JSON.stringify(this.value),25);throw new U(`Data is not a valid ${t.enumLookup(r)}: ${n}`)}}},{key:"presentAs",value:function(t){return this.clone().get(t)}},{key:"detectDishType",value:function(){var t=Et(new Uint8Array(this.value.slice(0,2048)));return t.length&&t[0].mime&&"text/plain"===t[0].mime?t[0].mime:null}},{key:"getTitle",value:(n=e(d().mark((function e(r){var n,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n="",e.t0=this.type,e.next=e.t0===t.FILE?4:e.t0===t.LIST_FILE?6:e.t0===t.JSON?8:e.t0===t.NUMBER||e.t0===t.BIG_NUMBER?10:e.t0===t.ARRAY_BUFFER||e.t0===t.BYTE_ARRAY?12:15;break;case 4:return n=this.value.name,e.abrupt("break",26);case 6:return n=`${this.value.length} file(s)`,e.abrupt("break",26);case 8:return n="application/json",e.abrupt("break",26);case 10:return n=this.value.toString(),e.abrupt("break",26);case 12:if(null===(n=this.detectDishType())){e.next=15;break}return e.abrupt("break",26);case 15:return e.prev=15,(i=this.clone()).value=i.value.slice(0,256),e.next=20,i.get(t.STRING);case 20:n=e.sent,e.next=26;break;case 23:e.prev=23,e.t1=e.catch(15),v().error(`${t.enumLookup(this.type)} cannot be sliced. ${e.t1}`);case 26:return e.abrupt("return",n.slice(0,r));case 27:case"end":return e.stop()}}),e,this,[[15,23]])}))),function(t){return n.apply(this,arguments)})},{key:"valid",value:function(){switch(this.type){case t.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var e=0;e<this.value.length;e++)if("number"!=typeof this.value[e]||this.value[e]<0||this.value[e]>255)return!1;return!0;case t.STRING:case t.HTML:return"string"==typeof this.value;case t.NUMBER:return"number"==typeof this.value;case t.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case t.BIG_NUMBER:if(it.isBigNumber(this.value))return!0;if(Object.keys(this.value).sort().equals(["c","e","s"])){var r=new it;return r.c=this.value.c,r.e=this.value.e,r.s=this.value.s,this.value=r,!0}return!1;case t.JSON:return!0;case t.FILE:return this.value instanceof File;case t.LIST_FILE:return this.value instanceof Array&&this.value.reduce((function(t,e){return t&&e instanceof File}),!0);default:return!1}}},{key:"size",get:function(){switch(this.type){case t.BYTE_ARRAY:case t.STRING:case t.HTML:return this.value.length;case t.NUMBER:case t.BIG_NUMBER:return this.value.toString().length;case t.ARRAY_BUFFER:return this.value.byteLength;case t.JSON:return JSON.stringify(this.value).length;case t.FILE:return this.value.size;case t.LIST_FILE:return this.value.reduce((function(t,e){return t+e.size}),0);default:return-1}}},{key:"clone",value:function(){var e=new t;switch(this.type){case t.STRING:case t.HTML:case t.NUMBER:case t.BIG_NUMBER:e.set(this.value,this.type);break;case t.BYTE_ARRAY:case t.JSON:e.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case t.ARRAY_BUFFER:e.set(this.value.slice(0),this.type);break;case t.FILE:e.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case t.LIST_FILE:e.set(this.value.map((function(t){return new File([t],t.name,{type:t.type,lastModified:t.lastModified})})),this.type);break;default:throw new U("Cannot clone Dish, unknown type")}return e}},{key:"_translate",value:function(e){var r=this;if(v().debug(`Translating Dish from ${t.enumLookup(this.type)} to ${t.enumLookup(e)}`),!T())return new Promise((function(n,i){r._toArrayBuffer().then((function(){return r.type=t.ARRAY_BUFFER})).then((function(){r._fromArrayBuffer(e),n()})).catch(i)}));this._toArrayBuffer(),this.type=t.ARRAY_BUFFER,this._fromArrayBuffer(e)}},{key:"_toArrayBuffer",value:function(){var e=this,r={browser:{[t.STRING]:function(){return Promise.resolve(Dt.toArrayBuffer.bind(e)())},[t.NUMBER]:function(){return Promise.resolve(Jt.toArrayBuffer.bind(e)())},[t.HTML]:function(){return Promise.resolve(jt.toArrayBuffer.bind(e)())},[t.ARRAY_BUFFER]:function(){return Promise.resolve()},[t.BIG_NUMBER]:function(){return Promise.resolve(Rt.toArrayBuffer.bind(e)())},[t.JSON]:function(){return Promise.resolve(qt.toArrayBuffer.bind(e)())},[t.FILE]:function(){return Ft.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return Promise.resolve(Vt.toArrayBuffer.bind(e)())},[t.BYTE_ARRAY]:function(){return Promise.resolve(Pt.toArrayBuffer.bind(e)())}},node:{[t.STRING]:function(){return Dt.toArrayBuffer.bind(e)()},[t.NUMBER]:function(){return Jt.toArrayBuffer.bind(e)()},[t.HTML]:function(){return jt.toArrayBuffer.bind(e)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return Rt.toArrayBuffer.bind(e)()},[t.JSON]:function(){return qt.toArrayBuffer.bind(e)()},[t.FILE]:function(){return Ft.toArrayBuffer.bind(e)()},[t.LIST_FILE]:function(){return Vt.toArrayBuffer.bind(e)()},[t.BYTE_ARRAY]:function(){return Pt.toArrayBuffer.bind(e)()}}};try{return r[T()?"node":"browser"][this.type]()}catch(e){throw new U(`Error translating from ${t.enumLookup(this.type)} to ArrayBuffer: ${e}`)}}},{key:"_fromArrayBuffer",value:function(e){var r=this,n={[t.STRING]:function(){return Dt.fromArrayBuffer.bind(r)()},[t.NUMBER]:function(){return Jt.fromArrayBuffer.bind(r)()},[t.HTML]:function(){return jt.fromArrayBuffer.bind(r)()},[t.ARRAY_BUFFER]:function(){},[t.BIG_NUMBER]:function(){return Rt.fromArrayBuffer.bind(r)()},[t.JSON]:function(){return qt.fromArrayBuffer.bind(r)()},[t.FILE]:function(){return Ft.fromArrayBuffer.bind(r)()},[t.LIST_FILE]:function(){return Vt.fromArrayBuffer.bind(r)()},[t.BYTE_ARRAY]:function(){return Pt.fromArrayBuffer.bind(r)()}};try{n[e](),this.type=e}catch(r){throw new U(`Error translating from ArrayBuffer to ${t.enumLookup(e)}: ${r}`)}}}],[{key:"typeEnum",value:function(e){switch(e.toLowerCase()){case"bytearray":case"byte array":return t.BYTE_ARRAY;case"string":return t.STRING;case"number":return t.NUMBER;case"html":return t.HTML;case"arraybuffer":case"array buffer":return t.ARRAY_BUFFER;case"bignumber":case"big number":return t.BIG_NUMBER;case"json":case"object":return t.JSON;case"file":return t.FILE;case"list<file>":return t.LIST_FILE;default:throw new U("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(e){switch(e){case t.BYTE_ARRAY:return"byteArray";case t.STRING:return"string";case t.NUMBER:return"number";case t.HTML:return"html";case t.ARRAY_BUFFER:return"ArrayBuffer";case t.BIG_NUMBER:return"BigNumber";case t.JSON:return"JSON";case t.FILE:return"File";case t.LIST_FILE:return"List<File>";default:throw new U("Invalid data type enum. No matching type.")}}}]),t}();Qt.BYTE_ARRAY=0,Qt.STRING=1,Qt.NUMBER=2,Qt.HTML=3,Qt.ARRAY_BUFFER=4,Qt.BIG_NUMBER=5,Qt.JSON=6,Qt.FILE=7,Qt.LIST_FILE=8;const Kt=Qt,te=function(){function t(e){r(this,t),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.maxLength=null,this.min=null,this.max=null,this.step=1,e&&this._parseConfig(e)}return o(t,[{key:"_parseConfig",value:function(t){this.name=t.name,this.type=t.type,this.defaultValue=t.value,this.disabled=!!t.disabled,this.hint=t.hint||!1,this.rows=t.rows||!1,this.toggleValues=t.toggleValues,this.target=void 0!==t.target?t.target:null,this.defaultIndex=void 0!==t.defaultIndex?t.defaultIndex:0,this.maxLength=t.maxLength||null,this.min=t.min,this.max=t.max,this.step=t.step}},{key:"config",get:function(){return this._value}},{key:"value",get:function(){return this._value},set:function(e){this._value=t.prepare(e,this.type)}}],[{key:"prepare",value:function(t,e){var r;switch(e){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return O.parseEscapedChars(t);case"byteArray":return"string"==typeof t?C(t=t.replace(/\s+/g,"")):t;case"number":if(null===t)return t;if(r=parseFloat(t),isNaN(r))throw"Invalid ingredient value. Not a number: "+O.truncate(t.toString(),10);return r;default:return t}}}]),t}();var ee=function(){function t(){r(this,t),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null}return o(t,[{key:"run",value:function(t,e){return t}},{key:"highlight",value:function(t,e){return!1}},{key:"highlightReverse",value:function(t,e){return!1}},{key:"present",value:function(t,e){return t}},{key:"inputType",get:function(){return Kt.enumLookup(this._inputType)},set:function(t){this._inputType=Kt.typeEnum(t)}},{key:"outputType",get:function(){return Kt.enumLookup(this._outputType)},set:function(t){this._outputType=Kt.typeEnum(t),this._presentType<0&&(this._presentType=this._outputType)}},{key:"presentType",get:function(){return Kt.enumLookup(this._presentType)},set:function(t){this._presentType=Kt.typeEnum(t)}},{key:"args",get:function(){return this._ingList.map((function(t){var e={name:t.name,type:t.type,value:t.defaultValue};return t.toggleValues&&(e.toggleValues=t.toggleValues),t.hint&&(e.hint=t.hint),t.rows&&(e.rows=t.rows),t.disabled&&(e.disabled=t.disabled),t.target&&(e.target=t.target),t.defaultIndex&&(e.defaultIndex=t.defaultIndex),t.maxLength&&(e.maxLength=t.maxLength),"number"==typeof t.min&&(e.min=t.min),"number"==typeof t.max&&(e.max=t.max),t.step&&(e.step=t.step),e}))},set:function(t){var e=this;t.forEach((function(t){var r=new te(t);e.addIngredient(r)}))}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map((function(t){return t.config}))}}},{key:"addIngredient",value:function(t){this._ingList.push(t)}},{key:"ingValues",get:function(){return this._ingList.map((function(t){return t.value}))},set:function(t){var e=this;t.forEach((function(t,r){e._ingList[r].value=t}))}},{key:"breakpoint",get:function(){return this._breakpoint},set:function(t){this._breakpoint=!!t}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=!!t}},{key:"flowControl",get:function(){return this._flowControl},set:function(t){this._flowControl=!!t}},{key:"manualBake",get:function(){return this._manualBake},set:function(t){this._manualBake=!!t}}]),t}();const re=ee;var ne=__webpack_require__(66616),ie=__webpack_require__.n(ne);function ae(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(ae=function(t){return t?r:e})(t)}function oe(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=ae(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=t[a]}return n.default=t,r&&r.set(t,n),n}function se(t,e,r){return e=l(e),u(t,ue()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ue=function(){return!!t})()}const le=function(t){function n(){var t;return r(this,n),(t=se(this,n)).name="Add Text To Image",t.module="Image",t.description="Adds text onto an image.<br><br>Text can be horizontally or vertically aligned, or the position can be manually specified.<br>Variants of the Roboto font face are available in any size or colour.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Text",type:"string",value:""},{name:"Horizontal align",type:"option",value:["None","Left","Center","Right"]},{name:"Vertical align",type:"option",value:["None","Top","Middle","Bottom"]},{name:"X position",type:"number",value:0},{name:"Y position",type:"number",value:0},{name:"Size",type:"number",value:32,min:8},{name:"Font face",type:"option",value:["Roboto","Roboto Black","Roboto Mono","Roboto Slab"]},{name:"Red",type:"number",value:255,min:0,max:255},{name:"Green",type:"number",value:255,min:0,max:255},{name:"Blue",type:"number",value:255,min:0,max:255},{name:"Alpha",type:"number",value:255,min:0,max:255}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c,h,f,p,m,g,b,v,y,w,_,k;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r[0],i=r[1],a=r[2],o=r[5],s=r[6],u=r[7],l=r[8],c=r[9],h=r[10],f=r[3],p=r[4],Ct(e)){t.next=4;break}throw new B("Invalid file type.");case 4:return t.prev=4,t.next=7,ie().read(e);case 7:m=t.sent,t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(4),new B(`Error loading image. (${t.t0})`);case 13:return t.prev=13,L()&&self.sendStatusMessage("Adding text to image..."),g={},b=[Promise.resolve().then((function(){return oe(__webpack_require__(16176))})),Promise.resolve().then((function(){return oe(__webpack_require__(48856))})),Promise.resolve().then((function(){return oe(__webpack_require__(85542))})),Promise.resolve().then((function(){return oe(__webpack_require__(86456))}))],t.next=19,Promise.all(b).then((function(t){g.Roboto=t[0],g["Roboto Black"]=t[1],g["Roboto Mono"]=t[2],g["Roboto Slab"]=t[3]}));case 19:return t.next=21,Promise.all([Promise.resolve().then((function(){return oe(__webpack_require__(46376))})),Promise.resolve().then((function(){return oe(__webpack_require__(53680))})),Promise.resolve().then((function(){return oe(__webpack_require__(25292))})),Promise.resolve().then((function(){return oe(__webpack_require__(41144))}))]);case 21:return v=g[s],t.next=24,ie().loadFont(self.docURL+"/"+v.default);case 24:(y=t.sent).pages.forEach((function(t){if(t.bitmap)for(var e=t.bitmap.width,r=t.bitmap.height,n=0;n<e;n++)for(var i=0;i<r;i++){var a=i*e+n<<2,o=t.bitmap.data[a]-(255-u),s=t.bitmap.data[a+1]-(255-l),f=t.bitmap.data[a+2]-(255-c),d=t.bitmap.data[a+3]-(255-h);t.bitmap.data[a]=o>0?o:0,t.bitmap.data[a+1]=s>0?s:0,t.bitmap.data[a+2]=f>0?f:0,t.bitmap.data[a+3]=d>0?d:0}})),(w=new(ie())(ie().measureText(y,n),ie().measureTextHeight(y,n))).print(y,0,0,n),_=o/72,1!==o&&(o>1?w.scale(_,ie().RESIZE_BICUBIC):w.scale(_,ie().RESIZE_BILINEAR)),t.t1=i,t.next="Left"===t.t1?33:"Center"===t.t1?35:"Right"===t.t1?37:39;break;case 33:return f=0,t.abrupt("break",39);case 35:return f=m.getWidth()/2-w.getWidth()/2,t.abrupt("break",39);case 37:return f=m.getWidth()-w.getWidth(),t.abrupt("break",39);case 39:t.t2=a,t.next="Top"===t.t2?42:"Middle"===t.t2?44:"Bottom"===t.t2?46:48;break;case 42:return p=0,t.abrupt("break",48);case 44:return p=m.getHeight()/2-w.getHeight()/2,t.abrupt("break",48);case 46:return p=m.getHeight()-w.getHeight(),t.abrupt("break",48);case 48:if(m.blit(w,f,p),"image/gif"!==m.getMIME()){t.next=55;break}return t.next=52,m.getBufferAsync(ie().MIME_PNG);case 52:k=t.sent,t.next=58;break;case 55:return t.next=57,m.getBufferAsync(ie().AUTO);case 57:k=t.sent;case 58:return t.abrupt("return",k.buffer);case 61:throw t.prev=61,t.t3=t.catch(13),new B(`Error adding text to image. (${t.t3})`);case 64:case"end":return t.stop()}}),t,null,[[4,10],[13,61]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function ce(t,e){try{for(var r=function(t,e){var r=Math.sqrt(12*t*t/3+1),n=Math.floor(r);n%2==0&&n--;for(var i=n+2,a=(12*t*t-3*n*n-12*n-9)/(-4*n-4),o=Math.round(a),s=[],u=0;u<3;u++)s.push(u<o?n:i);return s}(e),n=0;n<3;n++)t=he(t,(r[n]-1)/2)}catch(t){throw new B(`Error blurring image. (${t})`)}return t}function he(t,e){var r=t.bitmap.width,n=t.bitmap.height,i=t.clone();return i=function(t,e,r,n,i){for(var a=1/(i+i+1),o=0;o<n;o++){for(var s=0,u=s,l=s+i,c=t.getPixelIndex(s,o),h=t.bitmap.data[c],f=t.bitmap.data[c+1],d=t.bitmap.data[c+2],p=t.bitmap.data[c+3],m=t.getPixelIndex(r-1,o),g=t.bitmap.data[m],b=t.bitmap.data[m+1],v=t.bitmap.data[m+2],y=t.bitmap.data[m+3],w=(i+1)*h,_=(i+1)*f,k=(i+1)*d,B=(i+1)*p,x=0;x<i;x++){var E=t.getPixelIndex(s+x,o);w+=t.bitmap.data[E],_+=t.bitmap.data[E+1],k+=t.bitmap.data[E+2],B+=t.bitmap.data[E+3]}for(var C=0;C<=i;C++){var A=t.getPixelIndex(l++,o);w+=t.bitmap.data[A]-h,_+=t.bitmap.data[A+1]-f,k+=t.bitmap.data[A+2]-d,B+=t.bitmap.data[A+3]-p;var I=t.getPixelIndex(s++,o);e.bitmap.data[I]=Math.round(w*a),e.bitmap.data[I+1]=Math.round(_*a),e.bitmap.data[I+2]=Math.round(k*a),e.bitmap.data[I+3]=Math.round(B*a)}for(var M=i+1;M<r-i;M++){var P=t.getPixelIndex(l++,o),S=t.getPixelIndex(u++,o);w+=t.bitmap.data[P]-t.bitmap.data[S],_+=t.bitmap.data[P+1]-t.bitmap.data[S+1],k+=t.bitmap.data[P+2]-t.bitmap.data[S+2],B+=t.bitmap.data[P+3]-t.bitmap.data[S+3];var T=t.getPixelIndex(s++,o);e.bitmap.data[T]=Math.round(w*a),e.bitmap.data[T+1]=Math.round(_*a),e.bitmap.data[T+2]=Math.round(k*a),e.bitmap.data[T+3]=Math.round(B*a)}for(var R=r-i;R<r;R++){var L=t.getPixelIndex(u++,o);w+=g-t.bitmap.data[L],_+=b-t.bitmap.data[L+1],k+=v-t.bitmap.data[L+2],B+=y-t.bitmap.data[L+3];var O=t.getPixelIndex(s++,o);e.bitmap.data[O]=Math.round(w*a),e.bitmap.data[O+1]=Math.round(_*a),e.bitmap.data[O+2]=Math.round(k*a),e.bitmap.data[O+3]=Math.round(B*a)}}return e}(t,i,r,n,e),t=function(t,e,r,n,i){for(var a=1/(i+i+1),o=0;o<r;o++){for(var s=0,u=s,l=s+i,c=t.getPixelIndex(o,s),h=t.bitmap.data[c],f=t.bitmap.data[c+1],d=t.bitmap.data[c+2],p=t.bitmap.data[c+3],m=t.getPixelIndex(o,n-1),g=t.bitmap.data[m],b=t.bitmap.data[m+1],v=t.bitmap.data[m+2],y=t.bitmap.data[m+3],w=(i+1)*h,_=(i+1)*f,k=(i+1)*d,B=(i+1)*p,x=0;x<i;x++){var E=t.getPixelIndex(o,s+x);w+=t.bitmap.data[E],_+=t.bitmap.data[E+1],k+=t.bitmap.data[E+2],B+=t.bitmap.data[E+3]}for(var C=0;C<=i;C++){var A=t.getPixelIndex(o,l++);w+=t.bitmap.data[A]-h,_+=t.bitmap.data[A+1]-f,k+=t.bitmap.data[A+2]-d,B+=t.bitmap.data[A+3]-p;var I=t.getPixelIndex(o,s++);e.bitmap.data[I]=Math.round(w*a),e.bitmap.data[I+1]=Math.round(_*a),e.bitmap.data[I+2]=Math.round(k*a),e.bitmap.data[I+3]=Math.round(B*a)}for(var M=i+1;M<n-i;M++){var P=t.getPixelIndex(o,l++),S=t.getPixelIndex(o,u++);w+=t.bitmap.data[P]-t.bitmap.data[S],_+=t.bitmap.data[P+1]-t.bitmap.data[S+1],k+=t.bitmap.data[P+2]-t.bitmap.data[S+2],B+=t.bitmap.data[P+3]-t.bitmap.data[S+3];var T=t.getPixelIndex(o,s++);e.bitmap.data[T]=Math.round(w*a),e.bitmap.data[T+1]=Math.round(_*a),e.bitmap.data[T+2]=Math.round(k*a),e.bitmap.data[T+3]=Math.round(B*a)}for(var R=n-i;R<n;R++){var L=t.getPixelIndex(o,u++);w+=g-t.bitmap.data[L],_+=b-t.bitmap.data[L+1],k+=v-t.bitmap.data[L+2],B+=y-t.bitmap.data[L+3];var O=t.getPixelIndex(o,s++);e.bitmap.data[O]=Math.round(w*a),e.bitmap.data[O+1]=Math.round(_*a),e.bitmap.data[O+2]=Math.round(k*a),e.bitmap.data[O+3]=Math.round(B*a)}}return e}(i,t,r,n,e),t}function fe(t,e,r){return e=l(e),u(t,de()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function de(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(de=function(){return!!t})()}const pe=function(t){function n(){var t;return r(this,n),(t=fe(this,n)).name="Blur Image",t.module="Image",t.description="Applies a blur effect to the image.<br><br>Gaussian blur is much slower than fast blur, but produces better results.",t.infoURL="https://wikipedia.org/wiki/Gaussian_blur",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Amount",type:"number",value:5,min:1},{name:"Type",type:"option",value:["Fast","Gaussian"]}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,2),i=n[0],a=n[1],Ct(e)){t.next=3;break}throw new B("Invalid file type.");case 3:return t.prev=3,t.next=6,ie().read(e);case 6:o=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new B(`Error loading image. (${t.t0})`);case 12:t.prev=12,t.t1=a,t.next="Fast"===t.t1?16:"Gaussian"===t.t1?19:22;break;case 16:return L()&&self.sendStatusMessage("Fast blurring image..."),o.blur(i),t.abrupt("break",22);case 19:return L()&&self.sendStatusMessage("Gaussian blurring image..."),o=ce(o,i),t.abrupt("break",22);case 22:if("image/gif"!==o.getMIME()){t.next=28;break}return t.next=25,o.getBufferAsync(ie().MIME_PNG);case 25:s=t.sent,t.next=31;break;case 28:return t.next=30,o.getBufferAsync(ie().AUTO);case 30:s=t.sent;case 31:return t.abrupt("return",s.buffer);case 34:throw t.prev=34,t.t2=t.catch(12),new B(`Error blurring image. (${t.t2})`);case 37:case"end":return t.stop()}}),t,null,[[3,9],[12,34]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function me(t,e,r){return e=l(e),u(t,ge()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function ge(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ge=function(){return!!t})()}const be=function(t){function n(){var t;return r(this,n),(t=me(this,n)).name="Contain Image",t.module="Image",t.description="Scales an image to the specified width and height, maintaining the aspect ratio. The image may be letterboxed.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Width",type:"number",value:100,min:1},{name:"Height",type:"number",value:100,min:1},{name:"Horizontal align",type:"option",value:["Left","Center","Right"],defaultIndex:1},{name:"Vertical align",type:"option",value:["Top","Middle","Bottom"],defaultIndex:1},{name:"Resizing algorithm",type:"option",value:["Nearest Neighbour","Bilinear","Bicubic","Hermite","Bezier"],defaultIndex:1},{name:"Opaque background",type:"boolean",value:!0}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c,h,f,p,m;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,6),i=n[0],a=n[1],o=n[2],s=n[3],u=n[4],l=n[5],c={"Nearest Neighbour":ie().RESIZE_NEAREST_NEIGHBOR,Bilinear:ie().RESIZE_BILINEAR,Bicubic:ie().RESIZE_BICUBIC,Hermite:ie().RESIZE_HERMITE,Bezier:ie().RESIZE_BEZIER},h={Left:ie().HORIZONTAL_ALIGN_LEFT,Center:ie().HORIZONTAL_ALIGN_CENTER,Right:ie().HORIZONTAL_ALIGN_RIGHT,Top:ie().VERTICAL_ALIGN_TOP,Middle:ie().VERTICAL_ALIGN_MIDDLE,Bottom:ie().VERTICAL_ALIGN_BOTTOM},Ct(e)){t.next=5;break}throw new B("Invalid file type.");case 5:return t.prev=5,t.next=8,ie().read(e);case 8:f=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new B(`Error loading image. (${t.t0})`);case 14:if(t.prev=14,L()&&self.sendStatusMessage("Containing image..."),f.contain(i,a,h[o]|h[s],c[u]),!l){t.next=23;break}return t.next=20,ie().read(i,a,255);case 20:(p=t.sent).blit(f,0,0),f=p;case 23:if("image/gif"!==f.getMIME()){t.next=29;break}return t.next=26,f.getBufferAsync(ie().MIME_PNG);case 26:m=t.sent,t.next=32;break;case 29:return t.next=31,f.getBufferAsync(ie().AUTO);case 31:m=t.sent;case 32:return t.abrupt("return",m.buffer);case 35:throw t.prev=35,t.t1=t.catch(14),new B(`Error containing image. (${t.t1})`);case 38:case"end":return t.stop()}}),t,null,[[5,11],[14,35]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function ve(t,e,r){return e=l(e),u(t,ye()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function ye(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ye=function(){return!!t})()}const we=function(t){function n(){var t;return r(this,n),(t=ve(this,n)).name="Convert Image Format",t.module="Image",t.description="Converts an image between different formats. Supported formats:<br><ul><li>Joint Photographic Experts Group (JPEG)</li><li>Portable Network Graphics (PNG)</li><li>Bitmap (BMP)</li><li>Tagged Image File Format (TIFF)</li></ul><br>Note: GIF files are supported for input, but cannot be outputted.",t.infoURL="https://wikipedia.org/wiki/Image_file_formats",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Output Format",type:"option",value:["JPEG","PNG","BMP","TIFF"]},{name:"JPEG Quality",type:"number",value:80,min:1,max:100},{name:"PNG Filter Type",type:"option",value:["Auto","None","Sub","Up","Average","Paeth"]},{name:"PNG Deflate Level",type:"number",value:9,min:0,max:9}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c,h,f;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,4),i=n[0],a=n[1],o=n[2],s=n[3],u={JPEG:ie().MIME_JPEG,PNG:ie().MIME_PNG,BMP:ie().MIME_BMP,TIFF:ie().MIME_TIFF},l={Auto:ie().PNG_FILTER_AUTO,None:ie().PNG_FILTER_NONE,Sub:ie().PNG_FILTER_SUB,Up:ie().PNG_FILTER_UP,Average:ie().PNG_FILTER_AVERAGE,Paeth:ie().PNG_FILTER_PATH},c=u[i],Ct(e)){t.next=6;break}throw new B("Invalid file format.");case 6:return t.prev=6,t.next=9,ie().read(e);case 9:h=t.sent,t.next=15;break;case 12:throw t.prev=12,t.t0=t.catch(6),new B(`Error opening image file. (${t.t0})`);case 15:t.prev=15,t.t1=i,t.next="JPEG"===t.t1?19:"PNG"===t.t1?21:24;break;case 19:return h.quality(a),t.abrupt("break",24);case 21:return h.filterType(l[o]),h.deflateLevel(s),t.abrupt("break",24);case 24:return t.next=26,h.getBufferAsync(c);case 26:return f=t.sent,t.abrupt("return",f.buffer);case 30:throw t.prev=30,t.t2=t.catch(15),new B(`Error converting image format. (${t.t2})`);case 33:case"end":return t.stop()}}),t,null,[[6,12],[15,30]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function _e(t,e,r){return e=l(e),u(t,ke()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function ke(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ke=function(){return!!t})()}const Be=function(t){function n(){var t;return r(this,n),(t=_e(this,n)).name="Cover Image",t.module="Image",t.description="Scales the image to the given width and height, keeping the aspect ratio. The image may be clipped.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Width",type:"number",value:100,min:1},{name:"Height",type:"number",value:100,min:1},{name:"Horizontal align",type:"option",value:["Left","Center","Right"],defaultIndex:1},{name:"Vertical align",type:"option",value:["Top","Middle","Bottom"],defaultIndex:1},{name:"Resizing algorithm",type:"option",value:["Nearest Neighbour","Bilinear","Bicubic","Hermite","Bezier"],defaultIndex:1}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c,h,f;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,5),i=n[0],a=n[1],o=n[2],s=n[3],u=n[4],l={"Nearest Neighbour":ie().RESIZE_NEAREST_NEIGHBOR,Bilinear:ie().RESIZE_BILINEAR,Bicubic:ie().RESIZE_BICUBIC,Hermite:ie().RESIZE_HERMITE,Bezier:ie().RESIZE_BEZIER},c={Left:ie().HORIZONTAL_ALIGN_LEFT,Center:ie().HORIZONTAL_ALIGN_CENTER,Right:ie().HORIZONTAL_ALIGN_RIGHT,Top:ie().VERTICAL_ALIGN_TOP,Middle:ie().VERTICAL_ALIGN_MIDDLE,Bottom:ie().VERTICAL_ALIGN_BOTTOM},Ct(e)){t.next=5;break}throw new B("Invalid file type.");case 5:return t.prev=5,t.next=8,ie().read(e);case 8:h=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new B(`Error loading image. (${t.t0})`);case 14:if(t.prev=14,L()&&self.sendStatusMessage("Covering image..."),h.cover(i,a,c[o]|c[s],l[u]),"image/gif"!==h.getMIME()){t.next=23;break}return t.next=20,h.getBufferAsync(ie().MIME_PNG);case 20:f=t.sent,t.next=26;break;case 23:return t.next=25,h.getBufferAsync(ie().AUTO);case 25:f=t.sent;case 26:return t.abrupt("return",f.buffer);case 29:throw t.prev=29,t.t1=t.catch(14),new B(`Error covering image. (${t.t1})`);case 32:case"end":return t.stop()}}),t,null,[[5,11],[14,29]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function xe(t,e,r){return e=l(e),u(t,Ee()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Ee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ee=function(){return!!t})()}const Ce=function(t){function n(){var t;return r(this,n),(t=xe(this,n)).name="Crop Image",t.module="Image",t.description="Crops an image to the specified region, or automatically crops edges.<br><br><b><u>Autocrop</u></b><br>Automatically crops same-colour borders from the image.<br><br><u>Autocrop tolerance</u><br>A percentage value for the tolerance of colour difference between pixels.<br><br><u>Only autocrop frames</u><br>Only crop real frames (all sides must have the same border)<br><br><u>Symmetric autocrop</u><br>Force autocrop to be symmetric (top/bottom and left/right are cropped by the same amount)<br><br><u>Autocrop keep border</u><br>The number of pixels of border to leave around the image.",t.infoURL="https://wikipedia.org/wiki/Cropping_(image)",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"X Position",type:"number",value:0,min:0},{name:"Y Position",type:"number",value:0,min:0},{name:"Width",type:"number",value:10,min:1},{name:"Height",type:"number",value:10,min:1},{name:"Autocrop",type:"boolean",value:!1},{name:"Autocrop tolerance (%)",type:"number",value:.02,min:0,max:100,step:.01},{name:"Only autocrop frames",type:"boolean",value:!0},{name:"Symmetric autocrop",type:"boolean",value:!1},{name:"Autocrop keep border (px)",type:"number",value:0,min:0}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c,h,f,p,m;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,9),i=n[0],a=n[1],o=n[2],s=n[3],u=n[4],l=n[5],c=n[6],h=n[7],f=n[8],Ct(e)){t.next=3;break}throw new B("Invalid file type.");case 3:return t.prev=3,t.next=6,ie().read(e);case 6:p=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new B(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Cropping image..."),u?p.autocrop({tolerance:l/100,cropOnlyFrames:c,cropSymmetric:h,leaveBorder:f}):p.crop(i,a,o,s),"image/gif"!==p.getMIME()){t.next=21;break}return t.next=18,p.getBufferAsync(ie().MIME_PNG);case 18:m=t.sent,t.next=24;break;case 21:return t.next=23,p.getBufferAsync(ie().AUTO);case 23:m=t.sent;case 24:return t.abrupt("return",m.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new B(`Error cropping image. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function Ae(t,e,r){return e=l(e),u(t,Ie()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Ie(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ie=function(){return!!t})()}const Me=function(t){function n(){var t;return r(this,n),(t=Ae(this,n)).name="Dither Image",t.module="Image",t.description="Apply a dither effect to an image.",t.infoURL="https://wikipedia.org/wiki/Dither",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ct(e)){t.next=2;break}throw new B("Invalid file type.");case 2:return t.prev=2,t.next=5,ie().read(e);case 5:n=t.sent,t.next=11;break;case 8:throw t.prev=8,t.t0=t.catch(2),new B(`Error loading image. (${t.t0})`);case 11:if(t.prev=11,L()&&self.sendStatusMessage("Applying dither to image..."),n.dither565(),"image/gif"!==n.getMIME()){t.next=20;break}return t.next=17,n.getBufferAsync(ie().MIME_PNG);case 17:i=t.sent,t.next=23;break;case 20:return t.next=22,n.getBufferAsync(ie().AUTO);case 22:i=t.sent;case 23:return t.abrupt("return",i.buffer);case 26:throw t.prev=26,t.t1=t.catch(11),new B(`Error applying dither to image. (${t.t1})`);case 29:case"end":return t.stop()}}),t,null,[[2,8],[11,26]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);var Pe=__webpack_require__(4440),Se=__webpack_require__.n(Pe);function Te(t,e,r){return e=l(e),u(t,Re()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Re=function(){return!!t})()}const Le=function(t){function e(){var t;return r(this,e),(t=Te(this,e)).name="Extract EXIF",t.module="Image",t.description=["Extracts EXIF data from an image.","<br><br>","EXIF data is metadata embedded in images (JPEG, JPG, TIFF) and audio files.","<br><br>","EXIF data from photos usually contains information about the image file itself as well as the device used to create it."].join("\n"),t.infoURL="https://wikipedia.org/wiki/Exif",t.inputType="ArrayBuffer",t.outputType="string",t.args=[],t}return h(e,t),o(e,[{key:"run",value:function(t,e){try{var r=Se().create(t).parse(),n=[];for(var i in r.tags){var a=r.tags[i];n.push(`${i}: ${a}`)}var o=n.length;return n.unshift(`Found ${o} tags.\n`),n.join("\n")}catch(t){throw new B(`Could not extract EXIF data from image: ${t}`)}}}]),e}(re);function Oe(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Fe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fe(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ne(t,e,r){return e=l(e),u(t,Ue()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ue=function(){return!!t})()}var De=function(t){function n(){var t;return r(this,n),(t=Ne(this,n)).name="Extract LSB",t.module="Image",t.description="Extracts the Least Significant Bit data from each pixel in an image. This is a common way to hide data in Steganography.",t.infoURL="https://wikipedia.org/wiki/Bit_numbering#Least_significant_bit_in_digital_steganography",t.inputType="ArrayBuffer",t.outputType="byteArray",t.args=[{name:"Colour Pattern #1",type:"option",value:ze},{name:"Colour Pattern #2",type:"option",value:[""].concat(ze)},{name:"Colour Pattern #3",type:"option",value:[""].concat(ze)},{name:"Colour Pattern #4",type:"option",value:[""].concat(ze)},{name:"Pixel Order",type:"option",value:["Row","Column"]},{name:"Bit",type:"number",value:0}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c,h,f,p,m,g,b,v,y,w,_,k;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ct(e)){t.next=2;break}throw new B("Please enter a valid image file.");case 2:return n=7-r.pop(),i=r.pop(),a=r.filter((function(t){return""!==t})).map((function(t){return ze.indexOf(t)})),t.next=7,ie().read(e);case 7:if(o=t.sent,s=o.bitmap.width,u=o.bitmap.height,l=o.bitmap.data,!(n<0||n>7)){t.next=13;break}throw new B("Error: Bit argument must be between 0 and 7");case 13:if(h="","Row"===i)for(c=0;c<l.length;c+=4){f=Oe(a);try{for(f.s();!(p=f.n()).done;)m=p.value,h+=O.bin(l[c+m])[n]}catch(t){f.e(t)}finally{f.f()}}else for(b=4*s,v=0;v<s;v++)for(y=0;y<u;y++){g=y*b,w=Oe(a);try{for(w.s();!(_=w.n()).done;)k=_.value,c=g+(v+4*k),h+=O.bin(l[c])[n]}catch(t){w.e(t)}finally{w.f()}}return t.abrupt("return",I(h));case 16:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})}]),n}(re),ze=["R","G","B","A"];const Ge=De;var je=[{name:"Comma",value:","},{name:"Space",value:" "},{name:"CRLF",value:"\\r\\n"},{name:"Line Feed",value:"\n"}];function He(t,e,r){return e=l(e),u(t,We()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function We(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(We=function(){return!!t})()}const qe=function(t){function n(){var t;return r(this,n),(t=He(this,n)).name="Extract RGBA",t.module="Image",t.description="Extracts each pixel's RGBA value in an image. These are sometimes used in Steganography to hide text or data.",t.infoURL="https://wikipedia.org/wiki/RGBA_color_space",t.inputType="ArrayBuffer",t.outputType="string",t.args=[{name:"Delimiter",type:"editableOption",value:je},{name:"Include Alpha",type:"boolean",value:!0}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ct(e)){t.next=2;break}throw new B("Please enter a valid image file.");case 2:return n=r[0],i=r[1],t.next=6,ie().read(e);case 6:return a=t.sent,o=a.bitmap.data,o=i?o:o.filter((function(t,e){return e%4!=3})),t.abrupt("return",o.join(n));case 10:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})}]),n}(re);function Ze(t,e,r){return e=l(e),u(t,$e()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function $e(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($e=function(){return!!t})()}const Ve=function(t){function n(){var t;return r(this,n),(t=Ze(this,n)).name="Flip Image",t.module="Image",t.description="Flips an image along its X or Y axis.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Axis",type:"option",value:["Horizontal","Vertical"]}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,1),i=n[0],Ct(e)){t.next=3;break}throw new B("Invalid input file type.");case 3:return t.prev=3,t.next=6,ie().read(e);case 6:a=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new B(`Error loading image. (${t.t0})`);case 12:t.prev=12,L()&&self.sendStatusMessage("Flipping image..."),t.t1=i,t.next="Horizontal"===t.t1?17:"Vertical"===t.t1?19:21;break;case 17:return a.flip(!0,!1),t.abrupt("break",21);case 19:return a.flip(!1,!0),t.abrupt("break",21);case 21:if("image/gif"!==a.getMIME()){t.next=27;break}return t.next=24,a.getBufferAsync(ie().MIME_PNG);case 24:o=t.sent,t.next=30;break;case 27:return t.next=29,a.getBufferAsync(ie().AUTO);case 29:o=t.sent;case 30:return t.abrupt("return",o.buffer);case 33:throw t.prev=33,t.t2=t.catch(12),new B(`Error flipping image. (${t.t2})`);case 36:case"end":return t.stop()}}),t,null,[[3,9],[12,33]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function Ye(t,e,r){return e=l(e),u(t,Xe()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Xe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xe=function(){return!!t})()}var Je=function(t){function n(){var t;return r(this,n),(t=Ye(this,n)).name="Generate Image",t.module="Image",t.description="Generates an image using the input as pixel values.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Mode",type:"option",value:["Greyscale","RG","RGB","RGBA","Bits"]},{name:"Pixel Scale Factor",type:"number",value:8},{name:"Pixels per row",type:"number",value:64}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c,h,f,p,m,g,b,v,y,w,_,k,x,E,C,A,I,M;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,3),i=n[0],a=n[1],o=n[2],e=new Uint8Array(e),!(a<=0)){t.next=4;break}throw new B("Pixel Scale Factor needs to be > 0");case 4:if(!(o<=0)){t.next=6;break}throw new B("Pixels per Row needs to be > 0");case 6:if(!((s={Greyscale:1,RG:2,RGB:3,RGBA:4,Bits:1/8}[i])>0&&e.length%s!=0)){t.next=10;break}throw new B(`Number of bytes is not a divisor of ${s}`);case 10:return u=Math.ceil(e.length/s/o),t.next=13,new(ie())(o,u,(function(t,e){}));case 13:if(l=t.sent,L()&&self.sendStatusMessage("Generating image from data..."),"Bits"!==i){t.next=20;break}for(c=0,h=0;h<e.length;h++)for(f=O.bin(e[h]),p=0;p<8;p++,c++)m=c%o,g=Math.floor(c/o),b="0"===f[p]?255:0,v=ie().rgbaToInt(b,b,b,255),l.setPixelColor(v,m,g);t.next=57;break;case 20:y=0;case 21:if(!(y<e.length)){t.next=57;break}_=(w=y/s)%o,k=Math.floor(w/o),x=0,E=0,C=0,A=255,t.t0=i,t.next="Greyscale"===t.t0?32:"RG"===t.t0?34:"RGB"===t.t0?37:"RGBA"===t.t0?41:46;break;case 32:return x=E=C=e[y++],t.abrupt("break",47);case 34:return x=e[y++],E=e[y++],t.abrupt("break",47);case 37:return x=e[y++],E=e[y++],C=e[y++],t.abrupt("break",47);case 41:return x=e[y++],E=e[y++],C=e[y++],A=e[y++],t.abrupt("break",47);case 46:throw new B(`Unsupported Mode: (${i})`);case 47:t.prev=47,I=ie().rgbaToInt(x,E,C,A),l.setPixelColor(I,_,k),t.next=55;break;case 52:throw t.prev=52,t.t1=t.catch(47),new B(`Error while generating image from pixel values. (${t.t1})`);case 55:t.next=21;break;case 57:return 1!==a&&(L()&&self.sendStatusMessage("Scaling image..."),l.scaleToFit(o*a,u*a,ie().RESIZE_NEAREST_NEIGHBOR)),t.prev=58,t.next=61,l.getBufferAsync(ie().MIME_PNG);case 61:return M=t.sent,t.abrupt("return",M.buffer);case 65:throw t.prev=65,t.t2=t.catch(58),new B(`Error generating image. (${t.t2})`);case 68:case"end":return t.stop()}}),t,null,[[47,52],[58,65]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);const Qe=Je;var Ke=__webpack_require__(7600),tr=__webpack_require__.n(Ke),er=__webpack_require__(7976),rr=__webpack_require__.n(er);function nr(t,e){return ir.apply(this,arguments)}function ir(){return(ir=e(d().mark((function t(e,r){var n,i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ie().read(e);case 3:n=t.sent,t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(0),new B(`Error opening image. (${t.t0})`);case 9:if(t.prev=9,!r){t.next=21;break}return n.rgba(!1),n.background(4294967295),n.normalize(),n.greyscale(),t.next=17,n.getBufferAsync(ie().MIME_JPEG);case 17:return n=t.sent,t.next=20,ie().read(n);case 20:n=t.sent;case 21:t.next=26;break;case 23:throw t.prev=23,t.t1=t.catch(9),new B(`Error normalising image. (${t.t1})`);case 26:if(!(i=tr()(n.bitmap.data,n.getWidth(),n.getHeight()))){t.next=31;break}return t.abrupt("return",i.data);case 31:throw new B("Could not read a QR code from the image.");case 32:case"end":return t.stop()}}),t,null,[[0,6],[9,23]])})))).apply(this,arguments)}function ar(t,e,r){return e=l(e),u(t,or()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function or(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(or=function(){return!!t})()}const sr=function(t){function e(){var t;return r(this,e),(t=ar(this,e)).name="Generate QR Code",t.module="Image",t.description="Generates a Quick Response (QR) code from the input text.<br><br>A QR code is a type of matrix barcode (or two-dimensional barcode) first designed in 1994 for the automotive industry in Japan. A barcode is a machine-readable optical label that contains information about the item to which it is attached.",t.infoURL="https://wikipedia.org/wiki/QR_code",t.inputType="string",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Image Format",type:"option",value:["PNG","SVG","EPS","PDF"]},{name:"Module size (px)",type:"number",value:5,min:1},{name:"Margin (num modules)",type:"number",value:4,min:0},{name:"Error correction",type:"option",value:["Low","Medium","Quartile","High"],defaultIndex:1}],t}return h(e,t),o(e,[{key:"run",value:function(t,e){var r=at(e,4);return function(t,e,r,n,i){var a;if(!["SVG","EPS","PDF","PNG"].includes(e.toUpperCase()))throw new B("Unsupported QR code format.");try{a=rr().imageSync(t,{type:e,size:r,margin:n,ec_level:i.charAt(0).toUpperCase()})}catch(t){throw new B(`Error generating QR code. (${t})`)}if(!a)throw new B("Error generating QR code.");switch(e){case"SVG":case"EPS":case"PDF":return O.strToArrayBuffer(a);case"PNG":return a.buffer;default:throw new B("Unsupported QR code format.")}}(t,r[0],r[1],r[2],r[3])}},{key:"present",value:function(t,e){if(!t.byteLength&&!t.length)return"";var r=new Uint8Array(t);if("PNG"===at(e,1)[0]){var n=Ct(r);if(!n)throw new B("Invalid file type.");return`<img src="data:${n};base64,${x(r)}">`}return O.arrayBufferToStr(t)}}]),e}(re);function ur(t,e,r){return e=l(e),u(t,lr()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function lr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lr=function(){return!!t})()}const cr=function(t){function n(){var t;return r(this,n),(t=ur(this,n)).name="Image Brightness / Contrast",t.module="Image",t.description="Adjust the brightness or contrast of an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Brightness",type:"number",value:0,min:-100,max:100},{name:"Contrast",type:"number",value:0,min:-100,max:100}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,2),i=n[0],a=n[1],Ct(e)){t.next=3;break}throw new B("Invalid file type.");case 3:return t.prev=3,t.next=6,ie().read(e);case 6:o=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new B(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,0!==i&&(L()&&self.sendStatusMessage("Changing image brightness..."),o.brightness(i/100)),0!==a&&(L()&&self.sendStatusMessage("Changing image contrast..."),o.contrast(a/100)),"image/gif"!==o.getMIME()){t.next=21;break}return t.next=18,o.getBufferAsync(ie().MIME_PNG);case 18:s=t.sent,t.next=24;break;case 21:return t.next=23,o.getBufferAsync(ie().AUTO);case 23:s=t.sent;case 24:return t.abrupt("return",s.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new B(`Error adjusting image brightness or contrast. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function hr(t,e,r){return e=l(e),u(t,fr()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function fr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fr=function(){return!!t})()}const dr=function(t){function n(){var t;return r(this,n),(t=hr(this,n)).name="Image Filter",t.module="Image",t.description="Applies a greyscale or sepia filter to an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Filter type",type:"option",value:["Greyscale","Sepia"]}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,1),i=n[0],Ct(e)){t.next=3;break}throw new B("Invalid file type.");case 3:return t.prev=3,t.next=6,ie().read(e);case 6:a=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new B(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Applying "+i.toLowerCase()+" filter to image..."),"Greyscale"===i?a.greyscale():a.sepia(),"image/gif"!==a.getMIME()){t.next=21;break}return t.next=18,a.getBufferAsync(ie().MIME_PNG);case 18:o=t.sent,t.next=24;break;case 21:return t.next=23,a.getBufferAsync(ie().AUTO);case 23:o=t.sent;case 24:return t.abrupt("return",o.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new B(`Error applying filter to image. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function pr(t,e,r){return e=l(e),u(t,mr()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function mr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mr=function(){return!!t})()}const gr=function(t){function n(){var t;return r(this,n),(t=pr(this,n)).name="Image Hue/Saturation/Lightness",t.module="Image",t.description="Adjusts the hue / saturation / lightness (HSL) values of an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Hue",type:"number",value:0,min:-360,max:360},{name:"Saturation",type:"number",value:0,min:-100,max:100},{name:"Lightness",type:"number",value:0,min:-100,max:100}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,3),i=n[0],a=n[1],o=n[2],Ct(e)){t.next=3;break}throw new B("Invalid file type.");case 3:return t.prev=3,t.next=6,ie().read(e);case 6:s=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new B(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,0!==i&&(L()&&self.sendStatusMessage("Changing image hue..."),s.colour([{apply:"hue",params:[i]}])),0!==a&&(L()&&self.sendStatusMessage("Changing image saturation..."),s.colour([{apply:"saturate",params:[a]}])),0!==o&&(L()&&self.sendStatusMessage("Changing image lightness..."),s.colour([{apply:"lighten",params:[o]}])),"image/gif"!==s.getMIME()){t.next=22;break}return t.next=19,s.getBufferAsync(ie().MIME_PNG);case 19:u=t.sent,t.next=25;break;case 22:return t.next=24,s.getBufferAsync(ie().AUTO);case 24:u=t.sent;case 25:return t.abrupt("return",u.buffer);case 28:throw t.prev=28,t.t1=t.catch(12),new B(`Error adjusting image hue / saturation / lightness. (${t.t1})`);case 31:case"end":return t.stop()}}),t,null,[[3,9],[12,28]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function br(t,e,r){return e=l(e),u(t,vr()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function vr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vr=function(){return!!t})()}const yr=function(t){function n(){var t;return r(this,n),(t=br(this,n)).name="Image Opacity",t.module="Image",t.description="Adjust the opacity of an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Opacity (%)",type:"number",value:100,min:0,max:100}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,1),i=n[0],Ct(e)){t.next=3;break}throw new B("Invalid file type.");case 3:return t.prev=3,t.next=6,ie().read(e);case 6:a=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new B(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Changing image opacity..."),a.opacity(i/100),"image/gif"!==a.getMIME()){t.next=21;break}return t.next=18,a.getBufferAsync(ie().MIME_PNG);case 18:o=t.sent,t.next=24;break;case 21:return t.next=23,a.getBufferAsync(ie().AUTO);case 23:o=t.sent;case 24:return t.abrupt("return",o.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new B(`Error changing image opacity. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function wr(t,e,r){return e=l(e),u(t,_r()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function _r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_r=function(){return!!t})()}const kr=function(t){function n(){var t;return r(this,n),(t=wr(this,n)).name="Invert Image",t.module="Image",t.description="Invert the colours of an image.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ct(e)){t.next=2;break}throw new B("Invalid input file format.");case 2:return t.prev=2,t.next=5,ie().read(e);case 5:n=t.sent,t.next=11;break;case 8:throw t.prev=8,t.t0=t.catch(2),new B(`Error loading image. (${t.t0})`);case 11:if(t.prev=11,L()&&self.sendStatusMessage("Inverting image..."),n.invert(),"image/gif"!==n.getMIME()){t.next=20;break}return t.next=17,n.getBufferAsync(ie().MIME_PNG);case 17:i=t.sent,t.next=23;break;case 20:return t.next=22,n.getBufferAsync(ie().AUTO);case 22:i=t.sent;case 23:return t.abrupt("return",i.buffer);case 26:throw t.prev=26,t.t1=t.catch(11),new B(`Error inverting image. (${t.t1})`);case 29:case"end":return t.stop()}}),t,null,[[2,8],[11,26]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function Br(t,e,r){return e=l(e),u(t,xr()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function xr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xr=function(){return!!t})()}const Er=function(t){function n(){var t;return r(this,n),(t=Br(this,n)).name="Normalise Image",t.module="Image",t.description="Normalise the image colours.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ct(e)){t.next=2;break}throw new B("Invalid file type.");case 2:return t.prev=2,t.next=5,ie().read(e);case 5:n=t.sent,t.next=11;break;case 8:throw t.prev=8,t.t0=t.catch(2),new B(`Error opening image file. (${t.t0})`);case 11:if(t.prev=11,n.normalize(),"image/gif"!==n.getMIME()){t.next=19;break}return t.next=16,n.getBufferAsync(ie().MIME_PNG);case 16:i=t.sent,t.next=22;break;case 19:return t.next=21,n.getBufferAsync(ie().AUTO);case 21:i=t.sent;case 22:return t.abrupt("return",i.buffer);case 25:throw t.prev=25,t.t1=t.catch(11),new B(`Error normalising image. (${t.t1})`);case 28:case"end":return t.stop()}}),t,null,[[2,8],[11,25]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function Cr(t,e,r){return e=l(e),u(t,Ar()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Ar(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ar=function(){return!!t})()}const Ir=function(t){function n(){var t;return r(this,n),(t=Cr(this,n)).name="Parse QR Code",t.module="Image",t.description="Reads an image file and attempts to detect and read a Quick Response (QR) code from the image.<br><br><u>Normalise Image</u><br>Attempts to normalise the image before parsing it to improve detection of a QR code.",t.infoURL="https://wikipedia.org/wiki/QR_code",t.inputType="ArrayBuffer",t.outputType="string",t.args=[{name:"Normalise image",type:"boolean",value:!1}],t.checks=[{pattern:"^(?:\\xff\\xd8\\xff|\\x89\\x50\\x4e\\x47|\\x47\\x49\\x46|.{8}\\x57\\x45\\x42\\x50|\\x42\\x4d)",flags:"",args:[!1],useful:!0}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,1),i=n[0],Ct(e)){t.next=3;break}throw new B("Invalid file type.");case 3:return t.next=5,nr(e,i);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})}]),n}(re);function Mr(){return Mr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},Mr.apply(this,arguments)}const Pr=function(){function t(e){r(this,t),this.unitSize=4,this.unitOrder=0,this.blockSize=16,this.blockSizeInBytes=this.blockSize*this.unitSize,this.options=e||{},this.reset()}return o(t,[{key:"reset",value:function(){this.state={},this.state.message="",this.state.length=0}},{key:"getState",value:function(){return JSON.parse(JSON.stringify(this.state))}},{key:"setState",value:function(t){this.state=t}},{key:"update",value:function(t){this.state.message+=t,this.state.length+=t.length,this.process()}},{key:"process",value:function(){}},{key:"finalize",value:function(){return""}},{key:"getStateHash",value:function(t){return""}},{key:"addPaddingPKCS7",value:function(t){this.state.message+=new Array(t+1).join(String.fromCharCode(t))}},{key:"addPaddingISO7816",value:function(t){this.state.message+="€"+new Array(t).join("\0")}},{key:"addPaddingZero",value:function(t){this.state.message+=new Array(t+1).join("\0")}}]),t}();function Sr(t,e,r){return e=l(e),u(t,Tr()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Tr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Tr=function(){return!!t})()}var Rr=function(t){function e(t){var n;return r(this,e),(n=Sr(this,e,[t])).blockUnits=[],n}return h(e,t),o(e,[{key:"process",value:function(){for(;this.state.message.length>=this.blockSizeInBytes;){this.blockUnits=[];for(var t=0;t<this.blockSizeInBytes;t+=4)this.blockUnits.push(this.state.message.charCodeAt(t)|this.state.message.charCodeAt(t+1)<<8|this.state.message.charCodeAt(t+2)<<16|this.state.message.charCodeAt(t+3)<<24);this.state.message=this.state.message.substr(this.blockSizeInBytes),this.processBlock(this.blockUnits)}}},{key:"processBlock",value:function(t){}},{key:"getStateHash",value:function(t){t=t||this.state.hash.length;for(var e="",r=0;r<t;r++)e+=String.fromCharCode(255&this.state.hash[r])+String.fromCharCode(this.state.hash[r]>>8&255)+String.fromCharCode(this.state.hash[r]>>16&255)+String.fromCharCode(this.state.hash[r]>>24&255);return e}},{key:"addLengthBits",value:function(){this.state.message+=String.fromCharCode(this.state.length<<3&255)+String.fromCharCode(this.state.length>>5&255)+String.fromCharCode(this.state.length>>13&255)+String.fromCharCode(this.state.length>>21&255)+String.fromCharCode(this.state.length>>29&255)+"\0\0\0"}}]),e}(Pr);const Lr=Rr;function Or(t,e){return t<<e|t>>>32-e|0}function Fr(t,e){return t>>>e|t<<32-e|0}function Nr(t,e,r){return 32===r?e:r>32?Nr(e,t,r-32):4294967295&(t>>>r|e<<32-r)}function Ur(t,e,r){return 32===r?t:r>32?Ur(e,t,r-32):4294967295&(e>>>r|t<<32-r)}function Dr(t,e,r){return e=l(e),u(t,zr()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function zr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zr=function(){return!!t})()}var Gr=[0,1518500249,1859775393,2400959708],jr=[5,11,7,15,6,13,8,14,7,12,9,11,8,15,6,12,9,14,5,13],Hr=[10,17,25,30],Wr=[18,0,1,2,3,19,4,5,6,7,16,8,9,10,11,17,12,13,14,15,22,3,6,9,12,23,15,2,5,8,20,11,14,1,4,21,7,10,13,0,26,12,5,14,7,27,0,9,2,11,24,4,13,6,15,25,8,1,10,3,30,7,2,13,8,31,3,14,9,4,28,15,10,5,0,29,11,6,1,12],qr=function(t){function e(t){var n;return r(this,e),(n=Dr(this,e,[t])).options.rounds=n.options.rounds||80,n.W=new Array(32),n}return h(e,t),o(e,[{key:"reset",value:function(){Mr(l(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,4023233417,2562383102,271733878,3285377520]}},{key:"processBlock",value:function(t){for(var e=0|this.state.hash[0],r=0|this.state.hash[1],n=0|this.state.hash[2],i=0|this.state.hash[3],a=0|this.state.hash[4],o=0;o<16;o++)this.W[o]=0|t[o];this.W[16]=this.W[0]^this.W[1]^this.W[2]^this.W[3]|0,this.W[17]=this.W[4]^this.W[5]^this.W[6]^this.W[7]|0,this.W[18]=this.W[8]^this.W[9]^this.W[10]^this.W[11]|0,this.W[19]=this.W[12]^this.W[13]^this.W[14]^this.W[15]|0,this.W[20]=this.W[3]^this.W[6]^this.W[9]^this.W[12]|0,this.W[21]=this.W[2]^this.W[5]^this.W[8]^this.W[15]|0,this.W[22]=this.W[1]^this.W[4]^this.W[11]^this.W[14]|0,this.W[23]=this.W[0]^this.W[7]^this.W[10]^this.W[13]|0,this.W[24]=this.W[5]^this.W[7]^this.W[12]^this.W[14]|0,this.W[25]=this.W[0]^this.W[2]^this.W[9]^this.W[11]|0,this.W[26]=this.W[4]^this.W[6]^this.W[13]^this.W[15]|0,this.W[27]=this.W[1]^this.W[3]^this.W[8]^this.W[10]|0,this.W[28]=this.W[2]^this.W[7]^this.W[8]^this.W[13]|0,this.W[29]=this.W[3]^this.W[4]^this.W[9]^this.W[14]|0,this.W[30]=this.W[0]^this.W[5]^this.W[10]^this.W[15]|0,this.W[31]=this.W[1]^this.W[6]^this.W[11]^this.W[12]|0;for(var s=0;s<this.options.rounds;s++){var u=Or(e,jr[s%20])+a+this.W[Wr[s]]+Gr[s/20>>0]|0;u=s<20?u+(r&n|~r&i)|0:s<40?u+(r^n^i)|0:s<60?u+(n^(r|~i))|0:u+(r^n^i)|0,a=i,i=n,n=0|Or(r,Hr[s/20>>0]),r=e,e=u}this.state.hash[0]=this.state.hash[0]+e|0,this.state.hash[1]=this.state.hash[1]+r|0,this.state.hash[2]=this.state.hash[2]+n|0,this.state.hash[3]=this.state.hash[3]+i|0,this.state.hash[4]=this.state.hash[4]+a|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}]),e}(Lr);const Zr=qr;function $r(t,e,r){return e=l(e),u(t,Vr()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Vr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vr=function(){return!!t})()}var Yr=function(t){function e(t){var n;return r(this,e),(n=$r(this,e,[t])).unitSize=1,n.blockSizeInBytes=n.blockSize*n.unitSize,n.blockUnits=[],n}return h(e,t),o(e,[{key:"process",value:function(){for(;this.state.message.length>=this.blockSizeInBytes;){this.blockUnits=new Array(this.blockSizeInBytes);for(var t=0;t<this.blockSizeInBytes;t++)this.blockUnits[t]=0|this.state.message.charCodeAt(t);this.state.message=this.state.message.substr(this.blockSizeInBytes),this.processBlock(this.blockUnits)}}},{key:"processBlock",value:function(t){}},{key:"getStateHash",value:function(t){t=t||this.state.hash.length;for(var e="",r=0;r<t;r++)e+=String.fromCharCode(255&this.state.hash[r]);return e}}]),e}(Pr);function Xr(t,e,r){return e=l(e),u(t,Jr()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Jr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jr=function(){return!!t})()}var Qr=[41,46,67,201,162,216,124,1,61,54,84,161,236,240,6,19,98,167,5,243,192,199,115,140,152,147,43,217,188,76,130,202,30,155,87,60,253,212,224,22,103,66,111,24,138,23,229,18,190,78,196,214,218,158,222,73,160,251,245,142,187,47,238,122,169,104,121,145,21,178,7,63,148,194,16,137,11,34,95,33,128,127,93,154,90,144,50,39,53,62,204,231,191,247,151,3,255,25,48,179,72,165,181,209,215,94,146,42,172,86,170,198,79,184,56,210,150,164,125,182,118,252,107,226,156,116,4,241,69,157,112,89,100,113,135,32,134,91,207,101,230,45,168,2,27,96,37,173,174,176,185,246,28,70,97,105,52,64,126,15,85,71,163,35,221,81,175,58,195,92,249,206,186,197,234,38,44,83,13,110,133,40,132,9,211,223,205,244,65,129,77,82,106,220,55,200,108,193,171,250,36,225,123,8,12,189,177,74,120,136,149,139,227,99,232,109,233,203,213,254,59,0,29,57,242,239,183,14,102,88,208,228,166,119,114,248,235,117,75,10,49,68,80,180,143,237,31,26,219,153,141,51,159,17,131,20],Kr=function(t){function e(t){var n;return r(this,e),(n=Xr(this,e,[t])).options.rounds=n.options.rounds||18,n}return h(e,t),o(e,[{key:"reset",value:function(){Mr(l(e.prototype),"reset",this).call(this),this.state.hash=new Array(48),this.state.checksum=new Array(16)}},{key:"processBlock",value:function(t){for(var e=0;e<16;e++)this.state.hash[16+e]=0|t[e],this.state.hash[32+e]=t[e]^this.state.hash[e];for(var r=0,n=0;n<this.options.rounds;n++){for(var i=0;i<48;i++)r=this.state.hash[i]^=Qr[r];r=r+n&255}r=255&this.state.checksum[15];for(var a=0;a<16;a++)r=this.state.checksum[a]^=Qr[t[a]^r]}},{key:"finalize",value:function(){this.addPaddingPKCS7(16-(15&this.state.message.length)|0),this.process();for(var t=0;t<16;t++)this.state.message+=String.fromCharCode(this.state.checksum[t]);return this.process(),this.getStateHash(16)}}]),e}(Yr);const tn=Kr;function en(t,e,r){return e=l(e),u(t,rn()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function rn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(rn=function(){return!!t})()}var nn=[[3,7,11,19],[3,5,9,13],[3,9,11,15]],an=1518500249,on=1859775393;const sn=function(t){function e(){return r(this,e),en(this,e,arguments)}return h(e,t),o(e,[{key:"reset",value:function(){Mr(l(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,-271733879,-1732584194,271733878]}},{key:"processBlock",value:function(t){var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3];r=e.CC(e.FF,0,r,n,i,a,t[0],nn[0][0]),a=e.CC(e.FF,0,a,r,n,i,t[1],nn[0][1]),i=e.CC(e.FF,0,i,a,r,n,t[2],nn[0][2]),n=e.CC(e.FF,0,n,i,a,r,t[3],nn[0][3]),r=e.CC(e.FF,0,r,n,i,a,t[4],nn[0][0]),a=e.CC(e.FF,0,a,r,n,i,t[5],nn[0][1]),i=e.CC(e.FF,0,i,a,r,n,t[6],nn[0][2]),n=e.CC(e.FF,0,n,i,a,r,t[7],nn[0][3]),r=e.CC(e.FF,0,r,n,i,a,t[8],nn[0][0]),a=e.CC(e.FF,0,a,r,n,i,t[9],nn[0][1]),i=e.CC(e.FF,0,i,a,r,n,t[10],nn[0][2]),n=e.CC(e.FF,0,n,i,a,r,t[11],nn[0][3]),r=e.CC(e.FF,0,r,n,i,a,t[12],nn[0][0]),a=e.CC(e.FF,0,a,r,n,i,t[13],nn[0][1]),i=e.CC(e.FF,0,i,a,r,n,t[14],nn[0][2]),n=e.CC(e.FF,0,n,i,a,r,t[15],nn[0][3]),r=e.CC(e.GG,an,r,n,i,a,t[0],nn[1][0]),a=e.CC(e.GG,an,a,r,n,i,t[4],nn[1][1]),i=e.CC(e.GG,an,i,a,r,n,t[8],nn[1][2]),n=e.CC(e.GG,an,n,i,a,r,t[12],nn[1][3]),r=e.CC(e.GG,an,r,n,i,a,t[1],nn[1][0]),a=e.CC(e.GG,an,a,r,n,i,t[5],nn[1][1]),i=e.CC(e.GG,an,i,a,r,n,t[9],nn[1][2]),n=e.CC(e.GG,an,n,i,a,r,t[13],nn[1][3]),r=e.CC(e.GG,an,r,n,i,a,t[2],nn[1][0]),a=e.CC(e.GG,an,a,r,n,i,t[6],nn[1][1]),i=e.CC(e.GG,an,i,a,r,n,t[10],nn[1][2]),n=e.CC(e.GG,an,n,i,a,r,t[14],nn[1][3]),r=e.CC(e.GG,an,r,n,i,a,t[3],nn[1][0]),a=e.CC(e.GG,an,a,r,n,i,t[7],nn[1][1]),i=e.CC(e.GG,an,i,a,r,n,t[11],nn[1][2]),n=e.CC(e.GG,an,n,i,a,r,t[15],nn[1][3]),r=e.CC(e.HH,on,r,n,i,a,t[0],nn[2][0]),a=e.CC(e.HH,on,a,r,n,i,t[8],nn[2][1]),i=e.CC(e.HH,on,i,a,r,n,t[4],nn[2][2]),n=e.CC(e.HH,on,n,i,a,r,t[12],nn[2][3]),r=e.CC(e.HH,on,r,n,i,a,t[2],nn[2][0]),a=e.CC(e.HH,on,a,r,n,i,t[10],nn[2][1]),i=e.CC(e.HH,on,i,a,r,n,t[6],nn[2][2]),n=e.CC(e.HH,on,n,i,a,r,t[14],nn[2][3]),r=e.CC(e.HH,on,r,n,i,a,t[1],nn[2][0]),a=e.CC(e.HH,on,a,r,n,i,t[9],nn[2][1]),i=e.CC(e.HH,on,i,a,r,n,t[5],nn[2][2]),n=e.CC(e.HH,on,n,i,a,r,t[13],nn[2][3]),r=e.CC(e.HH,on,r,n,i,a,t[3],nn[2][0]),a=e.CC(e.HH,on,a,r,n,i,t[11],nn[2][1]),i=e.CC(e.HH,on,i,a,r,n,t[7],nn[2][2]),n=e.CC(e.HH,on,n,i,a,r,t[15],nn[2][3]),this.state.hash=[this.state.hash[0]+r|0,this.state.hash[1]+n|0,this.state.hash[2]+i|0,this.state.hash[3]+a|0]}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}],[{key:"FF",value:function(t,e,r){return t&e|~t&r}},{key:"GG",value:function(t,e,r){return t&e|t&r|e&r}},{key:"HH",value:function(t,e,r){return t^e^r}},{key:"CC",value:function(t,e,r,n,i,a,o,s){return 0|Or(r+t(n,i,a)+o+e,s)}}]),e}(Lr);function un(t,e,r){return e=l(e),u(t,ln()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function ln(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ln=function(){return!!t})()}for(var cn=[[7,12,17,22],[5,9,14,20],[4,11,16,23],[6,10,15,21]],hn=new Array(64),fn=0;fn<64;fn++)hn[fn]=4294967296*Math.abs(Math.sin(fn+1))|0;const dn=function(t){function e(){return r(this,e),un(this,e,arguments)}return h(e,t),o(e,[{key:"reset",value:function(){Mr(l(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,-271733879,-1732584194,271733878]}},{key:"processBlock",value:function(t){var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3];r=e.CC(e.FF,hn[0],r,n,i,a,t[0],cn[0][0]),a=e.CC(e.FF,hn[1],a,r,n,i,t[1],cn[0][1]),i=e.CC(e.FF,hn[2],i,a,r,n,t[2],cn[0][2]),n=e.CC(e.FF,hn[3],n,i,a,r,t[3],cn[0][3]),r=e.CC(e.FF,hn[4],r,n,i,a,t[4],cn[0][0]),a=e.CC(e.FF,hn[5],a,r,n,i,t[5],cn[0][1]),i=e.CC(e.FF,hn[6],i,a,r,n,t[6],cn[0][2]),n=e.CC(e.FF,hn[7],n,i,a,r,t[7],cn[0][3]),r=e.CC(e.FF,hn[8],r,n,i,a,t[8],cn[0][0]),a=e.CC(e.FF,hn[9],a,r,n,i,t[9],cn[0][1]),i=e.CC(e.FF,hn[10],i,a,r,n,t[10],cn[0][2]),n=e.CC(e.FF,hn[11],n,i,a,r,t[11],cn[0][3]),r=e.CC(e.FF,hn[12],r,n,i,a,t[12],cn[0][0]),a=e.CC(e.FF,hn[13],a,r,n,i,t[13],cn[0][1]),i=e.CC(e.FF,hn[14],i,a,r,n,t[14],cn[0][2]),n=e.CC(e.FF,hn[15],n,i,a,r,t[15],cn[0][3]),r=e.CC(e.GG,hn[16],r,n,i,a,t[1],cn[1][0]),a=e.CC(e.GG,hn[17],a,r,n,i,t[6],cn[1][1]),i=e.CC(e.GG,hn[18],i,a,r,n,t[11],cn[1][2]),n=e.CC(e.GG,hn[19],n,i,a,r,t[0],cn[1][3]),r=e.CC(e.GG,hn[20],r,n,i,a,t[5],cn[1][0]),a=e.CC(e.GG,hn[21],a,r,n,i,t[10],cn[1][1]),i=e.CC(e.GG,hn[22],i,a,r,n,t[15],cn[1][2]),n=e.CC(e.GG,hn[23],n,i,a,r,t[4],cn[1][3]),r=e.CC(e.GG,hn[24],r,n,i,a,t[9],cn[1][0]),a=e.CC(e.GG,hn[25],a,r,n,i,t[14],cn[1][1]),i=e.CC(e.GG,hn[26],i,a,r,n,t[3],cn[1][2]),n=e.CC(e.GG,hn[27],n,i,a,r,t[8],cn[1][3]),r=e.CC(e.GG,hn[28],r,n,i,a,t[13],cn[1][0]),a=e.CC(e.GG,hn[29],a,r,n,i,t[2],cn[1][1]),i=e.CC(e.GG,hn[30],i,a,r,n,t[7],cn[1][2]),n=e.CC(e.GG,hn[31],n,i,a,r,t[12],cn[1][3]),r=e.CC(e.HH,hn[32],r,n,i,a,t[5],cn[2][0]),a=e.CC(e.HH,hn[33],a,r,n,i,t[8],cn[2][1]),i=e.CC(e.HH,hn[34],i,a,r,n,t[11],cn[2][2]),n=e.CC(e.HH,hn[35],n,i,a,r,t[14],cn[2][3]),r=e.CC(e.HH,hn[36],r,n,i,a,t[1],cn[2][0]),a=e.CC(e.HH,hn[37],a,r,n,i,t[4],cn[2][1]),i=e.CC(e.HH,hn[38],i,a,r,n,t[7],cn[2][2]),n=e.CC(e.HH,hn[39],n,i,a,r,t[10],cn[2][3]),r=e.CC(e.HH,hn[40],r,n,i,a,t[13],cn[2][0]),a=e.CC(e.HH,hn[41],a,r,n,i,t[0],cn[2][1]),i=e.CC(e.HH,hn[42],i,a,r,n,t[3],cn[2][2]),n=e.CC(e.HH,hn[43],n,i,a,r,t[6],cn[2][3]),r=e.CC(e.HH,hn[44],r,n,i,a,t[9],cn[2][0]),a=e.CC(e.HH,hn[45],a,r,n,i,t[12],cn[2][1]),i=e.CC(e.HH,hn[46],i,a,r,n,t[15],cn[2][2]),n=e.CC(e.HH,hn[47],n,i,a,r,t[2],cn[2][3]),r=e.CC(e.II,hn[48],r,n,i,a,t[0],cn[3][0]),a=e.CC(e.II,hn[49],a,r,n,i,t[7],cn[3][1]),i=e.CC(e.II,hn[50],i,a,r,n,t[14],cn[3][2]),n=e.CC(e.II,hn[51],n,i,a,r,t[5],cn[3][3]),r=e.CC(e.II,hn[52],r,n,i,a,t[12],cn[3][0]),a=e.CC(e.II,hn[53],a,r,n,i,t[3],cn[3][1]),i=e.CC(e.II,hn[54],i,a,r,n,t[10],cn[3][2]),n=e.CC(e.II,hn[55],n,i,a,r,t[1],cn[3][3]),r=e.CC(e.II,hn[56],r,n,i,a,t[8],cn[3][0]),a=e.CC(e.II,hn[57],a,r,n,i,t[15],cn[3][1]),i=e.CC(e.II,hn[58],i,a,r,n,t[6],cn[3][2]),n=e.CC(e.II,hn[59],n,i,a,r,t[13],cn[3][3]),r=e.CC(e.II,hn[60],r,n,i,a,t[4],cn[3][0]),a=e.CC(e.II,hn[61],a,r,n,i,t[11],cn[3][1]),i=e.CC(e.II,hn[62],i,a,r,n,t[2],cn[3][2]),n=e.CC(e.II,hn[63],n,i,a,r,t[9],cn[3][3]),this.state.hash[0]=this.state.hash[0]+r|0,this.state.hash[1]=this.state.hash[1]+n|0,this.state.hash[2]=this.state.hash[2]+i|0,this.state.hash[3]=this.state.hash[3]+a|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}],[{key:"FF",value:function(t,e,r){return t&e|~t&r}},{key:"GG",value:function(t,e,r){return t&r|e&~r}},{key:"HH",value:function(t,e,r){return t^e^r}},{key:"II",value:function(t,e,r){return e^(t|~r)}},{key:"CC",value:function(t,e,r,n,i,a,o,s){return Or(r+t(n,i,a)+o+e,s)+n|0}}]),e}(Lr);function pn(t,e,r){return e=l(e),u(t,mn()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function mn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mn=function(){return!!t})()}var gn=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],bn=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],vn=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],yn=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],wn=function(t){function e(t){return r(this,e),(t=t||{}).length=t.length||160,pn(this,e,[t])}return h(e,t),o(e,[{key:"reset",value:function(){switch(Mr(l(e.prototype),"reset",this).call(this),this.options.length){case 128:this.state.hash=[1732584193,4023233417,2562383102,271733878],this.processBlock=this.processBlock128;break;case 256:this.state.hash=[1732584193,4023233417,2562383102,271733878,1985229328,4275878552,2309737967,19088743],this.processBlock=this.processBlock256;break;case 320:this.state.hash=[1732584193,4023233417,2562383102,271733878,3285377520,1985229328,4275878552,2309737967,19088743,1009589775],this.processBlock=this.processBlock320;break;default:this.state.hash=[1732584193,4023233417,2562383102,271733878,3285377520],this.processBlock=this.processBlock160}}},{key:"processBlock128",value:function(t){for(var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3],o=r,s=n,u=i,l=a,c=0;c<64;c++){var h=r+t[gn[c]]|0;h=h+e.T(c,n,i,a)|0,r=a,a=i,i=n,n=h=Or(h,vn[c]),h=(h=o+t[bn[c]]|0)+e.T64(c,s,u,l)|0,o=l,l=u,u=s,s=h=Or(h,yn[c])}var f=this.state.hash[1]+i+l|0;this.state.hash[1]=this.state.hash[2]+a+o|0,this.state.hash[2]=this.state.hash[3]+r+s|0,this.state.hash[3]=this.state.hash[0]+n+u|0,this.state.hash[0]=f}},{key:"processBlock160",value:function(t){for(var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3],o=0|this.state.hash[4],s=r,u=n,l=i,c=a,h=o,f=0;f<80;f++){var d=r+t[gn[f]]|0;d=(d=Or(d=d+e.T(f,n,i,a)|0,vn[f]))+o|0,r=o,o=a,a=Or(i,10),i=n,n=d,d=(d=Or(d=(d=s+t[bn[f]]|0)+e.T80(f,u,l,c)|0,yn[f]))+h|0,s=h,h=c,c=Or(l,10),l=u,u=d}var p=this.state.hash[1]+i+c|0;this.state.hash[1]=this.state.hash[2]+a+h|0,this.state.hash[2]=this.state.hash[3]+o+s|0,this.state.hash[3]=this.state.hash[4]+r+u|0,this.state.hash[4]=this.state.hash[0]+n+l|0,this.state.hash[0]=p}},{key:"processBlock256",value:function(t){for(var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3],o=0|this.state.hash[4],s=0|this.state.hash[5],u=0|this.state.hash[6],l=0|this.state.hash[7],c=0;c<64;c+=1){var h=r+t[gn[c]]|0;switch(h=h+e.T(c,n,i,a)|0,r=a,a=i,i=n,n=h=Or(h,vn[c]),h=(h=o+t[bn[c]]|0)+e.T64(c,s,u,l)|0,o=l,l=u,u=s,s=h=Or(h,yn[c]),c){case 15:h=r,r=o,o=h;break;case 31:h=n,n=s,s=h;break;case 47:h=i,i=u,u=h;break;case 63:h=a,a=l,l=h}}this.state.hash[0]=this.state.hash[0]+r|0,this.state.hash[1]=this.state.hash[1]+n|0,this.state.hash[2]=this.state.hash[2]+i|0,this.state.hash[3]=this.state.hash[3]+a|0,this.state.hash[4]=this.state.hash[4]+o|0,this.state.hash[5]=this.state.hash[5]+s|0,this.state.hash[6]=this.state.hash[6]+u|0,this.state.hash[7]=this.state.hash[7]+l|0}},{key:"processBlock320",value:function(t){for(var r=0|this.state.hash[0],n=0|this.state.hash[1],i=0|this.state.hash[2],a=0|this.state.hash[3],o=0|this.state.hash[4],s=0|this.state.hash[5],u=0|this.state.hash[6],l=0|this.state.hash[7],c=0|this.state.hash[8],h=0|this.state.hash[9],f=0;f<80;f+=1){var d=r+t[gn[f]]|0;switch(d=(d=Or(d=d+e.T(f,n,i,a)|0,vn[f]))+o|0,r=o,o=a,a=Or(i,10),i=n,n=d,d=(d=Or(d=(d=s+t[bn[f]]|0)+e.T80(f,u,l,c)|0,yn[f]))+h|0,s=h,h=c,c=Or(l,10),l=u,u=d,f){case 15:d=n,n=u,u=d;break;case 31:d=a,a=c,c=d;break;case 47:d=r,r=s,s=d;break;case 63:d=i,i=l,l=d;break;case 79:d=o,o=h,h=d}}this.state.hash[0]=this.state.hash[0]+r|0,this.state.hash[1]=this.state.hash[1]+n|0,this.state.hash[2]=this.state.hash[2]+i|0,this.state.hash[3]=this.state.hash[3]+a|0,this.state.hash[4]=this.state.hash[4]+o|0,this.state.hash[5]=this.state.hash[5]+s|0,this.state.hash[6]=this.state.hash[6]+u|0,this.state.hash[7]=this.state.hash[7]+l|0,this.state.hash[8]=this.state.hash[8]+c|0,this.state.hash[9]=this.state.hash[9]+h|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}],[{key:"F",value:function(t,e,r){return t^e^r}},{key:"G",value:function(t,e,r){return t&e|~t&r}},{key:"H",value:function(t,e,r){return(t|~e)^r}},{key:"I",value:function(t,e,r){return t&r|e&~r}},{key:"J",value:function(t,e,r){return t^(e|~r)}},{key:"T",value:function(t,e,r,n){return t<16?this.F(e,r,n):t<32?this.G(e,r,n)+1518500249|0:t<48?this.H(e,r,n)+1859775393|0:t<64?this.I(e,r,n)+2400959708|0:this.J(e,r,n)+2840853838|0}},{key:"T64",value:function(t,e,r,n){return t<16?this.I(e,r,n)+1352829926|0:t<32?this.H(e,r,n)+1548603684|0:t<48?this.G(e,r,n)+1836072691|0:this.F(e,r,n)}},{key:"T80",value:function(t,e,r,n){return t<16?this.J(e,r,n)+1352829926|0:t<32?this.I(e,r,n)+1548603684|0:t<48?this.H(e,r,n)+1836072691|0:t<64?this.G(e,r,n)+2053994217|0:this.F(e,r,n)}}]),e}(Lr);const _n=wn;function kn(t,e,r){return e=l(e),u(t,Bn()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Bn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bn=function(){return!!t})()}var xn=function(t){function e(t){var n;return r(this,e),(n=kn(this,e,[t])).unitOrder=1,n.blockUnits=[],n}return h(e,t),o(e,[{key:"process",value:function(){for(;this.state.message.length>=this.blockSizeInBytes;){this.blockUnits=[];for(var t=0;t<this.blockSizeInBytes;t+=4)this.blockUnits.push(this.state.message.charCodeAt(t)<<24|this.state.message.charCodeAt(t+1)<<16|this.state.message.charCodeAt(t+2)<<8|this.state.message.charCodeAt(t+3));this.state.message=this.state.message.substr(this.blockSizeInBytes),this.processBlock(this.blockUnits)}}},{key:"processBlock",value:function(t){}},{key:"getStateHash",value:function(t){t=t||this.state.hash.length;for(var e="",r=0;r<t;r++)e+=String.fromCharCode(this.state.hash[r]>>24&255)+String.fromCharCode(this.state.hash[r]>>16&255)+String.fromCharCode(this.state.hash[r]>>8&255)+String.fromCharCode(255&this.state.hash[r]);return e}},{key:"addLengthBits",value:function(){this.state.message+="\0\0\0"+String.fromCharCode(this.state.length>>29&255)+String.fromCharCode(this.state.length>>21&255)+String.fromCharCode(this.state.length>>13&255)+String.fromCharCode(this.state.length>>5&255)+String.fromCharCode(this.state.length<<3&255)}}]),e}(Pr);const En=xn;function Cn(t,e,r){return e=l(e),u(t,An()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function An(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(An=function(){return!!t})()}var In=[1518500249,1859775393,2400959708,3395469782],Mn=function(t){function e(t){var n;return r(this,e),(n=Cn(this,e,[t])).options.rounds=n.options.rounds||80,n.W=new Array(80),n}return h(e,t),o(e,[{key:"reset",value:function(){Mr(l(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,-271733879,-1732584194,271733878,-1009589776]}},{key:"processBlock",value:function(t){for(var e=0|this.state.hash[0],r=0|this.state.hash[1],n=0|this.state.hash[2],i=0|this.state.hash[3],a=0|this.state.hash[4],o=0;o<this.options.rounds;o++){this.W[o]=o<16?0|t[o]:this.W[o-3]^this.W[o-8]^this.W[o-14]^this.W[o-16]|0;var s=Or(e,5)+a+this.W[o]+In[o/20>>0]|0;s=o<20?s+(r&n|~r&i)|0:o<40?s+(r^n^i)|0:o<60?s+(r&n|r&i|n&i)|0:s+(r^n^i)|0,a=i,i=n,n=0|Or(r,30),r=e,e=s}this.state.hash[0]=this.state.hash[0]+e|0,this.state.hash[1]=this.state.hash[1]+r|0,this.state.hash[2]=this.state.hash[2]+n|0,this.state.hash[3]=this.state.hash[3]+i|0,this.state.hash[4]=this.state.hash[4]+a|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}]),e}(En);const Pn=Mn;function Sn(t,e,r){return e=l(e),u(t,Tn()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Tn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Tn=function(){return!!t})()}var Rn=[1518500249,1859775393,2400959708,3395469782],Ln=function(t){function e(t){var n;return r(this,e),(n=Sn(this,e,[t])).options.rounds=n.options.rounds||80,n.W=new Array(80),n}return h(e,t),o(e,[{key:"reset",value:function(){Mr(l(e.prototype),"reset",this).call(this),this.state.hash=[1732584193,-271733879,-1732584194,271733878,-1009589776]}},{key:"processBlock",value:function(t){for(var e=0|this.state.hash[0],r=0|this.state.hash[1],n=0|this.state.hash[2],i=0|this.state.hash[3],a=0|this.state.hash[4],o=0;o<this.options.rounds;o++){this.W[o]=o<16?0|t[o]:0|Or(this.W[o-3]^this.W[o-8]^this.W[o-14]^this.W[o-16],1);var s=Or(e,5)+a+this.W[o]+Rn[o/20>>0]|0;s=o<20?s+(r&n|~r&i)|0:o<40?s+(r^n^i)|0:o<60?s+(r&n|r&i|n&i)|0:s+(r^n^i)|0,a=i,i=n,n=0|Or(r,30),r=e,e=s}this.state.hash[0]=this.state.hash[0]+e|0,this.state.hash[1]=this.state.hash[1]+r|0,this.state.hash[2]=this.state.hash[2]+n|0,this.state.hash[3]=this.state.hash[3]+i|0,this.state.hash[4]=this.state.hash[4]+a|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}]),e}(En);const On=Ln;function Fn(t,e,r){return e=l(e),u(t,Nn()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Nn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Nn=function(){return!!t})()}var Un=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Dn=function(t){function e(t){var n;return r(this,e),(t=t||{}).length=t.length||256,t.rounds=t.rounds||64,(n=Fn(this,e,[t])).W=new Array(64),n}return h(e,t),o(e,[{key:"reset",value:function(){Mr(l(e.prototype),"reset",this).call(this),224===this.options.length?this.state.hash=[-1056596264,914150663,812702999,-150054599,-4191439,1750603025,1694076839,-1090891868]:this.state.hash=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225]}},{key:"processBlock",value:function(t){for(var e=0|this.state.hash[0],r=0|this.state.hash[1],n=0|this.state.hash[2],i=0|this.state.hash[3],a=0|this.state.hash[4],o=0|this.state.hash[5],s=0|this.state.hash[6],u=0|this.state.hash[7],l=0;l<this.options.rounds;l++){this.W[l]=l<16?0|t[l]:this.W[l-16]+(Fr(this.W[l-15],7)^Fr(this.W[l-15],18)^this.W[l-15]>>>3)+this.W[l-7]+(Fr(this.W[l-2],17)^Fr(this.W[l-2],19)^this.W[l-2]>>>10)|0;var c=u+(Fr(a,6)^Fr(a,11)^Fr(a,25))+(a&o^~a&s)+Un[l]+this.W[l]|0,h=(Fr(e,2)^Fr(e,13)^Fr(e,22))+(e&r^e&n^r&n)|0;u=s,s=o,o=a,a=i+c|0,i=n,n=r,r=e,e=c+h|0}this.state.hash[0]=this.state.hash[0]+e|0,this.state.hash[1]=this.state.hash[1]+r|0,this.state.hash[2]=this.state.hash[2]+n|0,this.state.hash[3]=this.state.hash[3]+i|0,this.state.hash[4]=this.state.hash[4]+a|0,this.state.hash[5]=this.state.hash[5]+o|0,this.state.hash[6]=this.state.hash[6]+s|0,this.state.hash[7]=this.state.hash[7]+u|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<56?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash(this.options.length/32|0)}}]),e}(En);const zn=Dn;function Gn(t,e,r){return e=l(e),u(t,jn()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function jn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jn=function(){return!!t})()}var Hn=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Wn=function(t){function e(t){var n;return r(this,e),(t=t||{}).length=t.length||512,t.rounds=t.rounds||160,(n=Gn(this,e,[t])).blockSize=32,n.blockSizeInBytes=n.blockSize*n.unitSize,n.W=new Array(160),n}return h(e,t),o(e,[{key:"reset",value:function(){switch(Mr(l(e.prototype),"reset",this).call(this),this.options.length){case 384:this.state.hash=[-876896931,-1056596264,1654270250,914150663,-1856437926,812702999,355462360,-150054599,1731405415,-4191439,-1900787065,1750603025,-619958771,1694076839,1203062813,-1090891868];break;case 512:this.state.hash=[1779033703,-205731576,-1150833019,-2067093701,1013904242,-23791573,-1521486534,1595750129,1359893119,-1377402159,-1694144372,725511199,528734635,-79577749,1541459225,327033209];break;default:for(var t=new e,r=0;r<16;r++)t.state.hash[r]=2779096485^t.state.hash[r];t.update("SHA-512/"+this.options.length);var n=t.finalize();this.state.hash=[];for(var i=0;i<64;i+=4)this.state.hash.push(n.charCodeAt(i)<<24|n.charCodeAt(i+1)<<16|n.charCodeAt(i+2)<<8|n.charCodeAt(i+3))}}},{key:"processBlock",value:function(t){for(var e,r,n,i,a=this.state.hash[0],o=this.state.hash[1],s=this.state.hash[2],u=this.state.hash[3],l=this.state.hash[4],c=this.state.hash[5],h=this.state.hash[6],f=this.state.hash[7],d=this.state.hash[8],p=this.state.hash[9],m=this.state.hash[10],g=this.state.hash[11],b=this.state.hash[12],v=this.state.hash[13],y=this.state.hash[14],w=this.state.hash[15],_=0;_<this.options.rounds;_+=2){if(_<32)this.W[_]=t[_],this.W[_+1]=t[_+1];else{e=Nr(this.W[_-30],this.W[_-29],1)^Nr(this.W[_-30],this.W[_-29],8)^this.W[_-30]>>>7,r=Ur(this.W[_-30],this.W[_-29],1)^Ur(this.W[_-30],this.W[_-29],8)^(this.W[_-29]>>>7|this.W[_-30]<<25),n=Nr(this.W[_-4],this.W[_-3],19)^Nr(this.W[_-4],this.W[_-3],61)^this.W[_-4]>>>6,i=Ur(this.W[_-4],this.W[_-3],19)^Ur(this.W[_-4],this.W[_-3],61)^(this.W[_-3]>>>6|this.W[_-4]<<26);var k=(65535&this.W[_-13])+(65535&this.W[_-31])+(65535&r)+(65535&i)|0,B=(this.W[_-13]>>>16)+(this.W[_-31]>>>16)+(r>>>16)+(i>>>16)+(k>>>16)|0,x=(65535&this.W[_-14])+(65535&this.W[_-32])+(65535&e)+(65535&n)+(B>>>16)|0,E=(this.W[_-14]>>>16)+(this.W[_-32]>>>16)+(e>>>16)+(n>>>16)+(x>>>16)|0;this.W[_]=4294967295&(E<<16|65535&x),this.W[_+1]=4294967295&(B<<16|65535&k)}e=Nr(a,o,28)^Nr(a,o,34)^Nr(a,o,39),r=Ur(a,o,28)^Ur(a,o,34)^Ur(a,o,39),n=Nr(d,p,14)^Nr(d,p,18)^Nr(d,p,41);var C=p&g^~p&v,A=a&s^a&l^s&l,I=o&u^o&c^u&c,M=w+(i=Ur(d,p,14)^Ur(d,p,18)^Ur(d,p,41))|0,P=y+n+(M>>>0<w>>>0?1:0)|0;P=(P=P+(d&m^~d&b)+((M=M+C|0)>>>0<C>>>0?1:0)|0)+Hn[_]+((M=M+Hn[_+1]|0)>>>0<Hn[_+1]>>>0?1:0)|0,M=M+this.W[_+1]|0;var S=r+I|0;y=b,w=v,b=m,v=g,m=d,g=p,d=h+(P=P+this.W[_]+(M>>>0<this.W[_+1]>>>0?1:0)|0)+((p=f+M|0)>>>0<f>>>0?1:0)|0,h=l,f=c,l=s,c=u,s=a,u=o,a=P+(e+A+(S>>>0<r>>>0?1:0)|0)+((o=M+S|0)>>>0<M>>>0?1:0)|0}this.state.hash[1]=this.state.hash[1]+o|0,this.state.hash[0]=this.state.hash[0]+a+(this.state.hash[1]>>>0<o>>>0?1:0)|0,this.state.hash[3]=this.state.hash[3]+u|0,this.state.hash[2]=this.state.hash[2]+s+(this.state.hash[3]>>>0<u>>>0?1:0)|0,this.state.hash[5]=this.state.hash[5]+c|0,this.state.hash[4]=this.state.hash[4]+l+(this.state.hash[5]>>>0<c>>>0?1:0)|0,this.state.hash[7]=this.state.hash[7]+f|0,this.state.hash[6]=this.state.hash[6]+h+(this.state.hash[7]>>>0<f>>>0?1:0)|0,this.state.hash[9]=this.state.hash[9]+p|0,this.state.hash[8]=this.state.hash[8]+d+(this.state.hash[9]>>>0<p>>>0?1:0)|0,this.state.hash[11]=this.state.hash[11]+g|0,this.state.hash[10]=this.state.hash[10]+m+(this.state.hash[11]>>>0<g>>>0?1:0)|0,this.state.hash[13]=this.state.hash[13]+v|0,this.state.hash[12]=this.state.hash[12]+b+(this.state.hash[13]>>>0<v>>>0?1:0)|0,this.state.hash[15]=this.state.hash[15]+w|0,this.state.hash[14]=this.state.hash[14]+y+(this.state.hash[15]>>>0<w>>>0?1:0)|0}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<112?112-this.state.message.length|0:240-this.state.message.length|0),this.state.message+="\0\0\0\0\0\0\0\0",this.addLengthBits(),this.process(),this.getStateHash(this.options.length/32|0)}}]),e}(En);const qn=Wn;function Zn(t,e,r){return e=l(e),u(t,$n()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function $n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($n=function(){return!!t})()}var Vn=[10097,32533,76520,13586,34673,54876,80959,9117,39292,74945,37542,4805,64894,74296,24805,24037,20636,10402,822,91665,8422,68953,19645,9303,23209,2560,15953,34764,35080,33606,99019,2529,9376,70715,38311,31165,88676,74397,4436,27659,12807,99970,80157,36147,64032,36653,98951,16877,12171,76833,66065,74717,34072,76850,36697,36170,65813,39885,11199,29170,31060,10805,45571,82406,35303,42614,86799,7439,23403,9732,85269,77602,2051,65692,68665,74818,73053,85247,18623,88579,63573,32135,5325,47048,90553,57548,28468,28709,83491,25624,73796,45753,3529,64778,35808,34282,60935,20344,35273,88435,98520,17767,14905,68607,22109,40558,60970,93433,50500,73998,11805,5431,39808,27732,50725,68248,29405,24201,52775,67851,83452,99634,6288,98083,13746,70078,18475,40610,68711,77817,88685,40200,86507,58401,36766,67951,90364,76493,29609,11062,99594,67348,87517,64969,91826,8928,93785,61368,23478,34113,65481,17674,17468,50950,58047,76974,73039,57186,40218,16544,80124,35635,17727,8015,45318,22374,21115,78253,14385,53763,74350,99817,77402,77214,43236,210,45521,64237,96286,2655,69916,26803,66252,29148,36936,87203,76621,13990,94400,56418,9893,20505,14225,68514,46427,56788,96297,78822,54382,14598,91499,14523,68479,27686,46162,83554,94750,89923,37089,20048,80336,94598,26940,36858,70297,34135,53140,33340,42050,82341,44104,81949,85157,47954,32979,26575,57600,40881,22222,6413,12550,73742,11100,2040,12860,74697,96644,89439,28707,25815,63606,49329,16505,34484,40219,52563,43651,77082,7207,31790,61196,90446,26457,47774,51924,33729,65394,59593,42582,60527,15474,45266,95270,79953,59367,83848,82396,10118,33211,59466,94557,28573,67897,54387,54622,44431,91190,42592,92927,45973,42481,16213,97344,8721,16868,48767,3071,12059,25701,46670,23523,78317,73208,89837,68935,91416,26252,29663,5522,82562,4493,52494,75246,33824,45862,51025,61962,79335,65337,12472,549,97654,64051,88159,96119,63896,54692,82391,23287,29529,35963,15307,26898,9354,33351,35462,77974,50024,90103,39333,59808,8391,45427,26842,83609,49700,13021,24892,78565,20106,46058,85236,1390,92286,77281,44077,93910,83647,70617,42941,32179,597,87379,25241,5567,7007,86743,17157,85394,11838,69234,61406,20117,45204,15956,6e4,18743,92423,97118,96338,19565,41430,1758,75379,40419,21585,66674,36806,84962,85207,45155,14938,19476,7246,43667,94543,59047,90033,20826,69541,94864,31994,36168,10851,34888,81553,1540,35456,5014,51176,98086,24826,45240,28404,44999,8896,39094,73407,35441,31880,33185,16232,41941,50949,89435,48581,88695,41994,37548,73043,80951,406,96382,70774,20151,23387,25016,25298,94624,61171,79752,49140,71961,28296,69861,2591,74852,20539,387,59579,18633,32537,98145,6571,31010,24674,5455,61427,77938,91936,74029,43902,77557,32270,97790,17119,52527,58021,80814,51748,54178,45611,80993,37143,5335,12969,56127,19255,36040,90324,11664,49883,52079,84827,59381,71539,9973,33440,88461,23356,48324,77928,31249,64710,2295,36870,32307,57546,15020,9994,69074,94138,87637,91976,35584,4401,10518,21615,1848,76938,9188,20097,32825,39527,4220,86304,83389,87374,64278,58044,90045,85497,51981,50654,94938,81997,91870,76150,68476,64659,73189,50207,47677,26269,62290,64464,27124,67018,41361,82760,75768,76490,20971,87749,90429,12272,95375,5871,93823,43178,54016,44056,66281,31003,682,27398,20714,53295,7706,17813,8358,69910,78542,42785,13661,58873,4618,97553,31223,8420,28306,3264,81333,10591,40510,7893,32604,60475,94119,1840,53840,86233,81594,13628,51215,90290,28466,68795,77762,20791,91757,53741,61613,62269,50263,90212,55781,76514,83483,47055,89415,92694,397,58391,12607,17646,48949,72306,94541,37408,77513,3820,86864,29901,68414,82774,51908,13980,72893,55507,19502,37174,69979,20288,55210,29773,74287,75251,65344,67415,21818,59313,93278,81757,5686,73156,7082,85046,31853,38452,51474,66499,68107,23621,94049,91345,42836,9191,8007,45449,99559,68331,62535,24170,69777,12830,74819,78142,43860,72834,33713,48007,93584,72869,51926,64721,58303,29822,93174,93972,85274,86893,11303,22970,28834,34137,73515,90400,71148,43643,84133,89640,44035,52166,73852,70091,61222,60561,62327,18423,56732,16234,17395,96131,10123,91622,85496,57560,81604,18880,65138,56806,87648,85261,34313,65861,45875,21069,85644,47277,38001,2176,81719,11711,71602,92937,74219,64049,65584,49698,37402,96397,1304,77586,56271,10086,47324,62605,40030,37438,97125,40348,87083,31417,21815,39250,75237,62047,15501,29578,21826,41134,47143,34072,64638,85902,49139,6441,3856,54552,73135,42742,95719,9035,85794,74296,8789,88156,64691,19202,7638,77929,3061,18072,96207,44156,23821,99538,4713,66994,60528,83441,7954,19814,59175,20695,5533,52139,61212,6455,83596,35655,6958,92983,5128,9719,77433,53783,92301,50498,10850,62746,99599,10507,13499,6319,53075,71839,6410,19362,39820,98952,43622,63147,64421,80814,43800,9351,31024,73167,59580,6478,75569,78800,88835,54486,23768,6156,4111,8408,38508,7341,23793,48763,90822,97022,17719,4207,95954,49953,30692,70668,94688,16127,56196,80091,82067,63400,5462,69200,65443,95659,18288,27437,49632,24041,8337,65676,96299,90836,27267,50264,13192,72294,7477,44606,17985,48911,97341,30358,91307,6991,19072,24210,36699,53728,28825,35793,28976,66252,68434,94688,84473,13622,62126,98408,12843,82590,9815,93146,48908,15877,54745,24591,35700,4754,83824,52692,54130,55160,6913,45197,42672,78601,11883,9528,63011,98901,14974,40344,10455,16019,14210,33712,91342,37821,88325,80851,43667,70883,12883,97343,65027,61184,4285,1392,17974,15077,90712,26769,21778,30976,38807,36961,31649,42096,63281,2023,8816,47449,19523,59515,65122,59659,86283,68258,69572,13798,16435,91529,67245,52670,35583,16563,79246,86686,76463,34222,26655,90802,60584,47377,7500,37992,45134,26529,26760,83637,41326,44344,53853,41377,36066,94850,58838,73859,49364,73331,96240,43642,24637,38736,74384,89342,52623,7992,12369,18601,3742,83873,83080,12451,38992,22815,7759,51777,97377,27585,51972,37867,16444,24334,36151,99073,27493,70939,85130,32552,54846,54759,60790,18157,57178,65762,11161,78576,45819,52979,65130,4860,3991,10461,93716,16894,66083,24653,84609,58232,88618,19161,38555,95554,32886,59780,8355,60860,29735,47762,71299,23853,17546,73704,92052,46215,55121,29281,59076,7936,27954,58909,32643,52861,95819,6831,911,98936,76355,93779,80863,514,69572,68777,39510,35905,14060,40619,29549,69616,33564,60780,24122,66591,27699,6494,14845,46672,61958,77100,90899,75754,61196,30231,92962,61773,41839,55382,17267,70943,78038,70267,30532,21704,10274,12202,39685,23309,10061,68829,55986,66485,3788,97599,75867,20717,74416,53166,35208,33374,87539,8823,48228,63379,85783,47619,53152,67433,35663,52972,16818,60311,60365,94653,35075,33949,42614,29297,1918,28316,98953,73231,83799,42402,56623,34442,34994,41374,70071,14736,9958,18065,32960,7405,36409,83232,99385,41600,11133,7586,15917,6253,19322,53845,57620,52606,66497,68646,78138,66559,19640,99413,11220,94747,7399,37408,48509,23929,27482,45476,85244,35159,31751,57260,68980,5339,15470,48355,88651,22596,3152,19121,88492,99382,14454,4504,20094,98977,74843,93413,22109,78508,30934,47744,7481,83828,73788,6533,28597,20405,94205,20380,22888,48893,27499,98748,60530,45128,74022,84617,82037,10268,78212,16993,35902,91386,44372,15486,65741,14014,87481,37220,41849,84547,46850,52326,34677,58300,74910,64345,19325,81549,46352,33049,69248,93460,45305,7521,61318,31855,14413,70951,11087,96294,14013,31792,59747,67277,76503,34513,39663,77544,52701,8337,56303,87315,16520,69676,11654,99893,2181,68161,57275,36898,81304,48585,68652,27376,92852,55866,88448,3584,20857,73156,70284,24326,79375,95220,1159,63267,10622,48391,15633,84924,90415,93614,33521,26665,55823,47641,86225,31704,92694,48297,39904,2115,59589,49067,66821,41575,49767,4037,77613,19019,88152,80,20554,91409,96277,48257,50816,97616,38688,32486,45134,63545,59404,72059,43947,51680,43852,59693,25163,1889,70014,15021,41290,67312,71857,15957,68971,11403,65251,7629,37239,33295,5870,1119,92784,26340,18477,65622,36815,43625,18637,37509,82444,99005,4921,73701,14707,93997,64397,11692,5327,82162,20247,81759,45197,25332,83745,22567,4515,25624,95096,67946,48460,85558,15191,18782,16930,33361,83761,60873,43253,84145,60833,25983,1291,41349,20368,7126,14387,6345,80854,9279,43529,6318,38384,74761,41196,37480,51321,92246,80088,77074,88722,56736,66164,49431,66919,31678,72472,8,80890,18002,94813,31900,54155,83436,35352,54131,5466,55306,93128,18464,74457,90561,72848,11834,79982,68416,39528,72484,82474,25593,48545,35247,18619,13674,18611,19241,81616,18711,53342,44276,75122,11724,74627,73707,58319,15997,7586,16120,82641,22820,92904,13141,32392,19763,61199,67940,90767,4235,13574,17200,69902,63742,78464,22501,18627,90872,40188,28193,29593,88627,94972,11598,62095,36787,441,58997,34414,82157,86887,55087,19152,23,12302,80783,32624,68691,63439,75363,44989,16822,36024,867,76378,41605,65961,73488,67049,9070,93399,45547,94458,74284,5041,49807,20288,34060,79495,4146,52162,90286,54158,34243,46978,35482,59362,95938,91704,30552,4737,21031,75051,93029,47665,64382,99782,93478,94015,46874,32444,48277,59820,96163,64654,25843,41145,42820,74108,88222,88570,74015,25704,91035,1755,14750,48968,38603,62880,87873,95160,59221,22304,90314,72877,17334,39283,4149,11748,12102,80580,41867,17710,59621,6554,7850,73950,79552,17944,5600,60478,3343,25852,58905,57216,39618,49856,99326,66067,42792,95043,52680,46780,56487,9971,59481,37006,22186,54244,91030,45547,70818,59849,96169,61459,21647,87417,17198,30945,57589,31732,57260,47670,7654,46376,25366,94746,49580,69170,37403,86995,90307,94304,71803,26825,5511,12459,91314,8345,88975,35841,85771,8105,59987,87112,21476,14713,71181,27767,43584,85301,88977,29490,69714,73035,41207,74699,9310,13025,14338,54066,15243,47724,66733,47431,43905,31048,56699,80217,36292,98525,24335,24432,24896,43277,58874,11466,16082,10875,62004,90391,61105,57411,6368,53856,30743,8670,84741,54127,57326,26629,19087,24472,88779,30540,27886,61732,75454,60311,42824,37301,42678,45990,43242,17374,52003,70707,70214,49739,71484,92003,98086,76668,73209,59202,11973,2902,33250,78626,51594,16453,94614,39014,97066,83012,9832,25571,77628,66692,13986,99837,582,81232,44987,9504,96412,90193,79568,44071,28091,7362,97703,76447,42537,98524,97831,65704,9514,41468,85149,49554,17994,14924,39650,95294,556,70481,6905,94559,37559,49678,53119,70312,5682,66986,34099,74474,20740,41615,70360,64114,58660,90850,64618,80620,51790,11436,38072,50273,93113,41794,86861,24781,89683,55411,85667,77535,99892,41396,80504,90670,8289,40902,5069,95083,6783,28102,57816,25807,24260,71529,78920,72682,7385,90726,57166,98884,8583,6170,97965,88302,98041,21443,41808,68984,83620,89747,98882,60808,54444,74412,81105,1176,28838,36421,16489,18059,51061,80940,44893,10408,36222,80582,71944,92638,40333,67054,16067,19516,90120,46759,71643,13177,55292,21036,82808,77501,97427,49386,54480,23604,23554,21785,41101,91178,10174,29420,90438,6312,88940,15995,69321,47458,64809,98189,81851,29651,84215,60942,307,11897,92674,40405,68032,96717,54244,10701,41393,92329,98932,78284,46347,71209,92061,39448,93136,25722,8564,77936,63574,31384,51924,85561,29671,58137,17820,22751,36518,38101,77756,11657,13897,95889,57067,47648,13885,70669,93406,39641,69457,91339,22502,92613,89719,11947,56203,19324,20504,84054,40455,99396,63680,67667,60631,69181,96845,38525,11600,47468,3577,57649,63266,24700,71594,14004,23153,69249,5747,43321,31370,28977,23896,76479,68562,62342,7589,8899,5985,64281,61826,18555,64937,13173,33365,78851,16499,87064,13075,66847,70495,32350,2985,86716,38746,26313,77463,55387,72681,72461,33230,21529,53424,92581,2262,78438,66276,18396,73538,21032,91050,13058,16218,12470,56500,15292,76139,59526,52113,95362,67011,6651,16136,1016,857,55018,56374,35824,71708,49712,97380,10404,55452,34030,60726,75211,10271,36633,68424,58275,61764,97586,54716,50259,46345,87195,46092,26787,60939,89514,11788,68224,23417,73959,76145,30342,40277,11049,72049,15472,50669,48139,36732,46874,37088,73465,9819,58869,35220,12120,86124,51247,44302,60883,52109,21437,36786,49226,77837,19612,78430,11661,94770,77603,65669,86868,12665,30012,75989,39141,77400,28e3,64238,73258,71794,31340,26256,66453,37016,64756,80457,8747,12836,3469,50678,3274,43423,66677,82556,92901,51878,56441,22998,29718,38447,6453,25311,7565,53771,3551,90070,9483,94050,45938,18135,36908,43321,11073,51803,98884,66209,6830,53656,14663,56346,71430,4909,19818,5707,27369,86882,53473,7541,53633,70863,3748,12822,19360,49088,59066,75974,63335,20483,43514,37481,58278,26967,49325,43951,91647,93783,64169,49022,98588,9495,49829,59068,38831,4838,83605,92419,39542,7772,71568,75673,35185,89759,44901,74291,24895,88530,70774,35439,46758,70472,70207,92675,91623,61275,35720,26556,95596,20094,73750,85788,34264,1703,46833,65248,14141,53410,38649,6343,57256,61342,72709,75318,90379,37562,27416,75670,92176,72535,93119,56077,6886,18244,92344,31374,82071,7429,81007,47749,40744,56974,23336,88821,53841,10536,21445,82793,24831,93241,14199,76268,70883,68002,3829,17443,72513,76400,52225,92348,62308,98481,29744,33165,33141,61020,71479,45027,76160,57411,13780,13632,52308,77762,88874,33697,83210,51466,9088,50395,26743,5306,21706,70001,99439,80767,68749,95148,94897,78636,96750,9024,94538,91143,96693,61886,5184,75763,47075,88158,5313,53439,14908,8830,60096,21551,13651,62546,96892,25240,47511,58483,87342,78818,7855,39269,566,21220,292,24069,25072,29519,52548,54091,21282,21296,50958,17695,58072,68990,60329,95955,71586,63417,35947,67807,57621,64547,46850,37981,38527,9037,64756,3324,4986,83666,9282,25844,79139,78435,35428,43561,69799,63314,12991,93516,23394,94206,93432,37836,94919,26846,2555,74410,94915,48199,5280,37470,93622,4345,15092,19510,18094,16613,78234,50001,95491,97976,38306,32192,82639,54624,72434,92606,23191,74693,78521,104,18248,75583,90326,50785,54034,66251,35774,14692,96345,44579,85932,44053,75704,20840,86583,83944,52456,73766,77963,31151,32364,91691,47357,40338,23435,24065,8458,95366,7520,11294,23238,1748,41690,67328,54814,37777,10057,42332,38423,2309,70703,85736,46148,14258,29236,12152,5088,65825,2463,65533,21199,60555,33928,1817,7396,89215,30722,22102,15880,92261,17292,88190,61781,48898,92525,21283,88581,60098,71926,819,59144,224,30570,90194,18329,6999,26857,19238,64425,28108,16554,16016,42,83229,10333,36168,65617,94834,79782,23924,49440,30432,81077,31543,95216,64865,13658,51081,35337,74538,44553,64672,90960,41849,93865,44608,93176,34851,5249,29329,19715,94082,14738,86667,43708,66354,93692,25527,56463,99380,38793,85774,19056,13939,46062,27647,66146,63210,96296,33121,54196,34108,75814,85986,71171,15102,28992,63165,98380,36269,60014,7201,62448,46385,42175,88350,46182,49126,52567,64350,16315,53969,80395,81114,54358,64578,47269,15747,78498,90830,25955,99236,43286,91064,99969,95144,64424,77377,49553,24241,8150,89535,8703,91041,77323,81079,45127,93686,32151,7075,83155,10252,73100,88618,23891,87418,45417,20268,11314,50363,26860,27799,49416,83534,19187,8059,76677,2110,12364,71210,87052,50241,90785,97889,81399,58130,64439,5614,59467,58309,87834,57213,37510,33689,1259,62486,56320,46265,73452,17619,56421,40725,23439,41701,93223,41682,45026,47505,27635,56293,91700,4391,67317,89604,73020,69853,61517,51207,86040,2596,1655,9918,45161,222,54577,74821,47335,8582,52403,94255,26351,46527,68224,90183,85057,72310,34963,83462,49465,46581,61499,4844,94626,2963,41482,83879,44942,63915,94365,92560,12363,30246,2086,75036,88620,91088,67691,67762,34261,8769,91830,23313,18256,28850,37639,92748,57791,71328,37110,66538,39318,15626,44324,82827,8782,65960,58167,1305,83950,45424,72453,19444,68219,64733,94088,62006,89985,36936,61630,97966,76537,46467,30942,7479,67971,14558,22458,35148,1929,17165,12037,74558,16250,71750,55546,29693,94984,37782,41659,39098,23982,29899,71594,77979,54477,13764,17315,72893,32031,39608,75992,73445,1317,50525,87313,45191,30214,19769,90043,93478,58044,6949,31176,88370,50274,83987,45316,38551,79418,14322,91065,7841,36130,86602,10659,40859,964,71577,85447,61079,96910,72906,7361,84338,34114,52096,66715,51091,86219,81115,49625,48799,89485,24855,13684,68433,70595,70102,71712,88559,92476,32903,68009,58417,87962,11787,16644,72964,29776,63075,13270,84758,49560,10317,28778,23006,31036,84906,81488,17340,74154,42801,27917,89792,62604,62234,13124,76471,51667,37589,87147,24743,48023,6325,79794,35889,13255,4925,99004,70322,60832,76636,56907,56534,72615,46288,36788,93196,68656,66492,35933,52293,47953,95495,95304,50009,83464,28608,38074,74083,9337,7965,65047,36871,59015,21769,30398,44855,1020,80680,59328,8712,48190,45332,27284,31287,66011,9376,86379,74508,33579,77114,92955,23085,92824,3054,25242,16322,48498,9938,44420,13484,52319,58875,2012,88591,52500,95795,41800,95363,54142,17482,32705,60564,12505,40954,46174,64130,63026,96712,79883,39225,52653,69549,36693,59822,22684,31661,88298,15489,16030,42480,15372,38781,71995,77438,91161,10192,7839,62735,99218,25624,2547,27445,69187,55749,32322,15504,73298,51108,48717,92926,75705,89787,96114,99902,37749,96305,12829,70474,838,50385,91711,80370,56504,56857,80906,9018,76569,61072,48568,36491,22587,44363,39592,61546,90181,37348,41665,41339,62106,44203,6732,76111,79840,67999,32231,76869,58652,49983,1669,27464,79553,52855,25988,18087,38052,17529,13607,657,76173,43357,77334,24140,53860,2906,89863,44651,55715,26203,65933,51087,98234,40625,45545,63563,89148,82581,4110,66683,99001,9796,47349,65003,66524,81970,71262,14479,31300,8681,58068,44115,40064,77879,23965,69019,73985,19453,26225,97543,37044,7494,85778,35345,61115,92498,49737,64599,7158,82763,25072,38478,57782,75291,62155,52056,4786,11585,71251,25572,79771,93328,66927,54069,58752,26624,50463,77361,29991,96526,2820,91659,12818,96356,49499,1507,40223,9171,83642,21057,2677,9367,38097,16100,19355,6120,15378,56559,69167,30235,6767,66323,78294,14916,19124,88044,16673,66102,86018,29406,75415,22038,27056,26906,25867,14751,92380,30434,44114,6026,79553,55091,95385,41212,37882,46864,54717,97038,53805,64150,70915,63127,63695,41288,38192,72437,75075,18570,52065,8853,30104,79937,66913,53200,84570,78079,28970,53859,37632,80274,35240,32960,74859,7359,55176,3930,38984,35151,82576,82805,94031,12779,90879,24109,25367,77861,9541,85739,69023,64971,99321,7521,95909,43897,71724,92581,5471,64337,98949,3606,78236,78985,29212,57369,34857,67757,58019,58872,96526,28749,56592,37871,72905,70198,57319,54116,47014,18285,33692,72111,60958,96848,17893,40993,50445,14186,76877,87867,50335,9513,44346,26439,55293,6449,44301,63740,40158,72703,88321,85062,57345,66231,15409,3451,95261,43561,15673,28956,90303,62469,82517,43035,36850,15592,64098,59022,31752,4370,50486,11885,23085,41712,80692,48492,16495,99721,36912,28267,27882,16269,64483,11273,2680,1616,46138,54606,14761,5134,45144,63213,49666,27441,86989,29884,54334,6740,8368,80051,81020,17882,74973,74531,94994,24927,64894,22667,20466,82948,66831,47427,76033,31197,59817,20064,61135,28556,29695,80179,74058,18293,9963,35278,13062,83094,23373,90287,33477,48865,30348,70174,11468,25994,25343,22317,1587,30682,1,67814,59557,23362,13746,82244,42093,24671,79458,93730,45488,60234,67098,9899,25775,332,36636,57594,19958,85564,58977,12247,60774,66371,69442,20385,14486,91330,50332,46023,75768,59877,60081,92936,72302,75064,85727,52987,5750,19384,33684,78859,80458,69902,34870,88684,49762,40801,86291,18194,90366,82639,53844,96326,65728,48563,26027,52692,62406,76294,41848,63010,69841,29451,36170,21529,16525,64326,22086,24469,57407,96033,37771,31002,18311,93285,31948,14331,58335,15977,80336,81667,27286,24361,61638,57580,95270,46180,76990,53031,94366,2727,49944,19278,5756,51875,53445,33342,1965,7937,10054,97712,87693,58124,46064,39133,77385,9605,65359,70113,90563,86637,94282,12025,31926,24541,23854,58407,32131,92845,20714,27898,26917,50326,35145,50859,72119,95094,29441,42301,62460,75252,94267,38422,73047,24200,85349,72049,91723,97802,98496,12734,73432,10371,57213,53300,80847,46229,7099,72961,13767,65654,31102,82119,96946,65919,81083,3819,57888,57908,16849,77111,41429,92261,45263,1172,55926,78835,27697,48420,58865,41207,21406,8582,10785,36233,12237,7866,13706,92551,11021,63813,71512,65206,37768,94325,14721,20990,54235,71986,5345,56239,52028,1419,7215,55067,11669,21738,66605,69621,69827,8537,18638,60982,28151,98885,76431,25566,3085,23639,30849,63986,73287,26201,36174,14106,54102,57041,16141,64174,3591,90024,73332,31254,17288,59809,25061,51612,47951,16570,43330,79213,11354,55585,19646,99246,37564,32660,20632,21124,60597,69315,31312,57741,85108,21615,24365,27684,16124,33888,14966,35303,69921,15795,4020,67672,86816,63027,84470,45605,44887,26222,79888,58982,22466,98844,48353,60666,58256,31140,93507,69561,6256,88526,18655,865,75247,264,65957,98261,72706,36396,46065,85700,32121,99975,73627,78812,89638,86602,96758,65099,52777,46792,13790,55240,52002,10313,91933,71231,10053,78416,54563,96004,42215,30094,45958,48437,49591,50483,13422,69108,59952,27896,40450,79327,31962,46456,39260,51479,61882,48181,50691,64709,32902,10676,12083,35771,79656,56667,76783,3937,99859,10362,57411,40986,35045,2838,29255,64230,84418,34988,77644,39892,77327,74129,53444,35487,95803,38640,20383,55402,25793,14213,87082,42837,95030,97198,61608,97723,79390,35290,34683,81419,87133,70447,53127,97146,28299,56763,12868,1145,12147,58158,92124,60934,18414,97510,7056,54488,20719,53743,91037,44797,52110,8512,18991,20129,31441,51449,14661,71126,23180,68124,18807,70997,21913,19594,70355,73637,68266,60775,43164,52643,96363,77989,79332,39890,65379,20405,52935,43816,92740,95319,4538,60660,28982,15328,80475,34690,2293,19646,46524,96627,33159,42081,8816,74931,20674,8697,66169,46460,46326,39923,60625,28386,22919,19415,75766,43668,31626,70301,67053,3949,70082,2303,48642,38429,94053,38770,68137,68441,52928,70244,91954,17401,92693,98342,21451,84988,80487,33807,73797,49494,41878,76635,83227,76618,11946,13451,87591,78381,21407,90038,72638,69692,51599,86413,32019,64856,74730,41531,11064,1790,58817,86400,66213,92599,70905,78324,54326,43659,34206,63132,38837,40210,96346,16967,81619,96503,14881,89405,32205,49508,98425,2451,35423,56072,36810,30332,85998,49358,92748,84147,79835,94867,41224,61794,35066,82220,66684,20096,2754,41731,37068,32753,91059,13407,5607,69384,53329,95909,44968,11397,92973,50014,92997,80968,93761,57598,74703,7768,37978,73873,33475,9720,97852,98449,48722,84977,11271,11728,68318,22312,78792,87508,88466,72976,47099,84126,38595,85124,64405,90020,7492,52413,95111,34455,86311,68892,1074,60274,28136,19328,38161,57475,13771,63562,84207,94121,18901,52768,33801,82087,86091,59969,90398,56870,55756,78841,98450,54165,55106,50343,70519,14567,36780,55450,19606,83749,67562,64765,38543,16585,86841,73742,8766,39252,75678,75379,78760,37279,15280,13558,95916,89759,76686,76467,67147,63110,94008,8037,35263,53710,16667,79008,11231,29397,67136,18601,64502,90228,89109,72849,22711,65547,34542,26686,81678,87765,77654,23664,96352,14106,32938,28083,18633,80286,65507,46197,52722,75476,77816,47204,34876,45963,79262,90181,84041,3745,90041,30780,27226,92847,85572,15308,80688,5761,82638,13464,23683,81015,54214,64175,43701,86845,15569,50687,52679,87696,8285,97444,47599,94472,64150,87753,68652,60726,26213,17320,64553,81285,98126,12158,52095,64833,492,35817,55571,91300,97812,37507,4209,53515,64342,21223,16662,43265,68219,3529,43636,68417,53640,95326,93381,37113,80751,76469,96677,43054,22937,31954,13266,34140,27253,2734,99070,60077,57988,93211,92795,83795,57477,3941,39007,14619,38320,93449,31336,25279,97030,26245,47394,39475,90621,23820,29344,94859,91604,14033,41868,14816,4075,66644,87803,97815,99552,78666,3942,8175,22345,19983,76783,99044,20851,84981,59052,77178,72109,76475,21619,73017,6812,56633,50612,55289,4671,84419,94072,94446,80603,32188,93415,23464,43947,43728,74284,67177,57105,31059,10642,13803,69602,46961,66567,19359,84676,63918,40650,12923,15974,79732,20225,92525,71179,4859,91208,60430,5239,61458,24089,68852,60171,29603,42535,86365,93905,28237,45317,60718,82001,41679,20679,56304,70043,87568,21386,59049,78353,48696,77379,55309,23780,28391,5940,55583,81256,59418,97521,32846,70761,90115,45325,5490,65974,11186,15357,3568,450,96644,58976,36211,88240,92457,89200,94696,11370,91157,48487,59501,56983,89795,42789,69758,79701,29511,55968,41472,89474,84344,80517,7485,97523,17264,82840,59556,37119,30985,48866,60605,95719,70417,59083,95137,76538,44155,67286,57897,28262,4052,919,86207,79932,44236,10089,44373,65670,44285,6903,20834,49701,95735,21149,3425,17594,31427,14262,32252,68540,39427,44026,47257,45055,95091,8367,28381,57375,41562,83883,27715,10122,67745,46497,28626,87297,36568,39483,11385,63292,92305,78683,6146,81905,15038,38338,51206,65749,34119,71516,74068,51094,6665,91884,66762,11428,70908,21506,480,94183,78484,66507,75901,25728,52539,86806,69944,65036,27882,2530,4918,74351,65737,89178,8791,39342,94963,22581,56917,17541,83578,75376,65202,30935,79270,91986,99286,45236,44720,81915,70881,45886,43213,49789,97081,16075,20517,69980,25310,91953,1759,67635,88933,54558,18395,73375,62251,58871,9870,70538,48936,7757,90374,56631,88862,30487,38794,36079,32712,11130,55451,25137,38785,83558,31960,69473,45950,18225,9871,88502,75179,11551,75664,74321,67351,27703,83717,18913,42470,8816,37627,14288,62831,44047,67612,72738,26995,50933,63758,50003,43693,52661,55852,52372,59042,37595,4931,73622,68387,86478,40997,5245,75300,24902,59609,35653,15970,37681,69365,22236,86374,65550,343,98377,35354,65770,15365,41422,71356,16630,40044,19290,66449,53629,79452,71674,30260,97303,6487,62789,13005,70152,22501,49867,89294,59232,31776,54919,99851,5438,1096,72269,50486,16719,6144,82041,38332,64452,31840,99287,59928,25503,8407,46970,45907,99238,74547,19704,72035,26542,54600,79172,58779,35747,78956,11478,41195,58135,63856,33037,45753,60159,25193,71838,7526,7985,60714,88627,75790,38454,96110,39237,19792,34534,70169,24805,63215,38175,38784,38855,24826,50917,25147,17082,26997,32295,10894,21805,65245,85407,37926,69214,38579,84721,23544,88548,65626,75517,69737,55626,52175,21697,19453,16908,82841,24060,40285,19195,80281,89322,15232,70043,60691,86370,91949,19017,83846,77869,14321,95102,87073,71467,31305,64677,80358,52629,79419,22359,87867,48296,50141,46807,82184,95812,84665,74511,59914,4146,90417,58508,62875,17630,21868,9199,30322,33352,43374,25473,4119,63086,14147,14863,38020,44757,98628,57916,22199,11865,42911,62651,78290,9392,77294,63168,21043,17409,13786,27475,75979,89668,43596,74316,84489,54941,95992,45445,41059,55142,15214,42903,16799,88254,95984,48575,77822,21067,57238,35352,96779,89564,23797,99937,46379,27119,16060,30302,95327,12849,38111,97090,7598,78473,63079,18570,72803,70040,91385,96436,96263,17368,56188,85999,50026,36050,73736,13351,48321,28357,51718,65636,72903,21584,21060,39829,15564,4716,14594,22363,97639,65937,17802,31535,42767,98761,30987,57657,33398,63053,25926,20944,19306,81727,2695,97479,79172,72764,66446,78864,12698,15812,97209,38827,91016,91281,57875,45228,49211,69755,99224,43999,62879,8879,80015,74396,57146,64665,31159,6980,79069,37409,75037,69977,85919,42826,6974,61063,97640,13433,92528,91311,8440,38840,22362,93929,1836,36590,75052,89475,15437,65648,99012,70236,12307,83585,414,62851,48787,28447,21702,57033,29633,44760,34165,27548,37516,24343,63046,2081,20378,19510,42226,97134,68739,32982,56455,53129,77693,25022,55534,99375,30086,98001,7432,67126,76656,29347,28492,43108,64736,32278,84816,80440,30461,818,9136,1952,48442,91058,92590,10443,5195,34009,32141,62209,43740,54102,76895,98172,31583,4155,66492,58981,16591,11331,6838,3818,77063,12523,45570,68970,70055,77751,73743,71732,4704,61384,57343,66682,44500,89745,10436,67202,36455,42467,88801,91280,1056,27534,81619,79004,25824,66362,33280,20706,31929,57422,18730,96197,22101,47592,2180,18287,82310,60430,59627,26471,7794,60475,76713,45427,89654,14370,81674,41246,98416,8669,48883,77154,9806,94015,60347,20027,8405,33150,27368,53375,70171,59431,14534,34018,85665,77797,17944,49602,74391,48830,55029,10371,94261,16658,68400,44148,28150,40364,90913,73151,64463,50058,78191,84439,82478,62398,3113,17578,12830,6571,95934,9132,25287,78731,80683,67207,76597,42096,34934,76609,52553,47508,71561,8038,83011,72577,95790,40076,20292,32138,61197,95476,23123,26648,13611,48452,39963,85857,4855,27029,1542,72443,53688,82635,56264,7977,23090,93553,65434,12124,91087,87800,95675,99419,44659,30382,55263,82514,86800,16781,65977,65946,13033,93895,4056,75895,47878,91309,51233,81409,46773,69135,56906,84493,34530,84534,38312,54574,92933,77341,20839,36126,1143,35356,35459,7959,98335,53266,36146,78047,50607,22486,63308,8996,96056,39085,26567,6779,62663,30523,47881,41279,49864,82248,78333,29466,48151,41957,93235,53308,22682,90722,54478,7235,34306,15827,20121,96837,6283,80172,66109,92592,48238,76428,94546,45430,16288,74839,740,25553,83767,35900,5998,7493,46755,11449,88824,44906,33143,7454,56652,34755,63992,59674,65131,46358,12799,96988,51158,73176,1184,49925,63519,11785,29073,72850,47997,75172,55187,15313,40725,33225,56643,10465,38583,86440,97967,26401,17078,38765,33454,19136,57712,48446,98790,27315,71074,10157,57946,35582,49383,61324,26572,84503,3496,60449,17962,26017,65651,40400,83246,80056,75306,75147,41863,25581,87530,33193,43294,5065,99644,62771,75986,79005,44924,18703,40889,4403,5862,2571,82500,74200,36170,46836,74642,65471,26815,30937,64946,10160,15544,31962,54015,28853,66533,14573,79398,47391,73165,47805,77589,16881,13423,89452,76992,62509,9796,57540,13486,48855,25546,47589,21012,47388,78428,70196,84413,81026,87597,22445,83769,85937,38321,85485,87359,9839,67228,71179,94372,4446,62801,50775,96179,40646,44272,12417,47199,39701,30665,32775,66525,53558,78882,31939,67209,38906,34533,99914,27719,216,99225,96537,3843,90564,91110,51838,30300,9559,37795,94880,11325,44979,89696,28129,29931,89971,46292,92710,11036,74760,75307,12291,49618,16293,92408,67928,80823,32872,25460,66819,35374,4035,99087,61129,11341,39118,10891,37217,63638,75477,30068,42334,57570,6890,59353,89939,37692,15232,20033,32202,22348,2766,96791,58448,92248,5769,96684,67885,99295,47271,38655,59513,96960,31718,8974,16122,20535,52380,29769,70660,57425,50891,75044,84257,73315,38181,28673,93140,26307,82265,78382,19681,56585,8975,76764,39956,83450,84663,89963,71584,57696,30829,60527,64947,34899,28805,28397,91830,51842,99838,39839,66971,67177,74219,35637,35634,93581,81746,29991,81096,94279,2968,62561,2479,82126,25702,67953,88088,50293,83423,86206,39935,23253,43041,48941,85787,8388,6671,43574,84908,67295,33623,55060,28174,48415,2529,22009,24524,5283,30460,32399,80423,56929,40852,69969,88541,5979,91496,64730,57198,83145,39750,3568,54669,98679,4297,51047,31492,47734,31343,31180,232,19707,24823,75079,73943,17997,8446,91252,39879,58682,82972,18417,39203,36681,42895,8459,15618,17941,52594,43277,16530,40052,91100,87422,47230,95699,49794,50492,87439,86354,4546,65333,11057,77727,19748,38722,91821,18107,42125,89239,28847,54623,38783,47803,31414,38450,3697,89186,30579,44188,26532,8420,80723,48100,60748,76330,45832,8311,16051,4475,13400,48527,46073,17439,56498,94632,9021,16871,83366,14896,4219,38375,87890,90217,42370,61028,85101,76771,83715,94737,69973,74187,1958,59691,86712,86570,60984,76342,13648,85250,28323,48379,45141,36277,51845,29039,3553,5128,59866,51281,68124,17007,24729,29710,41439,40574,11774,86746,89698,56020,37810,88972,11361,95583,70786,589,74473,87513,17690,61427,72914,32517,1804,97910,6327,30246,33049,2622,41026,80875,41293,16752,84225,84414,37137,68956,8095,64981,28180,38629,76962,23840,17477,75268,48297,70340,57888,13938,38554,86836,2195,30270,55484,53364,54705,41380,56316,37723,234,21424,26664,63804,75139,36534,18579,9833,98849,72762,59767,52497,24227,83152,71794,21398,99456,89215,51632,54799,27973,68568,68465,98500,28681,18369,24279,96335,12874,82160,67202,85199,27908,67022,49810,77929,96212,81153,77884,7032,1671,53362,28119,56786,30883,28540,76029,3774,64611,19736,25589,46569,45206,48215,69523,17423,91807,90039,30393,58319,85098,66519,57571,24541,3562,14400,62731,82534,61477,89731,18421,29861,52829,838,78040,43350,74323,82892,84746,28302,13264,7595,134,12933,46831,24864,47275,20527,9110,28485,30326,99826,64005,99308,65779,42760,90066,3974,38688,39968,32604,11694,46262,73262,45405,43923,67397,88228,56405,17839,92073,57622,93328,15442,50186,7570,58001,31e3,8915,11467,14793,82691,51238,12485,51745,18192,5985,36826,89434,38669,91592,88799,65621,67237,59541,19657,93402,58705,73553,78280,69125,95591,81168,91927,25976,89077,71690,19404,64603,59752,74698,44233,67602,38615,31303,28650,53700,89819,7783,4351,77451,47350,21234,16016,41532,76508,23063,44993,43983,33356,61715,96485,22121,78004,6316,87896,99289,93981,37850,66128,92735,45064,50924,24204,58816,65290,34392,55567,66416,72353,45775,68590,85685,72683,60090,37149,85347,57414,72336,12979,5720,92754,76911,96883,74420,5220,85815,23557,80567,44365,70254,50864,36619,51479,23281,76428,18580,34240,59289,49076,18439,29522,42541,4024,84446,92434,90407,77241,19690,78143,65919,13699,91844,91241,38361,67171,90551,5709,3474,76025,97043,33834,44638,54040,82797,545,38159,16089,35870,89158,55864,98078,50563,36492,10994,85909,9018,19252,73887,67928,60045,70782,11937,4074,53814,46621,52577,94853,45968,73667,65062,73306,76045,78649,91654,53958,96537,95542,67622,54579,17279,67440,56441,20681,64011,52226,96618,32831,60664,67547,39523,2043,59748,1887,69229,94653,99271,98164,62155,9234,47367,13047,6364,35064,10073,6793,80248,29009,44969,11129,17139,79630,89772,26921,56949,23465,30036,17173,82459,96218,60768,76417,24405,18710,68887,82394,69729,82503,40873,41590,67255,30757,9657,91881,34578,9511,5417,58953,18532,10721,22029,48524,47778,881,83489,3464,57462,97459,86689,39755,39547,740,36666,7993,31671,86304,12970,73402,52849,31652,79655,11250,18463,57518,20306,25301,1374,51208,33298,87662,61849,60923,68685,69411,39266,80320,34844,89416,81569,83651,35795,40168,33501,1042,58931,3892,85188,74740,85476,23790,33842,89565,53359,25579,59049,62394,72435,12457,21904,18370,97035,57905,9581,91227,92754,37760,1411,7440,87175,88318,63242,85960,56690,12618,30493,11569,73723,7448,58830,157,65814,21118,22140,73793,57855,81830,6795,13183,12625,30635,56429,73216,12342,36722,83886,96828,82870,90954,97614,2370,42160,73370,11944,49067,59452,80495,43911,46712,17033,68037,41963,3874,44856,82985,57453,84358,16120,4454,76624,405,62369,55080,61880,51270,87807,10653,36894,70850,35660,234,14705,93418,94084,82856,25384,71555,56754,78315,18291,91656,98079,52384,43306,65205,75903,58701,99496,50048,33557,87793,90857,10143,46726,84284,43635,41213,83845,70986,91408,80220,5728,68890,46577,21152,43759,43301,93661,97252,50106,10099,13722,18572,44024,351,18173,23717,85114,85998,57782,63951,53723,86853,63851,79430,49181,46386,69666,55743,76162,71724,40028,94786,34457,16906,90040,30789,40281,94697,96584,81907,4055,53990,66397,80579,42517,78181,39251,9467,67097,95523,66568,63632,71048,15581,39904,75774,77495,75994,29911,65690,41178,47712,70355,16998,56025,5230,10093,71495,34784,70950,54680,57811,53782,39145,36829,85342,40406,35883,45668,3459,29870,78252,70088,70621,67153,5737,40933,91075,93335,86853,15860,81167,91259,16118,52401,83593,84474,2423,75608,39646,90871,70284,82100,96032,5115,63678,2225,88087,58581,44364,57468,21539,13042,64150,63754,5210,87644,54114,64013,63562,41388,32397,74152,23982,71982,71700,33026,66477,47838,46712,39848,35083,65927,97868,11067,76771,71799,43836,41014,97025,93225,8511,63096,26628,73012,12543,76269,99708,2629,49845,73677,19193,14924,57236,95564,15010,59667,73773,78515,2624,99744,13585,33746,58771,94785,62628,99585,11363,80832,59979,9444,78700,2596,85984,69438,16913,96475,93283,18625,77086,45911,39746,64722,39938,43930,54619,302,50384,2738,75714,75249,95439,80714,52555,47266,96190,78750,94973,83669,16479,53163,48071,28e3,45011,26733,67132,83362,84162,43028,8415,27236,52651,89059,64844,80910,1676,91752,57815,26264,3415,57532,29981,61200,96036,62600,20068,56530,38487,8432,89514,26883,69165,97237,22361,55276,39902,95927,82190,49269,27212,46095,37106,64254,27460,49572,51700,27679,12574,33891,3867,9925,6476,82018,45094,59014,67113,44192,75,23318,79895,70550,81717,28833,30271,15821,14999,88174,62617,57517,55256,50281,51583,96879,5225,42272,5339,20483,57596,41011,75937,22767,50120,95938,49753,63882,99616,69083,38721,73889,80236,99531,23053,71237,48861,59046,76283,60538,19732,93877,30345,64882,66660,17026,70364,45676,8039,96228,89936,59141,95585,89552,97247,59325,27848,80058,15950,61481,90906,40998,44137,16144,66300,44091,50018,81364,18211,60294,76559,20279,27414,10589,39860,23e3,31767,95618,56738,50332,16936,70342,92481,30702,76264,62619,68678,62284,83112,93032,55203,52614,36950,41796,45403,79262,2887,53596,61308,20738,34811,27099,90956,65448,3080,75795,29753,97699,80872,23830,85882,74427,99523,74904,28017,45898,57232,48525,7086,26805,74533,92470,18840,76011,93109,14344,55614,50284,15865,19458,35856,13464,53679,64603,51571,56124,79107,29596,89572,78198,57121,73649,8804,87977,87959,70859,40909,77295,87877,75158,62810,92074,23244,59516,50552,31602,41899,6347,27821,68370,48596,88577,30231,25267,84622,31449,12086,56461,22962,78213,62483,93966,60437,52239,58113,32526,38708,81607,57016,1695,90110,4649,59990,23979,3855,10297,46516,96092,82305,30760,78756,4967,82876,4773,86651,16648,53133,82439,78851,49766,24553,15273,36417,1901,33386,76979,25920,33372,2695,11982,40911,6230,91696,43907,17827,30332,89203,32215,91806,23080,49102,9174,11548,54590,75803,66108,73882,62324,26017,72716,33887,1285,31604,71039,24337,53514,58964,89901,22040,92751,12617,37007,5523,61672,62557,98540,26094,60284,19621,96230,38044,6545,9458,42988,2913,86345,67936,90174,40840,44991,24256,34989,74086,13652,68706,1363,4294,88008,78693,83068,94746,221,89299,53186,5930,61889,51341,45412,58860,72568,11381,59785,36887,10690,31347,93326,96267,86987,57565,86836,49071,90331,41248,34629,30240,27270,3864,84308,3035,61369,36902,51017,44409,17120,23823,36460,63359,8333,63173,19134,6493,303,18550,26191,19051,81502,66343,6737,90430,65478,58982,82484,16483,47704,44640,68322,44548,72787,2335,28749,39320,5436,98146,56596,812,51445,35533,35478,47573,38414,25542,38032,13442,42983,97207,77854,57806,81616,52828,79429,47389,96795,57764,19605,24767,63253,18809,65093,44449,22952,76872,30983,38948,9310,48336,87651,27110,84427,76209,56412,12760,16747,14551,82626,31224,98636,75100,84882,79479,83420,5347,6803,90063,4617,40257,79183,41766,71873,25242,12275,336,40798,42055,74066,69128,32547,76508,32530,42359,89207,49758,58984,92732,15779,7234,28884,28226,50011,35883,99606,45423,76224,75427,85747,33879,97978,57441,927,19164,74716,40702,19715,70917,60344,40236,9019,50577,15598,53136,57285,20536,7539,74832,89184,41501,39447,97422,97041,21913,40581,76081,13089,28776,54164,55736,36263,71841,34488,74988,55467,43322,9214,36746,67981,71877,81683,32461,84091,19422,88366,62054,85664,13409,8003,88276,6989,16607,33633,85349,5784,25950,97998,74110,16699,60184,92818,79705,10381,1474,18656,50434,18232,92132,66537,70141,42854,25120,39581,28249,14215,34810,19767,3409,11807,6566,66138,42997,41999,67504,87117,28961,5e3,29673,77726,73225,54753,69712,71576,92337,17713,63185,87923,91889,68351,17712,75532,93849,48280,62219,317,25290,29209,90927,92929,92762,60413,2018,31793,76290,73373,80777,60819,77375,57886,47291,99670,32605,29064,99476,80999,31217,35,91300,14892,73653,26593,25305,56797,12837,39560,27582,37253,38531,76489,49946,69108,58687,43092,73807,96282,6648,67431,87124,57694,21660,64002,6,33600,30245,60636,80164,9285,61426,4658,54130,14710,76553,1904,93668,63110,98618,5601,32199,74923,98049,49717,55539,35940,58545,43295,35810,45451,38735,42065,66769,69825,45461,83881,67372,67351,90612,79502,69460,23108,74421,82990,46821,40683,71603,55267,48192,50242,79738,96417,6664,19929,23644,41116,51056,219,45086,32747,49492,15399,24874,80825,95928,61457,45813,59037,16136,3953,83583,5910,12654,53630,92997,22168,93491,71897,74579,24022,6278,24049,71670,43044,8474,38572,77402,35800,7455,96177,41653,74493,20802,65843,73050,73349,2638,65813,96209,49196,45007,32207,14097,66059,46681,7534,71263,20582,10171,51514,52142,60961,57951,25637,37860,21683,86190,90434,94481,85697,95344,2606,74095,61133,7472,64777,94050,41482,975,23471,76052,82021,87676,91345,20196,2612,86299,44996,40312,65712,46079,88514,8610,3685,63197,9073,53105,86824,28112,99306,40706,66840,83003,51590,52755,32285,68454,85058,13645,23073,24724,52989,71880,21952,44144,74975,76715,7844,46447,86643,75579,29276,10864,83179,36721,19300,35066,29383,47478,56644,33354,31414,17643,92374,85085,88458,87191,85248,34963,76278,53230,13953,76985,70959,36663,5293,32658,56767,56997,76736,6558,64248,11907,29123,78458,17678,63805,89973,5076,39263,54404,4355,64957,74407,99838,18836,78098,6490,74888,73719,80675,86178,56283,33591,96957,38382,18772,74773,71229,2603,52673,44609,14843,58418,18060,95459,626,30914,13550,42195,44863,8871,89182,64446,78422,41140,15312,98274,48168,95651,35562,85386,56252,72136,85088,68761,78434,98143,61330,2446,64409,49406,99127,98626,55095,44808,13594,87370,89472,12833,98932,68064,58193,20225,5192,28425,23978,24542,80845,55858,4015,21454,37346,51007,17202,10242,12682,55933,96922,22280,75597,50227,70712,44236,20470,36320,49339,60536,80083,38880,93327,49522,93585,9918,55268,4671,57526,11457,48424,54610,7211,78610,9473,72923,27347,30057,76968,26177,59367,46172,88951,40229,34921,60405,88959,16779,29547,92231,61997,36002,21080,39795,77221,10012,49748,76900,15964,3803,40260,92351,92844,10288,57483,10881,70408,75688,16610,1638,93082,44282,66849,75702,69428,34047,84968,71281,72328,73143,88672,49802,50639,18129,93659,58389,49095,45971,34196,84609,59222,19332,17777,41004,47057,30688,16039,20906,41477,42915,60877,33864,75195,62294,3371,11672,1370,2486,35553,17907,90621,45136,9722,67635,12114,63055,16004,21625,24321,20491,26881,66259,94287,54751,36242,36557,5842,30687,65418,94608,24741,45887,78800,86912,42076,50287,9284,68891,76368,83094,96302,35997,30761,97081,9501,68887,32876,1705,34260,95065,45528,88241,30402,12318,52430,40139,96986,84900,72408,42027,31676,54382,73370,26184,14024,57444,57660,52173,30274,93448,63273,77681,74946,2099,69091,19372,66961,14595,58642,75760,52253,53148,26074,52293,65359,63971,4833,86492,1227,54505,19515,89889,46933,13364,33883,83389,36952,52505,67513,40071,31001,3105,87912,29610,75108,37363,28479,43546,89992,19550,54863,82633,19209,21548,35022,21960,57961,11815,95867,559,26428,69386,57453,70147,73538,49562,46806,64550,36653,25718,68792,31113,7607,48037,71020,22666,65957,11141,39227,7990,19849,65972,74528,40888,55386,95918,92088,91125,53648,66122,138,79933,71058,34826,97725,69513,22915,18246,52244,91161,40861,40374,13239,56162,4703,95851,22824,41271,28202,62852,84238,46625,20031,8524,20077,65817,21174,29279,57712,22401,67500,30980,74485,26480,21343,30031,61921,35744,57308,71196,1865,49234,62616,54021,29008,83672,85839,96836,45077,80900,66906,63526,93824,71820,11033,20183,85704,4683,63512,39144,56880,64424,95979,17709,94849,31771,5737,84286,16757,46256,24478,73180,59978,8254,78963,95437,86351,33824,32540,18357,2668,99260,21284,81351,70961,10255,6911,47394,72408,23827,59865,96395,30665,43699,3593,29165,23388,26628,92402,16731,86740,29493,9069,78653,90094,42735,33682,95041,89887,92369,57949,81585,50593,14698,4737,72551,57271,59433,156,33966,58773,59108,49578,18100,59836,73221,21110,1650,11058,47770,66141,84576,58388,40915,94507,32209,17272,65674,95552,25685,5345,36995,36302,7971,67001,62062,75939,36005,26739,56484,46885,66348,87666,78055,44485,82955,85936,9219,1847,92687,72579,45457,78252,98239,4e4,75563,92408,17175,78845,32638,26959,35406,59553,57852,7506,9,93172,77713,93880,40981,27924,9678,24538,52426,84852,83781,23712,82490,77890,22482,66668,55850,25644,44972,62275,78089,28894,98685,32998,98766,89119,34355,75127,69797,71419,62067,57990,96514,50603,79807,26135,29207,43632,32905,38513,18924,88872,20758,70232,60425,1116,24077,21369,93541,75329,78656,44251,42014,98154,42552,14575,30765,348,1134,71581,68420,78141,21105,63305,9718,54851,65867,8595,47390,39182,51174,41478,64433,59628,31945,87322,78667,95282,5622,26224,19972,97269,98376,14779,51138,49658,45345,4972,52794,15737,496,48939,63485,42780,16061,59631,37171,13483,56058,51093,62290,88227,17400,88433,67363,89507,26482,85964,71336,67799,28342,37747,61722,27180,78755,18603,42953,6606,23875,56766,1932,36113,62807,84012,21103,9685,69662,76755,13701,95168,13169,44726,15284,16702,89617,54397,52052,12835,37741,86434,22400,37947,95763,86337,35189,22756,47473,16618,42479,47405,14055,64262,66670,89692,54032,94591,44149,29854,76691,33263,62048,25116,88598,16119,62116,54517,31883,86707,18895,81790,71294,2684,15292,48107,14341,91416,75609,92564,39987,2283,89970,95855,80970,5432,89860,90293,99851,94648,5598,32171,28793,92305,64244,8277,93391,96717,34464,29838,10664,28050,60122,77934,10758,84922,92220,45071,97697,36368,17792,84792,76594,67319,51886,5665,45201,11348,9254,7510,51039,91683,84500,85338,5555,19633,3870,39576,41486,58524,54508,20707,58504,39642,22454,80069,83455,31043,90794,51934,3295,26582,16300,74990,22197,83310,69642,81113,58558,84833,17105,46659,25003,85749,44829,4103,67516,76458,52392,53546,70291,98846,67315,30686,18555,29755,5923,22732,19501,56181,85351,5023,4808,56911,16793,75336,49712,27723,96974,34321,5454,12862,71924,45928,95697,68664,58183,78104,42483,71204,99628,40642,56410,17350,13396,76724,87509,9158,83708,27298,92651,95086,38851,63558,89810,1580,32518,35795,26514,56322,78635,63731,91428,7247,66460,38671,26799,22549,47991,46064,80467,40083,17141,39152,99872,27561,75389,74778,94893,82935,99076,93419,10474,84436,47536,16719,60136,80566,28404,74525,74212,3704,65516,98197,34210,64140,22238,49939,99542,27481,21992,78181,90060,71365,66935,29578,14961,8569,9454,43308,66753,45972,93572,16382,87320,37183,25478,38164,31997,69856,60898,63968,62264,4799,17591,89937,73905,55890,88285,2448,40398,54180,65869,45155,43407,39105,339,51619,20203,21189,68245,76912,1222,76411,82679,7,66047,32043,42627,16638,27019,15248,66444,8249,18790,82150,54084,84469,3426,50226,99868,88894,43769,66384,8593,41414,2976,60053,51866,87904,74135,53842,59520,67482,16995,32328,29555,49067,2799,68851,41049,97190,53984,99755,46412,45885,64e3,21962,36438,71742,57223,66599,86071,31436,32667,98099,38399,47377,5171,2742,48803,17823,22093,9866,691,5514,25546,2114,5919,56181,96052,67211,61712,25995,3188,23833,38549,44775,55355,61548,55988,47309,23749,30667,70732,33299,16127,30842,78961,41072,9876,18903,30292,25275,61881,15939,72573,84502,92654,97226,53434,77025,63892,12421,33644,39445,30933,84218,13757,37719,84450,2697,60309,22402,80310,92771,45205,72792,95776,85945,74651,216,50842,47854,21916,61588,75405,10495,83083,60427,78495,99809,47890,22993,21508,9459,26845,98130,1184,46438,27698,40652,65654,98517,1096,6998,49133,57041,77983,58708,42176,67356,324,70063,10597,65205,25622,34336,16640,27896,26907,86760,48244,89650,44997,51609,28934,9171,97859,97213,19859,41037,64081,94781,27683,41521,52871,86935,26486,38744,25943,60617,6414,42292,46204,53262,30201,38776,88831,97253,67282,72860,18452,60927,81504,57713,30296,10896,39900,67135,42772,4631,55283,39253,25264,1809,12874,88035,88421,90491,83290,6884,15444,90113,20406,20796,40239,34431,15018,45600,17241,26611,9551,89126,65673,31708,91252,39647,63011,24193,58932,89326,33491,53217,27976,70151,37531,53576,23931,11789,73073,52171,89301,51718,15385,79487,66436,35771,34163,86540,42665,80748,77622,14679,40185,25030,42622,13162,17048,24243,59985,59807,60562,3595,10135,29199,69784,59796,38194,58432,50943,40422,63035,3208,81440,90749,88046,32218,88092,22224,2627,91576,16781,43948,57795,71073,27817,87077,82717,24473,42096,76920,88864,90537,14715,42551,45066,24316,37361,38582,21871,14672,93362,21727,57021,94313,39562,64985,94028,46094,43845,91838,79574,7597,3153,56783,18817,74711,6883,91061,31674,73729,99315,66183,57647,74484,68077,33224,397,56753,53158,71872,68153,9298,20961,49656,33407,95683,14328,44708,72952,27048,67887,28741,46752,88177,95894,40086,88534,87112,68614,83073,88794,96799,67588,75049,84603,83140,97347,87316,73087,77135,71883,98643,3808,8848,14133,60447,1366,72976,1868,51667,63279,60040,88264,79152,3474,61366,20523,21584,93712,83654,89761,90154,96345,37539,32556,74254,70603,97122,44978,78028,8943,13778,11080,34271,68276,85372,48410,94516,15427,75323,71685,70774,50342,33771,3678,42321,69788,41758,55004,30992,17402,63523,42328,87171,24751,15084,33884,83655,88345,69602,52606,57886,18034,3381,75796,35901,77480,28683,68324,66035,7223,14926,16128,13645,90370,31949,11057,98849,29499,21565,30786,83292,92392,37104,36899,49906,79368,43710,80365,88735,75275,21664,57965,19002,301,12658,94385,1717,96191,50404,80166,93965,24688,27839,10812,31715,92127,42588,93307,80834,11317,26583,25769,98227,14884,58462,29148,68662,26872,72927,79021,51622,29521,33355,45701,45996,33782,93424,16530,96086,17329,74020,11501,46660,5583,22277,77653,55430,84644,448,86828,58855,67451,95264,67386,82424,52611,60012,88620,72894,94716,22262,99813,69592,63464,33163,91857,47904,22209,78590,68615,52952,31441,41313,18550,72685,68825,4795,53971,14592,39634,23682,76630,2731,81481,86542,23727,54291,56045,61635,32186,9355,73416,63532,24340,18886,84832,30654,48543,18339,65024,91197,64624,74648,9660,27897,49771,11123,8732,49393,12911,72416,17834,18878,62754,85072,23727,56577,51257,83291,12329,16203,91681,68137,79959,43609,58987,2026,42969,59144,84349,75214,76972,22633,64104,53799,16851,99197,70476,77113,46320,88693,37711,96536,68156,7119,2104,49435,77706,18924,24957,92406,87148,70482,36491,42605,54440,7893,31618,35707,65130,30007,75706,77266,37100,9601,87681,42543,69847,81848,32034,49429,99434,62209,17125,55227,61634,52574,83649,28725,70119,62467,80676,21192,99584,21310,25292,72781,17186,10393,98390,19789,92931,36234,62627,23437,3885,58822,82941,43806,8172,23790,72295,36196,98200,2889,87619,13846,56197,27151,21238,48794,81100,62643,40001,39243,33213,78416,194,91369,79342,36404,52308,13741,24442,88610,12659,11574,70052,93039,79367,41792,61816,35435,47192,97596,28330,41145,16918,62865,9576,45857,68737,90124,16703,7071,48433,57222,34435,800,72496,16449,68187,28739,97672,86818,50768,40807,88681,64340,2224,19703,59245,90905,31239,84216,93942,97371,16842,92168,52692,16064,84686,89444,27938,98406,41365,4515,20494,18813,16242,10634,61566,18592,78057,8720,33739,78345,87693,30242,70545,55521,23687,9160,8655,38811,61768,7228,5567,5561,82071,85,50145,23113,97761,88441,14891,72188,85166,37189,75671,81377,92470,73645,93258,6610,12185,43065,26704,47922,56650,7527,18006,56948,51675,16658,66402,1047,81624,77395,62310,73262,66050,57275,32936,87641,51528,58183,21952,84098,28913,28622,18140,89796,41317,93954,67690,64667,57092,21315,4731,76115,77291,11204,8634,93034,27411,27149,13843,9817,9407,84492,28444,59901,14592,89654,66207,66232,80293,74502,36925,55515,10121,16768,4720,71502,40500,21406,571,87320,81683,42788,86367,44686,22159,67015,35892,49668,83991,72088,30210,74009,86370,97956,2132,93512,54819,26094,51409,21485,94764,85806,13393,48543,7042,76538,64224,47909,9994,23750,17351,52141,30486,60380,86546,66606,36913,58173,45709,83679,82617,23381,9603,61107,566,6572,64745,10614,86371,43244,97154,10397,50975,68006,20045,16942,25536,74031,31807,70133,78790,40341,68730,39635,39013,66841,44043,96215,21270,59427,25034,40645,84741,52083,54503,36861,27659,95463,53847,40921,70116,61536,56756,8967,31079,20097,76014,99818,16606,19713,66904,27106,24874,96701,73287,76772,6073,57343,51428,91171,28299,17520,64903,4177,36071,94952,59008,28543,11576,74547,13260,20688,41261,2780,6633,37536,8844,95774,49323,30448,14154,83379,71259,23302,68402,43750,88505,15575,44927,6584,29867,21541,65763,12154,86616,79877,73259,68626,98962,68548,86576,48046,51755,64995,3661,64585,81550,46798,49319,50206,22024,5175,12923,23427,55915,91723,55831,83784,81034,86779,34622,84570,18960,48798,42970,95789,39465,82353,68905,44234,18244,54345,5592,89361,14644,67924,66415,89349,88530,72096,44459,5258,48317,48866,56886,90458,75889,4514,37227,11302,4667,2129,80414,86289,15887,87380,50749,83220,50529,20619,11606,36531,23409,78122,19566,76564,33045,66703,30017,35347,35038,12952,13971,3922,98702,11786,38388,69556,76728,60535,59961,23634,42211,98387,34880,27755,93182,99040,96390,65989,38375,3652,59657,57431,24666,11061,64713,85185,72849,58611,31220,26657,77056,24553,24993,5210,89024,32054,46997,92652,28363,98992,22593,97710,47766,37646,93573,95502,33790,92973,27766,62671,89698,10877,73893,41004,96035,18795,48080,59666,30241,35233,87353,43647,13404,41982,19264,29229,61369,8309,39383,42305,25944,13577,51545,68990,69801,37145,79189,55897,57793,66816,21930,56771,79296,73793,21632,42301,23696,72641,56310,85576,3004,25669,69221,32996,23040,65782,23712,13414,10758,15590,97298,74246,51511,46900,36795,38292,3852,6384,84421,3446,91670,45312,27609,87034,6683,83891,88991,16533,9197,34427,60384,48525,90978,46107,21693,12956,21804,46558,37682,81207,85840,53238,35026,4835,53264,41376,17783,64756,39278,25403,33042,20954,31193,24247,45911,92453,25370,86602,48574,57865,26436,16122,76614,17028,21262,59718,77821,14036,31033,90563,45410,15158,90209,84089,38053,60780,54166,14255,33120,27171,71798,91214,80040,56699,12475,40193,59415,4769,75920,1036,2692,75862,16612,73670,61182,3305,90334,187,91659,28063,75684,50017,82643,9282,77376,85469,8164,5584,36623,82597,83859,3435,98460,70095,80257,4381,6501,8924,35514,14297,54373,71369,5172,15955,82441,4636,48215,6821,3385,17663,40107,55679,30366,42390,95895,16083,58499,17176,55993,51034,49296,4010,78974,35930,2019,96226,27167,68245,53109,59037,37843,79243,10262,58797,61490,82590,52411,54783,29447,94551,30026,97959,93939,73217,82573,62154,78291,33728,39102,11484,86210,43794,73553,87435,1110,77108,56521,78610,8254,1842,43068,70415,79195,26136,49786,47279,38471,20379,54704,86614,91138,51595,50818,80186,73087,17262,94735,4952,27935,4928,74862,51392,62388,9570,38485,30594,56278,47395,72762,94597,72279,16010,34697,54475,67874,78014,88381,4045,41494,55178,46054,24373,1824,55333,7525,97908,61178,84635,2199,35361,4803,21907,79414,66083,54782,58692,28332,41851,28198,55819,37313,67046,16147,90478,71230,34141,85002,44332,35906,429,39744,773,22909,19536,98986,90945,45209,85439,92265,25291,22775,60611,49159,95701,36113,53923,60824,84935,29656,50007,86624,61691,76150,32187,42765,60660,13859,10792,88210,29374,29563,45188,28811,19739,67649,73775,99247,48414,91067,68253,9452,90116,91737,73979,62370,69112,58791,20349,71480,56852,36919,87977,77609,68738,85159,4918,70076,46473,4122,57713,1426,50987,77910,66211,62546,77749,96462,34304,77441,12104,91805,10287,60943,49632,83116,25716,23113,22707,77770,31176,6759,46130,4739,55554,3843,31653,70834,72877,41561,36903,23010,6663,2266,16360,70118,91936,17098,77278,4880,23484,94970,41826,46733,93484,68350,38861,18134,32936,241,24803,13876,93278,5039,35873,44418,5305,28510,36115,46717,15238,78607,23464,68635,55712,55007,92411,65739,4858,67537,37041,67453,89801,45963,14800,14225,65655,80463,9716,77255,65136,11230,76323,81433,36445,86523,61058,59560,19380,40791,48073,29626,36661,87907,57369,41623,13705,3880,45088,55444,41003,27754,1450,75312,71801,99600,60719,54182,29245,63315,73758,42973,32702,10855,56363,14638,84424,27178,78195,3133,70865,48019,26117,7151,52107,85562,41347,50486,69457,86961,95482,11857,93587,45680,42145,13029,10043,5142,49213,54525,85761,42707,70754,33768,87671,85038,58900,88438,20004,63390,14815,38875,73417,82875,89481,55517,944,15773,61814,32915,27868,5510,21916,28426,89881,16680,88850,11056,51991,4230,39107,49216,40065,4523,75848,95349,56034,10724,9885,88232,42478,65702,95696,39746,66032,88082,86905,30007,75068,66629,7358,26706,90511,72843,67857,20061,98581,69682,38e3,14186,70,2290,17269,30909,69449,19997,13275,2444,84985,51290,97641,15092,69650,21920,19617,7418,49725,91090,20805,28627,80665,67192,34697,57667,99323,50101,40587,35081,14037,34414,19898,60779,83267,87499,29596,41852,15813,32419,72232,8322,39184,46525,13833,65743,94595,37363,4711,35386,96413,10627,62625,56555,12919,93218,25191,98380,51923,66181,5788,73491,1452,487,12277,45415,11884,61300,94528,9181,26616,11455,31514,63290,45035,42759,33804,85721,80979,46010,50975,72482,31231,3086,58941,46102,25773,89742,29788,96741,88523,14922,88262,76305,57676,93259,2396,69145,26074,30056,3853,75317,56639,66203,38923,48939,22813,91864,10934,6714,84099,25631,73223,95630,97552,45950,22197,42886,33764,1263,41856,82057,62349,94091,78028,62651,18911,5693,92561,97821,41994,92343,76785,22216,4203,5038,86151,23596,24338,77181,51761,97693,10955,98159,37568,58932,72128,27303,99608,31688,57557,91022,43036,93927,32869,53653,55205,33139,47271,31224,51650,36422,86857,73799,22068,43376,84760,44898,65776,42451,71480,38509,41673,44141,75918,95652,68981,83001,48815,98086,67950,27986,33175,43624,55274,71051,61124,51550,64967,31570,15748,19159,38174,51078,79811,39183,57527,96550,85168,28824,47466,56993,13151,96664,29735,70251,1079,4314,77714,11507,1440,48415,31984,99915,20282,26524,18057,4992,40521,98108,84045,91961,79256,72244,25788,5487,23595,73302,14205,8925,27625,64343,28821,37992,67156,83320,31106,10884,30735,15067,51091,15668,48777,50770,19169,76504,41165,29749,92812,8065,66782,26841,1411,95461,61134,18699,52261,60469,81373,44825,11448,73320,30151,56991,31372,6655,36472,86292,30247,30931,21029,53410,9859,37267,47514,3492,49008,94727,25234,40546,53417,36492,25723,76227,58456,15979,34876,9574,34392,3751,36933,83921,65108,63135,67572,40184,21098],Yn=new Array(16),Xn=[16,8,16,24],Jn=4,Qn=0;function Kn(t,e){var r=e-t+1,n=0,i=1;do{for(n=0,i=1;i<r;i*=10)n=10*n+(Jn<0&&(Jn=4,Qn++),Vn[Qn]%Math.pow(10,Jn+1)/Math.pow(10,Jn--)|0)}while(n>=(i/r|0)*r);return t+n%r|0}!function(t){for(var e=0;e<16;e++){Yn[e]=new Array(256);for(var r=0;r<256;r++)Yn[e][r]=r|r<<8|r<<16|r<<24|0;for(var n=3;n>=0;n--)for(var i=0;i<255;i++){var a=255<<(n<<3),o=0|Yn[e][i],s=Kn(i,255);Yn[e][i]=Yn[e][i]&~a|Yn[e][s]&a|0,Yn[e][s]=Yn[e][s]&~a|o&a|0}}}();var ti=function(t){function e(t){var n;return r(this,e),(t=t||{}).length=t.length||128,t.rounds=t.rounds||8,(n=Zn(this,e,[t])).blockSize=16-n.state.hash.length,n.blockSizeInBytes=n.blockSize*n.unitSize,n.W=new Array(16),n}return h(e,t),o(e,[{key:"reset",value:function(){Mr(l(e.prototype),"reset",this).call(this),this.state.hash=new Array(this.options.length/32|0);for(var t=0;t<this.state.hash.length;t++)this.state.hash[t]=0}},{key:"processBlock",value:function(t){for(var e=0;e<this.state.hash.length;e++)this.W[e]=0|this.state.hash[e];for(var r=this.state.hash.length;r<16;r++)this.W[r]=0|t[r-this.state.hash.length];for(var n=0;n<this.options.rounds<<1;n+=2)for(var i=0;i<4;i++){for(var a=0;a<16;a++){var o=0|Yn[n+(a/2|0)%2][255&this.W[a]];this.W[a-1>>>0&15]^=o,this.W[a+1&15]^=o}for(var s=0;s<16;s++)this.W[s]=Fr(this.W[s],Xn[i])}for(var u=0;u<this.state.hash.length;u++)this.state.hash[u]=this.state.hash[u]^this.W[15-u]|0}},{key:"finalize",value:function(){return this.state.message.length>0&&this.addPaddingZero(this.blockSizeInBytes-this.state.message.length|0),this.addPaddingZero(this.blockSizeInBytes-8|0),this.addLengthBits(),this.process(),this.getStateHash()}}]),e}(En);const ei=ti;function ri(t,e,r){return e=l(e),u(t,ni()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function ni(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ni=function(){return!!t})()}var ii=new Array(256),ai=[104,208,235,43,72,157,106,228,227,163,86,129,125,241,133,158,44,142,120,202,23,169,97,213,93,11,140,60,119,81,34,66,63,84,65,128,204,134,179,24,46,87,6,98,244,54,209,107,27,101,117,16,218,73,38,249,203,102,231,186,174,80,82,171,5,240,13,115,59,4,32,254,221,245,180,95,10,181,192,160,113,165,45,96,114,147,57,8,131,33,92,135,177,224,0,195,18,145,138,2,28,230,69,194,196,253,191,68,161,76,51,197,132,35,124,176,37,21,53,105,255,148,77,112,162,175,205,214,108,183,248,9,243,103,164,234,236,182,212,210,20,30,225,36,56,198,219,75,122,58,222,94,223,149,252,170,215,206,7,15,61,88,154,152,156,242,167,17,126,139,67,3,226,220,229,178,78,199,109,233,39,64,216,55,146,143,1,29,83,62,89,193,79,50,22,250,116,251,99,159,52,26,42,90,141,201,207,246,144,40,136,155,49,14,189,74,232,150,166,12,200,121,188,190,239,110,70,151,91,237,25,217,172,153,168,41,100,31,173,85,19,187,247,111,185,71,47,238,184,123,137,48,211,127,118,130],oi=[1,11,9,12,13,6,15,3,14,8,7,4,10,2,5,0],si=[7,12,11,13,14,4,9,15,6,3,8,10,2,5,1,0],ui=new Array(16),li=[1,1,4,1,8,5,2,9],ci=[1,1,3,1,5,8,9,5],hi=new Array(512),fi=new Array(22),di=new Array(512),pi=new Array(22),mi=new Array(512),gi=new Array(22);function bi(t,e){for(var r=new Array(512),n=new Array(22),i=0;i<8;i++)r[i]=[];for(var a=0;a<256;a++){var o=new Array(10);o[1]=t[a],o[2]=o[1]<<1,o[2]>=256&&(o[2]^=285),o[3]=o[2]^o[1],o[4]=o[2]<<1,o[4]>=256&&(o[4]^=285),o[5]=o[4]^o[1],o[8]=o[4]<<1,o[8]>=256&&(o[8]^=285),o[9]=o[8]^o[1],r[0][2*a]=o[e[0]]<<24|o[e[1]]<<16|o[e[2]]<<8|o[e[3]],r[0][2*a+1]=o[e[4]]<<24|o[e[5]]<<16|o[e[6]]<<8|o[e[7]];for(var s=1;s<8;s++)r[s][2*a]=Ur(r[0][2*a+1],r[0][2*a],s<<3),r[s][2*a+1]=Nr(r[0][2*a+1],r[0][2*a],s<<3)}n[0]=0,n[1]=0;for(var u=1;u<=10;u++)n[2*u]=4278190080&r[0][16*u-16]^16711680&r[1][16*u-14]^65280&r[2][16*u-12]^255&r[3][16*u-10],n[2*u+1]=4278190080&r[4][16*u-7]^16711680&r[5][16*u-5]^65280&r[6][16*u-3]^255&r[7][16*u-1];return[r,n]}!function(){!function(){for(var t=0;t<16;t++)ui[oi[t]]=0|t;for(var e=0;e<256;e++){var r=oi[e>>4],n=ui[15&e],i=si[r^n];ii[e]=oi[r^i]<<4|ui[n^i]}}();var t=bi(ai,ci);di=t[0],pi=t[1],t=bi(ii,ci),mi=t[0],gi=t[1],t=bi(ii,li),hi=t[0],fi=t[1]}();var vi=function(t){function e(t){var n;switch(r(this,e),(t=t||{}).type=t.type||"",t.rounds=t.rounds||10,(n=ri(this,e,[t])).options.type){case"0":case 0:n.C=di,n.RC=pi;break;case"t":n.C=mi,n.RC=gi;break;default:n.C=hi,n.RC=fi}return n}return h(e,t),o(e,[{key:"reset",value:function(){Mr(l(e.prototype),"reset",this).call(this),this.state.hash=new Array(16);for(var t=0;t<16;t++)this.state.hash[t]=0}},{key:"processBlock",value:function(t){for(var e=new Array(16),r=[],n=0;n<16;n++)r[n]=t[n]^(e[n]=this.state.hash[n])|0;for(var i=[],a=1;a<=this.options.rounds;a++){for(var o=0;o<8;o++){i[2*o]=0,i[2*o+1]=0;for(var s=0,u=56,l=0;s<8;s++,l=(u-=8)<32?1:0)i[2*o]^=this.C[s][2*(e[2*(o-s&7)+l]>>>u%32&255)],i[2*o+1]^=this.C[s][2*(e[2*(o-s&7)+l]>>>u%32&255)+1]}for(var c=0;c<16;c++)e[c]=i[c];e[0]^=this.RC[2*a],e[1]^=this.RC[2*a+1];for(var h=0;h<8;h++){i[2*h]=e[2*h],i[2*h+1]=e[2*h+1];for(var f=0,d=56,p=0;f<8;f++,p=(d-=8)<32?1:0)i[2*h]^=this.C[f][2*(r[2*(h-f&7)+p]>>>d%32&255)],i[2*h+1]^=this.C[f][2*(r[2*(h-f&7)+p]>>>d%32&255)+1]}for(var m=0;m<16;m++)r[m]=i[m]}for(var g=0;g<16;g++)this.state.hash[g]^=r[g]^t[g]}},{key:"finalize",value:function(){return this.addPaddingISO7816(this.state.message.length<32?56-this.state.message.length|0:120-this.state.message.length|0),this.addLengthBits(),this.process(),this.getStateHash()}}]),e}(En);const yi=vi;function wi(t){for(var e="",r=0,n=t.length;r<n;r++){var i=t.charCodeAt(r);i<128?e+=String.fromCharCode(i):i<2048?(e+=String.fromCharCode(192|i>>6),e+=String.fromCharCode(128|63&i)):i<55296||i>=57344?(e+=String.fromCharCode(224|i>>12),e+=String.fromCharCode(128|i>>6&63),e+=String.fromCharCode(128|63&i)):(r++,i=65536+((1023&i)<<10|1023&t.charCodeAt(r)),e+=String.fromCharCode(240|i>>18),e+=String.fromCharCode(128|i>>12&63),e+=String.fromCharCode(128|i>>6&63),e+=String.fromCharCode(128|63&i))}return e}function _i(t){for(var e="",r=new Uint8Array(t),n=0;n<r.length;n++)e+=String.fromCharCode(r[n]);return e}function ki(t){for(var e="",r=0,n=t.length;r<n;r++)e+=(t.charCodeAt(r)<16?"0":"")+t.charCodeAt(r).toString(16);return e}var Bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function xi(t){for(var e="",r=t.length-t.length%3|0,n=0,i=0;i<r;i+=3)n=t.charCodeAt(i)<<16|t.charCodeAt(i+1)<<8|t.charCodeAt(i+2),e+=Bi.charAt(n>>18)+Bi.charAt(n>>12&63)+Bi.charAt(n>>6&63)+Bi.charAt(63&n);return t.length-r==2?(n=t.charCodeAt(r)<<16|t.charCodeAt(r+1)<<8,e+=Bi.charAt(n>>18)+Bi.charAt(n>>12&63)+Bi.charAt(n>>6&63)+"="):t.length-r==1&&(n=t.charCodeAt(r)<<16,e+=Bi.charAt(n>>18)+Bi.charAt(n>>12&63)+"=="),e}var Ei=function(){function t(e,n){r(this,t),e.length>n.blockSizeInBytes&&(n.update(e),e=n.finalize(),n.reset());for(var i=e.length;i<n.blockSizeInBytes;i++)e+="\0";this.oPad="";for(var a=0;a<e.length;a++)n.update(String.fromCharCode(54^e.charCodeAt(a))),this.oPad+=String.fromCharCode(92^e.charCodeAt(a));this.hasher=n}return o(t,[{key:"update",value:function(t){this.hasher.update(t)}},{key:"finalize",value:function(){var t=this.hasher.finalize();return this.hasher.reset(),this.hasher.update(this.oPad),this.hasher.update(t),this.hasher.finalize()}}]),t}();const Ci=Ei;var Ai=function(){function t(){r(this,t),this.encoder={},this.encoder.fromUtf=wi,this.encoder.fromArrayBuffer=_i,this.encoder.toHex=ki,this.encoder.toBase64=xi}return o(t,[{key:"getHasher",value:function(t,e){switch(e=e||{},t){case"has160":return new Zr(e);case"md2":return new tn(e);case"md4":return new sn(e);case"md5":return new dn(e);case"ripemd128":return e=Object.assign({},{length:128},e),new _n(e);case"ripemd":case"ripemd160":return e=Object.assign({},{length:160},e),new _n(e);case"ripemd256":return e=Object.assign({},{length:256},e),new _n(e);case"ripemd320":return e=Object.assign({},{length:320},e),new _n(e);case"sha0":return new Pn(e);case"sha1":return new On(e);case"sha224":return e=Object.assign({},{length:224},e),new zn(e);case"sha256":return e=Object.assign({},{length:256},e),new zn(e);case"sha384":return e=Object.assign({},{length:384},e),new qn(e);case"sha512":return e=Object.assign({},{length:512},e),new qn(e);case"sha512/224":return e=Object.assign({},{length:224},e),new qn(e);case"sha512/256":return e=Object.assign({},{length:256},e),new qn(e);case"snefru":case"snefru128":case"snefru128/8":return e=Object.assign({},{length:128},e),new ei(e);case"snefru256":case"snefru256/8":return e=Object.assign({},{length:256},e),new ei(e);case"snefru128/2":return e=Object.assign({},{length:128,rounds:2},e),new ei(e);case"snefru256/4":return e=Object.assign({},{length:256,rounds:4},e),new ei(e);case"whirlpool":return new yi(e);case"whirlpool-0":return e=Object.assign({},{type:"0"},e),new yi(e);case"whirlpool-t":return e=Object.assign({},{type:"t"},e),new yi(e)}}},{key:"hash",value:function(t,e,r){r=r||{};var n=this.getHasher(t,r);return n.update(wi(e)),ki(n.finalize())}},{key:"getHmac",value:function(t,e){return new Ci(t,e)}},{key:"hmac",value:function(t,e,r){var n=this.getHmac(wi(t),r);return n.update(wi(e)),ki(n.finalize())}}]),t}();const Ii=Ai=new Ai;function Mi(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=O.arrayBufferToStr(e,!1),i=Ii.getHasher(t,r);return i.update(n),Ii.encoder.toHex(i.finalize())}function Pi(t,e,r){return e=l(e),u(t,Si()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Si(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Si=function(){return!!t})()}const Ti=function(t){function n(){var t;return r(this,n),(t=Pi(this,n)).name="Randomize Colour Palette",t.module="Image",t.description="Randomizes each colour in an image's colour palette. This can often reveal text or symbols that were previously a very similar colour to their surroundings, a technique sometimes used in Steganography.",t.infoURL="https://wikipedia.org/wiki/Indexed_color",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Seed",type:"string",value:""}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ct(e)){t.next=2;break}throw new B("Please enter a valid image file.");case 2:return n=r[0]||Math.random().toString().substr(2),t.next=5,ie().read(e);case 5:return i=t.sent,a=i.bitmap.width,o=i.bitmap.height,i.scan(0,0,a,o,(function(t,e,r){s=this.bitmap.data.slice(r,r+3).join("."),u=Mi("md5",O.strToArrayBuffer(n+s)),l=u.substr(0,6)+"ff",i.setPixelColor(parseInt(l,16),t,e)})),t.next=11,i.getBufferAsync(ie().AUTO);case 11:return c=t.sent,t.abrupt("return",new Uint8Array(c).buffer);case 13:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){return t.byteLength?`<img src="data:${Ct(t)};base64,${x(t)}">`:""}}]),n}(re);function Ri(t,e){if("string"!=typeof e)throw"'unpack' error. Got invalid type argument.";for(var r,n=0,i=1;i<t.length;i++)if("b"==t[i].toLowerCase())n+=1;else if("h"==t[i].toLowerCase())n+=2;else{if("l"!=t[i].toLowerCase())throw"'unpack' error. Got invalid mark.";n+=4}if(n!=e.length)throw"'unpack' error. Mismatch between symbol and string length. "+n+":"+e.length;if("<"==t[0])r=!0;else{if(">"!=t[0])throw"'unpack' error.";r=!1}for(var a=[],o=0,s=1,u=null,l=null,c=null,h="";l=t[s];){if("b"==l.toLowerCase())c=1,u=(h=e.slice(o,o+c)).charCodeAt(0),"b"==l&&u>=128&&(u-=256);else if("H"==l)c=2,h=e.slice(o,o+c),r&&(h=h.split("").reverse().join("")),u=256*h.charCodeAt(0)+h.charCodeAt(1);else{if("l"!=l.toLowerCase())throw"'unpack' error. "+l;c=4,h=e.slice(o,o+c),r&&(h=h.split("").reverse().join("")),u=16777216*h.charCodeAt(0)+65536*h.charCodeAt(1)+256*h.charCodeAt(2)+h.charCodeAt(3),"l"==l&&u>=2147483648&&(u-=4294967296)}a.push(u),o+=c,s+=1}return a}function Li(t,e,r){return e=l(e),u(t,Oi()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Oi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Oi=function(){return!!t})()}const Fi=function(t){function e(){var t;return r(this,e),(t=Li(this,e)).name="Remove EXIF",t.module="Image",t.description=["Removes EXIF data from a JPEG image.","<br><br>","EXIF data embedded in photos usually contains information about the image file itself as well as the device used to create it."].join("\n"),t.infoURL="https://wikipedia.org/wiki/Exif",t.inputType="ArrayBuffer",t.outputType="byteArray",t.args=[],t}return h(e,t),o(e,[{key:"run",value:function(t,e){if(0===(t=new Uint8Array(t)).length)return t;try{return function(t){if("ÿØ"!=(t=O.byteArrayToChars(t)).slice(0,2))throw"Given data is not jpeg.";var e=function(t){if("ÿØ"!=t.slice(0,2))throw"Given data isn't JPEG.";for(var e=2,r=["ÿØ"];;){if("ÿÚ"==t.slice(e,e+2)){r.push(t.slice(e));break}var n=e+Ri(">H",t.slice(e+2,e+4))[0]+2;if(r.push(t.slice(e,n)),(e=n)>=t.length)throw"Wrong JPEG data."}return r}(t);if("ÿá"==e[1].slice(0,2)&&"Exif\0\0"==e[1].slice(4,10))e=[e[0]].concat(e.slice(2));else{if("ÿá"!=e[2].slice(0,2)||"Exif\0\0"!=e[2].slice(4,10))throw"Exif not found.";e=e.slice(0,2).concat(e.slice(3))}var r=e.join("");return O.strToCharcode(r)}(t)}catch(e){if("Exif not found."===e)return t;throw new B(`Could not remove EXIF data from image: ${e}`)}}}]),e}(re);function Ni(t,e,r){return e=l(e),u(t,Ui()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Ui(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ui=function(){return!!t})()}const Di=function(t){function n(){var t;return r(this,n),(t=Ni(this,n)).name="Render Image",t.module="Image",t.description="Displays the input as an image. Supports the following formats:<br><br><ul><li>jpg/jpeg</li><li>png</li><li>gif</li><li>webp</li><li>bmp</li><li>ico</li></ul>",t.inputType="string",t.outputType="byteArray",t.presentType="html",t.args=[{name:"Input format",type:"option",value:["Raw","Base64","Hex"]}],t.checks=[{pattern:"^(?:\\xff\\xd8\\xff|\\x89\\x50\\x4e\\x47|\\x47\\x49\\x46|.{8}\\x57\\x45\\x42\\x50|\\x42\\x4d)",flags:"",args:["Raw"],useful:!0,output:{mime:"image"}}],t}var i;return h(n,t),o(n,[{key:"run",value:function(t,e){var r=e[0];if(!t.length)return[];switch(r){case"Hex":t=C(t);break;case"Base64":t=E(t,void 0,"byteArray");break;default:t=O.strToByteArray(t)}if(!Ct(t))throw new B("Invalid file type");return t}},{key:"present",value:(i=e(d().mark((function t(e){var r,n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.length){t.next=2;break}return t.abrupt("return","");case 2:if(r="data:",!(n=Ct(e))){t.next=8;break}r+=n+";",t.next=9;break;case 8:throw new B("Invalid file type");case 9:return r+="base64,"+x(e),t.abrupt("return","<img src='"+r+"'>");case 11:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})}]),n}(re);function zi(t,e,r){return e=l(e),u(t,Gi()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Gi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gi=function(){return!!t})()}const ji=function(t){function n(){var t;return r(this,n),(t=zi(this,n)).name="Resize Image",t.module="Image",t.description="Resizes an image to the specified width and height values.",t.infoURL="https://wikipedia.org/wiki/Image_scaling",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Width",type:"number",value:100,min:1},{name:"Height",type:"number",value:100,min:1},{name:"Unit type",type:"option",value:["Pixels","Percent"]},{name:"Maintain aspect ratio",type:"boolean",value:!1},{name:"Resizing algorithm",type:"option",value:["Nearest Neighbour","Bilinear","Bicubic","Hermite","Bezier"],defaultIndex:1}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u={"Nearest Neighbour":ie().RESIZE_NEAREST_NEIGHBOR,Bilinear:ie().RESIZE_BILINEAR,Bicubic:ie().RESIZE_BICUBIC,Hermite:ie().RESIZE_HERMITE,Bezier:ie().RESIZE_BEZIER},Ct(e)){t.next=5;break}throw new B("Invalid file type.");case 5:return t.prev=5,t.next=8,ie().read(e);case 8:l=t.sent,t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new B(`Error loading image. (${t.t0})`);case 14:if(t.prev=14,"Percent"===a&&(n=l.getWidth()*(n/100),i=l.getHeight()*(i/100)),L()&&self.sendStatusMessage("Resizing image..."),o?l.scaleToFit(n,i,u[s]):l.resize(n,i,u[s]),"image/gif"!==l.getMIME()){t.next=24;break}return t.next=21,l.getBufferAsync(ie().MIME_PNG);case 21:c=t.sent,t.next=27;break;case 24:return t.next=26,l.getBufferAsync(ie().AUTO);case 26:c=t.sent;case 27:return t.abrupt("return",c.buffer);case 30:throw t.prev=30,t.t1=t.catch(14),new B(`Error resizing image. (${t.t1})`);case 33:case"end":return t.stop()}}),t,null,[[5,11],[14,30]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function Hi(t,e,r){return e=l(e),u(t,Wi()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Wi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Wi=function(){return!!t})()}const qi=function(t){function n(){var t;return r(this,n),(t=Hi(this,n)).name="Rotate Image",t.module="Image",t.description="Rotates an image by the specified number of degrees.",t.infoURL="",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Rotation amount (degrees)",type:"number",value:90}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,1),i=n[0],Ct(e)){t.next=3;break}throw new B("Invalid file type.");case 3:return t.prev=3,t.next=6,ie().read(e);case 6:a=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new B(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Rotating image..."),a.rotate(i),"image/gif"!==a.getMIME()){t.next=21;break}return t.next=18,a.getBufferAsync(ie().MIME_PNG);case 18:o=t.sent,t.next=24;break;case 21:return t.next=23,a.getBufferAsync(ie().AUTO);case 23:o=t.sent;case 24:return t.abrupt("return",o.buffer);case 27:throw t.prev=27,t.t1=t.catch(12),new B(`Error rotating image. (${t.t1})`);case 30:case"end":return t.stop()}}),t,null,[[3,9],[12,27]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);function Zi(t,e,r){return e=l(e),u(t,$i()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function $i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($i=function(){return!!t})()}const Vi=function(t){function n(){var t;return r(this,n),(t=Zi(this,n)).name="Sharpen Image",t.module="Image",t.description="Sharpens an image (Unsharp mask)",t.infoURL="https://wikipedia.org/wiki/Unsharp_masking",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Radius",type:"number",value:2,min:1},{name:"Amount",type:"number",value:1,min:0,step:.1},{name:"Threshold",type:"number",value:10,min:0,max:100}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=at(r,3),i=n[0],a=n[1],o=n[2],Ct(e)){t.next=3;break}throw new B("Invalid file type.");case 3:return t.prev=3,t.next=6,ie().read(e);case 6:s=t.sent,t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(3),new B(`Error loading image. (${t.t0})`);case 12:if(t.prev=12,L()&&self.sendStatusMessage("Sharpening image... (Cloning image)"),u=s.clone(),L()&&self.sendStatusMessage("Sharpening image... (Blurring cloned image)"),l=ce(s.clone(),i),L()&&self.sendStatusMessage("Sharpening image... (Creating unsharp mask)"),u.scan(0,0,u.bitmap.width,u.bitmap.height,(function(t,e,r){var n=l.bitmap.data[r],i=l.bitmap.data[r+1],a=l.bitmap.data[r+2],o=this.bitmap.data[r],s=this.bitmap.data[r+1],u=this.bitmap.data[r+2];this.bitmap.data[r]=o>n?o-n:0,this.bitmap.data[r+1]=s>i?s-i:0,this.bitmap.data[r+2]=u>a?u-a:0})),L()&&self.sendStatusMessage("Sharpening image... (Merging with unsharp mask)"),s.scan(0,0,s.bitmap.width,s.bitmap.height,(function(t,e,r){var n=u.bitmap.data[r],i=u.bitmap.data[r+1],s=u.bitmap.data[r+2],l=this.bitmap.data[r],c=this.bitmap.data[r+1],h=this.bitmap.data[r+2],f=.2126*n+.7152*i+.0722*s,d=.2126*l+.7152*c+.0722*h;n*=a,i*=a,s*=a,(f>d?f-d:d-f)/255*100>=o&&(this.bitmap.data[r]=l+n<=255?l+n:255,this.bitmap.data[r+1]=c+i<=255?c+i:255,this.bitmap.data[r+2]=h+s<=255?h+s:255)})),"image/gif"!==s.getMIME()){t.next=27;break}return t.next=24,s.getBufferAsync(ie().MIME_PNG);case 24:c=t.sent,t.next=30;break;case 27:return t.next=29,s.getBufferAsync(ie().AUTO);case 29:c=t.sent;case 30:return t.abrupt("return",c.buffer);case 33:throw t.prev=33,t.t1=t.catch(12),new B(`Error sharpening image. (${t.t1})`);case 36:case"end":return t.stop()}}),t,null,[[3,9],[12,33]])}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){if(!t.byteLength)return"";var e=new Uint8Array(t),r=Ct(e);if(!r)throw new B("Invalid file type.");return`<img src="data:${r};base64,${x(e)}">`}}]),n}(re);var Yi=__webpack_require__(33296).Buffer;function Xi(t,e,r){return e=l(e),u(t,Ji()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function Ji(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ji=function(){return!!t})()}const Qi=function(t){function n(){var t;return r(this,n),(t=Xi(this,n)).name="Split Colour Channels",t.module="Image",t.description="Splits the given image into its red, green and blue colour channels.",t.infoURL="https://wikipedia.org/wiki/Channel_(digital_image)",t.inputType="ArrayBuffer",t.outputType="List<File>",t.presentType="html",t.args=[],t}var i,a;return h(n,t),o(n,[{key:"run",value:(a=e(d().mark((function t(r,n){var i,a,o,s;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ct(r=new Uint8Array(r))){t.next=3;break}throw new B("Invalid file type.");case 3:return t.next=5,ie().read(Yi.from(r));case 5:return i=t.sent,a=new Promise(function(){var t=e(d().mark((function t(e,r){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=i.clone().color([{apply:"blue",params:[-255]},{apply:"green",params:[-255]}]).getBufferAsync(ie().MIME_PNG),t.t0=e,t.t1=File,t.t2=Uint8Array,t.next=7,n;case 7:t.t3=t.sent.values(),t.t4=new t.t2(t.t3),t.t5=[t.t4],t.t6={type:"image/png"},t.t7=new t.t1(t.t5,"red.png",t.t6),(0,t.t0)(t.t7),t.next=18;break;case 15:t.prev=15,t.t8=t.catch(0),r(new B(`Could not split red channel: ${t.t8}`));case 18:case"end":return t.stop()}}),t,null,[[0,15]])})));return function(e,r){return t.apply(this,arguments)}}()),o=new Promise(function(){var t=e(d().mark((function t(e,r){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=i.clone().color([{apply:"red",params:[-255]},{apply:"blue",params:[-255]}]).getBufferAsync(ie().MIME_PNG),t.t0=e,t.t1=File,t.t2=Uint8Array,t.next=7,n;case 7:t.t3=t.sent.values(),t.t4=new t.t2(t.t3),t.t5=[t.t4],t.t6={type:"image/png"},t.t7=new t.t1(t.t5,"green.png",t.t6),(0,t.t0)(t.t7),t.next=18;break;case 15:t.prev=15,t.t8=t.catch(0),r(new B(`Could not split green channel: ${t.t8}`));case 18:case"end":return t.stop()}}),t,null,[[0,15]])})));return function(e,r){return t.apply(this,arguments)}}()),s=new Promise(function(){var t=e(d().mark((function t(e,r){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=i.color([{apply:"red",params:[-255]},{apply:"green",params:[-255]}]).getBufferAsync(ie().MIME_PNG),t.t0=e,t.t1=File,t.t2=Uint8Array,t.next=7,n;case 7:t.t3=t.sent.values(),t.t4=new t.t2(t.t3),t.t5=[t.t4],t.t6={type:"image/png"},t.t7=new t.t1(t.t5,"blue.png",t.t6),(0,t.t0)(t.t7),t.next=18;break;case 15:t.prev=15,t.t8=t.catch(0),r(new B(`Could not split blue channel: ${t.t8}`));case 18:case"end":return t.stop()}}),t,null,[[0,15]])})));return function(e,r){return t.apply(this,arguments)}}()),t.next=11,Promise.all([a,o,s]);case 11:return t.abrupt("return",t.sent);case 12:case"end":return t.stop()}}),t)}))),function(t,e){return a.apply(this,arguments)})},{key:"present",value:(i=e(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O.displayFilesAsHTML(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})}]),n}(re);function Ki(t,e,r){return e=l(e),u(t,ta()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}function ta(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ta=function(){return!!t})()}var ea=function(t){function n(){var t;return r(this,n),(t=Ki(this,n)).name="View Bit Plane",t.module="Image",t.description="Extracts and displays a bit plane of any given image. These show only a single bit from each pixel, and can be used to hide messages in Steganography.",t.infoURL="https://wikipedia.org/wiki/Bit_plane",t.inputType="ArrayBuffer",t.outputType="ArrayBuffer",t.presentType="html",t.args=[{name:"Colour",type:"option",value:ra},{name:"Bit",type:"number",value:0}],t}var i;return h(n,t),o(n,[{key:"run",value:(i=e(d().mark((function t(e,r){var n,i,a,o,s,u,l,c,h,f,p,m;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ct(e)){t.next=2;break}throw new B("Please enter a valid image file.");case 2:return n=at(r,2),i=n[0],a=n[1],t.next=7,ie().read(e);case 7:if(o=t.sent,s=o.bitmap.width,u=o.bitmap.height,l=ra.indexOf(i),c=7-a,!(a<0||a>7)){t.next=14;break}throw new B("Error: Bit argument must be between 0 and 7");case 14:return o.scan(0,0,s,u,(function(t,e,r){h=this.bitmap.data[r+l],f=O.bin(h),p=255,"1"===f.charAt(c)&&(p=0);for(var n=0;n<3;n++)this.bitmap.data[r+n]=p;this.bitmap.data[r+3]=255})),t.next=17,o.getBufferAsync(ie().AUTO);case 17:return m=t.sent,t.abrupt("return",new Uint8Array(m).buffer);case 19:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})},{key:"present",value:function(t){return t.byteLength?`<img src="data:${Ct(t)};base64,${x(t)}">`:""}}]),n}(re),ra=["Red","Green","Blue","Alpha"];const na=ea;("undefined"==typeof self?{}:self.OpModules||{}).Image={"Add Text To Image":le,"Blur Image":pe,"Contain Image":be,"Convert Image Format":we,"Cover Image":Be,"Crop Image":Ce,"Dither Image":Me,"Extract EXIF":Le,"Extract LSB":Ge,"Extract RGBA":qe,"Flip Image":Ve,"Generate Image":Qe,"Generate QR Code":sr,"Image Brightness / Contrast":cr,"Image Filter":dr,"Image Hue/Saturation/Lightness":gr,"Image Opacity":yr,"Invert Image":kr,"Normalise Image":Er,"Parse QR Code":Ir,"Randomize Colour Palette":Ti,"Remove EXIF":Fi,"Render Image":Di,"Resize Image":ji,"Rotate Image":qi,"Sharpen Image":Vi,"Split Colour Channels":Qi,"View Bit Plane":na}})()})();