@wp-playground/cli 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli-auto-mount.d.ts +2 -1
- package/cli.cjs +5 -5
- package/cli.cjs.map +1 -1
- package/cli.d.ts +1 -4
- package/cli.js +435 -416
- package/cli.js.map +1 -1
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/mount.d.ts +38 -0
- package/package.json +10 -10
- package/run-cli-BSw9FKSW.cjs +35 -0
- package/run-cli-BSw9FKSW.cjs.map +1 -0
- package/run-cli-_8y4VW5F.js +375 -0
- package/run-cli-_8y4VW5F.js.map +1 -0
- package/run-cli.d.ts +3 -2
- package/run-cli-D-8hdNJ9.cjs +0 -32
- package/run-cli-D-8hdNJ9.cjs.map +0 -1
- package/run-cli-j-geJYS3.js +0 -339
- package/run-cli-j-geJYS3.js.map +0 -1
package/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { SupportedPHPVersions as
|
|
2
|
-
import { RecommendedPHPVersion as
|
|
3
|
-
import
|
|
4
|
-
import { r as
|
|
1
|
+
import { SupportedPHPVersions as Mi } from "@php-wasm/universal";
|
|
2
|
+
import { RecommendedPHPVersion as Wi } from "@wp-playground/common";
|
|
3
|
+
import qi from "yargs";
|
|
4
|
+
import { p as Mn, a as ji, r as Hi } from "./run-cli-_8y4VW5F.js";
|
|
5
5
|
import Tt from "fs";
|
|
6
6
|
import Ft from "path";
|
|
7
7
|
import { Semaphore as Tn } from "@php-wasm/util";
|
|
8
|
-
import { resolveRemoteBlueprint as
|
|
9
|
-
import { logger as
|
|
10
|
-
function
|
|
8
|
+
import { resolveRemoteBlueprint as Yi } from "@wp-playground/blueprints";
|
|
9
|
+
import { logger as Gi } from "@php-wasm/logger";
|
|
10
|
+
function Vi(n) {
|
|
11
11
|
return /^latest$|^trunk$|^nightly$|^(?:(\d+)\.(\d+)(?:\.(\d+))?)((?:-beta(?:\d+)?)|(?:-RC(?:\d+)?))?$/.test(n);
|
|
12
12
|
}
|
|
13
13
|
new Tn({ concurrency: 15 });
|
|
@@ -33,7 +33,7 @@ class Fn extends Error {
|
|
|
33
33
|
return !0;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var Zi = {};
|
|
37
37
|
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
|
38
38
|
(function(n) {
|
|
39
39
|
(function(t) {
|
|
@@ -72,17 +72,17 @@ var Gi = {};
|
|
|
72
72
|
}
|
|
73
73
|
t.table = r, t.bstr = S, t.buf = T, t.str = F;
|
|
74
74
|
});
|
|
75
|
-
})(
|
|
76
|
-
var
|
|
77
|
-
Jt.byteLength =
|
|
78
|
-
Jt.toByteArray =
|
|
79
|
-
Jt.fromByteArray =
|
|
80
|
-
var Pe = [], Fe = [],
|
|
81
|
-
for (var st = 0,
|
|
75
|
+
})(Zi);
|
|
76
|
+
var Hr = {}, Jt = {};
|
|
77
|
+
Jt.byteLength = $i;
|
|
78
|
+
Jt.toByteArray = zi;
|
|
79
|
+
Jt.fromByteArray = ts;
|
|
80
|
+
var Pe = [], Fe = [], Ki = typeof Uint8Array < "u" ? Uint8Array : Array, nn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
81
|
+
for (var st = 0, Xi = nn.length; st < Xi; ++st)
|
|
82
82
|
Pe[st] = nn[st], Fe[nn.charCodeAt(st)] = st;
|
|
83
83
|
Fe[45] = 62;
|
|
84
84
|
Fe[95] = 63;
|
|
85
|
-
function
|
|
85
|
+
function Yr(n) {
|
|
86
86
|
var t = n.length;
|
|
87
87
|
if (t % 4 > 0)
|
|
88
88
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -91,30 +91,30 @@ function Hr(n) {
|
|
|
91
91
|
var r = e === t ? 0 : 4 - e % 4;
|
|
92
92
|
return [e, r];
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
var t =
|
|
94
|
+
function $i(n) {
|
|
95
|
+
var t = Yr(n), e = t[0], r = t[1];
|
|
96
96
|
return (e + r) * 3 / 4 - r;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ji(n, t, e) {
|
|
99
99
|
return (t + e) * 3 / 4 - e;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
var t, e =
|
|
101
|
+
function zi(n) {
|
|
102
|
+
var t, e = Yr(n), r = e[0], a = e[1], o = new Ki(Ji(n, r, a)), c = 0, l = a > 0 ? r - 4 : r, u;
|
|
103
103
|
for (u = 0; u < l; u += 4)
|
|
104
104
|
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
105
|
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
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Qi(n) {
|
|
108
108
|
return Pe[n >> 18 & 63] + Pe[n >> 12 & 63] + Pe[n >> 6 & 63] + Pe[n & 63];
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function es(n, t, e) {
|
|
111
111
|
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(
|
|
112
|
+
r = (n[o] << 16 & 16711680) + (n[o + 1] << 8 & 65280) + (n[o + 2] & 255), a.push(Qi(r));
|
|
113
113
|
return a.join("");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ts(n) {
|
|
116
116
|
for (var t, e = n.length, r = e % 3, a = [], o = 16383, c = 0, l = e - r; c < l; c += o)
|
|
117
|
-
a.push(
|
|
117
|
+
a.push(es(n, c, c + o > l ? l : c + o));
|
|
118
118
|
return r === 1 ? (t = n[e - 1], a.push(
|
|
119
119
|
Pe[t >> 2] + Pe[t << 4 & 63] + "=="
|
|
120
120
|
)) : r === 2 && (t = (n[e - 2] << 8) + n[e - 1], a.push(
|
|
@@ -930,7 +930,7 @@ Rn.write = function(n, t, e, r, a, o) {
|
|
|
930
930
|
i[d + y] = f[s] + f[y];
|
|
931
931
|
return i;
|
|
932
932
|
}();
|
|
933
|
-
})(
|
|
933
|
+
})(Hr);
|
|
934
934
|
class Cn extends Fn {
|
|
935
935
|
/**
|
|
936
936
|
* @param {string} oid
|
|
@@ -945,15 +945,15 @@ class Cn extends Fn {
|
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
947
|
Cn.code = "ObjectTypeError";
|
|
948
|
-
typeof window < "u" && (window.Buffer =
|
|
949
|
-
const
|
|
948
|
+
typeof window < "u" && (window.Buffer = Hr.Buffer);
|
|
949
|
+
const Gr = function() {
|
|
950
950
|
return typeof process < "u" && process.release?.name === "node" ? "NODE" : typeof window < "u" ? "WEB" : (
|
|
951
951
|
// @ts-ignore
|
|
952
952
|
typeof WorkerGlobalScope < "u" && // @ts-ignore
|
|
953
953
|
self instanceof WorkerGlobalScope ? "WORKER" : "NODE"
|
|
954
954
|
);
|
|
955
955
|
}();
|
|
956
|
-
if (
|
|
956
|
+
if (Gr === "NODE") {
|
|
957
957
|
let n = function(e) {
|
|
958
958
|
return new Promise(function(r, a) {
|
|
959
959
|
e.onload = e.onerror = function(o) {
|
|
@@ -1004,7 +1004,7 @@ if (Yr === "NODE") {
|
|
|
1004
1004
|
});
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
|
-
if (
|
|
1007
|
+
if (Gr === "NODE" && typeof CustomEvent > "u") {
|
|
1008
1008
|
class n extends Event {
|
|
1009
1009
|
constructor(e, r = {}) {
|
|
1010
1010
|
super(e, r), this.detail = r.detail;
|
|
@@ -1014,7 +1014,7 @@ if (Yr === "NODE" && typeof CustomEvent > "u") {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
globalThis.CustomEvent = n;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function ns(...n) {
|
|
1018
1018
|
const t = new Uint8Array(
|
|
1019
1019
|
n.reduce((r, a) => r + a.length, 0)
|
|
1020
1020
|
);
|
|
@@ -1023,12 +1023,12 @@ function es(...n) {
|
|
|
1023
1023
|
t.set(r, e), e += r.length;
|
|
1024
1024
|
return t;
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function rs(n) {
|
|
1027
1027
|
{
|
|
1028
1028
|
let t = new Uint8Array();
|
|
1029
1029
|
return new TransformStream({
|
|
1030
1030
|
transform(e) {
|
|
1031
|
-
t =
|
|
1031
|
+
t = ns(t, e);
|
|
1032
1032
|
},
|
|
1033
1033
|
flush(e) {
|
|
1034
1034
|
e.enqueue(t);
|
|
@@ -1036,8 +1036,8 @@ function ts(n) {
|
|
|
1036
1036
|
});
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
async function
|
|
1040
|
-
return await n.pipeThrough(
|
|
1039
|
+
async function is(n, t) {
|
|
1040
|
+
return await n.pipeThrough(rs()).getReader().read().then(({ value: e }) => e);
|
|
1041
1041
|
}
|
|
1042
1042
|
class Yt extends File {
|
|
1043
1043
|
/**
|
|
@@ -1080,7 +1080,7 @@ class Yt extends File {
|
|
|
1080
1080
|
* @returns File data as an ArrayBuffer.
|
|
1081
1081
|
*/
|
|
1082
1082
|
async arrayBuffer() {
|
|
1083
|
-
return await
|
|
1083
|
+
return await is(this.stream());
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symbol.asyncIterator] = async function* () {
|
|
@@ -1098,14 +1098,14 @@ ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symb
|
|
|
1098
1098
|
}, ReadableStream.prototype.iterate = // @ts-ignore
|
|
1099
1099
|
ReadableStream.prototype[Symbol.asyncIterator]);
|
|
1100
1100
|
new Tn({ concurrency: 10 });
|
|
1101
|
-
const bt = 15, gn = 30, bn = 19,
|
|
1101
|
+
const bt = 15, gn = 30, bn = 19, ss = 29, Gt = 256, In = Gt + 1 + ss, Wn = 2 * In + 1, ht = 256, as = 7, qn = 16, jn = 17, Hn = 18, rn = 8 * 2, Vt = -1, os = 1, Rt = 2, cs = 0, lt = 0, Yn = 1, ls = 3, Ee = 4, Le = 0, Vr = 1, Ct = 2, Ue = -2, fs = -3, at = -5;
|
|
1102
1102
|
function zt(n) {
|
|
1103
1103
|
return Qt(n.map(([t, e]) => new Array(t).fill(e, 0, t)));
|
|
1104
1104
|
}
|
|
1105
1105
|
function Qt(n) {
|
|
1106
1106
|
return n.reduce((t, e) => t.concat(Array.isArray(e) ? Qt(e) : e), []);
|
|
1107
1107
|
}
|
|
1108
|
-
const
|
|
1108
|
+
const Gn = [0, 1, 2, 3].concat(...zt([
|
|
1109
1109
|
[2, 4],
|
|
1110
1110
|
[2, 5],
|
|
1111
1111
|
[4, 6],
|
|
@@ -1141,7 +1141,7 @@ function ie() {
|
|
|
1141
1141
|
let x, w, _, A, P, h, p = 0;
|
|
1142
1142
|
for (A = 0; A <= bt; A++)
|
|
1143
1143
|
a.bl_count[A] = 0;
|
|
1144
|
-
for (o[a.heap[a.heap_max] * 2 + 1] = 0, x = a.heap_max + 1; x <
|
|
1144
|
+
for (o[a.heap[a.heap_max] * 2 + 1] = 0, x = a.heap_max + 1; x < Wn; x++)
|
|
1145
1145
|
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
1146
|
if (p !== 0) {
|
|
1147
1147
|
do {
|
|
@@ -1172,7 +1172,7 @@ function ie() {
|
|
|
1172
1172
|
n.build_tree = function(a) {
|
|
1173
1173
|
const o = n.dyn_tree, c = n.stat_desc.static_tree, l = n.stat_desc.elems;
|
|
1174
1174
|
let u, g, x = -1, w;
|
|
1175
|
-
for (a.heap_len = 0, a.heap_max =
|
|
1175
|
+
for (a.heap_len = 0, a.heap_max = Wn, u = 0; u < l; u++)
|
|
1176
1176
|
o[u * 2] !== 0 ? (a.heap[++a.heap_len] = x = u, a.depth[u] = 0) : o[u * 2 + 1] = 0;
|
|
1177
1177
|
for (; a.heap_len < 2; )
|
|
1178
1178
|
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 +1242,7 @@ ie.base_dist = [
|
|
|
1242
1242
|
24576
|
|
1243
1243
|
];
|
|
1244
1244
|
ie.d_code = function(n) {
|
|
1245
|
-
return n < 256 ?
|
|
1245
|
+
return n < 256 ? Gn[n] : Gn[256 + (n >>> 7)];
|
|
1246
1246
|
};
|
|
1247
1247
|
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
1248
|
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 +1252,7 @@ function xe(n, t, e, r, a) {
|
|
|
1252
1252
|
const o = this;
|
|
1253
1253
|
o.static_tree = n, o.extra_bits = t, o.extra_base = e, o.elems = r, o.max_length = a;
|
|
1254
1254
|
}
|
|
1255
|
-
const
|
|
1255
|
+
const us = [
|
|
1256
1256
|
12,
|
|
1257
1257
|
140,
|
|
1258
1258
|
76,
|
|
@@ -1541,20 +1541,20 @@ const ls = [
|
|
|
1541
1541
|
163,
|
|
1542
1542
|
99,
|
|
1543
1543
|
227
|
|
1544
|
-
],
|
|
1545
|
-
xe.static_ltree = Qt(
|
|
1546
|
-
const
|
|
1547
|
-
xe.static_dtree = Qt(
|
|
1544
|
+
], ds = zt([[144, 8], [112, 9], [24, 7], [8, 8]]);
|
|
1545
|
+
xe.static_ltree = Qt(us.map((n, t) => [n, ds[t]]));
|
|
1546
|
+
const ps = [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], ms = zt([[30, 5]]);
|
|
1547
|
+
xe.static_dtree = Qt(ps.map((n, t) => [n, ms[t]]));
|
|
1548
1548
|
xe.static_l_desc = new xe(xe.static_ltree, ie.extra_lbits, Gt + 1, In, bt);
|
|
1549
1549
|
xe.static_d_desc = new xe(xe.static_dtree, ie.extra_dbits, 0, gn, bt);
|
|
1550
|
-
xe.static_bl_desc = new xe(null, ie.extra_blbits, 0, bn,
|
|
1551
|
-
const
|
|
1550
|
+
xe.static_bl_desc = new xe(null, ie.extra_blbits, 0, bn, as);
|
|
1551
|
+
const hs = 9, xs = 8;
|
|
1552
1552
|
function Oe(n, t, e, r, a) {
|
|
1553
1553
|
const o = this;
|
|
1554
1554
|
o.good_length = n, o.max_lazy = t, o.nice_length = e, o.max_chain = r, o.func = a;
|
|
1555
1555
|
}
|
|
1556
|
-
const
|
|
1557
|
-
new Oe(0, 0, 0, 0,
|
|
1556
|
+
const Zr = 0, Mt = 1, et = 2, De = [
|
|
1557
|
+
new Oe(0, 0, 0, 0, Zr),
|
|
1558
1558
|
new Oe(4, 4, 8, 4, Mt),
|
|
1559
1559
|
new Oe(4, 5, 16, 8, Mt),
|
|
1560
1560
|
new Oe(4, 6, 32, 32, Mt),
|
|
@@ -1585,12 +1585,12 @@ const Vr = 0, Mt = 1, et = 2, De = [
|
|
|
1585
1585
|
"",
|
|
1586
1586
|
// Z_VERSION_ERROR (-6)
|
|
1587
1587
|
""
|
|
1588
|
-
], Te = 0, Dt = 1, xt = 2, Lt = 3,
|
|
1589
|
-
function
|
|
1588
|
+
], Te = 0, Dt = 1, xt = 2, Lt = 3, ws = 32, sn = 42, Ut = 113, wt = 666, an = 8, _s = 0, on = 1, gs = 2, ae = 3, Wt = 258, Se = Wt + ae + 1;
|
|
1589
|
+
function Vn(n, t, e, r) {
|
|
1590
1590
|
const a = n[t * 2], o = n[e * 2];
|
|
1591
1591
|
return a < o || a == o && r[t] <= r[e];
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function bs() {
|
|
1594
1594
|
const n = this;
|
|
1595
1595
|
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
1596
|
const X = new ie(), oe = new ie(), G = new ie();
|
|
@@ -1619,7 +1619,7 @@ function _s() {
|
|
|
1619
1619
|
n.pqdownheap = function(C, B) {
|
|
1620
1620
|
const U = n.heap, M = U[B];
|
|
1621
1621
|
let q = B << 1;
|
|
1622
|
-
for (; q <= n.heap_len && (q < n.heap_len &&
|
|
1622
|
+
for (; q <= n.heap_len && (q < n.heap_len && Vn(C, U[q + 1], U[q], n.depth) && q++, !Vn(C, M, U[q], n.depth)); )
|
|
1623
1623
|
U[B] = U[q], B = q, q <<= 1;
|
|
1624
1624
|
U[B] = M;
|
|
1625
1625
|
};
|
|
@@ -1627,7 +1627,7 @@ function _s() {
|
|
|
1627
1627
|
let U = -1, M, q = C[0 * 2 + 1], V = 0, J = 7, ge = 4;
|
|
1628
1628
|
q === 0 && (J = 138, ge = 3), C[(B + 1) * 2 + 1] = 65535;
|
|
1629
1629
|
for (let Ie = 0; Ie <= B; Ie++)
|
|
1630
|
-
M = q, q = C[(Ie + 1) * 2 + 1], !(++V < J && M == q) && (V < ge ? K[M * 2] += V : M !== 0 ? (M != U && K[M * 2]++, K[
|
|
1630
|
+
M = q, q = C[(Ie + 1) * 2 + 1], !(++V < J && M == q) && (V < ge ? K[M * 2] += V : M !== 0 ? (M != U && K[M * 2]++, K[qn * 2]++) : V <= 10 ? K[jn * 2]++ : K[Hn * 2]++, V = 0, U = M, q === 0 ? (J = 138, ge = 3) : M == q ? (J = 6, ge = 3) : (J = 7, ge = 4));
|
|
1631
1631
|
}
|
|
1632
1632
|
function ze() {
|
|
1633
1633
|
let C;
|
|
@@ -1661,7 +1661,7 @@ function _s() {
|
|
|
1661
1661
|
do
|
|
1662
1662
|
f(q, K);
|
|
1663
1663
|
while (--J !== 0);
|
|
1664
|
-
else q !== 0 ? (q != M && (f(q, K), J--), f(
|
|
1664
|
+
else q !== 0 ? (q != M && (f(q, K), J--), f(qn, K), ue(J - 3, 2)) : J <= 10 ? (f(jn, K), ue(J - 3, 3)) : (f(Hn, K), ue(J - 11, 7));
|
|
1665
1665
|
J = 0, M = q, V === 0 ? (ge = 138, Ie = 3) : q == V ? (ge = 6, Ie = 3) : (ge = 7, Ie = 4);
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
@@ -1702,11 +1702,11 @@ function _s() {
|
|
|
1702
1702
|
$(), Ce = 8, fe(B), fe(~B), n.pending_buf.set(u.subarray(C, C + B), n.pending), n.pending += B;
|
|
1703
1703
|
}
|
|
1704
1704
|
function re(C, B, U) {
|
|
1705
|
-
ue((
|
|
1705
|
+
ue((_s << 1) + (U ? 1 : 0), 3), ne(C, B);
|
|
1706
1706
|
}
|
|
1707
1707
|
function pe(C, B, U) {
|
|
1708
1708
|
let M, q, V = 0;
|
|
1709
|
-
k > 0 ? (X.build_tree(n), oe.build_tree(n), V = ze(), M = n.opt_len + 3 + 7 >>> 3, q = n.static_len + 3 + 7 >>> 3, q <= M && (M = q)) : M = q = B + 5, B + 4 <= M && C != -1 ? re(C, B, U) : q == M ? (ue((on << 1) + (U ? 1 : 0), 3), N(xe.static_ltree, xe.static_dtree)) : (ue((
|
|
1709
|
+
k > 0 ? (X.build_tree(n), oe.build_tree(n), V = ze(), M = n.opt_len + 3 + 7 >>> 3, q = n.static_len + 3 + 7 >>> 3, q <= M && (M = q)) : M = q = B + 5, B + 4 <= M && C != -1 ? re(C, B, U) : q == M ? (ue((on << 1) + (U ? 1 : 0), 3), N(xe.static_ltree, xe.static_dtree)) : (ue((gs << 1) + (U ? 1 : 0), 3), s(X.max_code + 1, oe.max_code + 1, V + 1), N(H, j)), Me(), U && $();
|
|
1710
1710
|
}
|
|
1711
1711
|
function te(C) {
|
|
1712
1712
|
pe(m >= 0 ? m : -1, S - m, C), m = S, t.flush_pending();
|
|
@@ -1770,7 +1770,7 @@ function _s() {
|
|
|
1770
1770
|
while ((C = x[C & Ie] & 65535) > J && --B !== 0);
|
|
1771
1771
|
return V <= F ? V : F;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function Pi(C) {
|
|
1774
1774
|
let B = 0, U;
|
|
1775
1775
|
for (; ; ) {
|
|
1776
1776
|
if (F < Se) {
|
|
@@ -1795,7 +1795,7 @@ function _s() {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
return te(C == Ee), t.avail_out === 0 ? C == Ee ? xt : Te : C == Ee ? Lt : Dt;
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function Bi(C) {
|
|
1799
1799
|
let B = 0, U, M;
|
|
1800
1800
|
for (; ; ) {
|
|
1801
1801
|
if (F < Se) {
|
|
@@ -1804,7 +1804,7 @@ function _s() {
|
|
|
1804
1804
|
if (F === 0)
|
|
1805
1805
|
break;
|
|
1806
1806
|
}
|
|
1807
|
-
if (F >= ae && (_ = (_ << p ^ u[S + (ae - 1)] & 255) & h, B = w[_] & 65535, x[S & l] = w[_], w[_] = S), b = E, R = T, E = ae - 1, B !== 0 && b < v && (S - B & 65535) <= o - Se && (W != Rt && (E = mt(B)), E <= 5 && (W ==
|
|
1807
|
+
if (F >= ae && (_ = (_ << p ^ u[S + (ae - 1)] & 255) & h, B = w[_] & 65535, x[S & l] = w[_], w[_] = S), b = E, R = T, E = ae - 1, B !== 0 && b < v && (S - B & 65535) <= o - Se && (W != Rt && (E = mt(B)), E <= 5 && (W == os || E == ae && S - T > 4096) && (E = ae - 1)), b >= ae && E <= b) {
|
|
1808
1808
|
M = S + F - ae, U = L(S - 1 - R, b - ae), F -= b - 1, b -= 2;
|
|
1809
1809
|
do
|
|
1810
1810
|
++S <= M && (_ = (_ << p ^ u[S + (ae - 1)] & 255) & h, B = w[_] & 65535, x[S & l] = w[_], w[_] = S);
|
|
@@ -1819,16 +1819,16 @@ function _s() {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
return D !== 0 && (U = L(0, u[S - 1] & 255), D = 0), te(C == Ee), t.avail_out === 0 ? C == Ee ? xt : Te : C == Ee ? Lt : Dt;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function Ni(C) {
|
|
1823
1823
|
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
1824
|
}
|
|
1825
1825
|
n.deflateInit = function(C, B, U, M, q, V) {
|
|
1826
|
-
return M || (M = an), q || (q =
|
|
1826
|
+
return M || (M = an), q || (q = xs), V || (V = cs), C.msg = null, B == Vt && (B = 6), q < 1 || q > hs || M != an || U < 9 || U > 15 || B < 0 || B > 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 = B, W = V, Ni(C));
|
|
1827
1827
|
}, 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 ?
|
|
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 ? fs : Le);
|
|
1829
1829
|
}, n.deflateParams = function(C, B, U) {
|
|
1830
1830
|
let M = Le;
|
|
1831
|
-
return B == Vt && (B = 6), B < 0 || B > 9 || U < 0 || U > Rt ? Ue : (De[k].func != De[B].func && C.total_in !== 0 && (M = C.deflate(
|
|
1831
|
+
return B == Vt && (B = 6), B < 0 || B > 9 || U < 0 || U > Rt ? Ue : (De[k].func != De[B].func && C.total_in !== 0 && (M = C.deflate(Yn)), k != B && (k = B, v = De[k].max_lazy, O = De[k].good_length, Z = De[k].nice_length, I = De[k].max_chain), W = U, M);
|
|
1832
1832
|
}, n.deflateSetDictionary = function(C, B, U) {
|
|
1833
1833
|
let M = U, q, V = 0;
|
|
1834
1834
|
if (!B || e != sn)
|
|
@@ -1846,7 +1846,7 @@ function _s() {
|
|
|
1846
1846
|
return C.msg = It[Ct - Ue], Ue;
|
|
1847
1847
|
if (C.avail_out === 0)
|
|
1848
1848
|
return C.msg = It[Ct - at], at;
|
|
1849
|
-
if (t = C, V = a, a = B, e == sn && (M = an + (c - 8 << 4) << 8, q = (k - 1 & 255) >> 1, q > 3 && (q = 3), M |= q << 6, S !== 0 && (M |=
|
|
1849
|
+
if (t = C, V = a, a = B, e == sn && (M = an + (c - 8 << 4) << 8, q = (k - 1 & 255) >> 1, q > 3 && (q = 3), M |= q << 6, S !== 0 && (M |= ws), M += 31 - M % 31, e = Ut, We(M)), n.pending !== 0) {
|
|
1850
1850
|
if (t.flush_pending(), t.avail_out === 0)
|
|
1851
1851
|
return a = -1, Le;
|
|
1852
1852
|
} else if (t.avail_in === 0 && B <= V && B != Ee)
|
|
@@ -1855,39 +1855,39 @@ function _s() {
|
|
|
1855
1855
|
return C.msg = It[Ct - at], at;
|
|
1856
1856
|
if (t.avail_in !== 0 || F !== 0 || B != lt && e != wt) {
|
|
1857
1857
|
switch (J = -1, De[k].func) {
|
|
1858
|
-
case
|
|
1858
|
+
case Zr:
|
|
1859
1859
|
J = At(B);
|
|
1860
1860
|
break;
|
|
1861
1861
|
case Mt:
|
|
1862
|
-
J =
|
|
1862
|
+
J = Pi(B);
|
|
1863
1863
|
break;
|
|
1864
1864
|
case et:
|
|
1865
|
-
J =
|
|
1865
|
+
J = Bi(B);
|
|
1866
1866
|
break;
|
|
1867
1867
|
}
|
|
1868
1868
|
if ((J == xt || J == Lt) && (e = wt), J == Te || J == xt)
|
|
1869
1869
|
return t.avail_out === 0 && (a = -1), Le;
|
|
1870
1870
|
if (J == Dt) {
|
|
1871
|
-
if (B ==
|
|
1871
|
+
if (B == Yn)
|
|
1872
1872
|
y();
|
|
1873
|
-
else if (re(0, 0, !1), B ==
|
|
1873
|
+
else if (re(0, 0, !1), B == ls)
|
|
1874
1874
|
for (U = 0; U < A; U++)
|
|
1875
1875
|
w[U] = 0;
|
|
1876
1876
|
if (t.flush_pending(), t.avail_out === 0)
|
|
1877
1877
|
return a = -1, Le;
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
|
-
return B != Ee ? Le :
|
|
1880
|
+
return B != Ee ? Le : Vr;
|
|
1881
1881
|
};
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function Kr() {
|
|
1884
1884
|
const n = this;
|
|
1885
1885
|
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
1886
|
}
|
|
1887
|
-
|
|
1887
|
+
Kr.prototype = {
|
|
1888
1888
|
deflateInit(n, t) {
|
|
1889
1889
|
const e = this;
|
|
1890
|
-
return e.dstate = new
|
|
1890
|
+
return e.dstate = new bs(), t || (t = bt), e.dstate.deflateInit(e, n, t);
|
|
1891
1891
|
},
|
|
1892
1892
|
deflate(n) {
|
|
1893
1893
|
const t = this;
|
|
@@ -1928,8 +1928,8 @@ Zr.prototype = {
|
|
|
1928
1928
|
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
1929
|
}
|
|
1930
1930
|
};
|
|
1931
|
-
function
|
|
1932
|
-
const t = this, e = new
|
|
1931
|
+
function ys(n) {
|
|
1932
|
+
const t = this, e = new Kr(), r = vs(n && n.chunkSize ? n.chunkSize : 64 * 1024), a = lt, o = new Uint8Array(r);
|
|
1933
1933
|
let c = n ? n.level : Vt;
|
|
1934
1934
|
typeof c > "u" && (c = Vt), e.deflateInit(c), e.next_out = o, t.append = function(l, u) {
|
|
1935
1935
|
let g, x, w = 0, _ = 0, A = 0;
|
|
@@ -1949,7 +1949,7 @@ function gs(n) {
|
|
|
1949
1949
|
let l, u, g = 0, x = 0;
|
|
1950
1950
|
const w = [];
|
|
1951
1951
|
do {
|
|
1952
|
-
if (e.next_out_index = 0, e.avail_out = r, l = e.deflate(Ee), l !=
|
|
1952
|
+
if (e.next_out_index = 0, e.avail_out = r, l = e.deflate(Ee), l != Vr && l != Le)
|
|
1953
1953
|
throw new Error("deflating: " + e.msg);
|
|
1954
1954
|
r - e.avail_out > 0 && w.push(o.slice(0, e.next_out_index)), x += e.next_out_index;
|
|
1955
1955
|
} while (e.avail_in > 0 || e.avail_out === 0);
|
|
@@ -1958,10 +1958,10 @@ function gs(n) {
|
|
|
1958
1958
|
}), u;
|
|
1959
1959
|
};
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1961
|
+
function vs(n) {
|
|
1962
1962
|
return n + 5 * (Math.floor(n / 16383) + 1);
|
|
1963
1963
|
}
|
|
1964
|
-
const
|
|
1964
|
+
const Es = 15, Q = 0, qe = 1, ks = 2, ke = -2, se = -3, Zn = -4, je = -5, Ae = [
|
|
1965
1965
|
0,
|
|
1966
1966
|
1,
|
|
1967
1967
|
3,
|
|
@@ -1979,7 +1979,7 @@ const ys = 15, Q = 0, qe = 1, vs = 2, ke = -2, se = -3, Vn = -4, je = -5, Ae = [
|
|
|
1979
1979
|
16383,
|
|
1980
1980
|
32767,
|
|
1981
1981
|
65535
|
|
1982
|
-
],
|
|
1982
|
+
], Xr = 1440, Ss = 0, As = 4, Ts = 9, Fs = 5, Rs = [
|
|
1983
1983
|
96,
|
|
1984
1984
|
7,
|
|
1985
1985
|
256,
|
|
@@ -3516,7 +3516,7 @@ const ys = 15, Q = 0, qe = 1, vs = 2, ke = -2, se = -3, Vn = -4, je = -5, Ae = [
|
|
|
3516
3516
|
0,
|
|
3517
3517
|
9,
|
|
3518
3518
|
255
|
|
3519
|
-
],
|
|
3519
|
+
], Cs = [
|
|
3520
3520
|
80,
|
|
3521
3521
|
5,
|
|
3522
3522
|
1,
|
|
@@ -3613,7 +3613,7 @@ const ys = 15, Q = 0, qe = 1, vs = 2, ke = -2, se = -3, Vn = -4, je = -5, Ae = [
|
|
|
3613
3613
|
192,
|
|
3614
3614
|
5,
|
|
3615
3615
|
24577
|
|
3616
|
-
],
|
|
3616
|
+
], Is = [
|
|
3617
3617
|
// Copy lengths for literal codes 257..285
|
|
3618
3618
|
3,
|
|
3619
3619
|
4,
|
|
@@ -3646,7 +3646,7 @@ const ys = 15, Q = 0, qe = 1, vs = 2, ke = -2, se = -3, Vn = -4, je = -5, Ae = [
|
|
|
3646
3646
|
258,
|
|
3647
3647
|
0,
|
|
3648
3648
|
0
|
|
3649
|
-
],
|
|
3649
|
+
], Ds = [
|
|
3650
3650
|
// Extra bits for literal codes 257..285
|
|
3651
3651
|
0,
|
|
3652
3652
|
0,
|
|
@@ -3680,7 +3680,7 @@ const ys = 15, Q = 0, qe = 1, vs = 2, ke = -2, se = -3, Vn = -4, je = -5, Ae = [
|
|
|
3680
3680
|
112,
|
|
3681
3681
|
112
|
|
3682
3682
|
// 112==invalid
|
|
3683
|
-
],
|
|
3683
|
+
], Ls = [
|
|
3684
3684
|
// Copy offsets for distance codes 0..29
|
|
3685
3685
|
1,
|
|
3686
3686
|
2,
|
|
@@ -3712,7 +3712,7 @@ const ys = 15, Q = 0, qe = 1, vs = 2, ke = -2, se = -3, Vn = -4, je = -5, Ae = [
|
|
|
3712
3712
|
12289,
|
|
3713
3713
|
16385,
|
|
3714
3714
|
24577
|
|
3715
|
-
],
|
|
3715
|
+
], Us = [
|
|
3716
3716
|
// Extra bits for distance codes
|
|
3717
3717
|
0,
|
|
3718
3718
|
0,
|
|
@@ -3777,7 +3777,7 @@ function yn() {
|
|
|
3777
3777
|
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
3778
|
for (; ++I < X && !((S <<= 1) <= r[++j]); )
|
|
3779
3779
|
S -= r[j];
|
|
3780
|
-
if (X = 1 << I, E[0] + X >
|
|
3780
|
+
if (X = 1 << I, E[0] + X > Xr)
|
|
3781
3781
|
return se;
|
|
3782
3782
|
o[F] = Z = /* hp+ */
|
|
3783
3783
|
E[0], E[0] += X, F !== 0 ? (c[F] = b, a[0] = /* (byte) */
|
|
@@ -3812,14 +3812,14 @@ function yn() {
|
|
|
3812
3812
|
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
3813
|
}, n.inflate_trees_dynamic = function(g, x, w, _, A, P, h, p, m) {
|
|
3814
3814
|
let E;
|
|
3815
|
-
return u(288), t[0] = 0, E = l(w, 0, g, 257,
|
|
3815
|
+
return u(288), t[0] = 0, E = l(w, 0, g, 257, Is, Ds, P, _, p, t, e), E != Q || _[0] === 0 ? (E == se ? m.msg = "oversubscribed literal/length tree" : E != Zn && (m.msg = "incomplete literal/length tree", E = se), E) : (u(288), E = l(w, g, x, 0, Ls, Us, 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 != Zn && (m.msg = "empty distance tree with lengths", E = se), E) : Q);
|
|
3816
3816
|
};
|
|
3817
3817
|
}
|
|
3818
3818
|
yn.inflate_trees_fixed = function(n, t, e, r) {
|
|
3819
|
-
return n[0] =
|
|
3819
|
+
return n[0] = Ts, t[0] = Fs, e[0] = Rs, r[0] = Cs, Q;
|
|
3820
3820
|
};
|
|
3821
|
-
const Ot = 0,
|
|
3822
|
-
function
|
|
3821
|
+
const Ot = 0, Kn = 1, Xn = 2, $n = 3, Jn = 4, zn = 5, Qn = 6, cn = 7, er = 8, Pt = 9;
|
|
3822
|
+
function Os() {
|
|
3823
3823
|
const n = this;
|
|
3824
3824
|
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
3825
|
function h(p, m, E, R, D, S, T, F) {
|
|
@@ -3898,8 +3898,8 @@ function Ls() {
|
|
|
3898
3898
|
t = E == qe ? cn : Pt;
|
|
3899
3899
|
break;
|
|
3900
3900
|
}
|
|
3901
|
-
o = g, r = w, a = _, t =
|
|
3902
|
-
case
|
|
3901
|
+
o = g, r = w, a = _, t = Kn;
|
|
3902
|
+
case Kn:
|
|
3903
3903
|
for (R = o; F < R; ) {
|
|
3904
3904
|
if (I !== 0)
|
|
3905
3905
|
E = Q;
|
|
@@ -3908,11 +3908,11 @@ function Ls() {
|
|
|
3908
3908
|
I--, T |= (m.read_byte(b++) & 255) << F, F += 8;
|
|
3909
3909
|
}
|
|
3910
3910
|
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 =
|
|
3911
|
+
c = r[D + 2], t = Qn;
|
|
3912
3912
|
break;
|
|
3913
3913
|
}
|
|
3914
3914
|
if (S & 16) {
|
|
3915
|
-
l = S & 15, e = r[D + 2], t =
|
|
3915
|
+
l = S & 15, e = r[D + 2], t = Xn;
|
|
3916
3916
|
break;
|
|
3917
3917
|
}
|
|
3918
3918
|
if (!(S & 64)) {
|
|
@@ -3924,7 +3924,7 @@ function Ls() {
|
|
|
3924
3924
|
break;
|
|
3925
3925
|
}
|
|
3926
3926
|
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
|
|
3927
|
+
case Xn:
|
|
3928
3928
|
for (R = l; F < R; ) {
|
|
3929
3929
|
if (I !== 0)
|
|
3930
3930
|
E = Q;
|
|
@@ -3932,8 +3932,8 @@ function Ls() {
|
|
|
3932
3932
|
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
3933
|
I--, T |= (m.read_byte(b++) & 255) << F, F += 8;
|
|
3934
3934
|
}
|
|
3935
|
-
e += T & Ae[R], T >>= R, F -= R, o = x, r = A, a = P, t =
|
|
3936
|
-
case
|
|
3935
|
+
e += T & Ae[R], T >>= R, F -= R, o = x, r = A, a = P, t = $n;
|
|
3936
|
+
case $n:
|
|
3937
3937
|
for (R = o; F < R; ) {
|
|
3938
3938
|
if (I !== 0)
|
|
3939
3939
|
E = Q;
|
|
@@ -3942,7 +3942,7 @@ function Ls() {
|
|
|
3942
3942
|
I--, T |= (m.read_byte(b++) & 255) << F, F += 8;
|
|
3943
3943
|
}
|
|
3944
3944
|
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 =
|
|
3945
|
+
l = S & 15, u = r[D + 2], t = Jn;
|
|
3946
3946
|
break;
|
|
3947
3947
|
}
|
|
3948
3948
|
if (!(S & 64)) {
|
|
@@ -3950,7 +3950,7 @@ function Ls() {
|
|
|
3950
3950
|
break;
|
|
3951
3951
|
}
|
|
3952
3952
|
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
|
|
3953
|
+
case Jn:
|
|
3954
3954
|
for (R = l; F < R; ) {
|
|
3955
3955
|
if (I !== 0)
|
|
3956
3956
|
E = Q;
|
|
@@ -3958,8 +3958,8 @@ function Ls() {
|
|
|
3958
3958
|
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
3959
|
I--, T |= (m.read_byte(b++) & 255) << F, F += 8;
|
|
3960
3960
|
}
|
|
3961
|
-
u += T & Ae[R], T >>= R, F -= R, t =
|
|
3962
|
-
case
|
|
3961
|
+
u += T & Ae[R], T >>= R, F -= R, t = zn;
|
|
3962
|
+
case zn:
|
|
3963
3963
|
for (W = v - u; W < 0; )
|
|
3964
3964
|
W += p.end;
|
|
3965
3965
|
for (; e !== 0; ) {
|
|
@@ -3969,7 +3969,7 @@ function Ls() {
|
|
|
3969
3969
|
}
|
|
3970
3970
|
t = Ot;
|
|
3971
3971
|
break;
|
|
3972
|
-
case
|
|
3972
|
+
case Qn:
|
|
3973
3973
|
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
3974
|
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
3975
|
E = Q, p.win[v++] = /* (byte) */
|
|
@@ -3978,8 +3978,8 @@ function Ls() {
|
|
|
3978
3978
|
case cn:
|
|
3979
3979
|
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
3980
|
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
|
|
3981
|
+
t = er;
|
|
3982
|
+
case er:
|
|
3983
3983
|
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
3984
|
case Pt:
|
|
3985
3985
|
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 +3989,7 @@ function Ls() {
|
|
|
3989
3989
|
}, n.free = function() {
|
|
3990
3990
|
};
|
|
3991
3991
|
}
|
|
3992
|
-
const
|
|
3992
|
+
const tr = [
|
|
3993
3993
|
// Order of the bit length code lengths
|
|
3994
3994
|
16,
|
|
3995
3995
|
17,
|
|
@@ -4010,12 +4010,12 @@ const er = [
|
|
|
4010
4010
|
14,
|
|
4011
4011
|
1,
|
|
4012
4012
|
15
|
|
4013
|
-
], ot = 0, ln = 1,
|
|
4014
|
-
function
|
|
4013
|
+
], ot = 0, ln = 1, nr = 2, rr = 3, ir = 4, sr = 5, Bt = 6, Nt = 7, ar = 8, Qe = 9;
|
|
4014
|
+
function Ps(n, t) {
|
|
4015
4015
|
const e = this;
|
|
4016
4016
|
let r = ot, a = 0, o = 0, c = 0, l;
|
|
4017
|
-
const u = [0], g = [0], x = new
|
|
4018
|
-
let w = 0, _ = new Int32Array(
|
|
4017
|
+
const u = [0], g = [0], x = new Os();
|
|
4018
|
+
let w = 0, _ = new Int32Array(Xr * 3);
|
|
4019
4019
|
const A = 0, P = new yn();
|
|
4020
4020
|
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
4021
|
p && (p[0] = A), r == Bt && x.free(h), r = ot, e.bitk = 0, e.bitb = 0, e.read = e.write = 0;
|
|
@@ -4046,7 +4046,7 @@ function Us(n, t) {
|
|
|
4046
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 = Bt;
|
|
4047
4047
|
break;
|
|
4048
4048
|
case 2:
|
|
4049
|
-
E >>>= 3, R -= 3, r =
|
|
4049
|
+
E >>>= 3, R -= 3, r = rr;
|
|
4050
4050
|
break;
|
|
4051
4051
|
case 3:
|
|
4052
4052
|
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 +4062,9 @@ function Us(n, t) {
|
|
|
4062
4062
|
}
|
|
4063
4063
|
if ((~E >>> 16 & 65535) != (E & 65535))
|
|
4064
4064
|
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 ?
|
|
4065
|
+
a = E & 65535, E = R = 0, r = a !== 0 ? nr : w !== 0 ? Nt : ot;
|
|
4066
4066
|
break;
|
|
4067
|
-
case
|
|
4067
|
+
case nr:
|
|
4068
4068
|
if (S === 0 || F === 0 && (T == e.end && e.read !== 0 && (T = 0, F = /* (int) */
|
|
4069
4069
|
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
4070
|
T < e.read ? e.read - T - 1 : e.end - T, T == e.end && e.read !== 0 && (T = 0, F = /* (int) */
|
|
@@ -4074,7 +4074,7 @@ function Us(n, t) {
|
|
|
4074
4074
|
break;
|
|
4075
4075
|
r = w !== 0 ? Nt : ot;
|
|
4076
4076
|
break;
|
|
4077
|
-
case
|
|
4077
|
+
case rr:
|
|
4078
4078
|
for (; R < 14; ) {
|
|
4079
4079
|
if (S !== 0)
|
|
4080
4080
|
p = Q;
|
|
@@ -4089,8 +4089,8 @@ function Us(n, t) {
|
|
|
4089
4089
|
else
|
|
4090
4090
|
for (b = 0; b < m; b++)
|
|
4091
4091
|
l[b] = 0;
|
|
4092
|
-
E >>>= 14, R -= 14, c = 0, r =
|
|
4093
|
-
case
|
|
4092
|
+
E >>>= 14, R -= 14, c = 0, r = ir;
|
|
4093
|
+
case ir:
|
|
4094
4094
|
for (; c < 4 + (o >>> 10); ) {
|
|
4095
4095
|
for (; R < 3; ) {
|
|
4096
4096
|
if (S !== 0)
|
|
@@ -4099,14 +4099,14 @@ function Us(n, t) {
|
|
|
4099
4099
|
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
4100
|
S--, E |= (h.read_byte(D++) & 255) << R, R += 8;
|
|
4101
4101
|
}
|
|
4102
|
-
l[
|
|
4102
|
+
l[tr[c++]] = E & 7, E >>>= 3, R -= 3;
|
|
4103
4103
|
}
|
|
4104
4104
|
for (; c < 19; )
|
|
4105
|
-
l[
|
|
4105
|
+
l[tr[c++]] = 0;
|
|
4106
4106
|
if (u[0] = 7, m = P.inflate_trees_bits(l, u, g, _, h), m != Q)
|
|
4107
4107
|
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
|
|
4108
|
+
c = 0, r = sr;
|
|
4109
|
+
case sr:
|
|
4110
4110
|
for (; m = o, !(c >= 258 + (m & 31) + (m >> 5 & 31)); ) {
|
|
4111
4111
|
let K, X;
|
|
4112
4112
|
for (m = u[0]; R < m; ) {
|
|
@@ -4151,8 +4151,8 @@ function Us(n, t) {
|
|
|
4151
4151
|
if (e.write = T, p = e.inflate_flush(h, p), T = e.write, F = /* (int) */
|
|
4152
4152
|
T < e.read ? e.read - T - 1 : e.end - T, e.read != e.write)
|
|
4153
4153
|
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
|
|
4154
|
+
r = ar;
|
|
4155
|
+
case ar:
|
|
4156
4156
|
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
4157
|
case Qe:
|
|
4158
4158
|
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 +4168,8 @@ function Us(n, t) {
|
|
|
4168
4168
|
return r == ln ? 1 : 0;
|
|
4169
4169
|
};
|
|
4170
4170
|
}
|
|
4171
|
-
const
|
|
4172
|
-
function
|
|
4171
|
+
const Bs = 32, Ns = 8, Ms = 0, or = 1, cr = 2, lr = 3, fr = 4, ur = 5, fn = 6, _t = 7, dr = 12, Ge = 13, Ws = [0, 0, 255, 255];
|
|
4172
|
+
function qs() {
|
|
4173
4173
|
const n = this;
|
|
4174
4174
|
n.mode = 0, n.method = 0, n.was = [0], n.need = 0, n.marker = 0, n.wbits = 0;
|
|
4175
4175
|
function t(e) {
|
|
@@ -4178,18 +4178,18 @@ function Ms() {
|
|
|
4178
4178
|
n.inflateEnd = function(e) {
|
|
4179
4179
|
return n.blocks && n.blocks.free(e), n.blocks = null, Q;
|
|
4180
4180
|
}, 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
|
|
4181
|
+
return e.msg = null, n.blocks = null, r < 8 || r > 15 ? (n.inflateEnd(e), ke) : (n.wbits = r, e.istate.blocks = new Ps(e, 1 << r), t(e), Q);
|
|
4182
4182
|
}, n.inflate = function(e, r) {
|
|
4183
4183
|
let a, o;
|
|
4184
4184
|
if (!e || !e.istate || !e.next_in)
|
|
4185
4185
|
return ke;
|
|
4186
4186
|
const c = e.istate;
|
|
4187
|
-
for (r = r ==
|
|
4187
|
+
for (r = r == As ? je : Q, a = je; ; )
|
|
4188
4188
|
switch (c.mode) {
|
|
4189
|
-
case
|
|
4189
|
+
case Ms:
|
|
4190
4190
|
if (e.avail_in === 0)
|
|
4191
4191
|
return a;
|
|
4192
|
-
if (a = r, e.avail_in--, e.total_in++, ((c.method = e.read_byte(e.next_in_index++)) & 15) !=
|
|
4192
|
+
if (a = r, e.avail_in--, e.total_in++, ((c.method = e.read_byte(e.next_in_index++)) & 15) != Ns) {
|
|
4193
4193
|
c.mode = Ge, e.msg = "unknown compression method", c.marker = 5;
|
|
4194
4194
|
break;
|
|
4195
4195
|
}
|
|
@@ -4197,33 +4197,33 @@ function Ms() {
|
|
|
4197
4197
|
c.mode = Ge, e.msg = "invalid win size", c.marker = 5;
|
|
4198
4198
|
break;
|
|
4199
4199
|
}
|
|
4200
|
-
c.mode =
|
|
4201
|
-
case
|
|
4200
|
+
c.mode = or;
|
|
4201
|
+
case or:
|
|
4202
4202
|
if (e.avail_in === 0)
|
|
4203
4203
|
return a;
|
|
4204
4204
|
if (a = r, e.avail_in--, e.total_in++, o = e.read_byte(e.next_in_index++) & 255, ((c.method << 8) + o) % 31 !== 0) {
|
|
4205
4205
|
c.mode = Ge, e.msg = "incorrect header check", c.marker = 5;
|
|
4206
4206
|
break;
|
|
4207
4207
|
}
|
|
4208
|
-
if (!(o &
|
|
4208
|
+
if (!(o & Bs)) {
|
|
4209
4209
|
c.mode = _t;
|
|
4210
4210
|
break;
|
|
4211
4211
|
}
|
|
4212
|
-
c.mode =
|
|
4213
|
-
case or:
|
|
4214
|
-
if (e.avail_in === 0)
|
|
4215
|
-
return a;
|
|
4216
|
-
a = r, e.avail_in--, e.total_in++, c.need = (e.read_byte(e.next_in_index++) & 255) << 24 & 4278190080, c.mode = cr;
|
|
4212
|
+
c.mode = cr;
|
|
4217
4213
|
case cr:
|
|
4218
4214
|
if (e.avail_in === 0)
|
|
4219
4215
|
return a;
|
|
4220
|
-
a = r, e.avail_in--, e.total_in++, c.need
|
|
4216
|
+
a = r, e.avail_in--, e.total_in++, c.need = (e.read_byte(e.next_in_index++) & 255) << 24 & 4278190080, c.mode = lr;
|
|
4221
4217
|
case lr:
|
|
4222
4218
|
if (e.avail_in === 0)
|
|
4223
4219
|
return a;
|
|
4224
|
-
a = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) <<
|
|
4220
|
+
a = r, e.avail_in--, e.total_in++, c.need += (e.read_byte(e.next_in_index++) & 255) << 16 & 16711680, c.mode = fr;
|
|
4225
4221
|
case fr:
|
|
4226
|
-
|
|
4222
|
+
if (e.avail_in === 0)
|
|
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);
|
|
4227
4227
|
case fn:
|
|
4228
4228
|
return c.mode = Ge, e.msg = "need dictionary", c.marker = 0, ke;
|
|
4229
4229
|
case _t:
|
|
@@ -4233,8 +4233,8 @@ function Ms() {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
if (a == Q && (a = r), a != qe)
|
|
4235
4235
|
return a;
|
|
4236
|
-
a = r, c.blocks.reset(e, c.was), c.mode =
|
|
4237
|
-
case
|
|
4236
|
+
a = r, c.blocks.reset(e, c.was), c.mode = dr;
|
|
4237
|
+
case dr:
|
|
4238
4238
|
return e.avail_in = 0, qe;
|
|
4239
4239
|
case Ge:
|
|
4240
4240
|
return se;
|
|
@@ -4255,18 +4255,18 @@ function Ms() {
|
|
|
4255
4255
|
if (u.mode != Ge && (u.mode = Ge, u.marker = 0), (r = e.avail_in) === 0)
|
|
4256
4256
|
return je;
|
|
4257
4257
|
for (a = e.next_in_index, o = u.marker; r !== 0 && o < 4; )
|
|
4258
|
-
e.read_byte(a) ==
|
|
4258
|
+
e.read_byte(a) == Ws[o] ? o++ : e.read_byte(a) !== 0 ? o = 0 : o = 4 - o, a++, r--;
|
|
4259
4259
|
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
4260
|
}, n.inflateSyncPoint = function(e) {
|
|
4261
4261
|
return !e || !e.istate || !e.istate.blocks ? ke : e.istate.blocks.sync_point();
|
|
4262
4262
|
};
|
|
4263
4263
|
}
|
|
4264
|
-
function
|
|
4264
|
+
function $r() {
|
|
4265
4265
|
}
|
|
4266
|
-
|
|
4266
|
+
$r.prototype = {
|
|
4267
4267
|
inflateInit(n) {
|
|
4268
4268
|
const t = this;
|
|
4269
|
-
return t.istate = new
|
|
4269
|
+
return t.istate = new qs(), n || (n = Es), t.istate.inflateInit(t, n);
|
|
4270
4270
|
},
|
|
4271
4271
|
inflate(n) {
|
|
4272
4272
|
const t = this;
|
|
@@ -4294,8 +4294,8 @@ Xr.prototype = {
|
|
|
4294
4294
|
return this.next_in.subarray(n, n + t);
|
|
4295
4295
|
}
|
|
4296
4296
|
};
|
|
4297
|
-
function
|
|
4298
|
-
const t = this, e = new
|
|
4297
|
+
function js(n) {
|
|
4298
|
+
const t = this, e = new $r(), r = n && n.chunkSize ? Math.floor(n.chunkSize * 2) : 128 * 1024, a = Ss, o = new Uint8Array(r);
|
|
4299
4299
|
let c = !1;
|
|
4300
4300
|
e.inflateInit(), e.next_out = o, t.append = function(l, u) {
|
|
4301
4301
|
const g = [];
|
|
@@ -4320,8 +4320,8 @@ function Ws(n) {
|
|
|
4320
4320
|
e.inflateEnd();
|
|
4321
4321
|
};
|
|
4322
4322
|
}
|
|
4323
|
-
const nt = 4294967295, Ke = 65535,
|
|
4324
|
-
class
|
|
4323
|
+
const nt = 4294967295, Ke = 65535, Hs = 8, Ys = 0, Gs = 99, Vs = 67324752, Zs = 134695760, pr = 33639248, Ks = 101010256, mr = 101075792, Xs = 117853008, ct = 22, un = 20, dn = 56, $s = 1, Js = 39169, zs = 10, Qs = 1, ea = 21589, ta = 28789, na = 25461, ra = 6534, hr = 1, ia = 6, xr = 8, wr = 2048, _r = 16, gr = 16384, br = 73, yr = "/", ve = void 0, $e = "undefined", kt = "function";
|
|
4324
|
+
class vr {
|
|
4325
4325
|
constructor(t) {
|
|
4326
4326
|
return class extends TransformStream {
|
|
4327
4327
|
constructor(e, r) {
|
|
@@ -4339,27 +4339,27 @@ class yr {
|
|
|
4339
4339
|
};
|
|
4340
4340
|
}
|
|
4341
4341
|
}
|
|
4342
|
-
const
|
|
4343
|
-
let
|
|
4342
|
+
const sa = 64;
|
|
4343
|
+
let Jr = 2;
|
|
4344
4344
|
try {
|
|
4345
|
-
typeof navigator != $e && navigator.hardwareConcurrency && (
|
|
4345
|
+
typeof navigator != $e && navigator.hardwareConcurrency && (Jr = navigator.hardwareConcurrency);
|
|
4346
4346
|
} catch {
|
|
4347
4347
|
}
|
|
4348
|
-
const
|
|
4348
|
+
const aa = {
|
|
4349
4349
|
chunkSize: 512 * 1024,
|
|
4350
|
-
maxWorkers:
|
|
4350
|
+
maxWorkers: Jr,
|
|
4351
4351
|
terminateWorkerTimeout: 5e3,
|
|
4352
4352
|
useWebWorkers: !0,
|
|
4353
4353
|
useCompressionStream: !0,
|
|
4354
4354
|
workerScripts: ve,
|
|
4355
4355
|
CompressionStreamNative: typeof CompressionStream != $e && CompressionStream,
|
|
4356
4356
|
DecompressionStreamNative: typeof DecompressionStream != $e && DecompressionStream
|
|
4357
|
-
}, Xe = Object.assign({},
|
|
4358
|
-
function
|
|
4357
|
+
}, Xe = Object.assign({}, aa);
|
|
4358
|
+
function oa() {
|
|
4359
4359
|
return Xe;
|
|
4360
4360
|
}
|
|
4361
|
-
function
|
|
4362
|
-
return Math.max(n.chunkSize,
|
|
4361
|
+
function ca(n) {
|
|
4362
|
+
return Math.max(n.chunkSize, sa);
|
|
4363
4363
|
}
|
|
4364
4364
|
function Dn(n) {
|
|
4365
4365
|
const {
|
|
@@ -4375,7 +4375,7 @@ function Dn(n) {
|
|
|
4375
4375
|
DecompressionStream: x,
|
|
4376
4376
|
workerScripts: w
|
|
4377
4377
|
} = 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
|
|
4378
|
+
if (Ve("baseURL", t), Ve("chunkSize", e), Ve("maxWorkers", r), Ve("terminateWorkerTimeout", a), Ve("useCompressionStream", o), Ve("useWebWorkers", c), l && (Xe.CompressionStream = new vr(l)), u && (Xe.DecompressionStream = new vr(u)), Ve("CompressionStream", g), Ve("DecompressionStream", x), w !== ve) {
|
|
4379
4379
|
const { deflate: _, inflate: A } = w;
|
|
4380
4380
|
if ((_ || A) && (Xe.workerScripts || (Xe.workerScripts = {})), _) {
|
|
4381
4381
|
if (!Array.isArray(_))
|
|
@@ -5986,12 +5986,12 @@ const pn = {
|
|
|
5986
5986
|
}
|
|
5987
5987
|
return n;
|
|
5988
5988
|
})();
|
|
5989
|
-
const
|
|
5989
|
+
const zr = [];
|
|
5990
5990
|
for (let n = 0; n < 256; n++) {
|
|
5991
5991
|
let t = n;
|
|
5992
5992
|
for (let e = 0; e < 8; e++)
|
|
5993
5993
|
t & 1 ? t = t >>> 1 ^ 3988292384 : t = t >>> 1;
|
|
5994
|
-
|
|
5994
|
+
zr[n] = t;
|
|
5995
5995
|
}
|
|
5996
5996
|
class Zt {
|
|
5997
5997
|
constructor(t) {
|
|
@@ -6000,14 +6000,14 @@ class Zt {
|
|
|
6000
6000
|
append(t) {
|
|
6001
6001
|
let e = this.crc | 0;
|
|
6002
6002
|
for (let r = 0, a = t.length | 0; r < a; r++)
|
|
6003
|
-
e = e >>> 8 ^
|
|
6003
|
+
e = e >>> 8 ^ zr[(e ^ t[r]) & 255];
|
|
6004
6004
|
this.crc = e;
|
|
6005
6005
|
}
|
|
6006
6006
|
get() {
|
|
6007
6007
|
return ~this.crc;
|
|
6008
6008
|
}
|
|
6009
6009
|
}
|
|
6010
|
-
class
|
|
6010
|
+
class Qr extends TransformStream {
|
|
6011
6011
|
constructor() {
|
|
6012
6012
|
let t;
|
|
6013
6013
|
const e = new Zt();
|
|
@@ -6022,7 +6022,7 @@ class zr extends TransformStream {
|
|
|
6022
6022
|
}), t = this;
|
|
6023
6023
|
}
|
|
6024
6024
|
}
|
|
6025
|
-
function
|
|
6025
|
+
function la(n) {
|
|
6026
6026
|
if (typeof TextEncoder == $e) {
|
|
6027
6027
|
n = unescape(encodeURIComponent(n));
|
|
6028
6028
|
const t = new Uint8Array(n.length);
|
|
@@ -6124,8 +6124,8 @@ const ye = {
|
|
|
6124
6124
|
return e & 3 && t.push(ye.partial(8 * (e & 3), r)), t;
|
|
6125
6125
|
}
|
|
6126
6126
|
}
|
|
6127
|
-
},
|
|
6128
|
-
|
|
6127
|
+
}, ei = {};
|
|
6128
|
+
ei.sha1 = class {
|
|
6129
6129
|
constructor(n) {
|
|
6130
6130
|
const t = this;
|
|
6131
6131
|
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 +6209,8 @@ Qr.sha1 = class {
|
|
|
6209
6209
|
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
6210
|
}
|
|
6211
6211
|
};
|
|
6212
|
-
const
|
|
6213
|
-
|
|
6212
|
+
const ti = {};
|
|
6213
|
+
ti.aes = class {
|
|
6214
6214
|
constructor(n) {
|
|
6215
6215
|
const t = this;
|
|
6216
6216
|
t._tables = [[[], [], [], [], []], [[], [], [], [], []]], t._tables[0][0][0] || t._precompute();
|
|
@@ -6288,7 +6288,7 @@ ei.aes = class {
|
|
|
6288
6288
|
return a;
|
|
6289
6289
|
}
|
|
6290
6290
|
};
|
|
6291
|
-
const
|
|
6291
|
+
const fa = {
|
|
6292
6292
|
/**
|
|
6293
6293
|
* Generate random words with pure js, cryptographically not as strong & safe as native implementation.
|
|
6294
6294
|
* @param {TypedArray} typedArray The array to fill.
|
|
@@ -6308,8 +6308,8 @@ const ca = {
|
|
|
6308
6308
|
}
|
|
6309
6309
|
return n;
|
|
6310
6310
|
}
|
|
6311
|
-
},
|
|
6312
|
-
|
|
6311
|
+
}, ni = {};
|
|
6312
|
+
ni.ctrGladman = class {
|
|
6313
6313
|
constructor(n, t) {
|
|
6314
6314
|
this._prf = n, this._initIv = t, this._iv = t;
|
|
6315
6315
|
}
|
|
@@ -6370,7 +6370,7 @@ const rt = {
|
|
|
6370
6370
|
};
|
|
6371
6371
|
rt.hmacSha1 = class {
|
|
6372
6372
|
constructor(n) {
|
|
6373
|
-
const t = this, e = t._hash =
|
|
6373
|
+
const t = this, e = t._hash = ei.sha1, r = [[], []];
|
|
6374
6374
|
t._baseHash = [new e(), new e()];
|
|
6375
6375
|
const a = t._baseHash[0].blockSize / 32;
|
|
6376
6376
|
n.length > a && (n = new e().update(n).finalize());
|
|
@@ -6396,19 +6396,19 @@ rt.hmacSha1 = class {
|
|
|
6396
6396
|
return this.update(n), this.digest(n);
|
|
6397
6397
|
}
|
|
6398
6398
|
};
|
|
6399
|
-
const
|
|
6400
|
-
function
|
|
6401
|
-
return
|
|
6399
|
+
const ua = typeof crypto != $e && typeof crypto.getRandomValues == kt, ri = "Invalid password", ii = "Invalid signature", Ln = "zipjs-abort-check-password";
|
|
6400
|
+
function si(n) {
|
|
6401
|
+
return ua ? crypto.getRandomValues(n) : fa.getRandomValues(n);
|
|
6402
6402
|
}
|
|
6403
|
-
const ft = 16,
|
|
6404
|
-
let
|
|
6405
|
-
class
|
|
6403
|
+
const ft = 16, da = "raw", ai = { name: "PBKDF2" }, pa = { name: "HMAC" }, ma = "SHA-1", ha = Object.assign({ hash: pa }, ai), vn = Object.assign({ iterations: 1e3, hash: { name: ma } }, ai), xa = ["deriveBits"], yt = [8, 12, 16], gt = [16, 24, 32], Ze = 10, wa = [0, 0, 0, 0], en = typeof crypto != $e, St = en && crypto.subtle, oi = en && typeof St != $e, Be = Kt.bytes, _a = ti.aes, ga = ni.ctrGladman, ba = rt.hmacSha1;
|
|
6404
|
+
let Er = en && oi && typeof St.importKey == kt, kr = en && oi && typeof St.deriveBits == kt;
|
|
6405
|
+
class ya extends TransformStream {
|
|
6406
6406
|
constructor({ password: t, rawPassword: e, signed: r, encryptionStrength: a, checkPasswordOnly: o }) {
|
|
6407
6407
|
super({
|
|
6408
6408
|
start() {
|
|
6409
6409
|
Object.assign(this, {
|
|
6410
6410
|
ready: new Promise((c) => this.resolveReady = c),
|
|
6411
|
-
password:
|
|
6411
|
+
password: fi(t, e),
|
|
6412
6412
|
signed: r,
|
|
6413
6413
|
strength: a - 1,
|
|
6414
6414
|
pending: new Uint8Array()
|
|
@@ -6421,9 +6421,9 @@ class ga extends TransformStream {
|
|
|
6421
6421
|
resolveReady: w,
|
|
6422
6422
|
ready: _
|
|
6423
6423
|
} = u;
|
|
6424
|
-
g ? (await
|
|
6424
|
+
g ? (await Ea(u, x, g, Re(c, 0, yt[x] + 2)), c = Re(c, yt[x] + 2), o ? l.error(new Error(Ln)) : w()) : await _;
|
|
6425
6425
|
const A = new Uint8Array(c.length - Ze - (c.length - Ze) % ft);
|
|
6426
|
-
l.enqueue(
|
|
6426
|
+
l.enqueue(ci(u, c, A, 0, Ze, !0));
|
|
6427
6427
|
},
|
|
6428
6428
|
async flush(c) {
|
|
6429
6429
|
const {
|
|
@@ -6447,7 +6447,7 @@ class ga extends TransformStream {
|
|
|
6447
6447
|
const h = Re(vt(Be, g.digest()), 0, Ze);
|
|
6448
6448
|
for (let p = 0; p < Ze; p++)
|
|
6449
6449
|
if (h[p] != A[p])
|
|
6450
|
-
throw new Error(
|
|
6450
|
+
throw new Error(ii);
|
|
6451
6451
|
}
|
|
6452
6452
|
c.enqueue(P);
|
|
6453
6453
|
}
|
|
@@ -6455,14 +6455,14 @@ class ga extends TransformStream {
|
|
|
6455
6455
|
});
|
|
6456
6456
|
}
|
|
6457
6457
|
}
|
|
6458
|
-
class
|
|
6458
|
+
class va extends TransformStream {
|
|
6459
6459
|
constructor({ password: t, rawPassword: e, encryptionStrength: r }) {
|
|
6460
6460
|
let a;
|
|
6461
6461
|
super({
|
|
6462
6462
|
start() {
|
|
6463
6463
|
Object.assign(this, {
|
|
6464
6464
|
ready: new Promise((o) => this.resolveReady = o),
|
|
6465
|
-
password:
|
|
6465
|
+
password: fi(t, e),
|
|
6466
6466
|
strength: r - 1,
|
|
6467
6467
|
pending: new Uint8Array()
|
|
6468
6468
|
});
|
|
@@ -6475,9 +6475,9 @@ class ba extends TransformStream {
|
|
|
6475
6475
|
ready: w
|
|
6476
6476
|
} = l;
|
|
6477
6477
|
let _ = new Uint8Array();
|
|
6478
|
-
u ? (_ = await
|
|
6478
|
+
u ? (_ = await ka(l, g, u), x()) : await w;
|
|
6479
6479
|
const A = new Uint8Array(_.length + o.length - o.length % ft);
|
|
6480
|
-
A.set(_, 0), c.enqueue(
|
|
6480
|
+
A.set(_, 0), c.enqueue(ci(l, o, A, _.length, 0));
|
|
6481
6481
|
},
|
|
6482
6482
|
async flush(o) {
|
|
6483
6483
|
const {
|
|
@@ -6499,13 +6499,13 @@ class ba extends TransformStream {
|
|
|
6499
6499
|
}), a = this;
|
|
6500
6500
|
}
|
|
6501
6501
|
}
|
|
6502
|
-
function
|
|
6502
|
+
function ci(n, t, e, r, a, o) {
|
|
6503
6503
|
const {
|
|
6504
6504
|
ctr: c,
|
|
6505
6505
|
hmac: l,
|
|
6506
6506
|
pending: u
|
|
6507
6507
|
} = n, g = t.length - a;
|
|
6508
|
-
u.length && (t = Un(u, t), e =
|
|
6508
|
+
u.length && (t = Un(u, t), e = Ta(e, g - g % ft));
|
|
6509
6509
|
let x;
|
|
6510
6510
|
for (x = 0; x <= g - ft; x += ft) {
|
|
6511
6511
|
const w = Et(Be, Re(t, x, x + ft));
|
|
@@ -6515,56 +6515,56 @@ function oi(n, t, e, r, a, o) {
|
|
|
6515
6515
|
}
|
|
6516
6516
|
return n.pending = Re(t, x), e;
|
|
6517
6517
|
}
|
|
6518
|
-
async function
|
|
6519
|
-
const a = await
|
|
6518
|
+
async function Ea(n, t, e, r) {
|
|
6519
|
+
const a = await li(n, t, e, Re(r, 0, yt[t])), o = Re(r, yt[t]);
|
|
6520
6520
|
if (a[0] != o[0] || a[1] != o[1])
|
|
6521
|
-
throw new Error(
|
|
6521
|
+
throw new Error(ri);
|
|
6522
6522
|
}
|
|
6523
|
-
async function
|
|
6524
|
-
const r =
|
|
6523
|
+
async function ka(n, t, e) {
|
|
6524
|
+
const r = si(new Uint8Array(yt[t])), a = await li(n, t, e, r);
|
|
6525
6525
|
return Un(r, a);
|
|
6526
6526
|
}
|
|
6527
|
-
async function
|
|
6527
|
+
async function li(n, t, e, r) {
|
|
6528
6528
|
n.password = null;
|
|
6529
|
-
const a = await
|
|
6529
|
+
const a = await Sa(da, e, ha, !1, xa), o = await Aa(Object.assign({ salt: r }, vn), a, 8 * (gt[t] * 2 + 2)), c = new Uint8Array(o), l = Et(Be, Re(c, 0, gt[t])), u = Et(Be, Re(c, gt[t], gt[t] * 2)), g = Re(c, gt[t] * 2);
|
|
6530
6530
|
return Object.assign(n, {
|
|
6531
6531
|
keys: {
|
|
6532
6532
|
key: l,
|
|
6533
6533
|
authentication: u,
|
|
6534
6534
|
passwordVerification: g
|
|
6535
6535
|
},
|
|
6536
|
-
ctr: new
|
|
6537
|
-
hmac: new
|
|
6536
|
+
ctr: new ga(new _a(l), Array.from(wa)),
|
|
6537
|
+
hmac: new ba(u)
|
|
6538
6538
|
}), g;
|
|
6539
6539
|
}
|
|
6540
|
-
async function
|
|
6541
|
-
if (
|
|
6540
|
+
async function Sa(n, t, e, r, a) {
|
|
6541
|
+
if (Er)
|
|
6542
6542
|
try {
|
|
6543
6543
|
return await St.importKey(n, t, e, r, a);
|
|
6544
6544
|
} catch {
|
|
6545
|
-
return
|
|
6545
|
+
return Er = !1, rt.importKey(t);
|
|
6546
6546
|
}
|
|
6547
6547
|
else
|
|
6548
6548
|
return rt.importKey(t);
|
|
6549
6549
|
}
|
|
6550
|
-
async function
|
|
6551
|
-
if (
|
|
6550
|
+
async function Aa(n, t, e) {
|
|
6551
|
+
if (kr)
|
|
6552
6552
|
try {
|
|
6553
6553
|
return await St.deriveBits(n, t, e);
|
|
6554
6554
|
} catch {
|
|
6555
|
-
return
|
|
6555
|
+
return kr = !1, rt.pbkdf2(t, n.salt, vn.iterations, e);
|
|
6556
6556
|
}
|
|
6557
6557
|
else
|
|
6558
6558
|
return rt.pbkdf2(t, n.salt, vn.iterations, e);
|
|
6559
6559
|
}
|
|
6560
|
-
function
|
|
6561
|
-
return t === ve ?
|
|
6560
|
+
function fi(n, t) {
|
|
6561
|
+
return t === ve ? la(n) : t;
|
|
6562
6562
|
}
|
|
6563
6563
|
function Un(n, t) {
|
|
6564
6564
|
let e = n;
|
|
6565
6565
|
return n.length + t.length && (e = new Uint8Array(n.length + t.length), e.set(n, 0), e.set(t, n.length)), e;
|
|
6566
6566
|
}
|
|
6567
|
-
function
|
|
6567
|
+
function Ta(n, t) {
|
|
6568
6568
|
if (t && t > n.length) {
|
|
6569
6569
|
const e = n;
|
|
6570
6570
|
n = new Uint8Array(t), n.set(e, 0);
|
|
@@ -6581,64 +6581,64 @@ function Et(n, t) {
|
|
|
6581
6581
|
return n.toBits(t);
|
|
6582
6582
|
}
|
|
6583
6583
|
const ut = 12;
|
|
6584
|
-
class
|
|
6584
|
+
class Fa extends TransformStream {
|
|
6585
6585
|
constructor({ password: t, passwordVerification: e, checkPasswordOnly: r }) {
|
|
6586
6586
|
super({
|
|
6587
6587
|
start() {
|
|
6588
6588
|
Object.assign(this, {
|
|
6589
6589
|
password: t,
|
|
6590
6590
|
passwordVerification: e
|
|
6591
|
-
}),
|
|
6591
|
+
}), ui(this, t);
|
|
6592
6592
|
},
|
|
6593
6593
|
transform(a, o) {
|
|
6594
6594
|
const c = this;
|
|
6595
6595
|
if (c.password) {
|
|
6596
|
-
const l =
|
|
6596
|
+
const l = Sr(c, a.subarray(0, ut));
|
|
6597
6597
|
if (c.password = null, l[ut - 1] != c.passwordVerification)
|
|
6598
|
-
throw new Error(
|
|
6598
|
+
throw new Error(ri);
|
|
6599
6599
|
a = a.subarray(ut);
|
|
6600
6600
|
}
|
|
6601
|
-
r ? o.error(new Error(Ln)) : o.enqueue(
|
|
6601
|
+
r ? o.error(new Error(Ln)) : o.enqueue(Sr(c, a));
|
|
6602
6602
|
}
|
|
6603
6603
|
});
|
|
6604
6604
|
}
|
|
6605
6605
|
}
|
|
6606
|
-
class
|
|
6606
|
+
class Ra extends TransformStream {
|
|
6607
6607
|
constructor({ password: t, passwordVerification: e }) {
|
|
6608
6608
|
super({
|
|
6609
6609
|
start() {
|
|
6610
6610
|
Object.assign(this, {
|
|
6611
6611
|
password: t,
|
|
6612
6612
|
passwordVerification: e
|
|
6613
|
-
}),
|
|
6613
|
+
}), ui(this, t);
|
|
6614
6614
|
},
|
|
6615
6615
|
transform(r, a) {
|
|
6616
6616
|
const o = this;
|
|
6617
6617
|
let c, l;
|
|
6618
6618
|
if (o.password) {
|
|
6619
6619
|
o.password = null;
|
|
6620
|
-
const u =
|
|
6621
|
-
u[ut - 1] = o.passwordVerification, c = new Uint8Array(r.length + u.length), c.set(
|
|
6620
|
+
const u = si(new Uint8Array(ut));
|
|
6621
|
+
u[ut - 1] = o.passwordVerification, c = new Uint8Array(r.length + u.length), c.set(Ar(o, u), 0), l = ut;
|
|
6622
6622
|
} else
|
|
6623
6623
|
c = new Uint8Array(r.length), l = 0;
|
|
6624
|
-
c.set(
|
|
6624
|
+
c.set(Ar(o, r), l), a.enqueue(c);
|
|
6625
6625
|
}
|
|
6626
6626
|
});
|
|
6627
6627
|
}
|
|
6628
6628
|
}
|
|
6629
|
-
function
|
|
6629
|
+
function Sr(n, t) {
|
|
6630
6630
|
const e = new Uint8Array(t.length);
|
|
6631
6631
|
for (let r = 0; r < t.length; r++)
|
|
6632
|
-
e[r] =
|
|
6632
|
+
e[r] = di(n) ^ t[r], On(n, e[r]);
|
|
6633
6633
|
return e;
|
|
6634
6634
|
}
|
|
6635
|
-
function
|
|
6635
|
+
function Ar(n, t) {
|
|
6636
6636
|
const e = new Uint8Array(t.length);
|
|
6637
6637
|
for (let r = 0; r < t.length; r++)
|
|
6638
|
-
e[r] =
|
|
6638
|
+
e[r] = di(n) ^ t[r], On(n, t[r]);
|
|
6639
6639
|
return e;
|
|
6640
6640
|
}
|
|
6641
|
-
function
|
|
6641
|
+
function ui(n, t) {
|
|
6642
6642
|
const e = [305419896, 591751049, 878082192];
|
|
6643
6643
|
Object.assign(n, {
|
|
6644
6644
|
keys: e,
|
|
@@ -6650,66 +6650,66 @@ function fi(n, t) {
|
|
|
6650
6650
|
}
|
|
6651
6651
|
function On(n, t) {
|
|
6652
6652
|
let [e, r, a] = n.keys;
|
|
6653
|
-
n.crcKey0.append([t]), e = ~n.crcKey0.get(), r =
|
|
6653
|
+
n.crcKey0.append([t]), e = ~n.crcKey0.get(), r = Tr(Math.imul(Tr(r + pi(e)), 134775813) + 1), n.crcKey2.append([r >>> 24]), a = ~n.crcKey2.get(), n.keys = [e, r, a];
|
|
6654
6654
|
}
|
|
6655
|
-
function
|
|
6655
|
+
function di(n) {
|
|
6656
6656
|
const t = n.keys[2] | 2;
|
|
6657
|
-
return
|
|
6657
|
+
return pi(Math.imul(t, t ^ 1) >>> 8);
|
|
6658
6658
|
}
|
|
6659
|
-
function
|
|
6659
|
+
function pi(n) {
|
|
6660
6660
|
return n & 255;
|
|
6661
6661
|
}
|
|
6662
|
-
function
|
|
6662
|
+
function Tr(n) {
|
|
6663
6663
|
return n & 4294967295;
|
|
6664
6664
|
}
|
|
6665
|
-
const
|
|
6666
|
-
class
|
|
6665
|
+
const Fr = "deflate-raw";
|
|
6666
|
+
class Ca extends TransformStream {
|
|
6667
6667
|
constructor(t, { chunkSize: e, CompressionStream: r, CompressionStreamNative: a }) {
|
|
6668
6668
|
super({});
|
|
6669
6669
|
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
|
|
6670
|
+
let _, A, P = mi(super.readable);
|
|
6671
|
+
(!c || u) && g && (_ = new Qr(), P = Ne(P, _)), o && (P = xi(P, l, { level: x, chunkSize: e }, a, r)), c && (u ? P = Ne(P, new Ra(t)) : (A = new va(t), P = Ne(P, A))), hi(w, P, () => {
|
|
6672
6672
|
let h;
|
|
6673
6673
|
c && !u && (h = A.signature), (!c || u) && g && (h = new DataView(_.value.buffer).getUint32(0)), w.signature = h;
|
|
6674
6674
|
});
|
|
6675
6675
|
}
|
|
6676
6676
|
}
|
|
6677
|
-
class
|
|
6677
|
+
class Ia extends TransformStream {
|
|
6678
6678
|
constructor(t, { chunkSize: e, DecompressionStream: r, DecompressionStreamNative: a }) {
|
|
6679
6679
|
super({});
|
|
6680
6680
|
const { zipCrypto: o, encrypted: c, signed: l, signature: u, compressed: g, useCompressionStream: x } = t;
|
|
6681
|
-
let w, _, A =
|
|
6682
|
-
c && (o ? A = Ne(A, new
|
|
6681
|
+
let w, _, A = mi(super.readable);
|
|
6682
|
+
c && (o ? A = Ne(A, new Fa(t)) : (_ = new ya(t), A = Ne(A, _))), g && (A = xi(A, x, { chunkSize: e }, a, r)), (!c || o) && l && (w = new Qr(), A = Ne(A, w)), hi(this, A, () => {
|
|
6683
6683
|
if ((!c || o) && l) {
|
|
6684
6684
|
const P = new DataView(w.value.buffer);
|
|
6685
6685
|
if (u != P.getUint32(0, !1))
|
|
6686
|
-
throw new Error(
|
|
6686
|
+
throw new Error(ii);
|
|
6687
6687
|
}
|
|
6688
6688
|
});
|
|
6689
6689
|
}
|
|
6690
6690
|
}
|
|
6691
|
-
function
|
|
6691
|
+
function mi(n) {
|
|
6692
6692
|
return Ne(n, new TransformStream({
|
|
6693
6693
|
transform(t, e) {
|
|
6694
6694
|
t && t.length && e.enqueue(t);
|
|
6695
6695
|
}
|
|
6696
6696
|
}));
|
|
6697
6697
|
}
|
|
6698
|
-
function
|
|
6698
|
+
function hi(n, t, e) {
|
|
6699
6699
|
t = Ne(t, new TransformStream({ flush: e })), Object.defineProperty(n, "readable", {
|
|
6700
6700
|
get() {
|
|
6701
6701
|
return t;
|
|
6702
6702
|
}
|
|
6703
6703
|
});
|
|
6704
6704
|
}
|
|
6705
|
-
function
|
|
6705
|
+
function xi(n, t, e, r, a) {
|
|
6706
6706
|
try {
|
|
6707
6707
|
const o = t && r ? r : a;
|
|
6708
|
-
n = Ne(n, new o(
|
|
6708
|
+
n = Ne(n, new o(Fr, e));
|
|
6709
6709
|
} catch {
|
|
6710
6710
|
if (t)
|
|
6711
6711
|
try {
|
|
6712
|
-
n = Ne(n, new a(
|
|
6712
|
+
n = Ne(n, new a(Fr, e));
|
|
6713
6713
|
} catch {
|
|
6714
6714
|
return n;
|
|
6715
6715
|
}
|
|
@@ -6721,13 +6721,13 @@ function hi(n, t, e, r, a) {
|
|
|
6721
6721
|
function Ne(n, t) {
|
|
6722
6722
|
return n.pipeThrough(t);
|
|
6723
6723
|
}
|
|
6724
|
-
const
|
|
6725
|
-
class
|
|
6724
|
+
const Da = "message", La = "start", Ua = "pull", Rr = "data", Oa = "ack", Cr = "close", Pa = "deflate", wi = "inflate";
|
|
6725
|
+
class Ba extends TransformStream {
|
|
6726
6726
|
constructor(t, e) {
|
|
6727
6727
|
super({});
|
|
6728
6728
|
const r = this, { codecType: a } = t;
|
|
6729
6729
|
let o;
|
|
6730
|
-
a.startsWith(
|
|
6730
|
+
a.startsWith(Pa) ? o = Ca : a.startsWith(wi) && (o = Ia);
|
|
6731
6731
|
let c = 0, l = 0;
|
|
6732
6732
|
const u = new o(t, e), g = super.readable, x = new TransformStream({
|
|
6733
6733
|
transform(_, A) {
|
|
@@ -6758,7 +6758,7 @@ class Oa extends TransformStream {
|
|
|
6758
6758
|
});
|
|
6759
6759
|
}
|
|
6760
6760
|
}
|
|
6761
|
-
class
|
|
6761
|
+
class Na extends TransformStream {
|
|
6762
6762
|
constructor(t) {
|
|
6763
6763
|
let e;
|
|
6764
6764
|
super({
|
|
@@ -6776,13 +6776,13 @@ class Pa extends TransformStream {
|
|
|
6776
6776
|
}
|
|
6777
6777
|
}
|
|
6778
6778
|
}
|
|
6779
|
-
let
|
|
6779
|
+
let _i = typeof Worker != $e;
|
|
6780
6780
|
class mn {
|
|
6781
6781
|
constructor(t, { readable: e, writable: r }, { options: a, config: o, streamOptions: c, useWebWorkers: l, transferStreams: u, scripts: g }, x) {
|
|
6782
6782
|
const { signal: w } = c;
|
|
6783
6783
|
return Object.assign(t, {
|
|
6784
6784
|
busy: !0,
|
|
6785
|
-
readable: e.pipeThrough(new
|
|
6785
|
+
readable: e.pipeThrough(new Na(o.chunkSize)).pipeThrough(new Ma(e, c), { signal: w }),
|
|
6786
6786
|
writable: r,
|
|
6787
6787
|
options: Object.assign({}, a),
|
|
6788
6788
|
scripts: g,
|
|
@@ -6797,10 +6797,10 @@ class mn {
|
|
|
6797
6797
|
const { resolveTerminated: _ } = t;
|
|
6798
6798
|
_ && (t.resolveTerminated = null, t.terminated = !0, t.worker.terminate(), _()), t.busy = !1, x(t);
|
|
6799
6799
|
}
|
|
6800
|
-
}), (l &&
|
|
6800
|
+
}), (l && _i ? Wa : gi)(t, o);
|
|
6801
6801
|
}
|
|
6802
6802
|
}
|
|
6803
|
-
class
|
|
6803
|
+
class Ma extends TransformStream {
|
|
6804
6804
|
constructor(t, { onstart: e, onprogress: r, size: a, onend: o }) {
|
|
6805
6805
|
let c = 0;
|
|
6806
6806
|
super({
|
|
@@ -6822,32 +6822,32 @@ async function hn(n, ...t) {
|
|
|
6822
6822
|
} catch {
|
|
6823
6823
|
}
|
|
6824
6824
|
}
|
|
6825
|
-
function
|
|
6825
|
+
function gi(n, t) {
|
|
6826
6826
|
return {
|
|
6827
|
-
run: () =>
|
|
6827
|
+
run: () => qa(n, t)
|
|
6828
6828
|
};
|
|
6829
6829
|
}
|
|
6830
|
-
function
|
|
6830
|
+
function Wa(n, t) {
|
|
6831
6831
|
const { baseURL: e, chunkSize: r } = t;
|
|
6832
6832
|
if (!n.interface) {
|
|
6833
6833
|
let a;
|
|
6834
6834
|
try {
|
|
6835
|
-
a =
|
|
6835
|
+
a = Ya(n.scripts[0], e, n);
|
|
6836
6836
|
} catch {
|
|
6837
|
-
return
|
|
6837
|
+
return _i = !1, gi(n, t);
|
|
6838
6838
|
}
|
|
6839
6839
|
Object.assign(n, {
|
|
6840
6840
|
worker: a,
|
|
6841
6841
|
interface: {
|
|
6842
|
-
run: () =>
|
|
6842
|
+
run: () => ja(n, { chunkSize: r })
|
|
6843
6843
|
}
|
|
6844
6844
|
});
|
|
6845
6845
|
}
|
|
6846
6846
|
return n.interface;
|
|
6847
6847
|
}
|
|
6848
|
-
async function
|
|
6848
|
+
async function qa({ options: n, readable: t, writable: e, onTaskFinished: r }, a) {
|
|
6849
6849
|
try {
|
|
6850
|
-
const o = new
|
|
6850
|
+
const o = new Ba(n, a);
|
|
6851
6851
|
await t.pipeThrough(o).pipeTo(e, { preventClose: !0, preventAbort: !0 });
|
|
6852
6852
|
const {
|
|
6853
6853
|
signature: c,
|
|
@@ -6863,7 +6863,7 @@ async function Ma({ options: n, readable: t, writable: e, onTaskFinished: r }, a
|
|
|
6863
6863
|
r();
|
|
6864
6864
|
}
|
|
6865
6865
|
}
|
|
6866
|
-
async function
|
|
6866
|
+
async function ja(n, t) {
|
|
6867
6867
|
let e, r;
|
|
6868
6868
|
const a = new Promise((_, A) => {
|
|
6869
6869
|
e = _, r = A;
|
|
@@ -6875,8 +6875,8 @@ async function Wa(n, t) {
|
|
|
6875
6875
|
rejectResult: r,
|
|
6876
6876
|
result: a
|
|
6877
6877
|
});
|
|
6878
|
-
const { readable: o, options: c, scripts: l } = n, { writable: u, closed: g } =
|
|
6879
|
-
type:
|
|
6878
|
+
const { readable: o, options: c, scripts: l } = n, { writable: u, closed: g } = Ha(n.writable), x = qt({
|
|
6879
|
+
type: La,
|
|
6880
6880
|
scripts: l.slice(1),
|
|
6881
6881
|
options: c,
|
|
6882
6882
|
config: t,
|
|
@@ -6890,7 +6890,7 @@ async function Wa(n, t) {
|
|
|
6890
6890
|
const w = await a;
|
|
6891
6891
|
return x || await u.getWriter().close(), await g, w;
|
|
6892
6892
|
}
|
|
6893
|
-
function
|
|
6893
|
+
function Ha(n) {
|
|
6894
6894
|
let t;
|
|
6895
6895
|
const e = new Promise((a) => t = a);
|
|
6896
6896
|
return { writable: new WritableStream({
|
|
@@ -6906,8 +6906,8 @@ function qa(n) {
|
|
|
6906
6906
|
}
|
|
6907
6907
|
}), closed: e };
|
|
6908
6908
|
}
|
|
6909
|
-
let
|
|
6910
|
-
function
|
|
6909
|
+
let Ir = !0, Dr = !0;
|
|
6910
|
+
function Ya(n, t, e) {
|
|
6911
6911
|
const r = { type: "module" };
|
|
6912
6912
|
let a, o;
|
|
6913
6913
|
typeof n == kt && (n = n());
|
|
@@ -6916,24 +6916,24 @@ function ja(n, t, e) {
|
|
|
6916
6916
|
} catch {
|
|
6917
6917
|
a = n;
|
|
6918
6918
|
}
|
|
6919
|
-
if (
|
|
6919
|
+
if (Ir)
|
|
6920
6920
|
try {
|
|
6921
6921
|
o = new Worker(a);
|
|
6922
6922
|
} catch {
|
|
6923
|
-
|
|
6923
|
+
Ir = !1, o = new Worker(a, r);
|
|
6924
6924
|
}
|
|
6925
6925
|
else
|
|
6926
6926
|
o = new Worker(a, r);
|
|
6927
|
-
return o.addEventListener(
|
|
6927
|
+
return o.addEventListener(Da, (c) => Ga(c, e)), o;
|
|
6928
6928
|
}
|
|
6929
6929
|
function qt(n, { worker: t, writer: e, onTaskFinished: r, transferStreams: a }) {
|
|
6930
6930
|
try {
|
|
6931
6931
|
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 &&
|
|
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 && Dr ? (c && u.push(c), l && u.push(l)) : n.readable = n.writable = null, u.length)
|
|
6933
6933
|
try {
|
|
6934
6934
|
return t.postMessage(n, u), !0;
|
|
6935
6935
|
} catch {
|
|
6936
|
-
|
|
6936
|
+
Dr = !1, n.readable = n.writable = null, t.postMessage(n);
|
|
6937
6937
|
}
|
|
6938
6938
|
else
|
|
6939
6939
|
t.postMessage(n);
|
|
@@ -6941,21 +6941,21 @@ function qt(n, { worker: t, writer: e, onTaskFinished: r, transferStreams: a })
|
|
|
6941
6941
|
throw e && e.releaseLock(), r(), o;
|
|
6942
6942
|
}
|
|
6943
6943
|
}
|
|
6944
|
-
async function
|
|
6944
|
+
async function Ga({ data: n }, t) {
|
|
6945
6945
|
const { type: e, value: r, messageId: a, result: o, error: c } = n, { reader: l, writer: u, resolveResult: g, rejectResult: x, onTaskFinished: w } = t;
|
|
6946
6946
|
try {
|
|
6947
6947
|
if (c) {
|
|
6948
6948
|
const { message: A, stack: P, code: h, name: p } = c, m = new Error(A);
|
|
6949
6949
|
Object.assign(m, { stack: P, code: h, name: p }), _(m);
|
|
6950
6950
|
} else {
|
|
6951
|
-
if (e ==
|
|
6951
|
+
if (e == Ua) {
|
|
6952
6952
|
const { value: A, done: P } = await l.read();
|
|
6953
|
-
qt({ type:
|
|
6953
|
+
qt({ type: Rr, value: A, done: P, messageId: a }, t);
|
|
6954
6954
|
}
|
|
6955
|
-
e ==
|
|
6955
|
+
e == Rr && (await u.ready, await u.write(new Uint8Array(r)), qt({ type: Oa, messageId: a }, t)), e == Cr && _(null, o);
|
|
6956
6956
|
}
|
|
6957
6957
|
} catch (A) {
|
|
6958
|
-
qt({ type:
|
|
6958
|
+
qt({ type: Cr, messageId: a }, t), _(A);
|
|
6959
6959
|
}
|
|
6960
6960
|
function _(A, P) {
|
|
6961
6961
|
A ? x(A) : g(P), u && u.releaseLock(), w();
|
|
@@ -6963,8 +6963,8 @@ async function Ha({ data: n }, t) {
|
|
|
6963
6963
|
}
|
|
6964
6964
|
let tt = [];
|
|
6965
6965
|
const xn = [];
|
|
6966
|
-
let
|
|
6967
|
-
async function
|
|
6966
|
+
let Lr = 0;
|
|
6967
|
+
async function Va(n, t) {
|
|
6968
6968
|
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
6969
|
t.transferStreams = a || a === ve;
|
|
6970
6970
|
const A = !u && !g && !x && !t.transferStreams;
|
|
@@ -6972,10 +6972,10 @@ async function Ya(n, t) {
|
|
|
6972
6972
|
async function P() {
|
|
6973
6973
|
const p = tt.find((m) => !m.busy);
|
|
6974
6974
|
if (p)
|
|
6975
|
-
return
|
|
6975
|
+
return Ur(p), new mn(p, n, t, h);
|
|
6976
6976
|
if (tt.length < _) {
|
|
6977
|
-
const m = { indexWorker:
|
|
6978
|
-
return
|
|
6977
|
+
const m = { indexWorker: Lr };
|
|
6978
|
+
return Lr++, tt.push(m), new mn(m, n, t, h);
|
|
6979
6979
|
} else
|
|
6980
6980
|
return new Promise((m) => xn.push({ resolve: m, stream: n, workerOptions: t }));
|
|
6981
6981
|
}
|
|
@@ -6983,10 +6983,10 @@ async function Ya(n, t) {
|
|
|
6983
6983
|
if (xn.length) {
|
|
6984
6984
|
const [{ resolve: m, stream: E, workerOptions: R }] = xn.splice(0, 1);
|
|
6985
6985
|
m(new mn(p, E, R, h));
|
|
6986
|
-
} else p.worker ? (
|
|
6986
|
+
} else p.worker ? (Ur(p), Za(p, t)) : tt = tt.filter((m) => m != p);
|
|
6987
6987
|
}
|
|
6988
6988
|
}
|
|
6989
|
-
function
|
|
6989
|
+
function Za(n, t) {
|
|
6990
6990
|
const { config: e } = t, { terminateWorkerTimeout: r } = e;
|
|
6991
6991
|
Number.isFinite(r) && r >= 0 && (n.terminated ? n.terminated = !1 : n.terminateTimeout = setTimeout(async () => {
|
|
6992
6992
|
tt = tt.filter((a) => a != n);
|
|
@@ -6996,16 +6996,16 @@ function Ga(n, t) {
|
|
|
6996
6996
|
}
|
|
6997
6997
|
}, r));
|
|
6998
6998
|
}
|
|
6999
|
-
function
|
|
6999
|
+
function Ur(n) {
|
|
7000
7000
|
const { terminateTimeout: t } = n;
|
|
7001
7001
|
t && (clearTimeout(t), n.terminateTimeout = null);
|
|
7002
7002
|
}
|
|
7003
|
-
function
|
|
7003
|
+
function Ka(n, t = {}) {
|
|
7004
7004
|
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
7005
|
`, r = () => t.useDataURI ? "data:text/javascript," + encodeURIComponent(e) : URL.createObjectURL(new Blob([e], { type: "text/javascript" }));
|
|
7006
7006
|
n({ workerScripts: { inflate: [r], deflate: [r] } });
|
|
7007
7007
|
}
|
|
7008
|
-
const
|
|
7008
|
+
const Xa = "Writer iterator completed too soon", $a = "Content-Type", Ja = 64 * 1024, bi = "writable";
|
|
7009
7009
|
class Pn {
|
|
7010
7010
|
constructor() {
|
|
7011
7011
|
this.size = 0;
|
|
@@ -7014,9 +7014,9 @@ class Pn {
|
|
|
7014
7014
|
this.initialized = !0;
|
|
7015
7015
|
}
|
|
7016
7016
|
}
|
|
7017
|
-
class
|
|
7017
|
+
class yi extends Pn {
|
|
7018
7018
|
get readable() {
|
|
7019
|
-
const t = this, { chunkSize: e =
|
|
7019
|
+
const t = this, { chunkSize: e = Ja } = t, r = new ReadableStream({
|
|
7020
7020
|
start() {
|
|
7021
7021
|
this.chunkOffset = 0;
|
|
7022
7022
|
},
|
|
@@ -7028,7 +7028,7 @@ class bi extends Pn {
|
|
|
7028
7028
|
return r;
|
|
7029
7029
|
}
|
|
7030
7030
|
}
|
|
7031
|
-
class En extends
|
|
7031
|
+
class En extends yi {
|
|
7032
7032
|
constructor(t) {
|
|
7033
7033
|
super(), Object.assign(this, {
|
|
7034
7034
|
blob: t,
|
|
@@ -7041,11 +7041,11 @@ class En extends bi {
|
|
|
7041
7041
|
return c.byteLength > e && (c = c.slice(t, a)), new Uint8Array(c);
|
|
7042
7042
|
}
|
|
7043
7043
|
}
|
|
7044
|
-
class
|
|
7044
|
+
class za extends Pn {
|
|
7045
7045
|
constructor(t) {
|
|
7046
7046
|
super();
|
|
7047
7047
|
const e = this, r = new TransformStream(), a = [];
|
|
7048
|
-
t && a.push([
|
|
7048
|
+
t && a.push([$a, t]), Object.defineProperty(e, bi, {
|
|
7049
7049
|
get() {
|
|
7050
7050
|
return r.writable;
|
|
7051
7051
|
}
|
|
@@ -7055,7 +7055,7 @@ class $a extends Pn {
|
|
|
7055
7055
|
return this.blob;
|
|
7056
7056
|
}
|
|
7057
7057
|
}
|
|
7058
|
-
class
|
|
7058
|
+
class Qa extends yi {
|
|
7059
7059
|
constructor(t) {
|
|
7060
7060
|
super(), this.readers = t;
|
|
7061
7061
|
}
|
|
@@ -7082,7 +7082,7 @@ class Ja extends bi {
|
|
|
7082
7082
|
return a.lastDiskNumber = Math.max(l, a.lastDiskNumber), c;
|
|
7083
7083
|
}
|
|
7084
7084
|
}
|
|
7085
|
-
class
|
|
7085
|
+
class Or extends Pn {
|
|
7086
7086
|
constructor(t, e = 4294967295) {
|
|
7087
7087
|
super();
|
|
7088
7088
|
const r = this;
|
|
@@ -7102,7 +7102,7 @@ class Ur extends Pn {
|
|
|
7102
7102
|
else {
|
|
7103
7103
|
const { value: _, done: A } = await t.next();
|
|
7104
7104
|
if (A && !_)
|
|
7105
|
-
throw new Error(
|
|
7105
|
+
throw new Error(Xa);
|
|
7106
7106
|
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
7107
|
}
|
|
7108
7108
|
},
|
|
@@ -7110,7 +7110,7 @@ class Ur extends Pn {
|
|
|
7110
7110
|
await c.ready, await g();
|
|
7111
7111
|
}
|
|
7112
7112
|
});
|
|
7113
|
-
Object.defineProperty(r,
|
|
7113
|
+
Object.defineProperty(r, bi, {
|
|
7114
7114
|
get() {
|
|
7115
7115
|
return l;
|
|
7116
7116
|
}
|
|
@@ -7130,17 +7130,17 @@ async function Xt(n, t) {
|
|
|
7130
7130
|
else
|
|
7131
7131
|
return Promise.resolve();
|
|
7132
7132
|
}
|
|
7133
|
-
function
|
|
7134
|
-
return Array.isArray(n) && (n = new
|
|
7133
|
+
function eo(n) {
|
|
7134
|
+
return Array.isArray(n) && (n = new Qa(n)), n instanceof ReadableStream && (n = {
|
|
7135
7135
|
readable: n
|
|
7136
7136
|
}), n;
|
|
7137
7137
|
}
|
|
7138
|
-
function
|
|
7139
|
-
n.writable === ve && typeof n.next == kt && (n = new
|
|
7138
|
+
function to(n) {
|
|
7139
|
+
n.writable === ve && typeof n.next == kt && (n = new Or(n)), n instanceof WritableStream && (n = {
|
|
7140
7140
|
writable: n
|
|
7141
7141
|
});
|
|
7142
7142
|
const { writable: t } = n;
|
|
7143
|
-
return t.size === ve && (t.size = 0), n instanceof
|
|
7143
|
+
return t.size === ve && (t.size = 0), n instanceof Or || Object.assign(n, {
|
|
7144
7144
|
diskNumber: 0,
|
|
7145
7145
|
diskOffset: 0,
|
|
7146
7146
|
availableSize: 1 / 0,
|
|
@@ -7150,35 +7150,33 @@ function Qa(n) {
|
|
|
7150
7150
|
function _e(n, t, e, r) {
|
|
7151
7151
|
return n.readUint8Array(t, e, r);
|
|
7152
7152
|
}
|
|
7153
|
-
const
|
|
7154
|
-
function
|
|
7155
|
-
if (
|
|
7153
|
+
const vi = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""), no = vi.length == 256;
|
|
7154
|
+
function ro(n) {
|
|
7155
|
+
if (no) {
|
|
7156
7156
|
let t = "";
|
|
7157
7157
|
for (let e = 0; e < n.length; e++)
|
|
7158
|
-
t +=
|
|
7158
|
+
t += vi[n[e]];
|
|
7159
7159
|
return t;
|
|
7160
7160
|
} else
|
|
7161
7161
|
return new TextDecoder().decode(n);
|
|
7162
7162
|
}
|
|
7163
7163
|
function jt(n, t) {
|
|
7164
|
-
return t && t.trim().toLowerCase() == "cp437" ?
|
|
7164
|
+
return t && t.trim().toLowerCase() == "cp437" ? ro(n) : new TextDecoder(t).decode(n);
|
|
7165
7165
|
}
|
|
7166
|
-
const
|
|
7167
|
-
vi,
|
|
7166
|
+
const Ei = "filename", ki = "rawFilename", Si = "comment", Ai = "rawComment", Ti = "uncompressedSize", Fi = "compressedSize", Ri = "offset", kn = "diskNumberStart", Sn = "lastModDate", An = "rawLastModDate", Ci = "lastAccessDate", io = "rawLastAccessDate", Ii = "creationDate", so = "rawCreationDate", ao = "internalFileAttribute", oo = "internalFileAttributes", co = "externalFileAttribute", lo = "externalFileAttributes", fo = "msDosCompatible", uo = "zip64", po = "encrypted", mo = "version", ho = "versionMadeBy", xo = "zipCrypto", wo = "directory", _o = "executable", go = [
|
|
7168
7167
|
Ei,
|
|
7168
|
+
ki,
|
|
7169
|
+
Fi,
|
|
7169
7170
|
Ti,
|
|
7170
|
-
Ai,
|
|
7171
7171
|
Sn,
|
|
7172
7172
|
An,
|
|
7173
|
-
ki,
|
|
7174
7173
|
Si,
|
|
7175
|
-
|
|
7174
|
+
Ai,
|
|
7176
7175
|
Ci,
|
|
7177
|
-
|
|
7176
|
+
Ii,
|
|
7177
|
+
Ri,
|
|
7178
7178
|
kn,
|
|
7179
7179
|
kn,
|
|
7180
|
-
io,
|
|
7181
|
-
so,
|
|
7182
7180
|
ao,
|
|
7183
7181
|
oo,
|
|
7184
7182
|
co,
|
|
@@ -7189,6 +7187,8 @@ const vi = "filename", Ei = "rawFilename", ki = "comment", Si = "rawComment", Ai
|
|
|
7189
7187
|
mo,
|
|
7190
7188
|
ho,
|
|
7191
7189
|
xo,
|
|
7190
|
+
wo,
|
|
7191
|
+
_o,
|
|
7192
7192
|
"bitFlag",
|
|
7193
7193
|
"signature",
|
|
7194
7194
|
"filenameUTF8",
|
|
@@ -7203,17 +7203,17 @@ const vi = "filename", Ei = "rawFilename", ki = "comment", Si = "rawComment", Ai
|
|
|
7203
7203
|
"extraFieldNTFS",
|
|
7204
7204
|
"extraFieldExtendedTimestamp"
|
|
7205
7205
|
];
|
|
7206
|
-
class
|
|
7206
|
+
class Pr {
|
|
7207
7207
|
constructor(t) {
|
|
7208
|
-
|
|
7208
|
+
go.forEach((e) => this[e] = t[e]);
|
|
7209
7209
|
}
|
|
7210
7210
|
}
|
|
7211
|
-
const wn = "File format is not recognized",
|
|
7212
|
-
[Ai, nt],
|
|
7211
|
+
const wn = "File format is not recognized", bo = "End of central directory not found", yo = "End of Zip64 central directory locator not found", vo = "Central directory header not found", Eo = "Local file header not found", ko = "Zip64 extra field not found", So = "File contains encrypted entry", Ao = "Encryption method not supported", Br = "Compression method not supported", Nr = "Split zip file", Mr = "utf-8", Wr = "cp437", To = [
|
|
7213
7212
|
[Ti, nt],
|
|
7214
7213
|
[Fi, nt],
|
|
7214
|
+
[Ri, nt],
|
|
7215
7215
|
[kn, Ke]
|
|
7216
|
-
],
|
|
7216
|
+
], Fo = {
|
|
7217
7217
|
[Ke]: {
|
|
7218
7218
|
getValue: ce,
|
|
7219
7219
|
bytes: 4
|
|
@@ -7223,12 +7223,12 @@ const wn = "File format is not recognized", _o = "End of central directory not f
|
|
|
7223
7223
|
bytes: 8
|
|
7224
7224
|
}
|
|
7225
7225
|
};
|
|
7226
|
-
class
|
|
7226
|
+
class qr {
|
|
7227
7227
|
constructor(t, e = {}) {
|
|
7228
7228
|
Object.assign(this, {
|
|
7229
|
-
reader:
|
|
7229
|
+
reader: eo(t),
|
|
7230
7230
|
options: e,
|
|
7231
|
-
config:
|
|
7231
|
+
config: oa()
|
|
7232
7232
|
});
|
|
7233
7233
|
}
|
|
7234
7234
|
async *getEntriesGenerator(t = {}) {
|
|
@@ -7237,11 +7237,11 @@ class Wr {
|
|
|
7237
7237
|
const { config: a } = e;
|
|
7238
7238
|
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
7239
|
throw new Error(wn);
|
|
7240
|
-
r.chunkSize =
|
|
7241
|
-
const o = await
|
|
7240
|
+
r.chunkSize = ca(a);
|
|
7241
|
+
const o = await Uo(r, Ks, r.size, ct, Ke * 16);
|
|
7242
7242
|
if (!o) {
|
|
7243
7243
|
const v = await _e(r, 0, 4), k = he(v);
|
|
7244
|
-
throw ce(k) ==
|
|
7244
|
+
throw ce(k) == Zs ? new Error(Nr) : new Error(bo);
|
|
7245
7245
|
}
|
|
7246
7246
|
const c = he(o);
|
|
7247
7247
|
let l = ce(c, 12), u = ce(c, 16);
|
|
@@ -7251,27 +7251,27 @@ class Wr {
|
|
|
7251
7251
|
let P = me(c, 6), h = me(c, 8), p = 0, m = 0;
|
|
7252
7252
|
if (u == nt || l == nt || h == Ke || P == Ke) {
|
|
7253
7253
|
const v = await _e(r, o.offset - un, un), k = he(v);
|
|
7254
|
-
if (ce(k, 0) ==
|
|
7254
|
+
if (ce(k, 0) == Xs) {
|
|
7255
7255
|
u = Ht(k, 8);
|
|
7256
7256
|
let W = await _e(r, u, dn, -1), O = he(W);
|
|
7257
7257
|
const Z = o.offset - un - dn;
|
|
7258
|
-
if (ce(O, 0) !=
|
|
7258
|
+
if (ce(O, 0) != mr && u != Z) {
|
|
7259
7259
|
const H = u;
|
|
7260
7260
|
u = Z, p = u - H, W = await _e(r, u, dn, -1), O = he(W);
|
|
7261
7261
|
}
|
|
7262
|
-
if (ce(O, 0) !=
|
|
7263
|
-
throw new Error(
|
|
7262
|
+
if (ce(O, 0) != mr)
|
|
7263
|
+
throw new Error(yo);
|
|
7264
7264
|
_ == 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
7265
|
}
|
|
7266
7266
|
}
|
|
7267
7267
|
if (u >= r.size && (p = r.size - u - l - ct, u = r.size - l - ct), A != _)
|
|
7268
|
-
throw new Error(
|
|
7268
|
+
throw new Error(Nr);
|
|
7269
7269
|
if (u < 0)
|
|
7270
7270
|
throw new Error(wn);
|
|
7271
7271
|
let E = 0, R = await _e(r, u, l, P), D = he(R);
|
|
7272
7272
|
if (l) {
|
|
7273
7273
|
const v = o.offset - l;
|
|
7274
|
-
if (ce(D, E) !=
|
|
7274
|
+
if (ce(D, E) != pr && u != v) {
|
|
7275
7275
|
const k = u;
|
|
7276
7276
|
u = v, p += u - k, R = await _e(r, u, l, P), D = he(R);
|
|
7277
7277
|
}
|
|
@@ -7281,11 +7281,11 @@ class Wr {
|
|
|
7281
7281
|
throw new Error(wn);
|
|
7282
7282
|
const T = be(e, t, "filenameEncoding"), F = be(e, t, "commentEncoding");
|
|
7283
7283
|
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) &
|
|
7284
|
+
const k = new Ro(r, a, e.options);
|
|
7285
|
+
if (ce(D, E) != pr)
|
|
7286
|
+
throw new Error(vo);
|
|
7287
|
+
Di(k, D, E + 6);
|
|
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) & _r) == _r || X && (de >> 16 & gr) == gr || oe.length && oe[oe.length - 1] == yr.charCodeAt(0), pt = X && (de >> 16 & br) == br, Me = ce(D, E + 42) + p;
|
|
7289
7289
|
Object.assign(k, {
|
|
7290
7290
|
versionMadeBy: j,
|
|
7291
7291
|
msDosCompatible: K,
|
|
@@ -7303,7 +7303,7 @@ class Wr {
|
|
|
7303
7303
|
rawExtraField: R.subarray(Z, H),
|
|
7304
7304
|
executable: pt
|
|
7305
7305
|
}), k.internalFileAttribute = k.internalFileAttributes, k.externalFileAttribute = k.externalFileAttributes;
|
|
7306
|
-
const it = be(e, t, "decodeText") || jt, Je = ee ?
|
|
7306
|
+
const it = be(e, t, "decodeText") || jt, Je = ee ? Mr : T || Wr, ze = Ce ? Mr : F || Wr;
|
|
7307
7307
|
let we = it(oe, Je);
|
|
7308
7308
|
we === ve && (we = jt(oe, Je));
|
|
7309
7309
|
let fe = it(Y, ze);
|
|
@@ -7311,14 +7311,14 @@ class Wr {
|
|
|
7311
7311
|
rawComment: Y,
|
|
7312
7312
|
filename: we,
|
|
7313
7313
|
comment: fe,
|
|
7314
|
-
directory: le || we.endsWith(
|
|
7315
|
-
}), m = Math.max(Me, m),
|
|
7316
|
-
const We = new
|
|
7314
|
+
directory: le || we.endsWith(yr)
|
|
7315
|
+
}), m = Math.max(Me, m), Li(k, k, D, E + 6), k.zipCrypto = k.encrypted && !k.extraFieldAES;
|
|
7316
|
+
const We = new Pr(k);
|
|
7317
7317
|
We.getData = (f, i) => k.getData(f, We, i), E = z;
|
|
7318
7318
|
const { onprogress: ue } = t;
|
|
7319
7319
|
if (ue)
|
|
7320
7320
|
try {
|
|
7321
|
-
await ue(v + 1, h, new
|
|
7321
|
+
await ue(v + 1, h, new Pr(k));
|
|
7322
7322
|
} catch {
|
|
7323
7323
|
}
|
|
7324
7324
|
yield We;
|
|
@@ -7335,7 +7335,7 @@ class Wr {
|
|
|
7335
7335
|
async close() {
|
|
7336
7336
|
}
|
|
7337
7337
|
}
|
|
7338
|
-
class
|
|
7338
|
+
class Ro {
|
|
7339
7339
|
constructor(t, e, r) {
|
|
7340
7340
|
Object.assign(this, {
|
|
7341
7341
|
reader: t,
|
|
@@ -7359,22 +7359,22 @@ class To {
|
|
|
7359
7359
|
} = a, p = e.localDirectory = {}, m = await _e(o, c, 30, l), E = he(m);
|
|
7360
7360
|
let R = be(a, r, "password"), D = be(a, r, "rawPassword");
|
|
7361
7361
|
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
|
-
|
|
7362
|
+
if (R = R && R.length && R, D = D && D.length && D, u && u.originalCompressionMethod != Gs)
|
|
7363
|
+
throw new Error(Br);
|
|
7364
|
+
if (g != Ys && g != Hs && !S)
|
|
7365
|
+
throw new Error(Br);
|
|
7366
|
+
if (ce(E, 0) != Vs)
|
|
7367
|
+
throw new Error(Eo);
|
|
7368
|
+
Di(p, E, 4), p.rawExtraField = p.extraFieldLength ? await _e(o, c + 30 + p.filenameLength, p.extraFieldLength, l) : new Uint8Array(), Li(a, p, E, 4, !0), Object.assign(e, {
|
|
7369
7369
|
lastAccessDate: p.lastAccessDate,
|
|
7370
7370
|
creationDate: p.creationDate
|
|
7371
7371
|
});
|
|
7372
7372
|
const T = a.encrypted && p.encrypted && !S, F = T && !u;
|
|
7373
7373
|
if (S || (e.zipCrypto = F), T) {
|
|
7374
7374
|
if (!F && u.strength === ve)
|
|
7375
|
-
throw new Error(
|
|
7375
|
+
throw new Error(Ao);
|
|
7376
7376
|
if (!R && !D)
|
|
7377
|
-
throw new Error(
|
|
7377
|
+
throw new Error(So);
|
|
7378
7378
|
}
|
|
7379
7379
|
const b = c + 30 + p.filenameLength + p.extraFieldLength, I = h, v = o.readable;
|
|
7380
7380
|
Object.assign(v, {
|
|
@@ -7383,10 +7383,10 @@ class To {
|
|
|
7383
7383
|
size: I
|
|
7384
7384
|
});
|
|
7385
7385
|
const k = be(a, r, "signal"), W = be(a, r, "checkPasswordOnly");
|
|
7386
|
-
W && (t = new WritableStream()), t =
|
|
7386
|
+
W && (t = new WritableStream()), t = to(t), await Xt(t, S ? h : P);
|
|
7387
7387
|
const { writable: O } = t, { onstart: Z, onprogress: H, onend: j } = r, K = {
|
|
7388
7388
|
options: {
|
|
7389
|
-
codecType:
|
|
7389
|
+
codecType: wi,
|
|
7390
7390
|
password: R,
|
|
7391
7391
|
rawPassword: D,
|
|
7392
7392
|
zipCrypto: F,
|
|
@@ -7406,7 +7406,7 @@ class To {
|
|
|
7406
7406
|
};
|
|
7407
7407
|
let X = 0;
|
|
7408
7408
|
try {
|
|
7409
|
-
({ outputSize: X } = await
|
|
7409
|
+
({ outputSize: X } = await Va({ readable: v, writable: O }, K));
|
|
7410
7410
|
} catch (oe) {
|
|
7411
7411
|
if (!W || oe.message != Ln)
|
|
7412
7412
|
throw oe;
|
|
@@ -7417,23 +7417,23 @@ class To {
|
|
|
7417
7417
|
return W ? ve : t.getData ? t.getData() : O;
|
|
7418
7418
|
}
|
|
7419
7419
|
}
|
|
7420
|
-
function
|
|
7421
|
-
const r = n.rawBitFlag = me(t, e + 2), a = (r &
|
|
7420
|
+
function Di(n, t, e) {
|
|
7421
|
+
const r = n.rawBitFlag = me(t, e + 2), a = (r & hr) == hr, o = ce(t, e + 6);
|
|
7422
7422
|
Object.assign(n, {
|
|
7423
7423
|
encrypted: a,
|
|
7424
7424
|
version: me(t, e),
|
|
7425
7425
|
bitFlag: {
|
|
7426
|
-
level: (r &
|
|
7427
|
-
dataDescriptor: (r &
|
|
7428
|
-
languageEncodingFlag: (r &
|
|
7426
|
+
level: (r & ia) >> 1,
|
|
7427
|
+
dataDescriptor: (r & xr) == xr,
|
|
7428
|
+
languageEncodingFlag: (r & wr) == wr
|
|
7429
7429
|
},
|
|
7430
7430
|
rawLastModDate: o,
|
|
7431
|
-
lastModDate:
|
|
7431
|
+
lastModDate: Oo(o),
|
|
7432
7432
|
filenameLength: me(t, e + 22),
|
|
7433
7433
|
extraFieldLength: me(t, e + 24)
|
|
7434
7434
|
});
|
|
7435
7435
|
}
|
|
7436
|
-
function
|
|
7436
|
+
function Li(n, t, e, r, a) {
|
|
7437
7437
|
const { rawExtraField: o } = t, c = t.extraField = /* @__PURE__ */ new Map(), l = he(new Uint8Array(o));
|
|
7438
7438
|
let u = 0;
|
|
7439
7439
|
try {
|
|
@@ -7452,34 +7452,34 @@ function Di(n, t, e, r, a) {
|
|
|
7452
7452
|
uncompressedSize: ce(e, r + 18),
|
|
7453
7453
|
compressedSize: ce(e, r + 14)
|
|
7454
7454
|
});
|
|
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(
|
|
7455
|
+
const x = c.get($s);
|
|
7456
|
+
x && (Co(x, t), t.extraFieldZip64 = x);
|
|
7457
|
+
const w = c.get(ta);
|
|
7458
|
+
w && (jr(w, Ei, ki, t, n), t.extraFieldUnicodePath = w);
|
|
7459
|
+
const _ = c.get(na);
|
|
7460
|
+
_ && (jr(_, Si, Ai, t, n), t.extraFieldUnicodeComment = _);
|
|
7461
|
+
const A = c.get(Js);
|
|
7462
|
+
A ? (Io(A, t, g), t.extraFieldAES = A) : t.compressionMethod = g;
|
|
7463
|
+
const P = c.get(zs);
|
|
7464
|
+
P && (Do(P, t), t.extraFieldNTFS = P);
|
|
7465
|
+
const h = c.get(ea);
|
|
7466
|
+
h && (Lo(h, t, a), t.extraFieldExtendedTimestamp = h);
|
|
7467
|
+
const p = c.get(ra);
|
|
7468
7468
|
p && (t.extraFieldUSDZ = p);
|
|
7469
7469
|
}
|
|
7470
|
-
function
|
|
7470
|
+
function Co(n, t) {
|
|
7471
7471
|
t.zip64 = !0;
|
|
7472
|
-
const e = he(n.data), r =
|
|
7472
|
+
const e = he(n.data), r = To.filter(([a, o]) => t[a] == o);
|
|
7473
7473
|
for (let a = 0, o = 0; a < r.length; a++) {
|
|
7474
7474
|
const [c, l] = r[a];
|
|
7475
7475
|
if (t[c] == l) {
|
|
7476
|
-
const u =
|
|
7476
|
+
const u = Fo[l];
|
|
7477
7477
|
t[c] = n[c] = u.getValue(e, o), o += u.bytes;
|
|
7478
7478
|
} else if (n[c])
|
|
7479
|
-
throw new Error(
|
|
7479
|
+
throw new Error(ko);
|
|
7480
7480
|
}
|
|
7481
7481
|
}
|
|
7482
|
-
function
|
|
7482
|
+
function jr(n, t, e, r, a) {
|
|
7483
7483
|
const o = he(n.data), c = new Zt();
|
|
7484
7484
|
c.append(a[e]);
|
|
7485
7485
|
const l = he(new Uint8Array(4));
|
|
@@ -7491,7 +7491,7 @@ function qr(n, t, e, r, a) {
|
|
|
7491
7491
|
valid: !a.bitFlag.languageEncodingFlag && u == ce(l, 0)
|
|
7492
7492
|
}), n.valid && (r[t] = n[t], r[t + "UTF8"] = !0);
|
|
7493
7493
|
}
|
|
7494
|
-
function
|
|
7494
|
+
function Io(n, t, e) {
|
|
7495
7495
|
const r = he(n.data), a = dt(r, 4);
|
|
7496
7496
|
Object.assign(n, {
|
|
7497
7497
|
vendorVersion: dt(r, 0),
|
|
@@ -7501,13 +7501,13 @@ function Ro(n, t, e) {
|
|
|
7501
7501
|
compressionMethod: me(r, 5)
|
|
7502
7502
|
}), t.compressionMethod = n.compressionMethod;
|
|
7503
7503
|
}
|
|
7504
|
-
function
|
|
7504
|
+
function Do(n, t) {
|
|
7505
7505
|
const e = he(n.data);
|
|
7506
7506
|
let r = 4, a;
|
|
7507
7507
|
try {
|
|
7508
7508
|
for (; r < n.data.length && !a; ) {
|
|
7509
7509
|
const o = me(e, r), c = me(e, r + 2);
|
|
7510
|
-
o ==
|
|
7510
|
+
o == Qs && (a = n.data.slice(r + 4, r + 4 + c)), r += 4 + c;
|
|
7511
7511
|
}
|
|
7512
7512
|
} catch {
|
|
7513
7513
|
}
|
|
@@ -7525,9 +7525,9 @@ function Co(n, t) {
|
|
|
7525
7525
|
} catch {
|
|
7526
7526
|
}
|
|
7527
7527
|
}
|
|
7528
|
-
function
|
|
7528
|
+
function Lo(n, t, e) {
|
|
7529
7529
|
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(
|
|
7530
|
+
e ? ((a & 1) == 1 && (o.push(Sn), c.push(An)), (a & 2) == 2 && (o.push(Ci), c.push(io)), (a & 4) == 4 && (o.push(Ii), c.push(so))) : n.data.length >= 5 && (o.push(Sn), c.push(An));
|
|
7531
7531
|
let l = 1;
|
|
7532
7532
|
o.forEach((u, g) => {
|
|
7533
7533
|
if (n.data.length >= l + 4) {
|
|
@@ -7539,9 +7539,9 @@ function Io(n, t, e) {
|
|
|
7539
7539
|
l += 4;
|
|
7540
7540
|
});
|
|
7541
7541
|
}
|
|
7542
|
-
async function
|
|
7542
|
+
async function Uo(n, t, e, r, a) {
|
|
7543
7543
|
const o = new Uint8Array(4), c = he(o);
|
|
7544
|
-
|
|
7544
|
+
Po(c, 0, t);
|
|
7545
7545
|
const l = r + a;
|
|
7546
7546
|
return await u(r) || await u(Math.min(l, e));
|
|
7547
7547
|
async function u(g) {
|
|
@@ -7557,7 +7557,7 @@ async function Do(n, t, e, r, a) {
|
|
|
7557
7557
|
function be(n, t, e) {
|
|
7558
7558
|
return t[e] === ve ? n.options[e] : t[e];
|
|
7559
7559
|
}
|
|
7560
|
-
function
|
|
7560
|
+
function Oo(n) {
|
|
7561
7561
|
const t = (n & 4294901760) >> 16, e = n & 65535;
|
|
7562
7562
|
try {
|
|
7563
7563
|
return new Date(1980 + ((t & 65024) >> 9), ((t & 480) >> 5) - 1, t & 31, (e & 63488) >> 11, (e & 2016) >> 5, (e & 31) * 2, 0);
|
|
@@ -7579,21 +7579,21 @@ function ce(n, t) {
|
|
|
7579
7579
|
function Ht(n, t) {
|
|
7580
7580
|
return Number(n.getBigUint64(t, !0));
|
|
7581
7581
|
}
|
|
7582
|
-
function
|
|
7582
|
+
function Po(n, t, e) {
|
|
7583
7583
|
n.setUint32(t, e, !0);
|
|
7584
7584
|
}
|
|
7585
7585
|
function he(n) {
|
|
7586
7586
|
return new DataView(n.buffer);
|
|
7587
7587
|
}
|
|
7588
|
-
let
|
|
7588
|
+
let Ui;
|
|
7589
7589
|
try {
|
|
7590
|
-
|
|
7590
|
+
Ui = import.meta.url;
|
|
7591
7591
|
} catch {
|
|
7592
7592
|
}
|
|
7593
|
-
Dn({ baseURL:
|
|
7594
|
-
|
|
7595
|
-
Dn({ Deflate:
|
|
7596
|
-
class
|
|
7593
|
+
Dn({ baseURL: Ui });
|
|
7594
|
+
Ka(Dn);
|
|
7595
|
+
Dn({ Deflate: ys, Inflate: js });
|
|
7596
|
+
class Bo {
|
|
7597
7597
|
constructor(t) {
|
|
7598
7598
|
this.fileTree = t;
|
|
7599
7599
|
}
|
|
@@ -7630,19 +7630,19 @@ class $t {
|
|
|
7630
7630
|
this.entries = /* @__PURE__ */ new Map(), this.zipReader = t;
|
|
7631
7631
|
}
|
|
7632
7632
|
static fromStream(t) {
|
|
7633
|
-
const e = new
|
|
7633
|
+
const e = new qr(
|
|
7634
7634
|
new En(new Yt(t, "archive.zip"))
|
|
7635
7635
|
);
|
|
7636
7636
|
return new $t(e);
|
|
7637
7637
|
}
|
|
7638
7638
|
static fromArrayBuffer(t) {
|
|
7639
|
-
const e = new
|
|
7639
|
+
const e = new qr(
|
|
7640
7640
|
new En(new Blob([t]))
|
|
7641
7641
|
);
|
|
7642
7642
|
return new $t(e);
|
|
7643
7643
|
}
|
|
7644
7644
|
async read(t) {
|
|
7645
|
-
const e = await this.getEntry(t), r = await e.getData(new
|
|
7645
|
+
const e = await this.getEntry(t), r = await e.getData(new za());
|
|
7646
7646
|
return new Yt(r.stream(), t, {
|
|
7647
7647
|
filesize: e.uncompressedSize
|
|
7648
7648
|
});
|
|
@@ -7662,7 +7662,7 @@ class $t {
|
|
|
7662
7662
|
return this.entries;
|
|
7663
7663
|
}
|
|
7664
7664
|
}
|
|
7665
|
-
class
|
|
7665
|
+
class No {
|
|
7666
7666
|
/**
|
|
7667
7667
|
* Creates a new OverlayFilesystem.
|
|
7668
7668
|
*
|
|
@@ -7702,7 +7702,7 @@ class Po {
|
|
|
7702
7702
|
);
|
|
7703
7703
|
}
|
|
7704
7704
|
}
|
|
7705
|
-
class
|
|
7705
|
+
class Mo {
|
|
7706
7706
|
constructor(t) {
|
|
7707
7707
|
this.root = t;
|
|
7708
7708
|
}
|
|
@@ -7739,7 +7739,7 @@ class Bo {
|
|
|
7739
7739
|
)
|
|
7740
7740
|
) : e(
|
|
7741
7741
|
new Yt(
|
|
7742
|
-
|
|
7742
|
+
Wo(o),
|
|
7743
7743
|
t,
|
|
7744
7744
|
{
|
|
7745
7745
|
filesize: l.size
|
|
@@ -7750,14 +7750,14 @@ class Bo {
|
|
|
7750
7750
|
});
|
|
7751
7751
|
}
|
|
7752
7752
|
}
|
|
7753
|
-
function
|
|
7753
|
+
function Wo(n) {
|
|
7754
7754
|
return new ReadableStream({
|
|
7755
7755
|
start(e) {
|
|
7756
7756
|
n.on("data", (r) => e.enqueue(r)), n.on("end", () => e.close());
|
|
7757
7757
|
}
|
|
7758
7758
|
});
|
|
7759
7759
|
}
|
|
7760
|
-
class
|
|
7760
|
+
class Oi extends Error {
|
|
7761
7761
|
constructor(t, e) {
|
|
7762
7762
|
super(t, {
|
|
7763
7763
|
...e,
|
|
@@ -7774,7 +7774,7 @@ class Ui extends Error {
|
|
|
7774
7774
|
if (o instanceof Error) {
|
|
7775
7775
|
if (o.isReportableInCLI)
|
|
7776
7776
|
return o;
|
|
7777
|
-
Array.isArray(o.cause) ? a.push(...o.cause) : a.push(o.cause), e++, e >= r &&
|
|
7777
|
+
Array.isArray(o.cause) ? a.push(...o.cause) : a.push(o.cause), e++, e >= r && Gi.warn(
|
|
7778
7778
|
"Recursion limit exceeded while checking if error is reportable"
|
|
7779
7779
|
);
|
|
7780
7780
|
}
|
|
@@ -7782,14 +7782,14 @@ class Ui extends Error {
|
|
|
7782
7782
|
return null;
|
|
7783
7783
|
}
|
|
7784
7784
|
}
|
|
7785
|
-
async function
|
|
7785
|
+
async function qo({
|
|
7786
7786
|
sourceString: n,
|
|
7787
7787
|
blueprintMayReadAdjacentFiles: t
|
|
7788
7788
|
}) {
|
|
7789
7789
|
if (!n)
|
|
7790
7790
|
return;
|
|
7791
7791
|
if (n.startsWith("http://") || n.startsWith("https://"))
|
|
7792
|
-
return await
|
|
7792
|
+
return await Yi(n);
|
|
7793
7793
|
let e = Ft.resolve(process.cwd(), n);
|
|
7794
7794
|
if (!Tt.existsSync(e))
|
|
7795
7795
|
throw new Error(`Blueprint file does not exist: ${e}`);
|
|
@@ -7813,9 +7813,9 @@ async function Mo({
|
|
|
7813
7813
|
`Blueprint file at ${e} is not a valid JSON file`
|
|
7814
7814
|
);
|
|
7815
7815
|
}
|
|
7816
|
-
const c = Ft.dirname(e), l = new
|
|
7817
|
-
return new
|
|
7818
|
-
new
|
|
7816
|
+
const c = Ft.dirname(e), l = new Mo(c);
|
|
7817
|
+
return new No([
|
|
7818
|
+
new Bo({
|
|
7819
7819
|
"blueprint.json": o
|
|
7820
7820
|
}),
|
|
7821
7821
|
/**
|
|
@@ -7825,7 +7825,7 @@ async function Mo({
|
|
|
7825
7825
|
{
|
|
7826
7826
|
read(u) {
|
|
7827
7827
|
if (!t)
|
|
7828
|
-
throw new
|
|
7828
|
+
throw new Oi(
|
|
7829
7829
|
`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
7830
|
|
|
7831
7831
|
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 +7841,8 @@ You can allow this Blueprint to read files from the same parent directory by exp
|
|
|
7841
7841
|
);
|
|
7842
7842
|
}
|
|
7843
7843
|
}
|
|
7844
|
-
async function
|
|
7845
|
-
const n =
|
|
7844
|
+
async function jo() {
|
|
7845
|
+
const n = qi(process.argv.slice(2)).usage("Usage: wp-playground <command> [options]").positional("command", {
|
|
7846
7846
|
describe: "Command to run",
|
|
7847
7847
|
choices: ["server", "run-blueprint", "build-snapshot"],
|
|
7848
7848
|
demandOption: !0
|
|
@@ -7857,8 +7857,8 @@ async function Wo() {
|
|
|
7857
7857
|
}).option("php", {
|
|
7858
7858
|
describe: "PHP version to use.",
|
|
7859
7859
|
type: "string",
|
|
7860
|
-
default:
|
|
7861
|
-
choices:
|
|
7860
|
+
default: Wi,
|
|
7861
|
+
choices: Mi
|
|
7862
7862
|
}).option("wp", {
|
|
7863
7863
|
describe: "WordPress version to use.",
|
|
7864
7864
|
type: "string",
|
|
@@ -7866,11 +7866,25 @@ async function Wo() {
|
|
|
7866
7866
|
}).option("mount", {
|
|
7867
7867
|
describe: "Mount a directory to the PHP runtime. You can provide --mount multiple times. Format: /host/path:/vfs/path",
|
|
7868
7868
|
type: "array",
|
|
7869
|
-
string: !0
|
|
7869
|
+
string: !0,
|
|
7870
|
+
coerce: Mn
|
|
7870
7871
|
}).option("mountBeforeInstall", {
|
|
7871
7872
|
describe: "Mount a directory to the PHP runtime before installing WordPress. You can provide --mount-before-install multiple times. Format: /host/path:/vfs/path",
|
|
7872
7873
|
type: "array",
|
|
7873
|
-
string: !0
|
|
7874
|
+
string: !0,
|
|
7875
|
+
coerce: Mn
|
|
7876
|
+
}).option("mountDir", {
|
|
7877
|
+
describe: 'Mount a directory to the PHP runtime. You can provide --mount-dir multiple times. Format: "/host/path" "/vfs/path"',
|
|
7878
|
+
type: "array",
|
|
7879
|
+
nargs: 2,
|
|
7880
|
+
array: !0
|
|
7881
|
+
// coerce: parseMountDirArguments,
|
|
7882
|
+
}).option("mountDirBeforeInstall", {
|
|
7883
|
+
describe: 'Mount a directory to the PHP runtime before installing WordPress. You can provide --mount-before-install multiple times. Format: "/host/path" "/vfs/path"',
|
|
7884
|
+
type: "string",
|
|
7885
|
+
nargs: 2,
|
|
7886
|
+
array: !0,
|
|
7887
|
+
coerce: ji
|
|
7874
7888
|
}).option("login", {
|
|
7875
7889
|
describe: "Should log the user in",
|
|
7876
7890
|
type: "boolean",
|
|
@@ -7908,7 +7922,7 @@ Warning: Following symlinks will expose files outside mounted directories to Pla
|
|
|
7908
7922
|
type: "boolean",
|
|
7909
7923
|
default: !1
|
|
7910
7924
|
}).showHelpOnFail(!1).check((a) => {
|
|
7911
|
-
if (a.wp !== void 0 && !
|
|
7925
|
+
if (a.wp !== void 0 && !Vi(a.wp))
|
|
7912
7926
|
try {
|
|
7913
7927
|
new URL(a.wp);
|
|
7914
7928
|
} catch {
|
|
@@ -7924,20 +7938,25 @@ Warning: Following symlinks will expose files outside mounted directories to Pla
|
|
|
7924
7938
|
const r = {
|
|
7925
7939
|
...t,
|
|
7926
7940
|
command: e,
|
|
7927
|
-
blueprint: await
|
|
7941
|
+
blueprint: await qo({
|
|
7928
7942
|
sourceString: t.blueprint,
|
|
7929
7943
|
blueprintMayReadAdjacentFiles: t.blueprintMayReadAdjacentFiles
|
|
7930
|
-
})
|
|
7944
|
+
}),
|
|
7945
|
+
mount: [...t.mount || [], ...t.mountDir || []],
|
|
7946
|
+
mountBeforeInstall: [
|
|
7947
|
+
...t.mountBeforeInstall || [],
|
|
7948
|
+
...t.mountDirBeforeInstall || []
|
|
7949
|
+
]
|
|
7931
7950
|
};
|
|
7932
7951
|
try {
|
|
7933
|
-
return
|
|
7952
|
+
return Hi(r);
|
|
7934
7953
|
} catch (a) {
|
|
7935
|
-
const o =
|
|
7954
|
+
const o = Oi.getReportableCause(a);
|
|
7936
7955
|
if (o)
|
|
7937
7956
|
console.log(""), console.log(o.message), process.exit(1);
|
|
7938
7957
|
else
|
|
7939
7958
|
throw a;
|
|
7940
7959
|
}
|
|
7941
7960
|
}
|
|
7942
|
-
|
|
7961
|
+
jo();
|
|
7943
7962
|
//# sourceMappingURL=cli.js.map
|