anytrek-front-public-component 1.14.6 → 1.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{ImageDisplayVideo-kH4dewgL.mjs → ImageDisplayVideo-C2bqBYPT.mjs} +353 -353
- package/README.md +4 -2
- package/anytrek-front-public-component.mjs +2 -2
- package/anytrek-front-public-component.umd.js +90 -90
- package/{index-NRinhG3n.mjs → index-CFR6ZOl5.mjs} +6634 -6550
- package/index-CPnUioab.mjs +70 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/{xgplayer-Cpii7T5s.mjs → xgplayer-C7FnRLni.mjs} +722 -699
- package/index-BrI6_G7d.mjs +0 -24
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var ze = Object.defineProperty;
|
|
2
|
-
var Ae = (
|
|
3
|
-
var Lt = (
|
|
2
|
+
var Ae = (bt, ft, v) => ft in bt ? ze(bt, ft, { enumerable: !0, configurable: !0, writable: !0, value: v }) : bt[ft] = v;
|
|
3
|
+
var Lt = (bt, ft, v) => Ae(bt, typeof ft != "symbol" ? ft + "" : ft, v);
|
|
4
4
|
import { ElButton as Ie } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
6
6
|
import "element-plus/es/components/button/style/css";
|
|
7
|
-
import {
|
|
8
|
-
import { defineComponent as Fe, computed as Ut, ref as mt, watch as ce, onMounted as Pe, onBeforeUnmount as Le, openBlock as Ct, createElementBlock as zt, normalizeStyle as Mt, createElementVNode as lt, toDisplayString as St, unref as jt, createCommentVNode as $t, createVNode as At, Transition as
|
|
9
|
-
import {
|
|
10
|
-
function Vt(
|
|
11
|
-
throw new Error('Could not dynamically require "' +
|
|
7
|
+
import { u as Te, a as ue, f as Oe, L as he, _ as Be, b as Re, c as De } from "./index-CFR6ZOl5.mjs";
|
|
8
|
+
import { defineComponent as Fe, computed as Ut, ref as mt, watch as ce, onMounted as Pe, onBeforeUnmount as Le, openBlock as Ct, createElementBlock as zt, normalizeStyle as Mt, createElementVNode as lt, toDisplayString as St, unref as jt, createCommentVNode as $t, createVNode as At, Transition as de, withCtx as Kt, withDirectives as ee, vShow as re, withModifiers as Bt, Fragment as fe, renderList as pe, normalizeClass as me } from "vue";
|
|
9
|
+
import { c as Xt, g as Ne, H as ge, P as Ue } from "./xgplayer-C7FnRLni.mjs";
|
|
10
|
+
function Vt(bt) {
|
|
11
|
+
throw new Error('Could not dynamically require "' + bt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
12
12
|
}
|
|
13
13
|
var be = { exports: {} };
|
|
14
14
|
/*!
|
|
@@ -22,9 +22,9 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
|
|
|
22
22
|
JSZip uses the library pako released under the MIT license :
|
|
23
23
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
24
24
|
*/
|
|
25
|
-
(function(
|
|
25
|
+
(function(bt, ft) {
|
|
26
26
|
(function(v) {
|
|
27
|
-
|
|
27
|
+
bt.exports = v();
|
|
28
28
|
})(function() {
|
|
29
29
|
return function v(N, w, h) {
|
|
30
30
|
function l(p, b) {
|
|
@@ -37,9 +37,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
37
37
|
throw _.code = "MODULE_NOT_FOUND", _;
|
|
38
38
|
}
|
|
39
39
|
var i = w[p] = { exports: {} };
|
|
40
|
-
N[p][0].call(i.exports, function(
|
|
41
|
-
var r = N[p][1][
|
|
42
|
-
return l(r ||
|
|
40
|
+
N[p][0].call(i.exports, function(d) {
|
|
41
|
+
var r = N[p][1][d];
|
|
42
|
+
return l(r || d);
|
|
43
43
|
}, i, i.exports, v, N, w, h);
|
|
44
44
|
}
|
|
45
45
|
return w[p].exports;
|
|
@@ -49,20 +49,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
49
49
|
}({ 1: [function(v, N, w) {
|
|
50
50
|
var h = v("./utils"), l = v("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
51
51
|
w.encode = function(o) {
|
|
52
|
-
for (var p, b, g, _, i,
|
|
52
|
+
for (var p, b, g, _, i, d, r, u = [], a = 0, f = o.length, y = f, S = h.getTypeOf(o) !== "string"; a < o.length; ) y = f - a, g = S ? (p = o[a++], b = a < f ? o[a++] : 0, a < f ? o[a++] : 0) : (p = o.charCodeAt(a++), b = a < f ? o.charCodeAt(a++) : 0, a < f ? o.charCodeAt(a++) : 0), _ = p >> 2, i = (3 & p) << 4 | b >> 4, d = 1 < y ? (15 & b) << 2 | g >> 6 : 64, r = 2 < y ? 63 & g : 64, u.push(n.charAt(_) + n.charAt(i) + n.charAt(d) + n.charAt(r));
|
|
53
53
|
return u.join("");
|
|
54
54
|
}, w.decode = function(o) {
|
|
55
|
-
var p, b, g, _, i,
|
|
55
|
+
var p, b, g, _, i, d, r = 0, u = 0, a = "data:";
|
|
56
56
|
if (o.substr(0, a.length) === a) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
57
|
-
var
|
|
57
|
+
var f, y = 3 * (o = o.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
58
58
|
if (o.charAt(o.length - 1) === n.charAt(64) && y--, o.charAt(o.length - 2) === n.charAt(64) && y--, y % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
59
|
-
for (
|
|
60
|
-
return
|
|
59
|
+
for (f = l.uint8array ? new Uint8Array(0 | y) : new Array(0 | y); r < o.length; ) p = n.indexOf(o.charAt(r++)) << 2 | (_ = n.indexOf(o.charAt(r++))) >> 4, b = (15 & _) << 4 | (i = n.indexOf(o.charAt(r++))) >> 2, g = (3 & i) << 6 | (d = n.indexOf(o.charAt(r++))), f[u++] = p, i !== 64 && (f[u++] = b), d !== 64 && (f[u++] = g);
|
|
60
|
+
return f;
|
|
61
61
|
};
|
|
62
62
|
}, { "./support": 30, "./utils": 32 }], 2: [function(v, N, w) {
|
|
63
63
|
var h = v("./external"), l = v("./stream/DataWorker"), n = v("./stream/Crc32Probe"), o = v("./stream/DataLengthProbe");
|
|
64
|
-
function p(b, g, _, i,
|
|
65
|
-
this.compressedSize = b, this.uncompressedSize = g, this.crc32 = _, this.compression = i, this.compressedContent =
|
|
64
|
+
function p(b, g, _, i, d) {
|
|
65
|
+
this.compressedSize = b, this.uncompressedSize = g, this.crc32 = _, this.compression = i, this.compressedContent = d;
|
|
66
66
|
}
|
|
67
67
|
p.prototype = { getContentWorker: function() {
|
|
68
68
|
var b = new l(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")), g = this;
|
|
@@ -92,14 +92,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
92
92
|
}();
|
|
93
93
|
N.exports = function(n, o) {
|
|
94
94
|
return n !== void 0 && n.length ? h.getTypeOf(n) !== "string" ? function(p, b, g, _) {
|
|
95
|
-
var i = l,
|
|
95
|
+
var i = l, d = _ + g;
|
|
96
96
|
p ^= -1;
|
|
97
|
-
for (var r = _; r <
|
|
97
|
+
for (var r = _; r < d; r++) p = p >>> 8 ^ i[255 & (p ^ b[r])];
|
|
98
98
|
return -1 ^ p;
|
|
99
99
|
}(0 | o, n, n.length, 0) : function(p, b, g, _) {
|
|
100
|
-
var i = l,
|
|
100
|
+
var i = l, d = _ + g;
|
|
101
101
|
p ^= -1;
|
|
102
|
-
for (var r = _; r <
|
|
102
|
+
for (var r = _; r < d; r++) p = p >>> 8 ^ i[255 & (p ^ b.charCodeAt(r))];
|
|
103
103
|
return -1 ^ p;
|
|
104
104
|
}(0 | o, n, n.length, 0) : 0;
|
|
105
105
|
};
|
|
@@ -131,16 +131,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
131
131
|
return new b("Inflate", {});
|
|
132
132
|
};
|
|
133
133
|
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(v, N, w) {
|
|
134
|
-
function h(i,
|
|
134
|
+
function h(i, d) {
|
|
135
135
|
var r, u = "";
|
|
136
|
-
for (r = 0; r <
|
|
136
|
+
for (r = 0; r < d; r++) u += String.fromCharCode(255 & i), i >>>= 8;
|
|
137
137
|
return u;
|
|
138
138
|
}
|
|
139
|
-
function l(i,
|
|
140
|
-
var y, S, x = i.file, F = i.compression, O =
|
|
141
|
-
|
|
139
|
+
function l(i, d, r, u, a, f) {
|
|
140
|
+
var y, S, x = i.file, F = i.compression, O = f !== p.utf8encode, U = n.transformTo("string", f(x.name)), I = n.transformTo("string", p.utf8encode(x.name)), H = x.comment, tt = n.transformTo("string", f(H)), m = n.transformTo("string", p.utf8encode(H)), T = I.length !== x.name.length, e = m.length !== H.length, D = "", rt = "", M = "", nt = x.dir, j = x.date, V = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
141
|
+
d && !r || (V.crc32 = i.crc32, V.compressedSize = i.compressedSize, V.uncompressedSize = i.uncompressedSize);
|
|
142
142
|
var z = 0;
|
|
143
|
-
|
|
143
|
+
d && (z |= 8), O || !T && !e || (z |= 2048);
|
|
144
144
|
var C = 0, et = 0;
|
|
145
145
|
nt && (C |= 16), a === "UNIX" ? (et = 798, C |= function($, ht) {
|
|
146
146
|
var pt = $;
|
|
@@ -153,59 +153,59 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
153
153
|
\0`, K += h(z, 2), K += F.magic, K += h(y, 2), K += h(S, 2), K += h(V.crc32, 4), K += h(V.compressedSize, 4), K += h(V.uncompressedSize, 4), K += h(U.length, 2), K += h(D.length, 2), { fileRecord: g.LOCAL_FILE_HEADER + K + U + D, dirRecord: g.CENTRAL_FILE_HEADER + h(et, 2) + K + h(tt.length, 2) + "\0\0\0\0" + h(C, 4) + h(u, 4) + U + D + tt };
|
|
154
154
|
}
|
|
155
155
|
var n = v("../utils"), o = v("../stream/GenericWorker"), p = v("../utf8"), b = v("../crc32"), g = v("../signature");
|
|
156
|
-
function _(i,
|
|
157
|
-
o.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment =
|
|
156
|
+
function _(i, d, r, u) {
|
|
157
|
+
o.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = d, this.zipPlatform = r, this.encodeFileName = u, this.streamFiles = i, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
158
158
|
}
|
|
159
159
|
n.inherits(_, o), _.prototype.push = function(i) {
|
|
160
|
-
var
|
|
161
|
-
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, o.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (
|
|
160
|
+
var d = i.meta.percent || 0, r = this.entriesCount, u = this._sources.length;
|
|
161
|
+
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, o.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (d + 100 * (r - u - 1)) / r : 100 } }));
|
|
162
162
|
}, _.prototype.openedSource = function(i) {
|
|
163
163
|
this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
|
|
164
|
-
var
|
|
165
|
-
if (
|
|
166
|
-
var r = l(i,
|
|
164
|
+
var d = this.streamFiles && !i.file.dir;
|
|
165
|
+
if (d) {
|
|
166
|
+
var r = l(i, d, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
167
167
|
this.push({ data: r.fileRecord, meta: { percent: 0 } });
|
|
168
168
|
} else this.accumulate = !0;
|
|
169
169
|
}, _.prototype.closedSource = function(i) {
|
|
170
170
|
this.accumulate = !1;
|
|
171
|
-
var
|
|
172
|
-
if (this.dirRecords.push(r.dirRecord),
|
|
171
|
+
var d = this.streamFiles && !i.file.dir, r = l(i, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
172
|
+
if (this.dirRecords.push(r.dirRecord), d) this.push({ data: function(u) {
|
|
173
173
|
return g.DATA_DESCRIPTOR + h(u.crc32, 4) + h(u.compressedSize, 4) + h(u.uncompressedSize, 4);
|
|
174
174
|
}(i), meta: { percent: 100 } });
|
|
175
175
|
else for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
176
176
|
this.currentFile = null;
|
|
177
177
|
}, _.prototype.flush = function() {
|
|
178
|
-
for (var i = this.bytesWritten,
|
|
179
|
-
var r = this.bytesWritten - i, u = function(a,
|
|
178
|
+
for (var i = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
|
|
179
|
+
var r = this.bytesWritten - i, u = function(a, f, y, S, x) {
|
|
180
180
|
var F = n.transformTo("string", x(S));
|
|
181
|
-
return g.CENTRAL_DIRECTORY_END + "\0\0\0\0" + h(a, 2) + h(a, 2) + h(
|
|
181
|
+
return g.CENTRAL_DIRECTORY_END + "\0\0\0\0" + h(a, 2) + h(a, 2) + h(f, 4) + h(y, 4) + h(F.length, 2) + F;
|
|
182
182
|
}(this.dirRecords.length, r, i, this.zipComment, this.encodeFileName);
|
|
183
183
|
this.push({ data: u, meta: { percent: 100 } });
|
|
184
184
|
}, _.prototype.prepareNextSource = function() {
|
|
185
185
|
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
186
186
|
}, _.prototype.registerPrevious = function(i) {
|
|
187
187
|
this._sources.push(i);
|
|
188
|
-
var
|
|
188
|
+
var d = this;
|
|
189
189
|
return i.on("data", function(r) {
|
|
190
|
-
|
|
190
|
+
d.processChunk(r);
|
|
191
191
|
}), i.on("end", function() {
|
|
192
|
-
|
|
192
|
+
d.closedSource(d.previous.streamInfo), d._sources.length ? d.prepareNextSource() : d.end();
|
|
193
193
|
}), i.on("error", function(r) {
|
|
194
|
-
|
|
194
|
+
d.error(r);
|
|
195
195
|
}), this;
|
|
196
196
|
}, _.prototype.resume = function() {
|
|
197
197
|
return !!o.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
198
198
|
}, _.prototype.error = function(i) {
|
|
199
|
-
var
|
|
199
|
+
var d = this._sources;
|
|
200
200
|
if (!o.prototype.error.call(this, i)) return !1;
|
|
201
|
-
for (var r = 0; r <
|
|
202
|
-
|
|
201
|
+
for (var r = 0; r < d.length; r++) try {
|
|
202
|
+
d[r].error(i);
|
|
203
203
|
} catch {
|
|
204
204
|
}
|
|
205
205
|
return !0;
|
|
206
206
|
}, _.prototype.lock = function() {
|
|
207
207
|
o.prototype.lock.call(this);
|
|
208
|
-
for (var i = this._sources,
|
|
208
|
+
for (var i = this._sources, d = 0; d < i.length; d++) i[d].lock();
|
|
209
209
|
}, N.exports = _;
|
|
210
210
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(v, N, w) {
|
|
211
211
|
var h = v("../compressions"), l = v("./ZipFileWorker");
|
|
@@ -214,12 +214,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
214
214
|
try {
|
|
215
215
|
n.forEach(function(_, i) {
|
|
216
216
|
g++;
|
|
217
|
-
var
|
|
218
|
-
var S =
|
|
217
|
+
var d = function(f, y) {
|
|
218
|
+
var S = f || y, x = h[S];
|
|
219
219
|
if (!x) throw new Error(S + " is not a valid compression method !");
|
|
220
220
|
return x;
|
|
221
221
|
}(i.options.compression, o.compression), r = i.options.compressionOptions || o.compressionOptions || {}, u = i.dir, a = i.date;
|
|
222
|
-
i._compressWorker(
|
|
222
|
+
i._compressWorker(d, r).withStreamInfo("file", { name: _, dir: u, date: a, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(b);
|
|
223
223
|
}), b.entriesCount = g;
|
|
224
224
|
} catch (_) {
|
|
225
225
|
b.error(_);
|
|
@@ -242,30 +242,30 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
242
242
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(v, N, w) {
|
|
243
243
|
var h = v("./utils"), l = v("./external"), n = v("./utf8"), o = v("./zipEntries"), p = v("./stream/Crc32Probe"), b = v("./nodejsUtils");
|
|
244
244
|
function g(_) {
|
|
245
|
-
return new l.Promise(function(i,
|
|
245
|
+
return new l.Promise(function(i, d) {
|
|
246
246
|
var r = _.decompressed.getContentWorker().pipe(new p());
|
|
247
247
|
r.on("error", function(u) {
|
|
248
|
-
|
|
248
|
+
d(u);
|
|
249
249
|
}).on("end", function() {
|
|
250
|
-
r.streamInfo.crc32 !== _.decompressed.crc32 ?
|
|
250
|
+
r.streamInfo.crc32 !== _.decompressed.crc32 ? d(new Error("Corrupted zip : CRC32 mismatch")) : i();
|
|
251
251
|
}).resume();
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
N.exports = function(_, i) {
|
|
255
|
-
var
|
|
255
|
+
var d = this;
|
|
256
256
|
return i = h.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), b.isNode && b.isStream(_) ? l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : h.prepareContent("the loaded zip file", _, !0, i.optimizedBinaryString, i.base64).then(function(r) {
|
|
257
257
|
var u = new o(i);
|
|
258
258
|
return u.load(r), u;
|
|
259
259
|
}).then(function(r) {
|
|
260
260
|
var u = [l.Promise.resolve(r)], a = r.files;
|
|
261
|
-
if (i.checkCRC32) for (var
|
|
261
|
+
if (i.checkCRC32) for (var f = 0; f < a.length; f++) u.push(g(a[f]));
|
|
262
262
|
return l.Promise.all(u);
|
|
263
263
|
}).then(function(r) {
|
|
264
|
-
for (var u = r.shift(), a = u.files,
|
|
265
|
-
var y = a[
|
|
266
|
-
|
|
264
|
+
for (var u = r.shift(), a = u.files, f = 0; f < a.length; f++) {
|
|
265
|
+
var y = a[f], S = y.fileNameStr, x = h.resolve(y.fileNameStr);
|
|
266
|
+
d.file(x, y.decompressed, { binary: !0, optimizedBinaryString: !0, date: y.date, dir: y.dir, comment: y.fileCommentStr.length ? y.fileCommentStr : null, unixPermissions: y.unixPermissions, dosPermissions: y.dosPermissions, createFolders: i.createFolders }), y.dir || (d.file(x).unsafeOriginalName = S);
|
|
267
267
|
}
|
|
268
|
-
return u.zipComment.length && (
|
|
268
|
+
return u.zipComment.length && (d.comment = u.zipComment), d;
|
|
269
269
|
});
|
|
270
270
|
};
|
|
271
271
|
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(v, N, w) {
|
|
@@ -320,21 +320,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
320
320
|
}, {}], 15: [function(v, N, w) {
|
|
321
321
|
function h(x, F, O) {
|
|
322
322
|
var U, I = n.getTypeOf(F), H = n.extend(O || {}, b);
|
|
323
|
-
H.date = H.date || /* @__PURE__ */ new Date(), H.compression !== null && (H.compression = H.compression.toUpperCase()), typeof H.unixPermissions == "string" && (H.unixPermissions = parseInt(H.unixPermissions, 8)), H.unixPermissions && 16384 & H.unixPermissions && (H.dir = !0), H.dosPermissions && 16 & H.dosPermissions && (H.dir = !0), H.dir && (x = a(x)), H.createFolders && (U = u(x)) &&
|
|
323
|
+
H.date = H.date || /* @__PURE__ */ new Date(), H.compression !== null && (H.compression = H.compression.toUpperCase()), typeof H.unixPermissions == "string" && (H.unixPermissions = parseInt(H.unixPermissions, 8)), H.unixPermissions && 16384 & H.unixPermissions && (H.dir = !0), H.dosPermissions && 16 & H.dosPermissions && (H.dir = !0), H.dir && (x = a(x)), H.createFolders && (U = u(x)) && f.call(this, U, !0);
|
|
324
324
|
var tt = I === "string" && H.binary === !1 && H.base64 === !1;
|
|
325
325
|
O && O.binary !== void 0 || (H.binary = !tt), (F instanceof g && F.uncompressedSize === 0 || H.dir || !F || F.length === 0) && (H.base64 = !1, H.binary = !0, F = "", H.compression = "STORE", I = "string");
|
|
326
326
|
var m = null;
|
|
327
|
-
m = F instanceof g || F instanceof o ? F :
|
|
327
|
+
m = F instanceof g || F instanceof o ? F : d.isNode && d.isStream(F) ? new r(x, F) : n.prepareContent(x, F, H.binary, H.optimizedBinaryString, H.base64);
|
|
328
328
|
var T = new _(x, m, H);
|
|
329
329
|
this.files[x] = T;
|
|
330
330
|
}
|
|
331
|
-
var l = v("./utf8"), n = v("./utils"), o = v("./stream/GenericWorker"), p = v("./stream/StreamHelper"), b = v("./defaults"), g = v("./compressedObject"), _ = v("./zipObject"), i = v("./generate"),
|
|
331
|
+
var l = v("./utf8"), n = v("./utils"), o = v("./stream/GenericWorker"), p = v("./stream/StreamHelper"), b = v("./defaults"), g = v("./compressedObject"), _ = v("./zipObject"), i = v("./generate"), d = v("./nodejsUtils"), r = v("./nodejs/NodejsStreamInputAdapter"), u = function(x) {
|
|
332
332
|
x.slice(-1) === "/" && (x = x.substring(0, x.length - 1));
|
|
333
333
|
var F = x.lastIndexOf("/");
|
|
334
334
|
return 0 < F ? x.substring(0, F) : "";
|
|
335
335
|
}, a = function(x) {
|
|
336
336
|
return x.slice(-1) !== "/" && (x += "/"), x;
|
|
337
|
-
},
|
|
337
|
+
}, f = function(x, F) {
|
|
338
338
|
return F = F !== void 0 ? F : b.createFolders, x = a(x), this.files[x] || h.call(this, x, null, { dir: !0, createFolders: F }), this.files[x];
|
|
339
339
|
};
|
|
340
340
|
function y(x) {
|
|
@@ -365,7 +365,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
365
365
|
if (y(x)) return this.filter(function(I, H) {
|
|
366
366
|
return H.dir && x.test(I);
|
|
367
367
|
});
|
|
368
|
-
var F = this.root + x, O =
|
|
368
|
+
var F = this.root + x, O = f.call(this, F), U = this.clone();
|
|
369
369
|
return U.root = O.name, U;
|
|
370
370
|
}, remove: function(x) {
|
|
371
371
|
x = this.root + x;
|
|
@@ -610,13 +610,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
610
610
|
g = v("../nodejs/NodejsStreamOutputAdapter");
|
|
611
611
|
} catch {
|
|
612
612
|
}
|
|
613
|
-
function _(
|
|
613
|
+
function _(d, r) {
|
|
614
614
|
return new b.Promise(function(u, a) {
|
|
615
|
-
var
|
|
616
|
-
|
|
617
|
-
|
|
615
|
+
var f = [], y = d._internalType, S = d._outputType, x = d._mimeType;
|
|
616
|
+
d.on("data", function(F, O) {
|
|
617
|
+
f.push(F), r && r(O);
|
|
618
618
|
}).on("error", function(F) {
|
|
619
|
-
|
|
619
|
+
f = [], a(F);
|
|
620
620
|
}).on("end", function() {
|
|
621
621
|
try {
|
|
622
622
|
var F = function(O, U, I) {
|
|
@@ -644,16 +644,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
644
644
|
default:
|
|
645
645
|
throw new Error("concat : unsupported type '" + O + "'");
|
|
646
646
|
}
|
|
647
|
-
}(y,
|
|
647
|
+
}(y, f), x);
|
|
648
648
|
u(F);
|
|
649
649
|
} catch (O) {
|
|
650
650
|
a(O);
|
|
651
651
|
}
|
|
652
|
-
|
|
652
|
+
f = [];
|
|
653
653
|
}).resume();
|
|
654
654
|
});
|
|
655
655
|
}
|
|
656
|
-
function i(
|
|
656
|
+
function i(d, r, u) {
|
|
657
657
|
var a = r;
|
|
658
658
|
switch (r) {
|
|
659
659
|
case "blob":
|
|
@@ -664,27 +664,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
664
664
|
a = "string";
|
|
665
665
|
}
|
|
666
666
|
try {
|
|
667
|
-
this._internalType = a, this._outputType = r, this._mimeType = u, h.checkSupport(a), this._worker =
|
|
668
|
-
} catch (
|
|
669
|
-
this._worker = new n("error"), this._worker.error(
|
|
667
|
+
this._internalType = a, this._outputType = r, this._mimeType = u, h.checkSupport(a), this._worker = d.pipe(new l(a)), d.lock();
|
|
668
|
+
} catch (f) {
|
|
669
|
+
this._worker = new n("error"), this._worker.error(f);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
i.prototype = { accumulate: function(
|
|
673
|
-
return _(this,
|
|
674
|
-
}, on: function(
|
|
672
|
+
i.prototype = { accumulate: function(d) {
|
|
673
|
+
return _(this, d);
|
|
674
|
+
}, on: function(d, r) {
|
|
675
675
|
var u = this;
|
|
676
|
-
return
|
|
676
|
+
return d === "data" ? this._worker.on(d, function(a) {
|
|
677
677
|
r.call(u, a.data, a.meta);
|
|
678
|
-
}) : this._worker.on(
|
|
678
|
+
}) : this._worker.on(d, function() {
|
|
679
679
|
h.delay(r, arguments, u);
|
|
680
680
|
}), this;
|
|
681
681
|
}, resume: function() {
|
|
682
682
|
return h.delay(this._worker.resume, [], this._worker), this;
|
|
683
683
|
}, pause: function() {
|
|
684
684
|
return this._worker.pause(), this;
|
|
685
|
-
}, toNodejsStream: function(
|
|
685
|
+
}, toNodejsStream: function(d) {
|
|
686
686
|
if (h.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
687
|
-
return new g(this, { objectMode: this._outputType !== "nodebuffer" },
|
|
687
|
+
return new g(this, { objectMode: this._outputType !== "nodebuffer" }, d);
|
|
688
688
|
} }, N.exports = i;
|
|
689
689
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(v, N, w) {
|
|
690
690
|
if (w.base64 = !0, w.array = !0, w.string = !0, w.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", w.nodebuffer = typeof Buffer < "u", w.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") w.blob = !1;
|
|
@@ -716,38 +716,38 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
716
716
|
o.call(this, "utf-8 encode");
|
|
717
717
|
}
|
|
718
718
|
w.utf8encode = function(i) {
|
|
719
|
-
return l.nodebuffer ? n.newBufferFrom(i, "utf-8") : function(
|
|
720
|
-
var r, u, a,
|
|
721
|
-
for (
|
|
722
|
-
for (r = l.uint8array ? new Uint8Array(x) : new Array(x),
|
|
719
|
+
return l.nodebuffer ? n.newBufferFrom(i, "utf-8") : function(d) {
|
|
720
|
+
var r, u, a, f, y, S = d.length, x = 0;
|
|
721
|
+
for (f = 0; f < S; f++) (64512 & (u = d.charCodeAt(f))) == 55296 && f + 1 < S && (64512 & (a = d.charCodeAt(f + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), f++), x += u < 128 ? 1 : u < 2048 ? 2 : u < 65536 ? 3 : 4;
|
|
722
|
+
for (r = l.uint8array ? new Uint8Array(x) : new Array(x), f = y = 0; y < x; f++) (64512 & (u = d.charCodeAt(f))) == 55296 && f + 1 < S && (64512 & (a = d.charCodeAt(f + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), f++), u < 128 ? r[y++] = u : (u < 2048 ? r[y++] = 192 | u >>> 6 : (u < 65536 ? r[y++] = 224 | u >>> 12 : (r[y++] = 240 | u >>> 18, r[y++] = 128 | u >>> 12 & 63), r[y++] = 128 | u >>> 6 & 63), r[y++] = 128 | 63 & u);
|
|
723
723
|
return r;
|
|
724
724
|
}(i);
|
|
725
725
|
}, w.utf8decode = function(i) {
|
|
726
|
-
return l.nodebuffer ? h.transformTo("nodebuffer", i).toString("utf-8") : function(
|
|
727
|
-
var r, u, a,
|
|
728
|
-
for (r = u = 0; r < y; ) if ((a =
|
|
729
|
-
else if (4 < (
|
|
726
|
+
return l.nodebuffer ? h.transformTo("nodebuffer", i).toString("utf-8") : function(d) {
|
|
727
|
+
var r, u, a, f, y = d.length, S = new Array(2 * y);
|
|
728
|
+
for (r = u = 0; r < y; ) if ((a = d[r++]) < 128) S[u++] = a;
|
|
729
|
+
else if (4 < (f = p[a])) S[u++] = 65533, r += f - 1;
|
|
730
730
|
else {
|
|
731
|
-
for (a &=
|
|
732
|
-
1 <
|
|
731
|
+
for (a &= f === 2 ? 31 : f === 3 ? 15 : 7; 1 < f && r < y; ) a = a << 6 | 63 & d[r++], f--;
|
|
732
|
+
1 < f ? S[u++] = 65533 : a < 65536 ? S[u++] = a : (a -= 65536, S[u++] = 55296 | a >> 10 & 1023, S[u++] = 56320 | 1023 & a);
|
|
733
733
|
}
|
|
734
734
|
return S.length !== u && (S.subarray ? S = S.subarray(0, u) : S.length = u), h.applyFromCharCode(S);
|
|
735
735
|
}(i = h.transformTo(l.uint8array ? "uint8array" : "array", i));
|
|
736
736
|
}, h.inherits(g, o), g.prototype.processChunk = function(i) {
|
|
737
|
-
var
|
|
737
|
+
var d = h.transformTo(l.uint8array ? "uint8array" : "array", i.data);
|
|
738
738
|
if (this.leftOver && this.leftOver.length) {
|
|
739
739
|
if (l.uint8array) {
|
|
740
|
-
var r =
|
|
741
|
-
(
|
|
742
|
-
} else
|
|
740
|
+
var r = d;
|
|
741
|
+
(d = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), d.set(r, this.leftOver.length);
|
|
742
|
+
} else d = this.leftOver.concat(d);
|
|
743
743
|
this.leftOver = null;
|
|
744
744
|
}
|
|
745
|
-
var u = function(
|
|
745
|
+
var u = function(f, y) {
|
|
746
746
|
var S;
|
|
747
|
-
for ((y = y ||
|
|
748
|
-
return S < 0 || S === 0 ? y : S + p[
|
|
749
|
-
}(
|
|
750
|
-
u !==
|
|
747
|
+
for ((y = y || f.length) > f.length && (y = f.length), S = y - 1; 0 <= S && (192 & f[S]) == 128; ) S--;
|
|
748
|
+
return S < 0 || S === 0 ? y : S + p[f[S]] > y ? S : y;
|
|
749
|
+
}(d), a = d;
|
|
750
|
+
u !== d.length && (l.uint8array ? (a = d.subarray(0, u), this.leftOver = d.subarray(u, d.length)) : (a = d.slice(0, u), this.leftOver = d.slice(u, d.length))), this.push({ data: w.utf8decode(a), meta: i.meta });
|
|
751
751
|
}, g.prototype.flush = function() {
|
|
752
752
|
this.leftOver && this.leftOver.length && (this.push({ data: w.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
753
753
|
}, w.Utf8DecodeWorker = g, h.inherits(_, o), _.prototype.processChunk = function(i) {
|
|
@@ -776,10 +776,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
778
|
var g = { stringifyByChunk: function(r, u, a) {
|
|
779
|
-
var
|
|
779
|
+
var f = [], y = 0, S = r.length;
|
|
780
780
|
if (S <= a) return String.fromCharCode.apply(null, r);
|
|
781
|
-
for (; y < S; ) u === "array" || u === "nodebuffer" ?
|
|
782
|
-
return
|
|
781
|
+
for (; y < S; ) u === "array" || u === "nodebuffer" ? f.push(String.fromCharCode.apply(null, r.slice(y, Math.min(y + a, S)))) : f.push(String.fromCharCode.apply(null, r.subarray(y, Math.min(y + a, S)))), y += a;
|
|
782
|
+
return f.join("");
|
|
783
783
|
}, stringifyByChar: function(r) {
|
|
784
784
|
for (var u = "", a = 0; a < r.length; a++) u += String.fromCharCode(r[a]);
|
|
785
785
|
return u;
|
|
@@ -797,8 +797,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
797
797
|
}
|
|
798
798
|
}() } };
|
|
799
799
|
function _(r) {
|
|
800
|
-
var u = 65536, a = w.getTypeOf(r),
|
|
801
|
-
if (a === "uint8array" ?
|
|
800
|
+
var u = 65536, a = w.getTypeOf(r), f = !0;
|
|
801
|
+
if (a === "uint8array" ? f = g.applyCanBeUsed.uint8array : a === "nodebuffer" && (f = g.applyCanBeUsed.nodebuffer), f) for (; 1 < u; ) try {
|
|
802
802
|
return g.stringifyByChunk(r, a, u);
|
|
803
803
|
} catch {
|
|
804
804
|
u = Math.floor(u / 2);
|
|
@@ -810,22 +810,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
810
810
|
return u;
|
|
811
811
|
}
|
|
812
812
|
w.applyFromCharCode = _;
|
|
813
|
-
var
|
|
814
|
-
|
|
813
|
+
var d = {};
|
|
814
|
+
d.string = { string: p, array: function(r) {
|
|
815
815
|
return b(r, new Array(r.length));
|
|
816
816
|
}, arraybuffer: function(r) {
|
|
817
|
-
return
|
|
817
|
+
return d.string.uint8array(r).buffer;
|
|
818
818
|
}, uint8array: function(r) {
|
|
819
819
|
return b(r, new Uint8Array(r.length));
|
|
820
820
|
}, nodebuffer: function(r) {
|
|
821
821
|
return b(r, n.allocBuffer(r.length));
|
|
822
|
-
} },
|
|
822
|
+
} }, d.array = { string: _, array: p, arraybuffer: function(r) {
|
|
823
823
|
return new Uint8Array(r).buffer;
|
|
824
824
|
}, uint8array: function(r) {
|
|
825
825
|
return new Uint8Array(r);
|
|
826
826
|
}, nodebuffer: function(r) {
|
|
827
827
|
return n.newBufferFrom(r);
|
|
828
|
-
} },
|
|
828
|
+
} }, d.arraybuffer = { string: function(r) {
|
|
829
829
|
return _(new Uint8Array(r));
|
|
830
830
|
}, array: function(r) {
|
|
831
831
|
return i(new Uint8Array(r), new Array(r.byteLength));
|
|
@@ -833,27 +833,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
833
833
|
return new Uint8Array(r);
|
|
834
834
|
}, nodebuffer: function(r) {
|
|
835
835
|
return n.newBufferFrom(new Uint8Array(r));
|
|
836
|
-
} },
|
|
836
|
+
} }, d.uint8array = { string: _, array: function(r) {
|
|
837
837
|
return i(r, new Array(r.length));
|
|
838
838
|
}, arraybuffer: function(r) {
|
|
839
839
|
return r.buffer;
|
|
840
840
|
}, uint8array: p, nodebuffer: function(r) {
|
|
841
841
|
return n.newBufferFrom(r);
|
|
842
|
-
} },
|
|
842
|
+
} }, d.nodebuffer = { string: _, array: function(r) {
|
|
843
843
|
return i(r, new Array(r.length));
|
|
844
844
|
}, arraybuffer: function(r) {
|
|
845
|
-
return
|
|
845
|
+
return d.nodebuffer.uint8array(r).buffer;
|
|
846
846
|
}, uint8array: function(r) {
|
|
847
847
|
return i(r, new Uint8Array(r.length));
|
|
848
848
|
}, nodebuffer: p }, w.transformTo = function(r, u) {
|
|
849
849
|
if (u = u || "", !r) return u;
|
|
850
850
|
w.checkSupport(r);
|
|
851
851
|
var a = w.getTypeOf(u);
|
|
852
|
-
return
|
|
852
|
+
return d[a][r](u);
|
|
853
853
|
}, w.resolve = function(r) {
|
|
854
|
-
for (var u = r.split("/"), a = [],
|
|
855
|
-
var y = u[
|
|
856
|
-
y === "." || y === "" &&
|
|
854
|
+
for (var u = r.split("/"), a = [], f = 0; f < u.length; f++) {
|
|
855
|
+
var y = u[f];
|
|
856
|
+
y === "." || y === "" && f !== 0 && f !== u.length - 1 || (y === ".." ? a.pop() : a.push(y));
|
|
857
857
|
}
|
|
858
858
|
return a.join("/");
|
|
859
859
|
}, w.getTypeOf = function(r) {
|
|
@@ -861,9 +861,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
861
861
|
}, w.checkSupport = function(r) {
|
|
862
862
|
if (!h[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
|
|
863
863
|
}, w.MAX_VALUE_16BITS = 65535, w.MAX_VALUE_32BITS = -1, w.pretty = function(r) {
|
|
864
|
-
var u, a,
|
|
865
|
-
for (a = 0; a < (r || "").length; a++)
|
|
866
|
-
return
|
|
864
|
+
var u, a, f = "";
|
|
865
|
+
for (a = 0; a < (r || "").length; a++) f += "\\x" + ((u = r.charCodeAt(a)) < 16 ? "0" : "") + u.toString(16).toUpperCase();
|
|
866
|
+
return f;
|
|
867
867
|
}, w.delay = function(r, u, a) {
|
|
868
868
|
setImmediate(function() {
|
|
869
869
|
r.apply(a || null, u || []);
|
|
@@ -876,7 +876,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
876
876
|
var r, u, a = {};
|
|
877
877
|
for (r = 0; r < arguments.length; r++) for (u in arguments[r]) Object.prototype.hasOwnProperty.call(arguments[r], u) && a[u] === void 0 && (a[u] = arguments[r][u]);
|
|
878
878
|
return a;
|
|
879
|
-
}, w.prepareContent = function(r, u, a,
|
|
879
|
+
}, w.prepareContent = function(r, u, a, f, y) {
|
|
880
880
|
return o.Promise.resolve(u).then(function(S) {
|
|
881
881
|
return h.blob && (S instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(S)) !== -1) && typeof FileReader < "u" ? new o.Promise(function(x, F) {
|
|
882
882
|
var O = new FileReader();
|
|
@@ -888,7 +888,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
888
888
|
}) : S;
|
|
889
889
|
}).then(function(S) {
|
|
890
890
|
var x = w.getTypeOf(S);
|
|
891
|
-
return x ? (x === "arraybuffer" ? S = w.transformTo("uint8array", S) : x === "string" && (y ? S = l.decode(S) : a &&
|
|
891
|
+
return x ? (x === "arraybuffer" ? S = w.transformTo("uint8array", S) : x === "string" && (y ? S = l.decode(S) : a && f !== !0 && (S = function(F) {
|
|
892
892
|
return b(F, h.uint8array ? new Uint8Array(F.length) : new Array(F.length));
|
|
893
893
|
}(S))), S) : o.Promise.reject(new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
894
894
|
});
|
|
@@ -907,15 +907,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
907
907
|
}, isSignature: function(g, _) {
|
|
908
908
|
var i = this.reader.index;
|
|
909
909
|
this.reader.setIndex(g);
|
|
910
|
-
var
|
|
911
|
-
return this.reader.setIndex(i),
|
|
910
|
+
var d = this.reader.readString(4) === _;
|
|
911
|
+
return this.reader.setIndex(i), d;
|
|
912
912
|
}, readBlockEndOfCentral: function() {
|
|
913
913
|
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);
|
|
914
914
|
var g = this.reader.readData(this.zipCommentLength), _ = p.uint8array ? "uint8array" : "array", i = l.transformTo(_, g);
|
|
915
915
|
this.zipComment = this.loadOptions.decodeFileName(i);
|
|
916
916
|
}, readBlockZip64EndOfCentral: function() {
|
|
917
917
|
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 = {};
|
|
918
|
-
for (var g, _, i,
|
|
918
|
+
for (var g, _, i, d = this.zip64EndOfCentralSize - 44; 0 < d; ) g = this.reader.readInt(2), _ = this.reader.readInt(4), i = this.reader.readData(_), this.zip64ExtensibleData[g] = { id: g, length: _, value: i };
|
|
919
919
|
}, readBlockZip64EndOfCentralLocator: function() {
|
|
920
920
|
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");
|
|
921
921
|
}, readLocalFiles: function() {
|
|
@@ -937,9 +937,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
937
937
|
}
|
|
938
938
|
var i = this.centralDirOffset + this.centralDirSize;
|
|
939
939
|
this.zip64 && (i += 20, i += 12 + this.zip64EndOfCentralSize);
|
|
940
|
-
var
|
|
941
|
-
if (0 <
|
|
942
|
-
else if (
|
|
940
|
+
var d = _ - i;
|
|
941
|
+
if (0 < d) this.isSignature(_, n.CENTRAL_FILE_HEADER) || (this.reader.zero = d);
|
|
942
|
+
else if (d < 0) throw new Error("Corrupted zip: missing " + Math.abs(d) + " bytes.");
|
|
943
943
|
}, prepareReader: function(g) {
|
|
944
944
|
this.reader = h(g);
|
|
945
945
|
}, load: function(g) {
|
|
@@ -947,26 +947,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
947
947
|
} }, N.exports = b;
|
|
948
948
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(v, N, w) {
|
|
949
949
|
var h = v("./reader/readerFor"), l = v("./utils"), n = v("./compressedObject"), o = v("./crc32"), p = v("./utf8"), b = v("./compressions"), g = v("./support");
|
|
950
|
-
function _(i,
|
|
951
|
-
this.options = i, this.loadOptions =
|
|
950
|
+
function _(i, d) {
|
|
951
|
+
this.options = i, this.loadOptions = d;
|
|
952
952
|
}
|
|
953
953
|
_.prototype = { isEncrypted: function() {
|
|
954
954
|
return (1 & this.bitFlag) == 1;
|
|
955
955
|
}, useUTF8: function() {
|
|
956
956
|
return (2048 & this.bitFlag) == 2048;
|
|
957
957
|
}, readLocalPart: function(i) {
|
|
958
|
-
var
|
|
958
|
+
var d, r;
|
|
959
959
|
if (i.skip(22), this.fileNameLength = i.readInt(2), r = i.readInt(2), this.fileName = i.readData(this.fileNameLength), i.skip(r), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
960
|
-
if ((
|
|
960
|
+
if ((d = function(u) {
|
|
961
961
|
for (var a in b) if (Object.prototype.hasOwnProperty.call(b, a) && b[a].magic === u) return b[a];
|
|
962
962
|
return null;
|
|
963
963
|
}(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + l.pretty(this.compressionMethod) + " unknown (inner file : " + l.transformTo("string", this.fileName) + ")");
|
|
964
|
-
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32,
|
|
964
|
+
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, d, i.readData(this.compressedSize));
|
|
965
965
|
}, readCentralPart: function(i) {
|
|
966
966
|
this.versionMadeBy = i.readInt(2), i.skip(2), this.bitFlag = i.readInt(2), this.compressionMethod = i.readString(2), this.date = i.readDate(), this.crc32 = i.readInt(4), this.compressedSize = i.readInt(4), this.uncompressedSize = i.readInt(4);
|
|
967
|
-
var
|
|
967
|
+
var d = i.readInt(2);
|
|
968
968
|
if (this.extraFieldsLength = i.readInt(2), this.fileCommentLength = i.readInt(2), this.diskNumberStart = i.readInt(2), this.internalFileAttributes = i.readInt(2), this.externalFileAttributes = i.readInt(4), this.localHeaderOffset = i.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
|
|
969
|
-
i.skip(
|
|
969
|
+
i.skip(d), this.readExtraFields(i), this.parseZIP64ExtraField(i), this.fileComment = i.readData(this.fileCommentLength);
|
|
970
970
|
}, processAttributes: function() {
|
|
971
971
|
this.unixPermissions = null, this.dosPermissions = null;
|
|
972
972
|
var i = this.versionMadeBy >> 8;
|
|
@@ -977,15 +977,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
977
977
|
this.uncompressedSize === l.MAX_VALUE_32BITS && (this.uncompressedSize = i.readInt(8)), this.compressedSize === l.MAX_VALUE_32BITS && (this.compressedSize = i.readInt(8)), this.localHeaderOffset === l.MAX_VALUE_32BITS && (this.localHeaderOffset = i.readInt(8)), this.diskNumberStart === l.MAX_VALUE_32BITS && (this.diskNumberStart = i.readInt(4));
|
|
978
978
|
}
|
|
979
979
|
}, readExtraFields: function(i) {
|
|
980
|
-
var
|
|
981
|
-
for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; )
|
|
980
|
+
var d, r, u, a = i.index + this.extraFieldsLength;
|
|
981
|
+
for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; ) d = i.readInt(2), r = i.readInt(2), u = i.readData(r), this.extraFields[d] = { id: d, length: r, value: u };
|
|
982
982
|
i.setIndex(a);
|
|
983
983
|
}, handleUTF8: function() {
|
|
984
984
|
var i = g.uint8array ? "uint8array" : "array";
|
|
985
985
|
if (this.useUTF8()) this.fileNameStr = p.utf8decode(this.fileName), this.fileCommentStr = p.utf8decode(this.fileComment);
|
|
986
986
|
else {
|
|
987
|
-
var
|
|
988
|
-
if (
|
|
987
|
+
var d = this.findExtraFieldUnicodePath();
|
|
988
|
+
if (d !== null) this.fileNameStr = d;
|
|
989
989
|
else {
|
|
990
990
|
var r = l.transformTo(i, this.fileName);
|
|
991
991
|
this.fileNameStr = this.loadOptions.decodeFileName(r);
|
|
@@ -1000,43 +1000,43 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1000
1000
|
}, findExtraFieldUnicodePath: function() {
|
|
1001
1001
|
var i = this.extraFields[28789];
|
|
1002
1002
|
if (i) {
|
|
1003
|
-
var
|
|
1004
|
-
return
|
|
1003
|
+
var d = h(i.value);
|
|
1004
|
+
return d.readInt(1) !== 1 || o(this.fileName) !== d.readInt(4) ? null : p.utf8decode(d.readData(i.length - 5));
|
|
1005
1005
|
}
|
|
1006
1006
|
return null;
|
|
1007
1007
|
}, findExtraFieldUnicodeComment: function() {
|
|
1008
1008
|
var i = this.extraFields[25461];
|
|
1009
1009
|
if (i) {
|
|
1010
|
-
var
|
|
1011
|
-
return
|
|
1010
|
+
var d = h(i.value);
|
|
1011
|
+
return d.readInt(1) !== 1 || o(this.fileComment) !== d.readInt(4) ? null : p.utf8decode(d.readData(i.length - 5));
|
|
1012
1012
|
}
|
|
1013
1013
|
return null;
|
|
1014
1014
|
} }, N.exports = _;
|
|
1015
1015
|
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(v, N, w) {
|
|
1016
|
-
function h(
|
|
1017
|
-
this.name =
|
|
1016
|
+
function h(d, r, u) {
|
|
1017
|
+
this.name = d, this.dir = u.dir, this.date = u.date, this.comment = u.comment, this.unixPermissions = u.unixPermissions, this.dosPermissions = u.dosPermissions, this._data = r, this._dataBinary = u.binary, this.options = { compression: u.compression, compressionOptions: u.compressionOptions };
|
|
1018
1018
|
}
|
|
1019
1019
|
var l = v("./stream/StreamHelper"), n = v("./stream/DataWorker"), o = v("./utf8"), p = v("./compressedObject"), b = v("./stream/GenericWorker");
|
|
1020
|
-
h.prototype = { internalStream: function(
|
|
1020
|
+
h.prototype = { internalStream: function(d) {
|
|
1021
1021
|
var r = null, u = "string";
|
|
1022
1022
|
try {
|
|
1023
|
-
if (!
|
|
1024
|
-
var a = (u =
|
|
1023
|
+
if (!d) throw new Error("No output type specified.");
|
|
1024
|
+
var a = (u = d.toLowerCase()) === "string" || u === "text";
|
|
1025
1025
|
u !== "binarystring" && u !== "text" || (u = "string"), r = this._decompressWorker();
|
|
1026
|
-
var
|
|
1027
|
-
|
|
1026
|
+
var f = !this._dataBinary;
|
|
1027
|
+
f && !a && (r = r.pipe(new o.Utf8EncodeWorker())), !f && a && (r = r.pipe(new o.Utf8DecodeWorker()));
|
|
1028
1028
|
} catch (y) {
|
|
1029
1029
|
(r = new b("error")).error(y);
|
|
1030
1030
|
}
|
|
1031
1031
|
return new l(r, u, "");
|
|
1032
|
-
}, async: function(
|
|
1033
|
-
return this.internalStream(
|
|
1034
|
-
}, nodeStream: function(
|
|
1035
|
-
return this.internalStream(
|
|
1036
|
-
}, _compressWorker: function(
|
|
1037
|
-
if (this._data instanceof p && this._data.compression.magic ===
|
|
1032
|
+
}, async: function(d, r) {
|
|
1033
|
+
return this.internalStream(d).accumulate(r);
|
|
1034
|
+
}, nodeStream: function(d, r) {
|
|
1035
|
+
return this.internalStream(d || "nodebuffer").toNodejsStream(r);
|
|
1036
|
+
}, _compressWorker: function(d, r) {
|
|
1037
|
+
if (this._data instanceof p && this._data.compression.magic === d.magic) return this._data.getCompressedWorker();
|
|
1038
1038
|
var u = this._decompressWorker();
|
|
1039
|
-
return this._dataBinary || (u = u.pipe(new o.Utf8EncodeWorker())), p.createWorkerFrom(u,
|
|
1039
|
+
return this._dataBinary || (u = u.pipe(new o.Utf8EncodeWorker())), p.createWorkerFrom(u, d, r);
|
|
1040
1040
|
}, _decompressWorker: function() {
|
|
1041
1041
|
return this._data instanceof p ? this._data.getContentWorker() : this._data instanceof b ? this._data : new n(this._data);
|
|
1042
1042
|
} };
|
|
@@ -1048,26 +1048,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1048
1048
|
(function(h) {
|
|
1049
1049
|
var l, n, o = h.MutationObserver || h.WebKitMutationObserver;
|
|
1050
1050
|
if (o) {
|
|
1051
|
-
var p = 0, b = new o(
|
|
1051
|
+
var p = 0, b = new o(d), g = h.document.createTextNode("");
|
|
1052
1052
|
b.observe(g, { characterData: !0 }), l = function() {
|
|
1053
1053
|
g.data = p = ++p % 2;
|
|
1054
1054
|
};
|
|
1055
1055
|
} else if (h.setImmediate || h.MessageChannel === void 0) l = "document" in h && "onreadystatechange" in h.document.createElement("script") ? function() {
|
|
1056
1056
|
var r = h.document.createElement("script");
|
|
1057
1057
|
r.onreadystatechange = function() {
|
|
1058
|
-
|
|
1058
|
+
d(), r.onreadystatechange = null, r.parentNode.removeChild(r), r = null;
|
|
1059
1059
|
}, h.document.documentElement.appendChild(r);
|
|
1060
1060
|
} : function() {
|
|
1061
|
-
setTimeout(
|
|
1061
|
+
setTimeout(d, 0);
|
|
1062
1062
|
};
|
|
1063
1063
|
else {
|
|
1064
1064
|
var _ = new h.MessageChannel();
|
|
1065
|
-
_.port1.onmessage =
|
|
1065
|
+
_.port1.onmessage = d, l = function() {
|
|
1066
1066
|
_.port2.postMessage(0);
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
1069
|
var i = [];
|
|
1070
|
-
function
|
|
1070
|
+
function d() {
|
|
1071
1071
|
var r, u;
|
|
1072
1072
|
n = !0;
|
|
1073
1073
|
for (var a = i.length; a; ) {
|
|
@@ -1089,27 +1089,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1089
1089
|
if (typeof a != "function") throw new TypeError("resolver must be a function");
|
|
1090
1090
|
this.state = b, this.queue = [], this.outcome = void 0, a !== l && r(this, a);
|
|
1091
1091
|
}
|
|
1092
|
-
function _(a,
|
|
1093
|
-
this.promise = a, typeof
|
|
1092
|
+
function _(a, f, y) {
|
|
1093
|
+
this.promise = a, typeof f == "function" && (this.onFulfilled = f, this.callFulfilled = this.otherCallFulfilled), typeof y == "function" && (this.onRejected = y, this.callRejected = this.otherCallRejected);
|
|
1094
1094
|
}
|
|
1095
|
-
function i(a,
|
|
1095
|
+
function i(a, f, y) {
|
|
1096
1096
|
h(function() {
|
|
1097
1097
|
var S;
|
|
1098
1098
|
try {
|
|
1099
|
-
S =
|
|
1099
|
+
S = f(y);
|
|
1100
1100
|
} catch (x) {
|
|
1101
1101
|
return n.reject(a, x);
|
|
1102
1102
|
}
|
|
1103
1103
|
S === a ? n.reject(a, new TypeError("Cannot resolve promise with itself")) : n.resolve(a, S);
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1107
|
-
var
|
|
1108
|
-
if (a && (typeof a == "object" || typeof a == "function") && typeof
|
|
1109
|
-
|
|
1106
|
+
function d(a) {
|
|
1107
|
+
var f = a && a.then;
|
|
1108
|
+
if (a && (typeof a == "object" || typeof a == "function") && typeof f == "function") return function() {
|
|
1109
|
+
f.apply(a, arguments);
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
|
-
function r(a,
|
|
1112
|
+
function r(a, f) {
|
|
1113
1113
|
var y = !1;
|
|
1114
1114
|
function S(O) {
|
|
1115
1115
|
y || (y = !0, n.reject(a, O));
|
|
@@ -1118,14 +1118,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1118
1118
|
y || (y = !0, n.resolve(a, O));
|
|
1119
1119
|
}
|
|
1120
1120
|
var F = u(function() {
|
|
1121
|
-
|
|
1121
|
+
f(x, S);
|
|
1122
1122
|
});
|
|
1123
1123
|
F.status === "error" && S(F.value);
|
|
1124
1124
|
}
|
|
1125
|
-
function u(a,
|
|
1125
|
+
function u(a, f) {
|
|
1126
1126
|
var y = {};
|
|
1127
1127
|
try {
|
|
1128
|
-
y.value = a(
|
|
1128
|
+
y.value = a(f), y.status = "success";
|
|
1129
1129
|
} catch (S) {
|
|
1130
1130
|
y.status = "error", y.value = S;
|
|
1131
1131
|
}
|
|
@@ -1133,22 +1133,22 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1133
1133
|
}
|
|
1134
1134
|
(N.exports = g).prototype.finally = function(a) {
|
|
1135
1135
|
if (typeof a != "function") return this;
|
|
1136
|
-
var
|
|
1136
|
+
var f = this.constructor;
|
|
1137
1137
|
return this.then(function(y) {
|
|
1138
|
-
return
|
|
1138
|
+
return f.resolve(a()).then(function() {
|
|
1139
1139
|
return y;
|
|
1140
1140
|
});
|
|
1141
1141
|
}, function(y) {
|
|
1142
|
-
return
|
|
1142
|
+
return f.resolve(a()).then(function() {
|
|
1143
1143
|
throw y;
|
|
1144
1144
|
});
|
|
1145
1145
|
});
|
|
1146
1146
|
}, g.prototype.catch = function(a) {
|
|
1147
1147
|
return this.then(null, a);
|
|
1148
|
-
}, g.prototype.then = function(a,
|
|
1149
|
-
if (typeof a != "function" && this.state === p || typeof
|
|
1148
|
+
}, g.prototype.then = function(a, f) {
|
|
1149
|
+
if (typeof a != "function" && this.state === p || typeof f != "function" && this.state === o) return this;
|
|
1150
1150
|
var y = new this.constructor(l);
|
|
1151
|
-
return this.state !== b ? i(y, this.state === p ? a :
|
|
1151
|
+
return this.state !== b ? i(y, this.state === p ? a : f, this.outcome) : this.queue.push(new _(y, a, f)), y;
|
|
1152
1152
|
}, _.prototype.callFulfilled = function(a) {
|
|
1153
1153
|
n.resolve(this.promise, a);
|
|
1154
1154
|
}, _.prototype.otherCallFulfilled = function(a) {
|
|
@@ -1157,45 +1157,45 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1157
1157
|
n.reject(this.promise, a);
|
|
1158
1158
|
}, _.prototype.otherCallRejected = function(a) {
|
|
1159
1159
|
i(this.promise, this.onRejected, a);
|
|
1160
|
-
}, n.resolve = function(a,
|
|
1161
|
-
var y = u(
|
|
1160
|
+
}, n.resolve = function(a, f) {
|
|
1161
|
+
var y = u(d, f);
|
|
1162
1162
|
if (y.status === "error") return n.reject(a, y.value);
|
|
1163
1163
|
var S = y.value;
|
|
1164
1164
|
if (S) r(a, S);
|
|
1165
1165
|
else {
|
|
1166
|
-
a.state = p, a.outcome =
|
|
1167
|
-
for (var x = -1, F = a.queue.length; ++x < F; ) a.queue[x].callFulfilled(
|
|
1166
|
+
a.state = p, a.outcome = f;
|
|
1167
|
+
for (var x = -1, F = a.queue.length; ++x < F; ) a.queue[x].callFulfilled(f);
|
|
1168
1168
|
}
|
|
1169
1169
|
return a;
|
|
1170
|
-
}, n.reject = function(a,
|
|
1171
|
-
a.state = o, a.outcome =
|
|
1172
|
-
for (var y = -1, S = a.queue.length; ++y < S; ) a.queue[y].callRejected(
|
|
1170
|
+
}, n.reject = function(a, f) {
|
|
1171
|
+
a.state = o, a.outcome = f;
|
|
1172
|
+
for (var y = -1, S = a.queue.length; ++y < S; ) a.queue[y].callRejected(f);
|
|
1173
1173
|
return a;
|
|
1174
1174
|
}, g.resolve = function(a) {
|
|
1175
1175
|
return a instanceof this ? a : n.resolve(new this(l), a);
|
|
1176
1176
|
}, g.reject = function(a) {
|
|
1177
|
-
var
|
|
1178
|
-
return n.reject(
|
|
1177
|
+
var f = new this(l);
|
|
1178
|
+
return n.reject(f, a);
|
|
1179
1179
|
}, g.all = function(a) {
|
|
1180
|
-
var
|
|
1180
|
+
var f = this;
|
|
1181
1181
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1182
1182
|
var y = a.length, S = !1;
|
|
1183
1183
|
if (!y) return this.resolve([]);
|
|
1184
1184
|
for (var x = new Array(y), F = 0, O = -1, U = new this(l); ++O < y; ) I(a[O], O);
|
|
1185
1185
|
return U;
|
|
1186
1186
|
function I(H, tt) {
|
|
1187
|
-
|
|
1187
|
+
f.resolve(H).then(function(m) {
|
|
1188
1188
|
x[tt] = m, ++F !== y || S || (S = !0, n.resolve(U, x));
|
|
1189
1189
|
}, function(m) {
|
|
1190
1190
|
S || (S = !0, n.reject(U, m));
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
1193
|
}, g.race = function(a) {
|
|
1194
|
-
var
|
|
1194
|
+
var f = this;
|
|
1195
1195
|
if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
1196
1196
|
var y = a.length, S = !1;
|
|
1197
1197
|
if (!y) return this.resolve([]);
|
|
1198
|
-
for (var x = -1, F = new this(l); ++x < y; ) O = a[x],
|
|
1198
|
+
for (var x = -1, F = new this(l); ++x < y; ) O = a[x], f.resolve(O).then(function(U) {
|
|
1199
1199
|
S || (S = !0, n.resolve(F, U));
|
|
1200
1200
|
}, function(U) {
|
|
1201
1201
|
S || (S = !0, n.reject(F, U));
|
|
@@ -1207,29 +1207,29 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1207
1207
|
var h = {};
|
|
1208
1208
|
(0, v("./lib/utils/common").assign)(h, v("./lib/deflate"), v("./lib/inflate"), v("./lib/zlib/constants")), N.exports = h;
|
|
1209
1209
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(v, N, w) {
|
|
1210
|
-
var h = v("./zlib/deflate"), l = v("./utils/common"), n = v("./utils/strings"), o = v("./zlib/messages"), p = v("./zlib/zstream"), b = Object.prototype.toString, g = 0, _ = -1, i = 0,
|
|
1210
|
+
var h = v("./zlib/deflate"), l = v("./utils/common"), n = v("./utils/strings"), o = v("./zlib/messages"), p = v("./zlib/zstream"), b = Object.prototype.toString, g = 0, _ = -1, i = 0, d = 8;
|
|
1211
1211
|
function r(a) {
|
|
1212
1212
|
if (!(this instanceof r)) return new r(a);
|
|
1213
|
-
this.options = l.assign({ level: _, method:
|
|
1214
|
-
var
|
|
1215
|
-
|
|
1216
|
-
var y = h.deflateInit2(this.strm,
|
|
1213
|
+
this.options = l.assign({ level: _, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, a || {});
|
|
1214
|
+
var f = this.options;
|
|
1215
|
+
f.raw && 0 < f.windowBits ? f.windowBits = -f.windowBits : f.gzip && 0 < f.windowBits && f.windowBits < 16 && (f.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new p(), this.strm.avail_out = 0;
|
|
1216
|
+
var y = h.deflateInit2(this.strm, f.level, f.method, f.windowBits, f.memLevel, f.strategy);
|
|
1217
1217
|
if (y !== g) throw new Error(o[y]);
|
|
1218
|
-
if (
|
|
1218
|
+
if (f.header && h.deflateSetHeader(this.strm, f.header), f.dictionary) {
|
|
1219
1219
|
var S;
|
|
1220
|
-
if (S = typeof
|
|
1220
|
+
if (S = typeof f.dictionary == "string" ? n.string2buf(f.dictionary) : b.call(f.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(f.dictionary) : f.dictionary, (y = h.deflateSetDictionary(this.strm, S)) !== g) throw new Error(o[y]);
|
|
1221
1221
|
this._dict_set = !0;
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
function u(a,
|
|
1225
|
-
var y = new r(
|
|
1224
|
+
function u(a, f) {
|
|
1225
|
+
var y = new r(f);
|
|
1226
1226
|
if (y.push(a, !0), y.err) throw y.msg || o[y.err];
|
|
1227
1227
|
return y.result;
|
|
1228
1228
|
}
|
|
1229
|
-
r.prototype.push = function(a,
|
|
1229
|
+
r.prototype.push = function(a, f) {
|
|
1230
1230
|
var y, S, x = this.strm, F = this.options.chunkSize;
|
|
1231
1231
|
if (this.ended) return !1;
|
|
1232
|
-
S =
|
|
1232
|
+
S = f === ~~f ? f : f === !0 ? 4 : 0, typeof a == "string" ? x.input = n.string2buf(a) : b.call(a) === "[object ArrayBuffer]" ? x.input = new Uint8Array(a) : x.input = a, x.next_in = 0, x.avail_in = x.input.length;
|
|
1233
1233
|
do {
|
|
1234
1234
|
if (x.avail_out === 0 && (x.output = new l.Buf8(F), x.next_out = 0, x.avail_out = F), (y = h.deflate(x, S)) !== 1 && y !== g) return this.onEnd(y), !(this.ended = !0);
|
|
1235
1235
|
x.avail_out !== 0 && (x.avail_in !== 0 || S !== 4 && S !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(l.shrinkBuf(x.output, x.next_out))) : this.onData(l.shrinkBuf(x.output, x.next_out)));
|
|
@@ -1239,10 +1239,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1239
1239
|
this.chunks.push(a);
|
|
1240
1240
|
}, r.prototype.onEnd = function(a) {
|
|
1241
1241
|
a === g && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = l.flattenChunks(this.chunks)), this.chunks = [], this.err = a, this.msg = this.strm.msg;
|
|
1242
|
-
}, w.Deflate = r, w.deflate = u, w.deflateRaw = function(a,
|
|
1243
|
-
return (
|
|
1244
|
-
}, w.gzip = function(a,
|
|
1245
|
-
return (
|
|
1242
|
+
}, w.Deflate = r, w.deflate = u, w.deflateRaw = function(a, f) {
|
|
1243
|
+
return (f = f || {}).raw = !0, u(a, f);
|
|
1244
|
+
}, w.gzip = function(a, f) {
|
|
1245
|
+
return (f = f || {}).gzip = !0, u(a, f);
|
|
1246
1246
|
};
|
|
1247
1247
|
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(v, N, w) {
|
|
1248
1248
|
var h = v("./zlib/inflate"), l = v("./utils/common"), n = v("./utils/strings"), o = v("./zlib/constants"), p = v("./zlib/messages"), b = v("./zlib/zstream"), g = v("./zlib/gzheader"), _ = Object.prototype.toString;
|
|
@@ -1255,27 +1255,27 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1255
1255
|
if (a !== o.Z_OK) throw new Error(p[a]);
|
|
1256
1256
|
this.header = new g(), h.inflateGetHeader(this.strm, this.header);
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function d(r, u) {
|
|
1259
1259
|
var a = new i(u);
|
|
1260
1260
|
if (a.push(r, !0), a.err) throw a.msg || p[a.err];
|
|
1261
1261
|
return a.result;
|
|
1262
1262
|
}
|
|
1263
1263
|
i.prototype.push = function(r, u) {
|
|
1264
|
-
var a,
|
|
1264
|
+
var a, f, y, S, x, F, O = this.strm, U = this.options.chunkSize, I = this.options.dictionary, H = !1;
|
|
1265
1265
|
if (this.ended) return !1;
|
|
1266
|
-
|
|
1266
|
+
f = u === ~~u ? u : u === !0 ? o.Z_FINISH : o.Z_NO_FLUSH, typeof r == "string" ? O.input = n.binstring2buf(r) : _.call(r) === "[object ArrayBuffer]" ? O.input = new Uint8Array(r) : O.input = r, O.next_in = 0, O.avail_in = O.input.length;
|
|
1267
1267
|
do {
|
|
1268
1268
|
if (O.avail_out === 0 && (O.output = new l.Buf8(U), O.next_out = 0, O.avail_out = U), (a = h.inflate(O, o.Z_NO_FLUSH)) === o.Z_NEED_DICT && I && (F = typeof I == "string" ? n.string2buf(I) : _.call(I) === "[object ArrayBuffer]" ? new Uint8Array(I) : I, a = h.inflateSetDictionary(this.strm, F)), a === o.Z_BUF_ERROR && H === !0 && (a = o.Z_OK, H = !1), a !== o.Z_STREAM_END && a !== o.Z_OK) return this.onEnd(a), !(this.ended = !0);
|
|
1269
|
-
O.next_out && (O.avail_out !== 0 && a !== o.Z_STREAM_END && (O.avail_in !== 0 ||
|
|
1269
|
+
O.next_out && (O.avail_out !== 0 && a !== o.Z_STREAM_END && (O.avail_in !== 0 || f !== o.Z_FINISH && f !== o.Z_SYNC_FLUSH) || (this.options.to === "string" ? (y = n.utf8border(O.output, O.next_out), S = O.next_out - y, x = n.buf2string(O.output, y), O.next_out = S, O.avail_out = U - S, S && l.arraySet(O.output, O.output, y, S, 0), this.onData(x)) : this.onData(l.shrinkBuf(O.output, O.next_out)))), O.avail_in === 0 && O.avail_out === 0 && (H = !0);
|
|
1270
1270
|
} while ((0 < O.avail_in || O.avail_out === 0) && a !== o.Z_STREAM_END);
|
|
1271
|
-
return a === o.Z_STREAM_END && (
|
|
1271
|
+
return a === o.Z_STREAM_END && (f = o.Z_FINISH), f === o.Z_FINISH ? (a = h.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === o.Z_OK) : f !== o.Z_SYNC_FLUSH || (this.onEnd(o.Z_OK), !(O.avail_out = 0));
|
|
1272
1272
|
}, i.prototype.onData = function(r) {
|
|
1273
1273
|
this.chunks.push(r);
|
|
1274
1274
|
}, i.prototype.onEnd = function(r) {
|
|
1275
1275
|
r === o.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = l.flattenChunks(this.chunks)), this.chunks = [], this.err = r, this.msg = this.strm.msg;
|
|
1276
|
-
}, w.Inflate = i, w.inflate =
|
|
1277
|
-
return (u = u || {}).raw = !0,
|
|
1278
|
-
}, w.ungzip =
|
|
1276
|
+
}, w.Inflate = i, w.inflate = d, w.inflateRaw = function(r, u) {
|
|
1277
|
+
return (u = u || {}).raw = !0, d(r, u);
|
|
1278
|
+
}, w.ungzip = d;
|
|
1279
1279
|
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(v, N, w) {
|
|
1280
1280
|
var h = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1281
1281
|
w.assign = function(o) {
|
|
@@ -1294,10 +1294,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1294
1294
|
if (p.subarray && o.subarray) o.set(p.subarray(b, b + g), _);
|
|
1295
1295
|
else for (var i = 0; i < g; i++) o[_ + i] = p[b + i];
|
|
1296
1296
|
}, flattenChunks: function(o) {
|
|
1297
|
-
var p, b, g, _, i,
|
|
1297
|
+
var p, b, g, _, i, d;
|
|
1298
1298
|
for (p = g = 0, b = o.length; p < b; p++) g += o[p].length;
|
|
1299
|
-
for (
|
|
1300
|
-
return
|
|
1299
|
+
for (d = new Uint8Array(g), p = _ = 0, b = o.length; p < b; p++) i = o[p], d.set(i, _), _ += i.length;
|
|
1300
|
+
return d;
|
|
1301
1301
|
} }, n = { arraySet: function(o, p, b, g, _) {
|
|
1302
1302
|
for (var i = 0; i < g; i++) o[_ + i] = p[b + i];
|
|
1303
1303
|
}, flattenChunks: function(o) {
|
|
@@ -1321,28 +1321,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1321
1321
|
for (var o = new h.Buf8(256), p = 0; p < 256; p++) o[p] = 252 <= p ? 6 : 248 <= p ? 5 : 240 <= p ? 4 : 224 <= p ? 3 : 192 <= p ? 2 : 1;
|
|
1322
1322
|
function b(g, _) {
|
|
1323
1323
|
if (_ < 65537 && (g.subarray && n || !g.subarray && l)) return String.fromCharCode.apply(null, h.shrinkBuf(g, _));
|
|
1324
|
-
for (var i = "",
|
|
1324
|
+
for (var i = "", d = 0; d < _; d++) i += String.fromCharCode(g[d]);
|
|
1325
1325
|
return i;
|
|
1326
1326
|
}
|
|
1327
1327
|
o[254] = o[254] = 1, w.string2buf = function(g) {
|
|
1328
|
-
var _, i,
|
|
1329
|
-
for (r = 0; r < a; r++) (64512 & (i = g.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (
|
|
1330
|
-
for (_ = new h.Buf8(
|
|
1328
|
+
var _, i, d, r, u, a = g.length, f = 0;
|
|
1329
|
+
for (r = 0; r < a; r++) (64512 & (i = g.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = g.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), f += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
|
|
1330
|
+
for (_ = new h.Buf8(f), r = u = 0; u < f; r++) (64512 & (i = g.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (d = g.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (d - 56320), r++), i < 128 ? _[u++] = i : (i < 2048 ? _[u++] = 192 | i >>> 6 : (i < 65536 ? _[u++] = 224 | i >>> 12 : (_[u++] = 240 | i >>> 18, _[u++] = 128 | i >>> 12 & 63), _[u++] = 128 | i >>> 6 & 63), _[u++] = 128 | 63 & i);
|
|
1331
1331
|
return _;
|
|
1332
1332
|
}, w.buf2binstring = function(g) {
|
|
1333
1333
|
return b(g, g.length);
|
|
1334
1334
|
}, w.binstring2buf = function(g) {
|
|
1335
|
-
for (var _ = new h.Buf8(g.length), i = 0,
|
|
1335
|
+
for (var _ = new h.Buf8(g.length), i = 0, d = _.length; i < d; i++) _[i] = g.charCodeAt(i);
|
|
1336
1336
|
return _;
|
|
1337
1337
|
}, w.buf2string = function(g, _) {
|
|
1338
|
-
var i,
|
|
1339
|
-
for (i =
|
|
1340
|
-
else if (4 < (u = o[r])) d
|
|
1338
|
+
var i, d, r, u, a = _ || g.length, f = new Array(2 * a);
|
|
1339
|
+
for (i = d = 0; i < a; ) if ((r = g[i++]) < 128) f[d++] = r;
|
|
1340
|
+
else if (4 < (u = o[r])) f[d++] = 65533, i += u - 1;
|
|
1341
1341
|
else {
|
|
1342
1342
|
for (r &= u === 2 ? 31 : u === 3 ? 15 : 7; 1 < u && i < a; ) r = r << 6 | 63 & g[i++], u--;
|
|
1343
|
-
1 < u ? d
|
|
1343
|
+
1 < u ? f[d++] = 65533 : r < 65536 ? f[d++] = r : (r -= 65536, f[d++] = 55296 | r >> 10 & 1023, f[d++] = 56320 | 1023 & r);
|
|
1344
1344
|
}
|
|
1345
|
-
return b(
|
|
1345
|
+
return b(f, d);
|
|
1346
1346
|
}, w.utf8border = function(g, _) {
|
|
1347
1347
|
var i;
|
|
1348
1348
|
for ((_ = _ || g.length) > g.length && (_ = g.length), i = _ - 1; 0 <= i && (192 & g[i]) == 128; ) i--;
|
|
@@ -1374,7 +1374,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1374
1374
|
return -1 ^ l;
|
|
1375
1375
|
};
|
|
1376
1376
|
}, {}], 46: [function(v, N, w) {
|
|
1377
|
-
var h, l = v("../utils/common"), n = v("./trees"), o = v("./adler32"), p = v("./crc32"), b = v("./messages"), g = 0, _ = 4, i = 0,
|
|
1377
|
+
var h, l = v("../utils/common"), n = v("./trees"), o = v("./adler32"), p = v("./crc32"), b = v("./messages"), g = 0, _ = 4, i = 0, d = -2, r = -1, u = 4, a = 2, f = 8, y = 9, S = 286, x = 30, F = 19, O = 2 * S + 1, U = 15, I = 3, H = 258, tt = H + I + 1, m = 42, T = 113, e = 1, D = 2, rt = 3, M = 4;
|
|
1378
1378
|
function nt(t, R) {
|
|
1379
1379
|
return t.msg = b[R], R;
|
|
1380
1380
|
}
|
|
@@ -1460,11 +1460,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1460
1460
|
this.good_length = t, this.max_lazy = R, this.nice_length = A, this.max_chain = c, this.func = s;
|
|
1461
1461
|
}
|
|
1462
1462
|
function gt() {
|
|
1463
|
-
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 =
|
|
1463
|
+
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 = f, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new l.Buf16(2 * O), this.dyn_dtree = new l.Buf16(2 * (2 * x + 1)), this.bl_tree = new l.Buf16(2 * (2 * F + 1)), V(this.dyn_ltree), V(this.dyn_dtree), V(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new l.Buf16(U + 1), this.heap = new l.Buf16(2 * S + 1), V(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new l.Buf16(2 * S + 1), V(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;
|
|
1464
1464
|
}
|
|
1465
1465
|
function ct(t) {
|
|
1466
1466
|
var R;
|
|
1467
|
-
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? m : T, t.adler = R.wrap === 2 ? 0 : 1, R.last_flush = g, n._tr_init(R), i) : nt(t,
|
|
1467
|
+
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? m : T, t.adler = R.wrap === 2 ? 0 : 1, R.last_flush = g, n._tr_init(R), i) : nt(t, d);
|
|
1468
1468
|
}
|
|
1469
1469
|
function yt(t) {
|
|
1470
1470
|
var R = ct(t);
|
|
@@ -1473,9 +1473,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1473
1473
|
}(t.state), R;
|
|
1474
1474
|
}
|
|
1475
1475
|
function _t(t, R, A, c, s, k) {
|
|
1476
|
-
if (!t) return
|
|
1476
|
+
if (!t) return d;
|
|
1477
1477
|
var P = 1;
|
|
1478
|
-
if (R === r && (R = 6), c < 0 ? (P = 0, c = -c) : 15 < c && (P = 2, c -= 16), s < 1 || y < s || A !==
|
|
1478
|
+
if (R === r && (R = 6), c < 0 ? (P = 0, c = -c) : 15 < c && (P = 2, c -= 16), s < 1 || y < s || A !== f || c < 8 || 15 < c || R < 0 || 9 < R || k < 0 || u < k) return nt(t, d);
|
|
1479
1479
|
c === 8 && (c = 9);
|
|
1480
1480
|
var L = new gt();
|
|
1481
1481
|
return (t.state = L).strm = t, L.wrap = P, L.gzhead = null, L.w_bits = c, L.w_size = 1 << L.w_bits, L.w_mask = L.w_size - 1, L.hash_bits = s + 7, L.hash_size = 1 << L.hash_bits, L.hash_mask = L.hash_size - 1, L.hash_shift = ~~((L.hash_bits + I - 1) / I), L.window = new l.Buf8(2 * L.w_size), L.head = new l.Buf16(L.hash_size), L.prev = new l.Buf16(L.w_size), L.lit_bufsize = 1 << s + 6, L.pending_buf_size = 4 * L.lit_bufsize, L.pending_buf = new l.Buf8(L.pending_buf_size), L.d_buf = 1 * L.lit_bufsize, L.l_buf = 3 * L.lit_bufsize, L.level = R, L.strategy = k, L.method = A, yt(t);
|
|
@@ -1493,16 +1493,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1493
1493
|
}
|
|
1494
1494
|
return t.insert = 0, R === _ ? (C(t, !0), t.strm.avail_out === 0 ? rt : M) : (t.strstart > t.block_start && (C(t, !1), t.strm.avail_out), e);
|
|
1495
1495
|
}), new st(4, 4, 8, 4, pt), new st(4, 5, 16, 8, pt), new st(4, 6, 32, 32, pt), new st(4, 4, 16, 16, it), new st(8, 16, 32, 32, it), new st(8, 16, 128, 128, it), new st(8, 32, 128, 256, it), new st(32, 128, 258, 1024, it), new st(32, 258, 258, 4096, it)], w.deflateInit = function(t, R) {
|
|
1496
|
-
return _t(t, R,
|
|
1496
|
+
return _t(t, R, f, 15, 8, 0);
|
|
1497
1497
|
}, w.deflateInit2 = _t, w.deflateReset = yt, w.deflateResetKeep = ct, w.deflateSetHeader = function(t, R) {
|
|
1498
|
-
return t && t.state ? t.state.wrap !== 2 ?
|
|
1498
|
+
return t && t.state ? t.state.wrap !== 2 ? d : (t.state.gzhead = R, i) : d;
|
|
1499
1499
|
}, w.deflate = function(t, R) {
|
|
1500
1500
|
var A, c, s, k;
|
|
1501
|
-
if (!t || !t.state || 5 < R || R < 0) return t ? nt(t,
|
|
1502
|
-
if (c = t.state, !t.output || !t.input && t.avail_in !== 0 || c.status === 666 && R !== _) return nt(t, t.avail_out === 0 ? -5 :
|
|
1501
|
+
if (!t || !t.state || 5 < R || R < 0) return t ? nt(t, d) : d;
|
|
1502
|
+
if (c = t.state, !t.output || !t.input && t.avail_in !== 0 || c.status === 666 && R !== _) return nt(t, t.avail_out === 0 ? -5 : d);
|
|
1503
1503
|
if (c.strm = t, A = c.last_flush, c.last_flush = R, c.status === m) if (c.wrap === 2) t.adler = 0, et(c, 31), et(c, 139), et(c, 8), c.gzhead ? (et(c, (c.gzhead.text ? 1 : 0) + (c.gzhead.hcrc ? 2 : 0) + (c.gzhead.extra ? 4 : 0) + (c.gzhead.name ? 8 : 0) + (c.gzhead.comment ? 16 : 0)), et(c, 255 & c.gzhead.time), et(c, c.gzhead.time >> 8 & 255), et(c, c.gzhead.time >> 16 & 255), et(c, c.gzhead.time >> 24 & 255), et(c, c.level === 9 ? 2 : 2 <= c.strategy || c.level < 2 ? 4 : 0), et(c, 255 & c.gzhead.os), c.gzhead.extra && c.gzhead.extra.length && (et(c, 255 & c.gzhead.extra.length), et(c, c.gzhead.extra.length >> 8 & 255)), c.gzhead.hcrc && (t.adler = p(t.adler, c.pending_buf, c.pending, 0)), c.gzindex = 0, c.status = 69) : (et(c, 0), et(c, 0), et(c, 0), et(c, 0), et(c, 0), et(c, c.level === 9 ? 2 : 2 <= c.strategy || c.level < 2 ? 4 : 0), et(c, 3), c.status = T);
|
|
1504
1504
|
else {
|
|
1505
|
-
var P =
|
|
1505
|
+
var P = f + (c.w_bits - 8 << 4) << 8;
|
|
1506
1506
|
P |= (2 <= c.strategy || c.level < 2 ? 0 : c.level < 6 ? 1 : c.level === 6 ? 2 : 3) << 6, c.strstart !== 0 && (P |= 32), P += 31 - P % 31, c.status = T, K(c, P), c.strstart !== 0 && (K(c, t.adler >>> 16), K(c, 65535 & t.adler)), t.adler = 1;
|
|
1507
1507
|
}
|
|
1508
1508
|
if (c.status === 69) if (c.gzhead.extra) {
|
|
@@ -1568,10 +1568,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1568
1568
|
return R !== _ ? i : c.wrap <= 0 ? 1 : (c.wrap === 2 ? (et(c, 255 & t.adler), et(c, t.adler >> 8 & 255), et(c, t.adler >> 16 & 255), et(c, t.adler >> 24 & 255), et(c, 255 & t.total_in), et(c, t.total_in >> 8 & 255), et(c, t.total_in >> 16 & 255), et(c, t.total_in >> 24 & 255)) : (K(c, t.adler >>> 16), K(c, 65535 & t.adler)), z(t), 0 < c.wrap && (c.wrap = -c.wrap), c.pending !== 0 ? i : 1);
|
|
1569
1569
|
}, w.deflateEnd = function(t) {
|
|
1570
1570
|
var R;
|
|
1571
|
-
return t && t.state ? (R = t.state.status) !== m && R !== 69 && R !== 73 && R !== 91 && R !== 103 && R !== T && R !== 666 ? nt(t,
|
|
1571
|
+
return t && t.state ? (R = t.state.status) !== m && R !== 69 && R !== 73 && R !== 91 && R !== 103 && R !== T && R !== 666 ? nt(t, d) : (t.state = null, R === T ? nt(t, -3) : i) : d;
|
|
1572
1572
|
}, w.deflateSetDictionary = function(t, R) {
|
|
1573
1573
|
var A, c, s, k, P, L, E, Z, X = R.length;
|
|
1574
|
-
if (!t || !t.state || (k = (A = t.state).wrap) === 2 || k === 1 && A.status !== m || A.lookahead) return
|
|
1574
|
+
if (!t || !t.state || (k = (A = t.state).wrap) === 2 || k === 1 && A.status !== m || A.lookahead) return d;
|
|
1575
1575
|
for (k === 1 && (t.adler = o(t.adler, R, X, 0)), A.wrap = 0, X >= A.w_size && (k === 0 && (V(A.head), A.strstart = 0, A.block_start = 0, A.insert = 0), Z = new l.Buf8(A.w_size), l.arraySet(Z, R, X - A.w_size, A.w_size, 0), R = Z, X = A.w_size), P = t.avail_in, L = t.next_in, E = t.input, t.avail_in = X, t.next_in = 0, t.input = R, ht(A); A.lookahead >= I; ) {
|
|
1576
1576
|
for (c = A.strstart, s = A.lookahead - (I - 1); A.ins_h = (A.ins_h << A.hash_shift ^ A.window[c + I - 1]) & A.hash_mask, A.prev[c & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = c, c++, --s; ) ;
|
|
1577
1577
|
A.strstart = c, A.lookahead = I - 1, ht(A);
|
|
@@ -1584,16 +1584,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1584
1584
|
};
|
|
1585
1585
|
}, {}], 48: [function(v, N, w) {
|
|
1586
1586
|
N.exports = function(h, l) {
|
|
1587
|
-
var n, o, p, b, g, _, i,
|
|
1588
|
-
n = h.state, o = h.next_in, e = h.input, p = o + (h.avail_in - 5), b = h.next_out, D = h.output, g = b - (l - h.avail_out), _ = b + (h.avail_out - 257), i = n.dmax,
|
|
1587
|
+
var n, o, p, b, g, _, i, d, r, u, a, f, y, S, x, F, O, U, I, H, tt, m, T, e, D;
|
|
1588
|
+
n = h.state, o = h.next_in, e = h.input, p = o + (h.avail_in - 5), b = h.next_out, D = h.output, g = b - (l - h.avail_out), _ = b + (h.avail_out - 257), i = n.dmax, d = n.wsize, r = n.whave, u = n.wnext, a = n.window, f = n.hold, y = n.bits, S = n.lencode, x = n.distcode, F = (1 << n.lenbits) - 1, O = (1 << n.distbits) - 1;
|
|
1589
1589
|
t: do {
|
|
1590
|
-
y < 15 && (
|
|
1590
|
+
y < 15 && (f += e[o++] << y, y += 8, f += e[o++] << y, y += 8), U = S[f & F];
|
|
1591
1591
|
e: for (; ; ) {
|
|
1592
|
-
if (
|
|
1592
|
+
if (f >>>= I = U >>> 24, y -= I, (I = U >>> 16 & 255) === 0) D[b++] = 65535 & U;
|
|
1593
1593
|
else {
|
|
1594
1594
|
if (!(16 & I)) {
|
|
1595
1595
|
if (!(64 & I)) {
|
|
1596
|
-
U = S[(65535 & U) + (
|
|
1596
|
+
U = S[(65535 & U) + (f & (1 << I) - 1)];
|
|
1597
1597
|
continue e;
|
|
1598
1598
|
}
|
|
1599
1599
|
if (32 & I) {
|
|
@@ -1603,32 +1603,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1603
1603
|
h.msg = "invalid literal/length code", n.mode = 30;
|
|
1604
1604
|
break t;
|
|
1605
1605
|
}
|
|
1606
|
-
H = 65535 & U, (I &= 15) && (y < I && (
|
|
1606
|
+
H = 65535 & U, (I &= 15) && (y < I && (f += e[o++] << y, y += 8), H += f & (1 << I) - 1, f >>>= I, y -= I), y < 15 && (f += e[o++] << y, y += 8, f += e[o++] << y, y += 8), U = x[f & O];
|
|
1607
1607
|
r: for (; ; ) {
|
|
1608
|
-
if (
|
|
1608
|
+
if (f >>>= I = U >>> 24, y -= I, !(16 & (I = U >>> 16 & 255))) {
|
|
1609
1609
|
if (!(64 & I)) {
|
|
1610
|
-
U = x[(65535 & U) + (
|
|
1610
|
+
U = x[(65535 & U) + (f & (1 << I) - 1)];
|
|
1611
1611
|
continue r;
|
|
1612
1612
|
}
|
|
1613
1613
|
h.msg = "invalid distance code", n.mode = 30;
|
|
1614
1614
|
break t;
|
|
1615
1615
|
}
|
|
1616
|
-
if (tt = 65535 & U, y < (I &= 15) && (
|
|
1616
|
+
if (tt = 65535 & U, y < (I &= 15) && (f += e[o++] << y, (y += 8) < I && (f += e[o++] << y, y += 8)), i < (tt += f & (1 << I) - 1)) {
|
|
1617
1617
|
h.msg = "invalid distance too far back", n.mode = 30;
|
|
1618
1618
|
break t;
|
|
1619
1619
|
}
|
|
1620
|
-
if (
|
|
1620
|
+
if (f >>>= I, y -= I, (I = b - g) < tt) {
|
|
1621
1621
|
if (r < (I = tt - I) && n.sane) {
|
|
1622
1622
|
h.msg = "invalid distance too far back", n.mode = 30;
|
|
1623
1623
|
break t;
|
|
1624
1624
|
}
|
|
1625
1625
|
if (T = a, (m = 0) === u) {
|
|
1626
|
-
if (m +=
|
|
1626
|
+
if (m += d - I, I < H) {
|
|
1627
1627
|
for (H -= I; D[b++] = a[m++], --I; ) ;
|
|
1628
1628
|
m = b - tt, T = D;
|
|
1629
1629
|
}
|
|
1630
1630
|
} else if (u < I) {
|
|
1631
|
-
if (m +=
|
|
1631
|
+
if (m += d + u - I, (I -= u) < H) {
|
|
1632
1632
|
for (H -= I; D[b++] = a[m++], --I; ) ;
|
|
1633
1633
|
if (m = 0, u < H) {
|
|
1634
1634
|
for (H -= I = u; D[b++] = a[m++], --I; ) ;
|
|
@@ -1651,19 +1651,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1651
1651
|
break;
|
|
1652
1652
|
}
|
|
1653
1653
|
} while (o < p && b < _);
|
|
1654
|
-
o -= H = y >> 3,
|
|
1654
|
+
o -= H = y >> 3, f &= (1 << (y -= H << 3)) - 1, h.next_in = o, h.next_out = b, h.avail_in = o < p ? p - o + 5 : 5 - (o - p), h.avail_out = b < _ ? _ - b + 257 : 257 - (b - _), n.hold = f, n.bits = y;
|
|
1655
1655
|
};
|
|
1656
1656
|
}, {}], 49: [function(v, N, w) {
|
|
1657
|
-
var h = v("../utils/common"), l = v("./adler32"), n = v("./crc32"), o = v("./inffast"), p = v("./inftrees"), b = 1, g = 2, _ = 0, i = -2,
|
|
1657
|
+
var h = v("../utils/common"), l = v("./adler32"), n = v("./crc32"), o = v("./inffast"), p = v("./inftrees"), b = 1, g = 2, _ = 0, i = -2, d = 1, r = 852, u = 592;
|
|
1658
1658
|
function a(m) {
|
|
1659
1659
|
return (m >>> 24 & 255) + (m >>> 8 & 65280) + ((65280 & m) << 8) + ((255 & m) << 24);
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function f() {
|
|
1662
1662
|
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 h.Buf16(320), this.work = new h.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1663
1663
|
}
|
|
1664
1664
|
function y(m) {
|
|
1665
1665
|
var T;
|
|
1666
|
-
return m && m.state ? (T = m.state, m.total_in = m.total_out = T.total = 0, m.msg = "", T.wrap && (m.adler = 1 & T.wrap), T.mode =
|
|
1666
|
+
return m && m.state ? (T = m.state, m.total_in = m.total_out = T.total = 0, m.msg = "", T.wrap && (m.adler = 1 & T.wrap), T.mode = d, T.last = 0, T.havedict = 0, T.dmax = 32768, T.head = null, T.hold = 0, T.bits = 0, T.lencode = T.lendyn = new h.Buf32(r), T.distcode = T.distdyn = new h.Buf32(u), T.sane = 1, T.back = -1, _) : i;
|
|
1667
1667
|
}
|
|
1668
1668
|
function S(m) {
|
|
1669
1669
|
var T;
|
|
@@ -1675,7 +1675,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1675
1675
|
}
|
|
1676
1676
|
function F(m, T) {
|
|
1677
1677
|
var e, D;
|
|
1678
|
-
return m ? (D = new
|
|
1678
|
+
return m ? (D = new f(), (m.state = D).window = null, (e = x(m, T)) !== _ && (m.state = null), e) : i;
|
|
1679
1679
|
}
|
|
1680
1680
|
var O, U, I = !0;
|
|
1681
1681
|
function H(m) {
|
|
@@ -1701,7 +1701,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
1701
1701
|
if (!m || !m.state || !m.output || !m.input && m.avail_in !== 0) return i;
|
|
1702
1702
|
(e = m.state).mode === 12 && (e.mode = 13), nt = m.next_out, rt = m.output, V = m.avail_out, M = m.next_in, D = m.input, j = m.avail_in, z = e.hold, C = e.bits, et = j, K = V, R = _;
|
|
1703
1703
|
t: for (; ; ) switch (e.mode) {
|
|
1704
|
-
case
|
|
1704
|
+
case d:
|
|
1705
1705
|
if (e.wrap === 0) {
|
|
1706
1706
|
e.mode = 13;
|
|
1707
1707
|
break;
|
|
@@ -2065,12 +2065,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2065
2065
|
}, w.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2066
2066
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(v, N, w) {
|
|
2067
2067
|
var h = v("../utils/common"), l = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], 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], o = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], 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];
|
|
2068
|
-
N.exports = function(b, g, _, i,
|
|
2069
|
-
var
|
|
2068
|
+
N.exports = function(b, g, _, i, d, r, u, a) {
|
|
2069
|
+
var f, y, S, x, F, O, U, I, H, tt = a.bits, m = 0, T = 0, e = 0, D = 0, rt = 0, M = 0, nt = 0, j = 0, V = 0, z = 0, C = null, et = 0, K = new h.Buf16(16), $ = new h.Buf16(16), ht = null, pt = 0;
|
|
2070
2070
|
for (m = 0; m <= 15; m++) K[m] = 0;
|
|
2071
2071
|
for (T = 0; T < i; T++) K[g[_ + T]]++;
|
|
2072
2072
|
for (rt = tt, D = 15; 1 <= D && K[D] === 0; D--) ;
|
|
2073
|
-
if (D < rt && (rt = D), D === 0) return
|
|
2073
|
+
if (D < rt && (rt = D), D === 0) return d[r++] = 20971520, d[r++] = 20971520, a.bits = 1, 0;
|
|
2074
2074
|
for (e = 1; e < D && K[e] === 0; e++) ;
|
|
2075
2075
|
for (rt < e && (rt = e), m = j = 1; m <= 15; m++) if (j <<= 1, (j -= K[m]) < 0) return -1;
|
|
2076
2076
|
if (0 < j && (b === 0 || D !== 1)) return -1;
|
|
@@ -2078,19 +2078,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2078
2078
|
for (T = 0; T < i; T++) g[_ + T] !== 0 && (u[$[g[_ + T]]++] = T);
|
|
2079
2079
|
if (O = b === 0 ? (C = ht = u, 19) : b === 1 ? (C = l, et -= 257, ht = n, pt -= 257, 256) : (C = o, ht = p, -1), m = e, F = r, nt = T = z = 0, S = -1, x = (V = 1 << (M = rt)) - 1, b === 1 && 852 < V || b === 2 && 592 < V) return 1;
|
|
2080
2080
|
for (; ; ) {
|
|
2081
|
-
for (U = m - nt, H = u[T] < O ? (I = 0, u[T]) : u[T] > O ? (I = ht[pt + u[T]], C[et + u[T]]) : (I = 96, 0),
|
|
2082
|
-
for (
|
|
2083
|
-
if (
|
|
2081
|
+
for (U = m - nt, H = u[T] < O ? (I = 0, u[T]) : u[T] > O ? (I = ht[pt + u[T]], C[et + u[T]]) : (I = 96, 0), f = 1 << m - nt, e = y = 1 << M; d[F + (z >> nt) + (y -= f)] = U << 24 | I << 16 | H | 0, y !== 0; ) ;
|
|
2082
|
+
for (f = 1 << m - 1; z & f; ) f >>= 1;
|
|
2083
|
+
if (f !== 0 ? (z &= f - 1, z += f) : z = 0, T++, --K[m] == 0) {
|
|
2084
2084
|
if (m === D) break;
|
|
2085
2085
|
m = g[_ + u[T]];
|
|
2086
2086
|
}
|
|
2087
2087
|
if (rt < m && (z & x) !== S) {
|
|
2088
2088
|
for (nt === 0 && (nt = rt), F += e, j = 1 << (M = m - nt); M + nt < D && !((j -= K[M + nt]) <= 0); ) M++, j <<= 1;
|
|
2089
2089
|
if (V += 1 << M, b === 1 && 852 < V || b === 2 && 592 < V) return 1;
|
|
2090
|
-
|
|
2090
|
+
d[S = z & x] = rt << 24 | M << 16 | F - r | 0;
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
|
-
return z !== 0 && (
|
|
2093
|
+
return z !== 0 && (d[F + z] = m - nt << 24 | 64 << 16 | 0), a.bits = rt, 0;
|
|
2094
2094
|
};
|
|
2095
2095
|
}, { "../utils/common": 41 }], 51: [function(v, N, w) {
|
|
2096
2096
|
N.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" };
|
|
@@ -2099,7 +2099,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2099
2099
|
function o(s) {
|
|
2100
2100
|
for (var k = s.length; 0 <= --k; ) s[k] = 0;
|
|
2101
2101
|
}
|
|
2102
|
-
var p = 0, b = 29, g = 256, _ = g + 1 + b, i = 30,
|
|
2102
|
+
var p = 0, b = 29, g = 256, _ = g + 1 + b, i = 30, d = 19, r = 2 * _ + 1, u = 15, a = 16, f = 7, y = 256, S = 16, x = 17, F = 18, O = [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], U = [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], I = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], H = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], tt = new Array(2 * (_ + 2));
|
|
2103
2103
|
o(tt);
|
|
2104
2104
|
var m = new Array(2 * i);
|
|
2105
2105
|
o(m);
|
|
@@ -2144,7 +2144,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2144
2144
|
var k;
|
|
2145
2145
|
for (k = 0; k < _; k++) s.dyn_ltree[2 * k] = 0;
|
|
2146
2146
|
for (k = 0; k < i; k++) s.dyn_dtree[2 * k] = 0;
|
|
2147
|
-
for (k = 0; k <
|
|
2147
|
+
for (k = 0; k < d; k++) s.bl_tree[2 * k] = 0;
|
|
2148
2148
|
s.dyn_ltree[2 * y] = 1, s.opt_len = s.static_len = 0, s.last_lit = s.matches = 0;
|
|
2149
2149
|
}
|
|
2150
2150
|
function st(s) {
|
|
@@ -2213,7 +2213,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2213
2213
|
for (; k <= 279; ) tt[2 * k + 1] = 7, k++, X[7]++;
|
|
2214
2214
|
for (; k <= 287; ) tt[2 * k + 1] = 8, k++, X[8]++;
|
|
2215
2215
|
for (pt(tt, _ + 1, X), k = 0; k < i; k++) m[2 * k + 1] = 5, m[2 * k] = ht(k, 5);
|
|
2216
|
-
rt = new V(tt, O, g + 1, _, u), M = new V(m, U, 0, i, u), nt = new V(new Array(0), I, 0,
|
|
2216
|
+
rt = new V(tt, O, g + 1, _, u), M = new V(m, U, 0, i, u), nt = new V(new Array(0), I, 0, d, f);
|
|
2217
2217
|
}(), A = !0), s.l_desc = new z(s.dyn_ltree, rt), s.d_desc = new z(s.dyn_dtree, M), s.bl_desc = new z(s.bl_tree, nt), s.bi_buf = 0, s.bi_valid = 0, it(s);
|
|
2218
2218
|
}, w._tr_stored_block = c, w._tr_flush_block = function(s, k, P, L) {
|
|
2219
2219
|
var E, Z, X = 0;
|
|
@@ -2225,7 +2225,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2225
2225
|
return l;
|
|
2226
2226
|
}(s)), _t(s, s.l_desc), _t(s, s.d_desc), X = function(G) {
|
|
2227
2227
|
var Q;
|
|
2228
|
-
for (t(G, G.dyn_ltree, G.l_desc.max_code), t(G, G.dyn_dtree, G.d_desc.max_code), _t(G, G.bl_desc), Q =
|
|
2228
|
+
for (t(G, G.dyn_ltree, G.l_desc.max_code), t(G, G.dyn_dtree, G.d_desc.max_code), _t(G, G.bl_desc), Q = d - 1; 3 <= Q && G.bl_tree[2 * H[Q] + 1] === 0; Q--) ;
|
|
2229
2229
|
return G.opt_len += 3 * (Q + 1) + 5 + 5 + 4, Q;
|
|
2230
2230
|
}(s), E = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= E && (E = Z)) : E = Z = P + 5, P + 4 <= E && k !== -1 ? c(s, k, P, L) : s.strategy === 4 || Z === E ? (K(s, 2 + (L ? 1 : 0), 3), yt(s, tt, m)) : (K(s, 4 + (L ? 1 : 0), 3), function(G, Q, ot, at) {
|
|
2231
2231
|
var wt;
|
|
@@ -2247,10 +2247,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2247
2247
|
(function(h) {
|
|
2248
2248
|
(function(l, n) {
|
|
2249
2249
|
if (!l.setImmediate) {
|
|
2250
|
-
var o, p, b, g, _ = 1, i = {},
|
|
2250
|
+
var o, p, b, g, _ = 1, i = {}, d = !1, r = l.document, u = Object.getPrototypeOf && Object.getPrototypeOf(l);
|
|
2251
2251
|
u = u && u.setTimeout ? u : l, o = {}.toString.call(l.process) === "[object process]" ? function(S) {
|
|
2252
2252
|
process.nextTick(function() {
|
|
2253
|
-
|
|
2253
|
+
f(S);
|
|
2254
2254
|
});
|
|
2255
2255
|
} : function() {
|
|
2256
2256
|
if (l.postMessage && !l.importScripts) {
|
|
@@ -2262,16 +2262,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2262
2262
|
}() ? (g = "setImmediate$" + Math.random() + "$", l.addEventListener ? l.addEventListener("message", y, !1) : l.attachEvent("onmessage", y), function(S) {
|
|
2263
2263
|
l.postMessage(g + S, "*");
|
|
2264
2264
|
}) : l.MessageChannel ? ((b = new MessageChannel()).port1.onmessage = function(S) {
|
|
2265
|
-
|
|
2265
|
+
f(S.data);
|
|
2266
2266
|
}, function(S) {
|
|
2267
2267
|
b.port2.postMessage(S);
|
|
2268
2268
|
}) : r && "onreadystatechange" in r.createElement("script") ? (p = r.documentElement, function(S) {
|
|
2269
2269
|
var x = r.createElement("script");
|
|
2270
2270
|
x.onreadystatechange = function() {
|
|
2271
|
-
|
|
2271
|
+
f(S), x.onreadystatechange = null, p.removeChild(x), x = null;
|
|
2272
2272
|
}, p.appendChild(x);
|
|
2273
2273
|
}) : function(S) {
|
|
2274
|
-
setTimeout(
|
|
2274
|
+
setTimeout(f, 0, S);
|
|
2275
2275
|
}, u.setImmediate = function(S) {
|
|
2276
2276
|
typeof S != "function" && (S = new Function("" + S));
|
|
2277
2277
|
for (var x = new Array(arguments.length - 1), F = 0; F < x.length; F++) x[F] = arguments[F + 1];
|
|
@@ -2282,12 +2282,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2282
2282
|
function a(S) {
|
|
2283
2283
|
delete i[S];
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2286
|
-
if (
|
|
2285
|
+
function f(S) {
|
|
2286
|
+
if (d) setTimeout(f, 0, S);
|
|
2287
2287
|
else {
|
|
2288
2288
|
var x = i[S];
|
|
2289
2289
|
if (x) {
|
|
2290
|
-
|
|
2290
|
+
d = !0;
|
|
2291
2291
|
try {
|
|
2292
2292
|
(function(F) {
|
|
2293
2293
|
var O = F.callback, U = F.args;
|
|
@@ -2309,13 +2309,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2309
2309
|
}
|
|
2310
2310
|
})(x);
|
|
2311
2311
|
} finally {
|
|
2312
|
-
a(S),
|
|
2312
|
+
a(S), d = !1;
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
}
|
|
2316
2316
|
}
|
|
2317
2317
|
function y(S) {
|
|
2318
|
-
S.source === l && typeof S.data == "string" && S.data.indexOf(g) === 0 &&
|
|
2318
|
+
S.source === l && typeof S.data == "string" && S.data.indexOf(g) === 0 && f(+S.data.slice(g.length));
|
|
2319
2319
|
}
|
|
2320
2320
|
})(typeof self > "u" ? h === void 0 ? this : h : self);
|
|
2321
2321
|
}).call(this, typeof Xt < "u" ? Xt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2324,12 +2324,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
2324
2324
|
})(be);
|
|
2325
2325
|
var Me = be.exports;
|
|
2326
2326
|
const je = /* @__PURE__ */ Ne(Me);
|
|
2327
|
-
function _e(
|
|
2328
|
-
return new Date(
|
|
2327
|
+
function _e(bt) {
|
|
2328
|
+
return new Date(bt).getTime();
|
|
2329
2329
|
}
|
|
2330
2330
|
let ne = null;
|
|
2331
2331
|
async function We() {
|
|
2332
|
-
return ne || (ne = (await import("./index-
|
|
2332
|
+
return ne || (ne = (await import("./index-CPnUioab.mjs")).fetchFile), ne;
|
|
2333
2333
|
}
|
|
2334
2334
|
class Ze {
|
|
2335
2335
|
constructor() {
|
|
@@ -2339,23 +2339,23 @@ class Ze {
|
|
|
2339
2339
|
Lt(this, "progressCallback", null);
|
|
2340
2340
|
Lt(this, "controller", new AbortController());
|
|
2341
2341
|
}
|
|
2342
|
-
setProgressCallback(
|
|
2343
|
-
this.progressCallback =
|
|
2342
|
+
setProgressCallback(ft) {
|
|
2343
|
+
this.progressCallback = ft;
|
|
2344
2344
|
}
|
|
2345
|
-
updateProgress(
|
|
2346
|
-
this.progressCallback && this.progressCallback(
|
|
2345
|
+
updateProgress(ft) {
|
|
2346
|
+
this.progressCallback && this.progressCallback(ft);
|
|
2347
2347
|
}
|
|
2348
2348
|
async initFFmpeg() {
|
|
2349
2349
|
if (!this.ffmpeg) {
|
|
2350
|
-
const { FFmpeg:
|
|
2351
|
-
this.ffmpeg = new
|
|
2350
|
+
const { FFmpeg: ft } = await import("./index-D8kRViJr.mjs");
|
|
2351
|
+
this.ffmpeg = new ft();
|
|
2352
2352
|
}
|
|
2353
2353
|
await this.ffmpeg.load({
|
|
2354
2354
|
coreURL: "https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.6/dist/esm/ffmpeg-core.js"
|
|
2355
2355
|
});
|
|
2356
2356
|
}
|
|
2357
|
-
parseM3u8(
|
|
2358
|
-
const h =
|
|
2357
|
+
parseM3u8(ft, v) {
|
|
2358
|
+
const h = ft.replace(/\r\n|\r/g, `
|
|
2359
2359
|
`).split(`
|
|
2360
2360
|
`).filter((n) => {
|
|
2361
2361
|
const o = n.trim();
|
|
@@ -2375,21 +2375,21 @@ class Ze {
|
|
|
2375
2375
|
return p;
|
|
2376
2376
|
});
|
|
2377
2377
|
}
|
|
2378
|
-
async convertHLSToMP4(
|
|
2378
|
+
async convertHLSToMP4(ft, v) {
|
|
2379
2379
|
v && this.setProgressCallback(v), this.format = "mp4", this.updateProgress(0), await this.initFFmpeg(), this.updateProgress(1);
|
|
2380
|
-
const N = await fetch(
|
|
2380
|
+
const N = await fetch(ft, {
|
|
2381
2381
|
signal: this.controller.signal
|
|
2382
2382
|
});
|
|
2383
2383
|
if (!N.ok)
|
|
2384
2384
|
throw new Error(`Failed to fetch m3u8: ${N.status}`);
|
|
2385
|
-
const w = await N.text(), h = this.parseM3u8(w,
|
|
2385
|
+
const w = await N.text(), h = this.parseM3u8(w, ft);
|
|
2386
2386
|
if (h.length === 0)
|
|
2387
2387
|
throw new Error("No TS segments found in the m3u8 file");
|
|
2388
2388
|
let l = 0;
|
|
2389
2389
|
const n = h.length, o = await Promise.all(
|
|
2390
2390
|
h.map(async (b, g) => {
|
|
2391
|
-
const i = await (await We())(b),
|
|
2392
|
-
return await this.ffmpeg.writeFile(
|
|
2391
|
+
const i = await (await We())(b), d = `segment_${g}.ts`;
|
|
2392
|
+
return await this.ffmpeg.writeFile(d, i), l++, this.updateProgress(`${Math.floor(l / n * 100)}`), d;
|
|
2393
2393
|
})
|
|
2394
2394
|
);
|
|
2395
2395
|
let p = w;
|
|
@@ -2431,8 +2431,8 @@ const He = {
|
|
|
2431
2431
|
dialogWidth: {},
|
|
2432
2432
|
dialogHeight: {}
|
|
2433
2433
|
},
|
|
2434
|
-
setup(
|
|
2435
|
-
const { t: v } = Te(), N = Re(), w =
|
|
2434
|
+
setup(bt, { expose: ft }) {
|
|
2435
|
+
const { t: v } = Te(), N = Re(), w = bt, h = Ut(() => {
|
|
2436
2436
|
const B = ue(w.videoList[0].startTime, !1, { time: !0, second: !0 }), W = ue(w.videoList[w.videoList.length - 1].endTime, !1, { time: !0, second: !0 });
|
|
2437
2437
|
return console.log("start", B, "end", W), B !== W ? `${B} ~ ${W}` : `${B}`;
|
|
2438
2438
|
}), l = Ut(() => {
|
|
@@ -2440,7 +2440,7 @@ const He = {
|
|
|
2440
2440
|
return W !== "0s" ? W : "1s";
|
|
2441
2441
|
}), n = mt(null), o = mt(null);
|
|
2442
2442
|
let p = null;
|
|
2443
|
-
const b = mt(0), g = mt(0), _ = mt(0), i = mt(!1),
|
|
2443
|
+
const b = mt(0), g = mt(0), _ = mt(0), i = mt(!1), d = mt(1), r = mt(!1), u = mt(!0), a = mt(!0), f = mt(!1), y = mt(!1), S = mt(!1), x = mt(!1), F = mt(0), O = mt([]), U = mt(0), I = mt(!1), H = mt(0), tt = mt(0);
|
|
2444
2444
|
let m = null, T = null, e = null, D = null, rt = !1, M = !1;
|
|
2445
2445
|
const nt = /* @__PURE__ */ new Set(), j = mt(0);
|
|
2446
2446
|
let V = null;
|
|
@@ -2453,24 +2453,24 @@ const He = {
|
|
|
2453
2453
|
let W = 0;
|
|
2454
2454
|
const q = [];
|
|
2455
2455
|
B.forEach((Y, J) => {
|
|
2456
|
-
const
|
|
2456
|
+
const dt = Y.duration || 0;
|
|
2457
2457
|
if (q.push({
|
|
2458
2458
|
videoUrl: Y.media,
|
|
2459
2459
|
start: W,
|
|
2460
|
-
duration:
|
|
2461
|
-
end: W +
|
|
2460
|
+
duration: dt,
|
|
2461
|
+
end: W + dt,
|
|
2462
2462
|
gapDuration: 0,
|
|
2463
2463
|
isGap: !1
|
|
2464
|
-
}), W +=
|
|
2465
|
-
const
|
|
2466
|
-
|
|
2464
|
+
}), W += dt, J < B.length - 1) {
|
|
2465
|
+
const vt = (_e(B[J + 1].startTime) - _e(Y.endTime)) / 1e3;
|
|
2466
|
+
vt > 0 && (q.push({
|
|
2467
2467
|
videoUrl: "",
|
|
2468
2468
|
start: W,
|
|
2469
|
-
duration:
|
|
2470
|
-
end: W +
|
|
2469
|
+
duration: vt,
|
|
2470
|
+
end: W + vt,
|
|
2471
2471
|
gapDuration: 0,
|
|
2472
2472
|
isGap: !0
|
|
2473
|
-
}), W +=
|
|
2473
|
+
}), W += vt);
|
|
2474
2474
|
}
|
|
2475
2475
|
}), O.value = q, U.value = W;
|
|
2476
2476
|
}, et = /^((?!chrome|android).)*safari/i.test(
|
|
@@ -2488,20 +2488,20 @@ const He = {
|
|
|
2488
2488
|
}, it = () => {
|
|
2489
2489
|
const B = O.value, W = j.value || 1, q = B.length;
|
|
2490
2490
|
if (!q || !W) return [];
|
|
2491
|
-
const Y = U.value || 1, J = (q - 1) * ve,
|
|
2491
|
+
const Y = U.value || 1, J = (q - 1) * ve, dt = Math.max(0, W - J), vt = [];
|
|
2492
2492
|
let Et = 0;
|
|
2493
2493
|
for (let Pt = 0; Pt < q; Pt++) {
|
|
2494
|
-
const Zt = Y > 0 ? B[Pt].duration / Y *
|
|
2495
|
-
|
|
2494
|
+
const Zt = Y > 0 ? B[Pt].duration / Y * dt : 0;
|
|
2495
|
+
vt.push({ leftPx: Et, widthPx: Zt }), Et += Zt + ve;
|
|
2496
2496
|
}
|
|
2497
|
-
return
|
|
2497
|
+
return vt;
|
|
2498
2498
|
}, st = (B) => {
|
|
2499
2499
|
const W = O.value, q = it();
|
|
2500
2500
|
for (let Y = 0; Y < W.length; Y++) {
|
|
2501
2501
|
const J = W[Y];
|
|
2502
2502
|
if (B >= J.start && B < J.end) {
|
|
2503
|
-
const
|
|
2504
|
-
return q[Y].leftPx +
|
|
2503
|
+
const dt = J.duration ? (B - J.start) / J.duration : 0;
|
|
2504
|
+
return q[Y].leftPx + dt * q[Y].widthPx;
|
|
2505
2505
|
}
|
|
2506
2506
|
}
|
|
2507
2507
|
if (q.length) {
|
|
@@ -2514,8 +2514,8 @@ const He = {
|
|
|
2514
2514
|
for (let Y = 0; Y < q.length; Y++) {
|
|
2515
2515
|
const J = q[Y];
|
|
2516
2516
|
if (B >= J.leftPx && B <= J.leftPx + J.widthPx) {
|
|
2517
|
-
const
|
|
2518
|
-
return W[Y].start +
|
|
2517
|
+
const dt = J.widthPx ? (B - J.leftPx) / J.widthPx : 0;
|
|
2518
|
+
return W[Y].start + dt * W[Y].duration;
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
2521
|
if (q.length) {
|
|
@@ -2580,7 +2580,7 @@ const He = {
|
|
|
2580
2580
|
R(), p && (p.destroy(), p = null);
|
|
2581
2581
|
}, s = () => {
|
|
2582
2582
|
const B = _t();
|
|
2583
|
-
B && B.playbackRate !==
|
|
2583
|
+
B && B.playbackRate !== d.value && (B.playbackRate = d.value);
|
|
2584
2584
|
}, k = () => {
|
|
2585
2585
|
const B = _t();
|
|
2586
2586
|
if (B && (s(), e != null)) {
|
|
@@ -2594,7 +2594,7 @@ const He = {
|
|
|
2594
2594
|
}, L = (B, W, q) => {
|
|
2595
2595
|
const Y = K.value[B];
|
|
2596
2596
|
if (!Y) return;
|
|
2597
|
-
b.value = B, g.value = B, X = !1, e = Math.max(0, W), D = q, a.value = !0,
|
|
2597
|
+
b.value = B, g.value = B, X = !1, e = Math.max(0, W), D = q, a.value = !0, f.value = !0, rt = !0;
|
|
2598
2598
|
const J = A(Y.videoUrl);
|
|
2599
2599
|
J && J.then(() => {
|
|
2600
2600
|
rt = !1, k(), P();
|
|
@@ -2622,8 +2622,8 @@ const He = {
|
|
|
2622
2622
|
if (B && W) {
|
|
2623
2623
|
const Y = W.end, J = W.start + B.currentTime;
|
|
2624
2624
|
_.value = Math.max(W.start, Math.min(J, Y));
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2625
|
+
const dt = Date.now();
|
|
2626
|
+
dt - Z >= 1e3 && (Z = dt, console.log("[Progress]", {
|
|
2627
2627
|
index: b.value,
|
|
2628
2628
|
currentTime: Number(B.currentTime.toFixed(2)),
|
|
2629
2629
|
videoDuration: Number((q = B.duration) == null ? void 0 : q.toFixed(2)),
|
|
@@ -2633,20 +2633,20 @@ const He = {
|
|
|
2633
2633
|
totalDuration: Number(U.value.toFixed(2)),
|
|
2634
2634
|
metaDurations: w.videoList.map((Et) => Et.duration)
|
|
2635
2635
|
}));
|
|
2636
|
-
const
|
|
2637
|
-
B.currentTime >=
|
|
2636
|
+
const vt = W.duration;
|
|
2637
|
+
B.currentTime >= vt - 0.1 && !X && (X = !0, Q());
|
|
2638
2638
|
}
|
|
2639
2639
|
}, Q = () => {
|
|
2640
2640
|
const B = K.value[b.value];
|
|
2641
2641
|
B && (_.value = B.end), b.value < K.value.length - 1 ? L(b.value + 1, 0, !0) : (i.value = !1, u.value = !0, a.value = !0);
|
|
2642
2642
|
}, ot = () => {
|
|
2643
|
-
r.value = !1,
|
|
2643
|
+
r.value = !1, f.value = !1, k(), rt || P();
|
|
2644
2644
|
}, at = () => {
|
|
2645
|
-
|
|
2645
|
+
f.value = !0;
|
|
2646
2646
|
}, wt = () => {
|
|
2647
|
-
|
|
2647
|
+
f.value = !1, i.value = !0, a.value = !1, ut();
|
|
2648
2648
|
}, It = () => {
|
|
2649
|
-
|
|
2649
|
+
f.value = !1, i.value = !1, u.value = !0;
|
|
2650
2650
|
}, kt = () => {
|
|
2651
2651
|
r.value = !0, a.value = !1;
|
|
2652
2652
|
}, Tt = () => {
|
|
@@ -2684,10 +2684,10 @@ const He = {
|
|
|
2684
2684
|
T || (T = setTimeout(() => {
|
|
2685
2685
|
var Et;
|
|
2686
2686
|
T = null;
|
|
2687
|
-
const J = xt(Y.clientX),
|
|
2688
|
-
tt.value = J, H.value = Math.max(0, Math.min(
|
|
2689
|
-
const
|
|
2690
|
-
_.value = ((Et = K.value[
|
|
2687
|
+
const J = xt(Y.clientX), dt = Dt(J);
|
|
2688
|
+
tt.value = J, H.value = Math.max(0, Math.min(dt, U.value - 0.05));
|
|
2689
|
+
const vt = yt(dt);
|
|
2690
|
+
_.value = ((Et = K.value[vt.index]) == null ? void 0 : Et.start) + vt.local;
|
|
2691
2691
|
}, 30));
|
|
2692
2692
|
}, q = (Y) => {
|
|
2693
2693
|
S.value = !1, I.value = !1, T && (clearTimeout(T), T = null), document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", q), Yt(xt(Y.clientX));
|
|
@@ -2716,7 +2716,7 @@ const He = {
|
|
|
2716
2716
|
};
|
|
2717
2717
|
V.signal.addEventListener("abort", W);
|
|
2718
2718
|
try {
|
|
2719
|
-
const J = w.videoList,
|
|
2719
|
+
const J = w.videoList, dt = (q = J == null ? void 0 : J[0]) == null ? void 0 : q.deviceId, vt = ((Y = J == null ? void 0 : J[0]) == null ? void 0 : Y.startTime) || (/* @__PURE__ */ new Date()).toISOString(), Et = J.length, Pt = new Array(Et).fill(0), Zt = async (Ht, te) => {
|
|
2720
2720
|
const Gt = new Ze();
|
|
2721
2721
|
B.push(Gt), Gt.setProgressCallback((Se) => {
|
|
2722
2722
|
Pt[te] = Number(Se) || 0, F.value = Math.round(
|
|
@@ -2729,15 +2729,15 @@ const He = {
|
|
|
2729
2729
|
}, se = await Promise.all(J.map(Zt));
|
|
2730
2730
|
if (V != null && V.signal.aborted) throw new Error("Download aborted");
|
|
2731
2731
|
if (Et === 1) {
|
|
2732
|
-
ae(se[0], `${
|
|
2732
|
+
ae(se[0], `${dt} (${vt}).mp4`);
|
|
2733
2733
|
return;
|
|
2734
2734
|
}
|
|
2735
|
-
const oe = new je(), ke = oe.folder(`${
|
|
2735
|
+
const oe = new je(), ke = oe.folder(`${dt} (${vt}).mp4`);
|
|
2736
2736
|
J.forEach((Ht, te) => {
|
|
2737
2737
|
ke.file(`${Ht.deviceId} (${Ht.startTime}).mp4`, se[te]);
|
|
2738
2738
|
});
|
|
2739
2739
|
const xe = await oe.generateAsync({ type: "blob" });
|
|
2740
|
-
ae(xe, `${
|
|
2740
|
+
ae(xe, `${dt} (${vt}).zip`);
|
|
2741
2741
|
} catch (J) {
|
|
2742
2742
|
if (V != null && V.signal.aborted) {
|
|
2743
2743
|
console.log("[Download] cancelled");
|
|
@@ -2748,7 +2748,7 @@ const He = {
|
|
|
2748
2748
|
V == null || V.signal.removeEventListener("abort", W), V = null, x.value = !1;
|
|
2749
2749
|
}
|
|
2750
2750
|
};
|
|
2751
|
-
|
|
2751
|
+
ft({ abortDownload: ie });
|
|
2752
2752
|
const ye = () => {
|
|
2753
2753
|
var B;
|
|
2754
2754
|
(B = w.videoList) == null || B.forEach((W) => {
|
|
@@ -2768,7 +2768,7 @@ const He = {
|
|
|
2768
2768
|
const B = o.value;
|
|
2769
2769
|
B && (j.value = B.getBoundingClientRect().width);
|
|
2770
2770
|
};
|
|
2771
|
-
return ce(
|
|
2771
|
+
return ce(d, () => {
|
|
2772
2772
|
s();
|
|
2773
2773
|
}), Le(() => {
|
|
2774
2774
|
ie(), m && clearTimeout(m), T && clearTimeout(T), window.removeEventListener("resize", Qt), c();
|
|
@@ -2776,7 +2776,7 @@ const He = {
|
|
|
2776
2776
|
const q = Be, Y = Ie;
|
|
2777
2777
|
return Ct(), zt("div", {
|
|
2778
2778
|
class: "video-viewport",
|
|
2779
|
-
style: Mt({ width:
|
|
2779
|
+
style: Mt({ width: B.dialogWidth + "px", height: B.dialogHeight + "px" }),
|
|
2780
2780
|
onMouseenter: Rt,
|
|
2781
2781
|
onMouseleave: Nt
|
|
2782
2782
|
}, [
|
|
@@ -2795,7 +2795,7 @@ const He = {
|
|
|
2795
2795
|
src: $.value,
|
|
2796
2796
|
alt: ""
|
|
2797
2797
|
}, null, 8, Ge)) : $t("", !0),
|
|
2798
|
-
|
|
2798
|
+
f.value ? (Ct(), zt("div", $e, [
|
|
2799
2799
|
At(he, {
|
|
2800
2800
|
white: !0,
|
|
2801
2801
|
loading: !0
|
|
@@ -2805,7 +2805,7 @@ const He = {
|
|
|
2805
2805
|
class: "center-play-overlay",
|
|
2806
2806
|
onClick: E
|
|
2807
2807
|
}, [
|
|
2808
|
-
At(
|
|
2808
|
+
At(de, { name: "fade" }, {
|
|
2809
2809
|
default: Kt(() => [
|
|
2810
2810
|
ee(lt("div", Ke, [
|
|
2811
2811
|
At(q, {
|
|
@@ -2819,7 +2819,7 @@ const He = {
|
|
|
2819
2819
|
]),
|
|
2820
2820
|
_: 1
|
|
2821
2821
|
}),
|
|
2822
|
-
At(
|
|
2822
|
+
At(de, { name: "fade" }, {
|
|
2823
2823
|
default: Kt(() => [
|
|
2824
2824
|
ee(lt("div", {
|
|
2825
2825
|
class: "center-time",
|
|
@@ -2843,7 +2843,7 @@ const He = {
|
|
|
2843
2843
|
}, [
|
|
2844
2844
|
lt("div", {
|
|
2845
2845
|
class: "progress-container",
|
|
2846
|
-
style: Mt({ width:
|
|
2846
|
+
style: Mt({ width: B.dialogWidth - 500 + "px" })
|
|
2847
2847
|
}, [
|
|
2848
2848
|
lt("div", Ye, [
|
|
2849
2849
|
lt("div", qe, [
|
|
@@ -2866,10 +2866,10 @@ const He = {
|
|
|
2866
2866
|
onMousemove: Jt,
|
|
2867
2867
|
onMouseleave: Wt
|
|
2868
2868
|
}, [
|
|
2869
|
-
(Ct(!0), zt(
|
|
2870
|
-
key:
|
|
2869
|
+
(Ct(!0), zt(fe, null, pe(O.value, (J, dt) => (Ct(), zt("div", {
|
|
2870
|
+
key: dt,
|
|
2871
2871
|
class: me(["progress-segment", { gap: J.isGap }]),
|
|
2872
|
-
style: Mt(ct(J,
|
|
2872
|
+
style: Mt(ct(J, dt))
|
|
2873
2873
|
}, null, 6))), 128)),
|
|
2874
2874
|
lt("div", {
|
|
2875
2875
|
class: "progress-thumb",
|
|
@@ -2890,10 +2890,10 @@ const He = {
|
|
|
2890
2890
|
onClick: W[1] || (W[1] = Bt(() => {
|
|
2891
2891
|
}, ["stop"]))
|
|
2892
2892
|
}, [
|
|
2893
|
-
(Ct(!0), zt(
|
|
2893
|
+
(Ct(!0), zt(fe, null, pe(jt(et), (J) => (Ct(), zt("span", {
|
|
2894
2894
|
key: J,
|
|
2895
|
-
class: me(["speed-text", { active:
|
|
2896
|
-
onClick: Bt((
|
|
2895
|
+
class: me(["speed-text", { active: d.value === J }]),
|
|
2896
|
+
onClick: Bt((dt) => d.value = J, ["stop"])
|
|
2897
2897
|
}, "X" + St(J), 11, tr))), 128))
|
|
2898
2898
|
])
|
|
2899
2899
|
], 4)
|
|
@@ -2939,7 +2939,7 @@ const He = {
|
|
|
2939
2939
|
], 36);
|
|
2940
2940
|
};
|
|
2941
2941
|
}
|
|
2942
|
-
}),
|
|
2942
|
+
}), fr = /* @__PURE__ */ De(ar, [["__scopeId", "data-v-a84944e9"]]);
|
|
2943
2943
|
export {
|
|
2944
|
-
|
|
2944
|
+
fr as default
|
|
2945
2945
|
};
|