@seayoo-web/app-info 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,21 +1,26 @@
1
- import Dt from "jszip";
2
- function st(e) {
1
+ import Bt from "jszip";
2
+ function ot(e) {
3
3
  return typeof e == "string" ? e : `${e}`;
4
4
  }
5
5
  function _r(e) {
6
- return typeof e == "number" ? e : typeof e == "string" ? /^\d+(?:\.\d+)/.test(e) ? +e : Number(e) : NaN;
6
+ if (typeof e == "number") return e;
7
+ if (typeof e == "string") {
8
+ const n = e.match(/^-?\d+(?:\.\d+)?/);
9
+ return n ? +n[0] : NaN;
10
+ }
11
+ return NaN;
7
12
  }
8
- function M(e) {
13
+ function B(e) {
9
14
  return e instanceof Error ? e : new Error(String(e));
10
15
  }
11
- function Bt(e) {
16
+ function zt(e) {
12
17
  return `data:image/png;base64,${e}`;
13
18
  }
14
- async function zt(e, n, t) {
19
+ async function Mt(e, n, t) {
15
20
  const a = e.file(n) || e.filter((l) => l.includes(n))[0];
16
21
  if (!a)
17
22
  return new Error(`not found ${n}`);
18
- const s = await a.async(t).catch(M);
23
+ const s = await a.async(t).catch(B);
19
24
  return s instanceof Error ? new Error(`read ${n} error: ${s.message}`) : { name: a.name, content: s };
20
25
  }
21
26
  function wr(e) {
@@ -27,17 +32,17 @@ function wr(e) {
27
32
  t += String.fromCharCode(n[a]);
28
33
  return btoa(t);
29
34
  }
30
- const Ht = Dt.loadAsync;
35
+ const Xt = Bt.loadAsync;
31
36
  class Os {
32
37
  zip;
33
38
  constructor(n) {
34
- this.zip = Ht(n).catch(M);
39
+ this.zip = Xt(n).catch(B);
35
40
  }
36
41
  async parse(n) {
37
42
  const t = await this.zip;
38
43
  if (t instanceof Error)
39
44
  return new Error(`load file error: ${t.message}`);
40
- const a = await yr(t);
45
+ const a = await yr(t).catch(B);
41
46
  if (a instanceof Error)
42
47
  return new Error(`read pack.info error: ${a.message}`);
43
48
  const s = {
@@ -48,70 +53,70 @@ class Os {
48
53
  };
49
54
  if (n?.ignoreIcon)
50
55
  return s;
51
- const l = a.packages.find((I) => I.moduleType === "entry");
56
+ const l = a.packages.find((T) => T.moduleType === "entry");
52
57
  if (!l)
53
58
  return s;
54
- const c = t.file(`${l.name}.hap`);
55
- if (!c)
59
+ const d = t.file(`${l.name}.hap`);
60
+ if (!d)
56
61
  return s;
57
- const d = await c.async("arraybuffer").catch(M);
58
- if (d instanceof Error)
62
+ const c = await d.async("uint8array").catch(B);
63
+ if (c instanceof Error)
59
64
  return s;
60
- const x = await Ht(d).catch(M);
65
+ const x = await Xt(c).catch(B);
61
66
  if (x instanceof Error)
62
67
  return s;
63
- const g = await br(x);
68
+ const g = await br(x).catch(B);
64
69
  if (g instanceof Error)
65
70
  return s;
66
- const _ = await Er(x, g.app.icon);
67
- return _ instanceof Error || (s.icon = Bt(_)), s;
71
+ const w = await Er(x, g).catch(B);
72
+ return w instanceof Error || (s.icon = zt(w.iconData), s.iconPath = w.iconPath), s;
68
73
  }
69
74
  /**
70
75
  * 读取指定文件的内容
71
76
  */
72
77
  async readFile(n, t) {
73
78
  const a = await this.zip;
74
- return a instanceof Error ? new Error(`load file error: ${a.message}`) : await zt(a, n, t);
79
+ return a instanceof Error ? new Error(`load file error: ${a.message}`) : await Mt(a, n, t);
75
80
  }
76
81
  }
77
82
  async function yr(e) {
78
83
  const n = e.file("pack.info");
79
84
  if (!n)
80
- return new Error("not found pack.info file");
81
- const t = await n.async("text").catch(M);
85
+ throw new Error("not found pack.info file");
86
+ const t = await n.async("text").catch(B);
82
87
  if (t instanceof Error)
83
- return new Error(`read pack.info file error: ${t.message}`);
88
+ throw new Error(`read pack.info file error: ${t.message}`);
84
89
  if (!t)
85
- return new Error("pack.info file is empty");
90
+ throw new Error("pack.info file is empty");
86
91
  try {
87
92
  return JSON.parse(t);
88
93
  } catch (a) {
89
- const s = M(a);
90
- return new Error(`parse pack.info file error: ${s.message}`);
94
+ throw new Error(`parse pack.info file error: ${B(a).message}`);
91
95
  }
92
96
  }
93
97
  async function br(e) {
94
98
  const n = e.file("module.json") || e.file("module.json5");
95
99
  if (!n)
96
- return new Error("not found module.json file");
97
- const t = await n.async("text").catch(M);
100
+ throw new Error("not found module.json file");
101
+ const t = await n.async("text").catch(B);
98
102
  if (t instanceof Error)
99
- return new Error(`read module.json file error: ${t.message}`);
103
+ throw new Error(`read module.json file error: ${t.message}`);
100
104
  if (!t)
101
- return new Error("module.json file is empty");
105
+ throw new Error("module.json file is empty");
102
106
  try {
103
107
  return JSON.parse(t);
104
108
  } catch (a) {
105
- const s = M(a);
106
- return new Error(`parse module.json file error: ${s.message}`);
109
+ throw new Error(`parse module.json file error: ${B(a).message}`);
107
110
  }
108
111
  }
109
112
  async function Er(e, n) {
110
- const a = `resources/base/media/${(n || "app_icon").replace(/(?:^\$media:|\.[a-z]+$)/gi, "")}.png`, s = e.file(a);
111
- if (!s)
112
- return new Error(`not found icon file at ${a}`);
113
- const l = await s.async("base64").catch(M);
114
- return l instanceof Error ? new Error(`read icon file error: ${l.message}`) : l;
113
+ const s = `resources/base/media/${(n.module.mainElement && n.module.abilities.find((c) => c.name === n.module.mainElement)?.icon || n.app.icon || "app_icon").replace(/(?:^\$media:|\.[a-z]+$)/gi, "")}.png`, l = e.file(s);
114
+ if (!l)
115
+ throw new Error(`not found icon file at ${s}`);
116
+ const d = await l.async("base64").catch(B);
117
+ if (d instanceof Error)
118
+ throw new Error(`read icon file error: ${d.message}`);
119
+ return { iconData: d, iconPath: s };
115
120
  }
116
121
  function vr(e) {
117
122
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -119,99 +124,94 @@ function vr(e) {
119
124
  function Oi(e) {
120
125
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
121
126
  }
122
- var et = { exports: {} }, tt = { exports: {} }, xr = tt.exports, Xt;
127
+ var tt = { exports: {} }, it = { exports: {} }, xr = it.exports, Vt;
123
128
  function Tr() {
124
- return Xt || (Xt = 1, function(e) {
125
- /**
126
- * @license long.js (c) 2013 Daniel Wirtz <dcode@dcode.io>
127
- * Released under the Apache License, Version 2.0
128
- * see: https://github.com/dcodeIO/long.js for details
129
- */
129
+ return Vt || (Vt = 1, (function(e) {
130
130
  (function(n, t) {
131
131
  typeof Oi == "function" && e && e.exports ? e.exports = t() : (n.dcodeIO = n.dcodeIO || {}).Long = t();
132
132
  })(xr, function() {
133
- function n(y, u, T) {
134
- this.low = y | 0, this.high = u | 0, this.unsigned = !!T;
133
+ function n(b, u, I) {
134
+ this.low = b | 0, this.high = u | 0, this.unsigned = !!I;
135
135
  }
136
136
  n.prototype.__isLong__, Object.defineProperty(n.prototype, "__isLong__", {
137
137
  value: !0,
138
138
  enumerable: !1,
139
139
  configurable: !1
140
140
  });
141
- function t(y) {
142
- return (y && y.__isLong__) === !0;
141
+ function t(b) {
142
+ return (b && b.__isLong__) === !0;
143
143
  }
144
144
  n.isLong = t;
145
145
  var a = {}, s = {};
146
- function l(y, u) {
147
- var T, S, N;
148
- return u ? (y >>>= 0, (N = 0 <= y && y < 256) && (S = s[y], S) ? S : (T = d(y, (y | 0) < 0 ? -1 : 0, !0), N && (s[y] = T), T)) : (y |= 0, (N = -128 <= y && y < 128) && (S = a[y], S) ? S : (T = d(y, y < 0 ? -1 : 0, !1), N && (a[y] = T), T));
146
+ function l(b, u) {
147
+ var I, S, N;
148
+ return u ? (b >>>= 0, (N = 0 <= b && b < 256) && (S = s[b], S) ? S : (I = c(b, (b | 0) < 0 ? -1 : 0, !0), N && (s[b] = I), I)) : (b |= 0, (N = -128 <= b && b < 128) && (S = a[b], S) ? S : (I = c(b, b < 0 ? -1 : 0, !1), N && (a[b] = I), I));
149
149
  }
150
150
  n.fromInt = l;
151
- function c(y, u) {
152
- if (isNaN(y) || !isFinite(y))
153
- return u ? w : p;
151
+ function d(b, u) {
152
+ if (isNaN(b) || !isFinite(b))
153
+ return u ? _ : p;
154
154
  if (u) {
155
- if (y < 0)
156
- return w;
157
- if (y >= o)
155
+ if (b < 0)
156
+ return _;
157
+ if (b >= o)
158
158
  return F;
159
159
  } else {
160
- if (y <= -h)
160
+ if (b <= -h)
161
161
  return k;
162
- if (y + 1 >= h)
162
+ if (b + 1 >= h)
163
163
  return A;
164
164
  }
165
- return y < 0 ? c(-y, u).neg() : d(y % r | 0, y / r | 0, u);
165
+ return b < 0 ? d(-b, u).neg() : c(b % r | 0, b / r | 0, u);
166
166
  }
167
- n.fromNumber = c;
168
- function d(y, u, T) {
169
- return new n(y, u, T);
167
+ n.fromNumber = d;
168
+ function c(b, u, I) {
169
+ return new n(b, u, I);
170
170
  }
171
- n.fromBits = d;
171
+ n.fromBits = c;
172
172
  var x = Math.pow;
173
- function g(y, u, T) {
174
- if (y.length === 0)
173
+ function g(b, u, I) {
174
+ if (b.length === 0)
175
175
  throw Error("empty string");
176
- if (y === "NaN" || y === "Infinity" || y === "+Infinity" || y === "-Infinity")
176
+ if (b === "NaN" || b === "Infinity" || b === "+Infinity" || b === "-Infinity")
177
177
  return p;
178
- if (typeof u == "number" ? (T = u, u = !1) : u = !!u, T = T || 10, T < 2 || 36 < T)
178
+ if (typeof u == "number" ? (I = u, u = !1) : u = !!u, I = I || 10, I < 2 || 36 < I)
179
179
  throw RangeError("radix");
180
180
  var S;
181
- if ((S = y.indexOf("-")) > 0)
181
+ if ((S = b.indexOf("-")) > 0)
182
182
  throw Error("interior hyphen");
183
183
  if (S === 0)
184
- return g(y.substring(1), u, T).neg();
185
- for (var N = c(x(T, 8)), U = p, R = 0; R < y.length; R += 8) {
186
- var O = Math.min(8, y.length - R), B = parseInt(y.substring(R, R + O), T);
184
+ return g(b.substring(1), u, I).neg();
185
+ for (var N = d(x(I, 8)), U = p, R = 0; R < b.length; R += 8) {
186
+ var O = Math.min(8, b.length - R), z = parseInt(b.substring(R, R + O), I);
187
187
  if (O < 8) {
188
- var V = c(x(T, O));
189
- U = U.mul(V).add(c(B));
188
+ var V = d(x(I, O));
189
+ U = U.mul(V).add(d(z));
190
190
  } else
191
- U = U.mul(N), U = U.add(c(B));
191
+ U = U.mul(N), U = U.add(d(z));
192
192
  }
193
193
  return U.unsigned = u, U;
194
194
  }
195
195
  n.fromString = g;
196
- function _(y) {
197
- return y instanceof n ? y : typeof y == "number" ? c(y) : typeof y == "string" ? g(y) : d(y.low, y.high, y.unsigned);
196
+ function w(b) {
197
+ return b instanceof n ? b : typeof b == "number" ? d(b) : typeof b == "string" ? g(b) : c(b.low, b.high, b.unsigned);
198
198
  }
199
- n.fromValue = _;
200
- var I = 65536, i = 1 << 24, r = I * I, o = r * r, h = o / 2, f = l(i), p = l(0);
199
+ n.fromValue = w;
200
+ var T = 65536, i = 1 << 24, r = T * T, o = r * r, h = o / 2, f = l(i), p = l(0);
201
201
  n.ZERO = p;
202
- var w = l(0, !0);
203
- n.UZERO = w;
204
- var b = l(1);
205
- n.ONE = b;
206
- var E = l(1, !0);
207
- n.UONE = E;
202
+ var _ = l(0, !0);
203
+ n.UZERO = _;
204
+ var E = l(1);
205
+ n.ONE = E;
206
+ var y = l(1, !0);
207
+ n.UONE = y;
208
208
  var m = l(-1);
209
209
  n.NEG_ONE = m;
210
- var A = d(-1, 2147483647, !1);
210
+ var A = c(-1, 2147483647, !1);
211
211
  n.MAX_VALUE = A;
212
- var F = d(-1, -1, !0);
212
+ var F = c(-1, -1, !0);
213
213
  n.MAX_UNSIGNED_VALUE = F;
214
- var k = d(0, -2147483648, !1);
214
+ var k = c(0, -2147483648, !1);
215
215
  n.MIN_VALUE = k;
216
216
  var v = n.prototype;
217
217
  return v.toInt = function() {
@@ -225,13 +225,13 @@ function Tr() {
225
225
  return "0";
226
226
  if (this.isNegative())
227
227
  if (this.eq(k)) {
228
- var T = c(u), S = this.div(T), N = S.mul(T).sub(this);
228
+ var I = d(u), S = this.div(I), N = S.mul(I).sub(this);
229
229
  return S.toString(u) + N.toInt().toString(u);
230
230
  } else
231
231
  return "-" + this.neg().toString(u);
232
- for (var U = c(x(u, 6), this.unsigned), R = this, O = ""; ; ) {
233
- var B = R.div(U), V = R.sub(B.mul(U)).toInt() >>> 0, H = V.toString(u);
234
- if (R = B, R.isZero())
232
+ for (var U = d(x(u, 6), this.unsigned), R = this, O = ""; ; ) {
233
+ var z = R.div(U), V = R.sub(z.mul(U)).toInt() >>> 0, H = V.toString(u);
234
+ if (R = z, R.isZero())
235
235
  return H + O;
236
236
  for (; H.length < 6; )
237
237
  H = "0" + H;
@@ -248,9 +248,9 @@ function Tr() {
248
248
  }, v.getNumBitsAbs = function() {
249
249
  if (this.isNegative())
250
250
  return this.eq(k) ? 64 : this.neg().getNumBitsAbs();
251
- for (var u = this.high != 0 ? this.high : this.low, T = 31; T > 0 && (u & 1 << T) == 0; T--)
251
+ for (var u = this.high != 0 ? this.high : this.low, I = 31; I > 0 && (u & 1 << I) == 0; I--)
252
252
  ;
253
- return this.high != 0 ? T + 33 : T + 1;
253
+ return this.high != 0 ? I + 33 : I + 1;
254
254
  }, v.isZero = function() {
255
255
  return this.high === 0 && this.low === 0;
256
256
  }, v.isNegative = function() {
@@ -262,7 +262,7 @@ function Tr() {
262
262
  }, v.isEven = function() {
263
263
  return (this.low & 1) === 0;
264
264
  }, v.equals = function(u) {
265
- return t(u) || (u = _(u)), this.unsigned !== u.unsigned && this.high >>> 31 === 1 && u.high >>> 31 === 1 ? !1 : this.high === u.high && this.low === u.low;
265
+ return t(u) || (u = w(u)), this.unsigned !== u.unsigned && this.high >>> 31 === 1 && u.high >>> 31 === 1 ? !1 : this.high === u.high && this.low === u.low;
266
266
  }, v.eq = v.equals, v.notEquals = function(u) {
267
267
  return !this.eq(
268
268
  /* validates */
@@ -289,20 +289,20 @@ function Tr() {
289
289
  u
290
290
  ) >= 0;
291
291
  }, v.gte = v.greaterThanOrEqual, v.compare = function(u) {
292
- if (t(u) || (u = _(u)), this.eq(u))
292
+ if (t(u) || (u = w(u)), this.eq(u))
293
293
  return 0;
294
- var T = this.isNegative(), S = u.isNegative();
295
- return T && !S ? -1 : !T && S ? 1 : this.unsigned ? u.high >>> 0 > this.high >>> 0 || u.high === this.high && u.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(u).isNegative() ? -1 : 1;
294
+ var I = this.isNegative(), S = u.isNegative();
295
+ return I && !S ? -1 : !I && S ? 1 : this.unsigned ? u.high >>> 0 > this.high >>> 0 || u.high === this.high && u.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(u).isNegative() ? -1 : 1;
296
296
  }, v.comp = v.compare, v.negate = function() {
297
- return !this.unsigned && this.eq(k) ? k : this.not().add(b);
297
+ return !this.unsigned && this.eq(k) ? k : this.not().add(E);
298
298
  }, v.neg = v.negate, v.add = function(u) {
299
- t(u) || (u = _(u));
300
- var T = this.high >>> 16, S = this.high & 65535, N = this.low >>> 16, U = this.low & 65535, R = u.high >>> 16, O = u.high & 65535, B = u.low >>> 16, V = u.low & 65535, H = 0, Z = 0, Y = 0, re = 0;
301
- return re += U + V, Y += re >>> 16, re &= 65535, Y += N + B, Z += Y >>> 16, Y &= 65535, Z += S + O, H += Z >>> 16, Z &= 65535, H += T + R, H &= 65535, d(Y << 16 | re, H << 16 | Z, this.unsigned);
299
+ t(u) || (u = w(u));
300
+ var I = this.high >>> 16, S = this.high & 65535, N = this.low >>> 16, U = this.low & 65535, R = u.high >>> 16, O = u.high & 65535, z = u.low >>> 16, V = u.low & 65535, H = 0, Z = 0, Y = 0, re = 0;
301
+ return re += U + V, Y += re >>> 16, re &= 65535, Y += N + z, Z += Y >>> 16, Y &= 65535, Z += S + O, H += Z >>> 16, Z &= 65535, H += I + R, H &= 65535, c(Y << 16 | re, H << 16 | Z, this.unsigned);
302
302
  }, v.subtract = function(u) {
303
- return t(u) || (u = _(u)), this.add(u.neg());
303
+ return t(u) || (u = w(u)), this.add(u.neg());
304
304
  }, v.sub = v.subtract, v.multiply = function(u) {
305
- if (this.isZero() || (t(u) || (u = _(u)), u.isZero()))
305
+ if (this.isZero() || (t(u) || (u = w(u)), u.isZero()))
306
306
  return p;
307
307
  if (this.eq(k))
308
308
  return u.isOdd() ? k : p;
@@ -313,31 +313,31 @@ function Tr() {
313
313
  if (u.isNegative())
314
314
  return this.mul(u.neg()).neg();
315
315
  if (this.lt(f) && u.lt(f))
316
- return c(this.toNumber() * u.toNumber(), this.unsigned);
317
- var T = this.high >>> 16, S = this.high & 65535, N = this.low >>> 16, U = this.low & 65535, R = u.high >>> 16, O = u.high & 65535, B = u.low >>> 16, V = u.low & 65535, H = 0, Z = 0, Y = 0, re = 0;
318
- return re += U * V, Y += re >>> 16, re &= 65535, Y += N * V, Z += Y >>> 16, Y &= 65535, Y += U * B, Z += Y >>> 16, Y &= 65535, Z += S * V, H += Z >>> 16, Z &= 65535, Z += N * B, H += Z >>> 16, Z &= 65535, Z += U * O, H += Z >>> 16, Z &= 65535, H += T * V + S * B + N * O + U * R, H &= 65535, d(Y << 16 | re, H << 16 | Z, this.unsigned);
316
+ return d(this.toNumber() * u.toNumber(), this.unsigned);
317
+ var I = this.high >>> 16, S = this.high & 65535, N = this.low >>> 16, U = this.low & 65535, R = u.high >>> 16, O = u.high & 65535, z = u.low >>> 16, V = u.low & 65535, H = 0, Z = 0, Y = 0, re = 0;
318
+ return re += U * V, Y += re >>> 16, re &= 65535, Y += N * V, Z += Y >>> 16, Y &= 65535, Y += U * z, Z += Y >>> 16, Y &= 65535, Z += S * V, H += Z >>> 16, Z &= 65535, Z += N * z, H += Z >>> 16, Z &= 65535, Z += U * O, H += Z >>> 16, Z &= 65535, H += I * V + S * z + N * O + U * R, H &= 65535, c(Y << 16 | re, H << 16 | Z, this.unsigned);
319
319
  }, v.mul = v.multiply, v.divide = function(u) {
320
- if (t(u) || (u = _(u)), u.isZero())
320
+ if (t(u) || (u = w(u)), u.isZero())
321
321
  throw Error("division by zero");
322
322
  if (this.isZero())
323
- return this.unsigned ? w : p;
324
- var T, S, N;
323
+ return this.unsigned ? _ : p;
324
+ var I, S, N;
325
325
  if (this.unsigned) {
326
326
  if (u.unsigned || (u = u.toUnsigned()), u.gt(this))
327
- return w;
327
+ return _;
328
328
  if (u.gt(this.shru(1)))
329
- return E;
330
- N = w;
329
+ return y;
330
+ N = _;
331
331
  } else {
332
332
  if (this.eq(k)) {
333
- if (u.eq(b) || u.eq(m))
333
+ if (u.eq(E) || u.eq(m))
334
334
  return k;
335
335
  if (u.eq(k))
336
- return b;
336
+ return E;
337
337
  var U = this.shr(1);
338
- return T = U.div(u).shl(1), T.eq(p) ? u.isNegative() ? b : m : (S = this.sub(u.mul(T)), N = T.add(S.div(u)), N);
338
+ return I = U.div(u).shl(1), I.eq(p) ? u.isNegative() ? E : m : (S = this.sub(u.mul(I)), N = I.add(S.div(u)), N);
339
339
  } else if (u.eq(k))
340
- return this.unsigned ? w : p;
340
+ return this.unsigned ? _ : p;
341
341
  if (this.isNegative())
342
342
  return u.isNegative() ? this.neg().div(u.neg()) : this.neg().div(u).neg();
343
343
  if (u.isNegative())
@@ -345,59 +345,59 @@ function Tr() {
345
345
  N = p;
346
346
  }
347
347
  for (S = this; S.gte(u); ) {
348
- T = Math.max(1, Math.floor(S.toNumber() / u.toNumber()));
349
- for (var R = Math.ceil(Math.log(T) / Math.LN2), O = R <= 48 ? 1 : x(2, R - 48), B = c(T), V = B.mul(u); V.isNegative() || V.gt(S); )
350
- T -= O, B = c(T, this.unsigned), V = B.mul(u);
351
- B.isZero() && (B = b), N = N.add(B), S = S.sub(V);
348
+ I = Math.max(1, Math.floor(S.toNumber() / u.toNumber()));
349
+ for (var R = Math.ceil(Math.log(I) / Math.LN2), O = R <= 48 ? 1 : x(2, R - 48), z = d(I), V = z.mul(u); V.isNegative() || V.gt(S); )
350
+ I -= O, z = d(I, this.unsigned), V = z.mul(u);
351
+ z.isZero() && (z = E), N = N.add(z), S = S.sub(V);
352
352
  }
353
353
  return N;
354
354
  }, v.div = v.divide, v.modulo = function(u) {
355
- return t(u) || (u = _(u)), this.sub(this.div(u).mul(u));
355
+ return t(u) || (u = w(u)), this.sub(this.div(u).mul(u));
356
356
  }, v.mod = v.modulo, v.not = function() {
357
- return d(~this.low, ~this.high, this.unsigned);
357
+ return c(~this.low, ~this.high, this.unsigned);
358
358
  }, v.and = function(u) {
359
- return t(u) || (u = _(u)), d(this.low & u.low, this.high & u.high, this.unsigned);
359
+ return t(u) || (u = w(u)), c(this.low & u.low, this.high & u.high, this.unsigned);
360
360
  }, v.or = function(u) {
361
- return t(u) || (u = _(u)), d(this.low | u.low, this.high | u.high, this.unsigned);
361
+ return t(u) || (u = w(u)), c(this.low | u.low, this.high | u.high, this.unsigned);
362
362
  }, v.xor = function(u) {
363
- return t(u) || (u = _(u)), d(this.low ^ u.low, this.high ^ u.high, this.unsigned);
363
+ return t(u) || (u = w(u)), c(this.low ^ u.low, this.high ^ u.high, this.unsigned);
364
364
  }, v.shiftLeft = function(u) {
365
- return t(u) && (u = u.toInt()), (u &= 63) === 0 ? this : u < 32 ? d(this.low << u, this.high << u | this.low >>> 32 - u, this.unsigned) : d(0, this.low << u - 32, this.unsigned);
365
+ return t(u) && (u = u.toInt()), (u &= 63) === 0 ? this : u < 32 ? c(this.low << u, this.high << u | this.low >>> 32 - u, this.unsigned) : c(0, this.low << u - 32, this.unsigned);
366
366
  }, v.shl = v.shiftLeft, v.shiftRight = function(u) {
367
- return t(u) && (u = u.toInt()), (u &= 63) === 0 ? this : u < 32 ? d(this.low >>> u | this.high << 32 - u, this.high >> u, this.unsigned) : d(this.high >> u - 32, this.high >= 0 ? 0 : -1, this.unsigned);
367
+ return t(u) && (u = u.toInt()), (u &= 63) === 0 ? this : u < 32 ? c(this.low >>> u | this.high << 32 - u, this.high >> u, this.unsigned) : c(this.high >> u - 32, this.high >= 0 ? 0 : -1, this.unsigned);
368
368
  }, v.shr = v.shiftRight, v.shiftRightUnsigned = function(u) {
369
369
  if (t(u) && (u = u.toInt()), u &= 63, u === 0)
370
370
  return this;
371
- var T = this.high;
371
+ var I = this.high;
372
372
  if (u < 32) {
373
373
  var S = this.low;
374
- return d(S >>> u | T << 32 - u, T >>> u, this.unsigned);
375
- } else return u === 32 ? d(T, 0, this.unsigned) : d(T >>> u - 32, 0, this.unsigned);
374
+ return c(S >>> u | I << 32 - u, I >>> u, this.unsigned);
375
+ } else return u === 32 ? c(I, 0, this.unsigned) : c(I >>> u - 32, 0, this.unsigned);
376
376
  }, v.shru = v.shiftRightUnsigned, v.toSigned = function() {
377
- return this.unsigned ? d(this.low, this.high, !1) : this;
377
+ return this.unsigned ? c(this.low, this.high, !1) : this;
378
378
  }, v.toUnsigned = function() {
379
- return this.unsigned ? this : d(this.low, this.high, !0);
380
- }, v.toBytes = function(y) {
381
- return y ? this.toBytesLE() : this.toBytesBE();
379
+ return this.unsigned ? this : c(this.low, this.high, !0);
380
+ }, v.toBytes = function(b) {
381
+ return b ? this.toBytesLE() : this.toBytesBE();
382
382
  }, v.toBytesLE = function() {
383
- var y = this.high, u = this.low;
383
+ var b = this.high, u = this.low;
384
384
  return [
385
385
  u & 255,
386
386
  u >>> 8 & 255,
387
387
  u >>> 16 & 255,
388
388
  u >>> 24 & 255,
389
- y & 255,
390
- y >>> 8 & 255,
391
- y >>> 16 & 255,
392
- y >>> 24 & 255
389
+ b & 255,
390
+ b >>> 8 & 255,
391
+ b >>> 16 & 255,
392
+ b >>> 24 & 255
393
393
  ];
394
394
  }, v.toBytesBE = function() {
395
- var y = this.high, u = this.low;
395
+ var b = this.high, u = this.low;
396
396
  return [
397
- y >>> 24 & 255,
398
- y >>> 16 & 255,
399
- y >>> 8 & 255,
400
- y & 255,
397
+ b >>> 24 & 255,
398
+ b >>> 16 & 255,
399
+ b >>> 8 & 255,
400
+ b & 255,
401
401
  u >>> 24 & 255,
402
402
  u >>> 16 & 255,
403
403
  u >>> 8 & 255,
@@ -405,26 +405,20 @@ function Tr() {
405
405
  ];
406
406
  }, n;
407
407
  });
408
- }(tt)), tt.exports;
408
+ })(it)), it.exports;
409
409
  }
410
- var Ir = et.exports, Vt;
410
+ var Ir = tt.exports, Yt;
411
411
  function Fr() {
412
- return Vt || (Vt = 1, function(e) {
413
- /**
414
- * @license bytebuffer.js (c) 2015 Daniel Wirtz <dcode@dcode.io>
415
- * Backing buffer: ArrayBuffer, Accessor: Uint8Array
416
- * Released under the Apache License, Version 2.0
417
- * see: https://github.com/dcodeIO/bytebuffer.js for details
418
- */
412
+ return Yt || (Yt = 1, (function(e) {
419
413
  (function(n, t) {
420
- typeof Oi == "function" && e && e.exports ? e.exports = function() {
414
+ typeof Oi == "function" && e && e.exports ? e.exports = (function() {
421
415
  var a;
422
416
  try {
423
417
  a = Tr();
424
418
  } catch {
425
419
  }
426
420
  return t(a);
427
- }() : (n.dcodeIO = n.dcodeIO || {}).ByteBuffer = t(n.dcodeIO.Long);
421
+ })() : (n.dcodeIO = n.dcodeIO || {}).ByteBuffer = t(n.dcodeIO.Long);
428
422
  })(Ir, function(n) {
429
423
  var t = function(i, r, o) {
430
424
  if (typeof i > "u" && (i = t.DEFAULT_CAPACITY), typeof r > "u" && (r = t.DEFAULT_ENDIAN), typeof o > "u" && (o = t.DEFAULT_NOASSERT), !o) {
@@ -442,13 +436,13 @@ function Fr() {
442
436
  configurable: !1
443
437
  });
444
438
  var s = new ArrayBuffer(0), l = String.fromCharCode;
445
- function c(i) {
439
+ function d(i) {
446
440
  var r = 0;
447
441
  return function() {
448
442
  return r < i.length ? i.charCodeAt(r++) : null;
449
443
  };
450
444
  }
451
- function d() {
445
+ function c() {
452
446
  var i = [], r = [];
453
447
  return function() {
454
448
  if (arguments.length === 0)
@@ -462,14 +456,14 @@ function Fr() {
462
456
  return new t(i, r, o);
463
457
  }, t.concat = function(i, r, o, h) {
464
458
  (typeof r == "boolean" || typeof r != "string") && (h = o, o = r, r = void 0);
465
- for (var f = 0, p = 0, w = i.length, b; p < w; ++p)
466
- t.isByteBuffer(i[p]) || (i[p] = t.wrap(i[p], r)), b = i[p].limit - i[p].offset, b > 0 && (f += b);
459
+ for (var f = 0, p = 0, _ = i.length, E; p < _; ++p)
460
+ t.isByteBuffer(i[p]) || (i[p] = t.wrap(i[p], r)), E = i[p].limit - i[p].offset, E > 0 && (f += E);
467
461
  if (f === 0)
468
462
  return new t(0, o, h);
469
- var E = new t(f, o, h), m;
470
- for (p = 0; p < w; )
471
- m = i[p++], b = m.limit - m.offset, !(b <= 0) && (E.view.set(m.view.subarray(m.offset, m.limit), E.offset), E.offset += b);
472
- return E.limit = E.offset, E.offset = 0, E;
463
+ var y = new t(f, o, h), m;
464
+ for (p = 0; p < _; )
465
+ m = i[p++], E = m.limit - m.offset, !(E <= 0) && (y.view.set(m.view.subarray(m.offset, m.limit), y.offset), y.offset += E);
466
+ return y.limit = y.offset, y.offset = 0, y;
473
467
  }, t.isByteBuffer = function(i) {
474
468
  return (i && i.__isByteBuffer__) === !0;
475
469
  }, t.type = function() {
@@ -516,26 +510,26 @@ function Fr() {
516
510
  if (r >>>= 0, r < 0 || r + 0 > this.buffer.byteLength)
517
511
  throw RangeError("Illegal offset: 0 <= " + r + " (+0) <= " + this.buffer.byteLength);
518
512
  }
519
- var h = r, f = i.length, p = f >> 3, w = 0, b;
513
+ var h = r, f = i.length, p = f >> 3, _ = 0, E;
520
514
  for (r += this.writeVarint32(f, r); p--; )
521
- b = !!i[w++] & 1 | (!!i[w++] & 1) << 1 | (!!i[w++] & 1) << 2 | (!!i[w++] & 1) << 3 | (!!i[w++] & 1) << 4 | (!!i[w++] & 1) << 5 | (!!i[w++] & 1) << 6 | (!!i[w++] & 1) << 7, this.writeByte(b, r++);
522
- if (w < f) {
523
- var E = 0;
524
- for (b = 0; w < f; ) b = b | (!!i[w++] & 1) << E++;
525
- this.writeByte(b, r++);
515
+ E = !!i[_++] & 1 | (!!i[_++] & 1) << 1 | (!!i[_++] & 1) << 2 | (!!i[_++] & 1) << 3 | (!!i[_++] & 1) << 4 | (!!i[_++] & 1) << 5 | (!!i[_++] & 1) << 6 | (!!i[_++] & 1) << 7, this.writeByte(E, r++);
516
+ if (_ < f) {
517
+ var y = 0;
518
+ for (E = 0; _ < f; ) E = E | (!!i[_++] & 1) << y++;
519
+ this.writeByte(E, r++);
526
520
  }
527
521
  return o ? (this.offset = r, this) : r - h;
528
522
  }, a.readBitSet = function(i) {
529
523
  var r = typeof i > "u";
530
524
  r && (i = this.offset);
531
- var o = this.readVarint32(i), h = o.value, f = h >> 3, p = 0, w = [], b;
525
+ var o = this.readVarint32(i), h = o.value, f = h >> 3, p = 0, _ = [], E;
532
526
  for (i += o.length; f--; )
533
- b = this.readByte(i++), w[p++] = !!(b & 1), w[p++] = !!(b & 2), w[p++] = !!(b & 4), w[p++] = !!(b & 8), w[p++] = !!(b & 16), w[p++] = !!(b & 32), w[p++] = !!(b & 64), w[p++] = !!(b & 128);
527
+ E = this.readByte(i++), _[p++] = !!(E & 1), _[p++] = !!(E & 2), _[p++] = !!(E & 4), _[p++] = !!(E & 8), _[p++] = !!(E & 16), _[p++] = !!(E & 32), _[p++] = !!(E & 64), _[p++] = !!(E & 128);
534
528
  if (p < h) {
535
- var E = 0;
536
- for (b = this.readByte(i++); p < h; ) w[p++] = !!(b >> E++ & 1);
529
+ var y = 0;
530
+ for (E = this.readByte(i++); p < h; ) _[p++] = !!(E >> y++ & 1);
537
531
  }
538
- return r && (this.offset = i), w;
532
+ return r && (this.offset = i), _;
539
533
  }, a.readBytes = function(i, r) {
540
534
  var o = typeof r > "u";
541
535
  if (o && (r = this.offset), !this.noAssert) {
@@ -748,27 +742,27 @@ function Fr() {
748
742
  return r && (this.offset += 8), f;
749
743
  }, a.readUInt64 = a.readUint64);
750
744
  function x(i, r, o, h, f) {
751
- var p, w, b = f * 8 - h - 1, E = (1 << b) - 1, m = E >> 1, A = -7, F = o ? f - 1 : 0, k = o ? -1 : 1, v = i[r + F];
752
- for (F += k, p = v & (1 << -A) - 1, v >>= -A, A += b; A > 0; p = p * 256 + i[r + F], F += k, A -= 8)
745
+ var p, _, E = f * 8 - h - 1, y = (1 << E) - 1, m = y >> 1, A = -7, F = o ? f - 1 : 0, k = o ? -1 : 1, v = i[r + F];
746
+ for (F += k, p = v & (1 << -A) - 1, v >>= -A, A += E; A > 0; p = p * 256 + i[r + F], F += k, A -= 8)
753
747
  ;
754
- for (w = p & (1 << -A) - 1, p >>= -A, A += h; A > 0; w = w * 256 + i[r + F], F += k, A -= 8)
748
+ for (_ = p & (1 << -A) - 1, p >>= -A, A += h; A > 0; _ = _ * 256 + i[r + F], F += k, A -= 8)
755
749
  ;
756
750
  if (p === 0)
757
751
  p = 1 - m;
758
752
  else {
759
- if (p === E)
760
- return w ? NaN : (v ? -1 : 1) * (1 / 0);
761
- w = w + Math.pow(2, h), p = p - m;
753
+ if (p === y)
754
+ return _ ? NaN : (v ? -1 : 1) * (1 / 0);
755
+ _ = _ + Math.pow(2, h), p = p - m;
762
756
  }
763
- return (v ? -1 : 1) * w * Math.pow(2, p - h);
757
+ return (v ? -1 : 1) * _ * Math.pow(2, p - h);
764
758
  }
765
759
  function g(i, r, o, h, f, p) {
766
- var w, b, E, m = p * 8 - f - 1, A = (1 << m) - 1, F = A >> 1, k = f === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = h ? 0 : p - 1, y = h ? 1 : -1, u = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
767
- for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (b = isNaN(r) ? 1 : 0, w = A) : (w = Math.floor(Math.log(r) / Math.LN2), r * (E = Math.pow(2, -w)) < 1 && (w--, E *= 2), w + F >= 1 ? r += k / E : r += k * Math.pow(2, 1 - F), r * E >= 2 && (w++, E /= 2), w + F >= A ? (b = 0, w = A) : w + F >= 1 ? (b = (r * E - 1) * Math.pow(2, f), w = w + F) : (b = r * Math.pow(2, F - 1) * Math.pow(2, f), w = 0)); f >= 8; i[o + v] = b & 255, v += y, b /= 256, f -= 8)
760
+ var _, E, y, m = p * 8 - f - 1, A = (1 << m) - 1, F = A >> 1, k = f === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = h ? 0 : p - 1, b = h ? 1 : -1, u = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
761
+ for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (E = isNaN(r) ? 1 : 0, _ = A) : (_ = Math.floor(Math.log(r) / Math.LN2), r * (y = Math.pow(2, -_)) < 1 && (_--, y *= 2), _ + F >= 1 ? r += k / y : r += k * Math.pow(2, 1 - F), r * y >= 2 && (_++, y /= 2), _ + F >= A ? (E = 0, _ = A) : _ + F >= 1 ? (E = (r * y - 1) * Math.pow(2, f), _ = _ + F) : (E = r * Math.pow(2, F - 1) * Math.pow(2, f), _ = 0)); f >= 8; i[o + v] = E & 255, v += b, E /= 256, f -= 8)
768
762
  ;
769
- for (w = w << f | b, m += f; m > 0; i[o + v] = w & 255, v += y, w /= 256, m -= 8)
763
+ for (_ = _ << f | E, m += f; m > 0; i[o + v] = _ & 255, v += b, _ /= 256, m -= 8)
770
764
  ;
771
- i[o + v - y] |= u * 128;
765
+ i[o + v - b] |= u * 128;
772
766
  }
773
767
  a.writeFloat32 = function(i, r) {
774
768
  var o = typeof r > "u";
@@ -886,14 +880,14 @@ function Fr() {
886
880
  throw RangeError("Illegal offset: 0 <= " + r + " (+0) <= " + this.buffer.byteLength);
887
881
  }
888
882
  typeof i == "number" ? i = n.fromNumber(i, !1) : typeof i == "string" ? i = n.fromString(i, !1) : i.unsigned !== !1 && (i = i.toSigned());
889
- var h = t.calculateVarint64(i), f = i.toInt() >>> 0, p = i.shiftRightUnsigned(28).toInt() >>> 0, w = i.shiftRightUnsigned(56).toInt() >>> 0;
883
+ var h = t.calculateVarint64(i), f = i.toInt() >>> 0, p = i.shiftRightUnsigned(28).toInt() >>> 0, _ = i.shiftRightUnsigned(56).toInt() >>> 0;
890
884
  r += h;
891
- var b = this.buffer.byteLength;
892
- switch (r > b && this.resize((b *= 2) > r ? b : r), r -= h, h) {
885
+ var E = this.buffer.byteLength;
886
+ switch (r > E && this.resize((E *= 2) > r ? E : r), r -= h, h) {
893
887
  case 10:
894
- this.view[r + 9] = w >>> 7 & 1;
888
+ this.view[r + 9] = _ >>> 7 & 1;
895
889
  case 9:
896
- this.view[r + 8] = h !== 9 ? w | 128 : w & 127;
890
+ this.view[r + 8] = h !== 9 ? _ | 128 : _ & 127;
897
891
  case 8:
898
892
  this.view[r + 7] = h !== 8 ? p >>> 21 | 128 : p >>> 21 & 127;
899
893
  case 7:
@@ -922,12 +916,12 @@ function Fr() {
922
916
  if (i >>>= 0, i < 0 || i + 1 > this.buffer.byteLength)
923
917
  throw RangeError("Illegal offset: 0 <= " + i + " (+1) <= " + this.buffer.byteLength);
924
918
  }
925
- var o = i, h = 0, f = 0, p = 0, w = 0;
926
- if (w = this.view[i++], h = w & 127, w & 128 && (w = this.view[i++], h |= (w & 127) << 7, (w & 128 || this.noAssert && typeof w > "u") && (w = this.view[i++], h |= (w & 127) << 14, (w & 128 || this.noAssert && typeof w > "u") && (w = this.view[i++], h |= (w & 127) << 21, (w & 128 || this.noAssert && typeof w > "u") && (w = this.view[i++], f = w & 127, (w & 128 || this.noAssert && typeof w > "u") && (w = this.view[i++], f |= (w & 127) << 7, (w & 128 || this.noAssert && typeof w > "u") && (w = this.view[i++], f |= (w & 127) << 14, (w & 128 || this.noAssert && typeof w > "u") && (w = this.view[i++], f |= (w & 127) << 21, (w & 128 || this.noAssert && typeof w > "u") && (w = this.view[i++], p = w & 127, (w & 128 || this.noAssert && typeof w > "u") && (w = this.view[i++], p |= (w & 127) << 7, w & 128 || this.noAssert && typeof w > "u"))))))))))
919
+ var o = i, h = 0, f = 0, p = 0, _ = 0;
920
+ if (_ = this.view[i++], h = _ & 127, _ & 128 && (_ = this.view[i++], h |= (_ & 127) << 7, (_ & 128 || this.noAssert && typeof _ > "u") && (_ = this.view[i++], h |= (_ & 127) << 14, (_ & 128 || this.noAssert && typeof _ > "u") && (_ = this.view[i++], h |= (_ & 127) << 21, (_ & 128 || this.noAssert && typeof _ > "u") && (_ = this.view[i++], f = _ & 127, (_ & 128 || this.noAssert && typeof _ > "u") && (_ = this.view[i++], f |= (_ & 127) << 7, (_ & 128 || this.noAssert && typeof _ > "u") && (_ = this.view[i++], f |= (_ & 127) << 14, (_ & 128 || this.noAssert && typeof _ > "u") && (_ = this.view[i++], f |= (_ & 127) << 21, (_ & 128 || this.noAssert && typeof _ > "u") && (_ = this.view[i++], p = _ & 127, (_ & 128 || this.noAssert && typeof _ > "u") && (_ = this.view[i++], p |= (_ & 127) << 7, _ & 128 || this.noAssert && typeof _ > "u"))))))))))
927
921
  throw Error("Buffer overrun");
928
- var b = n.fromBits(h | f << 28, f >>> 4 | p << 24, !1);
929
- return r ? (this.offset = i, b) : {
930
- value: b,
922
+ var E = n.fromBits(h | f << 28, f >>> 4 | p << 24, !1);
923
+ return r ? (this.offset = i, E) : {
924
+ value: E,
931
925
  length: i - o
932
926
  };
933
927
  }, a.readVarint64ZigZag = function(i) {
@@ -948,10 +942,10 @@ function Fr() {
948
942
  if (r >>>= 0, r < 0 || r + 0 > this.buffer.byteLength)
949
943
  throw RangeError("Illegal offset: 0 <= " + r + " (+0) <= " + this.buffer.byteLength);
950
944
  }
951
- f = I.calculateUTF16asUTF8(c(i))[1], r += f + 1;
945
+ f = T.calculateUTF16asUTF8(d(i))[1], r += f + 1;
952
946
  var p = this.buffer.byteLength;
953
- return r > p && this.resize((p *= 2) > r ? p : r), r -= f + 1, I.encodeUTF16toUTF8(c(i), (function(w) {
954
- this.view[r++] = w;
947
+ return r > p && this.resize((p *= 2) > r ? p : r), r -= f + 1, T.encodeUTF16toUTF8(d(i), (function(_) {
948
+ this.view[r++] = _;
955
949
  }).bind(this)), this.view[r++] = 0, o ? (this.offset = r, this) : f;
956
950
  }, a.readCString = function(i) {
957
951
  var r = typeof i > "u";
@@ -962,12 +956,12 @@ function Fr() {
962
956
  throw RangeError("Illegal offset: 0 <= " + i + " (+1) <= " + this.buffer.byteLength);
963
957
  }
964
958
  var o = i, h, f = -1;
965
- return I.decodeUTF8toUTF16((function() {
959
+ return T.decodeUTF8toUTF16((function() {
966
960
  if (f === 0) return null;
967
961
  if (i >= this.limit)
968
962
  throw RangeError("Illegal range: Truncated data, " + i + " < " + this.limit);
969
963
  return f = this.view[i++], f === 0 ? null : f;
970
- }).bind(this), h = d(), !0), r ? (this.offset = i, h()) : {
964
+ }).bind(this), h = c(), !0), r ? (this.offset = i, h()) : {
971
965
  string: h(),
972
966
  length: i - o
973
967
  };
@@ -982,10 +976,10 @@ function Fr() {
982
976
  throw RangeError("Illegal offset: 0 <= " + r + " (+0) <= " + this.buffer.byteLength);
983
977
  }
984
978
  var h = r, f;
985
- f = I.calculateUTF16asUTF8(c(i), this.noAssert)[1], r += 4 + f;
979
+ f = T.calculateUTF16asUTF8(d(i), this.noAssert)[1], r += 4 + f;
986
980
  var p = this.buffer.byteLength;
987
- if (r > p && this.resize((p *= 2) > r ? p : r), r -= 4 + f, this.littleEndian ? (this.view[r + 3] = f >>> 24 & 255, this.view[r + 2] = f >>> 16 & 255, this.view[r + 1] = f >>> 8 & 255, this.view[r] = f & 255) : (this.view[r] = f >>> 24 & 255, this.view[r + 1] = f >>> 16 & 255, this.view[r + 2] = f >>> 8 & 255, this.view[r + 3] = f & 255), r += 4, I.encodeUTF16toUTF8(c(i), (function(w) {
988
- this.view[r++] = w;
981
+ if (r > p && this.resize((p *= 2) > r ? p : r), r -= 4 + f, this.littleEndian ? (this.view[r + 3] = f >>> 24 & 255, this.view[r + 2] = f >>> 16 & 255, this.view[r + 1] = f >>> 8 & 255, this.view[r] = f & 255) : (this.view[r] = f >>> 24 & 255, this.view[r + 1] = f >>> 16 & 255, this.view[r + 2] = f >>> 8 & 255, this.view[r + 3] = f & 255), r += 4, T.encodeUTF16toUTF8(d(i), (function(_) {
982
+ this.view[r++] = _;
989
983
  }).bind(this)), r !== h + 4 + f)
990
984
  throw RangeError("Illegal range: Truncated data, " + r + " == " + (r + 4 + f));
991
985
  return o ? (this.offset = r, this) : r - h;
@@ -1011,15 +1005,15 @@ function Fr() {
1011
1005
  throw RangeError("Illegal offset: 0 <= " + r + " (+0) <= " + this.buffer.byteLength);
1012
1006
  }
1013
1007
  var h, f = r;
1014
- h = I.calculateUTF16asUTF8(c(i))[1], r += h;
1008
+ h = T.calculateUTF16asUTF8(d(i))[1], r += h;
1015
1009
  var p = this.buffer.byteLength;
1016
- return r > p && this.resize((p *= 2) > r ? p : r), r -= h, I.encodeUTF16toUTF8(c(i), (function(w) {
1017
- this.view[r++] = w;
1010
+ return r > p && this.resize((p *= 2) > r ? p : r), r -= h, T.encodeUTF16toUTF8(d(i), (function(_) {
1011
+ this.view[r++] = _;
1018
1012
  }).bind(this)), o ? (this.offset = r, this) : r - f;
1019
1013
  }, a.writeString = a.writeUTF8String, t.calculateUTF8Chars = function(i) {
1020
- return I.calculateUTF16asUTF8(c(i))[0];
1014
+ return T.calculateUTF16asUTF8(d(i))[0];
1021
1015
  }, t.calculateUTF8Bytes = function(i) {
1022
- return I.calculateUTF16asUTF8(c(i))[1];
1016
+ return T.calculateUTF16asUTF8(d(i))[1];
1023
1017
  }, t.calculateString = t.calculateUTF8Bytes, a.readUTF8String = function(i, r, o) {
1024
1018
  typeof r == "number" && (o = r, r = void 0);
1025
1019
  var h = typeof o > "u";
@@ -1031,16 +1025,16 @@ function Fr() {
1031
1025
  if (o >>>= 0, o < 0 || o + 0 > this.buffer.byteLength)
1032
1026
  throw RangeError("Illegal offset: 0 <= " + o + " (+0) <= " + this.buffer.byteLength);
1033
1027
  }
1034
- var f = 0, p = o, w;
1028
+ var f = 0, p = o, _;
1035
1029
  if (r === t.METRICS_CHARS) {
1036
- if (w = d(), I.decodeUTF8((function() {
1030
+ if (_ = c(), T.decodeUTF8((function() {
1037
1031
  return f < i && o < this.limit ? this.view[o++] : null;
1038
- }).bind(this), function(E) {
1039
- ++f, I.UTF8toUTF16(E, w);
1032
+ }).bind(this), function(y) {
1033
+ ++f, T.UTF8toUTF16(y, _);
1040
1034
  }), f !== i)
1041
1035
  throw RangeError("Illegal range: Truncated data, " + f + " == " + i);
1042
- return h ? (this.offset = o, w()) : {
1043
- string: w(),
1036
+ return h ? (this.offset = o, _()) : {
1037
+ string: _(),
1044
1038
  length: o - p
1045
1039
  };
1046
1040
  } else if (r === t.METRICS_BYTES) {
@@ -1050,13 +1044,13 @@ function Fr() {
1050
1044
  if (o >>>= 0, o < 0 || o + i > this.buffer.byteLength)
1051
1045
  throw RangeError("Illegal offset: 0 <= " + o + " (+" + i + ") <= " + this.buffer.byteLength);
1052
1046
  }
1053
- var b = o + i;
1054
- if (I.decodeUTF8toUTF16((function() {
1055
- return o < b ? this.view[o++] : null;
1056
- }).bind(this), w = d(), this.noAssert), o !== b)
1057
- throw RangeError("Illegal range: Truncated data, " + o + " == " + b);
1058
- return h ? (this.offset = o, w()) : {
1059
- string: w(),
1047
+ var E = o + i;
1048
+ if (T.decodeUTF8toUTF16((function() {
1049
+ return o < E ? this.view[o++] : null;
1050
+ }).bind(this), _ = c(), this.noAssert), o !== E)
1051
+ throw RangeError("Illegal range: Truncated data, " + o + " == " + E);
1052
+ return h ? (this.offset = o, _()) : {
1053
+ string: _(),
1060
1054
  length: o - p
1061
1055
  };
1062
1056
  } else
@@ -1072,10 +1066,10 @@ function Fr() {
1072
1066
  throw RangeError("Illegal offset: 0 <= " + r + " (+0) <= " + this.buffer.byteLength);
1073
1067
  }
1074
1068
  var h = r, f, p;
1075
- f = I.calculateUTF16asUTF8(c(i), this.noAssert)[1], p = t.calculateVarint32(f), r += p + f;
1076
- var w = this.buffer.byteLength;
1077
- if (r > w && this.resize((w *= 2) > r ? w : r), r -= p + f, r += this.writeVarint32(f, r), I.encodeUTF16toUTF8(c(i), (function(b) {
1078
- this.view[r++] = b;
1069
+ f = T.calculateUTF16asUTF8(d(i), this.noAssert)[1], p = t.calculateVarint32(f), r += p + f;
1070
+ var _ = this.buffer.byteLength;
1071
+ if (r > _ && this.resize((_ *= 2) > r ? _ : r), r -= p + f, r += this.writeVarint32(f, r), T.encodeUTF16toUTF8(d(i), (function(E) {
1072
+ this.view[r++] = E;
1079
1073
  }).bind(this)), r !== h + f + p)
1080
1074
  throw RangeError("Illegal range: Truncated data, " + r + " == " + (r + f + p));
1081
1075
  return o ? (this.offset = r, this) : r - h;
@@ -1155,8 +1149,8 @@ function Fr() {
1155
1149
  throw RangeError("Illegal target range: 0 <= " + r + " <= " + i.buffer.byteLength);
1156
1150
  if (o < 0 || h > this.buffer.byteLength)
1157
1151
  throw RangeError("Illegal source range: 0 <= " + o + " <= " + this.buffer.byteLength);
1158
- var w = h - o;
1159
- return w === 0 ? i : (i.ensureCapacity(r + w), i.view.set(this.view.subarray(o, h), r), f && (this.offset += w), p && (i.offset += w), this);
1152
+ var _ = h - o;
1153
+ return _ === 0 ? i : (i.ensureCapacity(r + _), i.view.set(this.view.subarray(o, h), r), f && (this.offset += _), p && (i.offset += _), this);
1160
1154
  }, a.ensureCapacity = function(i) {
1161
1155
  var r = this.buffer.byteLength;
1162
1156
  return r < i ? this.resize((r *= 2) > i ? r : i) : this;
@@ -1208,8 +1202,8 @@ function Fr() {
1208
1202
  if (f <= 0) return this;
1209
1203
  var p = f - o;
1210
1204
  if (p > 0) {
1211
- var w = new ArrayBuffer(this.buffer.byteLength + p), b = new Uint8Array(w);
1212
- b.set(this.view.subarray(o, this.buffer.byteLength), f), this.buffer = w, this.view = b, this.offset += p, this.markedOffset >= 0 && (this.markedOffset += p), this.limit += p, o += p;
1205
+ var _ = new ArrayBuffer(this.buffer.byteLength + p), E = new Uint8Array(_);
1206
+ E.set(this.view.subarray(o, this.buffer.byteLength), f), this.buffer = _, this.view = E, this.offset += p, this.markedOffset >= 0 && (this.markedOffset += p), this.limit += p, o += p;
1213
1207
  } else
1214
1208
  new Uint8Array(this.buffer);
1215
1209
  return this.view.set(i.view.subarray(i.offset, i.limit), o - f), i.offset = i.limit, h && (this.offset -= f), this;
@@ -1307,7 +1301,7 @@ function Fr() {
1307
1301
  throw Error("Unsupported encoding: " + i);
1308
1302
  }
1309
1303
  };
1310
- var _ = function() {
1304
+ var w = (function() {
1311
1305
  for (var i = {}, r = [
1312
1306
  65,
1313
1307
  66,
@@ -1375,44 +1369,44 @@ function Fr() {
1375
1369
  47
1376
1370
  ], o = [], h = 0, f = r.length; h < f; ++h)
1377
1371
  o[r[h]] = h;
1378
- return i.encode = function(p, w) {
1379
- for (var b, E; (b = p()) !== null; )
1380
- w(r[b >> 2 & 63]), E = (b & 3) << 4, (b = p()) !== null ? (E |= b >> 4 & 15, w(r[(E | b >> 4 & 15) & 63]), E = (b & 15) << 2, (b = p()) !== null ? (w(r[(E | b >> 6 & 3) & 63]), w(r[b & 63])) : (w(r[E & 63]), w(61))) : (w(r[E & 63]), w(61), w(61));
1381
- }, i.decode = function(p, w) {
1382
- var b, E, m;
1372
+ return i.encode = function(p, _) {
1373
+ for (var E, y; (E = p()) !== null; )
1374
+ _(r[E >> 2 & 63]), y = (E & 3) << 4, (E = p()) !== null ? (y |= E >> 4 & 15, _(r[(y | E >> 4 & 15) & 63]), y = (E & 15) << 2, (E = p()) !== null ? (_(r[(y | E >> 6 & 3) & 63]), _(r[E & 63])) : (_(r[y & 63]), _(61))) : (_(r[y & 63]), _(61), _(61));
1375
+ }, i.decode = function(p, _) {
1376
+ var E, y, m;
1383
1377
  function A(F) {
1384
1378
  throw Error("Illegal character code: " + F);
1385
1379
  }
1386
- for (; (b = p()) !== null; )
1387
- if (E = o[b], typeof E > "u" && A(b), (b = p()) !== null && (m = o[b], typeof m > "u" && A(b), w(E << 2 >>> 0 | (m & 48) >> 4), (b = p()) !== null)) {
1388
- if (E = o[b], typeof E > "u") {
1389
- if (b === 61) break;
1390
- A(b);
1380
+ for (; (E = p()) !== null; )
1381
+ if (y = o[E], typeof y > "u" && A(E), (E = p()) !== null && (m = o[E], typeof m > "u" && A(E), _(y << 2 >>> 0 | (m & 48) >> 4), (E = p()) !== null)) {
1382
+ if (y = o[E], typeof y > "u") {
1383
+ if (E === 61) break;
1384
+ A(E);
1391
1385
  }
1392
- if (w((m & 15) << 4 >>> 0 | (E & 60) >> 2), (b = p()) !== null) {
1393
- if (m = o[b], typeof m > "u") {
1394
- if (b === 61) break;
1395
- A(b);
1386
+ if (_((m & 15) << 4 >>> 0 | (y & 60) >> 2), (E = p()) !== null) {
1387
+ if (m = o[E], typeof m > "u") {
1388
+ if (E === 61) break;
1389
+ A(E);
1396
1390
  }
1397
- w((E & 3) << 6 >>> 0 | m);
1391
+ _((y & 3) << 6 >>> 0 | m);
1398
1392
  }
1399
1393
  }
1400
1394
  }, i.test = function(p) {
1401
1395
  return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(p);
1402
1396
  }, i;
1403
- }();
1397
+ })();
1404
1398
  a.toBase64 = function(i, r) {
1405
1399
  if (typeof i > "u" && (i = this.offset), typeof r > "u" && (r = this.limit), i = i | 0, r = r | 0, i < 0 || r > this.capacity || i > r)
1406
1400
  throw RangeError("begin, end");
1407
1401
  var o;
1408
- return _.encode((function() {
1402
+ return w.encode((function() {
1409
1403
  return i < r ? this.view[i++] : null;
1410
- }).bind(this), o = d()), o();
1404
+ }).bind(this), o = c()), o();
1411
1405
  }, t.fromBase64 = function(i, r) {
1412
1406
  if (typeof i != "string")
1413
1407
  throw TypeError("str");
1414
1408
  var o = new t(i.length / 4 * 3, r), h = 0;
1415
- return _.decode(c(i), function(f) {
1409
+ return w.decode(d(i), function(f) {
1416
1410
  o.view[h++] = f;
1417
1411
  }), o.limit = h, o;
1418
1412
  }, t.btoa = function(i) {
@@ -1437,24 +1431,24 @@ function Fr() {
1437
1431
  }
1438
1432
  return p.limit = h, p;
1439
1433
  }, a.toDebug = function(i) {
1440
- for (var r = -1, o = this.buffer.byteLength, h, f = "", p = "", w = ""; r < o; ) {
1434
+ for (var r = -1, o = this.buffer.byteLength, h, f = "", p = "", _ = ""; r < o; ) {
1441
1435
  if (r !== -1 && (h = this.view[r], h < 16 ? f += "0" + h.toString(16).toUpperCase() : f += h.toString(16).toUpperCase(), i && (p += h > 32 && h < 127 ? String.fromCharCode(h) : ".")), ++r, i && r > 0 && r % 16 === 0 && r !== o) {
1442
- for (; f.length < 3 * 16 + 3; ) f += " ";
1443
- w += f + p + `
1436
+ for (; f.length < 51; ) f += " ";
1437
+ _ += f + p + `
1444
1438
  `, f = p = "";
1445
1439
  }
1446
1440
  r === this.offset && r === this.limit ? f += r === this.markedOffset ? "!" : "|" : r === this.offset ? f += r === this.markedOffset ? "[" : "<" : r === this.limit ? f += r === this.markedOffset ? "]" : ">" : f += r === this.markedOffset ? "'" : i || r !== 0 && r !== o ? " " : "";
1447
1441
  }
1448
1442
  if (i && f !== " ") {
1449
- for (; f.length < 3 * 16 + 3; )
1443
+ for (; f.length < 51; )
1450
1444
  f += " ";
1451
- w += f + p + `
1445
+ _ += f + p + `
1452
1446
  `;
1453
1447
  }
1454
- return i ? w : f;
1448
+ return i ? _ : f;
1455
1449
  }, t.fromDebug = function(i, r, o) {
1456
- for (var h = i.length, f = new t((h + 1) / 3 | 0, r, o), p = 0, w = 0, b, E, m = !1, A = !1, F = !1, k = !1, v = !1; p < h; ) {
1457
- switch (b = i.charAt(p++)) {
1450
+ for (var h = i.length, f = new t((h + 1) / 3 | 0, r, o), p = 0, _ = 0, E, y, m = !1, A = !1, F = !1, k = !1, v = !1; p < h; ) {
1451
+ switch (E = i.charAt(p++)) {
1458
1452
  case "!":
1459
1453
  if (!o) {
1460
1454
  if (A || F || k) {
@@ -1463,7 +1457,7 @@ function Fr() {
1463
1457
  }
1464
1458
  A = F = k = !0;
1465
1459
  }
1466
- f.offset = f.markedOffset = f.limit = w, m = !1;
1460
+ f.offset = f.markedOffset = f.limit = _, m = !1;
1467
1461
  break;
1468
1462
  case "|":
1469
1463
  if (!o) {
@@ -1473,7 +1467,7 @@ function Fr() {
1473
1467
  }
1474
1468
  A = k = !0;
1475
1469
  }
1476
- f.offset = f.limit = w, m = !1;
1470
+ f.offset = f.limit = _, m = !1;
1477
1471
  break;
1478
1472
  case "[":
1479
1473
  if (!o) {
@@ -1483,7 +1477,7 @@ function Fr() {
1483
1477
  }
1484
1478
  A = F = !0;
1485
1479
  }
1486
- f.offset = f.markedOffset = w, m = !1;
1480
+ f.offset = f.markedOffset = _, m = !1;
1487
1481
  break;
1488
1482
  case "<":
1489
1483
  if (!o) {
@@ -1493,7 +1487,7 @@ function Fr() {
1493
1487
  }
1494
1488
  A = !0;
1495
1489
  }
1496
- f.offset = w, m = !1;
1490
+ f.offset = _, m = !1;
1497
1491
  break;
1498
1492
  case "]":
1499
1493
  if (!o) {
@@ -1503,7 +1497,7 @@ function Fr() {
1503
1497
  }
1504
1498
  k = F = !0;
1505
1499
  }
1506
- f.limit = f.markedOffset = w, m = !1;
1500
+ f.limit = f.markedOffset = _, m = !1;
1507
1501
  break;
1508
1502
  case ">":
1509
1503
  if (!o) {
@@ -1513,7 +1507,7 @@ function Fr() {
1513
1507
  }
1514
1508
  k = !0;
1515
1509
  }
1516
- f.limit = w, m = !1;
1510
+ f.limit = _, m = !1;
1517
1511
  break;
1518
1512
  case "'":
1519
1513
  if (!o) {
@@ -1523,7 +1517,7 @@ function Fr() {
1523
1517
  }
1524
1518
  F = !0;
1525
1519
  }
1526
- f.markedOffset = w, m = !1;
1520
+ f.markedOffset = _, m = !1;
1527
1521
  break;
1528
1522
  case " ":
1529
1523
  m = !1;
@@ -1533,9 +1527,9 @@ function Fr() {
1533
1527
  v = !0;
1534
1528
  break;
1535
1529
  }
1536
- if (E = parseInt(b + i.charAt(p++), 16), !o && (isNaN(E) || E < 0 || E > 255))
1530
+ if (y = parseInt(E + i.charAt(p++), 16), !o && (isNaN(y) || y < 0 || y > 255))
1537
1531
  throw TypeError("Illegal str: Not a debug encoded string");
1538
- f.view[w++] = E, m = !0;
1532
+ f.view[_++] = y, m = !0;
1539
1533
  }
1540
1534
  if (v)
1541
1535
  throw TypeError("Illegal str: Invalid symbol at " + p);
@@ -1543,8 +1537,8 @@ function Fr() {
1543
1537
  if (!o) {
1544
1538
  if (!A || !k)
1545
1539
  throw TypeError("Illegal str: Missing offset or limit");
1546
- if (w < f.buffer.byteLength)
1547
- throw TypeError("Illegal str: Not a debug encoded string (is it hex?) " + w + " < " + h);
1540
+ if (_ < f.buffer.byteLength)
1541
+ throw TypeError("Illegal str: Not a debug encoded string (is it hex?) " + _ + " < " + h);
1548
1542
  }
1549
1543
  return f;
1550
1544
  }, a.toHex = function(i, r) {
@@ -1566,14 +1560,14 @@ function Fr() {
1566
1560
  if (i.length % 2 !== 0)
1567
1561
  throw TypeError("Illegal str: Length not a multiple of 2");
1568
1562
  }
1569
- for (var h = i.length, f = new t(h / 2 | 0, r), p, w = 0, b = 0; w < h; w += 2) {
1570
- if (p = parseInt(i.substring(w, w + 2), 16), !o && (!isFinite(p) || p < 0 || p > 255))
1563
+ for (var h = i.length, f = new t(h / 2 | 0, r), p, _ = 0, E = 0; _ < h; _ += 2) {
1564
+ if (p = parseInt(i.substring(_, _ + 2), 16), !o && (!isFinite(p) || p < 0 || p > 255))
1571
1565
  throw TypeError("Illegal str: Contains non-hex characters");
1572
- f.view[b++] = p;
1566
+ f.view[E++] = p;
1573
1567
  }
1574
- return f.limit = b, f;
1568
+ return f.limit = E, f;
1575
1569
  };
1576
- var I = function() {
1570
+ var T = (function() {
1577
1571
  var i = {};
1578
1572
  return i.MAX_CODEPOINT = 1114111, i.encodeUTF8 = function(r, o) {
1579
1573
  var h = null;
@@ -1582,19 +1576,19 @@ function Fr() {
1582
1576
  }); h !== null || (h = r()) !== null; )
1583
1577
  h < 128 ? o(h & 127) : h < 2048 ? (o(h >> 6 & 31 | 192), o(h & 63 | 128)) : h < 65536 ? (o(h >> 12 & 15 | 224), o(h >> 6 & 63 | 128), o(h & 63 | 128)) : (o(h >> 18 & 7 | 240), o(h >> 12 & 63 | 128), o(h >> 6 & 63 | 128), o(h & 63 | 128)), h = null;
1584
1578
  }, i.decodeUTF8 = function(r, o) {
1585
- for (var h, f, p, w, b = function(E) {
1586
- E = E.slice(0, E.indexOf(null));
1587
- var m = Error(E.toString());
1588
- throw m.name = "TruncatedError", m.bytes = E, m;
1579
+ for (var h, f, p, _, E = function(y) {
1580
+ y = y.slice(0, y.indexOf(null));
1581
+ var m = Error(y.toString());
1582
+ throw m.name = "TruncatedError", m.bytes = y, m;
1589
1583
  }; (h = r()) !== null; )
1590
1584
  if ((h & 128) === 0)
1591
1585
  o(h);
1592
1586
  else if ((h & 224) === 192)
1593
- (f = r()) === null && b([h, f]), o((h & 31) << 6 | f & 63);
1587
+ (f = r()) === null && E([h, f]), o((h & 31) << 6 | f & 63);
1594
1588
  else if ((h & 240) === 224)
1595
- ((f = r()) === null || (p = r()) === null) && b([h, f, p]), o((h & 15) << 12 | (f & 63) << 6 | p & 63);
1589
+ ((f = r()) === null || (p = r()) === null) && E([h, f, p]), o((h & 15) << 12 | (f & 63) << 6 | p & 63);
1596
1590
  else if ((h & 248) === 240)
1597
- ((f = r()) === null || (p = r()) === null || (w = r()) === null) && b([h, f, p, w]), o((h & 7) << 18 | (f & 63) << 12 | (p & 63) << 6 | w & 63);
1591
+ ((f = r()) === null || (p = r()) === null || (_ = r()) === null) && E([h, f, p, _]), o((h & 7) << 18 | (f & 63) << 12 | (p & 63) << 6 | _ & 63);
1598
1592
  else throw RangeError("Illegal starting byte: " + h);
1599
1593
  }, i.UTF16toUTF8 = function(r, o) {
1600
1594
  for (var h, f = null; (h = f !== null ? f : r()) !== null; ) {
@@ -1631,7 +1625,7 @@ function Fr() {
1631
1625
  ++o, h += f < 128 ? 1 : f < 2048 ? 2 : f < 65536 ? 3 : 4;
1632
1626
  }), [o, h];
1633
1627
  }, i;
1634
- }();
1628
+ })();
1635
1629
  return a.toUTF8 = function(i, r) {
1636
1630
  if (typeof i > "u" && (i = this.offset), typeof r > "u" && (r = this.limit), !this.noAssert) {
1637
1631
  if (typeof i != "number" || i % 1 !== 0)
@@ -1643,9 +1637,9 @@ function Fr() {
1643
1637
  }
1644
1638
  var o;
1645
1639
  try {
1646
- I.decodeUTF8toUTF16((function() {
1640
+ T.decodeUTF8toUTF16((function() {
1647
1641
  return i < r ? this.view[i++] : null;
1648
- }).bind(this), o = d());
1642
+ }).bind(this), o = c());
1649
1643
  } catch {
1650
1644
  if (i !== r)
1651
1645
  throw RangeError("Illegal range: Truncated data, " + i + " != " + r);
@@ -1654,13 +1648,13 @@ function Fr() {
1654
1648
  }, t.fromUTF8 = function(i, r, o) {
1655
1649
  if (!o && typeof i != "string")
1656
1650
  throw TypeError("Illegal str: Not a string");
1657
- var h = new t(I.calculateUTF16asUTF8(c(i), !0)[1], r, o), f = 0;
1658
- return I.encodeUTF16toUTF8(c(i), function(p) {
1651
+ var h = new t(T.calculateUTF16asUTF8(d(i), !0)[1], r, o), f = 0;
1652
+ return T.encodeUTF16toUTF8(d(i), function(p) {
1659
1653
  h.view[f++] = p;
1660
1654
  }), h.limit = f, h;
1661
1655
  }, t;
1662
1656
  });
1663
- }(et)), et.exports;
1657
+ })(tt)), tt.exports;
1664
1658
  }
1665
1659
  var mr = Fr();
1666
1660
  const le = /* @__PURE__ */ vr(mr), kr = 1, Ar = 2, Sr = 512, Nr = 513, Ur = 514, Lr = 1, Rr = 3;
@@ -1695,33 +1689,33 @@ class fe {
1695
1689
  * @return {Record<string, string[]>}
1696
1690
  */
1697
1691
  processResourceTable(n) {
1698
- const t = le.wrap(n, "binary", !0), a = t.readShort(), s = t.readShort(), l = t.readInt(), c = t.readInt();
1699
- let d, x;
1692
+ const t = le.wrap(n, "binary", !0), a = t.readShort(), s = t.readShort(), l = t.readInt(), d = t.readInt();
1693
+ let c, x;
1700
1694
  if (a !== Ar)
1701
1695
  throw new Error("No RES_TABLE_TYPE found!");
1702
1696
  if (l !== t.limit)
1703
1697
  throw new Error("The buffer size not matches to the resource table size.");
1704
1698
  t.offset = s;
1705
- let g = 0, _ = 0;
1699
+ let g = 0, w = 0;
1706
1700
  for (; ; ) {
1707
- let I, i, r;
1701
+ let T, i, r;
1708
1702
  try {
1709
- I = t.offset, i = t.readShort(), t.readShort(), r = t.readInt();
1703
+ T = t.offset, i = t.readShort(), t.readShort(), r = t.readInt();
1710
1704
  } catch {
1711
1705
  break;
1712
1706
  }
1713
1707
  if (i === kr)
1714
- g === 0 && (d = new le(r), t.offset = I, t.prependTo(d), x = le.wrap(d, "binary", !0), x.LE(), this.valueStringPool = this.processStringPool(x)), g++;
1708
+ g === 0 && (c = new le(r), t.offset = T, t.prependTo(c), x = le.wrap(c, "binary", !0), x.LE(), this.valueStringPool = this.processStringPool(x)), g++;
1715
1709
  else if (i === Sr)
1716
- d = new le(r), t.offset = I, t.prependTo(d), x = le.wrap(d, "binary", !0), x.LE(), this.processPackage(x), _++;
1710
+ c = new le(r), t.offset = T, t.prependTo(c), x = le.wrap(c, "binary", !0), x.LE(), this.processPackage(x), w++;
1717
1711
  else
1718
1712
  throw new Error("Unsupported type");
1719
- if (t.offset = I + r, !t.remaining())
1713
+ if (t.offset = T + r, !t.remaining())
1720
1714
  break;
1721
1715
  }
1722
1716
  if (g !== 1)
1723
1717
  throw new Error("More than 1 string pool found!");
1724
- if (_ !== c)
1718
+ if (w !== d)
1725
1719
  throw new Error("Real package count not equals the declared count.");
1726
1720
  return this.responseMap;
1727
1721
  }
@@ -1735,31 +1729,31 @@ class fe {
1735
1729
  n.readInt();
1736
1730
  const a = n.readInt();
1737
1731
  this.package_id = a;
1738
- for (let I = 0; I < 256; ++I)
1732
+ for (let T = 0; T < 256; ++T)
1739
1733
  n.readUint8();
1740
1734
  const s = n.readInt();
1741
1735
  n.readInt();
1742
1736
  const l = n.readInt();
1743
1737
  if (n.readInt(), s !== t)
1744
1738
  throw new Error("TypeStrings must immediately following the package structure header.");
1745
- let c = n.offset;
1739
+ let d = n.offset;
1746
1740
  n.offset = s;
1747
- const d = fe.readBytes(n, n.limit - n.offset);
1748
- n.offset = c, this.typeStringPool = this.processStringPool(d), n.offset = l, n.readShort(), n.readShort();
1741
+ const c = fe.readBytes(n, n.limit - n.offset);
1742
+ n.offset = d, this.typeStringPool = this.processStringPool(c), n.offset = l, n.readShort(), n.readShort();
1749
1743
  const x = n.readInt();
1750
- c = n.offset, n.offset = l;
1744
+ d = n.offset, n.offset = l;
1751
1745
  const g = fe.readBytes(n, n.limit - n.offset);
1752
- n.offset = c, this.keyStringPool = this.processStringPool(g), n.offset = l + x;
1753
- let _;
1746
+ n.offset = d, this.keyStringPool = this.processStringPool(g), n.offset = l + x;
1747
+ let w;
1754
1748
  for (; ; ) {
1755
- const I = n.offset;
1749
+ const T = n.offset;
1756
1750
  let i, r;
1757
1751
  try {
1758
1752
  i = n.readShort(), n.readShort(), r = n.readInt();
1759
1753
  } catch {
1760
1754
  break;
1761
1755
  }
1762
- if (i === Ur ? (n.offset = I, _ = fe.readBytes(n, r), this.processTypeSpec(_)) : i === Nr && (n.offset = I, _ = fe.readBytes(n, r), this.processType(_)), r === 0 || (n.offset = I + r, !n.remaining()))
1756
+ if (i === Ur ? (n.offset = T, w = fe.readBytes(n, r), this.processTypeSpec(w)) : i === Nr && (n.offset = T, w = fe.readBytes(n, r), this.processType(w)), r === 0 || (n.offset = T + r, !n.remaining()))
1763
1757
  break;
1764
1758
  }
1765
1759
  }
@@ -1773,28 +1767,28 @@ class fe {
1773
1767
  n.readInt();
1774
1768
  const a = n.readByte();
1775
1769
  n.readByte(), n.readShort();
1776
- const s = n.readInt(), l = n.readInt(), c = {};
1770
+ const s = n.readInt(), l = n.readInt(), d = {};
1777
1771
  if (n.readInt(), n.offset = t, t + s * 4 !== l)
1778
1772
  throw new Error("HeaderSize, entryCount and entriesStart are not valid.");
1779
- const d = new Array(s);
1773
+ const c = new Array(s);
1780
1774
  for (let x = 0; x < s; ++x)
1781
- d[x] = n.readInt();
1775
+ c[x] = n.readInt();
1782
1776
  for (let x = 0; x < s; ++x) {
1783
- if (d[x] === -1) continue;
1784
- const g = this.package_id << 24 | a << 16 | x, _ = n.offset;
1785
- let I, i, r, o;
1777
+ if (c[x] === -1) continue;
1778
+ const g = this.package_id << 24 | a << 16 | x, w = n.offset;
1779
+ let T, i, r, o;
1786
1780
  try {
1787
- n.readShort(), I = n.readShort(), i = n.readInt();
1781
+ n.readShort(), T = n.readShort(), i = n.readInt();
1788
1782
  } catch {
1789
1783
  break;
1790
1784
  }
1791
- if ((I & 1) === 0) {
1785
+ if ((T & 1) === 0) {
1792
1786
  n.readShort(), n.readByte(), r = n.readByte(), o = n.readInt();
1793
1787
  const f = Number(g).toString(16), p = this.keyStringPool[i];
1794
- let w = null;
1795
- const b = parseInt(f, 16);
1796
- let E = this.entryMap[b];
1797
- E == null && (E = []), E.push(p), this.entryMap[b] = E, r === Rr ? w = this.valueStringPool[o] : r === Lr ? c[f] = o : w = "" + o, this.putIntoMap("@" + f, w), n.offset = _ + 8 + 8;
1788
+ let _ = null;
1789
+ const E = parseInt(f, 16);
1790
+ let y = this.entryMap[E];
1791
+ y == null && (y = []), y.push(p), this.entryMap[E] = y, r === Rr ? _ = this.valueStringPool[o] : r === Lr ? d[f] = o : _ = "" + o, this.putIntoMap("@" + f, _), n.offset = w + 8 + 8;
1798
1792
  } else {
1799
1793
  n.readInt();
1800
1794
  const f = n.readInt();
@@ -1802,11 +1796,11 @@ class fe {
1802
1796
  n.readInt(), n.readShort(), n.readByte(), r = n.readByte(), o = n.readInt();
1803
1797
  }
1804
1798
  }
1805
- for (const x in c) {
1806
- const g = this.responseMap["@" + Number(c[x]).toString(16).toUpperCase()];
1799
+ for (const x in d) {
1800
+ const g = this.responseMap["@" + Number(d[x]).toString(16).toUpperCase()];
1807
1801
  if (g != null && Object.keys(g).length < 1e3)
1808
- for (const _ of g)
1809
- this.putIntoMap("@" + x, _);
1802
+ for (const w of g)
1803
+ this.putIntoMap("@" + x, w);
1810
1804
  }
1811
1805
  }
1812
1806
  /**
@@ -1820,29 +1814,29 @@ class fe {
1820
1814
  n.readInt();
1821
1815
  const a = n.readInt(), s = n.readInt();
1822
1816
  n.readInt();
1823
- let l, c;
1824
- const d = (a & 256) !== 0, x = new Array(t);
1825
- for (let _ = 0; _ < t; ++_)
1826
- x[_] = n.readInt();
1817
+ let l, d;
1818
+ const c = (a & 256) !== 0, x = new Array(t);
1819
+ for (let w = 0; w < t; ++w)
1820
+ x[w] = n.readInt();
1827
1821
  const g = new Array(t);
1828
- for (let _ = 0; _ < t; ++_) {
1829
- const I = s + x[_];
1830
- if (n.offset = I, g[_] = "", d) {
1822
+ for (let w = 0; w < t; ++w) {
1823
+ const T = s + x[w];
1824
+ if (n.offset = T, g[w] = "", c) {
1831
1825
  l = n.readUint8(), (l & 128) !== 0 && (l = ((l & 127) << 8) + n.readUint8());
1832
1826
  let i = n.readUint8();
1833
1827
  if ((i & 128) !== 0 && (i = ((i & 127) << 8) + n.readUint8()), i > 0) {
1834
- c = fe.readBytes(n, i);
1828
+ d = fe.readBytes(n, i);
1835
1829
  try {
1836
- g[_] = le.wrap(c, "utf8", !0).toString("utf8");
1830
+ g[w] = le.wrap(d, "utf8", !0).toString("utf8");
1837
1831
  } catch {
1838
1832
  }
1839
1833
  } else
1840
- g[_] = "";
1834
+ g[w] = "";
1841
1835
  } else if (l = n.readUint16(), (l & 32768) !== 0 && (l = ((l & 32767) << 16) + n.readUint16()), l > 0) {
1842
1836
  const i = l * 2;
1843
- c = fe.readBytes(n, i);
1837
+ d = fe.readBytes(n, i);
1844
1838
  try {
1845
- g[_] = le.wrap(c, "utf8", !0).toString("utf8");
1839
+ g[w] = le.wrap(d, "utf8", !0).toString("utf8");
1846
1840
  } catch {
1847
1841
  }
1848
1842
  }
@@ -1886,7 +1880,7 @@ const q = {
1886
1880
  }, Ye = {
1887
1881
  SORTED: 1,
1888
1882
  UTF8: 256
1889
- }, z = {
1883
+ }, M = {
1890
1884
  COMPLEX_UNIT_DIP: 1,
1891
1885
  COMPLEX_UNIT_FRACTION: 0,
1892
1886
  COMPLEX_UNIT_FRACTION_PARENT: 1,
@@ -1968,22 +1962,22 @@ class Cr {
1968
1962
  // Will be overwritten
1969
1963
  }, t = this.readU32(), a = t & 255;
1970
1964
  switch (n.value = t >> 8, n.rawUnit = a, a) {
1971
- case z.COMPLEX_UNIT_MM:
1965
+ case M.COMPLEX_UNIT_MM:
1972
1966
  n.unit = "mm";
1973
1967
  break;
1974
- case z.COMPLEX_UNIT_PX:
1968
+ case M.COMPLEX_UNIT_PX:
1975
1969
  n.unit = "px";
1976
1970
  break;
1977
- case z.COMPLEX_UNIT_DIP:
1971
+ case M.COMPLEX_UNIT_DIP:
1978
1972
  n.unit = "dp";
1979
1973
  break;
1980
- case z.COMPLEX_UNIT_SP:
1974
+ case M.COMPLEX_UNIT_SP:
1981
1975
  n.unit = "sp";
1982
1976
  break;
1983
- case z.COMPLEX_UNIT_PT:
1977
+ case M.COMPLEX_UNIT_PT:
1984
1978
  n.unit = "pt";
1985
1979
  break;
1986
- case z.COMPLEX_UNIT_IN:
1980
+ case M.COMPLEX_UNIT_IN:
1987
1981
  n.unit = "in";
1988
1982
  break;
1989
1983
  }
@@ -1999,10 +1993,10 @@ class Cr {
1999
1993
  // Will be overwritten
2000
1994
  }, t = this.readU32(), a = t & 15;
2001
1995
  switch (n.value = this.convertIntToFloat(t >> 4), n.rawType = a, a) {
2002
- case z.COMPLEX_UNIT_FRACTION:
1996
+ case M.COMPLEX_UNIT_FRACTION:
2003
1997
  n.type = "%";
2004
1998
  break;
2005
- case z.COMPLEX_UNIT_FRACTION_PARENT:
1999
+ case M.COMPLEX_UNIT_FRACTION_PARENT:
2006
2000
  n.type = "%p";
2007
2001
  break;
2008
2002
  }
@@ -2030,42 +2024,42 @@ class Cr {
2030
2024
  this.readU8();
2031
2025
  const s = this.readU8();
2032
2026
  switch (a === 0 && (a = 8), n.rawType = s, s) {
2033
- case z.TYPE_INT_DEC:
2027
+ case M.TYPE_INT_DEC:
2034
2028
  n.value = this.readS32(), n.type = "int_dec";
2035
2029
  break;
2036
- case z.TYPE_INT_HEX:
2030
+ case M.TYPE_INT_HEX:
2037
2031
  n.value = this.readS32(), n.type = "int_hex";
2038
2032
  break;
2039
- case z.TYPE_STRING:
2040
- const c = this.readS32();
2041
- n.value = c >= 0 ? this.strings[c] : "", n.type = "string";
2033
+ case M.TYPE_STRING:
2034
+ const d = this.readS32();
2035
+ n.value = d >= 0 ? this.strings[d] : "", n.type = "string";
2042
2036
  break;
2043
- case z.TYPE_REFERENCE:
2044
- const d = this.readU32();
2045
- n.value = `resourceId:0x${d.toString(16)}`, n.type = "reference";
2037
+ case M.TYPE_REFERENCE:
2038
+ const c = this.readU32();
2039
+ n.value = `resourceId:0x${c.toString(16)}`, n.type = "reference";
2046
2040
  break;
2047
- case z.TYPE_INT_BOOLEAN:
2041
+ case M.TYPE_INT_BOOLEAN:
2048
2042
  n.value = this.readS32() !== 0, n.type = "boolean";
2049
2043
  break;
2050
- case z.TYPE_NULL:
2044
+ case M.TYPE_NULL:
2051
2045
  this.readU32(), n.value = null, n.type = "null";
2052
2046
  break;
2053
- case z.TYPE_INT_COLOR_RGB8:
2047
+ case M.TYPE_INT_COLOR_RGB8:
2054
2048
  n.value = this.readHex24(), n.type = "rgb8";
2055
2049
  break;
2056
- case z.TYPE_INT_COLOR_RGB4:
2050
+ case M.TYPE_INT_COLOR_RGB4:
2057
2051
  n.value = this.readHex24(), n.type = "rgb4";
2058
2052
  break;
2059
- case z.TYPE_INT_COLOR_ARGB8:
2053
+ case M.TYPE_INT_COLOR_ARGB8:
2060
2054
  n.value = this.readHex32(), n.type = "argb8";
2061
2055
  break;
2062
- case z.TYPE_INT_COLOR_ARGB4:
2056
+ case M.TYPE_INT_COLOR_ARGB4:
2063
2057
  n.value = this.readHex32(), n.type = "argb4";
2064
2058
  break;
2065
- case z.TYPE_DIMENSION:
2059
+ case M.TYPE_DIMENSION:
2066
2060
  n.value = this.readDimension(), n.type = "dimension";
2067
2061
  break;
2068
- case z.TYPE_FRACTION:
2062
+ case M.TYPE_FRACTION:
2069
2063
  n.value = this.readFraction(), n.type = "fraction";
2070
2064
  break;
2071
2065
  default: {
@@ -2075,8 +2069,8 @@ class Cr {
2075
2069
  }
2076
2070
  const l = t + a;
2077
2071
  if (this.cursor !== l) {
2078
- const c = s.toString(16), d = l - this.cursor;
2079
- console.debug(`Cursor is off by ${d} bytes at ${this.cursor} at supposed end of typed value of type 0x${c}. The typed value started at offset ${t} and is supposed to end at offset ${l}. Ignoring the rest of the value.`), this.cursor = l;
2072
+ const d = s.toString(16), c = l - this.cursor;
2073
+ console.debug(`Cursor is off by ${c} bytes at ${this.cursor} at supposed end of typed value of type 0x${d}. The typed value started at offset ${t} and is supposed to end at offset ${l}. Ignoring the rest of the value.`), this.cursor = l;
2080
2074
  }
2081
2075
  return this.debug && console.groupEnd(), n;
2082
2076
  }
@@ -2101,8 +2095,8 @@ class Cr {
2101
2095
  default:
2102
2096
  throw new Error(`Unsupported encoding '${n}'`);
2103
2097
  }
2104
- const s = new TextDecoder(n === "ucs2" ? "utf-16le" : n), l = new Uint8Array(this.view.buffer, this.cursor, t), c = s.decode(l);
2105
- return this.cursor += t, this.debug && (console.debug("value:", c), console.groupEnd()), c;
2098
+ const s = new TextDecoder(n === "ucs2" ? "utf-16le" : n), l = new Uint8Array(this.view.buffer, this.cursor, t), d = s.decode(l);
2099
+ return this.cursor += t, this.debug && (console.debug("value:", d), console.groupEnd()), d;
2106
2100
  }
2107
2101
  readChunkHeader() {
2108
2102
  this.debug && console.group("readChunkHeader");
@@ -2118,15 +2112,15 @@ class Cr {
2118
2112
  if (this.debug && console.group("readStringPool"), n.stringCount = this.readU32(), this.debug && console.debug("stringCount:", n.stringCount), n.styleCount = this.readU32(), this.debug && console.debug("styleCount:", n.styleCount), n.flags = this.readU32(), this.debug && console.debug("flags:", n.flags), n.stringsStart = this.readU32(), this.debug && console.debug("stringsStart:", n.stringsStart), n.stylesStart = this.readU32(), this.debug && console.debug("stylesStart:", n.stylesStart), n.chunkType !== Q.STRING_POOL)
2119
2113
  throw new Error("Invalid string pool header");
2120
2114
  const t = [];
2121
- for (let c = 0, d = n.stringCount; c < d; ++c)
2122
- this.debug && console.debug("offset:", c), t.push(this.readU32());
2115
+ for (let d = 0, c = n.stringCount; d < c; ++d)
2116
+ this.debug && console.debug("offset:", d), t.push(this.readU32());
2123
2117
  const a = (n.flags & Ye.SORTED) === Ye.SORTED;
2124
2118
  this.debug && console.debug("sorted:", a);
2125
2119
  const s = (n.flags & Ye.UTF8) === Ye.UTF8 ? "utf-8" : "ucs2";
2126
2120
  this.debug && console.debug("encoding:", s);
2127
2121
  const l = n.startOffset + (n.stringsStart || 0);
2128
- for (let c = 0, d = n.stringCount; c < d; ++c)
2129
- this.debug && (console.debug("string:", c), console.debug("offset:", t[c])), this.cursor = l + t[c], this.strings.push(this.readString(s));
2122
+ for (let d = 0, c = n.stringCount; d < c; ++d)
2123
+ this.debug && (console.debug("string:", d), console.debug("offset:", t[d])), this.cursor = l + t[d], this.strings.push(this.readString(s));
2130
2124
  return this.cursor = n.startOffset + n.chunkSize, this.debug && console.groupEnd(), null;
2131
2125
  }
2132
2126
  readResourceMap(n) {
@@ -2156,7 +2150,7 @@ class Cr {
2156
2150
  a >= 0 && (t.namespaceURI = this.strings[a]), s >= 0 && (t.nodeName = this.strings[s]), this.readU16(), this.readU16();
2157
2151
  const l = this.readU16();
2158
2152
  this.readU16(), this.readU16(), this.readU16();
2159
- for (let c = 0; c < l; ++c)
2153
+ for (let d = 0; d < l; ++d)
2160
2154
  t.attributes.push(this.readXmlAttribute());
2161
2155
  return this.document ? (this.parent && this.parent.nodeType === q.ELEMENT_NODE && this.parent.childNodes.push(t), this.parent = t) : this.document = this.parent = t, this.stack.push(t), this.debug && console.groupEnd(), t;
2162
2156
  }
@@ -2233,8 +2227,8 @@ class Cr {
2233
2227
  }
2234
2228
  const s = t + a.chunkSize;
2235
2229
  if (this.cursor !== s) {
2236
- const l = s - this.cursor, c = a.chunkType.toString(16);
2237
- console.debug(`Cursor is off by ${l} bytes at ${this.cursor} at supposed end of chunk of type 0x${c}. The chunk started at offset ${t} and is supposed to end at offset ${s}. Ignoring the rest of the chunk.`), this.cursor = s;
2230
+ const l = s - this.cursor, d = a.chunkType.toString(16);
2231
+ console.debug(`Cursor is off by ${l} bytes at ${this.cursor} at supposed end of chunk of type 0x${d}. The chunk started at offset ${t} and is supposed to end at offset ${s}. Ignoring the rest of the chunk.`), this.cursor = s;
2238
2232
  }
2239
2233
  this.debug && console.groupEnd();
2240
2234
  }
@@ -2418,48 +2412,48 @@ class Br {
2418
2412
  }), t;
2419
2413
  }
2420
2414
  }
2421
- const zr = Dt.loadAsync;
2415
+ const zr = Bt.loadAsync;
2422
2416
  class Ds {
2423
2417
  zip;
2424
2418
  constructor(n) {
2425
- this.zip = zr(n).catch(M);
2419
+ this.zip = zr(n).catch(B);
2426
2420
  }
2427
2421
  async parse(n) {
2428
2422
  const t = await this.zip;
2429
2423
  if (t instanceof Error)
2430
2424
  return new Error(`load file error: ${t.message}`);
2431
- const a = t.file("AndroidManifest.xml"), s = n?.ignoreIcon ? null : t.file("resources.arsc"), [l, c] = await Promise.all([
2432
- a?.async("arraybuffer").catch(M),
2433
- s?.async("arraybuffer").catch(M)
2425
+ const a = t.file("AndroidManifest.xml"), s = n?.ignoreIcon ? null : t.file("resources.arsc"), [l, d] = await Promise.all([
2426
+ a?.async("arraybuffer").catch(B),
2427
+ s?.async("arraybuffer").catch(B)
2434
2428
  ]);
2435
2429
  if (!l || l instanceof Error)
2436
2430
  return new Error("not found AndroidManifest.xml");
2437
- const d = Mr(l);
2438
- if (d instanceof Error)
2439
- return new Error(`parse AndroidManifest.xml error: ${d.message}`);
2431
+ const c = Mr(l);
2432
+ if (c instanceof Error)
2433
+ return new Error(`parse AndroidManifest.xml error: ${c.message}`);
2440
2434
  const x = {
2441
- package: d.package,
2442
- versionCode: d.versionCode,
2443
- versionName: d.versionName,
2444
- manifest: d
2445
- }, g = d.application?.icon;
2446
- if (!c || c instanceof Error || !g || typeof g != "string")
2435
+ package: c.package,
2436
+ versionCode: c.versionCode,
2437
+ versionName: c.versionName,
2438
+ manifest: c
2439
+ }, g = c.application?.icon;
2440
+ if (!d || d instanceof Error || !g || typeof g != "string")
2447
2441
  return x;
2448
- const _ = Pr(c, g);
2449
- if (!_)
2442
+ const w = Pr(d, g);
2443
+ if (!w)
2450
2444
  return x;
2451
- const I = t.file(_);
2452
- if (!I)
2445
+ const T = t.file(w);
2446
+ if (!T)
2453
2447
  return x;
2454
- const i = await I.async("base64").catch(M);
2455
- return i instanceof Error || (x.icon = Bt(i)), x;
2448
+ const i = await T.async("base64").catch(B);
2449
+ return i instanceof Error || (x.icon = zt(i)), x;
2456
2450
  }
2457
2451
  /**
2458
2452
  * 读取指定文件的内容
2459
2453
  */
2460
2454
  async readFile(n, t) {
2461
2455
  const a = await this.zip;
2462
- return a instanceof Error ? new Error(`load file error: ${a.message}`) : await zt(a, n, t);
2456
+ return a instanceof Error ? new Error(`load file error: ${a.message}`) : await Mt(a, n, t);
2463
2457
  }
2464
2458
  }
2465
2459
  function Mr(e) {
@@ -2475,7 +2469,7 @@ function Mr(e) {
2475
2469
  try {
2476
2470
  return n.parse();
2477
2471
  } catch (t) {
2478
- return M(t);
2472
+ return B(t);
2479
2473
  }
2480
2474
  }
2481
2475
  function Pr(e, n) {
@@ -2492,45 +2486,44 @@ function je(e, ...n) {
2492
2486
  const t = Object.getPrototypeOf(e);
2493
2487
  return t !== Object.prototype && t !== null ? !1 : n.every((a) => a in e);
2494
2488
  }
2495
- /*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */
2496
- const Zr = 4, Yt = 0, jt = 1, $r = 2;
2497
- function ke(e) {
2489
+ const Zr = 4, jt = 0, Gt = 1, $r = 2;
2490
+ function Ae(e) {
2498
2491
  let n = e.length;
2499
2492
  for (; --n >= 0; )
2500
2493
  e[n] = 0;
2501
2494
  }
2502
- const Hr = 0, Di = 1, Xr = 2, Vr = 3, Yr = 258, Mt = 29, Xe = 256, De = Xe + 1 + Mt, me = 30, Pt = 19, Bi = 2 * De + 1, we = 15, _t = 16, jr = 7, Zt = 256, zi = 16, Mi = 17, Pi = 18, Ut = (
2495
+ const Hr = 0, Di = 1, Xr = 2, Vr = 3, Yr = 258, Pt = 29, Xe = 256, De = Xe + 1 + Pt, ke = 30, Zt = 19, Bi = 2 * De + 1, we = 15, wt = 16, jr = 7, $t = 256, zi = 16, Mi = 17, Pi = 18, Lt = (
2503
2496
  /* extra bits for each length code */
2504
2497
  new Uint8Array([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])
2505
- ), it = (
2498
+ ), rt = (
2506
2499
  /* extra bits for each distance code */
2507
2500
  new Uint8Array([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])
2508
2501
  ), Gr = (
2509
2502
  /* extra bits for each bit length code */
2510
2503
  new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7])
2511
2504
  ), Zi = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), qr = 512, se = new Array((De + 2) * 2);
2512
- ke(se);
2513
- const Re = new Array(me * 2);
2514
- ke(Re);
2505
+ Ae(se);
2506
+ const Re = new Array(ke * 2);
2507
+ Ae(Re);
2515
2508
  const Be = new Array(qr);
2516
- ke(Be);
2509
+ Ae(Be);
2517
2510
  const ze = new Array(Yr - Vr + 1);
2518
- ke(ze);
2519
- const $t = new Array(Mt);
2520
- ke($t);
2521
- const ot = new Array(me);
2522
- ke(ot);
2523
- function wt(e, n, t, a, s) {
2511
+ Ae(ze);
2512
+ const Ht = new Array(Pt);
2513
+ Ae(Ht);
2514
+ const lt = new Array(ke);
2515
+ Ae(lt);
2516
+ function yt(e, n, t, a, s) {
2524
2517
  this.static_tree = e, this.extra_bits = n, this.extra_base = t, this.elems = a, this.max_length = s, this.has_stree = e && e.length;
2525
2518
  }
2526
2519
  let $i, Hi, Xi;
2527
- function yt(e, n) {
2520
+ function bt(e, n) {
2528
2521
  this.dyn_tree = e, this.max_code = 0, this.stat_desc = n;
2529
2522
  }
2530
2523
  const Vi = (e) => e < 256 ? Be[e] : Be[256 + (e >>> 7)], Me = (e, n) => {
2531
2524
  e.pending_buf[e.pending++] = n & 255, e.pending_buf[e.pending++] = n >>> 8 & 255;
2532
2525
  }, j = (e, n, t) => {
2533
- e.bi_valid > _t - t ? (e.bi_buf |= n << e.bi_valid & 65535, Me(e, e.bi_buf), e.bi_buf = n >> _t - e.bi_valid, e.bi_valid += t - _t) : (e.bi_buf |= n << e.bi_valid & 65535, e.bi_valid += t);
2526
+ e.bi_valid > wt - t ? (e.bi_buf |= n << e.bi_valid & 65535, Me(e, e.bi_buf), e.bi_buf = n >> wt - e.bi_valid, e.bi_valid += t - wt) : (e.bi_buf |= n << e.bi_valid & 65535, e.bi_valid += t);
2534
2527
  }, te = (e, n, t) => {
2535
2528
  j(
2536
2529
  e,
@@ -2547,12 +2540,12 @@ const Vi = (e) => e < 256 ? Be[e] : Be[256 + (e >>> 7)], Me = (e, n) => {
2547
2540
  }, Kr = (e) => {
2548
2541
  e.bi_valid === 16 ? (Me(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
2549
2542
  }, Wr = (e, n) => {
2550
- const t = n.dyn_tree, a = n.max_code, s = n.stat_desc.static_tree, l = n.stat_desc.has_stree, c = n.stat_desc.extra_bits, d = n.stat_desc.extra_base, x = n.stat_desc.max_length;
2551
- let g, _, I, i, r, o, h = 0;
2543
+ const t = n.dyn_tree, a = n.max_code, s = n.stat_desc.static_tree, l = n.stat_desc.has_stree, d = n.stat_desc.extra_bits, c = n.stat_desc.extra_base, x = n.stat_desc.max_length;
2544
+ let g, w, T, i, r, o, h = 0;
2552
2545
  for (i = 0; i <= we; i++)
2553
2546
  e.bl_count[i] = 0;
2554
2547
  for (t[e.heap[e.heap_max] * 2 + 1] = 0, g = e.heap_max + 1; g < Bi; g++)
2555
- _ = e.heap[g], i = t[t[_ * 2 + 1] * 2 + 1] + 1, i > x && (i = x, h++), t[_ * 2 + 1] = i, !(_ > a) && (e.bl_count[i]++, r = 0, _ >= d && (r = c[_ - d]), o = t[_ * 2], e.opt_len += o * (i + r), l && (e.static_len += o * (s[_ * 2 + 1] + r)));
2548
+ w = e.heap[g], i = t[t[w * 2 + 1] * 2 + 1] + 1, i > x && (i = x, h++), t[w * 2 + 1] = i, !(w > a) && (e.bl_count[i]++, r = 0, w >= c && (r = d[w - c]), o = t[w * 2], e.opt_len += o * (i + r), l && (e.static_len += o * (s[w * 2 + 1] + r)));
2556
2549
  if (h !== 0) {
2557
2550
  do {
2558
2551
  for (i = x - 1; e.bl_count[i] === 0; )
@@ -2560,29 +2553,29 @@ const Vi = (e) => e < 256 ? Be[e] : Be[256 + (e >>> 7)], Me = (e, n) => {
2560
2553
  e.bl_count[i]--, e.bl_count[i + 1] += 2, e.bl_count[x]--, h -= 2;
2561
2554
  } while (h > 0);
2562
2555
  for (i = x; i !== 0; i--)
2563
- for (_ = e.bl_count[i]; _ !== 0; )
2564
- I = e.heap[--g], !(I > a) && (t[I * 2 + 1] !== i && (e.opt_len += (i - t[I * 2 + 1]) * t[I * 2], t[I * 2 + 1] = i), _--);
2556
+ for (w = e.bl_count[i]; w !== 0; )
2557
+ T = e.heap[--g], !(T > a) && (t[T * 2 + 1] !== i && (e.opt_len += (i - t[T * 2 + 1]) * t[T * 2], t[T * 2 + 1] = i), w--);
2565
2558
  }
2566
2559
  }, ji = (e, n, t) => {
2567
2560
  const a = new Array(we + 1);
2568
- let s = 0, l, c;
2561
+ let s = 0, l, d;
2569
2562
  for (l = 1; l <= we; l++)
2570
2563
  a[l] = s = s + t[l - 1] << 1;
2571
- for (c = 0; c <= n; c++) {
2572
- let d = e[c * 2 + 1];
2573
- d !== 0 && (e[c * 2] = Yi(a[d]++, d));
2564
+ for (d = 0; d <= n; d++) {
2565
+ let c = e[d * 2 + 1];
2566
+ c !== 0 && (e[d * 2] = Yi(a[c]++, c));
2574
2567
  }
2575
2568
  }, Jr = () => {
2576
2569
  let e, n, t, a, s;
2577
2570
  const l = new Array(we + 1);
2578
- for (t = 0, a = 0; a < Mt - 1; a++)
2579
- for ($t[a] = t, e = 0; e < 1 << Ut[a]; e++)
2571
+ for (t = 0, a = 0; a < Pt - 1; a++)
2572
+ for (Ht[a] = t, e = 0; e < 1 << Lt[a]; e++)
2580
2573
  ze[t++] = a;
2581
2574
  for (ze[t - 1] = a, s = 0, a = 0; a < 16; a++)
2582
- for (ot[a] = s, e = 0; e < 1 << it[a]; e++)
2575
+ for (lt[a] = s, e = 0; e < 1 << rt[a]; e++)
2583
2576
  Be[s++] = a;
2584
- for (s >>= 7; a < me; a++)
2585
- for (ot[a] = s << 7, e = 0; e < 1 << it[a] - 7; e++)
2577
+ for (s >>= 7; a < ke; a++)
2578
+ for (lt[a] = s << 7, e = 0; e < 1 << rt[a] - 7; e++)
2586
2579
  Be[256 + s++] = a;
2587
2580
  for (n = 0; n <= we; n++)
2588
2581
  l[n] = 0;
@@ -2594,67 +2587,67 @@ const Vi = (e) => e < 256 ? Be[e] : Be[256 + (e >>> 7)], Me = (e, n) => {
2594
2587
  se[e * 2 + 1] = 7, e++, l[7]++;
2595
2588
  for (; e <= 287; )
2596
2589
  se[e * 2 + 1] = 8, e++, l[8]++;
2597
- for (ji(se, De + 1, l), e = 0; e < me; e++)
2590
+ for (ji(se, De + 1, l), e = 0; e < ke; e++)
2598
2591
  Re[e * 2 + 1] = 5, Re[e * 2] = Yi(e, 5);
2599
- $i = new wt(se, Ut, Xe + 1, De, we), Hi = new wt(Re, it, 0, me, we), Xi = new wt(new Array(0), Gr, 0, Pt, jr);
2592
+ $i = new yt(se, Lt, Xe + 1, De, we), Hi = new yt(Re, rt, 0, ke, we), Xi = new yt(new Array(0), Gr, 0, Zt, jr);
2600
2593
  }, Gi = (e) => {
2601
2594
  let n;
2602
2595
  for (n = 0; n < De; n++)
2603
2596
  e.dyn_ltree[n * 2] = 0;
2604
- for (n = 0; n < me; n++)
2597
+ for (n = 0; n < ke; n++)
2605
2598
  e.dyn_dtree[n * 2] = 0;
2606
- for (n = 0; n < Pt; n++)
2599
+ for (n = 0; n < Zt; n++)
2607
2600
  e.bl_tree[n * 2] = 0;
2608
- e.dyn_ltree[Zt * 2] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
2601
+ e.dyn_ltree[$t * 2] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
2609
2602
  }, qi = (e) => {
2610
2603
  e.bi_valid > 8 ? Me(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
2611
2604
  }, Qr = (e, n, t, a) => {
2612
2605
  qi(e), Me(e, t), Me(e, ~t), e.pending_buf.set(e.window.subarray(n, n + t), e.pending), e.pending += t;
2613
- }, Gt = (e, n, t, a) => {
2606
+ }, qt = (e, n, t, a) => {
2614
2607
  const s = n * 2, l = t * 2;
2615
2608
  return e[s] < e[l] || e[s] === e[l] && a[n] <= a[t];
2616
- }, bt = (e, n, t) => {
2609
+ }, Et = (e, n, t) => {
2617
2610
  const a = e.heap[t];
2618
2611
  let s = t << 1;
2619
- for (; s <= e.heap_len && (s < e.heap_len && Gt(n, e.heap[s + 1], e.heap[s], e.depth) && s++, !Gt(n, a, e.heap[s], e.depth)); )
2612
+ for (; s <= e.heap_len && (s < e.heap_len && qt(n, e.heap[s + 1], e.heap[s], e.depth) && s++, !qt(n, a, e.heap[s], e.depth)); )
2620
2613
  e.heap[t] = e.heap[s], t = s, s <<= 1;
2621
2614
  e.heap[t] = a;
2622
- }, qt = (e, n, t) => {
2623
- let a, s, l = 0, c, d;
2615
+ }, Kt = (e, n, t) => {
2616
+ let a, s, l = 0, d, c;
2624
2617
  if (e.last_lit !== 0)
2625
2618
  do
2626
- a = e.pending_buf[e.d_buf + l * 2] << 8 | e.pending_buf[e.d_buf + l * 2 + 1], s = e.pending_buf[e.l_buf + l], l++, a === 0 ? te(e, s, n) : (c = ze[s], te(e, c + Xe + 1, n), d = Ut[c], d !== 0 && (s -= $t[c], j(e, s, d)), a--, c = Vi(a), te(e, c, t), d = it[c], d !== 0 && (a -= ot[c], j(e, a, d)));
2619
+ a = e.pending_buf[e.d_buf + l * 2] << 8 | e.pending_buf[e.d_buf + l * 2 + 1], s = e.pending_buf[e.l_buf + l], l++, a === 0 ? te(e, s, n) : (d = ze[s], te(e, d + Xe + 1, n), c = Lt[d], c !== 0 && (s -= Ht[d], j(e, s, c)), a--, d = Vi(a), te(e, d, t), c = rt[d], c !== 0 && (a -= lt[d], j(e, a, c)));
2627
2620
  while (l < e.last_lit);
2628
- te(e, Zt, n);
2629
- }, Lt = (e, n) => {
2621
+ te(e, $t, n);
2622
+ }, Rt = (e, n) => {
2630
2623
  const t = n.dyn_tree, a = n.stat_desc.static_tree, s = n.stat_desc.has_stree, l = n.stat_desc.elems;
2631
- let c, d, x = -1, g;
2632
- for (e.heap_len = 0, e.heap_max = Bi, c = 0; c < l; c++)
2633
- t[c * 2] !== 0 ? (e.heap[++e.heap_len] = x = c, e.depth[c] = 0) : t[c * 2 + 1] = 0;
2624
+ let d, c, x = -1, g;
2625
+ for (e.heap_len = 0, e.heap_max = Bi, d = 0; d < l; d++)
2626
+ t[d * 2] !== 0 ? (e.heap[++e.heap_len] = x = d, e.depth[d] = 0) : t[d * 2 + 1] = 0;
2634
2627
  for (; e.heap_len < 2; )
2635
2628
  g = e.heap[++e.heap_len] = x < 2 ? ++x : 0, t[g * 2] = 1, e.depth[g] = 0, e.opt_len--, s && (e.static_len -= a[g * 2 + 1]);
2636
- for (n.max_code = x, c = e.heap_len >> 1; c >= 1; c--)
2637
- bt(e, t, c);
2629
+ for (n.max_code = x, d = e.heap_len >> 1; d >= 1; d--)
2630
+ Et(e, t, d);
2638
2631
  g = l;
2639
2632
  do
2640
- c = e.heap[
2633
+ d = e.heap[
2641
2634
  1
2642
2635
  /*SMALLEST*/
2643
2636
  ], e.heap[
2644
2637
  1
2645
2638
  /*SMALLEST*/
2646
- ] = e.heap[e.heap_len--], bt(
2639
+ ] = e.heap[e.heap_len--], Et(
2647
2640
  e,
2648
2641
  t,
2649
2642
  1
2650
2643
  /*SMALLEST*/
2651
- ), d = e.heap[
2644
+ ), c = e.heap[
2652
2645
  1
2653
2646
  /*SMALLEST*/
2654
- ], e.heap[--e.heap_max] = c, e.heap[--e.heap_max] = d, t[g * 2] = t[c * 2] + t[d * 2], e.depth[g] = (e.depth[c] >= e.depth[d] ? e.depth[c] : e.depth[d]) + 1, t[c * 2 + 1] = t[d * 2 + 1] = g, e.heap[
2647
+ ], e.heap[--e.heap_max] = d, e.heap[--e.heap_max] = c, t[g * 2] = t[d * 2] + t[c * 2], e.depth[g] = (e.depth[d] >= e.depth[c] ? e.depth[d] : e.depth[c]) + 1, t[d * 2 + 1] = t[c * 2 + 1] = g, e.heap[
2655
2648
  1
2656
2649
  /*SMALLEST*/
2657
- ] = g++, bt(
2650
+ ] = g++, Et(
2658
2651
  e,
2659
2652
  t,
2660
2653
  1
@@ -2665,53 +2658,53 @@ const Vi = (e) => e < 256 ? Be[e] : Be[256 + (e >>> 7)], Me = (e, n) => {
2665
2658
  1
2666
2659
  /*SMALLEST*/
2667
2660
  ], Wr(e, n), ji(t, x, e.bl_count);
2668
- }, Kt = (e, n, t) => {
2669
- let a, s = -1, l, c = n[0 * 2 + 1], d = 0, x = 7, g = 4;
2670
- for (c === 0 && (x = 138, g = 3), n[(t + 1) * 2 + 1] = 65535, a = 0; a <= t; a++)
2671
- l = c, c = n[(a + 1) * 2 + 1], !(++d < x && l === c) && (d < g ? e.bl_tree[l * 2] += d : l !== 0 ? (l !== s && e.bl_tree[l * 2]++, e.bl_tree[zi * 2]++) : d <= 10 ? e.bl_tree[Mi * 2]++ : e.bl_tree[Pi * 2]++, d = 0, s = l, c === 0 ? (x = 138, g = 3) : l === c ? (x = 6, g = 3) : (x = 7, g = 4));
2672
2661
  }, Wt = (e, n, t) => {
2673
- let a, s = -1, l, c = n[0 * 2 + 1], d = 0, x = 7, g = 4;
2674
- for (c === 0 && (x = 138, g = 3), a = 0; a <= t; a++)
2675
- if (l = c, c = n[(a + 1) * 2 + 1], !(++d < x && l === c)) {
2676
- if (d < g)
2662
+ let a, s = -1, l, d = n[1], c = 0, x = 7, g = 4;
2663
+ for (d === 0 && (x = 138, g = 3), n[(t + 1) * 2 + 1] = 65535, a = 0; a <= t; a++)
2664
+ l = d, d = n[(a + 1) * 2 + 1], !(++c < x && l === d) && (c < g ? e.bl_tree[l * 2] += c : l !== 0 ? (l !== s && e.bl_tree[l * 2]++, e.bl_tree[zi * 2]++) : c <= 10 ? e.bl_tree[Mi * 2]++ : e.bl_tree[Pi * 2]++, c = 0, s = l, d === 0 ? (x = 138, g = 3) : l === d ? (x = 6, g = 3) : (x = 7, g = 4));
2665
+ }, Jt = (e, n, t) => {
2666
+ let a, s = -1, l, d = n[1], c = 0, x = 7, g = 4;
2667
+ for (d === 0 && (x = 138, g = 3), a = 0; a <= t; a++)
2668
+ if (l = d, d = n[(a + 1) * 2 + 1], !(++c < x && l === d)) {
2669
+ if (c < g)
2677
2670
  do
2678
2671
  te(e, l, e.bl_tree);
2679
- while (--d !== 0);
2680
- else l !== 0 ? (l !== s && (te(e, l, e.bl_tree), d--), te(e, zi, e.bl_tree), j(e, d - 3, 2)) : d <= 10 ? (te(e, Mi, e.bl_tree), j(e, d - 3, 3)) : (te(e, Pi, e.bl_tree), j(e, d - 11, 7));
2681
- d = 0, s = l, c === 0 ? (x = 138, g = 3) : l === c ? (x = 6, g = 3) : (x = 7, g = 4);
2672
+ while (--c !== 0);
2673
+ else l !== 0 ? (l !== s && (te(e, l, e.bl_tree), c--), te(e, zi, e.bl_tree), j(e, c - 3, 2)) : c <= 10 ? (te(e, Mi, e.bl_tree), j(e, c - 3, 3)) : (te(e, Pi, e.bl_tree), j(e, c - 11, 7));
2674
+ c = 0, s = l, d === 0 ? (x = 138, g = 3) : l === d ? (x = 6, g = 3) : (x = 7, g = 4);
2682
2675
  }
2683
2676
  }, en = (e) => {
2684
2677
  let n;
2685
- for (Kt(e, e.dyn_ltree, e.l_desc.max_code), Kt(e, e.dyn_dtree, e.d_desc.max_code), Lt(e, e.bl_desc), n = Pt - 1; n >= 3 && e.bl_tree[Zi[n] * 2 + 1] === 0; n--)
2678
+ for (Wt(e, e.dyn_ltree, e.l_desc.max_code), Wt(e, e.dyn_dtree, e.d_desc.max_code), Rt(e, e.bl_desc), n = Zt - 1; n >= 3 && e.bl_tree[Zi[n] * 2 + 1] === 0; n--)
2686
2679
  ;
2687
2680
  return e.opt_len += 3 * (n + 1) + 5 + 5 + 4, n;
2688
2681
  }, tn = (e, n, t, a) => {
2689
2682
  let s;
2690
2683
  for (j(e, n - 257, 5), j(e, t - 1, 5), j(e, a - 4, 4), s = 0; s < a; s++)
2691
2684
  j(e, e.bl_tree[Zi[s] * 2 + 1], 3);
2692
- Wt(e, e.dyn_ltree, n - 1), Wt(e, e.dyn_dtree, t - 1);
2685
+ Jt(e, e.dyn_ltree, n - 1), Jt(e, e.dyn_dtree, t - 1);
2693
2686
  }, rn = (e) => {
2694
2687
  let n = 4093624447, t;
2695
2688
  for (t = 0; t <= 31; t++, n >>>= 1)
2696
2689
  if (n & 1 && e.dyn_ltree[t * 2] !== 0)
2697
- return Yt;
2698
- if (e.dyn_ltree[9 * 2] !== 0 || e.dyn_ltree[10 * 2] !== 0 || e.dyn_ltree[13 * 2] !== 0)
2699
- return jt;
2690
+ return jt;
2691
+ if (e.dyn_ltree[18] !== 0 || e.dyn_ltree[20] !== 0 || e.dyn_ltree[26] !== 0)
2692
+ return Gt;
2700
2693
  for (t = 32; t < Xe; t++)
2701
2694
  if (e.dyn_ltree[t * 2] !== 0)
2702
- return jt;
2703
- return Yt;
2695
+ return Gt;
2696
+ return jt;
2704
2697
  };
2705
- let Jt = !1;
2698
+ let Qt = !1;
2706
2699
  const nn = (e) => {
2707
- Jt || (Jr(), Jt = !0), e.l_desc = new yt(e.dyn_ltree, $i), e.d_desc = new yt(e.dyn_dtree, Hi), e.bl_desc = new yt(e.bl_tree, Xi), e.bi_buf = 0, e.bi_valid = 0, Gi(e);
2700
+ Qt || (Jr(), Qt = !0), e.l_desc = new bt(e.dyn_ltree, $i), e.d_desc = new bt(e.dyn_dtree, Hi), e.bl_desc = new bt(e.bl_tree, Xi), e.bi_buf = 0, e.bi_valid = 0, Gi(e);
2708
2701
  }, Ki = (e, n, t, a) => {
2709
2702
  j(e, (Hr << 1) + (a ? 1 : 0), 3), Qr(e, n, t);
2710
2703
  }, an = (e) => {
2711
- j(e, Di << 1, 3), te(e, Zt, se), Kr(e);
2704
+ j(e, Di << 1, 3), te(e, $t, se), Kr(e);
2712
2705
  }, sn = (e, n, t, a) => {
2713
- let s, l, c = 0;
2714
- e.level > 0 ? (e.strm.data_type === $r && (e.strm.data_type = rn(e)), Lt(e, e.l_desc), Lt(e, e.d_desc), c = en(e), s = e.opt_len + 3 + 7 >>> 3, l = e.static_len + 3 + 7 >>> 3, l <= s && (s = l)) : s = l = t + 5, t + 4 <= s && n !== -1 ? Ki(e, n, t, a) : e.strategy === Zr || l === s ? (j(e, (Di << 1) + (a ? 1 : 0), 3), qt(e, se, Re)) : (j(e, (Xr << 1) + (a ? 1 : 0), 3), tn(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, c + 1), qt(e, e.dyn_ltree, e.dyn_dtree)), Gi(e), a && qi(e);
2706
+ let s, l, d = 0;
2707
+ e.level > 0 ? (e.strm.data_type === $r && (e.strm.data_type = rn(e)), Rt(e, e.l_desc), Rt(e, e.d_desc), d = en(e), s = e.opt_len + 3 + 7 >>> 3, l = e.static_len + 3 + 7 >>> 3, l <= s && (s = l)) : s = l = t + 5, t + 4 <= s && n !== -1 ? Ki(e, n, t, a) : e.strategy === Zr || l === s ? (j(e, (Di << 1) + (a ? 1 : 0), 3), Kt(e, se, Re)) : (j(e, (Xr << 1) + (a ? 1 : 0), 3), tn(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, d + 1), Kt(e, e.dyn_ltree, e.dyn_dtree)), Gi(e), a && qi(e);
2715
2708
  }, on = (e, n, t) => (e.pending_buf[e.d_buf + e.last_lit * 2] = n >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = n & 255, e.pending_buf[e.l_buf + e.last_lit] = t & 255, e.last_lit++, n === 0 ? e.dyn_ltree[t * 2]++ : (e.matches++, n--, e.dyn_ltree[(ze[t] + Xe + 1) * 2]++, e.dyn_dtree[Vi(n) * 2]++), e.last_lit === e.lit_bufsize - 1);
2716
2709
  var ln = nn, hn = Ki, fn = sn, un = on, cn = an, dn = {
2717
2710
  _tr_init: ln,
@@ -2721,12 +2714,12 @@ var ln = nn, hn = Ki, fn = sn, un = on, cn = an, dn = {
2721
2714
  _tr_align: cn
2722
2715
  };
2723
2716
  const gn = (e, n, t, a) => {
2724
- let s = e & 65535 | 0, l = e >>> 16 & 65535 | 0, c = 0;
2717
+ let s = e & 65535 | 0, l = e >>> 16 & 65535 | 0, d = 0;
2725
2718
  for (; t !== 0; ) {
2726
- c = t > 2e3 ? 2e3 : t, t -= c;
2719
+ d = t > 2e3 ? 2e3 : t, t -= d;
2727
2720
  do
2728
2721
  s = s + n[a++] | 0, l = l + s | 0;
2729
- while (--c);
2722
+ while (--d);
2730
2723
  s %= 65521, l %= 65521;
2731
2724
  }
2732
2725
  return s | l << 16 | 0;
@@ -2744,8 +2737,8 @@ const pn = () => {
2744
2737
  }, _n = new Uint32Array(pn()), wn = (e, n, t, a) => {
2745
2738
  const s = _n, l = a + t;
2746
2739
  e ^= -1;
2747
- for (let c = a; c < l; c++)
2748
- e = e >>> 8 ^ s[(e ^ n[c]) & 255];
2740
+ for (let d = a; d < l; d++)
2741
+ e = e >>> 8 ^ s[(e ^ n[d]) & 255];
2749
2742
  return e ^ -1;
2750
2743
  };
2751
2744
  var $ = wn, be = {
@@ -2767,7 +2760,7 @@ var $ = wn, be = {
2767
2760
  /* Z_BUF_ERROR (-5) */
2768
2761
  "-6": "incompatible version"
2769
2762
  /* Z_VERSION_ERROR (-6) */
2770
- }, ft = {
2763
+ }, ut = {
2771
2764
  /* Allowed flush values; see deflate() and inflate() below for details */
2772
2765
  Z_NO_FLUSH: 0,
2773
2766
  Z_PARTIAL_FLUSH: 1,
@@ -2803,12 +2796,12 @@ const { _tr_init: yn, _tr_stored_block: bn, _tr_flush_block: En, _tr_tally: ge,
2803
2796
  Z_PARTIAL_FLUSH: xn,
2804
2797
  Z_FULL_FLUSH: Tn,
2805
2798
  Z_FINISH: pe,
2806
- Z_BLOCK: Qt,
2799
+ Z_BLOCK: ei,
2807
2800
  Z_OK: ie,
2808
- Z_STREAM_END: ei,
2801
+ Z_STREAM_END: ti,
2809
2802
  Z_STREAM_ERROR: K,
2810
2803
  Z_DATA_ERROR: In,
2811
- Z_BUF_ERROR: Et,
2804
+ Z_BUF_ERROR: vt,
2812
2805
  Z_DEFAULT_COMPRESSION: Fn,
2813
2806
  Z_FILTERED: mn,
2814
2807
  Z_HUFFMAN_ONLY: Ge,
@@ -2816,8 +2809,8 @@ const { _tr_init: yn, _tr_stored_block: bn, _tr_flush_block: En, _tr_tally: ge,
2816
2809
  Z_FIXED: An,
2817
2810
  Z_DEFAULT_STRATEGY: Sn,
2818
2811
  Z_UNKNOWN: Nn,
2819
- Z_DEFLATED: ut
2820
- } = ft, Un = 9, Ln = 15, Rn = 8, Cn = 29, On = 256, Rt = On + 1 + Cn, Dn = 30, Bn = 19, zn = 2 * Rt + 1, Mn = 15, L = 3, ce = 258, J = ce + L + 1, Pn = 32, ct = 42, Ct = 69, rt = 73, nt = 91, at = 103, ye = 113, Ue = 666, P = 1, Ve = 2, Ee = 3, Ae = 4, Zn = 3, de = (e, n) => (e.msg = be[n], n), ti = (e) => (e << 1) - (e > 4 ? 9 : 0), ue = (e) => {
2812
+ Z_DEFLATED: ct
2813
+ } = ut, Un = 9, Ln = 15, Rn = 8, Cn = 29, On = 256, Ct = On + 1 + Cn, Dn = 30, Bn = 19, zn = 2 * Ct + 1, Mn = 15, L = 3, ce = 258, J = ce + L + 1, Pn = 32, dt = 42, Ot = 69, nt = 73, at = 91, st = 103, ye = 113, Ue = 666, P = 1, Ve = 2, Ee = 3, Se = 4, Zn = 3, de = (e, n) => (e.msg = be[n], n), ii = (e) => (e << 1) - (e > 4 ? 9 : 0), ue = (e) => {
2821
2814
  let n = e.length;
2822
2815
  for (; --n >= 0; )
2823
2816
  e[n] = 0;
@@ -2831,33 +2824,33 @@ const he = (e) => {
2831
2824
  En(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, n), e.block_start = e.strstart, he(e.strm);
2832
2825
  }, C = (e, n) => {
2833
2826
  e.pending_buf[e.pending++] = n;
2834
- }, Se = (e, n) => {
2827
+ }, Ne = (e, n) => {
2835
2828
  e.pending_buf[e.pending++] = n >>> 8 & 255, e.pending_buf[e.pending++] = n & 255;
2836
2829
  }, Hn = (e, n, t, a) => {
2837
2830
  let s = e.avail_in;
2838
2831
  return s > a && (s = a), s === 0 ? 0 : (e.avail_in -= s, n.set(e.input.subarray(e.next_in, e.next_in + s), t), e.state.wrap === 1 ? e.adler = Pe(e.adler, n, s, t) : e.state.wrap === 2 && (e.adler = $(e.adler, n, s, t)), e.next_in += s, e.total_in += s, s);
2839
2832
  }, Wi = (e, n) => {
2840
- let t = e.max_chain_length, a = e.strstart, s, l, c = e.prev_length, d = e.nice_match;
2841
- const x = e.strstart > e.w_size - J ? e.strstart - (e.w_size - J) : 0, g = e.window, _ = e.w_mask, I = e.prev, i = e.strstart + ce;
2842
- let r = g[a + c - 1], o = g[a + c];
2843
- e.prev_length >= e.good_match && (t >>= 2), d > e.lookahead && (d = e.lookahead);
2833
+ let t = e.max_chain_length, a = e.strstart, s, l, d = e.prev_length, c = e.nice_match;
2834
+ const x = e.strstart > e.w_size - J ? e.strstart - (e.w_size - J) : 0, g = e.window, w = e.w_mask, T = e.prev, i = e.strstart + ce;
2835
+ let r = g[a + d - 1], o = g[a + d];
2836
+ e.prev_length >= e.good_match && (t >>= 2), c > e.lookahead && (c = e.lookahead);
2844
2837
  do
2845
- if (s = n, !(g[s + c] !== o || g[s + c - 1] !== r || g[s] !== g[a] || g[++s] !== g[a + 1])) {
2838
+ if (s = n, !(g[s + d] !== o || g[s + d - 1] !== r || g[s] !== g[a] || g[++s] !== g[a + 1])) {
2846
2839
  a += 2, s++;
2847
2840
  do
2848
2841
  ;
2849
2842
  while (g[++a] === g[++s] && g[++a] === g[++s] && g[++a] === g[++s] && g[++a] === g[++s] && g[++a] === g[++s] && g[++a] === g[++s] && g[++a] === g[++s] && g[++a] === g[++s] && a < i);
2850
- if (l = ce - (i - a), a = i - ce, l > c) {
2851
- if (e.match_start = n, c = l, l >= d)
2843
+ if (l = ce - (i - a), a = i - ce, l > d) {
2844
+ if (e.match_start = n, d = l, l >= c)
2852
2845
  break;
2853
- r = g[a + c - 1], o = g[a + c];
2846
+ r = g[a + d - 1], o = g[a + d];
2854
2847
  }
2855
2848
  }
2856
- while ((n = I[n & _]) > x && --t !== 0);
2857
- return c <= e.lookahead ? c : e.lookahead;
2849
+ while ((n = T[n & w]) > x && --t !== 0);
2850
+ return d <= e.lookahead ? d : e.lookahead;
2858
2851
  }, ve = (e) => {
2859
2852
  const n = e.w_size;
2860
- let t, a, s, l, c;
2853
+ let t, a, s, l, d;
2861
2854
  do {
2862
2855
  if (l = e.window_size - e.lookahead - e.strstart, e.strstart >= n + (n - J)) {
2863
2856
  e.window.set(e.window.subarray(n, n + n), 0), e.match_start -= n, e.strstart -= n, e.block_start -= n, a = e.hash_size, t = a;
@@ -2873,7 +2866,7 @@ const he = (e) => {
2873
2866
  if (e.strm.avail_in === 0)
2874
2867
  break;
2875
2868
  if (a = Hn(e.strm, e.window, e.strstart + e.lookahead, l), e.lookahead += a, e.lookahead + e.insert >= L)
2876
- for (c = e.strstart - e.insert, e.ins_h = e.window[c], e.ins_h = _e(e, e.ins_h, e.window[c + 1]); e.insert && (e.ins_h = _e(e, e.ins_h, e.window[c + L - 1]), e.prev[c & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = c, c++, e.insert--, !(e.lookahead + e.insert < L)); )
2869
+ for (d = e.strstart - e.insert, e.ins_h = e.window[d], e.ins_h = _e(e, e.ins_h, e.window[d + 1]); e.insert && (e.ins_h = _e(e, e.ins_h, e.window[d + L - 1]), e.prev[d & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = d, d++, e.insert--, !(e.lookahead + e.insert < L)); )
2877
2870
  ;
2878
2871
  } while (e.lookahead < J && e.strm.avail_in !== 0);
2879
2872
  }, Xn = (e, n) => {
@@ -2890,8 +2883,8 @@ const he = (e) => {
2890
2883
  if ((e.strstart === 0 || e.strstart >= a) && (e.lookahead = e.strstart - a, e.strstart = a, X(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - J && (X(e, !1), e.strm.avail_out === 0))
2891
2884
  return P;
2892
2885
  }
2893
- return e.insert = 0, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Ae) : (e.strstart > e.block_start && (X(e, !1), e.strm.avail_out === 0), P);
2894
- }, vt = (e, n) => {
2886
+ return e.insert = 0, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Se) : (e.strstart > e.block_start && (X(e, !1), e.strm.avail_out === 0), P);
2887
+ }, xt = (e, n) => {
2895
2888
  let t, a;
2896
2889
  for (; ; ) {
2897
2890
  if (e.lookahead < J) {
@@ -2914,7 +2907,7 @@ const he = (e) => {
2914
2907
  if (a && (X(e, !1), e.strm.avail_out === 0))
2915
2908
  return P;
2916
2909
  }
2917
- return e.insert = e.strstart < L - 1 ? e.strstart : L - 1, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Ae) : e.last_lit && (X(e, !1), e.strm.avail_out === 0) ? P : Ve;
2910
+ return e.insert = e.strstart < L - 1 ? e.strstart : L - 1, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Se) : e.last_lit && (X(e, !1), e.strm.avail_out === 0) ? P : Ve;
2918
2911
  }, Ie = (e, n) => {
2919
2912
  let t, a, s;
2920
2913
  for (; ; ) {
@@ -2937,10 +2930,10 @@ const he = (e) => {
2937
2930
  } else
2938
2931
  e.match_available = 1, e.strstart++, e.lookahead--;
2939
2932
  }
2940
- return e.match_available && (a = ge(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < L - 1 ? e.strstart : L - 1, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Ae) : e.last_lit && (X(e, !1), e.strm.avail_out === 0) ? P : Ve;
2933
+ return e.match_available && (a = ge(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < L - 1 ? e.strstart : L - 1, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Se) : e.last_lit && (X(e, !1), e.strm.avail_out === 0) ? P : Ve;
2941
2934
  }, Vn = (e, n) => {
2942
2935
  let t, a, s, l;
2943
- const c = e.window;
2936
+ const d = e.window;
2944
2937
  for (; ; ) {
2945
2938
  if (e.lookahead <= ce) {
2946
2939
  if (ve(e), e.lookahead <= ce && n === Te)
@@ -2948,17 +2941,17 @@ const he = (e) => {
2948
2941
  if (e.lookahead === 0)
2949
2942
  break;
2950
2943
  }
2951
- if (e.match_length = 0, e.lookahead >= L && e.strstart > 0 && (s = e.strstart - 1, a = c[s], a === c[++s] && a === c[++s] && a === c[++s])) {
2944
+ if (e.match_length = 0, e.lookahead >= L && e.strstart > 0 && (s = e.strstart - 1, a = d[s], a === d[++s] && a === d[++s] && a === d[++s])) {
2952
2945
  l = e.strstart + ce;
2953
2946
  do
2954
2947
  ;
2955
- while (a === c[++s] && a === c[++s] && a === c[++s] && a === c[++s] && a === c[++s] && a === c[++s] && a === c[++s] && a === c[++s] && s < l);
2948
+ while (a === d[++s] && a === d[++s] && a === d[++s] && a === d[++s] && a === d[++s] && a === d[++s] && a === d[++s] && a === d[++s] && s < l);
2956
2949
  e.match_length = ce - (l - s), e.match_length > e.lookahead && (e.match_length = e.lookahead);
2957
2950
  }
2958
2951
  if (e.match_length >= L ? (t = ge(e, 1, e.match_length - L), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (t = ge(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), t && (X(e, !1), e.strm.avail_out === 0))
2959
2952
  return P;
2960
2953
  }
2961
- return e.insert = 0, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Ae) : e.last_lit && (X(e, !1), e.strm.avail_out === 0) ? P : Ve;
2954
+ return e.insert = 0, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Se) : e.last_lit && (X(e, !1), e.strm.avail_out === 0) ? P : Ve;
2962
2955
  }, Yn = (e, n) => {
2963
2956
  let t;
2964
2957
  for (; ; ) {
@@ -2970,7 +2963,7 @@ const he = (e) => {
2970
2963
  if (e.match_length = 0, t = ge(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, t && (X(e, !1), e.strm.avail_out === 0))
2971
2964
  return P;
2972
2965
  }
2973
- return e.insert = 0, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Ae) : e.last_lit && (X(e, !1), e.strm.avail_out === 0) ? P : Ve;
2966
+ return e.insert = 0, n === pe ? (X(e, !0), e.strm.avail_out === 0 ? Ee : Se) : e.last_lit && (X(e, !1), e.strm.avail_out === 0) ? P : Ve;
2974
2967
  };
2975
2968
  function ee(e, n, t, a, s) {
2976
2969
  this.good_length = e, this.max_lazy = n, this.nice_length = t, this.max_chain = a, this.func = s;
@@ -2979,11 +2972,11 @@ const Le = [
2979
2972
  /* good lazy nice chain */
2980
2973
  new ee(0, 0, 0, 0, Xn),
2981
2974
  /* 0 store only */
2982
- new ee(4, 4, 8, 4, vt),
2975
+ new ee(4, 4, 8, 4, xt),
2983
2976
  /* 1 max speed, no lazy matches */
2984
- new ee(4, 5, 16, 8, vt),
2977
+ new ee(4, 5, 16, 8, xt),
2985
2978
  /* 2 */
2986
- new ee(4, 6, 32, 32, vt),
2979
+ new ee(4, 6, 32, 32, xt),
2987
2980
  /* 3 */
2988
2981
  new ee(4, 4, 16, 16, Ie),
2989
2982
  /* 4 lazy matches */
@@ -3001,53 +2994,53 @@ const Le = [
3001
2994
  e.window_size = 2 * e.w_size, ue(e.head), e.max_lazy_match = Le[e.level].max_lazy, e.good_match = Le[e.level].good_length, e.nice_match = Le[e.level].nice_length, e.max_chain_length = Le[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = L - 1, e.match_available = 0, e.ins_h = 0;
3002
2995
  };
3003
2996
  function Gn() {
3004
- this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ut, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(zn * 2), this.dyn_dtree = new Uint16Array((2 * Dn + 1) * 2), this.bl_tree = new Uint16Array((2 * Bn + 1) * 2), ue(this.dyn_ltree), ue(this.dyn_dtree), ue(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(Mn + 1), this.heap = new Uint16Array(2 * Rt + 1), ue(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * Rt + 1), ue(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
2997
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ct, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(zn * 2), this.dyn_dtree = new Uint16Array((2 * Dn + 1) * 2), this.bl_tree = new Uint16Array((2 * Bn + 1) * 2), ue(this.dyn_ltree), ue(this.dyn_dtree), ue(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(Mn + 1), this.heap = new Uint16Array(2 * Ct + 1), ue(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * Ct + 1), ue(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
3005
2998
  }
3006
2999
  const Ji = (e) => {
3007
3000
  if (!e || !e.state)
3008
3001
  return de(e, K);
3009
3002
  e.total_in = e.total_out = 0, e.data_type = Nn;
3010
3003
  const n = e.state;
3011
- return n.pending = 0, n.pending_out = 0, n.wrap < 0 && (n.wrap = -n.wrap), n.status = n.wrap ? ct : ye, e.adler = n.wrap === 2 ? 0 : 1, n.last_flush = Te, yn(n), ie;
3004
+ return n.pending = 0, n.pending_out = 0, n.wrap < 0 && (n.wrap = -n.wrap), n.status = n.wrap ? dt : ye, e.adler = n.wrap === 2 ? 0 : 1, n.last_flush = Te, yn(n), ie;
3012
3005
  }, Qi = (e) => {
3013
3006
  const n = Ji(e);
3014
3007
  return n === ie && jn(e.state), n;
3015
3008
  }, qn = (e, n) => !e || !e.state || e.state.wrap !== 2 ? K : (e.state.gzhead = n, ie), er = (e, n, t, a, s, l) => {
3016
3009
  if (!e)
3017
3010
  return K;
3018
- let c = 1;
3019
- if (n === Fn && (n = 6), a < 0 ? (c = 0, a = -a) : a > 15 && (c = 2, a -= 16), s < 1 || s > Un || t !== ut || a < 8 || a > 15 || n < 0 || n > 9 || l < 0 || l > An)
3011
+ let d = 1;
3012
+ if (n === Fn && (n = 6), a < 0 ? (d = 0, a = -a) : a > 15 && (d = 2, a -= 16), s < 1 || s > Un || t !== ct || a < 8 || a > 15 || n < 0 || n > 9 || l < 0 || l > An)
3020
3013
  return de(e, K);
3021
3014
  a === 8 && (a = 9);
3022
- const d = new Gn();
3023
- return e.state = d, d.strm = e, d.wrap = c, d.gzhead = null, d.w_bits = a, d.w_size = 1 << d.w_bits, d.w_mask = d.w_size - 1, d.hash_bits = s + 7, d.hash_size = 1 << d.hash_bits, d.hash_mask = d.hash_size - 1, d.hash_shift = ~~((d.hash_bits + L - 1) / L), d.window = new Uint8Array(d.w_size * 2), d.head = new Uint16Array(d.hash_size), d.prev = new Uint16Array(d.w_size), d.lit_bufsize = 1 << s + 6, d.pending_buf_size = d.lit_bufsize * 4, d.pending_buf = new Uint8Array(d.pending_buf_size), d.d_buf = 1 * d.lit_bufsize, d.l_buf = 3 * d.lit_bufsize, d.level = n, d.strategy = l, d.method = t, Qi(e);
3024
- }, Kn = (e, n) => er(e, n, ut, Ln, Rn, Sn), Wn = (e, n) => {
3015
+ const c = new Gn();
3016
+ return e.state = c, c.strm = e, c.wrap = d, c.gzhead = null, c.w_bits = a, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.hash_bits = s + 7, c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + L - 1) / L), c.window = new Uint8Array(c.w_size * 2), c.head = new Uint16Array(c.hash_size), c.prev = new Uint16Array(c.w_size), c.lit_bufsize = 1 << s + 6, c.pending_buf_size = c.lit_bufsize * 4, c.pending_buf = new Uint8Array(c.pending_buf_size), c.d_buf = 1 * c.lit_bufsize, c.l_buf = 3 * c.lit_bufsize, c.level = n, c.strategy = l, c.method = t, Qi(e);
3017
+ }, Kn = (e, n) => er(e, n, ct, Ln, Rn, Sn), Wn = (e, n) => {
3025
3018
  let t, a;
3026
- if (!e || !e.state || n > Qt || n < 0)
3019
+ if (!e || !e.state || n > ei || n < 0)
3027
3020
  return e ? de(e, K) : K;
3028
3021
  const s = e.state;
3029
3022
  if (!e.output || !e.input && e.avail_in !== 0 || s.status === Ue && n !== pe)
3030
- return de(e, e.avail_out === 0 ? Et : K);
3023
+ return de(e, e.avail_out === 0 ? vt : K);
3031
3024
  s.strm = e;
3032
3025
  const l = s.last_flush;
3033
- if (s.last_flush = n, s.status === ct)
3026
+ if (s.last_flush = n, s.status === dt)
3034
3027
  if (s.wrap === 2)
3035
3028
  e.adler = 0, C(s, 31), C(s, 139), C(s, 8), s.gzhead ? (C(
3036
3029
  s,
3037
3030
  (s.gzhead.text ? 1 : 0) + (s.gzhead.hcrc ? 2 : 0) + (s.gzhead.extra ? 4 : 0) + (s.gzhead.name ? 8 : 0) + (s.gzhead.comment ? 16 : 0)
3038
- ), C(s, s.gzhead.time & 255), C(s, s.gzhead.time >> 8 & 255), C(s, s.gzhead.time >> 16 & 255), C(s, s.gzhead.time >> 24 & 255), C(s, s.level === 9 ? 2 : s.strategy >= Ge || s.level < 2 ? 4 : 0), C(s, s.gzhead.os & 255), s.gzhead.extra && s.gzhead.extra.length && (C(s, s.gzhead.extra.length & 255), C(s, s.gzhead.extra.length >> 8 & 255)), s.gzhead.hcrc && (e.adler = $(e.adler, s.pending_buf, s.pending, 0)), s.gzindex = 0, s.status = Ct) : (C(s, 0), C(s, 0), C(s, 0), C(s, 0), C(s, 0), C(s, s.level === 9 ? 2 : s.strategy >= Ge || s.level < 2 ? 4 : 0), C(s, Zn), s.status = ye);
3031
+ ), C(s, s.gzhead.time & 255), C(s, s.gzhead.time >> 8 & 255), C(s, s.gzhead.time >> 16 & 255), C(s, s.gzhead.time >> 24 & 255), C(s, s.level === 9 ? 2 : s.strategy >= Ge || s.level < 2 ? 4 : 0), C(s, s.gzhead.os & 255), s.gzhead.extra && s.gzhead.extra.length && (C(s, s.gzhead.extra.length & 255), C(s, s.gzhead.extra.length >> 8 & 255)), s.gzhead.hcrc && (e.adler = $(e.adler, s.pending_buf, s.pending, 0)), s.gzindex = 0, s.status = Ot) : (C(s, 0), C(s, 0), C(s, 0), C(s, 0), C(s, 0), C(s, s.level === 9 ? 2 : s.strategy >= Ge || s.level < 2 ? 4 : 0), C(s, Zn), s.status = ye);
3039
3032
  else {
3040
- let c = ut + (s.w_bits - 8 << 4) << 8, d = -1;
3041
- s.strategy >= Ge || s.level < 2 ? d = 0 : s.level < 6 ? d = 1 : s.level === 6 ? d = 2 : d = 3, c |= d << 6, s.strstart !== 0 && (c |= Pn), c += 31 - c % 31, s.status = ye, Se(s, c), s.strstart !== 0 && (Se(s, e.adler >>> 16), Se(s, e.adler & 65535)), e.adler = 1;
3033
+ let d = ct + (s.w_bits - 8 << 4) << 8, c = -1;
3034
+ s.strategy >= Ge || s.level < 2 ? c = 0 : s.level < 6 ? c = 1 : s.level === 6 ? c = 2 : c = 3, d |= c << 6, s.strstart !== 0 && (d |= Pn), d += 31 - d % 31, s.status = ye, Ne(s, d), s.strstart !== 0 && (Ne(s, e.adler >>> 16), Ne(s, e.adler & 65535)), e.adler = 1;
3042
3035
  }
3043
- if (s.status === Ct)
3036
+ if (s.status === Ot)
3044
3037
  if (s.gzhead.extra) {
3045
3038
  for (t = s.pending; s.gzindex < (s.gzhead.extra.length & 65535) && !(s.pending === s.pending_buf_size && (s.gzhead.hcrc && s.pending > t && (e.adler = $(e.adler, s.pending_buf, s.pending - t, t)), he(e), t = s.pending, s.pending === s.pending_buf_size)); )
3046
3039
  C(s, s.gzhead.extra[s.gzindex] & 255), s.gzindex++;
3047
- s.gzhead.hcrc && s.pending > t && (e.adler = $(e.adler, s.pending_buf, s.pending - t, t)), s.gzindex === s.gzhead.extra.length && (s.gzindex = 0, s.status = rt);
3040
+ s.gzhead.hcrc && s.pending > t && (e.adler = $(e.adler, s.pending_buf, s.pending - t, t)), s.gzindex === s.gzhead.extra.length && (s.gzindex = 0, s.status = nt);
3048
3041
  } else
3049
- s.status = rt;
3050
- if (s.status === rt)
3042
+ s.status = nt;
3043
+ if (s.status === nt)
3051
3044
  if (s.gzhead.name) {
3052
3045
  t = s.pending;
3053
3046
  do {
@@ -3057,10 +3050,10 @@ const Ji = (e) => {
3057
3050
  }
3058
3051
  s.gzindex < s.gzhead.name.length ? a = s.gzhead.name.charCodeAt(s.gzindex++) & 255 : a = 0, C(s, a);
3059
3052
  } while (a !== 0);
3060
- s.gzhead.hcrc && s.pending > t && (e.adler = $(e.adler, s.pending_buf, s.pending - t, t)), a === 0 && (s.gzindex = 0, s.status = nt);
3053
+ s.gzhead.hcrc && s.pending > t && (e.adler = $(e.adler, s.pending_buf, s.pending - t, t)), a === 0 && (s.gzindex = 0, s.status = at);
3061
3054
  } else
3062
- s.status = nt;
3063
- if (s.status === nt)
3055
+ s.status = at;
3056
+ if (s.status === at)
3064
3057
  if (s.gzhead.comment) {
3065
3058
  t = s.pending;
3066
3059
  do {
@@ -3070,42 +3063,42 @@ const Ji = (e) => {
3070
3063
  }
3071
3064
  s.gzindex < s.gzhead.comment.length ? a = s.gzhead.comment.charCodeAt(s.gzindex++) & 255 : a = 0, C(s, a);
3072
3065
  } while (a !== 0);
3073
- s.gzhead.hcrc && s.pending > t && (e.adler = $(e.adler, s.pending_buf, s.pending - t, t)), a === 0 && (s.status = at);
3066
+ s.gzhead.hcrc && s.pending > t && (e.adler = $(e.adler, s.pending_buf, s.pending - t, t)), a === 0 && (s.status = st);
3074
3067
  } else
3075
- s.status = at;
3076
- if (s.status === at && (s.gzhead.hcrc ? (s.pending + 2 > s.pending_buf_size && he(e), s.pending + 2 <= s.pending_buf_size && (C(s, e.adler & 255), C(s, e.adler >> 8 & 255), e.adler = 0, s.status = ye)) : s.status = ye), s.pending !== 0) {
3068
+ s.status = st;
3069
+ if (s.status === st && (s.gzhead.hcrc ? (s.pending + 2 > s.pending_buf_size && he(e), s.pending + 2 <= s.pending_buf_size && (C(s, e.adler & 255), C(s, e.adler >> 8 & 255), e.adler = 0, s.status = ye)) : s.status = ye), s.pending !== 0) {
3077
3070
  if (he(e), e.avail_out === 0)
3078
3071
  return s.last_flush = -1, ie;
3079
- } else if (e.avail_in === 0 && ti(n) <= ti(l) && n !== pe)
3080
- return de(e, Et);
3072
+ } else if (e.avail_in === 0 && ii(n) <= ii(l) && n !== pe)
3073
+ return de(e, vt);
3081
3074
  if (s.status === Ue && e.avail_in !== 0)
3082
- return de(e, Et);
3075
+ return de(e, vt);
3083
3076
  if (e.avail_in !== 0 || s.lookahead !== 0 || n !== Te && s.status !== Ue) {
3084
- let c = s.strategy === Ge ? Yn(s, n) : s.strategy === kn ? Vn(s, n) : Le[s.level].func(s, n);
3085
- if ((c === Ee || c === Ae) && (s.status = Ue), c === P || c === Ee)
3077
+ let d = s.strategy === Ge ? Yn(s, n) : s.strategy === kn ? Vn(s, n) : Le[s.level].func(s, n);
3078
+ if ((d === Ee || d === Se) && (s.status = Ue), d === P || d === Ee)
3086
3079
  return e.avail_out === 0 && (s.last_flush = -1), ie;
3087
- if (c === Ve && (n === xn ? vn(s) : n !== Qt && (bn(s, 0, 0, !1), n === Tn && (ue(s.head), s.lookahead === 0 && (s.strstart = 0, s.block_start = 0, s.insert = 0))), he(e), e.avail_out === 0))
3080
+ if (d === Ve && (n === xn ? vn(s) : n !== ei && (bn(s, 0, 0, !1), n === Tn && (ue(s.head), s.lookahead === 0 && (s.strstart = 0, s.block_start = 0, s.insert = 0))), he(e), e.avail_out === 0))
3088
3081
  return s.last_flush = -1, ie;
3089
3082
  }
3090
- return n !== pe ? ie : s.wrap <= 0 ? ei : (s.wrap === 2 ? (C(s, e.adler & 255), C(s, e.adler >> 8 & 255), C(s, e.adler >> 16 & 255), C(s, e.adler >> 24 & 255), C(s, e.total_in & 255), C(s, e.total_in >> 8 & 255), C(s, e.total_in >> 16 & 255), C(s, e.total_in >> 24 & 255)) : (Se(s, e.adler >>> 16), Se(s, e.adler & 65535)), he(e), s.wrap > 0 && (s.wrap = -s.wrap), s.pending !== 0 ? ie : ei);
3083
+ return n !== pe ? ie : s.wrap <= 0 ? ti : (s.wrap === 2 ? (C(s, e.adler & 255), C(s, e.adler >> 8 & 255), C(s, e.adler >> 16 & 255), C(s, e.adler >> 24 & 255), C(s, e.total_in & 255), C(s, e.total_in >> 8 & 255), C(s, e.total_in >> 16 & 255), C(s, e.total_in >> 24 & 255)) : (Ne(s, e.adler >>> 16), Ne(s, e.adler & 65535)), he(e), s.wrap > 0 && (s.wrap = -s.wrap), s.pending !== 0 ? ie : ti);
3091
3084
  }, Jn = (e) => {
3092
3085
  if (!e || !e.state)
3093
3086
  return K;
3094
3087
  const n = e.state.status;
3095
- return n !== ct && n !== Ct && n !== rt && n !== nt && n !== at && n !== ye && n !== Ue ? de(e, K) : (e.state = null, n === ye ? de(e, In) : ie);
3088
+ return n !== dt && n !== Ot && n !== nt && n !== at && n !== st && n !== ye && n !== Ue ? de(e, K) : (e.state = null, n === ye ? de(e, In) : ie);
3096
3089
  }, Qn = (e, n) => {
3097
3090
  let t = n.length;
3098
3091
  if (!e || !e.state)
3099
3092
  return K;
3100
3093
  const a = e.state, s = a.wrap;
3101
- if (s === 2 || s === 1 && a.status !== ct || a.lookahead)
3094
+ if (s === 2 || s === 1 && a.status !== dt || a.lookahead)
3102
3095
  return K;
3103
3096
  if (s === 1 && (e.adler = Pe(e.adler, n, t, 0)), a.wrap = 0, t >= a.w_size) {
3104
3097
  s === 0 && (ue(a.head), a.strstart = 0, a.block_start = 0, a.insert = 0);
3105
3098
  let x = new Uint8Array(a.w_size);
3106
3099
  x.set(n.subarray(t - a.w_size, t), 0), n = x, t = a.w_size;
3107
3100
  }
3108
- const l = e.avail_in, c = e.next_in, d = e.input;
3101
+ const l = e.avail_in, d = e.next_in, c = e.input;
3109
3102
  for (e.avail_in = t, e.next_in = 0, e.input = n, ve(a); a.lookahead >= L; ) {
3110
3103
  let x = a.strstart, g = a.lookahead - (L - 1);
3111
3104
  do
@@ -3113,7 +3106,7 @@ const Ji = (e) => {
3113
3106
  while (--g);
3114
3107
  a.strstart = x, a.lookahead = L - 1, ve(a);
3115
3108
  }
3116
- return a.strstart += a.lookahead, a.block_start = a.strstart, a.insert = a.lookahead, a.lookahead = 0, a.match_length = a.prev_length = L - 1, a.match_available = 0, e.next_in = c, e.input = d, e.avail_in = l, a.wrap = s, ie;
3109
+ return a.strstart += a.lookahead, a.block_start = a.strstart, a.insert = a.lookahead, a.lookahead = 0, a.match_length = a.prev_length = L - 1, a.match_available = 0, e.next_in = d, e.input = c, e.avail_in = l, a.wrap = s, ie;
3117
3110
  };
3118
3111
  var ea = Kn, ta = er, ia = Qi, ra = Ji, na = qn, aa = Wn, sa = Jn, oa = Qn, la = "pako deflate (from Nodeca project)", Ce = {
3119
3112
  deflateInit: ea,
@@ -3145,11 +3138,11 @@ var fa = function(e) {
3145
3138
  n += e[a].length;
3146
3139
  const t = new Uint8Array(n);
3147
3140
  for (let a = 0, s = 0, l = e.length; a < l; a++) {
3148
- let c = e[a];
3149
- t.set(c, s), s += c.length;
3141
+ let d = e[a];
3142
+ t.set(d, s), s += d.length;
3150
3143
  }
3151
3144
  return t;
3152
- }, dt = {
3145
+ }, gt = {
3153
3146
  assign: fa,
3154
3147
  flattenChunks: ua
3155
3148
  };
@@ -3166,11 +3159,11 @@ Ze[254] = Ze[254] = 1;
3166
3159
  var ca = (e) => {
3167
3160
  if (typeof TextEncoder == "function" && TextEncoder.prototype.encode)
3168
3161
  return new TextEncoder().encode(e);
3169
- let n, t, a, s, l, c = e.length, d = 0;
3170
- for (s = 0; s < c; s++)
3171
- t = e.charCodeAt(s), (t & 64512) === 55296 && s + 1 < c && (a = e.charCodeAt(s + 1), (a & 64512) === 56320 && (t = 65536 + (t - 55296 << 10) + (a - 56320), s++)), d += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : 4;
3172
- for (n = new Uint8Array(d), l = 0, s = 0; l < d; s++)
3173
- t = e.charCodeAt(s), (t & 64512) === 55296 && s + 1 < c && (a = e.charCodeAt(s + 1), (a & 64512) === 56320 && (t = 65536 + (t - 55296 << 10) + (a - 56320), s++)), t < 128 ? n[l++] = t : t < 2048 ? (n[l++] = 192 | t >>> 6, n[l++] = 128 | t & 63) : t < 65536 ? (n[l++] = 224 | t >>> 12, n[l++] = 128 | t >>> 6 & 63, n[l++] = 128 | t & 63) : (n[l++] = 240 | t >>> 18, n[l++] = 128 | t >>> 12 & 63, n[l++] = 128 | t >>> 6 & 63, n[l++] = 128 | t & 63);
3162
+ let n, t, a, s, l, d = e.length, c = 0;
3163
+ for (s = 0; s < d; s++)
3164
+ t = e.charCodeAt(s), (t & 64512) === 55296 && s + 1 < d && (a = e.charCodeAt(s + 1), (a & 64512) === 56320 && (t = 65536 + (t - 55296 << 10) + (a - 56320), s++)), c += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : 4;
3165
+ for (n = new Uint8Array(c), l = 0, s = 0; l < c; s++)
3166
+ t = e.charCodeAt(s), (t & 64512) === 55296 && s + 1 < d && (a = e.charCodeAt(s + 1), (a & 64512) === 56320 && (t = 65536 + (t - 55296 << 10) + (a - 56320), s++)), t < 128 ? n[l++] = t : t < 2048 ? (n[l++] = 192 | t >>> 6, n[l++] = 128 | t & 63) : t < 65536 ? (n[l++] = 224 | t >>> 12, n[l++] = 128 | t >>> 6 & 63, n[l++] = 128 | t & 63) : (n[l++] = 240 | t >>> 18, n[l++] = 128 | t >>> 12 & 63, n[l++] = 128 | t >>> 6 & 63, n[l++] = 128 | t & 63);
3174
3167
  return n;
3175
3168
  };
3176
3169
  const da = (e, n) => {
@@ -3188,23 +3181,23 @@ var ga = (e, n) => {
3188
3181
  let a, s;
3189
3182
  const l = new Array(t * 2);
3190
3183
  for (s = 0, a = 0; a < t; ) {
3191
- let c = e[a++];
3192
- if (c < 128) {
3193
- l[s++] = c;
3184
+ let d = e[a++];
3185
+ if (d < 128) {
3186
+ l[s++] = d;
3194
3187
  continue;
3195
3188
  }
3196
- let d = Ze[c];
3197
- if (d > 4) {
3198
- l[s++] = 65533, a += d - 1;
3189
+ let c = Ze[d];
3190
+ if (c > 4) {
3191
+ l[s++] = 65533, a += c - 1;
3199
3192
  continue;
3200
3193
  }
3201
- for (c &= d === 2 ? 31 : d === 3 ? 15 : 7; d > 1 && a < t; )
3202
- c = c << 6 | e[a++] & 63, d--;
3203
- if (d > 1) {
3194
+ for (d &= c === 2 ? 31 : c === 3 ? 15 : 7; c > 1 && a < t; )
3195
+ d = d << 6 | e[a++] & 63, c--;
3196
+ if (c > 1) {
3204
3197
  l[s++] = 65533;
3205
3198
  continue;
3206
3199
  }
3207
- c < 65536 ? l[s++] = c : (c -= 65536, l[s++] = 55296 | c >> 10 & 1023, l[s++] = 56320 | c & 1023);
3200
+ d < 65536 ? l[s++] = d : (d -= 65536, l[s++] = 55296 | d >> 10 & 1023, l[s++] = 56320 | d & 1023);
3208
3201
  }
3209
3202
  return da(l, s);
3210
3203
  }, pa = (e, n) => {
@@ -3227,14 +3220,14 @@ const rr = Object.prototype.toString, {
3227
3220
  Z_SYNC_FLUSH: ya,
3228
3221
  Z_FULL_FLUSH: ba,
3229
3222
  Z_FINISH: Ea,
3230
- Z_OK: lt,
3223
+ Z_OK: ht,
3231
3224
  Z_STREAM_END: va,
3232
3225
  Z_DEFAULT_COMPRESSION: xa,
3233
3226
  Z_DEFAULT_STRATEGY: Ta,
3234
3227
  Z_DEFLATED: Ia
3235
- } = ft;
3236
- function gt(e) {
3237
- this.options = dt.assign({
3228
+ } = ut;
3229
+ function pt(e) {
3230
+ this.options = gt.assign({
3238
3231
  level: xa,
3239
3232
  method: Ia,
3240
3233
  chunkSize: 16384,
@@ -3252,16 +3245,16 @@ function gt(e) {
3252
3245
  n.memLevel,
3253
3246
  n.strategy
3254
3247
  );
3255
- if (t !== lt)
3248
+ if (t !== ht)
3256
3249
  throw new Error(be[t]);
3257
3250
  if (n.header && Ce.deflateSetHeader(this.strm, n.header), n.dictionary) {
3258
3251
  let a;
3259
- if (typeof n.dictionary == "string" ? a = $e.string2buf(n.dictionary) : rr.call(n.dictionary) === "[object ArrayBuffer]" ? a = new Uint8Array(n.dictionary) : a = n.dictionary, t = Ce.deflateSetDictionary(this.strm, a), t !== lt)
3252
+ if (typeof n.dictionary == "string" ? a = $e.string2buf(n.dictionary) : rr.call(n.dictionary) === "[object ArrayBuffer]" ? a = new Uint8Array(n.dictionary) : a = n.dictionary, t = Ce.deflateSetDictionary(this.strm, a), t !== ht)
3260
3253
  throw new Error(be[t]);
3261
3254
  this._dict_set = !0;
3262
3255
  }
3263
3256
  }
3264
- gt.prototype.push = function(e, n) {
3257
+ pt.prototype.push = function(e, n) {
3265
3258
  const t = this.strm, a = this.options.chunkSize;
3266
3259
  let s, l;
3267
3260
  if (this.ended)
@@ -3272,7 +3265,7 @@ gt.prototype.push = function(e, n) {
3272
3265
  continue;
3273
3266
  }
3274
3267
  if (s = Ce.deflate(t, l), s === va)
3275
- return t.next_out > 0 && this.onData(t.output.subarray(0, t.next_out)), s = Ce.deflateEnd(this.strm), this.onEnd(s), this.ended = !0, s === lt;
3268
+ return t.next_out > 0 && this.onData(t.output.subarray(0, t.next_out)), s = Ce.deflateEnd(this.strm), this.onEnd(s), this.ended = !0, s === ht;
3276
3269
  if (t.avail_out === 0) {
3277
3270
  this.onData(t.output);
3278
3271
  continue;
@@ -3285,14 +3278,14 @@ gt.prototype.push = function(e, n) {
3285
3278
  }
3286
3279
  return !0;
3287
3280
  };
3288
- gt.prototype.onData = function(e) {
3281
+ pt.prototype.onData = function(e) {
3289
3282
  this.chunks.push(e);
3290
3283
  };
3291
- gt.prototype.onEnd = function(e) {
3292
- e === lt && (this.result = dt.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
3284
+ pt.prototype.onEnd = function(e) {
3285
+ e === ht && (this.result = gt.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
3293
3286
  };
3294
3287
  function Fa(e, n) {
3295
- const t = new gt(n);
3288
+ const t = new pt(n);
3296
3289
  if (t.push(e, !0), t.err)
3297
3290
  throw t.msg || be[t.err];
3298
3291
  return t.result;
@@ -3302,71 +3295,71 @@ var ma = Fa, ka = {
3302
3295
  };
3303
3296
  const qe = 30, Aa = 12;
3304
3297
  var Sa = function(n, t) {
3305
- let a, s, l, c, d, x, g, _, I, i, r, o, h, f, p, w, b, E, m, A, F, k, v, y;
3298
+ let a, s, l, d, c, x, g, w, T, i, r, o, h, f, p, _, E, y, m, A, F, k, v, b;
3306
3299
  const u = n.state;
3307
- a = n.next_in, v = n.input, s = a + (n.avail_in - 5), l = n.next_out, y = n.output, c = l - (t - n.avail_out), d = l + (n.avail_out - 257), x = u.dmax, g = u.wsize, _ = u.whave, I = u.wnext, i = u.window, r = u.hold, o = u.bits, h = u.lencode, f = u.distcode, p = (1 << u.lenbits) - 1, w = (1 << u.distbits) - 1;
3300
+ a = n.next_in, v = n.input, s = a + (n.avail_in - 5), l = n.next_out, b = n.output, d = l - (t - n.avail_out), c = l + (n.avail_out - 257), x = u.dmax, g = u.wsize, w = u.whave, T = u.wnext, i = u.window, r = u.hold, o = u.bits, h = u.lencode, f = u.distcode, p = (1 << u.lenbits) - 1, _ = (1 << u.distbits) - 1;
3308
3301
  e:
3309
3302
  do {
3310
- o < 15 && (r += v[a++] << o, o += 8, r += v[a++] << o, o += 8), b = h[r & p];
3303
+ o < 15 && (r += v[a++] << o, o += 8, r += v[a++] << o, o += 8), E = h[r & p];
3311
3304
  t:
3312
3305
  for (; ; ) {
3313
- if (E = b >>> 24, r >>>= E, o -= E, E = b >>> 16 & 255, E === 0)
3314
- y[l++] = b & 65535;
3315
- else if (E & 16) {
3316
- m = b & 65535, E &= 15, E && (o < E && (r += v[a++] << o, o += 8), m += r & (1 << E) - 1, r >>>= E, o -= E), o < 15 && (r += v[a++] << o, o += 8, r += v[a++] << o, o += 8), b = f[r & w];
3306
+ if (y = E >>> 24, r >>>= y, o -= y, y = E >>> 16 & 255, y === 0)
3307
+ b[l++] = E & 65535;
3308
+ else if (y & 16) {
3309
+ m = E & 65535, y &= 15, y && (o < y && (r += v[a++] << o, o += 8), m += r & (1 << y) - 1, r >>>= y, o -= y), o < 15 && (r += v[a++] << o, o += 8, r += v[a++] << o, o += 8), E = f[r & _];
3317
3310
  i:
3318
3311
  for (; ; ) {
3319
- if (E = b >>> 24, r >>>= E, o -= E, E = b >>> 16 & 255, E & 16) {
3320
- if (A = b & 65535, E &= 15, o < E && (r += v[a++] << o, o += 8, o < E && (r += v[a++] << o, o += 8)), A += r & (1 << E) - 1, A > x) {
3312
+ if (y = E >>> 24, r >>>= y, o -= y, y = E >>> 16 & 255, y & 16) {
3313
+ if (A = E & 65535, y &= 15, o < y && (r += v[a++] << o, o += 8, o < y && (r += v[a++] << o, o += 8)), A += r & (1 << y) - 1, A > x) {
3321
3314
  n.msg = "invalid distance too far back", u.mode = qe;
3322
3315
  break e;
3323
3316
  }
3324
- if (r >>>= E, o -= E, E = l - c, A > E) {
3325
- if (E = A - E, E > _ && u.sane) {
3317
+ if (r >>>= y, o -= y, y = l - d, A > y) {
3318
+ if (y = A - y, y > w && u.sane) {
3326
3319
  n.msg = "invalid distance too far back", u.mode = qe;
3327
3320
  break e;
3328
3321
  }
3329
- if (F = 0, k = i, I === 0) {
3330
- if (F += g - E, E < m) {
3331
- m -= E;
3322
+ if (F = 0, k = i, T === 0) {
3323
+ if (F += g - y, y < m) {
3324
+ m -= y;
3332
3325
  do
3333
- y[l++] = i[F++];
3334
- while (--E);
3335
- F = l - A, k = y;
3326
+ b[l++] = i[F++];
3327
+ while (--y);
3328
+ F = l - A, k = b;
3336
3329
  }
3337
- } else if (I < E) {
3338
- if (F += g + I - E, E -= I, E < m) {
3339
- m -= E;
3330
+ } else if (T < y) {
3331
+ if (F += g + T - y, y -= T, y < m) {
3332
+ m -= y;
3340
3333
  do
3341
- y[l++] = i[F++];
3342
- while (--E);
3343
- if (F = 0, I < m) {
3344
- E = I, m -= E;
3334
+ b[l++] = i[F++];
3335
+ while (--y);
3336
+ if (F = 0, T < m) {
3337
+ y = T, m -= y;
3345
3338
  do
3346
- y[l++] = i[F++];
3347
- while (--E);
3348
- F = l - A, k = y;
3339
+ b[l++] = i[F++];
3340
+ while (--y);
3341
+ F = l - A, k = b;
3349
3342
  }
3350
3343
  }
3351
- } else if (F += I - E, E < m) {
3352
- m -= E;
3344
+ } else if (F += T - y, y < m) {
3345
+ m -= y;
3353
3346
  do
3354
- y[l++] = i[F++];
3355
- while (--E);
3356
- F = l - A, k = y;
3347
+ b[l++] = i[F++];
3348
+ while (--y);
3349
+ F = l - A, k = b;
3357
3350
  }
3358
3351
  for (; m > 2; )
3359
- y[l++] = k[F++], y[l++] = k[F++], y[l++] = k[F++], m -= 3;
3360
- m && (y[l++] = k[F++], m > 1 && (y[l++] = k[F++]));
3352
+ b[l++] = k[F++], b[l++] = k[F++], b[l++] = k[F++], m -= 3;
3353
+ m && (b[l++] = k[F++], m > 1 && (b[l++] = k[F++]));
3361
3354
  } else {
3362
3355
  F = l - A;
3363
3356
  do
3364
- y[l++] = y[F++], y[l++] = y[F++], y[l++] = y[F++], m -= 3;
3357
+ b[l++] = b[F++], b[l++] = b[F++], b[l++] = b[F++], m -= 3;
3365
3358
  while (m > 2);
3366
- m && (y[l++] = y[F++], m > 1 && (y[l++] = y[F++]));
3359
+ m && (b[l++] = b[F++], m > 1 && (b[l++] = b[F++]));
3367
3360
  }
3368
- } else if ((E & 64) === 0) {
3369
- b = f[(b & 65535) + (r & (1 << E) - 1)];
3361
+ } else if ((y & 64) === 0) {
3362
+ E = f[(E & 65535) + (r & (1 << y) - 1)];
3370
3363
  continue i;
3371
3364
  } else {
3372
3365
  n.msg = "invalid distance code", u.mode = qe;
@@ -3374,10 +3367,10 @@ var Sa = function(n, t) {
3374
3367
  }
3375
3368
  break;
3376
3369
  }
3377
- } else if ((E & 64) === 0) {
3378
- b = h[(b & 65535) + (r & (1 << E) - 1)];
3370
+ } else if ((y & 64) === 0) {
3371
+ E = h[(E & 65535) + (r & (1 << y) - 1)];
3379
3372
  continue t;
3380
- } else if (E & 32) {
3373
+ } else if (y & 32) {
3381
3374
  u.mode = Aa;
3382
3375
  break e;
3383
3376
  } else {
@@ -3386,10 +3379,10 @@ var Sa = function(n, t) {
3386
3379
  }
3387
3380
  break;
3388
3381
  }
3389
- } while (a < s && l < d);
3390
- m = o >> 3, a -= m, o -= m << 3, r &= (1 << o) - 1, n.next_in = a, n.next_out = l, n.avail_in = a < s ? 5 + (s - a) : 5 - (a - s), n.avail_out = l < d ? 257 + (d - l) : 257 - (l - d), u.hold = r, u.bits = o;
3382
+ } while (a < s && l < c);
3383
+ m = o >> 3, a -= m, o -= m << 3, r &= (1 << o) - 1, n.next_in = a, n.next_out = l, n.avail_in = a < s ? 5 + (s - a) : 5 - (a - s), n.avail_out = l < c ? 257 + (c - l) : 257 - (l - c), u.hold = r, u.bits = o;
3391
3384
  };
3392
- const Fe = 15, ii = 852, ri = 592, ni = 0, xt = 1, ai = 2, Na = new Uint16Array([
3385
+ const Fe = 15, ri = 852, ni = 592, ai = 0, Tt = 1, si = 2, Na = new Uint16Array([
3393
3386
  /* Length codes 257..285 base */
3394
3387
  3,
3395
3388
  4,
@@ -3523,57 +3516,57 @@ const Fe = 15, ii = 852, ri = 592, ni = 0, xt = 1, ai = 2, Na = new Uint16Array(
3523
3516
  29,
3524
3517
  64,
3525
3518
  64
3526
- ]), Ca = (e, n, t, a, s, l, c, d) => {
3527
- const x = d.bits;
3528
- let g = 0, _ = 0, I = 0, i = 0, r = 0, o = 0, h = 0, f = 0, p = 0, w = 0, b, E, m, A, F, k = null, v = 0, y;
3529
- const u = new Uint16Array(Fe + 1), T = new Uint16Array(Fe + 1);
3519
+ ]), Ca = (e, n, t, a, s, l, d, c) => {
3520
+ const x = c.bits;
3521
+ let g = 0, w = 0, T = 0, i = 0, r = 0, o = 0, h = 0, f = 0, p = 0, _ = 0, E, y, m, A, F, k = null, v = 0, b;
3522
+ const u = new Uint16Array(Fe + 1), I = new Uint16Array(Fe + 1);
3530
3523
  let S = null, N = 0, U, R, O;
3531
3524
  for (g = 0; g <= Fe; g++)
3532
3525
  u[g] = 0;
3533
- for (_ = 0; _ < a; _++)
3534
- u[n[t + _]]++;
3526
+ for (w = 0; w < a; w++)
3527
+ u[n[t + w]]++;
3535
3528
  for (r = x, i = Fe; i >= 1 && u[i] === 0; i--)
3536
3529
  ;
3537
3530
  if (r > i && (r = i), i === 0)
3538
- return s[l++] = 1 << 24 | 64 << 16 | 0, s[l++] = 1 << 24 | 64 << 16 | 0, d.bits = 1, 0;
3539
- for (I = 1; I < i && u[I] === 0; I++)
3531
+ return s[l++] = 1 << 24 | 64 << 16 | 0, s[l++] = 1 << 24 | 64 << 16 | 0, c.bits = 1, 0;
3532
+ for (T = 1; T < i && u[T] === 0; T++)
3540
3533
  ;
3541
- for (r < I && (r = I), f = 1, g = 1; g <= Fe; g++)
3534
+ for (r < T && (r = T), f = 1, g = 1; g <= Fe; g++)
3542
3535
  if (f <<= 1, f -= u[g], f < 0)
3543
3536
  return -1;
3544
- if (f > 0 && (e === ni || i !== 1))
3537
+ if (f > 0 && (e === ai || i !== 1))
3545
3538
  return -1;
3546
- for (T[1] = 0, g = 1; g < Fe; g++)
3547
- T[g + 1] = T[g] + u[g];
3548
- for (_ = 0; _ < a; _++)
3549
- n[t + _] !== 0 && (c[T[n[t + _]]++] = _);
3550
- if (e === ni ? (k = S = c, y = 19) : e === xt ? (k = Na, v -= 257, S = Ua, N -= 257, y = 256) : (k = La, S = Ra, y = -1), w = 0, _ = 0, g = I, F = l, o = r, h = 0, m = -1, p = 1 << r, A = p - 1, e === xt && p > ii || e === ai && p > ri)
3539
+ for (I[1] = 0, g = 1; g < Fe; g++)
3540
+ I[g + 1] = I[g] + u[g];
3541
+ for (w = 0; w < a; w++)
3542
+ n[t + w] !== 0 && (d[I[n[t + w]]++] = w);
3543
+ if (e === ai ? (k = S = d, b = 19) : e === Tt ? (k = Na, v -= 257, S = Ua, N -= 257, b = 256) : (k = La, S = Ra, b = -1), _ = 0, w = 0, g = T, F = l, o = r, h = 0, m = -1, p = 1 << r, A = p - 1, e === Tt && p > ri || e === si && p > ni)
3551
3544
  return 1;
3552
3545
  for (; ; ) {
3553
- U = g - h, c[_] < y ? (R = 0, O = c[_]) : c[_] > y ? (R = S[N + c[_]], O = k[v + c[_]]) : (R = 96, O = 0), b = 1 << g - h, E = 1 << o, I = E;
3546
+ U = g - h, d[w] < b ? (R = 0, O = d[w]) : d[w] > b ? (R = S[N + d[w]], O = k[v + d[w]]) : (R = 96, O = 0), E = 1 << g - h, y = 1 << o, T = y;
3554
3547
  do
3555
- E -= b, s[F + (w >> h) + E] = U << 24 | R << 16 | O | 0;
3556
- while (E !== 0);
3557
- for (b = 1 << g - 1; w & b; )
3558
- b >>= 1;
3559
- if (b !== 0 ? (w &= b - 1, w += b) : w = 0, _++, --u[g] === 0) {
3548
+ y -= E, s[F + (_ >> h) + y] = U << 24 | R << 16 | O | 0;
3549
+ while (y !== 0);
3550
+ for (E = 1 << g - 1; _ & E; )
3551
+ E >>= 1;
3552
+ if (E !== 0 ? (_ &= E - 1, _ += E) : _ = 0, w++, --u[g] === 0) {
3560
3553
  if (g === i)
3561
3554
  break;
3562
- g = n[t + c[_]];
3555
+ g = n[t + d[w]];
3563
3556
  }
3564
- if (g > r && (w & A) !== m) {
3565
- for (h === 0 && (h = r), F += I, o = g - h, f = 1 << o; o + h < i && (f -= u[o + h], !(f <= 0)); )
3557
+ if (g > r && (_ & A) !== m) {
3558
+ for (h === 0 && (h = r), F += T, o = g - h, f = 1 << o; o + h < i && (f -= u[o + h], !(f <= 0)); )
3566
3559
  o++, f <<= 1;
3567
- if (p += 1 << o, e === xt && p > ii || e === ai && p > ri)
3560
+ if (p += 1 << o, e === Tt && p > ri || e === si && p > ni)
3568
3561
  return 1;
3569
- m = w & A, s[m] = r << 24 | o << 16 | F - l | 0;
3562
+ m = _ & A, s[m] = r << 24 | o << 16 | F - l | 0;
3570
3563
  }
3571
3564
  }
3572
- return w !== 0 && (s[F + w] = g - h << 24 | 64 << 16 | 0), d.bits = r, 0;
3565
+ return _ !== 0 && (s[F + _] = g - h << 24 | 64 << 16 | 0), c.bits = r, 0;
3573
3566
  };
3574
3567
  var Oe = Ca;
3575
3568
  const Oa = 0, nr = 1, ar = 2, {
3576
- Z_FINISH: si,
3569
+ Z_FINISH: oi,
3577
3570
  Z_BLOCK: Da,
3578
3571
  Z_TREES: Ke,
3579
3572
  Z_OK: xe,
@@ -3583,8 +3576,8 @@ const Oa = 0, nr = 1, ar = 2, {
3583
3576
  Z_DATA_ERROR: sr,
3584
3577
  Z_MEM_ERROR: or,
3585
3578
  Z_BUF_ERROR: Ma,
3586
- Z_DEFLATED: oi
3587
- } = ft, lr = 1, li = 2, hi = 3, fi = 4, ui = 5, ci = 6, di = 7, gi = 8, pi = 9, _i = 10, ht = 11, ne = 12, Tt = 13, wi = 14, It = 15, yi = 16, bi = 17, Ei = 18, vi = 19, We = 20, Je = 21, xi = 22, Ti = 23, Ii = 24, Fi = 25, mi = 26, Ft = 27, ki = 28, Ai = 29, D = 30, hr = 31, Pa = 32, Za = 852, $a = 592, Ha = 15, Xa = Ha, Si = (e) => (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
3579
+ Z_DEFLATED: li
3580
+ } = ut, lr = 1, hi = 2, fi = 3, ui = 4, ci = 5, di = 6, gi = 7, pi = 8, _i = 9, wi = 10, ft = 11, ne = 12, It = 13, yi = 14, Ft = 15, bi = 16, Ei = 17, vi = 18, xi = 19, We = 20, Je = 21, Ti = 22, Ii = 23, Fi = 24, mi = 25, ki = 26, mt = 27, Ai = 28, Si = 29, D = 30, hr = 31, Pa = 32, Za = 852, $a = 592, Ha = 15, Xa = Ha, Ni = (e) => (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
3588
3581
  function Va() {
3589
3582
  this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
3590
3583
  }
@@ -3612,10 +3605,10 @@ const fr = (e) => {
3612
3605
  const a = cr(e, n);
3613
3606
  return a !== xe && (e.state = null), a;
3614
3607
  }, Ya = (e) => dr(e, Xa);
3615
- let Ni = !0, mt, kt;
3608
+ let Ui = !0, kt, At;
3616
3609
  const ja = (e) => {
3617
- if (Ni) {
3618
- mt = new Int32Array(512), kt = new Int32Array(32);
3610
+ if (Ui) {
3611
+ kt = new Int32Array(512), At = new Int32Array(32);
3619
3612
  let n = 0;
3620
3613
  for (; n < 144; )
3621
3614
  e.lens[n++] = 8;
@@ -3625,41 +3618,41 @@ const ja = (e) => {
3625
3618
  e.lens[n++] = 7;
3626
3619
  for (; n < 288; )
3627
3620
  e.lens[n++] = 8;
3628
- for (Oe(nr, e.lens, 0, 288, mt, 0, e.work, { bits: 9 }), n = 0; n < 32; )
3621
+ for (Oe(nr, e.lens, 0, 288, kt, 0, e.work, { bits: 9 }), n = 0; n < 32; )
3629
3622
  e.lens[n++] = 5;
3630
- Oe(ar, e.lens, 0, 32, kt, 0, e.work, { bits: 5 }), Ni = !1;
3623
+ Oe(ar, e.lens, 0, 32, At, 0, e.work, { bits: 5 }), Ui = !1;
3631
3624
  }
3632
- e.lencode = mt, e.lenbits = 9, e.distcode = kt, e.distbits = 5;
3625
+ e.lencode = kt, e.lenbits = 9, e.distcode = At, e.distbits = 5;
3633
3626
  }, gr = (e, n, t, a) => {
3634
3627
  let s;
3635
3628
  const l = e.state;
3636
3629
  return l.window === null && (l.wsize = 1 << l.wbits, l.wnext = 0, l.whave = 0, l.window = new Uint8Array(l.wsize)), a >= l.wsize ? (l.window.set(n.subarray(t - l.wsize, t), 0), l.wnext = 0, l.whave = l.wsize) : (s = l.wsize - l.wnext, s > a && (s = a), l.window.set(n.subarray(t - a, t - a + s), l.wnext), a -= s, a ? (l.window.set(n.subarray(t - a, t), 0), l.wnext = a, l.whave = l.wsize) : (l.wnext += s, l.wnext === l.wsize && (l.wnext = 0), l.whave < l.wsize && (l.whave += s))), 0;
3637
3630
  }, Ga = (e, n) => {
3638
- let t, a, s, l, c, d, x, g, _, I, i, r, o, h, f = 0, p, w, b, E, m, A, F, k;
3631
+ let t, a, s, l, d, c, x, g, w, T, i, r, o, h, f = 0, p, _, E, y, m, A, F, k;
3639
3632
  const v = new Uint8Array(4);
3640
- let y, u;
3641
- const T = (
3633
+ let b, u;
3634
+ const I = (
3642
3635
  /* permutation of code lengths */
3643
3636
  new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15])
3644
3637
  );
3645
3638
  if (!e || !e.state || !e.output || !e.input && e.avail_in !== 0)
3646
3639
  return W;
3647
- t = e.state, t.mode === ne && (t.mode = Tt), c = e.next_out, s = e.output, x = e.avail_out, l = e.next_in, a = e.input, d = e.avail_in, g = t.hold, _ = t.bits, I = d, i = x, k = xe;
3640
+ t = e.state, t.mode === ne && (t.mode = It), d = e.next_out, s = e.output, x = e.avail_out, l = e.next_in, a = e.input, c = e.avail_in, g = t.hold, w = t.bits, T = c, i = x, k = xe;
3648
3641
  e:
3649
3642
  for (; ; )
3650
3643
  switch (t.mode) {
3651
3644
  case lr:
3652
3645
  if (t.wrap === 0) {
3653
- t.mode = Tt;
3646
+ t.mode = It;
3654
3647
  break;
3655
3648
  }
3656
- for (; _ < 16; ) {
3657
- if (d === 0)
3649
+ for (; w < 16; ) {
3650
+ if (c === 0)
3658
3651
  break e;
3659
- d--, g += a[l++] << _, _ += 8;
3652
+ c--, g += a[l++] << w, w += 8;
3660
3653
  }
3661
3654
  if (t.wrap & 2 && g === 35615) {
3662
- t.check = 0, v[0] = g & 255, v[1] = g >>> 8 & 255, t.check = $(t.check, v, 2, 0), g = 0, _ = 0, t.mode = li;
3655
+ t.check = 0, v[0] = g & 255, v[1] = g >>> 8 & 255, t.check = $(t.check, v, 2, 0), g = 0, w = 0, t.mode = hi;
3663
3656
  break;
3664
3657
  }
3665
3658
  if (t.flags = 0, t.head && (t.head.done = !1), !(t.wrap & 1) || /* check if zlib header allowed */
@@ -3667,25 +3660,25 @@ const ja = (e) => {
3667
3660
  e.msg = "incorrect header check", t.mode = D;
3668
3661
  break;
3669
3662
  }
3670
- if ((g & 15) !== oi) {
3663
+ if ((g & 15) !== li) {
3671
3664
  e.msg = "unknown compression method", t.mode = D;
3672
3665
  break;
3673
3666
  }
3674
- if (g >>>= 4, _ -= 4, F = (g & 15) + 8, t.wbits === 0)
3667
+ if (g >>>= 4, w -= 4, F = (g & 15) + 8, t.wbits === 0)
3675
3668
  t.wbits = F;
3676
3669
  else if (F > t.wbits) {
3677
3670
  e.msg = "invalid window size", t.mode = D;
3678
3671
  break;
3679
3672
  }
3680
- t.dmax = 1 << t.wbits, e.adler = t.check = 1, t.mode = g & 512 ? _i : ne, g = 0, _ = 0;
3673
+ t.dmax = 1 << t.wbits, e.adler = t.check = 1, t.mode = g & 512 ? wi : ne, g = 0, w = 0;
3681
3674
  break;
3682
- case li:
3683
- for (; _ < 16; ) {
3684
- if (d === 0)
3675
+ case hi:
3676
+ for (; w < 16; ) {
3677
+ if (c === 0)
3685
3678
  break e;
3686
- d--, g += a[l++] << _, _ += 8;
3679
+ c--, g += a[l++] << w, w += 8;
3687
3680
  }
3688
- if (t.flags = g, (t.flags & 255) !== oi) {
3681
+ if (t.flags = g, (t.flags & 255) !== li) {
3689
3682
  e.msg = "unknown compression method", t.mode = D;
3690
3683
  break;
3691
3684
  }
@@ -3693,37 +3686,37 @@ const ja = (e) => {
3693
3686
  e.msg = "unknown header flags set", t.mode = D;
3694
3687
  break;
3695
3688
  }
3696
- t.head && (t.head.text = g >> 8 & 1), t.flags & 512 && (v[0] = g & 255, v[1] = g >>> 8 & 255, t.check = $(t.check, v, 2, 0)), g = 0, _ = 0, t.mode = hi;
3689
+ t.head && (t.head.text = g >> 8 & 1), t.flags & 512 && (v[0] = g & 255, v[1] = g >>> 8 & 255, t.check = $(t.check, v, 2, 0)), g = 0, w = 0, t.mode = fi;
3697
3690
  /* falls through */
3698
- case hi:
3699
- for (; _ < 32; ) {
3700
- if (d === 0)
3691
+ case fi:
3692
+ for (; w < 32; ) {
3693
+ if (c === 0)
3701
3694
  break e;
3702
- d--, g += a[l++] << _, _ += 8;
3695
+ c--, g += a[l++] << w, w += 8;
3703
3696
  }
3704
- t.head && (t.head.time = g), t.flags & 512 && (v[0] = g & 255, v[1] = g >>> 8 & 255, v[2] = g >>> 16 & 255, v[3] = g >>> 24 & 255, t.check = $(t.check, v, 4, 0)), g = 0, _ = 0, t.mode = fi;
3697
+ t.head && (t.head.time = g), t.flags & 512 && (v[0] = g & 255, v[1] = g >>> 8 & 255, v[2] = g >>> 16 & 255, v[3] = g >>> 24 & 255, t.check = $(t.check, v, 4, 0)), g = 0, w = 0, t.mode = ui;
3705
3698
  /* falls through */
3706
- case fi:
3707
- for (; _ < 16; ) {
3708
- if (d === 0)
3699
+ case ui:
3700
+ for (; w < 16; ) {
3701
+ if (c === 0)
3709
3702
  break e;
3710
- d--, g += a[l++] << _, _ += 8;
3703
+ c--, g += a[l++] << w, w += 8;
3711
3704
  }
3712
- t.head && (t.head.xflags = g & 255, t.head.os = g >> 8), t.flags & 512 && (v[0] = g & 255, v[1] = g >>> 8 & 255, t.check = $(t.check, v, 2, 0)), g = 0, _ = 0, t.mode = ui;
3705
+ t.head && (t.head.xflags = g & 255, t.head.os = g >> 8), t.flags & 512 && (v[0] = g & 255, v[1] = g >>> 8 & 255, t.check = $(t.check, v, 2, 0)), g = 0, w = 0, t.mode = ci;
3713
3706
  /* falls through */
3714
- case ui:
3707
+ case ci:
3715
3708
  if (t.flags & 1024) {
3716
- for (; _ < 16; ) {
3717
- if (d === 0)
3709
+ for (; w < 16; ) {
3710
+ if (c === 0)
3718
3711
  break e;
3719
- d--, g += a[l++] << _, _ += 8;
3712
+ c--, g += a[l++] << w, w += 8;
3720
3713
  }
3721
- t.length = g, t.head && (t.head.extra_len = g), t.flags & 512 && (v[0] = g & 255, v[1] = g >>> 8 & 255, t.check = $(t.check, v, 2, 0)), g = 0, _ = 0;
3714
+ t.length = g, t.head && (t.head.extra_len = g), t.flags & 512 && (v[0] = g & 255, v[1] = g >>> 8 & 255, t.check = $(t.check, v, 2, 0)), g = 0, w = 0;
3722
3715
  } else t.head && (t.head.extra = null);
3723
- t.mode = ci;
3716
+ t.mode = di;
3724
3717
  /* falls through */
3725
- case ci:
3726
- if (t.flags & 1024 && (r = t.length, r > d && (r = d), r && (t.head && (F = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Uint8Array(t.head.extra_len)), t.head.extra.set(
3718
+ case di:
3719
+ if (t.flags & 1024 && (r = t.length, r > c && (r = c), r && (t.head && (F = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Uint8Array(t.head.extra_len)), t.head.extra.set(
3727
3720
  a.subarray(
3728
3721
  l,
3729
3722
  // extra field is limited to 65536 bytes
@@ -3732,185 +3725,185 @@ const ja = (e) => {
3732
3725
  ),
3733
3726
  /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
3734
3727
  F
3735
- )), t.flags & 512 && (t.check = $(t.check, a, r, l)), d -= r, l += r, t.length -= r), t.length))
3728
+ )), t.flags & 512 && (t.check = $(t.check, a, r, l)), c -= r, l += r, t.length -= r), t.length))
3736
3729
  break e;
3737
- t.length = 0, t.mode = di;
3730
+ t.length = 0, t.mode = gi;
3738
3731
  /* falls through */
3739
- case di:
3732
+ case gi:
3740
3733
  if (t.flags & 2048) {
3741
- if (d === 0)
3734
+ if (c === 0)
3742
3735
  break e;
3743
3736
  r = 0;
3744
3737
  do
3745
3738
  F = a[l + r++], t.head && F && t.length < 65536 && (t.head.name += String.fromCharCode(F));
3746
- while (F && r < d);
3747
- if (t.flags & 512 && (t.check = $(t.check, a, r, l)), d -= r, l += r, F)
3739
+ while (F && r < c);
3740
+ if (t.flags & 512 && (t.check = $(t.check, a, r, l)), c -= r, l += r, F)
3748
3741
  break e;
3749
3742
  } else t.head && (t.head.name = null);
3750
- t.length = 0, t.mode = gi;
3743
+ t.length = 0, t.mode = pi;
3751
3744
  /* falls through */
3752
- case gi:
3745
+ case pi:
3753
3746
  if (t.flags & 4096) {
3754
- if (d === 0)
3747
+ if (c === 0)
3755
3748
  break e;
3756
3749
  r = 0;
3757
3750
  do
3758
3751
  F = a[l + r++], t.head && F && t.length < 65536 && (t.head.comment += String.fromCharCode(F));
3759
- while (F && r < d);
3760
- if (t.flags & 512 && (t.check = $(t.check, a, r, l)), d -= r, l += r, F)
3752
+ while (F && r < c);
3753
+ if (t.flags & 512 && (t.check = $(t.check, a, r, l)), c -= r, l += r, F)
3761
3754
  break e;
3762
3755
  } else t.head && (t.head.comment = null);
3763
- t.mode = pi;
3756
+ t.mode = _i;
3764
3757
  /* falls through */
3765
- case pi:
3758
+ case _i:
3766
3759
  if (t.flags & 512) {
3767
- for (; _ < 16; ) {
3768
- if (d === 0)
3760
+ for (; w < 16; ) {
3761
+ if (c === 0)
3769
3762
  break e;
3770
- d--, g += a[l++] << _, _ += 8;
3763
+ c--, g += a[l++] << w, w += 8;
3771
3764
  }
3772
3765
  if (g !== (t.check & 65535)) {
3773
3766
  e.msg = "header crc mismatch", t.mode = D;
3774
3767
  break;
3775
3768
  }
3776
- g = 0, _ = 0;
3769
+ g = 0, w = 0;
3777
3770
  }
3778
3771
  t.head && (t.head.hcrc = t.flags >> 9 & 1, t.head.done = !0), e.adler = t.check = 0, t.mode = ne;
3779
3772
  break;
3780
- case _i:
3781
- for (; _ < 32; ) {
3782
- if (d === 0)
3773
+ case wi:
3774
+ for (; w < 32; ) {
3775
+ if (c === 0)
3783
3776
  break e;
3784
- d--, g += a[l++] << _, _ += 8;
3777
+ c--, g += a[l++] << w, w += 8;
3785
3778
  }
3786
- e.adler = t.check = Si(g), g = 0, _ = 0, t.mode = ht;
3779
+ e.adler = t.check = Ni(g), g = 0, w = 0, t.mode = ft;
3787
3780
  /* falls through */
3788
- case ht:
3781
+ case ft:
3789
3782
  if (t.havedict === 0)
3790
- return e.next_out = c, e.avail_out = x, e.next_in = l, e.avail_in = d, t.hold = g, t.bits = _, za;
3783
+ return e.next_out = d, e.avail_out = x, e.next_in = l, e.avail_in = c, t.hold = g, t.bits = w, za;
3791
3784
  e.adler = t.check = 1, t.mode = ne;
3792
3785
  /* falls through */
3793
3786
  case ne:
3794
3787
  if (n === Da || n === Ke)
3795
3788
  break e;
3796
3789
  /* falls through */
3797
- case Tt:
3790
+ case It:
3798
3791
  if (t.last) {
3799
- g >>>= _ & 7, _ -= _ & 7, t.mode = Ft;
3792
+ g >>>= w & 7, w -= w & 7, t.mode = mt;
3800
3793
  break;
3801
3794
  }
3802
- for (; _ < 3; ) {
3803
- if (d === 0)
3795
+ for (; w < 3; ) {
3796
+ if (c === 0)
3804
3797
  break e;
3805
- d--, g += a[l++] << _, _ += 8;
3798
+ c--, g += a[l++] << w, w += 8;
3806
3799
  }
3807
- switch (t.last = g & 1, g >>>= 1, _ -= 1, g & 3) {
3800
+ switch (t.last = g & 1, g >>>= 1, w -= 1, g & 3) {
3808
3801
  case 0:
3809
- t.mode = wi;
3802
+ t.mode = yi;
3810
3803
  break;
3811
3804
  case 1:
3812
3805
  if (ja(t), t.mode = We, n === Ke) {
3813
- g >>>= 2, _ -= 2;
3806
+ g >>>= 2, w -= 2;
3814
3807
  break e;
3815
3808
  }
3816
3809
  break;
3817
3810
  case 2:
3818
- t.mode = bi;
3811
+ t.mode = Ei;
3819
3812
  break;
3820
3813
  case 3:
3821
3814
  e.msg = "invalid block type", t.mode = D;
3822
3815
  }
3823
- g >>>= 2, _ -= 2;
3816
+ g >>>= 2, w -= 2;
3824
3817
  break;
3825
- case wi:
3826
- for (g >>>= _ & 7, _ -= _ & 7; _ < 32; ) {
3827
- if (d === 0)
3818
+ case yi:
3819
+ for (g >>>= w & 7, w -= w & 7; w < 32; ) {
3820
+ if (c === 0)
3828
3821
  break e;
3829
- d--, g += a[l++] << _, _ += 8;
3822
+ c--, g += a[l++] << w, w += 8;
3830
3823
  }
3831
3824
  if ((g & 65535) !== (g >>> 16 ^ 65535)) {
3832
3825
  e.msg = "invalid stored block lengths", t.mode = D;
3833
3826
  break;
3834
3827
  }
3835
- if (t.length = g & 65535, g = 0, _ = 0, t.mode = It, n === Ke)
3828
+ if (t.length = g & 65535, g = 0, w = 0, t.mode = Ft, n === Ke)
3836
3829
  break e;
3837
3830
  /* falls through */
3838
- case It:
3839
- t.mode = yi;
3831
+ case Ft:
3832
+ t.mode = bi;
3840
3833
  /* falls through */
3841
- case yi:
3834
+ case bi:
3842
3835
  if (r = t.length, r) {
3843
- if (r > d && (r = d), r > x && (r = x), r === 0)
3836
+ if (r > c && (r = c), r > x && (r = x), r === 0)
3844
3837
  break e;
3845
- s.set(a.subarray(l, l + r), c), d -= r, l += r, x -= r, c += r, t.length -= r;
3838
+ s.set(a.subarray(l, l + r), d), c -= r, l += r, x -= r, d += r, t.length -= r;
3846
3839
  break;
3847
3840
  }
3848
3841
  t.mode = ne;
3849
3842
  break;
3850
- case bi:
3851
- for (; _ < 14; ) {
3852
- if (d === 0)
3843
+ case Ei:
3844
+ for (; w < 14; ) {
3845
+ if (c === 0)
3853
3846
  break e;
3854
- d--, g += a[l++] << _, _ += 8;
3847
+ c--, g += a[l++] << w, w += 8;
3855
3848
  }
3856
- if (t.nlen = (g & 31) + 257, g >>>= 5, _ -= 5, t.ndist = (g & 31) + 1, g >>>= 5, _ -= 5, t.ncode = (g & 15) + 4, g >>>= 4, _ -= 4, t.nlen > 286 || t.ndist > 30) {
3849
+ if (t.nlen = (g & 31) + 257, g >>>= 5, w -= 5, t.ndist = (g & 31) + 1, g >>>= 5, w -= 5, t.ncode = (g & 15) + 4, g >>>= 4, w -= 4, t.nlen > 286 || t.ndist > 30) {
3857
3850
  e.msg = "too many length or distance symbols", t.mode = D;
3858
3851
  break;
3859
3852
  }
3860
- t.have = 0, t.mode = Ei;
3853
+ t.have = 0, t.mode = vi;
3861
3854
  /* falls through */
3862
- case Ei:
3855
+ case vi:
3863
3856
  for (; t.have < t.ncode; ) {
3864
- for (; _ < 3; ) {
3865
- if (d === 0)
3857
+ for (; w < 3; ) {
3858
+ if (c === 0)
3866
3859
  break e;
3867
- d--, g += a[l++] << _, _ += 8;
3860
+ c--, g += a[l++] << w, w += 8;
3868
3861
  }
3869
- t.lens[T[t.have++]] = g & 7, g >>>= 3, _ -= 3;
3862
+ t.lens[I[t.have++]] = g & 7, g >>>= 3, w -= 3;
3870
3863
  }
3871
3864
  for (; t.have < 19; )
3872
- t.lens[T[t.have++]] = 0;
3873
- if (t.lencode = t.lendyn, t.lenbits = 7, y = { bits: t.lenbits }, k = Oe(Oa, t.lens, 0, 19, t.lencode, 0, t.work, y), t.lenbits = y.bits, k) {
3865
+ t.lens[I[t.have++]] = 0;
3866
+ if (t.lencode = t.lendyn, t.lenbits = 7, b = { bits: t.lenbits }, k = Oe(Oa, t.lens, 0, 19, t.lencode, 0, t.work, b), t.lenbits = b.bits, k) {
3874
3867
  e.msg = "invalid code lengths set", t.mode = D;
3875
3868
  break;
3876
3869
  }
3877
- t.have = 0, t.mode = vi;
3870
+ t.have = 0, t.mode = xi;
3878
3871
  /* falls through */
3879
- case vi:
3872
+ case xi:
3880
3873
  for (; t.have < t.nlen + t.ndist; ) {
3881
- for (; f = t.lencode[g & (1 << t.lenbits) - 1], p = f >>> 24, w = f >>> 16 & 255, b = f & 65535, !(p <= _); ) {
3882
- if (d === 0)
3874
+ for (; f = t.lencode[g & (1 << t.lenbits) - 1], p = f >>> 24, _ = f >>> 16 & 255, E = f & 65535, !(p <= w); ) {
3875
+ if (c === 0)
3883
3876
  break e;
3884
- d--, g += a[l++] << _, _ += 8;
3877
+ c--, g += a[l++] << w, w += 8;
3885
3878
  }
3886
- if (b < 16)
3887
- g >>>= p, _ -= p, t.lens[t.have++] = b;
3879
+ if (E < 16)
3880
+ g >>>= p, w -= p, t.lens[t.have++] = E;
3888
3881
  else {
3889
- if (b === 16) {
3890
- for (u = p + 2; _ < u; ) {
3891
- if (d === 0)
3882
+ if (E === 16) {
3883
+ for (u = p + 2; w < u; ) {
3884
+ if (c === 0)
3892
3885
  break e;
3893
- d--, g += a[l++] << _, _ += 8;
3886
+ c--, g += a[l++] << w, w += 8;
3894
3887
  }
3895
- if (g >>>= p, _ -= p, t.have === 0) {
3888
+ if (g >>>= p, w -= p, t.have === 0) {
3896
3889
  e.msg = "invalid bit length repeat", t.mode = D;
3897
3890
  break;
3898
3891
  }
3899
- F = t.lens[t.have - 1], r = 3 + (g & 3), g >>>= 2, _ -= 2;
3900
- } else if (b === 17) {
3901
- for (u = p + 3; _ < u; ) {
3902
- if (d === 0)
3892
+ F = t.lens[t.have - 1], r = 3 + (g & 3), g >>>= 2, w -= 2;
3893
+ } else if (E === 17) {
3894
+ for (u = p + 3; w < u; ) {
3895
+ if (c === 0)
3903
3896
  break e;
3904
- d--, g += a[l++] << _, _ += 8;
3897
+ c--, g += a[l++] << w, w += 8;
3905
3898
  }
3906
- g >>>= p, _ -= p, F = 0, r = 3 + (g & 7), g >>>= 3, _ -= 3;
3899
+ g >>>= p, w -= p, F = 0, r = 3 + (g & 7), g >>>= 3, w -= 3;
3907
3900
  } else {
3908
- for (u = p + 7; _ < u; ) {
3909
- if (d === 0)
3901
+ for (u = p + 7; w < u; ) {
3902
+ if (c === 0)
3910
3903
  break e;
3911
- d--, g += a[l++] << _, _ += 8;
3904
+ c--, g += a[l++] << w, w += 8;
3912
3905
  }
3913
- g >>>= p, _ -= p, F = 0, r = 11 + (g & 127), g >>>= 7, _ -= 7;
3906
+ g >>>= p, w -= p, F = 0, r = 11 + (g & 127), g >>>= 7, w -= 7;
3914
3907
  }
3915
3908
  if (t.have + r > t.nlen + t.ndist) {
3916
3909
  e.msg = "invalid bit length repeat", t.mode = D;
@@ -3926,11 +3919,11 @@ const ja = (e) => {
3926
3919
  e.msg = "invalid code -- missing end-of-block", t.mode = D;
3927
3920
  break;
3928
3921
  }
3929
- if (t.lenbits = 9, y = { bits: t.lenbits }, k = Oe(nr, t.lens, 0, t.nlen, t.lencode, 0, t.work, y), t.lenbits = y.bits, k) {
3922
+ if (t.lenbits = 9, b = { bits: t.lenbits }, k = Oe(nr, t.lens, 0, t.nlen, t.lencode, 0, t.work, b), t.lenbits = b.bits, k) {
3930
3923
  e.msg = "invalid literal/lengths set", t.mode = D;
3931
3924
  break;
3932
3925
  }
3933
- if (t.distbits = 6, t.distcode = t.distdyn, y = { bits: t.distbits }, k = Oe(ar, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, y), t.distbits = y.bits, k) {
3926
+ if (t.distbits = 6, t.distcode = t.distdyn, b = { bits: t.distbits }, k = Oe(ar, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, b), t.distbits = b.bits, k) {
3934
3927
  e.msg = "invalid distances set", t.mode = D;
3935
3928
  break;
3936
3929
  }
@@ -3941,84 +3934,84 @@ const ja = (e) => {
3941
3934
  t.mode = Je;
3942
3935
  /* falls through */
3943
3936
  case Je:
3944
- if (d >= 6 && x >= 258) {
3945
- e.next_out = c, e.avail_out = x, e.next_in = l, e.avail_in = d, t.hold = g, t.bits = _, Sa(e, i), c = e.next_out, s = e.output, x = e.avail_out, l = e.next_in, a = e.input, d = e.avail_in, g = t.hold, _ = t.bits, t.mode === ne && (t.back = -1);
3937
+ if (c >= 6 && x >= 258) {
3938
+ e.next_out = d, e.avail_out = x, e.next_in = l, e.avail_in = c, t.hold = g, t.bits = w, Sa(e, i), d = e.next_out, s = e.output, x = e.avail_out, l = e.next_in, a = e.input, c = e.avail_in, g = t.hold, w = t.bits, t.mode === ne && (t.back = -1);
3946
3939
  break;
3947
3940
  }
3948
- for (t.back = 0; f = t.lencode[g & (1 << t.lenbits) - 1], p = f >>> 24, w = f >>> 16 & 255, b = f & 65535, !(p <= _); ) {
3949
- if (d === 0)
3941
+ for (t.back = 0; f = t.lencode[g & (1 << t.lenbits) - 1], p = f >>> 24, _ = f >>> 16 & 255, E = f & 65535, !(p <= w); ) {
3942
+ if (c === 0)
3950
3943
  break e;
3951
- d--, g += a[l++] << _, _ += 8;
3944
+ c--, g += a[l++] << w, w += 8;
3952
3945
  }
3953
- if (w && (w & 240) === 0) {
3954
- for (E = p, m = w, A = b; f = t.lencode[A + ((g & (1 << E + m) - 1) >> E)], p = f >>> 24, w = f >>> 16 & 255, b = f & 65535, !(E + p <= _); ) {
3955
- if (d === 0)
3946
+ if (_ && (_ & 240) === 0) {
3947
+ for (y = p, m = _, A = E; f = t.lencode[A + ((g & (1 << y + m) - 1) >> y)], p = f >>> 24, _ = f >>> 16 & 255, E = f & 65535, !(y + p <= w); ) {
3948
+ if (c === 0)
3956
3949
  break e;
3957
- d--, g += a[l++] << _, _ += 8;
3950
+ c--, g += a[l++] << w, w += 8;
3958
3951
  }
3959
- g >>>= E, _ -= E, t.back += E;
3952
+ g >>>= y, w -= y, t.back += y;
3960
3953
  }
3961
- if (g >>>= p, _ -= p, t.back += p, t.length = b, w === 0) {
3962
- t.mode = mi;
3954
+ if (g >>>= p, w -= p, t.back += p, t.length = E, _ === 0) {
3955
+ t.mode = ki;
3963
3956
  break;
3964
3957
  }
3965
- if (w & 32) {
3958
+ if (_ & 32) {
3966
3959
  t.back = -1, t.mode = ne;
3967
3960
  break;
3968
3961
  }
3969
- if (w & 64) {
3962
+ if (_ & 64) {
3970
3963
  e.msg = "invalid literal/length code", t.mode = D;
3971
3964
  break;
3972
3965
  }
3973
- t.extra = w & 15, t.mode = xi;
3966
+ t.extra = _ & 15, t.mode = Ti;
3974
3967
  /* falls through */
3975
- case xi:
3968
+ case Ti:
3976
3969
  if (t.extra) {
3977
- for (u = t.extra; _ < u; ) {
3978
- if (d === 0)
3970
+ for (u = t.extra; w < u; ) {
3971
+ if (c === 0)
3979
3972
  break e;
3980
- d--, g += a[l++] << _, _ += 8;
3973
+ c--, g += a[l++] << w, w += 8;
3981
3974
  }
3982
- t.length += g & (1 << t.extra) - 1, g >>>= t.extra, _ -= t.extra, t.back += t.extra;
3975
+ t.length += g & (1 << t.extra) - 1, g >>>= t.extra, w -= t.extra, t.back += t.extra;
3983
3976
  }
3984
- t.was = t.length, t.mode = Ti;
3977
+ t.was = t.length, t.mode = Ii;
3985
3978
  /* falls through */
3986
- case Ti:
3987
- for (; f = t.distcode[g & (1 << t.distbits) - 1], p = f >>> 24, w = f >>> 16 & 255, b = f & 65535, !(p <= _); ) {
3988
- if (d === 0)
3979
+ case Ii:
3980
+ for (; f = t.distcode[g & (1 << t.distbits) - 1], p = f >>> 24, _ = f >>> 16 & 255, E = f & 65535, !(p <= w); ) {
3981
+ if (c === 0)
3989
3982
  break e;
3990
- d--, g += a[l++] << _, _ += 8;
3983
+ c--, g += a[l++] << w, w += 8;
3991
3984
  }
3992
- if ((w & 240) === 0) {
3993
- for (E = p, m = w, A = b; f = t.distcode[A + ((g & (1 << E + m) - 1) >> E)], p = f >>> 24, w = f >>> 16 & 255, b = f & 65535, !(E + p <= _); ) {
3994
- if (d === 0)
3985
+ if ((_ & 240) === 0) {
3986
+ for (y = p, m = _, A = E; f = t.distcode[A + ((g & (1 << y + m) - 1) >> y)], p = f >>> 24, _ = f >>> 16 & 255, E = f & 65535, !(y + p <= w); ) {
3987
+ if (c === 0)
3995
3988
  break e;
3996
- d--, g += a[l++] << _, _ += 8;
3989
+ c--, g += a[l++] << w, w += 8;
3997
3990
  }
3998
- g >>>= E, _ -= E, t.back += E;
3991
+ g >>>= y, w -= y, t.back += y;
3999
3992
  }
4000
- if (g >>>= p, _ -= p, t.back += p, w & 64) {
3993
+ if (g >>>= p, w -= p, t.back += p, _ & 64) {
4001
3994
  e.msg = "invalid distance code", t.mode = D;
4002
3995
  break;
4003
3996
  }
4004
- t.offset = b, t.extra = w & 15, t.mode = Ii;
3997
+ t.offset = E, t.extra = _ & 15, t.mode = Fi;
4005
3998
  /* falls through */
4006
- case Ii:
3999
+ case Fi:
4007
4000
  if (t.extra) {
4008
- for (u = t.extra; _ < u; ) {
4009
- if (d === 0)
4001
+ for (u = t.extra; w < u; ) {
4002
+ if (c === 0)
4010
4003
  break e;
4011
- d--, g += a[l++] << _, _ += 8;
4004
+ c--, g += a[l++] << w, w += 8;
4012
4005
  }
4013
- t.offset += g & (1 << t.extra) - 1, g >>>= t.extra, _ -= t.extra, t.back += t.extra;
4006
+ t.offset += g & (1 << t.extra) - 1, g >>>= t.extra, w -= t.extra, t.back += t.extra;
4014
4007
  }
4015
4008
  if (t.offset > t.dmax) {
4016
4009
  e.msg = "invalid distance too far back", t.mode = D;
4017
4010
  break;
4018
4011
  }
4019
- t.mode = Fi;
4012
+ t.mode = mi;
4020
4013
  /* falls through */
4021
- case Fi:
4014
+ case mi:
4022
4015
  if (x === 0)
4023
4016
  break e;
4024
4017
  if (r = i - x, t.offset > r) {
@@ -4028,50 +4021,50 @@ const ja = (e) => {
4028
4021
  }
4029
4022
  r > t.wnext ? (r -= t.wnext, o = t.wsize - r) : o = t.wnext - r, r > t.length && (r = t.length), h = t.window;
4030
4023
  } else
4031
- h = s, o = c - t.offset, r = t.length;
4024
+ h = s, o = d - t.offset, r = t.length;
4032
4025
  r > x && (r = x), x -= r, t.length -= r;
4033
4026
  do
4034
- s[c++] = h[o++];
4027
+ s[d++] = h[o++];
4035
4028
  while (--r);
4036
4029
  t.length === 0 && (t.mode = Je);
4037
4030
  break;
4038
- case mi:
4031
+ case ki:
4039
4032
  if (x === 0)
4040
4033
  break e;
4041
- s[c++] = t.length, x--, t.mode = Je;
4034
+ s[d++] = t.length, x--, t.mode = Je;
4042
4035
  break;
4043
- case Ft:
4036
+ case mt:
4044
4037
  if (t.wrap) {
4045
- for (; _ < 32; ) {
4046
- if (d === 0)
4038
+ for (; w < 32; ) {
4039
+ if (c === 0)
4047
4040
  break e;
4048
- d--, g |= a[l++] << _, _ += 8;
4041
+ c--, g |= a[l++] << w, w += 8;
4049
4042
  }
4050
4043
  if (i -= x, e.total_out += i, t.total += i, i && (e.adler = t.check = /*UPDATE(state.check, put - _out, _out);*/
4051
- t.flags ? $(t.check, s, i, c - i) : Pe(t.check, s, i, c - i)), i = x, (t.flags ? g : Si(g)) !== t.check) {
4044
+ t.flags ? $(t.check, s, i, d - i) : Pe(t.check, s, i, d - i)), i = x, (t.flags ? g : Ni(g)) !== t.check) {
4052
4045
  e.msg = "incorrect data check", t.mode = D;
4053
4046
  break;
4054
4047
  }
4055
- g = 0, _ = 0;
4048
+ g = 0, w = 0;
4056
4049
  }
4057
- t.mode = ki;
4050
+ t.mode = Ai;
4058
4051
  /* falls through */
4059
- case ki:
4052
+ case Ai:
4060
4053
  if (t.wrap && t.flags) {
4061
- for (; _ < 32; ) {
4062
- if (d === 0)
4054
+ for (; w < 32; ) {
4055
+ if (c === 0)
4063
4056
  break e;
4064
- d--, g += a[l++] << _, _ += 8;
4057
+ c--, g += a[l++] << w, w += 8;
4065
4058
  }
4066
4059
  if (g !== (t.total & 4294967295)) {
4067
4060
  e.msg = "incorrect length check", t.mode = D;
4068
4061
  break;
4069
4062
  }
4070
- g = 0, _ = 0;
4063
+ g = 0, w = 0;
4071
4064
  }
4072
- t.mode = Ai;
4065
+ t.mode = Si;
4073
4066
  /* falls through */
4074
- case Ai:
4067
+ case Si:
4075
4068
  k = Ba;
4076
4069
  break e;
4077
4070
  case D:
@@ -4084,8 +4077,8 @@ const ja = (e) => {
4084
4077
  default:
4085
4078
  return W;
4086
4079
  }
4087
- return e.next_out = c, e.avail_out = x, e.next_in = l, e.avail_in = d, t.hold = g, t.bits = _, (t.wsize || i !== e.avail_out && t.mode < D && (t.mode < Ft || n !== si)) && gr(e, e.output, e.next_out, i - e.avail_out), I -= e.avail_in, i -= e.avail_out, e.total_in += I, e.total_out += i, t.total += i, t.wrap && i && (e.adler = t.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
4088
- t.flags ? $(t.check, s, i, e.next_out - i) : Pe(t.check, s, i, e.next_out - i)), e.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === ne ? 128 : 0) + (t.mode === We || t.mode === It ? 256 : 0), (I === 0 && i === 0 || n === si) && k === xe && (k = Ma), k;
4080
+ return e.next_out = d, e.avail_out = x, e.next_in = l, e.avail_in = c, t.hold = g, t.bits = w, (t.wsize || i !== e.avail_out && t.mode < D && (t.mode < mt || n !== oi)) && gr(e, e.output, e.next_out, i - e.avail_out), T -= e.avail_in, i -= e.avail_out, e.total_in += T, e.total_out += i, t.total += i, t.wrap && i && (e.adler = t.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
4081
+ t.flags ? $(t.check, s, i, e.next_out - i) : Pe(t.check, s, i, e.next_out - i)), e.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === ne ? 128 : 0) + (t.mode === We || t.mode === Ft ? 256 : 0), (T === 0 && i === 0 || n === oi) && k === xe && (k = Ma), k;
4089
4082
  }, qa = (e) => {
4090
4083
  if (!e || !e.state)
4091
4084
  return W;
@@ -4099,7 +4092,7 @@ const ja = (e) => {
4099
4092
  }, Wa = (e, n) => {
4100
4093
  const t = n.length;
4101
4094
  let a, s, l;
4102
- return !e || !e.state || (a = e.state, a.wrap !== 0 && a.mode !== ht) ? W : a.mode === ht && (s = 1, s = Pe(s, n, t, 0), s !== a.check) ? sr : (l = gr(e, n, t, t), l ? (a.mode = hr, or) : (a.havedict = 1, xe));
4095
+ return !e || !e.state || (a = e.state, a.wrap !== 0 && a.mode !== ft) ? W : a.mode === ft && (s = 1, s = Pe(s, n, t, 0), s !== a.check) ? sr : (l = gr(e, n, t, t), l ? (a.mode = hr, or) : (a.havedict = 1, xe));
4103
4096
  };
4104
4097
  var Ja = ur, Qa = cr, es = fr, ts = Ya, is = dr, rs = Ga, ns = qa, as = Ka, ss = Wa, os = "pako inflate (from Nodeca project)", oe = {
4105
4098
  inflateReset: Ja,
@@ -4121,14 +4114,14 @@ const pr = Object.prototype.toString, {
4121
4114
  Z_NO_FLUSH: fs,
4122
4115
  Z_FINISH: us,
4123
4116
  Z_OK: He,
4124
- Z_STREAM_END: At,
4125
- Z_NEED_DICT: St,
4117
+ Z_STREAM_END: St,
4118
+ Z_NEED_DICT: Nt,
4126
4119
  Z_STREAM_ERROR: cs,
4127
- Z_DATA_ERROR: Ui,
4120
+ Z_DATA_ERROR: Li,
4128
4121
  Z_MEM_ERROR: ds
4129
- } = ft;
4130
- function pt(e) {
4131
- this.options = dt.assign({
4122
+ } = ut;
4123
+ function _t(e) {
4124
+ this.options = gt.assign({
4132
4125
  chunkSize: 1024 * 64,
4133
4126
  windowBits: 15,
4134
4127
  to: ""
@@ -4144,42 +4137,42 @@ function pt(e) {
4144
4137
  if (this.header = new hs(), oe.inflateGetHeader(this.strm, this.header), n.dictionary && (typeof n.dictionary == "string" ? n.dictionary = $e.string2buf(n.dictionary) : pr.call(n.dictionary) === "[object ArrayBuffer]" && (n.dictionary = new Uint8Array(n.dictionary)), n.raw && (t = oe.inflateSetDictionary(this.strm, n.dictionary), t !== He)))
4145
4138
  throw new Error(be[t]);
4146
4139
  }
4147
- pt.prototype.push = function(e, n) {
4140
+ _t.prototype.push = function(e, n) {
4148
4141
  const t = this.strm, a = this.options.chunkSize, s = this.options.dictionary;
4149
- let l, c, d;
4142
+ let l, d, c;
4150
4143
  if (this.ended) return !1;
4151
- for (n === ~~n ? c = n : c = n === !0 ? us : fs, pr.call(e) === "[object ArrayBuffer]" ? t.input = new Uint8Array(e) : t.input = e, t.next_in = 0, t.avail_in = t.input.length; ; ) {
4152
- for (t.avail_out === 0 && (t.output = new Uint8Array(a), t.next_out = 0, t.avail_out = a), l = oe.inflate(t, c), l === St && s && (l = oe.inflateSetDictionary(t, s), l === He ? l = oe.inflate(t, c) : l === Ui && (l = St)); t.avail_in > 0 && l === At && t.state.wrap > 0 && e[t.next_in] !== 0; )
4153
- oe.inflateReset(t), l = oe.inflate(t, c);
4144
+ for (n === ~~n ? d = n : d = n === !0 ? us : fs, pr.call(e) === "[object ArrayBuffer]" ? t.input = new Uint8Array(e) : t.input = e, t.next_in = 0, t.avail_in = t.input.length; ; ) {
4145
+ for (t.avail_out === 0 && (t.output = new Uint8Array(a), t.next_out = 0, t.avail_out = a), l = oe.inflate(t, d), l === Nt && s && (l = oe.inflateSetDictionary(t, s), l === He ? l = oe.inflate(t, d) : l === Li && (l = Nt)); t.avail_in > 0 && l === St && t.state.wrap > 0 && e[t.next_in] !== 0; )
4146
+ oe.inflateReset(t), l = oe.inflate(t, d);
4154
4147
  switch (l) {
4155
4148
  case cs:
4156
- case Ui:
4157
- case St:
4149
+ case Li:
4150
+ case Nt:
4158
4151
  case ds:
4159
4152
  return this.onEnd(l), this.ended = !0, !1;
4160
4153
  }
4161
- if (d = t.avail_out, t.next_out && (t.avail_out === 0 || l === At))
4154
+ if (c = t.avail_out, t.next_out && (t.avail_out === 0 || l === St))
4162
4155
  if (this.options.to === "string") {
4163
- let x = $e.utf8border(t.output, t.next_out), g = t.next_out - x, _ = $e.buf2string(t.output, x);
4164
- t.next_out = g, t.avail_out = a - g, g && t.output.set(t.output.subarray(x, x + g), 0), this.onData(_);
4156
+ let x = $e.utf8border(t.output, t.next_out), g = t.next_out - x, w = $e.buf2string(t.output, x);
4157
+ t.next_out = g, t.avail_out = a - g, g && t.output.set(t.output.subarray(x, x + g), 0), this.onData(w);
4165
4158
  } else
4166
4159
  this.onData(t.output.length === t.next_out ? t.output : t.output.subarray(0, t.next_out));
4167
- if (!(l === He && d === 0)) {
4168
- if (l === At)
4160
+ if (!(l === He && c === 0)) {
4161
+ if (l === St)
4169
4162
  return l = oe.inflateEnd(this.strm), this.onEnd(l), this.ended = !0, !0;
4170
4163
  if (t.avail_in === 0) break;
4171
4164
  }
4172
4165
  }
4173
4166
  return !0;
4174
4167
  };
4175
- pt.prototype.onData = function(e) {
4168
+ _t.prototype.onData = function(e) {
4176
4169
  this.chunks.push(e);
4177
4170
  };
4178
- pt.prototype.onEnd = function(e) {
4179
- e === He && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = dt.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
4171
+ _t.prototype.onEnd = function(e) {
4172
+ e === He && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = gt.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
4180
4173
  };
4181
4174
  function gs(e, n) {
4182
- const t = new pt(n);
4175
+ const t = new _t(n);
4183
4176
  if (t.push(e), t.err) throw t.msg || be[t.err];
4184
4177
  return t.result;
4185
4178
  }
@@ -4191,7 +4184,7 @@ var _s = ps, ws = {
4191
4184
  };
4192
4185
  const { deflate: ys } = ka, { inflateRaw: bs } = ws;
4193
4186
  var Es = ys, vs = bs;
4194
- function Li(e, n = 4294967295) {
4187
+ function Qe(e, n = 4294967295) {
4195
4188
  let t = n ^ 4294967295;
4196
4189
  const a = 3988292384;
4197
4190
  for (let s = 0; s < e.length; s++) {
@@ -4201,11 +4194,11 @@ function Li(e, n = 4294967295) {
4201
4194
  }
4202
4195
  return (t ^ 4294967295) >>> 0;
4203
4196
  }
4204
- const Qe = (e, n) => e.getUint32(n, !1), Ri = (e) => {
4197
+ const et = (e, n) => e.getUint32(n, !1), Ri = (e) => {
4205
4198
  const n = new ArrayBuffer(4);
4206
4199
  return new DataView(n).setUint32(0, e, !1), new Uint8Array(n);
4207
4200
  };
4208
- function Ne(...e) {
4201
+ function me(...e) {
4209
4202
  const n = e.reduce((s, l) => s + l.length, 0), t = new Uint8Array(n);
4210
4203
  let a = 0;
4211
4204
  for (const s of e)
@@ -4226,96 +4219,105 @@ async function Fs(e) {
4226
4219
  const n = e, t = new DataView(n.buffer, n.byteOffset, n.byteLength);
4227
4220
  let a = !1, s = 8;
4228
4221
  const l = [];
4229
- let c = new Uint8Array(0);
4230
- const d = n.slice(0, 8);
4231
- let x = 0, g = 0;
4222
+ let d = new Uint8Array(0), c = null;
4223
+ const x = n.slice(0, 8);
4224
+ let g = 0, w = 0;
4232
4225
  for (; s < n.length; ) {
4233
4226
  if (s + 4 > n.length)
4234
4227
  throw new Error("Truncated chunk length.");
4235
- const i = Qe(t, s);
4228
+ const r = et(t, s);
4236
4229
  if (s += 4, s + 4 > n.length)
4237
4230
  throw new Error("Truncated chunk type.");
4238
- const r = n.slice(s, s + 4);
4231
+ const o = n.slice(s, s + 4);
4239
4232
  s += 4;
4240
- const o = new TextDecoder("ascii").decode(r);
4241
- if (s + i > n.length)
4233
+ const h = new TextDecoder("ascii").decode(o);
4234
+ if (s + r > n.length)
4242
4235
  throw new Error("Truncated chunk data.");
4243
- const h = n.slice(s, s + i);
4244
- if (s += i, s + 4 > n.length)
4236
+ const f = n.slice(s, s + r);
4237
+ if (s += r, s + 4 > n.length)
4245
4238
  throw new Error("Truncated chunk CRC.");
4246
- const f = Qe(t, s);
4247
- if (s += 4, o === "CgBI") {
4239
+ const p = et(t, s);
4240
+ if (s += 4, h === "CgBI") {
4248
4241
  a = !0;
4249
4242
  continue;
4250
4243
  }
4251
- if (!Ts.includes(o)) {
4252
- if (o === "IHDR") {
4253
- if (i < 8)
4244
+ if (!Ts.includes(h)) {
4245
+ if (h === "IHDR") {
4246
+ if (r < 8)
4254
4247
  throw new Error("Invalid IHDR chunk length.");
4255
- const p = new DataView(h.buffer, h.byteOffset, h.byteLength);
4256
- x = Qe(p, 0), g = Qe(p, 4);
4248
+ const _ = new DataView(f.buffer, f.byteOffset, f.byteLength);
4249
+ g = et(_, 0), w = et(_, 4);
4257
4250
  }
4258
- if (o === "IDAT" && a) {
4259
- c = Ne(c, h);
4251
+ if (h === "IDAT" && a) {
4252
+ d = me(d, f);
4260
4253
  continue;
4261
4254
  }
4262
- if (o === "IEND" && a) {
4263
- if (c.length === 0)
4255
+ if (h === "IDAT" && !a) {
4256
+ c = c ? me(c, f) : f;
4257
+ continue;
4258
+ }
4259
+ if (h === "IEND" && a) {
4260
+ if (d.length === 0)
4264
4261
  throw new Error("No IDAT data found for CgBI PNG.");
4265
- let p;
4262
+ let _;
4266
4263
  try {
4267
- p = vs(c);
4268
- } catch (y) {
4269
- throw new Error(`Failed to inflate IDAT data: ${y}`);
4264
+ _ = vs(d);
4265
+ } catch (u) {
4266
+ throw new Error(`Failed to inflate IDAT data: ${u}`);
4270
4267
  }
4271
- const w = new Uint8Array(p.length);
4272
- let b = 0;
4273
- const E = 4;
4274
- for (let y = 0; y < g; y++) {
4275
- w[b] = p[b], b++;
4276
- for (let u = 0; u < x; u++)
4277
- w[b + 0] = p[b + 2], w[b + 1] = p[b + 1], w[b + 2] = p[b + 0], w[b + 3] = p[b + 3], b += E;
4268
+ const E = new Uint8Array(_.length);
4269
+ let y = 0;
4270
+ const m = 4;
4271
+ for (let u = 0; u < w; u++) {
4272
+ E[y] = _[y], y++;
4273
+ for (let I = 0; I < g; I++)
4274
+ E[y + 0] = _[y + 2], E[y + 1] = _[y + 1], E[y + 2] = _[y + 0], E[y + 3] = _[y + 3], y += m;
4278
4275
  }
4279
- let m;
4276
+ let A;
4280
4277
  try {
4281
- m = Es(w, { level: 9 });
4282
- } catch (y) {
4283
- throw new Error(`Failed to deflate IDAT data: ${y}`);
4278
+ A = Es(E, { level: 9 });
4279
+ } catch (u) {
4280
+ throw new Error(`Failed to deflate IDAT data: ${u}`);
4284
4281
  }
4285
- const F = new TextEncoder().encode("IDAT");
4286
- let k = Li(F);
4287
- k = Li(m, k);
4288
- const v = {
4282
+ const k = new TextEncoder().encode("IDAT");
4283
+ let v = Qe(k);
4284
+ v = Qe(A, v);
4285
+ const b = {
4289
4286
  type: "IDAT",
4290
- length: m.length,
4291
- data: m,
4292
- crc: k
4287
+ length: A.length,
4288
+ data: A,
4289
+ crc: v
4293
4290
  };
4294
- l.push(v);
4291
+ l.push(b);
4292
+ }
4293
+ if (h === "IEND" && !a && c && c.length > 0) {
4294
+ const E = new TextEncoder().encode("IDAT");
4295
+ let y = Qe(E);
4296
+ y = Qe(c, y), l.push({
4297
+ type: "IDAT",
4298
+ length: c.length,
4299
+ data: c,
4300
+ crc: y
4301
+ });
4295
4302
  }
4296
- o === "IEND" && !a && l.push({
4297
- type: "IDAT",
4298
- length: i,
4299
- data: h,
4300
- crc: f
4301
- }), o !== "IDAT" && o !== "IEND" && l.push({
4302
- type: o,
4303
- length: i,
4304
- data: h,
4305
- crc: f
4306
- }), o === "IEND" && l.push({
4303
+ h !== "IDAT" && h !== "IEND" && l.push({
4304
+ type: h,
4305
+ length: r,
4306
+ data: f,
4307
+ crc: p
4308
+ }), h === "IEND" && l.push({
4307
4309
  type: "IEND",
4308
4310
  length: 0,
4309
4311
  data: new Uint8Array(0),
4310
- crc: f
4312
+ crc: p
4311
4313
  });
4312
4314
  }
4313
4315
  }
4314
- let _ = d;
4315
- const I = new TextEncoder();
4316
- for (const i of l)
4317
- _ = Ne(_, Ri(i.length)), _ = Ne(_, I.encode(i.type)), i.length > 0 && (_ = Ne(_, i.data)), _ = Ne(_, Ri(i.crc));
4318
- return _;
4316
+ let T = x;
4317
+ const i = new TextEncoder();
4318
+ for (const r of l)
4319
+ T = me(T, Ri(r.length)), T = me(T, i.encode(r.type)), r.length > 0 && (T = me(T, r.data)), T = me(T, Ri(r.crc));
4320
+ return T;
4319
4321
  }
4320
4322
  class ms {
4321
4323
  constructor(n) {
@@ -4323,7 +4325,7 @@ class ms {
4323
4325
  }
4324
4326
  }
4325
4327
  const ks = 9783072e5, G = 100 * 1e3 * 1e3, As = 32768;
4326
- function Ot(e, n, t) {
4328
+ function Dt(e, n, t) {
4327
4329
  return new DataView(e, n, t);
4328
4330
  }
4329
4331
  function ae(e, n = 0) {
@@ -4332,8 +4334,8 @@ function ae(e, n = 0) {
4332
4334
  t <<= 8, t |= e[a] & 255;
4333
4335
  return t;
4334
4336
  }
4335
- function Nt(e, n) {
4336
- return Ot(e, n, 8).getUint32(4, !1);
4337
+ function Ut(e, n) {
4338
+ return Dt(e, n, 8).getUint32(4, !1);
4337
4339
  }
4338
4340
  function Ss(e) {
4339
4341
  const n = e.length;
@@ -4355,32 +4357,33 @@ function Ns(e) {
4355
4357
  }
4356
4358
  function Ci(e) {
4357
4359
  try {
4358
- return Us(e);
4360
+ const n = Us(e);
4361
+ return n && typeof n == "object" ? n : new Error("Invalid binary plist");
4359
4362
  } catch (n) {
4360
- return M(n);
4363
+ return B(n);
4361
4364
  }
4362
4365
  }
4363
4366
  function Us(e) {
4364
4367
  const n = new Uint8Array(e), t = n.slice(0, 6);
4365
4368
  if (new TextDecoder("utf8").decode(t) !== "bplist")
4366
4369
  throw new Error("Invalid binary plist. Expected 'bplist' at offset 0.");
4367
- const s = e.byteLength - 32, l = new DataView(e, s, 32), c = l.getUint8(6), d = l.getUint8(7), x = Nt(e, s + 8), g = Nt(e, s + 16), _ = Nt(e, s + 24);
4370
+ const s = e.byteLength - 32, l = new DataView(e, s, 32), d = l.getUint8(6), c = l.getUint8(7), x = Ut(e, s + 8), g = Ut(e, s + 16), w = Ut(e, s + 24);
4368
4371
  if (x > As)
4369
4372
  throw new Error("maxObjectCount exceeded");
4370
- const I = [];
4373
+ const T = [];
4371
4374
  for (let r = 0; r < x; r++) {
4372
- const o = n.slice(_ + r * c, _ + (r + 1) * c);
4373
- I[r] = ae(o, 0);
4375
+ const o = n.slice(w + r * d, w + (r + 1) * d);
4376
+ T[r] = ae(o, 0);
4374
4377
  }
4375
4378
  function i(r) {
4376
- const o = I[r], h = n[o], f = (h & 240) >> 4, p = h & 15;
4379
+ const o = T[r], h = n[o], f = (h & 240) >> 4, p = h & 15;
4377
4380
  switch (f) {
4378
4381
  case 0:
4379
- return w();
4382
+ return _();
4380
4383
  case 1:
4381
- return b();
4382
- case 8:
4383
4384
  return E();
4385
+ case 8:
4386
+ return y();
4384
4387
  case 2:
4385
4388
  return m();
4386
4389
  case 3:
@@ -4394,11 +4397,11 @@ function Us(e) {
4394
4397
  case 10:
4395
4398
  return v();
4396
4399
  case 13:
4397
- return y();
4400
+ return b();
4398
4401
  default:
4399
4402
  throw new Error("Unhandled type 0x" + f.toString(16));
4400
4403
  }
4401
- function w() {
4404
+ function _() {
4402
4405
  switch (p) {
4403
4406
  case 0:
4404
4407
  return null;
@@ -4412,21 +4415,21 @@ function Us(e) {
4412
4415
  throw new Error("Unhandled simple type 0x" + f.toString(16) + p.toString(16));
4413
4416
  }
4414
4417
  }
4415
- function b() {
4418
+ function E() {
4416
4419
  const u = Math.pow(2, p);
4417
4420
  if (u < G) {
4418
- const T = n.slice(o + 1, o + 1 + u);
4421
+ const I = n.slice(o + 1, o + 1 + u);
4419
4422
  if (u === 16) {
4420
- const S = Ns(T);
4423
+ const S = Ns(I);
4421
4424
  return BigInt("0x" + S);
4422
4425
  }
4423
- return T.reduce((S, N) => (S <<= 8, S |= N & 255, S), 0);
4426
+ return I.reduce((S, N) => (S <<= 8, S |= N & 255, S), 0);
4424
4427
  }
4425
4428
  throw new Error(
4426
4429
  "Too little heap space available! Wanted to read " + u + " bytes, but only " + G + " are available."
4427
4430
  );
4428
4431
  }
4429
- function E() {
4432
+ function y() {
4430
4433
  const u = p + 1;
4431
4434
  if (u < G)
4432
4435
  return new ms(ae(n.slice(o + 1, o + 1 + u)));
@@ -4437,11 +4440,11 @@ function Us(e) {
4437
4440
  function m() {
4438
4441
  const u = Math.pow(2, p);
4439
4442
  if (u < G) {
4440
- const T = Ot(e, o + 1, u);
4443
+ const I = Dt(e, o + 1, u);
4441
4444
  if (u === 4)
4442
- return T.getFloat32(0, !1);
4445
+ return I.getFloat32(0, !1);
4443
4446
  if (u === 8)
4444
- return T.getFloat64(0, !1);
4447
+ return I.getFloat64(0, !1);
4445
4448
  } else
4446
4449
  throw new Error(
4447
4450
  "Too little heap space available! Wanted to read " + u + " bytes, but only " + G + " are available."
@@ -4449,23 +4452,23 @@ function Us(e) {
4449
4452
  return 0;
4450
4453
  }
4451
4454
  function A() {
4452
- const T = Ot(e, o + 1, 8).getFloat64(0, !1);
4453
- return new Date(ks + 1e3 * T);
4455
+ const I = Dt(e, o + 1, 8).getFloat64(0, !1);
4456
+ return new Date(ks + 1e3 * I);
4454
4457
  }
4455
4458
  function F() {
4456
- let u = 1, T = p;
4459
+ let u = 1, I = p;
4457
4460
  if (p === 15) {
4458
4461
  const N = n[o + 1] & 15, U = Math.pow(2, N);
4459
- u = 2 + U, T = ae(n.slice(o + 2, o + 2 + U));
4462
+ u = 2 + U, I = ae(n.slice(o + 2, o + 2 + U));
4460
4463
  }
4461
- if (T < G)
4462
- return n.slice(o + u, o + u + T);
4464
+ if (I < G)
4465
+ return n.slice(o + u, o + u + I);
4463
4466
  throw new Error(
4464
- "Too little heap space available! Wanted to read " + T + " bytes, but only " + G + " are available."
4467
+ "Too little heap space available! Wanted to read " + I + " bytes, but only " + G + " are available."
4465
4468
  );
4466
4469
  }
4467
4470
  function k(u) {
4468
- let T = "utf8", S = p, N = 1;
4471
+ let I = "utf8", S = p, N = 1;
4469
4472
  if (p === 15) {
4470
4473
  const R = n[o + 1] & 15, O = Math.pow(2, R);
4471
4474
  N = 2 + O, S = ae(n.slice(o + 2, o + 2 + O));
@@ -4474,62 +4477,62 @@ function Us(e) {
4474
4477
  let U = n.slice(o + N, o + N + S);
4475
4478
  if (u) {
4476
4479
  const R = new Uint8Array(U);
4477
- U = Ss(R), T = "utf-16le";
4480
+ U = Ss(R), I = "utf-16le";
4478
4481
  } else
4479
- T = "utf8";
4480
- return new TextDecoder(T).decode(U);
4482
+ I = "utf8";
4483
+ return new TextDecoder(I).decode(U);
4481
4484
  }
4482
4485
  throw new Error(
4483
4486
  "Too little heap space available! Wanted to read " + S + " bytes, but only " + G + " are available."
4484
4487
  );
4485
4488
  }
4486
4489
  function v() {
4487
- let u = p, T = 1;
4490
+ let u = p, I = 1;
4488
4491
  if (p === 15) {
4489
4492
  const U = n[o + 1] & 15, R = Math.pow(2, U);
4490
- T = 2 + R, u = ae(n.slice(o + 2, o + 2 + R));
4493
+ I = 2 + R, u = ae(n.slice(o + 2, o + 2 + R));
4491
4494
  }
4492
- if (u * d > G)
4495
+ if (u * c > G)
4493
4496
  throw new Error("Too little heap space available!");
4494
4497
  const S = [];
4495
4498
  for (let N = 0; N < u; N++) {
4496
4499
  const U = ae(
4497
- n.slice(o + T + N * d, o + T + (N + 1) * d)
4500
+ n.slice(o + I + N * c, o + I + (N + 1) * c)
4498
4501
  );
4499
4502
  S[N] = i(U);
4500
4503
  }
4501
4504
  return S;
4502
4505
  }
4503
- function y() {
4504
- let u = p, T = 1;
4506
+ function b() {
4507
+ let u = p, I = 1;
4505
4508
  if (p === 15) {
4506
4509
  const U = n[o + 1] & 15, R = Math.pow(2, U);
4507
- T = 2 + R, u = ae(n.slice(o + 2, o + 2 + R));
4510
+ I = 2 + R, u = ae(n.slice(o + 2, o + 2 + R));
4508
4511
  }
4509
- if (u * 2 * d > G)
4512
+ if (u * 2 * c > G)
4510
4513
  throw new Error("Too little heap space available!");
4511
4514
  const S = {};
4512
4515
  for (let N = 0; N < u; N++) {
4513
4516
  const U = ae(
4514
- n.slice(o + T + N * d, o + T + (N + 1) * d)
4517
+ n.slice(o + I + N * c, o + I + (N + 1) * c)
4515
4518
  ), R = ae(
4516
4519
  n.slice(
4517
- o + T + u * d + N * d,
4518
- o + T + u * d + (N + 1) * d
4520
+ o + I + u * c + N * c,
4521
+ o + I + u * c + (N + 1) * c
4519
4522
  )
4520
- ), O = i(U), B = i(R);
4521
- S[String(O)] = B;
4523
+ ), O = i(U), z = i(R);
4524
+ S[String(O)] = z;
4522
4525
  }
4523
4526
  return S;
4524
4527
  }
4525
4528
  }
4526
4529
  return i(g);
4527
4530
  }
4528
- const Ls = Dt.loadAsync;
4531
+ const Ls = Bt.loadAsync;
4529
4532
  class Bs {
4530
4533
  zip;
4531
4534
  constructor(n) {
4532
- this.zip = Ls(n).catch(M);
4535
+ this.zip = Ls(n).catch(B);
4533
4536
  }
4534
4537
  /**
4535
4538
  * 解析应用 plist 信息
@@ -4538,35 +4541,35 @@ class Bs {
4538
4541
  const t = await this.zip;
4539
4542
  if (t instanceof Error)
4540
4543
  return new Error(`load IPA error: ${t.message}`);
4541
- const a = t.filter((I) => /payload\/[^/]+?.app\/info.plist$/i.test(I))[0];
4544
+ const a = t.filter((T) => /payload\/[^/]+?.app\/info.plist$/i.test(T))[0];
4542
4545
  if (!a)
4543
4546
  return new Error("not found Info.plist file in IPA");
4544
- const s = await a.async("arraybuffer").catch(M);
4547
+ const s = await a.async("arraybuffer").catch(B);
4545
4548
  if (s instanceof Error)
4546
4549
  return new Error(`read Info.plist file error: ${s.message}`);
4547
4550
  const l = Ci(s);
4548
4551
  if (l instanceof Error)
4549
4552
  return new Error(`parse Info.plist error: ${l.message}`);
4550
- const c = {
4551
- package: "CFBundleIdentifier" in l ? st(l.CFBundleIdentifier) : "",
4553
+ const d = {
4554
+ package: "CFBundleIdentifier" in l ? ot(l.CFBundleIdentifier) : "",
4552
4555
  versionCode: "CFBundleVersion" in l ? _r(l.CFBundleVersion) : 0,
4553
- versionName: "CFBundleShortVersionString" in l ? st(l.CFBundleShortVersionString) : "",
4556
+ versionName: "CFBundleShortVersionString" in l ? ot(l.CFBundleShortVersionString) : "",
4554
4557
  plist: l
4555
4558
  };
4556
4559
  if (n?.ignoreIcon)
4557
- return c;
4558
- const d = Rs(l);
4559
- if (c.iconPath = d, !c.iconPath)
4560
- return c;
4561
- const x = t.filter((I) => I.includes(d))[0];
4560
+ return d;
4561
+ const c = Rs(l);
4562
+ if (d.iconPath = c, !d.iconPath)
4563
+ return d;
4564
+ const x = t.filter((T) => T.includes(c))[0];
4562
4565
  if (!x)
4563
- return c;
4564
- c.iconPath = x.name;
4565
- const g = await x.async("uint8array").catch(M);
4566
+ return d;
4567
+ d.iconPath = x.name;
4568
+ const g = await x.async("uint8array").catch(B);
4566
4569
  if (g instanceof Error)
4567
- return c;
4568
- const _ = await Fs(g).catch(M);
4569
- return _ instanceof Error || (c.icon = Bt(wr(_))), c;
4570
+ return d;
4571
+ const w = await Fs(g).catch(B);
4572
+ return w instanceof Error || (d.icon = zt(wr(w))), d;
4570
4573
  }
4571
4574
  // async parseProvision() {
4572
4575
  // const zip = await this.zip;
@@ -4599,21 +4602,21 @@ class Bs {
4599
4602
  const a = n.replace(/\.framework/i, ""), s = new RegExp(`\\/frameworks\\/${a}\\.framework\\/[^/]+?\\.plist$`, "i"), l = t.file(s)[0];
4600
4603
  if (!l)
4601
4604
  return new Error(`not found ${n} plist file in IPA`);
4602
- const c = await l.async("arraybuffer").catch(M);
4603
- return c instanceof Error ? new Error(`read ${n} plist file error: ${c.message}`) : Ci(c);
4605
+ const d = await l.async("arraybuffer").catch(B);
4606
+ return d instanceof Error ? new Error(`read ${n} plist file error: ${d.message}`) : Ci(d);
4604
4607
  }
4605
4608
  /**
4606
4609
  * 读取指定文件的内容
4607
4610
  */
4608
4611
  async readFile(n, t) {
4609
4612
  const a = await this.zip;
4610
- return a instanceof Error ? new Error(`load file error: ${a.message}`) : await zt(a, n, t);
4613
+ return a instanceof Error ? new Error(`load file error: ${a.message}`) : await Mt(a, n, t);
4611
4614
  }
4612
4615
  }
4613
4616
  function Rs(e) {
4614
- return je(e, "CFBundleIcons") && je(e.CFBundleIcons, "CFBundlePrimaryIcon") && je(e.CFBundleIcons.CFBundlePrimaryIcon, "CFBundleIconFiles") && Array.isArray(e.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles) && e.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles.length ? st(
4617
+ return je(e, "CFBundleIcons") && je(e.CFBundleIcons, "CFBundlePrimaryIcon") && je(e.CFBundleIcons.CFBundlePrimaryIcon, "CFBundleIconFiles") && Array.isArray(e.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles) && e.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles.length ? ot(
4615
4618
  e.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles[e.CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles.length - 1]
4616
- ) : je(e, "CFBundleIconFiles") && Array.isArray(e.CFBundleIconFiles) && e.CFBundleIconFiles.length ? st(e.CFBundleIconFiles[e.CFBundleIconFiles.length - 1]) : "";
4619
+ ) : je(e, "CFBundleIconFiles") && Array.isArray(e.CFBundleIconFiles) && e.CFBundleIconFiles.length ? ot(e.CFBundleIconFiles[e.CFBundleIconFiles.length - 1]) : "";
4617
4620
  }
4618
4621
  export {
4619
4622
  Ds as AndroidAppParser,