quoslibero
Version:
FusionCharts JavaScript charting framework
1 lines • 96.5 kB
JavaScript
(function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,t.JSZip=e()}})(function(){var e=Math.min,t=String.fromCharCode;return function d(c,e,t){function r(s,i){if(!e[s]){if(!c[s]){var o="function"==typeof require&&require;if(!i&&o)return o(s,!0);if(n)return n(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var u=e[s]={exports:{}};c[s][0].call(u.exports,function(t){var e=c[s][1][t];return r(e?e:t)},u,u.exports,d,c,e,t)}return e[s].exports}for(var n="function"==typeof require&&require,a=0;a<t.length;a++)r(t[a]);return r}({1:[function(e,t,r){"use strict";var a=e("./utils"),n=e("./support");r.encode=function(e){for(var t=[],r=0,n=e.length,s=n,o="string"!==a.getTypeOf(e),d,l,u,c,p,h,m;r<e.length;)s=n-r,o?(d=e[r++],l=r<n?e[r++]:0,u=r<n?e[r++]:0):(d=e.charCodeAt(r++),l=r<n?e.charCodeAt(r++):0,u=r<n?e.charCodeAt(r++):0),c=d>>2,p=(3&d)<<4|l>>4,h=1<s?(15&l)<<2|u>>6:64,m=2<s?63&u:64,t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(p)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(m));return t.join("")},r.decode=function(e){var t=0,r=0,a,s,o,d,l,u,c;if("data:"===e.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var p=3*e.length/4;if(e.charAt(e.length-1)==="="&&p--,e.charAt(e.length-2)==="="&&p--,0!=p%1)throw new Error("Invalid base64 input, bad content length.");var h;for(h=n.uint8array?new Uint8Array(0|p):Array(0|p);t<e.length;)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(t++)),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(t++)),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(t++)),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(t++)),a=d<<2|l>>4,s=(15&l)<<4|u>>2,o=(3&u)<<6|c,h[r++]=a,64!==u&&(h[r++]=s),64!==c&&(h[r++]=o);return h}},{"./support":30,"./utils":32}],2:[function(e,t){"use strict";function r(e,t,r,a,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=a,this.compressedContent=n}var a=e("./external"),n=e("./stream/DataWorker"),s=e("./stream/DataLengthProbe"),i=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");r.prototype={getContentWorker:function(){var e=new n(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new n(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},r.createWorkerFrom=function(e,t,r){return e.pipe(new i).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=r},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var a=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t){"use strict";function r(e,t,r,a){e^=-1;for(var n=a;n<a+r;n++)e=e>>>8^s[255&(e^t[n])];return-1^e}function a(e,t,r,a){e^=-1;for(var n=a;n<a+r;n++)e=e>>>8^s[255&(e^t.charCodeAt(n))];return-1^e}var n=e("./utils"),s=function(){for(var e=[],t=0,r;256>t;t++){r=t;for(var a=0;8>a;a++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}();t.exports=function(e,t){if("undefined"==typeof e||!e.length)return 0;var s="string"!==n.getTypeOf(e);return s?r(0|t,e,e.length,0):a(0|t,e,e.length,0)}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t){"use strict";var r=null;r="undefined"==typeof Promise?e("lie"):Promise,t.exports={Promise:r}},{lie:37}],7:[function(e,t,r){"use strict";function a(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,s=e("pako"),i=e("./utils"),o=e("./stream/GenericWorker"),d=n?"uint8array":"array";r.magic="\b\0",i.inherits(a,o),a.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(d,e.data),!1)},a.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},a.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new a("Deflate",e)},r.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,r){"use strict";function a(e,t,r,a){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=a,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}var n=e("../utils"),s=e("../stream/GenericWorker"),i=e("../utf8"),o=e("../crc32"),d=e("../signature"),l=function(e,r){var a="",n;for(n=0;n<r;n++)a+=t(255&e),e>>>=8;return a},u=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16},c=function(e){return 63&(e||0)},p=function(e,t,r,a,s,p){var h=e.file,m=e.compression,_=p!==i.utf8encode,f=n.transformTo("string",p(h.name)),g=n.transformTo("string",i.utf8encode(h.name)),b=h.comment,y=n.transformTo("string",p(b)),k=n.transformTo("string",i.utf8encode(b)),x=g.length!==h.name.length,w=k.length!==b.length,v="",z="",S="",C=h.dir,E=h.date,I={crc32:0,compressedSize:0,uncompressedSize:0},O,A;(!t||r)&&(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var B=0;t&&(B|=8),!_&&(x||w)&&(B|=2048);var R=0,T=0;C&&(R|=16),"UNIX"===s?(T=798,R|=u(h.unixPermissions,C)):(T=20,R|=c(h.dosPermissions,C)),O=E.getUTCHours(),O<<=6,O|=E.getUTCMinutes(),O<<=5,O|=E.getUTCSeconds()/2,A=E.getUTCFullYear()-1980,A<<=4,A|=E.getUTCMonth()+1,A<<=5,A|=E.getUTCDate(),x&&(z=l(1,1)+l(o(f),4)+g,v+="up"+l(z.length,2)+z),w&&(S=l(1,1)+l(o(y),4)+k,v+="uc"+l(S.length,2)+S);var D="";D+="\n\0",D+=l(B,2),D+=m.magic,D+=l(O,2),D+=l(A,2),D+=l(I.crc32,4),D+=l(I.compressedSize,4),D+=l(I.uncompressedSize,4),D+=l(f.length,2),D+=l(v.length,2);var F=d.LOCAL_FILE_HEADER+D+f+v,N=d.CENTRAL_FILE_HEADER+l(T,2)+D+l(y.length,2)+"\0\0\0\0"+l(R,4)+l(a,4)+f+v+y;return{fileRecord:F,dirRecord:N}},h=function(e,t,r,a,s){var i="",o=n.transformTo("string",s(a));return i=d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(e,2)+l(e,2)+l(t,4)+l(r,4)+l(o.length,2)+o,i},m=function(e){var t="";return t=d.DATA_DESCRIPTOR+l(e.crc32,4)+l(e.compressedSize,4)+l(e.uncompressedSize,4),t};n.inherits(a,s),a.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,a=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-a-1))/r:100}}))},a.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=p(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},a.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=p(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:m(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},a.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,a=h(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:a,meta:{percent:100}})},a.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},a.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},a.prototype.error=function(t){var e=this._sources;if(!s.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},a.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},r.exports=a},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){"use strict";var a=e("../compressions"),n=e("./ZipFileWorker"),s=function(e,t){var r=e||t,n=a[r];if(!n)throw new Error(r+" is not a valid compression method !");return n};r.generateWorker=function(e,t,r){var a=new n(t.streamFiles,r,t.platform,t.encodeFileName),i=0;try{e.forEach(function(e,r){i++;var n=s(r.options.compression,t.compression),o=r.options.compressionOptions||t.compressionOptions||{},d=r.dir,l=r.date;r._compressWorker(n,o).withStreamInfo("file",{name:e,dir:d,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(a)}),a.entriesCount=i}catch(t){a.error(t)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}r.prototype=e("./object"),r.prototype.loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.2.0",r.loadAsync=function(e,t){return new r().loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t){"use strict";function r(e){return new n.Promise(function(t,r){var a=e.decompressed.getContentWorker().pipe(new o);a.on("error",function(t){r(t)}).on("end",function(){a.streamInfo.crc32===e.decompressed.crc32?t():r(new Error("Corrupted zip : CRC32 mismatch"))}).resume()})}var a=e("./utils"),n=e("./external"),s=e("./utf8"),a=e("./utils"),i=e("./zipEntries"),o=e("./stream/Crc32Probe"),d=e("./nodejsUtils");t.exports=function(e,t){var o=this;return t=a.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),d.isNode&&d.isStream(e)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new i(t);return r.load(e),r}).then(function(e){var a=[n.Promise.resolve(e)],s=e.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)a.push(r(s[o]));return n.Promise.all(a)}).then(function(e){for(var r=e.shift(),a=r.files,n=0,s;n<a.length;n++)s=a[n],o.file(s.fileNameStr,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders});return r.zipComment.length&&(o.comment=r.zipComment),o})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t){"use strict";function r(e,t){n.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}var a=e("../utils"),n=e("../stream/GenericWorker");a.inherits(r,n),r.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},r.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t){"use strict";function r(e,t,r){a.call(this,t),this._helper=e;var n=this;e.on("data",function(e,t){n.push(e)||n._helper.pause(),r&&r(t)}).on("error",function(t){n.emit("error",t)}).on("end",function(){n.push(null)})}var a=e("readable-stream").Readable,n=e("../utils");n.inherits(r,a),r.prototype._read=function(){this._helper.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(e,t){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error("The \"data\" argument must not be a number");return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t){"use strict";function r(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var a=e("./utf8"),n=e("./utils"),s=e("./stream/GenericWorker"),i=e("./stream/StreamHelper"),d=e("./defaults"),l=e("./compressedObject"),u=e("./zipObject"),o=e("./generate"),c=e("./nodejsUtils"),p=e("./nodejs/NodejsStreamInputAdapter"),h=function(e,t,r){var a=n.getTypeOf(t),i=n.extend(r||{},d),o;i.date=i.date||new Date,null!==i.compression&&(i.compression=i.compression.toUpperCase()),"string"==typeof i.unixPermissions&&(i.unixPermissions=parseInt(i.unixPermissions,8)),i.unixPermissions&&16384&i.unixPermissions&&(i.dir=!0),i.dosPermissions&&16&i.dosPermissions&&(i.dir=!0),i.dir&&(e=_(e)),i.createFolders&&(o=m(e))&&f.call(this,o,!0);var h="string"===a&&!1===i.binary&&!1===i.base64;r&&"undefined"!=typeof r.binary||(i.binary=!h);var g=t instanceof l&&0===t.uncompressedSize;(g||i.dir||!t||0===t.length)&&(i.base64=!1,i.binary=!0,t="",i.compression="STORE",a="string");var b=null;b=t instanceof l||t instanceof s?t:c.isNode&&c.isStream(t)?new p(e,t):n.prepareContent(e,t,i.binary,i.optimizedBinaryString,i.base64);var y=new u(e,b,i);this.files[e]=y},m=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},_=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},f=function(e,t){return t="undefined"==typeof t?d.createFolders:t,e=_(e),this.files[e]||h.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};t.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,a;for(t in this.files)this.files.hasOwnProperty(t)&&(a=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,a))},filter:function(e){var t=[];return this.forEach(function(r,a){e(r,a)&&t.push(a)}),t},file:function(e,t,a){if(1===arguments.length){if(r(e)){var n=e;return this.filter(function(e,t){return!t.dir&&n.test(e)})}var s=this.files[this.root+e];return s&&!s.dir?s:null}return e=this.root+e,h.call(this,e,t,a),this},folder:function(e){if(!e)return this;if(r(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,a=f.call(this,t),n=this.clone();return n.root=a.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),a=0;a<r.length;a++)delete this.files[r[a].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t={},r;try{if(t=n.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode}),t.type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");n.checkSupport(t.type),("darwin"===t.platform||"freebsd"===t.platform||"linux"===t.platform||"sunos"===t.platform)&&(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var d=t.comment||this.comment||"";r=o.generateWorker(this,t,d)}catch(t){r=new s("error"),r.error(t)}return new i(r,t.type||"string",t.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(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,t){t.exports=e("stream")},{stream:void 0}],17:[function(e,t){"use strict";function r(e){a.call(this,e);for(var t=0;t<this.data.length;t++)e[t]&=255}var a=e("./DataReader"),n=e("../utils");n.inherits(r,a),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),a=e.charCodeAt(2),n=e.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===a&&this.data[s+3]===n)return s-this.zero;return-1},r.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),a=e.charCodeAt(2),n=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&a===s[2]&&n===s[3]},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(e,t){"use strict";function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}var a=e("../utils");r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||0>e)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(){},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 a.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((127&e>>25)+1980,(15&e>>21)-1,31&e>>16,31&e>>11,63&e>>5,(31&e)<<1))}},t.exports=r},{"../utils":32}],19:[function(e,t){"use strict";function r(e){a.call(this,e)}var a=e("./Uint8ArrayReader"),n=e("../utils");n.inherits(r,a),r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t){"use strict";function r(e){a.call(this,e)}var a=e("./DataReader"),n=e("../utils");n.inherits(r,a),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(e,t){"use strict";function r(e){a.call(this,e)}var a=e("./ArrayReader"),n=e("../utils");n.inherits(r,a),r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(e,t){"use strict";var r=e("../utils"),a=e("../support"),n=e("./ArrayReader"),s=e("./StringReader"),i=e("./NodeBufferReader"),o=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||a.uint8array?"nodebuffer"===t?new i(e):a.uint8array?new o(r.transformTo("uint8array",e)):new n(r.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t){"use strict";function r(e){a.call(this,"ConvertWorker to "+e),this.destType=e}var a=e("./GenericWorker"),n=e("../utils");n.inherits(r,a),r.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})},t.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(e,t){"use strict";function r(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}var a=e("./GenericWorker"),n=e("../crc32"),s=e("../utils");s.inherits(r,a),r.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t){"use strict";function r(e){n.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}var a=e("../utils"),n=e("./GenericWorker");a.inherits(r,n),r.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}n.prototype.processChunk.call(this,e)},t.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(t,r){"use strict";function a(e){s.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}var n=t("../utils"),s=t("./GenericWorker");n.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1;this.isPaused||this.isFinished||(this._tick(),!this.isFinished&&(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,r=e(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);}return this.index=r,this.push({data:t,meta:{percent:this.max?100*(this.index/this.max):0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},pause:function(){return!(this.isPaused||this.isFinished)&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t){"use strict";function r(e,t,r){return"blob"===e?i.newBlob(i.transformTo("arraybuffer",t),r):"base64"===e?l.encode(t):i.transformTo(e,t)}function a(e,t){var r=0,a=null,n=0,s;for(s=0;s<t.length;s++)n+=t[s].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(n),s=0;s<t.length;s++)a.set(t[s],r),r+=t[s].length;return a;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'");}}function n(e,t){return new c.Promise(function(n,s){var i=[],o=e._internalType,d=e._outputType,l=e._mimeType;e.on("data",function(e,r){i.push(e),t&&t(r)}).on("error",function(e){i=[],s(e)}).on("end",function(){try{var e=r(d,a(o,i),l);n(e)}catch(t){s(t)}i=[]}).resume()})}function s(e,t,r){var a=t;"blob"===t||"arraybuffer"===t?a="uint8array":"base64"===t?a="string":void 0;try{this._internalType=a,this._outputType=t,this._mimeType=r,i.checkSupport(a),this._worker=e.pipe(new o(a)),e.lock()}catch(t){this._worker=new d("error"),this._worker.error(t)}}var i=e("../utils"),o=e("./ConvertWorker"),d=e("./GenericWorker"),l=e("../base64"),u=e("../support"),c=e("../external"),p=null;if(u.nodestream)try{p=e("../nodejs/NodejsStreamOutputAdapter")}catch(t){}s.prototype={accumulate:function(e){return n(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){i.delay(t,arguments,r)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var a=new ArrayBuffer(0);try{r.blob=0===new Blob([a],{type:"application/zip"}).size}catch(t){try{var n=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,s=new n;s.append(a),r.blob=0===s.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){"use strict";function a(){l.call(this,"utf-8 decode"),this.leftOver=null}function n(){l.call(this,"utf-8 encode")}for(var s=e("./utils"),o=e("./support"),d=e("./nodejsUtils"),l=e("./stream/GenericWorker"),u=Array(256),c=0;256>c;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;u[254]=u[254]=1;var p=function(e){var t=e.length,r=0,a,n,s,d,l;for(d=0;d<t;d++)n=e.charCodeAt(d),55296==(64512&n)&&d+1<t&&(s=e.charCodeAt(d+1),56320==(64512&s)&&(n=65536+(n-55296<<10)+(s-56320),d++)),r+=128>n?1:2048>n?2:65536>n?3:4;for(a=o.uint8array?new Uint8Array(r):Array(r),l=0,d=0;l<r;d++)n=e.charCodeAt(d),55296==(64512&n)&&d+1<t&&(s=e.charCodeAt(d+1),56320==(64512&s)&&(n=65536+(n-55296<<10)+(s-56320),d++)),128>n?a[l++]=n:2048>n?(a[l++]=192|n>>>6,a[l++]=128|63&n):65536>n?(a[l++]=224|n>>>12,a[l++]=128|63&n>>>6,a[l++]=128|63&n):(a[l++]=240|n>>>18,a[l++]=128|63&n>>>12,a[l++]=128|63&n>>>6,a[l++]=128|63&n);return a},h=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return 0>r?t:0===r?t:r+u[e[r]]>t?r:t},m=function(e){var t=e.length,r=Array(2*t),a,n,o,d;for(n=0,a=0;a<t;){if(o=e[a++],128>o){r[n++]=o;continue}if(d=u[o],4<d){r[n++]=65533,a+=d-1;continue}for(o&=2===d?31:3===d?15:7;1<d&&a<t;)o=o<<6|63&e[a++],d--;if(1<d){r[n++]=65533;continue}65536>o?r[n++]=o:(o-=65536,r[n++]=55296|1023&o>>10,r[n++]=56320|1023&o)}return r.length!==n&&(r.subarray?r=r.subarray(0,n):r.length=n),s.applyFromCharCode(r)};r.utf8encode=function(e){return o.nodebuffer?d.newBufferFrom(e,"utf-8"):p(e)},r.utf8decode=function(e){return o.nodebuffer?s.transformTo("nodebuffer",e).toString("utf-8"):(e=s.transformTo(o.uint8array?"uint8array":"array",e),m(e))},s.inherits(a,l),a.prototype.processChunk=function(e){var t=s.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var a=t;t=new Uint8Array(a.length+this.leftOver.length),t.set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var n=h(t),i=t;n!==t.length&&(o.uint8array?(i=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(i=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:r.utf8decode(i),meta:e.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=a,s.inherits(n,l),n.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=n},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,a,n){"use strict";function s(e){var t=null;return t=u.uint8array?new Uint8Array(e.length):Array(e.length),o(e,t)}function i(e){return e}function o(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}function d(e){var t=65536,r=n.getTypeOf(e),a=!0;if("uint8array"===r?a=_.applyCanBeUsed.uint8array:"nodebuffer"===r&&(a=_.applyCanBeUsed.nodebuffer),a)for(;1<t;)try{return _.stringifyByChunk(e,r,t)}catch(r){t=Math.floor(t/2)}return _.stringifyByChar(e)}function l(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var u=r("./support"),c=r("./base64"),p=r("./nodejsUtils"),h=r("set-immediate-shim"),m=r("./external");n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,a=new r;return a.append(e),a.getBlob(t)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(r,a,n){var s=[],i=0,o=r.length;if(o<=n)return t.apply(null,r);for(;i<o;)"array"===a||"nodebuffer"===a?s.push(t.apply(null,r.slice(i,e(i+n,o)))):s.push(t.apply(null,r.subarray(i,e(i+n,o)))),i+=n;return s.join("")},stringifyByChar:function(e){for(var r="",a=0;a<e.length;a++)r+=t(e[a]);return r},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&1===t.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&1===t.apply(null,p.allocBuffer(1)).length}catch(t){return!1}}()}};n.applyFromCharCode=d;var f={};f.string={string:i,array:function(e){return o(e,Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:function(e){return o(e,p.allocBuffer(e.length))}},f.array={string:d,array:i,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return p.newBufferFrom(e)}},f.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return l(new Uint8Array(e),Array(e.byteLength))},arraybuffer:i,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return p.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:d,array:function(e){return l(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:i,nodebuffer:function(e){return p.newBufferFrom(e)}},f.nodebuffer={string:d,array:function(e){return l(e,Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:i},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var r=n.getTypeOf(t),a=f[r][e](t);return a},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":u.nodebuffer&&p.isBuffer(e)?"nodebuffer":u.uint8array&&e instanceof Uint8Array?"uint8array":u.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){var t=u[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t="",r,a;for(a=0;a<(e||"").length;a++)r=e.charCodeAt(a),t+="\\x"+(16>r?"0":"")+r.toString(16).toUpperCase();return t},n.delay=function(e,t,r){h(function(){e.apply(r||null,t||[])})},n.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r},n.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])arguments[t].hasOwnProperty(r)&&"undefined"==typeof e[r]&&(e[r]=arguments[t][r]);return e},n.prepareContent=function(e,t,r,a,i){var o=m.Promise.resolve(t).then(function(e){var t=u.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)));return t&&"undefined"!=typeof FileReader?new m.Promise(function(t,r){var a=new FileReader;a.onload=function(r){t(r.target.result)},a.onerror=function(t){r(t.target.error)},a.readAsArrayBuffer(e)}):e});return o.then(function(t){var o=n.getTypeOf(t);return o?("arraybuffer"===o?t=n.transformTo("uint8array",t):"string"===o&&(i?t=c.decode(t):r&&!0!==a&&(t=s(t))),t):m.Promise.reject(new Error("Can't read the data of '"+e+"'. 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,t){"use strict";function r(e){this.files=[],this.loadOptions=e}var a=e("./reader/readerFor"),n=e("./utils"),s=e("./signature"),i=e("./zipEntry"),o=e("./utf8"),d=e("./support");r.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(t)+", expected "+n.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var a=this.reader.readString(4);return this.reader.setIndex(r),a===t},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=d.uint8array?"uint8array":"array",r=n.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t,r,a;0<e;)t=this.reader.readInt(2),r=this.reader.readInt(4),a=this.reader.readData(r),this.zip64ExtensibleData[t]={id:t,length:r,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(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)e=new i({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length)if(0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length);else;},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(0>e){var t=!this.isSignature(0,s.LOCAL_FILE_HEADER);if(t)throw 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");else throw new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),0>e)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),0>this.relativeOffsetEndOfZip64CentralDir))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var a=this.centralDirOffset+this.centralDirSize;this.zip64&&(a+=20,a+=12+this.zip64EndOfCentralSize);var i=r-a;if(0<i)this.isSignature(r,s.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(0>i)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=a(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=r},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t){"use strict";function r(e,t){this.options=e,this.loadOptions=t}var a=e("./reader/readerFor"),n=e("./utils"),s=e("./compressedObject"),i=e("./crc32"),o=e("./utf8"),d=e("./compressions"),l=e("./support"),u=function(e){for(var t in d)if(d.hasOwnProperty(t)&&d[t].magic===e)return d[t];return null};r.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=u(this.compressionMethod),null===t)throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=65535&this.externalFileAttributes>>16),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=a(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,a,n;for(this.extraFields||(this.extraFields={});e.index<t;)r=e.readInt(2),a=e.readInt(2),n=e.readData(a),this.extraFields[r]={id:r,length:a,value:n}},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=n.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var a=this.findExtraFieldUnicodeComment();if(null!==a)this.fileCommentStr=a;else{var s=n.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=a(e.value);return 1===t.readInt(1)?i(this.fileName)===t.readInt(4)?o.utf8decode(t.readData(e.length-5)):null:null}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=a(e.value);return 1===t.readInt(1)?i(this.fileComment)===t.readInt(4)?o.utf8decode(t.readData(e.length-5)):null:null}return null}},t.exports=r},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t){"use strict";var r=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),n=e("./utf8"),s=e("./compressedObject"),o=e("./stream/GenericWorker"),d=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};d.prototype={internalStream:function(e){var t=null,a="string";try{if(!e)throw new Error("No output type specified.");a=e.toLowerCase();var s="string"===a||"text"===a;("binarystring"===a||"text"===a)&&(a="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!s&&(t=t.pipe(new n.Utf8EncodeWorker)),!i&&s&&(t=t.pipe(new n.Utf8DecodeWorker))}catch(r){t=new o("error"),t.error(r)}return new r(t,a,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new n.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof o?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<l.length;c++)d.prototype[l[c]]=u;t.exports=d},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t){(function(e){"use strict";function r(){c=!0;for(var e=u.length,t,r;e;){for(r=u,u=[],t=-1;++t<e;)r[t]();e=u.length}c=!1}function a(e){1!==u.push(e)||c||s()}var n=e.MutationObserver||e.WebKitMutationObserver,s;if(n){var i=0,o=new n(r),d=e.document.createTextNode("");o.observe(d,{characterData:!0}),s=function(){d.data=i=++i%2}}else if(!e.setImmediate&&"undefined"!=typeof e.MessageChannel){var l=new e.MessageChannel;l.port1.onmessage=r,s=function(){l.port2.postMessage(0)}}else s="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){r(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(r,0)};var u=[],c;t.exports=a}).call(this,"undefined"==typeof global?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:global)},{}],37:[function(e,t){"use strict";function r(){}function a(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,e!==r&&d(this,e)}function n(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function s(t,e,r){i(function(){var a;try{a=e(r)}catch(r){return u.reject(t,r)}a===t?u.reject(t,new TypeError("Cannot resolve promise with itself")):u.resolve(t,a)})}function o(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){function r(t){n||(n=!0,u.reject(e,t))}function a(t){n||(n=!0,u.resolve(e,t))}var n=!1,s=l(function(){t(a,r)});"error"===s.status&&r(s.value)}function l(e,t){var r={};try{r.value=e(t),r.status="success"}catch(t){r.status="error",r.value=t}return r}var i=e("immediate"),u={},c=["REJECTED"],p=["FULFILLED"],h=["PENDING"];t.exports=a,a.prototype["finally"]=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){if("function"!=typeof e&&this.state===p||"function"!=typeof t&&this.state===c)return this;var a=new this.constructor(r);if(this.state!==h){var i=this.state===p?e:t;s(a,i,this.outcome)}else this.queue.push(new n(a,e,t));return a},n.prototype.callFulfilled=function(e){u.resolve(this.promise,e)},n.prototype.otherCallFulfilled=function(e){s(this.promise,this.onFulfilled,e)},n.prototype.callRejected=function(e){u.reject(this.promise,e)},n.prototype.otherCallRejected=function(e){s(this.promise,this.onRejected,e)},u.resolve=function(e,t){var r=l(o,t);if("error"===r.status)return u.reject(e,r.value);var a=r.value;if(a)d(e,a);else{e.state=p,e.outcome=t;for(var n=-1,s=e.queue.length;++n<s;)e.queue[n].callFulfilled(t)}return e},u.reject=function(e,t){e.state=c,e.outcome=t;for(var r=-1,a=e.queue.length;++r<a;)e.queue[r].callRejected(t);return e},a.resolve=function(e){return e instanceof this?e:u.resolve(new this(r),e)},a.reject=function(e){var t=new this(r);return u.reject(t,e)},a.all=function(e){function t(e,t){function r(e){o[t]=e,++d!==n||s||(s=!0,u.resolve(c,o))}a.resolve(e).then(r,function(e){s||(s=!0,u.reject(c,e))})}var a=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,s=!1;if(!n)return this.resolve([]);for(var o=Array(n),d=0,l=-1,c=new this(r);++l<n;)t(e[l],l);return c},a.race=function(e){function t(e){a.resolve(e).then(function(e){s||(s=!0,u.resolve(d,e))},function(e){s||(s=!0,u.reject(d,e))})}var a=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,s=!1;if(!n)return this.resolve([]);for(var o=-1,d=new this(r);++o<n;)t(e[o]);return d}},{immediate:36}],38:[function(e,t){"use strict";var r=e("./lib/utils/common").assign,a=e("./lib/deflate"),n=e("./lib/inflate"),s=e("./lib/zlib/constants"),i={};r(i,a,n,s),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){"use strict";function a(e){if(!(this instanceof a))return new a(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&16>t.windowBits&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=s.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(d[r]);if(t.header&&s.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=s.deflateSetDictionary(this.strm,n),0!==r)throw new Error(d[r]);this._dict_set=!0}}function n(e,t){var r=new a(t);if(r.push(e,!0),r.err)throw r.msg||d[r.err];return r.result}var s=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),d=e("./zlib/messages"),l=e("./zlib/zstream"),u=Object.prototype.toString;a.prototype.push=function(e,t){var r=this.strm,a=this.options.chunkSize,n,d;if(this.ended)return!1;d=t===~~t?t:!0===t?4:0,r.input="string"==typeof e?o.string2buf(e):"[object ArrayBuffer]"===u.call(e)?new Uint8Array(e):e,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new i.Buf8(a),r.next_out=0,r.avail_out=a),n=s.deflate(r,d),1!==n&&0!==n)return this.onEnd(n),this.ended=!0,!1;(0===r.avail_out||0===r.avail_in&&(4===d||2===d))&&("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(r.output,r.next_out))):this.onData(i.shrinkBuf(r.output,r.next_out)))}while((0<r.avail_in||0===r.avail_out)&&1!==n);return 4===d?(n=s.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==d||(this.onEnd(0),r.avail_out=0,!0)},a.prototype.onData=function(e){this.chunks.push(e)},a.prototype.onEnd=function(e){e===0&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=a,r.deflate=n,r.deflateRaw=function(e,t){return t=t||{},t.raw=!0,n(e,t)},r.gzip=function(e,t){return t=t||{},t.gzip=!0,n(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){"use strict";function a(e){if(!(this instanceof a))return new a(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&16>t.windowBits&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),0<=t.windowBits&&16>t.windowBits&&!(e&&e.windowBits)&&(t.windowBits+=32),15<t.windowBits&&48>t.windowBits&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=s.inflateInit2(this.strm,t.windowBits);if(r!==d.Z_OK)throw new Error(l[r]);this.header=new c,s.inflateGetHeader(this.strm,this.header)}function n(e,t){var r=new a(t);if(r.push(e,!0),r.err)throw r.msg||l[r.err];return r.result}var s=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),d=e("./zlib/constants"),l=e("./zlib/messages"),u=e("./zlib/zstream"),c=e("./zlib/gzheader"),p=Object.prototype.toString;a.prototype.push=function(e,t){var r=this.strm,a=this.options.chunkSize,n=this.options.dictionary,l=!1,u,c,h,m,_,f;if(this.ended)return!1;c=t===~~t?t:!0===t?d.Z_FINISH:d.Z_NO_FLUSH,r.input="string"==typeof e?o.binstring2buf(e):"[object ArrayBuffer]"===p.call(e)?new Uint8Array(e):e,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new i.Buf8(a),r.next_out=0,r.avail_out=a),u=s.inflate(r,d.Z_NO_FLUSH),u===d.Z_NEED_DICT&&n&&(f="string"==typeof n?o.string2buf(n):"[object ArrayBuffer]"===p.call(n)?new Uint8Array(n):n,u=s.inflateSetDictionary(this.strm,f)),u===d.Z_BUF_ERROR&&!0==l&&(u=d.Z_OK,l=!1),u!==d.Z_STREAM_END&&u!==d.Z_OK)return this.onEnd(u),this.ended=!0,!1;r.next_out&&(0===r.avail_out||u===d.Z_STREAM_END||0===r.avail_in&&(c===d.Z_FINISH||c===d.Z_SYNC_FLUSH))&&("string"===this.options.to?(h=o.utf8border(r.output,r.next_out),m=r.next_out-h,_=o.buf2string(r.output,h),r.next_out=m,r.avail_out=a-m,m&&i.arraySet(r.output,r.output,h,m,0),this.onData(_)):this.onData(i.shrinkBuf(r.output,r.next_out))),0===r.avail_in&&0===r.avail_out&&(l=!0)}while((0<r.avail_in||0===r.avail_out)&&u!==d.Z_STREAM_END);return u===d.Z_STREAM_END&&(c=d.Z_FINISH),c===d.Z_FINISH?(u=s.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===d.Z_OK):c!==d.Z_SYNC_FLUSH||(this.onEnd(d.Z_OK),r.avail_out=0,!0)},a.prototype.onData=function(e){this.chunks.push(e)},a.prototype.onEnd=function(e){e===d.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=a,r.inflate=n,r.inflateRaw=function(e,t){return t=t||{},t.raw=!0,n(e,t)},r.ungzip=n},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){"use strict";var a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,r,a,n){if(t.subarray&&e.subarray)return void e.set(t.subarray(r,r+a),n);for(var s=0;s<a;s++)e[n+s]=t[r+s]},flattenChunks:function(e){var t,r,a,n,s,o;for(a=0,t=0,r=e.length;t<r;t++)a+=e[t].length;for(o=new Uint8Array(a),n=0,(t=0,r=e.length);t<r;t++)s=e[t],o.set(s,n),n+=s.length;return o}},s={arraySet:function(e,t,r,a,n){for(var s=0;s<a;s++)e[n+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,n)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s))},r.setTyped(a)},{}],42:[function(e,r,a){"use strict";function n(e,r){if(65537>r&&(e.subarray&&d||!e.subarray&&o))return t.apply(null,s.shrinkBuf(e,r));for(var a="",n=0;n<r;n++)a+=t(e[n]);return a}var s=e("./common"),o=!0,d=!0;try{t.apply(null,[0])}catch(e){o=!1}try{t.apply(null,new Uint8Array(1))}catch(e){d=!1}for(var l=new s.Buf8(256),i=0;256>i;i++)l[i]=252<=i?6:248<=i?5:240<=i?4:224<=i?3:192<=i?2:1;l[254]=l[254]=1,a.string2buf=function(e){var t=e.length,r=0,a,n,o,d,l;for(d=0;d<t;d++)n=e.charCodeAt(d),55296==(64512&n)&&d+1<t&&(o=e.charCodeAt(d+1),56320==(64512&o)&&(n=65536+(n-55296<<10)+(o-56320),d++)),r+=128>n?1:2048>n?2:65536>n?3:4;for(a=new s.Buf8(r),l=0,d=0;l<r;d++)n=e.charCodeAt(d),55296==(64512&n)&&d+1<t&&(o=e.charCodeAt(d+1),56320==(64512&o)&&(n=65536+(n-55296<<10)+(o-56320),d++)),128>n?a[l++]=n:2048>n?(a[l++]=192|n>>>6,a[l++]=128|63&n):65536>n?(a[l++]=224|n>>>12,a[l++]=128|63&n>>>6,a[l++]=128|63&n):(a[l++]=240|n>>>18,a[l++]=128|63&n>>>12,a[l++]=128|63&n>>>6,a[l++]=128|63&n);return a},a.buf2binstring=function(e){return n(e,e.length)},a.binstring2buf=function(e){for(var t=new s.Buf8(e.length),r=0,a=t.length;r<a;r++)t[r]=e.charCodeAt(r);return t},a.buf2string=function(e,t){var r=t||e.length,a=Array(2*r),s,o,d,u;for(o=0,s=0;s<r;){if(d=e[s++],128>d){a[o++]=d;continue}if(u=l[d],4<u){a[o++]=65533,s+=u-1;continue}for(d&=2===u?31:3===u?15:7;1<u&&s<r;)d=d<<6|63&e[s++],u--;if(1<u){a[o++]=65533;continue}65536>d?a[o++]=d:(d-=65536,a[o++]=55296|1023&d>>10,a[o++]=56320|1023&d)}return n(a,o)},a.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return 0>r?t:0===r?t:r+l[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t){"use strict";t.exports=function(e,t,r,a){for(var s=0|65535&e,i=0|65535&e>>>16,o=0;0!==r;){o=2e3<r?2e3:r,r-=o;do s=0|s+t[a++],i=0|i+s;while(--o);s%=65521,i%=65521}return 0|(s|i<<16)}},{}],44:[function(e,t){"use strict";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}},{}],45:[function(e,t){"use strict";var r=function(){for(var e=[],t=0,r;256>t;t++){r=t;for(var a=0;8>a;a++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}();t.exports=function(e,t,a,n){e^=-1;for(var s=n;s<n+a;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){"use strict";function a(e,t){return e.msg=I[t],t}function n(e){return(e<<1)-(4<e?9:0)}function i(e){for(var t=e.length;0<=--t;)e[t]=0}function o(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out);0===r||(z.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 d(e,t){S._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,o(e.strm)}function l(e,t){e.pending_buf[e.pending++]=t}function u(e,t){e.pending_buf[e.pending++]=255&t>>>8,e.pending_buf[e.pending++]=255&t}function c(e,t,r,a){var n=e.avail_in;return(n>a&&(n=a),0===n)?0:(e.avail_in-=n,z.arraySet(t,e.input,e.next_in,n,r),1===e.state.wrap?e.adler=C(e.adler,t,n,r):2===e.state.wrap&&(e.adler=E(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function p(e,t){var r=e.max_chain_length,a=e.strstart,n=e.prev_length,s=e.nice_match,i=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,o=e.window,d=e.w_mask,l=e.prev,u=e.strstart+258,c=o[a+n-1],p=o[a+n],h,m;e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(h=t,o[h+n]!==p||o[h+n-1]!==c||o[h]!==o[a]||o[++h]!==o[a+1])continue;a+=2,h++;do;while(o[++a]===o[++h]&&o[++a]===o[++h]&&o[++a]===o[++h]&&o[++a]===o[++h]&&o[++a]===o[++h]&&o[++a]===o[++h]&&o[++a]===o[++h]&&o[++a]===o[++h]&&a<u);if(m=258-(u-a),a=u-258,m>n){if(e.match_start=t,n=m,m>=s)break;c=o[a+n-1],p=o[a+n]}}while((t=l[t&d])>i&&0!=--r);return n<=e.lookahead?n:e.lookahead}function h(e){var t=e.w_size,r,a,s,i,o;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-262)){z.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,a=e.hash_size,r=a;do s=e.head[--r],e.head[r]=s>=t?s-t:0;while(--a);a=t,r=a;do s=e.prev[--r],e.prev[r]=s>=t?s-t:0;while(--a);i+=t}if(0===e.strm.avail_in)break;if(a=c(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=a,3<=e.lookahead+e.insert)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(3>e.lookahead+e.insert)););}while(262>e.lookahead&&0!==e.strm.avail_in)}function s(e,t){for(var r,a;;){if(262>e.lookahead){if(h(e),262>e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=p(e,r)),!(3<=e.match_length))a=S._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;else if(a=S._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;if(a&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=2>e.strstart?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function m(e,t){for(var r,a,n;;){if(262>e.lookahead){if(h(e),262>e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=p(e,r),5>=e.match_length&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),3<=e.prev_length&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-3,a=S._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,a&&(d(e,!1),0===e.strm.avail_out))return 1}else if(!e.match_available)e.match_available=1,e.strstart++,e.lookahead--;else if(a=S._tr_tally(e,0,e.window[e.strstart-1]),a&&d(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}return e.match_available&&(a=S._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=2>e.strstart?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function _(e,t){for(var r=e.window,a,n,s,i;;){if(258>=e.lookahead){if(h(e),258>=e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(s=e.strstart-1,n=r[s],n===r[++s]&&n===r[++s]&&n===r[++s])){i=e.strstart+258;do;while(n===r[++s]&&n===r[++s]&&n===r[++s]&&n===r[++s]&&n===r[++s]&&n===r[++s]&&n===r[++s]&&n===r[++s]&&s<i);e.match_length=258-(i-s),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(3<=e.match_length?(a=S._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(a=S._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),a&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function f(e,t){for(var r;;){if(0===e.lookahead&&(h(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=S._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function g(e,t,r,a,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=a,this.func=n}function b(e){e.window_size=2*e.w_size,i(e.head),e.max_lazy_match=O[e.level].max_lazy,e.good_match=O[e.level].good_length,e.nice_match=O[e.level].nice_length,e.max_chain_length=O[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}function y(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new z.Buf16(1146),this.dyn_dtree=new z.Buf16(122),this.bl_tree=new z.Buf16(78),i(this.dyn_ltree),i(this.dyn_dtree),i(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new z.Buf16(16),this.heap=new z.Buf16(573),i(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new z.Buf16(573),i(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 k(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,t=e.state,t.pending=0,t.pending_out=0,0>t.wrap&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,S._tr_init(t),0):a(e,-2)}function x(e){var t=k(e);return 0===t&&b(e.state),t}function w(e,t,r,n,i,o){if(!e)return -2;var d=1;if(-1===t&&(t=6),0>n?(d=0,n=-n):15<n&&(d=2,n-=16),1>i||9<i||8!==r||8>n||15<n||0>t||9<t||0>o||4<o)return a(e,-2);8===n&&(n=9);var l=new y;return e.state=l,l.strm=e,l.wrap=d,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new z.Buf8(2*l.w_size),l.head=new z.Buf16(l.hash_size),l.prev=new z.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new z.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=r,x(e)}function v(e,t){var r,d,c,p;if(!e||!e.state||5<t||0>t)return e?a(e,-2):-2;if(d=e.state,!e.output||!e.input&&0!==e.avail_in||666===d.status&&4!==t)return a(e,0===e.avail_out?-5:-2);if(d.strm=e,r=d.last_flush,d.last_flush=t,42===d.status)if(2===d.wrap)e.adler=0,l(d,31),l(d,139),l(d,8),d.gzhead?(l(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),l(d,255&d.gzhead.time),l(d,255&d.gzhead.time>>8),l(d,255&d.gzhead.time>>16),l(d,255&d.gzhead.time>>24),l(d,9===d.level?2:2<=d.strategy||2>d.level?4:0),l(d,255&d.gzhead.os),d.gzhead.extra&&d.gzhead.extra.length&&(l(d,255&d.gzhead.extra.length),l(d,255&d.gzhead.extra.length>>8)),d.gzhead.hcrc&&(e.adler=E(e.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=69):(l(d,0),l(d,0),l(d,0),l(d,0),l(d,0),l(d,9===d.level?2:2<=d.strategy||2>d.level?4:0),l(d,3),d.status=113);else{var h=8+(d.w_bits-8<<4)<<8,m=-1;m=2<=d.strategy||2>d.level?0:6>d.level?1:6===d.level?2:3,h|=m<<6,0!==d.strstart&&(h|=32),h+=31-h%31,d.status=113,u(d,h),0!==d.strstart&&(u(d,e.adler>>>16),u(d,65535&e.adler)),e.adler=1}if(69===d.status)if(d.gzhead.extra){for(c=d.pending;d.gzindex<(65535&d.gzhead.extra.length)&&!(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>c&&(e.adler=E(e.adler,d.pending_buf,d.pending-c,c)),o(e),c=d.pending,d.pending===d.pending_buf_size));)l(d,255&d.gzhead.extra[d.gzindex]),d.gzindex++;d.gzhead.hcrc&&d.pending>c&&(e.adler=E(e.adler,d.pending_buf,d.pending-c,c)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=73)}else d.status=73;if(73===d.status)if(d.gzhead.name){c=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>c&&(e.adler=E(e.adler,d.pending_buf,d.pending-c,c)),o(e),c=d.pending,d.pending===d.pending_buf_size)){p=1;break}p=d.gzindex<d.gzhead.name.length?255&d.gzhead.name.charCodeAt(d.gzindex++):0,l(d,p)}while(0!==p);d.gzhead.hcrc&&d.pending>c&&(e.adler=E(e.adler,d.pending_buf,d.pending-c,c)),0===p&&(d.gzindex=0,d.status=91)}else d.status=91;if(91===d.status)if(d.gzhead.comment){c=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>c&&(e.adler=E(e.adler,d.pending_buf,d.pending-c,c)),o(e),c=d.pending,d.pending===d.pending_buf_size)){p=1;break}p=d.gzindex<d.gzhead.comment.length?255&d.gzhead.comment.charCodeAt(d.gzindex++):0,l(d,p)}while(0!==p);d.gzhead.hcrc&&d.pending>c&&(e.adler=E(e.adler,d.pending_buf,d.pending-c,c)),0===p&&(d.status=103)}else d.status=103;if(103===d.status&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&o(e),d.pending+2<=d.pending_buf_size&&(l(d,255&e.adler),l(d,255&e.adler>>8),e.adler=0,d.status=113)):d.status=113),0!==d.pending){if(o(e),0===e.avail_out)return d.last_flush=-1,0;}else if(0===e.avail_in&&n(t)<=n(r)&&4!==t)return a(e,-5);if(666===d.status&&0!==e.avail_in)return a(e,-5);if(0!==e.avail_in||0!==d.lookahead||0!==t&&666!==d.status){var g=2===d.strategy?f(d,t):3===d.strategy?_(d,t):O[d.level].func(d,t);if((3===g||4===g)&&(d.status=666),1===g||3===g)return 0===e.avail_out&&(d.last_flush=-1),0;if(2===g&&(1===t?S._tr_align(d):5!==t&&(S._tr_stored_block(d,0,0,!1),3===t&&(i(d.head),0===d.lookahead&&(d.strstart=0,d.block_start=0,d.insert=0))),o(e),0===e.avail_out))return d.last_flush=-1,0}return 4===t?0>=d.wrap?1:(2===d.wrap?(l(d,255&e.adler),l(d,255&e.adler>>8),l(d,255&e.adler>>16),l(d,255&e.adler>>24),l(d,255&e.total_in),l(d,255&e.total_in>>8),l(d,255&e.total_in>>16),l(d,255&e.total_in>>24)):(u(d,e.adler>>>16),u(d,65535&e.adler)),o(e),0<d.wrap&&(d.wrap=-d.wrap),0===d.pending?1:0):0}var z=e("../utils/common"),S=e("./trees"),C=e("./adler32"),E=e("./crc32"),I=e("./messages"),O;O=[new g(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(1>=e.lookahead){if(h(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var a=e.block_start+r;if((0===e.strstart||e.strstart>=a)&&(e.lookahead=e.strstart-a,e.strstart=a,d(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.strstart>e.block_start&&(d(e,!1),0===e.strm.avail_out)?1:1}),new g(4,4,8,4,s),new g(4,5,16,8,s),new g(4,6,32,32,s),new g(4,4,16,16,m),new g(8,16,32,32,m),new g(8,16,128,128,m),new g(8,32,128,256,m),new g(32,128,258,1024,m),new g(32,258,258,4096,m)],r.deflateInit=function(e,t){return w(e,t,8,15,8,0)},r.deflateInit2=w,r.deflateReset=x,r.deflateResetKeep=k,r.deflateSetHeader=function(e,t){return e&&e.state?2===e.state.wrap?(e.state.gzhead=t,0):-2:-2},r.deflate=v,r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status,42!==t&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t)?a(e,-2):(e.state=null,113===t?a(e,-3):0):-2},r.deflateSetDictionary=function(e,t){var r=t.length,a,o,d,l,u,c,p,m;if(!e||!e.state)return -2;if(a=e.state,l=a.wrap,2===l||1===l&&42!==a.status||a.lookahead)return -2;for(1===l&&(e.adler=C(e.adler,t,r,0)),a.wrap=0,r>=a.w_size&&(0===l&&(i(a.head),a.strstart=0,a.block_start=0,a.insert=0),m=new z.Buf8(a.w_size),z.arraySet(m,t,r-a.w_size,a.w_size,0),t=m,r=a.w_size),u=e.avail_in,c=e.next_in,p=e.input,e.avail_in=r,e.next_in=0,e.input=t,h(a);3<=a.lookahead;){o=a.strstart,d=a.lookahead-2;do a.ins_h=(a.ins_h<<a.hash_shift^a.window[o+3-1])&a.hash_mask,a.prev[o&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=o,o++;while(--d);a.strstart=o,a.lookahead=2,h(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=2,a.match_available=0,e.next_in=c,e.input=p,e.avail_in=u,a.wrap=l,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t){"use strict";t.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,t){"use strict";t.exports=function(e,t){var r,a,n,s,i,o,d,l,u,c,p,h,m,_,f,g,b,y,k,x,w,v,z,S,C;r=e.state,a=e.next_in,S=e.input,n=a+(e.avail_in-5),s=e.next_out,C=e.output,i=s-(t-e.avail_out),o=s+(e.avail_out-257),d=r.dmax,l=r.wsize,u=r.whave,c=r.wnext,p=r.window,h=r.hold,m=r.bits,_=r.lencode,f=r.distcode,g=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;top:do{15>m&&(h+=S[a++]<<m,m+=8,h+=S[a++]<<m,m+=8),y=_[h&g];dolen:for(;;){if(k=y>>>24,h>>>=k,m-=k,k=255&y>>>16,0===k)C[s++]=65535&y;else if(16&k){x=65535&y,k&=15,k&&(m<k&&(h+=S[a++]<<m,m+=8),x+=h&(1<<k)-1,h>>>=k,m-=k),15>m&&(h+=S[a++]<<m,m+=8,h+=S[a++]<<m,m+=8),y=f[h&b];dodist:for(;;){if(k=y>>>24,h>>>=k,m-=k,k=255&y>>>16,16&k){if(w=65535&y,k&=15,m<k&&(h+=S[a++]<<m,m+=8,m<k&&(h+=S[a++]<<m,m+=8)),w+=h&(1<<k)-1,w>d){e.msg="invalid distance too far back",r.mode=30;break top}if(h>>>=k,m-=k,k=s-i,w>k){if(k=w-k,k>u&&r.sane){e.msg="invalid distance too far back",r.mode=30;break top}if(v=0,z=p,0===c){if(v+=l-k,k<x){x-=k;do C[s++]=p[v++];while(--k);v=s-w,z=C}}else if(c<k){if(v+=l+c-k,k-=c,k<x){x-=k;do C[s++]=p[v++];while(--k);if(v=0,c<x){k=c,x-=k;do C[s++]=p[v++];while(--k);v=s-w,z=C}}}else if(v+=c-k,k<x){x-=k;do C[s++]=p[v++];while(--k);v=s-w,z=C}for(;2<x;)C[s++]=z[v++],C[s++]=z[v++],C[s++]=z[v++],x-=3;x&&(C[s++]=z[v++],1<x&&(C[s++]=z[v++]))}else{v=s-w;do C[s++]=C[v++],C[s++]=C[v++],C[s++]=C[v++],x-=3;while(2<x);x&&(C[s++]=C[v++],1<x&&(C[s++]=C[v++]))}}else if(0==(64&k)){y=f[(65535&y)+(h&(1<<k)-1)];continue dodist}else{e.msg="invalid distance code",r.mode=30;break top}break}}else if(0==(64&k)){y=_[(65535&y)+(h&(1<<k)-1)];continue dolen}else if(32&k){r.mode=12;break top}else{e.msg="invalid literal/length code",r.mode=30;break top}break}}while(a<n&&s<o);return x=m>>3,a-=x,m-=x<<3,h&=(1<<m)-1,e.next_in=a,e.next_out=s,e.avail_in=a<n?5+(n-a):5-(a-n),e.avail_out=s<o?257+(o-s):257-(s-o),r.hold=h,void(r.bits=m)}},{}],49:[function(e,r,a){"use strict";function s(e){return(255&e>>>24)+(65280&e>>>8)+((65280&e)<<8)+((255&e)<<24)}function n(){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 p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function i(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new p.Buf32(852),t.distcode=t.distdyn=new p.Buf32(592),t.sane=1,t.back=-1,0):-2}function o(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,i(e)):-2}function d(e,t){var r,a;return e&&e.state?(a=e.state,0>t?(r=0,t=-t):(r=(t>>4)+1,48>t&&(t&=15)),t&&(8>t||15<t))?-2:(null!==a.window&&a.wbits!==t&&(a.window=null),a.wrap=r,a.wbits=t,o(e)):-2}function l(e,t){var r,a;return e?(a=new n,e.state=a,a.window=null,r=d(e,t),0!==r&&(e.state=null),r):-2}function u(e){if(g){var t;for(b=new p.Buf32(512),y=new p.Buf32(32),t=0;144>t;)e.lens[t++]=8;for(;256>t;)e.lens[t++]=9;for(;280>t;)e.lens[t++]=7;for(;288>t;)e.lens[t++]=8;for(f(1,e.lens,0,288,b,0,e.work,{bits:9}),t=0;32>t;)e.lens[t++]=5;f(2,e.lens,0,32,y,0,e.work,{bits:5}),g=!1}e.lencode=b,e.lenbits=9,e.distcode=y,e.distbits=5}function c(e,t,r,a){var n=e.state,s;return null===n.window&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new p.Buf8(n.wsize)),a>=n.wsize?(p.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(s=n.wsize-n.wnext,s>a&&(s=a),p.arraySet(n.window,t,r-a,s,n.wnext),a-=s,a?(p.arraySet(n.window,t,r-a,a,0),n.wnext=a,n.whave=n.wsize):(n.wnext+=s,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=s))),0}var p=e("../utils/common"),h=e("./adler32"),m=e("./crc32"),_=e("./inffast"),f=e("./inftrees"),g=!0,b,y;a.inflateReset=o,a.inflateReset2=d,a.inflateResetKeep=i,a.inflateInit=function(e){return l(e,15)},a.inflateInit2=l,a.inflate=function(e,r){var a=0,i=new p.Buf8(4),o=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d,l,g,b,y,k,x,w,v,z,S,C,E,I,O,A,B,R,T,D,F,N,P,L;if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return -2;d=e.state,12===d.mode&&(d.mode=13),y=e.next_out,g=e.output,x=e.avail_out,b=e.next_in,l=e.input,k=e.avail_in,w=d.hold,v=d.bits,z=k,S=x,N=0;inf_leave:for(;;)switch(d.mode){case 1:if(0===d.wrap){d.mode=13;break}for(;16>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if(2&d.wrap&&35615===w){d.check=0,i[0]=255&w,i[1]=255&w>>>8,d.check=m(d.check,i,2,0),w=0,v=0,d.mode=2;break}if(d.flags=0,d.head&&(d.head.done=!1),!(1&d.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",d.mode=30;break}if(8!==(15&w)){e.msg="unknown compression method",d.mode=30;break}if(w>>>=4,v-=4,F=(15&w)+8,0===d.wbits)d.wbits=F;else if(F>d.wbits){e.msg="invalid window size",d.mode=30;break}d.dmax=1<<F,e.adler=d.check=1,d.mode=512&w?10:12,w=0,v=0;break;case 2:for(;16>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if(d.flags=w,8!==(255&d.flags)){e.msg="unknown compression method",d.mode=30;break}if(57344&d.flags){e.msg="unknown header flags set",d.mode=30;break}d.head&&(d.head.text=1&w>>8),512&d.flags&&(i[0]=255&w,i[1]=255&w>>>8,d.check=m(d.check,i,2,0)),w=0,v=0,d.mode=3;case 3:for(;32>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}d.head&&(d.head.time=w),512&d.flags&&(i[0]=255&w,i[1]=255&w>>>8,i[2]=255&w>>>16,i[3]=255&w>>>24,d.check=m(d.check,i,4,0)),w=0,v=0,d.mode=4;case 4:for(;16>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}d.head&&(d.head.xflags=255&w,d.head.os=w>>8),512&d.flags&&(i[0]=255&w,i[1]=255&w>>>8,d.check=m(d.check,i,2,0)),w=0,v=0,d.mode=5;case 5:if(1024&d.flags){for(;16>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}d.length=w,d.head&&(d.head.extra_len=w),512&d.flags&&(i[0]=255&w,i[1]=255&w>>>8,d.check=m(d.check,i,2,0)),w=0,v=0}else d.head&&(d.head.extra=null);d.mode=6;case 6:if(1024&d.flags&&(C=d.length,C>k&&(C=k),C&&(d.head&&(F=d.head.extra_len-d.length,!d.head.extra&&(d.head.extra=Array(d.head.extra_len)),p.arraySet(d.head.extra,l,b,C,F)),512&d.flags&&(d.check=m(d.check,l,C,b)),k-=C,b+=C,d.length-=C),d.length))break inf_leave;d.length=0,d.mode=7;case 7:if(2048&d.flags){if(0===k)break inf_leave;C=0;do F=l[b+C++],d.head&&F&&65536>d.length&&(d.head.name+=t(F));while(F&&C<k);if(512&d.flags&&(d.check=m(d.check,l,C,b)),k-=C,b+=C,F)break inf_leave}else d.head&&(d.head.name=null);d.length=0,d.mode=8;case 8:if(4096&d.flags){if(0===k)break inf_leave;C=0;do F=l[b+C++],d.head&&F&&65536>d.length&&(d.head.comment+=t(F));while(F&&C<k);if(512&d.flags&&(d.check=m(d.check,l,C,b)),k-=C,b+=C,F)break inf_leave}else d.head&&(d.head.comment=null);d.mode=9;case 9:if(512&d.flags){for(;16>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if(w!==(65535&d.check)){e.msg="header crc mismatch",d.mode=30;break}w=0,v=0}d.head&&(d.head.hcrc=1&d.flags>>9,d.head.done=!0),e.adler=d.check=0,d.mode=12;break;case 10:for(;32>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}e.adler=d.check=s(w),w=0,v=0,d.mode=11;case 11:if(0===d.havedict)return e.next_out=y,e.avail_out=x,e.next_in=b,e.avail_in=k,d.hold=w,d.bits=v,2;e.adler=d.check=1,d.mode=12;case 12:if(5===r||6===r)break inf_leave;case 13:if(d.last){w>>>=7&v,v-=7&v,d.mode=27;break}for(;3>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}switch(d.last=1&w,w>>>=1,v-=1,3&w){case 0:d.mode=14;break;case 1:if(u(d),d.mode=20,6===r){w>>>=2,v-=2;break inf_leave}break;case 2:d.mode=17;break;case 3:e.msg="invalid block type",d.mode=30;}w>>>=2,v-=2;break;case 14:for(w>>>=7&v,v-=7&v;32>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if((65535&w)!=(65535^w>>>16)){e.msg="invalid stored block lengths",d.mode=30;break}if(d.length=65535&w,w=0,v=0,d.mode=15,6===r)break inf_leave;case 15:d.mode=16;case 16:if(C=d.length,C){if(C>k&&(C=k),C>x&&(C=x),0===C)break inf_leave;p.arraySet(g,l,b,C,y),k-=C,b+=C,x-=C,y+=C,d.length-=C;break}d.mode=12;break;case 17:for(;14>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if(d.nlen=(31&w)+257,w>>>=5,v-=5,d.ndist=(31&w)+1,w>>>=5,v-=5,d.ncode=(15&w)+4,w>>>=4,v-=4,286<d.nlen||30<d.ndist){e.msg="too many length or distance symbols",d.mode=30;break}d.have=0,d.mode=18;case 18:for(;d.have<d.ncode;){for(;3>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}d.lens[o[d.have++]]=7&w,w>>>=3,v-=3}for(;19>d.have;)d.lens[o[d.have++]]=0;if(d.lencode=d.lendyn,d.lenbits=7,P={bits:d.lenbits},N=f(0,d.lens,0,19,d.lencode,0,d.work,P),d.lenbits=P.bits,N){e.msg="invalid code lengths set",d.mode=30;break}d.have=0,d.mode=19;case 19:for(;d.have<d.nlen+d.ndist;){for(;;){if(a=d.lencode[w&(1<<d.lenbits)-1],O=a>>>24,A=255&a>>>16,B=65535&a,O<=v)break;if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if(16>B)w>>>=O,v-=O,d.lens[d.have++]=B;else{if(16===B){for(L=O+2;v<L;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if(w>>>=O,v-=O,0===d.have){e.msg="invalid bit length repeat",d.mode=30;break}F=d.lens[d.have-1],C=3+(3&w),w>>>=2,v-=2}else if(17===B){for(L=O+3;v<L;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}w>>>=O,v-=O,F=0,C=3+(7&w),w>>>=3,v-=3}else{for(L=O+7;v<L;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}w>>>=O,v-=O,F=0,C=11+(127&w),w>>>=7,v-=7}if(d.have+C>d.nlen+d.ndist){e.msg="invalid bit length repeat",d.mode=30;break}for(;C--;)d.lens[d.have++]=F}}if(30===d.mode)break;if(0===d.lens[256]){e.msg="invalid code -- missing end-of-block",d.mode=30;break}if(d.lenbits=9,P={bits:d.lenbits},N=f(1,d.lens,0,d.nlen,d.lencode,0,d.work,P),d.lenbits=P.bits,N){e.msg="invalid literal/lengths set",d.mode=30;break}if(d.distbits=6,d.distcode=d.distdyn,P={bits:d.distbits},N=f(2,d.lens,d.nlen,d.ndist,d.distcode,0,d.work,P),d.distbits=P.bits,N){e.msg="invalid distances set",d.mode=30;break}if(d.mode=20,6===r)break inf_leave;case 20:d.mode=21;case 21:if(6<=k&&258<=x){e.next_out=y,e.avail_out=x,e.next_in=b,e.avail_in=k,d.hold=w,d.bits=v,_(e,S),y=e.next_out,g=e.output,x=e.avail_out,b=e.next_in,l=e.input,k=e.avail_in,w=d.hold,v=d.bits,12===d.mode&&(d.back=-1);break}for(d.back=0;;){if(a=d.lencode[w&(1<<d.lenbits)-1],O=a>>>24,A=255&a>>>16,B=65535&a,O<=v)break;if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if(A&&0==(240&A)){for(R=O,T=A,D=B;;){if(a=d.lencode[D+((w&(1<<R+T)-1)>>R)],O=a>>>24,A=255&a>>>16,B=65535&a,R+O<=v)break;if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}w>>>=R,v-=R,d.back+=R}if(w>>>=O,v-=O,d.back+=O,d.length=B,0===A){d.mode=26;break}if(32&A){d.back=-1,d.mode=12;break}if(64&A){e.msg="invalid literal/length code",d.mode=30;break}d.extra=15&A,d.mode=22;case 22:if(d.extra){for(L=d.extra;v<L;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}d.length+=w&(1<<d.extra)-1,w>>>=d.extra,v-=d.extra,d.back+=d.extra}d.was=d.length,d.mode=23;case 23:for(;;){if(a=d.distcode[w&(1<<d.distbits)-1],O=a>>>24,A=255&a>>>16,B=65535&a,O<=v)break;if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if(0==(240&A)){for(R=O,T=A,D=B;;){if(a=d.distcode[D+((w&(1<<R+T)-1)>>R)],O=a>>>24,A=255&a>>>16,B=65535&a,R+O<=v)break;if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}w>>>=R,v-=R,d.back+=R}if(w>>>=O,v-=O,d.back+=O,64&A){e.msg="invalid distance code",d.mode=30;break}d.offset=B,d.extra=15&A,d.mode=24;case 24:if(d.extra){for(L=d.extra;v<L;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}d.offset+=w&(1<<d.extra)-1,w>>>=d.extra,v-=d.extra,d.back+=d.extra}if(d.offset>d.dmax){e.msg="invalid distance too far back",d.mode=30;break}d.mode=25;case 25:if(0===x)break inf_leave;if(C=S-x,d.offset>C){if(C=d.offset-C,C>d.whave&&d.sane){e.msg="invalid distance too far back",d.mode=30;break}C>d.wnext?(C-=d.wnext,E=d.wsize-C):E=d.wnext-C,C>d.length&&(C=d.length),I=d.window}else I=g,E=y-d.offset,C=d.length;C>x&&(C=x),x-=C,d.length-=C;do g[y++]=I[E++];while(--C);0===d.length&&(d.mode=21);break;case 26:if(0===x)break inf_leave;g[y++]=d.length,x--,d.mode=21;break;case 27:if(d.wrap){for(;32>v;){if(0===k)break inf_leave;k--,w|=l[b++]<<v,v+=8}if(S-=x,e.total_out+=S,d.total+=S,S&&(e.adler=d.check=d.flags?m(d.check,g,S,y-S):h(d.check,g,S,y-S)),S=x,(d.flags?w:s(w))!==d.check){e.msg="incorrect data check",d.mode=30;break}w=0,v=0}d.mode=28;case 28:if(d.wrap&&d.flags){for(;32>v;){if(0===k)break inf_leave;k--,w+=l[b++]<<v,v+=8}if(w!==(4294967295&d.total)){e.msg="incorrect length check",d.mode=30;break}w=0,v=0}d.mode=29;case 29:N=1;break inf_leave;case 30:N=-3;break inf_leave;case 31:return -4;case 32:default:return -2;}return(e.next_out=y,e.avail_out=x,e.next_in=b,e.avail_in=k,d.hold=w,d.bits=v,(d.wsize||S!==e.avail_out&&30>d.mode&&(27>d.mode||4!==r))&&c(e,e.output,e.next_out,S-e.avail_out))?(d.mode=31,-4):(z-=e.avail_in,S-=e.avail_out,e.total_in+=z,e.total_out+=S,d.total+=S,d.wrap&&S&&(e.adler=d.check=d.flags?m(d.check,g,S,e.next_out-S):h(d.check,g,S,e.next_out-S)),e.data_type=d.bits+(d.last?64:0)+(12===d.mode?128:0)+(20===d.mode||15===d.mode?256:0),(0===z&&0===S||4===r)&&0===N&&(N=-5),N)},a.inflateEnd=function(e){if(!e||!e.state)return -2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},a.inflateGetHeader=function(e,t){var r;return e&&e.state?(r=e.state,0==(2&r.wrap))?-2:(r.head=t,t.done=!1,0):-2},a.inflateSetDictionary=function(e,t){var r=t.length,a,n,s;return e&&e.state?(a=e.state,0!==a.wrap&&11!==a.mode)?-2:11===a.mode&&(n=1,n=h(n,t,r,0),n!==a.check)?-3:(s=c(e,t,r,r),s)?(a.mode=31,-4):(a.havedict=1,0):-2},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t){"use strict";var r=e("../utils/common"),a=[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],n=[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],s=[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],i=[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];t.exports=function(e,t,o,d,l,u,c,p){var h=p.bits,m=0,_=0,f=0,g=0,b=0,y=0,k=0,x=0,w=0,v=0,z=null,S=0,C=new r.Buf16(16),E=new r.Buf16(16),I=null,O=0,A,B,R,T,D,F,N,P,L;for(m=0;15>=m;m++)C[m]=0;for(_=0;_<d;_++)C[t[o+_]]++;for(b=h,g=15;1<=g&&0===C[g];g--);if(b>g&&(b=g),0==g)return l[u++]=20971520,l[u++]=20971520,p.bits=1,0;for(f=1;f<g&&0===C[f];f++);for(b<f&&(b=f),x=1,m=1;15>=m;m++)if(x<<=1,x-=C[m],0>x)return-1;if(0<x&&(0===e||1!=g))return-1;for(E[1]=0,m=1;15>m;m++)E[m+1]=E[m]+C[m];for(_=0;_<d;_++)0!==t[o+_]&&(c[E[t[o+_]]++]=_);if(0===e?(z=I=c,F=19):1===e?(z=a,S-=257,I=n,O-=257,F=256):(z=s,I=i,F=-1),v=0,_=0,m=f,D=u,y=b,k=0,R=-1,w=1<<b,T=w-1,1===e&&852<w||2===e&&592<w)return 1;for(;;){N=m-k,c[_]<F?(P=0,L=c[_]):c[_]>F?(P=I[O+c[_]],L=z[S+c[_]]):(P=96,L=0),A=1<<m-k,B=1<<y,f=B;do B-=A,l[D+(v>>k)+B]=0|(N<<24|P<<16|L);while(0!==B);for(A=1<<m-1;v&A;)A>>=1;if(0===A?v=0:(v&=A-1,v+=A),_++,0==--C[m]){if(m===g)break;m=t[o+c[_]]}if(m>b&&(v&T)!==R){for(0==k&&(k=b),D+=f,y=m-k,x=1<<y;y+k<g&&(x-=C[y+k],!(0>=x));)y++,x<<=1;if(w+=1<<y,1===e&&852<w||2===e&&592<w)return 1;R=v&T,l[R]=0|(b<<24|y<<16|D-u)}}return 0!=v&&(l[D+v]=0|(4194304|m-k<<24)),p.bits=b,0}},{"../utils/common":41}],51:[function(e,t){"use strict";t.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,t,r){"use strict";function a(e){for(var t=e.length;0<=--t;)e[t]=0}function s(e,t,r,a,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=a,this.max_length=n,this.has_stree=e&&e.length}function n(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function i(e){return 256>e?N[e]:N[256+(e>>>7)]}function o(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=255&t>>>8}function d(e,t,r){e.bi_valid>16-r?(e.bi_buf|=65535&t<<e.bi_valid,o(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=65535&t<<e.bi_valid,e.bi_valid+=r)}function l(e,t,r){d(e,r[2*t],r[2*t+1])}function u(e,t){var r=0;do r|=1&e,e>>>=1,r<<=1;while(0<--t);return r>>>1}function c(e){16===e.bi_valid?(o(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function p(e,t){var r=t.dyn_tree,a=t.max_code,s=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,l=t.stat_desc.max_length,u=0,c,p,_,g,b,y;for(g=0;g<=15;g++)e.bl_count[g]=0;for(r[2*e.heap[e.heap_max]+1]=0,c=e.heap_max+1;573>c;c++)(p=e.heap[c],g=r[2*r[2*p+1]+1]+1,g>l&&(g=l,u++),r[2*p+1]=g,!(p>a))&&(e.bl_count[g]++,b=0,p>=d&&(b=o[p-d]),y=r[2*p],e.opt_len+=y*(g+b),i&&(e.static_len+=y*(s[2*p+1]+b)));if(0!=u){do{for(g=l-1;0===e.bl_count[g];)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[l]--,u-=2}while(0<u);for(g=l;0!==g;g--)for(p=e.bl_count[g];0!==p;)(_=e.heap[--c],!(_>a))&&(r[2*_+1]!==g&&(e.opt_len+=(g-r[2*_+1])*r[2*_],r[2*_+1]=g),p--)}}function h(e,t,r){var a=Array(16),s=0,i,o;for(i=1;i<=15;i++)a[i]=s=s+r[i-1]<<1;for(o=0;o<=t;o++){var d=e[2*o+1];0!==d&&(e[2*o]=u(a[d]++,d))}}function m(){var e=Array(16),t,r,a,i,o;for(a=0,i=0;i<28;i++)for(L[i]=a,t=0;t<1<<A[i];t++)P[a++]=i;for(P[a-1]=i,o=0,i=0;16>i;i++)for(U[i]=o,t=0;t<1<<B[i];t++)N[o++]=i;for(o>>=7;i<30;i++)for(U[i]=o<<7,t=0;t<1<<B[i]-7;t++)N[256+o++]=i;for(r=0;r<=15;r++)e[r]=0;for(t=0;143>=t;)D[2*t+1]=8,t++,e[8]++;for(;255>=t;)D[2*t+1]=9,t++,e[9]++;for(;279>=t;)D[2*t+1]=7,t++,e[7]++;for(;287>=t;)D[2*t+1]=8,t++,e[8]++;for(h(D,287,e),t=0;t<30;t++)F[2*t+1]=5,F[2*t]=u(t,5);Z=new s(D,A,257,286,15),W=new s(F,B,0,30,15),M=new s([],R,0,19,7)}function _(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function f(e){8<e.bi_valid?o(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function g(e,t,r,a){f(e),a&&(o(e,r),o(e,~r)),O.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function b(e,t,r,a){var n=2*t,s=2*r;return e[n]<e[s]||e[n]===e[s]&&a[t]<=a[r]}function y(e,t,r){for(var a=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&b(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!b(t,a,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=a}function k(e,t,r){var a=0,n,s,o,u;if(0!==e.last_lit)do n=e.pending_buf[e.d_buf+2*a]<<8|e.pending_buf[e.d_buf+2*a+1],s=e.pending_buf[e.l_buf+a],a++,0===n?l(e,s,t):(o=P[s],l(e,o+256+1,t),u=A[o],0!==u&&(s-=L[o],d(e,s,u)),n--,o=i(n),l(e,o,r),u=B[o],0!==u&&(n-=U[o],d(e,n,u)));while(a<e.last_lit);l(e,256,t)}function x(e,t){var r=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,i=t.stat_desc.elems,o=-1,d,l,u;for(e.heap_len=0,e.heap_max=573,d=0;d<i;d++)0===r[2*d]?r[2*d+1]=0:(e.heap[++e.heap_len]=o=d,e.depth[d]=0);for(;2>e.heap_len;)u=e.heap[++e.heap_len]=2>o?++o:0,r[2*u]=1,e.depth[u]=0,e.opt_len--,s&&(e.static_len-=a[2*u+1]);for(t.max_code=o,d=e.heap_len>>1;1<=d;d--)y(e,r,d);u=i;do d=e.heap[1],e.heap[1]=e.heap[e.heap_len--],y(e,r,1),l=e.heap[1],e.heap[--e.heap_max]=d,e.heap[--e.heap_max]=l,r[2*u]=r[2*d]+r[2*l],e.depth[u]=(e.depth[d]>=e.depth[l]?e.depth[d]:e.depth[l])+1,r[2*d+1]=r[2*l+1]=u,e.heap[1]=u++,y(e,r,1);while(2<=e.heap_len);e.heap[--e.heap_max]=e.heap[1],p(e,t),h(r,o,e.bl_count)}function w(e,t,r){var a=-1,s=t[1],i=0,o=7,d=4,l,u;for(0===s&&(o=138,d=3),t[2*(r+1)+1]=65535,l=0;l<=r;l++){if(u=s,s=t[2*(l+1)+1],++i<o&&u===s)continue;else i<d?e.bl_tree[2*u]+=i:0===u?10>=i?e.bl_tree[34]++:e.bl_tree[36]++:(u!==a&&e.bl_tree[2*u]++,e.bl_tree[32]++);i=0,a=u,0===s?(o=138,d=3):u===s?(o=6,d=3):(o=7,d=4)}}function v(e,t,r){var a=-1,s=t[1],i=0,o=7,u=4,c,p;for(0===s&&(o=138,u=3),c=0;c<=r;c++){if(p=s,s=t[2*(c+1)+1],++i<o&&p===s)continue;else if(i<u)do l(e,p,e.bl_tree);while(0!=--i);else 0===p?10>=i?(l(e,17,e.bl_tree),d(e,i-3,3)):(l(e,18,e.bl_tree),d(e,i-11,7)):(p!==a&&(l(e,p,e.bl_tree),i--),l(e,16,e.bl_tree),d(e,i-3,2));i=0,a=p,0===s?(o=138,u=3):p===s?(o=6,u=3):(o=7,u=4)}}function z(e){var t;for(w(e,e.dyn_ltree,e.l_desc.max_code),w(e,e.dyn_dtree,e.d_desc.max_code),x(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*T[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function S(e,t,r,a){var n;for(d(e,t-257,5),d(e,r-1,5),d(e,a-4,4),n=0;n<a;n++)d(e,e.bl_tree[2*T[n]+1],3);v(e,e.dyn_ltree,t-1),v(e,e.dyn_dtree,r-1)}function C(e){var t=4093624447,r;for(r=0;31>=r;r++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==e.dyn_ltree[2*r])return 1;return 0}function E(e){j||(m(),j=!0),e.l_desc=new n(e.dyn_ltree,Z),e.d_desc=new n(e.dyn_dtree,W),e.bl_desc=new n(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,_(e)}function I(e,t,r,a){d(e,0+(a?1:0),3),g(e,t,r,!0)}var O=e("../utils/common"),A=[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],B=[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],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=Array(576);a(D);var F=Array(60);a(F);var N=Array(512);a(N);var P=Array(256);a(P);var L=Array(29);a(L);var U=Array(30);a(U);var j=!1,Z,W,M;r._tr_init=E,r._tr_stored_block=I,r._tr_flush_block=function(e,t,r,a){var n=0,s,i;0<e.level?(e.strm.data_type===2&&(e.strm.data_type=C(e)),x(e,e.l_desc),x(e,e.d_desc),n=z(e),s=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=s&&(s=i)):s=i=r+5,r+4<=s&&-1!==t?I(e,t,r,a):e.strategy===4||i===s?(d(e,2+(a?1:0),3),k(e,D,F)):(d(e,4+(a?1:0),3),S(e,e.l_desc.max_code+1,e.d_desc.max_code+1,n+1),k(e,e.dyn_ltree,e.dyn_dtree)),_(e),a&&f(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=255&t>>>8,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(P[r]+256+1)]++,e.dyn_dtree[2*i(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){d(e,2,3),l(e,256,D),c(e)}},{"../utils/common":41}],53:[function(e,t){"use strict";t.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,t){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)});