3 lines
102 KiB
JavaScript
3 lines
102 KiB
JavaScript
var $t=Object.defineProperty,qt=Object.defineProperties;var Jt=Object.getOwnPropertyDescriptors;var Zt=Object.getOwnPropertySymbols;var Qt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable;var Wt=(ht,lt,m)=>lt in ht?$t(ht,lt,{enumerable:!0,configurable:!0,writable:!0,value:m}):ht[lt]=m,Bt=(ht,lt)=>{for(var m in lt||(lt={}))Qt.call(lt,m)&&Wt(ht,m,lt[m]);if(Zt)for(var m of Zt(lt))Vt.call(lt,m)&&Wt(ht,m,lt[m]);return ht},Rt=(ht,lt)=>qt(ht,Jt(lt));var vt=(ht,lt,m)=>new Promise((L,x)=>{var u=o=>{try{r(m.next(o))}catch(b){x(b)}},l=o=>{try{r(m.throw(o))}catch(b){x(b)}},r=o=>o.done?L(o.value):Promise.resolve(o.value).then(u,l);r((m=m.apply(ht,lt)).next())});import{dT as At,cl as zt,bV as te,m as ee,b9 as re,ab as Et,b2 as bt,bJ as _t,j as yt,u as nt,ad as Dt,ai as Nt,bp as Ft,n as ne,da as ie}from"../jse/index-index-CZKOWp-q.js";import{Q as ae}from"./browser-DdpBHcQ7.js";import"./vxe-table-BiOEINAU.js";import{d as se,c as oe,a as le}from"./index-B8A1EiA_.js";import{$ as It,br as ue,az as Lt,a9 as dt,ac as he}from"./bootstrap-dXw-kJha.js";import{A as fe,c as ce,F as de,d as pe,e as me,f as _e,u as ge,g as ve}from"./data-C9RDppGv.js";import{_ as be}from"./form.vue_vue_type_script_setup_true_lang-BDnNf_kg.js";import{_ as ye}from"./qrcode-modal.vue_vue_type_script_setup_true_lang-DuVQkAId.js";import{_ as Mt}from"./table-action.vue_vue_type_script_setup_true_lang-Dl6p-U80.js";import{_ as we}from"./page.vue_vue_type_script_setup_true_lang-CufqUCt8.js";import{u as Gt}from"./use-modal-Cpg626CD.js";import{u as ke}from"./use-vxe-grid-Jbn1s9H9.js";import{A as Ot}from"./icons-CieLeI1V.js";import{v as xe}from"./AlertBuilder-BidIEpYo.js";import"./dict-tag.vue_vue_type_script_setup_true_lang-CysG17Ge.js";import"./index-BiwgjljL.js";import"./x-CJdxEgD2.js";import"./circle-check-big-wGbKrOOO.js";var Ut={exports:{}};var Ht;function Se(){return Ht||(Ht=1,function(ht,lt){(function(m){ht.exports=m()})(function(){return function m(L,x,u){function l(b,k){if(!x[b]){if(!L[b]){var g=typeof At=="function"&&At;if(!k&&g)return g(b,!0);if(r)return r(b,!0);var y=new Error("Cannot find module '"+b+"'");throw y.code="MODULE_NOT_FOUND",y}var i=x[b]={exports:{}};L[b][0].call(i.exports,function(d){var n=L[b][1][d];return l(n||d)},i,i.exports,m,L,x,u)}return x[b].exports}for(var r=typeof At=="function"&&At,o=0;o<u.length;o++)l(u[o]);return l}({1:[function(m,L,x){var u=m("./utils"),l=m("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";x.encode=function(o){for(var b,k,g,y,i,d,n,h=[],a=0,c=o.length,p=c,w=u.getTypeOf(o)!=="string";a<o.length;)p=c-a,g=w?(b=o[a++],k=a<c?o[a++]:0,a<c?o[a++]:0):(b=o.charCodeAt(a++),k=a<c?o.charCodeAt(a++):0,a<c?o.charCodeAt(a++):0),y=b>>2,i=(3&b)<<4|k>>4,d=1<p?(15&k)<<2|g>>6:64,n=2<p?63&g:64,h.push(r.charAt(y)+r.charAt(i)+r.charAt(d)+r.charAt(n));return h.join("")},x.decode=function(o){var b,k,g,y,i,d,n=0,h=0,a="data:";if(o.substr(0,a.length)===a)throw new Error("Invalid base64 input, it looks like a data url.");var c,p=3*(o=o.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(o.charAt(o.length-1)===r.charAt(64)&&p--,o.charAt(o.length-2)===r.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=l.uint8array?new Uint8Array(0|p):new Array(0|p);n<o.length;)b=r.indexOf(o.charAt(n++))<<2|(y=r.indexOf(o.charAt(n++)))>>4,k=(15&y)<<4|(i=r.indexOf(o.charAt(n++)))>>2,g=(3&i)<<6|(d=r.indexOf(o.charAt(n++))),c[h++]=b,i!==64&&(c[h++]=k),d!==64&&(c[h++]=g);return c}},{"./support":30,"./utils":32}],2:[function(m,L,x){var u=m("./external"),l=m("./stream/DataWorker"),r=m("./stream/Crc32Probe"),o=m("./stream/DataLengthProbe");function b(k,g,y,i,d){this.compressedSize=k,this.uncompressedSize=g,this.crc32=y,this.compression=i,this.compressedContent=d}b.prototype={getContentWorker:function(){var k=new l(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),g=this;return k.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),k},getCompressedWorker:function(){return new l(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},b.createWorkerFrom=function(k,g,y){return k.pipe(new r).pipe(new o("uncompressedSize")).pipe(g.compressWorker(y)).pipe(new o("compressedSize")).withStreamInfo("compression",g)},L.exports=b},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,L,x){var u=m("./stream/GenericWorker");x.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},x.DEFLATE=m("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(m,L,x){var u=m("./utils"),l=function(){for(var r,o=[],b=0;b<256;b++){r=b;for(var k=0;k<8;k++)r=1&r?3988292384^r>>>1:r>>>1;o[b]=r}return o}();L.exports=function(r,o){return r!==void 0&&r.length?u.getTypeOf(r)!=="string"?function(b,k,g,y){var i=l,d=y+g;b^=-1;for(var n=y;n<d;n++)b=b>>>8^i[255&(b^k[n])];return-1^b}(0|o,r,r.length,0):function(b,k,g,y){var i=l,d=y+g;b^=-1;for(var n=y;n<d;n++)b=b>>>8^i[255&(b^k.charCodeAt(n))];return-1^b}(0|o,r,r.length,0):0}},{"./utils":32}],5:[function(m,L,x){x.base64=!1,x.binary=!1,x.dir=!1,x.createFolders=!0,x.date=null,x.compression=null,x.compressionOptions=null,x.comment=null,x.unixPermissions=null,x.dosPermissions=null},{}],6:[function(m,L,x){var u=null;u=typeof Promise!="undefined"?Promise:m("lie"),L.exports={Promise:u}},{lie:37}],7:[function(m,L,x){var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",l=m("pako"),r=m("./utils"),o=m("./stream/GenericWorker"),b=u?"uint8array":"array";function k(g,y){o.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=y,this.meta={}}x.magic="\b\0",r.inherits(k,o),k.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(r.transformTo(b,g.data),!1)},k.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},k.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},k.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(y){g.push({data:y,meta:g.meta})}},x.compressWorker=function(g){return new k("Deflate",g)},x.uncompressWorker=function(){return new k("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(m,L,x){function u(i,d){var n,h="";for(n=0;n<d;n++)h+=String.fromCharCode(255&i),i>>>=8;return h}function l(i,d,n,h,a,c){var p,w,v=i.file,E=i.compression,A=c!==b.utf8encode,R=r.transformTo("string",c(v.name)),O=r.transformTo("string",b.utf8encode(v.name)),j=v.comment,K=r.transformTo("string",c(j)),_=r.transformTo("string",b.utf8encode(j)),B=O.length!==v.name.length,e=_.length!==j.length,N="",J="",P="",Q=v.dir,Z=v.date,q={crc32:0,compressedSize:0,uncompressedSize:0};d&&!n||(q.crc32=i.crc32,q.compressedSize=i.compressedSize,q.uncompressedSize=i.uncompressedSize);var I=0;d&&(I|=8),A||!B&&!e||(I|=2048);var z=0,$=0;Q&&(z|=16),a==="UNIX"?($=798,z|=function(G,it){var ut=G;return G||(ut=it?16893:33204),(65535&ut)<<16}(v.unixPermissions,Q)):($=20,z|=function(G){return 63&(G||0)}(v.dosPermissions)),p=Z.getUTCHours(),p<<=6,p|=Z.getUTCMinutes(),p<<=5,p|=Z.getUTCSeconds()/2,w=Z.getUTCFullYear()-1980,w<<=4,w|=Z.getUTCMonth()+1,w<<=5,w|=Z.getUTCDate(),B&&(J=u(1,1)+u(k(R),4)+O,N+="up"+u(J.length,2)+J),e&&(P=u(1,1)+u(k(K),4)+_,N+="uc"+u(P.length,2)+P);var H="";return H+=`
|
||
\0`,H+=u(I,2),H+=E.magic,H+=u(p,2),H+=u(w,2),H+=u(q.crc32,4),H+=u(q.compressedSize,4),H+=u(q.uncompressedSize,4),H+=u(R.length,2),H+=u(N.length,2),{fileRecord:g.LOCAL_FILE_HEADER+H+R+N,dirRecord:g.CENTRAL_FILE_HEADER+u($,2)+H+u(K.length,2)+"\0\0\0\0"+u(z,4)+u(h,4)+R+N+K}}var r=m("../utils"),o=m("../stream/GenericWorker"),b=m("../utf8"),k=m("../crc32"),g=m("../signature");function y(i,d,n,h){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=n,this.encodeFileName=h,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(y,o),y.prototype.push=function(i){var d=i.meta.percent||0,n=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,o.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:n?(d+100*(n-h-1))/n:100}}))},y.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var d=this.streamFiles&&!i.file.dir;if(d){var n=l(i,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},y.prototype.closedSource=function(i){this.accumulate=!1;var d=this.streamFiles&&!i.file.dir,n=l(i,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),d)this.push({data:function(h){return g.DATA_DESCRIPTOR+u(h.crc32,4)+u(h.compressedSize,4)+u(h.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},y.prototype.flush=function(){for(var i=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var n=this.bytesWritten-i,h=function(a,c,p,w,v){var E=r.transformTo("string",v(w));return g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(a,2)+u(a,2)+u(c,4)+u(p,4)+u(E.length,2)+E}(this.dirRecords.length,n,i,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},y.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},y.prototype.registerPrevious=function(i){this._sources.push(i);var d=this;return i.on("data",function(n){d.processChunk(n)}),i.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),i.on("error",function(n){d.error(n)}),this},y.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},y.prototype.error=function(i){var d=this._sources;if(!o.prototype.error.call(this,i))return!1;for(var n=0;n<d.length;n++)try{d[n].error(i)}catch(h){}return!0},y.prototype.lock=function(){o.prototype.lock.call(this);for(var i=this._sources,d=0;d<i.length;d++)i[d].lock()},L.exports=y},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(m,L,x){var u=m("../compressions"),l=m("./ZipFileWorker");x.generateWorker=function(r,o,b){var k=new l(o.streamFiles,b,o.platform,o.encodeFileName),g=0;try{r.forEach(function(y,i){g++;var d=function(c,p){var w=c||p,v=u[w];if(!v)throw new Error(w+" is not a valid compression method !");return v}(i.options.compression,o.compression),n=i.options.compressionOptions||o.compressionOptions||{},h=i.dir,a=i.date;i._compressWorker(d,n).withStreamInfo("file",{name:y,dir:h,date:a,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(k)}),k.entriesCount=g}catch(y){k.error(y)}return k}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(m,L,x){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new u;for(var r in this)typeof this[r]!="function"&&(l[r]=this[r]);return l}}(u.prototype=m("./object")).loadAsync=m("./load"),u.support=m("./support"),u.defaults=m("./defaults"),u.version="3.10.1",u.loadAsync=function(l,r){return new u().loadAsync(l,r)},u.external=m("./external"),L.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(m,L,x){var u=m("./utils"),l=m("./external"),r=m("./utf8"),o=m("./zipEntries"),b=m("./stream/Crc32Probe"),k=m("./nodejsUtils");function g(y){return new l.Promise(function(i,d){var n=y.decompressed.getContentWorker().pipe(new b);n.on("error",function(h){d(h)}).on("end",function(){n.streamInfo.crc32!==y.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}L.exports=function(y,i){var d=this;return i=u.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),k.isNode&&k.isStream(y)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",y,!0,i.optimizedBinaryString,i.base64).then(function(n){var h=new o(i);return h.load(n),h}).then(function(n){var h=[l.Promise.resolve(n)],a=n.files;if(i.checkCRC32)for(var c=0;c<a.length;c++)h.push(g(a[c]));return l.Promise.all(h)}).then(function(n){for(var h=n.shift(),a=h.files,c=0;c<a.length;c++){var p=a[c],w=p.fileNameStr,v=u.resolve(p.fileNameStr);d.file(v,p.decompressed,{binary:!0,optimizedBinaryString:!0,date:p.date,dir:p.dir,comment:p.fileCommentStr.length?p.fileCommentStr:null,unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions,createFolders:i.createFolders}),p.dir||(d.file(v).unsafeOriginalName=w)}return h.zipComment.length&&(d.comment=h.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(m,L,x){var u=m("../utils"),l=m("../stream/GenericWorker");function r(o,b){l.call(this,"Nodejs stream input adapter for "+o),this._upstreamEnded=!1,this._bindStream(b)}u.inherits(r,l),r.prototype._bindStream=function(o){var b=this;(this._stream=o).pause(),o.on("data",function(k){b.push({data:k,meta:{percent:0}})}).on("error",function(k){b.isPaused?this.generatedError=k:b.error(k)}).on("end",function(){b.isPaused?b._upstreamEnded=!0:b.end()})},r.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},L.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(m,L,x){var u=m("readable-stream").Readable;function l(r,o,b){u.call(this,o),this._helper=r;var k=this;r.on("data",function(g,y){k.push(g)||k._helper.pause(),b&&b(y)}).on("error",function(g){k.emit("error",g)}).on("end",function(){k.push(null)})}m("../utils").inherits(l,u),l.prototype._read=function(){this._helper.resume()},L.exports=l},{"../utils":32,"readable-stream":16}],14:[function(m,L,x){L.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(u,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,l);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,l)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var l=new Buffer(u);return l.fill(0),l},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(m,L,x){function u(v,E,A){var R,O=r.getTypeOf(E),j=r.extend(A||{},k);j.date=j.date||new Date,j.compression!==null&&(j.compression=j.compression.toUpperCase()),typeof j.unixPermissions=="string"&&(j.unixPermissions=parseInt(j.unixPermissions,8)),j.unixPermissions&&16384&j.unixPermissions&&(j.dir=!0),j.dosPermissions&&16&j.dosPermissions&&(j.dir=!0),j.dir&&(v=a(v)),j.createFolders&&(R=h(v))&&c.call(this,R,!0);var K=O==="string"&&j.binary===!1&&j.base64===!1;A&&A.binary!==void 0||(j.binary=!K),(E instanceof g&&E.uncompressedSize===0||j.dir||!E||E.length===0)&&(j.base64=!1,j.binary=!0,E="",j.compression="STORE",O="string");var _=null;_=E instanceof g||E instanceof o?E:d.isNode&&d.isStream(E)?new n(v,E):r.prepareContent(v,E,j.binary,j.optimizedBinaryString,j.base64);var B=new y(v,_,j);this.files[v]=B}var l=m("./utf8"),r=m("./utils"),o=m("./stream/GenericWorker"),b=m("./stream/StreamHelper"),k=m("./defaults"),g=m("./compressedObject"),y=m("./zipObject"),i=m("./generate"),d=m("./nodejsUtils"),n=m("./nodejs/NodejsStreamInputAdapter"),h=function(v){v.slice(-1)==="/"&&(v=v.substring(0,v.length-1));var E=v.lastIndexOf("/");return 0<E?v.substring(0,E):""},a=function(v){return v.slice(-1)!=="/"&&(v+="/"),v},c=function(v,E){return E=E!==void 0?E:k.createFolders,v=a(v),this.files[v]||u.call(this,v,null,{dir:!0,createFolders:E}),this.files[v]};function p(v){return Object.prototype.toString.call(v)==="[object RegExp]"}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(v){var E,A,R;for(E in this.files)R=this.files[E],(A=E.slice(this.root.length,E.length))&&E.slice(0,this.root.length)===this.root&&v(A,R)},filter:function(v){var E=[];return this.forEach(function(A,R){v(A,R)&&E.push(R)}),E},file:function(v,E,A){if(arguments.length!==1)return v=this.root+v,u.call(this,v,E,A),this;if(p(v)){var R=v;return this.filter(function(j,K){return!K.dir&&R.test(j)})}var O=this.files[this.root+v];return O&&!O.dir?O:null},folder:function(v){if(!v)return this;if(p(v))return this.filter(function(O,j){return j.dir&&v.test(O)});var E=this.root+v,A=c.call(this,E),R=this.clone();return R.root=A.name,R},remove:function(v){v=this.root+v;var E=this.files[v];if(E||(v.slice(-1)!=="/"&&(v+="/"),E=this.files[v]),E&&!E.dir)delete this.files[v];else for(var A=this.filter(function(O,j){return j.name.slice(0,v.length)===v}),R=0;R<A.length;R++)delete this.files[A[R].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(v){var E,A={};try{if((A=r.extend(v||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=A.type.toLowerCase(),A.compression=A.compression.toUpperCase(),A.type==="binarystring"&&(A.type="string"),!A.type)throw new Error("No output type specified.");r.checkSupport(A.type),A.platform!=="darwin"&&A.platform!=="freebsd"&&A.platform!=="linux"&&A.platform!=="sunos"||(A.platform="UNIX"),A.platform==="win32"&&(A.platform="DOS");var R=A.comment||this.comment||"";E=i.generateWorker(this,A,R)}catch(O){(E=new o("error")).error(O)}return new b(E,A.type||"string",A.mimeType)},generateAsync:function(v,E){return this.generateInternalStream(v).accumulate(E)},generateNodeStream:function(v,E){return(v=v||{}).type||(v.type="nodebuffer"),this.generateInternalStream(v).toNodejsStream(E)}};L.exports=w},{"./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(m,L,x){L.exports=m("stream")},{stream:void 0}],17:[function(m,L,x){var u=m("./DataReader");function l(r){u.call(this,r);for(var o=0;o<this.data.length;o++)r[o]=255&r[o]}m("../utils").inherits(l,u),l.prototype.byteAt=function(r){return this.data[this.zero+r]},l.prototype.lastIndexOfSignature=function(r){for(var o=r.charCodeAt(0),b=r.charCodeAt(1),k=r.charCodeAt(2),g=r.charCodeAt(3),y=this.length-4;0<=y;--y)if(this.data[y]===o&&this.data[y+1]===b&&this.data[y+2]===k&&this.data[y+3]===g)return y-this.zero;return-1},l.prototype.readAndCheckSignature=function(r){var o=r.charCodeAt(0),b=r.charCodeAt(1),k=r.charCodeAt(2),g=r.charCodeAt(3),y=this.readData(4);return o===y[0]&&b===y[1]&&k===y[2]&&g===y[3]},l.prototype.readData=function(r){if(this.checkOffset(r),r===0)return[];var o=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,o},L.exports=l},{"../utils":32,"./DataReader":18}],18:[function(m,L,x){var u=m("../utils");function l(r){this.data=r,this.length=r.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(r){this.checkIndex(this.index+r)},checkIndex:function(r){if(this.length<this.zero+r||r<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+r+"). Corrupted zip ?")},setIndex:function(r){this.checkIndex(r),this.index=r},skip:function(r){this.setIndex(this.index+r)},byteAt:function(){},readInt:function(r){var o,b=0;for(this.checkOffset(r),o=this.index+r-1;o>=this.index;o--)b=(b<<8)+this.byteAt(o);return this.index+=r,b},readString:function(r){return u.transformTo("string",this.readData(r))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var r=this.readInt(4);return new Date(Date.UTC(1980+(r>>25&127),(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(31&r)<<1))}},L.exports=l},{"../utils":32}],19:[function(m,L,x){var u=m("./Uint8ArrayReader");function l(r){u.call(this,r)}m("../utils").inherits(l,u),l.prototype.readData=function(r){this.checkOffset(r);var o=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,o},L.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,L,x){var u=m("./DataReader");function l(r){u.call(this,r)}m("../utils").inherits(l,u),l.prototype.byteAt=function(r){return this.data.charCodeAt(this.zero+r)},l.prototype.lastIndexOfSignature=function(r){return this.data.lastIndexOf(r)-this.zero},l.prototype.readAndCheckSignature=function(r){return r===this.readData(4)},l.prototype.readData=function(r){this.checkOffset(r);var o=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,o},L.exports=l},{"../utils":32,"./DataReader":18}],21:[function(m,L,x){var u=m("./ArrayReader");function l(r){u.call(this,r)}m("../utils").inherits(l,u),l.prototype.readData=function(r){if(this.checkOffset(r),r===0)return new Uint8Array(0);var o=this.data.subarray(this.zero+this.index,this.zero+this.index+r);return this.index+=r,o},L.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(m,L,x){var u=m("../utils"),l=m("../support"),r=m("./ArrayReader"),o=m("./StringReader"),b=m("./NodeBufferReader"),k=m("./Uint8ArrayReader");L.exports=function(g){var y=u.getTypeOf(g);return u.checkSupport(y),y!=="string"||l.uint8array?y==="nodebuffer"?new b(g):l.uint8array?new k(u.transformTo("uint8array",g)):new r(u.transformTo("array",g)):new o(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(m,L,x){x.LOCAL_FILE_HEADER="PK",x.CENTRAL_FILE_HEADER="PK",x.CENTRAL_DIRECTORY_END="PK",x.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",x.ZIP64_CENTRAL_DIRECTORY_END="PK",x.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(m,L,x){var u=m("./GenericWorker"),l=m("../utils");function r(o){u.call(this,"ConvertWorker to "+o),this.destType=o}l.inherits(r,u),r.prototype.processChunk=function(o){this.push({data:l.transformTo(this.destType,o.data),meta:o.meta})},L.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(m,L,x){var u=m("./GenericWorker"),l=m("../crc32");function r(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(r,u),r.prototype.processChunk=function(o){this.streamInfo.crc32=l(o.data,this.streamInfo.crc32||0),this.push(o)},L.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,L,x){var u=m("../utils"),l=m("./GenericWorker");function r(o){l.call(this,"DataLengthProbe for "+o),this.propName=o,this.withStreamInfo(o,0)}u.inherits(r,l),r.prototype.processChunk=function(o){if(o){var b=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=b+o.data.length}l.prototype.processChunk.call(this,o)},L.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(m,L,x){var u=m("../utils"),l=m("./GenericWorker");function r(o){l.call(this,"DataWorker");var b=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,o.then(function(k){b.dataIsReady=!0,b.data=k,b.max=k&&k.length||0,b.type=u.getTypeOf(k),b.isPaused||b._tickAndRepeat()},function(k){b.error(k)})}u.inherits(r,l),r.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var o=null,b=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":o=this.data.substring(this.index,b);break;case"uint8array":o=this.data.subarray(this.index,b);break;case"array":case"nodebuffer":o=this.data.slice(this.index,b)}return this.index=b,this.push({data:o,meta:{percent:this.max?this.index/this.max*100:0}})},L.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(m,L,x){function u(l){this.name=l||"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}u.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,r){return this._listeners[l].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,r){if(this._listeners[l])for(var o=0;o<this._listeners[l].length;o++)this._listeners[l][o].call(this,r)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var r=this;return l.on("data",function(o){r.processChunk(o)}),l.on("end",function(){r.end()}),l.on("error",function(o){r.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,r){return this.extraStreamInfo[l]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},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 l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},L.exports=u},{}],29:[function(m,L,x){var u=m("../utils"),l=m("./ConvertWorker"),r=m("./GenericWorker"),o=m("../base64"),b=m("../support"),k=m("../external"),g=null;if(b.nodestream)try{g=m("../nodejs/NodejsStreamOutputAdapter")}catch(d){}function y(d,n){return new k.Promise(function(h,a){var c=[],p=d._internalType,w=d._outputType,v=d._mimeType;d.on("data",function(E,A){c.push(E),n&&n(A)}).on("error",function(E){c=[],a(E)}).on("end",function(){try{var E=function(A,R,O){switch(A){case"blob":return u.newBlob(u.transformTo("arraybuffer",R),O);case"base64":return o.encode(R);default:return u.transformTo(A,R)}}(w,function(A,R){var O,j=0,K=null,_=0;for(O=0;O<R.length;O++)_+=R[O].length;switch(A){case"string":return R.join("");case"array":return Array.prototype.concat.apply([],R);case"uint8array":for(K=new Uint8Array(_),O=0;O<R.length;O++)K.set(R[O],j),j+=R[O].length;return K;case"nodebuffer":return Buffer.concat(R);default:throw new Error("concat : unsupported type '"+A+"'")}}(p,c),v);h(E)}catch(A){a(A)}c=[]}).resume()})}function i(d,n,h){var a=n;switch(n){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=n,this._mimeType=h,u.checkSupport(a),this._worker=d.pipe(new l(a)),d.lock()}catch(c){this._worker=new r("error"),this._worker.error(c)}}i.prototype={accumulate:function(d){return y(this,d)},on:function(d,n){var h=this;return d==="data"?this._worker.on(d,function(a){n.call(h,a.data,a.meta)}):this._worker.on(d,function(){u.delay(n,arguments,h)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new g(this,{objectMode:this._outputType!=="nodebuffer"},d)}},L.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(m,L,x){if(x.base64=!0,x.array=!0,x.string=!0,x.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",x.nodebuffer=typeof Buffer!="undefined",x.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")x.blob=!1;else{var u=new ArrayBuffer(0);try{x.blob=new Blob([u],{type:"application/zip"}).size===0}catch(r){try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(u),x.blob=l.getBlob("application/zip").size===0}catch(o){x.blob=!1}}}try{x.nodestream=!!m("readable-stream").Readable}catch(r){x.nodestream=!1}},{"readable-stream":16}],31:[function(m,L,x){for(var u=m("./utils"),l=m("./support"),r=m("./nodejsUtils"),o=m("./stream/GenericWorker"),b=new Array(256),k=0;k<256;k++)b[k]=252<=k?6:248<=k?5:240<=k?4:224<=k?3:192<=k?2:1;b[254]=b[254]=1;function g(){o.call(this,"utf-8 decode"),this.leftOver=null}function y(){o.call(this,"utf-8 encode")}x.utf8encode=function(i){return l.nodebuffer?r.newBufferFrom(i,"utf-8"):function(d){var n,h,a,c,p,w=d.length,v=0;for(c=0;c<w;c++)(64512&(h=d.charCodeAt(c)))==55296&&c+1<w&&(64512&(a=d.charCodeAt(c+1)))==56320&&(h=65536+(h-55296<<10)+(a-56320),c++),v+=h<128?1:h<2048?2:h<65536?3:4;for(n=l.uint8array?new Uint8Array(v):new Array(v),c=p=0;p<v;c++)(64512&(h=d.charCodeAt(c)))==55296&&c+1<w&&(64512&(a=d.charCodeAt(c+1)))==56320&&(h=65536+(h-55296<<10)+(a-56320),c++),h<128?n[p++]=h:(h<2048?n[p++]=192|h>>>6:(h<65536?n[p++]=224|h>>>12:(n[p++]=240|h>>>18,n[p++]=128|h>>>12&63),n[p++]=128|h>>>6&63),n[p++]=128|63&h);return n}(i)},x.utf8decode=function(i){return l.nodebuffer?u.transformTo("nodebuffer",i).toString("utf-8"):function(d){var n,h,a,c,p=d.length,w=new Array(2*p);for(n=h=0;n<p;)if((a=d[n++])<128)w[h++]=a;else if(4<(c=b[a]))w[h++]=65533,n+=c-1;else{for(a&=c===2?31:c===3?15:7;1<c&&n<p;)a=a<<6|63&d[n++],c--;1<c?w[h++]=65533:a<65536?w[h++]=a:(a-=65536,w[h++]=55296|a>>10&1023,w[h++]=56320|1023&a)}return w.length!==h&&(w.subarray?w=w.subarray(0,h):w.length=h),u.applyFromCharCode(w)}(i=u.transformTo(l.uint8array?"uint8array":"array",i))},u.inherits(g,o),g.prototype.processChunk=function(i){var d=u.transformTo(l.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var n=d;(d=new Uint8Array(n.length+this.leftOver.length)).set(this.leftOver,0),d.set(n,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var h=function(c,p){var w;for((p=p||c.length)>c.length&&(p=c.length),w=p-1;0<=w&&(192&c[w])==128;)w--;return w<0||w===0?p:w+b[c[w]]>p?w:p}(d),a=d;h!==d.length&&(l.uint8array?(a=d.subarray(0,h),this.leftOver=d.subarray(h,d.length)):(a=d.slice(0,h),this.leftOver=d.slice(h,d.length))),this.push({data:x.utf8decode(a),meta:i.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:x.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},x.Utf8DecodeWorker=g,u.inherits(y,o),y.prototype.processChunk=function(i){this.push({data:x.utf8encode(i.data),meta:i.meta})},x.Utf8EncodeWorker=y},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(m,L,x){var u=m("./support"),l=m("./base64"),r=m("./nodejsUtils"),o=m("./external");function b(n){return n}function k(n,h){for(var a=0;a<n.length;++a)h[a]=255&n.charCodeAt(a);return h}m("setimmediate"),x.newBlob=function(n,h){x.checkSupport("blob");try{return new Blob([n],{type:h})}catch(c){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(n),a.getBlob(h)}catch(p){throw new Error("Bug : can't construct the Blob.")}}};var g={stringifyByChunk:function(n,h,a){var c=[],p=0,w=n.length;if(w<=a)return String.fromCharCode.apply(null,n);for(;p<w;)h==="array"||h==="nodebuffer"?c.push(String.fromCharCode.apply(null,n.slice(p,Math.min(p+a,w)))):c.push(String.fromCharCode.apply(null,n.subarray(p,Math.min(p+a,w)))),p+=a;return c.join("")},stringifyByChar:function(n){for(var h="",a=0;a<n.length;a++)h+=String.fromCharCode(n[a]);return h},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(n){return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,r.allocBuffer(1)).length===1}catch(n){return!1}}()}};function y(n){var h=65536,a=x.getTypeOf(n),c=!0;if(a==="uint8array"?c=g.applyCanBeUsed.uint8array:a==="nodebuffer"&&(c=g.applyCanBeUsed.nodebuffer),c)for(;1<h;)try{return g.stringifyByChunk(n,a,h)}catch(p){h=Math.floor(h/2)}return g.stringifyByChar(n)}function i(n,h){for(var a=0;a<n.length;a++)h[a]=n[a];return h}x.applyFromCharCode=y;var d={};d.string={string:b,array:function(n){return k(n,new Array(n.length))},arraybuffer:function(n){return d.string.uint8array(n).buffer},uint8array:function(n){return k(n,new Uint8Array(n.length))},nodebuffer:function(n){return k(n,r.allocBuffer(n.length))}},d.array={string:y,array:b,arraybuffer:function(n){return new Uint8Array(n).buffer},uint8array:function(n){return new Uint8Array(n)},nodebuffer:function(n){return r.newBufferFrom(n)}},d.arraybuffer={string:function(n){return y(new Uint8Array(n))},array:function(n){return i(new Uint8Array(n),new Array(n.byteLength))},arraybuffer:b,uint8array:function(n){return new Uint8Array(n)},nodebuffer:function(n){return r.newBufferFrom(new Uint8Array(n))}},d.uint8array={string:y,array:function(n){return i(n,new Array(n.length))},arraybuffer:function(n){return n.buffer},uint8array:b,nodebuffer:function(n){return r.newBufferFrom(n)}},d.nodebuffer={string:y,array:function(n){return i(n,new Array(n.length))},arraybuffer:function(n){return d.nodebuffer.uint8array(n).buffer},uint8array:function(n){return i(n,new Uint8Array(n.length))},nodebuffer:b},x.transformTo=function(n,h){if(h=h||"",!n)return h;x.checkSupport(n);var a=x.getTypeOf(h);return d[a][n](h)},x.resolve=function(n){for(var h=n.split("/"),a=[],c=0;c<h.length;c++){var p=h[c];p==="."||p===""&&c!==0&&c!==h.length-1||(p===".."?a.pop():a.push(p))}return a.join("/")},x.getTypeOf=function(n){return typeof n=="string"?"string":Object.prototype.toString.call(n)==="[object Array]"?"array":u.nodebuffer&&r.isBuffer(n)?"nodebuffer":u.uint8array&&n instanceof Uint8Array?"uint8array":u.arraybuffer&&n instanceof ArrayBuffer?"arraybuffer":void 0},x.checkSupport=function(n){if(!u[n.toLowerCase()])throw new Error(n+" is not supported by this platform")},x.MAX_VALUE_16BITS=65535,x.MAX_VALUE_32BITS=-1,x.pretty=function(n){var h,a,c="";for(a=0;a<(n||"").length;a++)c+="\\x"+((h=n.charCodeAt(a))<16?"0":"")+h.toString(16).toUpperCase();return c},x.delay=function(n,h,a){setImmediate(function(){n.apply(a||null,h||[])})},x.inherits=function(n,h){function a(){}a.prototype=h.prototype,n.prototype=new a},x.extend=function(){var n,h,a={};for(n=0;n<arguments.length;n++)for(h in arguments[n])Object.prototype.hasOwnProperty.call(arguments[n],h)&&a[h]===void 0&&(a[h]=arguments[n][h]);return a},x.prepareContent=function(n,h,a,c,p){return o.Promise.resolve(h).then(function(w){return u.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader!="undefined"?new o.Promise(function(v,E){var A=new FileReader;A.onload=function(R){v(R.target.result)},A.onerror=function(R){E(R.target.error)},A.readAsArrayBuffer(w)}):w}).then(function(w){var v=x.getTypeOf(w);return v?(v==="arraybuffer"?w=x.transformTo("uint8array",w):v==="string"&&(p?w=l.decode(w):a&&c!==!0&&(w=function(E){return k(E,u.uint8array?new Uint8Array(E.length):new Array(E.length))}(w))),w):o.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(m,L,x){var u=m("./reader/readerFor"),l=m("./utils"),r=m("./signature"),o=m("./zipEntry"),b=m("./support");function k(g){this.files=[],this.loadOptions=g}k.prototype={checkSignature:function(g){if(!this.reader.readAndCheckSignature(g)){this.reader.index-=4;var y=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(y)+", expected "+l.pretty(g)+")")}},isSignature:function(g,y){var i=this.reader.index;this.reader.setIndex(g);var d=this.reader.readString(4)===y;return this.reader.setIndex(i),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var g=this.reader.readData(this.zipCommentLength),y=b.uint8array?"uint8array":"array",i=l.transformTo(y,g);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var g,y,i,d=this.zip64EndOfCentralSize-44;0<d;)g=this.reader.readInt(2),y=this.reader.readInt(4),i=this.reader.readData(y),this.zip64ExtensibleData[g]={id:g,length:y,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var g,y;for(g=0;g<this.files.length;g++)y=this.files[g],this.reader.setIndex(y.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),y.readLocalPart(this.reader),y.handleUTF8(),y.processAttributes()},readCentralDir:function(){var g;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(g=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(g);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var g=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(g<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(g);var y=g;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(g=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(g),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var d=y-i;if(0<d)this.isSignature(y,r.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(g){this.reader=u(g)},load:function(g){this.prepareReader(g),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},L.exports=k},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(m,L,x){var u=m("./reader/readerFor"),l=m("./utils"),r=m("./compressedObject"),o=m("./crc32"),b=m("./utf8"),k=m("./compressions"),g=m("./support");function y(i,d){this.options=i,this.loadOptions=d}y.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(i){var d,n;if(i.skip(22),this.fileNameLength=i.readInt(2),n=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=function(h){for(var a in k)if(Object.prototype.hasOwnProperty.call(k,a)&&k[a].magic===h)return k[a];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,d,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var d=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(d),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=u(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var d,n,h,a=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<a;)d=i.readInt(2),n=i.readInt(2),h=i.readData(n),this.extraFields[d]={id:d,length:n,value:h};i.setIndex(a)},handleUTF8:function(){var i=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=b.utf8decode(this.fileName),this.fileCommentStr=b.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var n=l.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var a=l.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var d=u(i.value);return d.readInt(1)!==1||o(this.fileName)!==d.readInt(4)?null:b.utf8decode(d.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var d=u(i.value);return d.readInt(1)!==1||o(this.fileComment)!==d.readInt(4)?null:b.utf8decode(d.readData(i.length-5))}return null}},L.exports=y},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(m,L,x){function u(d,n,h){this.name=d,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=n,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var l=m("./stream/StreamHelper"),r=m("./stream/DataWorker"),o=m("./utf8"),b=m("./compressedObject"),k=m("./stream/GenericWorker");u.prototype={internalStream:function(d){var n=null,h="string";try{if(!d)throw new Error("No output type specified.");var a=(h=d.toLowerCase())==="string"||h==="text";h!=="binarystring"&&h!=="text"||(h="string"),n=this._decompressWorker();var c=!this._dataBinary;c&&!a&&(n=n.pipe(new o.Utf8EncodeWorker)),!c&&a&&(n=n.pipe(new o.Utf8DecodeWorker))}catch(p){(n=new k("error")).error(p)}return new l(n,h,"")},async:function(d,n){return this.internalStream(d).accumulate(n)},nodeStream:function(d,n){return this.internalStream(d||"nodebuffer").toNodejsStream(n)},_compressWorker:function(d,n){if(this._data instanceof b&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var h=this._decompressWorker();return this._dataBinary||(h=h.pipe(new o.Utf8EncodeWorker)),b.createWorkerFrom(h,d,n)},_decompressWorker:function(){return this._data instanceof b?this._data.getContentWorker():this._data instanceof k?this._data:new r(this._data)}};for(var g=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],y=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},i=0;i<g.length;i++)u.prototype[g[i]]=y;L.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(m,L,x){(function(u){var l,r,o=u.MutationObserver||u.WebKitMutationObserver;if(o){var b=0,k=new o(d),g=u.document.createTextNode("");k.observe(g,{characterData:!0}),l=function(){g.data=b=++b%2}}else if(u.setImmediate||u.MessageChannel===void 0)l="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var n=u.document.createElement("script");n.onreadystatechange=function(){d(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},u.document.documentElement.appendChild(n)}:function(){setTimeout(d,0)};else{var y=new u.MessageChannel;y.port1.onmessage=d,l=function(){y.port2.postMessage(0)}}var i=[];function d(){var n,h;r=!0;for(var a=i.length;a;){for(h=i,i=[],n=-1;++n<a;)h[n]();a=i.length}r=!1}L.exports=function(n){i.push(n)!==1||r||l()}}).call(this,typeof zt!="undefined"?zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(m,L,x){var u=m("immediate");function l(){}var r={},o=["REJECTED"],b=["FULFILLED"],k=["PENDING"];function g(a){if(typeof a!="function")throw new TypeError("resolver must be a function");this.state=k,this.queue=[],this.outcome=void 0,a!==l&&n(this,a)}function y(a,c,p){this.promise=a,typeof c=="function"&&(this.onFulfilled=c,this.callFulfilled=this.otherCallFulfilled),typeof p=="function"&&(this.onRejected=p,this.callRejected=this.otherCallRejected)}function i(a,c,p){u(function(){var w;try{w=c(p)}catch(v){return r.reject(a,v)}w===a?r.reject(a,new TypeError("Cannot resolve promise with itself")):r.resolve(a,w)})}function d(a){var c=a&&a.then;if(a&&(typeof a=="object"||typeof a=="function")&&typeof c=="function")return function(){c.apply(a,arguments)}}function n(a,c){var p=!1;function w(A){p||(p=!0,r.reject(a,A))}function v(A){p||(p=!0,r.resolve(a,A))}var E=h(function(){c(v,w)});E.status==="error"&&w(E.value)}function h(a,c){var p={};try{p.value=a(c),p.status="success"}catch(w){p.status="error",p.value=w}return p}(L.exports=g).prototype.finally=function(a){if(typeof a!="function")return this;var c=this.constructor;return this.then(function(p){return c.resolve(a()).then(function(){return p})},function(p){return c.resolve(a()).then(function(){throw p})})},g.prototype.catch=function(a){return this.then(null,a)},g.prototype.then=function(a,c){if(typeof a!="function"&&this.state===b||typeof c!="function"&&this.state===o)return this;var p=new this.constructor(l);return this.state!==k?i(p,this.state===b?a:c,this.outcome):this.queue.push(new y(p,a,c)),p},y.prototype.callFulfilled=function(a){r.resolve(this.promise,a)},y.prototype.otherCallFulfilled=function(a){i(this.promise,this.onFulfilled,a)},y.prototype.callRejected=function(a){r.reject(this.promise,a)},y.prototype.otherCallRejected=function(a){i(this.promise,this.onRejected,a)},r.resolve=function(a,c){var p=h(d,c);if(p.status==="error")return r.reject(a,p.value);var w=p.value;if(w)n(a,w);else{a.state=b,a.outcome=c;for(var v=-1,E=a.queue.length;++v<E;)a.queue[v].callFulfilled(c)}return a},r.reject=function(a,c){a.state=o,a.outcome=c;for(var p=-1,w=a.queue.length;++p<w;)a.queue[p].callRejected(c);return a},g.resolve=function(a){return a instanceof this?a:r.resolve(new this(l),a)},g.reject=function(a){var c=new this(l);return r.reject(c,a)},g.all=function(a){var c=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var p=a.length,w=!1;if(!p)return this.resolve([]);for(var v=new Array(p),E=0,A=-1,R=new this(l);++A<p;)O(a[A],A);return R;function O(j,K){c.resolve(j).then(function(_){v[K]=_,++E!==p||w||(w=!0,r.resolve(R,v))},function(_){w||(w=!0,r.reject(R,_))})}},g.race=function(a){var c=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var p=a.length,w=!1;if(!p)return this.resolve([]);for(var v=-1,E=new this(l);++v<p;)A=a[v],c.resolve(A).then(function(R){w||(w=!0,r.resolve(E,R))},function(R){w||(w=!0,r.reject(E,R))});var A;return E}},{immediate:36}],38:[function(m,L,x){var u={};(0,m("./lib/utils/common").assign)(u,m("./lib/deflate"),m("./lib/inflate"),m("./lib/zlib/constants")),L.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(m,L,x){var u=m("./zlib/deflate"),l=m("./utils/common"),r=m("./utils/strings"),o=m("./zlib/messages"),b=m("./zlib/zstream"),k=Object.prototype.toString,g=0,y=-1,i=0,d=8;function n(a){if(!(this instanceof n))return new n(a);this.options=l.assign({level:y,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:i,to:""},a||{});var c=this.options;c.raw&&0<c.windowBits?c.windowBits=-c.windowBits:c.gzip&&0<c.windowBits&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var p=u.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(p!==g)throw new Error(o[p]);if(c.header&&u.deflateSetHeader(this.strm,c.header),c.dictionary){var w;if(w=typeof c.dictionary=="string"?r.string2buf(c.dictionary):k.call(c.dictionary)==="[object ArrayBuffer]"?new Uint8Array(c.dictionary):c.dictionary,(p=u.deflateSetDictionary(this.strm,w))!==g)throw new Error(o[p]);this._dict_set=!0}}function h(a,c){var p=new n(c);if(p.push(a,!0),p.err)throw p.msg||o[p.err];return p.result}n.prototype.push=function(a,c){var p,w,v=this.strm,E=this.options.chunkSize;if(this.ended)return!1;w=c===~~c?c:c===!0?4:0,typeof a=="string"?v.input=r.string2buf(a):k.call(a)==="[object ArrayBuffer]"?v.input=new Uint8Array(a):v.input=a,v.next_in=0,v.avail_in=v.input.length;do{if(v.avail_out===0&&(v.output=new l.Buf8(E),v.next_out=0,v.avail_out=E),(p=u.deflate(v,w))!==1&&p!==g)return this.onEnd(p),!(this.ended=!0);v.avail_out!==0&&(v.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(r.buf2binstring(l.shrinkBuf(v.output,v.next_out))):this.onData(l.shrinkBuf(v.output,v.next_out)))}while((0<v.avail_in||v.avail_out===0)&&p!==1);return w===4?(p=u.deflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===g):w!==2||(this.onEnd(g),!(v.avail_out=0))},n.prototype.onData=function(a){this.chunks.push(a)},n.prototype.onEnd=function(a){a===g&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},x.Deflate=n,x.deflate=h,x.deflateRaw=function(a,c){return(c=c||{}).raw=!0,h(a,c)},x.gzip=function(a,c){return(c=c||{}).gzip=!0,h(a,c)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(m,L,x){var u=m("./zlib/inflate"),l=m("./utils/common"),r=m("./utils/strings"),o=m("./zlib/constants"),b=m("./zlib/messages"),k=m("./zlib/zstream"),g=m("./zlib/gzheader"),y=Object.prototype.toString;function i(n){if(!(this instanceof i))return new i(n);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},n||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||n&&n.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&(15&h.windowBits)==0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var a=u.inflateInit2(this.strm,h.windowBits);if(a!==o.Z_OK)throw new Error(b[a]);this.header=new g,u.inflateGetHeader(this.strm,this.header)}function d(n,h){var a=new i(h);if(a.push(n,!0),a.err)throw a.msg||b[a.err];return a.result}i.prototype.push=function(n,h){var a,c,p,w,v,E,A=this.strm,R=this.options.chunkSize,O=this.options.dictionary,j=!1;if(this.ended)return!1;c=h===~~h?h:h===!0?o.Z_FINISH:o.Z_NO_FLUSH,typeof n=="string"?A.input=r.binstring2buf(n):y.call(n)==="[object ArrayBuffer]"?A.input=new Uint8Array(n):A.input=n,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new l.Buf8(R),A.next_out=0,A.avail_out=R),(a=u.inflate(A,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&O&&(E=typeof O=="string"?r.string2buf(O):y.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,a=u.inflateSetDictionary(this.strm,E)),a===o.Z_BUF_ERROR&&j===!0&&(a=o.Z_OK,j=!1),a!==o.Z_STREAM_END&&a!==o.Z_OK)return this.onEnd(a),!(this.ended=!0);A.next_out&&(A.avail_out!==0&&a!==o.Z_STREAM_END&&(A.avail_in!==0||c!==o.Z_FINISH&&c!==o.Z_SYNC_FLUSH)||(this.options.to==="string"?(p=r.utf8border(A.output,A.next_out),w=A.next_out-p,v=r.buf2string(A.output,p),A.next_out=w,A.avail_out=R-w,w&&l.arraySet(A.output,A.output,p,w,0),this.onData(v)):this.onData(l.shrinkBuf(A.output,A.next_out)))),A.avail_in===0&&A.avail_out===0&&(j=!0)}while((0<A.avail_in||A.avail_out===0)&&a!==o.Z_STREAM_END);return a===o.Z_STREAM_END&&(c=o.Z_FINISH),c===o.Z_FINISH?(a=u.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===o.Z_OK):c!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(A.avail_out=0))},i.prototype.onData=function(n){this.chunks.push(n)},i.prototype.onEnd=function(n){n===o.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg},x.Inflate=i,x.inflate=d,x.inflateRaw=function(n,h){return(h=h||{}).raw=!0,d(n,h)},x.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(m,L,x){var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";x.assign=function(o){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var k=b.shift();if(k){if(typeof k!="object")throw new TypeError(k+"must be non-object");for(var g in k)k.hasOwnProperty(g)&&(o[g]=k[g])}}return o},x.shrinkBuf=function(o,b){return o.length===b?o:o.subarray?o.subarray(0,b):(o.length=b,o)};var l={arraySet:function(o,b,k,g,y){if(b.subarray&&o.subarray)o.set(b.subarray(k,k+g),y);else for(var i=0;i<g;i++)o[y+i]=b[k+i]},flattenChunks:function(o){var b,k,g,y,i,d;for(b=g=0,k=o.length;b<k;b++)g+=o[b].length;for(d=new Uint8Array(g),b=y=0,k=o.length;b<k;b++)i=o[b],d.set(i,y),y+=i.length;return d}},r={arraySet:function(o,b,k,g,y){for(var i=0;i<g;i++)o[y+i]=b[k+i]},flattenChunks:function(o){return[].concat.apply([],o)}};x.setTyped=function(o){o?(x.Buf8=Uint8Array,x.Buf16=Uint16Array,x.Buf32=Int32Array,x.assign(x,l)):(x.Buf8=Array,x.Buf16=Array,x.Buf32=Array,x.assign(x,r))},x.setTyped(u)},{}],42:[function(m,L,x){var u=m("./common"),l=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(g){l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(g){r=!1}for(var o=new u.Buf8(256),b=0;b<256;b++)o[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;function k(g,y){if(y<65537&&(g.subarray&&r||!g.subarray&&l))return String.fromCharCode.apply(null,u.shrinkBuf(g,y));for(var i="",d=0;d<y;d++)i+=String.fromCharCode(g[d]);return i}o[254]=o[254]=1,x.string2buf=function(g){var y,i,d,n,h,a=g.length,c=0;for(n=0;n<a;n++)(64512&(i=g.charCodeAt(n)))==55296&&n+1<a&&(64512&(d=g.charCodeAt(n+1)))==56320&&(i=65536+(i-55296<<10)+(d-56320),n++),c+=i<128?1:i<2048?2:i<65536?3:4;for(y=new u.Buf8(c),n=h=0;h<c;n++)(64512&(i=g.charCodeAt(n)))==55296&&n+1<a&&(64512&(d=g.charCodeAt(n+1)))==56320&&(i=65536+(i-55296<<10)+(d-56320),n++),i<128?y[h++]=i:(i<2048?y[h++]=192|i>>>6:(i<65536?y[h++]=224|i>>>12:(y[h++]=240|i>>>18,y[h++]=128|i>>>12&63),y[h++]=128|i>>>6&63),y[h++]=128|63&i);return y},x.buf2binstring=function(g){return k(g,g.length)},x.binstring2buf=function(g){for(var y=new u.Buf8(g.length),i=0,d=y.length;i<d;i++)y[i]=g.charCodeAt(i);return y},x.buf2string=function(g,y){var i,d,n,h,a=y||g.length,c=new Array(2*a);for(i=d=0;i<a;)if((n=g[i++])<128)c[d++]=n;else if(4<(h=o[n]))c[d++]=65533,i+=h-1;else{for(n&=h===2?31:h===3?15:7;1<h&&i<a;)n=n<<6|63&g[i++],h--;1<h?c[d++]=65533:n<65536?c[d++]=n:(n-=65536,c[d++]=55296|n>>10&1023,c[d++]=56320|1023&n)}return k(c,d)},x.utf8border=function(g,y){var i;for((y=y||g.length)>g.length&&(y=g.length),i=y-1;0<=i&&(192&g[i])==128;)i--;return i<0||i===0?y:i+o[g[i]]>y?i:y}},{"./common":41}],43:[function(m,L,x){L.exports=function(u,l,r,o){for(var b=65535&u|0,k=u>>>16&65535|0,g=0;r!==0;){for(r-=g=2e3<r?2e3:r;k=k+(b=b+l[o++]|0)|0,--g;);b%=65521,k%=65521}return b|k<<16|0}},{}],44:[function(m,L,x){L.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(m,L,x){var u=function(){for(var l,r=[],o=0;o<256;o++){l=o;for(var b=0;b<8;b++)l=1&l?3988292384^l>>>1:l>>>1;r[o]=l}return r}();L.exports=function(l,r,o,b){var k=u,g=b+o;l^=-1;for(var y=b;y<g;y++)l=l>>>8^k[255&(l^r[y])];return-1^l}},{}],46:[function(m,L,x){var u,l=m("../utils/common"),r=m("./trees"),o=m("./adler32"),b=m("./crc32"),k=m("./messages"),g=0,y=4,i=0,d=-2,n=-1,h=4,a=2,c=8,p=9,w=286,v=30,E=19,A=2*w+1,R=15,O=3,j=258,K=j+O+1,_=42,B=113,e=1,N=2,J=3,P=4;function Q(t,D){return t.msg=k[D],D}function Z(t){return(t<<1)-(4<t?9:0)}function q(t){for(var D=t.length;0<=--D;)t[D]=0}function I(t){var D=t.state,T=D.pending;T>t.avail_out&&(T=t.avail_out),T!==0&&(l.arraySet(t.output,D.pending_buf,D.pending_out,T,t.next_out),t.next_out+=T,D.pending_out+=T,t.total_out+=T,t.avail_out-=T,D.pending-=T,D.pending===0&&(D.pending_out=0))}function z(t,D){r._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,D),t.block_start=t.strstart,I(t.strm)}function $(t,D){t.pending_buf[t.pending++]=D}function H(t,D){t.pending_buf[t.pending++]=D>>>8&255,t.pending_buf[t.pending++]=255&D}function G(t,D){var T,f,s=t.max_chain_length,S=t.strstart,F=t.prev_length,U=t.nice_match,C=t.strstart>t.w_size-K?t.strstart-(t.w_size-K):0,W=t.window,Y=t.w_mask,M=t.prev,X=t.strstart+j,rt=W[S+F-1],tt=W[S+F];t.prev_length>=t.good_match&&(s>>=2),U>t.lookahead&&(U=t.lookahead);do if(W[(T=D)+F]===tt&&W[T+F-1]===rt&&W[T]===W[S]&&W[++T]===W[S+1]){S+=2,T++;do;while(W[++S]===W[++T]&&W[++S]===W[++T]&&W[++S]===W[++T]&&W[++S]===W[++T]&&W[++S]===W[++T]&&W[++S]===W[++T]&&W[++S]===W[++T]&&W[++S]===W[++T]&&S<X);if(f=j-(X-S),S=X-j,F<f){if(t.match_start=D,U<=(F=f))break;rt=W[S+F-1],tt=W[S+F]}}while((D=M[D&Y])>C&&--s!=0);return F<=t.lookahead?F:t.lookahead}function it(t){var D,T,f,s,S,F,U,C,W,Y,M=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=M+(M-K)){for(l.arraySet(t.window,t.window,M,M,0),t.match_start-=M,t.strstart-=M,t.block_start-=M,D=T=t.hash_size;f=t.head[--D],t.head[D]=M<=f?f-M:0,--T;);for(D=T=M;f=t.prev[--D],t.prev[D]=M<=f?f-M:0,--T;);s+=M}if(t.strm.avail_in===0)break;if(F=t.strm,U=t.window,C=t.strstart+t.lookahead,W=s,Y=void 0,Y=F.avail_in,W<Y&&(Y=W),T=Y===0?0:(F.avail_in-=Y,l.arraySet(U,F.input,F.next_in,Y,C),F.state.wrap===1?F.adler=o(F.adler,U,Y,C):F.state.wrap===2&&(F.adler=b(F.adler,U,Y,C)),F.next_in+=Y,F.total_in+=Y,Y),t.lookahead+=T,t.lookahead+t.insert>=O)for(S=t.strstart-t.insert,t.ins_h=t.window[S],t.ins_h=(t.ins_h<<t.hash_shift^t.window[S+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[S+O-1])&t.hash_mask,t.prev[S&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=S,S++,t.insert--,!(t.lookahead+t.insert<O)););}while(t.lookahead<K&&t.strm.avail_in!==0)}function ut(t,D){for(var T,f;;){if(t.lookahead<K){if(it(t),t.lookahead<K&&D===g)return e;if(t.lookahead===0)break}if(T=0,t.lookahead>=O&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,T=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),T!==0&&t.strstart-T<=t.w_size-K&&(t.match_length=G(t,T)),t.match_length>=O)if(f=r._tr_tally(t,t.strstart-t.match_start,t.match_length-O),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=O){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,T=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else f=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(f&&(z(t,!1),t.strm.avail_out===0))return e}return t.insert=t.strstart<O-1?t.strstart:O-1,D===y?(z(t,!0),t.strm.avail_out===0?J:P):t.last_lit&&(z(t,!1),t.strm.avail_out===0)?e:N}function V(t,D){for(var T,f,s;;){if(t.lookahead<K){if(it(t),t.lookahead<K&&D===g)return e;if(t.lookahead===0)break}if(T=0,t.lookahead>=O&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,T=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=O-1,T!==0&&t.prev_length<t.max_lazy_match&&t.strstart-T<=t.w_size-K&&(t.match_length=G(t,T),t.match_length<=5&&(t.strategy===1||t.match_length===O&&4096<t.strstart-t.match_start)&&(t.match_length=O-1)),t.prev_length>=O&&t.match_length<=t.prev_length){for(s=t.strstart+t.lookahead-O,f=r._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-O),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=s&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+O-1])&t.hash_mask,T=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=O-1,t.strstart++,f&&(z(t,!1),t.strm.avail_out===0))return e}else if(t.match_available){if((f=r._tr_tally(t,0,t.window[t.strstart-1]))&&z(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return e}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(f=r._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<O-1?t.strstart:O-1,D===y?(z(t,!0),t.strm.avail_out===0?J:P):t.last_lit&&(z(t,!1),t.strm.avail_out===0)?e:N}function et(t,D,T,f,s){this.good_length=t,this.max_lazy=D,this.nice_length=T,this.max_chain=f,this.func=s}function ot(){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=c,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*A),this.dyn_dtree=new l.Buf16(2*(2*v+1)),this.bl_tree=new l.Buf16(2*(2*E+1)),q(this.dyn_ltree),q(this.dyn_dtree),q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(R+1),this.heap=new l.Buf16(2*w+1),q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*w+1),q(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 at(t){var D;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=a,(D=t.state).pending=0,D.pending_out=0,D.wrap<0&&(D.wrap=-D.wrap),D.status=D.wrap?_:B,t.adler=D.wrap===2?0:1,D.last_flush=g,r._tr_init(D),i):Q(t,d)}function pt(t){var D=at(t);return D===i&&function(T){T.window_size=2*T.w_size,q(T.head),T.max_lazy_match=u[T.level].max_lazy,T.good_match=u[T.level].good_length,T.nice_match=u[T.level].nice_length,T.max_chain_length=u[T.level].max_chain,T.strstart=0,T.block_start=0,T.lookahead=0,T.insert=0,T.match_length=T.prev_length=O-1,T.match_available=0,T.ins_h=0}(t.state),D}function ct(t,D,T,f,s,S){if(!t)return d;var F=1;if(D===n&&(D=6),f<0?(F=0,f=-f):15<f&&(F=2,f-=16),s<1||p<s||T!==c||f<8||15<f||D<0||9<D||S<0||h<S)return Q(t,d);f===8&&(f=9);var U=new ot;return(t.state=U).strm=t,U.wrap=F,U.gzhead=null,U.w_bits=f,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=s+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+O-1)/O),U.window=new l.Buf8(2*U.w_size),U.head=new l.Buf16(U.hash_size),U.prev=new l.Buf16(U.w_size),U.lit_bufsize=1<<s+6,U.pending_buf_size=4*U.lit_bufsize,U.pending_buf=new l.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=D,U.strategy=S,U.method=T,pt(t)}u=[new et(0,0,0,0,function(t,D){var T=65535;for(T>t.pending_buf_size-5&&(T=t.pending_buf_size-5);;){if(t.lookahead<=1){if(it(t),t.lookahead===0&&D===g)return e;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var f=t.block_start+T;if((t.strstart===0||t.strstart>=f)&&(t.lookahead=t.strstart-f,t.strstart=f,z(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-K&&(z(t,!1),t.strm.avail_out===0))return e}return t.insert=0,D===y?(z(t,!0),t.strm.avail_out===0?J:P):(t.strstart>t.block_start&&(z(t,!1),t.strm.avail_out),e)}),new et(4,4,8,4,ut),new et(4,5,16,8,ut),new et(4,6,32,32,ut),new et(4,4,16,16,V),new et(8,16,32,32,V),new et(8,16,128,128,V),new et(8,32,128,256,V),new et(32,128,258,1024,V),new et(32,258,258,4096,V)],x.deflateInit=function(t,D){return ct(t,D,c,15,8,0)},x.deflateInit2=ct,x.deflateReset=pt,x.deflateResetKeep=at,x.deflateSetHeader=function(t,D){return t&&t.state?t.state.wrap!==2?d:(t.state.gzhead=D,i):d},x.deflate=function(t,D){var T,f,s,S;if(!t||!t.state||5<D||D<0)return t?Q(t,d):d;if(f=t.state,!t.output||!t.input&&t.avail_in!==0||f.status===666&&D!==y)return Q(t,t.avail_out===0?-5:d);if(f.strm=t,T=f.last_flush,f.last_flush=D,f.status===_)if(f.wrap===2)t.adler=0,$(f,31),$(f,139),$(f,8),f.gzhead?($(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),$(f,255&f.gzhead.time),$(f,f.gzhead.time>>8&255),$(f,f.gzhead.time>>16&255),$(f,f.gzhead.time>>24&255),$(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),$(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&($(f,255&f.gzhead.extra.length),$(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=b(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):($(f,0),$(f,0),$(f,0),$(f,0),$(f,0),$(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),$(f,3),f.status=B);else{var F=c+(f.w_bits-8<<4)<<8;F|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(F|=32),F+=31-F%31,f.status=B,H(f,F),f.strstart!==0&&(H(f,t.adler>>>16),H(f,65535&t.adler)),t.adler=1}if(f.status===69)if(f.gzhead.extra){for(s=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>s&&(t.adler=b(t.adler,f.pending_buf,f.pending-s,s)),I(t),s=f.pending,f.pending!==f.pending_buf_size));)$(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>s&&(t.adler=b(t.adler,f.pending_buf,f.pending-s,s)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=b(t.adler,f.pending_buf,f.pending-s,s)),I(t),s=f.pending,f.pending===f.pending_buf_size)){S=1;break}S=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,$(f,S)}while(S!==0);f.gzhead.hcrc&&f.pending>s&&(t.adler=b(t.adler,f.pending_buf,f.pending-s,s)),S===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=b(t.adler,f.pending_buf,f.pending-s,s)),I(t),s=f.pending,f.pending===f.pending_buf_size)){S=1;break}S=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,$(f,S)}while(S!==0);f.gzhead.hcrc&&f.pending>s&&(t.adler=b(t.adler,f.pending_buf,f.pending-s,s)),S===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&I(t),f.pending+2<=f.pending_buf_size&&($(f,255&t.adler),$(f,t.adler>>8&255),t.adler=0,f.status=B)):f.status=B),f.pending!==0){if(I(t),t.avail_out===0)return f.last_flush=-1,i}else if(t.avail_in===0&&Z(D)<=Z(T)&&D!==y)return Q(t,-5);if(f.status===666&&t.avail_in!==0)return Q(t,-5);if(t.avail_in!==0||f.lookahead!==0||D!==g&&f.status!==666){var U=f.strategy===2?function(C,W){for(var Y;;){if(C.lookahead===0&&(it(C),C.lookahead===0)){if(W===g)return e;break}if(C.match_length=0,Y=r._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++,Y&&(z(C,!1),C.strm.avail_out===0))return e}return C.insert=0,W===y?(z(C,!0),C.strm.avail_out===0?J:P):C.last_lit&&(z(C,!1),C.strm.avail_out===0)?e:N}(f,D):f.strategy===3?function(C,W){for(var Y,M,X,rt,tt=C.window;;){if(C.lookahead<=j){if(it(C),C.lookahead<=j&&W===g)return e;if(C.lookahead===0)break}if(C.match_length=0,C.lookahead>=O&&0<C.strstart&&(M=tt[X=C.strstart-1])===tt[++X]&&M===tt[++X]&&M===tt[++X]){rt=C.strstart+j;do;while(M===tt[++X]&&M===tt[++X]&&M===tt[++X]&&M===tt[++X]&&M===tt[++X]&&M===tt[++X]&&M===tt[++X]&&M===tt[++X]&&X<rt);C.match_length=j-(rt-X),C.match_length>C.lookahead&&(C.match_length=C.lookahead)}if(C.match_length>=O?(Y=r._tr_tally(C,1,C.match_length-O),C.lookahead-=C.match_length,C.strstart+=C.match_length,C.match_length=0):(Y=r._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++),Y&&(z(C,!1),C.strm.avail_out===0))return e}return C.insert=0,W===y?(z(C,!0),C.strm.avail_out===0?J:P):C.last_lit&&(z(C,!1),C.strm.avail_out===0)?e:N}(f,D):u[f.level].func(f,D);if(U!==J&&U!==P||(f.status=666),U===e||U===J)return t.avail_out===0&&(f.last_flush=-1),i;if(U===N&&(D===1?r._tr_align(f):D!==5&&(r._tr_stored_block(f,0,0,!1),D===3&&(q(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),I(t),t.avail_out===0))return f.last_flush=-1,i}return D!==y?i:f.wrap<=0?1:(f.wrap===2?($(f,255&t.adler),$(f,t.adler>>8&255),$(f,t.adler>>16&255),$(f,t.adler>>24&255),$(f,255&t.total_in),$(f,t.total_in>>8&255),$(f,t.total_in>>16&255),$(f,t.total_in>>24&255)):(H(f,t.adler>>>16),H(f,65535&t.adler)),I(t),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?i:1)},x.deflateEnd=function(t){var D;return t&&t.state?(D=t.state.status)!==_&&D!==69&&D!==73&&D!==91&&D!==103&&D!==B&&D!==666?Q(t,d):(t.state=null,D===B?Q(t,-3):i):d},x.deflateSetDictionary=function(t,D){var T,f,s,S,F,U,C,W,Y=D.length;if(!t||!t.state||(S=(T=t.state).wrap)===2||S===1&&T.status!==_||T.lookahead)return d;for(S===1&&(t.adler=o(t.adler,D,Y,0)),T.wrap=0,Y>=T.w_size&&(S===0&&(q(T.head),T.strstart=0,T.block_start=0,T.insert=0),W=new l.Buf8(T.w_size),l.arraySet(W,D,Y-T.w_size,T.w_size,0),D=W,Y=T.w_size),F=t.avail_in,U=t.next_in,C=t.input,t.avail_in=Y,t.next_in=0,t.input=D,it(T);T.lookahead>=O;){for(f=T.strstart,s=T.lookahead-(O-1);T.ins_h=(T.ins_h<<T.hash_shift^T.window[f+O-1])&T.hash_mask,T.prev[f&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=f,f++,--s;);T.strstart=f,T.lookahead=O-1,it(T)}return T.strstart+=T.lookahead,T.block_start=T.strstart,T.insert=T.lookahead,T.lookahead=0,T.match_length=T.prev_length=O-1,T.match_available=0,t.next_in=U,t.input=C,t.avail_in=F,T.wrap=S,i},x.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(m,L,x){L.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(m,L,x){L.exports=function(u,l){var r,o,b,k,g,y,i,d,n,h,a,c,p,w,v,E,A,R,O,j,K,_,B,e,N;r=u.state,o=u.next_in,e=u.input,b=o+(u.avail_in-5),k=u.next_out,N=u.output,g=k-(l-u.avail_out),y=k+(u.avail_out-257),i=r.dmax,d=r.wsize,n=r.whave,h=r.wnext,a=r.window,c=r.hold,p=r.bits,w=r.lencode,v=r.distcode,E=(1<<r.lenbits)-1,A=(1<<r.distbits)-1;t:do{p<15&&(c+=e[o++]<<p,p+=8,c+=e[o++]<<p,p+=8),R=w[c&E];e:for(;;){if(c>>>=O=R>>>24,p-=O,(O=R>>>16&255)===0)N[k++]=65535&R;else{if(!(16&O)){if((64&O)==0){R=w[(65535&R)+(c&(1<<O)-1)];continue e}if(32&O){r.mode=12;break t}u.msg="invalid literal/length code",r.mode=30;break t}j=65535&R,(O&=15)&&(p<O&&(c+=e[o++]<<p,p+=8),j+=c&(1<<O)-1,c>>>=O,p-=O),p<15&&(c+=e[o++]<<p,p+=8,c+=e[o++]<<p,p+=8),R=v[c&A];r:for(;;){if(c>>>=O=R>>>24,p-=O,!(16&(O=R>>>16&255))){if((64&O)==0){R=v[(65535&R)+(c&(1<<O)-1)];continue r}u.msg="invalid distance code",r.mode=30;break t}if(K=65535&R,p<(O&=15)&&(c+=e[o++]<<p,(p+=8)<O&&(c+=e[o++]<<p,p+=8)),i<(K+=c&(1<<O)-1)){u.msg="invalid distance too far back",r.mode=30;break t}if(c>>>=O,p-=O,(O=k-g)<K){if(n<(O=K-O)&&r.sane){u.msg="invalid distance too far back",r.mode=30;break t}if(B=a,(_=0)===h){if(_+=d-O,O<j){for(j-=O;N[k++]=a[_++],--O;);_=k-K,B=N}}else if(h<O){if(_+=d+h-O,(O-=h)<j){for(j-=O;N[k++]=a[_++],--O;);if(_=0,h<j){for(j-=O=h;N[k++]=a[_++],--O;);_=k-K,B=N}}}else if(_+=h-O,O<j){for(j-=O;N[k++]=a[_++],--O;);_=k-K,B=N}for(;2<j;)N[k++]=B[_++],N[k++]=B[_++],N[k++]=B[_++],j-=3;j&&(N[k++]=B[_++],1<j&&(N[k++]=B[_++]))}else{for(_=k-K;N[k++]=N[_++],N[k++]=N[_++],N[k++]=N[_++],2<(j-=3););j&&(N[k++]=N[_++],1<j&&(N[k++]=N[_++]))}break}}break}}while(o<b&&k<y);o-=j=p>>3,c&=(1<<(p-=j<<3))-1,u.next_in=o,u.next_out=k,u.avail_in=o<b?b-o+5:5-(o-b),u.avail_out=k<y?y-k+257:257-(k-y),r.hold=c,r.bits=p}},{}],49:[function(m,L,x){var u=m("../utils/common"),l=m("./adler32"),r=m("./crc32"),o=m("./inffast"),b=m("./inftrees"),k=1,g=2,y=0,i=-2,d=1,n=852,h=592;function a(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function c(){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 u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(_){var B;return _&&_.state?(B=_.state,_.total_in=_.total_out=B.total=0,_.msg="",B.wrap&&(_.adler=1&B.wrap),B.mode=d,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new u.Buf32(n),B.distcode=B.distdyn=new u.Buf32(h),B.sane=1,B.back=-1,y):i}function w(_){var B;return _&&_.state?((B=_.state).wsize=0,B.whave=0,B.wnext=0,p(_)):i}function v(_,B){var e,N;return _&&_.state?(N=_.state,B<0?(e=0,B=-B):(e=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?i:(N.window!==null&&N.wbits!==B&&(N.window=null),N.wrap=e,N.wbits=B,w(_))):i}function E(_,B){var e,N;return _?(N=new c,(_.state=N).window=null,(e=v(_,B))!==y&&(_.state=null),e):i}var A,R,O=!0;function j(_){if(O){var B;for(A=new u.Buf32(512),R=new u.Buf32(32),B=0;B<144;)_.lens[B++]=8;for(;B<256;)_.lens[B++]=9;for(;B<280;)_.lens[B++]=7;for(;B<288;)_.lens[B++]=8;for(b(k,_.lens,0,288,A,0,_.work,{bits:9}),B=0;B<32;)_.lens[B++]=5;b(g,_.lens,0,32,R,0,_.work,{bits:5}),O=!1}_.lencode=A,_.lenbits=9,_.distcode=R,_.distbits=5}function K(_,B,e,N){var J,P=_.state;return P.window===null&&(P.wsize=1<<P.wbits,P.wnext=0,P.whave=0,P.window=new u.Buf8(P.wsize)),N>=P.wsize?(u.arraySet(P.window,B,e-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(N<(J=P.wsize-P.wnext)&&(J=N),u.arraySet(P.window,B,e-N,J,P.wnext),(N-=J)?(u.arraySet(P.window,B,e-N,N,0),P.wnext=N,P.whave=P.wsize):(P.wnext+=J,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=J))),0}x.inflateReset=w,x.inflateReset2=v,x.inflateResetKeep=p,x.inflateInit=function(_){return E(_,15)},x.inflateInit2=E,x.inflate=function(_,B){var e,N,J,P,Q,Z,q,I,z,$,H,G,it,ut,V,et,ot,at,pt,ct,t,D,T,f,s=0,S=new u.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return i;(e=_.state).mode===12&&(e.mode=13),Q=_.next_out,J=_.output,q=_.avail_out,P=_.next_in,N=_.input,Z=_.avail_in,I=e.hold,z=e.bits,$=Z,H=q,D=y;t:for(;;)switch(e.mode){case d:if(e.wrap===0){e.mode=13;break}for(;z<16;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if(2&e.wrap&&I===35615){S[e.check=0]=255&I,S[1]=I>>>8&255,e.check=r(e.check,S,2,0),z=I=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&I)<<8)+(I>>8))%31){_.msg="incorrect header check",e.mode=30;break}if((15&I)!=8){_.msg="unknown compression method",e.mode=30;break}if(z-=4,t=8+(15&(I>>>=4)),e.wbits===0)e.wbits=t;else if(t>e.wbits){_.msg="invalid window size",e.mode=30;break}e.dmax=1<<t,_.adler=e.check=1,e.mode=512&I?10:12,z=I=0;break;case 2:for(;z<16;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if(e.flags=I,(255&e.flags)!=8){_.msg="unknown compression method",e.mode=30;break}if(57344&e.flags){_.msg="unknown header flags set",e.mode=30;break}e.head&&(e.head.text=I>>8&1),512&e.flags&&(S[0]=255&I,S[1]=I>>>8&255,e.check=r(e.check,S,2,0)),z=I=0,e.mode=3;case 3:for(;z<32;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}e.head&&(e.head.time=I),512&e.flags&&(S[0]=255&I,S[1]=I>>>8&255,S[2]=I>>>16&255,S[3]=I>>>24&255,e.check=r(e.check,S,4,0)),z=I=0,e.mode=4;case 4:for(;z<16;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}e.head&&(e.head.xflags=255&I,e.head.os=I>>8),512&e.flags&&(S[0]=255&I,S[1]=I>>>8&255,e.check=r(e.check,S,2,0)),z=I=0,e.mode=5;case 5:if(1024&e.flags){for(;z<16;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}e.length=I,e.head&&(e.head.extra_len=I),512&e.flags&&(S[0]=255&I,S[1]=I>>>8&255,e.check=r(e.check,S,2,0)),z=I=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&(Z<(G=e.length)&&(G=Z),G&&(e.head&&(t=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),u.arraySet(e.head.extra,N,P,G,t)),512&e.flags&&(e.check=r(e.check,N,G,P)),Z-=G,P+=G,e.length-=G),e.length))break t;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(Z===0)break t;for(G=0;t=N[P+G++],e.head&&t&&e.length<65536&&(e.head.name+=String.fromCharCode(t)),t&&G<Z;);if(512&e.flags&&(e.check=r(e.check,N,G,P)),Z-=G,P+=G,t)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=8;case 8:if(4096&e.flags){if(Z===0)break t;for(G=0;t=N[P+G++],e.head&&t&&e.length<65536&&(e.head.comment+=String.fromCharCode(t)),t&&G<Z;);if(512&e.flags&&(e.check=r(e.check,N,G,P)),Z-=G,P+=G,t)break t}else e.head&&(e.head.comment=null);e.mode=9;case 9:if(512&e.flags){for(;z<16;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if(I!==(65535&e.check)){_.msg="header crc mismatch",e.mode=30;break}z=I=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),_.adler=e.check=0,e.mode=12;break;case 10:for(;z<32;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}_.adler=e.check=a(I),z=I=0,e.mode=11;case 11:if(e.havedict===0)return _.next_out=Q,_.avail_out=q,_.next_in=P,_.avail_in=Z,e.hold=I,e.bits=z,2;_.adler=e.check=1,e.mode=12;case 12:if(B===5||B===6)break t;case 13:if(e.last){I>>>=7&z,z-=7&z,e.mode=27;break}for(;z<3;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}switch(e.last=1&I,z-=1,3&(I>>>=1)){case 0:e.mode=14;break;case 1:if(j(e),e.mode=20,B!==6)break;I>>>=2,z-=2;break t;case 2:e.mode=17;break;case 3:_.msg="invalid block type",e.mode=30}I>>>=2,z-=2;break;case 14:for(I>>>=7&z,z-=7&z;z<32;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if((65535&I)!=(I>>>16^65535)){_.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&I,z=I=0,e.mode=15,B===6)break t;case 15:e.mode=16;case 16:if(G=e.length){if(Z<G&&(G=Z),q<G&&(G=q),G===0)break t;u.arraySet(J,N,P,G,Q),Z-=G,P+=G,q-=G,Q+=G,e.length-=G;break}e.mode=12;break;case 17:for(;z<14;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if(e.nlen=257+(31&I),I>>>=5,z-=5,e.ndist=1+(31&I),I>>>=5,z-=5,e.ncode=4+(15&I),I>>>=4,z-=4,286<e.nlen||30<e.ndist){_.msg="too many length or distance symbols",e.mode=30;break}e.have=0,e.mode=18;case 18:for(;e.have<e.ncode;){for(;z<3;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}e.lens[F[e.have++]]=7&I,I>>>=3,z-=3}for(;e.have<19;)e.lens[F[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,T={bits:e.lenbits},D=b(0,e.lens,0,19,e.lencode,0,e.work,T),e.lenbits=T.bits,D){_.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have<e.nlen+e.ndist;){for(;et=(s=e.lencode[I&(1<<e.lenbits)-1])>>>16&255,ot=65535&s,!((V=s>>>24)<=z);){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if(ot<16)I>>>=V,z-=V,e.lens[e.have++]=ot;else{if(ot===16){for(f=V+2;z<f;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if(I>>>=V,z-=V,e.have===0){_.msg="invalid bit length repeat",e.mode=30;break}t=e.lens[e.have-1],G=3+(3&I),I>>>=2,z-=2}else if(ot===17){for(f=V+3;z<f;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}z-=V,t=0,G=3+(7&(I>>>=V)),I>>>=3,z-=3}else{for(f=V+7;z<f;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}z-=V,t=0,G=11+(127&(I>>>=V)),I>>>=7,z-=7}if(e.have+G>e.nlen+e.ndist){_.msg="invalid bit length repeat",e.mode=30;break}for(;G--;)e.lens[e.have++]=t}}if(e.mode===30)break;if(e.lens[256]===0){_.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,T={bits:e.lenbits},D=b(k,e.lens,0,e.nlen,e.lencode,0,e.work,T),e.lenbits=T.bits,D){_.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,T={bits:e.distbits},D=b(g,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,T),e.distbits=T.bits,D){_.msg="invalid distances set",e.mode=30;break}if(e.mode=20,B===6)break t;case 20:e.mode=21;case 21:if(6<=Z&&258<=q){_.next_out=Q,_.avail_out=q,_.next_in=P,_.avail_in=Z,e.hold=I,e.bits=z,o(_,H),Q=_.next_out,J=_.output,q=_.avail_out,P=_.next_in,N=_.input,Z=_.avail_in,I=e.hold,z=e.bits,e.mode===12&&(e.back=-1);break}for(e.back=0;et=(s=e.lencode[I&(1<<e.lenbits)-1])>>>16&255,ot=65535&s,!((V=s>>>24)<=z);){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if(et&&(240&et)==0){for(at=V,pt=et,ct=ot;et=(s=e.lencode[ct+((I&(1<<at+pt)-1)>>at)])>>>16&255,ot=65535&s,!(at+(V=s>>>24)<=z);){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}I>>>=at,z-=at,e.back+=at}if(I>>>=V,z-=V,e.back+=V,e.length=ot,et===0){e.mode=26;break}if(32&et){e.back=-1,e.mode=12;break}if(64&et){_.msg="invalid literal/length code",e.mode=30;break}e.extra=15&et,e.mode=22;case 22:if(e.extra){for(f=e.extra;z<f;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}e.length+=I&(1<<e.extra)-1,I>>>=e.extra,z-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;et=(s=e.distcode[I&(1<<e.distbits)-1])>>>16&255,ot=65535&s,!((V=s>>>24)<=z);){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if((240&et)==0){for(at=V,pt=et,ct=ot;et=(s=e.distcode[ct+((I&(1<<at+pt)-1)>>at)])>>>16&255,ot=65535&s,!(at+(V=s>>>24)<=z);){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}I>>>=at,z-=at,e.back+=at}if(I>>>=V,z-=V,e.back+=V,64&et){_.msg="invalid distance code",e.mode=30;break}e.offset=ot,e.extra=15&et,e.mode=24;case 24:if(e.extra){for(f=e.extra;z<f;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}e.offset+=I&(1<<e.extra)-1,I>>>=e.extra,z-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){_.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(q===0)break t;if(G=H-q,e.offset>G){if((G=e.offset-G)>e.whave&&e.sane){_.msg="invalid distance too far back",e.mode=30;break}it=G>e.wnext?(G-=e.wnext,e.wsize-G):e.wnext-G,G>e.length&&(G=e.length),ut=e.window}else ut=J,it=Q-e.offset,G=e.length;for(q<G&&(G=q),q-=G,e.length-=G;J[Q++]=ut[it++],--G;);e.length===0&&(e.mode=21);break;case 26:if(q===0)break t;J[Q++]=e.length,q--,e.mode=21;break;case 27:if(e.wrap){for(;z<32;){if(Z===0)break t;Z--,I|=N[P++]<<z,z+=8}if(H-=q,_.total_out+=H,e.total+=H,H&&(_.adler=e.check=e.flags?r(e.check,J,H,Q-H):l(e.check,J,H,Q-H)),H=q,(e.flags?I:a(I))!==e.check){_.msg="incorrect data check",e.mode=30;break}z=I=0}e.mode=28;case 28:if(e.wrap&&e.flags){for(;z<32;){if(Z===0)break t;Z--,I+=N[P++]<<z,z+=8}if(I!==(4294967295&e.total)){_.msg="incorrect length check",e.mode=30;break}z=I=0}e.mode=29;case 29:D=1;break t;case 30:D=-3;break t;case 31:return-4;case 32:default:return i}return _.next_out=Q,_.avail_out=q,_.next_in=P,_.avail_in=Z,e.hold=I,e.bits=z,(e.wsize||H!==_.avail_out&&e.mode<30&&(e.mode<27||B!==4))&&K(_,_.output,_.next_out,H-_.avail_out)?(e.mode=31,-4):($-=_.avail_in,H-=_.avail_out,_.total_in+=$,_.total_out+=H,e.total+=H,e.wrap&&H&&(_.adler=e.check=e.flags?r(e.check,J,H,_.next_out-H):l(e.check,J,H,_.next_out-H)),_.data_type=e.bits+(e.last?64:0)+(e.mode===12?128:0)+(e.mode===20||e.mode===15?256:0),($==0&&H===0||B===4)&&D===y&&(D=-5),D)},x.inflateEnd=function(_){if(!_||!_.state)return i;var B=_.state;return B.window&&(B.window=null),_.state=null,y},x.inflateGetHeader=function(_,B){var e;return _&&_.state?(2&(e=_.state).wrap)==0?i:((e.head=B).done=!1,y):i},x.inflateSetDictionary=function(_,B){var e,N=B.length;return _&&_.state?(e=_.state).wrap!==0&&e.mode!==11?i:e.mode===11&&l(1,B,N,0)!==e.check?-3:K(_,B,N,N)?(e.mode=31,-4):(e.havedict=1,y):i},x.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(m,L,x){var u=m("../utils/common"),l=[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],r=[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],o=[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],b=[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];L.exports=function(k,g,y,i,d,n,h,a){var c,p,w,v,E,A,R,O,j,K=a.bits,_=0,B=0,e=0,N=0,J=0,P=0,Q=0,Z=0,q=0,I=0,z=null,$=0,H=new u.Buf16(16),G=new u.Buf16(16),it=null,ut=0;for(_=0;_<=15;_++)H[_]=0;for(B=0;B<i;B++)H[g[y+B]]++;for(J=K,N=15;1<=N&&H[N]===0;N--);if(N<J&&(J=N),N===0)return d[n++]=20971520,d[n++]=20971520,a.bits=1,0;for(e=1;e<N&&H[e]===0;e++);for(J<e&&(J=e),_=Z=1;_<=15;_++)if(Z<<=1,(Z-=H[_])<0)return-1;if(0<Z&&(k===0||N!==1))return-1;for(G[1]=0,_=1;_<15;_++)G[_+1]=G[_]+H[_];for(B=0;B<i;B++)g[y+B]!==0&&(h[G[g[y+B]]++]=B);if(A=k===0?(z=it=h,19):k===1?(z=l,$-=257,it=r,ut-=257,256):(z=o,it=b,-1),_=e,E=n,Q=B=I=0,w=-1,v=(q=1<<(P=J))-1,k===1&&852<q||k===2&&592<q)return 1;for(;;){for(R=_-Q,j=h[B]<A?(O=0,h[B]):h[B]>A?(O=it[ut+h[B]],z[$+h[B]]):(O=96,0),c=1<<_-Q,e=p=1<<P;d[E+(I>>Q)+(p-=c)]=R<<24|O<<16|j|0,p!==0;);for(c=1<<_-1;I&c;)c>>=1;if(c!==0?(I&=c-1,I+=c):I=0,B++,--H[_]==0){if(_===N)break;_=g[y+h[B]]}if(J<_&&(I&v)!==w){for(Q===0&&(Q=J),E+=e,Z=1<<(P=_-Q);P+Q<N&&!((Z-=H[P+Q])<=0);)P++,Z<<=1;if(q+=1<<P,k===1&&852<q||k===2&&592<q)return 1;d[w=I&v]=J<<24|P<<16|E-n|0}}return I!==0&&(d[E+I]=_-Q<<24|64<<16|0),a.bits=J,0}},{"../utils/common":41}],51:[function(m,L,x){L.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(m,L,x){var u=m("../utils/common"),l=0,r=1;function o(s){for(var S=s.length;0<=--S;)s[S]=0}var b=0,k=29,g=256,y=g+1+k,i=30,d=19,n=2*y+1,h=15,a=16,c=7,p=256,w=16,v=17,E=18,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],R=[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],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=new Array(2*(y+2));o(K);var _=new Array(2*i);o(_);var B=new Array(512);o(B);var e=new Array(256);o(e);var N=new Array(k);o(N);var J,P,Q,Z=new Array(i);function q(s,S,F,U,C){this.static_tree=s,this.extra_bits=S,this.extra_base=F,this.elems=U,this.max_length=C,this.has_stree=s&&s.length}function I(s,S){this.dyn_tree=s,this.max_code=0,this.stat_desc=S}function z(s){return s<256?B[s]:B[256+(s>>>7)]}function $(s,S){s.pending_buf[s.pending++]=255&S,s.pending_buf[s.pending++]=S>>>8&255}function H(s,S,F){s.bi_valid>a-F?(s.bi_buf|=S<<s.bi_valid&65535,$(s,s.bi_buf),s.bi_buf=S>>a-s.bi_valid,s.bi_valid+=F-a):(s.bi_buf|=S<<s.bi_valid&65535,s.bi_valid+=F)}function G(s,S,F){H(s,F[2*S],F[2*S+1])}function it(s,S){for(var F=0;F|=1&s,s>>>=1,F<<=1,0<--S;);return F>>>1}function ut(s,S,F){var U,C,W=new Array(h+1),Y=0;for(U=1;U<=h;U++)W[U]=Y=Y+F[U-1]<<1;for(C=0;C<=S;C++){var M=s[2*C+1];M!==0&&(s[2*C]=it(W[M]++,M))}}function V(s){var S;for(S=0;S<y;S++)s.dyn_ltree[2*S]=0;for(S=0;S<i;S++)s.dyn_dtree[2*S]=0;for(S=0;S<d;S++)s.bl_tree[2*S]=0;s.dyn_ltree[2*p]=1,s.opt_len=s.static_len=0,s.last_lit=s.matches=0}function et(s){8<s.bi_valid?$(s,s.bi_buf):0<s.bi_valid&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0}function ot(s,S,F,U){var C=2*S,W=2*F;return s[C]<s[W]||s[C]===s[W]&&U[S]<=U[F]}function at(s,S,F){for(var U=s.heap[F],C=F<<1;C<=s.heap_len&&(C<s.heap_len&&ot(S,s.heap[C+1],s.heap[C],s.depth)&&C++,!ot(S,U,s.heap[C],s.depth));)s.heap[F]=s.heap[C],F=C,C<<=1;s.heap[F]=U}function pt(s,S,F){var U,C,W,Y,M=0;if(s.last_lit!==0)for(;U=s.pending_buf[s.d_buf+2*M]<<8|s.pending_buf[s.d_buf+2*M+1],C=s.pending_buf[s.l_buf+M],M++,U===0?G(s,C,S):(G(s,(W=e[C])+g+1,S),(Y=A[W])!==0&&H(s,C-=N[W],Y),G(s,W=z(--U),F),(Y=R[W])!==0&&H(s,U-=Z[W],Y)),M<s.last_lit;);G(s,p,S)}function ct(s,S){var F,U,C,W=S.dyn_tree,Y=S.stat_desc.static_tree,M=S.stat_desc.has_stree,X=S.stat_desc.elems,rt=-1;for(s.heap_len=0,s.heap_max=n,F=0;F<X;F++)W[2*F]!==0?(s.heap[++s.heap_len]=rt=F,s.depth[F]=0):W[2*F+1]=0;for(;s.heap_len<2;)W[2*(C=s.heap[++s.heap_len]=rt<2?++rt:0)]=1,s.depth[C]=0,s.opt_len--,M&&(s.static_len-=Y[2*C+1]);for(S.max_code=rt,F=s.heap_len>>1;1<=F;F--)at(s,W,F);for(C=X;F=s.heap[1],s.heap[1]=s.heap[s.heap_len--],at(s,W,1),U=s.heap[1],s.heap[--s.heap_max]=F,s.heap[--s.heap_max]=U,W[2*C]=W[2*F]+W[2*U],s.depth[C]=(s.depth[F]>=s.depth[U]?s.depth[F]:s.depth[U])+1,W[2*F+1]=W[2*U+1]=C,s.heap[1]=C++,at(s,W,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(tt,ft){var wt,mt,kt,st,St,Tt,gt=ft.dyn_tree,Pt=ft.max_code,Yt=ft.stat_desc.static_tree,Kt=ft.stat_desc.has_stree,Xt=ft.stat_desc.extra_bits,jt=ft.stat_desc.extra_base,xt=ft.stat_desc.max_length,Ct=0;for(st=0;st<=h;st++)tt.bl_count[st]=0;for(gt[2*tt.heap[tt.heap_max]+1]=0,wt=tt.heap_max+1;wt<n;wt++)xt<(st=gt[2*gt[2*(mt=tt.heap[wt])+1]+1]+1)&&(st=xt,Ct++),gt[2*mt+1]=st,Pt<mt||(tt.bl_count[st]++,St=0,jt<=mt&&(St=Xt[mt-jt]),Tt=gt[2*mt],tt.opt_len+=Tt*(st+St),Kt&&(tt.static_len+=Tt*(Yt[2*mt+1]+St)));if(Ct!==0){do{for(st=xt-1;tt.bl_count[st]===0;)st--;tt.bl_count[st]--,tt.bl_count[st+1]+=2,tt.bl_count[xt]--,Ct-=2}while(0<Ct);for(st=xt;st!==0;st--)for(mt=tt.bl_count[st];mt!==0;)Pt<(kt=tt.heap[--wt])||(gt[2*kt+1]!==st&&(tt.opt_len+=(st-gt[2*kt+1])*gt[2*kt],gt[2*kt+1]=st),mt--)}}(s,S),ut(W,rt,s.bl_count)}function t(s,S,F){var U,C,W=-1,Y=S[1],M=0,X=7,rt=4;for(Y===0&&(X=138,rt=3),S[2*(F+1)+1]=65535,U=0;U<=F;U++)C=Y,Y=S[2*(U+1)+1],++M<X&&C===Y||(M<rt?s.bl_tree[2*C]+=M:C!==0?(C!==W&&s.bl_tree[2*C]++,s.bl_tree[2*w]++):M<=10?s.bl_tree[2*v]++:s.bl_tree[2*E]++,W=C,rt=(M=0)===Y?(X=138,3):C===Y?(X=6,3):(X=7,4))}function D(s,S,F){var U,C,W=-1,Y=S[1],M=0,X=7,rt=4;for(Y===0&&(X=138,rt=3),U=0;U<=F;U++)if(C=Y,Y=S[2*(U+1)+1],!(++M<X&&C===Y)){if(M<rt)for(;G(s,C,s.bl_tree),--M!=0;);else C!==0?(C!==W&&(G(s,C,s.bl_tree),M--),G(s,w,s.bl_tree),H(s,M-3,2)):M<=10?(G(s,v,s.bl_tree),H(s,M-3,3)):(G(s,E,s.bl_tree),H(s,M-11,7));W=C,rt=(M=0)===Y?(X=138,3):C===Y?(X=6,3):(X=7,4)}}o(Z);var T=!1;function f(s,S,F,U){H(s,(b<<1)+(U?1:0),3),function(C,W,Y,M){et(C),$(C,Y),$(C,~Y),u.arraySet(C.pending_buf,C.window,W,Y,C.pending),C.pending+=Y}(s,S,F)}x._tr_init=function(s){T||(function(){var S,F,U,C,W,Y=new Array(h+1);for(C=U=0;C<k-1;C++)for(N[C]=U,S=0;S<1<<A[C];S++)e[U++]=C;for(e[U-1]=C,C=W=0;C<16;C++)for(Z[C]=W,S=0;S<1<<R[C];S++)B[W++]=C;for(W>>=7;C<i;C++)for(Z[C]=W<<7,S=0;S<1<<R[C]-7;S++)B[256+W++]=C;for(F=0;F<=h;F++)Y[F]=0;for(S=0;S<=143;)K[2*S+1]=8,S++,Y[8]++;for(;S<=255;)K[2*S+1]=9,S++,Y[9]++;for(;S<=279;)K[2*S+1]=7,S++,Y[7]++;for(;S<=287;)K[2*S+1]=8,S++,Y[8]++;for(ut(K,y+1,Y),S=0;S<i;S++)_[2*S+1]=5,_[2*S]=it(S,5);J=new q(K,A,g+1,y,h),P=new q(_,R,0,i,h),Q=new q(new Array(0),O,0,d,c)}(),T=!0),s.l_desc=new I(s.dyn_ltree,J),s.d_desc=new I(s.dyn_dtree,P),s.bl_desc=new I(s.bl_tree,Q),s.bi_buf=0,s.bi_valid=0,V(s)},x._tr_stored_block=f,x._tr_flush_block=function(s,S,F,U){var C,W,Y=0;0<s.level?(s.strm.data_type===2&&(s.strm.data_type=function(M){var X,rt=4093624447;for(X=0;X<=31;X++,rt>>>=1)if(1&rt&&M.dyn_ltree[2*X]!==0)return l;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return r;for(X=32;X<g;X++)if(M.dyn_ltree[2*X]!==0)return r;return l}(s)),ct(s,s.l_desc),ct(s,s.d_desc),Y=function(M){var X;for(t(M,M.dyn_ltree,M.l_desc.max_code),t(M,M.dyn_dtree,M.d_desc.max_code),ct(M,M.bl_desc),X=d-1;3<=X&&M.bl_tree[2*j[X]+1]===0;X--);return M.opt_len+=3*(X+1)+5+5+4,X}(s),C=s.opt_len+3+7>>>3,(W=s.static_len+3+7>>>3)<=C&&(C=W)):C=W=F+5,F+4<=C&&S!==-1?f(s,S,F,U):s.strategy===4||W===C?(H(s,2+(U?1:0),3),pt(s,K,_)):(H(s,4+(U?1:0),3),function(M,X,rt,tt){var ft;for(H(M,X-257,5),H(M,rt-1,5),H(M,tt-4,4),ft=0;ft<tt;ft++)H(M,M.bl_tree[2*j[ft]+1],3);D(M,M.dyn_ltree,X-1),D(M,M.dyn_dtree,rt-1)}(s,s.l_desc.max_code+1,s.d_desc.max_code+1,Y+1),pt(s,s.dyn_ltree,s.dyn_dtree)),V(s),U&&et(s)},x._tr_tally=function(s,S,F){return s.pending_buf[s.d_buf+2*s.last_lit]=S>>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&S,s.pending_buf[s.l_buf+s.last_lit]=255&F,s.last_lit++,S===0?s.dyn_ltree[2*F]++:(s.matches++,S--,s.dyn_ltree[2*(e[F]+g+1)]++,s.dyn_dtree[2*z(S)]++),s.last_lit===s.lit_bufsize-1},x._tr_align=function(s){H(s,2,3),G(s,p,K),function(S){S.bi_valid===16?($(S,S.bi_buf),S.bi_buf=0,S.bi_valid=0):8<=S.bi_valid&&(S.pending_buf[S.pending++]=255&S.bi_buf,S.bi_buf>>=8,S.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(m,L,x){L.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(m,L,x){(function(u){(function(l,r){if(!l.setImmediate){var o,b,k,g,y=1,i={},d=!1,n=l.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(l);h=h&&h.setTimeout?h:l,o={}.toString.call(l.process)==="[object process]"?function(w){process.nextTick(function(){c(w)})}:function(){if(l.postMessage&&!l.importScripts){var w=!0,v=l.onmessage;return l.onmessage=function(){w=!1},l.postMessage("","*"),l.onmessage=v,w}}()?(g="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",p,!1):l.attachEvent("onmessage",p),function(w){l.postMessage(g+w,"*")}):l.MessageChannel?((k=new MessageChannel).port1.onmessage=function(w){c(w.data)},function(w){k.port2.postMessage(w)}):n&&"onreadystatechange"in n.createElement("script")?(b=n.documentElement,function(w){var v=n.createElement("script");v.onreadystatechange=function(){c(w),v.onreadystatechange=null,b.removeChild(v),v=null},b.appendChild(v)}):function(w){setTimeout(c,0,w)},h.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var v=new Array(arguments.length-1),E=0;E<v.length;E++)v[E]=arguments[E+1];var A={callback:w,args:v};return i[y]=A,o(y),y++},h.clearImmediate=a}function a(w){delete i[w]}function c(w){if(d)setTimeout(c,0,w);else{var v=i[w];if(v){d=!0;try{(function(E){var A=E.callback,R=E.args;switch(R.length){case 0:A();break;case 1:A(R[0]);break;case 2:A(R[0],R[1]);break;case 3:A(R[0],R[1],R[2]);break;default:A.apply(r,R)}})(v)}finally{a(w),d=!1}}}}function p(w){w.source===l&&typeof w.data=="string"&&w.data.indexOf(g)===0&&c(+w.data.slice(g.length))}})(typeof self=="undefined"?u===void 0?this:u:self)}).call(this,typeof zt!="undefined"?zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}(Ut)),Ut.exports}var Ce=Se();const Ae=te(Ce),ze={key:1,class:"text-gray-400"},Ee={key:1,class:"text-gray-400"},Ie={key:1,class:"text-gray-400"},Oe=ee({name:"OpsBusArea",__name:"index",setup(ht){const[lt,m]=Gt({connectedComponent:be,destroyOnClose:!0}),[L,x]=Gt({connectedComponent:ye,destroyOnClose:!0}),u=re(!0);function l(){return vt(this,null,function*(){var p;u.value=!u.value,yield(p=c.grid)==null?void 0:p.setAllTreeExpand(u.value)})}function r(){return vt(this,null,function*(){var p;yield c.query(),yield ne(),yield(p=c.grid)==null?void 0:p.setAllTreeExpand(u.value)})}function o(){m.setData({parentId:0}).open()}function b(p){m.setData({parentId:p.id}).open()}function k(p){m.setData(p).open()}function g(p){const w=new Map;for(const R of p)R.id!==null&&R.id!==void 0&&w.set(R.id,R);const v=new Map,E=new Set;function A(R){if(v.has(R))return v.get(R);if(E.has(R))return"";const O=w.get(R);if(!O)return"";E.add(R);const j=O.parentId,K=j!=null&&j!==0&&w.has(j)?A(j):"";E.delete(R);const _=K?`${K}/${O.areaName}`:O.areaName;return v.set(R,_),_}for(const R of p)R.id!==null&&R.id!==void 0&&A(R.id);return v}function y(p){const w=i(),E=g(w).get(p.id)||p.areaName;x.setData({id:p.id,areaName:p.areaName,areaCode:p.areaCode,fullName:E}).open()}function i(){var p;return((p=c.grid)==null?void 0:p.getData())||[]}function d(){return vt(this,null,function*(){const p=i();if(p.length===0){dt.warning("暂无数据可导出");return}const w=g(p),v=p.map(A=>Rt(Bt({},A),{fullName:w.get(A.id)||A.areaName}));if(v.length===0){dt.warning("暂无数据可导出");return}const E=dt.loading({content:`正在生成 ${v.length} 个二维码...`,duration:0});try{const A=new Ae;for(const O of v){const j=JSON.stringify({type:"AREA",id:O.id,code:O.areaCode,name:O.fullName}),_=(yield ae.toDataURL(j,{width:300,margin:2})).split(",")[1];if(!_)continue;const B=`${O.areaName}_${O.areaCode||"nocode"}.png`;A.file(B,_,{base64:!0})}const R=yield A.generateAsync({type:"blob"});ie({fileName:"区域二维码.zip",source:R}),dt.success("导出成功")}catch(A){dt.error("导出失败,请重试")}finally{E()}})}function n(p){return vt(this,null,function*(){var v;const w=dt.loading({content:It("ui.actionMessage.deleting",[p.areaName]),duration:0});try{yield se(p.id),dt.success(It("ui.actionMessage.deleteSuccess",[p.areaName])),yield r()}catch(E){const A=(E==null?void 0:E.message)||((v=E==null?void 0:E.data)==null?void 0:v.msg)||"删除失败";dt.error(A)}finally{w()}})}function h(p){return vt(this,null,function*(){var E;const w=!p.isActive;try{yield xe(w?`确认启用区域【${p.areaName}】吗?`:`确认停用区域【${p.areaName}】吗?停用后相关工单策略可能受影响。`)}catch(A){return}const v=dt.loading({content:w?"启用中...":"停用中...",duration:0});try{yield oe(Rt(Bt({},p),{isActive:w})),dt.success(w?"已启用":"已停用"),yield r()}catch(A){const R=(A==null?void 0:A.message)||((E=A==null?void 0:A.data)==null?void 0:E.msg)||"操作失败";dt.error(R)}finally{v()}})}const[a,c]=ke({formOptions:{schema:ve()},gridOptions:{columns:ge(),height:"auto",pagerConfig:{enabled:!1},proxyConfig:{ajax:{query:(p,w)=>vt(null,null,function*(){const v={};return w!=null&&w.name&&(v.name=w.name),w!=null&&w.areaType&&(v.areaType=w.areaType),(w==null?void 0:w.isActive)!==void 0&&(w==null?void 0:w.isActive)!==""&&(v.isActive=w.isActive),yield le(v)})}},rowConfig:{keyField:"id",isHover:!0},toolbarConfig:{refresh:!0,search:!0},treeConfig:{parentField:"parentId",rowField:"id",transform:!0,reserve:!0}},gridEvents:{cellClick:({row:p,column:w,triggerTreeNode:v})=>{var E;v||w.field==="isActive"||!w.field||(E=c.grid)==null||E.toggleTreeExpand(p)}}});return(p,w)=>(bt(),Et(nt(we),{"auto-content-height":""},{default:_t(()=>[yt(nt(lt),{onSuccess:r}),yt(nt(L)),yt(nt(a),null,{"toolbar-tools":_t(()=>[yt(nt(Mt),{actions:[{label:"新增",type:"primary",icon:nt(Ot).ADD,onClick:o},{label:u.value?"收缩":"展开",type:"primary",onClick:l},{label:"批量导出二维码",type:"default",icon:"lucide:qr-code",onClick:d}]},null,8,["actions"])]),areaType:_t(({row:v})=>[v.areaType?(bt(),Et(nt(Lt),{key:0,color:nt(me)[v.areaType],class:"area-tag"},{default:_t(()=>{var E,A;return[Nt(Ft((A=(E=nt(_e).find(R=>R.value===v.areaType))==null?void 0:E.label)!=null?A:v.areaType),1)]}),_:2},1032,["color"])):(bt(),Dt("span",ze,"-"))]),functionType:_t(({row:v})=>[v.functionType?(bt(),Et(nt(Lt),{key:0,color:nt(de)[v.functionType],class:"area-tag"},{default:_t(()=>{var E,A;return[Nt(Ft((A=(E=nt(pe).find(R=>R.value===v.functionType))==null?void 0:E.label)!=null?A:v.functionType),1)]}),_:2},1032,["color"])):(bt(),Dt("span",Ee,"-"))]),areaLevel:_t(({row:v})=>[v.areaLevel?(bt(),Et(nt(Lt),{key:0,color:nt(fe)[v.areaLevel],class:"area-tag"},{default:_t(()=>{var E,A;return[Nt(Ft((A=(E=nt(ce).find(R=>R.value===v.areaLevel))==null?void 0:E.label)!=null?A:v.areaLevel),1)]}),_:2},1032,["color"])):(bt(),Dt("span",Ie,"-"))]),isActive:_t(({row:v})=>[yt(nt(ue),{checked:v.isActive,"checked-children":"启用","un-checked-children":"停用",size:"small",onClick:E=>h(v)},null,8,["checked","onClick"])]),actions:_t(({row:v})=>[yt(nt(Mt),{actions:[{label:"新增下级",type:"link",icon:nt(Ot).ADD,onClick:()=>b(v)},{label:nt(It)("common.edit"),type:"link",icon:nt(Ot).EDIT,onClick:()=>k(v)},{label:"二维码",type:"link",icon:"lucide:qr-code",onClick:()=>y(v)},{label:nt(It)("common.delete"),type:"link",danger:!0,icon:nt(Ot).DELETE,disabled:Array.isArray(v.children)&&v.children.length>0,popConfirm:{title:`确认删除区域【${v.areaName}】吗?删除后其下级区域将无法归属,请先处理子区域或关联设备。`,confirm:()=>n(v)}}]},null,8,["actions"])]),_:1})]),_:1}))}}),qe=he(Oe,[["__scopeId","data-v-1e9965c9"]]);export{qe as default};
|