@live-codes/browser-compilers 0.1.0

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.
Files changed (46) hide show
  1. package/.editorconfig +17 -0
  2. package/.eslintignore +9 -0
  3. package/.eslintrc.js +198 -0
  4. package/.github/workflows/CI.yml +29 -0
  5. package/.prettierignore +3 -0
  6. package/.stylelintrc.json +11 -0
  7. package/CHANGELOG.md +0 -0
  8. package/LICENSE +21 -0
  9. package/README.md +10 -0
  10. package/package.json +90 -0
  11. package/scripts/vendors.js +308 -0
  12. package/tsconfig.eslint.json +12 -0
  13. package/tsconfig.json +49 -0
  14. package/vendor-licenses.md +71 -0
  15. package/vendor_modules/imports/autoprefixer.ts +3 -0
  16. package/vendor_modules/imports/babel-preset-solid.js +2 -0
  17. package/vendor_modules/imports/less.js +5 -0
  18. package/vendor_modules/imports/mdx.ts +2 -0
  19. package/vendor_modules/imports/monaco-editor.ts +1 -0
  20. package/vendor_modules/imports/postcss-preset-env.ts +3 -0
  21. package/vendor_modules/imports/postcss.ts +3 -0
  22. package/vendor_modules/imports/react-native-web.js +32 -0
  23. package/vendor_modules/imports/typescript.js +1 -0
  24. package/vendor_modules/imports/wast-refmt.ts +3 -0
  25. package/vendor_modules/src/asciidoctor.css/asciidoctor.css +407 -0
  26. package/vendor_modules/src/asciidoctor.css/readme.md +1 -0
  27. package/vendor_modules/src/clientside-haml-js/haml.js +22 -0
  28. package/vendor_modules/src/clientside-haml-js/readme.md +4 -0
  29. package/vendor_modules/src/coffeescript/coffeescript.js +8 -0
  30. package/vendor_modules/src/coffeescript/readme.md +1 -0
  31. package/vendor_modules/src/jszip/jszip.js +17 -0
  32. package/vendor_modules/src/jszip/readme.md +1 -0
  33. package/vendor_modules/src/livescript/livescript-min.js +1646 -0
  34. package/vendor_modules/src/livescript/prelude-browser-min.js +18 -0
  35. package/vendor_modules/src/livescript/readme.md +3 -0
  36. package/vendor_modules/src/perlito/perlito5.js +30663 -0
  37. package/vendor_modules/src/perlito/readme.md +1 -0
  38. package/vendor_modules/src/pug/pug.min.js +104 -0
  39. package/vendor_modules/src/stylus/stylus.min.js +6 -0
  40. package/vendor_modules/src/svelte/compiler.js +31611 -0
  41. package/vendor_modules/src/svelte/readme.md +1 -0
  42. package/vendor_modules/src/tailwindcss/tailwindcss.js +203 -0
  43. package/vendor_modules/src/typescript/typescriptServices.js +156785 -0
  44. package/vendor_modules/types/assemblyscript.d.ts +2304 -0
  45. package/vendor_modules/types/solid-js.d.ts +4304 -0
  46. package/vendor_modules/types/stencil-core.d.ts +6040 -0
@@ -0,0 +1 @@
1
+ from https://web.archive.org/web/20180919051532/https://coffeescript.org/v2/browser-compiler/coffeescript.js
@@ -0,0 +1,17 @@
1
+ var je=typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},we=[],pe=[],lr=typeof Uint8Array!="undefined"?Uint8Array:Array,Oe=!1;function Ye(){Oe=!0;for(var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=u.length;r<e;++r)we[r]=u[r],pe[u.charCodeAt(r)]=r;pe["-".charCodeAt(0)]=62,pe["_".charCodeAt(0)]=63}function cr(u){Oe||Ye();var r,e,s,a,n,i,h=u.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");n=u[h-2]==="="?2:u[h-1]==="="?1:0,i=new lr(h*3/4-n),s=n>0?h-4:h;var c=0;for(r=0,e=0;r<s;r+=4,e+=3)a=pe[u.charCodeAt(r)]<<18|pe[u.charCodeAt(r+1)]<<12|pe[u.charCodeAt(r+2)]<<6|pe[u.charCodeAt(r+3)],i[c++]=a>>16&255,i[c++]=a>>8&255,i[c++]=a&255;return n===2?(a=pe[u.charCodeAt(r)]<<2|pe[u.charCodeAt(r+1)]>>4,i[c++]=a&255):n===1&&(a=pe[u.charCodeAt(r)]<<10|pe[u.charCodeAt(r+1)]<<4|pe[u.charCodeAt(r+2)]>>2,i[c++]=a>>8&255,i[c++]=a&255),i}function dr(u){return we[u>>18&63]+we[u>>12&63]+we[u>>6&63]+we[u&63]}function pr(u,r,e){for(var s,a=[],n=r;n<e;n+=3)s=(u[n]<<16)+(u[n+1]<<8)+u[n+2],a.push(dr(s));return a.join("")}function He(u){Oe||Ye();for(var r,e=u.length,s=e%3,a="",n=[],i=16383,h=0,c=e-s;h<c;h+=i)n.push(pr(u,h,h+i>c?c:h+i));return s===1?(r=u[e-1],a+=we[r>>2],a+=we[r<<4&63],a+="=="):s===2&&(r=(u[e-2]<<8)+u[e-1],a+=we[r>>10],a+=we[r>>4&63],a+=we[r<<2&63],a+="="),n.push(a),n.join("")}function Fe(u,r,e,s,a){var n,i,h=a*8-s-1,c=(1<<h)-1,y=c>>1,v=-7,g=e?a-1:0,k=e?-1:1,f=u[r+g];for(g+=k,n=f&(1<<-v)-1,f>>=-v,v+=h;v>0;n=n*256+u[r+g],g+=k,v-=8);for(i=n&(1<<-v)-1,n>>=-v,v+=s;v>0;i=i*256+u[r+g],g+=k,v-=8);if(n===0)n=1-y;else{if(n===c)return i?NaN:(f?-1:1)*Infinity;i=i+Math.pow(2,s),n=n-y}return(f?-1:1)*i*Math.pow(2,n-s)}function Ge(u,r,e,s,a,n){var i,h,c,y=n*8-a-1,v=(1<<y)-1,g=v>>1,k=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=s?0:n-1,w=s?1:-1,b=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===Infinity?(h=isNaN(r)?1:0,i=v):(i=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-i))<1&&(i--,c*=2),i+g>=1?r+=k/c:r+=k*Math.pow(2,1-g),r*c>=2&&(i++,c/=2),i+g>=v?(h=0,i=v):i+g>=1?(h=(r*c-1)*Math.pow(2,a),i=i+g):(h=r*Math.pow(2,g-1)*Math.pow(2,a),i=0));a>=8;u[e+f]=h&255,f+=w,h/=256,a-=8);for(i=i<<a|h,y+=a;y>0;u[e+f]=i&255,f+=w,i/=256,y-=8);u[e+f-w]|=b*128}var mr={}.toString,Ke=Array.isArray||function(u){return mr.call(u)=="[object Array]"};/*!
2
+ * The buffer module from node.js, for the browser.
3
+ *
4
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
5
+ * @license MIT
6
+ */var _r=50;O.TYPED_ARRAY_SUPPORT=je.TYPED_ARRAY_SUPPORT!==void 0?je.TYPED_ARRAY_SUPPORT:!0;function Pe(){return O.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function be(u,r){if(Pe()<r)throw new RangeError("Invalid typed array length");return O.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(r),u.__proto__=O.prototype):(u===null&&(u=new O(r)),u.length=r),u}function O(u,r,e){if(!O.TYPED_ARRAY_SUPPORT&&!(this instanceof O))return new O(u,r,e);if(typeof u=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return Ne(this,u)}return Xe(this,u,r,e)}O.poolSize=8192,O._augment=function(u){return u.__proto__=O.prototype,u};function Xe(u,r,e,s){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&r instanceof ArrayBuffer?yr(u,r,e,s):typeof r=="string"?wr(u,r,e):vr(u,r)}O.from=function(u,r,e){return Xe(null,u,r,e)},O.TYPED_ARRAY_SUPPORT&&(O.prototype.__proto__=Uint8Array.prototype,O.__proto__=Uint8Array);function Ve(u){if(typeof u!="number")throw new TypeError('"size" argument must be a number');if(u<0)throw new RangeError('"size" argument must not be negative')}function gr(u,r,e,s){return Ve(r),r<=0?be(u,r):e!==void 0?typeof s=="string"?be(u,r).fill(e,s):be(u,r).fill(e):be(u,r)}O.alloc=function(u,r,e){return gr(null,u,r,e)};function Ne(u,r){if(Ve(r),u=be(u,r<0?0:We(r)|0),!O.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)u[e]=0;return u}O.allocUnsafe=function(u){return Ne(null,u)},O.allocUnsafeSlow=function(u){return Ne(null,u)};function wr(u,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!O.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var s=Je(r,e)|0;u=be(u,s);var a=u.write(r,e);return a!==s&&(u=u.slice(0,a)),u}function Le(u,r){var e=r.length<0?0:We(r.length)|0;u=be(u,e);for(var s=0;s<e;s+=1)u[s]=r[s]&255;return u}function yr(u,r,e,s){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(s||0))throw new RangeError("'length' is out of bounds");return e===void 0&&s===void 0?r=new Uint8Array(r):s===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,s),O.TYPED_ARRAY_SUPPORT?(u=r,u.__proto__=O.prototype):u=Le(u,r),u}function vr(u,r){if(ye(r)){var e=We(r.length)|0;return u=be(u,e),u.length===0||r.copy(u,0,0,e),u}if(r){if(typeof ArrayBuffer!="undefined"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||Lr(r.length)?be(u,0):Le(u,r);if(r.type==="Buffer"&&Ke(r.data))return Le(u,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function We(u){if(u>=Pe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Pe().toString(16)+" bytes");return u|0}O.isBuffer=Wr;function ye(u){return!!(u!=null&&u._isBuffer)}O.compare=function(r,e){if(!ye(r)||!ye(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var s=r.length,a=e.length,n=0,i=Math.min(s,a);n<i;++n)if(r[n]!==e[n]){s=r[n],a=e[n];break}return s<a?-1:a<s?1:0},O.isEncoding=function(r){switch(String(r).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}},O.concat=function(r,e){if(!Ke(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return O.alloc(0);var s;if(e===void 0)for(e=0,s=0;s<r.length;++s)e+=r[s].length;var a=O.allocUnsafe(e),n=0;for(s=0;s<r.length;++s){var i=r[s];if(!ye(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(a,n),n+=i.length}return a};function Je(u,r){if(ye(u))return u.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(u)||u instanceof ArrayBuffer))return u.byteLength;typeof u!="string"&&(u=""+u);var e=u.length;if(e===0)return 0;for(var s=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return Te(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return ar(u).length;default:if(s)return Te(u).length;r=(""+r).toLowerCase(),s=!0}}O.byteLength=Je;function br(u,r,e){var s=!1;if((r===void 0||r<0)&&(r=0),r>this.length)return"";if((e===void 0||e>this.length)&&(e=this.length),e<=0)return"";if(e>>>=0,r>>>=0,e<=r)return"";for(u||(u="utf8");;)switch(u){case"hex":return Rr(this,r,e);case"utf8":case"utf-8":return er(this,r,e);case"ascii":return zr(this,r,e);case"latin1":case"binary":return Fr(this,r,e);case"base64":return Cr(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Br(this,r,e);default:if(s)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),s=!0}}O.prototype._isBuffer=!0;function xe(u,r,e){var s=u[r];u[r]=u[e],u[e]=s}O.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)xe(this,e,e+1);return this},O.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)xe(this,e,e+3),xe(this,e+1,e+2);return this},O.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)xe(this,e,e+7),xe(this,e+1,e+6),xe(this,e+2,e+5),xe(this,e+3,e+4);return this},O.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?er(this,0,r):br.apply(this,arguments)},O.prototype.equals=function(r){if(!ye(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:O.compare(this,r)===0},O.prototype.inspect=function(){var r="",e=_r;return this.length>0&&(r=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(r+=" ... ")),"<Buffer "+r+">"},O.prototype.compare=function(r,e,s,a,n){if(!ye(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),s===void 0&&(s=r?r.length:0),a===void 0&&(a=0),n===void 0&&(n=this.length),e<0||s>r.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&e>=s)return 0;if(a>=n)return-1;if(e>=s)return 1;if(e>>>=0,s>>>=0,a>>>=0,n>>>=0,this===r)return 0;for(var i=n-a,h=s-e,c=Math.min(i,h),y=this.slice(a,n),v=r.slice(e,s),g=0;g<c;++g)if(y[g]!==v[g]){i=y[g],h=v[g];break}return i<h?-1:h<i?1:0};function qe(u,r,e,s,a){if(u.length===0)return-1;if(typeof e=="string"?(s=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=a?0:u.length-1),e<0&&(e=u.length+e),e>=u.length){if(a)return-1;e=u.length-1}else if(e<0)if(a)e=0;else return-1;if(typeof r=="string"&&(r=O.from(r,s)),ye(r))return r.length===0?-1:Qe(u,r,e,s,a);if(typeof r=="number")return r=r&255,O.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(u,r,e):Uint8Array.prototype.lastIndexOf.call(u,r,e):Qe(u,[r],e,s,a);throw new TypeError("val must be string, number or Buffer")}function Qe(u,r,e,s,a){var n=1,i=u.length,h=r.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(u.length<2||r.length<2)return-1;n=2,i/=2,h/=2,e/=2}function c(f,w){return n===1?f[w]:f.readUInt16BE(w*n)}var y;if(a){var v=-1;for(y=e;y<i;y++)if(c(u,y)===c(r,v===-1?0:y-v)){if(v===-1&&(v=y),y-v+1===h)return v*n}else v!==-1&&(y-=y-v),v=-1}else for(e+h>i&&(e=i-h),y=e;y>=0;y--){for(var g=!0,k=0;k<h;k++)if(c(u,y+k)!==c(r,k)){g=!1;break}if(g)return y}return-1}O.prototype.includes=function(r,e,s){return this.indexOf(r,e,s)!==-1},O.prototype.indexOf=function(r,e,s){return qe(this,r,e,s,!0)},O.prototype.lastIndexOf=function(r,e,s){return qe(this,r,e,s,!1)};function xr(u,r,e,s){e=Number(e)||0;var a=u.length-e;s?(s=Number(s),s>a&&(s=a)):s=a;var n=r.length;if(n%2!==0)throw new TypeError("Invalid hex string");s>n/2&&(s=n/2);for(var i=0;i<s;++i){var h=parseInt(r.substr(i*2,2),16);if(isNaN(h))return i;u[e+i]=h}return i}function kr(u,r,e,s){return De(Te(r,u.length-e),u,e,s)}function $e(u,r,e,s){return De(Pr(r),u,e,s)}function Er(u,r,e,s){return $e(u,r,e,s)}function Ar(u,r,e,s){return De(ar(r),u,e,s)}function Sr(u,r,e,s){return De(Nr(r,u.length-e),u,e,s)}O.prototype.write=function(r,e,s,a){if(e===void 0)a="utf8",s=this.length,e=0;else if(s===void 0&&typeof e=="string")a=e,s=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(s)?(s=s|0,a===void 0&&(a="utf8")):(a=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-e;if((s===void 0||s>n)&&(s=n),r.length>0&&(s<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return xr(this,r,e,s);case"utf8":case"utf-8":return kr(this,r,e,s);case"ascii":return $e(this,r,e,s);case"latin1":case"binary":return Er(this,r,e,s);case"base64":return Ar(this,r,e,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sr(this,r,e,s);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},O.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Cr(u,r,e){return r===0&&e===u.length?He(u):He(u.slice(r,e))}function er(u,r,e){e=Math.min(u.length,e);for(var s=[],a=r;a<e;){var n=u[a],i=null,h=n>239?4:n>223?3:n>191?2:1;if(a+h<=e){var c,y,v,g;switch(h){case 1:n<128&&(i=n);break;case 2:c=u[a+1],(c&192)===128&&(g=(n&31)<<6|c&63,g>127&&(i=g));break;case 3:c=u[a+1],y=u[a+2],(c&192)===128&&(y&192)===128&&(g=(n&15)<<12|(c&63)<<6|y&63,g>2047&&(g<55296||g>57343)&&(i=g));break;case 4:c=u[a+1],y=u[a+2],v=u[a+3],(c&192)===128&&(y&192)===128&&(v&192)===128&&(g=(n&15)<<18|(c&63)<<12|(y&63)<<6|v&63,g>65535&&g<1114112&&(i=g))}}i===null?(i=65533,h=1):i>65535&&(i-=65536,s.push(i>>>10&1023|55296),i=56320|i&1023),s.push(i),a+=h}return Ir(s)}var rr=4096;function Ir(u){var r=u.length;if(r<=rr)return String.fromCharCode.apply(String,u);for(var e="",s=0;s<r;)e+=String.fromCharCode.apply(String,u.slice(s,s+=rr));return e}function zr(u,r,e){var s="";e=Math.min(u.length,e);for(var a=r;a<e;++a)s+=String.fromCharCode(u[a]&127);return s}function Fr(u,r,e){var s="";e=Math.min(u.length,e);for(var a=r;a<e;++a)s+=String.fromCharCode(u[a]);return s}function Rr(u,r,e){var s=u.length;(!r||r<0)&&(r=0),(!e||e<0||e>s)&&(e=s);for(var a="",n=r;n<e;++n)a+=Or(u[n]);return a}function Br(u,r,e){for(var s=u.slice(r,e),a="",n=0;n<s.length;n+=2)a+=String.fromCharCode(s[n]+s[n+1]*256);return a}O.prototype.slice=function(r,e){var s=this.length;r=~~r,e=e===void 0?s:~~e,r<0?(r+=s,r<0&&(r=0)):r>s&&(r=s),e<0?(e+=s,e<0&&(e=0)):e>s&&(e=s),e<r&&(e=r);var a;if(O.TYPED_ARRAY_SUPPORT)a=this.subarray(r,e),a.__proto__=O.prototype;else{var n=e-r;a=new O(n,void 0);for(var i=0;i<n;++i)a[i]=this[i+r]}return a};function fe(u,r,e){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+r>e)throw new RangeError("Trying to access beyond buffer length")}O.prototype.readUIntLE=function(r,e,s){r=r|0,e=e|0,s||fe(r,e,this.length);for(var a=this[r],n=1,i=0;++i<e&&(n*=256);)a+=this[r+i]*n;return a},O.prototype.readUIntBE=function(r,e,s){r=r|0,e=e|0,s||fe(r,e,this.length);for(var a=this[r+--e],n=1;e>0&&(n*=256);)a+=this[r+--e]*n;return a},O.prototype.readUInt8=function(r,e){return e||fe(r,1,this.length),this[r]},O.prototype.readUInt16LE=function(r,e){return e||fe(r,2,this.length),this[r]|this[r+1]<<8},O.prototype.readUInt16BE=function(r,e){return e||fe(r,2,this.length),this[r]<<8|this[r+1]},O.prototype.readUInt32LE=function(r,e){return e||fe(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},O.prototype.readUInt32BE=function(r,e){return e||fe(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},O.prototype.readIntLE=function(r,e,s){r=r|0,e=e|0,s||fe(r,e,this.length);for(var a=this[r],n=1,i=0;++i<e&&(n*=256);)a+=this[r+i]*n;return n*=128,a>=n&&(a-=Math.pow(2,8*e)),a},O.prototype.readIntBE=function(r,e,s){r=r|0,e=e|0,s||fe(r,e,this.length);for(var a=e,n=1,i=this[r+--a];a>0&&(n*=256);)i+=this[r+--a]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*e)),i},O.prototype.readInt8=function(r,e){return e||fe(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},O.prototype.readInt16LE=function(r,e){e||fe(r,2,this.length);var s=this[r]|this[r+1]<<8;return s&32768?s|4294901760:s},O.prototype.readInt16BE=function(r,e){e||fe(r,2,this.length);var s=this[r+1]|this[r]<<8;return s&32768?s|4294901760:s},O.prototype.readInt32LE=function(r,e){return e||fe(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},O.prototype.readInt32BE=function(r,e){return e||fe(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},O.prototype.readFloatLE=function(r,e){return e||fe(r,4,this.length),Fe(this,r,!0,23,4)},O.prototype.readFloatBE=function(r,e){return e||fe(r,4,this.length),Fe(this,r,!1,23,4)},O.prototype.readDoubleLE=function(r,e){return e||fe(r,8,this.length),Fe(this,r,!0,52,8)},O.prototype.readDoubleBE=function(r,e){return e||fe(r,8,this.length),Fe(this,r,!1,52,8)};function ce(u,r,e,s,a,n){if(!ye(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>a||r<n)throw new RangeError('"value" argument is out of bounds');if(e+s>u.length)throw new RangeError("Index out of range")}O.prototype.writeUIntLE=function(r,e,s,a){if(r=+r,e=e|0,s=s|0,!a){var n=Math.pow(2,8*s)-1;ce(this,r,e,s,n,0)}var i=1,h=0;for(this[e]=r&255;++h<s&&(i*=256);)this[e+h]=r/i&255;return e+s},O.prototype.writeUIntBE=function(r,e,s,a){if(r=+r,e=e|0,s=s|0,!a){var n=Math.pow(2,8*s)-1;ce(this,r,e,s,n,0)}var i=s-1,h=1;for(this[e+i]=r&255;--i>=0&&(h*=256);)this[e+i]=r/h&255;return e+s},O.prototype.writeUInt8=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,1,255,0),O.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function Re(u,r,e,s){r<0&&(r=65535+r+1);for(var a=0,n=Math.min(u.length-e,2);a<n;++a)u[e+a]=(r&255<<8*(s?a:1-a))>>>(s?a:1-a)*8}O.prototype.writeUInt16LE=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,2,65535,0),O.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):Re(this,r,e,!0),e+2},O.prototype.writeUInt16BE=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,2,65535,0),O.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):Re(this,r,e,!1),e+2};function Be(u,r,e,s){r<0&&(r=4294967295+r+1);for(var a=0,n=Math.min(u.length-e,4);a<n;++a)u[e+a]=r>>>(s?a:3-a)*8&255}O.prototype.writeUInt32LE=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,4,4294967295,0),O.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):Be(this,r,e,!0),e+4},O.prototype.writeUInt32BE=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,4,4294967295,0),O.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):Be(this,r,e,!1),e+4},O.prototype.writeIntLE=function(r,e,s,a){if(r=+r,e=e|0,!a){var n=Math.pow(2,8*s-1);ce(this,r,e,s,n-1,-n)}var i=0,h=1,c=0;for(this[e]=r&255;++i<s&&(h*=256);)r<0&&c===0&&this[e+i-1]!==0&&(c=1),this[e+i]=(r/h>>0)-c&255;return e+s},O.prototype.writeIntBE=function(r,e,s,a){if(r=+r,e=e|0,!a){var n=Math.pow(2,8*s-1);ce(this,r,e,s,n-1,-n)}var i=s-1,h=1,c=0;for(this[e+i]=r&255;--i>=0&&(h*=256);)r<0&&c===0&&this[e+i+1]!==0&&(c=1),this[e+i]=(r/h>>0)-c&255;return e+s},O.prototype.writeInt8=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,1,127,-128),O.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1},O.prototype.writeInt16LE=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,2,32767,-32768),O.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):Re(this,r,e,!0),e+2},O.prototype.writeInt16BE=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,2,32767,-32768),O.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):Re(this,r,e,!1),e+2},O.prototype.writeInt32LE=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,4,2147483647,-2147483648),O.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):Be(this,r,e,!0),e+4},O.prototype.writeInt32BE=function(r,e,s){return r=+r,e=e|0,s||ce(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),O.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):Be(this,r,e,!1),e+4};function tr(u,r,e,s,a,n){if(e+s>u.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function nr(u,r,e,s,a){return a||tr(u,r,e,4),Ge(u,r,e,s,23,4),e+4}O.prototype.writeFloatLE=function(r,e,s){return nr(this,r,e,!0,s)},O.prototype.writeFloatBE=function(r,e,s){return nr(this,r,e,!1,s)};function ir(u,r,e,s,a){return a||tr(u,r,e,8),Ge(u,r,e,s,52,8),e+8}O.prototype.writeDoubleLE=function(r,e,s){return ir(this,r,e,!0,s)},O.prototype.writeDoubleBE=function(r,e,s){return ir(this,r,e,!1,s)},O.prototype.copy=function(r,e,s,a){if(s||(s=0),!a&&a!==0&&(a=this.length),e>=r.length&&(e=r.length),e||(e=0),a>0&&a<s&&(a=s),a===s)return 0;if(r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),r.length-e<a-s&&(a=r.length-e+s);var n=a-s,i;if(this===r&&s<e&&e<a)for(i=n-1;i>=0;--i)r[i+e]=this[i+s];else if(n<1e3||!O.TYPED_ARRAY_SUPPORT)for(i=0;i<n;++i)r[i+e]=this[i+s];else Uint8Array.prototype.set.call(r,this.subarray(s,s+n),e);return n},O.prototype.fill=function(r,e,s,a){if(typeof r=="string"){if(typeof e=="string"?(a=e,e=0,s=this.length):typeof s=="string"&&(a=s,s=this.length),r.length===1){var n=r.charCodeAt(0);n<256&&(r=n)}if(a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!O.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<s)throw new RangeError("Out of range index");if(s<=e)return this;e=e>>>0,s=s===void 0?this.length:s>>>0,r||(r=0);var i;if(typeof r=="number")for(i=e;i<s;++i)this[i]=r;else{var h=ye(r)?r:Te(new O(r,a).toString()),c=h.length;for(i=0;i<s-e;++i)this[i+e]=h[i%c]}return this};var Tr=/[^+\/0-9A-Za-z-_]/g;function Dr(u){if(u=Ur(u).replace(Tr,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function Ur(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function Or(u){return u<16?"0"+u.toString(16):u.toString(16)}function Te(u,r){r=r||Infinity;for(var e,s=u.length,a=null,n=[],i=0;i<s;++i){if(e=u.charCodeAt(i),e>55295&&e<57344){if(!a){if(e>56319){(r-=3)>-1&&n.push(239,191,189);continue}else if(i+1===s){(r-=3)>-1&&n.push(239,191,189);continue}a=e;continue}if(e<56320){(r-=3)>-1&&n.push(239,191,189),a=e;continue}e=(a-55296<<10|e-56320)+65536}else a&&((r-=3)>-1&&n.push(239,191,189));if(a=null,e<128){if((r-=1)<0)break;n.push(e)}else if(e<2048){if((r-=2)<0)break;n.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;n.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;n.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return n}function Pr(u){for(var r=[],e=0;e<u.length;++e)r.push(u.charCodeAt(e)&255);return r}function Nr(u,r){for(var e,s,a,n=[],i=0;i<u.length&&!((r-=2)<0);++i)e=u.charCodeAt(i),s=e>>8,a=e%256,n.push(a),n.push(s);return n}function ar(u){return cr(Dr(u))}function De(u,r,e,s){for(var a=0;a<s&&!(a+e>=r.length||a>=u.length);++a)r[a+e]=u[a];return a}function Lr(u){return u!==u}function Wr(u){return u!=null&&(!!u._isBuffer||sr(u)||Mr(u))}function sr(u){return!!u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u)}function Mr(u){return typeof u.readFloatLE=="function"&&typeof u.slice=="function"&&sr(u.slice(0,0))}var or=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Zr(u,r,e){return e={path:r,exports:{},require:function(s,a){return Ce(s,a??e.path)}},u(e,e.exports),e.exports}function Ce(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var ke=Zr(function(u,r){/*!
7
+
8
+ JSZip v3.5.0 - A JavaScript class for generating and reading zip files
9
+ <http://stuartk.com/jszip>
10
+
11
+ (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
12
+ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
13
+
14
+ JSZip uses the library pako released under the MIT license :
15
+ https://github.com/nodeca/pako/blob/master/LICENSE
16
+ */!function(e){u.exports=e()}(function(){return function e(s,a,n){function i(y,v){if(!a[y]){if(!s[y]){var g=typeof Ce=="function"&&Ce;if(!v&&g)return g(y,!0);if(h)return h(y,!0);var k=new Error("Cannot find module '"+y+"'");throw k.code="MODULE_NOT_FOUND",k}var f=a[y]={exports:{}};s[y][0].call(f.exports,function(w){var b=s[y][1][w];return i(b||w)},f,f.exports,e,s,a,n)}return a[y].exports}for(var h=typeof Ce=="function"&&Ce,c=0;c<n.length;c++)i(n[c]);return i}({1:[function(e,s,a){var n=e("./utils"),i=e("./support"),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(c){for(var y,v,g,k,f,w,b,l=[],p=0,_=c.length,E=_,T=n.getTypeOf(c)!=="string";p<c.length;)E=_-p,g=T?(y=c[p++],v=p<_?c[p++]:0,p<_?c[p++]:0):(y=c.charCodeAt(p++),v=p<_?c.charCodeAt(p++):0,p<_?c.charCodeAt(p++):0),k=y>>2,f=(3&y)<<4|v>>4,w=1<E?(15&v)<<2|g>>6:64,b=2<E?63&g:64,l.push(h.charAt(k)+h.charAt(f)+h.charAt(w)+h.charAt(b));return l.join("")},a.decode=function(c){var y,v,g,k,f,w,b=0,l=0,p="data:";if(c.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var _,E=3*(c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(c.charAt(c.length-1)===h.charAt(64)&&E--,c.charAt(c.length-2)===h.charAt(64)&&E--,E%1!=0)throw new Error("Invalid base64 input, bad content length.");for(_=i.uint8array?new Uint8Array(0|E):new Array(0|E);b<c.length;)y=h.indexOf(c.charAt(b++))<<2|(k=h.indexOf(c.charAt(b++)))>>4,v=(15&k)<<4|(f=h.indexOf(c.charAt(b++)))>>2,g=(3&f)<<6|(w=h.indexOf(c.charAt(b++))),_[l++]=y,f!==64&&(_[l++]=v),w!==64&&(_[l++]=g);return _}},{"./support":30,"./utils":32}],2:[function(e,s,a){var n=e("./external"),i=e("./stream/DataWorker"),h=e("./stream/DataLengthProbe"),c=e("./stream/Crc32Probe");h=e("./stream/DataLengthProbe");function y(v,g,k,f,w){this.compressedSize=v,this.uncompressedSize=g,this.crc32=k,this.compression=f,this.compressedContent=w}y.prototype={getContentWorker:function(){var v=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),g=this;return v.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),v},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},y.createWorkerFrom=function(v,g,k){return v.pipe(new c).pipe(new h("uncompressedSize")).pipe(g.compressWorker(k)).pipe(new h("compressedSize")).withStreamInfo("compression",g)},s.exports=y},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,s,a){var n=e("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(i){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},a.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,s,a){var n=e("./utils"),i=function(){for(var h,c=[],y=0;y<256;y++){h=y;for(var v=0;v<8;v++)h=1&h?3988292384^h>>>1:h>>>1;c[y]=h}return c}();s.exports=function(h,c){return h!==void 0&&h.length?n.getTypeOf(h)!=="string"?function(y,v,g,k){var f=i,w=k+g;y^=-1;for(var b=k;b<w;b++)y=y>>>8^f[255&(y^v[b])];return-1^y}(0|c,h,h.length,0):function(y,v,g,k){var f=i,w=k+g;y^=-1;for(var b=k;b<w;b++)y=y>>>8^f[255&(y^v.charCodeAt(b))];return-1^y}(0|c,h,h.length,0):0}},{"./utils":32}],5:[function(e,s,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(e,s,a){var n=null;n=typeof Promise!="undefined"?Promise:e("lie"),s.exports={Promise:n}},{lie:37}],7:[function(e,s,a){var n=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",i=e("pako"),h=e("./utils"),c=e("./stream/GenericWorker"),y=n?"uint8array":"array";function v(g,k){c.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=k,this.meta={}}a.magic="\b\0",h.inherits(v,c),v.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(y,g.data),!1)},v.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},v.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},v.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(k){g.push({data:k,meta:g.meta})}},a.compressWorker=function(g){return new v("Deflate",g)},a.uncompressWorker=function(){return new v("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,s,a){function n(f,w){var b,l="";for(b=0;b<w;b++)l+=String.fromCharCode(255&f),f>>>=8;return l}function i(f,w,b,l,p,_){var E,T,S=f.file,W=f.compression,U=_!==y.utf8encode,G=h.transformTo("string",_(S.name)),R=h.transformTo("string",y.utf8encode(S.name)),H=S.comment,Q=h.transformTo("string",_(H)),x=h.transformTo("string",y.utf8encode(H)),B=R.length!==S.name.length,o=x.length!==H.length,P="",ee="",M="",re=S.dir,Z=S.date,$={crc32:0,compressedSize:0,uncompressedSize:0};w&&!b||($.crc32=f.crc32,$.compressedSize=f.compressedSize,$.uncompressedSize=f.uncompressedSize);var z=0;w&&(z|=8),U||!B&&!o||(z|=2048);var I=0,q=0;re&&(I|=16),p==="UNIX"?(q=798,I|=function(K,se){var le=K;return K||(le=se?16893:33204),(65535&le)<<16}(S.unixPermissions,re)):(q=20,I|=function(K){return 63&(K||0)}(S.dosPermissions)),E=Z.getUTCHours(),E<<=6,E|=Z.getUTCMinutes(),E<<=5,E|=Z.getUTCSeconds()/2,T=Z.getUTCFullYear()-1980,T<<=4,T|=Z.getUTCMonth()+1,T<<=5,T|=Z.getUTCDate(),B&&(ee=n(1,1)+n(v(G),4)+R,P+="up"+n(ee.length,2)+ee),o&&(M=n(1,1)+n(v(Q),4)+x,P+="uc"+n(M.length,2)+M);var X="";return X+=`
17
+ \0`,X+=n(z,2),X+=W.magic,X+=n(E,2),X+=n(T,2),X+=n($.crc32,4),X+=n($.compressedSize,4),X+=n($.uncompressedSize,4),X+=n(G.length,2),X+=n(P.length,2),{fileRecord:g.LOCAL_FILE_HEADER+X+G+P,dirRecord:g.CENTRAL_FILE_HEADER+n(q,2)+X+n(Q.length,2)+"\0\0\0\0"+n(I,4)+n(l,4)+G+P+Q}}var h=e("../utils"),c=e("../stream/GenericWorker"),y=e("../utf8"),v=e("../crc32"),g=e("../signature");function k(f,w,b,l){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=w,this.zipPlatform=b,this.encodeFileName=l,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}h.inherits(k,c),k.prototype.push=function(f){var w=f.meta.percent||0,b=this.entriesCount,l=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,c.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:b?(w+100*(b-l-1))/b:100}}))},k.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var w=this.streamFiles&&!f.file.dir;if(w){var b=i(f,w,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(f){this.accumulate=!1;var w=this.streamFiles&&!f.file.dir,b=i(f,w,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),w)this.push({data:function(l){return g.DATA_DESCRIPTOR+n(l.crc32,4)+n(l.compressedSize,4)+n(l.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var f=this.bytesWritten,w=0;w<this.dirRecords.length;w++)this.push({data:this.dirRecords[w],meta:{percent:100}});var b=this.bytesWritten-f,l=function(p,_,E,T,S){var W=h.transformTo("string",S(T));return g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(p,2)+n(p,2)+n(_,4)+n(E,4)+n(W.length,2)+W}(this.dirRecords.length,b,f,this.zipComment,this.encodeFileName);this.push({data:l,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(f){this._sources.push(f);var w=this;return f.on("data",function(b){w.processChunk(b)}),f.on("end",function(){w.closedSource(w.previous.streamInfo),w._sources.length?w.prepareNextSource():w.end()}),f.on("error",function(b){w.error(b)}),this},k.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(f){var w=this._sources;if(!c.prototype.error.call(this,f))return!1;for(var b=0;b<w.length;b++)try{w[b].error(f)}catch(l){}return!0},k.prototype.lock=function(){c.prototype.lock.call(this);for(var f=this._sources,w=0;w<f.length;w++)f[w].lock()},s.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,s,a){var n=e("../compressions"),i=e("./ZipFileWorker");a.generateWorker=function(h,c,y){var v=new i(c.streamFiles,y,c.platform,c.encodeFileName),g=0;try{h.forEach(function(k,f){g++;var w=function(_,E){var T=_||E,S=n[T];if(!S)throw new Error(T+" is not a valid compression method !");return S}(f.options.compression,c.compression),b=f.options.compressionOptions||c.compressionOptions||{},l=f.dir,p=f.date;f._compressWorker(w,b).withStreamInfo("file",{name:k,dir:l,date:p,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(v)}),v.entriesCount=g}catch(k){v.error(k)}return v}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,s,a){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var i=new n;for(var h in this)typeof this[h]!="function"&&(i[h]=this[h]);return i}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.5.0",n.loadAsync=function(i,h){return new n().loadAsync(i,h)},n.external=e("./external"),s.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,s,a){var n=e("./utils"),i=e("./external"),h=e("./utf8"),c=(n=e("./utils"),e("./zipEntries")),y=e("./stream/Crc32Probe"),v=e("./nodejsUtils");function g(k){return new i.Promise(function(f,w){var b=k.decompressed.getContentWorker().pipe(new y);b.on("error",function(l){w(l)}).on("end",function(){b.streamInfo.crc32!==k.decompressed.crc32?w(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}s.exports=function(k,f){var w=this;return f=n.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:h.utf8decode}),v.isNode&&v.isStream(k)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",k,!0,f.optimizedBinaryString,f.base64).then(function(b){var l=new c(f);return l.load(b),l}).then(function(b){var l=[i.Promise.resolve(b)],p=b.files;if(f.checkCRC32)for(var _=0;_<p.length;_++)l.push(g(p[_]));return i.Promise.all(l)}).then(function(b){for(var l=b.shift(),p=l.files,_=0;_<p.length;_++){var E=p[_];w.file(E.fileNameStr,E.decompressed,{binary:!0,optimizedBinaryString:!0,date:E.date,dir:E.dir,comment:E.fileCommentStr.length?E.fileCommentStr:null,unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions,createFolders:f.createFolders})}return l.zipComment.length&&(w.comment=l.zipComment),w})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,s,a){var n=e("../utils"),i=e("../stream/GenericWorker");function h(c,y){i.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(y)}n.inherits(h,i),h.prototype._bindStream=function(c){var y=this;(this._stream=c).pause(),c.on("data",function(v){y.push({data:v,meta:{percent:0}})}).on("error",function(v){y.isPaused?this.generatedError=v:y.error(v)}).on("end",function(){y.isPaused?y._upstreamEnded=!0:y.end()})},h.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},h.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=h},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,s,a){var n=e("readable-stream").Readable;function i(h,c,y){n.call(this,c),this._helper=h;var v=this;h.on("data",function(g,k){v.push(g)||v._helper.pause(),y&&y(k)}).on("error",function(g){v.emit("error",g)}).on("end",function(){v.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},s.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,s,a){s.exports={isNode:typeof O!="undefined",newBufferFrom:function(n,i){if(O.from&&O.from!==Uint8Array.from)return O.from(n,i);if(typeof n=="number")throw new Error('The "data" argument must not be a number');return new O(n,i)},allocBuffer:function(n){if(O.alloc)return O.alloc(n);var i=new O(n);return i.fill(0),i},isBuffer:function(n){return O.isBuffer(n)},isStream:function(n){return n&&typeof n.on=="function"&&typeof n.pause=="function"&&typeof n.resume=="function"}}},{}],15:[function(e,s,a){function n(S,W,U){var G,R=h.getTypeOf(W),H=h.extend(U||{},v);H.date=H.date||new Date,H.compression!==null&&(H.compression=H.compression.toUpperCase()),typeof H.unixPermissions=="string"&&(H.unixPermissions=parseInt(H.unixPermissions,8)),H.unixPermissions&&16384&H.unixPermissions&&(H.dir=!0),H.dosPermissions&&16&H.dosPermissions&&(H.dir=!0),H.dir&&(S=p(S)),H.createFolders&&(G=l(S))&&_.call(this,G,!0);var Q=R==="string"&&H.binary===!1&&H.base64===!1;U&&U.binary!==void 0||(H.binary=!Q),(W instanceof g&&W.uncompressedSize===0||H.dir||!W||W.length===0)&&(H.base64=!1,H.binary=!0,W="",H.compression="STORE",R="string");var x=null;x=W instanceof g||W instanceof c?W:w.isNode&&w.isStream(W)?new b(S,W):h.prepareContent(S,W,H.binary,H.optimizedBinaryString,H.base64);var B=new k(S,x,H);this.files[S]=B}var i=e("./utf8"),h=e("./utils"),c=e("./stream/GenericWorker"),y=e("./stream/StreamHelper"),v=e("./defaults"),g=e("./compressedObject"),k=e("./zipObject"),f=e("./generate"),w=e("./nodejsUtils"),b=e("./nodejs/NodejsStreamInputAdapter"),l=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var W=S.lastIndexOf("/");return 0<W?S.substring(0,W):""},p=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},_=function(S,W){return W=W!==void 0?W:v.createFolders,S=p(S),this.files[S]||n.call(this,S,null,{dir:!0,createFolders:W}),this.files[S]};function E(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var T={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var W,U,G;for(W in this.files)this.files.hasOwnProperty(W)&&(G=this.files[W],(U=W.slice(this.root.length,W.length))&&W.slice(0,this.root.length)===this.root&&S(U,G))},filter:function(S){var W=[];return this.forEach(function(U,G){S(U,G)&&W.push(G)}),W},file:function(S,W,U){if(arguments.length!==1)return S=this.root+S,n.call(this,S,W,U),this;if(E(S)){var G=S;return this.filter(function(H,Q){return!Q.dir&&G.test(H)})}var R=this.files[this.root+S];return R&&!R.dir?R:null},folder:function(S){if(!S)return this;if(E(S))return this.filter(function(R,H){return H.dir&&S.test(R)});var W=this.root+S,U=_.call(this,W),G=this.clone();return G.root=U.name,G},remove:function(S){S=this.root+S;var W=this.files[S];if(W||(S.slice(-1)!=="/"&&(S+="/"),W=this.files[S]),W&&!W.dir)delete this.files[S];else for(var U=this.filter(function(R,H){return H.name.slice(0,S.length)===S}),G=0;G<U.length;G++)delete this.files[U[G].name];return this},generate:function(S){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var W,U={};try{if((U=h.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=U.type.toLowerCase(),U.compression=U.compression.toUpperCase(),U.type==="binarystring"&&(U.type="string"),!U.type)throw new Error("No output type specified.");h.checkSupport(U.type),U.platform!=="darwin"&&U.platform!=="freebsd"&&U.platform!=="linux"&&U.platform!=="sunos"||(U.platform="UNIX"),U.platform==="win32"&&(U.platform="DOS");var G=U.comment||this.comment||"";W=f.generateWorker(this,U,G)}catch(R){(W=new c("error")).error(R)}return new y(W,U.type||"string",U.mimeType)},generateAsync:function(S,W){return this.generateInternalStream(S).accumulate(W)},generateNodeStream:function(S,W){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(W)}};s.exports=T},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,s,a){s.exports=e("stream")},{stream:void 0}],17:[function(e,s,a){var n=e("./DataReader");function i(h){n.call(this,h);for(var c=0;c<this.data.length;c++)h[c]=255&h[c]}e("../utils").inherits(i,n),i.prototype.byteAt=function(h){return this.data[this.zero+h]},i.prototype.lastIndexOfSignature=function(h){for(var c=h.charCodeAt(0),y=h.charCodeAt(1),v=h.charCodeAt(2),g=h.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===c&&this.data[k+1]===y&&this.data[k+2]===v&&this.data[k+3]===g)return k-this.zero;return-1},i.prototype.readAndCheckSignature=function(h){var c=h.charCodeAt(0),y=h.charCodeAt(1),v=h.charCodeAt(2),g=h.charCodeAt(3),k=this.readData(4);return c===k[0]&&y===k[1]&&v===k[2]&&g===k[3]},i.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,c},s.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,s,a){var n=e("../utils");function i(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length<this.zero+h||h<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+h+"). Corrupted zip ?")},setIndex:function(h){this.checkIndex(h),this.index=h},skip:function(h){this.setIndex(this.index+h)},byteAt:function(h){},readInt:function(h){var c,y=0;for(this.checkOffset(h),c=this.index+h-1;c>=this.index;c--)y=(y<<8)+this.byteAt(c);return this.index+=h,y},readString:function(h){return n.transformTo("string",this.readData(h))},readData:function(h){},lastIndexOfSignature:function(h){},readAndCheckSignature:function(h){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC(1980+(h>>25&127),(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(31&h)<<1))}},s.exports=i},{"../utils":32}],19:[function(e,s,a){var n=e("./Uint8ArrayReader");function i(h){n.call(this,h)}e("../utils").inherits(i,n),i.prototype.readData=function(h){this.checkOffset(h);var c=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,c},s.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,s,a){var n=e("./DataReader");function i(h){n.call(this,h)}e("../utils").inherits(i,n),i.prototype.byteAt=function(h){return this.data.charCodeAt(this.zero+h)},i.prototype.lastIndexOfSignature=function(h){return this.data.lastIndexOf(h)-this.zero},i.prototype.readAndCheckSignature=function(h){return h===this.readData(4)},i.prototype.readData=function(h){this.checkOffset(h);var c=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,c},s.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,s,a){var n=e("./ArrayReader");function i(h){n.call(this,h)}e("../utils").inherits(i,n),i.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,c},s.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,s,a){var n=e("../utils"),i=e("../support"),h=e("./ArrayReader"),c=e("./StringReader"),y=e("./NodeBufferReader"),v=e("./Uint8ArrayReader");s.exports=function(g){var k=n.getTypeOf(g);return n.checkSupport(k),k!=="string"||i.uint8array?k==="nodebuffer"?new y(g):i.uint8array?new v(n.transformTo("uint8array",g)):new h(n.transformTo("array",g)):new c(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,s,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,s,a){var n=e("./GenericWorker"),i=e("../utils");function h(c){n.call(this,"ConvertWorker to "+c),this.destType=c}i.inherits(h,n),h.prototype.processChunk=function(c){this.push({data:i.transformTo(this.destType,c.data),meta:c.meta})},s.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(e,s,a){var n=e("./GenericWorker"),i=e("../crc32");function h(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(h,n),h.prototype.processChunk=function(c){this.streamInfo.crc32=i(c.data,this.streamInfo.crc32||0),this.push(c)},s.exports=h},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,s,a){var n=e("../utils"),i=e("./GenericWorker");function h(c){i.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}n.inherits(h,i),h.prototype.processChunk=function(c){if(c){var y=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=y+c.data.length}i.prototype.processChunk.call(this,c)},s.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(e,s,a){var n=e("../utils"),i=e("./GenericWorker");function h(c){i.call(this,"DataWorker");var y=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(v){y.dataIsReady=!0,y.data=v,y.max=v&&v.length||0,y.type=n.getTypeOf(v),y.isPaused||y._tickAndRepeat()},function(v){y.error(v)})}n.inherits(h,i),h.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},h.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},h.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},h.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,y=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,y);break;case"uint8array":c=this.data.subarray(this.index,y);break;case"array":case"nodebuffer":c=this.data.slice(this.index,y)}return this.index=y,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=h},{"../utils":32,"./GenericWorker":28}],28:[function(e,s,a){function n(i){this.name=i||"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}n.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,h){return this._listeners[i].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,h){if(this._listeners[i])for(var c=0;c<this._listeners[i].length;c++)this._listeners[i][c].call(this,h)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var h=this;return i.on("data",function(c){h.processChunk(c)}),i.on("end",function(){h.end()}),i.on("error",function(c){h.error(c)}),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;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,h){return this.extraStreamInfo[i]=h,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},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 i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},s.exports=n},{}],29:[function(e,s,a){var n=e("../utils"),i=e("./ConvertWorker"),h=e("./GenericWorker"),c=e("../base64"),y=e("../support"),v=e("../external"),g=null;if(y.nodestream)try{g=e("../nodejs/NodejsStreamOutputAdapter")}catch(w){}function k(w,b){return new v.Promise(function(l,p){var _=[],E=w._internalType,T=w._outputType,S=w._mimeType;w.on("data",function(W,U){_.push(W),b&&b(U)}).on("error",function(W){_=[],p(W)}).on("end",function(){try{var W=function(U,G,R){switch(U){case"blob":return n.newBlob(n.transformTo("arraybuffer",G),R);case"base64":return c.encode(G);default:return n.transformTo(U,G)}}(T,function(U,G){var R,H=0,Q=null,x=0;for(R=0;R<G.length;R++)x+=G[R].length;switch(U){case"string":return G.join("");case"array":return Array.prototype.concat.apply([],G);case"uint8array":for(Q=new Uint8Array(x),R=0;R<G.length;R++)Q.set(G[R],H),H+=G[R].length;return Q;case"nodebuffer":return O.concat(G);default:throw new Error("concat : unsupported type '"+U+"'")}}(E,_),S);l(W)}catch(U){p(U)}_=[]}).resume()})}function f(w,b,l){var p=b;switch(b){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=b,this._mimeType=l,n.checkSupport(p),this._worker=w.pipe(new i(p)),w.lock()}catch(_){this._worker=new h("error"),this._worker.error(_)}}f.prototype={accumulate:function(w){return k(this,w)},on:function(w,b){var l=this;return w==="data"?this._worker.on(w,function(p){b.call(l,p.data,p.meta)}):this._worker.on(w,function(){n.delay(b,arguments,l)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(w){if(n.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new g(this,{objectMode:this._outputType!=="nodebuffer"},w)}},s.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,s,a){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",a.nodebuffer=typeof O!="undefined",a.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")a.blob=!1;else{var n=new ArrayBuffer(0);try{a.blob=new Blob([n],{type:"application/zip"}).size===0}catch(h){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),a.blob=i.getBlob("application/zip").size===0}catch(c){a.blob=!1}}}try{a.nodestream=!!e("readable-stream").Readable}catch(h){a.nodestream=!1}},{"readable-stream":16}],31:[function(e,s,a){for(var n=e("./utils"),i=e("./support"),h=e("./nodejsUtils"),c=e("./stream/GenericWorker"),y=new Array(256),v=0;v<256;v++)y[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;y[254]=y[254]=1;function g(){c.call(this,"utf-8 decode"),this.leftOver=null}function k(){c.call(this,"utf-8 encode")}a.utf8encode=function(f){return i.nodebuffer?h.newBufferFrom(f,"utf-8"):function(w){var b,l,p,_,E,T=w.length,S=0;for(_=0;_<T;_++)(64512&(l=w.charCodeAt(_)))==55296&&_+1<T&&(64512&(p=w.charCodeAt(_+1)))==56320&&(l=65536+(l-55296<<10)+(p-56320),_++),S+=l<128?1:l<2048?2:l<65536?3:4;for(b=i.uint8array?new Uint8Array(S):new Array(S),_=E=0;E<S;_++)(64512&(l=w.charCodeAt(_)))==55296&&_+1<T&&(64512&(p=w.charCodeAt(_+1)))==56320&&(l=65536+(l-55296<<10)+(p-56320),_++),l<128?b[E++]=l:(l<2048?b[E++]=192|l>>>6:(l<65536?b[E++]=224|l>>>12:(b[E++]=240|l>>>18,b[E++]=128|l>>>12&63),b[E++]=128|l>>>6&63),b[E++]=128|63&l);return b}(f)},a.utf8decode=function(f){return i.nodebuffer?n.transformTo("nodebuffer",f).toString("utf-8"):function(w){var b,l,p,_,E=w.length,T=new Array(2*E);for(b=l=0;b<E;)if((p=w[b++])<128)T[l++]=p;else if(4<(_=y[p]))T[l++]=65533,b+=_-1;else{for(p&=_===2?31:_===3?15:7;1<_&&b<E;)p=p<<6|63&w[b++],_--;1<_?T[l++]=65533:p<65536?T[l++]=p:(p-=65536,T[l++]=55296|p>>10&1023,T[l++]=56320|1023&p)}return T.length!==l&&(T.subarray?T=T.subarray(0,l):T.length=l),n.applyFromCharCode(T)}(f=n.transformTo(i.uint8array?"uint8array":"array",f))},n.inherits(g,c),g.prototype.processChunk=function(f){var w=n.transformTo(i.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var b=w;(w=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),w.set(b,this.leftOver.length)}else w=this.leftOver.concat(w);this.leftOver=null}var l=function(_,E){var T;for((E=E||_.length)>_.length&&(E=_.length),T=E-1;0<=T&&(192&_[T])==128;)T--;return T<0||T===0?E:T+y[_[T]]>E?T:E}(w),p=w;l!==w.length&&(i.uint8array?(p=w.subarray(0,l),this.leftOver=w.subarray(l,w.length)):(p=w.slice(0,l),this.leftOver=w.slice(l,w.length))),this.push({data:a.utf8decode(p),meta:f.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=g,n.inherits(k,c),k.prototype.processChunk=function(f){this.push({data:a.utf8encode(f.data),meta:f.meta})},a.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,s,a){var n=e("./support"),i=e("./base64"),h=e("./nodejsUtils"),c=e("set-immediate-shim"),y=e("./external");function v(l){return l}function g(l,p){for(var _=0;_<l.length;++_)p[_]=255&l.charCodeAt(_);return p}a.newBlob=function(l,p){a.checkSupport("blob");try{return new Blob([l],{type:p})}catch(E){try{var _=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return _.append(l),_.getBlob(p)}catch(T){throw new Error("Bug : can't construct the Blob.")}}};var k={stringifyByChunk:function(l,p,_){var E=[],T=0,S=l.length;if(S<=_)return String.fromCharCode.apply(null,l);for(;T<S;)p==="array"||p==="nodebuffer"?E.push(String.fromCharCode.apply(null,l.slice(T,Math.min(T+_,S)))):E.push(String.fromCharCode.apply(null,l.subarray(T,Math.min(T+_,S)))),T+=_;return E.join("")},stringifyByChar:function(l){for(var p="",_=0;_<l.length;_++)p+=String.fromCharCode(l[_]);return p},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(l){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&String.fromCharCode.apply(null,h.allocBuffer(1)).length===1}catch(l){return!1}}()}};function f(l){var p=65536,_=a.getTypeOf(l),E=!0;if(_==="uint8array"?E=k.applyCanBeUsed.uint8array:_==="nodebuffer"&&(E=k.applyCanBeUsed.nodebuffer),E)for(;1<p;)try{return k.stringifyByChunk(l,_,p)}catch(T){p=Math.floor(p/2)}return k.stringifyByChar(l)}function w(l,p){for(var _=0;_<l.length;_++)p[_]=l[_];return p}a.applyFromCharCode=f;var b={};b.string={string:v,array:function(l){return g(l,new Array(l.length))},arraybuffer:function(l){return b.string.uint8array(l).buffer},uint8array:function(l){return g(l,new Uint8Array(l.length))},nodebuffer:function(l){return g(l,h.allocBuffer(l.length))}},b.array={string:f,array:v,arraybuffer:function(l){return new Uint8Array(l).buffer},uint8array:function(l){return new Uint8Array(l)},nodebuffer:function(l){return h.newBufferFrom(l)}},b.arraybuffer={string:function(l){return f(new Uint8Array(l))},array:function(l){return w(new Uint8Array(l),new Array(l.byteLength))},arraybuffer:v,uint8array:function(l){return new Uint8Array(l)},nodebuffer:function(l){return h.newBufferFrom(new Uint8Array(l))}},b.uint8array={string:f,array:function(l){return w(l,new Array(l.length))},arraybuffer:function(l){return l.buffer},uint8array:v,nodebuffer:function(l){return h.newBufferFrom(l)}},b.nodebuffer={string:f,array:function(l){return w(l,new Array(l.length))},arraybuffer:function(l){return b.nodebuffer.uint8array(l).buffer},uint8array:function(l){return w(l,new Uint8Array(l.length))},nodebuffer:v},a.transformTo=function(l,p){if(p=p||"",!l)return p;a.checkSupport(l);var _=a.getTypeOf(p);return b[_][l](p)},a.getTypeOf=function(l){return typeof l=="string"?"string":Object.prototype.toString.call(l)==="[object Array]"?"array":n.nodebuffer&&h.isBuffer(l)?"nodebuffer":n.uint8array&&l instanceof Uint8Array?"uint8array":n.arraybuffer&&l instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(l){if(!n[l.toLowerCase()])throw new Error(l+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(l){var p,_,E="";for(_=0;_<(l||"").length;_++)E+="\\x"+((p=l.charCodeAt(_))<16?"0":"")+p.toString(16).toUpperCase();return E},a.delay=function(l,p,_){c(function(){l.apply(_||null,p||[])})},a.inherits=function(l,p){function _(){}_.prototype=p.prototype,l.prototype=new _},a.extend=function(){var l,p,_={};for(l=0;l<arguments.length;l++)for(p in arguments[l])arguments[l].hasOwnProperty(p)&&_[p]===void 0&&(_[p]=arguments[l][p]);return _},a.prepareContent=function(l,p,_,E,T){return y.Promise.resolve(p).then(function(S){return n.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader!="undefined"?new y.Promise(function(W,U){var G=new FileReader;G.onload=function(R){W(R.target.result)},G.onerror=function(R){U(R.target.error)},G.readAsArrayBuffer(S)}):S}).then(function(S){var W=a.getTypeOf(S);return W?(W==="arraybuffer"?S=a.transformTo("uint8array",S):W==="string"&&(T?S=i.decode(S):_&&E!==!0&&(S=function(U){return g(U,n.uint8array?new Uint8Array(U.length):new Array(U.length))}(S))),S):y.Promise.reject(new Error("Can't read the data of '"+l+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,s,a){var n=e("./reader/readerFor"),i=e("./utils"),h=e("./signature"),c=e("./zipEntry"),y=(e("./utf8"),e("./support"));function v(g){this.files=[],this.loadOptions=g}v.prototype={checkSignature:function(g){if(!this.reader.readAndCheckSignature(g)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(k)+", expected "+i.pretty(g)+")")}},isSignature:function(g,k){var f=this.reader.index;this.reader.setIndex(g);var w=this.reader.readString(4)===k;return this.reader.setIndex(f),w},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 g=this.reader.readData(this.zipCommentLength),k=y.uint8array?"uint8array":"array",f=i.transformTo(k,g);this.zipComment=this.loadOptions.decodeFileName(f)},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 g,k,f,w=this.zip64EndOfCentralSize-44;0<w;)g=this.reader.readInt(2),k=this.reader.readInt(4),f=this.reader.readData(k),this.zip64ExtensibleData[g]={id:g,length:k,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var g,k;for(g=0;g<this.files.length;g++)k=this.files[g],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var g;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(h.CENTRAL_FILE_HEADER);)(g=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(g);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var g=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(g<0)throw this.isSignature(0,h.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):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");this.reader.setIndex(g);var k=g;if(this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(g=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(g),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,h.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(h.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(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var w=k-f;if(0<w)this.isSignature(k,h.CENTRAL_FILE_HEADER)||(this.reader.zero=w);else if(w<0)throw new Error("Corrupted zip: missing "+Math.abs(w)+" bytes.")},prepareReader:function(g){this.reader=n(g)},load:function(g){this.prepareReader(g),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=v},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,s,a){var n=e("./reader/readerFor"),i=e("./utils"),h=e("./compressedObject"),c=e("./crc32"),y=e("./utf8"),v=e("./compressions"),g=e("./support");function k(f,w){this.options=f,this.loadOptions=w}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var w,b;if(f.skip(22),this.fileNameLength=f.readInt(2),b=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(b),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((w=function(l){for(var p in v)if(v.hasOwnProperty(p)&&v[p].magic===l)return v[p];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,w,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var w=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(w),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(f){if(this.extraFields[1]){var w=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=w.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=w.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=w.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=w.readInt(4))}},readExtraFields:function(f){var w,b,l,p=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<p;)w=f.readInt(2),b=f.readInt(2),l=f.readData(b),this.extraFields[w]={id:w,length:b,value:l};f.setIndex(p)},handleUTF8:function(){var f=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=y.utf8decode(this.fileName),this.fileCommentStr=y.utf8decode(this.fileComment);else{var w=this.findExtraFieldUnicodePath();if(w!==null)this.fileNameStr=w;else{var b=i.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var l=this.findExtraFieldUnicodeComment();if(l!==null)this.fileCommentStr=l;else{var p=i.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var w=n(f.value);return w.readInt(1)!==1||c(this.fileName)!==w.readInt(4)?null:y.utf8decode(w.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var w=n(f.value);return w.readInt(1)!==1||c(this.fileComment)!==w.readInt(4)?null:y.utf8decode(w.readData(f.length-5))}return null}},s.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,s,a){function n(w,b,l){this.name=w,this.dir=l.dir,this.date=l.date,this.comment=l.comment,this.unixPermissions=l.unixPermissions,this.dosPermissions=l.dosPermissions,this._data=b,this._dataBinary=l.binary,this.options={compression:l.compression,compressionOptions:l.compressionOptions}}var i=e("./stream/StreamHelper"),h=e("./stream/DataWorker"),c=e("./utf8"),y=e("./compressedObject"),v=e("./stream/GenericWorker");n.prototype={internalStream:function(w){var b=null,l="string";try{if(!w)throw new Error("No output type specified.");var p=(l=w.toLowerCase())==="string"||l==="text";l!=="binarystring"&&l!=="text"||(l="string"),b=this._decompressWorker();var _=!this._dataBinary;_&&!p&&(b=b.pipe(new c.Utf8EncodeWorker)),!_&&p&&(b=b.pipe(new c.Utf8DecodeWorker))}catch(E){(b=new v("error")).error(E)}return new i(b,l,"")},async:function(w,b){return this.internalStream(w).accumulate(b)},nodeStream:function(w,b){return this.internalStream(w||"nodebuffer").toNodejsStream(b)},_compressWorker:function(w,b){if(this._data instanceof y&&this._data.compression.magic===w.magic)return this._data.getCompressedWorker();var l=this._decompressWorker();return this._dataBinary||(l=l.pipe(new c.Utf8EncodeWorker)),y.createWorkerFrom(l,w,b)},_decompressWorker:function(){return this._data instanceof y?this._data.getContentWorker():this._data instanceof v?this._data:new h(this._data)}};for(var g=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<g.length;f++)n.prototype[g[f]]=k;s.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,s,a){(function(n){var i,h,c=n.MutationObserver||n.WebKitMutationObserver;if(c){var y=0,v=new c(w),g=n.document.createTextNode("");v.observe(g,{characterData:!0}),i=function(){g.data=y=++y%2}}else if(n.setImmediate||n.MessageChannel===void 0)i="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var b=n.document.createElement("script");b.onreadystatechange=function(){w(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},n.document.documentElement.appendChild(b)}:function(){setTimeout(w,0)};else{var k=new n.MessageChannel;k.port1.onmessage=w,i=function(){k.port2.postMessage(0)}}var f=[];function w(){var b,l;h=!0;for(var p=f.length;p;){for(l=f,f=[],b=-1;++b<p;)l[b]();p=f.length}h=!1}s.exports=function(b){f.push(b)!==1||h||i()}}).call(this,typeof or!="undefined"?or:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(e,s,a){var n=e("immediate");function i(){}var h={},c=["REJECTED"],y=["FULFILLED"],v=["PENDING"];function g(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,p!==i&&b(this,p)}function k(p,_,E){this.promise=p,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}function f(p,_,E){n(function(){var T;try{T=_(E)}catch(S){return h.reject(p,S)}T===p?h.reject(p,new TypeError("Cannot resolve promise with itself")):h.resolve(p,T)})}function w(p){var _=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof _=="function")return function(){_.apply(p,arguments)}}function b(p,_){var E=!1;function T(U){E||(E=!0,h.reject(p,U))}function S(U){E||(E=!0,h.resolve(p,U))}var W=l(function(){_(S,T)});W.status==="error"&&T(W.value)}function l(p,_){var E={};try{E.value=p(_),E.status="success"}catch(T){E.status="error",E.value=T}return E}(s.exports=g).prototype.finally=function(p){if(typeof p!="function")return this;var _=this.constructor;return this.then(function(E){return _.resolve(p()).then(function(){return E})},function(E){return _.resolve(p()).then(function(){throw E})})},g.prototype.catch=function(p){return this.then(null,p)},g.prototype.then=function(p,_){if(typeof p!="function"&&this.state===y||typeof _!="function"&&this.state===c)return this;var E=new this.constructor(i);return this.state!==v?f(E,this.state===y?p:_,this.outcome):this.queue.push(new k(E,p,_)),E},k.prototype.callFulfilled=function(p){h.resolve(this.promise,p)},k.prototype.otherCallFulfilled=function(p){f(this.promise,this.onFulfilled,p)},k.prototype.callRejected=function(p){h.reject(this.promise,p)},k.prototype.otherCallRejected=function(p){f(this.promise,this.onRejected,p)},h.resolve=function(p,_){var E=l(w,_);if(E.status==="error")return h.reject(p,E.value);var T=E.value;if(T)b(p,T);else{p.state=y,p.outcome=_;for(var S=-1,W=p.queue.length;++S<W;)p.queue[S].callFulfilled(_)}return p},h.reject=function(p,_){p.state=c,p.outcome=_;for(var E=-1,T=p.queue.length;++E<T;)p.queue[E].callRejected(_);return p},g.resolve=function(p){return p instanceof this?p:h.resolve(new this(i),p)},g.reject=function(p){var _=new this(i);return h.reject(_,p)},g.all=function(p){var _=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=p.length,T=!1;if(!E)return this.resolve([]);for(var S=new Array(E),W=0,U=-1,G=new this(i);++U<E;)R(p[U],U);return G;function R(H,Q){_.resolve(H).then(function(x){S[Q]=x,++W!==E||T||(T=!0,h.resolve(G,S))},function(x){T||(T=!0,h.reject(G,x))})}},g.race=function(p){var _=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=p.length,T=!1;if(!E)return this.resolve([]);for(var S=-1,W=new this(i);++S<E;)U=p[S],_.resolve(U).then(function(G){T||(T=!0,h.resolve(W,G))},function(G){T||(T=!0,h.reject(W,G))});var U;return W}},{immediate:36}],38:[function(e,s,a){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),s.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,s,a){var n=e("./zlib/deflate"),i=e("./utils/common"),h=e("./utils/strings"),c=e("./zlib/messages"),y=e("./zlib/zstream"),v=Object.prototype.toString,g=0,k=-1,f=0,w=8;function b(p){if(!(this instanceof b))return new b(p);this.options=i.assign({level:k,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},p||{});var _=this.options;_.raw&&0<_.windowBits?_.windowBits=-_.windowBits:_.gzip&&0<_.windowBits&&_.windowBits<16&&(_.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var E=n.deflateInit2(this.strm,_.level,_.method,_.windowBits,_.memLevel,_.strategy);if(E!==g)throw new Error(c[E]);if(_.header&&n.deflateSetHeader(this.strm,_.header),_.dictionary){var T;if(T=typeof _.dictionary=="string"?h.string2buf(_.dictionary):v.call(_.dictionary)==="[object ArrayBuffer]"?new Uint8Array(_.dictionary):_.dictionary,(E=n.deflateSetDictionary(this.strm,T))!==g)throw new Error(c[E]);this._dict_set=!0}}function l(p,_){var E=new b(_);if(E.push(p,!0),E.err)throw E.msg||c[E.err];return E.result}b.prototype.push=function(p,_){var E,T,S=this.strm,W=this.options.chunkSize;if(this.ended)return!1;T=_===~~_?_:_===!0?4:0,typeof p=="string"?S.input=h.string2buf(p):v.call(p)==="[object ArrayBuffer]"?S.input=new Uint8Array(p):S.input=p,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new i.Buf8(W),S.next_out=0,S.avail_out=W),(E=n.deflate(S,T))!==1&&E!==g)return this.onEnd(E),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||T!==4&&T!==2)||(this.options.to==="string"?this.onData(h.buf2binstring(i.shrinkBuf(S.output,S.next_out))):this.onData(i.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&E!==1);return T===4?(E=n.deflateEnd(this.strm),this.onEnd(E),this.ended=!0,E===g):T!==2||(this.onEnd(g),!(S.avail_out=0))},b.prototype.onData=function(p){this.chunks.push(p)},b.prototype.onEnd=function(p){p===g&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},a.Deflate=b,a.deflate=l,a.deflateRaw=function(p,_){return(_=_||{}).raw=!0,l(p,_)},a.gzip=function(p,_){return(_=_||{}).gzip=!0,l(p,_)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,s,a){var n=e("./zlib/inflate"),i=e("./utils/common"),h=e("./utils/strings"),c=e("./zlib/constants"),y=e("./zlib/messages"),v=e("./zlib/zstream"),g=e("./zlib/gzheader"),k=Object.prototype.toString;function f(b){if(!(this instanceof f))return new f(b);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},b||{});var l=this.options;l.raw&&0<=l.windowBits&&l.windowBits<16&&(l.windowBits=-l.windowBits,l.windowBits===0&&(l.windowBits=-15)),!(0<=l.windowBits&&l.windowBits<16)||b&&b.windowBits||(l.windowBits+=32),15<l.windowBits&&l.windowBits<48&&(15&l.windowBits)==0&&(l.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var p=n.inflateInit2(this.strm,l.windowBits);if(p!==c.Z_OK)throw new Error(y[p]);this.header=new g,n.inflateGetHeader(this.strm,this.header)}function w(b,l){var p=new f(l);if(p.push(b,!0),p.err)throw p.msg||y[p.err];return p.result}f.prototype.push=function(b,l){var p,_,E,T,S,W,U=this.strm,G=this.options.chunkSize,R=this.options.dictionary,H=!1;if(this.ended)return!1;_=l===~~l?l:l===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof b=="string"?U.input=h.binstring2buf(b):k.call(b)==="[object ArrayBuffer]"?U.input=new Uint8Array(b):U.input=b,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new i.Buf8(G),U.next_out=0,U.avail_out=G),(p=n.inflate(U,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&R&&(W=typeof R=="string"?h.string2buf(R):k.call(R)==="[object ArrayBuffer]"?new Uint8Array(R):R,p=n.inflateSetDictionary(this.strm,W)),p===c.Z_BUF_ERROR&&H===!0&&(p=c.Z_OK,H=!1),p!==c.Z_STREAM_END&&p!==c.Z_OK)return this.onEnd(p),!(this.ended=!0);U.next_out&&(U.avail_out!==0&&p!==c.Z_STREAM_END&&(U.avail_in!==0||_!==c.Z_FINISH&&_!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(E=h.utf8border(U.output,U.next_out),T=U.next_out-E,S=h.buf2string(U.output,E),U.next_out=T,U.avail_out=G-T,T&&i.arraySet(U.output,U.output,E,T,0),this.onData(S)):this.onData(i.shrinkBuf(U.output,U.next_out)))),U.avail_in===0&&U.avail_out===0&&(H=!0)}while((0<U.avail_in||U.avail_out===0)&&p!==c.Z_STREAM_END);return p===c.Z_STREAM_END&&(_=c.Z_FINISH),_===c.Z_FINISH?(p=n.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===c.Z_OK):_!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(U.avail_out=0))},f.prototype.onData=function(b){this.chunks.push(b)},f.prototype.onEnd=function(b){b===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},a.Inflate=f,a.inflate=w,a.inflateRaw=function(b,l){return(l=l||{}).raw=!0,w(b,l)},a.ungzip=w},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,s,a){var n=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";a.assign=function(c){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var v=y.shift();if(v){if(typeof v!="object")throw new TypeError(v+"must be non-object");for(var g in v)v.hasOwnProperty(g)&&(c[g]=v[g])}}return c},a.shrinkBuf=function(c,y){return c.length===y?c:c.subarray?c.subarray(0,y):(c.length=y,c)};var i={arraySet:function(c,y,v,g,k){if(y.subarray&&c.subarray)c.set(y.subarray(v,v+g),k);else for(var f=0;f<g;f++)c[k+f]=y[v+f]},flattenChunks:function(c){var y,v,g,k,f,w;for(y=g=0,v=c.length;y<v;y++)g+=c[y].length;for(w=new Uint8Array(g),y=k=0,v=c.length;y<v;y++)f=c[y],w.set(f,k),k+=f.length;return w}},h={arraySet:function(c,y,v,g,k){for(var f=0;f<g;f++)c[k+f]=y[v+f]},flattenChunks:function(c){return[].concat.apply([],c)}};a.setTyped=function(c){c?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,i)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,h))},a.setTyped(n)},{}],42:[function(e,s,a){var n=e("./common"),i=!0,h=!0;try{String.fromCharCode.apply(null,[0])}catch(g){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(g){h=!1}for(var c=new n.Buf8(256),y=0;y<256;y++)c[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;function v(g,k){if(k<65537&&(g.subarray&&h||!g.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(g,k));for(var f="",w=0;w<k;w++)f+=String.fromCharCode(g[w]);return f}c[254]=c[254]=1,a.string2buf=function(g){var k,f,w,b,l,p=g.length,_=0;for(b=0;b<p;b++)(64512&(f=g.charCodeAt(b)))==55296&&b+1<p&&(64512&(w=g.charCodeAt(b+1)))==56320&&(f=65536+(f-55296<<10)+(w-56320),b++),_+=f<128?1:f<2048?2:f<65536?3:4;for(k=new n.Buf8(_),b=l=0;l<_;b++)(64512&(f=g.charCodeAt(b)))==55296&&b+1<p&&(64512&(w=g.charCodeAt(b+1)))==56320&&(f=65536+(f-55296<<10)+(w-56320),b++),f<128?k[l++]=f:(f<2048?k[l++]=192|f>>>6:(f<65536?k[l++]=224|f>>>12:(k[l++]=240|f>>>18,k[l++]=128|f>>>12&63),k[l++]=128|f>>>6&63),k[l++]=128|63&f);return k},a.buf2binstring=function(g){return v(g,g.length)},a.binstring2buf=function(g){for(var k=new n.Buf8(g.length),f=0,w=k.length;f<w;f++)k[f]=g.charCodeAt(f);return k},a.buf2string=function(g,k){var f,w,b,l,p=k||g.length,_=new Array(2*p);for(f=w=0;f<p;)if((b=g[f++])<128)_[w++]=b;else if(4<(l=c[b]))_[w++]=65533,f+=l-1;else{for(b&=l===2?31:l===3?15:7;1<l&&f<p;)b=b<<6|63&g[f++],l--;1<l?_[w++]=65533:b<65536?_[w++]=b:(b-=65536,_[w++]=55296|b>>10&1023,_[w++]=56320|1023&b)}return v(_,w)},a.utf8border=function(g,k){var f;for((k=k||g.length)>g.length&&(k=g.length),f=k-1;0<=f&&(192&g[f])==128;)f--;return f<0||f===0?k:f+c[g[f]]>k?f:k}},{"./common":41}],43:[function(e,s,a){s.exports=function(n,i,h,c){for(var y=65535&n|0,v=n>>>16&65535|0,g=0;h!==0;){for(h-=g=2e3<h?2e3:h;v=v+(y=y+i[c++]|0)|0,--g;);y%=65521,v%=65521}return y|v<<16|0}},{}],44:[function(e,s,a){s.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,s,a){var n=function(){for(var i,h=[],c=0;c<256;c++){i=c;for(var y=0;y<8;y++)i=1&i?3988292384^i>>>1:i>>>1;h[c]=i}return h}();s.exports=function(i,h,c,y){var v=n,g=y+c;i^=-1;for(var k=y;k<g;k++)i=i>>>8^v[255&(i^h[k])];return-1^i}},{}],46:[function(e,s,a){var n,i=e("../utils/common"),h=e("./trees"),c=e("./adler32"),y=e("./crc32"),v=e("./messages"),g=0,k=4,f=0,w=-2,b=-1,l=4,p=2,_=8,E=9,T=286,S=30,W=19,U=2*T+1,G=15,R=3,H=258,Q=H+R+1,x=42,B=113,o=1,P=2,ee=3,M=4;function re(t,D){return t.msg=v[D],D}function Z(t){return(t<<1)-(4<t?9:0)}function $(t){for(var D=t.length;0<=--D;)t[D]=0}function z(t){var D=t.state,F=D.pending;F>t.avail_out&&(F=t.avail_out),F!==0&&(i.arraySet(t.output,D.pending_buf,D.pending_out,F,t.next_out),t.next_out+=F,D.pending_out+=F,t.total_out+=F,t.avail_out-=F,D.pending-=F,D.pending===0&&(D.pending_out=0))}function I(t,D){h._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,D),t.block_start=t.strstart,z(t.strm)}function q(t,D){t.pending_buf[t.pending++]=D}function X(t,D){t.pending_buf[t.pending++]=D>>>8&255,t.pending_buf[t.pending++]=255&D}function K(t,D){var F,m,d=t.max_chain_length,A=t.strstart,N=t.prev_length,L=t.nice_match,C=t.strstart>t.w_size-Q?t.strstart-(t.w_size-Q):0,j=t.window,V=t.w_mask,Y=t.prev,J=t.strstart+H,ae=j[A+N-1],ne=j[A+N];t.prev_length>=t.good_match&&(d>>=2),L>t.lookahead&&(L=t.lookahead);do if(j[(F=D)+N]===ne&&j[F+N-1]===ae&&j[F]===j[A]&&j[++F]===j[A+1]){A+=2,F++;do;while(j[++A]===j[++F]&&j[++A]===j[++F]&&j[++A]===j[++F]&&j[++A]===j[++F]&&j[++A]===j[++F]&&j[++A]===j[++F]&&j[++A]===j[++F]&&j[++A]===j[++F]&&A<J);if(m=H-(J-A),A=J-H,N<m){if(t.match_start=D,L<=(N=m))break;ae=j[A+N-1],ne=j[A+N]}}while((D=Y[D&V])>C&&--d!=0);return N<=t.lookahead?N:t.lookahead}function se(t){var D,F,m,d,A,N,L,C,j,V,Y=t.w_size;do{if(d=t.window_size-t.lookahead-t.strstart,t.strstart>=Y+(Y-Q)){for(i.arraySet(t.window,t.window,Y,Y,0),t.match_start-=Y,t.strstart-=Y,t.block_start-=Y,D=F=t.hash_size;m=t.head[--D],t.head[D]=Y<=m?m-Y:0,--F;);for(D=F=Y;m=t.prev[--D],t.prev[D]=Y<=m?m-Y:0,--F;);d+=Y}if(t.strm.avail_in===0)break;if(N=t.strm,L=t.window,C=t.strstart+t.lookahead,j=d,V=void 0,V=N.avail_in,j<V&&(V=j),F=V===0?0:(N.avail_in-=V,i.arraySet(L,N.input,N.next_in,V,C),N.state.wrap===1?N.adler=c(N.adler,L,V,C):N.state.wrap===2&&(N.adler=y(N.adler,L,V,C)),N.next_in+=V,N.total_in+=V,V),t.lookahead+=F,t.lookahead+t.insert>=R)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+R-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<R)););}while(t.lookahead<Q&&t.strm.avail_in!==0)}function le(t,D){for(var F,m;;){if(t.lookahead<Q){if(se(t),t.lookahead<Q&&D===g)return o;if(t.lookahead===0)break}if(F=0,t.lookahead>=R&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+R-1])&t.hash_mask,F=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),F!==0&&t.strstart-F<=t.w_size-Q&&(t.match_length=K(t,F)),t.match_length>=R)if(m=h._tr_tally(t,t.strstart-t.match_start,t.match_length-R),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=R){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+R-1])&t.hash_mask,F=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);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 m=h._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(m&&(I(t,!1),t.strm.avail_out===0))return o}return t.insert=t.strstart<R-1?t.strstart:R-1,D===k?(I(t,!0),t.strm.avail_out===0?ee:M):t.last_lit&&(I(t,!1),t.strm.avail_out===0)?o:P}function te(t,D){for(var F,m,d;;){if(t.lookahead<Q){if(se(t),t.lookahead<Q&&D===g)return o;if(t.lookahead===0)break}if(F=0,t.lookahead>=R&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+R-1])&t.hash_mask,F=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=R-1,F!==0&&t.prev_length<t.max_lazy_match&&t.strstart-F<=t.w_size-Q&&(t.match_length=K(t,F),t.match_length<=5&&(t.strategy===1||t.match_length===R&&4096<t.strstart-t.match_start)&&(t.match_length=R-1)),t.prev_length>=R&&t.match_length<=t.prev_length){for(d=t.strstart+t.lookahead-R,m=h._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-R),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=d&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+R-1])&t.hash_mask,F=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=R-1,t.strstart++,m&&(I(t,!1),t.strm.avail_out===0))return o}else if(t.match_available){if((m=h._tr_tally(t,0,t.window[t.strstart-1]))&&I(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return o}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(m=h._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<R-1?t.strstart:R-1,D===k?(I(t,!0),t.strm.avail_out===0?ee:M):t.last_lit&&(I(t,!1),t.strm.avail_out===0)?o:P}function ie(t,D,F,m,d){this.good_length=t,this.max_lazy=D,this.nice_length=F,this.max_chain=m,this.func=d}function ue(){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=_,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*U),this.dyn_dtree=new i.Buf16(2*(2*S+1)),this.bl_tree=new i.Buf16(2*(2*W+1)),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(G+1),this.heap=new i.Buf16(2*T+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*T+1),$(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 oe(t){var D;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=p,(D=t.state).pending=0,D.pending_out=0,D.wrap<0&&(D.wrap=-D.wrap),D.status=D.wrap?x:B,t.adler=D.wrap===2?0:1,D.last_flush=g,h._tr_init(D),f):re(t,w)}function _e(t){var D=oe(t);return D===f&&function(F){F.window_size=2*F.w_size,$(F.head),F.max_lazy_match=n[F.level].max_lazy,F.good_match=n[F.level].good_length,F.nice_match=n[F.level].nice_length,F.max_chain_length=n[F.level].max_chain,F.strstart=0,F.block_start=0,F.lookahead=0,F.insert=0,F.match_length=F.prev_length=R-1,F.match_available=0,F.ins_h=0}(t.state),D}function me(t,D,F,m,d,A){if(!t)return w;var N=1;if(D===b&&(D=6),m<0?(N=0,m=-m):15<m&&(N=2,m-=16),d<1||E<d||F!==_||m<8||15<m||D<0||9<D||A<0||l<A)return re(t,w);m===8&&(m=9);var L=new ue;return(t.state=L).strm=t,L.wrap=N,L.gzhead=null,L.w_bits=m,L.w_size=1<<L.w_bits,L.w_mask=L.w_size-1,L.hash_bits=d+7,L.hash_size=1<<L.hash_bits,L.hash_mask=L.hash_size-1,L.hash_shift=~~((L.hash_bits+R-1)/R),L.window=new i.Buf8(2*L.w_size),L.head=new i.Buf16(L.hash_size),L.prev=new i.Buf16(L.w_size),L.lit_bufsize=1<<d+6,L.pending_buf_size=4*L.lit_bufsize,L.pending_buf=new i.Buf8(L.pending_buf_size),L.d_buf=1*L.lit_bufsize,L.l_buf=3*L.lit_bufsize,L.level=D,L.strategy=A,L.method=F,_e(t)}n=[new ie(0,0,0,0,function(t,D){var F=65535;for(F>t.pending_buf_size-5&&(F=t.pending_buf_size-5);;){if(t.lookahead<=1){if(se(t),t.lookahead===0&&D===g)return o;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var m=t.block_start+F;if((t.strstart===0||t.strstart>=m)&&(t.lookahead=t.strstart-m,t.strstart=m,I(t,!1),t.strm.avail_out===0))return o;if(t.strstart-t.block_start>=t.w_size-Q&&(I(t,!1),t.strm.avail_out===0))return o}return t.insert=0,D===k?(I(t,!0),t.strm.avail_out===0?ee:M):(t.strstart>t.block_start&&(I(t,!1),t.strm.avail_out),o)}),new ie(4,4,8,4,le),new ie(4,5,16,8,le),new ie(4,6,32,32,le),new ie(4,4,16,16,te),new ie(8,16,32,32,te),new ie(8,16,128,128,te),new ie(8,32,128,256,te),new ie(32,128,258,1024,te),new ie(32,258,258,4096,te)],a.deflateInit=function(t,D){return me(t,D,_,15,8,0)},a.deflateInit2=me,a.deflateReset=_e,a.deflateResetKeep=oe,a.deflateSetHeader=function(t,D){return t&&t.state?t.state.wrap!==2?w:(t.state.gzhead=D,f):w},a.deflate=function(t,D){var F,m,d,A;if(!t||!t.state||5<D||D<0)return t?re(t,w):w;if(m=t.state,!t.output||!t.input&&t.avail_in!==0||m.status===666&&D!==k)return re(t,t.avail_out===0?-5:w);if(m.strm=t,F=m.last_flush,m.last_flush=D,m.status===x)if(m.wrap===2)t.adler=0,q(m,31),q(m,139),q(m,8),m.gzhead?(q(m,(m.gzhead.text?1:0)+(m.gzhead.hcrc?2:0)+(m.gzhead.extra?4:0)+(m.gzhead.name?8:0)+(m.gzhead.comment?16:0)),q(m,255&m.gzhead.time),q(m,m.gzhead.time>>8&255),q(m,m.gzhead.time>>16&255),q(m,m.gzhead.time>>24&255),q(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),q(m,255&m.gzhead.os),m.gzhead.extra&&m.gzhead.extra.length&&(q(m,255&m.gzhead.extra.length),q(m,m.gzhead.extra.length>>8&255)),m.gzhead.hcrc&&(t.adler=y(t.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(q(m,0),q(m,0),q(m,0),q(m,0),q(m,0),q(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),q(m,3),m.status=B);else{var N=_+(m.w_bits-8<<4)<<8;N|=(2<=m.strategy||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6,m.strstart!==0&&(N|=32),N+=31-N%31,m.status=B,X(m,N),m.strstart!==0&&(X(m,t.adler>>>16),X(m,65535&t.adler)),t.adler=1}if(m.status===69)if(m.gzhead.extra){for(d=m.pending;m.gzindex<(65535&m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>d&&(t.adler=y(t.adler,m.pending_buf,m.pending-d,d)),z(t),d=m.pending,m.pending!==m.pending_buf_size));)q(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>d&&(t.adler=y(t.adler,m.pending_buf,m.pending-d,d)),m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(m.status===73)if(m.gzhead.name){d=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>d&&(t.adler=y(t.adler,m.pending_buf,m.pending-d,d)),z(t),d=m.pending,m.pending===m.pending_buf_size)){A=1;break}A=m.gzindex<m.gzhead.name.length?255&m.gzhead.name.charCodeAt(m.gzindex++):0,q(m,A)}while(A!==0);m.gzhead.hcrc&&m.pending>d&&(t.adler=y(t.adler,m.pending_buf,m.pending-d,d)),A===0&&(m.gzindex=0,m.status=91)}else m.status=91;if(m.status===91)if(m.gzhead.comment){d=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>d&&(t.adler=y(t.adler,m.pending_buf,m.pending-d,d)),z(t),d=m.pending,m.pending===m.pending_buf_size)){A=1;break}A=m.gzindex<m.gzhead.comment.length?255&m.gzhead.comment.charCodeAt(m.gzindex++):0,q(m,A)}while(A!==0);m.gzhead.hcrc&&m.pending>d&&(t.adler=y(t.adler,m.pending_buf,m.pending-d,d)),A===0&&(m.status=103)}else m.status=103;if(m.status===103&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&z(t),m.pending+2<=m.pending_buf_size&&(q(m,255&t.adler),q(m,t.adler>>8&255),t.adler=0,m.status=B)):m.status=B),m.pending!==0){if(z(t),t.avail_out===0)return m.last_flush=-1,f}else if(t.avail_in===0&&Z(D)<=Z(F)&&D!==k)return re(t,-5);if(m.status===666&&t.avail_in!==0)return re(t,-5);if(t.avail_in!==0||m.lookahead!==0||D!==g&&m.status!==666){var L=m.strategy===2?function(C,j){for(var V;;){if(C.lookahead===0&&(se(C),C.lookahead===0)){if(j===g)return o;break}if(C.match_length=0,V=h._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++,V&&(I(C,!1),C.strm.avail_out===0))return o}return C.insert=0,j===k?(I(C,!0),C.strm.avail_out===0?ee:M):C.last_lit&&(I(C,!1),C.strm.avail_out===0)?o:P}(m,D):m.strategy===3?function(C,j){for(var V,Y,J,ae,ne=C.window;;){if(C.lookahead<=H){if(se(C),C.lookahead<=H&&j===g)return o;if(C.lookahead===0)break}if(C.match_length=0,C.lookahead>=R&&0<C.strstart&&(Y=ne[J=C.strstart-1])===ne[++J]&&Y===ne[++J]&&Y===ne[++J]){ae=C.strstart+H;do;while(Y===ne[++J]&&Y===ne[++J]&&Y===ne[++J]&&Y===ne[++J]&&Y===ne[++J]&&Y===ne[++J]&&Y===ne[++J]&&Y===ne[++J]&&J<ae);C.match_length=H-(ae-J),C.match_length>C.lookahead&&(C.match_length=C.lookahead)}if(C.match_length>=R?(V=h._tr_tally(C,1,C.match_length-R),C.lookahead-=C.match_length,C.strstart+=C.match_length,C.match_length=0):(V=h._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++),V&&(I(C,!1),C.strm.avail_out===0))return o}return C.insert=0,j===k?(I(C,!0),C.strm.avail_out===0?ee:M):C.last_lit&&(I(C,!1),C.strm.avail_out===0)?o:P}(m,D):n[m.level].func(m,D);if(L!==ee&&L!==M||(m.status=666),L===o||L===ee)return t.avail_out===0&&(m.last_flush=-1),f;if(L===P&&(D===1?h._tr_align(m):D!==5&&(h._tr_stored_block(m,0,0,!1),D===3&&($(m.head),m.lookahead===0&&(m.strstart=0,m.block_start=0,m.insert=0))),z(t),t.avail_out===0))return m.last_flush=-1,f}return D!==k?f:m.wrap<=0?1:(m.wrap===2?(q(m,255&t.adler),q(m,t.adler>>8&255),q(m,t.adler>>16&255),q(m,t.adler>>24&255),q(m,255&t.total_in),q(m,t.total_in>>8&255),q(m,t.total_in>>16&255),q(m,t.total_in>>24&255)):(X(m,t.adler>>>16),X(m,65535&t.adler)),z(t),0<m.wrap&&(m.wrap=-m.wrap),m.pending!==0?f:1)},a.deflateEnd=function(t){var D;return t&&t.state?(D=t.state.status)!==x&&D!==69&&D!==73&&D!==91&&D!==103&&D!==B&&D!==666?re(t,w):(t.state=null,D===B?re(t,-3):f):w},a.deflateSetDictionary=function(t,D){var F,m,d,A,N,L,C,j,V=D.length;if(!t||!t.state)return w;if((A=(F=t.state).wrap)===2||A===1&&F.status!==x||F.lookahead)return w;for(A===1&&(t.adler=c(t.adler,D,V,0)),F.wrap=0,V>=F.w_size&&(A===0&&($(F.head),F.strstart=0,F.block_start=0,F.insert=0),j=new i.Buf8(F.w_size),i.arraySet(j,D,V-F.w_size,F.w_size,0),D=j,V=F.w_size),N=t.avail_in,L=t.next_in,C=t.input,t.avail_in=V,t.next_in=0,t.input=D,se(F);F.lookahead>=R;){for(m=F.strstart,d=F.lookahead-(R-1);F.ins_h=(F.ins_h<<F.hash_shift^F.window[m+R-1])&F.hash_mask,F.prev[m&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=m,m++,--d;);F.strstart=m,F.lookahead=R-1,se(F)}return F.strstart+=F.lookahead,F.block_start=F.strstart,F.insert=F.lookahead,F.lookahead=0,F.match_length=F.prev_length=R-1,F.match_available=0,t.next_in=L,t.input=C,t.avail_in=N,F.wrap=A,f},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,s,a){s.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,s,a){s.exports=function(n,i){var h,c,y,v,g,k,f,w,b,l,p,_,E,T,S,W,U,G,R,H,Q,x,B,o,P;h=n.state,c=n.next_in,o=n.input,y=c+(n.avail_in-5),v=n.next_out,P=n.output,g=v-(i-n.avail_out),k=v+(n.avail_out-257),f=h.dmax,w=h.wsize,b=h.whave,l=h.wnext,p=h.window,_=h.hold,E=h.bits,T=h.lencode,S=h.distcode,W=(1<<h.lenbits)-1,U=(1<<h.distbits)-1;e:do{E<15&&(_+=o[c++]<<E,E+=8,_+=o[c++]<<E,E+=8),G=T[_&W];r:for(;;){if(_>>>=R=G>>>24,E-=R,(R=G>>>16&255)===0)P[v++]=65535&G;else{if(!(16&R)){if((64&R)==0){G=T[(65535&G)+(_&(1<<R)-1)];continue r}if(32&R){h.mode=12;break e}n.msg="invalid literal/length code",h.mode=30;break e}H=65535&G,(R&=15)&&(E<R&&(_+=o[c++]<<E,E+=8),H+=_&(1<<R)-1,_>>>=R,E-=R),E<15&&(_+=o[c++]<<E,E+=8,_+=o[c++]<<E,E+=8),G=S[_&U];t:for(;;){if(_>>>=R=G>>>24,E-=R,!(16&(R=G>>>16&255))){if((64&R)==0){G=S[(65535&G)+(_&(1<<R)-1)];continue t}n.msg="invalid distance code",h.mode=30;break e}if(Q=65535&G,E<(R&=15)&&(_+=o[c++]<<E,(E+=8)<R&&(_+=o[c++]<<E,E+=8)),f<(Q+=_&(1<<R)-1)){n.msg="invalid distance too far back",h.mode=30;break e}if(_>>>=R,E-=R,(R=v-g)<Q){if(b<(R=Q-R)&&h.sane){n.msg="invalid distance too far back",h.mode=30;break e}if(B=p,(x=0)===l){if(x+=w-R,R<H){for(H-=R;P[v++]=p[x++],--R;);x=v-Q,B=P}}else if(l<R){if(x+=w+l-R,(R-=l)<H){for(H-=R;P[v++]=p[x++],--R;);if(x=0,l<H){for(H-=R=l;P[v++]=p[x++],--R;);x=v-Q,B=P}}}else if(x+=l-R,R<H){for(H-=R;P[v++]=p[x++],--R;);x=v-Q,B=P}for(;2<H;)P[v++]=B[x++],P[v++]=B[x++],P[v++]=B[x++],H-=3;H&&(P[v++]=B[x++],1<H&&(P[v++]=B[x++]))}else{for(x=v-Q;P[v++]=P[x++],P[v++]=P[x++],P[v++]=P[x++],2<(H-=3););H&&(P[v++]=P[x++],1<H&&(P[v++]=P[x++]))}break}}break}}while(c<y&&v<k);c-=H=E>>3,_&=(1<<(E-=H<<3))-1,n.next_in=c,n.next_out=v,n.avail_in=c<y?y-c+5:5-(c-y),n.avail_out=v<k?k-v+257:257-(v-k),h.hold=_,h.bits=E}},{}],49:[function(e,s,a){var n=e("../utils/common"),i=e("./adler32"),h=e("./crc32"),c=e("./inffast"),y=e("./inftrees"),v=1,g=2,k=0,f=-2,w=1,b=852,l=592;function p(x){return(x>>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<24)}function _(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function E(x){var B;return x&&x.state?(B=x.state,x.total_in=x.total_out=B.total=0,x.msg="",B.wrap&&(x.adler=1&B.wrap),B.mode=w,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new n.Buf32(b),B.distcode=B.distdyn=new n.Buf32(l),B.sane=1,B.back=-1,k):f}function T(x){var B;return x&&x.state?((B=x.state).wsize=0,B.whave=0,B.wnext=0,E(x)):f}function S(x,B){var o,P;return x&&x.state?(P=x.state,B<0?(o=0,B=-B):(o=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?f:(P.window!==null&&P.wbits!==B&&(P.window=null),P.wrap=o,P.wbits=B,T(x))):f}function W(x,B){var o,P;return x?(P=new _,(x.state=P).window=null,(o=S(x,B))!==k&&(x.state=null),o):f}var U,G,R=!0;function H(x){if(R){var B;for(U=new n.Buf32(512),G=new n.Buf32(32),B=0;B<144;)x.lens[B++]=8;for(;B<256;)x.lens[B++]=9;for(;B<280;)x.lens[B++]=7;for(;B<288;)x.lens[B++]=8;for(y(v,x.lens,0,288,U,0,x.work,{bits:9}),B=0;B<32;)x.lens[B++]=5;y(g,x.lens,0,32,G,0,x.work,{bits:5}),R=!1}x.lencode=U,x.lenbits=9,x.distcode=G,x.distbits=5}function Q(x,B,o,P){var ee,M=x.state;return M.window===null&&(M.wsize=1<<M.wbits,M.wnext=0,M.whave=0,M.window=new n.Buf8(M.wsize)),P>=M.wsize?(n.arraySet(M.window,B,o-M.wsize,M.wsize,0),M.wnext=0,M.whave=M.wsize):(P<(ee=M.wsize-M.wnext)&&(ee=P),n.arraySet(M.window,B,o-P,ee,M.wnext),(P-=ee)?(n.arraySet(M.window,B,o-P,P,0),M.wnext=P,M.whave=M.wsize):(M.wnext+=ee,M.wnext===M.wsize&&(M.wnext=0),M.whave<M.wsize&&(M.whave+=ee))),0}a.inflateReset=T,a.inflateReset2=S,a.inflateResetKeep=E,a.inflateInit=function(x){return W(x,15)},a.inflateInit2=W,a.inflate=function(x,B){var o,P,ee,M,re,Z,$,z,I,q,X,K,se,le,te,ie,ue,oe,_e,me,t,D,F,m,d=0,A=new n.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!x||!x.state||!x.output||!x.input&&x.avail_in!==0)return f;(o=x.state).mode===12&&(o.mode=13),re=x.next_out,ee=x.output,$=x.avail_out,M=x.next_in,P=x.input,Z=x.avail_in,z=o.hold,I=o.bits,q=Z,X=$,D=k;e:for(;;)switch(o.mode){case w:if(o.wrap===0){o.mode=13;break}for(;I<16;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if(2&o.wrap&&z===35615){A[o.check=0]=255&z,A[1]=z>>>8&255,o.check=h(o.check,A,2,0),I=z=0,o.mode=2;break}if(o.flags=0,o.head&&(o.head.done=!1),!(1&o.wrap)||(((255&z)<<8)+(z>>8))%31){x.msg="incorrect header check",o.mode=30;break}if((15&z)!=8){x.msg="unknown compression method",o.mode=30;break}if(I-=4,t=8+(15&(z>>>=4)),o.wbits===0)o.wbits=t;else if(t>o.wbits){x.msg="invalid window size",o.mode=30;break}o.dmax=1<<t,x.adler=o.check=1,o.mode=512&z?10:12,I=z=0;break;case 2:for(;I<16;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if(o.flags=z,(255&o.flags)!=8){x.msg="unknown compression method",o.mode=30;break}if(57344&o.flags){x.msg="unknown header flags set",o.mode=30;break}o.head&&(o.head.text=z>>8&1),512&o.flags&&(A[0]=255&z,A[1]=z>>>8&255,o.check=h(o.check,A,2,0)),I=z=0,o.mode=3;case 3:for(;I<32;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}o.head&&(o.head.time=z),512&o.flags&&(A[0]=255&z,A[1]=z>>>8&255,A[2]=z>>>16&255,A[3]=z>>>24&255,o.check=h(o.check,A,4,0)),I=z=0,o.mode=4;case 4:for(;I<16;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}o.head&&(o.head.xflags=255&z,o.head.os=z>>8),512&o.flags&&(A[0]=255&z,A[1]=z>>>8&255,o.check=h(o.check,A,2,0)),I=z=0,o.mode=5;case 5:if(1024&o.flags){for(;I<16;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}o.length=z,o.head&&(o.head.extra_len=z),512&o.flags&&(A[0]=255&z,A[1]=z>>>8&255,o.check=h(o.check,A,2,0)),I=z=0}else o.head&&(o.head.extra=null);o.mode=6;case 6:if(1024&o.flags&&(Z<(K=o.length)&&(K=Z),K&&(o.head&&(t=o.head.extra_len-o.length,o.head.extra||(o.head.extra=new Array(o.head.extra_len)),n.arraySet(o.head.extra,P,M,K,t)),512&o.flags&&(o.check=h(o.check,P,K,M)),Z-=K,M+=K,o.length-=K),o.length))break e;o.length=0,o.mode=7;case 7:if(2048&o.flags){if(Z===0)break e;for(K=0;t=P[M+K++],o.head&&t&&o.length<65536&&(o.head.name+=String.fromCharCode(t)),t&&K<Z;);if(512&o.flags&&(o.check=h(o.check,P,K,M)),Z-=K,M+=K,t)break e}else o.head&&(o.head.name=null);o.length=0,o.mode=8;case 8:if(4096&o.flags){if(Z===0)break e;for(K=0;t=P[M+K++],o.head&&t&&o.length<65536&&(o.head.comment+=String.fromCharCode(t)),t&&K<Z;);if(512&o.flags&&(o.check=h(o.check,P,K,M)),Z-=K,M+=K,t)break e}else o.head&&(o.head.comment=null);o.mode=9;case 9:if(512&o.flags){for(;I<16;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if(z!==(65535&o.check)){x.msg="header crc mismatch",o.mode=30;break}I=z=0}o.head&&(o.head.hcrc=o.flags>>9&1,o.head.done=!0),x.adler=o.check=0,o.mode=12;break;case 10:for(;I<32;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}x.adler=o.check=p(z),I=z=0,o.mode=11;case 11:if(o.havedict===0)return x.next_out=re,x.avail_out=$,x.next_in=M,x.avail_in=Z,o.hold=z,o.bits=I,2;x.adler=o.check=1,o.mode=12;case 12:if(B===5||B===6)break e;case 13:if(o.last){z>>>=7&I,I-=7&I,o.mode=27;break}for(;I<3;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}switch(o.last=1&z,I-=1,3&(z>>>=1)){case 0:o.mode=14;break;case 1:if(H(o),o.mode=20,B!==6)break;z>>>=2,I-=2;break e;case 2:o.mode=17;break;case 3:x.msg="invalid block type",o.mode=30}z>>>=2,I-=2;break;case 14:for(z>>>=7&I,I-=7&I;I<32;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if((65535&z)!=(z>>>16^65535)){x.msg="invalid stored block lengths",o.mode=30;break}if(o.length=65535&z,I=z=0,o.mode=15,B===6)break e;case 15:o.mode=16;case 16:if(K=o.length){if(Z<K&&(K=Z),$<K&&(K=$),K===0)break e;n.arraySet(ee,P,M,K,re),Z-=K,M+=K,$-=K,re+=K,o.length-=K;break}o.mode=12;break;case 17:for(;I<14;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if(o.nlen=257+(31&z),z>>>=5,I-=5,o.ndist=1+(31&z),z>>>=5,I-=5,o.ncode=4+(15&z),z>>>=4,I-=4,286<o.nlen||30<o.ndist){x.msg="too many length or distance symbols",o.mode=30;break}o.have=0,o.mode=18;case 18:for(;o.have<o.ncode;){for(;I<3;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}o.lens[N[o.have++]]=7&z,z>>>=3,I-=3}for(;o.have<19;)o.lens[N[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,F={bits:o.lenbits},D=y(0,o.lens,0,19,o.lencode,0,o.work,F),o.lenbits=F.bits,D){x.msg="invalid code lengths set",o.mode=30;break}o.have=0,o.mode=19;case 19:for(;o.have<o.nlen+o.ndist;){for(;ie=(d=o.lencode[z&(1<<o.lenbits)-1])>>>16&255,ue=65535&d,!((te=d>>>24)<=I);){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if(ue<16)z>>>=te,I-=te,o.lens[o.have++]=ue;else{if(ue===16){for(m=te+2;I<m;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if(z>>>=te,I-=te,o.have===0){x.msg="invalid bit length repeat",o.mode=30;break}t=o.lens[o.have-1],K=3+(3&z),z>>>=2,I-=2}else if(ue===17){for(m=te+3;I<m;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}I-=te,t=0,K=3+(7&(z>>>=te)),z>>>=3,I-=3}else{for(m=te+7;I<m;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}I-=te,t=0,K=11+(127&(z>>>=te)),z>>>=7,I-=7}if(o.have+K>o.nlen+o.ndist){x.msg="invalid bit length repeat",o.mode=30;break}for(;K--;)o.lens[o.have++]=t}}if(o.mode===30)break;if(o.lens[256]===0){x.msg="invalid code -- missing end-of-block",o.mode=30;break}if(o.lenbits=9,F={bits:o.lenbits},D=y(v,o.lens,0,o.nlen,o.lencode,0,o.work,F),o.lenbits=F.bits,D){x.msg="invalid literal/lengths set",o.mode=30;break}if(o.distbits=6,o.distcode=o.distdyn,F={bits:o.distbits},D=y(g,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,F),o.distbits=F.bits,D){x.msg="invalid distances set",o.mode=30;break}if(o.mode=20,B===6)break e;case 20:o.mode=21;case 21:if(6<=Z&&258<=$){x.next_out=re,x.avail_out=$,x.next_in=M,x.avail_in=Z,o.hold=z,o.bits=I,c(x,X),re=x.next_out,ee=x.output,$=x.avail_out,M=x.next_in,P=x.input,Z=x.avail_in,z=o.hold,I=o.bits,o.mode===12&&(o.back=-1);break}for(o.back=0;ie=(d=o.lencode[z&(1<<o.lenbits)-1])>>>16&255,ue=65535&d,!((te=d>>>24)<=I);){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if(ie&&(240&ie)==0){for(oe=te,_e=ie,me=ue;ie=(d=o.lencode[me+((z&(1<<oe+_e)-1)>>oe)])>>>16&255,ue=65535&d,!(oe+(te=d>>>24)<=I);){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}z>>>=oe,I-=oe,o.back+=oe}if(z>>>=te,I-=te,o.back+=te,o.length=ue,ie===0){o.mode=26;break}if(32&ie){o.back=-1,o.mode=12;break}if(64&ie){x.msg="invalid literal/length code",o.mode=30;break}o.extra=15&ie,o.mode=22;case 22:if(o.extra){for(m=o.extra;I<m;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}o.length+=z&(1<<o.extra)-1,z>>>=o.extra,I-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=23;case 23:for(;ie=(d=o.distcode[z&(1<<o.distbits)-1])>>>16&255,ue=65535&d,!((te=d>>>24)<=I);){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if((240&ie)==0){for(oe=te,_e=ie,me=ue;ie=(d=o.distcode[me+((z&(1<<oe+_e)-1)>>oe)])>>>16&255,ue=65535&d,!(oe+(te=d>>>24)<=I);){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}z>>>=oe,I-=oe,o.back+=oe}if(z>>>=te,I-=te,o.back+=te,64&ie){x.msg="invalid distance code",o.mode=30;break}o.offset=ue,o.extra=15&ie,o.mode=24;case 24:if(o.extra){for(m=o.extra;I<m;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}o.offset+=z&(1<<o.extra)-1,z>>>=o.extra,I-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){x.msg="invalid distance too far back",o.mode=30;break}o.mode=25;case 25:if($===0)break e;if(K=X-$,o.offset>K){if((K=o.offset-K)>o.whave&&o.sane){x.msg="invalid distance too far back",o.mode=30;break}se=K>o.wnext?(K-=o.wnext,o.wsize-K):o.wnext-K,K>o.length&&(K=o.length),le=o.window}else le=ee,se=re-o.offset,K=o.length;for($<K&&(K=$),$-=K,o.length-=K;ee[re++]=le[se++],--K;);o.length===0&&(o.mode=21);break;case 26:if($===0)break e;ee[re++]=o.length,$--,o.mode=21;break;case 27:if(o.wrap){for(;I<32;){if(Z===0)break e;Z--,z|=P[M++]<<I,I+=8}if(X-=$,x.total_out+=X,o.total+=X,X&&(x.adler=o.check=o.flags?h(o.check,ee,X,re-X):i(o.check,ee,X,re-X)),X=$,(o.flags?z:p(z))!==o.check){x.msg="incorrect data check",o.mode=30;break}I=z=0}o.mode=28;case 28:if(o.wrap&&o.flags){for(;I<32;){if(Z===0)break e;Z--,z+=P[M++]<<I,I+=8}if(z!==(4294967295&o.total)){x.msg="incorrect length check",o.mode=30;break}I=z=0}o.mode=29;case 29:D=1;break e;case 30:D=-3;break e;case 31:return-4;case 32:default:return f}return x.next_out=re,x.avail_out=$,x.next_in=M,x.avail_in=Z,o.hold=z,o.bits=I,(o.wsize||X!==x.avail_out&&o.mode<30&&(o.mode<27||B!==4))&&Q(x,x.output,x.next_out,X-x.avail_out)?(o.mode=31,-4):(q-=x.avail_in,X-=x.avail_out,x.total_in+=q,x.total_out+=X,o.total+=X,o.wrap&&X&&(x.adler=o.check=o.flags?h(o.check,ee,X,x.next_out-X):i(o.check,ee,X,x.next_out-X)),x.data_type=o.bits+(o.last?64:0)+(o.mode===12?128:0)+(o.mode===20||o.mode===15?256:0),(q==0&&X===0||B===4)&&D===k&&(D=-5),D)},a.inflateEnd=function(x){if(!x||!x.state)return f;var B=x.state;return B.window&&(B.window=null),x.state=null,k},a.inflateGetHeader=function(x,B){var o;return x&&x.state?(2&(o=x.state).wrap)==0?f:((o.head=B).done=!1,k):f},a.inflateSetDictionary=function(x,B){var o,P=B.length;return x&&x.state?(o=x.state).wrap!==0&&o.mode!==11?f:o.mode===11&&i(1,B,P,0)!==o.check?-3:Q(x,B,P,P)?(o.mode=31,-4):(o.havedict=1,k):f},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,s,a){var n=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[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],c=[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],y=[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];s.exports=function(v,g,k,f,w,b,l,p){var _,E,T,S,W,U,G,R,H,Q=p.bits,x=0,B=0,o=0,P=0,ee=0,M=0,re=0,Z=0,$=0,z=0,I=null,q=0,X=new n.Buf16(16),K=new n.Buf16(16),se=null,le=0;for(x=0;x<=15;x++)X[x]=0;for(B=0;B<f;B++)X[g[k+B]]++;for(ee=Q,P=15;1<=P&&X[P]===0;P--);if(P<ee&&(ee=P),P===0)return w[b++]=20971520,w[b++]=20971520,p.bits=1,0;for(o=1;o<P&&X[o]===0;o++);for(ee<o&&(ee=o),x=Z=1;x<=15;x++)if(Z<<=1,(Z-=X[x])<0)return-1;if(0<Z&&(v===0||P!==1))return-1;for(K[1]=0,x=1;x<15;x++)K[x+1]=K[x]+X[x];for(B=0;B<f;B++)g[k+B]!==0&&(l[K[g[k+B]]++]=B);if(U=v===0?(I=se=l,19):v===1?(I=i,q-=257,se=h,le-=257,256):(I=c,se=y,-1),x=o,W=b,re=B=z=0,T=-1,S=($=1<<(M=ee))-1,v===1&&852<$||v===2&&592<$)return 1;for(;;){for(G=x-re,H=l[B]<U?(R=0,l[B]):l[B]>U?(R=se[le+l[B]],I[q+l[B]]):(R=96,0),_=1<<x-re,o=E=1<<M;w[W+(z>>re)+(E-=_)]=G<<24|R<<16|H|0,E!==0;);for(_=1<<x-1;z&_;)_>>=1;if(_!==0?(z&=_-1,z+=_):z=0,B++,--X[x]==0){if(x===P)break;x=g[k+l[B]]}if(ee<x&&(z&S)!==T){for(re===0&&(re=ee),W+=o,Z=1<<(M=x-re);M+re<P&&!((Z-=X[M+re])<=0);)M++,Z<<=1;if($+=1<<M,v===1&&852<$||v===2&&592<$)return 1;w[T=z&S]=ee<<24|M<<16|W-b|0}}return z!==0&&(w[W+z]=x-re<<24|64<<16|0),p.bits=ee,0}},{"../utils/common":41}],51:[function(e,s,a){s.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,s,a){var n=e("../utils/common"),i=0,h=1;function c(d){for(var A=d.length;0<=--A;)d[A]=0}var y=0,v=29,g=256,k=g+1+v,f=30,w=19,b=2*k+1,l=15,p=16,_=7,E=256,T=16,S=17,W=18,U=[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],G=[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],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Q=new Array(2*(k+2));c(Q);var x=new Array(2*f);c(x);var B=new Array(512);c(B);var o=new Array(256);c(o);var P=new Array(v);c(P);var ee,M,re,Z=new Array(f);function $(d,A,N,L,C){this.static_tree=d,this.extra_bits=A,this.extra_base=N,this.elems=L,this.max_length=C,this.has_stree=d&&d.length}function z(d,A){this.dyn_tree=d,this.max_code=0,this.stat_desc=A}function I(d){return d<256?B[d]:B[256+(d>>>7)]}function q(d,A){d.pending_buf[d.pending++]=255&A,d.pending_buf[d.pending++]=A>>>8&255}function X(d,A,N){d.bi_valid>p-N?(d.bi_buf|=A<<d.bi_valid&65535,q(d,d.bi_buf),d.bi_buf=A>>p-d.bi_valid,d.bi_valid+=N-p):(d.bi_buf|=A<<d.bi_valid&65535,d.bi_valid+=N)}function K(d,A,N){X(d,N[2*A],N[2*A+1])}function se(d,A){for(var N=0;N|=1&d,d>>>=1,N<<=1,0<--A;);return N>>>1}function le(d,A,N){var L,C,j=new Array(l+1),V=0;for(L=1;L<=l;L++)j[L]=V=V+N[L-1]<<1;for(C=0;C<=A;C++){var Y=d[2*C+1];Y!==0&&(d[2*C]=se(j[Y]++,Y))}}function te(d){var A;for(A=0;A<k;A++)d.dyn_ltree[2*A]=0;for(A=0;A<f;A++)d.dyn_dtree[2*A]=0;for(A=0;A<w;A++)d.bl_tree[2*A]=0;d.dyn_ltree[2*E]=1,d.opt_len=d.static_len=0,d.last_lit=d.matches=0}function ie(d){8<d.bi_valid?q(d,d.bi_buf):0<d.bi_valid&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0}function ue(d,A,N,L){var C=2*A,j=2*N;return d[C]<d[j]||d[C]===d[j]&&L[A]<=L[N]}function oe(d,A,N){for(var L=d.heap[N],C=N<<1;C<=d.heap_len&&(C<d.heap_len&&ue(A,d.heap[C+1],d.heap[C],d.depth)&&C++,!ue(A,L,d.heap[C],d.depth));)d.heap[N]=d.heap[C],N=C,C<<=1;d.heap[N]=L}function _e(d,A,N){var L,C,j,V,Y=0;if(d.last_lit!==0)for(;L=d.pending_buf[d.d_buf+2*Y]<<8|d.pending_buf[d.d_buf+2*Y+1],C=d.pending_buf[d.l_buf+Y],Y++,L===0?K(d,C,A):(K(d,(j=o[C])+g+1,A),(V=U[j])!==0&&X(d,C-=P[j],V),K(d,j=I(--L),N),(V=G[j])!==0&&X(d,L-=Z[j],V)),Y<d.last_lit;);K(d,E,A)}function me(d,A){var N,L,C,j=A.dyn_tree,V=A.stat_desc.static_tree,Y=A.stat_desc.has_stree,J=A.stat_desc.elems,ae=-1;for(d.heap_len=0,d.heap_max=b,N=0;N<J;N++)j[2*N]!==0?(d.heap[++d.heap_len]=ae=N,d.depth[N]=0):j[2*N+1]=0;for(;d.heap_len<2;)j[2*(C=d.heap[++d.heap_len]=ae<2?++ae:0)]=1,d.depth[C]=0,d.opt_len--,Y&&(d.static_len-=V[2*C+1]);for(A.max_code=ae,N=d.heap_len>>1;1<=N;N--)oe(d,j,N);for(C=J;N=d.heap[1],d.heap[1]=d.heap[d.heap_len--],oe(d,j,1),L=d.heap[1],d.heap[--d.heap_max]=N,d.heap[--d.heap_max]=L,j[2*C]=j[2*N]+j[2*L],d.depth[C]=(d.depth[N]>=d.depth[L]?d.depth[N]:d.depth[L])+1,j[2*N+1]=j[2*L+1]=C,d.heap[1]=C++,oe(d,j,1),2<=d.heap_len;);d.heap[--d.heap_max]=d.heap[1],function(ne,de){var Ee,ge,Ae,he,Ie,Ue,ve=de.dyn_tree,Me=de.max_code,hr=de.stat_desc.static_tree,ur=de.stat_desc.has_stree,fr=de.stat_desc.extra_bits,Ze=de.stat_desc.extra_base,Se=de.stat_desc.max_length,ze=0;for(he=0;he<=l;he++)ne.bl_count[he]=0;for(ve[2*ne.heap[ne.heap_max]+1]=0,Ee=ne.heap_max+1;Ee<b;Ee++)Se<(he=ve[2*ve[2*(ge=ne.heap[Ee])+1]+1]+1)&&(he=Se,ze++),ve[2*ge+1]=he,Me<ge||(ne.bl_count[he]++,Ie=0,Ze<=ge&&(Ie=fr[ge-Ze]),Ue=ve[2*ge],ne.opt_len+=Ue*(he+Ie),ur&&(ne.static_len+=Ue*(hr[2*ge+1]+Ie)));if(ze!==0){do{for(he=Se-1;ne.bl_count[he]===0;)he--;ne.bl_count[he]--,ne.bl_count[he+1]+=2,ne.bl_count[Se]--,ze-=2}while(0<ze);for(he=Se;he!==0;he--)for(ge=ne.bl_count[he];ge!==0;)Me<(Ae=ne.heap[--Ee])||(ve[2*Ae+1]!==he&&(ne.opt_len+=(he-ve[2*Ae+1])*ve[2*Ae],ve[2*Ae+1]=he),ge--)}}(d,A),le(j,ae,d.bl_count)}function t(d,A,N){var L,C,j=-1,V=A[1],Y=0,J=7,ae=4;for(V===0&&(J=138,ae=3),A[2*(N+1)+1]=65535,L=0;L<=N;L++)C=V,V=A[2*(L+1)+1],++Y<J&&C===V||(Y<ae?d.bl_tree[2*C]+=Y:C!==0?(C!==j&&d.bl_tree[2*C]++,d.bl_tree[2*T]++):Y<=10?d.bl_tree[2*S]++:d.bl_tree[2*W]++,j=C,ae=(Y=0)===V?(J=138,3):C===V?(J=6,3):(J=7,4))}function D(d,A,N){var L,C,j=-1,V=A[1],Y=0,J=7,ae=4;for(V===0&&(J=138,ae=3),L=0;L<=N;L++)if(C=V,V=A[2*(L+1)+1],!(++Y<J&&C===V)){if(Y<ae)for(;K(d,C,d.bl_tree),--Y!=0;);else C!==0?(C!==j&&(K(d,C,d.bl_tree),Y--),K(d,T,d.bl_tree),X(d,Y-3,2)):Y<=10?(K(d,S,d.bl_tree),X(d,Y-3,3)):(K(d,W,d.bl_tree),X(d,Y-11,7));j=C,ae=(Y=0)===V?(J=138,3):C===V?(J=6,3):(J=7,4)}}c(Z);var F=!1;function m(d,A,N,L){X(d,(y<<1)+(L?1:0),3),function(C,j,V,Y){ie(C),Y&&(q(C,V),q(C,~V)),n.arraySet(C.pending_buf,C.window,j,V,C.pending),C.pending+=V}(d,A,N,!0)}a._tr_init=function(d){F||(function(){var A,N,L,C,j,V=new Array(l+1);for(C=L=0;C<v-1;C++)for(P[C]=L,A=0;A<1<<U[C];A++)o[L++]=C;for(o[L-1]=C,C=j=0;C<16;C++)for(Z[C]=j,A=0;A<1<<G[C];A++)B[j++]=C;for(j>>=7;C<f;C++)for(Z[C]=j<<7,A=0;A<1<<G[C]-7;A++)B[256+j++]=C;for(N=0;N<=l;N++)V[N]=0;for(A=0;A<=143;)Q[2*A+1]=8,A++,V[8]++;for(;A<=255;)Q[2*A+1]=9,A++,V[9]++;for(;A<=279;)Q[2*A+1]=7,A++,V[7]++;for(;A<=287;)Q[2*A+1]=8,A++,V[8]++;for(le(Q,k+1,V),A=0;A<f;A++)x[2*A+1]=5,x[2*A]=se(A,5);ee=new $(Q,U,g+1,k,l),M=new $(x,G,0,f,l),re=new $(new Array(0),R,0,w,_)}(),F=!0),d.l_desc=new z(d.dyn_ltree,ee),d.d_desc=new z(d.dyn_dtree,M),d.bl_desc=new z(d.bl_tree,re),d.bi_buf=0,d.bi_valid=0,te(d)},a._tr_stored_block=m,a._tr_flush_block=function(d,A,N,L){var C,j,V=0;0<d.level?(d.strm.data_type===2&&(d.strm.data_type=function(Y){var J,ae=4093624447;for(J=0;J<=31;J++,ae>>>=1)if(1&ae&&Y.dyn_ltree[2*J]!==0)return i;if(Y.dyn_ltree[18]!==0||Y.dyn_ltree[20]!==0||Y.dyn_ltree[26]!==0)return h;for(J=32;J<g;J++)if(Y.dyn_ltree[2*J]!==0)return h;return i}(d)),me(d,d.l_desc),me(d,d.d_desc),V=function(Y){var J;for(t(Y,Y.dyn_ltree,Y.l_desc.max_code),t(Y,Y.dyn_dtree,Y.d_desc.max_code),me(Y,Y.bl_desc),J=w-1;3<=J&&Y.bl_tree[2*H[J]+1]===0;J--);return Y.opt_len+=3*(J+1)+5+5+4,J}(d),C=d.opt_len+3+7>>>3,(j=d.static_len+3+7>>>3)<=C&&(C=j)):C=j=N+5,N+4<=C&&A!==-1?m(d,A,N,L):d.strategy===4||j===C?(X(d,2+(L?1:0),3),_e(d,Q,x)):(X(d,4+(L?1:0),3),function(Y,J,ae,ne){var de;for(X(Y,J-257,5),X(Y,ae-1,5),X(Y,ne-4,4),de=0;de<ne;de++)X(Y,Y.bl_tree[2*H[de]+1],3);D(Y,Y.dyn_ltree,J-1),D(Y,Y.dyn_dtree,ae-1)}(d,d.l_desc.max_code+1,d.d_desc.max_code+1,V+1),_e(d,d.dyn_ltree,d.dyn_dtree)),te(d),L&&ie(d)},a._tr_tally=function(d,A,N){return d.pending_buf[d.d_buf+2*d.last_lit]=A>>>8&255,d.pending_buf[d.d_buf+2*d.last_lit+1]=255&A,d.pending_buf[d.l_buf+d.last_lit]=255&N,d.last_lit++,A===0?d.dyn_ltree[2*N]++:(d.matches++,A--,d.dyn_ltree[2*(o[N]+g+1)]++,d.dyn_dtree[2*I(A)]++),d.last_lit===d.lit_bufsize-1},a._tr_align=function(d){X(d,2,3),K(d,E,Q),function(A){A.bi_valid===16?(q(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):8<=A.bi_valid&&(A.pending_buf[A.pending++]=255&A.bi_buf,A.bi_buf>>=8,A.bi_valid-=8)}(d)}},{"../utils/common":41}],53:[function(e,s,a){s.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,s,a){s.exports=typeof setImmediate=="function"?setImmediate:function(){var n=[].slice.apply(arguments);n.splice(1,0,0),setTimeout.apply(null,n)}},{}]},{},[10])(10)})});export default ke;var jr=ke.defaults,Yr=ke.external,Hr=ke.loadAsync,Gr=ke.support,Kr=ke.version;export{ke as __moduleExports,jr as defaults,Yr as external,Hr as loadAsync,Gr as support,Kr as version};
@@ -0,0 +1 @@
1
+ from https://cdn.skypack.dev/-/jszip@v3.5.0-6VXsZ827XvJbsCGI3Q9F/dist=es2020,min/jszip.js