christy-richtext 1.0.0

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,3921 @@
1
+ import { i as e, n as t, t as n } from "./christy-richtext.js";
2
+ //#region node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.js
3
+ function r(e) {
4
+ var t = e.length;
5
+ if (t % 4 > 0) throw Error("Invalid string. Length must be a multiple of 4");
6
+ var n = e.indexOf("=");
7
+ n === -1 && (n = t);
8
+ var r = n === t ? 0 : 4 - n % 4;
9
+ return [n, r];
10
+ }
11
+ function i(e) {
12
+ var t = r(e), n = t[0], i = t[1];
13
+ return (n + i) * 3 / 4 - i;
14
+ }
15
+ function a(e, t, n) {
16
+ return (t + n) * 3 / 4 - n;
17
+ }
18
+ function o(e) {
19
+ var t, n = r(e), i = n[0], o = n[1], s = new m(a(e, i, o)), c = 0, l = o > 0 ? i - 4 : i, u;
20
+ for (u = 0; u < l; u += 4) t = p[e.charCodeAt(u)] << 18 | p[e.charCodeAt(u + 1)] << 12 | p[e.charCodeAt(u + 2)] << 6 | p[e.charCodeAt(u + 3)], s[c++] = t >> 16 & 255, s[c++] = t >> 8 & 255, s[c++] = t & 255;
21
+ return o === 2 && (t = p[e.charCodeAt(u)] << 2 | p[e.charCodeAt(u + 1)] >> 4, s[c++] = t & 255), o === 1 && (t = p[e.charCodeAt(u)] << 10 | p[e.charCodeAt(u + 1)] << 4 | p[e.charCodeAt(u + 2)] >> 2, s[c++] = t >> 8 & 255, s[c++] = t & 255), s;
22
+ }
23
+ function s(e) {
24
+ return f[e >> 18 & 63] + f[e >> 12 & 63] + f[e >> 6 & 63] + f[e & 63];
25
+ }
26
+ function c(e, t, n) {
27
+ for (var r, i = [], a = t; a < n; a += 3) r = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (e[a + 2] & 255), i.push(s(r));
28
+ return i.join("");
29
+ }
30
+ function l(e) {
31
+ for (var t, n = e.length, r = n % 3, i = [], a = 16383, o = 0, s = n - r; o < s; o += a) i.push(c(e, o, o + a > s ? s : o + a));
32
+ return r === 1 ? (t = e[n - 1], i.push(f[t >> 2] + f[t << 4 & 63] + "==")) : r === 2 && (t = (e[n - 2] << 8) + e[n - 1], i.push(f[t >> 10] + f[t >> 4 & 63] + f[t << 2 & 63] + "=")), i.join("");
33
+ }
34
+ var u, d, f, p, m, h, g, _, v, y, b = t((() => {
35
+ for (u = {}, d = {}, d.byteLength = i, d.toByteArray = o, d.fromByteArray = l, f = [], p = [], m = typeof Uint8Array < "u" ? Uint8Array : Array, h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", g = 0, _ = h.length; g < _; ++g) f[g] = h[g], p[h.charCodeAt(g)] = g;
36
+ p[45] = 62, p[95] = 63, v = {}, v.read = function(e, t, n, r, i) {
37
+ var a, o, s = i * 8 - r - 1, c = (1 << s) - 1, l = c >> 1, u = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, p = e[t + d];
38
+ for (d += f, a = p & (1 << -u) - 1, p >>= -u, u += s; u > 0; a = a * 256 + e[t + d], d += f, u -= 8);
39
+ for (o = a & (1 << -u) - 1, a >>= -u, u += r; u > 0; o = o * 256 + e[t + d], d += f, u -= 8);
40
+ if (a === 0) a = 1 - l;
41
+ else if (a === c) return o ? NaN : (p ? -1 : 1) * Infinity;
42
+ else o += 2 ** r, a -= l;
43
+ return (p ? -1 : 1) * o * 2 ** (a - r);
44
+ }, v.write = function(e, t, n, r, i, a) {
45
+ var o, s, c, l = a * 8 - i - 1, u = (1 << l) - 1, d = u >> 1, f = i === 23 ? 2 ** -24 - 2 ** -77 : 0, p = r ? 0 : a - 1, m = r ? 1 : -1, h = +(t < 0 || t === 0 && 1 / t < 0);
46
+ for (t = Math.abs(t), isNaN(t) || t === Infinity ? (s = +!!isNaN(t), o = u) : (o = Math.floor(Math.log(t) / Math.LN2), t * (c = 2 ** -o) < 1 && (o--, c *= 2), o + d >= 1 ? t += f / c : t += f * 2 ** (1 - d), t * c >= 2 && (o++, c /= 2), o + d >= u ? (s = 0, o = u) : o + d >= 1 ? (s = (t * c - 1) * 2 ** i, o += d) : (s = t * 2 ** (d - 1) * 2 ** i, o = 0)); i >= 8; e[n + p] = s & 255, p += m, s /= 256, i -= 8);
47
+ for (o = o << i | s, l += i; l > 0; e[n + p] = o & 255, p += m, o /= 256, l -= 8);
48
+ e[n + p - m] |= h * 128;
49
+ }, (function(e) {
50
+ let t = d, n = v, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
51
+ e.Buffer = u, e.SlowBuffer = C, e.INSPECT_MAX_BYTES = 50;
52
+ let i = 2147483647;
53
+ e.kMaxLength = i;
54
+ let { Uint8Array: a, ArrayBuffer: o, SharedArrayBuffer: s } = globalThis;
55
+ u.TYPED_ARRAY_SUPPORT = c(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
56
+ function c() {
57
+ try {
58
+ let e = new a(1), t = { foo: function() {
59
+ return 42;
60
+ } };
61
+ return Object.setPrototypeOf(t, a.prototype), Object.setPrototypeOf(e, t), e.foo() === 42;
62
+ } catch {
63
+ return !1;
64
+ }
65
+ }
66
+ Object.defineProperty(u.prototype, "parent", {
67
+ enumerable: !0,
68
+ get: function() {
69
+ if (u.isBuffer(this)) return this.buffer;
70
+ }
71
+ }), Object.defineProperty(u.prototype, "offset", {
72
+ enumerable: !0,
73
+ get: function() {
74
+ if (u.isBuffer(this)) return this.byteOffset;
75
+ }
76
+ });
77
+ function l(e) {
78
+ if (e > i) throw RangeError("The value \"" + e + "\" is invalid for option \"size\"");
79
+ let t = new a(e);
80
+ return Object.setPrototypeOf(t, u.prototype), t;
81
+ }
82
+ function u(e, t, n) {
83
+ if (typeof e == "number") {
84
+ if (typeof t == "string") throw TypeError("The \"string\" argument must be of type string. Received type number");
85
+ return h(e);
86
+ }
87
+ return f(e, t, n);
88
+ }
89
+ u.poolSize = 8192;
90
+ function f(e, t, n) {
91
+ if (typeof e == "string") return g(e, t);
92
+ if (o.isView(e)) return y(e);
93
+ if (e == null) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
94
+ if (Q(e, o) || e && Q(e.buffer, o) || s !== void 0 && (Q(e, s) || e && Q(e.buffer, s))) return b(e, t, n);
95
+ if (typeof e == "number") throw TypeError("The \"value\" argument must not be of type number. Received type number");
96
+ let r = e.valueOf && e.valueOf();
97
+ if (r != null && r !== e) return u.from(r, t, n);
98
+ let i = x(e);
99
+ if (i) return i;
100
+ if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof e[Symbol.toPrimitive] == "function") return u.from(e[Symbol.toPrimitive]("string"), t, n);
101
+ throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
102
+ }
103
+ u.from = function(e, t, n) {
104
+ return f(e, t, n);
105
+ }, Object.setPrototypeOf(u.prototype, a.prototype), Object.setPrototypeOf(u, a);
106
+ function p(e) {
107
+ if (typeof e != "number") throw TypeError("\"size\" argument must be of type number");
108
+ if (e < 0) throw RangeError("The value \"" + e + "\" is invalid for option \"size\"");
109
+ }
110
+ function m(e, t, n) {
111
+ return p(e), e <= 0 || t === void 0 ? l(e) : typeof n == "string" ? l(e).fill(t, n) : l(e).fill(t);
112
+ }
113
+ u.alloc = function(e, t, n) {
114
+ return m(e, t, n);
115
+ };
116
+ function h(e) {
117
+ return p(e), l(e < 0 ? 0 : S(e) | 0);
118
+ }
119
+ u.allocUnsafe = function(e) {
120
+ return h(e);
121
+ }, u.allocUnsafeSlow = function(e) {
122
+ return h(e);
123
+ };
124
+ function g(e, t) {
125
+ if ((typeof t != "string" || t === "") && (t = "utf8"), !u.isEncoding(t)) throw TypeError("Unknown encoding: " + t);
126
+ let n = w(e, t) | 0, r = l(n), i = r.write(e, t);
127
+ return i !== n && (r = r.slice(0, i)), r;
128
+ }
129
+ function _(e) {
130
+ let t = e.length < 0 ? 0 : S(e.length) | 0, n = l(t);
131
+ for (let r = 0; r < t; r += 1) n[r] = e[r] & 255;
132
+ return n;
133
+ }
134
+ function y(e) {
135
+ if (Q(e, a)) {
136
+ let t = new a(e);
137
+ return b(t.buffer, t.byteOffset, t.byteLength);
138
+ }
139
+ return _(e);
140
+ }
141
+ function b(e, t, n) {
142
+ if (t < 0 || e.byteLength < t) throw RangeError("\"offset\" is outside of buffer bounds");
143
+ if (e.byteLength < t + (n || 0)) throw RangeError("\"length\" is outside of buffer bounds");
144
+ let r;
145
+ return r = t === void 0 && n === void 0 ? new a(e) : n === void 0 ? new a(e, t) : new a(e, t, n), Object.setPrototypeOf(r, u.prototype), r;
146
+ }
147
+ function x(e) {
148
+ if (u.isBuffer(e)) {
149
+ let t = S(e.length) | 0, n = l(t);
150
+ return n.length === 0 || e.copy(n, 0, 0, t), n;
151
+ }
152
+ if (e.length !== void 0) return typeof e.length != "number" || de(e.length) ? l(0) : _(e);
153
+ if (e.type === "Buffer" && Array.isArray(e.data)) return _(e.data);
154
+ }
155
+ function S(e) {
156
+ if (e >= i) throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + i.toString(16) + " bytes");
157
+ return e | 0;
158
+ }
159
+ function C(e) {
160
+ return +e != e && (e = 0), u.alloc(+e);
161
+ }
162
+ u.isBuffer = function(e) {
163
+ return e != null && e._isBuffer === !0 && e !== u.prototype;
164
+ }, u.compare = function(e, t) {
165
+ if (Q(e, a) && (e = u.from(e, e.offset, e.byteLength)), Q(t, a) && (t = u.from(t, t.offset, t.byteLength)), !u.isBuffer(e) || !u.isBuffer(t)) throw TypeError("The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array");
166
+ if (e === t) return 0;
167
+ let n = e.length, r = t.length;
168
+ for (let i = 0, a = Math.min(n, r); i < a; ++i) if (e[i] !== t[i]) {
169
+ n = e[i], r = t[i];
170
+ break;
171
+ }
172
+ return n < r ? -1 : +(r < n);
173
+ }, u.isEncoding = function(e) {
174
+ switch (String(e).toLowerCase()) {
175
+ case "hex":
176
+ case "utf8":
177
+ case "utf-8":
178
+ case "ascii":
179
+ case "latin1":
180
+ case "binary":
181
+ case "base64":
182
+ case "ucs2":
183
+ case "ucs-2":
184
+ case "utf16le":
185
+ case "utf-16le": return !0;
186
+ default: return !1;
187
+ }
188
+ }, u.concat = function(e, t) {
189
+ if (!Array.isArray(e)) throw TypeError("\"list\" argument must be an Array of Buffers");
190
+ if (e.length === 0) return u.alloc(0);
191
+ let n;
192
+ if (t === void 0) for (t = 0, n = 0; n < e.length; ++n) t += e[n].length;
193
+ let r = u.allocUnsafe(t), i = 0;
194
+ for (n = 0; n < e.length; ++n) {
195
+ let t = e[n];
196
+ if (Q(t, a)) i + t.length > r.length ? (u.isBuffer(t) || (t = u.from(t)), t.copy(r, i)) : a.prototype.set.call(r, t, i);
197
+ else if (u.isBuffer(t)) t.copy(r, i);
198
+ else throw TypeError("\"list\" argument must be an Array of Buffers");
199
+ i += t.length;
200
+ }
201
+ return r;
202
+ };
203
+ function w(e, t) {
204
+ if (u.isBuffer(e)) return e.length;
205
+ if (o.isView(e) || Q(e, o)) return e.byteLength;
206
+ if (typeof e != "string") throw TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type " + typeof e);
207
+ let n = e.length, r = arguments.length > 2 && arguments[2] === !0;
208
+ if (!r && n === 0) return 0;
209
+ let i = !1;
210
+ for (;;) switch (t) {
211
+ case "ascii":
212
+ case "latin1":
213
+ case "binary": return n;
214
+ case "utf8":
215
+ case "utf-8": return oe(e).length;
216
+ case "ucs2":
217
+ case "ucs-2":
218
+ case "utf16le":
219
+ case "utf-16le": return n * 2;
220
+ case "hex": return n >>> 1;
221
+ case "base64": return le(e).length;
222
+ default:
223
+ if (i) return r ? -1 : oe(e).length;
224
+ t = ("" + t).toLowerCase(), i = !0;
225
+ }
226
+ }
227
+ u.byteLength = w;
228
+ function T(e, t, n) {
229
+ let r = !1;
230
+ if ((t === void 0 || t < 0) && (t = 0), t > this.length || ((n === void 0 || n > this.length) && (n = this.length), n <= 0) || (n >>>= 0, t >>>= 0, n <= t)) return "";
231
+ for (e ||= "utf8";;) switch (e) {
232
+ case "hex": return B(this, t, n);
233
+ case "utf8":
234
+ case "utf-8": return F(this, t, n);
235
+ case "ascii": return R(this, t, n);
236
+ case "latin1":
237
+ case "binary": return z(this, t, n);
238
+ case "base64": return P(this, t, n);
239
+ case "ucs2":
240
+ case "ucs-2":
241
+ case "utf16le":
242
+ case "utf-16le": return V(this, t, n);
243
+ default:
244
+ if (r) throw TypeError("Unknown encoding: " + e);
245
+ e = (e + "").toLowerCase(), r = !0;
246
+ }
247
+ }
248
+ u.prototype._isBuffer = !0;
249
+ function E(e, t, n) {
250
+ let r = e[t];
251
+ e[t] = e[n], e[n] = r;
252
+ }
253
+ u.prototype.swap16 = function() {
254
+ let e = this.length;
255
+ if (e % 2 != 0) throw RangeError("Buffer size must be a multiple of 16-bits");
256
+ for (let t = 0; t < e; t += 2) E(this, t, t + 1);
257
+ return this;
258
+ }, u.prototype.swap32 = function() {
259
+ let e = this.length;
260
+ if (e % 4 != 0) throw RangeError("Buffer size must be a multiple of 32-bits");
261
+ for (let t = 0; t < e; t += 4) E(this, t, t + 3), E(this, t + 1, t + 2);
262
+ return this;
263
+ }, u.prototype.swap64 = function() {
264
+ let e = this.length;
265
+ if (e % 8 != 0) throw RangeError("Buffer size must be a multiple of 64-bits");
266
+ for (let t = 0; t < e; t += 8) E(this, t, t + 7), E(this, t + 1, t + 6), E(this, t + 2, t + 5), E(this, t + 3, t + 4);
267
+ return this;
268
+ }, u.prototype.toString = function() {
269
+ let e = this.length;
270
+ return e === 0 ? "" : arguments.length === 0 ? F(this, 0, e) : T.apply(this, arguments);
271
+ }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(e) {
272
+ if (!u.isBuffer(e)) throw TypeError("Argument must be a Buffer");
273
+ return this === e ? !0 : u.compare(this, e) === 0;
274
+ }, u.prototype.inspect = function() {
275
+ let t = "", n = e.INSPECT_MAX_BYTES;
276
+ return t = this.toString("hex", 0, n).replace(/(.{2})/g, "$1 ").trim(), this.length > n && (t += " ... "), "<Buffer " + t + ">";
277
+ }, r && (u.prototype[r] = u.prototype.inspect), u.prototype.compare = function(e, t, n, r, i) {
278
+ if (Q(e, a) && (e = u.from(e, e.offset, e.byteLength)), !u.isBuffer(e)) throw TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type " + typeof e);
279
+ if (t === void 0 && (t = 0), n === void 0 && (n = e ? e.length : 0), r === void 0 && (r = 0), i === void 0 && (i = this.length), t < 0 || n > e.length || r < 0 || i > this.length) throw RangeError("out of range index");
280
+ if (r >= i && t >= n) return 0;
281
+ if (r >= i) return -1;
282
+ if (t >= n) return 1;
283
+ if (t >>>= 0, n >>>= 0, r >>>= 0, i >>>= 0, this === e) return 0;
284
+ let o = i - r, s = n - t, c = Math.min(o, s), l = this.slice(r, i), d = e.slice(t, n);
285
+ for (let e = 0; e < c; ++e) if (l[e] !== d[e]) {
286
+ o = l[e], s = d[e];
287
+ break;
288
+ }
289
+ return o < s ? -1 : +(s < o);
290
+ };
291
+ function D(e, t, n, r, i) {
292
+ if (e.length === 0) return -1;
293
+ if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, de(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
294
+ if (i) return -1;
295
+ n = e.length - 1;
296
+ } else if (n < 0) if (i) n = 0;
297
+ else return -1;
298
+ if (typeof t == "string" && (t = u.from(t, r)), u.isBuffer(t)) return t.length === 0 ? -1 : O(e, t, n, r, i);
299
+ if (typeof t == "number") return t &= 255, typeof a.prototype.indexOf == "function" ? i ? a.prototype.indexOf.call(e, t, n) : a.prototype.lastIndexOf.call(e, t, n) : O(e, [t], n, r, i);
300
+ throw TypeError("val must be string, number or Buffer");
301
+ }
302
+ function O(e, t, n, r, i) {
303
+ let a = 1, o = e.length, s = t.length;
304
+ if (r !== void 0 && (r = String(r).toLowerCase(), r === "ucs2" || r === "ucs-2" || r === "utf16le" || r === "utf-16le")) {
305
+ if (e.length < 2 || t.length < 2) return -1;
306
+ a = 2, o /= 2, s /= 2, n /= 2;
307
+ }
308
+ function c(e, t) {
309
+ return a === 1 ? e[t] : e.readUInt16BE(t * a);
310
+ }
311
+ let l;
312
+ if (i) {
313
+ let r = -1;
314
+ for (l = n; l < o; l++) if (c(e, l) === c(t, r === -1 ? 0 : l - r)) {
315
+ if (r === -1 && (r = l), l - r + 1 === s) return r * a;
316
+ } else r !== -1 && (l -= l - r), r = -1;
317
+ } else for (n + s > o && (n = o - s), l = n; l >= 0; l--) {
318
+ let n = !0;
319
+ for (let r = 0; r < s; r++) if (c(e, l + r) !== c(t, r)) {
320
+ n = !1;
321
+ break;
322
+ }
323
+ if (n) return l;
324
+ }
325
+ return -1;
326
+ }
327
+ u.prototype.includes = function(e, t, n) {
328
+ return this.indexOf(e, t, n) !== -1;
329
+ }, u.prototype.indexOf = function(e, t, n) {
330
+ return D(this, e, t, n, !0);
331
+ }, u.prototype.lastIndexOf = function(e, t, n) {
332
+ return D(this, e, t, n, !1);
333
+ };
334
+ function k(e, t, n, r) {
335
+ n = Number(n) || 0;
336
+ let i = e.length - n;
337
+ r ? (r = Number(r), r > i && (r = i)) : r = i;
338
+ let a = t.length;
339
+ r > a / 2 && (r = a / 2);
340
+ let o;
341
+ for (o = 0; o < r; ++o) {
342
+ let r = parseInt(t.substr(o * 2, 2), 16);
343
+ if (de(r)) return o;
344
+ e[n + o] = r;
345
+ }
346
+ return o;
347
+ }
348
+ function A(e, t, n, r) {
349
+ return ue(oe(t, e.length - n), e, n, r);
350
+ }
351
+ function j(e, t, n, r) {
352
+ return ue(se(t), e, n, r);
353
+ }
354
+ function M(e, t, n, r) {
355
+ return ue(le(t), e, n, r);
356
+ }
357
+ function N(e, t, n, r) {
358
+ return ue(ce(t, e.length - n), e, n, r);
359
+ }
360
+ u.prototype.write = function(e, t, n, r) {
361
+ if (t === void 0) r = "utf8", n = this.length, t = 0;
362
+ else if (n === void 0 && typeof t == "string") r = t, n = this.length, t = 0;
363
+ else if (isFinite(t)) t >>>= 0, isFinite(n) ? (n >>>= 0, r === void 0 && (r = "utf8")) : (r = n, n = void 0);
364
+ else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
365
+ let i = this.length - t;
366
+ if ((n === void 0 || n > i) && (n = i), e.length > 0 && (n < 0 || t < 0) || t > this.length) throw RangeError("Attempt to write outside buffer bounds");
367
+ r ||= "utf8";
368
+ let a = !1;
369
+ for (;;) switch (r) {
370
+ case "hex": return k(this, e, t, n);
371
+ case "utf8":
372
+ case "utf-8": return A(this, e, t, n);
373
+ case "ascii":
374
+ case "latin1":
375
+ case "binary": return j(this, e, t, n);
376
+ case "base64": return M(this, e, t, n);
377
+ case "ucs2":
378
+ case "ucs-2":
379
+ case "utf16le":
380
+ case "utf-16le": return N(this, e, t, n);
381
+ default:
382
+ if (a) throw TypeError("Unknown encoding: " + r);
383
+ r = ("" + r).toLowerCase(), a = !0;
384
+ }
385
+ }, u.prototype.toJSON = function() {
386
+ return {
387
+ type: "Buffer",
388
+ data: Array.prototype.slice.call(this._arr || this, 0)
389
+ };
390
+ };
391
+ function P(e, n, r) {
392
+ return n === 0 && r === e.length ? t.fromByteArray(e) : t.fromByteArray(e.slice(n, r));
393
+ }
394
+ function F(e, t, n) {
395
+ n = Math.min(e.length, n);
396
+ let r = [], i = t;
397
+ for (; i < n;) {
398
+ let t = e[i], a = null, o = t > 239 ? 4 : t > 223 ? 3 : t > 191 ? 2 : 1;
399
+ if (i + o <= n) {
400
+ let n, r, s, c;
401
+ switch (o) {
402
+ case 1:
403
+ t < 128 && (a = t);
404
+ break;
405
+ case 2:
406
+ n = e[i + 1], (n & 192) == 128 && (c = (t & 31) << 6 | n & 63, c > 127 && (a = c));
407
+ break;
408
+ case 3:
409
+ n = e[i + 1], r = e[i + 2], (n & 192) == 128 && (r & 192) == 128 && (c = (t & 15) << 12 | (n & 63) << 6 | r & 63, c > 2047 && (c < 55296 || c > 57343) && (a = c));
410
+ break;
411
+ case 4: n = e[i + 1], r = e[i + 2], s = e[i + 3], (n & 192) == 128 && (r & 192) == 128 && (s & 192) == 128 && (c = (t & 15) << 18 | (n & 63) << 12 | (r & 63) << 6 | s & 63, c > 65535 && c < 1114112 && (a = c));
412
+ }
413
+ }
414
+ a === null ? (a = 65533, o = 1) : a > 65535 && (a -= 65536, r.push(a >>> 10 & 1023 | 55296), a = 56320 | a & 1023), r.push(a), i += o;
415
+ }
416
+ return L(r);
417
+ }
418
+ let I = 4096;
419
+ function L(e) {
420
+ let t = e.length;
421
+ if (t <= I) return String.fromCharCode.apply(String, e);
422
+ let n = "", r = 0;
423
+ for (; r < t;) n += String.fromCharCode.apply(String, e.slice(r, r += I));
424
+ return n;
425
+ }
426
+ function R(e, t, n) {
427
+ let r = "";
428
+ n = Math.min(e.length, n);
429
+ for (let i = t; i < n; ++i) r += String.fromCharCode(e[i] & 127);
430
+ return r;
431
+ }
432
+ function z(e, t, n) {
433
+ let r = "";
434
+ n = Math.min(e.length, n);
435
+ for (let i = t; i < n; ++i) r += String.fromCharCode(e[i]);
436
+ return r;
437
+ }
438
+ function B(e, t, n) {
439
+ let r = e.length;
440
+ (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
441
+ let i = "";
442
+ for (let r = t; r < n; ++r) i += fe[e[r]];
443
+ return i;
444
+ }
445
+ function V(e, t, n) {
446
+ let r = e.slice(t, n), i = "";
447
+ for (let e = 0; e < r.length - 1; e += 2) i += String.fromCharCode(r[e] + r[e + 1] * 256);
448
+ return i;
449
+ }
450
+ u.prototype.slice = function(e, t) {
451
+ let n = this.length;
452
+ e = ~~e, t = t === void 0 ? n : ~~t, e < 0 ? (e += n, e < 0 && (e = 0)) : e > n && (e = n), t < 0 ? (t += n, t < 0 && (t = 0)) : t > n && (t = n), t < e && (t = e);
453
+ let r = this.subarray(e, t);
454
+ return Object.setPrototypeOf(r, u.prototype), r;
455
+ };
456
+ function H(e, t, n) {
457
+ if (e % 1 != 0 || e < 0) throw RangeError("offset is not uint");
458
+ if (e + t > n) throw RangeError("Trying to access beyond buffer length");
459
+ }
460
+ u.prototype.readUintLE = u.prototype.readUIntLE = function(e, t, n) {
461
+ e >>>= 0, t >>>= 0, n || H(e, t, this.length);
462
+ let r = this[e], i = 1, a = 0;
463
+ for (; ++a < t && (i *= 256);) r += this[e + a] * i;
464
+ return r;
465
+ }, u.prototype.readUintBE = u.prototype.readUIntBE = function(e, t, n) {
466
+ e >>>= 0, t >>>= 0, n || H(e, t, this.length);
467
+ let r = this[e + --t], i = 1;
468
+ for (; t > 0 && (i *= 256);) r += this[e + --t] * i;
469
+ return r;
470
+ }, u.prototype.readUint8 = u.prototype.readUInt8 = function(e, t) {
471
+ return e >>>= 0, t || H(e, 1, this.length), this[e];
472
+ }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(e, t) {
473
+ return e >>>= 0, t || H(e, 2, this.length), this[e] | this[e + 1] << 8;
474
+ }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(e, t) {
475
+ return e >>>= 0, t || H(e, 2, this.length), this[e] << 8 | this[e + 1];
476
+ }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(e, t) {
477
+ return e >>>= 0, t || H(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
478
+ }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(e, t) {
479
+ return e >>>= 0, t || H(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
480
+ }, u.prototype.readBigUInt64LE = $(function(e) {
481
+ e >>>= 0, X(e, "offset");
482
+ let t = this[e], n = this[e + 7];
483
+ (t === void 0 || n === void 0) && Z(e, this.length - 8);
484
+ let r = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, i = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + n * 2 ** 24;
485
+ return BigInt(r) + (BigInt(i) << BigInt(32));
486
+ }), u.prototype.readBigUInt64BE = $(function(e) {
487
+ e >>>= 0, X(e, "offset");
488
+ let t = this[e], n = this[e + 7];
489
+ (t === void 0 || n === void 0) && Z(e, this.length - 8);
490
+ let r = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], i = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + n;
491
+ return (BigInt(r) << BigInt(32)) + BigInt(i);
492
+ }), u.prototype.readIntLE = function(e, t, n) {
493
+ e >>>= 0, t >>>= 0, n || H(e, t, this.length);
494
+ let r = this[e], i = 1, a = 0;
495
+ for (; ++a < t && (i *= 256);) r += this[e + a] * i;
496
+ return i *= 128, r >= i && (r -= 2 ** (8 * t)), r;
497
+ }, u.prototype.readIntBE = function(e, t, n) {
498
+ e >>>= 0, t >>>= 0, n || H(e, t, this.length);
499
+ let r = t, i = 1, a = this[e + --r];
500
+ for (; r > 0 && (i *= 256);) a += this[e + --r] * i;
501
+ return i *= 128, a >= i && (a -= 2 ** (8 * t)), a;
502
+ }, u.prototype.readInt8 = function(e, t) {
503
+ return e >>>= 0, t || H(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
504
+ }, u.prototype.readInt16LE = function(e, t) {
505
+ e >>>= 0, t || H(e, 2, this.length);
506
+ let n = this[e] | this[e + 1] << 8;
507
+ return n & 32768 ? n | 4294901760 : n;
508
+ }, u.prototype.readInt16BE = function(e, t) {
509
+ e >>>= 0, t || H(e, 2, this.length);
510
+ let n = this[e + 1] | this[e] << 8;
511
+ return n & 32768 ? n | 4294901760 : n;
512
+ }, u.prototype.readInt32LE = function(e, t) {
513
+ return e >>>= 0, t || H(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
514
+ }, u.prototype.readInt32BE = function(e, t) {
515
+ return e >>>= 0, t || H(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
516
+ }, u.prototype.readBigInt64LE = $(function(e) {
517
+ e >>>= 0, X(e, "offset");
518
+ let t = this[e], n = this[e + 7];
519
+ (t === void 0 || n === void 0) && Z(e, this.length - 8);
520
+ let r = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (n << 24);
521
+ return (BigInt(r) << BigInt(32)) + BigInt(t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
522
+ }), u.prototype.readBigInt64BE = $(function(e) {
523
+ e >>>= 0, X(e, "offset");
524
+ let t = this[e], n = this[e + 7];
525
+ (t === void 0 || n === void 0) && Z(e, this.length - 8);
526
+ let r = (t << 24) + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
527
+ return (BigInt(r) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + n);
528
+ }), u.prototype.readFloatLE = function(e, t) {
529
+ return e >>>= 0, t || H(e, 4, this.length), n.read(this, e, !0, 23, 4);
530
+ }, u.prototype.readFloatBE = function(e, t) {
531
+ return e >>>= 0, t || H(e, 4, this.length), n.read(this, e, !1, 23, 4);
532
+ }, u.prototype.readDoubleLE = function(e, t) {
533
+ return e >>>= 0, t || H(e, 8, this.length), n.read(this, e, !0, 52, 8);
534
+ }, u.prototype.readDoubleBE = function(e, t) {
535
+ return e >>>= 0, t || H(e, 8, this.length), n.read(this, e, !1, 52, 8);
536
+ };
537
+ function U(e, t, n, r, i, a) {
538
+ if (!u.isBuffer(e)) throw TypeError("\"buffer\" argument must be a Buffer instance");
539
+ if (t > i || t < a) throw RangeError("\"value\" argument is out of bounds");
540
+ if (n + r > e.length) throw RangeError("Index out of range");
541
+ }
542
+ u.prototype.writeUintLE = u.prototype.writeUIntLE = function(e, t, n, r) {
543
+ if (e = +e, t >>>= 0, n >>>= 0, !r) {
544
+ let r = 2 ** (8 * n) - 1;
545
+ U(this, e, t, n, r, 0);
546
+ }
547
+ let i = 1, a = 0;
548
+ for (this[t] = e & 255; ++a < n && (i *= 256);) this[t + a] = e / i & 255;
549
+ return t + n;
550
+ }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(e, t, n, r) {
551
+ if (e = +e, t >>>= 0, n >>>= 0, !r) {
552
+ let r = 2 ** (8 * n) - 1;
553
+ U(this, e, t, n, r, 0);
554
+ }
555
+ let i = n - 1, a = 1;
556
+ for (this[t + i] = e & 255; --i >= 0 && (a *= 256);) this[t + i] = e / a & 255;
557
+ return t + n;
558
+ }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(e, t, n) {
559
+ return e = +e, t >>>= 0, n || U(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
560
+ }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(e, t, n) {
561
+ return e = +e, t >>>= 0, n || U(this, e, t, 2, 65535, 0), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
562
+ }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(e, t, n) {
563
+ return e = +e, t >>>= 0, n || U(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
564
+ }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(e, t, n) {
565
+ return e = +e, t >>>= 0, n || U(this, e, t, 4, 4294967295, 0), this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = e & 255, t + 4;
566
+ }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(e, t, n) {
567
+ return e = +e, t >>>= 0, n || U(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
568
+ };
569
+ function W(e, t, n, r, i) {
570
+ re(t, r, i, e, n, 7);
571
+ let a = Number(t & BigInt(4294967295));
572
+ e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a;
573
+ let o = Number(t >> BigInt(32) & BigInt(4294967295));
574
+ return e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, n;
575
+ }
576
+ function G(e, t, n, r, i) {
577
+ re(t, r, i, e, n, 7);
578
+ let a = Number(t & BigInt(4294967295));
579
+ e[n + 7] = a, a >>= 8, e[n + 6] = a, a >>= 8, e[n + 5] = a, a >>= 8, e[n + 4] = a;
580
+ let o = Number(t >> BigInt(32) & BigInt(4294967295));
581
+ return e[n + 3] = o, o >>= 8, e[n + 2] = o, o >>= 8, e[n + 1] = o, o >>= 8, e[n] = o, n + 8;
582
+ }
583
+ u.prototype.writeBigUInt64LE = $(function(e, t = 0) {
584
+ return W(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
585
+ }), u.prototype.writeBigUInt64BE = $(function(e, t = 0) {
586
+ return G(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
587
+ }), u.prototype.writeIntLE = function(e, t, n, r) {
588
+ if (e = +e, t >>>= 0, !r) {
589
+ let r = 2 ** (8 * n - 1);
590
+ U(this, e, t, n, r - 1, -r);
591
+ }
592
+ let i = 0, a = 1, o = 0;
593
+ for (this[t] = e & 255; ++i < n && (a *= 256);) e < 0 && o === 0 && this[t + i - 1] !== 0 && (o = 1), this[t + i] = (e / a >> 0) - o & 255;
594
+ return t + n;
595
+ }, u.prototype.writeIntBE = function(e, t, n, r) {
596
+ if (e = +e, t >>>= 0, !r) {
597
+ let r = 2 ** (8 * n - 1);
598
+ U(this, e, t, n, r - 1, -r);
599
+ }
600
+ let i = n - 1, a = 1, o = 0;
601
+ for (this[t + i] = e & 255; --i >= 0 && (a *= 256);) e < 0 && o === 0 && this[t + i + 1] !== 0 && (o = 1), this[t + i] = (e / a >> 0) - o & 255;
602
+ return t + n;
603
+ }, u.prototype.writeInt8 = function(e, t, n) {
604
+ return e = +e, t >>>= 0, n || U(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
605
+ }, u.prototype.writeInt16LE = function(e, t, n) {
606
+ return e = +e, t >>>= 0, n || U(this, e, t, 2, 32767, -32768), this[t] = e & 255, this[t + 1] = e >>> 8, t + 2;
607
+ }, u.prototype.writeInt16BE = function(e, t, n) {
608
+ return e = +e, t >>>= 0, n || U(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = e & 255, t + 2;
609
+ }, u.prototype.writeInt32LE = function(e, t, n) {
610
+ return e = +e, t >>>= 0, n || U(this, e, t, 4, 2147483647, -2147483648), this[t] = e & 255, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24, t + 4;
611
+ }, u.prototype.writeInt32BE = function(e, t, n) {
612
+ return e = +e, t >>>= 0, n || U(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
613
+ }, u.prototype.writeBigInt64LE = $(function(e, t = 0) {
614
+ return W(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
615
+ }), u.prototype.writeBigInt64BE = $(function(e, t = 0) {
616
+ return G(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
617
+ });
618
+ function K(e, t, n, r, i, a) {
619
+ if (n + r > e.length || n < 0) throw RangeError("Index out of range");
620
+ }
621
+ function q(e, t, r, i, a) {
622
+ return t = +t, r >>>= 0, a || K(e, t, r, 4), n.write(e, t, r, i, 23, 4), r + 4;
623
+ }
624
+ u.prototype.writeFloatLE = function(e, t, n) {
625
+ return q(this, e, t, !0, n);
626
+ }, u.prototype.writeFloatBE = function(e, t, n) {
627
+ return q(this, e, t, !1, n);
628
+ };
629
+ function J(e, t, r, i, a) {
630
+ return t = +t, r >>>= 0, a || K(e, t, r, 8), n.write(e, t, r, i, 52, 8), r + 8;
631
+ }
632
+ u.prototype.writeDoubleLE = function(e, t, n) {
633
+ return J(this, e, t, !0, n);
634
+ }, u.prototype.writeDoubleBE = function(e, t, n) {
635
+ return J(this, e, t, !1, n);
636
+ }, u.prototype.copy = function(e, t, n, r) {
637
+ if (!u.isBuffer(e)) throw TypeError("argument should be a Buffer");
638
+ if (n ||= 0, !r && r !== 0 && (r = this.length), t >= e.length && (t = e.length), t ||= 0, r > 0 && r < n && (r = n), r === n || e.length === 0 || this.length === 0) return 0;
639
+ if (t < 0) throw RangeError("targetStart out of bounds");
640
+ if (n < 0 || n >= this.length) throw RangeError("Index out of range");
641
+ if (r < 0) throw RangeError("sourceEnd out of bounds");
642
+ r > this.length && (r = this.length), e.length - t < r - n && (r = e.length - t + n);
643
+ let i = r - n;
644
+ return this === e && typeof a.prototype.copyWithin == "function" ? this.copyWithin(t, n, r) : a.prototype.set.call(e, this.subarray(n, r), t), i;
645
+ }, u.prototype.fill = function(e, t, n, r) {
646
+ if (typeof e == "string") {
647
+ if (typeof t == "string" ? (r = t, t = 0, n = this.length) : typeof n == "string" && (r = n, n = this.length), r !== void 0 && typeof r != "string") throw TypeError("encoding must be a string");
648
+ if (typeof r == "string" && !u.isEncoding(r)) throw TypeError("Unknown encoding: " + r);
649
+ if (e.length === 1) {
650
+ let t = e.charCodeAt(0);
651
+ (r === "utf8" && t < 128 || r === "latin1") && (e = t);
652
+ }
653
+ } else typeof e == "number" ? e &= 255 : typeof e == "boolean" && (e = Number(e));
654
+ if (t < 0 || this.length < t || this.length < n) throw RangeError("Out of range index");
655
+ if (n <= t) return this;
656
+ t >>>= 0, n = n === void 0 ? this.length : n >>> 0, e ||= 0;
657
+ let i;
658
+ if (typeof e == "number") for (i = t; i < n; ++i) this[i] = e;
659
+ else {
660
+ let a = u.isBuffer(e) ? e : u.from(e, r), o = a.length;
661
+ if (o === 0) throw TypeError("The value \"" + e + "\" is invalid for argument \"value\"");
662
+ for (i = 0; i < n - t; ++i) this[i + t] = a[i % o];
663
+ }
664
+ return this;
665
+ };
666
+ let Y = {};
667
+ function ee(e, t, n) {
668
+ Y[e] = class extends n {
669
+ constructor() {
670
+ super(), Object.defineProperty(this, "message", {
671
+ value: t.apply(this, arguments),
672
+ writable: !0,
673
+ configurable: !0
674
+ }), this.name = `${this.name} [${e}]`, this.stack, delete this.name;
675
+ }
676
+ get code() {
677
+ return e;
678
+ }
679
+ set code(e) {
680
+ Object.defineProperty(this, "code", {
681
+ configurable: !0,
682
+ enumerable: !0,
683
+ value: e,
684
+ writable: !0
685
+ });
686
+ }
687
+ toString() {
688
+ return `${this.name} [${e}]: ${this.message}`;
689
+ }
690
+ };
691
+ }
692
+ ee("ERR_BUFFER_OUT_OF_BOUNDS", function(e) {
693
+ return e ? `${e} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
694
+ }, RangeError), ee("ERR_INVALID_ARG_TYPE", function(e, t) {
695
+ return `The "${e}" argument must be of type number. Received type ${typeof t}`;
696
+ }, TypeError), ee("ERR_OUT_OF_RANGE", function(e, t, n) {
697
+ let r = `The value of "${e}" is out of range.`, i = n;
698
+ return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? i = te(String(n)) : typeof n == "bigint" && (i = String(n), (n > BigInt(2) ** BigInt(32) || n < -(BigInt(2) ** BigInt(32))) && (i = te(i)), i += "n"), r += ` It must be ${t}. Received ${i}`, r;
699
+ }, RangeError);
700
+ function te(e) {
701
+ let t = "", n = e.length, r = +(e[0] === "-");
702
+ for (; n >= r + 4; n -= 3) t = `_${e.slice(n - 3, n)}${t}`;
703
+ return `${e.slice(0, n)}${t}`;
704
+ }
705
+ function ne(e, t, n) {
706
+ X(t, "offset"), (e[t] === void 0 || e[t + n] === void 0) && Z(t, e.length - (n + 1));
707
+ }
708
+ function re(e, t, n, r, i, a) {
709
+ if (e > n || e < t) {
710
+ let r = typeof t == "bigint" ? "n" : "", i;
711
+ throw i = a > 3 ? t === 0 || t === BigInt(0) ? `>= 0${r} and < 2${r} ** ${(a + 1) * 8}${r}` : `>= -(2${r} ** ${(a + 1) * 8 - 1}${r}) and < 2 ** ${(a + 1) * 8 - 1}${r}` : `>= ${t}${r} and <= ${n}${r}`, new Y.ERR_OUT_OF_RANGE("value", i, e);
712
+ }
713
+ ne(r, i, a);
714
+ }
715
+ function X(e, t) {
716
+ if (typeof e != "number") throw new Y.ERR_INVALID_ARG_TYPE(t, "number", e);
717
+ }
718
+ function Z(e, t, n) {
719
+ throw Math.floor(e) === e ? t < 0 ? new Y.ERR_BUFFER_OUT_OF_BOUNDS() : new Y.ERR_OUT_OF_RANGE(n || "offset", `>= ${+!!n} and <= ${t}`, e) : (X(e, n), new Y.ERR_OUT_OF_RANGE(n || "offset", "an integer", e));
720
+ }
721
+ let ie = /[^+/0-9A-Za-z-_]/g;
722
+ function ae(e) {
723
+ if (e = e.split("=")[0], e = e.trim().replace(ie, ""), e.length < 2) return "";
724
+ for (; e.length % 4 != 0;) e += "=";
725
+ return e;
726
+ }
727
+ function oe(e, t) {
728
+ t ||= Infinity;
729
+ let n, r = e.length, i = null, a = [];
730
+ for (let o = 0; o < r; ++o) {
731
+ if (n = e.charCodeAt(o), n > 55295 && n < 57344) {
732
+ if (!i) {
733
+ if (n > 56319) {
734
+ (t -= 3) > -1 && a.push(239, 191, 189);
735
+ continue;
736
+ } else if (o + 1 === r) {
737
+ (t -= 3) > -1 && a.push(239, 191, 189);
738
+ continue;
739
+ }
740
+ i = n;
741
+ continue;
742
+ }
743
+ if (n < 56320) {
744
+ (t -= 3) > -1 && a.push(239, 191, 189), i = n;
745
+ continue;
746
+ }
747
+ n = (i - 55296 << 10 | n - 56320) + 65536;
748
+ } else i && (t -= 3) > -1 && a.push(239, 191, 189);
749
+ if (i = null, n < 128) {
750
+ if (--t < 0) break;
751
+ a.push(n);
752
+ } else if (n < 2048) {
753
+ if ((t -= 2) < 0) break;
754
+ a.push(n >> 6 | 192, n & 63 | 128);
755
+ } else if (n < 65536) {
756
+ if ((t -= 3) < 0) break;
757
+ a.push(n >> 12 | 224, n >> 6 & 63 | 128, n & 63 | 128);
758
+ } else if (n < 1114112) {
759
+ if ((t -= 4) < 0) break;
760
+ a.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, n & 63 | 128);
761
+ } else throw Error("Invalid code point");
762
+ }
763
+ return a;
764
+ }
765
+ function se(e) {
766
+ let t = [];
767
+ for (let n = 0; n < e.length; ++n) t.push(e.charCodeAt(n) & 255);
768
+ return t;
769
+ }
770
+ function ce(e, t) {
771
+ let n, r, i, a = [];
772
+ for (let o = 0; o < e.length && !((t -= 2) < 0); ++o) n = e.charCodeAt(o), r = n >> 8, i = n % 256, a.push(i), a.push(r);
773
+ return a;
774
+ }
775
+ function le(e) {
776
+ return t.toByteArray(ae(e));
777
+ }
778
+ function ue(e, t, n, r) {
779
+ let i;
780
+ for (i = 0; i < r && !(i + n >= t.length || i >= e.length); ++i) t[i + n] = e[i];
781
+ return i;
782
+ }
783
+ function Q(e, t) {
784
+ return e instanceof t || e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === t.name;
785
+ }
786
+ function de(e) {
787
+ return e !== e;
788
+ }
789
+ let fe = (function() {
790
+ let e = "0123456789abcdef", t = Array(256);
791
+ for (let n = 0; n < 16; ++n) {
792
+ let r = n * 16;
793
+ for (let i = 0; i < 16; ++i) t[r + i] = e[n] + e[i];
794
+ }
795
+ return t;
796
+ })();
797
+ function $(e) {
798
+ return typeof BigInt > "u" ? pe : e;
799
+ }
800
+ function pe() {
801
+ throw Error("BigInt not supported");
802
+ }
803
+ })(u), y = u.Buffer, u.Blob, u.BlobOptions, u.Buffer, u.File, u.FileOptions, u.INSPECT_MAX_BYTES, u.SlowBuffer, u.TranscodeEncoding, u.atob, u.btoa, u.constants, u.isAscii, u.isUtf8, u.kMaxLength, u.kStringMaxLength, u.resolveObjectURL, u.transcode;
804
+ })), x, S = t((() => {
805
+ x = globalThis || self;
806
+ }));
807
+ //#endregion
808
+ //#region node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js
809
+ function C(e) {
810
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
811
+ }
812
+ function w() {
813
+ throw Error("setTimeout has not been defined");
814
+ }
815
+ function T() {
816
+ throw Error("clearTimeout has not been defined");
817
+ }
818
+ function E(e) {
819
+ if (P === setTimeout) return setTimeout(e, 0);
820
+ if ((P === w || !P) && setTimeout) return P = setTimeout, setTimeout(e, 0);
821
+ try {
822
+ return P(e, 0);
823
+ } catch {
824
+ try {
825
+ return P.call(null, e, 0);
826
+ } catch {
827
+ return P.call(this, e, 0);
828
+ }
829
+ }
830
+ }
831
+ function D(e) {
832
+ if (F === clearTimeout) return clearTimeout(e);
833
+ if ((F === T || !F) && clearTimeout) return F = clearTimeout, clearTimeout(e);
834
+ try {
835
+ return F(e);
836
+ } catch {
837
+ try {
838
+ return F.call(null, e);
839
+ } catch {
840
+ return F.call(this, e);
841
+ }
842
+ }
843
+ }
844
+ function O() {
845
+ !L || !R || (L = !1, R.length ? I = R.concat(I) : z = -1, I.length && k());
846
+ }
847
+ function k() {
848
+ if (!L) {
849
+ var e = E(O);
850
+ L = !0;
851
+ for (var t = I.length; t;) {
852
+ for (R = I, I = []; ++z < t;) R && R[z].run();
853
+ z = -1, t = I.length;
854
+ }
855
+ R = null, L = !1, D(e);
856
+ }
857
+ }
858
+ function A(e, t) {
859
+ this.fun = e, this.array = t;
860
+ }
861
+ function j() {}
862
+ var M, N, P, F, I, L, R, z, B, V, H = t((() => {
863
+ M = { exports: {} }, N = M.exports = {}, (function() {
864
+ try {
865
+ P = typeof setTimeout == "function" ? setTimeout : w;
866
+ } catch {
867
+ P = w;
868
+ }
869
+ try {
870
+ F = typeof clearTimeout == "function" ? clearTimeout : T;
871
+ } catch {
872
+ F = T;
873
+ }
874
+ })(), I = [], L = !1, z = -1, N.nextTick = function(e) {
875
+ var t = Array(arguments.length - 1);
876
+ if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
877
+ I.push(new A(e, t)), I.length === 1 && !L && E(k);
878
+ }, A.prototype.run = function() {
879
+ this.fun.apply(null, this.array);
880
+ }, N.title = "browser", N.browser = !0, N.env = {}, N.argv = [], N.version = "", N.versions = {}, N.on = j, N.addListener = j, N.once = j, N.off = j, N.removeListener = j, N.removeAllListeners = j, N.emit = j, N.prependListener = j, N.prependOnceListener = j, N.listeners = function(e) {
881
+ return [];
882
+ }, N.binding = function(e) {
883
+ throw Error("process.binding is not supported");
884
+ }, N.cwd = function() {
885
+ return "/";
886
+ }, N.chdir = function(e) {
887
+ throw Error("process.chdir is not supported");
888
+ }, N.umask = function() {
889
+ return 0;
890
+ }, B = M.exports, V = /*@__PURE__*/ C(B);
891
+ })), U = /* @__PURE__ */ n(((t, n) => {
892
+ b(), S(), H(), (function(e) {
893
+ typeof t == "object" && n !== void 0 ? n.exports = e() : typeof define == "function" && define.amd ? define([], e) : (typeof window < "u" ? window : x === void 0 ? typeof self < "u" ? self : this : x).JSZip = e();
894
+ })(function() {
895
+ return function t(n, r, i) {
896
+ function a(s, c) {
897
+ if (!r[s]) {
898
+ if (!n[s]) {
899
+ var l = typeof e == "function" && e;
900
+ if (!c && l) return l(s, !0);
901
+ if (o) return o(s, !0);
902
+ var u = /* @__PURE__ */ Error("Cannot find module '" + s + "'");
903
+ throw u.code = "MODULE_NOT_FOUND", u;
904
+ }
905
+ var d = r[s] = { exports: {} };
906
+ n[s][0].call(d.exports, function(e) {
907
+ var t = n[s][1][e];
908
+ return a(t || e);
909
+ }, d, d.exports, t, n, r, i);
910
+ }
911
+ return r[s].exports;
912
+ }
913
+ for (var o = typeof e == "function" && e, s = 0; s < i.length; s++) a(i[s]);
914
+ return a;
915
+ }({
916
+ 1: [function(e, t, n) {
917
+ var r = e("./utils"), i = e("./support"), a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
918
+ n.encode = function(e) {
919
+ for (var t, n, i, o, s, c, l, u = [], d = 0, f = e.length, p = f, m = r.getTypeOf(e) !== "string"; d < e.length;) p = f - d, i = m ? (t = e[d++], n = d < f ? e[d++] : 0, d < f ? e[d++] : 0) : (t = e.charCodeAt(d++), n = d < f ? e.charCodeAt(d++) : 0, d < f ? e.charCodeAt(d++) : 0), o = t >> 2, s = (3 & t) << 4 | n >> 4, c = 1 < p ? (15 & n) << 2 | i >> 6 : 64, l = 2 < p ? 63 & i : 64, u.push(a.charAt(o) + a.charAt(s) + a.charAt(c) + a.charAt(l));
920
+ return u.join("");
921
+ }, n.decode = function(e) {
922
+ var t, n, r, o, s, c, l = 0, u = 0, d = "data:";
923
+ if (e.substr(0, d.length) === d) throw Error("Invalid base64 input, it looks like a data url.");
924
+ var f, p = 3 * (e = e.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
925
+ if (e.charAt(e.length - 1) === a.charAt(64) && p--, e.charAt(e.length - 2) === a.charAt(64) && p--, p % 1 != 0) throw Error("Invalid base64 input, bad content length.");
926
+ for (f = i.uint8array ? new Uint8Array(0 | p) : Array(0 | p); l < e.length;) t = a.indexOf(e.charAt(l++)) << 2 | (o = a.indexOf(e.charAt(l++))) >> 4, n = (15 & o) << 4 | (s = a.indexOf(e.charAt(l++))) >> 2, r = (3 & s) << 6 | (c = a.indexOf(e.charAt(l++))), f[u++] = t, s !== 64 && (f[u++] = n), c !== 64 && (f[u++] = r);
927
+ return f;
928
+ };
929
+ }, {
930
+ "./support": 30,
931
+ "./utils": 32
932
+ }],
933
+ 2: [function(e, t, n) {
934
+ var r = e("./external"), i = e("./stream/DataWorker"), a = e("./stream/Crc32Probe"), o = e("./stream/DataLengthProbe");
935
+ function s(e, t, n, r, i) {
936
+ this.compressedSize = e, this.uncompressedSize = t, this.crc32 = n, this.compression = r, this.compressedContent = i;
937
+ }
938
+ s.prototype = {
939
+ getContentWorker: function() {
940
+ var e = new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")), t = this;
941
+ return e.on("end", function() {
942
+ if (this.streamInfo.data_length !== t.uncompressedSize) throw Error("Bug : uncompressed data size mismatch");
943
+ }), e;
944
+ },
945
+ getCompressedWorker: function() {
946
+ return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
947
+ }
948
+ }, s.createWorkerFrom = function(e, t, n) {
949
+ return e.pipe(new a()).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression", t);
950
+ }, t.exports = s;
951
+ }, {
952
+ "./external": 6,
953
+ "./stream/Crc32Probe": 25,
954
+ "./stream/DataLengthProbe": 26,
955
+ "./stream/DataWorker": 27
956
+ }],
957
+ 3: [function(e, t, n) {
958
+ var r = e("./stream/GenericWorker");
959
+ n.STORE = {
960
+ magic: "\0\0",
961
+ compressWorker: function() {
962
+ return new r("STORE compression");
963
+ },
964
+ uncompressWorker: function() {
965
+ return new r("STORE decompression");
966
+ }
967
+ }, n.DEFLATE = e("./flate");
968
+ }, {
969
+ "./flate": 7,
970
+ "./stream/GenericWorker": 28
971
+ }],
972
+ 4: [function(e, t, n) {
973
+ var r = e("./utils"), i = function() {
974
+ for (var e, t = [], n = 0; n < 256; n++) {
975
+ e = n;
976
+ for (var r = 0; r < 8; r++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
977
+ t[n] = e;
978
+ }
979
+ return t;
980
+ }();
981
+ t.exports = function(e, t) {
982
+ return e !== void 0 && e.length ? r.getTypeOf(e) === "string" ? function(e, t, n, r) {
983
+ var a = i, o = r + n;
984
+ e ^= -1;
985
+ for (var s = r; s < o; s++) e = e >>> 8 ^ a[255 & (e ^ t.charCodeAt(s))];
986
+ return -1 ^ e;
987
+ }(0 | t, e, e.length, 0) : function(e, t, n, r) {
988
+ var a = i, o = r + n;
989
+ e ^= -1;
990
+ for (var s = r; s < o; s++) e = e >>> 8 ^ a[255 & (e ^ t[s])];
991
+ return -1 ^ e;
992
+ }(0 | t, e, e.length, 0) : 0;
993
+ };
994
+ }, { "./utils": 32 }],
995
+ 5: [function(e, t, n) {
996
+ n.base64 = !1, n.binary = !1, n.dir = !1, n.createFolders = !0, n.date = null, n.compression = null, n.compressionOptions = null, n.comment = null, n.unixPermissions = null, n.dosPermissions = null;
997
+ }, {}],
998
+ 6: [function(e, t, n) {
999
+ var r = null;
1000
+ r = typeof Promise < "u" ? Promise : e("lie"), t.exports = { Promise: r };
1001
+ }, { lie: 37 }],
1002
+ 7: [function(e, t, n) {
1003
+ var r = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", i = e("pako"), a = e("./utils"), o = e("./stream/GenericWorker"), s = r ? "uint8array" : "array";
1004
+ function c(e, t) {
1005
+ o.call(this, "FlateWorker/" + e), this._pako = null, this._pakoAction = e, this._pakoOptions = t, this.meta = {};
1006
+ }
1007
+ n.magic = "\b\0", a.inherits(c, o), c.prototype.processChunk = function(e) {
1008
+ this.meta = e.meta, this._pako === null && this._createPako(), this._pako.push(a.transformTo(s, e.data), !1);
1009
+ }, c.prototype.flush = function() {
1010
+ o.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
1011
+ }, c.prototype.cleanUp = function() {
1012
+ o.prototype.cleanUp.call(this), this._pako = null;
1013
+ }, c.prototype._createPako = function() {
1014
+ this._pako = new i[this._pakoAction]({
1015
+ raw: !0,
1016
+ level: this._pakoOptions.level || -1
1017
+ });
1018
+ var e = this;
1019
+ this._pako.onData = function(t) {
1020
+ e.push({
1021
+ data: t,
1022
+ meta: e.meta
1023
+ });
1024
+ };
1025
+ }, n.compressWorker = function(e) {
1026
+ return new c("Deflate", e);
1027
+ }, n.uncompressWorker = function() {
1028
+ return new c("Inflate", {});
1029
+ };
1030
+ }, {
1031
+ "./stream/GenericWorker": 28,
1032
+ "./utils": 32,
1033
+ pako: 38
1034
+ }],
1035
+ 8: [function(e, t, n) {
1036
+ function r(e, t) {
1037
+ var n, r = "";
1038
+ for (n = 0; n < t; n++) r += String.fromCharCode(255 & e), e >>>= 8;
1039
+ return r;
1040
+ }
1041
+ function i(e, t, n, i, o, u) {
1042
+ var d, f, p = e.file, m = e.compression, h = u !== s.utf8encode, g = a.transformTo("string", u(p.name)), _ = a.transformTo("string", s.utf8encode(p.name)), v = p.comment, y = a.transformTo("string", u(v)), b = a.transformTo("string", s.utf8encode(v)), x = _.length !== p.name.length, S = b.length !== v.length, C = "", w = "", T = "", E = p.dir, D = p.date, O = {
1043
+ crc32: 0,
1044
+ compressedSize: 0,
1045
+ uncompressedSize: 0
1046
+ };
1047
+ t && !n || (O.crc32 = e.crc32, O.compressedSize = e.compressedSize, O.uncompressedSize = e.uncompressedSize);
1048
+ var k = 0;
1049
+ t && (k |= 8), h || !x && !S || (k |= 2048);
1050
+ var A = 0, j = 0;
1051
+ E && (A |= 16), o === "UNIX" ? (j = 798, A |= function(e, t) {
1052
+ var n = e;
1053
+ return e || (n = t ? 16893 : 33204), (65535 & n) << 16;
1054
+ }(p.unixPermissions, E)) : (j = 20, A |= function(e) {
1055
+ return 63 & (e || 0);
1056
+ }(p.dosPermissions)), d = D.getUTCHours(), d <<= 6, d |= D.getUTCMinutes(), d <<= 5, d |= D.getUTCSeconds() / 2, f = D.getUTCFullYear() - 1980, f <<= 4, f |= D.getUTCMonth() + 1, f <<= 5, f |= D.getUTCDate(), x && (w = r(1, 1) + r(c(g), 4) + _, C += "up" + r(w.length, 2) + w), S && (T = r(1, 1) + r(c(y), 4) + b, C += "uc" + r(T.length, 2) + T);
1057
+ var M = "";
1058
+ return M += "\n\0", M += r(k, 2), M += m.magic, M += r(d, 2), M += r(f, 2), M += r(O.crc32, 4), M += r(O.compressedSize, 4), M += r(O.uncompressedSize, 4), M += r(g.length, 2), M += r(C.length, 2), {
1059
+ fileRecord: l.LOCAL_FILE_HEADER + M + g + C,
1060
+ dirRecord: l.CENTRAL_FILE_HEADER + r(j, 2) + M + r(y.length, 2) + "\0\0\0\0" + r(A, 4) + r(i, 4) + g + C + y
1061
+ };
1062
+ }
1063
+ var a = e("../utils"), o = e("../stream/GenericWorker"), s = e("../utf8"), c = e("../crc32"), l = e("../signature");
1064
+ function u(e, t, n, r) {
1065
+ o.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t, this.zipPlatform = n, this.encodeFileName = r, this.streamFiles = e, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
1066
+ }
1067
+ a.inherits(u, o), u.prototype.push = function(e) {
1068
+ var t = e.meta.percent || 0, n = this.entriesCount, r = this._sources.length;
1069
+ this.accumulate ? this.contentBuffer.push(e) : (this.bytesWritten += e.data.length, o.prototype.push.call(this, {
1070
+ data: e.data,
1071
+ meta: {
1072
+ currentFile: this.currentFile,
1073
+ percent: n ? (t + 100 * (n - r - 1)) / n : 100
1074
+ }
1075
+ }));
1076
+ }, u.prototype.openedSource = function(e) {
1077
+ this.currentSourceOffset = this.bytesWritten, this.currentFile = e.file.name;
1078
+ var t = this.streamFiles && !e.file.dir;
1079
+ if (t) {
1080
+ var n = i(e, t, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
1081
+ this.push({
1082
+ data: n.fileRecord,
1083
+ meta: { percent: 0 }
1084
+ });
1085
+ } else this.accumulate = !0;
1086
+ }, u.prototype.closedSource = function(e) {
1087
+ this.accumulate = !1;
1088
+ var t = this.streamFiles && !e.file.dir, n = i(e, t, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
1089
+ if (this.dirRecords.push(n.dirRecord), t) this.push({
1090
+ data: function(e) {
1091
+ return l.DATA_DESCRIPTOR + r(e.crc32, 4) + r(e.compressedSize, 4) + r(e.uncompressedSize, 4);
1092
+ }(e),
1093
+ meta: { percent: 100 }
1094
+ });
1095
+ else for (this.push({
1096
+ data: n.fileRecord,
1097
+ meta: { percent: 0 }
1098
+ }); this.contentBuffer.length;) this.push(this.contentBuffer.shift());
1099
+ this.currentFile = null;
1100
+ }, u.prototype.flush = function() {
1101
+ for (var e = this.bytesWritten, t = 0; t < this.dirRecords.length; t++) this.push({
1102
+ data: this.dirRecords[t],
1103
+ meta: { percent: 100 }
1104
+ });
1105
+ var n = this.bytesWritten - e, i = function(e, t, n, i, o) {
1106
+ var s = a.transformTo("string", o(i));
1107
+ return l.CENTRAL_DIRECTORY_END + "\0\0\0\0" + r(e, 2) + r(e, 2) + r(t, 4) + r(n, 4) + r(s.length, 2) + s;
1108
+ }(this.dirRecords.length, n, e, this.zipComment, this.encodeFileName);
1109
+ this.push({
1110
+ data: i,
1111
+ meta: { percent: 100 }
1112
+ });
1113
+ }, u.prototype.prepareNextSource = function() {
1114
+ this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
1115
+ }, u.prototype.registerPrevious = function(e) {
1116
+ this._sources.push(e);
1117
+ var t = this;
1118
+ return e.on("data", function(e) {
1119
+ t.processChunk(e);
1120
+ }), e.on("end", function() {
1121
+ t.closedSource(t.previous.streamInfo), t._sources.length ? t.prepareNextSource() : t.end();
1122
+ }), e.on("error", function(e) {
1123
+ t.error(e);
1124
+ }), this;
1125
+ }, u.prototype.resume = function() {
1126
+ 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));
1127
+ }, u.prototype.error = function(e) {
1128
+ var t = this._sources;
1129
+ if (!o.prototype.error.call(this, e)) return !1;
1130
+ for (var n = 0; n < t.length; n++) try {
1131
+ t[n].error(e);
1132
+ } catch {}
1133
+ return !0;
1134
+ }, u.prototype.lock = function() {
1135
+ o.prototype.lock.call(this);
1136
+ for (var e = this._sources, t = 0; t < e.length; t++) e[t].lock();
1137
+ }, t.exports = u;
1138
+ }, {
1139
+ "../crc32": 4,
1140
+ "../signature": 23,
1141
+ "../stream/GenericWorker": 28,
1142
+ "../utf8": 31,
1143
+ "../utils": 32
1144
+ }],
1145
+ 9: [function(e, t, n) {
1146
+ var r = e("../compressions"), i = e("./ZipFileWorker");
1147
+ n.generateWorker = function(e, t, n) {
1148
+ var a = new i(t.streamFiles, n, t.platform, t.encodeFileName), o = 0;
1149
+ try {
1150
+ e.forEach(function(e, n) {
1151
+ o++;
1152
+ var i = function(e, t) {
1153
+ var n = e || t, i = r[n];
1154
+ if (!i) throw Error(n + " is not a valid compression method !");
1155
+ return i;
1156
+ }(n.options.compression, t.compression), s = n.options.compressionOptions || t.compressionOptions || {}, c = n.dir, l = n.date;
1157
+ n._compressWorker(i, s).withStreamInfo("file", {
1158
+ name: e,
1159
+ dir: c,
1160
+ date: l,
1161
+ comment: n.comment || "",
1162
+ unixPermissions: n.unixPermissions,
1163
+ dosPermissions: n.dosPermissions
1164
+ }).pipe(a);
1165
+ }), a.entriesCount = o;
1166
+ } catch (e) {
1167
+ a.error(e);
1168
+ }
1169
+ return a;
1170
+ };
1171
+ }, {
1172
+ "../compressions": 3,
1173
+ "./ZipFileWorker": 8
1174
+ }],
1175
+ 10: [function(e, t, n) {
1176
+ function r() {
1177
+ if (!(this instanceof r)) return new r();
1178
+ if (arguments.length) throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
1179
+ this.files = Object.create(null), this.comment = null, this.root = "", this.clone = function() {
1180
+ var e = new r();
1181
+ for (var t in this) typeof this[t] != "function" && (e[t] = this[t]);
1182
+ return e;
1183
+ };
1184
+ }
1185
+ (r.prototype = e("./object")).loadAsync = e("./load"), r.support = e("./support"), r.defaults = e("./defaults"), r.version = "3.10.1", r.loadAsync = function(e, t) {
1186
+ return new r().loadAsync(e, t);
1187
+ }, r.external = e("./external"), t.exports = r;
1188
+ }, {
1189
+ "./defaults": 5,
1190
+ "./external": 6,
1191
+ "./load": 11,
1192
+ "./object": 15,
1193
+ "./support": 30
1194
+ }],
1195
+ 11: [function(e, t, n) {
1196
+ var r = e("./utils"), i = e("./external"), a = e("./utf8"), o = e("./zipEntries"), s = e("./stream/Crc32Probe"), c = e("./nodejsUtils");
1197
+ function l(e) {
1198
+ return new i.Promise(function(t, n) {
1199
+ var r = e.decompressed.getContentWorker().pipe(new s());
1200
+ r.on("error", function(e) {
1201
+ n(e);
1202
+ }).on("end", function() {
1203
+ r.streamInfo.crc32 === e.decompressed.crc32 ? t() : n(/* @__PURE__ */ Error("Corrupted zip : CRC32 mismatch"));
1204
+ }).resume();
1205
+ });
1206
+ }
1207
+ t.exports = function(e, t) {
1208
+ var n = this;
1209
+ return t = r.extend(t || {}, {
1210
+ base64: !1,
1211
+ checkCRC32: !1,
1212
+ optimizedBinaryString: !1,
1213
+ createFolders: !1,
1214
+ decodeFileName: a.utf8decode
1215
+ }), c.isNode && c.isStream(e) ? i.Promise.reject(/* @__PURE__ */ Error("JSZip can't accept a stream when loading a zip file.")) : r.prepareContent("the loaded zip file", e, !0, t.optimizedBinaryString, t.base64).then(function(e) {
1216
+ var n = new o(t);
1217
+ return n.load(e), n;
1218
+ }).then(function(e) {
1219
+ var n = [i.Promise.resolve(e)], r = e.files;
1220
+ if (t.checkCRC32) for (var a = 0; a < r.length; a++) n.push(l(r[a]));
1221
+ return i.Promise.all(n);
1222
+ }).then(function(e) {
1223
+ for (var i = e.shift(), a = i.files, o = 0; o < a.length; o++) {
1224
+ var s = a[o], c = s.fileNameStr, l = r.resolve(s.fileNameStr);
1225
+ n.file(l, s.decompressed, {
1226
+ binary: !0,
1227
+ optimizedBinaryString: !0,
1228
+ date: s.date,
1229
+ dir: s.dir,
1230
+ comment: s.fileCommentStr.length ? s.fileCommentStr : null,
1231
+ unixPermissions: s.unixPermissions,
1232
+ dosPermissions: s.dosPermissions,
1233
+ createFolders: t.createFolders
1234
+ }), s.dir || (n.file(l).unsafeOriginalName = c);
1235
+ }
1236
+ return i.zipComment.length && (n.comment = i.zipComment), n;
1237
+ });
1238
+ };
1239
+ }, {
1240
+ "./external": 6,
1241
+ "./nodejsUtils": 14,
1242
+ "./stream/Crc32Probe": 25,
1243
+ "./utf8": 31,
1244
+ "./utils": 32,
1245
+ "./zipEntries": 33
1246
+ }],
1247
+ 12: [function(e, t, n) {
1248
+ var r = e("../utils"), i = e("../stream/GenericWorker");
1249
+ function a(e, t) {
1250
+ i.call(this, "Nodejs stream input adapter for " + e), this._upstreamEnded = !1, this._bindStream(t);
1251
+ }
1252
+ r.inherits(a, i), a.prototype._bindStream = function(e) {
1253
+ var t = this;
1254
+ (this._stream = e).pause(), e.on("data", function(e) {
1255
+ t.push({
1256
+ data: e,
1257
+ meta: { percent: 0 }
1258
+ });
1259
+ }).on("error", function(e) {
1260
+ t.isPaused ? this.generatedError = e : t.error(e);
1261
+ }).on("end", function() {
1262
+ t.isPaused ? t._upstreamEnded = !0 : t.end();
1263
+ });
1264
+ }, a.prototype.pause = function() {
1265
+ return !!i.prototype.pause.call(this) && (this._stream.pause(), !0);
1266
+ }, a.prototype.resume = function() {
1267
+ return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
1268
+ }, t.exports = a;
1269
+ }, {
1270
+ "../stream/GenericWorker": 28,
1271
+ "../utils": 32
1272
+ }],
1273
+ 13: [function(e, t, n) {
1274
+ var r = e("readable-stream").Readable;
1275
+ function i(e, t, n) {
1276
+ r.call(this, t), this._helper = e;
1277
+ var i = this;
1278
+ e.on("data", function(e, t) {
1279
+ i.push(e) || i._helper.pause(), n && n(t);
1280
+ }).on("error", function(e) {
1281
+ i.emit("error", e);
1282
+ }).on("end", function() {
1283
+ i.push(null);
1284
+ });
1285
+ }
1286
+ e("../utils").inherits(i, r), i.prototype._read = function() {
1287
+ this._helper.resume();
1288
+ }, t.exports = i;
1289
+ }, {
1290
+ "../utils": 32,
1291
+ "readable-stream": 16
1292
+ }],
1293
+ 14: [function(e, t, n) {
1294
+ t.exports = {
1295
+ isNode: y !== void 0,
1296
+ newBufferFrom: function(e, t) {
1297
+ if (y.from && y.from !== Uint8Array.from) return y.from(e, t);
1298
+ if (typeof e == "number") throw Error("The \"data\" argument must not be a number");
1299
+ return new y(e, t);
1300
+ },
1301
+ allocBuffer: function(e) {
1302
+ if (y.alloc) return y.alloc(e);
1303
+ var t = new y(e);
1304
+ return t.fill(0), t;
1305
+ },
1306
+ isBuffer: function(e) {
1307
+ return y.isBuffer(e);
1308
+ },
1309
+ isStream: function(e) {
1310
+ return e && typeof e.on == "function" && typeof e.pause == "function" && typeof e.resume == "function";
1311
+ }
1312
+ };
1313
+ }, {}],
1314
+ 15: [function(e, t, n) {
1315
+ function r(e, t, n) {
1316
+ var r, i = a.getTypeOf(t), s = a.extend(n || {}, c);
1317
+ s.date = s.date || /* @__PURE__ */ new Date(), s.compression !== null && (s.compression = s.compression.toUpperCase()), typeof s.unixPermissions == "string" && (s.unixPermissions = parseInt(s.unixPermissions, 8)), s.unixPermissions && 16384 & s.unixPermissions && (s.dir = !0), s.dosPermissions && 16 & s.dosPermissions && (s.dir = !0), s.dir && (e = h(e)), s.createFolders && (r = m(e)) && g.call(this, r, !0);
1318
+ var d = i === "string" && !1 === s.binary && !1 === s.base64;
1319
+ n && n.binary !== void 0 || (s.binary = !d), (t instanceof l && t.uncompressedSize === 0 || s.dir || !t || t.length === 0) && (s.base64 = !1, s.binary = !0, t = "", s.compression = "STORE", i = "string");
1320
+ var _ = null;
1321
+ _ = t instanceof l || t instanceof o ? t : f.isNode && f.isStream(t) ? new p(e, t) : a.prepareContent(e, t, s.binary, s.optimizedBinaryString, s.base64);
1322
+ var v = new u(e, _, s);
1323
+ this.files[e] = v;
1324
+ }
1325
+ var i = e("./utf8"), a = e("./utils"), o = e("./stream/GenericWorker"), s = e("./stream/StreamHelper"), c = e("./defaults"), l = e("./compressedObject"), u = e("./zipObject"), d = e("./generate"), f = e("./nodejsUtils"), p = e("./nodejs/NodejsStreamInputAdapter"), m = function(e) {
1326
+ e.slice(-1) === "/" && (e = e.substring(0, e.length - 1));
1327
+ var t = e.lastIndexOf("/");
1328
+ return 0 < t ? e.substring(0, t) : "";
1329
+ }, h = function(e) {
1330
+ return e.slice(-1) !== "/" && (e += "/"), e;
1331
+ }, g = function(e, t) {
1332
+ return t = t === void 0 ? c.createFolders : t, e = h(e), this.files[e] || r.call(this, e, null, {
1333
+ dir: !0,
1334
+ createFolders: t
1335
+ }), this.files[e];
1336
+ };
1337
+ function _(e) {
1338
+ return Object.prototype.toString.call(e) === "[object RegExp]";
1339
+ }
1340
+ t.exports = {
1341
+ load: function() {
1342
+ throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1343
+ },
1344
+ forEach: function(e) {
1345
+ var t, n, r;
1346
+ for (t in this.files) r = this.files[t], (n = t.slice(this.root.length, t.length)) && t.slice(0, this.root.length) === this.root && e(n, r);
1347
+ },
1348
+ filter: function(e) {
1349
+ var t = [];
1350
+ return this.forEach(function(n, r) {
1351
+ e(n, r) && t.push(r);
1352
+ }), t;
1353
+ },
1354
+ file: function(e, t, n) {
1355
+ if (arguments.length !== 1) return e = this.root + e, r.call(this, e, t, n), this;
1356
+ if (_(e)) {
1357
+ var i = e;
1358
+ return this.filter(function(e, t) {
1359
+ return !t.dir && i.test(e);
1360
+ });
1361
+ }
1362
+ var a = this.files[this.root + e];
1363
+ return a && !a.dir ? a : null;
1364
+ },
1365
+ folder: function(e) {
1366
+ if (!e) return this;
1367
+ if (_(e)) return this.filter(function(t, n) {
1368
+ return n.dir && e.test(t);
1369
+ });
1370
+ var t = this.root + e, n = g.call(this, t), r = this.clone();
1371
+ return r.root = n.name, r;
1372
+ },
1373
+ remove: function(e) {
1374
+ e = this.root + e;
1375
+ var t = this.files[e];
1376
+ if (t ||= (e.slice(-1) !== "/" && (e += "/"), this.files[e]), t && !t.dir) delete this.files[e];
1377
+ else for (var n = this.filter(function(t, n) {
1378
+ return n.name.slice(0, e.length) === e;
1379
+ }), r = 0; r < n.length; r++) delete this.files[n[r].name];
1380
+ return this;
1381
+ },
1382
+ generate: function() {
1383
+ throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1384
+ },
1385
+ generateInternalStream: function(e) {
1386
+ var t, n = {};
1387
+ try {
1388
+ if ((n = a.extend(e || {}, {
1389
+ streamFiles: !1,
1390
+ compression: "STORE",
1391
+ compressionOptions: null,
1392
+ type: "",
1393
+ platform: "DOS",
1394
+ comment: null,
1395
+ mimeType: "application/zip",
1396
+ encodeFileName: i.utf8encode
1397
+ })).type = n.type.toLowerCase(), n.compression = n.compression.toUpperCase(), n.type === "binarystring" && (n.type = "string"), !n.type) throw Error("No output type specified.");
1398
+ a.checkSupport(n.type), n.platform !== "darwin" && n.platform !== "freebsd" && n.platform !== "linux" && n.platform !== "sunos" || (n.platform = "UNIX"), n.platform === "win32" && (n.platform = "DOS");
1399
+ var r = n.comment || this.comment || "";
1400
+ t = d.generateWorker(this, n, r);
1401
+ } catch (e) {
1402
+ (t = new o("error")).error(e);
1403
+ }
1404
+ return new s(t, n.type || "string", n.mimeType);
1405
+ },
1406
+ generateAsync: function(e, t) {
1407
+ return this.generateInternalStream(e).accumulate(t);
1408
+ },
1409
+ generateNodeStream: function(e, t) {
1410
+ return (e ||= {}).type || (e.type = "nodebuffer"), this.generateInternalStream(e).toNodejsStream(t);
1411
+ }
1412
+ };
1413
+ }, {
1414
+ "./compressedObject": 2,
1415
+ "./defaults": 5,
1416
+ "./generate": 9,
1417
+ "./nodejs/NodejsStreamInputAdapter": 12,
1418
+ "./nodejsUtils": 14,
1419
+ "./stream/GenericWorker": 28,
1420
+ "./stream/StreamHelper": 29,
1421
+ "./utf8": 31,
1422
+ "./utils": 32,
1423
+ "./zipObject": 35
1424
+ }],
1425
+ 16: [function(e, t, n) {
1426
+ t.exports = e("stream");
1427
+ }, { stream: void 0 }],
1428
+ 17: [function(e, t, n) {
1429
+ var r = e("./DataReader");
1430
+ function i(e) {
1431
+ r.call(this, e);
1432
+ for (var t = 0; t < this.data.length; t++) e[t] = 255 & e[t];
1433
+ }
1434
+ e("../utils").inherits(i, r), i.prototype.byteAt = function(e) {
1435
+ return this.data[this.zero + e];
1436
+ }, i.prototype.lastIndexOfSignature = function(e) {
1437
+ for (var t = e.charCodeAt(0), n = e.charCodeAt(1), r = e.charCodeAt(2), i = e.charCodeAt(3), a = this.length - 4; 0 <= a; --a) if (this.data[a] === t && this.data[a + 1] === n && this.data[a + 2] === r && this.data[a + 3] === i) return a - this.zero;
1438
+ return -1;
1439
+ }, i.prototype.readAndCheckSignature = function(e) {
1440
+ var t = e.charCodeAt(0), n = e.charCodeAt(1), r = e.charCodeAt(2), i = e.charCodeAt(3), a = this.readData(4);
1441
+ return t === a[0] && n === a[1] && r === a[2] && i === a[3];
1442
+ }, i.prototype.readData = function(e) {
1443
+ if (this.checkOffset(e), e === 0) return [];
1444
+ var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
1445
+ return this.index += e, t;
1446
+ }, t.exports = i;
1447
+ }, {
1448
+ "../utils": 32,
1449
+ "./DataReader": 18
1450
+ }],
1451
+ 18: [function(e, t, n) {
1452
+ var r = e("../utils");
1453
+ function i(e) {
1454
+ this.data = e, this.length = e.length, this.index = 0, this.zero = 0;
1455
+ }
1456
+ i.prototype = {
1457
+ checkOffset: function(e) {
1458
+ this.checkIndex(this.index + e);
1459
+ },
1460
+ checkIndex: function(e) {
1461
+ if (this.length < this.zero + e || e < 0) throw Error("End of data reached (data length = " + this.length + ", asked index = " + e + "). Corrupted zip ?");
1462
+ },
1463
+ setIndex: function(e) {
1464
+ this.checkIndex(e), this.index = e;
1465
+ },
1466
+ skip: function(e) {
1467
+ this.setIndex(this.index + e);
1468
+ },
1469
+ byteAt: function() {},
1470
+ readInt: function(e) {
1471
+ var t, n = 0;
1472
+ for (this.checkOffset(e), t = this.index + e - 1; t >= this.index; t--) n = (n << 8) + this.byteAt(t);
1473
+ return this.index += e, n;
1474
+ },
1475
+ readString: function(e) {
1476
+ return r.transformTo("string", this.readData(e));
1477
+ },
1478
+ readData: function() {},
1479
+ lastIndexOfSignature: function() {},
1480
+ readAndCheckSignature: function() {},
1481
+ readDate: function() {
1482
+ var e = this.readInt(4);
1483
+ return new Date(Date.UTC(1980 + (e >> 25 & 127), (e >> 21 & 15) - 1, e >> 16 & 31, e >> 11 & 31, e >> 5 & 63, (31 & e) << 1));
1484
+ }
1485
+ }, t.exports = i;
1486
+ }, { "../utils": 32 }],
1487
+ 19: [function(e, t, n) {
1488
+ var r = e("./Uint8ArrayReader");
1489
+ function i(e) {
1490
+ r.call(this, e);
1491
+ }
1492
+ e("../utils").inherits(i, r), i.prototype.readData = function(e) {
1493
+ this.checkOffset(e);
1494
+ var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
1495
+ return this.index += e, t;
1496
+ }, t.exports = i;
1497
+ }, {
1498
+ "../utils": 32,
1499
+ "./Uint8ArrayReader": 21
1500
+ }],
1501
+ 20: [function(e, t, n) {
1502
+ var r = e("./DataReader");
1503
+ function i(e) {
1504
+ r.call(this, e);
1505
+ }
1506
+ e("../utils").inherits(i, r), i.prototype.byteAt = function(e) {
1507
+ return this.data.charCodeAt(this.zero + e);
1508
+ }, i.prototype.lastIndexOfSignature = function(e) {
1509
+ return this.data.lastIndexOf(e) - this.zero;
1510
+ }, i.prototype.readAndCheckSignature = function(e) {
1511
+ return e === this.readData(4);
1512
+ }, i.prototype.readData = function(e) {
1513
+ this.checkOffset(e);
1514
+ var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
1515
+ return this.index += e, t;
1516
+ }, t.exports = i;
1517
+ }, {
1518
+ "../utils": 32,
1519
+ "./DataReader": 18
1520
+ }],
1521
+ 21: [function(e, t, n) {
1522
+ var r = e("./ArrayReader");
1523
+ function i(e) {
1524
+ r.call(this, e);
1525
+ }
1526
+ e("../utils").inherits(i, r), i.prototype.readData = function(e) {
1527
+ if (this.checkOffset(e), e === 0) return new Uint8Array();
1528
+ var t = this.data.subarray(this.zero + this.index, this.zero + this.index + e);
1529
+ return this.index += e, t;
1530
+ }, t.exports = i;
1531
+ }, {
1532
+ "../utils": 32,
1533
+ "./ArrayReader": 17
1534
+ }],
1535
+ 22: [function(e, t, n) {
1536
+ var r = e("../utils"), i = e("../support"), a = e("./ArrayReader"), o = e("./StringReader"), s = e("./NodeBufferReader"), c = e("./Uint8ArrayReader");
1537
+ t.exports = function(e) {
1538
+ var t = r.getTypeOf(e);
1539
+ return r.checkSupport(t), t !== "string" || i.uint8array ? t === "nodebuffer" ? new s(e) : i.uint8array ? new c(r.transformTo("uint8array", e)) : new a(r.transformTo("array", e)) : new o(e);
1540
+ };
1541
+ }, {
1542
+ "../support": 30,
1543
+ "../utils": 32,
1544
+ "./ArrayReader": 17,
1545
+ "./NodeBufferReader": 19,
1546
+ "./StringReader": 20,
1547
+ "./Uint8ArrayReader": 21
1548
+ }],
1549
+ 23: [function(e, t, n) {
1550
+ n.LOCAL_FILE_HEADER = "PK", n.CENTRAL_FILE_HEADER = "PK", n.CENTRAL_DIRECTORY_END = "PK", n.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", n.ZIP64_CENTRAL_DIRECTORY_END = "PK", n.DATA_DESCRIPTOR = "PK\x07\b";
1551
+ }, {}],
1552
+ 24: [function(e, t, n) {
1553
+ var r = e("./GenericWorker"), i = e("../utils");
1554
+ function a(e) {
1555
+ r.call(this, "ConvertWorker to " + e), this.destType = e;
1556
+ }
1557
+ i.inherits(a, r), a.prototype.processChunk = function(e) {
1558
+ this.push({
1559
+ data: i.transformTo(this.destType, e.data),
1560
+ meta: e.meta
1561
+ });
1562
+ }, t.exports = a;
1563
+ }, {
1564
+ "../utils": 32,
1565
+ "./GenericWorker": 28
1566
+ }],
1567
+ 25: [function(e, t, n) {
1568
+ var r = e("./GenericWorker"), i = e("../crc32");
1569
+ function a() {
1570
+ r.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
1571
+ }
1572
+ e("../utils").inherits(a, r), a.prototype.processChunk = function(e) {
1573
+ this.streamInfo.crc32 = i(e.data, this.streamInfo.crc32 || 0), this.push(e);
1574
+ }, t.exports = a;
1575
+ }, {
1576
+ "../crc32": 4,
1577
+ "../utils": 32,
1578
+ "./GenericWorker": 28
1579
+ }],
1580
+ 26: [function(e, t, n) {
1581
+ var r = e("../utils"), i = e("./GenericWorker");
1582
+ function a(e) {
1583
+ i.call(this, "DataLengthProbe for " + e), this.propName = e, this.withStreamInfo(e, 0);
1584
+ }
1585
+ r.inherits(a, i), a.prototype.processChunk = function(e) {
1586
+ if (e) {
1587
+ var t = this.streamInfo[this.propName] || 0;
1588
+ this.streamInfo[this.propName] = t + e.data.length;
1589
+ }
1590
+ i.prototype.processChunk.call(this, e);
1591
+ }, t.exports = a;
1592
+ }, {
1593
+ "../utils": 32,
1594
+ "./GenericWorker": 28
1595
+ }],
1596
+ 27: [function(e, t, n) {
1597
+ var r = e("../utils"), i = e("./GenericWorker");
1598
+ function a(e) {
1599
+ i.call(this, "DataWorker");
1600
+ var t = this;
1601
+ this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, e.then(function(e) {
1602
+ t.dataIsReady = !0, t.data = e, t.max = e && e.length || 0, t.type = r.getTypeOf(e), t.isPaused || t._tickAndRepeat();
1603
+ }, function(e) {
1604
+ t.error(e);
1605
+ });
1606
+ }
1607
+ r.inherits(a, i), a.prototype.cleanUp = function() {
1608
+ i.prototype.cleanUp.call(this), this.data = null;
1609
+ }, a.prototype.resume = function() {
1610
+ return !!i.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, r.delay(this._tickAndRepeat, [], this)), !0);
1611
+ }, a.prototype._tickAndRepeat = function() {
1612
+ this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (r.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
1613
+ }, a.prototype._tick = function() {
1614
+ if (this.isPaused || this.isFinished) return !1;
1615
+ var e = null, t = Math.min(this.max, this.index + 16384);
1616
+ if (this.index >= this.max) return this.end();
1617
+ switch (this.type) {
1618
+ case "string":
1619
+ e = this.data.substring(this.index, t);
1620
+ break;
1621
+ case "uint8array":
1622
+ e = this.data.subarray(this.index, t);
1623
+ break;
1624
+ case "array":
1625
+ case "nodebuffer": e = this.data.slice(this.index, t);
1626
+ }
1627
+ return this.index = t, this.push({
1628
+ data: e,
1629
+ meta: { percent: this.max ? this.index / this.max * 100 : 0 }
1630
+ });
1631
+ }, t.exports = a;
1632
+ }, {
1633
+ "../utils": 32,
1634
+ "./GenericWorker": 28
1635
+ }],
1636
+ 28: [function(e, t, n) {
1637
+ function r(e) {
1638
+ this.name = e || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = {
1639
+ data: [],
1640
+ end: [],
1641
+ error: []
1642
+ }, this.previous = null;
1643
+ }
1644
+ r.prototype = {
1645
+ push: function(e) {
1646
+ this.emit("data", e);
1647
+ },
1648
+ end: function() {
1649
+ if (this.isFinished) return !1;
1650
+ this.flush();
1651
+ try {
1652
+ this.emit("end"), this.cleanUp(), this.isFinished = !0;
1653
+ } catch (e) {
1654
+ this.emit("error", e);
1655
+ }
1656
+ return !0;
1657
+ },
1658
+ error: function(e) {
1659
+ return !this.isFinished && (this.isPaused ? this.generatedError = e : (this.isFinished = !0, this.emit("error", e), this.previous && this.previous.error(e), this.cleanUp()), !0);
1660
+ },
1661
+ on: function(e, t) {
1662
+ return this._listeners[e].push(t), this;
1663
+ },
1664
+ cleanUp: function() {
1665
+ this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
1666
+ },
1667
+ emit: function(e, t) {
1668
+ if (this._listeners[e]) for (var n = 0; n < this._listeners[e].length; n++) this._listeners[e][n].call(this, t);
1669
+ },
1670
+ pipe: function(e) {
1671
+ return e.registerPrevious(this);
1672
+ },
1673
+ registerPrevious: function(e) {
1674
+ if (this.isLocked) throw Error("The stream '" + this + "' has already been used.");
1675
+ this.streamInfo = e.streamInfo, this.mergeStreamInfo(), this.previous = e;
1676
+ var t = this;
1677
+ return e.on("data", function(e) {
1678
+ t.processChunk(e);
1679
+ }), e.on("end", function() {
1680
+ t.end();
1681
+ }), e.on("error", function(e) {
1682
+ t.error(e);
1683
+ }), this;
1684
+ },
1685
+ pause: function() {
1686
+ return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
1687
+ },
1688
+ resume: function() {
1689
+ if (!this.isPaused || this.isFinished) return !1;
1690
+ var e = this.isPaused = !1;
1691
+ return this.generatedError && (this.error(this.generatedError), e = !0), this.previous && this.previous.resume(), !e;
1692
+ },
1693
+ flush: function() {},
1694
+ processChunk: function(e) {
1695
+ this.push(e);
1696
+ },
1697
+ withStreamInfo: function(e, t) {
1698
+ return this.extraStreamInfo[e] = t, this.mergeStreamInfo(), this;
1699
+ },
1700
+ mergeStreamInfo: function() {
1701
+ for (var e in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, e) && (this.streamInfo[e] = this.extraStreamInfo[e]);
1702
+ },
1703
+ lock: function() {
1704
+ if (this.isLocked) throw Error("The stream '" + this + "' has already been used.");
1705
+ this.isLocked = !0, this.previous && this.previous.lock();
1706
+ },
1707
+ toString: function() {
1708
+ var e = "Worker " + this.name;
1709
+ return this.previous ? this.previous + " -> " + e : e;
1710
+ }
1711
+ }, t.exports = r;
1712
+ }, {}],
1713
+ 29: [function(e, t, n) {
1714
+ var r = e("../utils"), i = e("./ConvertWorker"), a = e("./GenericWorker"), o = e("../base64"), s = e("../support"), c = e("../external"), l = null;
1715
+ if (s.nodestream) try {
1716
+ l = e("../nodejs/NodejsStreamOutputAdapter");
1717
+ } catch {}
1718
+ function u(e, t) {
1719
+ return new c.Promise(function(n, i) {
1720
+ var a = [], s = e._internalType, c = e._outputType, l = e._mimeType;
1721
+ e.on("data", function(e, n) {
1722
+ a.push(e), t && t(n);
1723
+ }).on("error", function(e) {
1724
+ a = [], i(e);
1725
+ }).on("end", function() {
1726
+ try {
1727
+ n(function(e, t, n) {
1728
+ switch (e) {
1729
+ case "blob": return r.newBlob(r.transformTo("arraybuffer", t), n);
1730
+ case "base64": return o.encode(t);
1731
+ default: return r.transformTo(e, t);
1732
+ }
1733
+ }(c, function(e, t) {
1734
+ var n, r = 0, i = null, a = 0;
1735
+ for (n = 0; n < t.length; n++) a += t[n].length;
1736
+ switch (e) {
1737
+ case "string": return t.join("");
1738
+ case "array": return Array.prototype.concat.apply([], t);
1739
+ case "uint8array":
1740
+ for (i = new Uint8Array(a), n = 0; n < t.length; n++) i.set(t[n], r), r += t[n].length;
1741
+ return i;
1742
+ case "nodebuffer": return y.concat(t);
1743
+ default: throw Error("concat : unsupported type '" + e + "'");
1744
+ }
1745
+ }(s, a), l));
1746
+ } catch (e) {
1747
+ i(e);
1748
+ }
1749
+ a = [];
1750
+ }).resume();
1751
+ });
1752
+ }
1753
+ function d(e, t, n) {
1754
+ var o = t;
1755
+ switch (t) {
1756
+ case "blob":
1757
+ case "arraybuffer":
1758
+ o = "uint8array";
1759
+ break;
1760
+ case "base64": o = "string";
1761
+ }
1762
+ try {
1763
+ this._internalType = o, this._outputType = t, this._mimeType = n, r.checkSupport(o), this._worker = e.pipe(new i(o)), e.lock();
1764
+ } catch (e) {
1765
+ this._worker = new a("error"), this._worker.error(e);
1766
+ }
1767
+ }
1768
+ d.prototype = {
1769
+ accumulate: function(e) {
1770
+ return u(this, e);
1771
+ },
1772
+ on: function(e, t) {
1773
+ var n = this;
1774
+ return e === "data" ? this._worker.on(e, function(e) {
1775
+ t.call(n, e.data, e.meta);
1776
+ }) : this._worker.on(e, function() {
1777
+ r.delay(t, arguments, n);
1778
+ }), this;
1779
+ },
1780
+ resume: function() {
1781
+ return r.delay(this._worker.resume, [], this._worker), this;
1782
+ },
1783
+ pause: function() {
1784
+ return this._worker.pause(), this;
1785
+ },
1786
+ toNodejsStream: function(e) {
1787
+ if (r.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw Error(this._outputType + " is not supported by this method");
1788
+ return new l(this, { objectMode: this._outputType !== "nodebuffer" }, e);
1789
+ }
1790
+ }, t.exports = d;
1791
+ }, {
1792
+ "../base64": 1,
1793
+ "../external": 6,
1794
+ "../nodejs/NodejsStreamOutputAdapter": 13,
1795
+ "../support": 30,
1796
+ "../utils": 32,
1797
+ "./ConvertWorker": 24,
1798
+ "./GenericWorker": 28
1799
+ }],
1800
+ 30: [function(e, t, n) {
1801
+ if (n.base64 = !0, n.array = !0, n.string = !0, n.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", n.nodebuffer = y !== void 0, n.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") n.blob = !1;
1802
+ else {
1803
+ var r = /* @__PURE__ */ new ArrayBuffer(0);
1804
+ try {
1805
+ n.blob = new Blob([r], { type: "application/zip" }).size === 0;
1806
+ } catch {
1807
+ try {
1808
+ var i = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
1809
+ i.append(r), n.blob = i.getBlob("application/zip").size === 0;
1810
+ } catch {
1811
+ n.blob = !1;
1812
+ }
1813
+ }
1814
+ }
1815
+ try {
1816
+ n.nodestream = !!e("readable-stream").Readable;
1817
+ } catch {
1818
+ n.nodestream = !1;
1819
+ }
1820
+ }, { "readable-stream": 16 }],
1821
+ 31: [function(e, t, n) {
1822
+ for (var r = e("./utils"), i = e("./support"), a = e("./nodejsUtils"), o = e("./stream/GenericWorker"), s = Array(256), c = 0; c < 256; c++) s[c] = 252 <= c ? 6 : 248 <= c ? 5 : 240 <= c ? 4 : 224 <= c ? 3 : 192 <= c ? 2 : 1;
1823
+ s[254] = s[254] = 1;
1824
+ function l() {
1825
+ o.call(this, "utf-8 decode"), this.leftOver = null;
1826
+ }
1827
+ function u() {
1828
+ o.call(this, "utf-8 encode");
1829
+ }
1830
+ n.utf8encode = function(e) {
1831
+ return i.nodebuffer ? a.newBufferFrom(e, "utf-8") : function(e) {
1832
+ var t, n, r, a, o, s = e.length, c = 0;
1833
+ for (a = 0; a < s; a++) (64512 & (n = e.charCodeAt(a))) == 55296 && a + 1 < s && (64512 & (r = e.charCodeAt(a + 1))) == 56320 && (n = 65536 + (n - 55296 << 10) + (r - 56320), a++), c += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4;
1834
+ for (t = i.uint8array ? new Uint8Array(c) : Array(c), a = o = 0; o < c; a++) (64512 & (n = e.charCodeAt(a))) == 55296 && a + 1 < s && (64512 & (r = e.charCodeAt(a + 1))) == 56320 && (n = 65536 + (n - 55296 << 10) + (r - 56320), a++), n < 128 ? t[o++] = n : (n < 2048 ? t[o++] = 192 | n >>> 6 : (n < 65536 ? t[o++] = 224 | n >>> 12 : (t[o++] = 240 | n >>> 18, t[o++] = 128 | n >>> 12 & 63), t[o++] = 128 | n >>> 6 & 63), t[o++] = 128 | 63 & n);
1835
+ return t;
1836
+ }(e);
1837
+ }, n.utf8decode = function(e) {
1838
+ return i.nodebuffer ? r.transformTo("nodebuffer", e).toString("utf-8") : function(e) {
1839
+ var t, n, i, a, o = e.length, c = Array(2 * o);
1840
+ for (t = n = 0; t < o;) if ((i = e[t++]) < 128) c[n++] = i;
1841
+ else if (4 < (a = s[i])) c[n++] = 65533, t += a - 1;
1842
+ else {
1843
+ for (i &= a === 2 ? 31 : a === 3 ? 15 : 7; 1 < a && t < o;) i = i << 6 | 63 & e[t++], a--;
1844
+ 1 < a ? c[n++] = 65533 : i < 65536 ? c[n++] = i : (i -= 65536, c[n++] = 55296 | i >> 10 & 1023, c[n++] = 56320 | 1023 & i);
1845
+ }
1846
+ return c.length !== n && (c.subarray ? c = c.subarray(0, n) : c.length = n), r.applyFromCharCode(c);
1847
+ }(e = r.transformTo(i.uint8array ? "uint8array" : "array", e));
1848
+ }, r.inherits(l, o), l.prototype.processChunk = function(e) {
1849
+ var t = r.transformTo(i.uint8array ? "uint8array" : "array", e.data);
1850
+ if (this.leftOver && this.leftOver.length) {
1851
+ if (i.uint8array) {
1852
+ var a = t;
1853
+ (t = new Uint8Array(a.length + this.leftOver.length)).set(this.leftOver, 0), t.set(a, this.leftOver.length);
1854
+ } else t = this.leftOver.concat(t);
1855
+ this.leftOver = null;
1856
+ }
1857
+ var o = function(e, t) {
1858
+ var n;
1859
+ for ((t ||= e.length) > e.length && (t = e.length), n = t - 1; 0 <= n && (192 & e[n]) == 128;) n--;
1860
+ return n < 0 || n === 0 ? t : n + s[e[n]] > t ? n : t;
1861
+ }(t), c = t;
1862
+ o !== t.length && (i.uint8array ? (c = t.subarray(0, o), this.leftOver = t.subarray(o, t.length)) : (c = t.slice(0, o), this.leftOver = t.slice(o, t.length))), this.push({
1863
+ data: n.utf8decode(c),
1864
+ meta: e.meta
1865
+ });
1866
+ }, l.prototype.flush = function() {
1867
+ this.leftOver && this.leftOver.length && (this.push({
1868
+ data: n.utf8decode(this.leftOver),
1869
+ meta: {}
1870
+ }), this.leftOver = null);
1871
+ }, n.Utf8DecodeWorker = l, r.inherits(u, o), u.prototype.processChunk = function(e) {
1872
+ this.push({
1873
+ data: n.utf8encode(e.data),
1874
+ meta: e.meta
1875
+ });
1876
+ }, n.Utf8EncodeWorker = u;
1877
+ }, {
1878
+ "./nodejsUtils": 14,
1879
+ "./stream/GenericWorker": 28,
1880
+ "./support": 30,
1881
+ "./utils": 32
1882
+ }],
1883
+ 32: [function(e, t, n) {
1884
+ var r = e("./support"), i = e("./base64"), a = e("./nodejsUtils"), o = e("./external");
1885
+ function s(e) {
1886
+ return e;
1887
+ }
1888
+ function c(e, t) {
1889
+ for (var n = 0; n < e.length; ++n) t[n] = 255 & e.charCodeAt(n);
1890
+ return t;
1891
+ }
1892
+ e("setimmediate"), n.newBlob = function(e, t) {
1893
+ n.checkSupport("blob");
1894
+ try {
1895
+ return new Blob([e], { type: t });
1896
+ } catch {
1897
+ try {
1898
+ var r = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
1899
+ return r.append(e), r.getBlob(t);
1900
+ } catch {
1901
+ throw Error("Bug : can't construct the Blob.");
1902
+ }
1903
+ }
1904
+ };
1905
+ var l = {
1906
+ stringifyByChunk: function(e, t, n) {
1907
+ var r = [], i = 0, a = e.length;
1908
+ if (a <= n) return String.fromCharCode.apply(null, e);
1909
+ for (; i < a;) t === "array" || t === "nodebuffer" ? r.push(String.fromCharCode.apply(null, e.slice(i, Math.min(i + n, a)))) : r.push(String.fromCharCode.apply(null, e.subarray(i, Math.min(i + n, a)))), i += n;
1910
+ return r.join("");
1911
+ },
1912
+ stringifyByChar: function(e) {
1913
+ for (var t = "", n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
1914
+ return t;
1915
+ },
1916
+ applyCanBeUsed: {
1917
+ uint8array: function() {
1918
+ try {
1919
+ return r.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
1920
+ } catch {
1921
+ return !1;
1922
+ }
1923
+ }(),
1924
+ nodebuffer: function() {
1925
+ try {
1926
+ return r.nodebuffer && String.fromCharCode.apply(null, a.allocBuffer(1)).length === 1;
1927
+ } catch {
1928
+ return !1;
1929
+ }
1930
+ }()
1931
+ }
1932
+ };
1933
+ function u(e) {
1934
+ var t = 65536, r = n.getTypeOf(e), i = !0;
1935
+ if (r === "uint8array" ? i = l.applyCanBeUsed.uint8array : r === "nodebuffer" && (i = l.applyCanBeUsed.nodebuffer), i) for (; 1 < t;) try {
1936
+ return l.stringifyByChunk(e, r, t);
1937
+ } catch {
1938
+ t = Math.floor(t / 2);
1939
+ }
1940
+ return l.stringifyByChar(e);
1941
+ }
1942
+ function d(e, t) {
1943
+ for (var n = 0; n < e.length; n++) t[n] = e[n];
1944
+ return t;
1945
+ }
1946
+ n.applyFromCharCode = u;
1947
+ var f = {};
1948
+ f.string = {
1949
+ string: s,
1950
+ array: function(e) {
1951
+ return c(e, Array(e.length));
1952
+ },
1953
+ arraybuffer: function(e) {
1954
+ return f.string.uint8array(e).buffer;
1955
+ },
1956
+ uint8array: function(e) {
1957
+ return c(e, new Uint8Array(e.length));
1958
+ },
1959
+ nodebuffer: function(e) {
1960
+ return c(e, a.allocBuffer(e.length));
1961
+ }
1962
+ }, f.array = {
1963
+ string: u,
1964
+ array: s,
1965
+ arraybuffer: function(e) {
1966
+ return new Uint8Array(e).buffer;
1967
+ },
1968
+ uint8array: function(e) {
1969
+ return new Uint8Array(e);
1970
+ },
1971
+ nodebuffer: function(e) {
1972
+ return a.newBufferFrom(e);
1973
+ }
1974
+ }, f.arraybuffer = {
1975
+ string: function(e) {
1976
+ return u(new Uint8Array(e));
1977
+ },
1978
+ array: function(e) {
1979
+ return d(new Uint8Array(e), Array(e.byteLength));
1980
+ },
1981
+ arraybuffer: s,
1982
+ uint8array: function(e) {
1983
+ return new Uint8Array(e);
1984
+ },
1985
+ nodebuffer: function(e) {
1986
+ return a.newBufferFrom(new Uint8Array(e));
1987
+ }
1988
+ }, f.uint8array = {
1989
+ string: u,
1990
+ array: function(e) {
1991
+ return d(e, Array(e.length));
1992
+ },
1993
+ arraybuffer: function(e) {
1994
+ return e.buffer;
1995
+ },
1996
+ uint8array: s,
1997
+ nodebuffer: function(e) {
1998
+ return a.newBufferFrom(e);
1999
+ }
2000
+ }, f.nodebuffer = {
2001
+ string: u,
2002
+ array: function(e) {
2003
+ return d(e, Array(e.length));
2004
+ },
2005
+ arraybuffer: function(e) {
2006
+ return f.nodebuffer.uint8array(e).buffer;
2007
+ },
2008
+ uint8array: function(e) {
2009
+ return d(e, new Uint8Array(e.length));
2010
+ },
2011
+ nodebuffer: s
2012
+ }, n.transformTo = function(e, t) {
2013
+ return t ||= "", e ? (n.checkSupport(e), f[n.getTypeOf(t)][e](t)) : t;
2014
+ }, n.resolve = function(e) {
2015
+ for (var t = e.split("/"), n = [], r = 0; r < t.length; r++) {
2016
+ var i = t[r];
2017
+ i === "." || i === "" && r !== 0 && r !== t.length - 1 || (i === ".." ? n.pop() : n.push(i));
2018
+ }
2019
+ return n.join("/");
2020
+ }, n.getTypeOf = function(e) {
2021
+ return typeof e == "string" ? "string" : Object.prototype.toString.call(e) === "[object Array]" ? "array" : r.nodebuffer && a.isBuffer(e) ? "nodebuffer" : r.uint8array && e instanceof Uint8Array ? "uint8array" : r.arraybuffer && e instanceof ArrayBuffer ? "arraybuffer" : void 0;
2022
+ }, n.checkSupport = function(e) {
2023
+ if (!r[e.toLowerCase()]) throw Error(e + " is not supported by this platform");
2024
+ }, n.MAX_VALUE_16BITS = 65535, n.MAX_VALUE_32BITS = -1, n.pretty = function(e) {
2025
+ var t, n, r = "";
2026
+ for (n = 0; n < (e || "").length; n++) r += "\\x" + ((t = e.charCodeAt(n)) < 16 ? "0" : "") + t.toString(16).toUpperCase();
2027
+ return r;
2028
+ }, n.delay = function(e, t, n) {
2029
+ setImmediate(function() {
2030
+ e.apply(n || null, t || []);
2031
+ });
2032
+ }, n.inherits = function(e, t) {
2033
+ function n() {}
2034
+ n.prototype = t.prototype, e.prototype = new n();
2035
+ }, n.extend = function() {
2036
+ var e, t, n = {};
2037
+ for (e = 0; e < arguments.length; e++) for (t in arguments[e]) Object.prototype.hasOwnProperty.call(arguments[e], t) && n[t] === void 0 && (n[t] = arguments[e][t]);
2038
+ return n;
2039
+ }, n.prepareContent = function(e, t, a, s, l) {
2040
+ return o.Promise.resolve(t).then(function(e) {
2041
+ return r.blob && (e instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(e)) !== -1) && typeof FileReader < "u" ? new o.Promise(function(t, n) {
2042
+ var r = new FileReader();
2043
+ r.onload = function(e) {
2044
+ t(e.target.result);
2045
+ }, r.onerror = function(e) {
2046
+ n(e.target.error);
2047
+ }, r.readAsArrayBuffer(e);
2048
+ }) : e;
2049
+ }).then(function(t) {
2050
+ var u = n.getTypeOf(t);
2051
+ return u ? (u === "arraybuffer" ? t = n.transformTo("uint8array", t) : u === "string" && (l ? t = i.decode(t) : a && !0 !== s && (t = function(e) {
2052
+ return c(e, r.uint8array ? new Uint8Array(e.length) : Array(e.length));
2053
+ }(t))), t) : o.Promise.reject(/* @__PURE__ */ Error("Can't read the data of '" + e + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
2054
+ });
2055
+ };
2056
+ }, {
2057
+ "./base64": 1,
2058
+ "./external": 6,
2059
+ "./nodejsUtils": 14,
2060
+ "./support": 30,
2061
+ setimmediate: 54
2062
+ }],
2063
+ 33: [function(e, t, n) {
2064
+ var r = e("./reader/readerFor"), i = e("./utils"), a = e("./signature"), o = e("./zipEntry"), s = e("./support");
2065
+ function c(e) {
2066
+ this.files = [], this.loadOptions = e;
2067
+ }
2068
+ c.prototype = {
2069
+ checkSignature: function(e) {
2070
+ if (!this.reader.readAndCheckSignature(e)) {
2071
+ this.reader.index -= 4;
2072
+ var t = this.reader.readString(4);
2073
+ throw Error("Corrupted zip or bug: unexpected signature (" + i.pretty(t) + ", expected " + i.pretty(e) + ")");
2074
+ }
2075
+ },
2076
+ isSignature: function(e, t) {
2077
+ var n = this.reader.index;
2078
+ this.reader.setIndex(e);
2079
+ var r = this.reader.readString(4) === t;
2080
+ return this.reader.setIndex(n), r;
2081
+ },
2082
+ readBlockEndOfCentral: function() {
2083
+ 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);
2084
+ var e = this.reader.readData(this.zipCommentLength), t = s.uint8array ? "uint8array" : "array", n = i.transformTo(t, e);
2085
+ this.zipComment = this.loadOptions.decodeFileName(n);
2086
+ },
2087
+ readBlockZip64EndOfCentral: function() {
2088
+ 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 = {};
2089
+ for (var e, t, n, r = this.zip64EndOfCentralSize - 44; 0 < r;) e = this.reader.readInt(2), t = this.reader.readInt(4), n = this.reader.readData(t), this.zip64ExtensibleData[e] = {
2090
+ id: e,
2091
+ length: t,
2092
+ value: n
2093
+ };
2094
+ },
2095
+ readBlockZip64EndOfCentralLocator: function() {
2096
+ if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw Error("Multi-volumes zip are not supported");
2097
+ },
2098
+ readLocalFiles: function() {
2099
+ var e, t;
2100
+ for (e = 0; e < this.files.length; e++) t = this.files[e], this.reader.setIndex(t.localHeaderOffset), this.checkSignature(a.LOCAL_FILE_HEADER), t.readLocalPart(this.reader), t.handleUTF8(), t.processAttributes();
2101
+ },
2102
+ readCentralDir: function() {
2103
+ var e;
2104
+ for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);) (e = new o({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(e);
2105
+ if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
2106
+ },
2107
+ readEndOfCentral: function() {
2108
+ var e = this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);
2109
+ if (e < 0) throw this.isSignature(0, a.LOCAL_FILE_HEADER) ? /* @__PURE__ */ Error("Corrupted zip: can't find end of central directory") : /* @__PURE__ */ 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");
2110
+ this.reader.setIndex(e);
2111
+ var t = e;
2112
+ if (this.checkSignature(a.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === i.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i.MAX_VALUE_16BITS || this.centralDirRecords === i.MAX_VALUE_16BITS || this.centralDirSize === i.MAX_VALUE_32BITS || this.centralDirOffset === i.MAX_VALUE_32BITS) {
2113
+ if (this.zip64 = !0, (e = this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
2114
+ if (this.reader.setIndex(e), this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, a.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw Error("Corrupted zip: can't find the ZIP64 end of central directory");
2115
+ this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
2116
+ }
2117
+ var n = this.centralDirOffset + this.centralDirSize;
2118
+ this.zip64 && (n += 20, n += 12 + this.zip64EndOfCentralSize);
2119
+ var r = t - n;
2120
+ if (0 < r) this.isSignature(t, a.CENTRAL_FILE_HEADER) || (this.reader.zero = r);
2121
+ else if (r < 0) throw Error("Corrupted zip: missing " + Math.abs(r) + " bytes.");
2122
+ },
2123
+ prepareReader: function(e) {
2124
+ this.reader = r(e);
2125
+ },
2126
+ load: function(e) {
2127
+ this.prepareReader(e), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
2128
+ }
2129
+ }, t.exports = c;
2130
+ }, {
2131
+ "./reader/readerFor": 22,
2132
+ "./signature": 23,
2133
+ "./support": 30,
2134
+ "./utils": 32,
2135
+ "./zipEntry": 34
2136
+ }],
2137
+ 34: [function(e, t, n) {
2138
+ var r = e("./reader/readerFor"), i = e("./utils"), a = e("./compressedObject"), o = e("./crc32"), s = e("./utf8"), c = e("./compressions"), l = e("./support");
2139
+ function u(e, t) {
2140
+ this.options = e, this.loadOptions = t;
2141
+ }
2142
+ u.prototype = {
2143
+ isEncrypted: function() {
2144
+ return (1 & this.bitFlag) == 1;
2145
+ },
2146
+ useUTF8: function() {
2147
+ return (2048 & this.bitFlag) == 2048;
2148
+ },
2149
+ readLocalPart: function(e) {
2150
+ var t, n;
2151
+ if (e.skip(22), this.fileNameLength = e.readInt(2), n = e.readInt(2), this.fileName = e.readData(this.fileNameLength), e.skip(n), this.compressedSize === -1 || this.uncompressedSize === -1) throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
2152
+ if ((t = function(e) {
2153
+ for (var t in c) if (Object.prototype.hasOwnProperty.call(c, t) && c[t].magic === e) return c[t];
2154
+ return null;
2155
+ }(this.compressionMethod)) === null) throw Error("Corrupted zip : compression " + i.pretty(this.compressionMethod) + " unknown (inner file : " + i.transformTo("string", this.fileName) + ")");
2156
+ this.decompressed = new a(this.compressedSize, this.uncompressedSize, this.crc32, t, e.readData(this.compressedSize));
2157
+ },
2158
+ readCentralPart: function(e) {
2159
+ this.versionMadeBy = e.readInt(2), e.skip(2), this.bitFlag = e.readInt(2), this.compressionMethod = e.readString(2), this.date = e.readDate(), this.crc32 = e.readInt(4), this.compressedSize = e.readInt(4), this.uncompressedSize = e.readInt(4);
2160
+ var t = e.readInt(2);
2161
+ if (this.extraFieldsLength = e.readInt(2), this.fileCommentLength = e.readInt(2), this.diskNumberStart = e.readInt(2), this.internalFileAttributes = e.readInt(2), this.externalFileAttributes = e.readInt(4), this.localHeaderOffset = e.readInt(4), this.isEncrypted()) throw Error("Encrypted zip are not supported");
2162
+ e.skip(t), this.readExtraFields(e), this.parseZIP64ExtraField(e), this.fileComment = e.readData(this.fileCommentLength);
2163
+ },
2164
+ processAttributes: function() {
2165
+ this.unixPermissions = null, this.dosPermissions = null;
2166
+ var e = this.versionMadeBy >> 8;
2167
+ this.dir = !!(16 & this.externalFileAttributes), e == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), e == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
2168
+ },
2169
+ parseZIP64ExtraField: function() {
2170
+ if (this.extraFields[1]) {
2171
+ var e = r(this.extraFields[1].value);
2172
+ this.uncompressedSize === i.MAX_VALUE_32BITS && (this.uncompressedSize = e.readInt(8)), this.compressedSize === i.MAX_VALUE_32BITS && (this.compressedSize = e.readInt(8)), this.localHeaderOffset === i.MAX_VALUE_32BITS && (this.localHeaderOffset = e.readInt(8)), this.diskNumberStart === i.MAX_VALUE_32BITS && (this.diskNumberStart = e.readInt(4));
2173
+ }
2174
+ },
2175
+ readExtraFields: function(e) {
2176
+ var t, n, r, i = e.index + this.extraFieldsLength;
2177
+ for (this.extraFields ||= {}; e.index + 4 < i;) t = e.readInt(2), n = e.readInt(2), r = e.readData(n), this.extraFields[t] = {
2178
+ id: t,
2179
+ length: n,
2180
+ value: r
2181
+ };
2182
+ e.setIndex(i);
2183
+ },
2184
+ handleUTF8: function() {
2185
+ var e = l.uint8array ? "uint8array" : "array";
2186
+ if (this.useUTF8()) this.fileNameStr = s.utf8decode(this.fileName), this.fileCommentStr = s.utf8decode(this.fileComment);
2187
+ else {
2188
+ var t = this.findExtraFieldUnicodePath();
2189
+ if (t !== null) this.fileNameStr = t;
2190
+ else {
2191
+ var n = i.transformTo(e, this.fileName);
2192
+ this.fileNameStr = this.loadOptions.decodeFileName(n);
2193
+ }
2194
+ var r = this.findExtraFieldUnicodeComment();
2195
+ if (r !== null) this.fileCommentStr = r;
2196
+ else {
2197
+ var a = i.transformTo(e, this.fileComment);
2198
+ this.fileCommentStr = this.loadOptions.decodeFileName(a);
2199
+ }
2200
+ }
2201
+ },
2202
+ findExtraFieldUnicodePath: function() {
2203
+ var e = this.extraFields[28789];
2204
+ if (e) {
2205
+ var t = r(e.value);
2206
+ return t.readInt(1) === 1 && o(this.fileName) === t.readInt(4) ? s.utf8decode(t.readData(e.length - 5)) : null;
2207
+ }
2208
+ return null;
2209
+ },
2210
+ findExtraFieldUnicodeComment: function() {
2211
+ var e = this.extraFields[25461];
2212
+ if (e) {
2213
+ var t = r(e.value);
2214
+ return t.readInt(1) === 1 && o(this.fileComment) === t.readInt(4) ? s.utf8decode(t.readData(e.length - 5)) : null;
2215
+ }
2216
+ return null;
2217
+ }
2218
+ }, t.exports = u;
2219
+ }, {
2220
+ "./compressedObject": 2,
2221
+ "./compressions": 3,
2222
+ "./crc32": 4,
2223
+ "./reader/readerFor": 22,
2224
+ "./support": 30,
2225
+ "./utf8": 31,
2226
+ "./utils": 32
2227
+ }],
2228
+ 35: [function(e, t, n) {
2229
+ function r(e, t, n) {
2230
+ this.name = e, this.dir = n.dir, this.date = n.date, this.comment = n.comment, this.unixPermissions = n.unixPermissions, this.dosPermissions = n.dosPermissions, this._data = t, this._dataBinary = n.binary, this.options = {
2231
+ compression: n.compression,
2232
+ compressionOptions: n.compressionOptions
2233
+ };
2234
+ }
2235
+ var i = e("./stream/StreamHelper"), a = e("./stream/DataWorker"), o = e("./utf8"), s = e("./compressedObject"), c = e("./stream/GenericWorker");
2236
+ r.prototype = {
2237
+ internalStream: function(e) {
2238
+ var t = null, n = "string";
2239
+ try {
2240
+ if (!e) throw Error("No output type specified.");
2241
+ var r = (n = e.toLowerCase()) === "string" || n === "text";
2242
+ n !== "binarystring" && n !== "text" || (n = "string"), t = this._decompressWorker();
2243
+ var a = !this._dataBinary;
2244
+ a && !r && (t = t.pipe(new o.Utf8EncodeWorker())), !a && r && (t = t.pipe(new o.Utf8DecodeWorker()));
2245
+ } catch (e) {
2246
+ (t = new c("error")).error(e);
2247
+ }
2248
+ return new i(t, n, "");
2249
+ },
2250
+ async: function(e, t) {
2251
+ return this.internalStream(e).accumulate(t);
2252
+ },
2253
+ nodeStream: function(e, t) {
2254
+ return this.internalStream(e || "nodebuffer").toNodejsStream(t);
2255
+ },
2256
+ _compressWorker: function(e, t) {
2257
+ if (this._data instanceof s && this._data.compression.magic === e.magic) return this._data.getCompressedWorker();
2258
+ var n = this._decompressWorker();
2259
+ return this._dataBinary || (n = n.pipe(new o.Utf8EncodeWorker())), s.createWorkerFrom(n, e, t);
2260
+ },
2261
+ _decompressWorker: function() {
2262
+ return this._data instanceof s ? this._data.getContentWorker() : this._data instanceof c ? this._data : new a(this._data);
2263
+ }
2264
+ };
2265
+ for (var l = [
2266
+ "asText",
2267
+ "asBinary",
2268
+ "asNodeBuffer",
2269
+ "asUint8Array",
2270
+ "asArrayBuffer"
2271
+ ], u = function() {
2272
+ throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
2273
+ }, d = 0; d < l.length; d++) r.prototype[l[d]] = u;
2274
+ t.exports = r;
2275
+ }, {
2276
+ "./compressedObject": 2,
2277
+ "./stream/DataWorker": 27,
2278
+ "./stream/GenericWorker": 28,
2279
+ "./stream/StreamHelper": 29,
2280
+ "./utf8": 31
2281
+ }],
2282
+ 36: [function(e, t, n) {
2283
+ (function(e) {
2284
+ var n, r, i = e.MutationObserver || e.WebKitMutationObserver;
2285
+ if (i) {
2286
+ var a = 0, o = new i(u), s = e.document.createTextNode("");
2287
+ o.observe(s, { characterData: !0 }), n = function() {
2288
+ s.data = a = ++a % 2;
2289
+ };
2290
+ } else if (e.setImmediate || e.MessageChannel === void 0) n = "document" in e && "onreadystatechange" in e.document.createElement("script") ? function() {
2291
+ var t = e.document.createElement("script");
2292
+ t.onreadystatechange = function() {
2293
+ u(), t.onreadystatechange = null, t.parentNode.removeChild(t), t = null;
2294
+ }, e.document.documentElement.appendChild(t);
2295
+ } : function() {
2296
+ setTimeout(u, 0);
2297
+ };
2298
+ else {
2299
+ var c = new e.MessageChannel();
2300
+ c.port1.onmessage = u, n = function() {
2301
+ c.port2.postMessage(0);
2302
+ };
2303
+ }
2304
+ var l = [];
2305
+ function u() {
2306
+ var e, t;
2307
+ r = !0;
2308
+ for (var n = l.length; n;) {
2309
+ for (t = l, l = [], e = -1; ++e < n;) t[e]();
2310
+ n = l.length;
2311
+ }
2312
+ r = !1;
2313
+ }
2314
+ t.exports = function(e) {
2315
+ l.push(e) !== 1 || r || n();
2316
+ };
2317
+ }).call(this, x === void 0 ? typeof self < "u" ? self : typeof window < "u" ? window : {} : x);
2318
+ }, {}],
2319
+ 37: [function(e, t, n) {
2320
+ var r = e("immediate");
2321
+ function i() {}
2322
+ var a = {}, o = ["REJECTED"], s = ["FULFILLED"], c = ["PENDING"];
2323
+ function l(e) {
2324
+ if (typeof e != "function") throw TypeError("resolver must be a function");
2325
+ this.state = c, this.queue = [], this.outcome = void 0, e !== i && p(this, e);
2326
+ }
2327
+ function u(e, t, n) {
2328
+ this.promise = e, typeof t == "function" && (this.onFulfilled = t, this.callFulfilled = this.otherCallFulfilled), typeof n == "function" && (this.onRejected = n, this.callRejected = this.otherCallRejected);
2329
+ }
2330
+ function d(e, t, n) {
2331
+ r(function() {
2332
+ var r;
2333
+ try {
2334
+ r = t(n);
2335
+ } catch (t) {
2336
+ return a.reject(e, t);
2337
+ }
2338
+ r === e ? a.reject(e, /* @__PURE__ */ TypeError("Cannot resolve promise with itself")) : a.resolve(e, r);
2339
+ });
2340
+ }
2341
+ function f(e) {
2342
+ var t = e && e.then;
2343
+ if (e && (typeof e == "object" || typeof e == "function") && typeof t == "function") return function() {
2344
+ t.apply(e, arguments);
2345
+ };
2346
+ }
2347
+ function p(e, t) {
2348
+ var n = !1;
2349
+ function r(t) {
2350
+ n || (n = !0, a.reject(e, t));
2351
+ }
2352
+ function i(t) {
2353
+ n || (n = !0, a.resolve(e, t));
2354
+ }
2355
+ var o = m(function() {
2356
+ t(i, r);
2357
+ });
2358
+ o.status === "error" && r(o.value);
2359
+ }
2360
+ function m(e, t) {
2361
+ var n = {};
2362
+ try {
2363
+ n.value = e(t), n.status = "success";
2364
+ } catch (e) {
2365
+ n.status = "error", n.value = e;
2366
+ }
2367
+ return n;
2368
+ }
2369
+ (t.exports = l).prototype.finally = function(e) {
2370
+ if (typeof e != "function") return this;
2371
+ var t = this.constructor;
2372
+ return this.then(function(n) {
2373
+ return t.resolve(e()).then(function() {
2374
+ return n;
2375
+ });
2376
+ }, function(n) {
2377
+ return t.resolve(e()).then(function() {
2378
+ throw n;
2379
+ });
2380
+ });
2381
+ }, l.prototype.catch = function(e) {
2382
+ return this.then(null, e);
2383
+ }, l.prototype.then = function(e, t) {
2384
+ if (typeof e != "function" && this.state === s || typeof t != "function" && this.state === o) return this;
2385
+ var n = new this.constructor(i);
2386
+ return this.state === c ? this.queue.push(new u(n, e, t)) : d(n, this.state === s ? e : t, this.outcome), n;
2387
+ }, u.prototype.callFulfilled = function(e) {
2388
+ a.resolve(this.promise, e);
2389
+ }, u.prototype.otherCallFulfilled = function(e) {
2390
+ d(this.promise, this.onFulfilled, e);
2391
+ }, u.prototype.callRejected = function(e) {
2392
+ a.reject(this.promise, e);
2393
+ }, u.prototype.otherCallRejected = function(e) {
2394
+ d(this.promise, this.onRejected, e);
2395
+ }, a.resolve = function(e, t) {
2396
+ var n = m(f, t);
2397
+ if (n.status === "error") return a.reject(e, n.value);
2398
+ var r = n.value;
2399
+ if (r) p(e, r);
2400
+ else {
2401
+ e.state = s, e.outcome = t;
2402
+ for (var i = -1, o = e.queue.length; ++i < o;) e.queue[i].callFulfilled(t);
2403
+ }
2404
+ return e;
2405
+ }, a.reject = function(e, t) {
2406
+ e.state = o, e.outcome = t;
2407
+ for (var n = -1, r = e.queue.length; ++n < r;) e.queue[n].callRejected(t);
2408
+ return e;
2409
+ }, l.resolve = function(e) {
2410
+ return e instanceof this ? e : a.resolve(new this(i), e);
2411
+ }, l.reject = function(e) {
2412
+ var t = new this(i);
2413
+ return a.reject(t, e);
2414
+ }, l.all = function(e) {
2415
+ var t = this;
2416
+ if (Object.prototype.toString.call(e) !== "[object Array]") return this.reject(/* @__PURE__ */ TypeError("must be an array"));
2417
+ var n = e.length, r = !1;
2418
+ if (!n) return this.resolve([]);
2419
+ for (var o = Array(n), s = 0, c = -1, l = new this(i); ++c < n;) u(e[c], c);
2420
+ return l;
2421
+ function u(e, i) {
2422
+ t.resolve(e).then(function(e) {
2423
+ o[i] = e, ++s !== n || r || (r = !0, a.resolve(l, o));
2424
+ }, function(e) {
2425
+ r || (r = !0, a.reject(l, e));
2426
+ });
2427
+ }
2428
+ }, l.race = function(e) {
2429
+ var t = this;
2430
+ if (Object.prototype.toString.call(e) !== "[object Array]") return this.reject(/* @__PURE__ */ TypeError("must be an array"));
2431
+ var n = e.length, r = !1;
2432
+ if (!n) return this.resolve([]);
2433
+ for (var o = -1, s = new this(i); ++o < n;) c = e[o], t.resolve(c).then(function(e) {
2434
+ r || (r = !0, a.resolve(s, e));
2435
+ }, function(e) {
2436
+ r || (r = !0, a.reject(s, e));
2437
+ });
2438
+ var c;
2439
+ return s;
2440
+ };
2441
+ }, { immediate: 36 }],
2442
+ 38: [function(e, t, n) {
2443
+ var r = {};
2444
+ (0, e("./lib/utils/common").assign)(r, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = r;
2445
+ }, {
2446
+ "./lib/deflate": 39,
2447
+ "./lib/inflate": 40,
2448
+ "./lib/utils/common": 41,
2449
+ "./lib/zlib/constants": 44
2450
+ }],
2451
+ 39: [function(e, t, n) {
2452
+ var r = e("./zlib/deflate"), i = e("./utils/common"), a = e("./utils/strings"), o = e("./zlib/messages"), s = e("./zlib/zstream"), c = Object.prototype.toString, l = 0, u = -1, d = 0, f = 8;
2453
+ function p(e) {
2454
+ if (!(this instanceof p)) return new p(e);
2455
+ this.options = i.assign({
2456
+ level: u,
2457
+ method: f,
2458
+ chunkSize: 16384,
2459
+ windowBits: 15,
2460
+ memLevel: 8,
2461
+ strategy: d,
2462
+ to: ""
2463
+ }, e || {});
2464
+ var t = this.options;
2465
+ t.raw && 0 < t.windowBits ? t.windowBits = -t.windowBits : t.gzip && 0 < t.windowBits && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new s(), this.strm.avail_out = 0;
2466
+ var n = r.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy);
2467
+ if (n !== l) throw Error(o[n]);
2468
+ if (t.header && r.deflateSetHeader(this.strm, t.header), t.dictionary) {
2469
+ var m;
2470
+ if (m = typeof t.dictionary == "string" ? a.string2buf(t.dictionary) : c.call(t.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(t.dictionary) : t.dictionary, (n = r.deflateSetDictionary(this.strm, m)) !== l) throw Error(o[n]);
2471
+ this._dict_set = !0;
2472
+ }
2473
+ }
2474
+ function m(e, t) {
2475
+ var n = new p(t);
2476
+ if (n.push(e, !0), n.err) throw n.msg || o[n.err];
2477
+ return n.result;
2478
+ }
2479
+ p.prototype.push = function(e, t) {
2480
+ var n, o, s = this.strm, u = this.options.chunkSize;
2481
+ if (this.ended) return !1;
2482
+ o = t === ~~t ? t : !0 === t ? 4 : 0, typeof e == "string" ? s.input = a.string2buf(e) : c.call(e) === "[object ArrayBuffer]" ? s.input = new Uint8Array(e) : s.input = e, s.next_in = 0, s.avail_in = s.input.length;
2483
+ do {
2484
+ if (s.avail_out === 0 && (s.output = new i.Buf8(u), s.next_out = 0, s.avail_out = u), (n = r.deflate(s, o)) !== 1 && n !== l) return this.onEnd(n), !(this.ended = !0);
2485
+ s.avail_out !== 0 && (s.avail_in !== 0 || o !== 4 && o !== 2) || (this.options.to === "string" ? this.onData(a.buf2binstring(i.shrinkBuf(s.output, s.next_out))) : this.onData(i.shrinkBuf(s.output, s.next_out)));
2486
+ } while ((0 < s.avail_in || s.avail_out === 0) && n !== 1);
2487
+ return o === 4 ? (n = r.deflateEnd(this.strm), this.onEnd(n), this.ended = !0, n === l) : o !== 2 || (this.onEnd(l), !(s.avail_out = 0));
2488
+ }, p.prototype.onData = function(e) {
2489
+ this.chunks.push(e);
2490
+ }, p.prototype.onEnd = function(e) {
2491
+ e === l && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
2492
+ }, n.Deflate = p, n.deflate = m, n.deflateRaw = function(e, t) {
2493
+ return (t ||= {}).raw = !0, m(e, t);
2494
+ }, n.gzip = function(e, t) {
2495
+ return (t ||= {}).gzip = !0, m(e, t);
2496
+ };
2497
+ }, {
2498
+ "./utils/common": 41,
2499
+ "./utils/strings": 42,
2500
+ "./zlib/deflate": 46,
2501
+ "./zlib/messages": 51,
2502
+ "./zlib/zstream": 53
2503
+ }],
2504
+ 40: [function(e, t, n) {
2505
+ var r = e("./zlib/inflate"), i = e("./utils/common"), a = e("./utils/strings"), o = e("./zlib/constants"), s = e("./zlib/messages"), c = e("./zlib/zstream"), l = e("./zlib/gzheader"), u = Object.prototype.toString;
2506
+ function d(e) {
2507
+ if (!(this instanceof d)) return new d(e);
2508
+ this.options = i.assign({
2509
+ chunkSize: 16384,
2510
+ windowBits: 0,
2511
+ to: ""
2512
+ }, e || {});
2513
+ var t = this.options;
2514
+ t.raw && 0 <= t.windowBits && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), !(0 <= t.windowBits && t.windowBits < 16) || e && e.windowBits || (t.windowBits += 32), 15 < t.windowBits && t.windowBits < 48 && !(15 & t.windowBits) && (t.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new c(), this.strm.avail_out = 0;
2515
+ var n = r.inflateInit2(this.strm, t.windowBits);
2516
+ if (n !== o.Z_OK) throw Error(s[n]);
2517
+ this.header = new l(), r.inflateGetHeader(this.strm, this.header);
2518
+ }
2519
+ function f(e, t) {
2520
+ var n = new d(t);
2521
+ if (n.push(e, !0), n.err) throw n.msg || s[n.err];
2522
+ return n.result;
2523
+ }
2524
+ d.prototype.push = function(e, t) {
2525
+ var n, s, c, l, d, f, p = this.strm, m = this.options.chunkSize, h = this.options.dictionary, g = !1;
2526
+ if (this.ended) return !1;
2527
+ s = t === ~~t ? t : !0 === t ? o.Z_FINISH : o.Z_NO_FLUSH, typeof e == "string" ? p.input = a.binstring2buf(e) : u.call(e) === "[object ArrayBuffer]" ? p.input = new Uint8Array(e) : p.input = e, p.next_in = 0, p.avail_in = p.input.length;
2528
+ do {
2529
+ if (p.avail_out === 0 && (p.output = new i.Buf8(m), p.next_out = 0, p.avail_out = m), (n = r.inflate(p, o.Z_NO_FLUSH)) === o.Z_NEED_DICT && h && (f = typeof h == "string" ? a.string2buf(h) : u.call(h) === "[object ArrayBuffer]" ? new Uint8Array(h) : h, n = r.inflateSetDictionary(this.strm, f)), n === o.Z_BUF_ERROR && !0 === g && (n = o.Z_OK, g = !1), n !== o.Z_STREAM_END && n !== o.Z_OK) return this.onEnd(n), !(this.ended = !0);
2530
+ p.next_out && (p.avail_out !== 0 && n !== o.Z_STREAM_END && (p.avail_in !== 0 || s !== o.Z_FINISH && s !== o.Z_SYNC_FLUSH) || (this.options.to === "string" ? (c = a.utf8border(p.output, p.next_out), l = p.next_out - c, d = a.buf2string(p.output, c), p.next_out = l, p.avail_out = m - l, l && i.arraySet(p.output, p.output, c, l, 0), this.onData(d)) : this.onData(i.shrinkBuf(p.output, p.next_out)))), p.avail_in === 0 && p.avail_out === 0 && (g = !0);
2531
+ } while ((0 < p.avail_in || p.avail_out === 0) && n !== o.Z_STREAM_END);
2532
+ return n === o.Z_STREAM_END && (s = o.Z_FINISH), s === o.Z_FINISH ? (n = r.inflateEnd(this.strm), this.onEnd(n), this.ended = !0, n === o.Z_OK) : s !== o.Z_SYNC_FLUSH || (this.onEnd(o.Z_OK), !(p.avail_out = 0));
2533
+ }, d.prototype.onData = function(e) {
2534
+ this.chunks.push(e);
2535
+ }, d.prototype.onEnd = function(e) {
2536
+ e === o.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
2537
+ }, n.Inflate = d, n.inflate = f, n.inflateRaw = function(e, t) {
2538
+ return (t ||= {}).raw = !0, f(e, t);
2539
+ }, n.ungzip = f;
2540
+ }, {
2541
+ "./utils/common": 41,
2542
+ "./utils/strings": 42,
2543
+ "./zlib/constants": 44,
2544
+ "./zlib/gzheader": 47,
2545
+ "./zlib/inflate": 49,
2546
+ "./zlib/messages": 51,
2547
+ "./zlib/zstream": 53
2548
+ }],
2549
+ 41: [function(e, t, n) {
2550
+ var r = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
2551
+ n.assign = function(e) {
2552
+ for (var t = Array.prototype.slice.call(arguments, 1); t.length;) {
2553
+ var n = t.shift();
2554
+ if (n) {
2555
+ if (typeof n != "object") throw TypeError(n + "must be non-object");
2556
+ for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
2557
+ }
2558
+ }
2559
+ return e;
2560
+ }, n.shrinkBuf = function(e, t) {
2561
+ return e.length === t ? e : e.subarray ? e.subarray(0, t) : (e.length = t, e);
2562
+ };
2563
+ var i = {
2564
+ arraySet: function(e, t, n, r, i) {
2565
+ if (t.subarray && e.subarray) e.set(t.subarray(n, n + r), i);
2566
+ else for (var a = 0; a < r; a++) e[i + a] = t[n + a];
2567
+ },
2568
+ flattenChunks: function(e) {
2569
+ var t, n, r, i, a, o;
2570
+ for (t = r = 0, n = e.length; t < n; t++) r += e[t].length;
2571
+ for (o = new Uint8Array(r), t = i = 0, n = e.length; t < n; t++) a = e[t], o.set(a, i), i += a.length;
2572
+ return o;
2573
+ }
2574
+ }, a = {
2575
+ arraySet: function(e, t, n, r, i) {
2576
+ for (var a = 0; a < r; a++) e[i + a] = t[n + a];
2577
+ },
2578
+ flattenChunks: function(e) {
2579
+ return [].concat.apply([], e);
2580
+ }
2581
+ };
2582
+ n.setTyped = function(e) {
2583
+ e ? (n.Buf8 = Uint8Array, n.Buf16 = Uint16Array, n.Buf32 = Int32Array, n.assign(n, i)) : (n.Buf8 = Array, n.Buf16 = Array, n.Buf32 = Array, n.assign(n, a));
2584
+ }, n.setTyped(r);
2585
+ }, {}],
2586
+ 42: [function(e, t, n) {
2587
+ var r = e("./common"), i = !0, a = !0;
2588
+ try {
2589
+ String.fromCharCode.apply(null, [0]);
2590
+ } catch {
2591
+ i = !1;
2592
+ }
2593
+ try {
2594
+ String.fromCharCode.apply(null, new Uint8Array(1));
2595
+ } catch {
2596
+ a = !1;
2597
+ }
2598
+ for (var o = new r.Buf8(256), s = 0; s < 256; s++) o[s] = 252 <= s ? 6 : 248 <= s ? 5 : 240 <= s ? 4 : 224 <= s ? 3 : 192 <= s ? 2 : 1;
2599
+ function c(e, t) {
2600
+ if (t < 65537 && (e.subarray && a || !e.subarray && i)) return String.fromCharCode.apply(null, r.shrinkBuf(e, t));
2601
+ for (var n = "", o = 0; o < t; o++) n += String.fromCharCode(e[o]);
2602
+ return n;
2603
+ }
2604
+ o[254] = o[254] = 1, n.string2buf = function(e) {
2605
+ var t, n, i, a, o, s = e.length, c = 0;
2606
+ for (a = 0; a < s; a++) (64512 & (n = e.charCodeAt(a))) == 55296 && a + 1 < s && (64512 & (i = e.charCodeAt(a + 1))) == 56320 && (n = 65536 + (n - 55296 << 10) + (i - 56320), a++), c += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4;
2607
+ for (t = new r.Buf8(c), a = o = 0; o < c; a++) (64512 & (n = e.charCodeAt(a))) == 55296 && a + 1 < s && (64512 & (i = e.charCodeAt(a + 1))) == 56320 && (n = 65536 + (n - 55296 << 10) + (i - 56320), a++), n < 128 ? t[o++] = n : (n < 2048 ? t[o++] = 192 | n >>> 6 : (n < 65536 ? t[o++] = 224 | n >>> 12 : (t[o++] = 240 | n >>> 18, t[o++] = 128 | n >>> 12 & 63), t[o++] = 128 | n >>> 6 & 63), t[o++] = 128 | 63 & n);
2608
+ return t;
2609
+ }, n.buf2binstring = function(e) {
2610
+ return c(e, e.length);
2611
+ }, n.binstring2buf = function(e) {
2612
+ for (var t = new r.Buf8(e.length), n = 0, i = t.length; n < i; n++) t[n] = e.charCodeAt(n);
2613
+ return t;
2614
+ }, n.buf2string = function(e, t) {
2615
+ var n, r, i, a, s = t || e.length, l = Array(2 * s);
2616
+ for (n = r = 0; n < s;) if ((i = e[n++]) < 128) l[r++] = i;
2617
+ else if (4 < (a = o[i])) l[r++] = 65533, n += a - 1;
2618
+ else {
2619
+ for (i &= a === 2 ? 31 : a === 3 ? 15 : 7; 1 < a && n < s;) i = i << 6 | 63 & e[n++], a--;
2620
+ 1 < a ? l[r++] = 65533 : i < 65536 ? l[r++] = i : (i -= 65536, l[r++] = 55296 | i >> 10 & 1023, l[r++] = 56320 | 1023 & i);
2621
+ }
2622
+ return c(l, r);
2623
+ }, n.utf8border = function(e, t) {
2624
+ var n;
2625
+ for ((t ||= e.length) > e.length && (t = e.length), n = t - 1; 0 <= n && (192 & e[n]) == 128;) n--;
2626
+ return n < 0 || n === 0 ? t : n + o[e[n]] > t ? n : t;
2627
+ };
2628
+ }, { "./common": 41 }],
2629
+ 43: [function(e, t, n) {
2630
+ t.exports = function(e, t, n, r) {
2631
+ for (var i = 65535 & e | 0, a = e >>> 16 & 65535 | 0, o = 0; n !== 0;) {
2632
+ for (n -= o = 2e3 < n ? 2e3 : n; a = a + (i = i + t[r++] | 0) | 0, --o;);
2633
+ i %= 65521, a %= 65521;
2634
+ }
2635
+ return i | a << 16 | 0;
2636
+ };
2637
+ }, {}],
2638
+ 44: [function(e, t, n) {
2639
+ t.exports = {
2640
+ Z_NO_FLUSH: 0,
2641
+ Z_PARTIAL_FLUSH: 1,
2642
+ Z_SYNC_FLUSH: 2,
2643
+ Z_FULL_FLUSH: 3,
2644
+ Z_FINISH: 4,
2645
+ Z_BLOCK: 5,
2646
+ Z_TREES: 6,
2647
+ Z_OK: 0,
2648
+ Z_STREAM_END: 1,
2649
+ Z_NEED_DICT: 2,
2650
+ Z_ERRNO: -1,
2651
+ Z_STREAM_ERROR: -2,
2652
+ Z_DATA_ERROR: -3,
2653
+ Z_BUF_ERROR: -5,
2654
+ Z_NO_COMPRESSION: 0,
2655
+ Z_BEST_SPEED: 1,
2656
+ Z_BEST_COMPRESSION: 9,
2657
+ Z_DEFAULT_COMPRESSION: -1,
2658
+ Z_FILTERED: 1,
2659
+ Z_HUFFMAN_ONLY: 2,
2660
+ Z_RLE: 3,
2661
+ Z_FIXED: 4,
2662
+ Z_DEFAULT_STRATEGY: 0,
2663
+ Z_BINARY: 0,
2664
+ Z_TEXT: 1,
2665
+ Z_UNKNOWN: 2,
2666
+ Z_DEFLATED: 8
2667
+ };
2668
+ }, {}],
2669
+ 45: [function(e, t, n) {
2670
+ var r = function() {
2671
+ for (var e, t = [], n = 0; n < 256; n++) {
2672
+ e = n;
2673
+ for (var r = 0; r < 8; r++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
2674
+ t[n] = e;
2675
+ }
2676
+ return t;
2677
+ }();
2678
+ t.exports = function(e, t, n, i) {
2679
+ var a = r, o = i + n;
2680
+ e ^= -1;
2681
+ for (var s = i; s < o; s++) e = e >>> 8 ^ a[255 & (e ^ t[s])];
2682
+ return -1 ^ e;
2683
+ };
2684
+ }, {}],
2685
+ 46: [function(e, t, n) {
2686
+ var r, i = e("../utils/common"), a = e("./trees"), o = e("./adler32"), s = e("./crc32"), c = e("./messages"), l = 0, u = 4, d = 0, f = -2, p = -1, m = 4, h = 2, g = 8, _ = 9, v = 286, y = 30, b = 19, x = 2 * v + 1, S = 15, C = 3, w = 258, T = w + C + 1, E = 42, D = 113, O = 1, k = 2, A = 3, j = 4;
2687
+ function M(e, t) {
2688
+ return e.msg = c[t], t;
2689
+ }
2690
+ function N(e) {
2691
+ return (e << 1) - (4 < e ? 9 : 0);
2692
+ }
2693
+ function P(e) {
2694
+ for (var t = e.length; 0 <= --t;) e[t] = 0;
2695
+ }
2696
+ function F(e) {
2697
+ var t = e.state, n = t.pending;
2698
+ n > e.avail_out && (n = e.avail_out), n !== 0 && (i.arraySet(e.output, t.pending_buf, t.pending_out, n, e.next_out), e.next_out += n, t.pending_out += n, e.total_out += n, e.avail_out -= n, t.pending -= n, t.pending === 0 && (t.pending_out = 0));
2699
+ }
2700
+ function I(e, t) {
2701
+ a._tr_flush_block(e, 0 <= e.block_start ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, F(e.strm);
2702
+ }
2703
+ function L(e, t) {
2704
+ e.pending_buf[e.pending++] = t;
2705
+ }
2706
+ function R(e, t) {
2707
+ e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = 255 & t;
2708
+ }
2709
+ function z(e, t) {
2710
+ var n, r, i = e.max_chain_length, a = e.strstart, o = e.prev_length, s = e.nice_match, c = e.strstart > e.w_size - T ? e.strstart - (e.w_size - T) : 0, l = e.window, u = e.w_mask, d = e.prev, f = e.strstart + w, p = l[a + o - 1], m = l[a + o];
2711
+ e.prev_length >= e.good_match && (i >>= 2), s > e.lookahead && (s = e.lookahead);
2712
+ do
2713
+ if (l[(n = t) + o] === m && l[n + o - 1] === p && l[n] === l[a] && l[++n] === l[a + 1]) {
2714
+ a += 2, n++;
2715
+ do ;
2716
+ while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && a < f);
2717
+ if (r = w - (f - a), a = f - w, o < r) {
2718
+ if (e.match_start = t, s <= (o = r)) break;
2719
+ p = l[a + o - 1], m = l[a + o];
2720
+ }
2721
+ }
2722
+ while ((t = d[t & u]) > c && --i != 0);
2723
+ return o <= e.lookahead ? o : e.lookahead;
2724
+ }
2725
+ function B(e) {
2726
+ var t, n, r, a, c, l, u, d, f, p, m = e.w_size;
2727
+ do {
2728
+ if (a = e.window_size - e.lookahead - e.strstart, e.strstart >= m + (m - T)) {
2729
+ for (i.arraySet(e.window, e.window, m, m, 0), e.match_start -= m, e.strstart -= m, e.block_start -= m, t = n = e.hash_size; r = e.head[--t], e.head[t] = m <= r ? r - m : 0, --n;);
2730
+ for (t = n = m; r = e.prev[--t], e.prev[t] = m <= r ? r - m : 0, --n;);
2731
+ a += m;
2732
+ }
2733
+ if (e.strm.avail_in === 0) break;
2734
+ if (l = e.strm, u = e.window, d = e.strstart + e.lookahead, f = a, p = void 0, p = l.avail_in, f < p && (p = f), n = p === 0 ? 0 : (l.avail_in -= p, i.arraySet(u, l.input, l.next_in, p, d), l.state.wrap === 1 ? l.adler = o(l.adler, u, p, d) : l.state.wrap === 2 && (l.adler = s(l.adler, u, p, d)), l.next_in += p, l.total_in += p, p), e.lookahead += n, e.lookahead + e.insert >= C) for (c = e.strstart - e.insert, e.ins_h = e.window[c], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[c + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[c + C - 1]) & e.hash_mask, e.prev[c & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = c, c++, e.insert--, !(e.lookahead + e.insert < C)););
2735
+ } while (e.lookahead < T && e.strm.avail_in !== 0);
2736
+ }
2737
+ function V(e, t) {
2738
+ for (var n, r;;) {
2739
+ if (e.lookahead < T) {
2740
+ if (B(e), e.lookahead < T && t === l) return O;
2741
+ if (e.lookahead === 0) break;
2742
+ }
2743
+ if (n = 0, e.lookahead >= C && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), n !== 0 && e.strstart - n <= e.w_size - T && (e.match_length = z(e, n)), e.match_length >= C) if (r = a._tr_tally(e, e.strstart - e.match_start, e.match_length - C), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= C) {
2744
+ for (e.match_length--; e.strstart++, e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart, --e.match_length != 0;);
2745
+ e.strstart++;
2746
+ } else e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
2747
+ else r = a._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
2748
+ if (r && (I(e, !1), e.strm.avail_out === 0)) return O;
2749
+ }
2750
+ return e.insert = e.strstart < C - 1 ? e.strstart : C - 1, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : e.last_lit && (I(e, !1), e.strm.avail_out === 0) ? O : k;
2751
+ }
2752
+ function H(e, t) {
2753
+ for (var n, r, i;;) {
2754
+ if (e.lookahead < T) {
2755
+ if (B(e), e.lookahead < T && t === l) return O;
2756
+ if (e.lookahead === 0) break;
2757
+ }
2758
+ if (n = 0, e.lookahead >= C && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = C - 1, n !== 0 && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - T && (e.match_length = z(e, n), e.match_length <= 5 && (e.strategy === 1 || e.match_length === C && 4096 < e.strstart - e.match_start) && (e.match_length = C - 1)), e.prev_length >= C && e.match_length <= e.prev_length) {
2759
+ for (i = e.strstart + e.lookahead - C, r = a._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - C), e.lookahead -= e.prev_length - 1, e.prev_length -= 2; ++e.strstart <= i && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), --e.prev_length != 0;);
2760
+ if (e.match_available = 0, e.match_length = C - 1, e.strstart++, r && (I(e, !1), e.strm.avail_out === 0)) return O;
2761
+ } else if (e.match_available) {
2762
+ if ((r = a._tr_tally(e, 0, e.window[e.strstart - 1])) && I(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0) return O;
2763
+ } else e.match_available = 1, e.strstart++, e.lookahead--;
2764
+ }
2765
+ return e.match_available &&= (r = a._tr_tally(e, 0, e.window[e.strstart - 1]), 0), e.insert = e.strstart < C - 1 ? e.strstart : C - 1, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : e.last_lit && (I(e, !1), e.strm.avail_out === 0) ? O : k;
2766
+ }
2767
+ function U(e, t, n, r, i) {
2768
+ this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = i;
2769
+ }
2770
+ function W() {
2771
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = g, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new i.Buf16(2 * x), this.dyn_dtree = new i.Buf16(2 * (2 * y + 1)), this.bl_tree = new i.Buf16(2 * (2 * b + 1)), P(this.dyn_ltree), P(this.dyn_dtree), P(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new i.Buf16(S + 1), this.heap = new i.Buf16(2 * v + 1), P(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new i.Buf16(2 * v + 1), P(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;
2772
+ }
2773
+ function G(e) {
2774
+ var t;
2775
+ return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = h, (t = e.state).pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? E : D, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = l, a._tr_init(t), d) : M(e, f);
2776
+ }
2777
+ function K(e) {
2778
+ var t = G(e);
2779
+ return t === d && function(e) {
2780
+ e.window_size = 2 * e.w_size, P(e.head), e.max_lazy_match = r[e.level].max_lazy, e.good_match = r[e.level].good_length, e.nice_match = r[e.level].nice_length, e.max_chain_length = r[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = C - 1, e.match_available = 0, e.ins_h = 0;
2781
+ }(e.state), t;
2782
+ }
2783
+ function q(e, t, n, r, a, o) {
2784
+ if (!e) return f;
2785
+ var s = 1;
2786
+ if (t === p && (t = 6), r < 0 ? (s = 0, r = -r) : 15 < r && (s = 2, r -= 16), a < 1 || _ < a || n !== g || r < 8 || 15 < r || t < 0 || 9 < t || o < 0 || m < o) return M(e, f);
2787
+ r === 8 && (r = 9);
2788
+ var c = new W();
2789
+ return (e.state = c).strm = e, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.hash_bits = a + 7, c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + C - 1) / C), c.window = new i.Buf8(2 * c.w_size), c.head = new i.Buf16(c.hash_size), c.prev = new i.Buf16(c.w_size), c.lit_bufsize = 1 << a + 6, c.pending_buf_size = 4 * c.lit_bufsize, c.pending_buf = new i.Buf8(c.pending_buf_size), c.d_buf = 1 * c.lit_bufsize, c.l_buf = 3 * c.lit_bufsize, c.level = t, c.strategy = o, c.method = n, K(e);
2790
+ }
2791
+ r = [
2792
+ new U(0, 0, 0, 0, function(e, t) {
2793
+ var n = 65535;
2794
+ for (n > e.pending_buf_size - 5 && (n = e.pending_buf_size - 5);;) {
2795
+ if (e.lookahead <= 1) {
2796
+ if (B(e), e.lookahead === 0 && t === l) return O;
2797
+ if (e.lookahead === 0) break;
2798
+ }
2799
+ e.strstart += e.lookahead, e.lookahead = 0;
2800
+ var r = e.block_start + n;
2801
+ if ((e.strstart === 0 || e.strstart >= r) && (e.lookahead = e.strstart - r, e.strstart = r, I(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - T && (I(e, !1), e.strm.avail_out === 0)) return O;
2802
+ }
2803
+ return e.insert = 0, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : (e.strstart > e.block_start && (I(e, !1), e.strm.avail_out), O);
2804
+ }),
2805
+ new U(4, 4, 8, 4, V),
2806
+ new U(4, 5, 16, 8, V),
2807
+ new U(4, 6, 32, 32, V),
2808
+ new U(4, 4, 16, 16, H),
2809
+ new U(8, 16, 32, 32, H),
2810
+ new U(8, 16, 128, 128, H),
2811
+ new U(8, 32, 128, 256, H),
2812
+ new U(32, 128, 258, 1024, H),
2813
+ new U(32, 258, 258, 4096, H)
2814
+ ], n.deflateInit = function(e, t) {
2815
+ return q(e, t, g, 15, 8, 0);
2816
+ }, n.deflateInit2 = q, n.deflateReset = K, n.deflateResetKeep = G, n.deflateSetHeader = function(e, t) {
2817
+ return e && e.state && e.state.wrap === 2 ? (e.state.gzhead = t, d) : f;
2818
+ }, n.deflate = function(e, t) {
2819
+ var n, i, o, c;
2820
+ if (!e || !e.state || 5 < t || t < 0) return e ? M(e, f) : f;
2821
+ if (i = e.state, !e.output || !e.input && e.avail_in !== 0 || i.status === 666 && t !== u) return M(e, e.avail_out === 0 ? -5 : f);
2822
+ if (i.strm = e, n = i.last_flush, i.last_flush = t, i.status === E) if (i.wrap === 2) e.adler = 0, L(i, 31), L(i, 139), L(i, 8), i.gzhead ? (L(i, +!!i.gzhead.text + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)), L(i, 255 & i.gzhead.time), L(i, i.gzhead.time >> 8 & 255), L(i, i.gzhead.time >> 16 & 255), L(i, i.gzhead.time >> 24 & 255), L(i, i.level === 9 ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0), L(i, 255 & i.gzhead.os), i.gzhead.extra && i.gzhead.extra.length && (L(i, 255 & i.gzhead.extra.length), L(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = s(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = 69) : (L(i, 0), L(i, 0), L(i, 0), L(i, 0), L(i, 0), L(i, i.level === 9 ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0), L(i, 3), i.status = D);
2823
+ else {
2824
+ var p = g + (i.w_bits - 8 << 4) << 8;
2825
+ p |= (2 <= i.strategy || i.level < 2 ? 0 : i.level < 6 ? 1 : i.level === 6 ? 2 : 3) << 6, i.strstart !== 0 && (p |= 32), p += 31 - p % 31, i.status = D, R(i, p), i.strstart !== 0 && (R(i, e.adler >>> 16), R(i, 65535 & e.adler)), e.adler = 1;
2826
+ }
2827
+ if (i.status === 69) if (i.gzhead.extra) {
2828
+ for (o = i.pending; i.gzindex < (65535 & i.gzhead.extra.length) && (i.pending !== i.pending_buf_size || (i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), F(e), o = i.pending, i.pending !== i.pending_buf_size));) L(i, 255 & i.gzhead.extra[i.gzindex]), i.gzindex++;
2829
+ i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), i.gzindex === i.gzhead.extra.length && (i.gzindex = 0, i.status = 73);
2830
+ } else i.status = 73;
2831
+ if (i.status === 73) if (i.gzhead.name) {
2832
+ o = i.pending;
2833
+ do {
2834
+ if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), F(e), o = i.pending, i.pending === i.pending_buf_size)) {
2835
+ c = 1;
2836
+ break;
2837
+ }
2838
+ c = i.gzindex < i.gzhead.name.length ? 255 & i.gzhead.name.charCodeAt(i.gzindex++) : 0, L(i, c);
2839
+ } while (c !== 0);
2840
+ i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), c === 0 && (i.gzindex = 0, i.status = 91);
2841
+ } else i.status = 91;
2842
+ if (i.status === 91) if (i.gzhead.comment) {
2843
+ o = i.pending;
2844
+ do {
2845
+ if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), F(e), o = i.pending, i.pending === i.pending_buf_size)) {
2846
+ c = 1;
2847
+ break;
2848
+ }
2849
+ c = i.gzindex < i.gzhead.comment.length ? 255 & i.gzhead.comment.charCodeAt(i.gzindex++) : 0, L(i, c);
2850
+ } while (c !== 0);
2851
+ i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), c === 0 && (i.status = 103);
2852
+ } else i.status = 103;
2853
+ if (i.status === 103 && (i.gzhead.hcrc ? (i.pending + 2 > i.pending_buf_size && F(e), i.pending + 2 <= i.pending_buf_size && (L(i, 255 & e.adler), L(i, e.adler >> 8 & 255), e.adler = 0, i.status = D)) : i.status = D), i.pending !== 0) {
2854
+ if (F(e), e.avail_out === 0) return i.last_flush = -1, d;
2855
+ } else if (e.avail_in === 0 && N(t) <= N(n) && t !== u) return M(e, -5);
2856
+ if (i.status === 666 && e.avail_in !== 0) return M(e, -5);
2857
+ if (e.avail_in !== 0 || i.lookahead !== 0 || t !== l && i.status !== 666) {
2858
+ var m = i.strategy === 2 ? function(e, t) {
2859
+ for (var n;;) {
2860
+ if (e.lookahead === 0 && (B(e), e.lookahead === 0)) {
2861
+ if (t === l) return O;
2862
+ break;
2863
+ }
2864
+ if (e.match_length = 0, n = a._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (I(e, !1), e.strm.avail_out === 0)) return O;
2865
+ }
2866
+ return e.insert = 0, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : e.last_lit && (I(e, !1), e.strm.avail_out === 0) ? O : k;
2867
+ }(i, t) : i.strategy === 3 ? function(e, t) {
2868
+ for (var n, r, i, o, s = e.window;;) {
2869
+ if (e.lookahead <= w) {
2870
+ if (B(e), e.lookahead <= w && t === l) return O;
2871
+ if (e.lookahead === 0) break;
2872
+ }
2873
+ if (e.match_length = 0, e.lookahead >= C && 0 < e.strstart && (r = s[i = e.strstart - 1]) === s[++i] && r === s[++i] && r === s[++i]) {
2874
+ o = e.strstart + w;
2875
+ do ;
2876
+ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && i < o);
2877
+ e.match_length = w - (o - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
2878
+ }
2879
+ if (e.match_length >= C ? (n = a._tr_tally(e, 1, e.match_length - C), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = a._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (I(e, !1), e.strm.avail_out === 0)) return O;
2880
+ }
2881
+ return e.insert = 0, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : e.last_lit && (I(e, !1), e.strm.avail_out === 0) ? O : k;
2882
+ }(i, t) : r[i.level].func(i, t);
2883
+ if (m !== A && m !== j || (i.status = 666), m === O || m === A) return e.avail_out === 0 && (i.last_flush = -1), d;
2884
+ if (m === k && (t === 1 ? a._tr_align(i) : t !== 5 && (a._tr_stored_block(i, 0, 0, !1), t === 3 && (P(i.head), i.lookahead === 0 && (i.strstart = 0, i.block_start = 0, i.insert = 0))), F(e), e.avail_out === 0)) return i.last_flush = -1, d;
2885
+ }
2886
+ return t === u ? i.wrap <= 0 ? 1 : (i.wrap === 2 ? (L(i, 255 & e.adler), L(i, e.adler >> 8 & 255), L(i, e.adler >> 16 & 255), L(i, e.adler >> 24 & 255), L(i, 255 & e.total_in), L(i, e.total_in >> 8 & 255), L(i, e.total_in >> 16 & 255), L(i, e.total_in >> 24 & 255)) : (R(i, e.adler >>> 16), R(i, 65535 & e.adler)), F(e), 0 < i.wrap && (i.wrap = -i.wrap), i.pending === 0 ? 1 : d) : d;
2887
+ }, n.deflateEnd = function(e) {
2888
+ var t;
2889
+ return e && e.state ? (t = e.state.status) !== E && t !== 69 && t !== 73 && t !== 91 && t !== 103 && t !== D && t !== 666 ? M(e, f) : (e.state = null, t === D ? M(e, -3) : d) : f;
2890
+ }, n.deflateSetDictionary = function(e, t) {
2891
+ var n, r, a, s, c, l, u, p, m = t.length;
2892
+ if (!e || !e.state || (s = (n = e.state).wrap) === 2 || s === 1 && n.status !== E || n.lookahead) return f;
2893
+ for (s === 1 && (e.adler = o(e.adler, t, m, 0)), n.wrap = 0, m >= n.w_size && (s === 0 && (P(n.head), n.strstart = 0, n.block_start = 0, n.insert = 0), p = new i.Buf8(n.w_size), i.arraySet(p, t, m - n.w_size, n.w_size, 0), t = p, m = n.w_size), c = e.avail_in, l = e.next_in, u = e.input, e.avail_in = m, e.next_in = 0, e.input = t, B(n); n.lookahead >= C;) {
2894
+ for (r = n.strstart, a = n.lookahead - (C - 1); n.ins_h = (n.ins_h << n.hash_shift ^ n.window[r + C - 1]) & n.hash_mask, n.prev[r & n.w_mask] = n.head[n.ins_h], n.head[n.ins_h] = r, r++, --a;);
2895
+ n.strstart = r, n.lookahead = C - 1, B(n);
2896
+ }
2897
+ return n.strstart += n.lookahead, n.block_start = n.strstart, n.insert = n.lookahead, n.lookahead = 0, n.match_length = n.prev_length = C - 1, n.match_available = 0, e.next_in = l, e.input = u, e.avail_in = c, n.wrap = s, d;
2898
+ }, n.deflateInfo = "pako deflate (from Nodeca project)";
2899
+ }, {
2900
+ "../utils/common": 41,
2901
+ "./adler32": 43,
2902
+ "./crc32": 45,
2903
+ "./messages": 51,
2904
+ "./trees": 52
2905
+ }],
2906
+ 47: [function(e, t, n) {
2907
+ t.exports = function() {
2908
+ 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;
2909
+ };
2910
+ }, {}],
2911
+ 48: [function(e, t, n) {
2912
+ t.exports = function(e, t) {
2913
+ var n = e.state, r = e.next_in, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T = e.input, E;
2914
+ i = r + (e.avail_in - 5), a = e.next_out, E = e.output, o = a - (t - e.avail_out), s = a + (e.avail_out - 257), c = n.dmax, l = n.wsize, u = n.whave, d = n.wnext, f = n.window, p = n.hold, m = n.bits, h = n.lencode, g = n.distcode, _ = (1 << n.lenbits) - 1, v = (1 << n.distbits) - 1;
2915
+ e: do {
2916
+ m < 15 && (p += T[r++] << m, m += 8, p += T[r++] << m, m += 8), y = h[p & _];
2917
+ t: for (;;) {
2918
+ if (p >>>= b = y >>> 24, m -= b, (b = y >>> 16 & 255) == 0) E[a++] = 65535 & y;
2919
+ else {
2920
+ if (!(16 & b)) {
2921
+ if (!(64 & b)) {
2922
+ y = h[(65535 & y) + (p & (1 << b) - 1)];
2923
+ continue t;
2924
+ }
2925
+ if (32 & b) {
2926
+ n.mode = 12;
2927
+ break e;
2928
+ }
2929
+ e.msg = "invalid literal/length code", n.mode = 30;
2930
+ break e;
2931
+ }
2932
+ x = 65535 & y, (b &= 15) && (m < b && (p += T[r++] << m, m += 8), x += p & (1 << b) - 1, p >>>= b, m -= b), m < 15 && (p += T[r++] << m, m += 8, p += T[r++] << m, m += 8), y = g[p & v];
2933
+ r: for (;;) {
2934
+ if (p >>>= b = y >>> 24, m -= b, !(16 & (b = y >>> 16 & 255))) {
2935
+ if (!(64 & b)) {
2936
+ y = g[(65535 & y) + (p & (1 << b) - 1)];
2937
+ continue r;
2938
+ }
2939
+ e.msg = "invalid distance code", n.mode = 30;
2940
+ break e;
2941
+ }
2942
+ if (S = 65535 & y, m < (b &= 15) && (p += T[r++] << m, (m += 8) < b && (p += T[r++] << m, m += 8)), c < (S += p & (1 << b) - 1)) {
2943
+ e.msg = "invalid distance too far back", n.mode = 30;
2944
+ break e;
2945
+ }
2946
+ if (p >>>= b, m -= b, (b = a - o) < S) {
2947
+ if (u < (b = S - b) && n.sane) {
2948
+ e.msg = "invalid distance too far back", n.mode = 30;
2949
+ break e;
2950
+ }
2951
+ if (w = f, (C = 0) === d) {
2952
+ if (C += l - b, b < x) {
2953
+ for (x -= b; E[a++] = f[C++], --b;);
2954
+ C = a - S, w = E;
2955
+ }
2956
+ } else if (d < b) {
2957
+ if (C += l + d - b, (b -= d) < x) {
2958
+ for (x -= b; E[a++] = f[C++], --b;);
2959
+ if (C = 0, d < x) {
2960
+ for (x -= b = d; E[a++] = f[C++], --b;);
2961
+ C = a - S, w = E;
2962
+ }
2963
+ }
2964
+ } else if (C += d - b, b < x) {
2965
+ for (x -= b; E[a++] = f[C++], --b;);
2966
+ C = a - S, w = E;
2967
+ }
2968
+ for (; 2 < x;) E[a++] = w[C++], E[a++] = w[C++], E[a++] = w[C++], x -= 3;
2969
+ x && (E[a++] = w[C++], 1 < x && (E[a++] = w[C++]));
2970
+ } else {
2971
+ for (C = a - S; E[a++] = E[C++], E[a++] = E[C++], E[a++] = E[C++], 2 < (x -= 3););
2972
+ x && (E[a++] = E[C++], 1 < x && (E[a++] = E[C++]));
2973
+ }
2974
+ break;
2975
+ }
2976
+ }
2977
+ break;
2978
+ }
2979
+ } while (r < i && a < s);
2980
+ r -= x = m >> 3, p &= (1 << (m -= x << 3)) - 1, e.next_in = r, e.next_out = a, e.avail_in = r < i ? i - r + 5 : 5 - (r - i), e.avail_out = a < s ? s - a + 257 : 257 - (a - s), n.hold = p, n.bits = m;
2981
+ };
2982
+ }, {}],
2983
+ 49: [function(e, t, n) {
2984
+ var r = e("../utils/common"), i = e("./adler32"), a = e("./crc32"), o = e("./inffast"), s = e("./inftrees"), c = 1, l = 2, u = 0, d = -2, f = 1, p = 852, m = 592;
2985
+ function h(e) {
2986
+ return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((65280 & e) << 8) + ((255 & e) << 24);
2987
+ }
2988
+ function g() {
2989
+ 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 r.Buf16(320), this.work = new r.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
2990
+ }
2991
+ function _(e) {
2992
+ var t;
2993
+ return e && e.state ? (t = e.state, e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = 1 & t.wrap), t.mode = f, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new r.Buf32(p), t.distcode = t.distdyn = new r.Buf32(m), t.sane = 1, t.back = -1, u) : d;
2994
+ }
2995
+ function v(e) {
2996
+ var t;
2997
+ return e && e.state ? ((t = e.state).wsize = 0, t.whave = 0, t.wnext = 0, _(e)) : d;
2998
+ }
2999
+ function y(e, t) {
3000
+ var n, r;
3001
+ return e && e.state ? (r = e.state, t < 0 ? (n = 0, t = -t) : (n = 1 + (t >> 4), t < 48 && (t &= 15)), t && (t < 8 || 15 < t) ? d : (r.window !== null && r.wbits !== t && (r.window = null), r.wrap = n, r.wbits = t, v(e))) : d;
3002
+ }
3003
+ function b(e, t) {
3004
+ var n, r;
3005
+ return e ? (r = new g(), (e.state = r).window = null, (n = y(e, t)) !== u && (e.state = null), n) : d;
3006
+ }
3007
+ var x, S, C = !0;
3008
+ function w(e) {
3009
+ if (C) {
3010
+ var t;
3011
+ for (x = new r.Buf32(512), S = new r.Buf32(32), t = 0; t < 144;) e.lens[t++] = 8;
3012
+ for (; t < 256;) e.lens[t++] = 9;
3013
+ for (; t < 280;) e.lens[t++] = 7;
3014
+ for (; t < 288;) e.lens[t++] = 8;
3015
+ for (s(c, e.lens, 0, 288, x, 0, e.work, { bits: 9 }), t = 0; t < 32;) e.lens[t++] = 5;
3016
+ s(l, e.lens, 0, 32, S, 0, e.work, { bits: 5 }), C = !1;
3017
+ }
3018
+ e.lencode = x, e.lenbits = 9, e.distcode = S, e.distbits = 5;
3019
+ }
3020
+ function T(e, t, n, i) {
3021
+ var a, o = e.state;
3022
+ return o.window === null && (o.wsize = 1 << o.wbits, o.wnext = 0, o.whave = 0, o.window = new r.Buf8(o.wsize)), i >= o.wsize ? (r.arraySet(o.window, t, n - o.wsize, o.wsize, 0), o.wnext = 0, o.whave = o.wsize) : (i < (a = o.wsize - o.wnext) && (a = i), r.arraySet(o.window, t, n - i, a, o.wnext), (i -= a) ? (r.arraySet(o.window, t, n - i, i, 0), o.wnext = i, o.whave = o.wsize) : (o.wnext += a, o.wnext === o.wsize && (o.wnext = 0), o.whave < o.wsize && (o.whave += a))), 0;
3023
+ }
3024
+ n.inflateReset = v, n.inflateReset2 = y, n.inflateResetKeep = _, n.inflateInit = function(e) {
3025
+ return b(e, 15);
3026
+ }, n.inflateInit2 = b, n.inflate = function(e, t) {
3027
+ var n, p, m, g, _, v, y, b, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, R, z = 0, B = new r.Buf8(4), V = [
3028
+ 16,
3029
+ 17,
3030
+ 18,
3031
+ 0,
3032
+ 8,
3033
+ 7,
3034
+ 9,
3035
+ 6,
3036
+ 10,
3037
+ 5,
3038
+ 11,
3039
+ 4,
3040
+ 12,
3041
+ 3,
3042
+ 13,
3043
+ 2,
3044
+ 14,
3045
+ 1,
3046
+ 15
3047
+ ];
3048
+ if (!e || !e.state || !e.output || !e.input && e.avail_in !== 0) return d;
3049
+ (n = e.state).mode === 12 && (n.mode = 13), _ = e.next_out, m = e.output, y = e.avail_out, g = e.next_in, p = e.input, v = e.avail_in, b = n.hold, x = n.bits, S = v, C = y, I = u;
3050
+ e: for (;;) switch (n.mode) {
3051
+ case f:
3052
+ if (n.wrap === 0) {
3053
+ n.mode = 13;
3054
+ break;
3055
+ }
3056
+ for (; x < 16;) {
3057
+ if (v === 0) break e;
3058
+ v--, b += p[g++] << x, x += 8;
3059
+ }
3060
+ if (2 & n.wrap && b === 35615) {
3061
+ B[n.check = 0] = 255 & b, B[1] = b >>> 8 & 255, n.check = a(n.check, B, 2, 0), x = b = 0, n.mode = 2;
3062
+ break;
3063
+ }
3064
+ if (n.flags = 0, n.head && (n.head.done = !1), !(1 & n.wrap) || (((255 & b) << 8) + (b >> 8)) % 31) {
3065
+ e.msg = "incorrect header check", n.mode = 30;
3066
+ break;
3067
+ }
3068
+ if ((15 & b) != 8) {
3069
+ e.msg = "unknown compression method", n.mode = 30;
3070
+ break;
3071
+ }
3072
+ if (x -= 4, F = 8 + (15 & (b >>>= 4)), n.wbits === 0) n.wbits = F;
3073
+ else if (F > n.wbits) {
3074
+ e.msg = "invalid window size", n.mode = 30;
3075
+ break;
3076
+ }
3077
+ n.dmax = 1 << F, e.adler = n.check = 1, n.mode = 512 & b ? 10 : 12, x = b = 0;
3078
+ break;
3079
+ case 2:
3080
+ for (; x < 16;) {
3081
+ if (v === 0) break e;
3082
+ v--, b += p[g++] << x, x += 8;
3083
+ }
3084
+ if (n.flags = b, (255 & n.flags) != 8) {
3085
+ e.msg = "unknown compression method", n.mode = 30;
3086
+ break;
3087
+ }
3088
+ if (57344 & n.flags) {
3089
+ e.msg = "unknown header flags set", n.mode = 30;
3090
+ break;
3091
+ }
3092
+ n.head && (n.head.text = b >> 8 & 1), 512 & n.flags && (B[0] = 255 & b, B[1] = b >>> 8 & 255, n.check = a(n.check, B, 2, 0)), x = b = 0, n.mode = 3;
3093
+ case 3:
3094
+ for (; x < 32;) {
3095
+ if (v === 0) break e;
3096
+ v--, b += p[g++] << x, x += 8;
3097
+ }
3098
+ n.head && (n.head.time = b), 512 & n.flags && (B[0] = 255 & b, B[1] = b >>> 8 & 255, B[2] = b >>> 16 & 255, B[3] = b >>> 24 & 255, n.check = a(n.check, B, 4, 0)), x = b = 0, n.mode = 4;
3099
+ case 4:
3100
+ for (; x < 16;) {
3101
+ if (v === 0) break e;
3102
+ v--, b += p[g++] << x, x += 8;
3103
+ }
3104
+ n.head && (n.head.xflags = 255 & b, n.head.os = b >> 8), 512 & n.flags && (B[0] = 255 & b, B[1] = b >>> 8 & 255, n.check = a(n.check, B, 2, 0)), x = b = 0, n.mode = 5;
3105
+ case 5:
3106
+ if (1024 & n.flags) {
3107
+ for (; x < 16;) {
3108
+ if (v === 0) break e;
3109
+ v--, b += p[g++] << x, x += 8;
3110
+ }
3111
+ n.length = b, n.head && (n.head.extra_len = b), 512 & n.flags && (B[0] = 255 & b, B[1] = b >>> 8 & 255, n.check = a(n.check, B, 2, 0)), x = b = 0;
3112
+ } else n.head && (n.head.extra = null);
3113
+ n.mode = 6;
3114
+ case 6:
3115
+ if (1024 & n.flags && (v < (E = n.length) && (E = v), E && (n.head && (F = n.head.extra_len - n.length, n.head.extra || (n.head.extra = Array(n.head.extra_len)), r.arraySet(n.head.extra, p, g, E, F)), 512 & n.flags && (n.check = a(n.check, p, E, g)), v -= E, g += E, n.length -= E), n.length)) break e;
3116
+ n.length = 0, n.mode = 7;
3117
+ case 7:
3118
+ if (2048 & n.flags) {
3119
+ if (v === 0) break e;
3120
+ for (E = 0; F = p[g + E++], n.head && F && n.length < 65536 && (n.head.name += String.fromCharCode(F)), F && E < v;);
3121
+ if (512 & n.flags && (n.check = a(n.check, p, E, g)), v -= E, g += E, F) break e;
3122
+ } else n.head && (n.head.name = null);
3123
+ n.length = 0, n.mode = 8;
3124
+ case 8:
3125
+ if (4096 & n.flags) {
3126
+ if (v === 0) break e;
3127
+ for (E = 0; F = p[g + E++], n.head && F && n.length < 65536 && (n.head.comment += String.fromCharCode(F)), F && E < v;);
3128
+ if (512 & n.flags && (n.check = a(n.check, p, E, g)), v -= E, g += E, F) break e;
3129
+ } else n.head && (n.head.comment = null);
3130
+ n.mode = 9;
3131
+ case 9:
3132
+ if (512 & n.flags) {
3133
+ for (; x < 16;) {
3134
+ if (v === 0) break e;
3135
+ v--, b += p[g++] << x, x += 8;
3136
+ }
3137
+ if (b !== (65535 & n.check)) {
3138
+ e.msg = "header crc mismatch", n.mode = 30;
3139
+ break;
3140
+ }
3141
+ x = b = 0;
3142
+ }
3143
+ n.head && (n.head.hcrc = n.flags >> 9 & 1, n.head.done = !0), e.adler = n.check = 0, n.mode = 12;
3144
+ break;
3145
+ case 10:
3146
+ for (; x < 32;) {
3147
+ if (v === 0) break e;
3148
+ v--, b += p[g++] << x, x += 8;
3149
+ }
3150
+ e.adler = n.check = h(b), x = b = 0, n.mode = 11;
3151
+ case 11:
3152
+ if (n.havedict === 0) return e.next_out = _, e.avail_out = y, e.next_in = g, e.avail_in = v, n.hold = b, n.bits = x, 2;
3153
+ e.adler = n.check = 1, n.mode = 12;
3154
+ case 12: if (t === 5 || t === 6) break e;
3155
+ case 13:
3156
+ if (n.last) {
3157
+ b >>>= 7 & x, x -= 7 & x, n.mode = 27;
3158
+ break;
3159
+ }
3160
+ for (; x < 3;) {
3161
+ if (v === 0) break e;
3162
+ v--, b += p[g++] << x, x += 8;
3163
+ }
3164
+ switch (n.last = 1 & b, --x, 3 & (b >>>= 1)) {
3165
+ case 0:
3166
+ n.mode = 14;
3167
+ break;
3168
+ case 1:
3169
+ if (w(n), n.mode = 20, t !== 6) break;
3170
+ b >>>= 2, x -= 2;
3171
+ break e;
3172
+ case 2:
3173
+ n.mode = 17;
3174
+ break;
3175
+ case 3: e.msg = "invalid block type", n.mode = 30;
3176
+ }
3177
+ b >>>= 2, x -= 2;
3178
+ break;
3179
+ case 14:
3180
+ for (b >>>= 7 & x, x -= 7 & x; x < 32;) {
3181
+ if (v === 0) break e;
3182
+ v--, b += p[g++] << x, x += 8;
3183
+ }
3184
+ if ((65535 & b) != (b >>> 16 ^ 65535)) {
3185
+ e.msg = "invalid stored block lengths", n.mode = 30;
3186
+ break;
3187
+ }
3188
+ if (n.length = 65535 & b, x = b = 0, n.mode = 15, t === 6) break e;
3189
+ case 15: n.mode = 16;
3190
+ case 16:
3191
+ if (E = n.length) {
3192
+ if (v < E && (E = v), y < E && (E = y), E === 0) break e;
3193
+ r.arraySet(m, p, g, E, _), v -= E, g += E, y -= E, _ += E, n.length -= E;
3194
+ break;
3195
+ }
3196
+ n.mode = 12;
3197
+ break;
3198
+ case 17:
3199
+ for (; x < 14;) {
3200
+ if (v === 0) break e;
3201
+ v--, b += p[g++] << x, x += 8;
3202
+ }
3203
+ if (n.nlen = 257 + (31 & b), b >>>= 5, x -= 5, n.ndist = 1 + (31 & b), b >>>= 5, x -= 5, n.ncode = 4 + (15 & b), b >>>= 4, x -= 4, 286 < n.nlen || 30 < n.ndist) {
3204
+ e.msg = "too many length or distance symbols", n.mode = 30;
3205
+ break;
3206
+ }
3207
+ n.have = 0, n.mode = 18;
3208
+ case 18:
3209
+ for (; n.have < n.ncode;) {
3210
+ for (; x < 3;) {
3211
+ if (v === 0) break e;
3212
+ v--, b += p[g++] << x, x += 8;
3213
+ }
3214
+ n.lens[V[n.have++]] = 7 & b, b >>>= 3, x -= 3;
3215
+ }
3216
+ for (; n.have < 19;) n.lens[V[n.have++]] = 0;
3217
+ if (n.lencode = n.lendyn, n.lenbits = 7, L = { bits: n.lenbits }, I = s(0, n.lens, 0, 19, n.lencode, 0, n.work, L), n.lenbits = L.bits, I) {
3218
+ e.msg = "invalid code lengths set", n.mode = 30;
3219
+ break;
3220
+ }
3221
+ n.have = 0, n.mode = 19;
3222
+ case 19:
3223
+ for (; n.have < n.nlen + n.ndist;) {
3224
+ for (; A = (z = n.lencode[b & (1 << n.lenbits) - 1]) >>> 16 & 255, j = 65535 & z, !((k = z >>> 24) <= x);) {
3225
+ if (v === 0) break e;
3226
+ v--, b += p[g++] << x, x += 8;
3227
+ }
3228
+ if (j < 16) b >>>= k, x -= k, n.lens[n.have++] = j;
3229
+ else {
3230
+ if (j === 16) {
3231
+ for (R = k + 2; x < R;) {
3232
+ if (v === 0) break e;
3233
+ v--, b += p[g++] << x, x += 8;
3234
+ }
3235
+ if (b >>>= k, x -= k, n.have === 0) {
3236
+ e.msg = "invalid bit length repeat", n.mode = 30;
3237
+ break;
3238
+ }
3239
+ F = n.lens[n.have - 1], E = 3 + (3 & b), b >>>= 2, x -= 2;
3240
+ } else if (j === 17) {
3241
+ for (R = k + 3; x < R;) {
3242
+ if (v === 0) break e;
3243
+ v--, b += p[g++] << x, x += 8;
3244
+ }
3245
+ x -= k, F = 0, E = 3 + (7 & (b >>>= k)), b >>>= 3, x -= 3;
3246
+ } else {
3247
+ for (R = k + 7; x < R;) {
3248
+ if (v === 0) break e;
3249
+ v--, b += p[g++] << x, x += 8;
3250
+ }
3251
+ x -= k, F = 0, E = 11 + (127 & (b >>>= k)), b >>>= 7, x -= 7;
3252
+ }
3253
+ if (n.have + E > n.nlen + n.ndist) {
3254
+ e.msg = "invalid bit length repeat", n.mode = 30;
3255
+ break;
3256
+ }
3257
+ for (; E--;) n.lens[n.have++] = F;
3258
+ }
3259
+ }
3260
+ if (n.mode === 30) break;
3261
+ if (n.lens[256] === 0) {
3262
+ e.msg = "invalid code -- missing end-of-block", n.mode = 30;
3263
+ break;
3264
+ }
3265
+ if (n.lenbits = 9, L = { bits: n.lenbits }, I = s(c, n.lens, 0, n.nlen, n.lencode, 0, n.work, L), n.lenbits = L.bits, I) {
3266
+ e.msg = "invalid literal/lengths set", n.mode = 30;
3267
+ break;
3268
+ }
3269
+ if (n.distbits = 6, n.distcode = n.distdyn, L = { bits: n.distbits }, I = s(l, n.lens, n.nlen, n.ndist, n.distcode, 0, n.work, L), n.distbits = L.bits, I) {
3270
+ e.msg = "invalid distances set", n.mode = 30;
3271
+ break;
3272
+ }
3273
+ if (n.mode = 20, t === 6) break e;
3274
+ case 20: n.mode = 21;
3275
+ case 21:
3276
+ if (6 <= v && 258 <= y) {
3277
+ e.next_out = _, e.avail_out = y, e.next_in = g, e.avail_in = v, n.hold = b, n.bits = x, o(e, C), _ = e.next_out, m = e.output, y = e.avail_out, g = e.next_in, p = e.input, v = e.avail_in, b = n.hold, x = n.bits, n.mode === 12 && (n.back = -1);
3278
+ break;
3279
+ }
3280
+ for (n.back = 0; A = (z = n.lencode[b & (1 << n.lenbits) - 1]) >>> 16 & 255, j = 65535 & z, !((k = z >>> 24) <= x);) {
3281
+ if (v === 0) break e;
3282
+ v--, b += p[g++] << x, x += 8;
3283
+ }
3284
+ if (A && !(240 & A)) {
3285
+ for (M = k, N = A, P = j; A = (z = n.lencode[P + ((b & (1 << M + N) - 1) >> M)]) >>> 16 & 255, j = 65535 & z, !(M + (k = z >>> 24) <= x);) {
3286
+ if (v === 0) break e;
3287
+ v--, b += p[g++] << x, x += 8;
3288
+ }
3289
+ b >>>= M, x -= M, n.back += M;
3290
+ }
3291
+ if (b >>>= k, x -= k, n.back += k, n.length = j, A === 0) {
3292
+ n.mode = 26;
3293
+ break;
3294
+ }
3295
+ if (32 & A) {
3296
+ n.back = -1, n.mode = 12;
3297
+ break;
3298
+ }
3299
+ if (64 & A) {
3300
+ e.msg = "invalid literal/length code", n.mode = 30;
3301
+ break;
3302
+ }
3303
+ n.extra = 15 & A, n.mode = 22;
3304
+ case 22:
3305
+ if (n.extra) {
3306
+ for (R = n.extra; x < R;) {
3307
+ if (v === 0) break e;
3308
+ v--, b += p[g++] << x, x += 8;
3309
+ }
3310
+ n.length += b & (1 << n.extra) - 1, b >>>= n.extra, x -= n.extra, n.back += n.extra;
3311
+ }
3312
+ n.was = n.length, n.mode = 23;
3313
+ case 23:
3314
+ for (; A = (z = n.distcode[b & (1 << n.distbits) - 1]) >>> 16 & 255, j = 65535 & z, !((k = z >>> 24) <= x);) {
3315
+ if (v === 0) break e;
3316
+ v--, b += p[g++] << x, x += 8;
3317
+ }
3318
+ if (!(240 & A)) {
3319
+ for (M = k, N = A, P = j; A = (z = n.distcode[P + ((b & (1 << M + N) - 1) >> M)]) >>> 16 & 255, j = 65535 & z, !(M + (k = z >>> 24) <= x);) {
3320
+ if (v === 0) break e;
3321
+ v--, b += p[g++] << x, x += 8;
3322
+ }
3323
+ b >>>= M, x -= M, n.back += M;
3324
+ }
3325
+ if (b >>>= k, x -= k, n.back += k, 64 & A) {
3326
+ e.msg = "invalid distance code", n.mode = 30;
3327
+ break;
3328
+ }
3329
+ n.offset = j, n.extra = 15 & A, n.mode = 24;
3330
+ case 24:
3331
+ if (n.extra) {
3332
+ for (R = n.extra; x < R;) {
3333
+ if (v === 0) break e;
3334
+ v--, b += p[g++] << x, x += 8;
3335
+ }
3336
+ n.offset += b & (1 << n.extra) - 1, b >>>= n.extra, x -= n.extra, n.back += n.extra;
3337
+ }
3338
+ if (n.offset > n.dmax) {
3339
+ e.msg = "invalid distance too far back", n.mode = 30;
3340
+ break;
3341
+ }
3342
+ n.mode = 25;
3343
+ case 25:
3344
+ if (y === 0) break e;
3345
+ if (E = C - y, n.offset > E) {
3346
+ if ((E = n.offset - E) > n.whave && n.sane) {
3347
+ e.msg = "invalid distance too far back", n.mode = 30;
3348
+ break;
3349
+ }
3350
+ D = E > n.wnext ? (E -= n.wnext, n.wsize - E) : n.wnext - E, E > n.length && (E = n.length), O = n.window;
3351
+ } else O = m, D = _ - n.offset, E = n.length;
3352
+ for (y < E && (E = y), y -= E, n.length -= E; m[_++] = O[D++], --E;);
3353
+ n.length === 0 && (n.mode = 21);
3354
+ break;
3355
+ case 26:
3356
+ if (y === 0) break e;
3357
+ m[_++] = n.length, y--, n.mode = 21;
3358
+ break;
3359
+ case 27:
3360
+ if (n.wrap) {
3361
+ for (; x < 32;) {
3362
+ if (v === 0) break e;
3363
+ v--, b |= p[g++] << x, x += 8;
3364
+ }
3365
+ if (C -= y, e.total_out += C, n.total += C, C && (e.adler = n.check = n.flags ? a(n.check, m, C, _ - C) : i(n.check, m, C, _ - C)), C = y, (n.flags ? b : h(b)) !== n.check) {
3366
+ e.msg = "incorrect data check", n.mode = 30;
3367
+ break;
3368
+ }
3369
+ x = b = 0;
3370
+ }
3371
+ n.mode = 28;
3372
+ case 28:
3373
+ if (n.wrap && n.flags) {
3374
+ for (; x < 32;) {
3375
+ if (v === 0) break e;
3376
+ v--, b += p[g++] << x, x += 8;
3377
+ }
3378
+ if (b !== (4294967295 & n.total)) {
3379
+ e.msg = "incorrect length check", n.mode = 30;
3380
+ break;
3381
+ }
3382
+ x = b = 0;
3383
+ }
3384
+ n.mode = 29;
3385
+ case 29:
3386
+ I = 1;
3387
+ break e;
3388
+ case 30:
3389
+ I = -3;
3390
+ break e;
3391
+ case 31: return -4;
3392
+ case 32:
3393
+ default: return d;
3394
+ }
3395
+ return e.next_out = _, e.avail_out = y, e.next_in = g, e.avail_in = v, n.hold = b, n.bits = x, (n.wsize || C !== e.avail_out && n.mode < 30 && (n.mode < 27 || t !== 4)) && T(e, e.output, e.next_out, C - e.avail_out) ? (n.mode = 31, -4) : (S -= e.avail_in, C -= e.avail_out, e.total_in += S, e.total_out += C, n.total += C, n.wrap && C && (e.adler = n.check = n.flags ? a(n.check, m, C, e.next_out - C) : i(n.check, m, C, e.next_out - C)), e.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === 12 ? 128 : 0) + (n.mode === 20 || n.mode === 15 ? 256 : 0), (S == 0 && C === 0 || t === 4) && I === u && (I = -5), I);
3396
+ }, n.inflateEnd = function(e) {
3397
+ if (!e || !e.state) return d;
3398
+ var t = e.state;
3399
+ return t.window &&= null, e.state = null, u;
3400
+ }, n.inflateGetHeader = function(e, t) {
3401
+ var n;
3402
+ return e && e.state && 2 & (n = e.state).wrap ? ((n.head = t).done = !1, u) : d;
3403
+ }, n.inflateSetDictionary = function(e, t) {
3404
+ var n, r = t.length;
3405
+ return e && e.state ? (n = e.state).wrap !== 0 && n.mode !== 11 ? d : n.mode === 11 && i(1, t, r, 0) !== n.check ? -3 : T(e, t, r, r) ? (n.mode = 31, -4) : (n.havedict = 1, u) : d;
3406
+ }, n.inflateInfo = "pako inflate (from Nodeca project)";
3407
+ }, {
3408
+ "../utils/common": 41,
3409
+ "./adler32": 43,
3410
+ "./crc32": 45,
3411
+ "./inffast": 48,
3412
+ "./inftrees": 50
3413
+ }],
3414
+ 50: [function(e, t, n) {
3415
+ var r = e("../utils/common"), i = [
3416
+ 3,
3417
+ 4,
3418
+ 5,
3419
+ 6,
3420
+ 7,
3421
+ 8,
3422
+ 9,
3423
+ 10,
3424
+ 11,
3425
+ 13,
3426
+ 15,
3427
+ 17,
3428
+ 19,
3429
+ 23,
3430
+ 27,
3431
+ 31,
3432
+ 35,
3433
+ 43,
3434
+ 51,
3435
+ 59,
3436
+ 67,
3437
+ 83,
3438
+ 99,
3439
+ 115,
3440
+ 131,
3441
+ 163,
3442
+ 195,
3443
+ 227,
3444
+ 258,
3445
+ 0,
3446
+ 0
3447
+ ], a = [
3448
+ 16,
3449
+ 16,
3450
+ 16,
3451
+ 16,
3452
+ 16,
3453
+ 16,
3454
+ 16,
3455
+ 16,
3456
+ 17,
3457
+ 17,
3458
+ 17,
3459
+ 17,
3460
+ 18,
3461
+ 18,
3462
+ 18,
3463
+ 18,
3464
+ 19,
3465
+ 19,
3466
+ 19,
3467
+ 19,
3468
+ 20,
3469
+ 20,
3470
+ 20,
3471
+ 20,
3472
+ 21,
3473
+ 21,
3474
+ 21,
3475
+ 21,
3476
+ 16,
3477
+ 72,
3478
+ 78
3479
+ ], o = [
3480
+ 1,
3481
+ 2,
3482
+ 3,
3483
+ 4,
3484
+ 5,
3485
+ 7,
3486
+ 9,
3487
+ 13,
3488
+ 17,
3489
+ 25,
3490
+ 33,
3491
+ 49,
3492
+ 65,
3493
+ 97,
3494
+ 129,
3495
+ 193,
3496
+ 257,
3497
+ 385,
3498
+ 513,
3499
+ 769,
3500
+ 1025,
3501
+ 1537,
3502
+ 2049,
3503
+ 3073,
3504
+ 4097,
3505
+ 6145,
3506
+ 8193,
3507
+ 12289,
3508
+ 16385,
3509
+ 24577,
3510
+ 0,
3511
+ 0
3512
+ ], s = [
3513
+ 16,
3514
+ 16,
3515
+ 16,
3516
+ 16,
3517
+ 17,
3518
+ 17,
3519
+ 18,
3520
+ 18,
3521
+ 19,
3522
+ 19,
3523
+ 20,
3524
+ 20,
3525
+ 21,
3526
+ 21,
3527
+ 22,
3528
+ 22,
3529
+ 23,
3530
+ 23,
3531
+ 24,
3532
+ 24,
3533
+ 25,
3534
+ 25,
3535
+ 26,
3536
+ 26,
3537
+ 27,
3538
+ 27,
3539
+ 28,
3540
+ 28,
3541
+ 29,
3542
+ 29,
3543
+ 64,
3544
+ 64
3545
+ ];
3546
+ t.exports = function(e, t, n, c, l, u, d, f) {
3547
+ var p, m, h, g, _, v, y, b, x, S = f.bits, C = 0, w = 0, T = 0, E = 0, D = 0, O = 0, k = 0, A = 0, j = 0, M = 0, N = null, P = 0, F = new r.Buf16(16), I = new r.Buf16(16), L = null, R = 0;
3548
+ for (C = 0; C <= 15; C++) F[C] = 0;
3549
+ for (w = 0; w < c; w++) F[t[n + w]]++;
3550
+ for (D = S, E = 15; 1 <= E && F[E] === 0; E--);
3551
+ if (E < D && (D = E), E === 0) return l[u++] = 20971520, l[u++] = 20971520, f.bits = 1, 0;
3552
+ for (T = 1; T < E && F[T] === 0; T++);
3553
+ for (D < T && (D = T), C = A = 1; C <= 15; C++) if (A <<= 1, (A -= F[C]) < 0) return -1;
3554
+ if (0 < A && (e === 0 || E !== 1)) return -1;
3555
+ for (I[1] = 0, C = 1; C < 15; C++) I[C + 1] = I[C] + F[C];
3556
+ for (w = 0; w < c; w++) t[n + w] !== 0 && (d[I[t[n + w]]++] = w);
3557
+ if (v = e === 0 ? (N = L = d, 19) : e === 1 ? (N = i, P -= 257, L = a, R -= 257, 256) : (N = o, L = s, -1), C = T, _ = u, k = w = M = 0, h = -1, g = (j = 1 << (O = D)) - 1, e === 1 && 852 < j || e === 2 && 592 < j) return 1;
3558
+ for (;;) {
3559
+ for (y = C - k, x = d[w] < v ? (b = 0, d[w]) : d[w] > v ? (b = L[R + d[w]], N[P + d[w]]) : (b = 96, 0), p = 1 << C - k, T = m = 1 << O; l[_ + (M >> k) + (m -= p)] = y << 24 | b << 16 | x | 0, m !== 0;);
3560
+ for (p = 1 << C - 1; M & p;) p >>= 1;
3561
+ if (p === 0 ? M = 0 : (M &= p - 1, M += p), w++, --F[C] == 0) {
3562
+ if (C === E) break;
3563
+ C = t[n + d[w]];
3564
+ }
3565
+ if (D < C && (M & g) !== h) {
3566
+ for (k === 0 && (k = D), _ += T, A = 1 << (O = C - k); O + k < E && !((A -= F[O + k]) <= 0);) O++, A <<= 1;
3567
+ if (j += 1 << O, e === 1 && 852 < j || e === 2 && 592 < j) return 1;
3568
+ l[h = M & g] = D << 24 | O << 16 | _ - u | 0;
3569
+ }
3570
+ }
3571
+ return M !== 0 && (l[_ + M] = C - k << 24 | 4194304), f.bits = D, 0;
3572
+ };
3573
+ }, { "../utils/common": 41 }],
3574
+ 51: [function(e, t, n) {
3575
+ t.exports = {
3576
+ 2: "need dictionary",
3577
+ 1: "stream end",
3578
+ 0: "",
3579
+ "-1": "file error",
3580
+ "-2": "stream error",
3581
+ "-3": "data error",
3582
+ "-4": "insufficient memory",
3583
+ "-5": "buffer error",
3584
+ "-6": "incompatible version"
3585
+ };
3586
+ }, {}],
3587
+ 52: [function(e, t, n) {
3588
+ var r = e("../utils/common"), i = 0, a = 1;
3589
+ function o(e) {
3590
+ for (var t = e.length; 0 <= --t;) e[t] = 0;
3591
+ }
3592
+ var s = 0, c = 29, l = 256, u = l + 1 + c, d = 30, f = 19, p = 2 * u + 1, m = 15, h = 16, g = 7, _ = 256, v = 16, y = 17, b = 18, x = [
3593
+ 0,
3594
+ 0,
3595
+ 0,
3596
+ 0,
3597
+ 0,
3598
+ 0,
3599
+ 0,
3600
+ 0,
3601
+ 1,
3602
+ 1,
3603
+ 1,
3604
+ 1,
3605
+ 2,
3606
+ 2,
3607
+ 2,
3608
+ 2,
3609
+ 3,
3610
+ 3,
3611
+ 3,
3612
+ 3,
3613
+ 4,
3614
+ 4,
3615
+ 4,
3616
+ 4,
3617
+ 5,
3618
+ 5,
3619
+ 5,
3620
+ 5,
3621
+ 0
3622
+ ], S = [
3623
+ 0,
3624
+ 0,
3625
+ 0,
3626
+ 0,
3627
+ 1,
3628
+ 1,
3629
+ 2,
3630
+ 2,
3631
+ 3,
3632
+ 3,
3633
+ 4,
3634
+ 4,
3635
+ 5,
3636
+ 5,
3637
+ 6,
3638
+ 6,
3639
+ 7,
3640
+ 7,
3641
+ 8,
3642
+ 8,
3643
+ 9,
3644
+ 9,
3645
+ 10,
3646
+ 10,
3647
+ 11,
3648
+ 11,
3649
+ 12,
3650
+ 12,
3651
+ 13,
3652
+ 13
3653
+ ], C = [
3654
+ 0,
3655
+ 0,
3656
+ 0,
3657
+ 0,
3658
+ 0,
3659
+ 0,
3660
+ 0,
3661
+ 0,
3662
+ 0,
3663
+ 0,
3664
+ 0,
3665
+ 0,
3666
+ 0,
3667
+ 0,
3668
+ 0,
3669
+ 0,
3670
+ 2,
3671
+ 3,
3672
+ 7
3673
+ ], w = [
3674
+ 16,
3675
+ 17,
3676
+ 18,
3677
+ 0,
3678
+ 8,
3679
+ 7,
3680
+ 9,
3681
+ 6,
3682
+ 10,
3683
+ 5,
3684
+ 11,
3685
+ 4,
3686
+ 12,
3687
+ 3,
3688
+ 13,
3689
+ 2,
3690
+ 14,
3691
+ 1,
3692
+ 15
3693
+ ], T = Array(2 * (u + 2));
3694
+ o(T);
3695
+ var E = Array(2 * d);
3696
+ o(E);
3697
+ var D = Array(512);
3698
+ o(D);
3699
+ var O = Array(256);
3700
+ o(O);
3701
+ var k = Array(c);
3702
+ o(k);
3703
+ var A, j, M, N = Array(d);
3704
+ function P(e, t, n, r, i) {
3705
+ this.static_tree = e, this.extra_bits = t, this.extra_base = n, this.elems = r, this.max_length = i, this.has_stree = e && e.length;
3706
+ }
3707
+ function F(e, t) {
3708
+ this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
3709
+ }
3710
+ function I(e) {
3711
+ return e < 256 ? D[e] : D[256 + (e >>> 7)];
3712
+ }
3713
+ function L(e, t) {
3714
+ e.pending_buf[e.pending++] = 255 & t, e.pending_buf[e.pending++] = t >>> 8 & 255;
3715
+ }
3716
+ function R(e, t, n) {
3717
+ e.bi_valid > h - n ? (e.bi_buf |= t << e.bi_valid & 65535, L(e, e.bi_buf), e.bi_buf = t >> h - e.bi_valid, e.bi_valid += n - h) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += n);
3718
+ }
3719
+ function z(e, t, n) {
3720
+ R(e, n[2 * t], n[2 * t + 1]);
3721
+ }
3722
+ function B(e, t) {
3723
+ for (var n = 0; n |= 1 & e, e >>>= 1, n <<= 1, 0 < --t;);
3724
+ return n >>> 1;
3725
+ }
3726
+ function V(e, t, n) {
3727
+ var r, i, a = Array(m + 1), o = 0;
3728
+ for (r = 1; r <= m; r++) a[r] = o = o + n[r - 1] << 1;
3729
+ for (i = 0; i <= t; i++) {
3730
+ var s = e[2 * i + 1];
3731
+ s !== 0 && (e[2 * i] = B(a[s]++, s));
3732
+ }
3733
+ }
3734
+ function H(e) {
3735
+ var t;
3736
+ for (t = 0; t < u; t++) e.dyn_ltree[2 * t] = 0;
3737
+ for (t = 0; t < d; t++) e.dyn_dtree[2 * t] = 0;
3738
+ for (t = 0; t < f; t++) e.bl_tree[2 * t] = 0;
3739
+ e.dyn_ltree[2 * _] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
3740
+ }
3741
+ function U(e) {
3742
+ 8 < e.bi_valid ? L(e, e.bi_buf) : 0 < e.bi_valid && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
3743
+ }
3744
+ function W(e, t, n, r) {
3745
+ var i = 2 * t, a = 2 * n;
3746
+ return e[i] < e[a] || e[i] === e[a] && r[t] <= r[n];
3747
+ }
3748
+ function G(e, t, n) {
3749
+ for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len && W(t, e.heap[i + 1], e.heap[i], e.depth) && i++, !W(t, r, e.heap[i], e.depth));) e.heap[n] = e.heap[i], n = i, i <<= 1;
3750
+ e.heap[n] = r;
3751
+ }
3752
+ function K(e, t, n) {
3753
+ var r, i, a, o, s = 0;
3754
+ if (e.last_lit !== 0) for (; r = e.pending_buf[e.d_buf + 2 * s] << 8 | e.pending_buf[e.d_buf + 2 * s + 1], i = e.pending_buf[e.l_buf + s], s++, r === 0 ? z(e, i, t) : (z(e, (a = O[i]) + l + 1, t), (o = x[a]) !== 0 && R(e, i -= k[a], o), z(e, a = I(--r), n), (o = S[a]) !== 0 && R(e, r -= N[a], o)), s < e.last_lit;);
3755
+ z(e, _, t);
3756
+ }
3757
+ function q(e, t) {
3758
+ var n, r, i, a = t.dyn_tree, o = t.stat_desc.static_tree, s = t.stat_desc.has_stree, c = t.stat_desc.elems, l = -1;
3759
+ for (e.heap_len = 0, e.heap_max = p, n = 0; n < c; n++) a[2 * n] === 0 ? a[2 * n + 1] = 0 : (e.heap[++e.heap_len] = l = n, e.depth[n] = 0);
3760
+ for (; e.heap_len < 2;) a[2 * (i = e.heap[++e.heap_len] = l < 2 ? ++l : 0)] = 1, e.depth[i] = 0, e.opt_len--, s && (e.static_len -= o[2 * i + 1]);
3761
+ for (t.max_code = l, n = e.heap_len >> 1; 1 <= n; n--) G(e, a, n);
3762
+ for (i = c; n = e.heap[1], e.heap[1] = e.heap[e.heap_len--], G(e, a, 1), r = e.heap[1], e.heap[--e.heap_max] = n, e.heap[--e.heap_max] = r, a[2 * i] = a[2 * n] + a[2 * r], e.depth[i] = (e.depth[n] >= e.depth[r] ? e.depth[n] : e.depth[r]) + 1, a[2 * n + 1] = a[2 * r + 1] = i, e.heap[1] = i++, G(e, a, 1), 2 <= e.heap_len;);
3763
+ e.heap[--e.heap_max] = e.heap[1], function(e, t) {
3764
+ var n, r, i, a, o, s, c = t.dyn_tree, l = t.max_code, u = t.stat_desc.static_tree, d = t.stat_desc.has_stree, f = t.stat_desc.extra_bits, h = t.stat_desc.extra_base, g = t.stat_desc.max_length, _ = 0;
3765
+ for (a = 0; a <= m; a++) e.bl_count[a] = 0;
3766
+ for (c[2 * e.heap[e.heap_max] + 1] = 0, n = e.heap_max + 1; n < p; n++) g < (a = c[2 * c[2 * (r = e.heap[n]) + 1] + 1] + 1) && (a = g, _++), c[2 * r + 1] = a, l < r || (e.bl_count[a]++, o = 0, h <= r && (o = f[r - h]), s = c[2 * r], e.opt_len += s * (a + o), d && (e.static_len += s * (u[2 * r + 1] + o)));
3767
+ if (_ !== 0) {
3768
+ do {
3769
+ for (a = g - 1; e.bl_count[a] === 0;) a--;
3770
+ e.bl_count[a]--, e.bl_count[a + 1] += 2, e.bl_count[g]--, _ -= 2;
3771
+ } while (0 < _);
3772
+ for (a = g; a !== 0; a--) for (r = e.bl_count[a]; r !== 0;) l < (i = e.heap[--n]) || (c[2 * i + 1] !== a && (e.opt_len += (a - c[2 * i + 1]) * c[2 * i], c[2 * i + 1] = a), r--);
3773
+ }
3774
+ }(e, t), V(a, l, e.bl_count);
3775
+ }
3776
+ function J(e, t, n) {
3777
+ var r, i, a = -1, o = t[1], s = 0, c = 7, l = 4;
3778
+ for (o === 0 && (c = 138, l = 3), t[2 * (n + 1) + 1] = 65535, r = 0; r <= n; r++) i = o, o = t[2 * (r + 1) + 1], ++s < c && i === o || (s < l ? e.bl_tree[2 * i] += s : i === 0 ? s <= 10 ? e.bl_tree[2 * y]++ : e.bl_tree[2 * b]++ : (i !== a && e.bl_tree[2 * i]++, e.bl_tree[2 * v]++), a = i, l = (s = 0) === o ? (c = 138, 3) : i === o ? (c = 6, 3) : (c = 7, 4));
3779
+ }
3780
+ function Y(e, t, n) {
3781
+ var r, i, a = -1, o = t[1], s = 0, c = 7, l = 4;
3782
+ for (o === 0 && (c = 138, l = 3), r = 0; r <= n; r++) if (i = o, o = t[2 * (r + 1) + 1], !(++s < c && i === o)) {
3783
+ if (s < l) for (; z(e, i, e.bl_tree), --s != 0;);
3784
+ else i === 0 ? s <= 10 ? (z(e, y, e.bl_tree), R(e, s - 3, 3)) : (z(e, b, e.bl_tree), R(e, s - 11, 7)) : (i !== a && (z(e, i, e.bl_tree), s--), z(e, v, e.bl_tree), R(e, s - 3, 2));
3785
+ a = i, l = (s = 0) === o ? (c = 138, 3) : i === o ? (c = 6, 3) : (c = 7, 4);
3786
+ }
3787
+ }
3788
+ o(N);
3789
+ var ee = !1;
3790
+ function te(e, t, n, i) {
3791
+ R(e, (s << 1) + +!!i, 3), function(e, t, n, i) {
3792
+ U(e), i && (L(e, n), L(e, ~n)), r.arraySet(e.pending_buf, e.window, t, n, e.pending), e.pending += n;
3793
+ }(e, t, n, !0);
3794
+ }
3795
+ n._tr_init = function(e) {
3796
+ ee ||= (function() {
3797
+ var e, t, n, r, i, a = Array(m + 1);
3798
+ for (r = n = 0; r < c - 1; r++) for (k[r] = n, e = 0; e < 1 << x[r]; e++) O[n++] = r;
3799
+ for (O[n - 1] = r, r = i = 0; r < 16; r++) for (N[r] = i, e = 0; e < 1 << S[r]; e++) D[i++] = r;
3800
+ for (i >>= 7; r < d; r++) for (N[r] = i << 7, e = 0; e < 1 << S[r] - 7; e++) D[256 + i++] = r;
3801
+ for (t = 0; t <= m; t++) a[t] = 0;
3802
+ for (e = 0; e <= 143;) T[2 * e + 1] = 8, e++, a[8]++;
3803
+ for (; e <= 255;) T[2 * e + 1] = 9, e++, a[9]++;
3804
+ for (; e <= 279;) T[2 * e + 1] = 7, e++, a[7]++;
3805
+ for (; e <= 287;) T[2 * e + 1] = 8, e++, a[8]++;
3806
+ for (V(T, u + 1, a), e = 0; e < d; e++) E[2 * e + 1] = 5, E[2 * e] = B(e, 5);
3807
+ A = new P(T, x, l + 1, u, m), j = new P(E, S, 0, d, m), M = new P([], C, 0, f, g);
3808
+ }(), !0), e.l_desc = new F(e.dyn_ltree, A), e.d_desc = new F(e.dyn_dtree, j), e.bl_desc = new F(e.bl_tree, M), e.bi_buf = 0, e.bi_valid = 0, H(e);
3809
+ }, n._tr_stored_block = te, n._tr_flush_block = function(e, t, n, r) {
3810
+ var o, s, c = 0;
3811
+ 0 < e.level ? (e.strm.data_type === 2 && (e.strm.data_type = function(e) {
3812
+ var t, n = 4093624447;
3813
+ for (t = 0; t <= 31; t++, n >>>= 1) if (1 & n && e.dyn_ltree[2 * t] !== 0) return i;
3814
+ if (e.dyn_ltree[18] !== 0 || e.dyn_ltree[20] !== 0 || e.dyn_ltree[26] !== 0) return a;
3815
+ for (t = 32; t < l; t++) if (e.dyn_ltree[2 * t] !== 0) return a;
3816
+ return i;
3817
+ }(e)), q(e, e.l_desc), q(e, e.d_desc), c = function(e) {
3818
+ var t;
3819
+ for (J(e, e.dyn_ltree, e.l_desc.max_code), J(e, e.dyn_dtree, e.d_desc.max_code), q(e, e.bl_desc), t = f - 1; 3 <= t && e.bl_tree[2 * w[t] + 1] === 0; t--);
3820
+ return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
3821
+ }(e), o = e.opt_len + 3 + 7 >>> 3, (s = e.static_len + 3 + 7 >>> 3) <= o && (o = s)) : o = s = n + 5, n + 4 <= o && t !== -1 ? te(e, t, n, r) : e.strategy === 4 || s === o ? (R(e, 2 + +!!r, 3), K(e, T, E)) : (R(e, 4 + +!!r, 3), function(e, t, n, r) {
3822
+ var i;
3823
+ for (R(e, t - 257, 5), R(e, n - 1, 5), R(e, r - 4, 4), i = 0; i < r; i++) R(e, e.bl_tree[2 * w[i] + 1], 3);
3824
+ Y(e, e.dyn_ltree, t - 1), Y(e, e.dyn_dtree, n - 1);
3825
+ }(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, c + 1), K(e, e.dyn_ltree, e.dyn_dtree)), H(e), r && U(e);
3826
+ }, n._tr_tally = function(e, t, n) {
3827
+ return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255, e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, e.pending_buf[e.l_buf + e.last_lit] = 255 & n, e.last_lit++, t === 0 ? e.dyn_ltree[2 * n]++ : (e.matches++, t--, e.dyn_ltree[2 * (O[n] + l + 1)]++, e.dyn_dtree[2 * I(t)]++), e.last_lit === e.lit_bufsize - 1;
3828
+ }, n._tr_align = function(e) {
3829
+ R(e, 2, 3), z(e, _, T), function(e) {
3830
+ e.bi_valid === 16 ? (L(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : 8 <= e.bi_valid && (e.pending_buf[e.pending++] = 255 & e.bi_buf, e.bi_buf >>= 8, e.bi_valid -= 8);
3831
+ }(e);
3832
+ };
3833
+ }, { "../utils/common": 41 }],
3834
+ 53: [function(e, t, n) {
3835
+ t.exports = function() {
3836
+ 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;
3837
+ };
3838
+ }, {}],
3839
+ 54: [function(e, t, n) {
3840
+ (function(e) {
3841
+ (function(e, t) {
3842
+ if (!e.setImmediate) {
3843
+ var n, r, i, a, o = 1, s = {}, c = !1, l = e.document, u = Object.getPrototypeOf && Object.getPrototypeOf(e);
3844
+ u = u && u.setTimeout ? u : e, n = {}.toString.call(e.process) === "[object process]" ? function(e) {
3845
+ V.nextTick(function() {
3846
+ f(e);
3847
+ });
3848
+ } : function() {
3849
+ if (e.postMessage && !e.importScripts) {
3850
+ var t = !0, n = e.onmessage;
3851
+ return e.onmessage = function() {
3852
+ t = !1;
3853
+ }, e.postMessage("", "*"), e.onmessage = n, t;
3854
+ }
3855
+ }() ? (a = "setImmediate$" + Math.random() + "$", e.addEventListener ? e.addEventListener("message", p, !1) : e.attachEvent("onmessage", p), function(t) {
3856
+ e.postMessage(a + t, "*");
3857
+ }) : e.MessageChannel ? ((i = new MessageChannel()).port1.onmessage = function(e) {
3858
+ f(e.data);
3859
+ }, function(e) {
3860
+ i.port2.postMessage(e);
3861
+ }) : l && "onreadystatechange" in l.createElement("script") ? (r = l.documentElement, function(e) {
3862
+ var t = l.createElement("script");
3863
+ t.onreadystatechange = function() {
3864
+ f(e), t.onreadystatechange = null, r.removeChild(t), t = null;
3865
+ }, r.appendChild(t);
3866
+ }) : function(e) {
3867
+ setTimeout(f, 0, e);
3868
+ }, u.setImmediate = function(e) {
3869
+ typeof e != "function" && (e = Function("" + e));
3870
+ for (var t = Array(arguments.length - 1), r = 0; r < t.length; r++) t[r] = arguments[r + 1];
3871
+ return s[o] = {
3872
+ callback: e,
3873
+ args: t
3874
+ }, n(o), o++;
3875
+ }, u.clearImmediate = d;
3876
+ }
3877
+ function d(e) {
3878
+ delete s[e];
3879
+ }
3880
+ function f(e) {
3881
+ if (c) setTimeout(f, 0, e);
3882
+ else {
3883
+ var n = s[e];
3884
+ if (n) {
3885
+ c = !0;
3886
+ try {
3887
+ (function(e) {
3888
+ var n = e.callback, r = e.args;
3889
+ switch (r.length) {
3890
+ case 0:
3891
+ n();
3892
+ break;
3893
+ case 1:
3894
+ n(r[0]);
3895
+ break;
3896
+ case 2:
3897
+ n(r[0], r[1]);
3898
+ break;
3899
+ case 3:
3900
+ n(r[0], r[1], r[2]);
3901
+ break;
3902
+ default: n.apply(t, r);
3903
+ }
3904
+ })(n);
3905
+ } finally {
3906
+ d(e), c = !1;
3907
+ }
3908
+ }
3909
+ }
3910
+ }
3911
+ function p(t) {
3912
+ t.source === e && typeof t.data == "string" && t.data.indexOf(a) === 0 && f(+t.data.slice(a.length));
3913
+ }
3914
+ })(typeof self > "u" ? e === void 0 ? this : e : self);
3915
+ }).call(this, x === void 0 ? typeof self < "u" ? self : typeof window < "u" ? window : {} : x);
3916
+ }, {}]
3917
+ }, {}, [10])(10);
3918
+ });
3919
+ }));
3920
+ //#endregion
3921
+ export { S as a, x as i, H as n, y as o, V as r, b as s, U as t };