@genome-spy/app 0.57.0 → 0.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2387 @@
1
+ import { b as Nt } from "./index-BftNdA0O.js";
2
+ import { g as Lt } from "./_commonjsHelpers-DjF3Plf2.js";
3
+ var Qe = {}, dt;
4
+ function Me() {
5
+ return dt || (dt = 1, function(x) {
6
+ var S = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
7
+ function L(g, c) {
8
+ return Object.prototype.hasOwnProperty.call(g, c);
9
+ }
10
+ x.assign = function(g) {
11
+ for (var c = Array.prototype.slice.call(arguments, 1); c.length; ) {
12
+ var s = c.shift();
13
+ if (s) {
14
+ if (typeof s != "object")
15
+ throw new TypeError(s + "must be non-object");
16
+ for (var o in s)
17
+ L(s, o) && (g[o] = s[o]);
18
+ }
19
+ }
20
+ return g;
21
+ }, x.shrinkBuf = function(g, c) {
22
+ return g.length === c ? g : g.subarray ? g.subarray(0, c) : (g.length = c, g);
23
+ };
24
+ var w = {
25
+ arraySet: function(g, c, s, o, D) {
26
+ if (c.subarray && g.subarray) {
27
+ g.set(c.subarray(s, s + o), D);
28
+ return;
29
+ }
30
+ for (var y = 0; y < o; y++)
31
+ g[D + y] = c[s + y];
32
+ },
33
+ // Join array of chunks to single array.
34
+ flattenChunks: function(g) {
35
+ var c, s, o, D, y, N;
36
+ for (o = 0, c = 0, s = g.length; c < s; c++)
37
+ o += g[c].length;
38
+ for (N = new Uint8Array(o), D = 0, c = 0, s = g.length; c < s; c++)
39
+ y = g[c], N.set(y, D), D += y.length;
40
+ return N;
41
+ }
42
+ }, P = {
43
+ arraySet: function(g, c, s, o, D) {
44
+ for (var y = 0; y < o; y++)
45
+ g[D + y] = c[s + y];
46
+ },
47
+ // Join array of chunks to single array.
48
+ flattenChunks: function(g) {
49
+ return [].concat.apply([], g);
50
+ }
51
+ };
52
+ x.setTyped = function(g) {
53
+ g ? (x.Buf8 = Uint8Array, x.Buf16 = Uint16Array, x.Buf32 = Int32Array, x.assign(x, w)) : (x.Buf8 = Array, x.Buf16 = Array, x.Buf32 = Array, x.assign(x, P));
54
+ }, x.setTyped(S);
55
+ }(Qe)), Qe;
56
+ }
57
+ var We = {}, Oe = {}, qe = {}, st;
58
+ function Dt() {
59
+ if (st) return qe;
60
+ st = 1;
61
+ var x = Me(), S = 4, L = 0, w = 1, P = 2;
62
+ function g(a) {
63
+ for (var b = a.length; --b >= 0; )
64
+ a[b] = 0;
65
+ }
66
+ var c = 0, s = 1, o = 2, D = 3, y = 258, N = 29, m = 256, T = m + 1 + N, C = 30, $ = 19, M = 2 * T + 1, A = 15, q = 16, I = 7, Y = 256, X = 16, K = 17, z = 18, H = (
67
+ /* extra bits for each length code */
68
+ [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]
69
+ ), v = (
70
+ /* extra bits for each distance code */
71
+ [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]
72
+ ), _ = (
73
+ /* extra bits for each bit length code */
74
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
75
+ ), r = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], k = 512, F = new Array((T + 2) * 2);
76
+ g(F);
77
+ var G = new Array(C * 2);
78
+ g(G);
79
+ var j = new Array(k);
80
+ g(j);
81
+ var Q = new Array(y - D + 1);
82
+ g(Q);
83
+ var B = new Array(N);
84
+ g(B);
85
+ var ae = new Array(C);
86
+ g(ae);
87
+ function V(a, b, E, Z, f) {
88
+ this.static_tree = a, this.extra_bits = b, this.extra_base = E, this.elems = Z, this.max_length = f, this.has_stree = a && a.length;
89
+ }
90
+ var re, oe, ee;
91
+ function te(a, b) {
92
+ this.dyn_tree = a, this.max_code = 0, this.stat_desc = b;
93
+ }
94
+ function se(a) {
95
+ return a < 256 ? j[a] : j[256 + (a >>> 7)];
96
+ }
97
+ function ge(a, b) {
98
+ a.pending_buf[a.pending++] = b & 255, a.pending_buf[a.pending++] = b >>> 8 & 255;
99
+ }
100
+ function he(a, b, E) {
101
+ a.bi_valid > q - E ? (a.bi_buf |= b << a.bi_valid & 65535, ge(a, a.bi_buf), a.bi_buf = b >> q - a.bi_valid, a.bi_valid += E - q) : (a.bi_buf |= b << a.bi_valid & 65535, a.bi_valid += E);
102
+ }
103
+ function _e(a, b, E) {
104
+ he(
105
+ a,
106
+ E[b * 2],
107
+ E[b * 2 + 1]
108
+ /*.Len*/
109
+ );
110
+ }
111
+ function fe(a, b) {
112
+ var E = 0;
113
+ do
114
+ E |= a & 1, a >>>= 1, E <<= 1;
115
+ while (--b > 0);
116
+ return E >>> 1;
117
+ }
118
+ function be(a) {
119
+ a.bi_valid === 16 ? (ge(a, a.bi_buf), a.bi_buf = 0, a.bi_valid = 0) : a.bi_valid >= 8 && (a.pending_buf[a.pending++] = a.bi_buf & 255, a.bi_buf >>= 8, a.bi_valid -= 8);
120
+ }
121
+ function ye(a, b) {
122
+ var E = b.dyn_tree, Z = b.max_code, f = b.stat_desc.static_tree, d = b.stat_desc.has_stree, t = b.stat_desc.extra_bits, p = b.stat_desc.extra_base, W = b.stat_desc.max_length, e, l, u, i, n, h, U = 0;
123
+ for (i = 0; i <= A; i++)
124
+ a.bl_count[i] = 0;
125
+ for (E[a.heap[a.heap_max] * 2 + 1] = 0, e = a.heap_max + 1; e < M; e++)
126
+ l = a.heap[e], i = E[E[l * 2 + 1] * 2 + 1] + 1, i > W && (i = W, U++), E[l * 2 + 1] = i, !(l > Z) && (a.bl_count[i]++, n = 0, l >= p && (n = t[l - p]), h = E[l * 2], a.opt_len += h * (i + n), d && (a.static_len += h * (f[l * 2 + 1] + n)));
127
+ if (U !== 0) {
128
+ do {
129
+ for (i = W - 1; a.bl_count[i] === 0; )
130
+ i--;
131
+ a.bl_count[i]--, a.bl_count[i + 1] += 2, a.bl_count[W]--, U -= 2;
132
+ } while (U > 0);
133
+ for (i = W; i !== 0; i--)
134
+ for (l = a.bl_count[i]; l !== 0; )
135
+ u = a.heap[--e], !(u > Z) && (E[u * 2 + 1] !== i && (a.opt_len += (i - E[u * 2 + 1]) * E[u * 2], E[u * 2 + 1] = i), l--);
136
+ }
137
+ }
138
+ function me(a, b, E) {
139
+ var Z = new Array(A + 1), f = 0, d, t;
140
+ for (d = 1; d <= A; d++)
141
+ Z[d] = f = f + E[d - 1] << 1;
142
+ for (t = 0; t <= b; t++) {
143
+ var p = a[t * 2 + 1];
144
+ p !== 0 && (a[t * 2] = fe(Z[p]++, p));
145
+ }
146
+ }
147
+ function le() {
148
+ var a, b, E, Z, f, d = new Array(A + 1);
149
+ for (E = 0, Z = 0; Z < N - 1; Z++)
150
+ for (B[Z] = E, a = 0; a < 1 << H[Z]; a++)
151
+ Q[E++] = Z;
152
+ for (Q[E - 1] = Z, f = 0, Z = 0; Z < 16; Z++)
153
+ for (ae[Z] = f, a = 0; a < 1 << v[Z]; a++)
154
+ j[f++] = Z;
155
+ for (f >>= 7; Z < C; Z++)
156
+ for (ae[Z] = f << 7, a = 0; a < 1 << v[Z] - 7; a++)
157
+ j[256 + f++] = Z;
158
+ for (b = 0; b <= A; b++)
159
+ d[b] = 0;
160
+ for (a = 0; a <= 143; )
161
+ F[a * 2 + 1] = 8, a++, d[8]++;
162
+ for (; a <= 255; )
163
+ F[a * 2 + 1] = 9, a++, d[9]++;
164
+ for (; a <= 279; )
165
+ F[a * 2 + 1] = 7, a++, d[7]++;
166
+ for (; a <= 287; )
167
+ F[a * 2 + 1] = 8, a++, d[8]++;
168
+ for (me(F, T + 1, d), a = 0; a < C; a++)
169
+ G[a * 2 + 1] = 5, G[a * 2] = fe(a, 5);
170
+ re = new V(F, H, m + 1, T, A), oe = new V(G, v, 0, C, A), ee = new V(new Array(0), _, 0, $, I);
171
+ }
172
+ function ke(a) {
173
+ var b;
174
+ for (b = 0; b < T; b++)
175
+ a.dyn_ltree[b * 2] = 0;
176
+ for (b = 0; b < C; b++)
177
+ a.dyn_dtree[b * 2] = 0;
178
+ for (b = 0; b < $; b++)
179
+ a.bl_tree[b * 2] = 0;
180
+ a.dyn_ltree[Y * 2] = 1, a.opt_len = a.static_len = 0, a.last_lit = a.matches = 0;
181
+ }
182
+ function He(a) {
183
+ a.bi_valid > 8 ? ge(a, a.bi_buf) : a.bi_valid > 0 && (a.pending_buf[a.pending++] = a.bi_buf), a.bi_buf = 0, a.bi_valid = 0;
184
+ }
185
+ function Fe(a, b, E, Z) {
186
+ He(a), ge(a, E), ge(a, ~E), x.arraySet(a.pending_buf, a.window, b, E, a.pending), a.pending += E;
187
+ }
188
+ function Se(a, b, E, Z) {
189
+ var f = b * 2, d = E * 2;
190
+ return a[f] < a[d] || a[f] === a[d] && Z[b] <= Z[E];
191
+ }
192
+ function ue(a, b, E) {
193
+ for (var Z = a.heap[E], f = E << 1; f <= a.heap_len && (f < a.heap_len && Se(b, a.heap[f + 1], a.heap[f], a.depth) && f++, !Se(b, Z, a.heap[f], a.depth)); )
194
+ a.heap[E] = a.heap[f], E = f, f <<= 1;
195
+ a.heap[E] = Z;
196
+ }
197
+ function J(a, b, E) {
198
+ var Z, f, d = 0, t, p;
199
+ if (a.last_lit !== 0)
200
+ do
201
+ Z = a.pending_buf[a.d_buf + d * 2] << 8 | a.pending_buf[a.d_buf + d * 2 + 1], f = a.pending_buf[a.l_buf + d], d++, Z === 0 ? _e(a, f, b) : (t = Q[f], _e(a, t + m + 1, b), p = H[t], p !== 0 && (f -= B[t], he(a, f, p)), Z--, t = se(Z), _e(a, t, E), p = v[t], p !== 0 && (Z -= ae[t], he(a, Z, p)));
202
+ while (d < a.last_lit);
203
+ _e(a, Y, b);
204
+ }
205
+ function Te(a, b) {
206
+ var E = b.dyn_tree, Z = b.stat_desc.static_tree, f = b.stat_desc.has_stree, d = b.stat_desc.elems, t, p, W = -1, e;
207
+ for (a.heap_len = 0, a.heap_max = M, t = 0; t < d; t++)
208
+ E[t * 2] !== 0 ? (a.heap[++a.heap_len] = W = t, a.depth[t] = 0) : E[t * 2 + 1] = 0;
209
+ for (; a.heap_len < 2; )
210
+ e = a.heap[++a.heap_len] = W < 2 ? ++W : 0, E[e * 2] = 1, a.depth[e] = 0, a.opt_len--, f && (a.static_len -= Z[e * 2 + 1]);
211
+ for (b.max_code = W, t = a.heap_len >> 1; t >= 1; t--)
212
+ ue(a, E, t);
213
+ e = d;
214
+ do
215
+ t = a.heap[
216
+ 1
217
+ /*SMALLEST*/
218
+ ], a.heap[
219
+ 1
220
+ /*SMALLEST*/
221
+ ] = a.heap[a.heap_len--], ue(
222
+ a,
223
+ E,
224
+ 1
225
+ /*SMALLEST*/
226
+ ), p = a.heap[
227
+ 1
228
+ /*SMALLEST*/
229
+ ], a.heap[--a.heap_max] = t, a.heap[--a.heap_max] = p, E[e * 2] = E[t * 2] + E[p * 2], a.depth[e] = (a.depth[t] >= a.depth[p] ? a.depth[t] : a.depth[p]) + 1, E[t * 2 + 1] = E[p * 2 + 1] = e, a.heap[
230
+ 1
231
+ /*SMALLEST*/
232
+ ] = e++, ue(
233
+ a,
234
+ E,
235
+ 1
236
+ /*SMALLEST*/
237
+ );
238
+ while (a.heap_len >= 2);
239
+ a.heap[--a.heap_max] = a.heap[
240
+ 1
241
+ /*SMALLEST*/
242
+ ], ye(a, b), me(E, W, a.bl_count);
243
+ }
244
+ function Ke(a, b, E) {
245
+ var Z, f = -1, d, t = b[0 * 2 + 1], p = 0, W = 7, e = 4;
246
+ for (t === 0 && (W = 138, e = 3), b[(E + 1) * 2 + 1] = 65535, Z = 0; Z <= E; Z++)
247
+ d = t, t = b[(Z + 1) * 2 + 1], !(++p < W && d === t) && (p < e ? a.bl_tree[d * 2] += p : d !== 0 ? (d !== f && a.bl_tree[d * 2]++, a.bl_tree[X * 2]++) : p <= 10 ? a.bl_tree[K * 2]++ : a.bl_tree[z * 2]++, p = 0, f = d, t === 0 ? (W = 138, e = 3) : d === t ? (W = 6, e = 3) : (W = 7, e = 4));
248
+ }
249
+ function Be(a, b, E) {
250
+ var Z, f = -1, d, t = b[0 * 2 + 1], p = 0, W = 7, e = 4;
251
+ for (t === 0 && (W = 138, e = 3), Z = 0; Z <= E; Z++)
252
+ if (d = t, t = b[(Z + 1) * 2 + 1], !(++p < W && d === t)) {
253
+ if (p < e)
254
+ do
255
+ _e(a, d, a.bl_tree);
256
+ while (--p !== 0);
257
+ else d !== 0 ? (d !== f && (_e(a, d, a.bl_tree), p--), _e(a, X, a.bl_tree), he(a, p - 3, 2)) : p <= 10 ? (_e(a, K, a.bl_tree), he(a, p - 3, 3)) : (_e(a, z, a.bl_tree), he(a, p - 11, 7));
258
+ p = 0, f = d, t === 0 ? (W = 138, e = 3) : d === t ? (W = 6, e = 3) : (W = 7, e = 4);
259
+ }
260
+ }
261
+ function ze(a) {
262
+ var b;
263
+ for (Ke(a, a.dyn_ltree, a.l_desc.max_code), Ke(a, a.dyn_dtree, a.d_desc.max_code), Te(a, a.bl_desc), b = $ - 1; b >= 3 && a.bl_tree[r[b] * 2 + 1] === 0; b--)
264
+ ;
265
+ return a.opt_len += 3 * (b + 1) + 5 + 5 + 4, b;
266
+ }
267
+ function Ye(a, b, E, Z) {
268
+ var f;
269
+ for (he(a, b - 257, 5), he(a, E - 1, 5), he(a, Z - 4, 4), f = 0; f < Z; f++)
270
+ he(a, a.bl_tree[r[f] * 2 + 1], 3);
271
+ Be(a, a.dyn_ltree, b - 1), Be(a, a.dyn_dtree, E - 1);
272
+ }
273
+ function Ce(a) {
274
+ var b = 4093624447, E;
275
+ for (E = 0; E <= 31; E++, b >>>= 1)
276
+ if (b & 1 && a.dyn_ltree[E * 2] !== 0)
277
+ return L;
278
+ if (a.dyn_ltree[9 * 2] !== 0 || a.dyn_ltree[10 * 2] !== 0 || a.dyn_ltree[13 * 2] !== 0)
279
+ return w;
280
+ for (E = 32; E < m; E++)
281
+ if (a.dyn_ltree[E * 2] !== 0)
282
+ return w;
283
+ return L;
284
+ }
285
+ var Re = !1;
286
+ function Xe(a) {
287
+ Re || (le(), Re = !0), a.l_desc = new te(a.dyn_ltree, re), a.d_desc = new te(a.dyn_dtree, oe), a.bl_desc = new te(a.bl_tree, ee), a.bi_buf = 0, a.bi_valid = 0, ke(a);
288
+ }
289
+ function Ue(a, b, E, Z) {
290
+ he(a, (c << 1) + (Z ? 1 : 0), 3), Fe(a, b, E);
291
+ }
292
+ function pe(a) {
293
+ he(a, s << 1, 3), _e(a, Y, F), be(a);
294
+ }
295
+ function Ie(a, b, E, Z) {
296
+ var f, d, t = 0;
297
+ a.level > 0 ? (a.strm.data_type === P && (a.strm.data_type = Ce(a)), Te(a, a.l_desc), Te(a, a.d_desc), t = ze(a), f = a.opt_len + 3 + 7 >>> 3, d = a.static_len + 3 + 7 >>> 3, d <= f && (f = d)) : f = d = E + 5, E + 4 <= f && b !== -1 ? Ue(a, b, E, Z) : a.strategy === S || d === f ? (he(a, (s << 1) + (Z ? 1 : 0), 3), J(a, F, G)) : (he(a, (o << 1) + (Z ? 1 : 0), 3), Ye(a, a.l_desc.max_code + 1, a.d_desc.max_code + 1, t + 1), J(a, a.dyn_ltree, a.dyn_dtree)), ke(a), Z && He(a);
298
+ }
299
+ function Ge(a, b, E) {
300
+ return a.pending_buf[a.d_buf + a.last_lit * 2] = b >>> 8 & 255, a.pending_buf[a.d_buf + a.last_lit * 2 + 1] = b & 255, a.pending_buf[a.l_buf + a.last_lit] = E & 255, a.last_lit++, b === 0 ? a.dyn_ltree[E * 2]++ : (a.matches++, b--, a.dyn_ltree[(Q[E] + m + 1) * 2]++, a.dyn_dtree[se(b) * 2]++), a.last_lit === a.lit_bufsize - 1;
301
+ }
302
+ return qe._tr_init = Xe, qe._tr_stored_block = Ue, qe._tr_flush_block = Ie, qe._tr_tally = Ge, qe._tr_align = pe, qe;
303
+ }
304
+ var et, ct;
305
+ function At() {
306
+ if (ct) return et;
307
+ ct = 1;
308
+ function x(S, L, w, P) {
309
+ for (var g = S & 65535 | 0, c = S >>> 16 & 65535 | 0, s = 0; w !== 0; ) {
310
+ s = w > 2e3 ? 2e3 : w, w -= s;
311
+ do
312
+ g = g + L[P++] | 0, c = c + g | 0;
313
+ while (--s);
314
+ g %= 65521, c %= 65521;
315
+ }
316
+ return g | c << 16 | 0;
317
+ }
318
+ return et = x, et;
319
+ }
320
+ var tt, vt;
321
+ function Rt() {
322
+ if (vt) return tt;
323
+ vt = 1;
324
+ function x() {
325
+ for (var w, P = [], g = 0; g < 256; g++) {
326
+ w = g;
327
+ for (var c = 0; c < 8; c++)
328
+ w = w & 1 ? 3988292384 ^ w >>> 1 : w >>> 1;
329
+ P[g] = w;
330
+ }
331
+ return P;
332
+ }
333
+ var S = x();
334
+ function L(w, P, g, c) {
335
+ var s = S, o = c + g;
336
+ w ^= -1;
337
+ for (var D = c; D < o; D++)
338
+ w = w >>> 8 ^ s[(w ^ P[D]) & 255];
339
+ return w ^ -1;
340
+ }
341
+ return tt = L, tt;
342
+ }
343
+ var it, gt;
344
+ function ut() {
345
+ return gt || (gt = 1, it = {
346
+ 2: "need dictionary",
347
+ /* Z_NEED_DICT 2 */
348
+ 1: "stream end",
349
+ /* Z_STREAM_END 1 */
350
+ 0: "",
351
+ /* Z_OK 0 */
352
+ "-1": "file error",
353
+ /* Z_ERRNO (-1) */
354
+ "-2": "stream error",
355
+ /* Z_STREAM_ERROR (-2) */
356
+ "-3": "data error",
357
+ /* Z_DATA_ERROR (-3) */
358
+ "-4": "insufficient memory",
359
+ /* Z_MEM_ERROR (-4) */
360
+ "-5": "buffer error",
361
+ /* Z_BUF_ERROR (-5) */
362
+ "-6": "incompatible version"
363
+ /* Z_VERSION_ERROR (-6) */
364
+ }), it;
365
+ }
366
+ var wt;
367
+ function Bt() {
368
+ if (wt) return Oe;
369
+ wt = 1;
370
+ var x = Me(), S = Dt(), L = At(), w = Rt(), P = ut(), g = 0, c = 1, s = 3, o = 4, D = 5, y = 0, N = 1, m = -2, T = -3, C = -5, $ = -1, M = 1, A = 2, q = 3, I = 4, Y = 0, X = 2, K = 8, z = 9, H = 15, v = 8, _ = 29, r = 256, k = r + 1 + _, F = 30, G = 19, j = 2 * k + 1, Q = 15, B = 3, ae = 258, V = ae + B + 1, re = 32, oe = 42, ee = 69, te = 73, se = 91, ge = 103, he = 113, _e = 666, fe = 1, be = 2, ye = 3, me = 4, le = 3;
371
+ function ke(e, l) {
372
+ return e.msg = P[l], l;
373
+ }
374
+ function He(e) {
375
+ return (e << 1) - (e > 4 ? 9 : 0);
376
+ }
377
+ function Fe(e) {
378
+ for (var l = e.length; --l >= 0; )
379
+ e[l] = 0;
380
+ }
381
+ function Se(e) {
382
+ var l = e.state, u = l.pending;
383
+ u > e.avail_out && (u = e.avail_out), u !== 0 && (x.arraySet(e.output, l.pending_buf, l.pending_out, u, e.next_out), e.next_out += u, l.pending_out += u, e.total_out += u, e.avail_out -= u, l.pending -= u, l.pending === 0 && (l.pending_out = 0));
384
+ }
385
+ function ue(e, l) {
386
+ S._tr_flush_block(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, l), e.block_start = e.strstart, Se(e.strm);
387
+ }
388
+ function J(e, l) {
389
+ e.pending_buf[e.pending++] = l;
390
+ }
391
+ function Te(e, l) {
392
+ e.pending_buf[e.pending++] = l >>> 8 & 255, e.pending_buf[e.pending++] = l & 255;
393
+ }
394
+ function Ke(e, l, u, i) {
395
+ var n = e.avail_in;
396
+ return n > i && (n = i), n === 0 ? 0 : (e.avail_in -= n, x.arraySet(l, e.input, e.next_in, n, u), e.state.wrap === 1 ? e.adler = L(e.adler, l, n, u) : e.state.wrap === 2 && (e.adler = w(e.adler, l, n, u)), e.next_in += n, e.total_in += n, n);
397
+ }
398
+ function Be(e, l) {
399
+ var u = e.max_chain_length, i = e.strstart, n, h, U = e.prev_length, R = e.nice_match, O = e.strstart > e.w_size - V ? e.strstart - (e.w_size - V) : 0, ie = e.window, Le = e.w_mask, de = e.prev, ne = e.strstart + ae, ve = ie[i + U - 1], xe = ie[i + U];
400
+ e.prev_length >= e.good_match && (u >>= 2), R > e.lookahead && (R = e.lookahead);
401
+ do
402
+ if (n = l, !(ie[n + U] !== xe || ie[n + U - 1] !== ve || ie[n] !== ie[i] || ie[++n] !== ie[i + 1])) {
403
+ i += 2, n++;
404
+ do
405
+ ;
406
+ while (ie[++i] === ie[++n] && ie[++i] === ie[++n] && ie[++i] === ie[++n] && ie[++i] === ie[++n] && ie[++i] === ie[++n] && ie[++i] === ie[++n] && ie[++i] === ie[++n] && ie[++i] === ie[++n] && i < ne);
407
+ if (h = ae - (ne - i), i = ne - ae, h > U) {
408
+ if (e.match_start = l, U = h, h >= R)
409
+ break;
410
+ ve = ie[i + U - 1], xe = ie[i + U];
411
+ }
412
+ }
413
+ while ((l = de[l & Le]) > O && --u !== 0);
414
+ return U <= e.lookahead ? U : e.lookahead;
415
+ }
416
+ function ze(e) {
417
+ var l = e.w_size, u, i, n, h, U;
418
+ do {
419
+ if (h = e.window_size - e.lookahead - e.strstart, e.strstart >= l + (l - V)) {
420
+ x.arraySet(e.window, e.window, l, l, 0), e.match_start -= l, e.strstart -= l, e.block_start -= l, i = e.hash_size, u = i;
421
+ do
422
+ n = e.head[--u], e.head[u] = n >= l ? n - l : 0;
423
+ while (--i);
424
+ i = l, u = i;
425
+ do
426
+ n = e.prev[--u], e.prev[u] = n >= l ? n - l : 0;
427
+ while (--i);
428
+ h += l;
429
+ }
430
+ if (e.strm.avail_in === 0)
431
+ break;
432
+ if (i = Ke(e.strm, e.window, e.strstart + e.lookahead, h), e.lookahead += i, e.lookahead + e.insert >= B)
433
+ for (U = e.strstart - e.insert, e.ins_h = e.window[U], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[U + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[U + B - 1]) & e.hash_mask, e.prev[U & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = U, U++, e.insert--, !(e.lookahead + e.insert < B)); )
434
+ ;
435
+ } while (e.lookahead < V && e.strm.avail_in !== 0);
436
+ }
437
+ function Ye(e, l) {
438
+ var u = 65535;
439
+ for (u > e.pending_buf_size - 5 && (u = e.pending_buf_size - 5); ; ) {
440
+ if (e.lookahead <= 1) {
441
+ if (ze(e), e.lookahead === 0 && l === g)
442
+ return fe;
443
+ if (e.lookahead === 0)
444
+ break;
445
+ }
446
+ e.strstart += e.lookahead, e.lookahead = 0;
447
+ var i = e.block_start + u;
448
+ if ((e.strstart === 0 || e.strstart >= i) && (e.lookahead = e.strstart - i, e.strstart = i, ue(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - V && (ue(e, !1), e.strm.avail_out === 0))
449
+ return fe;
450
+ }
451
+ return e.insert = 0, l === o ? (ue(e, !0), e.strm.avail_out === 0 ? ye : me) : (e.strstart > e.block_start && (ue(e, !1), e.strm.avail_out === 0), fe);
452
+ }
453
+ function Ce(e, l) {
454
+ for (var u, i; ; ) {
455
+ if (e.lookahead < V) {
456
+ if (ze(e), e.lookahead < V && l === g)
457
+ return fe;
458
+ if (e.lookahead === 0)
459
+ break;
460
+ }
461
+ if (u = 0, e.lookahead >= B && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + B - 1]) & e.hash_mask, u = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), u !== 0 && e.strstart - u <= e.w_size - V && (e.match_length = Be(e, u)), e.match_length >= B)
462
+ if (i = S._tr_tally(e, e.strstart - e.match_start, e.match_length - B), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= B) {
463
+ e.match_length--;
464
+ do
465
+ e.strstart++, e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + B - 1]) & e.hash_mask, u = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
466
+ while (--e.match_length !== 0);
467
+ e.strstart++;
468
+ } else
469
+ e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
470
+ else
471
+ i = S._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
472
+ if (i && (ue(e, !1), e.strm.avail_out === 0))
473
+ return fe;
474
+ }
475
+ return e.insert = e.strstart < B - 1 ? e.strstart : B - 1, l === o ? (ue(e, !0), e.strm.avail_out === 0 ? ye : me) : e.last_lit && (ue(e, !1), e.strm.avail_out === 0) ? fe : be;
476
+ }
477
+ function Re(e, l) {
478
+ for (var u, i, n; ; ) {
479
+ if (e.lookahead < V) {
480
+ if (ze(e), e.lookahead < V && l === g)
481
+ return fe;
482
+ if (e.lookahead === 0)
483
+ break;
484
+ }
485
+ if (u = 0, e.lookahead >= B && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + B - 1]) & e.hash_mask, u = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = B - 1, u !== 0 && e.prev_length < e.max_lazy_match && e.strstart - u <= e.w_size - V && (e.match_length = Be(e, u), e.match_length <= 5 && (e.strategy === M || e.match_length === B && e.strstart - e.match_start > 4096) && (e.match_length = B - 1)), e.prev_length >= B && e.match_length <= e.prev_length) {
486
+ n = e.strstart + e.lookahead - B, i = S._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - B), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
487
+ do
488
+ ++e.strstart <= n && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + B - 1]) & e.hash_mask, u = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
489
+ while (--e.prev_length !== 0);
490
+ if (e.match_available = 0, e.match_length = B - 1, e.strstart++, i && (ue(e, !1), e.strm.avail_out === 0))
491
+ return fe;
492
+ } else if (e.match_available) {
493
+ if (i = S._tr_tally(e, 0, e.window[e.strstart - 1]), i && ue(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
494
+ return fe;
495
+ } else
496
+ e.match_available = 1, e.strstart++, e.lookahead--;
497
+ }
498
+ return e.match_available && (i = S._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < B - 1 ? e.strstart : B - 1, l === o ? (ue(e, !0), e.strm.avail_out === 0 ? ye : me) : e.last_lit && (ue(e, !1), e.strm.avail_out === 0) ? fe : be;
499
+ }
500
+ function Xe(e, l) {
501
+ for (var u, i, n, h, U = e.window; ; ) {
502
+ if (e.lookahead <= ae) {
503
+ if (ze(e), e.lookahead <= ae && l === g)
504
+ return fe;
505
+ if (e.lookahead === 0)
506
+ break;
507
+ }
508
+ if (e.match_length = 0, e.lookahead >= B && e.strstart > 0 && (n = e.strstart - 1, i = U[n], i === U[++n] && i === U[++n] && i === U[++n])) {
509
+ h = e.strstart + ae;
510
+ do
511
+ ;
512
+ while (i === U[++n] && i === U[++n] && i === U[++n] && i === U[++n] && i === U[++n] && i === U[++n] && i === U[++n] && i === U[++n] && n < h);
513
+ e.match_length = ae - (h - n), e.match_length > e.lookahead && (e.match_length = e.lookahead);
514
+ }
515
+ if (e.match_length >= B ? (u = S._tr_tally(e, 1, e.match_length - B), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (u = S._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), u && (ue(e, !1), e.strm.avail_out === 0))
516
+ return fe;
517
+ }
518
+ return e.insert = 0, l === o ? (ue(e, !0), e.strm.avail_out === 0 ? ye : me) : e.last_lit && (ue(e, !1), e.strm.avail_out === 0) ? fe : be;
519
+ }
520
+ function Ue(e, l) {
521
+ for (var u; ; ) {
522
+ if (e.lookahead === 0 && (ze(e), e.lookahead === 0)) {
523
+ if (l === g)
524
+ return fe;
525
+ break;
526
+ }
527
+ if (e.match_length = 0, u = S._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, u && (ue(e, !1), e.strm.avail_out === 0))
528
+ return fe;
529
+ }
530
+ return e.insert = 0, l === o ? (ue(e, !0), e.strm.avail_out === 0 ? ye : me) : e.last_lit && (ue(e, !1), e.strm.avail_out === 0) ? fe : be;
531
+ }
532
+ function pe(e, l, u, i, n) {
533
+ this.good_length = e, this.max_lazy = l, this.nice_length = u, this.max_chain = i, this.func = n;
534
+ }
535
+ var Ie;
536
+ Ie = [
537
+ /* good lazy nice chain */
538
+ new pe(0, 0, 0, 0, Ye),
539
+ /* 0 store only */
540
+ new pe(4, 4, 8, 4, Ce),
541
+ /* 1 max speed, no lazy matches */
542
+ new pe(4, 5, 16, 8, Ce),
543
+ /* 2 */
544
+ new pe(4, 6, 32, 32, Ce),
545
+ /* 3 */
546
+ new pe(4, 4, 16, 16, Re),
547
+ /* 4 lazy matches */
548
+ new pe(8, 16, 32, 32, Re),
549
+ /* 5 */
550
+ new pe(8, 16, 128, 128, Re),
551
+ /* 6 */
552
+ new pe(8, 32, 128, 256, Re),
553
+ /* 7 */
554
+ new pe(32, 128, 258, 1024, Re),
555
+ /* 8 */
556
+ new pe(32, 258, 258, 4096, Re)
557
+ /* 9 max compression */
558
+ ];
559
+ function Ge(e) {
560
+ e.window_size = 2 * e.w_size, Fe(e.head), e.max_lazy_match = Ie[e.level].max_lazy, e.good_match = Ie[e.level].good_length, e.nice_match = Ie[e.level].nice_length, e.max_chain_length = Ie[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = B - 1, e.match_available = 0, e.ins_h = 0;
561
+ }
562
+ function a() {
563
+ 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 = K, 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 x.Buf16(j * 2), this.dyn_dtree = new x.Buf16((2 * F + 1) * 2), this.bl_tree = new x.Buf16((2 * G + 1) * 2), Fe(this.dyn_ltree), Fe(this.dyn_dtree), Fe(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new x.Buf16(Q + 1), this.heap = new x.Buf16(2 * k + 1), Fe(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new x.Buf16(2 * k + 1), Fe(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;
564
+ }
565
+ function b(e) {
566
+ var l;
567
+ return !e || !e.state ? ke(e, m) : (e.total_in = e.total_out = 0, e.data_type = X, l = e.state, l.pending = 0, l.pending_out = 0, l.wrap < 0 && (l.wrap = -l.wrap), l.status = l.wrap ? oe : he, e.adler = l.wrap === 2 ? 0 : 1, l.last_flush = g, S._tr_init(l), y);
568
+ }
569
+ function E(e) {
570
+ var l = b(e);
571
+ return l === y && Ge(e.state), l;
572
+ }
573
+ function Z(e, l) {
574
+ return !e || !e.state || e.state.wrap !== 2 ? m : (e.state.gzhead = l, y);
575
+ }
576
+ function f(e, l, u, i, n, h) {
577
+ if (!e)
578
+ return m;
579
+ var U = 1;
580
+ if (l === $ && (l = 6), i < 0 ? (U = 0, i = -i) : i > 15 && (U = 2, i -= 16), n < 1 || n > z || u !== K || i < 8 || i > 15 || l < 0 || l > 9 || h < 0 || h > I)
581
+ return ke(e, m);
582
+ i === 8 && (i = 9);
583
+ var R = new a();
584
+ return e.state = R, R.strm = e, R.wrap = U, R.gzhead = null, R.w_bits = i, R.w_size = 1 << R.w_bits, R.w_mask = R.w_size - 1, R.hash_bits = n + 7, R.hash_size = 1 << R.hash_bits, R.hash_mask = R.hash_size - 1, R.hash_shift = ~~((R.hash_bits + B - 1) / B), R.window = new x.Buf8(R.w_size * 2), R.head = new x.Buf16(R.hash_size), R.prev = new x.Buf16(R.w_size), R.lit_bufsize = 1 << n + 6, R.pending_buf_size = R.lit_bufsize * 4, R.pending_buf = new x.Buf8(R.pending_buf_size), R.d_buf = 1 * R.lit_bufsize, R.l_buf = 3 * R.lit_bufsize, R.level = l, R.strategy = h, R.method = u, E(e);
585
+ }
586
+ function d(e, l) {
587
+ return f(e, l, K, H, v, Y);
588
+ }
589
+ function t(e, l) {
590
+ var u, i, n, h;
591
+ if (!e || !e.state || l > D || l < 0)
592
+ return e ? ke(e, m) : m;
593
+ if (i = e.state, !e.output || !e.input && e.avail_in !== 0 || i.status === _e && l !== o)
594
+ return ke(e, e.avail_out === 0 ? C : m);
595
+ if (i.strm = e, u = i.last_flush, i.last_flush = l, i.status === oe)
596
+ if (i.wrap === 2)
597
+ e.adler = 0, J(i, 31), J(i, 139), J(i, 8), i.gzhead ? (J(
598
+ i,
599
+ (i.gzhead.text ? 1 : 0) + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)
600
+ ), J(i, i.gzhead.time & 255), J(i, i.gzhead.time >> 8 & 255), J(i, i.gzhead.time >> 16 & 255), J(i, i.gzhead.time >> 24 & 255), J(i, i.level === 9 ? 2 : i.strategy >= A || i.level < 2 ? 4 : 0), J(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (J(i, i.gzhead.extra.length & 255), J(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = w(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = ee) : (J(i, 0), J(i, 0), J(i, 0), J(i, 0), J(i, 0), J(i, i.level === 9 ? 2 : i.strategy >= A || i.level < 2 ? 4 : 0), J(i, le), i.status = he);
601
+ else {
602
+ var U = K + (i.w_bits - 8 << 4) << 8, R = -1;
603
+ i.strategy >= A || i.level < 2 ? R = 0 : i.level < 6 ? R = 1 : i.level === 6 ? R = 2 : R = 3, U |= R << 6, i.strstart !== 0 && (U |= re), U += 31 - U % 31, i.status = he, Te(i, U), i.strstart !== 0 && (Te(i, e.adler >>> 16), Te(i, e.adler & 65535)), e.adler = 1;
604
+ }
605
+ if (i.status === ee)
606
+ if (i.gzhead.extra) {
607
+ for (n = i.pending; i.gzindex < (i.gzhead.extra.length & 65535) && !(i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > n && (e.adler = w(e.adler, i.pending_buf, i.pending - n, n)), Se(e), n = i.pending, i.pending === i.pending_buf_size)); )
608
+ J(i, i.gzhead.extra[i.gzindex] & 255), i.gzindex++;
609
+ i.gzhead.hcrc && i.pending > n && (e.adler = w(e.adler, i.pending_buf, i.pending - n, n)), i.gzindex === i.gzhead.extra.length && (i.gzindex = 0, i.status = te);
610
+ } else
611
+ i.status = te;
612
+ if (i.status === te)
613
+ if (i.gzhead.name) {
614
+ n = i.pending;
615
+ do {
616
+ if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > n && (e.adler = w(e.adler, i.pending_buf, i.pending - n, n)), Se(e), n = i.pending, i.pending === i.pending_buf_size)) {
617
+ h = 1;
618
+ break;
619
+ }
620
+ i.gzindex < i.gzhead.name.length ? h = i.gzhead.name.charCodeAt(i.gzindex++) & 255 : h = 0, J(i, h);
621
+ } while (h !== 0);
622
+ i.gzhead.hcrc && i.pending > n && (e.adler = w(e.adler, i.pending_buf, i.pending - n, n)), h === 0 && (i.gzindex = 0, i.status = se);
623
+ } else
624
+ i.status = se;
625
+ if (i.status === se)
626
+ if (i.gzhead.comment) {
627
+ n = i.pending;
628
+ do {
629
+ if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > n && (e.adler = w(e.adler, i.pending_buf, i.pending - n, n)), Se(e), n = i.pending, i.pending === i.pending_buf_size)) {
630
+ h = 1;
631
+ break;
632
+ }
633
+ i.gzindex < i.gzhead.comment.length ? h = i.gzhead.comment.charCodeAt(i.gzindex++) & 255 : h = 0, J(i, h);
634
+ } while (h !== 0);
635
+ i.gzhead.hcrc && i.pending > n && (e.adler = w(e.adler, i.pending_buf, i.pending - n, n)), h === 0 && (i.status = ge);
636
+ } else
637
+ i.status = ge;
638
+ if (i.status === ge && (i.gzhead.hcrc ? (i.pending + 2 > i.pending_buf_size && Se(e), i.pending + 2 <= i.pending_buf_size && (J(i, e.adler & 255), J(i, e.adler >> 8 & 255), e.adler = 0, i.status = he)) : i.status = he), i.pending !== 0) {
639
+ if (Se(e), e.avail_out === 0)
640
+ return i.last_flush = -1, y;
641
+ } else if (e.avail_in === 0 && He(l) <= He(u) && l !== o)
642
+ return ke(e, C);
643
+ if (i.status === _e && e.avail_in !== 0)
644
+ return ke(e, C);
645
+ if (e.avail_in !== 0 || i.lookahead !== 0 || l !== g && i.status !== _e) {
646
+ var O = i.strategy === A ? Ue(i, l) : i.strategy === q ? Xe(i, l) : Ie[i.level].func(i, l);
647
+ if ((O === ye || O === me) && (i.status = _e), O === fe || O === ye)
648
+ return e.avail_out === 0 && (i.last_flush = -1), y;
649
+ if (O === be && (l === c ? S._tr_align(i) : l !== D && (S._tr_stored_block(i, 0, 0, !1), l === s && (Fe(i.head), i.lookahead === 0 && (i.strstart = 0, i.block_start = 0, i.insert = 0))), Se(e), e.avail_out === 0))
650
+ return i.last_flush = -1, y;
651
+ }
652
+ return l !== o ? y : i.wrap <= 0 ? N : (i.wrap === 2 ? (J(i, e.adler & 255), J(i, e.adler >> 8 & 255), J(i, e.adler >> 16 & 255), J(i, e.adler >> 24 & 255), J(i, e.total_in & 255), J(i, e.total_in >> 8 & 255), J(i, e.total_in >> 16 & 255), J(i, e.total_in >> 24 & 255)) : (Te(i, e.adler >>> 16), Te(i, e.adler & 65535)), Se(e), i.wrap > 0 && (i.wrap = -i.wrap), i.pending !== 0 ? y : N);
653
+ }
654
+ function p(e) {
655
+ var l;
656
+ return !e || !e.state ? m : (l = e.state.status, l !== oe && l !== ee && l !== te && l !== se && l !== ge && l !== he && l !== _e ? ke(e, m) : (e.state = null, l === he ? ke(e, T) : y));
657
+ }
658
+ function W(e, l) {
659
+ var u = l.length, i, n, h, U, R, O, ie, Le;
660
+ if (!e || !e.state || (i = e.state, U = i.wrap, U === 2 || U === 1 && i.status !== oe || i.lookahead))
661
+ return m;
662
+ for (U === 1 && (e.adler = L(e.adler, l, u, 0)), i.wrap = 0, u >= i.w_size && (U === 0 && (Fe(i.head), i.strstart = 0, i.block_start = 0, i.insert = 0), Le = new x.Buf8(i.w_size), x.arraySet(Le, l, u - i.w_size, i.w_size, 0), l = Le, u = i.w_size), R = e.avail_in, O = e.next_in, ie = e.input, e.avail_in = u, e.next_in = 0, e.input = l, ze(i); i.lookahead >= B; ) {
663
+ n = i.strstart, h = i.lookahead - (B - 1);
664
+ do
665
+ i.ins_h = (i.ins_h << i.hash_shift ^ i.window[n + B - 1]) & i.hash_mask, i.prev[n & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = n, n++;
666
+ while (--h);
667
+ i.strstart = n, i.lookahead = B - 1, ze(i);
668
+ }
669
+ return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = B - 1, i.match_available = 0, e.next_in = O, e.input = ie, e.avail_in = R, i.wrap = U, y;
670
+ }
671
+ return Oe.deflateInit = d, Oe.deflateInit2 = f, Oe.deflateReset = E, Oe.deflateResetKeep = b, Oe.deflateSetHeader = Z, Oe.deflate = t, Oe.deflateEnd = p, Oe.deflateSetDictionary = W, Oe.deflateInfo = "pako deflate (from Nodeca project)", Oe;
672
+ }
673
+ var Pe = {}, bt;
674
+ function Ot() {
675
+ if (bt) return Pe;
676
+ bt = 1;
677
+ var x = Me(), S = !0, L = !0;
678
+ try {
679
+ String.fromCharCode.apply(null, [0]);
680
+ } catch {
681
+ S = !1;
682
+ }
683
+ try {
684
+ String.fromCharCode.apply(null, new Uint8Array(1));
685
+ } catch {
686
+ L = !1;
687
+ }
688
+ for (var w = new x.Buf8(256), P = 0; P < 256; P++)
689
+ w[P] = P >= 252 ? 6 : P >= 248 ? 5 : P >= 240 ? 4 : P >= 224 ? 3 : P >= 192 ? 2 : 1;
690
+ w[254] = w[254] = 1, Pe.string2buf = function(c) {
691
+ var s, o, D, y, N, m = c.length, T = 0;
692
+ for (y = 0; y < m; y++)
693
+ o = c.charCodeAt(y), (o & 64512) === 55296 && y + 1 < m && (D = c.charCodeAt(y + 1), (D & 64512) === 56320 && (o = 65536 + (o - 55296 << 10) + (D - 56320), y++)), T += o < 128 ? 1 : o < 2048 ? 2 : o < 65536 ? 3 : 4;
694
+ for (s = new x.Buf8(T), N = 0, y = 0; N < T; y++)
695
+ o = c.charCodeAt(y), (o & 64512) === 55296 && y + 1 < m && (D = c.charCodeAt(y + 1), (D & 64512) === 56320 && (o = 65536 + (o - 55296 << 10) + (D - 56320), y++)), o < 128 ? s[N++] = o : o < 2048 ? (s[N++] = 192 | o >>> 6, s[N++] = 128 | o & 63) : o < 65536 ? (s[N++] = 224 | o >>> 12, s[N++] = 128 | o >>> 6 & 63, s[N++] = 128 | o & 63) : (s[N++] = 240 | o >>> 18, s[N++] = 128 | o >>> 12 & 63, s[N++] = 128 | o >>> 6 & 63, s[N++] = 128 | o & 63);
696
+ return s;
697
+ };
698
+ function g(c, s) {
699
+ if (s < 65534 && (c.subarray && L || !c.subarray && S))
700
+ return String.fromCharCode.apply(null, x.shrinkBuf(c, s));
701
+ for (var o = "", D = 0; D < s; D++)
702
+ o += String.fromCharCode(c[D]);
703
+ return o;
704
+ }
705
+ return Pe.buf2binstring = function(c) {
706
+ return g(c, c.length);
707
+ }, Pe.binstring2buf = function(c) {
708
+ for (var s = new x.Buf8(c.length), o = 0, D = s.length; o < D; o++)
709
+ s[o] = c.charCodeAt(o);
710
+ return s;
711
+ }, Pe.buf2string = function(c, s) {
712
+ var o, D, y, N, m = s || c.length, T = new Array(m * 2);
713
+ for (D = 0, o = 0; o < m; ) {
714
+ if (y = c[o++], y < 128) {
715
+ T[D++] = y;
716
+ continue;
717
+ }
718
+ if (N = w[y], N > 4) {
719
+ T[D++] = 65533, o += N - 1;
720
+ continue;
721
+ }
722
+ for (y &= N === 2 ? 31 : N === 3 ? 15 : 7; N > 1 && o < m; )
723
+ y = y << 6 | c[o++] & 63, N--;
724
+ if (N > 1) {
725
+ T[D++] = 65533;
726
+ continue;
727
+ }
728
+ y < 65536 ? T[D++] = y : (y -= 65536, T[D++] = 55296 | y >> 10 & 1023, T[D++] = 56320 | y & 1023);
729
+ }
730
+ return g(T, D);
731
+ }, Pe.utf8border = function(c, s) {
732
+ var o;
733
+ for (s = s || c.length, s > c.length && (s = c.length), o = s - 1; o >= 0 && (c[o] & 192) === 128; )
734
+ o--;
735
+ return o < 0 || o === 0 ? s : o + w[c[o]] > s ? o : s;
736
+ }, Pe;
737
+ }
738
+ var at, pt;
739
+ function It() {
740
+ if (pt) return at;
741
+ pt = 1;
742
+ function x() {
743
+ this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
744
+ }
745
+ return at = x, at;
746
+ }
747
+ var xt;
748
+ function Ct() {
749
+ if (xt) return We;
750
+ xt = 1;
751
+ var x = Bt(), S = Me(), L = Ot(), w = ut(), P = It(), g = Object.prototype.toString, c = 0, s = 4, o = 0, D = 1, y = 2, N = -1, m = 0, T = 8;
752
+ function C(q) {
753
+ if (!(this instanceof C)) return new C(q);
754
+ this.options = S.assign({
755
+ level: N,
756
+ method: T,
757
+ chunkSize: 16384,
758
+ windowBits: 15,
759
+ memLevel: 8,
760
+ strategy: m,
761
+ to: ""
762
+ }, q || {});
763
+ var I = this.options;
764
+ I.raw && I.windowBits > 0 ? I.windowBits = -I.windowBits : I.gzip && I.windowBits > 0 && I.windowBits < 16 && (I.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new P(), this.strm.avail_out = 0;
765
+ var Y = x.deflateInit2(
766
+ this.strm,
767
+ I.level,
768
+ I.method,
769
+ I.windowBits,
770
+ I.memLevel,
771
+ I.strategy
772
+ );
773
+ if (Y !== o)
774
+ throw new Error(w[Y]);
775
+ if (I.header && x.deflateSetHeader(this.strm, I.header), I.dictionary) {
776
+ var X;
777
+ if (typeof I.dictionary == "string" ? X = L.string2buf(I.dictionary) : g.call(I.dictionary) === "[object ArrayBuffer]" ? X = new Uint8Array(I.dictionary) : X = I.dictionary, Y = x.deflateSetDictionary(this.strm, X), Y !== o)
778
+ throw new Error(w[Y]);
779
+ this._dict_set = !0;
780
+ }
781
+ }
782
+ C.prototype.push = function(q, I) {
783
+ var Y = this.strm, X = this.options.chunkSize, K, z;
784
+ if (this.ended)
785
+ return !1;
786
+ z = I === ~~I ? I : I === !0 ? s : c, typeof q == "string" ? Y.input = L.string2buf(q) : g.call(q) === "[object ArrayBuffer]" ? Y.input = new Uint8Array(q) : Y.input = q, Y.next_in = 0, Y.avail_in = Y.input.length;
787
+ do {
788
+ if (Y.avail_out === 0 && (Y.output = new S.Buf8(X), Y.next_out = 0, Y.avail_out = X), K = x.deflate(Y, z), K !== D && K !== o)
789
+ return this.onEnd(K), this.ended = !0, !1;
790
+ (Y.avail_out === 0 || Y.avail_in === 0 && (z === s || z === y)) && (this.options.to === "string" ? this.onData(L.buf2binstring(S.shrinkBuf(Y.output, Y.next_out))) : this.onData(S.shrinkBuf(Y.output, Y.next_out)));
791
+ } while ((Y.avail_in > 0 || Y.avail_out === 0) && K !== D);
792
+ return z === s ? (K = x.deflateEnd(this.strm), this.onEnd(K), this.ended = !0, K === o) : (z === y && (this.onEnd(o), Y.avail_out = 0), !0);
793
+ }, C.prototype.onData = function(q) {
794
+ this.chunks.push(q);
795
+ }, C.prototype.onEnd = function(q) {
796
+ q === o && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = S.flattenChunks(this.chunks)), this.chunks = [], this.err = q, this.msg = this.strm.msg;
797
+ };
798
+ function $(q, I) {
799
+ var Y = new C(I);
800
+ if (Y.push(q, !0), Y.err)
801
+ throw Y.msg || w[Y.err];
802
+ return Y.result;
803
+ }
804
+ function M(q, I) {
805
+ return I = I || {}, I.raw = !0, $(q, I);
806
+ }
807
+ function A(q, I) {
808
+ return I = I || {}, I.gzip = !0, $(q, I);
809
+ }
810
+ return We.Deflate = C, We.deflate = $, We.deflateRaw = M, We.gzip = A, We;
811
+ }
812
+ var je = {}, Ae = {}, rt, kt;
813
+ function Ut() {
814
+ if (kt) return rt;
815
+ kt = 1;
816
+ var x = 30, S = 12;
817
+ return rt = function(w, P) {
818
+ var g, c, s, o, D, y, N, m, T, C, $, M, A, q, I, Y, X, K, z, H, v, _, r, k, F;
819
+ g = w.state, c = w.next_in, k = w.input, s = c + (w.avail_in - 5), o = w.next_out, F = w.output, D = o - (P - w.avail_out), y = o + (w.avail_out - 257), N = g.dmax, m = g.wsize, T = g.whave, C = g.wnext, $ = g.window, M = g.hold, A = g.bits, q = g.lencode, I = g.distcode, Y = (1 << g.lenbits) - 1, X = (1 << g.distbits) - 1;
820
+ e:
821
+ do {
822
+ A < 15 && (M += k[c++] << A, A += 8, M += k[c++] << A, A += 8), K = q[M & Y];
823
+ t:
824
+ for (; ; ) {
825
+ if (z = K >>> 24, M >>>= z, A -= z, z = K >>> 16 & 255, z === 0)
826
+ F[o++] = K & 65535;
827
+ else if (z & 16) {
828
+ H = K & 65535, z &= 15, z && (A < z && (M += k[c++] << A, A += 8), H += M & (1 << z) - 1, M >>>= z, A -= z), A < 15 && (M += k[c++] << A, A += 8, M += k[c++] << A, A += 8), K = I[M & X];
829
+ i:
830
+ for (; ; ) {
831
+ if (z = K >>> 24, M >>>= z, A -= z, z = K >>> 16 & 255, z & 16) {
832
+ if (v = K & 65535, z &= 15, A < z && (M += k[c++] << A, A += 8, A < z && (M += k[c++] << A, A += 8)), v += M & (1 << z) - 1, v > N) {
833
+ w.msg = "invalid distance too far back", g.mode = x;
834
+ break e;
835
+ }
836
+ if (M >>>= z, A -= z, z = o - D, v > z) {
837
+ if (z = v - z, z > T && g.sane) {
838
+ w.msg = "invalid distance too far back", g.mode = x;
839
+ break e;
840
+ }
841
+ if (_ = 0, r = $, C === 0) {
842
+ if (_ += m - z, z < H) {
843
+ H -= z;
844
+ do
845
+ F[o++] = $[_++];
846
+ while (--z);
847
+ _ = o - v, r = F;
848
+ }
849
+ } else if (C < z) {
850
+ if (_ += m + C - z, z -= C, z < H) {
851
+ H -= z;
852
+ do
853
+ F[o++] = $[_++];
854
+ while (--z);
855
+ if (_ = 0, C < H) {
856
+ z = C, H -= z;
857
+ do
858
+ F[o++] = $[_++];
859
+ while (--z);
860
+ _ = o - v, r = F;
861
+ }
862
+ }
863
+ } else if (_ += C - z, z < H) {
864
+ H -= z;
865
+ do
866
+ F[o++] = $[_++];
867
+ while (--z);
868
+ _ = o - v, r = F;
869
+ }
870
+ for (; H > 2; )
871
+ F[o++] = r[_++], F[o++] = r[_++], F[o++] = r[_++], H -= 3;
872
+ H && (F[o++] = r[_++], H > 1 && (F[o++] = r[_++]));
873
+ } else {
874
+ _ = o - v;
875
+ do
876
+ F[o++] = F[_++], F[o++] = F[_++], F[o++] = F[_++], H -= 3;
877
+ while (H > 2);
878
+ H && (F[o++] = F[_++], H > 1 && (F[o++] = F[_++]));
879
+ }
880
+ } else if (z & 64) {
881
+ w.msg = "invalid distance code", g.mode = x;
882
+ break e;
883
+ } else {
884
+ K = I[(K & 65535) + (M & (1 << z) - 1)];
885
+ continue i;
886
+ }
887
+ break;
888
+ }
889
+ } else if (z & 64)
890
+ if (z & 32) {
891
+ g.mode = S;
892
+ break e;
893
+ } else {
894
+ w.msg = "invalid literal/length code", g.mode = x;
895
+ break e;
896
+ }
897
+ else {
898
+ K = q[(K & 65535) + (M & (1 << z) - 1)];
899
+ continue t;
900
+ }
901
+ break;
902
+ }
903
+ } while (c < s && o < y);
904
+ H = A >> 3, c -= H, A -= H << 3, M &= (1 << A) - 1, w.next_in = c, w.next_out = o, w.avail_in = c < s ? 5 + (s - c) : 5 - (c - s), w.avail_out = o < y ? 257 + (y - o) : 257 - (o - y), g.hold = M, g.bits = A;
905
+ }, rt;
906
+ }
907
+ var nt, Et;
908
+ function Mt() {
909
+ if (Et) return nt;
910
+ Et = 1;
911
+ var x = Me(), S = 15, L = 852, w = 592, P = 0, g = 1, c = 2, s = [
912
+ /* Length codes 257..285 base */
913
+ 3,
914
+ 4,
915
+ 5,
916
+ 6,
917
+ 7,
918
+ 8,
919
+ 9,
920
+ 10,
921
+ 11,
922
+ 13,
923
+ 15,
924
+ 17,
925
+ 19,
926
+ 23,
927
+ 27,
928
+ 31,
929
+ 35,
930
+ 43,
931
+ 51,
932
+ 59,
933
+ 67,
934
+ 83,
935
+ 99,
936
+ 115,
937
+ 131,
938
+ 163,
939
+ 195,
940
+ 227,
941
+ 258,
942
+ 0,
943
+ 0
944
+ ], o = [
945
+ /* Length codes 257..285 extra */
946
+ 16,
947
+ 16,
948
+ 16,
949
+ 16,
950
+ 16,
951
+ 16,
952
+ 16,
953
+ 16,
954
+ 17,
955
+ 17,
956
+ 17,
957
+ 17,
958
+ 18,
959
+ 18,
960
+ 18,
961
+ 18,
962
+ 19,
963
+ 19,
964
+ 19,
965
+ 19,
966
+ 20,
967
+ 20,
968
+ 20,
969
+ 20,
970
+ 21,
971
+ 21,
972
+ 21,
973
+ 21,
974
+ 16,
975
+ 72,
976
+ 78
977
+ ], D = [
978
+ /* Distance codes 0..29 base */
979
+ 1,
980
+ 2,
981
+ 3,
982
+ 4,
983
+ 5,
984
+ 7,
985
+ 9,
986
+ 13,
987
+ 17,
988
+ 25,
989
+ 33,
990
+ 49,
991
+ 65,
992
+ 97,
993
+ 129,
994
+ 193,
995
+ 257,
996
+ 385,
997
+ 513,
998
+ 769,
999
+ 1025,
1000
+ 1537,
1001
+ 2049,
1002
+ 3073,
1003
+ 4097,
1004
+ 6145,
1005
+ 8193,
1006
+ 12289,
1007
+ 16385,
1008
+ 24577,
1009
+ 0,
1010
+ 0
1011
+ ], y = [
1012
+ /* Distance codes 0..29 extra */
1013
+ 16,
1014
+ 16,
1015
+ 16,
1016
+ 16,
1017
+ 17,
1018
+ 17,
1019
+ 18,
1020
+ 18,
1021
+ 19,
1022
+ 19,
1023
+ 20,
1024
+ 20,
1025
+ 21,
1026
+ 21,
1027
+ 22,
1028
+ 22,
1029
+ 23,
1030
+ 23,
1031
+ 24,
1032
+ 24,
1033
+ 25,
1034
+ 25,
1035
+ 26,
1036
+ 26,
1037
+ 27,
1038
+ 27,
1039
+ 28,
1040
+ 28,
1041
+ 29,
1042
+ 29,
1043
+ 64,
1044
+ 64
1045
+ ];
1046
+ return nt = function(m, T, C, $, M, A, q, I) {
1047
+ var Y = I.bits, X = 0, K = 0, z = 0, H = 0, v = 0, _ = 0, r = 0, k = 0, F = 0, G = 0, j, Q, B, ae, V, re = null, oe = 0, ee, te = new x.Buf16(S + 1), se = new x.Buf16(S + 1), ge = null, he = 0, _e, fe, be;
1048
+ for (X = 0; X <= S; X++)
1049
+ te[X] = 0;
1050
+ for (K = 0; K < $; K++)
1051
+ te[T[C + K]]++;
1052
+ for (v = Y, H = S; H >= 1 && te[H] === 0; H--)
1053
+ ;
1054
+ if (v > H && (v = H), H === 0)
1055
+ return M[A++] = 1 << 24 | 64 << 16 | 0, M[A++] = 1 << 24 | 64 << 16 | 0, I.bits = 1, 0;
1056
+ for (z = 1; z < H && te[z] === 0; z++)
1057
+ ;
1058
+ for (v < z && (v = z), k = 1, X = 1; X <= S; X++)
1059
+ if (k <<= 1, k -= te[X], k < 0)
1060
+ return -1;
1061
+ if (k > 0 && (m === P || H !== 1))
1062
+ return -1;
1063
+ for (se[1] = 0, X = 1; X < S; X++)
1064
+ se[X + 1] = se[X] + te[X];
1065
+ for (K = 0; K < $; K++)
1066
+ T[C + K] !== 0 && (q[se[T[C + K]]++] = K);
1067
+ if (m === P ? (re = ge = q, ee = 19) : m === g ? (re = s, oe -= 257, ge = o, he -= 257, ee = 256) : (re = D, ge = y, ee = -1), G = 0, K = 0, X = z, V = A, _ = v, r = 0, B = -1, F = 1 << v, ae = F - 1, m === g && F > L || m === c && F > w)
1068
+ return 1;
1069
+ for (; ; ) {
1070
+ _e = X - r, q[K] < ee ? (fe = 0, be = q[K]) : q[K] > ee ? (fe = ge[he + q[K]], be = re[oe + q[K]]) : (fe = 96, be = 0), j = 1 << X - r, Q = 1 << _, z = Q;
1071
+ do
1072
+ Q -= j, M[V + (G >> r) + Q] = _e << 24 | fe << 16 | be | 0;
1073
+ while (Q !== 0);
1074
+ for (j = 1 << X - 1; G & j; )
1075
+ j >>= 1;
1076
+ if (j !== 0 ? (G &= j - 1, G += j) : G = 0, K++, --te[X] === 0) {
1077
+ if (X === H)
1078
+ break;
1079
+ X = T[C + q[K]];
1080
+ }
1081
+ if (X > v && (G & ae) !== B) {
1082
+ for (r === 0 && (r = v), V += z, _ = X - r, k = 1 << _; _ + r < H && (k -= te[_ + r], !(k <= 0)); )
1083
+ _++, k <<= 1;
1084
+ if (F += 1 << _, m === g && F > L || m === c && F > w)
1085
+ return 1;
1086
+ B = G & ae, M[B] = v << 24 | _ << 16 | V - A | 0;
1087
+ }
1088
+ }
1089
+ return G !== 0 && (M[V + G] = X - r << 24 | 64 << 16 | 0), I.bits = v, 0;
1090
+ }, nt;
1091
+ }
1092
+ var St;
1093
+ function Ht() {
1094
+ if (St) return Ae;
1095
+ St = 1;
1096
+ var x = Me(), S = At(), L = Rt(), w = Ut(), P = Mt(), g = 0, c = 1, s = 2, o = 4, D = 5, y = 6, N = 0, m = 1, T = 2, C = -2, $ = -3, M = -4, A = -5, q = 8, I = 1, Y = 2, X = 3, K = 4, z = 5, H = 6, v = 7, _ = 8, r = 9, k = 10, F = 11, G = 12, j = 13, Q = 14, B = 15, ae = 16, V = 17, re = 18, oe = 19, ee = 20, te = 21, se = 22, ge = 23, he = 24, _e = 25, fe = 26, be = 27, ye = 28, me = 29, le = 30, ke = 31, He = 32, Fe = 852, Se = 592, ue = 15, J = ue;
1097
+ function Te(f) {
1098
+ return (f >>> 24 & 255) + (f >>> 8 & 65280) + ((f & 65280) << 8) + ((f & 255) << 24);
1099
+ }
1100
+ function Ke() {
1101
+ 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 x.Buf16(320), this.work = new x.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
1102
+ }
1103
+ function Be(f) {
1104
+ var d;
1105
+ return !f || !f.state ? C : (d = f.state, f.total_in = f.total_out = d.total = 0, f.msg = "", d.wrap && (f.adler = d.wrap & 1), d.mode = I, d.last = 0, d.havedict = 0, d.dmax = 32768, d.head = null, d.hold = 0, d.bits = 0, d.lencode = d.lendyn = new x.Buf32(Fe), d.distcode = d.distdyn = new x.Buf32(Se), d.sane = 1, d.back = -1, N);
1106
+ }
1107
+ function ze(f) {
1108
+ var d;
1109
+ return !f || !f.state ? C : (d = f.state, d.wsize = 0, d.whave = 0, d.wnext = 0, Be(f));
1110
+ }
1111
+ function Ye(f, d) {
1112
+ var t, p;
1113
+ return !f || !f.state || (p = f.state, d < 0 ? (t = 0, d = -d) : (t = (d >> 4) + 1, d < 48 && (d &= 15)), d && (d < 8 || d > 15)) ? C : (p.window !== null && p.wbits !== d && (p.window = null), p.wrap = t, p.wbits = d, ze(f));
1114
+ }
1115
+ function Ce(f, d) {
1116
+ var t, p;
1117
+ return f ? (p = new Ke(), f.state = p, p.window = null, t = Ye(f, d), t !== N && (f.state = null), t) : C;
1118
+ }
1119
+ function Re(f) {
1120
+ return Ce(f, J);
1121
+ }
1122
+ var Xe = !0, Ue, pe;
1123
+ function Ie(f) {
1124
+ if (Xe) {
1125
+ var d;
1126
+ for (Ue = new x.Buf32(512), pe = new x.Buf32(32), d = 0; d < 144; )
1127
+ f.lens[d++] = 8;
1128
+ for (; d < 256; )
1129
+ f.lens[d++] = 9;
1130
+ for (; d < 280; )
1131
+ f.lens[d++] = 7;
1132
+ for (; d < 288; )
1133
+ f.lens[d++] = 8;
1134
+ for (P(c, f.lens, 0, 288, Ue, 0, f.work, { bits: 9 }), d = 0; d < 32; )
1135
+ f.lens[d++] = 5;
1136
+ P(s, f.lens, 0, 32, pe, 0, f.work, { bits: 5 }), Xe = !1;
1137
+ }
1138
+ f.lencode = Ue, f.lenbits = 9, f.distcode = pe, f.distbits = 5;
1139
+ }
1140
+ function Ge(f, d, t, p) {
1141
+ var W, e = f.state;
1142
+ return e.window === null && (e.wsize = 1 << e.wbits, e.wnext = 0, e.whave = 0, e.window = new x.Buf8(e.wsize)), p >= e.wsize ? (x.arraySet(e.window, d, t - e.wsize, e.wsize, 0), e.wnext = 0, e.whave = e.wsize) : (W = e.wsize - e.wnext, W > p && (W = p), x.arraySet(e.window, d, t - p, W, e.wnext), p -= W, p ? (x.arraySet(e.window, d, t - p, p, 0), e.wnext = p, e.whave = e.wsize) : (e.wnext += W, e.wnext === e.wsize && (e.wnext = 0), e.whave < e.wsize && (e.whave += W))), 0;
1143
+ }
1144
+ function a(f, d) {
1145
+ var t, p, W, e, l, u, i, n, h, U, R, O, ie, Le, de = 0, ne, ve, xe, Ee, Ve, $e, ce, Ne, we = new x.Buf8(4), De, Ze, _t = (
1146
+ /* permutation of code lengths */
1147
+ [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
1148
+ );
1149
+ if (!f || !f.state || !f.output || !f.input && f.avail_in !== 0)
1150
+ return C;
1151
+ t = f.state, t.mode === G && (t.mode = j), l = f.next_out, W = f.output, i = f.avail_out, e = f.next_in, p = f.input, u = f.avail_in, n = t.hold, h = t.bits, U = u, R = i, Ne = N;
1152
+ e:
1153
+ for (; ; )
1154
+ switch (t.mode) {
1155
+ case I:
1156
+ if (t.wrap === 0) {
1157
+ t.mode = j;
1158
+ break;
1159
+ }
1160
+ for (; h < 16; ) {
1161
+ if (u === 0)
1162
+ break e;
1163
+ u--, n += p[e++] << h, h += 8;
1164
+ }
1165
+ if (t.wrap & 2 && n === 35615) {
1166
+ t.check = 0, we[0] = n & 255, we[1] = n >>> 8 & 255, t.check = L(t.check, we, 2, 0), n = 0, h = 0, t.mode = Y;
1167
+ break;
1168
+ }
1169
+ if (t.flags = 0, t.head && (t.head.done = !1), !(t.wrap & 1) || /* check if zlib header allowed */
1170
+ (((n & 255) << 8) + (n >> 8)) % 31) {
1171
+ f.msg = "incorrect header check", t.mode = le;
1172
+ break;
1173
+ }
1174
+ if ((n & 15) !== q) {
1175
+ f.msg = "unknown compression method", t.mode = le;
1176
+ break;
1177
+ }
1178
+ if (n >>>= 4, h -= 4, ce = (n & 15) + 8, t.wbits === 0)
1179
+ t.wbits = ce;
1180
+ else if (ce > t.wbits) {
1181
+ f.msg = "invalid window size", t.mode = le;
1182
+ break;
1183
+ }
1184
+ t.dmax = 1 << ce, f.adler = t.check = 1, t.mode = n & 512 ? k : G, n = 0, h = 0;
1185
+ break;
1186
+ case Y:
1187
+ for (; h < 16; ) {
1188
+ if (u === 0)
1189
+ break e;
1190
+ u--, n += p[e++] << h, h += 8;
1191
+ }
1192
+ if (t.flags = n, (t.flags & 255) !== q) {
1193
+ f.msg = "unknown compression method", t.mode = le;
1194
+ break;
1195
+ }
1196
+ if (t.flags & 57344) {
1197
+ f.msg = "unknown header flags set", t.mode = le;
1198
+ break;
1199
+ }
1200
+ t.head && (t.head.text = n >> 8 & 1), t.flags & 512 && (we[0] = n & 255, we[1] = n >>> 8 & 255, t.check = L(t.check, we, 2, 0)), n = 0, h = 0, t.mode = X;
1201
+ /* falls through */
1202
+ case X:
1203
+ for (; h < 32; ) {
1204
+ if (u === 0)
1205
+ break e;
1206
+ u--, n += p[e++] << h, h += 8;
1207
+ }
1208
+ t.head && (t.head.time = n), t.flags & 512 && (we[0] = n & 255, we[1] = n >>> 8 & 255, we[2] = n >>> 16 & 255, we[3] = n >>> 24 & 255, t.check = L(t.check, we, 4, 0)), n = 0, h = 0, t.mode = K;
1209
+ /* falls through */
1210
+ case K:
1211
+ for (; h < 16; ) {
1212
+ if (u === 0)
1213
+ break e;
1214
+ u--, n += p[e++] << h, h += 8;
1215
+ }
1216
+ t.head && (t.head.xflags = n & 255, t.head.os = n >> 8), t.flags & 512 && (we[0] = n & 255, we[1] = n >>> 8 & 255, t.check = L(t.check, we, 2, 0)), n = 0, h = 0, t.mode = z;
1217
+ /* falls through */
1218
+ case z:
1219
+ if (t.flags & 1024) {
1220
+ for (; h < 16; ) {
1221
+ if (u === 0)
1222
+ break e;
1223
+ u--, n += p[e++] << h, h += 8;
1224
+ }
1225
+ t.length = n, t.head && (t.head.extra_len = n), t.flags & 512 && (we[0] = n & 255, we[1] = n >>> 8 & 255, t.check = L(t.check, we, 2, 0)), n = 0, h = 0;
1226
+ } else t.head && (t.head.extra = null);
1227
+ t.mode = H;
1228
+ /* falls through */
1229
+ case H:
1230
+ if (t.flags & 1024 && (O = t.length, O > u && (O = u), O && (t.head && (ce = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Array(t.head.extra_len)), x.arraySet(
1231
+ t.head.extra,
1232
+ p,
1233
+ e,
1234
+ // extra field is limited to 65536 bytes
1235
+ // - no need for additional size check
1236
+ O,
1237
+ /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
1238
+ ce
1239
+ )), t.flags & 512 && (t.check = L(t.check, p, O, e)), u -= O, e += O, t.length -= O), t.length))
1240
+ break e;
1241
+ t.length = 0, t.mode = v;
1242
+ /* falls through */
1243
+ case v:
1244
+ if (t.flags & 2048) {
1245
+ if (u === 0)
1246
+ break e;
1247
+ O = 0;
1248
+ do
1249
+ ce = p[e + O++], t.head && ce && t.length < 65536 && (t.head.name += String.fromCharCode(ce));
1250
+ while (ce && O < u);
1251
+ if (t.flags & 512 && (t.check = L(t.check, p, O, e)), u -= O, e += O, ce)
1252
+ break e;
1253
+ } else t.head && (t.head.name = null);
1254
+ t.length = 0, t.mode = _;
1255
+ /* falls through */
1256
+ case _:
1257
+ if (t.flags & 4096) {
1258
+ if (u === 0)
1259
+ break e;
1260
+ O = 0;
1261
+ do
1262
+ ce = p[e + O++], t.head && ce && t.length < 65536 && (t.head.comment += String.fromCharCode(ce));
1263
+ while (ce && O < u);
1264
+ if (t.flags & 512 && (t.check = L(t.check, p, O, e)), u -= O, e += O, ce)
1265
+ break e;
1266
+ } else t.head && (t.head.comment = null);
1267
+ t.mode = r;
1268
+ /* falls through */
1269
+ case r:
1270
+ if (t.flags & 512) {
1271
+ for (; h < 16; ) {
1272
+ if (u === 0)
1273
+ break e;
1274
+ u--, n += p[e++] << h, h += 8;
1275
+ }
1276
+ if (n !== (t.check & 65535)) {
1277
+ f.msg = "header crc mismatch", t.mode = le;
1278
+ break;
1279
+ }
1280
+ n = 0, h = 0;
1281
+ }
1282
+ t.head && (t.head.hcrc = t.flags >> 9 & 1, t.head.done = !0), f.adler = t.check = 0, t.mode = G;
1283
+ break;
1284
+ case k:
1285
+ for (; h < 32; ) {
1286
+ if (u === 0)
1287
+ break e;
1288
+ u--, n += p[e++] << h, h += 8;
1289
+ }
1290
+ f.adler = t.check = Te(n), n = 0, h = 0, t.mode = F;
1291
+ /* falls through */
1292
+ case F:
1293
+ if (t.havedict === 0)
1294
+ return f.next_out = l, f.avail_out = i, f.next_in = e, f.avail_in = u, t.hold = n, t.bits = h, T;
1295
+ f.adler = t.check = 1, t.mode = G;
1296
+ /* falls through */
1297
+ case G:
1298
+ if (d === D || d === y)
1299
+ break e;
1300
+ /* falls through */
1301
+ case j:
1302
+ if (t.last) {
1303
+ n >>>= h & 7, h -= h & 7, t.mode = be;
1304
+ break;
1305
+ }
1306
+ for (; h < 3; ) {
1307
+ if (u === 0)
1308
+ break e;
1309
+ u--, n += p[e++] << h, h += 8;
1310
+ }
1311
+ switch (t.last = n & 1, n >>>= 1, h -= 1, n & 3) {
1312
+ case 0:
1313
+ t.mode = Q;
1314
+ break;
1315
+ case 1:
1316
+ if (Ie(t), t.mode = ee, d === y) {
1317
+ n >>>= 2, h -= 2;
1318
+ break e;
1319
+ }
1320
+ break;
1321
+ case 2:
1322
+ t.mode = V;
1323
+ break;
1324
+ case 3:
1325
+ f.msg = "invalid block type", t.mode = le;
1326
+ }
1327
+ n >>>= 2, h -= 2;
1328
+ break;
1329
+ case Q:
1330
+ for (n >>>= h & 7, h -= h & 7; h < 32; ) {
1331
+ if (u === 0)
1332
+ break e;
1333
+ u--, n += p[e++] << h, h += 8;
1334
+ }
1335
+ if ((n & 65535) !== (n >>> 16 ^ 65535)) {
1336
+ f.msg = "invalid stored block lengths", t.mode = le;
1337
+ break;
1338
+ }
1339
+ if (t.length = n & 65535, n = 0, h = 0, t.mode = B, d === y)
1340
+ break e;
1341
+ /* falls through */
1342
+ case B:
1343
+ t.mode = ae;
1344
+ /* falls through */
1345
+ case ae:
1346
+ if (O = t.length, O) {
1347
+ if (O > u && (O = u), O > i && (O = i), O === 0)
1348
+ break e;
1349
+ x.arraySet(W, p, e, O, l), u -= O, e += O, i -= O, l += O, t.length -= O;
1350
+ break;
1351
+ }
1352
+ t.mode = G;
1353
+ break;
1354
+ case V:
1355
+ for (; h < 14; ) {
1356
+ if (u === 0)
1357
+ break e;
1358
+ u--, n += p[e++] << h, h += 8;
1359
+ }
1360
+ if (t.nlen = (n & 31) + 257, n >>>= 5, h -= 5, t.ndist = (n & 31) + 1, n >>>= 5, h -= 5, t.ncode = (n & 15) + 4, n >>>= 4, h -= 4, t.nlen > 286 || t.ndist > 30) {
1361
+ f.msg = "too many length or distance symbols", t.mode = le;
1362
+ break;
1363
+ }
1364
+ t.have = 0, t.mode = re;
1365
+ /* falls through */
1366
+ case re:
1367
+ for (; t.have < t.ncode; ) {
1368
+ for (; h < 3; ) {
1369
+ if (u === 0)
1370
+ break e;
1371
+ u--, n += p[e++] << h, h += 8;
1372
+ }
1373
+ t.lens[_t[t.have++]] = n & 7, n >>>= 3, h -= 3;
1374
+ }
1375
+ for (; t.have < 19; )
1376
+ t.lens[_t[t.have++]] = 0;
1377
+ if (t.lencode = t.lendyn, t.lenbits = 7, De = { bits: t.lenbits }, Ne = P(g, t.lens, 0, 19, t.lencode, 0, t.work, De), t.lenbits = De.bits, Ne) {
1378
+ f.msg = "invalid code lengths set", t.mode = le;
1379
+ break;
1380
+ }
1381
+ t.have = 0, t.mode = oe;
1382
+ /* falls through */
1383
+ case oe:
1384
+ for (; t.have < t.nlen + t.ndist; ) {
1385
+ for (; de = t.lencode[n & (1 << t.lenbits) - 1], ne = de >>> 24, ve = de >>> 16 & 255, xe = de & 65535, !(ne <= h); ) {
1386
+ if (u === 0)
1387
+ break e;
1388
+ u--, n += p[e++] << h, h += 8;
1389
+ }
1390
+ if (xe < 16)
1391
+ n >>>= ne, h -= ne, t.lens[t.have++] = xe;
1392
+ else {
1393
+ if (xe === 16) {
1394
+ for (Ze = ne + 2; h < Ze; ) {
1395
+ if (u === 0)
1396
+ break e;
1397
+ u--, n += p[e++] << h, h += 8;
1398
+ }
1399
+ if (n >>>= ne, h -= ne, t.have === 0) {
1400
+ f.msg = "invalid bit length repeat", t.mode = le;
1401
+ break;
1402
+ }
1403
+ ce = t.lens[t.have - 1], O = 3 + (n & 3), n >>>= 2, h -= 2;
1404
+ } else if (xe === 17) {
1405
+ for (Ze = ne + 3; h < Ze; ) {
1406
+ if (u === 0)
1407
+ break e;
1408
+ u--, n += p[e++] << h, h += 8;
1409
+ }
1410
+ n >>>= ne, h -= ne, ce = 0, O = 3 + (n & 7), n >>>= 3, h -= 3;
1411
+ } else {
1412
+ for (Ze = ne + 7; h < Ze; ) {
1413
+ if (u === 0)
1414
+ break e;
1415
+ u--, n += p[e++] << h, h += 8;
1416
+ }
1417
+ n >>>= ne, h -= ne, ce = 0, O = 11 + (n & 127), n >>>= 7, h -= 7;
1418
+ }
1419
+ if (t.have + O > t.nlen + t.ndist) {
1420
+ f.msg = "invalid bit length repeat", t.mode = le;
1421
+ break;
1422
+ }
1423
+ for (; O--; )
1424
+ t.lens[t.have++] = ce;
1425
+ }
1426
+ }
1427
+ if (t.mode === le)
1428
+ break;
1429
+ if (t.lens[256] === 0) {
1430
+ f.msg = "invalid code -- missing end-of-block", t.mode = le;
1431
+ break;
1432
+ }
1433
+ if (t.lenbits = 9, De = { bits: t.lenbits }, Ne = P(c, t.lens, 0, t.nlen, t.lencode, 0, t.work, De), t.lenbits = De.bits, Ne) {
1434
+ f.msg = "invalid literal/lengths set", t.mode = le;
1435
+ break;
1436
+ }
1437
+ if (t.distbits = 6, t.distcode = t.distdyn, De = { bits: t.distbits }, Ne = P(s, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, De), t.distbits = De.bits, Ne) {
1438
+ f.msg = "invalid distances set", t.mode = le;
1439
+ break;
1440
+ }
1441
+ if (t.mode = ee, d === y)
1442
+ break e;
1443
+ /* falls through */
1444
+ case ee:
1445
+ t.mode = te;
1446
+ /* falls through */
1447
+ case te:
1448
+ if (u >= 6 && i >= 258) {
1449
+ f.next_out = l, f.avail_out = i, f.next_in = e, f.avail_in = u, t.hold = n, t.bits = h, w(f, R), l = f.next_out, W = f.output, i = f.avail_out, e = f.next_in, p = f.input, u = f.avail_in, n = t.hold, h = t.bits, t.mode === G && (t.back = -1);
1450
+ break;
1451
+ }
1452
+ for (t.back = 0; de = t.lencode[n & (1 << t.lenbits) - 1], ne = de >>> 24, ve = de >>> 16 & 255, xe = de & 65535, !(ne <= h); ) {
1453
+ if (u === 0)
1454
+ break e;
1455
+ u--, n += p[e++] << h, h += 8;
1456
+ }
1457
+ if (ve && !(ve & 240)) {
1458
+ for (Ee = ne, Ve = ve, $e = xe; de = t.lencode[$e + ((n & (1 << Ee + Ve) - 1) >> Ee)], ne = de >>> 24, ve = de >>> 16 & 255, xe = de & 65535, !(Ee + ne <= h); ) {
1459
+ if (u === 0)
1460
+ break e;
1461
+ u--, n += p[e++] << h, h += 8;
1462
+ }
1463
+ n >>>= Ee, h -= Ee, t.back += Ee;
1464
+ }
1465
+ if (n >>>= ne, h -= ne, t.back += ne, t.length = xe, ve === 0) {
1466
+ t.mode = fe;
1467
+ break;
1468
+ }
1469
+ if (ve & 32) {
1470
+ t.back = -1, t.mode = G;
1471
+ break;
1472
+ }
1473
+ if (ve & 64) {
1474
+ f.msg = "invalid literal/length code", t.mode = le;
1475
+ break;
1476
+ }
1477
+ t.extra = ve & 15, t.mode = se;
1478
+ /* falls through */
1479
+ case se:
1480
+ if (t.extra) {
1481
+ for (Ze = t.extra; h < Ze; ) {
1482
+ if (u === 0)
1483
+ break e;
1484
+ u--, n += p[e++] << h, h += 8;
1485
+ }
1486
+ t.length += n & (1 << t.extra) - 1, n >>>= t.extra, h -= t.extra, t.back += t.extra;
1487
+ }
1488
+ t.was = t.length, t.mode = ge;
1489
+ /* falls through */
1490
+ case ge:
1491
+ for (; de = t.distcode[n & (1 << t.distbits) - 1], ne = de >>> 24, ve = de >>> 16 & 255, xe = de & 65535, !(ne <= h); ) {
1492
+ if (u === 0)
1493
+ break e;
1494
+ u--, n += p[e++] << h, h += 8;
1495
+ }
1496
+ if (!(ve & 240)) {
1497
+ for (Ee = ne, Ve = ve, $e = xe; de = t.distcode[$e + ((n & (1 << Ee + Ve) - 1) >> Ee)], ne = de >>> 24, ve = de >>> 16 & 255, xe = de & 65535, !(Ee + ne <= h); ) {
1498
+ if (u === 0)
1499
+ break e;
1500
+ u--, n += p[e++] << h, h += 8;
1501
+ }
1502
+ n >>>= Ee, h -= Ee, t.back += Ee;
1503
+ }
1504
+ if (n >>>= ne, h -= ne, t.back += ne, ve & 64) {
1505
+ f.msg = "invalid distance code", t.mode = le;
1506
+ break;
1507
+ }
1508
+ t.offset = xe, t.extra = ve & 15, t.mode = he;
1509
+ /* falls through */
1510
+ case he:
1511
+ if (t.extra) {
1512
+ for (Ze = t.extra; h < Ze; ) {
1513
+ if (u === 0)
1514
+ break e;
1515
+ u--, n += p[e++] << h, h += 8;
1516
+ }
1517
+ t.offset += n & (1 << t.extra) - 1, n >>>= t.extra, h -= t.extra, t.back += t.extra;
1518
+ }
1519
+ if (t.offset > t.dmax) {
1520
+ f.msg = "invalid distance too far back", t.mode = le;
1521
+ break;
1522
+ }
1523
+ t.mode = _e;
1524
+ /* falls through */
1525
+ case _e:
1526
+ if (i === 0)
1527
+ break e;
1528
+ if (O = R - i, t.offset > O) {
1529
+ if (O = t.offset - O, O > t.whave && t.sane) {
1530
+ f.msg = "invalid distance too far back", t.mode = le;
1531
+ break;
1532
+ }
1533
+ O > t.wnext ? (O -= t.wnext, ie = t.wsize - O) : ie = t.wnext - O, O > t.length && (O = t.length), Le = t.window;
1534
+ } else
1535
+ Le = W, ie = l - t.offset, O = t.length;
1536
+ O > i && (O = i), i -= O, t.length -= O;
1537
+ do
1538
+ W[l++] = Le[ie++];
1539
+ while (--O);
1540
+ t.length === 0 && (t.mode = te);
1541
+ break;
1542
+ case fe:
1543
+ if (i === 0)
1544
+ break e;
1545
+ W[l++] = t.length, i--, t.mode = te;
1546
+ break;
1547
+ case be:
1548
+ if (t.wrap) {
1549
+ for (; h < 32; ) {
1550
+ if (u === 0)
1551
+ break e;
1552
+ u--, n |= p[e++] << h, h += 8;
1553
+ }
1554
+ if (R -= i, f.total_out += R, t.total += R, R && (f.adler = t.check = /*UPDATE(state.check, put - _out, _out);*/
1555
+ t.flags ? L(t.check, W, R, l - R) : S(t.check, W, R, l - R)), R = i, (t.flags ? n : Te(n)) !== t.check) {
1556
+ f.msg = "incorrect data check", t.mode = le;
1557
+ break;
1558
+ }
1559
+ n = 0, h = 0;
1560
+ }
1561
+ t.mode = ye;
1562
+ /* falls through */
1563
+ case ye:
1564
+ if (t.wrap && t.flags) {
1565
+ for (; h < 32; ) {
1566
+ if (u === 0)
1567
+ break e;
1568
+ u--, n += p[e++] << h, h += 8;
1569
+ }
1570
+ if (n !== (t.total & 4294967295)) {
1571
+ f.msg = "incorrect length check", t.mode = le;
1572
+ break;
1573
+ }
1574
+ n = 0, h = 0;
1575
+ }
1576
+ t.mode = me;
1577
+ /* falls through */
1578
+ case me:
1579
+ Ne = m;
1580
+ break e;
1581
+ case le:
1582
+ Ne = $;
1583
+ break e;
1584
+ case ke:
1585
+ return M;
1586
+ case He:
1587
+ /* falls through */
1588
+ default:
1589
+ return C;
1590
+ }
1591
+ return f.next_out = l, f.avail_out = i, f.next_in = e, f.avail_in = u, t.hold = n, t.bits = h, (t.wsize || R !== f.avail_out && t.mode < le && (t.mode < be || d !== o)) && Ge(f, f.output, f.next_out, R - f.avail_out), U -= f.avail_in, R -= f.avail_out, f.total_in += U, f.total_out += R, t.total += R, t.wrap && R && (f.adler = t.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
1592
+ t.flags ? L(t.check, W, R, f.next_out - R) : S(t.check, W, R, f.next_out - R)), f.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === G ? 128 : 0) + (t.mode === ee || t.mode === B ? 256 : 0), (U === 0 && R === 0 || d === o) && Ne === N && (Ne = A), Ne;
1593
+ }
1594
+ function b(f) {
1595
+ if (!f || !f.state)
1596
+ return C;
1597
+ var d = f.state;
1598
+ return d.window && (d.window = null), f.state = null, N;
1599
+ }
1600
+ function E(f, d) {
1601
+ var t;
1602
+ return !f || !f.state || (t = f.state, !(t.wrap & 2)) ? C : (t.head = d, d.done = !1, N);
1603
+ }
1604
+ function Z(f, d) {
1605
+ var t = d.length, p, W, e;
1606
+ return !f || !f.state || (p = f.state, p.wrap !== 0 && p.mode !== F) ? C : p.mode === F && (W = 1, W = S(W, d, t, 0), W !== p.check) ? $ : (e = Ge(f, d, t, t), e ? (p.mode = ke, M) : (p.havedict = 1, N));
1607
+ }
1608
+ return Ae.inflateReset = ze, Ae.inflateReset2 = Ye, Ae.inflateResetKeep = Be, Ae.inflateInit = Re, Ae.inflateInit2 = Ce, Ae.inflate = a, Ae.inflateEnd = b, Ae.inflateGetHeader = E, Ae.inflateSetDictionary = Z, Ae.inflateInfo = "pako inflate (from Nodeca project)", Ae;
1609
+ }
1610
+ var ft, yt;
1611
+ function Zt() {
1612
+ return yt || (yt = 1, ft = {
1613
+ /* Allowed flush values; see deflate() and inflate() below for details */
1614
+ Z_NO_FLUSH: 0,
1615
+ Z_PARTIAL_FLUSH: 1,
1616
+ Z_SYNC_FLUSH: 2,
1617
+ Z_FULL_FLUSH: 3,
1618
+ Z_FINISH: 4,
1619
+ Z_BLOCK: 5,
1620
+ Z_TREES: 6,
1621
+ /* Return codes for the compression/decompression functions. Negative values
1622
+ * are errors, positive values are used for special but normal events.
1623
+ */
1624
+ Z_OK: 0,
1625
+ Z_STREAM_END: 1,
1626
+ Z_NEED_DICT: 2,
1627
+ Z_ERRNO: -1,
1628
+ Z_STREAM_ERROR: -2,
1629
+ Z_DATA_ERROR: -3,
1630
+ //Z_MEM_ERROR: -4,
1631
+ Z_BUF_ERROR: -5,
1632
+ //Z_VERSION_ERROR: -6,
1633
+ /* compression levels */
1634
+ Z_NO_COMPRESSION: 0,
1635
+ Z_BEST_SPEED: 1,
1636
+ Z_BEST_COMPRESSION: 9,
1637
+ Z_DEFAULT_COMPRESSION: -1,
1638
+ Z_FILTERED: 1,
1639
+ Z_HUFFMAN_ONLY: 2,
1640
+ Z_RLE: 3,
1641
+ Z_FIXED: 4,
1642
+ Z_DEFAULT_STRATEGY: 0,
1643
+ /* Possible values of the data_type field (though see inflate()) */
1644
+ Z_BINARY: 0,
1645
+ Z_TEXT: 1,
1646
+ //Z_ASCII: 1, // = Z_TEXT (deprecated)
1647
+ Z_UNKNOWN: 2,
1648
+ /* The deflate compression method */
1649
+ Z_DEFLATED: 8
1650
+ //Z_NULL: null // Use -1 or null inline, depending on var type
1651
+ }), ft;
1652
+ }
1653
+ var ht, mt;
1654
+ function qt() {
1655
+ if (mt) return ht;
1656
+ mt = 1;
1657
+ function x() {
1658
+ this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
1659
+ }
1660
+ return ht = x, ht;
1661
+ }
1662
+ var Ft;
1663
+ function Pt() {
1664
+ if (Ft) return je;
1665
+ Ft = 1;
1666
+ var x = Ht(), S = Me(), L = Ot(), w = Zt(), P = ut(), g = It(), c = qt(), s = Object.prototype.toString;
1667
+ function o(N) {
1668
+ if (!(this instanceof o)) return new o(N);
1669
+ this.options = S.assign({
1670
+ chunkSize: 16384,
1671
+ windowBits: 0,
1672
+ to: ""
1673
+ }, N || {});
1674
+ var m = this.options;
1675
+ m.raw && m.windowBits >= 0 && m.windowBits < 16 && (m.windowBits = -m.windowBits, m.windowBits === 0 && (m.windowBits = -15)), m.windowBits >= 0 && m.windowBits < 16 && !(N && N.windowBits) && (m.windowBits += 32), m.windowBits > 15 && m.windowBits < 48 && (m.windowBits & 15 || (m.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new g(), this.strm.avail_out = 0;
1676
+ var T = x.inflateInit2(
1677
+ this.strm,
1678
+ m.windowBits
1679
+ );
1680
+ if (T !== w.Z_OK)
1681
+ throw new Error(P[T]);
1682
+ if (this.header = new c(), x.inflateGetHeader(this.strm, this.header), m.dictionary && (typeof m.dictionary == "string" ? m.dictionary = L.string2buf(m.dictionary) : s.call(m.dictionary) === "[object ArrayBuffer]" && (m.dictionary = new Uint8Array(m.dictionary)), m.raw && (T = x.inflateSetDictionary(this.strm, m.dictionary), T !== w.Z_OK)))
1683
+ throw new Error(P[T]);
1684
+ }
1685
+ o.prototype.push = function(N, m) {
1686
+ var T = this.strm, C = this.options.chunkSize, $ = this.options.dictionary, M, A, q, I, Y, X = !1;
1687
+ if (this.ended)
1688
+ return !1;
1689
+ A = m === ~~m ? m : m === !0 ? w.Z_FINISH : w.Z_NO_FLUSH, typeof N == "string" ? T.input = L.binstring2buf(N) : s.call(N) === "[object ArrayBuffer]" ? T.input = new Uint8Array(N) : T.input = N, T.next_in = 0, T.avail_in = T.input.length;
1690
+ do {
1691
+ if (T.avail_out === 0 && (T.output = new S.Buf8(C), T.next_out = 0, T.avail_out = C), M = x.inflate(T, w.Z_NO_FLUSH), M === w.Z_NEED_DICT && $ && (M = x.inflateSetDictionary(this.strm, $)), M === w.Z_BUF_ERROR && X === !0 && (M = w.Z_OK, X = !1), M !== w.Z_STREAM_END && M !== w.Z_OK)
1692
+ return this.onEnd(M), this.ended = !0, !1;
1693
+ T.next_out && (T.avail_out === 0 || M === w.Z_STREAM_END || T.avail_in === 0 && (A === w.Z_FINISH || A === w.Z_SYNC_FLUSH)) && (this.options.to === "string" ? (q = L.utf8border(T.output, T.next_out), I = T.next_out - q, Y = L.buf2string(T.output, q), T.next_out = I, T.avail_out = C - I, I && S.arraySet(T.output, T.output, q, I, 0), this.onData(Y)) : this.onData(S.shrinkBuf(T.output, T.next_out))), T.avail_in === 0 && T.avail_out === 0 && (X = !0);
1694
+ } while ((T.avail_in > 0 || T.avail_out === 0) && M !== w.Z_STREAM_END);
1695
+ return M === w.Z_STREAM_END && (A = w.Z_FINISH), A === w.Z_FINISH ? (M = x.inflateEnd(this.strm), this.onEnd(M), this.ended = !0, M === w.Z_OK) : (A === w.Z_SYNC_FLUSH && (this.onEnd(w.Z_OK), T.avail_out = 0), !0);
1696
+ }, o.prototype.onData = function(N) {
1697
+ this.chunks.push(N);
1698
+ }, o.prototype.onEnd = function(N) {
1699
+ N === w.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = S.flattenChunks(this.chunks)), this.chunks = [], this.err = N, this.msg = this.strm.msg;
1700
+ };
1701
+ function D(N, m) {
1702
+ var T = new o(m);
1703
+ if (T.push(N, !0), T.err)
1704
+ throw T.msg || P[T.err];
1705
+ return T.result;
1706
+ }
1707
+ function y(N, m) {
1708
+ return m = m || {}, m.raw = !0, D(N, m);
1709
+ }
1710
+ return je.Inflate = o, je.inflate = D, je.inflateRaw = y, je.ungzip = D, je;
1711
+ }
1712
+ var lt, Tt;
1713
+ function Kt() {
1714
+ if (Tt) return lt;
1715
+ Tt = 1;
1716
+ var x = Me().assign, S = Ct(), L = Pt(), w = Zt(), P = {};
1717
+ return x(P, S, L, w), lt = P, lt;
1718
+ }
1719
+ var Je = Kt();
1720
+ async function jt(x) {
1721
+ try {
1722
+ let S, L = 0, w = 0;
1723
+ const P = [];
1724
+ let g = 0, c;
1725
+ do {
1726
+ const o = x.subarray(L);
1727
+ if (c = new Je.Inflate(), { strm: S } = c, c.push(o, Je.Z_SYNC_FLUSH), c.err)
1728
+ throw new Error(c.msg);
1729
+ L += S.next_in, P[w] = c.result, g += P[w].length, w += 1;
1730
+ } while (S.avail_in);
1731
+ const s = new Uint8Array(g);
1732
+ for (let o = 0, D = 0; o < P.length; o++)
1733
+ s.set(P[o], D), D += P[o].length;
1734
+ return Nt.Buffer.from(s);
1735
+ } catch (S) {
1736
+ throw /incorrect header check/.exec(`${S}`) ? new Error("problem decompressing block: incorrect gzip header check") : S;
1737
+ }
1738
+ }
1739
+ async function Vt(x, S) {
1740
+ try {
1741
+ let L;
1742
+ const { minv: w, maxv: P } = S;
1743
+ let g = w.blockPosition, c = w.dataPosition;
1744
+ const s = [], o = [], D = [];
1745
+ let y = 0, N = 0;
1746
+ do {
1747
+ const C = x.subarray(g - w.blockPosition), $ = new Je.Inflate();
1748
+ if ({ strm: L } = $, $.push(C, Je.Z_SYNC_FLUSH), $.err)
1749
+ throw new Error($.msg);
1750
+ const M = $.result;
1751
+ s.push(M);
1752
+ let A = M.length;
1753
+ o.push(g), D.push(c), s.length === 1 && w.dataPosition && (s[0] = s[0].subarray(w.dataPosition), A = s[0].length);
1754
+ const q = g;
1755
+ if (g += L.next_in, c += A, q >= P.blockPosition) {
1756
+ s[N] = s[N].subarray(0, P.blockPosition === w.blockPosition ? P.dataPosition - w.dataPosition + 1 : P.dataPosition + 1), o.push(g), D.push(c), y += s[N].length;
1757
+ break;
1758
+ }
1759
+ y += s[N].length, N++;
1760
+ } while (L.avail_in);
1761
+ const m = new Uint8Array(y);
1762
+ for (let C = 0, $ = 0; C < s.length; C++)
1763
+ m.set(s[C], $), $ += s[C].length;
1764
+ return { buffer: Nt.Buffer.from(m), cpositions: o, dpositions: D };
1765
+ } catch (L) {
1766
+ throw /incorrect header check/.exec(`${L}`) ? new Error("problem decompressing block: incorrect gzip header check") : L;
1767
+ }
1768
+ }
1769
+ var ot, zt;
1770
+ function Yt() {
1771
+ if (zt) return ot;
1772
+ zt = 1, ot = S;
1773
+ var x = null;
1774
+ try {
1775
+ x = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
1776
+ 0,
1777
+ 97,
1778
+ 115,
1779
+ 109,
1780
+ 1,
1781
+ 0,
1782
+ 0,
1783
+ 0,
1784
+ 1,
1785
+ 13,
1786
+ 2,
1787
+ 96,
1788
+ 0,
1789
+ 1,
1790
+ 127,
1791
+ 96,
1792
+ 4,
1793
+ 127,
1794
+ 127,
1795
+ 127,
1796
+ 127,
1797
+ 1,
1798
+ 127,
1799
+ 3,
1800
+ 7,
1801
+ 6,
1802
+ 0,
1803
+ 1,
1804
+ 1,
1805
+ 1,
1806
+ 1,
1807
+ 1,
1808
+ 6,
1809
+ 6,
1810
+ 1,
1811
+ 127,
1812
+ 1,
1813
+ 65,
1814
+ 0,
1815
+ 11,
1816
+ 7,
1817
+ 50,
1818
+ 6,
1819
+ 3,
1820
+ 109,
1821
+ 117,
1822
+ 108,
1823
+ 0,
1824
+ 1,
1825
+ 5,
1826
+ 100,
1827
+ 105,
1828
+ 118,
1829
+ 95,
1830
+ 115,
1831
+ 0,
1832
+ 2,
1833
+ 5,
1834
+ 100,
1835
+ 105,
1836
+ 118,
1837
+ 95,
1838
+ 117,
1839
+ 0,
1840
+ 3,
1841
+ 5,
1842
+ 114,
1843
+ 101,
1844
+ 109,
1845
+ 95,
1846
+ 115,
1847
+ 0,
1848
+ 4,
1849
+ 5,
1850
+ 114,
1851
+ 101,
1852
+ 109,
1853
+ 95,
1854
+ 117,
1855
+ 0,
1856
+ 5,
1857
+ 8,
1858
+ 103,
1859
+ 101,
1860
+ 116,
1861
+ 95,
1862
+ 104,
1863
+ 105,
1864
+ 103,
1865
+ 104,
1866
+ 0,
1867
+ 0,
1868
+ 10,
1869
+ 191,
1870
+ 1,
1871
+ 6,
1872
+ 4,
1873
+ 0,
1874
+ 35,
1875
+ 0,
1876
+ 11,
1877
+ 36,
1878
+ 1,
1879
+ 1,
1880
+ 126,
1881
+ 32,
1882
+ 0,
1883
+ 173,
1884
+ 32,
1885
+ 1,
1886
+ 173,
1887
+ 66,
1888
+ 32,
1889
+ 134,
1890
+ 132,
1891
+ 32,
1892
+ 2,
1893
+ 173,
1894
+ 32,
1895
+ 3,
1896
+ 173,
1897
+ 66,
1898
+ 32,
1899
+ 134,
1900
+ 132,
1901
+ 126,
1902
+ 34,
1903
+ 4,
1904
+ 66,
1905
+ 32,
1906
+ 135,
1907
+ 167,
1908
+ 36,
1909
+ 0,
1910
+ 32,
1911
+ 4,
1912
+ 167,
1913
+ 11,
1914
+ 36,
1915
+ 1,
1916
+ 1,
1917
+ 126,
1918
+ 32,
1919
+ 0,
1920
+ 173,
1921
+ 32,
1922
+ 1,
1923
+ 173,
1924
+ 66,
1925
+ 32,
1926
+ 134,
1927
+ 132,
1928
+ 32,
1929
+ 2,
1930
+ 173,
1931
+ 32,
1932
+ 3,
1933
+ 173,
1934
+ 66,
1935
+ 32,
1936
+ 134,
1937
+ 132,
1938
+ 127,
1939
+ 34,
1940
+ 4,
1941
+ 66,
1942
+ 32,
1943
+ 135,
1944
+ 167,
1945
+ 36,
1946
+ 0,
1947
+ 32,
1948
+ 4,
1949
+ 167,
1950
+ 11,
1951
+ 36,
1952
+ 1,
1953
+ 1,
1954
+ 126,
1955
+ 32,
1956
+ 0,
1957
+ 173,
1958
+ 32,
1959
+ 1,
1960
+ 173,
1961
+ 66,
1962
+ 32,
1963
+ 134,
1964
+ 132,
1965
+ 32,
1966
+ 2,
1967
+ 173,
1968
+ 32,
1969
+ 3,
1970
+ 173,
1971
+ 66,
1972
+ 32,
1973
+ 134,
1974
+ 132,
1975
+ 128,
1976
+ 34,
1977
+ 4,
1978
+ 66,
1979
+ 32,
1980
+ 135,
1981
+ 167,
1982
+ 36,
1983
+ 0,
1984
+ 32,
1985
+ 4,
1986
+ 167,
1987
+ 11,
1988
+ 36,
1989
+ 1,
1990
+ 1,
1991
+ 126,
1992
+ 32,
1993
+ 0,
1994
+ 173,
1995
+ 32,
1996
+ 1,
1997
+ 173,
1998
+ 66,
1999
+ 32,
2000
+ 134,
2001
+ 132,
2002
+ 32,
2003
+ 2,
2004
+ 173,
2005
+ 32,
2006
+ 3,
2007
+ 173,
2008
+ 66,
2009
+ 32,
2010
+ 134,
2011
+ 132,
2012
+ 129,
2013
+ 34,
2014
+ 4,
2015
+ 66,
2016
+ 32,
2017
+ 135,
2018
+ 167,
2019
+ 36,
2020
+ 0,
2021
+ 32,
2022
+ 4,
2023
+ 167,
2024
+ 11,
2025
+ 36,
2026
+ 1,
2027
+ 1,
2028
+ 126,
2029
+ 32,
2030
+ 0,
2031
+ 173,
2032
+ 32,
2033
+ 1,
2034
+ 173,
2035
+ 66,
2036
+ 32,
2037
+ 134,
2038
+ 132,
2039
+ 32,
2040
+ 2,
2041
+ 173,
2042
+ 32,
2043
+ 3,
2044
+ 173,
2045
+ 66,
2046
+ 32,
2047
+ 134,
2048
+ 132,
2049
+ 130,
2050
+ 34,
2051
+ 4,
2052
+ 66,
2053
+ 32,
2054
+ 135,
2055
+ 167,
2056
+ 36,
2057
+ 0,
2058
+ 32,
2059
+ 4,
2060
+ 167,
2061
+ 11
2062
+ ])), {}).exports;
2063
+ } catch {
2064
+ }
2065
+ function S(_, r, k) {
2066
+ this.low = _ | 0, this.high = r | 0, this.unsigned = !!k;
2067
+ }
2068
+ S.prototype.__isLong__, Object.defineProperty(S.prototype, "__isLong__", { value: !0 });
2069
+ function L(_) {
2070
+ return (_ && _.__isLong__) === !0;
2071
+ }
2072
+ S.isLong = L;
2073
+ var w = {}, P = {};
2074
+ function g(_, r) {
2075
+ var k, F, G;
2076
+ return r ? (_ >>>= 0, (G = 0 <= _ && _ < 256) && (F = P[_], F) ? F : (k = s(_, (_ | 0) < 0 ? -1 : 0, !0), G && (P[_] = k), k)) : (_ |= 0, (G = -128 <= _ && _ < 128) && (F = w[_], F) ? F : (k = s(_, _ < 0 ? -1 : 0, !1), G && (w[_] = k), k));
2077
+ }
2078
+ S.fromInt = g;
2079
+ function c(_, r) {
2080
+ if (isNaN(_))
2081
+ return r ? q : A;
2082
+ if (r) {
2083
+ if (_ < 0)
2084
+ return q;
2085
+ if (_ >= C)
2086
+ return z;
2087
+ } else {
2088
+ if (_ <= -$)
2089
+ return H;
2090
+ if (_ + 1 >= $)
2091
+ return K;
2092
+ }
2093
+ return _ < 0 ? c(-_, r).neg() : s(_ % T | 0, _ / T | 0, r);
2094
+ }
2095
+ S.fromNumber = c;
2096
+ function s(_, r, k) {
2097
+ return new S(_, r, k);
2098
+ }
2099
+ S.fromBits = s;
2100
+ var o = Math.pow;
2101
+ function D(_, r, k) {
2102
+ if (_.length === 0)
2103
+ throw Error("empty string");
2104
+ if (_ === "NaN" || _ === "Infinity" || _ === "+Infinity" || _ === "-Infinity")
2105
+ return A;
2106
+ if (typeof r == "number" ? (k = r, r = !1) : r = !!r, k = k || 10, k < 2 || 36 < k)
2107
+ throw RangeError("radix");
2108
+ var F;
2109
+ if ((F = _.indexOf("-")) > 0)
2110
+ throw Error("interior hyphen");
2111
+ if (F === 0)
2112
+ return D(_.substring(1), r, k).neg();
2113
+ for (var G = c(o(k, 8)), j = A, Q = 0; Q < _.length; Q += 8) {
2114
+ var B = Math.min(8, _.length - Q), ae = parseInt(_.substring(Q, Q + B), k);
2115
+ if (B < 8) {
2116
+ var V = c(o(k, B));
2117
+ j = j.mul(V).add(c(ae));
2118
+ } else
2119
+ j = j.mul(G), j = j.add(c(ae));
2120
+ }
2121
+ return j.unsigned = r, j;
2122
+ }
2123
+ S.fromString = D;
2124
+ function y(_, r) {
2125
+ return typeof _ == "number" ? c(_, r) : typeof _ == "string" ? D(_, r) : s(_.low, _.high, typeof r == "boolean" ? r : _.unsigned);
2126
+ }
2127
+ S.fromValue = y;
2128
+ var N = 65536, m = 1 << 24, T = N * N, C = T * T, $ = C / 2, M = g(m), A = g(0);
2129
+ S.ZERO = A;
2130
+ var q = g(0, !0);
2131
+ S.UZERO = q;
2132
+ var I = g(1);
2133
+ S.ONE = I;
2134
+ var Y = g(1, !0);
2135
+ S.UONE = Y;
2136
+ var X = g(-1);
2137
+ S.NEG_ONE = X;
2138
+ var K = s(-1, 2147483647, !1);
2139
+ S.MAX_VALUE = K;
2140
+ var z = s(-1, -1, !0);
2141
+ S.MAX_UNSIGNED_VALUE = z;
2142
+ var H = s(0, -2147483648, !1);
2143
+ S.MIN_VALUE = H;
2144
+ var v = S.prototype;
2145
+ return v.toInt = function() {
2146
+ return this.unsigned ? this.low >>> 0 : this.low;
2147
+ }, v.toNumber = function() {
2148
+ return this.unsigned ? (this.high >>> 0) * T + (this.low >>> 0) : this.high * T + (this.low >>> 0);
2149
+ }, v.toString = function(r) {
2150
+ if (r = r || 10, r < 2 || 36 < r)
2151
+ throw RangeError("radix");
2152
+ if (this.isZero())
2153
+ return "0";
2154
+ if (this.isNegative())
2155
+ if (this.eq(H)) {
2156
+ var k = c(r), F = this.div(k), G = F.mul(k).sub(this);
2157
+ return F.toString(r) + G.toInt().toString(r);
2158
+ } else
2159
+ return "-" + this.neg().toString(r);
2160
+ for (var j = c(o(r, 6), this.unsigned), Q = this, B = ""; ; ) {
2161
+ var ae = Q.div(j), V = Q.sub(ae.mul(j)).toInt() >>> 0, re = V.toString(r);
2162
+ if (Q = ae, Q.isZero())
2163
+ return re + B;
2164
+ for (; re.length < 6; )
2165
+ re = "0" + re;
2166
+ B = "" + re + B;
2167
+ }
2168
+ }, v.getHighBits = function() {
2169
+ return this.high;
2170
+ }, v.getHighBitsUnsigned = function() {
2171
+ return this.high >>> 0;
2172
+ }, v.getLowBits = function() {
2173
+ return this.low;
2174
+ }, v.getLowBitsUnsigned = function() {
2175
+ return this.low >>> 0;
2176
+ }, v.getNumBitsAbs = function() {
2177
+ if (this.isNegative())
2178
+ return this.eq(H) ? 64 : this.neg().getNumBitsAbs();
2179
+ for (var r = this.high != 0 ? this.high : this.low, k = 31; k > 0 && !(r & 1 << k); k--)
2180
+ ;
2181
+ return this.high != 0 ? k + 33 : k + 1;
2182
+ }, v.isZero = function() {
2183
+ return this.high === 0 && this.low === 0;
2184
+ }, v.eqz = v.isZero, v.isNegative = function() {
2185
+ return !this.unsigned && this.high < 0;
2186
+ }, v.isPositive = function() {
2187
+ return this.unsigned || this.high >= 0;
2188
+ }, v.isOdd = function() {
2189
+ return (this.low & 1) === 1;
2190
+ }, v.isEven = function() {
2191
+ return (this.low & 1) === 0;
2192
+ }, v.equals = function(r) {
2193
+ return L(r) || (r = y(r)), this.unsigned !== r.unsigned && this.high >>> 31 === 1 && r.high >>> 31 === 1 ? !1 : this.high === r.high && this.low === r.low;
2194
+ }, v.eq = v.equals, v.notEquals = function(r) {
2195
+ return !this.eq(
2196
+ /* validates */
2197
+ r
2198
+ );
2199
+ }, v.neq = v.notEquals, v.ne = v.notEquals, v.lessThan = function(r) {
2200
+ return this.comp(
2201
+ /* validates */
2202
+ r
2203
+ ) < 0;
2204
+ }, v.lt = v.lessThan, v.lessThanOrEqual = function(r) {
2205
+ return this.comp(
2206
+ /* validates */
2207
+ r
2208
+ ) <= 0;
2209
+ }, v.lte = v.lessThanOrEqual, v.le = v.lessThanOrEqual, v.greaterThan = function(r) {
2210
+ return this.comp(
2211
+ /* validates */
2212
+ r
2213
+ ) > 0;
2214
+ }, v.gt = v.greaterThan, v.greaterThanOrEqual = function(r) {
2215
+ return this.comp(
2216
+ /* validates */
2217
+ r
2218
+ ) >= 0;
2219
+ }, v.gte = v.greaterThanOrEqual, v.ge = v.greaterThanOrEqual, v.compare = function(r) {
2220
+ if (L(r) || (r = y(r)), this.eq(r))
2221
+ return 0;
2222
+ var k = this.isNegative(), F = r.isNegative();
2223
+ return k && !F ? -1 : !k && F ? 1 : this.unsigned ? r.high >>> 0 > this.high >>> 0 || r.high === this.high && r.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(r).isNegative() ? -1 : 1;
2224
+ }, v.comp = v.compare, v.negate = function() {
2225
+ return !this.unsigned && this.eq(H) ? H : this.not().add(I);
2226
+ }, v.neg = v.negate, v.add = function(r) {
2227
+ L(r) || (r = y(r));
2228
+ var k = this.high >>> 16, F = this.high & 65535, G = this.low >>> 16, j = this.low & 65535, Q = r.high >>> 16, B = r.high & 65535, ae = r.low >>> 16, V = r.low & 65535, re = 0, oe = 0, ee = 0, te = 0;
2229
+ return te += j + V, ee += te >>> 16, te &= 65535, ee += G + ae, oe += ee >>> 16, ee &= 65535, oe += F + B, re += oe >>> 16, oe &= 65535, re += k + Q, re &= 65535, s(ee << 16 | te, re << 16 | oe, this.unsigned);
2230
+ }, v.subtract = function(r) {
2231
+ return L(r) || (r = y(r)), this.add(r.neg());
2232
+ }, v.sub = v.subtract, v.multiply = function(r) {
2233
+ if (this.isZero())
2234
+ return A;
2235
+ if (L(r) || (r = y(r)), x) {
2236
+ var k = x.mul(
2237
+ this.low,
2238
+ this.high,
2239
+ r.low,
2240
+ r.high
2241
+ );
2242
+ return s(k, x.get_high(), this.unsigned);
2243
+ }
2244
+ if (r.isZero())
2245
+ return A;
2246
+ if (this.eq(H))
2247
+ return r.isOdd() ? H : A;
2248
+ if (r.eq(H))
2249
+ return this.isOdd() ? H : A;
2250
+ if (this.isNegative())
2251
+ return r.isNegative() ? this.neg().mul(r.neg()) : this.neg().mul(r).neg();
2252
+ if (r.isNegative())
2253
+ return this.mul(r.neg()).neg();
2254
+ if (this.lt(M) && r.lt(M))
2255
+ return c(this.toNumber() * r.toNumber(), this.unsigned);
2256
+ var F = this.high >>> 16, G = this.high & 65535, j = this.low >>> 16, Q = this.low & 65535, B = r.high >>> 16, ae = r.high & 65535, V = r.low >>> 16, re = r.low & 65535, oe = 0, ee = 0, te = 0, se = 0;
2257
+ return se += Q * re, te += se >>> 16, se &= 65535, te += j * re, ee += te >>> 16, te &= 65535, te += Q * V, ee += te >>> 16, te &= 65535, ee += G * re, oe += ee >>> 16, ee &= 65535, ee += j * V, oe += ee >>> 16, ee &= 65535, ee += Q * ae, oe += ee >>> 16, ee &= 65535, oe += F * re + G * V + j * ae + Q * B, oe &= 65535, s(te << 16 | se, oe << 16 | ee, this.unsigned);
2258
+ }, v.mul = v.multiply, v.divide = function(r) {
2259
+ if (L(r) || (r = y(r)), r.isZero())
2260
+ throw Error("division by zero");
2261
+ if (x) {
2262
+ if (!this.unsigned && this.high === -2147483648 && r.low === -1 && r.high === -1)
2263
+ return this;
2264
+ var k = (this.unsigned ? x.div_u : x.div_s)(
2265
+ this.low,
2266
+ this.high,
2267
+ r.low,
2268
+ r.high
2269
+ );
2270
+ return s(k, x.get_high(), this.unsigned);
2271
+ }
2272
+ if (this.isZero())
2273
+ return this.unsigned ? q : A;
2274
+ var F, G, j;
2275
+ if (this.unsigned) {
2276
+ if (r.unsigned || (r = r.toUnsigned()), r.gt(this))
2277
+ return q;
2278
+ if (r.gt(this.shru(1)))
2279
+ return Y;
2280
+ j = q;
2281
+ } else {
2282
+ if (this.eq(H)) {
2283
+ if (r.eq(I) || r.eq(X))
2284
+ return H;
2285
+ if (r.eq(H))
2286
+ return I;
2287
+ var Q = this.shr(1);
2288
+ return F = Q.div(r).shl(1), F.eq(A) ? r.isNegative() ? I : X : (G = this.sub(r.mul(F)), j = F.add(G.div(r)), j);
2289
+ } else if (r.eq(H))
2290
+ return this.unsigned ? q : A;
2291
+ if (this.isNegative())
2292
+ return r.isNegative() ? this.neg().div(r.neg()) : this.neg().div(r).neg();
2293
+ if (r.isNegative())
2294
+ return this.div(r.neg()).neg();
2295
+ j = A;
2296
+ }
2297
+ for (G = this; G.gte(r); ) {
2298
+ F = Math.max(1, Math.floor(G.toNumber() / r.toNumber()));
2299
+ for (var B = Math.ceil(Math.log(F) / Math.LN2), ae = B <= 48 ? 1 : o(2, B - 48), V = c(F), re = V.mul(r); re.isNegative() || re.gt(G); )
2300
+ F -= ae, V = c(F, this.unsigned), re = V.mul(r);
2301
+ V.isZero() && (V = I), j = j.add(V), G = G.sub(re);
2302
+ }
2303
+ return j;
2304
+ }, v.div = v.divide, v.modulo = function(r) {
2305
+ if (L(r) || (r = y(r)), x) {
2306
+ var k = (this.unsigned ? x.rem_u : x.rem_s)(
2307
+ this.low,
2308
+ this.high,
2309
+ r.low,
2310
+ r.high
2311
+ );
2312
+ return s(k, x.get_high(), this.unsigned);
2313
+ }
2314
+ return this.sub(this.div(r).mul(r));
2315
+ }, v.mod = v.modulo, v.rem = v.modulo, v.not = function() {
2316
+ return s(~this.low, ~this.high, this.unsigned);
2317
+ }, v.and = function(r) {
2318
+ return L(r) || (r = y(r)), s(this.low & r.low, this.high & r.high, this.unsigned);
2319
+ }, v.or = function(r) {
2320
+ return L(r) || (r = y(r)), s(this.low | r.low, this.high | r.high, this.unsigned);
2321
+ }, v.xor = function(r) {
2322
+ return L(r) || (r = y(r)), s(this.low ^ r.low, this.high ^ r.high, this.unsigned);
2323
+ }, v.shiftLeft = function(r) {
2324
+ return L(r) && (r = r.toInt()), (r &= 63) === 0 ? this : r < 32 ? s(this.low << r, this.high << r | this.low >>> 32 - r, this.unsigned) : s(0, this.low << r - 32, this.unsigned);
2325
+ }, v.shl = v.shiftLeft, v.shiftRight = function(r) {
2326
+ return L(r) && (r = r.toInt()), (r &= 63) === 0 ? this : r < 32 ? s(this.low >>> r | this.high << 32 - r, this.high >> r, this.unsigned) : s(this.high >> r - 32, this.high >= 0 ? 0 : -1, this.unsigned);
2327
+ }, v.shr = v.shiftRight, v.shiftRightUnsigned = function(r) {
2328
+ if (L(r) && (r = r.toInt()), r &= 63, r === 0)
2329
+ return this;
2330
+ var k = this.high;
2331
+ if (r < 32) {
2332
+ var F = this.low;
2333
+ return s(F >>> r | k << 32 - r, k >>> r, this.unsigned);
2334
+ } else return r === 32 ? s(k, 0, this.unsigned) : s(k >>> r - 32, 0, this.unsigned);
2335
+ }, v.shru = v.shiftRightUnsigned, v.shr_u = v.shiftRightUnsigned, v.toSigned = function() {
2336
+ return this.unsigned ? s(this.low, this.high, !1) : this;
2337
+ }, v.toUnsigned = function() {
2338
+ return this.unsigned ? this : s(this.low, this.high, !0);
2339
+ }, v.toBytes = function(r) {
2340
+ return r ? this.toBytesLE() : this.toBytesBE();
2341
+ }, v.toBytesLE = function() {
2342
+ var r = this.high, k = this.low;
2343
+ return [
2344
+ k & 255,
2345
+ k >>> 8 & 255,
2346
+ k >>> 16 & 255,
2347
+ k >>> 24,
2348
+ r & 255,
2349
+ r >>> 8 & 255,
2350
+ r >>> 16 & 255,
2351
+ r >>> 24
2352
+ ];
2353
+ }, v.toBytesBE = function() {
2354
+ var r = this.high, k = this.low;
2355
+ return [
2356
+ r >>> 24,
2357
+ r >>> 16 & 255,
2358
+ r >>> 8 & 255,
2359
+ r & 255,
2360
+ k >>> 24,
2361
+ k >>> 16 & 255,
2362
+ k >>> 8 & 255,
2363
+ k & 255
2364
+ ];
2365
+ }, S.fromBytes = function(r, k, F) {
2366
+ return F ? S.fromBytesLE(r, k) : S.fromBytesBE(r, k);
2367
+ }, S.fromBytesLE = function(r, k) {
2368
+ return new S(
2369
+ r[0] | r[1] << 8 | r[2] << 16 | r[3] << 24,
2370
+ r[4] | r[5] << 8 | r[6] << 16 | r[7] << 24,
2371
+ k
2372
+ );
2373
+ }, S.fromBytesBE = function(r, k) {
2374
+ return new S(
2375
+ r[4] << 24 | r[5] << 16 | r[6] << 8 | r[7],
2376
+ r[0] << 24 | r[1] << 16 | r[2] << 8 | r[3],
2377
+ k
2378
+ );
2379
+ }, ot;
2380
+ }
2381
+ var Xt = Yt();
2382
+ const $t = /* @__PURE__ */ Lt(Xt);
2383
+ export {
2384
+ $t as L,
2385
+ Vt as a,
2386
+ jt as u
2387
+ };