anytrek-front-public-component 1.13.22 → 1.13.24

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.
@@ -0,0 +1,2943 @@
1
+ var Ce = Object.defineProperty;
2
+ var ze = (_t, dt, v) => dt in _t ? Ce(_t, dt, { enumerable: !0, configurable: !0, writable: !0, value: v }) : _t[dt] = v;
3
+ var Lt = (_t, dt, v) => ze(_t, typeof dt != "symbol" ? dt + "" : dt, v);
4
+ import { ElButton as Ae } from "element-plus/es";
5
+ import "element-plus/es/components/base/style/css";
6
+ import "element-plus/es/components/button/style/css";
7
+ import { c as Ie, d as le, f as Te, L as ue, _ as Oe, u as Be, a as Re } from "./index-CE04Wo0r.mjs";
8
+ import { defineComponent as De, computed as Nt, ref as pt, watch as he, onMounted as Fe, onBeforeUnmount as Pe, openBlock as It, createElementBlock as Tt, normalizeStyle as Ut, createElementVNode as lt, toDisplayString as St, unref as Gt, createCommentVNode as $t, createVNode as zt, Transition as ce, withCtx as Kt, withDirectives as ee, vShow as re, withModifiers as Dt, Fragment as fe, renderList as de, normalizeClass as pe } from "vue";
9
+ import { g as Le, c as Xt, H as me, P as Ne } from "./xgplayer-Cpii7T5s.mjs";
10
+ function Vt(_t) {
11
+ throw new Error('Could not dynamically require "' + _t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
12
+ }
13
+ var ve = { exports: {} };
14
+ /*!
15
+
16
+ JSZip v3.10.1 - A JavaScript class for generating and reading zip files
17
+ <http://stuartk.com/jszip>
18
+
19
+ (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
20
+ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
21
+
22
+ JSZip uses the library pako released under the MIT license :
23
+ https://github.com/nodeca/pako/blob/main/LICENSE
24
+ */
25
+ (function(_t, dt) {
26
+ (function(v) {
27
+ _t.exports = v();
28
+ })(function() {
29
+ return function v(L, w, h) {
30
+ function l(p, b) {
31
+ if (!w[p]) {
32
+ if (!L[p]) {
33
+ var g = typeof Vt == "function" && Vt;
34
+ if (!b && g) return g(p, !0);
35
+ if (n) return n(p, !0);
36
+ var _ = new Error("Cannot find module '" + p + "'");
37
+ throw _.code = "MODULE_NOT_FOUND", _;
38
+ }
39
+ var i = w[p] = { exports: {} };
40
+ L[p][0].call(i.exports, function(f) {
41
+ var r = L[p][1][f];
42
+ return l(r || f);
43
+ }, i, i.exports, v, L, w, h);
44
+ }
45
+ return w[p].exports;
46
+ }
47
+ for (var n = typeof Vt == "function" && Vt, o = 0; o < h.length; o++) l(h[o]);
48
+ return l;
49
+ }({ 1: [function(v, L, w) {
50
+ var h = v("./utils"), l = v("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
51
+ w.encode = function(o) {
52
+ for (var p, b, g, _, i, f, r, u = [], a = 0, d = o.length, y = d, S = h.getTypeOf(o) !== "string"; a < o.length; ) y = d - a, g = S ? (p = o[a++], b = a < d ? o[a++] : 0, a < d ? o[a++] : 0) : (p = o.charCodeAt(a++), b = a < d ? o.charCodeAt(a++) : 0, a < d ? o.charCodeAt(a++) : 0), _ = p >> 2, i = (3 & p) << 4 | b >> 4, f = 1 < y ? (15 & b) << 2 | g >> 6 : 64, r = 2 < y ? 63 & g : 64, u.push(n.charAt(_) + n.charAt(i) + n.charAt(f) + n.charAt(r));
53
+ return u.join("");
54
+ }, w.decode = function(o) {
55
+ var p, b, g, _, i, f, r = 0, u = 0, a = "data:";
56
+ if (o.substr(0, a.length) === a) throw new Error("Invalid base64 input, it looks like a data url.");
57
+ var d, y = 3 * (o = o.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
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 (d = 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 | (f = n.indexOf(o.charAt(r++))), d[u++] = p, i !== 64 && (d[u++] = b), f !== 64 && (d[u++] = g);
60
+ return d;
61
+ };
62
+ }, { "./support": 30, "./utils": 32 }], 2: [function(v, L, w) {
63
+ var h = v("./external"), l = v("./stream/DataWorker"), n = v("./stream/Crc32Probe"), o = v("./stream/DataLengthProbe");
64
+ function p(b, g, _, i, f) {
65
+ this.compressedSize = b, this.uncompressedSize = g, this.crc32 = _, this.compression = i, this.compressedContent = f;
66
+ }
67
+ p.prototype = { getContentWorker: function() {
68
+ var b = new l(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")), g = this;
69
+ return b.on("end", function() {
70
+ if (this.streamInfo.data_length !== g.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
71
+ }), b;
72
+ }, getCompressedWorker: function() {
73
+ return new l(h.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
74
+ } }, p.createWorkerFrom = function(b, g, _) {
75
+ return b.pipe(new n()).pipe(new o("uncompressedSize")).pipe(g.compressWorker(_)).pipe(new o("compressedSize")).withStreamInfo("compression", g);
76
+ }, L.exports = p;
77
+ }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(v, L, w) {
78
+ var h = v("./stream/GenericWorker");
79
+ w.STORE = { magic: "\0\0", compressWorker: function() {
80
+ return new h("STORE compression");
81
+ }, uncompressWorker: function() {
82
+ return new h("STORE decompression");
83
+ } }, w.DEFLATE = v("./flate");
84
+ }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(v, L, w) {
85
+ var h = v("./utils"), l = function() {
86
+ for (var n, o = [], p = 0; p < 256; p++) {
87
+ n = p;
88
+ for (var b = 0; b < 8; b++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
89
+ o[p] = n;
90
+ }
91
+ return o;
92
+ }();
93
+ L.exports = function(n, o) {
94
+ return n !== void 0 && n.length ? h.getTypeOf(n) !== "string" ? function(p, b, g, _) {
95
+ var i = l, f = _ + g;
96
+ p ^= -1;
97
+ for (var r = _; r < f; r++) p = p >>> 8 ^ i[255 & (p ^ b[r])];
98
+ return -1 ^ p;
99
+ }(0 | o, n, n.length, 0) : function(p, b, g, _) {
100
+ var i = l, f = _ + g;
101
+ p ^= -1;
102
+ for (var r = _; r < f; r++) p = p >>> 8 ^ i[255 & (p ^ b.charCodeAt(r))];
103
+ return -1 ^ p;
104
+ }(0 | o, n, n.length, 0) : 0;
105
+ };
106
+ }, { "./utils": 32 }], 5: [function(v, L, w) {
107
+ w.base64 = !1, w.binary = !1, w.dir = !1, w.createFolders = !0, w.date = null, w.compression = null, w.compressionOptions = null, w.comment = null, w.unixPermissions = null, w.dosPermissions = null;
108
+ }, {}], 6: [function(v, L, w) {
109
+ var h = null;
110
+ h = typeof Promise < "u" ? Promise : v("lie"), L.exports = { Promise: h };
111
+ }, { lie: 37 }], 7: [function(v, L, w) {
112
+ var h = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", l = v("pako"), n = v("./utils"), o = v("./stream/GenericWorker"), p = h ? "uint8array" : "array";
113
+ function b(g, _) {
114
+ o.call(this, "FlateWorker/" + g), this._pako = null, this._pakoAction = g, this._pakoOptions = _, this.meta = {};
115
+ }
116
+ w.magic = "\b\0", n.inherits(b, o), b.prototype.processChunk = function(g) {
117
+ this.meta = g.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(p, g.data), !1);
118
+ }, b.prototype.flush = function() {
119
+ o.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
120
+ }, b.prototype.cleanUp = function() {
121
+ o.prototype.cleanUp.call(this), this._pako = null;
122
+ }, b.prototype._createPako = function() {
123
+ this._pako = new l[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
124
+ var g = this;
125
+ this._pako.onData = function(_) {
126
+ g.push({ data: _, meta: g.meta });
127
+ };
128
+ }, w.compressWorker = function(g) {
129
+ return new b("Deflate", g);
130
+ }, w.uncompressWorker = function() {
131
+ return new b("Inflate", {});
132
+ };
133
+ }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(v, L, w) {
134
+ function h(i, f) {
135
+ var r, u = "";
136
+ for (r = 0; r < f; r++) u += String.fromCharCode(255 & i), i >>>= 8;
137
+ return u;
138
+ }
139
+ function l(i, f, r, u, a, d) {
140
+ var y, S, x = i.file, P = i.compression, O = d !== p.utf8encode, N = n.transformTo("string", d(x.name)), I = n.transformTo("string", p.utf8encode(x.name)), H = x.comment, et = n.transformTo("string", d(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
+ f && !r || (V.crc32 = i.crc32, V.compressedSize = i.compressedSize, V.uncompressedSize = i.uncompressedSize);
142
+ var z = 0;
143
+ f && (z |= 8), O || !T && !e || (z |= 2048);
144
+ var C = 0, Q = 0;
145
+ nt && (C |= 16), a === "UNIX" ? (Q = 798, C |= function($, ut) {
146
+ var mt = $;
147
+ return $ || (mt = ut ? 16893 : 33204), (65535 & mt) << 16;
148
+ }(x.unixPermissions, nt)) : (Q = 20, C |= function($) {
149
+ return 63 & ($ || 0);
150
+ }(x.dosPermissions)), y = j.getUTCHours(), y <<= 6, y |= j.getUTCMinutes(), y <<= 5, y |= j.getUTCSeconds() / 2, S = j.getUTCFullYear() - 1980, S <<= 4, S |= j.getUTCMonth() + 1, S <<= 5, S |= j.getUTCDate(), T && (rt = h(1, 1) + h(b(N), 4) + I, D += "up" + h(rt.length, 2) + rt), e && (M = h(1, 1) + h(b(et), 4) + m, D += "uc" + h(M.length, 2) + M);
151
+ var K = "";
152
+ return K += `
153
+ \0`, K += h(z, 2), K += P.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(N.length, 2), K += h(D.length, 2), { fileRecord: g.LOCAL_FILE_HEADER + K + N + D, dirRecord: g.CENTRAL_FILE_HEADER + h(Q, 2) + K + h(et.length, 2) + "\0\0\0\0" + h(C, 4) + h(u, 4) + N + D + et };
154
+ }
155
+ var n = v("../utils"), o = v("../stream/GenericWorker"), p = v("../utf8"), b = v("../crc32"), g = v("../signature");
156
+ function _(i, f, r, u) {
157
+ o.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = f, 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
+ }
159
+ n.inherits(_, o), _.prototype.push = function(i) {
160
+ var f = 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 ? (f + 100 * (r - u - 1)) / r : 100 } }));
162
+ }, _.prototype.openedSource = function(i) {
163
+ this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
164
+ var f = this.streamFiles && !i.file.dir;
165
+ if (f) {
166
+ var r = l(i, f, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
167
+ this.push({ data: r.fileRecord, meta: { percent: 0 } });
168
+ } else this.accumulate = !0;
169
+ }, _.prototype.closedSource = function(i) {
170
+ this.accumulate = !1;
171
+ var f = this.streamFiles && !i.file.dir, r = l(i, f, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
172
+ if (this.dirRecords.push(r.dirRecord), f) this.push({ data: function(u) {
173
+ return g.DATA_DESCRIPTOR + h(u.crc32, 4) + h(u.compressedSize, 4) + h(u.uncompressedSize, 4);
174
+ }(i), meta: { percent: 100 } });
175
+ else for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
176
+ this.currentFile = null;
177
+ }, _.prototype.flush = function() {
178
+ for (var i = this.bytesWritten, f = 0; f < this.dirRecords.length; f++) this.push({ data: this.dirRecords[f], meta: { percent: 100 } });
179
+ var r = this.bytesWritten - i, u = function(a, d, y, S, x) {
180
+ var P = n.transformTo("string", x(S));
181
+ return g.CENTRAL_DIRECTORY_END + "\0\0\0\0" + h(a, 2) + h(a, 2) + h(d, 4) + h(y, 4) + h(P.length, 2) + P;
182
+ }(this.dirRecords.length, r, i, this.zipComment, this.encodeFileName);
183
+ this.push({ data: u, meta: { percent: 100 } });
184
+ }, _.prototype.prepareNextSource = function() {
185
+ this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
186
+ }, _.prototype.registerPrevious = function(i) {
187
+ this._sources.push(i);
188
+ var f = this;
189
+ return i.on("data", function(r) {
190
+ f.processChunk(r);
191
+ }), i.on("end", function() {
192
+ f.closedSource(f.previous.streamInfo), f._sources.length ? f.prepareNextSource() : f.end();
193
+ }), i.on("error", function(r) {
194
+ f.error(r);
195
+ }), this;
196
+ }, _.prototype.resume = function() {
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
+ }, _.prototype.error = function(i) {
199
+ var f = this._sources;
200
+ if (!o.prototype.error.call(this, i)) return !1;
201
+ for (var r = 0; r < f.length; r++) try {
202
+ f[r].error(i);
203
+ } catch {
204
+ }
205
+ return !0;
206
+ }, _.prototype.lock = function() {
207
+ o.prototype.lock.call(this);
208
+ for (var i = this._sources, f = 0; f < i.length; f++) i[f].lock();
209
+ }, L.exports = _;
210
+ }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(v, L, w) {
211
+ var h = v("../compressions"), l = v("./ZipFileWorker");
212
+ w.generateWorker = function(n, o, p) {
213
+ var b = new l(o.streamFiles, p, o.platform, o.encodeFileName), g = 0;
214
+ try {
215
+ n.forEach(function(_, i) {
216
+ g++;
217
+ var f = function(d, y) {
218
+ var S = d || y, x = h[S];
219
+ if (!x) throw new Error(S + " is not a valid compression method !");
220
+ return x;
221
+ }(i.options.compression, o.compression), r = i.options.compressionOptions || o.compressionOptions || {}, u = i.dir, a = i.date;
222
+ i._compressWorker(f, r).withStreamInfo("file", { name: _, dir: u, date: a, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(b);
223
+ }), b.entriesCount = g;
224
+ } catch (_) {
225
+ b.error(_);
226
+ }
227
+ return b;
228
+ };
229
+ }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(v, L, w) {
230
+ function h() {
231
+ if (!(this instanceof h)) return new h();
232
+ if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
233
+ this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
234
+ var l = new h();
235
+ for (var n in this) typeof this[n] != "function" && (l[n] = this[n]);
236
+ return l;
237
+ };
238
+ }
239
+ (h.prototype = v("./object")).loadAsync = v("./load"), h.support = v("./support"), h.defaults = v("./defaults"), h.version = "3.10.1", h.loadAsync = function(l, n) {
240
+ return new h().loadAsync(l, n);
241
+ }, h.external = v("./external"), L.exports = h;
242
+ }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(v, L, w) {
243
+ var h = v("./utils"), l = v("./external"), n = v("./utf8"), o = v("./zipEntries"), p = v("./stream/Crc32Probe"), b = v("./nodejsUtils");
244
+ function g(_) {
245
+ return new l.Promise(function(i, f) {
246
+ var r = _.decompressed.getContentWorker().pipe(new p());
247
+ r.on("error", function(u) {
248
+ f(u);
249
+ }).on("end", function() {
250
+ r.streamInfo.crc32 !== _.decompressed.crc32 ? f(new Error("Corrupted zip : CRC32 mismatch")) : i();
251
+ }).resume();
252
+ });
253
+ }
254
+ L.exports = function(_, i) {
255
+ var f = this;
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
+ var u = new o(i);
258
+ return u.load(r), u;
259
+ }).then(function(r) {
260
+ var u = [l.Promise.resolve(r)], a = r.files;
261
+ if (i.checkCRC32) for (var d = 0; d < a.length; d++) u.push(g(a[d]));
262
+ return l.Promise.all(u);
263
+ }).then(function(r) {
264
+ for (var u = r.shift(), a = u.files, d = 0; d < a.length; d++) {
265
+ var y = a[d], S = y.fileNameStr, x = h.resolve(y.fileNameStr);
266
+ f.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 || (f.file(x).unsafeOriginalName = S);
267
+ }
268
+ return u.zipComment.length && (f.comment = u.zipComment), f;
269
+ });
270
+ };
271
+ }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(v, L, w) {
272
+ var h = v("../utils"), l = v("../stream/GenericWorker");
273
+ function n(o, p) {
274
+ l.call(this, "Nodejs stream input adapter for " + o), this._upstreamEnded = !1, this._bindStream(p);
275
+ }
276
+ h.inherits(n, l), n.prototype._bindStream = function(o) {
277
+ var p = this;
278
+ (this._stream = o).pause(), o.on("data", function(b) {
279
+ p.push({ data: b, meta: { percent: 0 } });
280
+ }).on("error", function(b) {
281
+ p.isPaused ? this.generatedError = b : p.error(b);
282
+ }).on("end", function() {
283
+ p.isPaused ? p._upstreamEnded = !0 : p.end();
284
+ });
285
+ }, n.prototype.pause = function() {
286
+ return !!l.prototype.pause.call(this) && (this._stream.pause(), !0);
287
+ }, n.prototype.resume = function() {
288
+ return !!l.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
289
+ }, L.exports = n;
290
+ }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(v, L, w) {
291
+ var h = v("readable-stream").Readable;
292
+ function l(n, o, p) {
293
+ h.call(this, o), this._helper = n;
294
+ var b = this;
295
+ n.on("data", function(g, _) {
296
+ b.push(g) || b._helper.pause(), p && p(_);
297
+ }).on("error", function(g) {
298
+ b.emit("error", g);
299
+ }).on("end", function() {
300
+ b.push(null);
301
+ });
302
+ }
303
+ v("../utils").inherits(l, h), l.prototype._read = function() {
304
+ this._helper.resume();
305
+ }, L.exports = l;
306
+ }, { "../utils": 32, "readable-stream": 16 }], 14: [function(v, L, w) {
307
+ L.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(h, l) {
308
+ if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(h, l);
309
+ if (typeof h == "number") throw new Error('The "data" argument must not be a number');
310
+ return new Buffer(h, l);
311
+ }, allocBuffer: function(h) {
312
+ if (Buffer.alloc) return Buffer.alloc(h);
313
+ var l = new Buffer(h);
314
+ return l.fill(0), l;
315
+ }, isBuffer: function(h) {
316
+ return Buffer.isBuffer(h);
317
+ }, isStream: function(h) {
318
+ return h && typeof h.on == "function" && typeof h.pause == "function" && typeof h.resume == "function";
319
+ } };
320
+ }, {}], 15: [function(v, L, w) {
321
+ function h(x, P, O) {
322
+ var N, I = n.getTypeOf(P), 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 && (N = u(x)) && d.call(this, N, !0);
324
+ var et = I === "string" && H.binary === !1 && H.base64 === !1;
325
+ O && O.binary !== void 0 || (H.binary = !et), (P instanceof g && P.uncompressedSize === 0 || H.dir || !P || P.length === 0) && (H.base64 = !1, H.binary = !0, P = "", H.compression = "STORE", I = "string");
326
+ var m = null;
327
+ m = P instanceof g || P instanceof o ? P : f.isNode && f.isStream(P) ? new r(x, P) : n.prepareContent(x, P, H.binary, H.optimizedBinaryString, H.base64);
328
+ var T = new _(x, m, H);
329
+ this.files[x] = T;
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"), f = v("./nodejsUtils"), r = v("./nodejs/NodejsStreamInputAdapter"), u = function(x) {
332
+ x.slice(-1) === "/" && (x = x.substring(0, x.length - 1));
333
+ var P = x.lastIndexOf("/");
334
+ return 0 < P ? x.substring(0, P) : "";
335
+ }, a = function(x) {
336
+ return x.slice(-1) !== "/" && (x += "/"), x;
337
+ }, d = function(x, P) {
338
+ return P = P !== void 0 ? P : b.createFolders, x = a(x), this.files[x] || h.call(this, x, null, { dir: !0, createFolders: P }), this.files[x];
339
+ };
340
+ function y(x) {
341
+ return Object.prototype.toString.call(x) === "[object RegExp]";
342
+ }
343
+ var S = { load: function() {
344
+ throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
345
+ }, forEach: function(x) {
346
+ var P, O, N;
347
+ for (P in this.files) N = this.files[P], (O = P.slice(this.root.length, P.length)) && P.slice(0, this.root.length) === this.root && x(O, N);
348
+ }, filter: function(x) {
349
+ var P = [];
350
+ return this.forEach(function(O, N) {
351
+ x(O, N) && P.push(N);
352
+ }), P;
353
+ }, file: function(x, P, O) {
354
+ if (arguments.length !== 1) return x = this.root + x, h.call(this, x, P, O), this;
355
+ if (y(x)) {
356
+ var N = x;
357
+ return this.filter(function(H, et) {
358
+ return !et.dir && N.test(H);
359
+ });
360
+ }
361
+ var I = this.files[this.root + x];
362
+ return I && !I.dir ? I : null;
363
+ }, folder: function(x) {
364
+ if (!x) return this;
365
+ if (y(x)) return this.filter(function(I, H) {
366
+ return H.dir && x.test(I);
367
+ });
368
+ var P = this.root + x, O = d.call(this, P), N = this.clone();
369
+ return N.root = O.name, N;
370
+ }, remove: function(x) {
371
+ x = this.root + x;
372
+ var P = this.files[x];
373
+ if (P || (x.slice(-1) !== "/" && (x += "/"), P = this.files[x]), P && !P.dir) delete this.files[x];
374
+ else for (var O = this.filter(function(I, H) {
375
+ return H.name.slice(0, x.length) === x;
376
+ }), N = 0; N < O.length; N++) delete this.files[O[N].name];
377
+ return this;
378
+ }, generate: function() {
379
+ throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
380
+ }, generateInternalStream: function(x) {
381
+ var P, O = {};
382
+ try {
383
+ if ((O = n.extend(x || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: l.utf8encode })).type = O.type.toLowerCase(), O.compression = O.compression.toUpperCase(), O.type === "binarystring" && (O.type = "string"), !O.type) throw new Error("No output type specified.");
384
+ n.checkSupport(O.type), O.platform !== "darwin" && O.platform !== "freebsd" && O.platform !== "linux" && O.platform !== "sunos" || (O.platform = "UNIX"), O.platform === "win32" && (O.platform = "DOS");
385
+ var N = O.comment || this.comment || "";
386
+ P = i.generateWorker(this, O, N);
387
+ } catch (I) {
388
+ (P = new o("error")).error(I);
389
+ }
390
+ return new p(P, O.type || "string", O.mimeType);
391
+ }, generateAsync: function(x, P) {
392
+ return this.generateInternalStream(x).accumulate(P);
393
+ }, generateNodeStream: function(x, P) {
394
+ return (x = x || {}).type || (x.type = "nodebuffer"), this.generateInternalStream(x).toNodejsStream(P);
395
+ } };
396
+ L.exports = S;
397
+ }, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(v, L, w) {
398
+ L.exports = v("stream");
399
+ }, { stream: void 0 }], 17: [function(v, L, w) {
400
+ var h = v("./DataReader");
401
+ function l(n) {
402
+ h.call(this, n);
403
+ for (var o = 0; o < this.data.length; o++) n[o] = 255 & n[o];
404
+ }
405
+ v("../utils").inherits(l, h), l.prototype.byteAt = function(n) {
406
+ return this.data[this.zero + n];
407
+ }, l.prototype.lastIndexOfSignature = function(n) {
408
+ for (var o = n.charCodeAt(0), p = n.charCodeAt(1), b = n.charCodeAt(2), g = n.charCodeAt(3), _ = this.length - 4; 0 <= _; --_) if (this.data[_] === o && this.data[_ + 1] === p && this.data[_ + 2] === b && this.data[_ + 3] === g) return _ - this.zero;
409
+ return -1;
410
+ }, l.prototype.readAndCheckSignature = function(n) {
411
+ var o = n.charCodeAt(0), p = n.charCodeAt(1), b = n.charCodeAt(2), g = n.charCodeAt(3), _ = this.readData(4);
412
+ return o === _[0] && p === _[1] && b === _[2] && g === _[3];
413
+ }, l.prototype.readData = function(n) {
414
+ if (this.checkOffset(n), n === 0) return [];
415
+ var o = this.data.slice(this.zero + this.index, this.zero + this.index + n);
416
+ return this.index += n, o;
417
+ }, L.exports = l;
418
+ }, { "../utils": 32, "./DataReader": 18 }], 18: [function(v, L, w) {
419
+ var h = v("../utils");
420
+ function l(n) {
421
+ this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
422
+ }
423
+ l.prototype = { checkOffset: function(n) {
424
+ this.checkIndex(this.index + n);
425
+ }, checkIndex: function(n) {
426
+ if (this.length < this.zero + n || n < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + n + "). Corrupted zip ?");
427
+ }, setIndex: function(n) {
428
+ this.checkIndex(n), this.index = n;
429
+ }, skip: function(n) {
430
+ this.setIndex(this.index + n);
431
+ }, byteAt: function() {
432
+ }, readInt: function(n) {
433
+ var o, p = 0;
434
+ for (this.checkOffset(n), o = this.index + n - 1; o >= this.index; o--) p = (p << 8) + this.byteAt(o);
435
+ return this.index += n, p;
436
+ }, readString: function(n) {
437
+ return h.transformTo("string", this.readData(n));
438
+ }, readData: function() {
439
+ }, lastIndexOfSignature: function() {
440
+ }, readAndCheckSignature: function() {
441
+ }, readDate: function() {
442
+ var n = this.readInt(4);
443
+ return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
444
+ } }, L.exports = l;
445
+ }, { "../utils": 32 }], 19: [function(v, L, w) {
446
+ var h = v("./Uint8ArrayReader");
447
+ function l(n) {
448
+ h.call(this, n);
449
+ }
450
+ v("../utils").inherits(l, h), l.prototype.readData = function(n) {
451
+ this.checkOffset(n);
452
+ var o = this.data.slice(this.zero + this.index, this.zero + this.index + n);
453
+ return this.index += n, o;
454
+ }, L.exports = l;
455
+ }, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(v, L, w) {
456
+ var h = v("./DataReader");
457
+ function l(n) {
458
+ h.call(this, n);
459
+ }
460
+ v("../utils").inherits(l, h), l.prototype.byteAt = function(n) {
461
+ return this.data.charCodeAt(this.zero + n);
462
+ }, l.prototype.lastIndexOfSignature = function(n) {
463
+ return this.data.lastIndexOf(n) - this.zero;
464
+ }, l.prototype.readAndCheckSignature = function(n) {
465
+ return n === this.readData(4);
466
+ }, l.prototype.readData = function(n) {
467
+ this.checkOffset(n);
468
+ var o = this.data.slice(this.zero + this.index, this.zero + this.index + n);
469
+ return this.index += n, o;
470
+ }, L.exports = l;
471
+ }, { "../utils": 32, "./DataReader": 18 }], 21: [function(v, L, w) {
472
+ var h = v("./ArrayReader");
473
+ function l(n) {
474
+ h.call(this, n);
475
+ }
476
+ v("../utils").inherits(l, h), l.prototype.readData = function(n) {
477
+ if (this.checkOffset(n), n === 0) return new Uint8Array(0);
478
+ var o = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
479
+ return this.index += n, o;
480
+ }, L.exports = l;
481
+ }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(v, L, w) {
482
+ var h = v("../utils"), l = v("../support"), n = v("./ArrayReader"), o = v("./StringReader"), p = v("./NodeBufferReader"), b = v("./Uint8ArrayReader");
483
+ L.exports = function(g) {
484
+ var _ = h.getTypeOf(g);
485
+ return h.checkSupport(_), _ !== "string" || l.uint8array ? _ === "nodebuffer" ? new p(g) : l.uint8array ? new b(h.transformTo("uint8array", g)) : new n(h.transformTo("array", g)) : new o(g);
486
+ };
487
+ }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(v, L, w) {
488
+ w.LOCAL_FILE_HEADER = "PK", w.CENTRAL_FILE_HEADER = "PK", w.CENTRAL_DIRECTORY_END = "PK", w.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", w.ZIP64_CENTRAL_DIRECTORY_END = "PK", w.DATA_DESCRIPTOR = "PK\x07\b";
489
+ }, {}], 24: [function(v, L, w) {
490
+ var h = v("./GenericWorker"), l = v("../utils");
491
+ function n(o) {
492
+ h.call(this, "ConvertWorker to " + o), this.destType = o;
493
+ }
494
+ l.inherits(n, h), n.prototype.processChunk = function(o) {
495
+ this.push({ data: l.transformTo(this.destType, o.data), meta: o.meta });
496
+ }, L.exports = n;
497
+ }, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(v, L, w) {
498
+ var h = v("./GenericWorker"), l = v("../crc32");
499
+ function n() {
500
+ h.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
501
+ }
502
+ v("../utils").inherits(n, h), n.prototype.processChunk = function(o) {
503
+ this.streamInfo.crc32 = l(o.data, this.streamInfo.crc32 || 0), this.push(o);
504
+ }, L.exports = n;
505
+ }, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(v, L, w) {
506
+ var h = v("../utils"), l = v("./GenericWorker");
507
+ function n(o) {
508
+ l.call(this, "DataLengthProbe for " + o), this.propName = o, this.withStreamInfo(o, 0);
509
+ }
510
+ h.inherits(n, l), n.prototype.processChunk = function(o) {
511
+ if (o) {
512
+ var p = this.streamInfo[this.propName] || 0;
513
+ this.streamInfo[this.propName] = p + o.data.length;
514
+ }
515
+ l.prototype.processChunk.call(this, o);
516
+ }, L.exports = n;
517
+ }, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(v, L, w) {
518
+ var h = v("../utils"), l = v("./GenericWorker");
519
+ function n(o) {
520
+ l.call(this, "DataWorker");
521
+ var p = this;
522
+ this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, o.then(function(b) {
523
+ p.dataIsReady = !0, p.data = b, p.max = b && b.length || 0, p.type = h.getTypeOf(b), p.isPaused || p._tickAndRepeat();
524
+ }, function(b) {
525
+ p.error(b);
526
+ });
527
+ }
528
+ h.inherits(n, l), n.prototype.cleanUp = function() {
529
+ l.prototype.cleanUp.call(this), this.data = null;
530
+ }, n.prototype.resume = function() {
531
+ return !!l.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, h.delay(this._tickAndRepeat, [], this)), !0);
532
+ }, n.prototype._tickAndRepeat = function() {
533
+ this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (h.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
534
+ }, n.prototype._tick = function() {
535
+ if (this.isPaused || this.isFinished) return !1;
536
+ var o = null, p = Math.min(this.max, this.index + 16384);
537
+ if (this.index >= this.max) return this.end();
538
+ switch (this.type) {
539
+ case "string":
540
+ o = this.data.substring(this.index, p);
541
+ break;
542
+ case "uint8array":
543
+ o = this.data.subarray(this.index, p);
544
+ break;
545
+ case "array":
546
+ case "nodebuffer":
547
+ o = this.data.slice(this.index, p);
548
+ }
549
+ return this.index = p, this.push({ data: o, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
550
+ }, L.exports = n;
551
+ }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(v, L, w) {
552
+ function h(l) {
553
+ this.name = l || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
554
+ }
555
+ h.prototype = { push: function(l) {
556
+ this.emit("data", l);
557
+ }, end: function() {
558
+ if (this.isFinished) return !1;
559
+ this.flush();
560
+ try {
561
+ this.emit("end"), this.cleanUp(), this.isFinished = !0;
562
+ } catch (l) {
563
+ this.emit("error", l);
564
+ }
565
+ return !0;
566
+ }, error: function(l) {
567
+ return !this.isFinished && (this.isPaused ? this.generatedError = l : (this.isFinished = !0, this.emit("error", l), this.previous && this.previous.error(l), this.cleanUp()), !0);
568
+ }, on: function(l, n) {
569
+ return this._listeners[l].push(n), this;
570
+ }, cleanUp: function() {
571
+ this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
572
+ }, emit: function(l, n) {
573
+ if (this._listeners[l]) for (var o = 0; o < this._listeners[l].length; o++) this._listeners[l][o].call(this, n);
574
+ }, pipe: function(l) {
575
+ return l.registerPrevious(this);
576
+ }, registerPrevious: function(l) {
577
+ if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
578
+ this.streamInfo = l.streamInfo, this.mergeStreamInfo(), this.previous = l;
579
+ var n = this;
580
+ return l.on("data", function(o) {
581
+ n.processChunk(o);
582
+ }), l.on("end", function() {
583
+ n.end();
584
+ }), l.on("error", function(o) {
585
+ n.error(o);
586
+ }), this;
587
+ }, pause: function() {
588
+ return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
589
+ }, resume: function() {
590
+ if (!this.isPaused || this.isFinished) return !1;
591
+ var l = this.isPaused = !1;
592
+ return this.generatedError && (this.error(this.generatedError), l = !0), this.previous && this.previous.resume(), !l;
593
+ }, flush: function() {
594
+ }, processChunk: function(l) {
595
+ this.push(l);
596
+ }, withStreamInfo: function(l, n) {
597
+ return this.extraStreamInfo[l] = n, this.mergeStreamInfo(), this;
598
+ }, mergeStreamInfo: function() {
599
+ for (var l in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, l) && (this.streamInfo[l] = this.extraStreamInfo[l]);
600
+ }, lock: function() {
601
+ if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
602
+ this.isLocked = !0, this.previous && this.previous.lock();
603
+ }, toString: function() {
604
+ var l = "Worker " + this.name;
605
+ return this.previous ? this.previous + " -> " + l : l;
606
+ } }, L.exports = h;
607
+ }, {}], 29: [function(v, L, w) {
608
+ var h = v("../utils"), l = v("./ConvertWorker"), n = v("./GenericWorker"), o = v("../base64"), p = v("../support"), b = v("../external"), g = null;
609
+ if (p.nodestream) try {
610
+ g = v("../nodejs/NodejsStreamOutputAdapter");
611
+ } catch {
612
+ }
613
+ function _(f, r) {
614
+ return new b.Promise(function(u, a) {
615
+ var d = [], y = f._internalType, S = f._outputType, x = f._mimeType;
616
+ f.on("data", function(P, O) {
617
+ d.push(P), r && r(O);
618
+ }).on("error", function(P) {
619
+ d = [], a(P);
620
+ }).on("end", function() {
621
+ try {
622
+ var P = function(O, N, I) {
623
+ switch (O) {
624
+ case "blob":
625
+ return h.newBlob(h.transformTo("arraybuffer", N), I);
626
+ case "base64":
627
+ return o.encode(N);
628
+ default:
629
+ return h.transformTo(O, N);
630
+ }
631
+ }(S, function(O, N) {
632
+ var I, H = 0, et = null, m = 0;
633
+ for (I = 0; I < N.length; I++) m += N[I].length;
634
+ switch (O) {
635
+ case "string":
636
+ return N.join("");
637
+ case "array":
638
+ return Array.prototype.concat.apply([], N);
639
+ case "uint8array":
640
+ for (et = new Uint8Array(m), I = 0; I < N.length; I++) et.set(N[I], H), H += N[I].length;
641
+ return et;
642
+ case "nodebuffer":
643
+ return Buffer.concat(N);
644
+ default:
645
+ throw new Error("concat : unsupported type '" + O + "'");
646
+ }
647
+ }(y, d), x);
648
+ u(P);
649
+ } catch (O) {
650
+ a(O);
651
+ }
652
+ d = [];
653
+ }).resume();
654
+ });
655
+ }
656
+ function i(f, r, u) {
657
+ var a = r;
658
+ switch (r) {
659
+ case "blob":
660
+ case "arraybuffer":
661
+ a = "uint8array";
662
+ break;
663
+ case "base64":
664
+ a = "string";
665
+ }
666
+ try {
667
+ this._internalType = a, this._outputType = r, this._mimeType = u, h.checkSupport(a), this._worker = f.pipe(new l(a)), f.lock();
668
+ } catch (d) {
669
+ this._worker = new n("error"), this._worker.error(d);
670
+ }
671
+ }
672
+ i.prototype = { accumulate: function(f) {
673
+ return _(this, f);
674
+ }, on: function(f, r) {
675
+ var u = this;
676
+ return f === "data" ? this._worker.on(f, function(a) {
677
+ r.call(u, a.data, a.meta);
678
+ }) : this._worker.on(f, function() {
679
+ h.delay(r, arguments, u);
680
+ }), this;
681
+ }, resume: function() {
682
+ return h.delay(this._worker.resume, [], this._worker), this;
683
+ }, pause: function() {
684
+ return this._worker.pause(), this;
685
+ }, toNodejsStream: function(f) {
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" }, f);
688
+ } }, L.exports = i;
689
+ }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(v, L, w) {
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;
691
+ else {
692
+ var h = new ArrayBuffer(0);
693
+ try {
694
+ w.blob = new Blob([h], { type: "application/zip" }).size === 0;
695
+ } catch {
696
+ try {
697
+ var l = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
698
+ l.append(h), w.blob = l.getBlob("application/zip").size === 0;
699
+ } catch {
700
+ w.blob = !1;
701
+ }
702
+ }
703
+ }
704
+ try {
705
+ w.nodestream = !!v("readable-stream").Readable;
706
+ } catch {
707
+ w.nodestream = !1;
708
+ }
709
+ }, { "readable-stream": 16 }], 31: [function(v, L, w) {
710
+ for (var h = v("./utils"), l = v("./support"), n = v("./nodejsUtils"), o = v("./stream/GenericWorker"), p = new Array(256), b = 0; b < 256; b++) p[b] = 252 <= b ? 6 : 248 <= b ? 5 : 240 <= b ? 4 : 224 <= b ? 3 : 192 <= b ? 2 : 1;
711
+ p[254] = p[254] = 1;
712
+ function g() {
713
+ o.call(this, "utf-8 decode"), this.leftOver = null;
714
+ }
715
+ function _() {
716
+ o.call(this, "utf-8 encode");
717
+ }
718
+ w.utf8encode = function(i) {
719
+ return l.nodebuffer ? n.newBufferFrom(i, "utf-8") : function(f) {
720
+ var r, u, a, d, y, S = f.length, x = 0;
721
+ for (d = 0; d < S; d++) (64512 & (u = f.charCodeAt(d))) == 55296 && d + 1 < S && (64512 & (a = f.charCodeAt(d + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), d++), x += u < 128 ? 1 : u < 2048 ? 2 : u < 65536 ? 3 : 4;
722
+ for (r = l.uint8array ? new Uint8Array(x) : new Array(x), d = y = 0; y < x; d++) (64512 & (u = f.charCodeAt(d))) == 55296 && d + 1 < S && (64512 & (a = f.charCodeAt(d + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), d++), 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
+ return r;
724
+ }(i);
725
+ }, w.utf8decode = function(i) {
726
+ return l.nodebuffer ? h.transformTo("nodebuffer", i).toString("utf-8") : function(f) {
727
+ var r, u, a, d, y = f.length, S = new Array(2 * y);
728
+ for (r = u = 0; r < y; ) if ((a = f[r++]) < 128) S[u++] = a;
729
+ else if (4 < (d = p[a])) S[u++] = 65533, r += d - 1;
730
+ else {
731
+ for (a &= d === 2 ? 31 : d === 3 ? 15 : 7; 1 < d && r < y; ) a = a << 6 | 63 & f[r++], d--;
732
+ 1 < d ? S[u++] = 65533 : a < 65536 ? S[u++] = a : (a -= 65536, S[u++] = 55296 | a >> 10 & 1023, S[u++] = 56320 | 1023 & a);
733
+ }
734
+ return S.length !== u && (S.subarray ? S = S.subarray(0, u) : S.length = u), h.applyFromCharCode(S);
735
+ }(i = h.transformTo(l.uint8array ? "uint8array" : "array", i));
736
+ }, h.inherits(g, o), g.prototype.processChunk = function(i) {
737
+ var f = h.transformTo(l.uint8array ? "uint8array" : "array", i.data);
738
+ if (this.leftOver && this.leftOver.length) {
739
+ if (l.uint8array) {
740
+ var r = f;
741
+ (f = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), f.set(r, this.leftOver.length);
742
+ } else f = this.leftOver.concat(f);
743
+ this.leftOver = null;
744
+ }
745
+ var u = function(d, y) {
746
+ var S;
747
+ for ((y = y || d.length) > d.length && (y = d.length), S = y - 1; 0 <= S && (192 & d[S]) == 128; ) S--;
748
+ return S < 0 || S === 0 ? y : S + p[d[S]] > y ? S : y;
749
+ }(f), a = f;
750
+ u !== f.length && (l.uint8array ? (a = f.subarray(0, u), this.leftOver = f.subarray(u, f.length)) : (a = f.slice(0, u), this.leftOver = f.slice(u, f.length))), this.push({ data: w.utf8decode(a), meta: i.meta });
751
+ }, g.prototype.flush = function() {
752
+ this.leftOver && this.leftOver.length && (this.push({ data: w.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
753
+ }, w.Utf8DecodeWorker = g, h.inherits(_, o), _.prototype.processChunk = function(i) {
754
+ this.push({ data: w.utf8encode(i.data), meta: i.meta });
755
+ }, w.Utf8EncodeWorker = _;
756
+ }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(v, L, w) {
757
+ var h = v("./support"), l = v("./base64"), n = v("./nodejsUtils"), o = v("./external");
758
+ function p(r) {
759
+ return r;
760
+ }
761
+ function b(r, u) {
762
+ for (var a = 0; a < r.length; ++a) u[a] = 255 & r.charCodeAt(a);
763
+ return u;
764
+ }
765
+ v("setimmediate"), w.newBlob = function(r, u) {
766
+ w.checkSupport("blob");
767
+ try {
768
+ return new Blob([r], { type: u });
769
+ } catch {
770
+ try {
771
+ var a = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
772
+ return a.append(r), a.getBlob(u);
773
+ } catch {
774
+ throw new Error("Bug : can't construct the Blob.");
775
+ }
776
+ }
777
+ };
778
+ var g = { stringifyByChunk: function(r, u, a) {
779
+ var d = [], y = 0, S = r.length;
780
+ if (S <= a) return String.fromCharCode.apply(null, r);
781
+ for (; y < S; ) u === "array" || u === "nodebuffer" ? d.push(String.fromCharCode.apply(null, r.slice(y, Math.min(y + a, S)))) : d.push(String.fromCharCode.apply(null, r.subarray(y, Math.min(y + a, S)))), y += a;
782
+ return d.join("");
783
+ }, stringifyByChar: function(r) {
784
+ for (var u = "", a = 0; a < r.length; a++) u += String.fromCharCode(r[a]);
785
+ return u;
786
+ }, applyCanBeUsed: { uint8array: function() {
787
+ try {
788
+ return h.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
789
+ } catch {
790
+ return !1;
791
+ }
792
+ }(), nodebuffer: function() {
793
+ try {
794
+ return h.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
795
+ } catch {
796
+ return !1;
797
+ }
798
+ }() } };
799
+ function _(r) {
800
+ var u = 65536, a = w.getTypeOf(r), d = !0;
801
+ if (a === "uint8array" ? d = g.applyCanBeUsed.uint8array : a === "nodebuffer" && (d = g.applyCanBeUsed.nodebuffer), d) for (; 1 < u; ) try {
802
+ return g.stringifyByChunk(r, a, u);
803
+ } catch {
804
+ u = Math.floor(u / 2);
805
+ }
806
+ return g.stringifyByChar(r);
807
+ }
808
+ function i(r, u) {
809
+ for (var a = 0; a < r.length; a++) u[a] = r[a];
810
+ return u;
811
+ }
812
+ w.applyFromCharCode = _;
813
+ var f = {};
814
+ f.string = { string: p, array: function(r) {
815
+ return b(r, new Array(r.length));
816
+ }, arraybuffer: function(r) {
817
+ return f.string.uint8array(r).buffer;
818
+ }, uint8array: function(r) {
819
+ return b(r, new Uint8Array(r.length));
820
+ }, nodebuffer: function(r) {
821
+ return b(r, n.allocBuffer(r.length));
822
+ } }, f.array = { string: _, array: p, arraybuffer: function(r) {
823
+ return new Uint8Array(r).buffer;
824
+ }, uint8array: function(r) {
825
+ return new Uint8Array(r);
826
+ }, nodebuffer: function(r) {
827
+ return n.newBufferFrom(r);
828
+ } }, f.arraybuffer = { string: function(r) {
829
+ return _(new Uint8Array(r));
830
+ }, array: function(r) {
831
+ return i(new Uint8Array(r), new Array(r.byteLength));
832
+ }, arraybuffer: p, uint8array: function(r) {
833
+ return new Uint8Array(r);
834
+ }, nodebuffer: function(r) {
835
+ return n.newBufferFrom(new Uint8Array(r));
836
+ } }, f.uint8array = { string: _, array: function(r) {
837
+ return i(r, new Array(r.length));
838
+ }, arraybuffer: function(r) {
839
+ return r.buffer;
840
+ }, uint8array: p, nodebuffer: function(r) {
841
+ return n.newBufferFrom(r);
842
+ } }, f.nodebuffer = { string: _, array: function(r) {
843
+ return i(r, new Array(r.length));
844
+ }, arraybuffer: function(r) {
845
+ return f.nodebuffer.uint8array(r).buffer;
846
+ }, uint8array: function(r) {
847
+ return i(r, new Uint8Array(r.length));
848
+ }, nodebuffer: p }, w.transformTo = function(r, u) {
849
+ if (u = u || "", !r) return u;
850
+ w.checkSupport(r);
851
+ var a = w.getTypeOf(u);
852
+ return f[a][r](u);
853
+ }, w.resolve = function(r) {
854
+ for (var u = r.split("/"), a = [], d = 0; d < u.length; d++) {
855
+ var y = u[d];
856
+ y === "." || y === "" && d !== 0 && d !== u.length - 1 || (y === ".." ? a.pop() : a.push(y));
857
+ }
858
+ return a.join("/");
859
+ }, w.getTypeOf = function(r) {
860
+ return typeof r == "string" ? "string" : Object.prototype.toString.call(r) === "[object Array]" ? "array" : h.nodebuffer && n.isBuffer(r) ? "nodebuffer" : h.uint8array && r instanceof Uint8Array ? "uint8array" : h.arraybuffer && r instanceof ArrayBuffer ? "arraybuffer" : void 0;
861
+ }, w.checkSupport = function(r) {
862
+ if (!h[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
863
+ }, w.MAX_VALUE_16BITS = 65535, w.MAX_VALUE_32BITS = -1, w.pretty = function(r) {
864
+ var u, a, d = "";
865
+ for (a = 0; a < (r || "").length; a++) d += "\\x" + ((u = r.charCodeAt(a)) < 16 ? "0" : "") + u.toString(16).toUpperCase();
866
+ return d;
867
+ }, w.delay = function(r, u, a) {
868
+ setImmediate(function() {
869
+ r.apply(a || null, u || []);
870
+ });
871
+ }, w.inherits = function(r, u) {
872
+ function a() {
873
+ }
874
+ a.prototype = u.prototype, r.prototype = new a();
875
+ }, w.extend = function() {
876
+ var r, u, a = {};
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
+ return a;
879
+ }, w.prepareContent = function(r, u, a, d, y) {
880
+ return o.Promise.resolve(u).then(function(S) {
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, P) {
882
+ var O = new FileReader();
883
+ O.onload = function(N) {
884
+ x(N.target.result);
885
+ }, O.onerror = function(N) {
886
+ P(N.target.error);
887
+ }, O.readAsArrayBuffer(S);
888
+ }) : S;
889
+ }).then(function(S) {
890
+ var x = w.getTypeOf(S);
891
+ return x ? (x === "arraybuffer" ? S = w.transformTo("uint8array", S) : x === "string" && (y ? S = l.decode(S) : a && d !== !0 && (S = function(P) {
892
+ return b(P, h.uint8array ? new Uint8Array(P.length) : new Array(P.length));
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
+ });
895
+ };
896
+ }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(v, L, w) {
897
+ var h = v("./reader/readerFor"), l = v("./utils"), n = v("./signature"), o = v("./zipEntry"), p = v("./support");
898
+ function b(g) {
899
+ this.files = [], this.loadOptions = g;
900
+ }
901
+ b.prototype = { checkSignature: function(g) {
902
+ if (!this.reader.readAndCheckSignature(g)) {
903
+ this.reader.index -= 4;
904
+ var _ = this.reader.readString(4);
905
+ throw new Error("Corrupted zip or bug: unexpected signature (" + l.pretty(_) + ", expected " + l.pretty(g) + ")");
906
+ }
907
+ }, isSignature: function(g, _) {
908
+ var i = this.reader.index;
909
+ this.reader.setIndex(g);
910
+ var f = this.reader.readString(4) === _;
911
+ return this.reader.setIndex(i), f;
912
+ }, readBlockEndOfCentral: function() {
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
+ var g = this.reader.readData(this.zipCommentLength), _ = p.uint8array ? "uint8array" : "array", i = l.transformTo(_, g);
915
+ this.zipComment = this.loadOptions.decodeFileName(i);
916
+ }, readBlockZip64EndOfCentral: function() {
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, f = this.zip64EndOfCentralSize - 44; 0 < f; ) g = this.reader.readInt(2), _ = this.reader.readInt(4), i = this.reader.readData(_), this.zip64ExtensibleData[g] = { id: g, length: _, value: i };
919
+ }, readBlockZip64EndOfCentralLocator: function() {
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
+ }, readLocalFiles: function() {
922
+ var g, _;
923
+ for (g = 0; g < this.files.length; g++) _ = this.files[g], this.reader.setIndex(_.localHeaderOffset), this.checkSignature(n.LOCAL_FILE_HEADER), _.readLocalPart(this.reader), _.handleUTF8(), _.processAttributes();
924
+ }, readCentralDir: function() {
925
+ var g;
926
+ for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); ) (g = new o({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(g);
927
+ if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
928
+ }, readEndOfCentral: function() {
929
+ var g = this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);
930
+ if (g < 0) throw this.isSignature(0, n.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
931
+ this.reader.setIndex(g);
932
+ var _ = g;
933
+ if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === l.MAX_VALUE_16BITS || this.diskWithCentralDirStart === l.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === l.MAX_VALUE_16BITS || this.centralDirRecords === l.MAX_VALUE_16BITS || this.centralDirSize === l.MAX_VALUE_32BITS || this.centralDirOffset === l.MAX_VALUE_32BITS) {
934
+ if (this.zip64 = !0, (g = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
935
+ if (this.reader.setIndex(g), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, n.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
936
+ this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
937
+ }
938
+ var i = this.centralDirOffset + this.centralDirSize;
939
+ this.zip64 && (i += 20, i += 12 + this.zip64EndOfCentralSize);
940
+ var f = _ - i;
941
+ if (0 < f) this.isSignature(_, n.CENTRAL_FILE_HEADER) || (this.reader.zero = f);
942
+ else if (f < 0) throw new Error("Corrupted zip: missing " + Math.abs(f) + " bytes.");
943
+ }, prepareReader: function(g) {
944
+ this.reader = h(g);
945
+ }, load: function(g) {
946
+ this.prepareReader(g), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
947
+ } }, L.exports = b;
948
+ }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(v, L, w) {
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, f) {
951
+ this.options = i, this.loadOptions = f;
952
+ }
953
+ _.prototype = { isEncrypted: function() {
954
+ return (1 & this.bitFlag) == 1;
955
+ }, useUTF8: function() {
956
+ return (2048 & this.bitFlag) == 2048;
957
+ }, readLocalPart: function(i) {
958
+ var f, r;
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 ((f = function(u) {
961
+ for (var a in b) if (Object.prototype.hasOwnProperty.call(b, a) && b[a].magic === u) return b[a];
962
+ return null;
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, f, i.readData(this.compressedSize));
965
+ }, readCentralPart: function(i) {
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 f = i.readInt(2);
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(f), this.readExtraFields(i), this.parseZIP64ExtraField(i), this.fileComment = i.readData(this.fileCommentLength);
970
+ }, processAttributes: function() {
971
+ this.unixPermissions = null, this.dosPermissions = null;
972
+ var i = this.versionMadeBy >> 8;
973
+ this.dir = !!(16 & this.externalFileAttributes), i == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), i == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
974
+ }, parseZIP64ExtraField: function() {
975
+ if (this.extraFields[1]) {
976
+ var i = h(this.extraFields[1].value);
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
+ }
979
+ }, readExtraFields: function(i) {
980
+ var f, r, u, a = i.index + this.extraFieldsLength;
981
+ for (this.extraFields || (this.extraFields = {}); i.index + 4 < a; ) f = i.readInt(2), r = i.readInt(2), u = i.readData(r), this.extraFields[f] = { id: f, length: r, value: u };
982
+ i.setIndex(a);
983
+ }, handleUTF8: function() {
984
+ var i = g.uint8array ? "uint8array" : "array";
985
+ if (this.useUTF8()) this.fileNameStr = p.utf8decode(this.fileName), this.fileCommentStr = p.utf8decode(this.fileComment);
986
+ else {
987
+ var f = this.findExtraFieldUnicodePath();
988
+ if (f !== null) this.fileNameStr = f;
989
+ else {
990
+ var r = l.transformTo(i, this.fileName);
991
+ this.fileNameStr = this.loadOptions.decodeFileName(r);
992
+ }
993
+ var u = this.findExtraFieldUnicodeComment();
994
+ if (u !== null) this.fileCommentStr = u;
995
+ else {
996
+ var a = l.transformTo(i, this.fileComment);
997
+ this.fileCommentStr = this.loadOptions.decodeFileName(a);
998
+ }
999
+ }
1000
+ }, findExtraFieldUnicodePath: function() {
1001
+ var i = this.extraFields[28789];
1002
+ if (i) {
1003
+ var f = h(i.value);
1004
+ return f.readInt(1) !== 1 || o(this.fileName) !== f.readInt(4) ? null : p.utf8decode(f.readData(i.length - 5));
1005
+ }
1006
+ return null;
1007
+ }, findExtraFieldUnicodeComment: function() {
1008
+ var i = this.extraFields[25461];
1009
+ if (i) {
1010
+ var f = h(i.value);
1011
+ return f.readInt(1) !== 1 || o(this.fileComment) !== f.readInt(4) ? null : p.utf8decode(f.readData(i.length - 5));
1012
+ }
1013
+ return null;
1014
+ } }, L.exports = _;
1015
+ }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(v, L, w) {
1016
+ function h(f, r, u) {
1017
+ this.name = f, 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
+ }
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(f) {
1021
+ var r = null, u = "string";
1022
+ try {
1023
+ if (!f) throw new Error("No output type specified.");
1024
+ var a = (u = f.toLowerCase()) === "string" || u === "text";
1025
+ u !== "binarystring" && u !== "text" || (u = "string"), r = this._decompressWorker();
1026
+ var d = !this._dataBinary;
1027
+ d && !a && (r = r.pipe(new o.Utf8EncodeWorker())), !d && a && (r = r.pipe(new o.Utf8DecodeWorker()));
1028
+ } catch (y) {
1029
+ (r = new b("error")).error(y);
1030
+ }
1031
+ return new l(r, u, "");
1032
+ }, async: function(f, r) {
1033
+ return this.internalStream(f).accumulate(r);
1034
+ }, nodeStream: function(f, r) {
1035
+ return this.internalStream(f || "nodebuffer").toNodejsStream(r);
1036
+ }, _compressWorker: function(f, r) {
1037
+ if (this._data instanceof p && this._data.compression.magic === f.magic) return this._data.getCompressedWorker();
1038
+ var u = this._decompressWorker();
1039
+ return this._dataBinary || (u = u.pipe(new o.Utf8EncodeWorker())), p.createWorkerFrom(u, f, r);
1040
+ }, _decompressWorker: function() {
1041
+ return this._data instanceof p ? this._data.getContentWorker() : this._data instanceof b ? this._data : new n(this._data);
1042
+ } };
1043
+ for (var g = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], _ = function() {
1044
+ throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1045
+ }, i = 0; i < g.length; i++) h.prototype[g[i]] = _;
1046
+ L.exports = h;
1047
+ }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(v, L, w) {
1048
+ (function(h) {
1049
+ var l, n, o = h.MutationObserver || h.WebKitMutationObserver;
1050
+ if (o) {
1051
+ var p = 0, b = new o(f), g = h.document.createTextNode("");
1052
+ b.observe(g, { characterData: !0 }), l = function() {
1053
+ g.data = p = ++p % 2;
1054
+ };
1055
+ } else if (h.setImmediate || h.MessageChannel === void 0) l = "document" in h && "onreadystatechange" in h.document.createElement("script") ? function() {
1056
+ var r = h.document.createElement("script");
1057
+ r.onreadystatechange = function() {
1058
+ f(), r.onreadystatechange = null, r.parentNode.removeChild(r), r = null;
1059
+ }, h.document.documentElement.appendChild(r);
1060
+ } : function() {
1061
+ setTimeout(f, 0);
1062
+ };
1063
+ else {
1064
+ var _ = new h.MessageChannel();
1065
+ _.port1.onmessage = f, l = function() {
1066
+ _.port2.postMessage(0);
1067
+ };
1068
+ }
1069
+ var i = [];
1070
+ function f() {
1071
+ var r, u;
1072
+ n = !0;
1073
+ for (var a = i.length; a; ) {
1074
+ for (u = i, i = [], r = -1; ++r < a; ) u[r]();
1075
+ a = i.length;
1076
+ }
1077
+ n = !1;
1078
+ }
1079
+ L.exports = function(r) {
1080
+ i.push(r) !== 1 || n || l();
1081
+ };
1082
+ }).call(this, typeof Xt < "u" ? Xt : typeof self < "u" ? self : typeof window < "u" ? window : {});
1083
+ }, {}], 37: [function(v, L, w) {
1084
+ var h = v("immediate");
1085
+ function l() {
1086
+ }
1087
+ var n = {}, o = ["REJECTED"], p = ["FULFILLED"], b = ["PENDING"];
1088
+ function g(a) {
1089
+ if (typeof a != "function") throw new TypeError("resolver must be a function");
1090
+ this.state = b, this.queue = [], this.outcome = void 0, a !== l && r(this, a);
1091
+ }
1092
+ function _(a, d, y) {
1093
+ this.promise = a, typeof d == "function" && (this.onFulfilled = d, this.callFulfilled = this.otherCallFulfilled), typeof y == "function" && (this.onRejected = y, this.callRejected = this.otherCallRejected);
1094
+ }
1095
+ function i(a, d, y) {
1096
+ h(function() {
1097
+ var S;
1098
+ try {
1099
+ S = d(y);
1100
+ } catch (x) {
1101
+ return n.reject(a, x);
1102
+ }
1103
+ S === a ? n.reject(a, new TypeError("Cannot resolve promise with itself")) : n.resolve(a, S);
1104
+ });
1105
+ }
1106
+ function f(a) {
1107
+ var d = a && a.then;
1108
+ if (a && (typeof a == "object" || typeof a == "function") && typeof d == "function") return function() {
1109
+ d.apply(a, arguments);
1110
+ };
1111
+ }
1112
+ function r(a, d) {
1113
+ var y = !1;
1114
+ function S(O) {
1115
+ y || (y = !0, n.reject(a, O));
1116
+ }
1117
+ function x(O) {
1118
+ y || (y = !0, n.resolve(a, O));
1119
+ }
1120
+ var P = u(function() {
1121
+ d(x, S);
1122
+ });
1123
+ P.status === "error" && S(P.value);
1124
+ }
1125
+ function u(a, d) {
1126
+ var y = {};
1127
+ try {
1128
+ y.value = a(d), y.status = "success";
1129
+ } catch (S) {
1130
+ y.status = "error", y.value = S;
1131
+ }
1132
+ return y;
1133
+ }
1134
+ (L.exports = g).prototype.finally = function(a) {
1135
+ if (typeof a != "function") return this;
1136
+ var d = this.constructor;
1137
+ return this.then(function(y) {
1138
+ return d.resolve(a()).then(function() {
1139
+ return y;
1140
+ });
1141
+ }, function(y) {
1142
+ return d.resolve(a()).then(function() {
1143
+ throw y;
1144
+ });
1145
+ });
1146
+ }, g.prototype.catch = function(a) {
1147
+ return this.then(null, a);
1148
+ }, g.prototype.then = function(a, d) {
1149
+ if (typeof a != "function" && this.state === p || typeof d != "function" && this.state === o) return this;
1150
+ var y = new this.constructor(l);
1151
+ return this.state !== b ? i(y, this.state === p ? a : d, this.outcome) : this.queue.push(new _(y, a, d)), y;
1152
+ }, _.prototype.callFulfilled = function(a) {
1153
+ n.resolve(this.promise, a);
1154
+ }, _.prototype.otherCallFulfilled = function(a) {
1155
+ i(this.promise, this.onFulfilled, a);
1156
+ }, _.prototype.callRejected = function(a) {
1157
+ n.reject(this.promise, a);
1158
+ }, _.prototype.otherCallRejected = function(a) {
1159
+ i(this.promise, this.onRejected, a);
1160
+ }, n.resolve = function(a, d) {
1161
+ var y = u(f, d);
1162
+ if (y.status === "error") return n.reject(a, y.value);
1163
+ var S = y.value;
1164
+ if (S) r(a, S);
1165
+ else {
1166
+ a.state = p, a.outcome = d;
1167
+ for (var x = -1, P = a.queue.length; ++x < P; ) a.queue[x].callFulfilled(d);
1168
+ }
1169
+ return a;
1170
+ }, n.reject = function(a, d) {
1171
+ a.state = o, a.outcome = d;
1172
+ for (var y = -1, S = a.queue.length; ++y < S; ) a.queue[y].callRejected(d);
1173
+ return a;
1174
+ }, g.resolve = function(a) {
1175
+ return a instanceof this ? a : n.resolve(new this(l), a);
1176
+ }, g.reject = function(a) {
1177
+ var d = new this(l);
1178
+ return n.reject(d, a);
1179
+ }, g.all = function(a) {
1180
+ var d = this;
1181
+ if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1182
+ var y = a.length, S = !1;
1183
+ if (!y) return this.resolve([]);
1184
+ for (var x = new Array(y), P = 0, O = -1, N = new this(l); ++O < y; ) I(a[O], O);
1185
+ return N;
1186
+ function I(H, et) {
1187
+ d.resolve(H).then(function(m) {
1188
+ x[et] = m, ++P !== y || S || (S = !0, n.resolve(N, x));
1189
+ }, function(m) {
1190
+ S || (S = !0, n.reject(N, m));
1191
+ });
1192
+ }
1193
+ }, g.race = function(a) {
1194
+ var d = this;
1195
+ if (Object.prototype.toString.call(a) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1196
+ var y = a.length, S = !1;
1197
+ if (!y) return this.resolve([]);
1198
+ for (var x = -1, P = new this(l); ++x < y; ) O = a[x], d.resolve(O).then(function(N) {
1199
+ S || (S = !0, n.resolve(P, N));
1200
+ }, function(N) {
1201
+ S || (S = !0, n.reject(P, N));
1202
+ });
1203
+ var O;
1204
+ return P;
1205
+ };
1206
+ }, { immediate: 36 }], 38: [function(v, L, w) {
1207
+ var h = {};
1208
+ (0, v("./lib/utils/common").assign)(h, v("./lib/deflate"), v("./lib/inflate"), v("./lib/zlib/constants")), L.exports = h;
1209
+ }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(v, L, 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, f = 8;
1211
+ function r(a) {
1212
+ if (!(this instanceof r)) return new r(a);
1213
+ this.options = l.assign({ level: _, method: f, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: i, to: "" }, a || {});
1214
+ var d = this.options;
1215
+ d.raw && 0 < d.windowBits ? d.windowBits = -d.windowBits : d.gzip && 0 < d.windowBits && d.windowBits < 16 && (d.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, d.level, d.method, d.windowBits, d.memLevel, d.strategy);
1217
+ if (y !== g) throw new Error(o[y]);
1218
+ if (d.header && h.deflateSetHeader(this.strm, d.header), d.dictionary) {
1219
+ var S;
1220
+ if (S = typeof d.dictionary == "string" ? n.string2buf(d.dictionary) : b.call(d.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(d.dictionary) : d.dictionary, (y = h.deflateSetDictionary(this.strm, S)) !== g) throw new Error(o[y]);
1221
+ this._dict_set = !0;
1222
+ }
1223
+ }
1224
+ function u(a, d) {
1225
+ var y = new r(d);
1226
+ if (y.push(a, !0), y.err) throw y.msg || o[y.err];
1227
+ return y.result;
1228
+ }
1229
+ r.prototype.push = function(a, d) {
1230
+ var y, S, x = this.strm, P = this.options.chunkSize;
1231
+ if (this.ended) return !1;
1232
+ S = d === ~~d ? d : d === !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
+ do {
1234
+ if (x.avail_out === 0 && (x.output = new l.Buf8(P), x.next_out = 0, x.avail_out = P), (y = h.deflate(x, S)) !== 1 && y !== g) return this.onEnd(y), !(this.ended = !0);
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)));
1236
+ } while ((0 < x.avail_in || x.avail_out === 0) && y !== 1);
1237
+ return S === 4 ? (y = h.deflateEnd(this.strm), this.onEnd(y), this.ended = !0, y === g) : S !== 2 || (this.onEnd(g), !(x.avail_out = 0));
1238
+ }, r.prototype.onData = function(a) {
1239
+ this.chunks.push(a);
1240
+ }, r.prototype.onEnd = function(a) {
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, d) {
1243
+ return (d = d || {}).raw = !0, u(a, d);
1244
+ }, w.gzip = function(a, d) {
1245
+ return (d = d || {}).gzip = !0, u(a, d);
1246
+ };
1247
+ }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(v, L, w) {
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;
1249
+ function i(r) {
1250
+ if (!(this instanceof i)) return new i(r);
1251
+ this.options = l.assign({ chunkSize: 16384, windowBits: 0, to: "" }, r || {});
1252
+ var u = this.options;
1253
+ u.raw && 0 <= u.windowBits && u.windowBits < 16 && (u.windowBits = -u.windowBits, u.windowBits === 0 && (u.windowBits = -15)), !(0 <= u.windowBits && u.windowBits < 16) || r && r.windowBits || (u.windowBits += 32), 15 < u.windowBits && u.windowBits < 48 && !(15 & u.windowBits) && (u.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new b(), this.strm.avail_out = 0;
1254
+ var a = h.inflateInit2(this.strm, u.windowBits);
1255
+ if (a !== o.Z_OK) throw new Error(p[a]);
1256
+ this.header = new g(), h.inflateGetHeader(this.strm, this.header);
1257
+ }
1258
+ function f(r, u) {
1259
+ var a = new i(u);
1260
+ if (a.push(r, !0), a.err) throw a.msg || p[a.err];
1261
+ return a.result;
1262
+ }
1263
+ i.prototype.push = function(r, u) {
1264
+ var a, d, y, S, x, P, O = this.strm, N = this.options.chunkSize, I = this.options.dictionary, H = !1;
1265
+ if (this.ended) return !1;
1266
+ d = 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
+ do {
1268
+ if (O.avail_out === 0 && (O.output = new l.Buf8(N), O.next_out = 0, O.avail_out = N), (a = h.inflate(O, o.Z_NO_FLUSH)) === o.Z_NEED_DICT && I && (P = typeof I == "string" ? n.string2buf(I) : _.call(I) === "[object ArrayBuffer]" ? new Uint8Array(I) : I, a = h.inflateSetDictionary(this.strm, P)), 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 || d !== o.Z_FINISH && d !== 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 = N - 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
+ } while ((0 < O.avail_in || O.avail_out === 0) && a !== o.Z_STREAM_END);
1271
+ return a === o.Z_STREAM_END && (d = o.Z_FINISH), d === o.Z_FINISH ? (a = h.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === o.Z_OK) : d !== o.Z_SYNC_FLUSH || (this.onEnd(o.Z_OK), !(O.avail_out = 0));
1272
+ }, i.prototype.onData = function(r) {
1273
+ this.chunks.push(r);
1274
+ }, i.prototype.onEnd = function(r) {
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 = f, w.inflateRaw = function(r, u) {
1277
+ return (u = u || {}).raw = !0, f(r, u);
1278
+ }, w.ungzip = f;
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, L, w) {
1280
+ var h = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
1281
+ w.assign = function(o) {
1282
+ for (var p = Array.prototype.slice.call(arguments, 1); p.length; ) {
1283
+ var b = p.shift();
1284
+ if (b) {
1285
+ if (typeof b != "object") throw new TypeError(b + "must be non-object");
1286
+ for (var g in b) b.hasOwnProperty(g) && (o[g] = b[g]);
1287
+ }
1288
+ }
1289
+ return o;
1290
+ }, w.shrinkBuf = function(o, p) {
1291
+ return o.length === p ? o : o.subarray ? o.subarray(0, p) : (o.length = p, o);
1292
+ };
1293
+ var l = { arraySet: function(o, p, b, g, _) {
1294
+ if (p.subarray && o.subarray) o.set(p.subarray(b, b + g), _);
1295
+ else for (var i = 0; i < g; i++) o[_ + i] = p[b + i];
1296
+ }, flattenChunks: function(o) {
1297
+ var p, b, g, _, i, f;
1298
+ for (p = g = 0, b = o.length; p < b; p++) g += o[p].length;
1299
+ for (f = new Uint8Array(g), p = _ = 0, b = o.length; p < b; p++) i = o[p], f.set(i, _), _ += i.length;
1300
+ return f;
1301
+ } }, n = { arraySet: function(o, p, b, g, _) {
1302
+ for (var i = 0; i < g; i++) o[_ + i] = p[b + i];
1303
+ }, flattenChunks: function(o) {
1304
+ return [].concat.apply([], o);
1305
+ } };
1306
+ w.setTyped = function(o) {
1307
+ o ? (w.Buf8 = Uint8Array, w.Buf16 = Uint16Array, w.Buf32 = Int32Array, w.assign(w, l)) : (w.Buf8 = Array, w.Buf16 = Array, w.Buf32 = Array, w.assign(w, n));
1308
+ }, w.setTyped(h);
1309
+ }, {}], 42: [function(v, L, w) {
1310
+ var h = v("./common"), l = !0, n = !0;
1311
+ try {
1312
+ String.fromCharCode.apply(null, [0]);
1313
+ } catch {
1314
+ l = !1;
1315
+ }
1316
+ try {
1317
+ String.fromCharCode.apply(null, new Uint8Array(1));
1318
+ } catch {
1319
+ n = !1;
1320
+ }
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
+ function b(g, _) {
1323
+ if (_ < 65537 && (g.subarray && n || !g.subarray && l)) return String.fromCharCode.apply(null, h.shrinkBuf(g, _));
1324
+ for (var i = "", f = 0; f < _; f++) i += String.fromCharCode(g[f]);
1325
+ return i;
1326
+ }
1327
+ o[254] = o[254] = 1, w.string2buf = function(g) {
1328
+ var _, i, f, r, u, a = g.length, d = 0;
1329
+ for (r = 0; r < a; r++) (64512 & (i = g.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (f = g.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (f - 56320), r++), d += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4;
1330
+ for (_ = new h.Buf8(d), r = u = 0; u < d; r++) (64512 & (i = g.charCodeAt(r))) == 55296 && r + 1 < a && (64512 & (f = g.charCodeAt(r + 1))) == 56320 && (i = 65536 + (i - 55296 << 10) + (f - 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
+ return _;
1332
+ }, w.buf2binstring = function(g) {
1333
+ return b(g, g.length);
1334
+ }, w.binstring2buf = function(g) {
1335
+ for (var _ = new h.Buf8(g.length), i = 0, f = _.length; i < f; i++) _[i] = g.charCodeAt(i);
1336
+ return _;
1337
+ }, w.buf2string = function(g, _) {
1338
+ var i, f, r, u, a = _ || g.length, d = new Array(2 * a);
1339
+ for (i = f = 0; i < a; ) if ((r = g[i++]) < 128) d[f++] = r;
1340
+ else if (4 < (u = o[r])) d[f++] = 65533, i += u - 1;
1341
+ else {
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[f++] = 65533 : r < 65536 ? d[f++] = r : (r -= 65536, d[f++] = 55296 | r >> 10 & 1023, d[f++] = 56320 | 1023 & r);
1344
+ }
1345
+ return b(d, f);
1346
+ }, w.utf8border = function(g, _) {
1347
+ var i;
1348
+ for ((_ = _ || g.length) > g.length && (_ = g.length), i = _ - 1; 0 <= i && (192 & g[i]) == 128; ) i--;
1349
+ return i < 0 || i === 0 ? _ : i + o[g[i]] > _ ? i : _;
1350
+ };
1351
+ }, { "./common": 41 }], 43: [function(v, L, w) {
1352
+ L.exports = function(h, l, n, o) {
1353
+ for (var p = 65535 & h | 0, b = h >>> 16 & 65535 | 0, g = 0; n !== 0; ) {
1354
+ for (n -= g = 2e3 < n ? 2e3 : n; b = b + (p = p + l[o++] | 0) | 0, --g; ) ;
1355
+ p %= 65521, b %= 65521;
1356
+ }
1357
+ return p | b << 16 | 0;
1358
+ };
1359
+ }, {}], 44: [function(v, L, w) {
1360
+ L.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
1361
+ }, {}], 45: [function(v, L, w) {
1362
+ var h = function() {
1363
+ for (var l, n = [], o = 0; o < 256; o++) {
1364
+ l = o;
1365
+ for (var p = 0; p < 8; p++) l = 1 & l ? 3988292384 ^ l >>> 1 : l >>> 1;
1366
+ n[o] = l;
1367
+ }
1368
+ return n;
1369
+ }();
1370
+ L.exports = function(l, n, o, p) {
1371
+ var b = h, g = p + o;
1372
+ l ^= -1;
1373
+ for (var _ = p; _ < g; _++) l = l >>> 8 ^ b[255 & (l ^ n[_])];
1374
+ return -1 ^ l;
1375
+ };
1376
+ }, {}], 46: [function(v, L, 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, f = -2, r = -1, u = 4, a = 2, d = 8, y = 9, S = 286, x = 30, P = 19, O = 2 * S + 1, N = 15, I = 3, H = 258, et = H + I + 1, m = 42, T = 113, e = 1, D = 2, rt = 3, M = 4;
1378
+ function nt(t, R) {
1379
+ return t.msg = b[R], R;
1380
+ }
1381
+ function j(t) {
1382
+ return (t << 1) - (4 < t ? 9 : 0);
1383
+ }
1384
+ function V(t) {
1385
+ for (var R = t.length; 0 <= --R; ) t[R] = 0;
1386
+ }
1387
+ function z(t) {
1388
+ var R = t.state, A = R.pending;
1389
+ A > t.avail_out && (A = t.avail_out), A !== 0 && (l.arraySet(t.output, R.pending_buf, R.pending_out, A, t.next_out), t.next_out += A, R.pending_out += A, t.total_out += A, t.avail_out -= A, R.pending -= A, R.pending === 0 && (R.pending_out = 0));
1390
+ }
1391
+ function C(t, R) {
1392
+ n._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, R), t.block_start = t.strstart, z(t.strm);
1393
+ }
1394
+ function Q(t, R) {
1395
+ t.pending_buf[t.pending++] = R;
1396
+ }
1397
+ function K(t, R) {
1398
+ t.pending_buf[t.pending++] = R >>> 8 & 255, t.pending_buf[t.pending++] = 255 & R;
1399
+ }
1400
+ function $(t, R) {
1401
+ var A, c, s = t.max_chain_length, k = t.strstart, F = t.prev_length, U = t.nice_match, E = t.strstart > t.w_size - et ? t.strstart - (t.w_size - et) : 0, Z = t.window, X = t.w_mask, G = t.prev, tt = t.strstart + H, ot = Z[k + F - 1], it = Z[k + F];
1402
+ t.prev_length >= t.good_match && (s >>= 2), U > t.lookahead && (U = t.lookahead);
1403
+ do
1404
+ if (Z[(A = R) + F] === it && Z[A + F - 1] === ot && Z[A] === Z[k] && Z[++A] === Z[k + 1]) {
1405
+ k += 2, A++;
1406
+ do
1407
+ ;
1408
+ while (Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && Z[++k] === Z[++A] && k < tt);
1409
+ if (c = H - (tt - k), k = tt - H, F < c) {
1410
+ if (t.match_start = R, U <= (F = c)) break;
1411
+ ot = Z[k + F - 1], it = Z[k + F];
1412
+ }
1413
+ }
1414
+ while ((R = G[R & X]) > E && --s != 0);
1415
+ return F <= t.lookahead ? F : t.lookahead;
1416
+ }
1417
+ function ut(t) {
1418
+ var R, A, c, s, k, F, U, E, Z, X, G = t.w_size;
1419
+ do {
1420
+ if (s = t.window_size - t.lookahead - t.strstart, t.strstart >= G + (G - et)) {
1421
+ for (l.arraySet(t.window, t.window, G, G, 0), t.match_start -= G, t.strstart -= G, t.block_start -= G, R = A = t.hash_size; c = t.head[--R], t.head[R] = G <= c ? c - G : 0, --A; ) ;
1422
+ for (R = A = G; c = t.prev[--R], t.prev[R] = G <= c ? c - G : 0, --A; ) ;
1423
+ s += G;
1424
+ }
1425
+ if (t.strm.avail_in === 0) break;
1426
+ if (F = t.strm, U = t.window, E = t.strstart + t.lookahead, Z = s, X = void 0, X = F.avail_in, Z < X && (X = Z), A = X === 0 ? 0 : (F.avail_in -= X, l.arraySet(U, F.input, F.next_in, X, E), F.state.wrap === 1 ? F.adler = o(F.adler, U, X, E) : F.state.wrap === 2 && (F.adler = p(F.adler, U, X, E)), F.next_in += X, F.total_in += X, X), t.lookahead += A, t.lookahead + t.insert >= I) for (k = t.strstart - t.insert, t.ins_h = t.window[k], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[k + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[k + I - 1]) & t.hash_mask, t.prev[k & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = k, k++, t.insert--, !(t.lookahead + t.insert < I)); ) ;
1427
+ } while (t.lookahead < et && t.strm.avail_in !== 0);
1428
+ }
1429
+ function mt(t, R) {
1430
+ for (var A, c; ; ) {
1431
+ if (t.lookahead < et) {
1432
+ if (ut(t), t.lookahead < et && R === g) return e;
1433
+ if (t.lookahead === 0) break;
1434
+ }
1435
+ if (A = 0, t.lookahead >= I && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + I - 1]) & t.hash_mask, A = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), A !== 0 && t.strstart - A <= t.w_size - et && (t.match_length = $(t, A)), t.match_length >= I) if (c = n._tr_tally(t, t.strstart - t.match_start, t.match_length - I), t.lookahead -= t.match_length, t.match_length <= t.max_lazy_match && t.lookahead >= I) {
1436
+ for (t.match_length--; t.strstart++, t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + I - 1]) & t.hash_mask, A = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart, --t.match_length != 0; ) ;
1437
+ t.strstart++;
1438
+ } else t.strstart += t.match_length, t.match_length = 0, t.ins_h = t.window[t.strstart], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + 1]) & t.hash_mask;
1439
+ else c = n._tr_tally(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
1440
+ if (c && (C(t, !1), t.strm.avail_out === 0)) return e;
1441
+ }
1442
+ return t.insert = t.strstart < I - 1 ? t.strstart : I - 1, R === _ ? (C(t, !0), t.strm.avail_out === 0 ? rt : M) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e : D;
1443
+ }
1444
+ function at(t, R) {
1445
+ for (var A, c, s; ; ) {
1446
+ if (t.lookahead < et) {
1447
+ if (ut(t), t.lookahead < et && R === g) return e;
1448
+ if (t.lookahead === 0) break;
1449
+ }
1450
+ if (A = 0, t.lookahead >= I && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + I - 1]) & t.hash_mask, A = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = I - 1, A !== 0 && t.prev_length < t.max_lazy_match && t.strstart - A <= t.w_size - et && (t.match_length = $(t, A), t.match_length <= 5 && (t.strategy === 1 || t.match_length === I && 4096 < t.strstart - t.match_start) && (t.match_length = I - 1)), t.prev_length >= I && t.match_length <= t.prev_length) {
1451
+ for (s = t.strstart + t.lookahead - I, c = n._tr_tally(t, t.strstart - 1 - t.prev_match, t.prev_length - I), t.lookahead -= t.prev_length - 1, t.prev_length -= 2; ++t.strstart <= s && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + I - 1]) & t.hash_mask, A = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), --t.prev_length != 0; ) ;
1452
+ if (t.match_available = 0, t.match_length = I - 1, t.strstart++, c && (C(t, !1), t.strm.avail_out === 0)) return e;
1453
+ } else if (t.match_available) {
1454
+ if ((c = n._tr_tally(t, 0, t.window[t.strstart - 1])) && C(t, !1), t.strstart++, t.lookahead--, t.strm.avail_out === 0) return e;
1455
+ } else t.match_available = 1, t.strstart++, t.lookahead--;
1456
+ }
1457
+ return t.match_available && (c = n._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < I - 1 ? t.strstart : I - 1, R === _ ? (C(t, !0), t.strm.avail_out === 0 ? rt : M) : t.last_lit && (C(t, !1), t.strm.avail_out === 0) ? e : D;
1458
+ }
1459
+ function st(t, R, A, c, s) {
1460
+ this.good_length = t, this.max_lazy = R, this.nice_length = A, this.max_chain = c, this.func = s;
1461
+ }
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 = d, 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 * P + 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(N + 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
+ }
1465
+ function ht(t) {
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, f);
1468
+ }
1469
+ function vt(t) {
1470
+ var R = ht(t);
1471
+ return R === i && function(A) {
1472
+ A.window_size = 2 * A.w_size, V(A.head), A.max_lazy_match = h[A.level].max_lazy, A.good_match = h[A.level].good_length, A.nice_match = h[A.level].nice_length, A.max_chain_length = h[A.level].max_chain, A.strstart = 0, A.block_start = 0, A.lookahead = 0, A.insert = 0, A.match_length = A.prev_length = I - 1, A.match_available = 0, A.ins_h = 0;
1473
+ }(t.state), R;
1474
+ }
1475
+ function yt(t, R, A, c, s, k) {
1476
+ if (!t) return f;
1477
+ var F = 1;
1478
+ if (R === r && (R = 6), c < 0 ? (F = 0, c = -c) : 15 < c && (F = 2, c -= 16), s < 1 || y < s || A !== d || c < 8 || 15 < c || R < 0 || 9 < R || k < 0 || u < k) return nt(t, f);
1479
+ c === 8 && (c = 9);
1480
+ var U = new gt();
1481
+ return (t.state = U).strm = t, U.wrap = F, U.gzhead = null, U.w_bits = c, U.w_size = 1 << U.w_bits, U.w_mask = U.w_size - 1, U.hash_bits = s + 7, U.hash_size = 1 << U.hash_bits, U.hash_mask = U.hash_size - 1, U.hash_shift = ~~((U.hash_bits + I - 1) / I), U.window = new l.Buf8(2 * U.w_size), U.head = new l.Buf16(U.hash_size), U.prev = new l.Buf16(U.w_size), U.lit_bufsize = 1 << s + 6, U.pending_buf_size = 4 * U.lit_bufsize, U.pending_buf = new l.Buf8(U.pending_buf_size), U.d_buf = 1 * U.lit_bufsize, U.l_buf = 3 * U.lit_bufsize, U.level = R, U.strategy = k, U.method = A, vt(t);
1482
+ }
1483
+ h = [new st(0, 0, 0, 0, function(t, R) {
1484
+ var A = 65535;
1485
+ for (A > t.pending_buf_size - 5 && (A = t.pending_buf_size - 5); ; ) {
1486
+ if (t.lookahead <= 1) {
1487
+ if (ut(t), t.lookahead === 0 && R === g) return e;
1488
+ if (t.lookahead === 0) break;
1489
+ }
1490
+ t.strstart += t.lookahead, t.lookahead = 0;
1491
+ var c = t.block_start + A;
1492
+ if ((t.strstart === 0 || t.strstart >= c) && (t.lookahead = t.strstart - c, t.strstart = c, C(t, !1), t.strm.avail_out === 0) || t.strstart - t.block_start >= t.w_size - et && (C(t, !1), t.strm.avail_out === 0)) return e;
1493
+ }
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
+ }), new st(4, 4, 8, 4, mt), new st(4, 5, 16, 8, mt), new st(4, 6, 32, 32, mt), new st(4, 4, 16, 16, at), new st(8, 16, 32, 32, at), new st(8, 16, 128, 128, at), new st(8, 32, 128, 256, at), new st(32, 128, 258, 1024, at), new st(32, 258, 258, 4096, at)], w.deflateInit = function(t, R) {
1496
+ return yt(t, R, d, 15, 8, 0);
1497
+ }, w.deflateInit2 = yt, w.deflateReset = vt, w.deflateResetKeep = ht, w.deflateSetHeader = function(t, R) {
1498
+ return t && t.state ? t.state.wrap !== 2 ? f : (t.state.gzhead = R, i) : f;
1499
+ }, w.deflate = function(t, R) {
1500
+ var A, c, s, k;
1501
+ if (!t || !t.state || 5 < R || R < 0) return t ? nt(t, f) : f;
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 : f);
1503
+ if (c.strm = t, A = c.last_flush, c.last_flush = R, c.status === m) if (c.wrap === 2) t.adler = 0, Q(c, 31), Q(c, 139), Q(c, 8), c.gzhead ? (Q(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)), Q(c, 255 & c.gzhead.time), Q(c, c.gzhead.time >> 8 & 255), Q(c, c.gzhead.time >> 16 & 255), Q(c, c.gzhead.time >> 24 & 255), Q(c, c.level === 9 ? 2 : 2 <= c.strategy || c.level < 2 ? 4 : 0), Q(c, 255 & c.gzhead.os), c.gzhead.extra && c.gzhead.extra.length && (Q(c, 255 & c.gzhead.extra.length), Q(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) : (Q(c, 0), Q(c, 0), Q(c, 0), Q(c, 0), Q(c, 0), Q(c, c.level === 9 ? 2 : 2 <= c.strategy || c.level < 2 ? 4 : 0), Q(c, 3), c.status = T);
1504
+ else {
1505
+ var F = d + (c.w_bits - 8 << 4) << 8;
1506
+ F |= (2 <= c.strategy || c.level < 2 ? 0 : c.level < 6 ? 1 : c.level === 6 ? 2 : 3) << 6, c.strstart !== 0 && (F |= 32), F += 31 - F % 31, c.status = T, K(c, F), c.strstart !== 0 && (K(c, t.adler >>> 16), K(c, 65535 & t.adler)), t.adler = 1;
1507
+ }
1508
+ if (c.status === 69) if (c.gzhead.extra) {
1509
+ for (s = c.pending; c.gzindex < (65535 & c.gzhead.extra.length) && (c.pending !== c.pending_buf_size || (c.gzhead.hcrc && c.pending > s && (t.adler = p(t.adler, c.pending_buf, c.pending - s, s)), z(t), s = c.pending, c.pending !== c.pending_buf_size)); ) Q(c, 255 & c.gzhead.extra[c.gzindex]), c.gzindex++;
1510
+ c.gzhead.hcrc && c.pending > s && (t.adler = p(t.adler, c.pending_buf, c.pending - s, s)), c.gzindex === c.gzhead.extra.length && (c.gzindex = 0, c.status = 73);
1511
+ } else c.status = 73;
1512
+ if (c.status === 73) if (c.gzhead.name) {
1513
+ s = c.pending;
1514
+ do {
1515
+ if (c.pending === c.pending_buf_size && (c.gzhead.hcrc && c.pending > s && (t.adler = p(t.adler, c.pending_buf, c.pending - s, s)), z(t), s = c.pending, c.pending === c.pending_buf_size)) {
1516
+ k = 1;
1517
+ break;
1518
+ }
1519
+ k = c.gzindex < c.gzhead.name.length ? 255 & c.gzhead.name.charCodeAt(c.gzindex++) : 0, Q(c, k);
1520
+ } while (k !== 0);
1521
+ c.gzhead.hcrc && c.pending > s && (t.adler = p(t.adler, c.pending_buf, c.pending - s, s)), k === 0 && (c.gzindex = 0, c.status = 91);
1522
+ } else c.status = 91;
1523
+ if (c.status === 91) if (c.gzhead.comment) {
1524
+ s = c.pending;
1525
+ do {
1526
+ if (c.pending === c.pending_buf_size && (c.gzhead.hcrc && c.pending > s && (t.adler = p(t.adler, c.pending_buf, c.pending - s, s)), z(t), s = c.pending, c.pending === c.pending_buf_size)) {
1527
+ k = 1;
1528
+ break;
1529
+ }
1530
+ k = c.gzindex < c.gzhead.comment.length ? 255 & c.gzhead.comment.charCodeAt(c.gzindex++) : 0, Q(c, k);
1531
+ } while (k !== 0);
1532
+ c.gzhead.hcrc && c.pending > s && (t.adler = p(t.adler, c.pending_buf, c.pending - s, s)), k === 0 && (c.status = 103);
1533
+ } else c.status = 103;
1534
+ if (c.status === 103 && (c.gzhead.hcrc ? (c.pending + 2 > c.pending_buf_size && z(t), c.pending + 2 <= c.pending_buf_size && (Q(c, 255 & t.adler), Q(c, t.adler >> 8 & 255), t.adler = 0, c.status = T)) : c.status = T), c.pending !== 0) {
1535
+ if (z(t), t.avail_out === 0) return c.last_flush = -1, i;
1536
+ } else if (t.avail_in === 0 && j(R) <= j(A) && R !== _) return nt(t, -5);
1537
+ if (c.status === 666 && t.avail_in !== 0) return nt(t, -5);
1538
+ if (t.avail_in !== 0 || c.lookahead !== 0 || R !== g && c.status !== 666) {
1539
+ var U = c.strategy === 2 ? function(E, Z) {
1540
+ for (var X; ; ) {
1541
+ if (E.lookahead === 0 && (ut(E), E.lookahead === 0)) {
1542
+ if (Z === g) return e;
1543
+ break;
1544
+ }
1545
+ if (E.match_length = 0, X = n._tr_tally(E, 0, E.window[E.strstart]), E.lookahead--, E.strstart++, X && (C(E, !1), E.strm.avail_out === 0)) return e;
1546
+ }
1547
+ return E.insert = 0, Z === _ ? (C(E, !0), E.strm.avail_out === 0 ? rt : M) : E.last_lit && (C(E, !1), E.strm.avail_out === 0) ? e : D;
1548
+ }(c, R) : c.strategy === 3 ? function(E, Z) {
1549
+ for (var X, G, tt, ot, it = E.window; ; ) {
1550
+ if (E.lookahead <= H) {
1551
+ if (ut(E), E.lookahead <= H && Z === g) return e;
1552
+ if (E.lookahead === 0) break;
1553
+ }
1554
+ if (E.match_length = 0, E.lookahead >= I && 0 < E.strstart && (G = it[tt = E.strstart - 1]) === it[++tt] && G === it[++tt] && G === it[++tt]) {
1555
+ ot = E.strstart + H;
1556
+ do
1557
+ ;
1558
+ while (G === it[++tt] && G === it[++tt] && G === it[++tt] && G === it[++tt] && G === it[++tt] && G === it[++tt] && G === it[++tt] && G === it[++tt] && tt < ot);
1559
+ E.match_length = H - (ot - tt), E.match_length > E.lookahead && (E.match_length = E.lookahead);
1560
+ }
1561
+ if (E.match_length >= I ? (X = n._tr_tally(E, 1, E.match_length - I), E.lookahead -= E.match_length, E.strstart += E.match_length, E.match_length = 0) : (X = n._tr_tally(E, 0, E.window[E.strstart]), E.lookahead--, E.strstart++), X && (C(E, !1), E.strm.avail_out === 0)) return e;
1562
+ }
1563
+ return E.insert = 0, Z === _ ? (C(E, !0), E.strm.avail_out === 0 ? rt : M) : E.last_lit && (C(E, !1), E.strm.avail_out === 0) ? e : D;
1564
+ }(c, R) : h[c.level].func(c, R);
1565
+ if (U !== rt && U !== M || (c.status = 666), U === e || U === rt) return t.avail_out === 0 && (c.last_flush = -1), i;
1566
+ if (U === D && (R === 1 ? n._tr_align(c) : R !== 5 && (n._tr_stored_block(c, 0, 0, !1), R === 3 && (V(c.head), c.lookahead === 0 && (c.strstart = 0, c.block_start = 0, c.insert = 0))), z(t), t.avail_out === 0)) return c.last_flush = -1, i;
1567
+ }
1568
+ return R !== _ ? i : c.wrap <= 0 ? 1 : (c.wrap === 2 ? (Q(c, 255 & t.adler), Q(c, t.adler >> 8 & 255), Q(c, t.adler >> 16 & 255), Q(c, t.adler >> 24 & 255), Q(c, 255 & t.total_in), Q(c, t.total_in >> 8 & 255), Q(c, t.total_in >> 16 & 255), Q(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
+ }, w.deflateEnd = function(t) {
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, f) : (t.state = null, R === T ? nt(t, -3) : i) : f;
1572
+ }, w.deflateSetDictionary = function(t, R) {
1573
+ var A, c, s, k, F, U, E, Z, X = R.length;
1574
+ if (!t || !t.state || (k = (A = t.state).wrap) === 2 || k === 1 && A.status !== m || A.lookahead) return f;
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), F = t.avail_in, U = t.next_in, E = t.input, t.avail_in = X, t.next_in = 0, t.input = R, ut(A); A.lookahead >= I; ) {
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
+ A.strstart = c, A.lookahead = I - 1, ut(A);
1578
+ }
1579
+ return A.strstart += A.lookahead, A.block_start = A.strstart, A.insert = A.lookahead, A.lookahead = 0, A.match_length = A.prev_length = I - 1, A.match_available = 0, t.next_in = U, t.input = E, t.avail_in = F, A.wrap = k, i;
1580
+ }, w.deflateInfo = "pako deflate (from Nodeca project)";
1581
+ }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(v, L, w) {
1582
+ L.exports = function() {
1583
+ this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
1584
+ };
1585
+ }, {}], 48: [function(v, L, w) {
1586
+ L.exports = function(h, l) {
1587
+ var n, o, p, b, g, _, i, f, r, u, a, d, y, S, x, P, O, N, I, H, et, 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, f = n.wsize, r = n.whave, u = n.wnext, a = n.window, d = n.hold, y = n.bits, S = n.lencode, x = n.distcode, P = (1 << n.lenbits) - 1, O = (1 << n.distbits) - 1;
1589
+ t: do {
1590
+ y < 15 && (d += e[o++] << y, y += 8, d += e[o++] << y, y += 8), N = S[d & P];
1591
+ e: for (; ; ) {
1592
+ if (d >>>= I = N >>> 24, y -= I, (I = N >>> 16 & 255) === 0) D[b++] = 65535 & N;
1593
+ else {
1594
+ if (!(16 & I)) {
1595
+ if (!(64 & I)) {
1596
+ N = S[(65535 & N) + (d & (1 << I) - 1)];
1597
+ continue e;
1598
+ }
1599
+ if (32 & I) {
1600
+ n.mode = 12;
1601
+ break t;
1602
+ }
1603
+ h.msg = "invalid literal/length code", n.mode = 30;
1604
+ break t;
1605
+ }
1606
+ H = 65535 & N, (I &= 15) && (y < I && (d += e[o++] << y, y += 8), H += d & (1 << I) - 1, d >>>= I, y -= I), y < 15 && (d += e[o++] << y, y += 8, d += e[o++] << y, y += 8), N = x[d & O];
1607
+ r: for (; ; ) {
1608
+ if (d >>>= I = N >>> 24, y -= I, !(16 & (I = N >>> 16 & 255))) {
1609
+ if (!(64 & I)) {
1610
+ N = x[(65535 & N) + (d & (1 << I) - 1)];
1611
+ continue r;
1612
+ }
1613
+ h.msg = "invalid distance code", n.mode = 30;
1614
+ break t;
1615
+ }
1616
+ if (et = 65535 & N, y < (I &= 15) && (d += e[o++] << y, (y += 8) < I && (d += e[o++] << y, y += 8)), i < (et += d & (1 << I) - 1)) {
1617
+ h.msg = "invalid distance too far back", n.mode = 30;
1618
+ break t;
1619
+ }
1620
+ if (d >>>= I, y -= I, (I = b - g) < et) {
1621
+ if (r < (I = et - I) && n.sane) {
1622
+ h.msg = "invalid distance too far back", n.mode = 30;
1623
+ break t;
1624
+ }
1625
+ if (T = a, (m = 0) === u) {
1626
+ if (m += f - I, I < H) {
1627
+ for (H -= I; D[b++] = a[m++], --I; ) ;
1628
+ m = b - et, T = D;
1629
+ }
1630
+ } else if (u < I) {
1631
+ if (m += f + u - I, (I -= u) < H) {
1632
+ for (H -= I; D[b++] = a[m++], --I; ) ;
1633
+ if (m = 0, u < H) {
1634
+ for (H -= I = u; D[b++] = a[m++], --I; ) ;
1635
+ m = b - et, T = D;
1636
+ }
1637
+ }
1638
+ } else if (m += u - I, I < H) {
1639
+ for (H -= I; D[b++] = a[m++], --I; ) ;
1640
+ m = b - et, T = D;
1641
+ }
1642
+ for (; 2 < H; ) D[b++] = T[m++], D[b++] = T[m++], D[b++] = T[m++], H -= 3;
1643
+ H && (D[b++] = T[m++], 1 < H && (D[b++] = T[m++]));
1644
+ } else {
1645
+ for (m = b - et; D[b++] = D[m++], D[b++] = D[m++], D[b++] = D[m++], 2 < (H -= 3); ) ;
1646
+ H && (D[b++] = D[m++], 1 < H && (D[b++] = D[m++]));
1647
+ }
1648
+ break;
1649
+ }
1650
+ }
1651
+ break;
1652
+ }
1653
+ } while (o < p && b < _);
1654
+ o -= H = y >> 3, d &= (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 = d, n.bits = y;
1655
+ };
1656
+ }, {}], 49: [function(v, L, 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, f = 1, r = 852, u = 592;
1658
+ function a(m) {
1659
+ return (m >>> 24 & 255) + (m >>> 8 & 65280) + ((65280 & m) << 8) + ((255 & m) << 24);
1660
+ }
1661
+ function d() {
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
+ }
1664
+ function y(m) {
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 = f, 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
+ }
1668
+ function S(m) {
1669
+ var T;
1670
+ return m && m.state ? ((T = m.state).wsize = 0, T.whave = 0, T.wnext = 0, y(m)) : i;
1671
+ }
1672
+ function x(m, T) {
1673
+ var e, D;
1674
+ return m && m.state ? (D = m.state, T < 0 ? (e = 0, T = -T) : (e = 1 + (T >> 4), T < 48 && (T &= 15)), T && (T < 8 || 15 < T) ? i : (D.window !== null && D.wbits !== T && (D.window = null), D.wrap = e, D.wbits = T, S(m))) : i;
1675
+ }
1676
+ function P(m, T) {
1677
+ var e, D;
1678
+ return m ? (D = new d(), (m.state = D).window = null, (e = x(m, T)) !== _ && (m.state = null), e) : i;
1679
+ }
1680
+ var O, N, I = !0;
1681
+ function H(m) {
1682
+ if (I) {
1683
+ var T;
1684
+ for (O = new h.Buf32(512), N = new h.Buf32(32), T = 0; T < 144; ) m.lens[T++] = 8;
1685
+ for (; T < 256; ) m.lens[T++] = 9;
1686
+ for (; T < 280; ) m.lens[T++] = 7;
1687
+ for (; T < 288; ) m.lens[T++] = 8;
1688
+ for (p(b, m.lens, 0, 288, O, 0, m.work, { bits: 9 }), T = 0; T < 32; ) m.lens[T++] = 5;
1689
+ p(g, m.lens, 0, 32, N, 0, m.work, { bits: 5 }), I = !1;
1690
+ }
1691
+ m.lencode = O, m.lenbits = 9, m.distcode = N, m.distbits = 5;
1692
+ }
1693
+ function et(m, T, e, D) {
1694
+ var rt, M = m.state;
1695
+ return M.window === null && (M.wsize = 1 << M.wbits, M.wnext = 0, M.whave = 0, M.window = new h.Buf8(M.wsize)), D >= M.wsize ? (h.arraySet(M.window, T, e - M.wsize, M.wsize, 0), M.wnext = 0, M.whave = M.wsize) : (D < (rt = M.wsize - M.wnext) && (rt = D), h.arraySet(M.window, T, e - D, rt, M.wnext), (D -= rt) ? (h.arraySet(M.window, T, e - D, D, 0), M.wnext = D, M.whave = M.wsize) : (M.wnext += rt, M.wnext === M.wsize && (M.wnext = 0), M.whave < M.wsize && (M.whave += rt))), 0;
1696
+ }
1697
+ w.inflateReset = S, w.inflateReset2 = x, w.inflateResetKeep = y, w.inflateInit = function(m) {
1698
+ return P(m, 15);
1699
+ }, w.inflateInit2 = P, w.inflate = function(m, T) {
1700
+ var e, D, rt, M, nt, j, V, z, C, Q, K, $, ut, mt, at, st, gt, ht, vt, yt, t, R, A, c, s = 0, k = new h.Buf8(4), F = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1701
+ if (!m || !m.state || !m.output || !m.input && m.avail_in !== 0) return i;
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, Q = j, K = V, R = _;
1703
+ t: for (; ; ) switch (e.mode) {
1704
+ case f:
1705
+ if (e.wrap === 0) {
1706
+ e.mode = 13;
1707
+ break;
1708
+ }
1709
+ for (; C < 16; ) {
1710
+ if (j === 0) break t;
1711
+ j--, z += D[M++] << C, C += 8;
1712
+ }
1713
+ if (2 & e.wrap && z === 35615) {
1714
+ k[e.check = 0] = 255 & z, k[1] = z >>> 8 & 255, e.check = n(e.check, k, 2, 0), C = z = 0, e.mode = 2;
1715
+ break;
1716
+ }
1717
+ if (e.flags = 0, e.head && (e.head.done = !1), !(1 & e.wrap) || (((255 & z) << 8) + (z >> 8)) % 31) {
1718
+ m.msg = "incorrect header check", e.mode = 30;
1719
+ break;
1720
+ }
1721
+ if ((15 & z) != 8) {
1722
+ m.msg = "unknown compression method", e.mode = 30;
1723
+ break;
1724
+ }
1725
+ if (C -= 4, t = 8 + (15 & (z >>>= 4)), e.wbits === 0) e.wbits = t;
1726
+ else if (t > e.wbits) {
1727
+ m.msg = "invalid window size", e.mode = 30;
1728
+ break;
1729
+ }
1730
+ e.dmax = 1 << t, m.adler = e.check = 1, e.mode = 512 & z ? 10 : 12, C = z = 0;
1731
+ break;
1732
+ case 2:
1733
+ for (; C < 16; ) {
1734
+ if (j === 0) break t;
1735
+ j--, z += D[M++] << C, C += 8;
1736
+ }
1737
+ if (e.flags = z, (255 & e.flags) != 8) {
1738
+ m.msg = "unknown compression method", e.mode = 30;
1739
+ break;
1740
+ }
1741
+ if (57344 & e.flags) {
1742
+ m.msg = "unknown header flags set", e.mode = 30;
1743
+ break;
1744
+ }
1745
+ e.head && (e.head.text = z >> 8 & 1), 512 & e.flags && (k[0] = 255 & z, k[1] = z >>> 8 & 255, e.check = n(e.check, k, 2, 0)), C = z = 0, e.mode = 3;
1746
+ case 3:
1747
+ for (; C < 32; ) {
1748
+ if (j === 0) break t;
1749
+ j--, z += D[M++] << C, C += 8;
1750
+ }
1751
+ e.head && (e.head.time = z), 512 & e.flags && (k[0] = 255 & z, k[1] = z >>> 8 & 255, k[2] = z >>> 16 & 255, k[3] = z >>> 24 & 255, e.check = n(e.check, k, 4, 0)), C = z = 0, e.mode = 4;
1752
+ case 4:
1753
+ for (; C < 16; ) {
1754
+ if (j === 0) break t;
1755
+ j--, z += D[M++] << C, C += 8;
1756
+ }
1757
+ e.head && (e.head.xflags = 255 & z, e.head.os = z >> 8), 512 & e.flags && (k[0] = 255 & z, k[1] = z >>> 8 & 255, e.check = n(e.check, k, 2, 0)), C = z = 0, e.mode = 5;
1758
+ case 5:
1759
+ if (1024 & e.flags) {
1760
+ for (; C < 16; ) {
1761
+ if (j === 0) break t;
1762
+ j--, z += D[M++] << C, C += 8;
1763
+ }
1764
+ e.length = z, e.head && (e.head.extra_len = z), 512 & e.flags && (k[0] = 255 & z, k[1] = z >>> 8 & 255, e.check = n(e.check, k, 2, 0)), C = z = 0;
1765
+ } else e.head && (e.head.extra = null);
1766
+ e.mode = 6;
1767
+ case 6:
1768
+ if (1024 & e.flags && (j < ($ = e.length) && ($ = j), $ && (e.head && (t = e.head.extra_len - e.length, e.head.extra || (e.head.extra = new Array(e.head.extra_len)), h.arraySet(e.head.extra, D, M, $, t)), 512 & e.flags && (e.check = n(e.check, D, $, M)), j -= $, M += $, e.length -= $), e.length)) break t;
1769
+ e.length = 0, e.mode = 7;
1770
+ case 7:
1771
+ if (2048 & e.flags) {
1772
+ if (j === 0) break t;
1773
+ for ($ = 0; t = D[M + $++], e.head && t && e.length < 65536 && (e.head.name += String.fromCharCode(t)), t && $ < j; ) ;
1774
+ if (512 & e.flags && (e.check = n(e.check, D, $, M)), j -= $, M += $, t) break t;
1775
+ } else e.head && (e.head.name = null);
1776
+ e.length = 0, e.mode = 8;
1777
+ case 8:
1778
+ if (4096 & e.flags) {
1779
+ if (j === 0) break t;
1780
+ for ($ = 0; t = D[M + $++], e.head && t && e.length < 65536 && (e.head.comment += String.fromCharCode(t)), t && $ < j; ) ;
1781
+ if (512 & e.flags && (e.check = n(e.check, D, $, M)), j -= $, M += $, t) break t;
1782
+ } else e.head && (e.head.comment = null);
1783
+ e.mode = 9;
1784
+ case 9:
1785
+ if (512 & e.flags) {
1786
+ for (; C < 16; ) {
1787
+ if (j === 0) break t;
1788
+ j--, z += D[M++] << C, C += 8;
1789
+ }
1790
+ if (z !== (65535 & e.check)) {
1791
+ m.msg = "header crc mismatch", e.mode = 30;
1792
+ break;
1793
+ }
1794
+ C = z = 0;
1795
+ }
1796
+ e.head && (e.head.hcrc = e.flags >> 9 & 1, e.head.done = !0), m.adler = e.check = 0, e.mode = 12;
1797
+ break;
1798
+ case 10:
1799
+ for (; C < 32; ) {
1800
+ if (j === 0) break t;
1801
+ j--, z += D[M++] << C, C += 8;
1802
+ }
1803
+ m.adler = e.check = a(z), C = z = 0, e.mode = 11;
1804
+ case 11:
1805
+ if (e.havedict === 0) return m.next_out = nt, m.avail_out = V, m.next_in = M, m.avail_in = j, e.hold = z, e.bits = C, 2;
1806
+ m.adler = e.check = 1, e.mode = 12;
1807
+ case 12:
1808
+ if (T === 5 || T === 6) break t;
1809
+ case 13:
1810
+ if (e.last) {
1811
+ z >>>= 7 & C, C -= 7 & C, e.mode = 27;
1812
+ break;
1813
+ }
1814
+ for (; C < 3; ) {
1815
+ if (j === 0) break t;
1816
+ j--, z += D[M++] << C, C += 8;
1817
+ }
1818
+ switch (e.last = 1 & z, C -= 1, 3 & (z >>>= 1)) {
1819
+ case 0:
1820
+ e.mode = 14;
1821
+ break;
1822
+ case 1:
1823
+ if (H(e), e.mode = 20, T !== 6) break;
1824
+ z >>>= 2, C -= 2;
1825
+ break t;
1826
+ case 2:
1827
+ e.mode = 17;
1828
+ break;
1829
+ case 3:
1830
+ m.msg = "invalid block type", e.mode = 30;
1831
+ }
1832
+ z >>>= 2, C -= 2;
1833
+ break;
1834
+ case 14:
1835
+ for (z >>>= 7 & C, C -= 7 & C; C < 32; ) {
1836
+ if (j === 0) break t;
1837
+ j--, z += D[M++] << C, C += 8;
1838
+ }
1839
+ if ((65535 & z) != (z >>> 16 ^ 65535)) {
1840
+ m.msg = "invalid stored block lengths", e.mode = 30;
1841
+ break;
1842
+ }
1843
+ if (e.length = 65535 & z, C = z = 0, e.mode = 15, T === 6) break t;
1844
+ case 15:
1845
+ e.mode = 16;
1846
+ case 16:
1847
+ if ($ = e.length) {
1848
+ if (j < $ && ($ = j), V < $ && ($ = V), $ === 0) break t;
1849
+ h.arraySet(rt, D, M, $, nt), j -= $, M += $, V -= $, nt += $, e.length -= $;
1850
+ break;
1851
+ }
1852
+ e.mode = 12;
1853
+ break;
1854
+ case 17:
1855
+ for (; C < 14; ) {
1856
+ if (j === 0) break t;
1857
+ j--, z += D[M++] << C, C += 8;
1858
+ }
1859
+ if (e.nlen = 257 + (31 & z), z >>>= 5, C -= 5, e.ndist = 1 + (31 & z), z >>>= 5, C -= 5, e.ncode = 4 + (15 & z), z >>>= 4, C -= 4, 286 < e.nlen || 30 < e.ndist) {
1860
+ m.msg = "too many length or distance symbols", e.mode = 30;
1861
+ break;
1862
+ }
1863
+ e.have = 0, e.mode = 18;
1864
+ case 18:
1865
+ for (; e.have < e.ncode; ) {
1866
+ for (; C < 3; ) {
1867
+ if (j === 0) break t;
1868
+ j--, z += D[M++] << C, C += 8;
1869
+ }
1870
+ e.lens[F[e.have++]] = 7 & z, z >>>= 3, C -= 3;
1871
+ }
1872
+ for (; e.have < 19; ) e.lens[F[e.have++]] = 0;
1873
+ if (e.lencode = e.lendyn, e.lenbits = 7, A = { bits: e.lenbits }, R = p(0, e.lens, 0, 19, e.lencode, 0, e.work, A), e.lenbits = A.bits, R) {
1874
+ m.msg = "invalid code lengths set", e.mode = 30;
1875
+ break;
1876
+ }
1877
+ e.have = 0, e.mode = 19;
1878
+ case 19:
1879
+ for (; e.have < e.nlen + e.ndist; ) {
1880
+ for (; st = (s = e.lencode[z & (1 << e.lenbits) - 1]) >>> 16 & 255, gt = 65535 & s, !((at = s >>> 24) <= C); ) {
1881
+ if (j === 0) break t;
1882
+ j--, z += D[M++] << C, C += 8;
1883
+ }
1884
+ if (gt < 16) z >>>= at, C -= at, e.lens[e.have++] = gt;
1885
+ else {
1886
+ if (gt === 16) {
1887
+ for (c = at + 2; C < c; ) {
1888
+ if (j === 0) break t;
1889
+ j--, z += D[M++] << C, C += 8;
1890
+ }
1891
+ if (z >>>= at, C -= at, e.have === 0) {
1892
+ m.msg = "invalid bit length repeat", e.mode = 30;
1893
+ break;
1894
+ }
1895
+ t = e.lens[e.have - 1], $ = 3 + (3 & z), z >>>= 2, C -= 2;
1896
+ } else if (gt === 17) {
1897
+ for (c = at + 3; C < c; ) {
1898
+ if (j === 0) break t;
1899
+ j--, z += D[M++] << C, C += 8;
1900
+ }
1901
+ C -= at, t = 0, $ = 3 + (7 & (z >>>= at)), z >>>= 3, C -= 3;
1902
+ } else {
1903
+ for (c = at + 7; C < c; ) {
1904
+ if (j === 0) break t;
1905
+ j--, z += D[M++] << C, C += 8;
1906
+ }
1907
+ C -= at, t = 0, $ = 11 + (127 & (z >>>= at)), z >>>= 7, C -= 7;
1908
+ }
1909
+ if (e.have + $ > e.nlen + e.ndist) {
1910
+ m.msg = "invalid bit length repeat", e.mode = 30;
1911
+ break;
1912
+ }
1913
+ for (; $--; ) e.lens[e.have++] = t;
1914
+ }
1915
+ }
1916
+ if (e.mode === 30) break;
1917
+ if (e.lens[256] === 0) {
1918
+ m.msg = "invalid code -- missing end-of-block", e.mode = 30;
1919
+ break;
1920
+ }
1921
+ if (e.lenbits = 9, A = { bits: e.lenbits }, R = p(b, e.lens, 0, e.nlen, e.lencode, 0, e.work, A), e.lenbits = A.bits, R) {
1922
+ m.msg = "invalid literal/lengths set", e.mode = 30;
1923
+ break;
1924
+ }
1925
+ if (e.distbits = 6, e.distcode = e.distdyn, A = { bits: e.distbits }, R = p(g, e.lens, e.nlen, e.ndist, e.distcode, 0, e.work, A), e.distbits = A.bits, R) {
1926
+ m.msg = "invalid distances set", e.mode = 30;
1927
+ break;
1928
+ }
1929
+ if (e.mode = 20, T === 6) break t;
1930
+ case 20:
1931
+ e.mode = 21;
1932
+ case 21:
1933
+ if (6 <= j && 258 <= V) {
1934
+ m.next_out = nt, m.avail_out = V, m.next_in = M, m.avail_in = j, e.hold = z, e.bits = C, o(m, K), 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, e.mode === 12 && (e.back = -1);
1935
+ break;
1936
+ }
1937
+ for (e.back = 0; st = (s = e.lencode[z & (1 << e.lenbits) - 1]) >>> 16 & 255, gt = 65535 & s, !((at = s >>> 24) <= C); ) {
1938
+ if (j === 0) break t;
1939
+ j--, z += D[M++] << C, C += 8;
1940
+ }
1941
+ if (st && !(240 & st)) {
1942
+ for (ht = at, vt = st, yt = gt; st = (s = e.lencode[yt + ((z & (1 << ht + vt) - 1) >> ht)]) >>> 16 & 255, gt = 65535 & s, !(ht + (at = s >>> 24) <= C); ) {
1943
+ if (j === 0) break t;
1944
+ j--, z += D[M++] << C, C += 8;
1945
+ }
1946
+ z >>>= ht, C -= ht, e.back += ht;
1947
+ }
1948
+ if (z >>>= at, C -= at, e.back += at, e.length = gt, st === 0) {
1949
+ e.mode = 26;
1950
+ break;
1951
+ }
1952
+ if (32 & st) {
1953
+ e.back = -1, e.mode = 12;
1954
+ break;
1955
+ }
1956
+ if (64 & st) {
1957
+ m.msg = "invalid literal/length code", e.mode = 30;
1958
+ break;
1959
+ }
1960
+ e.extra = 15 & st, e.mode = 22;
1961
+ case 22:
1962
+ if (e.extra) {
1963
+ for (c = e.extra; C < c; ) {
1964
+ if (j === 0) break t;
1965
+ j--, z += D[M++] << C, C += 8;
1966
+ }
1967
+ e.length += z & (1 << e.extra) - 1, z >>>= e.extra, C -= e.extra, e.back += e.extra;
1968
+ }
1969
+ e.was = e.length, e.mode = 23;
1970
+ case 23:
1971
+ for (; st = (s = e.distcode[z & (1 << e.distbits) - 1]) >>> 16 & 255, gt = 65535 & s, !((at = s >>> 24) <= C); ) {
1972
+ if (j === 0) break t;
1973
+ j--, z += D[M++] << C, C += 8;
1974
+ }
1975
+ if (!(240 & st)) {
1976
+ for (ht = at, vt = st, yt = gt; st = (s = e.distcode[yt + ((z & (1 << ht + vt) - 1) >> ht)]) >>> 16 & 255, gt = 65535 & s, !(ht + (at = s >>> 24) <= C); ) {
1977
+ if (j === 0) break t;
1978
+ j--, z += D[M++] << C, C += 8;
1979
+ }
1980
+ z >>>= ht, C -= ht, e.back += ht;
1981
+ }
1982
+ if (z >>>= at, C -= at, e.back += at, 64 & st) {
1983
+ m.msg = "invalid distance code", e.mode = 30;
1984
+ break;
1985
+ }
1986
+ e.offset = gt, e.extra = 15 & st, e.mode = 24;
1987
+ case 24:
1988
+ if (e.extra) {
1989
+ for (c = e.extra; C < c; ) {
1990
+ if (j === 0) break t;
1991
+ j--, z += D[M++] << C, C += 8;
1992
+ }
1993
+ e.offset += z & (1 << e.extra) - 1, z >>>= e.extra, C -= e.extra, e.back += e.extra;
1994
+ }
1995
+ if (e.offset > e.dmax) {
1996
+ m.msg = "invalid distance too far back", e.mode = 30;
1997
+ break;
1998
+ }
1999
+ e.mode = 25;
2000
+ case 25:
2001
+ if (V === 0) break t;
2002
+ if ($ = K - V, e.offset > $) {
2003
+ if (($ = e.offset - $) > e.whave && e.sane) {
2004
+ m.msg = "invalid distance too far back", e.mode = 30;
2005
+ break;
2006
+ }
2007
+ ut = $ > e.wnext ? ($ -= e.wnext, e.wsize - $) : e.wnext - $, $ > e.length && ($ = e.length), mt = e.window;
2008
+ } else mt = rt, ut = nt - e.offset, $ = e.length;
2009
+ for (V < $ && ($ = V), V -= $, e.length -= $; rt[nt++] = mt[ut++], --$; ) ;
2010
+ e.length === 0 && (e.mode = 21);
2011
+ break;
2012
+ case 26:
2013
+ if (V === 0) break t;
2014
+ rt[nt++] = e.length, V--, e.mode = 21;
2015
+ break;
2016
+ case 27:
2017
+ if (e.wrap) {
2018
+ for (; C < 32; ) {
2019
+ if (j === 0) break t;
2020
+ j--, z |= D[M++] << C, C += 8;
2021
+ }
2022
+ if (K -= V, m.total_out += K, e.total += K, K && (m.adler = e.check = e.flags ? n(e.check, rt, K, nt - K) : l(e.check, rt, K, nt - K)), K = V, (e.flags ? z : a(z)) !== e.check) {
2023
+ m.msg = "incorrect data check", e.mode = 30;
2024
+ break;
2025
+ }
2026
+ C = z = 0;
2027
+ }
2028
+ e.mode = 28;
2029
+ case 28:
2030
+ if (e.wrap && e.flags) {
2031
+ for (; C < 32; ) {
2032
+ if (j === 0) break t;
2033
+ j--, z += D[M++] << C, C += 8;
2034
+ }
2035
+ if (z !== (4294967295 & e.total)) {
2036
+ m.msg = "incorrect length check", e.mode = 30;
2037
+ break;
2038
+ }
2039
+ C = z = 0;
2040
+ }
2041
+ e.mode = 29;
2042
+ case 29:
2043
+ R = 1;
2044
+ break t;
2045
+ case 30:
2046
+ R = -3;
2047
+ break t;
2048
+ case 31:
2049
+ return -4;
2050
+ case 32:
2051
+ default:
2052
+ return i;
2053
+ }
2054
+ return m.next_out = nt, m.avail_out = V, m.next_in = M, m.avail_in = j, e.hold = z, e.bits = C, (e.wsize || K !== m.avail_out && e.mode < 30 && (e.mode < 27 || T !== 4)) && et(m, m.output, m.next_out, K - m.avail_out) ? (e.mode = 31, -4) : (Q -= m.avail_in, K -= m.avail_out, m.total_in += Q, m.total_out += K, e.total += K, e.wrap && K && (m.adler = e.check = e.flags ? n(e.check, rt, K, m.next_out - K) : l(e.check, rt, K, m.next_out - K)), m.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === 12 ? 128 : 0) + (e.mode === 20 || e.mode === 15 ? 256 : 0), (Q == 0 && K === 0 || T === 4) && R === _ && (R = -5), R);
2055
+ }, w.inflateEnd = function(m) {
2056
+ if (!m || !m.state) return i;
2057
+ var T = m.state;
2058
+ return T.window && (T.window = null), m.state = null, _;
2059
+ }, w.inflateGetHeader = function(m, T) {
2060
+ var e;
2061
+ return m && m.state && 2 & (e = m.state).wrap ? ((e.head = T).done = !1, _) : i;
2062
+ }, w.inflateSetDictionary = function(m, T) {
2063
+ var e, D = T.length;
2064
+ return m && m.state ? (e = m.state).wrap !== 0 && e.mode !== 11 ? i : e.mode === 11 && l(1, T, D, 0) !== e.check ? -3 : et(m, T, D, D) ? (e.mode = 31, -4) : (e.havedict = 1, _) : i;
2065
+ }, w.inflateInfo = "pako inflate (from Nodeca project)";
2066
+ }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(v, L, w) {
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
+ L.exports = function(b, g, _, i, f, r, u, a) {
2069
+ var d, y, S, x, P, O, N, I, H, et = a.bits, m = 0, T = 0, e = 0, D = 0, rt = 0, M = 0, nt = 0, j = 0, V = 0, z = 0, C = null, Q = 0, K = new h.Buf16(16), $ = new h.Buf16(16), ut = null, mt = 0;
2070
+ for (m = 0; m <= 15; m++) K[m] = 0;
2071
+ for (T = 0; T < i; T++) K[g[_ + T]]++;
2072
+ for (rt = et, D = 15; 1 <= D && K[D] === 0; D--) ;
2073
+ if (D < rt && (rt = D), D === 0) return f[r++] = 20971520, f[r++] = 20971520, a.bits = 1, 0;
2074
+ for (e = 1; e < D && K[e] === 0; e++) ;
2075
+ for (rt < e && (rt = e), m = j = 1; m <= 15; m++) if (j <<= 1, (j -= K[m]) < 0) return -1;
2076
+ if (0 < j && (b === 0 || D !== 1)) return -1;
2077
+ for ($[1] = 0, m = 1; m < 15; m++) $[m + 1] = $[m] + K[m];
2078
+ for (T = 0; T < i; T++) g[_ + T] !== 0 && (u[$[g[_ + T]]++] = T);
2079
+ if (O = b === 0 ? (C = ut = u, 19) : b === 1 ? (C = l, Q -= 257, ut = n, mt -= 257, 256) : (C = o, ut = p, -1), m = e, P = r, nt = T = z = 0, S = -1, x = (V = 1 << (M = rt)) - 1, b === 1 && 852 < V || b === 2 && 592 < V) return 1;
2080
+ for (; ; ) {
2081
+ for (N = m - nt, H = u[T] < O ? (I = 0, u[T]) : u[T] > O ? (I = ut[mt + u[T]], C[Q + u[T]]) : (I = 96, 0), d = 1 << m - nt, e = y = 1 << M; f[P + (z >> nt) + (y -= d)] = N << 24 | I << 16 | H | 0, y !== 0; ) ;
2082
+ for (d = 1 << m - 1; z & d; ) d >>= 1;
2083
+ if (d !== 0 ? (z &= d - 1, z += d) : z = 0, T++, --K[m] == 0) {
2084
+ if (m === D) break;
2085
+ m = g[_ + u[T]];
2086
+ }
2087
+ if (rt < m && (z & x) !== S) {
2088
+ for (nt === 0 && (nt = rt), P += e, j = 1 << (M = m - nt); M + nt < D && !((j -= K[M + nt]) <= 0); ) M++, j <<= 1;
2089
+ if (V += 1 << M, b === 1 && 852 < V || b === 2 && 592 < V) return 1;
2090
+ f[S = z & x] = rt << 24 | M << 16 | P - r | 0;
2091
+ }
2092
+ }
2093
+ return z !== 0 && (f[P + z] = m - nt << 24 | 64 << 16 | 0), a.bits = rt, 0;
2094
+ };
2095
+ }, { "../utils/common": 41 }], 51: [function(v, L, w) {
2096
+ L.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
2097
+ }, {}], 52: [function(v, L, w) {
2098
+ var h = v("../utils/common"), l = 0, n = 1;
2099
+ function o(s) {
2100
+ for (var k = s.length; 0 <= --k; ) s[k] = 0;
2101
+ }
2102
+ var p = 0, b = 29, g = 256, _ = g + 1 + b, i = 30, f = 19, r = 2 * _ + 1, u = 15, a = 16, d = 7, y = 256, S = 16, x = 17, P = 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], N = [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], et = new Array(2 * (_ + 2));
2103
+ o(et);
2104
+ var m = new Array(2 * i);
2105
+ o(m);
2106
+ var T = new Array(512);
2107
+ o(T);
2108
+ var e = new Array(256);
2109
+ o(e);
2110
+ var D = new Array(b);
2111
+ o(D);
2112
+ var rt, M, nt, j = new Array(i);
2113
+ function V(s, k, F, U, E) {
2114
+ this.static_tree = s, this.extra_bits = k, this.extra_base = F, this.elems = U, this.max_length = E, this.has_stree = s && s.length;
2115
+ }
2116
+ function z(s, k) {
2117
+ this.dyn_tree = s, this.max_code = 0, this.stat_desc = k;
2118
+ }
2119
+ function C(s) {
2120
+ return s < 256 ? T[s] : T[256 + (s >>> 7)];
2121
+ }
2122
+ function Q(s, k) {
2123
+ s.pending_buf[s.pending++] = 255 & k, s.pending_buf[s.pending++] = k >>> 8 & 255;
2124
+ }
2125
+ function K(s, k, F) {
2126
+ s.bi_valid > a - F ? (s.bi_buf |= k << s.bi_valid & 65535, Q(s, s.bi_buf), s.bi_buf = k >> a - s.bi_valid, s.bi_valid += F - a) : (s.bi_buf |= k << s.bi_valid & 65535, s.bi_valid += F);
2127
+ }
2128
+ function $(s, k, F) {
2129
+ K(s, F[2 * k], F[2 * k + 1]);
2130
+ }
2131
+ function ut(s, k) {
2132
+ for (var F = 0; F |= 1 & s, s >>>= 1, F <<= 1, 0 < --k; ) ;
2133
+ return F >>> 1;
2134
+ }
2135
+ function mt(s, k, F) {
2136
+ var U, E, Z = new Array(u + 1), X = 0;
2137
+ for (U = 1; U <= u; U++) Z[U] = X = X + F[U - 1] << 1;
2138
+ for (E = 0; E <= k; E++) {
2139
+ var G = s[2 * E + 1];
2140
+ G !== 0 && (s[2 * E] = ut(Z[G]++, G));
2141
+ }
2142
+ }
2143
+ function at(s) {
2144
+ var k;
2145
+ for (k = 0; k < _; k++) s.dyn_ltree[2 * k] = 0;
2146
+ for (k = 0; k < i; k++) s.dyn_dtree[2 * k] = 0;
2147
+ for (k = 0; k < f; k++) s.bl_tree[2 * k] = 0;
2148
+ s.dyn_ltree[2 * y] = 1, s.opt_len = s.static_len = 0, s.last_lit = s.matches = 0;
2149
+ }
2150
+ function st(s) {
2151
+ 8 < s.bi_valid ? Q(s, s.bi_buf) : 0 < s.bi_valid && (s.pending_buf[s.pending++] = s.bi_buf), s.bi_buf = 0, s.bi_valid = 0;
2152
+ }
2153
+ function gt(s, k, F, U) {
2154
+ var E = 2 * k, Z = 2 * F;
2155
+ return s[E] < s[Z] || s[E] === s[Z] && U[k] <= U[F];
2156
+ }
2157
+ function ht(s, k, F) {
2158
+ for (var U = s.heap[F], E = F << 1; E <= s.heap_len && (E < s.heap_len && gt(k, s.heap[E + 1], s.heap[E], s.depth) && E++, !gt(k, U, s.heap[E], s.depth)); ) s.heap[F] = s.heap[E], F = E, E <<= 1;
2159
+ s.heap[F] = U;
2160
+ }
2161
+ function vt(s, k, F) {
2162
+ var U, E, Z, X, G = 0;
2163
+ if (s.last_lit !== 0) for (; U = s.pending_buf[s.d_buf + 2 * G] << 8 | s.pending_buf[s.d_buf + 2 * G + 1], E = s.pending_buf[s.l_buf + G], G++, U === 0 ? $(s, E, k) : ($(s, (Z = e[E]) + g + 1, k), (X = O[Z]) !== 0 && K(s, E -= D[Z], X), $(s, Z = C(--U), F), (X = N[Z]) !== 0 && K(s, U -= j[Z], X)), G < s.last_lit; ) ;
2164
+ $(s, y, k);
2165
+ }
2166
+ function yt(s, k) {
2167
+ var F, U, E, Z = k.dyn_tree, X = k.stat_desc.static_tree, G = k.stat_desc.has_stree, tt = k.stat_desc.elems, ot = -1;
2168
+ for (s.heap_len = 0, s.heap_max = r, F = 0; F < tt; F++) Z[2 * F] !== 0 ? (s.heap[++s.heap_len] = ot = F, s.depth[F] = 0) : Z[2 * F + 1] = 0;
2169
+ for (; s.heap_len < 2; ) Z[2 * (E = s.heap[++s.heap_len] = ot < 2 ? ++ot : 0)] = 1, s.depth[E] = 0, s.opt_len--, G && (s.static_len -= X[2 * E + 1]);
2170
+ for (k.max_code = ot, F = s.heap_len >> 1; 1 <= F; F--) ht(s, Z, F);
2171
+ for (E = tt; F = s.heap[1], s.heap[1] = s.heap[s.heap_len--], ht(s, Z, 1), U = s.heap[1], s.heap[--s.heap_max] = F, s.heap[--s.heap_max] = U, Z[2 * E] = Z[2 * F] + Z[2 * U], s.depth[E] = (s.depth[F] >= s.depth[U] ? s.depth[F] : s.depth[U]) + 1, Z[2 * F + 1] = Z[2 * U + 1] = E, s.heap[1] = E++, ht(s, Z, 1), 2 <= s.heap_len; ) ;
2172
+ s.heap[--s.heap_max] = s.heap[1], function(it, wt) {
2173
+ var At, xt, Ct, ct, Ft, Ot, kt = wt.dyn_tree, Mt = wt.max_code, Yt = wt.stat_desc.static_tree, qt = wt.stat_desc.has_stree, Jt = wt.stat_desc.extra_bits, jt = wt.stat_desc.extra_base, Bt = wt.stat_desc.max_length, Rt = 0;
2174
+ for (ct = 0; ct <= u; ct++) it.bl_count[ct] = 0;
2175
+ for (kt[2 * it.heap[it.heap_max] + 1] = 0, At = it.heap_max + 1; At < r; At++) Bt < (ct = kt[2 * kt[2 * (xt = it.heap[At]) + 1] + 1] + 1) && (ct = Bt, Rt++), kt[2 * xt + 1] = ct, Mt < xt || (it.bl_count[ct]++, Ft = 0, jt <= xt && (Ft = Jt[xt - jt]), Ot = kt[2 * xt], it.opt_len += Ot * (ct + Ft), qt && (it.static_len += Ot * (Yt[2 * xt + 1] + Ft)));
2176
+ if (Rt !== 0) {
2177
+ do {
2178
+ for (ct = Bt - 1; it.bl_count[ct] === 0; ) ct--;
2179
+ it.bl_count[ct]--, it.bl_count[ct + 1] += 2, it.bl_count[Bt]--, Rt -= 2;
2180
+ } while (0 < Rt);
2181
+ for (ct = Bt; ct !== 0; ct--) for (xt = it.bl_count[ct]; xt !== 0; ) Mt < (Ct = it.heap[--At]) || (kt[2 * Ct + 1] !== ct && (it.opt_len += (ct - kt[2 * Ct + 1]) * kt[2 * Ct], kt[2 * Ct + 1] = ct), xt--);
2182
+ }
2183
+ }(s, k), mt(Z, ot, s.bl_count);
2184
+ }
2185
+ function t(s, k, F) {
2186
+ var U, E, Z = -1, X = k[1], G = 0, tt = 7, ot = 4;
2187
+ for (X === 0 && (tt = 138, ot = 3), k[2 * (F + 1) + 1] = 65535, U = 0; U <= F; U++) E = X, X = k[2 * (U + 1) + 1], ++G < tt && E === X || (G < ot ? s.bl_tree[2 * E] += G : E !== 0 ? (E !== Z && s.bl_tree[2 * E]++, s.bl_tree[2 * S]++) : G <= 10 ? s.bl_tree[2 * x]++ : s.bl_tree[2 * P]++, Z = E, ot = (G = 0) === X ? (tt = 138, 3) : E === X ? (tt = 6, 3) : (tt = 7, 4));
2188
+ }
2189
+ function R(s, k, F) {
2190
+ var U, E, Z = -1, X = k[1], G = 0, tt = 7, ot = 4;
2191
+ for (X === 0 && (tt = 138, ot = 3), U = 0; U <= F; U++) if (E = X, X = k[2 * (U + 1) + 1], !(++G < tt && E === X)) {
2192
+ if (G < ot) for (; $(s, E, s.bl_tree), --G != 0; ) ;
2193
+ else E !== 0 ? (E !== Z && ($(s, E, s.bl_tree), G--), $(s, S, s.bl_tree), K(s, G - 3, 2)) : G <= 10 ? ($(s, x, s.bl_tree), K(s, G - 3, 3)) : ($(s, P, s.bl_tree), K(s, G - 11, 7));
2194
+ Z = E, ot = (G = 0) === X ? (tt = 138, 3) : E === X ? (tt = 6, 3) : (tt = 7, 4);
2195
+ }
2196
+ }
2197
+ o(j);
2198
+ var A = !1;
2199
+ function c(s, k, F, U) {
2200
+ K(s, (p << 1) + (U ? 1 : 0), 3), function(E, Z, X, G) {
2201
+ st(E), Q(E, X), Q(E, ~X), h.arraySet(E.pending_buf, E.window, Z, X, E.pending), E.pending += X;
2202
+ }(s, k, F);
2203
+ }
2204
+ w._tr_init = function(s) {
2205
+ A || (function() {
2206
+ var k, F, U, E, Z, X = new Array(u + 1);
2207
+ for (E = U = 0; E < b - 1; E++) for (D[E] = U, k = 0; k < 1 << O[E]; k++) e[U++] = E;
2208
+ for (e[U - 1] = E, E = Z = 0; E < 16; E++) for (j[E] = Z, k = 0; k < 1 << N[E]; k++) T[Z++] = E;
2209
+ for (Z >>= 7; E < i; E++) for (j[E] = Z << 7, k = 0; k < 1 << N[E] - 7; k++) T[256 + Z++] = E;
2210
+ for (F = 0; F <= u; F++) X[F] = 0;
2211
+ for (k = 0; k <= 143; ) et[2 * k + 1] = 8, k++, X[8]++;
2212
+ for (; k <= 255; ) et[2 * k + 1] = 9, k++, X[9]++;
2213
+ for (; k <= 279; ) et[2 * k + 1] = 7, k++, X[7]++;
2214
+ for (; k <= 287; ) et[2 * k + 1] = 8, k++, X[8]++;
2215
+ for (mt(et, _ + 1, X), k = 0; k < i; k++) m[2 * k + 1] = 5, m[2 * k] = ut(k, 5);
2216
+ rt = new V(et, O, g + 1, _, u), M = new V(m, N, 0, i, u), nt = new V(new Array(0), I, 0, f, d);
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, at(s);
2218
+ }, w._tr_stored_block = c, w._tr_flush_block = function(s, k, F, U) {
2219
+ var E, Z, X = 0;
2220
+ 0 < s.level ? (s.strm.data_type === 2 && (s.strm.data_type = function(G) {
2221
+ var tt, ot = 4093624447;
2222
+ for (tt = 0; tt <= 31; tt++, ot >>>= 1) if (1 & ot && G.dyn_ltree[2 * tt] !== 0) return l;
2223
+ if (G.dyn_ltree[18] !== 0 || G.dyn_ltree[20] !== 0 || G.dyn_ltree[26] !== 0) return n;
2224
+ for (tt = 32; tt < g; tt++) if (G.dyn_ltree[2 * tt] !== 0) return n;
2225
+ return l;
2226
+ }(s)), yt(s, s.l_desc), yt(s, s.d_desc), X = function(G) {
2227
+ var tt;
2228
+ for (t(G, G.dyn_ltree, G.l_desc.max_code), t(G, G.dyn_dtree, G.d_desc.max_code), yt(G, G.bl_desc), tt = f - 1; 3 <= tt && G.bl_tree[2 * H[tt] + 1] === 0; tt--) ;
2229
+ return G.opt_len += 3 * (tt + 1) + 5 + 5 + 4, tt;
2230
+ }(s), E = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= E && (E = Z)) : E = Z = F + 5, F + 4 <= E && k !== -1 ? c(s, k, F, U) : s.strategy === 4 || Z === E ? (K(s, 2 + (U ? 1 : 0), 3), vt(s, et, m)) : (K(s, 4 + (U ? 1 : 0), 3), function(G, tt, ot, it) {
2231
+ var wt;
2232
+ for (K(G, tt - 257, 5), K(G, ot - 1, 5), K(G, it - 4, 4), wt = 0; wt < it; wt++) K(G, G.bl_tree[2 * H[wt] + 1], 3);
2233
+ R(G, G.dyn_ltree, tt - 1), R(G, G.dyn_dtree, ot - 1);
2234
+ }(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, X + 1), vt(s, s.dyn_ltree, s.dyn_dtree)), at(s), U && st(s);
2235
+ }, w._tr_tally = function(s, k, F) {
2236
+ return s.pending_buf[s.d_buf + 2 * s.last_lit] = k >>> 8 & 255, s.pending_buf[s.d_buf + 2 * s.last_lit + 1] = 255 & k, s.pending_buf[s.l_buf + s.last_lit] = 255 & F, s.last_lit++, k === 0 ? s.dyn_ltree[2 * F]++ : (s.matches++, k--, s.dyn_ltree[2 * (e[F] + g + 1)]++, s.dyn_dtree[2 * C(k)]++), s.last_lit === s.lit_bufsize - 1;
2237
+ }, w._tr_align = function(s) {
2238
+ K(s, 2, 3), $(s, y, et), function(k) {
2239
+ k.bi_valid === 16 ? (Q(k, k.bi_buf), k.bi_buf = 0, k.bi_valid = 0) : 8 <= k.bi_valid && (k.pending_buf[k.pending++] = 255 & k.bi_buf, k.bi_buf >>= 8, k.bi_valid -= 8);
2240
+ }(s);
2241
+ };
2242
+ }, { "../utils/common": 41 }], 53: [function(v, L, w) {
2243
+ L.exports = function() {
2244
+ this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
2245
+ };
2246
+ }, {}], 54: [function(v, L, w) {
2247
+ (function(h) {
2248
+ (function(l, n) {
2249
+ if (!l.setImmediate) {
2250
+ var o, p, b, g, _ = 1, i = {}, f = !1, r = l.document, u = Object.getPrototypeOf && Object.getPrototypeOf(l);
2251
+ u = u && u.setTimeout ? u : l, o = {}.toString.call(l.process) === "[object process]" ? function(S) {
2252
+ process.nextTick(function() {
2253
+ d(S);
2254
+ });
2255
+ } : function() {
2256
+ if (l.postMessage && !l.importScripts) {
2257
+ var S = !0, x = l.onmessage;
2258
+ return l.onmessage = function() {
2259
+ S = !1;
2260
+ }, l.postMessage("", "*"), l.onmessage = x, S;
2261
+ }
2262
+ }() ? (g = "setImmediate$" + Math.random() + "$", l.addEventListener ? l.addEventListener("message", y, !1) : l.attachEvent("onmessage", y), function(S) {
2263
+ l.postMessage(g + S, "*");
2264
+ }) : l.MessageChannel ? ((b = new MessageChannel()).port1.onmessage = function(S) {
2265
+ d(S.data);
2266
+ }, function(S) {
2267
+ b.port2.postMessage(S);
2268
+ }) : r && "onreadystatechange" in r.createElement("script") ? (p = r.documentElement, function(S) {
2269
+ var x = r.createElement("script");
2270
+ x.onreadystatechange = function() {
2271
+ d(S), x.onreadystatechange = null, p.removeChild(x), x = null;
2272
+ }, p.appendChild(x);
2273
+ }) : function(S) {
2274
+ setTimeout(d, 0, S);
2275
+ }, u.setImmediate = function(S) {
2276
+ typeof S != "function" && (S = new Function("" + S));
2277
+ for (var x = new Array(arguments.length - 1), P = 0; P < x.length; P++) x[P] = arguments[P + 1];
2278
+ var O = { callback: S, args: x };
2279
+ return i[_] = O, o(_), _++;
2280
+ }, u.clearImmediate = a;
2281
+ }
2282
+ function a(S) {
2283
+ delete i[S];
2284
+ }
2285
+ function d(S) {
2286
+ if (f) setTimeout(d, 0, S);
2287
+ else {
2288
+ var x = i[S];
2289
+ if (x) {
2290
+ f = !0;
2291
+ try {
2292
+ (function(P) {
2293
+ var O = P.callback, N = P.args;
2294
+ switch (N.length) {
2295
+ case 0:
2296
+ O();
2297
+ break;
2298
+ case 1:
2299
+ O(N[0]);
2300
+ break;
2301
+ case 2:
2302
+ O(N[0], N[1]);
2303
+ break;
2304
+ case 3:
2305
+ O(N[0], N[1], N[2]);
2306
+ break;
2307
+ default:
2308
+ O.apply(n, N);
2309
+ }
2310
+ })(x);
2311
+ } finally {
2312
+ a(S), f = !1;
2313
+ }
2314
+ }
2315
+ }
2316
+ }
2317
+ function y(S) {
2318
+ S.source === l && typeof S.data == "string" && S.data.indexOf(g) === 0 && d(+S.data.slice(g.length));
2319
+ }
2320
+ })(typeof self > "u" ? h === void 0 ? this : h : self);
2321
+ }).call(this, typeof Xt < "u" ? Xt : typeof self < "u" ? self : typeof window < "u" ? window : {});
2322
+ }, {}] }, {}, [10])(10);
2323
+ });
2324
+ })(ve);
2325
+ var Ue = ve.exports;
2326
+ const Me = /* @__PURE__ */ Le(Ue);
2327
+ function ge(_t) {
2328
+ return new Date(_t).getTime();
2329
+ }
2330
+ let ne = null;
2331
+ async function je() {
2332
+ return ne || (ne = (await import("./index-BrI6_G7d.mjs")).fetchFile), ne;
2333
+ }
2334
+ class We {
2335
+ constructor() {
2336
+ Lt(this, "ffmpeg", null);
2337
+ Lt(this, "rawData", null);
2338
+ Lt(this, "format", "mp4");
2339
+ Lt(this, "progressCallback", null);
2340
+ Lt(this, "controller", new AbortController());
2341
+ }
2342
+ setProgressCallback(dt) {
2343
+ this.progressCallback = dt;
2344
+ }
2345
+ updateProgress(dt) {
2346
+ this.progressCallback && this.progressCallback(dt);
2347
+ }
2348
+ async initFFmpeg() {
2349
+ if (!this.ffmpeg) {
2350
+ const { FFmpeg: dt } = await import("./index-D8kRViJr.mjs");
2351
+ this.ffmpeg = new dt();
2352
+ }
2353
+ await this.ffmpeg.load({
2354
+ coreURL: "https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.6/dist/esm/ffmpeg-core.js"
2355
+ });
2356
+ }
2357
+ parseM3u8(dt, v) {
2358
+ const h = dt.replace(/\r\n|\r/g, `
2359
+ `).split(`
2360
+ `).filter((n) => {
2361
+ const o = n.trim();
2362
+ return o.endsWith(".ts") && !o.startsWith("#") && o !== "";
2363
+ }), l = v.substring(0, v.lastIndexOf("/") + 1);
2364
+ return h.map((n) => {
2365
+ const o = n.trim();
2366
+ let p;
2367
+ if (o.startsWith("http"))
2368
+ p = o;
2369
+ else
2370
+ try {
2371
+ p = new URL(o, v).href;
2372
+ } catch {
2373
+ p = l + o;
2374
+ }
2375
+ return p;
2376
+ });
2377
+ }
2378
+ async convertHLSToMP4(dt, v) {
2379
+ v && this.setProgressCallback(v), this.format = "mp4", this.updateProgress(0), await this.initFFmpeg(), this.updateProgress(1);
2380
+ const L = await fetch(dt, {
2381
+ signal: this.controller.signal
2382
+ });
2383
+ if (!L.ok)
2384
+ throw new Error(`Failed to fetch m3u8: ${L.status}`);
2385
+ const w = await L.text(), h = this.parseM3u8(w, dt);
2386
+ if (h.length === 0)
2387
+ throw new Error("No TS segments found in the m3u8 file");
2388
+ let l = 0;
2389
+ const n = h.length, o = await Promise.all(
2390
+ h.map(async (b, g) => {
2391
+ const i = await (await je())(b), f = `segment_${g}.ts`;
2392
+ return await this.ffmpeg.writeFile(f, i), l++, this.updateProgress(`${Math.floor(l / n * 100)}`), f;
2393
+ })
2394
+ );
2395
+ let p = w;
2396
+ return h.forEach((b, g) => {
2397
+ const _ = b.split("/").pop() || "";
2398
+ p = p.replace(_, o[g]);
2399
+ }), await this.ffmpeg.writeFile("input.m3u8", p), await this.ffmpeg.exec([
2400
+ "-protocol_whitelist",
2401
+ "file,http,https,tcp,tls",
2402
+ "-i",
2403
+ "input.m3u8",
2404
+ "-c",
2405
+ "copy",
2406
+ "-movflags",
2407
+ "+faststart",
2408
+ "output.mp4"
2409
+ ]), this.rawData = await this.ffmpeg.readFile("output.mp4"), this.updateProgress(100), await Promise.all(o.map((b) => this.ffmpeg.deleteFile(b))), await this.ffmpeg.deleteFile("input.m3u8"), await this.ffmpeg.deleteFile("output.mp4"), this.rawData;
2410
+ }
2411
+ getMp4File() {
2412
+ return this.rawData;
2413
+ }
2414
+ getController() {
2415
+ return this.controller;
2416
+ }
2417
+ }
2418
+ const Ze = {
2419
+ key: 0,
2420
+ class: "error-overlay"
2421
+ }, He = ["src"], Ge = {
2422
+ key: 2,
2423
+ class: "buffering-overlay"
2424
+ }, $e = { class: "center-play-btn" }, Ke = { class: "time-current" }, Xe = { class: "time-total" }, Ve = { class: "progress-track-container" }, Ye = { class: "progress-track virtual" }, qe = { class: "time-current" }, Je = { class: "time-total" }, Qe = ["onClick"], tr = {
2425
+ key: 0,
2426
+ class: "download-progress"
2427
+ }, er = { class: "tip" }, rr = { class: "tip-r" }, nr = { class: "tip-title" }, _e = 3, ir = /* @__PURE__ */ De({
2428
+ __name: "ImageDisplayVideo",
2429
+ props: {
2430
+ videoList: {},
2431
+ dialogWidth: {},
2432
+ dialogHeight: {}
2433
+ },
2434
+ setup(_t, { expose: dt }) {
2435
+ const { t: v } = Ie(), L = Be(), w = _t, h = Nt(() => {
2436
+ const B = le(w.videoList[0].startTime, !1, { time: !0, second: !0 }), W = le(w.videoList[w.videoList.length - 1].endTime, !1, { time: !0, second: !0 });
2437
+ return console.log("start", B, "end", W), B !== W ? `${B} ~ ${W}` : `${B}`;
2438
+ }), l = Nt(() => {
2439
+ const B = new Date(w.videoList[w.videoList.length - 1].endTime).getTime() - new Date(w.videoList[0].startTime).getTime(), W = Te(B);
2440
+ return W !== "0s" ? W : "1s";
2441
+ }), n = pt(null), o = pt(null);
2442
+ let p = null;
2443
+ const b = pt(0), g = pt(0), _ = pt(0), i = pt(!1), f = pt(1), r = pt(!1), u = pt(!0), a = pt(!0), d = pt(!1), y = pt(!1), S = pt(!1), x = pt(!1), P = pt(0), O = pt([]), N = pt(0), I = pt(!1), H = pt(0), et = pt(0);
2444
+ let m = null, T = null, e = null, D = null, rt = !1, M = !1;
2445
+ const nt = /* @__PURE__ */ new Set(), j = pt(0);
2446
+ let V = null;
2447
+ const z = () => {
2448
+ const B = w.videoList;
2449
+ if (!(B != null && B.length)) {
2450
+ O.value = [], N.value = 0;
2451
+ return;
2452
+ }
2453
+ let W = 0;
2454
+ const q = [];
2455
+ B.forEach((Y, J) => {
2456
+ const ft = Y.duration || 0;
2457
+ if (q.push({
2458
+ videoUrl: Y.media,
2459
+ start: W,
2460
+ duration: ft,
2461
+ end: W + ft,
2462
+ gapDuration: 0,
2463
+ isGap: !1
2464
+ }), W += ft, J < B.length - 1) {
2465
+ const bt = (ge(B[J + 1].startTime) - ge(Y.endTime)) / 1e3;
2466
+ bt > 0 && (q.push({
2467
+ videoUrl: "",
2468
+ start: W,
2469
+ duration: bt,
2470
+ end: W + bt,
2471
+ gapDuration: 0,
2472
+ isGap: !0
2473
+ }), W += bt);
2474
+ }
2475
+ }), O.value = q, N.value = W;
2476
+ }, C = [1, 2, 4, 8], Q = Nt(() => O.value.filter((B) => !B.isGap)), K = Nt(() => {
2477
+ var B, W;
2478
+ return ((W = (B = w.videoList) == null ? void 0 : B[g.value]) == null ? void 0 : W.thumb) || "";
2479
+ }), $ = Nt(() => {
2480
+ if (N.value === 0 || !j.value) return 0;
2481
+ const B = at(_.value);
2482
+ return Math.max(0, Math.min(100, B / j.value * 100));
2483
+ }), ut = (B) => {
2484
+ const W = Math.max(0, B || 0), q = Math.floor(W / 3600), Y = Math.floor(W % 3600 / 60), J = Math.floor(W % 60);
2485
+ return q > 0 ? `${String(q).padStart(2, "0")}:${String(Y).padStart(2, "0")}:${String(J).padStart(2, "0")}` : `${String(Y).padStart(2, "0")}:${String(J).padStart(2, "0")}`;
2486
+ }, mt = () => {
2487
+ const B = O.value, W = j.value || 1, q = B.length;
2488
+ if (!q || !W) return [];
2489
+ const Y = N.value || 1, J = (q - 1) * _e, ft = Math.max(0, W - J), bt = [];
2490
+ let Et = 0;
2491
+ for (let Pt = 0; Pt < q; Pt++) {
2492
+ const Wt = Y > 0 ? B[Pt].duration / Y * ft : 0;
2493
+ bt.push({ leftPx: Et, widthPx: Wt }), Et += Wt + _e;
2494
+ }
2495
+ return bt;
2496
+ }, at = (B) => {
2497
+ const W = O.value, q = mt();
2498
+ for (let Y = 0; Y < W.length; Y++) {
2499
+ const J = W[Y];
2500
+ if (B >= J.start && B < J.end) {
2501
+ const ft = J.duration ? (B - J.start) / J.duration : 0;
2502
+ return q[Y].leftPx + ft * q[Y].widthPx;
2503
+ }
2504
+ }
2505
+ if (q.length) {
2506
+ const Y = q[q.length - 1];
2507
+ return Y.leftPx + Y.widthPx;
2508
+ }
2509
+ return 0;
2510
+ }, st = (B) => {
2511
+ const W = O.value, q = mt();
2512
+ for (let Y = 0; Y < q.length; Y++) {
2513
+ const J = q[Y];
2514
+ if (B >= J.leftPx && B <= J.leftPx + J.widthPx) {
2515
+ const ft = J.widthPx ? (B - J.leftPx) / J.widthPx : 0;
2516
+ return W[Y].start + ft * W[Y].duration;
2517
+ }
2518
+ }
2519
+ if (q.length) {
2520
+ const Y = q[q.length - 1];
2521
+ if (B > Y.leftPx + Y.widthPx) return W[W.length - 1].end;
2522
+ for (let J = 0; J < q.length; J++)
2523
+ if (B <= q[J].leftPx) return W[J].start;
2524
+ }
2525
+ return 0;
2526
+ }, gt = (B, W) => {
2527
+ const q = j.value || 1, J = mt()[W] || { leftPx: 0, widthPx: 0 };
2528
+ return {
2529
+ left: `${J.leftPx / q * 100}%`,
2530
+ width: `${J.widthPx / q * 100}%`
2531
+ };
2532
+ }, ht = (B) => {
2533
+ const W = Q.value;
2534
+ if (!W.length) return { index: 0, local: 0 };
2535
+ for (let Y = 0; Y < W.length; Y++)
2536
+ if (B >= W[Y].start && B <= W[Y].end)
2537
+ return { index: Y, local: B - W[Y].start };
2538
+ for (let Y = 0; Y < W.length; Y++)
2539
+ if (B < W[Y].start) return { index: Y, local: 0 };
2540
+ const q = W[W.length - 1];
2541
+ return { index: W.length - 1, local: q.duration - 0.05 };
2542
+ }, vt = () => (p == null ? void 0 : p.media) || null, yt = () => {
2543
+ const B = vt();
2544
+ B && (B.addEventListener("timeupdate", X), B.addEventListener("ended", G), B.addEventListener("canplay", tt), B.addEventListener("waiting", ot), B.addEventListener("playing", it), B.addEventListener("pause", wt), B.addEventListener("error", At));
2545
+ }, t = () => {
2546
+ const B = vt();
2547
+ B && (B.removeEventListener("timeupdate", X), B.removeEventListener("ended", G), B.removeEventListener("canplay", tt), B.removeEventListener("waiting", ot), B.removeEventListener("playing", it), B.removeEventListener("pause", wt), B.removeEventListener("error", At));
2548
+ }, R = (B) => {
2549
+ if (p)
2550
+ try {
2551
+ return p.switchURL(B);
2552
+ } catch {
2553
+ return r.value = !0, null;
2554
+ }
2555
+ else
2556
+ return me.isSupported() ? (p = new Ne({
2557
+ el: n.value,
2558
+ url: B,
2559
+ width: "100%",
2560
+ height: "100%",
2561
+ isLive: !1,
2562
+ autoplay: !1,
2563
+ controls: !1,
2564
+ plugins: [me],
2565
+ // 隐藏 xgplayer 默认 UI,仅作为播放内核
2566
+ videoFillMode: "fill",
2567
+ fitVideoSize: "auto",
2568
+ cssFullscreen: !1,
2569
+ fullscreen: !1,
2570
+ keyboard: !1,
2571
+ playsinline: !0
2572
+ }), yt(), p.on("loadedmetadata", () => {
2573
+ s();
2574
+ }), p.on("error", () => {
2575
+ r.value = !0;
2576
+ }), null) : (r.value = !0, null);
2577
+ }, A = () => {
2578
+ t(), p && (p.destroy(), p = null);
2579
+ }, c = () => {
2580
+ const B = vt();
2581
+ B && B.playbackRate !== f.value && (B.playbackRate = f.value);
2582
+ }, s = () => {
2583
+ const B = vt();
2584
+ if (B && (c(), e != null)) {
2585
+ const W = Q.value[b.value], q = W == null ? void 0 : W.duration, Y = e;
2586
+ B.currentTime = q && isFinite(Y) ? Math.max(0, Math.min(Y, q - 0.05)) : Math.max(0, Y), e = null;
2587
+ }
2588
+ }, k = () => {
2589
+ const B = D;
2590
+ B !== null && (D = null, B ? p == null || p.play().catch(() => {
2591
+ }) : p && !p.paused && p.pause());
2592
+ }, F = (B, W, q) => {
2593
+ const Y = Q.value[B];
2594
+ if (!Y) return;
2595
+ b.value = B, g.value = B, Z = !1, e = Math.max(0, W), D = q, a.value = !0, d.value = !0, rt = !0;
2596
+ const J = R(Y.videoUrl);
2597
+ J && J.then(() => {
2598
+ rt = !1, s(), k();
2599
+ }).catch(() => {
2600
+ rt = !1;
2601
+ });
2602
+ }, U = () => {
2603
+ const B = vt();
2604
+ if (B) {
2605
+ if (_.value >= N.value - 0.05) {
2606
+ _.value = 0, F(0, 0, !0);
2607
+ return;
2608
+ }
2609
+ B.paused ? p == null || p.play().then(() => {
2610
+ i.value = !0, a.value = !1, Ct();
2611
+ }).catch(() => {
2612
+ }) : (p == null || p.pause(), i.value = !1, u.value = !0);
2613
+ }
2614
+ };
2615
+ let E = 0, Z = !1;
2616
+ const X = () => {
2617
+ var q;
2618
+ if (S.value) return;
2619
+ const B = vt(), W = Q.value[b.value];
2620
+ if (B && W) {
2621
+ const Y = W.end, J = W.start + B.currentTime;
2622
+ _.value = Math.max(W.start, Math.min(J, Y));
2623
+ const ft = Date.now();
2624
+ ft - E >= 1e3 && (E = ft, console.log("[Progress]", {
2625
+ index: b.value,
2626
+ currentTime: Number(B.currentTime.toFixed(2)),
2627
+ videoDuration: Number((q = B.duration) == null ? void 0 : q.toFixed(2)),
2628
+ segStart: Number(W.start.toFixed(2)),
2629
+ segEnd: Number(W.end.toFixed(2)),
2630
+ globalTime: Number(_.value.toFixed(2)),
2631
+ totalDuration: Number(N.value.toFixed(2)),
2632
+ metaDurations: w.videoList.map((Et) => Et.duration)
2633
+ }));
2634
+ const bt = W.duration;
2635
+ B.currentTime >= bt - 0.1 && !Z && (Z = !0, G());
2636
+ }
2637
+ }, G = () => {
2638
+ const B = Q.value[b.value];
2639
+ B && (_.value = B.end), b.value < Q.value.length - 1 ? F(b.value + 1, 0, !0) : (i.value = !1, u.value = !0, a.value = !0);
2640
+ }, tt = () => {
2641
+ r.value = !1, d.value = !1, s(), rt || k();
2642
+ }, ot = () => {
2643
+ d.value = !0;
2644
+ }, it = () => {
2645
+ d.value = !1, i.value = !0, a.value = !1, Ct();
2646
+ }, wt = () => {
2647
+ d.value = !1, i.value = !1, u.value = !0;
2648
+ }, At = () => {
2649
+ r.value = !0, a.value = !1;
2650
+ }, xt = () => {
2651
+ r.value = !1, Q.value[b.value] && F(b.value, 0, !1);
2652
+ }, Ct = () => {
2653
+ u.value = !0, m && clearTimeout(m), m = setTimeout(() => {
2654
+ i.value && !y.value && (u.value = !1);
2655
+ }, 1500);
2656
+ }, ct = () => {
2657
+ y.value = !0, i.value && (u.value = !0, m && clearTimeout(m));
2658
+ }, Ft = () => {
2659
+ y.value = !1, i.value && Ct();
2660
+ }, Ot = (B) => {
2661
+ const W = o.value;
2662
+ if (!W) return 0;
2663
+ const q = W.getBoundingClientRect();
2664
+ return Math.max(0, Math.min(1, (B - q.left) / q.width)) * 100;
2665
+ }, kt = (B) => {
2666
+ const W = B / 100 * (j.value || 1);
2667
+ return st(W);
2668
+ }, Mt = (B) => {
2669
+ const W = kt(B), q = ht(W), Y = Q.value[q.index];
2670
+ if (!Y) return;
2671
+ _.value = Y.start + q.local;
2672
+ const J = vt();
2673
+ if (J && q.index === b.value) {
2674
+ J.currentTime = q.local;
2675
+ return;
2676
+ }
2677
+ F(q.index, q.local, i.value);
2678
+ }, Yt = (B) => {
2679
+ if (B.preventDefault(), !o.value) return;
2680
+ S.value = !0, I.value = !0;
2681
+ const W = (Y) => {
2682
+ T || (T = setTimeout(() => {
2683
+ var Et;
2684
+ T = null;
2685
+ const J = Ot(Y.clientX), ft = kt(J);
2686
+ et.value = J, H.value = Math.max(0, Math.min(ft, N.value - 0.05));
2687
+ const bt = ht(ft);
2688
+ _.value = ((Et = Q.value[bt.index]) == null ? void 0 : Et.start) + bt.local;
2689
+ }, 30));
2690
+ }, q = (Y) => {
2691
+ S.value = !1, I.value = !1, T && (clearTimeout(T), T = null), document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", q), Mt(Ot(Y.clientX));
2692
+ };
2693
+ document.addEventListener("mousemove", W), document.addEventListener("mouseup", q);
2694
+ }, qt = (B) => {
2695
+ const W = Ot(B.clientX);
2696
+ et.value = W, H.value = Math.max(0, Math.min(kt(W), N.value - 0.05)), I.value = !0;
2697
+ }, Jt = () => {
2698
+ S.value || (I.value = !1);
2699
+ }, jt = () => {
2700
+ S.value || (I.value = !1);
2701
+ }, Bt = () => {
2702
+ et.value = $.value, H.value = Math.max(0, Math.min(_.value, N.value - 0.05)), I.value = !0;
2703
+ }, Rt = () => {
2704
+ V == null || V.abort();
2705
+ }, ie = (B, W) => {
2706
+ const q = URL.createObjectURL(B), Y = document.createElement("a");
2707
+ Y.href = q, Y.download = W, Y.click(), URL.revokeObjectURL(q);
2708
+ }, be = async () => {
2709
+ var q, Y;
2710
+ if (x.value) return;
2711
+ V == null || V.abort(), V = new AbortController(), x.value = !0, P.value = 0;
2712
+ const B = [], W = () => {
2713
+ B.forEach((J) => J.getController().abort());
2714
+ };
2715
+ V.signal.addEventListener("abort", W);
2716
+ try {
2717
+ const J = w.videoList, ft = (q = J == null ? void 0 : J[0]) == null ? void 0 : q.deviceId, bt = ((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), Wt = async (Zt, te) => {
2718
+ const Ht = new We();
2719
+ B.push(Ht), Ht.setProgressCallback((xe) => {
2720
+ Pt[te] = Number(xe) || 0, P.value = Math.round(
2721
+ Pt.reduce((Se, Ee) => Se + Ee, 0) / Et
2722
+ );
2723
+ }), await Ht.convertHLSToMP4(Zt.media);
2724
+ const oe = Ht.getMp4File();
2725
+ if (!oe) throw new Error("No video data");
2726
+ return new Blob([oe.buffer], { type: "video/mp4" });
2727
+ }, ae = await Promise.all(J.map(Wt));
2728
+ if (V != null && V.signal.aborted) throw new Error("Download aborted");
2729
+ if (Et === 1) {
2730
+ ie(ae[0], `${ft} (${bt}).mp4`);
2731
+ return;
2732
+ }
2733
+ const se = new Me(), ye = se.folder(`${ft} (${bt}).mp4`);
2734
+ J.forEach((Zt, te) => {
2735
+ ye.file(`${Zt.deviceId} (${Zt.startTime}).mp4`, ae[te]);
2736
+ });
2737
+ const ke = await se.generateAsync({ type: "blob" });
2738
+ ie(ke, `${ft} (${bt}).zip`);
2739
+ } catch (J) {
2740
+ if (V != null && V.signal.aborted) {
2741
+ console.log("[Download] cancelled");
2742
+ return;
2743
+ }
2744
+ console.error("[Download]", J), L.error(v("downloadFailed"));
2745
+ } finally {
2746
+ V == null || V.signal.removeEventListener("abort", W), V = null, x.value = !1;
2747
+ }
2748
+ };
2749
+ dt({ abortDownload: Rt });
2750
+ const we = () => {
2751
+ var B;
2752
+ (B = w.videoList) == null || B.forEach((W) => {
2753
+ if (!W.thumb || nt.has(W.thumb)) return;
2754
+ nt.add(W.thumb);
2755
+ const q = new Image();
2756
+ q.src = W.thumb;
2757
+ });
2758
+ };
2759
+ he(() => w.videoList, (B) => {
2760
+ B != null && B.length && (z(), we(), b.value = 0, _.value = 0, i.value = !1, u.value = !0, a.value = !0, r.value = !1, p ? F(0, 0, !1) : M = !0);
2761
+ }, { immediate: !0 }), Fe(() => {
2762
+ var B;
2763
+ Qt(), window.addEventListener("resize", Qt), M && ((B = w.videoList) != null && B.length) && (M = !1, F(0, 0, !1));
2764
+ });
2765
+ const Qt = () => {
2766
+ const B = o.value;
2767
+ B && (j.value = B.getBoundingClientRect().width);
2768
+ };
2769
+ return he(f, () => {
2770
+ c();
2771
+ }), Pe(() => {
2772
+ Rt(), m && clearTimeout(m), T && clearTimeout(T), window.removeEventListener("resize", Qt), A();
2773
+ }), (B, W) => {
2774
+ const q = Oe, Y = Ae;
2775
+ return It(), Tt("div", {
2776
+ class: "video-viewport",
2777
+ style: Ut({ width: _t.dialogWidth + "px", height: _t.dialogHeight + "px" }),
2778
+ onMouseenter: ct,
2779
+ onMouseleave: Ft
2780
+ }, [
2781
+ lt("div", {
2782
+ ref_key: "playerContainerRef",
2783
+ ref: n,
2784
+ class: "xgplayer-container"
2785
+ }, null, 512),
2786
+ r.value ? (It(), Tt("div", Ze, [
2787
+ lt("p", null, St(Gt(v)("videoLoadFailed")), 1),
2788
+ lt("button", { onClick: xt }, St(Gt(v)("retry")), 1)
2789
+ ])) : $t("", !0),
2790
+ a.value && K.value ? (It(), Tt("img", {
2791
+ key: 1,
2792
+ class: "video-cover",
2793
+ src: K.value,
2794
+ alt: ""
2795
+ }, null, 8, He)) : $t("", !0),
2796
+ d.value ? (It(), Tt("div", Ge, [
2797
+ zt(ue, {
2798
+ white: !0,
2799
+ loading: !0
2800
+ })
2801
+ ])) : $t("", !0),
2802
+ lt("div", {
2803
+ class: "center-play-overlay",
2804
+ onClick: U
2805
+ }, [
2806
+ zt(ce, { name: "fade" }, {
2807
+ default: Kt(() => [
2808
+ ee(lt("div", $e, [
2809
+ zt(q, {
2810
+ name: i.value ? "stopPlay" : "play",
2811
+ "font-size": "48",
2812
+ color: "#fff"
2813
+ }, null, 8, ["name"])
2814
+ ], 512), [
2815
+ [re, u.value]
2816
+ ])
2817
+ ]),
2818
+ _: 1
2819
+ }),
2820
+ zt(ce, { name: "fade" }, {
2821
+ default: Kt(() => [
2822
+ ee(lt("div", {
2823
+ class: "center-time",
2824
+ onClick: W[0] || (W[0] = Dt(() => {
2825
+ }, ["stop"]))
2826
+ }, [
2827
+ lt("span", Ke, St(ut(_.value)), 1),
2828
+ W[3] || (W[3] = lt("span", { class: "time-sep" }, "/", -1)),
2829
+ lt("span", Xe, St(ut(N.value)), 1)
2830
+ ], 512), [
2831
+ [re, u.value]
2832
+ ])
2833
+ ]),
2834
+ _: 1
2835
+ })
2836
+ ]),
2837
+ lt("div", {
2838
+ class: "bottom-controls",
2839
+ onClick: W[2] || (W[2] = Dt(() => {
2840
+ }, ["stop"]))
2841
+ }, [
2842
+ lt("div", {
2843
+ class: "progress-container",
2844
+ style: Ut({ width: _t.dialogWidth - 500 + "px" })
2845
+ }, [
2846
+ lt("div", Ve, [
2847
+ lt("div", Ye, [
2848
+ ee(lt("div", {
2849
+ class: "thumb-time",
2850
+ style: Ut({ left: et.value + "%" })
2851
+ }, [
2852
+ lt("span", qe, St(ut(H.value)), 1),
2853
+ W[4] || (W[4] = lt("span", { class: "time-sep" }, "/", -1)),
2854
+ lt("span", Je, St(ut(N.value)), 1)
2855
+ ], 4), [
2856
+ [re, I.value]
2857
+ ])
2858
+ ]),
2859
+ lt("div", {
2860
+ class: "progress-track",
2861
+ ref_key: "trackRef",
2862
+ ref: o,
2863
+ onMousedown: Yt,
2864
+ onMousemove: qt,
2865
+ onMouseleave: Jt
2866
+ }, [
2867
+ (It(!0), Tt(fe, null, de(O.value, (J, ft) => (It(), Tt("div", {
2868
+ key: ft,
2869
+ class: pe(["progress-segment", { gap: J.isGap }]),
2870
+ style: Ut(gt(J, ft))
2871
+ }, null, 6))), 128)),
2872
+ lt("div", {
2873
+ class: "progress-thumb",
2874
+ style: Ut({ left: $.value + "%" }),
2875
+ onMousemove: Dt(Bt, ["stop"]),
2876
+ onMouseleave: Dt(jt, ["stop"])
2877
+ }, [
2878
+ zt(q, {
2879
+ name: "thumb-dot",
2880
+ "font-size": "13",
2881
+ color: "#fff"
2882
+ })
2883
+ ], 36)
2884
+ ], 544)
2885
+ ]),
2886
+ lt("div", {
2887
+ class: "speed-selector",
2888
+ onClick: W[1] || (W[1] = Dt(() => {
2889
+ }, ["stop"]))
2890
+ }, [
2891
+ (It(), Tt(fe, null, de(C, (J) => lt("span", {
2892
+ key: J,
2893
+ class: pe(["speed-text", { active: f.value === J }]),
2894
+ onClick: Dt((ft) => f.value = J, ["stop"])
2895
+ }, "X" + St(J), 11, Qe)), 64))
2896
+ ])
2897
+ ], 4)
2898
+ ]),
2899
+ lt("div", {
2900
+ class: "download",
2901
+ onClick: Dt(be, ["stop"])
2902
+ }, [
2903
+ zt(Y, {
2904
+ loading: x.value,
2905
+ type: "primary",
2906
+ size: "default"
2907
+ }, {
2908
+ loading: Kt(() => [
2909
+ zt(ue, {
2910
+ white: !0,
2911
+ loading: x.value
2912
+ }, null, 8, ["loading"])
2913
+ ]),
2914
+ default: Kt(() => [
2915
+ zt(q, {
2916
+ name: "cargoCam-iconDownload",
2917
+ "font-size": "24",
2918
+ inert: "",
2919
+ tabindex: "-1"
2920
+ }),
2921
+ x.value ? (It(), Tt("span", tr, St(Math.round(P.value)) + "%", 1)) : $t("", !0)
2922
+ ]),
2923
+ _: 1
2924
+ }, 8, ["loading"])
2925
+ ]),
2926
+ lt("div", er, [
2927
+ zt(q, {
2928
+ name: "loadingUnloading",
2929
+ "font-size": "24"
2930
+ }),
2931
+ lt("div", rr, [
2932
+ lt("span", nr, St(Gt(v)("loadingUnloading")), 1),
2933
+ lt("span", null, St(Gt(v)("duration")) + ":" + St(l.value), 1),
2934
+ lt("span", null, St(h.value), 1)
2935
+ ])
2936
+ ])
2937
+ ], 36);
2938
+ };
2939
+ }
2940
+ }), fr = /* @__PURE__ */ Re(ir, [["__scopeId", "data-v-c3052b25"]]);
2941
+ export {
2942
+ fr as default
2943
+ };