superdoc 2.4.0-next.2 → 2.4.0-next.21

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