diff --git a/pages/WYXD/WYXD.vue b/pages/WYXD/WYXD.vue index d654481..55c214b 100644 --- a/pages/WYXD/WYXD.vue +++ b/pages/WYXD/WYXD.vue @@ -42,7 +42,7 @@ - + {{ pad(currentIndex + 1) }} @@ -50,7 +50,7 @@ {{ pad(slides.length) }} - + @@ -131,12 +131,17 @@ const startDownload = async () => { currentIndex.value = 0 status.value = 'downloading' + console.log("userToken.value",userToken.value); + console.log("workspaceId.value",workspaceId.value); + console.log("filePath.value",filePath.value); const tempPath = await downloadWyxdAsZip( userToken.value, workspaceId.value, filePath.value ) + console.log("获取到的下载地址:",tempPath); status.value = 'extracting' const extracted = await extractWyxd(tempPath) + console.log("extracted",extracted); status.value = 'parsing' const slideList = parseSlides(extracted.html, extracted.header, extracted.images) @@ -165,9 +170,16 @@ const startDownload = async () => { onLoad((options) => { workspaceId.value = options.workspaceId || '' - filePath.value = options.filePath || '' - fileName.value = options.fileName || '未命名文档' - userToken.value = options.userToken || uni.getStorageSync('user_token') || '' + filePath.value = options?.filePath ? decodeURIComponent(options.filePath) : '' + fileName.value = options?.fileName ? decodeURIComponent(options.fileName) : '未命名文档' + userToken.value = options?.userToken ?? uni.getStorageSync('user_token') ?? '' + console.log('页面接收options原始参数:', options) + console.log('最终赋值变量:', { + workspaceId: workspaceId.value, + filePath: filePath.value, + fileName: fileName.value, + userToken: userToken.value + }) if (isWyxdCached(workspaceId.value, filePath.value)) { loadFromCache() diff --git a/pages/WorkSpace/WorkSpace.vue b/pages/WorkSpace/WorkSpace.vue index 6390e44..03bc32a 100644 --- a/pages/WorkSpace/WorkSpace.vue +++ b/pages/WorkSpace/WorkSpace.vue @@ -460,6 +460,10 @@ // WYXD 查看器入口 const openWyxdViewer = (folder) => { const filePath = folder.path.startsWith('./') ? folder.path.slice(2) : folder.path; + console.log("解析文件路径:",filePath); + console.log("folder",folder); + console.log("encode",encodeURIComponent(filePath)); + console.log("encode",encodeURIComponent(folder.name)); uni.navigateTo({ url: '/pages/WYXD/WYXD?workspaceId=' + encodeURIComponent(workspaceId.value) + '&filePath=' + encodeURIComponent(filePath) diff --git a/unpackage/dist/cache/.vite/deps/_metadata.json b/unpackage/dist/cache/.vite/deps/_metadata.json index 519ebba..b1bc7ac 100644 --- a/unpackage/dist/cache/.vite/deps/_metadata.json +++ b/unpackage/dist/cache/.vite/deps/_metadata.json @@ -1,20 +1,20 @@ { - "hash": "4dd2a69b", - "configHash": "d342a709", + "hash": "be335aef", + "configHash": "72122489", "lockfileHash": "1e456fb2", - "browserHash": "4e27b22f", + "browserHash": "f2fb5697", "optimized": { - "snarkdown": { - "src": "../../../../../node_modules/snarkdown/dist/snarkdown.es.js", - "file": "snarkdown.js", - "fileHash": "b76ccfaf", - "needsInterop": false - }, "jszip": { "src": "../../../../../node_modules/jszip/dist/jszip.min.js", "file": "jszip.js", - "fileHash": "0f2d87b8", + "fileHash": "db392aeb", "needsInterop": true + }, + "snarkdown": { + "src": "../../../../../node_modules/snarkdown/dist/snarkdown.es.js", + "file": "snarkdown.js", + "fileHash": "634089b0", + "needsInterop": false } }, "chunks": { diff --git a/unpackage/dist/cache/.vite/deps/jszip.js b/unpackage/dist/cache/.vite/deps/jszip.js index 2106398..538e3f0 100644 --- a/unpackage/dist/cache/.vite/deps/jszip.js +++ b/unpackage/dist/cache/.vite/deps/jszip.js @@ -3,9 +3,9 @@ import { __require } from "./chunk-TDUMLE5V.js"; -// ../../../../../py/77/phone-app------test1-/node_modules/jszip/dist/jszip.min.js +// ../../../../Projects/uniapp/app-test/test1/node_modules/jszip/dist/jszip.min.js var require_jszip_min = __commonJS({ - "../../../../../py/77/phone-app------test1-/node_modules/jszip/dist/jszip.min.js"(exports, module) { + "../../../../Projects/uniapp/app-test/test1/node_modules/jszip/dist/jszip.min.js"(exports, module) { !function(e) { if ("object" == typeof exports && "undefined" != typeof module) module.exports = e(); diff --git a/unpackage/dist/cache/.vite/deps/jszip.js.map b/unpackage/dist/cache/.vite/deps/jszip.js.map index 653e02f..7a0b114 100644 --- a/unpackage/dist/cache/.vite/deps/jszip.js.map +++ b/unpackage/dist/cache/.vite/deps/jszip.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../../../../../node_modules/jszip/dist/jszip.min.js"], - "sourcesContent": ["/*!\n\nJSZip v3.10.1 - A JavaScript class for generating and reading zip files\n\n\n(c) 2009-2016 Stuart Knightley \nDual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.\n\nJSZip uses the library pako released under the MIT license :\nhttps://github.com/nodeca/pako/blob/main/LICENSE\n*/\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).JSZip=e()}}(function(){return function s(a,o,h){function u(r,e){if(!o[r]){if(!a[r]){var t=\"function\"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);var n=new Error(\"Cannot find module '\"+r+\"'\");throw n.code=\"MODULE_NOT_FOUND\",n}var i=o[r]={exports:{}};a[r][0].call(i.exports,function(e){var t=a[r][1][e];return u(t||e)},i,i.exports,s,a,o,h)}return o[r].exports}for(var l=\"function\"==typeof require&&require,e=0;e>2,s=(3&t)<<4|r>>4,a=1>6:64,o=2>4,r=(15&i)<<4|(s=p.indexOf(e.charAt(o++)))>>2,n=(3&s)<<6|(a=p.indexOf(e.charAt(o++))),l[h++]=t,64!==s&&(l[h++]=r),64!==a&&(l[h++]=n);return l}},{\"./support\":30,\"./utils\":32}],2:[function(e,t,r){\"use strict\";var n=e(\"./external\"),i=e(\"./stream/DataWorker\"),s=e(\"./stream/Crc32Probe\"),a=e(\"./stream/DataLengthProbe\");function o(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}o.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a(\"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 i(n.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 s).pipe(new a(\"uncompressedSize\")).pipe(t.compressWorker(r)).pipe(new a(\"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 n=e(\"./stream/GenericWorker\");r.STORE={magic:\"\\0\\0\",compressWorker:function(){return new n(\"STORE compression\")},uncompressWorker:function(){return new n(\"STORE decompression\")}},r.DEFLATE=e(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(e,t,r){\"use strict\";var n=e(\"./utils\");var o=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)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\"!==n.getTypeOf(e)?function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t.charCodeAt(a))];return-1^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 n=null;n=\"undefined\"!=typeof Promise?Promise:e(\"lie\"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){\"use strict\";var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array,i=e(\"pako\"),s=e(\"./utils\"),a=e(\"./stream/GenericWorker\"),o=n?\"uint8array\":\"array\";function h(e,t){a.call(this,\"FlateWorker/\"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic=\"\\b\\0\",s.inherits(h,a),h.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(e){return new h(\"Deflate\",e)},r.uncompressWorker=function(){return new h(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(e,t,r){\"use strict\";function A(e,t){var r,n=\"\";for(r=0;r>>=8;return n}function n(e,t,r,n,i,s){var a,o,h=e.file,u=e.compression,l=s!==O.utf8encode,f=I.transformTo(\"string\",s(h.name)),c=I.transformTo(\"string\",O.utf8encode(h.name)),d=h.comment,p=I.transformTo(\"string\",s(d)),m=I.transformTo(\"string\",O.utf8encode(d)),_=c.length!==h.name.length,g=m.length!==d.length,b=\"\",v=\"\",y=\"\",w=h.dir,k=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(x.crc32=e.crc32,x.compressedSize=e.compressedSize,x.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),l||!_&&!g||(S|=2048);var z=0,C=0;w&&(z|=16),\"UNIX\"===i?(C=798,z|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(h.unixPermissions,w)):(C=20,z|=function(e){return 63&(e||0)}(h.dosPermissions)),a=k.getUTCHours(),a<<=6,a|=k.getUTCMinutes(),a<<=5,a|=k.getUTCSeconds()/2,o=k.getUTCFullYear()-1980,o<<=4,o|=k.getUTCMonth()+1,o<<=5,o|=k.getUTCDate(),_&&(v=A(1,1)+A(B(f),4)+c,b+=\"up\"+A(v.length,2)+v),g&&(y=A(1,1)+A(B(p),4)+m,b+=\"uc\"+A(y.length,2)+y);var E=\"\";return E+=\"\\n\\0\",E+=A(S,2),E+=u.magic,E+=A(a,2),E+=A(o,2),E+=A(x.crc32,4),E+=A(x.compressedSize,4),E+=A(x.uncompressedSize,4),E+=A(f.length,2),E+=A(b.length,2),{fileRecord:R.LOCAL_FILE_HEADER+E+f+b,dirRecord:R.CENTRAL_FILE_HEADER+A(C,2)+E+A(p.length,2)+\"\\0\\0\\0\\0\"+A(z,4)+A(n,4)+f+b+p}}var I=e(\"../utils\"),i=e(\"../stream/GenericWorker\"),O=e(\"../utf8\"),B=e(\"../crc32\"),R=e(\"../signature\");function s(e,t,r,n){i.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}I.inherits(s,i),s.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},s.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},s.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return R.DATA_DESCRIPTOR+A(e.crc32,4)+A(e.compressedSize,4)+A(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},s.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.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=i},{\"../utils\":32}],19:[function(e,t,r){\"use strict\";var n=e(\"./Uint8ArrayReader\");function i(e){n.call(this,e)}e(\"../utils\").inherits(i,n),i.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=i},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(e,t,r){\"use strict\";var n=e(\"./DataReader\");function i(e){n.call(this,e)}e(\"../utils\").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.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=i},{\"../utils\":32,\"./DataReader\":18}],21:[function(e,t,r){\"use strict\";var n=e(\"./ArrayReader\");function i(e){n.call(this,e)}e(\"../utils\").inherits(i,n),i.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=i},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(e,t,r){\"use strict\";var n=e(\"../utils\"),i=e(\"../support\"),s=e(\"./ArrayReader\"),a=e(\"./StringReader\"),o=e(\"./NodeBufferReader\"),h=e(\"./Uint8ArrayReader\");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),\"string\"!==t||i.uint8array?\"nodebuffer\"===t?new o(e):i.uint8array?new h(n.transformTo(\"uint8array\",e)):new s(n.transformTo(\"array\",e)):new a(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\u0003\u0004\",r.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",r.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\u0007\",r.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",r.DATA_DESCRIPTOR=\"PK\u0007\\b\"},{}],24:[function(e,t,r){\"use strict\";var n=e(\"./GenericWorker\"),i=e(\"../utils\");function s(e){n.call(this,\"ConvertWorker to \"+e),this.destType=e}i.inherits(s,n),s.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(e,t,r){\"use strict\";var n=e(\"./GenericWorker\"),i=e(\"../crc32\");function s(){n.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}e(\"../utils\").inherits(s,n),s.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(e,t,r){\"use strict\";var n=e(\"../utils\"),i=e(\"./GenericWorker\");function s(e){i.call(this,\"DataLengthProbe for \"+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(s,i),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=s},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(e,t,r){\"use strict\";var n=e(\"../utils\"),i=e(\"./GenericWorker\");function s(e){i.call(this,\"DataWorker\");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(s,i),s.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.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=s},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(e,t,r){\"use strict\";function n(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}n.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 \"+e:e}},t.exports=n},{}],29:[function(e,t,r){\"use strict\";var h=e(\"../utils\"),i=e(\"./ConvertWorker\"),s=e(\"./GenericWorker\"),u=e(\"../base64\"),n=e(\"../support\"),a=e(\"../external\"),o=null;if(n.nodestream)try{o=e(\"../nodejs/NodejsStreamOutputAdapter\")}catch(e){}function l(e,o){return new a.Promise(function(t,r){var n=[],i=e._internalType,s=e._outputType,a=e._mimeType;e.on(\"data\",function(e,t){n.push(e),o&&o(t)}).on(\"error\",function(e){n=[],r(e)}).on(\"end\",function(){try{var e=function(e,t,r){switch(e){case\"blob\":return h.newBlob(h.transformTo(\"arraybuffer\",t),r);case\"base64\":return u.encode(t);default:return h.transformTo(e,t)}}(s,function(e,t){var r,n=0,i=null,s=0;for(r=0;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)},s.utf8decode=function(e){return h.nodebuffer?o.transformTo(\"nodebuffer\",e).toString(\"utf-8\"):function(e){var t,r,n,i,s=e.length,a=new Array(2*s);for(t=r=0;t>10&1023,a[r++]=56320|1023&n)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),o.applyFromCharCode(a)}(e=o.transformTo(h.uint8array?\"uint8array\":\"array\",e))},o.inherits(a,n),a.prototype.processChunk=function(e){var t=o.transformTo(h.uint8array?\"uint8array\":\"array\",e.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var n=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?t:0===r?t:r+u[e[r]]>t?r:t}(t),i=t;n!==t.length&&(h.uint8array?(i=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(i=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:s.utf8decode(i),meta:e.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=a,o.inherits(l,n),l.prototype.processChunk=function(e){this.push({data:s.utf8encode(e.data),meta:e.meta})},s.Utf8EncodeWorker=l},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(e,t,a){\"use strict\";var o=e(\"./support\"),h=e(\"./base64\"),r=e(\"./nodejsUtils\"),u=e(\"./external\");function n(e){return e}function l(e,t){for(var r=0;r>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=n(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>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 h.Buf8(e.length),r=0,n=t.length;r>10&1023,o[n++]=56320|1023&i)}return l(o,n)},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?t:0===r?t:r+u[e[r]]>t?r:t}},{\"./common\":41}],43:[function(e,t,r){\"use strict\";t.exports=function(e,t,r,n){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,r){\"use strict\";var h,c=e(\"../utils/common\"),u=e(\"./trees\"),d=e(\"./adler32\"),p=e(\"./crc32\"),n=e(\"./messages\"),l=0,f=4,m=0,_=-2,g=-1,b=4,i=2,v=8,y=9,s=286,a=30,o=19,w=2*s+1,k=15,x=3,S=258,z=S+x+1,C=42,E=113,A=1,I=2,O=3,B=4;function R(e,t){return e.msg=n[t],t}function T(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(c.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 N(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function U(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 L(e,t){var r,n,i=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,h=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,u=e.window,l=e.w_mask,f=e.prev,c=e.strstart+S,d=u[s+a-1],p=u[s+a];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(u[(r=t)+a]===p&&u[r+a-1]===d&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&sh&&0!=--i);return a<=e.lookahead?a:e.lookahead}function j(e){var t,r,n,i,s,a,o,h,u,l,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-z)){for(c.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=r=e.hash_size;n=e.head[--t],e.head[t]=f<=n?n-f:0,--r;);for(t=r=f;n=e.prev[--t],e.prev[t]=f<=n?n-f:0,--r;);i+=f}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,h=e.strstart+e.lookahead,u=i,l=void 0,l=a.avail_in,u=x)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x)if(n=u._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-x,n=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(j(e),0===e.lookahead&&t===l)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,N(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-z&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):(e.strstart>e.block_start&&(N(e,!1),e.strm.avail_out),A)}),new M(4,4,8,4,Z),new M(4,5,16,8,Z),new M(4,6,32,32,Z),new M(4,4,16,16,W),new M(8,16,32,32,W),new M(8,16,128,128,W),new M(8,32,128,256,W),new M(32,128,258,1024,W),new M(32,258,258,4096,W)],r.deflateInit=function(e,t){return Y(e,t,v,15,8,0)},r.deflateInit2=Y,r.deflateReset=K,r.deflateResetKeep=G,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?_:(e.state.gzhead=t,m):_},r.deflate=function(e,t){var r,n,i,s;if(!e||!e.state||5>8&255),U(n,n.gzhead.time>>16&255),U(n,n.gzhead.time>>24&255),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(U(n,255&n.gzhead.extra.length),U(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=p(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(U(n,0),U(n,0),U(n,0),U(n,0),U(n,0),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,3),n.status=E);else{var a=v+(n.w_bits-8<<4)<<8;a|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=E,P(n,a),0!==n.strstart&&(P(n,e.adler>>>16),P(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending!==n.pending_buf_size));)U(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&F(e),n.pending+2<=n.pending_buf_size&&(U(n,255&e.adler),U(n,e.adler>>8&255),e.adler=0,n.status=E)):n.status=E),0!==n.pending){if(F(e),0===e.avail_out)return n.last_flush=-1,m}else if(0===e.avail_in&&T(t)<=T(r)&&t!==f)return R(e,-5);if(666===n.status&&0!==e.avail_in)return R(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==l&&666!==n.status){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(j(e),0===e.lookahead)){if(t===l)return A;break}if(e.match_length=0,r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?A:I}(n,t):3===n.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=S){if(j(e),e.lookahead<=S&&t===l)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=u._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?A:I}(n,t):h[n.level].func(n,t);if(o!==O&&o!==B||(n.status=666),o===A||o===O)return 0===e.avail_out&&(n.last_flush=-1),m;if(o===I&&(1===t?u._tr_align(n):5!==t&&(u._tr_stored_block(n,0,0,!1),3===t&&(D(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),F(e),0===e.avail_out))return n.last_flush=-1,m}return t!==f?m:n.wrap<=0?1:(2===n.wrap?(U(n,255&e.adler),U(n,e.adler>>8&255),U(n,e.adler>>16&255),U(n,e.adler>>24&255),U(n,255&e.total_in),U(n,e.total_in>>8&255),U(n,e.total_in>>16&255),U(n,e.total_in>>24&255)):(P(n,e.adler>>>16),P(n,65535&e.adler)),F(e),0=r.w_size&&(0===s&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,t,l-r.w_size,r.w_size,0),t=u,l=r.w_size),a=e.avail_in,o=e.next_in,h=e.input,e.avail_in=l,e.next_in=0,e.input=t,j(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>=y=v>>>24,p-=y,0===(y=v>>>16&255))C[s++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=m[(65535&v)+(d&(1<>>=y,p-=y),p<15&&(d+=z[n++]<>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=_[(65535&v)+(d&(1<>>=y,p-=y,(y=s-a)>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function s(){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 a(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=P,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(n),t.distcode=t.distdyn=new I.Buf32(i),t.sane=1,t.back=-1,N):U}function o(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,a(e)):U}function h(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=s.wsize?(I.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(n<(i=s.wsize-s.wnext)&&(i=n),I.arraySet(s.window,t,r-n,i,s.wnext),(n-=i)?(I.arraySet(s.window,t,r-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=B(r.check,E,2,0),l=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg=\"incorrect header check\",r.mode=30;break}if(8!=(15&u)){e.msg=\"unknown compression method\",r.mode=30;break}if(l-=4,k=8+(15&(u>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg=\"invalid window size\",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=3;case 3:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,r.check=B(r.check,E,4,0)),l=u=0,r.mode=4;case 4:for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>8),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>>8&255,r.check=B(r.check,E,2,0)),l=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(o<(d=r.length)&&(d=o),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),I.arraySet(r.head.extra,n,s,d,k)),512&r.flags&&(r.check=B(r.check,n,d,s)),o-=d,s+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break e;for(d=0;k=n[s+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&d>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===o)break e;o--,u+=n[s++]<>>=1)){case 0:r.mode=14;break;case 1:if(j(r),r.mode=20,6!==t)break;u>>>=2,l-=2;break e;case 2:r.mode=17;break;case 3:e.msg=\"invalid block type\",r.mode=30}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===o)break e;o--,u+=n[s++]<>>16^65535)){e.msg=\"invalid stored block lengths\",r.mode=30;break}if(r.length=65535&u,l=u=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(d=r.length){if(o>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=T(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg=\"invalid code lengths set\",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=_,l-=_,r.lens[r.have++]=b;else{if(16===b){for(z=_+2;l>>=_,l-=_,0===r.have){e.msg=\"invalid bit length repeat\",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&u),u>>>=2,l-=2}else if(17===b){for(z=_+3;l>>=_)),u>>>=3,l-=3}else{for(z=_+7;l>>=_)),u>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){e.msg=\"invalid bit length repeat\",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}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,S={bits:r.lenbits},x=T(D,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg=\"invalid literal/lengths set\",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=T(F,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){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<=o&&258<=h){e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=o,r.hold=u,r.bits=l,R(e,c),a=e.next_out,i=e.output,h=e.avail_out,s=e.next_in,n=e.input,o=e.avail_in,u=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(C=r.lencode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){e.msg=\"invalid literal/length code\",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(C=r.distcode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,64&g){e.msg=\"invalid distance code\",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(z=r.extra;l>>=r.extra,l-=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===h)break e;if(d=c-h,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){e.msg=\"invalid distance too far back\",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=a-r.offset,d=r.length;for(hd?(m=R[T+a[v]],A[I+a[v]]):(m=96,0),h=1<>S)+(u-=h)]=p<<24|m<<16|_|0,0!==u;);for(h=1<>=1;if(0!==h?(E&=h-1,E+=h):E=0,v++,0==--O[b]){if(b===w)break;b=t[r+a[v]]}if(k>>7)]}function U(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>d-r?(e.bi_buf|=t<>d-e.bi_valid,e.bi_valid+=r-d):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function Z(e,t,r){var n,i,s=new Array(g+1),a=0;for(n=1;n<=g;n++)s[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=j(s[o]++,o))}}function W(e){var t;for(t=0;t>1;1<=r;r--)G(e,s,r);for(i=h;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],G(e,s,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,s[2*i]=s[2*r]+s[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,s[2*r+1]=s[2*n+1]=i,e.heap[1]=i++,G(e,s,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,s,a,o,h=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(s=0;s<=g;s++)e.bl_count[s]=0;for(h[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<_;r++)p<(s=h[2*h[2*(n=e.heap[r])+1]+1]+1)&&(s=p,m++),h[2*n+1]=s,u>=7;n>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return h;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?J(e,t,r,n):4===e.strategy||s===i?(P(e,2+(n?1:0),3),K(e,z,C)):(P(e,4+(n?1:0),3),function(e,t,r,n){var i;for(P(e,t-257,5),P(e,r-1,5),P(e,n-4,4),i=0;i>>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*(A[r]+u+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){P(e,2,3),L(e,m,z),function(e){16===e.bi_valid?(U(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,r){(function(e){!function(r,n){\"use strict\";if(!r.setImmediate){var i,s,t,a,o=1,h={},u=!1,l=r.document,e=Object.getPrototypeOf&&Object.getPrototypeOf(r);e=e&&e.setTimeout?e:r,i=\"[object process]\"==={}.toString.call(r.process)?function(e){process.nextTick(function(){c(e)})}:function(){if(r.postMessage&&!r.importScripts){var e=!0,t=r.onmessage;return r.onmessage=function(){e=!1},r.postMessage(\"\",\"*\"),r.onmessage=t,e}}()?(a=\"setImmediate$\"+Math.random()+\"$\",r.addEventListener?r.addEventListener(\"message\",d,!1):r.attachEvent(\"onmessage\",d),function(e){r.postMessage(a+e,\"*\")}):r.MessageChannel?((t=new MessageChannel).port1.onmessage=function(e){c(e.data)},function(e){t.port2.postMessage(e)}):l&&\"onreadystatechange\"in l.createElement(\"script\")?(s=l.documentElement,function(e){var t=l.createElement(\"script\");t.onreadystatechange=function(){c(e),t.onreadystatechange=null,s.removeChild(t),t=null},s.appendChild(t)}):function(e){setTimeout(c,0,e)},e.setImmediate=function(e){\"function\"!=typeof e&&(e=new Function(\"\"+e));for(var t=new Array(arguments.length-1),r=0;r\r\n\r\n(c) 2009-2016 Stuart Knightley \r\nDual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.\r\n\r\nJSZip uses the library pako released under the MIT license :\r\nhttps://github.com/nodeca/pako/blob/main/LICENSE\r\n*/\r\n\r\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).JSZip=e()}}(function(){return function s(a,o,h){function u(r,e){if(!o[r]){if(!a[r]){var t=\"function\"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);var n=new Error(\"Cannot find module '\"+r+\"'\");throw n.code=\"MODULE_NOT_FOUND\",n}var i=o[r]={exports:{}};a[r][0].call(i.exports,function(e){var t=a[r][1][e];return u(t||e)},i,i.exports,s,a,o,h)}return o[r].exports}for(var l=\"function\"==typeof require&&require,e=0;e>2,s=(3&t)<<4|r>>4,a=1>6:64,o=2>4,r=(15&i)<<4|(s=p.indexOf(e.charAt(o++)))>>2,n=(3&s)<<6|(a=p.indexOf(e.charAt(o++))),l[h++]=t,64!==s&&(l[h++]=r),64!==a&&(l[h++]=n);return l}},{\"./support\":30,\"./utils\":32}],2:[function(e,t,r){\"use strict\";var n=e(\"./external\"),i=e(\"./stream/DataWorker\"),s=e(\"./stream/Crc32Probe\"),a=e(\"./stream/DataLengthProbe\");function o(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}o.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a(\"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 i(n.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 s).pipe(new a(\"uncompressedSize\")).pipe(t.compressWorker(r)).pipe(new a(\"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 n=e(\"./stream/GenericWorker\");r.STORE={magic:\"\\0\\0\",compressWorker:function(){return new n(\"STORE compression\")},uncompressWorker:function(){return new n(\"STORE decompression\")}},r.DEFLATE=e(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(e,t,r){\"use strict\";var n=e(\"./utils\");var o=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)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\"!==n.getTypeOf(e)?function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t.charCodeAt(a))];return-1^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 n=null;n=\"undefined\"!=typeof Promise?Promise:e(\"lie\"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){\"use strict\";var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array,i=e(\"pako\"),s=e(\"./utils\"),a=e(\"./stream/GenericWorker\"),o=n?\"uint8array\":\"array\";function h(e,t){a.call(this,\"FlateWorker/\"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic=\"\\b\\0\",s.inherits(h,a),h.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(e){return new h(\"Deflate\",e)},r.uncompressWorker=function(){return new h(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(e,t,r){\"use strict\";function A(e,t){var r,n=\"\";for(r=0;r>>=8;return n}function n(e,t,r,n,i,s){var a,o,h=e.file,u=e.compression,l=s!==O.utf8encode,f=I.transformTo(\"string\",s(h.name)),c=I.transformTo(\"string\",O.utf8encode(h.name)),d=h.comment,p=I.transformTo(\"string\",s(d)),m=I.transformTo(\"string\",O.utf8encode(d)),_=c.length!==h.name.length,g=m.length!==d.length,b=\"\",v=\"\",y=\"\",w=h.dir,k=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(x.crc32=e.crc32,x.compressedSize=e.compressedSize,x.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),l||!_&&!g||(S|=2048);var z=0,C=0;w&&(z|=16),\"UNIX\"===i?(C=798,z|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(h.unixPermissions,w)):(C=20,z|=function(e){return 63&(e||0)}(h.dosPermissions)),a=k.getUTCHours(),a<<=6,a|=k.getUTCMinutes(),a<<=5,a|=k.getUTCSeconds()/2,o=k.getUTCFullYear()-1980,o<<=4,o|=k.getUTCMonth()+1,o<<=5,o|=k.getUTCDate(),_&&(v=A(1,1)+A(B(f),4)+c,b+=\"up\"+A(v.length,2)+v),g&&(y=A(1,1)+A(B(p),4)+m,b+=\"uc\"+A(y.length,2)+y);var E=\"\";return E+=\"\\n\\0\",E+=A(S,2),E+=u.magic,E+=A(a,2),E+=A(o,2),E+=A(x.crc32,4),E+=A(x.compressedSize,4),E+=A(x.uncompressedSize,4),E+=A(f.length,2),E+=A(b.length,2),{fileRecord:R.LOCAL_FILE_HEADER+E+f+b,dirRecord:R.CENTRAL_FILE_HEADER+A(C,2)+E+A(p.length,2)+\"\\0\\0\\0\\0\"+A(z,4)+A(n,4)+f+b+p}}var I=e(\"../utils\"),i=e(\"../stream/GenericWorker\"),O=e(\"../utf8\"),B=e(\"../crc32\"),R=e(\"../signature\");function s(e,t,r,n){i.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}I.inherits(s,i),s.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},s.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},s.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return R.DATA_DESCRIPTOR+A(e.crc32,4)+A(e.compressedSize,4)+A(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},s.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.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=i},{\"../utils\":32}],19:[function(e,t,r){\"use strict\";var n=e(\"./Uint8ArrayReader\");function i(e){n.call(this,e)}e(\"../utils\").inherits(i,n),i.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=i},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(e,t,r){\"use strict\";var n=e(\"./DataReader\");function i(e){n.call(this,e)}e(\"../utils\").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.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=i},{\"../utils\":32,\"./DataReader\":18}],21:[function(e,t,r){\"use strict\";var n=e(\"./ArrayReader\");function i(e){n.call(this,e)}e(\"../utils\").inherits(i,n),i.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=i},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(e,t,r){\"use strict\";var n=e(\"../utils\"),i=e(\"../support\"),s=e(\"./ArrayReader\"),a=e(\"./StringReader\"),o=e(\"./NodeBufferReader\"),h=e(\"./Uint8ArrayReader\");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),\"string\"!==t||i.uint8array?\"nodebuffer\"===t?new o(e):i.uint8array?new h(n.transformTo(\"uint8array\",e)):new s(n.transformTo(\"array\",e)):new a(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\u0003\u0004\",r.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",r.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\u0007\",r.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",r.DATA_DESCRIPTOR=\"PK\u0007\\b\"},{}],24:[function(e,t,r){\"use strict\";var n=e(\"./GenericWorker\"),i=e(\"../utils\");function s(e){n.call(this,\"ConvertWorker to \"+e),this.destType=e}i.inherits(s,n),s.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(e,t,r){\"use strict\";var n=e(\"./GenericWorker\"),i=e(\"../crc32\");function s(){n.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}e(\"../utils\").inherits(s,n),s.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(e,t,r){\"use strict\";var n=e(\"../utils\"),i=e(\"./GenericWorker\");function s(e){i.call(this,\"DataLengthProbe for \"+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(s,i),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=s},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(e,t,r){\"use strict\";var n=e(\"../utils\"),i=e(\"./GenericWorker\");function s(e){i.call(this,\"DataWorker\");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(s,i),s.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.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=s},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(e,t,r){\"use strict\";function n(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}n.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 \"+e:e}},t.exports=n},{}],29:[function(e,t,r){\"use strict\";var h=e(\"../utils\"),i=e(\"./ConvertWorker\"),s=e(\"./GenericWorker\"),u=e(\"../base64\"),n=e(\"../support\"),a=e(\"../external\"),o=null;if(n.nodestream)try{o=e(\"../nodejs/NodejsStreamOutputAdapter\")}catch(e){}function l(e,o){return new a.Promise(function(t,r){var n=[],i=e._internalType,s=e._outputType,a=e._mimeType;e.on(\"data\",function(e,t){n.push(e),o&&o(t)}).on(\"error\",function(e){n=[],r(e)}).on(\"end\",function(){try{var e=function(e,t,r){switch(e){case\"blob\":return h.newBlob(h.transformTo(\"arraybuffer\",t),r);case\"base64\":return u.encode(t);default:return h.transformTo(e,t)}}(s,function(e,t){var r,n=0,i=null,s=0;for(r=0;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)},s.utf8decode=function(e){return h.nodebuffer?o.transformTo(\"nodebuffer\",e).toString(\"utf-8\"):function(e){var t,r,n,i,s=e.length,a=new Array(2*s);for(t=r=0;t>10&1023,a[r++]=56320|1023&n)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),o.applyFromCharCode(a)}(e=o.transformTo(h.uint8array?\"uint8array\":\"array\",e))},o.inherits(a,n),a.prototype.processChunk=function(e){var t=o.transformTo(h.uint8array?\"uint8array\":\"array\",e.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var n=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?t:0===r?t:r+u[e[r]]>t?r:t}(t),i=t;n!==t.length&&(h.uint8array?(i=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(i=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:s.utf8decode(i),meta:e.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=a,o.inherits(l,n),l.prototype.processChunk=function(e){this.push({data:s.utf8encode(e.data),meta:e.meta})},s.Utf8EncodeWorker=l},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(e,t,a){\"use strict\";var o=e(\"./support\"),h=e(\"./base64\"),r=e(\"./nodejsUtils\"),u=e(\"./external\");function n(e){return e}function l(e,t){for(var r=0;r>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=n(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>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 h.Buf8(e.length),r=0,n=t.length;r>10&1023,o[n++]=56320|1023&i)}return l(o,n)},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?t:0===r?t:r+u[e[r]]>t?r:t}},{\"./common\":41}],43:[function(e,t,r){\"use strict\";t.exports=function(e,t,r,n){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,r){\"use strict\";var h,c=e(\"../utils/common\"),u=e(\"./trees\"),d=e(\"./adler32\"),p=e(\"./crc32\"),n=e(\"./messages\"),l=0,f=4,m=0,_=-2,g=-1,b=4,i=2,v=8,y=9,s=286,a=30,o=19,w=2*s+1,k=15,x=3,S=258,z=S+x+1,C=42,E=113,A=1,I=2,O=3,B=4;function R(e,t){return e.msg=n[t],t}function T(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(c.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 N(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function U(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 L(e,t){var r,n,i=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,h=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,u=e.window,l=e.w_mask,f=e.prev,c=e.strstart+S,d=u[s+a-1],p=u[s+a];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(u[(r=t)+a]===p&&u[r+a-1]===d&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&sh&&0!=--i);return a<=e.lookahead?a:e.lookahead}function j(e){var t,r,n,i,s,a,o,h,u,l,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-z)){for(c.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=r=e.hash_size;n=e.head[--t],e.head[t]=f<=n?n-f:0,--r;);for(t=r=f;n=e.prev[--t],e.prev[t]=f<=n?n-f:0,--r;);i+=f}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,h=e.strstart+e.lookahead,u=i,l=void 0,l=a.avail_in,u=x)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x)if(n=u._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-x,n=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(j(e),0===e.lookahead&&t===l)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,N(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-z&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):(e.strstart>e.block_start&&(N(e,!1),e.strm.avail_out),A)}),new M(4,4,8,4,Z),new M(4,5,16,8,Z),new M(4,6,32,32,Z),new M(4,4,16,16,W),new M(8,16,32,32,W),new M(8,16,128,128,W),new M(8,32,128,256,W),new M(32,128,258,1024,W),new M(32,258,258,4096,W)],r.deflateInit=function(e,t){return Y(e,t,v,15,8,0)},r.deflateInit2=Y,r.deflateReset=K,r.deflateResetKeep=G,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?_:(e.state.gzhead=t,m):_},r.deflate=function(e,t){var r,n,i,s;if(!e||!e.state||5>8&255),U(n,n.gzhead.time>>16&255),U(n,n.gzhead.time>>24&255),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(U(n,255&n.gzhead.extra.length),U(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=p(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(U(n,0),U(n,0),U(n,0),U(n,0),U(n,0),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,3),n.status=E);else{var a=v+(n.w_bits-8<<4)<<8;a|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=E,P(n,a),0!==n.strstart&&(P(n,e.adler>>>16),P(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending!==n.pending_buf_size));)U(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&F(e),n.pending+2<=n.pending_buf_size&&(U(n,255&e.adler),U(n,e.adler>>8&255),e.adler=0,n.status=E)):n.status=E),0!==n.pending){if(F(e),0===e.avail_out)return n.last_flush=-1,m}else if(0===e.avail_in&&T(t)<=T(r)&&t!==f)return R(e,-5);if(666===n.status&&0!==e.avail_in)return R(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==l&&666!==n.status){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(j(e),0===e.lookahead)){if(t===l)return A;break}if(e.match_length=0,r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?A:I}(n,t):3===n.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=S){if(j(e),e.lookahead<=S&&t===l)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=u._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?A:I}(n,t):h[n.level].func(n,t);if(o!==O&&o!==B||(n.status=666),o===A||o===O)return 0===e.avail_out&&(n.last_flush=-1),m;if(o===I&&(1===t?u._tr_align(n):5!==t&&(u._tr_stored_block(n,0,0,!1),3===t&&(D(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),F(e),0===e.avail_out))return n.last_flush=-1,m}return t!==f?m:n.wrap<=0?1:(2===n.wrap?(U(n,255&e.adler),U(n,e.adler>>8&255),U(n,e.adler>>16&255),U(n,e.adler>>24&255),U(n,255&e.total_in),U(n,e.total_in>>8&255),U(n,e.total_in>>16&255),U(n,e.total_in>>24&255)):(P(n,e.adler>>>16),P(n,65535&e.adler)),F(e),0=r.w_size&&(0===s&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,t,l-r.w_size,r.w_size,0),t=u,l=r.w_size),a=e.avail_in,o=e.next_in,h=e.input,e.avail_in=l,e.next_in=0,e.input=t,j(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>=y=v>>>24,p-=y,0===(y=v>>>16&255))C[s++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=m[(65535&v)+(d&(1<>>=y,p-=y),p<15&&(d+=z[n++]<>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=_[(65535&v)+(d&(1<>>=y,p-=y,(y=s-a)>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function s(){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 a(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=P,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(n),t.distcode=t.distdyn=new I.Buf32(i),t.sane=1,t.back=-1,N):U}function o(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,a(e)):U}function h(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=s.wsize?(I.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(n<(i=s.wsize-s.wnext)&&(i=n),I.arraySet(s.window,t,r-n,i,s.wnext),(n-=i)?(I.arraySet(s.window,t,r-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=B(r.check,E,2,0),l=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg=\"incorrect header check\",r.mode=30;break}if(8!=(15&u)){e.msg=\"unknown compression method\",r.mode=30;break}if(l-=4,k=8+(15&(u>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg=\"invalid window size\",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=3;case 3:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,r.check=B(r.check,E,4,0)),l=u=0,r.mode=4;case 4:for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>8),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>>8&255,r.check=B(r.check,E,2,0)),l=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(o<(d=r.length)&&(d=o),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),I.arraySet(r.head.extra,n,s,d,k)),512&r.flags&&(r.check=B(r.check,n,d,s)),o-=d,s+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break e;for(d=0;k=n[s+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&d>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===o)break e;o--,u+=n[s++]<>>=1)){case 0:r.mode=14;break;case 1:if(j(r),r.mode=20,6!==t)break;u>>>=2,l-=2;break e;case 2:r.mode=17;break;case 3:e.msg=\"invalid block type\",r.mode=30}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===o)break e;o--,u+=n[s++]<>>16^65535)){e.msg=\"invalid stored block lengths\",r.mode=30;break}if(r.length=65535&u,l=u=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(d=r.length){if(o>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=T(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg=\"invalid code lengths set\",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=_,l-=_,r.lens[r.have++]=b;else{if(16===b){for(z=_+2;l>>=_,l-=_,0===r.have){e.msg=\"invalid bit length repeat\",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&u),u>>>=2,l-=2}else if(17===b){for(z=_+3;l>>=_)),u>>>=3,l-=3}else{for(z=_+7;l>>=_)),u>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){e.msg=\"invalid bit length repeat\",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}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,S={bits:r.lenbits},x=T(D,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg=\"invalid literal/lengths set\",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=T(F,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){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<=o&&258<=h){e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=o,r.hold=u,r.bits=l,R(e,c),a=e.next_out,i=e.output,h=e.avail_out,s=e.next_in,n=e.input,o=e.avail_in,u=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(C=r.lencode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){e.msg=\"invalid literal/length code\",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(C=r.distcode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,64&g){e.msg=\"invalid distance code\",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(z=r.extra;l>>=r.extra,l-=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===h)break e;if(d=c-h,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){e.msg=\"invalid distance too far back\",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=a-r.offset,d=r.length;for(hd?(m=R[T+a[v]],A[I+a[v]]):(m=96,0),h=1<>S)+(u-=h)]=p<<24|m<<16|_|0,0!==u;);for(h=1<>=1;if(0!==h?(E&=h-1,E+=h):E=0,v++,0==--O[b]){if(b===w)break;b=t[r+a[v]]}if(k>>7)]}function U(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>d-r?(e.bi_buf|=t<>d-e.bi_valid,e.bi_valid+=r-d):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function Z(e,t,r){var n,i,s=new Array(g+1),a=0;for(n=1;n<=g;n++)s[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=j(s[o]++,o))}}function W(e){var t;for(t=0;t>1;1<=r;r--)G(e,s,r);for(i=h;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],G(e,s,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,s[2*i]=s[2*r]+s[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,s[2*r+1]=s[2*n+1]=i,e.heap[1]=i++,G(e,s,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,s,a,o,h=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(s=0;s<=g;s++)e.bl_count[s]=0;for(h[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<_;r++)p<(s=h[2*h[2*(n=e.heap[r])+1]+1]+1)&&(s=p,m++),h[2*n+1]=s,u>=7;n>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return h;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?J(e,t,r,n):4===e.strategy||s===i?(P(e,2+(n?1:0),3),K(e,z,C)):(P(e,4+(n?1:0),3),function(e,t,r,n){var i;for(P(e,t-257,5),P(e,r-1,5),P(e,n-4,4),i=0;i>>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*(A[r]+u+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){P(e,2,3),L(e,m,z),function(e){16===e.bi_valid?(U(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,r){(function(e){!function(r,n){\"use strict\";if(!r.setImmediate){var i,s,t,a,o=1,h={},u=!1,l=r.document,e=Object.getPrototypeOf&&Object.getPrototypeOf(r);e=e&&e.setTimeout?e:r,i=\"[object process]\"==={}.toString.call(r.process)?function(e){process.nextTick(function(){c(e)})}:function(){if(r.postMessage&&!r.importScripts){var e=!0,t=r.onmessage;return r.onmessage=function(){e=!1},r.postMessage(\"\",\"*\"),r.onmessage=t,e}}()?(a=\"setImmediate$\"+Math.random()+\"$\",r.addEventListener?r.addEventListener(\"message\",d,!1):r.attachEvent(\"onmessage\",d),function(e){r.postMessage(a+e,\"*\")}):r.MessageChannel?((t=new MessageChannel).port1.onmessage=function(e){c(e.data)},function(e){t.port2.postMessage(e)}):l&&\"onreadystatechange\"in l.createElement(\"script\")?(s=l.documentElement,function(e){var t=l.createElement(\"script\");t.onreadystatechange=function(){c(e),t.onreadystatechange=null,s.removeChild(t),t=null},s.appendChild(t)}):function(e){setTimeout(c,0,e)},e.setImmediate=function(e){\"function\"!=typeof e&&(e=new Function(\"\"+e));for(var t=new Array(arguments.length-1),r=0;r", ""], _: ["", ""], "*": ["", ""], "~": ["", ""], "\n": ["
"], " ": ["
"], "-": ["
"] }; function n(e2) { return e2.replace(RegExp("^" + (e2.match(/^(\t| )+/) || "")[0], "gm"), ""); diff --git a/unpackage/dist/dev/app-plus/app-config-service.js b/unpackage/dist/dev/app-plus/app-config-service.js index 7333a4e..5416a50 100644 --- a/unpackage/dist/dev/app-plus/app-config-service.js +++ b/unpackage/dist/dev/app-plus/app-config-service.js @@ -2,7 +2,7 @@ ;(function(){ let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[]; const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"test1","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"5.07","entryPagePath":"pages/Login/Login","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}}; - const __uniRoutes = [{"path":"pages/Login/Login","meta":{"isQuit":true,"isEntry":true,"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"登录页面","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/Chat/Chat","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"聊天页面(主页面)","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/WorkSpace/WorkSpace","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"工作区文件管理","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/UserProfileModal/UserProfileModal","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/ContactPages/ContactPages","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/WorkSpace/TemplateSpace/TemplateSpace","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/CloudDatabase/CloudDatabase","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"云端数据","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/CloudDbDetail/CloudDbDetail","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"数据库详情","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/text/text","meta":{"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/text/IntuitiveAipptViewer","meta":{"navigationBar":{"titleText":"","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute)); + const __uniRoutes = [{"path":"pages/Login/Login","meta":{"isQuit":true,"isEntry":true,"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"登录页面","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/Chat/Chat","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"聊天页面(主页面)","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/WorkSpace/WorkSpace","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"工作区文件管理","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/UserProfileModal/UserProfileModal","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/ContactPages/ContactPages","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/WorkSpace/TemplateSpace/TemplateSpace","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/CloudDatabase/CloudDatabase","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"云端数据","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/CloudDbDetail/CloudDbDetail","meta":{"titleNView":false,"bounce":"none","softinputMode":"adjustResize","navigationBar":{"titleText":"数据库详情","style":"custom","type":"default"},"isNVue":false}},{"path":"pages/text/text","meta":{"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/text/IntuitiveAipptViewer","meta":{"navigationBar":{"titleText":"","type":"default"},"isNVue":false}},{"path":"pages/WYXD/WYXD","meta":{"titleNView":false,"bounce":"none","navigationBar":{"titleText":"","style":"custom","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute)); __uniConfig.styles=[];//styles __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); diff --git a/unpackage/dist/dev/app-plus/app-service.js b/unpackage/dist/dev/app-plus/app-service.js index 21573a7..ba4dd86 100644 --- a/unpackage/dist/dev/app-plus/app-service.js +++ b/unpackage/dist/dev/app-plus/app-service.js @@ -32,6 +32,7 @@ if (uni.restoreGlobal) { (function(vue) { "use strict"; const ON_SHOW = "onShow"; + const ON_LOAD = "onLoad"; const ON_UNLOAD = "onUnload"; function formatAppLog(type, filename, ...args) { if (uni.__log__) { @@ -51,16 +52,21 @@ if (uni.restoreGlobal) { 1 | 2 /* HookFlags.PAGE */ ); + const onLoad = /* @__PURE__ */ createLifeCycleHook( + ON_LOAD, + 2 + /* HookFlags.PAGE */ + ); const onUnload = /* @__PURE__ */ createLifeCycleHook( ON_UNLOAD, 2 /* HookFlags.PAGE */ ); - const BASE_URL = "https://cloud.yuxindazhineng.com"; + const BASE_URL$1 = "https://cloud.yuxindazhineng.com"; const login = async (username, password) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/login`, + url: `${BASE_URL$1}/login`, method: "POST", data: { "username": username, @@ -98,7 +104,7 @@ if (uni.restoreGlobal) { const getUserConversations = async (token) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/get_user_conversations`, + url: `${BASE_URL$1}/get_user_conversations`, method: "POST", data: { "access_token": token @@ -124,7 +130,7 @@ if (uni.restoreGlobal) { const getConversationMessages = async (token, conversatio_id) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/get_conversation_messages`, + url: `${BASE_URL$1}/get_conversation_messages`, method: "POST", data: { "access_token": token, @@ -164,7 +170,7 @@ if (uni.restoreGlobal) { const addMessageDict = async (token, role, conversation_id, message) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/add_message_dict`, + url: `${BASE_URL$1}/add_message_dict`, method: "POST", data: { "access_token": token, @@ -200,7 +206,7 @@ if (uni.restoreGlobal) { const createWorkspace = async (token, name2) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/create_workspace`, + url: `${BASE_URL$1}/create_workspace`, method: "POST", data: { "access_token": token, @@ -232,7 +238,7 @@ if (uni.restoreGlobal) { const createConversation = async (token, workspaceId, title, sender) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/create_conversation`, + url: `${BASE_URL$1}/create_conversation`, method: "POST", data: { "access_token": token, @@ -262,7 +268,7 @@ if (uni.restoreGlobal) { const deleteConversation = async (token, conversation_ids) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/delete_conversation`, + url: `${BASE_URL$1}/delete_conversation`, method: "POST", data: { "access_token": token, @@ -294,7 +300,7 @@ if (uni.restoreGlobal) { const getUserInfo = async (token) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/get_user_info`, + url: `${BASE_URL$1}/get_user_info`, method: "POST", header: { "Content-Type": "application/json" @@ -327,7 +333,7 @@ if (uni.restoreGlobal) { const getUserAvatar = (token, userIds) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/get_user_avatar`, + url: `${BASE_URL$1}/cloud_api/get_user_avatar`, method: "POST", header: { "Content-Type": "application/json" @@ -359,7 +365,7 @@ if (uni.restoreGlobal) { const searchUsers = (token, keyword) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/search_users`, + url: `${BASE_URL$1}/cloud_api/search_users`, method: "POST", header: { "Content-Type": "application/json" @@ -391,7 +397,7 @@ if (uni.restoreGlobal) { const getWorkspaceList = (token, workspacesId) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/phone/workspace/list`, + url: `${BASE_URL$1}/cloud_api/phone/workspace/list`, method: "POST", header: { "Content-Type": "application/json" @@ -426,7 +432,7 @@ if (uni.restoreGlobal) { const daleteWorkspace = (token, workspacesId, path) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/phone/workspace/delete`, + url: `${BASE_URL$1}/cloud_api/phone/workspace/delete`, method: "POST", header: { "Content-Type": "application/json" @@ -455,7 +461,7 @@ if (uni.restoreGlobal) { const createWorkspaceFolder = (token, workspacesId, path) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/phone/workspace/create`, + url: `${BASE_URL$1}/cloud_api/phone/workspace/create`, method: "POST", header: { "Content-Type": "application/json" @@ -484,7 +490,7 @@ if (uni.restoreGlobal) { const getWorkspaceFileURL = (token, workspacesId, path) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/phone/workspace/downloadFile`, + url: `${BASE_URL$1}/cloud_api/phone/workspace/downloadFile`, method: "POST", header: { "Content-Type": "application/json" @@ -516,7 +522,7 @@ if (uni.restoreGlobal) { return new Promise((resolve, reject) => { const urlList = Array.isArray(urls) ? urls : urls ? [urls] : []; uni.request({ - url: `${BASE_URL}/cloud_api/phone/workspace/upload`, + url: `${BASE_URL$1}/cloud_api/phone/workspace/upload`, method: "POST", header: { "Content-Type": "application/json" @@ -560,7 +566,7 @@ if (uni.restoreGlobal) { }); formatAppLog("log", "at utils/cloud-api.js:595", "uploadFileToShortStorage 参数:", { workspacesId, fileCount: uploadFiles.length, filePath }); uni.uploadFile({ - url: `${BASE_URL}/cloud_api/file/temp/upload`, + url: `${BASE_URL$1}/cloud_api/file/temp/upload`, method: "POST", formData: { workspaces_id: workspacesId, @@ -598,7 +604,7 @@ if (uni.restoreGlobal) { const updateWorkspaceFileName = (token, workspacesId, oldPath, newName) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/workspace/file/rename`, + url: `${BASE_URL$1}/workspace/file/rename`, method: "POST", header: { "Content-Type": "application/json" @@ -631,7 +637,7 @@ if (uni.restoreGlobal) { const updateUserInfo = (token, userId, username, email, avatarURL) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/update_user_profile`, + url: `${BASE_URL$1}/cloud_api/update_user_profile`, method: "POST", header: { "Content-Type": "application/json" @@ -662,7 +668,7 @@ if (uni.restoreGlobal) { const getCloudFileList = (token, type, path = "/", teamId = "") => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/file/list`, + url: `${BASE_URL$1}/cloud_api/file/list`, method: "POST", header: { "Content-Type": "application/json" @@ -696,7 +702,7 @@ if (uni.restoreGlobal) { const getCloudFileUrl = (token, fileId) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/file/download`, + url: `${BASE_URL$1}/cloud_api/file/download`, method: "POST", header: { "Content-Type": "application/json" @@ -728,7 +734,7 @@ if (uni.restoreGlobal) { const deleteCloudFile = (token, fileId) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/file/delete`, + url: `${BASE_URL$1}/cloud_api/file/delete`, method: "POST", header: { "Content-Type": "application/json" @@ -761,7 +767,7 @@ if (uni.restoreGlobal) { return new Promise((resolve, reject) => { const teamIdStr = team_id == null ? "" : String(team_id); uni.uploadFile({ - url: `${BASE_URL}/cloud_api/file/upload`, + url: `${BASE_URL$1}/cloud_api/file/upload`, method: "POST", // 不要手动设置 Content-Type,浏览器自动生成 multipart/form-data header: { @@ -807,7 +813,7 @@ if (uni.restoreGlobal) { const getTeamList = async (token) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/team/list`, + url: `${BASE_URL$1}/cloud_api/team/list`, method: "POST", header: { "Content-Type": "application/json" @@ -841,7 +847,7 @@ if (uni.restoreGlobal) { const getTeamAllMember = (token, teamId) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/team/get_all_member`, + url: `${BASE_URL$1}/cloud_api/team/get_all_member`, method: "POST", header: { "Content-Type": "application/json" @@ -875,7 +881,7 @@ if (uni.restoreGlobal) { const deleteTeam = (token, teamId) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/team/delete`, + url: `${BASE_URL$1}/cloud_api/team/delete`, method: "POST", header: { "Content-Type": "application/json" @@ -907,7 +913,7 @@ if (uni.restoreGlobal) { const addTeamMember = (token, teamId, userIds) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/team/add_member`, + url: `${BASE_URL$1}/cloud_api/team/add_member`, method: "POST", header: { "Content-Type": "application/json" @@ -941,7 +947,7 @@ if (uni.restoreGlobal) { const updateTeamInfo = (token, teamId, data) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/team/update`, + url: `${BASE_URL$1}/cloud_api/team/update`, method: "POST", header: { "Content-Type": "application/json" @@ -974,7 +980,7 @@ if (uni.restoreGlobal) { const removeTeamMember = (token, teamId, userIds) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/team/remove_member`, + url: `${BASE_URL$1}/cloud_api/team/remove_member`, method: "POST", header: { "Content-Type": "application/json" @@ -1007,7 +1013,7 @@ if (uni.restoreGlobal) { const updateTeamMemberRole = (token, teamId, userId, role) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/team/adjust_member_role`, + url: `${BASE_URL$1}/cloud_api/team/adjust_member_role`, method: "POST", header: { "Content-Type": "application/json" @@ -1041,7 +1047,7 @@ if (uni.restoreGlobal) { const getCloudDbList = (token) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/database/list`, + url: `${BASE_URL$1}/cloud_api/database/list`, method: "POST", header: { "Content-Type": "application/json" @@ -1072,7 +1078,7 @@ if (uni.restoreGlobal) { const createCloudDb = (token, databaseName) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/database/create`, + url: `${BASE_URL$1}/cloud_api/database/create`, method: "POST", header: { "Content-Type": "application/json" @@ -1106,7 +1112,7 @@ if (uni.restoreGlobal) { const fileUri = typeof filePath === "string" ? filePath : filePath.tempFilePath || filePath.path || filePath; const fileName = typeof filePath === "string" ? filePath.split("/").pop() || "database.db" : filePath.name || "database.db"; uni.uploadFile({ - url: `${BASE_URL}/cloud_api/database/upload/db`, + url: `${BASE_URL$1}/cloud_api/database/upload/db`, method: "POST", header: {}, formData: { @@ -1147,7 +1153,7 @@ if (uni.restoreGlobal) { const deleteCloudDb = (token, databaseId) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/database/delete`, + url: `${BASE_URL$1}/cloud_api/database/delete`, method: "POST", header: { "Content-Type": "application/json" @@ -1179,7 +1185,7 @@ if (uni.restoreGlobal) { const getCloudDbTables = (token, databaseId, isDetail) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/database/tables`, + url: `${BASE_URL$1}/cloud_api/database/tables`, method: "POST", header: { "Content-Type": "application/json" @@ -1212,7 +1218,7 @@ if (uni.restoreGlobal) { const getCloudDbTableData = (token, databaseId, tableName, limit = "20", offset = "0") => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/database/table/data`, + url: `${BASE_URL$1}/cloud_api/database/table/data`, method: "POST", header: { "Content-Type": "application/json" @@ -1247,7 +1253,7 @@ if (uni.restoreGlobal) { const deleteCloudDbTable = async (token, databaseId, tableName) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/database/table/drop`, + url: `${BASE_URL$1}/cloud_api/database/table/drop`, method: "POST", data: { "access_token": token, @@ -1280,7 +1286,7 @@ if (uni.restoreGlobal) { const updateCloudDbTableData = (token, databaseId, tableName, whereData, updateData) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/database/table/update/by/id`, + url: `${BASE_URL$1}/cloud_api/database/table/update/by/id`, method: "POST", data: { "access_token": token, @@ -1317,7 +1323,7 @@ if (uni.restoreGlobal) { const fileUri = typeof filePath === "string" ? filePath : filePath.tempFilePath || filePath.path || filePath; const fileName = typeof filePath === "string" ? filePath.split("/").pop() || "file" : filePath.name || "file"; uni.uploadFile({ - url: `${BASE_URL}/cloud_api/database/import`, + url: `${BASE_URL$1}/cloud_api/database/import`, method: "POST", header: {}, formData: { @@ -1372,7 +1378,7 @@ if (uni.restoreGlobal) { requestData.team_id = id; } uni.request({ - url: `${BASE_URL}/cloud_api/database/permission/info`, + url: `${BASE_URL$1}/cloud_api/database/permission/info`, method: "POST", data: requestData, header: { @@ -1412,7 +1418,7 @@ if (uni.restoreGlobal) { requestData.team_id = id; } uni.request({ - url: `${BASE_URL}/cloud_api/database/permission/delete`, + url: `${BASE_URL$1}/cloud_api/database/permission/delete`, method: "POST", data: requestData, header: { @@ -1451,7 +1457,7 @@ if (uni.restoreGlobal) { requestData.team_id = id; } uni.request({ - url: `${BASE_URL}/cloud_api/database/permission/update`, + url: `${BASE_URL$1}/cloud_api/database/permission/update`, method: "POST", data: requestData, header: { @@ -1480,7 +1486,7 @@ if (uni.restoreGlobal) { const dbTransferToTeam = async (token, databaseId, teamId) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/database/transfer_to_team`, + url: `${BASE_URL$1}/cloud_api/database/transfer_to_team`, method: "POST", data: { "access_token": token, @@ -1513,7 +1519,7 @@ if (uni.restoreGlobal) { const conversationMessageDownload = (token, workspacesId, localUrl) => { return new Promise((resolve, reject) => { uni.request({ - url: `${BASE_URL}/cloud_api/phone/conversation/message/download`, + url: `${BASE_URL$1}/cloud_api/phone/conversation/message/download`, method: "POST", header: { "Content-Type": "application/json" @@ -1551,7 +1557,7 @@ if (uni.restoreGlobal) { } return target; }; - const _sfc_main$c = { + const _sfc_main$d = { __name: "Login", setup(__props, { expose: __expose }) { __expose(); @@ -1655,7 +1661,7 @@ if (uni.restoreGlobal) { return __returned__; } }; - function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock( vue.Fragment, null, @@ -1753,7 +1759,7 @@ if (uni.restoreGlobal) { /* STABLE_FRAGMENT */ ); } - const PagesLoginLogin = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__scopeId", "data-v-461d1d79"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/Login/Login.vue"]]); + const PagesLoginLogin = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c], ["__scopeId", "data-v-461d1d79"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/Login/Login.vue"]]); const fontData = [ { "font_class": "arrow-down", @@ -2404,7 +2410,7 @@ if (uni.restoreGlobal) { const reg = /^[0-9]*$/g; return typeof val === "number" || reg.test(val) ? val + "px" : val; }; - const _sfc_main$b = { + const _sfc_main$c = { name: "UniIcons", emits: ["click"], props: { @@ -2458,7 +2464,7 @@ if (uni.restoreGlobal) { } } }; - function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock( "text", { @@ -2473,7 +2479,7 @@ if (uni.restoreGlobal) { /* CLASS, STYLE */ ); } - const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-d31e1c47"], ["__file", "D:/Projects/uniapp/app-test/test1/uni_modules/uni-icons/components/uni-icons/uni-icons.vue"]]); + const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__scopeId", "data-v-d31e1c47"], ["__file", "D:/Projects/uniapp/app-test/test1/uni_modules/uni-icons/components/uni-icons/uni-icons.vue"]]); const getToken = () => { return uni.getStorageSync("token"); }; @@ -2500,7 +2506,7 @@ if (uni.restoreGlobal) { const getWorkspaceId = () => { return uni.getStorageSync("workspace_id"); }; - const _sfc_main$a = /* @__PURE__ */ Object.assign({ + const _sfc_main$b = /* @__PURE__ */ Object.assign({ name: "ChatSidebar" }, { __name: "ChatSidebar", @@ -2669,7 +2675,7 @@ if (uni.restoreGlobal) { return __returned__; } }); - function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) { const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0); return vue.openBlock(), vue.createElementBlock("view", { class: "chat-sidebar-container" }, [ vue.createElementVNode("view", { class: "status-bar" }), @@ -2939,7 +2945,7 @@ if (uni.restoreGlobal) { ]) ]); } - const ChatSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9], ["__scopeId", "data-v-0c6c7315"], ["__file", "D:/Projects/uniapp/app-test/test1/components/ChatSidebar.vue"]]); + const ChatSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-0c6c7315"], ["__file", "D:/Projects/uniapp/app-test/test1/components/ChatSidebar.vue"]]); var e = { "": ["", ""], _: ["", ""], "*": ["", ""], "~": ["", ""], "\n": ["
"], " ": ["
"], "-": ["
"] }; function n(e2) { return e2.replace(RegExp("^" + (e2.match(/^(\t| )+/) || "")[0], "gm"), ""); @@ -5622,7 +5628,7 @@ This will fail in production.`); const pkg = /* @__PURE__ */ initUTSPackageName(name, is_uni_modules); const cls = /* @__PURE__ */ initUTSIndexClassName(name, is_uni_modules); const chooseFile = /* @__PURE__ */ initUTSProxyFunction(false, { moduleName, moduleType, errMsg, main: true, package: pkg, class: cls, name: "chooseFileByJs", keepAlive: false, params: [{ "name": "options", "type": "UTSSDKModulesLimeChooseFileChooseFileOptionJSONObject" }], return: "" }); - const _sfc_main$9 = { + const _sfc_main$a = { __name: "Chat", setup(__props, { expose: __expose }) { __expose(); @@ -6639,7 +6645,7 @@ This will fail in production.`); return __returned__; } }; - function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) { const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0); return vue.openBlock(), vue.createElementBlock( vue.Fragment, @@ -7288,8 +7294,8 @@ This will fail in production.`); /* STABLE_FRAGMENT */ ); } - const PagesChatChat = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8], ["__scopeId", "data-v-5eb7b895"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/Chat/Chat.vue"]]); - const _sfc_main$8 = { + const PagesChatChat = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9], ["__scopeId", "data-v-5eb7b895"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/Chat/Chat.vue"]]); + const _sfc_main$9 = { __name: "WorkSpace", setup(__props, { expose: __expose }) { __expose(); @@ -7426,9 +7432,10 @@ This will fail in production.`); const handleLongPress = (folder) => { if (isSelectFolder.value) return; + const isWyxd = folder.name && folder.name.toLowerCase().endsWith(".wyxd"); + const itemList = isWyxd ? ["下载", "删除", "WYXD查看器"] : ["下载", "删除"]; uni.showActionSheet({ - itemList: ["下载", "删除"], - // ['删除', '下载', '压缩', '重命名'] + itemList, success: (res) => { switch (res.tapIndex) { case 0: @@ -7437,6 +7444,10 @@ This will fail in production.`); case 1: handleDelete(folder); break; + case 2: + if (isWyxd) + openWyxdViewer(folder); + break; } } }); @@ -7468,7 +7479,7 @@ This will fail in production.`); initCurrentFolderList(); } catch (error) { uni.hideLoading(); - formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:339", "重命名失败:", error); + formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:338", "重命名失败:", error); uni.showToast({ title: typeof error === "string" ? error : "重命名失败,请重试", icon: "error" @@ -7513,7 +7524,7 @@ This will fail in production.`); uni.hideLoading(); if (downloadRes.statusCode === 200) { const tempPath = downloadRes.tempFilePath; - formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:396", "// 下载成功,文件下载路径为:", tempPath); + formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:395", "// 下载成功,文件下载路径为:", tempPath); openFile(tempPath); } else { uni.showToast({ @@ -7524,7 +7535,7 @@ This will fail in production.`); }, fail: (err) => { uni.hideLoading(); - formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:407", "下载文件失败:", err); + formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:406", "下载文件失败:", err); uni.showToast({ title: "下载失败,请重试", icon: "error" @@ -7533,7 +7544,7 @@ This will fail in production.`); }); } catch (error) { uni.hideLoading(); - formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:416", "获取下载链接失败:", error); + formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:415", "获取下载链接失败:", error); uni.showToast({ title: "获取下载链接失败,请重试", icon: "error" @@ -7548,7 +7559,7 @@ This will fail in production.`); icon: "success" }), fail: (err) => { - formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:433", "打开文件失败:", err); + formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:432", "打开文件失败:", err); uni.showToast({ title: "无法打开此文件", icon: "error" @@ -7565,7 +7576,7 @@ This will fail in production.`); icon: "success" }), fail: (err) => { - formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:452", "打开文件失败:", err); + formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:451", "打开文件失败:", err); uni.showToast({ title: "无法打开此文件", icon: "error" @@ -7573,6 +7584,16 @@ This will fail in production.`); } }); }; + const openWyxdViewer = (folder) => { + const filePath = folder.path.startsWith("./") ? folder.path.slice(2) : folder.path; + formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:463", "解析文件路径:", filePath); + formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:464", "folder", folder); + formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:465", "encode", encodeURIComponent(filePath)); + formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:466", "encode", encodeURIComponent(folder.name)); + uni.navigateTo({ + url: "/pages/WYXD/WYXD?workspaceId=" + encodeURIComponent(workspaceId.value) + "&filePath=" + encodeURIComponent(filePath) + "&fileName=" + encodeURIComponent(folder.name) + "&userToken=" + encodeURIComponent(UserToken.value) + }); + }; const handleDelete = (folder) => { uni.showModal({ title: "提示", @@ -7581,7 +7602,7 @@ This will fail in production.`); if (res.confirm) { try { const filePath = `./${folder.path}`; - formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:471", "删除的是:", filePath); + formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:485", "删除的是:", filePath); await daleteWorkspace(UserToken.value, workspaceId.value, filePath); uni.showToast({ title: "删除成功", @@ -7589,7 +7610,7 @@ This will fail in production.`); }); initCurrentFolderList(); } catch (error) { - formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:479", "删除失败:", error); + formatAppLog("error", "at pages/WorkSpace/WorkSpace.vue:493", "删除失败:", error); uni.showToast({ title: "删除失败,请重试", icon: "error" @@ -7657,7 +7678,7 @@ This will fail in production.`); const currentFolderList = vue.ref([]); const getCurrentFolderList = () => { var _a, _b; - formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:560", "当前路径为:", JSON.stringify(folderStack.value)); + formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:574", "当前路径为:", JSON.stringify(folderStack.value)); const currentPath = folderStack.value.length > 0 ? folderStack.value[folderStack.value.length - 1].path : "."; if (currentPath === ".") { return ((_a = allFoldersData.value) == null ? void 0 : _a.children) || []; @@ -7681,7 +7702,7 @@ This will fail in production.`); const initCurrentFolderList = async () => { workspaceId.value = getWorkspaceId(); UserToken.value = getToken(); - formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:587", "getWorkspaceId:", workspaceId.value); + formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:601", "getWorkspaceId:", workspaceId.value); allFoldersData.value = await getWorkspaceList(UserToken.value, workspaceId.value); currentFolderList.value = getCurrentFolderList(); }; @@ -7726,7 +7747,7 @@ This will fail in production.`); uni.navigateBack({ delta: 1, fail() { - formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:644", "返回失败,进入兜底跳转"); + formatAppLog("log", "at pages/WorkSpace/WorkSpace.vue:658", "返回失败,进入兜底跳转"); uni.reLaunch({ url: "/pages/Chat/Chat" }); @@ -7737,7 +7758,7 @@ This will fail in production.`); vue.onMounted(() => { initCurrentFolderList(); }); - const __returned__ = { UserToken, workspaceId, navbarBeforeTitle, navbarTitle, isSelectFolder, selectFileList, handleSelectFolder, selectFolder, showNewFolder, isNFNFocused, newFolderName, closeNewFolderModal, newWorkspaceFolder, handleUploadFile, doUploadWorkspaceFiles, currentFolderPath, folderPathPreview, confirmCreateFolder, handleLongPress, handleRename, handleDownload, openFile, openFileWithMenu, handleDelete, isMenuOpen, handleMenu, searchKeyword, isSearchFocus, handleSearchFocus, getFileIcon, allFoldersData, folderStack, currentFolderList, getCurrentFolderList, initCurrentFolderList, handleFolderClick, handleSelectAll, handleBackOrCheck, onMounted: vue.onMounted, ref: vue.ref, computed: vue.computed, get getWorkspaceId() { + const __returned__ = { UserToken, workspaceId, navbarBeforeTitle, navbarTitle, isSelectFolder, selectFileList, handleSelectFolder, selectFolder, showNewFolder, isNFNFocused, newFolderName, closeNewFolderModal, newWorkspaceFolder, handleUploadFile, doUploadWorkspaceFiles, currentFolderPath, folderPathPreview, confirmCreateFolder, handleLongPress, handleRename, handleDownload, openFile, openFileWithMenu, openWyxdViewer, handleDelete, isMenuOpen, handleMenu, searchKeyword, isSearchFocus, handleSearchFocus, getFileIcon, allFoldersData, folderStack, currentFolderList, getCurrentFolderList, initCurrentFolderList, handleFolderClick, handleSelectAll, handleBackOrCheck, onMounted: vue.onMounted, ref: vue.ref, computed: vue.computed, get getWorkspaceId() { return getWorkspaceId; }, get getToken() { return getToken; @@ -7762,7 +7783,7 @@ This will fail in production.`); return __returned__; } }; - function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) { const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0); return vue.openBlock(), vue.createElementBlock( vue.Fragment, @@ -8013,8 +8034,8 @@ This will fail in production.`); /* STABLE_FRAGMENT */ ); } - const PagesWorkSpaceWorkSpace = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7], ["__scopeId", "data-v-c1a60359"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/WorkSpace/WorkSpace.vue"]]); - const _sfc_main$7 = { + const PagesWorkSpaceWorkSpace = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8], ["__scopeId", "data-v-c1a60359"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/WorkSpace/WorkSpace.vue"]]); + const _sfc_main$8 = { __name: "UserProfileModal", setup(__props, { expose: __expose }) { __expose(); @@ -8103,7 +8124,7 @@ This will fail in production.`); return __returned__; } }; - function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) { const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0); return vue.openBlock(), vue.createElementBlock( vue.Fragment, @@ -8201,8 +8222,8 @@ This will fail in production.`); /* STABLE_FRAGMENT */ ); } - const PagesUserProfileModalUserProfileModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6], ["__scopeId", "data-v-d2908b51"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/UserProfileModal/UserProfileModal.vue"]]); - const _sfc_main$6 = { + const PagesUserProfileModalUserProfileModal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7], ["__scopeId", "data-v-d2908b51"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/UserProfileModal/UserProfileModal.vue"]]); + const _sfc_main$7 = { __name: "ContactPages", setup(__props, { expose: __expose }) { __expose(); @@ -8622,7 +8643,7 @@ This will fail in production.`); return __returned__; } }; - function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) { const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0); return vue.openBlock(), vue.createElementBlock( vue.Fragment, @@ -9210,8 +9231,8 @@ This will fail in production.`); /* STABLE_FRAGMENT */ ); } - const PagesContactPagesContactPages = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-976117c3"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/ContactPages/ContactPages.vue"]]); - const _sfc_main$5 = { + const PagesContactPagesContactPages = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6], ["__scopeId", "data-v-976117c3"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/ContactPages/ContactPages.vue"]]); + const _sfc_main$6 = { __name: "TemplateSpace", setup(__props, { expose: __expose }) { __expose(); @@ -9525,7 +9546,7 @@ This will fail in production.`); return __returned__; } }; - function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock( vue.Fragment, null, @@ -9768,8 +9789,8 @@ This will fail in production.`); /* STABLE_FRAGMENT */ ); } - const PagesWorkSpaceTemplateSpaceTemplateSpace = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4], ["__scopeId", "data-v-769edd25"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/WorkSpace/TemplateSpace/TemplateSpace.vue"]]); - const _sfc_main$4 = { + const PagesWorkSpaceTemplateSpaceTemplateSpace = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-769edd25"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/WorkSpace/TemplateSpace/TemplateSpace.vue"]]); + const _sfc_main$5 = { __name: "CloudDatabase", setup(__props, { expose: __expose }) { __expose(); @@ -10762,7 +10783,7 @@ This will fail in production.`); return __returned__; } }; - function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) { const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0); return vue.openBlock(), vue.createElementBlock( vue.Fragment, @@ -11813,8 +11834,8 @@ This will fail in production.`); /* STABLE_FRAGMENT */ ); } - const PagesCloudDatabaseCloudDatabase = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3], ["__scopeId", "data-v-51006ffb"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/CloudDatabase/CloudDatabase.vue"]]); - const _sfc_main$3 = { + const PagesCloudDatabaseCloudDatabase = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4], ["__scopeId", "data-v-51006ffb"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/CloudDatabase/CloudDatabase.vue"]]); + const _sfc_main$4 = { __name: "CloudDbDetail", props: { databaseId: { @@ -12303,7 +12324,7 @@ This will fail in production.`); return __returned__; } }; - function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) { const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0); return vue.openBlock(), vue.createElementBlock("view", { class: "cloud-db-detail-wrapper" }, [ vue.createElementVNode("view", { class: "status-bar" }), @@ -12773,8 +12794,8 @@ This will fail in production.`); ]) ]); } - const PagesCloudDbDetailCloudDbDetail = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2], ["__scopeId", "data-v-96fa4671"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/CloudDbDetail/CloudDbDetail.vue"]]); - const _sfc_main$2 = { + const PagesCloudDbDetailCloudDbDetail = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3], ["__scopeId", "data-v-96fa4671"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/CloudDbDetail/CloudDbDetail.vue"]]); + const _sfc_main$3 = { __name: "text", setup(__props, { expose: __expose }) { __expose(); @@ -13788,7 +13809,7 @@ This will fail in production.`); return __returned__; } }; - function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) { const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0); return vue.openBlock(), vue.createElementBlock( vue.Fragment, @@ -14437,8 +14458,8 @@ This will fail in production.`); /* STABLE_FRAGMENT */ ); } - const PagesTextText = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-fdf84df1"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/text/text.vue"]]); - const _sfc_main$1 = { + const PagesTextText = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2], ["__scopeId", "data-v-fdf84df1"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/text/text.vue"]]); + const _sfc_main$2 = { name: "IntuitiveAipptViewer", props: { visible: { @@ -14797,7 +14818,7 @@ This will fail in production.`); } } }; - function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { return vue.withDirectives((vue.openBlock(), vue.createElementBlock( "view", { @@ -14988,7 +15009,3237 @@ This will fail in production.`); [vue.vShow, $props.visible] ]); } - const PagesTextIntuitiveAipptViewer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-2050f472"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/text/IntuitiveAipptViewer.vue"]]); + const PagesTextIntuitiveAipptViewer = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-2050f472"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/text/IntuitiveAipptViewer.vue"]]); + var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; + function getDefaultExportFromCjs(x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; + } + function commonjsRequire(path) { + throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); + } + var jszip_min = { exports: {} }; + /*! + + JSZip v3.10.1 - A JavaScript class for generating and reading zip files + + + (c) 2009-2016 Stuart Knightley + Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. + + JSZip uses the library pako released under the MIT license : + https://github.com/nodeca/pako/blob/main/LICENSE + */ + (function(module, exports) { + !function(e2) { + module.exports = e2(); + }(function() { + return function s(a, o, h) { + function u(r2, e3) { + if (!o[r2]) { + if (!a[r2]) { + var t2 = "function" == typeof commonjsRequire && commonjsRequire; + if (!e3 && t2) + return t2(r2, true); + if (l) + return l(r2, true); + var n2 = new Error("Cannot find module '" + r2 + "'"); + throw n2.code = "MODULE_NOT_FOUND", n2; + } + var i = o[r2] = { exports: {} }; + a[r2][0].call(i.exports, function(e4) { + var t3 = a[r2][1][e4]; + return u(t3 || e4); + }, i, i.exports, s, a, o, h); + } + return o[r2].exports; + } + for (var l = "function" == typeof commonjsRequire && commonjsRequire, e2 = 0; e2 < h.length; e2++) + u(h[e2]); + return u; + }({ 1: [function(e2, t2, r2) { + var d = e2("./utils"), c = e2("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + r2.encode = function(e3) { + for (var t3, r3, n2, i, s, a, o, h = [], u = 0, l = e3.length, f = l, c2 = "string" !== d.getTypeOf(e3); u < e3.length; ) + f = l - u, n2 = c2 ? (t3 = e3[u++], r3 = u < l ? e3[u++] : 0, u < l ? e3[u++] : 0) : (t3 = e3.charCodeAt(u++), r3 = u < l ? e3.charCodeAt(u++) : 0, u < l ? e3.charCodeAt(u++) : 0), i = t3 >> 2, s = (3 & t3) << 4 | r3 >> 4, a = 1 < f ? (15 & r3) << 2 | n2 >> 6 : 64, o = 2 < f ? 63 & n2 : 64, h.push(p.charAt(i) + p.charAt(s) + p.charAt(a) + p.charAt(o)); + return h.join(""); + }, r2.decode = function(e3) { + var t3, r3, n2, i, s, a, o = 0, h = 0, u = "data:"; + if (e3.substr(0, u.length) === u) + throw new Error("Invalid base64 input, it looks like a data url."); + var l, f = 3 * (e3 = e3.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4; + if (e3.charAt(e3.length - 1) === p.charAt(64) && f--, e3.charAt(e3.length - 2) === p.charAt(64) && f--, f % 1 != 0) + throw new Error("Invalid base64 input, bad content length."); + for (l = c.uint8array ? new Uint8Array(0 | f) : new Array(0 | f); o < e3.length; ) + t3 = p.indexOf(e3.charAt(o++)) << 2 | (i = p.indexOf(e3.charAt(o++))) >> 4, r3 = (15 & i) << 4 | (s = p.indexOf(e3.charAt(o++))) >> 2, n2 = (3 & s) << 6 | (a = p.indexOf(e3.charAt(o++))), l[h++] = t3, 64 !== s && (l[h++] = r3), 64 !== a && (l[h++] = n2); + return l; + }; + }, { "./support": 30, "./utils": 32 }], 2: [function(e2, t2, r2) { + var n2 = e2("./external"), i = e2("./stream/DataWorker"), s = e2("./stream/Crc32Probe"), a = e2("./stream/DataLengthProbe"); + function o(e3, t3, r3, n3, i2) { + this.compressedSize = e3, this.uncompressedSize = t3, this.crc32 = r3, this.compression = n3, this.compressedContent = i2; + } + o.prototype = { getContentWorker: function() { + var e3 = new i(n2.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")), t3 = this; + return e3.on("end", function() { + if (this.streamInfo.data_length !== t3.uncompressedSize) + throw new Error("Bug : uncompressed data size mismatch"); + }), e3; + }, getCompressedWorker: function() { + return new i(n2.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression); + } }, o.createWorkerFrom = function(e3, t3, r3) { + return e3.pipe(new s()).pipe(new a("uncompressedSize")).pipe(t3.compressWorker(r3)).pipe(new a("compressedSize")).withStreamInfo("compression", t3); + }, t2.exports = o; + }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(e2, t2, r2) { + var n2 = e2("./stream/GenericWorker"); + r2.STORE = { magic: "\0\0", compressWorker: function() { + return new n2("STORE compression"); + }, uncompressWorker: function() { + return new n2("STORE decompression"); + } }, r2.DEFLATE = e2("./flate"); + }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(e2, t2, r2) { + var n2 = e2("./utils"); + var o = function() { + for (var e3, t3 = [], r3 = 0; r3 < 256; r3++) { + e3 = r3; + for (var n3 = 0; n3 < 8; n3++) + e3 = 1 & e3 ? 3988292384 ^ e3 >>> 1 : e3 >>> 1; + t3[r3] = e3; + } + return t3; + }(); + t2.exports = function(e3, t3) { + return void 0 !== e3 && e3.length ? "string" !== n2.getTypeOf(e3) ? function(e4, t4, r3, n3) { + var i = o, s = n3 + r3; + e4 ^= -1; + for (var a = n3; a < s; a++) + e4 = e4 >>> 8 ^ i[255 & (e4 ^ t4[a])]; + return -1 ^ e4; + }(0 | t3, e3, e3.length, 0) : function(e4, t4, r3, n3) { + var i = o, s = n3 + r3; + e4 ^= -1; + for (var a = n3; a < s; a++) + e4 = e4 >>> 8 ^ i[255 & (e4 ^ t4.charCodeAt(a))]; + return -1 ^ e4; + }(0 | t3, e3, e3.length, 0) : 0; + }; + }, { "./utils": 32 }], 5: [function(e2, t2, r2) { + r2.base64 = false, r2.binary = false, r2.dir = false, r2.createFolders = true, r2.date = null, r2.compression = null, r2.compressionOptions = null, r2.comment = null, r2.unixPermissions = null, r2.dosPermissions = null; + }, {}], 6: [function(e2, t2, r2) { + var n2 = null; + n2 = "undefined" != typeof Promise ? Promise : e2("lie"), t2.exports = { Promise: n2 }; + }, { lie: 37 }], 7: [function(e2, t2, r2) { + var n2 = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Uint32Array, i = e2("pako"), s = e2("./utils"), a = e2("./stream/GenericWorker"), o = n2 ? "uint8array" : "array"; + function h(e3, t3) { + a.call(this, "FlateWorker/" + e3), this._pako = null, this._pakoAction = e3, this._pakoOptions = t3, this.meta = {}; + } + r2.magic = "\b\0", s.inherits(h, a), h.prototype.processChunk = function(e3) { + this.meta = e3.meta, null === this._pako && this._createPako(), this._pako.push(s.transformTo(o, e3.data), false); + }, h.prototype.flush = function() { + a.prototype.flush.call(this), null === this._pako && this._createPako(), this._pako.push([], true); + }, h.prototype.cleanUp = function() { + a.prototype.cleanUp.call(this), this._pako = null; + }, h.prototype._createPako = function() { + this._pako = new i[this._pakoAction]({ raw: true, level: this._pakoOptions.level || -1 }); + var t3 = this; + this._pako.onData = function(e3) { + t3.push({ data: e3, meta: t3.meta }); + }; + }, r2.compressWorker = function(e3) { + return new h("Deflate", e3); + }, r2.uncompressWorker = function() { + return new h("Inflate", {}); + }; + }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e2, t2, r2) { + function A(e3, t3) { + var r3, n3 = ""; + for (r3 = 0; r3 < t3; r3++) + n3 += String.fromCharCode(255 & e3), e3 >>>= 8; + return n3; + } + function n2(e3, t3, r3, n3, i2, s2) { + var a, o, h = e3.file, u = e3.compression, l = s2 !== O.utf8encode, f = I.transformTo("string", s2(h.name)), c = I.transformTo("string", O.utf8encode(h.name)), d = h.comment, p = I.transformTo("string", s2(d)), m = I.transformTo("string", O.utf8encode(d)), _ = c.length !== h.name.length, g = m.length !== d.length, b = "", v = "", y = "", w = h.dir, k = h.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 }; + t3 && !r3 || (x.crc32 = e3.crc32, x.compressedSize = e3.compressedSize, x.uncompressedSize = e3.uncompressedSize); + var S = 0; + t3 && (S |= 8), l || !_ && !g || (S |= 2048); + var z = 0, C = 0; + w && (z |= 16), "UNIX" === i2 ? (C = 798, z |= function(e4, t4) { + var r4 = e4; + return e4 || (r4 = t4 ? 16893 : 33204), (65535 & r4) << 16; + }(h.unixPermissions, w)) : (C = 20, z |= function(e4) { + return 63 & (e4 || 0); + }(h.dosPermissions)), a = k.getUTCHours(), a <<= 6, a |= k.getUTCMinutes(), a <<= 5, a |= k.getUTCSeconds() / 2, o = k.getUTCFullYear() - 1980, o <<= 4, o |= k.getUTCMonth() + 1, o <<= 5, o |= k.getUTCDate(), _ && (v = A(1, 1) + A(B(f), 4) + c, b += "up" + A(v.length, 2) + v), g && (y = A(1, 1) + A(B(p), 4) + m, b += "uc" + A(y.length, 2) + y); + var E = ""; + return E += "\n\0", E += A(S, 2), E += u.magic, E += A(a, 2), E += A(o, 2), E += A(x.crc32, 4), E += A(x.compressedSize, 4), E += A(x.uncompressedSize, 4), E += A(f.length, 2), E += A(b.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E + f + b, dirRecord: R.CENTRAL_FILE_HEADER + A(C, 2) + E + A(p.length, 2) + "\0\0\0\0" + A(z, 4) + A(n3, 4) + f + b + p }; + } + var I = e2("../utils"), i = e2("../stream/GenericWorker"), O = e2("../utf8"), B = e2("../crc32"), R = e2("../signature"); + function s(e3, t3, r3, n3) { + i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t3, this.zipPlatform = r3, this.encodeFileName = n3, this.streamFiles = e3, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = []; + } + I.inherits(s, i), s.prototype.push = function(e3) { + var t3 = e3.meta.percent || 0, r3 = this.entriesCount, n3 = this._sources.length; + this.accumulate ? this.contentBuffer.push(e3) : (this.bytesWritten += e3.data.length, i.prototype.push.call(this, { data: e3.data, meta: { currentFile: this.currentFile, percent: r3 ? (t3 + 100 * (r3 - n3 - 1)) / r3 : 100 } })); + }, s.prototype.openedSource = function(e3) { + this.currentSourceOffset = this.bytesWritten, this.currentFile = e3.file.name; + var t3 = this.streamFiles && !e3.file.dir; + if (t3) { + var r3 = n2(e3, t3, false, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + this.push({ data: r3.fileRecord, meta: { percent: 0 } }); + } else + this.accumulate = true; + }, s.prototype.closedSource = function(e3) { + this.accumulate = false; + var t3 = this.streamFiles && !e3.file.dir, r3 = n2(e3, t3, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + if (this.dirRecords.push(r3.dirRecord), t3) + this.push({ data: function(e4) { + return R.DATA_DESCRIPTOR + A(e4.crc32, 4) + A(e4.compressedSize, 4) + A(e4.uncompressedSize, 4); + }(e3), meta: { percent: 100 } }); + else + for (this.push({ data: r3.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) + this.push(this.contentBuffer.shift()); + this.currentFile = null; + }, s.prototype.flush = function() { + for (var e3 = this.bytesWritten, t3 = 0; t3 < this.dirRecords.length; t3++) + this.push({ data: this.dirRecords[t3], meta: { percent: 100 } }); + var r3 = this.bytesWritten - e3, n3 = function(e4, t4, r4, n4, i2) { + var s2 = I.transformTo("string", i2(n4)); + return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A(e4, 2) + A(e4, 2) + A(t4, 4) + A(r4, 4) + A(s2.length, 2) + s2; + }(this.dirRecords.length, r3, e3, this.zipComment, this.encodeFileName); + this.push({ data: n3, meta: { percent: 100 } }); + }, s.prototype.prepareNextSource = function() { + this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume(); + }, s.prototype.registerPrevious = function(e3) { + this._sources.push(e3); + var t3 = this; + return e3.on("data", function(e4) { + t3.processChunk(e4); + }), e3.on("end", function() { + t3.closedSource(t3.previous.streamInfo), t3._sources.length ? t3.prepareNextSource() : t3.end(); + }), e3.on("error", function(e4) { + t3.error(e4); + }), this; + }, s.prototype.resume = function() { + return !!i.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), true) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), true)); + }, s.prototype.error = function(e3) { + var t3 = this._sources; + if (!i.prototype.error.call(this, e3)) + return false; + for (var r3 = 0; r3 < t3.length; r3++) + try { + t3[r3].error(e3); + } catch (e4) { + } + return true; + }, s.prototype.lock = function() { + i.prototype.lock.call(this); + for (var e3 = this._sources, t3 = 0; t3 < e3.length; t3++) + e3[t3].lock(); + }, t2.exports = s; + }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e2, t2, r2) { + var u = e2("../compressions"), n2 = e2("./ZipFileWorker"); + r2.generateWorker = function(e3, a, t3) { + var o = new n2(a.streamFiles, t3, a.platform, a.encodeFileName), h = 0; + try { + e3.forEach(function(e4, t4) { + h++; + var r3 = function(e5, t5) { + var r4 = e5 || t5, n4 = u[r4]; + if (!n4) + throw new Error(r4 + " is not a valid compression method !"); + return n4; + }(t4.options.compression, a.compression), n3 = t4.options.compressionOptions || a.compressionOptions || {}, i = t4.dir, s = t4.date; + t4._compressWorker(r3, n3).withStreamInfo("file", { name: e4, dir: i, date: s, comment: t4.comment || "", unixPermissions: t4.unixPermissions, dosPermissions: t4.dosPermissions }).pipe(o); + }), o.entriesCount = h; + } catch (e4) { + o.error(e4); + } + return o; + }; + }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(e2, t2, r2) { + function n2() { + if (!(this instanceof n2)) + return new n2(); + if (arguments.length) + throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide."); + this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() { + var e3 = new n2(); + for (var t3 in this) + "function" != typeof this[t3] && (e3[t3] = this[t3]); + return e3; + }; + } + (n2.prototype = e2("./object")).loadAsync = e2("./load"), n2.support = e2("./support"), n2.defaults = e2("./defaults"), n2.version = "3.10.1", n2.loadAsync = function(e3, t3) { + return new n2().loadAsync(e3, t3); + }, n2.external = e2("./external"), t2.exports = n2; + }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e2, t2, r2) { + var u = e2("./utils"), i = e2("./external"), n2 = e2("./utf8"), s = e2("./zipEntries"), a = e2("./stream/Crc32Probe"), l = e2("./nodejsUtils"); + function f(n3) { + return new i.Promise(function(e3, t3) { + var r3 = n3.decompressed.getContentWorker().pipe(new a()); + r3.on("error", function(e4) { + t3(e4); + }).on("end", function() { + r3.streamInfo.crc32 !== n3.decompressed.crc32 ? t3(new Error("Corrupted zip : CRC32 mismatch")) : e3(); + }).resume(); + }); + } + t2.exports = function(e3, o) { + var h = this; + return o = u.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n2.utf8decode }), l.isNode && l.isStream(e3) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", e3, true, o.optimizedBinaryString, o.base64).then(function(e4) { + var t3 = new s(o); + return t3.load(e4), t3; + }).then(function(e4) { + var t3 = [i.Promise.resolve(e4)], r3 = e4.files; + if (o.checkCRC32) + for (var n3 = 0; n3 < r3.length; n3++) + t3.push(f(r3[n3])); + return i.Promise.all(t3); + }).then(function(e4) { + for (var t3 = e4.shift(), r3 = t3.files, n3 = 0; n3 < r3.length; n3++) { + var i2 = r3[n3], s2 = i2.fileNameStr, a2 = u.resolve(i2.fileNameStr); + h.file(a2, i2.decompressed, { binary: true, optimizedBinaryString: true, date: i2.date, dir: i2.dir, comment: i2.fileCommentStr.length ? i2.fileCommentStr : null, unixPermissions: i2.unixPermissions, dosPermissions: i2.dosPermissions, createFolders: o.createFolders }), i2.dir || (h.file(a2).unsafeOriginalName = s2); + } + return t3.zipComment.length && (h.comment = t3.zipComment), h; + }); + }; + }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e2, t2, r2) { + var n2 = e2("../utils"), i = e2("../stream/GenericWorker"); + function s(e3, t3) { + i.call(this, "Nodejs stream input adapter for " + e3), this._upstreamEnded = false, this._bindStream(t3); + } + n2.inherits(s, i), s.prototype._bindStream = function(e3) { + var t3 = this; + (this._stream = e3).pause(), e3.on("data", function(e4) { + t3.push({ data: e4, meta: { percent: 0 } }); + }).on("error", function(e4) { + t3.isPaused ? this.generatedError = e4 : t3.error(e4); + }).on("end", function() { + t3.isPaused ? t3._upstreamEnded = true : t3.end(); + }); + }, s.prototype.pause = function() { + return !!i.prototype.pause.call(this) && (this._stream.pause(), true); + }, s.prototype.resume = function() { + return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), true); + }, t2.exports = s; + }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(e2, t2, r2) { + var i = e2("readable-stream").Readable; + function n2(e3, t3, r3) { + i.call(this, t3), this._helper = e3; + var n3 = this; + e3.on("data", function(e4, t4) { + n3.push(e4) || n3._helper.pause(), r3 && r3(t4); + }).on("error", function(e4) { + n3.emit("error", e4); + }).on("end", function() { + n3.push(null); + }); + } + e2("../utils").inherits(n2, i), n2.prototype._read = function() { + this._helper.resume(); + }, t2.exports = n2; + }, { "../utils": 32, "readable-stream": 16 }], 14: [function(e2, t2, r2) { + t2.exports = { isNode: "undefined" != typeof Buffer, newBufferFrom: function(e3, t3) { + if (Buffer.from && Buffer.from !== Uint8Array.from) + return Buffer.from(e3, t3); + if ("number" == typeof e3) + throw new Error('The "data" argument must not be a number'); + return new Buffer(e3, t3); + }, allocBuffer: function(e3) { + if (Buffer.alloc) + return Buffer.alloc(e3); + var t3 = new Buffer(e3); + return t3.fill(0), t3; + }, isBuffer: function(e3) { + return Buffer.isBuffer(e3); + }, isStream: function(e3) { + return e3 && "function" == typeof e3.on && "function" == typeof e3.pause && "function" == typeof e3.resume; + } }; + }, {}], 15: [function(e2, t2, r2) { + function s(e3, t3, r3) { + var n3, i2 = u.getTypeOf(t3), s2 = u.extend(r3 || {}, f); + s2.date = s2.date || /* @__PURE__ */ new Date(), null !== s2.compression && (s2.compression = s2.compression.toUpperCase()), "string" == typeof s2.unixPermissions && (s2.unixPermissions = parseInt(s2.unixPermissions, 8)), s2.unixPermissions && 16384 & s2.unixPermissions && (s2.dir = true), s2.dosPermissions && 16 & s2.dosPermissions && (s2.dir = true), s2.dir && (e3 = g(e3)), s2.createFolders && (n3 = _(e3)) && b.call(this, n3, true); + var a2 = "string" === i2 && false === s2.binary && false === s2.base64; + r3 && void 0 !== r3.binary || (s2.binary = !a2), (t3 instanceof c && 0 === t3.uncompressedSize || s2.dir || !t3 || 0 === t3.length) && (s2.base64 = false, s2.binary = true, t3 = "", s2.compression = "STORE", i2 = "string"); + var o2 = null; + o2 = t3 instanceof c || t3 instanceof l ? t3 : p.isNode && p.isStream(t3) ? new m(e3, t3) : u.prepareContent(e3, t3, s2.binary, s2.optimizedBinaryString, s2.base64); + var h2 = new d(e3, o2, s2); + this.files[e3] = h2; + } + var i = e2("./utf8"), u = e2("./utils"), l = e2("./stream/GenericWorker"), a = e2("./stream/StreamHelper"), f = e2("./defaults"), c = e2("./compressedObject"), d = e2("./zipObject"), o = e2("./generate"), p = e2("./nodejsUtils"), m = e2("./nodejs/NodejsStreamInputAdapter"), _ = function(e3) { + "/" === e3.slice(-1) && (e3 = e3.substring(0, e3.length - 1)); + var t3 = e3.lastIndexOf("/"); + return 0 < t3 ? e3.substring(0, t3) : ""; + }, g = function(e3) { + return "/" !== e3.slice(-1) && (e3 += "/"), e3; + }, b = function(e3, t3) { + return t3 = void 0 !== t3 ? t3 : f.createFolders, e3 = g(e3), this.files[e3] || s.call(this, e3, null, { dir: true, createFolders: t3 }), this.files[e3]; + }; + function h(e3) { + return "[object RegExp]" === Object.prototype.toString.call(e3); + } + var n2 = { load: function() { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, forEach: function(e3) { + var t3, r3, n3; + for (t3 in this.files) + n3 = this.files[t3], (r3 = t3.slice(this.root.length, t3.length)) && t3.slice(0, this.root.length) === this.root && e3(r3, n3); + }, filter: function(r3) { + var n3 = []; + return this.forEach(function(e3, t3) { + r3(e3, t3) && n3.push(t3); + }), n3; + }, file: function(e3, t3, r3) { + if (1 !== arguments.length) + return e3 = this.root + e3, s.call(this, e3, t3, r3), this; + if (h(e3)) { + var n3 = e3; + return this.filter(function(e4, t4) { + return !t4.dir && n3.test(e4); + }); + } + var i2 = this.files[this.root + e3]; + return i2 && !i2.dir ? i2 : null; + }, folder: function(r3) { + if (!r3) + return this; + if (h(r3)) + return this.filter(function(e4, t4) { + return t4.dir && r3.test(e4); + }); + var e3 = this.root + r3, t3 = b.call(this, e3), n3 = this.clone(); + return n3.root = t3.name, n3; + }, remove: function(r3) { + r3 = this.root + r3; + var e3 = this.files[r3]; + if (e3 || ("/" !== r3.slice(-1) && (r3 += "/"), e3 = this.files[r3]), e3 && !e3.dir) + delete this.files[r3]; + else + for (var t3 = this.filter(function(e4, t4) { + return t4.name.slice(0, r3.length) === r3; + }), n3 = 0; n3 < t3.length; n3++) + delete this.files[t3[n3].name]; + return this; + }, generate: function() { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, generateInternalStream: function(e3) { + var t3, r3 = {}; + try { + if ((r3 = u.extend(e3 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i.utf8encode })).type = r3.type.toLowerCase(), r3.compression = r3.compression.toUpperCase(), "binarystring" === r3.type && (r3.type = "string"), !r3.type) + throw new Error("No output type specified."); + u.checkSupport(r3.type), "darwin" !== r3.platform && "freebsd" !== r3.platform && "linux" !== r3.platform && "sunos" !== r3.platform || (r3.platform = "UNIX"), "win32" === r3.platform && (r3.platform = "DOS"); + var n3 = r3.comment || this.comment || ""; + t3 = o.generateWorker(this, r3, n3); + } catch (e4) { + (t3 = new l("error")).error(e4); + } + return new a(t3, r3.type || "string", r3.mimeType); + }, generateAsync: function(e3, t3) { + return this.generateInternalStream(e3).accumulate(t3); + }, generateNodeStream: function(e3, t3) { + return (e3 = e3 || {}).type || (e3.type = "nodebuffer"), this.generateInternalStream(e3).toNodejsStream(t3); + } }; + t2.exports = n2; + }, { "./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(e2, t2, r2) { + t2.exports = e2("stream"); + }, { stream: void 0 }], 17: [function(e2, t2, r2) { + var n2 = e2("./DataReader"); + function i(e3) { + n2.call(this, e3); + for (var t3 = 0; t3 < this.data.length; t3++) + e3[t3] = 255 & e3[t3]; + } + e2("../utils").inherits(i, n2), i.prototype.byteAt = function(e3) { + return this.data[this.zero + e3]; + }, i.prototype.lastIndexOfSignature = function(e3) { + for (var t3 = e3.charCodeAt(0), r3 = e3.charCodeAt(1), n3 = e3.charCodeAt(2), i2 = e3.charCodeAt(3), s = this.length - 4; 0 <= s; --s) + if (this.data[s] === t3 && this.data[s + 1] === r3 && this.data[s + 2] === n3 && this.data[s + 3] === i2) + return s - this.zero; + return -1; + }, i.prototype.readAndCheckSignature = function(e3) { + var t3 = e3.charCodeAt(0), r3 = e3.charCodeAt(1), n3 = e3.charCodeAt(2), i2 = e3.charCodeAt(3), s = this.readData(4); + return t3 === s[0] && r3 === s[1] && n3 === s[2] && i2 === s[3]; + }, i.prototype.readData = function(e3) { + if (this.checkOffset(e3), 0 === e3) + return []; + var t3 = this.data.slice(this.zero + this.index, this.zero + this.index + e3); + return this.index += e3, t3; + }, t2.exports = i; + }, { "../utils": 32, "./DataReader": 18 }], 18: [function(e2, t2, r2) { + var n2 = e2("../utils"); + function i(e3) { + this.data = e3, this.length = e3.length, this.index = 0, this.zero = 0; + } + i.prototype = { checkOffset: function(e3) { + this.checkIndex(this.index + e3); + }, checkIndex: function(e3) { + if (this.length < this.zero + e3 || e3 < 0) + throw new Error("End of data reached (data length = " + this.length + ", asked index = " + e3 + "). Corrupted zip ?"); + }, setIndex: function(e3) { + this.checkIndex(e3), this.index = e3; + }, skip: function(e3) { + this.setIndex(this.index + e3); + }, byteAt: function() { + }, readInt: function(e3) { + var t3, r3 = 0; + for (this.checkOffset(e3), t3 = this.index + e3 - 1; t3 >= this.index; t3--) + r3 = (r3 << 8) + this.byteAt(t3); + return this.index += e3, r3; + }, readString: function(e3) { + return n2.transformTo("string", this.readData(e3)); + }, readData: function() { + }, lastIndexOfSignature: function() { + }, readAndCheckSignature: function() { + }, readDate: function() { + var e3 = this.readInt(4); + return new Date(Date.UTC(1980 + (e3 >> 25 & 127), (e3 >> 21 & 15) - 1, e3 >> 16 & 31, e3 >> 11 & 31, e3 >> 5 & 63, (31 & e3) << 1)); + } }, t2.exports = i; + }, { "../utils": 32 }], 19: [function(e2, t2, r2) { + var n2 = e2("./Uint8ArrayReader"); + function i(e3) { + n2.call(this, e3); + } + e2("../utils").inherits(i, n2), i.prototype.readData = function(e3) { + this.checkOffset(e3); + var t3 = this.data.slice(this.zero + this.index, this.zero + this.index + e3); + return this.index += e3, t3; + }, t2.exports = i; + }, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(e2, t2, r2) { + var n2 = e2("./DataReader"); + function i(e3) { + n2.call(this, e3); + } + e2("../utils").inherits(i, n2), i.prototype.byteAt = function(e3) { + return this.data.charCodeAt(this.zero + e3); + }, i.prototype.lastIndexOfSignature = function(e3) { + return this.data.lastIndexOf(e3) - this.zero; + }, i.prototype.readAndCheckSignature = function(e3) { + return e3 === this.readData(4); + }, i.prototype.readData = function(e3) { + this.checkOffset(e3); + var t3 = this.data.slice(this.zero + this.index, this.zero + this.index + e3); + return this.index += e3, t3; + }, t2.exports = i; + }, { "../utils": 32, "./DataReader": 18 }], 21: [function(e2, t2, r2) { + var n2 = e2("./ArrayReader"); + function i(e3) { + n2.call(this, e3); + } + e2("../utils").inherits(i, n2), i.prototype.readData = function(e3) { + if (this.checkOffset(e3), 0 === e3) + return new Uint8Array(0); + var t3 = this.data.subarray(this.zero + this.index, this.zero + this.index + e3); + return this.index += e3, t3; + }, t2.exports = i; + }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e2, t2, r2) { + var n2 = e2("../utils"), i = e2("../support"), s = e2("./ArrayReader"), a = e2("./StringReader"), o = e2("./NodeBufferReader"), h = e2("./Uint8ArrayReader"); + t2.exports = function(e3) { + var t3 = n2.getTypeOf(e3); + return n2.checkSupport(t3), "string" !== t3 || i.uint8array ? "nodebuffer" === t3 ? new o(e3) : i.uint8array ? new h(n2.transformTo("uint8array", e3)) : new s(n2.transformTo("array", e3)) : new a(e3); + }; + }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e2, t2, r2) { + r2.LOCAL_FILE_HEADER = "PK", r2.CENTRAL_FILE_HEADER = "PK", r2.CENTRAL_DIRECTORY_END = "PK", r2.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", r2.ZIP64_CENTRAL_DIRECTORY_END = "PK", r2.DATA_DESCRIPTOR = "PK\x07\b"; + }, {}], 24: [function(e2, t2, r2) { + var n2 = e2("./GenericWorker"), i = e2("../utils"); + function s(e3) { + n2.call(this, "ConvertWorker to " + e3), this.destType = e3; + } + i.inherits(s, n2), s.prototype.processChunk = function(e3) { + this.push({ data: i.transformTo(this.destType, e3.data), meta: e3.meta }); + }, t2.exports = s; + }, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(e2, t2, r2) { + var n2 = e2("./GenericWorker"), i = e2("../crc32"); + function s() { + n2.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0); + } + e2("../utils").inherits(s, n2), s.prototype.processChunk = function(e3) { + this.streamInfo.crc32 = i(e3.data, this.streamInfo.crc32 || 0), this.push(e3); + }, t2.exports = s; + }, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(e2, t2, r2) { + var n2 = e2("../utils"), i = e2("./GenericWorker"); + function s(e3) { + i.call(this, "DataLengthProbe for " + e3), this.propName = e3, this.withStreamInfo(e3, 0); + } + n2.inherits(s, i), s.prototype.processChunk = function(e3) { + if (e3) { + var t3 = this.streamInfo[this.propName] || 0; + this.streamInfo[this.propName] = t3 + e3.data.length; + } + i.prototype.processChunk.call(this, e3); + }, t2.exports = s; + }, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(e2, t2, r2) { + var n2 = e2("../utils"), i = e2("./GenericWorker"); + function s(e3) { + i.call(this, "DataWorker"); + var t3 = this; + this.dataIsReady = false, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = false, e3.then(function(e4) { + t3.dataIsReady = true, t3.data = e4, t3.max = e4 && e4.length || 0, t3.type = n2.getTypeOf(e4), t3.isPaused || t3._tickAndRepeat(); + }, function(e4) { + t3.error(e4); + }); + } + n2.inherits(s, i), s.prototype.cleanUp = function() { + i.prototype.cleanUp.call(this), this.data = null; + }, s.prototype.resume = function() { + return !!i.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = true, n2.delay(this._tickAndRepeat, [], this)), true); + }, s.prototype._tickAndRepeat = function() { + this._tickScheduled = false, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (n2.delay(this._tickAndRepeat, [], this), this._tickScheduled = true)); + }, s.prototype._tick = function() { + if (this.isPaused || this.isFinished) + return false; + var e3 = null, t3 = Math.min(this.max, this.index + 16384); + if (this.index >= this.max) + return this.end(); + switch (this.type) { + case "string": + e3 = this.data.substring(this.index, t3); + break; + case "uint8array": + e3 = this.data.subarray(this.index, t3); + break; + case "array": + case "nodebuffer": + e3 = this.data.slice(this.index, t3); + } + return this.index = t3, this.push({ data: e3, meta: { percent: this.max ? this.index / this.max * 100 : 0 } }); + }, t2.exports = s; + }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(e2, t2, r2) { + function n2(e3) { + this.name = e3 || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = true, this.isFinished = false, this.isLocked = false, this._listeners = { data: [], end: [], error: [] }, this.previous = null; + } + n2.prototype = { push: function(e3) { + this.emit("data", e3); + }, end: function() { + if (this.isFinished) + return false; + this.flush(); + try { + this.emit("end"), this.cleanUp(), this.isFinished = true; + } catch (e3) { + this.emit("error", e3); + } + return true; + }, error: function(e3) { + return !this.isFinished && (this.isPaused ? this.generatedError = e3 : (this.isFinished = true, this.emit("error", e3), this.previous && this.previous.error(e3), this.cleanUp()), true); + }, on: function(e3, t3) { + return this._listeners[e3].push(t3), this; + }, cleanUp: function() { + this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = []; + }, emit: function(e3, t3) { + if (this._listeners[e3]) + for (var r3 = 0; r3 < this._listeners[e3].length; r3++) + this._listeners[e3][r3].call(this, t3); + }, pipe: function(e3) { + return e3.registerPrevious(this); + }, registerPrevious: function(e3) { + if (this.isLocked) + throw new Error("The stream '" + this + "' has already been used."); + this.streamInfo = e3.streamInfo, this.mergeStreamInfo(), this.previous = e3; + var t3 = this; + return e3.on("data", function(e4) { + t3.processChunk(e4); + }), e3.on("end", function() { + t3.end(); + }), e3.on("error", function(e4) { + t3.error(e4); + }), this; + }, pause: function() { + return !this.isPaused && !this.isFinished && (this.isPaused = true, this.previous && this.previous.pause(), true); + }, resume: function() { + if (!this.isPaused || this.isFinished) + return false; + var e3 = this.isPaused = false; + return this.generatedError && (this.error(this.generatedError), e3 = true), this.previous && this.previous.resume(), !e3; + }, flush: function() { + }, processChunk: function(e3) { + this.push(e3); + }, withStreamInfo: function(e3, t3) { + return this.extraStreamInfo[e3] = t3, this.mergeStreamInfo(), this; + }, mergeStreamInfo: function() { + for (var e3 in this.extraStreamInfo) + Object.prototype.hasOwnProperty.call(this.extraStreamInfo, e3) && (this.streamInfo[e3] = this.extraStreamInfo[e3]); + }, lock: function() { + if (this.isLocked) + throw new Error("The stream '" + this + "' has already been used."); + this.isLocked = true, this.previous && this.previous.lock(); + }, toString: function() { + var e3 = "Worker " + this.name; + return this.previous ? this.previous + " -> " + e3 : e3; + } }, t2.exports = n2; + }, {}], 29: [function(e2, t2, r2) { + var h = e2("../utils"), i = e2("./ConvertWorker"), s = e2("./GenericWorker"), u = e2("../base64"), n2 = e2("../support"), a = e2("../external"), o = null; + if (n2.nodestream) + try { + o = e2("../nodejs/NodejsStreamOutputAdapter"); + } catch (e3) { + } + function l(e3, o2) { + return new a.Promise(function(t3, r3) { + var n3 = [], i2 = e3._internalType, s2 = e3._outputType, a2 = e3._mimeType; + e3.on("data", function(e4, t4) { + n3.push(e4), o2 && o2(t4); + }).on("error", function(e4) { + n3 = [], r3(e4); + }).on("end", function() { + try { + var e4 = function(e5, t4, r4) { + switch (e5) { + case "blob": + return h.newBlob(h.transformTo("arraybuffer", t4), r4); + case "base64": + return u.encode(t4); + default: + return h.transformTo(e5, t4); + } + }(s2, function(e5, t4) { + var r4, n4 = 0, i3 = null, s3 = 0; + for (r4 = 0; r4 < t4.length; r4++) + s3 += t4[r4].length; + switch (e5) { + case "string": + return t4.join(""); + case "array": + return Array.prototype.concat.apply([], t4); + case "uint8array": + for (i3 = new Uint8Array(s3), r4 = 0; r4 < t4.length; r4++) + i3.set(t4[r4], n4), n4 += t4[r4].length; + return i3; + case "nodebuffer": + return Buffer.concat(t4); + default: + throw new Error("concat : unsupported type '" + e5 + "'"); + } + }(i2, n3), a2); + t3(e4); + } catch (e5) { + r3(e5); + } + n3 = []; + }).resume(); + }); + } + function f(e3, t3, r3) { + var n3 = t3; + switch (t3) { + case "blob": + case "arraybuffer": + n3 = "uint8array"; + break; + case "base64": + n3 = "string"; + } + try { + this._internalType = n3, this._outputType = t3, this._mimeType = r3, h.checkSupport(n3), this._worker = e3.pipe(new i(n3)), e3.lock(); + } catch (e4) { + this._worker = new s("error"), this._worker.error(e4); + } + } + f.prototype = { accumulate: function(e3) { + return l(this, e3); + }, on: function(e3, t3) { + var r3 = this; + return "data" === e3 ? this._worker.on(e3, function(e4) { + t3.call(r3, e4.data, e4.meta); + }) : this._worker.on(e3, function() { + h.delay(t3, arguments, r3); + }), this; + }, resume: function() { + return h.delay(this._worker.resume, [], this._worker), this; + }, pause: function() { + return this._worker.pause(), this; + }, toNodejsStream: function(e3) { + if (h.checkSupport("nodestream"), "nodebuffer" !== this._outputType) + throw new Error(this._outputType + " is not supported by this method"); + return new o(this, { objectMode: "nodebuffer" !== this._outputType }, e3); + } }, t2.exports = f; + }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e2, t2, r2) { + if (r2.base64 = true, r2.array = true, r2.string = true, r2.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array, r2.nodebuffer = "undefined" != typeof Buffer, r2.uint8array = "undefined" != typeof Uint8Array, "undefined" == typeof ArrayBuffer) + r2.blob = false; + else { + var n2 = new ArrayBuffer(0); + try { + r2.blob = 0 === new Blob([n2], { type: "application/zip" }).size; + } catch (e3) { + try { + var i = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)(); + i.append(n2), r2.blob = 0 === i.getBlob("application/zip").size; + } catch (e4) { + r2.blob = false; + } + } + } + try { + r2.nodestream = !!e2("readable-stream").Readable; + } catch (e3) { + r2.nodestream = false; + } + }, { "readable-stream": 16 }], 31: [function(e2, t2, s) { + for (var o = e2("./utils"), h = e2("./support"), r2 = e2("./nodejsUtils"), n2 = e2("./stream/GenericWorker"), u = new Array(256), i = 0; i < 256; i++) + u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1; + u[254] = u[254] = 1; + function a() { + n2.call(this, "utf-8 decode"), this.leftOver = null; + } + function l() { + n2.call(this, "utf-8 encode"); + } + s.utf8encode = function(e3) { + return h.nodebuffer ? r2.newBufferFrom(e3, "utf-8") : function(e4) { + var t3, r3, n3, i2, s2, a2 = e4.length, o2 = 0; + for (i2 = 0; i2 < a2; i2++) + 55296 == (64512 & (r3 = e4.charCodeAt(i2))) && i2 + 1 < a2 && 56320 == (64512 & (n3 = e4.charCodeAt(i2 + 1))) && (r3 = 65536 + (r3 - 55296 << 10) + (n3 - 56320), i2++), o2 += r3 < 128 ? 1 : r3 < 2048 ? 2 : r3 < 65536 ? 3 : 4; + for (t3 = h.uint8array ? new Uint8Array(o2) : new Array(o2), i2 = s2 = 0; s2 < o2; i2++) + 55296 == (64512 & (r3 = e4.charCodeAt(i2))) && i2 + 1 < a2 && 56320 == (64512 & (n3 = e4.charCodeAt(i2 + 1))) && (r3 = 65536 + (r3 - 55296 << 10) + (n3 - 56320), i2++), r3 < 128 ? t3[s2++] = r3 : (r3 < 2048 ? t3[s2++] = 192 | r3 >>> 6 : (r3 < 65536 ? t3[s2++] = 224 | r3 >>> 12 : (t3[s2++] = 240 | r3 >>> 18, t3[s2++] = 128 | r3 >>> 12 & 63), t3[s2++] = 128 | r3 >>> 6 & 63), t3[s2++] = 128 | 63 & r3); + return t3; + }(e3); + }, s.utf8decode = function(e3) { + return h.nodebuffer ? o.transformTo("nodebuffer", e3).toString("utf-8") : function(e4) { + var t3, r3, n3, i2, s2 = e4.length, a2 = new Array(2 * s2); + for (t3 = r3 = 0; t3 < s2; ) + if ((n3 = e4[t3++]) < 128) + a2[r3++] = n3; + else if (4 < (i2 = u[n3])) + a2[r3++] = 65533, t3 += i2 - 1; + else { + for (n3 &= 2 === i2 ? 31 : 3 === i2 ? 15 : 7; 1 < i2 && t3 < s2; ) + n3 = n3 << 6 | 63 & e4[t3++], i2--; + 1 < i2 ? a2[r3++] = 65533 : n3 < 65536 ? a2[r3++] = n3 : (n3 -= 65536, a2[r3++] = 55296 | n3 >> 10 & 1023, a2[r3++] = 56320 | 1023 & n3); + } + return a2.length !== r3 && (a2.subarray ? a2 = a2.subarray(0, r3) : a2.length = r3), o.applyFromCharCode(a2); + }(e3 = o.transformTo(h.uint8array ? "uint8array" : "array", e3)); + }, o.inherits(a, n2), a.prototype.processChunk = function(e3) { + var t3 = o.transformTo(h.uint8array ? "uint8array" : "array", e3.data); + if (this.leftOver && this.leftOver.length) { + if (h.uint8array) { + var r3 = t3; + (t3 = new Uint8Array(r3.length + this.leftOver.length)).set(this.leftOver, 0), t3.set(r3, this.leftOver.length); + } else + t3 = this.leftOver.concat(t3); + this.leftOver = null; + } + var n3 = function(e4, t4) { + var r4; + for ((t4 = t4 || e4.length) > e4.length && (t4 = e4.length), r4 = t4 - 1; 0 <= r4 && 128 == (192 & e4[r4]); ) + r4--; + return r4 < 0 ? t4 : 0 === r4 ? t4 : r4 + u[e4[r4]] > t4 ? r4 : t4; + }(t3), i2 = t3; + n3 !== t3.length && (h.uint8array ? (i2 = t3.subarray(0, n3), this.leftOver = t3.subarray(n3, t3.length)) : (i2 = t3.slice(0, n3), this.leftOver = t3.slice(n3, t3.length))), this.push({ data: s.utf8decode(i2), meta: e3.meta }); + }, a.prototype.flush = function() { + this.leftOver && this.leftOver.length && (this.push({ data: s.utf8decode(this.leftOver), meta: {} }), this.leftOver = null); + }, s.Utf8DecodeWorker = a, o.inherits(l, n2), l.prototype.processChunk = function(e3) { + this.push({ data: s.utf8encode(e3.data), meta: e3.meta }); + }, s.Utf8EncodeWorker = l; + }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e2, t2, a) { + var o = e2("./support"), h = e2("./base64"), r2 = e2("./nodejsUtils"), u = e2("./external"); + function n2(e3) { + return e3; + } + function l(e3, t3) { + for (var r3 = 0; r3 < e3.length; ++r3) + t3[r3] = 255 & e3.charCodeAt(r3); + return t3; + } + e2("setimmediate"), a.newBlob = function(t3, r3) { + a.checkSupport("blob"); + try { + return new Blob([t3], { type: r3 }); + } catch (e3) { + try { + var n3 = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)(); + return n3.append(t3), n3.getBlob(r3); + } catch (e4) { + throw new Error("Bug : can't construct the Blob."); + } + } + }; + var i = { stringifyByChunk: function(e3, t3, r3) { + var n3 = [], i2 = 0, s2 = e3.length; + if (s2 <= r3) + return String.fromCharCode.apply(null, e3); + for (; i2 < s2; ) + "array" === t3 || "nodebuffer" === t3 ? n3.push(String.fromCharCode.apply(null, e3.slice(i2, Math.min(i2 + r3, s2)))) : n3.push(String.fromCharCode.apply(null, e3.subarray(i2, Math.min(i2 + r3, s2)))), i2 += r3; + return n3.join(""); + }, stringifyByChar: function(e3) { + for (var t3 = "", r3 = 0; r3 < e3.length; r3++) + t3 += String.fromCharCode(e3[r3]); + return t3; + }, applyCanBeUsed: { uint8array: function() { + try { + return o.uint8array && 1 === String.fromCharCode.apply(null, new Uint8Array(1)).length; + } catch (e3) { + return false; + } + }(), nodebuffer: function() { + try { + return o.nodebuffer && 1 === String.fromCharCode.apply(null, r2.allocBuffer(1)).length; + } catch (e3) { + return false; + } + }() } }; + function s(e3) { + var t3 = 65536, r3 = a.getTypeOf(e3), n3 = true; + if ("uint8array" === r3 ? n3 = i.applyCanBeUsed.uint8array : "nodebuffer" === r3 && (n3 = i.applyCanBeUsed.nodebuffer), n3) + for (; 1 < t3; ) + try { + return i.stringifyByChunk(e3, r3, t3); + } catch (e4) { + t3 = Math.floor(t3 / 2); + } + return i.stringifyByChar(e3); + } + function f(e3, t3) { + for (var r3 = 0; r3 < e3.length; r3++) + t3[r3] = e3[r3]; + return t3; + } + a.applyFromCharCode = s; + var c = {}; + c.string = { string: n2, array: function(e3) { + return l(e3, new Array(e3.length)); + }, arraybuffer: function(e3) { + return c.string.uint8array(e3).buffer; + }, uint8array: function(e3) { + return l(e3, new Uint8Array(e3.length)); + }, nodebuffer: function(e3) { + return l(e3, r2.allocBuffer(e3.length)); + } }, c.array = { string: s, array: n2, arraybuffer: function(e3) { + return new Uint8Array(e3).buffer; + }, uint8array: function(e3) { + return new Uint8Array(e3); + }, nodebuffer: function(e3) { + return r2.newBufferFrom(e3); + } }, c.arraybuffer = { string: function(e3) { + return s(new Uint8Array(e3)); + }, array: function(e3) { + return f(new Uint8Array(e3), new Array(e3.byteLength)); + }, arraybuffer: n2, uint8array: function(e3) { + return new Uint8Array(e3); + }, nodebuffer: function(e3) { + return r2.newBufferFrom(new Uint8Array(e3)); + } }, c.uint8array = { string: s, array: function(e3) { + return f(e3, new Array(e3.length)); + }, arraybuffer: function(e3) { + return e3.buffer; + }, uint8array: n2, nodebuffer: function(e3) { + return r2.newBufferFrom(e3); + } }, c.nodebuffer = { string: s, array: function(e3) { + return f(e3, new Array(e3.length)); + }, arraybuffer: function(e3) { + return c.nodebuffer.uint8array(e3).buffer; + }, uint8array: function(e3) { + return f(e3, new Uint8Array(e3.length)); + }, nodebuffer: n2 }, a.transformTo = function(e3, t3) { + if (t3 = t3 || "", !e3) + return t3; + a.checkSupport(e3); + var r3 = a.getTypeOf(t3); + return c[r3][e3](t3); + }, a.resolve = function(e3) { + for (var t3 = e3.split("/"), r3 = [], n3 = 0; n3 < t3.length; n3++) { + var i2 = t3[n3]; + "." === i2 || "" === i2 && 0 !== n3 && n3 !== t3.length - 1 || (".." === i2 ? r3.pop() : r3.push(i2)); + } + return r3.join("/"); + }, a.getTypeOf = function(e3) { + return "string" == typeof e3 ? "string" : "[object Array]" === Object.prototype.toString.call(e3) ? "array" : o.nodebuffer && r2.isBuffer(e3) ? "nodebuffer" : o.uint8array && e3 instanceof Uint8Array ? "uint8array" : o.arraybuffer && e3 instanceof ArrayBuffer ? "arraybuffer" : void 0; + }, a.checkSupport = function(e3) { + if (!o[e3.toLowerCase()]) + throw new Error(e3 + " is not supported by this platform"); + }, a.MAX_VALUE_16BITS = 65535, a.MAX_VALUE_32BITS = -1, a.pretty = function(e3) { + var t3, r3, n3 = ""; + for (r3 = 0; r3 < (e3 || "").length; r3++) + n3 += "\\x" + ((t3 = e3.charCodeAt(r3)) < 16 ? "0" : "") + t3.toString(16).toUpperCase(); + return n3; + }, a.delay = function(e3, t3, r3) { + setImmediate(function() { + e3.apply(r3 || null, t3 || []); + }); + }, a.inherits = function(e3, t3) { + function r3() { + } + r3.prototype = t3.prototype, e3.prototype = new r3(); + }, a.extend = function() { + var e3, t3, r3 = {}; + for (e3 = 0; e3 < arguments.length; e3++) + for (t3 in arguments[e3]) + Object.prototype.hasOwnProperty.call(arguments[e3], t3) && void 0 === r3[t3] && (r3[t3] = arguments[e3][t3]); + return r3; + }, a.prepareContent = function(r3, e3, n3, i2, s2) { + return u.Promise.resolve(e3).then(function(n4) { + return o.blob && (n4 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n4))) && "undefined" != typeof FileReader ? new u.Promise(function(t3, r4) { + var e4 = new FileReader(); + e4.onload = function(e5) { + t3(e5.target.result); + }, e4.onerror = function(e5) { + r4(e5.target.error); + }, e4.readAsArrayBuffer(n4); + }) : n4; + }).then(function(e4) { + var t3 = a.getTypeOf(e4); + return t3 ? ("arraybuffer" === t3 ? e4 = a.transformTo("uint8array", e4) : "string" === t3 && (s2 ? e4 = h.decode(e4) : n3 && true !== i2 && (e4 = function(e5) { + return l(e5, o.uint8array ? new Uint8Array(e5.length) : new Array(e5.length)); + }(e4))), e4) : u.Promise.reject(new Error("Can't read the data of '" + r3 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?")); + }); + }; + }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e2, t2, r2) { + var n2 = e2("./reader/readerFor"), i = e2("./utils"), s = e2("./signature"), a = e2("./zipEntry"), o = e2("./support"); + function h(e3) { + this.files = [], this.loadOptions = e3; + } + h.prototype = { checkSignature: function(e3) { + if (!this.reader.readAndCheckSignature(e3)) { + this.reader.index -= 4; + var t3 = this.reader.readString(4); + throw new Error("Corrupted zip or bug: unexpected signature (" + i.pretty(t3) + ", expected " + i.pretty(e3) + ")"); + } + }, isSignature: function(e3, t3) { + var r3 = this.reader.index; + this.reader.setIndex(e3); + var n3 = this.reader.readString(4) === t3; + return this.reader.setIndex(r3), n3; + }, 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 e3 = this.reader.readData(this.zipCommentLength), t3 = o.uint8array ? "uint8array" : "array", r3 = i.transformTo(t3, e3); + this.zipComment = this.loadOptions.decodeFileName(r3); + }, 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 e3, t3, r3, n3 = this.zip64EndOfCentralSize - 44; 0 < n3; ) + e3 = this.reader.readInt(2), t3 = this.reader.readInt(4), r3 = this.reader.readData(t3), this.zip64ExtensibleData[e3] = { id: e3, length: t3, value: r3 }; + }, 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 e3, t3; + for (e3 = 0; e3 < this.files.length; e3++) + t3 = this.files[e3], this.reader.setIndex(t3.localHeaderOffset), this.checkSignature(s.LOCAL_FILE_HEADER), t3.readLocalPart(this.reader), t3.handleUTF8(), t3.processAttributes(); + }, readCentralDir: function() { + var e3; + for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER); ) + (e3 = new a({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(e3); + 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 e3 = this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END); + if (e3 < 0) + throw !this.isSignature(0, s.LOCAL_FILE_HEADER) ? 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") : new Error("Corrupted zip: can't find end of central directory"); + this.reader.setIndex(e3); + var t3 = e3; + if (this.checkSignature(s.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === i.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i.MAX_VALUE_16BITS || this.centralDirRecords === i.MAX_VALUE_16BITS || this.centralDirSize === i.MAX_VALUE_32BITS || this.centralDirOffset === i.MAX_VALUE_32BITS) { + if (this.zip64 = true, (e3 = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator"); + if (this.reader.setIndex(e3), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, s.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory"); + this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral(); + } + var r3 = this.centralDirOffset + this.centralDirSize; + this.zip64 && (r3 += 20, r3 += 12 + this.zip64EndOfCentralSize); + var n3 = t3 - r3; + if (0 < n3) + this.isSignature(t3, s.CENTRAL_FILE_HEADER) || (this.reader.zero = n3); + else if (n3 < 0) + throw new Error("Corrupted zip: missing " + Math.abs(n3) + " bytes."); + }, prepareReader: function(e3) { + this.reader = n2(e3); + }, load: function(e3) { + this.prepareReader(e3), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles(); + } }, t2.exports = h; + }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e2, t2, r2) { + var n2 = e2("./reader/readerFor"), s = e2("./utils"), i = e2("./compressedObject"), a = e2("./crc32"), o = e2("./utf8"), h = e2("./compressions"), u = e2("./support"); + function l(e3, t3) { + this.options = e3, this.loadOptions = t3; + } + l.prototype = { isEncrypted: function() { + return 1 == (1 & this.bitFlag); + }, useUTF8: function() { + return 2048 == (2048 & this.bitFlag); + }, readLocalPart: function(e3) { + var t3, r3; + if (e3.skip(22), this.fileNameLength = e3.readInt(2), r3 = e3.readInt(2), this.fileName = e3.readData(this.fileNameLength), e3.skip(r3), -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 === (t3 = function(e4) { + for (var t4 in h) + if (Object.prototype.hasOwnProperty.call(h, t4) && h[t4].magic === e4) + return h[t4]; + return null; + }(this.compressionMethod))) + throw new Error("Corrupted zip : compression " + s.pretty(this.compressionMethod) + " unknown (inner file : " + s.transformTo("string", this.fileName) + ")"); + this.decompressed = new i(this.compressedSize, this.uncompressedSize, this.crc32, t3, e3.readData(this.compressedSize)); + }, readCentralPart: function(e3) { + this.versionMadeBy = e3.readInt(2), e3.skip(2), this.bitFlag = e3.readInt(2), this.compressionMethod = e3.readString(2), this.date = e3.readDate(), this.crc32 = e3.readInt(4), this.compressedSize = e3.readInt(4), this.uncompressedSize = e3.readInt(4); + var t3 = e3.readInt(2); + if (this.extraFieldsLength = e3.readInt(2), this.fileCommentLength = e3.readInt(2), this.diskNumberStart = e3.readInt(2), this.internalFileAttributes = e3.readInt(2), this.externalFileAttributes = e3.readInt(4), this.localHeaderOffset = e3.readInt(4), this.isEncrypted()) + throw new Error("Encrypted zip are not supported"); + e3.skip(t3), this.readExtraFields(e3), this.parseZIP64ExtraField(e3), this.fileComment = e3.readData(this.fileCommentLength); + }, processAttributes: function() { + this.unixPermissions = null, this.dosPermissions = null; + var e3 = this.versionMadeBy >> 8; + this.dir = !!(16 & this.externalFileAttributes), 0 == e3 && (this.dosPermissions = 63 & this.externalFileAttributes), 3 == e3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || "/" !== this.fileNameStr.slice(-1) || (this.dir = true); + }, parseZIP64ExtraField: function() { + if (this.extraFields[1]) { + var e3 = n2(this.extraFields[1].value); + this.uncompressedSize === s.MAX_VALUE_32BITS && (this.uncompressedSize = e3.readInt(8)), this.compressedSize === s.MAX_VALUE_32BITS && (this.compressedSize = e3.readInt(8)), this.localHeaderOffset === s.MAX_VALUE_32BITS && (this.localHeaderOffset = e3.readInt(8)), this.diskNumberStart === s.MAX_VALUE_32BITS && (this.diskNumberStart = e3.readInt(4)); + } + }, readExtraFields: function(e3) { + var t3, r3, n3, i2 = e3.index + this.extraFieldsLength; + for (this.extraFields || (this.extraFields = {}); e3.index + 4 < i2; ) + t3 = e3.readInt(2), r3 = e3.readInt(2), n3 = e3.readData(r3), this.extraFields[t3] = { id: t3, length: r3, value: n3 }; + e3.setIndex(i2); + }, handleUTF8: function() { + var e3 = u.uint8array ? "uint8array" : "array"; + if (this.useUTF8()) + this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment); + else { + var t3 = this.findExtraFieldUnicodePath(); + if (null !== t3) + this.fileNameStr = t3; + else { + var r3 = s.transformTo(e3, this.fileName); + this.fileNameStr = this.loadOptions.decodeFileName(r3); + } + var n3 = this.findExtraFieldUnicodeComment(); + if (null !== n3) + this.fileCommentStr = n3; + else { + var i2 = s.transformTo(e3, this.fileComment); + this.fileCommentStr = this.loadOptions.decodeFileName(i2); + } + } + }, findExtraFieldUnicodePath: function() { + var e3 = this.extraFields[28789]; + if (e3) { + var t3 = n2(e3.value); + return 1 !== t3.readInt(1) ? null : a(this.fileName) !== t3.readInt(4) ? null : o.utf8decode(t3.readData(e3.length - 5)); + } + return null; + }, findExtraFieldUnicodeComment: function() { + var e3 = this.extraFields[25461]; + if (e3) { + var t3 = n2(e3.value); + return 1 !== t3.readInt(1) ? null : a(this.fileComment) !== t3.readInt(4) ? null : o.utf8decode(t3.readData(e3.length - 5)); + } + return null; + } }, t2.exports = l; + }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e2, t2, r2) { + function n2(e3, t3, r3) { + this.name = e3, this.dir = r3.dir, this.date = r3.date, this.comment = r3.comment, this.unixPermissions = r3.unixPermissions, this.dosPermissions = r3.dosPermissions, this._data = t3, this._dataBinary = r3.binary, this.options = { compression: r3.compression, compressionOptions: r3.compressionOptions }; + } + var s = e2("./stream/StreamHelper"), i = e2("./stream/DataWorker"), a = e2("./utf8"), o = e2("./compressedObject"), h = e2("./stream/GenericWorker"); + n2.prototype = { internalStream: function(e3) { + var t3 = null, r3 = "string"; + try { + if (!e3) + throw new Error("No output type specified."); + var n3 = "string" === (r3 = e3.toLowerCase()) || "text" === r3; + "binarystring" !== r3 && "text" !== r3 || (r3 = "string"), t3 = this._decompressWorker(); + var i2 = !this._dataBinary; + i2 && !n3 && (t3 = t3.pipe(new a.Utf8EncodeWorker())), !i2 && n3 && (t3 = t3.pipe(new a.Utf8DecodeWorker())); + } catch (e4) { + (t3 = new h("error")).error(e4); + } + return new s(t3, r3, ""); + }, async: function(e3, t3) { + return this.internalStream(e3).accumulate(t3); + }, nodeStream: function(e3, t3) { + return this.internalStream(e3 || "nodebuffer").toNodejsStream(t3); + }, _compressWorker: function(e3, t3) { + if (this._data instanceof o && this._data.compression.magic === e3.magic) + return this._data.getCompressedWorker(); + var r3 = this._decompressWorker(); + return this._dataBinary || (r3 = r3.pipe(new a.Utf8EncodeWorker())), o.createWorkerFrom(r3, e3, t3); + }, _decompressWorker: function() { + return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h ? this._data : new i(this._data); + } }; + for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l = function() { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, f = 0; f < u.length; f++) + n2.prototype[u[f]] = l; + t2.exports = n2; + }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e2, l, t2) { + (function(t3) { + var r2, n2, e3 = t3.MutationObserver || t3.WebKitMutationObserver; + if (e3) { + var i = 0, s = new e3(u), a = t3.document.createTextNode(""); + s.observe(a, { characterData: true }), r2 = function() { + a.data = i = ++i % 2; + }; + } else if (t3.setImmediate || void 0 === t3.MessageChannel) + r2 = "document" in t3 && "onreadystatechange" in t3.document.createElement("script") ? function() { + var e4 = t3.document.createElement("script"); + e4.onreadystatechange = function() { + u(), e4.onreadystatechange = null, e4.parentNode.removeChild(e4), e4 = null; + }, t3.document.documentElement.appendChild(e4); + } : function() { + setTimeout(u, 0); + }; + else { + var o = new t3.MessageChannel(); + o.port1.onmessage = u, r2 = function() { + o.port2.postMessage(0); + }; + } + var h = []; + function u() { + var e4, t4; + n2 = true; + for (var r3 = h.length; r3; ) { + for (t4 = h, h = [], e4 = -1; ++e4 < r3; ) + t4[e4](); + r3 = h.length; + } + n2 = false; + } + l.exports = function(e4) { + 1 !== h.push(e4) || n2 || r2(); + }; + }).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}); + }, {}], 37: [function(e2, t2, r2) { + var i = e2("immediate"); + function u() { + } + var l = {}, s = ["REJECTED"], a = ["FULFILLED"], n2 = ["PENDING"]; + function o(e3) { + if ("function" != typeof e3) + throw new TypeError("resolver must be a function"); + this.state = n2, this.queue = [], this.outcome = void 0, e3 !== u && d(this, e3); + } + function h(e3, t3, r3) { + this.promise = e3, "function" == typeof t3 && (this.onFulfilled = t3, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r3 && (this.onRejected = r3, this.callRejected = this.otherCallRejected); + } + function f(t3, r3, n3) { + i(function() { + var e3; + try { + e3 = r3(n3); + } catch (e4) { + return l.reject(t3, e4); + } + e3 === t3 ? l.reject(t3, new TypeError("Cannot resolve promise with itself")) : l.resolve(t3, e3); + }); + } + function c(e3) { + var t3 = e3 && e3.then; + if (e3 && ("object" == typeof e3 || "function" == typeof e3) && "function" == typeof t3) + return function() { + t3.apply(e3, arguments); + }; + } + function d(t3, e3) { + var r3 = false; + function n3(e4) { + r3 || (r3 = true, l.reject(t3, e4)); + } + function i2(e4) { + r3 || (r3 = true, l.resolve(t3, e4)); + } + var s2 = p(function() { + e3(i2, n3); + }); + "error" === s2.status && n3(s2.value); + } + function p(e3, t3) { + var r3 = {}; + try { + r3.value = e3(t3), r3.status = "success"; + } catch (e4) { + r3.status = "error", r3.value = e4; + } + return r3; + } + (t2.exports = o).prototype.finally = function(t3) { + if ("function" != typeof t3) + return this; + var r3 = this.constructor; + return this.then(function(e3) { + return r3.resolve(t3()).then(function() { + return e3; + }); + }, function(e3) { + return r3.resolve(t3()).then(function() { + throw e3; + }); + }); + }, o.prototype.catch = function(e3) { + return this.then(null, e3); + }, o.prototype.then = function(e3, t3) { + if ("function" != typeof e3 && this.state === a || "function" != typeof t3 && this.state === s) + return this; + var r3 = new this.constructor(u); + this.state !== n2 ? f(r3, this.state === a ? e3 : t3, this.outcome) : this.queue.push(new h(r3, e3, t3)); + return r3; + }, h.prototype.callFulfilled = function(e3) { + l.resolve(this.promise, e3); + }, h.prototype.otherCallFulfilled = function(e3) { + f(this.promise, this.onFulfilled, e3); + }, h.prototype.callRejected = function(e3) { + l.reject(this.promise, e3); + }, h.prototype.otherCallRejected = function(e3) { + f(this.promise, this.onRejected, e3); + }, l.resolve = function(e3, t3) { + var r3 = p(c, t3); + if ("error" === r3.status) + return l.reject(e3, r3.value); + var n3 = r3.value; + if (n3) + d(e3, n3); + else { + e3.state = a, e3.outcome = t3; + for (var i2 = -1, s2 = e3.queue.length; ++i2 < s2; ) + e3.queue[i2].callFulfilled(t3); + } + return e3; + }, l.reject = function(e3, t3) { + e3.state = s, e3.outcome = t3; + for (var r3 = -1, n3 = e3.queue.length; ++r3 < n3; ) + e3.queue[r3].callRejected(t3); + return e3; + }, o.resolve = function(e3) { + if (e3 instanceof this) + return e3; + return l.resolve(new this(u), e3); + }, o.reject = function(e3) { + var t3 = new this(u); + return l.reject(t3, e3); + }, o.all = function(e3) { + var r3 = this; + if ("[object Array]" !== Object.prototype.toString.call(e3)) + return this.reject(new TypeError("must be an array")); + var n3 = e3.length, i2 = false; + if (!n3) + return this.resolve([]); + var s2 = new Array(n3), a2 = 0, t3 = -1, o2 = new this(u); + for (; ++t3 < n3; ) + h2(e3[t3], t3); + return o2; + function h2(e4, t4) { + r3.resolve(e4).then(function(e5) { + s2[t4] = e5, ++a2 !== n3 || i2 || (i2 = true, l.resolve(o2, s2)); + }, function(e5) { + i2 || (i2 = true, l.reject(o2, e5)); + }); + } + }, o.race = function(e3) { + var t3 = this; + if ("[object Array]" !== Object.prototype.toString.call(e3)) + return this.reject(new TypeError("must be an array")); + var r3 = e3.length, n3 = false; + if (!r3) + return this.resolve([]); + var i2 = -1, s2 = new this(u); + for (; ++i2 < r3; ) + a2 = e3[i2], t3.resolve(a2).then(function(e4) { + n3 || (n3 = true, l.resolve(s2, e4)); + }, function(e4) { + n3 || (n3 = true, l.reject(s2, e4)); + }); + var a2; + return s2; + }; + }, { immediate: 36 }], 38: [function(e2, t2, r2) { + var n2 = {}; + (0, e2("./lib/utils/common").assign)(n2, e2("./lib/deflate"), e2("./lib/inflate"), e2("./lib/zlib/constants")), t2.exports = n2; + }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e2, t2, r2) { + var a = e2("./zlib/deflate"), o = e2("./utils/common"), h = e2("./utils/strings"), i = e2("./zlib/messages"), s = e2("./zlib/zstream"), u = Object.prototype.toString, l = 0, f = -1, c = 0, d = 8; + function p(e3) { + if (!(this instanceof p)) + return new p(e3); + this.options = o.assign({ level: f, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c, to: "" }, e3 || {}); + var t3 = this.options; + t3.raw && 0 < t3.windowBits ? t3.windowBits = -t3.windowBits : t3.gzip && 0 < t3.windowBits && t3.windowBits < 16 && (t3.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new s(), this.strm.avail_out = 0; + var r3 = a.deflateInit2(this.strm, t3.level, t3.method, t3.windowBits, t3.memLevel, t3.strategy); + if (r3 !== l) + throw new Error(i[r3]); + if (t3.header && a.deflateSetHeader(this.strm, t3.header), t3.dictionary) { + var n3; + if (n3 = "string" == typeof t3.dictionary ? h.string2buf(t3.dictionary) : "[object ArrayBuffer]" === u.call(t3.dictionary) ? new Uint8Array(t3.dictionary) : t3.dictionary, (r3 = a.deflateSetDictionary(this.strm, n3)) !== l) + throw new Error(i[r3]); + this._dict_set = true; + } + } + function n2(e3, t3) { + var r3 = new p(t3); + if (r3.push(e3, true), r3.err) + throw r3.msg || i[r3.err]; + return r3.result; + } + p.prototype.push = function(e3, t3) { + var r3, n3, i2 = this.strm, s2 = this.options.chunkSize; + if (this.ended) + return false; + n3 = t3 === ~~t3 ? t3 : true === t3 ? 4 : 0, "string" == typeof e3 ? i2.input = h.string2buf(e3) : "[object ArrayBuffer]" === u.call(e3) ? i2.input = new Uint8Array(e3) : i2.input = e3, i2.next_in = 0, i2.avail_in = i2.input.length; + do { + if (0 === i2.avail_out && (i2.output = new o.Buf8(s2), i2.next_out = 0, i2.avail_out = s2), 1 !== (r3 = a.deflate(i2, n3)) && r3 !== l) + return this.onEnd(r3), !(this.ended = true); + 0 !== i2.avail_out && (0 !== i2.avail_in || 4 !== n3 && 2 !== n3) || ("string" === this.options.to ? this.onData(h.buf2binstring(o.shrinkBuf(i2.output, i2.next_out))) : this.onData(o.shrinkBuf(i2.output, i2.next_out))); + } while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r3); + return 4 === n3 ? (r3 = a.deflateEnd(this.strm), this.onEnd(r3), this.ended = true, r3 === l) : 2 !== n3 || (this.onEnd(l), !(i2.avail_out = 0)); + }, p.prototype.onData = function(e3) { + this.chunks.push(e3); + }, p.prototype.onEnd = function(e3) { + e3 === l && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg; + }, r2.Deflate = p, r2.deflate = n2, r2.deflateRaw = function(e3, t3) { + return (t3 = t3 || {}).raw = true, n2(e3, t3); + }, r2.gzip = function(e3, t3) { + return (t3 = t3 || {}).gzip = true, n2(e3, t3); + }; + }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e2, t2, r2) { + var c = e2("./zlib/inflate"), d = e2("./utils/common"), p = e2("./utils/strings"), m = e2("./zlib/constants"), n2 = e2("./zlib/messages"), i = e2("./zlib/zstream"), s = e2("./zlib/gzheader"), _ = Object.prototype.toString; + function a(e3) { + if (!(this instanceof a)) + return new a(e3); + this.options = d.assign({ chunkSize: 16384, windowBits: 0, to: "" }, e3 || {}); + var t3 = this.options; + t3.raw && 0 <= t3.windowBits && t3.windowBits < 16 && (t3.windowBits = -t3.windowBits, 0 === t3.windowBits && (t3.windowBits = -15)), !(0 <= t3.windowBits && t3.windowBits < 16) || e3 && e3.windowBits || (t3.windowBits += 32), 15 < t3.windowBits && t3.windowBits < 48 && 0 == (15 & t3.windowBits) && (t3.windowBits |= 15), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new i(), this.strm.avail_out = 0; + var r3 = c.inflateInit2(this.strm, t3.windowBits); + if (r3 !== m.Z_OK) + throw new Error(n2[r3]); + this.header = new s(), c.inflateGetHeader(this.strm, this.header); + } + function o(e3, t3) { + var r3 = new a(t3); + if (r3.push(e3, true), r3.err) + throw r3.msg || n2[r3.err]; + return r3.result; + } + a.prototype.push = function(e3, t3) { + var r3, n3, i2, s2, a2, o2, h = this.strm, u = this.options.chunkSize, l = this.options.dictionary, f = false; + if (this.ended) + return false; + n3 = t3 === ~~t3 ? t3 : true === t3 ? m.Z_FINISH : m.Z_NO_FLUSH, "string" == typeof e3 ? h.input = p.binstring2buf(e3) : "[object ArrayBuffer]" === _.call(e3) ? h.input = new Uint8Array(e3) : h.input = e3, h.next_in = 0, h.avail_in = h.input.length; + do { + if (0 === h.avail_out && (h.output = new d.Buf8(u), h.next_out = 0, h.avail_out = u), (r3 = c.inflate(h, m.Z_NO_FLUSH)) === m.Z_NEED_DICT && l && (o2 = "string" == typeof l ? p.string2buf(l) : "[object ArrayBuffer]" === _.call(l) ? new Uint8Array(l) : l, r3 = c.inflateSetDictionary(this.strm, o2)), r3 === m.Z_BUF_ERROR && true === f && (r3 = m.Z_OK, f = false), r3 !== m.Z_STREAM_END && r3 !== m.Z_OK) + return this.onEnd(r3), !(this.ended = true); + h.next_out && (0 !== h.avail_out && r3 !== m.Z_STREAM_END && (0 !== h.avail_in || n3 !== m.Z_FINISH && n3 !== m.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h.output, h.next_out), s2 = h.next_out - i2, a2 = p.buf2string(h.output, i2), h.next_out = s2, h.avail_out = u - s2, s2 && d.arraySet(h.output, h.output, i2, s2, 0), this.onData(a2)) : this.onData(d.shrinkBuf(h.output, h.next_out)))), 0 === h.avail_in && 0 === h.avail_out && (f = true); + } while ((0 < h.avail_in || 0 === h.avail_out) && r3 !== m.Z_STREAM_END); + return r3 === m.Z_STREAM_END && (n3 = m.Z_FINISH), n3 === m.Z_FINISH ? (r3 = c.inflateEnd(this.strm), this.onEnd(r3), this.ended = true, r3 === m.Z_OK) : n3 !== m.Z_SYNC_FLUSH || (this.onEnd(m.Z_OK), !(h.avail_out = 0)); + }, a.prototype.onData = function(e3) { + this.chunks.push(e3); + }, a.prototype.onEnd = function(e3) { + e3 === m.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = d.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg; + }, r2.Inflate = a, r2.inflate = o, r2.inflateRaw = function(e3, t3) { + return (t3 = t3 || {}).raw = true, o(e3, t3); + }, r2.ungzip = o; + }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(e2, t2, r2) { + var n2 = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array; + r2.assign = function(e3) { + for (var t3 = Array.prototype.slice.call(arguments, 1); t3.length; ) { + var r3 = t3.shift(); + if (r3) { + if ("object" != typeof r3) + throw new TypeError(r3 + "must be non-object"); + for (var n3 in r3) + r3.hasOwnProperty(n3) && (e3[n3] = r3[n3]); + } + } + return e3; + }, r2.shrinkBuf = function(e3, t3) { + return e3.length === t3 ? e3 : e3.subarray ? e3.subarray(0, t3) : (e3.length = t3, e3); + }; + var i = { arraySet: function(e3, t3, r3, n3, i2) { + if (t3.subarray && e3.subarray) + e3.set(t3.subarray(r3, r3 + n3), i2); + else + for (var s2 = 0; s2 < n3; s2++) + e3[i2 + s2] = t3[r3 + s2]; + }, flattenChunks: function(e3) { + var t3, r3, n3, i2, s2, a; + for (t3 = n3 = 0, r3 = e3.length; t3 < r3; t3++) + n3 += e3[t3].length; + for (a = new Uint8Array(n3), t3 = i2 = 0, r3 = e3.length; t3 < r3; t3++) + s2 = e3[t3], a.set(s2, i2), i2 += s2.length; + return a; + } }, s = { arraySet: function(e3, t3, r3, n3, i2) { + for (var s2 = 0; s2 < n3; s2++) + e3[i2 + s2] = t3[r3 + s2]; + }, flattenChunks: function(e3) { + return [].concat.apply([], e3); + } }; + r2.setTyped = function(e3) { + e3 ? (r2.Buf8 = Uint8Array, r2.Buf16 = Uint16Array, r2.Buf32 = Int32Array, r2.assign(r2, i)) : (r2.Buf8 = Array, r2.Buf16 = Array, r2.Buf32 = Array, r2.assign(r2, s)); + }, r2.setTyped(n2); + }, {}], 42: [function(e2, t2, r2) { + var h = e2("./common"), i = true, s = true; + try { + String.fromCharCode.apply(null, [0]); + } catch (e3) { + i = false; + } + try { + String.fromCharCode.apply(null, new Uint8Array(1)); + } catch (e3) { + s = false; + } + for (var u = new h.Buf8(256), n2 = 0; n2 < 256; n2++) + u[n2] = 252 <= n2 ? 6 : 248 <= n2 ? 5 : 240 <= n2 ? 4 : 224 <= n2 ? 3 : 192 <= n2 ? 2 : 1; + function l(e3, t3) { + if (t3 < 65537 && (e3.subarray && s || !e3.subarray && i)) + return String.fromCharCode.apply(null, h.shrinkBuf(e3, t3)); + for (var r3 = "", n3 = 0; n3 < t3; n3++) + r3 += String.fromCharCode(e3[n3]); + return r3; + } + u[254] = u[254] = 1, r2.string2buf = function(e3) { + var t3, r3, n3, i2, s2, a = e3.length, o = 0; + for (i2 = 0; i2 < a; i2++) + 55296 == (64512 & (r3 = e3.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n3 = e3.charCodeAt(i2 + 1))) && (r3 = 65536 + (r3 - 55296 << 10) + (n3 - 56320), i2++), o += r3 < 128 ? 1 : r3 < 2048 ? 2 : r3 < 65536 ? 3 : 4; + for (t3 = new h.Buf8(o), i2 = s2 = 0; s2 < o; i2++) + 55296 == (64512 & (r3 = e3.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n3 = e3.charCodeAt(i2 + 1))) && (r3 = 65536 + (r3 - 55296 << 10) + (n3 - 56320), i2++), r3 < 128 ? t3[s2++] = r3 : (r3 < 2048 ? t3[s2++] = 192 | r3 >>> 6 : (r3 < 65536 ? t3[s2++] = 224 | r3 >>> 12 : (t3[s2++] = 240 | r3 >>> 18, t3[s2++] = 128 | r3 >>> 12 & 63), t3[s2++] = 128 | r3 >>> 6 & 63), t3[s2++] = 128 | 63 & r3); + return t3; + }, r2.buf2binstring = function(e3) { + return l(e3, e3.length); + }, r2.binstring2buf = function(e3) { + for (var t3 = new h.Buf8(e3.length), r3 = 0, n3 = t3.length; r3 < n3; r3++) + t3[r3] = e3.charCodeAt(r3); + return t3; + }, r2.buf2string = function(e3, t3) { + var r3, n3, i2, s2, a = t3 || e3.length, o = new Array(2 * a); + for (r3 = n3 = 0; r3 < a; ) + if ((i2 = e3[r3++]) < 128) + o[n3++] = i2; + else if (4 < (s2 = u[i2])) + o[n3++] = 65533, r3 += s2 - 1; + else { + for (i2 &= 2 === s2 ? 31 : 3 === s2 ? 15 : 7; 1 < s2 && r3 < a; ) + i2 = i2 << 6 | 63 & e3[r3++], s2--; + 1 < s2 ? o[n3++] = 65533 : i2 < 65536 ? o[n3++] = i2 : (i2 -= 65536, o[n3++] = 55296 | i2 >> 10 & 1023, o[n3++] = 56320 | 1023 & i2); + } + return l(o, n3); + }, r2.utf8border = function(e3, t3) { + var r3; + for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); ) + r3--; + return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u[e3[r3]] > t3 ? r3 : t3; + }; + }, { "./common": 41 }], 43: [function(e2, t2, r2) { + t2.exports = function(e3, t3, r3, n2) { + for (var i = 65535 & e3 | 0, s = e3 >>> 16 & 65535 | 0, a = 0; 0 !== r3; ) { + for (r3 -= a = 2e3 < r3 ? 2e3 : r3; s = s + (i = i + t3[n2++] | 0) | 0, --a; ) + ; + i %= 65521, s %= 65521; + } + return i | s << 16 | 0; + }; + }, {}], 44: [function(e2, t2, r2) { + t2.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(e2, t2, r2) { + var o = function() { + for (var e3, t3 = [], r3 = 0; r3 < 256; r3++) { + e3 = r3; + for (var n2 = 0; n2 < 8; n2++) + e3 = 1 & e3 ? 3988292384 ^ e3 >>> 1 : e3 >>> 1; + t3[r3] = e3; + } + return t3; + }(); + t2.exports = function(e3, t3, r3, n2) { + var i = o, s = n2 + r3; + e3 ^= -1; + for (var a = n2; a < s; a++) + e3 = e3 >>> 8 ^ i[255 & (e3 ^ t3[a])]; + return -1 ^ e3; + }; + }, {}], 46: [function(e2, t2, r2) { + var h, c = e2("../utils/common"), u = e2("./trees"), d = e2("./adler32"), p = e2("./crc32"), n2 = e2("./messages"), l = 0, f = 4, m = 0, _ = -2, g = -1, b = 4, i = 2, v = 8, y = 9, s = 286, a = 30, o = 19, w = 2 * s + 1, k = 15, x = 3, S = 258, z = S + x + 1, C = 42, E = 113, A = 1, I = 2, O = 3, B = 4; + function R(e3, t3) { + return e3.msg = n2[t3], t3; + } + function T(e3) { + return (e3 << 1) - (4 < e3 ? 9 : 0); + } + function D(e3) { + for (var t3 = e3.length; 0 <= --t3; ) + e3[t3] = 0; + } + function F(e3) { + var t3 = e3.state, r3 = t3.pending; + r3 > e3.avail_out && (r3 = e3.avail_out), 0 !== r3 && (c.arraySet(e3.output, t3.pending_buf, t3.pending_out, r3, e3.next_out), e3.next_out += r3, t3.pending_out += r3, e3.total_out += r3, e3.avail_out -= r3, t3.pending -= r3, 0 === t3.pending && (t3.pending_out = 0)); + } + function N(e3, t3) { + u._tr_flush_block(e3, 0 <= e3.block_start ? e3.block_start : -1, e3.strstart - e3.block_start, t3), e3.block_start = e3.strstart, F(e3.strm); + } + function U(e3, t3) { + e3.pending_buf[e3.pending++] = t3; + } + function P(e3, t3) { + e3.pending_buf[e3.pending++] = t3 >>> 8 & 255, e3.pending_buf[e3.pending++] = 255 & t3; + } + function L(e3, t3) { + var r3, n3, i2 = e3.max_chain_length, s2 = e3.strstart, a2 = e3.prev_length, o2 = e3.nice_match, h2 = e3.strstart > e3.w_size - z ? e3.strstart - (e3.w_size - z) : 0, u2 = e3.window, l2 = e3.w_mask, f2 = e3.prev, c2 = e3.strstart + S, d2 = u2[s2 + a2 - 1], p2 = u2[s2 + a2]; + e3.prev_length >= e3.good_match && (i2 >>= 2), o2 > e3.lookahead && (o2 = e3.lookahead); + do { + if (u2[(r3 = t3) + a2] === p2 && u2[r3 + a2 - 1] === d2 && u2[r3] === u2[s2] && u2[++r3] === u2[s2 + 1]) { + s2 += 2, r3++; + do { + } while (u2[++s2] === u2[++r3] && u2[++s2] === u2[++r3] && u2[++s2] === u2[++r3] && u2[++s2] === u2[++r3] && u2[++s2] === u2[++r3] && u2[++s2] === u2[++r3] && u2[++s2] === u2[++r3] && u2[++s2] === u2[++r3] && s2 < c2); + if (n3 = S - (c2 - s2), s2 = c2 - S, a2 < n3) { + if (e3.match_start = t3, o2 <= (a2 = n3)) + break; + d2 = u2[s2 + a2 - 1], p2 = u2[s2 + a2]; + } + } + } while ((t3 = f2[t3 & l2]) > h2 && 0 != --i2); + return a2 <= e3.lookahead ? a2 : e3.lookahead; + } + function j(e3) { + var t3, r3, n3, i2, s2, a2, o2, h2, u2, l2, f2 = e3.w_size; + do { + if (i2 = e3.window_size - e3.lookahead - e3.strstart, e3.strstart >= f2 + (f2 - z)) { + for (c.arraySet(e3.window, e3.window, f2, f2, 0), e3.match_start -= f2, e3.strstart -= f2, e3.block_start -= f2, t3 = r3 = e3.hash_size; n3 = e3.head[--t3], e3.head[t3] = f2 <= n3 ? n3 - f2 : 0, --r3; ) + ; + for (t3 = r3 = f2; n3 = e3.prev[--t3], e3.prev[t3] = f2 <= n3 ? n3 - f2 : 0, --r3; ) + ; + i2 += f2; + } + if (0 === e3.strm.avail_in) + break; + if (a2 = e3.strm, o2 = e3.window, h2 = e3.strstart + e3.lookahead, u2 = i2, l2 = void 0, l2 = a2.avail_in, u2 < l2 && (l2 = u2), r3 = 0 === l2 ? 0 : (a2.avail_in -= l2, c.arraySet(o2, a2.input, a2.next_in, l2, h2), 1 === a2.state.wrap ? a2.adler = d(a2.adler, o2, l2, h2) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l2, h2)), a2.next_in += l2, a2.total_in += l2, l2), e3.lookahead += r3, e3.lookahead + e3.insert >= x) + for (s2 = e3.strstart - e3.insert, e3.ins_h = e3.window[s2], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[s2 + 1]) & e3.hash_mask; e3.insert && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[s2 + x - 1]) & e3.hash_mask, e3.prev[s2 & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = s2, s2++, e3.insert--, !(e3.lookahead + e3.insert < x)); ) + ; + } while (e3.lookahead < z && 0 !== e3.strm.avail_in); + } + function Z(e3, t3) { + for (var r3, n3; ; ) { + if (e3.lookahead < z) { + if (j(e3), e3.lookahead < z && t3 === l) + return A; + if (0 === e3.lookahead) + break; + } + if (r3 = 0, e3.lookahead >= x && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + x - 1]) & e3.hash_mask, r3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), 0 !== r3 && e3.strstart - r3 <= e3.w_size - z && (e3.match_length = L(e3, r3)), e3.match_length >= x) + if (n3 = u._tr_tally(e3, e3.strstart - e3.match_start, e3.match_length - x), e3.lookahead -= e3.match_length, e3.match_length <= e3.max_lazy_match && e3.lookahead >= x) { + for (e3.match_length--; e3.strstart++, e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + x - 1]) & e3.hash_mask, r3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart, 0 != --e3.match_length; ) + ; + e3.strstart++; + } else + e3.strstart += e3.match_length, e3.match_length = 0, e3.ins_h = e3.window[e3.strstart], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + 1]) & e3.hash_mask; + else + n3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++; + if (n3 && (N(e3, false), 0 === e3.strm.avail_out)) + return A; + } + return e3.insert = e3.strstart < x - 1 ? e3.strstart : x - 1, t3 === f ? (N(e3, true), 0 === e3.strm.avail_out ? O : B) : e3.last_lit && (N(e3, false), 0 === e3.strm.avail_out) ? A : I; + } + function W(e3, t3) { + for (var r3, n3, i2; ; ) { + if (e3.lookahead < z) { + if (j(e3), e3.lookahead < z && t3 === l) + return A; + if (0 === e3.lookahead) + break; + } + if (r3 = 0, e3.lookahead >= x && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + x - 1]) & e3.hash_mask, r3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), e3.prev_length = e3.match_length, e3.prev_match = e3.match_start, e3.match_length = x - 1, 0 !== r3 && e3.prev_length < e3.max_lazy_match && e3.strstart - r3 <= e3.w_size - z && (e3.match_length = L(e3, r3), e3.match_length <= 5 && (1 === e3.strategy || e3.match_length === x && 4096 < e3.strstart - e3.match_start) && (e3.match_length = x - 1)), e3.prev_length >= x && e3.match_length <= e3.prev_length) { + for (i2 = e3.strstart + e3.lookahead - x, n3 = u._tr_tally(e3, e3.strstart - 1 - e3.prev_match, e3.prev_length - x), e3.lookahead -= e3.prev_length - 1, e3.prev_length -= 2; ++e3.strstart <= i2 && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + x - 1]) & e3.hash_mask, r3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), 0 != --e3.prev_length; ) + ; + if (e3.match_available = 0, e3.match_length = x - 1, e3.strstart++, n3 && (N(e3, false), 0 === e3.strm.avail_out)) + return A; + } else if (e3.match_available) { + if ((n3 = u._tr_tally(e3, 0, e3.window[e3.strstart - 1])) && N(e3, false), e3.strstart++, e3.lookahead--, 0 === e3.strm.avail_out) + return A; + } else + e3.match_available = 1, e3.strstart++, e3.lookahead--; + } + return e3.match_available && (n3 = u._tr_tally(e3, 0, e3.window[e3.strstart - 1]), e3.match_available = 0), e3.insert = e3.strstart < x - 1 ? e3.strstart : x - 1, t3 === f ? (N(e3, true), 0 === e3.strm.avail_out ? O : B) : e3.last_lit && (N(e3, false), 0 === e3.strm.avail_out) ? A : I; + } + function M(e3, t3, r3, n3, i2) { + this.good_length = e3, this.max_lazy = t3, this.nice_length = r3, this.max_chain = n3, this.func = i2; + } + function H() { + 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 = v, 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 c.Buf16(2 * w), this.dyn_dtree = new c.Buf16(2 * (2 * a + 1)), this.bl_tree = new c.Buf16(2 * (2 * o + 1)), D(this.dyn_ltree), D(this.dyn_dtree), D(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new c.Buf16(k + 1), this.heap = new c.Buf16(2 * s + 1), D(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new c.Buf16(2 * s + 1), D(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 G(e3) { + var t3; + return e3 && e3.state ? (e3.total_in = e3.total_out = 0, e3.data_type = i, (t3 = e3.state).pending = 0, t3.pending_out = 0, t3.wrap < 0 && (t3.wrap = -t3.wrap), t3.status = t3.wrap ? C : E, e3.adler = 2 === t3.wrap ? 0 : 1, t3.last_flush = l, u._tr_init(t3), m) : R(e3, _); + } + function K(e3) { + var t3 = G(e3); + return t3 === m && function(e4) { + e4.window_size = 2 * e4.w_size, D(e4.head), e4.max_lazy_match = h[e4.level].max_lazy, e4.good_match = h[e4.level].good_length, e4.nice_match = h[e4.level].nice_length, e4.max_chain_length = h[e4.level].max_chain, e4.strstart = 0, e4.block_start = 0, e4.lookahead = 0, e4.insert = 0, e4.match_length = e4.prev_length = x - 1, e4.match_available = 0, e4.ins_h = 0; + }(e3.state), t3; + } + function Y(e3, t3, r3, n3, i2, s2) { + if (!e3) + return _; + var a2 = 1; + if (t3 === g && (t3 = 6), n3 < 0 ? (a2 = 0, n3 = -n3) : 15 < n3 && (a2 = 2, n3 -= 16), i2 < 1 || y < i2 || r3 !== v || n3 < 8 || 15 < n3 || t3 < 0 || 9 < t3 || s2 < 0 || b < s2) + return R(e3, _); + 8 === n3 && (n3 = 9); + var o2 = new H(); + return (e3.state = o2).strm = e3, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n3, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c.Buf8(2 * o2.w_size), o2.head = new c.Buf16(o2.hash_size), o2.prev = new c.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t3, o2.strategy = s2, o2.method = r3, K(e3); + } + h = [new M(0, 0, 0, 0, function(e3, t3) { + var r3 = 65535; + for (r3 > e3.pending_buf_size - 5 && (r3 = e3.pending_buf_size - 5); ; ) { + if (e3.lookahead <= 1) { + if (j(e3), 0 === e3.lookahead && t3 === l) + return A; + if (0 === e3.lookahead) + break; + } + e3.strstart += e3.lookahead, e3.lookahead = 0; + var n3 = e3.block_start + r3; + if ((0 === e3.strstart || e3.strstart >= n3) && (e3.lookahead = e3.strstart - n3, e3.strstart = n3, N(e3, false), 0 === e3.strm.avail_out)) + return A; + if (e3.strstart - e3.block_start >= e3.w_size - z && (N(e3, false), 0 === e3.strm.avail_out)) + return A; + } + return e3.insert = 0, t3 === f ? (N(e3, true), 0 === e3.strm.avail_out ? O : B) : (e3.strstart > e3.block_start && (N(e3, false), e3.strm.avail_out), A); + }), new M(4, 4, 8, 4, Z), new M(4, 5, 16, 8, Z), new M(4, 6, 32, 32, Z), new M(4, 4, 16, 16, W), new M(8, 16, 32, 32, W), new M(8, 16, 128, 128, W), new M(8, 32, 128, 256, W), new M(32, 128, 258, 1024, W), new M(32, 258, 258, 4096, W)], r2.deflateInit = function(e3, t3) { + return Y(e3, t3, v, 15, 8, 0); + }, r2.deflateInit2 = Y, r2.deflateReset = K, r2.deflateResetKeep = G, r2.deflateSetHeader = function(e3, t3) { + return e3 && e3.state ? 2 !== e3.state.wrap ? _ : (e3.state.gzhead = t3, m) : _; + }, r2.deflate = function(e3, t3) { + var r3, n3, i2, s2; + if (!e3 || !e3.state || 5 < t3 || t3 < 0) + return e3 ? R(e3, _) : _; + if (n3 = e3.state, !e3.output || !e3.input && 0 !== e3.avail_in || 666 === n3.status && t3 !== f) + return R(e3, 0 === e3.avail_out ? -5 : _); + if (n3.strm = e3, r3 = n3.last_flush, n3.last_flush = t3, n3.status === C) + if (2 === n3.wrap) + e3.adler = 0, U(n3, 31), U(n3, 139), U(n3, 8), n3.gzhead ? (U(n3, (n3.gzhead.text ? 1 : 0) + (n3.gzhead.hcrc ? 2 : 0) + (n3.gzhead.extra ? 4 : 0) + (n3.gzhead.name ? 8 : 0) + (n3.gzhead.comment ? 16 : 0)), U(n3, 255 & n3.gzhead.time), U(n3, n3.gzhead.time >> 8 & 255), U(n3, n3.gzhead.time >> 16 & 255), U(n3, n3.gzhead.time >> 24 & 255), U(n3, 9 === n3.level ? 2 : 2 <= n3.strategy || n3.level < 2 ? 4 : 0), U(n3, 255 & n3.gzhead.os), n3.gzhead.extra && n3.gzhead.extra.length && (U(n3, 255 & n3.gzhead.extra.length), U(n3, n3.gzhead.extra.length >> 8 & 255)), n3.gzhead.hcrc && (e3.adler = p(e3.adler, n3.pending_buf, n3.pending, 0)), n3.gzindex = 0, n3.status = 69) : (U(n3, 0), U(n3, 0), U(n3, 0), U(n3, 0), U(n3, 0), U(n3, 9 === n3.level ? 2 : 2 <= n3.strategy || n3.level < 2 ? 4 : 0), U(n3, 3), n3.status = E); + else { + var a2 = v + (n3.w_bits - 8 << 4) << 8; + a2 |= (2 <= n3.strategy || n3.level < 2 ? 0 : n3.level < 6 ? 1 : 6 === n3.level ? 2 : 3) << 6, 0 !== n3.strstart && (a2 |= 32), a2 += 31 - a2 % 31, n3.status = E, P(n3, a2), 0 !== n3.strstart && (P(n3, e3.adler >>> 16), P(n3, 65535 & e3.adler)), e3.adler = 1; + } + if (69 === n3.status) + if (n3.gzhead.extra) { + for (i2 = n3.pending; n3.gzindex < (65535 & n3.gzhead.extra.length) && (n3.pending !== n3.pending_buf_size || (n3.gzhead.hcrc && n3.pending > i2 && (e3.adler = p(e3.adler, n3.pending_buf, n3.pending - i2, i2)), F(e3), i2 = n3.pending, n3.pending !== n3.pending_buf_size)); ) + U(n3, 255 & n3.gzhead.extra[n3.gzindex]), n3.gzindex++; + n3.gzhead.hcrc && n3.pending > i2 && (e3.adler = p(e3.adler, n3.pending_buf, n3.pending - i2, i2)), n3.gzindex === n3.gzhead.extra.length && (n3.gzindex = 0, n3.status = 73); + } else + n3.status = 73; + if (73 === n3.status) + if (n3.gzhead.name) { + i2 = n3.pending; + do { + if (n3.pending === n3.pending_buf_size && (n3.gzhead.hcrc && n3.pending > i2 && (e3.adler = p(e3.adler, n3.pending_buf, n3.pending - i2, i2)), F(e3), i2 = n3.pending, n3.pending === n3.pending_buf_size)) { + s2 = 1; + break; + } + s2 = n3.gzindex < n3.gzhead.name.length ? 255 & n3.gzhead.name.charCodeAt(n3.gzindex++) : 0, U(n3, s2); + } while (0 !== s2); + n3.gzhead.hcrc && n3.pending > i2 && (e3.adler = p(e3.adler, n3.pending_buf, n3.pending - i2, i2)), 0 === s2 && (n3.gzindex = 0, n3.status = 91); + } else + n3.status = 91; + if (91 === n3.status) + if (n3.gzhead.comment) { + i2 = n3.pending; + do { + if (n3.pending === n3.pending_buf_size && (n3.gzhead.hcrc && n3.pending > i2 && (e3.adler = p(e3.adler, n3.pending_buf, n3.pending - i2, i2)), F(e3), i2 = n3.pending, n3.pending === n3.pending_buf_size)) { + s2 = 1; + break; + } + s2 = n3.gzindex < n3.gzhead.comment.length ? 255 & n3.gzhead.comment.charCodeAt(n3.gzindex++) : 0, U(n3, s2); + } while (0 !== s2); + n3.gzhead.hcrc && n3.pending > i2 && (e3.adler = p(e3.adler, n3.pending_buf, n3.pending - i2, i2)), 0 === s2 && (n3.status = 103); + } else + n3.status = 103; + if (103 === n3.status && (n3.gzhead.hcrc ? (n3.pending + 2 > n3.pending_buf_size && F(e3), n3.pending + 2 <= n3.pending_buf_size && (U(n3, 255 & e3.adler), U(n3, e3.adler >> 8 & 255), e3.adler = 0, n3.status = E)) : n3.status = E), 0 !== n3.pending) { + if (F(e3), 0 === e3.avail_out) + return n3.last_flush = -1, m; + } else if (0 === e3.avail_in && T(t3) <= T(r3) && t3 !== f) + return R(e3, -5); + if (666 === n3.status && 0 !== e3.avail_in) + return R(e3, -5); + if (0 !== e3.avail_in || 0 !== n3.lookahead || t3 !== l && 666 !== n3.status) { + var o2 = 2 === n3.strategy ? function(e4, t4) { + for (var r4; ; ) { + if (0 === e4.lookahead && (j(e4), 0 === e4.lookahead)) { + if (t4 === l) + return A; + break; + } + if (e4.match_length = 0, r4 = u._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++, r4 && (N(e4, false), 0 === e4.strm.avail_out)) + return A; + } + return e4.insert = 0, t4 === f ? (N(e4, true), 0 === e4.strm.avail_out ? O : B) : e4.last_lit && (N(e4, false), 0 === e4.strm.avail_out) ? A : I; + }(n3, t3) : 3 === n3.strategy ? function(e4, t4) { + for (var r4, n4, i3, s3, a3 = e4.window; ; ) { + if (e4.lookahead <= S) { + if (j(e4), e4.lookahead <= S && t4 === l) + return A; + if (0 === e4.lookahead) + break; + } + if (e4.match_length = 0, e4.lookahead >= x && 0 < e4.strstart && (n4 = a3[i3 = e4.strstart - 1]) === a3[++i3] && n4 === a3[++i3] && n4 === a3[++i3]) { + s3 = e4.strstart + S; + do { + } while (n4 === a3[++i3] && n4 === a3[++i3] && n4 === a3[++i3] && n4 === a3[++i3] && n4 === a3[++i3] && n4 === a3[++i3] && n4 === a3[++i3] && n4 === a3[++i3] && i3 < s3); + e4.match_length = S - (s3 - i3), e4.match_length > e4.lookahead && (e4.match_length = e4.lookahead); + } + if (e4.match_length >= x ? (r4 = u._tr_tally(e4, 1, e4.match_length - x), e4.lookahead -= e4.match_length, e4.strstart += e4.match_length, e4.match_length = 0) : (r4 = u._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++), r4 && (N(e4, false), 0 === e4.strm.avail_out)) + return A; + } + return e4.insert = 0, t4 === f ? (N(e4, true), 0 === e4.strm.avail_out ? O : B) : e4.last_lit && (N(e4, false), 0 === e4.strm.avail_out) ? A : I; + }(n3, t3) : h[n3.level].func(n3, t3); + if (o2 !== O && o2 !== B || (n3.status = 666), o2 === A || o2 === O) + return 0 === e3.avail_out && (n3.last_flush = -1), m; + if (o2 === I && (1 === t3 ? u._tr_align(n3) : 5 !== t3 && (u._tr_stored_block(n3, 0, 0, false), 3 === t3 && (D(n3.head), 0 === n3.lookahead && (n3.strstart = 0, n3.block_start = 0, n3.insert = 0))), F(e3), 0 === e3.avail_out)) + return n3.last_flush = -1, m; + } + return t3 !== f ? m : n3.wrap <= 0 ? 1 : (2 === n3.wrap ? (U(n3, 255 & e3.adler), U(n3, e3.adler >> 8 & 255), U(n3, e3.adler >> 16 & 255), U(n3, e3.adler >> 24 & 255), U(n3, 255 & e3.total_in), U(n3, e3.total_in >> 8 & 255), U(n3, e3.total_in >> 16 & 255), U(n3, e3.total_in >> 24 & 255)) : (P(n3, e3.adler >>> 16), P(n3, 65535 & e3.adler)), F(e3), 0 < n3.wrap && (n3.wrap = -n3.wrap), 0 !== n3.pending ? m : 1); + }, r2.deflateEnd = function(e3) { + var t3; + return e3 && e3.state ? (t3 = e3.state.status) !== C && 69 !== t3 && 73 !== t3 && 91 !== t3 && 103 !== t3 && t3 !== E && 666 !== t3 ? R(e3, _) : (e3.state = null, t3 === E ? R(e3, -3) : m) : _; + }, r2.deflateSetDictionary = function(e3, t3) { + var r3, n3, i2, s2, a2, o2, h2, u2, l2 = t3.length; + if (!e3 || !e3.state) + return _; + if (2 === (s2 = (r3 = e3.state).wrap) || 1 === s2 && r3.status !== C || r3.lookahead) + return _; + for (1 === s2 && (e3.adler = d(e3.adler, t3, l2, 0)), r3.wrap = 0, l2 >= r3.w_size && (0 === s2 && (D(r3.head), r3.strstart = 0, r3.block_start = 0, r3.insert = 0), u2 = new c.Buf8(r3.w_size), c.arraySet(u2, t3, l2 - r3.w_size, r3.w_size, 0), t3 = u2, l2 = r3.w_size), a2 = e3.avail_in, o2 = e3.next_in, h2 = e3.input, e3.avail_in = l2, e3.next_in = 0, e3.input = t3, j(r3); r3.lookahead >= x; ) { + for (n3 = r3.strstart, i2 = r3.lookahead - (x - 1); r3.ins_h = (r3.ins_h << r3.hash_shift ^ r3.window[n3 + x - 1]) & r3.hash_mask, r3.prev[n3 & r3.w_mask] = r3.head[r3.ins_h], r3.head[r3.ins_h] = n3, n3++, --i2; ) + ; + r3.strstart = n3, r3.lookahead = x - 1, j(r3); + } + return r3.strstart += r3.lookahead, r3.block_start = r3.strstart, r3.insert = r3.lookahead, r3.lookahead = 0, r3.match_length = r3.prev_length = x - 1, r3.match_available = 0, e3.next_in = o2, e3.input = h2, e3.avail_in = a2, r3.wrap = s2, m; + }, r2.deflateInfo = "pako deflate (from Nodeca project)"; + }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e2, t2, r2) { + t2.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 = false; + }; + }, {}], 48: [function(e2, t2, r2) { + t2.exports = function(e3, t3) { + var r3, n2, i, s, a, o, h, u, l, f, c, d, p, m, _, g, b, v, y, w, k, x, S, z, C; + r3 = e3.state, n2 = e3.next_in, z = e3.input, i = n2 + (e3.avail_in - 5), s = e3.next_out, C = e3.output, a = s - (t3 - e3.avail_out), o = s + (e3.avail_out - 257), h = r3.dmax, u = r3.wsize, l = r3.whave, f = r3.wnext, c = r3.window, d = r3.hold, p = r3.bits, m = r3.lencode, _ = r3.distcode, g = (1 << r3.lenbits) - 1, b = (1 << r3.distbits) - 1; + e: + do { + p < 15 && (d += z[n2++] << p, p += 8, d += z[n2++] << p, p += 8), v = m[d & g]; + t: + for (; ; ) { + if (d >>>= y = v >>> 24, p -= y, 0 === (y = v >>> 16 & 255)) + C[s++] = 65535 & v; + else { + if (!(16 & y)) { + if (0 == (64 & y)) { + v = m[(65535 & v) + (d & (1 << y) - 1)]; + continue t; + } + if (32 & y) { + r3.mode = 12; + break e; + } + e3.msg = "invalid literal/length code", r3.mode = 30; + break e; + } + w = 65535 & v, (y &= 15) && (p < y && (d += z[n2++] << p, p += 8), w += d & (1 << y) - 1, d >>>= y, p -= y), p < 15 && (d += z[n2++] << p, p += 8, d += z[n2++] << p, p += 8), v = _[d & b]; + r: + for (; ; ) { + if (d >>>= y = v >>> 24, p -= y, !(16 & (y = v >>> 16 & 255))) { + if (0 == (64 & y)) { + v = _[(65535 & v) + (d & (1 << y) - 1)]; + continue r; + } + e3.msg = "invalid distance code", r3.mode = 30; + break e; + } + if (k = 65535 & v, p < (y &= 15) && (d += z[n2++] << p, (p += 8) < y && (d += z[n2++] << p, p += 8)), h < (k += d & (1 << y) - 1)) { + e3.msg = "invalid distance too far back", r3.mode = 30; + break e; + } + if (d >>>= y, p -= y, (y = s - a) < k) { + if (l < (y = k - y) && r3.sane) { + e3.msg = "invalid distance too far back", r3.mode = 30; + break e; + } + if (S = c, (x = 0) === f) { + if (x += u - y, y < w) { + for (w -= y; C[s++] = c[x++], --y; ) + ; + x = s - k, S = C; + } + } else if (f < y) { + if (x += u + f - y, (y -= f) < w) { + for (w -= y; C[s++] = c[x++], --y; ) + ; + if (x = 0, f < w) { + for (w -= y = f; C[s++] = c[x++], --y; ) + ; + x = s - k, S = C; + } + } + } else if (x += f - y, y < w) { + for (w -= y; C[s++] = c[x++], --y; ) + ; + x = s - k, S = C; + } + for (; 2 < w; ) + C[s++] = S[x++], C[s++] = S[x++], C[s++] = S[x++], w -= 3; + w && (C[s++] = S[x++], 1 < w && (C[s++] = S[x++])); + } else { + for (x = s - k; C[s++] = C[x++], C[s++] = C[x++], C[s++] = C[x++], 2 < (w -= 3); ) + ; + w && (C[s++] = C[x++], 1 < w && (C[s++] = C[x++])); + } + break; + } + } + break; + } + } while (n2 < i && s < o); + n2 -= w = p >> 3, d &= (1 << (p -= w << 3)) - 1, e3.next_in = n2, e3.next_out = s, e3.avail_in = n2 < i ? i - n2 + 5 : 5 - (n2 - i), e3.avail_out = s < o ? o - s + 257 : 257 - (s - o), r3.hold = d, r3.bits = p; + }; + }, {}], 49: [function(e2, t2, r2) { + var I = e2("../utils/common"), O = e2("./adler32"), B = e2("./crc32"), R = e2("./inffast"), T = e2("./inftrees"), D = 1, F = 2, N = 0, U = -2, P = 1, n2 = 852, i = 592; + function L(e3) { + return (e3 >>> 24 & 255) + (e3 >>> 8 & 65280) + ((65280 & e3) << 8) + ((255 & e3) << 24); + } + function s() { + this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, 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 a(e3) { + var t3; + return e3 && e3.state ? (t3 = e3.state, e3.total_in = e3.total_out = t3.total = 0, e3.msg = "", t3.wrap && (e3.adler = 1 & t3.wrap), t3.mode = P, t3.last = 0, t3.havedict = 0, t3.dmax = 32768, t3.head = null, t3.hold = 0, t3.bits = 0, t3.lencode = t3.lendyn = new I.Buf32(n2), t3.distcode = t3.distdyn = new I.Buf32(i), t3.sane = 1, t3.back = -1, N) : U; + } + function o(e3) { + var t3; + return e3 && e3.state ? ((t3 = e3.state).wsize = 0, t3.whave = 0, t3.wnext = 0, a(e3)) : U; + } + function h(e3, t3) { + var r3, n3; + return e3 && e3.state ? (n3 = e3.state, t3 < 0 ? (r3 = 0, t3 = -t3) : (r3 = 1 + (t3 >> 4), t3 < 48 && (t3 &= 15)), t3 && (t3 < 8 || 15 < t3) ? U : (null !== n3.window && n3.wbits !== t3 && (n3.window = null), n3.wrap = r3, n3.wbits = t3, o(e3))) : U; + } + function u(e3, t3) { + var r3, n3; + return e3 ? (n3 = new s(), (e3.state = n3).window = null, (r3 = h(e3, t3)) !== N && (e3.state = null), r3) : U; + } + var l, f, c = true; + function j(e3) { + if (c) { + var t3; + for (l = new I.Buf32(512), f = new I.Buf32(32), t3 = 0; t3 < 144; ) + e3.lens[t3++] = 8; + for (; t3 < 256; ) + e3.lens[t3++] = 9; + for (; t3 < 280; ) + e3.lens[t3++] = 7; + for (; t3 < 288; ) + e3.lens[t3++] = 8; + for (T(D, e3.lens, 0, 288, l, 0, e3.work, { bits: 9 }), t3 = 0; t3 < 32; ) + e3.lens[t3++] = 5; + T(F, e3.lens, 0, 32, f, 0, e3.work, { bits: 5 }), c = false; + } + e3.lencode = l, e3.lenbits = 9, e3.distcode = f, e3.distbits = 5; + } + function Z(e3, t3, r3, n3) { + var i2, s2 = e3.state; + return null === s2.window && (s2.wsize = 1 << s2.wbits, s2.wnext = 0, s2.whave = 0, s2.window = new I.Buf8(s2.wsize)), n3 >= s2.wsize ? (I.arraySet(s2.window, t3, r3 - s2.wsize, s2.wsize, 0), s2.wnext = 0, s2.whave = s2.wsize) : (n3 < (i2 = s2.wsize - s2.wnext) && (i2 = n3), I.arraySet(s2.window, t3, r3 - n3, i2, s2.wnext), (n3 -= i2) ? (I.arraySet(s2.window, t3, r3 - n3, n3, 0), s2.wnext = n3, s2.whave = s2.wsize) : (s2.wnext += i2, s2.wnext === s2.wsize && (s2.wnext = 0), s2.whave < s2.wsize && (s2.whave += i2))), 0; + } + r2.inflateReset = o, r2.inflateReset2 = h, r2.inflateResetKeep = a, r2.inflateInit = function(e3) { + return u(e3, 15); + }, r2.inflateInit2 = u, r2.inflate = function(e3, t3) { + var r3, n3, i2, s2, a2, o2, h2, u2, l2, f2, c2, d, p, m, _, g, b, v, y, w, k, x, S, z, C = 0, E = new I.Buf8(4), A = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; + if (!e3 || !e3.state || !e3.output || !e3.input && 0 !== e3.avail_in) + return U; + 12 === (r3 = e3.state).mode && (r3.mode = 13), a2 = e3.next_out, i2 = e3.output, h2 = e3.avail_out, s2 = e3.next_in, n3 = e3.input, o2 = e3.avail_in, u2 = r3.hold, l2 = r3.bits, f2 = o2, c2 = h2, x = N; + e: + for (; ; ) + switch (r3.mode) { + case P: + if (0 === r3.wrap) { + r3.mode = 13; + break; + } + for (; l2 < 16; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if (2 & r3.wrap && 35615 === u2) { + E[r3.check = 0] = 255 & u2, E[1] = u2 >>> 8 & 255, r3.check = B(r3.check, E, 2, 0), l2 = u2 = 0, r3.mode = 2; + break; + } + if (r3.flags = 0, r3.head && (r3.head.done = false), !(1 & r3.wrap) || (((255 & u2) << 8) + (u2 >> 8)) % 31) { + e3.msg = "incorrect header check", r3.mode = 30; + break; + } + if (8 != (15 & u2)) { + e3.msg = "unknown compression method", r3.mode = 30; + break; + } + if (l2 -= 4, k = 8 + (15 & (u2 >>>= 4)), 0 === r3.wbits) + r3.wbits = k; + else if (k > r3.wbits) { + e3.msg = "invalid window size", r3.mode = 30; + break; + } + r3.dmax = 1 << k, e3.adler = r3.check = 1, r3.mode = 512 & u2 ? 10 : 12, l2 = u2 = 0; + break; + case 2: + for (; l2 < 16; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if (r3.flags = u2, 8 != (255 & r3.flags)) { + e3.msg = "unknown compression method", r3.mode = 30; + break; + } + if (57344 & r3.flags) { + e3.msg = "unknown header flags set", r3.mode = 30; + break; + } + r3.head && (r3.head.text = u2 >> 8 & 1), 512 & r3.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, r3.check = B(r3.check, E, 2, 0)), l2 = u2 = 0, r3.mode = 3; + case 3: + for (; l2 < 32; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + r3.head && (r3.head.time = u2), 512 & r3.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, E[2] = u2 >>> 16 & 255, E[3] = u2 >>> 24 & 255, r3.check = B(r3.check, E, 4, 0)), l2 = u2 = 0, r3.mode = 4; + case 4: + for (; l2 < 16; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + r3.head && (r3.head.xflags = 255 & u2, r3.head.os = u2 >> 8), 512 & r3.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, r3.check = B(r3.check, E, 2, 0)), l2 = u2 = 0, r3.mode = 5; + case 5: + if (1024 & r3.flags) { + for (; l2 < 16; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + r3.length = u2, r3.head && (r3.head.extra_len = u2), 512 & r3.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, r3.check = B(r3.check, E, 2, 0)), l2 = u2 = 0; + } else + r3.head && (r3.head.extra = null); + r3.mode = 6; + case 6: + if (1024 & r3.flags && (o2 < (d = r3.length) && (d = o2), d && (r3.head && (k = r3.head.extra_len - r3.length, r3.head.extra || (r3.head.extra = new Array(r3.head.extra_len)), I.arraySet(r3.head.extra, n3, s2, d, k)), 512 & r3.flags && (r3.check = B(r3.check, n3, d, s2)), o2 -= d, s2 += d, r3.length -= d), r3.length)) + break e; + r3.length = 0, r3.mode = 7; + case 7: + if (2048 & r3.flags) { + if (0 === o2) + break e; + for (d = 0; k = n3[s2 + d++], r3.head && k && r3.length < 65536 && (r3.head.name += String.fromCharCode(k)), k && d < o2; ) + ; + if (512 & r3.flags && (r3.check = B(r3.check, n3, d, s2)), o2 -= d, s2 += d, k) + break e; + } else + r3.head && (r3.head.name = null); + r3.length = 0, r3.mode = 8; + case 8: + if (4096 & r3.flags) { + if (0 === o2) + break e; + for (d = 0; k = n3[s2 + d++], r3.head && k && r3.length < 65536 && (r3.head.comment += String.fromCharCode(k)), k && d < o2; ) + ; + if (512 & r3.flags && (r3.check = B(r3.check, n3, d, s2)), o2 -= d, s2 += d, k) + break e; + } else + r3.head && (r3.head.comment = null); + r3.mode = 9; + case 9: + if (512 & r3.flags) { + for (; l2 < 16; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if (u2 !== (65535 & r3.check)) { + e3.msg = "header crc mismatch", r3.mode = 30; + break; + } + l2 = u2 = 0; + } + r3.head && (r3.head.hcrc = r3.flags >> 9 & 1, r3.head.done = true), e3.adler = r3.check = 0, r3.mode = 12; + break; + case 10: + for (; l2 < 32; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + e3.adler = r3.check = L(u2), l2 = u2 = 0, r3.mode = 11; + case 11: + if (0 === r3.havedict) + return e3.next_out = a2, e3.avail_out = h2, e3.next_in = s2, e3.avail_in = o2, r3.hold = u2, r3.bits = l2, 2; + e3.adler = r3.check = 1, r3.mode = 12; + case 12: + if (5 === t3 || 6 === t3) + break e; + case 13: + if (r3.last) { + u2 >>>= 7 & l2, l2 -= 7 & l2, r3.mode = 27; + break; + } + for (; l2 < 3; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + switch (r3.last = 1 & u2, l2 -= 1, 3 & (u2 >>>= 1)) { + case 0: + r3.mode = 14; + break; + case 1: + if (j(r3), r3.mode = 20, 6 !== t3) + break; + u2 >>>= 2, l2 -= 2; + break e; + case 2: + r3.mode = 17; + break; + case 3: + e3.msg = "invalid block type", r3.mode = 30; + } + u2 >>>= 2, l2 -= 2; + break; + case 14: + for (u2 >>>= 7 & l2, l2 -= 7 & l2; l2 < 32; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if ((65535 & u2) != (u2 >>> 16 ^ 65535)) { + e3.msg = "invalid stored block lengths", r3.mode = 30; + break; + } + if (r3.length = 65535 & u2, l2 = u2 = 0, r3.mode = 15, 6 === t3) + break e; + case 15: + r3.mode = 16; + case 16: + if (d = r3.length) { + if (o2 < d && (d = o2), h2 < d && (d = h2), 0 === d) + break e; + I.arraySet(i2, n3, s2, d, a2), o2 -= d, s2 += d, h2 -= d, a2 += d, r3.length -= d; + break; + } + r3.mode = 12; + break; + case 17: + for (; l2 < 14; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if (r3.nlen = 257 + (31 & u2), u2 >>>= 5, l2 -= 5, r3.ndist = 1 + (31 & u2), u2 >>>= 5, l2 -= 5, r3.ncode = 4 + (15 & u2), u2 >>>= 4, l2 -= 4, 286 < r3.nlen || 30 < r3.ndist) { + e3.msg = "too many length or distance symbols", r3.mode = 30; + break; + } + r3.have = 0, r3.mode = 18; + case 18: + for (; r3.have < r3.ncode; ) { + for (; l2 < 3; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + r3.lens[A[r3.have++]] = 7 & u2, u2 >>>= 3, l2 -= 3; + } + for (; r3.have < 19; ) + r3.lens[A[r3.have++]] = 0; + if (r3.lencode = r3.lendyn, r3.lenbits = 7, S = { bits: r3.lenbits }, x = T(0, r3.lens, 0, 19, r3.lencode, 0, r3.work, S), r3.lenbits = S.bits, x) { + e3.msg = "invalid code lengths set", r3.mode = 30; + break; + } + r3.have = 0, r3.mode = 19; + case 19: + for (; r3.have < r3.nlen + r3.ndist; ) { + for (; g = (C = r3.lencode[u2 & (1 << r3.lenbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l2); ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if (b < 16) + u2 >>>= _, l2 -= _, r3.lens[r3.have++] = b; + else { + if (16 === b) { + for (z = _ + 2; l2 < z; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if (u2 >>>= _, l2 -= _, 0 === r3.have) { + e3.msg = "invalid bit length repeat", r3.mode = 30; + break; + } + k = r3.lens[r3.have - 1], d = 3 + (3 & u2), u2 >>>= 2, l2 -= 2; + } else if (17 === b) { + for (z = _ + 3; l2 < z; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + l2 -= _, k = 0, d = 3 + (7 & (u2 >>>= _)), u2 >>>= 3, l2 -= 3; + } else { + for (z = _ + 7; l2 < z; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + l2 -= _, k = 0, d = 11 + (127 & (u2 >>>= _)), u2 >>>= 7, l2 -= 7; + } + if (r3.have + d > r3.nlen + r3.ndist) { + e3.msg = "invalid bit length repeat", r3.mode = 30; + break; + } + for (; d--; ) + r3.lens[r3.have++] = k; + } + } + if (30 === r3.mode) + break; + if (0 === r3.lens[256]) { + e3.msg = "invalid code -- missing end-of-block", r3.mode = 30; + break; + } + if (r3.lenbits = 9, S = { bits: r3.lenbits }, x = T(D, r3.lens, 0, r3.nlen, r3.lencode, 0, r3.work, S), r3.lenbits = S.bits, x) { + e3.msg = "invalid literal/lengths set", r3.mode = 30; + break; + } + if (r3.distbits = 6, r3.distcode = r3.distdyn, S = { bits: r3.distbits }, x = T(F, r3.lens, r3.nlen, r3.ndist, r3.distcode, 0, r3.work, S), r3.distbits = S.bits, x) { + e3.msg = "invalid distances set", r3.mode = 30; + break; + } + if (r3.mode = 20, 6 === t3) + break e; + case 20: + r3.mode = 21; + case 21: + if (6 <= o2 && 258 <= h2) { + e3.next_out = a2, e3.avail_out = h2, e3.next_in = s2, e3.avail_in = o2, r3.hold = u2, r3.bits = l2, R(e3, c2), a2 = e3.next_out, i2 = e3.output, h2 = e3.avail_out, s2 = e3.next_in, n3 = e3.input, o2 = e3.avail_in, u2 = r3.hold, l2 = r3.bits, 12 === r3.mode && (r3.back = -1); + break; + } + for (r3.back = 0; g = (C = r3.lencode[u2 & (1 << r3.lenbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l2); ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if (g && 0 == (240 & g)) { + for (v = _, y = g, w = b; g = (C = r3.lencode[w + ((u2 & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b = 65535 & C, !(v + (_ = C >>> 24) <= l2); ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + u2 >>>= v, l2 -= v, r3.back += v; + } + if (u2 >>>= _, l2 -= _, r3.back += _, r3.length = b, 0 === g) { + r3.mode = 26; + break; + } + if (32 & g) { + r3.back = -1, r3.mode = 12; + break; + } + if (64 & g) { + e3.msg = "invalid literal/length code", r3.mode = 30; + break; + } + r3.extra = 15 & g, r3.mode = 22; + case 22: + if (r3.extra) { + for (z = r3.extra; l2 < z; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + r3.length += u2 & (1 << r3.extra) - 1, u2 >>>= r3.extra, l2 -= r3.extra, r3.back += r3.extra; + } + r3.was = r3.length, r3.mode = 23; + case 23: + for (; g = (C = r3.distcode[u2 & (1 << r3.distbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l2); ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if (0 == (240 & g)) { + for (v = _, y = g, w = b; g = (C = r3.distcode[w + ((u2 & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b = 65535 & C, !(v + (_ = C >>> 24) <= l2); ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + u2 >>>= v, l2 -= v, r3.back += v; + } + if (u2 >>>= _, l2 -= _, r3.back += _, 64 & g) { + e3.msg = "invalid distance code", r3.mode = 30; + break; + } + r3.offset = b, r3.extra = 15 & g, r3.mode = 24; + case 24: + if (r3.extra) { + for (z = r3.extra; l2 < z; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + r3.offset += u2 & (1 << r3.extra) - 1, u2 >>>= r3.extra, l2 -= r3.extra, r3.back += r3.extra; + } + if (r3.offset > r3.dmax) { + e3.msg = "invalid distance too far back", r3.mode = 30; + break; + } + r3.mode = 25; + case 25: + if (0 === h2) + break e; + if (d = c2 - h2, r3.offset > d) { + if ((d = r3.offset - d) > r3.whave && r3.sane) { + e3.msg = "invalid distance too far back", r3.mode = 30; + break; + } + p = d > r3.wnext ? (d -= r3.wnext, r3.wsize - d) : r3.wnext - d, d > r3.length && (d = r3.length), m = r3.window; + } else + m = i2, p = a2 - r3.offset, d = r3.length; + for (h2 < d && (d = h2), h2 -= d, r3.length -= d; i2[a2++] = m[p++], --d; ) + ; + 0 === r3.length && (r3.mode = 21); + break; + case 26: + if (0 === h2) + break e; + i2[a2++] = r3.length, h2--, r3.mode = 21; + break; + case 27: + if (r3.wrap) { + for (; l2 < 32; ) { + if (0 === o2) + break e; + o2--, u2 |= n3[s2++] << l2, l2 += 8; + } + if (c2 -= h2, e3.total_out += c2, r3.total += c2, c2 && (e3.adler = r3.check = r3.flags ? B(r3.check, i2, c2, a2 - c2) : O(r3.check, i2, c2, a2 - c2)), c2 = h2, (r3.flags ? u2 : L(u2)) !== r3.check) { + e3.msg = "incorrect data check", r3.mode = 30; + break; + } + l2 = u2 = 0; + } + r3.mode = 28; + case 28: + if (r3.wrap && r3.flags) { + for (; l2 < 32; ) { + if (0 === o2) + break e; + o2--, u2 += n3[s2++] << l2, l2 += 8; + } + if (u2 !== (4294967295 & r3.total)) { + e3.msg = "incorrect length check", r3.mode = 30; + break; + } + l2 = u2 = 0; + } + r3.mode = 29; + case 29: + x = 1; + break e; + case 30: + x = -3; + break e; + case 31: + return -4; + case 32: + default: + return U; + } + return e3.next_out = a2, e3.avail_out = h2, e3.next_in = s2, e3.avail_in = o2, r3.hold = u2, r3.bits = l2, (r3.wsize || c2 !== e3.avail_out && r3.mode < 30 && (r3.mode < 27 || 4 !== t3)) && Z(e3, e3.output, e3.next_out, c2 - e3.avail_out) ? (r3.mode = 31, -4) : (f2 -= e3.avail_in, c2 -= e3.avail_out, e3.total_in += f2, e3.total_out += c2, r3.total += c2, r3.wrap && c2 && (e3.adler = r3.check = r3.flags ? B(r3.check, i2, c2, e3.next_out - c2) : O(r3.check, i2, c2, e3.next_out - c2)), e3.data_type = r3.bits + (r3.last ? 64 : 0) + (12 === r3.mode ? 128 : 0) + (20 === r3.mode || 15 === r3.mode ? 256 : 0), (0 == f2 && 0 === c2 || 4 === t3) && x === N && (x = -5), x); + }, r2.inflateEnd = function(e3) { + if (!e3 || !e3.state) + return U; + var t3 = e3.state; + return t3.window && (t3.window = null), e3.state = null, N; + }, r2.inflateGetHeader = function(e3, t3) { + var r3; + return e3 && e3.state ? 0 == (2 & (r3 = e3.state).wrap) ? U : ((r3.head = t3).done = false, N) : U; + }, r2.inflateSetDictionary = function(e3, t3) { + var r3, n3 = t3.length; + return e3 && e3.state ? 0 !== (r3 = e3.state).wrap && 11 !== r3.mode ? U : 11 === r3.mode && O(1, t3, n3, 0) !== r3.check ? -3 : Z(e3, t3, n3, n3) ? (r3.mode = 31, -4) : (r3.havedict = 1, N) : U; + }, r2.inflateInfo = "pako inflate (from Nodeca project)"; + }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e2, t2, r2) { + var D = e2("../utils/common"), F = [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], U = [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], P = [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]; + t2.exports = function(e3, t3, r3, n2, i, s, a, o) { + var h, u, l, f, c, d, p, m, _, g = o.bits, b = 0, v = 0, y = 0, w = 0, k = 0, x = 0, S = 0, z = 0, C = 0, E = 0, A = null, I = 0, O = new D.Buf16(16), B = new D.Buf16(16), R = null, T = 0; + for (b = 0; b <= 15; b++) + O[b] = 0; + for (v = 0; v < n2; v++) + O[t3[r3 + v]]++; + for (k = g, w = 15; 1 <= w && 0 === O[w]; w--) + ; + if (w < k && (k = w), 0 === w) + return i[s++] = 20971520, i[s++] = 20971520, o.bits = 1, 0; + for (y = 1; y < w && 0 === O[y]; y++) + ; + for (k < y && (k = y), b = z = 1; b <= 15; b++) + if (z <<= 1, (z -= O[b]) < 0) + return -1; + if (0 < z && (0 === e3 || 1 !== w)) + return -1; + for (B[1] = 0, b = 1; b < 15; b++) + B[b + 1] = B[b] + O[b]; + for (v = 0; v < n2; v++) + 0 !== t3[r3 + v] && (a[B[t3[r3 + v]]++] = v); + if (d = 0 === e3 ? (A = R = a, 19) : 1 === e3 ? (A = F, I -= 257, R = N, T -= 257, 256) : (A = U, R = P, -1), b = y, c = s, S = v = E = 0, l = -1, f = (C = 1 << (x = k)) - 1, 1 === e3 && 852 < C || 2 === e3 && 592 < C) + return 1; + for (; ; ) { + for (p = b - S, _ = a[v] < d ? (m = 0, a[v]) : a[v] > d ? (m = R[T + a[v]], A[I + a[v]]) : (m = 96, 0), h = 1 << b - S, y = u = 1 << x; i[c + (E >> S) + (u -= h)] = p << 24 | m << 16 | _ | 0, 0 !== u; ) + ; + for (h = 1 << b - 1; E & h; ) + h >>= 1; + if (0 !== h ? (E &= h - 1, E += h) : E = 0, v++, 0 == --O[b]) { + if (b === w) + break; + b = t3[r3 + a[v]]; + } + if (k < b && (E & f) !== l) { + for (0 === S && (S = k), c += y, z = 1 << (x = b - S); x + S < w && !((z -= O[x + S]) <= 0); ) + x++, z <<= 1; + if (C += 1 << x, 1 === e3 && 852 < C || 2 === e3 && 592 < C) + return 1; + i[l = E & f] = k << 24 | x << 16 | c - s | 0; + } + } + return 0 !== E && (i[c + E] = b - S << 24 | 64 << 16 | 0), o.bits = k, 0; + }; + }, { "../utils/common": 41 }], 51: [function(e2, t2, r2) { + t2.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(e2, t2, r2) { + var i = e2("../utils/common"), o = 0, h = 1; + function n2(e3) { + for (var t3 = e3.length; 0 <= --t3; ) + e3[t3] = 0; + } + var s = 0, a = 29, u = 256, l = u + 1 + a, f = 30, c = 19, _ = 2 * l + 1, g = 15, d = 16, p = 7, m = 256, b = 16, v = 17, y = 18, w = [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], k = [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], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z = new Array(2 * (l + 2)); + n2(z); + var C = new Array(2 * f); + n2(C); + var E = new Array(512); + n2(E); + var A = new Array(256); + n2(A); + var I = new Array(a); + n2(I); + var O, B, R, T = new Array(f); + function D(e3, t3, r3, n3, i2) { + this.static_tree = e3, this.extra_bits = t3, this.extra_base = r3, this.elems = n3, this.max_length = i2, this.has_stree = e3 && e3.length; + } + function F(e3, t3) { + this.dyn_tree = e3, this.max_code = 0, this.stat_desc = t3; + } + function N(e3) { + return e3 < 256 ? E[e3] : E[256 + (e3 >>> 7)]; + } + function U(e3, t3) { + e3.pending_buf[e3.pending++] = 255 & t3, e3.pending_buf[e3.pending++] = t3 >>> 8 & 255; + } + function P(e3, t3, r3) { + e3.bi_valid > d - r3 ? (e3.bi_buf |= t3 << e3.bi_valid & 65535, U(e3, e3.bi_buf), e3.bi_buf = t3 >> d - e3.bi_valid, e3.bi_valid += r3 - d) : (e3.bi_buf |= t3 << e3.bi_valid & 65535, e3.bi_valid += r3); + } + function L(e3, t3, r3) { + P(e3, r3[2 * t3], r3[2 * t3 + 1]); + } + function j(e3, t3) { + for (var r3 = 0; r3 |= 1 & e3, e3 >>>= 1, r3 <<= 1, 0 < --t3; ) + ; + return r3 >>> 1; + } + function Z(e3, t3, r3) { + var n3, i2, s2 = new Array(g + 1), a2 = 0; + for (n3 = 1; n3 <= g; n3++) + s2[n3] = a2 = a2 + r3[n3 - 1] << 1; + for (i2 = 0; i2 <= t3; i2++) { + var o2 = e3[2 * i2 + 1]; + 0 !== o2 && (e3[2 * i2] = j(s2[o2]++, o2)); + } + } + function W(e3) { + var t3; + for (t3 = 0; t3 < l; t3++) + e3.dyn_ltree[2 * t3] = 0; + for (t3 = 0; t3 < f; t3++) + e3.dyn_dtree[2 * t3] = 0; + for (t3 = 0; t3 < c; t3++) + e3.bl_tree[2 * t3] = 0; + e3.dyn_ltree[2 * m] = 1, e3.opt_len = e3.static_len = 0, e3.last_lit = e3.matches = 0; + } + function M(e3) { + 8 < e3.bi_valid ? U(e3, e3.bi_buf) : 0 < e3.bi_valid && (e3.pending_buf[e3.pending++] = e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0; + } + function H(e3, t3, r3, n3) { + var i2 = 2 * t3, s2 = 2 * r3; + return e3[i2] < e3[s2] || e3[i2] === e3[s2] && n3[t3] <= n3[r3]; + } + function G(e3, t3, r3) { + for (var n3 = e3.heap[r3], i2 = r3 << 1; i2 <= e3.heap_len && (i2 < e3.heap_len && H(t3, e3.heap[i2 + 1], e3.heap[i2], e3.depth) && i2++, !H(t3, n3, e3.heap[i2], e3.depth)); ) + e3.heap[r3] = e3.heap[i2], r3 = i2, i2 <<= 1; + e3.heap[r3] = n3; + } + function K(e3, t3, r3) { + var n3, i2, s2, a2, o2 = 0; + if (0 !== e3.last_lit) + for (; n3 = e3.pending_buf[e3.d_buf + 2 * o2] << 8 | e3.pending_buf[e3.d_buf + 2 * o2 + 1], i2 = e3.pending_buf[e3.l_buf + o2], o2++, 0 === n3 ? L(e3, i2, t3) : (L(e3, (s2 = A[i2]) + u + 1, t3), 0 !== (a2 = w[s2]) && P(e3, i2 -= I[s2], a2), L(e3, s2 = N(--n3), r3), 0 !== (a2 = k[s2]) && P(e3, n3 -= T[s2], a2)), o2 < e3.last_lit; ) + ; + L(e3, m, t3); + } + function Y(e3, t3) { + var r3, n3, i2, s2 = t3.dyn_tree, a2 = t3.stat_desc.static_tree, o2 = t3.stat_desc.has_stree, h2 = t3.stat_desc.elems, u2 = -1; + for (e3.heap_len = 0, e3.heap_max = _, r3 = 0; r3 < h2; r3++) + 0 !== s2[2 * r3] ? (e3.heap[++e3.heap_len] = u2 = r3, e3.depth[r3] = 0) : s2[2 * r3 + 1] = 0; + for (; e3.heap_len < 2; ) + s2[2 * (i2 = e3.heap[++e3.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e3.depth[i2] = 0, e3.opt_len--, o2 && (e3.static_len -= a2[2 * i2 + 1]); + for (t3.max_code = u2, r3 = e3.heap_len >> 1; 1 <= r3; r3--) + G(e3, s2, r3); + for (i2 = h2; r3 = e3.heap[1], e3.heap[1] = e3.heap[e3.heap_len--], G(e3, s2, 1), n3 = e3.heap[1], e3.heap[--e3.heap_max] = r3, e3.heap[--e3.heap_max] = n3, s2[2 * i2] = s2[2 * r3] + s2[2 * n3], e3.depth[i2] = (e3.depth[r3] >= e3.depth[n3] ? e3.depth[r3] : e3.depth[n3]) + 1, s2[2 * r3 + 1] = s2[2 * n3 + 1] = i2, e3.heap[1] = i2++, G(e3, s2, 1), 2 <= e3.heap_len; ) + ; + e3.heap[--e3.heap_max] = e3.heap[1], function(e4, t4) { + var r4, n4, i3, s3, a3, o3, h3 = t4.dyn_tree, u3 = t4.max_code, l2 = t4.stat_desc.static_tree, f2 = t4.stat_desc.has_stree, c2 = t4.stat_desc.extra_bits, d2 = t4.stat_desc.extra_base, p2 = t4.stat_desc.max_length, m2 = 0; + for (s3 = 0; s3 <= g; s3++) + e4.bl_count[s3] = 0; + for (h3[2 * e4.heap[e4.heap_max] + 1] = 0, r4 = e4.heap_max + 1; r4 < _; r4++) + p2 < (s3 = h3[2 * h3[2 * (n4 = e4.heap[r4]) + 1] + 1] + 1) && (s3 = p2, m2++), h3[2 * n4 + 1] = s3, u3 < n4 || (e4.bl_count[s3]++, a3 = 0, d2 <= n4 && (a3 = c2[n4 - d2]), o3 = h3[2 * n4], e4.opt_len += o3 * (s3 + a3), f2 && (e4.static_len += o3 * (l2[2 * n4 + 1] + a3))); + if (0 !== m2) { + do { + for (s3 = p2 - 1; 0 === e4.bl_count[s3]; ) + s3--; + e4.bl_count[s3]--, e4.bl_count[s3 + 1] += 2, e4.bl_count[p2]--, m2 -= 2; + } while (0 < m2); + for (s3 = p2; 0 !== s3; s3--) + for (n4 = e4.bl_count[s3]; 0 !== n4; ) + u3 < (i3 = e4.heap[--r4]) || (h3[2 * i3 + 1] !== s3 && (e4.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n4--); + } + }(e3, t3), Z(s2, u2, e3.bl_count); + } + function X(e3, t3, r3) { + var n3, i2, s2 = -1, a2 = t3[1], o2 = 0, h2 = 7, u2 = 4; + for (0 === a2 && (h2 = 138, u2 = 3), t3[2 * (r3 + 1) + 1] = 65535, n3 = 0; n3 <= r3; n3++) + i2 = a2, a2 = t3[2 * (n3 + 1) + 1], ++o2 < h2 && i2 === a2 || (o2 < u2 ? e3.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s2 && e3.bl_tree[2 * i2]++, e3.bl_tree[2 * b]++) : o2 <= 10 ? e3.bl_tree[2 * v]++ : e3.bl_tree[2 * y]++, s2 = i2, u2 = (o2 = 0) === a2 ? (h2 = 138, 3) : i2 === a2 ? (h2 = 6, 3) : (h2 = 7, 4)); + } + function V(e3, t3, r3) { + var n3, i2, s2 = -1, a2 = t3[1], o2 = 0, h2 = 7, u2 = 4; + for (0 === a2 && (h2 = 138, u2 = 3), n3 = 0; n3 <= r3; n3++) + if (i2 = a2, a2 = t3[2 * (n3 + 1) + 1], !(++o2 < h2 && i2 === a2)) { + if (o2 < u2) + for (; L(e3, i2, e3.bl_tree), 0 != --o2; ) + ; + else + 0 !== i2 ? (i2 !== s2 && (L(e3, i2, e3.bl_tree), o2--), L(e3, b, e3.bl_tree), P(e3, o2 - 3, 2)) : o2 <= 10 ? (L(e3, v, e3.bl_tree), P(e3, o2 - 3, 3)) : (L(e3, y, e3.bl_tree), P(e3, o2 - 11, 7)); + s2 = i2, u2 = (o2 = 0) === a2 ? (h2 = 138, 3) : i2 === a2 ? (h2 = 6, 3) : (h2 = 7, 4); + } + } + n2(T); + var q = false; + function J(e3, t3, r3, n3) { + P(e3, (s << 1) + (n3 ? 1 : 0), 3), function(e4, t4, r4, n4) { + M(e4), n4 && (U(e4, r4), U(e4, ~r4)), i.arraySet(e4.pending_buf, e4.window, t4, r4, e4.pending), e4.pending += r4; + }(e3, t3, r3, true); + } + r2._tr_init = function(e3) { + q || (function() { + var e4, t3, r3, n3, i2, s2 = new Array(g + 1); + for (n3 = r3 = 0; n3 < a - 1; n3++) + for (I[n3] = r3, e4 = 0; e4 < 1 << w[n3]; e4++) + A[r3++] = n3; + for (A[r3 - 1] = n3, n3 = i2 = 0; n3 < 16; n3++) + for (T[n3] = i2, e4 = 0; e4 < 1 << k[n3]; e4++) + E[i2++] = n3; + for (i2 >>= 7; n3 < f; n3++) + for (T[n3] = i2 << 7, e4 = 0; e4 < 1 << k[n3] - 7; e4++) + E[256 + i2++] = n3; + for (t3 = 0; t3 <= g; t3++) + s2[t3] = 0; + for (e4 = 0; e4 <= 143; ) + z[2 * e4 + 1] = 8, e4++, s2[8]++; + for (; e4 <= 255; ) + z[2 * e4 + 1] = 9, e4++, s2[9]++; + for (; e4 <= 279; ) + z[2 * e4 + 1] = 7, e4++, s2[7]++; + for (; e4 <= 287; ) + z[2 * e4 + 1] = 8, e4++, s2[8]++; + for (Z(z, l + 1, s2), e4 = 0; e4 < f; e4++) + C[2 * e4 + 1] = 5, C[2 * e4] = j(e4, 5); + O = new D(z, w, u + 1, l, g), B = new D(C, k, 0, f, g), R = new D(new Array(0), x, 0, c, p); + }(), q = true), e3.l_desc = new F(e3.dyn_ltree, O), e3.d_desc = new F(e3.dyn_dtree, B), e3.bl_desc = new F(e3.bl_tree, R), e3.bi_buf = 0, e3.bi_valid = 0, W(e3); + }, r2._tr_stored_block = J, r2._tr_flush_block = function(e3, t3, r3, n3) { + var i2, s2, a2 = 0; + 0 < e3.level ? (2 === e3.strm.data_type && (e3.strm.data_type = function(e4) { + var t4, r4 = 4093624447; + for (t4 = 0; t4 <= 31; t4++, r4 >>>= 1) + if (1 & r4 && 0 !== e4.dyn_ltree[2 * t4]) + return o; + if (0 !== e4.dyn_ltree[18] || 0 !== e4.dyn_ltree[20] || 0 !== e4.dyn_ltree[26]) + return h; + for (t4 = 32; t4 < u; t4++) + if (0 !== e4.dyn_ltree[2 * t4]) + return h; + return o; + }(e3)), Y(e3, e3.l_desc), Y(e3, e3.d_desc), a2 = function(e4) { + var t4; + for (X(e4, e4.dyn_ltree, e4.l_desc.max_code), X(e4, e4.dyn_dtree, e4.d_desc.max_code), Y(e4, e4.bl_desc), t4 = c - 1; 3 <= t4 && 0 === e4.bl_tree[2 * S[t4] + 1]; t4--) + ; + return e4.opt_len += 3 * (t4 + 1) + 5 + 5 + 4, t4; + }(e3), i2 = e3.opt_len + 3 + 7 >>> 3, (s2 = e3.static_len + 3 + 7 >>> 3) <= i2 && (i2 = s2)) : i2 = s2 = r3 + 5, r3 + 4 <= i2 && -1 !== t3 ? J(e3, t3, r3, n3) : 4 === e3.strategy || s2 === i2 ? (P(e3, 2 + (n3 ? 1 : 0), 3), K(e3, z, C)) : (P(e3, 4 + (n3 ? 1 : 0), 3), function(e4, t4, r4, n4) { + var i3; + for (P(e4, t4 - 257, 5), P(e4, r4 - 1, 5), P(e4, n4 - 4, 4), i3 = 0; i3 < n4; i3++) + P(e4, e4.bl_tree[2 * S[i3] + 1], 3); + V(e4, e4.dyn_ltree, t4 - 1), V(e4, e4.dyn_dtree, r4 - 1); + }(e3, e3.l_desc.max_code + 1, e3.d_desc.max_code + 1, a2 + 1), K(e3, e3.dyn_ltree, e3.dyn_dtree)), W(e3), n3 && M(e3); + }, r2._tr_tally = function(e3, t3, r3) { + return e3.pending_buf[e3.d_buf + 2 * e3.last_lit] = t3 >>> 8 & 255, e3.pending_buf[e3.d_buf + 2 * e3.last_lit + 1] = 255 & t3, e3.pending_buf[e3.l_buf + e3.last_lit] = 255 & r3, e3.last_lit++, 0 === t3 ? e3.dyn_ltree[2 * r3]++ : (e3.matches++, t3--, e3.dyn_ltree[2 * (A[r3] + u + 1)]++, e3.dyn_dtree[2 * N(t3)]++), e3.last_lit === e3.lit_bufsize - 1; + }, r2._tr_align = function(e3) { + P(e3, 2, 3), L(e3, m, z), function(e4) { + 16 === e4.bi_valid ? (U(e4, e4.bi_buf), e4.bi_buf = 0, e4.bi_valid = 0) : 8 <= e4.bi_valid && (e4.pending_buf[e4.pending++] = 255 & e4.bi_buf, e4.bi_buf >>= 8, e4.bi_valid -= 8); + }(e3); + }; + }, { "../utils/common": 41 }], 53: [function(e2, t2, r2) { + t2.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(e2, t2, r2) { + (function(e3) { + !function(r3, n2) { + if (!r3.setImmediate) { + var i, s, t3, a, o = 1, h = {}, u = false, l = r3.document, e4 = Object.getPrototypeOf && Object.getPrototypeOf(r3); + e4 = e4 && e4.setTimeout ? e4 : r3, i = "[object process]" === {}.toString.call(r3.process) ? function(e5) { + process.nextTick(function() { + c(e5); + }); + } : function() { + if (r3.postMessage && !r3.importScripts) { + var e5 = true, t4 = r3.onmessage; + return r3.onmessage = function() { + e5 = false; + }, r3.postMessage("", "*"), r3.onmessage = t4, e5; + } + }() ? (a = "setImmediate$" + Math.random() + "$", r3.addEventListener ? r3.addEventListener("message", d, false) : r3.attachEvent("onmessage", d), function(e5) { + r3.postMessage(a + e5, "*"); + }) : r3.MessageChannel ? ((t3 = new MessageChannel()).port1.onmessage = function(e5) { + c(e5.data); + }, function(e5) { + t3.port2.postMessage(e5); + }) : l && "onreadystatechange" in l.createElement("script") ? (s = l.documentElement, function(e5) { + var t4 = l.createElement("script"); + t4.onreadystatechange = function() { + c(e5), t4.onreadystatechange = null, s.removeChild(t4), t4 = null; + }, s.appendChild(t4); + }) : function(e5) { + setTimeout(c, 0, e5); + }, e4.setImmediate = function(e5) { + "function" != typeof e5 && (e5 = new Function("" + e5)); + for (var t4 = new Array(arguments.length - 1), r4 = 0; r4 < t4.length; r4++) + t4[r4] = arguments[r4 + 1]; + var n3 = { callback: e5, args: t4 }; + return h[o] = n3, i(o), o++; + }, e4.clearImmediate = f; + } + function f(e5) { + delete h[e5]; + } + function c(e5) { + if (u) + setTimeout(c, 0, e5); + else { + var t4 = h[e5]; + if (t4) { + u = true; + try { + !function(e6) { + var t5 = e6.callback, r4 = e6.args; + switch (r4.length) { + case 0: + t5(); + break; + case 1: + t5(r4[0]); + break; + case 2: + t5(r4[0], r4[1]); + break; + case 3: + t5(r4[0], r4[1], r4[2]); + break; + default: + t5.apply(n2, r4); + } + }(t4); + } finally { + f(e5), u = false; + } + } + } + } + function d(e5) { + e5.source === r3 && "string" == typeof e5.data && 0 === e5.data.indexOf(a) && c(+e5.data.slice(a.length)); + } + }("undefined" == typeof self ? void 0 === e3 ? this : e3 : self); + }).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}); + }, {}] }, {}, [10])(10); + }); + })(jszip_min); + var jszip_minExports = jszip_min.exports; + const JSZip = /* @__PURE__ */ getDefaultExportFromCjs(jszip_minExports); + const BASE_URL = "https://cloud.yuxindazhineng.com"; + const CACHE_PREFIX = "wyxd_"; + const cacheKey = (workspaceId, filePath) => `${CACHE_PREFIX}${workspaceId}_${filePath}`; + const isWyxdCached = (workspaceId, filePath) => { + try { + const cached = uni.getStorageSync(cacheKey(workspaceId, filePath)); + return !!(cached && cached.slides && cached.slides.length > 0); + } catch (_) { + return false; + } + }; + const getCachedWyxd = (workspaceId, filePath) => { + try { + const cached = uni.getStorageSync(cacheKey(workspaceId, filePath)); + if (cached && cached.slides && cached.slides.length > 0) + return cached; + } catch (_) { + } + return null; + }; + const setCachedWyxd = (workspaceId, filePath, data) => { + try { + const toStore = { ...data, cachedAt: Date.now() }; + uni.setStorageSync(cacheKey(workspaceId, filePath), toStore); + } catch (_) { + } + }; + const getDownloadUrl = (token, workspaceId, filePath) => { + formatAppLog("log", "at utils/wyxd-parser.js:43", "执行getDownloadUrl"); + return new Promise((resolve, reject) => { + const cleanPath = filePath.startsWith("./") ? filePath.slice(2) : filePath; + uni.request({ + url: `${BASE_URL}/cloud_api/phone/workspace/downloadFile`, + method: "POST", + header: { "Content-Type": "application/json" }, + data: { + "access_token": token, + "workspaces_id": workspaceId, + "file_path": cleanPath + }, + success: (res) => { + if (res.statusCode === 200) { + const respond = res.data; + const arr = respond.success ? respond.message || respond.data : respond; + const fileInfo = Array.isArray(arr) ? arr[0] : arr; + formatAppLog("log", "at utils/wyxd-parser.js:60", "fileInfo:", fileInfo); + if (fileInfo && fileInfo.url) { + formatAppLog("log", "at utils/wyxd-parser.js:62", "fileInfo.url", fileInfo.url); + resolve(fileInfo.url); + } else { + formatAppLog("log", "at utils/wyxd-parser.js:65", "获取下载地址失败"); + reject((respond == null ? void 0 : respond.error) || "获取下载地址失败"); + } + } else { + reject(`请求失败:${res.statusCode}`); + } + }, + fail: (err) => reject(err) + }); + }); + }; + const downloadWyxdAsZip = (token, workspaceId, filePath, onProgress) => { + return new Promise(async (resolve, reject) => { + try { + formatAppLog("log", "at utils/wyxd-parser.js:80", "执行downloadWyxdAsZip"); + const downloadUrl = await getDownloadUrl(token, workspaceId, filePath); + formatAppLog("log", "at utils/wyxd-parser.js:82", "downloadWyxdAsZip-downloadUrl", downloadUrl); + const downloadTask = uni.downloadFile({ + url: downloadUrl, + success: (res) => { + if (res.statusCode === 200) { + formatAppLog("log", "at utils/wyxd-parser.js:87", "downloadWyxdAsZip-tempFilePath", res.tempFilePath); + resolve(res.tempFilePath); + } else { + reject(`下载失败:${res.statusCode}`); + } + }, + fail: (err) => reject(err) + }); + if (onProgress && downloadTask) { + downloadTask.onProgressUpdate((res) => { + onProgress(res.progress); + }); + } + } catch (err) { + reject(err); + } + }); + }; + const utf8Decode = (uint8arr) => { + let result = ""; + let i = 0; + while (i < uint8arr.length) { + const b0 = uint8arr[i]; + if (b0 < 128) { + result += String.fromCharCode(b0); + i++; + } else if (b0 < 224) { + result += String.fromCharCode((b0 & 31) << 6 | uint8arr[i + 1] & 63); + i += 2; + } else if (b0 < 240) { + result += String.fromCharCode((b0 & 15) << 12 | (uint8arr[i + 1] & 63) << 6 | uint8arr[i + 2] & 63); + i += 3; + } else { + result += String.fromCharCode((b0 & 7) << 18 | (uint8arr[i + 1] & 63) << 12 | (uint8arr[i + 2] & 63) << 6 | uint8arr[i + 3] & 63); + i += 4; + } + } + return result; + }; + const readFileAsArrayBuffer = (filePath) => { + return new Promise((resolve, reject) => { + var _a, _b; + if (typeof plus !== "undefined") { + formatAppLog("log", "at utils/wyxd-parser.js:135", "[readFileAsArrayBuffer] App环境,filePath:", filePath); + formatAppLog("log", "at utils/wyxd-parser.js:136", "[readFileAsArrayBuffer] typeof plus.io:", typeof plus.io); + formatAppLog("log", "at utils/wyxd-parser.js:137", "[readFileAsArrayBuffer] typeof plus.io.resolveLocalFileSystemURL:", typeof ((_a = plus.io) == null ? void 0 : _a.resolveLocalFileSystemURL)); + formatAppLog("log", "at utils/wyxd-parser.js:138", "[readFileAsArrayBuffer] typeof plus.io.FileReader:", typeof ((_b = plus.io) == null ? void 0 : _b.FileReader)); + if (plus.io && typeof plus.io.resolveLocalFileSystemURL === "function") { + plus.io.resolveLocalFileSystemURL(filePath, (entry) => { + formatAppLog("log", "at utils/wyxd-parser.js:143", "[readFileAsArrayBuffer] entry.isFile:", entry.isFile); + formatAppLog("log", "at utils/wyxd-parser.js:144", "[readFileAsArrayBuffer] entry.isDirectory:", entry.isDirectory); + formatAppLog("log", "at utils/wyxd-parser.js:145", "[readFileAsArrayBuffer] entry.fullPath:", entry.fullPath); + formatAppLog("log", "at utils/wyxd-parser.js:146", "[readFileAsArrayBuffer] typeof entry.file:", typeof entry.file); + if (typeof entry.file !== "function") { + reject(new Error("entry 没有 file 方法,isFile=" + entry.isFile + " isDirectory=" + entry.isDirectory)); + return; + } + try { + entry.file((file) => { + formatAppLog("log", "at utils/wyxd-parser.js:155", "[readFileAsArrayBuffer] entry.file 成功,file.size:", file.size); + const reader = new plus.io.FileReader(); + reader.onloadend = (e2) => { + const dataUrl = e2.target.result; + formatAppLog("log", "at utils/wyxd-parser.js:159", "[readFileAsArrayBuffer] readAsDataURL 完成,dataUrl 长度:", dataUrl == null ? void 0 : dataUrl.length); + try { + const base64 = dataUrl.substring(dataUrl.indexOf(",") + 1); + const binary = atob(base64); + const bytes = new Uint8Array(binary.length); + for (let i = 0; i < binary.length; i++) + bytes[i] = binary.charCodeAt(i); + formatAppLog("log", "at utils/wyxd-parser.js:166", "[readFileAsArrayBuffer] 成功转为 Uint8Array,长度:", bytes.length); + resolve(bytes); + } catch (err) { + formatAppLog("error", "at utils/wyxd-parser.js:169", "[readFileAsArrayBuffer] base64 解码失败", err); + reject(new Error("文件解码失败:" + err.message)); + } + }; + reader.onerror = (e2) => { + formatAppLog("error", "at utils/wyxd-parser.js:174", "[readFileAsArrayBuffer] plus.io 读取失败", e2); + reject(new Error("文件读取失败")); + }; + reader.readAsDataURL(file); + }, (err) => { + formatAppLog("error", "at utils/wyxd-parser.js:179", "[readFileAsArrayBuffer] 获取File对象失败", err); + reject(new Error("获取文件失败:" + (err.message || ""))); + }); + } catch (e2) { + formatAppLog("error", "at utils/wyxd-parser.js:183", "[readFileAsArrayBuffer] entry.file 调用同步异常:", e2); + reject(new Error("entry.file 调用失败:" + (e2.message || e2))); + } + }, (err) => { + formatAppLog("error", "at utils/wyxd-parser.js:187", "[readFileAsArrayBuffer] 解析文件路径失败", err); + reject(new Error("解析文件路径失败:" + (err.message || ""))); + }); + return; + } + if (typeof uni !== "undefined" && typeof uni.getFileSystemManager === "function") { + formatAppLog("log", "at utils/wyxd-parser.js:195", "[readFileAsArrayBuffer] 降级使用 uni.getFileSystemManager"); + const fs = uni.getFileSystemManager(); + fs.readFile({ + filePath, + success: (res) => { + const base64 = res.data || ""; + const binary = atob(base64); + const bytes = new Uint8Array(binary.length); + for (let i = 0; i < binary.length; i++) + bytes[i] = binary.charCodeAt(i); + resolve(bytes); + }, + fail: (err) => reject(new Error("无法读取文件:" + (err.errMsg || ""))) + }); + return; + } + reject(new Error("App 环境下无可用的文件读取 API")); + return; + } + fetch(filePath).then((res) => { + if (!res.ok) + throw new Error("文件请求失败:" + res.status); + return res.arrayBuffer(); + }).then((buf) => resolve(new Uint8Array(buf))).catch((err) => reject(new Error("H5 读取文件失败:" + (err.message || err)))); + }); + }; + const extractWyxd = async (zipFilePath) => { + const data = await readFileAsArrayBuffer(zipFilePath); + formatAppLog("log", "at utils/wyxd-parser.js:227", "data", data); + const zip = await JSZip.loadAsync(data); + const result = { header: "", html: "", images: {} }; + for (const [filename, zipEntry] of Object.entries(zip.files)) { + if (zipEntry.dir) + continue; + const pureName = filename.replace(/^.*[/\\]/, ""); + const content = await zipEntry.async("uint8array"); + if (pureName === "header.txt") { + result.header = utf8Decode(content); + } else if (pureName.endsWith(".html") || pureName.endsWith(".htm")) { + result.html = utf8Decode(content); + } else if (/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(pureName)) { + result.images[filename.replace(/^\.[/\\]?/, "")] = arrayBufferToBase64(content, pureName); + } + } + return result; + }; + const arrayBufferToBase64 = (buffer, filename) => { + let binary = ""; + const bytes = new Uint8Array(buffer); + for (let i = 0; i < bytes.byteLength; i++) { + binary += String.fromCharCode(bytes[i]); + } + const ext = (filename || "").split(".").pop().toLowerCase(); + const mimeMap = { + png: "image/png", + jpg: "image/jpeg", + jpeg: "image/jpeg", + gif: "image/gif", + svg: "image/svg+xml", + webp: "image/webp", + bmp: "image/bmp" + }; + const mime = mimeMap[ext] || "image/png"; + return `data:${mime};base64,${btoa(binary)}`; + }; + const parseSlides = (fullHtml, headerHtml, imageMap) => { + const bodyMatch = fullHtml.match(/]*>([\s\S]*?)<\/body>/i); + const bodyHtml = bodyMatch ? bodyMatch[1] : fullHtml; + const pageRegex = /]*\/?>/gi; + const parts = bodyHtml.split(pageRegex); + if (parts.length === 0) + return []; + const pageTags = bodyHtml.match(pageRegex) || []; + const slides = []; + parts.forEach((part, idx) => { + const html = part.trim(); + if (!html) + return; + let pageAttrs = { order: idx, num: 0 }; + if (idx < pageTags.length) { + const tagStr = pageTags[idx]; + const orderMatch = tagStr.match(/order\s*=\s*["'](\d+)["']/i); + const numMatch = tagStr.match(/num\s*=\s*["'](\d+)["']/i); + if (orderMatch) + pageAttrs.order = parseInt(orderMatch[1]); + if (numMatch) + pageAttrs.num = parseInt(numMatch[1]); + } + const slide = { + order: pageAttrs.order, + num: pageAttrs.num, + type: "content", + html + }; + if (/class\s*=\s*["'][^"']*\bwyxd-cover\b/i.test(html)) { + slide.type = "cover"; + } else if (/class\s*=\s*["'][^"']*\bwyxd-toc\b/i.test(html)) { + slide.type = "toc"; + } + slides.push(slide); + }); + return buildSlideHtml(slides, headerHtml, imageMap, fullHtml); + }; + const getHeadContent = (html) => { + const match = String(html).match(/]*>([\s\S]*?)<\/head>/i); + return match ? match[1] : ""; + }; + const buildSlideHtml = (slides, headerHtml, imageMap, fullHtml) => { + const headContent = getHeadContent(fullHtml); + const baseStyle = extractBaseStyle(fullHtml); + return slides.map((slide) => { + let processedHtml = slide.html; + processedHtml = processedHtml.replace(/src\s*=\s*["']([^"']+)["']/gi, (match, src) => { + let base64 = imageMap[src] || imageMap[src.replace(/^.*?images\//i, "images/")]; + if (base64) { + return `src="${base64}"`; + } + return match; + }); + if (slide.type === "content") { + if (headerHtml) { + processedHtml = headerHtml + processedHtml; + } + if (slide.num > 0) { + const pageNumHtml = `
+ + ${slide.num}
`; + processedHtml += pageNumHtml; + } + } + return { + ...slide, + html: `
+ + ${processedHtml} +
`, + headStyle: headContent + }; + }); + }; + const extractBaseStyle = (html) => { + const styleMatch = html.match(/]*>([\s\S]*?)<\/style>/i); + return styleMatch ? styleMatch[1] : ""; + }; + const _sfc_main$1 = { + __name: "WYXD", + setup(__props, { expose: __expose }) { + __expose(); + const workspaceId = vue.ref(""); + const filePath = vue.ref(""); + const fileName = vue.ref(""); + const userToken = vue.ref(""); + const slides = vue.ref([]); + const currentIndex = vue.ref(0); + const status = vue.ref(""); + const loading = vue.ref(false); + const errorMsg = vue.ref(""); + const statusText = vue.computed(() => { + const map = { + downloading: "下载中...", + extracting: "解压中...", + parsing: "解析中...", + error: "加载失败" + }; + return map[status.value] || "处理中..."; + }); + const displayName = vue.computed(() => fileName.value || "未命名文档"); + const currentSlide = vue.computed(() => slides.value[currentIndex.value] || { html: "" }); + const pad = (n2) => String(n2).padStart(2, "0"); + const goBack = () => { + uni.navigateBack(); + }; + const prevSlide = () => { + if (currentIndex.value > 0) + currentIndex.value--; + }; + const nextSlide = () => { + if (currentIndex.value < slides.value.length - 1) + currentIndex.value++; + }; + const loadFromCache = () => { + const cached = getCachedWyxd(workspaceId.value, filePath.value); + if (!cached || !cached.slides || cached.slides.length === 0) { + startDownload(); + return; + } + slides.value = cached.slides; + currentIndex.value = 0; + loading.value = false; + errorMsg.value = ""; + status.value = ""; + }; + const startDownload = async () => { + if (!userToken.value || !workspaceId.value || !filePath.value) { + errorMsg.value = "缺少必要参数"; + status.value = "error"; + return; + } + try { + loading.value = true; + errorMsg.value = ""; + slides.value = []; + currentIndex.value = 0; + status.value = "downloading"; + formatAppLog("log", "at pages/WYXD/WYXD.vue:134", "userToken.value", userToken.value); + formatAppLog("log", "at pages/WYXD/WYXD.vue:135", "workspaceId.value", workspaceId.value); + formatAppLog("log", "at pages/WYXD/WYXD.vue:136", "filePath.value", filePath.value); + const tempPath = await downloadWyxdAsZip( + userToken.value, + workspaceId.value, + filePath.value + ); + formatAppLog("log", "at pages/WYXD/WYXD.vue:140", "获取到的下载地址:", tempPath); + status.value = "extracting"; + const extracted = await extractWyxd(tempPath); + formatAppLog("log", "at pages/WYXD/WYXD.vue:144", "extracted", extracted); + status.value = "parsing"; + const slideList = parseSlides(extracted.html, extracted.header, extracted.images); + if (!slideList || slideList.length === 0) { + throw new Error("无法解析文档内容"); + } + slides.value = slideList; + currentIndex.value = 0; + loading.value = false; + status.value = ""; + setCachedWyxd(workspaceId.value, filePath.value, { + fileName: fileName.value, + slides: slideList + }); + } catch (err) { + loading.value = false; + status.value = "error"; + const msg = typeof err === "string" ? err : err.message || "下载失败"; + errorMsg.value = msg; + formatAppLog("error", "at pages/WYXD/WYXD.vue:167", "[WYXD] download error:", err); + } + }; + onLoad((options) => { + workspaceId.value = options.workspaceId || ""; + filePath.value = (options == null ? void 0 : options.filePath) ? decodeURIComponent(options.filePath) : ""; + fileName.value = (options == null ? void 0 : options.fileName) ? decodeURIComponent(options.fileName) : "未命名文档"; + userToken.value = (options == null ? void 0 : options.userToken) ?? uni.getStorageSync("user_token") ?? ""; + formatAppLog("log", "at pages/WYXD/WYXD.vue:176", "页面接收options原始参数:", options); + formatAppLog("log", "at pages/WYXD/WYXD.vue:177", "最终赋值变量:", { + workspaceId: workspaceId.value, + filePath: filePath.value, + fileName: fileName.value, + userToken: userToken.value + }); + if (isWyxdCached(workspaceId.value, filePath.value)) { + loadFromCache(); + } else { + startDownload(); + } + }); + const __returned__ = { workspaceId, filePath, fileName, userToken, slides, currentIndex, status, loading, errorMsg, statusText, displayName, currentSlide, pad, goBack, prevSlide, nextSlide, loadFromCache, startDownload, ref: vue.ref, computed: vue.computed, get onLoad() { + return onLoad; + }, get isWyxdCached() { + return isWyxdCached; + }, get getCachedWyxd() { + return getCachedWyxd; + }, get setCachedWyxd() { + return setCachedWyxd; + }, get downloadWyxdAsZip() { + return downloadWyxdAsZip; + }, get extractWyxd() { + return extractWyxd; + }, get parseSlides() { + return parseSlides; + } }; + Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true }); + return __returned__; + } + }; + function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + [ + vue.createElementVNode("view", { class: "status-bar" }), + vue.createElementVNode("view", { class: "wyxd-container page-container" }, [ + vue.createElementVNode("view", { class: "wyxd-header" }, [ + vue.createElementVNode("view", { class: "custom-navbar" }, [ + vue.createElementVNode("view", { + class: "navbar-left", + onClick: $setup.goBack + }, [ + vue.createElementVNode("view", { class: "iconfont icon-fanhui custom-navbar-icon" }), + vue.createElementVNode("view", { class: "navbar-before-title workspace-text" }, "返回") + ]), + vue.createElementVNode( + "view", + { class: "navbar-title workspace-text" }, + vue.toDisplayString($setup.displayName), + 1 + /* TEXT */ + ), + vue.createElementVNode("view", { class: "navbar-right" }) + ]) + ]), + vue.createElementVNode("view", { class: "wyxd-content" }, [ + $setup.loading || $setup.errorMsg ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "wyxd-state" + }, [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["iconfont wyxd-state-icon", $setup.errorMsg ? "icon-quxiao" : "icon-sousuo"]) + }, + null, + 2 + /* CLASS */ + ), + vue.createElementVNode( + "view", + { class: "wyxd-state-title" }, + vue.toDisplayString($setup.errorMsg || $setup.statusText), + 1 + /* TEXT */ + ), + $setup.errorMsg ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "wyxd-state-desc" + }, "请返回重试")) : vue.createCommentVNode("v-if", true) + ])) : !$setup.slides.length ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "wyxd-state" + }, [ + vue.createElementVNode("view", { class: "iconfont icon-wenjianjia wyxd-state-icon" }), + vue.createElementVNode("view", { class: "wyxd-state-title" }, "暂无内容") + ])) : (vue.openBlock(), vue.createElementBlock("view", { + key: 2, + class: "wyxd-slide-area" + }, [ + vue.createElementVNode("scroll-view", { + class: "wyxd-slide-scroll", + "scroll-y": "", + "show-scrollbar": false + }, [ + vue.createElementVNode("view", { + class: "wyxd-slide-card", + innerHTML: $setup.currentSlide.html + }, null, 8, ["innerHTML"]) + ]) + ])) + ]), + $setup.slides.length > 1 ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "wyxd-pager" + }, [ + vue.createElementVNode("view", { class: "wyxd-pager-inner" }, [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["wyxd-nav-btn", { disabled: $setup.currentIndex <= 0 }]), + onClick: $setup.prevSlide + }, + [ + vue.createElementVNode("view", { + class: "iconfont icon-fanhui", + style: { "font-size": "24rpx" } + }) + ], + 2 + /* CLASS */ + ), + vue.createElementVNode("view", { class: "wyxd-page-indicator" }, [ + vue.createElementVNode( + "text", + { class: "wyxd-current" }, + vue.toDisplayString($setup.pad($setup.currentIndex + 1)), + 1 + /* TEXT */ + ), + vue.createElementVNode("text", { class: "wyxd-divider" }, "/"), + vue.createElementVNode( + "text", + { class: "wyxd-total" }, + vue.toDisplayString($setup.pad($setup.slides.length)), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["wyxd-nav-btn", { disabled: $setup.currentIndex >= $setup.slides.length - 1 }]), + onClick: $setup.nextSlide + }, + [ + vue.createElementVNode("view", { + class: "iconfont icon-fanhui", + style: { "transform": "rotate(180deg)", "font-size": "24rpx" } + }) + ], + 2 + /* CLASS */ + ) + ]) + ])) : vue.createCommentVNode("v-if", true) + ]) + ], + 64 + /* STABLE_FRAGMENT */ + ); + } + const PagesWYXDWYXD = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-507487c4"], ["__file", "D:/Projects/uniapp/app-test/test1/pages/WYXD/WYXD.vue"]]); __definePage("pages/Login/Login", PagesLoginLogin); __definePage("pages/Chat/Chat", PagesChatChat); __definePage("pages/WorkSpace/WorkSpace", PagesWorkSpaceWorkSpace); @@ -14999,6 +18250,7 @@ This will fail in production.`); __definePage("pages/CloudDbDetail/CloudDbDetail", PagesCloudDbDetailCloudDbDetail); __definePage("pages/text/text", PagesTextText); __definePage("pages/text/IntuitiveAipptViewer", PagesTextIntuitiveAipptViewer); + __definePage("pages/WYXD/WYXD", PagesWYXDWYXD); const _sfc_main = { onLaunch: function() { formatAppLog("log", "at App.vue:4", "App Launch"); diff --git a/unpackage/dist/dev/app-plus/pages/WYXD/WYXD.css b/unpackage/dist/dev/app-plus/pages/WYXD/WYXD.css new file mode 100644 index 0000000..5e81963 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/WYXD/WYXD.css @@ -0,0 +1,440 @@ +/* 新建文件夹弹窗样式 */ +.create-folder-name[data-v-507487c4] { + display: flex; + width: 100%; + padding: 0.3125rem 0.625rem; + box-sizing: border-box; + align-items: center; + background: rgba(108, 99, 255, 0.06); + border-radius: 0.4375rem; + border: 0.0625rem solid transparent; + transition: all 0.25s ease; +} +.create-folder-name uni-input[data-v-507487c4] { + box-sizing: border-box; + width: 100%; + font-size: 0.875rem; + color: #333; +} +.create-folder-name.has-value[data-v-507487c4] { + background-color: #ffffff; + border-color: #6c63ff; + box-shadow: 0 0 0 0.125rem rgba(108, 99, 255, 0.06); +} +/* 新建文件夹弹窗内部样式 */ +.new-folder-name[data-v-507487c4] { + font-size: 0.875rem; + color: #555; + margin-bottom: 0.375rem; +} +.nf-path-label[data-v-507487c4] { + font-size: 0.75rem; + color: #999; + margin-top: 0.75rem; + margin-bottom: 0.25rem; +} +.nf-path-display[data-v-507487c4] { + font-size: 0.8125rem; + color: #333; + padding: 0.375rem 0.625rem; + background: #f5f5f8; + border-radius: 0.375rem; + word-break: break-all; +} +.nf-path-preview[data-v-507487c4] { + font-size: 0.8125rem; + color: #6c63ff; + padding: 0.375rem 0.625rem; + background: rgba(108, 99, 255, 0.05); + border: 0.0625rem dashed rgba(108, 99, 255, 0.25); + border-radius: 0.375rem; + word-break: break-all; +} +.option-wrapper[data-v-507487c4] { + display: flex; + justify-content: space-between; + gap: 0.625rem; + margin-top: 1.25rem; +} +.opt-btn[data-v-507487c4] { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + padding: 0.75rem 0; + border-radius: 0.5rem; + font-size: 0.9375rem; + font-weight: 500; + transition: all 0.2s ease; +} +.opt-btn[data-v-507487c4]:active { + transform: scale(0.97); +} +.opt-cancel[data-v-507487c4] { + background: #f0f1f5; + color: #666; +} +.opt-confirm[data-v-507487c4] { + background: linear-gradient(135deg, #6c63ff, #4a45d1); + color: #fff; + box-shadow: 0 0.125rem 0.375rem rgba(108, 99, 255, 0.25); +} +.workspace-container[data-v-507487c4] { + display: flex; + flex-direction: column; + background: linear-gradient(180deg, #f5f4f9 0%, #faf9fe 100%); +} +.workspace-text[data-v-507487c4] { + color: #6c63ff; + font-weight: bold; +} +.workspace-header[data-v-507487c4] { + width: 100%; + display: flex; + flex-shrink: 0; + flex-direction: column; + align-items: center; + padding: 0.375rem 0; + box-sizing: border-box; + position: relative; + z-index: 100; + background: rgba(255, 255, 255, 0.8); + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + border-bottom: 0.03125rem solid rgba(170, 170, 255, 0.1); +} +.custom-navbar[data-v-507487c4] { + width: 100%; + display: flex; + align-items: center; + justify-content: space-between; + padding: 0.5rem 0.3125rem; + box-sizing: border-box; + position: relative; +} +.navbar-left[data-v-507487c4] { + display: flex; + justify-content: center; + align-items: center; +} +.navbar-before-title[data-v-507487c4] { + display: flex; + justify-content: center; + align-items: center; + text-align: center; + font-size: 0.8125rem; + color: #6c63ff; + font-weight: 500; +} +.navbar-title[data-v-507487c4] { + display: flex; + flex: 1; + justify-content: center; + align-items: center; + position: absolute; + left: 50%; + transform: translateX(-50%); + font-size: 1rem; + font-weight: 700; + color: #1a1a2e; +} +.navbar-right[data-v-507487c4] { + display: flex; + justify-content: center; + align-items: center; + margin-right: 0.625rem; + box-sizing: border-box; +} +.navbar-right .menu-open[data-v-507487c4] { + color: #6c63ff !important; + font-size: 1.25rem !important; +} +.custom-navbar-icon[data-v-507487c4] { + color: #6c63ff !important; + font-size: 1.25rem !important; +} +.search-file-warpper[data-v-507487c4] { + display: flex; + width: 90%; + align-items: center; +} +.search-file[data-v-507487c4] { + display: flex; + flex: 1; + align-items: center; + background: rgba(255, 255, 255, 0.9); + padding: 0.4375rem 0.75rem; + box-sizing: border-box; + border-radius: 0.875rem; + border: 0.0625rem solid #e8e7f5; + transition: all 0.25s ease; +} +.search-file[data-v-507487c4]:focus-within { + border-color: #6c63ff; + box-shadow: 0 0 0 0.125rem rgba(108, 99, 255, 0.06); +} +.icon-sousuo[data-v-507487c4] { + font-weight: bold; + color: #999; +} +.search-file-input[data-v-507487c4] { + margin-left: 0.5rem; + font-size: 0.8125rem; + color: #333; +} +.cancel-search[data-v-507487c4] { + display: flex; + flex-shrink: 0; + padding: 0 0 0 0.625rem; + box-sizing: border-box; + color: #6c63ff; + font-size: 0.875rem; + font-weight: 500; +} +.workspace-content[data-v-507487c4] { + width: 100%; + display: block; + flex: 1; + overflow: auto; + box-sizing: border-box; + position: relative; +} +/* 菜单卡片 */ +.menu-card[data-v-507487c4] { + position: absolute; + top: 100%; + right: 0.625rem; + width: 8.75rem; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + background: #fff; + border-radius: 0.75rem; + z-index: 999; + box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08); + padding: 0.25rem 0; + overflow: hidden; +} +.menu-card-item[data-v-507487c4] { + width: 100%; + padding: 0.6875rem 0.875rem; + box-sizing: border-box; + font-size: 0.875rem; + color: #333; + transition: all 0.15s ease; +} +.menu-card-item[data-v-507487c4]:active { + background: rgba(108, 99, 255, 0.06); +} +.folder-null[data-v-507487c4] { + width: 100%; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + position: absolute; + left: 50%; + top: 30%; + transform: translateX(-50%); + font-size: 0.9375rem; + color: #bbb; +} +.folder-null .iconfont[data-v-507487c4] { + font-size: 5.625rem; + color: #ddd; +} +.folder-grid[data-v-507487c4] { + width: 100%; + display: grid; + grid-template-columns: repeat(3, 1fr); + padding: 0.75rem; + box-sizing: border-box; + gap: 0.625rem; + align-items: start; +} +.folder-item[data-v-507487c4] { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + position: relative; + min-width: 0; + background: rgba(255, 255, 255, 0.7); + border-radius: 0.75rem; + padding: 0.75rem 0.25rem 0.5rem; + border: 0.0625rem solid transparent; + transition: all 0.2s ease; +} +.folder-item.select-folder[data-v-507487c4] { + border-color: rgba(108, 99, 255, 0.3); + background: rgba(108, 99, 255, 0.04); +} +.folder-item[data-v-507487c4]:active { + transform: scale(0.96); + background: rgba(255, 255, 255, 0.95); +} +.folder-item .folder-name[data-v-507487c4] { + max-width: 5rem; + text-align: center; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + display: inline-block; + line-height: 1.375rem; + min-width: 0; + font-size: 0.8125rem; + color: #444; +} +.folder-item-style[data-v-507487c4] { + font-size: 3.4375rem !important; + color: #6c63ff !important; +} +.folder-checkbox[data-v-507487c4] { + width: 1.375rem; + height: 1.375rem; + border: 0.09375rem solid #fff; + border-radius: 50%; + box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.12); + background: rgba(255, 255, 255, 0.9); + box-sizing: border-box; + position: absolute; + left: 50%; + top: 25%; + transform: translate(-50%); + display: flex; + justify-content: center; + align-items: center; + transition: all 0.2s ease; +} +.folder-checkbox.select-folder[data-v-507487c4] { + background: linear-gradient(135deg, #6c63ff, #4a45d1); + border-color: #6c63ff; +} +.workspace-footer[data-v-507487c4] { + width: 100%; + display: flex; + flex-shrink: 0; + justify-content: space-between; + padding: 0.75rem 0.9375rem; + box-sizing: border-box; + color: #888; + background: rgba(255, 255, 255, 0.8); + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + border-top: 0.03125rem solid rgba(170, 170, 255, 0.1); + font-size: 0.8125rem; + transition: all 0.2s ease; +} +.workspace-footer.folder-actions[data-v-507487c4] { + color: #6c63ff; + font-weight: 500; +} +.workspace-footer .iconfont[data-v-507487c4] { + font-size: 1.25rem !important; +} +.wyxd-container[data-v-507487c4] { + display: flex; + flex-direction: column; + background: #f5f5f5; + overflow: hidden; +} +.wyxd-header[data-v-507487c4] { + flex-shrink: 0; + background: #fff; +} +.wyxd-content[data-v-507487c4] { + flex: 1; + min-height: 0; + overflow: hidden; + display: flex; + flex-direction: column; +} +/* ===== 状态占位 ===== */ +.wyxd-state[data-v-507487c4] { + flex: 1; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 1.25rem; +} +.wyxd-state-icon[data-v-507487c4] { + font-size: 2.5rem; + color: #ccc; + margin-bottom: 0.625rem; +} +.wyxd-state-title[data-v-507487c4] { + font-size: 0.875rem; + font-weight: 600; + color: #666; + margin-bottom: 0.25rem; +} +.wyxd-state-desc[data-v-507487c4] { + font-size: 0.75rem; + color: #999; +} +/* ===== 幻灯片区域 ===== */ +.wyxd-slide-area[data-v-507487c4] { + flex: 1; + min-height: 0; + padding: 0.625rem; +} +.wyxd-slide-scroll[data-v-507487c4] { + height: 100%; + background: #fff; + border-radius: 0.375rem; + box-shadow: 0 0.0625rem 0.375rem rgba(0, 0, 0, 0.04); +} +.wyxd-slide-card[data-v-507487c4] { + padding: 1rem; + min-height: 100%; + box-sizing: border-box; +} +/* ===== 底部翻页 ===== */ +.wyxd-pager[data-v-507487c4] { + flex-shrink: 0; + background: #fff; + border-top: 0.03125rem solid #eee; + padding: 0.5rem 0; + padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); +} +.wyxd-pager-inner[data-v-507487c4] { + display: flex; + align-items: center; + justify-content: center; +} +.wyxd-nav-btn[data-v-507487c4] { + width: 2rem; + height: 2rem; + display: flex; + align-items: center; + justify-content: center; + border-radius: 1rem; + background: #f5f5f5; + margin: 0 1rem; +} +.wyxd-nav-btn[data-v-507487c4]:active { + background: #e0e0e0; +} +.wyxd-nav-btn.disabled[data-v-507487c4] { + opacity: 0.3; + pointer-events: none; +} +.wyxd-page-indicator[data-v-507487c4] { + font-size: 0.8125rem; + color: #666; + display: flex; + align-items: center; +} +.wyxd-current[data-v-507487c4] { + color: #3b82f6; + font-weight: 700; +} +.wyxd-divider[data-v-507487c4] { + margin: 0 0.25rem; + color: #ccc; +} +.wyxd-total[data-v-507487c4] { + color: #999; +} diff --git a/utils/wyxd-parser.js b/utils/wyxd-parser.js index dc910c1..ce7eb0c 100644 --- a/utils/wyxd-parser.js +++ b/utils/wyxd-parser.js @@ -40,6 +40,7 @@ export const clearCachedWyxd = (workspaceId, filePath) => { // ===== 下载 ===== const getDownloadUrl = (token, workspaceId, filePath) => { + console.log("执行getDownloadUrl"); return new Promise((resolve, reject) => { const cleanPath = filePath.startsWith('./') ? filePath.slice(2) : filePath uni.request({ @@ -47,18 +48,21 @@ const getDownloadUrl = (token, workspaceId, filePath) => { method: 'POST', header: { 'Content-Type': 'application/json' }, data: { - access_token: token, - workspaces_id: workspaceId, - file_path: cleanPath + "access_token": token, + "workspaces_id": workspaceId, + "file_path": cleanPath }, success: (res) => { if (res.statusCode === 200) { const respond = res.data const arr = respond.success ? (respond.message || respond.data) : respond const fileInfo = Array.isArray(arr) ? arr[0] : arr + console.log("fileInfo:",fileInfo); if (fileInfo && fileInfo.url) { + console.log("fileInfo.url",fileInfo.url); resolve(fileInfo.url) } else { + console.log("获取下载地址失败"); reject(respond?.error || '获取下载地址失败') } } else { @@ -73,11 +77,14 @@ const getDownloadUrl = (token, workspaceId, filePath) => { export const downloadWyxdAsZip = (token, workspaceId, filePath, onProgress) => { return new Promise(async (resolve, reject) => { try { + console.log("执行downloadWyxdAsZip"); const downloadUrl = await getDownloadUrl(token, workspaceId, filePath) + console.log("downloadWyxdAsZip-downloadUrl",downloadUrl); const downloadTask = uni.downloadFile({ url: downloadUrl, success: (res) => { if (res.statusCode === 200) { + console.log("downloadWyxdAsZip-tempFilePath",res.tempFilePath); resolve(res.tempFilePath) } else { reject(`下载失败:${res.statusCode}`) @@ -123,23 +130,85 @@ const utf8Decode = (uint8arr) => { const readFileAsArrayBuffer = (filePath) => { return new Promise((resolve, reject) => { - // App 环境:uni.getFileSystemManager - const fs = uni.getFileSystemManager - if (typeof fs === 'function') { - fs().readFile({ - filePath: filePath, - encoding: 'base64', - success: (res) => { - const base64 = res.data || '' - const binary = atob(base64) - const bytes = new Uint8Array(binary.length) - for (let i = 0; i < binary.length; i++) { - bytes[i] = binary.charCodeAt(i) + // App 环境检测:plus 对象仅在 App 运行时存在 + if (typeof plus !== 'undefined') { + console.log('[readFileAsArrayBuffer] App环境,filePath:', filePath) + console.log('[readFileAsArrayBuffer] typeof plus.io:', typeof plus.io) + console.log('[readFileAsArrayBuffer] typeof plus.io.resolveLocalFileSystemURL:', typeof plus.io?.resolveLocalFileSystemURL) + console.log('[readFileAsArrayBuffer] typeof plus.io.FileReader:', typeof plus.io?.FileReader) + + // 方式1:尝试 plus.io.resolveLocalFileSystemURL + if (plus.io && typeof plus.io.resolveLocalFileSystemURL === 'function') { + plus.io.resolveLocalFileSystemURL(filePath, (entry) => { + console.log('[readFileAsArrayBuffer] entry.isFile:', entry.isFile) + console.log('[readFileAsArrayBuffer] entry.isDirectory:', entry.isDirectory) + console.log('[readFileAsArrayBuffer] entry.fullPath:', entry.fullPath) + console.log('[readFileAsArrayBuffer] typeof entry.file:', typeof entry.file) + + if (typeof entry.file !== 'function') { + reject(new Error('entry 没有 file 方法,isFile=' + entry.isFile + ' isDirectory=' + entry.isDirectory)) + return } - resolve(bytes) - }, - fail: (err) => reject(new Error('无法读取文件:' + (err.errMsg || err.message || ''))) - }) + + try { + entry.file((file) => { + console.log('[readFileAsArrayBuffer] entry.file 成功,file.size:', file.size) + const reader = new plus.io.FileReader() + reader.onloadend = (e) => { + const dataUrl = e.target.result + console.log('[readFileAsArrayBuffer] readAsDataURL 完成,dataUrl 长度:', dataUrl?.length) + try { + // dataUrl 格式: "data:;base64," + const base64 = dataUrl.substring(dataUrl.indexOf(',') + 1) + const binary = atob(base64) + const bytes = new Uint8Array(binary.length) + for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i) + console.log('[readFileAsArrayBuffer] 成功转为 Uint8Array,长度:', bytes.length) + resolve(bytes) + } catch (err) { + console.error('[readFileAsArrayBuffer] base64 解码失败', err) + reject(new Error('文件解码失败:' + err.message)) + } + } + reader.onerror = (e) => { + console.error('[readFileAsArrayBuffer] plus.io 读取失败', e) + reject(new Error('文件读取失败')) + } + reader.readAsDataURL(file) + }, (err) => { + console.error('[readFileAsArrayBuffer] 获取File对象失败', err) + reject(new Error('获取文件失败:' + (err.message || ''))) + }) + } catch (e) { + console.error('[readFileAsArrayBuffer] entry.file 调用同步异常:', e) + reject(new Error('entry.file 调用失败:' + (e.message || e))) + } + }, (err) => { + console.error('[readFileAsArrayBuffer] 解析文件路径失败', err) + reject(new Error('解析文件路径失败:' + (err.message || ''))) + }) + return + } + + // 方式2:降级 - 尝试 uni.getFileSystemManager + if (typeof uni !== 'undefined' && typeof uni.getFileSystemManager === 'function') { + console.log('[readFileAsArrayBuffer] 降级使用 uni.getFileSystemManager') + const fs = uni.getFileSystemManager() + fs.readFile({ + filePath: filePath, + success: (res) => { + const base64 = res.data || '' + const binary = atob(base64) + const bytes = new Uint8Array(binary.length) + for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i) + resolve(bytes) + }, + fail: (err) => reject(new Error('无法读取文件:' + (err.errMsg || ''))) + }) + return + } + + reject(new Error('App 环境下无可用的文件读取 API')) return } // H5 环境:fetch blob URL @@ -155,6 +224,7 @@ const readFileAsArrayBuffer = (filePath) => { export const extractWyxd = async (zipFilePath) => { const data = await readFileAsArrayBuffer(zipFilePath) + console.log("data",data); const zip = await JSZip.loadAsync(data) const result = { header: '', html: '', images: {} }