@wp-playground/cli 1.1.2 → 1.1.4
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/cli.cjs +8 -5
- package/cli.cjs.map +1 -1
- package/cli.js +650 -591
- package/cli.js.map +1 -1
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/load-balancer.d.ts +13 -0
- package/package.json +13 -11
- package/run-cli-CznLz9jO.js +420 -0
- package/run-cli-CznLz9jO.js.map +1 -0
- package/run-cli-s3Rtz7Gj.cjs +31 -0
- package/run-cli-s3Rtz7Gj.cjs.map +1 -0
- package/run-cli.d.ts +7 -4
- package/worker-thread-BQ8BezvJ.js +152 -0
- package/worker-thread-BQ8BezvJ.js.map +1 -0
- package/worker-thread.cjs +3 -0
- package/worker-thread.cjs.map +1 -0
- package/worker-thread.d.ts +27 -0
- package/worker-thread.js +105 -0
- package/worker-thread.js.map +1 -0
- package/run-cli-BSw9FKSW.cjs +0 -35
- package/run-cli-BSw9FKSW.cjs.map +0 -1
- package/run-cli-_8y4VW5F.js +0 -375
- package/run-cli-_8y4VW5F.js.map +0 -1
package/cli.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { SupportedPHPVersions as
|
|
2
|
-
import { RecommendedPHPVersion as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import Ft from "
|
|
1
|
+
import { SupportedPHPVersions as Wi } from "@php-wasm/universal";
|
|
2
|
+
import { RecommendedPHPVersion as qi } from "@wp-playground/common";
|
|
3
|
+
import ji from "yargs";
|
|
4
|
+
import { cpus as Hi } from "os";
|
|
5
|
+
import { r as Yi } from "./run-cli-CznLz9jO.js";
|
|
6
|
+
import Ft, { existsSync as Hr } from "fs";
|
|
7
|
+
import bt from "path";
|
|
7
8
|
import { Semaphore as Tn } from "@php-wasm/util";
|
|
8
|
-
import { resolveRemoteBlueprint as
|
|
9
|
-
import { logger as
|
|
10
|
-
|
|
9
|
+
import { resolveRemoteBlueprint as Gi } from "@wp-playground/blueprints";
|
|
10
|
+
import { logger as Vi } from "@php-wasm/logger";
|
|
11
|
+
import "@php-wasm/node";
|
|
12
|
+
function Zi(n) {
|
|
11
13
|
return /^latest$|^trunk$|^nightly$|^(?:(\d+)\.(\d+)(?:\.(\d+))?)((?:-beta(?:\d+)?)|(?:-RC(?:\d+)?))?$/.test(n);
|
|
12
14
|
}
|
|
13
15
|
new Tn({ concurrency: 15 });
|
|
@@ -33,7 +35,7 @@ class Fn extends Error {
|
|
|
33
35
|
return !0;
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
|
-
var
|
|
38
|
+
var Ki = {};
|
|
37
39
|
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
|
38
40
|
(function(n) {
|
|
39
41
|
(function(t) {
|
|
@@ -72,17 +74,17 @@ var Zi = {};
|
|
|
72
74
|
}
|
|
73
75
|
t.table = r, t.bstr = S, t.buf = T, t.str = F;
|
|
74
76
|
});
|
|
75
|
-
})(
|
|
76
|
-
var
|
|
77
|
-
Jt.byteLength =
|
|
78
|
-
Jt.toByteArray =
|
|
79
|
-
Jt.fromByteArray =
|
|
80
|
-
var Pe = [], Fe = [],
|
|
81
|
-
for (var st = 0,
|
|
77
|
+
})(Ki);
|
|
78
|
+
var Yr = {}, Jt = {};
|
|
79
|
+
Jt.byteLength = Ji;
|
|
80
|
+
Jt.toByteArray = Qi;
|
|
81
|
+
Jt.fromByteArray = ns;
|
|
82
|
+
var Pe = [], Fe = [], Xi = typeof Uint8Array < "u" ? Uint8Array : Array, nn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
83
|
+
for (var st = 0, $i = nn.length; st < $i; ++st)
|
|
82
84
|
Pe[st] = nn[st], Fe[nn.charCodeAt(st)] = st;
|
|
83
85
|
Fe[45] = 62;
|
|
84
86
|
Fe[95] = 63;
|
|
85
|
-
function
|
|
87
|
+
function Gr(n) {
|
|
86
88
|
var t = n.length;
|
|
87
89
|
if (t % 4 > 0)
|
|
88
90
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -91,30 +93,30 @@ function Yr(n) {
|
|
|
91
93
|
var r = e === t ? 0 : 4 - e % 4;
|
|
92
94
|
return [e, r];
|
|
93
95
|
}
|
|
94
|
-
function
|
|
95
|
-
var t =
|
|
96
|
+
function Ji(n) {
|
|
97
|
+
var t = Gr(n), e = t[0], r = t[1];
|
|
96
98
|
return (e + r) * 3 / 4 - r;
|
|
97
99
|
}
|
|
98
|
-
function
|
|
100
|
+
function zi(n, t, e) {
|
|
99
101
|
return (t + e) * 3 / 4 - e;
|
|
100
102
|
}
|
|
101
|
-
function
|
|
102
|
-
var t, e =
|
|
103
|
+
function Qi(n) {
|
|
104
|
+
var t, e = Gr(n), r = e[0], a = e[1], o = new Xi(zi(n, r, a)), c = 0, l = a > 0 ? r - 4 : r, u;
|
|
103
105
|
for (u = 0; u < l; u += 4)
|
|
104
106
|
t = Fe[n.charCodeAt(u)] << 18 | Fe[n.charCodeAt(u + 1)] << 12 | Fe[n.charCodeAt(u + 2)] << 6 | Fe[n.charCodeAt(u + 3)], o[c++] = t >> 16 & 255, o[c++] = t >> 8 & 255, o[c++] = t & 255;
|
|
105
107
|
return a === 2 && (t = Fe[n.charCodeAt(u)] << 2 | Fe[n.charCodeAt(u + 1)] >> 4, o[c++] = t & 255), a === 1 && (t = Fe[n.charCodeAt(u)] << 10 | Fe[n.charCodeAt(u + 1)] << 4 | Fe[n.charCodeAt(u + 2)] >> 2, o[c++] = t >> 8 & 255, o[c++] = t & 255), o;
|
|
106
108
|
}
|
|
107
|
-
function
|
|
109
|
+
function es(n) {
|
|
108
110
|
return Pe[n >> 18 & 63] + Pe[n >> 12 & 63] + Pe[n >> 6 & 63] + Pe[n & 63];
|
|
109
111
|
}
|
|
110
|
-
function
|
|
112
|
+
function ts(n, t, e) {
|
|
111
113
|
for (var r, a = [], o = t; o < e; o += 3)
|
|
112
|
-
r = (n[o] << 16 & 16711680) + (n[o + 1] << 8 & 65280) + (n[o + 2] & 255), a.push(
|
|
114
|
+
r = (n[o] << 16 & 16711680) + (n[o + 1] << 8 & 65280) + (n[o + 2] & 255), a.push(es(r));
|
|
113
115
|
return a.join("");
|
|
114
116
|
}
|
|
115
|
-
function
|
|
117
|
+
function ns(n) {
|
|
116
118
|
for (var t, e = n.length, r = e % 3, a = [], o = 16383, c = 0, l = e - r; c < l; c += o)
|
|
117
|
-
a.push(
|
|
119
|
+
a.push(ts(n, c, c + o > l ? l : c + o));
|
|
118
120
|
return r === 1 ? (t = n[e - 1], a.push(
|
|
119
121
|
Pe[t >> 2] + Pe[t << 4 & 63] + "=="
|
|
120
122
|
)) : r === 2 && (t = (n[e - 2] << 8) + n[e - 1], a.push(
|
|
@@ -304,7 +306,7 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
304
306
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
305
307
|
);
|
|
306
308
|
if (i === s) return 0;
|
|
307
|
-
for (var d = i.length, y = s.length, L = 0,
|
|
309
|
+
for (var d = i.length, y = s.length, L = 0, B = Math.min(d, y); L < B; ++L)
|
|
308
310
|
if (i[L] !== s[L]) {
|
|
309
311
|
d = i[L], y = s[L];
|
|
310
312
|
break;
|
|
@@ -338,18 +340,18 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
338
340
|
s += i[d].length;
|
|
339
341
|
var y = l.allocUnsafe(s), L = 0;
|
|
340
342
|
for (d = 0; d < i.length; ++d) {
|
|
341
|
-
var
|
|
342
|
-
if (fe(
|
|
343
|
-
L +
|
|
343
|
+
var B = i[d];
|
|
344
|
+
if (fe(B, Uint8Array))
|
|
345
|
+
L + B.length > y.length ? l.from(B).copy(y, L) : Uint8Array.prototype.set.call(
|
|
344
346
|
y,
|
|
345
|
-
|
|
347
|
+
B,
|
|
346
348
|
L
|
|
347
349
|
);
|
|
348
|
-
else if (l.isBuffer(
|
|
349
|
-
|
|
350
|
+
else if (l.isBuffer(B))
|
|
351
|
+
B.copy(y, L);
|
|
350
352
|
else
|
|
351
353
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
352
|
-
L +=
|
|
354
|
+
L += B.length;
|
|
353
355
|
}
|
|
354
356
|
return y;
|
|
355
357
|
};
|
|
@@ -372,7 +374,7 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
372
374
|
return s;
|
|
373
375
|
case "utf8":
|
|
374
376
|
case "utf-8":
|
|
375
|
-
return
|
|
377
|
+
return Ne(f).length;
|
|
376
378
|
case "ucs2":
|
|
377
379
|
case "ucs-2":
|
|
378
380
|
case "utf16le":
|
|
@@ -384,7 +386,7 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
384
386
|
return ze(f).length;
|
|
385
387
|
default:
|
|
386
388
|
if (y)
|
|
387
|
-
return d ? -1 :
|
|
389
|
+
return d ? -1 : Ne(f).length;
|
|
388
390
|
i = ("" + i).toLowerCase(), y = !0;
|
|
389
391
|
}
|
|
390
392
|
}
|
|
@@ -466,12 +468,12 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
466
468
|
if (s >= d)
|
|
467
469
|
return 1;
|
|
468
470
|
if (s >>>= 0, d >>>= 0, y >>>= 0, L >>>= 0, this === i) return 0;
|
|
469
|
-
for (var
|
|
471
|
+
for (var B = L - y, $ = d - s, ne = Math.min(B, $), re = this.slice(y, L), pe = i.slice(s, d), te = 0; te < ne; ++te)
|
|
470
472
|
if (re[te] !== pe[te]) {
|
|
471
|
-
|
|
473
|
+
B = re[te], $ = pe[te];
|
|
472
474
|
break;
|
|
473
475
|
}
|
|
474
|
-
return
|
|
476
|
+
return B < $ ? -1 : $ < B ? 1 : 0;
|
|
475
477
|
};
|
|
476
478
|
function T(f, i, s, d, y) {
|
|
477
479
|
if (f.length === 0) return -1;
|
|
@@ -488,25 +490,25 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
488
490
|
throw new TypeError("val must be string, number or Buffer");
|
|
489
491
|
}
|
|
490
492
|
function F(f, i, s, d, y) {
|
|
491
|
-
var L = 1,
|
|
493
|
+
var L = 1, B = f.length, $ = i.length;
|
|
492
494
|
if (d !== void 0 && (d = String(d).toLowerCase(), d === "ucs2" || d === "ucs-2" || d === "utf16le" || d === "utf-16le")) {
|
|
493
495
|
if (f.length < 2 || i.length < 2)
|
|
494
496
|
return -1;
|
|
495
|
-
L = 2,
|
|
497
|
+
L = 2, B /= 2, $ /= 2, s /= 2;
|
|
496
498
|
}
|
|
497
|
-
function ne(
|
|
498
|
-
return L === 1 ?
|
|
499
|
+
function ne(Tt, mt) {
|
|
500
|
+
return L === 1 ? Tt[mt] : Tt.readUInt16BE(mt * L);
|
|
499
501
|
}
|
|
500
502
|
var re;
|
|
501
503
|
if (y) {
|
|
502
504
|
var pe = -1;
|
|
503
|
-
for (re = s; re <
|
|
505
|
+
for (re = s; re < B; re++)
|
|
504
506
|
if (ne(f, re) === ne(i, pe === -1 ? 0 : re - pe)) {
|
|
505
507
|
if (pe === -1 && (pe = re), re - pe + 1 === $) return pe * L;
|
|
506
508
|
} else
|
|
507
509
|
pe !== -1 && (re -= re - pe), pe = -1;
|
|
508
510
|
} else
|
|
509
|
-
for (s + $ >
|
|
511
|
+
for (s + $ > B && (s = B - $), re = s; re >= 0; re--) {
|
|
510
512
|
for (var te = !0, He = 0; He < $; He++)
|
|
511
513
|
if (ne(f, re + He) !== ne(i, He)) {
|
|
512
514
|
te = !1;
|
|
@@ -529,15 +531,15 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
529
531
|
d ? (d = Number(d), d > y && (d = y)) : d = y;
|
|
530
532
|
var L = i.length;
|
|
531
533
|
d > L / 2 && (d = L / 2);
|
|
532
|
-
for (var
|
|
533
|
-
var $ = parseInt(i.substr(
|
|
534
|
-
if (We($)) return
|
|
535
|
-
f[s +
|
|
534
|
+
for (var B = 0; B < d; ++B) {
|
|
535
|
+
var $ = parseInt(i.substr(B * 2, 2), 16);
|
|
536
|
+
if (We($)) return B;
|
|
537
|
+
f[s + B] = $;
|
|
536
538
|
}
|
|
537
|
-
return
|
|
539
|
+
return B;
|
|
538
540
|
}
|
|
539
541
|
function I(f, i, s, d) {
|
|
540
|
-
return we(
|
|
542
|
+
return we(Ne(i, f.length - s), f, s, d);
|
|
541
543
|
}
|
|
542
544
|
function v(f, i, s, d) {
|
|
543
545
|
return we(it(i), f, s, d);
|
|
@@ -563,7 +565,7 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
563
565
|
if ((d === void 0 || d > L) && (d = L), i.length > 0 && (d < 0 || s < 0) || s > this.length)
|
|
564
566
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
565
567
|
y || (y = "utf8");
|
|
566
|
-
for (var
|
|
568
|
+
for (var B = !1; ; )
|
|
567
569
|
switch (y) {
|
|
568
570
|
case "hex":
|
|
569
571
|
return b(this, i, s, d);
|
|
@@ -582,8 +584,8 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
582
584
|
case "utf-16le":
|
|
583
585
|
return W(this, i, s, d);
|
|
584
586
|
default:
|
|
585
|
-
if (
|
|
586
|
-
y = ("" + y).toLowerCase(),
|
|
587
|
+
if (B) throw new TypeError("Unknown encoding: " + y);
|
|
588
|
+
y = ("" + y).toLowerCase(), B = !0;
|
|
587
589
|
}
|
|
588
590
|
}, l.prototype.toJSON = function() {
|
|
589
591
|
return {
|
|
@@ -597,24 +599,24 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
597
599
|
function Z(f, i, s) {
|
|
598
600
|
s = Math.min(f.length, s);
|
|
599
601
|
for (var d = [], y = i; y < s; ) {
|
|
600
|
-
var L = f[y],
|
|
602
|
+
var L = f[y], B = null, $ = L > 239 ? 4 : L > 223 ? 3 : L > 191 ? 2 : 1;
|
|
601
603
|
if (y + $ <= s) {
|
|
602
604
|
var ne, re, pe, te;
|
|
603
605
|
switch ($) {
|
|
604
606
|
case 1:
|
|
605
|
-
L < 128 && (
|
|
607
|
+
L < 128 && (B = L);
|
|
606
608
|
break;
|
|
607
609
|
case 2:
|
|
608
|
-
ne = f[y + 1], (ne & 192) === 128 && (te = (L & 31) << 6 | ne & 63, te > 127 && (
|
|
610
|
+
ne = f[y + 1], (ne & 192) === 128 && (te = (L & 31) << 6 | ne & 63, te > 127 && (B = te));
|
|
609
611
|
break;
|
|
610
612
|
case 3:
|
|
611
|
-
ne = f[y + 1], re = f[y + 2], (ne & 192) === 128 && (re & 192) === 128 && (te = (L & 15) << 12 | (ne & 63) << 6 | re & 63, te > 2047 && (te < 55296 || te > 57343) && (
|
|
613
|
+
ne = f[y + 1], re = f[y + 2], (ne & 192) === 128 && (re & 192) === 128 && (te = (L & 15) << 12 | (ne & 63) << 6 | re & 63, te > 2047 && (te < 55296 || te > 57343) && (B = te));
|
|
612
614
|
break;
|
|
613
615
|
case 4:
|
|
614
|
-
ne = f[y + 1], re = f[y + 2], pe = f[y + 3], (ne & 192) === 128 && (re & 192) === 128 && (pe & 192) === 128 && (te = (L & 15) << 18 | (ne & 63) << 12 | (re & 63) << 6 | pe & 63, te > 65535 && te < 1114112 && (
|
|
616
|
+
ne = f[y + 1], re = f[y + 2], pe = f[y + 3], (ne & 192) === 128 && (re & 192) === 128 && (pe & 192) === 128 && (te = (L & 15) << 18 | (ne & 63) << 12 | (re & 63) << 6 | pe & 63, te > 65535 && te < 1114112 && (B = te));
|
|
615
617
|
}
|
|
616
618
|
}
|
|
617
|
-
|
|
619
|
+
B === null ? (B = 65533, $ = 1) : B > 65535 && (B -= 65536, d.push(B >>> 10 & 1023 | 55296), B = 56320 | B & 1023), d.push(B), y += $;
|
|
618
620
|
}
|
|
619
621
|
return j(d);
|
|
620
622
|
}
|
|
@@ -668,8 +670,8 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
668
670
|
}
|
|
669
671
|
l.prototype.readUintLE = l.prototype.readUIntLE = function(i, s, d) {
|
|
670
672
|
i = i >>> 0, s = s >>> 0, d || z(i, s, this.length);
|
|
671
|
-
for (var y = this[i], L = 1,
|
|
672
|
-
y += this[i +
|
|
673
|
+
for (var y = this[i], L = 1, B = 0; ++B < s && (L *= 256); )
|
|
674
|
+
y += this[i + B] * L;
|
|
673
675
|
return y;
|
|
674
676
|
}, l.prototype.readUintBE = l.prototype.readUIntBE = function(i, s, d) {
|
|
675
677
|
i = i >>> 0, s = s >>> 0, d || z(i, s, this.length);
|
|
@@ -688,14 +690,14 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
688
690
|
return i = i >>> 0, s || z(i, 4, this.length), this[i] * 16777216 + (this[i + 1] << 16 | this[i + 2] << 8 | this[i + 3]);
|
|
689
691
|
}, l.prototype.readIntLE = function(i, s, d) {
|
|
690
692
|
i = i >>> 0, s = s >>> 0, d || z(i, s, this.length);
|
|
691
|
-
for (var y = this[i], L = 1,
|
|
692
|
-
y += this[i +
|
|
693
|
+
for (var y = this[i], L = 1, B = 0; ++B < s && (L *= 256); )
|
|
694
|
+
y += this[i + B] * L;
|
|
693
695
|
return L *= 128, y >= L && (y -= Math.pow(2, 8 * s)), y;
|
|
694
696
|
}, l.prototype.readIntBE = function(i, s, d) {
|
|
695
697
|
i = i >>> 0, s = s >>> 0, d || z(i, s, this.length);
|
|
696
|
-
for (var y = s, L = 1,
|
|
697
|
-
|
|
698
|
-
return L *= 128,
|
|
698
|
+
for (var y = s, L = 1, B = this[i + --y]; y > 0 && (L *= 256); )
|
|
699
|
+
B += this[i + --y] * L;
|
|
700
|
+
return L *= 128, B >= L && (B -= Math.pow(2, 8 * s)), B;
|
|
699
701
|
}, l.prototype.readInt8 = function(i, s) {
|
|
700
702
|
return i = i >>> 0, s || z(i, 1, this.length), this[i] & 128 ? (255 - this[i] + 1) * -1 : this[i];
|
|
701
703
|
}, l.prototype.readInt16LE = function(i, s) {
|
|
@@ -729,18 +731,18 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
729
731
|
var L = Math.pow(2, 8 * d) - 1;
|
|
730
732
|
Y(this, i, s, d, L, 0);
|
|
731
733
|
}
|
|
732
|
-
var
|
|
733
|
-
for (this[s] = i & 255; ++$ < d && (
|
|
734
|
-
this[s + $] = i /
|
|
734
|
+
var B = 1, $ = 0;
|
|
735
|
+
for (this[s] = i & 255; ++$ < d && (B *= 256); )
|
|
736
|
+
this[s + $] = i / B & 255;
|
|
735
737
|
return s + d;
|
|
736
738
|
}, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(i, s, d, y) {
|
|
737
739
|
if (i = +i, s = s >>> 0, d = d >>> 0, !y) {
|
|
738
740
|
var L = Math.pow(2, 8 * d) - 1;
|
|
739
741
|
Y(this, i, s, d, L, 0);
|
|
740
742
|
}
|
|
741
|
-
var
|
|
742
|
-
for (this[s +
|
|
743
|
-
this[s +
|
|
743
|
+
var B = d - 1, $ = 1;
|
|
744
|
+
for (this[s + B] = i & 255; --B >= 0 && ($ *= 256); )
|
|
745
|
+
this[s + B] = i / $ & 255;
|
|
744
746
|
return s + d;
|
|
745
747
|
}, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(i, s, d) {
|
|
746
748
|
return i = +i, s = s >>> 0, d || Y(this, i, s, 1, 255, 0), this[s] = i & 255, s + 1;
|
|
@@ -757,18 +759,18 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
757
759
|
var L = Math.pow(2, 8 * d - 1);
|
|
758
760
|
Y(this, i, s, d, L - 1, -L);
|
|
759
761
|
}
|
|
760
|
-
var
|
|
761
|
-
for (this[s] = i & 255; ++
|
|
762
|
-
i < 0 && ne === 0 && this[s +
|
|
762
|
+
var B = 0, $ = 1, ne = 0;
|
|
763
|
+
for (this[s] = i & 255; ++B < d && ($ *= 256); )
|
|
764
|
+
i < 0 && ne === 0 && this[s + B - 1] !== 0 && (ne = 1), this[s + B] = (i / $ >> 0) - ne & 255;
|
|
763
765
|
return s + d;
|
|
764
766
|
}, l.prototype.writeIntBE = function(i, s, d, y) {
|
|
765
767
|
if (i = +i, s = s >>> 0, !y) {
|
|
766
768
|
var L = Math.pow(2, 8 * d - 1);
|
|
767
769
|
Y(this, i, s, d, L - 1, -L);
|
|
768
770
|
}
|
|
769
|
-
var
|
|
770
|
-
for (this[s +
|
|
771
|
-
i < 0 && ne === 0 && this[s +
|
|
771
|
+
var B = d - 1, $ = 1, ne = 0;
|
|
772
|
+
for (this[s + B] = i & 255; --B >= 0 && ($ *= 256); )
|
|
773
|
+
i < 0 && ne === 0 && this[s + B + 1] !== 0 && (ne = 1), this[s + B] = (i / $ >> 0) - ne & 255;
|
|
772
774
|
return s + d;
|
|
773
775
|
}, l.prototype.writeInt8 = function(i, s, d) {
|
|
774
776
|
return i = +i, s = s >>> 0, d || Y(this, i, s, 1, 127, -128), i < 0 && (i = 255 + i + 1), this[s] = i & 255, s + 1;
|
|
@@ -830,16 +832,16 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
830
832
|
if (d <= s)
|
|
831
833
|
return this;
|
|
832
834
|
s = s >>> 0, d = d === void 0 ? this.length : d >>> 0, i || (i = 0);
|
|
833
|
-
var
|
|
835
|
+
var B;
|
|
834
836
|
if (typeof i == "number")
|
|
835
|
-
for (
|
|
836
|
-
this[
|
|
837
|
+
for (B = s; B < d; ++B)
|
|
838
|
+
this[B] = i;
|
|
837
839
|
else {
|
|
838
840
|
var $ = l.isBuffer(i) ? i : l.from(i, y), ne = $.length;
|
|
839
841
|
if (ne === 0)
|
|
840
842
|
throw new TypeError('The value "' + i + '" is invalid for argument "value"');
|
|
841
|
-
for (
|
|
842
|
-
this[
|
|
843
|
+
for (B = 0; B < d - s; ++B)
|
|
844
|
+
this[B + s] = $[B % ne];
|
|
843
845
|
}
|
|
844
846
|
return this;
|
|
845
847
|
};
|
|
@@ -850,15 +852,15 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
850
852
|
f = f + "=";
|
|
851
853
|
return f;
|
|
852
854
|
}
|
|
853
|
-
function
|
|
855
|
+
function Ne(f, i) {
|
|
854
856
|
i = i || 1 / 0;
|
|
855
|
-
for (var s, d = f.length, y = null, L = [],
|
|
856
|
-
if (s = f.charCodeAt(
|
|
857
|
+
for (var s, d = f.length, y = null, L = [], B = 0; B < d; ++B) {
|
|
858
|
+
if (s = f.charCodeAt(B), s > 55295 && s < 57344) {
|
|
857
859
|
if (!y) {
|
|
858
860
|
if (s > 56319) {
|
|
859
861
|
(i -= 3) > -1 && L.push(239, 191, 189);
|
|
860
862
|
continue;
|
|
861
|
-
} else if (
|
|
863
|
+
} else if (B + 1 === d) {
|
|
862
864
|
(i -= 3) > -1 && L.push(239, 191, 189);
|
|
863
865
|
continue;
|
|
864
866
|
}
|
|
@@ -906,8 +908,8 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
906
908
|
return i;
|
|
907
909
|
}
|
|
908
910
|
function Je(f, i) {
|
|
909
|
-
for (var s, d, y, L = [],
|
|
910
|
-
s = f.charCodeAt(
|
|
911
|
+
for (var s, d, y, L = [], B = 0; B < f.length && !((i -= 2) < 0); ++B)
|
|
912
|
+
s = f.charCodeAt(B), d = s >> 8, y = s % 256, L.push(y), L.push(d);
|
|
911
913
|
return L;
|
|
912
914
|
}
|
|
913
915
|
function ze(f) {
|
|
@@ -930,7 +932,7 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
930
932
|
i[d + y] = f[s] + f[y];
|
|
931
933
|
return i;
|
|
932
934
|
}();
|
|
933
|
-
})(
|
|
935
|
+
})(Yr);
|
|
934
936
|
class Cn extends Fn {
|
|
935
937
|
/**
|
|
936
938
|
* @param {string} oid
|
|
@@ -945,15 +947,15 @@ class Cn extends Fn {
|
|
|
945
947
|
}
|
|
946
948
|
}
|
|
947
949
|
Cn.code = "ObjectTypeError";
|
|
948
|
-
typeof window < "u" && (window.Buffer =
|
|
949
|
-
const
|
|
950
|
+
typeof window < "u" && (window.Buffer = Yr.Buffer);
|
|
951
|
+
const Vr = function() {
|
|
950
952
|
return typeof process < "u" && process.release?.name === "node" ? "NODE" : typeof window < "u" ? "WEB" : (
|
|
951
953
|
// @ts-ignore
|
|
952
954
|
typeof WorkerGlobalScope < "u" && // @ts-ignore
|
|
953
955
|
self instanceof WorkerGlobalScope ? "WORKER" : "NODE"
|
|
954
956
|
);
|
|
955
957
|
}();
|
|
956
|
-
if (
|
|
958
|
+
if (Vr === "NODE") {
|
|
957
959
|
let n = function(e) {
|
|
958
960
|
return new Promise(function(r, a) {
|
|
959
961
|
e.onload = e.onerror = function(o) {
|
|
@@ -1004,7 +1006,7 @@ if (Gr === "NODE") {
|
|
|
1004
1006
|
});
|
|
1005
1007
|
});
|
|
1006
1008
|
}
|
|
1007
|
-
if (
|
|
1009
|
+
if (Vr === "NODE" && typeof CustomEvent > "u") {
|
|
1008
1010
|
class n extends Event {
|
|
1009
1011
|
constructor(e, r = {}) {
|
|
1010
1012
|
super(e, r), this.detail = r.detail;
|
|
@@ -1014,7 +1016,7 @@ if (Gr === "NODE" && typeof CustomEvent > "u") {
|
|
|
1014
1016
|
}
|
|
1015
1017
|
globalThis.CustomEvent = n;
|
|
1016
1018
|
}
|
|
1017
|
-
function
|
|
1019
|
+
function rs(...n) {
|
|
1018
1020
|
const t = new Uint8Array(
|
|
1019
1021
|
n.reduce((r, a) => r + a.length, 0)
|
|
1020
1022
|
);
|
|
@@ -1023,12 +1025,12 @@ function ns(...n) {
|
|
|
1023
1025
|
t.set(r, e), e += r.length;
|
|
1024
1026
|
return t;
|
|
1025
1027
|
}
|
|
1026
|
-
function
|
|
1028
|
+
function is(n) {
|
|
1027
1029
|
{
|
|
1028
1030
|
let t = new Uint8Array();
|
|
1029
1031
|
return new TransformStream({
|
|
1030
1032
|
transform(e) {
|
|
1031
|
-
t =
|
|
1033
|
+
t = rs(t, e);
|
|
1032
1034
|
},
|
|
1033
1035
|
flush(e) {
|
|
1034
1036
|
e.enqueue(t);
|
|
@@ -1036,8 +1038,8 @@ function rs(n) {
|
|
|
1036
1038
|
});
|
|
1037
1039
|
}
|
|
1038
1040
|
}
|
|
1039
|
-
async function
|
|
1040
|
-
return await n.pipeThrough(
|
|
1041
|
+
async function ss(n, t) {
|
|
1042
|
+
return await n.pipeThrough(is()).getReader().read().then(({ value: e }) => e);
|
|
1041
1043
|
}
|
|
1042
1044
|
class Yt extends File {
|
|
1043
1045
|
/**
|
|
@@ -1080,7 +1082,7 @@ class Yt extends File {
|
|
|
1080
1082
|
* @returns File data as an ArrayBuffer.
|
|
1081
1083
|
*/
|
|
1082
1084
|
async arrayBuffer() {
|
|
1083
|
-
return await
|
|
1085
|
+
return await ss(this.stream());
|
|
1084
1086
|
}
|
|
1085
1087
|
}
|
|
1086
1088
|
ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symbol.asyncIterator] = async function* () {
|
|
@@ -1098,14 +1100,14 @@ ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symb
|
|
|
1098
1100
|
}, ReadableStream.prototype.iterate = // @ts-ignore
|
|
1099
1101
|
ReadableStream.prototype[Symbol.asyncIterator]);
|
|
1100
1102
|
new Tn({ concurrency: 10 });
|
|
1101
|
-
const
|
|
1103
|
+
const yt = 15, gn = 30, bn = 19, as = 29, Gt = 256, In = Gt + 1 + as, Nn = 2 * In + 1, ht = 256, os = 7, Wn = 16, qn = 17, jn = 18, rn = 8 * 2, Vt = -1, cs = 1, Rt = 2, ls = 0, lt = 0, Hn = 1, fs = 3, Ee = 4, Le = 0, Zr = 1, Ct = 2, Ue = -2, us = -3, at = -5;
|
|
1102
1104
|
function zt(n) {
|
|
1103
1105
|
return Qt(n.map(([t, e]) => new Array(t).fill(e, 0, t)));
|
|
1104
1106
|
}
|
|
1105
1107
|
function Qt(n) {
|
|
1106
1108
|
return n.reduce((t, e) => t.concat(Array.isArray(e) ? Qt(e) : e), []);
|
|
1107
1109
|
}
|
|
1108
|
-
const
|
|
1110
|
+
const Yn = [0, 1, 2, 3].concat(...zt([
|
|
1109
1111
|
[2, 4],
|
|
1110
1112
|
[2, 5],
|
|
1111
1113
|
[4, 6],
|
|
@@ -1139,9 +1141,9 @@ function ie() {
|
|
|
1139
1141
|
function t(a) {
|
|
1140
1142
|
const o = n.dyn_tree, c = n.stat_desc.static_tree, l = n.stat_desc.extra_bits, u = n.stat_desc.extra_base, g = n.stat_desc.max_length;
|
|
1141
1143
|
let x, w, _, A, P, h, p = 0;
|
|
1142
|
-
for (A = 0; A <=
|
|
1144
|
+
for (A = 0; A <= yt; A++)
|
|
1143
1145
|
a.bl_count[A] = 0;
|
|
1144
|
-
for (o[a.heap[a.heap_max] * 2 + 1] = 0, x = a.heap_max + 1; x <
|
|
1146
|
+
for (o[a.heap[a.heap_max] * 2 + 1] = 0, x = a.heap_max + 1; x < Nn; x++)
|
|
1145
1147
|
w = a.heap[x], A = o[o[w * 2 + 1] * 2 + 1] + 1, A > g && (A = g, p++), o[w * 2 + 1] = A, !(w > n.max_code) && (a.bl_count[A]++, P = 0, w >= u && (P = l[w - u]), h = o[w * 2], a.opt_len += h * (A + P), c && (a.static_len += h * (c[w * 2 + 1] + P)));
|
|
1146
1148
|
if (p !== 0) {
|
|
1147
1149
|
do {
|
|
@@ -1164,7 +1166,7 @@ function ie() {
|
|
|
1164
1166
|
function r(a, o, c) {
|
|
1165
1167
|
const l = [];
|
|
1166
1168
|
let u = 0, g, x, w;
|
|
1167
|
-
for (g = 1; g <=
|
|
1169
|
+
for (g = 1; g <= yt; g++)
|
|
1168
1170
|
l[g] = u = u + c[g - 1] << 1;
|
|
1169
1171
|
for (x = 0; x <= o; x++)
|
|
1170
1172
|
w = a[x * 2 + 1], w !== 0 && (a[x * 2] = e(l[w]++, w));
|
|
@@ -1172,7 +1174,7 @@ function ie() {
|
|
|
1172
1174
|
n.build_tree = function(a) {
|
|
1173
1175
|
const o = n.dyn_tree, c = n.stat_desc.static_tree, l = n.stat_desc.elems;
|
|
1174
1176
|
let u, g, x = -1, w;
|
|
1175
|
-
for (a.heap_len = 0, a.heap_max =
|
|
1177
|
+
for (a.heap_len = 0, a.heap_max = Nn, u = 0; u < l; u++)
|
|
1176
1178
|
o[u * 2] !== 0 ? (a.heap[++a.heap_len] = x = u, a.depth[u] = 0) : o[u * 2 + 1] = 0;
|
|
1177
1179
|
for (; a.heap_len < 2; )
|
|
1178
1180
|
w = a.heap[++a.heap_len] = x < 2 ? ++x : 0, o[w * 2] = 1, a.depth[w] = 0, a.opt_len--, c && (a.static_len -= c[w * 2 + 1]);
|
|
@@ -1242,7 +1244,7 @@ ie.base_dist = [
|
|
|
1242
1244
|
24576
|
|
1243
1245
|
];
|
|
1244
1246
|
ie.d_code = function(n) {
|
|
1245
|
-
return n < 256 ?
|
|
1247
|
+
return n < 256 ? Yn[n] : Yn[256 + (n >>> 7)];
|
|
1246
1248
|
};
|
|
1247
1249
|
ie.extra_lbits = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0];
|
|
1248
1250
|
ie.extra_dbits = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
|
|
@@ -1252,7 +1254,7 @@ function xe(n, t, e, r, a) {
|
|
|
1252
1254
|
const o = this;
|
|
1253
1255
|
o.static_tree = n, o.extra_bits = t, o.extra_base = e, o.elems = r, o.max_length = a;
|
|
1254
1256
|
}
|
|
1255
|
-
const
|
|
1257
|
+
const ds = [
|
|
1256
1258
|
12,
|
|
1257
1259
|
140,
|
|
1258
1260
|
76,
|
|
@@ -1541,23 +1543,23 @@ const us = [
|
|
|
1541
1543
|
163,
|
|
1542
1544
|
99,
|
|
1543
1545
|
227
|
|
1544
|
-
],
|
|
1545
|
-
xe.static_ltree = Qt(
|
|
1546
|
-
const
|
|
1547
|
-
xe.static_dtree = Qt(
|
|
1548
|
-
xe.static_l_desc = new xe(xe.static_ltree, ie.extra_lbits, Gt + 1, In,
|
|
1549
|
-
xe.static_d_desc = new xe(xe.static_dtree, ie.extra_dbits, 0, gn,
|
|
1550
|
-
xe.static_bl_desc = new xe(null, ie.extra_blbits, 0, bn,
|
|
1551
|
-
const
|
|
1546
|
+
], ps = zt([[144, 8], [112, 9], [24, 7], [8, 8]]);
|
|
1547
|
+
xe.static_ltree = Qt(ds.map((n, t) => [n, ps[t]]));
|
|
1548
|
+
const ms = [0, 16, 8, 24, 4, 20, 12, 28, 2, 18, 10, 26, 6, 22, 14, 30, 1, 17, 9, 25, 5, 21, 13, 29, 3, 19, 11, 27, 7, 23], hs = zt([[30, 5]]);
|
|
1549
|
+
xe.static_dtree = Qt(ms.map((n, t) => [n, hs[t]]));
|
|
1550
|
+
xe.static_l_desc = new xe(xe.static_ltree, ie.extra_lbits, Gt + 1, In, yt);
|
|
1551
|
+
xe.static_d_desc = new xe(xe.static_dtree, ie.extra_dbits, 0, gn, yt);
|
|
1552
|
+
xe.static_bl_desc = new xe(null, ie.extra_blbits, 0, bn, os);
|
|
1553
|
+
const xs = 9, ws = 8;
|
|
1552
1554
|
function Oe(n, t, e, r, a) {
|
|
1553
1555
|
const o = this;
|
|
1554
1556
|
o.good_length = n, o.max_lazy = t, o.nice_length = e, o.max_chain = r, o.func = a;
|
|
1555
1557
|
}
|
|
1556
|
-
const
|
|
1557
|
-
new Oe(0, 0, 0, 0,
|
|
1558
|
-
new Oe(4, 4, 8, 4,
|
|
1559
|
-
new Oe(4, 5, 16, 8,
|
|
1560
|
-
new Oe(4, 6, 32, 32,
|
|
1558
|
+
const Kr = 0, Nt = 1, et = 2, De = [
|
|
1559
|
+
new Oe(0, 0, 0, 0, Kr),
|
|
1560
|
+
new Oe(4, 4, 8, 4, Nt),
|
|
1561
|
+
new Oe(4, 5, 16, 8, Nt),
|
|
1562
|
+
new Oe(4, 6, 32, 32, Nt),
|
|
1561
1563
|
new Oe(4, 4, 16, 16, et),
|
|
1562
1564
|
new Oe(8, 16, 32, 32, et),
|
|
1563
1565
|
new Oe(8, 16, 128, 128, et),
|
|
@@ -1585,12 +1587,12 @@ const Zr = 0, Mt = 1, et = 2, De = [
|
|
|
1585
1587
|
"",
|
|
1586
1588
|
// Z_VERSION_ERROR (-6)
|
|
1587
1589
|
""
|
|
1588
|
-
], Te = 0, Dt = 1, xt = 2, Lt = 3,
|
|
1589
|
-
function
|
|
1590
|
+
], Te = 0, Dt = 1, xt = 2, Lt = 3, _s = 32, sn = 42, Ut = 113, wt = 666, an = 8, gs = 0, on = 1, bs = 2, ae = 3, Wt = 258, Se = Wt + ae + 1;
|
|
1591
|
+
function Gn(n, t, e, r) {
|
|
1590
1592
|
const a = n[t * 2], o = n[e * 2];
|
|
1591
1593
|
return a < o || a == o && r[t] <= r[e];
|
|
1592
1594
|
}
|
|
1593
|
-
function
|
|
1595
|
+
function ys() {
|
|
1594
1596
|
const n = this;
|
|
1595
1597
|
let t, e, r, a, o, c, l, u, g, x, w, _, A, P, h, p, m, E, R, D, S, T, F, b, I, v, k, W, O, Z, H, j, K;
|
|
1596
1598
|
const X = new ie(), oe = new ie(), G = new ie();
|
|
@@ -1603,7 +1605,7 @@ function bs() {
|
|
|
1603
1605
|
w[C] = 0;
|
|
1604
1606
|
v = De[k].max_lazy, O = De[k].good_length, Z = De[k].nice_length, I = De[k].max_chain, S = 0, m = 0, F = 0, E = b = ae - 1, D = 0, _ = 0;
|
|
1605
1607
|
}
|
|
1606
|
-
function
|
|
1608
|
+
function Ne() {
|
|
1607
1609
|
let C;
|
|
1608
1610
|
for (C = 0; C < In; C++)
|
|
1609
1611
|
H[C * 2] = 0;
|
|
@@ -1614,20 +1616,20 @@ function bs() {
|
|
|
1614
1616
|
H[ht * 2] = 1, n.opt_len = n.static_len = 0, Y = ee = 0;
|
|
1615
1617
|
}
|
|
1616
1618
|
function it() {
|
|
1617
|
-
X.dyn_tree = H, X.stat_desc = xe.static_l_desc, oe.dyn_tree = j, oe.stat_desc = xe.static_d_desc, G.dyn_tree = K, G.stat_desc = xe.static_bl_desc, de = 0, le = 0, Ce = 8,
|
|
1618
|
-
}
|
|
1619
|
-
n.pqdownheap = function(C,
|
|
1620
|
-
const U = n.heap,
|
|
1621
|
-
let q =
|
|
1622
|
-
for (; q <= n.heap_len && (q < n.heap_len &&
|
|
1623
|
-
U[
|
|
1624
|
-
U[
|
|
1619
|
+
X.dyn_tree = H, X.stat_desc = xe.static_l_desc, oe.dyn_tree = j, oe.stat_desc = xe.static_d_desc, G.dyn_tree = K, G.stat_desc = xe.static_bl_desc, de = 0, le = 0, Ce = 8, Ne();
|
|
1620
|
+
}
|
|
1621
|
+
n.pqdownheap = function(C, M) {
|
|
1622
|
+
const U = n.heap, N = U[M];
|
|
1623
|
+
let q = M << 1;
|
|
1624
|
+
for (; q <= n.heap_len && (q < n.heap_len && Gn(C, U[q + 1], U[q], n.depth) && q++, !Gn(C, N, U[q], n.depth)); )
|
|
1625
|
+
U[M] = U[q], M = q, q <<= 1;
|
|
1626
|
+
U[M] = N;
|
|
1625
1627
|
};
|
|
1626
|
-
function Je(C,
|
|
1627
|
-
let U = -1,
|
|
1628
|
-
q === 0 && (J = 138, ge = 3), C[(
|
|
1629
|
-
for (let Ie = 0; Ie <=
|
|
1630
|
-
|
|
1628
|
+
function Je(C, M) {
|
|
1629
|
+
let U = -1, N, q = C[0 * 2 + 1], V = 0, J = 7, ge = 4;
|
|
1630
|
+
q === 0 && (J = 138, ge = 3), C[(M + 1) * 2 + 1] = 65535;
|
|
1631
|
+
for (let Ie = 0; Ie <= M; Ie++)
|
|
1632
|
+
N = q, q = C[(Ie + 1) * 2 + 1], !(++V < J && N == q) && (V < ge ? K[N * 2] += V : N !== 0 ? (N != U && K[N * 2]++, K[Wn * 2]++) : V <= 10 ? K[qn * 2]++ : K[jn * 2]++, V = 0, U = N, q === 0 ? (J = 138, ge = 3) : N == q ? (J = 6, ge = 3) : (J = 7, ge = 4));
|
|
1631
1633
|
}
|
|
1632
1634
|
function ze() {
|
|
1633
1635
|
let C;
|
|
@@ -1644,32 +1646,32 @@ function bs() {
|
|
|
1644
1646
|
function We(C) {
|
|
1645
1647
|
we(C >> 8 & 255), we(C & 255 & 255);
|
|
1646
1648
|
}
|
|
1647
|
-
function ue(C,
|
|
1649
|
+
function ue(C, M) {
|
|
1648
1650
|
let U;
|
|
1649
|
-
const
|
|
1650
|
-
le > rn -
|
|
1651
|
+
const N = M;
|
|
1652
|
+
le > rn - N ? (U = C, de |= U << le & 65535, fe(de), de = U >>> rn - le, le += N - rn) : (de |= C << le & 65535, le += N);
|
|
1651
1653
|
}
|
|
1652
|
-
function f(C,
|
|
1654
|
+
function f(C, M) {
|
|
1653
1655
|
const U = C * 2;
|
|
1654
|
-
ue(
|
|
1656
|
+
ue(M[U] & 65535, M[U + 1] & 65535);
|
|
1655
1657
|
}
|
|
1656
|
-
function i(C,
|
|
1657
|
-
let U,
|
|
1658
|
-
for (V === 0 && (ge = 138, Ie = 3), U = 0; U <=
|
|
1658
|
+
function i(C, M) {
|
|
1659
|
+
let U, N = -1, q, V = C[0 * 2 + 1], J = 0, ge = 7, Ie = 4;
|
|
1660
|
+
for (V === 0 && (ge = 138, Ie = 3), U = 0; U <= M; U++)
|
|
1659
1661
|
if (q = V, V = C[(U + 1) * 2 + 1], !(++J < ge && q == V)) {
|
|
1660
1662
|
if (J < Ie)
|
|
1661
1663
|
do
|
|
1662
1664
|
f(q, K);
|
|
1663
1665
|
while (--J !== 0);
|
|
1664
|
-
else q !== 0 ? (q !=
|
|
1665
|
-
J = 0,
|
|
1666
|
+
else q !== 0 ? (q != N && (f(q, K), J--), f(Wn, K), ue(J - 3, 2)) : J <= 10 ? (f(qn, K), ue(J - 3, 3)) : (f(jn, K), ue(J - 11, 7));
|
|
1667
|
+
J = 0, N = q, V === 0 ? (ge = 138, Ie = 3) : q == V ? (ge = 6, Ie = 3) : (ge = 7, Ie = 4);
|
|
1666
1668
|
}
|
|
1667
1669
|
}
|
|
1668
|
-
function s(C,
|
|
1669
|
-
let
|
|
1670
|
-
for (ue(C - 257, 5), ue(
|
|
1671
|
-
ue(K[ie.bl_order[
|
|
1672
|
-
i(H, C - 1), i(j,
|
|
1670
|
+
function s(C, M, U) {
|
|
1671
|
+
let N;
|
|
1672
|
+
for (ue(C - 257, 5), ue(M - 1, 5), ue(U - 4, 4), N = 0; N < U; N++)
|
|
1673
|
+
ue(K[ie.bl_order[N] * 2 + 1], 3);
|
|
1674
|
+
i(H, C - 1), i(j, M - 1);
|
|
1673
1675
|
}
|
|
1674
1676
|
function d() {
|
|
1675
1677
|
le == 16 ? (fe(de), de = 0, le = 0) : le >= 8 && (we(de & 255), de >>>= 8, le -= 8);
|
|
@@ -1677,101 +1679,101 @@ function bs() {
|
|
|
1677
1679
|
function y() {
|
|
1678
1680
|
ue(on << 1, 3), f(ht, xe.static_ltree), d(), 1 + Ce + 10 - le < 9 && (ue(on << 1, 3), f(ht, xe.static_ltree), d()), Ce = 7;
|
|
1679
1681
|
}
|
|
1680
|
-
function L(C,
|
|
1681
|
-
let U,
|
|
1682
|
-
if (n.dist_buf[Y] = C, n.lc_buf[Y] =
|
|
1683
|
-
for (U = Y * 8,
|
|
1682
|
+
function L(C, M) {
|
|
1683
|
+
let U, N, q;
|
|
1684
|
+
if (n.dist_buf[Y] = C, n.lc_buf[Y] = M & 255, Y++, C === 0 ? H[M * 2]++ : (ee++, C--, H[(ie._length_code[M] + Gt + 1) * 2]++, j[ie.d_code(C) * 2]++), !(Y & 8191) && k > 2) {
|
|
1685
|
+
for (U = Y * 8, N = S - m, q = 0; q < gn; q++)
|
|
1684
1686
|
U += j[q * 2] * (5 + ie.extra_dbits[q]);
|
|
1685
|
-
if (U >>>= 3, ee < Math.floor(Y / 2) && U < Math.floor(
|
|
1687
|
+
if (U >>>= 3, ee < Math.floor(Y / 2) && U < Math.floor(N / 2))
|
|
1686
1688
|
return !0;
|
|
1687
1689
|
}
|
|
1688
1690
|
return Y == z - 1;
|
|
1689
1691
|
}
|
|
1690
|
-
function
|
|
1691
|
-
let U,
|
|
1692
|
+
function B(C, M) {
|
|
1693
|
+
let U, N, q = 0, V, J;
|
|
1692
1694
|
if (Y !== 0)
|
|
1693
1695
|
do
|
|
1694
|
-
U = n.dist_buf[q],
|
|
1696
|
+
U = n.dist_buf[q], N = n.lc_buf[q], q++, U === 0 ? f(N, C) : (V = ie._length_code[N], f(V + Gt + 1, C), J = ie.extra_lbits[V], J !== 0 && (N -= ie.base_length[V], ue(N, J)), U--, V = ie.d_code(U), f(V, M), J = ie.extra_dbits[V], J !== 0 && (U -= ie.base_dist[V], ue(U, J)));
|
|
1695
1697
|
while (q < Y);
|
|
1696
1698
|
f(ht, C), Ce = C[ht * 2 + 1];
|
|
1697
1699
|
}
|
|
1698
1700
|
function $() {
|
|
1699
1701
|
le > 8 ? fe(de) : le > 0 && we(de & 255), de = 0, le = 0;
|
|
1700
1702
|
}
|
|
1701
|
-
function ne(C,
|
|
1702
|
-
$(), Ce = 8, fe(
|
|
1703
|
+
function ne(C, M, U) {
|
|
1704
|
+
$(), Ce = 8, fe(M), fe(~M), n.pending_buf.set(u.subarray(C, C + M), n.pending), n.pending += M;
|
|
1703
1705
|
}
|
|
1704
|
-
function re(C,
|
|
1705
|
-
ue((
|
|
1706
|
+
function re(C, M, U) {
|
|
1707
|
+
ue((gs << 1) + (U ? 1 : 0), 3), ne(C, M);
|
|
1706
1708
|
}
|
|
1707
|
-
function pe(C,
|
|
1708
|
-
let
|
|
1709
|
-
k > 0 ? (X.build_tree(n), oe.build_tree(n), V = ze(),
|
|
1709
|
+
function pe(C, M, U) {
|
|
1710
|
+
let N, q, V = 0;
|
|
1711
|
+
k > 0 ? (X.build_tree(n), oe.build_tree(n), V = ze(), N = n.opt_len + 3 + 7 >>> 3, q = n.static_len + 3 + 7 >>> 3, q <= N && (N = q)) : N = q = M + 5, M + 4 <= N && C != -1 ? re(C, M, U) : q == N ? (ue((on << 1) + (U ? 1 : 0), 3), B(xe.static_ltree, xe.static_dtree)) : (ue((bs << 1) + (U ? 1 : 0), 3), s(X.max_code + 1, oe.max_code + 1, V + 1), B(H, j)), Ne(), U && $();
|
|
1710
1712
|
}
|
|
1711
1713
|
function te(C) {
|
|
1712
1714
|
pe(m >= 0 ? m : -1, S - m, C), m = S, t.flush_pending();
|
|
1713
1715
|
}
|
|
1714
1716
|
function He() {
|
|
1715
|
-
let C,
|
|
1717
|
+
let C, M, U, N;
|
|
1716
1718
|
do {
|
|
1717
|
-
if (
|
|
1718
|
-
|
|
1719
|
-
else if (
|
|
1720
|
-
|
|
1719
|
+
if (N = g - F - S, N === 0 && S === 0 && F === 0)
|
|
1720
|
+
N = o;
|
|
1721
|
+
else if (N == -1)
|
|
1722
|
+
N--;
|
|
1721
1723
|
else if (S >= o + o - Se) {
|
|
1722
1724
|
u.set(u.subarray(o, o + o), 0), T -= o, S -= o, m -= o, C = A, U = C;
|
|
1723
1725
|
do
|
|
1724
|
-
|
|
1726
|
+
M = w[--U] & 65535, w[U] = M >= o ? M - o : 0;
|
|
1725
1727
|
while (--C !== 0);
|
|
1726
1728
|
C = o, U = C;
|
|
1727
1729
|
do
|
|
1728
|
-
|
|
1730
|
+
M = x[--U] & 65535, x[U] = M >= o ? M - o : 0;
|
|
1729
1731
|
while (--C !== 0);
|
|
1730
|
-
|
|
1732
|
+
N += o;
|
|
1731
1733
|
}
|
|
1732
1734
|
if (t.avail_in === 0)
|
|
1733
1735
|
return;
|
|
1734
|
-
C = t.read_buf(u, S + F,
|
|
1736
|
+
C = t.read_buf(u, S + F, N), F += C, F >= ae && (_ = u[S] & 255, _ = (_ << p ^ u[S + 1] & 255) & h);
|
|
1735
1737
|
} while (F < Se && t.avail_in !== 0);
|
|
1736
1738
|
}
|
|
1737
|
-
function
|
|
1738
|
-
let
|
|
1739
|
-
for (
|
|
1739
|
+
function Tt(C) {
|
|
1740
|
+
let M = 65535, U;
|
|
1741
|
+
for (M > r - 5 && (M = r - 5); ; ) {
|
|
1740
1742
|
if (F <= 1) {
|
|
1741
1743
|
if (He(), F === 0 && C == lt)
|
|
1742
1744
|
return Te;
|
|
1743
1745
|
if (F === 0)
|
|
1744
1746
|
break;
|
|
1745
1747
|
}
|
|
1746
|
-
if (S += F, F = 0, U = m +
|
|
1748
|
+
if (S += F, F = 0, U = m + M, (S === 0 || S >= U) && (F = S - U, S = U, te(!1), t.avail_out === 0) || S - m >= o - Se && (te(!1), t.avail_out === 0))
|
|
1747
1749
|
return Te;
|
|
1748
1750
|
}
|
|
1749
1751
|
return te(C == Ee), t.avail_out === 0 ? C == Ee ? xt : Te : C == Ee ? Lt : Dt;
|
|
1750
1752
|
}
|
|
1751
1753
|
function mt(C) {
|
|
1752
|
-
let
|
|
1754
|
+
let M = I, U = S, N, q, V = b;
|
|
1753
1755
|
const J = S > o - Se ? S - (o - Se) : 0;
|
|
1754
1756
|
let ge = Z;
|
|
1755
1757
|
const Ie = l, tn = S + Wt;
|
|
1756
|
-
let
|
|
1757
|
-
b >= O && (
|
|
1758
|
+
let Mn = u[U + V - 1], Bn = u[U + V];
|
|
1759
|
+
b >= O && (M >>= 2), ge > F && (ge = F);
|
|
1758
1760
|
do
|
|
1759
|
-
if (
|
|
1760
|
-
U += 2,
|
|
1761
|
+
if (N = C, !(u[N + V] != Bn || u[N + V - 1] != Mn || u[N] != u[U] || u[++N] != u[U + 1])) {
|
|
1762
|
+
U += 2, N++;
|
|
1761
1763
|
do
|
|
1762
1764
|
;
|
|
1763
|
-
while (u[++U] == u[++
|
|
1765
|
+
while (u[++U] == u[++N] && u[++U] == u[++N] && u[++U] == u[++N] && u[++U] == u[++N] && u[++U] == u[++N] && u[++U] == u[++N] && u[++U] == u[++N] && u[++U] == u[++N] && U < tn);
|
|
1764
1766
|
if (q = Wt - (tn - U), U = tn - Wt, q > V) {
|
|
1765
1767
|
if (T = C, V = q, q >= ge)
|
|
1766
1768
|
break;
|
|
1767
|
-
|
|
1769
|
+
Mn = u[U + V - 1], Bn = u[U + V];
|
|
1768
1770
|
}
|
|
1769
1771
|
}
|
|
1770
|
-
while ((C = x[C & Ie] & 65535) > J && --
|
|
1772
|
+
while ((C = x[C & Ie] & 65535) > J && --M !== 0);
|
|
1771
1773
|
return V <= F ? V : F;
|
|
1772
1774
|
}
|
|
1773
|
-
function
|
|
1774
|
-
let
|
|
1775
|
+
function Mi(C) {
|
|
1776
|
+
let M = 0, U;
|
|
1775
1777
|
for (; ; ) {
|
|
1776
1778
|
if (F < Se) {
|
|
1777
1779
|
if (He(), F < Se && C == lt)
|
|
@@ -1779,11 +1781,11 @@ function bs() {
|
|
|
1779
1781
|
if (F === 0)
|
|
1780
1782
|
break;
|
|
1781
1783
|
}
|
|
1782
|
-
if (F >= ae && (_ = (_ << p ^ u[S + (ae - 1)] & 255) & h,
|
|
1784
|
+
if (F >= ae && (_ = (_ << p ^ u[S + (ae - 1)] & 255) & h, M = w[_] & 65535, x[S & l] = w[_], w[_] = S), M !== 0 && (S - M & 65535) <= o - Se && W != Rt && (E = mt(M)), E >= ae)
|
|
1783
1785
|
if (U = L(S - T, E - ae), F -= E, E <= v && F >= ae) {
|
|
1784
1786
|
E--;
|
|
1785
1787
|
do
|
|
1786
|
-
S++, _ = (_ << p ^ u[S + (ae - 1)] & 255) & h,
|
|
1788
|
+
S++, _ = (_ << p ^ u[S + (ae - 1)] & 255) & h, M = w[_] & 65535, x[S & l] = w[_], w[_] = S;
|
|
1787
1789
|
while (--E !== 0);
|
|
1788
1790
|
S++;
|
|
1789
1791
|
} else
|
|
@@ -1796,7 +1798,7 @@ function bs() {
|
|
|
1796
1798
|
return te(C == Ee), t.avail_out === 0 ? C == Ee ? xt : Te : C == Ee ? Lt : Dt;
|
|
1797
1799
|
}
|
|
1798
1800
|
function Bi(C) {
|
|
1799
|
-
let
|
|
1801
|
+
let M = 0, U, N;
|
|
1800
1802
|
for (; ; ) {
|
|
1801
1803
|
if (F < Se) {
|
|
1802
1804
|
if (He(), F < Se && C == lt)
|
|
@@ -1804,10 +1806,10 @@ function bs() {
|
|
|
1804
1806
|
if (F === 0)
|
|
1805
1807
|
break;
|
|
1806
1808
|
}
|
|
1807
|
-
if (F >= ae && (_ = (_ << p ^ u[S + (ae - 1)] & 255) & h,
|
|
1808
|
-
|
|
1809
|
+
if (F >= ae && (_ = (_ << p ^ u[S + (ae - 1)] & 255) & h, M = w[_] & 65535, x[S & l] = w[_], w[_] = S), b = E, R = T, E = ae - 1, M !== 0 && b < v && (S - M & 65535) <= o - Se && (W != Rt && (E = mt(M)), E <= 5 && (W == cs || E == ae && S - T > 4096) && (E = ae - 1)), b >= ae && E <= b) {
|
|
1810
|
+
N = S + F - ae, U = L(S - 1 - R, b - ae), F -= b - 1, b -= 2;
|
|
1809
1811
|
do
|
|
1810
|
-
++S <=
|
|
1812
|
+
++S <= N && (_ = (_ << p ^ u[S + (ae - 1)] & 255) & h, M = w[_] & 65535, x[S & l] = w[_], w[_] = S);
|
|
1811
1813
|
while (--b !== 0);
|
|
1812
1814
|
if (D = 0, E = ae - 1, S++, U && (te(!1), t.avail_out === 0))
|
|
1813
1815
|
return Te;
|
|
@@ -1822,72 +1824,72 @@ function bs() {
|
|
|
1822
1824
|
function Ni(C) {
|
|
1823
1825
|
return C.total_in = C.total_out = 0, C.msg = null, n.pending = 0, n.pending_out = 0, e = Ut, a = lt, it(), pt(), Le;
|
|
1824
1826
|
}
|
|
1825
|
-
n.deflateInit = function(C,
|
|
1826
|
-
return
|
|
1827
|
+
n.deflateInit = function(C, M, U, N, q, V) {
|
|
1828
|
+
return N || (N = an), q || (q = ws), V || (V = ls), C.msg = null, M == Vt && (M = 6), q < 1 || q > xs || N != an || U < 9 || U > 15 || M < 0 || M > 9 || V < 0 || V > Rt ? Ue : (C.dstate = n, c = U, o = 1 << c, l = o - 1, P = q + 7, A = 1 << P, h = A - 1, p = Math.floor((P + ae - 1) / ae), u = new Uint8Array(o * 2), x = [], w = [], z = 1 << q + 6, n.pending_buf = new Uint8Array(z * 4), r = z * 4, n.dist_buf = new Uint16Array(z), n.lc_buf = new Uint8Array(z), k = M, W = V, Ni(C));
|
|
1827
1829
|
}, n.deflateEnd = function() {
|
|
1828
|
-
return e != sn && e != Ut && e != wt ? Ue : (n.lc_buf = null, n.dist_buf = null, n.pending_buf = null, w = null, x = null, u = null, n.dstate = null, e == Ut ?
|
|
1829
|
-
}, n.deflateParams = function(C,
|
|
1830
|
-
let
|
|
1831
|
-
return
|
|
1832
|
-
}, n.deflateSetDictionary = function(C,
|
|
1833
|
-
let
|
|
1834
|
-
if (!
|
|
1830
|
+
return e != sn && e != Ut && e != wt ? Ue : (n.lc_buf = null, n.dist_buf = null, n.pending_buf = null, w = null, x = null, u = null, n.dstate = null, e == Ut ? us : Le);
|
|
1831
|
+
}, n.deflateParams = function(C, M, U) {
|
|
1832
|
+
let N = Le;
|
|
1833
|
+
return M == Vt && (M = 6), M < 0 || M > 9 || U < 0 || U > Rt ? Ue : (De[k].func != De[M].func && C.total_in !== 0 && (N = C.deflate(Hn)), k != M && (k = M, v = De[k].max_lazy, O = De[k].good_length, Z = De[k].nice_length, I = De[k].max_chain), W = U, N);
|
|
1834
|
+
}, n.deflateSetDictionary = function(C, M, U) {
|
|
1835
|
+
let N = U, q, V = 0;
|
|
1836
|
+
if (!M || e != sn)
|
|
1835
1837
|
return Ue;
|
|
1836
|
-
if (
|
|
1838
|
+
if (N < ae)
|
|
1837
1839
|
return Le;
|
|
1838
|
-
for (
|
|
1840
|
+
for (N > o - Se && (N = o - Se, V = U - N), u.set(M.subarray(V, V + N), 0), S = N, m = N, _ = u[0] & 255, _ = (_ << p ^ u[1] & 255) & h, q = 0; q <= N - ae; q++)
|
|
1839
1841
|
_ = (_ << p ^ u[q + (ae - 1)] & 255) & h, x[q & l] = w[_], w[_] = q;
|
|
1840
1842
|
return Le;
|
|
1841
|
-
}, n.deflate = function(C,
|
|
1842
|
-
let U,
|
|
1843
|
-
if (
|
|
1843
|
+
}, n.deflate = function(C, M) {
|
|
1844
|
+
let U, N, q, V, J;
|
|
1845
|
+
if (M > Ee || M < 0)
|
|
1844
1846
|
return Ue;
|
|
1845
|
-
if (!C.next_out || !C.next_in && C.avail_in !== 0 || e == wt &&
|
|
1847
|
+
if (!C.next_out || !C.next_in && C.avail_in !== 0 || e == wt && M != Ee)
|
|
1846
1848
|
return C.msg = It[Ct - Ue], Ue;
|
|
1847
1849
|
if (C.avail_out === 0)
|
|
1848
1850
|
return C.msg = It[Ct - at], at;
|
|
1849
|
-
if (t = C, V = a, a =
|
|
1851
|
+
if (t = C, V = a, a = M, e == sn && (N = an + (c - 8 << 4) << 8, q = (k - 1 & 255) >> 1, q > 3 && (q = 3), N |= q << 6, S !== 0 && (N |= _s), N += 31 - N % 31, e = Ut, We(N)), n.pending !== 0) {
|
|
1850
1852
|
if (t.flush_pending(), t.avail_out === 0)
|
|
1851
1853
|
return a = -1, Le;
|
|
1852
|
-
} else if (t.avail_in === 0 &&
|
|
1854
|
+
} else if (t.avail_in === 0 && M <= V && M != Ee)
|
|
1853
1855
|
return t.msg = It[Ct - at], at;
|
|
1854
1856
|
if (e == wt && t.avail_in !== 0)
|
|
1855
1857
|
return C.msg = It[Ct - at], at;
|
|
1856
|
-
if (t.avail_in !== 0 || F !== 0 ||
|
|
1858
|
+
if (t.avail_in !== 0 || F !== 0 || M != lt && e != wt) {
|
|
1857
1859
|
switch (J = -1, De[k].func) {
|
|
1858
|
-
case
|
|
1859
|
-
J =
|
|
1860
|
+
case Kr:
|
|
1861
|
+
J = Tt(M);
|
|
1860
1862
|
break;
|
|
1861
|
-
case
|
|
1862
|
-
J =
|
|
1863
|
+
case Nt:
|
|
1864
|
+
J = Mi(M);
|
|
1863
1865
|
break;
|
|
1864
1866
|
case et:
|
|
1865
|
-
J = Bi(
|
|
1867
|
+
J = Bi(M);
|
|
1866
1868
|
break;
|
|
1867
1869
|
}
|
|
1868
1870
|
if ((J == xt || J == Lt) && (e = wt), J == Te || J == xt)
|
|
1869
1871
|
return t.avail_out === 0 && (a = -1), Le;
|
|
1870
1872
|
if (J == Dt) {
|
|
1871
|
-
if (
|
|
1873
|
+
if (M == Hn)
|
|
1872
1874
|
y();
|
|
1873
|
-
else if (re(0, 0, !1),
|
|
1875
|
+
else if (re(0, 0, !1), M == fs)
|
|
1874
1876
|
for (U = 0; U < A; U++)
|
|
1875
1877
|
w[U] = 0;
|
|
1876
1878
|
if (t.flush_pending(), t.avail_out === 0)
|
|
1877
1879
|
return a = -1, Le;
|
|
1878
1880
|
}
|
|
1879
1881
|
}
|
|
1880
|
-
return
|
|
1882
|
+
return M != Ee ? Le : Zr;
|
|
1881
1883
|
};
|
|
1882
1884
|
}
|
|
1883
|
-
function
|
|
1885
|
+
function Xr() {
|
|
1884
1886
|
const n = this;
|
|
1885
1887
|
n.next_in_index = 0, n.next_out_index = 0, n.avail_in = 0, n.total_in = 0, n.avail_out = 0, n.total_out = 0;
|
|
1886
1888
|
}
|
|
1887
|
-
|
|
1889
|
+
Xr.prototype = {
|
|
1888
1890
|
deflateInit(n, t) {
|
|
1889
1891
|
const e = this;
|
|
1890
|
-
return e.dstate = new
|
|
1892
|
+
return e.dstate = new ys(), t || (t = yt), e.dstate.deflateInit(e, n, t);
|
|
1891
1893
|
},
|
|
1892
1894
|
deflate(n) {
|
|
1893
1895
|
const t = this;
|
|
@@ -1928,8 +1930,8 @@ Kr.prototype = {
|
|
|
1928
1930
|
t > n.avail_out && (t = n.avail_out), t !== 0 && (n.next_out.set(n.dstate.pending_buf.subarray(n.dstate.pending_out, n.dstate.pending_out + t), n.next_out_index), n.next_out_index += t, n.dstate.pending_out += t, n.total_out += t, n.avail_out -= t, n.dstate.pending -= t, n.dstate.pending === 0 && (n.dstate.pending_out = 0));
|
|
1929
1931
|
}
|
|
1930
1932
|
};
|
|
1931
|
-
function
|
|
1932
|
-
const t = this, e = new
|
|
1933
|
+
function vs(n) {
|
|
1934
|
+
const t = this, e = new Xr(), r = Es(n && n.chunkSize ? n.chunkSize : 64 * 1024), a = lt, o = new Uint8Array(r);
|
|
1933
1935
|
let c = n ? n.level : Vt;
|
|
1934
1936
|
typeof c > "u" && (c = Vt), e.deflateInit(c), e.next_out = o, t.append = function(l, u) {
|
|
1935
1937
|
let g, x, w = 0, _ = 0, A = 0;
|
|
@@ -1949,7 +1951,7 @@ function ys(n) {
|
|
|
1949
1951
|
let l, u, g = 0, x = 0;
|
|
1950
1952
|
const w = [];
|
|
1951
1953
|
do {
|
|
1952
|
-
if (e.next_out_index = 0, e.avail_out = r, l = e.deflate(Ee), l !=
|
|
1954
|
+
if (e.next_out_index = 0, e.avail_out = r, l = e.deflate(Ee), l != Zr && l != Le)
|
|
1953
1955
|
throw new Error("deflating: " + e.msg);
|
|
1954
1956
|
r - e.avail_out > 0 && w.push(o.slice(0, e.next_out_index)), x += e.next_out_index;
|
|
1955
1957
|
} while (e.avail_in > 0 || e.avail_out === 0);
|
|
@@ -1958,10 +1960,10 @@ function ys(n) {
|
|
|
1958
1960
|
}), u;
|
|
1959
1961
|
};
|
|
1960
1962
|
}
|
|
1961
|
-
function
|
|
1963
|
+
function Es(n) {
|
|
1962
1964
|
return n + 5 * (Math.floor(n / 16383) + 1);
|
|
1963
1965
|
}
|
|
1964
|
-
const
|
|
1966
|
+
const ks = 15, Q = 0, qe = 1, Ss = 2, ke = -2, se = -3, Vn = -4, je = -5, Ae = [
|
|
1965
1967
|
0,
|
|
1966
1968
|
1,
|
|
1967
1969
|
3,
|
|
@@ -1979,7 +1981,7 @@ const Es = 15, Q = 0, qe = 1, ks = 2, ke = -2, se = -3, Zn = -4, je = -5, Ae = [
|
|
|
1979
1981
|
16383,
|
|
1980
1982
|
32767,
|
|
1981
1983
|
65535
|
|
1982
|
-
],
|
|
1984
|
+
], $r = 1440, As = 0, Ts = 4, Fs = 9, Rs = 5, Cs = [
|
|
1983
1985
|
96,
|
|
1984
1986
|
7,
|
|
1985
1987
|
256,
|
|
@@ -3516,7 +3518,7 @@ const Es = 15, Q = 0, qe = 1, ks = 2, ke = -2, se = -3, Zn = -4, je = -5, Ae = [
|
|
|
3516
3518
|
0,
|
|
3517
3519
|
9,
|
|
3518
3520
|
255
|
|
3519
|
-
],
|
|
3521
|
+
], Is = [
|
|
3520
3522
|
80,
|
|
3521
3523
|
5,
|
|
3522
3524
|
1,
|
|
@@ -3613,7 +3615,7 @@ const Es = 15, Q = 0, qe = 1, ks = 2, ke = -2, se = -3, Zn = -4, je = -5, Ae = [
|
|
|
3613
3615
|
192,
|
|
3614
3616
|
5,
|
|
3615
3617
|
24577
|
|
3616
|
-
],
|
|
3618
|
+
], Ds = [
|
|
3617
3619
|
// Copy lengths for literal codes 257..285
|
|
3618
3620
|
3,
|
|
3619
3621
|
4,
|
|
@@ -3646,7 +3648,7 @@ const Es = 15, Q = 0, qe = 1, ks = 2, ke = -2, se = -3, Zn = -4, je = -5, Ae = [
|
|
|
3646
3648
|
258,
|
|
3647
3649
|
0,
|
|
3648
3650
|
0
|
|
3649
|
-
],
|
|
3651
|
+
], Ls = [
|
|
3650
3652
|
// Extra bits for literal codes 257..285
|
|
3651
3653
|
0,
|
|
3652
3654
|
0,
|
|
@@ -3680,7 +3682,7 @@ const Es = 15, Q = 0, qe = 1, ks = 2, ke = -2, se = -3, Zn = -4, je = -5, Ae = [
|
|
|
3680
3682
|
112,
|
|
3681
3683
|
112
|
|
3682
3684
|
// 112==invalid
|
|
3683
|
-
],
|
|
3685
|
+
], Us = [
|
|
3684
3686
|
// Copy offsets for distance codes 0..29
|
|
3685
3687
|
1,
|
|
3686
3688
|
2,
|
|
@@ -3712,7 +3714,7 @@ const Es = 15, Q = 0, qe = 1, ks = 2, ke = -2, se = -3, Zn = -4, je = -5, Ae = [
|
|
|
3712
3714
|
12289,
|
|
3713
3715
|
16385,
|
|
3714
3716
|
24577
|
|
3715
|
-
],
|
|
3717
|
+
], Os = [
|
|
3716
3718
|
// Extra bits for distance codes
|
|
3717
3719
|
0,
|
|
3718
3720
|
0,
|
|
@@ -3777,7 +3779,7 @@ function yn() {
|
|
|
3777
3779
|
if (F++, H += k, X = T - H, X = X > k ? k : X, (S = 1 << (I = v - H)) > D + 1 && (S -= D + 1, j = v, I < X))
|
|
3778
3780
|
for (; ++I < X && !((S <<= 1) <= r[++j]); )
|
|
3779
3781
|
S -= r[j];
|
|
3780
|
-
if (X = 1 << I, E[0] + X >
|
|
3782
|
+
if (X = 1 << I, E[0] + X > $r)
|
|
3781
3783
|
return se;
|
|
3782
3784
|
o[F] = Z = /* hp+ */
|
|
3783
3785
|
E[0], E[0] += X, F !== 0 ? (c[F] = b, a[0] = /* (byte) */
|
|
@@ -3812,14 +3814,14 @@ function yn() {
|
|
|
3812
3814
|
return u(19), t[0] = 0, P = l(g, 0, 19, 19, null, null, w, x, _, t, e), P == se ? A.msg = "oversubscribed dynamic bit lengths tree" : (P == je || x[0] === 0) && (A.msg = "incomplete dynamic bit lengths tree", P = se), P;
|
|
3813
3815
|
}, n.inflate_trees_dynamic = function(g, x, w, _, A, P, h, p, m) {
|
|
3814
3816
|
let E;
|
|
3815
|
-
return u(288), t[0] = 0, E = l(w, 0, g, 257,
|
|
3817
|
+
return u(288), t[0] = 0, E = l(w, 0, g, 257, Ds, Ls, P, _, p, t, e), E != Q || _[0] === 0 ? (E == se ? m.msg = "oversubscribed literal/length tree" : E != Vn && (m.msg = "incomplete literal/length tree", E = se), E) : (u(288), E = l(w, g, x, 0, Us, Os, h, A, p, t, e), E != Q || A[0] === 0 && g > 257 ? (E == se ? m.msg = "oversubscribed distance tree" : E == je ? (m.msg = "incomplete distance tree", E = se) : E != Vn && (m.msg = "empty distance tree with lengths", E = se), E) : Q);
|
|
3816
3818
|
};
|
|
3817
3819
|
}
|
|
3818
3820
|
yn.inflate_trees_fixed = function(n, t, e, r) {
|
|
3819
|
-
return n[0] =
|
|
3821
|
+
return n[0] = Fs, t[0] = Rs, e[0] = Cs, r[0] = Is, Q;
|
|
3820
3822
|
};
|
|
3821
|
-
const Ot = 0,
|
|
3822
|
-
function
|
|
3823
|
+
const Ot = 0, Zn = 1, Kn = 2, Xn = 3, $n = 4, Jn = 5, zn = 6, cn = 7, Qn = 8, Pt = 9;
|
|
3824
|
+
function Ps() {
|
|
3823
3825
|
const n = this;
|
|
3824
3826
|
let t, e = 0, r, a = 0, o = 0, c = 0, l = 0, u = 0, g = 0, x = 0, w, _ = 0, A, P = 0;
|
|
3825
3827
|
function h(p, m, E, R, D, S, T, F) {
|
|
@@ -3898,8 +3900,8 @@ function Os() {
|
|
|
3898
3900
|
t = E == qe ? cn : Pt;
|
|
3899
3901
|
break;
|
|
3900
3902
|
}
|
|
3901
|
-
o = g, r = w, a = _, t =
|
|
3902
|
-
case
|
|
3903
|
+
o = g, r = w, a = _, t = Zn;
|
|
3904
|
+
case Zn:
|
|
3903
3905
|
for (R = o; F < R; ) {
|
|
3904
3906
|
if (I !== 0)
|
|
3905
3907
|
E = Q;
|
|
@@ -3908,11 +3910,11 @@ function Os() {
|
|
|
3908
3910
|
I--, T |= (m.read_byte(b++) & 255) << F, F += 8;
|
|
3909
3911
|
}
|
|
3910
3912
|
if (D = (a + (T & Ae[R])) * 3, T >>>= r[D + 1], F -= r[D + 1], S = r[D], S === 0) {
|
|
3911
|
-
c = r[D + 2], t =
|
|
3913
|
+
c = r[D + 2], t = zn;
|
|
3912
3914
|
break;
|
|
3913
3915
|
}
|
|
3914
3916
|
if (S & 16) {
|
|
3915
|
-
l = S & 15, e = r[D + 2], t =
|
|
3917
|
+
l = S & 15, e = r[D + 2], t = Kn;
|
|
3916
3918
|
break;
|
|
3917
3919
|
}
|
|
3918
3920
|
if (!(S & 64)) {
|
|
@@ -3924,7 +3926,7 @@ function Os() {
|
|
|
3924
3926
|
break;
|
|
3925
3927
|
}
|
|
3926
3928
|
return t = Pt, m.msg = "invalid literal/length code", E = se, p.bitb = T, p.bitk = F, m.avail_in = I, m.total_in += b - m.next_in_index, m.next_in_index = b, p.write = v, p.inflate_flush(m, E);
|
|
3927
|
-
case
|
|
3929
|
+
case Kn:
|
|
3928
3930
|
for (R = l; F < R; ) {
|
|
3929
3931
|
if (I !== 0)
|
|
3930
3932
|
E = Q;
|
|
@@ -3932,8 +3934,8 @@ function Os() {
|
|
|
3932
3934
|
return p.bitb = T, p.bitk = F, m.avail_in = I, m.total_in += b - m.next_in_index, m.next_in_index = b, p.write = v, p.inflate_flush(m, E);
|
|
3933
3935
|
I--, T |= (m.read_byte(b++) & 255) << F, F += 8;
|
|
3934
3936
|
}
|
|
3935
|
-
e += T & Ae[R], T >>= R, F -= R, o = x, r = A, a = P, t =
|
|
3936
|
-
case
|
|
3937
|
+
e += T & Ae[R], T >>= R, F -= R, o = x, r = A, a = P, t = Xn;
|
|
3938
|
+
case Xn:
|
|
3937
3939
|
for (R = o; F < R; ) {
|
|
3938
3940
|
if (I !== 0)
|
|
3939
3941
|
E = Q;
|
|
@@ -3942,7 +3944,7 @@ function Os() {
|
|
|
3942
3944
|
I--, T |= (m.read_byte(b++) & 255) << F, F += 8;
|
|
3943
3945
|
}
|
|
3944
3946
|
if (D = (a + (T & Ae[R])) * 3, T >>= r[D + 1], F -= r[D + 1], S = r[D], S & 16) {
|
|
3945
|
-
l = S & 15, u = r[D + 2], t =
|
|
3947
|
+
l = S & 15, u = r[D + 2], t = $n;
|
|
3946
3948
|
break;
|
|
3947
3949
|
}
|
|
3948
3950
|
if (!(S & 64)) {
|
|
@@ -3950,7 +3952,7 @@ function Os() {
|
|
|
3950
3952
|
break;
|
|
3951
3953
|
}
|
|
3952
3954
|
return t = Pt, m.msg = "invalid distance code", E = se, p.bitb = T, p.bitk = F, m.avail_in = I, m.total_in += b - m.next_in_index, m.next_in_index = b, p.write = v, p.inflate_flush(m, E);
|
|
3953
|
-
case
|
|
3955
|
+
case $n:
|
|
3954
3956
|
for (R = l; F < R; ) {
|
|
3955
3957
|
if (I !== 0)
|
|
3956
3958
|
E = Q;
|
|
@@ -3958,8 +3960,8 @@ function Os() {
|
|
|
3958
3960
|
return p.bitb = T, p.bitk = F, m.avail_in = I, m.total_in += b - m.next_in_index, m.next_in_index = b, p.write = v, p.inflate_flush(m, E);
|
|
3959
3961
|
I--, T |= (m.read_byte(b++) & 255) << F, F += 8;
|
|
3960
3962
|
}
|
|
3961
|
-
u += T & Ae[R], T >>= R, F -= R, t =
|
|
3962
|
-
case
|
|
3963
|
+
u += T & Ae[R], T >>= R, F -= R, t = Jn;
|
|
3964
|
+
case Jn:
|
|
3963
3965
|
for (W = v - u; W < 0; )
|
|
3964
3966
|
W += p.end;
|
|
3965
3967
|
for (; e !== 0; ) {
|
|
@@ -3969,7 +3971,7 @@ function Os() {
|
|
|
3969
3971
|
}
|
|
3970
3972
|
t = Ot;
|
|
3971
3973
|
break;
|
|
3972
|
-
case
|
|
3974
|
+
case zn:
|
|
3973
3975
|
if (k === 0 && (v == p.end && p.read !== 0 && (v = 0, k = v < p.read ? p.read - v - 1 : p.end - v), k === 0 && (p.write = v, E = p.inflate_flush(m, E), v = p.write, k = v < p.read ? p.read - v - 1 : p.end - v, v == p.end && p.read !== 0 && (v = 0, k = v < p.read ? p.read - v - 1 : p.end - v), k === 0)))
|
|
3974
3976
|
return p.bitb = T, p.bitk = F, m.avail_in = I, m.total_in += b - m.next_in_index, m.next_in_index = b, p.write = v, p.inflate_flush(m, E);
|
|
3975
3977
|
E = Q, p.win[v++] = /* (byte) */
|
|
@@ -3978,8 +3980,8 @@ function Os() {
|
|
|
3978
3980
|
case cn:
|
|
3979
3981
|
if (F > 7 && (F -= 8, I++, b--), p.write = v, E = p.inflate_flush(m, E), v = p.write, k = v < p.read ? p.read - v - 1 : p.end - v, p.read != p.write)
|
|
3980
3982
|
return p.bitb = T, p.bitk = F, m.avail_in = I, m.total_in += b - m.next_in_index, m.next_in_index = b, p.write = v, p.inflate_flush(m, E);
|
|
3981
|
-
t =
|
|
3982
|
-
case
|
|
3983
|
+
t = Qn;
|
|
3984
|
+
case Qn:
|
|
3983
3985
|
return E = qe, p.bitb = T, p.bitk = F, m.avail_in = I, m.total_in += b - m.next_in_index, m.next_in_index = b, p.write = v, p.inflate_flush(m, E);
|
|
3984
3986
|
case Pt:
|
|
3985
3987
|
return E = se, p.bitb = T, p.bitk = F, m.avail_in = I, m.total_in += b - m.next_in_index, m.next_in_index = b, p.write = v, p.inflate_flush(m, E);
|
|
@@ -3989,7 +3991,7 @@ function Os() {
|
|
|
3989
3991
|
}, n.free = function() {
|
|
3990
3992
|
};
|
|
3991
3993
|
}
|
|
3992
|
-
const
|
|
3994
|
+
const er = [
|
|
3993
3995
|
// Order of the bit length code lengths
|
|
3994
3996
|
16,
|
|
3995
3997
|
17,
|
|
@@ -4010,15 +4012,15 @@ const tr = [
|
|
|
4010
4012
|
14,
|
|
4011
4013
|
1,
|
|
4012
4014
|
15
|
|
4013
|
-
], ot = 0, ln = 1,
|
|
4014
|
-
function
|
|
4015
|
+
], ot = 0, ln = 1, tr = 2, nr = 3, rr = 4, ir = 5, Mt = 6, Bt = 7, sr = 8, Qe = 9;
|
|
4016
|
+
function Ms(n, t) {
|
|
4015
4017
|
const e = this;
|
|
4016
4018
|
let r = ot, a = 0, o = 0, c = 0, l;
|
|
4017
|
-
const u = [0], g = [0], x = new
|
|
4018
|
-
let w = 0, _ = new Int32Array(
|
|
4019
|
+
const u = [0], g = [0], x = new Ps();
|
|
4020
|
+
let w = 0, _ = new Int32Array($r * 3);
|
|
4019
4021
|
const A = 0, P = new yn();
|
|
4020
4022
|
e.bitk = 0, e.bitb = 0, e.win = new Uint8Array(t), e.end = t, e.read = 0, e.write = 0, e.reset = function(h, p) {
|
|
4021
|
-
p && (p[0] = A), r ==
|
|
4023
|
+
p && (p[0] = A), r == Mt && x.free(h), r = ot, e.bitk = 0, e.bitb = 0, e.read = e.write = 0;
|
|
4022
4024
|
}, e.reset(n, null), e.inflate_flush = function(h, p) {
|
|
4023
4025
|
let m, E, R;
|
|
4024
4026
|
return E = h.next_out_index, R = e.read, m = /* (int) */
|
|
@@ -4043,10 +4045,10 @@ function Ps(n, t) {
|
|
|
4043
4045
|
E >>>= 3, R -= 3, m = R & 7, E >>>= m, R -= m, r = ln;
|
|
4044
4046
|
break;
|
|
4045
4047
|
case 1:
|
|
4046
|
-
I = [], v = [], k = [[]], W = [[]], yn.inflate_trees_fixed(I, v, k, W), x.init(I[0], v[0], k[0], 0, W[0], 0), E >>>= 3, R -= 3, r =
|
|
4048
|
+
I = [], v = [], k = [[]], W = [[]], yn.inflate_trees_fixed(I, v, k, W), x.init(I[0], v[0], k[0], 0, W[0], 0), E >>>= 3, R -= 3, r = Mt;
|
|
4047
4049
|
break;
|
|
4048
4050
|
case 2:
|
|
4049
|
-
E >>>= 3, R -= 3, r =
|
|
4051
|
+
E >>>= 3, R -= 3, r = nr;
|
|
4050
4052
|
break;
|
|
4051
4053
|
case 3:
|
|
4052
4054
|
return E >>>= 3, R -= 3, r = Qe, h.msg = "invalid block type", p = se, e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, e.inflate_flush(h, p);
|
|
@@ -4062,9 +4064,9 @@ function Ps(n, t) {
|
|
|
4062
4064
|
}
|
|
4063
4065
|
if ((~E >>> 16 & 65535) != (E & 65535))
|
|
4064
4066
|
return r = Qe, h.msg = "invalid stored block lengths", p = se, e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, e.inflate_flush(h, p);
|
|
4065
|
-
a = E & 65535, E = R = 0, r = a !== 0 ?
|
|
4067
|
+
a = E & 65535, E = R = 0, r = a !== 0 ? tr : w !== 0 ? Bt : ot;
|
|
4066
4068
|
break;
|
|
4067
|
-
case
|
|
4069
|
+
case tr:
|
|
4068
4070
|
if (S === 0 || F === 0 && (T == e.end && e.read !== 0 && (T = 0, F = /* (int) */
|
|
4069
4071
|
T < e.read ? e.read - T - 1 : e.end - T), F === 0 && (e.write = T, p = e.inflate_flush(h, p), T = e.write, F = /* (int) */
|
|
4070
4072
|
T < e.read ? e.read - T - 1 : e.end - T, T == e.end && e.read !== 0 && (T = 0, F = /* (int) */
|
|
@@ -4072,9 +4074,9 @@ function Ps(n, t) {
|
|
|
4072
4074
|
return e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, e.inflate_flush(h, p);
|
|
4073
4075
|
if (p = Q, m = a, m > S && (m = S), m > F && (m = F), e.win.set(h.read_buf(D, m), T), D += m, S -= m, T += m, F -= m, (a -= m) !== 0)
|
|
4074
4076
|
break;
|
|
4075
|
-
r = w !== 0 ?
|
|
4077
|
+
r = w !== 0 ? Bt : ot;
|
|
4076
4078
|
break;
|
|
4077
|
-
case
|
|
4079
|
+
case nr:
|
|
4078
4080
|
for (; R < 14; ) {
|
|
4079
4081
|
if (S !== 0)
|
|
4080
4082
|
p = Q;
|
|
@@ -4089,8 +4091,8 @@ function Ps(n, t) {
|
|
|
4089
4091
|
else
|
|
4090
4092
|
for (b = 0; b < m; b++)
|
|
4091
4093
|
l[b] = 0;
|
|
4092
|
-
E >>>= 14, R -= 14, c = 0, r =
|
|
4093
|
-
case
|
|
4094
|
+
E >>>= 14, R -= 14, c = 0, r = rr;
|
|
4095
|
+
case rr:
|
|
4094
4096
|
for (; c < 4 + (o >>> 10); ) {
|
|
4095
4097
|
for (; R < 3; ) {
|
|
4096
4098
|
if (S !== 0)
|
|
@@ -4099,14 +4101,14 @@ function Ps(n, t) {
|
|
|
4099
4101
|
return e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, e.inflate_flush(h, p);
|
|
4100
4102
|
S--, E |= (h.read_byte(D++) & 255) << R, R += 8;
|
|
4101
4103
|
}
|
|
4102
|
-
l[
|
|
4104
|
+
l[er[c++]] = E & 7, E >>>= 3, R -= 3;
|
|
4103
4105
|
}
|
|
4104
4106
|
for (; c < 19; )
|
|
4105
|
-
l[
|
|
4107
|
+
l[er[c++]] = 0;
|
|
4106
4108
|
if (u[0] = 7, m = P.inflate_trees_bits(l, u, g, _, h), m != Q)
|
|
4107
4109
|
return p = m, p == se && (l = null, r = Qe), e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, e.inflate_flush(h, p);
|
|
4108
|
-
c = 0, r =
|
|
4109
|
-
case
|
|
4110
|
+
c = 0, r = ir;
|
|
4111
|
+
case ir:
|
|
4110
4112
|
for (; m = o, !(c >= 258 + (m & 31) + (m >> 5 & 31)); ) {
|
|
4111
4113
|
let K, X;
|
|
4112
4114
|
for (m = u[0]; R < m; ) {
|
|
@@ -4137,8 +4139,8 @@ function Ps(n, t) {
|
|
|
4137
4139
|
}
|
|
4138
4140
|
if (g[0] = -1, O = [], Z = [], H = [], j = [], O[0] = 9, Z[0] = 6, m = o, m = P.inflate_trees_dynamic(257 + (m & 31), 1 + (m >> 5 & 31), l, O, Z, H, j, _, h), m != Q)
|
|
4139
4141
|
return m == se && (l = null, r = Qe), p = m, e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, e.inflate_flush(h, p);
|
|
4140
|
-
x.init(O[0], Z[0], _, H[0], _, j[0]), r =
|
|
4141
|
-
case
|
|
4142
|
+
x.init(O[0], Z[0], _, H[0], _, j[0]), r = Mt;
|
|
4143
|
+
case Mt:
|
|
4142
4144
|
if (e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, (p = x.proc(e, h, p)) != qe)
|
|
4143
4145
|
return e.inflate_flush(h, p);
|
|
4144
4146
|
if (p = Q, x.free(h), D = h.next_in_index, S = h.avail_in, E = e.bitb, R = e.bitk, T = e.write, F = /* (int) */
|
|
@@ -4146,13 +4148,13 @@ function Ps(n, t) {
|
|
|
4146
4148
|
r = ot;
|
|
4147
4149
|
break;
|
|
4148
4150
|
}
|
|
4149
|
-
r =
|
|
4150
|
-
case
|
|
4151
|
+
r = Bt;
|
|
4152
|
+
case Bt:
|
|
4151
4153
|
if (e.write = T, p = e.inflate_flush(h, p), T = e.write, F = /* (int) */
|
|
4152
4154
|
T < e.read ? e.read - T - 1 : e.end - T, e.read != e.write)
|
|
4153
4155
|
return e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, e.inflate_flush(h, p);
|
|
4154
|
-
r =
|
|
4155
|
-
case
|
|
4156
|
+
r = sr;
|
|
4157
|
+
case sr:
|
|
4156
4158
|
return p = qe, e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, e.inflate_flush(h, p);
|
|
4157
4159
|
case Qe:
|
|
4158
4160
|
return p = se, e.bitb = E, e.bitk = R, h.avail_in = S, h.total_in += D - h.next_in_index, h.next_in_index = D, e.write = T, e.inflate_flush(h, p);
|
|
@@ -4168,8 +4170,8 @@ function Ps(n, t) {
|
|
|
4168
4170
|
return r == ln ? 1 : 0;
|
|
4169
4171
|
};
|
|
4170
4172
|
}
|
|
4171
|
-
const Bs = 32, Ns = 8,
|
|
4172
|
-
function
|
|
4173
|
+
const Bs = 32, Ns = 8, Ws = 0, ar = 1, or = 2, cr = 3, lr = 4, fr = 5, fn = 6, _t = 7, ur = 12, Ge = 13, qs = [0, 0, 255, 255];
|
|
4174
|
+
function js() {
|
|
4173
4175
|
const n = this;
|
|
4174
4176
|
n.mode = 0, n.method = 0, n.was = [0], n.need = 0, n.marker = 0, n.wbits = 0;
|
|
4175
4177
|
function t(e) {
|
|
@@ -4178,15 +4180,15 @@ function qs() {
|
|
|
4178
4180
|
n.inflateEnd = function(e) {
|
|
4179
4181
|
return n.blocks && n.blocks.free(e), n.blocks = null, Q;
|
|
4180
4182
|
}, n.inflateInit = function(e, r) {
|
|
4181
|
-
return e.msg = null, n.blocks = null, r < 8 || r > 15 ? (n.inflateEnd(e), ke) : (n.wbits = r, e.istate.blocks = new
|
|
4183
|
+
return e.msg = null, n.blocks = null, r < 8 || r > 15 ? (n.inflateEnd(e), ke) : (n.wbits = r, e.istate.blocks = new Ms(e, 1 << r), t(e), Q);
|
|
4182
4184
|
}, n.inflate = function(e, r) {
|
|
4183
4185
|
let a, o;
|
|
4184
4186
|
if (!e || !e.istate || !e.next_in)
|
|
4185
4187
|
return ke;
|
|
4186
4188
|
const c = e.istate;
|
|
4187
|
-
for (r = r ==
|
|
4189
|
+
for (r = r == Ts ? je : Q, a = je; ; )
|
|
4188
4190
|
switch (c.mode) {
|
|
4189
|
-
case
|
|
4191
|
+
case Ws:
|
|
4190
4192
|
if (e.avail_in === 0)
|
|
4191
4193
|
return a;
|
|
4192
4194
|
if (a = r, e.avail_in--, e.total_in++, ((c.method = e.read_byte(e.next_in_index++)) & 15) != Ns) {
|
|
@@ -4197,8 +4199,8 @@ function qs() {
|
|
|
4197
4199
|
c.mode = Ge, e.msg = "invalid win size", c.marker = 5;
|
|
4198
4200
|
break;
|
|
4199
4201
|
}
|
|
4200
|
-
c.mode =
|
|
4201
|
-
case
|
|
4202
|
+
c.mode = ar;
|
|
4203
|
+
case ar:
|
|
4202
4204
|
if (e.avail_in === 0)
|
|
4203
4205
|
return a;
|
|
4204
4206
|
if (a = r, e.avail_in--, e.total_in++, o = e.read_byte(e.next_in_index++) & 255, ((c.method << 8) + o) % 31 !== 0) {
|
|
@@ -4209,21 +4211,21 @@ function qs() {
|
|
|
4209
4211
|
c.mode = _t;
|
|
4210
4212
|
break;
|
|
4211
4213
|
}
|
|
4212
|
-
c.mode =
|
|
4214
|
+
c.mode = or;
|
|
4215
|
+
case or:
|
|
4216
|
+
if (e.avail_in === 0)
|
|
4217
|
+
return a;
|
|
4218
|
+
a = r, e.avail_in--, e.total_in++, c.need = (e.read_byte(e.next_in_index++) & 255) << 24 & 4278190080, c.mode = cr;
|
|
4213
4219
|
case cr:
|
|
4214
4220
|
if (e.avail_in === 0)
|
|
4215
4221
|
return a;
|
|
4216
|
-
a = r, e.avail_in--, e.total_in++, c.need
|
|
4222
|
+
a = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) << 16 & 16711680, c.mode = lr;
|
|
4217
4223
|
case lr:
|
|
4218
4224
|
if (e.avail_in === 0)
|
|
4219
4225
|
return a;
|
|
4220
|
-
a = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) <<
|
|
4226
|
+
a = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) << 8 & 65280, c.mode = fr;
|
|
4221
4227
|
case fr:
|
|
4222
|
-
|
|
4223
|
-
return a;
|
|
4224
|
-
a = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) << 8 & 65280, c.mode = ur;
|
|
4225
|
-
case ur:
|
|
4226
|
-
return e.avail_in === 0 ? a : (a = r, e.avail_in--, e.total_in++, c.need += e.read_byte(e.next_in_index++) & 255, c.mode = fn, ks);
|
|
4228
|
+
return e.avail_in === 0 ? a : (a = r, e.avail_in--, e.total_in++, c.need += e.read_byte(e.next_in_index++) & 255, c.mode = fn, Ss);
|
|
4227
4229
|
case fn:
|
|
4228
4230
|
return c.mode = Ge, e.msg = "need dictionary", c.marker = 0, ke;
|
|
4229
4231
|
case _t:
|
|
@@ -4233,8 +4235,8 @@ function qs() {
|
|
|
4233
4235
|
}
|
|
4234
4236
|
if (a == Q && (a = r), a != qe)
|
|
4235
4237
|
return a;
|
|
4236
|
-
a = r, c.blocks.reset(e, c.was), c.mode =
|
|
4237
|
-
case
|
|
4238
|
+
a = r, c.blocks.reset(e, c.was), c.mode = ur;
|
|
4239
|
+
case ur:
|
|
4238
4240
|
return e.avail_in = 0, qe;
|
|
4239
4241
|
case Ge:
|
|
4240
4242
|
return se;
|
|
@@ -4255,18 +4257,18 @@ function qs() {
|
|
|
4255
4257
|
if (u.mode != Ge && (u.mode = Ge, u.marker = 0), (r = e.avail_in) === 0)
|
|
4256
4258
|
return je;
|
|
4257
4259
|
for (a = e.next_in_index, o = u.marker; r !== 0 && o < 4; )
|
|
4258
|
-
e.read_byte(a) ==
|
|
4260
|
+
e.read_byte(a) == qs[o] ? o++ : e.read_byte(a) !== 0 ? o = 0 : o = 4 - o, a++, r--;
|
|
4259
4261
|
return e.total_in += a - e.next_in_index, e.next_in_index = a, e.avail_in = r, u.marker = o, o != 4 ? se : (c = e.total_in, l = e.total_out, t(e), e.total_in = c, e.total_out = l, u.mode = _t, Q);
|
|
4260
4262
|
}, n.inflateSyncPoint = function(e) {
|
|
4261
4263
|
return !e || !e.istate || !e.istate.blocks ? ke : e.istate.blocks.sync_point();
|
|
4262
4264
|
};
|
|
4263
4265
|
}
|
|
4264
|
-
function
|
|
4266
|
+
function Jr() {
|
|
4265
4267
|
}
|
|
4266
|
-
|
|
4268
|
+
Jr.prototype = {
|
|
4267
4269
|
inflateInit(n) {
|
|
4268
4270
|
const t = this;
|
|
4269
|
-
return t.istate = new
|
|
4271
|
+
return t.istate = new js(), n || (n = ks), t.istate.inflateInit(t, n);
|
|
4270
4272
|
},
|
|
4271
4273
|
inflate(n) {
|
|
4272
4274
|
const t = this;
|
|
@@ -4294,8 +4296,8 @@ $r.prototype = {
|
|
|
4294
4296
|
return this.next_in.subarray(n, n + t);
|
|
4295
4297
|
}
|
|
4296
4298
|
};
|
|
4297
|
-
function
|
|
4298
|
-
const t = this, e = new
|
|
4299
|
+
function Hs(n) {
|
|
4300
|
+
const t = this, e = new Jr(), r = n && n.chunkSize ? Math.floor(n.chunkSize * 2) : 128 * 1024, a = As, o = new Uint8Array(r);
|
|
4299
4301
|
let c = !1;
|
|
4300
4302
|
e.inflateInit(), e.next_out = o, t.append = function(l, u) {
|
|
4301
4303
|
const g = [];
|
|
@@ -4320,8 +4322,8 @@ function js(n) {
|
|
|
4320
4322
|
e.inflateEnd();
|
|
4321
4323
|
};
|
|
4322
4324
|
}
|
|
4323
|
-
const nt = 4294967295, Ke = 65535,
|
|
4324
|
-
class
|
|
4325
|
+
const nt = 4294967295, Ke = 65535, Ys = 8, Gs = 0, Vs = 99, Zs = 67324752, Ks = 134695760, dr = 33639248, Xs = 101010256, pr = 101075792, $s = 117853008, ct = 22, un = 20, dn = 56, Js = 1, zs = 39169, Qs = 10, ea = 1, ta = 21589, na = 28789, ra = 25461, ia = 6534, mr = 1, sa = 6, hr = 8, xr = 2048, wr = 16, _r = 16384, gr = 73, br = "/", ve = void 0, $e = "undefined", St = "function";
|
|
4326
|
+
class yr {
|
|
4325
4327
|
constructor(t) {
|
|
4326
4328
|
return class extends TransformStream {
|
|
4327
4329
|
constructor(e, r) {
|
|
@@ -4339,27 +4341,27 @@ class vr {
|
|
|
4339
4341
|
};
|
|
4340
4342
|
}
|
|
4341
4343
|
}
|
|
4342
|
-
const
|
|
4343
|
-
let
|
|
4344
|
+
const aa = 64;
|
|
4345
|
+
let zr = 2;
|
|
4344
4346
|
try {
|
|
4345
|
-
typeof navigator != $e && navigator.hardwareConcurrency && (
|
|
4347
|
+
typeof navigator != $e && navigator.hardwareConcurrency && (zr = navigator.hardwareConcurrency);
|
|
4346
4348
|
} catch {
|
|
4347
4349
|
}
|
|
4348
|
-
const
|
|
4350
|
+
const oa = {
|
|
4349
4351
|
chunkSize: 512 * 1024,
|
|
4350
|
-
maxWorkers:
|
|
4352
|
+
maxWorkers: zr,
|
|
4351
4353
|
terminateWorkerTimeout: 5e3,
|
|
4352
4354
|
useWebWorkers: !0,
|
|
4353
4355
|
useCompressionStream: !0,
|
|
4354
4356
|
workerScripts: ve,
|
|
4355
4357
|
CompressionStreamNative: typeof CompressionStream != $e && CompressionStream,
|
|
4356
4358
|
DecompressionStreamNative: typeof DecompressionStream != $e && DecompressionStream
|
|
4357
|
-
}, Xe = Object.assign({},
|
|
4358
|
-
function
|
|
4359
|
+
}, Xe = Object.assign({}, oa);
|
|
4360
|
+
function ca() {
|
|
4359
4361
|
return Xe;
|
|
4360
4362
|
}
|
|
4361
|
-
function
|
|
4362
|
-
return Math.max(n.chunkSize,
|
|
4363
|
+
function la(n) {
|
|
4364
|
+
return Math.max(n.chunkSize, aa);
|
|
4363
4365
|
}
|
|
4364
4366
|
function Dn(n) {
|
|
4365
4367
|
const {
|
|
@@ -4375,7 +4377,7 @@ function Dn(n) {
|
|
|
4375
4377
|
DecompressionStream: x,
|
|
4376
4378
|
workerScripts: w
|
|
4377
4379
|
} = n;
|
|
4378
|
-
if (Ve("baseURL", t), Ve("chunkSize", e), Ve("maxWorkers", r), Ve("terminateWorkerTimeout", a), Ve("useCompressionStream", o), Ve("useWebWorkers", c), l && (Xe.CompressionStream = new
|
|
4380
|
+
if (Ve("baseURL", t), Ve("chunkSize", e), Ve("maxWorkers", r), Ve("terminateWorkerTimeout", a), Ve("useCompressionStream", o), Ve("useWebWorkers", c), l && (Xe.CompressionStream = new yr(l)), u && (Xe.DecompressionStream = new yr(u)), Ve("CompressionStream", g), Ve("DecompressionStream", x), w !== ve) {
|
|
4379
4381
|
const { deflate: _, inflate: A } = w;
|
|
4380
4382
|
if ((_ || A) && (Xe.workerScripts || (Xe.workerScripts = {})), _) {
|
|
4381
4383
|
if (!Array.isArray(_))
|
|
@@ -5986,12 +5988,12 @@ const pn = {
|
|
|
5986
5988
|
}
|
|
5987
5989
|
return n;
|
|
5988
5990
|
})();
|
|
5989
|
-
const
|
|
5991
|
+
const Qr = [];
|
|
5990
5992
|
for (let n = 0; n < 256; n++) {
|
|
5991
5993
|
let t = n;
|
|
5992
5994
|
for (let e = 0; e < 8; e++)
|
|
5993
5995
|
t & 1 ? t = t >>> 1 ^ 3988292384 : t = t >>> 1;
|
|
5994
|
-
|
|
5996
|
+
Qr[n] = t;
|
|
5995
5997
|
}
|
|
5996
5998
|
class Zt {
|
|
5997
5999
|
constructor(t) {
|
|
@@ -6000,14 +6002,14 @@ class Zt {
|
|
|
6000
6002
|
append(t) {
|
|
6001
6003
|
let e = this.crc | 0;
|
|
6002
6004
|
for (let r = 0, a = t.length | 0; r < a; r++)
|
|
6003
|
-
e = e >>> 8 ^
|
|
6005
|
+
e = e >>> 8 ^ Qr[(e ^ t[r]) & 255];
|
|
6004
6006
|
this.crc = e;
|
|
6005
6007
|
}
|
|
6006
6008
|
get() {
|
|
6007
6009
|
return ~this.crc;
|
|
6008
6010
|
}
|
|
6009
6011
|
}
|
|
6010
|
-
class
|
|
6012
|
+
class ei extends TransformStream {
|
|
6011
6013
|
constructor() {
|
|
6012
6014
|
let t;
|
|
6013
6015
|
const e = new Zt();
|
|
@@ -6022,7 +6024,7 @@ class Qr extends TransformStream {
|
|
|
6022
6024
|
}), t = this;
|
|
6023
6025
|
}
|
|
6024
6026
|
}
|
|
6025
|
-
function
|
|
6027
|
+
function fa(n) {
|
|
6026
6028
|
if (typeof TextEncoder == $e) {
|
|
6027
6029
|
n = unescape(encodeURIComponent(n));
|
|
6028
6030
|
const t = new Uint8Array(n.length);
|
|
@@ -6124,8 +6126,8 @@ const ye = {
|
|
|
6124
6126
|
return e & 3 && t.push(ye.partial(8 * (e & 3), r)), t;
|
|
6125
6127
|
}
|
|
6126
6128
|
}
|
|
6127
|
-
},
|
|
6128
|
-
|
|
6129
|
+
}, ti = {};
|
|
6130
|
+
ti.sha1 = class {
|
|
6129
6131
|
constructor(n) {
|
|
6130
6132
|
const t = this;
|
|
6131
6133
|
t.blockSize = 512, t._init = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], t._key = [1518500249, 1859775393, 2400959708, 3395469782], n ? (t._h = n._h.slice(0), t._buffer = n._buffer.slice(0), t._length = n._length) : t.reset();
|
|
@@ -6209,8 +6211,8 @@ ei.sha1 = class {
|
|
|
6209
6211
|
e[0] = e[0] + a | 0, e[1] = e[1] + o | 0, e[2] = e[2] + c | 0, e[3] = e[3] + l | 0, e[4] = e[4] + u | 0;
|
|
6210
6212
|
}
|
|
6211
6213
|
};
|
|
6212
|
-
const
|
|
6213
|
-
|
|
6214
|
+
const ni = {};
|
|
6215
|
+
ni.aes = class {
|
|
6214
6216
|
constructor(n) {
|
|
6215
6217
|
const t = this;
|
|
6216
6218
|
t._tables = [[[], [], [], [], []], [[], [], [], [], []]], t._tables[0][0][0] || t._precompute();
|
|
@@ -6288,7 +6290,7 @@ ti.aes = class {
|
|
|
6288
6290
|
return a;
|
|
6289
6291
|
}
|
|
6290
6292
|
};
|
|
6291
|
-
const
|
|
6293
|
+
const ua = {
|
|
6292
6294
|
/**
|
|
6293
6295
|
* Generate random words with pure js, cryptographically not as strong & safe as native implementation.
|
|
6294
6296
|
* @param {TypedArray} typedArray The array to fill.
|
|
@@ -6308,8 +6310,8 @@ const fa = {
|
|
|
6308
6310
|
}
|
|
6309
6311
|
return n;
|
|
6310
6312
|
}
|
|
6311
|
-
},
|
|
6312
|
-
|
|
6313
|
+
}, ri = {};
|
|
6314
|
+
ri.ctrGladman = class {
|
|
6313
6315
|
constructor(n, t) {
|
|
6314
6316
|
this._prf = n, this._initIv = t, this._iv = t;
|
|
6315
6317
|
}
|
|
@@ -6370,7 +6372,7 @@ const rt = {
|
|
|
6370
6372
|
};
|
|
6371
6373
|
rt.hmacSha1 = class {
|
|
6372
6374
|
constructor(n) {
|
|
6373
|
-
const t = this, e = t._hash =
|
|
6375
|
+
const t = this, e = t._hash = ti.sha1, r = [[], []];
|
|
6374
6376
|
t._baseHash = [new e(), new e()];
|
|
6375
6377
|
const a = t._baseHash[0].blockSize / 32;
|
|
6376
6378
|
n.length > a && (n = new e().update(n).finalize());
|
|
@@ -6396,19 +6398,19 @@ rt.hmacSha1 = class {
|
|
|
6396
6398
|
return this.update(n), this.digest(n);
|
|
6397
6399
|
}
|
|
6398
6400
|
};
|
|
6399
|
-
const
|
|
6400
|
-
function
|
|
6401
|
-
return
|
|
6401
|
+
const da = typeof crypto != $e && typeof crypto.getRandomValues == St, ii = "Invalid password", si = "Invalid signature", Ln = "zipjs-abort-check-password";
|
|
6402
|
+
function ai(n) {
|
|
6403
|
+
return da ? crypto.getRandomValues(n) : ua.getRandomValues(n);
|
|
6402
6404
|
}
|
|
6403
|
-
const ft = 16,
|
|
6404
|
-
let
|
|
6405
|
-
class
|
|
6405
|
+
const ft = 16, pa = "raw", oi = { name: "PBKDF2" }, ma = { name: "HMAC" }, ha = "SHA-1", xa = Object.assign({ hash: ma }, oi), vn = Object.assign({ iterations: 1e3, hash: { name: ha } }, oi), wa = ["deriveBits"], vt = [8, 12, 16], gt = [16, 24, 32], Ze = 10, _a = [0, 0, 0, 0], en = typeof crypto != $e, At = en && crypto.subtle, ci = en && typeof At != $e, Me = Kt.bytes, ga = ni.aes, ba = ri.ctrGladman, ya = rt.hmacSha1;
|
|
6406
|
+
let vr = en && ci && typeof At.importKey == St, Er = en && ci && typeof At.deriveBits == St;
|
|
6407
|
+
class va extends TransformStream {
|
|
6406
6408
|
constructor({ password: t, rawPassword: e, signed: r, encryptionStrength: a, checkPasswordOnly: o }) {
|
|
6407
6409
|
super({
|
|
6408
6410
|
start() {
|
|
6409
6411
|
Object.assign(this, {
|
|
6410
6412
|
ready: new Promise((c) => this.resolveReady = c),
|
|
6411
|
-
password:
|
|
6413
|
+
password: ui(t, e),
|
|
6412
6414
|
signed: r,
|
|
6413
6415
|
strength: a - 1,
|
|
6414
6416
|
pending: new Uint8Array()
|
|
@@ -6421,9 +6423,9 @@ class ya extends TransformStream {
|
|
|
6421
6423
|
resolveReady: w,
|
|
6422
6424
|
ready: _
|
|
6423
6425
|
} = u;
|
|
6424
|
-
g ? (await
|
|
6426
|
+
g ? (await ka(u, x, g, Re(c, 0, vt[x] + 2)), c = Re(c, vt[x] + 2), o ? l.error(new Error(Ln)) : w()) : await _;
|
|
6425
6427
|
const A = new Uint8Array(c.length - Ze - (c.length - Ze) % ft);
|
|
6426
|
-
l.enqueue(
|
|
6428
|
+
l.enqueue(li(u, c, A, 0, Ze, !0));
|
|
6427
6429
|
},
|
|
6428
6430
|
async flush(c) {
|
|
6429
6431
|
const {
|
|
@@ -6438,16 +6440,16 @@ class ya extends TransformStream {
|
|
|
6438
6440
|
const _ = Re(x, 0, x.length - Ze), A = Re(x, x.length - Ze);
|
|
6439
6441
|
let P = new Uint8Array();
|
|
6440
6442
|
if (_.length) {
|
|
6441
|
-
const h =
|
|
6443
|
+
const h = kt(Me, _);
|
|
6442
6444
|
g.update(h);
|
|
6443
6445
|
const p = u.update(h);
|
|
6444
|
-
P =
|
|
6446
|
+
P = Et(Me, p);
|
|
6445
6447
|
}
|
|
6446
6448
|
if (l) {
|
|
6447
|
-
const h = Re(
|
|
6449
|
+
const h = Re(Et(Me, g.digest()), 0, Ze);
|
|
6448
6450
|
for (let p = 0; p < Ze; p++)
|
|
6449
6451
|
if (h[p] != A[p])
|
|
6450
|
-
throw new Error(
|
|
6452
|
+
throw new Error(si);
|
|
6451
6453
|
}
|
|
6452
6454
|
c.enqueue(P);
|
|
6453
6455
|
}
|
|
@@ -6455,14 +6457,14 @@ class ya extends TransformStream {
|
|
|
6455
6457
|
});
|
|
6456
6458
|
}
|
|
6457
6459
|
}
|
|
6458
|
-
class
|
|
6460
|
+
class Ea extends TransformStream {
|
|
6459
6461
|
constructor({ password: t, rawPassword: e, encryptionStrength: r }) {
|
|
6460
6462
|
let a;
|
|
6461
6463
|
super({
|
|
6462
6464
|
start() {
|
|
6463
6465
|
Object.assign(this, {
|
|
6464
6466
|
ready: new Promise((o) => this.resolveReady = o),
|
|
6465
|
-
password:
|
|
6467
|
+
password: ui(t, e),
|
|
6466
6468
|
strength: r - 1,
|
|
6467
6469
|
pending: new Uint8Array()
|
|
6468
6470
|
});
|
|
@@ -6475,9 +6477,9 @@ class va extends TransformStream {
|
|
|
6475
6477
|
ready: w
|
|
6476
6478
|
} = l;
|
|
6477
6479
|
let _ = new Uint8Array();
|
|
6478
|
-
u ? (_ = await
|
|
6480
|
+
u ? (_ = await Sa(l, g, u), x()) : await w;
|
|
6479
6481
|
const A = new Uint8Array(_.length + o.length - o.length % ft);
|
|
6480
|
-
A.set(_, 0), c.enqueue(
|
|
6482
|
+
A.set(_, 0), c.enqueue(li(l, o, A, _.length, 0));
|
|
6481
6483
|
},
|
|
6482
6484
|
async flush(o) {
|
|
6483
6485
|
const {
|
|
@@ -6490,81 +6492,81 @@ class va extends TransformStream {
|
|
|
6490
6492
|
await g;
|
|
6491
6493
|
let x = new Uint8Array();
|
|
6492
6494
|
if (u.length) {
|
|
6493
|
-
const w = c.update(
|
|
6494
|
-
l.update(w), x =
|
|
6495
|
+
const w = c.update(kt(Me, u));
|
|
6496
|
+
l.update(w), x = Et(Me, w);
|
|
6495
6497
|
}
|
|
6496
|
-
a.signature =
|
|
6498
|
+
a.signature = Et(Me, l.digest()).slice(0, Ze), o.enqueue(Un(x, a.signature));
|
|
6497
6499
|
}
|
|
6498
6500
|
}
|
|
6499
6501
|
}), a = this;
|
|
6500
6502
|
}
|
|
6501
6503
|
}
|
|
6502
|
-
function
|
|
6504
|
+
function li(n, t, e, r, a, o) {
|
|
6503
6505
|
const {
|
|
6504
6506
|
ctr: c,
|
|
6505
6507
|
hmac: l,
|
|
6506
6508
|
pending: u
|
|
6507
6509
|
} = n, g = t.length - a;
|
|
6508
|
-
u.length && (t = Un(u, t), e =
|
|
6510
|
+
u.length && (t = Un(u, t), e = Fa(e, g - g % ft));
|
|
6509
6511
|
let x;
|
|
6510
6512
|
for (x = 0; x <= g - ft; x += ft) {
|
|
6511
|
-
const w =
|
|
6513
|
+
const w = kt(Me, Re(t, x, x + ft));
|
|
6512
6514
|
o && l.update(w);
|
|
6513
6515
|
const _ = c.update(w);
|
|
6514
|
-
o || l.update(_), e.set(
|
|
6516
|
+
o || l.update(_), e.set(Et(Me, _), x + r);
|
|
6515
6517
|
}
|
|
6516
6518
|
return n.pending = Re(t, x), e;
|
|
6517
6519
|
}
|
|
6518
|
-
async function
|
|
6519
|
-
const a = await
|
|
6520
|
+
async function ka(n, t, e, r) {
|
|
6521
|
+
const a = await fi(n, t, e, Re(r, 0, vt[t])), o = Re(r, vt[t]);
|
|
6520
6522
|
if (a[0] != o[0] || a[1] != o[1])
|
|
6521
|
-
throw new Error(
|
|
6523
|
+
throw new Error(ii);
|
|
6522
6524
|
}
|
|
6523
|
-
async function
|
|
6524
|
-
const r =
|
|
6525
|
+
async function Sa(n, t, e) {
|
|
6526
|
+
const r = ai(new Uint8Array(vt[t])), a = await fi(n, t, e, r);
|
|
6525
6527
|
return Un(r, a);
|
|
6526
6528
|
}
|
|
6527
|
-
async function
|
|
6529
|
+
async function fi(n, t, e, r) {
|
|
6528
6530
|
n.password = null;
|
|
6529
|
-
const a = await
|
|
6531
|
+
const a = await Aa(pa, e, xa, !1, wa), o = await Ta(Object.assign({ salt: r }, vn), a, 8 * (gt[t] * 2 + 2)), c = new Uint8Array(o), l = kt(Me, Re(c, 0, gt[t])), u = kt(Me, Re(c, gt[t], gt[t] * 2)), g = Re(c, gt[t] * 2);
|
|
6530
6532
|
return Object.assign(n, {
|
|
6531
6533
|
keys: {
|
|
6532
6534
|
key: l,
|
|
6533
6535
|
authentication: u,
|
|
6534
6536
|
passwordVerification: g
|
|
6535
6537
|
},
|
|
6536
|
-
ctr: new
|
|
6537
|
-
hmac: new
|
|
6538
|
+
ctr: new ba(new ga(l), Array.from(_a)),
|
|
6539
|
+
hmac: new ya(u)
|
|
6538
6540
|
}), g;
|
|
6539
6541
|
}
|
|
6540
|
-
async function
|
|
6541
|
-
if (
|
|
6542
|
+
async function Aa(n, t, e, r, a) {
|
|
6543
|
+
if (vr)
|
|
6542
6544
|
try {
|
|
6543
|
-
return await
|
|
6545
|
+
return await At.importKey(n, t, e, r, a);
|
|
6544
6546
|
} catch {
|
|
6545
|
-
return
|
|
6547
|
+
return vr = !1, rt.importKey(t);
|
|
6546
6548
|
}
|
|
6547
6549
|
else
|
|
6548
6550
|
return rt.importKey(t);
|
|
6549
6551
|
}
|
|
6550
|
-
async function
|
|
6551
|
-
if (
|
|
6552
|
+
async function Ta(n, t, e) {
|
|
6553
|
+
if (Er)
|
|
6552
6554
|
try {
|
|
6553
|
-
return await
|
|
6555
|
+
return await At.deriveBits(n, t, e);
|
|
6554
6556
|
} catch {
|
|
6555
|
-
return
|
|
6557
|
+
return Er = !1, rt.pbkdf2(t, n.salt, vn.iterations, e);
|
|
6556
6558
|
}
|
|
6557
6559
|
else
|
|
6558
6560
|
return rt.pbkdf2(t, n.salt, vn.iterations, e);
|
|
6559
6561
|
}
|
|
6560
|
-
function
|
|
6561
|
-
return t === ve ?
|
|
6562
|
+
function ui(n, t) {
|
|
6563
|
+
return t === ve ? fa(n) : t;
|
|
6562
6564
|
}
|
|
6563
6565
|
function Un(n, t) {
|
|
6564
6566
|
let e = n;
|
|
6565
6567
|
return n.length + t.length && (e = new Uint8Array(n.length + t.length), e.set(n, 0), e.set(t, n.length)), e;
|
|
6566
6568
|
}
|
|
6567
|
-
function
|
|
6569
|
+
function Fa(n, t) {
|
|
6568
6570
|
if (t && t > n.length) {
|
|
6569
6571
|
const e = n;
|
|
6570
6572
|
n = new Uint8Array(t), n.set(e, 0);
|
|
@@ -6574,71 +6576,71 @@ function Ta(n, t) {
|
|
|
6574
6576
|
function Re(n, t, e) {
|
|
6575
6577
|
return n.subarray(t, e);
|
|
6576
6578
|
}
|
|
6577
|
-
function
|
|
6579
|
+
function Et(n, t) {
|
|
6578
6580
|
return n.fromBits(t);
|
|
6579
6581
|
}
|
|
6580
|
-
function
|
|
6582
|
+
function kt(n, t) {
|
|
6581
6583
|
return n.toBits(t);
|
|
6582
6584
|
}
|
|
6583
6585
|
const ut = 12;
|
|
6584
|
-
class
|
|
6586
|
+
class Ra extends TransformStream {
|
|
6585
6587
|
constructor({ password: t, passwordVerification: e, checkPasswordOnly: r }) {
|
|
6586
6588
|
super({
|
|
6587
6589
|
start() {
|
|
6588
6590
|
Object.assign(this, {
|
|
6589
6591
|
password: t,
|
|
6590
6592
|
passwordVerification: e
|
|
6591
|
-
}),
|
|
6593
|
+
}), di(this, t);
|
|
6592
6594
|
},
|
|
6593
6595
|
transform(a, o) {
|
|
6594
6596
|
const c = this;
|
|
6595
6597
|
if (c.password) {
|
|
6596
|
-
const l =
|
|
6598
|
+
const l = kr(c, a.subarray(0, ut));
|
|
6597
6599
|
if (c.password = null, l[ut - 1] != c.passwordVerification)
|
|
6598
|
-
throw new Error(
|
|
6600
|
+
throw new Error(ii);
|
|
6599
6601
|
a = a.subarray(ut);
|
|
6600
6602
|
}
|
|
6601
|
-
r ? o.error(new Error(Ln)) : o.enqueue(
|
|
6603
|
+
r ? o.error(new Error(Ln)) : o.enqueue(kr(c, a));
|
|
6602
6604
|
}
|
|
6603
6605
|
});
|
|
6604
6606
|
}
|
|
6605
6607
|
}
|
|
6606
|
-
class
|
|
6608
|
+
class Ca extends TransformStream {
|
|
6607
6609
|
constructor({ password: t, passwordVerification: e }) {
|
|
6608
6610
|
super({
|
|
6609
6611
|
start() {
|
|
6610
6612
|
Object.assign(this, {
|
|
6611
6613
|
password: t,
|
|
6612
6614
|
passwordVerification: e
|
|
6613
|
-
}),
|
|
6615
|
+
}), di(this, t);
|
|
6614
6616
|
},
|
|
6615
6617
|
transform(r, a) {
|
|
6616
6618
|
const o = this;
|
|
6617
6619
|
let c, l;
|
|
6618
6620
|
if (o.password) {
|
|
6619
6621
|
o.password = null;
|
|
6620
|
-
const u =
|
|
6621
|
-
u[ut - 1] = o.passwordVerification, c = new Uint8Array(r.length + u.length), c.set(
|
|
6622
|
+
const u = ai(new Uint8Array(ut));
|
|
6623
|
+
u[ut - 1] = o.passwordVerification, c = new Uint8Array(r.length + u.length), c.set(Sr(o, u), 0), l = ut;
|
|
6622
6624
|
} else
|
|
6623
6625
|
c = new Uint8Array(r.length), l = 0;
|
|
6624
|
-
c.set(
|
|
6626
|
+
c.set(Sr(o, r), l), a.enqueue(c);
|
|
6625
6627
|
}
|
|
6626
6628
|
});
|
|
6627
6629
|
}
|
|
6628
6630
|
}
|
|
6629
|
-
function
|
|
6631
|
+
function kr(n, t) {
|
|
6630
6632
|
const e = new Uint8Array(t.length);
|
|
6631
6633
|
for (let r = 0; r < t.length; r++)
|
|
6632
|
-
e[r] =
|
|
6634
|
+
e[r] = pi(n) ^ t[r], On(n, e[r]);
|
|
6633
6635
|
return e;
|
|
6634
6636
|
}
|
|
6635
|
-
function
|
|
6637
|
+
function Sr(n, t) {
|
|
6636
6638
|
const e = new Uint8Array(t.length);
|
|
6637
6639
|
for (let r = 0; r < t.length; r++)
|
|
6638
|
-
e[r] =
|
|
6640
|
+
e[r] = pi(n) ^ t[r], On(n, t[r]);
|
|
6639
6641
|
return e;
|
|
6640
6642
|
}
|
|
6641
|
-
function
|
|
6643
|
+
function di(n, t) {
|
|
6642
6644
|
const e = [305419896, 591751049, 878082192];
|
|
6643
6645
|
Object.assign(n, {
|
|
6644
6646
|
keys: e,
|
|
@@ -6650,66 +6652,66 @@ function ui(n, t) {
|
|
|
6650
6652
|
}
|
|
6651
6653
|
function On(n, t) {
|
|
6652
6654
|
let [e, r, a] = n.keys;
|
|
6653
|
-
n.crcKey0.append([t]), e = ~n.crcKey0.get(), r =
|
|
6655
|
+
n.crcKey0.append([t]), e = ~n.crcKey0.get(), r = Ar(Math.imul(Ar(r + mi(e)), 134775813) + 1), n.crcKey2.append([r >>> 24]), a = ~n.crcKey2.get(), n.keys = [e, r, a];
|
|
6654
6656
|
}
|
|
6655
|
-
function
|
|
6657
|
+
function pi(n) {
|
|
6656
6658
|
const t = n.keys[2] | 2;
|
|
6657
|
-
return
|
|
6659
|
+
return mi(Math.imul(t, t ^ 1) >>> 8);
|
|
6658
6660
|
}
|
|
6659
|
-
function
|
|
6661
|
+
function mi(n) {
|
|
6660
6662
|
return n & 255;
|
|
6661
6663
|
}
|
|
6662
|
-
function
|
|
6664
|
+
function Ar(n) {
|
|
6663
6665
|
return n & 4294967295;
|
|
6664
6666
|
}
|
|
6665
|
-
const
|
|
6666
|
-
class
|
|
6667
|
+
const Tr = "deflate-raw";
|
|
6668
|
+
class Ia extends TransformStream {
|
|
6667
6669
|
constructor(t, { chunkSize: e, CompressionStream: r, CompressionStreamNative: a }) {
|
|
6668
6670
|
super({});
|
|
6669
6671
|
const { compressed: o, encrypted: c, useCompressionStream: l, zipCrypto: u, signed: g, level: x } = t, w = this;
|
|
6670
|
-
let _, A, P =
|
|
6671
|
-
(!c || u) && g && (_ = new
|
|
6672
|
+
let _, A, P = hi(super.readable);
|
|
6673
|
+
(!c || u) && g && (_ = new ei(), P = Be(P, _)), o && (P = wi(P, l, { level: x, chunkSize: e }, a, r)), c && (u ? P = Be(P, new Ca(t)) : (A = new Ea(t), P = Be(P, A))), xi(w, P, () => {
|
|
6672
6674
|
let h;
|
|
6673
6675
|
c && !u && (h = A.signature), (!c || u) && g && (h = new DataView(_.value.buffer).getUint32(0)), w.signature = h;
|
|
6674
6676
|
});
|
|
6675
6677
|
}
|
|
6676
6678
|
}
|
|
6677
|
-
class
|
|
6679
|
+
class Da extends TransformStream {
|
|
6678
6680
|
constructor(t, { chunkSize: e, DecompressionStream: r, DecompressionStreamNative: a }) {
|
|
6679
6681
|
super({});
|
|
6680
6682
|
const { zipCrypto: o, encrypted: c, signed: l, signature: u, compressed: g, useCompressionStream: x } = t;
|
|
6681
|
-
let w, _, A =
|
|
6682
|
-
c && (o ? A =
|
|
6683
|
+
let w, _, A = hi(super.readable);
|
|
6684
|
+
c && (o ? A = Be(A, new Ra(t)) : (_ = new va(t), A = Be(A, _))), g && (A = wi(A, x, { chunkSize: e }, a, r)), (!c || o) && l && (w = new ei(), A = Be(A, w)), xi(this, A, () => {
|
|
6683
6685
|
if ((!c || o) && l) {
|
|
6684
6686
|
const P = new DataView(w.value.buffer);
|
|
6685
6687
|
if (u != P.getUint32(0, !1))
|
|
6686
|
-
throw new Error(
|
|
6688
|
+
throw new Error(si);
|
|
6687
6689
|
}
|
|
6688
6690
|
});
|
|
6689
6691
|
}
|
|
6690
6692
|
}
|
|
6691
|
-
function
|
|
6692
|
-
return
|
|
6693
|
+
function hi(n) {
|
|
6694
|
+
return Be(n, new TransformStream({
|
|
6693
6695
|
transform(t, e) {
|
|
6694
6696
|
t && t.length && e.enqueue(t);
|
|
6695
6697
|
}
|
|
6696
6698
|
}));
|
|
6697
6699
|
}
|
|
6698
|
-
function
|
|
6699
|
-
t =
|
|
6700
|
+
function xi(n, t, e) {
|
|
6701
|
+
t = Be(t, new TransformStream({ flush: e })), Object.defineProperty(n, "readable", {
|
|
6700
6702
|
get() {
|
|
6701
6703
|
return t;
|
|
6702
6704
|
}
|
|
6703
6705
|
});
|
|
6704
6706
|
}
|
|
6705
|
-
function
|
|
6707
|
+
function wi(n, t, e, r, a) {
|
|
6706
6708
|
try {
|
|
6707
6709
|
const o = t && r ? r : a;
|
|
6708
|
-
n =
|
|
6710
|
+
n = Be(n, new o(Tr, e));
|
|
6709
6711
|
} catch {
|
|
6710
6712
|
if (t)
|
|
6711
6713
|
try {
|
|
6712
|
-
n =
|
|
6714
|
+
n = Be(n, new a(Tr, e));
|
|
6713
6715
|
} catch {
|
|
6714
6716
|
return n;
|
|
6715
6717
|
}
|
|
@@ -6718,16 +6720,16 @@ function xi(n, t, e, r, a) {
|
|
|
6718
6720
|
}
|
|
6719
6721
|
return n;
|
|
6720
6722
|
}
|
|
6721
|
-
function
|
|
6723
|
+
function Be(n, t) {
|
|
6722
6724
|
return n.pipeThrough(t);
|
|
6723
6725
|
}
|
|
6724
|
-
const
|
|
6726
|
+
const La = "message", Ua = "start", Oa = "pull", Fr = "data", Pa = "ack", Rr = "close", Ma = "deflate", _i = "inflate";
|
|
6725
6727
|
class Ba extends TransformStream {
|
|
6726
6728
|
constructor(t, e) {
|
|
6727
6729
|
super({});
|
|
6728
6730
|
const r = this, { codecType: a } = t;
|
|
6729
6731
|
let o;
|
|
6730
|
-
a.startsWith(
|
|
6732
|
+
a.startsWith(Ma) ? o = Ia : a.startsWith(_i) && (o = Da);
|
|
6731
6733
|
let c = 0, l = 0;
|
|
6732
6734
|
const u = new o(t, e), g = super.readable, x = new TransformStream({
|
|
6733
6735
|
transform(_, A) {
|
|
@@ -6776,13 +6778,13 @@ class Na extends TransformStream {
|
|
|
6776
6778
|
}
|
|
6777
6779
|
}
|
|
6778
6780
|
}
|
|
6779
|
-
let
|
|
6781
|
+
let gi = typeof Worker != $e;
|
|
6780
6782
|
class mn {
|
|
6781
6783
|
constructor(t, { readable: e, writable: r }, { options: a, config: o, streamOptions: c, useWebWorkers: l, transferStreams: u, scripts: g }, x) {
|
|
6782
6784
|
const { signal: w } = c;
|
|
6783
6785
|
return Object.assign(t, {
|
|
6784
6786
|
busy: !0,
|
|
6785
|
-
readable: e.pipeThrough(new Na(o.chunkSize)).pipeThrough(new
|
|
6787
|
+
readable: e.pipeThrough(new Na(o.chunkSize)).pipeThrough(new Wa(e, c), { signal: w }),
|
|
6786
6788
|
writable: r,
|
|
6787
6789
|
options: Object.assign({}, a),
|
|
6788
6790
|
scripts: g,
|
|
@@ -6797,10 +6799,10 @@ class mn {
|
|
|
6797
6799
|
const { resolveTerminated: _ } = t;
|
|
6798
6800
|
_ && (t.resolveTerminated = null, t.terminated = !0, t.worker.terminate(), _()), t.busy = !1, x(t);
|
|
6799
6801
|
}
|
|
6800
|
-
}), (l &&
|
|
6802
|
+
}), (l && gi ? qa : bi)(t, o);
|
|
6801
6803
|
}
|
|
6802
6804
|
}
|
|
6803
|
-
class
|
|
6805
|
+
class Wa extends TransformStream {
|
|
6804
6806
|
constructor(t, { onstart: e, onprogress: r, size: a, onend: o }) {
|
|
6805
6807
|
let c = 0;
|
|
6806
6808
|
super({
|
|
@@ -6822,30 +6824,30 @@ async function hn(n, ...t) {
|
|
|
6822
6824
|
} catch {
|
|
6823
6825
|
}
|
|
6824
6826
|
}
|
|
6825
|
-
function
|
|
6827
|
+
function bi(n, t) {
|
|
6826
6828
|
return {
|
|
6827
|
-
run: () =>
|
|
6829
|
+
run: () => ja(n, t)
|
|
6828
6830
|
};
|
|
6829
6831
|
}
|
|
6830
|
-
function
|
|
6832
|
+
function qa(n, t) {
|
|
6831
6833
|
const { baseURL: e, chunkSize: r } = t;
|
|
6832
6834
|
if (!n.interface) {
|
|
6833
6835
|
let a;
|
|
6834
6836
|
try {
|
|
6835
|
-
a =
|
|
6837
|
+
a = Ga(n.scripts[0], e, n);
|
|
6836
6838
|
} catch {
|
|
6837
|
-
return
|
|
6839
|
+
return gi = !1, bi(n, t);
|
|
6838
6840
|
}
|
|
6839
6841
|
Object.assign(n, {
|
|
6840
6842
|
worker: a,
|
|
6841
6843
|
interface: {
|
|
6842
|
-
run: () =>
|
|
6844
|
+
run: () => Ha(n, { chunkSize: r })
|
|
6843
6845
|
}
|
|
6844
6846
|
});
|
|
6845
6847
|
}
|
|
6846
6848
|
return n.interface;
|
|
6847
6849
|
}
|
|
6848
|
-
async function
|
|
6850
|
+
async function ja({ options: n, readable: t, writable: e, onTaskFinished: r }, a) {
|
|
6849
6851
|
try {
|
|
6850
6852
|
const o = new Ba(n, a);
|
|
6851
6853
|
await t.pipeThrough(o).pipeTo(e, { preventClose: !0, preventAbort: !0 });
|
|
@@ -6863,7 +6865,7 @@ async function qa({ options: n, readable: t, writable: e, onTaskFinished: r }, a
|
|
|
6863
6865
|
r();
|
|
6864
6866
|
}
|
|
6865
6867
|
}
|
|
6866
|
-
async function
|
|
6868
|
+
async function Ha(n, t) {
|
|
6867
6869
|
let e, r;
|
|
6868
6870
|
const a = new Promise((_, A) => {
|
|
6869
6871
|
e = _, r = A;
|
|
@@ -6875,8 +6877,8 @@ async function ja(n, t) {
|
|
|
6875
6877
|
rejectResult: r,
|
|
6876
6878
|
result: a
|
|
6877
6879
|
});
|
|
6878
|
-
const { readable: o, options: c, scripts: l } = n, { writable: u, closed: g } =
|
|
6879
|
-
type:
|
|
6880
|
+
const { readable: o, options: c, scripts: l } = n, { writable: u, closed: g } = Ya(n.writable), x = qt({
|
|
6881
|
+
type: Ua,
|
|
6880
6882
|
scripts: l.slice(1),
|
|
6881
6883
|
options: c,
|
|
6882
6884
|
config: t,
|
|
@@ -6890,7 +6892,7 @@ async function ja(n, t) {
|
|
|
6890
6892
|
const w = await a;
|
|
6891
6893
|
return x || await u.getWriter().close(), await g, w;
|
|
6892
6894
|
}
|
|
6893
|
-
function
|
|
6895
|
+
function Ya(n) {
|
|
6894
6896
|
let t;
|
|
6895
6897
|
const e = new Promise((a) => t = a);
|
|
6896
6898
|
return { writable: new WritableStream({
|
|
@@ -6906,34 +6908,34 @@ function Ha(n) {
|
|
|
6906
6908
|
}
|
|
6907
6909
|
}), closed: e };
|
|
6908
6910
|
}
|
|
6909
|
-
let
|
|
6910
|
-
function
|
|
6911
|
+
let Cr = !0, Ir = !0;
|
|
6912
|
+
function Ga(n, t, e) {
|
|
6911
6913
|
const r = { type: "module" };
|
|
6912
6914
|
let a, o;
|
|
6913
|
-
typeof n ==
|
|
6915
|
+
typeof n == St && (n = n());
|
|
6914
6916
|
try {
|
|
6915
6917
|
a = new URL(n, t);
|
|
6916
6918
|
} catch {
|
|
6917
6919
|
a = n;
|
|
6918
6920
|
}
|
|
6919
|
-
if (
|
|
6921
|
+
if (Cr)
|
|
6920
6922
|
try {
|
|
6921
6923
|
o = new Worker(a);
|
|
6922
6924
|
} catch {
|
|
6923
|
-
|
|
6925
|
+
Cr = !1, o = new Worker(a, r);
|
|
6924
6926
|
}
|
|
6925
6927
|
else
|
|
6926
6928
|
o = new Worker(a, r);
|
|
6927
|
-
return o.addEventListener(
|
|
6929
|
+
return o.addEventListener(La, (c) => Va(c, e)), o;
|
|
6928
6930
|
}
|
|
6929
6931
|
function qt(n, { worker: t, writer: e, onTaskFinished: r, transferStreams: a }) {
|
|
6930
6932
|
try {
|
|
6931
6933
|
const { value: o, readable: c, writable: l } = n, u = [];
|
|
6932
|
-
if (o && (o.byteLength < o.buffer.byteLength ? n.value = o.buffer.slice(0, o.byteLength) : n.value = o.buffer, u.push(n.value)), a &&
|
|
6934
|
+
if (o && (o.byteLength < o.buffer.byteLength ? n.value = o.buffer.slice(0, o.byteLength) : n.value = o.buffer, u.push(n.value)), a && Ir ? (c && u.push(c), l && u.push(l)) : n.readable = n.writable = null, u.length)
|
|
6933
6935
|
try {
|
|
6934
6936
|
return t.postMessage(n, u), !0;
|
|
6935
6937
|
} catch {
|
|
6936
|
-
|
|
6938
|
+
Ir = !1, n.readable = n.writable = null, t.postMessage(n);
|
|
6937
6939
|
}
|
|
6938
6940
|
else
|
|
6939
6941
|
t.postMessage(n);
|
|
@@ -6941,21 +6943,21 @@ function qt(n, { worker: t, writer: e, onTaskFinished: r, transferStreams: a })
|
|
|
6941
6943
|
throw e && e.releaseLock(), r(), o;
|
|
6942
6944
|
}
|
|
6943
6945
|
}
|
|
6944
|
-
async function
|
|
6946
|
+
async function Va({ data: n }, t) {
|
|
6945
6947
|
const { type: e, value: r, messageId: a, result: o, error: c } = n, { reader: l, writer: u, resolveResult: g, rejectResult: x, onTaskFinished: w } = t;
|
|
6946
6948
|
try {
|
|
6947
6949
|
if (c) {
|
|
6948
6950
|
const { message: A, stack: P, code: h, name: p } = c, m = new Error(A);
|
|
6949
6951
|
Object.assign(m, { stack: P, code: h, name: p }), _(m);
|
|
6950
6952
|
} else {
|
|
6951
|
-
if (e ==
|
|
6953
|
+
if (e == Oa) {
|
|
6952
6954
|
const { value: A, done: P } = await l.read();
|
|
6953
|
-
qt({ type:
|
|
6955
|
+
qt({ type: Fr, value: A, done: P, messageId: a }, t);
|
|
6954
6956
|
}
|
|
6955
|
-
e ==
|
|
6957
|
+
e == Fr && (await u.ready, await u.write(new Uint8Array(r)), qt({ type: Pa, messageId: a }, t)), e == Rr && _(null, o);
|
|
6956
6958
|
}
|
|
6957
6959
|
} catch (A) {
|
|
6958
|
-
qt({ type:
|
|
6960
|
+
qt({ type: Rr, messageId: a }, t), _(A);
|
|
6959
6961
|
}
|
|
6960
6962
|
function _(A, P) {
|
|
6961
6963
|
A ? x(A) : g(P), u && u.releaseLock(), w();
|
|
@@ -6963,8 +6965,8 @@ async function Ga({ data: n }, t) {
|
|
|
6963
6965
|
}
|
|
6964
6966
|
let tt = [];
|
|
6965
6967
|
const xn = [];
|
|
6966
|
-
let
|
|
6967
|
-
async function
|
|
6968
|
+
let Dr = 0;
|
|
6969
|
+
async function Za(n, t) {
|
|
6968
6970
|
const { options: e, config: r } = t, { transferStreams: a, useWebWorkers: o, useCompressionStream: c, codecType: l, compressed: u, signed: g, encrypted: x } = e, { workerScripts: w, maxWorkers: _ } = r;
|
|
6969
6971
|
t.transferStreams = a || a === ve;
|
|
6970
6972
|
const A = !u && !g && !x && !t.transferStreams;
|
|
@@ -6972,10 +6974,10 @@ async function Va(n, t) {
|
|
|
6972
6974
|
async function P() {
|
|
6973
6975
|
const p = tt.find((m) => !m.busy);
|
|
6974
6976
|
if (p)
|
|
6975
|
-
return
|
|
6977
|
+
return Lr(p), new mn(p, n, t, h);
|
|
6976
6978
|
if (tt.length < _) {
|
|
6977
|
-
const m = { indexWorker:
|
|
6978
|
-
return
|
|
6979
|
+
const m = { indexWorker: Dr };
|
|
6980
|
+
return Dr++, tt.push(m), new mn(m, n, t, h);
|
|
6979
6981
|
} else
|
|
6980
6982
|
return new Promise((m) => xn.push({ resolve: m, stream: n, workerOptions: t }));
|
|
6981
6983
|
}
|
|
@@ -6983,10 +6985,10 @@ async function Va(n, t) {
|
|
|
6983
6985
|
if (xn.length) {
|
|
6984
6986
|
const [{ resolve: m, stream: E, workerOptions: R }] = xn.splice(0, 1);
|
|
6985
6987
|
m(new mn(p, E, R, h));
|
|
6986
|
-
} else p.worker ? (
|
|
6988
|
+
} else p.worker ? (Lr(p), Ka(p, t)) : tt = tt.filter((m) => m != p);
|
|
6987
6989
|
}
|
|
6988
6990
|
}
|
|
6989
|
-
function
|
|
6991
|
+
function Ka(n, t) {
|
|
6990
6992
|
const { config: e } = t, { terminateWorkerTimeout: r } = e;
|
|
6991
6993
|
Number.isFinite(r) && r >= 0 && (n.terminated ? n.terminated = !1 : n.terminateTimeout = setTimeout(async () => {
|
|
6992
6994
|
tt = tt.filter((a) => a != n);
|
|
@@ -6996,16 +6998,16 @@ function Za(n, t) {
|
|
|
6996
6998
|
}
|
|
6997
6999
|
}, r));
|
|
6998
7000
|
}
|
|
6999
|
-
function
|
|
7001
|
+
function Lr(n) {
|
|
7000
7002
|
const { terminateTimeout: t } = n;
|
|
7001
7003
|
t && (clearTimeout(t), n.terminateTimeout = null);
|
|
7002
7004
|
}
|
|
7003
|
-
function
|
|
7005
|
+
function Xa(n, t = {}) {
|
|
7004
7006
|
const e = `const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={bytes:{p(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},m(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.R(I.bytes.m(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.bytes.m(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.R;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.p(t)}function ae(e,t){return e.m(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new x(r[0]),te:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],He.Ce=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],He.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le._e=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ke[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ke.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le._e,Le.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.We)return;e=t.je(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.tt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
|
|
7005
7007
|
`, r = () => t.useDataURI ? "data:text/javascript," + encodeURIComponent(e) : URL.createObjectURL(new Blob([e], { type: "text/javascript" }));
|
|
7006
7008
|
n({ workerScripts: { inflate: [r], deflate: [r] } });
|
|
7007
7009
|
}
|
|
7008
|
-
const
|
|
7010
|
+
const $a = "Writer iterator completed too soon", Ja = "Content-Type", za = 64 * 1024, yi = "writable";
|
|
7009
7011
|
class Pn {
|
|
7010
7012
|
constructor() {
|
|
7011
7013
|
this.size = 0;
|
|
@@ -7014,9 +7016,9 @@ class Pn {
|
|
|
7014
7016
|
this.initialized = !0;
|
|
7015
7017
|
}
|
|
7016
7018
|
}
|
|
7017
|
-
class
|
|
7019
|
+
class vi extends Pn {
|
|
7018
7020
|
get readable() {
|
|
7019
|
-
const t = this, { chunkSize: e =
|
|
7021
|
+
const t = this, { chunkSize: e = za } = t, r = new ReadableStream({
|
|
7020
7022
|
start() {
|
|
7021
7023
|
this.chunkOffset = 0;
|
|
7022
7024
|
},
|
|
@@ -7028,7 +7030,7 @@ class yi extends Pn {
|
|
|
7028
7030
|
return r;
|
|
7029
7031
|
}
|
|
7030
7032
|
}
|
|
7031
|
-
class En extends
|
|
7033
|
+
class En extends vi {
|
|
7032
7034
|
constructor(t) {
|
|
7033
7035
|
super(), Object.assign(this, {
|
|
7034
7036
|
blob: t,
|
|
@@ -7041,11 +7043,11 @@ class En extends yi {
|
|
|
7041
7043
|
return c.byteLength > e && (c = c.slice(t, a)), new Uint8Array(c);
|
|
7042
7044
|
}
|
|
7043
7045
|
}
|
|
7044
|
-
class
|
|
7046
|
+
class Qa extends Pn {
|
|
7045
7047
|
constructor(t) {
|
|
7046
7048
|
super();
|
|
7047
7049
|
const e = this, r = new TransformStream(), a = [];
|
|
7048
|
-
t && a.push([
|
|
7050
|
+
t && a.push([Ja, t]), Object.defineProperty(e, yi, {
|
|
7049
7051
|
get() {
|
|
7050
7052
|
return r.writable;
|
|
7051
7053
|
}
|
|
@@ -7055,7 +7057,7 @@ class za extends Pn {
|
|
|
7055
7057
|
return this.blob;
|
|
7056
7058
|
}
|
|
7057
7059
|
}
|
|
7058
|
-
class
|
|
7060
|
+
class eo extends vi {
|
|
7059
7061
|
constructor(t) {
|
|
7060
7062
|
super(), this.readers = t;
|
|
7061
7063
|
}
|
|
@@ -7082,7 +7084,7 @@ class Qa extends yi {
|
|
|
7082
7084
|
return a.lastDiskNumber = Math.max(l, a.lastDiskNumber), c;
|
|
7083
7085
|
}
|
|
7084
7086
|
}
|
|
7085
|
-
class
|
|
7087
|
+
class Ur extends Pn {
|
|
7086
7088
|
constructor(t, e = 4294967295) {
|
|
7087
7089
|
super();
|
|
7088
7090
|
const r = this;
|
|
@@ -7102,7 +7104,7 @@ class Or extends Pn {
|
|
|
7102
7104
|
else {
|
|
7103
7105
|
const { value: _, done: A } = await t.next();
|
|
7104
7106
|
if (A && !_)
|
|
7105
|
-
throw new Error(
|
|
7107
|
+
throw new Error($a);
|
|
7106
7108
|
a = _, a.size = 0, a.maxSize && (r.maxSize = a.maxSize), r.availableSize = r.maxSize, await Xt(a), o = _.writable, c = o.getWriter(), await this.write(x);
|
|
7107
7109
|
}
|
|
7108
7110
|
},
|
|
@@ -7110,7 +7112,7 @@ class Or extends Pn {
|
|
|
7110
7112
|
await c.ready, await g();
|
|
7111
7113
|
}
|
|
7112
7114
|
});
|
|
7113
|
-
Object.defineProperty(r,
|
|
7115
|
+
Object.defineProperty(r, yi, {
|
|
7114
7116
|
get() {
|
|
7115
7117
|
return l;
|
|
7116
7118
|
}
|
|
@@ -7130,17 +7132,17 @@ async function Xt(n, t) {
|
|
|
7130
7132
|
else
|
|
7131
7133
|
return Promise.resolve();
|
|
7132
7134
|
}
|
|
7133
|
-
function
|
|
7134
|
-
return Array.isArray(n) && (n = new
|
|
7135
|
+
function to(n) {
|
|
7136
|
+
return Array.isArray(n) && (n = new eo(n)), n instanceof ReadableStream && (n = {
|
|
7135
7137
|
readable: n
|
|
7136
7138
|
}), n;
|
|
7137
7139
|
}
|
|
7138
|
-
function
|
|
7139
|
-
n.writable === ve && typeof n.next ==
|
|
7140
|
+
function no(n) {
|
|
7141
|
+
n.writable === ve && typeof n.next == St && (n = new Ur(n)), n instanceof WritableStream && (n = {
|
|
7140
7142
|
writable: n
|
|
7141
7143
|
});
|
|
7142
7144
|
const { writable: t } = n;
|
|
7143
|
-
return t.size === ve && (t.size = 0), n instanceof
|
|
7145
|
+
return t.size === ve && (t.size = 0), n instanceof Ur || Object.assign(n, {
|
|
7144
7146
|
diskNumber: 0,
|
|
7145
7147
|
diskOffset: 0,
|
|
7146
7148
|
availableSize: 1 / 0,
|
|
@@ -7150,34 +7152,33 @@ function to(n) {
|
|
|
7150
7152
|
function _e(n, t, e, r) {
|
|
7151
7153
|
return n.readUint8Array(t, e, r);
|
|
7152
7154
|
}
|
|
7153
|
-
const
|
|
7154
|
-
function
|
|
7155
|
-
if (
|
|
7155
|
+
const Ei = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""), ro = Ei.length == 256;
|
|
7156
|
+
function io(n) {
|
|
7157
|
+
if (ro) {
|
|
7156
7158
|
let t = "";
|
|
7157
7159
|
for (let e = 0; e < n.length; e++)
|
|
7158
|
-
t +=
|
|
7160
|
+
t += Ei[n[e]];
|
|
7159
7161
|
return t;
|
|
7160
7162
|
} else
|
|
7161
7163
|
return new TextDecoder().decode(n);
|
|
7162
7164
|
}
|
|
7163
7165
|
function jt(n, t) {
|
|
7164
|
-
return t && t.trim().toLowerCase() == "cp437" ?
|
|
7166
|
+
return t && t.trim().toLowerCase() == "cp437" ? io(n) : new TextDecoder(t).decode(n);
|
|
7165
7167
|
}
|
|
7166
|
-
const
|
|
7167
|
-
Ei,
|
|
7168
|
+
const ki = "filename", Si = "rawFilename", Ai = "comment", Ti = "rawComment", Fi = "uncompressedSize", Ri = "compressedSize", Ci = "offset", kn = "diskNumberStart", Sn = "lastModDate", An = "rawLastModDate", Ii = "lastAccessDate", so = "rawLastAccessDate", Di = "creationDate", ao = "rawCreationDate", oo = "internalFileAttribute", co = "internalFileAttributes", lo = "externalFileAttribute", fo = "externalFileAttributes", uo = "msDosCompatible", po = "zip64", mo = "encrypted", ho = "version", xo = "versionMadeBy", wo = "zipCrypto", _o = "directory", go = "executable", bo = [
|
|
7168
7169
|
ki,
|
|
7170
|
+
Si,
|
|
7171
|
+
Ri,
|
|
7169
7172
|
Fi,
|
|
7170
|
-
Ti,
|
|
7171
7173
|
Sn,
|
|
7172
7174
|
An,
|
|
7173
|
-
Si,
|
|
7174
7175
|
Ai,
|
|
7175
|
-
|
|
7176
|
+
Ti,
|
|
7176
7177
|
Ii,
|
|
7177
|
-
|
|
7178
|
+
Di,
|
|
7179
|
+
Ci,
|
|
7178
7180
|
kn,
|
|
7179
7181
|
kn,
|
|
7180
|
-
ao,
|
|
7181
7182
|
oo,
|
|
7182
7183
|
co,
|
|
7183
7184
|
lo,
|
|
@@ -7189,6 +7190,7 @@ const Ei = "filename", ki = "rawFilename", Si = "comment", Ai = "rawComment", Ti
|
|
|
7189
7190
|
xo,
|
|
7190
7191
|
wo,
|
|
7191
7192
|
_o,
|
|
7193
|
+
go,
|
|
7192
7194
|
"bitFlag",
|
|
7193
7195
|
"signature",
|
|
7194
7196
|
"filenameUTF8",
|
|
@@ -7203,17 +7205,17 @@ const Ei = "filename", ki = "rawFilename", Si = "comment", Ai = "rawComment", Ti
|
|
|
7203
7205
|
"extraFieldNTFS",
|
|
7204
7206
|
"extraFieldExtendedTimestamp"
|
|
7205
7207
|
];
|
|
7206
|
-
class
|
|
7208
|
+
class Or {
|
|
7207
7209
|
constructor(t) {
|
|
7208
|
-
|
|
7210
|
+
bo.forEach((e) => this[e] = t[e]);
|
|
7209
7211
|
}
|
|
7210
7212
|
}
|
|
7211
|
-
const wn = "File format is not recognized",
|
|
7212
|
-
[Ti, nt],
|
|
7213
|
+
const wn = "File format is not recognized", yo = "End of central directory not found", vo = "End of Zip64 central directory locator not found", Eo = "Central directory header not found", ko = "Local file header not found", So = "Zip64 extra field not found", Ao = "File contains encrypted entry", To = "Encryption method not supported", Pr = "Compression method not supported", Mr = "Split zip file", Br = "utf-8", Nr = "cp437", Fo = [
|
|
7213
7214
|
[Fi, nt],
|
|
7214
7215
|
[Ri, nt],
|
|
7216
|
+
[Ci, nt],
|
|
7215
7217
|
[kn, Ke]
|
|
7216
|
-
],
|
|
7218
|
+
], Ro = {
|
|
7217
7219
|
[Ke]: {
|
|
7218
7220
|
getValue: ce,
|
|
7219
7221
|
bytes: 4
|
|
@@ -7223,12 +7225,12 @@ const wn = "File format is not recognized", bo = "End of central directory not f
|
|
|
7223
7225
|
bytes: 8
|
|
7224
7226
|
}
|
|
7225
7227
|
};
|
|
7226
|
-
class
|
|
7228
|
+
class Wr {
|
|
7227
7229
|
constructor(t, e = {}) {
|
|
7228
7230
|
Object.assign(this, {
|
|
7229
|
-
reader:
|
|
7231
|
+
reader: to(t),
|
|
7230
7232
|
options: e,
|
|
7231
|
-
config:
|
|
7233
|
+
config: ca()
|
|
7232
7234
|
});
|
|
7233
7235
|
}
|
|
7234
7236
|
async *getEntriesGenerator(t = {}) {
|
|
@@ -7237,11 +7239,11 @@ class qr {
|
|
|
7237
7239
|
const { config: a } = e;
|
|
7238
7240
|
if (await Xt(r), (r.size === ve || !r.readUint8Array) && (r = new En(await new Response(r.readable).blob()), await Xt(r)), r.size < ct)
|
|
7239
7241
|
throw new Error(wn);
|
|
7240
|
-
r.chunkSize =
|
|
7241
|
-
const o = await
|
|
7242
|
+
r.chunkSize = la(a);
|
|
7243
|
+
const o = await Oo(r, Xs, r.size, ct, Ke * 16);
|
|
7242
7244
|
if (!o) {
|
|
7243
7245
|
const v = await _e(r, 0, 4), k = he(v);
|
|
7244
|
-
throw ce(k) ==
|
|
7246
|
+
throw ce(k) == Ks ? new Error(Mr) : new Error(yo);
|
|
7245
7247
|
}
|
|
7246
7248
|
const c = he(o);
|
|
7247
7249
|
let l = ce(c, 12), u = ce(c, 16);
|
|
@@ -7251,27 +7253,27 @@ class qr {
|
|
|
7251
7253
|
let P = me(c, 6), h = me(c, 8), p = 0, m = 0;
|
|
7252
7254
|
if (u == nt || l == nt || h == Ke || P == Ke) {
|
|
7253
7255
|
const v = await _e(r, o.offset - un, un), k = he(v);
|
|
7254
|
-
if (ce(k, 0) ==
|
|
7256
|
+
if (ce(k, 0) == $s) {
|
|
7255
7257
|
u = Ht(k, 8);
|
|
7256
7258
|
let W = await _e(r, u, dn, -1), O = he(W);
|
|
7257
7259
|
const Z = o.offset - un - dn;
|
|
7258
|
-
if (ce(O, 0) !=
|
|
7260
|
+
if (ce(O, 0) != pr && u != Z) {
|
|
7259
7261
|
const H = u;
|
|
7260
7262
|
u = Z, p = u - H, W = await _e(r, u, dn, -1), O = he(W);
|
|
7261
7263
|
}
|
|
7262
|
-
if (ce(O, 0) !=
|
|
7263
|
-
throw new Error(
|
|
7264
|
+
if (ce(O, 0) != pr)
|
|
7265
|
+
throw new Error(vo);
|
|
7264
7266
|
_ == Ke && (_ = ce(O, 16)), P == Ke && (P = ce(O, 20)), h == Ke && (h = Ht(O, 32)), l == nt && (l = Ht(O, 40)), u -= l;
|
|
7265
7267
|
}
|
|
7266
7268
|
}
|
|
7267
7269
|
if (u >= r.size && (p = r.size - u - l - ct, u = r.size - l - ct), A != _)
|
|
7268
|
-
throw new Error(
|
|
7270
|
+
throw new Error(Mr);
|
|
7269
7271
|
if (u < 0)
|
|
7270
7272
|
throw new Error(wn);
|
|
7271
7273
|
let E = 0, R = await _e(r, u, l, P), D = he(R);
|
|
7272
7274
|
if (l) {
|
|
7273
7275
|
const v = o.offset - l;
|
|
7274
|
-
if (ce(D, E) !=
|
|
7276
|
+
if (ce(D, E) != dr && u != v) {
|
|
7275
7277
|
const k = u;
|
|
7276
7278
|
u = v, p += u - k, R = await _e(r, u, l, P), D = he(R);
|
|
7277
7279
|
}
|
|
@@ -7281,11 +7283,11 @@ class qr {
|
|
|
7281
7283
|
throw new Error(wn);
|
|
7282
7284
|
const T = be(e, t, "filenameEncoding"), F = be(e, t, "commentEncoding");
|
|
7283
7285
|
for (let v = 0; v < h; v++) {
|
|
7284
|
-
const k = new
|
|
7285
|
-
if (ce(D, E) !=
|
|
7286
|
-
throw new Error(
|
|
7287
|
-
|
|
7288
|
-
const W = !!k.bitFlag.languageEncodingFlag, O = E + 46, Z = O + k.filenameLength, H = Z + k.extraFieldLength, j = me(D, E + 4), K = j >> 8 == 0, X = j >> 8 == 3, oe = R.subarray(O, Z), G = me(D, E + 32), z = H + G, Y = R.subarray(H, z), ee = W, Ce = W, de = ce(D, E + 38), le = K && (dt(D, E + 38) &
|
|
7286
|
+
const k = new Co(r, a, e.options);
|
|
7287
|
+
if (ce(D, E) != dr)
|
|
7288
|
+
throw new Error(Eo);
|
|
7289
|
+
Li(k, D, E + 6);
|
|
7290
|
+
const W = !!k.bitFlag.languageEncodingFlag, O = E + 46, Z = O + k.filenameLength, H = Z + k.extraFieldLength, j = me(D, E + 4), K = j >> 8 == 0, X = j >> 8 == 3, oe = R.subarray(O, Z), G = me(D, E + 32), z = H + G, Y = R.subarray(H, z), ee = W, Ce = W, de = ce(D, E + 38), le = K && (dt(D, E + 38) & wr) == wr || X && (de >> 16 & _r) == _r || oe.length && oe[oe.length - 1] == br.charCodeAt(0), pt = X && (de >> 16 & gr) == gr, Ne = ce(D, E + 42) + p;
|
|
7289
7291
|
Object.assign(k, {
|
|
7290
7292
|
versionMadeBy: j,
|
|
7291
7293
|
msDosCompatible: K,
|
|
@@ -7293,7 +7295,7 @@ class qr {
|
|
|
7293
7295
|
uncompressedSize: 0,
|
|
7294
7296
|
commentLength: G,
|
|
7295
7297
|
directory: le,
|
|
7296
|
-
offset:
|
|
7298
|
+
offset: Ne,
|
|
7297
7299
|
diskNumberStart: me(D, E + 34),
|
|
7298
7300
|
internalFileAttributes: me(D, E + 36),
|
|
7299
7301
|
externalFileAttributes: de,
|
|
@@ -7303,7 +7305,7 @@ class qr {
|
|
|
7303
7305
|
rawExtraField: R.subarray(Z, H),
|
|
7304
7306
|
executable: pt
|
|
7305
7307
|
}), k.internalFileAttribute = k.internalFileAttributes, k.externalFileAttribute = k.externalFileAttributes;
|
|
7306
|
-
const it = be(e, t, "decodeText") || jt, Je = ee ?
|
|
7308
|
+
const it = be(e, t, "decodeText") || jt, Je = ee ? Br : T || Nr, ze = Ce ? Br : F || Nr;
|
|
7307
7309
|
let we = it(oe, Je);
|
|
7308
7310
|
we === ve && (we = jt(oe, Je));
|
|
7309
7311
|
let fe = it(Y, ze);
|
|
@@ -7311,14 +7313,14 @@ class qr {
|
|
|
7311
7313
|
rawComment: Y,
|
|
7312
7314
|
filename: we,
|
|
7313
7315
|
comment: fe,
|
|
7314
|
-
directory: le || we.endsWith(
|
|
7315
|
-
}), m = Math.max(
|
|
7316
|
-
const We = new
|
|
7316
|
+
directory: le || we.endsWith(br)
|
|
7317
|
+
}), m = Math.max(Ne, m), Ui(k, k, D, E + 6), k.zipCrypto = k.encrypted && !k.extraFieldAES;
|
|
7318
|
+
const We = new Or(k);
|
|
7317
7319
|
We.getData = (f, i) => k.getData(f, We, i), E = z;
|
|
7318
7320
|
const { onprogress: ue } = t;
|
|
7319
7321
|
if (ue)
|
|
7320
7322
|
try {
|
|
7321
|
-
await ue(v + 1, h, new
|
|
7323
|
+
await ue(v + 1, h, new Or(k));
|
|
7322
7324
|
} catch {
|
|
7323
7325
|
}
|
|
7324
7326
|
yield We;
|
|
@@ -7335,7 +7337,7 @@ class qr {
|
|
|
7335
7337
|
async close() {
|
|
7336
7338
|
}
|
|
7337
7339
|
}
|
|
7338
|
-
class
|
|
7340
|
+
class Co {
|
|
7339
7341
|
constructor(t, e, r) {
|
|
7340
7342
|
Object.assign(this, {
|
|
7341
7343
|
reader: t,
|
|
@@ -7359,22 +7361,22 @@ class Ro {
|
|
|
7359
7361
|
} = a, p = e.localDirectory = {}, m = await _e(o, c, 30, l), E = he(m);
|
|
7360
7362
|
let R = be(a, r, "password"), D = be(a, r, "rawPassword");
|
|
7361
7363
|
const S = be(a, r, "passThrough");
|
|
7362
|
-
if (R = R && R.length && R, D = D && D.length && D, u && u.originalCompressionMethod !=
|
|
7363
|
-
throw new Error(
|
|
7364
|
-
if (g !=
|
|
7365
|
-
throw new Error(
|
|
7366
|
-
if (ce(E, 0) !=
|
|
7367
|
-
throw new Error(
|
|
7368
|
-
|
|
7364
|
+
if (R = R && R.length && R, D = D && D.length && D, u && u.originalCompressionMethod != Vs)
|
|
7365
|
+
throw new Error(Pr);
|
|
7366
|
+
if (g != Gs && g != Ys && !S)
|
|
7367
|
+
throw new Error(Pr);
|
|
7368
|
+
if (ce(E, 0) != Zs)
|
|
7369
|
+
throw new Error(ko);
|
|
7370
|
+
Li(p, E, 4), p.rawExtraField = p.extraFieldLength ? await _e(o, c + 30 + p.filenameLength, p.extraFieldLength, l) : new Uint8Array(), Ui(a, p, E, 4, !0), Object.assign(e, {
|
|
7369
7371
|
lastAccessDate: p.lastAccessDate,
|
|
7370
7372
|
creationDate: p.creationDate
|
|
7371
7373
|
});
|
|
7372
7374
|
const T = a.encrypted && p.encrypted && !S, F = T && !u;
|
|
7373
7375
|
if (S || (e.zipCrypto = F), T) {
|
|
7374
7376
|
if (!F && u.strength === ve)
|
|
7375
|
-
throw new Error(
|
|
7377
|
+
throw new Error(To);
|
|
7376
7378
|
if (!R && !D)
|
|
7377
|
-
throw new Error(
|
|
7379
|
+
throw new Error(Ao);
|
|
7378
7380
|
}
|
|
7379
7381
|
const b = c + 30 + p.filenameLength + p.extraFieldLength, I = h, v = o.readable;
|
|
7380
7382
|
Object.assign(v, {
|
|
@@ -7383,10 +7385,10 @@ class Ro {
|
|
|
7383
7385
|
size: I
|
|
7384
7386
|
});
|
|
7385
7387
|
const k = be(a, r, "signal"), W = be(a, r, "checkPasswordOnly");
|
|
7386
|
-
W && (t = new WritableStream()), t =
|
|
7388
|
+
W && (t = new WritableStream()), t = no(t), await Xt(t, S ? h : P);
|
|
7387
7389
|
const { writable: O } = t, { onstart: Z, onprogress: H, onend: j } = r, K = {
|
|
7388
7390
|
options: {
|
|
7389
|
-
codecType:
|
|
7391
|
+
codecType: _i,
|
|
7390
7392
|
password: R,
|
|
7391
7393
|
rawPassword: D,
|
|
7392
7394
|
zipCrypto: F,
|
|
@@ -7406,7 +7408,7 @@ class Ro {
|
|
|
7406
7408
|
};
|
|
7407
7409
|
let X = 0;
|
|
7408
7410
|
try {
|
|
7409
|
-
({ outputSize: X } = await
|
|
7411
|
+
({ outputSize: X } = await Za({ readable: v, writable: O }, K));
|
|
7410
7412
|
} catch (oe) {
|
|
7411
7413
|
if (!W || oe.message != Ln)
|
|
7412
7414
|
throw oe;
|
|
@@ -7417,23 +7419,23 @@ class Ro {
|
|
|
7417
7419
|
return W ? ve : t.getData ? t.getData() : O;
|
|
7418
7420
|
}
|
|
7419
7421
|
}
|
|
7420
|
-
function
|
|
7421
|
-
const r = n.rawBitFlag = me(t, e + 2), a = (r &
|
|
7422
|
+
function Li(n, t, e) {
|
|
7423
|
+
const r = n.rawBitFlag = me(t, e + 2), a = (r & mr) == mr, o = ce(t, e + 6);
|
|
7422
7424
|
Object.assign(n, {
|
|
7423
7425
|
encrypted: a,
|
|
7424
7426
|
version: me(t, e),
|
|
7425
7427
|
bitFlag: {
|
|
7426
|
-
level: (r &
|
|
7427
|
-
dataDescriptor: (r &
|
|
7428
|
-
languageEncodingFlag: (r &
|
|
7428
|
+
level: (r & sa) >> 1,
|
|
7429
|
+
dataDescriptor: (r & hr) == hr,
|
|
7430
|
+
languageEncodingFlag: (r & xr) == xr
|
|
7429
7431
|
},
|
|
7430
7432
|
rawLastModDate: o,
|
|
7431
|
-
lastModDate:
|
|
7433
|
+
lastModDate: Po(o),
|
|
7432
7434
|
filenameLength: me(t, e + 22),
|
|
7433
7435
|
extraFieldLength: me(t, e + 24)
|
|
7434
7436
|
});
|
|
7435
7437
|
}
|
|
7436
|
-
function
|
|
7438
|
+
function Ui(n, t, e, r, a) {
|
|
7437
7439
|
const { rawExtraField: o } = t, c = t.extraField = /* @__PURE__ */ new Map(), l = he(new Uint8Array(o));
|
|
7438
7440
|
let u = 0;
|
|
7439
7441
|
try {
|
|
@@ -7452,34 +7454,34 @@ function Li(n, t, e, r, a) {
|
|
|
7452
7454
|
uncompressedSize: ce(e, r + 18),
|
|
7453
7455
|
compressedSize: ce(e, r + 14)
|
|
7454
7456
|
});
|
|
7455
|
-
const x = c.get(
|
|
7456
|
-
x && (
|
|
7457
|
-
const w = c.get(
|
|
7458
|
-
w && (
|
|
7459
|
-
const _ = c.get(
|
|
7460
|
-
_ && (
|
|
7461
|
-
const A = c.get(
|
|
7462
|
-
A ? (
|
|
7463
|
-
const P = c.get(
|
|
7464
|
-
P && (
|
|
7465
|
-
const h = c.get(
|
|
7466
|
-
h && (
|
|
7467
|
-
const p = c.get(
|
|
7457
|
+
const x = c.get(Js);
|
|
7458
|
+
x && (Io(x, t), t.extraFieldZip64 = x);
|
|
7459
|
+
const w = c.get(na);
|
|
7460
|
+
w && (qr(w, ki, Si, t, n), t.extraFieldUnicodePath = w);
|
|
7461
|
+
const _ = c.get(ra);
|
|
7462
|
+
_ && (qr(_, Ai, Ti, t, n), t.extraFieldUnicodeComment = _);
|
|
7463
|
+
const A = c.get(zs);
|
|
7464
|
+
A ? (Do(A, t, g), t.extraFieldAES = A) : t.compressionMethod = g;
|
|
7465
|
+
const P = c.get(Qs);
|
|
7466
|
+
P && (Lo(P, t), t.extraFieldNTFS = P);
|
|
7467
|
+
const h = c.get(ta);
|
|
7468
|
+
h && (Uo(h, t, a), t.extraFieldExtendedTimestamp = h);
|
|
7469
|
+
const p = c.get(ia);
|
|
7468
7470
|
p && (t.extraFieldUSDZ = p);
|
|
7469
7471
|
}
|
|
7470
|
-
function
|
|
7472
|
+
function Io(n, t) {
|
|
7471
7473
|
t.zip64 = !0;
|
|
7472
|
-
const e = he(n.data), r =
|
|
7474
|
+
const e = he(n.data), r = Fo.filter(([a, o]) => t[a] == o);
|
|
7473
7475
|
for (let a = 0, o = 0; a < r.length; a++) {
|
|
7474
7476
|
const [c, l] = r[a];
|
|
7475
7477
|
if (t[c] == l) {
|
|
7476
|
-
const u =
|
|
7478
|
+
const u = Ro[l];
|
|
7477
7479
|
t[c] = n[c] = u.getValue(e, o), o += u.bytes;
|
|
7478
7480
|
} else if (n[c])
|
|
7479
|
-
throw new Error(
|
|
7481
|
+
throw new Error(So);
|
|
7480
7482
|
}
|
|
7481
7483
|
}
|
|
7482
|
-
function
|
|
7484
|
+
function qr(n, t, e, r, a) {
|
|
7483
7485
|
const o = he(n.data), c = new Zt();
|
|
7484
7486
|
c.append(a[e]);
|
|
7485
7487
|
const l = he(new Uint8Array(4));
|
|
@@ -7491,7 +7493,7 @@ function jr(n, t, e, r, a) {
|
|
|
7491
7493
|
valid: !a.bitFlag.languageEncodingFlag && u == ce(l, 0)
|
|
7492
7494
|
}), n.valid && (r[t] = n[t], r[t + "UTF8"] = !0);
|
|
7493
7495
|
}
|
|
7494
|
-
function
|
|
7496
|
+
function Do(n, t, e) {
|
|
7495
7497
|
const r = he(n.data), a = dt(r, 4);
|
|
7496
7498
|
Object.assign(n, {
|
|
7497
7499
|
vendorVersion: dt(r, 0),
|
|
@@ -7501,13 +7503,13 @@ function Io(n, t, e) {
|
|
|
7501
7503
|
compressionMethod: me(r, 5)
|
|
7502
7504
|
}), t.compressionMethod = n.compressionMethod;
|
|
7503
7505
|
}
|
|
7504
|
-
function
|
|
7506
|
+
function Lo(n, t) {
|
|
7505
7507
|
const e = he(n.data);
|
|
7506
7508
|
let r = 4, a;
|
|
7507
7509
|
try {
|
|
7508
7510
|
for (; r < n.data.length && !a; ) {
|
|
7509
7511
|
const o = me(e, r), c = me(e, r + 2);
|
|
7510
|
-
o ==
|
|
7512
|
+
o == ea && (a = n.data.slice(r + 4, r + 4 + c)), r += 4 + c;
|
|
7511
7513
|
}
|
|
7512
7514
|
} catch {
|
|
7513
7515
|
}
|
|
@@ -7525,9 +7527,9 @@ function Do(n, t) {
|
|
|
7525
7527
|
} catch {
|
|
7526
7528
|
}
|
|
7527
7529
|
}
|
|
7528
|
-
function
|
|
7530
|
+
function Uo(n, t, e) {
|
|
7529
7531
|
const r = he(n.data), a = dt(r, 0), o = [], c = [];
|
|
7530
|
-
e ? ((a & 1) == 1 && (o.push(Sn), c.push(An)), (a & 2) == 2 && (o.push(
|
|
7532
|
+
e ? ((a & 1) == 1 && (o.push(Sn), c.push(An)), (a & 2) == 2 && (o.push(Ii), c.push(so)), (a & 4) == 4 && (o.push(Di), c.push(ao))) : n.data.length >= 5 && (o.push(Sn), c.push(An));
|
|
7531
7533
|
let l = 1;
|
|
7532
7534
|
o.forEach((u, g) => {
|
|
7533
7535
|
if (n.data.length >= l + 4) {
|
|
@@ -7539,9 +7541,9 @@ function Lo(n, t, e) {
|
|
|
7539
7541
|
l += 4;
|
|
7540
7542
|
});
|
|
7541
7543
|
}
|
|
7542
|
-
async function
|
|
7544
|
+
async function Oo(n, t, e, r, a) {
|
|
7543
7545
|
const o = new Uint8Array(4), c = he(o);
|
|
7544
|
-
|
|
7546
|
+
Mo(c, 0, t);
|
|
7545
7547
|
const l = r + a;
|
|
7546
7548
|
return await u(r) || await u(Math.min(l, e));
|
|
7547
7549
|
async function u(g) {
|
|
@@ -7557,7 +7559,7 @@ async function Uo(n, t, e, r, a) {
|
|
|
7557
7559
|
function be(n, t, e) {
|
|
7558
7560
|
return t[e] === ve ? n.options[e] : t[e];
|
|
7559
7561
|
}
|
|
7560
|
-
function
|
|
7562
|
+
function Po(n) {
|
|
7561
7563
|
const t = (n & 4294901760) >> 16, e = n & 65535;
|
|
7562
7564
|
try {
|
|
7563
7565
|
return new Date(1980 + ((t & 65024) >> 9), ((t & 480) >> 5) - 1, t & 31, (e & 63488) >> 11, (e & 2016) >> 5, (e & 31) * 2, 0);
|
|
@@ -7579,20 +7581,20 @@ function ce(n, t) {
|
|
|
7579
7581
|
function Ht(n, t) {
|
|
7580
7582
|
return Number(n.getBigUint64(t, !0));
|
|
7581
7583
|
}
|
|
7582
|
-
function
|
|
7584
|
+
function Mo(n, t, e) {
|
|
7583
7585
|
n.setUint32(t, e, !0);
|
|
7584
7586
|
}
|
|
7585
7587
|
function he(n) {
|
|
7586
7588
|
return new DataView(n.buffer);
|
|
7587
7589
|
}
|
|
7588
|
-
let
|
|
7590
|
+
let Oi;
|
|
7589
7591
|
try {
|
|
7590
|
-
|
|
7592
|
+
Oi = import.meta.url;
|
|
7591
7593
|
} catch {
|
|
7592
7594
|
}
|
|
7593
|
-
Dn({ baseURL:
|
|
7594
|
-
|
|
7595
|
-
Dn({ Deflate:
|
|
7595
|
+
Dn({ baseURL: Oi });
|
|
7596
|
+
Xa(Dn);
|
|
7597
|
+
Dn({ Deflate: vs, Inflate: Hs });
|
|
7596
7598
|
class Bo {
|
|
7597
7599
|
constructor(t) {
|
|
7598
7600
|
this.fileTree = t;
|
|
@@ -7630,19 +7632,19 @@ class $t {
|
|
|
7630
7632
|
this.entries = /* @__PURE__ */ new Map(), this.zipReader = t;
|
|
7631
7633
|
}
|
|
7632
7634
|
static fromStream(t) {
|
|
7633
|
-
const e = new
|
|
7635
|
+
const e = new Wr(
|
|
7634
7636
|
new En(new Yt(t, "archive.zip"))
|
|
7635
7637
|
);
|
|
7636
7638
|
return new $t(e);
|
|
7637
7639
|
}
|
|
7638
7640
|
static fromArrayBuffer(t) {
|
|
7639
|
-
const e = new
|
|
7641
|
+
const e = new Wr(
|
|
7640
7642
|
new En(new Blob([t]))
|
|
7641
7643
|
);
|
|
7642
7644
|
return new $t(e);
|
|
7643
7645
|
}
|
|
7644
7646
|
async read(t) {
|
|
7645
|
-
const e = await this.getEntry(t), r = await e.getData(new
|
|
7647
|
+
const e = await this.getEntry(t), r = await e.getData(new Qa());
|
|
7646
7648
|
return new Yt(r.stream(), t, {
|
|
7647
7649
|
filesize: e.uncompressedSize
|
|
7648
7650
|
});
|
|
@@ -7702,7 +7704,7 @@ class No {
|
|
|
7702
7704
|
);
|
|
7703
7705
|
}
|
|
7704
7706
|
}
|
|
7705
|
-
class
|
|
7707
|
+
class Wo {
|
|
7706
7708
|
constructor(t) {
|
|
7707
7709
|
this.root = t;
|
|
7708
7710
|
}
|
|
@@ -7739,7 +7741,7 @@ class Mo {
|
|
|
7739
7741
|
)
|
|
7740
7742
|
) : e(
|
|
7741
7743
|
new Yt(
|
|
7742
|
-
|
|
7744
|
+
qo(o),
|
|
7743
7745
|
t,
|
|
7744
7746
|
{
|
|
7745
7747
|
filesize: l.size
|
|
@@ -7750,14 +7752,14 @@ class Mo {
|
|
|
7750
7752
|
});
|
|
7751
7753
|
}
|
|
7752
7754
|
}
|
|
7753
|
-
function
|
|
7755
|
+
function qo(n) {
|
|
7754
7756
|
return new ReadableStream({
|
|
7755
7757
|
start(e) {
|
|
7756
7758
|
n.on("data", (r) => e.enqueue(r)), n.on("end", () => e.close());
|
|
7757
7759
|
}
|
|
7758
7760
|
});
|
|
7759
7761
|
}
|
|
7760
|
-
class
|
|
7762
|
+
class Pi extends Error {
|
|
7761
7763
|
constructor(t, e) {
|
|
7762
7764
|
super(t, {
|
|
7763
7765
|
...e,
|
|
@@ -7774,7 +7776,7 @@ class Oi extends Error {
|
|
|
7774
7776
|
if (o instanceof Error) {
|
|
7775
7777
|
if (o.isReportableInCLI)
|
|
7776
7778
|
return o;
|
|
7777
|
-
Array.isArray(o.cause) ? a.push(...o.cause) : a.push(o.cause), e++, e >= r &&
|
|
7779
|
+
Array.isArray(o.cause) ? a.push(...o.cause) : a.push(o.cause), e++, e >= r && Vi.warn(
|
|
7778
7780
|
"Recursion limit exceeded while checking if error is reportable"
|
|
7779
7781
|
);
|
|
7780
7782
|
}
|
|
@@ -7782,30 +7784,30 @@ class Oi extends Error {
|
|
|
7782
7784
|
return null;
|
|
7783
7785
|
}
|
|
7784
7786
|
}
|
|
7785
|
-
async function
|
|
7787
|
+
async function jo({
|
|
7786
7788
|
sourceString: n,
|
|
7787
7789
|
blueprintMayReadAdjacentFiles: t
|
|
7788
7790
|
}) {
|
|
7789
7791
|
if (!n)
|
|
7790
7792
|
return;
|
|
7791
7793
|
if (n.startsWith("http://") || n.startsWith("https://"))
|
|
7792
|
-
return await
|
|
7793
|
-
let e =
|
|
7794
|
-
if (!
|
|
7794
|
+
return await Gi(n);
|
|
7795
|
+
let e = bt.resolve(process.cwd(), n);
|
|
7796
|
+
if (!Ft.existsSync(e))
|
|
7795
7797
|
throw new Error(`Blueprint file does not exist: ${e}`);
|
|
7796
|
-
const r =
|
|
7797
|
-
if (r.isDirectory() && (e =
|
|
7798
|
+
const r = Ft.statSync(e);
|
|
7799
|
+
if (r.isDirectory() && (e = bt.join(e, "blueprint.json")), !r.isFile() && r.isSymbolicLink())
|
|
7798
7800
|
throw new Error(
|
|
7799
7801
|
`Blueprint path is neither a file nor a directory: ${e}`
|
|
7800
7802
|
);
|
|
7801
|
-
const a =
|
|
7803
|
+
const a = bt.extname(e);
|
|
7802
7804
|
switch (a) {
|
|
7803
7805
|
case ".zip":
|
|
7804
7806
|
return $t.fromArrayBuffer(
|
|
7805
|
-
|
|
7807
|
+
Ft.readFileSync(e)
|
|
7806
7808
|
);
|
|
7807
7809
|
case ".json": {
|
|
7808
|
-
const o =
|
|
7810
|
+
const o = Ft.readFileSync(e, "utf-8");
|
|
7809
7811
|
try {
|
|
7810
7812
|
JSON.parse(o);
|
|
7811
7813
|
} catch {
|
|
@@ -7813,7 +7815,7 @@ async function qo({
|
|
|
7813
7815
|
`Blueprint file at ${e} is not a valid JSON file`
|
|
7814
7816
|
);
|
|
7815
7817
|
}
|
|
7816
|
-
const c =
|
|
7818
|
+
const c = bt.dirname(e), l = new Wo(c);
|
|
7817
7819
|
return new No([
|
|
7818
7820
|
new Bo({
|
|
7819
7821
|
"blueprint.json": o
|
|
@@ -7825,7 +7827,7 @@ async function qo({
|
|
|
7825
7827
|
{
|
|
7826
7828
|
read(u) {
|
|
7827
7829
|
if (!t)
|
|
7828
|
-
throw new
|
|
7830
|
+
throw new Pi(
|
|
7829
7831
|
`Error: Blueprint contained tried to read a local file at path "${u}" (via a resource of type "bundled"). Playground restricts access to local resources by default as a security measure.
|
|
7830
7832
|
|
|
7831
7833
|
You can allow this Blueprint to read files from the same parent directory by explicitly adding the --blueprint-may-read-adjacent-files option to your command.`
|
|
@@ -7841,8 +7843,40 @@ You can allow this Blueprint to read files from the same parent directory by exp
|
|
|
7841
7843
|
);
|
|
7842
7844
|
}
|
|
7843
7845
|
}
|
|
7844
|
-
|
|
7845
|
-
const
|
|
7846
|
+
function jr(n) {
|
|
7847
|
+
const t = [];
|
|
7848
|
+
for (const e of n) {
|
|
7849
|
+
const r = e.split(":");
|
|
7850
|
+
if (r.length !== 2)
|
|
7851
|
+
throw new Error(`Invalid mount format: ${e}.
|
|
7852
|
+
Expected format: /host/path:/vfs/path.
|
|
7853
|
+
If your path contains a colon, e.g. C:\\myplugin, use the --mount-dir option instead.
|
|
7854
|
+
Example: --mount-dir C:\\my-plugin /wordpress/wp-content/plugins/my-plugin`);
|
|
7855
|
+
const [a, o] = r;
|
|
7856
|
+
if (!Hr(a))
|
|
7857
|
+
throw new Error(`Host path does not exist: ${a}`);
|
|
7858
|
+
t.push({ hostPath: a, vfsPath: o });
|
|
7859
|
+
}
|
|
7860
|
+
return t;
|
|
7861
|
+
}
|
|
7862
|
+
function Ho(n) {
|
|
7863
|
+
if (n.length % 2 !== 0)
|
|
7864
|
+
throw new Error("Invalid mount format. Expected: /host/path /vfs/path");
|
|
7865
|
+
const t = [];
|
|
7866
|
+
for (let e = 0; e < n.length; e += 2) {
|
|
7867
|
+
const r = n[e], a = n[e + 1];
|
|
7868
|
+
if (!Hr(r))
|
|
7869
|
+
throw new Error(`Host path does not exist: ${r}`);
|
|
7870
|
+
t.push({
|
|
7871
|
+
hostPath: bt.resolve(process.cwd(), r),
|
|
7872
|
+
vfsPath: a
|
|
7873
|
+
});
|
|
7874
|
+
}
|
|
7875
|
+
return t;
|
|
7876
|
+
}
|
|
7877
|
+
const Yo = () => (async () => "Suspending" in WebAssembly)();
|
|
7878
|
+
async function Go() {
|
|
7879
|
+
const n = ji(process.argv.slice(2)).usage("Usage: wp-playground <command> [options]").positional("command", {
|
|
7846
7880
|
describe: "Command to run",
|
|
7847
7881
|
choices: ["server", "run-blueprint", "build-snapshot"],
|
|
7848
7882
|
demandOption: !0
|
|
@@ -7857,8 +7891,8 @@ async function jo() {
|
|
|
7857
7891
|
}).option("php", {
|
|
7858
7892
|
describe: "PHP version to use.",
|
|
7859
7893
|
type: "string",
|
|
7860
|
-
default:
|
|
7861
|
-
choices:
|
|
7894
|
+
default: qi,
|
|
7895
|
+
choices: Wi
|
|
7862
7896
|
}).option("wp", {
|
|
7863
7897
|
describe: "WordPress version to use.",
|
|
7864
7898
|
type: "string",
|
|
@@ -7867,12 +7901,12 @@ async function jo() {
|
|
|
7867
7901
|
describe: "Mount a directory to the PHP runtime. You can provide --mount multiple times. Format: /host/path:/vfs/path",
|
|
7868
7902
|
type: "array",
|
|
7869
7903
|
string: !0,
|
|
7870
|
-
coerce:
|
|
7904
|
+
coerce: jr
|
|
7871
7905
|
}).option("mountBeforeInstall", {
|
|
7872
7906
|
describe: "Mount a directory to the PHP runtime before installing WordPress. You can provide --mount-before-install multiple times. Format: /host/path:/vfs/path",
|
|
7873
7907
|
type: "array",
|
|
7874
7908
|
string: !0,
|
|
7875
|
-
coerce:
|
|
7909
|
+
coerce: jr
|
|
7876
7910
|
}).option("mountDir", {
|
|
7877
7911
|
describe: 'Mount a directory to the PHP runtime. You can provide --mount-dir multiple times. Format: "/host/path" "/vfs/path"',
|
|
7878
7912
|
type: "array",
|
|
@@ -7884,7 +7918,7 @@ async function jo() {
|
|
|
7884
7918
|
type: "string",
|
|
7885
7919
|
nargs: 2,
|
|
7886
7920
|
array: !0,
|
|
7887
|
-
coerce:
|
|
7921
|
+
coerce: Ho
|
|
7888
7922
|
}).option("login", {
|
|
7889
7923
|
describe: "Should log the user in",
|
|
7890
7924
|
type: "boolean",
|
|
@@ -7921,8 +7955,18 @@ async function jo() {
|
|
|
7921
7955
|
Warning: Following symlinks will expose files outside mounted directories to Playground and could be a security risk.`,
|
|
7922
7956
|
type: "boolean",
|
|
7923
7957
|
default: !1
|
|
7924
|
-
}).
|
|
7925
|
-
|
|
7958
|
+
}).option("experimentalTrace", {
|
|
7959
|
+
describe: "Print detailed messages about system behavior to the console. Useful for troubleshooting.",
|
|
7960
|
+
type: "boolean",
|
|
7961
|
+
default: !1,
|
|
7962
|
+
// Hide this option because we want to replace with a more general log-level flag.
|
|
7963
|
+
hidden: !0
|
|
7964
|
+
}).option("experimentalMultiWorker", {
|
|
7965
|
+
describe: "Enable experimental multi-worker support which requires JSPI and a /wordpress directory backed by a real filesystem. Pass a positive number to specify the number of workers to use. Otherwise, default to the number of CPUs minus 1.",
|
|
7966
|
+
type: "number",
|
|
7967
|
+
coerce: (a) => a ?? Hi().length - 1
|
|
7968
|
+
}).showHelpOnFail(!1).check(async (a) => {
|
|
7969
|
+
if (a.wp !== void 0 && !Zi(a.wp))
|
|
7926
7970
|
try {
|
|
7927
7971
|
new URL(a.wp);
|
|
7928
7972
|
} catch {
|
|
@@ -7930,6 +7974,21 @@ Warning: Following symlinks will expose files outside mounted directories to Pla
|
|
|
7930
7974
|
'Unrecognized WordPress version. Please use "latest", a URL, or a numeric version such as "6.2", "6.0.1", "6.2-beta1", or "6.2-RC1"'
|
|
7931
7975
|
);
|
|
7932
7976
|
}
|
|
7977
|
+
if (a.experimentalMultiWorker !== void 0) {
|
|
7978
|
+
if (a.experimentalMultiWorker <= 1)
|
|
7979
|
+
throw new Error(
|
|
7980
|
+
"The --experimentalMultiWorker flag must be a positive integer greater than 1."
|
|
7981
|
+
);
|
|
7982
|
+
if (!await Yo())
|
|
7983
|
+
throw new Error(
|
|
7984
|
+
"JavaScript Promise Integration (JSPI) is not enabled. Please enable JSPI in your JavaScript runtime before using the --experimentalMultiWorker flag."
|
|
7985
|
+
);
|
|
7986
|
+
const o = (c) => c.vfsPath === "/wordpress";
|
|
7987
|
+
if (!a.mount?.some(o) && !a.mountBeforeInstall?.some(o))
|
|
7988
|
+
throw new Error(
|
|
7989
|
+
"Please mount a real filesystem directory as the /wordpress directory before using the --experimentalMultiWorker flag."
|
|
7990
|
+
);
|
|
7991
|
+
}
|
|
7933
7992
|
return !0;
|
|
7934
7993
|
});
|
|
7935
7994
|
n.wrap(n.terminalWidth());
|
|
@@ -7938,7 +7997,7 @@ Warning: Following symlinks will expose files outside mounted directories to Pla
|
|
|
7938
7997
|
const r = {
|
|
7939
7998
|
...t,
|
|
7940
7999
|
command: e,
|
|
7941
|
-
blueprint: await
|
|
8000
|
+
blueprint: await jo({
|
|
7942
8001
|
sourceString: t.blueprint,
|
|
7943
8002
|
blueprintMayReadAdjacentFiles: t.blueprintMayReadAdjacentFiles
|
|
7944
8003
|
}),
|
|
@@ -7949,14 +8008,14 @@ Warning: Following symlinks will expose files outside mounted directories to Pla
|
|
|
7949
8008
|
]
|
|
7950
8009
|
};
|
|
7951
8010
|
try {
|
|
7952
|
-
return
|
|
8011
|
+
return Yi(r);
|
|
7953
8012
|
} catch (a) {
|
|
7954
|
-
const o =
|
|
8013
|
+
const o = Pi.getReportableCause(a);
|
|
7955
8014
|
if (o)
|
|
7956
8015
|
console.log(""), console.log(o.message), process.exit(1);
|
|
7957
8016
|
else
|
|
7958
8017
|
throw a;
|
|
7959
8018
|
}
|
|
7960
8019
|
}
|
|
7961
|
-
|
|
8020
|
+
Go();
|
|
7962
8021
|
//# sourceMappingURL=cli.js.map
|