!function(a){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=a();elseif("function"==typeofdefine&&define.amd)define([],a);else{varb;b="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,b.JSZip=a()}}(function(){returnfunctiona(b,c,d){functione(g,h){if(!c[g]){if(!b[g]){vari="function"==typeofrequire&&require;if(!h&&i)returni(g,!0);if(f)returnf(g,!0);varj=newError("Cannot find module '"+g+"'");throwj.code="MODULE_NOT_FOUND",j}vark=c[g]={exports:{}};b[g][0].call(k.exports,function(a){varc=b[g][1][a];returne(c?c:a)},k,k.exports,a,b,c,d)}returnc[g].exports}for(varf="function"==typeofrequire&&require,g=0;g<d.length;g++)e(d[g]);returne}({1:[function(a,b,c){"use strict";vard=a("./utils"),e=a("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c.encode=function(a){for(varb,c,e,g,h,i,j,k=[],l=0,m=a.length,n=m,o="string"!==d.getTypeOf(a);l<a.length;)n=m-l,o?(b=a[l++],c=l<m?a[l++]:0,e=l<m?a[l++]:0):(b=a.charCodeAt(l++),c=l<m?a.charCodeAt(l++):0,e=l<m?a.charCodeAt(l++):0),g=b>>2,h=(3&b)<<4|c>>4,i=n>1?(15&c)<<2|e>>6:64,j=n>2?63&e:64,k.push(f.charAt(g)+f.charAt(h)+f.charAt(i)+f.charAt(j));returnk.join("")},c.decode=function(a){varb,c,d,g,h,i,j,k=0,l=0,m="data:";if(a.substr(0,m.length)===m)thrownewError("Invalid base64 input, it looks like a data url.");a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");varn=3*a.length/4;if(a.charAt(a.length-1)===f.charAt(64)&&n--,a.charAt(a.length-2)===f.charAt(64)&&n--,n%1!==0)thrownewError("Invalid base64 input, bad content length.");varo;for(o=e.uint8array?newUint8Array(0|n):newArray(0|n);k<a.length;)g=f.indexOf(a.charAt(k++)),h=f.indexOf(a.charAt(k++)),i=f.indexOf(a.charAt(k++)),j=f.indexOf(a.charAt(k++)),b=g<<2|h>>4,c=(15&h)<<4|i>>2,d=(3&i)<<6|j,o[l++]=b,64!==i&&(o[l++]=c),64!==j&&(o[l++]=d);returno}},{"./support":30,"./utils":32}],2:[function(a,b,c){"use strict";functiond(a,b,c,d,e){this.compressedSize=a,this.uncompressedSize=b,this.crc32=c,this.compression=d,this.compressedContent=e}vare=a("./external"),f=a("./stream/DataWorker"),g=a("./stream/DataLengthProbe"),h=a("./stream/Crc32Probe"),g=a("./stream/DataLengthProbe");d.prototype={getContentWorker:function(){vara=newf(e.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(newg("data_length")),b=this;returna.on("end",function(){if(this.streamInfo.data_length!==b.uncompressedSize)thrownewError("Bug : uncompressed data size mismatch")}),a},getCompressedWorker:function(){returnnewf(e.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(a,b,c){returna.pipe(newh).pipe(newg("uncompressedSize")).pipe(b.compressWorker(c)).pipe(newg("compressedSize")).withStreamInfo("compression",b)},b.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,b,c){"use strict";vard=a("./stream/GenericWorker");c.STORE={magic:"\0\0",compressWorker:function(a){returnnewd("STORE compression")},uncompressWorker:function(){returnnewd("STORE decompression")}},c.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,b,c){"use strict";functiond(){for(vara,b=[],c=0;c<256;c++){a=c;for(vard=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}returnb}functione(a,b,c,d){vare=h,f=d+c;a^=-1;for(varg=d;g<f;g++)a=a>>>8^e[255&(a^b[g])];returna^-1}functionf(a,b,c,d){vare=h,f=d+c;a^=-1;for(varg=d;g<f;g++)a=a>>>8^e[255&(a^b.charCodeAt(g))];returna^-1}varg=a("./utils"),h=d();b.exports=function(a,b){if("undefined"==typeofa||!a.length)return0;varc="string"!==g.getTypeOf(a);returnc?e(0|b,a,a.length,0):f(0|b,a,a.length,0)}},{"./utils":32}],5:[function(a,b,c){"use strict";c.base64=!1,c.binary=!1,c.dir=!1,c.createFolders=!0,c.date=null,c.compression=null,c.compressionOptions=null,c.comment=null,c.unixPermissions=null,c
returnb}vari=a("./support"),j=a("./base64"),k=a("./nodejsUtils"),l=a("core-js/library/fn/set-immediate"),m=a("./external");c.newBlob=function(a,b){c.checkSupport("blob");try{returnnewBlob([a],{type:b})}catch(d){try{vare=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,f=newe;returnf.append(a),f.getBlob(b)}catch(d){thrownewError("Bug : can't construct the Blob.")}}};varn={stringifyByChunk:function(a,b,c){vard=[],e=0,f=a.length;if(f<=c)returnString.fromCharCode.apply(null,a);for(;e<f;)"array"===b||"nodebuffer"===b?d.push(String.fromCharCode.apply(null,a.slice(e,Math.min(e+c,f)))):d.push(String.fromCharCode.apply(null,a.subarray(e,Math.min(e+c,f)))),e+=c;returnd.join("")},stringifyByChar:function(a){for(varb="",c=0;c<a.length;c++)b+=String.fromCharCode(a[c]);returnb},applyCanBeUsed:{uint8array:function(){try{returni.uint8array&&1===String.fromCharCode.apply(null,newUint8Array(1)).length}catch(a){return!1}}(),nodebuffer:function(){try{returni.nodebuffer&&1===String.fromCharCode.apply(null,k.allocBuffer(1)).length}catch(a){return!1}}()}};c.applyFromCharCode=g;varo={};o.string={string:e,array:function(a){returnf(a,newArray(a.length))},arraybuffer:function(a){returno.string.uint8array(a).buffer},uint8array:function(a){returnf(a,newUint8Array(a.length))},nodebuffer:function(a){returnf(a,k.allocBuffer(a.length))}},o.array={string:g,array:e,arraybuffer:function(a){returnnewUint8Array(a).buffer},uint8array:function(a){returnnewUint8Array(a)},nodebuffer:function(a){returnk.newBufferFrom(a)}},o.arraybuffer={string:function(a){returng(newUint8Array(a))},array:function(a){returnh(newUint8Array(a),newArray(a.byteLength))},arraybuffer:e,uint8array:function(a){returnnewUint8Array(a)},nodebuffer:function(a){returnk.newBufferFrom(newUint8Array(a))}},o.uint8array={string:g,array:function(a){returnh(a,newArray(a.length))},arraybuffer:function(a){returna.buffer},uint8array:e,nodebuffer:function(a){returnk.newBufferFrom(a)}},o.nodebuffer={string:g,array:function(a){returnh(a,newArray(a.length))},arraybuffer:function(a){returno.nodebuffer.uint8array(a).buffer},uint8array:function(a){returnh(a,newUint8Array(a.length))},nodebuffer:e},c.transformTo=function(a,b){if(b||(b=""),!a)returnb;c.checkSupport(a);vard=c.getTypeOf(b),e=o[d][a](b);returne},c.getTypeOf=function(a){return"string"==typeofa?"string":"[object Array]"===Object.prototype.toString.call(a)?"array":i.nodebuffer&&k.isBuffer(a)?"nodebuffer":i.uint8array&&ainstanceofUint8Array?"uint8array":i.arraybuffer&&ainstanceofArrayBuffer?"arraybuffer":void0},c.checkSupport=function(a){varb=i[a.toLowerCase()];if(!b)thrownewError(a+" is not supported by this platform")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(a){varb,c,d="";for(c=0;c<(a||"").length;c++)b=a.charCodeAt(c),d+="\\x"+(b<16?"0":"")+b.toString(16).toUpperCase();returnd},c.delay=function(a,b,c){l(function(){a.apply(c||null,b||[])})},c.inherits=function(a,b){varc=function(){};c.prototype=b.prototype,a.prototype=newc},c.extend=function(){vara,b,c={};for(a=0;a<arguments.length;a++)for(binarguments[a])arguments[a].hasOwnProperty(b)&&"undefined"==typeofc[b]&&(c[b]=arguments[a][b]);returnc},c.prepareContent=function(a,b,e,f,g){varh=m.Promise.resolve(b).then(function(a){varb=i.blob&&(ainstanceofBlob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(a))!==-1);returnb&&"undefined"!=typeofFileReader?newm.Promise(function(b,c){vard=newFileReader;d.onload=function(a){b(a.target.result)},d.onerror=function(a){c(a.target.error)},d.readAsArrayBuffer(a)}):a});returnh.then(function(b){varh=c.getTypeOf(b);returnh?("arraybuffer"===h?b=c.transformTo("uint8array",b):"string"===h&&(g?b=j.decode(b):e&&f!==!0&&(b=d(b))),b):m.Promise.reject(newError("Can't read the data of '"+a+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"core-js/library/fn/set-immediate":36}],33:[function(a,b,c){"use strict";functiond(a)