@wp-playground/cli 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,35 @@
1
- import { logger as me, errorLogPath as ns } from "@php-wasm/logger";
2
- import { ProgressTracker as rs, EmscriptenDownloadMonitor as is } from "@php-wasm/progress";
3
- import { SupportedPHPVersions as ss, PHPResponse as os, consumeAPI as Yn, exposeAPI as Zn } from "@php-wasm/universal";
4
- import { resolveRemoteBlueprint as as, isBlueprintBundle as cs, compileBlueprint as ls, runBlueprintSteps as fs } from "@wp-playground/blueprints";
5
- import { RecommendedPHPVersion as Qr, zipDirectory as Vn, unzipFile as us } from "@wp-playground/common";
6
- import ye, { existsSync as ei } from "fs";
1
+ import { logger as me, errorLogPath as ts } from "@php-wasm/logger";
2
+ import { ProgressTracker as ns, EmscriptenDownloadMonitor as rs } from "@php-wasm/progress";
3
+ import { SupportedPHPVersions as is, PHPResponse as ss, consumeAPI as Yn, exposeAPI as os, exposeSyncAPI as as } from "@php-wasm/universal";
4
+ import { resolveRemoteBlueprint as cs, isBlueprintBundle as ls, compileBlueprint as fs, runBlueprintSteps as us } from "@wp-playground/blueprints";
5
+ import { RecommendedPHPVersion as Jr, zipDirectory as Zn, unzipFile as ds } from "@wp-playground/common";
6
+ import ye, { existsSync as Qr } from "fs";
7
7
  import Je, { basename as Et, join as Pn } from "path";
8
- import { Worker as ds } from "worker_threads";
9
- import { resolveWordPressRelease as ps } from "@wp-playground/wordpress";
8
+ import { MessageChannel as ps, Worker as ms } from "worker_threads";
9
+ import { resolveWordPressRelease as hs } from "@wp-playground/wordpress";
10
10
  import mt from "fs-extra";
11
- import ms, { cpus as hs } from "os";
12
- import xs from "express";
13
- import { FileLockManagerForNode as ws } from "@php-wasm/node";
14
- import gs from "yargs";
11
+ import xs, { cpus as ws } from "os";
12
+ import gs from "express";
13
+ import { FileLockManagerForNode as _s } from "@php-wasm/node";
14
+ import { j as ys } from "./index-CddYZc1x.js";
15
+ import bs from "yargs";
15
16
  import { Semaphore as Dn } from "@php-wasm/util";
16
- function _s(n) {
17
+ function vs(n) {
17
18
  const t = process.cwd(), e = [...n.mount || []], r = [...n.mountBeforeInstall || []];
18
- if (ri(t)) {
19
+ if (ni(t)) {
19
20
  const c = Et(t);
20
21
  e.push({
21
22
  hostPath: t,
22
23
  vfsPath: `/wordpress/wp-content/plugins/${c}`
23
24
  });
24
- } else if (ni(t)) {
25
+ } else if (ti(t)) {
25
26
  const c = Et(t);
26
27
  e.push({
27
28
  hostPath: t,
28
29
  vfsPath: `/wordpress/wp-content/themes/${c}`
29
30
  });
30
- } else if (ti(t))
31
- e.push(...Gn(t));
31
+ } else if (ei(t))
32
+ e.push(...Vn(t));
32
33
  else if (vn(t)) {
33
34
  const c = ye.readdirSync(t), l = [];
34
35
  for (const f of c)
@@ -38,12 +39,12 @@ function _s(n) {
38
39
  });
39
40
  r.push(
40
41
  ...l,
41
- ...Gn(Pn(t, "wp-content"))
42
+ ...Vn(Pn(t, "wp-content"))
42
43
  );
43
44
  } else
44
45
  e.push({ hostPath: t, vfsPath: "/wordpress" });
45
46
  const s = n.blueprint || {};
46
- s.steps = [...s.steps || [], ...ys(t)];
47
+ s.steps = [...s.steps || [], ...ks(t)];
47
48
  const a = n.skipWordPressSetup || vn(t);
48
49
  return {
49
50
  ...n,
@@ -57,41 +58,41 @@ function vn(n) {
57
58
  const t = ye.readdirSync(n);
58
59
  return t.includes("wp-admin") && t.includes("wp-includes") && t.includes("wp-content");
59
60
  }
60
- function ti(n) {
61
+ function ei(n) {
61
62
  const t = ye.readdirSync(n);
62
63
  return t.includes("themes") || t.includes("plugins") || t.includes("mu-plugins") || t.includes("uploads");
63
64
  }
64
- function ni(n) {
65
+ function ti(n) {
65
66
  if (!ye.readdirSync(n).includes("style.css"))
66
67
  return !1;
67
68
  const e = ye.readFileSync(Pn(n, "style.css"), "utf8");
68
69
  return !!/^(?:[ \t]*<\?php)?[ \t/*#@]*Theme Name:(.*)$/im.exec(e);
69
70
  }
70
- function ri(n) {
71
+ function ni(n) {
71
72
  const t = ye.readdirSync(n), e = /^(?:[ \t]*<\?php)?[ \t/*#@]*Plugin Name:(.*)$/im;
72
73
  return !!t.filter((s) => s.endsWith(".php")).find((s) => {
73
74
  const a = ye.readFileSync(Pn(n, s), "utf8");
74
75
  return !!e.exec(a);
75
76
  });
76
77
  }
77
- function Gn(n) {
78
+ function Vn(n) {
78
79
  return ye.readdirSync(n).filter((e) => !e.startsWith("index.php")).map((e) => ({
79
80
  hostPath: `${n}/${e}`,
80
81
  vfsPath: `/wordpress/wp-content/${e}`
81
82
  }));
82
83
  }
83
- function ys(n) {
84
- return ri(n) ? [
84
+ function ks(n) {
85
+ return ni(n) ? [
85
86
  {
86
87
  step: "activatePlugin",
87
88
  pluginPath: `/wordpress/wp-content/plugins/${Et(n)}`
88
89
  }
89
- ] : ni(n) ? [
90
+ ] : ti(n) ? [
90
91
  {
91
92
  step: "activateTheme",
92
93
  themeFolderName: Et(n)
93
94
  }
94
- ] : ti(n) || vn(n) ? [
95
+ ] : ei(n) || vn(n) ? [
95
96
  {
96
97
  step: "runPHP",
97
98
  code: `<?php
@@ -108,19 +109,19 @@ function ys(n) {
108
109
  }
109
110
  ] : [];
110
111
  }
111
- const kn = Je.join(ms.homedir(), ".wordpress-playground");
112
- async function bs(n) {
113
- return await ii(
112
+ const kn = Je.join(xs.homedir(), ".wordpress-playground");
113
+ async function Es(n) {
114
+ return await ri(
114
115
  "https://github.com/WordPress/sqlite-database-integration/archive/refs/heads/develop.zip",
115
116
  "sqlite.zip",
116
117
  n
117
118
  );
118
119
  }
119
- async function ii(n, t, e) {
120
+ async function ri(n, t, e) {
120
121
  const r = Je.join(kn, t);
121
- return mt.existsSync(r) || (mt.ensureDirSync(kn), await vs(n, r, e)), si(r);
122
+ return mt.existsSync(r) || (mt.ensureDirSync(kn), await Ss(n, r, e)), ii(r);
122
123
  }
123
- async function vs(n, t, e) {
124
+ async function Ss(n, t, e) {
124
125
  const s = (await e.monitorFetch(fetch(n))).body.getReader(), a = `${t}.partial`, c = mt.createWriteStream(a);
125
126
  for (; ; ) {
126
127
  const { done: l, value: f } = await s.read();
@@ -135,11 +136,11 @@ async function vs(n, t, e) {
135
136
  });
136
137
  });
137
138
  }
138
- function si(n, t) {
139
+ function ii(n, t) {
139
140
  return new File([mt.readFileSync(n)], Et(n));
140
141
  }
141
- async function ks(n) {
142
- const t = xs(), e = await new Promise((a, c) => {
142
+ async function As(n) {
143
+ const t = gs(), e = await new Promise((a, c) => {
143
144
  const l = t.listen(n.port, () => {
144
145
  const f = l.address();
145
146
  f === null || typeof f == "string" ? c(new Error("Server address is not available")) : a(l);
@@ -148,9 +149,9 @@ async function ks(n) {
148
149
  t.use("/", async (a, c) => {
149
150
  const l = await n.handleRequest({
150
151
  url: a.url,
151
- headers: Ss(a),
152
+ headers: Rs(a),
152
153
  method: a.method,
153
- body: await Es(a)
154
+ body: await Ts(a)
154
155
  });
155
156
  c.statusCode = l.httpStatusCode;
156
157
  for (const f in l.headers)
@@ -160,21 +161,21 @@ async function ks(n) {
160
161
  const s = e.address().port;
161
162
  return await n.onBind(e, s);
162
163
  }
163
- const Es = async (n) => await new Promise((t) => {
164
+ const Ts = async (n) => await new Promise((t) => {
164
165
  const e = [];
165
166
  n.on("data", (r) => {
166
167
  e.push(r);
167
168
  }), n.on("end", () => {
168
169
  t(new Uint8Array(Buffer.concat(e)));
169
170
  });
170
- }), Ss = (n) => {
171
+ }), Rs = (n) => {
171
172
  const t = {};
172
173
  if (n.rawHeaders && n.rawHeaders.length)
173
174
  for (let e = 0; e < n.rawHeaders.length; e += 2)
174
175
  t[n.rawHeaders[e].toLowerCase()] = n.rawHeaders[e + 1];
175
176
  return t;
176
- }, As = "" + new URL("worker-thread-BQ8BezvJ.js", import.meta.url).href;
177
- class Ts {
177
+ }, Fs = "" + new URL("worker-thread-CQBM_bGk.js", import.meta.url).href;
178
+ class Cs {
178
179
  constructor(t) {
179
180
  this.workerLoads = [], this.addWorker(t);
180
181
  }
@@ -196,11 +197,10 @@ class Ts {
196
197
  });
197
198
  }
198
199
  }
199
- const Rs = () => (async () => "Suspending" in WebAssembly)();
200
- function Fs(n) {
200
+ function Is(n) {
201
201
  return /^latest$|^trunk$|^nightly$|^(?:(\d+)\.(\d+)(?:\.(\d+))?)((?:-beta(?:\d+)?)|(?:-RC(?:\d+)?))?$/.test(n);
202
202
  }
203
- function Kn(n) {
203
+ function Gn(n) {
204
204
  const t = [];
205
205
  for (const e of n) {
206
206
  const r = e.split(":");
@@ -210,19 +210,19 @@ function Kn(n) {
210
210
  If your path contains a colon, e.g. C:\\myplugin, use the --mount-dir option instead.
211
211
  Example: --mount-dir C:\\my-plugin /wordpress/wp-content/plugins/my-plugin`);
212
212
  const [s, a] = r;
213
- if (!ei(s))
213
+ if (!Qr(s))
214
214
  throw new Error(`Host path does not exist: ${s}`);
215
215
  t.push({ hostPath: s, vfsPath: a });
216
216
  }
217
217
  return t;
218
218
  }
219
- function Cs(n) {
219
+ function Ps(n) {
220
220
  if (n.length % 2 !== 0)
221
221
  throw new Error("Invalid mount format. Expected: /host/path /vfs/path");
222
222
  const t = [];
223
223
  for (let e = 0; e < n.length; e += 2) {
224
224
  const r = n[e], s = n[e + 1];
225
- if (!ei(r))
225
+ if (!Qr(r))
226
226
  throw new Error(`Host path does not exist: ${r}`);
227
227
  t.push({
228
228
  hostPath: Je.resolve(process.cwd(), r),
@@ -231,7 +231,7 @@ function Cs(n) {
231
231
  }
232
232
  return t;
233
233
  }
234
- class oi extends Error {
234
+ class si extends Error {
235
235
  constructor(t, e) {
236
236
  super(t, {
237
237
  ...e,
@@ -279,7 +279,7 @@ class Ln extends Error {
279
279
  return !0;
280
280
  }
281
281
  }
282
- var Is = {};
282
+ var Ds = {};
283
283
  /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
284
284
  (function(n) {
285
285
  (function(t) {
@@ -287,48 +287,48 @@ var Is = {};
287
287
  })(function(t) {
288
288
  t.version = "1.2.2";
289
289
  function e() {
290
- for (var y = 0, D = new Array(256), b = 0; b != 256; ++b)
291
- y = b, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, D[b] = y;
292
- return typeof Int32Array < "u" ? new Int32Array(D) : D;
290
+ for (var y = 0, P = new Array(256), k = 0; k != 256; ++k)
291
+ y = k, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, P[k] = y;
292
+ return typeof Int32Array < "u" ? new Int32Array(P) : P;
293
293
  }
294
294
  var r = e();
295
295
  function s(y) {
296
- var D = 0, b = 0, E = 0, M = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
297
- for (E = 0; E != 256; ++E) M[E] = y[E];
296
+ var P = 0, k = 0, E = 0, B = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
297
+ for (E = 0; E != 256; ++E) B[E] = y[E];
298
298
  for (E = 0; E != 256; ++E)
299
- for (b = y[E], D = 256 + E; D < 4096; D += 256) b = M[D] = b >>> 8 ^ y[b & 255];
300
- var O = [];
301
- for (E = 1; E != 16; ++E) O[E - 1] = typeof Int32Array < "u" ? M.subarray(E * 256, E * 256 + 256) : M.slice(E * 256, E * 256 + 256);
302
- return O;
299
+ for (k = y[E], P = 256 + E; P < 4096; P += 256) k = B[P] = k >>> 8 ^ y[k & 255];
300
+ var L = [];
301
+ for (E = 1; E != 16; ++E) L[E - 1] = typeof Int32Array < "u" ? B.subarray(E * 256, E * 256 + 256) : B.slice(E * 256, E * 256 + 256);
302
+ return L;
303
303
  }
304
- var a = s(r), c = a[0], l = a[1], f = a[2], _ = a[3], x = a[4], w = a[5], g = a[6], T = a[7], C = a[8], m = a[9], d = a[10], h = a[11], v = a[12], A = a[13], P = a[14];
305
- function S(y, D) {
306
- for (var b = D ^ -1, E = 0, M = y.length; E < M; ) b = b >>> 8 ^ r[(b ^ y.charCodeAt(E++)) & 255];
307
- return ~b;
304
+ var a = s(r), c = a[0], l = a[1], f = a[2], _ = a[3], x = a[4], w = a[5], g = a[6], T = a[7], O = a[8], m = a[9], d = a[10], h = a[11], b = a[12], R = a[13], C = a[14];
305
+ function S(y, P) {
306
+ for (var k = P ^ -1, E = 0, B = y.length; E < B; ) k = k >>> 8 ^ r[(k ^ y.charCodeAt(E++)) & 255];
307
+ return ~k;
308
308
  }
309
- function R(y, D) {
310
- for (var b = D ^ -1, E = y.length - 15, M = 0; M < E; ) b = P[y[M++] ^ b & 255] ^ A[y[M++] ^ b >> 8 & 255] ^ v[y[M++] ^ b >> 16 & 255] ^ h[y[M++] ^ b >>> 24] ^ d[y[M++]] ^ m[y[M++]] ^ C[y[M++]] ^ T[y[M++]] ^ g[y[M++]] ^ w[y[M++]] ^ x[y[M++]] ^ _[y[M++]] ^ f[y[M++]] ^ l[y[M++]] ^ c[y[M++]] ^ r[y[M++]];
311
- for (E += 15; M < E; ) b = b >>> 8 ^ r[(b ^ y[M++]) & 255];
312
- return ~b;
309
+ function A(y, P) {
310
+ for (var k = P ^ -1, E = y.length - 15, B = 0; B < E; ) k = C[y[B++] ^ k & 255] ^ R[y[B++] ^ k >> 8 & 255] ^ b[y[B++] ^ k >> 16 & 255] ^ h[y[B++] ^ k >>> 24] ^ d[y[B++]] ^ m[y[B++]] ^ O[y[B++]] ^ T[y[B++]] ^ g[y[B++]] ^ w[y[B++]] ^ x[y[B++]] ^ _[y[B++]] ^ f[y[B++]] ^ l[y[B++]] ^ c[y[B++]] ^ r[y[B++]];
311
+ for (E += 15; B < E; ) k = k >>> 8 ^ r[(k ^ y[B++]) & 255];
312
+ return ~k;
313
313
  }
314
- function F(y, D) {
315
- for (var b = D ^ -1, E = 0, M = y.length, O = 0, $ = 0; E < M; )
316
- O = y.charCodeAt(E++), O < 128 ? b = b >>> 8 ^ r[(b ^ O) & 255] : O < 2048 ? (b = b >>> 8 ^ r[(b ^ (192 | O >> 6 & 31)) & 255], b = b >>> 8 ^ r[(b ^ (128 | O & 63)) & 255]) : O >= 55296 && O < 57344 ? (O = (O & 1023) + 64, $ = y.charCodeAt(E++) & 1023, b = b >>> 8 ^ r[(b ^ (240 | O >> 8 & 7)) & 255], b = b >>> 8 ^ r[(b ^ (128 | O >> 2 & 63)) & 255], b = b >>> 8 ^ r[(b ^ (128 | $ >> 6 & 15 | (O & 3) << 4)) & 255], b = b >>> 8 ^ r[(b ^ (128 | $ & 63)) & 255]) : (b = b >>> 8 ^ r[(b ^ (224 | O >> 12 & 15)) & 255], b = b >>> 8 ^ r[(b ^ (128 | O >> 6 & 63)) & 255], b = b >>> 8 ^ r[(b ^ (128 | O & 63)) & 255]);
317
- return ~b;
314
+ function F(y, P) {
315
+ for (var k = P ^ -1, E = 0, B = y.length, L = 0, Y = 0; E < B; )
316
+ L = y.charCodeAt(E++), L < 128 ? k = k >>> 8 ^ r[(k ^ L) & 255] : L < 2048 ? (k = k >>> 8 ^ r[(k ^ (192 | L >> 6 & 31)) & 255], k = k >>> 8 ^ r[(k ^ (128 | L & 63)) & 255]) : L >= 55296 && L < 57344 ? (L = (L & 1023) + 64, Y = y.charCodeAt(E++) & 1023, k = k >>> 8 ^ r[(k ^ (240 | L >> 8 & 7)) & 255], k = k >>> 8 ^ r[(k ^ (128 | L >> 2 & 63)) & 255], k = k >>> 8 ^ r[(k ^ (128 | Y >> 6 & 15 | (L & 3) << 4)) & 255], k = k >>> 8 ^ r[(k ^ (128 | Y & 63)) & 255]) : (k = k >>> 8 ^ r[(k ^ (224 | L >> 12 & 15)) & 255], k = k >>> 8 ^ r[(k ^ (128 | L >> 6 & 63)) & 255], k = k >>> 8 ^ r[(k ^ (128 | L & 63)) & 255]);
317
+ return ~k;
318
318
  }
319
- t.table = r, t.bstr = S, t.buf = R, t.str = F;
319
+ t.table = r, t.bstr = S, t.buf = A, t.str = F;
320
320
  });
321
- })(Is);
322
- var ai = {}, en = {};
323
- en.byteLength = Ls;
324
- en.toByteArray = Os;
325
- en.fromByteArray = Ms;
326
- var We = [], Ce = [], Ps = typeof Uint8Array < "u" ? Uint8Array : Array, on = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
327
- for (var ct = 0, Ds = on.length; ct < Ds; ++ct)
328
- We[ct] = on[ct], Ce[on.charCodeAt(ct)] = ct;
321
+ })(Ds);
322
+ var oi = {}, en = {};
323
+ en.byteLength = Os;
324
+ en.toByteArray = Bs;
325
+ en.fromByteArray = qs;
326
+ var Be = [], Ce = [], Ls = typeof Uint8Array < "u" ? Uint8Array : Array, on = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
327
+ for (var ct = 0, Us = on.length; ct < Us; ++ct)
328
+ Be[ct] = on[ct], Ce[on.charCodeAt(ct)] = ct;
329
329
  Ce[45] = 62;
330
330
  Ce[95] = 63;
331
- function ci(n) {
331
+ function ai(n) {
332
332
  var t = n.length;
333
333
  if (t % 4 > 0)
334
334
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -337,34 +337,34 @@ function ci(n) {
337
337
  var r = e === t ? 0 : 4 - e % 4;
338
338
  return [e, r];
339
339
  }
340
- function Ls(n) {
341
- var t = ci(n), e = t[0], r = t[1];
340
+ function Os(n) {
341
+ var t = ai(n), e = t[0], r = t[1];
342
342
  return (e + r) * 3 / 4 - r;
343
343
  }
344
- function Us(n, t, e) {
344
+ function Ws(n, t, e) {
345
345
  return (t + e) * 3 / 4 - e;
346
346
  }
347
- function Os(n) {
348
- var t, e = ci(n), r = e[0], s = e[1], a = new Ps(Us(n, r, s)), c = 0, l = s > 0 ? r - 4 : r, f;
347
+ function Bs(n) {
348
+ var t, e = ai(n), r = e[0], s = e[1], a = new Ls(Ws(n, r, s)), c = 0, l = s > 0 ? r - 4 : r, f;
349
349
  for (f = 0; f < l; f += 4)
350
350
  t = Ce[n.charCodeAt(f)] << 18 | Ce[n.charCodeAt(f + 1)] << 12 | Ce[n.charCodeAt(f + 2)] << 6 | Ce[n.charCodeAt(f + 3)], a[c++] = t >> 16 & 255, a[c++] = t >> 8 & 255, a[c++] = t & 255;
351
351
  return s === 2 && (t = Ce[n.charCodeAt(f)] << 2 | Ce[n.charCodeAt(f + 1)] >> 4, a[c++] = t & 255), s === 1 && (t = Ce[n.charCodeAt(f)] << 10 | Ce[n.charCodeAt(f + 1)] << 4 | Ce[n.charCodeAt(f + 2)] >> 2, a[c++] = t >> 8 & 255, a[c++] = t & 255), a;
352
352
  }
353
- function Bs(n) {
354
- return We[n >> 18 & 63] + We[n >> 12 & 63] + We[n >> 6 & 63] + We[n & 63];
353
+ function Ms(n) {
354
+ return Be[n >> 18 & 63] + Be[n >> 12 & 63] + Be[n >> 6 & 63] + Be[n & 63];
355
355
  }
356
- function Ws(n, t, e) {
356
+ function Ns(n, t, e) {
357
357
  for (var r, s = [], a = t; a < e; a += 3)
358
- r = (n[a] << 16 & 16711680) + (n[a + 1] << 8 & 65280) + (n[a + 2] & 255), s.push(Bs(r));
358
+ r = (n[a] << 16 & 16711680) + (n[a + 1] << 8 & 65280) + (n[a + 2] & 255), s.push(Ms(r));
359
359
  return s.join("");
360
360
  }
361
- function Ms(n) {
361
+ function qs(n) {
362
362
  for (var t, e = n.length, r = e % 3, s = [], a = 16383, c = 0, l = e - r; c < l; c += a)
363
- s.push(Ws(n, c, c + a > l ? l : c + a));
363
+ s.push(Ns(n, c, c + a > l ? l : c + a));
364
364
  return r === 1 ? (t = n[e - 1], s.push(
365
- We[t >> 2] + We[t << 4 & 63] + "=="
365
+ Be[t >> 2] + Be[t << 4 & 63] + "=="
366
366
  )) : r === 2 && (t = (n[e - 2] << 8) + n[e - 1], s.push(
367
- We[t >> 10] + We[t >> 4 & 63] + We[t << 2 & 63] + "="
367
+ Be[t >> 10] + Be[t >> 4 & 63] + Be[t << 2 & 63] + "="
368
368
  )), s.join("");
369
369
  }
370
370
  var Un = {};
@@ -385,12 +385,12 @@ Un.read = function(n, t, e, r, s) {
385
385
  return (T ? -1 : 1) * c * Math.pow(2, a - r);
386
386
  };
387
387
  Un.write = function(n, t, e, r, s, a) {
388
- var c, l, f, _ = a * 8 - s - 1, x = (1 << _) - 1, w = x >> 1, g = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, T = r ? 0 : a - 1, C = r ? 1 : -1, m = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
389
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (l = isNaN(t) ? 1 : 0, c = x) : (c = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -c)) < 1 && (c--, f *= 2), c + w >= 1 ? t += g / f : t += g * Math.pow(2, 1 - w), t * f >= 2 && (c++, f /= 2), c + w >= x ? (l = 0, c = x) : c + w >= 1 ? (l = (t * f - 1) * Math.pow(2, s), c = c + w) : (l = t * Math.pow(2, w - 1) * Math.pow(2, s), c = 0)); s >= 8; n[e + T] = l & 255, T += C, l /= 256, s -= 8)
388
+ var c, l, f, _ = a * 8 - s - 1, x = (1 << _) - 1, w = x >> 1, g = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, T = r ? 0 : a - 1, O = r ? 1 : -1, m = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
389
+ for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (l = isNaN(t) ? 1 : 0, c = x) : (c = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -c)) < 1 && (c--, f *= 2), c + w >= 1 ? t += g / f : t += g * Math.pow(2, 1 - w), t * f >= 2 && (c++, f /= 2), c + w >= x ? (l = 0, c = x) : c + w >= 1 ? (l = (t * f - 1) * Math.pow(2, s), c = c + w) : (l = t * Math.pow(2, w - 1) * Math.pow(2, s), c = 0)); s >= 8; n[e + T] = l & 255, T += O, l /= 256, s -= 8)
390
390
  ;
391
- for (c = c << s | l, _ += s; _ > 0; n[e + T] = c & 255, T += C, c /= 256, _ -= 8)
391
+ for (c = c << s | l, _ += s; _ > 0; n[e + T] = c & 255, T += O, c /= 256, _ -= 8)
392
392
  ;
393
- n[e + T - C] |= m * 128;
393
+ n[e + T - O] |= m * 128;
394
394
  };
395
395
  /*!
396
396
  * The buffer module from node.js, for the browser.
@@ -400,7 +400,7 @@ Un.write = function(n, t, e, r, s, a) {
400
400
  */
401
401
  (function(n) {
402
402
  var t = en, e = Un, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
403
- n.Buffer = l, n.SlowBuffer = v, n.INSPECT_MAX_BYTES = 50;
403
+ n.Buffer = l, n.SlowBuffer = b, n.INSPECT_MAX_BYTES = 50;
404
404
  var s = 2147483647;
405
405
  n.kMaxLength = s, l.TYPED_ARRAY_SUPPORT = a(), !l.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
406
406
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
@@ -449,7 +449,7 @@ Un.write = function(n, t, e, r, s, a) {
449
449
  if (typeof u == "string")
450
450
  return g(u, i);
451
451
  if (ArrayBuffer.isView(u))
452
- return C(u);
452
+ return O(u);
453
453
  if (u == null)
454
454
  throw new TypeError(
455
455
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof u
@@ -463,8 +463,8 @@ Un.write = function(n, t, e, r, s, a) {
463
463
  var p = u.valueOf && u.valueOf();
464
464
  if (p != null && p !== u)
465
465
  return l.from(p, i, o);
466
- var k = d(u);
467
- if (k) return k;
466
+ var v = d(u);
467
+ if (v) return v;
468
468
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof u[Symbol.toPrimitive] == "function")
469
469
  return l.from(
470
470
  u[Symbol.toPrimitive]("string"),
@@ -501,15 +501,15 @@ Un.write = function(n, t, e, r, s, a) {
501
501
  function g(u, i) {
502
502
  if ((typeof i != "string" || i === "") && (i = "utf8"), !l.isEncoding(i))
503
503
  throw new TypeError("Unknown encoding: " + i);
504
- var o = A(u, i) | 0, p = c(o), k = p.write(u, i);
505
- return k !== o && (p = p.slice(0, k)), p;
504
+ var o = R(u, i) | 0, p = c(o), v = p.write(u, i);
505
+ return v !== o && (p = p.slice(0, v)), p;
506
506
  }
507
507
  function T(u) {
508
508
  for (var i = u.length < 0 ? 0 : h(u.length) | 0, o = c(i), p = 0; p < i; p += 1)
509
509
  o[p] = u[p] & 255;
510
510
  return o;
511
511
  }
512
- function C(u) {
512
+ function O(u) {
513
513
  if (fe(u, Uint8Array)) {
514
514
  var i = new Uint8Array(u);
515
515
  return m(i.buffer, i.byteOffset, i.byteLength);
@@ -539,7 +539,7 @@ Un.write = function(n, t, e, r, s, a) {
539
539
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s.toString(16) + " bytes");
540
540
  return u | 0;
541
541
  }
542
- function v(u) {
542
+ function b(u) {
543
543
  return +u != u && (u = 0), l.alloc(+u);
544
544
  }
545
545
  l.isBuffer = function(i) {
@@ -550,12 +550,12 @@ Un.write = function(n, t, e, r, s, a) {
550
550
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
551
551
  );
552
552
  if (i === o) return 0;
553
- for (var p = i.length, k = o.length, L = 0, W = Math.min(p, k); L < W; ++L)
554
- if (i[L] !== o[L]) {
555
- p = i[L], k = o[L];
553
+ for (var p = i.length, v = o.length, D = 0, M = Math.min(p, v); D < M; ++D)
554
+ if (i[D] !== o[D]) {
555
+ p = i[D], v = o[D];
556
556
  break;
557
557
  }
558
- return p < k ? -1 : k < p ? 1 : 0;
558
+ return p < v ? -1 : v < p ? 1 : 0;
559
559
  }, l.isEncoding = function(i) {
560
560
  switch (String(i).toLowerCase()) {
561
561
  case "hex":
@@ -582,24 +582,24 @@ Un.write = function(n, t, e, r, s, a) {
582
582
  if (o === void 0)
583
583
  for (o = 0, p = 0; p < i.length; ++p)
584
584
  o += i[p].length;
585
- var k = l.allocUnsafe(o), L = 0;
585
+ var v = l.allocUnsafe(o), D = 0;
586
586
  for (p = 0; p < i.length; ++p) {
587
- var W = i[p];
588
- if (fe(W, Uint8Array))
589
- L + W.length > k.length ? l.from(W).copy(k, L) : Uint8Array.prototype.set.call(
590
- k,
591
- W,
592
- L
587
+ var M = i[p];
588
+ if (fe(M, Uint8Array))
589
+ D + M.length > v.length ? l.from(M).copy(v, D) : Uint8Array.prototype.set.call(
590
+ v,
591
+ M,
592
+ D
593
593
  );
594
- else if (l.isBuffer(W))
595
- W.copy(k, L);
594
+ else if (l.isBuffer(M))
595
+ M.copy(v, D);
596
596
  else
597
597
  throw new TypeError('"list" argument must be an Array of Buffers');
598
- L += W.length;
598
+ D += M.length;
599
599
  }
600
- return k;
600
+ return v;
601
601
  };
602
- function A(u, i) {
602
+ function R(u, i) {
603
603
  if (l.isBuffer(u))
604
604
  return u.length;
605
605
  if (ArrayBuffer.isView(u) || fe(u, ArrayBuffer))
@@ -610,7 +610,7 @@ Un.write = function(n, t, e, r, s, a) {
610
610
  );
611
611
  var o = u.length, p = arguments.length > 2 && arguments[2] === !0;
612
612
  if (!p && o === 0) return 0;
613
- for (var k = !1; ; )
613
+ for (var v = !1; ; )
614
614
  switch (i) {
615
615
  case "ascii":
616
616
  case "latin1":
@@ -629,30 +629,30 @@ Un.write = function(n, t, e, r, s, a) {
629
629
  case "base64":
630
630
  return tt(u).length;
631
631
  default:
632
- if (k)
632
+ if (v)
633
633
  return p ? -1 : qe(u).length;
634
- i = ("" + i).toLowerCase(), k = !0;
634
+ i = ("" + i).toLowerCase(), v = !0;
635
635
  }
636
636
  }
637
- l.byteLength = A;
638
- function P(u, i, o) {
637
+ l.byteLength = R;
638
+ function C(u, i, o) {
639
639
  var p = !1;
640
640
  if ((i === void 0 || i < 0) && (i = 0), i > this.length || ((o === void 0 || o > this.length) && (o = this.length), o <= 0) || (o >>>= 0, i >>>= 0, o <= i))
641
641
  return "";
642
642
  for (u || (u = "utf8"); ; )
643
643
  switch (u) {
644
644
  case "hex":
645
- return te(this, i, o);
645
+ return re(this, i, o);
646
646
  case "utf8":
647
647
  case "utf-8":
648
- return $(this, i, o);
648
+ return Y(this, i, o);
649
649
  case "ascii":
650
- return G(this, i, o);
650
+ return K(this, i, o);
651
651
  case "latin1":
652
652
  case "binary":
653
- return K(this, i, o);
653
+ return G(this, i, o);
654
654
  case "base64":
655
- return O(this, i, o);
655
+ return L(this, i, o);
656
656
  case "ucs2":
657
657
  case "ucs-2":
658
658
  case "utf16le":
@@ -691,145 +691,145 @@ Un.write = function(n, t, e, r, s, a) {
691
691
  return this;
692
692
  }, l.prototype.toString = function() {
693
693
  var i = this.length;
694
- return i === 0 ? "" : arguments.length === 0 ? $(this, 0, i) : P.apply(this, arguments);
694
+ return i === 0 ? "" : arguments.length === 0 ? Y(this, 0, i) : C.apply(this, arguments);
695
695
  }, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(i) {
696
696
  if (!l.isBuffer(i)) throw new TypeError("Argument must be a Buffer");
697
697
  return this === i ? !0 : l.compare(this, i) === 0;
698
698
  }, l.prototype.inspect = function() {
699
699
  var i = "", o = n.INSPECT_MAX_BYTES;
700
700
  return i = this.toString("hex", 0, o).replace(/(.{2})/g, "$1 ").trim(), this.length > o && (i += " ... "), "<Buffer " + i + ">";
701
- }, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(i, o, p, k, L) {
701
+ }, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(i, o, p, v, D) {
702
702
  if (fe(i, Uint8Array) && (i = l.from(i, i.offset, i.byteLength)), !l.isBuffer(i))
703
703
  throw new TypeError(
704
704
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof i
705
705
  );
706
- if (o === void 0 && (o = 0), p === void 0 && (p = i ? i.length : 0), k === void 0 && (k = 0), L === void 0 && (L = this.length), o < 0 || p > i.length || k < 0 || L > this.length)
706
+ if (o === void 0 && (o = 0), p === void 0 && (p = i ? i.length : 0), v === void 0 && (v = 0), D === void 0 && (D = this.length), o < 0 || p > i.length || v < 0 || D > this.length)
707
707
  throw new RangeError("out of range index");
708
- if (k >= L && o >= p)
708
+ if (v >= D && o >= p)
709
709
  return 0;
710
- if (k >= L)
710
+ if (v >= D)
711
711
  return -1;
712
712
  if (o >= p)
713
713
  return 1;
714
- if (o >>>= 0, p >>>= 0, k >>>= 0, L >>>= 0, this === i) return 0;
715
- for (var W = L - k, X = p - o, re = Math.min(W, X), ie = this.slice(k, L), pe = i.slice(o, p), ne = 0; ne < re; ++ne)
716
- if (ie[ne] !== pe[ne]) {
717
- W = ie[ne], X = pe[ne];
714
+ if (o >>>= 0, p >>>= 0, v >>>= 0, D >>>= 0, this === i) return 0;
715
+ for (var M = D - v, z = p - o, ne = Math.min(M, z), ie = this.slice(v, D), pe = i.slice(o, p), te = 0; te < ne; ++te)
716
+ if (ie[te] !== pe[te]) {
717
+ M = ie[te], z = pe[te];
718
718
  break;
719
719
  }
720
- return W < X ? -1 : X < W ? 1 : 0;
720
+ return M < z ? -1 : z < M ? 1 : 0;
721
721
  };
722
- function R(u, i, o, p, k) {
722
+ function A(u, i, o, p, v) {
723
723
  if (u.length === 0) return -1;
724
- if (typeof o == "string" ? (p = o, o = 0) : o > 2147483647 ? o = 2147483647 : o < -2147483648 && (o = -2147483648), o = +o, je(o) && (o = k ? 0 : u.length - 1), o < 0 && (o = u.length + o), o >= u.length) {
725
- if (k) return -1;
724
+ if (typeof o == "string" ? (p = o, o = 0) : o > 2147483647 ? o = 2147483647 : o < -2147483648 && (o = -2147483648), o = +o, je(o) && (o = v ? 0 : u.length - 1), o < 0 && (o = u.length + o), o >= u.length) {
725
+ if (v) return -1;
726
726
  o = u.length - 1;
727
727
  } else if (o < 0)
728
- if (k) o = 0;
728
+ if (v) o = 0;
729
729
  else return -1;
730
730
  if (typeof i == "string" && (i = l.from(i, p)), l.isBuffer(i))
731
- return i.length === 0 ? -1 : F(u, i, o, p, k);
731
+ return i.length === 0 ? -1 : F(u, i, o, p, v);
732
732
  if (typeof i == "number")
733
- return i = i & 255, typeof Uint8Array.prototype.indexOf == "function" ? k ? Uint8Array.prototype.indexOf.call(u, i, o) : Uint8Array.prototype.lastIndexOf.call(u, i, o) : F(u, [i], o, p, k);
733
+ return i = i & 255, typeof Uint8Array.prototype.indexOf == "function" ? v ? Uint8Array.prototype.indexOf.call(u, i, o) : Uint8Array.prototype.lastIndexOf.call(u, i, o) : F(u, [i], o, p, v);
734
734
  throw new TypeError("val must be string, number or Buffer");
735
735
  }
736
- function F(u, i, o, p, k) {
737
- var L = 1, W = u.length, X = i.length;
736
+ function F(u, i, o, p, v) {
737
+ var D = 1, M = u.length, z = i.length;
738
738
  if (p !== void 0 && (p = String(p).toLowerCase(), p === "ucs2" || p === "ucs-2" || p === "utf16le" || p === "utf-16le")) {
739
739
  if (u.length < 2 || i.length < 2)
740
740
  return -1;
741
- L = 2, W /= 2, X /= 2, o /= 2;
741
+ D = 2, M /= 2, z /= 2, o /= 2;
742
742
  }
743
- function re(It, gt) {
744
- return L === 1 ? It[gt] : It.readUInt16BE(gt * L);
743
+ function ne(It, gt) {
744
+ return D === 1 ? It[gt] : It.readUInt16BE(gt * D);
745
745
  }
746
746
  var ie;
747
- if (k) {
747
+ if (v) {
748
748
  var pe = -1;
749
- for (ie = o; ie < W; ie++)
750
- if (re(u, ie) === re(i, pe === -1 ? 0 : ie - pe)) {
751
- if (pe === -1 && (pe = ie), ie - pe + 1 === X) return pe * L;
749
+ for (ie = o; ie < M; ie++)
750
+ if (ne(u, ie) === ne(i, pe === -1 ? 0 : ie - pe)) {
751
+ if (pe === -1 && (pe = ie), ie - pe + 1 === z) return pe * D;
752
752
  } else
753
753
  pe !== -1 && (ie -= ie - pe), pe = -1;
754
754
  } else
755
- for (o + X > W && (o = W - X), ie = o; ie >= 0; ie--) {
756
- for (var ne = !0, Ye = 0; Ye < X; Ye++)
757
- if (re(u, ie + Ye) !== re(i, Ye)) {
758
- ne = !1;
755
+ for (o + z > M && (o = M - z), ie = o; ie >= 0; ie--) {
756
+ for (var te = !0, Ye = 0; Ye < z; Ye++)
757
+ if (ne(u, ie + Ye) !== ne(i, Ye)) {
758
+ te = !1;
759
759
  break;
760
760
  }
761
- if (ne) return ie;
761
+ if (te) return ie;
762
762
  }
763
763
  return -1;
764
764
  }
765
765
  l.prototype.includes = function(i, o, p) {
766
766
  return this.indexOf(i, o, p) !== -1;
767
767
  }, l.prototype.indexOf = function(i, o, p) {
768
- return R(this, i, o, p, !0);
768
+ return A(this, i, o, p, !0);
769
769
  }, l.prototype.lastIndexOf = function(i, o, p) {
770
- return R(this, i, o, p, !1);
770
+ return A(this, i, o, p, !1);
771
771
  };
772
772
  function y(u, i, o, p) {
773
773
  o = Number(o) || 0;
774
- var k = u.length - o;
775
- p ? (p = Number(p), p > k && (p = k)) : p = k;
776
- var L = i.length;
777
- p > L / 2 && (p = L / 2);
778
- for (var W = 0; W < p; ++W) {
779
- var X = parseInt(i.substr(W * 2, 2), 16);
780
- if (je(X)) return W;
781
- u[o + W] = X;
774
+ var v = u.length - o;
775
+ p ? (p = Number(p), p > v && (p = v)) : p = v;
776
+ var D = i.length;
777
+ p > D / 2 && (p = D / 2);
778
+ for (var M = 0; M < p; ++M) {
779
+ var z = parseInt(i.substr(M * 2, 2), 16);
780
+ if (je(z)) return M;
781
+ u[o + M] = z;
782
782
  }
783
- return W;
783
+ return M;
784
784
  }
785
- function D(u, i, o, p) {
785
+ function P(u, i, o, p) {
786
786
  return ge(qe(i, u.length - o), u, o, p);
787
787
  }
788
- function b(u, i, o, p) {
788
+ function k(u, i, o, p) {
789
789
  return ge(at(i), u, o, p);
790
790
  }
791
791
  function E(u, i, o, p) {
792
792
  return ge(tt(i), u, o, p);
793
793
  }
794
- function M(u, i, o, p) {
794
+ function B(u, i, o, p) {
795
795
  return ge(et(i, u.length - o), u, o, p);
796
796
  }
797
- l.prototype.write = function(i, o, p, k) {
797
+ l.prototype.write = function(i, o, p, v) {
798
798
  if (o === void 0)
799
- k = "utf8", p = this.length, o = 0;
799
+ v = "utf8", p = this.length, o = 0;
800
800
  else if (p === void 0 && typeof o == "string")
801
- k = o, p = this.length, o = 0;
801
+ v = o, p = this.length, o = 0;
802
802
  else if (isFinite(o))
803
- o = o >>> 0, isFinite(p) ? (p = p >>> 0, k === void 0 && (k = "utf8")) : (k = p, p = void 0);
803
+ o = o >>> 0, isFinite(p) ? (p = p >>> 0, v === void 0 && (v = "utf8")) : (v = p, p = void 0);
804
804
  else
805
805
  throw new Error(
806
806
  "Buffer.write(string, encoding, offset[, length]) is no longer supported"
807
807
  );
808
- var L = this.length - o;
809
- if ((p === void 0 || p > L) && (p = L), i.length > 0 && (p < 0 || o < 0) || o > this.length)
808
+ var D = this.length - o;
809
+ if ((p === void 0 || p > D) && (p = D), i.length > 0 && (p < 0 || o < 0) || o > this.length)
810
810
  throw new RangeError("Attempt to write outside buffer bounds");
811
- k || (k = "utf8");
812
- for (var W = !1; ; )
813
- switch (k) {
811
+ v || (v = "utf8");
812
+ for (var M = !1; ; )
813
+ switch (v) {
814
814
  case "hex":
815
815
  return y(this, i, o, p);
816
816
  case "utf8":
817
817
  case "utf-8":
818
- return D(this, i, o, p);
818
+ return P(this, i, o, p);
819
819
  case "ascii":
820
820
  case "latin1":
821
821
  case "binary":
822
- return b(this, i, o, p);
822
+ return k(this, i, o, p);
823
823
  case "base64":
824
824
  return E(this, i, o, p);
825
825
  case "ucs2":
826
826
  case "ucs-2":
827
827
  case "utf16le":
828
828
  case "utf-16le":
829
- return M(this, i, o, p);
829
+ return B(this, i, o, p);
830
830
  default:
831
- if (W) throw new TypeError("Unknown encoding: " + k);
832
- k = ("" + k).toLowerCase(), W = !0;
831
+ if (M) throw new TypeError("Unknown encoding: " + v);
832
+ v = ("" + v).toLowerCase(), M = !0;
833
833
  }
834
834
  }, l.prototype.toJSON = function() {
835
835
  return {
@@ -837,30 +837,30 @@ Un.write = function(n, t, e, r, s, a) {
837
837
  data: Array.prototype.slice.call(this._arr || this, 0)
838
838
  };
839
839
  };
840
- function O(u, i, o) {
840
+ function L(u, i, o) {
841
841
  return i === 0 && o === u.length ? t.fromByteArray(u) : t.fromByteArray(u.slice(i, o));
842
842
  }
843
- function $(u, i, o) {
843
+ function Y(u, i, o) {
844
844
  o = Math.min(u.length, o);
845
- for (var p = [], k = i; k < o; ) {
846
- var L = u[k], W = null, X = L > 239 ? 4 : L > 223 ? 3 : L > 191 ? 2 : 1;
847
- if (k + X <= o) {
848
- var re, ie, pe, ne;
849
- switch (X) {
845
+ for (var p = [], v = i; v < o; ) {
846
+ var D = u[v], M = null, z = D > 239 ? 4 : D > 223 ? 3 : D > 191 ? 2 : 1;
847
+ if (v + z <= o) {
848
+ var ne, ie, pe, te;
849
+ switch (z) {
850
850
  case 1:
851
- L < 128 && (W = L);
851
+ D < 128 && (M = D);
852
852
  break;
853
853
  case 2:
854
- re = u[k + 1], (re & 192) === 128 && (ne = (L & 31) << 6 | re & 63, ne > 127 && (W = ne));
854
+ ne = u[v + 1], (ne & 192) === 128 && (te = (D & 31) << 6 | ne & 63, te > 127 && (M = te));
855
855
  break;
856
856
  case 3:
857
- re = u[k + 1], ie = u[k + 2], (re & 192) === 128 && (ie & 192) === 128 && (ne = (L & 15) << 12 | (re & 63) << 6 | ie & 63, ne > 2047 && (ne < 55296 || ne > 57343) && (W = ne));
857
+ ne = u[v + 1], ie = u[v + 2], (ne & 192) === 128 && (ie & 192) === 128 && (te = (D & 15) << 12 | (ne & 63) << 6 | ie & 63, te > 2047 && (te < 55296 || te > 57343) && (M = te));
858
858
  break;
859
859
  case 4:
860
- re = u[k + 1], ie = u[k + 2], pe = u[k + 3], (re & 192) === 128 && (ie & 192) === 128 && (pe & 192) === 128 && (ne = (L & 15) << 18 | (re & 63) << 12 | (ie & 63) << 6 | pe & 63, ne > 65535 && ne < 1114112 && (W = ne));
860
+ ne = u[v + 1], ie = u[v + 2], pe = u[v + 3], (ne & 192) === 128 && (ie & 192) === 128 && (pe & 192) === 128 && (te = (D & 15) << 18 | (ne & 63) << 12 | (ie & 63) << 6 | pe & 63, te > 65535 && te < 1114112 && (M = te));
861
861
  }
862
862
  }
863
- W === null ? (W = 65533, X = 1) : W > 65535 && (W -= 65536, p.push(W >>> 10 & 1023 | 55296), W = 56320 | W & 1023), p.push(W), k += X;
863
+ M === null ? (M = 65533, z = 1) : M > 65535 && (M -= 65536, p.push(M >>> 10 & 1023 | 55296), M = 56320 | M & 1023), p.push(M), v += z;
864
864
  }
865
865
  return j(p);
866
866
  }
@@ -876,199 +876,199 @@ Un.write = function(n, t, e, r, s, a) {
876
876
  );
877
877
  return o;
878
878
  }
879
- function G(u, i, o) {
879
+ function K(u, i, o) {
880
880
  var p = "";
881
881
  o = Math.min(u.length, o);
882
- for (var k = i; k < o; ++k)
883
- p += String.fromCharCode(u[k] & 127);
882
+ for (var v = i; v < o; ++v)
883
+ p += String.fromCharCode(u[v] & 127);
884
884
  return p;
885
885
  }
886
- function K(u, i, o) {
886
+ function G(u, i, o) {
887
887
  var p = "";
888
888
  o = Math.min(u.length, o);
889
- for (var k = i; k < o; ++k)
890
- p += String.fromCharCode(u[k]);
889
+ for (var v = i; v < o; ++v)
890
+ p += String.fromCharCode(u[v]);
891
891
  return p;
892
892
  }
893
- function te(u, i, o) {
893
+ function re(u, i, o) {
894
894
  var p = u.length;
895
895
  (!i || i < 0) && (i = 0), (!o || o < 0 || o > p) && (o = p);
896
- for (var k = "", L = i; L < o; ++L)
897
- k += ue[u[L]];
898
- return k;
896
+ for (var v = "", D = i; D < o; ++D)
897
+ v += ue[u[D]];
898
+ return v;
899
899
  }
900
900
  function Z(u, i, o) {
901
- for (var p = u.slice(i, o), k = "", L = 0; L < p.length - 1; L += 2)
902
- k += String.fromCharCode(p[L] + p[L + 1] * 256);
903
- return k;
901
+ for (var p = u.slice(i, o), v = "", D = 0; D < p.length - 1; D += 2)
902
+ v += String.fromCharCode(p[D] + p[D + 1] * 256);
903
+ return v;
904
904
  }
905
905
  l.prototype.slice = function(i, o) {
906
906
  var p = this.length;
907
907
  i = ~~i, o = o === void 0 ? p : ~~o, i < 0 ? (i += p, i < 0 && (i = 0)) : i > p && (i = p), o < 0 ? (o += p, o < 0 && (o = 0)) : o > p && (o = p), o < i && (o = i);
908
- var k = this.subarray(i, o);
909
- return Object.setPrototypeOf(k, l.prototype), k;
908
+ var v = this.subarray(i, o);
909
+ return Object.setPrototypeOf(v, l.prototype), v;
910
910
  };
911
- function J(u, i, o) {
911
+ function X(u, i, o) {
912
912
  if (u % 1 !== 0 || u < 0) throw new RangeError("offset is not uint");
913
913
  if (u + i > o) throw new RangeError("Trying to access beyond buffer length");
914
914
  }
915
915
  l.prototype.readUintLE = l.prototype.readUIntLE = function(i, o, p) {
916
- i = i >>> 0, o = o >>> 0, p || J(i, o, this.length);
917
- for (var k = this[i], L = 1, W = 0; ++W < o && (L *= 256); )
918
- k += this[i + W] * L;
919
- return k;
916
+ i = i >>> 0, o = o >>> 0, p || X(i, o, this.length);
917
+ for (var v = this[i], D = 1, M = 0; ++M < o && (D *= 256); )
918
+ v += this[i + M] * D;
919
+ return v;
920
920
  }, l.prototype.readUintBE = l.prototype.readUIntBE = function(i, o, p) {
921
- i = i >>> 0, o = o >>> 0, p || J(i, o, this.length);
922
- for (var k = this[i + --o], L = 1; o > 0 && (L *= 256); )
923
- k += this[i + --o] * L;
924
- return k;
921
+ i = i >>> 0, o = o >>> 0, p || X(i, o, this.length);
922
+ for (var v = this[i + --o], D = 1; o > 0 && (D *= 256); )
923
+ v += this[i + --o] * D;
924
+ return v;
925
925
  }, l.prototype.readUint8 = l.prototype.readUInt8 = function(i, o) {
926
- return i = i >>> 0, o || J(i, 1, this.length), this[i];
926
+ return i = i >>> 0, o || X(i, 1, this.length), this[i];
927
927
  }, l.prototype.readUint16LE = l.prototype.readUInt16LE = function(i, o) {
928
- return i = i >>> 0, o || J(i, 2, this.length), this[i] | this[i + 1] << 8;
928
+ return i = i >>> 0, o || X(i, 2, this.length), this[i] | this[i + 1] << 8;
929
929
  }, l.prototype.readUint16BE = l.prototype.readUInt16BE = function(i, o) {
930
- return i = i >>> 0, o || J(i, 2, this.length), this[i] << 8 | this[i + 1];
930
+ return i = i >>> 0, o || X(i, 2, this.length), this[i] << 8 | this[i + 1];
931
931
  }, l.prototype.readUint32LE = l.prototype.readUInt32LE = function(i, o) {
932
- return i = i >>> 0, o || J(i, 4, this.length), (this[i] | this[i + 1] << 8 | this[i + 2] << 16) + this[i + 3] * 16777216;
932
+ return i = i >>> 0, o || X(i, 4, this.length), (this[i] | this[i + 1] << 8 | this[i + 2] << 16) + this[i + 3] * 16777216;
933
933
  }, l.prototype.readUint32BE = l.prototype.readUInt32BE = function(i, o) {
934
- return i = i >>> 0, o || J(i, 4, this.length), this[i] * 16777216 + (this[i + 1] << 16 | this[i + 2] << 8 | this[i + 3]);
934
+ return i = i >>> 0, o || X(i, 4, this.length), this[i] * 16777216 + (this[i + 1] << 16 | this[i + 2] << 8 | this[i + 3]);
935
935
  }, l.prototype.readIntLE = function(i, o, p) {
936
- i = i >>> 0, o = o >>> 0, p || J(i, o, this.length);
937
- for (var k = this[i], L = 1, W = 0; ++W < o && (L *= 256); )
938
- k += this[i + W] * L;
939
- return L *= 128, k >= L && (k -= Math.pow(2, 8 * o)), k;
936
+ i = i >>> 0, o = o >>> 0, p || X(i, o, this.length);
937
+ for (var v = this[i], D = 1, M = 0; ++M < o && (D *= 256); )
938
+ v += this[i + M] * D;
939
+ return D *= 128, v >= D && (v -= Math.pow(2, 8 * o)), v;
940
940
  }, l.prototype.readIntBE = function(i, o, p) {
941
- i = i >>> 0, o = o >>> 0, p || J(i, o, this.length);
942
- for (var k = o, L = 1, W = this[i + --k]; k > 0 && (L *= 256); )
943
- W += this[i + --k] * L;
944
- return L *= 128, W >= L && (W -= Math.pow(2, 8 * o)), W;
941
+ i = i >>> 0, o = o >>> 0, p || X(i, o, this.length);
942
+ for (var v = o, D = 1, M = this[i + --v]; v > 0 && (D *= 256); )
943
+ M += this[i + --v] * D;
944
+ return D *= 128, M >= D && (M -= Math.pow(2, 8 * o)), M;
945
945
  }, l.prototype.readInt8 = function(i, o) {
946
- return i = i >>> 0, o || J(i, 1, this.length), this[i] & 128 ? (255 - this[i] + 1) * -1 : this[i];
946
+ return i = i >>> 0, o || X(i, 1, this.length), this[i] & 128 ? (255 - this[i] + 1) * -1 : this[i];
947
947
  }, l.prototype.readInt16LE = function(i, o) {
948
- i = i >>> 0, o || J(i, 2, this.length);
948
+ i = i >>> 0, o || X(i, 2, this.length);
949
949
  var p = this[i] | this[i + 1] << 8;
950
950
  return p & 32768 ? p | 4294901760 : p;
951
951
  }, l.prototype.readInt16BE = function(i, o) {
952
- i = i >>> 0, o || J(i, 2, this.length);
952
+ i = i >>> 0, o || X(i, 2, this.length);
953
953
  var p = this[i + 1] | this[i] << 8;
954
954
  return p & 32768 ? p | 4294901760 : p;
955
955
  }, l.prototype.readInt32LE = function(i, o) {
956
- return i = i >>> 0, o || J(i, 4, this.length), this[i] | this[i + 1] << 8 | this[i + 2] << 16 | this[i + 3] << 24;
956
+ return i = i >>> 0, o || X(i, 4, this.length), this[i] | this[i + 1] << 8 | this[i + 2] << 16 | this[i + 3] << 24;
957
957
  }, l.prototype.readInt32BE = function(i, o) {
958
- return i = i >>> 0, o || J(i, 4, this.length), this[i] << 24 | this[i + 1] << 16 | this[i + 2] << 8 | this[i + 3];
958
+ return i = i >>> 0, o || X(i, 4, this.length), this[i] << 24 | this[i + 1] << 16 | this[i + 2] << 8 | this[i + 3];
959
959
  }, l.prototype.readFloatLE = function(i, o) {
960
- return i = i >>> 0, o || J(i, 4, this.length), e.read(this, i, !0, 23, 4);
960
+ return i = i >>> 0, o || X(i, 4, this.length), e.read(this, i, !0, 23, 4);
961
961
  }, l.prototype.readFloatBE = function(i, o) {
962
- return i = i >>> 0, o || J(i, 4, this.length), e.read(this, i, !1, 23, 4);
962
+ return i = i >>> 0, o || X(i, 4, this.length), e.read(this, i, !1, 23, 4);
963
963
  }, l.prototype.readDoubleLE = function(i, o) {
964
- return i = i >>> 0, o || J(i, 8, this.length), e.read(this, i, !0, 52, 8);
964
+ return i = i >>> 0, o || X(i, 8, this.length), e.read(this, i, !0, 52, 8);
965
965
  }, l.prototype.readDoubleBE = function(i, o) {
966
- return i = i >>> 0, o || J(i, 8, this.length), e.read(this, i, !1, 52, 8);
966
+ return i = i >>> 0, o || X(i, 8, this.length), e.read(this, i, !1, 52, 8);
967
967
  };
968
- function Y(u, i, o, p, k, L) {
968
+ function $(u, i, o, p, v, D) {
969
969
  if (!l.isBuffer(u)) throw new TypeError('"buffer" argument must be a Buffer instance');
970
- if (i > k || i < L) throw new RangeError('"value" argument is out of bounds');
970
+ if (i > v || i < D) throw new RangeError('"value" argument is out of bounds');
971
971
  if (o + p > u.length) throw new RangeError("Index out of range");
972
972
  }
973
- l.prototype.writeUintLE = l.prototype.writeUIntLE = function(i, o, p, k) {
974
- if (i = +i, o = o >>> 0, p = p >>> 0, !k) {
975
- var L = Math.pow(2, 8 * p) - 1;
976
- Y(this, i, o, p, L, 0);
973
+ l.prototype.writeUintLE = l.prototype.writeUIntLE = function(i, o, p, v) {
974
+ if (i = +i, o = o >>> 0, p = p >>> 0, !v) {
975
+ var D = Math.pow(2, 8 * p) - 1;
976
+ $(this, i, o, p, D, 0);
977
977
  }
978
- var W = 1, X = 0;
979
- for (this[o] = i & 255; ++X < p && (W *= 256); )
980
- this[o + X] = i / W & 255;
978
+ var M = 1, z = 0;
979
+ for (this[o] = i & 255; ++z < p && (M *= 256); )
980
+ this[o + z] = i / M & 255;
981
981
  return o + p;
982
- }, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(i, o, p, k) {
983
- if (i = +i, o = o >>> 0, p = p >>> 0, !k) {
984
- var L = Math.pow(2, 8 * p) - 1;
985
- Y(this, i, o, p, L, 0);
982
+ }, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(i, o, p, v) {
983
+ if (i = +i, o = o >>> 0, p = p >>> 0, !v) {
984
+ var D = Math.pow(2, 8 * p) - 1;
985
+ $(this, i, o, p, D, 0);
986
986
  }
987
- var W = p - 1, X = 1;
988
- for (this[o + W] = i & 255; --W >= 0 && (X *= 256); )
989
- this[o + W] = i / X & 255;
987
+ var M = p - 1, z = 1;
988
+ for (this[o + M] = i & 255; --M >= 0 && (z *= 256); )
989
+ this[o + M] = i / z & 255;
990
990
  return o + p;
991
991
  }, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(i, o, p) {
992
- return i = +i, o = o >>> 0, p || Y(this, i, o, 1, 255, 0), this[o] = i & 255, o + 1;
992
+ return i = +i, o = o >>> 0, p || $(this, i, o, 1, 255, 0), this[o] = i & 255, o + 1;
993
993
  }, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(i, o, p) {
994
- return i = +i, o = o >>> 0, p || Y(this, i, o, 2, 65535, 0), this[o] = i & 255, this[o + 1] = i >>> 8, o + 2;
994
+ return i = +i, o = o >>> 0, p || $(this, i, o, 2, 65535, 0), this[o] = i & 255, this[o + 1] = i >>> 8, o + 2;
995
995
  }, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(i, o, p) {
996
- return i = +i, o = o >>> 0, p || Y(this, i, o, 2, 65535, 0), this[o] = i >>> 8, this[o + 1] = i & 255, o + 2;
996
+ return i = +i, o = o >>> 0, p || $(this, i, o, 2, 65535, 0), this[o] = i >>> 8, this[o + 1] = i & 255, o + 2;
997
997
  }, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(i, o, p) {
998
- return i = +i, o = o >>> 0, p || Y(this, i, o, 4, 4294967295, 0), this[o + 3] = i >>> 24, this[o + 2] = i >>> 16, this[o + 1] = i >>> 8, this[o] = i & 255, o + 4;
998
+ return i = +i, o = o >>> 0, p || $(this, i, o, 4, 4294967295, 0), this[o + 3] = i >>> 24, this[o + 2] = i >>> 16, this[o + 1] = i >>> 8, this[o] = i & 255, o + 4;
999
999
  }, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(i, o, p) {
1000
- return i = +i, o = o >>> 0, p || Y(this, i, o, 4, 4294967295, 0), this[o] = i >>> 24, this[o + 1] = i >>> 16, this[o + 2] = i >>> 8, this[o + 3] = i & 255, o + 4;
1001
- }, l.prototype.writeIntLE = function(i, o, p, k) {
1002
- if (i = +i, o = o >>> 0, !k) {
1003
- var L = Math.pow(2, 8 * p - 1);
1004
- Y(this, i, o, p, L - 1, -L);
1000
+ return i = +i, o = o >>> 0, p || $(this, i, o, 4, 4294967295, 0), this[o] = i >>> 24, this[o + 1] = i >>> 16, this[o + 2] = i >>> 8, this[o + 3] = i & 255, o + 4;
1001
+ }, l.prototype.writeIntLE = function(i, o, p, v) {
1002
+ if (i = +i, o = o >>> 0, !v) {
1003
+ var D = Math.pow(2, 8 * p - 1);
1004
+ $(this, i, o, p, D - 1, -D);
1005
1005
  }
1006
- var W = 0, X = 1, re = 0;
1007
- for (this[o] = i & 255; ++W < p && (X *= 256); )
1008
- i < 0 && re === 0 && this[o + W - 1] !== 0 && (re = 1), this[o + W] = (i / X >> 0) - re & 255;
1006
+ var M = 0, z = 1, ne = 0;
1007
+ for (this[o] = i & 255; ++M < p && (z *= 256); )
1008
+ i < 0 && ne === 0 && this[o + M - 1] !== 0 && (ne = 1), this[o + M] = (i / z >> 0) - ne & 255;
1009
1009
  return o + p;
1010
- }, l.prototype.writeIntBE = function(i, o, p, k) {
1011
- if (i = +i, o = o >>> 0, !k) {
1012
- var L = Math.pow(2, 8 * p - 1);
1013
- Y(this, i, o, p, L - 1, -L);
1010
+ }, l.prototype.writeIntBE = function(i, o, p, v) {
1011
+ if (i = +i, o = o >>> 0, !v) {
1012
+ var D = Math.pow(2, 8 * p - 1);
1013
+ $(this, i, o, p, D - 1, -D);
1014
1014
  }
1015
- var W = p - 1, X = 1, re = 0;
1016
- for (this[o + W] = i & 255; --W >= 0 && (X *= 256); )
1017
- i < 0 && re === 0 && this[o + W + 1] !== 0 && (re = 1), this[o + W] = (i / X >> 0) - re & 255;
1015
+ var M = p - 1, z = 1, ne = 0;
1016
+ for (this[o + M] = i & 255; --M >= 0 && (z *= 256); )
1017
+ i < 0 && ne === 0 && this[o + M + 1] !== 0 && (ne = 1), this[o + M] = (i / z >> 0) - ne & 255;
1018
1018
  return o + p;
1019
1019
  }, l.prototype.writeInt8 = function(i, o, p) {
1020
- return i = +i, o = o >>> 0, p || Y(this, i, o, 1, 127, -128), i < 0 && (i = 255 + i + 1), this[o] = i & 255, o + 1;
1020
+ return i = +i, o = o >>> 0, p || $(this, i, o, 1, 127, -128), i < 0 && (i = 255 + i + 1), this[o] = i & 255, o + 1;
1021
1021
  }, l.prototype.writeInt16LE = function(i, o, p) {
1022
- return i = +i, o = o >>> 0, p || Y(this, i, o, 2, 32767, -32768), this[o] = i & 255, this[o + 1] = i >>> 8, o + 2;
1022
+ return i = +i, o = o >>> 0, p || $(this, i, o, 2, 32767, -32768), this[o] = i & 255, this[o + 1] = i >>> 8, o + 2;
1023
1023
  }, l.prototype.writeInt16BE = function(i, o, p) {
1024
- return i = +i, o = o >>> 0, p || Y(this, i, o, 2, 32767, -32768), this[o] = i >>> 8, this[o + 1] = i & 255, o + 2;
1024
+ return i = +i, o = o >>> 0, p || $(this, i, o, 2, 32767, -32768), this[o] = i >>> 8, this[o + 1] = i & 255, o + 2;
1025
1025
  }, l.prototype.writeInt32LE = function(i, o, p) {
1026
- return i = +i, o = o >>> 0, p || Y(this, i, o, 4, 2147483647, -2147483648), this[o] = i & 255, this[o + 1] = i >>> 8, this[o + 2] = i >>> 16, this[o + 3] = i >>> 24, o + 4;
1026
+ return i = +i, o = o >>> 0, p || $(this, i, o, 4, 2147483647, -2147483648), this[o] = i & 255, this[o + 1] = i >>> 8, this[o + 2] = i >>> 16, this[o + 3] = i >>> 24, o + 4;
1027
1027
  }, l.prototype.writeInt32BE = function(i, o, p) {
1028
- return i = +i, o = o >>> 0, p || Y(this, i, o, 4, 2147483647, -2147483648), i < 0 && (i = 4294967295 + i + 1), this[o] = i >>> 24, this[o + 1] = i >>> 16, this[o + 2] = i >>> 8, this[o + 3] = i & 255, o + 4;
1028
+ return i = +i, o = o >>> 0, p || $(this, i, o, 4, 2147483647, -2147483648), i < 0 && (i = 4294967295 + i + 1), this[o] = i >>> 24, this[o + 1] = i >>> 16, this[o + 2] = i >>> 8, this[o + 3] = i & 255, o + 4;
1029
1029
  };
1030
- function ee(u, i, o, p, k, L) {
1030
+ function J(u, i, o, p, v, D) {
1031
1031
  if (o + p > u.length) throw new RangeError("Index out of range");
1032
1032
  if (o < 0) throw new RangeError("Index out of range");
1033
1033
  }
1034
- function Pe(u, i, o, p, k) {
1035
- return i = +i, o = o >>> 0, k || ee(u, i, o, 4), e.write(u, i, o, p, 23, 4), o + 4;
1034
+ function Pe(u, i, o, p, v) {
1035
+ return i = +i, o = o >>> 0, v || J(u, i, o, 4), e.write(u, i, o, p, 23, 4), o + 4;
1036
1036
  }
1037
1037
  l.prototype.writeFloatLE = function(i, o, p) {
1038
1038
  return Pe(this, i, o, !0, p);
1039
1039
  }, l.prototype.writeFloatBE = function(i, o, p) {
1040
1040
  return Pe(this, i, o, !1, p);
1041
1041
  };
1042
- function de(u, i, o, p, k) {
1043
- return i = +i, o = o >>> 0, k || ee(u, i, o, 8), e.write(u, i, o, p, 52, 8), o + 8;
1042
+ function de(u, i, o, p, v) {
1043
+ return i = +i, o = o >>> 0, v || J(u, i, o, 8), e.write(u, i, o, p, 52, 8), o + 8;
1044
1044
  }
1045
1045
  l.prototype.writeDoubleLE = function(i, o, p) {
1046
1046
  return de(this, i, o, !0, p);
1047
1047
  }, l.prototype.writeDoubleBE = function(i, o, p) {
1048
1048
  return de(this, i, o, !1, p);
1049
- }, l.prototype.copy = function(i, o, p, k) {
1049
+ }, l.prototype.copy = function(i, o, p, v) {
1050
1050
  if (!l.isBuffer(i)) throw new TypeError("argument should be a Buffer");
1051
- if (p || (p = 0), !k && k !== 0 && (k = this.length), o >= i.length && (o = i.length), o || (o = 0), k > 0 && k < p && (k = p), k === p || i.length === 0 || this.length === 0) return 0;
1051
+ if (p || (p = 0), !v && v !== 0 && (v = this.length), o >= i.length && (o = i.length), o || (o = 0), v > 0 && v < p && (v = p), v === p || i.length === 0 || this.length === 0) return 0;
1052
1052
  if (o < 0)
1053
1053
  throw new RangeError("targetStart out of bounds");
1054
1054
  if (p < 0 || p >= this.length) throw new RangeError("Index out of range");
1055
- if (k < 0) throw new RangeError("sourceEnd out of bounds");
1056
- k > this.length && (k = this.length), i.length - o < k - p && (k = i.length - o + p);
1057
- var L = k - p;
1058
- return this === i && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(o, p, k) : Uint8Array.prototype.set.call(
1055
+ if (v < 0) throw new RangeError("sourceEnd out of bounds");
1056
+ v > this.length && (v = this.length), i.length - o < v - p && (v = i.length - o + p);
1057
+ var D = v - p;
1058
+ return this === i && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(o, p, v) : Uint8Array.prototype.set.call(
1059
1059
  i,
1060
- this.subarray(p, k),
1060
+ this.subarray(p, v),
1061
1061
  o
1062
- ), L;
1063
- }, l.prototype.fill = function(i, o, p, k) {
1062
+ ), D;
1063
+ }, l.prototype.fill = function(i, o, p, v) {
1064
1064
  if (typeof i == "string") {
1065
- if (typeof o == "string" ? (k = o, o = 0, p = this.length) : typeof p == "string" && (k = p, p = this.length), k !== void 0 && typeof k != "string")
1065
+ if (typeof o == "string" ? (v = o, o = 0, p = this.length) : typeof p == "string" && (v = p, p = this.length), v !== void 0 && typeof v != "string")
1066
1066
  throw new TypeError("encoding must be a string");
1067
- if (typeof k == "string" && !l.isEncoding(k))
1068
- throw new TypeError("Unknown encoding: " + k);
1067
+ if (typeof v == "string" && !l.isEncoding(v))
1068
+ throw new TypeError("Unknown encoding: " + v);
1069
1069
  if (i.length === 1) {
1070
- var L = i.charCodeAt(0);
1071
- (k === "utf8" && L < 128 || k === "latin1") && (i = L);
1070
+ var D = i.charCodeAt(0);
1071
+ (v === "utf8" && D < 128 || v === "latin1") && (i = D);
1072
1072
  }
1073
1073
  } else typeof i == "number" ? i = i & 255 : typeof i == "boolean" && (i = Number(i));
1074
1074
  if (o < 0 || this.length < o || this.length < p)
@@ -1076,16 +1076,16 @@ Un.write = function(n, t, e, r, s, a) {
1076
1076
  if (p <= o)
1077
1077
  return this;
1078
1078
  o = o >>> 0, p = p === void 0 ? this.length : p >>> 0, i || (i = 0);
1079
- var W;
1079
+ var M;
1080
1080
  if (typeof i == "number")
1081
- for (W = o; W < p; ++W)
1082
- this[W] = i;
1081
+ for (M = o; M < p; ++M)
1082
+ this[M] = i;
1083
1083
  else {
1084
- var X = l.isBuffer(i) ? i : l.from(i, k), re = X.length;
1085
- if (re === 0)
1084
+ var z = l.isBuffer(i) ? i : l.from(i, v), ne = z.length;
1085
+ if (ne === 0)
1086
1086
  throw new TypeError('The value "' + i + '" is invalid for argument "value"');
1087
- for (W = 0; W < p - o; ++W)
1088
- this[W + o] = X[W % re];
1087
+ for (M = 0; M < p - o; ++M)
1088
+ this[M + o] = z[M % ne];
1089
1089
  }
1090
1090
  return this;
1091
1091
  };
@@ -1098,44 +1098,44 @@ Un.write = function(n, t, e, r, s, a) {
1098
1098
  }
1099
1099
  function qe(u, i) {
1100
1100
  i = i || 1 / 0;
1101
- for (var o, p = u.length, k = null, L = [], W = 0; W < p; ++W) {
1102
- if (o = u.charCodeAt(W), o > 55295 && o < 57344) {
1103
- if (!k) {
1101
+ for (var o, p = u.length, v = null, D = [], M = 0; M < p; ++M) {
1102
+ if (o = u.charCodeAt(M), o > 55295 && o < 57344) {
1103
+ if (!v) {
1104
1104
  if (o > 56319) {
1105
- (i -= 3) > -1 && L.push(239, 191, 189);
1105
+ (i -= 3) > -1 && D.push(239, 191, 189);
1106
1106
  continue;
1107
- } else if (W + 1 === p) {
1108
- (i -= 3) > -1 && L.push(239, 191, 189);
1107
+ } else if (M + 1 === p) {
1108
+ (i -= 3) > -1 && D.push(239, 191, 189);
1109
1109
  continue;
1110
1110
  }
1111
- k = o;
1111
+ v = o;
1112
1112
  continue;
1113
1113
  }
1114
1114
  if (o < 56320) {
1115
- (i -= 3) > -1 && L.push(239, 191, 189), k = o;
1115
+ (i -= 3) > -1 && D.push(239, 191, 189), v = o;
1116
1116
  continue;
1117
1117
  }
1118
- o = (k - 55296 << 10 | o - 56320) + 65536;
1119
- } else k && (i -= 3) > -1 && L.push(239, 191, 189);
1120
- if (k = null, o < 128) {
1118
+ o = (v - 55296 << 10 | o - 56320) + 65536;
1119
+ } else v && (i -= 3) > -1 && D.push(239, 191, 189);
1120
+ if (v = null, o < 128) {
1121
1121
  if ((i -= 1) < 0) break;
1122
- L.push(o);
1122
+ D.push(o);
1123
1123
  } else if (o < 2048) {
1124
1124
  if ((i -= 2) < 0) break;
1125
- L.push(
1125
+ D.push(
1126
1126
  o >> 6 | 192,
1127
1127
  o & 63 | 128
1128
1128
  );
1129
1129
  } else if (o < 65536) {
1130
1130
  if ((i -= 3) < 0) break;
1131
- L.push(
1131
+ D.push(
1132
1132
  o >> 12 | 224,
1133
1133
  o >> 6 & 63 | 128,
1134
1134
  o & 63 | 128
1135
1135
  );
1136
1136
  } else if (o < 1114112) {
1137
1137
  if ((i -= 4) < 0) break;
1138
- L.push(
1138
+ D.push(
1139
1139
  o >> 18 | 240,
1140
1140
  o >> 12 & 63 | 128,
1141
1141
  o >> 6 & 63 | 128,
@@ -1144,7 +1144,7 @@ Un.write = function(n, t, e, r, s, a) {
1144
1144
  } else
1145
1145
  throw new Error("Invalid code point");
1146
1146
  }
1147
- return L;
1147
+ return D;
1148
1148
  }
1149
1149
  function at(u) {
1150
1150
  for (var i = [], o = 0; o < u.length; ++o)
@@ -1152,17 +1152,17 @@ Un.write = function(n, t, e, r, s, a) {
1152
1152
  return i;
1153
1153
  }
1154
1154
  function et(u, i) {
1155
- for (var o, p, k, L = [], W = 0; W < u.length && !((i -= 2) < 0); ++W)
1156
- o = u.charCodeAt(W), p = o >> 8, k = o % 256, L.push(k), L.push(p);
1157
- return L;
1155
+ for (var o, p, v, D = [], M = 0; M < u.length && !((i -= 2) < 0); ++M)
1156
+ o = u.charCodeAt(M), p = o >> 8, v = o % 256, D.push(v), D.push(p);
1157
+ return D;
1158
1158
  }
1159
1159
  function tt(u) {
1160
1160
  return t.toByteArray(wt(u));
1161
1161
  }
1162
1162
  function ge(u, i, o, p) {
1163
- for (var k = 0; k < p && !(k + o >= i.length || k >= u.length); ++k)
1164
- i[k + o] = u[k];
1165
- return k;
1163
+ for (var v = 0; v < p && !(v + o >= i.length || v >= u.length); ++v)
1164
+ i[v + o] = u[v];
1165
+ return v;
1166
1166
  }
1167
1167
  function fe(u, i) {
1168
1168
  return u instanceof i || u != null && u.constructor != null && u.constructor.name != null && u.constructor.name === i.name;
@@ -1172,11 +1172,11 @@ Un.write = function(n, t, e, r, s, a) {
1172
1172
  }
1173
1173
  var ue = function() {
1174
1174
  for (var u = "0123456789abcdef", i = new Array(256), o = 0; o < 16; ++o)
1175
- for (var p = o * 16, k = 0; k < 16; ++k)
1176
- i[p + k] = u[o] + u[k];
1175
+ for (var p = o * 16, v = 0; v < 16; ++v)
1176
+ i[p + v] = u[o] + u[v];
1177
1177
  return i;
1178
1178
  }();
1179
- })(ai);
1179
+ })(oi);
1180
1180
  class On extends Ln {
1181
1181
  /**
1182
1182
  * @param {string} oid
@@ -1191,15 +1191,15 @@ class On extends Ln {
1191
1191
  }
1192
1192
  }
1193
1193
  On.code = "ObjectTypeError";
1194
- typeof window < "u" && (window.Buffer = ai.Buffer);
1195
- const li = function() {
1194
+ typeof window < "u" && (window.Buffer = oi.Buffer);
1195
+ const ci = function() {
1196
1196
  return typeof process < "u" && process.release?.name === "node" ? "NODE" : typeof window < "u" ? "WEB" : (
1197
1197
  // @ts-ignore
1198
1198
  typeof WorkerGlobalScope < "u" && // @ts-ignore
1199
1199
  self instanceof WorkerGlobalScope ? "WORKER" : "NODE"
1200
1200
  );
1201
1201
  }();
1202
- if (li === "NODE") {
1202
+ if (ci === "NODE") {
1203
1203
  let n = function(e) {
1204
1204
  return new Promise(function(r, s) {
1205
1205
  e.onload = e.onerror = function(a) {
@@ -1250,7 +1250,7 @@ if (li === "NODE") {
1250
1250
  });
1251
1251
  });
1252
1252
  }
1253
- if (li === "NODE" && typeof CustomEvent > "u") {
1253
+ if (ci === "NODE" && typeof CustomEvent > "u") {
1254
1254
  class n extends Event {
1255
1255
  constructor(e, r = {}) {
1256
1256
  super(e, r), this.detail = r.detail;
@@ -1260,7 +1260,7 @@ if (li === "NODE" && typeof CustomEvent > "u") {
1260
1260
  }
1261
1261
  globalThis.CustomEvent = n;
1262
1262
  }
1263
- function Ns(...n) {
1263
+ function js(...n) {
1264
1264
  const t = new Uint8Array(
1265
1265
  n.reduce((r, s) => r + s.length, 0)
1266
1266
  );
@@ -1269,12 +1269,12 @@ function Ns(...n) {
1269
1269
  t.set(r, e), e += r.length;
1270
1270
  return t;
1271
1271
  }
1272
- function qs(n) {
1272
+ function Hs(n) {
1273
1273
  {
1274
1274
  let t = new Uint8Array();
1275
1275
  return new TransformStream({
1276
1276
  transform(e) {
1277
- t = Ns(t, e);
1277
+ t = js(t, e);
1278
1278
  },
1279
1279
  flush(e) {
1280
1280
  e.enqueue(t);
@@ -1282,8 +1282,8 @@ function qs(n) {
1282
1282
  });
1283
1283
  }
1284
1284
  }
1285
- async function js(n, t) {
1286
- return await n.pipeThrough(qs()).getReader().read().then(({ value: e }) => e);
1285
+ async function $s(n, t) {
1286
+ return await n.pipeThrough(Hs()).getReader().read().then(({ value: e }) => e);
1287
1287
  }
1288
1288
  class Vt extends File {
1289
1289
  /**
@@ -1326,7 +1326,7 @@ class Vt extends File {
1326
1326
  * @returns File data as an ArrayBuffer.
1327
1327
  */
1328
1328
  async arrayBuffer() {
1329
- return await js(this.stream());
1329
+ return await $s(this.stream());
1330
1330
  }
1331
1331
  }
1332
1332
  ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symbol.asyncIterator] = async function* () {
@@ -1344,14 +1344,14 @@ ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symb
1344
1344
  }, ReadableStream.prototype.iterate = // @ts-ignore
1345
1345
  ReadableStream.prototype[Symbol.asyncIterator]);
1346
1346
  new Dn({ concurrency: 10 });
1347
- const St = 15, En = 30, Sn = 19, Hs = 29, Gt = 256, Bn = Gt + 1 + Hs, Xn = 2 * Bn + 1, _t = 256, $s = 7, zn = 16, Jn = 17, Qn = 18, an = 8 * 2, Kt = -1, Ys = 1, Pt = 2, Zs = 0, dt = 0, er = 1, Vs = 3, Se = 4, Ue = 0, fi = 1, Dt = 2, Oe = -2, Gs = -3, lt = -5;
1347
+ const St = 15, En = 30, Sn = 19, Ys = 29, Gt = 256, Wn = Gt + 1 + Ys, Kn = 2 * Wn + 1, _t = 256, Zs = 7, Xn = 16, zn = 17, Jn = 18, an = 8 * 2, Kt = -1, Vs = 1, Pt = 2, Gs = 0, dt = 0, Qn = 1, Ks = 3, Se = 4, Ue = 0, li = 1, Dt = 2, Oe = -2, Xs = -3, lt = -5;
1348
1348
  function tn(n) {
1349
1349
  return nn(n.map(([t, e]) => new Array(t).fill(e, 0, t)));
1350
1350
  }
1351
1351
  function nn(n) {
1352
1352
  return n.reduce((t, e) => t.concat(Array.isArray(e) ? nn(e) : e), []);
1353
1353
  }
1354
- const tr = [0, 1, 2, 3].concat(...tn([
1354
+ const er = [0, 1, 2, 3].concat(...tn([
1355
1355
  [2, 4],
1356
1356
  [2, 5],
1357
1357
  [4, 6],
@@ -1384,11 +1384,11 @@ function se() {
1384
1384
  const n = this;
1385
1385
  function t(s) {
1386
1386
  const a = n.dyn_tree, c = n.stat_desc.static_tree, l = n.stat_desc.extra_bits, f = n.stat_desc.extra_base, _ = n.stat_desc.max_length;
1387
- let x, w, g, T, C, m, d = 0;
1387
+ let x, w, g, T, O, m, d = 0;
1388
1388
  for (T = 0; T <= St; T++)
1389
1389
  s.bl_count[T] = 0;
1390
- for (a[s.heap[s.heap_max] * 2 + 1] = 0, x = s.heap_max + 1; x < Xn; x++)
1391
- w = s.heap[x], T = a[a[w * 2 + 1] * 2 + 1] + 1, T > _ && (T = _, d++), a[w * 2 + 1] = T, !(w > n.max_code) && (s.bl_count[T]++, C = 0, w >= f && (C = l[w - f]), m = a[w * 2], s.opt_len += m * (T + C), c && (s.static_len += m * (c[w * 2 + 1] + C)));
1390
+ for (a[s.heap[s.heap_max] * 2 + 1] = 0, x = s.heap_max + 1; x < Kn; x++)
1391
+ w = s.heap[x], T = a[a[w * 2 + 1] * 2 + 1] + 1, T > _ && (T = _, d++), a[w * 2 + 1] = T, !(w > n.max_code) && (s.bl_count[T]++, O = 0, w >= f && (O = l[w - f]), m = a[w * 2], s.opt_len += m * (T + O), c && (s.static_len += m * (c[w * 2 + 1] + O)));
1392
1392
  if (d !== 0) {
1393
1393
  do {
1394
1394
  for (T = _ - 1; s.bl_count[T] === 0; )
@@ -1418,7 +1418,7 @@ function se() {
1418
1418
  n.build_tree = function(s) {
1419
1419
  const a = n.dyn_tree, c = n.stat_desc.static_tree, l = n.stat_desc.elems;
1420
1420
  let f, _, x = -1, w;
1421
- for (s.heap_len = 0, s.heap_max = Xn, f = 0; f < l; f++)
1421
+ for (s.heap_len = 0, s.heap_max = Kn, f = 0; f < l; f++)
1422
1422
  a[f * 2] !== 0 ? (s.heap[++s.heap_len] = x = f, s.depth[f] = 0) : a[f * 2 + 1] = 0;
1423
1423
  for (; s.heap_len < 2; )
1424
1424
  w = s.heap[++s.heap_len] = x < 2 ? ++x : 0, a[w * 2] = 1, s.depth[w] = 0, s.opt_len--, c && (s.static_len -= c[w * 2 + 1]);
@@ -1488,7 +1488,7 @@ se.base_dist = [
1488
1488
  24576
1489
1489
  ];
1490
1490
  se.d_code = function(n) {
1491
- return n < 256 ? tr[n] : tr[256 + (n >>> 7)];
1491
+ return n < 256 ? er[n] : er[256 + (n >>> 7)];
1492
1492
  };
1493
1493
  se.extra_lbits = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0];
1494
1494
  se.extra_dbits = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
@@ -1498,7 +1498,7 @@ function we(n, t, e, r, s) {
1498
1498
  const a = this;
1499
1499
  a.static_tree = n, a.extra_bits = t, a.extra_base = e, a.elems = r, a.max_length = s;
1500
1500
  }
1501
- const Ks = [
1501
+ const zs = [
1502
1502
  12,
1503
1503
  140,
1504
1504
  76,
@@ -1787,29 +1787,29 @@ const Ks = [
1787
1787
  163,
1788
1788
  99,
1789
1789
  227
1790
- ], Xs = tn([[144, 8], [112, 9], [24, 7], [8, 8]]);
1791
- we.static_ltree = nn(Ks.map((n, t) => [n, Xs[t]]));
1792
- const zs = [0, 16, 8, 24, 4, 20, 12, 28, 2, 18, 10, 26, 6, 22, 14, 30, 1, 17, 9, 25, 5, 21, 13, 29, 3, 19, 11, 27, 7, 23], Js = tn([[30, 5]]);
1793
- we.static_dtree = nn(zs.map((n, t) => [n, Js[t]]));
1794
- we.static_l_desc = new we(we.static_ltree, se.extra_lbits, Gt + 1, Bn, St);
1790
+ ], Js = tn([[144, 8], [112, 9], [24, 7], [8, 8]]);
1791
+ we.static_ltree = nn(zs.map((n, t) => [n, Js[t]]));
1792
+ const Qs = [0, 16, 8, 24, 4, 20, 12, 28, 2, 18, 10, 26, 6, 22, 14, 30, 1, 17, 9, 25, 5, 21, 13, 29, 3, 19, 11, 27, 7, 23], eo = tn([[30, 5]]);
1793
+ we.static_dtree = nn(Qs.map((n, t) => [n, eo[t]]));
1794
+ we.static_l_desc = new we(we.static_ltree, se.extra_lbits, Gt + 1, Wn, St);
1795
1795
  we.static_d_desc = new we(we.static_dtree, se.extra_dbits, 0, En, St);
1796
- we.static_bl_desc = new we(null, se.extra_blbits, 0, Sn, $s);
1797
- const Qs = 9, eo = 8;
1798
- function Be(n, t, e, r, s) {
1796
+ we.static_bl_desc = new we(null, se.extra_blbits, 0, Sn, Zs);
1797
+ const to = 9, no = 8;
1798
+ function We(n, t, e, r, s) {
1799
1799
  const a = this;
1800
1800
  a.good_length = n, a.max_lazy = t, a.nice_length = e, a.max_chain = r, a.func = s;
1801
1801
  }
1802
- const ui = 0, jt = 1, rt = 2, Le = [
1803
- new Be(0, 0, 0, 0, ui),
1804
- new Be(4, 4, 8, 4, jt),
1805
- new Be(4, 5, 16, 8, jt),
1806
- new Be(4, 6, 32, 32, jt),
1807
- new Be(4, 4, 16, 16, rt),
1808
- new Be(8, 16, 32, 32, rt),
1809
- new Be(8, 16, 128, 128, rt),
1810
- new Be(8, 32, 128, 256, rt),
1811
- new Be(32, 128, 258, 1024, rt),
1812
- new Be(32, 258, 258, 4096, rt)
1802
+ const fi = 0, jt = 1, rt = 2, Le = [
1803
+ new We(0, 0, 0, 0, fi),
1804
+ new We(4, 4, 8, 4, jt),
1805
+ new We(4, 5, 16, 8, jt),
1806
+ new We(4, 6, 32, 32, jt),
1807
+ new We(4, 4, 16, 16, rt),
1808
+ new We(8, 16, 32, 32, rt),
1809
+ new We(8, 16, 128, 128, rt),
1810
+ new We(8, 32, 128, 256, rt),
1811
+ new We(32, 128, 258, 1024, rt),
1812
+ new We(32, 258, 258, 4096, rt)
1813
1813
  ], Lt = [
1814
1814
  "need dictionary",
1815
1815
  // Z_NEED_DICT
@@ -1831,53 +1831,53 @@ const ui = 0, jt = 1, rt = 2, Le = [
1831
1831
  "",
1832
1832
  // Z_VERSION_ERROR (-6)
1833
1833
  ""
1834
- ], Fe = 0, Ut = 1, yt = 2, Ot = 3, to = 32, cn = 42, Bt = 113, bt = 666, ln = 8, no = 0, fn = 1, ro = 2, ae = 3, Ht = 258, Te = Ht + ae + 1;
1835
- function nr(n, t, e, r) {
1834
+ ], Fe = 0, Ut = 1, yt = 2, Ot = 3, ro = 32, cn = 42, Wt = 113, bt = 666, ln = 8, io = 0, fn = 1, so = 2, ae = 3, Ht = 258, Te = Ht + ae + 1;
1835
+ function tr(n, t, e, r) {
1836
1836
  const s = n[t * 2], a = n[e * 2];
1837
1837
  return s < a || s == a && r[t] <= r[e];
1838
1838
  }
1839
- function io() {
1839
+ function oo() {
1840
1840
  const n = this;
1841
- let t, e, r, s, a, c, l, f, _, x, w, g, T, C, m, d, h, v, A, P, S, R, F, y, D, b, E, M, O, $, H, j, G;
1842
- const K = new se(), te = new se(), Z = new se();
1841
+ let t, e, r, s, a, c, l, f, _, x, w, g, T, O, m, d, h, b, R, C, S, A, F, y, P, k, E, B, L, Y, H, j, K;
1842
+ const G = new se(), re = new se(), Z = new se();
1843
1843
  n.depth = [];
1844
- let J, Y, ee, Pe, de, le;
1845
- n.bl_count = [], n.heap = [], H = [], j = [], G = [];
1844
+ let X, $, J, Pe, de, le;
1845
+ n.bl_count = [], n.heap = [], H = [], j = [], K = [];
1846
1846
  function wt() {
1847
1847
  _ = 2 * a, w[T - 1] = 0;
1848
1848
  for (let I = 0; I < T - 1; I++)
1849
1849
  w[I] = 0;
1850
- b = Le[E].max_lazy, O = Le[E].good_length, $ = Le[E].nice_length, D = Le[E].max_chain, S = 0, h = 0, F = 0, v = y = ae - 1, P = 0, g = 0;
1850
+ k = Le[E].max_lazy, L = Le[E].good_length, Y = Le[E].nice_length, P = Le[E].max_chain, S = 0, h = 0, F = 0, b = y = ae - 1, C = 0, g = 0;
1851
1851
  }
1852
1852
  function qe() {
1853
1853
  let I;
1854
- for (I = 0; I < Bn; I++)
1854
+ for (I = 0; I < Wn; I++)
1855
1855
  H[I * 2] = 0;
1856
1856
  for (I = 0; I < En; I++)
1857
1857
  j[I * 2] = 0;
1858
1858
  for (I = 0; I < Sn; I++)
1859
- G[I * 2] = 0;
1860
- H[_t * 2] = 1, n.opt_len = n.static_len = 0, Y = ee = 0;
1859
+ K[I * 2] = 0;
1860
+ H[_t * 2] = 1, n.opt_len = n.static_len = 0, $ = J = 0;
1861
1861
  }
1862
1862
  function at() {
1863
- K.dyn_tree = H, K.stat_desc = we.static_l_desc, te.dyn_tree = j, te.stat_desc = we.static_d_desc, Z.dyn_tree = G, Z.stat_desc = we.static_bl_desc, de = 0, le = 0, Pe = 8, qe();
1864
- }
1865
- n.pqdownheap = function(I, B) {
1866
- const U = n.heap, N = U[B];
1867
- let q = B << 1;
1868
- for (; q <= n.heap_len && (q < n.heap_len && nr(I, U[q + 1], U[q], n.depth) && q++, !nr(I, N, U[q], n.depth)); )
1869
- U[B] = U[q], B = q, q <<= 1;
1870
- U[B] = N;
1863
+ G.dyn_tree = H, G.stat_desc = we.static_l_desc, re.dyn_tree = j, re.stat_desc = we.static_d_desc, Z.dyn_tree = K, Z.stat_desc = we.static_bl_desc, de = 0, le = 0, Pe = 8, qe();
1864
+ }
1865
+ n.pqdownheap = function(I, W) {
1866
+ const U = n.heap, N = U[W];
1867
+ let q = W << 1;
1868
+ for (; q <= n.heap_len && (q < n.heap_len && tr(I, U[q + 1], U[q], n.depth) && q++, !tr(I, N, U[q], n.depth)); )
1869
+ U[W] = U[q], W = q, q <<= 1;
1870
+ U[W] = N;
1871
1871
  };
1872
- function et(I, B) {
1873
- let U = -1, N, q = I[0 * 2 + 1], V = 0, z = 7, be = 4;
1874
- q === 0 && (z = 138, be = 3), I[(B + 1) * 2 + 1] = 65535;
1875
- for (let De = 0; De <= B; De++)
1876
- N = q, q = I[(De + 1) * 2 + 1], !(++V < z && N == q) && (V < be ? G[N * 2] += V : N !== 0 ? (N != U && G[N * 2]++, G[zn * 2]++) : V <= 10 ? G[Jn * 2]++ : G[Qn * 2]++, V = 0, U = N, q === 0 ? (z = 138, be = 3) : N == q ? (z = 6, be = 3) : (z = 7, be = 4));
1872
+ function et(I, W) {
1873
+ let U = -1, N, q = I[0 * 2 + 1], V = 0, Q = 7, be = 4;
1874
+ q === 0 && (Q = 138, be = 3), I[(W + 1) * 2 + 1] = 65535;
1875
+ for (let De = 0; De <= W; De++)
1876
+ N = q, q = I[(De + 1) * 2 + 1], !(++V < Q && N == q) && (V < be ? K[N * 2] += V : N !== 0 ? (N != U && K[N * 2]++, K[Xn * 2]++) : V <= 10 ? K[zn * 2]++ : K[Jn * 2]++, V = 0, U = N, q === 0 ? (Q = 138, be = 3) : N == q ? (Q = 6, be = 3) : (Q = 7, be = 4));
1877
1877
  }
1878
1878
  function tt() {
1879
1879
  let I;
1880
- for (et(H, K.max_code), et(j, te.max_code), Z.build_tree(n), I = Sn - 1; I >= 3 && G[se.bl_order[I] * 2 + 1] === 0; I--)
1880
+ for (et(H, G.max_code), et(j, re.max_code), Z.build_tree(n), I = Sn - 1; I >= 3 && K[se.bl_order[I] * 2 + 1] === 0; I--)
1881
1881
  ;
1882
1882
  return n.opt_len += 3 * (I + 1) + 5 + 5 + 4, I;
1883
1883
  }
@@ -1890,88 +1890,88 @@ function io() {
1890
1890
  function je(I) {
1891
1891
  ge(I >> 8 & 255), ge(I & 255 & 255);
1892
1892
  }
1893
- function ue(I, B) {
1893
+ function ue(I, W) {
1894
1894
  let U;
1895
- const N = B;
1895
+ const N = W;
1896
1896
  le > an - N ? (U = I, de |= U << le & 65535, fe(de), de = U >>> an - le, le += N - an) : (de |= I << le & 65535, le += N);
1897
1897
  }
1898
- function u(I, B) {
1898
+ function u(I, W) {
1899
1899
  const U = I * 2;
1900
- ue(B[U] & 65535, B[U + 1] & 65535);
1900
+ ue(W[U] & 65535, W[U + 1] & 65535);
1901
1901
  }
1902
- function i(I, B) {
1903
- let U, N = -1, q, V = I[0 * 2 + 1], z = 0, be = 7, De = 4;
1904
- for (V === 0 && (be = 138, De = 3), U = 0; U <= B; U++)
1905
- if (q = V, V = I[(U + 1) * 2 + 1], !(++z < be && q == V)) {
1906
- if (z < De)
1902
+ function i(I, W) {
1903
+ let U, N = -1, q, V = I[0 * 2 + 1], Q = 0, be = 7, De = 4;
1904
+ for (V === 0 && (be = 138, De = 3), U = 0; U <= W; U++)
1905
+ if (q = V, V = I[(U + 1) * 2 + 1], !(++Q < be && q == V)) {
1906
+ if (Q < De)
1907
1907
  do
1908
- u(q, G);
1909
- while (--z !== 0);
1910
- else q !== 0 ? (q != N && (u(q, G), z--), u(zn, G), ue(z - 3, 2)) : z <= 10 ? (u(Jn, G), ue(z - 3, 3)) : (u(Qn, G), ue(z - 11, 7));
1911
- z = 0, N = q, V === 0 ? (be = 138, De = 3) : q == V ? (be = 6, De = 3) : (be = 7, De = 4);
1908
+ u(q, K);
1909
+ while (--Q !== 0);
1910
+ else q !== 0 ? (q != N && (u(q, K), Q--), u(Xn, K), ue(Q - 3, 2)) : Q <= 10 ? (u(zn, K), ue(Q - 3, 3)) : (u(Jn, K), ue(Q - 11, 7));
1911
+ Q = 0, N = q, V === 0 ? (be = 138, De = 3) : q == V ? (be = 6, De = 3) : (be = 7, De = 4);
1912
1912
  }
1913
1913
  }
1914
- function o(I, B, U) {
1914
+ function o(I, W, U) {
1915
1915
  let N;
1916
- for (ue(I - 257, 5), ue(B - 1, 5), ue(U - 4, 4), N = 0; N < U; N++)
1917
- ue(G[se.bl_order[N] * 2 + 1], 3);
1918
- i(H, I - 1), i(j, B - 1);
1916
+ for (ue(I - 257, 5), ue(W - 1, 5), ue(U - 4, 4), N = 0; N < U; N++)
1917
+ ue(K[se.bl_order[N] * 2 + 1], 3);
1918
+ i(H, I - 1), i(j, W - 1);
1919
1919
  }
1920
1920
  function p() {
1921
1921
  le == 16 ? (fe(de), de = 0, le = 0) : le >= 8 && (ge(de & 255), de >>>= 8, le -= 8);
1922
1922
  }
1923
- function k() {
1923
+ function v() {
1924
1924
  ue(fn << 1, 3), u(_t, we.static_ltree), p(), 1 + Pe + 10 - le < 9 && (ue(fn << 1, 3), u(_t, we.static_ltree), p()), Pe = 7;
1925
1925
  }
1926
- function L(I, B) {
1926
+ function D(I, W) {
1927
1927
  let U, N, q;
1928
- if (n.dist_buf[Y] = I, n.lc_buf[Y] = B & 255, Y++, I === 0 ? H[B * 2]++ : (ee++, I--, H[(se._length_code[B] + Gt + 1) * 2]++, j[se.d_code(I) * 2]++), !(Y & 8191) && E > 2) {
1929
- for (U = Y * 8, N = S - h, q = 0; q < En; q++)
1928
+ if (n.dist_buf[$] = I, n.lc_buf[$] = W & 255, $++, I === 0 ? H[W * 2]++ : (J++, I--, H[(se._length_code[W] + Gt + 1) * 2]++, j[se.d_code(I) * 2]++), !($ & 8191) && E > 2) {
1929
+ for (U = $ * 8, N = S - h, q = 0; q < En; q++)
1930
1930
  U += j[q * 2] * (5 + se.extra_dbits[q]);
1931
- if (U >>>= 3, ee < Math.floor(Y / 2) && U < Math.floor(N / 2))
1931
+ if (U >>>= 3, J < Math.floor($ / 2) && U < Math.floor(N / 2))
1932
1932
  return !0;
1933
1933
  }
1934
- return Y == J - 1;
1934
+ return $ == X - 1;
1935
1935
  }
1936
- function W(I, B) {
1937
- let U, N, q = 0, V, z;
1938
- if (Y !== 0)
1936
+ function M(I, W) {
1937
+ let U, N, q = 0, V, Q;
1938
+ if ($ !== 0)
1939
1939
  do
1940
- U = n.dist_buf[q], N = n.lc_buf[q], q++, U === 0 ? u(N, I) : (V = se._length_code[N], u(V + Gt + 1, I), z = se.extra_lbits[V], z !== 0 && (N -= se.base_length[V], ue(N, z)), U--, V = se.d_code(U), u(V, B), z = se.extra_dbits[V], z !== 0 && (U -= se.base_dist[V], ue(U, z)));
1941
- while (q < Y);
1940
+ U = n.dist_buf[q], N = n.lc_buf[q], q++, U === 0 ? u(N, I) : (V = se._length_code[N], u(V + Gt + 1, I), Q = se.extra_lbits[V], Q !== 0 && (N -= se.base_length[V], ue(N, Q)), U--, V = se.d_code(U), u(V, W), Q = se.extra_dbits[V], Q !== 0 && (U -= se.base_dist[V], ue(U, Q)));
1941
+ while (q < $);
1942
1942
  u(_t, I), Pe = I[_t * 2 + 1];
1943
1943
  }
1944
- function X() {
1944
+ function z() {
1945
1945
  le > 8 ? fe(de) : le > 0 && ge(de & 255), de = 0, le = 0;
1946
1946
  }
1947
- function re(I, B, U) {
1948
- X(), Pe = 8, fe(B), fe(~B), n.pending_buf.set(f.subarray(I, I + B), n.pending), n.pending += B;
1947
+ function ne(I, W, U) {
1948
+ z(), Pe = 8, fe(W), fe(~W), n.pending_buf.set(f.subarray(I, I + W), n.pending), n.pending += W;
1949
1949
  }
1950
- function ie(I, B, U) {
1951
- ue((no << 1) + (U ? 1 : 0), 3), re(I, B);
1950
+ function ie(I, W, U) {
1951
+ ue((io << 1) + (U ? 1 : 0), 3), ne(I, W);
1952
1952
  }
1953
- function pe(I, B, U) {
1953
+ function pe(I, W, U) {
1954
1954
  let N, q, V = 0;
1955
- E > 0 ? (K.build_tree(n), te.build_tree(n), V = tt(), N = n.opt_len + 3 + 7 >>> 3, q = n.static_len + 3 + 7 >>> 3, q <= N && (N = q)) : N = q = B + 5, B + 4 <= N && I != -1 ? ie(I, B, U) : q == N ? (ue((fn << 1) + (U ? 1 : 0), 3), W(we.static_ltree, we.static_dtree)) : (ue((ro << 1) + (U ? 1 : 0), 3), o(K.max_code + 1, te.max_code + 1, V + 1), W(H, j)), qe(), U && X();
1955
+ E > 0 ? (G.build_tree(n), re.build_tree(n), V = tt(), N = n.opt_len + 3 + 7 >>> 3, q = n.static_len + 3 + 7 >>> 3, q <= N && (N = q)) : N = q = W + 5, W + 4 <= N && I != -1 ? ie(I, W, U) : q == N ? (ue((fn << 1) + (U ? 1 : 0), 3), M(we.static_ltree, we.static_dtree)) : (ue((so << 1) + (U ? 1 : 0), 3), o(G.max_code + 1, re.max_code + 1, V + 1), M(H, j)), qe(), U && z();
1956
1956
  }
1957
- function ne(I) {
1957
+ function te(I) {
1958
1958
  pe(h >= 0 ? h : -1, S - h, I), h = S, t.flush_pending();
1959
1959
  }
1960
1960
  function Ye() {
1961
- let I, B, U, N;
1961
+ let I, W, U, N;
1962
1962
  do {
1963
1963
  if (N = _ - F - S, N === 0 && S === 0 && F === 0)
1964
1964
  N = a;
1965
1965
  else if (N == -1)
1966
1966
  N--;
1967
1967
  else if (S >= a + a - Te) {
1968
- f.set(f.subarray(a, a + a), 0), R -= a, S -= a, h -= a, I = T, U = I;
1968
+ f.set(f.subarray(a, a + a), 0), A -= a, S -= a, h -= a, I = T, U = I;
1969
1969
  do
1970
- B = w[--U] & 65535, w[U] = B >= a ? B - a : 0;
1970
+ W = w[--U] & 65535, w[U] = W >= a ? W - a : 0;
1971
1971
  while (--I !== 0);
1972
1972
  I = a, U = I;
1973
1973
  do
1974
- B = x[--U] & 65535, x[U] = B >= a ? B - a : 0;
1974
+ W = x[--U] & 65535, x[U] = W >= a ? W - a : 0;
1975
1975
  while (--I !== 0);
1976
1976
  N += a;
1977
1977
  }
@@ -1981,26 +1981,26 @@ function io() {
1981
1981
  } while (F < Te && t.avail_in !== 0);
1982
1982
  }
1983
1983
  function It(I) {
1984
- let B = 65535, U;
1985
- for (B > r - 5 && (B = r - 5); ; ) {
1984
+ let W = 65535, U;
1985
+ for (W > r - 5 && (W = r - 5); ; ) {
1986
1986
  if (F <= 1) {
1987
1987
  if (Ye(), F === 0 && I == dt)
1988
1988
  return Fe;
1989
1989
  if (F === 0)
1990
1990
  break;
1991
1991
  }
1992
- if (S += F, F = 0, U = h + B, (S === 0 || S >= U) && (F = S - U, S = U, ne(!1), t.avail_out === 0) || S - h >= a - Te && (ne(!1), t.avail_out === 0))
1992
+ if (S += F, F = 0, U = h + W, (S === 0 || S >= U) && (F = S - U, S = U, te(!1), t.avail_out === 0) || S - h >= a - Te && (te(!1), t.avail_out === 0))
1993
1993
  return Fe;
1994
1994
  }
1995
- return ne(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
1995
+ return te(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
1996
1996
  }
1997
1997
  function gt(I) {
1998
- let B = D, U = S, N, q, V = y;
1999
- const z = S > a - Te ? S - (a - Te) : 0;
2000
- let be = $;
1998
+ let W = P, U = S, N, q, V = y;
1999
+ const Q = S > a - Te ? S - (a - Te) : 0;
2000
+ let be = Y;
2001
2001
  const De = l, sn = S + Ht;
2002
2002
  let Hn = f[U + V - 1], $n = f[U + V];
2003
- y >= O && (B >>= 2), be > F && (be = F);
2003
+ y >= L && (W >>= 2), be > F && (be = F);
2004
2004
  do
2005
2005
  if (N = I, !(f[N + V] != $n || f[N + V - 1] != Hn || f[N] != f[U] || f[++N] != f[U + 1])) {
2006
2006
  U += 2, N++;
@@ -2008,16 +2008,16 @@ function io() {
2008
2008
  ;
2009
2009
  while (f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && U < sn);
2010
2010
  if (q = Ht - (sn - U), U = sn - Ht, q > V) {
2011
- if (R = I, V = q, q >= be)
2011
+ if (A = I, V = q, q >= be)
2012
2012
  break;
2013
2013
  Hn = f[U + V - 1], $n = f[U + V];
2014
2014
  }
2015
2015
  }
2016
- while ((I = x[I & De] & 65535) > z && --B !== 0);
2016
+ while ((I = x[I & De] & 65535) > Q && --W !== 0);
2017
2017
  return V <= F ? V : F;
2018
2018
  }
2019
- function Qi(I) {
2020
- let B = 0, U;
2019
+ function Ji(I) {
2020
+ let W = 0, U;
2021
2021
  for (; ; ) {
2022
2022
  if (F < Te) {
2023
2023
  if (Ye(), F < Te && I == dt)
@@ -2025,24 +2025,24 @@ function io() {
2025
2025
  if (F === 0)
2026
2026
  break;
2027
2027
  }
2028
- if (F >= ae && (g = (g << d ^ f[S + (ae - 1)] & 255) & m, B = w[g] & 65535, x[S & l] = w[g], w[g] = S), B !== 0 && (S - B & 65535) <= a - Te && M != Pt && (v = gt(B)), v >= ae)
2029
- if (U = L(S - R, v - ae), F -= v, v <= b && F >= ae) {
2030
- v--;
2028
+ if (F >= ae && (g = (g << d ^ f[S + (ae - 1)] & 255) & m, W = w[g] & 65535, x[S & l] = w[g], w[g] = S), W !== 0 && (S - W & 65535) <= a - Te && B != Pt && (b = gt(W)), b >= ae)
2029
+ if (U = D(S - A, b - ae), F -= b, b <= k && F >= ae) {
2030
+ b--;
2031
2031
  do
2032
- S++, g = (g << d ^ f[S + (ae - 1)] & 255) & m, B = w[g] & 65535, x[S & l] = w[g], w[g] = S;
2033
- while (--v !== 0);
2032
+ S++, g = (g << d ^ f[S + (ae - 1)] & 255) & m, W = w[g] & 65535, x[S & l] = w[g], w[g] = S;
2033
+ while (--b !== 0);
2034
2034
  S++;
2035
2035
  } else
2036
- S += v, v = 0, g = f[S] & 255, g = (g << d ^ f[S + 1] & 255) & m;
2036
+ S += b, b = 0, g = f[S] & 255, g = (g << d ^ f[S + 1] & 255) & m;
2037
2037
  else
2038
- U = L(0, f[S] & 255), F--, S++;
2039
- if (U && (ne(!1), t.avail_out === 0))
2038
+ U = D(0, f[S] & 255), F--, S++;
2039
+ if (U && (te(!1), t.avail_out === 0))
2040
2040
  return Fe;
2041
2041
  }
2042
- return ne(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
2042
+ return te(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
2043
2043
  }
2044
- function es(I) {
2045
- let B = 0, U, N;
2044
+ function Qi(I) {
2045
+ let W = 0, U, N;
2046
2046
  for (; ; ) {
2047
2047
  if (F < Te) {
2048
2048
  if (Ye(), F < Te && I == dt)
@@ -2050,90 +2050,90 @@ function io() {
2050
2050
  if (F === 0)
2051
2051
  break;
2052
2052
  }
2053
- if (F >= ae && (g = (g << d ^ f[S + (ae - 1)] & 255) & m, B = w[g] & 65535, x[S & l] = w[g], w[g] = S), y = v, A = R, v = ae - 1, B !== 0 && y < b && (S - B & 65535) <= a - Te && (M != Pt && (v = gt(B)), v <= 5 && (M == Ys || v == ae && S - R > 4096) && (v = ae - 1)), y >= ae && v <= y) {
2054
- N = S + F - ae, U = L(S - 1 - A, y - ae), F -= y - 1, y -= 2;
2053
+ if (F >= ae && (g = (g << d ^ f[S + (ae - 1)] & 255) & m, W = w[g] & 65535, x[S & l] = w[g], w[g] = S), y = b, R = A, b = ae - 1, W !== 0 && y < k && (S - W & 65535) <= a - Te && (B != Pt && (b = gt(W)), b <= 5 && (B == Vs || b == ae && S - A > 4096) && (b = ae - 1)), y >= ae && b <= y) {
2054
+ N = S + F - ae, U = D(S - 1 - R, y - ae), F -= y - 1, y -= 2;
2055
2055
  do
2056
- ++S <= N && (g = (g << d ^ f[S + (ae - 1)] & 255) & m, B = w[g] & 65535, x[S & l] = w[g], w[g] = S);
2056
+ ++S <= N && (g = (g << d ^ f[S + (ae - 1)] & 255) & m, W = w[g] & 65535, x[S & l] = w[g], w[g] = S);
2057
2057
  while (--y !== 0);
2058
- if (P = 0, v = ae - 1, S++, U && (ne(!1), t.avail_out === 0))
2058
+ if (C = 0, b = ae - 1, S++, U && (te(!1), t.avail_out === 0))
2059
2059
  return Fe;
2060
- } else if (P !== 0) {
2061
- if (U = L(0, f[S - 1] & 255), U && ne(!1), S++, F--, t.avail_out === 0)
2060
+ } else if (C !== 0) {
2061
+ if (U = D(0, f[S - 1] & 255), U && te(!1), S++, F--, t.avail_out === 0)
2062
2062
  return Fe;
2063
2063
  } else
2064
- P = 1, S++, F--;
2064
+ C = 1, S++, F--;
2065
2065
  }
2066
- return P !== 0 && (U = L(0, f[S - 1] & 255), P = 0), ne(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
2066
+ return C !== 0 && (U = D(0, f[S - 1] & 255), C = 0), te(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
2067
2067
  }
2068
- function ts(I) {
2069
- return I.total_in = I.total_out = 0, I.msg = null, n.pending = 0, n.pending_out = 0, e = Bt, s = dt, at(), wt(), Ue;
2068
+ function es(I) {
2069
+ return I.total_in = I.total_out = 0, I.msg = null, n.pending = 0, n.pending_out = 0, e = Wt, s = dt, at(), wt(), Ue;
2070
2070
  }
2071
- n.deflateInit = function(I, B, U, N, q, V) {
2072
- return N || (N = ln), q || (q = eo), V || (V = Zs), I.msg = null, B == Kt && (B = 6), q < 1 || q > Qs || N != ln || U < 9 || U > 15 || B < 0 || B > 9 || V < 0 || V > Pt ? Oe : (I.dstate = n, c = U, a = 1 << c, l = a - 1, C = q + 7, T = 1 << C, m = T - 1, d = Math.floor((C + ae - 1) / ae), f = new Uint8Array(a * 2), x = [], w = [], J = 1 << q + 6, n.pending_buf = new Uint8Array(J * 4), r = J * 4, n.dist_buf = new Uint16Array(J), n.lc_buf = new Uint8Array(J), E = B, M = V, ts(I));
2071
+ n.deflateInit = function(I, W, U, N, q, V) {
2072
+ return N || (N = ln), q || (q = no), V || (V = Gs), I.msg = null, W == Kt && (W = 6), q < 1 || q > to || N != ln || U < 9 || U > 15 || W < 0 || W > 9 || V < 0 || V > Pt ? Oe : (I.dstate = n, c = U, a = 1 << c, l = a - 1, O = q + 7, T = 1 << O, m = T - 1, d = Math.floor((O + ae - 1) / ae), f = new Uint8Array(a * 2), x = [], w = [], X = 1 << q + 6, n.pending_buf = new Uint8Array(X * 4), r = X * 4, n.dist_buf = new Uint16Array(X), n.lc_buf = new Uint8Array(X), E = W, B = V, es(I));
2073
2073
  }, n.deflateEnd = function() {
2074
- return e != cn && e != Bt && e != bt ? Oe : (n.lc_buf = null, n.dist_buf = null, n.pending_buf = null, w = null, x = null, f = null, n.dstate = null, e == Bt ? Gs : Ue);
2075
- }, n.deflateParams = function(I, B, U) {
2074
+ return e != cn && e != Wt && e != bt ? Oe : (n.lc_buf = null, n.dist_buf = null, n.pending_buf = null, w = null, x = null, f = null, n.dstate = null, e == Wt ? Xs : Ue);
2075
+ }, n.deflateParams = function(I, W, U) {
2076
2076
  let N = Ue;
2077
- return B == Kt && (B = 6), B < 0 || B > 9 || U < 0 || U > Pt ? Oe : (Le[E].func != Le[B].func && I.total_in !== 0 && (N = I.deflate(er)), E != B && (E = B, b = Le[E].max_lazy, O = Le[E].good_length, $ = Le[E].nice_length, D = Le[E].max_chain), M = U, N);
2078
- }, n.deflateSetDictionary = function(I, B, U) {
2077
+ return W == Kt && (W = 6), W < 0 || W > 9 || U < 0 || U > Pt ? Oe : (Le[E].func != Le[W].func && I.total_in !== 0 && (N = I.deflate(Qn)), E != W && (E = W, k = Le[E].max_lazy, L = Le[E].good_length, Y = Le[E].nice_length, P = Le[E].max_chain), B = U, N);
2078
+ }, n.deflateSetDictionary = function(I, W, U) {
2079
2079
  let N = U, q, V = 0;
2080
- if (!B || e != cn)
2080
+ if (!W || e != cn)
2081
2081
  return Oe;
2082
2082
  if (N < ae)
2083
2083
  return Ue;
2084
- for (N > a - Te && (N = a - Te, V = U - N), f.set(B.subarray(V, V + N), 0), S = N, h = N, g = f[0] & 255, g = (g << d ^ f[1] & 255) & m, q = 0; q <= N - ae; q++)
2084
+ for (N > a - Te && (N = a - Te, V = U - N), f.set(W.subarray(V, V + N), 0), S = N, h = N, g = f[0] & 255, g = (g << d ^ f[1] & 255) & m, q = 0; q <= N - ae; q++)
2085
2085
  g = (g << d ^ f[q + (ae - 1)] & 255) & m, x[q & l] = w[g], w[g] = q;
2086
2086
  return Ue;
2087
- }, n.deflate = function(I, B) {
2088
- let U, N, q, V, z;
2089
- if (B > Se || B < 0)
2087
+ }, n.deflate = function(I, W) {
2088
+ let U, N, q, V, Q;
2089
+ if (W > Se || W < 0)
2090
2090
  return Oe;
2091
- if (!I.next_out || !I.next_in && I.avail_in !== 0 || e == bt && B != Se)
2091
+ if (!I.next_out || !I.next_in && I.avail_in !== 0 || e == bt && W != Se)
2092
2092
  return I.msg = Lt[Dt - Oe], Oe;
2093
2093
  if (I.avail_out === 0)
2094
2094
  return I.msg = Lt[Dt - lt], lt;
2095
- if (t = I, V = s, s = B, e == cn && (N = ln + (c - 8 << 4) << 8, q = (E - 1 & 255) >> 1, q > 3 && (q = 3), N |= q << 6, S !== 0 && (N |= to), N += 31 - N % 31, e = Bt, je(N)), n.pending !== 0) {
2095
+ if (t = I, V = s, s = W, e == cn && (N = ln + (c - 8 << 4) << 8, q = (E - 1 & 255) >> 1, q > 3 && (q = 3), N |= q << 6, S !== 0 && (N |= ro), N += 31 - N % 31, e = Wt, je(N)), n.pending !== 0) {
2096
2096
  if (t.flush_pending(), t.avail_out === 0)
2097
2097
  return s = -1, Ue;
2098
- } else if (t.avail_in === 0 && B <= V && B != Se)
2098
+ } else if (t.avail_in === 0 && W <= V && W != Se)
2099
2099
  return t.msg = Lt[Dt - lt], lt;
2100
2100
  if (e == bt && t.avail_in !== 0)
2101
2101
  return I.msg = Lt[Dt - lt], lt;
2102
- if (t.avail_in !== 0 || F !== 0 || B != dt && e != bt) {
2103
- switch (z = -1, Le[E].func) {
2104
- case ui:
2105
- z = It(B);
2102
+ if (t.avail_in !== 0 || F !== 0 || W != dt && e != bt) {
2103
+ switch (Q = -1, Le[E].func) {
2104
+ case fi:
2105
+ Q = It(W);
2106
2106
  break;
2107
2107
  case jt:
2108
- z = Qi(B);
2108
+ Q = Ji(W);
2109
2109
  break;
2110
2110
  case rt:
2111
- z = es(B);
2111
+ Q = Qi(W);
2112
2112
  break;
2113
2113
  }
2114
- if ((z == yt || z == Ot) && (e = bt), z == Fe || z == yt)
2114
+ if ((Q == yt || Q == Ot) && (e = bt), Q == Fe || Q == yt)
2115
2115
  return t.avail_out === 0 && (s = -1), Ue;
2116
- if (z == Ut) {
2117
- if (B == er)
2118
- k();
2119
- else if (ie(0, 0, !1), B == Vs)
2116
+ if (Q == Ut) {
2117
+ if (W == Qn)
2118
+ v();
2119
+ else if (ie(0, 0, !1), W == Ks)
2120
2120
  for (U = 0; U < T; U++)
2121
2121
  w[U] = 0;
2122
2122
  if (t.flush_pending(), t.avail_out === 0)
2123
2123
  return s = -1, Ue;
2124
2124
  }
2125
2125
  }
2126
- return B != Se ? Ue : fi;
2126
+ return W != Se ? Ue : li;
2127
2127
  };
2128
2128
  }
2129
- function di() {
2129
+ function ui() {
2130
2130
  const n = this;
2131
2131
  n.next_in_index = 0, n.next_out_index = 0, n.avail_in = 0, n.total_in = 0, n.avail_out = 0, n.total_out = 0;
2132
2132
  }
2133
- di.prototype = {
2133
+ ui.prototype = {
2134
2134
  deflateInit(n, t) {
2135
2135
  const e = this;
2136
- return e.dstate = new io(), t || (t = St), e.dstate.deflateInit(e, n, t);
2136
+ return e.dstate = new oo(), t || (t = St), e.dstate.deflateInit(e, n, t);
2137
2137
  },
2138
2138
  deflate(n) {
2139
2139
  const t = this;
@@ -2174,28 +2174,28 @@ di.prototype = {
2174
2174
  t > n.avail_out && (t = n.avail_out), t !== 0 && (n.next_out.set(n.dstate.pending_buf.subarray(n.dstate.pending_out, n.dstate.pending_out + t), n.next_out_index), n.next_out_index += t, n.dstate.pending_out += t, n.total_out += t, n.avail_out -= t, n.dstate.pending -= t, n.dstate.pending === 0 && (n.dstate.pending_out = 0));
2175
2175
  }
2176
2176
  };
2177
- function so(n) {
2178
- const t = this, e = new di(), r = oo(n && n.chunkSize ? n.chunkSize : 64 * 1024), s = dt, a = new Uint8Array(r);
2177
+ function ao(n) {
2178
+ const t = this, e = new ui(), r = co(n && n.chunkSize ? n.chunkSize : 64 * 1024), s = dt, a = new Uint8Array(r);
2179
2179
  let c = n ? n.level : Kt;
2180
2180
  typeof c > "u" && (c = Kt), e.deflateInit(c), e.next_out = a, t.append = function(l, f) {
2181
2181
  let _, x, w = 0, g = 0, T = 0;
2182
- const C = [];
2182
+ const O = [];
2183
2183
  if (l.length) {
2184
2184
  e.next_in_index = 0, e.next_in = l, e.avail_in = l.length;
2185
2185
  do {
2186
2186
  if (e.next_out_index = 0, e.avail_out = r, _ = e.deflate(s), _ != Ue)
2187
2187
  throw new Error("deflating: " + e.msg);
2188
- e.next_out_index && (e.next_out_index == r ? C.push(new Uint8Array(a)) : C.push(a.subarray(0, e.next_out_index))), T += e.next_out_index, f && e.next_in_index > 0 && e.next_in_index != w && (f(e.next_in_index), w = e.next_in_index);
2188
+ e.next_out_index && (e.next_out_index == r ? O.push(new Uint8Array(a)) : O.push(a.subarray(0, e.next_out_index))), T += e.next_out_index, f && e.next_in_index > 0 && e.next_in_index != w && (f(e.next_in_index), w = e.next_in_index);
2189
2189
  } while (e.avail_in > 0 || e.avail_out === 0);
2190
- return C.length > 1 ? (x = new Uint8Array(T), C.forEach(function(m) {
2190
+ return O.length > 1 ? (x = new Uint8Array(T), O.forEach(function(m) {
2191
2191
  x.set(m, g), g += m.length;
2192
- })) : x = C[0] ? new Uint8Array(C[0]) : new Uint8Array(), x;
2192
+ })) : x = O[0] ? new Uint8Array(O[0]) : new Uint8Array(), x;
2193
2193
  }
2194
2194
  }, t.flush = function() {
2195
2195
  let l, f, _ = 0, x = 0;
2196
2196
  const w = [];
2197
2197
  do {
2198
- if (e.next_out_index = 0, e.avail_out = r, l = e.deflate(Se), l != fi && l != Ue)
2198
+ if (e.next_out_index = 0, e.avail_out = r, l = e.deflate(Se), l != li && l != Ue)
2199
2199
  throw new Error("deflating: " + e.msg);
2200
2200
  r - e.avail_out > 0 && w.push(a.slice(0, e.next_out_index)), x += e.next_out_index;
2201
2201
  } while (e.avail_in > 0 || e.avail_out === 0);
@@ -2204,10 +2204,10 @@ function so(n) {
2204
2204
  }), f;
2205
2205
  };
2206
2206
  }
2207
- function oo(n) {
2207
+ function co(n) {
2208
2208
  return n + 5 * (Math.floor(n / 16383) + 1);
2209
2209
  }
2210
- const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, oe = -3, rr = -4, $e = -5, Re = [
2210
+ const lo = 15, ee = 0, He = 1, fo = 2, Ae = -2, oe = -3, nr = -4, $e = -5, Re = [
2211
2211
  0,
2212
2212
  1,
2213
2213
  3,
@@ -2225,7 +2225,7 @@ const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, oe = -3, rr = -4, $e = -5, Re = [
2225
2225
  16383,
2226
2226
  32767,
2227
2227
  65535
2228
- ], pi = 1440, lo = 0, fo = 4, uo = 9, po = 5, mo = [
2228
+ ], di = 1440, uo = 0, po = 4, mo = 9, ho = 5, xo = [
2229
2229
  96,
2230
2230
  7,
2231
2231
  256,
@@ -3762,7 +3762,7 @@ const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, oe = -3, rr = -4, $e = -5, Re = [
3762
3762
  0,
3763
3763
  9,
3764
3764
  255
3765
- ], ho = [
3765
+ ], wo = [
3766
3766
  80,
3767
3767
  5,
3768
3768
  1,
@@ -3859,7 +3859,7 @@ const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, oe = -3, rr = -4, $e = -5, Re = [
3859
3859
  192,
3860
3860
  5,
3861
3861
  24577
3862
- ], xo = [
3862
+ ], go = [
3863
3863
  // Copy lengths for literal codes 257..285
3864
3864
  3,
3865
3865
  4,
@@ -3892,7 +3892,7 @@ const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, oe = -3, rr = -4, $e = -5, Re = [
3892
3892
  258,
3893
3893
  0,
3894
3894
  0
3895
- ], wo = [
3895
+ ], _o = [
3896
3896
  // Extra bits for literal codes 257..285
3897
3897
  0,
3898
3898
  0,
@@ -3926,7 +3926,7 @@ const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, oe = -3, rr = -4, $e = -5, Re = [
3926
3926
  112,
3927
3927
  112
3928
3928
  // 112==invalid
3929
- ], go = [
3929
+ ], yo = [
3930
3930
  // Copy offsets for distance codes 0..29
3931
3931
  1,
3932
3932
  2,
@@ -3958,7 +3958,7 @@ const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, oe = -3, rr = -4, $e = -5, Re = [
3958
3958
  12289,
3959
3959
  16385,
3960
3960
  24577
3961
- ], _o = [
3961
+ ], bo = [
3962
3962
  // Extra bits for distance codes
3963
3963
  0,
3964
3964
  0,
@@ -3994,54 +3994,54 @@ const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, oe = -3, rr = -4, $e = -5, Re = [
3994
3994
  function An() {
3995
3995
  const n = this;
3996
3996
  let t, e, r, s, a, c;
3997
- function l(_, x, w, g, T, C, m, d, h, v, A) {
3998
- let P, S, R, F, y, D, b, E, M, O, $, H, j, G, K;
3999
- O = 0, y = w;
3997
+ function l(_, x, w, g, T, O, m, d, h, b, R) {
3998
+ let C, S, A, F, y, P, k, E, B, L, Y, H, j, K, G;
3999
+ L = 0, y = w;
4000
4000
  do
4001
- r[_[x + O]]++, O++, y--;
4001
+ r[_[x + L]]++, L++, y--;
4002
4002
  while (y !== 0);
4003
4003
  if (r[0] == w)
4004
- return m[0] = -1, d[0] = 0, Q;
4005
- for (E = d[0], D = 1; D <= Ze && r[D] === 0; D++)
4004
+ return m[0] = -1, d[0] = 0, ee;
4005
+ for (E = d[0], P = 1; P <= Ze && r[P] === 0; P++)
4006
4006
  ;
4007
- for (b = D, E < D && (E = D), y = Ze; y !== 0 && r[y] === 0; y--)
4007
+ for (k = P, E < P && (E = P), y = Ze; y !== 0 && r[y] === 0; y--)
4008
4008
  ;
4009
- for (R = y, E > y && (E = y), d[0] = E, G = 1 << D; D < y; D++, G <<= 1)
4010
- if ((G -= r[D]) < 0)
4009
+ for (A = y, E > y && (E = y), d[0] = E, K = 1 << P; P < y; P++, K <<= 1)
4010
+ if ((K -= r[P]) < 0)
4011
4011
  return oe;
4012
- if ((G -= r[y]) < 0)
4012
+ if ((K -= r[y]) < 0)
4013
4013
  return oe;
4014
- for (r[y] += G, c[1] = D = 0, O = 1, j = 2; --y !== 0; )
4015
- c[j] = D += r[O], j++, O++;
4016
- y = 0, O = 0;
4014
+ for (r[y] += K, c[1] = P = 0, L = 1, j = 2; --y !== 0; )
4015
+ c[j] = P += r[L], j++, L++;
4016
+ y = 0, L = 0;
4017
4017
  do
4018
- (D = _[x + O]) !== 0 && (A[c[D]++] = y), O++;
4018
+ (P = _[x + L]) !== 0 && (R[c[P]++] = y), L++;
4019
4019
  while (++y < w);
4020
- for (w = c[R], c[0] = y = 0, O = 0, F = -1, H = -E, a[0] = 0, $ = 0, K = 0; b <= R; b++)
4021
- for (P = r[b]; P-- !== 0; ) {
4022
- for (; b > H + E; ) {
4023
- if (F++, H += E, K = R - H, K = K > E ? E : K, (S = 1 << (D = b - H)) > P + 1 && (S -= P + 1, j = b, D < K))
4024
- for (; ++D < K && !((S <<= 1) <= r[++j]); )
4020
+ for (w = c[A], c[0] = y = 0, L = 0, F = -1, H = -E, a[0] = 0, Y = 0, G = 0; k <= A; k++)
4021
+ for (C = r[k]; C-- !== 0; ) {
4022
+ for (; k > H + E; ) {
4023
+ if (F++, H += E, G = A - H, G = G > E ? E : G, (S = 1 << (P = k - H)) > C + 1 && (S -= C + 1, j = k, P < G))
4024
+ for (; ++P < G && !((S <<= 1) <= r[++j]); )
4025
4025
  S -= r[j];
4026
- if (K = 1 << D, v[0] + K > pi)
4026
+ if (G = 1 << P, b[0] + G > di)
4027
4027
  return oe;
4028
- a[F] = $ = /* hp+ */
4029
- v[0], v[0] += K, F !== 0 ? (c[F] = y, s[0] = /* (byte) */
4030
- D, s[1] = /* (byte) */
4031
- E, D = y >>> H - E, s[2] = /* (int) */
4032
- $ - a[F - 1] - D, h.set(s, (a[F - 1] + D) * 3)) : m[0] = $;
4028
+ a[F] = Y = /* hp+ */
4029
+ b[0], b[0] += G, F !== 0 ? (c[F] = y, s[0] = /* (byte) */
4030
+ P, s[1] = /* (byte) */
4031
+ E, P = y >>> H - E, s[2] = /* (int) */
4032
+ Y - a[F - 1] - P, h.set(s, (a[F - 1] + P) * 3)) : m[0] = Y;
4033
4033
  }
4034
4034
  for (s[1] = /* (byte) */
4035
- b - H, O >= w ? s[0] = 192 : A[O] < g ? (s[0] = /* (byte) */
4036
- A[O] < 256 ? 0 : 96, s[2] = A[O++]) : (s[0] = /* (byte) */
4037
- C[A[O] - g] + 16 + 64, s[2] = T[A[O++] - g]), S = 1 << b - H, D = y >>> H; D < K; D += S)
4038
- h.set(s, ($ + D) * 3);
4039
- for (D = 1 << b - 1; y & D; D >>>= 1)
4040
- y ^= D;
4041
- for (y ^= D, M = (1 << H) - 1; (y & M) != c[F]; )
4042
- F--, H -= E, M = (1 << H) - 1;
4035
+ k - H, L >= w ? s[0] = 192 : R[L] < g ? (s[0] = /* (byte) */
4036
+ R[L] < 256 ? 0 : 96, s[2] = R[L++]) : (s[0] = /* (byte) */
4037
+ O[R[L] - g] + 16 + 64, s[2] = T[R[L++] - g]), S = 1 << k - H, P = y >>> H; P < G; P += S)
4038
+ h.set(s, (Y + P) * 3);
4039
+ for (P = 1 << k - 1; y & P; P >>>= 1)
4040
+ y ^= P;
4041
+ for (y ^= P, B = (1 << H) - 1; (y & B) != c[F]; )
4042
+ F--, H -= E, B = (1 << H) - 1;
4043
4043
  }
4044
- return G !== 0 && R != 1 ? $e : Q;
4044
+ return K !== 0 && A != 1 ? $e : ee;
4045
4045
  }
4046
4046
  function f(_) {
4047
4047
  let x;
@@ -4054,188 +4054,188 @@ function An() {
4054
4054
  a.set(r.subarray(0, Ze), 0), c.set(r.subarray(0, Ze + 1), 0);
4055
4055
  }
4056
4056
  n.inflate_trees_bits = function(_, x, w, g, T) {
4057
- let C;
4058
- return f(19), t[0] = 0, C = l(_, 0, 19, 19, null, null, w, x, g, t, e), C == oe ? T.msg = "oversubscribed dynamic bit lengths tree" : (C == $e || x[0] === 0) && (T.msg = "incomplete dynamic bit lengths tree", C = oe), C;
4059
- }, n.inflate_trees_dynamic = function(_, x, w, g, T, C, m, d, h) {
4060
- let v;
4061
- return f(288), t[0] = 0, v = l(w, 0, _, 257, xo, wo, C, g, d, t, e), v != Q || g[0] === 0 ? (v == oe ? h.msg = "oversubscribed literal/length tree" : v != rr && (h.msg = "incomplete literal/length tree", v = oe), v) : (f(288), v = l(w, _, x, 0, go, _o, m, T, d, t, e), v != Q || T[0] === 0 && _ > 257 ? (v == oe ? h.msg = "oversubscribed distance tree" : v == $e ? (h.msg = "incomplete distance tree", v = oe) : v != rr && (h.msg = "empty distance tree with lengths", v = oe), v) : Q);
4057
+ let O;
4058
+ return f(19), t[0] = 0, O = l(_, 0, 19, 19, null, null, w, x, g, t, e), O == oe ? T.msg = "oversubscribed dynamic bit lengths tree" : (O == $e || x[0] === 0) && (T.msg = "incomplete dynamic bit lengths tree", O = oe), O;
4059
+ }, n.inflate_trees_dynamic = function(_, x, w, g, T, O, m, d, h) {
4060
+ let b;
4061
+ return f(288), t[0] = 0, b = l(w, 0, _, 257, go, _o, O, g, d, t, e), b != ee || g[0] === 0 ? (b == oe ? h.msg = "oversubscribed literal/length tree" : b != nr && (h.msg = "incomplete literal/length tree", b = oe), b) : (f(288), b = l(w, _, x, 0, yo, bo, m, T, d, t, e), b != ee || T[0] === 0 && _ > 257 ? (b == oe ? h.msg = "oversubscribed distance tree" : b == $e ? (h.msg = "incomplete distance tree", b = oe) : b != nr && (h.msg = "empty distance tree with lengths", b = oe), b) : ee);
4062
4062
  };
4063
4063
  }
4064
4064
  An.inflate_trees_fixed = function(n, t, e, r) {
4065
- return n[0] = uo, t[0] = po, e[0] = mo, r[0] = ho, Q;
4065
+ return n[0] = mo, t[0] = ho, e[0] = xo, r[0] = wo, ee;
4066
4066
  };
4067
- const Wt = 0, ir = 1, sr = 2, or = 3, ar = 4, cr = 5, lr = 6, un = 7, fr = 8, Mt = 9;
4068
- function yo() {
4067
+ const Bt = 0, rr = 1, ir = 2, sr = 3, or = 4, ar = 5, cr = 6, un = 7, lr = 8, Mt = 9;
4068
+ function vo() {
4069
4069
  const n = this;
4070
- let t, e = 0, r, s = 0, a = 0, c = 0, l = 0, f = 0, _ = 0, x = 0, w, g = 0, T, C = 0;
4071
- function m(d, h, v, A, P, S, R, F) {
4072
- let y, D, b, E, M, O, $, H, j, G, K, te, Z, J, Y, ee;
4073
- $ = F.next_in_index, H = F.avail_in, M = R.bitb, O = R.bitk, j = R.write, G = j < R.read ? R.read - j - 1 : R.end - j, K = Re[d], te = Re[h];
4070
+ let t, e = 0, r, s = 0, a = 0, c = 0, l = 0, f = 0, _ = 0, x = 0, w, g = 0, T, O = 0;
4071
+ function m(d, h, b, R, C, S, A, F) {
4072
+ let y, P, k, E, B, L, Y, H, j, K, G, re, Z, X, $, J;
4073
+ Y = F.next_in_index, H = F.avail_in, B = A.bitb, L = A.bitk, j = A.write, K = j < A.read ? A.read - j - 1 : A.end - j, G = Re[d], re = Re[h];
4074
4074
  do {
4075
- for (; O < 20; )
4076
- H--, M |= (F.read_byte($++) & 255) << O, O += 8;
4077
- if (y = M & K, D = v, b = A, ee = (b + y) * 3, (E = D[ee]) === 0) {
4078
- M >>= D[ee + 1], O -= D[ee + 1], R.win[j++] = /* (byte) */
4079
- D[ee + 2], G--;
4075
+ for (; L < 20; )
4076
+ H--, B |= (F.read_byte(Y++) & 255) << L, L += 8;
4077
+ if (y = B & G, P = b, k = R, J = (k + y) * 3, (E = P[J]) === 0) {
4078
+ B >>= P[J + 1], L -= P[J + 1], A.win[j++] = /* (byte) */
4079
+ P[J + 2], K--;
4080
4080
  continue;
4081
4081
  }
4082
4082
  do {
4083
- if (M >>= D[ee + 1], O -= D[ee + 1], E & 16) {
4084
- for (E &= 15, Z = D[ee + 2] + /* (int) */
4085
- (M & Re[E]), M >>= E, O -= E; O < 15; )
4086
- H--, M |= (F.read_byte($++) & 255) << O, O += 8;
4087
- y = M & te, D = P, b = S, ee = (b + y) * 3, E = D[ee];
4083
+ if (B >>= P[J + 1], L -= P[J + 1], E & 16) {
4084
+ for (E &= 15, Z = P[J + 2] + /* (int) */
4085
+ (B & Re[E]), B >>= E, L -= E; L < 15; )
4086
+ H--, B |= (F.read_byte(Y++) & 255) << L, L += 8;
4087
+ y = B & re, P = C, k = S, J = (k + y) * 3, E = P[J];
4088
4088
  do
4089
- if (M >>= D[ee + 1], O -= D[ee + 1], E & 16) {
4090
- for (E &= 15; O < E; )
4091
- H--, M |= (F.read_byte($++) & 255) << O, O += 8;
4092
- if (J = D[ee + 2] + (M & Re[E]), M >>= E, O -= E, G -= Z, j >= J)
4093
- Y = j - J, j - Y > 0 && 2 > j - Y ? (R.win[j++] = R.win[Y++], R.win[j++] = R.win[Y++], Z -= 2) : (R.win.set(R.win.subarray(Y, Y + 2), j), j += 2, Y += 2, Z -= 2);
4089
+ if (B >>= P[J + 1], L -= P[J + 1], E & 16) {
4090
+ for (E &= 15; L < E; )
4091
+ H--, B |= (F.read_byte(Y++) & 255) << L, L += 8;
4092
+ if (X = P[J + 2] + (B & Re[E]), B >>= E, L -= E, K -= Z, j >= X)
4093
+ $ = j - X, j - $ > 0 && 2 > j - $ ? (A.win[j++] = A.win[$++], A.win[j++] = A.win[$++], Z -= 2) : (A.win.set(A.win.subarray($, $ + 2), j), j += 2, $ += 2, Z -= 2);
4094
4094
  else {
4095
- Y = j - J;
4095
+ $ = j - X;
4096
4096
  do
4097
- Y += R.end;
4098
- while (Y < 0);
4099
- if (E = R.end - Y, Z > E) {
4100
- if (Z -= E, j - Y > 0 && E > j - Y)
4097
+ $ += A.end;
4098
+ while ($ < 0);
4099
+ if (E = A.end - $, Z > E) {
4100
+ if (Z -= E, j - $ > 0 && E > j - $)
4101
4101
  do
4102
- R.win[j++] = R.win[Y++];
4102
+ A.win[j++] = A.win[$++];
4103
4103
  while (--E !== 0);
4104
4104
  else
4105
- R.win.set(R.win.subarray(Y, Y + E), j), j += E, Y += E, E = 0;
4106
- Y = 0;
4105
+ A.win.set(A.win.subarray($, $ + E), j), j += E, $ += E, E = 0;
4106
+ $ = 0;
4107
4107
  }
4108
4108
  }
4109
- if (j - Y > 0 && Z > j - Y)
4109
+ if (j - $ > 0 && Z > j - $)
4110
4110
  do
4111
- R.win[j++] = R.win[Y++];
4111
+ A.win[j++] = A.win[$++];
4112
4112
  while (--Z !== 0);
4113
4113
  else
4114
- R.win.set(R.win.subarray(Y, Y + Z), j), j += Z, Y += Z, Z = 0;
4114
+ A.win.set(A.win.subarray($, $ + Z), j), j += Z, $ += Z, Z = 0;
4115
4115
  break;
4116
4116
  } else if (!(E & 64))
4117
- y += D[ee + 2], y += M & Re[E], ee = (b + y) * 3, E = D[ee];
4117
+ y += P[J + 2], y += B & Re[E], J = (k + y) * 3, E = P[J];
4118
4118
  else
4119
- return F.msg = "invalid distance code", Z = F.avail_in - H, Z = O >> 3 < Z ? O >> 3 : Z, H += Z, $ -= Z, O -= Z << 3, R.bitb = M, R.bitk = O, F.avail_in = H, F.total_in += $ - F.next_in_index, F.next_in_index = $, R.write = j, oe;
4119
+ return F.msg = "invalid distance code", Z = F.avail_in - H, Z = L >> 3 < Z ? L >> 3 : Z, H += Z, Y -= Z, L -= Z << 3, A.bitb = B, A.bitk = L, F.avail_in = H, F.total_in += Y - F.next_in_index, F.next_in_index = Y, A.write = j, oe;
4120
4120
  while (!0);
4121
4121
  break;
4122
4122
  }
4123
4123
  if (E & 64)
4124
- return E & 32 ? (Z = F.avail_in - H, Z = O >> 3 < Z ? O >> 3 : Z, H += Z, $ -= Z, O -= Z << 3, R.bitb = M, R.bitk = O, F.avail_in = H, F.total_in += $ - F.next_in_index, F.next_in_index = $, R.write = j, He) : (F.msg = "invalid literal/length code", Z = F.avail_in - H, Z = O >> 3 < Z ? O >> 3 : Z, H += Z, $ -= Z, O -= Z << 3, R.bitb = M, R.bitk = O, F.avail_in = H, F.total_in += $ - F.next_in_index, F.next_in_index = $, R.write = j, oe);
4125
- if (y += D[ee + 2], y += M & Re[E], ee = (b + y) * 3, (E = D[ee]) === 0) {
4126
- M >>= D[ee + 1], O -= D[ee + 1], R.win[j++] = /* (byte) */
4127
- D[ee + 2], G--;
4124
+ return E & 32 ? (Z = F.avail_in - H, Z = L >> 3 < Z ? L >> 3 : Z, H += Z, Y -= Z, L -= Z << 3, A.bitb = B, A.bitk = L, F.avail_in = H, F.total_in += Y - F.next_in_index, F.next_in_index = Y, A.write = j, He) : (F.msg = "invalid literal/length code", Z = F.avail_in - H, Z = L >> 3 < Z ? L >> 3 : Z, H += Z, Y -= Z, L -= Z << 3, A.bitb = B, A.bitk = L, F.avail_in = H, F.total_in += Y - F.next_in_index, F.next_in_index = Y, A.write = j, oe);
4125
+ if (y += P[J + 2], y += B & Re[E], J = (k + y) * 3, (E = P[J]) === 0) {
4126
+ B >>= P[J + 1], L -= P[J + 1], A.win[j++] = /* (byte) */
4127
+ P[J + 2], K--;
4128
4128
  break;
4129
4129
  }
4130
4130
  } while (!0);
4131
- } while (G >= 258 && H >= 10);
4132
- return Z = F.avail_in - H, Z = O >> 3 < Z ? O >> 3 : Z, H += Z, $ -= Z, O -= Z << 3, R.bitb = M, R.bitk = O, F.avail_in = H, F.total_in += $ - F.next_in_index, F.next_in_index = $, R.write = j, Q;
4131
+ } while (K >= 258 && H >= 10);
4132
+ return Z = F.avail_in - H, Z = L >> 3 < Z ? L >> 3 : Z, H += Z, Y -= Z, L -= Z << 3, A.bitb = B, A.bitk = L, F.avail_in = H, F.total_in += Y - F.next_in_index, F.next_in_index = Y, A.write = j, ee;
4133
4133
  }
4134
- n.init = function(d, h, v, A, P, S) {
4135
- t = Wt, _ = /* (byte) */
4134
+ n.init = function(d, h, b, R, C, S) {
4135
+ t = Bt, _ = /* (byte) */
4136
4136
  d, x = /* (byte) */
4137
- h, w = v, g = A, T = P, C = S, r = null;
4138
- }, n.proc = function(d, h, v) {
4139
- let A, P, S, R = 0, F = 0, y = 0, D, b, E, M;
4140
- for (y = h.next_in_index, D = h.avail_in, R = d.bitb, F = d.bitk, b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b; ; )
4137
+ h, w = b, g = R, T = C, O = S, r = null;
4138
+ }, n.proc = function(d, h, b) {
4139
+ let R, C, S, A = 0, F = 0, y = 0, P, k, E, B;
4140
+ for (y = h.next_in_index, P = h.avail_in, A = d.bitb, F = d.bitk, k = d.write, E = k < d.read ? d.read - k - 1 : d.end - k; ; )
4141
4141
  switch (t) {
4142
- case Wt:
4143
- if (E >= 258 && D >= 10 && (d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, v = m(_, x, w, g, T, C, d, h), y = h.next_in_index, D = h.avail_in, R = d.bitb, F = d.bitk, b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b, v != Q)) {
4144
- t = v == He ? un : Mt;
4142
+ case Bt:
4143
+ if (E >= 258 && P >= 10 && (d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, b = m(_, x, w, g, T, O, d, h), y = h.next_in_index, P = h.avail_in, A = d.bitb, F = d.bitk, k = d.write, E = k < d.read ? d.read - k - 1 : d.end - k, b != ee)) {
4144
+ t = b == He ? un : Mt;
4145
4145
  break;
4146
4146
  }
4147
- a = _, r = w, s = g, t = ir;
4148
- case ir:
4149
- for (A = a; F < A; ) {
4150
- if (D !== 0)
4151
- v = Q;
4147
+ a = _, r = w, s = g, t = rr;
4148
+ case rr:
4149
+ for (R = a; F < R; ) {
4150
+ if (P !== 0)
4151
+ b = ee;
4152
4152
  else
4153
- return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4154
- D--, R |= (h.read_byte(y++) & 255) << F, F += 8;
4153
+ return d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4154
+ P--, A |= (h.read_byte(y++) & 255) << F, F += 8;
4155
4155
  }
4156
- if (P = (s + (R & Re[A])) * 3, R >>>= r[P + 1], F -= r[P + 1], S = r[P], S === 0) {
4157
- c = r[P + 2], t = lr;
4156
+ if (C = (s + (A & Re[R])) * 3, A >>>= r[C + 1], F -= r[C + 1], S = r[C], S === 0) {
4157
+ c = r[C + 2], t = cr;
4158
4158
  break;
4159
4159
  }
4160
4160
  if (S & 16) {
4161
- l = S & 15, e = r[P + 2], t = sr;
4161
+ l = S & 15, e = r[C + 2], t = ir;
4162
4162
  break;
4163
4163
  }
4164
4164
  if (!(S & 64)) {
4165
- a = S, s = P / 3 + r[P + 2];
4165
+ a = S, s = C / 3 + r[C + 2];
4166
4166
  break;
4167
4167
  }
4168
4168
  if (S & 32) {
4169
4169
  t = un;
4170
4170
  break;
4171
4171
  }
4172
- return t = Mt, h.msg = "invalid literal/length code", v = oe, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4173
- case sr:
4174
- for (A = l; F < A; ) {
4175
- if (D !== 0)
4176
- v = Q;
4172
+ return t = Mt, h.msg = "invalid literal/length code", b = oe, d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4173
+ case ir:
4174
+ for (R = l; F < R; ) {
4175
+ if (P !== 0)
4176
+ b = ee;
4177
4177
  else
4178
- return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4179
- D--, R |= (h.read_byte(y++) & 255) << F, F += 8;
4178
+ return d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4179
+ P--, A |= (h.read_byte(y++) & 255) << F, F += 8;
4180
4180
  }
4181
- e += R & Re[A], R >>= A, F -= A, a = x, r = T, s = C, t = or;
4182
- case or:
4183
- for (A = a; F < A; ) {
4184
- if (D !== 0)
4185
- v = Q;
4181
+ e += A & Re[R], A >>= R, F -= R, a = x, r = T, s = O, t = sr;
4182
+ case sr:
4183
+ for (R = a; F < R; ) {
4184
+ if (P !== 0)
4185
+ b = ee;
4186
4186
  else
4187
- return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4188
- D--, R |= (h.read_byte(y++) & 255) << F, F += 8;
4187
+ return d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4188
+ P--, A |= (h.read_byte(y++) & 255) << F, F += 8;
4189
4189
  }
4190
- if (P = (s + (R & Re[A])) * 3, R >>= r[P + 1], F -= r[P + 1], S = r[P], S & 16) {
4191
- l = S & 15, f = r[P + 2], t = ar;
4190
+ if (C = (s + (A & Re[R])) * 3, A >>= r[C + 1], F -= r[C + 1], S = r[C], S & 16) {
4191
+ l = S & 15, f = r[C + 2], t = or;
4192
4192
  break;
4193
4193
  }
4194
4194
  if (!(S & 64)) {
4195
- a = S, s = P / 3 + r[P + 2];
4195
+ a = S, s = C / 3 + r[C + 2];
4196
4196
  break;
4197
4197
  }
4198
- return t = Mt, h.msg = "invalid distance code", v = oe, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4199
- case ar:
4200
- for (A = l; F < A; ) {
4201
- if (D !== 0)
4202
- v = Q;
4198
+ return t = Mt, h.msg = "invalid distance code", b = oe, d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4199
+ case or:
4200
+ for (R = l; F < R; ) {
4201
+ if (P !== 0)
4202
+ b = ee;
4203
4203
  else
4204
- return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4205
- D--, R |= (h.read_byte(y++) & 255) << F, F += 8;
4204
+ return d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4205
+ P--, A |= (h.read_byte(y++) & 255) << F, F += 8;
4206
4206
  }
4207
- f += R & Re[A], R >>= A, F -= A, t = cr;
4208
- case cr:
4209
- for (M = b - f; M < 0; )
4210
- M += d.end;
4207
+ f += A & Re[R], A >>= R, F -= R, t = ar;
4208
+ case ar:
4209
+ for (B = k - f; B < 0; )
4210
+ B += d.end;
4211
4211
  for (; e !== 0; ) {
4212
- if (E === 0 && (b == d.end && d.read !== 0 && (b = 0, E = b < d.read ? d.read - b - 1 : d.end - b), E === 0 && (d.write = b, v = d.inflate_flush(h, v), b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b, b == d.end && d.read !== 0 && (b = 0, E = b < d.read ? d.read - b - 1 : d.end - b), E === 0)))
4213
- return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4214
- d.win[b++] = d.win[M++], E--, M == d.end && (M = 0), e--;
4212
+ if (E === 0 && (k == d.end && d.read !== 0 && (k = 0, E = k < d.read ? d.read - k - 1 : d.end - k), E === 0 && (d.write = k, b = d.inflate_flush(h, b), k = d.write, E = k < d.read ? d.read - k - 1 : d.end - k, k == d.end && d.read !== 0 && (k = 0, E = k < d.read ? d.read - k - 1 : d.end - k), E === 0)))
4213
+ return d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4214
+ d.win[k++] = d.win[B++], E--, B == d.end && (B = 0), e--;
4215
4215
  }
4216
- t = Wt;
4216
+ t = Bt;
4217
4217
  break;
4218
- case lr:
4219
- if (E === 0 && (b == d.end && d.read !== 0 && (b = 0, E = b < d.read ? d.read - b - 1 : d.end - b), E === 0 && (d.write = b, v = d.inflate_flush(h, v), b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b, b == d.end && d.read !== 0 && (b = 0, E = b < d.read ? d.read - b - 1 : d.end - b), E === 0)))
4220
- return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4221
- v = Q, d.win[b++] = /* (byte) */
4222
- c, E--, t = Wt;
4218
+ case cr:
4219
+ if (E === 0 && (k == d.end && d.read !== 0 && (k = 0, E = k < d.read ? d.read - k - 1 : d.end - k), E === 0 && (d.write = k, b = d.inflate_flush(h, b), k = d.write, E = k < d.read ? d.read - k - 1 : d.end - k, k == d.end && d.read !== 0 && (k = 0, E = k < d.read ? d.read - k - 1 : d.end - k), E === 0)))
4220
+ return d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4221
+ b = ee, d.win[k++] = /* (byte) */
4222
+ c, E--, t = Bt;
4223
4223
  break;
4224
4224
  case un:
4225
- if (F > 7 && (F -= 8, D++, y--), d.write = b, v = d.inflate_flush(h, v), b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b, d.read != d.write)
4226
- return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4227
- t = fr;
4228
- case fr:
4229
- return v = He, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4225
+ if (F > 7 && (F -= 8, P++, y--), d.write = k, b = d.inflate_flush(h, b), k = d.write, E = k < d.read ? d.read - k - 1 : d.end - k, d.read != d.write)
4226
+ return d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4227
+ t = lr;
4228
+ case lr:
4229
+ return b = He, d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4230
4230
  case Mt:
4231
- return v = oe, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4231
+ return b = oe, d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4232
4232
  default:
4233
- return v = Ae, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4233
+ return b = Ae, d.bitb = A, d.bitk = F, h.avail_in = P, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = k, d.inflate_flush(h, b);
4234
4234
  }
4235
4235
  }, n.free = function() {
4236
4236
  };
4237
4237
  }
4238
- const ur = [
4238
+ const fr = [
4239
4239
  // Order of the bit length code lengths
4240
4240
  16,
4241
4241
  17,
@@ -4256,154 +4256,154 @@ const ur = [
4256
4256
  14,
4257
4257
  1,
4258
4258
  15
4259
- ], ft = 0, dn = 1, dr = 2, pr = 3, mr = 4, hr = 5, Nt = 6, qt = 7, xr = 8, nt = 9;
4260
- function bo(n, t) {
4259
+ ], ft = 0, dn = 1, ur = 2, dr = 3, pr = 4, mr = 5, Nt = 6, qt = 7, hr = 8, nt = 9;
4260
+ function ko(n, t) {
4261
4261
  const e = this;
4262
4262
  let r = ft, s = 0, a = 0, c = 0, l;
4263
- const f = [0], _ = [0], x = new yo();
4264
- let w = 0, g = new Int32Array(pi * 3);
4265
- const T = 0, C = new An();
4263
+ const f = [0], _ = [0], x = new vo();
4264
+ let w = 0, g = new Int32Array(di * 3);
4265
+ const T = 0, O = new An();
4266
4266
  e.bitk = 0, e.bitb = 0, e.win = new Uint8Array(t), e.end = t, e.read = 0, e.write = 0, e.reset = function(m, d) {
4267
4267
  d && (d[0] = T), r == Nt && x.free(m), r = ft, e.bitk = 0, e.bitb = 0, e.read = e.write = 0;
4268
4268
  }, e.reset(n, null), e.inflate_flush = function(m, d) {
4269
- let h, v, A;
4270
- return v = m.next_out_index, A = e.read, h = /* (int) */
4271
- (A <= e.write ? e.write : e.end) - A, h > m.avail_out && (h = m.avail_out), h !== 0 && d == $e && (d = Q), m.avail_out -= h, m.total_out += h, m.next_out.set(e.win.subarray(A, A + h), v), v += h, A += h, A == e.end && (A = 0, e.write == e.end && (e.write = 0), h = e.write - A, h > m.avail_out && (h = m.avail_out), h !== 0 && d == $e && (d = Q), m.avail_out -= h, m.total_out += h, m.next_out.set(e.win.subarray(A, A + h), v), v += h, A += h), m.next_out_index = v, e.read = A, d;
4269
+ let h, b, R;
4270
+ return b = m.next_out_index, R = e.read, h = /* (int) */
4271
+ (R <= e.write ? e.write : e.end) - R, h > m.avail_out && (h = m.avail_out), h !== 0 && d == $e && (d = ee), m.avail_out -= h, m.total_out += h, m.next_out.set(e.win.subarray(R, R + h), b), b += h, R += h, R == e.end && (R = 0, e.write == e.end && (e.write = 0), h = e.write - R, h > m.avail_out && (h = m.avail_out), h !== 0 && d == $e && (d = ee), m.avail_out -= h, m.total_out += h, m.next_out.set(e.win.subarray(R, R + h), b), b += h, R += h), m.next_out_index = b, e.read = R, d;
4272
4272
  }, e.proc = function(m, d) {
4273
- let h, v, A, P, S, R, F, y;
4274
- for (P = m.next_in_index, S = m.avail_in, v = e.bitb, A = e.bitk, R = e.write, F = /* (int) */
4275
- R < e.read ? e.read - R - 1 : e.end - R; ; ) {
4276
- let D, b, E, M, O, $, H, j;
4273
+ let h, b, R, C, S, A, F, y;
4274
+ for (C = m.next_in_index, S = m.avail_in, b = e.bitb, R = e.bitk, A = e.write, F = /* (int) */
4275
+ A < e.read ? e.read - A - 1 : e.end - A; ; ) {
4276
+ let P, k, E, B, L, Y, H, j;
4277
4277
  switch (r) {
4278
4278
  case ft:
4279
- for (; A < 3; ) {
4279
+ for (; R < 3; ) {
4280
4280
  if (S !== 0)
4281
- d = Q;
4281
+ d = ee;
4282
4282
  else
4283
- return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4284
- S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4283
+ return e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4284
+ S--, b |= (m.read_byte(C++) & 255) << R, R += 8;
4285
4285
  }
4286
4286
  switch (h = /* (int) */
4287
- v & 7, w = h & 1, h >>> 1) {
4287
+ b & 7, w = h & 1, h >>> 1) {
4288
4288
  case 0:
4289
- v >>>= 3, A -= 3, h = A & 7, v >>>= h, A -= h, r = dn;
4289
+ b >>>= 3, R -= 3, h = R & 7, b >>>= h, R -= h, r = dn;
4290
4290
  break;
4291
4291
  case 1:
4292
- D = [], b = [], E = [[]], M = [[]], An.inflate_trees_fixed(D, b, E, M), x.init(D[0], b[0], E[0], 0, M[0], 0), v >>>= 3, A -= 3, r = Nt;
4292
+ P = [], k = [], E = [[]], B = [[]], An.inflate_trees_fixed(P, k, E, B), x.init(P[0], k[0], E[0], 0, B[0], 0), b >>>= 3, R -= 3, r = Nt;
4293
4293
  break;
4294
4294
  case 2:
4295
- v >>>= 3, A -= 3, r = pr;
4295
+ b >>>= 3, R -= 3, r = dr;
4296
4296
  break;
4297
4297
  case 3:
4298
- return v >>>= 3, A -= 3, r = nt, m.msg = "invalid block type", d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4298
+ return b >>>= 3, R -= 3, r = nt, m.msg = "invalid block type", d = oe, e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4299
4299
  }
4300
4300
  break;
4301
4301
  case dn:
4302
- for (; A < 32; ) {
4302
+ for (; R < 32; ) {
4303
4303
  if (S !== 0)
4304
- d = Q;
4304
+ d = ee;
4305
4305
  else
4306
- return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4307
- S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4306
+ return e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4307
+ S--, b |= (m.read_byte(C++) & 255) << R, R += 8;
4308
4308
  }
4309
- if ((~v >>> 16 & 65535) != (v & 65535))
4310
- return r = nt, m.msg = "invalid stored block lengths", d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4311
- s = v & 65535, v = A = 0, r = s !== 0 ? dr : w !== 0 ? qt : ft;
4309
+ if ((~b >>> 16 & 65535) != (b & 65535))
4310
+ return r = nt, m.msg = "invalid stored block lengths", d = oe, e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4311
+ s = b & 65535, b = R = 0, r = s !== 0 ? ur : w !== 0 ? qt : ft;
4312
4312
  break;
4313
- case dr:
4314
- if (S === 0 || F === 0 && (R == e.end && e.read !== 0 && (R = 0, F = /* (int) */
4315
- R < e.read ? e.read - R - 1 : e.end - R), F === 0 && (e.write = R, d = e.inflate_flush(m, d), R = e.write, F = /* (int) */
4316
- R < e.read ? e.read - R - 1 : e.end - R, R == e.end && e.read !== 0 && (R = 0, F = /* (int) */
4317
- R < e.read ? e.read - R - 1 : e.end - R), F === 0)))
4318
- return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4319
- if (d = Q, h = s, h > S && (h = S), h > F && (h = F), e.win.set(m.read_buf(P, h), R), P += h, S -= h, R += h, F -= h, (s -= h) !== 0)
4313
+ case ur:
4314
+ if (S === 0 || F === 0 && (A == e.end && e.read !== 0 && (A = 0, F = /* (int) */
4315
+ A < e.read ? e.read - A - 1 : e.end - A), F === 0 && (e.write = A, d = e.inflate_flush(m, d), A = e.write, F = /* (int) */
4316
+ A < e.read ? e.read - A - 1 : e.end - A, A == e.end && e.read !== 0 && (A = 0, F = /* (int) */
4317
+ A < e.read ? e.read - A - 1 : e.end - A), F === 0)))
4318
+ return e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4319
+ if (d = ee, h = s, h > S && (h = S), h > F && (h = F), e.win.set(m.read_buf(C, h), A), C += h, S -= h, A += h, F -= h, (s -= h) !== 0)
4320
4320
  break;
4321
4321
  r = w !== 0 ? qt : ft;
4322
4322
  break;
4323
- case pr:
4324
- for (; A < 14; ) {
4323
+ case dr:
4324
+ for (; R < 14; ) {
4325
4325
  if (S !== 0)
4326
- d = Q;
4326
+ d = ee;
4327
4327
  else
4328
- return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4329
- S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4328
+ return e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4329
+ S--, b |= (m.read_byte(C++) & 255) << R, R += 8;
4330
4330
  }
4331
- if (a = h = v & 16383, (h & 31) > 29 || (h >> 5 & 31) > 29)
4332
- return r = nt, m.msg = "too many length or distance symbols", d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4331
+ if (a = h = b & 16383, (h & 31) > 29 || (h >> 5 & 31) > 29)
4332
+ return r = nt, m.msg = "too many length or distance symbols", d = oe, e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4333
4333
  if (h = 258 + (h & 31) + (h >> 5 & 31), !l || l.length < h)
4334
4334
  l = [];
4335
4335
  else
4336
4336
  for (y = 0; y < h; y++)
4337
4337
  l[y] = 0;
4338
- v >>>= 14, A -= 14, c = 0, r = mr;
4339
- case mr:
4338
+ b >>>= 14, R -= 14, c = 0, r = pr;
4339
+ case pr:
4340
4340
  for (; c < 4 + (a >>> 10); ) {
4341
- for (; A < 3; ) {
4341
+ for (; R < 3; ) {
4342
4342
  if (S !== 0)
4343
- d = Q;
4343
+ d = ee;
4344
4344
  else
4345
- return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4346
- S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4345
+ return e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4346
+ S--, b |= (m.read_byte(C++) & 255) << R, R += 8;
4347
4347
  }
4348
- l[ur[c++]] = v & 7, v >>>= 3, A -= 3;
4348
+ l[fr[c++]] = b & 7, b >>>= 3, R -= 3;
4349
4349
  }
4350
4350
  for (; c < 19; )
4351
- l[ur[c++]] = 0;
4352
- if (f[0] = 7, h = C.inflate_trees_bits(l, f, _, g, m), h != Q)
4353
- return d = h, d == oe && (l = null, r = nt), e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4354
- c = 0, r = hr;
4355
- case hr:
4351
+ l[fr[c++]] = 0;
4352
+ if (f[0] = 7, h = O.inflate_trees_bits(l, f, _, g, m), h != ee)
4353
+ return d = h, d == oe && (l = null, r = nt), e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4354
+ c = 0, r = mr;
4355
+ case mr:
4356
4356
  for (; h = a, !(c >= 258 + (h & 31) + (h >> 5 & 31)); ) {
4357
- let G, K;
4358
- for (h = f[0]; A < h; ) {
4357
+ let K, G;
4358
+ for (h = f[0]; R < h; ) {
4359
4359
  if (S !== 0)
4360
- d = Q;
4360
+ d = ee;
4361
4361
  else
4362
- return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4363
- S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4362
+ return e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4363
+ S--, b |= (m.read_byte(C++) & 255) << R, R += 8;
4364
4364
  }
4365
- if (h = g[(_[0] + (v & Re[h])) * 3 + 1], K = g[(_[0] + (v & Re[h])) * 3 + 2], K < 16)
4366
- v >>>= h, A -= h, l[c++] = K;
4365
+ if (h = g[(_[0] + (b & Re[h])) * 3 + 1], G = g[(_[0] + (b & Re[h])) * 3 + 2], G < 16)
4366
+ b >>>= h, R -= h, l[c++] = G;
4367
4367
  else {
4368
- for (y = K == 18 ? 7 : K - 14, G = K == 18 ? 11 : 3; A < h + y; ) {
4368
+ for (y = G == 18 ? 7 : G - 14, K = G == 18 ? 11 : 3; R < h + y; ) {
4369
4369
  if (S !== 0)
4370
- d = Q;
4370
+ d = ee;
4371
4371
  else
4372
- return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4373
- S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4372
+ return e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4373
+ S--, b |= (m.read_byte(C++) & 255) << R, R += 8;
4374
4374
  }
4375
- if (v >>>= h, A -= h, G += v & Re[y], v >>>= y, A -= y, y = c, h = a, y + G > 258 + (h & 31) + (h >> 5 & 31) || K == 16 && y < 1)
4376
- return l = null, r = nt, m.msg = "invalid bit length repeat", d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4377
- K = K == 16 ? l[y - 1] : 0;
4375
+ if (b >>>= h, R -= h, K += b & Re[y], b >>>= y, R -= y, y = c, h = a, y + K > 258 + (h & 31) + (h >> 5 & 31) || G == 16 && y < 1)
4376
+ return l = null, r = nt, m.msg = "invalid bit length repeat", d = oe, e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4377
+ G = G == 16 ? l[y - 1] : 0;
4378
4378
  do
4379
- l[y++] = K;
4380
- while (--G !== 0);
4379
+ l[y++] = G;
4380
+ while (--K !== 0);
4381
4381
  c = y;
4382
4382
  }
4383
4383
  }
4384
- if (_[0] = -1, O = [], $ = [], H = [], j = [], O[0] = 9, $[0] = 6, h = a, h = C.inflate_trees_dynamic(257 + (h & 31), 1 + (h >> 5 & 31), l, O, $, H, j, g, m), h != Q)
4385
- return h == oe && (l = null, r = nt), d = h, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4386
- x.init(O[0], $[0], g, H[0], g, j[0]), r = Nt;
4384
+ if (_[0] = -1, L = [], Y = [], H = [], j = [], L[0] = 9, Y[0] = 6, h = a, h = O.inflate_trees_dynamic(257 + (h & 31), 1 + (h >> 5 & 31), l, L, Y, H, j, g, m), h != ee)
4385
+ return h == oe && (l = null, r = nt), d = h, e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4386
+ x.init(L[0], Y[0], g, H[0], g, j[0]), r = Nt;
4387
4387
  case Nt:
4388
- if (e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, (d = x.proc(e, m, d)) != He)
4388
+ if (e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, (d = x.proc(e, m, d)) != He)
4389
4389
  return e.inflate_flush(m, d);
4390
- if (d = Q, x.free(m), P = m.next_in_index, S = m.avail_in, v = e.bitb, A = e.bitk, R = e.write, F = /* (int) */
4391
- R < e.read ? e.read - R - 1 : e.end - R, w === 0) {
4390
+ if (d = ee, x.free(m), C = m.next_in_index, S = m.avail_in, b = e.bitb, R = e.bitk, A = e.write, F = /* (int) */
4391
+ A < e.read ? e.read - A - 1 : e.end - A, w === 0) {
4392
4392
  r = ft;
4393
4393
  break;
4394
4394
  }
4395
4395
  r = qt;
4396
4396
  case qt:
4397
- if (e.write = R, d = e.inflate_flush(m, d), R = e.write, F = /* (int) */
4398
- R < e.read ? e.read - R - 1 : e.end - R, e.read != e.write)
4399
- return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4400
- r = xr;
4401
- case xr:
4402
- return d = He, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4397
+ if (e.write = A, d = e.inflate_flush(m, d), A = e.write, F = /* (int) */
4398
+ A < e.read ? e.read - A - 1 : e.end - A, e.read != e.write)
4399
+ return e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4400
+ r = hr;
4401
+ case hr:
4402
+ return d = He, e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4403
4403
  case nt:
4404
- return d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4404
+ return d = oe, e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4405
4405
  default:
4406
- return d = Ae, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4406
+ return d = Ae, e.bitb = b, e.bitk = R, m.avail_in = S, m.total_in += C - m.next_in_index, m.next_in_index = C, e.write = A, e.inflate_flush(m, d);
4407
4407
  }
4408
4408
  }
4409
4409
  }, e.free = function(m) {
@@ -4414,28 +4414,28 @@ function bo(n, t) {
4414
4414
  return r == dn ? 1 : 0;
4415
4415
  };
4416
4416
  }
4417
- const vo = 32, ko = 8, Eo = 0, wr = 1, gr = 2, _r = 3, yr = 4, br = 5, pn = 6, vt = 7, vr = 12, Ve = 13, So = [0, 0, 255, 255];
4418
- function Ao() {
4417
+ const Eo = 32, So = 8, Ao = 0, xr = 1, wr = 2, gr = 3, _r = 4, yr = 5, pn = 6, vt = 7, br = 12, Ve = 13, To = [0, 0, 255, 255];
4418
+ function Ro() {
4419
4419
  const n = this;
4420
4420
  n.mode = 0, n.method = 0, n.was = [0], n.need = 0, n.marker = 0, n.wbits = 0;
4421
4421
  function t(e) {
4422
- return !e || !e.istate ? Ae : (e.total_in = e.total_out = 0, e.msg = null, e.istate.mode = vt, e.istate.blocks.reset(e, null), Q);
4422
+ return !e || !e.istate ? Ae : (e.total_in = e.total_out = 0, e.msg = null, e.istate.mode = vt, e.istate.blocks.reset(e, null), ee);
4423
4423
  }
4424
4424
  n.inflateEnd = function(e) {
4425
- return n.blocks && n.blocks.free(e), n.blocks = null, Q;
4425
+ return n.blocks && n.blocks.free(e), n.blocks = null, ee;
4426
4426
  }, n.inflateInit = function(e, r) {
4427
- return e.msg = null, n.blocks = null, r < 8 || r > 15 ? (n.inflateEnd(e), Ae) : (n.wbits = r, e.istate.blocks = new bo(e, 1 << r), t(e), Q);
4427
+ return e.msg = null, n.blocks = null, r < 8 || r > 15 ? (n.inflateEnd(e), Ae) : (n.wbits = r, e.istate.blocks = new ko(e, 1 << r), t(e), ee);
4428
4428
  }, n.inflate = function(e, r) {
4429
4429
  let s, a;
4430
4430
  if (!e || !e.istate || !e.next_in)
4431
4431
  return Ae;
4432
4432
  const c = e.istate;
4433
- for (r = r == fo ? $e : Q, s = $e; ; )
4433
+ for (r = r == po ? $e : ee, s = $e; ; )
4434
4434
  switch (c.mode) {
4435
- case Eo:
4435
+ case Ao:
4436
4436
  if (e.avail_in === 0)
4437
4437
  return s;
4438
- if (s = r, e.avail_in--, e.total_in++, ((c.method = e.read_byte(e.next_in_index++)) & 15) != ko) {
4438
+ if (s = r, e.avail_in--, e.total_in++, ((c.method = e.read_byte(e.next_in_index++)) & 15) != So) {
4439
4439
  c.mode = Ve, e.msg = "unknown compression method", c.marker = 5;
4440
4440
  break;
4441
4441
  }
@@ -4443,33 +4443,33 @@ function Ao() {
4443
4443
  c.mode = Ve, e.msg = "invalid win size", c.marker = 5;
4444
4444
  break;
4445
4445
  }
4446
- c.mode = wr;
4447
- case wr:
4446
+ c.mode = xr;
4447
+ case xr:
4448
4448
  if (e.avail_in === 0)
4449
4449
  return s;
4450
4450
  if (s = r, e.avail_in--, e.total_in++, a = e.read_byte(e.next_in_index++) & 255, ((c.method << 8) + a) % 31 !== 0) {
4451
4451
  c.mode = Ve, e.msg = "incorrect header check", c.marker = 5;
4452
4452
  break;
4453
4453
  }
4454
- if (!(a & vo)) {
4454
+ if (!(a & Eo)) {
4455
4455
  c.mode = vt;
4456
4456
  break;
4457
4457
  }
4458
- c.mode = gr;
4458
+ c.mode = wr;
4459
+ case wr:
4460
+ if (e.avail_in === 0)
4461
+ return s;
4462
+ s = r, e.avail_in--, e.total_in++, c.need = (e.read_byte(e.next_in_index++) & 255) << 24 & 4278190080, c.mode = gr;
4459
4463
  case gr:
4460
4464
  if (e.avail_in === 0)
4461
4465
  return s;
4462
- s = r, e.avail_in--, e.total_in++, c.need = (e.read_byte(e.next_in_index++) & 255) << 24 & 4278190080, c.mode = _r;
4466
+ s = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) << 16 & 16711680, c.mode = _r;
4463
4467
  case _r:
4464
4468
  if (e.avail_in === 0)
4465
4469
  return s;
4466
- s = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) << 16 & 16711680, c.mode = yr;
4470
+ s = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) << 8 & 65280, c.mode = yr;
4467
4471
  case yr:
4468
- if (e.avail_in === 0)
4469
- return s;
4470
- s = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) << 8 & 65280, c.mode = br;
4471
- case br:
4472
- return e.avail_in === 0 ? s : (s = r, e.avail_in--, e.total_in++, c.need += e.read_byte(e.next_in_index++) & 255, c.mode = pn, co);
4472
+ return e.avail_in === 0 ? s : (s = r, e.avail_in--, e.total_in++, c.need += e.read_byte(e.next_in_index++) & 255, c.mode = pn, fo);
4473
4473
  case pn:
4474
4474
  return c.mode = Ve, e.msg = "need dictionary", c.marker = 0, Ae;
4475
4475
  case vt:
@@ -4477,10 +4477,10 @@ function Ao() {
4477
4477
  c.mode = Ve, c.marker = 0;
4478
4478
  break;
4479
4479
  }
4480
- if (s == Q && (s = r), s != He)
4480
+ if (s == ee && (s = r), s != He)
4481
4481
  return s;
4482
- s = r, c.blocks.reset(e, c.was), c.mode = vr;
4483
- case vr:
4482
+ s = r, c.blocks.reset(e, c.was), c.mode = br;
4483
+ case br:
4484
4484
  return e.avail_in = 0, He;
4485
4485
  case Ve:
4486
4486
  return oe;
@@ -4492,7 +4492,7 @@ function Ao() {
4492
4492
  if (!e || !e.istate || e.istate.mode != pn)
4493
4493
  return Ae;
4494
4494
  const l = e.istate;
4495
- return c >= 1 << l.wbits && (c = (1 << l.wbits) - 1, a = s - c), l.blocks.set_dictionary(r, a, c), l.mode = vt, Q;
4495
+ return c >= 1 << l.wbits && (c = (1 << l.wbits) - 1, a = s - c), l.blocks.set_dictionary(r, a, c), l.mode = vt, ee;
4496
4496
  }, n.inflateSync = function(e) {
4497
4497
  let r, s, a, c, l;
4498
4498
  if (!e || !e.istate)
@@ -4501,18 +4501,18 @@ function Ao() {
4501
4501
  if (f.mode != Ve && (f.mode = Ve, f.marker = 0), (r = e.avail_in) === 0)
4502
4502
  return $e;
4503
4503
  for (s = e.next_in_index, a = f.marker; r !== 0 && a < 4; )
4504
- e.read_byte(s) == So[a] ? a++ : e.read_byte(s) !== 0 ? a = 0 : a = 4 - a, s++, r--;
4505
- return e.total_in += s - e.next_in_index, e.next_in_index = s, e.avail_in = r, f.marker = a, a != 4 ? oe : (c = e.total_in, l = e.total_out, t(e), e.total_in = c, e.total_out = l, f.mode = vt, Q);
4504
+ e.read_byte(s) == To[a] ? a++ : e.read_byte(s) !== 0 ? a = 0 : a = 4 - a, s++, r--;
4505
+ return e.total_in += s - e.next_in_index, e.next_in_index = s, e.avail_in = r, f.marker = a, a != 4 ? oe : (c = e.total_in, l = e.total_out, t(e), e.total_in = c, e.total_out = l, f.mode = vt, ee);
4506
4506
  }, n.inflateSyncPoint = function(e) {
4507
4507
  return !e || !e.istate || !e.istate.blocks ? Ae : e.istate.blocks.sync_point();
4508
4508
  };
4509
4509
  }
4510
- function mi() {
4510
+ function pi() {
4511
4511
  }
4512
- mi.prototype = {
4512
+ pi.prototype = {
4513
4513
  inflateInit(n) {
4514
4514
  const t = this;
4515
- return t.istate = new Ao(), n || (n = ao), t.istate.inflateInit(t, n);
4515
+ return t.istate = new Ro(), n || (n = lo), t.istate.inflateInit(t, n);
4516
4516
  },
4517
4517
  inflate(n) {
4518
4518
  const t = this;
@@ -4540,25 +4540,25 @@ mi.prototype = {
4540
4540
  return this.next_in.subarray(n, n + t);
4541
4541
  }
4542
4542
  };
4543
- function To(n) {
4544
- const t = this, e = new mi(), r = n && n.chunkSize ? Math.floor(n.chunkSize * 2) : 128 * 1024, s = lo, a = new Uint8Array(r);
4543
+ function Fo(n) {
4544
+ const t = this, e = new pi(), r = n && n.chunkSize ? Math.floor(n.chunkSize * 2) : 128 * 1024, s = uo, a = new Uint8Array(r);
4545
4545
  let c = !1;
4546
4546
  e.inflateInit(), e.next_out = a, t.append = function(l, f) {
4547
4547
  const _ = [];
4548
- let x, w, g = 0, T = 0, C = 0;
4548
+ let x, w, g = 0, T = 0, O = 0;
4549
4549
  if (l.length !== 0) {
4550
4550
  e.next_in_index = 0, e.next_in = l, e.avail_in = l.length;
4551
4551
  do {
4552
4552
  if (e.next_out_index = 0, e.avail_out = r, e.avail_in === 0 && !c && (e.next_in_index = 0, c = !0), x = e.inflate(s), c && x === $e) {
4553
4553
  if (e.avail_in !== 0)
4554
4554
  throw new Error("inflating: bad input");
4555
- } else if (x !== Q && x !== He)
4555
+ } else if (x !== ee && x !== He)
4556
4556
  throw new Error("inflating: " + e.msg);
4557
4557
  if ((c || x === He) && e.avail_in === l.length)
4558
4558
  throw new Error("inflating: bad input");
4559
- e.next_out_index && (e.next_out_index === r ? _.push(new Uint8Array(a)) : _.push(a.subarray(0, e.next_out_index))), C += e.next_out_index, f && e.next_in_index > 0 && e.next_in_index != g && (f(e.next_in_index), g = e.next_in_index);
4559
+ e.next_out_index && (e.next_out_index === r ? _.push(new Uint8Array(a)) : _.push(a.subarray(0, e.next_out_index))), O += e.next_out_index, f && e.next_in_index > 0 && e.next_in_index != g && (f(e.next_in_index), g = e.next_in_index);
4560
4560
  } while (e.avail_in > 0 || e.avail_out === 0);
4561
- return _.length > 1 ? (w = new Uint8Array(C), _.forEach(function(m) {
4561
+ return _.length > 1 ? (w = new Uint8Array(O), _.forEach(function(m) {
4562
4562
  w.set(m, T), T += m.length;
4563
4563
  })) : w = _[0] ? new Uint8Array(_[0]) : new Uint8Array(), w;
4564
4564
  }
@@ -4566,8 +4566,8 @@ function To(n) {
4566
4566
  e.inflateEnd();
4567
4567
  };
4568
4568
  }
4569
- const st = 4294967295, Xe = 65535, Ro = 8, Fo = 0, Co = 99, Io = 67324752, Po = 134695760, kr = 33639248, Do = 101010256, Er = 101075792, Lo = 117853008, ut = 22, mn = 20, hn = 56, Uo = 1, Oo = 39169, Bo = 10, Wo = 1, Mo = 21589, No = 28789, qo = 25461, jo = 6534, Sr = 1, Ho = 6, Ar = 8, Tr = 2048, Rr = 16, Fr = 16384, Cr = 73, Ir = "/", Ee = void 0, Qe = "undefined", Ft = "function";
4570
- class Pr {
4569
+ const st = 4294967295, Xe = 65535, Co = 8, Io = 0, Po = 99, Do = 67324752, Lo = 134695760, vr = 33639248, Uo = 101010256, kr = 101075792, Oo = 117853008, ut = 22, mn = 20, hn = 56, Wo = 1, Bo = 39169, Mo = 10, No = 1, qo = 21589, jo = 28789, Ho = 25461, $o = 6534, Er = 1, Yo = 6, Sr = 8, Ar = 2048, Tr = 16, Rr = 16384, Fr = 73, Cr = "/", Ee = void 0, Qe = "undefined", Ft = "function";
4570
+ class Ir {
4571
4571
  constructor(t) {
4572
4572
  return class extends TransformStream {
4573
4573
  constructor(e, r) {
@@ -4585,29 +4585,29 @@ class Pr {
4585
4585
  };
4586
4586
  }
4587
4587
  }
4588
- const $o = 64;
4589
- let hi = 2;
4588
+ const Zo = 64;
4589
+ let mi = 2;
4590
4590
  try {
4591
- typeof navigator != Qe && navigator.hardwareConcurrency && (hi = navigator.hardwareConcurrency);
4591
+ typeof navigator != Qe && navigator.hardwareConcurrency && (mi = navigator.hardwareConcurrency);
4592
4592
  } catch {
4593
4593
  }
4594
- const Yo = {
4594
+ const Vo = {
4595
4595
  chunkSize: 512 * 1024,
4596
- maxWorkers: hi,
4596
+ maxWorkers: mi,
4597
4597
  terminateWorkerTimeout: 5e3,
4598
4598
  useWebWorkers: !0,
4599
4599
  useCompressionStream: !0,
4600
4600
  workerScripts: Ee,
4601
4601
  CompressionStreamNative: typeof CompressionStream != Qe && CompressionStream,
4602
4602
  DecompressionStreamNative: typeof DecompressionStream != Qe && DecompressionStream
4603
- }, ze = Object.assign({}, Yo);
4604
- function Zo() {
4603
+ }, ze = Object.assign({}, Vo);
4604
+ function Go() {
4605
4605
  return ze;
4606
4606
  }
4607
- function Vo(n) {
4608
- return Math.max(n.chunkSize, $o);
4607
+ function Ko(n) {
4608
+ return Math.max(n.chunkSize, Zo);
4609
4609
  }
4610
- function Wn(n) {
4610
+ function Bn(n) {
4611
4611
  const {
4612
4612
  baseURL: t,
4613
4613
  chunkSize: e,
@@ -4621,7 +4621,7 @@ function Wn(n) {
4621
4621
  DecompressionStream: x,
4622
4622
  workerScripts: w
4623
4623
  } = n;
4624
- if (Ge("baseURL", t), Ge("chunkSize", e), Ge("maxWorkers", r), Ge("terminateWorkerTimeout", s), Ge("useCompressionStream", a), Ge("useWebWorkers", c), l && (ze.CompressionStream = new Pr(l)), f && (ze.DecompressionStream = new Pr(f)), Ge("CompressionStream", _), Ge("DecompressionStream", x), w !== Ee) {
4624
+ if (Ge("baseURL", t), Ge("chunkSize", e), Ge("maxWorkers", r), Ge("terminateWorkerTimeout", s), Ge("useCompressionStream", a), Ge("useWebWorkers", c), l && (ze.CompressionStream = new Ir(l)), f && (ze.DecompressionStream = new Ir(f)), Ge("CompressionStream", _), Ge("DecompressionStream", x), w !== Ee) {
4625
4625
  const { deflate: g, inflate: T } = w;
4626
4626
  if ((g || T) && (ze.workerScripts || (ze.workerScripts = {})), g) {
4627
4627
  if (!Array.isArray(g))
@@ -6232,12 +6232,12 @@ const xn = {
6232
6232
  }
6233
6233
  return n;
6234
6234
  })();
6235
- const xi = [];
6235
+ const hi = [];
6236
6236
  for (let n = 0; n < 256; n++) {
6237
6237
  let t = n;
6238
6238
  for (let e = 0; e < 8; e++)
6239
6239
  t & 1 ? t = t >>> 1 ^ 3988292384 : t = t >>> 1;
6240
- xi[n] = t;
6240
+ hi[n] = t;
6241
6241
  }
6242
6242
  class Xt {
6243
6243
  constructor(t) {
@@ -6246,14 +6246,14 @@ class Xt {
6246
6246
  append(t) {
6247
6247
  let e = this.crc | 0;
6248
6248
  for (let r = 0, s = t.length | 0; r < s; r++)
6249
- e = e >>> 8 ^ xi[(e ^ t[r]) & 255];
6249
+ e = e >>> 8 ^ hi[(e ^ t[r]) & 255];
6250
6250
  this.crc = e;
6251
6251
  }
6252
6252
  get() {
6253
6253
  return ~this.crc;
6254
6254
  }
6255
6255
  }
6256
- class wi extends TransformStream {
6256
+ class xi extends TransformStream {
6257
6257
  constructor() {
6258
6258
  let t;
6259
6259
  const e = new Xt();
@@ -6268,7 +6268,7 @@ class wi extends TransformStream {
6268
6268
  }), t = this;
6269
6269
  }
6270
6270
  }
6271
- function Go(n) {
6271
+ function Xo(n) {
6272
6272
  if (typeof TextEncoder == Qe) {
6273
6273
  n = unescape(encodeURIComponent(n));
6274
6274
  const t = new Uint8Array(n.length);
@@ -6370,8 +6370,8 @@ const ke = {
6370
6370
  return e & 3 && t.push(ke.partial(8 * (e & 3), r)), t;
6371
6371
  }
6372
6372
  }
6373
- }, gi = {};
6374
- gi.sha1 = class {
6373
+ }, wi = {};
6374
+ wi.sha1 = class {
6375
6375
  constructor(n) {
6376
6376
  const t = this;
6377
6377
  t.blockSize = 512, t._init = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], t._key = [1518500249, 1859775393, 2400959708, 3395469782], n ? (t._h = n._h.slice(0), t._buffer = n._buffer.slice(0), t._length = n._length) : t.reset();
@@ -6455,8 +6455,8 @@ gi.sha1 = class {
6455
6455
  e[0] = e[0] + s | 0, e[1] = e[1] + a | 0, e[2] = e[2] + c | 0, e[3] = e[3] + l | 0, e[4] = e[4] + f | 0;
6456
6456
  }
6457
6457
  };
6458
- const _i = {};
6459
- _i.aes = class {
6458
+ const gi = {};
6459
+ gi.aes = class {
6460
6460
  constructor(n) {
6461
6461
  const t = this;
6462
6462
  t._tables = [[[], [], [], [], []], [[], [], [], [], []]], t._tables[0][0][0] || t._precompute();
@@ -6509,8 +6509,8 @@ _i.aes = class {
6509
6509
  let w = c ^ c << 1 ^ c << 2 ^ c << 3 ^ c << 4;
6510
6510
  w = w >> 8 ^ w & 255 ^ 99, e[x] = w, r[w] = x, _ = s[f = s[l = s[x]]];
6511
6511
  let g = _ * 16843009 ^ f * 65537 ^ l * 257 ^ x * 16843008, T = s[w] * 257 ^ w * 16843008;
6512
- for (let C = 0; C < 4; C++)
6513
- n[C][x] = T = T << 24 ^ T >>> 8, t[C][w] = g = g << 24 ^ g >>> 8;
6512
+ for (let O = 0; O < 4; O++)
6513
+ n[O][x] = T = T << 24 ^ T >>> 8, t[O][w] = g = g << 24 ^ g >>> 8;
6514
6514
  }
6515
6515
  for (let x = 0; x < 5; x++)
6516
6516
  n[x] = n[x].slice(0), t[x] = t[x].slice(0);
@@ -6526,15 +6526,15 @@ _i.aes = class {
6526
6526
  if (n.length !== 4)
6527
6527
  throw new Error("invalid aes block size");
6528
6528
  const e = this._key[t], r = e.length / 4 - 2, s = [0, 0, 0, 0], a = this._tables[t], c = a[0], l = a[1], f = a[2], _ = a[3], x = a[4];
6529
- let w = n[0] ^ e[0], g = n[t ? 3 : 1] ^ e[1], T = n[2] ^ e[2], C = n[t ? 1 : 3] ^ e[3], m = 4, d, h, v;
6530
- for (let A = 0; A < r; A++)
6531
- d = c[w >>> 24] ^ l[g >> 16 & 255] ^ f[T >> 8 & 255] ^ _[C & 255] ^ e[m], h = c[g >>> 24] ^ l[T >> 16 & 255] ^ f[C >> 8 & 255] ^ _[w & 255] ^ e[m + 1], v = c[T >>> 24] ^ l[C >> 16 & 255] ^ f[w >> 8 & 255] ^ _[g & 255] ^ e[m + 2], C = c[C >>> 24] ^ l[w >> 16 & 255] ^ f[g >> 8 & 255] ^ _[T & 255] ^ e[m + 3], m += 4, w = d, g = h, T = v;
6532
- for (let A = 0; A < 4; A++)
6533
- s[t ? 3 & -A : A] = x[w >>> 24] << 24 ^ x[g >> 16 & 255] << 16 ^ x[T >> 8 & 255] << 8 ^ x[C & 255] ^ e[m++], d = w, w = g, g = T, T = C, C = d;
6529
+ let w = n[0] ^ e[0], g = n[t ? 3 : 1] ^ e[1], T = n[2] ^ e[2], O = n[t ? 1 : 3] ^ e[3], m = 4, d, h, b;
6530
+ for (let R = 0; R < r; R++)
6531
+ d = c[w >>> 24] ^ l[g >> 16 & 255] ^ f[T >> 8 & 255] ^ _[O & 255] ^ e[m], h = c[g >>> 24] ^ l[T >> 16 & 255] ^ f[O >> 8 & 255] ^ _[w & 255] ^ e[m + 1], b = c[T >>> 24] ^ l[O >> 16 & 255] ^ f[w >> 8 & 255] ^ _[g & 255] ^ e[m + 2], O = c[O >>> 24] ^ l[w >> 16 & 255] ^ f[g >> 8 & 255] ^ _[T & 255] ^ e[m + 3], m += 4, w = d, g = h, T = b;
6532
+ for (let R = 0; R < 4; R++)
6533
+ s[t ? 3 & -R : R] = x[w >>> 24] << 24 ^ x[g >> 16 & 255] << 16 ^ x[T >> 8 & 255] << 8 ^ x[O & 255] ^ e[m++], d = w, w = g, g = T, T = O, O = d;
6534
6534
  return s;
6535
6535
  }
6536
6536
  };
6537
- const Ko = {
6537
+ const zo = {
6538
6538
  /**
6539
6539
  * Generate random words with pure js, cryptographically not as strong & safe as native implementation.
6540
6540
  * @param {TypedArray} typedArray The array to fill.
@@ -6554,8 +6554,8 @@ const Ko = {
6554
6554
  }
6555
6555
  return n;
6556
6556
  }
6557
- }, yi = {};
6558
- yi.ctrGladman = class {
6557
+ }, _i = {};
6558
+ _i.ctrGladman = class {
6559
6559
  constructor(n, t) {
6560
6560
  this._prf = n, this._initIv = t, this._iv = t;
6561
6561
  }
@@ -6616,7 +6616,7 @@ const ot = {
6616
6616
  };
6617
6617
  ot.hmacSha1 = class {
6618
6618
  constructor(n) {
6619
- const t = this, e = t._hash = gi.sha1, r = [[], []];
6619
+ const t = this, e = t._hash = wi.sha1, r = [[], []];
6620
6620
  t._baseHash = [new e(), new e()];
6621
6621
  const s = t._baseHash[0].blockSize / 32;
6622
6622
  n.length > s && (n = new e().update(n).finalize());
@@ -6642,19 +6642,19 @@ ot.hmacSha1 = class {
6642
6642
  return this.update(n), this.digest(n);
6643
6643
  }
6644
6644
  };
6645
- const Xo = typeof crypto != Qe && typeof crypto.getRandomValues == Ft, bi = "Invalid password", vi = "Invalid signature", Mn = "zipjs-abort-check-password";
6646
- function ki(n) {
6647
- return Xo ? crypto.getRandomValues(n) : Ko.getRandomValues(n);
6645
+ const Jo = typeof crypto != Qe && typeof crypto.getRandomValues == Ft, yi = "Invalid password", bi = "Invalid signature", Mn = "zipjs-abort-check-password";
6646
+ function vi(n) {
6647
+ return Jo ? crypto.getRandomValues(n) : zo.getRandomValues(n);
6648
6648
  }
6649
- const pt = 16, zo = "raw", Ei = { name: "PBKDF2" }, Jo = { name: "HMAC" }, Qo = "SHA-1", ea = Object.assign({ hash: Jo }, Ei), Tn = Object.assign({ iterations: 1e3, hash: { name: Qo } }, Ei), ta = ["deriveBits"], At = [8, 12, 16], kt = [16, 24, 32], Ke = 10, na = [0, 0, 0, 0], rn = typeof crypto != Qe, Ct = rn && crypto.subtle, Si = rn && typeof Ct != Qe, Me = zt.bytes, ra = _i.aes, ia = yi.ctrGladman, sa = ot.hmacSha1;
6650
- let Dr = rn && Si && typeof Ct.importKey == Ft, Lr = rn && Si && typeof Ct.deriveBits == Ft;
6651
- class oa extends TransformStream {
6649
+ const pt = 16, Qo = "raw", ki = { name: "PBKDF2" }, ea = { name: "HMAC" }, ta = "SHA-1", na = Object.assign({ hash: ea }, ki), Tn = Object.assign({ iterations: 1e3, hash: { name: ta } }, ki), ra = ["deriveBits"], At = [8, 12, 16], kt = [16, 24, 32], Ke = 10, ia = [0, 0, 0, 0], rn = typeof crypto != Qe, Ct = rn && crypto.subtle, Ei = rn && typeof Ct != Qe, Me = zt.bytes, sa = gi.aes, oa = _i.ctrGladman, aa = ot.hmacSha1;
6650
+ let Pr = rn && Ei && typeof Ct.importKey == Ft, Dr = rn && Ei && typeof Ct.deriveBits == Ft;
6651
+ class ca extends TransformStream {
6652
6652
  constructor({ password: t, rawPassword: e, signed: r, encryptionStrength: s, checkPasswordOnly: a }) {
6653
6653
  super({
6654
6654
  start() {
6655
6655
  Object.assign(this, {
6656
6656
  ready: new Promise((c) => this.resolveReady = c),
6657
- password: Ri(t, e),
6657
+ password: Ti(t, e),
6658
6658
  signed: r,
6659
6659
  strength: s - 1,
6660
6660
  pending: new Uint8Array()
@@ -6667,9 +6667,9 @@ class oa extends TransformStream {
6667
6667
  resolveReady: w,
6668
6668
  ready: g
6669
6669
  } = f;
6670
- _ ? (await ca(f, x, _, Ie(c, 0, At[x] + 2)), c = Ie(c, At[x] + 2), a ? l.error(new Error(Mn)) : w()) : await g;
6670
+ _ ? (await fa(f, x, _, Ie(c, 0, At[x] + 2)), c = Ie(c, At[x] + 2), a ? l.error(new Error(Mn)) : w()) : await g;
6671
6671
  const T = new Uint8Array(c.length - Ke - (c.length - Ke) % pt);
6672
- l.enqueue(Ai(f, c, T, 0, Ke, !0));
6672
+ l.enqueue(Si(f, c, T, 0, Ke, !0));
6673
6673
  },
6674
6674
  async flush(c) {
6675
6675
  const {
@@ -6682,33 +6682,33 @@ class oa extends TransformStream {
6682
6682
  if (_ && f) {
6683
6683
  await w;
6684
6684
  const g = Ie(x, 0, x.length - Ke), T = Ie(x, x.length - Ke);
6685
- let C = new Uint8Array();
6685
+ let O = new Uint8Array();
6686
6686
  if (g.length) {
6687
6687
  const m = Rt(Me, g);
6688
6688
  _.update(m);
6689
6689
  const d = f.update(m);
6690
- C = Tt(Me, d);
6690
+ O = Tt(Me, d);
6691
6691
  }
6692
6692
  if (l) {
6693
6693
  const m = Ie(Tt(Me, _.digest()), 0, Ke);
6694
6694
  for (let d = 0; d < Ke; d++)
6695
6695
  if (m[d] != T[d])
6696
- throw new Error(vi);
6696
+ throw new Error(bi);
6697
6697
  }
6698
- c.enqueue(C);
6698
+ c.enqueue(O);
6699
6699
  }
6700
6700
  }
6701
6701
  });
6702
6702
  }
6703
6703
  }
6704
- class aa extends TransformStream {
6704
+ class la extends TransformStream {
6705
6705
  constructor({ password: t, rawPassword: e, encryptionStrength: r }) {
6706
6706
  let s;
6707
6707
  super({
6708
6708
  start() {
6709
6709
  Object.assign(this, {
6710
6710
  ready: new Promise((a) => this.resolveReady = a),
6711
- password: Ri(t, e),
6711
+ password: Ti(t, e),
6712
6712
  strength: r - 1,
6713
6713
  pending: new Uint8Array()
6714
6714
  });
@@ -6721,9 +6721,9 @@ class aa extends TransformStream {
6721
6721
  ready: w
6722
6722
  } = l;
6723
6723
  let g = new Uint8Array();
6724
- f ? (g = await la(l, _, f), x()) : await w;
6724
+ f ? (g = await ua(l, _, f), x()) : await w;
6725
6725
  const T = new Uint8Array(g.length + a.length - a.length % pt);
6726
- T.set(g, 0), c.enqueue(Ai(l, a, T, g.length, 0));
6726
+ T.set(g, 0), c.enqueue(Si(l, a, T, g.length, 0));
6727
6727
  },
6728
6728
  async flush(a) {
6729
6729
  const {
@@ -6745,13 +6745,13 @@ class aa extends TransformStream {
6745
6745
  }), s = this;
6746
6746
  }
6747
6747
  }
6748
- function Ai(n, t, e, r, s, a) {
6748
+ function Si(n, t, e, r, s, a) {
6749
6749
  const {
6750
6750
  ctr: c,
6751
6751
  hmac: l,
6752
6752
  pending: f
6753
6753
  } = n, _ = t.length - s;
6754
- f.length && (t = Nn(f, t), e = da(e, _ - _ % pt));
6754
+ f.length && (t = Nn(f, t), e = ma(e, _ - _ % pt));
6755
6755
  let x;
6756
6756
  for (x = 0; x <= _ - pt; x += pt) {
6757
6757
  const w = Rt(Me, Ie(t, x, x + pt));
@@ -6761,56 +6761,56 @@ function Ai(n, t, e, r, s, a) {
6761
6761
  }
6762
6762
  return n.pending = Ie(t, x), e;
6763
6763
  }
6764
- async function ca(n, t, e, r) {
6765
- const s = await Ti(n, t, e, Ie(r, 0, At[t])), a = Ie(r, At[t]);
6764
+ async function fa(n, t, e, r) {
6765
+ const s = await Ai(n, t, e, Ie(r, 0, At[t])), a = Ie(r, At[t]);
6766
6766
  if (s[0] != a[0] || s[1] != a[1])
6767
- throw new Error(bi);
6767
+ throw new Error(yi);
6768
6768
  }
6769
- async function la(n, t, e) {
6770
- const r = ki(new Uint8Array(At[t])), s = await Ti(n, t, e, r);
6769
+ async function ua(n, t, e) {
6770
+ const r = vi(new Uint8Array(At[t])), s = await Ai(n, t, e, r);
6771
6771
  return Nn(r, s);
6772
6772
  }
6773
- async function Ti(n, t, e, r) {
6773
+ async function Ai(n, t, e, r) {
6774
6774
  n.password = null;
6775
- const s = await fa(zo, e, ea, !1, ta), a = await ua(Object.assign({ salt: r }, Tn), s, 8 * (kt[t] * 2 + 2)), c = new Uint8Array(a), l = Rt(Me, Ie(c, 0, kt[t])), f = Rt(Me, Ie(c, kt[t], kt[t] * 2)), _ = Ie(c, kt[t] * 2);
6775
+ const s = await da(Qo, e, na, !1, ra), a = await pa(Object.assign({ salt: r }, Tn), s, 8 * (kt[t] * 2 + 2)), c = new Uint8Array(a), l = Rt(Me, Ie(c, 0, kt[t])), f = Rt(Me, Ie(c, kt[t], kt[t] * 2)), _ = Ie(c, kt[t] * 2);
6776
6776
  return Object.assign(n, {
6777
6777
  keys: {
6778
6778
  key: l,
6779
6779
  authentication: f,
6780
6780
  passwordVerification: _
6781
6781
  },
6782
- ctr: new ia(new ra(l), Array.from(na)),
6783
- hmac: new sa(f)
6782
+ ctr: new oa(new sa(l), Array.from(ia)),
6783
+ hmac: new aa(f)
6784
6784
  }), _;
6785
6785
  }
6786
- async function fa(n, t, e, r, s) {
6787
- if (Dr)
6786
+ async function da(n, t, e, r, s) {
6787
+ if (Pr)
6788
6788
  try {
6789
6789
  return await Ct.importKey(n, t, e, r, s);
6790
6790
  } catch {
6791
- return Dr = !1, ot.importKey(t);
6791
+ return Pr = !1, ot.importKey(t);
6792
6792
  }
6793
6793
  else
6794
6794
  return ot.importKey(t);
6795
6795
  }
6796
- async function ua(n, t, e) {
6797
- if (Lr)
6796
+ async function pa(n, t, e) {
6797
+ if (Dr)
6798
6798
  try {
6799
6799
  return await Ct.deriveBits(n, t, e);
6800
6800
  } catch {
6801
- return Lr = !1, ot.pbkdf2(t, n.salt, Tn.iterations, e);
6801
+ return Dr = !1, ot.pbkdf2(t, n.salt, Tn.iterations, e);
6802
6802
  }
6803
6803
  else
6804
6804
  return ot.pbkdf2(t, n.salt, Tn.iterations, e);
6805
6805
  }
6806
- function Ri(n, t) {
6807
- return t === Ee ? Go(n) : t;
6806
+ function Ti(n, t) {
6807
+ return t === Ee ? Xo(n) : t;
6808
6808
  }
6809
6809
  function Nn(n, t) {
6810
6810
  let e = n;
6811
6811
  return n.length + t.length && (e = new Uint8Array(n.length + t.length), e.set(n, 0), e.set(t, n.length)), e;
6812
6812
  }
6813
- function da(n, t) {
6813
+ function ma(n, t) {
6814
6814
  if (t && t > n.length) {
6815
6815
  const e = n;
6816
6816
  n = new Uint8Array(t), n.set(e, 0);
@@ -6827,64 +6827,64 @@ function Rt(n, t) {
6827
6827
  return n.toBits(t);
6828
6828
  }
6829
6829
  const ht = 12;
6830
- class pa extends TransformStream {
6830
+ class ha extends TransformStream {
6831
6831
  constructor({ password: t, passwordVerification: e, checkPasswordOnly: r }) {
6832
6832
  super({
6833
6833
  start() {
6834
6834
  Object.assign(this, {
6835
6835
  password: t,
6836
6836
  passwordVerification: e
6837
- }), Fi(this, t);
6837
+ }), Ri(this, t);
6838
6838
  },
6839
6839
  transform(s, a) {
6840
6840
  const c = this;
6841
6841
  if (c.password) {
6842
- const l = Ur(c, s.subarray(0, ht));
6842
+ const l = Lr(c, s.subarray(0, ht));
6843
6843
  if (c.password = null, l[ht - 1] != c.passwordVerification)
6844
- throw new Error(bi);
6844
+ throw new Error(yi);
6845
6845
  s = s.subarray(ht);
6846
6846
  }
6847
- r ? a.error(new Error(Mn)) : a.enqueue(Ur(c, s));
6847
+ r ? a.error(new Error(Mn)) : a.enqueue(Lr(c, s));
6848
6848
  }
6849
6849
  });
6850
6850
  }
6851
6851
  }
6852
- class ma extends TransformStream {
6852
+ class xa extends TransformStream {
6853
6853
  constructor({ password: t, passwordVerification: e }) {
6854
6854
  super({
6855
6855
  start() {
6856
6856
  Object.assign(this, {
6857
6857
  password: t,
6858
6858
  passwordVerification: e
6859
- }), Fi(this, t);
6859
+ }), Ri(this, t);
6860
6860
  },
6861
6861
  transform(r, s) {
6862
6862
  const a = this;
6863
6863
  let c, l;
6864
6864
  if (a.password) {
6865
6865
  a.password = null;
6866
- const f = ki(new Uint8Array(ht));
6867
- f[ht - 1] = a.passwordVerification, c = new Uint8Array(r.length + f.length), c.set(Or(a, f), 0), l = ht;
6866
+ const f = vi(new Uint8Array(ht));
6867
+ f[ht - 1] = a.passwordVerification, c = new Uint8Array(r.length + f.length), c.set(Ur(a, f), 0), l = ht;
6868
6868
  } else
6869
6869
  c = new Uint8Array(r.length), l = 0;
6870
- c.set(Or(a, r), l), s.enqueue(c);
6870
+ c.set(Ur(a, r), l), s.enqueue(c);
6871
6871
  }
6872
6872
  });
6873
6873
  }
6874
6874
  }
6875
- function Ur(n, t) {
6875
+ function Lr(n, t) {
6876
6876
  const e = new Uint8Array(t.length);
6877
6877
  for (let r = 0; r < t.length; r++)
6878
- e[r] = Ci(n) ^ t[r], qn(n, e[r]);
6878
+ e[r] = Fi(n) ^ t[r], qn(n, e[r]);
6879
6879
  return e;
6880
6880
  }
6881
- function Or(n, t) {
6881
+ function Ur(n, t) {
6882
6882
  const e = new Uint8Array(t.length);
6883
6883
  for (let r = 0; r < t.length; r++)
6884
- e[r] = Ci(n) ^ t[r], qn(n, t[r]);
6884
+ e[r] = Fi(n) ^ t[r], qn(n, t[r]);
6885
6885
  return e;
6886
6886
  }
6887
- function Fi(n, t) {
6887
+ function Ri(n, t) {
6888
6888
  const e = [305419896, 591751049, 878082192];
6889
6889
  Object.assign(n, {
6890
6890
  keys: e,
@@ -6896,59 +6896,59 @@ function Fi(n, t) {
6896
6896
  }
6897
6897
  function qn(n, t) {
6898
6898
  let [e, r, s] = n.keys;
6899
- n.crcKey0.append([t]), e = ~n.crcKey0.get(), r = Br(Math.imul(Br(r + Ii(e)), 134775813) + 1), n.crcKey2.append([r >>> 24]), s = ~n.crcKey2.get(), n.keys = [e, r, s];
6899
+ n.crcKey0.append([t]), e = ~n.crcKey0.get(), r = Or(Math.imul(Or(r + Ci(e)), 134775813) + 1), n.crcKey2.append([r >>> 24]), s = ~n.crcKey2.get(), n.keys = [e, r, s];
6900
6900
  }
6901
- function Ci(n) {
6901
+ function Fi(n) {
6902
6902
  const t = n.keys[2] | 2;
6903
- return Ii(Math.imul(t, t ^ 1) >>> 8);
6903
+ return Ci(Math.imul(t, t ^ 1) >>> 8);
6904
6904
  }
6905
- function Ii(n) {
6905
+ function Ci(n) {
6906
6906
  return n & 255;
6907
6907
  }
6908
- function Br(n) {
6908
+ function Or(n) {
6909
6909
  return n & 4294967295;
6910
6910
  }
6911
6911
  const Wr = "deflate-raw";
6912
- class ha extends TransformStream {
6912
+ class wa extends TransformStream {
6913
6913
  constructor(t, { chunkSize: e, CompressionStream: r, CompressionStreamNative: s }) {
6914
6914
  super({});
6915
6915
  const { compressed: a, encrypted: c, useCompressionStream: l, zipCrypto: f, signed: _, level: x } = t, w = this;
6916
- let g, T, C = Pi(super.readable);
6917
- (!c || f) && _ && (g = new wi(), C = Ne(C, g)), a && (C = Li(C, l, { level: x, chunkSize: e }, s, r)), c && (f ? C = Ne(C, new ma(t)) : (T = new aa(t), C = Ne(C, T))), Di(w, C, () => {
6916
+ let g, T, O = Ii(super.readable);
6917
+ (!c || f) && _ && (g = new xi(), O = Ne(O, g)), a && (O = Di(O, l, { level: x, chunkSize: e }, s, r)), c && (f ? O = Ne(O, new xa(t)) : (T = new la(t), O = Ne(O, T))), Pi(w, O, () => {
6918
6918
  let m;
6919
6919
  c && !f && (m = T.signature), (!c || f) && _ && (m = new DataView(g.value.buffer).getUint32(0)), w.signature = m;
6920
6920
  });
6921
6921
  }
6922
6922
  }
6923
- class xa extends TransformStream {
6923
+ class ga extends TransformStream {
6924
6924
  constructor(t, { chunkSize: e, DecompressionStream: r, DecompressionStreamNative: s }) {
6925
6925
  super({});
6926
6926
  const { zipCrypto: a, encrypted: c, signed: l, signature: f, compressed: _, useCompressionStream: x } = t;
6927
- let w, g, T = Pi(super.readable);
6928
- c && (a ? T = Ne(T, new pa(t)) : (g = new oa(t), T = Ne(T, g))), _ && (T = Li(T, x, { chunkSize: e }, s, r)), (!c || a) && l && (w = new wi(), T = Ne(T, w)), Di(this, T, () => {
6927
+ let w, g, T = Ii(super.readable);
6928
+ c && (a ? T = Ne(T, new ha(t)) : (g = new ca(t), T = Ne(T, g))), _ && (T = Di(T, x, { chunkSize: e }, s, r)), (!c || a) && l && (w = new xi(), T = Ne(T, w)), Pi(this, T, () => {
6929
6929
  if ((!c || a) && l) {
6930
- const C = new DataView(w.value.buffer);
6931
- if (f != C.getUint32(0, !1))
6932
- throw new Error(vi);
6930
+ const O = new DataView(w.value.buffer);
6931
+ if (f != O.getUint32(0, !1))
6932
+ throw new Error(bi);
6933
6933
  }
6934
6934
  });
6935
6935
  }
6936
6936
  }
6937
- function Pi(n) {
6937
+ function Ii(n) {
6938
6938
  return Ne(n, new TransformStream({
6939
6939
  transform(t, e) {
6940
6940
  t && t.length && e.enqueue(t);
6941
6941
  }
6942
6942
  }));
6943
6943
  }
6944
- function Di(n, t, e) {
6944
+ function Pi(n, t, e) {
6945
6945
  t = Ne(t, new TransformStream({ flush: e })), Object.defineProperty(n, "readable", {
6946
6946
  get() {
6947
6947
  return t;
6948
6948
  }
6949
6949
  });
6950
6950
  }
6951
- function Li(n, t, e, r, s) {
6951
+ function Di(n, t, e, r, s) {
6952
6952
  try {
6953
6953
  const a = t && r ? r : s;
6954
6954
  n = Ne(n, new a(Wr, e));
@@ -6967,13 +6967,13 @@ function Li(n, t, e, r, s) {
6967
6967
  function Ne(n, t) {
6968
6968
  return n.pipeThrough(t);
6969
6969
  }
6970
- const wa = "message", ga = "start", _a = "pull", Mr = "data", ya = "ack", Nr = "close", ba = "deflate", Ui = "inflate";
6971
- class va extends TransformStream {
6970
+ const _a = "message", ya = "start", ba = "pull", Br = "data", va = "ack", Mr = "close", ka = "deflate", Li = "inflate";
6971
+ class Ea extends TransformStream {
6972
6972
  constructor(t, e) {
6973
6973
  super({});
6974
6974
  const r = this, { codecType: s } = t;
6975
6975
  let a;
6976
- s.startsWith(ba) ? a = ha : s.startsWith(Ui) && (a = xa);
6976
+ s.startsWith(ka) ? a = wa : s.startsWith(Li) && (a = ga);
6977
6977
  let c = 0, l = 0;
6978
6978
  const f = new a(t, e), _ = super.readable, x = new TransformStream({
6979
6979
  transform(g, T) {
@@ -7004,7 +7004,7 @@ class va extends TransformStream {
7004
7004
  });
7005
7005
  }
7006
7006
  }
7007
- class ka extends TransformStream {
7007
+ class Sa extends TransformStream {
7008
7008
  constructor(t) {
7009
7009
  let e;
7010
7010
  super({
@@ -7022,31 +7022,31 @@ class ka extends TransformStream {
7022
7022
  }
7023
7023
  }
7024
7024
  }
7025
- let Oi = typeof Worker != Qe;
7025
+ let Ui = typeof Worker != Qe;
7026
7026
  class wn {
7027
7027
  constructor(t, { readable: e, writable: r }, { options: s, config: a, streamOptions: c, useWebWorkers: l, transferStreams: f, scripts: _ }, x) {
7028
7028
  const { signal: w } = c;
7029
7029
  return Object.assign(t, {
7030
7030
  busy: !0,
7031
- readable: e.pipeThrough(new ka(a.chunkSize)).pipeThrough(new Ea(e, c), { signal: w }),
7031
+ readable: e.pipeThrough(new Sa(a.chunkSize)).pipeThrough(new Aa(e, c), { signal: w }),
7032
7032
  writable: r,
7033
7033
  options: Object.assign({}, s),
7034
7034
  scripts: _,
7035
7035
  transferStreams: f,
7036
7036
  terminate() {
7037
7037
  return new Promise((g) => {
7038
- const { worker: T, busy: C } = t;
7039
- T ? (C ? t.resolveTerminated = g : (T.terminate(), g()), t.interface = null) : g();
7038
+ const { worker: T, busy: O } = t;
7039
+ T ? (O ? t.resolveTerminated = g : (T.terminate(), g()), t.interface = null) : g();
7040
7040
  });
7041
7041
  },
7042
7042
  onTaskFinished() {
7043
7043
  const { resolveTerminated: g } = t;
7044
7044
  g && (t.resolveTerminated = null, t.terminated = !0, t.worker.terminate(), g()), t.busy = !1, x(t);
7045
7045
  }
7046
- }), (l && Oi ? Sa : Bi)(t, a);
7046
+ }), (l && Ui ? Ta : Oi)(t, a);
7047
7047
  }
7048
7048
  }
7049
- class Ea extends TransformStream {
7049
+ class Aa extends TransformStream {
7050
7050
  constructor(t, { onstart: e, onprogress: r, size: s, onend: a }) {
7051
7051
  let c = 0;
7052
7052
  super({
@@ -7068,32 +7068,32 @@ async function gn(n, ...t) {
7068
7068
  } catch {
7069
7069
  }
7070
7070
  }
7071
- function Bi(n, t) {
7071
+ function Oi(n, t) {
7072
7072
  return {
7073
- run: () => Aa(n, t)
7073
+ run: () => Ra(n, t)
7074
7074
  };
7075
7075
  }
7076
- function Sa(n, t) {
7076
+ function Ta(n, t) {
7077
7077
  const { baseURL: e, chunkSize: r } = t;
7078
7078
  if (!n.interface) {
7079
7079
  let s;
7080
7080
  try {
7081
- s = Fa(n.scripts[0], e, n);
7081
+ s = Ia(n.scripts[0], e, n);
7082
7082
  } catch {
7083
- return Oi = !1, Bi(n, t);
7083
+ return Ui = !1, Oi(n, t);
7084
7084
  }
7085
7085
  Object.assign(n, {
7086
7086
  worker: s,
7087
7087
  interface: {
7088
- run: () => Ta(n, { chunkSize: r })
7088
+ run: () => Fa(n, { chunkSize: r })
7089
7089
  }
7090
7090
  });
7091
7091
  }
7092
7092
  return n.interface;
7093
7093
  }
7094
- async function Aa({ options: n, readable: t, writable: e, onTaskFinished: r }, s) {
7094
+ async function Ra({ options: n, readable: t, writable: e, onTaskFinished: r }, s) {
7095
7095
  try {
7096
- const a = new va(n, s);
7096
+ const a = new Ea(n, s);
7097
7097
  await t.pipeThrough(a).pipeTo(e, { preventClose: !0, preventAbort: !0 });
7098
7098
  const {
7099
7099
  signature: c,
@@ -7109,7 +7109,7 @@ async function Aa({ options: n, readable: t, writable: e, onTaskFinished: r }, s
7109
7109
  r();
7110
7110
  }
7111
7111
  }
7112
- async function Ta(n, t) {
7112
+ async function Fa(n, t) {
7113
7113
  let e, r;
7114
7114
  const s = new Promise((g, T) => {
7115
7115
  e = g, r = T;
@@ -7121,8 +7121,8 @@ async function Ta(n, t) {
7121
7121
  rejectResult: r,
7122
7122
  result: s
7123
7123
  });
7124
- const { readable: a, options: c, scripts: l } = n, { writable: f, closed: _ } = Ra(n.writable), x = $t({
7125
- type: ga,
7124
+ const { readable: a, options: c, scripts: l } = n, { writable: f, closed: _ } = Ca(n.writable), x = $t({
7125
+ type: ya,
7126
7126
  scripts: l.slice(1),
7127
7127
  options: c,
7128
7128
  config: t,
@@ -7136,7 +7136,7 @@ async function Ta(n, t) {
7136
7136
  const w = await s;
7137
7137
  return x || await f.getWriter().close(), await _, w;
7138
7138
  }
7139
- function Ra(n) {
7139
+ function Ca(n) {
7140
7140
  let t;
7141
7141
  const e = new Promise((s) => t = s);
7142
7142
  return { writable: new WritableStream({
@@ -7152,8 +7152,8 @@ function Ra(n) {
7152
7152
  }
7153
7153
  }), closed: e };
7154
7154
  }
7155
- let qr = !0, jr = !0;
7156
- function Fa(n, t, e) {
7155
+ let Nr = !0, qr = !0;
7156
+ function Ia(n, t, e) {
7157
7157
  const r = { type: "module" };
7158
7158
  let s, a;
7159
7159
  typeof n == Ft && (n = n());
@@ -7162,24 +7162,24 @@ function Fa(n, t, e) {
7162
7162
  } catch {
7163
7163
  s = n;
7164
7164
  }
7165
- if (qr)
7165
+ if (Nr)
7166
7166
  try {
7167
7167
  a = new Worker(s);
7168
7168
  } catch {
7169
- qr = !1, a = new Worker(s, r);
7169
+ Nr = !1, a = new Worker(s, r);
7170
7170
  }
7171
7171
  else
7172
7172
  a = new Worker(s, r);
7173
- return a.addEventListener(wa, (c) => Ca(c, e)), a;
7173
+ return a.addEventListener(_a, (c) => Pa(c, e)), a;
7174
7174
  }
7175
7175
  function $t(n, { worker: t, writer: e, onTaskFinished: r, transferStreams: s }) {
7176
7176
  try {
7177
7177
  const { value: a, readable: c, writable: l } = n, f = [];
7178
- if (a && (a.byteLength < a.buffer.byteLength ? n.value = a.buffer.slice(0, a.byteLength) : n.value = a.buffer, f.push(n.value)), s && jr ? (c && f.push(c), l && f.push(l)) : n.readable = n.writable = null, f.length)
7178
+ if (a && (a.byteLength < a.buffer.byteLength ? n.value = a.buffer.slice(0, a.byteLength) : n.value = a.buffer, f.push(n.value)), s && qr ? (c && f.push(c), l && f.push(l)) : n.readable = n.writable = null, f.length)
7179
7179
  try {
7180
7180
  return t.postMessage(n, f), !0;
7181
7181
  } catch {
7182
- jr = !1, n.readable = n.writable = null, t.postMessage(n);
7182
+ qr = !1, n.readable = n.writable = null, t.postMessage(n);
7183
7183
  }
7184
7184
  else
7185
7185
  t.postMessage(n);
@@ -7187,52 +7187,52 @@ function $t(n, { worker: t, writer: e, onTaskFinished: r, transferStreams: s })
7187
7187
  throw e && e.releaseLock(), r(), a;
7188
7188
  }
7189
7189
  }
7190
- async function Ca({ data: n }, t) {
7190
+ async function Pa({ data: n }, t) {
7191
7191
  const { type: e, value: r, messageId: s, result: a, error: c } = n, { reader: l, writer: f, resolveResult: _, rejectResult: x, onTaskFinished: w } = t;
7192
7192
  try {
7193
7193
  if (c) {
7194
- const { message: T, stack: C, code: m, name: d } = c, h = new Error(T);
7195
- Object.assign(h, { stack: C, code: m, name: d }), g(h);
7194
+ const { message: T, stack: O, code: m, name: d } = c, h = new Error(T);
7195
+ Object.assign(h, { stack: O, code: m, name: d }), g(h);
7196
7196
  } else {
7197
- if (e == _a) {
7198
- const { value: T, done: C } = await l.read();
7199
- $t({ type: Mr, value: T, done: C, messageId: s }, t);
7197
+ if (e == ba) {
7198
+ const { value: T, done: O } = await l.read();
7199
+ $t({ type: Br, value: T, done: O, messageId: s }, t);
7200
7200
  }
7201
- e == Mr && (await f.ready, await f.write(new Uint8Array(r)), $t({ type: ya, messageId: s }, t)), e == Nr && g(null, a);
7201
+ e == Br && (await f.ready, await f.write(new Uint8Array(r)), $t({ type: va, messageId: s }, t)), e == Mr && g(null, a);
7202
7202
  }
7203
7203
  } catch (T) {
7204
- $t({ type: Nr, messageId: s }, t), g(T);
7204
+ $t({ type: Mr, messageId: s }, t), g(T);
7205
7205
  }
7206
- function g(T, C) {
7207
- T ? x(T) : _(C), f && f.releaseLock(), w();
7206
+ function g(T, O) {
7207
+ T ? x(T) : _(O), f && f.releaseLock(), w();
7208
7208
  }
7209
7209
  }
7210
7210
  let it = [];
7211
7211
  const _n = [];
7212
- let Hr = 0;
7213
- async function Ia(n, t) {
7212
+ let jr = 0;
7213
+ async function Da(n, t) {
7214
7214
  const { options: e, config: r } = t, { transferStreams: s, useWebWorkers: a, useCompressionStream: c, codecType: l, compressed: f, signed: _, encrypted: x } = e, { workerScripts: w, maxWorkers: g } = r;
7215
7215
  t.transferStreams = s || s === Ee;
7216
7216
  const T = !f && !_ && !x && !t.transferStreams;
7217
- return t.useWebWorkers = !T && (a || a === Ee && r.useWebWorkers), t.scripts = t.useWebWorkers && w ? w[l] : [], e.useCompressionStream = c || c === Ee && r.useCompressionStream, (await C()).run();
7218
- async function C() {
7217
+ return t.useWebWorkers = !T && (a || a === Ee && r.useWebWorkers), t.scripts = t.useWebWorkers && w ? w[l] : [], e.useCompressionStream = c || c === Ee && r.useCompressionStream, (await O()).run();
7218
+ async function O() {
7219
7219
  const d = it.find((h) => !h.busy);
7220
7220
  if (d)
7221
- return $r(d), new wn(d, n, t, m);
7221
+ return Hr(d), new wn(d, n, t, m);
7222
7222
  if (it.length < g) {
7223
- const h = { indexWorker: Hr };
7224
- return Hr++, it.push(h), new wn(h, n, t, m);
7223
+ const h = { indexWorker: jr };
7224
+ return jr++, it.push(h), new wn(h, n, t, m);
7225
7225
  } else
7226
7226
  return new Promise((h) => _n.push({ resolve: h, stream: n, workerOptions: t }));
7227
7227
  }
7228
7228
  function m(d) {
7229
7229
  if (_n.length) {
7230
- const [{ resolve: h, stream: v, workerOptions: A }] = _n.splice(0, 1);
7231
- h(new wn(d, v, A, m));
7232
- } else d.worker ? ($r(d), Pa(d, t)) : it = it.filter((h) => h != d);
7230
+ const [{ resolve: h, stream: b, workerOptions: R }] = _n.splice(0, 1);
7231
+ h(new wn(d, b, R, m));
7232
+ } else d.worker ? (Hr(d), La(d, t)) : it = it.filter((h) => h != d);
7233
7233
  }
7234
7234
  }
7235
- function Pa(n, t) {
7235
+ function La(n, t) {
7236
7236
  const { config: e } = t, { terminateWorkerTimeout: r } = e;
7237
7237
  Number.isFinite(r) && r >= 0 && (n.terminated ? n.terminated = !1 : n.terminateTimeout = setTimeout(async () => {
7238
7238
  it = it.filter((s) => s != n);
@@ -7242,16 +7242,16 @@ function Pa(n, t) {
7242
7242
  }
7243
7243
  }, r));
7244
7244
  }
7245
- function $r(n) {
7245
+ function Hr(n) {
7246
7246
  const { terminateTimeout: t } = n;
7247
7247
  t && (clearTimeout(t), n.terminateTimeout = null);
7248
7248
  }
7249
- function Da(n, t = {}) {
7249
+ function Ua(n, t = {}) {
7250
7250
  const e = `const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={bytes:{p(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},m(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.R(I.bytes.m(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.bytes.m(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.R;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.p(t)}function ae(e,t){return e.m(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new x(r[0]),te:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],He.Ce=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],He.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le._e=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ke[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ke.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le._e,Le.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.We)return;e=t.je(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.tt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
7251
7251
  `, r = () => t.useDataURI ? "data:text/javascript," + encodeURIComponent(e) : URL.createObjectURL(new Blob([e], { type: "text/javascript" }));
7252
7252
  n({ workerScripts: { inflate: [r], deflate: [r] } });
7253
7253
  }
7254
- const La = "Writer iterator completed too soon", Ua = "Content-Type", Oa = 64 * 1024, Wi = "writable";
7254
+ const Oa = "Writer iterator completed too soon", Wa = "Content-Type", Ba = 64 * 1024, Wi = "writable";
7255
7255
  class jn {
7256
7256
  constructor() {
7257
7257
  this.size = 0;
@@ -7260,9 +7260,9 @@ class jn {
7260
7260
  this.initialized = !0;
7261
7261
  }
7262
7262
  }
7263
- class Mi extends jn {
7263
+ class Bi extends jn {
7264
7264
  get readable() {
7265
- const t = this, { chunkSize: e = Oa } = t, r = new ReadableStream({
7265
+ const t = this, { chunkSize: e = Ba } = t, r = new ReadableStream({
7266
7266
  start() {
7267
7267
  this.chunkOffset = 0;
7268
7268
  },
@@ -7274,7 +7274,7 @@ class Mi extends jn {
7274
7274
  return r;
7275
7275
  }
7276
7276
  }
7277
- class Rn extends Mi {
7277
+ class Rn extends Bi {
7278
7278
  constructor(t) {
7279
7279
  super(), Object.assign(this, {
7280
7280
  blob: t,
@@ -7287,11 +7287,11 @@ class Rn extends Mi {
7287
7287
  return c.byteLength > e && (c = c.slice(t, s)), new Uint8Array(c);
7288
7288
  }
7289
7289
  }
7290
- class Ba extends jn {
7290
+ class Ma extends jn {
7291
7291
  constructor(t) {
7292
7292
  super();
7293
7293
  const e = this, r = new TransformStream(), s = [];
7294
- t && s.push([Ua, t]), Object.defineProperty(e, Wi, {
7294
+ t && s.push([Wa, t]), Object.defineProperty(e, Wi, {
7295
7295
  get() {
7296
7296
  return r.writable;
7297
7297
  }
@@ -7301,7 +7301,7 @@ class Ba extends jn {
7301
7301
  return this.blob;
7302
7302
  }
7303
7303
  }
7304
- class Wa extends Mi {
7304
+ class Na extends Bi {
7305
7305
  constructor(t) {
7306
7306
  super(), this.readers = t;
7307
7307
  }
@@ -7328,7 +7328,7 @@ class Wa extends Mi {
7328
7328
  return s.lastDiskNumber = Math.max(l, s.lastDiskNumber), c;
7329
7329
  }
7330
7330
  }
7331
- class Yr extends jn {
7331
+ class $r extends jn {
7332
7332
  constructor(t, e = 4294967295) {
7333
7333
  super();
7334
7334
  const r = this;
@@ -7348,7 +7348,7 @@ class Yr extends jn {
7348
7348
  else {
7349
7349
  const { value: g, done: T } = await t.next();
7350
7350
  if (T && !g)
7351
- throw new Error(La);
7351
+ throw new Error(Oa);
7352
7352
  s = g, s.size = 0, s.maxSize && (r.maxSize = s.maxSize), r.availableSize = r.maxSize, await Jt(s), a = g.writable, c = a.getWriter(), await this.write(x);
7353
7353
  }
7354
7354
  },
@@ -7376,17 +7376,17 @@ async function Jt(n, t) {
7376
7376
  else
7377
7377
  return Promise.resolve();
7378
7378
  }
7379
- function Ma(n) {
7380
- return Array.isArray(n) && (n = new Wa(n)), n instanceof ReadableStream && (n = {
7379
+ function qa(n) {
7380
+ return Array.isArray(n) && (n = new Na(n)), n instanceof ReadableStream && (n = {
7381
7381
  readable: n
7382
7382
  }), n;
7383
7383
  }
7384
- function Na(n) {
7385
- n.writable === Ee && typeof n.next == Ft && (n = new Yr(n)), n instanceof WritableStream && (n = {
7384
+ function ja(n) {
7385
+ n.writable === Ee && typeof n.next == Ft && (n = new $r(n)), n instanceof WritableStream && (n = {
7386
7386
  writable: n
7387
7387
  });
7388
7388
  const { writable: t } = n;
7389
- return t.size === Ee && (t.size = 0), n instanceof Yr || Object.assign(n, {
7389
+ return t.size === Ee && (t.size = 0), n instanceof $r || Object.assign(n, {
7390
7390
  diskNumber: 0,
7391
7391
  diskOffset: 0,
7392
7392
  availableSize: 1 / 0,
@@ -7396,35 +7396,33 @@ function Na(n) {
7396
7396
  function _e(n, t, e, r) {
7397
7397
  return n.readUint8Array(t, e, r);
7398
7398
  }
7399
- const Ni = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""), qa = Ni.length == 256;
7400
- function ja(n) {
7401
- if (qa) {
7399
+ const Mi = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""), Ha = Mi.length == 256;
7400
+ function $a(n) {
7401
+ if (Ha) {
7402
7402
  let t = "";
7403
7403
  for (let e = 0; e < n.length; e++)
7404
- t += Ni[n[e]];
7404
+ t += Mi[n[e]];
7405
7405
  return t;
7406
7406
  } else
7407
7407
  return new TextDecoder().decode(n);
7408
7408
  }
7409
7409
  function Yt(n, t) {
7410
- return t && t.trim().toLowerCase() == "cp437" ? ja(n) : new TextDecoder(t).decode(n);
7410
+ return t && t.trim().toLowerCase() == "cp437" ? $a(n) : new TextDecoder(t).decode(n);
7411
7411
  }
7412
- const qi = "filename", ji = "rawFilename", Hi = "comment", $i = "rawComment", Yi = "uncompressedSize", Zi = "compressedSize", Vi = "offset", Fn = "diskNumberStart", Cn = "lastModDate", In = "rawLastModDate", Gi = "lastAccessDate", Ha = "rawLastAccessDate", Ki = "creationDate", $a = "rawCreationDate", Ya = "internalFileAttribute", Za = "internalFileAttributes", Va = "externalFileAttribute", Ga = "externalFileAttributes", Ka = "msDosCompatible", Xa = "zip64", za = "encrypted", Ja = "version", Qa = "versionMadeBy", ec = "zipCrypto", tc = "directory", nc = "executable", rc = [
7412
+ const Ni = "filename", qi = "rawFilename", ji = "comment", Hi = "rawComment", $i = "uncompressedSize", Yi = "compressedSize", Zi = "offset", Fn = "diskNumberStart", Cn = "lastModDate", In = "rawLastModDate", Vi = "lastAccessDate", Ya = "rawLastAccessDate", Gi = "creationDate", Za = "rawCreationDate", Va = "internalFileAttribute", Ga = "internalFileAttributes", Ka = "externalFileAttribute", Xa = "externalFileAttributes", za = "msDosCompatible", Ja = "zip64", Qa = "encrypted", ec = "version", tc = "versionMadeBy", nc = "zipCrypto", rc = "directory", ic = "executable", sc = [
7413
+ Ni,
7413
7414
  qi,
7414
- ji,
7415
- Zi,
7416
7415
  Yi,
7416
+ $i,
7417
7417
  Cn,
7418
7418
  In,
7419
+ ji,
7419
7420
  Hi,
7420
- $i,
7421
- Gi,
7422
- Ki,
7423
7421
  Vi,
7422
+ Gi,
7423
+ Zi,
7424
7424
  Fn,
7425
7425
  Fn,
7426
- Ya,
7427
- Za,
7428
7426
  Va,
7429
7427
  Ga,
7430
7428
  Ka,
@@ -7435,6 +7433,8 @@ const qi = "filename", ji = "rawFilename", Hi = "comment", $i = "rawComment", Yi
7435
7433
  ec,
7436
7434
  tc,
7437
7435
  nc,
7436
+ rc,
7437
+ ic,
7438
7438
  "bitFlag",
7439
7439
  "signature",
7440
7440
  "filenameUTF8",
@@ -7449,17 +7449,17 @@ const qi = "filename", ji = "rawFilename", Hi = "comment", $i = "rawComment", Yi
7449
7449
  "extraFieldNTFS",
7450
7450
  "extraFieldExtendedTimestamp"
7451
7451
  ];
7452
- class Zr {
7452
+ class Yr {
7453
7453
  constructor(t) {
7454
- rc.forEach((e) => this[e] = t[e]);
7454
+ sc.forEach((e) => this[e] = t[e]);
7455
7455
  }
7456
7456
  }
7457
- const yn = "File format is not recognized", ic = "End of central directory not found", sc = "End of Zip64 central directory locator not found", oc = "Central directory header not found", ac = "Local file header not found", cc = "Zip64 extra field not found", lc = "File contains encrypted entry", fc = "Encryption method not supported", Vr = "Compression method not supported", Gr = "Split zip file", Kr = "utf-8", Xr = "cp437", uc = [
7457
+ const yn = "File format is not recognized", oc = "End of central directory not found", ac = "End of Zip64 central directory locator not found", cc = "Central directory header not found", lc = "Local file header not found", fc = "Zip64 extra field not found", uc = "File contains encrypted entry", dc = "Encryption method not supported", Zr = "Compression method not supported", Vr = "Split zip file", Gr = "utf-8", Kr = "cp437", pc = [
7458
+ [$i, st],
7458
7459
  [Yi, st],
7459
7460
  [Zi, st],
7460
- [Vi, st],
7461
7461
  [Fn, Xe]
7462
- ], dc = {
7462
+ ], mc = {
7463
7463
  [Xe]: {
7464
7464
  getValue: ce,
7465
7465
  bytes: 4
@@ -7469,12 +7469,12 @@ const yn = "File format is not recognized", ic = "End of central directory not f
7469
7469
  bytes: 8
7470
7470
  }
7471
7471
  };
7472
- class zr {
7472
+ class Xr {
7473
7473
  constructor(t, e = {}) {
7474
7474
  Object.assign(this, {
7475
- reader: Ma(t),
7475
+ reader: qa(t),
7476
7476
  options: e,
7477
- config: Zo()
7477
+ config: Go()
7478
7478
  });
7479
7479
  }
7480
7480
  async *getEntriesGenerator(t = {}) {
@@ -7483,94 +7483,94 @@ class zr {
7483
7483
  const { config: s } = e;
7484
7484
  if (await Jt(r), (r.size === Ee || !r.readUint8Array) && (r = new Rn(await new Response(r.readable).blob()), await Jt(r)), r.size < ut)
7485
7485
  throw new Error(yn);
7486
- r.chunkSize = Vo(s);
7487
- const a = await gc(r, Do, r.size, ut, Xe * 16);
7486
+ r.chunkSize = Ko(s);
7487
+ const a = await yc(r, Uo, r.size, ut, Xe * 16);
7488
7488
  if (!a) {
7489
- const b = await _e(r, 0, 4), E = xe(b);
7490
- throw ce(E) == Po ? new Error(Gr) : new Error(ic);
7489
+ const k = await _e(r, 0, 4), E = xe(k);
7490
+ throw ce(E) == Lo ? new Error(Vr) : new Error(oc);
7491
7491
  }
7492
7492
  const c = xe(a);
7493
7493
  let l = ce(c, 12), f = ce(c, 16);
7494
7494
  const _ = a.offset, x = he(c, 20), w = _ + ut + x;
7495
7495
  let g = he(c, 4);
7496
7496
  const T = r.lastDiskNumber || 0;
7497
- let C = he(c, 6), m = he(c, 8), d = 0, h = 0;
7498
- if (f == st || l == st || m == Xe || C == Xe) {
7499
- const b = await _e(r, a.offset - mn, mn), E = xe(b);
7500
- if (ce(E, 0) == Lo) {
7497
+ let O = he(c, 6), m = he(c, 8), d = 0, h = 0;
7498
+ if (f == st || l == st || m == Xe || O == Xe) {
7499
+ const k = await _e(r, a.offset - mn, mn), E = xe(k);
7500
+ if (ce(E, 0) == Oo) {
7501
7501
  f = Zt(E, 8);
7502
- let M = await _e(r, f, hn, -1), O = xe(M);
7503
- const $ = a.offset - mn - hn;
7504
- if (ce(O, 0) != Er && f != $) {
7502
+ let B = await _e(r, f, hn, -1), L = xe(B);
7503
+ const Y = a.offset - mn - hn;
7504
+ if (ce(L, 0) != kr && f != Y) {
7505
7505
  const H = f;
7506
- f = $, d = f - H, M = await _e(r, f, hn, -1), O = xe(M);
7506
+ f = Y, d = f - H, B = await _e(r, f, hn, -1), L = xe(B);
7507
7507
  }
7508
- if (ce(O, 0) != Er)
7509
- throw new Error(sc);
7510
- g == Xe && (g = ce(O, 16)), C == Xe && (C = ce(O, 20)), m == Xe && (m = Zt(O, 32)), l == st && (l = Zt(O, 40)), f -= l;
7508
+ if (ce(L, 0) != kr)
7509
+ throw new Error(ac);
7510
+ g == Xe && (g = ce(L, 16)), O == Xe && (O = ce(L, 20)), m == Xe && (m = Zt(L, 32)), l == st && (l = Zt(L, 40)), f -= l;
7511
7511
  }
7512
7512
  }
7513
7513
  if (f >= r.size && (d = r.size - f - l - ut, f = r.size - l - ut), T != g)
7514
- throw new Error(Gr);
7514
+ throw new Error(Vr);
7515
7515
  if (f < 0)
7516
7516
  throw new Error(yn);
7517
- let v = 0, A = await _e(r, f, l, C), P = xe(A);
7517
+ let b = 0, R = await _e(r, f, l, O), C = xe(R);
7518
7518
  if (l) {
7519
- const b = a.offset - l;
7520
- if (ce(P, v) != kr && f != b) {
7519
+ const k = a.offset - l;
7520
+ if (ce(C, b) != vr && f != k) {
7521
7521
  const E = f;
7522
- f = b, d += f - E, A = await _e(r, f, l, C), P = xe(A);
7522
+ f = k, d += f - E, R = await _e(r, f, l, O), C = xe(R);
7523
7523
  }
7524
7524
  }
7525
7525
  const S = a.offset - f - (r.lastDiskOffset || 0);
7526
- if (l != S && S >= 0 && (l = S, A = await _e(r, f, l, C), P = xe(A)), f < 0 || f >= r.size)
7526
+ if (l != S && S >= 0 && (l = S, R = await _e(r, f, l, O), C = xe(R)), f < 0 || f >= r.size)
7527
7527
  throw new Error(yn);
7528
- const R = ve(e, t, "filenameEncoding"), F = ve(e, t, "commentEncoding");
7529
- for (let b = 0; b < m; b++) {
7530
- const E = new pc(r, s, e.options);
7531
- if (ce(P, v) != kr)
7532
- throw new Error(oc);
7533
- Xi(E, P, v + 6);
7534
- const M = !!E.bitFlag.languageEncodingFlag, O = v + 46, $ = O + E.filenameLength, H = $ + E.extraFieldLength, j = he(P, v + 4), G = j >> 8 == 0, K = j >> 8 == 3, te = A.subarray(O, $), Z = he(P, v + 32), J = H + Z, Y = A.subarray(H, J), ee = M, Pe = M, de = ce(P, v + 38), le = G && (xt(P, v + 38) & Rr) == Rr || K && (de >> 16 & Fr) == Fr || te.length && te[te.length - 1] == Ir.charCodeAt(0), wt = K && (de >> 16 & Cr) == Cr, qe = ce(P, v + 42) + d;
7528
+ const A = ve(e, t, "filenameEncoding"), F = ve(e, t, "commentEncoding");
7529
+ for (let k = 0; k < m; k++) {
7530
+ const E = new hc(r, s, e.options);
7531
+ if (ce(C, b) != vr)
7532
+ throw new Error(cc);
7533
+ Ki(E, C, b + 6);
7534
+ const B = !!E.bitFlag.languageEncodingFlag, L = b + 46, Y = L + E.filenameLength, H = Y + E.extraFieldLength, j = he(C, b + 4), K = j >> 8 == 0, G = j >> 8 == 3, re = R.subarray(L, Y), Z = he(C, b + 32), X = H + Z, $ = R.subarray(H, X), J = B, Pe = B, de = ce(C, b + 38), le = K && (xt(C, b + 38) & Tr) == Tr || G && (de >> 16 & Rr) == Rr || re.length && re[re.length - 1] == Cr.charCodeAt(0), wt = G && (de >> 16 & Fr) == Fr, qe = ce(C, b + 42) + d;
7535
7535
  Object.assign(E, {
7536
7536
  versionMadeBy: j,
7537
- msDosCompatible: G,
7537
+ msDosCompatible: K,
7538
7538
  compressedSize: 0,
7539
7539
  uncompressedSize: 0,
7540
7540
  commentLength: Z,
7541
7541
  directory: le,
7542
7542
  offset: qe,
7543
- diskNumberStart: he(P, v + 34),
7544
- internalFileAttributes: he(P, v + 36),
7543
+ diskNumberStart: he(C, b + 34),
7544
+ internalFileAttributes: he(C, b + 36),
7545
7545
  externalFileAttributes: de,
7546
- rawFilename: te,
7547
- filenameUTF8: ee,
7546
+ rawFilename: re,
7547
+ filenameUTF8: J,
7548
7548
  commentUTF8: Pe,
7549
- rawExtraField: A.subarray($, H),
7549
+ rawExtraField: R.subarray(Y, H),
7550
7550
  executable: wt
7551
7551
  }), E.internalFileAttribute = E.internalFileAttributes, E.externalFileAttribute = E.externalFileAttributes;
7552
- const at = ve(e, t, "decodeText") || Yt, et = ee ? Kr : R || Xr, tt = Pe ? Kr : F || Xr;
7553
- let ge = at(te, et);
7554
- ge === Ee && (ge = Yt(te, et));
7555
- let fe = at(Y, tt);
7556
- fe === Ee && (fe = Yt(Y, tt)), Object.assign(E, {
7557
- rawComment: Y,
7552
+ const at = ve(e, t, "decodeText") || Yt, et = J ? Gr : A || Kr, tt = Pe ? Gr : F || Kr;
7553
+ let ge = at(re, et);
7554
+ ge === Ee && (ge = Yt(re, et));
7555
+ let fe = at($, tt);
7556
+ fe === Ee && (fe = Yt($, tt)), Object.assign(E, {
7557
+ rawComment: $,
7558
7558
  filename: ge,
7559
7559
  comment: fe,
7560
- directory: le || ge.endsWith(Ir)
7561
- }), h = Math.max(qe, h), zi(E, E, P, v + 6), E.zipCrypto = E.encrypted && !E.extraFieldAES;
7562
- const je = new Zr(E);
7563
- je.getData = (u, i) => E.getData(u, je, i), v = J;
7560
+ directory: le || ge.endsWith(Cr)
7561
+ }), h = Math.max(qe, h), Xi(E, E, C, b + 6), E.zipCrypto = E.encrypted && !E.extraFieldAES;
7562
+ const je = new Yr(E);
7563
+ je.getData = (u, i) => E.getData(u, je, i), b = X;
7564
7564
  const { onprogress: ue } = t;
7565
7565
  if (ue)
7566
7566
  try {
7567
- await ue(b + 1, m, new Zr(E));
7567
+ await ue(k + 1, m, new Yr(E));
7568
7568
  } catch {
7569
7569
  }
7570
7570
  yield je;
7571
7571
  }
7572
- const y = ve(e, t, "extractPrependedData"), D = ve(e, t, "extractAppendedData");
7573
- return y && (e.prependedData = h > 0 ? await _e(r, 0, h) : new Uint8Array()), e.comment = x ? await _e(r, _ + ut, x) : new Uint8Array(), D && (e.appendedData = w < r.size ? await _e(r, w, r.size - w) : new Uint8Array()), !0;
7572
+ const y = ve(e, t, "extractPrependedData"), P = ve(e, t, "extractAppendedData");
7573
+ return y && (e.prependedData = h > 0 ? await _e(r, 0, h) : new Uint8Array()), e.comment = x ? await _e(r, _ + ut, x) : new Uint8Array(), P && (e.appendedData = w < r.size ? await _e(r, w, r.size - w) : new Uint8Array()), !0;
7574
7574
  }
7575
7575
  async getEntries(t = {}) {
7576
7576
  const e = [];
@@ -7581,7 +7581,7 @@ class zr {
7581
7581
  async close() {
7582
7582
  }
7583
7583
  }
7584
- class pc {
7584
+ class hc {
7585
7585
  constructor(t, e, r) {
7586
7586
  Object.assign(this, {
7587
7587
  reader: t,
@@ -7600,41 +7600,41 @@ class pc {
7600
7600
  bitFlag: w,
7601
7601
  signature: g,
7602
7602
  rawLastModDate: T,
7603
- uncompressedSize: C,
7603
+ uncompressedSize: O,
7604
7604
  compressedSize: m
7605
- } = s, d = e.localDirectory = {}, h = await _e(a, c, 30, l), v = xe(h);
7606
- let A = ve(s, r, "password"), P = ve(s, r, "rawPassword");
7605
+ } = s, d = e.localDirectory = {}, h = await _e(a, c, 30, l), b = xe(h);
7606
+ let R = ve(s, r, "password"), C = ve(s, r, "rawPassword");
7607
7607
  const S = ve(s, r, "passThrough");
7608
- if (A = A && A.length && A, P = P && P.length && P, f && f.originalCompressionMethod != Co)
7609
- throw new Error(Vr);
7610
- if (_ != Fo && _ != Ro && !S)
7611
- throw new Error(Vr);
7612
- if (ce(v, 0) != Io)
7613
- throw new Error(ac);
7614
- Xi(d, v, 4), d.rawExtraField = d.extraFieldLength ? await _e(a, c + 30 + d.filenameLength, d.extraFieldLength, l) : new Uint8Array(), zi(s, d, v, 4, !0), Object.assign(e, {
7608
+ if (R = R && R.length && R, C = C && C.length && C, f && f.originalCompressionMethod != Po)
7609
+ throw new Error(Zr);
7610
+ if (_ != Io && _ != Co && !S)
7611
+ throw new Error(Zr);
7612
+ if (ce(b, 0) != Do)
7613
+ throw new Error(lc);
7614
+ Ki(d, b, 4), d.rawExtraField = d.extraFieldLength ? await _e(a, c + 30 + d.filenameLength, d.extraFieldLength, l) : new Uint8Array(), Xi(s, d, b, 4, !0), Object.assign(e, {
7615
7615
  lastAccessDate: d.lastAccessDate,
7616
7616
  creationDate: d.creationDate
7617
7617
  });
7618
- const R = s.encrypted && d.encrypted && !S, F = R && !f;
7619
- if (S || (e.zipCrypto = F), R) {
7618
+ const A = s.encrypted && d.encrypted && !S, F = A && !f;
7619
+ if (S || (e.zipCrypto = F), A) {
7620
7620
  if (!F && f.strength === Ee)
7621
- throw new Error(fc);
7622
- if (!A && !P)
7623
- throw new Error(lc);
7621
+ throw new Error(dc);
7622
+ if (!R && !C)
7623
+ throw new Error(uc);
7624
7624
  }
7625
- const y = c + 30 + d.filenameLength + d.extraFieldLength, D = m, b = a.readable;
7626
- Object.assign(b, {
7625
+ const y = c + 30 + d.filenameLength + d.extraFieldLength, P = m, k = a.readable;
7626
+ Object.assign(k, {
7627
7627
  diskNumberStart: l,
7628
7628
  offset: y,
7629
- size: D
7629
+ size: P
7630
7630
  });
7631
- const E = ve(s, r, "signal"), M = ve(s, r, "checkPasswordOnly");
7632
- M && (t = new WritableStream()), t = Na(t), await Jt(t, S ? m : C);
7633
- const { writable: O } = t, { onstart: $, onprogress: H, onend: j } = r, G = {
7631
+ const E = ve(s, r, "signal"), B = ve(s, r, "checkPasswordOnly");
7632
+ B && (t = new WritableStream()), t = ja(t), await Jt(t, S ? m : O);
7633
+ const { writable: L } = t, { onstart: Y, onprogress: H, onend: j } = r, K = {
7634
7634
  options: {
7635
- codecType: Ui,
7636
- password: A,
7637
- rawPassword: P,
7635
+ codecType: Li,
7636
+ password: R,
7637
+ rawPassword: C,
7638
7638
  zipCrypto: F,
7639
7639
  encryptionStrength: f && f.strength,
7640
7640
  signed: ve(s, r, "checkSignature") && !S,
@@ -7645,50 +7645,50 @@ class pc {
7645
7645
  useWebWorkers: ve(s, r, "useWebWorkers"),
7646
7646
  useCompressionStream: ve(s, r, "useCompressionStream"),
7647
7647
  transferStreams: ve(s, r, "transferStreams"),
7648
- checkPasswordOnly: M
7648
+ checkPasswordOnly: B
7649
7649
  },
7650
7650
  config: x,
7651
- streamOptions: { signal: E, size: D, onstart: $, onprogress: H, onend: j }
7651
+ streamOptions: { signal: E, size: P, onstart: Y, onprogress: H, onend: j }
7652
7652
  };
7653
- let K = 0;
7653
+ let G = 0;
7654
7654
  try {
7655
- ({ outputSize: K } = await Ia({ readable: b, writable: O }, G));
7656
- } catch (te) {
7657
- if (!M || te.message != Mn)
7658
- throw te;
7655
+ ({ outputSize: G } = await Da({ readable: k, writable: L }, K));
7656
+ } catch (re) {
7657
+ if (!B || re.message != Mn)
7658
+ throw re;
7659
7659
  } finally {
7660
- const te = ve(s, r, "preventClose");
7661
- O.size += K, !te && !O.locked && await O.getWriter().close();
7660
+ const re = ve(s, r, "preventClose");
7661
+ L.size += G, !re && !L.locked && await L.getWriter().close();
7662
7662
  }
7663
- return M ? Ee : t.getData ? t.getData() : O;
7663
+ return B ? Ee : t.getData ? t.getData() : L;
7664
7664
  }
7665
7665
  }
7666
- function Xi(n, t, e) {
7667
- const r = n.rawBitFlag = he(t, e + 2), s = (r & Sr) == Sr, a = ce(t, e + 6);
7666
+ function Ki(n, t, e) {
7667
+ const r = n.rawBitFlag = he(t, e + 2), s = (r & Er) == Er, a = ce(t, e + 6);
7668
7668
  Object.assign(n, {
7669
7669
  encrypted: s,
7670
7670
  version: he(t, e),
7671
7671
  bitFlag: {
7672
- level: (r & Ho) >> 1,
7673
- dataDescriptor: (r & Ar) == Ar,
7674
- languageEncodingFlag: (r & Tr) == Tr
7672
+ level: (r & Yo) >> 1,
7673
+ dataDescriptor: (r & Sr) == Sr,
7674
+ languageEncodingFlag: (r & Ar) == Ar
7675
7675
  },
7676
7676
  rawLastModDate: a,
7677
- lastModDate: _c(a),
7677
+ lastModDate: bc(a),
7678
7678
  filenameLength: he(t, e + 22),
7679
7679
  extraFieldLength: he(t, e + 24)
7680
7680
  });
7681
7681
  }
7682
- function zi(n, t, e, r, s) {
7682
+ function Xi(n, t, e, r, s) {
7683
7683
  const { rawExtraField: a } = t, c = t.extraField = /* @__PURE__ */ new Map(), l = xe(new Uint8Array(a));
7684
7684
  let f = 0;
7685
7685
  try {
7686
7686
  for (; f < a.length; ) {
7687
- const h = he(l, f), v = he(l, f + 2);
7687
+ const h = he(l, f), b = he(l, f + 2);
7688
7688
  c.set(h, {
7689
7689
  type: h,
7690
- data: a.slice(f + 4, f + 4 + v)
7691
- }), f += 4 + v;
7690
+ data: a.slice(f + 4, f + 4 + b)
7691
+ }), f += 4 + b;
7692
7692
  }
7693
7693
  } catch {
7694
7694
  }
@@ -7698,34 +7698,34 @@ function zi(n, t, e, r, s) {
7698
7698
  uncompressedSize: ce(e, r + 18),
7699
7699
  compressedSize: ce(e, r + 14)
7700
7700
  });
7701
- const x = c.get(Uo);
7702
- x && (mc(x, t), t.extraFieldZip64 = x);
7703
- const w = c.get(No);
7704
- w && (Jr(w, qi, ji, t, n), t.extraFieldUnicodePath = w);
7705
- const g = c.get(qo);
7706
- g && (Jr(g, Hi, $i, t, n), t.extraFieldUnicodeComment = g);
7707
- const T = c.get(Oo);
7708
- T ? (hc(T, t, _), t.extraFieldAES = T) : t.compressionMethod = _;
7709
- const C = c.get(Bo);
7710
- C && (xc(C, t), t.extraFieldNTFS = C);
7711
- const m = c.get(Mo);
7712
- m && (wc(m, t, s), t.extraFieldExtendedTimestamp = m);
7713
- const d = c.get(jo);
7701
+ const x = c.get(Wo);
7702
+ x && (xc(x, t), t.extraFieldZip64 = x);
7703
+ const w = c.get(jo);
7704
+ w && (zr(w, Ni, qi, t, n), t.extraFieldUnicodePath = w);
7705
+ const g = c.get(Ho);
7706
+ g && (zr(g, ji, Hi, t, n), t.extraFieldUnicodeComment = g);
7707
+ const T = c.get(Bo);
7708
+ T ? (wc(T, t, _), t.extraFieldAES = T) : t.compressionMethod = _;
7709
+ const O = c.get(Mo);
7710
+ O && (gc(O, t), t.extraFieldNTFS = O);
7711
+ const m = c.get(qo);
7712
+ m && (_c(m, t, s), t.extraFieldExtendedTimestamp = m);
7713
+ const d = c.get($o);
7714
7714
  d && (t.extraFieldUSDZ = d);
7715
7715
  }
7716
- function mc(n, t) {
7716
+ function xc(n, t) {
7717
7717
  t.zip64 = !0;
7718
- const e = xe(n.data), r = uc.filter(([s, a]) => t[s] == a);
7718
+ const e = xe(n.data), r = pc.filter(([s, a]) => t[s] == a);
7719
7719
  for (let s = 0, a = 0; s < r.length; s++) {
7720
7720
  const [c, l] = r[s];
7721
7721
  if (t[c] == l) {
7722
- const f = dc[l];
7722
+ const f = mc[l];
7723
7723
  t[c] = n[c] = f.getValue(e, a), a += f.bytes;
7724
7724
  } else if (n[c])
7725
- throw new Error(cc);
7725
+ throw new Error(fc);
7726
7726
  }
7727
7727
  }
7728
- function Jr(n, t, e, r, s) {
7728
+ function zr(n, t, e, r, s) {
7729
7729
  const a = xe(n.data), c = new Xt();
7730
7730
  c.append(s[e]);
7731
7731
  const l = xe(new Uint8Array(4));
@@ -7737,7 +7737,7 @@ function Jr(n, t, e, r, s) {
7737
7737
  valid: !s.bitFlag.languageEncodingFlag && f == ce(l, 0)
7738
7738
  }), n.valid && (r[t] = n[t], r[t + "UTF8"] = !0);
7739
7739
  }
7740
- function hc(n, t, e) {
7740
+ function wc(n, t, e) {
7741
7741
  const r = xe(n.data), s = xt(r, 4);
7742
7742
  Object.assign(n, {
7743
7743
  vendorVersion: xt(r, 0),
@@ -7747,13 +7747,13 @@ function hc(n, t, e) {
7747
7747
  compressionMethod: he(r, 5)
7748
7748
  }), t.compressionMethod = n.compressionMethod;
7749
7749
  }
7750
- function xc(n, t) {
7750
+ function gc(n, t) {
7751
7751
  const e = xe(n.data);
7752
7752
  let r = 4, s;
7753
7753
  try {
7754
7754
  for (; r < n.data.length && !s; ) {
7755
7755
  const a = he(e, r), c = he(e, r + 2);
7756
- a == Wo && (s = n.data.slice(r + 4, r + 4 + c)), r += 4 + c;
7756
+ a == No && (s = n.data.slice(r + 4, r + 4 + c)), r += 4 + c;
7757
7757
  }
7758
7758
  } catch {
7759
7759
  }
@@ -7771,9 +7771,9 @@ function xc(n, t) {
7771
7771
  } catch {
7772
7772
  }
7773
7773
  }
7774
- function wc(n, t, e) {
7774
+ function _c(n, t, e) {
7775
7775
  const r = xe(n.data), s = xt(r, 0), a = [], c = [];
7776
- e ? ((s & 1) == 1 && (a.push(Cn), c.push(In)), (s & 2) == 2 && (a.push(Gi), c.push(Ha)), (s & 4) == 4 && (a.push(Ki), c.push($a))) : n.data.length >= 5 && (a.push(Cn), c.push(In));
7776
+ e ? ((s & 1) == 1 && (a.push(Cn), c.push(In)), (s & 2) == 2 && (a.push(Vi), c.push(Ya)), (s & 4) == 4 && (a.push(Gi), c.push(Za))) : n.data.length >= 5 && (a.push(Cn), c.push(In));
7777
7777
  let l = 1;
7778
7778
  a.forEach((f, _) => {
7779
7779
  if (n.data.length >= l + 4) {
@@ -7785,9 +7785,9 @@ function wc(n, t, e) {
7785
7785
  l += 4;
7786
7786
  });
7787
7787
  }
7788
- async function gc(n, t, e, r, s) {
7788
+ async function yc(n, t, e, r, s) {
7789
7789
  const a = new Uint8Array(4), c = xe(a);
7790
- yc(c, 0, t);
7790
+ vc(c, 0, t);
7791
7791
  const l = r + s;
7792
7792
  return await f(r) || await f(Math.min(l, e));
7793
7793
  async function f(_) {
@@ -7803,7 +7803,7 @@ async function gc(n, t, e, r, s) {
7803
7803
  function ve(n, t, e) {
7804
7804
  return t[e] === Ee ? n.options[e] : t[e];
7805
7805
  }
7806
- function _c(n) {
7806
+ function bc(n) {
7807
7807
  const t = (n & 4294901760) >> 16, e = n & 65535;
7808
7808
  try {
7809
7809
  return new Date(1980 + ((t & 65024) >> 9), ((t & 480) >> 5) - 1, t & 31, (e & 63488) >> 11, (e & 2016) >> 5, (e & 31) * 2, 0);
@@ -7825,21 +7825,21 @@ function ce(n, t) {
7825
7825
  function Zt(n, t) {
7826
7826
  return Number(n.getBigUint64(t, !0));
7827
7827
  }
7828
- function yc(n, t, e) {
7828
+ function vc(n, t, e) {
7829
7829
  n.setUint32(t, e, !0);
7830
7830
  }
7831
7831
  function xe(n) {
7832
7832
  return new DataView(n.buffer);
7833
7833
  }
7834
- let Ji;
7834
+ let zi;
7835
7835
  try {
7836
- Ji = import.meta.url;
7836
+ zi = import.meta.url;
7837
7837
  } catch {
7838
7838
  }
7839
- Wn({ baseURL: Ji });
7840
- Da(Wn);
7841
- Wn({ Deflate: so, Inflate: To });
7842
- class bc {
7839
+ Bn({ baseURL: zi });
7840
+ Ua(Bn);
7841
+ Bn({ Deflate: ao, Inflate: Fo });
7842
+ class kc {
7843
7843
  constructor(t) {
7844
7844
  this.fileTree = t;
7845
7845
  }
@@ -7876,19 +7876,19 @@ class Qt {
7876
7876
  this.entries = /* @__PURE__ */ new Map(), this.zipReader = t;
7877
7877
  }
7878
7878
  static fromStream(t) {
7879
- const e = new zr(
7879
+ const e = new Xr(
7880
7880
  new Rn(new Vt(t, "archive.zip"))
7881
7881
  );
7882
7882
  return new Qt(e);
7883
7883
  }
7884
7884
  static fromArrayBuffer(t) {
7885
- const e = new zr(
7885
+ const e = new Xr(
7886
7886
  new Rn(new Blob([t]))
7887
7887
  );
7888
7888
  return new Qt(e);
7889
7889
  }
7890
7890
  async read(t) {
7891
- const e = await this.getEntry(t), r = await e.getData(new Ba());
7891
+ const e = await this.getEntry(t), r = await e.getData(new Ma());
7892
7892
  return new Vt(r.stream(), t, {
7893
7893
  filesize: e.uncompressedSize
7894
7894
  });
@@ -7908,7 +7908,7 @@ class Qt {
7908
7908
  return this.entries;
7909
7909
  }
7910
7910
  }
7911
- class vc {
7911
+ class Ec {
7912
7912
  /**
7913
7913
  * Creates a new OverlayFilesystem.
7914
7914
  *
@@ -7948,7 +7948,7 @@ class vc {
7948
7948
  );
7949
7949
  }
7950
7950
  }
7951
- class kc {
7951
+ class Sc {
7952
7952
  constructor(t) {
7953
7953
  this.root = t;
7954
7954
  }
@@ -7985,7 +7985,7 @@ class kc {
7985
7985
  )
7986
7986
  ) : e(
7987
7987
  new Vt(
7988
- Ec(a),
7988
+ Ac(a),
7989
7989
  t,
7990
7990
  {
7991
7991
  filesize: l.size
@@ -7996,21 +7996,21 @@ class kc {
7996
7996
  });
7997
7997
  }
7998
7998
  }
7999
- function Ec(n) {
7999
+ function Ac(n) {
8000
8000
  return new ReadableStream({
8001
8001
  start(e) {
8002
8002
  n.on("data", (r) => e.enqueue(r)), n.on("end", () => e.close());
8003
8003
  }
8004
8004
  });
8005
8005
  }
8006
- async function Sc({
8006
+ async function Tc({
8007
8007
  sourceString: n,
8008
8008
  blueprintMayReadAdjacentFiles: t
8009
8009
  }) {
8010
8010
  if (!n)
8011
8011
  return;
8012
8012
  if (n.startsWith("http://") || n.startsWith("https://"))
8013
- return await as(n);
8013
+ return await cs(n);
8014
8014
  let e = Je.resolve(process.cwd(), n);
8015
8015
  if (!ye.existsSync(e))
8016
8016
  throw new Error(`Blueprint file does not exist: ${e}`);
@@ -8034,9 +8034,9 @@ async function Sc({
8034
8034
  `Blueprint file at ${e} is not a valid JSON file`
8035
8035
  );
8036
8036
  }
8037
- const c = Je.dirname(e), l = new kc(c);
8038
- return new vc([
8039
- new bc({
8037
+ const c = Je.dirname(e), l = new Sc(c);
8038
+ return new Ec([
8039
+ new kc({
8040
8040
  "blueprint.json": a
8041
8041
  }),
8042
8042
  /**
@@ -8046,7 +8046,7 @@ async function Sc({
8046
8046
  {
8047
8047
  read(f) {
8048
8048
  if (!t)
8049
- throw new oi(
8049
+ throw new si(
8050
8050
  `Error: Blueprint contained tried to read a local file at path "${f}" (via a resource of type "bundled"). Playground restricts access to local resources by default as a security measure.
8051
8051
 
8052
8052
  You can allow this Blueprint to read files from the same parent directory by explicitly adding the --blueprint-may-read-adjacent-files option to your command.`
@@ -8062,8 +8062,8 @@ You can allow this Blueprint to read files from the same parent directory by exp
8062
8062
  );
8063
8063
  }
8064
8064
  }
8065
- async function jc() {
8066
- const n = gs(process.argv.slice(2)).usage("Usage: wp-playground <command> [options]").positional("command", {
8065
+ async function Yc() {
8066
+ const n = bs(process.argv.slice(2)).usage("Usage: wp-playground <command> [options]").positional("command", {
8067
8067
  describe: "Command to run",
8068
8068
  choices: ["server", "run-blueprint", "build-snapshot"],
8069
8069
  demandOption: !0
@@ -8078,8 +8078,8 @@ async function jc() {
8078
8078
  }).option("php", {
8079
8079
  describe: "PHP version to use.",
8080
8080
  type: "string",
8081
- default: Qr,
8082
- choices: ss
8081
+ default: Jr,
8082
+ choices: is
8083
8083
  }).option("wp", {
8084
8084
  describe: "WordPress version to use.",
8085
8085
  type: "string",
@@ -8088,12 +8088,12 @@ async function jc() {
8088
8088
  describe: "Mount a directory to the PHP runtime (can be used multiple times). Format: /host/path:/vfs/path",
8089
8089
  type: "array",
8090
8090
  string: !0,
8091
- coerce: Kn
8091
+ coerce: Gn
8092
8092
  }).option("mount-before-install", {
8093
8093
  describe: "Mount a directory to the PHP runtime before WordPress installation (can be used multiple times). Format: /host/path:/vfs/path",
8094
8094
  type: "array",
8095
8095
  string: !0,
8096
- coerce: Kn
8096
+ coerce: Gn
8097
8097
  }).option("mount-dir", {
8098
8098
  describe: 'Mount a directory to the PHP runtime (can be used multiple times). Format: "/host/path" "/vfs/path"',
8099
8099
  type: "array",
@@ -8105,7 +8105,7 @@ async function jc() {
8105
8105
  type: "string",
8106
8106
  nargs: 2,
8107
8107
  array: !0,
8108
- coerce: Cs
8108
+ coerce: Ps
8109
8109
  }).option("login", {
8110
8110
  describe: "Should log the user in",
8111
8111
  type: "boolean",
@@ -8148,12 +8148,16 @@ Warning: Following symlinks will expose files outside mounted directories to Pla
8148
8148
  default: !1,
8149
8149
  // Hide this option because we want to replace with a more general log-level flag.
8150
8150
  hidden: !0
8151
+ }).option("internal-cookie-store", {
8152
+ describe: "Enable internal cookie handling. When enabled, Playground will manage cookies internally using an HttpCookieStore that persists cookies across requests. When disabled, cookies are handled externally (e.g., by a browser in Node.js environments).",
8153
+ type: "boolean",
8154
+ default: !1
8151
8155
  }).option("experimentalMultiWorker", {
8152
8156
  describe: "Enable experimental multi-worker support which requires JSPI and a /wordpress directory backed by a real filesystem. Pass a positive number to specify the number of workers to use. Otherwise, default to the number of CPUs minus 1.",
8153
8157
  type: "number",
8154
- coerce: (s) => s ?? hs().length - 1
8158
+ coerce: (s) => s ?? ws().length - 1
8155
8159
  }).showHelpOnFail(!1).check(async (s) => {
8156
- if (s.wp !== void 0 && !Fs(s.wp))
8160
+ if (s.wp !== void 0 && !Is(s.wp))
8157
8161
  try {
8158
8162
  new URL(s.wp);
8159
8163
  } catch {
@@ -8166,10 +8170,6 @@ Warning: Following symlinks will expose files outside mounted directories to Pla
8166
8170
  throw new Error(
8167
8171
  "The --experimentalMultiWorker flag must be a positive integer greater than 1."
8168
8172
  );
8169
- if (!await Rs())
8170
- throw new Error(
8171
- "JavaScript Promise Integration (JSPI) is not enabled. Please enable JSPI in your JavaScript runtime before using the --experimentalMultiWorker flag."
8172
- );
8173
8173
  const a = (c) => c.vfsPath === "/wordpress";
8174
8174
  if (!s.mount?.some(a) && !s.mountBeforeInstall?.some(
8175
8175
  a
@@ -8186,7 +8186,7 @@ Warning: Following symlinks will expose files outside mounted directories to Pla
8186
8186
  const r = {
8187
8187
  ...t,
8188
8188
  command: e,
8189
- blueprint: await Sc({
8189
+ blueprint: await Tc({
8190
8190
  sourceString: t.blueprint,
8191
8191
  blueprintMayReadAdjacentFiles: t.blueprintMayReadAdjacentFiles
8192
8192
  }),
@@ -8197,20 +8197,20 @@ Warning: Following symlinks will expose files outside mounted directories to Pla
8197
8197
  ]
8198
8198
  };
8199
8199
  try {
8200
- return Ac(r);
8200
+ return Rc(r);
8201
8201
  } catch (s) {
8202
- const a = oi.getReportableCause(s);
8202
+ const a = si.getReportableCause(s);
8203
8203
  if (a)
8204
8204
  console.log(""), console.log(a.message), process.exit(1);
8205
8205
  else
8206
8206
  throw s;
8207
8207
  }
8208
8208
  }
8209
- async function Ac(n) {
8209
+ async function Rc(n) {
8210
8210
  let t, e;
8211
8211
  const r = [];
8212
- n.autoMount && (n = _s(n));
8213
- async function s(C) {
8212
+ n.autoMount && (n = vs(n));
8213
+ async function s(m) {
8214
8214
  await e.run({
8215
8215
  code: `<?php
8216
8216
  $zip = new ZipArchive();
@@ -8231,152 +8231,164 @@ async function Ac(n) {
8231
8231
 
8232
8232
  `
8233
8233
  });
8234
- const m = await e.readFileAsBuffer("/tmp/build.zip");
8235
- ye.writeFileSync(C, m);
8234
+ const d = await e.readFileAsBuffer("/tmp/build.zip");
8235
+ ye.writeFileSync(m, d);
8236
8236
  }
8237
8237
  async function a() {
8238
- const C = cs(n.blueprint) ? n.blueprint : {
8238
+ const m = ls(n.blueprint) ? n.blueprint : {
8239
8239
  login: n.login,
8240
8240
  ...n.blueprint,
8241
8241
  preferredVersions: {
8242
- php: n.php ?? n?.blueprint?.preferredVersions?.php ?? Qr,
8242
+ php: n.php ?? n?.blueprint?.preferredVersions?.php ?? Jr,
8243
8243
  wp: n.wp ?? n?.blueprint?.preferredVersions?.wp ?? "latest",
8244
8244
  ...n.blueprint?.preferredVersions || {}
8245
8245
  }
8246
- }, m = new rs();
8247
- let d = "", h = !1;
8248
- return m.addEventListener("progress", (v) => {
8249
- if (h)
8246
+ }, d = new ns();
8247
+ let h = "", b = !1;
8248
+ return d.addEventListener("progress", (R) => {
8249
+ if (b)
8250
8250
  return;
8251
- h = v.detail.progress === 100;
8252
- const A = Math.floor(v.detail.progress);
8253
- d = v.detail.caption || d || "Running the Blueprint";
8254
- const P = `${d.trim()} – ${A}%`;
8251
+ b = R.detail.progress === 100;
8252
+ const C = Math.floor(R.detail.progress);
8253
+ h = R.detail.caption || h || "Running the Blueprint";
8254
+ const S = `${h.trim()} – ${C}%`;
8255
8255
  n.quiet || l(
8256
8256
  process.stdout,
8257
- P,
8258
- h
8257
+ S,
8258
+ b
8259
8259
  );
8260
- }), await ls(C, {
8261
- progress: m
8260
+ }), await fs(m, {
8261
+ progress: d
8262
8262
  });
8263
8263
  }
8264
8264
  let c = "";
8265
- function l(C, m, d) {
8266
- m !== c && (c = m, C.isTTY ? (C.cursorTo(0), C.write(m), C.clearLine(1), d && C.write(`
8267
- `)) : C.write(`${m}
8265
+ function l(m, d, h) {
8266
+ d !== c && (c = d, m.isTTY ? (m.cursorTo(0), m.write(d), m.clearLine(1), h && m.write(`
8267
+ `)) : m.write(`${d}
8268
8268
  `));
8269
8269
  }
8270
- async function f(C) {
8271
- const m = new ds(C);
8272
- return new Promise((d, h) => {
8273
- function v(P) {
8274
- P === "worker-script-initialized" && (d(m), m.off("message", v));
8275
- }
8276
- function A(P) {
8277
- const S = new Error(
8278
- `Worker failed to load at ${C}. ${P.message ? `Original error: ${P.message}` : ""}`
8279
- );
8280
- S.filename = C, h(S), m.off("error", A);
8270
+ async function f(m) {
8271
+ const d = new ms(m);
8272
+ return new Promise(
8273
+ (h, b) => {
8274
+ d.once("message", function(R) {
8275
+ R.command === "worker-script-initialized" && h({ worker: d, phpPort: R.phpPort });
8276
+ }), d.once("error", function(R) {
8277
+ console.error(R);
8278
+ const C = new Error(
8279
+ `Worker failed to load at ${m}. ${R.message ? `Original error: ${R.message}` : ""}`
8280
+ );
8281
+ C.filename = m, b(C);
8282
+ });
8281
8283
  }
8282
- m.on("message", v), m.on("error", A);
8283
- });
8284
+ );
8284
8285
  }
8285
- function _(C) {
8286
- const m = new URL(
8287
- As,
8286
+ function _(m) {
8287
+ const d = new URL(
8288
+ Fs,
8288
8289
  import.meta.url
8289
- ), d = [];
8290
- for (let h = 0; h < C; h++)
8291
- d.push(f(m));
8292
- return Promise.all(d);
8290
+ ), h = [];
8291
+ for (let b = 0; b < m; b++)
8292
+ h.push(f(d));
8293
+ return Promise.all(h);
8293
8294
  }
8294
8295
  n.quiet && (me.handlers = []);
8295
- const x = await a(), w = await import("fs-ext").then((C) => C.flockSync).catch(() => {
8296
+ const x = await a(), w = await import("fs-ext").then((m) => m.flockSync).catch(() => {
8296
8297
  me.warn(
8297
8298
  "The fs-ext package is not installed. Internal file locking will not be integrated with host OS file locking."
8298
8299
  );
8299
- }), g = new ws(w);
8300
- let T = !1;
8301
- return me.log("Starting a PHP server..."), ks({
8300
+ }), g = new _s(w);
8301
+ async function T() {
8302
+ const { port1: m, port2: d } = new ps();
8303
+ return await ys() ? os(g, null, m) : await as(g, m), d;
8304
+ }
8305
+ let O = !1;
8306
+ return me.log("Starting a PHP server..."), As({
8302
8307
  port: n.port,
8303
- onBind: async (C, m) => {
8304
- const d = `http://127.0.0.1:${m}`, h = n.experimentalMultiWorker ?? 1, v = _(h);
8308
+ onBind: async (m, d) => {
8309
+ const h = `http://127.0.0.1:${d}`, b = n.experimentalMultiWorker ?? 1, R = _(b);
8305
8310
  me.log(`Setting up WordPress ${n.wp}`);
8306
- let A;
8307
- const P = new is();
8311
+ let C;
8312
+ const S = new rs();
8308
8313
  if (!n.skipWordPressSetup) {
8309
- let b = !1;
8310
- P.addEventListener("progress", (E) => {
8311
- if (b)
8314
+ let E = !1;
8315
+ S.addEventListener("progress", (B) => {
8316
+ if (E)
8312
8317
  return;
8313
- const { loaded: M, total: O } = E.detail, $ = Math.floor(
8314
- Math.min(100, 100 * M / O)
8318
+ const { loaded: L, total: Y } = B.detail, H = Math.floor(
8319
+ Math.min(100, 100 * L / Y)
8315
8320
  );
8316
- b = $ === 100, n.quiet || l(
8321
+ E = H === 100, n.quiet || l(
8317
8322
  process.stdout,
8318
- `Downloading WordPress ${$}%...`,
8319
- b
8323
+ `Downloading WordPress ${H}%...`,
8324
+ E
8320
8325
  );
8321
- }), A = await ps(n.wp), me.log(
8322
- `Resolved WordPress release URL: ${A?.releaseUrl}`
8326
+ }), C = await hs(n.wp), me.log(
8327
+ `Resolved WordPress release URL: ${C?.releaseUrl}`
8323
8328
  );
8324
8329
  }
8325
- const S = A && Je.join(
8330
+ const A = C && Je.join(
8326
8331
  kn,
8327
- `prebuilt-wp-content-for-wp-${A.version}.zip`
8328
- ), R = A ? ye.existsSync(S) ? si(S) : await ii(
8329
- A.releaseUrl,
8330
- `${A.version}.zip`,
8331
- P
8332
+ `prebuilt-wp-content-for-wp-${C.version}.zip`
8333
+ ), F = C ? ye.existsSync(A) ? ii(A) : await ri(
8334
+ C.releaseUrl,
8335
+ `${C.version}.zip`,
8336
+ S
8332
8337
  ) : void 0;
8333
8338
  me.log("Fetching SQLite integration plugin...");
8334
- const F = n.skipSqliteSetup ? void 0 : await bs(P), y = n.followSymlinks === !0, D = n.experimentalTrace === !0;
8339
+ const y = n.skipSqliteSetup ? void 0 : await Es(S), P = n.followSymlinks === !0, k = n.experimentalTrace === !0;
8335
8340
  try {
8336
- const b = n.mountBeforeInstall || [], E = n.mount || [], [M, ...O] = await v;
8337
- e = Yn(M), r.push({
8341
+ const E = n.mountBeforeInstall || [], B = n.mount || [], [L, ...Y] = await R;
8342
+ e = Yn(
8343
+ L.phpPort
8344
+ ), r.push({
8338
8345
  playground: e,
8339
- worker: M
8340
- }), await e.isConnected(), Zn(g, void 0, M), me.log("Booting WordPress...");
8341
- const $ = Math.floor(
8342
- Number.MAX_SAFE_INTEGER / h
8346
+ worker: L.worker
8347
+ }), await e.isConnected();
8348
+ const H = await T();
8349
+ me.log("Booting WordPress...");
8350
+ const j = Math.floor(
8351
+ Number.MAX_SAFE_INTEGER / b
8343
8352
  );
8344
- if (await e.boot({
8353
+ if (await e.useFileLockManager(H), await e.boot({
8345
8354
  phpVersion: x.versions.php,
8346
8355
  wpVersion: x.versions.wp,
8347
- absoluteUrl: d,
8348
- mountsBeforeWpInstall: b,
8349
- mountsAfterWpInstall: E,
8350
- wordPressZip: R && await R.arrayBuffer(),
8351
- sqliteIntegrationPluginZip: await F.arrayBuffer(),
8356
+ absoluteUrl: h,
8357
+ mountsBeforeWpInstall: E,
8358
+ mountsAfterWpInstall: B,
8359
+ wordPressZip: F && await F.arrayBuffer(),
8360
+ sqliteIntegrationPluginZip: await y.arrayBuffer(),
8352
8361
  firstProcessId: 0,
8353
- processIdSpaceLength: $,
8354
- followSymlinks: y,
8355
- trace: D
8356
- }), A && !n.mountBeforeInstall && !ye.existsSync(S) && (me.log(
8362
+ processIdSpaceLength: j,
8363
+ followSymlinks: P,
8364
+ trace: k,
8365
+ internalCookieStore: n.internalCookieStore
8366
+ }), C && !n.mountBeforeInstall && !ye.existsSync(A) && (me.log(
8357
8367
  "Caching preinstalled WordPress for the next boot..."
8358
8368
  ), ye.writeFileSync(
8359
- S,
8360
- await Vn(e, "/wordpress")
8361
- ), me.log("Cached!")), t = new Ts(e), await e.isReady(), T = !0, me.log("Booted!"), x && (me.log("Running the Blueprint..."), await fs(x, e), me.log("Finished running the blueprint")), n.command === "build-snapshot" ? (await s(n.outfile), me.log(`WordPress exported to ${n.outfile}`), process.exit(0)) : n.command === "run-blueprint" && (me.log("Blueprint executed"), process.exit(0)), n.experimentalMultiWorker && n.experimentalMultiWorker > 1) {
8369
+ A,
8370
+ await Zn(e, "/wordpress")
8371
+ ), me.log("Cached!")), t = new Cs(e), await e.isReady(), O = !0, me.log("Booted!"), x && (me.log("Running the Blueprint..."), await us(x, e), me.log("Finished running the blueprint")), n.command === "build-snapshot" ? (await s(n.outfile), me.log(`WordPress exported to ${n.outfile}`), process.exit(0)) : n.command === "run-blueprint" && (me.log("Blueprint executed"), process.exit(0)), n.experimentalMultiWorker && n.experimentalMultiWorker > 1) {
8362
8372
  me.log("Preparing additional workers...");
8363
- const H = await Vn(
8373
+ const K = await Zn(
8364
8374
  e,
8365
8375
  "/internal"
8366
- ), j = $;
8376
+ ), G = j;
8367
8377
  await Promise.all(
8368
- O.map(async (G, K) => {
8369
- const te = Yn(G);
8378
+ Y.map(async (re, Z) => {
8379
+ const X = Yn(re.phpPort);
8370
8380
  r.push({
8371
- playground: te,
8372
- worker: G
8373
- }), await te.isConnected(), Zn(g, void 0, G);
8374
- const Z = j + K * $;
8375
- await te.boot({
8381
+ playground: X,
8382
+ worker: re.worker
8383
+ }), await X.isConnected();
8384
+ const $ = G + Z * j, J = await T();
8385
+ await X.useFileLockManager(
8386
+ J
8387
+ ), await X.boot({
8376
8388
  phpVersion: x.versions.php,
8377
- absoluteUrl: d,
8378
- mountsBeforeWpInstall: b,
8379
- mountsAfterWpInstall: E,
8389
+ absoluteUrl: h,
8390
+ mountsBeforeWpInstall: E,
8391
+ mountsAfterWpInstall: B,
8380
8392
  // Skip WordPress zip because we share the /wordpress directory
8381
8393
  // populated by the initial worker.
8382
8394
  wordPressZip: void 0,
@@ -8384,45 +8396,46 @@ async function Ac(n) {
8384
8396
  // will copy it from primary's `/internal` directory.
8385
8397
  sqliteIntegrationPluginZip: void 0,
8386
8398
  dataSqlPath: "/wordpress/wp-content/database/.ht.sqlite",
8387
- firstProcessId: Z,
8388
- processIdSpaceLength: $,
8389
- followSymlinks: y,
8390
- trace: D
8391
- }), await te.isReady(), await te.writeFile(
8399
+ firstProcessId: $,
8400
+ processIdSpaceLength: j,
8401
+ followSymlinks: P,
8402
+ trace: k,
8403
+ internalCookieStore: n.internalCookieStore
8404
+ }), await X.isReady(), await X.writeFile(
8392
8405
  "/tmp/internal.zip",
8393
- H
8394
- ), await us(
8395
- te,
8406
+ K
8407
+ ), await ds(
8408
+ X,
8396
8409
  "/tmp/internal.zip",
8397
8410
  "/internal"
8398
- ), await te.unlink(
8411
+ ), await X.unlink(
8399
8412
  "/tmp/internal.zip"
8400
- ), t.addWorker(te);
8413
+ ), t.addWorker(X);
8401
8414
  })
8402
8415
  ), me.log("Ready!");
8403
8416
  }
8404
- return me.log(`WordPress is running on ${d}`), {
8417
+ return me.log(`WordPress is running on ${h}`), {
8405
8418
  playground: e,
8406
- server: C,
8419
+ server: m,
8407
8420
  [Symbol.asyncDispose]: async function() {
8408
8421
  await Promise.all(
8409
8422
  r.map(
8410
- async ({ playground: j, worker: G }) => {
8411
- await j.dispose(), await G.terminate();
8423
+ async ({ playground: G, worker: re }) => {
8424
+ await G.dispose(), await re.terminate();
8412
8425
  }
8413
8426
  )
8414
- ), await new Promise((j) => C.close(j));
8427
+ ), await new Promise((G) => m.close(G));
8415
8428
  }
8416
8429
  };
8417
- } catch (b) {
8430
+ } catch (E) {
8418
8431
  if (!n.debug)
8419
- throw b;
8420
- const E = await e.readFileAsText(ns);
8421
- throw new Error(E, { cause: b });
8432
+ throw E;
8433
+ const B = await e.readFileAsText(ts);
8434
+ throw new Error(B, { cause: E });
8422
8435
  }
8423
8436
  },
8424
- async handleRequest(C) {
8425
- return T ? await t.handleRequest(C) : os.forHttpCode(
8437
+ async handleRequest(m) {
8438
+ return O ? await t.handleRequest(m) : ss.forHttpCode(
8426
8439
  502,
8427
8440
  "WordPress is not ready yet"
8428
8441
  );
@@ -8430,7 +8443,7 @@ async function Ac(n) {
8430
8443
  });
8431
8444
  }
8432
8445
  export {
8433
- jc as p,
8434
- Ac as r
8446
+ Yc as p,
8447
+ Rc as r
8435
8448
  };
8436
- //# sourceMappingURL=run-cli-CbJy_CRO.js.map
8449
+ //# sourceMappingURL=run-cli-DyJ6_Vj8.js.map