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