stimulsoft-reports-js-angular
Version:
Stimulsoft Reports.JS is a reporting tool for Angular
7 lines • 916 kB
JavaScript
/*
Stimulsoft.Reports.JS
Version: 2025.4.1
Build date: 2025.10.06
License: https://www.stimulsoft.com/en/licensing/reports
*/
import{Stimulsoft}from"./stimulsoft.reports.engine.mjs";(e=>{var t;"undefined"!=typeof globalThis?t=globalThis:"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof $&&$.global?t=$.global:"undefined"!=typeof self&&(t=self),t.JSZipSync=e()})(function(){var e,t,r;return function a(s,i,o){function l(r,e){if(!i[r]){if(!s[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(c)return c(r,!0);throw new Error("Cannot find module '"+r+"'")}var n=i[r]={exports:{}};s[r][0].call(n.exports,function(e){var t=s[r][1][e];return l(t||e)},n,n.exports,a,s,i,o)}return i[r].exports}for(var c="function"==typeof require&&require,e=0;e<o.length;e++)l(o[e]);return l}({1:[function(e,t,r){var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e,t){var r="",n,a,s,i,o,l,c,f=0;while(f<e.length)i=(n=e.charCodeAt(f++))>>2,o=(3&n)<<4|(a=e.charCodeAt(f++))>>4,l=(15&a)<<2|(s=e.charCodeAt(f++))>>6,c=63&s,isNaN(a)?l=c=64:isNaN(s)&&(c=64),r=r+h.charAt(i)+h.charAt(o)+h.charAt(l)+h.charAt(c);return r},r.decode=function(e,t){var r="",n,a,s,i,o,l,c,f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length)i=h.indexOf(e.charAt(f++)),a=(15&(o=h.indexOf(e.charAt(f++))))<<4|(l=h.indexOf(e.charAt(f++)))>>2,s=(3&l)<<6|(c=h.indexOf(e.charAt(f++))),r+=String.fromCharCode(n=i<<2|o>>4),64!=l&&(r+=String.fromCharCode(a)),64!=c&&(r+=String.fromCharCode(s));return r}},{}],2:[function(e,t,r){function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=n},{}],3:[function(e,t,r){r.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},r.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,t,r){var l=e("./utils"),c=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function e(t,r){if(void 0===t||!t.length)return 0;var n="string"!==l.getTypeOf(t),e=(void 0===r&&(r=0),0),a=0,s=0;r^=-1;for(var i=0,o=t.length;i<o;i++)s=n?t[i]:t.charCodeAt(i),r=r>>>8^(e=c[a=255&(r^s)]);return-1^r}},{"./utils":21}],5:[function(e,t,r){var n=e("./utils");function a(e){this.data=null,this.length=0,this.index=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=a},{"./utils":21}],6:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!1,r.date=null,r.compression=null,r.comment=null},{}],7:[function(e,t,r){var n=e("./utils");r.string2binary=function(e){return n.string2binary(e)},r.string2Uint8Array=function(e){return n.transformTo("uint8array",e)},r.uint8Array2String=function(e){return n.transformTo("string",e)},r.string2Blob=function(e){var t=n.transformTo("arraybuffer",e);return n.arrayBuffer2Blob(t)},r.arrayBuffer2Blob=function(e){return n.arrayBuffer2Blob(e)},r.transformTo=function(e,t){return n.transformTo(e,t)},r.getTypeOf=function(e){return n.getTypeOf(e)},r.checkSupport=function(e){return n.checkSupport(e)},r.MAX_VALUE_16BITS=n.MAX_VALUE_16BITS,r.MAX_VALUE_32BITS=n.MAX_VALUE_32BITS,r.pretty=function(e){return n.pretty(e)},r.findCompression=function(e){return n.findCompression(e)},r.isRegExp=function(e){return n.isRegExp(e)}},{"./utils":21}],8:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,a=e("pako");r.uncompressInputType=n?"uint8array":"array",r.compressInputType=n?"uint8array":"array",r.magic=String.fromCharCode(8,0),r.compress=function(e){return a.deflateRaw(e)},r.uncompress=function(e){return a.inflateRaw(e)}},{pako:24}],9:[function(e,t,r){var n=e("./base64");function a(e,t){if(!(this instanceof a))return new a(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new a,t;for(t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(a.prototype=e("./object")).load=e("./load"),a.support=e("./support"),a.defaults=e("./defaults"),a.utils=e("./deprecatedPublicUtils"),a.base64={encode:function(e){return n.encode(e)},decode:function(e){return n.decode(e)}},a.compressions=e("./compressions"),t.exports=a},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(e,t,r){var i=e("./base64"),o=e("./zipEntries");t.exports=function(e,t){var r,n,a,s;for((t=t||{}).base64&&(e=i.decode(e)),r=(n=new o(e,t)).files,a=0;a<r.length;a++)s=r[a],this.file(s.fileName,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileComment.length?s.fileComment:null,createFolders:t.createFolders});return n.zipComment.length&&(this.comment=n.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(e,a,t){!function(r){var n=function(){};if(void 0!==r){var t=!r.from;if(!t)try{r.from("foo","utf8")}catch(e){t=!0}n=t?function(e,t){return t?new r(e,t):new r(e)}:r.from.bind(r),r.alloc||(r.alloc=function(e){return new r(e)})}a.exports=function(e,t){return"number"==typeof e?r.alloc(e):n(e,t)},a.exports.test=function(e){return r.isBuffer(e)}}.call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],12:[function(e,t,r){var n=e("./uint8ArrayReader");function a(e){this.data=e,this.length=this.data.length,this.index=0}(a.prototype=new n).readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=a},{"./uint8ArrayReader":18}],13:[function(e,t,r){var n=e("./support"),E=e("./utils"),S=e("./crc32"),w=e("./signature"),a=e("./defaults"),b=e("./base64"),m=e("./compressions"),i=e("./compressedObject"),s=e("./nodeBuffer"),A=e("./utf8"),v=e("./stringWriter"),k=e("./uint8ArrayWriter"),o=function(e){var t;return e._data instanceof i&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===E.getTypeOf(e._data))&&(t=e._data,e._data=new Uint8Array(t.length),0!==t.length)&&e._data.set(t,0),e._data},l=function(e){var t=o(e),r;if("string"===E.getTypeOf(t)){if(!e.options.binary&&n.nodebuffer)return s(t,"utf-8");return e.asBinary()}return t},c=function(e){var t=o(this);if(null==t)return"";return this.options.base64&&(t=b.decode(t)),t=e&&this.options.binary?g.utf8decode(t):E.transformTo("string",t),t=e||this.options.binary?t:E.transformTo("string",g.utf8encode(t))},f=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this._data=t,this.options=r,this._initialMetadata={dir:r.dir,date:r.date}},_=(f.prototype={asText:function(){return c.call(this,!0)},asBinary:function(){return c.call(this,!1)},asNodeBuffer:function(){var e=l(this);return E.transformTo("nodebuffer",e)},asUint8Array:function(){var e=l(this);return E.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}},function(e,t){for(var r="",n,n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}),C=function(){for(var e={},t,r,t=0;t<arguments.length;t++)for(r in arguments[t])arguments[t].hasOwnProperty(r)&&void 0===e[r]&&(e[r]=arguments[t][r]);return e},h=function(e){return!0===(e=e||{}).base64&&null==e.binary&&(e.binary=!0),(e=C(e,a)).date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e},u=function(e,t,r){var n=E.getTypeOf(t),a;if((r=h(r)).createFolders&&(a=d(e))&&p.call(this,a,!0),r.dir||null==t)r.base64=!1,r.binary=!1,t=null;else if("string"===n)r.binary&&!r.base64&&!0!==r.optimizedBinaryString&&(t=E.string2binary(t));else{if(r.base64=!1,r.binary=!0,!(n||t instanceof i))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===n&&(t=E.transformTo("uint8array",t))}var s=new f(e,t,r);return this.files[e]=s},d=function(e){var t=(e="/"==e.slice(-1)?e.substring(0,e.length-1):e).lastIndexOf("/");return 0<t?e.substring(0,t):""},p=function(e,t){return"/"!=e.slice(-1)&&(e+="/"),t=void 0!==t&&t,this.files[e]||u.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},B=function(e,t){var r=new i,n;return e._data instanceof i?(r.uncompressedSize=e._data.uncompressedSize,r.crc32=e._data.crc32,0===r.uncompressedSize||e.dir?(t=m["STORE"],r.compressedContent="",r.crc32=0):e._data.compressionMethod===t.magic?r.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),r.compressedContent=t.compress(E.transformTo(t.compressInputType,n)))):((n=l(e))&&0!==n.length&&!e.dir||(t=m["STORE"],n=""),r.uncompressedSize=n.length,r.crc32=S(n),r.compressedContent=t.compress(E.transformTo(t.compressInputType,n))),r.compressedSize=r.compressedContent.length,r.compressionMethod=t.magic,r},R=function(e,t,r,n){var a=r.compressedContent,s=E.transformTo("string",A.utf8encode(t.name)),i=t.comment||"",o=E.transformTo("string",A.utf8encode(i)),l=s.length!==t.name.length,c=o.length!==i.length,f=t.options,h,u,d="",p="",g="",b,m,b=(t._initialMetadata.dir!==t.dir?t:f).dir,m=(t._initialMetadata.date!==t.date?t:f).date,h=m.getHours(),v=(h<<=6,h=(h=(h|m.getMinutes())<<5)|m.getSeconds()/2,u=m.getFullYear()-1980,u<<=4,u=(u=(u|m.getMonth()+1)<<5)|m.getDate(),l&&(p=_(1,1)+_(S(s),4)+s,d+="up"+_(p.length,2)+p),c&&(g=_(1,1)+_(this.crc32(o),4)+o,d+="uc"+_(g.length,2)+g),""),k,C,v=(v=(v=(v=(v=(v=(v=(v=(v+="\n\0")+(l||c?"\0\b":"\0\0")+r.compressionMethod)+_(h,2))+_(u,2))+_(r.crc32,4))+_(r.compressedSize,4))+_(r.uncompressedSize,4))+_(s.length,2))+_(d.length,2);return{fileRecord:w.LOCAL_FILE_HEADER+v+s+d,dirRecord:w.CENTRAL_FILE_HEADER+"\0"+v+_(o.length,2)+"\0\0"+"\0\0"+(!0===b?"\0\0\0":"\0\0\0\0")+_(n,4)+s+d+o,compressedObject:r}},g={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t=[],r,n,a,s;for(r in this.files){if(!this.files.hasOwnProperty(r))continue;a=this.files[r],s=new f(a.name,a._data,C(a.options)),n=r.slice(this.root.length,r.length),r.slice(0,this.root.length)===this.root&&e(n,s)&&t.push(s)}return t},file:function(r,e,t){var n;if(1===arguments.length)return E.isRegExp(r)?(n=r,this.filter(function(e,t){return!t.dir&&n.test(e)})):this.filter(function(e,t){return!t.dir&&e===r})[0]||null;return r=this.root+r,u.call(this,r,e,t),this},folder:function(r){if(!r)return this;if(E.isRegExp(r))return this.filter(function(e,t){return t.dir&&r.test(e)});var e=this.root+r,t=p.call(this,e),n=this.clone();return n.root=t.name,n},remove:function(r){r=this.root+r;var e=this.files[r];if(e||("/"!=r.slice(-1)&&(r+="/"),e=this.files[r]),e&&!e.dir)delete this.files[r];else for(var t=this.filter(function(e,t){return t.name.slice(0,r.length)===r}),n=0;n<t.length;n++)delete this.files[t[n].name];return this},generate:function(e){e=C(e||{},{base64:!0,compression:"STORE",type:"base64",comment:null}),E.checkSupport(e.type);var t=[],r=0,n=0,a,s,i=E.transformTo("string",this.utf8encode(e.comment||this.comment||"")),o;for(o in this.files){if(!this.files.hasOwnProperty(o))continue;var l=this.files[o],c=l.options.compression||e.compression.toUpperCase(),f=m[c];if(!f)throw new Error(c+" is not a valid compression method !");var h=B.call(this,l,f),u=R.call(this,o,l,h,r);r+=u.fileRecord.length+h.compressedSize,n+=u.dirRecord.length,t.push(u)}for(var d="",d=w.CENTRAL_DIRECTORY_END+"\0\0"+"\0\0"+_(t.length,2)+_(t.length,2)+_(n,4)+_(r,4)+_(i.length,2)+i,p=e.type.toLowerCase(),a=new("uint8array"===p||"arraybuffer"===p||"blob"===p||"nodebuffer"===p?k:v)(r+n+d.length),s=0;s<t.length;s++)a.append(t[s].fileRecord),a.append(t[s].compressedObject.compressedContent);for(s=0;s<t.length;s++)a.append(t[s].dirRecord);a.append(d);var g=a.finalize();switch(e.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return E.transformTo(e.type.toLowerCase(),g);case"blob":return E.arrayBuffer2Blob(E.transformTo("arraybuffer",g));case"base64":return e.base64?b.encode(g):g;default:return g}},crc32:function(e,t){return S(e,t)},utf8encode:function(e){return E.transformTo("string",A.utf8encode(e))},utf8decode:function(e){return A.utf8decode(e)}};t.exports=g},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter":16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],15:[function(e,t,r){var n=e("./dataReader"),a=e("./utils");function s(e,t){this.data=e,t||(this.data=a.string2binary(this.data)),this.length=this.data.length,this.index=0}(s.prototype=new n).byteAt=function(e){return this.data.charCodeAt(e)},s.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)},s.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=s},{"./dataReader":5,"./utils":21}],16:[function(e,t,r){var n=e("./utils"),a=function(){this.data=[]};a.prototype={append:function(e){e=n.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},t.exports=a},{"./utils":21}],17:[function(e,t,a){!function(e){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,a.nodebuffer=void 0!==e,a.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)a.blob=!1;else{var t=new ArrayBuffer(0);try{a.blob=0===new Blob([t],{type:"application/zip"}).size}catch(e){try{var r,n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);n.append(t),a.blob=0===n.getBlob("application/zip").size}catch(e){a.blob=!1}}}}.call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],18:[function(e,t,r){var n=e("./dataReader");function a(e){e&&(this.data=e,this.length=this.data.length,this.index=0)}(a.prototype=new n).byteAt=function(e){return this.data[e]},a.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===n&&this.data[s+3]===a)return s;return-1},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.index,this.index+e);return this.index+=e,t},t.exports=a},{"./dataReader":5}],19:[function(e,t,r){var n=e("./utils"),a=function(e){this.data=new Uint8Array(e),this.index=0};a.prototype={append:function(e){0!==e.length&&(e=n.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=a},{"./utils":21}],20:[function(e,t,r){for(var l=e("./utils"),c=e("./support"),n=e("./nodeBuffer"),f=new Array(256),a=0;a<256;a++)f[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;f[254]=f[254]=1;var s=function(e){for(var t,r,n,a,s,i=e.length,o=0,a=0;a<i;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<i&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new(c.uint8array?Uint8Array:Array)(o),a=s=0;s<o;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<i&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},o=function(e,t){var r,r=(t=(t=t||e.length)>e.length?e.length:t)-1;while(0<=r&&128==(192&e[r]))r--;if(r<0)return t;if(0===r)return t;return r+f[e[r]]>t?r:t},h=function(e){for(var t,r,n,a,s,i=e.length,o=new Array(2*i),n=0,r=0;r<i;){if((a=e[r++])<128){o[n++]=a;continue}if(4<(s=f[a])){o[n++]=65533,r+=s-1;continue}a&=2===s?31:3===s?15:7;while(1<s&&r<i)a=a<<6|63&e[r++],s--;if(1<s){o[n++]=65533;continue}a<65536?o[n++]=a:(a-=65536,o[n++]=55296|a>>10&1023,o[n++]=56320|1023&a)}return o.length!==n&&(o.subarray?o=o.subarray(0,n):o.length=n),l.applyFromCharCode(o)};r.utf8encode=function e(t){if(c.nodebuffer)return n(t,"utf-8");return s(t)},r.utf8decode=function e(t){if(c.nodebuffer)return l.transformTo("nodebuffer",t).toString("utf-8");var r=[],n=0,a=(t=l.transformTo(c.uint8array?"uint8array":"array",t)).length,s=65536;while(n<a){var i=o(t,Math.min(n+s,a));c.uint8array?r.push(h(t.subarray(n,i))):r.push(h(t.slice(n,i))),n=i}return r.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(e,t,c){var r=e("./support"),n=e("./compressions"),f=e("./nodeBuffer");function a(e){return e}function s(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}function i(e){var t=65536,r=[],n=e.length,a=c.getTypeOf(e),s=0,i=!0;try{switch(a){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,f(0));break}}catch(e){i=!1}if(!i){for(var o="",l=0;l<e.length;l++)o+=String.fromCharCode(e[l]);return o}while(s<n&&1<t)try{r.push("array"===a||"nodebuffer"===a?String.fromCharCode.apply(null,e.slice(s,Math.min(s+t,n))):String.fromCharCode.apply(null,e.subarray(s,Math.min(s+t,n)))),s+=t}catch(e){t=Math.floor(t/2)}return r.join("")}function o(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}c.string2binary=function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(255&e.charCodeAt(r));return t},c.arrayBuffer2Blob=function(t){c.checkSupport("blob");try{return new Blob([t],{type:"application/zip"})}catch(e){try{var r,n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);return n.append(t),n.getBlob("application/zip")}catch(e){throw new Error("Bug : can't construct the Blob.")}}},c.applyFromCharCode=i;var l={};l["string"]={string:a,array:function(e){return s(e,new Array(e.length))},arraybuffer:function(e){return l["string"]["uint8array"](e).buffer},uint8array:function(e){return s(e,new Uint8Array(e.length))},nodebuffer:function(e){return s(e,f(e.length))}},l["array"]={string:i,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return f(e)}},l["arraybuffer"]={string:function(e){return i(new Uint8Array(e))},array:function(e){return o(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return f(new Uint8Array(e))}},l["uint8array"]={string:i,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return f(e)}},l["nodebuffer"]={string:i,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return l["nodebuffer"]["uint8array"](e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:a},c.transformTo=function(e,t){if(t=t||"",!e)return t;c.checkSupport(e);var r=c.getTypeOf(t),n;return l[r][e](t)},c.getTypeOf=function(e){if("string"==typeof e)return"string";if("[object Array]"===Object.prototype.toString.call(e))return"array";if(r.nodebuffer&&f.test(e))return"nodebuffer";if(r.uint8array&&e instanceof Uint8Array)return"uint8array";if(r.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"},c.checkSupport=function(e){var t;if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this browser")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(e){for(var t="",r,n,n=0;n<(e||"").length;n++)t+="\\x"+((r=e.charCodeAt(n))<16?"0":"")+r.toString(16).toUpperCase();return t},c.findCompression=function(e){for(var t in n){if(!n.hasOwnProperty(t))continue;if(n[t].magic===e)return n[t]}return null},c.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(e,t,r){var n=e("./stringReader"),a=e("./nodeBufferReader"),s=e("./uint8ArrayReader"),i=e("./utils"),o=e("./signature"),l=e("./zipEntry"),c=e("./support"),f=e("./object");function h(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}h.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature "+"("+i.pretty(t)+", expected "+i.pretty(e)+")")},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),this.zipComment=this.reader.readString(this.zipCommentLength),this.zipComment=f.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),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={};var e=this.zip64EndOfCentralSize-44,t=0,r,n,a;while(t<e)r=this.reader.readInt(2),n=this.reader.readInt(4),a=this.reader.readString(n),this.zip64ExtensibleData[r]={id:r,length:n,value:a}},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(){for(var e,t,e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8()},readCentralDir:function(){var e;this.reader.setIndex(this.centralDirOffset);while(this.reader.readString(4)===o.CENTRAL_FILE_HEADER)(e=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(-1===e)throw new Error("Corrupted zip : can't find end of central directory");if(this.reader.setIndex(e),this.checkSignature(o.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,-1===(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR)))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(e){var t=i.getTypeOf(e);"string"!==t||c.uint8array?this.reader="nodebuffer"===t?new a(e):new s(i.transformTo("uint8array",e)):this.reader=new n(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=h},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(e,t,r){var n=e("./stringReader"),s=e("./utils"),a=e("./compressedObject"),i=e("./object");function o(e,t){this.options=e,this.loadOptions=t}o.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},prepareCompressedContent:function(r,n,a){return function(){var e=r.index,t=(r.setIndex(n),r.readData(a));return r.setIndex(e),t}},prepareContent:function(e,t,r,n,a){return function(){var e=s.transformTo(n.uncompressInputType,this.getCompressedContent()),t=n.uncompress(e);if(t.length!==a)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readString(this.fileNameLength),e.skip(r),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory "+"(compressedSize == -1 || uncompressedSize == -1)");if(null===(t=s.findCompression(this.compressionMethod)))throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new a,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=s.transformTo("string",this.decompressed.getContent()),i.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readString(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readString(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readString(this.fileCommentLength),this.dir=!!(16&this.externalFileAttributes)},parseZIP64ExtraField:function(e){if(!this.extraFields[1])return;var t=new n(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))},readExtraFields:function(e){var t=e.index,r,n,a;this.extraFields=this.extraFields||{};while(e.index<t+this.extraFieldsLength)r=e.readInt(2),n=e.readInt(2),a=e.readString(n),this.extraFields[r]={id:r,length:n,value:a}},handleUTF8:function(){var e,t;this.useUTF8()?(this.fileName=i.utf8decode(this.fileName),this.fileComment=i.utf8decode(this.fileComment)):(null!==(e=this.findExtraFieldUnicodePath())&&(this.fileName=e),null!==(t=this.findExtraFieldUnicodeComment())&&(this.fileComment=t))},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=new n(e.value);if(1!==t.readInt(1))return null;if(i.crc32(this.fileName)!==t.readInt(4))return null;return i.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new n(e.value);if(1!==t.readInt(1))return null;if(i.crc32(this.fileComment)!==t.readInt(4))return null;return i.utf8decode(t.readString(e.length-5))}return null}},t.exports=o},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,t,r){var n,a,s,i,o={};(0,e("./lib/utils/common").assign)(o,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=o},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,t,r){var i=e("./zlib/deflate.js"),o=e("./utils/common"),l=e("./utils/strings"),n=e("./zlib/messages"),a=e("./zlib/zstream"),c=0,f=4,h=0,u=1,s=-1,d=0,p=8,g=function(e){this.options=o.assign({level:s,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options,r=(t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0,i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy));if(r!==h)throw new Error(n[r]);t.header&&i.deflateSetHeader(this.strm,t.header)};function b(e,t){var r=new g(t);if(r.push(e,!0),r.err)throw r.msg;return r.result}function m(e,t){return(t=t||{}).raw=!0,b(e,t)}function v(e,t){return(t=t||{}).gzip=!0,b(e,t)}g.prototype.push=function(e,t){var r=this.strm,n=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:!0===t?f:c,r.input="string"==typeof e?l.string2buf(e):e,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new o.Buf8(n),r.next_out=0,r.avail_out=n),(a=i.deflate(r,s))!==u&&a!==h)return this.onEnd(a),this.ended=!0,!1;(0===r.avail_out||0===r.avail_in&&s===f)&&("string"===this.options.to?this.onData(l.buf2binstring(o.shrinkBuf(r.output,r.next_out))):this.onData(o.shrinkBuf(r.output,r.next_out)))}while((0<r.avail_in||0===r.avail_out)&&a!==u);if(s===f)return a=i.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===h;return!0},g.prototype.onData=function(e){this.chunks.push(e)},g.prototype.onEnd=function(e){e===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=g,r.deflate=b,r.deflateRaw=m,r.gzip=v},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,r){var c=e("./zlib/inflate.js"),f=e("./utils/common"),h=e("./utils/strings"),u=e("./zlib/constants"),n=e("./zlib/messages"),a=e("./zlib/zstream"),s=e("./zlib/gzheader"),i=function(e){this.options=f.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options,r=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0,c.inflateInit2(this.strm,t.windowBits));if(r!==u.Z_OK)throw new Error(n[r]);this.header=new s,c.inflateGetHeader(this.strm,this.header)};function o(e,t){var r=new i(t);if(r.push(e,!0),r.err)throw r.msg;return r.result}function l(e,t){return(t=t||{}).raw=!0,o(e,t)}i.prototype.push=function(e,t){var r=this.strm,n=this.options.chunkSize,a,s,i,o,l;if(this.ended)return!1;s=t===~~t?t:!0===t?u.Z_FINISH:u.Z_NO_FLUSH,r.input="string"==typeof e?h.binstring2buf(e):e,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new f.Buf8(n),r.next_out=0,r.avail_out=n),(a=c.inflate(r,u.Z_NO_FLUSH))!==u.Z_STREAM_END&&a!==u.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out&&(0===r.avail_out||a===u.Z_STREAM_END||0===r.avail_in&&s===u.Z_FINISH)&&("string"===this.options.to?(i=h.utf8border(r.output,r.next_out),o=r.next_out-i,l=h.buf2string(r.output,i),r.next_out=o,r.avail_out=n-o,o&&f.arraySet(r.output,r.output,i,o,0),this.onData(l)):this.onData(f.shrinkBuf(r.output,r.next_out)))}while(0<r.avail_in&&a!==u.Z_STREAM_END);if((s=a===u.Z_STREAM_END?u.Z_FINISH:s)===u.Z_FINISH)return a=c.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===u.Z_OK;return!0},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){e===u.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=i,r.inflate=o,r.inflateRaw=l,r.ungzip=o},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,a=(r.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var r=t.shift(),n;if(!r)continue;if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e},r.shrinkBuf=function(e,t){if(e.length===t)return e;if(e.subarray)return e.subarray(0,t);return e.length=t,e},{arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray)return void e.set(t.subarray(r,r+n),a);for(var s=0;s<n;s++)e[a+s]=t[r+s]},flattenChunks:function(e){for(var t,r,n,a,s,i,n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(i=new Uint8Array(n),t=a=0,r=e.length;t<r;t++)s=e[t],i.set(s,a),a+=s.length;return i}}),s={arraySet:function(e,t,r,n,a){for(var s=0;s<n;s++)e[a+s]=t[r+s]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,a)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s))},r.setTyped(n)},{}],28:[function(e,t,r){var l=e("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var c=new l.Buf8(256),n=0;n<256;n++)c[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function f(e,t){if(t<65537&&(e.subarray&&s||!e.subarray&&a))return String.fromCharCode.apply(null,l.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}c[254]=c[254]=1,r.string2buf=function(e){for(var t,r,n,a,s,i=e.length,o=0,a=0;a<i;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<i&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new l.Buf8(o),a=s=0;s<o;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<i&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return f(e,e.length)},r.binstring2buf=function(e){for(var t=new l.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){for(var r,n,a,s,i=t||e.length,o=new Array(2*i),n=0,r=0;r<i;){if((a=e[r++])<128){o[n++]=a;continue}if(4<(s=c[a])){o[n++]=65533,r+=s-1;continue}a&=2===s?31:3===s?15:7;while(1<s&&r<i)a=a<<6|63&e[r++],s--;if(1<s){o[n++]=65533;continue}a<65536?o[n++]=a:(a-=65536,o[n++]=55296|a>>10&1023,o[n++]=56320|1023&a)}return f(o,n)},r.utf8border=function(e,t){var r,r=(t=(t=t||e.length)>e.length?e.length:t)-1;while(0<=r&&128==(192&e[r]))r--;if(r<0)return t;if(0===r)return t;return r+c[e[r]]>t?r:t}},{"./common":27}],29:[function(e,t,r){function n(e,t,r,n){var a=65535&e|0,s=e>>>16&65535|0,i=0;while(0!==r){r-=i=2e3<r?2e3:r;do{s=s+(a=a+t[n++]|0)|0}while(--i);a%=65521,s%=65521}return a|s<<16|0}t.exports=n},{}],30:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(e,t,r){function n(){for(var e,t=[],r=0;r<256;r++){for(var e=r,n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}var o=n();function a(e,t,r,n){var a=o,s=n+r;e^=-1;for(var i=n;i<s;i++)e=e>>>8^a[255&(e^t[i])];return-1^e}t.exports=a},{}],32:[function(e,s,t){var l=e("../utils/common"),c=e("./trees"),i=e("./adler32"),f=e("./crc32"),M=e("./messages"),h=0,W=1,U=3,u=4,z=5,d=0,H=1,p=-2,V=-3,g=-5,X=-1,G=1,b=2,j=3,K=4,$=0,Y=2,m=8,Z=9,Q=15,J=8,q,ee,r=256+1+29,te=30,re=19,ne=2*r+1,ae=15,v=3,k=258,C=k+v+1,se=32,E=42,ie=69,S=73,w=91,A=103,_=113,B=666,R=1,T=2,y=3,x=4,oe=3;function I(e,t){return e.msg=M[t],t}function le(e){return(e<<1)-(4<e?9:0)}function O(e){var t=e.length;while(0<=--t)e[t]=0}function F(e){var t=e.state,r=t.pending;if(0===(r=e.avail_out<r?e.avail_out:r))return;l.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0)}function o(e,t){c._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function D(e,t){e.pending_buf[e.pending++]=t}function P(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ce(e,t,r,n){var a=e.avail_in;if(0===(a=n<a?n:a))return 0;return e.avail_in-=a,l.arraySet(t,e.input,e.next_in,a,r),1===e.state.wrap?e.adler=i(e.adler,t,a,r):2===e.state.wrap&&(e.adler=f(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a}function fe(e,t){var r=e.max_chain_length,n=e.strstart,a,s,i=e.prev_length,o=e.nice_match,l=e.w_size-C<e.strstart?e.strstart-(e.w_size-C):0,c=e.window,f=e.w_mask,h=e.prev,u=e.strstart+k,d=c[n+i-1],p=c[n+i];e.good_match<=e.prev_length&&(r>>=2),e.lookahead<o&&(o=e.lookahead);do{if(c[(a=t)+i]!==p||c[a+i-1]!==d||c[a]!==c[n]||c[++a]!==c[n+1])continue;n+=2,a++;do{}while(c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&c[++n]===c[++a]&&n<u);if(s=k-(u-n),n=u-k,i<s){if(e.match_start=t,o<=(i=s))break;d=c[n+i-1],p=c[n+i]}}while((t=h[t&f])>l&&0!=--r);if(i<=e.lookahead)return i;return e.lookahead}function N(e){var t=e.w_size,r,n,a,s,i;do{if(s=e.window_size-e.lookahead-e.strstart,t+(t-C)<=e.strstart){l.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,r=n=e.hash_size;do{a=e.head[--r],e.head[r]=t<=a?a-t:0}while(--n);r=n=t;do{a=e.prev[--r],e.prev[r]=t<=a?a-t:0}while(--n);s+=t}if(0===e.strm.avail_in)break;if(n=ce(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=n,v<=e.lookahead+e.insert){i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;while(e.insert)if(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+v-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,e.lookahead+e.insert<v)break}}while(e.lookahead<C&&0!==e.strm.avail_in)}function he(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(N(e),0===e.lookahead&&t===h)return R;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,o(e,!1),0===e.strm.avail_out))return R;if(e.w_size-C<=e.strstart-e.block_start&&(o(e,!1),0===e.strm.avail_out))return R}if(e.insert=0,t===u){if(o(e,!0),0===e.strm.avail_out)return y;return x}if(e.block_start<e.strstart&&(o(e,!1),0===e.strm.avail_out))return R;return R}function ue(e,t){for(var r,n;;){if(e.lookahead<C){if(N(e),e.lookahead<C&&t===h)return R;if(0===e.lookahead)break}if(r=0,v<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-C&&(e.match_length=fe(e,r)),v<=e.match_length)if(n=c._tr_tally(e,e.strstart-e.match_start,e.match_length-v),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=v){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=c._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(o(e,!1),0===e.strm.avail_out))return R}if(e.insert=e.strstart<v-1?e.strstart:v-1,t===u){if(o(e,!0),0===e.strm.avail_out)return y;return x}if(e.last_lit&&(o(e,!1),0===e.strm.avail_out))return R;return T}function n(e,t){for(var r,n,a;;){if(e.lookahead<C){if(N(e),e.lookahead<C&&t===h)return R;if(0===e.lookahead)break}if(r=0,v<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=v-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-C&&(e.match_length=fe(e,r),e.match_length<=5)&&(e.strategy===G||e.match_length===v&&4096<e.strstart-e.match_start)&&(e.match_length=v-1),v<=e.prev_length&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-v,n=c._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-v),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=v-1,e.strstart++,n&&(o(e,!1),0===e.strm.avail_out))return R}else if(e.match_available){if((n=c._tr_tally(e,0,e.window[e.strstart-1]))&&o(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return R}else e.match_available=1,e.strstart++,e.lookahead--}if(e.match_available&&(n=c._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<v-1?e.strstart:v-1,t===u){if(o(e,!0),0===e.strm.avail_out)return y;return x}if(e.last_lit&&(o(e,!1),0===e.strm.avail_out))return R;return T}function de(e,t){for(var r,n,a,s,i=e.window;;){if(e.lookahead<=k){if(N(e),e.lookahead<=k&&t===h)return R;if(0===e.lookahead)break}if(e.match_length=0,v<=e.lookahead&&0<e.strstart&&(n=i[a=e.strstart-1])===i[++a]&&n===i[++a]&&n===i[++a]){s=e.strstart+k;do{}while(n===i[++a]&&n===i[++a]&&n===i[++a]&&n===i[++a]&&n===i[++a]&&n===i[++a]&&n===i[++a]&&n===i[++a]&&a<s);e.match_length=k-(s-a),e.lookahead<e.match_length&&(e.match_length=e.lookahead)}if(v<=e.match_length?(r=c._tr_tally(e,1,e.match_length-v),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=c._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(o(e,!1),0===e.strm.avail_out))return R}if(e.insert=0,t===u){if(o(e,!0),0===e.strm.avail_out)return y;return x}if(e.last_lit&&(o(e,!1),0===e.strm.avail_out))return R;return T}function pe(e,t){for(var r;;){if(0===e.lookahead&&(N(e),0===e.lookahead)){if(t===h)return R;break}if(e.match_length=0,r=c._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(o(e,!1),0===e.strm.avail_out))return R}if(e.insert=0,t===u){if(o(e,!0),0===e.strm.avail_out)return y;return x}if(e.last_lit&&(o(e,!1),0===e.strm.avail_out))return R;return T}var a=function(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a},L;function ge(e){e.window_size=2*e.w_size,O(e.head),e.max_lazy_match=L[e.level].max_lazy,e.good_match=L[e.level].good_length,e.nice_match=L[e.level].nice_length,e.max_chain_length=L[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=v-1,e.match_available=0,e.ins_h=0}function be(){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=m,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 l.Buf16(2*ne),this.dyn_dtree=new l.Buf16(2*(2*te+1)),this.bl_tree=new l.Buf16(2*(2*re+1)),O(this.dyn_ltree),O(this.dyn_dtree),O(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(ae+1),this.heap=new l.Buf16(2*r+1),O(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*r+1),O(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 me(e){var t;if(!e||!e.state)return I(e,p);return e.total_in=e.total_out=0,e.data_type=Y,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:_,e.adler=2===t.wrap?0:1,t.last_flush=h,c._tr_init(t),d}function ve(e){var t=me(e);return t===d&&ge(e.state),t}function ke(e,t){if(!e||!e.state)return p;if(2!==e.state.wrap)return p;return e.state.gzhead=t,d}function Ce(e,t,r,n,a,s){if(!e)return p;var i=1;if(t===X&&(t=6),n<0?(i=0,n=-n):15<n&&(i=2,n-=16),a<1||Z<a||r!==m||n<8||15<n||t<0||9<t||s<0||K<s)return I(e,p);8===n&&(n=9);var o=new be;return(e.state=o).strm=e,o.wrap=i,o.gzhead=null,o.w_bits=n,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=a+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+v-1)/v),o.window=new l.Buf8(2*o.w_size),o.head=new l.Buf16(o.hash_size),o.prev=new l.Buf16(o.w_size),o.lit_bufsize=1<<a+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new l.Buf8(o.pending_buf_size),o.d_buf=o.lit_bufsize>>1,o.l_buf=(1+2)*o.lit_bufsize,o.level=t,o.strategy=s,o.method=r,ve(e)}function Ee(e,t){return Ce(e,t,m,Q,J,$)}function Se(e,t){var r,n,a,s,i,o,o;if(!e||!e.state||z<t||t<0)return e?I(e,p):p;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===B&&t!==u)return I(e,0===e.avail_out?g:p);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===E&&(2===n.wrap?(e.adler=0,D(n,31),D(n,139),D(n,8),n.gzhead?(D(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),D(n,255&n.gzhead.time),D(n,n.gzhead.time>>8&255),D(n,n.gzhead.time>>16&255),D(n,n.gzhead.time>>24&255),D(n,9===n.level?2:n.strategy>=b||n.level<2?4:0),D(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(D(n,255&n.gzhead.extra.length),D(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=f(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=ie):(D(n,0),D(n,0),D(n,0),D(n,0),D(n,0),D(n,9===n.level?2:n.strategy>=b||n.level<2?4:0),D(n,oe),n.status=_)):(i=m+(n.w_bits-8<<4)<<8,o=-1,i|=(o=n.strategy>=b||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=se),i+=31-i%31,n.status=_,P(n,i),0!==n.strstart&&(P(n,e.adler>>>16),P(n,65535&e.adler)),e.adler=1)),n.status===ie)if(n.gzhead.extra){a=n.pending;while(n.gzindex<(65535&n.gzhead.extra.length)){if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=f(e.adler,n.pending_buf,n.pending-a,a)),F(e),a=n.pending,n.pending===n.pending_buf_size))break;