pptxtojson 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function r(t){return function(){var r=this,n=arguments;return new Promise((function(i,a){var o=t.apply(r,n);function s(t){e(o,i,a,s,u,"next",t)}function u(t){e(o,i,a,s,u,"throw",t)}s(void 0)}))}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){var e=t.default;if("function"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var a={exports:{}},o={exports:{}};!function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(o),function(t){var e=o.exports.default;function r(){t.exports=r=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},i=Object.prototype,a=i.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new R(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=c;var p={};function g(){}function b(){}function m(){}var v={};h(v,u,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(O([])));w&&w!==i&&a.call(w,u)&&(v=w);var _=m.prototype=g.prototype=Object.create(v);function k(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,r){function n(i,o,s,u){var l=d(t[i],t,o);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==e(h)&&a.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):r.resolve(h).then((function(t){f.value=t,s(f)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,i){n(t,e,r,i)}))}return i=i?i.then(a,a):a()}})}function S(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return T()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function C(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(a.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:T}}function T(){return{value:void 0,done:!0}}return b.prototype=m,o(_,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:b,configurable:!0}),b.displayName=h(m,f,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,h(t,f,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},k(x.prototype),h(x.prototype,l,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,i,a){void 0===a&&(a=Promise);var o=new x(c(t,e,r,i),a);return n.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(_),h(_,f,"Generator"),h(_,u,(function(){return this})),h(_,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},n}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}(a);var s=a.exports(),u=s;try{regeneratorRuntime=s}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}var l={},f={},h="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,g=!1;function b(){g=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)c[e]=t[e],d[t.charCodeAt(e)]=e;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63}function m(t,e,r){for(var n,i,a=[],o=e;o<r;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],a.push(c[(i=n)>>18&63]+c[i>>12&63]+c[i>>6&63]+c[63&i]);return a.join("")}function v(t){var e;g||b();for(var r=t.length,n=r%3,i="",a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(m(t,s,s+o>u?u:s+o));return 1===n?(e=t[r-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),a.push(i),a.join("")}function y(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,l=u>>1,f=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=256*a+t[e+h],h+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+h],h+=c,f-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=l}return(d?-1:1)*o*Math.pow(2,a-n)}function w(t,e,r,n,i,a){var o,s,u,l=8*a-i-1,f=(1<<l)-1,h=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+h>=1?c/u:c*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=f?(s=0,o=f):o+h>=1?(s=(e*u-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;t[r+d]=255&o,d+=p,o/=256,l-=8);t[r+d-p]|=128*g}var _={}.toString,k=Array.isArray||function(t){return"[object Array]"==_.call(t)};A.TYPED_ARRAY_SUPPORT=void 0===h.TYPED_ARRAY_SUPPORT||h.TYPED_ARRAY_SUPPORT;var x=S();function S(){return A.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function C(t,e){if(S()<e)throw new RangeError("Invalid typed array length");return A.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=A.prototype:(null===t&&(t=new A(e)),t.length=e),t}function A(t,e,r){if(!(A.TYPED_ARRAY_SUPPORT||this instanceof A))return new A(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return O(this,t)}return E(this,t,e,r)}function E(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);A.TYPED_ARRAY_SUPPORT?(t=e).__proto__=A.prototype:t=T(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!A.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|I(e,r),i=(t=C(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(L(e)){var r=0|M(e.length);return 0===(t=C(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?C(t,0):T(t,e);if("Buffer"===e.type&&k(e.data))return T(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function R(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function O(t,e){if(R(e),t=C(t,e<0?0:0|M(e)),!A.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function T(t,e){var r=e.length<0?0:0|M(e.length);t=C(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function M(t){if(t>=S())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S().toString(16)+" bytes");return 0|t}function L(t){return!(null==t||!t._isBuffer)}function I(t,e){if(L(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return at(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ot(t).length;default:if(n)return at(t).length;e=(""+e).toLowerCase(),n=!0}}function P(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return V(this,e,r);case"utf8":case"utf-8":return q(this,e,r);case"ascii":return Y(this,e,r);case"latin1":case"binary":return G(this,e,r);case"base64":return Z(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function B(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function D(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=A.from(e,n)),L(e))return 0===e.length?-1:z(t,e,r,n,i);if("number"==typeof e)return e&=255,A.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):z(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function z(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;a<s;a++)if(l(t,a)===l(e,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===u)return f*o}else-1!==f&&(a-=a-f),f=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var h=!0,c=0;c<u;c++)if(l(t,a+c)!==l(e,c)){h=!1;break}if(h)return a}return-1}function j(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[r+o]=s}return o}function N(t,e,r,n){return st(at(e,t.length-r),t,r,n)}function F(t,e,r,n){return st(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function U(t,e,r,n){return F(t,e,r,n)}function H(t,e,r,n){return st(ot(e),t,r,n)}function W(t,e,r,n){return st(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function Z(t,e,r){return 0===e&&r===t.length?v(t):v(t.slice(e,r))}function q(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,u,l=t[i],f=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(f=l);break;case 2:128==(192&(a=t[i+1]))&&(u=(31&l)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}A.poolSize=8192,A._augment=function(t){return t.__proto__=A.prototype,t},A.from=function(t,e,r){return E(null,t,e,r)},A.TYPED_ARRAY_SUPPORT&&(A.prototype.__proto__=Uint8Array.prototype,A.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&A[Symbol.species]),A.alloc=function(t,e,r){return function(t,e,r,n){return R(e),e<=0?C(t,e):void 0!==r?"string"==typeof n?C(t,e).fill(r,n):C(t,e).fill(r):C(t,e)}(null,t,e,r)},A.allocUnsafe=function(t){return O(null,t)},A.allocUnsafeSlow=function(t){return O(null,t)},A.isBuffer=ut,A.compare=function(t,e){if(!L(t)||!L(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},A.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},A.concat=function(t,e){if(!k(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return A.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=A.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!L(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},A.byteLength=I,A.prototype._isBuffer=!0,A.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)B(this,e,e+1);return this},A.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)B(this,e,e+3),B(this,e+1,e+2);return this},A.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)B(this,e,e+7),B(this,e+1,e+6),B(this,e+2,e+5),B(this,e+3,e+4);return this},A.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?q(this,0,t):P.apply(this,arguments)},A.prototype.equals=function(t){if(!L(t))throw new TypeError("Argument must be a Buffer");return this===t||0===A.compare(this,t)},A.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},A.prototype.compare=function(t,e,r,n,i){if(!L(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),u=this.slice(n,i),l=t.slice(e,r),f=0;f<s;++f)if(u[f]!==l[f]){a=u[f],o=l[f];break}return a<o?-1:o<a?1:0},A.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},A.prototype.indexOf=function(t,e,r){return D(this,t,e,r,!0)},A.prototype.lastIndexOf=function(t,e,r){return D(this,t,e,r,!1)},A.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return j(this,t,e,r);case"utf8":case"utf-8":return N(this,t,e,r);case"ascii":return F(this,t,e,r);case"latin1":case"binary":return U(this,t,e,r);case"base64":return H(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function G(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function V(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=it(t[a]);return i}function K(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function X(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function $(t,e,r,n,i,a){if(!L(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function J(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-r,2);i<a;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Q(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-r,4);i<a;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function tt(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function et(t,e,r,n,i){return i||tt(t,0,r,4),w(t,e,r,n,23,4),r+4}function rt(t,e,r,n,i){return i||tt(t,0,r,8),w(t,e,r,n,52,8),r+8}A.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),A.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=A.prototype;else{var i=e-t;r=new A(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},A.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},A.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},A.prototype.readUInt8=function(t,e){return e||X(t,1,this.length),this[t]},A.prototype.readUInt16LE=function(t,e){return e||X(t,2,this.length),this[t]|this[t+1]<<8},A.prototype.readUInt16BE=function(t,e){return e||X(t,2,this.length),this[t]<<8|this[t+1]},A.prototype.readUInt32LE=function(t,e){return e||X(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},A.prototype.readUInt32BE=function(t,e){return e||X(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},A.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},A.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},A.prototype.readInt8=function(t,e){return e||X(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},A.prototype.readInt16LE=function(t,e){e||X(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},A.prototype.readInt16BE=function(t,e){e||X(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},A.prototype.readInt32LE=function(t,e){return e||X(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},A.prototype.readInt32BE=function(t,e){return e||X(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},A.prototype.readFloatLE=function(t,e){return e||X(t,4,this.length),y(this,t,!0,23,4)},A.prototype.readFloatBE=function(t,e){return e||X(t,4,this.length),y(this,t,!1,23,4)},A.prototype.readDoubleLE=function(t,e){return e||X(t,8,this.length),y(this,t,!0,52,8)},A.prototype.readDoubleBE=function(t,e){return e||X(t,8,this.length),y(this,t,!1,52,8)},A.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||$(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},A.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||$(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},A.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,1,255,0),A.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},A.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},A.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},A.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Q(this,t,e,!0),e+4},A.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},A.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);$(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},A.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);$(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},A.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,1,127,-128),A.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},A.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},A.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},A.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,2147483647,-2147483648),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Q(this,t,e,!0),e+4},A.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},A.prototype.writeFloatLE=function(t,e,r){return et(this,t,e,!0,r)},A.prototype.writeFloatBE=function(t,e,r){return et(this,t,e,!1,r)},A.prototype.writeDoubleLE=function(t,e,r){return rt(this,t,e,!0,r)},A.prototype.writeDoubleBE=function(t,e,r){return rt(this,t,e,!1,r)},A.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!A.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},A.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!A.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=L(t)?t:at(new A(t,n).toString()),s=o.length;for(a=0;a<r-e;++a)this[a+e]=o[a%s]}return this};var nt=/[^+\/0-9A-Za-z-_]/g;function it(t){return t<16?"0"+t.toString(16):t.toString(16)}function at(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function ot(t){return function(t){var e,r,n,i,a,o;g||b();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===t[s-2]?2:"="===t[s-1]?1:0,o=new p(3*s/4-a),n=a>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=d[t.charCodeAt(e)]<<18|d[t.charCodeAt(e+1)]<<12|d[t.charCodeAt(e+2)]<<6|d[t.charCodeAt(e+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=255&i;return 2===a?(i=d[t.charCodeAt(e)]<<2|d[t.charCodeAt(e+1)]>>4,o[u++]=255&i):1===a&&(i=d[t.charCodeAt(e)]<<10|d[t.charCodeAt(e+1)]<<4|d[t.charCodeAt(e+2)]>>2,o[u++]=i>>8&255,o[u++]=255&i),o}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(nt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function st(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function ut(t){return null!=t&&(!!t._isBuffer||lt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&lt(t.slice(0,0))}(t))}function lt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var ft=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:x,Buffer:A,SlowBuffer:function(t){return+t!=t&&(t=0),A.alloc(+t)},isBuffer:ut}),ht={};function ct(){throw new Error("setTimeout has not been defined")}function dt(){throw new Error("clearTimeout has not been defined")}var pt=ct,gt=dt;function bt(t){if(pt===setTimeout)return setTimeout(t,0);if((pt===ct||!pt)&&setTimeout)return pt=setTimeout,setTimeout(t,0);try{return pt(t,0)}catch(e){try{return pt.call(null,t,0)}catch(e){return pt.call(this,t,0)}}}"function"==typeof h.setTimeout&&(pt=setTimeout),"function"==typeof h.clearTimeout&&(gt=clearTimeout);var mt,vt=[],yt=!1,wt=-1;function _t(){yt&&mt&&(yt=!1,mt.length?vt=mt.concat(vt):wt=-1,vt.length&&kt())}function kt(){if(!yt){var t=bt(_t);yt=!0;for(var e=vt.length;e;){for(mt=vt,vt=[];++wt<e;)mt&&mt[wt].run();wt=-1,e=vt.length}mt=null,yt=!1,function(t){if(gt===clearTimeout)return clearTimeout(t);if((gt===dt||!gt)&&clearTimeout)return gt=clearTimeout,clearTimeout(t);try{gt(t)}catch(e){try{return gt.call(null,t)}catch(e){return gt.call(this,t)}}}(t)}}function xt(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];vt.push(new St(t,e)),1!==vt.length||yt||bt(kt)}function St(t,e){this.fun=t,this.array=e}St.prototype.run=function(){this.fun.apply(null,this.array)};function Ct(){}var At=Ct,Et=Ct,Rt=Ct,Ot=Ct,Tt=Ct,Mt=Ct,Lt=Ct;var It=h.performance||{},Pt=It.now||It.mozNow||It.msNow||It.oNow||It.webkitNow||function(){return(new Date).getTime()};var Bt=new Date;var Dt={nextTick:xt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:At,addListener:Et,once:Rt,off:Ot,removeListener:Tt,removeAllListeners:Mt,emit:Lt,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Pt.call(It),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Bt)/1e3}},zt={exports:{}};function jt(){}function Nt(){Nt.init.call(this)}function Ft(t){return void 0===t._maxListeners?Nt.defaultMaxListeners:t._maxListeners}function Ut(t,e,r){if(e)t.call(r);else for(var n=t.length,i=Kt(t,n),a=0;a<n;++a)i[a].call(r)}function Ht(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=Kt(t,i),o=0;o<i;++o)a[o].call(r,n)}function Wt(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=Kt(t,a),s=0;s<a;++s)o[s].call(r,n,i)}function Zt(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=Kt(t,o),u=0;u<o;++u)s[u].call(r,n,i,a)}function qt(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=Kt(t,i),o=0;o<i;++o)a[o].apply(r,n)}function Yt(t,e,r,n){var i,a,o,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]):(a=t._events=new jt,t._eventsCount=0),o){if("function"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(i=Ft(t))&&i>0&&o.length>i){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else o=a[e]=r,++t._eventsCount;return t}function Gt(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function Vt(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function Kt(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}jt.prototype=Object.create(null),Nt.EventEmitter=Nt,Nt.usingDomains=!1,Nt.prototype.domain=void 0,Nt.prototype._events=void 0,Nt.prototype._maxListeners=void 0,Nt.defaultMaxListeners=10,Nt.init=function(){this.domain=null,Nt.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new jt,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Nt.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},Nt.prototype.getMaxListeners=function(){return Ft(this)},Nt.prototype.emit=function(t){var e,r,n,i,a,o,s,u="error"===t;if(o=this._events)u=u&&null==o.error;else if(!u)return!1;if(s=this.domain,u){if(e=arguments[1],!s){if(e instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(r=o[t]))return!1;var f="function"==typeof r;switch(n=arguments.length){case 1:Ut(r,f,this);break;case 2:Ht(r,f,this,arguments[1]);break;case 3:Wt(r,f,this,arguments[1],arguments[2]);break;case 4:Zt(r,f,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];qt(r,f,this,i)}return!0},Nt.prototype.addListener=function(t,e){return Yt(this,t,e,!1)},Nt.prototype.on=Nt.prototype.addListener,Nt.prototype.prependListener=function(t,e){return Yt(this,t,e,!0)},Nt.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,Gt(this,t,e)),this},Nt.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,Gt(this,t,e)),this},Nt.prototype.removeListener=function(t,e){var r,n,i,a,o;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new jt:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,a=r.length;a-- >0;)if(r[a]===e||r[a].listener&&r[a].listener===e){o=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 jt,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,i);n.removeListener&&this.emit("removeListener",t,o||e)}return this},Nt.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new jt,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new jt:delete r[t]),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 jt,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},Nt.prototype.listeners=function(t){var e,r,n=this._events;return r=n&&(e=n[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[],r},Nt.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):Vt.call(t,e)},Nt.prototype.listenerCount=Vt,Nt.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Xt=Object.freeze({__proto__:null,default:Nt,EventEmitter:Nt}),$t="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},Jt=/%[sdj%]/g;function Qt(t){if(!ge(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ie(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(t).replace(Jt,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),o=n[r];r<i;o=n[++r])ce(o)||!ye(o)?a+=" "+o:a+=" "+ie(o);return a}function te(t,e){if(me(h.process))return function(){return te(t,e).apply(this,arguments)};if(!0===Dt.noDeprecation)return t;var r=!1;return function(){if(!r){if(Dt.throwDeprecation)throw new Error(e);Dt.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var ee,re={};function ne(t){if(me(ee)&&(ee=Dt.env.NODE_DEBUG||""),t=t.toUpperCase(),!re[t])if(new RegExp("\\b"+t+"\\b","i").test(ee)){re[t]=function(){var e=Qt.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else re[t]=function(){};return re[t]}function ie(t,e){var r={seen:[],stylize:oe};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),he(e)?r.showHidden=e:e&&Te(r,e),me(r.showHidden)&&(r.showHidden=!1),me(r.depth)&&(r.depth=2),me(r.colors)&&(r.colors=!1),me(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ae),se(r,t,r.depth)}function ae(t,e){var r=ie.styles[e];return r?"["+ie.colors[r][0]+"m"+t+"["+ie.colors[r][1]+"m":t}function oe(t,e){return t}function se(t,e,r){if(t.customInspect&&e&&ke(e.inspect)&&e.inspect!==ie&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return ge(n)||(n=se(t,n,r)),n}var i=function(t,e){if(me(e))return t.stylize("undefined","undefined");if(ge(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(pe(e))return t.stylize(""+e,"number");if(he(e))return t.stylize(""+e,"boolean");if(ce(e))return t.stylize("null","null")}(t,e);if(i)return i;var a=Object.keys(e),o=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),_e(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return ue(e);if(0===a.length){if(ke(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(ve(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(we(e))return t.stylize(Date.prototype.toString.call(e),"date");if(_e(e))return ue(e)}var u,l="",f=!1,h=["{","}"];(fe(e)&&(f=!0,h=["[","]"]),ke(e))&&(l=" [Function"+(e.name?": "+e.name:"")+"]");return ve(e)&&(l=" "+RegExp.prototype.toString.call(e)),we(e)&&(l=" "+Date.prototype.toUTCString.call(e)),_e(e)&&(l=" "+ue(e)),0!==a.length||f&&0!=e.length?r<0?ve(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=f?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)Me(e,String(o))?a.push(le(t,e,r,n,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(le(t,e,r,n,i,!0))})),a}(t,e,r,o,a):a.map((function(n){return le(t,e,r,o,n,f)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(u,l,h)):h[0]+l+h[1]}function ue(t){return"["+Error.prototype.toString.call(t)+"]"}function le(t,e,r,n,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),Me(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=ce(r)?se(t,u.value,null):se(t,u.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),me(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function fe(t){return Array.isArray(t)}function he(t){return"boolean"==typeof t}function ce(t){return null===t}function de(t){return null==t}function pe(t){return"number"==typeof t}function ge(t){return"string"==typeof t}function be(t){return"symbol"==typeof t}function me(t){return void 0===t}function ve(t){return ye(t)&&"[object RegExp]"===Ce(t)}function ye(t){return"object"==typeof t&&null!==t}function we(t){return ye(t)&&"[object Date]"===Ce(t)}function _e(t){return ye(t)&&("[object Error]"===Ce(t)||t instanceof Error)}function ke(t){return"function"==typeof t}function xe(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function Se(t){return ut(t)}function Ce(t){return Object.prototype.toString.call(t)}function Ae(t){return t<10?"0"+t.toString(10):t.toString(10)}ie.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]},ie.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Re(){var t=new Date,e=[Ae(t.getHours()),Ae(t.getMinutes()),Ae(t.getSeconds())].join(":");return[t.getDate(),Ee[t.getMonth()],e].join(" ")}function Oe(){console.log("%s - %s",Re(),Qt.apply(null,arguments))}function Te(t,e){if(!e||!ye(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Me(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Le={inherits:$t,_extend:Te,log:Oe,isBuffer:Se,isPrimitive:xe,isFunction:ke,isError:_e,isDate:we,isObject:ye,isRegExp:ve,isUndefined:me,isSymbol:be,isString:ge,isNumber:pe,isNullOrUndefined:de,isNull:ce,isBoolean:he,isArray:fe,inspect:ie,deprecate:te,format:Qt,debuglog:ne},Ie=Object.freeze({__proto__:null,format:Qt,deprecate:te,debuglog:ne,inspect:ie,isArray:fe,isBoolean:he,isNull:ce,isNullOrUndefined:de,isNumber:pe,isString:ge,isSymbol:be,isUndefined:me,isRegExp:ve,isObject:ye,isDate:we,isError:_e,isFunction:ke,isPrimitive:xe,isBuffer:Se,log:Oe,inherits:$t,_extend:Te,default:Le});function Pe(){this.head=null,this.tail=null,this.length=0}Pe.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Pe.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},Pe.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},Pe.prototype.clear=function(){this.head=this.tail=null,this.length=0},Pe.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},Pe.prototype.concat=function(t){if(0===this.length)return A.alloc(0);if(1===this.length)return this.head.data;for(var e=A.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var Be=A.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function De(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!Be(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=je;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ne;break;default:return void(this.write=ze)}this.charBuffer=new A(6),this.charReceived=0,this.charLength=0}function ze(t){return t.toString(this.encoding)}function je(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Ne(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}De.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(t=t.slice(r,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,n),n-=this.charReceived);var i;n=(e+=t.toString(this.encoding,0,n)).length-1;if((i=e.charCodeAt(n))>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),t.copy(this.charBuffer,0,0,a),e.substring(0,n)}return e},De.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},De.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e},He.ReadableState=Ue;var Fe=ne("stream");function Ue(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof gr&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Pe,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=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new De(t.encoding),this.encoding=t.encoding)}function He(t){if(!(this instanceof He))return new He(t);this._readableState=new Ue(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),Nt.call(this)}function We(t,e,r,n,i){var a=function(t,e){var r=null;ut(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(a)t.emit("error",a);else if(null===r)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,qe(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var o=new Error("stream.push() after EOF");t.emit("error",o)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&qe(t))),function(t,e){e.readingMore||(e.readingMore=!0,xt(Ge,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}$t(He,Nt),He.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=A.from(t,e),e=""),We(this,r,t,e,!1)},He.prototype.unshift=function(t){return We(this,this._readableState,t,"",!0)},He.prototype.isPaused=function(){return!1===this._readableState.flowing},He.prototype.setEncoding=function(t){return this._readableState.decoder=new De(t),this._readableState.encoding=t,this};function Ze(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function qe(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Fe("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?xt(Ye,t):Ye(t))}function Ye(t){Fe("emit readable"),t.emit("readable"),Xe(t)}function Ge(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Fe("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function Ve(t){Fe("readable nexttick read 0"),t.read(0)}function Ke(t,e){e.reading||(Fe("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Xe(t),e.flowing&&!e.reading&&t.read(0)}function Xe(t){var e=t._readableState;for(Fe("flow",e.flowing);e.flowing&&null!==t.read(););}function $e(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=A.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,o),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function Je(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,xt(Qe,e,t))}function Qe(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function tr(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function er(){}function rr(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function nr(t,e){Object.defineProperty(this,"buffer",{get:te((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof gr&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.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===t.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?xt(i,n):i(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,i);else{var a=ur(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||sr(t,r),n?xt(or,t,r,a,i):or(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new hr(this)}function ir(t){if(!(this instanceof ir||this instanceof gr))return new ir(t);this._writableState=new nr(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),Nt.call(this)}function ar(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function or(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),fr(t,e)}function sr(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0;r;)i[o]=r,r=r.next,o+=1;ar(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new hr(e)}else{for(;r;){var s=r.chunk,u=r.encoding,l=r.callback;if(ar(t,e,!1,e.objectMode?1:s.length,s,u,l),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function ur(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function lr(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function fr(t,e){var r=ur(e);return r&&(0===e.pendingcb?(lr(t,e),e.finished=!0,t.emit("finish")):lr(t,e)),r}function hr(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}He.prototype.read=function(t){Fe("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Fe("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Je(this):qe(this),null;if(0===(t=Ze(t,e))&&e.ended)return 0===e.length&&Je(this),null;var n,i=e.needReadable;return Fe("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&Fe("length less than watermark",i=!0),e.ended||e.reading?Fe("reading or ended",i=!1):i&&(Fe("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ze(r,e))),null===(n=t>0?$e(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Je(this)),null!==n&&this.emit("data",n),n},He.prototype._read=function(t){this.emit("error",new Error("not implemented"))},He.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,Fe("pipe count=%d opts=%j",n.pipesCount,e);var i=!e||!1!==e.end?o:l;function a(t){Fe("onunpipe"),t===r&&l()}function o(){Fe("onend"),t.end()}n.endEmitted?xt(i):r.once("end",i),t.on("unpipe",a);var s=function(t){return function(){var e=t._readableState;Fe("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Xe(t))}}(r);t.on("drain",s);var u=!1;function l(){Fe("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",c),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",l),r.removeListener("data",h),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var f=!1;function h(e){Fe("ondata"),f=!1,!1!==t.write(e)||f||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==tr(n.pipes,t))&&!u&&(Fe("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function c(e){var r;Fe("onerror",e),g(),t.removeListener("error",c),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function d(){t.removeListener("finish",p),g()}function p(){Fe("onfinish"),t.removeListener("close",d),g()}function g(){Fe("unpipe"),r.unpipe(t)}return r.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",c),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(Fe("pipe resume"),r.resume()),t},He.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var a=tr(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},He.prototype.on=function(t,e){var r=Nt.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&qe(this):xt(Ve,this))}return r},He.prototype.addListener=He.prototype.on,He.prototype.resume=function(){var t=this._readableState;return t.flowing||(Fe("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,xt(Ke,t,e))}(this,t)),this},He.prototype.pause=function(){return Fe("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Fe("pause"),this._readableState.flowing=!1,this.emit("pause")),this},He.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var i in t.on("end",(function(){if(Fe("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(i){(Fe("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,n.emit.bind(n,e))})),n._read=function(e){Fe("wrapped _read",e),r&&(r=!1,t.resume())},n},He._fromList=$e,ir.WritableState=nr,$t(ir,Nt),nr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},ir.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ir.prototype.write=function(t,e,r){var n=this._writableState,i=!1;return"function"==typeof e&&(r=e,e=null),A.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=er),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),xt(e,r)}(this,r):function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):A.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),xt(n,a),i=!1),i}(this,n,t,r)&&(n.pendingcb++,i=function(t,e,r,n,i){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=A.from(e,r));return e}(e,r,n),A.isBuffer(r)&&(n="buffer");var a=e.objectMode?1:r.length;e.length+=a;var o=e.length<e.highWaterMark;o||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new rr(r,n,i),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ar(t,e,!1,a,r,n,i);return o}(this,n,t,e,r)),i},ir.prototype.cork=function(){this._writableState.corked++},ir.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||sr(this,t))},ir.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},ir.prototype._write=function(t,e,r){r(new Error("not implemented"))},ir.prototype._writev=null,ir.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,fr(t,e),r&&(e.finished?xt(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},$t(gr,He);for(var cr=Object.keys(ir.prototype),dr=0;dr<cr.length;dr++){var pr=cr[dr];gr.prototype[pr]||(gr.prototype[pr]=ir.prototype[pr])}function gr(t){if(!(this instanceof gr))return new gr(t);He.call(this,t),ir.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",br)}function br(){this.allowHalfOpen||this._writableState.ended||xt(mr,this)}function mr(t){t.end()}function vr(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);i(e);var a=t._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&t._read(a.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function yr(t){if(!(this instanceof yr))return new yr(t);gr.call(this,t),this._transformState=new vr(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){wr(e,t)})):wr(e)}))}function wr(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=t._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 t.push(null)}function _r(t){if(!(this instanceof _r))return new _r(t);yr.call(this,t)}function kr(){Nt.call(this)}$t(yr,gr),yr.prototype.push=function(t,e){return this._transformState.needTransform=!1,gr.prototype.push.call(this,t,e)},yr.prototype._transform=function(t,e,r){throw new Error("Not implemented")},yr.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},yr.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},$t(_r,yr),_r.prototype._transform=function(t,e,r){r(null,t)},$t(kr,Nt),kr.Readable=He,kr.Writable=ir,kr.Duplex=gr,kr.Transform=yr,kr.PassThrough=_r,kr.Stream=kr,kr.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===Nt.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",u),t.on("error",u),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t};var xr,Sr,Cr,Ar=i(Object.freeze({__proto__:null,default:kr,Readable:He,Writable:ir,Duplex:gr,Transform:yr,PassThrough:_r,Stream:kr})),Er={exports:{}};function Rr(){if(xr)return Er.exports;return xr=1,void 0===Dt||!Dt.version||0===Dt.version.indexOf("v0.")||0===Dt.version.indexOf("v1.")&&0!==Dt.version.indexOf("v1.8.")?Er.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return xt(t);case 2:return xt((function(){t.call(null,e)}));case 3:return xt((function(){t.call(null,e,r)}));case 4:return xt((function(){t.call(null,e,r,n)}));default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return xt((function(){t.apply(null,i)}))}}}:Er.exports=Dt,Er.exports}var Or,Tr=i(Xt),Mr={exports:{}};function Lr(){return Or?Mr.exports:(Or=1,Mr.exports=Ar)}var Ir,Pr={exports:{}},Br=i(ft);function Dr(){return Ir||(Ir=1,function(t,e){var r=Br,n=r.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a),i(n,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}}(Pr,Pr.exports)),Pr.exports}var zr,jr={};function Nr(){if(zr)return jr;function t(t){return Object.prototype.toString.call(t)}return zr=1,jr.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},jr.isBoolean=function(t){return"boolean"==typeof t},jr.isNull=function(t){return null===t},jr.isNullOrUndefined=function(t){return null==t},jr.isNumber=function(t){return"number"==typeof t},jr.isString=function(t){return"string"==typeof t},jr.isSymbol=function(t){return"symbol"==typeof t},jr.isUndefined=function(t){return void 0===t},jr.isRegExp=function(e){return"[object RegExp]"===t(e)},jr.isObject=function(t){return"object"==typeof t&&null!==t},jr.isDate=function(e){return"[object Date]"===t(e)},jr.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},jr.isFunction=function(t){return"function"==typeof t},jr.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},jr.isBuffer=Br.Buffer.isBuffer,jr}var Fr,Ur,Hr={exports:{}},Wr=i(Ie),Zr={exports:{}};function qr(){return Ur||(Ur=1,function(t){try{var e=Wr;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=(Fr||(Fr=1,"function"==typeof Object.create?Zr.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Zr.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),Zr.exports)}}(Hr)),Hr.exports}var Yr,Gr,Vr,Kr,Xr,$r,Jr,Qr,tn,en={exports:{}};function rn(){return Yr||(Yr=1,function(t){var e=Dr().Buffer,r=Wr;t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return e.alloc(0);if(1===this.length)return this.head.data;for(var r,n,i,a=e.allocUnsafe(t>>>0),o=this.head,s=0;o;)r=o.data,n=a,i=s,r.copy(n,i),s+=o.data.length,o=o.next;return a},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})}(en)),en.exports}function nn(){if(Vr)return Gr;Vr=1;var t=Rr();function e(t,e){t.emit("error",e)}return Gr={destroy:function(r,n){var i=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(n?n(r):!r||this._writableState&&this._writableState.errorEmitted||t.nextTick(e,this,r),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,(function(r){!n&&r?(t.nextTick(e,i,r),i._writableState&&(i._writableState.errorEmitted=!0)):n&&n(r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},Gr}function an(){if(Jr)return $r;Jr=1;var t=Rr();function e(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}$r=p;var r,i=t.nextTick;p.WritableState=d;var a=Object.create(Nr());a.inherits=qr();var o={deprecate:Xr?Kr:(Xr=1,Kr=Wr.deprecate)},s=Lr(),u=Dr().Buffer,l=n.Uint8Array||function(){};var f,h=nn();function c(){}function d(n,a){r=r||on(),n=n||{};var o=a instanceof r;this.objectMode=!!n.objectMode,o&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var s=n.highWaterMark,u=n.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:o&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===n.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,r){var n=e._writableState,a=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),r)!function(e,r,n,i,a){--r.pendingcb,n?(t.nextTick(a,i),t.nextTick(w,e,r),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),w(e,r))}(e,n,a,r,o);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||m(e,n),a?i(b,e,n,s,o):b(e,n,s,o)}}(a,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 e(this)}function p(t){if(r=r||on(),!(f.call(p,this)||this instanceof r))return new p(t);this._writableState=new d(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function g(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function b(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),w(t,e)}function m(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var i=r.bufferedRequestCount,a=new Array(i),o=r.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)a[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;a.allBuffers=u,g(t,r,!0,r.length,a,"",o.finish),r.pendingcb++,r.lastBufferedRequest=null,o.next?(r.corkedRequestsFree=o.next,o.next=null):r.corkedRequestsFree=new e(r),r.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,f=n.encoding,h=n.callback;if(g(t,r,!1,r.objectMode?1:l.length,l,f,h),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function y(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),w(t,e)}))}function w(e,r){var n=v(r);return n&&(!function(e,r){r.prefinished||r.finalCalled||("function"==typeof e._final?(r.pendingcb++,r.finalCalled=!0,t.nextTick(y,e,r)):(r.prefinished=!0,e.emit("prefinish")))}(e,r),0===r.pendingcb&&(r.finished=!0,e.emit("finish"))),n}return a.inherits(p,s),d.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(d.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===p&&(t&&t._writableState instanceof d)}})):f=function(t){return t instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(e,r,n){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,u.isBuffer(i)||i instanceof l);return s&&!u.isBuffer(e)&&(e=function(t){return u.from(t)}(e)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=a.defaultEncoding),"function"!=typeof n&&(n=c),a.ended?function(e,r){var n=new Error("write after end");e.emit("error",n),t.nextTick(r,n)}(this,n):(s||function(e,r,n,i){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||r.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),t.nextTick(i,o),a=!1),a}(this,a,e,n))&&(a.pendingcb++,o=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,s,n,i,a);return l}(this,a,s,e,r,n)),o},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||m(this,t))},p.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(e,r,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,r,n){r.ending=!0,w(e,r),n&&(r.finished?t.nextTick(n):e.once("finish",n));r.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),p.prototype.destroy=h.destroy,p.prototype._undestroy=h.undestroy,p.prototype._destroy=function(t,e){this.end(),e(t)},$r}function on(){if(tn)return Qr;tn=1;var t=Rr(),e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Qr=u;var r=Object.create(Nr());r.inherits=qr();var n=mn(),i=an();r.inherits(u,n);for(var a=e(i.prototype),o=0;o<a.length;o++){var s=a[o];u.prototype[s]||(u.prototype[s]=i.prototype[s])}function u(t){if(!(this instanceof u))return new u(t);n.call(this,t),i.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||t.nextTick(f,this)}function f(t){t.end()}return Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),u.prototype._destroy=function(e,r){this.push(null),this.end(),t.nextTick(r,e)},Qr}var sn,un,ln,fn,hn,cn,dn,pn,gn={};function bn(){if(sn)return gn;sn=1;var t=Dr().Buffer,e=t.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(r){var n;switch(this.encoding=function(r){var n=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(r);if("string"!=typeof n&&(t.isEncoding===e||!e(r)))throw new Error("Unknown encoding: "+r);return n||r}(r),this.encoding){case"utf16le":this.text=a,this.end=o,n=4;break;case"utf8":this.fillLast=i,n=4;break;case"base64":this.text=s,this.end=u,n=3;break;default:return this.write=l,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}function n(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function i(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function a(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function o(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function s(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}return gn.StringDecoder=r,r.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},r.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},r.prototype.text=function(t,e){var r=function(t,e,r){var i=e.length-1;if(i<r)return 0;var a=n(e[i]);if(a>=0)return a>0&&(t.lastNeed=a-1),a;if(--i<r||-2===a)return 0;if((a=n(e[i]))>=0)return a>0&&(t.lastNeed=a-2),a;if(--i<r||-2===a)return 0;if((a=n(e[i]))>=0)return a>0&&(2===a?a=0:t.lastNeed=a-3),a;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},r.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length},gn}function mn(){if(ln)return un;ln=1;var t=Rr();un=b;var e,r=function(){if(Cr)return Sr;Cr=1;var t={}.toString;return Sr=Array.isArray||function(e){return"[object Array]"==t.call(e)}}();b.ReadableState=g,Tr.EventEmitter;var i=function(t,e){return t.listeners(e).length},a=Lr(),o=Dr().Buffer,s=n.Uint8Array||function(){};var u=Object.create(Nr());u.inherits=qr();var l=Wr,f=void 0;f=l&&l.debuglog?l.debuglog("stream"):function(){};var h,c=rn(),d=nn();u.inherits(b,a);var p=["error","close","destroy","pause","resume"];function g(t,r){t=t||{};var n=r instanceof(e=e||on());this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=bn().StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(e=e||on(),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function m(t,e,r,n,i){var a,u=t._readableState;null===e?(u.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,_(t)}(t,u)):(i||(a=function(t,e){var r;n=e,o.isBuffer(n)||n instanceof s||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(u,e)),a?t.emit("error",a):u.objectMode||e&&e.length>0?("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===o.prototype||(e=function(t){return o.from(t)}(e)),n?u.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,u,e,!0):u.ended?t.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!r?(e=u.decoder.write(e),u.objectMode||0!==e.length?v(t,u,e,!1):x(t,u)):v(t,u,e,!1))):n||(u.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(u)}function v(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&_(t)),x(t,e)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=d.destroy,b.prototype._undestroy=d.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=o.from(t,e),e=""),r=!0),m(this,t,e,!1,r)},b.prototype.unshift=function(t){return m(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return h||(h=bn().StringDecoder),this._readableState.decoder=new h(t),this._readableState.encoding=t,this};var y=8388608;function w(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=y?t=y:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function _(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(f("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?t.nextTick(k,e):k(e))}function k(t){f("emit readable"),t.emit("readable"),E(t)}function x(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(S,e,r))}function S(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function C(t){f("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),E(t),e.flowing&&!e.reading&&t.read(0)}function E(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function R(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=o.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,s=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,s),0===(t-=s)){s===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(s));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function O(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,t.nextTick(T,r,e))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function M(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}return b.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?O(this):_(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",i=!0),e.ended||e.reading?f("reading or ended",i=!1):i&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=w(r,e))),null===(n=t>0?R(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&O(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,n){var a=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,n);var s=(!n||!1!==n.end)&&e!==Dt.stdout&&e!==Dt.stderr?l:v;function u(t,r){f("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",u),a.removeListener("end",l),a.removeListener("end",v),a.removeListener("data",p),c=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function l(){f("onend"),e.end()}o.endEmitted?t.nextTick(s):a.once("end",s),e.on("unpipe",u);var h=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,E(t))}}(a);e.on("drain",h);var c=!1;var d=!1;function p(t){f("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==M(o.pipes,e))&&!c&&(f("false write response, pause",a._readableState.awaitDrain),a._readableState.awaitDrain++,d=!0),a.pause())}function g(t){f("onerror",t),v(),e.removeListener("error",g),0===i(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",m),v()}function m(){f("onfinish"),e.removeListener("close",b),v()}function v(){f("unpipe"),a.unpipe(e)}return a.on("data",p),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?r(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(e,"error",g),e.once("close",b),e.once("finish",m),e.emit("pipe",a),o.flowing||(f("pipe resume"),a.resume()),e},b.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=M(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},b.prototype.on=function(e,r){var n=a.prototype.on.call(this,e,r);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&_(this):t.nextTick(C,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,r){r.resumeScheduled||(r.resumeScheduled=!0,t.nextTick(A,e,r))}(this,e)),this},b.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<p.length;a++)t.on(p[a],this.emit.bind(this,p[a]));return this._read=function(e){f("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=R,un}function vn(){if(hn)return fn;hn=1,fn=n;var t=on(),e=Object.create(Nr());function r(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function n(e){if(!(this instanceof n))return new n(e);t.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},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.on("prefinish",i)}function i(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){a(t,e,r)})):a(this,null,null)}function a(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}return e.inherits=qr(),e.inherits(n,t),n.prototype.push=function(e,r){return this._transformState.needTransform=!1,t.prototype.push.call(this,e,r)},n.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},n.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},n.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},n.prototype._destroy=function(e,r){var n=this;t.prototype._destroy.call(this,e,(function(t){r(t),n.emit("close")}))},fn}function yn(){return pn||(pn=1,function(t,e){var r=Ar;"disable"===Dt.env.READABLE_STREAM&&r?(t.exports=r,(e=t.exports=r.Readable).Readable=r.Readable,e.Writable=r.Writable,e.Duplex=r.Duplex,e.Transform=r.Transform,e.PassThrough=r.PassThrough,e.Stream=r):((e=t.exports=mn()).Stream=r||e,e.Readable=e,e.Writable=an(),e.Duplex=on(),e.Transform=vn(),e.PassThrough=function(){if(dn)return cn;dn=1,cn=r;var t=vn(),e=Object.create(Nr());function r(e){if(!(this instanceof r))return new r(e);t.call(this,e)}return e.inherits=qr(),e.inherits(r,t),r.prototype._transform=function(t,e,r){r(null,t)},cn}())}(zt,zt.exports)),zt.exports}if(ht.base64=!0,ht.array=!0,ht.string=!0,ht.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,ht.nodebuffer=!0,ht.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)ht.blob=!1;else{var wn=new ArrayBuffer(0);try{ht.blob=0===new Blob([wn],{type:"application/zip"}).size}catch(t){try{var _n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);_n.append(wn),ht.blob=0===_n.getBlob("application/zip").size}catch(t){ht.blob=!1}}}try{ht.nodestream=!!yn().Readable}catch(t){ht.nodestream=!1}var kn,xn={};function Sn(){if(kn)return xn;kn=1;var t=In(),e=ht,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return xn.encode=function(e){for(var n,i,a,o,s,u,l,f=[],h=0,c=e.length,d=c,p="string"!==t.getTypeOf(e);h<e.length;)d=c-h,p?(n=e[h++],i=h<c?e[h++]:0,a=h<c?e[h++]:0):(n=e.charCodeAt(h++),i=h<c?e.charCodeAt(h++):0,a=h<c?e.charCodeAt(h++):0),o=n>>2,s=(3&n)<<4|i>>4,u=d>1?(15&i)<<2|a>>6:64,l=d>2?63&a:64,f.push(r.charAt(o)+r.charAt(s)+r.charAt(u)+r.charAt(l));return f.join("")},xn.decode=function(t){var n,i,a,o,s,u,l=0,f=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var c,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===r.charAt(64)&&d--,t.charAt(t.length-2)===r.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=e.uint8array?new Uint8Array(0|d):new Array(0|d);l<t.length;)n=r.indexOf(t.charAt(l++))<<2|(o=r.indexOf(t.charAt(l++)))>>4,i=(15&o)<<4|(s=r.indexOf(t.charAt(l++)))>>2,a=(3&s)<<6|(u=r.indexOf(t.charAt(l++))),c[f++]=n,64!==s&&(c[f++]=i),64!==u&&(c[f++]=a);return c},xn}var Cn,An,En,Rn,On={isNode:!0,newBufferFrom:function(t,e){if(A.from&&A.from!==Uint8Array.from)return A.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new A(t,e)},allocBuffer:function(t){if(A.alloc)return A.alloc(t);var e=new A(t);return e.fill(0),e},isBuffer:function(t){return ut(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}};var Tn=null;Tn="undefined"!=typeof Promise?Promise:function(){if(Rn)return En;Rn=1;var t=function(){if(An)return Cn;An=1;var t,e,r=n.MutationObserver||n.WebKitMutationObserver;if(r){var i=0,a=new r(l),o=n.document.createTextNode("");a.observe(o,{characterData:!0}),t=function(){o.data=i=++i%2}}else if(n.setImmediate||void 0===n.MessageChannel)t="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var t=n.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},n.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var s=new n.MessageChannel;s.port1.onmessage=l,t=function(){s.port2.postMessage(0)}}var u=[];function l(){var t,r;e=!0;for(var n=u.length;n;){for(r=u,u=[],t=-1;++t<n;)r[t]();n=u.length}e=!1}return Cn=function(r){1!==u.push(r)||e||t()}}();function e(){}var r={},i=["REJECTED"],a=["FULFILLED"],o=["PENDING"];function s(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=o,this.queue=[],this.outcome=void 0,t!==e&&h(this,t)}function u(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function l(e,n,i){t((function(){var t;try{t=n(i)}catch(t){return r.reject(e,t)}t===e?r.reject(e,new TypeError("Cannot resolve promise with itself")):r.resolve(e,t)}))}function f(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function h(t,e){var n=!1;function i(e){n||(n=!0,r.reject(t,e))}function a(e){n||(n=!0,r.resolve(t,e))}var o=c((function(){e(a,i)}));"error"===o.status&&i(o.value)}function c(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}return En=s,s.prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))},s.prototype.catch=function(t){return this.then(null,t)},s.prototype.then=function(t,r){if("function"!=typeof t&&this.state===a||"function"!=typeof r&&this.state===i)return this;var n=new this.constructor(e);return this.state!==o?l(n,this.state===a?t:r,this.outcome):this.queue.push(new u(n,t,r)),n},u.prototype.callFulfilled=function(t){r.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){l(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){r.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){l(this.promise,this.onRejected,t)},r.resolve=function(t,e){var n=c(f,e);if("error"===n.status)return r.reject(t,n.value);var i=n.value;if(i)h(t,i);else{t.state=a,t.outcome=e;for(var o=-1,s=t.queue.length;++o<s;)t.queue[o].callFulfilled(e)}return t},r.reject=function(t,e){t.state=i,t.outcome=e;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(e);return t},s.resolve=function(t){return t instanceof this?t:r.resolve(new this(e),t)},s.reject=function(t){var n=new this(e);return r.reject(n,t)},s.all=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,a=!1;if(!i)return this.resolve([]);for(var o=new Array(i),s=0,u=-1,l=new this(e);++u<i;)f(t[u],u);return l;function f(t,e){n.resolve(t).then((function(t){o[e]=t,++s!==i||a||(a=!0,r.resolve(l,o))}),(function(t){a||(a=!0,r.reject(l,t))}))}},s.race=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,a=!1;if(!i)return this.resolve([]);for(var o,s=-1,u=new this(e);++s<i;)o=t[s],n.resolve(o).then((function(t){a||(a=!0,r.resolve(u,t))}),(function(t){a||(a=!0,r.reject(u,t))}));return u},En}();var Mn,Ln={Promise:Tn};function In(){return Mn||(Mn=1,function(t){var e=ht,r=Sn(),n=On,i=Ln;function a(t){return t}function o(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}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(t){throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(t,e,r){var n=[],i=0,a=t.length;if(a<=r)return String.fromCharCode.apply(null,t);for(;i<a;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},applyCanBeUsed:{uint8array:function(){try{return e.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return e.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(t){return!1}}()}};function u(e){var r=65536,n=t.getTypeOf(e),i=!0;if("uint8array"===n?i=s.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=s.applyCanBeUsed.nodebuffer),i)for(;r>1;)try{return s.stringifyByChunk(e,n,r)}catch(t){r=Math.floor(r/2)}return s.stringifyByChar(e)}function l(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}t.applyFromCharCode=u;var f={};f.string={string:a,array:function(t){return o(t,new Array(t.length))},arraybuffer:function(t){return f.string.uint8array(t).buffer},uint8array:function(t){return o(t,new Uint8Array(t.length))},nodebuffer:function(t){return o(t,n.allocBuffer(t.length))}},f.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(t)}},f.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return l(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(new Uint8Array(t))}},f.uint8array={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return n.newBufferFrom(t)}},f.nodebuffer={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return f.nodebuffer.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:a},t.transformTo=function(e,r){if(r||(r=""),!e)return r;t.checkSupport(e);var n=t.getTypeOf(r);return f[n][e](r)},t.resolve=function(t){for(var e=t.split("/"),r=[],n=0;n<e.length;n++){var i=e[n];"."===i||""===i&&0!==n&&n!==e.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},t.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":e.nodebuffer&&n.isBuffer(t)?"nodebuffer":e.uint8array&&t instanceof Uint8Array?"uint8array":e.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(t){if(!e[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(t){var e,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return n},t.delay=function(t,e,r){setImmediate((function(){t.apply(r||null,e||[])}))},t.inherits=function(t,e){var r=function(){};r.prototype=e.prototype,t.prototype=new r},t.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===r[e]&&(r[e]=arguments[t][e]);return r},t.prepareContent=function(n,a,s,u,l){return i.Promise.resolve(a).then((function(t){return e.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new i.Promise((function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(a){var f,h=t.getTypeOf(a);return h?("arraybuffer"===h?a=t.transformTo("uint8array",a):"string"===h&&(l?a=r.decode(a):s&&!0!==u&&(a=o(f=a,e.uint8array?new Uint8Array(f.length):new Array(f.length)))),a):i.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}}(f)),f}function Pn(t){this.name=t||"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}!function(t,e){if(!t.setImmediate){var r,n,i,a,o,s=1,u={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){xt((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(n=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),r=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return u[s]=i,r(s),s++},h.clearImmediate=c}function c(t){delete u[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{c(t),l=!1}}}}}("undefined"==typeof self?n:self),Pn.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),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 t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},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 t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}};var Bn=Pn;!function(t){for(var e=In(),r=ht,n=On,i=Bn,a=new Array(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;a[254]=a[254]=1;function s(){i.call(this,"utf-8 decode"),this.leftOver=null}function u(){i.call(this,"utf-8 encode")}t.utf8encode=function(t){return r.nodebuffer?n.newBufferFrom(t,"utf-8"):function(t){var e,n,i,a,o,s=t.length,u=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(u):new Array(u),o=0,a=0;o<u;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e}(t)},t.utf8decode=function(t){return r.nodebuffer?e.transformTo("nodebuffer",t).toString("utf-8"):function(t){var r,n,i,o,s=t.length,u=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)u[n++]=i;else if((o=a[i])>4)u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),e.applyFromCharCode(u)}(t=e.transformTo(r.uint8array?"uint8array":"array",t))},e.inherits(s,i),s.prototype.processChunk=function(n){var i=e.transformTo(r.uint8array?"uint8array":"array",n.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=i;(i=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),i.set(o,this.leftOver.length)}else i=this.leftOver.concat(i);this.leftOver=null}var s=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+a[t[r]]>e?r:e}(i),u=i;s!==i.length&&(r.uint8array?(u=i.subarray(0,s),this.leftOver=i.subarray(s,i.length)):(u=i.slice(0,s),this.leftOver=i.slice(s,i.length))),this.push({data:t.utf8decode(u),meta:n.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=s,e.inherits(u,i),u.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=u}(l);var Dn=Bn,zn=In();function jn(t){Dn.call(this,"ConvertWorker to "+t),this.destType=t}zn.inherits(jn,Dn),jn.prototype.processChunk=function(t){this.push({data:zn.transformTo(this.destType,t.data),meta:t.meta})};var Nn,Fn,Un=jn;var Hn=In(),Wn=Un,Zn=Bn,qn=Sn(),Yn=Ln,Gn=null;if(ht.nodestream)try{Gn=function(){if(Fn)return Nn;Fn=1;var t=yn().Readable;function e(e,r,n){t.call(this,r),this._helper=e;var i=this;e.on("data",(function(t,e){i.push(t)||i._helper.pause(),n&&n(e)})).on("error",(function(t){i.emit("error",t)})).on("end",(function(){i.push(null)}))}return In().inherits(e,t),e.prototype._read=function(){this._helper.resume()},Nn=e}()}catch(t){}function Vn(t,e){return new Yn.Promise((function(r,n){var i=[],a=t._internalType,o=t._outputType,s=t._mimeType;t.on("data",(function(t,r){i.push(t),e&&e(r)})).on("error",(function(t){i=[],n(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return Hn.newBlob(Hn.transformTo("arraybuffer",e),r);case"base64":return qn.encode(e);default:return Hn.transformTo(t,e)}}(o,function(t,e){var r,n=0,i=null,a=0;for(r=0;r<e.length;r++)a+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(i=new Uint8Array(a),r=0;r<e.length;r++)i.set(e[r],n),n+=e[r].length;return i;case"nodebuffer":return A.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,i),s);r(t)}catch(t){n(t)}i=[]})).resume()}))}function Kn(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,Hn.checkSupport(n),this._worker=t.pipe(new Wn(n)),t.lock()}catch(t){this._worker=new Zn("error"),this._worker.error(t)}}Kn.prototype={accumulate:function(t){return Vn(this,t)},on:function(t,e){var r=this;return"data"===t?this._worker.on(t,(function(t){e.call(r,t.data,t.meta)})):this._worker.on(t,(function(){Hn.delay(e,arguments,r)})),this},resume:function(){return Hn.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(Hn.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new Gn(this,{objectMode:"nodebuffer"!==this._outputType},t)}};var Xn=Kn,$n={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null},Jn=In(),Qn=Bn;function ti(t){Qn.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=Jn.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}Jn.inherits(ti,Qn),ti.prototype.cleanUp=function(){Qn.prototype.cleanUp.call(this),this.data=null},ti.prototype.resume=function(){return!!Qn.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Jn.delay(this._tickAndRepeat,[],this)),!0)},ti.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Jn.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},ti.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};var ei=ti,ri=In();var ni=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var ii=function(t,e){return void 0!==t&&t.length?"string"!==ri.getTypeOf(t)?function(t,e,r,n){var i=ni,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e[o])];return-1^t}(0|e,t,t.length,0):function(t,e,r,n){var i=ni,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length,0):0},ai=Bn,oi=ii;function si(){ai.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}In().inherits(si,ai),si.prototype.processChunk=function(t){this.streamInfo.crc32=oi(t.data,this.streamInfo.crc32||0),this.push(t)};var ui=si,li=In(),fi=Bn;function hi(t){fi.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}li.inherits(hi,fi),hi.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}fi.prototype.processChunk.call(this,t)};var ci=Ln,di=ei,pi=ui,gi=hi;function bi(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i}bi.prototype={getContentWorker:function(){var t=new di(ci.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new gi("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new di(ci.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},bi.createWorkerFrom=function(t,e,r){return t.pipe(new pi).pipe(new gi("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new gi("compressedSize")).withStreamInfo("compression",e)};var mi=bi,vi=Xn,yi=ei,wi=l,_i=mi,ki=Bn,xi=function(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};xi.prototype={internalStream:function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(e=e.pipe(new wi.Utf8EncodeWorker)),!i&&n&&(e=e.pipe(new wi.Utf8DecodeWorker))}catch(t){(e=new ki("error")).error(t)}return new vi(e,r,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof _i&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new wi.Utf8EncodeWorker)),_i.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof _i?this._data.getContentWorker():this._data instanceof ki?this._data:new yi(this._data)}};for(var Si=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Ci=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Ai=0;Ai<Si.length;Ai++)xi.prototype[Si[Ai]]=Ci;var Ei=xi,Ri={},Oi={},Ti={},Mi={};!function(t){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},t.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},i={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){return[].concat.apply([],t)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)}(Mi);var Li={},Ii={},Pi={},Bi=Mi;function Di(t){for(var e=t.length;--e>=0;)t[e]=0}var zi=[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],ji=[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],Ni=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fi=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ui=new Array(576);Di(Ui);var Hi=new Array(60);Di(Hi);var Wi=new Array(512);Di(Wi);var Zi=new Array(256);Di(Zi);var qi=new Array(29);Di(qi);var Yi,Gi,Vi,Ki=new Array(30);function Xi(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function $i(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function Ji(t){return t<256?Wi[t]:Wi[256+(t>>>7)]}function Qi(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function ta(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,Qi(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function ea(t,e,r){ta(t,r[2*e],r[2*e+1])}function ra(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function na(t,e,r){var n,i,a=new Array(16),o=0;for(n=1;n<=15;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=ra(a[s]++,s))}}function ia(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function aa(t){t.bi_valid>8?Qi(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function oa(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function sa(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&oa(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!oa(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function ua(t,e,r){var n,i,a,o,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?ea(t,i,e):(ea(t,(a=Zi[i])+256+1,e),0!==(o=zi[a])&&ta(t,i-=qi[a],o),ea(t,a=Ji(--n),r),0!==(o=ji[a])&&ta(t,n-=Ki[a],o))}while(s<t.last_lit);ea(t,256,e)}function la(t,e){var r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<u;r++)0!==a[2*r]?(t.heap[++t.heap_len]=l=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=l,r=t.heap_len>>1;r>=1;r--)sa(t,a,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],sa(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,sa(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,u=e.dyn_tree,l=e.max_code,f=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(a=0;a<=15;a++)t.bl_count[a]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(a=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(a=p,g++),u[2*n+1]=a,n>l||(t.bl_count[a]++,o=0,n>=d&&(o=c[n-d]),s=u[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(f[2*n+1]+o)));if(0!==g){do{for(a=p-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(a=p;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>l||(u[2*i+1]!==a&&(t.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),n--)}}(t,e),na(a,l,t.bl_count)}function fa(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function ha(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<l)do{ea(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(ea(t,i,t.bl_tree),s--),ea(t,16,t.bl_tree),ta(t,s-3,2)):s<=10?(ea(t,17,t.bl_tree),ta(t,s-3,3)):(ea(t,18,t.bl_tree),ta(t,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}Di(Ki);var ca=!1;function da(t,e,r,n){ta(t,0+(n?1:0),3),function(t,e,r,n){aa(t),n&&(Qi(t,r),Qi(t,~r)),Bi.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}Pi._tr_init=function(t){ca||(!function(){var t,e,r,n,i,a=new Array(16);for(r=0,n=0;n<28;n++)for(qi[n]=r,t=0;t<1<<zi[n];t++)Zi[r++]=n;for(Zi[r-1]=n,i=0,n=0;n<16;n++)for(Ki[n]=i,t=0;t<1<<ji[n];t++)Wi[i++]=n;for(i>>=7;n<30;n++)for(Ki[n]=i<<7,t=0;t<1<<ji[n]-7;t++)Wi[256+i++]=n;for(e=0;e<=15;e++)a[e]=0;for(t=0;t<=143;)Ui[2*t+1]=8,t++,a[8]++;for(;t<=255;)Ui[2*t+1]=9,t++,a[9]++;for(;t<=279;)Ui[2*t+1]=7,t++,a[7]++;for(;t<=287;)Ui[2*t+1]=8,t++,a[8]++;for(na(Ui,287,a),t=0;t<30;t++)Hi[2*t+1]=5,Hi[2*t]=ra(t,5);Yi=new Xi(Ui,zi,257,286,15),Gi=new Xi(Hi,ji,0,30,15),Vi=new Xi(new Array(0),Ni,0,19,7)}(),ca=!0),t.l_desc=new $i(t.dyn_ltree,Yi),t.d_desc=new $i(t.dyn_dtree,Gi),t.bl_desc=new $i(t.bl_tree,Vi),t.bi_buf=0,t.bi_valid=0,ia(t)},Pi._tr_stored_block=da,Pi._tr_flush_block=function(t,e,r,n){var i,a,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),la(t,t.l_desc),la(t,t.d_desc),o=function(t){var e;for(fa(t,t.dyn_ltree,t.l_desc.max_code),fa(t,t.dyn_dtree,t.d_desc.max_code),la(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*Fi[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?da(t,e,r,n):4===t.strategy||a===i?(ta(t,2+(n?1:0),3),ua(t,Ui,Hi)):(ta(t,4+(n?1:0),3),function(t,e,r,n){var i;for(ta(t,e-257,5),ta(t,r-1,5),ta(t,n-4,4),i=0;i<n;i++)ta(t,t.bl_tree[2*Fi[i]+1],3);ha(t,t.dyn_ltree,e-1),ha(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),ua(t,t.dyn_ltree,t.dyn_dtree)),ia(t),n&&aa(t)},Pi._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(Zi[r]+256+1)]++,t.dyn_dtree[2*Ji(e)]++),t.last_lit===t.lit_bufsize-1},Pi._tr_align=function(t){ta(t,2,3),ea(t,256,Ui),function(t){16===t.bi_valid?(Qi(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)};var pa=function(t,e,r,n){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0};var ga=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var ba,ma=function(t,e,r,n){var i=ga,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e[o])];return-1^t},va={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"},ya=Mi,wa=Pi,_a=pa,ka=ma,xa=va;function Sa(t,e){return t.msg=xa[e],e}function Ca(t){return(t<<1)-(t>4?9:0)}function Aa(t){for(var e=t.length;--e>=0;)t[e]=0}function Ea(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(ya.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function Ra(t,e){wa._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Ea(t.strm)}function Oa(t,e){t.pending_buf[t.pending++]=e}function Ta(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function Ma(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,l=t.window,f=t.w_mask,h=t.prev,c=t.strstart+258,d=l[a+o-1],p=l[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(r=e)+o]===p&&l[r+o-1]===d&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<c);if(n=258-(c-a),a=c-258,n>o){if(t.match_start=e,o=n,n>=s)break;d=l[a+o-1],p=l[a+o]}}}while((e=h[e&f])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function La(t){var e,r,n,i,a,o,s,u,l,f,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-262)){ya.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=h?n-h:0}while(--r);e=r=h;do{n=t.prev[--e],t.prev[e]=n>=h?n-h:0}while(--r);i+=h}if(0===t.strm.avail_in)break;if(o=t.strm,s=t.window,u=t.strstart+t.lookahead,l=i,f=void 0,(f=o.avail_in)>l&&(f=l),r=0===f?0:(o.avail_in-=f,ya.arraySet(s,o.input,o.next_in,f,u),1===o.state.wrap?o.adler=_a(o.adler,s,f,u):2===o.state.wrap&&(o.adler=ka(o.adler,s,f,u)),o.next_in+=f,o.total_in+=f,f),t.lookahead+=r,t.lookahead+t.insert>=3)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+3-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function Ia(t,e){for(var r,n;;){if(t.lookahead<262){if(La(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=Ma(t,r)),t.match_length>=3)if(n=wa._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=wa._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ra(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ra(t,!1),0===t.strm.avail_out)?1:2}function Pa(t,e){for(var r,n,i;;){if(t.lookahead<262){if(La(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=Ma(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=wa._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ra(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=wa._tr_tally(t,0,t.window[t.strstart-1]))&&Ra(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=wa._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ra(t,!1),0===t.strm.avail_out)?1:2}function Ba(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function Da(){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 ya.Buf16(1146),this.dyn_dtree=new ya.Buf16(122),this.bl_tree=new ya.Buf16(78),Aa(this.dyn_ltree),Aa(this.dyn_dtree),Aa(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ya.Buf16(16),this.heap=new ya.Buf16(573),Aa(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ya.Buf16(573),Aa(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 za(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,wa._tr_init(e),0):Sa(t,-2)}function ja(t){var e,r=za(t);return 0===r&&((e=t.state).window_size=2*e.w_size,Aa(e.head),e.max_lazy_match=ba[e.level].max_lazy,e.good_match=ba[e.level].good_length,e.nice_match=ba[e.level].nice_length,e.max_chain_length=ba[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function Na(t,e,r,n,i,a){if(!t)return-2;var o=1;if(-1===e&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return Sa(t,-2);8===n&&(n=9);var s=new Da;return t.state=s,s.strm=t,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new ya.Buf8(2*s.w_size),s.head=new ya.Buf16(s.hash_size),s.prev=new ya.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new ya.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=a,s.method=r,ja(t)}ba=[new Ba(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(La(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ra(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(Ra(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ra(t,!1),t.strm.avail_out),1)})),new Ba(4,4,8,4,Ia),new Ba(4,5,16,8,Ia),new Ba(4,6,32,32,Ia),new Ba(4,4,16,16,Pa),new Ba(8,16,32,32,Pa),new Ba(8,16,128,128,Pa),new Ba(8,32,128,256,Pa),new Ba(32,128,258,1024,Pa),new Ba(32,258,258,4096,Pa)],Ii.deflateInit=function(t,e){return Na(t,e,8,15,8,0)},Ii.deflateInit2=Na,Ii.deflateReset=ja,Ii.deflateResetKeep=za,Ii.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},Ii.deflate=function(t,e){var r,n,i,a;if(!t||!t.state||e>5||e<0)return t?Sa(t,-2):-2;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&4!==e)return Sa(t,0===t.avail_out?-5:-2);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Oa(n,31),Oa(n,139),Oa(n,8),n.gzhead?(Oa(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)),Oa(n,255&n.gzhead.time),Oa(n,n.gzhead.time>>8&255),Oa(n,n.gzhead.time>>16&255),Oa(n,n.gzhead.time>>24&255),Oa(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Oa(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Oa(n,255&n.gzhead.extra.length),Oa(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=ka(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Oa(n,0),Oa(n,0),Oa(n,0),Oa(n,0),Oa(n,0),Oa(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Oa(n,3),n.status=113);else{var o=8+(n.w_bits-8<<4)<<8;o|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=113,Ta(n,o),0!==n.strstart&&(Ta(n,t.adler>>>16),Ta(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),Ea(t),i=n.pending,n.pending!==n.pending_buf_size));)Oa(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),Ea(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Oa(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),Ea(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Oa(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Ea(t),n.pending+2<=n.pending_buf_size&&(Oa(n,255&t.adler),Oa(n,t.adler>>8&255),t.adler=0,n.status=113)):n.status=113),0!==n.pending){if(Ea(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&Ca(e)<=Ca(r)&&4!==e)return Sa(t,-5);if(666===n.status&&0!==t.avail_in)return Sa(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(La(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=wa._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Ra(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ra(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,i,a,o=t.window;;){if(t.lookahead<=258){if(La(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=o[i=t.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=t.strstart+258;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=wa._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=wa._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Ra(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ra(t,!1),0===t.strm.avail_out)?1:2}(n,e):ba[n.level].func(n,e);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?wa._tr_align(n):5!==e&&(wa._tr_stored_block(n,0,0,!1),3===e&&(Aa(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Ea(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Oa(n,255&t.adler),Oa(n,t.adler>>8&255),Oa(n,t.adler>>16&255),Oa(n,t.adler>>24&255),Oa(n,255&t.total_in),Oa(n,t.total_in>>8&255),Oa(n,t.total_in>>16&255),Oa(n,t.total_in>>24&255)):(Ta(n,t.adler>>>16),Ta(n,65535&t.adler)),Ea(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},Ii.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?Sa(t,-2):(t.state=null,113===e?Sa(t,-3):0):-2},Ii.deflateSetDictionary=function(t,e){var r,n,i,a,o,s,u,l,f=e.length;if(!t||!t.state)return-2;if(2===(a=(r=t.state).wrap)||1===a&&42!==r.status||r.lookahead)return-2;for(1===a&&(t.adler=_a(t.adler,e,f,0)),r.wrap=0,f>=r.w_size&&(0===a&&(Aa(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new ya.Buf8(r.w_size),ya.arraySet(l,e,f-r.w_size,r.w_size,0),e=l,f=r.w_size),o=t.avail_in,s=t.next_in,u=t.input,t.avail_in=f,t.next_in=0,t.input=e,La(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,La(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,t.next_in=s,t.input=u,t.avail_in=o,r.wrap=a,0},Ii.deflateInfo="pako deflate (from Nodeca project)";var Fa={},Ua=Mi,Ha=!0,Wa=!0;try{String.fromCharCode.apply(null,[0])}catch(t){Ha=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Wa=!1}for(var Za=new Ua.Buf8(256),qa=0;qa<256;qa++)Za[qa]=qa>=252?6:qa>=248?5:qa>=240?4:qa>=224?3:qa>=192?2:1;function Ya(t,e){if(e<65534&&(t.subarray&&Wa||!t.subarray&&Ha))return String.fromCharCode.apply(null,Ua.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}Za[254]=Za[254]=1,Fa.string2buf=function(t){var e,r,n,i,a,o=t.length,s=0;for(i=0;i<o;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Ua.Buf8(s),a=0,i=0;a<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},Fa.buf2binstring=function(t){return Ya(t,t.length)},Fa.binstring2buf=function(t){for(var e=new Ua.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},Fa.buf2string=function(t,e){var r,n,i,a,o=e||t.length,s=new Array(2*o);for(n=0,r=0;r<o;)if((i=t[r++])<128)s[n++]=i;else if((a=Za[i])>4)s[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&r<o;)i=i<<6|63&t[r++],a--;a>1?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return Ya(s,n)},Fa.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Za[t[r]]>e?r:e};var Ga=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},Va=Ii,Ka=Mi,Xa=Fa,$a=va,Ja=Ga,Qa=Object.prototype.toString;function to(t){if(!(this instanceof to))return new to(t);this.options=Ka.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ja,this.strm.avail_out=0;var r=Va.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error($a[r]);if(e.header&&Va.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?Xa.string2buf(e.dictionary):"[object ArrayBuffer]"===Qa.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=Va.deflateSetDictionary(this.strm,n)))throw new Error($a[r]);this._dict_set=!0}}function eo(t,e){var r=new to(e);if(r.push(t,!0),r.err)throw r.msg||$a[r.err];return r.result}to.prototype.push=function(t,e){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=Xa.string2buf(t):"[object ArrayBuffer]"===Qa.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new Ka.Buf8(a),i.next_out=0,i.avail_out=a),1!==(r=Va.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(Xa.buf2binstring(Ka.shrinkBuf(i.output,i.next_out))):this.onData(Ka.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==r);return 4===n?(r=Va.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),i.avail_out=0,!0)},to.prototype.onData=function(t){this.chunks.push(t)},to.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ka.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},Li.Deflate=to,Li.deflate=eo,Li.deflateRaw=function(t,e){return(e=e||{}).raw=!0,eo(t,e)},Li.gzip=function(t,e){return(e=e||{}).gzip=!0,eo(t,e)};var ro={},no={},io=Mi,ao=[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],oo=[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],so=[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],uo=[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],lo=Mi,fo=pa,ho=ma,co=function(t,e){var r,n,i,a,o,s,u,l,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A;r=t.state,n=t.next_in,C=t.input,i=n+(t.avail_in-5),a=t.next_out,A=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,l=r.wsize,f=r.whave,h=r.wnext,c=r.window,d=r.hold,p=r.bits,g=r.lencode,b=r.distcode,m=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(d+=C[n++]<<p,p+=8,d+=C[n++]<<p,p+=8),y=g[d&m];e:for(;;){if(d>>>=w=y>>>24,p-=w,0===(w=y>>>16&255))A[a++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=g[(65535&y)+(d&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=65535&y,(w&=15)&&(p<w&&(d+=C[n++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=C[n++]<<p,p+=8,d+=C[n++]<<p,p+=8),y=b[d&v];r:for(;;){if(d>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=b[(65535&y)+(d&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&y,p<(w&=15)&&(d+=C[n++]<<p,(p+=8)<w&&(d+=C[n++]<<p,p+=8)),(k+=d&(1<<w)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=w,p-=w,k>(w=a-o)){if((w=k-w)>f&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(x=0,S=c,0===h){if(x+=l-w,w<_){_-=w;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}}else if(h<w){if(x+=l+h-w,(w-=h)<_){_-=w;do{A[a++]=c[x++]}while(--w);if(x=0,h<_){_-=w=h;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}}}else if(x+=h-w,w<_){_-=w;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}for(;_>2;)A[a++]=S[x++],A[a++]=S[x++],A[a++]=S[x++],_-=3;_&&(A[a++]=S[x++],_>1&&(A[a++]=S[x++]))}else{x=a-k;do{A[a++]=A[x++],A[a++]=A[x++],A[a++]=A[x++],_-=3}while(_>2);_&&(A[a++]=A[x++],_>1&&(A[a++]=A[x++]))}break}}break}}while(n<i&&a<s);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=d,r.bits=p},po=function(t,e,r,n,i,a,o,s){var u,l,f,h,c,d,p,g,b,m=s.bits,v=0,y=0,w=0,_=0,k=0,x=0,S=0,C=0,A=0,E=0,R=null,O=0,T=new io.Buf16(16),M=new io.Buf16(16),L=null,I=0;for(v=0;v<=15;v++)T[v]=0;for(y=0;y<n;y++)T[e[r+y]]++;for(k=m,_=15;_>=1&&0===T[_];_--);if(k>_&&(k=_),0===_)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(w=1;w<_&&0===T[w];w++);for(k<w&&(k=w),C=1,v=1;v<=15;v++)if(C<<=1,(C-=T[v])<0)return-1;if(C>0&&(0===t||1!==_))return-1;for(M[1]=0,v=1;v<15;v++)M[v+1]=M[v]+T[v];for(y=0;y<n;y++)0!==e[r+y]&&(o[M[e[r+y]]++]=y);if(0===t?(R=L=o,d=19):1===t?(R=ao,O-=257,L=oo,I-=257,d=256):(R=so,L=uo,d=-1),E=0,y=0,v=w,c=a,x=k,S=0,f=-1,h=(A=1<<k)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){p=v-S,o[y]<d?(g=0,b=o[y]):o[y]>d?(g=L[I+o[y]],b=R[O+o[y]]):(g=96,b=0),u=1<<v-S,w=l=1<<x;do{i[c+(E>>S)+(l-=u)]=p<<24|g<<16|b|0}while(0!==l);for(u=1<<v-1;E&u;)u>>=1;if(0!==u?(E&=u-1,E+=u):E=0,y++,0==--T[v]){if(v===_)break;v=e[r+o[y]]}if(v>k&&(E&h)!==f){for(0===S&&(S=k),c+=w,C=1<<(x=v-S);x+S<_&&!((C-=T[x+S])<=0);)x++,C<<=1;if(A+=1<<x,1===t&&A>852||2===t&&A>592)return 1;i[f=E&h]=k<<24|x<<16|c-a|0}}return 0!==E&&(i[c+E]=v-S<<24|64<<16|0),s.bits=k,0};function go(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function bo(){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 lo.Buf16(320),this.work=new lo.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function mo(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new lo.Buf32(852),e.distcode=e.distdyn=new lo.Buf32(592),e.sane=1,e.back=-1,0):-2}function vo(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,mo(t)):-2}function yo(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,vo(t))):-2}function wo(t,e){var r,n;return t?(n=new bo,t.state=n,n.window=null,0!==(r=yo(t,e))&&(t.state=null),r):-2}var _o,ko,xo=!0;function So(t){if(xo){var e;for(_o=new lo.Buf32(512),ko=new lo.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(po(1,t.lens,0,288,_o,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;po(2,t.lens,0,32,ko,0,t.work,{bits:5}),xo=!1}t.lencode=_o,t.lenbits=9,t.distcode=ko,t.distbits=5}function Co(t,e,r,n){var i,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new lo.Buf8(a.wsize)),n>=a.wsize?(lo.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>n&&(i=n),lo.arraySet(a.window,e,r-n,i,a.wnext),(n-=i)?(lo.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}no.inflateReset=vo,no.inflateReset2=yo,no.inflateResetKeep=mo,no.inflateInit=function(t){return wo(t,15)},no.inflateInit2=wo,no.inflate=function(t,e){var r,n,i,a,o,s,u,l,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A=0,E=new lo.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(r=t.state).mode&&(r.mode=13),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,l=r.hold,f=r.bits,h=s,c=u,x=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(2&r.wrap&&35615===l){r.check=0,E[0]=255&l,E[1]=l>>>8&255,r.check=ho(r.check,E,2,0),l=0,f=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&l)){t.msg="unknown compression method",r.mode=30;break}if(f-=4,k=8+(15&(l>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&l?10:12,l=0,f=0;break;case 2:for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(r.flags=l,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=ho(r.check,E,2,0)),l=0,f=0,r.mode=3;case 3:for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.head&&(r.head.time=l),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,r.check=ho(r.check,E,4,0)),l=0,f=0,r.mode=4;case 4:for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.head&&(r.head.xflags=255&l,r.head.os=l>>8),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=ho(r.check,E,2,0)),l=0,f=0,r.mode=5;case 5:if(1024&r.flags){for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.length=l,r.head&&(r.head.extra_len=l),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=ho(r.check,E,2,0)),l=0,f=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=r.length)>s&&(d=s),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),lo.arraySet(r.head.extra,n,a,d,k)),512&r.flags&&(r.check=ho(r.check,n,d,a)),s-=d,a+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;d=0;do{k=n[a+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=ho(r.check,n,d,a)),s-=d,a+=d,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break t;d=0;do{k=n[a+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=ho(r.check,n,d,a)),s-=d,a+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}t.adler=r.check=go(l),l=0,f=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){l>>>=7&f,f-=7&f,r.mode=27;break}for(;f<3;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}switch(r.last=1&l,f-=1,3&(l>>>=1)){case 0:r.mode=14;break;case 1:if(So(r),r.mode=20,6===e){l>>>=2,f-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}l>>>=2,f-=2;break;case 14:for(l>>>=7&f,f-=7&f;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if((65535&l)!=(l>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&l,l=0,f=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;lo.arraySet(i,n,a,d,o),s-=d,a+=d,u-=d,o+=d,r.length-=d;break}r.mode=12;break;case 17:for(;f<14;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(r.nlen=257+(31&l),l>>>=5,f-=5,r.ndist=1+(31&l),l>>>=5,f-=5,r.ncode=4+(15&l),l>>>=4,f-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;f<3;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.lens[R[r.have++]]=7&l,l>>>=3,f-=3}for(;r.have<19;)r.lens[R[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=po(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;m=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,v=65535&A,!((b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(v<16)l>>>=b,f-=b,r.lens[r.have++]=v;else{if(16===v){for(C=b+2;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l>>>=b,f-=b,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&l),l>>>=2,f-=2}else if(17===v){for(C=b+3;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}f-=b,k=0,d=3+(7&(l>>>=b)),l>>>=3,f-=3}else{for(C=b+7;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}f-=b,k=0,d=11+(127&(l>>>=b)),l>>>=7,f-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=po(1,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=po(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(s>=6&&u>=258){t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,co(t,c),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,l=r.hold,f=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;m=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,v=65535&A,!((b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(m&&0==(240&m)){for(y=b,w=m,_=v;m=(A=r.lencode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,v=65535&A,!(y+(b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}l>>>=y,f-=y,r.back+=y}if(l>>>=b,f-=b,r.back+=b,r.length=v,0===m){r.mode=26;break}if(32&m){r.back=-1,r.mode=12;break}if(64&m){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&m,r.mode=22;case 22:if(r.extra){for(C=r.extra;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;m=(A=r.distcode[l&(1<<r.distbits)-1])>>>16&255,v=65535&A,!((b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(0==(240&m)){for(y=b,w=m,_=v;m=(A=r.distcode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,v=65535&A,!(y+(b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}l>>>=y,f-=y,r.back+=y}if(l>>>=b,f-=b,r.back+=b,64&m){t.msg="invalid distance code",r.mode=30;break}r.offset=v,r.extra=15&m,r.mode=24;case 24:if(r.extra){for(C=r.extra;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===u)break t;if(d=c-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),g=r.window}else g=i,p=o-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[o++]=g[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;i[o++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;f<32;){if(0===s)break t;s--,l|=n[a++]<<f,f+=8}if(c-=u,t.total_out+=c,r.total+=c,c&&(t.adler=r.check=r.flags?ho(r.check,i,c,o-c):fo(r.check,i,c,o-c)),c=u,(r.flags?l:go(l))!==r.check){t.msg="incorrect data check",r.mode=30;break}l=0,f=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}l=0,f=0}r.mode=29;case 29:x=1;break t;case 30:x=-3;break t;case 31:return-4;default:return-2}return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,(r.wsize||c!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&Co(t,t.output,t.next_out,c-t.avail_out),h-=t.avail_in,c-=t.avail_out,t.total_in+=h,t.total_out+=c,r.total+=c,r.wrap&&c&&(t.adler=r.check=r.flags?ho(r.check,i,c,t.next_out-c):fo(r.check,i,c,t.next_out-c)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===h&&0===c||4===e)&&0===x&&(x=-5),x},no.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},no.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?-2:(r.head=e,e.done=!1,0):-2},no.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?-2:11===r.mode&&fo(1,e,n,0)!==r.check?-3:Co(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},no.inflateInfo="pako inflate (from Nodeca project)";var Ao={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 Eo=no,Ro=Mi,Oo=Fa,To=Ao,Mo=va,Lo=Ga,Io=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},Po=Object.prototype.toString;function Bo(t){if(!(this instanceof Bo))return new Bo(t);this.options=Ro.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Lo,this.strm.avail_out=0;var r=Eo.inflateInit2(this.strm,e.windowBits);if(r!==To.Z_OK)throw new Error(Mo[r]);if(this.header=new Io,Eo.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Oo.string2buf(e.dictionary):"[object ArrayBuffer]"===Po.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Eo.inflateSetDictionary(this.strm,e.dictionary))!==To.Z_OK))throw new Error(Mo[r])}function Do(t,e){var r=new Bo(e);if(r.push(t,!0),r.err)throw r.msg||Mo[r.err];return r.result}Bo.prototype.push=function(t,e){var r,n,i,a,o,s=this.strm,u=this.options.chunkSize,l=this.options.dictionary,f=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?To.Z_FINISH:To.Z_NO_FLUSH,"string"==typeof t?s.input=Oo.binstring2buf(t):"[object ArrayBuffer]"===Po.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Ro.Buf8(u),s.next_out=0,s.avail_out=u),(r=Eo.inflate(s,To.Z_NO_FLUSH))===To.Z_NEED_DICT&&l&&(r=Eo.inflateSetDictionary(this.strm,l)),r===To.Z_BUF_ERROR&&!0===f&&(r=To.Z_OK,f=!1),r!==To.Z_STREAM_END&&r!==To.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==To.Z_STREAM_END&&(0!==s.avail_in||n!==To.Z_FINISH&&n!==To.Z_SYNC_FLUSH)||("string"===this.options.to?(i=Oo.utf8border(s.output,s.next_out),a=s.next_out-i,o=Oo.buf2string(s.output,i),s.next_out=a,s.avail_out=u-a,a&&Ro.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(Ro.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(f=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==To.Z_STREAM_END);return r===To.Z_STREAM_END&&(n=To.Z_FINISH),n===To.Z_FINISH?(r=Eo.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===To.Z_OK):n!==To.Z_SYNC_FLUSH||(this.onEnd(To.Z_OK),s.avail_out=0,!0)},Bo.prototype.onData=function(t){this.chunks.push(t)},Bo.prototype.onEnd=function(t){t===To.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ro.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},ro.Inflate=Bo,ro.inflate=Do,ro.inflateRaw=function(t,e){return(e=e||{}).raw=!0,Do(t,e)},ro.ungzip=Do;var zo={};(0,Mi.assign)(zo,Li,ro,Ao);var jo="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,No=zo,Fo=In(),Uo=Bn,Ho=jo?"uint8array":"array";function Wo(t,e){Uo.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}Ti.magic="\b\0",Fo.inherits(Wo,Uo),Wo.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(Fo.transformTo(Ho,t.data),!1)},Wo.prototype.flush=function(){Uo.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},Wo.prototype.cleanUp=function(){Uo.prototype.cleanUp.call(this),this._pako=null},Wo.prototype._createPako=function(){this._pako=new No[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Ti.compressWorker=function(t){return new Wo("Deflate",t)},Ti.uncompressWorker=function(){return new Wo("Inflate",{})};var Zo=Bn;Oi.STORE={magic:"\0\0",compressWorker:function(){return new Zo("STORE compression")},uncompressWorker:function(){return new Zo("STORE decompression")}},Oi.DEFLATE=Ti;var qo={LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\b"},Yo=In(),Go=Bn,Vo=l,Ko=ii,Xo=qo,$o=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},Jo=function(t,e,r,n,i,a){var o,s,u=t.file,l=t.compression,f=a!==Vo.utf8encode,h=Yo.transformTo("string",a(u.name)),c=Yo.transformTo("string",Vo.utf8encode(u.name)),d=u.comment,p=Yo.transformTo("string",a(d)),g=Yo.transformTo("string",Vo.utf8encode(d)),b=c.length!==u.name.length,m=g.length!==d.length,v="",y="",w="",_=u.dir,k=u.date,x={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(x.crc32=t.crc32,x.compressedSize=t.compressedSize,x.uncompressedSize=t.uncompressedSize);var S=0;e&&(S|=8),f||!b&&!m||(S|=2048);var C,A,E,R=0,O=0;_&&(R|=16),"UNIX"===i?(O=798,R|=(C=u.unixPermissions,A=_,E=C,C||(E=A?16893:33204),(65535&E)<<16)):(O=20,R|=63&(u.dosPermissions||0)),o=k.getUTCHours(),o<<=6,o|=k.getUTCMinutes(),o<<=5,o|=k.getUTCSeconds()/2,s=k.getUTCFullYear()-1980,s<<=4,s|=k.getUTCMonth()+1,s<<=5,s|=k.getUTCDate(),b&&(y=$o(1,1)+$o(Ko(h),4)+c,v+="up"+$o(y.length,2)+y),m&&(w=$o(1,1)+$o(Ko(p),4)+g,v+="uc"+$o(w.length,2)+w);var T="";return T+="\n\0",T+=$o(S,2),T+=l.magic,T+=$o(o,2),T+=$o(s,2),T+=$o(x.crc32,4),T+=$o(x.compressedSize,4),T+=$o(x.uncompressedSize,4),T+=$o(h.length,2),T+=$o(v.length,2),{fileRecord:Xo.LOCAL_FILE_HEADER+T+h+v,dirRecord:Xo.CENTRAL_FILE_HEADER+$o(O,2)+T+$o(p.length,2)+"\0\0\0\0"+$o(R,4)+$o(n,4)+h+v+p}},Qo=function(t){return Xo.DATA_DESCRIPTOR+$o(t.crc32,4)+$o(t.compressedSize,4)+$o(t.uncompressedSize,4)};function ts(t,e,r,n){Go.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Yo.inherits(ts,Go),ts.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,Go.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},ts.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=Jo(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},ts.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=Jo(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:Qo(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},ts.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r=this.bytesWritten-t,n=function(t,e,r,n,i){var a=Yo.transformTo("string",i(n));return Xo.CENTRAL_DIRECTORY_END+"\0\0\0\0"+$o(t,2)+$o(t,2)+$o(e,4)+$o(r,4)+$o(a.length,2)+a}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},ts.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},ts.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},ts.prototype.resume=function(){return!!Go.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},ts.prototype.error=function(t){var e=this._sources;if(!Go.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},ts.prototype.lock=function(){Go.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()};var es=Oi,rs=ts;Ri.generateWorker=function(t,e,r){var n=new rs(e.streamFiles,r,e.platform,e.encodeFileName),i=0;try{t.forEach((function(t,r){i++;var a=function(t,e){var r=t||e,n=es[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,e.compression),o=r.options.compressionOptions||e.compressionOptions||{},s=r.dir,u=r.date;r._compressWorker(a,o).withStreamInfo("file",{name:t,dir:s,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=i}catch(t){n.error(t)}return n};var ns=In(),is=Bn;function as(t,e){is.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}ns.inherits(as,is),as.prototype._bindStream=function(t){var e=this;this._stream=t,t.pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},as.prototype.pause=function(){return!!is.prototype.pause.call(this)&&(this._stream.pause(),!0)},as.prototype.resume=function(){return!!is.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};var os=as,ss=l,us=In(),ls=Bn,fs=Xn,hs=$n,cs=mi,ds=Ei,ps=Ri,gs=On,bs=os,ms=function(t,e,r){var n,i=us.getTypeOf(e),a=us.extend(r||{},hs);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&&(t=ys(t)),a.createFolders&&(n=vs(t))&&ws.call(this,n,!0);var o="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!o),(e instanceof cs&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",i="string");var s=null;s=e instanceof cs||e instanceof ls?e:gs.isNode&&gs.isStream(e)?new bs(t,e):us.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var u=new ds(t,s,a);this.files[t]=u},vs=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},ys=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},ws=function(t,e){return e=void 0!==e?e:hs.createFolders,t=ys(t),this.files[t]||ms.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function _s(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var ks={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,r,n;for(e in this.files)n=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,n)},filter:function(t){var e=[];return this.forEach((function(r,n){t(r,n)&&e.push(n)})),e},file:function(t,e,r){if(1===arguments.length){if(_s(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var i=this.files[this.root+t];return i&&!i.dir?i:null}return t=this.root+t,ms.call(this,t,e,r),this},folder:function(t){if(!t)return this;if(_s(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=ws.call(this,e),n=this.clone();return n.root=r.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,r={};try{if((r=us.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:ss.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.");us.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||"";e=ps.generateWorker(this,r,n)}catch(t){(e=new ls("error")).error(t)}return new fs(e,r.type||"string",r.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}},xs=ks,Ss=In();function Cs(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}Cs.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return Ss.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}};var As=Cs,Es=As;function Rs(t){Es.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}In().inherits(Rs,Es),Rs.prototype.byteAt=function(t){return this.data[this.zero+t]},Rs.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===e&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},Rs.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.readData(4);return e===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},Rs.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Os=Rs,Ts=As;function Ms(t){Ts.call(this,t)}In().inherits(Ms,Ts),Ms.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},Ms.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},Ms.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},Ms.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Ls=Ms,Is=Os;function Ps(t){Is.call(this,t)}In().inherits(Ps,Is),Ps.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Bs=Ps,Ds=Bs;function zs(t){Ds.call(this,t)}In().inherits(zs,Ds),zs.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var js=zs,Ns=In(),Fs=ht,Us=Os,Hs=Ls,Ws=js,Zs=Bs,qs=function(t){var e=Ns.getTypeOf(t);return Ns.checkSupport(e),"string"!==e||Fs.uint8array?"nodebuffer"===e?new Ws(t):Fs.uint8array?new Zs(Ns.transformTo("uint8array",t)):new Us(Ns.transformTo("array",t)):new Hs(t)},Ys=qs,Gs=In(),Vs=mi,Ks=ii,Xs=l,$s=Oi,Js=ht;function Qs(t,e){this.options=t,this.loadOptions=e}Qs.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.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(e=function(t){for(var e in $s)if(Object.prototype.hasOwnProperty.call($s,e)&&$s[e].magic===t)return $s[e];return null}(this.compressionMethod),null===e)throw new Error("Corrupted zip : compression "+Gs.pretty(this.compressionMethod)+" unknown (inner file : "+Gs.transformTo("string",this.fileName)+")");this.decompressed=new Vs(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===t&&(this.dosPermissions=63&this.externalFileAttributes),3===t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=Ys(this.extraFields[1].value);this.uncompressedSize===Gs.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===Gs.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===Gs.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===Gs.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,r,n,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n};t.setIndex(i)},handleUTF8:function(){var t=Js.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Xs.utf8decode(this.fileName),this.fileCommentStr=Xs.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=Gs.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=Gs.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=Ys(t.value);return 1!==e.readInt(1)||Ks(this.fileName)!==e.readInt(4)?null:Xs.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=Ys(t.value);return 1!==e.readInt(1)||Ks(this.fileComment)!==e.readInt(4)?null:Xs.utf8decode(e.readData(t.length-5))}return null}};var tu=Qs,eu=qs,ru=In(),nu=qo,iu=tu,au=ht;function ou(t){this.files=[],this.loadOptions=t}ou.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+ru.pretty(e)+", expected "+ru.pretty(t)+")")}},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;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 t=this.reader.readData(this.zipCommentLength),e=au.uint8array?"uint8array":"array",r=ru.transformTo(e,t);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 t,e,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,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 t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(nu.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(nu.CENTRAL_FILE_HEADER);)(t=new iu({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);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 t=this.reader.lastIndexOfSignature(nu.CENTRAL_DIRECTORY_END);if(t<0)throw!this.isSignature(0,nu.LOCAL_FILE_HEADER)?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(t);var e=t;if(this.checkSignature(nu.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===ru.MAX_VALUE_16BITS||this.diskWithCentralDirStart===ru.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===ru.MAX_VALUE_16BITS||this.centralDirRecords===ru.MAX_VALUE_16BITS||this.centralDirSize===ru.MAX_VALUE_32BITS||this.centralDirOffset===ru.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(nu.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(nu.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,nu.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(nu.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(nu.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=e-r;if(n>0)this.isSignature(e,nu.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=eu(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var su=ou,uu=In(),lu=Ln,fu=l,hu=su,cu=ui,du=On;function pu(t){return new lu.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new cu);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}function gu(){if(!(this instanceof gu))return new gu;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new gu;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}gu.prototype=xs,gu.prototype.loadAsync=function(t,e){var r=this;return e=uu.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:fu.utf8decode}),du.isNode&&du.isStream(t)?lu.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):uu.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new hu(e);return r.load(t),r})).then((function(t){var r=[lu.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var i=0;i<n.length;i++)r.push(pu(n[i]));return lu.Promise.all(r)})).then((function(t){for(var n=t.shift(),i=n.files,a=0;a<i.length;a++){var o=i[a],s=o.fileNameStr,u=uu.resolve(o.fileNameStr);r.file(u,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:e.createFolders}),o.dir||(r.file(u).unsafeOriginalName=s)}return n.zipComment.length&&(r.comment=n.zipComment),r}))},gu.support=ht,gu.defaults=$n,gu.version="3.10.1",gu.loadAsync=function(t,e){return(new gu).loadAsync(t,e)},gu.external=Ln;var bu=gu;function mu(t){return mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(t)}function vu(t,e){var r=(e=e||{}).pos||0,n=!!e.keepComments,i=!!e.keepWhitespace,a="<".charCodeAt(0),o=">".charCodeAt(0),s="-".charCodeAt(0),u="/".charCodeAt(0),l="!".charCodeAt(0),f="'".charCodeAt(0),h='"'.charCodeAt(0),c="[".charCodeAt(0),d="]".charCodeAt(0);function p(e){for(var f=[];t[r];)if(t.charCodeAt(r)==a){if(t.charCodeAt(r+1)===u){var h=r+2;if(r=t.indexOf(">",r),-1==t.substring(h,r).indexOf(e)){var p=t.substring(0,r).split("\n");throw new Error("Unexpected close tag\nLine: "+(p.length-1)+"\nColumn: "+(p[p.length-1].length+1)+"\nChar: "+t[r])}return r+1&&(r+=1),f}if(t.charCodeAt(r+1)===l){if(t.charCodeAt(r+2)==s){const e=r;for(;-1!==r&&(t.charCodeAt(r)!==o||t.charCodeAt(r-1)!=s||t.charCodeAt(r-2)!=s||-1==r);)r=t.indexOf(">",r+1);-1===r&&(r=t.length),n&&f.push(t.substring(e,r+1))}else{if(t.charCodeAt(r+2)===c&&t.charCodeAt(r+8)===c&&"cdata"===t.substr(r+3,5).toLowerCase()){var b=t.indexOf("]]>",r);-1==b?(f.push(t.substr(r+9)),r=t.length):(f.push(t.substring(r+9,b)),r=b+3);continue}{const e=r+1;r+=2;for(var m=!1;(t.charCodeAt(r)!==o||!0===m)&&t[r];)t.charCodeAt(r)===c?m=!0:!0===m&&t.charCodeAt(r)===d&&(m=!1),r++;f.push(t.substring(e,r))}}r++;continue}var y=v();f.push(y),"?"===y.tagName[0]&&(f.push(...y.children),y.children=[])}else{var w=g();if(i)w.length>0&&f.push(w);else{var _=w.trim();_.length>0&&f.push(_)}r++}return f}function g(){var e=r;return-2===(r=t.indexOf("<",r)-1)&&(r=t.length),t.slice(e,r+1)}function b(){for(var e=r;-1==="\r\n\t>/= ".indexOf(t[r])&&t[r];)r++;return t.slice(e,r)}var m=e.noChildNodes||["img","br","input","meta","link","hr"];function v(){r++;const e=b(),n={};let i=[];for(;t.charCodeAt(r)!==o&&t[r];){var a=t.charCodeAt(r);if(a>64&&a<91||a>96&&a<123){for(var s=b(),l=t.charCodeAt(r);l&&l!==f&&l!==h&&!(l>64&&l<91||l>96&&l<123)&&l!==o;)r++,l=t.charCodeAt(r);if(l===f||l===h){var c=y();if(-1===r)return{tagName:e,attributes:n,children:i}}else c=null,r--;n[s]=c}r++}if(t.charCodeAt(r-1)!==u)if("script"==e){var d=r+1;r=t.indexOf("<\/script>",r),i=[t.slice(d,r)],r+=9}else if("style"==e){d=r+1;r=t.indexOf("</style>",r),i=[t.slice(d,r)],r+=8}else-1===m.indexOf(e)?(r++,i=p(e)):r++;else r++;return{tagName:e,attributes:n,children:i}}function y(){var e=t[r],n=r+1;return r=t.indexOf(e,n),t.slice(n,r)}var w,_=null;if(void 0!==e.attrValue){e.attrName=e.attrName||"id";for(_=[];-1!==(w=void 0,w=new RegExp("\\s"+e.attrName+"\\s*=['\"]"+e.attrValue+"['\"]").exec(t),r=w?w.index:-1);)-1!==(r=t.lastIndexOf("<",r))&&_.push(v()),t=t.substr(r),r=0}else _=e.parseNode?v():p("");return e.filter&&(_=wu(_,e.filter)),e.simplify?yu(Array.isArray(_)?_:[_]):(e.setPos&&(_.pos=r),_)}function yu(t){var e={};if(!t.length)return"";if(1===t.length&&"string"==typeof t[0])return t[0];for(var r in t.forEach((function(t){if("object"==typeof t){e[t.tagName]||(e[t.tagName]=[]);var r=yu(t.children);e[t.tagName].push(r),Object.keys(t.attributes).length&&"string"!=typeof r&&(r._attributes=t.attributes)}})),e)1==e[r].length&&(e[r]=e[r][0]);return e}function wu(t,e,r=0,n=""){var i=[];return t.forEach((function(t,a){if("object"==typeof t&&e(t,a,r,n)&&i.push(t),t.children){var o=wu(t.children,e,r+1,(n?n+".":"")+a+"."+t.tagName);i=i.concat(o)}})),i}function _u(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return ku(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ku(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function ku(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Su(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?xu(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cu=0;function Au(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};if(!t.length)return r;if(1===t.length&&"string"==typeof t[0])return Object.keys(e).length?{attrs:Su({order:Cu++},e),value:t[0]}:t[0];var n,i=_u(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("object"!==mu(a))return;if("?xml"!==a.tagName){r[a.tagName]||(r[a.tagName]=[]);var o=Au(a.children||[],a.attributes);r[a.tagName].push(o),Object.keys(a.attributes).length&&(o.attrs=Su({order:Cu++},a.attributes))}}}catch(t){i.e(t)}finally{i.f()}for(var s in r)1===r[s].length&&(r[s]=r[s][0]);return r}function Eu(t,e){return Ru.apply(this,arguments)}function Ru(){return(Ru=r(u.mark((function t(e,r){var n;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.file(r).async("string");case 3:return n=t.sent,t.abrupt("return",Au(vu(n)));case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",null);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function Ou(t){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(t)}var Tu=/^\s+/,Mu=/\s+$/;function Lu(t,e){if(e=e||{},(t=t||"")instanceof Lu)return t;if(!(this instanceof Lu))return new Lu(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(Tu,"").replace(Mu,"").toLowerCase();var e,r=!1;if(Ku[t])t=Ku[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=ul.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=ul.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=ul.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=ul.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=ul.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=ul.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=ul.hex8.exec(t))return{r:tl(e[1]),g:tl(e[2]),b:tl(e[3]),a:il(e[4]),format:r?"name":"hex8"};if(e=ul.hex6.exec(t))return{r:tl(e[1]),g:tl(e[2]),b:tl(e[3]),format:r?"name":"hex"};if(e=ul.hex4.exec(t))return{r:tl(e[1]+""+e[1]),g:tl(e[2]+""+e[2]),b:tl(e[3]+""+e[3]),a:il(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=ul.hex3.exec(t))return{r:tl(e[1]+""+e[1]),g:tl(e[2]+""+e[2]),b:tl(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==Ou(t)&&(ll(t.r)&&ll(t.g)&&ll(t.b)?(u=t.r,l=t.g,f=t.b,e={r:255*Ju(u,255),g:255*Ju(l,255),b:255*Ju(f,255)},o=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):ll(t.h)&&ll(t.s)&&ll(t.v)?(n=rl(t.s),i=rl(t.v),e=function(t,e,r){t=6*Ju(t,360),e=Ju(e,100),r=Ju(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6;return{r:255*[r,o,a,a,s,r][u],g:255*[s,r,r,o,a,a][u],b:255*[a,a,s,r,r,o][u]}}(t.h,n,i),o=!0,s="hsv"):ll(t.h)&&ll(t.s)&&ll(t.l)&&(n=rl(t.s),a=rl(t.l),e=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=Ju(t,360),e=Ju(e,100),r=Ju(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),i=o(u,s,t),a=o(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(t.h,n,a),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a));var u,l,f;return r=$u(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function Iu(t,e,r){t=Ju(t,255),e=Ju(e,255),r=Ju(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function Pu(t,e,r){t=Ju(t,255),e=Ju(e,255),r=Ju(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=a,u=a-o;if(i=0===a?0:u/a,a==o)n=0;else{switch(a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function Bu(t,e,r,n){var i=[el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Du(t,e,r,n){return[el(nl(n)),el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16))].join("")}function zu(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.s-=e/100,r.s=Qu(r.s),Lu(r)}function ju(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.s+=e/100,r.s=Qu(r.s),Lu(r)}function Nu(t){return Lu(t).desaturate(100)}function Fu(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.l+=e/100,r.l=Qu(r.l),Lu(r)}function Uu(t,e){e=0===e?0:e||10;var r=Lu(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),Lu(r)}function Hu(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.l-=e/100,r.l=Qu(r.l),Lu(r)}function Wu(t,e){var r=Lu(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,Lu(r)}function Zu(t){var e=Lu(t).toHsl();return e.h=(e.h+180)%360,Lu(e)}function qu(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Lu(t).toHsl(),n=[Lu(t)],i=360/e,a=1;a<e;a++)n.push(Lu({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function Yu(t){var e=Lu(t).toHsl(),r=e.h;return[Lu(t),Lu({h:(r+72)%360,s:e.s,l:e.l}),Lu({h:(r+216)%360,s:e.s,l:e.l})]}function Gu(t,e,r){e=e||6,r=r||30;var n=Lu(t).toHsl(),i=360/r,a=[Lu(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(Lu(n));return a}function Vu(t,e){e=e||6;for(var r=Lu(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(Lu({h:n,s:i,v:a})),a=(a+s)%1;return o}Lu.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=$u(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Pu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Pu(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=Iu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Iu(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Bu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var a=[el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16)),el(nl(n))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Ju(this._r,255))+"%",g:Math.round(100*Ju(this._g,255))+"%",b:Math.round(100*Ju(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Ju(this._r,255))+"%, "+Math.round(100*Ju(this._g,255))+"%, "+Math.round(100*Ju(this._b,255))+"%)":"rgba("+Math.round(100*Ju(this._r,255))+"%, "+Math.round(100*Ju(this._g,255))+"%, "+Math.round(100*Ju(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Xu[Bu(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+Du(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=Lu(t);r="#"+Du(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Lu(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Fu,arguments)},brighten:function(){return this._applyModification(Uu,arguments)},darken:function(){return this._applyModification(Hu,arguments)},desaturate:function(){return this._applyModification(zu,arguments)},saturate:function(){return this._applyModification(ju,arguments)},greyscale:function(){return this._applyModification(Nu,arguments)},spin:function(){return this._applyModification(Wu,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(Gu,arguments)},complement:function(){return this._applyCombination(Zu,arguments)},monochromatic:function(){return this._applyCombination(Vu,arguments)},splitcomplement:function(){return this._applyCombination(Yu,arguments)},triad:function(){return this._applyCombination(qu,[3])},tetrad:function(){return this._applyCombination(qu,[4])}},Lu.fromRatio=function(t,e){if("object"==Ou(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:rl(t[n]));t=r}return Lu(t,e)},Lu.equals=function(t,e){return!(!t||!e)&&Lu(t).toRgbString()==Lu(e).toRgbString()},Lu.random=function(){return Lu.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Lu.mix=function(t,e,r){r=0===r?0:r||50;var n=Lu(t).toRgb(),i=Lu(e).toRgb(),a=r/100;return Lu({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},Lu.readability=function(t,e){var r=Lu(t),n=Lu(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Lu.isReadable=function(t,e,r){var n,i,a=Lu.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},Lu.mostReadable=function(t,e,r){var n,i,a,o,s=null,u=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var l=0;l<e.length;l++)(n=Lu.readability(t,e[l]))>u&&(u=n,s=Lu(e[l]));return Lu.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,Lu.mostReadable(t,["#fff","#000"],r))};var Ku=Lu.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Xu=Lu.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(Ku);function $u(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Ju(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Qu(t){return Math.min(1,Math.max(0,t))}function tl(t){return parseInt(t,16)}function el(t){return 1==t.length?"0"+t:""+t}function rl(t){return t<=1&&(t=100*t+"%"),t}function nl(t){return Math.round(255*parseFloat(t)).toString(16)}function il(t){return tl(t)/255}var al,ol,sl,ul=(ol="[\\s|\\(]+("+(al="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+al+")[,|\\s]+("+al+")\\s*\\)?",sl="[\\s|\\(]+("+al+")[,|\\s]+("+al+")[,|\\s]+("+al+")[,|\\s]+("+al+")\\s*\\)?",{CSS_UNIT:new RegExp(al),rgb:new RegExp("rgb"+ol),rgba:new RegExp("rgba"+sl),hsl:new RegExp("hsl"+ol),hsla:new RegExp("hsla"+sl),hsv:new RegExp("hsv"+ol),hsva:new RegExp("hsva"+sl),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ll(t){return!!ul.CSS_UNIT.exec(t)}function fl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return hl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function hl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function cl(t){for(var e,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(t),i=n.byteLength,a=i%3,o=i-a,s="",u=0;u<o;u+=3)s+=r[(16515072&(e=n[u]<<16|n[u+1]<<8|n[u+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1===a?s+=r[(252&(e=n[o]))>>2]+r[(3&e)<<4]+"==":2===a&&(s+=r[(64512&(e=n[o]<<8|n[o+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),s}function dl(t){return t.substr(2+(~-t.lastIndexOf(".")>>>0))}function pl(t,e){if(!t)return t;var r="";if(t.constructor===Array)for(var n=0;n<t.length;n++)r+=e(t[n],n);else r+=e(t,0);return r}function gl(t,e){if(e.constructor!==Array)throw Error("Error of path type! path is not array.");if(!t)return t;var r,n=fl(e);try{for(n.s();!(r=n.n()).done;){if(!(t=t[r.value]))return t}}catch(t){n.e(t)}finally{n.f()}return t}function bl(t){return t?Math.round(t/6e4):0}function ml(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.replace(/[&<>"']/g,(function(t){return e[t]}))}function vl(t){var e="";switch(t.toLowerCase()){case"jpg":case"jpeg":e="image/jpeg";break;case"png":e="image/png";break;case"gif":e="image/gif";break;case"emf":e="image/x-emf";break;case"wmf":e="image/x-wmf";break;case"svg":e="image/svg+xml";break;case"mp4":e="video/mp4";break;case"webm":e="video/webm";break;case"ogg":e="video/ogg";break;case"avi":e="video/avi";break;case"mpg":e="video/mpg";break;case"wmv":e="video/wmv";break;case"mp3":e="audio/mpeg";break;case"wav":e="audio/wav";break;case"tif":case"tiff":e="image/tiff"}return e}function yl(t){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t)}function wl(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function _l(t,e,r,n){var i,a;if(r)a=r;else{var o=gl(e.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);a=o||((o=gl(e.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||gl(e.slideMasterContent,["p:sldMaster","p:clrMap","attrs"]))}var s=t.substr(2);if("phClr"===s&&n)i=n;else{if(a)switch(s){case"tx1":case"tx2":case"bg1":case"bg2":t="a:"+a[s]}else switch(t){case"tx1":t="a:dk1";break;case"tx2":t="a:dk2";break;case"bg1":t="a:lt1";break;case"bg2":t="a:lt2"}var u=gl(e.themeContent,["a:theme","a:themeElements","a:clrScheme",t]);!(i=gl(u,["a:srgbClr","attrs","val"]))&&u&&(i=gl(u,["a:sysClr","attrs","lastClr"]))}return i}function kl(t,e,r){var n=t["p:spPr"]["a:ln"],i=parseInt(gl(n,["attrs","w"]))/12700;isNaN(i)&&(i=n||"obj"!==e?0:1);var a=gl(n,["a:solidFill","a:srgbClr","attrs","val"]);if(!a){var o=gl(n,["a:solidFill","a:schemeClr"]);a=_l("a:"+gl(o,["attrs","val"]),r)}if(!a){var s=gl(t,["p:style","a:lnRef","a:schemeClr"]);if(a=_l("a:"+gl(s,["attrs","val"]),r)){var u=gl(s,["a:shade","attrs","val"]);if(u){u=parseInt(u)/1e5;var l=Lu("#"+a).toHsl();a=Lu({h:l.h,s:l.s,l:l.l*u,a:l.a}).toHex()}}}a=a?"#".concat(a):"#000";var f="solid",h="0";switch(gl(n,["a:prstDash","attrs","val"])){case"solid":f="solid",h="0";break;case"dash":f="dashed",h="5";break;case"dashDot":f="dashed",h="5, 5, 1, 5";break;case"dot":f="dotted",h="1, 5";break;case"lgDash":f="dashed",h="10, 5";break;case"lgDashDotDot":f="dotted",h="10, 5, 1, 5, 1, 5";break;case"sysDash":f="dashed",h="5, 2";break;case"sysDashDot":f="dotted",h="5, 2, 1, 5";break;case"sysDashDotDot":f="dotted",h="5, 2, 1, 5, 1, 5";break;case"sysDot":f="dotted",h="2, 5"}return{borderColor:a,borderWidth:i,borderType:f,strokeDasharray:h}}function xl(t,e,r){return r<0&&(r+=6),r>=6&&(r-=6),r<1?(e-t)*r+t:r<3?e:r<4?(e-t)*(4-r)+t:t}function Sl(t){var e="";return t["a:noFill"]&&(e="NO_FILL"),t["a:solidFill"]&&(e="SOLID_FILL"),t["a:gradFill"]&&(e="GRADIENT_FILL"),t["a:pattFill"]&&(e="PATTERN_FILL"),t["a:blipFill"]&&(e="PIC_FILL"),t["a:grpFill"]&&(e="GROUP_FILL"),e}function Cl(t,e,r){return Al.apply(this,arguments)}function Al(){return Al=r(u.mark((function t(e,r,n){var i,a,o,s,l,f;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r["a:blip"].attrs["r:embed"],"slideBg"===e||"slide"===e?o=gl(n,["slideResObj",a,"target"]):"slideLayoutBg"===e?o=gl(n,["layoutResObj",a,"target"]):"slideMasterBg"===e?o=gl(n,["masterResObj",a,"target"]):"themeBg"===e?o=gl(n,["themeResObj",a,"target"]):"diagramBg"===e&&(o=gl(n,["diagramResObj",a,"target"])),o){t.next=4;break}return t.abrupt("return",o);case 4:if(i=gl(n,["loaded-images",o])){t.next=15;break}if(o=ml(o),"xml"!==(s=o.split(".").pop())){t.next=10;break}return t.abrupt("return",void 0);case 10:return t.next=12,n.zip.file(o).async("arraybuffer");case 12:l=t.sent,f=vl(s),i="data:".concat(f,";base64,").concat(cl(l));case 15:return t.abrupt("return",i);case 16:case"end":return t.stop()}}),t)}))),Al.apply(this,arguments)}function El(t,e,r){return Rl.apply(this,arguments)}function Rl(){return(Rl=r(u.mark((function t(e,r,n){var i,a,o,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Cl(r,e["a:blipFill"],n);case 2:return i=t.sent,a=e["a:blipFill"]["a:blip"],o=gl(a,["a:alphaModFix","attrs"]),s=1,o&&o.amt&&""!==o.amt&&(s=parseInt(o.amt)/1e5),t.abrupt("return",{picBase64:i,opacity:s});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ol(t,e,r,n){if(t){for(var i=t["a:gradFill"],a=i["a:gsLst"]["a:gs"],o=[],s=0;s<a.length;s++){var u=Il(a[s],r["p:sldMaster"]["p:clrMap"].attrs,e,n),l=gl(a[s],["attrs","pos"]);o[s]={pos:l?l/1e3+"%":"",color:u}}var f=i["a:lin"],h=90;return f&&(h=bl(f.attrs.ang),h+=90),{rot:h,colors:o.sort((function(t,e){return parseInt(t.pos)-parseInt(e.pos)}))}}return e?-1===e.indexOf("#")?"#".concat(e):e:null}function Tl(t){return Ml.apply(this,arguments)}function Ml(){return Ml=r(u.mark((function t(e){var r,n,i,a,o,s,l,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,M,L,I,P,B,D,z,j,N,F,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,it,at,ot,st,ut,lt;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.slideContent,n=e.slideLayoutContent,i=e.slideMasterContent,a=gl(r,["p:sld","p:cSld","p:bg","p:bgPr"]),o=gl(r,["p:sld","p:cSld","p:bg","p:bgRef"]),s="#fff",l="color",!a){t.next=29;break}if("SOLID_FILL"!==(f=Sl(a))){t.next=17;break}h=a["a:solidFill"],(d=gl(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?c=d:(p=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),c=p||gl(i,["p:sldMaster","p:clrMap","attrs"])),g=Il(h,c,void 0,e),s=g,t.next=27;break;case 17:if("GRADIENT_FILL"!==f){t.next=22;break}"string"==typeof(b=Ol(a,void 0,i,e))?s=b:b&&(s=b,l="gradient"),t.next=27;break;case 22:if("PIC_FILL"!==f){t.next=27;break}return t.next=25,El(a,"slideBg",e);case 25:s=t.sent,l="image";case 27:t.next=142;break;case 29:if(!o){t.next=37;break}(v=gl(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?m=v:(y=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),m=y||gl(i,["p:sldMaster","p:clrMap","attrs"])),w=Il(o,m,void 0,e),(_=Number(o.attrs.idx))>1e3&&(k=_-1e3,x=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],S=[],Object.keys(x).forEach((function(t){var e=x[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),S.push(n)}else{var i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),S.push(i)}})),(C=S.slice(0)).sort((function(t,e){return t.idex-e.idex})),A=C[k-1],"SOLID_FILL"===(E=Sl(A))?(R=A["a:solidFill"],O=Il(R,m,void 0,e),s=O):"GRADIENT_FILL"===E&&("string"==typeof(T=Ol(A,w,i,e))?s=T:T&&(s=T,l="gradient"))),t.next=142;break;case 37:if(a=gl(n,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),o=gl(n,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),L=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),M=L||gl(i,["p:sldMaster","p:clrMap","attrs"]),!a){t.next=61;break}if("SOLID_FILL"!==(I=Sl(a))){t.next=49;break}P=a["a:solidFill"],B=Il(P,M,void 0,e),s=B,t.next=59;break;case 49:if("GRADIENT_FILL"!==I){t.next=54;break}"string"==typeof(D=Ol(a,void 0,i,e))?s=D:D&&(s=D,l="gradient"),t.next=59;break;case 54:if("PIC_FILL"!==I){t.next=59;break}return t.next=57,El(a,"slideLayoutBg",e);case 57:s=t.sent,l="image";case 59:t.next=142;break;case 61:if(!o){t.next=91;break}if(z=Il(o,M,void 0,e),!((j=Number(o.attrs.idx))>1e3)){t.next=89;break}if(N=j-1e3,F=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],U=[],Object.keys(F).forEach((function(t){var e=F[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),U.push(n)}else{var i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),U.push(i)}})),(H=U.slice(0)).sort((function(t,e){return t.idex-e.idex})),W=H[N-1],"SOLID_FILL"!==(Z=Sl(W))){t.next=79;break}q=W["a:solidFill"],Y=Il(q,M,void 0,e),s=Y,t.next=89;break;case 79:if("GRADIENT_FILL"!==Z){t.next=84;break}"string"==typeof(G=Ol(W,z,i,e))?s=G:G&&(s=G,l="gradient"),t.next=89;break;case 84:if("PIC_FILL"!==Z){t.next=89;break}return t.next=87,El(W,"themeBg",e);case 87:s=t.sent,l="image";case 89:t.next=142;break;case 91:if(a=gl(i,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),o=gl(i,["p:sldMaster","p:cSld","p:bg","p:bgRef"]),V=gl(i,["p:sldMaster","p:clrMap","attrs"]),!a){t.next=114;break}if("SOLID_FILL"!==(K=Sl(a))){t.next=102;break}X=a["a:solidFill"],$=Il(X,V,void 0,e),s=$,t.next=112;break;case 102:if("GRADIENT_FILL"!==K){t.next=107;break}"string"==typeof(J=Ol(a,void 0,i,e))?s=J:J&&(s=J,l="gradient"),t.next=112;break;case 107:if("PIC_FILL"!==K){t.next=112;break}return t.next=110,El(a,"slideMasterBg",e);case 110:s=t.sent,l="image";case 112:t.next=142;break;case 114:if(!o){t.next=142;break}if(Q=Il(o,V,void 0,e),!((tt=Number(o.attrs.idx))>1e3)){t.next=142;break}if(et=tt-1e3,rt=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],nt=[],Object.keys(rt).forEach((function(t){var e=rt[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),nt.push(n)}else{var i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),nt.push(i)}})),(it=nt.slice(0)).sort((function(t,e){return t.idex-e.idex})),at=it[et-1],"SOLID_FILL"!==(ot=Sl(at))){t.next=132;break}st=at["a:solidFill"],ut=Il(st,M,void 0,e),s=ut,t.next=142;break;case 132:if("GRADIENT_FILL"!==ot){t.next=137;break}"string"==typeof(lt=Ol(at,Q,i,e))?s=lt:lt&&(s=lt,l="gradient"),t.next=142;break;case 137:if("PIC_FILL"!==ot){t.next=142;break}return t.next=140,El(at,"themeBg",e);case 140:s=t.sent,l="image";case 142:return t.abrupt("return",{type:l,value:s});case 143:case"end":return t.stop()}}),t)}))),Ml.apply(this,arguments)}function Ll(t,e,r){if(gl(t,["p:spPr","a:noFill"]))return e?"none":"";var n;(n||(n=gl(t,["p:spPr","a:solidFill","a:srgbClr","attrs","val"])),n)||(n=_l("a:"+gl(t,["p:spPr","a:solidFill","a:schemeClr","attrs","val"]),r));n||(n=_l("a:"+gl(t,["p:style","a:fillRef","a:schemeClr","attrs","val"]),r));if(n){n="#".concat(n);var i=parseInt(gl(t,["p:spPr","a:solidFill","a:schemeClr","a:lumMod","attrs","val"]))/1e5,a=parseInt(gl(t,["p:spPr","a:solidFill","a:schemeClr","a:lumOff","attrs","val"]))/1e5;isNaN(i)&&(i=1),isNaN(a)&&(a=0);var o=Lu(n).toHsl(),s=o.l*i+a;return Lu({h:o.h,s:o.s,l:s,a:o.a}).toHexString()}return e?"none":n}function Il(t,e,r,n){if(!t)return t;var i,a,o,s="#ffffff";if(t["a:srgbClr"])s=gl(i=t["a:srgbClr"],["attrs","val"]);else if(t["a:schemeClr"]){s=_l("a:"+gl(i=t["a:schemeClr"],["attrs","val"]),n,e,r)||"#ffffff"}else if(t["a:scrgbClr"]){var u=(i=t["a:scrgbClr"]).attrs,l=-1!==u.r.indexOf("%")?u.r.split("%").shift():u.r,f=-1!==u.g.indexOf("%")?u.g.split("%").shift():u.g,h=-1!==u.b.indexOf("%")?u.b.split("%").shift():u.b;s=wl(Number(l)/100*255)+wl(Number(f)/100*255)+wl(Number(h)/100*255)}else if(t["a:prstClr"]){var c=gl(i=t["a:prstClr"],["attrs","val"]);-1!==(o=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"].indexOf(c))&&(a=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"][o]),s=a}else if(t["a:hslClr"]){var d=(i=t["a:hslClr"]).attrs,p=function(t,e,r){var n,i=2*r-(n=r<=.5?r*(e+1):r+e-r*e);return{r:255*xl(i,n,2+(t/=60)),g:255*xl(i,n,t),b:255*xl(i,n,t-2)}}(Number(d.hue)/1e5,Number(-1!==d.sat.indexOf("%")?d.sat.split("%").shift():d.sat)/100,Number(-1!==d.lum.indexOf("%")?d.lum.split("%").shift():d.lum)/100);s=wl(p.r)+wl(p.g)+wl(p.b)}else if(t["a:sysClr"]){var g=gl(i=t["a:sysClr"],["attrs","lastClr"]);g&&(s=g)}var b=!1,m=parseInt(gl(i,["a:alpha","attrs","val"]))/1e5;if(!isNaN(m)){var v=Lu(s);v.setAlpha(m),s=v.toHex8(),b=!0}var y=parseInt(gl(i,["a:hueMod","attrs","val"]))/1e5;isNaN(y)||(s=function(t,e,r){var n=Lu(t).toHsl(),i=n.h*e;return i>=360&&(i-=360),r?Lu({h:i,s:n.s,l:n.l,a:n.a}).toHex8():Lu({h:i,s:n.s,l:n.l,a:n.a}).toHex()}(s,y,b));var w=parseInt(gl(i,["a:lumMod","attrs","val"]))/1e5;isNaN(w)||(s=function(t,e,r){var n=Lu(t).toHsl(),i=n.l*e;return i>=1&&(i=1),r?Lu({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,w,b));var _=parseInt(gl(i,["a:lumOff","attrs","val"]))/1e5;isNaN(_)||(s=function(t,e,r){var n=Lu(t).toHsl(),i=e+n.l;return i>=1?r?Lu({h:n.h,s:n.s,l:1,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:1,a:n.a}).toHex():r?Lu({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,_,b));var k=parseInt(gl(i,["a:satMod","attrs","val"]))/1e5;isNaN(k)||(s=function(t,e,r){var n=Lu(t).toHsl(),i=n.s*e;return i>=1&&(i=1),r?Lu({h:n.h,s:i,l:n.l,a:n.a}).toHex8():Lu({h:n.h,s:i,l:n.l,a:n.a}).toHex()}(s,k,b));var x=parseInt(gl(i,["a:shade","attrs","val"]))/1e5;isNaN(x)||(s=function(t,e,r){var n=Lu(t).toHsl();e>=1&&(e=1);var i=Math.min(n.l*e,1);return r?Lu({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,x,b));var S=parseInt(gl(i,["a:tint","attrs","val"]))/1e5;return isNaN(S)||(s=function(t,e,r){var n=Lu(t).toHsl();e>=1&&(e=1);var i=n.l*e+(1-e);return r?Lu({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,S,b)),s&&-1===s.indexOf("#")&&(s="#"+s),s}function Pl(t){var e=[];if(!t)return e;if(t["c:xVal"]){var r=[];pl(t["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r),r=[],pl(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r)}else pl(t,(function(t,r){var n=[],i=gl(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,a={};return gl(t,["c:cat","c:strRef","c:strCache","c:pt"])?pl(t["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],(function(t){return a[t.attrs.idx]=t["c:v"],""})):gl(t,["c:cat","c:numRef","c:numCache","c:pt"])&&pl(t["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return a[t.attrs.idx]=t["c:v"],""})),gl(t,["c:val","c:numRef","c:numCache","c:pt"])&&pl(t["c:val"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return n.push({x:t.attrs.idx,y:parseFloat(t["c:v"])}),""})),e.push({key:i,values:n,xlabels:a}),""}));return e}function Bl(t){var e=null;for(var r in t)switch(r){case"c:lineChart":e={type:"lineChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"]),marker:!!t[r]["c:marker"]};break;case"c:line3DChart":e={type:"line3DChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"])};break;case"c:barChart":e={type:"barChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"]),barDir:gl(t[r],["c:barDir","attrs","val"])};break;case"c:bar3DChart":e={type:"bar3DChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"]),barDir:gl(t[r],["c:barDir","attrs","val"])};break;case"c:pieChart":e={type:"pieChart",data:Pl(t[r]["c:ser"])};break;case"c:pie3DChart":e={type:"pie3DChart",data:Pl(t[r]["c:ser"])};break;case"c:doughnutChart":e={type:"doughnutChart",data:Pl(t[r]["c:ser"]),holeSize:gl(t[r],["c:holeSize","attrs","val"])};break;case"c:areaChart":e={type:"areaChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"])};break;case"c:area3DChart":e={type:"area3DChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"])};break;case"c:scatterChart":e={type:"scatterChart",data:Pl(t[r]["c:ser"]),style:gl(t[r],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":e={type:"bubbleChart",data:Pl(t[r]["c:ser"])};break;case"c:radarChart":e={type:"radarChart",data:Pl(t[r]["c:ser"]),style:gl(t[r],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":e={type:"surfaceChart",data:Pl(t[r]["c:ser"])};break;case"c:surface3DChart":e={type:"surface3DChart",data:Pl(t[r]["c:ser"])};break;case"c:stockChart":e={type:"stockChart",data:Pl(t[r]["c:ser"])}}return e}function Dl(t,e,r,n){var i=gl(t,["a:pPr","attrs","algn"]);if(i||(i=gl(e,["a:pPr","attrs","algn"])),!i)if("title"===r||"ctrTitle"===r||"subTitle"===r){var a=1,o=gl(e,["a:pPr","attrs","lvl"]);o&&(a=parseInt(o)+1);var s="a:lvl"+a+"pPr";(i=gl(n,["slideLayoutTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"]))||(i=gl(n,["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"])),i||(i=gl(n,["slideMasterTextStyles","p:titleStyle",s,"attrs","algn"])),i||"subTitle"!==r||(i=gl(n,["slideMasterTextStyles","p:bodyStyle",s,"attrs","algn"]))}else i=gl(n,"body"===r?["slideMasterTextStyles","p:bodyStyle","a:lvl1pPr","attrs","algn"]:["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle","a:lvl1pPr","attrs","algn"]);var u="left";if(i)switch(i){case"l":u="left";break;case"r":u="right";break;case"ctr":u="center";break;case"just":case"dist":u="justify";break;default:u="inherit"}return u}var zl=72/914400;function jl(t,e,r){var n;return t?n=t["a:off"].attrs:e?n=e["a:off"].attrs:r&&(n=r["a:off"].attrs),n?{top:parseInt(n.y)*zl,left:parseInt(n.x)*zl}:{top:0,left:0}}function Nl(t,e,r){var n;return t?n=t["a:ext"].attrs:e?n=e["a:ext"].attrs:r&&(n=r["a:ext"].attrs),n?{width:parseInt(n.cx)*zl,height:parseInt(n.cy)*zl}:{width:0,height:0}}function Fl(t,e){var r=Il(t,void 0,void 0,e),n=t.attrs,i=n.dir?parseInt(n.dir)/6e4:0,a=parseInt(n.dist)*zl,o=n.blurRad?parseInt(n.blurRad)*zl:"",s=a*Math.sin(i*Math.PI/180);return{h:a*Math.cos(i*Math.PI/180),v:s,blur:o,color:r}}function Ul(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Hl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Hl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Wl(t,e,r,n,i){if(!t)return"";var a,o="",s=t["a:p"],u="",l=Ul(s.constructor===Array?s:[s]);try{for(l.s();!(a=l.n()).done;){var f=a.value,h=f["a:r"],c=f["a:fld"],d=f["a:br"];h&&(h=h.constructor===Array?h:[h],c&&(c=c.constructor===Array?c:[c],h=h.concat(c)),d&&((d=d.constructor===Array?d:[d]).forEach((function(t){return t.type="br"})),d.length>1&&d.shift(),(h=h.concat(d)).sort((function(t,e){return!t.attrs||!e.attrs||t.attrs.order-e.attrs.order}))));var p=Dl(f,e,n,i),g=Zl(f);if(g?(u?u&&u!==g&&(o+="</".concat(u,">"),o+="<".concat(g,">"),u=g):(o+="<".concat(g,">"),u=g),o+='<li style="text-align: '.concat(p,';">')):(u&&(o+="</".concat(u,">"),u=""),o+='<p style="text-align: '.concat(p,';">')),h){var b,m=Ul(h);try{for(m.s();!(b=m.n()).done;){o+=ql(b.value,r,n,i)}}catch(t){m.e(t)}finally{m.f()}}else o+=ql(f,r,n,i);o+=g?"</li>":"</p>"}}catch(t){l.e(t)}finally{l.f()}return o}function Zl(t){var e=t["a:pPr"];return e?e["a:buChar"]?"ul":e["a:buAutoNum"]?"ol":"":""}function ql(t,e,r,n){var i=n.slideMasterTextStyles,a=t["a:t"];"string"!=typeof a&&(a=gl(t,["a:fld","a:t"])),"string"!=typeof a&&(a="&nbsp;");var o="",s=function(t){var e=gl(t,["a:rPr","a:solidFill","a:srgbClr","attrs","val"]);return e?"#".concat(e):""}(t),u=function(t,e,r,n){var i,a;if(gl(t,["a:rPr","attrs","sz"])&&(i=gl(t,["a:rPr","attrs","sz"])/100),isNaN(i)||!i){var o=gl(e,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);i=parseInt(o)/100}return!isNaN(i)&&i||("title"===r||"subTitle"===r||"ctrTitle"===r?a=gl(n,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"body"===r?a=gl(n,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"dt"===r||"sldNum"===r?a="1200":r||(a=gl(n,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),a&&(i=parseInt(a)/100)),gl(t,["a:rPr","attrs","baseline"])&&!isNaN(i)&&(i-=10),(i=isNaN(i)||!i?18:i)+"pt"}(t,e,r,i),l=function(t,e,r){var n=gl(t,["a:rPr","a:latin","attrs","typeface"]);if(!n){var i=gl(r.themeContent,["a:theme","a:themeElements","a:fontScheme"]);n=gl(i,"title"===e||"subTitle"===e||"ctrTitle"===e?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return n||""}(t,r,n),f=function(t){return"1"===gl(t,["a:rPr","attrs","b"])?"bold":""}(t),h=function(t){return"1"===gl(t,["a:rPr","attrs","i"])?"italic":""}(t),c=function(t){return"sng"===gl(t,["a:rPr","attrs","u"])?"underline":""}(t),d=function(t){return"sngStrike"===gl(t,["a:rPr","attrs","strike"])?"line-through":""}(t),p=function(t){var e=gl(t,["a:rPr","attrs","spc"]);return e?parseInt(e)/100+"pt":""}(t),g=function(t,e){var r=gl(t,["a:rPr","a:effectLst","a:outerShdw"]);if(r){var n=Fl(r,e);if(n){var i=n.h,a=n.v,o=n.blur,s=n.color;if(!isNaN(a)&&!isNaN(i))return i+"pt "+a+"pt "+(o?o+"pt":"")+" "+s}}return""}(t,n),b=function(t){var e=gl(t,["a:rPr","attrs","baseline"]);return e?parseInt(e)>0?"super":"sub":""}(t);s&&(o+="color: ".concat(s,";")),u&&(o+="font-size: ".concat(u,";")),l&&(o+="font-family: ".concat(l,";")),f&&(o+="font-weight: ".concat(f,";")),h&&(o+="font-style: ".concat(h,";")),c&&(o+="text-decoration: ".concat(c,";")),d&&(o+="text-decoration-line: ".concat(d,";")),p&&(o+="letter-spacing: ".concat(p,";")),b&&(o+="vertical-align: ".concat(b,";")),g&&(o+="text-shadow: ".concat(g,";"));var m=gl(t,["a:rPr","a:hlinkClick","attrs","r:id"]);if(m){var v=n.slideResObj[m].target;return'<span style="'.concat(o,'"><a href="').concat(v,'" target="_blank">').concat(a.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;"),"</a></span>")}return'<span style="'.concat(o,'">').concat(a.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;"),"</span>")}function Yl(t,e,r,n,i,a,o){var s,u=i;if(a>=i)for(;u<=a;){var l=u*(Math.PI/180),f=t+Math.cos(l)*r,h=e+Math.sin(l)*n;u===i&&(s=" M"+f+" "+h),s+=" L"+f+" "+h,u++}else for(;u>a;){var c=u*(Math.PI/180),d=t+Math.cos(c)*r,p=e+Math.sin(c)*n;u===i&&(s=" M "+d+" "+p),s+=" L "+d+" "+p,u--}return s+=o?" z":""}function Gl(t,e,r,n){var i,a,o,s,u,l=gl(t,["attrs","rowSpan"]),f=gl(t,["attrs","gridSpan"]),h=gl(t,["attrs","vMerge"]),c=gl(t,["attrs","hMerge"]),d=gl(t,["a:tcPr"]);d&&(i=Ll({"p:spPr":d},void 0,n));i||(r&&(s=gl(e,[r,"a:tcStyle","a:fill","a:solidFill"])),s&&(i=Il(s,void 0,void 0,n)));return r&&(u=gl(e,[r,"a:tcTxStyle"])),u&&(a=Il(u,void 0,void 0,n),"on"===gl(u,["attrs","b"])&&(o=!0)),{fillColor:i,fontColor:a,fontBold:o,rowSpan:l?+l:void 0,colSpan:f?+f:void 0,vMerge:h?+h:void 0,hMerge:c?+c:void 0}}function Vl(t,e,r,n,i){var a,o,s;if(n&&n["a:wholeTbl"]){var u=gl(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(u){var l=Il(u,void 0,void 0,i);l&&(a=l)}var f=gl(n,["a:wholeTbl","a:tcTxStyle"]);if(f){var h=Il(f,void 0,void 0,i);h&&(o=h),"on"===gl(f,["attrs","b"])&&(s=!0)}}if(0===e&&1===r.isFrstRowAttr&&n){var c=gl(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(c){var d=Il(c,void 0,void 0,i);d&&(a=d)}var p=gl(n,["a:firstRow","a:tcTxStyle"]);if(p){var g=Il(p,void 0,void 0,i);g&&(o=g),"on"===gl(p,["attrs","b"])&&(s=!0)}}else if(e>0&&1===r.isBandRowAttr&&n){if(a="",e%2==0&&n["a:band2H"]){var b=gl(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(b){var m=Il(b,void 0,void 0,i);m&&(a=m)}var v=gl(n,["a:band2H","a:tcTxStyle"]);if(v){var y=Il(v,void 0,void 0,i);y&&(o=y)}"on"===gl(v,["attrs","b"])&&(s=!0)}if(e%2!=0&&n["a:band1H"]){var w=gl(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(w){var _=Il(w,void 0,void 0,i);_&&(a=_)}var k=gl(n,["a:band1H","a:tcTxStyle"]);if(k){var x=Il(k,void 0,void 0,i);x&&(o=x),"on"===gl(k,["attrs","b"])&&(s=!0)}}}if(e===t.length-1&&1===r.isLstRowAttr&&n){var S=gl(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(S){var C=Il(S,void 0,void 0,i);C&&(a=C)}var A=gl(n,["a:lastRow","a:tcTxStyle"]);if(A){var E=Il(A,void 0,void 0,i);E&&(o=E),"on"===gl(A,["attrs","b"])&&(s=!0)}}return{fillColor:a,fontColor:o,fontBold:s}}function Kl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xl(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Kl(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Jl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Jl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ql(t){return tf.apply(this,arguments)}function tf(){return(tf=r(u.mark((function t(e){var r,n,i,a,o,s,l,f,h,c,d,p;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,bu.loadAsync(e);case 3:return n=t.sent,t.next=6,ef(n);case 6:return i=t.sent,t.next=9,nf(n);case 9:return a=t.sent,o=a.width,s=a.height,l=a.defaultTextStyle,t.next=15,of(n);case 15:f=t.sent,h=$l(i.slides),t.prev=17,h.s();case 19:if((c=h.n()).done){t.next=27;break}return d=c.value,t.next=23,uf(n,d,f,l);case 23:p=t.sent,r.push(p);case 25:t.next=19;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(17),h.e(t.t0);case 32:return t.prev=32,h.f(),t.finish(32);case 35:return t.abrupt("return",{slides:r,size:{width:o,height:s}});case 36:case"end":return t.stop()}}),t,null,[[17,29,32,35]])})))).apply(this,arguments)}function ef(t){return rf.apply(this,arguments)}function rf(){return(rf=r(u.mark((function t(e){var r,n,i,a,o,s,l,f;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"[Content_Types].xml");case 2:r=t.sent,n=r.Types.Override,i=[],a=[],o=$l(n),t.prev=7,o.s();case 9:if((s=o.n()).done){t.next=20;break}l=s.value,t.t0=l.attrs.ContentType,t.next="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"===t.t0?14:"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"===t.t0?16:18;break;case 14:return i.push(l.attrs.PartName.substr(1)),t.abrupt("break",18);case 16:return a.push(l.attrs.PartName.substr(1)),t.abrupt("break",18);case 18:t.next=9;break;case 20:t.next=25;break;case 22:t.prev=22,t.t1=t.catch(7),o.e(t.t1);case 25:return t.prev=25,o.f(),t.finish(25);case 28:return f=function(t,e){return+/(\d+)\.xml/.exec(t)[1]-+/(\d+)\.xml/.exec(e)[1]},i=i.sort(f),a=a.sort(f),t.abrupt("return",{slides:i,slideLayouts:a});case 32:case"end":return t.stop()}}),t,null,[[7,22,25,28]])})))).apply(this,arguments)}function nf(t){return af.apply(this,arguments)}function af(){return(af=r(u.mark((function t(e){var r,n,i;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"ppt/presentation.xml");case 2:return r=t.sent,n=r["p:presentation"]["p:sldSz"].attrs,i=r["p:presentation"]["p:defaultTextStyle"],t.abrupt("return",{width:parseInt(n.cx)*zl,height:parseInt(n.cy)*zl,defaultTextStyle:i});case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function of(t){return sf.apply(this,arguments)}function sf(){return(sf=r(u.mark((function t(e){var r,n,i,a,o,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"ppt/_rels/presentation.xml.rels");case 2:if(r=t.sent,(n=r.Relationships.Relationship).constructor!==Array){t.next=25;break}a=$l(n),t.prev=6,a.s();case 8:if((o=a.n()).done){t.next=15;break}if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"!==(s=o.value).attrs.Type){t.next=13;break}return i=s.attrs.Target,t.abrupt("break",15);case 13:t.next=8;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(6),a.e(t.t0);case 20:return t.prev=20,a.f(),t.finish(20);case 23:t.next=26;break;case 25:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(i=n.attrs.Target);case 26:if(i){t.next=28;break}throw Error("Can't open theme file.");case 28:return t.next=30,Eu(e,"ppt/"+i);case 30:return t.abrupt("return",t.sent);case 31:case"end":return t.stop()}}),t,null,[[6,17,20,23]])})))).apply(this,arguments)}function uf(t,e,r,n){return lf.apply(this,arguments)}function lf(){return lf=r(u.mark((function t(e,r,n,i){var a,o,s,l,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,M,L,I,P,B,D,z,j,N,F,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,it,at,ot,st;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=r.replace("slides/slide","slides/_rels/slide")+".rels",t.next=3,Eu(e,a);case 3:if(o=t.sent,s=o.Relationships.Relationship,l="",f="",h={},s.constructor!==Array){t.next=35;break}c=$l(s),t.prev=10,c.s();case 12:if((d=c.n()).done){t.next=25;break}p=d.value,t.t0=p.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"===t.t0?17:"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"===t.t0?19:("http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"===t.t0||t.t0,22);break;case 17:return l=p.attrs.Target.replace("../","ppt/"),t.abrupt("break",23);case 19:return f=p.attrs.Target.replace("../","ppt/"),h[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")},t.abrupt("break",23);case 22:h[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")};case 23:t.next=12;break;case 25:t.next=30;break;case 27:t.prev=27,t.t1=t.catch(10),c.e(t.t1);case 30:return t.prev=30,c.f(),t.finish(30);case 33:t.next=36;break;case 35:l=s.attrs.Target.replace("../","ppt/");case 36:return t.next=38,Eu(e,l);case 38:return g=t.sent,t.next=41,ff(g);case 41:return b=t.sent,m=l.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",t.next=45,Eu(e,m);case 45:if(v=t.sent,s=v.Relationships.Relationship,y="",w={},s.constructor!==Array){t.next=73;break}_=$l(s),t.prev=51,_.s();case 53:if((k=_.n()).done){t.next=63;break}x=k.value,t.t2=x.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"===t.t2?58:60;break;case 58:return y=x.attrs.Target.replace("../","ppt/"),t.abrupt("break",61);case 60:w[x.attrs.Id]={type:x.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:x.attrs.Target.replace("../","ppt/")};case 61:t.next=53;break;case 63:t.next=68;break;case 65:t.prev=65,t.t3=t.catch(51),_.e(t.t3);case 68:return t.prev=68,_.f(),t.finish(68);case 71:t.next=74;break;case 73:y=s.attrs.Target.replace("../","ppt/");case 74:return t.next=76,Eu(e,y);case 76:return S=t.sent,C=gl(S,["p:sldMaster","p:txStyles"]),A=ff(S),E=y.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",t.next=82,Eu(e,E);case 82:if(R=t.sent,s=R.Relationships.Relationship,O="",T={},s.constructor!==Array){t.next=109;break}M=$l(s),t.prev=88,M.s();case 90:if((L=M.n()).done){t.next=99;break}I=L.value,t.t4=I.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.t4?95:96;break;case 95:return t.abrupt("break",97);case 96:T[I.attrs.Id]={type:I.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:I.attrs.Target.replace("../","ppt/")};case 97:t.next=90;break;case 99:t.next=104;break;case 101:t.prev=101,t.t5=t.catch(88),M.e(t.t5);case 104:return t.prev=104,M.f(),t.finish(104);case 107:t.next=110;break;case 109:O=s.attrs.Target.replace("../","ppt/");case 110:if(P={},!O){t.next=118;break}return B=O.split("/").pop(),D=O.replace(B,"_rels/"+B)+".rels",t.next=116,Eu(e,D);case 116:if((z=t.sent)&&(s=z.Relationships.Relationship))if(s.constructor===Array){j=$l(s);try{for(j.s();!(N=j.n()).done;)F=N.value,P[F.attrs.Id]={type:F.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:F.attrs.Target.replace("../","ppt/")}}catch(t){j.e(t)}finally{j.f()}}else P[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 118:if(U={},H={},!f){t.next=131;break}return W=f.split("/").pop(),Z=f.replace(W,"_rels/"+W)+".rels",t.next=125,Eu(e,f);case 125:return(H=t.sent)&&H&&H&&(q=(q=JSON.stringify(H)).replace(/dsp:/g,"p:"),H=JSON.parse(q)),t.next=129,Eu(e,Z);case 129:if(Y=t.sent)if((s=Y.Relationships.Relationship).constructor===Array){G=$l(s);try{for(G.s();!(V=G.n()).done;)K=V.value,U[K.attrs.Id]={type:K.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:K.attrs.Target.replace("../","ppt/")}}catch(t){G.e(t)}finally{G.f()}}else U[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 131:return t.next=133,Eu(e,"ppt/tableStyles.xml");case 133:return X=t.sent,t.next=136,Eu(e,r);case 136:return $=t.sent,J=$["p:sld"]["p:cSld"]["p:spTree"],Q={zip:e,slideLayoutContent:g,slideLayoutTables:b,slideMasterContent:S,slideMasterTables:A,slideContent:$,tableStyles:X,slideResObj:h,slideMasterTextStyles:C,layoutResObj:w,masterResObj:T,themeContent:n,themeResObj:P,digramFileContent:H,diagramResObj:U,defaultTextStyle:i},t.next=141,Tl(Q);case 141:tt=t.sent,et=[],t.t6=u.keys(J);case 144:if((t.t7=t.t6()).done){t.next=174;break}if(rt=t.t7.value,J[rt].constructor!==Array){t.next=168;break}nt=$l(J[rt]),t.prev=148,nt.s();case 150:if((it=nt.n()).done){t.next=158;break}return at=it.value,t.next=154,hf(rt,at,Q,"slide");case 154:(ot=t.sent)&&et.push(ot);case 156:t.next=150;break;case 158:t.next=163;break;case 160:t.prev=160,t.t8=t.catch(148),nt.e(t.t8);case 163:return t.prev=163,nt.f(),t.finish(163);case 166:t.next=172;break;case 168:return t.next=170,hf(rt,J[rt],Q,"slide");case 170:(st=t.sent)&&et.push(st);case 172:t.next=144;break;case 174:return t.abrupt("return",{fill:tt,elements:et});case 175:case"end":return t.stop()}}),t,null,[[10,27,30,33],[51,65,68,71],[88,101,104,107],[148,160,163,166]])}))),lf.apply(this,arguments)}function ff(t){var e=t[Object.keys(t)[0]]["p:cSld"]["p:spTree"],r={},n={},i={};for(var a in e)if("p:nvGrpSpPr"!==a&&"p:grpSpPr"!==a){var o=e[a];if(o.constructor===Array){var s,u=$l(o);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=l["p:nvSpPr"],h=gl(f,["p:cNvPr","attrs","id"]),c=gl(f,["p:nvPr","p:ph","attrs","idx"]),d=gl(f,["p:nvPr","p:ph","attrs","type"]);h&&(r[h]=l),c&&(n[c]=l),d&&(i[d]=l)}}catch(t){u.e(t)}finally{u.f()}}else{var p=o["p:nvSpPr"],g=gl(p,["p:cNvPr","attrs","id"]),b=gl(p,["p:nvPr","p:ph","attrs","idx"]),m=gl(p,["p:nvPr","p:ph","attrs","type"]);g&&(r[g]=o),b&&(n[b]=o),m&&(i[m]=o)}}return{idTable:r,idxTable:n,typeTable:i}}function hf(t,e,r,n){return cf.apply(this,arguments)}function cf(){return(cf=r(u.mark((function t(e,r,n,i){var a;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=e,t.next="p:sp"===t.t0?3:"p:cxnSp"===t.t0?5:"p:pic"===t.t0?7:"p:graphicFrame"===t.t0?9:"p:grpSp"===t.t0?13:"mc:AlternateContent"===t.t0?17:21;break;case 3:return a=gf(r,n,i),t.abrupt("break",21);case 5:return a=bf(r,n),t.abrupt("break",21);case 7:return a=vf(r,n,i),t.abrupt("break",21);case 9:return t.next=11,wf(r,n,i);case 11:case 15:case 19:return a=t.sent,t.abrupt("break",21);case 13:return t.next=15,df(r,n,i);case 17:return t.next=19,df(gl(r,["mc:Fallback"]),n,i);case 21:return t.abrupt("return",a);case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function df(t,e,r){return pf.apply(this,arguments)}function pf(){return pf=r(u.mark((function t(e,r,n){var i,a,o,s,l,f,h,c,d,p,g,b,m,v,y,w,_,k;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=gl(e,["p:grpSpPr","a:xfrm"])){t.next=3;break}return t.abrupt("return",null);case 3:a=parseInt(i["a:off"].attrs.x)*zl,o=parseInt(i["a:off"].attrs.y)*zl,s=parseInt(i["a:chOff"].attrs.x)*zl,l=parseInt(i["a:chOff"].attrs.y)*zl,f=parseInt(i["a:ext"].attrs.cx)*zl,h=parseInt(i["a:ext"].attrs.cy)*zl,c=parseInt(i["a:chExt"].attrs.cx)*zl,d=parseInt(i["a:chExt"].attrs.cy)*zl,p=f/c,g=h/d,b=[],t.t0=u.keys(e);case 15:if((t.t1=t.t0()).done){t.next=45;break}if(m=t.t1.value,e[m].constructor!==Array){t.next=39;break}v=$l(e[m]),t.prev=19,v.s();case 21:if((y=v.n()).done){t.next=29;break}return w=y.value,t.next=25,hf(m,w,r,n);case 25:(_=t.sent)&&b.push(_);case 27:t.next=21;break;case 29:t.next=34;break;case 31:t.prev=31,t.t2=t.catch(19),v.e(t.t2);case 34:return t.prev=34,v.f(),t.finish(34);case 37:t.next=43;break;case 39:return t.next=41,hf(m,e[m],r,n);case 41:(k=t.sent)&&b.push(k);case 43:t.next=15;break;case 45:return t.abrupt("return",{type:"group",top:o,left:a,width:f,height:h,elements:b.map((function(t){return Xl(Xl({},t),{},{left:(t.left-s)*p,top:(t.top-l)*g,width:t.width*p,height:t.height*g})}))});case 46:case"end":return t.stop()}}),t,null,[[19,31,34,37]])}))),pf.apply(this,arguments)}function gf(t,e,r){var n,i,a=gl(t,["p:nvSpPr","p:cNvPr","attrs","name"]),o=gl(t,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),s=gl(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]);(s?(n=e.slideLayoutTables.typeTable[s],i=e.slideMasterTables.typeTable[s]):o&&(n=e.slideLayoutTables.idxTable[o],i=e.slideMasterTables.idxTable[o]),s)||"1"===gl(t,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])&&(s="text");return s||(s=gl(n,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=gl(i,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s="diagramBg"===r?"diagram":"obj"),mf(t,n,i,a,s,e)}function bf(t,e){return mf(t,void 0,void 0,t["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,void 0===t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:t["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,e)}function mf(t,e,r,n,i,a){var o,s=["p:spPr","a:xfrm"],u=gl(t,s),l=gl(e,s),f=gl(r,s),h=gl(t,["p:spPr","a:prstGeom","attrs","prst"]),c=gl(t,["p:spPr","a:custGeom"]),d=jl(u,l,f),p=d.top,g=d.left,b=Nl(u,l,f),m=b.width,v=b.height,y="1"===gl(u,["attrs","flipV"]),w="1"===gl(u,["attrs","flipH"]),_=bl(gl(u,["attrs","rot"])),k=gl(t,["p:txXfrm"]);if(k){var x=gl(k,["attrs","rot"]);x&&(o=bl(x)+90)}else o=_;var S="";t["p:txBody"]&&(S=Wl(t["p:txBody"],t,e,i,a));var C,A=kl(t,i,a),E=A.borderColor,R=A.borderWidth,O=A.borderType,T=A.strokeDasharray,M=Ll(t,void 0,a)||"",L=gl(t,["p:spPr","a:effectLst","a:outerShdw"]);L&&(C=Fl(L,a));var I=function(t,e,r){var n=gl(t,["p:txBody","a:bodyPr","attrs","anchor"]);return n||(n=gl(e,["p:txBody","a:bodyPr","attrs","anchor"]))||(n=gl(r,["p:txBody","a:bodyPr","attrs","anchor"]))||(n="t"),"ctr"===n?"mid":"b"===n?"down":"up"}(t,e,r),P="eaVert"===gl(t,["p:txBody","a:bodyPr","attrs","vert"]),B={left:g,top:p,width:m,height:v,borderColor:E,borderWidth:R,borderType:O,borderStrokeDasharray:T,fillColor:M,content:S,isFlipV:y,isFlipH:w,rotate:_,vAlign:I,name:n};if(C&&(B.shadow=C),c&&"diagram"!==i){var D=gl(u,["a:ext","attrs"]),z=function(t,e,r){var n=gl(t,["a:pathLst"]),i=gl(n,["a:path"]);Array.isArray(i)&&(i=i.pop());var a=parseInt(i.attrs.w),o=parseInt(i.attrs.h),s=0===a?0:1/a*e,u=0===o?0:1/o*r,l="",f=gl(i,["a:moveTo"]),h=i["a:lnTo"],c=i["a:cubicBezTo"],d=i["a:arcTo"],p=gl(i,["a:close"]);Array.isArray(f)||(f=[f]);var g=[];if(f.length>0){if(Object.keys(f).forEach((function(t){var e=f[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,i=r.y,a=r.order;g.push({type:"movto",x:n,y:i,order:a})}))})),h&&Object.keys(h).forEach((function(t){var e=h[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,i=r.y,a=r.order;g.push({type:"lnto",x:n,y:i,order:a})}))})),c){var b=[];Array.isArray(c)||(c=[c]),Object.keys(c).forEach((function(t){b.push(c[t]["a:pt"])})),b.forEach((function(t){var e=[];t.forEach((function(t){var r={x:t.attrs.x,y:t.attrs.y};e.push(r)}));var r=t[0].attrs.order;g.push({type:"cubicBezTo",cubBzPt:e,order:r})}))}if(d){var m=d.attrs,v=m.order,y=m.hR,w=m.wR,_=m.stAng,k=m.swAng,x=0,S=0,C=gl(d,["a:pt","attrs"]);C&&(x=C.x,S=C.y),g.push({type:"arcTo",hR:y,wR:w,stAng:_,swAng:k,shftX:x,shftY:S,order:v})}p&&(Array.isArray(p)||(p=[p]),Object.keys(p).forEach((function(){g.push({type:"close",order:1/0})}))),g.sort((function(t,e){return t.order-e.order}));for(var A=0;A<g.length;){if("movto"===g[A].type)l+=" M"+parseInt(g[A].x)*s+","+parseInt(g[A].y)*u;else if("lnto"===g[A].type)l+=" L"+parseInt(g[A].x)*s+","+parseInt(g[A].y)*u;else if("cubicBezTo"===g[A].type)l+=" C"+parseInt(g[A].cubBzPt[0].x)*s+","+parseInt(g[A].cubBzPt[0].y)*u+" "+parseInt(g[A].cubBzPt[1].x)*s+","+parseInt(g[A].cubBzPt[1].y)*u+" "+parseInt(g[A].cubBzPt[2].x)*s+","+parseInt(g[A].cubBzPt[2].y)*u;else if("arcTo"===g[A].type){var E=parseInt(g[A].hR)*s,R=parseInt(g[A].wR)*u,O=parseInt(g[A].stAng)/6e4;l+=Yl(R,E,R,E,O,O+parseInt(g[A].swAng)/6e4,!1)}else"close"===g[A].type&&(l+="z");A++}}return l}(c,parseInt(D.cx)*zl,parseInt(D.cy)*zl);return Xl(Xl({},B),{},{type:"shape",shapType:"custom",path:z})}return Xl(Xl({},B),{},!h||"obj"!==i&&i?{type:"text",isVertical:P,rotate:o}:{type:"shape",shapType:h})}function vf(t,e,r){return yf.apply(this,arguments)}function yf(){return yf=r(u.mark((function t(e,r,n){var i,a,o,s,l,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,M,L,I,P,B,D,z;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="slideMasterBg"===n?r.masterResObj:"slideLayoutBg"===n?r.layoutResObj:r.slideResObj,a=e["p:blipFill"]["a:blip"].attrs["r:embed"],o=i[a].target,s=dl(o).toLowerCase(),l=r.zip,t.next=7,l.file(o).async("arraybuffer");case 7:if(f=t.sent,h=e["p:spPr"]["a:xfrm"],c=vl(s),d=jl(h,void 0,void 0),p=d.top,g=d.left,b=Nl(h,void 0,void 0),m=b.width,v=b.height,y="data:".concat(c,";base64,").concat(cl(f)),w="1"===gl(h,["attrs","flipV"]),_="1"===gl(h,["attrs","flipH"]),k=0,(x=gl(e,["p:spPr","a:xfrm","attrs","rot"]))&&(k=bl(x)),S=gl(e,["p:nvPicPr","p:nvPr","a:videoFile"]),M=!1,!S){t.next=35;break}if(C=S.attrs["r:link"],!yl(A=i[C].target)){t.next=28;break}A=ml(A),M=!0,t.next=35;break;case 28:if("mp4"!==(E=dl(A).toLowerCase())&&"webm"!==E&&"ogg"!==E){t.next=35;break}return t.next=32,l.file(A).async("arraybuffer");case 32:O=t.sent,R=vl(E),T=URL.createObjectURL(new Blob([O],{type:R}));case 35:if(!(L=gl(e,["p:nvPicPr","p:nvPr","a:audioFile"]))){t.next=45;break}if(I=L.attrs["r:link"],P=i[I].target,"mp3"!==(B=dl(P).toLowerCase())&&"wav"!==B&&"ogg"!==B){t.next=45;break}return t.next=43,l.file(P).async("arraybuffer");case 43:D=t.sent,z=URL.createObjectURL(new Blob([D]));case 45:if(!S||M){t.next=47;break}return t.abrupt("return",{type:"video",top:p,left:g,width:m,height:v,rotate:k,blob:T});case 47:if(!S||!M){t.next=49;break}return t.abrupt("return",{type:"video",top:p,left:g,width:m,height:v,rotate:k,src:A});case 49:if(!L){t.next=51;break}return t.abrupt("return",{type:"audio",top:p,left:g,width:m,height:v,rotate:k,blob:z});case 51:return t.abrupt("return",{type:"image",top:p,left:g,width:m,height:v,rotate:k,src:y,isFlipV:w,isFlipH:_});case 52:case"end":return t.stop()}}),t)}))),yf.apply(this,arguments)}function wf(t,e,r){return _f.apply(this,arguments)}function _f(){return _f=r(u.mark((function t(e,r,n){var i,a,o;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=gl(e,["a:graphic","a:graphicData","attrs","uri"]),t.t0=i,t.next="http://schemas.openxmlformats.org/drawingml/2006/table"===t.t0?4:"http://schemas.openxmlformats.org/drawingml/2006/chart"===t.t0?6:"http://schemas.openxmlformats.org/drawingml/2006/diagram"===t.t0?10:"http://schemas.openxmlformats.org/presentationml/2006/ole"===t.t0?12:15;break;case 4:return a=kf(e,r),t.abrupt("break",15);case 6:return t.next=8,xf(e,r);case 8:return a=t.sent,t.abrupt("break",15);case 10:return a=Cf(e,r),t.abrupt("break",15);case 12:return(o=gl(e,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))?df(o,r,n):o=gl(e,["a:graphic","a:graphicData","p:oleObj"]),t.abrupt("break",15);case 15:return t.abrupt("return",a);case 16:case"end":return t.stop()}}),t)}))),_f.apply(this,arguments)}function kf(t,e){var r,n,i=gl(t,["a:graphic","a:graphicData","a:tbl"]),a=gl(t,["p:xfrm"]),o=jl(a,void 0,void 0),s=o.top,u=o.left,l=Nl(a,void 0,void 0),f=l.width,h=l.height,c=gl(t,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),d=c.attrs?c.attrs.firstRow:void 0,p=c.attrs?c.attrs.firstCol:void 0,g=c.attrs?c.attrs.lastRow:void 0,b=c.attrs?c.attrs.lastCol:void 0,m=c.attrs?c.attrs.bandRow:void 0,v=c.attrs?c.attrs.bandCol:void 0,y={isFrstRowAttr:d&&"1"===d?1:0,isFrstColAttr:p&&"1"===p?1:0,isLstRowAttr:g&&"1"===g?1:0,isLstColAttr:b&&"1"===b?1:0,isBandRowAttr:m&&"1"===m?1:0,isBandColAttr:v&&"1"===v?1:0},w=c["a:tableStyleId"];if(w){var _=e.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(_)if(_.constructor===Array)for(var k=0;k<_.length;k++)_[k].attrs.styleId===w&&(r=_[k]);else _.attrs.styleId===w&&(r=_)}r&&(r.tblStylAttrObj=y);var x=gl(r,["a:wholeTbl","a:tcStyle"]),S=gl(x,["a:tcBdr"]);if(S){var C=function(t,e){var r={};if(t["a:bottom"]){var n=kl({"p:spPr":{"a:ln":t["a:bottom"]["a:ln"]}},void 0,e);r.bottom=n}if(t["a:top"]){var i=kl({"p:spPr":{"a:ln":t["a:top"]["a:ln"]}},void 0,e);r.top=i}if(t["a:right"]){var a=kl({"p:spPr":{"a:ln":t["a:right"]["a:ln"]}},void 0,e);r.right=a}if(t["a:left"]){var o=kl({"p:spPr":{"a:ln":t["a:left"]["a:ln"]}},void 0,e);r.left=o}return r}(S,e);C&&(n=C.bottom||C.left||C.right||C.top)}var A="",E=gl(r,["a:tblBg","a:fillRef"]);E&&(A=Il(E,void 0,void 0,e)),void 0===E&&(A=Il(E=gl(r,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),void 0,void 0,e));var R=i["a:tr"];R.constructor!==Array&&(R=[R]);for(var O=[],T=0;T<R.length;T++){var M=R[T],L=Vl(R,T,y,r,e),I=L.fillColor,P=L.fontColor,B=L.fontBold,D=M["a:tc"],z=[];if(D.constructor===Array)for(var j=0;j<D.length;j++){var N=D[j],F=void 0;if(0===j&&1===y.isFrstColAttr)F="a:firstCol",1===y.isLstRowAttr&&T===R.length-1&&gl(r,["a:seCell"])?F="a:seCell":1===y.isFrstRowAttr&&0===T&&gl(r,["a:neCell"])&&(F="a:neCell");else if(j>0&&1===y.isBandColAttr&&(1!==y.isFrstColAttr||0!==T)&&(1!==y.isLstRowAttr||T!==R.length-1)&&j!==D.length-1&&j%2!=0){var U=gl(r,["a:band2V"]);void 0===U?(U=gl(r,["a:band1V"]))&&(F="a:band2V"):F="a:band2V"}j===D.length-1&&1===y.isLstColAttr&&(F="a:lastCol",1===y.isLstRowAttr&&T===R.length-1&&gl(r,["a:swCell"])?F="a:swCell":1===y.isFrstRowAttr&&0===T&&gl(r,["a:nwCell"])&&(F="a:nwCell"));var H=Wl(N["a:txBody"],N,void 0,void 0,e),W=Gl(N,r,F,e),Z={text:H};W.rowSpan&&(Z.rowSpan=W.rowSpan),W.colSpan&&(Z.colSpan=W.colSpan),W.vMerge&&(Z.vMerge=W.vMerge),W.hMerge&&(Z.hMerge=W.hMerge),(W.fontBold||B)&&(Z.fontBold=W.fontBold||B),(W.fontColor||P)&&(Z.fontColor=W.fontColor||P),(W.fillColor||I||A)&&(Z.fillColor=W.fillColor||I||A),z.push(Z)}else{var q=void 0;if(1===y.isFrstColAttr&&1!==y.isLstRowAttr)q="a:firstCol";else if(1===y.isBandColAttr&&1!==y.isLstRowAttr){var Y=gl(r,["a:band2V"]);(Y||(Y=gl(r,["a:band1V"])))&&(q="a:band2V")}1===y.isLstColAttr&&1!==y.isLstRowAttr&&(q="a:lastCol");var G=Wl(D["a:txBody"],D,void 0,void 0,e),V=Gl(D,r,q,e),K={text:G};V.rowSpan&&(K.rowSpan=V.rowSpan),V.colSpan&&(K.colSpan=V.colSpan),V.vMerge&&(K.vMerge=V.vMerge),V.hMerge&&(K.hMerge=V.hMerge),(V.fontBold||B)&&(K.fontBold=V.fontBold||B),(V.fontColor||P)&&(K.fontColor=V.fontColor||P),(V.fillColor||I||A)&&(K.fillColor=V.fillColor||I||A),z.push(K)}O.push(z)}return Xl({type:"table",top:s,left:u,width:f,height:h,data:O},n||{})}function xf(t,e){return Sf.apply(this,arguments)}function Sf(){return Sf=r(u.mark((function t(e,r){var n,i,a,o,s,l,f,h,c,d,p,g,b;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=gl(e,["p:xfrm"]),i=jl(n,void 0,void 0),a=i.top,o=i.left,s=Nl(n,void 0,void 0),l=s.width,f=s.height,h=e["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],c=r.slideResObj[h].target,t.next=7,Eu(r.zip,c);case 7:if(d=t.sent,p=gl(d,["c:chartSpace","c:chart","c:plotArea"]),g=Bl(p)){t.next=12;break}return t.abrupt("return",{});case 12:return b={type:"chart",top:a,left:o,width:l,height:f,data:g.data,chartType:g.type},void 0!==g.marker&&(b.marker=g.marker),void 0!==g.barDir&&(b.barDir=g.barDir),void 0!==g.holeSize&&(b.holeSize=g.holeSize),void 0!==g.grouping&&(b.grouping=g.grouping),void 0!==g.style&&(b.style=g.style),t.abrupt("return",b);case 19:case"end":return t.stop()}}),t)}))),Sf.apply(this,arguments)}function Cf(t,e){var r=gl(t,["p:xfrm"]),n=jl(r,void 0,void 0),i=n.left,a=n.top,o=Nl(r,void 0,void 0),s=o.width,u=o.height,l=gl(e.digramFileContent,["p:drawing","p:spTree","p:sp"]),f=[];if(l){var h,c=$l(l);try{for(c.s();!(h=c.n()).done;){var d=gf(h.value,e,"diagramBg");d&&f.push(d)}}catch(t){c.e(t)}finally{c.f()}}return{type:"diagram",left:i,top:a,width:s,height:u,elements:f}}export{Ql as parse};
1
+ function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function r(t){return function(){var r=this,n=arguments;return new Promise((function(i,a){var o=t.apply(r,n);function s(t){e(o,i,a,s,u,"next",t)}function u(t){e(o,i,a,s,u,"throw",t)}s(void 0)}))}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){var e=t.default;if("function"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var a={exports:{}},o={exports:{}};!function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(o),function(t){var e=o.exports.default;function r(){t.exports=r=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},i=Object.prototype,a=i.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new R(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=c;var p={};function g(){}function b(){}function v(){}var m={};h(m,u,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(O([])));w&&w!==i&&a.call(w,u)&&(m=w);var _=v.prototype=g.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,r){function n(i,o,s,u){var l=d(t[i],t,o);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==e(h)&&a.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):r.resolve(h).then((function(t){f.value=t,s(f)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,i){n(t,e,r,i)}))}return i=i?i.then(a,a):a()}})}function S(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return T()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function C(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(a.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:T}}function T(){return{value:void 0,done:!0}}return b.prototype=v,o(_,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:b,configurable:!0}),b.displayName=h(v,f,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,h(t,f,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},k(x.prototype),h(x.prototype,l,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,i,a){void 0===a&&(a=Promise);var o=new x(c(t,e,r,i),a);return n.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(_),h(_,f,"Generator"),h(_,u,(function(){return this})),h(_,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},n}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}(a);var s=a.exports(),u=s;try{regeneratorRuntime=s}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}var l={},f={},h="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,g=!1;function b(){g=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)c[e]=t[e],d[t.charCodeAt(e)]=e;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63}function v(t,e,r){for(var n,i,a=[],o=e;o<r;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],a.push(c[(i=n)>>18&63]+c[i>>12&63]+c[i>>6&63]+c[63&i]);return a.join("")}function m(t){var e;g||b();for(var r=t.length,n=r%3,i="",a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(v(t,s,s+o>u?u:s+o));return 1===n?(e=t[r-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),a.push(i),a.join("")}function y(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,l=u>>1,f=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=256*a+t[e+h],h+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+h],h+=c,f-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=l}return(d?-1:1)*o*Math.pow(2,a-n)}function w(t,e,r,n,i,a){var o,s,u,l=8*a-i-1,f=(1<<l)-1,h=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+h>=1?c/u:c*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=f?(s=0,o=f):o+h>=1?(s=(e*u-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;t[r+d]=255&o,d+=p,o/=256,l-=8);t[r+d-p]|=128*g}var _={}.toString,k=Array.isArray||function(t){return"[object Array]"==_.call(t)};A.TYPED_ARRAY_SUPPORT=void 0===h.TYPED_ARRAY_SUPPORT||h.TYPED_ARRAY_SUPPORT;var x=S();function S(){return A.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function C(t,e){if(S()<e)throw new RangeError("Invalid typed array length");return A.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=A.prototype:(null===t&&(t=new A(e)),t.length=e),t}function A(t,e,r){if(!(A.TYPED_ARRAY_SUPPORT||this instanceof A))return new A(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return O(this,t)}return E(this,t,e,r)}function E(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);A.TYPED_ARRAY_SUPPORT?(t=e).__proto__=A.prototype:t=T(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!A.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|I(e,r),i=(t=C(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(M(e)){var r=0|L(e.length);return 0===(t=C(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?C(t,0):T(t,e);if("Buffer"===e.type&&k(e.data))return T(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function R(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function O(t,e){if(R(e),t=C(t,e<0?0:0|L(e)),!A.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function T(t,e){var r=e.length<0?0:0|L(e.length);t=C(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function L(t){if(t>=S())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S().toString(16)+" bytes");return 0|t}function M(t){return!(null==t||!t._isBuffer)}function I(t,e){if(M(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return at(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ot(t).length;default:if(n)return at(t).length;e=(""+e).toLowerCase(),n=!0}}function P(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return V(this,e,r);case"utf8":case"utf-8":return q(this,e,r);case"ascii":return Y(this,e,r);case"latin1":case"binary":return G(this,e,r);case"base64":return Z(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function B(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function D(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=A.from(e,n)),M(e))return 0===e.length?-1:z(t,e,r,n,i);if("number"==typeof e)return e&=255,A.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):z(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function z(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;a<s;a++)if(l(t,a)===l(e,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===u)return f*o}else-1!==f&&(a-=a-f),f=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var h=!0,c=0;c<u;c++)if(l(t,a+c)!==l(e,c)){h=!1;break}if(h)return a}return-1}function j(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[r+o]=s}return o}function F(t,e,r,n){return st(at(e,t.length-r),t,r,n)}function N(t,e,r,n){return st(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function U(t,e,r,n){return N(t,e,r,n)}function H(t,e,r,n){return st(ot(e),t,r,n)}function W(t,e,r,n){return st(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function Z(t,e,r){return 0===e&&r===t.length?m(t):m(t.slice(e,r))}function q(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,u,l=t[i],f=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(f=l);break;case 2:128==(192&(a=t[i+1]))&&(u=(31&l)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}A.poolSize=8192,A._augment=function(t){return t.__proto__=A.prototype,t},A.from=function(t,e,r){return E(null,t,e,r)},A.TYPED_ARRAY_SUPPORT&&(A.prototype.__proto__=Uint8Array.prototype,A.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&A[Symbol.species]),A.alloc=function(t,e,r){return function(t,e,r,n){return R(e),e<=0?C(t,e):void 0!==r?"string"==typeof n?C(t,e).fill(r,n):C(t,e).fill(r):C(t,e)}(null,t,e,r)},A.allocUnsafe=function(t){return O(null,t)},A.allocUnsafeSlow=function(t){return O(null,t)},A.isBuffer=ut,A.compare=function(t,e){if(!M(t)||!M(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},A.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},A.concat=function(t,e){if(!k(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return A.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=A.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!M(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},A.byteLength=I,A.prototype._isBuffer=!0,A.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)B(this,e,e+1);return this},A.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)B(this,e,e+3),B(this,e+1,e+2);return this},A.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)B(this,e,e+7),B(this,e+1,e+6),B(this,e+2,e+5),B(this,e+3,e+4);return this},A.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?q(this,0,t):P.apply(this,arguments)},A.prototype.equals=function(t){if(!M(t))throw new TypeError("Argument must be a Buffer");return this===t||0===A.compare(this,t)},A.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},A.prototype.compare=function(t,e,r,n,i){if(!M(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),u=this.slice(n,i),l=t.slice(e,r),f=0;f<s;++f)if(u[f]!==l[f]){a=u[f],o=l[f];break}return a<o?-1:o<a?1:0},A.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},A.prototype.indexOf=function(t,e,r){return D(this,t,e,r,!0)},A.prototype.lastIndexOf=function(t,e,r){return D(this,t,e,r,!1)},A.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return j(this,t,e,r);case"utf8":case"utf-8":return F(this,t,e,r);case"ascii":return N(this,t,e,r);case"latin1":case"binary":return U(this,t,e,r);case"base64":return H(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function G(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function V(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=it(t[a]);return i}function K(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function X(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function $(t,e,r,n,i,a){if(!M(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function J(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-r,2);i<a;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Q(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-r,4);i<a;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function tt(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function et(t,e,r,n,i){return i||tt(t,0,r,4),w(t,e,r,n,23,4),r+4}function rt(t,e,r,n,i){return i||tt(t,0,r,8),w(t,e,r,n,52,8),r+8}A.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),A.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=A.prototype;else{var i=e-t;r=new A(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},A.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},A.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},A.prototype.readUInt8=function(t,e){return e||X(t,1,this.length),this[t]},A.prototype.readUInt16LE=function(t,e){return e||X(t,2,this.length),this[t]|this[t+1]<<8},A.prototype.readUInt16BE=function(t,e){return e||X(t,2,this.length),this[t]<<8|this[t+1]},A.prototype.readUInt32LE=function(t,e){return e||X(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},A.prototype.readUInt32BE=function(t,e){return e||X(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},A.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},A.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},A.prototype.readInt8=function(t,e){return e||X(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},A.prototype.readInt16LE=function(t,e){e||X(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},A.prototype.readInt16BE=function(t,e){e||X(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},A.prototype.readInt32LE=function(t,e){return e||X(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},A.prototype.readInt32BE=function(t,e){return e||X(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},A.prototype.readFloatLE=function(t,e){return e||X(t,4,this.length),y(this,t,!0,23,4)},A.prototype.readFloatBE=function(t,e){return e||X(t,4,this.length),y(this,t,!1,23,4)},A.prototype.readDoubleLE=function(t,e){return e||X(t,8,this.length),y(this,t,!0,52,8)},A.prototype.readDoubleBE=function(t,e){return e||X(t,8,this.length),y(this,t,!1,52,8)},A.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||$(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},A.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||$(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},A.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,1,255,0),A.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},A.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},A.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},A.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Q(this,t,e,!0),e+4},A.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},A.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);$(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},A.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);$(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},A.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,1,127,-128),A.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},A.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},A.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},A.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,2147483647,-2147483648),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Q(this,t,e,!0),e+4},A.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},A.prototype.writeFloatLE=function(t,e,r){return et(this,t,e,!0,r)},A.prototype.writeFloatBE=function(t,e,r){return et(this,t,e,!1,r)},A.prototype.writeDoubleLE=function(t,e,r){return rt(this,t,e,!0,r)},A.prototype.writeDoubleBE=function(t,e,r){return rt(this,t,e,!1,r)},A.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!A.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},A.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!A.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=M(t)?t:at(new A(t,n).toString()),s=o.length;for(a=0;a<r-e;++a)this[a+e]=o[a%s]}return this};var nt=/[^+\/0-9A-Za-z-_]/g;function it(t){return t<16?"0"+t.toString(16):t.toString(16)}function at(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function ot(t){return function(t){var e,r,n,i,a,o;g||b();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===t[s-2]?2:"="===t[s-1]?1:0,o=new p(3*s/4-a),n=a>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=d[t.charCodeAt(e)]<<18|d[t.charCodeAt(e+1)]<<12|d[t.charCodeAt(e+2)]<<6|d[t.charCodeAt(e+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=255&i;return 2===a?(i=d[t.charCodeAt(e)]<<2|d[t.charCodeAt(e+1)]>>4,o[u++]=255&i):1===a&&(i=d[t.charCodeAt(e)]<<10|d[t.charCodeAt(e+1)]<<4|d[t.charCodeAt(e+2)]>>2,o[u++]=i>>8&255,o[u++]=255&i),o}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(nt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function st(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function ut(t){return null!=t&&(!!t._isBuffer||lt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&lt(t.slice(0,0))}(t))}function lt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var ft=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:x,Buffer:A,SlowBuffer:function(t){return+t!=t&&(t=0),A.alloc(+t)},isBuffer:ut}),ht={};function ct(){throw new Error("setTimeout has not been defined")}function dt(){throw new Error("clearTimeout has not been defined")}var pt=ct,gt=dt;function bt(t){if(pt===setTimeout)return setTimeout(t,0);if((pt===ct||!pt)&&setTimeout)return pt=setTimeout,setTimeout(t,0);try{return pt(t,0)}catch(e){try{return pt.call(null,t,0)}catch(e){return pt.call(this,t,0)}}}"function"==typeof h.setTimeout&&(pt=setTimeout),"function"==typeof h.clearTimeout&&(gt=clearTimeout);var vt,mt=[],yt=!1,wt=-1;function _t(){yt&&vt&&(yt=!1,vt.length?mt=vt.concat(mt):wt=-1,mt.length&&kt())}function kt(){if(!yt){var t=bt(_t);yt=!0;for(var e=mt.length;e;){for(vt=mt,mt=[];++wt<e;)vt&&vt[wt].run();wt=-1,e=mt.length}vt=null,yt=!1,function(t){if(gt===clearTimeout)return clearTimeout(t);if((gt===dt||!gt)&&clearTimeout)return gt=clearTimeout,clearTimeout(t);try{gt(t)}catch(e){try{return gt.call(null,t)}catch(e){return gt.call(this,t)}}}(t)}}function xt(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];mt.push(new St(t,e)),1!==mt.length||yt||bt(kt)}function St(t,e){this.fun=t,this.array=e}St.prototype.run=function(){this.fun.apply(null,this.array)};function Ct(){}var At=Ct,Et=Ct,Rt=Ct,Ot=Ct,Tt=Ct,Lt=Ct,Mt=Ct;var It=h.performance||{},Pt=It.now||It.mozNow||It.msNow||It.oNow||It.webkitNow||function(){return(new Date).getTime()};var Bt=new Date;var Dt={nextTick:xt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:At,addListener:Et,once:Rt,off:Ot,removeListener:Tt,removeAllListeners:Lt,emit:Mt,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Pt.call(It),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Bt)/1e3}},zt={exports:{}};function jt(){}function Ft(){Ft.init.call(this)}function Nt(t){return void 0===t._maxListeners?Ft.defaultMaxListeners:t._maxListeners}function Ut(t,e,r){if(e)t.call(r);else for(var n=t.length,i=Kt(t,n),a=0;a<n;++a)i[a].call(r)}function Ht(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=Kt(t,i),o=0;o<i;++o)a[o].call(r,n)}function Wt(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=Kt(t,a),s=0;s<a;++s)o[s].call(r,n,i)}function Zt(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=Kt(t,o),u=0;u<o;++u)s[u].call(r,n,i,a)}function qt(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=Kt(t,i),o=0;o<i;++o)a[o].apply(r,n)}function Yt(t,e,r,n){var i,a,o,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]):(a=t._events=new jt,t._eventsCount=0),o){if("function"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(i=Nt(t))&&i>0&&o.length>i){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else o=a[e]=r,++t._eventsCount;return t}function Gt(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function Vt(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function Kt(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}jt.prototype=Object.create(null),Ft.EventEmitter=Ft,Ft.usingDomains=!1,Ft.prototype.domain=void 0,Ft.prototype._events=void 0,Ft.prototype._maxListeners=void 0,Ft.defaultMaxListeners=10,Ft.init=function(){this.domain=null,Ft.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new jt,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ft.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},Ft.prototype.getMaxListeners=function(){return Nt(this)},Ft.prototype.emit=function(t){var e,r,n,i,a,o,s,u="error"===t;if(o=this._events)u=u&&null==o.error;else if(!u)return!1;if(s=this.domain,u){if(e=arguments[1],!s){if(e instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(r=o[t]))return!1;var f="function"==typeof r;switch(n=arguments.length){case 1:Ut(r,f,this);break;case 2:Ht(r,f,this,arguments[1]);break;case 3:Wt(r,f,this,arguments[1],arguments[2]);break;case 4:Zt(r,f,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];qt(r,f,this,i)}return!0},Ft.prototype.addListener=function(t,e){return Yt(this,t,e,!1)},Ft.prototype.on=Ft.prototype.addListener,Ft.prototype.prependListener=function(t,e){return Yt(this,t,e,!0)},Ft.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,Gt(this,t,e)),this},Ft.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,Gt(this,t,e)),this},Ft.prototype.removeListener=function(t,e){var r,n,i,a,o;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new jt:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,a=r.length;a-- >0;)if(r[a]===e||r[a].listener&&r[a].listener===e){o=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 jt,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,i);n.removeListener&&this.emit("removeListener",t,o||e)}return this},Ft.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new jt,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new jt:delete r[t]),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 jt,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},Ft.prototype.listeners=function(t){var e,r,n=this._events;return r=n&&(e=n[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[],r},Ft.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):Vt.call(t,e)},Ft.prototype.listenerCount=Vt,Ft.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Xt=Object.freeze({__proto__:null,default:Ft,EventEmitter:Ft}),$t="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},Jt=/%[sdj%]/g;function Qt(t){if(!ge(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ie(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(t).replace(Jt,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),o=n[r];r<i;o=n[++r])ce(o)||!ye(o)?a+=" "+o:a+=" "+ie(o);return a}function te(t,e){if(ve(h.process))return function(){return te(t,e).apply(this,arguments)};if(!0===Dt.noDeprecation)return t;var r=!1;return function(){if(!r){if(Dt.throwDeprecation)throw new Error(e);Dt.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var ee,re={};function ne(t){if(ve(ee)&&(ee=Dt.env.NODE_DEBUG||""),t=t.toUpperCase(),!re[t])if(new RegExp("\\b"+t+"\\b","i").test(ee)){re[t]=function(){var e=Qt.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else re[t]=function(){};return re[t]}function ie(t,e){var r={seen:[],stylize:oe};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),he(e)?r.showHidden=e:e&&Te(r,e),ve(r.showHidden)&&(r.showHidden=!1),ve(r.depth)&&(r.depth=2),ve(r.colors)&&(r.colors=!1),ve(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ae),se(r,t,r.depth)}function ae(t,e){var r=ie.styles[e];return r?"["+ie.colors[r][0]+"m"+t+"["+ie.colors[r][1]+"m":t}function oe(t,e){return t}function se(t,e,r){if(t.customInspect&&e&&ke(e.inspect)&&e.inspect!==ie&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return ge(n)||(n=se(t,n,r)),n}var i=function(t,e){if(ve(e))return t.stylize("undefined","undefined");if(ge(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(pe(e))return t.stylize(""+e,"number");if(he(e))return t.stylize(""+e,"boolean");if(ce(e))return t.stylize("null","null")}(t,e);if(i)return i;var a=Object.keys(e),o=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),_e(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return ue(e);if(0===a.length){if(ke(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(me(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(we(e))return t.stylize(Date.prototype.toString.call(e),"date");if(_e(e))return ue(e)}var u,l="",f=!1,h=["{","}"];(fe(e)&&(f=!0,h=["[","]"]),ke(e))&&(l=" [Function"+(e.name?": "+e.name:"")+"]");return me(e)&&(l=" "+RegExp.prototype.toString.call(e)),we(e)&&(l=" "+Date.prototype.toUTCString.call(e)),_e(e)&&(l=" "+ue(e)),0!==a.length||f&&0!=e.length?r<0?me(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=f?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)Le(e,String(o))?a.push(le(t,e,r,n,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(le(t,e,r,n,i,!0))})),a}(t,e,r,o,a):a.map((function(n){return le(t,e,r,o,n,f)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(u,l,h)):h[0]+l+h[1]}function ue(t){return"["+Error.prototype.toString.call(t)+"]"}function le(t,e,r,n,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),Le(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=ce(r)?se(t,u.value,null):se(t,u.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),ve(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function fe(t){return Array.isArray(t)}function he(t){return"boolean"==typeof t}function ce(t){return null===t}function de(t){return null==t}function pe(t){return"number"==typeof t}function ge(t){return"string"==typeof t}function be(t){return"symbol"==typeof t}function ve(t){return void 0===t}function me(t){return ye(t)&&"[object RegExp]"===Ce(t)}function ye(t){return"object"==typeof t&&null!==t}function we(t){return ye(t)&&"[object Date]"===Ce(t)}function _e(t){return ye(t)&&("[object Error]"===Ce(t)||t instanceof Error)}function ke(t){return"function"==typeof t}function xe(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function Se(t){return ut(t)}function Ce(t){return Object.prototype.toString.call(t)}function Ae(t){return t<10?"0"+t.toString(10):t.toString(10)}ie.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]},ie.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Re(){var t=new Date,e=[Ae(t.getHours()),Ae(t.getMinutes()),Ae(t.getSeconds())].join(":");return[t.getDate(),Ee[t.getMonth()],e].join(" ")}function Oe(){console.log("%s - %s",Re(),Qt.apply(null,arguments))}function Te(t,e){if(!e||!ye(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Le(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Me={inherits:$t,_extend:Te,log:Oe,isBuffer:Se,isPrimitive:xe,isFunction:ke,isError:_e,isDate:we,isObject:ye,isRegExp:me,isUndefined:ve,isSymbol:be,isString:ge,isNumber:pe,isNullOrUndefined:de,isNull:ce,isBoolean:he,isArray:fe,inspect:ie,deprecate:te,format:Qt,debuglog:ne},Ie=Object.freeze({__proto__:null,format:Qt,deprecate:te,debuglog:ne,inspect:ie,isArray:fe,isBoolean:he,isNull:ce,isNullOrUndefined:de,isNumber:pe,isString:ge,isSymbol:be,isUndefined:ve,isRegExp:me,isObject:ye,isDate:we,isError:_e,isFunction:ke,isPrimitive:xe,isBuffer:Se,log:Oe,inherits:$t,_extend:Te,default:Me});function Pe(){this.head=null,this.tail=null,this.length=0}Pe.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Pe.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},Pe.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},Pe.prototype.clear=function(){this.head=this.tail=null,this.length=0},Pe.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},Pe.prototype.concat=function(t){if(0===this.length)return A.alloc(0);if(1===this.length)return this.head.data;for(var e=A.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var Be=A.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function De(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!Be(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=je;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Fe;break;default:return void(this.write=ze)}this.charBuffer=new A(6),this.charReceived=0,this.charLength=0}function ze(t){return t.toString(this.encoding)}function je(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Fe(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}De.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(t=t.slice(r,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,n),n-=this.charReceived);var i;n=(e+=t.toString(this.encoding,0,n)).length-1;if((i=e.charCodeAt(n))>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),t.copy(this.charBuffer,0,0,a),e.substring(0,n)}return e},De.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},De.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e},He.ReadableState=Ue;var Ne=ne("stream");function Ue(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof gr&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Pe,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=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new De(t.encoding),this.encoding=t.encoding)}function He(t){if(!(this instanceof He))return new He(t);this._readableState=new Ue(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),Ft.call(this)}function We(t,e,r,n,i){var a=function(t,e){var r=null;ut(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(a)t.emit("error",a);else if(null===r)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,qe(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var o=new Error("stream.push() after EOF");t.emit("error",o)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&qe(t))),function(t,e){e.readingMore||(e.readingMore=!0,xt(Ge,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}$t(He,Ft),He.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=A.from(t,e),e=""),We(this,r,t,e,!1)},He.prototype.unshift=function(t){return We(this,this._readableState,t,"",!0)},He.prototype.isPaused=function(){return!1===this._readableState.flowing},He.prototype.setEncoding=function(t){return this._readableState.decoder=new De(t),this._readableState.encoding=t,this};function Ze(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function qe(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Ne("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?xt(Ye,t):Ye(t))}function Ye(t){Ne("emit readable"),t.emit("readable"),Xe(t)}function Ge(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Ne("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function Ve(t){Ne("readable nexttick read 0"),t.read(0)}function Ke(t,e){e.reading||(Ne("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Xe(t),e.flowing&&!e.reading&&t.read(0)}function Xe(t){var e=t._readableState;for(Ne("flow",e.flowing);e.flowing&&null!==t.read(););}function $e(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=A.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,o),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function Je(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,xt(Qe,e,t))}function Qe(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function tr(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function er(){}function rr(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function nr(t,e){Object.defineProperty(this,"buffer",{get:te((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof gr&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.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===t.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?xt(i,n):i(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,i);else{var a=ur(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||sr(t,r),n?xt(or,t,r,a,i):or(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new hr(this)}function ir(t){if(!(this instanceof ir||this instanceof gr))return new ir(t);this._writableState=new nr(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),Ft.call(this)}function ar(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function or(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),fr(t,e)}function sr(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0;r;)i[o]=r,r=r.next,o+=1;ar(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new hr(e)}else{for(;r;){var s=r.chunk,u=r.encoding,l=r.callback;if(ar(t,e,!1,e.objectMode?1:s.length,s,u,l),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function ur(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function lr(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function fr(t,e){var r=ur(e);return r&&(0===e.pendingcb?(lr(t,e),e.finished=!0,t.emit("finish")):lr(t,e)),r}function hr(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}He.prototype.read=function(t){Ne("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Ne("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Je(this):qe(this),null;if(0===(t=Ze(t,e))&&e.ended)return 0===e.length&&Je(this),null;var n,i=e.needReadable;return Ne("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&Ne("length less than watermark",i=!0),e.ended||e.reading?Ne("reading or ended",i=!1):i&&(Ne("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ze(r,e))),null===(n=t>0?$e(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Je(this)),null!==n&&this.emit("data",n),n},He.prototype._read=function(t){this.emit("error",new Error("not implemented"))},He.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,Ne("pipe count=%d opts=%j",n.pipesCount,e);var i=!e||!1!==e.end?o:l;function a(t){Ne("onunpipe"),t===r&&l()}function o(){Ne("onend"),t.end()}n.endEmitted?xt(i):r.once("end",i),t.on("unpipe",a);var s=function(t){return function(){var e=t._readableState;Ne("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Xe(t))}}(r);t.on("drain",s);var u=!1;function l(){Ne("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",c),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",l),r.removeListener("data",h),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var f=!1;function h(e){Ne("ondata"),f=!1,!1!==t.write(e)||f||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==tr(n.pipes,t))&&!u&&(Ne("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function c(e){var r;Ne("onerror",e),g(),t.removeListener("error",c),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function d(){t.removeListener("finish",p),g()}function p(){Ne("onfinish"),t.removeListener("close",d),g()}function g(){Ne("unpipe"),r.unpipe(t)}return r.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",c),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(Ne("pipe resume"),r.resume()),t},He.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var a=tr(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},He.prototype.on=function(t,e){var r=Ft.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&qe(this):xt(Ve,this))}return r},He.prototype.addListener=He.prototype.on,He.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ne("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,xt(Ke,t,e))}(this,t)),this},He.prototype.pause=function(){return Ne("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Ne("pause"),this._readableState.flowing=!1,this.emit("pause")),this},He.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var i in t.on("end",(function(){if(Ne("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(i){(Ne("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,n.emit.bind(n,e))})),n._read=function(e){Ne("wrapped _read",e),r&&(r=!1,t.resume())},n},He._fromList=$e,ir.WritableState=nr,$t(ir,Ft),nr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},ir.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ir.prototype.write=function(t,e,r){var n=this._writableState,i=!1;return"function"==typeof e&&(r=e,e=null),A.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=er),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),xt(e,r)}(this,r):function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):A.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),xt(n,a),i=!1),i}(this,n,t,r)&&(n.pendingcb++,i=function(t,e,r,n,i){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=A.from(e,r));return e}(e,r,n),A.isBuffer(r)&&(n="buffer");var a=e.objectMode?1:r.length;e.length+=a;var o=e.length<e.highWaterMark;o||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new rr(r,n,i),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ar(t,e,!1,a,r,n,i);return o}(this,n,t,e,r)),i},ir.prototype.cork=function(){this._writableState.corked++},ir.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||sr(this,t))},ir.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},ir.prototype._write=function(t,e,r){r(new Error("not implemented"))},ir.prototype._writev=null,ir.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,fr(t,e),r&&(e.finished?xt(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},$t(gr,He);for(var cr=Object.keys(ir.prototype),dr=0;dr<cr.length;dr++){var pr=cr[dr];gr.prototype[pr]||(gr.prototype[pr]=ir.prototype[pr])}function gr(t){if(!(this instanceof gr))return new gr(t);He.call(this,t),ir.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",br)}function br(){this.allowHalfOpen||this._writableState.ended||xt(vr,this)}function vr(t){t.end()}function mr(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);i(e);var a=t._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&t._read(a.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function yr(t){if(!(this instanceof yr))return new yr(t);gr.call(this,t),this._transformState=new mr(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){wr(e,t)})):wr(e)}))}function wr(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=t._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 t.push(null)}function _r(t){if(!(this instanceof _r))return new _r(t);yr.call(this,t)}function kr(){Ft.call(this)}$t(yr,gr),yr.prototype.push=function(t,e){return this._transformState.needTransform=!1,gr.prototype.push.call(this,t,e)},yr.prototype._transform=function(t,e,r){throw new Error("Not implemented")},yr.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},yr.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},$t(_r,yr),_r.prototype._transform=function(t,e,r){r(null,t)},$t(kr,Ft),kr.Readable=He,kr.Writable=ir,kr.Duplex=gr,kr.Transform=yr,kr.PassThrough=_r,kr.Stream=kr,kr.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===Ft.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",u),t.on("error",u),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t};var xr,Sr,Cr,Ar=i(Object.freeze({__proto__:null,default:kr,Readable:He,Writable:ir,Duplex:gr,Transform:yr,PassThrough:_r,Stream:kr})),Er={exports:{}};function Rr(){if(xr)return Er.exports;return xr=1,void 0===Dt||!Dt.version||0===Dt.version.indexOf("v0.")||0===Dt.version.indexOf("v1.")&&0!==Dt.version.indexOf("v1.8.")?Er.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return xt(t);case 2:return xt((function(){t.call(null,e)}));case 3:return xt((function(){t.call(null,e,r)}));case 4:return xt((function(){t.call(null,e,r,n)}));default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return xt((function(){t.apply(null,i)}))}}}:Er.exports=Dt,Er.exports}var Or,Tr=i(Xt),Lr={exports:{}};function Mr(){return Or?Lr.exports:(Or=1,Lr.exports=Ar)}var Ir,Pr={exports:{}},Br=i(ft);function Dr(){return Ir||(Ir=1,function(t,e){var r=Br,n=r.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a),i(n,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}}(Pr,Pr.exports)),Pr.exports}var zr,jr={};function Fr(){if(zr)return jr;function t(t){return Object.prototype.toString.call(t)}return zr=1,jr.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},jr.isBoolean=function(t){return"boolean"==typeof t},jr.isNull=function(t){return null===t},jr.isNullOrUndefined=function(t){return null==t},jr.isNumber=function(t){return"number"==typeof t},jr.isString=function(t){return"string"==typeof t},jr.isSymbol=function(t){return"symbol"==typeof t},jr.isUndefined=function(t){return void 0===t},jr.isRegExp=function(e){return"[object RegExp]"===t(e)},jr.isObject=function(t){return"object"==typeof t&&null!==t},jr.isDate=function(e){return"[object Date]"===t(e)},jr.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},jr.isFunction=function(t){return"function"==typeof t},jr.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},jr.isBuffer=Br.Buffer.isBuffer,jr}var Nr,Ur,Hr={exports:{}},Wr=i(Ie),Zr={exports:{}};function qr(){return Ur||(Ur=1,function(t){try{var e=Wr;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=(Nr||(Nr=1,"function"==typeof Object.create?Zr.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Zr.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),Zr.exports)}}(Hr)),Hr.exports}var Yr,Gr,Vr,Kr,Xr,$r,Jr,Qr,tn,en={exports:{}};function rn(){return Yr||(Yr=1,function(t){var e=Dr().Buffer,r=Wr;t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return e.alloc(0);if(1===this.length)return this.head.data;for(var r,n,i,a=e.allocUnsafe(t>>>0),o=this.head,s=0;o;)r=o.data,n=a,i=s,r.copy(n,i),s+=o.data.length,o=o.next;return a},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})}(en)),en.exports}function nn(){if(Vr)return Gr;Vr=1;var t=Rr();function e(t,e){t.emit("error",e)}return Gr={destroy:function(r,n){var i=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(n?n(r):!r||this._writableState&&this._writableState.errorEmitted||t.nextTick(e,this,r),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,(function(r){!n&&r?(t.nextTick(e,i,r),i._writableState&&(i._writableState.errorEmitted=!0)):n&&n(r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},Gr}function an(){if(Jr)return $r;Jr=1;var t=Rr();function e(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}$r=p;var r,i=t.nextTick;p.WritableState=d;var a=Object.create(Fr());a.inherits=qr();var o={deprecate:Xr?Kr:(Xr=1,Kr=Wr.deprecate)},s=Mr(),u=Dr().Buffer,l=n.Uint8Array||function(){};var f,h=nn();function c(){}function d(n,a){r=r||on(),n=n||{};var o=a instanceof r;this.objectMode=!!n.objectMode,o&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var s=n.highWaterMark,u=n.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:o&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===n.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,r){var n=e._writableState,a=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),r)!function(e,r,n,i,a){--r.pendingcb,n?(t.nextTick(a,i),t.nextTick(w,e,r),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),w(e,r))}(e,n,a,r,o);else{var s=m(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),a?i(b,e,n,s,o):b(e,n,s,o)}}(a,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 e(this)}function p(t){if(r=r||on(),!(f.call(p,this)||this instanceof r))return new p(t);this._writableState=new d(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function g(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function b(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),w(t,e)}function v(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var i=r.bufferedRequestCount,a=new Array(i),o=r.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)a[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;a.allBuffers=u,g(t,r,!0,r.length,a,"",o.finish),r.pendingcb++,r.lastBufferedRequest=null,o.next?(r.corkedRequestsFree=o.next,o.next=null):r.corkedRequestsFree=new e(r),r.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,f=n.encoding,h=n.callback;if(g(t,r,!1,r.objectMode?1:l.length,l,f,h),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function m(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function y(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),w(t,e)}))}function w(e,r){var n=m(r);return n&&(!function(e,r){r.prefinished||r.finalCalled||("function"==typeof e._final?(r.pendingcb++,r.finalCalled=!0,t.nextTick(y,e,r)):(r.prefinished=!0,e.emit("prefinish")))}(e,r),0===r.pendingcb&&(r.finished=!0,e.emit("finish"))),n}return a.inherits(p,s),d.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(d.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===p&&(t&&t._writableState instanceof d)}})):f=function(t){return t instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(e,r,n){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,u.isBuffer(i)||i instanceof l);return s&&!u.isBuffer(e)&&(e=function(t){return u.from(t)}(e)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=a.defaultEncoding),"function"!=typeof n&&(n=c),a.ended?function(e,r){var n=new Error("write after end");e.emit("error",n),t.nextTick(r,n)}(this,n):(s||function(e,r,n,i){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||r.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),t.nextTick(i,o),a=!1),a}(this,a,e,n))&&(a.pendingcb++,o=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r));return e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,s,n,i,a);return l}(this,a,s,e,r,n)),o},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||v(this,t))},p.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(e,r,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,r,n){r.ending=!0,w(e,r),n&&(r.finished?t.nextTick(n):e.once("finish",n));r.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),p.prototype.destroy=h.destroy,p.prototype._undestroy=h.undestroy,p.prototype._destroy=function(t,e){this.end(),e(t)},$r}function on(){if(tn)return Qr;tn=1;var t=Rr(),e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Qr=u;var r=Object.create(Fr());r.inherits=qr();var n=vn(),i=an();r.inherits(u,n);for(var a=e(i.prototype),o=0;o<a.length;o++){var s=a[o];u.prototype[s]||(u.prototype[s]=i.prototype[s])}function u(t){if(!(this instanceof u))return new u(t);n.call(this,t),i.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||t.nextTick(f,this)}function f(t){t.end()}return Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),u.prototype._destroy=function(e,r){this.push(null),this.end(),t.nextTick(r,e)},Qr}var sn,un,ln,fn,hn,cn,dn,pn,gn={};function bn(){if(sn)return gn;sn=1;var t=Dr().Buffer,e=t.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(r){var n;switch(this.encoding=function(r){var n=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(r);if("string"!=typeof n&&(t.isEncoding===e||!e(r)))throw new Error("Unknown encoding: "+r);return n||r}(r),this.encoding){case"utf16le":this.text=a,this.end=o,n=4;break;case"utf8":this.fillLast=i,n=4;break;case"base64":this.text=s,this.end=u,n=3;break;default:return this.write=l,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}function n(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function i(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function a(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function o(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function s(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}return gn.StringDecoder=r,r.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},r.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},r.prototype.text=function(t,e){var r=function(t,e,r){var i=e.length-1;if(i<r)return 0;var a=n(e[i]);if(a>=0)return a>0&&(t.lastNeed=a-1),a;if(--i<r||-2===a)return 0;if((a=n(e[i]))>=0)return a>0&&(t.lastNeed=a-2),a;if(--i<r||-2===a)return 0;if((a=n(e[i]))>=0)return a>0&&(2===a?a=0:t.lastNeed=a-3),a;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},r.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length},gn}function vn(){if(ln)return un;ln=1;var t=Rr();un=b;var e,r=function(){if(Cr)return Sr;Cr=1;var t={}.toString;return Sr=Array.isArray||function(e){return"[object Array]"==t.call(e)}}();b.ReadableState=g,Tr.EventEmitter;var i=function(t,e){return t.listeners(e).length},a=Mr(),o=Dr().Buffer,s=n.Uint8Array||function(){};var u=Object.create(Fr());u.inherits=qr();var l=Wr,f=void 0;f=l&&l.debuglog?l.debuglog("stream"):function(){};var h,c=rn(),d=nn();u.inherits(b,a);var p=["error","close","destroy","pause","resume"];function g(t,r){t=t||{};var n=r instanceof(e=e||on());this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=bn().StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(e=e||on(),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function v(t,e,r,n,i){var a,u=t._readableState;null===e?(u.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,_(t)}(t,u)):(i||(a=function(t,e){var r;n=e,o.isBuffer(n)||n instanceof s||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(u,e)),a?t.emit("error",a):u.objectMode||e&&e.length>0?("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===o.prototype||(e=function(t){return o.from(t)}(e)),n?u.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):m(t,u,e,!0):u.ended?t.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!r?(e=u.decoder.write(e),u.objectMode||0!==e.length?m(t,u,e,!1):x(t,u)):m(t,u,e,!1))):n||(u.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(u)}function m(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&_(t)),x(t,e)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=d.destroy,b.prototype._undestroy=d.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=o.from(t,e),e=""),r=!0),v(this,t,e,!1,r)},b.prototype.unshift=function(t){return v(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return h||(h=bn().StringDecoder),this._readableState.decoder=new h(t),this._readableState.encoding=t,this};var y=8388608;function w(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=y?t=y:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function _(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(f("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?t.nextTick(k,e):k(e))}function k(t){f("emit readable"),t.emit("readable"),E(t)}function x(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(S,e,r))}function S(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function C(t){f("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),E(t),e.flowing&&!e.reading&&t.read(0)}function E(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function R(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=o.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,s=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,s),0===(t-=s)){s===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(s));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function O(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,t.nextTick(T,r,e))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function L(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}return b.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?O(this):_(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",i=!0),e.ended||e.reading?f("reading or ended",i=!1):i&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=w(r,e))),null===(n=t>0?R(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&O(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,n){var a=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,n);var s=(!n||!1!==n.end)&&e!==Dt.stdout&&e!==Dt.stderr?l:m;function u(t,r){f("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",b),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",u),a.removeListener("end",l),a.removeListener("end",m),a.removeListener("data",p),c=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function l(){f("onend"),e.end()}o.endEmitted?t.nextTick(s):a.once("end",s),e.on("unpipe",u);var h=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,E(t))}}(a);e.on("drain",h);var c=!1;var d=!1;function p(t){f("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!c&&(f("false write response, pause",a._readableState.awaitDrain),a._readableState.awaitDrain++,d=!0),a.pause())}function g(t){f("onerror",t),m(),e.removeListener("error",g),0===i(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",v),m()}function v(){f("onfinish"),e.removeListener("close",b),m()}function m(){f("unpipe"),a.unpipe(e)}return a.on("data",p),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?r(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(e,"error",g),e.once("close",b),e.once("finish",v),e.emit("pipe",a),o.flowing||(f("pipe resume"),a.resume()),e},b.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=L(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},b.prototype.on=function(e,r){var n=a.prototype.on.call(this,e,r);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&_(this):t.nextTick(C,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,r){r.resumeScheduled||(r.resumeScheduled=!0,t.nextTick(A,e,r))}(this,e)),this},b.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<p.length;a++)t.on(p[a],this.emit.bind(this,p[a]));return this._read=function(e){f("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=R,un}function mn(){if(hn)return fn;hn=1,fn=n;var t=on(),e=Object.create(Fr());function r(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function n(e){if(!(this instanceof n))return new n(e);t.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},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.on("prefinish",i)}function i(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){a(t,e,r)})):a(this,null,null)}function a(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}return e.inherits=qr(),e.inherits(n,t),n.prototype.push=function(e,r){return this._transformState.needTransform=!1,t.prototype.push.call(this,e,r)},n.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},n.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},n.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},n.prototype._destroy=function(e,r){var n=this;t.prototype._destroy.call(this,e,(function(t){r(t),n.emit("close")}))},fn}function yn(){return pn||(pn=1,function(t,e){var r=Ar;"disable"===Dt.env.READABLE_STREAM&&r?(t.exports=r,(e=t.exports=r.Readable).Readable=r.Readable,e.Writable=r.Writable,e.Duplex=r.Duplex,e.Transform=r.Transform,e.PassThrough=r.PassThrough,e.Stream=r):((e=t.exports=vn()).Stream=r||e,e.Readable=e,e.Writable=an(),e.Duplex=on(),e.Transform=mn(),e.PassThrough=function(){if(dn)return cn;dn=1,cn=r;var t=mn(),e=Object.create(Fr());function r(e){if(!(this instanceof r))return new r(e);t.call(this,e)}return e.inherits=qr(),e.inherits(r,t),r.prototype._transform=function(t,e,r){r(null,t)},cn}())}(zt,zt.exports)),zt.exports}if(ht.base64=!0,ht.array=!0,ht.string=!0,ht.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,ht.nodebuffer=!0,ht.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)ht.blob=!1;else{var wn=new ArrayBuffer(0);try{ht.blob=0===new Blob([wn],{type:"application/zip"}).size}catch(t){try{var _n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);_n.append(wn),ht.blob=0===_n.getBlob("application/zip").size}catch(t){ht.blob=!1}}}try{ht.nodestream=!!yn().Readable}catch(t){ht.nodestream=!1}var kn,xn={};function Sn(){if(kn)return xn;kn=1;var t=In(),e=ht,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return xn.encode=function(e){for(var n,i,a,o,s,u,l,f=[],h=0,c=e.length,d=c,p="string"!==t.getTypeOf(e);h<e.length;)d=c-h,p?(n=e[h++],i=h<c?e[h++]:0,a=h<c?e[h++]:0):(n=e.charCodeAt(h++),i=h<c?e.charCodeAt(h++):0,a=h<c?e.charCodeAt(h++):0),o=n>>2,s=(3&n)<<4|i>>4,u=d>1?(15&i)<<2|a>>6:64,l=d>2?63&a:64,f.push(r.charAt(o)+r.charAt(s)+r.charAt(u)+r.charAt(l));return f.join("")},xn.decode=function(t){var n,i,a,o,s,u,l=0,f=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var c,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===r.charAt(64)&&d--,t.charAt(t.length-2)===r.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=e.uint8array?new Uint8Array(0|d):new Array(0|d);l<t.length;)n=r.indexOf(t.charAt(l++))<<2|(o=r.indexOf(t.charAt(l++)))>>4,i=(15&o)<<4|(s=r.indexOf(t.charAt(l++)))>>2,a=(3&s)<<6|(u=r.indexOf(t.charAt(l++))),c[f++]=n,64!==s&&(c[f++]=i),64!==u&&(c[f++]=a);return c},xn}var Cn,An,En,Rn,On={isNode:!0,newBufferFrom:function(t,e){if(A.from&&A.from!==Uint8Array.from)return A.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new A(t,e)},allocBuffer:function(t){if(A.alloc)return A.alloc(t);var e=new A(t);return e.fill(0),e},isBuffer:function(t){return ut(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}};var Tn=null;Tn="undefined"!=typeof Promise?Promise:function(){if(Rn)return En;Rn=1;var t=function(){if(An)return Cn;An=1;var t,e,r=n.MutationObserver||n.WebKitMutationObserver;if(r){var i=0,a=new r(l),o=n.document.createTextNode("");a.observe(o,{characterData:!0}),t=function(){o.data=i=++i%2}}else if(n.setImmediate||void 0===n.MessageChannel)t="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var t=n.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},n.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var s=new n.MessageChannel;s.port1.onmessage=l,t=function(){s.port2.postMessage(0)}}var u=[];function l(){var t,r;e=!0;for(var n=u.length;n;){for(r=u,u=[],t=-1;++t<n;)r[t]();n=u.length}e=!1}return Cn=function(r){1!==u.push(r)||e||t()}}();function e(){}var r={},i=["REJECTED"],a=["FULFILLED"],o=["PENDING"];function s(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=o,this.queue=[],this.outcome=void 0,t!==e&&h(this,t)}function u(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function l(e,n,i){t((function(){var t;try{t=n(i)}catch(t){return r.reject(e,t)}t===e?r.reject(e,new TypeError("Cannot resolve promise with itself")):r.resolve(e,t)}))}function f(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function h(t,e){var n=!1;function i(e){n||(n=!0,r.reject(t,e))}function a(e){n||(n=!0,r.resolve(t,e))}var o=c((function(){e(a,i)}));"error"===o.status&&i(o.value)}function c(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}return En=s,s.prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))},s.prototype.catch=function(t){return this.then(null,t)},s.prototype.then=function(t,r){if("function"!=typeof t&&this.state===a||"function"!=typeof r&&this.state===i)return this;var n=new this.constructor(e);return this.state!==o?l(n,this.state===a?t:r,this.outcome):this.queue.push(new u(n,t,r)),n},u.prototype.callFulfilled=function(t){r.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){l(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){r.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){l(this.promise,this.onRejected,t)},r.resolve=function(t,e){var n=c(f,e);if("error"===n.status)return r.reject(t,n.value);var i=n.value;if(i)h(t,i);else{t.state=a,t.outcome=e;for(var o=-1,s=t.queue.length;++o<s;)t.queue[o].callFulfilled(e)}return t},r.reject=function(t,e){t.state=i,t.outcome=e;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(e);return t},s.resolve=function(t){return t instanceof this?t:r.resolve(new this(e),t)},s.reject=function(t){var n=new this(e);return r.reject(n,t)},s.all=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,a=!1;if(!i)return this.resolve([]);for(var o=new Array(i),s=0,u=-1,l=new this(e);++u<i;)f(t[u],u);return l;function f(t,e){n.resolve(t).then((function(t){o[e]=t,++s!==i||a||(a=!0,r.resolve(l,o))}),(function(t){a||(a=!0,r.reject(l,t))}))}},s.race=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,a=!1;if(!i)return this.resolve([]);for(var o,s=-1,u=new this(e);++s<i;)o=t[s],n.resolve(o).then((function(t){a||(a=!0,r.resolve(u,t))}),(function(t){a||(a=!0,r.reject(u,t))}));return u},En}();var Ln,Mn={Promise:Tn};function In(){return Ln||(Ln=1,function(t){var e=ht,r=Sn(),n=On,i=Mn;function a(t){return t}function o(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}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(t){throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(t,e,r){var n=[],i=0,a=t.length;if(a<=r)return String.fromCharCode.apply(null,t);for(;i<a;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},applyCanBeUsed:{uint8array:function(){try{return e.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return e.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(t){return!1}}()}};function u(e){var r=65536,n=t.getTypeOf(e),i=!0;if("uint8array"===n?i=s.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=s.applyCanBeUsed.nodebuffer),i)for(;r>1;)try{return s.stringifyByChunk(e,n,r)}catch(t){r=Math.floor(r/2)}return s.stringifyByChar(e)}function l(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}t.applyFromCharCode=u;var f={};f.string={string:a,array:function(t){return o(t,new Array(t.length))},arraybuffer:function(t){return f.string.uint8array(t).buffer},uint8array:function(t){return o(t,new Uint8Array(t.length))},nodebuffer:function(t){return o(t,n.allocBuffer(t.length))}},f.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(t)}},f.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return l(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(new Uint8Array(t))}},f.uint8array={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return n.newBufferFrom(t)}},f.nodebuffer={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return f.nodebuffer.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:a},t.transformTo=function(e,r){if(r||(r=""),!e)return r;t.checkSupport(e);var n=t.getTypeOf(r);return f[n][e](r)},t.resolve=function(t){for(var e=t.split("/"),r=[],n=0;n<e.length;n++){var i=e[n];"."===i||""===i&&0!==n&&n!==e.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},t.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":e.nodebuffer&&n.isBuffer(t)?"nodebuffer":e.uint8array&&t instanceof Uint8Array?"uint8array":e.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(t){if(!e[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(t){var e,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return n},t.delay=function(t,e,r){setImmediate((function(){t.apply(r||null,e||[])}))},t.inherits=function(t,e){var r=function(){};r.prototype=e.prototype,t.prototype=new r},t.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===r[e]&&(r[e]=arguments[t][e]);return r},t.prepareContent=function(n,a,s,u,l){return i.Promise.resolve(a).then((function(t){return e.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new i.Promise((function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(a){var f,h=t.getTypeOf(a);return h?("arraybuffer"===h?a=t.transformTo("uint8array",a):"string"===h&&(l?a=r.decode(a):s&&!0!==u&&(a=o(f=a,e.uint8array?new Uint8Array(f.length):new Array(f.length)))),a):i.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}}(f)),f}function Pn(t){this.name=t||"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}!function(t,e){if(!t.setImmediate){var r,n,i,a,o,s=1,u={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){xt((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(n=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),r=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return u[s]=i,r(s),s++},h.clearImmediate=c}function c(t){delete u[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{c(t),l=!1}}}}}("undefined"==typeof self?n:self),Pn.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),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 t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},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 t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}};var Bn=Pn;!function(t){for(var e=In(),r=ht,n=On,i=Bn,a=new Array(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;a[254]=a[254]=1;function s(){i.call(this,"utf-8 decode"),this.leftOver=null}function u(){i.call(this,"utf-8 encode")}t.utf8encode=function(t){return r.nodebuffer?n.newBufferFrom(t,"utf-8"):function(t){var e,n,i,a,o,s=t.length,u=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(u):new Array(u),o=0,a=0;o<u;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e}(t)},t.utf8decode=function(t){return r.nodebuffer?e.transformTo("nodebuffer",t).toString("utf-8"):function(t){var r,n,i,o,s=t.length,u=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)u[n++]=i;else if((o=a[i])>4)u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),e.applyFromCharCode(u)}(t=e.transformTo(r.uint8array?"uint8array":"array",t))},e.inherits(s,i),s.prototype.processChunk=function(n){var i=e.transformTo(r.uint8array?"uint8array":"array",n.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=i;(i=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),i.set(o,this.leftOver.length)}else i=this.leftOver.concat(i);this.leftOver=null}var s=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+a[t[r]]>e?r:e}(i),u=i;s!==i.length&&(r.uint8array?(u=i.subarray(0,s),this.leftOver=i.subarray(s,i.length)):(u=i.slice(0,s),this.leftOver=i.slice(s,i.length))),this.push({data:t.utf8decode(u),meta:n.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=s,e.inherits(u,i),u.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=u}(l);var Dn=Bn,zn=In();function jn(t){Dn.call(this,"ConvertWorker to "+t),this.destType=t}zn.inherits(jn,Dn),jn.prototype.processChunk=function(t){this.push({data:zn.transformTo(this.destType,t.data),meta:t.meta})};var Fn,Nn,Un=jn;var Hn=In(),Wn=Un,Zn=Bn,qn=Sn(),Yn=Mn,Gn=null;if(ht.nodestream)try{Gn=function(){if(Nn)return Fn;Nn=1;var t=yn().Readable;function e(e,r,n){t.call(this,r),this._helper=e;var i=this;e.on("data",(function(t,e){i.push(t)||i._helper.pause(),n&&n(e)})).on("error",(function(t){i.emit("error",t)})).on("end",(function(){i.push(null)}))}return In().inherits(e,t),e.prototype._read=function(){this._helper.resume()},Fn=e}()}catch(t){}function Vn(t,e){return new Yn.Promise((function(r,n){var i=[],a=t._internalType,o=t._outputType,s=t._mimeType;t.on("data",(function(t,r){i.push(t),e&&e(r)})).on("error",(function(t){i=[],n(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return Hn.newBlob(Hn.transformTo("arraybuffer",e),r);case"base64":return qn.encode(e);default:return Hn.transformTo(t,e)}}(o,function(t,e){var r,n=0,i=null,a=0;for(r=0;r<e.length;r++)a+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(i=new Uint8Array(a),r=0;r<e.length;r++)i.set(e[r],n),n+=e[r].length;return i;case"nodebuffer":return A.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,i),s);r(t)}catch(t){n(t)}i=[]})).resume()}))}function Kn(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,Hn.checkSupport(n),this._worker=t.pipe(new Wn(n)),t.lock()}catch(t){this._worker=new Zn("error"),this._worker.error(t)}}Kn.prototype={accumulate:function(t){return Vn(this,t)},on:function(t,e){var r=this;return"data"===t?this._worker.on(t,(function(t){e.call(r,t.data,t.meta)})):this._worker.on(t,(function(){Hn.delay(e,arguments,r)})),this},resume:function(){return Hn.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(Hn.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new Gn(this,{objectMode:"nodebuffer"!==this._outputType},t)}};var Xn=Kn,$n={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null},Jn=In(),Qn=Bn;function ti(t){Qn.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=Jn.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}Jn.inherits(ti,Qn),ti.prototype.cleanUp=function(){Qn.prototype.cleanUp.call(this),this.data=null},ti.prototype.resume=function(){return!!Qn.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Jn.delay(this._tickAndRepeat,[],this)),!0)},ti.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Jn.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},ti.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};var ei=ti,ri=In();var ni=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var ii=function(t,e){return void 0!==t&&t.length?"string"!==ri.getTypeOf(t)?function(t,e,r,n){var i=ni,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e[o])];return-1^t}(0|e,t,t.length,0):function(t,e,r,n){var i=ni,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length,0):0},ai=Bn,oi=ii;function si(){ai.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}In().inherits(si,ai),si.prototype.processChunk=function(t){this.streamInfo.crc32=oi(t.data,this.streamInfo.crc32||0),this.push(t)};var ui=si,li=In(),fi=Bn;function hi(t){fi.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}li.inherits(hi,fi),hi.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}fi.prototype.processChunk.call(this,t)};var ci=Mn,di=ei,pi=ui,gi=hi;function bi(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i}bi.prototype={getContentWorker:function(){var t=new di(ci.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new gi("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new di(ci.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},bi.createWorkerFrom=function(t,e,r){return t.pipe(new pi).pipe(new gi("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new gi("compressedSize")).withStreamInfo("compression",e)};var vi=bi,mi=Xn,yi=ei,wi=l,_i=vi,ki=Bn,xi=function(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};xi.prototype={internalStream:function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(e=e.pipe(new wi.Utf8EncodeWorker)),!i&&n&&(e=e.pipe(new wi.Utf8DecodeWorker))}catch(t){(e=new ki("error")).error(t)}return new mi(e,r,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof _i&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new wi.Utf8EncodeWorker)),_i.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof _i?this._data.getContentWorker():this._data instanceof ki?this._data:new yi(this._data)}};for(var Si=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Ci=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Ai=0;Ai<Si.length;Ai++)xi.prototype[Si[Ai]]=Ci;var Ei=xi,Ri={},Oi={},Ti={},Li={};!function(t){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},t.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},i={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){return[].concat.apply([],t)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)}(Li);var Mi={},Ii={},Pi={},Bi=Li;function Di(t){for(var e=t.length;--e>=0;)t[e]=0}var zi=[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],ji=[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],Fi=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ni=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ui=new Array(576);Di(Ui);var Hi=new Array(60);Di(Hi);var Wi=new Array(512);Di(Wi);var Zi=new Array(256);Di(Zi);var qi=new Array(29);Di(qi);var Yi,Gi,Vi,Ki=new Array(30);function Xi(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function $i(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function Ji(t){return t<256?Wi[t]:Wi[256+(t>>>7)]}function Qi(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function ta(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,Qi(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function ea(t,e,r){ta(t,r[2*e],r[2*e+1])}function ra(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function na(t,e,r){var n,i,a=new Array(16),o=0;for(n=1;n<=15;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=ra(a[s]++,s))}}function ia(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function aa(t){t.bi_valid>8?Qi(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function oa(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function sa(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&oa(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!oa(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function ua(t,e,r){var n,i,a,o,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?ea(t,i,e):(ea(t,(a=Zi[i])+256+1,e),0!==(o=zi[a])&&ta(t,i-=qi[a],o),ea(t,a=Ji(--n),r),0!==(o=ji[a])&&ta(t,n-=Ki[a],o))}while(s<t.last_lit);ea(t,256,e)}function la(t,e){var r,n,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<u;r++)0!==a[2*r]?(t.heap[++t.heap_len]=l=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=l,r=t.heap_len>>1;r>=1;r--)sa(t,a,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],sa(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,sa(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,u=e.dyn_tree,l=e.max_code,f=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(a=0;a<=15;a++)t.bl_count[a]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(a=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(a=p,g++),u[2*n+1]=a,n>l||(t.bl_count[a]++,o=0,n>=d&&(o=c[n-d]),s=u[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(f[2*n+1]+o)));if(0!==g){do{for(a=p-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(a=p;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>l||(u[2*i+1]!==a&&(t.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),n--)}}(t,e),na(a,l,t.bl_count)}function fa(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function ha(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<l)do{ea(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(ea(t,i,t.bl_tree),s--),ea(t,16,t.bl_tree),ta(t,s-3,2)):s<=10?(ea(t,17,t.bl_tree),ta(t,s-3,3)):(ea(t,18,t.bl_tree),ta(t,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}Di(Ki);var ca=!1;function da(t,e,r,n){ta(t,0+(n?1:0),3),function(t,e,r,n){aa(t),n&&(Qi(t,r),Qi(t,~r)),Bi.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}Pi._tr_init=function(t){ca||(!function(){var t,e,r,n,i,a=new Array(16);for(r=0,n=0;n<28;n++)for(qi[n]=r,t=0;t<1<<zi[n];t++)Zi[r++]=n;for(Zi[r-1]=n,i=0,n=0;n<16;n++)for(Ki[n]=i,t=0;t<1<<ji[n];t++)Wi[i++]=n;for(i>>=7;n<30;n++)for(Ki[n]=i<<7,t=0;t<1<<ji[n]-7;t++)Wi[256+i++]=n;for(e=0;e<=15;e++)a[e]=0;for(t=0;t<=143;)Ui[2*t+1]=8,t++,a[8]++;for(;t<=255;)Ui[2*t+1]=9,t++,a[9]++;for(;t<=279;)Ui[2*t+1]=7,t++,a[7]++;for(;t<=287;)Ui[2*t+1]=8,t++,a[8]++;for(na(Ui,287,a),t=0;t<30;t++)Hi[2*t+1]=5,Hi[2*t]=ra(t,5);Yi=new Xi(Ui,zi,257,286,15),Gi=new Xi(Hi,ji,0,30,15),Vi=new Xi(new Array(0),Fi,0,19,7)}(),ca=!0),t.l_desc=new $i(t.dyn_ltree,Yi),t.d_desc=new $i(t.dyn_dtree,Gi),t.bl_desc=new $i(t.bl_tree,Vi),t.bi_buf=0,t.bi_valid=0,ia(t)},Pi._tr_stored_block=da,Pi._tr_flush_block=function(t,e,r,n){var i,a,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),la(t,t.l_desc),la(t,t.d_desc),o=function(t){var e;for(fa(t,t.dyn_ltree,t.l_desc.max_code),fa(t,t.dyn_dtree,t.d_desc.max_code),la(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*Ni[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?da(t,e,r,n):4===t.strategy||a===i?(ta(t,2+(n?1:0),3),ua(t,Ui,Hi)):(ta(t,4+(n?1:0),3),function(t,e,r,n){var i;for(ta(t,e-257,5),ta(t,r-1,5),ta(t,n-4,4),i=0;i<n;i++)ta(t,t.bl_tree[2*Ni[i]+1],3);ha(t,t.dyn_ltree,e-1),ha(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),ua(t,t.dyn_ltree,t.dyn_dtree)),ia(t),n&&aa(t)},Pi._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(Zi[r]+256+1)]++,t.dyn_dtree[2*Ji(e)]++),t.last_lit===t.lit_bufsize-1},Pi._tr_align=function(t){ta(t,2,3),ea(t,256,Ui),function(t){16===t.bi_valid?(Qi(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)};var pa=function(t,e,r,n){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0};var ga=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var ba,va=function(t,e,r,n){var i=ga,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e[o])];return-1^t},ma={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"},ya=Li,wa=Pi,_a=pa,ka=va,xa=ma;function Sa(t,e){return t.msg=xa[e],e}function Ca(t){return(t<<1)-(t>4?9:0)}function Aa(t){for(var e=t.length;--e>=0;)t[e]=0}function Ea(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(ya.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function Ra(t,e){wa._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Ea(t.strm)}function Oa(t,e){t.pending_buf[t.pending++]=e}function Ta(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function La(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,l=t.window,f=t.w_mask,h=t.prev,c=t.strstart+258,d=l[a+o-1],p=l[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(r=e)+o]===p&&l[r+o-1]===d&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<c);if(n=258-(c-a),a=c-258,n>o){if(t.match_start=e,o=n,n>=s)break;d=l[a+o-1],p=l[a+o]}}}while((e=h[e&f])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function Ma(t){var e,r,n,i,a,o,s,u,l,f,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-262)){ya.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=h?n-h:0}while(--r);e=r=h;do{n=t.prev[--e],t.prev[e]=n>=h?n-h:0}while(--r);i+=h}if(0===t.strm.avail_in)break;if(o=t.strm,s=t.window,u=t.strstart+t.lookahead,l=i,f=void 0,(f=o.avail_in)>l&&(f=l),r=0===f?0:(o.avail_in-=f,ya.arraySet(s,o.input,o.next_in,f,u),1===o.state.wrap?o.adler=_a(o.adler,s,f,u):2===o.state.wrap&&(o.adler=ka(o.adler,s,f,u)),o.next_in+=f,o.total_in+=f,f),t.lookahead+=r,t.lookahead+t.insert>=3)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+3-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function Ia(t,e){for(var r,n;;){if(t.lookahead<262){if(Ma(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=La(t,r)),t.match_length>=3)if(n=wa._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=wa._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ra(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ra(t,!1),0===t.strm.avail_out)?1:2}function Pa(t,e){for(var r,n,i;;){if(t.lookahead<262){if(Ma(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=La(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=wa._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ra(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=wa._tr_tally(t,0,t.window[t.strstart-1]))&&Ra(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=wa._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ra(t,!1),0===t.strm.avail_out)?1:2}function Ba(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function Da(){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 ya.Buf16(1146),this.dyn_dtree=new ya.Buf16(122),this.bl_tree=new ya.Buf16(78),Aa(this.dyn_ltree),Aa(this.dyn_dtree),Aa(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ya.Buf16(16),this.heap=new ya.Buf16(573),Aa(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ya.Buf16(573),Aa(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 za(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,wa._tr_init(e),0):Sa(t,-2)}function ja(t){var e,r=za(t);return 0===r&&((e=t.state).window_size=2*e.w_size,Aa(e.head),e.max_lazy_match=ba[e.level].max_lazy,e.good_match=ba[e.level].good_length,e.nice_match=ba[e.level].nice_length,e.max_chain_length=ba[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function Fa(t,e,r,n,i,a){if(!t)return-2;var o=1;if(-1===e&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return Sa(t,-2);8===n&&(n=9);var s=new Da;return t.state=s,s.strm=t,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new ya.Buf8(2*s.w_size),s.head=new ya.Buf16(s.hash_size),s.prev=new ya.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new ya.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=a,s.method=r,ja(t)}ba=[new Ba(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Ma(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ra(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(Ra(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ra(t,!1),t.strm.avail_out),1)})),new Ba(4,4,8,4,Ia),new Ba(4,5,16,8,Ia),new Ba(4,6,32,32,Ia),new Ba(4,4,16,16,Pa),new Ba(8,16,32,32,Pa),new Ba(8,16,128,128,Pa),new Ba(8,32,128,256,Pa),new Ba(32,128,258,1024,Pa),new Ba(32,258,258,4096,Pa)],Ii.deflateInit=function(t,e){return Fa(t,e,8,15,8,0)},Ii.deflateInit2=Fa,Ii.deflateReset=ja,Ii.deflateResetKeep=za,Ii.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},Ii.deflate=function(t,e){var r,n,i,a;if(!t||!t.state||e>5||e<0)return t?Sa(t,-2):-2;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&4!==e)return Sa(t,0===t.avail_out?-5:-2);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Oa(n,31),Oa(n,139),Oa(n,8),n.gzhead?(Oa(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)),Oa(n,255&n.gzhead.time),Oa(n,n.gzhead.time>>8&255),Oa(n,n.gzhead.time>>16&255),Oa(n,n.gzhead.time>>24&255),Oa(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Oa(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Oa(n,255&n.gzhead.extra.length),Oa(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=ka(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Oa(n,0),Oa(n,0),Oa(n,0),Oa(n,0),Oa(n,0),Oa(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Oa(n,3),n.status=113);else{var o=8+(n.w_bits-8<<4)<<8;o|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=113,Ta(n,o),0!==n.strstart&&(Ta(n,t.adler>>>16),Ta(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),Ea(t),i=n.pending,n.pending!==n.pending_buf_size));)Oa(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),Ea(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Oa(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),Ea(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Oa(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=ka(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Ea(t),n.pending+2<=n.pending_buf_size&&(Oa(n,255&t.adler),Oa(n,t.adler>>8&255),t.adler=0,n.status=113)):n.status=113),0!==n.pending){if(Ea(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&Ca(e)<=Ca(r)&&4!==e)return Sa(t,-5);if(666===n.status&&0!==t.avail_in)return Sa(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(Ma(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=wa._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Ra(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ra(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,i,a,o=t.window;;){if(t.lookahead<=258){if(Ma(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=o[i=t.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=t.strstart+258;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=wa._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=wa._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Ra(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ra(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ra(t,!1),0===t.strm.avail_out)?1:2}(n,e):ba[n.level].func(n,e);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?wa._tr_align(n):5!==e&&(wa._tr_stored_block(n,0,0,!1),3===e&&(Aa(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Ea(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Oa(n,255&t.adler),Oa(n,t.adler>>8&255),Oa(n,t.adler>>16&255),Oa(n,t.adler>>24&255),Oa(n,255&t.total_in),Oa(n,t.total_in>>8&255),Oa(n,t.total_in>>16&255),Oa(n,t.total_in>>24&255)):(Ta(n,t.adler>>>16),Ta(n,65535&t.adler)),Ea(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},Ii.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?Sa(t,-2):(t.state=null,113===e?Sa(t,-3):0):-2},Ii.deflateSetDictionary=function(t,e){var r,n,i,a,o,s,u,l,f=e.length;if(!t||!t.state)return-2;if(2===(a=(r=t.state).wrap)||1===a&&42!==r.status||r.lookahead)return-2;for(1===a&&(t.adler=_a(t.adler,e,f,0)),r.wrap=0,f>=r.w_size&&(0===a&&(Aa(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new ya.Buf8(r.w_size),ya.arraySet(l,e,f-r.w_size,r.w_size,0),e=l,f=r.w_size),o=t.avail_in,s=t.next_in,u=t.input,t.avail_in=f,t.next_in=0,t.input=e,Ma(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,Ma(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,t.next_in=s,t.input=u,t.avail_in=o,r.wrap=a,0},Ii.deflateInfo="pako deflate (from Nodeca project)";var Na={},Ua=Li,Ha=!0,Wa=!0;try{String.fromCharCode.apply(null,[0])}catch(t){Ha=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Wa=!1}for(var Za=new Ua.Buf8(256),qa=0;qa<256;qa++)Za[qa]=qa>=252?6:qa>=248?5:qa>=240?4:qa>=224?3:qa>=192?2:1;function Ya(t,e){if(e<65534&&(t.subarray&&Wa||!t.subarray&&Ha))return String.fromCharCode.apply(null,Ua.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}Za[254]=Za[254]=1,Na.string2buf=function(t){var e,r,n,i,a,o=t.length,s=0;for(i=0;i<o;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Ua.Buf8(s),a=0,i=0;a<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},Na.buf2binstring=function(t){return Ya(t,t.length)},Na.binstring2buf=function(t){for(var e=new Ua.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},Na.buf2string=function(t,e){var r,n,i,a,o=e||t.length,s=new Array(2*o);for(n=0,r=0;r<o;)if((i=t[r++])<128)s[n++]=i;else if((a=Za[i])>4)s[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&r<o;)i=i<<6|63&t[r++],a--;a>1?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return Ya(s,n)},Na.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Za[t[r]]>e?r:e};var Ga=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},Va=Ii,Ka=Li,Xa=Na,$a=ma,Ja=Ga,Qa=Object.prototype.toString;function to(t){if(!(this instanceof to))return new to(t);this.options=Ka.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ja,this.strm.avail_out=0;var r=Va.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error($a[r]);if(e.header&&Va.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?Xa.string2buf(e.dictionary):"[object ArrayBuffer]"===Qa.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=Va.deflateSetDictionary(this.strm,n)))throw new Error($a[r]);this._dict_set=!0}}function eo(t,e){var r=new to(e);if(r.push(t,!0),r.err)throw r.msg||$a[r.err];return r.result}to.prototype.push=function(t,e){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=Xa.string2buf(t):"[object ArrayBuffer]"===Qa.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new Ka.Buf8(a),i.next_out=0,i.avail_out=a),1!==(r=Va.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(Xa.buf2binstring(Ka.shrinkBuf(i.output,i.next_out))):this.onData(Ka.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==r);return 4===n?(r=Va.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),i.avail_out=0,!0)},to.prototype.onData=function(t){this.chunks.push(t)},to.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ka.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},Mi.Deflate=to,Mi.deflate=eo,Mi.deflateRaw=function(t,e){return(e=e||{}).raw=!0,eo(t,e)},Mi.gzip=function(t,e){return(e=e||{}).gzip=!0,eo(t,e)};var ro={},no={},io=Li,ao=[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],oo=[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],so=[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],uo=[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],lo=Li,fo=pa,ho=va,co=function(t,e){var r,n,i,a,o,s,u,l,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A;r=t.state,n=t.next_in,C=t.input,i=n+(t.avail_in-5),a=t.next_out,A=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,l=r.wsize,f=r.whave,h=r.wnext,c=r.window,d=r.hold,p=r.bits,g=r.lencode,b=r.distcode,v=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;t:do{p<15&&(d+=C[n++]<<p,p+=8,d+=C[n++]<<p,p+=8),y=g[d&v];e:for(;;){if(d>>>=w=y>>>24,p-=w,0===(w=y>>>16&255))A[a++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=g[(65535&y)+(d&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=65535&y,(w&=15)&&(p<w&&(d+=C[n++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=C[n++]<<p,p+=8,d+=C[n++]<<p,p+=8),y=b[d&m];r:for(;;){if(d>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=b[(65535&y)+(d&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&y,p<(w&=15)&&(d+=C[n++]<<p,(p+=8)<w&&(d+=C[n++]<<p,p+=8)),(k+=d&(1<<w)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=w,p-=w,k>(w=a-o)){if((w=k-w)>f&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(x=0,S=c,0===h){if(x+=l-w,w<_){_-=w;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}}else if(h<w){if(x+=l+h-w,(w-=h)<_){_-=w;do{A[a++]=c[x++]}while(--w);if(x=0,h<_){_-=w=h;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}}}else if(x+=h-w,w<_){_-=w;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}for(;_>2;)A[a++]=S[x++],A[a++]=S[x++],A[a++]=S[x++],_-=3;_&&(A[a++]=S[x++],_>1&&(A[a++]=S[x++]))}else{x=a-k;do{A[a++]=A[x++],A[a++]=A[x++],A[a++]=A[x++],_-=3}while(_>2);_&&(A[a++]=A[x++],_>1&&(A[a++]=A[x++]))}break}}break}}while(n<i&&a<s);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=d,r.bits=p},po=function(t,e,r,n,i,a,o,s){var u,l,f,h,c,d,p,g,b,v=s.bits,m=0,y=0,w=0,_=0,k=0,x=0,S=0,C=0,A=0,E=0,R=null,O=0,T=new io.Buf16(16),L=new io.Buf16(16),M=null,I=0;for(m=0;m<=15;m++)T[m]=0;for(y=0;y<n;y++)T[e[r+y]]++;for(k=v,_=15;_>=1&&0===T[_];_--);if(k>_&&(k=_),0===_)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(w=1;w<_&&0===T[w];w++);for(k<w&&(k=w),C=1,m=1;m<=15;m++)if(C<<=1,(C-=T[m])<0)return-1;if(C>0&&(0===t||1!==_))return-1;for(L[1]=0,m=1;m<15;m++)L[m+1]=L[m]+T[m];for(y=0;y<n;y++)0!==e[r+y]&&(o[L[e[r+y]]++]=y);if(0===t?(R=M=o,d=19):1===t?(R=ao,O-=257,M=oo,I-=257,d=256):(R=so,M=uo,d=-1),E=0,y=0,m=w,c=a,x=k,S=0,f=-1,h=(A=1<<k)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){p=m-S,o[y]<d?(g=0,b=o[y]):o[y]>d?(g=M[I+o[y]],b=R[O+o[y]]):(g=96,b=0),u=1<<m-S,w=l=1<<x;do{i[c+(E>>S)+(l-=u)]=p<<24|g<<16|b|0}while(0!==l);for(u=1<<m-1;E&u;)u>>=1;if(0!==u?(E&=u-1,E+=u):E=0,y++,0==--T[m]){if(m===_)break;m=e[r+o[y]]}if(m>k&&(E&h)!==f){for(0===S&&(S=k),c+=w,C=1<<(x=m-S);x+S<_&&!((C-=T[x+S])<=0);)x++,C<<=1;if(A+=1<<x,1===t&&A>852||2===t&&A>592)return 1;i[f=E&h]=k<<24|x<<16|c-a|0}}return 0!==E&&(i[c+E]=m-S<<24|64<<16|0),s.bits=k,0};function go(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function bo(){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 lo.Buf16(320),this.work=new lo.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function vo(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new lo.Buf32(852),e.distcode=e.distdyn=new lo.Buf32(592),e.sane=1,e.back=-1,0):-2}function mo(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,vo(t)):-2}function yo(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,mo(t))):-2}function wo(t,e){var r,n;return t?(n=new bo,t.state=n,n.window=null,0!==(r=yo(t,e))&&(t.state=null),r):-2}var _o,ko,xo=!0;function So(t){if(xo){var e;for(_o=new lo.Buf32(512),ko=new lo.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(po(1,t.lens,0,288,_o,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;po(2,t.lens,0,32,ko,0,t.work,{bits:5}),xo=!1}t.lencode=_o,t.lenbits=9,t.distcode=ko,t.distbits=5}function Co(t,e,r,n){var i,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new lo.Buf8(a.wsize)),n>=a.wsize?(lo.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>n&&(i=n),lo.arraySet(a.window,e,r-n,i,a.wnext),(n-=i)?(lo.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}no.inflateReset=mo,no.inflateReset2=yo,no.inflateResetKeep=vo,no.inflateInit=function(t){return wo(t,15)},no.inflateInit2=wo,no.inflate=function(t,e){var r,n,i,a,o,s,u,l,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A=0,E=new lo.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(r=t.state).mode&&(r.mode=13),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,l=r.hold,f=r.bits,h=s,c=u,x=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(2&r.wrap&&35615===l){r.check=0,E[0]=255&l,E[1]=l>>>8&255,r.check=ho(r.check,E,2,0),l=0,f=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&l)){t.msg="unknown compression method",r.mode=30;break}if(f-=4,k=8+(15&(l>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&l?10:12,l=0,f=0;break;case 2:for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(r.flags=l,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=ho(r.check,E,2,0)),l=0,f=0,r.mode=3;case 3:for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.head&&(r.head.time=l),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,r.check=ho(r.check,E,4,0)),l=0,f=0,r.mode=4;case 4:for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.head&&(r.head.xflags=255&l,r.head.os=l>>8),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=ho(r.check,E,2,0)),l=0,f=0,r.mode=5;case 5:if(1024&r.flags){for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.length=l,r.head&&(r.head.extra_len=l),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=ho(r.check,E,2,0)),l=0,f=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=r.length)>s&&(d=s),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),lo.arraySet(r.head.extra,n,a,d,k)),512&r.flags&&(r.check=ho(r.check,n,d,a)),s-=d,a+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;d=0;do{k=n[a+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=ho(r.check,n,d,a)),s-=d,a+=d,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break t;d=0;do{k=n[a+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=ho(r.check,n,d,a)),s-=d,a+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}t.adler=r.check=go(l),l=0,f=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){l>>>=7&f,f-=7&f,r.mode=27;break}for(;f<3;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}switch(r.last=1&l,f-=1,3&(l>>>=1)){case 0:r.mode=14;break;case 1:if(So(r),r.mode=20,6===e){l>>>=2,f-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}l>>>=2,f-=2;break;case 14:for(l>>>=7&f,f-=7&f;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if((65535&l)!=(l>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&l,l=0,f=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;lo.arraySet(i,n,a,d,o),s-=d,a+=d,u-=d,o+=d,r.length-=d;break}r.mode=12;break;case 17:for(;f<14;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(r.nlen=257+(31&l),l>>>=5,f-=5,r.ndist=1+(31&l),l>>>=5,f-=5,r.ncode=4+(15&l),l>>>=4,f-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;f<3;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.lens[R[r.have++]]=7&l,l>>>=3,f-=3}for(;r.have<19;)r.lens[R[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=po(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;v=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,m=65535&A,!((b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(m<16)l>>>=b,f-=b,r.lens[r.have++]=m;else{if(16===m){for(C=b+2;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l>>>=b,f-=b,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&l),l>>>=2,f-=2}else if(17===m){for(C=b+3;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}f-=b,k=0,d=3+(7&(l>>>=b)),l>>>=3,f-=3}else{for(C=b+7;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}f-=b,k=0,d=11+(127&(l>>>=b)),l>>>=7,f-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=po(1,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=po(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(s>=6&&u>=258){t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,co(t,c),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,l=r.hold,f=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;v=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,m=65535&A,!((b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(v&&0==(240&v)){for(y=b,w=v,_=m;v=(A=r.lencode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,m=65535&A,!(y+(b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}l>>>=y,f-=y,r.back+=y}if(l>>>=b,f-=b,r.back+=b,r.length=m,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=12;break}if(64&v){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(C=r.extra;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(A=r.distcode[l&(1<<r.distbits)-1])>>>16&255,m=65535&A,!((b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(0==(240&v)){for(y=b,w=v,_=m;v=(A=r.distcode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,m=65535&A,!(y+(b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}l>>>=y,f-=y,r.back+=y}if(l>>>=b,f-=b,r.back+=b,64&v){t.msg="invalid distance code",r.mode=30;break}r.offset=m,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(C=r.extra;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===u)break t;if(d=c-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),g=r.window}else g=i,p=o-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[o++]=g[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;i[o++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;f<32;){if(0===s)break t;s--,l|=n[a++]<<f,f+=8}if(c-=u,t.total_out+=c,r.total+=c,c&&(t.adler=r.check=r.flags?ho(r.check,i,c,o-c):fo(r.check,i,c,o-c)),c=u,(r.flags?l:go(l))!==r.check){t.msg="incorrect data check",r.mode=30;break}l=0,f=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}l=0,f=0}r.mode=29;case 29:x=1;break t;case 30:x=-3;break t;case 31:return-4;default:return-2}return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,(r.wsize||c!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&Co(t,t.output,t.next_out,c-t.avail_out),h-=t.avail_in,c-=t.avail_out,t.total_in+=h,t.total_out+=c,r.total+=c,r.wrap&&c&&(t.adler=r.check=r.flags?ho(r.check,i,c,t.next_out-c):fo(r.check,i,c,t.next_out-c)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===h&&0===c||4===e)&&0===x&&(x=-5),x},no.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},no.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?-2:(r.head=e,e.done=!1,0):-2},no.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?-2:11===r.mode&&fo(1,e,n,0)!==r.check?-3:Co(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},no.inflateInfo="pako inflate (from Nodeca project)";var Ao={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 Eo=no,Ro=Li,Oo=Na,To=Ao,Lo=ma,Mo=Ga,Io=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},Po=Object.prototype.toString;function Bo(t){if(!(this instanceof Bo))return new Bo(t);this.options=Ro.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Mo,this.strm.avail_out=0;var r=Eo.inflateInit2(this.strm,e.windowBits);if(r!==To.Z_OK)throw new Error(Lo[r]);if(this.header=new Io,Eo.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Oo.string2buf(e.dictionary):"[object ArrayBuffer]"===Po.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Eo.inflateSetDictionary(this.strm,e.dictionary))!==To.Z_OK))throw new Error(Lo[r])}function Do(t,e){var r=new Bo(e);if(r.push(t,!0),r.err)throw r.msg||Lo[r.err];return r.result}Bo.prototype.push=function(t,e){var r,n,i,a,o,s=this.strm,u=this.options.chunkSize,l=this.options.dictionary,f=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?To.Z_FINISH:To.Z_NO_FLUSH,"string"==typeof t?s.input=Oo.binstring2buf(t):"[object ArrayBuffer]"===Po.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Ro.Buf8(u),s.next_out=0,s.avail_out=u),(r=Eo.inflate(s,To.Z_NO_FLUSH))===To.Z_NEED_DICT&&l&&(r=Eo.inflateSetDictionary(this.strm,l)),r===To.Z_BUF_ERROR&&!0===f&&(r=To.Z_OK,f=!1),r!==To.Z_STREAM_END&&r!==To.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==To.Z_STREAM_END&&(0!==s.avail_in||n!==To.Z_FINISH&&n!==To.Z_SYNC_FLUSH)||("string"===this.options.to?(i=Oo.utf8border(s.output,s.next_out),a=s.next_out-i,o=Oo.buf2string(s.output,i),s.next_out=a,s.avail_out=u-a,a&&Ro.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(Ro.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(f=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==To.Z_STREAM_END);return r===To.Z_STREAM_END&&(n=To.Z_FINISH),n===To.Z_FINISH?(r=Eo.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===To.Z_OK):n!==To.Z_SYNC_FLUSH||(this.onEnd(To.Z_OK),s.avail_out=0,!0)},Bo.prototype.onData=function(t){this.chunks.push(t)},Bo.prototype.onEnd=function(t){t===To.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ro.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},ro.Inflate=Bo,ro.inflate=Do,ro.inflateRaw=function(t,e){return(e=e||{}).raw=!0,Do(t,e)},ro.ungzip=Do;var zo={};(0,Li.assign)(zo,Mi,ro,Ao);var jo="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,Fo=zo,No=In(),Uo=Bn,Ho=jo?"uint8array":"array";function Wo(t,e){Uo.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}Ti.magic="\b\0",No.inherits(Wo,Uo),Wo.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(No.transformTo(Ho,t.data),!1)},Wo.prototype.flush=function(){Uo.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},Wo.prototype.cleanUp=function(){Uo.prototype.cleanUp.call(this),this._pako=null},Wo.prototype._createPako=function(){this._pako=new Fo[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Ti.compressWorker=function(t){return new Wo("Deflate",t)},Ti.uncompressWorker=function(){return new Wo("Inflate",{})};var Zo=Bn;Oi.STORE={magic:"\0\0",compressWorker:function(){return new Zo("STORE compression")},uncompressWorker:function(){return new Zo("STORE decompression")}},Oi.DEFLATE=Ti;var qo={LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\b"},Yo=In(),Go=Bn,Vo=l,Ko=ii,Xo=qo,$o=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},Jo=function(t,e,r,n,i,a){var o,s,u=t.file,l=t.compression,f=a!==Vo.utf8encode,h=Yo.transformTo("string",a(u.name)),c=Yo.transformTo("string",Vo.utf8encode(u.name)),d=u.comment,p=Yo.transformTo("string",a(d)),g=Yo.transformTo("string",Vo.utf8encode(d)),b=c.length!==u.name.length,v=g.length!==d.length,m="",y="",w="",_=u.dir,k=u.date,x={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(x.crc32=t.crc32,x.compressedSize=t.compressedSize,x.uncompressedSize=t.uncompressedSize);var S=0;e&&(S|=8),f||!b&&!v||(S|=2048);var C,A,E,R=0,O=0;_&&(R|=16),"UNIX"===i?(O=798,R|=(C=u.unixPermissions,A=_,E=C,C||(E=A?16893:33204),(65535&E)<<16)):(O=20,R|=63&(u.dosPermissions||0)),o=k.getUTCHours(),o<<=6,o|=k.getUTCMinutes(),o<<=5,o|=k.getUTCSeconds()/2,s=k.getUTCFullYear()-1980,s<<=4,s|=k.getUTCMonth()+1,s<<=5,s|=k.getUTCDate(),b&&(y=$o(1,1)+$o(Ko(h),4)+c,m+="up"+$o(y.length,2)+y),v&&(w=$o(1,1)+$o(Ko(p),4)+g,m+="uc"+$o(w.length,2)+w);var T="";return T+="\n\0",T+=$o(S,2),T+=l.magic,T+=$o(o,2),T+=$o(s,2),T+=$o(x.crc32,4),T+=$o(x.compressedSize,4),T+=$o(x.uncompressedSize,4),T+=$o(h.length,2),T+=$o(m.length,2),{fileRecord:Xo.LOCAL_FILE_HEADER+T+h+m,dirRecord:Xo.CENTRAL_FILE_HEADER+$o(O,2)+T+$o(p.length,2)+"\0\0\0\0"+$o(R,4)+$o(n,4)+h+m+p}},Qo=function(t){return Xo.DATA_DESCRIPTOR+$o(t.crc32,4)+$o(t.compressedSize,4)+$o(t.uncompressedSize,4)};function ts(t,e,r,n){Go.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Yo.inherits(ts,Go),ts.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,Go.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},ts.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=Jo(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},ts.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=Jo(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:Qo(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},ts.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r=this.bytesWritten-t,n=function(t,e,r,n,i){var a=Yo.transformTo("string",i(n));return Xo.CENTRAL_DIRECTORY_END+"\0\0\0\0"+$o(t,2)+$o(t,2)+$o(e,4)+$o(r,4)+$o(a.length,2)+a}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},ts.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},ts.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},ts.prototype.resume=function(){return!!Go.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},ts.prototype.error=function(t){var e=this._sources;if(!Go.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},ts.prototype.lock=function(){Go.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()};var es=Oi,rs=ts;Ri.generateWorker=function(t,e,r){var n=new rs(e.streamFiles,r,e.platform,e.encodeFileName),i=0;try{t.forEach((function(t,r){i++;var a=function(t,e){var r=t||e,n=es[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,e.compression),o=r.options.compressionOptions||e.compressionOptions||{},s=r.dir,u=r.date;r._compressWorker(a,o).withStreamInfo("file",{name:t,dir:s,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=i}catch(t){n.error(t)}return n};var ns=In(),is=Bn;function as(t,e){is.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}ns.inherits(as,is),as.prototype._bindStream=function(t){var e=this;this._stream=t,t.pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},as.prototype.pause=function(){return!!is.prototype.pause.call(this)&&(this._stream.pause(),!0)},as.prototype.resume=function(){return!!is.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};var os=as,ss=l,us=In(),ls=Bn,fs=Xn,hs=$n,cs=vi,ds=Ei,ps=Ri,gs=On,bs=os,vs=function(t,e,r){var n,i=us.getTypeOf(e),a=us.extend(r||{},hs);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&&(t=ys(t)),a.createFolders&&(n=ms(t))&&ws.call(this,n,!0);var o="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!o),(e instanceof cs&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",i="string");var s=null;s=e instanceof cs||e instanceof ls?e:gs.isNode&&gs.isStream(e)?new bs(t,e):us.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var u=new ds(t,s,a);this.files[t]=u},ms=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},ys=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},ws=function(t,e){return e=void 0!==e?e:hs.createFolders,t=ys(t),this.files[t]||vs.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function _s(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var ks={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,r,n;for(e in this.files)n=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,n)},filter:function(t){var e=[];return this.forEach((function(r,n){t(r,n)&&e.push(n)})),e},file:function(t,e,r){if(1===arguments.length){if(_s(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var i=this.files[this.root+t];return i&&!i.dir?i:null}return t=this.root+t,vs.call(this,t,e,r),this},folder:function(t){if(!t)return this;if(_s(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=ws.call(this,e),n=this.clone();return n.root=r.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,r={};try{if((r=us.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:ss.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.");us.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||"";e=ps.generateWorker(this,r,n)}catch(t){(e=new ls("error")).error(t)}return new fs(e,r.type||"string",r.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}},xs=ks,Ss=In();function Cs(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}Cs.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return Ss.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}};var As=Cs,Es=As;function Rs(t){Es.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}In().inherits(Rs,Es),Rs.prototype.byteAt=function(t){return this.data[this.zero+t]},Rs.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===e&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},Rs.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.readData(4);return e===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},Rs.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Os=Rs,Ts=As;function Ls(t){Ts.call(this,t)}In().inherits(Ls,Ts),Ls.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},Ls.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},Ls.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},Ls.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Ms=Ls,Is=Os;function Ps(t){Is.call(this,t)}In().inherits(Ps,Is),Ps.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Bs=Ps,Ds=Bs;function zs(t){Ds.call(this,t)}In().inherits(zs,Ds),zs.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var js=zs,Fs=In(),Ns=ht,Us=Os,Hs=Ms,Ws=js,Zs=Bs,qs=function(t){var e=Fs.getTypeOf(t);return Fs.checkSupport(e),"string"!==e||Ns.uint8array?"nodebuffer"===e?new Ws(t):Ns.uint8array?new Zs(Fs.transformTo("uint8array",t)):new Us(Fs.transformTo("array",t)):new Hs(t)},Ys=qs,Gs=In(),Vs=vi,Ks=ii,Xs=l,$s=Oi,Js=ht;function Qs(t,e){this.options=t,this.loadOptions=e}Qs.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.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(e=function(t){for(var e in $s)if(Object.prototype.hasOwnProperty.call($s,e)&&$s[e].magic===t)return $s[e];return null}(this.compressionMethod),null===e)throw new Error("Corrupted zip : compression "+Gs.pretty(this.compressionMethod)+" unknown (inner file : "+Gs.transformTo("string",this.fileName)+")");this.decompressed=new Vs(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===t&&(this.dosPermissions=63&this.externalFileAttributes),3===t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=Ys(this.extraFields[1].value);this.uncompressedSize===Gs.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===Gs.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===Gs.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===Gs.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,r,n,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n};t.setIndex(i)},handleUTF8:function(){var t=Js.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Xs.utf8decode(this.fileName),this.fileCommentStr=Xs.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=Gs.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=Gs.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=Ys(t.value);return 1!==e.readInt(1)||Ks(this.fileName)!==e.readInt(4)?null:Xs.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=Ys(t.value);return 1!==e.readInt(1)||Ks(this.fileComment)!==e.readInt(4)?null:Xs.utf8decode(e.readData(t.length-5))}return null}};var tu=Qs,eu=qs,ru=In(),nu=qo,iu=tu,au=ht;function ou(t){this.files=[],this.loadOptions=t}ou.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+ru.pretty(e)+", expected "+ru.pretty(t)+")")}},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;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 t=this.reader.readData(this.zipCommentLength),e=au.uint8array?"uint8array":"array",r=ru.transformTo(e,t);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 t,e,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,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 t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(nu.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(nu.CENTRAL_FILE_HEADER);)(t=new iu({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);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 t=this.reader.lastIndexOfSignature(nu.CENTRAL_DIRECTORY_END);if(t<0)throw!this.isSignature(0,nu.LOCAL_FILE_HEADER)?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(t);var e=t;if(this.checkSignature(nu.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===ru.MAX_VALUE_16BITS||this.diskWithCentralDirStart===ru.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===ru.MAX_VALUE_16BITS||this.centralDirRecords===ru.MAX_VALUE_16BITS||this.centralDirSize===ru.MAX_VALUE_32BITS||this.centralDirOffset===ru.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(nu.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(nu.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,nu.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(nu.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(nu.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=e-r;if(n>0)this.isSignature(e,nu.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=eu(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var su=ou,uu=In(),lu=Mn,fu=l,hu=su,cu=ui,du=On;function pu(t){return new lu.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new cu);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}function gu(){if(!(this instanceof gu))return new gu;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new gu;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}gu.prototype=xs,gu.prototype.loadAsync=function(t,e){var r=this;return e=uu.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:fu.utf8decode}),du.isNode&&du.isStream(t)?lu.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):uu.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new hu(e);return r.load(t),r})).then((function(t){var r=[lu.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var i=0;i<n.length;i++)r.push(pu(n[i]));return lu.Promise.all(r)})).then((function(t){for(var n=t.shift(),i=n.files,a=0;a<i.length;a++){var o=i[a],s=o.fileNameStr,u=uu.resolve(o.fileNameStr);r.file(u,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:e.createFolders}),o.dir||(r.file(u).unsafeOriginalName=s)}return n.zipComment.length&&(r.comment=n.zipComment),r}))},gu.support=ht,gu.defaults=$n,gu.version="3.10.1",gu.loadAsync=function(t,e){return(new gu).loadAsync(t,e)},gu.external=Mn;var bu=gu;function vu(t){return vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vu(t)}function mu(t,e){var r=(e=e||{}).pos||0,n=!!e.keepComments,i=!!e.keepWhitespace,a="<".charCodeAt(0),o=">".charCodeAt(0),s="-".charCodeAt(0),u="/".charCodeAt(0),l="!".charCodeAt(0),f="'".charCodeAt(0),h='"'.charCodeAt(0),c="[".charCodeAt(0),d="]".charCodeAt(0);function p(e){for(var f=[];t[r];)if(t.charCodeAt(r)==a){if(t.charCodeAt(r+1)===u){var h=r+2;if(r=t.indexOf(">",r),-1==t.substring(h,r).indexOf(e)){var p=t.substring(0,r).split("\n");throw new Error("Unexpected close tag\nLine: "+(p.length-1)+"\nColumn: "+(p[p.length-1].length+1)+"\nChar: "+t[r])}return r+1&&(r+=1),f}if(t.charCodeAt(r+1)===l){if(t.charCodeAt(r+2)==s){const e=r;for(;-1!==r&&(t.charCodeAt(r)!==o||t.charCodeAt(r-1)!=s||t.charCodeAt(r-2)!=s||-1==r);)r=t.indexOf(">",r+1);-1===r&&(r=t.length),n&&f.push(t.substring(e,r+1))}else{if(t.charCodeAt(r+2)===c&&t.charCodeAt(r+8)===c&&"cdata"===t.substr(r+3,5).toLowerCase()){var b=t.indexOf("]]>",r);-1==b?(f.push(t.substr(r+9)),r=t.length):(f.push(t.substring(r+9,b)),r=b+3);continue}{const e=r+1;r+=2;for(var v=!1;(t.charCodeAt(r)!==o||!0===v)&&t[r];)t.charCodeAt(r)===c?v=!0:!0===v&&t.charCodeAt(r)===d&&(v=!1),r++;f.push(t.substring(e,r))}}r++;continue}var y=m();f.push(y),"?"===y.tagName[0]&&(f.push(...y.children),y.children=[])}else{var w=g();if(i)w.length>0&&f.push(w);else{var _=w.trim();_.length>0&&f.push(_)}r++}return f}function g(){var e=r;return-2===(r=t.indexOf("<",r)-1)&&(r=t.length),t.slice(e,r+1)}function b(){for(var e=r;-1==="\r\n\t>/= ".indexOf(t[r])&&t[r];)r++;return t.slice(e,r)}var v=e.noChildNodes||["img","br","input","meta","link","hr"];function m(){r++;const e=b(),n={};let i=[];for(;t.charCodeAt(r)!==o&&t[r];){var a=t.charCodeAt(r);if(a>64&&a<91||a>96&&a<123){for(var s=b(),l=t.charCodeAt(r);l&&l!==f&&l!==h&&!(l>64&&l<91||l>96&&l<123)&&l!==o;)r++,l=t.charCodeAt(r);if(l===f||l===h){var c=y();if(-1===r)return{tagName:e,attributes:n,children:i}}else c=null,r--;n[s]=c}r++}if(t.charCodeAt(r-1)!==u)if("script"==e){var d=r+1;r=t.indexOf("<\/script>",r),i=[t.slice(d,r)],r+=9}else if("style"==e){d=r+1;r=t.indexOf("</style>",r),i=[t.slice(d,r)],r+=8}else-1===v.indexOf(e)?(r++,i=p(e)):r++;else r++;return{tagName:e,attributes:n,children:i}}function y(){var e=t[r],n=r+1;return r=t.indexOf(e,n),t.slice(n,r)}var w,_=null;if(void 0!==e.attrValue){e.attrName=e.attrName||"id";for(_=[];-1!==(w=void 0,w=new RegExp("\\s"+e.attrName+"\\s*=['\"]"+e.attrValue+"['\"]").exec(t),r=w?w.index:-1);)-1!==(r=t.lastIndexOf("<",r))&&_.push(m()),t=t.substr(r),r=0}else _=e.parseNode?m():p("");return e.filter&&(_=wu(_,e.filter)),e.simplify?yu(Array.isArray(_)?_:[_]):(e.setPos&&(_.pos=r),_)}function yu(t){var e={};if(!t.length)return"";if(1===t.length&&"string"==typeof t[0])return t[0];for(var r in t.forEach((function(t){if("object"==typeof t){e[t.tagName]||(e[t.tagName]=[]);var r=yu(t.children);e[t.tagName].push(r),Object.keys(t.attributes).length&&"string"!=typeof r&&(r._attributes=t.attributes)}})),e)1==e[r].length&&(e[r]=e[r][0]);return e}function wu(t,e,r=0,n=""){var i=[];return t.forEach((function(t,a){if("object"==typeof t&&e(t,a,r,n)&&i.push(t),t.children){var o=wu(t.children,e,r+1,(n?n+".":"")+a+"."+t.tagName);i=i.concat(o)}})),i}function _u(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return ku(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ku(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function ku(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Su(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?xu(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cu=0;function Au(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};if(!t.length)return r;if(1===t.length&&"string"==typeof t[0])return Object.keys(e).length?{attrs:Su({order:Cu++},e),value:t[0]}:t[0];var n,i=_u(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("object"!==vu(a))return;if("?xml"!==a.tagName){r[a.tagName]||(r[a.tagName]=[]);var o=Au(a.children||[],a.attributes);r[a.tagName].push(o),Object.keys(a.attributes).length&&(o.attrs=Su({order:Cu++},a.attributes))}}}catch(t){i.e(t)}finally{i.f()}for(var s in r)1===r[s].length&&(r[s]=r[s][0]);return r}function Eu(t,e){return Ru.apply(this,arguments)}function Ru(){return(Ru=r(u.mark((function t(e,r){var n;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.file(r).async("string");case 3:return n=t.sent,t.abrupt("return",Au(mu(n)));case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",null);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function Ou(t){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(t)}var Tu=/^\s+/,Lu=/\s+$/;function Mu(t,e){if(e=e||{},(t=t||"")instanceof Mu)return t;if(!(this instanceof Mu))return new Mu(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(Tu,"").replace(Lu,"").toLowerCase();var e,r=!1;if(Ku[t])t=Ku[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=ul.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=ul.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=ul.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=ul.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=ul.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=ul.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=ul.hex8.exec(t))return{r:tl(e[1]),g:tl(e[2]),b:tl(e[3]),a:il(e[4]),format:r?"name":"hex8"};if(e=ul.hex6.exec(t))return{r:tl(e[1]),g:tl(e[2]),b:tl(e[3]),format:r?"name":"hex"};if(e=ul.hex4.exec(t))return{r:tl(e[1]+""+e[1]),g:tl(e[2]+""+e[2]),b:tl(e[3]+""+e[3]),a:il(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=ul.hex3.exec(t))return{r:tl(e[1]+""+e[1]),g:tl(e[2]+""+e[2]),b:tl(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==Ou(t)&&(ll(t.r)&&ll(t.g)&&ll(t.b)?(u=t.r,l=t.g,f=t.b,e={r:255*Ju(u,255),g:255*Ju(l,255),b:255*Ju(f,255)},o=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):ll(t.h)&&ll(t.s)&&ll(t.v)?(n=rl(t.s),i=rl(t.v),e=function(t,e,r){t=6*Ju(t,360),e=Ju(e,100),r=Ju(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6;return{r:255*[r,o,a,a,s,r][u],g:255*[s,r,r,o,a,a][u],b:255*[a,a,s,r,r,o][u]}}(t.h,n,i),o=!0,s="hsv"):ll(t.h)&&ll(t.s)&&ll(t.l)&&(n=rl(t.s),a=rl(t.l),e=function(t,e,r){var n,i,a;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=Ju(t,360),e=Ju(e,100),r=Ju(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),i=o(u,s,t),a=o(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(t.h,n,a),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a));var u,l,f;return r=$u(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function Iu(t,e,r){t=Ju(t,255),e=Ju(e,255),r=Ju(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:s}}function Pu(t,e,r){t=Ju(t,255),e=Ju(e,255),r=Ju(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=a,u=a-o;if(i=0===a?0:u/a,a==o)n=0;else{switch(a){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:s}}function Bu(t,e,r,n){var i=[el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Du(t,e,r,n){return[el(nl(n)),el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16))].join("")}function zu(t,e){e=0===e?0:e||10;var r=Mu(t).toHsl();return r.s-=e/100,r.s=Qu(r.s),Mu(r)}function ju(t,e){e=0===e?0:e||10;var r=Mu(t).toHsl();return r.s+=e/100,r.s=Qu(r.s),Mu(r)}function Fu(t){return Mu(t).desaturate(100)}function Nu(t,e){e=0===e?0:e||10;var r=Mu(t).toHsl();return r.l+=e/100,r.l=Qu(r.l),Mu(r)}function Uu(t,e){e=0===e?0:e||10;var r=Mu(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),Mu(r)}function Hu(t,e){e=0===e?0:e||10;var r=Mu(t).toHsl();return r.l-=e/100,r.l=Qu(r.l),Mu(r)}function Wu(t,e){var r=Mu(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,Mu(r)}function Zu(t){var e=Mu(t).toHsl();return e.h=(e.h+180)%360,Mu(e)}function qu(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Mu(t).toHsl(),n=[Mu(t)],i=360/e,a=1;a<e;a++)n.push(Mu({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function Yu(t){var e=Mu(t).toHsl(),r=e.h;return[Mu(t),Mu({h:(r+72)%360,s:e.s,l:e.l}),Mu({h:(r+216)%360,s:e.s,l:e.l})]}function Gu(t,e,r){e=e||6,r=r||30;var n=Mu(t).toHsl(),i=360/r,a=[Mu(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(Mu(n));return a}function Vu(t,e){e=e||6;for(var r=Mu(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(Mu({h:n,s:i,v:a})),a=(a+s)%1;return o}Mu.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=$u(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Pu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Pu(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=Iu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Iu(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Bu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var a=[el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16)),el(nl(n))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Ju(this._r,255))+"%",g:Math.round(100*Ju(this._g,255))+"%",b:Math.round(100*Ju(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Ju(this._r,255))+"%, "+Math.round(100*Ju(this._g,255))+"%, "+Math.round(100*Ju(this._b,255))+"%)":"rgba("+Math.round(100*Ju(this._r,255))+"%, "+Math.round(100*Ju(this._g,255))+"%, "+Math.round(100*Ju(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Xu[Bu(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+Du(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=Mu(t);r="#"+Du(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Mu(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Nu,arguments)},brighten:function(){return this._applyModification(Uu,arguments)},darken:function(){return this._applyModification(Hu,arguments)},desaturate:function(){return this._applyModification(zu,arguments)},saturate:function(){return this._applyModification(ju,arguments)},greyscale:function(){return this._applyModification(Fu,arguments)},spin:function(){return this._applyModification(Wu,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(Gu,arguments)},complement:function(){return this._applyCombination(Zu,arguments)},monochromatic:function(){return this._applyCombination(Vu,arguments)},splitcomplement:function(){return this._applyCombination(Yu,arguments)},triad:function(){return this._applyCombination(qu,[3])},tetrad:function(){return this._applyCombination(qu,[4])}},Mu.fromRatio=function(t,e){if("object"==Ou(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:rl(t[n]));t=r}return Mu(t,e)},Mu.equals=function(t,e){return!(!t||!e)&&Mu(t).toRgbString()==Mu(e).toRgbString()},Mu.random=function(){return Mu.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Mu.mix=function(t,e,r){r=0===r?0:r||50;var n=Mu(t).toRgb(),i=Mu(e).toRgb(),a=r/100;return Mu({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},Mu.readability=function(t,e){var r=Mu(t),n=Mu(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Mu.isReadable=function(t,e,r){var n,i,a=Mu.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},Mu.mostReadable=function(t,e,r){var n,i,a,o,s=null,u=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var l=0;l<e.length;l++)(n=Mu.readability(t,e[l]))>u&&(u=n,s=Mu(e[l]));return Mu.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,Mu.mostReadable(t,["#fff","#000"],r))};var Ku=Mu.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Xu=Mu.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(Ku);function $u(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Ju(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Qu(t){return Math.min(1,Math.max(0,t))}function tl(t){return parseInt(t,16)}function el(t){return 1==t.length?"0"+t:""+t}function rl(t){return t<=1&&(t=100*t+"%"),t}function nl(t){return Math.round(255*parseFloat(t)).toString(16)}function il(t){return tl(t)/255}var al,ol,sl,ul=(ol="[\\s|\\(]+("+(al="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+al+")[,|\\s]+("+al+")\\s*\\)?",sl="[\\s|\\(]+("+al+")[,|\\s]+("+al+")[,|\\s]+("+al+")[,|\\s]+("+al+")\\s*\\)?",{CSS_UNIT:new RegExp(al),rgb:new RegExp("rgb"+ol),rgba:new RegExp("rgba"+sl),hsl:new RegExp("hsl"+ol),hsla:new RegExp("hsla"+sl),hsv:new RegExp("hsv"+ol),hsva:new RegExp("hsva"+sl),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ll(t){return!!ul.CSS_UNIT.exec(t)}function fl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return hl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function hl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function cl(t){for(var e,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(t),i=n.byteLength,a=i%3,o=i-a,s="",u=0;u<o;u+=3)s+=r[(16515072&(e=n[u]<<16|n[u+1]<<8|n[u+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1===a?s+=r[(252&(e=n[o]))>>2]+r[(3&e)<<4]+"==":2===a&&(s+=r[(64512&(e=n[o]<<8|n[o+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),s}function dl(t){return t.substr(2+(~-t.lastIndexOf(".")>>>0))}function pl(t,e){if(!t)return t;var r="";if(t.constructor===Array)for(var n=0;n<t.length;n++)r+=e(t[n],n);else r+=e(t,0);return r}function gl(t,e){if(e.constructor!==Array)throw Error("Error of path type! path is not array.");if(!t)return t;var r,n=fl(e);try{for(n.s();!(r=n.n()).done;){if(!(t=t[r.value]))return t}}catch(t){n.e(t)}finally{n.f()}return t}function bl(t){return t?Math.round(t/6e4):0}function vl(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.replace(/[&<>"']/g,(function(t){return e[t]}))}function ml(t){var e="";switch(t.toLowerCase()){case"jpg":case"jpeg":e="image/jpeg";break;case"png":e="image/png";break;case"gif":e="image/gif";break;case"emf":e="image/x-emf";break;case"wmf":e="image/x-wmf";break;case"svg":e="image/svg+xml";break;case"mp4":e="video/mp4";break;case"webm":e="video/webm";break;case"ogg":e="video/ogg";break;case"avi":e="video/avi";break;case"mpg":e="video/mpg";break;case"wmv":e="video/wmv";break;case"mp3":e="audio/mpeg";break;case"wav":e="audio/wav";break;case"tif":case"tiff":e="image/tiff"}return e}function yl(t){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t)}function wl(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function _l(t,e,r,n){var i,a;if(r)a=r;else{var o=gl(e.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);a=o||((o=gl(e.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||gl(e.slideMasterContent,["p:sldMaster","p:clrMap","attrs"]))}var s=t.substr(2);if("phClr"===s&&n)i=n;else{if(a)switch(s){case"tx1":case"tx2":case"bg1":case"bg2":t="a:"+a[s]}else switch(t){case"tx1":t="a:dk1";break;case"tx2":t="a:dk2";break;case"bg1":t="a:lt1";break;case"bg2":t="a:lt2"}var u=gl(e.themeContent,["a:theme","a:themeElements","a:clrScheme",t]);!(i=gl(u,["a:srgbClr","attrs","val"]))&&u&&(i=gl(u,["a:sysClr","attrs","lastClr"]))}return i}function kl(t,e,r){var n=t["p:spPr"]["a:ln"],i=parseInt(gl(n,["attrs","w"]))/12700;isNaN(i)&&(i=n||"obj"!==e?0:1);var a=gl(n,["a:solidFill","a:srgbClr","attrs","val"]);if(!a){var o=gl(n,["a:solidFill","a:schemeClr"]);a=_l("a:"+gl(o,["attrs","val"]),r)}if(!a){var s=gl(t,["p:style","a:lnRef","a:schemeClr"]);if(a=_l("a:"+gl(s,["attrs","val"]),r)){var u=gl(s,["a:shade","attrs","val"]);if(u){u=parseInt(u)/1e5;var l=Mu("#"+a).toHsl();a=Mu({h:l.h,s:l.s,l:l.l*u,a:l.a}).toHex()}}}a=a?"#".concat(a):"#000";var f="solid",h="0";switch(gl(n,["a:prstDash","attrs","val"])){case"solid":f="solid",h="0";break;case"dash":f="dashed",h="5";break;case"dashDot":f="dashed",h="5, 5, 1, 5";break;case"dot":f="dotted",h="1, 5";break;case"lgDash":f="dashed",h="10, 5";break;case"lgDashDotDot":f="dotted",h="10, 5, 1, 5, 1, 5";break;case"sysDash":f="dashed",h="5, 2";break;case"sysDashDot":f="dotted",h="5, 2, 1, 5";break;case"sysDashDotDot":f="dotted",h="5, 2, 1, 5, 1, 5";break;case"sysDot":f="dotted",h="2, 5"}return{borderColor:a,borderWidth:i,borderType:f,strokeDasharray:h}}function xl(t,e,r){return r<0&&(r+=6),r>=6&&(r-=6),r<1?(e-t)*r+t:r<3?e:r<4?(e-t)*(4-r)+t:t}function Sl(t){var e="";return t["a:noFill"]&&(e="NO_FILL"),t["a:solidFill"]&&(e="SOLID_FILL"),t["a:gradFill"]&&(e="GRADIENT_FILL"),t["a:pattFill"]&&(e="PATTERN_FILL"),t["a:blipFill"]&&(e="PIC_FILL"),t["a:grpFill"]&&(e="GROUP_FILL"),e}function Cl(t,e,r){return Al.apply(this,arguments)}function Al(){return Al=r(u.mark((function t(e,r,n){var i,a,o,s,l,f;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r["a:blip"].attrs["r:embed"],"slideBg"===e||"slide"===e?o=gl(n,["slideResObj",a,"target"]):"slideLayoutBg"===e?o=gl(n,["layoutResObj",a,"target"]):"slideMasterBg"===e?o=gl(n,["masterResObj",a,"target"]):"themeBg"===e?o=gl(n,["themeResObj",a,"target"]):"diagramBg"===e&&(o=gl(n,["diagramResObj",a,"target"])),o){t.next=4;break}return t.abrupt("return",o);case 4:if(i=gl(n,["loaded-images",o])){t.next=15;break}if(o=vl(o),"xml"!==(s=o.split(".").pop())){t.next=10;break}return t.abrupt("return",void 0);case 10:return t.next=12,n.zip.file(o).async("arraybuffer");case 12:l=t.sent,f=ml(s),i="data:".concat(f,";base64,").concat(cl(l));case 15:return t.abrupt("return",i);case 16:case"end":return t.stop()}}),t)}))),Al.apply(this,arguments)}function El(t,e,r){return Rl.apply(this,arguments)}function Rl(){return(Rl=r(u.mark((function t(e,r,n){var i,a,o,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Cl(r,e["a:blipFill"],n);case 2:return i=t.sent,a=e["a:blipFill"]["a:blip"],o=gl(a,["a:alphaModFix","attrs"]),s=1,o&&o.amt&&""!==o.amt&&(s=parseInt(o.amt)/1e5),t.abrupt("return",{picBase64:i,opacity:s});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ol(t,e,r,n){if(t){for(var i=t["a:gradFill"],a=i["a:gsLst"]["a:gs"],o=[],s=0;s<a.length;s++){var u=Il(a[s],r["p:sldMaster"]["p:clrMap"].attrs,e,n),l=gl(a[s],["attrs","pos"]);o[s]={pos:l?l/1e3+"%":"",color:u}}var f=i["a:lin"],h=90;return f&&(h=bl(f.attrs.ang),h+=90),{rot:h,colors:o.sort((function(t,e){return parseInt(t.pos)-parseInt(e.pos)}))}}return e?-1===e.indexOf("#")?"#".concat(e):e:null}function Tl(t){return Ll.apply(this,arguments)}function Ll(){return Ll=r(u.mark((function t(e){var r,n,i,a,o,s,l,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A,E,R,O,T,L,M,I,P,B,D,z,j,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,it,at,ot,st,ut,lt;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.slideContent,n=e.slideLayoutContent,i=e.slideMasterContent,a=gl(r,["p:sld","p:cSld","p:bg","p:bgPr"]),o=gl(r,["p:sld","p:cSld","p:bg","p:bgRef"]),s="#fff",l="color",!a){t.next=29;break}if("SOLID_FILL"!==(f=Sl(a))){t.next=17;break}h=a["a:solidFill"],(d=gl(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?c=d:(p=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),c=p||gl(i,["p:sldMaster","p:clrMap","attrs"])),g=Il(h,c,void 0,e),s=g,t.next=27;break;case 17:if("GRADIENT_FILL"!==f){t.next=22;break}"string"==typeof(b=Ol(a,void 0,i,e))?s=b:b&&(s=b,l="gradient"),t.next=27;break;case 22:if("PIC_FILL"!==f){t.next=27;break}return t.next=25,El(a,"slideBg",e);case 25:s=t.sent,l="image";case 27:t.next=142;break;case 29:if(!o){t.next=37;break}(m=gl(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?v=m:(y=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),v=y||gl(i,["p:sldMaster","p:clrMap","attrs"])),w=Il(o,v,void 0,e),(_=Number(o.attrs.idx))>1e3&&(k=_-1e3,x=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],S=[],Object.keys(x).forEach((function(t){var e=x[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),S.push(n)}else{var i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),S.push(i)}})),(C=S.slice(0)).sort((function(t,e){return t.idex-e.idex})),A=C[k-1],"SOLID_FILL"===(E=Sl(A))?(R=A["a:solidFill"],O=Il(R,v,void 0,e),s=O):"GRADIENT_FILL"===E&&("string"==typeof(T=Ol(A,w,i,e))?s=T:T&&(s=T,l="gradient"))),t.next=142;break;case 37:if(a=gl(n,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),o=gl(n,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),M=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),L=M||gl(i,["p:sldMaster","p:clrMap","attrs"]),!a){t.next=61;break}if("SOLID_FILL"!==(I=Sl(a))){t.next=49;break}P=a["a:solidFill"],B=Il(P,L,void 0,e),s=B,t.next=59;break;case 49:if("GRADIENT_FILL"!==I){t.next=54;break}"string"==typeof(D=Ol(a,void 0,i,e))?s=D:D&&(s=D,l="gradient"),t.next=59;break;case 54:if("PIC_FILL"!==I){t.next=59;break}return t.next=57,El(a,"slideLayoutBg",e);case 57:s=t.sent,l="image";case 59:t.next=142;break;case 61:if(!o){t.next=91;break}if(z=Il(o,L,void 0,e),!((j=Number(o.attrs.idx))>1e3)){t.next=89;break}if(F=j-1e3,N=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],U=[],Object.keys(N).forEach((function(t){var e=N[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),U.push(n)}else{var i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),U.push(i)}})),(H=U.slice(0)).sort((function(t,e){return t.idex-e.idex})),W=H[F-1],"SOLID_FILL"!==(Z=Sl(W))){t.next=79;break}q=W["a:solidFill"],Y=Il(q,L,void 0,e),s=Y,t.next=89;break;case 79:if("GRADIENT_FILL"!==Z){t.next=84;break}"string"==typeof(G=Ol(W,z,i,e))?s=G:G&&(s=G,l="gradient"),t.next=89;break;case 84:if("PIC_FILL"!==Z){t.next=89;break}return t.next=87,El(W,"themeBg",e);case 87:s=t.sent,l="image";case 89:t.next=142;break;case 91:if(a=gl(i,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),o=gl(i,["p:sldMaster","p:cSld","p:bg","p:bgRef"]),V=gl(i,["p:sldMaster","p:clrMap","attrs"]),!a){t.next=114;break}if("SOLID_FILL"!==(K=Sl(a))){t.next=102;break}X=a["a:solidFill"],$=Il(X,V,void 0,e),s=$,t.next=112;break;case 102:if("GRADIENT_FILL"!==K){t.next=107;break}"string"==typeof(J=Ol(a,void 0,i,e))?s=J:J&&(s=J,l="gradient"),t.next=112;break;case 107:if("PIC_FILL"!==K){t.next=112;break}return t.next=110,El(a,"slideMasterBg",e);case 110:s=t.sent,l="image";case 112:t.next=142;break;case 114:if(!o){t.next=142;break}if(Q=Il(o,V,void 0,e),!((tt=Number(o.attrs.idx))>1e3)){t.next=142;break}if(et=tt-1e3,rt=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],nt=[],Object.keys(rt).forEach((function(t){var e=rt[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),nt.push(n)}else{var i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),nt.push(i)}})),(it=nt.slice(0)).sort((function(t,e){return t.idex-e.idex})),at=it[et-1],"SOLID_FILL"!==(ot=Sl(at))){t.next=132;break}st=at["a:solidFill"],ut=Il(st,L,void 0,e),s=ut,t.next=142;break;case 132:if("GRADIENT_FILL"!==ot){t.next=137;break}"string"==typeof(lt=Ol(at,Q,i,e))?s=lt:lt&&(s=lt,l="gradient"),t.next=142;break;case 137:if("PIC_FILL"!==ot){t.next=142;break}return t.next=140,El(at,"themeBg",e);case 140:s=t.sent,l="image";case 142:return t.abrupt("return",{type:l,value:s});case 143:case"end":return t.stop()}}),t)}))),Ll.apply(this,arguments)}function Ml(t,e,r){if(gl(t,["p:spPr","a:noFill"]))return e?"none":"";var n;(n||(n=gl(t,["p:spPr","a:solidFill","a:srgbClr","attrs","val"])),n)||(n=_l("a:"+gl(t,["p:spPr","a:solidFill","a:schemeClr","attrs","val"]),r));n||(n=_l("a:"+gl(t,["p:style","a:fillRef","a:schemeClr","attrs","val"]),r));if(n){n="#".concat(n);var i=parseInt(gl(t,["p:spPr","a:solidFill","a:schemeClr","a:lumMod","attrs","val"]))/1e5,a=parseInt(gl(t,["p:spPr","a:solidFill","a:schemeClr","a:lumOff","attrs","val"]))/1e5;isNaN(i)&&(i=1),isNaN(a)&&(a=0);var o=Mu(n).toHsl(),s=o.l*i+a;return Mu({h:o.h,s:o.s,l:s,a:o.a}).toHexString()}return e?"none":n}function Il(t,e,r,n){if(!t)return"";var i,a,o,s="";if(t["a:srgbClr"])s=gl(i=t["a:srgbClr"],["attrs","val"]);else if(t["a:schemeClr"]){s=_l("a:"+gl(i=t["a:schemeClr"],["attrs","val"]),n,e,r)||""}else if(t["a:scrgbClr"]){var u=(i=t["a:scrgbClr"]).attrs,l=-1!==u.r.indexOf("%")?u.r.split("%").shift():u.r,f=-1!==u.g.indexOf("%")?u.g.split("%").shift():u.g,h=-1!==u.b.indexOf("%")?u.b.split("%").shift():u.b;s=wl(Number(l)/100*255)+wl(Number(f)/100*255)+wl(Number(h)/100*255)}else if(t["a:prstClr"]){var c=gl(i=t["a:prstClr"],["attrs","val"]);-1!==(o=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"].indexOf(c))&&(a=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"][o]),s=a}else if(t["a:hslClr"]){var d=(i=t["a:hslClr"]).attrs,p=function(t,e,r){var n,i=2*r-(n=r<=.5?r*(e+1):r+e-r*e);return{r:255*xl(i,n,2+(t/=60)),g:255*xl(i,n,t),b:255*xl(i,n,t-2)}}(Number(d.hue)/1e5,Number(-1!==d.sat.indexOf("%")?d.sat.split("%").shift():d.sat)/100,Number(-1!==d.lum.indexOf("%")?d.lum.split("%").shift():d.lum)/100);s=wl(p.r)+wl(p.g)+wl(p.b)}else if(t["a:sysClr"]){var g=gl(i=t["a:sysClr"],["attrs","lastClr"]);g&&(s=g)}var b=!1,v=parseInt(gl(i,["a:alpha","attrs","val"]))/1e5;if(!isNaN(v)){var m=Mu(s);m.setAlpha(v),s=m.toHex8(),b=!0}var y=parseInt(gl(i,["a:hueMod","attrs","val"]))/1e5;isNaN(y)||(s=function(t,e,r){var n=Mu(t).toHsl(),i=n.h*e;return i>=360&&(i-=360),r?Mu({h:i,s:n.s,l:n.l,a:n.a}).toHex8():Mu({h:i,s:n.s,l:n.l,a:n.a}).toHex()}(s,y,b));var w=parseInt(gl(i,["a:lumMod","attrs","val"]))/1e5;isNaN(w)||(s=function(t,e,r){var n=Mu(t).toHsl(),i=n.l*e;return i>=1&&(i=1),r?Mu({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Mu({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,w,b));var _=parseInt(gl(i,["a:lumOff","attrs","val"]))/1e5;isNaN(_)||(s=function(t,e,r){var n=Mu(t).toHsl(),i=e+n.l;return i>=1?r?Mu({h:n.h,s:n.s,l:1,a:n.a}).toHex8():Mu({h:n.h,s:n.s,l:1,a:n.a}).toHex():r?Mu({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Mu({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,_,b));var k=parseInt(gl(i,["a:satMod","attrs","val"]))/1e5;isNaN(k)||(s=function(t,e,r){var n=Mu(t).toHsl(),i=n.s*e;return i>=1&&(i=1),r?Mu({h:n.h,s:i,l:n.l,a:n.a}).toHex8():Mu({h:n.h,s:i,l:n.l,a:n.a}).toHex()}(s,k,b));var x=parseInt(gl(i,["a:shade","attrs","val"]))/1e5;isNaN(x)||(s=function(t,e,r){var n=Mu(t).toHsl();e>=1&&(e=1);var i=Math.min(n.l*e,1);return r?Mu({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Mu({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,x,b));var S=parseInt(gl(i,["a:tint","attrs","val"]))/1e5;return isNaN(S)||(s=function(t,e,r){var n=Mu(t).toHsl();e>=1&&(e=1);var i=n.l*e+(1-e);return r?Mu({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Mu({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,S,b)),s&&-1===s.indexOf("#")&&(s="#"+s),s}function Pl(t){var e=[];if(!t)return e;if(t["c:xVal"]){var r=[];pl(t["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r),r=[],pl(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r)}else pl(t,(function(t,r){var n=[],i=gl(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,a={};return gl(t,["c:cat","c:strRef","c:strCache","c:pt"])?pl(t["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],(function(t){return a[t.attrs.idx]=t["c:v"],""})):gl(t,["c:cat","c:numRef","c:numCache","c:pt"])&&pl(t["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return a[t.attrs.idx]=t["c:v"],""})),gl(t,["c:val","c:numRef","c:numCache","c:pt"])&&pl(t["c:val"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return n.push({x:t.attrs.idx,y:parseFloat(t["c:v"])}),""})),e.push({key:i,values:n,xlabels:a}),""}));return e}function Bl(t){var e=null;for(var r in t)switch(r){case"c:lineChart":e={type:"lineChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"]),marker:!!t[r]["c:marker"]};break;case"c:line3DChart":e={type:"line3DChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"])};break;case"c:barChart":e={type:"barChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"]),barDir:gl(t[r],["c:barDir","attrs","val"])};break;case"c:bar3DChart":e={type:"bar3DChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"]),barDir:gl(t[r],["c:barDir","attrs","val"])};break;case"c:pieChart":e={type:"pieChart",data:Pl(t[r]["c:ser"])};break;case"c:pie3DChart":e={type:"pie3DChart",data:Pl(t[r]["c:ser"])};break;case"c:doughnutChart":e={type:"doughnutChart",data:Pl(t[r]["c:ser"]),holeSize:gl(t[r],["c:holeSize","attrs","val"])};break;case"c:areaChart":e={type:"areaChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"])};break;case"c:area3DChart":e={type:"area3DChart",data:Pl(t[r]["c:ser"]),grouping:gl(t[r],["c:grouping","attrs","val"])};break;case"c:scatterChart":e={type:"scatterChart",data:Pl(t[r]["c:ser"]),style:gl(t[r],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":e={type:"bubbleChart",data:Pl(t[r]["c:ser"])};break;case"c:radarChart":e={type:"radarChart",data:Pl(t[r]["c:ser"]),style:gl(t[r],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":e={type:"surfaceChart",data:Pl(t[r]["c:ser"])};break;case"c:surface3DChart":e={type:"surface3DChart",data:Pl(t[r]["c:ser"])};break;case"c:stockChart":e={type:"stockChart",data:Pl(t[r]["c:ser"])}}return e}function Dl(t,e,r,n){var i=gl(t,["a:pPr","attrs","algn"]);if(i||(i=gl(e,["a:pPr","attrs","algn"])),!i)if("title"===r||"ctrTitle"===r||"subTitle"===r){var a=1,o=gl(e,["a:pPr","attrs","lvl"]);o&&(a=parseInt(o)+1);var s="a:lvl"+a+"pPr";(i=gl(n,["slideLayoutTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"]))||(i=gl(n,["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"])),i||(i=gl(n,["slideMasterTextStyles","p:titleStyle",s,"attrs","algn"])),i||"subTitle"!==r||(i=gl(n,["slideMasterTextStyles","p:bodyStyle",s,"attrs","algn"]))}else i=gl(n,"body"===r?["slideMasterTextStyles","p:bodyStyle","a:lvl1pPr","attrs","algn"]:["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle","a:lvl1pPr","attrs","algn"]);var u="left";if(i)switch(i){case"l":u="left";break;case"r":u="right";break;case"ctr":u="center";break;case"just":case"dist":u="justify";break;default:u="inherit"}return u}var zl=72/914400;function jl(t,e,r){var n;return t?n=t["a:off"].attrs:e?n=e["a:off"].attrs:r&&(n=r["a:off"].attrs),n?{top:parseInt(n.y)*zl,left:parseInt(n.x)*zl}:{top:0,left:0}}function Fl(t,e,r){var n;return t?n=t["a:ext"].attrs:e?n=e["a:ext"].attrs:r&&(n=r["a:ext"].attrs),n?{width:parseInt(n.cx)*zl,height:parseInt(n.cy)*zl}:{width:0,height:0}}function Nl(t,e){var r=Il(t,void 0,void 0,e),n=t.attrs,i=n.dir?parseInt(n.dir)/6e4:0,a=parseInt(n.dist)*zl,o=n.blurRad?parseInt(n.blurRad)*zl:"",s=a*Math.sin(i*Math.PI/180);return{h:a*Math.cos(i*Math.PI/180),v:s,blur:o,color:r}}function Ul(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Hl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Hl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Wl(t,e,r,n,i){if(!t)return"";var a,o="",s=gl(e,["p:style","a:fontRef"]),u=t["a:p"],l="",f=Ul(u.constructor===Array?u:[u]);try{for(f.s();!(a=f.n()).done;){var h=a.value,c=h["a:r"],d=h["a:fld"],p=h["a:br"];c&&(c=c.constructor===Array?c:[c],d&&(d=d.constructor===Array?d:[d],c=c.concat(d)),p&&((p=p.constructor===Array?p:[p]).forEach((function(t){return t.type="br"})),p.length>1&&p.shift(),(c=c.concat(p)).sort((function(t,e){return!t.attrs||!e.attrs||t.attrs.order-e.attrs.order}))));var g=Dl(h,e,n,i),b=Zl(h);if(b?(l?l&&l!==b&&(o+="</".concat(l,">"),o+="<".concat(b,">"),l=b):(o+="<".concat(b,">"),l=b),o+='<li style="text-align: '.concat(g,';">')):(l&&(o+="</".concat(l,">"),l=""),o+='<p style="text-align: '.concat(g,';">')),c){var v,m=Ul(c);try{for(m.s();!(v=m.n()).done;){o+=ql(v.value,h,t,s,r,n,i)}}catch(t){m.e(t)}finally{m.f()}}else o+=ql(h,e,t,s,r,n,i);o+=b?"</li>":"</p>"}}catch(t){f.e(t)}finally{f.f()}return o}function Zl(t){var e=t["a:pPr"];return e?e["a:buChar"]?"ul":e["a:buAutoNum"]?"ol":"":""}function ql(t,e,r,n,i,a,o){var s=r["a:lstStyle"],u=o.slideMasterTextStyles,l=1,f=gl(e["a:pPr"],["attrs","lvl"]);void 0!==f&&(l=parseInt(f)+1);var h=t["a:t"];"string"!=typeof h&&(h=gl(t,["a:fld","a:t"])),"string"!=typeof h&&(h="&nbsp;");var c="",d=function(t,e,r,n,i,a){var o,s=gl(t,["a:rPr"]);if(s&&"SOLID_FILL"===Sl(s)&&(o=Il(s["a:solidFill"],void 0,void 0,a)),!o&&gl(r,["a:lvl"+i+"pPr","a:defRPr"])){var u=gl(r,["a:lvl"+i+"pPr","a:defRPr"]);"SOLID_FILL"===Sl(u)&&(o=Il(u["a:solidFill"],void 0,void 0,a))}if(!o){var l=gl(e,["p:style","a:fontRef"]);l&&(o=Il(l,void 0,void 0,a)),!o&&n&&(o=Il(n,void 0,void 0,a))}return o||""}(t,e,s,n,l,o),p=function(t,e,r,n){var i,a;if(gl(t,["a:rPr","attrs","sz"])&&(i=gl(t,["a:rPr","attrs","sz"])/100),isNaN(i)||!i){var o=gl(e,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);i=parseInt(o)/100}return!isNaN(i)&&i||("title"===r||"subTitle"===r||"ctrTitle"===r?a=gl(n,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"body"===r?a=gl(n,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"dt"===r||"sldNum"===r?a="1200":r||(a=gl(n,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),a&&(i=parseInt(a)/100)),gl(t,["a:rPr","attrs","baseline"])&&!isNaN(i)&&(i-=10),(i=isNaN(i)||!i?18:i)+"pt"}(t,i,a,u),g=function(t,e,r){var n=gl(t,["a:rPr","a:latin","attrs","typeface"]);if(!n){var i=gl(r.themeContent,["a:theme","a:themeElements","a:fontScheme"]);n=gl(i,"title"===e||"subTitle"===e||"ctrTitle"===e?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return n||""}(t,a,o),b=function(t){return"1"===gl(t,["a:rPr","attrs","b"])?"bold":""}(t),v=function(t){return"1"===gl(t,["a:rPr","attrs","i"])?"italic":""}(t),m=function(t){return"sng"===gl(t,["a:rPr","attrs","u"])?"underline":""}(t),y=function(t){return"sngStrike"===gl(t,["a:rPr","attrs","strike"])?"line-through":""}(t),w=function(t){var e=gl(t,["a:rPr","attrs","spc"]);return e?parseInt(e)/100+"pt":""}(t),_=function(t,e){var r=gl(t,["a:rPr","a:effectLst","a:outerShdw"]);if(r){var n=Nl(r,e);if(n){var i=n.h,a=n.v,o=n.blur,s=n.color;if(!isNaN(a)&&!isNaN(i))return i+"pt "+a+"pt "+(o?o+"pt":"")+" "+s}}return""}(t,o),k=function(t){var e=gl(t,["a:rPr","attrs","baseline"]);return e?parseInt(e)>0?"super":"sub":""}(t);d&&(c+="color: ".concat(d,";")),p&&(c+="font-size: ".concat(p,";")),g&&(c+="font-family: ".concat(g,";")),b&&(c+="font-weight: ".concat(b,";")),v&&(c+="font-style: ".concat(v,";")),m&&(c+="text-decoration: ".concat(m,";")),y&&(c+="text-decoration-line: ".concat(y,";")),w&&(c+="letter-spacing: ".concat(w,";")),k&&(c+="vertical-align: ".concat(k,";")),_&&(c+="text-shadow: ".concat(_,";"));var x=gl(t,["a:rPr","a:hlinkClick","attrs","r:id"]);if(x){var S=o.slideResObj[x].target;return'<span style="'.concat(c,'"><a href="').concat(S,'" target="_blank">').concat(h.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;"),"</a></span>")}return'<span style="'.concat(c,'">').concat(h.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;"),"</span>")}function Yl(t,e,r,n,i,a,o){var s,u=i;if(a>=i)for(;u<=a;){var l=u*(Math.PI/180),f=t+Math.cos(l)*r,h=e+Math.sin(l)*n;u===i&&(s=" M"+f+" "+h),s+=" L"+f+" "+h,u++}else for(;u>a;){var c=u*(Math.PI/180),d=t+Math.cos(c)*r,p=e+Math.sin(c)*n;u===i&&(s=" M "+d+" "+p),s+=" L "+d+" "+p,u--}return s+=o?" z":""}function Gl(t,e,r,n){var i,a,o,s,u,l=gl(t,["attrs","rowSpan"]),f=gl(t,["attrs","gridSpan"]),h=gl(t,["attrs","vMerge"]),c=gl(t,["attrs","hMerge"]),d=gl(t,["a:tcPr"]);d&&(i=Ml({"p:spPr":d},void 0,n));i||(r&&(s=gl(e,[r,"a:tcStyle","a:fill","a:solidFill"])),s&&(i=Il(s,void 0,void 0,n)));return r&&(u=gl(e,[r,"a:tcTxStyle"])),u&&(a=Il(u,void 0,void 0,n),"on"===gl(u,["attrs","b"])&&(o=!0)),{fillColor:i,fontColor:a,fontBold:o,rowSpan:l?+l:void 0,colSpan:f?+f:void 0,vMerge:h?+h:void 0,hMerge:c?+c:void 0}}function Vl(t,e,r,n,i){var a,o,s;if(n&&n["a:wholeTbl"]){var u=gl(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(u){var l=Il(u,void 0,void 0,i);l&&(a=l)}var f=gl(n,["a:wholeTbl","a:tcTxStyle"]);if(f){var h=Il(f,void 0,void 0,i);h&&(o=h),"on"===gl(f,["attrs","b"])&&(s=!0)}}if(0===e&&1===r.isFrstRowAttr&&n){var c=gl(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(c){var d=Il(c,void 0,void 0,i);d&&(a=d)}var p=gl(n,["a:firstRow","a:tcTxStyle"]);if(p){var g=Il(p,void 0,void 0,i);g&&(o=g),"on"===gl(p,["attrs","b"])&&(s=!0)}}else if(e>0&&1===r.isBandRowAttr&&n){if(a="",e%2==0&&n["a:band2H"]){var b=gl(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(b){var v=Il(b,void 0,void 0,i);v&&(a=v)}var m=gl(n,["a:band2H","a:tcTxStyle"]);if(m){var y=Il(m,void 0,void 0,i);y&&(o=y)}"on"===gl(m,["attrs","b"])&&(s=!0)}if(e%2!=0&&n["a:band1H"]){var w=gl(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(w){var _=Il(w,void 0,void 0,i);_&&(a=_)}var k=gl(n,["a:band1H","a:tcTxStyle"]);if(k){var x=Il(k,void 0,void 0,i);x&&(o=x),"on"===gl(k,["attrs","b"])&&(s=!0)}}}if(e===t.length-1&&1===r.isLstRowAttr&&n){var S=gl(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(S){var C=Il(S,void 0,void 0,i);C&&(a=C)}var A=gl(n,["a:lastRow","a:tcTxStyle"]);if(A){var E=Il(A,void 0,void 0,i);E&&(o=E),"on"===gl(A,["attrs","b"])&&(s=!0)}}return{fillColor:a,fontColor:o,fontBold:s}}function Kl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xl(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Kl(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Jl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Jl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ql(t){return tf.apply(this,arguments)}function tf(){return(tf=r(u.mark((function t(e){var r,n,i,a,o,s,l,f,h,c,d,p;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,bu.loadAsync(e);case 3:return n=t.sent,t.next=6,ef(n);case 6:return i=t.sent,t.next=9,nf(n);case 9:return a=t.sent,o=a.width,s=a.height,l=a.defaultTextStyle,t.next=15,of(n);case 15:f=t.sent,h=$l(i.slides),t.prev=17,h.s();case 19:if((c=h.n()).done){t.next=27;break}return d=c.value,t.next=23,uf(n,d,f,l);case 23:p=t.sent,r.push(p);case 25:t.next=19;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(17),h.e(t.t0);case 32:return t.prev=32,h.f(),t.finish(32);case 35:return t.abrupt("return",{slides:r,size:{width:o,height:s}});case 36:case"end":return t.stop()}}),t,null,[[17,29,32,35]])})))).apply(this,arguments)}function ef(t){return rf.apply(this,arguments)}function rf(){return(rf=r(u.mark((function t(e){var r,n,i,a,o,s,l,f;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"[Content_Types].xml");case 2:r=t.sent,n=r.Types.Override,i=[],a=[],o=$l(n),t.prev=7,o.s();case 9:if((s=o.n()).done){t.next=20;break}l=s.value,t.t0=l.attrs.ContentType,t.next="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"===t.t0?14:"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"===t.t0?16:18;break;case 14:return i.push(l.attrs.PartName.substr(1)),t.abrupt("break",18);case 16:return a.push(l.attrs.PartName.substr(1)),t.abrupt("break",18);case 18:t.next=9;break;case 20:t.next=25;break;case 22:t.prev=22,t.t1=t.catch(7),o.e(t.t1);case 25:return t.prev=25,o.f(),t.finish(25);case 28:return f=function(t,e){return+/(\d+)\.xml/.exec(t)[1]-+/(\d+)\.xml/.exec(e)[1]},i=i.sort(f),a=a.sort(f),t.abrupt("return",{slides:i,slideLayouts:a});case 32:case"end":return t.stop()}}),t,null,[[7,22,25,28]])})))).apply(this,arguments)}function nf(t){return af.apply(this,arguments)}function af(){return(af=r(u.mark((function t(e){var r,n,i;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"ppt/presentation.xml");case 2:return r=t.sent,n=r["p:presentation"]["p:sldSz"].attrs,i=r["p:presentation"]["p:defaultTextStyle"],t.abrupt("return",{width:parseInt(n.cx)*zl,height:parseInt(n.cy)*zl,defaultTextStyle:i});case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function of(t){return sf.apply(this,arguments)}function sf(){return(sf=r(u.mark((function t(e){var r,n,i,a,o,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"ppt/_rels/presentation.xml.rels");case 2:if(r=t.sent,(n=r.Relationships.Relationship).constructor!==Array){t.next=25;break}a=$l(n),t.prev=6,a.s();case 8:if((o=a.n()).done){t.next=15;break}if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"!==(s=o.value).attrs.Type){t.next=13;break}return i=s.attrs.Target,t.abrupt("break",15);case 13:t.next=8;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(6),a.e(t.t0);case 20:return t.prev=20,a.f(),t.finish(20);case 23:t.next=26;break;case 25:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(i=n.attrs.Target);case 26:if(i){t.next=28;break}throw Error("Can't open theme file.");case 28:return t.next=30,Eu(e,"ppt/"+i);case 30:return t.abrupt("return",t.sent);case 31:case"end":return t.stop()}}),t,null,[[6,17,20,23]])})))).apply(this,arguments)}function uf(t,e,r,n){return lf.apply(this,arguments)}function lf(){return lf=r(u.mark((function t(e,r,n,i){var a,o,s,l,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A,E,R,O,T,L,M,I,P,B,D,z,j,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,it,at,ot,st;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=r.replace("slides/slide","slides/_rels/slide")+".rels",t.next=3,Eu(e,a);case 3:if(o=t.sent,s=o.Relationships.Relationship,l="",f="",h={},s.constructor!==Array){t.next=35;break}c=$l(s),t.prev=10,c.s();case 12:if((d=c.n()).done){t.next=25;break}p=d.value,t.t0=p.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"===t.t0?17:"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"===t.t0?19:("http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"===t.t0||t.t0,22);break;case 17:return l=p.attrs.Target.replace("../","ppt/"),t.abrupt("break",23);case 19:return f=p.attrs.Target.replace("../","ppt/"),h[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")},t.abrupt("break",23);case 22:h[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")};case 23:t.next=12;break;case 25:t.next=30;break;case 27:t.prev=27,t.t1=t.catch(10),c.e(t.t1);case 30:return t.prev=30,c.f(),t.finish(30);case 33:t.next=36;break;case 35:l=s.attrs.Target.replace("../","ppt/");case 36:return t.next=38,Eu(e,l);case 38:return g=t.sent,t.next=41,ff(g);case 41:return b=t.sent,v=l.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",t.next=45,Eu(e,v);case 45:if(m=t.sent,s=m.Relationships.Relationship,y="",w={},s.constructor!==Array){t.next=73;break}_=$l(s),t.prev=51,_.s();case 53:if((k=_.n()).done){t.next=63;break}x=k.value,t.t2=x.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"===t.t2?58:60;break;case 58:return y=x.attrs.Target.replace("../","ppt/"),t.abrupt("break",61);case 60:w[x.attrs.Id]={type:x.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:x.attrs.Target.replace("../","ppt/")};case 61:t.next=53;break;case 63:t.next=68;break;case 65:t.prev=65,t.t3=t.catch(51),_.e(t.t3);case 68:return t.prev=68,_.f(),t.finish(68);case 71:t.next=74;break;case 73:y=s.attrs.Target.replace("../","ppt/");case 74:return t.next=76,Eu(e,y);case 76:return S=t.sent,C=gl(S,["p:sldMaster","p:txStyles"]),A=ff(S),E=y.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",t.next=82,Eu(e,E);case 82:if(R=t.sent,s=R.Relationships.Relationship,O="",T={},s.constructor!==Array){t.next=109;break}L=$l(s),t.prev=88,L.s();case 90:if((M=L.n()).done){t.next=99;break}I=M.value,t.t4=I.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.t4?95:96;break;case 95:return t.abrupt("break",97);case 96:T[I.attrs.Id]={type:I.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:I.attrs.Target.replace("../","ppt/")};case 97:t.next=90;break;case 99:t.next=104;break;case 101:t.prev=101,t.t5=t.catch(88),L.e(t.t5);case 104:return t.prev=104,L.f(),t.finish(104);case 107:t.next=110;break;case 109:O=s.attrs.Target.replace("../","ppt/");case 110:if(P={},!O){t.next=118;break}return B=O.split("/").pop(),D=O.replace(B,"_rels/"+B)+".rels",t.next=116,Eu(e,D);case 116:if((z=t.sent)&&(s=z.Relationships.Relationship))if(s.constructor===Array){j=$l(s);try{for(j.s();!(F=j.n()).done;)N=F.value,P[N.attrs.Id]={type:N.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:N.attrs.Target.replace("../","ppt/")}}catch(t){j.e(t)}finally{j.f()}}else P[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 118:if(U={},H={},!f){t.next=131;break}return W=f.split("/").pop(),Z=f.replace(W,"_rels/"+W)+".rels",t.next=125,Eu(e,f);case 125:return(H=t.sent)&&H&&H&&(q=(q=JSON.stringify(H)).replace(/dsp:/g,"p:"),H=JSON.parse(q)),t.next=129,Eu(e,Z);case 129:if(Y=t.sent)if((s=Y.Relationships.Relationship).constructor===Array){G=$l(s);try{for(G.s();!(V=G.n()).done;)K=V.value,U[K.attrs.Id]={type:K.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:K.attrs.Target.replace("../","ppt/")}}catch(t){G.e(t)}finally{G.f()}}else U[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 131:return t.next=133,Eu(e,"ppt/tableStyles.xml");case 133:return X=t.sent,t.next=136,Eu(e,r);case 136:return $=t.sent,J=$["p:sld"]["p:cSld"]["p:spTree"],Q={zip:e,slideLayoutContent:g,slideLayoutTables:b,slideMasterContent:S,slideMasterTables:A,slideContent:$,tableStyles:X,slideResObj:h,slideMasterTextStyles:C,layoutResObj:w,masterResObj:T,themeContent:n,themeResObj:P,digramFileContent:H,diagramResObj:U,defaultTextStyle:i},t.next=141,Tl(Q);case 141:tt=t.sent,et=[],t.t6=u.keys(J);case 144:if((t.t7=t.t6()).done){t.next=174;break}if(rt=t.t7.value,J[rt].constructor!==Array){t.next=168;break}nt=$l(J[rt]),t.prev=148,nt.s();case 150:if((it=nt.n()).done){t.next=158;break}return at=it.value,t.next=154,hf(rt,at,Q,"slide");case 154:(ot=t.sent)&&et.push(ot);case 156:t.next=150;break;case 158:t.next=163;break;case 160:t.prev=160,t.t8=t.catch(148),nt.e(t.t8);case 163:return t.prev=163,nt.f(),t.finish(163);case 166:t.next=172;break;case 168:return t.next=170,hf(rt,J[rt],Q,"slide");case 170:(st=t.sent)&&et.push(st);case 172:t.next=144;break;case 174:return t.abrupt("return",{fill:tt,elements:et});case 175:case"end":return t.stop()}}),t,null,[[10,27,30,33],[51,65,68,71],[88,101,104,107],[148,160,163,166]])}))),lf.apply(this,arguments)}function ff(t){var e=t[Object.keys(t)[0]]["p:cSld"]["p:spTree"],r={},n={},i={};for(var a in e)if("p:nvGrpSpPr"!==a&&"p:grpSpPr"!==a){var o=e[a];if(o.constructor===Array){var s,u=$l(o);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=l["p:nvSpPr"],h=gl(f,["p:cNvPr","attrs","id"]),c=gl(f,["p:nvPr","p:ph","attrs","idx"]),d=gl(f,["p:nvPr","p:ph","attrs","type"]);h&&(r[h]=l),c&&(n[c]=l),d&&(i[d]=l)}}catch(t){u.e(t)}finally{u.f()}}else{var p=o["p:nvSpPr"],g=gl(p,["p:cNvPr","attrs","id"]),b=gl(p,["p:nvPr","p:ph","attrs","idx"]),v=gl(p,["p:nvPr","p:ph","attrs","type"]);g&&(r[g]=o),b&&(n[b]=o),v&&(i[v]=o)}}return{idTable:r,idxTable:n,typeTable:i}}function hf(t,e,r,n){return cf.apply(this,arguments)}function cf(){return(cf=r(u.mark((function t(e,r,n,i){var a;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=e,t.next="p:sp"===t.t0?3:"p:cxnSp"===t.t0?5:"p:pic"===t.t0?7:"p:graphicFrame"===t.t0?9:"p:grpSp"===t.t0?13:"mc:AlternateContent"===t.t0?17:21;break;case 3:return a=gf(r,n,i),t.abrupt("break",21);case 5:return a=bf(r,n),t.abrupt("break",21);case 7:return a=mf(r,n,i),t.abrupt("break",21);case 9:return t.next=11,wf(r,n,i);case 11:case 15:case 19:return a=t.sent,t.abrupt("break",21);case 13:return t.next=15,df(r,n,i);case 17:return t.next=19,df(gl(r,["mc:Fallback"]),n,i);case 21:return t.abrupt("return",a);case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function df(t,e,r){return pf.apply(this,arguments)}function pf(){return pf=r(u.mark((function t(e,r,n){var i,a,o,s,l,f,h,c,d,p,g,b,v,m,y,w,_,k,x;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=gl(e,["p:grpSpPr","a:xfrm"])){t.next=3;break}return t.abrupt("return",null);case 3:a=parseInt(i["a:off"].attrs.x)*zl,o=parseInt(i["a:off"].attrs.y)*zl,s=parseInt(i["a:chOff"].attrs.x)*zl,l=parseInt(i["a:chOff"].attrs.y)*zl,f=parseInt(i["a:ext"].attrs.cx)*zl,h=parseInt(i["a:ext"].attrs.cy)*zl,c=parseInt(i["a:chExt"].attrs.cx)*zl,d=parseInt(i["a:chExt"].attrs.cy)*zl,(p=gl(i,["attrs","rot"])||0)&&(p=bl(p)),g=f/c,b=h/d,v=[],t.t0=u.keys(e);case 17:if((t.t1=t.t0()).done){t.next=47;break}if(m=t.t1.value,e[m].constructor!==Array){t.next=41;break}y=$l(e[m]),t.prev=21,y.s();case 23:if((w=y.n()).done){t.next=31;break}return _=w.value,t.next=27,hf(m,_,r,n);case 27:(k=t.sent)&&v.push(k);case 29:t.next=23;break;case 31:t.next=36;break;case 33:t.prev=33,t.t2=t.catch(21),y.e(t.t2);case 36:return t.prev=36,y.f(),t.finish(36);case 39:t.next=45;break;case 41:return t.next=43,hf(m,e[m],r,n);case 43:(x=t.sent)&&v.push(x);case 45:t.next=17;break;case 47:return t.abrupt("return",{type:"group",top:o,left:a,width:f,height:h,rotate:p,elements:v.map((function(t){return Xl(Xl({},t),{},{left:(t.left-s)*g,top:(t.top-l)*b,width:t.width*g,height:t.height*b})}))});case 48:case"end":return t.stop()}}),t,null,[[21,33,36,39]])}))),pf.apply(this,arguments)}function gf(t,e,r){var n,i,a=gl(t,["p:nvSpPr","p:cNvPr","attrs","name"]),o=gl(t,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),s=gl(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]);(s?(n=e.slideLayoutTables.typeTable[s],i=e.slideMasterTables.typeTable[s]):o&&(n=e.slideLayoutTables.idxTable[o],i=e.slideMasterTables.idxTable[o]),s)||"1"===gl(t,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])&&(s="text");return s||(s=gl(n,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=gl(i,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s="diagramBg"===r?"diagram":"obj"),vf(t,n,i,a,s,e)}function bf(t,e){return vf(t,void 0,void 0,t["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,void 0===t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:t["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,e)}function vf(t,e,r,n,i,a){var o,s=["p:spPr","a:xfrm"],u=gl(t,s),l=gl(e,s),f=gl(r,s),h=gl(t,["p:spPr","a:prstGeom","attrs","prst"]),c=gl(t,["p:spPr","a:custGeom"]),d=jl(u,l,f),p=d.top,g=d.left,b=Fl(u,l,f),v=b.width,m=b.height,y="1"===gl(u,["attrs","flipV"]),w="1"===gl(u,["attrs","flipH"]),_=bl(gl(u,["attrs","rot"])),k=gl(t,["p:txXfrm"]);if(k){var x=gl(k,["attrs","rot"]);x&&(o=bl(x)+90)}else o=_;var S="";t["p:txBody"]&&(S=Wl(t["p:txBody"],t,e,i,a));var C,A=kl(t,i,a),E=A.borderColor,R=A.borderWidth,O=A.borderType,T=A.strokeDasharray,L=Ml(t,void 0,a)||"",M=gl(t,["p:spPr","a:effectLst","a:outerShdw"]);M&&(C=Nl(M,a));var I=function(t,e,r){var n=gl(t,["p:txBody","a:bodyPr","attrs","anchor"]);return n||(n=gl(e,["p:txBody","a:bodyPr","attrs","anchor"]))||(n=gl(r,["p:txBody","a:bodyPr","attrs","anchor"]))||(n="t"),"ctr"===n?"mid":"b"===n?"down":"up"}(t,e,r),P="eaVert"===gl(t,["p:txBody","a:bodyPr","attrs","vert"]),B={left:g,top:p,width:v,height:m,borderColor:E,borderWidth:R,borderType:O,borderStrokeDasharray:T,fillColor:L,content:S,isFlipV:y,isFlipH:w,rotate:_,vAlign:I,name:n};if(C&&(B.shadow=C),c&&"diagram"!==i){var D=gl(u,["a:ext","attrs"]),z=function(t,e,r){var n=gl(t,["a:pathLst"]),i=gl(n,["a:path"]);Array.isArray(i)&&(i=i.pop());var a=parseInt(i.attrs.w),o=parseInt(i.attrs.h),s=0===a?0:1/a*e,u=0===o?0:1/o*r,l="",f=gl(i,["a:moveTo"]),h=i["a:lnTo"],c=i["a:cubicBezTo"],d=i["a:arcTo"],p=gl(i,["a:close"]);Array.isArray(f)||(f=[f]);var g=[];if(f.length>0){if(Object.keys(f).forEach((function(t){var e=f[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,i=r.y,a=r.order;g.push({type:"movto",x:n,y:i,order:a})}))})),h&&Object.keys(h).forEach((function(t){var e=h[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,i=r.y,a=r.order;g.push({type:"lnto",x:n,y:i,order:a})}))})),c){var b=[];Array.isArray(c)||(c=[c]),Object.keys(c).forEach((function(t){b.push(c[t]["a:pt"])})),b.forEach((function(t){var e=[];t.forEach((function(t){var r={x:t.attrs.x,y:t.attrs.y};e.push(r)}));var r=t[0].attrs.order;g.push({type:"cubicBezTo",cubBzPt:e,order:r})}))}if(d){var v=d.attrs,m=v.order,y=v.hR,w=v.wR,_=v.stAng,k=v.swAng,x=0,S=0,C=gl(d,["a:pt","attrs"]);C&&(x=C.x,S=C.y),g.push({type:"arcTo",hR:y,wR:w,stAng:_,swAng:k,shftX:x,shftY:S,order:m})}p&&(Array.isArray(p)||(p=[p]),Object.keys(p).forEach((function(){g.push({type:"close",order:1/0})}))),g.sort((function(t,e){return t.order-e.order}));for(var A=0;A<g.length;){if("movto"===g[A].type)l+=" M"+parseInt(g[A].x)*s+","+parseInt(g[A].y)*u;else if("lnto"===g[A].type)l+=" L"+parseInt(g[A].x)*s+","+parseInt(g[A].y)*u;else if("cubicBezTo"===g[A].type)l+=" C"+parseInt(g[A].cubBzPt[0].x)*s+","+parseInt(g[A].cubBzPt[0].y)*u+" "+parseInt(g[A].cubBzPt[1].x)*s+","+parseInt(g[A].cubBzPt[1].y)*u+" "+parseInt(g[A].cubBzPt[2].x)*s+","+parseInt(g[A].cubBzPt[2].y)*u;else if("arcTo"===g[A].type){var E=parseInt(g[A].hR)*s,R=parseInt(g[A].wR)*u,O=parseInt(g[A].stAng)/6e4;l+=Yl(R,E,R,E,O,O+parseInt(g[A].swAng)/6e4,!1)}else"close"===g[A].type&&(l+="z");A++}}return l}(c,parseInt(D.cx)*zl,parseInt(D.cy)*zl);return Xl(Xl({},B),{},{type:"shape",shapType:"custom",path:z})}return Xl(Xl({},B),{},!h||"obj"!==i&&i?{type:"text",isVertical:P,rotate:o}:{type:"shape",shapType:h})}function mf(t,e,r){return yf.apply(this,arguments)}function yf(){return yf=r(u.mark((function t(e,r,n){var i,a,o,s,l,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A,E,R,O,T,L,M,I,P,B,D,z;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="slideMasterBg"===n?r.masterResObj:"slideLayoutBg"===n?r.layoutResObj:r.slideResObj,a=e["p:blipFill"]["a:blip"].attrs["r:embed"],o=i[a].target,s=dl(o).toLowerCase(),l=r.zip,t.next=7,l.file(o).async("arraybuffer");case 7:if(f=t.sent,h=e["p:spPr"]["a:xfrm"],c=ml(s),d=jl(h,void 0,void 0),p=d.top,g=d.left,b=Fl(h,void 0,void 0),v=b.width,m=b.height,y="data:".concat(c,";base64,").concat(cl(f)),w="1"===gl(h,["attrs","flipV"]),_="1"===gl(h,["attrs","flipH"]),k=0,(x=gl(e,["p:spPr","a:xfrm","attrs","rot"]))&&(k=bl(x)),S=gl(e,["p:nvPicPr","p:nvPr","a:videoFile"]),L=!1,!S){t.next=35;break}if(C=S.attrs["r:link"],!yl(A=i[C].target)){t.next=28;break}A=vl(A),L=!0,t.next=35;break;case 28:if("mp4"!==(E=dl(A).toLowerCase())&&"webm"!==E&&"ogg"!==E){t.next=35;break}return t.next=32,l.file(A).async("arraybuffer");case 32:O=t.sent,R=ml(E),T=URL.createObjectURL(new Blob([O],{type:R}));case 35:if(!(M=gl(e,["p:nvPicPr","p:nvPr","a:audioFile"]))){t.next=45;break}if(I=M.attrs["r:link"],P=i[I].target,"mp3"!==(B=dl(P).toLowerCase())&&"wav"!==B&&"ogg"!==B){t.next=45;break}return t.next=43,l.file(P).async("arraybuffer");case 43:D=t.sent,z=URL.createObjectURL(new Blob([D]));case 45:if(!S||L){t.next=47;break}return t.abrupt("return",{type:"video",top:p,left:g,width:v,height:m,rotate:k,blob:T});case 47:if(!S||!L){t.next=49;break}return t.abrupt("return",{type:"video",top:p,left:g,width:v,height:m,rotate:k,src:A});case 49:if(!M){t.next=51;break}return t.abrupt("return",{type:"audio",top:p,left:g,width:v,height:m,rotate:k,blob:z});case 51:return t.abrupt("return",{type:"image",top:p,left:g,width:v,height:m,rotate:k,src:y,isFlipV:w,isFlipH:_});case 52:case"end":return t.stop()}}),t)}))),yf.apply(this,arguments)}function wf(t,e,r){return _f.apply(this,arguments)}function _f(){return _f=r(u.mark((function t(e,r,n){var i,a,o;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=gl(e,["a:graphic","a:graphicData","attrs","uri"]),t.t0=i,t.next="http://schemas.openxmlformats.org/drawingml/2006/table"===t.t0?4:"http://schemas.openxmlformats.org/drawingml/2006/chart"===t.t0?6:"http://schemas.openxmlformats.org/drawingml/2006/diagram"===t.t0?10:"http://schemas.openxmlformats.org/presentationml/2006/ole"===t.t0?12:15;break;case 4:return a=kf(e,r),t.abrupt("break",15);case 6:return t.next=8,xf(e,r);case 8:return a=t.sent,t.abrupt("break",15);case 10:return a=Cf(e,r),t.abrupt("break",15);case 12:return(o=gl(e,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))?df(o,r,n):o=gl(e,["a:graphic","a:graphicData","p:oleObj"]),t.abrupt("break",15);case 15:return t.abrupt("return",a);case 16:case"end":return t.stop()}}),t)}))),_f.apply(this,arguments)}function kf(t,e){var r,n,i=gl(t,["a:graphic","a:graphicData","a:tbl"]),a=gl(t,["p:xfrm"]),o=jl(a,void 0,void 0),s=o.top,u=o.left,l=Fl(a,void 0,void 0),f=l.width,h=l.height,c=gl(t,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),d=c.attrs?c.attrs.firstRow:void 0,p=c.attrs?c.attrs.firstCol:void 0,g=c.attrs?c.attrs.lastRow:void 0,b=c.attrs?c.attrs.lastCol:void 0,v=c.attrs?c.attrs.bandRow:void 0,m=c.attrs?c.attrs.bandCol:void 0,y={isFrstRowAttr:d&&"1"===d?1:0,isFrstColAttr:p&&"1"===p?1:0,isLstRowAttr:g&&"1"===g?1:0,isLstColAttr:b&&"1"===b?1:0,isBandRowAttr:v&&"1"===v?1:0,isBandColAttr:m&&"1"===m?1:0},w=c["a:tableStyleId"];if(w){var _=e.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(_)if(_.constructor===Array)for(var k=0;k<_.length;k++)_[k].attrs.styleId===w&&(r=_[k]);else _.attrs.styleId===w&&(r=_)}r&&(r.tblStylAttrObj=y);var x=gl(r,["a:wholeTbl","a:tcStyle"]),S=gl(x,["a:tcBdr"]);if(S){var C=function(t,e){var r={};if(t["a:bottom"]){var n=kl({"p:spPr":{"a:ln":t["a:bottom"]["a:ln"]}},void 0,e);r.bottom=n}if(t["a:top"]){var i=kl({"p:spPr":{"a:ln":t["a:top"]["a:ln"]}},void 0,e);r.top=i}if(t["a:right"]){var a=kl({"p:spPr":{"a:ln":t["a:right"]["a:ln"]}},void 0,e);r.right=a}if(t["a:left"]){var o=kl({"p:spPr":{"a:ln":t["a:left"]["a:ln"]}},void 0,e);r.left=o}return r}(S,e);C&&(n=C.bottom||C.left||C.right||C.top)}var A="",E=gl(r,["a:tblBg","a:fillRef"]);E&&(A=Il(E,void 0,void 0,e)),void 0===E&&(A=Il(E=gl(r,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),void 0,void 0,e));var R=i["a:tr"];R.constructor!==Array&&(R=[R]);for(var O=[],T=0;T<R.length;T++){var L=R[T],M=Vl(R,T,y,r,e),I=M.fillColor,P=M.fontColor,B=M.fontBold,D=L["a:tc"],z=[];if(D.constructor===Array)for(var j=0;j<D.length;j++){var F=D[j],N=void 0;if(0===j&&1===y.isFrstColAttr)N="a:firstCol",1===y.isLstRowAttr&&T===R.length-1&&gl(r,["a:seCell"])?N="a:seCell":1===y.isFrstRowAttr&&0===T&&gl(r,["a:neCell"])&&(N="a:neCell");else if(j>0&&1===y.isBandColAttr&&(1!==y.isFrstColAttr||0!==T)&&(1!==y.isLstRowAttr||T!==R.length-1)&&j!==D.length-1&&j%2!=0){var U=gl(r,["a:band2V"]);void 0===U?(U=gl(r,["a:band1V"]))&&(N="a:band2V"):N="a:band2V"}j===D.length-1&&1===y.isLstColAttr&&(N="a:lastCol",1===y.isLstRowAttr&&T===R.length-1&&gl(r,["a:swCell"])?N="a:swCell":1===y.isFrstRowAttr&&0===T&&gl(r,["a:nwCell"])&&(N="a:nwCell"));var H=Wl(F["a:txBody"],F,void 0,void 0,e),W=Gl(F,r,N,e),Z={text:H};W.rowSpan&&(Z.rowSpan=W.rowSpan),W.colSpan&&(Z.colSpan=W.colSpan),W.vMerge&&(Z.vMerge=W.vMerge),W.hMerge&&(Z.hMerge=W.hMerge),(W.fontBold||B)&&(Z.fontBold=W.fontBold||B),(W.fontColor||P)&&(Z.fontColor=W.fontColor||P),(W.fillColor||I||A)&&(Z.fillColor=W.fillColor||I||A),z.push(Z)}else{var q=void 0;if(1===y.isFrstColAttr&&1!==y.isLstRowAttr)q="a:firstCol";else if(1===y.isBandColAttr&&1!==y.isLstRowAttr){var Y=gl(r,["a:band2V"]);(Y||(Y=gl(r,["a:band1V"])))&&(q="a:band2V")}1===y.isLstColAttr&&1!==y.isLstRowAttr&&(q="a:lastCol");var G=Wl(D["a:txBody"],D,void 0,void 0,e),V=Gl(D,r,q,e),K={text:G};V.rowSpan&&(K.rowSpan=V.rowSpan),V.colSpan&&(K.colSpan=V.colSpan),V.vMerge&&(K.vMerge=V.vMerge),V.hMerge&&(K.hMerge=V.hMerge),(V.fontBold||B)&&(K.fontBold=V.fontBold||B),(V.fontColor||P)&&(K.fontColor=V.fontColor||P),(V.fillColor||I||A)&&(K.fillColor=V.fillColor||I||A),z.push(K)}O.push(z)}return Xl({type:"table",top:s,left:u,width:f,height:h,data:O},n||{})}function xf(t,e){return Sf.apply(this,arguments)}function Sf(){return Sf=r(u.mark((function t(e,r){var n,i,a,o,s,l,f,h,c,d,p,g,b;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=gl(e,["p:xfrm"]),i=jl(n,void 0,void 0),a=i.top,o=i.left,s=Fl(n,void 0,void 0),l=s.width,f=s.height,h=e["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],c=r.slideResObj[h].target,t.next=7,Eu(r.zip,c);case 7:if(d=t.sent,p=gl(d,["c:chartSpace","c:chart","c:plotArea"]),g=Bl(p)){t.next=12;break}return t.abrupt("return",{});case 12:return b={type:"chart",top:a,left:o,width:l,height:f,data:g.data,chartType:g.type},void 0!==g.marker&&(b.marker=g.marker),void 0!==g.barDir&&(b.barDir=g.barDir),void 0!==g.holeSize&&(b.holeSize=g.holeSize),void 0!==g.grouping&&(b.grouping=g.grouping),void 0!==g.style&&(b.style=g.style),t.abrupt("return",b);case 19:case"end":return t.stop()}}),t)}))),Sf.apply(this,arguments)}function Cf(t,e){var r=gl(t,["p:xfrm"]),n=jl(r,void 0,void 0),i=n.left,a=n.top,o=Fl(r,void 0,void 0),s=o.width,u=o.height,l=gl(e.digramFileContent,["p:drawing","p:spTree","p:sp"]),f=[];if(l){var h,c=$l(l);try{for(c.s();!(h=c.n()).done;){var d=gf(h.value,e,"diagramBg");d&&f.push(d)}}catch(t){c.e(t)}finally{c.f()}}return{type:"diagram",left:i,top:a,width:s,height:u,elements:f}}export{Ql as parse};
2
2
  //# sourceMappingURL=index.js.map