Files
CloudFlare-ImgBed/js/710.304e6d38.js
2025-05-23 19:02:16 +08:00

2 lines
140 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self["webpackChunksanyue_imghub"]=self["webpackChunksanyue_imghub"]||[]).push([[710],{4318:function(){},4813:function(e,t,r){r(4114),r(6573),r(8100),r(7936),r(9479),r(7467),r(4732),r(9577),r(9848),function(t){e.exports=t()}((function(){return function e(t,r,i){function a(s,o){if(!r[s]){if(!t[s]){var l=void 0;if(!o&&l)return require(s,!0);if(n)return n(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};t[s][0].call(d.exports,(function(e){var r=t[s][1][e];return a(r||e)}),d,d.exports,e,t,r,i)}return r[s].exports}for(var n=void 0,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,r){"use strict";var i=e("./utils"),a=e("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,a,s,o,l,c,d=[],h=0,u=e.length,f=u,m="string"!==i.getTypeOf(e);h<e.length;)f=u-h,a=m?(t=e[h++],r=h<u?e[h++]:0,h<u?e[h++]:0):(t=e.charCodeAt(h++),r=h<u?e.charCodeAt(h++):0,h<u?e.charCodeAt(h++):0),s=t>>2,o=(3&t)<<4|r>>4,l=1<f?(15&r)<<2|a>>6:64,c=2<f?63&a:64,d.push(n.charAt(s)+n.charAt(o)+n.charAt(l)+n.charAt(c));return d.join("")},r.decode=function(e){var t,r,i,s,o,l,c=0,d=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var u,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===n.charAt(64)&&f--,e.charAt(e.length-2)===n.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=a.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=n.indexOf(e.charAt(c++))<<2|(s=n.indexOf(e.charAt(c++)))>>4,r=(15&s)<<4|(o=n.indexOf(e.charAt(c++)))>>2,i=(3&o)<<6|(l=n.indexOf(e.charAt(c++))),u[d++]=t,64!==o&&(u[d++]=r),64!==l&&(u[d++]=i);return u}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var i=e("./external"),a=e("./stream/DataWorker"),n=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function o(e,t,r,i,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=a}o.prototype={getContentWorker:function(){var e=new a(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new a(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new n).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var i=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var i=e("./utils"),a=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,r,i){var n=a,s=i+r;e^=-1;for(var o=i;o<s;o++)e=e>>>8^n[255&(e^t[o])];return~e}(0|t,e,e.length,0):function(e,t,r,i){var n=a,s=i+r;e^=-1;for(var o=i;o<s;o++)e=e>>>8^n[255&(e^t.charCodeAt(o))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,r){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,a=e("pako"),n=e("./utils"),s=e("./stream/GenericWorker"),o=i?"uint8array":"array";function l(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",n.inherits(l,s),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(n.transformTo(o,e.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function i(e,t){var r,i="";for(r=0;r<t;r++)i+=String.fromCharCode(255&e),e>>>=8;return i}function a(e,t,r,a,s,d){var h,u,f=e.file,m=e.compression,p=d!==o.utf8encode,g=n.transformTo("string",d(f.name)),b=n.transformTo("string",o.utf8encode(f.name)),_=f.comment,v=n.transformTo("string",d(_)),k=n.transformTo("string",o.utf8encode(_)),y=b.length!==f.name.length,w=k.length!==_.length,F="",x="",C="",S=f.dir,E=f.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var z=0;t&&(z|=8),p||!y&&!w||(z|=2048);var D=0,A=0;S&&(D|=16),"UNIX"===s?(A=798,D|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,S)):(A=20,D|=function(e){return 63&(e||0)}(f.dosPermissions)),h=E.getUTCHours(),h<<=6,h|=E.getUTCMinutes(),h<<=5,h|=E.getUTCSeconds()/2,u=E.getUTCFullYear()-1980,u<<=4,u|=E.getUTCMonth()+1,u<<=5,u|=E.getUTCDate(),y&&(x=i(1,1)+i(l(g),4)+b,F+="up"+i(x.length,2)+x),w&&(C=i(1,1)+i(l(v),4)+k,F+="uc"+i(C.length,2)+C);var I="";return I+="\n\0",I+=i(z,2),I+=m.magic,I+=i(h,2),I+=i(u,2),I+=i(T.crc32,4),I+=i(T.compressedSize,4),I+=i(T.uncompressedSize,4),I+=i(g.length,2),I+=i(F.length,2),{fileRecord:c.LOCAL_FILE_HEADER+I+g+F,dirRecord:c.CENTRAL_FILE_HEADER+i(A,2)+I+i(v.length,2)+"\0\0\0\0"+i(D,4)+i(a,4)+g+F+v}}var n=e("../utils"),s=e("../stream/GenericWorker"),o=e("../utf8"),l=e("../crc32"),c=e("../signature");function d(e,t,r,i){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(d,s),d.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))},d.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=a(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=a(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+i(e.crc32,4)+i(e.compressedSize,4)+i(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,a=function(e,t,r,a,s){var o=n.transformTo("string",s(a));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(r,4)+i(o.length,2)+o}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:a,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},d.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},d.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){"use strict";var i=e("../compressions"),a=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var n=new a(t.streamFiles,r,t.platform,t.encodeFileName),s=0;try{e.forEach((function(e,r){s++;var a=function(e,t){var r=e||t,a=i[r];if(!a)throw new Error(r+" is not a valid compression method !");return a}(r.options.compression,t.compression),o=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(a,o).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=s}catch(e){n.error(e)}return n}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){"use strict";function i(){if(!(this instanceof i))return new i;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 e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){"use strict";var i=e("./utils"),a=e("./external"),n=e("./utf8"),s=e("./zipEntries"),o=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new a.Promise((function(t,r){var i=e.decompressed.getContentWorker().pipe(new o);i.on("error",(function(e){r(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),l.isNode&&l.isStream(e)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new s(t);return r.load(e),r})).then((function(e){var r=[a.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var n=0;n<i.length;n++)r.push(c(i[n]));return a.Promise.all(r)})).then((function(e){for(var a=e.shift(),n=a.files,s=0;s<n.length;s++){var o=n[s],l=o.fileNameStr,c=i.resolve(o.fileNameStr);r.file(c,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders}),o.dir||(r.file(c).unsafeOriginalName=l)}return a.zipComment.length&&(r.comment=a.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){"use strict";var i=e("../utils"),a=e("../stream/GenericWorker");function n(e,t){a.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(n,a),n.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},n.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){"use strict";var i=e("readable-stream").Readable;function a(e,t,r){i.call(this,t),this._helper=e;var a=this;e.on("data",(function(e,t){a.push(e)||a._helper.pause(),r&&r(t)})).on("error",(function(e){a.emit("error",e)})).on("end",(function(){a.push(null)}))}e("../utils").inherits(a,i),a.prototype._read=function(){this._helper.resume()},t.exports=a},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){"use strict";function i(e,t,r){var i,a=n.getTypeOf(t),o=n.extend(r||{},l);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(e=p(e)),o.createFolders&&(i=m(e))&&g.call(this,i,!0);var h="string"===a&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!h),(t instanceof c&&0===t.uncompressedSize||o.dir||!t||0===t.length)&&(o.base64=!1,o.binary=!0,t="",o.compression="STORE",a="string");var b=null;b=t instanceof c||t instanceof s?t:u.isNode&&u.isStream(t)?new f(e,t):n.prepareContent(e,t,o.binary,o.optimizedBinaryString,o.base64);var _=new d(e,b,o);this.files[e]=_}var a=e("./utf8"),n=e("./utils"),s=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),d=e("./zipObject"),h=e("./generate"),u=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),m=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},p=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=p(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var _={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,i;for(t in this.files)i=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,i)},filter:function(e){var t=[];return this.forEach((function(r,i){e(r,i)&&t.push(i)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,r),this;if(b(e)){var a=e;return this.filter((function(e,t){return!t.dir&&a.test(e)}))}var n=this.files[this.root+e];return n&&!n.dir?n:null},folder:function(e){if(!e)return this;if(b(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),i=this.clone();return i.root=r.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=n.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");n.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var i=r.comment||this.comment||"";t=h.generateWorker(this,r,i)}catch(e){(t=new s("error")).error(e)}return new o(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=_},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){"use strict";var i=e("./DataReader");function a(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(a,i),a.prototype.byteAt=function(e){return this.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),n=this.length-4;0<=n;--n)if(this.data[n]===t&&this.data[n+1]===r&&this.data[n+2]===i&&this.data[n+3]===a)return n-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),a=e.charCodeAt(3),n=this.readData(4);return t===n[0]&&r===n[1]&&i===n[2]&&a===n[3]},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){"use strict";var i=e("../utils");function a(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=a},{"../utils":32}],19:[function(e,t,r){"use strict";var i=e("./Uint8ArrayReader");function a(e){i.call(this,e)}e("../utils").inherits(a,i),a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var i=e("./DataReader");function a(e){i.call(this,e)}e("../utils").inherits(a,i),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var i=e("./ArrayReader");function a(e){i.call(this,e)}e("../utils").inherits(a,i),a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var i=e("../utils"),a=e("../support"),n=e("./ArrayReader"),s=e("./StringReader"),o=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||a.uint8array?"nodebuffer"===t?new o(e):a.uint8array?new l(i.transformTo("uint8array",e)):new n(i.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){"use strict";var i=e("./GenericWorker"),a=e("../utils");function n(e){i.call(this,"ConvertWorker to "+e),this.destType=e}a.inherits(n,i),n.prototype.processChunk=function(e){this.push({data:a.transformTo(this.destType,e.data),meta:e.meta})},t.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var i=e("./GenericWorker"),a=e("../crc32");function n(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(n,i),n.prototype.processChunk=function(e){this.streamInfo.crc32=a(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var i=e("../utils"),a=e("./GenericWorker");function n(e){a.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(n,a),n.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}a.prototype.processChunk.call(this,e)},t.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var i=e("../utils"),a=e("./GenericWorker");function n(e){a.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}i.inherits(n,a),n.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function i(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),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 e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,r){"use strict";var i=e("../utils"),a=e("./ConvertWorker"),n=e("./GenericWorker"),s=e("../base64"),o=e("../support"),l=e("../external"),c=null;if(o.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t){return new l.Promise((function(r,a){var n=[],o=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,r){n.push(e),t&&t(r)})).on("error",(function(e){n=[],a(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var r,i=0,a=null,n=0;for(r=0;r<t.length;r++)n+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(n),r=0;r<t.length;r++)a.set(t[r],i),i+=t[r].length;return a;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(o,n),c);r(e)}catch(e){a(e)}n=[]})).resume()}))}function h(e,t,r){var s=t;switch(t){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=t,this._mimeType=r,i.checkSupport(s),this._worker=e.pipe(new a(s)),e.lock()}catch(e){this._worker=new n("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return d(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,r)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),r.blob=0===a.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){"use strict";for(var i=e("./utils"),a=e("./support"),n=e("./nodejsUtils"),s=e("./stream/GenericWorker"),o=new Array(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){s.call(this,"utf-8 decode"),this.leftOver=null}function d(){s.call(this,"utf-8 encode")}o[254]=o[254]=1,r.utf8encode=function(e){return a.nodebuffer?n.newBufferFrom(e,"utf-8"):function(e){var t,r,i,n,s,o=e.length,l=0;for(n=0;n<o;n++)55296==(64512&(r=e.charCodeAt(n)))&&n+1<o&&56320==(64512&(i=e.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(i-56320),n++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=a.uint8array?new Uint8Array(l):new Array(l),n=s=0;s<l;n++)55296==(64512&(r=e.charCodeAt(n)))&&n+1<o&&56320==(64512&(i=e.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(i-56320),n++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},r.utf8decode=function(e){return a.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,a,n,s=e.length,l=new Array(2*s);for(t=r=0;t<s;)if((a=e[t++])<128)l[r++]=a;else if(4<(n=o[a]))l[r++]=65533,t+=n-1;else{for(a&=2===n?31:3===n?15:7;1<n&&t<s;)a=a<<6|63&e[t++],n--;1<n?l[r++]=65533:a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|1023&a)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),i.applyFromCharCode(l)}(e=i.transformTo(a.uint8array?"uint8array":"array",e))},i.inherits(c,s),c.prototype.processChunk=function(e){var t=i.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var n=t;(t=new Uint8Array(n.length+this.leftOver.length)).set(this.leftOver,0),t.set(n,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}(t),l=t;s!==t.length&&(a.uint8array?(l=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(l=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,i.inherits(d,s),d.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var i=e("./support"),a=e("./base64"),n=e("./nodejsUtils"),s=e("./external");function o(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(t,i){r.checkSupport("blob");try{return new Blob([t],{type:i})}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(t),a.getBlob(i)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var i=[],a=0,n=e.length;if(n<=r)return String.fromCharCode.apply(null,e);for(;a<n;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,n)))):i.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,n)))),a+=r;return i.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,i=r.getTypeOf(e),a=!0;if("uint8array"===i?a=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(a=c.applyCanBeUsed.nodebuffer),a)for(;1<t;)try{return c.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function h(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=d;var u={};u.string={string:o,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return u.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,n.allocBuffer(e.length))}},u.array={string:d,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(e)}},u.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(new Uint8Array(e))}},u.uint8array={string:d,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:o,nodebuffer:function(e){return n.newBufferFrom(e)}},u.nodebuffer={string:d,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return u.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:o},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var i=r.getTypeOf(t);return u[i][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var a=t[i];"."===a||""===a&&0!==i&&i!==t.length-1||(".."===a?r.pop():r.push(a))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&n.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,i="";for(r=0;r<(e||"").length;r++)i+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return i},r.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,n,o,c){return s.Promise.resolve(t).then((function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,r){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){r(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(t){var d=r.getTypeOf(t);return d?("arraybuffer"===d?t=r.transformTo("uint8array",t):"string"===d&&(c?t=a.decode(t):n&&!0!==o&&(t=function(e){return l(e,i.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){"use strict";var i=e("./reader/readerFor"),a=e("./utils"),n=e("./signature"),s=e("./zipEntry"),o=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(t)+", expected "+a.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;return this.reader.setIndex(r),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",r=a.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,n.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(e);var t=e;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var i=t-r;if(0<i)this.isSignature(t,n.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){"use strict";var i=e("./reader/readerFor"),a=e("./utils"),n=e("./compressedObject"),s=e("./crc32"),o=e("./utf8"),l=e("./compressions"),c=e("./support");function d(e,t){this.options=e,this.loadOptions=t}d.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,i,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<a;)t=e.readInt(2),r=e.readInt(2),i=e.readData(r),this.extraFields[t]={id:t,length:r,value:i};e.setIndex(a)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=a.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var n=a.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null}},t.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){"use strict";function i(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var a=e("./stream/StreamHelper"),n=e("./stream/DataWorker"),s=e("./utf8"),o=e("./compressedObject"),l=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var n=!this._dataBinary;n&&!i&&(t=t.pipe(new s.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new a(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),o.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof l?this._data:new n(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<c.length;h++)i.prototype[c[h]]=d;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,i){(function(e){"use strict";var r,i,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var n=0,s=new a(d),o=e.document.createTextNode("");s.observe(o,{characterData:!0}),r=function(){o.data=n=++n%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){d(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(d,0)};else{var l=new e.MessageChannel;l.port1.onmessage=d,r=function(){l.port2.postMessage(0)}}var c=[];function d(){var e,t;i=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}i=!1}t.exports=function(e){1!==c.push(e)||i||r()}}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){"use strict";var i=e("immediate");function a(){}var n={},s=["REJECTED"],o=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==a&&f(this,e)}function d(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(e,t,r){i((function(){var i;try{i=t(r)}catch(i){return n.reject(e,i)}i===e?n.reject(e,new TypeError("Cannot resolve promise with itself")):n.resolve(e,i)}))}function u(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function i(t){r||(r=!0,n.reject(e,t))}function a(t){r||(r=!0,n.resolve(e,t))}var s=m((function(){t(a,i)}));"error"===s.status&&i(s.value)}function m(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(a);return this.state!==l?h(r,this.state===o?e:t,this.outcome):this.queue.push(new d(r,e,t)),r},d.prototype.callFulfilled=function(e){n.resolve(this.promise,e)},d.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},d.prototype.callRejected=function(e){n.reject(this.promise,e)},d.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},n.resolve=function(e,t){var r=m(u,t);if("error"===r.status)return n.reject(e,r.value);var i=r.value;if(i)f(e,i);else{e.state=o,e.outcome=t;for(var a=-1,s=e.queue.length;++a<s;)e.queue[a].callFulfilled(t)}return e},n.reject=function(e,t){e.state=s,e.outcome=t;for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:n.resolve(new this(a),e)},c.reject=function(e){var t=new this(a);return n.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var s=new Array(r),o=0,l=-1,c=new this(a);++l<r;)d(e[l],l);return c;function d(e,a){t.resolve(e).then((function(e){s[a]=e,++o!==r||i||(i=!0,n.resolve(c,s))}),(function(e){i||(i=!0,n.reject(c,e))}))}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var s,o=-1,l=new this(a);++o<r;)s=e[o],t.resolve(s).then((function(e){i||(i=!0,n.resolve(l,e))}),(function(e){i||(i=!0,n.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,r){"use strict";var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){"use strict";var i=e("./zlib/deflate"),a=e("./utils/common"),n=e("./utils/strings"),s=e("./zlib/messages"),o=e("./zlib/zstream"),l=Object.prototype.toString,c=0,d=-1,h=0,u=8;function f(e){if(!(this instanceof f))return new f(e);this.options=a.assign({level:d,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(s[r]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m="string"==typeof t.dictionary?n.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=i.deflateSetDictionary(this.strm,m))!==c)throw new Error(s[r]);this._dict_set=!0}}function m(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(e,t){var r,s,o=this.strm,d=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=n.string2buf(e):"[object ArrayBuffer]"===l.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new a.Buf8(d),o.next_out=0,o.avail_out=d),1!==(r=i.deflate(o,s))&&r!==c)return this.onEnd(r),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(n.buf2binstring(a.shrinkBuf(o.output,o.next_out))):this.onData(a.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==r);return 4===s?(r=i.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==s||(this.onEnd(c),!(o.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=f,r.deflate=m,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,m(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,m(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){"use strict";var i=e("./zlib/inflate"),a=e("./utils/common"),n=e("./utils/strings"),s=e("./zlib/constants"),o=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),d=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=i.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw new Error(o[r]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function u(e,t){var r=new h(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}h.prototype.push=function(e,t){var r,o,l,c,h,u,f=this.strm,m=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?f.input=n.binstring2buf(e):"[object ArrayBuffer]"===d.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new a.Buf8(m),f.next_out=0,f.avail_out=m),(r=i.inflate(f,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(u="string"==typeof p?n.string2buf(p):"[object ArrayBuffer]"===d.call(p)?new Uint8Array(p):p,r=i.inflateSetDictionary(this.strm,u)),r===s.Z_BUF_ERROR&&!0===g&&(r=s.Z_OK,g=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==s.Z_STREAM_END&&(0!==f.avail_in||o!==s.Z_FINISH&&o!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=n.utf8border(f.output,f.next_out),c=f.next_out-l,h=n.buf2string(f.output,l),f.next_out=c,f.avail_out=m-c,c&&a.arraySet(f.output,f.output,l,c,0),this.onData(h)):this.onData(a.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(o=s.Z_FINISH),o===s.Z_FINISH?(r=i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):o!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=h,r.inflate=u,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},r.ungzip=u},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,r,i,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+i),a);else for(var n=0;n<i;n++)e[a+n]=t[r+n]},flattenChunks:function(e){var t,r,i,a,n,s;for(t=i=0,r=e.length;t<r;t++)i+=e[t].length;for(s=new Uint8Array(i),t=a=0,r=e.length;t<r;t++)n=e[t],s.set(n,a),a+=n.length;return s}},n={arraySet:function(e,t,r,i,a){for(var n=0;n<i;n++)e[a+n]=t[r+n]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,a)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,n))},r.setTyped(i)},{}],42:[function(e,t,r){"use strict";var i=e("./common"),a=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){n=!1}for(var s=new i.Buf8(256),o=0;o<256;o++)s[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function l(e,t){if(t<65537&&(e.subarray&&n||!e.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r}s[254]=s[254]=1,r.string2buf=function(e){var t,r,a,n,s,o=e.length,l=0;for(n=0;n<o;n++)55296==(64512&(r=e.charCodeAt(n)))&&n+1<o&&56320==(64512&(a=e.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(a-56320),n++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new i.Buf8(l),n=s=0;s<l;n++)55296==(64512&(r=e.charCodeAt(n)))&&n+1<o&&56320==(64512&(a=e.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(a-56320),n++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new i.Buf8(e.length),r=0,a=t.length;r<a;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,i,a,n,o=t||e.length,c=new Array(2*o);for(r=i=0;r<o;)if((a=e[r++])<128)c[i++]=a;else if(4<(n=s[a]))c[i++]=65533,r+=n-1;else{for(a&=2===n?31:3===n?15:7;1<n&&r<o;)a=a<<6|63&e[r++],n--;1<n?c[i++]=65533:a<65536?c[i++]=a:(a-=65536,c[i++]=55296|a>>10&1023,c[i++]=56320|1023&a)}return l(c,i)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,i){for(var a=65535&e,n=e>>>16&65535,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;n=n+(a=a+t[i++]|0)|0,--s;);a%=65521,n%=65521}return a|n<<16}},{}],44:[function(e,t,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){"use strict";var i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,a){var n=i,s=a+r;e^=-1;for(var o=a;o<s;o++)e=e>>>8^n[255&(e^t[o])];return~e}},{}],46:[function(e,t,r){"use strict";var i,a=e("../utils/common"),n=e("./trees"),s=e("./adler32"),o=e("./crc32"),l=e("./messages"),c=0,d=4,h=0,u=-2,f=-1,m=4,p=2,g=8,b=9,_=286,v=30,k=19,y=2*_+1,w=15,F=3,x=258,C=x+F+1,S=42,E=113,T=1,z=2,D=3,A=4;function I(e,t){return e.msg=l[t],t}function U(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function B(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(a.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function O(e,t){n._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,B(e.strm)}function W(e,t){e.pending_buf[e.pending++]=t}function P(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function R(e,t){var r,i,a=e.max_chain_length,n=e.strstart,s=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-C?e.strstart-(e.w_size-C):0,c=e.window,d=e.w_mask,h=e.prev,u=e.strstart+x,f=c[n+s-1],m=c[n+s];e.prev_length>=e.good_match&&(a>>=2),o>e.lookahead&&(o=e.lookahead);do{if(c[(r=t)+s]===m&&c[r+s-1]===f&&c[r]===c[n]&&c[++r]===c[n+1]){n+=2,r++;do{}while(c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&n<u);if(i=x-(u-n),n=u-x,s<i){if(e.match_start=t,o<=(s=i))break;f=c[n+s-1],m=c[n+s]}}}while((t=h[t&d])>l&&0!=--a);return s<=e.lookahead?s:e.lookahead}function $(e){var t,r,i,n,l,c,d,h,u,f,m=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-C)){for(a.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=r=e.hash_size;i=e.head[--t],e.head[t]=m<=i?i-m:0,--r;);for(t=r=m;i=e.prev[--t],e.prev[t]=m<=i?i-m:0,--r;);n+=m}if(0===e.strm.avail_in)break;if(c=e.strm,d=e.window,h=e.strstart+e.lookahead,u=n,f=void 0,f=c.avail_in,u<f&&(f=u),r=0===f?0:(c.avail_in-=f,a.arraySet(d,c.input,c.next_in,f,h),1===c.state.wrap?c.adler=s(c.adler,d,f,h):2===c.state.wrap&&(c.adler=o(c.adler,d,f,h)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=F)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+F-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<F)););}while(e.lookahead<C&&0!==e.strm.avail_in)}function N(e,t){for(var r,i;;){if(e.lookahead<C){if($(e),e.lookahead<C&&t===c)return T;if(0===e.lookahead)break}if(r=0,e.lookahead>=F&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+F-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-C&&(e.match_length=R(e,r)),e.match_length>=F)if(i=n._tr_tally(e,e.strstart-e.match_start,e.match_length-F),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=F){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+F-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(O(e,!1),0===e.strm.avail_out))return T}return e.insert=e.strstart<F-1?e.strstart:F-1,t===d?(O(e,!0),0===e.strm.avail_out?D:A):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?T:z}function j(e,t){for(var r,i,a;;){if(e.lookahead<C){if($(e),e.lookahead<C&&t===c)return T;if(0===e.lookahead)break}if(r=0,e.lookahead>=F&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+F-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=F-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-C&&(e.match_length=R(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===F&&4096<e.strstart-e.match_start)&&(e.match_length=F-1)),e.prev_length>=F&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-F,i=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-F),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+F-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=F-1,e.strstart++,i&&(O(e,!1),0===e.strm.avail_out))return T}else if(e.match_available){if((i=n._tr_tally(e,0,e.window[e.strstart-1]))&&O(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return T}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=n._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<F-1?e.strstart:F-1,t===d?(O(e,!0),0===e.strm.avail_out?D:A):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?T:z}function Z(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}function M(){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=g,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 a.Buf16(2*y),this.dyn_dtree=new a.Buf16(2*(2*v+1)),this.bl_tree=new a.Buf16(2*(2*k+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(w+1),this.heap=new a.Buf16(2*_+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*_+1),L(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 V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=p,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?S:E,e.adler=2===t.wrap?0:1,t.last_flush=c,n._tr_init(t),h):I(e,u)}function G(e){var t=V(e);return t===h&&function(e){e.window_size=2*e.w_size,L(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=F-1,e.match_available=0,e.ins_h=0}(e.state),t}function X(e,t,r,i,n,s){if(!e)return u;var o=1;if(t===f&&(t=6),i<0?(o=0,i=-i):15<i&&(o=2,i-=16),n<1||b<n||r!==g||i<8||15<i||t<0||9<t||s<0||m<s)return I(e,u);8===i&&(i=9);var l=new M;return(e.state=l).strm=e,l.wrap=o,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=n+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+F-1)/F),l.window=new a.Buf8(2*l.w_size),l.head=new a.Buf16(l.hash_size),l.prev=new a.Buf16(l.w_size),l.lit_bufsize=1<<n+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new a.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=s,l.method=r,G(e)}i=[new Z(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if($(e),0===e.lookahead&&t===c)return T;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,O(e,!1),0===e.strm.avail_out))return T;if(e.strstart-e.block_start>=e.w_size-C&&(O(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===d?(O(e,!0),0===e.strm.avail_out?D:A):(e.strstart>e.block_start&&(O(e,!1),e.strm.avail_out),T)})),new Z(4,4,8,4,N),new Z(4,5,16,8,N),new Z(4,6,32,32,N),new Z(4,4,16,16,j),new Z(8,16,32,32,j),new Z(8,16,128,128,j),new Z(8,32,128,256,j),new Z(32,128,258,1024,j),new Z(32,258,258,4096,j)],r.deflateInit=function(e,t){return X(e,t,g,15,8,0)},r.deflateInit2=X,r.deflateReset=G,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,h):u},r.deflate=function(e,t){var r,a,s,l;if(!e||!e.state||5<t||t<0)return e?I(e,u):u;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||666===a.status&&t!==d)return I(e,0===e.avail_out?-5:u);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===S)if(2===a.wrap)e.adler=0,W(a,31),W(a,139),W(a,8),a.gzhead?(W(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),W(a,255&a.gzhead.time),W(a,a.gzhead.time>>8&255),W(a,a.gzhead.time>>16&255),W(a,a.gzhead.time>>24&255),W(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),W(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(W(a,255&a.gzhead.extra.length),W(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=o(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(W(a,0),W(a,0),W(a,0),W(a,0),W(a,0),W(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),W(a,3),a.status=E);else{var f=g+(a.w_bits-8<<4)<<8;f|=(2<=a.strategy||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(f|=32),f+=31-f%31,a.status=E,P(a,f),0!==a.strstart&&(P(a,e.adler>>>16),P(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(s=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),B(e),s=a.pending,a.pending!==a.pending_buf_size));)W(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),B(e),s=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,W(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),0===l&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),B(e),s=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,W(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),0===l&&(a.status=103)}else a.status=103;if(103===a.status&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&B(e),a.pending+2<=a.pending_buf_size&&(W(a,255&e.adler),W(a,e.adler>>8&255),e.adler=0,a.status=E)):a.status=E),0!==a.pending){if(B(e),0===e.avail_out)return a.last_flush=-1,h}else if(0===e.avail_in&&U(t)<=U(r)&&t!==d)return I(e,-5);if(666===a.status&&0!==e.avail_in)return I(e,-5);if(0!==e.avail_in||0!==a.lookahead||t!==c&&666!==a.status){var m=2===a.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&($(e),0===e.lookahead)){if(t===c)return T;break}if(e.match_length=0,r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(O(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===d?(O(e,!0),0===e.strm.avail_out?D:A):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?T:z}(a,t):3===a.strategy?function(e,t){for(var r,i,a,s,o=e.window;;){if(e.lookahead<=x){if($(e),e.lookahead<=x&&t===c)return T;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=F&&0<e.strstart&&(i=o[a=e.strstart-1])===o[++a]&&i===o[++a]&&i===o[++a]){s=e.strstart+x;do{}while(i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&i===o[++a]&&a<s);e.match_length=x-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=F?(r=n._tr_tally(e,1,e.match_length-F),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(O(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===d?(O(e,!0),0===e.strm.avail_out?D:A):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?T:z}(a,t):i[a.level].func(a,t);if(m!==D&&m!==A||(a.status=666),m===T||m===D)return 0===e.avail_out&&(a.last_flush=-1),h;if(m===z&&(1===t?n._tr_align(a):5!==t&&(n._tr_stored_block(a,0,0,!1),3===t&&(L(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),B(e),0===e.avail_out))return a.last_flush=-1,h}return t!==d?h:a.wrap<=0?1:(2===a.wrap?(W(a,255&e.adler),W(a,e.adler>>8&255),W(a,e.adler>>16&255),W(a,e.adler>>24&255),W(a,255&e.total_in),W(a,e.total_in>>8&255),W(a,e.total_in>>16&255),W(a,e.total_in>>24&255)):(P(a,e.adler>>>16),P(a,65535&e.adler)),B(e),0<a.wrap&&(a.wrap=-a.wrap),0!==a.pending?h:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==S&&69!==t&&73!==t&&91!==t&&103!==t&&t!==E&&666!==t?I(e,u):(e.state=null,t===E?I(e,-3):h):u},r.deflateSetDictionary=function(e,t){var r,i,n,o,l,c,d,f,m=t.length;if(!e||!e.state)return u;if(2===(o=(r=e.state).wrap)||1===o&&r.status!==S||r.lookahead)return u;for(1===o&&(e.adler=s(e.adler,t,m,0)),r.wrap=0,m>=r.w_size&&(0===o&&(L(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new a.Buf8(r.w_size),a.arraySet(f,t,m-r.w_size,r.w_size,0),t=f,m=r.w_size),l=e.avail_in,c=e.next_in,d=e.input,e.avail_in=m,e.next_in=0,e.input=t,$(r);r.lookahead>=F;){for(i=r.strstart,n=r.lookahead-(F-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+F-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++,--n;);r.strstart=i,r.lookahead=F-1,$(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=F-1,r.match_available=0,e.next_in=c,e.input=d,e.avail_in=l,r.wrap=o,h},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){"use strict";t.exports=function(e,t){var r,i,a,n,s,o,l,c,d,h,u,f,m,p,g,b,_,v,k,y,w,F,x,C,S;r=e.state,i=e.next_in,C=e.input,a=i+(e.avail_in-5),n=e.next_out,S=e.output,s=n-(t-e.avail_out),o=n+(e.avail_out-257),l=r.dmax,c=r.wsize,d=r.whave,h=r.wnext,u=r.window,f=r.hold,m=r.bits,p=r.lencode,g=r.distcode,b=(1<<r.lenbits)-1,_=(1<<r.distbits)-1;e:do{m<15&&(f+=C[i++]<<m,m+=8,f+=C[i++]<<m,m+=8),v=p[f&b];t:for(;;){if(f>>>=k=v>>>24,m-=k,0===(k=v>>>16&255))S[n++]=65535&v;else{if(!(16&k)){if(0==(64&k)){v=p[(65535&v)+(f&(1<<k)-1)];continue t}if(32&k){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}y=65535&v,(k&=15)&&(m<k&&(f+=C[i++]<<m,m+=8),y+=f&(1<<k)-1,f>>>=k,m-=k),m<15&&(f+=C[i++]<<m,m+=8,f+=C[i++]<<m,m+=8),v=g[f&_];r:for(;;){if(f>>>=k=v>>>24,m-=k,!(16&(k=v>>>16&255))){if(0==(64&k)){v=g[(65535&v)+(f&(1<<k)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(w=65535&v,m<(k&=15)&&(f+=C[i++]<<m,(m+=8)<k&&(f+=C[i++]<<m,m+=8)),l<(w+=f&(1<<k)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=k,m-=k,(k=n-s)<w){if(d<(k=w-k)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(x=u,(F=0)===h){if(F+=c-k,k<y){for(y-=k;S[n++]=u[F++],--k;);F=n-w,x=S}}else if(h<k){if(F+=c+h-k,(k-=h)<y){for(y-=k;S[n++]=u[F++],--k;);if(F=0,h<y){for(y-=k=h;S[n++]=u[F++],--k;);F=n-w,x=S}}}else if(F+=h-k,k<y){for(y-=k;S[n++]=u[F++],--k;);F=n-w,x=S}for(;2<y;)S[n++]=x[F++],S[n++]=x[F++],S[n++]=x[F++],y-=3;y&&(S[n++]=x[F++],1<y&&(S[n++]=x[F++]))}else{for(F=n-w;S[n++]=S[F++],S[n++]=S[F++],S[n++]=S[F++],2<(y-=3););y&&(S[n++]=S[F++],1<y&&(S[n++]=S[F++]))}break}}break}}while(i<a&&n<o);i-=y=m>>3,f&=(1<<(m-=y<<3))-1,e.next_in=i,e.next_out=n,e.avail_in=i<a?a-i+5:5-(i-a),e.avail_out=n<o?o-n+257:257-(n-o),r.hold=f,r.bits=m}},{}],49:[function(e,t,r){"use strict";var i=e("../utils/common"),a=e("./adler32"),n=e("./crc32"),s=e("./inffast"),o=e("./inftrees"),l=1,c=2,d=0,h=-2,u=1,f=852,m=592;function p(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){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 i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=u,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(f),t.distcode=t.distdyn=new i.Buf32(m),t.sane=1,t.back=-1,d):h}function _(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):h}function v(e,t){var r,i;return e&&e.state?(i=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?h:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,_(e))):h}function k(e,t){var r,i;return e?(i=new g,(e.state=i).window=null,(r=v(e,t))!==d&&(e.state=null),r):h}var y,w,F=!0;function x(e){if(F){var t;for(y=new i.Buf32(512),w=new i.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(l,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(c,e.lens,0,32,w,0,e.work,{bits:5}),F=!1}e.lencode=y,e.lenbits=9,e.distcode=w,e.distbits=5}function C(e,t,r,a){var n,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new i.Buf8(s.wsize)),a>=s.wsize?(i.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a<(n=s.wsize-s.wnext)&&(n=a),i.arraySet(s.window,t,r-a,n,s.wnext),(a-=n)?(i.arraySet(s.window,t,r-a,a,0),s.wnext=a,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0}r.inflateReset=_,r.inflateReset2=v,r.inflateResetKeep=b,r.inflateInit=function(e){return k(e,15)},r.inflateInit2=k,r.inflate=function(e,t){var r,f,m,g,b,_,v,k,y,w,F,S,E,T,z,D,A,I,U,L,B,O,W,P,R=0,$=new i.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return h;12===(r=e.state).mode&&(r.mode=13),b=e.next_out,m=e.output,v=e.avail_out,g=e.next_in,f=e.input,_=e.avail_in,k=r.hold,y=r.bits,w=_,F=v,O=d;e:for(;;)switch(r.mode){case u:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if(2&r.wrap&&35615===k){$[r.check=0]=255&k,$[1]=k>>>8&255,r.check=n(r.check,$,2,0),y=k=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&k)<<8)+(k>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&k)){e.msg="unknown compression method",r.mode=30;break}if(y-=4,B=8+(15&(k>>>=4)),0===r.wbits)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=512&k?10:12,y=k=0;break;case 2:for(;y<16;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if(r.flags=k,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=k>>8&1),512&r.flags&&($[0]=255&k,$[1]=k>>>8&255,r.check=n(r.check,$,2,0)),y=k=0,r.mode=3;case 3:for(;y<32;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}r.head&&(r.head.time=k),512&r.flags&&($[0]=255&k,$[1]=k>>>8&255,$[2]=k>>>16&255,$[3]=k>>>24&255,r.check=n(r.check,$,4,0)),y=k=0,r.mode=4;case 4:for(;y<16;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}r.head&&(r.head.xflags=255&k,r.head.os=k>>8),512&r.flags&&($[0]=255&k,$[1]=k>>>8&255,r.check=n(r.check,$,2,0)),y=k=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}r.length=k,r.head&&(r.head.extra_len=k),512&r.flags&&($[0]=255&k,$[1]=k>>>8&255,r.check=n(r.check,$,2,0)),y=k=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(_<(S=r.length)&&(S=_),S&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),i.arraySet(r.head.extra,f,g,S,B)),512&r.flags&&(r.check=n(r.check,f,S,g)),_-=S,g+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===_)break e;for(S=0;B=f[g+S++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B)),B&&S<_;);if(512&r.flags&&(r.check=n(r.check,f,S,g)),_-=S,g+=S,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===_)break e;for(S=0;B=f[g+S++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B)),B&&S<_;);if(512&r.flags&&(r.check=n(r.check,f,S,g)),_-=S,g+=S,B)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if(k!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}y=k=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;y<32;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}e.adler=r.check=p(k),y=k=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=_,r.hold=k,r.bits=y,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){k>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}switch(r.last=1&k,y-=1,3&(k>>>=1)){case 0:r.mode=14;break;case 1:if(x(r),r.mode=20,6!==t)break;k>>>=2,y-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}k>>>=2,y-=2;break;case 14:for(k>>>=7&y,y-=7&y;y<32;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if((65535&k)!=(k>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&k,y=k=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(S=r.length){if(_<S&&(S=_),v<S&&(S=v),0===S)break e;i.arraySet(m,f,g,S,b),_-=S,g+=S,v-=S,b+=S,r.length-=S;break}r.mode=12;break;case 17:for(;y<14;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if(r.nlen=257+(31&k),k>>>=5,y-=5,r.ndist=1+(31&k),k>>>=5,y-=5,r.ncode=4+(15&k),k>>>=4,y-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}r.lens[N[r.have++]]=7&k,k>>>=3,y-=3}for(;r.have<19;)r.lens[N[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,W={bits:r.lenbits},O=o(0,r.lens,0,19,r.lencode,0,r.work,W),r.lenbits=W.bits,O){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;D=(R=r.lencode[k&(1<<r.lenbits)-1])>>>16&255,A=65535&R,!((z=R>>>24)<=y);){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if(A<16)k>>>=z,y-=z,r.lens[r.have++]=A;else{if(16===A){for(P=z+2;y<P;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if(k>>>=z,y-=z,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}B=r.lens[r.have-1],S=3+(3&k),k>>>=2,y-=2}else if(17===A){for(P=z+3;y<P;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}y-=z,B=0,S=3+(7&(k>>>=z)),k>>>=3,y-=3}else{for(P=z+7;y<P;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}y-=z,B=0,S=11+(127&(k>>>=z)),k>>>=7,y-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=B}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,W={bits:r.lenbits},O=o(l,r.lens,0,r.nlen,r.lencode,0,r.work,W),r.lenbits=W.bits,O){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,W={bits:r.distbits},O=o(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,W),r.distbits=W.bits,O){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=_&&258<=v){e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=_,r.hold=k,r.bits=y,s(e,F),b=e.next_out,m=e.output,v=e.avail_out,g=e.next_in,f=e.input,_=e.avail_in,k=r.hold,y=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;D=(R=r.lencode[k&(1<<r.lenbits)-1])>>>16&255,A=65535&R,!((z=R>>>24)<=y);){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if(D&&0==(240&D)){for(I=z,U=D,L=A;D=(R=r.lencode[L+((k&(1<<I+U)-1)>>I)])>>>16&255,A=65535&R,!(I+(z=R>>>24)<=y);){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}k>>>=I,y-=I,r.back+=I}if(k>>>=z,y-=z,r.back+=z,r.length=A,0===D){r.mode=26;break}if(32&D){r.back=-1,r.mode=12;break}if(64&D){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&D,r.mode=22;case 22:if(r.extra){for(P=r.extra;y<P;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}r.length+=k&(1<<r.extra)-1,k>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;D=(R=r.distcode[k&(1<<r.distbits)-1])>>>16&255,A=65535&R,!((z=R>>>24)<=y);){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if(0==(240&D)){for(I=z,U=D,L=A;D=(R=r.distcode[L+((k&(1<<I+U)-1)>>I)])>>>16&255,A=65535&R,!(I+(z=R>>>24)<=y);){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}k>>>=I,y-=I,r.back+=I}if(k>>>=z,y-=z,r.back+=z,64&D){e.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&D,r.mode=24;case 24:if(r.extra){for(P=r.extra;y<P;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}r.offset+=k&(1<<r.extra)-1,k>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===v)break e;if(S=F-v,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}E=S>r.wnext?(S-=r.wnext,r.wsize-S):r.wnext-S,S>r.length&&(S=r.length),T=r.window}else T=m,E=b-r.offset,S=r.length;for(v<S&&(S=v),v-=S,r.length-=S;m[b++]=T[E++],--S;);0===r.length&&(r.mode=21);break;case 26:if(0===v)break e;m[b++]=r.length,v--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===_)break e;_--,k|=f[g++]<<y,y+=8}if(F-=v,e.total_out+=F,r.total+=F,F&&(e.adler=r.check=r.flags?n(r.check,m,F,b-F):a(r.check,m,F,b-F)),F=v,(r.flags?k:p(k))!==r.check){e.msg="incorrect data check",r.mode=30;break}y=k=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===_)break e;_--,k+=f[g++]<<y,y+=8}if(k!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}y=k=0}r.mode=29;case 29:O=1;break e;case 30:O=-3;break e;case 31:return-4;case 32:default:return h}return e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=_,r.hold=k,r.bits=y,(r.wsize||F!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&C(e,e.output,e.next_out,F-e.avail_out)?(r.mode=31,-4):(w-=e.avail_in,F-=e.avail_out,e.total_in+=w,e.total_out+=F,r.total+=F,r.wrap&&F&&(e.adler=r.check=r.flags?n(r.check,m,F,e.next_out-F):a(r.check,m,F,e.next_out-F)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==w&&0===F||4===t)&&O===d&&(O=-5),O)},r.inflateEnd=function(e){if(!e||!e.state)return h;var t=e.state;return t.window&&(t.window=null),e.state=null,d},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?h:((r.head=t).done=!1,d):h},r.inflateSetDictionary=function(e,t){var r,i=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?h:11===r.mode&&a(1,t,i,0)!==r.check?-3:C(e,t,i,i)?(r.mode=31,-4):(r.havedict=1,d):h},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){"use strict";var i=e("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,l,c,d,h,u){var f,m,p,g,b,_,v,k,y,w=u.bits,F=0,x=0,C=0,S=0,E=0,T=0,z=0,D=0,A=0,I=0,U=null,L=0,B=new i.Buf16(16),O=new i.Buf16(16),W=null,P=0;for(F=0;F<=15;F++)B[F]=0;for(x=0;x<l;x++)B[t[r+x]]++;for(E=w,S=15;1<=S&&0===B[S];S--);if(S<E&&(E=S),0===S)return c[d++]=20971520,c[d++]=20971520,u.bits=1,0;for(C=1;C<S&&0===B[C];C++);for(E<C&&(E=C),F=D=1;F<=15;F++)if(D<<=1,(D-=B[F])<0)return-1;if(0<D&&(0===e||1!==S))return-1;for(O[1]=0,F=1;F<15;F++)O[F+1]=O[F]+B[F];for(x=0;x<l;x++)0!==t[r+x]&&(h[O[t[r+x]]++]=x);if(_=0===e?(U=W=h,19):1===e?(U=a,L-=257,W=n,P-=257,256):(U=s,W=o,-1),F=C,b=d,z=x=I=0,p=-1,g=(A=1<<(T=E))-1,1===e&&852<A||2===e&&592<A)return 1;for(;;){for(v=F-z,y=h[x]<_?(k=0,h[x]):h[x]>_?(k=W[P+h[x]],U[L+h[x]]):(k=96,0),f=1<<F-z,C=m=1<<T;c[b+(I>>z)+(m-=f)]=v<<24|k<<16|y,0!==m;);for(f=1<<F-1;I&f;)f>>=1;if(0!==f?(I&=f-1,I+=f):I=0,x++,0==--B[F]){if(F===S)break;F=t[r+h[x]]}if(E<F&&(I&g)!==p){for(0===z&&(z=E),b+=C,D=1<<(T=F-z);T+z<S&&!((D-=B[T+z])<=0);)T++,D<<=1;if(A+=1<<T,1===e&&852<A||2===e&&592<A)return 1;c[p=I&g]=E<<24|T<<16|b-d}}return 0!==I&&(c[b+I]=F-z<<24|64<<16),u.bits=E,0}},{"../utils/common":41}],51:[function(e,t,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){"use strict";var i=e("../utils/common"),a=0,n=1;function s(e){for(var t=e.length;0<=--t;)e[t]=0}var o=0,l=29,c=256,d=c+1+l,h=30,u=19,f=2*d+1,m=15,p=16,g=7,b=256,_=16,v=17,k=18,y=[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],w=[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],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=new Array(2*(d+2));s(C);var S=new Array(2*h);s(S);var E=new Array(512);s(E);var T=new Array(256);s(T);var z=new Array(l);s(z);var D,A,I,U=new Array(h);function L(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}function B(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function O(e){return e<256?E[e]:E[256+(e>>>7)]}function W(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function P(e,t,r){e.bi_valid>p-r?(e.bi_buf|=t<<e.bi_valid&65535,W(e,e.bi_buf),e.bi_buf=t>>p-e.bi_valid,e.bi_valid+=r-p):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function R(e,t,r){P(e,r[2*t],r[2*t+1])}function $(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function N(e,t,r){var i,a,n=new Array(m+1),s=0;for(i=1;i<=m;i++)n[i]=s=s+r[i-1]<<1;for(a=0;a<=t;a++){var o=e[2*a+1];0!==o&&(e[2*a]=$(n[o]++,o))}}function j(e){var t;for(t=0;t<d;t++)e.dyn_ltree[2*t]=0;for(t=0;t<h;t++)e.dyn_dtree[2*t]=0;for(t=0;t<u;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Z(e){8<e.bi_valid?W(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function M(e,t,r,i){var a=2*t,n=2*r;return e[a]<e[n]||e[a]===e[n]&&i[t]<=i[r]}function V(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&M(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!M(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function G(e,t,r){var i,a,n,s,o=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*o]<<8|e.pending_buf[e.d_buf+2*o+1],a=e.pending_buf[e.l_buf+o],o++,0===i?R(e,a,t):(R(e,(n=T[a])+c+1,t),0!==(s=y[n])&&P(e,a-=z[n],s),R(e,n=O(--i),r),0!==(s=w[n])&&P(e,i-=U[n],s)),o<e.last_lit;);R(e,b,t)}function X(e,t){var r,i,a,n=t.dyn_tree,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=f,r=0;r<l;r++)0!==n[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):n[2*r+1]=0;for(;e.heap_len<2;)n[2*(a=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[a]=0,e.opt_len--,o&&(e.static_len-=s[2*a+1]);for(t.max_code=c,r=e.heap_len>>1;1<=r;r--)V(e,n,r);for(a=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,n,1),i=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=i,n[2*a]=n[2*r]+n[2*i],e.depth[a]=(e.depth[r]>=e.depth[i]?e.depth[r]:e.depth[i])+1,n[2*r+1]=n[2*i+1]=a,e.heap[1]=a++,V(e,n,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,i,a,n,s,o,l=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,h=t.stat_desc.has_stree,u=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(n=0;n<=m;n++)e.bl_count[n]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<f;r++)g<(n=l[2*l[2*(i=e.heap[r])+1]+1]+1)&&(n=g,b++),l[2*i+1]=n,c<i||(e.bl_count[n]++,s=0,p<=i&&(s=u[i-p]),o=l[2*i],e.opt_len+=o*(n+s),h&&(e.static_len+=o*(d[2*i+1]+s)));if(0!==b){do{for(n=g-1;0===e.bl_count[n];)n--;e.bl_count[n]--,e.bl_count[n+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(n=g;0!==n;n--)for(i=e.bl_count[n];0!==i;)c<(a=e.heap[--r])||(l[2*a+1]!==n&&(e.opt_len+=(n-l[2*a+1])*l[2*a],l[2*a+1]=n),i--)}}(e,t),N(n,c,e.bl_count)}function H(e,t,r){var i,a,n=-1,s=t[1],o=0,l=7,c=4;for(0===s&&(l=138,c=3),t[2*(r+1)+1]=65535,i=0;i<=r;i++)a=s,s=t[2*(i+1)+1],++o<l&&a===s||(o<c?e.bl_tree[2*a]+=o:0!==a?(a!==n&&e.bl_tree[2*a]++,e.bl_tree[2*_]++):o<=10?e.bl_tree[2*v]++:e.bl_tree[2*k]++,n=a,c=(o=0)===s?(l=138,3):a===s?(l=6,3):(l=7,4))}function q(e,t,r){var i,a,n=-1,s=t[1],o=0,l=7,c=4;for(0===s&&(l=138,c=3),i=0;i<=r;i++)if(a=s,s=t[2*(i+1)+1],!(++o<l&&a===s)){if(o<c)for(;R(e,a,e.bl_tree),0!=--o;);else 0!==a?(a!==n&&(R(e,a,e.bl_tree),o--),R(e,_,e.bl_tree),P(e,o-3,2)):o<=10?(R(e,v,e.bl_tree),P(e,o-3,3)):(R(e,k,e.bl_tree),P(e,o-11,7));n=a,c=(o=0)===s?(l=138,3):a===s?(l=6,3):(l=7,4)}}s(U);var K=!1;function Y(e,t,r,a){P(e,(o<<1)+(a?1:0),3),function(e,t,r,a){Z(e),a&&(W(e,r),W(e,~r)),i.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}r._tr_init=function(e){K||(function(){var e,t,r,i,a,n=new Array(m+1);for(i=r=0;i<l-1;i++)for(z[i]=r,e=0;e<1<<y[i];e++)T[r++]=i;for(T[r-1]=i,i=a=0;i<16;i++)for(U[i]=a,e=0;e<1<<w[i];e++)E[a++]=i;for(a>>=7;i<h;i++)for(U[i]=a<<7,e=0;e<1<<w[i]-7;e++)E[256+a++]=i;for(t=0;t<=m;t++)n[t]=0;for(e=0;e<=143;)C[2*e+1]=8,e++,n[8]++;for(;e<=255;)C[2*e+1]=9,e++,n[9]++;for(;e<=279;)C[2*e+1]=7,e++,n[7]++;for(;e<=287;)C[2*e+1]=8,e++,n[8]++;for(N(C,d+1,n),e=0;e<h;e++)S[2*e+1]=5,S[2*e]=$(e,5);D=new L(C,y,c+1,d,m),A=new L(S,w,0,h,m),I=new L(new Array(0),F,0,u,g)}(),K=!0),e.l_desc=new B(e.dyn_ltree,D),e.d_desc=new B(e.dyn_dtree,A),e.bl_desc=new B(e.bl_tree,I),e.bi_buf=0,e.bi_valid=0,j(e)},r._tr_stored_block=Y,r._tr_flush_block=function(e,t,r,i){var s,o,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return n;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return n;return a}(e)),X(e,e.l_desc),X(e,e.d_desc),l=function(e){var t;for(H(e,e.dyn_ltree,e.l_desc.max_code),H(e,e.dyn_dtree,e.d_desc.max_code),X(e,e.bl_desc),t=u-1;3<=t&&0===e.bl_tree[2*x[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),s=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=s&&(s=o)):s=o=r+5,r+4<=s&&-1!==t?Y(e,t,r,i):4===e.strategy||o===s?(P(e,2+(i?1:0),3),G(e,C,S)):(P(e,4+(i?1:0),3),function(e,t,r,i){var a;for(P(e,t-257,5),P(e,r-1,5),P(e,i-4,4),a=0;a<i;a++)P(e,e.bl_tree[2*x[a]+1],3);q(e,e.dyn_ltree,t-1),q(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),G(e,e.dyn_ltree,e.dyn_dtree)),j(e),i&&Z(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(T[r]+c+1)]++,e.dyn_dtree[2*O(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){P(e,2,3),R(e,b,C),function(e){16===e.bi_valid?(W(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,i){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,i,a,n,s=1,o={},l=!1,c=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,r="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){u(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(n="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(n+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){u(e.data)},function(e){a.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){u(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(u,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var a={callback:e,args:t};return o[s]=a,r(s),s++},d.clearImmediate=h}function h(e){delete o[e]}function u(e){if(l)setTimeout(u,0,e);else{var r=o[e];if(r){l=!0;try{!function(e){var r=e.callback,i=e.args;switch(i.length){case 0:r();break;case 1:r(i[0]);break;case 2:r(i[0],i[1]);break;case 3:r(i[0],i[1],i[2]);break;default:r.apply(t,i)}}(r)}finally{h(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(n)&&u(+t.data.slice(n.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))},3496:function(e,t,r){"use strict";r.d(t,{A:function(){return k}});var i=r(6768),a=r(4232);const n={id:"themeMask"},s=["cx","cy","r"],o=["r"],l=["opacity"];function c(e,t,r,c,d,h){return(0,i.uX)(),(0,i.CE)("div",{id:"themeToggle",onClick:t[0]||(t[0]=(...e)=>h.handleToggleClick&&h.handleToggleClick(...e))},[((0,i.uX)(),(0,i.CE)("svg",{class:(0,a.C4)(["theme_toggle_svg",{dark:d.isDark}]),width:"1.3em",height:"1.3em",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor"},[(0,i.Lk)("mask",n,[t[1]||(t[1]=(0,i.Lk)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white"},null,-1)),(0,i.Lk)("circle",{class:"theme_toggle_circle1",fill:"black",cx:d.isDark?"50%":"100%",cy:d.isDark?"23%":"0%",r:d.isDark?"9":"5"},null,8,s)]),(0,i.Lk)("circle",{class:"theme_toggle_circle2",cx:"12",cy:"12",r:d.isDark?"9":"5",mask:"url(#themeMask)"},null,8,o),(0,i.Lk)("g",{class:"theme_toggle_g",stroke:"currentColor",opacity:d.isDark?0:1},t[2]||(t[2]=[(0,i.Fv)('<line x1="12" y1="1" x2="12" y2="3" data-v-4c88bff4></line><line x1="12" y1="21" x2="12" y2="23" data-v-4c88bff4></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-4c88bff4></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-4c88bff4></line><line x1="1" y1="12" x2="3" y2="12" data-v-4c88bff4></line><line x1="21" y1="12" x2="23" y2="12" data-v-4c88bff4></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36" data-v-4c88bff4></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22" data-v-4c88bff4></line>',8)]),8,l)],2))])}var d={name:"ToggleDark",data(){return{isDark:this.$store.getters.useDarkMode}},methods:{handleToggleClick(){this.isDark=!this.isDark,this.$store.commit("setUseDarkMode",this.isDark),this.$store.commit("setCusDarkMode",!0)}}},h=r(1241);const u=(0,h.A)(d,[["render",c],["__scopeId","data-v-4c88bff4"]]);var f=u,m=r(9017);r(5331),r(6055),r(8830),r(3597);const p={class:"tabs"},g={class:"tabs-dropdown-link"};function b(e,t,r,n,s,o){const l=(0,i.g2)("font-awesome-icon"),c=m.c6,d=m.Iy,h=m.dW,u=f;return(0,i.uX)(),(0,i.CE)("div",p,[(0,i.Lk)("span",{class:"title",onClick:t[0]||(t[0]=(...e)=>o.refreshDashboard&&o.refreshDashboard(...e))},[(0,i.bF)(l,{icon:o.iconName,class:"fa-images"},null,8,["icon"]),(0,i.eW)(" "+(0,a.v_)(o.titleName),1)]),(0,i.bF)(h,{onCommand:o.handleTabClick,class:"tabs-dropdown",role:"navigation",onVisibleChange:o.handleDropdownVisible,"popper-class":"tabs-dropdown-popper"},{dropdown:(0,i.k6)((()=>[(0,i.bF)(d,null,{default:(0,i.k6)((()=>["dashboard"!==r.activeTab?((0,i.uX)(),(0,i.Wv)(c,{key:0,command:"dashboard"},{default:(0,i.k6)((()=>[(0,i.bF)(l,{icon:"images",style:{"margin-right":"5px"}}),t[1]||(t[1]=(0,i.eW)(" Gallery "))])),_:1})):(0,i.Q3)("",!0),"customerConfig"!==r.activeTab?((0,i.uX)(),(0,i.Wv)(c,{key:1,command:"customerConfig"},{default:(0,i.k6)((()=>[(0,i.bF)(l,{icon:"user-cog",style:{"margin-right":"5px"}}),t[2]||(t[2]=(0,i.eW)(" 用户管理 "))])),_:1})):(0,i.Q3)("",!0),"systemConfig"!==r.activeTab?((0,i.uX)(),(0,i.Wv)(c,{key:2,command:"systemConfig"},{default:(0,i.k6)((()=>[(0,i.bF)(l,{icon:"cogs",style:{"margin-right":"5px"}}),t[3]||(t[3]=(0,i.eW)(" 系统设置 "))])),_:1})):(0,i.Q3)("",!0),(0,i.bF)(c,{command:""},{default:(0,i.k6)((()=>[(0,i.bF)(l,{icon:"upload",style:{"margin-right":"5px"}}),t[4]||(t[4]=(0,i.eW)(" 上传页面 "))])),_:1})])),_:1})])),default:(0,i.k6)((()=>[(0,i.Lk)("span",g,[(0,i.bF)(l,{icon:"bars",class:"tabs-arrow"})])])),_:1},8,["onCommand","onVisibleChange"]),(0,i.bF)(u)])}r(4114);var _={name:"DashboardTabs",props:{activeTab:{type:String,default:"dashboard"}},components:{AdminToggleDark:f},computed:{titleName(){return"dashboard"===this.activeTab?"Gallery":"customerConfig"===this.activeTab?"用户管理":"systemConfig"===this.activeTab?"系统设置":"上传页面"},iconName(){return"dashboard"===this.activeTab?"images":"customerConfig"===this.activeTab?"user-cog":"systemConfig"===this.activeTab?"cogs":"upload"}},methods:{refreshDashboard(){location.reload()},handleTabClick(e){this.$router.push(`/${e}`)},handleDropdownVisible(e){const t=document.querySelector(".tabs-dropdown-link");e?t.classList.add("rotate-up"):t.classList.remove("rotate-up")}}};const v=(0,h.A)(_,[["render",b],["__scopeId","data-v-0de0fc64"]]);var k=v},1710:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ce}});var i=r(9114),a=(r(5331),r(694),r(2006)),n=(r(8642),r(3003),r(6810)),s=(r(4396),r(4885),r(7377)),o=(r(5616),r(753)),l=r(4275),c=r(4880),d=(r(4318),r(7815)),h=(r(5534),r(7009)),u=(r(8450),r(683)),f=(r(5385),r(47)),m=(r(9648),r(850)),p=(r(8736),r(1095)),g=(r(7128),r(1450)),b=(r(213),r(9017)),_=(r(6055),r(8830),r(3597),r(2105)),v=(r(9092),r(3496)),k=r(6768),y=r(4232),w=r(5130);const F={class:"container"},x={class:"header-content"},C={class:"search-card"},S={class:"stats"},E={class:"actions"},T={class:"el-dropdown-link"},z={class:"el-dropdown-link"},D={class:"el-dropdown-link"},A={class:"breadcrumb"},I={class:"content"},U=["onClick"],L={class:"folder-overlay"},B={class:"folder-actions"},O={class:"file-info"},W={class:"file-short-info"},P={key:0,class:"success-tag"},R={key:1,class:"fail-tag"},$={key:2,class:"success-tag"},N=["src"],j={key:2,class:"file-preview"},Z={class:"image-overlay"},M={class:"overlay-buttons"},V={class:"button-row"},G={class:"button-row"},X={class:"file-info"},H={class:"pagination-container"},q={class:"pagination-right"},K={class:"detail-actions"},Y=["src"],J={style:{"font-size":"medium","font-weight":"bold"}},Q={class:"dialog-action"};function ee(e,t,r,ee,te,re){const ie=v.A,ae=_.WK,ne=(0,k.g2)("font-awesome-icon"),se=b.c6,oe=b.Iy,le=b.dW,ce=g.R7,de=c.bZ,he=p.WZ,ue=p.vp,fe=m.dI,me=f.S2,pe=u.Ik,ge=h.Zq,be=d.aQ,_e=c.ZO,ve=c.lX,ke=l.v$,ye=l.q,we=o.MF,Fe=o.TS,xe=s.kZ,Ce=n.ll,Se=n.MQ,Ee=a.xE,Te=a.US,ze=i.L;return(0,k.uX)(),(0,k.CE)("div",F,[(0,k.bF)(ve,null,{default:(0,k.k6)((()=>[(0,k.bF)(de,null,{default:(0,k.k6)((()=>[(0,k.Lk)("div",x,[(0,k.bF)(ie,{activeTab:"dashboard"}),(0,k.Lk)("div",C,[(0,k.bF)(ae,{modelValue:te.search,"onUpdate:modelValue":t[0]||(t[0]=e=>te.search=e),size:"mini",placeholder:"输入关键字搜索"},null,8,["modelValue"])]),(0,k.Lk)("span",S,[(0,k.bF)(ne,{icon:"database",class:"fa-database"}),(0,k.eW)(" 文件数量: "+(0,y.v_)(te.Number),1)]),(0,k.Lk)("div",E,[(0,k.bF)(le,{onCommand:re.sort,"hide-on-click":!1},{dropdown:(0,k.k6)((()=>[(0,k.bF)(oe,null,{default:(0,k.k6)((()=>[(0,k.bF)(se,{command:"dateDesc"},{default:(0,k.k6)((()=>t[22]||(t[22]=[(0,k.eW)("按时间倒序")]))),_:1}),(0,k.bF)(se,{command:"nameAsc"},{default:(0,k.k6)((()=>t[23]||(t[23]=[(0,k.eW)("按名称升序")]))),_:1})])),_:1})])),default:(0,k.k6)((()=>[(0,k.Lk)("span",T,[(0,k.bF)(ne,{icon:re.sortIcon,class:"header-icon"},null,8,["icon"])])])),_:1},8,["onCommand"]),(0,k.bF)(ce,{disabled:re.disableTooltip,content:"全选此页",placement:"bottom"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:re.selectPageIcon,class:"header-icon",onClick:re.handleSelectPage},null,8,["icon","onClick"])])),_:1},8,["disabled"]),(0,k.bF)(le,{onCommand:re.handleBatchAction,"hide-on-click":!1,disabled:0===te.selectedFiles.length},{dropdown:(0,k.k6)((()=>[(0,k.bF)(oe,null,{default:(0,k.k6)((()=>[(0,k.bF)(se,{command:"copy"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"copy",style:{"margin-right":"5px"}}),t[24]||(t[24]=(0,k.eW)(" 复制 "))])),_:1}),(0,k.bF)(se,{command:"delete"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"trash-alt",style:{"margin-right":"5px"}}),t[25]||(t[25]=(0,k.eW)(" 删除 "))])),_:1}),(0,k.bF)(se,{command:"download"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"download",style:{"margin-right":"5px"}}),t[26]||(t[26]=(0,k.eW)(" 下载 "))])),_:1}),(0,k.bF)(se,{command:"move"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"file-export",style:{"margin-right":"5px"}}),t[27]||(t[27]=(0,k.eW)(" 移动 "))])),_:1}),(0,k.bF)(se,{command:"ban"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"ban",style:{"margin-right":"5px"}}),t[28]||(t[28]=(0,k.eW)(" 加入黑名单 "))])),_:1}),(0,k.bF)(se,{command:"white"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"user-plus",style:{"margin-right":"5px"}}),t[29]||(t[29]=(0,k.eW)(" 加入白名单 "))])),_:1})])),_:1})])),default:(0,k.k6)((()=>[(0,k.Lk)("span",z,[(0,k.bF)(ne,{icon:"ellipsis-h",class:(0,y.C4)(["header-icon",{disabled:0===te.selectedFiles.length}])},null,8,["class"])])])),_:1},8,["onCommand","disabled"]),(0,k.bF)(ce,{disabled:re.disableTooltip,content:"链接格式",placement:"bottom"},{default:(0,k.k6)((()=>[(0,k.Lk)("span",D,[(0,k.bF)(ne,{icon:"link",class:"header-icon",onClick:t[1]||(t[1]=e=>te.showUrlDialog=!0)})])])),_:1},8,["disabled"]),(0,k.bF)(ce,{disabled:re.disableTooltip,content:"退出登录",placement:"bottom"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"sign-out-alt",class:"header-icon",onClick:re.handleLogout},null,8,["onClick"])])),_:1},8,["disabled"])])])])),_:1}),(0,k.bF)(_e,{class:"main-container"},{default:(0,k.k6)((()=>[(0,k.Lk)("div",A,[(0,k.bF)(ue,{separator:"/"},{default:(0,k.k6)((()=>[(0,k.bF)(he,{onClick:t[2]||(t[2]=e=>re.navigateToFolder(""))},{default:(0,k.k6)((()=>t[30]||(t[30]=[(0,k.eW)("根目录")]))),_:1}),((0,k.uX)(!0),(0,k.CE)(k.FK,null,(0,k.pI)(te.currentPath.split("/").filter(Boolean),((e,t)=>((0,k.uX)(),(0,k.Wv)(he,{key:t,onClick:e=>re.navigateToFolder(te.currentPath.split("/").slice(0,t+1).join("/"))},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(e),1)])),_:2},1032,["onClick"])))),128))])),_:1})]),(0,k.bo)(((0,k.uX)(),(0,k.CE)("div",I,[((0,k.uX)(!0),(0,k.CE)(k.FK,null,(0,k.pI)(re.paginatedTableData,((e,r)=>((0,k.uX)(),(0,k.CE)(k.FK,{key:r},[re.isFolder(e)?((0,k.uX)(),(0,k.Wv)(pe,{key:0,class:"img-card folder-card"},{default:(0,k.k6)((()=>[(0,k.bF)(fe,{modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,["modelValue","onUpdate:modelValue"]),(0,k.Lk)("div",{class:"folder-icon",onClick:t=>re.enterFolder(e.name)},[(0,k.bF)(ne,{icon:"folder-open",size:"4x"})],8,U),(0,k.Lk)("div",L,[(0,k.Lk)("div",B,[(0,k.bF)(ce,{disabled:re.disableTooltip,content:"删除",placement:"top"},{default:(0,k.k6)((()=>[(0,k.bF)(me,{size:"mini",type:"danger",onClick:(0,w.D$)((t=>re.handleDelete(r,e.name)),["stop"])},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"trash-alt"})])),_:2},1032,["onClick"])])),_:2},1032,["disabled"]),(0,k.bF)(ce,{disabled:re.disableTooltip,content:"移动",placement:"top"},{default:(0,k.k6)((()=>[(0,k.bF)(me,{size:"mini",type:"primary",onClick:(0,w.D$)((t=>re.handleMove(r,e.name)),["stop"])},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"file-export"})])),_:2},1032,["onClick"])])),_:2},1032,["disabled"])])]),(0,k.Lk)("div",O,(0,y.v_)(re.getFolderName(e.name)),1)])),_:2},1024)):((0,k.uX)(),(0,k.Wv)(pe,{key:1,class:"img-card"},{default:(0,k.k6)((()=>[(0,k.bF)(fe,{modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,["modelValue","onUpdate:modelValue"]),(0,k.Lk)("div",W,["White"===e.metadata?.ListType?((0,k.uX)(),(0,k.CE)("div",P,(0,y.v_)(e.channelTag),1)):"Block"===e.metadata?.ListType||"adult"===e.metadata?.Label?((0,k.uX)(),(0,k.CE)("div",R,(0,y.v_)(e.channelTag),1)):((0,k.uX)(),(0,k.CE)("div",$,(0,y.v_)(e.channelTag),1))]),re.isVideo(e)?((0,k.uX)(),(0,k.CE)("video",{key:0,src:"/file/"+e.name+"?from=admin",autoplay:"",muted:"",loop:"",class:"video-preview",onClick:t[3]||(t[3]=(...e)=>re.handleVideoClick&&re.handleVideoClick(...e))},null,8,N)):re.isImage(e)?((0,k.uX)(),(0,k.Wv)(ge,{key:1,"preview-teleported":!0,src:"/file/"+e.name+"?from=admin","preview-src-list":e.previewSrcList,fit:"cover",lazy:"",class:"image-preview"},null,8,["src","preview-src-list"])):((0,k.uX)(),(0,k.CE)("div",j,[(0,k.bF)(ne,{icon:"file",class:"file-icon",size:"4x"})])),(0,k.Lk)("div",Z,[(0,k.Lk)("div",M,[(0,k.Lk)("div",V,[(0,k.bF)(ce,{disabled:re.disableTooltip,content:"复制链接",placement:"top"},{default:(0,k.k6)((()=>[(0,k.bF)(me,{size:"mini",type:"primary",onClick:(0,w.D$)((t=>re.handleCopy(r,e.name)),["stop"])},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"copy"})])),_:2},1032,["onClick"])])),_:2},1032,["disabled"]),(0,k.bF)(ce,{disabled:re.disableTooltip,content:"下载",placement:"top"},{default:(0,k.k6)((()=>[(0,k.bF)(me,{size:"mini",type:"primary",onClick:(0,w.D$)((t=>re.handleDownload(e.name)),["stop"])},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"download"})])),_:2},1032,["onClick"])])),_:2},1032,["disabled"])]),(0,k.Lk)("div",G,[(0,k.bF)(ce,{disabled:re.disableTooltip,content:"详情",placement:"top"},{default:(0,k.k6)((()=>[(0,k.bF)(me,{size:"mini",type:"primary",onClick:(0,w.D$)((t=>re.openDetailDialog(r,e.name)),["stop"])},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"info"})])),_:2},1032,["onClick"])])),_:2},1032,["disabled"]),(0,k.bF)(ce,{disabled:re.disableTooltip,content:"移动",placement:"top"},{default:(0,k.k6)((()=>[(0,k.bF)(me,{size:"mini",type:"primary",onClick:(0,w.D$)((t=>re.handleMove(r,e.name)),["stop"])},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"file-export"})])),_:2},1032,["onClick"])])),_:2},1032,["disabled"]),(0,k.bF)(ce,{disabled:re.disableTooltip,content:"删除",placement:"top"},{default:(0,k.k6)((()=>[(0,k.bF)(me,{size:"mini",type:"danger",onClick:(0,w.D$)((t=>re.handleDelete(r,e.name)),["stop"])},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"trash-alt"})])),_:2},1032,["onClick"])])),_:2},1032,["disabled"])])])]),(0,k.Lk)("div",X,(0,y.v_)(re.getFileName(e.metadata?.FileName||e.name)),1)])),_:2},1024))],64)))),128))])),[[ze,te.loading]]),(0,k.Lk)("div",H,[(0,k.bF)(be,{background:"",layout:"prev, pager, next",total:re.filteredTableData.length,"page-size":te.pageSize,"current-page":te.currentPage,onCurrentChange:re.handlePageChange},null,8,["total","page-size","current-page","onCurrentChange"]),(0,k.Lk)("div",q,[(0,k.bF)(me,{type:"primary",onClick:re.refreshFileList,class:"refresh-btn"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"sync",class:(0,y.C4)({"fa-spin":te.refreshLoading})},null,8,["class"])])),_:1},8,["onClick"]),te.currentPage===Math.ceil(re.filteredTableData.length/te.pageSize)?((0,k.uX)(),(0,k.Wv)(me,{key:0,type:"primary",onClick:re.loadMoreData,loading:te.loading,class:"load-more"},{default:(0,k.k6)((()=>t[31]||(t[31]=[(0,k.eW)(" 加载更多 ")]))),_:1},8,["onClick","loading"])):(0,k.Q3)("",!0)])])])),_:1})])),_:1}),(0,k.bF)(xe,{title:"文件详情",modelValue:te.showdetailDialog,"onUpdate:modelValue":t[16]||(t[16]=e=>te.showdetailDialog=e),width:re.dialogWidth},{default:(0,k.k6)((()=>[(0,k.Lk)("div",K,[(0,k.bF)(me,{type:"primary",onClick:t[4]||(t[4]=e=>re.handleDownload(te.detailFile?.name)),round:"",size:"small",class:"detail-action"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"download",style:{"margin-right":"3px"}}),t[32]||(t[32]=(0,k.eW)(" 下载 "))])),_:1}),(0,k.bF)(me,{type:"primary",onClick:t[5]||(t[5]=e=>re.handleBlock(te.detailFile?.name)),round:"",size:"small",class:"detail-action"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"ban",style:{"margin-right":"3px"}}),t[33]||(t[33]=(0,k.eW)(" 黑名单 "))])),_:1}),(0,k.bF)(me,{type:"primary",onClick:t[6]||(t[6]=e=>re.handleWhite(te.detailFile?.name)),round:"",size:"small",class:"detail-action"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"user-plus",style:{"margin-right":"3px"}}),t[34]||(t[34]=(0,k.eW)(" 白名单 "))])),_:1}),(0,k.bF)(me,{type:"danger",onClick:t[7]||(t[7]=e=>re.handleDetailDelete(te.detailFile?.name)),round:"",size:"small",class:"detail-action"},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"trash-alt",style:{"margin-right":"3px"}}),t[35]||(t[35]=(0,k.eW)(" 删除 "))])),_:1})]),(0,k.bF)(ye,{modelValue:te.activeUrlTab,"onUpdate:modelValue":t[14]||(t[14]=e=>te.activeUrlTab=e),onTabClick:re.handleTabClick,style:{"margin-bottom":"10px"}},{default:(0,k.k6)((()=>[(0,k.bF)(ke,{label:"原始链接",name:"originUrl"},{default:(0,k.k6)((()=>[(0,k.bF)(ae,{modelValue:re.allUrl.originUrl,"onUpdate:modelValue":t[8]||(t[8]=e=>re.allUrl.originUrl=e),readonly:"",onClick:re.handleUrlClick},null,8,["modelValue","onClick"])])),_:1}),(0,k.bF)(ke,{label:"Markdown",name:"mdUrl"},{default:(0,k.k6)((()=>[(0,k.bF)(ae,{modelValue:re.allUrl.mdUrl,"onUpdate:modelValue":t[9]||(t[9]=e=>re.allUrl.mdUrl=e),readonly:"",onClick:re.handleUrlClick},null,8,["modelValue","onClick"])])),_:1}),(0,k.bF)(ke,{label:"HTML",name:"htmlUrl"},{default:(0,k.k6)((()=>[(0,k.bF)(ae,{modelValue:re.allUrl.htmlUrl,"onUpdate:modelValue":t[10]||(t[10]=e=>re.allUrl.htmlUrl=e),readonly:"",onClick:re.handleUrlClick},null,8,["modelValue","onClick"])])),_:1}),(0,k.bF)(ke,{label:"BBCode",name:"bbUrl"},{default:(0,k.k6)((()=>[(0,k.bF)(ae,{modelValue:re.allUrl.bbUrl,"onUpdate:modelValue":t[11]||(t[11]=e=>re.allUrl.bbUrl=e),readonly:"",onClick:re.handleUrlClick},null,8,["modelValue","onClick"])])),_:1}),te.detailFile?.metadata?.TgFileId?((0,k.uX)(),(0,k.Wv)(ke,{key:0,label:"TG File ID",name:"tgId"},{default:(0,k.k6)((()=>[(0,k.bF)(ae,{modelValue:re.allUrl.tgId,"onUpdate:modelValue":t[12]||(t[12]=e=>re.allUrl.tgId=e),readonly:"",onClick:re.handleUrlClick},null,8,["modelValue","onClick"])])),_:1})):(0,k.Q3)("",!0),te.detailFile?.metadata?.S3Location?((0,k.uX)(),(0,k.Wv)(ke,{key:1,label:"S3 Location",name:"s3Location"},{default:(0,k.k6)((()=>[(0,k.bF)(ae,{modelValue:re.allUrl.S3Location,"onUpdate:modelValue":t[13]||(t[13]=e=>re.allUrl.S3Location=e),readonly:"",onClick:re.handleUrlClick},null,8,["modelValue","onClick"])])),_:1})):(0,k.Q3)("",!0)])),_:1},8,["modelValue","onTabClick"]),(0,k.bF)(Fe,{direction:"vertical",border:"",column:re.tableColumnNum},{default:(0,k.k6)((()=>[(0,k.bF)(we,{label:"文件预览",rowspan:re.tablePreviewSpan,width:300,align:"center"},{default:(0,k.k6)((()=>[re.isVideo(te.detailFile)?((0,k.uX)(),(0,k.CE)("video",{key:0,src:"/file/"+te.detailFile?.name+"?from=admin",autoplay:"",muted:"",loop:"",class:"video-preview",onClick:t[15]||(t[15]=(...e)=>re.handleVideoClick&&re.handleVideoClick(...e))},null,8,Y)):re.isImage(te.detailFile)?((0,k.uX)(),(0,k.Wv)(ge,{key:1,src:"/file/"+te.detailFile?.name+"?from=admin",fit:"cover",lazy:"",class:"image-preview"},null,8,["src"])):((0,k.uX)(),(0,k.Wv)(ne,{key:2,icon:"file",class:"file-icon-detail"}))])),_:1},8,["rowspan"]),(0,k.bF)(we,{label:"文件名","class-name":"description-item"},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(te.detailFile?.metadata?.FileName||te.detailFile?.name),1)])),_:1}),(0,k.bF)(we,{label:"文件类型","class-name":"description-item"},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(te.detailFile?.metadata?.FileType||"未知"),1)])),_:1}),(0,k.bF)(we,{label:"文件大小(MB)","class-name":"description-item"},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(te.detailFile?.metadata?.FileSize||"未知"),1)])),_:1}),(0,k.bF)(we,{label:"上传时间","class-name":"description-item"},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(new Date(te.detailFile?.metadata?.TimeStamp).toLocaleString()||"未知"),1)])),_:1}),(0,k.bF)(we,{label:"访问状态","class-name":"description-item"},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(re.accessType),1)])),_:1}),(0,k.bF)(we,{label:"上传渠道","class-name":"description-item"},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(te.detailFile?.metadata?.Channel||"未知"),1)])),_:1}),(0,k.bF)(we,{label:"审查结果","class-name":"description-item"},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(te.detailFile?.metadata?.Label||"无"),1)])),_:1}),(0,k.bF)(we,{label:"上传IP","class-name":"description-item"},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(te.detailFile?.metadata?.UploadIP||"未知"),1)])),_:1}),(0,k.bF)(we,{label:"上传地址","class-name":"description-item"},{default:(0,k.k6)((()=>[(0,k.eW)((0,y.v_)(te.detailFile?.metadata?.UploadAddress||"未知"),1)])),_:1})])),_:1},8,["column"])])),_:1},8,["modelValue","width"]),(0,k.bF)(xe,{title:"链接格式",modelValue:te.showUrlDialog,"onUpdate:modelValue":t[21]||(t[21]=e=>te.showUrlDialog=e),width:re.dialogWidth,"show-close":!1},{default:(0,k.k6)((()=>[t[46]||(t[46]=(0,k.Lk)("p",{style:{"font-size":"medium","font-weight":"bold"}},"默认复制链接",-1)),(0,k.bF)(Se,{modelValue:te.defaultUrlFormat,"onUpdate:modelValue":t[17]||(t[17]=e=>te.defaultUrlFormat=e)},{default:(0,k.k6)((()=>[(0,k.bF)(Ce,{label:"originUrl"},{default:(0,k.k6)((()=>t[36]||(t[36]=[(0,k.eW)("原始链接")]))),_:1}),(0,k.bF)(Ce,{label:"mdUrl"},{default:(0,k.k6)((()=>t[37]||(t[37]=[(0,k.eW)("Markdown")]))),_:1}),(0,k.bF)(Ce,{label:"htmlUrl"},{default:(0,k.k6)((()=>t[38]||(t[38]=[(0,k.eW)("HTML")]))),_:1}),(0,k.bF)(Ce,{label:"bbUrl"},{default:(0,k.k6)((()=>t[39]||(t[39]=[(0,k.eW)("BBCode")]))),_:1}),(0,k.bF)(Ce,{label:"tgId"},{default:(0,k.k6)((()=>t[40]||(t[40]=[(0,k.eW)("TG File ID")]))),_:1}),(0,k.bF)(Ce,{label:"s3Location"},{default:(0,k.k6)((()=>t[41]||(t[41]=[(0,k.eW)("S3链接")]))),_:1})])),_:1},8,["modelValue"]),(0,k.Lk)("p",J,[t[42]||(t[42]=(0,k.eW)("自定义链接 ")),(0,k.bF)(ce,{content:"默认链接为https://your.domain/file/xxx.jpg <br> 如果启用自定义链接格式只保留xxx.jpg部分其他部分请自行输入",placement:"top","raw-content":""},{default:(0,k.k6)((()=>[(0,k.bF)(ne,{icon:"question-circle",class:"question-icon",size:"me"})])),_:1})]),(0,k.bF)(Te,{"label-width":"25%"},{default:(0,k.k6)((()=>[(0,k.bF)(Ee,{label:"启用自定义"},{default:(0,k.k6)((()=>[(0,k.bF)(Se,{modelValue:te.useCustomUrl,"onUpdate:modelValue":t[18]||(t[18]=e=>te.useCustomUrl=e)},{default:(0,k.k6)((()=>[(0,k.bF)(Ce,{value:"true"},{default:(0,k.k6)((()=>t[43]||(t[43]=[(0,k.eW)("是")]))),_:1}),(0,k.bF)(Ce,{value:"false"},{default:(0,k.k6)((()=>t[44]||(t[44]=[(0,k.eW)("否")]))),_:1})])),_:1},8,["modelValue"])])),_:1}),"true"===te.useCustomUrl?((0,k.uX)(),(0,k.Wv)(Ee,{key:0,label:"自定义前缀"},{default:(0,k.k6)((()=>[(0,k.bF)(ae,{modelValue:te.customUrlPrefix,"onUpdate:modelValue":t[19]||(t[19]=e=>te.customUrlPrefix=e),placeholder:"请输入自定义链接前缀"},null,8,["modelValue"])])),_:1})):(0,k.Q3)("",!0)])),_:1}),(0,k.Lk)("div",Q,[(0,k.bF)(me,{type:"primary",onClick:t[20]||(t[20]=e=>te.showUrlDialog=!1)},{default:(0,k.k6)((()=>t[45]||(t[45]=[(0,k.eW)("确定")]))),_:1})])])),_:1},8,["modelValue","width"])])}r(4114),r(7642),r(8004),r(3853),r(5876),r(2475),r(5024),r(1698),r(4603),r(7566),r(8721);var te=r(782),re=r(4813),ie=r.n(re);class ae{constructor(){this.FILE_LIST_PATH="data/fileList.json"}getLocalFileList(){try{const e=localStorage.getItem(this.FILE_LIST_PATH);return e?JSON.parse(e):{files:[],directories:[]}}catch(e){return console.error("Error reading local file list:",e),{files:[],directories:[]}}}saveFileList(e){try{return localStorage.setItem(this.FILE_LIST_PATH,JSON.stringify(e)),!0}catch(t){return console.error("Error saving file list:",t),!1}}addFile(e){try{const t=this.getLocalFileList();return t.files.push(e),this.saveFileList(t)}catch(t){return console.error("Error adding file:",t),!1}}addFolder(e){try{const t=this.getLocalFileList();return!t.directories.includes(e)&&(t.directories.push(e),this.saveFileList(t))}catch(t){return console.error("Error adding folder:",t),!1}}moveFile(e,t,r=!1,i=""){try{let a=this.getLocalFileList();if(r){const t=a.directories.indexOf(e);-1!==t&&a.directories.splice(t,1)}else{const t=a.files.findIndex((t=>t.name===e));-1!==t&&a.files.splice(t,1)}if(t.startsWith(i)){const e=t.substring(i.length).split("/");if(e.length>1){const t=i+e[0];a.directories.includes(t)||a.directories.push(t)}}return this.saveFileList(a)}catch(a){return console.error("Error moving file:",a),!1}}removeFile(e){try{let t=this.getLocalFileList();return t.files=t.files.filter((t=>t.name!==e)),this.saveFileList(t)}catch(t){return console.error("Error removing file:",t),!1}}removeFolder(e){try{let t=this.getLocalFileList();return t.files=t.files.filter((t=>!t.name.startsWith(e+"/"))),t.directories=t.directories.filter((t=>t!==e)),this.saveFileList(t)}catch(t){return console.error("Error removing folder:",t),!1}}getFilesInFolder(e){try{const t=this.getLocalFileList(),r=t.files.filter((t=>t.name.startsWith(e+"/"))),i=t.directories.filter((t=>t.startsWith(e+"/")));return{files:r,directories:i}}catch(t){return console.error("Error getting files in folder:",t),{files:[],directories:[]}}}async refreshFileList(e,t){try{const r=await e(`/api/manage/list?count=60&dir=${t}`,{method:"GET"}),i=await r.json();return this.saveFileList(i)}catch(r){return console.error("Error refreshing file list:",r),!1}}async loadMoreFiles(e,t){try{const r=this.getLocalFileList(),i=r.files.length,a=await e(`/api/manage/list?dir=${t}&start=${i}&count=60`,{method:"GET"}),n=await a.json();return r.files.push(...n.files),this.saveFileList(r)}catch(r){return console.error("Error loading more files:",r),{files:[],directories:[]}}}}const ne=new ae;var se={data(){return{Number:0,showLogoutButton:!1,tableData:[],search:"",currentPage:1,pageSize:15,selectedFiles:[],sortOption:"dateDesc",isUploading:!1,showdetailDialog:!1,detailFile:null,activeUrlTab:"originUrl",defaultUrlFormat:"originUrl",showUrlDialog:!1,useCustomUrl:"false",customUrlPrefix:"",loading:!1,currentPath:"",refreshLoading:!1}},components:{DashboardTabs:v.A},computed:{...(0,te.L8)(["credentials","adminUrlSettings","userConfig"]),filteredTableData(){return this.tableData.filter((e=>!this.search||e.name.toLowerCase().includes(this.search.toLowerCase())||e.metadata?.FileName?.toLowerCase().includes(this.search.toLowerCase())))},paginatedTableData(){const e=this.sortData(this.filteredTableData),t=(this.currentPage-1)*this.pageSize,r=t+this.pageSize;let i=e.slice(t,r);const a=i.filter((e=>e.metadata?.FileType?.includes("image"))).map((e=>`/file/${e.name}?from=admin`));return i.forEach((e=>{e.metadata?.FileType?.includes("video")||(e.previewSrcList=a.slice(a.indexOf(`/file/${e.name}?from=admin`)).concat(a.slice(0,a.indexOf(`/file/${e.name}?from=admin`))))})),i.forEach((e=>{"TelegramNew"===e.metadata?.Channel?e.channelTag="TG":"CloudflareR2"===e.metadata?.Channel?e.channelTag="R2":"S3"===e.metadata?.Channel?e.channelTag="S3":"External"===e.metadata?.Channel?e.channelTag="外链":e.channelTag="未知"})),i},sortIcon(){return"dateDesc"===this.sortOption?"sort-amount-down":"sort-alpha-up"},dialogWidth(){return window.innerWidth>768?"50%":"90%"},accessType(){return"White"===this.detailFile?.metadata?.ListType?"正常":"Block"===this.detailFile?.metadata?.ListType||"adult"===this.detailFile?.metadata?.Label?"受限":"正常"},allUrl(){return"External"===this.detailFile?.metadata?.Channel?{originUrl:`${this.detailFile?.metadata?.ExternalLink}`,mdUrl:`![${this.detailFile?.metadata?.FileName||this.detailFile?.name}](${this.detailFile?.metadata?.ExternalLink})`,htmlUrl:`<img src="${this.detailFile?.metadata?.ExternalLink}" alt="${this.detailFile?.metadata?.FileName||this.detailFile?.name}" width=100%>`,bbUrl:`[img]${this.detailFile?.metadata?.ExternalLink}[/img]`,tgId:this.detailFile?.metadata?.TgFileId||"未知",S3Location:this.detailFile?.metadata?.S3Location||"未知"}:{originUrl:`${this.rootUrl}${this.detailFile?.name}`,mdUrl:`![${this.detailFile?.metadata?.FileName||this.detailFile?.name}](${this.rootUrl}${this.detailFile?.name})`,htmlUrl:`<img src="${this.rootUrl}${this.detailFile?.name}" alt="${this.detailFile?.metadata?.FileName||this.detailFile?.name}" width=100%>`,bbUrl:`[img]${this.rootUrl}${this.detailFile?.name}[/img]`,tgId:this.detailFile?.metadata?.TgFileId||"未知",S3Location:this.detailFile?.metadata?.S3Location||"未知"}},tableColumnNum(){return window.innerWidth>768?3:1},tablePreviewSpan(){return window.innerWidth>768?2:1},disableTooltip(){return window.innerWidth<768},selectPage(){return this.paginatedTableData.every((e=>e.selected))},selectedPageFiles(){return this.paginatedTableData.some((e=>e.selected))},selectPageIcon(){return this.selectPage?"check-square":this.selectedPageFiles?"minus-square":"square"},rootUrl(){return"true"===this.useCustomUrl?this.customUrlPrefix:this.userConfig?.urlPrefix||`${document.location.origin}/file/`}},watch:{tableData:{handler(e){this.selectedFiles=this.selectedFiles.concat(e.filter((e=>e.selected&&!this.selectedFiles.includes(e)))),this.selectedFiles=this.selectedFiles.filter((e=>e.selected)),this.selectedFiles=this.selectedFiles.filter((t=>e.includes(t)))},deep:!0},sortOption(e){localStorage.setItem("sortOption",e)},defaultUrlFormat(e){localStorage.setItem("defaultUrlFormat",e)},showdetailDialog(e){e&&(this.activeUrlTab=this.defaultUrlFormat||"originUrl")},customUrlPrefix(e){this.$store.commit("setAdminUrlSettings",{key:"customUrlPrefix",value:e})},useCustomUrl(e){this.$store.commit("setAdminUrlSettings",{key:"useCustomUrl",value:e})},currentPath(e){this.tableData.forEach((e=>e.selected=!1))}},methods:{handleDownload(e){const t=document.createElement("a");t.href=`/file/${e}?from=admin`,t.download=e,t.click()},openDetailDialog(e,t){this.detailFile=this.paginatedTableData[e],this.showdetailDialog=!0},handleTabClick(e){this.activeUrlTab=e.props.name},handleUrlClick(e){navigator.clipboard.writeText(e.target.value).then((()=>{this.$message({type:"success",message:"复制成功"})})).catch((()=>{this.$message({type:"error",message:"复制失败"})}))},handleDetailDelete(e){this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.fetchWithAuth(`/api/manage/delete/${e}`,{method:"GET"}).then((t=>{if(!t.ok)return Promise.reject("请求失败");{const t=this.tableData.findIndex((t=>t.name===e));-1!==t&&this.tableData.splice(t,1)}})).then((()=>{this.updateStats(-1,!1),this.$message.success("删除成功!"),this.showdetailDialog=!1})).catch((()=>this.$message.error("删除失败,请检查网络连接")))})).catch((()=>this.$message.info("已取消删除")))},handleBlock(e){this.$confirm("此操作将把该文件加入黑名单, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.fetchWithAuth(`/api/manage/block/${e}`,{method:"GET"}).then((t=>{if(!t.ok)return Promise.reject("请求失败");{const t=this.tableData.findIndex((t=>t.name===e));-1!==t&&(this.tableData[t].metadata.ListType="Block")}})).then((()=>{this.$message.success("加入黑名单成功!")})).catch((()=>this.$message.error("加入黑名单失败,请检查网络连接")))})).catch((()=>console.log("已取消加入黑名单")))},handleWhite(e){this.$confirm("此操作将把该文件加入白名单, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.fetchWithAuth(`/api/manage/white/${e}`,{method:"GET"}).then((t=>{if(!t.ok)return Promise.reject("请求失败");{const t=this.tableData.findIndex((t=>t.name===e));-1!==t&&(this.tableData[t].metadata.ListType="White")}})).then((()=>{this.$message.success("加入白名单成功!")})).catch((()=>this.$message.error("加入白名单失败,请检查网络连接")))})).catch((()=>console.log("已取消加入白名单")))},async fetchWithAuth(e,t={}){this.credentials&&(t.headers={...t.headers,Authorization:`Basic ${this.credentials}`},t.credentials="include");const r=await fetch(e,t);if(401===r.status)throw this.$message.error("认证状态错误,请重新登录"),this.$router.push("/adminLogin"),new Error("Unauthorized");return r},handleDelete(e,t){const r=this.tableData.find((e=>e.name===t)).isFolder;this.$confirm(`此操作将永久删除${r?"文件夹":"该文件"}, 是否继续?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.fetchWithAuth(`/api/manage/delete/${t}?folder=${r}`,{method:"GET"}).then((e=>{if(!e.ok)return Promise.reject("请求失败");{const e=this.tableData.findIndex((e=>e.name===t));-1!==e&&this.tableData.splice(e,1)}})).then((()=>{this.updateStats(-1,!1),ne.removeFile(t),this.$message.success("删除成功!")})).catch((()=>this.$message.error("删除失败,请检查网络连接")))})).catch((()=>this.$message.info("已取消删除")))},handleBatchDelete(){this.$confirm("此操作将永久删除选中的文件及文件夹, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{const e=this.selectedFiles.map((e=>{const t=e.isFolder;return this.fetchWithAuth(`/api/manage/delete/${e.name}?folder=${t}`,{method:"GET"})}));Promise.all(e).then((e=>{let t=0;e.forEach(((e,r)=>{if(e.ok){t++;const e=this.tableData.findIndex((e=>e.name===this.selectedFiles[r].name));-1!==e&&this.tableData.splice(e,1),ne.removeFile(this.selectedFiles[r].name)}})),this.selectedFiles=[],this.updateStats(-t,!1),this.$message.success("批量删除成功!")})).catch((()=>this.$message.error("批量删除失败,请检查网络连接")))})).catch((()=>this.$message.info("已取消批量删除")))},handleBatchCopy(){let e="";switch(this.defaultUrlFormat){case"originUrl":e=this.selectedFiles.map((e=>e.isFolder?"":"External"===e.metadata?.Channel?e.metadata?.ExternalLink:`${this.rootUrl}${e.name}`)).join("\n");break;case"mdUrl":e=this.selectedFiles.map((e=>e.isFolder?"":"External"===e.metadata?.Channel?`![${e.metadata?.FileName||e.name}](${e.metadata?.ExternalLink})`:`![${e.metadata?.FileName||e.name}](${this.rootUrl}${e.name})`)).join("\n");break;case"htmlUrl":e=this.selectedFiles.map((e=>e.isFolder?"":"External"===e.metadata?.Channel?`<img src="${e.metadata?.ExternalLink}" alt="${e.metadata?.FileName||e.name}" width=100%>`:`<img src="${this.rootUrl}${e.name}" alt="${e.metadata?.FileName||e.name}" width=100%>`)).join("\n");break;case"bbUrl":e=this.selectedFiles.map((e=>e.isFolder?"":"External"===e.metadata?.Channel?`[img]${e.metadata?.ExternalLink}[/img]`:`[img]${this.rootUrl}${e.name}[/img]`)).join("\n");break;case"tgId":e=this.selectedFiles.map((e=>e.metadata?.TgFileId||"")).join("\n");break;case"s3Location":e=this.selectedFiles.map((e=>e.metadata?.S3Location||"")).join("\n");break}e=e.replace(/^\s*[\r\n]/gm,"");const t=e;navigator.clipboard?navigator.clipboard.writeText(t).then((()=>this.$message.success("批量复制链接成功~"))):this.copyToClipboardFallback(t)},copyToClipboardFallback(e){const t=document.createElement("textarea");document.body.appendChild(t),t.style.position="fixed",t.style.clip="rect(0 0 0 0)",t.style.top="10px",t.value=e,t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message.success("批量复制链接成功~")},handleCopy(e,t){let r="";if("External"===this.paginatedTableData[e].metadata?.Channel)switch(this.defaultUrlFormat){case"originUrl":r=this.paginatedTableData[e].metadata?.ExternalLink;break;case"mdUrl":r=`![${this.paginatedTableData[e].metadata?.FileName||t}](${this.paginatedTableData[e].metadata?.ExternalLink})`;break;case"htmlUrl":r=`<img src="${this.paginatedTableData[e].metadata?.ExternalLink}" alt="${this.paginatedTableData[e].metadata?.FileName||t}" width=100%>`;break;case"bbUrl":r=`[img]${this.paginatedTableData[e].metadata?.ExternalLink}[/img]`;break;case"tgId":r=this.paginatedTableData[e].metadata?.TgFileId||"none";break;case"s3Location":r=this.paginatedTableData[e].metadata?.S3Location||"none";break}else switch(this.defaultUrlFormat){case"originUrl":r=`${this.rootUrl}${t}`;break;case"mdUrl":r=`![${this.paginatedTableData[e].metadata?.FileName||t}](${this.rootUrl}${t})`;break;case"htmlUrl":r=`<img src="${this.rootUrl}${t}" alt="${this.paginatedTableData[e].metadata?.FileName||t}" width=100%>`;break;case"bbUrl":r=`[img]${this.rootUrl}${t}[/img]`;break;case"tgId":r=this.paginatedTableData[e].metadata?.TgFileId||"none";break;case"s3Location":r=this.paginatedTableData[e].metadata?.S3Location||"none";break}navigator.clipboard?navigator.clipboard.writeText(r).then((()=>this.$message.success("复制文件链接成功~"))):this.copyToClipboardFallback(r)},async loadMoreData(){this.loading=!0;try{await ne.loadMoreFiles(this.fetchWithAuth,this.currentPath),await this.fetchFileList()}catch(e){this.$message.error("加载更多文件失败,请检查网络连接")}finally{this.loading=!1}},updateStats(e,t=!1){t?this.fetchWithAuth(`/api/manage/list?count=-1&sum=true&dir=${this.currentPath}`,{method:"GET"}).then((e=>e.json())).then((e=>{this.Number=e.sum})).catch((()=>this.$message.error("更新统计信息失败,请检查网络连接"))):this.Number+=e},sort(e){this.sortOption=e},sortData(e){const t=e.filter((e=>e.isFolder)),r=e.filter((e=>!e.isFolder));return"dateDesc"===this.sortOption?(t.sort(((e,t)=>new Date(t.metadata?.TimeStamp)-new Date(e.metadata?.TimeStamp))),r.sort(((e,t)=>new Date(t.metadata?.TimeStamp)-new Date(e.metadata?.TimeStamp)))):(t.sort(((e,t)=>e.name.localeCompare(t.name))),r.sort(((e,t)=>e.name.localeCompare(t.name)))),t.concat(r)},handleVideoClick(e){const t=e.target;t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},handleLogout(){this.$store.commit("setCredentials",null),this.$router.push("/adminLogin")},handleSelectPage(){this.selectPage?this.paginatedTableData.forEach((e=>e.selected=!1)):this.paginatedTableData.forEach((e=>e.selected=!0))},handleBatchAction(e){"copy"===e?this.handleBatchCopy():"delete"===e?this.handleBatchDelete():"download"===e?this.handleBatchDownload():"move"===e?this.handleBatchMove():"ban"===e?this.handleBatchBlock():"white"===e&&this.handleBatchWhite()},handleMove(e,t){this.$prompt("请输入新的目录","移动文件",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\/([a-zA-Z0-9_\u4e00-\u9fa5]+(\/[a-zA-Z0-9_\u4e00-\u9fa5]+)*)?$/,inputErrorMessage:"请输入/开头的正确目录路径"}).then((({value:e})=>{const r=e.replace(/^\/+/,"")+(e.endsWith("/")||""===e?"":"/"),i=this.tableData.find((e=>e.name===t)).isFolder;r!==this.currentPath?this.fetchWithAuth(`/api/manage/move/${t}?folder=${i}&dist=${r}`,{method:"GET"}).then((e=>{if(!e.ok)return Promise.reject("请求失败");{const e=this.tableData.findIndex((e=>e.name===t));if(-1!==e){const a=r+t.split("/").pop();ne.moveFile(t,a,i,this.currentPath),this.tableData.splice(e,1),this.$nextTick((()=>{const e=[...this.tableData];this.tableData=[],this.$nextTick((()=>{this.tableData=e}))}))}this.updateStats(-1,!1),this.$message.success("移动成功!")}})).then((()=>{this.refreshLocalFileList()})).catch((()=>this.$message.error("移动失败,请检查网络连接"))):this.$message.warning("目标文件夹不能是当前文件夹")})).catch((()=>this.$message.info("已取消移动文件")))},handleBatchMove(){this.$prompt("请输入新的目录","移动文件",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\/([a-zA-Z0-9_\u4e00-\u9fa5]+(\/[a-zA-Z0-9_\u4e00-\u9fa5]+)*)?$/,inputErrorMessage:"请输入/开头的正确目录路径"}).then((({value:e})=>{const t=e.replace(/^\/+/,"")+(e.endsWith("/")||""===e?"":"/");if(t===this.currentPath)return void this.$message.warning("目标文件夹不能是当前文件夹");const r=this.selectedFiles.map((e=>{const r=e.isFolder;return this.fetchWithAuth(`/api/manage/move/${e.name}?folder=${r}&dist=${t}`,{method:"GET"})}));Promise.all(r).then((e=>{let r=0;e.forEach(((e,i)=>{if(e.ok){r++;const e=this.selectedFiles[i];e.selected=!1;const a=this.tableData.findIndex((t=>t.name===e.name));if(-1!==a){const r=t+e.name.split("/").pop();ne.moveFile(e.name,r,e.isFolder,this.currentPath),this.tableData.splice(a,1)}}})),this.$nextTick((()=>{const e=[...this.tableData];this.tableData=[],this.$nextTick((()=>{this.tableData=e}))})),this.updateStats(-r,!1),this.$message.success("移动成功!")})).then((()=>{this.refreshLocalFileList()})).catch((()=>this.$message.error("移动失败,请检查网络连接")))})).catch((()=>this.$message.info("已取消移动文件")))},handleBatchBlock(){this.$confirm("此操作将把选中的文件加入黑名单, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{const e=this.selectedFiles.map((e=>e.isFolder?Promise.resolve({ok:!1}):this.fetchWithAuth(`/api/manage/block/${e.name}`,{method:"GET"})));Promise.all(e).then((e=>{e.forEach(((e,t)=>{if(e.ok){const e=this.tableData.findIndex((e=>e.name===this.selectedFiles[t].name));-1!==e&&(this.tableData[e].metadata.ListType="Block")}})),this.$message.success("批量加入黑名单成功!")})).catch((()=>this.$message.error("批量加入黑名单失败,请检查网络连接")))})).catch((()=>this.$message.info("已取消批量加入黑名单")))},handleBatchWhite(){this.$confirm("此操作将把选中的文件加入白名单, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{const e=this.selectedFiles.map((e=>e.isFolder?Promise.resolve({ok:!1}):this.fetchWithAuth(`/api/manage/white/${e.name}`,{method:"GET"})));Promise.all(e).then((e=>{e.forEach(((e,t)=>{if(e.ok){const e=this.tableData.findIndex((e=>e.name===this.selectedFiles[t].name));-1!==e&&(this.tableData[e].metadata.ListType="White")}})),this.$message.success("批量加入白名单成功!")})).catch((()=>this.$message.error("批量加入白名单失败,请检查网络连接")))})).catch((()=>this.$message.info("已取消批量加入白名单")))},handleBatchDownload(){const e=new(ie()),t=e.folder("files"),r={},i=this.selectedFiles.map((async e=>{if(e.isFolder)return;const i=await fetch(`/file/${e.name}?from=admin`),a=await i.blob();let n=e.metadata?.FileName||e.name;if(r[n]){const t=n.substring(n.lastIndexOf(".")),i=n.substring(0,n.lastIndexOf("."));n=`${i}(${r[n]})${t}`,r[e.name]++}else r[n]=1;t.file(n,a)}));Promise.all(i).then((()=>e.generateAsync({type:"blob"}))).then((e=>{const t=document.createElement("a");t.href=URL.createObjectURL(e),t.download="files.zip",t.click()}))},isVideo(e){let t=e.metadata?.FileType?.includes("video")||e.metadata?.FileType?.includes("audio");if(!t){const r=["mp4","webm","ogg","avi","mov","flv","wmv","mkv","rmvb","3gp","mpg","mpeg","m4v","f4v","rm","asf","dat","ts","vob","swf","divx","xvid","m2ts","mts","m2v","3g2","3gp2","3gpp","3gpp2","mpe","m1v","mpv","mpv2","mp2v","m2t","m2ts","m2v","m4b","m4p","m4v","m4r"],i=e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase();t=r.includes(i)}return t},isImage(e){let t=e.metadata?.FileType?.includes("image");if(!t){const r=["jpg","jpeg","png","gif","bmp","webp","svg","ico","tiff","tif","psd","ai","eps","raw","cr2","nef","orf","sr2","dng","arw","rw2","raf","pef","x3f","srf","erf","mrw","nrw","kdc","dcr","mef","mos","crw","raf","rwl","srw","3fr","fff","iiq","qtk","bay","k25","kdc","dcs","drf","dng","erf","kdc","mdc","mef","mos","mrw","nef","nrw","orf","pef","ptx","pxn","r3d","raf","raw","rwl","rw2","rwz","sr2","srf","x3f"],i=e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase();t=r.includes(i)}return t},handlePageChange(e){this.currentPage=e,this.currentPage===Math.ceil(this.filteredTableData.length/this.pageSize)&&this.loadMoreData()},isFolder(e){if(e.isFolder)return!0;let t=e.name;if(t.startsWith("http")&&(t=t.split("/file/")[1]),t&&t.includes("/")){const e=this.currentPath?t.substring(this.currentPath.length):t;return""===this.currentPath?!t.split("/")[0].includes("."):e.includes("/")}return!1},getFolderName(e){e.startsWith("http")&&(e=e.split("/file/")[1]);let t="";if(e&&e.includes("/")){const r=e.split("/");if(""===this.currentPath)t=r[0];else{const r=e.substring(this.currentPath.length);t=r.split("/")[0]}}else t=e;const r=20;if(t.length>r){const e=Math.floor((r-3)/2),i=Math.ceil((r-3)/2);return`${t.substring(0,e)}...${t.substring(t.length-i)}`}return t},getFileName(e){e.startsWith("http")&&(e=e.split("/file/")[1]);let t=e.split("/").pop();const r=20;if(t.length>r){const e=Math.floor((r-3)/2),i=Math.ceil((r-3)/2);return`${t.substring(0,e)}...${t.substring(t.length-i)}`}return t},enterFolder(e){this.currentPath=e+(e.endsWith("/")?"":"/"),this.refreshFileList()},navigateToFolder(e){this.currentPath=e?e+(e.endsWith("/")?"":"/"):"",this.refreshFileList()},async fetchFileList(){this.loading=!0;try{const e=ne.getLocalFileList(),t=new Set(e.directories||[]),r=e.files||[],i=Array.from(t).map((e=>({name:e,isFolder:!0,selected:!1,metadata:{FileName:e.split("/").pop()}}))),a=r.map((e=>({name:e.name,isFolder:!1,selected:!1,metadata:e.metadata})));this.tableData=[...i,...a],this.updateStats(0,!0)}catch(e){console.error("Error fetching file list:",e),this.$message.error("获取文件列表失败")}finally{this.loading=!1}},async refreshFileList(){this.refreshLoading=!0,this.loading=!0;try{const e=await ne.refreshFileList(this.fetchWithAuth,this.currentPath);if(!e)throw new Error("Refresh failed");await this.fetchFileList()}catch(e){console.error("Error refreshing file list:",e),this.$message.error("刷新失败,请重试")}finally{this.refreshLoading=!1,this.loading=!1}},async refreshLocalFileList(){this.refreshLoading=!0,this.loading=!0;try{await this.fetchFileList()}catch(e){console.error("Error refreshing local file list:",e),this.$message.error("刷新失败,请重试")}finally{this.refreshLoading=!1,this.loading=!1}}},mounted(){this.loading=!0,this.fetchWithAuth("/api/manage/check",{method:"GET"}).then((e=>e.text())).then((e=>{if("true"==e)return this.showLogoutButton=!0,!0;if("Not using basic auth."==e)return!0;throw new Error("Unauthorized")})).then((()=>this.refreshFileList())).catch((e=>{"Unauthorized"!==e.message&&this.$message.error("同步数据时出错,请检查网络连接")})).finally((()=>{this.loading=!1})),this.customUrlPrefix=this.adminUrlSettings.customUrlPrefix,this.useCustomUrl=this.adminUrlSettings.useCustomUrl}},oe=r(1241);const le=(0,oe.A)(se,[["render",ee],["__scopeId","data-v-42382e2c"]]);var ce=le},8050:function(e,t,r){"use strict";r(5331)},5385:function(e,t,r){"use strict";r(5331)},8736:function(e,t,r){"use strict";r(5331)},5616:function(e,t,r){"use strict";r(5331),r(7197)},3597:function(e,t,r){"use strict";r(5331)},8830:function(e,t,r){"use strict";r(5331)},6055:function(e,t,r){"use strict";r(5331),r(9648),r(8050),r(9104),r(5970)},3003:function(e,t,r){"use strict";r(5331)},8642:function(e,t,r){"use strict";r(5331)},7128:function(e,t,r){"use strict";r(5331),r(4318)},8450:function(e,t,r){"use strict";r(5331)},694:function(e,t,r){"use strict";r(5331)},5534:function(e,t,r){"use strict";r(5331),r(8785),r(5970),r(9104)},9104:function(e,t,r){"use strict";r(5331)},4396:function(e,t,r){"use strict";r(5331)},4885:function(e,t,r){"use strict";r(5331)},5970:function(e,t,r){"use strict";r(5331)},8785:function(e,t,r){"use strict";r(5331)},213:function(e,t,r){"use strict";r(5331),r(9104)}}]);
//# sourceMappingURL=710.304e6d38.js.map