-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
1 lines (1 loc) · 191 KB
/
app.js
1
!function(){"use strict";var e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t){return e(t={exports:{}},t.exports),t.exports}var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s=!1;function o(){s=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)n[t]=e[t],i[e.charCodeAt(t)]=t;i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63}function l(e,t,r){for(var i,a,s=[],o=t;o<r;o+=3)i=(e[o]<<16)+(e[o+1]<<8)+e[o+2],s.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return s.join("")}function u(e){var t;s||o();for(var r=e.length,i=r%3,a="",u=[],h=16383,c=0,f=r-i;c<f;c+=h)u.push(l(e,c,c+h>f?f:c+h));return 1===i?(t=e[r-1],a+=n[t>>2],a+=n[t<<4&63],a+="=="):2===i&&(t=(e[r-2]<<8)+e[r-1],a+=n[t>>10],a+=n[t>>4&63],a+=n[t<<2&63],a+="="),u.push(a),u.join("")}function h(e,t,r,n,i){var a,s,o=8*i-n-1,l=(1<<o)-1,u=l>>1,h=-7,c=r?i-1:0,f=r?-1:1,d=e[t+c];for(c+=f,a=d&(1<<-h)-1,d>>=-h,h+=o;h>0;a=256*a+e[t+c],c+=f,h-=8);for(s=a&(1<<-h)-1,a>>=-h,h+=n;h>0;s=256*s+e[t+c],c+=f,h-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),a-=u}return(d?-1:1)*s*Math.pow(2,a-n)}function c(e,t,r,n,i,a){var s,o,l,u=8*a-i-1,h=(1<<u)-1,c=h>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,m=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=h):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+c>=1?f/l:f*Math.pow(2,1-c))*l>=2&&(s++,l/=2),s+c>=h?(o=0,s=h):s+c>=1?(o=(t*l-1)*Math.pow(2,i),s+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&o,d+=m,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[r+d]=255&s,d+=m,s/=256,u-=8);e[r+d-m]|=128*p}var f={}.toString,d=Array.isArray||function(e){return"[object Array]"==f.call(e)};function m(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function p(e,t){if(m()<t)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=g.prototype:(null===e&&(e=new g(t)),e.length=t),e}function g(e,t,r){if(!(g.TYPED_ARRAY_SUPPORT||this instanceof g))return new g(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return w(this,e)}return v(this,e,t,r)}function v(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);g.TYPED_ARRAY_SUPPORT?(e=t).__proto__=g.prototype:e=b(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!g.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|k(t,r),i=(e=p(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(S(t)){var r=0|_(t.length);return 0===(e=p(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?p(e,0):b(e,t);if("Buffer"===t.type&&d(t.data))return b(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function y(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function w(e,t){if(y(t),e=p(e,t<0?0:0|_(t)),!g.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function b(e,t){var r=t.length<0?0:0|_(t.length);e=p(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function _(e){if(e>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|e}function S(e){return!(null==e||!e._isBuffer)}function k(e,t){if(S(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(n)return K(e).length;t=(""+t).toLowerCase(),n=!0}}function x(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return F(this,t,r);case"base64":return z(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function E(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function C(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=g.from(t,n)),S(t))return 0===t.length?-1:A(e,t,r,n,i);if("number"==typeof t)return t&=255,g.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):A(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,r,n,i){var a,s=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var h=-1;for(a=r;a<o;a++)if(u(e,a)===u(t,-1===h?0:a-h)){if(-1===h&&(h=a),a-h+1===l)return h*s}else-1!==h&&(a-=a-h),h=-1}else for(r+l>o&&(r=o-l),a=r;a>=0;a--){for(var c=!0,f=0;f<l;f++)if(u(e,a+f)!==u(t,f)){c=!1;break}if(c)return a}return-1}function L(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s<n;++s){var o=parseInt(t.substr(2*s,2),16);if(isNaN(o))return s;e[r+s]=o}return s}function B(e,t,r,n){return J(K(t,e.length-r),e,r,n)}function I(e,t,r,n){return J(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function R(e,t,r,n){return I(e,t,r,n)}function T(e,t,r,n){return J(X(t),e,r,n)}function O(e,t,r,n){return J(function(e,t){for(var r,n,i,a=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function z(e,t,r){return 0===t&&r===e.length?u(e):u(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,s,o,l,u=e[i],h=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(h=l);break;case 3:a=e[i+1],s=e[i+2],128==(192&a)&&128==(192&s)&&(l=(15&u)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(h=l)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=M));return r}(n)}g.TYPED_ARRAY_SUPPORT=void 0===e.TYPED_ARRAY_SUPPORT||e.TYPED_ARRAY_SUPPORT,g.poolSize=8192,g._augment=function(e){return e.__proto__=g.prototype,e},g.from=function(e,t,r){return v(null,e,t,r)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array),g.alloc=function(e,t,r){return function(e,t,r,n){return y(t),t<=0?p(e,t):void 0!==r?"string"==typeof n?p(e,t).fill(r,n):p(e,t).fill(r):p(e,t)}(null,e,t,r)},g.allocUnsafe=function(e){return w(null,e)},g.allocUnsafeSlow=function(e){return w(null,e)},g.isBuffer=Q,g.compare=function(e,t){if(!S(e)||!S(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},g.isEncoding=function(e){switch(String(e).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}},g.concat=function(e,t){if(!d(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return g.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=g.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!S(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},g.byteLength=k,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)E(this,t,t+1);return this},g.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},g.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},g.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):x.apply(this,arguments)},g.prototype.equals=function(e){if(!S(e))throw new TypeError("Argument must be a Buffer");return this===e||0===g.compare(this,e)},g.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},g.prototype.compare=function(e,t,r,n,i){if(!S(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),o=Math.min(a,s),l=this.slice(n,i),u=e.slice(t,r),h=0;h<o;++h)if(l[h]!==u[h]){a=l[h],s=u[h];break}return a<s?-1:s<a?1:0},g.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},g.prototype.indexOf=function(e,t,r){return C(this,e,t,r,!0)},g.prototype.lastIndexOf=function(e,t,r){return C(this,e,t,r,!1)},g.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return L(this,e,t,r);case"utf8":case"utf-8":return B(this,e,t,r);case"ascii":return I(this,e,t,r);case"latin1":case"binary":return R(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function F(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function N(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=G(e[a]);return i}function U(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function W(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,i,a){if(!S(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function V(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Z(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function $(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,i){return i||$(e,0,r,4),c(e,t,r,n,23,4),r+4}function q(e,t,r,n,i){return i||$(e,0,r,8),c(e,t,r,n,52,8),r+8}g.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),g.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=g.prototype;else{var i=t-e;r=new g(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},g.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||W(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},g.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||W(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},g.prototype.readUInt8=function(e,t){return t||W(e,1,this.length),this[e]},g.prototype.readUInt16LE=function(e,t){return t||W(e,2,this.length),this[e]|this[e+1]<<8},g.prototype.readUInt16BE=function(e,t){return t||W(e,2,this.length),this[e]<<8|this[e+1]},g.prototype.readUInt32LE=function(e,t){return t||W(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},g.prototype.readUInt32BE=function(e,t){return t||W(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},g.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||W(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},g.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||W(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},g.prototype.readInt8=function(e,t){return t||W(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,t){t||W(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},g.prototype.readInt16BE=function(e,t){t||W(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},g.prototype.readInt32LE=function(e,t){return t||W(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},g.prototype.readInt32BE=function(e,t){return t||W(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},g.prototype.readFloatLE=function(e,t){return t||W(e,4,this.length),h(this,e,!0,23,4)},g.prototype.readFloatBE=function(e,t){return t||W(e,4,this.length),h(this,e,!1,23,4)},g.prototype.readDoubleLE=function(e,t){return t||W(e,8,this.length),h(this,e,!0,52,8)},g.prototype.readDoubleBE=function(e,t){return t||W(e,8,this.length),h(this,e,!1,52,8)},g.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},g.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},g.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,255,0),g.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},g.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},g.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},g.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Z(this,e,t,!0),t+4},g.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Z(this,e,t,!1),t+4},g.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<r&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+r},g.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+r},g.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,127,-128),g.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},g.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},g.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},g.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Z(this,e,t,!0),t+4},g.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Z(this,e,t,!1),t+4},g.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},g.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},g.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},g.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},g.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!g.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},g.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!g.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var s=S(e)?e:K(new g(e,n).toString()),o=s.length;for(a=0;a<r-t;++a)this[a+t]=s[a%o]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=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((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(e){return function(e){var t,r,n,l,u,h;s||o();var c=e.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");u="="===e[c-2]?2:"="===e[c-1]?1:0,h=new a(3*c/4-u),n=u>0?c-4:c;var f=0;for(t=0,r=0;t<n;t+=4,r+=3)l=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)],h[f++]=l>>16&255,h[f++]=l>>8&255,h[f++]=255&l;return 2===u?(l=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,h[f++]=255&l):1===u&&(l=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,h[f++]=l>>8&255,h[f++]=255&l),h}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Q(e){return null!=e&&(!!e._isBuffer||ee(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&ee(e.slice(0,0))}(e))}function ee(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function te(){}function re(){re.init.call(this)}function ne(e){return void 0===e._maxListeners?re.defaultMaxListeners:e._maxListeners}function ie(e,t,r){if(t)e.call(r);else for(var n=e.length,i=fe(e,n),a=0;a<n;++a)i[a].call(r)}function ae(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,a=fe(e,i),s=0;s<i;++s)a[s].call(r,n)}function se(e,t,r,n,i){if(t)e.call(r,n,i);else for(var a=e.length,s=fe(e,a),o=0;o<a;++o)s[o].call(r,n,i)}function oe(e,t,r,n,i,a){if(t)e.call(r,n,i,a);else for(var s=e.length,o=fe(e,s),l=0;l<s;++l)o[l].call(r,n,i,a)}function le(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,a=fe(e,i),s=0;s<i;++s)a[s].apply(r,n)}function ue(e,t,r,n){var i,a,s,o;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]):(a=e._events=new te,e._eventsCount=0),s){if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),!s.warned&&(i=ne(e))&&i>0&&s.length>i){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,o=l,"function"==typeof console.warn?console.warn(o):console.log(o)}}else s=a[t]=r,++e._eventsCount;return e}function he(e,t,r){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,r.apply(e,arguments))}return i.listener=r,i}function ce(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function fe(e,t){for(var r=new Array(t);t--;)r[t]=e[t];return r}function de(){throw new Error("setTimeout has not been defined")}function me(){throw new Error("clearTimeout has not been defined")}te.prototype=Object.create(null),re.EventEmitter=re,re.usingDomains=!1,re.prototype.domain=void 0,re.prototype._events=void 0,re.prototype._maxListeners=void 0,re.defaultMaxListeners=10,re.init=function(){this.domain=null,re.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new te,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},re.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},re.prototype.getMaxListeners=function(){return ne(this)},re.prototype.emit=function(e){var t,r,n,i,a,s,o,l="error"===e;if(s=this._events)l=l&&null==s.error;else if(!l)return!1;if(o=this.domain,l){if(t=arguments[1],!o){if(t instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=o,t.domainThrown=!1,o.emit("error",t),!1}if(!(r=s[e]))return!1;var h="function"==typeof r;switch(n=arguments.length){case 1:ie(r,h,this);break;case 2:ae(r,h,this,arguments[1]);break;case 3:se(r,h,this,arguments[1],arguments[2]);break;case 4:oe(r,h,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),a=1;a<n;a++)i[a-1]=arguments[a];le(r,h,this,i)}return!0},re.prototype.addListener=function(e,t){return ue(this,e,t,!1)},re.prototype.on=re.prototype.addListener,re.prototype.prependListener=function(e,t){return ue(this,e,t,!0)},re.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,he(this,e,t)),this},re.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,he(this,e,t)),this},re.prototype.removeListener=function(e,t){var r,n,i,a,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener&&r.listener===t)0==--this._eventsCount?this._events=new te:(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){s=r[a].listener,i=a;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new te,this;delete n[e]}else!function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i);n.removeListener&&this.emit("removeListener",e,s||t)}return this},re.prototype.removeAllListeners=function(e){var t,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new te,this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=new te:delete r[e]),this;if(0===arguments.length){for(var n,i=Object.keys(r),a=0;a<i.length;++a)"removeListener"!==(n=i[a])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new te,this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},re.prototype.listeners=function(e){var t,r=this._events;return r&&(t=r[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(t):[]},re.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):ce.call(e,t)},re.prototype.listenerCount=ce,re.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var pe=de,ge=me;function ve(e){if(pe===setTimeout)return setTimeout(e,0);if((pe===de||!pe)&&setTimeout)return pe=setTimeout,setTimeout(e,0);try{return pe(e,0)}catch(t){try{return pe.call(null,e,0)}catch(t){return pe.call(this,e,0)}}}"function"==typeof e.setTimeout&&(pe=setTimeout),"function"==typeof e.clearTimeout&&(ge=clearTimeout);var ye,we=[],be=!1,_e=-1;function Se(){be&&ye&&(be=!1,ye.length?we=ye.concat(we):_e=-1,we.length&&ke())}function ke(){if(!be){var e=ve(Se);be=!0;for(var t=we.length;t;){for(ye=we,we=[];++_e<t;)ye&&ye[_e].run();_e=-1,t=we.length}ye=null,be=!1,function(e){if(ge===clearTimeout)return clearTimeout(e);if((ge===me||!ge)&&clearTimeout)return ge=clearTimeout,clearTimeout(e);try{ge(e)}catch(t){try{return ge.call(null,e)}catch(t){return ge.call(this,e)}}}(e)}}function xe(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];we.push(new Ee(e,t)),1!==we.length||be||ve(ke)}function Ee(e,t){this.fun=e,this.array=t}Ee.prototype.run=function(){this.fun.apply(null,this.array)};var Ce=e.performance||{},Ae=(Ce.now||Ce.mozNow||Ce.msNow||Ce.oNow||Ce.webkitNow,"function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}),Le=/%[sdj%]/g;function Be(e){if(!We(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Oe(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(Le,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])Ue(s)||!Ze(s)?a+=" "+s:a+=" "+Oe(s);return a}function Ie(t,r){if(je(e.process))return function(){return Ie(t,r).apply(this,arguments)};var n=!1;return function(){return n||(console.error(r),n=!0),t.apply(this,arguments)}}var Re,Te={};function Oe(e,t){var r={seen:[],stylize:De};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Ne(t)?r.showHidden=t:t&&Ge(r,t),je(r.showHidden)&&(r.showHidden=!1),je(r.depth)&&(r.depth=2),je(r.colors)&&(r.colors=!1),je(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ze),Me(r,e,r.depth)}function ze(e,t){var r=Oe.styles[t];return r?"["+Oe.colors[r][0]+"m"+e+"["+Oe.colors[r][1]+"m":e}function De(e,t){return e}function Me(e,t,r){if(e.customInspect&&t&&qe(t.inspect)&&t.inspect!==Oe&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return We(n)||(n=Me(e,n,r)),n}var i=function(e,t){if(je(t))return e.stylize("undefined","undefined");if(We(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(n=t,"number"==typeof n)return e.stylize(""+t,"number");var n;if(Ne(t))return e.stylize(""+t,"boolean");if(Ue(t))return e.stylize("null","null")}(e,t);if(i)return i;var a=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),He(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Pe(t);if(0===a.length){if(qe(t)){var o=t.name?": "+t.name:"";return e.stylize("[Function"+o+"]","special")}if(Ve(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if($e(t))return e.stylize(Date.prototype.toString.call(t),"date");if(He(t))return Pe(t)}var l,u,h="",c=!1,f=["{","}"];(l=t,Array.isArray(l)&&(c=!0,f=["[","]"]),qe(t))&&(h=" [Function"+(t.name?": "+t.name:"")+"]");return Ve(t)&&(h=" "+RegExp.prototype.toString.call(t)),$e(t)&&(h=" "+Date.prototype.toUTCString.call(t)),He(t)&&(h=" "+Pe(t)),0!==a.length||c&&0!=t.length?r<0?Ve(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=c?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s<o;++s)Ke(t,String(s))?a.push(Fe(e,t,r,n,String(s),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(Fe(e,t,r,n,i,!0))})),a}(e,t,r,s,a):a.map((function(n){return Fe(e,t,r,s,n,c)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,h,f)):f[0]+h+f[1]}function Pe(e){return"["+Error.prototype.toString.call(e)+"]"}function Fe(e,t,r,n,i,a){var s,o,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[Setter]","special")),Ke(n,i)||(s="["+i+"]"),o||(e.seen.indexOf(l.value)<0?(o=Ue(r)?Me(e,l.value,null):Me(e,l.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),je(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function Ne(e){return"boolean"==typeof e}function Ue(e){return null===e}function We(e){return"string"==typeof e}function je(e){return void 0===e}function Ve(e){return Ze(e)&&"[object RegExp]"===Ye(e)}function Ze(e){return"object"==typeof e&&null!==e}function $e(e){return Ze(e)&&"[object Date]"===Ye(e)}function He(e){return Ze(e)&&("[object Error]"===Ye(e)||e instanceof Error)}function qe(e){return"function"==typeof e}function Ye(e){return Object.prototype.toString.call(e)}function Ge(e,t){if(!t||!Ze(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function Ke(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xe(){this.head=null,this.tail=null,this.length=0}Oe.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]},Oe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Xe.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Xe.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Xe.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},Xe.prototype.clear=function(){this.head=this.tail=null,this.length=0},Xe.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},Xe.prototype.concat=function(e){if(0===this.length)return g.alloc(0);if(1===this.length)return this.head.data;for(var t=g.allocUnsafe(e>>>0),r=this.head,n=0;r;)r.data.copy(t,n),n+=r.data.length,r=r.next;return t};var Je=g.isEncoding||function(e){switch(e&&e.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 Qe(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Je(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=tt;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=rt;break;default:return void(this.write=et)}this.charBuffer=new g(6),this.charReceived=0,this.charLength=0}function et(e){return e.toString(this.encoding)}function tt(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function rt(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Qe.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((i=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var i;n=(t+=e.toString(this.encoding,0,n)).length-1;if((i=t.charCodeAt(n))>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,n)}return t},Qe.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},Qe.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t},at.ReadableState=it;var nt=function(e){if(je(Re)&&(Re=""),e=e.toUpperCase(),!Te[e])if(new RegExp("\\b"+e+"\\b","i").test(Re)){Te[e]=function(){var t=Be.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else Te[e]=function(){};return Te[e]}("stream");function it(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Ot&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Xe,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.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Qe(e.encoding),this.encoding=e.encoding)}function at(e){if(!(this instanceof at))return new at(e);this._readableState=new it(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),re.call(this)}function st(e,t,r,n,i){var a=function(e,t){var r=null;Q(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(t,r);if(a)e.emit("error",a);else if(null===r)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,ut(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var o=new Error("stream.unshift() after end event");e.emit("error",o)}else{var l;!t.decoder||i||n||(r=t.decoder.write(r),l=!t.objectMode&&0===r.length),i||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&ut(e))),function(e,t){t.readingMore||(t.readingMore=!0,xe(ct,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}Ae(at,re),at.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding)!==r.encoding&&(e=g.from(e,t),t=""),st(this,r,e,t,!1)},at.prototype.unshift=function(e){return st(this,this._readableState,e,"",!0)},at.prototype.isPaused=function(){return!1===this._readableState.flowing},at.prototype.setEncoding=function(e){return this._readableState.decoder=new Qe(e),this._readableState.encoding=e,this};var ot=8388608;function lt(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=ot?e=ot:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function ut(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(nt("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?xe(ht,e):ht(e))}function ht(e){nt("emit readable"),e.emit("readable"),mt(e)}function ct(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(nt("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function ft(e){nt("readable nexttick read 0"),e.read(0)}function dt(e,t){t.reading||(nt("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),mt(e),t.flowing&&!t.reading&&e.read(0)}function mt(e){var t=e._readableState;for(nt("flow",t.flowing);t.flowing&&null!==e.read(););}function pt(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(s===a.length?i+=a:i+=a.slice(0,e),0===(e-=s)){s===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=g.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),0===(e-=s)){s===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(s));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function gt(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,xe(vt,t,e))}function vt(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function yt(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function wt(){}function bt(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function _t(e,t){Object.defineProperty(this,"buffer",{get:Ie((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof Ot&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?xe(i,n):i(n);e._writableState.errorEmitted=!0,e.emit("error",n)}(e,r,n,t,i);else{var a=Ct(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||Et(e,r),n?xe(xt,e,r,a,i):xt(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Bt(this)}function St(e){if(!(this instanceof St||this instanceof Ot))return new St(e);this._writableState=new _t(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),re.call(this)}function kt(e,t,r,n,i,a,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function xt(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),Lt(e,t)}function Et(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0;r;)i[s]=r,r=r.next,s+=1;kt(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new Bt(t)}else{for(;r;){var o=r.chunk,l=r.encoding,u=r.callback;if(kt(e,t,!1,t.objectMode?1:o.length,o,l,u),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function Ct(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function At(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function Lt(e,t){var r=Ct(t);return r&&(0===t.pendingcb?(At(e,t),t.finished=!0,e.emit("finish")):At(e,t)),r}function Bt(e){var t=this;this.next=null,this.entry=null,this.finish=function(r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}at.prototype.read=function(e){nt("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return nt("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?gt(this):ut(this),null;if(0===(e=lt(e,t))&&t.ended)return 0===t.length&>(this),null;var n,i=t.needReadable;return nt("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&nt("length less than watermark",i=!0),t.ended||t.reading?nt("reading or ended",i=!1):i&&(nt("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=lt(r,t))),null===(n=e>0?pt(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&>(this)),null!==n&&this.emit("data",n),n},at.prototype._read=function(e){this.emit("error",new Error("not implemented"))},at.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,nt("pipe count=%d opts=%j",n.pipesCount,t);var i=!t||!1!==t.end?s:u;function a(e){nt("onunpipe"),e===r&&u()}function s(){nt("onend"),e.end()}n.endEmitted?xe(i):r.once("end",i),e.on("unpipe",a);var o=function(e){return function(){var t=e._readableState;nt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,mt(e))}}(r);e.on("drain",o);var l=!1;function u(){nt("cleanup"),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("drain",o),e.removeListener("error",f),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",u),r.removeListener("data",c),l=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||o()}var h=!1;function c(t){nt("ondata"),h=!1,!1!==e.write(t)||h||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==yt(n.pipes,e))&&!l&&(nt("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function f(t){var r;nt("onerror",t),p(),e.removeListener("error",f),0===(r="error",e.listeners(r).length)&&e.emit("error",t)}function d(){e.removeListener("finish",m),p()}function m(){nt("onfinish"),e.removeListener("close",d),p()}function p(){nt("unpipe"),r.unpipe(e)}return r.on("data",c),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",d),e.once("finish",m),e.emit("pipe",r),n.flowing||(nt("pipe resume"),r.resume()),e},at.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var a=yt(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},at.prototype.on=function(e,t){var r=re.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&ut(this):xe(ft,this))}return r},at.prototype.addListener=at.prototype.on,at.prototype.resume=function(){var e=this._readableState;return e.flowing||(nt("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,xe(dt,e,t))}(this,e)),this},at.prototype.pause=function(){return nt("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(nt("pause"),this._readableState.flowing=!1,this.emit("pause")),this},at.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(nt("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){(nt("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){nt("wrapped _read",t),r&&(r=!1,e.resume())},n},at._fromList=pt,St.WritableState=_t,Ae(St,re),_t.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},St.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},St.prototype.write=function(e,t,r){var n=this._writableState,i=!1;return"function"==typeof t&&(r=t,t=null),g.isBuffer(e)?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=wt),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),xe(t,r)}(this,r):function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):g.isBuffer(r)||"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),xe(n,a),i=!1),i}(this,n,e,r)&&(n.pendingcb++,i=function(e,t,r,n,i){r=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=g.from(t,r));return t}(t,r,n),g.isBuffer(r)&&(n="buffer");var a=t.objectMode?1:r.length;t.length+=a;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var o=t.lastBufferedRequest;t.lastBufferedRequest=new bt(r,n,i),o?o.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else kt(e,t,!1,a,r,n,i);return s}(this,n,e,t,r)),i},St.prototype.cork=function(){this._writableState.corked++},St.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||Et(this,e))},St.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},St.prototype._write=function(e,t,r){r(new Error("not implemented"))},St.prototype._writev=null,St.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,Lt(e,t),r&&(t.finished?xe(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Ae(Ot,at);for(var It=Object.keys(St.prototype),Rt=0;Rt<It.length;Rt++){var Tt=It[Rt];Ot.prototype[Tt]||(Ot.prototype[Tt]=St.prototype[Tt])}function Ot(e){if(!(this instanceof Ot))return new Ot(e);at.call(this,e),St.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",zt)}function zt(){this.allowHalfOpen||this._writableState.ended||xe(Dt,this)}function Dt(e){e.end()}function Mt(e){this.afterTransform=function(t,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r);i(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Pt(e){if(!(this instanceof Pt))return new Pt(e);Ot.call(this,e),this._transformState=new Mt(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){Ft(t,e)})):Ft(t)}))}function Ft(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function Nt(e){if(!(this instanceof Nt))return new Nt(e);Pt.call(this,e)}function Ut(){re.call(this)}Ae(Pt,Ot),Pt.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ot.prototype.push.call(this,e,t)},Pt.prototype._transform=function(e,t,r){throw new Error("Not implemented")},Pt.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Pt.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Ae(Nt,Pt),Nt.prototype._transform=function(e,t,r){r(null,e)},Ae(Ut,re),Ut.Readable=at,Ut.Writable=St,Ut.Duplex=Ot,Ut.Transform=Pt,Ut.PassThrough=Nt,Ut.Stream=Ut,Ut.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",o));var a=!1;function s(){a||(a=!0,e.end())}function o(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===re.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",o),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",l),e.on("error",l),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e};var Wt,jt,Vt=Ut,Zt=r((function(e,t){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer=!0,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var r=new ArrayBuffer(0);try{t.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(r),t.blob=0===n.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!Vt.Readable}catch(e){t.nodestream=!1}})),$t=(Zt.base64,Zt.array,Zt.string,Zt.arraybuffer,Zt.nodebuffer,Zt.uint8array,Zt.blob,Zt.nodestream,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Ht=function(e){for(var t,r,n,i,a,s,o,l=[],u=0,h=e.length,c=h,f="string"!==_r.getTypeOf(e);u<e.length;)c=h-u,f?(t=e[u++],r=u<h?e[u++]:0,n=u<h?e[u++]:0):(t=e.charCodeAt(u++),r=u<h?e.charCodeAt(u++):0,n=u<h?e.charCodeAt(u++):0),i=t>>2,a=(3&t)<<4|r>>4,s=c>1?(15&r)<<2|n>>6:64,o=c>2?63&n:64,l.push($t.charAt(i)+$t.charAt(a)+$t.charAt(s)+$t.charAt(o));return l.join("")},qt=function(e){var t,r,n,i,a,s,o=0,l=0,u="data:";if(e.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");var h,c=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===$t.charAt(64)&&c--,e.charAt(e.length-2)===$t.charAt(64)&&c--,c%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=Zt.uint8array?new Uint8Array(0|c):new Array(0|c);o<e.length;)t=$t.indexOf(e.charAt(o++))<<2|(i=$t.indexOf(e.charAt(o++)))>>4,r=(15&i)<<4|(a=$t.indexOf(e.charAt(o++)))>>2,n=(3&a)<<6|(s=$t.indexOf(e.charAt(o++))),h[l++]=t,64!==a&&(h[l++]=r),64!==s&&(h[l++]=n);return h},Yt=!0,Gt=function(e,t){if(g.from&&g.from!==Uint8Array.from)return g.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new g(e,t)},Kt=function(e){if(g.alloc)return g.alloc(e);var t=new g(e);return t.fill(0),t},Xt=function(e){return Q(e)},Jt=function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume},Qt="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)},er=t.MutationObserver||t.WebKitMutationObserver;if(er){var tr=0,rr=new er(sr),nr=t.document.createTextNode("");rr.observe(nr,{characterData:!0}),Wt=function(){nr.data=tr=++tr%2}}else if(t.setImmediate||void 0===t.MessageChannel)Wt="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){sr(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(sr,0)};else{var ir=new t.MessageChannel;ir.port1.onmessage=sr,Wt=function(){ir.port2.postMessage(0)}}var ar=[];function sr(){var e,t;jt=!0;for(var r=ar.length;r;){for(t=ar,ar=[],e=-1;++e<r;)t[e]();r=ar.length}jt=!1}var or=function(e){1!==ar.push(e)||jt||Wt()};function lr(){}var ur={},hr=["REJECTED"],cr=["FULFILLED"],fr=["PENDING"],dr=mr;function mr(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=fr,this.queue=[],this.outcome=void 0,e!==lr&&yr(this,e)}function pr(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function gr(e,t,r){or((function(){var n;try{n=t(r)}catch(t){return ur.reject(e,t)}n===e?ur.reject(e,new TypeError("Cannot resolve promise with itself")):ur.resolve(e,n)}))}function vr(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function yr(e,t){var r=!1;function n(t){r||(r=!0,ur.reject(e,t))}function i(t){r||(r=!0,ur.resolve(e,t))}var a=wr((function(){t(i,n)}));"error"===a.status&&n(a.value)}function wr(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}mr.prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},mr.prototype.catch=function(e){return this.then(null,e)},mr.prototype.then=function(e,t){if("function"!=typeof e&&this.state===cr||"function"!=typeof t&&this.state===hr)return this;var r=new this.constructor(lr);this.state!==fr?gr(r,this.state===cr?e:t,this.outcome):this.queue.push(new pr(r,e,t));return r},pr.prototype.callFulfilled=function(e){ur.resolve(this.promise,e)},pr.prototype.otherCallFulfilled=function(e){gr(this.promise,this.onFulfilled,e)},pr.prototype.callRejected=function(e){ur.reject(this.promise,e)},pr.prototype.otherCallRejected=function(e){gr(this.promise,this.onRejected,e)},ur.resolve=function(e,t){var r=wr(vr,t);if("error"===r.status)return ur.reject(e,r.value);var n=r.value;if(n)yr(e,n);else{e.state=cr,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},ur.reject=function(e,t){e.state=hr,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},mr.resolve=function(e){if(e instanceof this)return e;return ur.resolve(new this(lr),e)},mr.reject=function(e){var t=new this(lr);return ur.reject(t,e)},mr.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);var i=new Array(r),a=0,s=-1,o=new this(lr);for(;++s<r;)l(e[s],s);return o;function l(e,s){t.resolve(e).then((function(e){i[s]=e,++a!==r||n||(n=!0,ur.resolve(o,i))}),(function(e){n||(n=!0,ur.reject(o,e))}))}},mr.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);var i=-1,a=new this(lr);for(;++i<r;)s=e[i],t.resolve(s).then((function(e){n||(n=!0,ur.resolve(a,e))}),(function(e){n||(n=!0,ur.reject(a,e))}));var s;return a};var br={Promise:"undefined"!=typeof Promise?Promise:dr},_r=r((function(e,t){function r(e){return e}function n(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}t.newBlob=function(e,r){t.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var i={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return Zt.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return Zt.nodebuffer&&1===String.fromCharCode.apply(null,Kt(1)).length}catch(e){return!1}}()}};function a(e){var r=65536,n=t.getTypeOf(e),a=!0;if("uint8array"===n?a=i.applyCanBeUsed.uint8array:"nodebuffer"===n&&(a=i.applyCanBeUsed.nodebuffer),a)for(;r>1;)try{return i.stringifyByChunk(e,n,r)}catch(e){r=Math.floor(r/2)}return i.stringifyByChar(e)}function s(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}t.applyFromCharCode=a;var o={};o.string={string:r,array:function(e){return n(e,new Array(e.length))},arraybuffer:function(e){return o.string.uint8array(e).buffer},uint8array:function(e){return n(e,new Uint8Array(e.length))},nodebuffer:function(e){return n(e,Kt(e.length))}},o.array={string:a,array:r,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return Gt(e)}},o.arraybuffer={string:function(e){return a(new Uint8Array(e))},array:function(e){return s(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:r,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return Gt(new Uint8Array(e))}},o.uint8array={string:a,array:function(e){return s(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:r,nodebuffer:function(e){return Gt(e)}},o.nodebuffer={string:a,array:function(e){return s(e,new Array(e.length))},arraybuffer:function(e){return o.nodebuffer.uint8array(e).buffer},uint8array:function(e){return s(e,new Uint8Array(e.length))},nodebuffer:r},t.transformTo=function(e,r){if(r||(r=""),!e)return r;t.checkSupport(e);var n=t.getTypeOf(r);return o[n][e](r)},t.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":Zt.nodebuffer&&Xt(e)?"nodebuffer":Zt.uint8array&&e instanceof Uint8Array?"uint8array":Zt.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(e){if(!Zt[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},t.delay=function(e,t,r){Qt((function(){e.apply(r||null,t||[])}))},t.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r},t.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},t.prepareContent=function(e,r,i,a,s){return br.Promise.resolve(r).then((function(e){return Zt.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new br.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(r){var o,l=t.getTypeOf(r);return l?("arraybuffer"===l?r=t.transformTo("uint8array",r):"string"===l&&(s?r=qt(r):i&&!0!==a&&(r=n(o=r,Zt.uint8array?new Uint8Array(o.length):new Array(o.length)))),r):br.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}}));_r.newBlob,_r.applyFromCharCode,_r.transformTo,_r.getTypeOf,_r.checkSupport,_r.MAX_VALUE_16BITS,_r.MAX_VALUE_32BITS,_r.pretty,_r.delay,_r.inherits,_r.extend,_r.prepareContent;function Sr(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}Sr.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};var kr=Sr,xr=r((function(e,t){for(var r=new Array(256),n=0;n<256;n++)r[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;r[254]=r[254]=1;function i(){kr.call(this,"utf-8 decode"),this.leftOver=null}function a(){kr.call(this,"utf-8 encode")}t.utf8encode=function(e){return Zt.nodebuffer?Gt(e,"utf-8"):function(e){var t,r,n,i,a,s=e.length,o=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=Zt.uint8array?new Uint8Array(o):new Array(o),a=0,i=0;a<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t}(e)},t.utf8decode=function(e){return Zt.nodebuffer?_r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,s=e.length,o=new Array(2*s);for(n=0,t=0;t<s;)if((i=e[t++])<128)o[n++]=i;else if((a=r[i])>4)o[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&t<s;)i=i<<6|63&e[t++],a--;a>1?o[n++]=65533:i<65536?o[n++]=i:(i-=65536,o[n++]=55296|i>>10&1023,o[n++]=56320|1023&i)}return o.length!==n&&(o.subarray?o=o.subarray(0,n):o.length=n),_r.applyFromCharCode(o)}(e=_r.transformTo(Zt.uint8array?"uint8array":"array",e))},_r.inherits(i,kr),i.prototype.processChunk=function(e){var n=_r.transformTo(Zt.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Zt.uint8array){var i=n;(n=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),n.set(i,this.leftOver.length)}else n=this.leftOver.concat(n);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+r[e[n]]>t?n:t}(n),s=n;a!==n.length&&(Zt.uint8array?(s=n.subarray(0,a),this.leftOver=n.subarray(a,n.length)):(s=n.slice(0,a),this.leftOver=n.slice(a,n.length))),this.push({data:t.utf8decode(s),meta:e.meta})},i.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=i,_r.inherits(a,kr),a.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=a}));xr.utf8encode,xr.utf8decode,xr.Utf8DecodeWorker,xr.Utf8EncodeWorker;function Er(e){kr.call(this,"ConvertWorker to "+e),this.destType=e}_r.inherits(Er,kr),Er.prototype.processChunk=function(e){this.push({data:_r.transformTo(this.destType,e.data),meta:e.meta})};var Cr=Er,Ar=Vt.Readable;function Lr(e,t,r){Ar.call(this,t),this._helper=e;var n=this;e.on("data",(function(e,t){n.push(e)||n._helper.pause(),r&&r(t)})).on("error",(function(e){n.emit("error",e)})).on("end",(function(){n.push(null)}))}_r.inherits(Lr,Ar),Lr.prototype._read=function(){this._helper.resume()};var Br=Lr,Ir=null;if(Zt.nodestream)try{Ir=Br}catch(e){}function Rr(e,t){return new br.Promise((function(r,n){var i=[],a=e._internalType,s=e._outputType,o=e._mimeType;e.on("data",(function(e,r){i.push(e),t&&t(r)})).on("error",(function(e){i=[],n(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return _r.newBlob(_r.transformTo("arraybuffer",t),r);case"base64":return Ht(t);default:return _r.transformTo(e,t)}}(s,function(e,t){var r,n=0,i=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(a),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return g.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(a,i),o);r(e)}catch(e){n(e)}i=[]})).resume()}))}function Tr(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,_r.checkSupport(n),this._worker=e.pipe(new Cr(n)),e.lock()}catch(e){this._worker=new kr("error"),this._worker.error(e)}}Tr.prototype={accumulate:function(e){return Rr(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){_r.delay(t,arguments,r)})),this},resume:function(){return _r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(_r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new Ir(this,{objectMode:"nodebuffer"!==this._outputType},e)}};var Or=Tr,zr={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null};function Dr(e){kr.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=_r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}_r.inherits(Dr,kr),Dr.prototype.cleanUp=function(){kr.prototype.cleanUp.call(this),this.data=null},Dr.prototype.resume=function(){return!!kr.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,_r.delay(this._tickAndRepeat,[],this)),!0)},Dr.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(_r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},Dr.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})};var Mr=Dr;function Pr(e){kr.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}_r.inherits(Pr,kr),Pr.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}kr.prototype.processChunk.call(this,e)};var Fr=Pr;var Nr=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();var Ur=function(e,t){return void 0!==e&&e.length?"string"!==_r.getTypeOf(e)?function(e,t,r,n){var i=Nr,a=n+r;e^=-1;for(var s=n;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var i=Nr,a=n+r;e^=-1;for(var s=n;s<a;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0};function Wr(){kr.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}_r.inherits(Wr,kr),Wr.prototype.processChunk=function(e){this.streamInfo.crc32=Ur(e.data,this.streamInfo.crc32||0),this.push(e)};var jr=Wr;function Vr(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}Vr.prototype={getContentWorker:function(){var e=new Mr(br.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Fr("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new Mr(br.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},Vr.createWorkerFrom=function(e,t,r){return e.pipe(new jr).pipe(new Fr("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new Fr("compressedSize")).withStreamInfo("compression",t)};var Zr=Vr,$r=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};$r.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(t=t.pipe(new xr.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new xr.Utf8DecodeWorker))}catch(e){(t=new kr("error")).error(e)}return new Or(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof Zr&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new xr.Utf8EncodeWorker)),Zr.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof Zr?this._data.getContentWorker():this._data instanceof kr?this._data:new Mr(this._data)}};for(var Hr=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],qr=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Yr=0;Yr<Hr.length;Yr++)$r.prototype[Hr[Yr]]=qr;var Gr=$r,Kr=r((function(e,t){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,s;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)a=e[t],s.set(a,i),i+=a.length;return s}},a={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(r)}));Kr.assign,Kr.shrinkBuf,Kr.setTyped,Kr.Buf8,Kr.Buf16,Kr.Buf32;function Xr(e){for(var t=e.length;--t>=0;)e[t]=0}var Jr=256,Qr=286,en=30,tn=15,rn=[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],nn=[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],an=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],sn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],on=new Array(576);Xr(on);var ln=new Array(60);Xr(ln);var un=new Array(512);Xr(un);var hn=new Array(256);Xr(hn);var cn=new Array(29);Xr(cn);var fn,dn,mn,pn=new Array(en);function gn(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function vn(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function yn(e){return e<256?un[e]:un[256+(e>>>7)]}function wn(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function bn(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,wn(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function _n(e,t,r){bn(e,r[2*t],r[2*t+1])}function Sn(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function kn(e,t,r){var n,i,a=new Array(16),s=0;for(n=1;n<=tn;n++)a[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=Sn(a[o]++,o))}}function xn(e){var t;for(t=0;t<Qr;t++)e.dyn_ltree[2*t]=0;for(t=0;t<en;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function En(e){e.bi_valid>8?wn(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Cn(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function An(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&Cn(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Cn(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function Ln(e,t,r){var n,i,a,s,o=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*o]<<8|e.pending_buf[e.d_buf+2*o+1],i=e.pending_buf[e.l_buf+o],o++,0===n?_n(e,i,t):(_n(e,(a=hn[i])+Jr+1,t),0!==(s=rn[a])&&bn(e,i-=cn[a],s),_n(e,a=yn(--n),r),0!==(s=nn[a])&&bn(e,n-=pn[a],s))}while(o<e.last_lit);_n(e,256,t)}function Bn(e,t){var r,n,i,a=t.dyn_tree,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,o&&(e.static_len-=s[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;r>=1;r--)An(e,a,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],An(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,An(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,s,o,l=t.dyn_tree,u=t.max_code,h=t.stat_desc.static_tree,c=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,m=t.stat_desc.max_length,p=0;for(a=0;a<=tn;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(a=l[2*l[2*(n=e.heap[r])+1]+1]+1)>m&&(a=m,p++),l[2*n+1]=a,n>u||(e.bl_count[a]++,s=0,n>=d&&(s=f[n-d]),o=l[2*n],e.opt_len+=o*(a+s),c&&(e.static_len+=o*(h[2*n+1]+s)));if(0!==p){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,p-=2}while(p>0);for(a=m;0!==a;a--)for(n=e.bl_count[a];0!==n;)(i=e.heap[--r])>u||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}(e,t),kn(a,u,e.bl_count)}function In(e,t,r){var n,i,a=-1,s=t[1],o=0,l=7,u=4;for(0===s&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++o<l&&i===s||(o<u?e.bl_tree[2*i]+=o:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):o<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=0,a=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4))}function Rn(e,t,r){var n,i,a=-1,s=t[1],o=0,l=7,u=4;for(0===s&&(l=138,u=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++o<l&&i===s)){if(o<u)do{_n(e,i,e.bl_tree)}while(0!=--o);else 0!==i?(i!==a&&(_n(e,i,e.bl_tree),o--),_n(e,16,e.bl_tree),bn(e,o-3,2)):o<=10?(_n(e,17,e.bl_tree),bn(e,o-3,3)):(_n(e,18,e.bl_tree),bn(e,o-11,7));o=0,a=i,0===s?(l=138,u=3):i===s?(l=6,u=3):(l=7,u=4)}}Xr(pn);var Tn=!1;function On(e,t,r,n){bn(e,0+(n?1:0),3),function(e,t,r,n){En(e),n&&(wn(e,r),wn(e,~r)),Kr.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}var zn={_tr_init:function(e){Tn||(!function(){var e,t,r,n,i,a=new Array(16);for(r=0,n=0;n<28;n++)for(cn[n]=r,e=0;e<1<<rn[n];e++)hn[r++]=n;for(hn[r-1]=n,i=0,n=0;n<16;n++)for(pn[n]=i,e=0;e<1<<nn[n];e++)un[i++]=n;for(i>>=7;n<en;n++)for(pn[n]=i<<7,e=0;e<1<<nn[n]-7;e++)un[256+i++]=n;for(t=0;t<=tn;t++)a[t]=0;for(e=0;e<=143;)on[2*e+1]=8,e++,a[8]++;for(;e<=255;)on[2*e+1]=9,e++,a[9]++;for(;e<=279;)on[2*e+1]=7,e++,a[7]++;for(;e<=287;)on[2*e+1]=8,e++,a[8]++;for(kn(on,287,a),e=0;e<en;e++)ln[2*e+1]=5,ln[2*e]=Sn(e,5);fn=new gn(on,rn,257,Qr,tn),dn=new gn(ln,nn,0,en,tn),mn=new gn(new Array(0),an,0,19,7)}(),Tn=!0),e.l_desc=new vn(e.dyn_ltree,fn),e.d_desc=new vn(e.dyn_dtree,dn),e.bl_desc=new vn(e.bl_tree,mn),e.bi_buf=0,e.bi_valid=0,xn(e)},_tr_stored_block:On,_tr_flush_block:function(e,t,r,n){var i,a,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<Jr;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Bn(e,e.l_desc),Bn(e,e.d_desc),s=function(e){var t;for(In(e,e.dyn_ltree,e.l_desc.max_code),In(e,e.dyn_dtree,e.d_desc.max_code),Bn(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*sn[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?On(e,t,r,n):4===e.strategy||a===i?(bn(e,2+(n?1:0),3),Ln(e,on,ln)):(bn(e,4+(n?1:0),3),function(e,t,r,n){var i;for(bn(e,t-257,5),bn(e,r-1,5),bn(e,n-4,4),i=0;i<n;i++)bn(e,e.bl_tree[2*sn[i]+1],3);Rn(e,e.dyn_ltree,t-1),Rn(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),Ln(e,e.dyn_ltree,e.dyn_dtree)),xn(e),n&&En(e)},_tr_tally:function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(hn[r]+Jr+1)]++,e.dyn_dtree[2*yn(t)]++),e.last_lit===e.lit_bufsize-1},_tr_align:function(e){bn(e,2,3),_n(e,256,on),function(e){16===e.bi_valid?(wn(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}};var Dn=function(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,s=0;0!==r;){r-=s=r>2e3?2e3:r;do{a=a+(i=i+t[n++]|0)|0}while(--s);i%=65521,a%=65521}return i|a<<16|0};var Mn=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();var Pn,Fn=function(e,t,r,n){var i=Mn,a=n+r;e^=-1;for(var s=n;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e},Nn={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"},Un=-2,Wn=258,jn=262,Vn=103,Zn=113,$n=666;function Hn(e,t){return e.msg=Nn[t],t}function qn(e){return(e<<1)-(e>4?9:0)}function Yn(e){for(var t=e.length;--t>=0;)e[t]=0}function Gn(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(Kr.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function Kn(e,t){zn._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Gn(e.strm)}function Xn(e,t){e.pending_buf[e.pending++]=t}function Jn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Qn(e,t){var r,n,i=e.max_chain_length,a=e.strstart,s=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-jn?e.strstart-(e.w_size-jn):0,u=e.window,h=e.w_mask,c=e.prev,f=e.strstart+Wn,d=u[a+s-1],m=u[a+s];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(u[(r=t)+s]===m&&u[r+s-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&a<f);if(n=Wn-(f-a),a=f-Wn,n>s){if(e.match_start=t,s=n,n>=o)break;d=u[a+s-1],m=u[a+s]}}}while((t=c[t&h])>l&&0!=--i);return s<=e.lookahead?s:e.lookahead}function ei(e){var t,r,n,i,a,s,o,l,u,h,c=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=c+(c-jn)){Kr.arraySet(e.window,e.window,c,c,0),e.match_start-=c,e.strstart-=c,e.block_start-=c,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=c?n-c:0}while(--r);t=r=c;do{n=e.prev[--t],e.prev[t]=n>=c?n-c:0}while(--r);i+=c}if(0===e.strm.avail_in)break;if(s=e.strm,o=e.window,l=e.strstart+e.lookahead,u=i,h=void 0,(h=s.avail_in)>u&&(h=u),r=0===h?0:(s.avail_in-=h,Kr.arraySet(o,s.input,s.next_in,h,l),1===s.state.wrap?s.adler=Dn(s.adler,o,h,l):2===s.state.wrap&&(s.adler=Fn(s.adler,o,h,l)),s.next_in+=h,s.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<jn&&0!==e.strm.avail_in)}function ti(e,t){for(var r,n;;){if(e.lookahead<jn){if(ei(e),e.lookahead<jn&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-jn&&(e.match_length=Qn(e,r)),e.match_length>=3)if(n=zn._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=zn._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Kn(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(Kn(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Kn(e,!1),0===e.strm.avail_out)?1:2}function ri(e,t){for(var r,n,i;;){if(e.lookahead<jn){if(ei(e),e.lookahead<jn&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-jn&&(e.match_length=Qn(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=zn._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(Kn(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=zn._tr_tally(e,0,e.window[e.strstart-1]))&&Kn(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=zn._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(Kn(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Kn(e,!1),0===e.strm.avail_out)?1:2}function ni(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function ii(){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=8,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 Kr.Buf16(1146),this.dyn_dtree=new Kr.Buf16(122),this.bl_tree=new Kr.Buf16(78),Yn(this.dyn_ltree),Yn(this.dyn_dtree),Yn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Kr.Buf16(16),this.heap=new Kr.Buf16(573),Yn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Kr.Buf16(573),Yn(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 ai(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:Zn,e.adler=2===t.wrap?0:1,t.last_flush=0,zn._tr_init(t),0):Hn(e,Un)}function si(e){var t,r=ai(e);return 0===r&&((t=e.state).window_size=2*t.w_size,Yn(t.head),t.max_lazy_match=Pn[t.level].max_lazy,t.good_match=Pn[t.level].good_length,t.nice_match=Pn[t.level].nice_length,t.max_chain_length=Pn[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function oi(e,t,r,n,i,a){if(!e)return Un;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>9||8!==r||n<8||n>15||t<0||t>9||a<0||a>4)return Hn(e,Un);8===n&&(n=9);var o=new ii;return e.state=o,o.strm=e,o.wrap=s,o.gzhead=null,o.w_bits=n,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Kr.Buf8(2*o.w_size),o.head=new Kr.Buf16(o.hash_size),o.prev=new Kr.Buf16(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Kr.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=a,o.method=r,si(e)}Pn=[new ni(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ei(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,Kn(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-jn&&(Kn(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Kn(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Kn(e,!1),e.strm.avail_out),1)})),new ni(4,4,8,4,ti),new ni(4,5,16,8,ti),new ni(4,6,32,32,ti),new ni(4,4,16,16,ri),new ni(8,16,32,32,ri),new ni(8,16,128,128,ri),new ni(8,32,128,256,ri),new ni(32,128,258,1024,ri),new ni(32,258,258,4096,ri)];var li={deflateInit:function(e,t){return oi(e,t,8,15,8,0)},deflateInit2:oi,deflateReset:si,deflateResetKeep:ai,deflateSetHeader:function(e,t){return e&&e.state?2!==e.state.wrap?Un:(e.state.gzhead=t,0):Un},deflate:function(e,t){var r,n,i,a;if(!e||!e.state||t>5||t<0)return e?Hn(e,Un):Un;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===$n&&4!==t)return Hn(e,0===e.avail_out?-5:Un);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status)if(2===n.wrap)e.adler=0,Xn(n,31),Xn(n,139),Xn(n,8),n.gzhead?(Xn(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Xn(n,255&n.gzhead.time),Xn(n,n.gzhead.time>>8&255),Xn(n,n.gzhead.time>>16&255),Xn(n,n.gzhead.time>>24&255),Xn(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Xn(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Xn(n,255&n.gzhead.extra.length),Xn(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Fn(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Xn(n,0),Xn(n,0),Xn(n,0),Xn(n,0),Xn(n,0),Xn(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Xn(n,3),n.status=Zn);else{var s=8+(n.w_bits-8<<4)<<8;s|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(s|=32),s+=31-s%31,n.status=Zn,Jn(n,s),0!==n.strstart&&(Jn(n,e.adler>>>16),Jn(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=Fn(e.adler,n.pending_buf,n.pending-i,i)),Gn(e),i=n.pending,n.pending!==n.pending_buf_size));)Xn(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=Fn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=Fn(e.adler,n.pending_buf,n.pending-i,i)),Gn(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Xn(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=Fn(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=Fn(e.adler,n.pending_buf,n.pending-i,i)),Gn(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Xn(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=Fn(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=Vn)}else n.status=Vn;if(n.status===Vn&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Gn(e),n.pending+2<=n.pending_buf_size&&(Xn(n,255&e.adler),Xn(n,e.adler>>8&255),e.adler=0,n.status=Zn)):n.status=Zn),0!==n.pending){if(Gn(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&qn(t)<=qn(r)&&4!==t)return Hn(e,-5);if(n.status===$n&&0!==e.avail_in)return Hn(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&n.status!==$n){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(ei(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=zn._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Kn(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Kn(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Kn(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=Wn){if(ei(e),e.lookahead<=Wn&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+Wn;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<a);e.match_length=Wn-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=zn._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=zn._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Kn(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Kn(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Kn(e,!1),0===e.strm.avail_out)?1:2}(n,t):Pn[n.level].func(n,t);if(3!==o&&4!==o||(n.status=$n),1===o||3===o)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===o&&(1===t?zn._tr_align(n):5!==t&&(zn._tr_stored_block(n,0,0,!1),3===t&&(Yn(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Gn(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t?0:n.wrap<=0?1:(2===n.wrap?(Xn(n,255&e.adler),Xn(n,e.adler>>8&255),Xn(n,e.adler>>16&255),Xn(n,e.adler>>24&255),Xn(n,255&e.total_in),Xn(n,e.total_in>>8&255),Xn(n,e.total_in>>16&255),Xn(n,e.total_in>>24&255)):(Jn(n,e.adler>>>16),Jn(n,65535&e.adler)),Gn(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},deflateEnd:function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==Vn&&t!==Zn&&t!==$n?Hn(e,Un):(e.state=null,t===Zn?Hn(e,-3):0):Un},deflateSetDictionary:function(e,t){var r,n,i,a,s,o,l,u,h=t.length;if(!e||!e.state)return Un;if(2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return Un;for(1===a&&(e.adler=Dn(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===a&&(Yn(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new Kr.Buf8(r.w_size),Kr.arraySet(u,t,h-r.w_size,r.w_size,0),t=u,h=r.w_size),s=e.avail_in,o=e.next_in,l=e.input,e.avail_in=h,e.next_in=0,e.input=t,ei(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--i);r.strstart=n,r.lookahead=2,ei(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=l,e.avail_in=s,r.wrap=a,0},deflateInfo:"pako deflate (from Nodeca project)"},ui=!0,hi=!0;try{String.fromCharCode.apply(null,[0])}catch(e){ui=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){hi=!1}for(var ci=new Kr.Buf8(256),fi=0;fi<256;fi++)ci[fi]=fi>=252?6:fi>=248?5:fi>=240?4:fi>=224?3:fi>=192?2:1;ci[254]=ci[254]=1;function di(e,t){if(t<65534&&(e.subarray&&hi||!e.subarray&&ui))return String.fromCharCode.apply(null,Kr.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}var mi=function(e){var t,r,n,i,a,s=e.length,o=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Kr.Buf8(o),a=0,i=0;a<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},pi=function(e){return di(e,e.length)},gi=function(e){for(var t=new Kr.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},vi=function(e,t){var r,n,i,a,s=t||e.length,o=new Array(2*s);for(n=0,r=0;r<s;)if((i=e[r++])<128)o[n++]=i;else if((a=ci[i])>4)o[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&r<s;)i=i<<6|63&e[r++],a--;a>1?o[n++]=65533:i<65536?o[n++]=i:(i-=65536,o[n++]=55296|i>>10&1023,o[n++]=56320|1023&i)}return di(o,n)},yi=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+ci[e[r]]>t?r:t};var wi=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},bi=Object.prototype.toString;function _i(e){if(!(this instanceof _i))return new _i(e);this.options=Kr.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wi,this.strm.avail_out=0;var r=li.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(Nn[r]);if(t.header&&li.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="string"==typeof t.dictionary?mi(t.dictionary):"[object ArrayBuffer]"===bi.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=li.deflateSetDictionary(this.strm,n)))throw new Error(Nn[r]);this._dict_set=!0}}function Si(e,t){var r=new _i(t);if(r.push(e,!0),r.err)throw r.msg||Nn[r.err];return r.result}_i.prototype.push=function(e,t){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=mi(e):"[object ArrayBuffer]"===bi.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new Kr.Buf8(a),i.next_out=0,i.avail_out=a),1!==(r=li.deflate(i,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(pi(Kr.shrinkBuf(i.output,i.next_out))):this.onData(Kr.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==r);return 4===n?(r=li.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),i.avail_out=0,!0)},_i.prototype.onData=function(e){this.chunks.push(e)},_i.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Kr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ki={Deflate:_i,deflate:Si,deflateRaw:function(e,t){return(t=t||{}).raw=!0,Si(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,Si(e,t)}},xi=function(e,t){var r,n,i,a,s,o,l,u,h,c,f,d,m,p,g,v,y,w,b,_,S,k,x,E,C;r=e.state,n=e.next_in,E=e.input,i=n+(e.avail_in-5),a=e.next_out,C=e.output,s=a-(t-e.avail_out),o=a+(e.avail_out-257),l=r.dmax,u=r.wsize,h=r.whave,c=r.wnext,f=r.window,d=r.hold,m=r.bits,p=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;e:do{m<15&&(d+=E[n++]<<m,m+=8,d+=E[n++]<<m,m+=8),w=p[d&v];t:for(;;){if(d>>>=b=w>>>24,m-=b,0===(b=w>>>16&255))C[a++]=65535&w;else{if(!(16&b)){if(0==(64&b)){w=p[(65535&w)+(d&(1<<b)-1)];continue t}if(32&b){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}_=65535&w,(b&=15)&&(m<b&&(d+=E[n++]<<m,m+=8),_+=d&(1<<b)-1,d>>>=b,m-=b),m<15&&(d+=E[n++]<<m,m+=8,d+=E[n++]<<m,m+=8),w=g[d&y];r:for(;;){if(d>>>=b=w>>>24,m-=b,!(16&(b=w>>>16&255))){if(0==(64&b)){w=g[(65535&w)+(d&(1<<b)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(S=65535&w,m<(b&=15)&&(d+=E[n++]<<m,(m+=8)<b&&(d+=E[n++]<<m,m+=8)),(S+=d&(1<<b)-1)>l){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=b,m-=b,S>(b=a-s)){if((b=S-b)>h&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=0,x=f,0===c){if(k+=u-b,b<_){_-=b;do{C[a++]=f[k++]}while(--b);k=a-S,x=C}}else if(c<b){if(k+=u+c-b,(b-=c)<_){_-=b;do{C[a++]=f[k++]}while(--b);if(k=0,c<_){_-=b=c;do{C[a++]=f[k++]}while(--b);k=a-S,x=C}}}else if(k+=c-b,b<_){_-=b;do{C[a++]=f[k++]}while(--b);k=a-S,x=C}for(;_>2;)C[a++]=x[k++],C[a++]=x[k++],C[a++]=x[k++],_-=3;_&&(C[a++]=x[k++],_>1&&(C[a++]=x[k++]))}else{k=a-S;do{C[a++]=C[k++],C[a++]=C[k++],C[a++]=C[k++],_-=3}while(_>2);_&&(C[a++]=C[k++],_>1&&(C[a++]=C[k++]))}break}}break}}while(n<i&&a<o);n-=_=m>>3,d&=(1<<(m-=_<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=a<o?o-a+257:257-(a-o),r.hold=d,r.bits=m},Ei=15,Ci=[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],Ai=[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],Li=[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],Bi=[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],Ii=function(e,t,r,n,i,a,s,o){var l,u,h,c,f,d,m,p,g,v=o.bits,y=0,w=0,b=0,_=0,S=0,k=0,x=0,E=0,C=0,A=0,L=null,B=0,I=new Kr.Buf16(16),R=new Kr.Buf16(16),T=null,O=0;for(y=0;y<=Ei;y++)I[y]=0;for(w=0;w<n;w++)I[t[r+w]]++;for(S=v,_=Ei;_>=1&&0===I[_];_--);if(S>_&&(S=_),0===_)return i[a++]=20971520,i[a++]=20971520,o.bits=1,0;for(b=1;b<_&&0===I[b];b++);for(S<b&&(S=b),E=1,y=1;y<=Ei;y++)if(E<<=1,(E-=I[y])<0)return-1;if(E>0&&(0===e||1!==_))return-1;for(R[1]=0,y=1;y<Ei;y++)R[y+1]=R[y]+I[y];for(w=0;w<n;w++)0!==t[r+w]&&(s[R[t[r+w]]++]=w);if(0===e?(L=T=s,d=19):1===e?(L=Ci,B-=257,T=Ai,O-=257,d=256):(L=Li,T=Bi,d=-1),A=0,w=0,y=b,f=a,k=S,x=0,h=-1,c=(C=1<<S)-1,1===e&&C>852||2===e&&C>592)return 1;for(;;){m=y-x,s[w]<d?(p=0,g=s[w]):s[w]>d?(p=T[O+s[w]],g=L[B+s[w]]):(p=96,g=0),l=1<<y-x,b=u=1<<k;do{i[f+(A>>x)+(u-=l)]=m<<24|p<<16|g|0}while(0!==u);for(l=1<<y-1;A&l;)l>>=1;if(0!==l?(A&=l-1,A+=l):A=0,w++,0==--I[y]){if(y===_)break;y=t[r+s[w]]}if(y>S&&(A&c)!==h){for(0===x&&(x=S),f+=b,E=1<<(k=y-x);k+x<_&&!((E-=I[k+x])<=0);)k++,E<<=1;if(C+=1<<k,1===e&&C>852||2===e&&C>592)return 1;i[h=A&c]=S<<24|k<<16|f-a|0}}return 0!==A&&(i[f+A]=y-x<<24|64<<16|0),o.bits=S,0},Ri=-2,Ti=12,Oi=30;function zi(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Di(){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 Kr.Buf16(320),this.work=new Kr.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Mi(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Kr.Buf32(852),t.distcode=t.distdyn=new Kr.Buf32(592),t.sane=1,t.back=-1,0):Ri}function Pi(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,Mi(e)):Ri}function Fi(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Ri:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,Pi(e))):Ri}function Ni(e,t){var r,n;return e?(n=new Di,e.state=n,n.window=null,0!==(r=Fi(e,t))&&(e.state=null),r):Ri}var Ui,Wi,ji=!0;function Vi(e){if(ji){var t;for(Ui=new Kr.Buf32(512),Wi=new Kr.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ii(1,e.lens,0,288,Ui,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ii(2,e.lens,0,32,Wi,0,e.work,{bits:5}),ji=!1}e.lencode=Ui,e.lenbits=9,e.distcode=Wi,e.distbits=5}function Zi(e,t,r,n){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Kr.Buf8(a.wsize)),n>=a.wsize?(Kr.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>n&&(i=n),Kr.arraySet(a.window,t,r-n,i,a.wnext),(n-=i)?(Kr.arraySet(a.window,t,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}var $i={inflateReset:Pi,inflateReset2:Fi,inflateResetKeep:Mi,inflateInit:function(e){return Ni(e,15)},inflateInit2:Ni,inflate:function(e,t){var r,n,i,a,s,o,l,u,h,c,f,d,m,p,g,v,y,w,b,_,S,k,x,E,C=0,A=new Kr.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Ri;(r=e.state).mode===Ti&&(r.mode=13),s=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,o=e.avail_in,u=r.hold,h=r.bits,c=o,f=l,k=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;h<16;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if(2&r.wrap&&35615===u){r.check=0,A[0]=255&u,A[1]=u>>>8&255,r.check=Fn(r.check,A,2,0),u=0,h=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=Oi;break}if(8!=(15&u)){e.msg="unknown compression method",r.mode=Oi;break}if(h-=4,S=8+(15&(u>>>=4)),0===r.wbits)r.wbits=S;else if(S>r.wbits){e.msg="invalid window size",r.mode=Oi;break}r.dmax=1<<S,e.adler=r.check=1,r.mode=512&u?10:Ti,u=0,h=0;break;case 2:for(;h<16;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if(r.flags=u,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=Oi;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=Oi;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=Fn(r.check,A,2,0)),u=0,h=0,r.mode=3;case 3:for(;h<32;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}r.head&&(r.head.time=u),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,r.check=Fn(r.check,A,4,0)),u=0,h=0,r.mode=4;case 4:for(;h<16;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=Fn(r.check,A,2,0)),u=0,h=0,r.mode=5;case 5:if(1024&r.flags){for(;h<16;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=Fn(r.check,A,2,0)),u=0,h=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=r.length)>o&&(d=o),d&&(r.head&&(S=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Kr.arraySet(r.head.extra,n,a,d,S)),512&r.flags&&(r.check=Fn(r.check,n,d,a)),o-=d,a+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break e;d=0;do{S=n[a+d++],r.head&&S&&r.length<65536&&(r.head.name+=String.fromCharCode(S))}while(S&&d<o);if(512&r.flags&&(r.check=Fn(r.check,n,d,a)),o-=d,a+=d,S)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===o)break e;d=0;do{S=n[a+d++],r.head&&S&&r.length<65536&&(r.head.comment+=String.fromCharCode(S))}while(S&&d<o);if(512&r.flags&&(r.check=Fn(r.check,n,d,a)),o-=d,a+=d,S)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;h<16;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if(u!==(65535&r.check)){e.msg="header crc mismatch",r.mode=Oi;break}u=0,h=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Ti;break;case 10:for(;h<32;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}e.adler=r.check=zi(u),u=0,h=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=s,e.avail_out=l,e.next_in=a,e.avail_in=o,r.hold=u,r.bits=h,2;e.adler=r.check=1,r.mode=Ti;case Ti:if(5===t||6===t)break e;case 13:if(r.last){u>>>=7&h,h-=7&h,r.mode=27;break}for(;h<3;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}switch(r.last=1&u,h-=1,3&(u>>>=1)){case 0:r.mode=14;break;case 1:if(Vi(r),r.mode=20,6===t){u>>>=2,h-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=Oi}u>>>=2,h-=2;break;case 14:for(u>>>=7&h,h-=7&h;h<32;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Oi;break}if(r.length=65535&u,u=0,h=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(d=r.length){if(d>o&&(d=o),d>l&&(d=l),0===d)break e;Kr.arraySet(i,n,a,d,s),o-=d,a+=d,l-=d,s+=d,r.length-=d;break}r.mode=Ti;break;case 17:for(;h<14;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if(r.nlen=257+(31&u),u>>>=5,h-=5,r.ndist=1+(31&u),u>>>=5,h-=5,r.ncode=4+(15&u),u>>>=4,h-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Oi;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;h<3;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}r.lens[L[r.have++]]=7&u,u>>>=3,h-=3}for(;r.have<19;)r.lens[L[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,x={bits:r.lenbits},k=Ii(0,r.lens,0,19,r.lencode,0,r.work,x),r.lenbits=x.bits,k){e.msg="invalid code lengths set",r.mode=Oi;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;v=(C=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,y=65535&C,!((g=C>>>24)<=h);){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if(y<16)u>>>=g,h-=g,r.lens[r.have++]=y;else{if(16===y){for(E=g+2;h<E;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if(u>>>=g,h-=g,0===r.have){e.msg="invalid bit length repeat",r.mode=Oi;break}S=r.lens[r.have-1],d=3+(3&u),u>>>=2,h-=2}else if(17===y){for(E=g+3;h<E;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}h-=g,S=0,d=3+(7&(u>>>=g)),u>>>=3,h-=3}else{for(E=g+7;h<E;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}h-=g,S=0,d=11+(127&(u>>>=g)),u>>>=7,h-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Oi;break}for(;d--;)r.lens[r.have++]=S}}if(r.mode===Oi)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=Oi;break}if(r.lenbits=9,x={bits:r.lenbits},k=Ii(1,r.lens,0,r.nlen,r.lencode,0,r.work,x),r.lenbits=x.bits,k){e.msg="invalid literal/lengths set",r.mode=Oi;break}if(r.distbits=6,r.distcode=r.distdyn,x={bits:r.distbits},k=Ii(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,x),r.distbits=x.bits,k){e.msg="invalid distances set",r.mode=Oi;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(o>=6&&l>=258){e.next_out=s,e.avail_out=l,e.next_in=a,e.avail_in=o,r.hold=u,r.bits=h,xi(e,f),s=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,o=e.avail_in,u=r.hold,h=r.bits,r.mode===Ti&&(r.back=-1);break}for(r.back=0;v=(C=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,y=65535&C,!((g=C>>>24)<=h);){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if(v&&0==(240&v)){for(w=g,b=v,_=y;v=(C=r.lencode[_+((u&(1<<w+b)-1)>>w)])>>>16&255,y=65535&C,!(w+(g=C>>>24)<=h);){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}u>>>=w,h-=w,r.back+=w}if(u>>>=g,h-=g,r.back+=g,r.length=y,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=Ti;break}if(64&v){e.msg="invalid literal/length code",r.mode=Oi;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(E=r.extra;h<E;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,h-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(C=r.distcode[u&(1<<r.distbits)-1])>>>16&255,y=65535&C,!((g=C>>>24)<=h);){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if(0==(240&v)){for(w=g,b=v,_=y;v=(C=r.distcode[_+((u&(1<<w+b)-1)>>w)])>>>16&255,y=65535&C,!(w+(g=C>>>24)<=h);){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}u>>>=w,h-=w,r.back+=w}if(u>>>=g,h-=g,r.back+=g,64&v){e.msg="invalid distance code",r.mode=Oi;break}r.offset=y,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(E=r.extra;h<E;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,h-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Oi;break}r.mode=25;case 25:if(0===l)break e;if(d=f-l,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Oi;break}d>r.wnext?(d-=r.wnext,m=r.wsize-d):m=r.wnext-d,d>r.length&&(d=r.length),p=r.window}else p=i,m=s-r.offset,d=r.length;d>l&&(d=l),l-=d,r.length-=d;do{i[s++]=p[m++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===l)break e;i[s++]=r.length,l--,r.mode=21;break;case 27:if(r.wrap){for(;h<32;){if(0===o)break e;o--,u|=n[a++]<<h,h+=8}if(f-=l,e.total_out+=f,r.total+=f,f&&(e.adler=r.check=r.flags?Fn(r.check,i,f,s-f):Dn(r.check,i,f,s-f)),f=l,(r.flags?u:zi(u))!==r.check){e.msg="incorrect data check",r.mode=Oi;break}u=0,h=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;h<32;){if(0===o)break e;o--,u+=n[a++]<<h,h+=8}if(u!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=Oi;break}u=0,h=0}r.mode=29;case 29:k=1;break e;case Oi:k=-3;break e;case 31:return-4;case 32:default:return Ri}return e.next_out=s,e.avail_out=l,e.next_in=a,e.avail_in=o,r.hold=u,r.bits=h,(r.wsize||f!==e.avail_out&&r.mode<Oi&&(r.mode<27||4!==t))&&Zi(e,e.output,e.next_out,f-e.avail_out),c-=e.avail_in,f-=e.avail_out,e.total_in+=c,e.total_out+=f,r.total+=f,r.wrap&&f&&(e.adler=r.check=r.flags?Fn(r.check,i,f,e.next_out-f):Dn(r.check,i,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Ti?128:0)+(20===r.mode||15===r.mode?256:0),(0===c&&0===f||4===t)&&0===k&&(k=-5),k},inflateEnd:function(e){if(!e||!e.state)return Ri;var t=e.state;return t.window&&(t.window=null),e.state=null,0},inflateGetHeader:function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?Ri:(r.head=t,t.done=!1,0):Ri},inflateSetDictionary:function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?Ri:11===r.mode&&Dn(1,t,n,0)!==r.check?-3:Zi(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):Ri},inflateInfo:"pako inflate (from Nodeca project)"},Hi={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};var qi=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},Yi=Object.prototype.toString;function Gi(e){if(!(this instanceof Gi))return new Gi(e);this.options=Kr.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wi,this.strm.avail_out=0;var r=$i.inflateInit2(this.strm,t.windowBits);if(r!==Hi.Z_OK)throw new Error(Nn[r]);if(this.header=new qi,$i.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=mi(t.dictionary):"[object ArrayBuffer]"===Yi.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=$i.inflateSetDictionary(this.strm,t.dictionary))!==Hi.Z_OK))throw new Error(Nn[r])}function Ki(e,t){var r=new Gi(t);if(r.push(e,!0),r.err)throw r.msg||Nn[r.err];return r.result}Gi.prototype.push=function(e,t){var r,n,i,a,s,o=this.strm,l=this.options.chunkSize,u=this.options.dictionary,h=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?Hi.Z_FINISH:Hi.Z_NO_FLUSH,"string"==typeof e?o.input=gi(e):"[object ArrayBuffer]"===Yi.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new Kr.Buf8(l),o.next_out=0,o.avail_out=l),(r=$i.inflate(o,Hi.Z_NO_FLUSH))===Hi.Z_NEED_DICT&&u&&(r=$i.inflateSetDictionary(this.strm,u)),r===Hi.Z_BUF_ERROR&&!0===h&&(r=Hi.Z_OK,h=!1),r!==Hi.Z_STREAM_END&&r!==Hi.Z_OK)return this.onEnd(r),this.ended=!0,!1;o.next_out&&(0!==o.avail_out&&r!==Hi.Z_STREAM_END&&(0!==o.avail_in||n!==Hi.Z_FINISH&&n!==Hi.Z_SYNC_FLUSH)||("string"===this.options.to?(i=yi(o.output,o.next_out),a=o.next_out-i,s=vi(o.output,i),o.next_out=a,o.avail_out=l-a,a&&Kr.arraySet(o.output,o.output,i,a,0),this.onData(s)):this.onData(Kr.shrinkBuf(o.output,o.next_out)))),0===o.avail_in&&0===o.avail_out&&(h=!0)}while((o.avail_in>0||0===o.avail_out)&&r!==Hi.Z_STREAM_END);return r===Hi.Z_STREAM_END&&(n=Hi.Z_FINISH),n===Hi.Z_FINISH?(r=$i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Hi.Z_OK):n!==Hi.Z_SYNC_FLUSH||(this.onEnd(Hi.Z_OK),o.avail_out=0,!0)},Gi.prototype.onData=function(e){this.chunks.push(e)},Gi.prototype.onEnd=function(e){e===Hi.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Kr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Xi={Inflate:Gi,inflate:Ki,inflateRaw:function(e,t){return(t=t||{}).raw=!0,Ki(e,t)},ungzip:Ki},Ji={};(0,Kr.assign)(Ji,ki,Xi,Hi);var Qi=Ji,ea="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?"uint8array":"array";function ta(e,t){kr.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}_r.inherits(ta,kr),ta.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(_r.transformTo(ea,e.data),!1)},ta.prototype.flush=function(){kr.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},ta.prototype.cleanUp=function(){kr.prototype.cleanUp.call(this),this._pako=null},ta.prototype._createPako=function(){this._pako=new Qi[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};var ra={STORE:{magic:"\0\0",compressWorker:function(e){return new kr("STORE compression")},uncompressWorker:function(){return new kr("STORE decompression")}},DEFLATE:{magic:"\b\0",compressWorker:function(e){return new ta("Deflate",e)},uncompressWorker:function(){return new ta("Inflate",{})}}},na="PK",ia="PK",aa="PK",sa="PK",oa="PK",la="PK\b",ua=function(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n},ha=function(e,t,r,n,i,a){var s,o,l=e.file,u=e.compression,h=a!==xr.utf8encode,c=_r.transformTo("string",a(l.name)),f=_r.transformTo("string",xr.utf8encode(l.name)),d=l.comment,m=_r.transformTo("string",a(d)),p=_r.transformTo("string",xr.utf8encode(d)),g=f.length!==l.name.length,v=p.length!==d.length,y="",w="",b="",_=l.dir,S=l.date,k={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(k.crc32=e.crc32,k.compressedSize=e.compressedSize,k.uncompressedSize=e.uncompressedSize);var x=0;t&&(x|=8),h||!g&&!v||(x|=2048);var E=0,C=0;_&&(E|=16),"UNIX"===i?(C=798,E|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(l.unixPermissions,_)):(C=20,E|=function(e,t){return 63&(e||0)}(l.dosPermissions)),s=S.getUTCHours(),s<<=6,s|=S.getUTCMinutes(),s<<=5,s|=S.getUTCSeconds()/2,o=S.getUTCFullYear()-1980,o<<=4,o|=S.getUTCMonth()+1,o<<=5,o|=S.getUTCDate(),g&&(w=ua(1,1)+ua(Ur(c),4)+f,y+="up"+ua(w.length,2)+w),v&&(b=ua(1,1)+ua(Ur(m),4)+p,y+="uc"+ua(b.length,2)+b);var A="";return A+="\n\0",A+=ua(x,2),A+=u.magic,A+=ua(s,2),A+=ua(o,2),A+=ua(k.crc32,4),A+=ua(k.compressedSize,4),A+=ua(k.uncompressedSize,4),A+=ua(c.length,2),A+=ua(y.length,2),{fileRecord:na+A+c+y,dirRecord:ia+ua(C,2)+A+ua(m.length,2)+"\0\0\0\0"+ua(E,4)+ua(n,4)+c+y+m}},ca=function(e){return la+ua(e.crc32,4)+ua(e.compressedSize,4)+ua(e.uncompressedSize,4)};function fa(e,t,r,n){kr.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}_r.inherits(fa,kr),fa.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,kr.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},fa.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=ha(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},fa.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=ha(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:ca(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},fa.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,n=function(e,t,r,n,i){var a=_r.transformTo("string",i(n));return aa+"\0\0\0\0"+ua(e,2)+ua(e,2)+ua(t,4)+ua(r,4)+ua(a.length,2)+a}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},fa.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},fa.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},fa.prototype.resume=function(){return!!kr.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},fa.prototype.error=function(e){var t=this._sources;if(!kr.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},fa.prototype.lock=function(){kr.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};var da=fa,ma=function(e,t,r){var n=new da(t.streamFiles,r,t.platform,t.encodeFileName),i=0;try{e.forEach((function(e,r){i++;var a=function(e,t){var r=e||t,n=ra[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},o=r.dir,l=r.date;r._compressWorker(a,s).withStreamInfo("file",{name:e,dir:o,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=i}catch(e){n.error(e)}return n};function pa(e,t){kr.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}_r.inherits(pa,kr),pa.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},pa.prototype.pause=function(){return!!kr.prototype.pause.call(this)&&(this._stream.pause(),!0)},pa.prototype.resume=function(){return!!kr.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};var ga=pa,va=function(e,t,r){var n,i=_r.getTypeOf(t),a=_r.extend(r||{},zr);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=wa(e)),a.createFolders&&(n=ya(e))&&ba.call(this,n,!0);var s="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!s),(t instanceof Zr&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var o=null;o=t instanceof Zr||t instanceof kr?t:Yt&&Jt(t)?new ga(e,t):_r.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var l=new Gr(e,o,a);this.files[e]=l},ya=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},wa=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},ba=function(e,t){return t=void 0!==t?t:zr.createFolders,e=wa(e),this.files[e]||va.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function _a(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var Sa={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1===arguments.length){if(_a(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,va.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(_a(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=ba.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=_r.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:xr.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");_r.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=ma(this,r,n)}catch(e){(t=new kr("error")).error(e)}return new Or(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};function ka(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}ka.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return _r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}};var xa=ka;function Ea(e){xa.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}_r.inherits(Ea,xa),Ea.prototype.byteAt=function(e){return this.data[this.zero+e]},Ea.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},Ea.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},Ea.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var Ca=Ea;function Aa(e){xa.call(this,e)}_r.inherits(Aa,xa),Aa.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},Aa.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},Aa.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},Aa.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var La=Aa;function Ba(e){Ca.call(this,e)}_r.inherits(Ba,Ca),Ba.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var Ia=Ba;function Ra(e){Ia.call(this,e)}_r.inherits(Ra,Ia),Ra.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var Ta=Ra,Oa=function(e){var t=_r.getTypeOf(e);return _r.checkSupport(t),"string"!==t||Zt.uint8array?"nodebuffer"===t?new Ta(e):Zt.uint8array?new Ia(_r.transformTo("uint8array",e)):new Ca(_r.transformTo("array",e)):new La(e)};function za(e,t){this.options=e,this.loadOptions=t}za.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in ra)if(ra.hasOwnProperty(t)&&ra[t].magic===e)return ra[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+_r.pretty(this.compressionMethod)+" unknown (inner file : "+_r.transformTo("string",this.fileName)+")");this.decompressed=new Zr(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=Oa(this.extraFields[1].value);this.uncompressedSize===_r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===_r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===_r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===_r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=Zt.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=xr.utf8decode(this.fileName),this.fileCommentStr=xr.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=_r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=_r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=Oa(e.value);return 1!==t.readInt(1)||Ur(this.fileName)!==t.readInt(4)?null:xr.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=Oa(e.value);return 1!==t.readInt(1)||Ur(this.fileComment)!==t.readInt(4)?null:xr.utf8decode(t.readData(e.length-5))}return null}};var Da=za;function Ma(e){this.files=[],this.loadOptions=e}Ma.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+_r.pretty(t)+", expected "+_r.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=Zt.uint8array?"uint8array":"array",r=_r.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(na),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(ia);)(e=new Da({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(aa);if(e<0)throw!this.isSignature(0,na)?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(e);var t=e;if(this.checkSignature(aa),this.readBlockEndOfCentral(),this.diskNumber===_r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===_r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===_r.MAX_VALUE_16BITS||this.centralDirRecords===_r.MAX_VALUE_16BITS||this.centralDirSize===_r.MAX_VALUE_32BITS||this.centralDirOffset===_r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(sa))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(sa),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,oa)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(oa),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(oa),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(n>0)this.isSignature(t,ia)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=Oa(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var Pa=Ma;function Fa(e){return new br.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new jr);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}function Na(){if(!(this instanceof Na))return new Na;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new Na;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}Na.prototype=Sa,Na.prototype.loadAsync=function(e,t){var r=this;return t=_r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:xr.utf8decode}),Yt&&Jt(e)?br.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):_r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new Pa(t);return r.load(e),r})).then((function(e){var r=[br.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var i=0;i<n.length;i++)r.push(Fa(n[i]));return br.Promise.all(r)})).then((function(e){for(var n=e.shift(),i=n.files,a=0;a<i.length;a++){var s=i[a];r.file(s.fileNameStr,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders})}return n.zipComment.length&&(r.comment=n.zipComment),r}))},Na.support=Zt,Na.defaults=zr,Na.version="3.5.0",Na.loadAsync=function(e,t){return(new Na).loadAsync(e,t)},Na.external=br;var Ua=Na;const Wa="macrovirus_settings",ja=Object.freeze({renameVariables:{key:"renameVariables",name:"Rename variables",defaultValue:!0},removeDeadCode:{key:"removeDeadCode",name:"Remove dead code",defaultValue:!0},removeComments:{key:"removeComments",name:"Remove comments",defaultValue:!1},deobfuscateDecompiledPCode:{key:"deobfuscateDecompiledPCode",name:"Deobfuscate decompiled p-code",defaultValue:!1},deobfuscateStrings:{key:"deobfuscateStrings",name:"Deobfuscate Chr, Asc",defaultValue:!0},showSourceCode:{key:"showSourceCode",name:"--",defaultValue:!0},showPCode:{key:"showPCode",name:"--",defaultValue:!1},useDecompiledPCode:{key:"useDecompiledPCode",name:"--",defaultValue:!1}}),Va=[ja.renameVariables,ja.removeDeadCode,ja.removeComments,ja.deobfuscateDecompiledPCode,ja.deobfuscateStrings];function Za(e,t){const r=JSON.parse(window.localStorage[Wa]);r[e.key]=t,window.localStorage[Wa]=JSON.stringify(r)}function $a(e){return JSON.parse(window.localStorage[Wa])[e.key]}function Ha(e){return String.fromCharCode(e)}function qa(e){return e.charCodeAt(0)}const Ya="[A-Za-z][A-Za-z0-9_-]*",Ga=new RegExp(`^[ \\t]*((Public|Private)[ \\t]+)?(Sub|Function)[ \\t]+(?<functionName>${Ya})[ \\t]*\\(.*\\)`),Ka=new RegExp("^[ \\t]*End[ \\t]*(Sub|Function)[ \\t]*$","m"),Xa=(e,t=!1)=>{let r="g";return t&&(r+="i"),new RegExp(`^(?<before>(?:[^"]*?"[^"]*?")*?[^"]*?)\\b${e}\\b`,r)},Ja=e=>new RegExp(`\\b${e}[ \\t]*\\((?<args>.*?)\\)`,"gi"),Qa=(e,t=!1)=>{let r="g";return t&&(r+="i"),new RegExp(`"${e}"`,r)},es=new RegExp(`^[ \\t]*((Public|Private)[ \\t]+)?Declare[ \\t]+(Sub|Function)[ \\t]+(?<functionName>${Ya})`),ts=new RegExp(`(^[ \\t]*(Set|Dim)[ \\t]+(?<variableName>${Ya}).*?$)|(^[ \\t]*(?<variableName2>${Ya})([ \\t]*\\(.+?\\))?[ \\t]*=.*?$)`),rs=new RegExp("^[ \\t]*'.*"),ns=new RegExp('^(?<before_comment>(?:[^"]*?"[^"]*?")*?[^"]*?)(?<comment>\'.*)'),is=new RegExp(" _(\r\n|\r|\n)","g"),as=new RegExp(":(?!=)","g"),ss=[{start:"Sub",end:"End"},{start:"Function",end:"End"},{start:"Do",end:"Loop"},{start:"For",end:"Next"},{start:"If",end:"End"},{start:"Select",end:"End"},{start:"SyncLock",end:"End"},{start:"Try",end:"End"},{start:"While",end:"End"},{start:"With",end:"End"}];function os(e){let t=e;return t=function(e){const t=e.split("\n");for(let e=t.length-1;e>=0;e--)t[e]=t[e].trim(),""===t[e]&&t.splice(e,1);return e=t.join("\n")}(t),$a(ja.removeComments)&&(t=us(t)),t=hs(t),$a(ja.removeDeadCode)&&(t=function(e){return e=function(e){const t=[];let r=e.split("\n");for(const e of r)if(ts.test(e)){const r=e.match(ts).groups;r.variableName?t.push(r.variableName):r.variableName2&&t.push(r.variableName2),r.variableName&&r.variableName2&&console.log("Excuse me?! RemoveUnusedVariables method matched variable declaration using two regexes simultaneously")}for(const e of t){let t=!1;for(const n of r)if(new RegExp(`\\b${e}\\b`).test(n)){const r=n.match(ts);if(!r||r.groups.variableName&&r.groups.variableName!==e||r.groups.variableName2&&r.groups.variableName2!==e){t=!0;break}}t||(r=r.filter((t=>!new RegExp(`\\b${e}\\b`).test(t))))}return r.join("\n")}(e)}(t)),$a(ja.renameVariables)&&(t=function(e){const t=[],r=[];let n=e.split("\n");for(const e of n){const r=e.match(Ga);r&&t.push(r.groups.functionName)}let i=0;for(const e of t){if(vs(e))continue;const t="fun_"+i;for(let r=0;r<n.length;r++)n[r]=ls(n[r],e,t,!0);r.push(t),i++}const a=[];for(const e of n){const t=e.match(ts);t&&(t.groups.variableName?a.push(t.groups.variableName):t.groups.variableName2&&a.push(t.groups.variableName2))}i=0;for(const e of a){if(r.includes(e))continue;const t="var_"+i;for(let r=0;r<n.length;r++)n[r]=ls(n[r],e,t,!0);i++}return n.join("\n")}(t)),$a(ja.deobfuscateStrings)&&(t=function(e){let t=e.split("\n");for(let e=0;e<t.length;e++)t[e]=t[e].replace(Ja("Chr"),((e,t,r,n,i)=>{const a=Number(i.args);return Number.isNaN(a)?e:'"'+Ha(a).toString()+'"'})),t[e]=t[e].replace(Ja("ChrW"),((e,t,r,n,i)=>{const a=Number(i.args);return Number.isNaN(a)?e:'"'+Ha(a).toString()+'"'})),t[e]=t[e].replace(Ja("Asc"),((e,t,r,n,i)=>{const a=i.args;return'"'===a[0]&&'"'===a[a.length-1]?qa(a).toString():e}));return t.join("\n")}(t)),t=function(e){const t=" ";let r=[];const n=e.split("\n");for(let e=0;e<n.length;e++){let i=0;n[e]=n[e].trim();const a=n[e].match(new RegExp("^[ \\t]*((Private|Public)[ \\t]+)?(?<firstWord>\\b[A-Za-z]+?\\b).*?$"));if(a){const t=a.groups.firstWord,s=ss.find((e=>e.start===t));if(s)r.push(s),i=-1;else if(r.length>0&&r[r.length-1].end===t){const t=r.pop();"Sub"!==t.start&&"Function"!==t.start||n.splice(e+1,0,"")}}for(let a=0;a<r.length+i;a++)n[e]=t+n[e]}return e=n.join("\n")}(t),t}function ls(e,t,r,n=!1){return e.replace(Xa(t,n),"$<before>"+r)}function us(e){let t=[];for(const r of e.split("\n"))rs.test(r)||t.push(r.replace(ns,"$<before_comment>"));return t.join("\n")}function hs(e){return e=e.replace(as,"\n")}const cs=[/Workbook_Open/i,/Document_Open/i,/Document_Close/i,/Auto_?Open/i,/Workbook_BeforeClose/i,/Main/i,/\w+_Layout/i,/\w+_Resize/i,/\w+_GotFocus/i,/\w+_LostFocus/i,/\w+_MouseHover/i,/\w+_Click/i,/\w+_Change/i,/\w+_BeforeNavigate2/i,/\w+_BeforeScriptExecute/i,/\w+_DocumentComplete/i,/\w+_DownloadBegin/i,/\w+_DownloadComplete/i,/\w+_FileDownload/i,/\w+_NavigateComplete2/i,/\w+_NavigateError/i,/\w+_ProgressChange/i,/\w+_PropertyChange/i,/\w+_SetSecureLockIcon/i,/\w+_StatusTextChange/i,/\w+_TitleChange/i,/\w+_MouseMove/i,/\w+_MouseEnter/i,/\w+_MouseLeave/i,/\w+_OnConnecting/i,/\w+_FollowHyperlink/i,/\w+_ContentControlOnEnter/i],fs=[{word:"Kill",description:"Deletes files"},{word:"CreateTextFile",description:"Writes to file system"},{word:"Open",description:"Opens a file"},{word:"Get",description:"Can create shell to execute external programs"},{word:"Shell",description:"Runs an executable or a system command"},{word:"Create",description:"Can create shell to execute external programs"},{word:"CreateObject",description:"Can create shell to execute external programs"},{word:"GetObject",description:"Can get shell to execute external programs"}],ds=[{string:"Microsoft.XMLHTTP",description:"Can download a file from the internet"},{string:"Wscript.Shell",description:"Runs an executable or a system command"}],ms=[{regex:/Options\..+[ \t]*=/,word:"Options",description:"Modifies word settings"}];function ps(e){if(e.readError)return"Error reading file";if(0===e.macroModules.length)return"Module is safe!\n(No macro scripts detected)";let t=!0,r="";const n=function(e){const t=[];let r="";for(const t of e.macroModules)r+=t.sourceCode+" ";for(const n of e.macroModules){const e=new Set;for(const t of n.pcode)for(const r of t.split("\n")){const t=r.indexOf(" "),n=[r.slice(0,t),r.slice(t+1)],i=n[0];let a="";if(2===n.length&&(a=n[1]),["ArgsCall","ArgsLd","St","Ld","MemSt","Label"].includes(i)){a.startsWith("(Call) ")&&(a=a.slice(7));const t=a.split(" ")[0];t.startsWith("id_")||e.add(t)}if("LitStr"===i){const t=r.indexOf(" ");let n=a.slice(t+1);n.length>=2&&(n=n.slice(1,n.length-1),n=n.replaceAll('"','""'),n='"'+n+'"'),e.add(n)}}for(const i of e.values())"undefined"!==i&&(r.toLowerCase().includes(i.toLowerCase())||t.push({module:n,keyword:i}))}return t}(e);if(n.length>0){t=!1,r+="<div class='mb-s'>Detected <b>VBA stomping</b>!\nKeywords missing from source code:</div>";for(const e of n)r+=`<li><span class="list-flex-sb"><span>${e.keyword}</span><span class="sneaky">(${e.module.name})</span></span></li>`;r+="\n"}for(const n of e.VBAFunctions){if(!vs(n.name))continue;let i=n.body.join("\n")+"\n";const a=[],s=ys(n,e.VBAFunctions);for(const e of s)i+=e.body.join("\n")+"\n";i=gs(i),s.some((e=>e.type===ws.DLL))&&(a.push({word:"Lib",description:"Executes DLLs"}),t=!1);for(const e of fs)Xa(e.word).test(i)&&(a.push(e),t=!1);for(const e of ds)Qa(e.string,!0).test(i)&&(a.push({word:'"'+e.string+'"',description:e.description}),t=!1);for(const e of ms)e.regex.test(i)&&(a.push(e),t=!1);if(0!==a.length){r+=`<div class='mb-s'>Autoexec function <b>${n.name}</b> contains suspicious keywords:</div>`;for(const e of a)r+=`<li><span>${e.word}</span><span class="keyword-description">(${e.description})</span></li>`;r+="\n"}}return t?(e.isMalicious=!1,"File is safe!\n"):(e.isMalicious=!0,r)}function gs(e){return e=hs(e=us(e=function(e){return e.replaceAll(is," ")}(e)))}function vs(e){return cs.some((t=>t.test(e)))}function ys(e,t){const r=(e,n)=>{for(const i of e.dependencies){const e=t.find((e=>e.id===i));n.includes(e)||(n.push(e),r(e,n))}return n};return r(e,[])}const ws=Object.freeze({Normal:0,DLL:1});function bs(e,t,r){const n=e.slice(t.value,t.value+r).buffer;let i;return 1===r?i=new DataView(n).getUint8(0):2===r?i=new DataView(n).getUint16(0,!0):4===r?i=new DataView(n).getUint32(0,!0):r>4&&(i=new DataView(n).getBigUint64(0,!0)),t.value+=r,i}function _s(e,t,r){const n=e.slice(t.value,t.value+r);return t.value+=r,n}function Ss(e,t,r,n=1){let i=bs(e,t,r);i!==(2===r?65535:4294967295)&&(t.value+=i*n)}function ks(e){let t="";for(let r=0;r<e.length;r++){const n=e[r];0!==n&&(t+=String.fromCharCode(n))}return t}function xs(e,t,r){const n=function(e){const t={value:0},r=[];let n=!1;for(;t.value<e.length;)try{const i=bs(e,t,2);let a=bs(e,t,2);if(9===i?a=6:3===i&&(a=2),t.value+=2,a){if(3===i){bs(e,{value:t.value},2)}else if(50===i){const n=_s(e,{value:t.value},a);r.push(ks(n))}else if(1===i){n=3===bs(e,{value:t.value},4)}t.value+=a}}catch(e){break}return n}(r),i=function(e){let t=[],r={value:2},n=bs(e,r,2),i=n>=91&&![96,98,99].includes(n)||78===n,a=n>=89&&![96,98,99].includes(n)||78===n,s=n<=89&&78!==n||95>n>107;14===bs(e,{value:5},2)&&console.log("Big-endian identifiers?");r.value=30;let o=bs(e,r,2);r.value+=2;for(let t=0;t<o;t++){let t=bs(e,r,2);if(0===t)r.value+=6;else if(i&&t<5||!i&&t<3)r.value+=t;else{let n;n=i?e[r.value+4]:e[r.value+2],r.value+=t,67!==n&&68!==n||Ss(e,r,2)}if(r.value+=10,bs(e,r,2)){Ss(e,r,2);let t=bs(e,r,2);t&&(r.value+=2),r.value+=t+30}}Ss(e,r,2,2),Ss(e,r,2,4),r.value+=2,Ss(e,r,2),Ss(e,r,2),Ss(e,r,2),r.value+=100;let l=bs(e,r,2);for(let t=0;t<l;t++){let t=bs(e,r,2);a&&(r.value+=t),s&&(t&&(t=bs(e,r,2)),r.value+=t),Ss(e,r,2),Ss(e,r,2),bs(e,r,2),n>=107&&Ss(e,r,2),Ss(e,r,2),r.value+=2,81!==n&&(r.value+=4),Ss(e,r,2,8),r.value+=11}r.value+=6,Ss(e,r,4),r.value+=6;let u=bs(e,r,2),h=bs(e,r,2),c=bs(e,r,2);r.value+=4;let f=h+c-u;h=u-c;for(let t=0;t<f;t++){r.value+=4;let t=bs(e,r,1);bs(e,r,1)>127&&(r.value+=6),r.value+=t}for(let n=0;n<h;n++){let n=!1,i="",a=bs(e,r,1),s=bs(e,r,1);0===a&&0===s&&(r.value+=2,a=bs(e,r,1),s=bs(e,r,1),n=!0),128&s&&(r.value+=6),a&&(i=ks(e.slice(r.value,r.value+a)),t.push(i),r.value+=a),n||(r.value+=4)}return t}(t);let a=3,s={value:0};bs(e,s,2);let o,l,u,h,c,f,d=bs(t,s,2),m={value:0};d>=107?(a=d>=151?7:6,n?(o=bs(e,{value:67},4),l=e.slice(71,71+o),o=bs(e,{value:17},4),u=o+12):(o=bs(e,{value:63},4),l=e.slice(67,67+o),o=bs(e,{value:17},4),u=o+10),o=bs(e,{value:u},4),u+=4,h=e.slice(u,u+o),o=bs(e,{value:5},4),c=o+138,o=bs(e,{value:c},4),c+=4,f=e.slice(c,c+o),s.value=25):(a=5,s.value=11,o=bs(e,s,4),m.value=s.value+4,l=e.slice(m.value,m.value+o),Ss(e,s,4),s.value+=64,Ss(e,s,2,16),Ss(e,s,4),s.value+=6,Ss(e,s,4),m.value=s.value+8,o=bs(e,m,4),u=o+14,m.value=o+10,o=bs(e,m,4),h=e.slice(u,u+o),o=bs(e,s,4),m.value=o+138,o=bs(e,m,4),m.value+=4,f=e.slice(m.value,m.value+o),s.value+=77),o=bs(e,s,4),s.value=o+60,s.value+=4;const p=bs(e,s,2),g=s.value+12*p+10,v=[];for(let t=0;t<p;t++){s.value+=4;const t=bs(e,s,2);s.value+=2;const r=bs(e,s,4);v.push(As(e,g+r,t,a,i,f,h,l,n))}return v}const Es={0:{mnem:"Imp",args:[],varg:!1},1:{mnem:"Eqv",args:[],varg:!1},2:{mnem:"Xor",args:[],varg:!1},3:{mnem:"Or",args:[],varg:!1},4:{mnem:"And",args:[],varg:!1},5:{mnem:"Eq",args:[],varg:!1},6:{mnem:"Ne",args:[],varg:!1},7:{mnem:"Le",args:[],varg:!1},8:{mnem:"Ge",args:[],varg:!1},9:{mnem:"Lt",args:[],varg:!1},10:{mnem:"Gt",args:[],varg:!1},11:{mnem:"Add",args:[],varg:!1},12:{mnem:"Sub",args:[],varg:!1},13:{mnem:"Mod",args:[],varg:!1},14:{mnem:"IDiv",args:[],varg:!1},15:{mnem:"Mul",args:[],varg:!1},16:{mnem:"Div",args:[],varg:!1},17:{mnem:"Concat",args:[],varg:!1},18:{mnem:"Like",args:[],varg:!1},19:{mnem:"Pwr",args:[],varg:!1},20:{mnem:"Is",args:[],varg:!1},21:{mnem:"Not",args:[],varg:!1},22:{mnem:"UMi",args:[],varg:!1},23:{mnem:"FnAbs",args:[],varg:!1},24:{mnem:"FnFix",args:[],varg:!1},25:{mnem:"FnInt",args:[],varg:!1},26:{mnem:"FnSgn",args:[],varg:!1},27:{mnem:"FnLen",args:[],varg:!1},28:{mnem:"FnLenB",args:[],varg:!1},29:{mnem:"Paren",args:[],varg:!1},30:{mnem:"Sharp",args:[],varg:!1},31:{mnem:"LdLHS",args:["name"],varg:!1},32:{mnem:"Ld",args:["name"],varg:!1},33:{mnem:"MemLd",args:["name"],varg:!1},34:{mnem:"DictLd",args:["name"],varg:!1},35:{mnem:"IndexLd",args:["0x"],varg:!1},36:{mnem:"ArgsLd",args:["name","0x"],varg:!1},37:{mnem:"ArgsMemLd",args:["name","0x"],varg:!1},38:{mnem:"ArgsDictLd",args:["name","0x"],varg:!1},39:{mnem:"St",args:["name"],varg:!1},40:{mnem:"MemSt",args:["name"],varg:!1},41:{mnem:"DictSt",args:["name"],varg:!1},42:{mnem:"IndexSt",args:["0x"],varg:!1},43:{mnem:"ArgsSt",args:["name","0x"],varg:!1},44:{mnem:"ArgsMemSt",args:["name","0x"],varg:!1},45:{mnem:"ArgsDictSt",args:["name","0x"],varg:!1},46:{mnem:"Set",args:["name"],varg:!1},47:{mnem:"Memset",args:["name"],varg:!1},48:{mnem:"Dictset",args:["name"],varg:!1},49:{mnem:"Indexset",args:["0x"],varg:!1},50:{mnem:"ArgsSet",args:["name","0x"],varg:!1},51:{mnem:"ArgsMemSet",args:["name","0x"],varg:!1},52:{mnem:"ArgsDictSet",args:["name","0x"],varg:!1},53:{mnem:"MemLdWith",args:["name"],varg:!1},54:{mnem:"DictLdWith",args:["name"],varg:!1},55:{mnem:"ArgsMemLdWith",args:["name","0x"],varg:!1},56:{mnem:"ArgsDictLdWith",args:["name","0x"],varg:!1},57:{mnem:"MemStWith",args:["name"],varg:!1},58:{mnem:"DictStWith",args:["name"],varg:!1},59:{mnem:"ArgsMemStWith",args:["name","0x"],varg:!1},60:{mnem:"ArgsDictStWith",args:["name","0x"],varg:!1},61:{mnem:"MemSetWith",args:["name"],varg:!1},62:{mnem:"DictSetWith",args:["name"],varg:!1},63:{mnem:"ArgsMemSetWith",args:["name","0x"],varg:!1},64:{mnem:"ArgsDictSetWith",args:["name","0x"],varg:!1},65:{mnem:"ArgsCall",args:["name","0x"],varg:!1},66:{mnem:"ArgsMemCall",args:["name","0x"],varg:!1},67:{mnem:"ArgsMemCallWith",args:["name","0x"],varg:!1},68:{mnem:"ArgsArray",args:["name","0x"],varg:!1},69:{mnem:"Assert",args:[],varg:!1},70:{mnem:"BoS",args:["0x"],varg:!1},71:{mnem:"BoSImplicit",args:[],varg:!1},72:{mnem:"BoL",args:[],varg:!1},73:{mnem:"LdAddressOf",args:["name"],varg:!1},74:{mnem:"MemAddressOf",args:["name"],varg:!1},75:{mnem:"Case",args:[],varg:!1},76:{mnem:"CaseTo",args:[],varg:!1},77:{mnem:"CaseGt",args:[],varg:!1},78:{mnem:"CaseLt",args:[],varg:!1},79:{mnem:"CaseGe",args:[],varg:!1},80:{mnem:"CaseLe",args:[],varg:!1},81:{mnem:"CaseNe",args:[],varg:!1},82:{mnem:"CaseEq",args:[],varg:!1},83:{mnem:"CaseElse",args:[],varg:!1},84:{mnem:"CaseDone",args:[],varg:!1},85:{mnem:"Circle",args:["0x"],varg:!1},86:{mnem:"Close",args:["0x"],varg:!1},87:{mnem:"CloseAll",args:[],varg:!1},88:{mnem:"Coerce",args:[],varg:!1},89:{mnem:"CoerceVar",args:[],varg:!1},90:{mnem:"Context",args:["context_"],varg:!1},91:{mnem:"Debug",args:[],varg:!1},92:{mnem:"DefType",args:["0x","0x"],varg:!1},93:{mnem:"Dim",args:[],varg:!1},94:{mnem:"DimImplicit",args:[],varg:!1},95:{mnem:"Do",args:[],varg:!1},96:{mnem:"DoEvents",args:[],varg:!1},97:{mnem:"DoUnitil",args:[],varg:!1},98:{mnem:"DoWhile",args:[],varg:!1},99:{mnem:"Else",args:[],varg:!1},100:{mnem:"ElseBlock",args:[],varg:!1},101:{mnem:"ElseIfBlock",args:[],varg:!1},102:{mnem:"ElseIfTypeBlock",args:["imp_"],varg:!1},103:{mnem:"End",args:[],varg:!1},104:{mnem:"EndContext",args:[],varg:!1},105:{mnem:"EndFunc",args:[],varg:!1},106:{mnem:"EndIf",args:[],varg:!1},107:{mnem:"EndIfBlock",args:[],varg:!1},108:{mnem:"EndImmediate",args:[],varg:!1},109:{mnem:"EndProp",args:[],varg:!1},110:{mnem:"EndSelect",args:[],varg:!1},111:{mnem:"EndSub",args:[],varg:!1},112:{mnem:"EndType",args:[],varg:!1},113:{mnem:"EndWith",args:[],varg:!1},114:{mnem:"Erase",args:["0x"],varg:!1},115:{mnem:"Error",args:[],varg:!1},116:{mnem:"EventDecl",args:["func_"],varg:!1},117:{mnem:"RaiseEvent",args:["name","0x"],varg:!1},118:{mnem:"ArgsMemRaiseEvent",args:["name","0x"],varg:!1},119:{mnem:"ArgsMemRaiseEventWith",args:["name","0x"],varg:!1},120:{mnem:"ExitDo",args:[],varg:!1},121:{mnem:"ExitFor",args:[],varg:!1},122:{mnem:"ExitFunc",args:[],varg:!1},123:{mnem:"ExitProp",args:[],varg:!1},124:{mnem:"ExitSub",args:[],varg:!1},125:{mnem:"FnCurDir",args:[],varg:!1},126:{mnem:"FnDir",args:[],varg:!1},127:{mnem:"Empty0",args:[],varg:!1},128:{mnem:"Empty1",args:[],varg:!1},129:{mnem:"FnError",args:[],varg:!1},130:{mnem:"FnFormat",args:[],varg:!1},131:{mnem:"FnFreeFile",args:[],varg:!1},132:{mnem:"FnInStr",args:[],varg:!1},133:{mnem:"FnInStr3",args:[],varg:!1},134:{mnem:"FnInStr4",args:[],varg:!1},135:{mnem:"FnInStrB",args:[],varg:!1},136:{mnem:"FnInStrB3",args:[],varg:!1},137:{mnem:"FnInStrB4",args:[],varg:!1},138:{mnem:"FnLBound",args:["0x"],varg:!1},139:{mnem:"FnMid",args:[],varg:!1},140:{mnem:"FnMidB",args:[],varg:!1},141:{mnem:"FnStrComp",args:[],varg:!1},142:{mnem:"FnStrComp3",args:[],varg:!1},143:{mnem:"FnStringVar",args:[],varg:!1},144:{mnem:"FnStringStr",args:[],varg:!1},145:{mnem:"FnUBound",args:["0x"],varg:!1},146:{mnem:"For",args:[],varg:!1},147:{mnem:"ForEach",args:[],varg:!1},148:{mnem:"ForEachAs",args:["imp_"],varg:!1},149:{mnem:"ForStep",args:[],varg:!1},150:{mnem:"FuncDefn",args:["func_"],varg:!1},151:{mnem:"FuncDefnSave",args:["func_"],varg:!1},152:{mnem:"GetRec",args:[],varg:!1},153:{mnem:"GoSub",args:["name"],varg:!1},154:{mnem:"GoTo",args:["name"],varg:!1},155:{mnem:"If",args:[],varg:!1},156:{mnem:"IfBlock",args:[],varg:!1},157:{mnem:"TypeOf",args:["imp_"],varg:!1},158:{mnem:"IfTypeBlock",args:["imp_"],varg:!1},159:{mnem:"Implements",args:["0x","0x","0x","0x"],varg:!1},160:{mnem:"Input",args:[],varg:!1},161:{mnem:"InputDone",args:[],varg:!1},162:{mnem:"InputItem",args:[],varg:!1},163:{mnem:"Label",args:["name"],varg:!1},164:{mnem:"Let",args:[],varg:!1},165:{mnem:"Line",args:["0x"],varg:!1},166:{mnem:"LineCont",args:[],varg:!0},167:{mnem:"LineInput",args:[],varg:!1},168:{mnem:"LineNum",args:["name"],varg:!1},169:{mnem:"LitCy",args:["0x","0x","0x","0x"],varg:!1},170:{mnem:"LitDate",args:["0x","0x","0x","0x"],varg:!1},171:{mnem:"LitDefault",args:[],varg:!1},172:{mnem:"LitDI2",args:["0x"],varg:!1},173:{mnem:"LitDI4",args:["0x","0x"],varg:!1},174:{mnem:"LitDI8",args:["0x","0x","0x","0x"],varg:!1},175:{mnem:"LitHI2",args:["0x"],varg:!1},176:{mnem:"LitHI4",args:["0x","0x"],varg:!1},177:{mnem:"LitHI8",args:["0x","0x","0x","0x"],varg:!1},178:{mnem:"LitNothing",args:[],varg:!1},179:{mnem:"LitOI2",args:["0x"],varg:!1},180:{mnem:"LitOI4",args:["0x","0x"],varg:!1},181:{mnem:"LitOI8",args:["0x","0x","0x","0x"],varg:!1},182:{mnem:"LitR4",args:["0x","0x"],varg:!1},183:{mnem:"LitR8",args:["0x","0x","0x","0x"],varg:!1},184:{mnem:"LitSmallI2",args:[],varg:!1},185:{mnem:"LitStr",args:[],varg:!0},186:{mnem:"LitVarSpecial",args:[],varg:!1},187:{mnem:"Lock",args:[],varg:!1},188:{mnem:"Loop",args:[],varg:!1},189:{mnem:"LoopUntil",args:[],varg:!1},190:{mnem:"LoopWhile",args:[],varg:!1},191:{mnem:"LSet",args:[],varg:!1},192:{mnem:"Me",args:[],varg:!1},193:{mnem:"MeImplicit",args:[],varg:!1},194:{mnem:"MemRedim",args:["name","0x","type_"],varg:!1},195:{mnem:"MemRedimWith",args:["name","0x","type_"],varg:!1},196:{mnem:"MemRedimAs",args:["name","0x","type_"],varg:!1},197:{mnem:"MemRedimAsWith",args:["name","0x","type_"],varg:!1},198:{mnem:"Mid",args:[],varg:!1},199:{mnem:"MidB",args:[],varg:!1},200:{mnem:"Name",args:[],varg:!1},201:{mnem:"New",args:["imp_"],varg:!1},202:{mnem:"Next",args:[],varg:!1},203:{mnem:"NextVar",args:[],varg:!1},204:{mnem:"OnError",args:["name"],varg:!1},205:{mnem:"OnGosub",args:[],varg:!0},206:{mnem:"OnGoto",args:[],varg:!0},207:{mnem:"Open",args:["0x"],varg:!1},208:{mnem:"Option",args:[],varg:!1},209:{mnem:"OptionBase",args:[],varg:!1},210:{mnem:"ParamByVal",args:[],varg:!1},211:{mnem:"ParamOmitted",args:[],varg:!1},212:{mnem:"ParamNamed",args:["name"],varg:!1},213:{mnem:"PrintChan",args:[],varg:!1},214:{mnem:"PrintComma",args:[],varg:!1},215:{mnem:"PrintEoS",args:[],varg:!1},216:{mnem:"PrintItemComma",args:[],varg:!1},217:{mnem:"PrintItemNL",args:[],varg:!1},218:{mnem:"PrintItemSemi",args:[],varg:!1},219:{mnem:"PrintNL",args:[],varg:!1},220:{mnem:"PrintObj",args:[],varg:!1},221:{mnem:"PrintSemi",args:[],varg:!1},222:{mnem:"PrintSpc",args:[],varg:!1},223:{mnem:"PrintTab",args:[],varg:!1},224:{mnem:"PrintTabComma",args:[],varg:!1},225:{mnem:"PSet",args:["0x"],varg:!1},226:{mnem:"PutRec",args:[],varg:!1},227:{mnem:"QuoteRem",args:["0x"],varg:!0},228:{mnem:"Redim",args:["name","0x","type_"],varg:!1},229:{mnem:"RedimAs",args:["name","0x","type_"],varg:!1},230:{mnem:"Reparse",args:[],varg:!0},231:{mnem:"Rem",args:[],varg:!0},232:{mnem:"Resume",args:["name"],varg:!1},233:{mnem:"Return",args:[],varg:!1},234:{mnem:"RSet",args:[],varg:!1},235:{mnem:"Scale",args:["0x"],varg:!1},236:{mnem:"Seek",args:[],varg:!1},237:{mnem:"SelectCase",args:[],varg:!1},238:{mnem:"SelectIs",args:["imp_"],varg:!1},239:{mnem:"SelectType",args:[],varg:!1},240:{mnem:"SetStmt",args:[],varg:!1},241:{mnem:"Stack",args:["0x","0x"],varg:!1},242:{mnem:"Stop",args:[],varg:!1},243:{mnem:"Type",args:["rec_"],varg:!1},244:{mnem:"Unlock",args:[],varg:!1},245:{mnem:"VarDefn",args:["var_"],varg:!1},246:{mnem:"Wend",args:[],varg:!1},247:{mnem:"While",args:[],varg:!1},248:{mnem:"With",args:[],varg:!1},249:{mnem:"WriteChan",args:[],varg:!1},250:{mnem:"ConstFuncExpr",args:[],varg:!1},251:{mnem:"LbConst",args:["name"],varg:!1},252:{mnem:"LbIf",args:[],varg:!1},253:{mnem:"LbElse",args:[],varg:!1},254:{mnem:"LbElseIf",args:[],varg:!1},255:{mnem:"LbEndIf",args:[],varg:!1},256:{mnem:"LbMark",args:[],varg:!1},257:{mnem:"EndForVariable",args:[],varg:!1},258:{mnem:"StartForVariable",args:[],varg:!1},259:{mnem:"NewRedim",args:[],varg:!1},260:{mnem:"StartWithExpr",args:[],varg:!1},261:{mnem:"SetOrSt",args:["name"],varg:!1},262:{mnem:"EndEnum",args:[],varg:!1},263:{mnem:"Illegal",args:[],varg:!1}};function Cs(e,t,r){return 3===t?e<=67?e:e<=70?e+2:e<=111?e+4:e<=150?e+8:e<=164?e+9:e<=166?e+10:e<=169?e+11:e<=238?e+12:e+24:5===t?e<=68?e:e<=71?e+1:e<=112?e+3:e<=151?e+7:e<=165?e+8:e<=167?e+9:e<=170?e+10:e+11:r||e<=173?e:e<=175?e+1:e<=178?e+2:e+3}function As(e,t,r,n,i,a,s,o,l){let u=["Var","?","Int","Lng","Sng","Dbl","Cur","Date","Str","Obj","Err","Bool","Var"],h=["False","True","Null","Empty"],c=["Base 0","Base 1","Compare Text","Compare Binary","Explicit","Private Module"];if(r<=0)return"";let f={value:t},d=t+r,m="";for(;f.value<d;){let t=bs(e,f,2),r=(-1024&t)>>10;t&=1023;let d=Cs(t,n,l);if(!Es.hasOwnProperty(d))return`Unrecognized opcode ${Ns(t)} at offset ${Ns(f.value,8)}}`;let p=Es[d],g=p.mnem;if(m+=g+" ",["Coerce","CoerceVar","DefType"].includes(g))m+=r<u.length?`(${u[r]})`:17===r?"(Byte)":`(${r})`;else if(["Dim","DimImplicit","Type"].includes(g)){let e=[];4&r?e.push("Global"):8&r?e.push("Public"):16&r?e.push("Private"):32&r&&e.push("Static"),1&r&&"Type"!==g&&e.push("Const"),e.length&&(m+=`(${e.join(" ")})`)}else"LitVarSpecial"===g?m+=`(${h[r]})`:["ArgsCall","ArgsMemCall","ArgsMemCallWith"].includes(g)?r<16?m+="(Call) ":r-=16:"Option"===g?m+=`(${c[r]})`:["Redim","RedimAs"].includes(g)&&16&r&&(m+="(Preserve)");for(const t of p.args)if("name"===t){m+=Ls(bs(e,f,2),i,g,r,n,l)}else if(["0x","imp_"].includes(t)){m+=Is(a,i,t,bs(e,f,2),g,n,l)}else if(["func_","var_","rec_","type_","context_"].includes(t)){let u=bs(e,f,4);if("rec_"===t&&s.length>=u+20){m+=Ts(s,i,u,n,l)}else if("type_"===t&&s.length>=u+7){m+=Os(s,u)}else if("var_"===t&&s.length>=u+16){32&r&&(m+="(WithEvents)");if(m+=zs(s,a,i,u,n,l),16&r){m+=Ns(bs(e,f,2))}}else if("func_"===t&&s.length>=u+61){m+=Ms(s,o,i,u,r,n,l)}else m+=t+Ns(u,8)+" ";l&&"context_"===t&&(u=bs(e,f,4),m+=Ns(u,8)+" ")}if(p.varg){let t=bs(e,f,2);m+=Fs(e,i,f.value,t,g,n,l),f.value+=t,1&t&&(f.value+=1)}m+="\n"}return m}function Ls(e,t,r,n,i,a){const s=["","?","%","&","!","#","@","?","$","?","?","?","?","?"];let o,l=Bs(e,t,i,a);return n<s.length?o=s[n]:(o="",32===n&&(l="["+l+"]")),"OnError"===r?(o="",1===n?l="(Resume Next)":2===n&&(l="(GoTo 0)")):"Resume"===r&&(o="",1===n?l="(Next)":0!==n&&(l="")),l+o+" "}function Bs(e,t,r,n){const i=["<crash>","0","Abs","Access","AddressOf","Alias","And","Any","Append","Array","As","Assert","B","Base","BF","Binary","Boolean","ByRef","Byte","ByVal","Call","Case","CBool","CByte","CCur","CDate","CDec","CDbl","CDecl","ChDir","CInt","Circle","CLng","Close","Compare","Const","CSng","CStr","CurDir","CurDir$","CVar","CVDate","CVErr","Currency","Database","Date","Date$","Debug","Decimal","Declare","DefBool","DefByte","DefCur","DefDate","DefDec","DefDbl","DefInt","DefLng","DefObj","DefSng","DefStr","DefVar","Dim","Dir","Dir$","Do","DoEvents","Double","Each","Else","ElseIf","Empty","End","EndIf","Enum","Eqv","Erase","Error","Error$","Event","WithEvents","Explicit","F","False","Fix","For","Format","Format$","FreeFile","Friend","Function","Get","Global","Go","GoSub","Goto","If","Imp","Implements","In","Input","Input$","InputB","InputB","InStr","InputB$","Int","InStrB","Is","Integer","Left","LBound","LenB","Len","Lib","Let","Line","Like","Load","Local","Lock","Long","Loop","LSet","Me","Mid","Mid$","MidB","MidB$","Mod","Module","Name","New","Next","Not","Nothing","Null","Object","On","Open","Option","Optional","Or","Output","ParamArray","Preserve","Print","Private","Property","PSet","Public","Put","RaiseEvent","Random","Randomize","Read","ReDim","Rem","Resume","Return","RGB","RSet","Scale","Seek","Select","Set","Sgn","Shared","Single","Spc","Static","Step","Stop","StrComp","String","String$","Sub","Tab","Text","Then","To","True","Type","TypeOf","UBound","Unload","Unlock","Unknown","Until","Variant","WEnd","While","Width","With","Write","Xor","#Const","#Else","#ElseIf","#End","#If","Attribute","VB_Base","VB_Control","VB_Creatable","VB_Customizable","VB_Description","VB_Exposed","VB_Ext_Key","VB_HelpID","VB_Invoke_Func","VB_Invoke_Property","VB_Invoke_PropertyPut","VB_Invoke_PropertyPutRef","VB_MemberFlags","VB_Name","VB_PredecraredID","VB_ProcData","VB_TemplateDerived","VB_VarDescription","VB_VarHelpID","VB_VarMemberFlags","VB_VarProcData","VB_UserMemID","VB_VarUserMemID","VB_GlobalNameSpace",",",".",'"',"_","!","#","&","'","(",")","*","+","-"," /",":",";","<","<=","<>","=","=<","=>",">","><",">=","?","\\","^",":="];let a=e;e>>=1;try{return e>=256?(e-=256,r>=7&&(e-=4,n&&(e-=3),e>190&&(e-=1)),t[e]):(r>=7&&e>=195&&(e-=1),i[e])}catch(e){return"id_"+Ns(a)}}function Is(e,t,r,n,i,a,s){let o="";if("Open"!==i)o="imp_"===r&&e.length>=n+8?Rs(e,t,n+6,a,s):r+n+" ";else{const e=["Read","Write","Read Write"],t=["Read Write","Write","Read"],r=255&n,i=(3840&n)>>8,a=(61440&n)>>12;o="(For ",1&r?o+="Input":2&r?o+="Output":4&r?o+="Random":8&r?o+="Append":32===r&&(o+="Binary"),i&&i<=e.length&&(o+=" Access "+e[i-1]),a&&(4&a?o+=" Shared":a<=e.length&&(o+=" Lock "+t[a-1]),o+=")")}return o}function Rs(e,t,r,n,i){return Bs(bs(e,{value:r},2),t,n,i)}function Ts(e,t,r,n,i){let a=Rs(e,t,r+2,n,i);return 0==(1&bs(e,{value:r+18},2))&&(a="(Private) "+a),a}function Os(e,t){const r=["","Null","Integer","Long","Single","Double","Currency","Date","String","Object","Error","Boolean","Variant","","Decimal","","","Byte"],n=e[t+6];let i;return i=n<r.length?r[n]:"type_"+Ns(t,8),i}function zs(e,t,r,n,i,a){const s=0!=(32&e[n]),o=0!=(32&e[n+1]);let l=Rs(e,r,n+2,i,a);if(o||s){let u="";if(o&&(u+="New",s&&(u+=" ")),s){let s,o;if(s=a?16:12,65535===bs(e,{value:n+s+2},2)){o=Ds(e[n+s])}else o=function(e,t,r,n,i,a){if(a)return"";const s=bs(e,{value:n},4);let o;if(2&bs(e,{value:s},2))o=Os(e,s);else{let n=bs(e,{value:s+2},2);if(0===n)o="";else{let e=10*(n>>2);if(e+4>t.length)return"";o=Bs(bs(t,{value:e+6},2),r,i,a)}}return o}(e,t,r,n+s,i,a);o.length>0&&(u+="As "+o)}u.length>0&&(l+=" ("+u+")")}return l}function Ds(e){const t=["","Null","Integer","Long","Single","Double","Currency","Date","String","Object","Error","Boolean","Variant","","Decimal","","","Byte"],r=224&e;let n;return n=(e&=-225)<t.length?t[e]:"",128&r&&(n+="Ptr"),n}function Ms(e,t,r,n,i,a,s){let o,l="(",u=bs(e,{value:n},2),h=Rs(e,r,n+2,a,s);o=a>5?4:0,s&&(o+=16);let c=bs(e,{value:n+o+36},4),f=bs(e,{value:n+o+40},4),d=bs(e,{value:n+o+44},2),m=e[n+o+54],p=e[n+o+57],g=!1;a>5?(0!=(2&p)||s||(l+="Private "),4&p&&(l+="Friend ")):0==(8&u)&&(l+="Private "),4&i&&(l+="Public "),128&u&&(l+="Static "),0!=(144&m)||65535===d||s||(g=!0,l+="Declare "),a>5&&32&p&&(l+="PtrSafe ");let v=0!=(32&u);if(4096&u?[2,6].includes(i)?l+="Function ":l+="Sub ":8192&u?l+="Property Get ":16384&u?l+="Property Let ":32768&u&&(l+="Property Set "),l+=h,g){l+=' Lib "'+Rs(t,r,d+2,a,s)+'" '}let y=[];for(;4294967295!==c&&0!==c&&c+26<e.length;){let t=Ps(e,r,c,a,s);y.push(t),c=bs(e,{value:c+20},4)}if(l+="("+y.join(", ")+")",v){l+=" As ";let t="";if(4294901760==(4294901760&f)){t=Ds(255&f)}else t=Rs(e,r,f+6,a,s);l+=t}return l+=")",l}function Ps(e,t,r,n,i){let a,s=bs(e,{value:r},2);a=i?4:0;let o=Rs(e,t,r+2,n,i),l=bs(e,{value:r+a+12},4),u=bs(e,{value:r+a+24},2);if(4&u&&(o="ByVal "+o),2&u&&(o="ByRef "+o),512&u&&(o="Optional "+o),32&s){o+=" As ";let e="";if(4294901760&l){e=Ds(255&l)}o+=e}return o}function Fs(e,t,r,n,i,a,s){let o=e.slice(r,r+n),l=Ns(n)+" ";if(["LitStr","QuoteRem","Rem","Reparse"].includes(i))l+='"'+ks(o)+'"';else if(["OnGosub","OnGoto"].includes(i)){let i={value:r},o=[];for(let r=0;r<Math.floor(n/2);r++){let r=bs(e,i,2);o.push(Bs(r,t,a,s))}l+=o.join(", ")+" "}else{l+=o.join(" ")}return l}function Ns(e,t=4){const r=Number(e).toString(16).toUpperCase();let n="0x";for(let e=0;e<t-r.length;e++)n+="0";return n+=r,n}const Us=Object.freeze({UNKNOWN:0,STORAGE:1,STREAM:2,ROOT:5});let Ws=0;class js{constructor(e){this.id=Ws++,this.sectorSize=512,this.miniSectorSize=64,this.miniStreamCutoff=4096,this.DIFAT=new Uint8Array(0),this.FAT=new Uint8Array(0),this.miniFAT=new Uint8Array(0),this.miniStream=new Uint8Array(0),this.macroModules=[],this.fileTree={},this.binContent=e,this.readError=!1;try{this.readFile(this.binContent)}catch(e){console.log("ERROR READING OLEFILE "+this.id),this.readError=!0}this.isMalicious=!1,this.analysisResult="",this.VBAFunctions=function(e){const t=[];let r=0;for(const n of e.macroModules){const e=gs(n.sourceCode);let i=null;for(const n of e.split("\n"))if(null!==i)Ka.test(n)?i=null:i.body.push(n);else{let e=n.match(Ga);if(e&&e.groups){i={id:r++,name:e.groups.functionName,dependencies:[],body:[],type:ws.Normal},t.push(i);continue}e=n.match(es),e&&e.groups&&t.push({id:r++,name:e.groups.functionName,dependencies:[],body:[],type:ws.DLL})}}for(const e of t){const r=e.body.join("\n");for(const n of t)e!==n&&Xa(n.name).test(r)&&e.dependencies.push(n.id)}return t}(this)}readFile(e){const t={value:0},r=(bs(e,t,8),_s(e,t,16),bs(e,t,2),bs(e,t,2),bs(e,t,2),bs(e,t,2));this.sectorSize=2**r;const n=bs(e,t,2);this.miniSectorSize=2**n;_s(e,t,6),bs(e,t,4);const i=bs(e,t,4),a=bs(e,t,4);bs(e,t,4);this.miniStreamCutoff=bs(e,t,4);const s=bs(e,t,4),o=(bs(e,t,4),bs(e,t,4)),l=bs(e,t,4);this.DIFAT=this.readDIFAT(l,o),this.FAT=this.readFAT(i),this.miniFAT=this.readSectorChainFAT(s),this.fileTree=this.readFileTree(a),this.miniStream=this.readSectorChainFAT(this.fileTree.startingSector);const u=this.findByPath(this.fileTree,"MACROS/VBA")||this.findByPath(this.fileTree,"VBA")||this.findByPath(this.fileTree,"_VBA_PROJECT_CUR/VBA");if(u){const e=[];let t=null,r=null;for(const n of u.children)["_VBA_PROJECT","DIR"].includes(n.name.toUpperCase())||n.name.toUpperCase().startsWith("__SRP_")||e.push(n),"DIR"===n.name.toUpperCase()&&(t=this.readStream(n.startingSector,n.streamSize)),"_VBA_PROJECT"===n.name.toUpperCase()&&(r=this.readStream(n.startingSector,n.streamSize));t=this.decompressVBASourceCode(t);const n={value:0};n.value+=38,n.value+=2;const i=bs(t,n,4);n.value+=i,n.value+=2;const a=bs(t,n,4);n.value+=a,n.value+=2;const s=bs(t,n,4);n.value+=s,n.value+=2;const o=bs(t,n,4);n.value+=o,n.value+=2;const l=bs(t,n,4);n.value+=l,n.value+=32;if(12===bs(t,n,2)){const e=bs(t,n,4);n.value+=e,n.value+=2;const r=bs(t,n,4);n.value+=r}else n.value-=2;let h=0;for(;h++<999999;){if(!1===this.readNameReference(n,t))break;const e=bs(t,n,2);47===e?this.readControlReference(n,t):51===e?this.readOriginalReference(n,t):13===e?this.readRegisteredReference(n,t):14===e&&this.readProjectReference(n,t)}const c=bs(t,n,4),f=bs(t,n,c);n.value+=8;const d=[];for(let e=0;e<f;e++){bs(t,n,2);const e=bs(t,n,4);n.value+=e;if(71===bs(t,n,2)){const e=bs(t,n,4);n.value+=e}else n.value-=2;n.value+=2;const r=_s(t,n,bs(t,n,4));n.value+=2;const i=_s(t,n,bs(t,n,4));n.value+=2;const a=bs(t,n,4);n.value+=a,n.value+=2;const s=bs(t,n,4);n.value+=s;bs(t,n,2);4!==bs(t,n,4)&&console.log("SOURCE OFFSET SIZE != 4");const o=bs(t,n,4);n.value+=10,n.value+=8,n.value+=6;37===bs(t,n,2)?n.value+=4:n.value-=2;40===bs(t,n,2)?n.value+=4:n.value-=2,n.value+=2,n.value+=4,d.push({name:ks(r),sourceOffset:o,nameUnicode:ks(i)})}this.macroModules=[];for(const n of e){const e={},i=this.readStream(n.startingSector,n.streamSize),a=d.find((e=>e.name.toUpperCase()===n.name.toUpperCase()));if(a){e.name=a.name,e.sourceCode=ks(this.decompressVBASourceCode(i.slice(a.sourceOffset)));try{e.pcode=xs(i,r,t)}catch(t){console.log("PCODE DISASSEMBLING ERROR"),e.pcode=[]}this.macroModules.push(e)}}}}findByPath(e,t){const r=t.split("/");let n=e;for(const e of r)if(n=n.children.find((t=>t.name.toUpperCase()===e.toUpperCase())),!n)break;return n}readNameReference(e,t){if(15===bs(t,e,2))return!1;const r=bs(t,e,4);e.value+=r,e.value+=2;const n=bs(t,e,4);return e.value+=n,!0}readControlReference(e,t){bs(t,e,4);const r=bs(t,e,4);e.value+=r,e.value+=6;22===bs(t,e,2)&&(e.value-=2,this.readNameReference(e,t),e.value+=2);bs(t,e,4);const n=bs(t,e,4);e.value+=n,e.value+=26}readOriginalReference(e,t){const r=bs(t,e,4);e.value+=r;47===bs(t,e,2)&&this.readControlReference(e,t)}readRegisteredReference(e,t){bs(t,e,4);const r=bs(t,e,4);e.value+=r,e.value+=6}readProjectReference(e,t){bs(t,e,4);const r=bs(t,e,4);e.value+=r;const n=bs(t,e,4);e.value+=n,e.value+=6}readStream(e,t){return t>=this.miniStreamCutoff?this.readSectorChainFAT(e,t):this.readMiniSectorChain(e,t)}readSectorFAT(e){const t=(e+1)*this.sectorSize;return this.binContent.slice(t,t+this.sectorSize)}readSectorChainFAT(e,t=-1){if(4294967294===e||4294967295===e)return new Uint8Array(0);const r=[e];let n=0;for(;n++<999999;){const e=bs(this.FAT,{value:4*r[r.length-1]},4);if(4294967294===e||4294967295===e)break;r.push(e)}let i=-1===t?r.length*this.sectorSize:t;i=Number(i);const a=new Uint8Array(i);let s=0;for(let e=0;e<r.length;e++){const t=(r[e]+1)*this.sectorSize;for(let r=0;r<this.sectorSize;r++)if(a[e*this.sectorSize+r]=this.binContent[t+r],s++,s>=i)return a}return a}readMiniSector(e){const t=e*this.miniSectorSize;return this.miniStream.slice(t,t+this.miniSectorSize)}readMiniSectorChain(e,t=-1){const r=[e];let n=0;for(;n++<9999999;){const e=bs(this.miniFAT,{value:4*r[r.length-1]},4);if(4294967294===e)break;r.push(e)}let i=-1===t?r.length*this.miniSectorSize:t;i=Number(i);const a=new Uint8Array(i);let s=0;for(let e=0;e<r.length;e++){const t=r[e]*this.miniSectorSize;for(let r=0;r<this.miniSectorSize;r++)if(a[e*this.miniSectorSize+r]=this.miniStream[t+r],s++,s>=i)return a}return a}readDIFAT(e,t){const r=new Uint8Array(436+e*(this.sectorSize-4)),n=_s(this.binContent,{value:76},436);for(let e=0;e<n.length;e++)r[e]=n[e];let i=t;for(let t=0;t<e;t++){const e=this.readSectorFAT(i);for(let n=0;n<e.length-4;n++)r[436+t*(this.sectorSize-4)+n]=e[n];i=bs(e,{value:this.sectorSize-4},4)}return r}readFAT(e){const t=new Uint8Array(e*this.sectorSize);let r={value:0};for(let n=0;n<e;n++){const e=bs(this.DIFAT,r,4),i=this.readSectorFAT(e);for(let e=0;e<i.length;e++)t[n*this.sectorSize+e]=i[e]}return t}readFileTree(e){const t=this.readSectorChainFAT(e),r=[];for(let e=0;e<t.length;e+=128){const n={id:e/128,name:"",type:Us.UNKNOWN,children:[],startingSector:null,streamSize:null,leftSiblingId:null,rightSiblingId:null,childId:null},i={value:e+64},a=bs(t,i,2),s=Math.max(a/2-1,0),o=new Uint8Array(s);for(let r=0;r<s;r++)o[r]=t[e+2*r];n.name=ks(o);const l=bs(t,i,1);0===l?n.type=Us.UNKNOWN:1===l?n.type=Us.STORAGE:2===l?n.type=Us.STREAM:5===l&&(n.type=Us.ROOT);bs(t,i,1);n.leftSiblingId=bs(t,i,4),n.rightSiblingId=bs(t,i,4),n.childId=bs(t,i,4);_s(t,i,16),_s(t,i,4),bs(t,i,8),bs(t,i,8);n.startingSector=bs(t,i,4),n.streamSize=bs(t,i,8),n.type!==Us.UNKNOWN&&r.push(n)}const n=(e,t)=>{if(void 0===e)return[];let r=[e];return null!==e.leftSiblingId&&4294967295!==e.leftSiblingId&&(r=r.concat(n(t.find((t=>t.id===e.leftSiblingId)),t))),null!==e.rightSiblingId&&4294967295!==e.rightSiblingId&&(r=r.concat(n(t.find((t=>t.id===e.rightSiblingId)),t))),r},i=(e,t)=>{null!==e.childId&&4294967295!==e.childId&&(e.children=n(t.find((t=>t.id===e.childId)),t));for(const r of e.children)i(r,t)};return i(r[0],r),r[0]}byteArrayToArrayBuffer(e){let t=e.length;t%2==1&&t++;const r=new ArrayBuffer(t),n=new Uint8Array(r);for(let t=0;t<e.length;t++)n[t]=e[t];return r}decompressVBASourceCode(e){const t=[];let r=0;if(1!==e[r])throw new Error("Invalid signature byte");for(r++;r<e.length;){let n=r,i=bs(e,{value:n},2),a=3+(4095&i);if(3!==(i>>12&7))return t;let s=i>>15&1;const o=Math.min(e.length,n+a);r=n+2;if(1===s){const n=t.length;for(;r<o;){const i=e[r];r++;for(let a=0;a<8&&!(r>=o);a++){if(0===(i>>a&1))t.push(e[r]),r++;else{const i=bs(e,{value:r},2),a=t.length-n,s=Math.max(Math.ceil(Math.log2(a)),4),o=65535>>s,l=3+(i&o),u=1+((i&~o)>>16-s),h=t.length-u;for(let e=h;e<h+l;e++)t.push(t[e]);r+=2}}}}else for(let n=0;n<4096;n++)t.push(e[r]),r++}return new Uint8Array(t)}}function Vs(e){let t="",r="",n=[];for(const i of e){for(let e of i.split("\n"))if(e=e.trim(),e=e.replace(/\s{2,}/g," "),e.startsWith("FuncDefn"))r=e.match(new RegExp("^FuncDefn \\((?<fun>.+)\\)$")).groups.fun;else if(e.startsWith("QuoteRem"))r="'"+e.match(new RegExp('^QuoteRem 0x.+ 0x.+ "(?<comment>.*)"$')).groups.comment;else if(e.startsWith("Dim")){const t=e.match(new RegExp("^Dim \\((?<mod>.+)\\)$"));r+=t?t.groups.mod:"Dim"}else if(e.startsWith("LitDI2"))n.push(parseInt(e.match(new RegExp("^LitDI2 (?<value>.+)$")).groups.value));else if(e.startsWith("LitStr"))n.push(e.match(new RegExp('^LitStr 0x.+ (?<value>".*")$')).groups.value);else if(e.startsWith("LitVarSpecial"))n.push(e.match(new RegExp("^LitVarSpecial \\((?<value>.+)\\)$")).groups.value);else if(e.startsWith("VarDefn"))r+=" "+e.match(new RegExp("^VarDefn (?<name>.+)$")).groups.name,n.length>0&&(r+=" = "+n.pop());else if(e.startsWith("EndSub"))r+="End Sub";else if(e.startsWith("ExitSub"))r+="Exit Sub";else if(e.startsWith("EndIfBlock"))r+="End If";else if(e.startsWith("ExitFunc"))r+="Exit Function";else if(e.startsWith("EndFunc"))r+="End Function";else if(e.startsWith("Next "))r+="Next";else if(e.startsWith("NextVar "))r+="Next "+n.pop();else if(e.startsWith("ArgsLd")){const t=e.match(new RegExp("^ArgsLd (?<fun>.+) 0x.+$")).groups.fun,r=parseInt(e.match(new RegExp("^ArgsLd .+ (?<value>0x.+)$")).groups.value),i=Zs(n,r);let a="";a+=t+"(";for(let e=0;e<r;e++)a+=i[e],e!==r-1&&(a+=", ");a+=")",n.push(a)}else if(e.startsWith("ArgsMemLd ")){const t=n.pop()+"."+e.match(new RegExp("^ArgsMemLd (?<fun>.+) 0x.+$")).groups.fun,r=parseInt(e.match(new RegExp("^ArgsMemLd .+ (?<value>0x.+)$")).groups.value),i=Zs(n,r);let a="";a+=t+"(";for(let e=0;e<r;e++)a+=i[e],e!==r-1&&(a+=", ");a+=")",n.push(a)}else if(e.startsWith("ArgsMemLdWith ")){const t="."+e.match(new RegExp("^ArgsMemLdWith (?<fun>.+) 0x.+$")).groups.fun,r=parseInt(e.match(new RegExp("^ArgsMemLdWith .+ (?<value>0x.+)$")).groups.value),i=Zs(n,r);let a="";a+=t+"(";for(let e=0;e<r;e++)a+=i[e],e!==r-1&&(a+=", ");a+=")",n.push(a)}else if(e.startsWith("SetStmt"));else if(e.startsWith("Set "))r+="Set "+e.match(new RegExp("^Set (?<name>.+)$")).groups.name,r+=" = "+n.pop();else if(e.startsWith("St "))r+=e.match(new RegExp("^St (?<name>.+)$")).groups.name,r+=" = "+n.pop();else if(e.startsWith("Ld"))n.push(e.match(new RegExp("^Ld (?<name>.+)$")).groups.name);else if(e.startsWith("ArgsMemCall")){r+=n.pop()+"."+e.match(new RegExp("^ArgsMemCall (?<fun>.+) 0x.+$")).groups.fun;const t=parseInt(e.match(new RegExp("^ArgsMemCall .+ (?<value>0x.+)$")).groups.value),i=Zs(n,t);for(let e=0;e<i.length;e++)r+=" "+i[e],e!==t-1&&(r+=",")}else if(e.startsWith("MemSt "))r+=n.pop()+"."+e.match(new RegExp("^MemSt (?<field>.+)$")).groups.field+" = "+n.pop();else if(e.startsWith("MemStWith "))r+="."+e.match(new RegExp("^MemStWith (?<field>.+)$")).groups.field+" = "+n.pop();else if(e.startsWith("Concat")){const e=n.pop();n.push(n.pop()+" & "+e)}else if(e.startsWith("ArgsCall")){r+=e.match(new RegExp("^ArgsCall (?<fun>.+) 0x.+$")).groups.fun+" ";const t=parseInt(e.match(new RegExp("^ArgsCall .+ (?<value>0x.+)$")).groups.value),i=Zs(n,t);for(let e=0;e<i.length;e++)r+=i[e],e!==t-1&&(r+=", ")}else if(e.startsWith("ArgsSt")){r+=e.match(new RegExp("^ArgsSt (?<fun>.+) 0x.+$")).groups.fun+" ";const t=parseInt(e.match(new RegExp("^ArgsSt .+ (?<value>0x.+)$")).groups.value),i=Zs(n,t);r+="(";for(let e=0;e<i.length;e++)r+=i[e],e!==t-1&&(r+=", ");r+=") = "+n.pop()}else if(e.startsWith("Paren"))n.push("("+n.pop()+")");else if(e.startsWith("MemLdWith "))n.push("."+e.match(new RegExp("^MemLdWith (?<var>.+)$")).groups.var);else if(e.startsWith("MemLd "))n.push(n.pop()+"."+e.match(new RegExp("^MemLd (?<var>.+)$")).groups.var);else if(e.startsWith("Eq")){const e=n.pop();n.push(n.pop()+" = "+e)}else if(e.startsWith("Add")){const e=n.pop();n.push(n.pop()+" + "+e)}else if(e.startsWith("IfBlock"))r+="If "+n.pop()+" Then";else if(e.startsWith("Debug"))r+="Debug";else if(e.startsWith("PrintObj"))r+=".Print ";else if(e.startsWith("PrintItemNL"))r+=n.pop();else if(e.startsWith("New"))r+="New ?";else if(e.startsWith("Not"))n.push("Not "+n.pop());else if(e.startsWith("And")){const e=n.pop();n.push(n.pop()+" And "+e)}else if(e.startsWith("Or")){const e=n.pop();n.push(n.pop()+" Or "+e)}else if(e.startsWith("Xor")){const e=n.pop();n.push(n.pop()+" Xor "+e)}else if(e.startsWith("Gt")){const e=n.pop();n.push(n.pop()+" > "+e)}else if(e.startsWith("Lt")){const e=n.pop();n.push(n.pop()+" < "+e)}else if(e.startsWith("OnError"))r+="On Error GoTo "+e.match(new RegExp("^OnError (?<handler>.+)$")).groups.handler;else if(e.startsWith("Label"))r+=e.match(new RegExp("^Label (?<label>.+)$")).groups.label+":";else if(e.startsWith("FnLen"))n.push("Len("+n.pop()+")");else if(e.startsWith("For")){const e=n.pop(),t=n.pop();r+="For "+n.pop()+" = "+t+" To "+e}else if(e.startsWith("ElseBlock"))r+="Else";else if(e.startsWith("Coerce ")){const t=e.match(new RegExp("^Coerce \\((?<type>.+)\\)$")).groups.type;n.push("C"+t+"("+n.pop()+")")}else e.startsWith("With")?r+="With "+n.pop():e.startsWith("EndWith")&&(r+="End With");t+=r+"\n",r="",n=[]}return t}function Zs(e,t){const r=[];for(let n=0;n<t;n++)r.push(e.pop());return r.reverse(),r}e=window,function(e=!1){if(!window.localStorage[Wa]||e){const e={};for(const t of Object.values(ja))e[t.key]=t.defaultValue;window.localStorage[Wa]=JSON.stringify(e)}else{const e=JSON.parse(window.localStorage[Wa]);for(const t of Object.values(ja))void 0===e[t.key]&&(e[t.key]=t.defaultValue);window.localStorage[Wa]=JSON.stringify(e)}}();let $s=0,Hs=[];const qs=document.getElementById("file-selector"),Ys=document.getElementById("fake-file-selector"),Gs=document.getElementById("upload-button"),Ks=document.getElementById("deobfuscation-menu"),Xs=document.getElementById("logo"),Js=document.getElementById("tab1"),Qs=document.getElementById("tab2"),eo=document.getElementById("tab3"),to=document.getElementById("filename-display"),ro=document.getElementsByClassName("main-table")[0],no=document.getElementById("file-scroller");function io(e){if(!Array.from(e).some((e=>void 0===e.oleFile))){no.classList.remove("hidden");for(let t of e){if(null===t)continue;const e=document.createElement("div");e.classList.add("file-scroller-entry"),e.classList.add("file-scroller-file-button"),e.classList.add("file-input-button");const r=document.createElement("div");r.innerText=t.name,r.classList.add("ellipsis-text");const n=document.createElement("i");n.classList.add("fas"),n.classList.add("fa-lg"),t.oleFile&&(t.oleFile.readError?n.classList.add("fa-times"):t.oleFile.isMalicious?n.classList.add("fa-skull"):n.classList.add("fa-check"),e.dataset.fileId=t.oleFile.id,e.addEventListener("click",(()=>{uo(t)}))),e.appendChild(r),e.appendChild(n),no.appendChild(e)}lo($s)}}function ao(e){const t=_s(e,{value:0},8);return 208===t[0]&&207===t[1]&&17===t[2]&&224===t[3]&&161===t[4]&&177===t[5]&&26===t[6]&&225===t[7]}function so(e){const t=_s(e,{value:0},4);return 80===t[0]&&75===t[1]&&3===t[2]&&4===t[3]}function oo(e){document.getElementById("file-preview").classList.remove("hidden"),document.getElementById("file-name").innerText=e.name,document.getElementById("file-size").innerText=function(e){const t=[" KB"," MB"," GB"," TB"];let r=-1;for(;e>1e3;)e/=1e3,r++;return Math.max(e,.1).toFixed(1)+" "+t[r]}(e.size),function(e){const t=document.getElementById("file-icon");"doc"===e?t.src="images/doc.png":"docm"===e?t.src="images/docm.png":"xls"===e?t.src="images/xls.png":"xlsm"===e&&(t.src="images/xlsm.png")}(e.name.split(".")[1])}function lo(e){const t=no.querySelector(`.file-scroller-file-button[data-file-id="${e}"]`);t&&t.classList.add("button-selected")}function uo(e){const t=e.oleFile;if(no.querySelectorAll(".file-scroller-file-button").forEach((e=>e.classList.remove("button-selected"))),lo(t.id),$s=t.id,oo(e),document.getElementsByClassName("tabs")[0].dataset.fileId=t.id,Qs.querySelectorAll(".tab-text .direct-child")[0].innerHTML="",Qs.querySelectorAll(".tab-text .direct-child")[1].innerHTML="",fo(Js).innerHTML="",fo(eo).innerHTML="",t.readError){let e=document.createElement("div");return e.innerHTML="Error reading file",e.classList.add("table-module"),fo(Js).appendChild(e),e=document.createElement("div"),e.innerHTML="Error reading file",e.classList.add("table-module"),Qs.querySelectorAll(".tab-text .direct-child")[0].appendChild(e),e=document.createElement("div"),e.innerHTML="Error reading file",e.classList.add("table-module"),fo(eo).appendChild(e),void mo(t)}if(0===t.macroModules.length){let e=document.createElement("div");return e.innerHTML="Module is safe!\n(No macro scripts detected)",e.classList.add("table-module"),fo(Js).appendChild(e),e=document.createElement("div"),e.innerHTML="<i>No macro scripts detected</i>",e.classList.add("table-module"),Qs.querySelectorAll(".tab-text .direct-child")[0].appendChild(e),e=document.createElement("div"),e.innerHTML="<i>No macro scripts detected</i>",e.classList.add("table-module"),fo(eo).appendChild(e),void mo(t)}for(let e=0;e<t.macroModules.length;e++){const r=t.macroModules[e];let n=r.sourceCode;const i=document.createElement("div");if(i.innerText=po(n),i.classList.add("table-module"),i.classList.add("code"),""!==r.name){const e=document.createElement("div");e.classList.add("module-header"),e.classList.add("table-module"),e.innerText=r.name,Qs.querySelectorAll(".tab-text .direct-child")[0].appendChild(e)}Qs.querySelectorAll(".tab-text .direct-child")[0].appendChild(i),e<t.macroModules.length-1&&i.classList.add("module-separator")}document.getElementById("show-pcode-checkbox").checked&&go(),document.getElementById("show-source-code-checkbox").checked||Qs.querySelectorAll(".tab-text .direct-child")[0].classList.add("hidden");const r=document.createElement("div");return r.innerHTML=t.analysisResult,r.classList.add("table-module"),fo(Js).appendChild(r),mo(t),ho(t.macroModules),t}function ho(e){fo(eo).innerHTML="";for(let t=0;t<e.length;t++){const r=e[t];let n=r.sourceCode;const i=document.createElement("div");if($a(ja.deobfuscateDecompiledPCode)?i.innerHTML=os(Vs(r.pcode)):i.innerHTML=os(po(n)),i.classList.add("table-module"),i.classList.add("code"),""!==r.name){const e=document.createElement("div");e.classList.add("module-header"),e.classList.add("table-module"),e.innerHTML=r.name,fo(eo).appendChild(e)}fo(eo).appendChild(i),t<e.length-1&&i.classList.add("module-separator")}}qs.addEventListener("input",(e=>{const t=e.target.files;if(0===t.length)return;for(const e of no.querySelectorAll(".file-scroller-file-button"))e.parentNode.removeChild(e);let r=!1;const n=(e,n)=>{e.oleFile=function(e){const t=new js(e);return Hs.push(t),t.analysisResult=ps(t),t}(n),r||(r=!0,uo(e)),io(t)};Hs=[];for(let e of t){if(null===e)continue;to.innerText=e.name,Ys.style.marginTop="-20px",Ys.style.boxShadow="none",Ys.style.opacity="0",Xs.style.marginTop="-70px",Xs.style.opacity="0",ro.classList.remove("hidden"),e.name.split(".")[1],co("tab2");const r=new FileReader;r.addEventListener("load",(r=>{const i=new Uint8Array(r.target.result);if(ao(i))n(e,i);else if(so(i)){(new Ua).loadAsync(e).then((e=>{for(const t in e.files)if(t.endsWith("vbaProject.bin")){return e.files[t].async("array")}}),(()=>{console.log("Not a valid zip file"),e.oleFile=null,io(t)})).then((r=>{io(t),n(e,new Uint8Array(r))}))}})),r.readAsArrayBuffer(e)}})),Ys.addEventListener("click",(()=>qs.click())),Gs.addEventListener("click",(()=>qs.click()));for(const e of document.getElementsByClassName("tab-selector"))e.addEventListener("click",(()=>co(e.dataset.tab)));for(const e of document.getElementsByClassName("tab-contents"));function co(e){!function(){for(const e of document.getElementsByClassName("tab-selector"))e.classList.add("inactive-tab")}(),document.querySelector(".tab-selector[data-tab='"+e+"']").classList.remove("inactive-tab"),function(){for(const e of document.getElementsByClassName("tab-contents"))e.classList.add("hidden")}(),document.getElementById(e).classList.remove("hidden")}function fo(e){return e.querySelector(".tab-text")}function mo(e){document.getElementById("file-result-safe").classList.add("hidden"),document.getElementById("file-result-malicious").classList.add("hidden"),document.getElementById("file-result-corrupted").classList.add("hidden"),e.readError?document.getElementById("file-result-corrupted").classList.remove("hidden"):e.isMalicious?document.getElementById("file-result-malicious").classList.remove("hidden"):document.getElementById("file-result-safe").classList.remove("hidden")}function po(e){const t=e.split("\n");for(let e=0;e<t.length;e++)t[e].startsWith("Attribute VB_")?t[e]="":t[e]+="\n";return t.join("")}for(const e of Va){const t=document.createElement("div"),r=document.createElement("input");r.setAttribute("type","checkbox"),r.checked=$a(e),r.id=e.key+"-checkbox",t.append(r);const n=document.createElement("label");n.setAttribute("for",r.id),t.append(n),n.innerText=e.name,Ks.append(t),r.addEventListener("change",(t=>{Za(e,t.target.checked),ho(Hs.find((e=>e.id===$s)).macroModules)}))}function go(){const e=Hs.find((e=>e.id===$s));if(e){Qs.querySelectorAll(".tab-text .direct-child")[1].innerHTML="",Qs.querySelectorAll(".tab-text .direct-child")[1].classList.remove("hidden");for(let t=0;t<e.macroModules.length;t++){const r=e.macroModules[t],n=document.createElement("div");if(document.getElementById("pcode-radio-1").checked?n.innerHTML=r.pcode.join("\n"):n.innerHTML=Vs(r.pcode),n.classList.add("table-module"),n.classList.add("code"),""!==r.name){const e=document.createElement("div");e.classList.add("module-header"),e.classList.add("table-module"),e.innerHTML=r.name,Qs.querySelectorAll(".tab-text .direct-child")[1].appendChild(e)}Qs.querySelectorAll(".tab-text .direct-child")[1].appendChild(n),t<e.macroModules.length-1&&n.classList.add("module-separator")}}}document.getElementById("show-pcode-checkbox").addEventListener("change",(e=>{Za(ja.showPCode,e.target.checked),document.getElementById("show-source-code-checkbox").checked||document.getElementById("show-pcode-checkbox").checked||document.getElementById("show-source-code-checkbox").click(),e.target.checked?(document.getElementById("pcode-radio-1").disabled=!1,document.getElementById("pcode-radio-2").disabled=!1,go()):(document.getElementById("pcode-radio-1").disabled=!0,document.getElementById("pcode-radio-2").disabled=!0,Qs.querySelectorAll(".tab-text .direct-child")[1].classList.add("hidden"))})),document.getElementById("show-source-code-checkbox").addEventListener("change",(e=>{if(Za(ja.showSourceCode,e.target.checked),document.getElementById("show-source-code-checkbox").checked||document.getElementById("show-pcode-checkbox").checked||document.getElementById("show-pcode-checkbox").click(),e.target.checked){if(!Hs.find((e=>e.id===$s)))return;Qs.querySelectorAll(".tab-text .direct-child")[0].classList.remove("hidden")}else Qs.querySelectorAll(".tab-text .direct-child")[0].classList.add("hidden")})),document.getElementById("pcode-radio-1").addEventListener("change",(e=>{e.target.checked&&(Za(ja.useDecompiledPCode,!1),document.getElementById("show-pcode-checkbox").checked&&go())})),document.getElementById("pcode-radio-2").addEventListener("change",(e=>{e.target.checked&&(Za(ja.useDecompiledPCode,!0),document.getElementById("show-pcode-checkbox").checked&&go())})),$a(ja.showSourceCode)&&document.getElementById("show-source-code-checkbox").click(),$a(ja.showPCode)&&document.getElementById("show-pcode-checkbox").click(),$a(ja.useDecompiledPCode)&&(document.getElementById("pcode-radio-2").checked=!0)}();