@wp-playground/client 3.1.35 → 3.1.36
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/index.cjs +59 -59
- package/index.d.ts +3 -1
- package/index.js +831 -805
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -978,7 +978,7 @@ var el = {
|
|
|
978
978
|
parse: Bd,
|
|
979
979
|
stringify: Dp
|
|
980
980
|
};
|
|
981
|
-
async function
|
|
981
|
+
async function Kv(e, t) {
|
|
982
982
|
const r = el.parse(await e.readFileAsText(Qo));
|
|
983
983
|
for (const [i, a] of Object.entries(t))
|
|
984
984
|
a == null ? delete r[i] : r[i] = a;
|
|
@@ -1188,7 +1188,7 @@ function eh(e) {
|
|
|
1188
1188
|
const i = new Uint8Array(t);
|
|
1189
1189
|
return i.set(e.comment, 22), i;
|
|
1190
1190
|
}
|
|
1191
|
-
const mo = [
|
|
1191
|
+
const th = "next", mo = [
|
|
1192
1192
|
"8.5",
|
|
1193
1193
|
"8.4",
|
|
1194
1194
|
"8.3",
|
|
@@ -1196,9 +1196,10 @@ const mo = [
|
|
|
1196
1196
|
"8.1",
|
|
1197
1197
|
"8.0",
|
|
1198
1198
|
"7.4"
|
|
1199
|
-
],
|
|
1199
|
+
], rh = mo[0], Xv = mo, nh = ["5.2"], sh = [
|
|
1200
|
+
th,
|
|
1200
1201
|
...mo,
|
|
1201
|
-
...
|
|
1202
|
+
...nh
|
|
1202
1203
|
];
|
|
1203
1204
|
async function hi(e, t, r, { rmRoot: i = !1 } = {}) {
|
|
1204
1205
|
i && await e.isDir(t) && await e.rmdir(t, { recursive: !0 });
|
|
@@ -1214,7 +1215,7 @@ async function hi(e, t, r, { rmRoot: i = !1 } = {}) {
|
|
|
1214
1215
|
* Copyright 2019 Google LLC
|
|
1215
1216
|
* SPDX-License-Identifier: Apache-2.0
|
|
1216
1217
|
*/
|
|
1217
|
-
const qp = Symbol("Comlink.proxy"),
|
|
1218
|
+
const qp = Symbol("Comlink.proxy"), ih = Symbol("Comlink.endpoint"), ah = Symbol("Comlink.releaseProxy"), Ii = Symbol("Comlink.finalizer"), Cs = Symbol("Comlink.thrown");
|
|
1218
1219
|
/**
|
|
1219
1220
|
* @license
|
|
1220
1221
|
* Copyright 2019 Google LLC
|
|
@@ -1230,7 +1231,7 @@ const Ks = {
|
|
|
1230
1231
|
CONSTRUCT: "CONSTRUCT",
|
|
1231
1232
|
ENDPOINT: "ENDPOINT",
|
|
1232
1233
|
RELEASE: "RELEASE"
|
|
1233
|
-
}, Mp = (e) => typeof e == "object" && e !== null || typeof e == "function",
|
|
1234
|
+
}, Mp = (e) => typeof e == "object" && e !== null || typeof e == "function", oh = {
|
|
1234
1235
|
canHandle: (e) => Mp(e) && e[qp],
|
|
1235
1236
|
serialize(e) {
|
|
1236
1237
|
const { port1: t, port2: r } = new MessageChannel();
|
|
@@ -1239,7 +1240,7 @@ const Ks = {
|
|
|
1239
1240
|
deserialize(e) {
|
|
1240
1241
|
return e.start(), go(e);
|
|
1241
1242
|
}
|
|
1242
|
-
},
|
|
1243
|
+
}, lh = {
|
|
1243
1244
|
canHandle: (e) => Mp(e) && Cs in e,
|
|
1244
1245
|
serialize({ value: e }) {
|
|
1245
1246
|
let t;
|
|
@@ -1259,10 +1260,10 @@ const Ks = {
|
|
|
1259
1260
|
) : e.value;
|
|
1260
1261
|
}
|
|
1261
1262
|
}, Vt = /* @__PURE__ */ new Map([
|
|
1262
|
-
["proxy",
|
|
1263
|
-
["throw",
|
|
1263
|
+
["proxy", oh],
|
|
1264
|
+
["throw", lh]
|
|
1264
1265
|
]);
|
|
1265
|
-
function
|
|
1266
|
+
function fh(e, t) {
|
|
1266
1267
|
for (const r of e)
|
|
1267
1268
|
if (t === r || r === "*" || r instanceof RegExp && r.test(t))
|
|
1268
1269
|
return !0;
|
|
@@ -1272,7 +1273,7 @@ function yo(e, t = globalThis, r = ["*"], i) {
|
|
|
1272
1273
|
t.addEventListener("message", function a(s) {
|
|
1273
1274
|
if (!s || !s.data)
|
|
1274
1275
|
return;
|
|
1275
|
-
if (!
|
|
1276
|
+
if (!fh(r, s.origin)) {
|
|
1276
1277
|
console.warn(`Invalid origin '${s.origin}' for comlink proxy`);
|
|
1277
1278
|
return;
|
|
1278
1279
|
}
|
|
@@ -1304,7 +1305,7 @@ function yo(e, t = globalThis, r = ["*"], i) {
|
|
|
1304
1305
|
case xt.ENDPOINT:
|
|
1305
1306
|
{
|
|
1306
1307
|
const { port1: y, port2: O } = new MessageChannel();
|
|
1307
|
-
yo(e, O), c =
|
|
1308
|
+
yo(e, O), c = hh(y, [y]);
|
|
1308
1309
|
}
|
|
1309
1310
|
break;
|
|
1310
1311
|
case xt.RELEASE:
|
|
@@ -1329,11 +1330,11 @@ function yo(e, t = globalThis, r = ["*"], i) {
|
|
|
1329
1330
|
});
|
|
1330
1331
|
}), t.start && t.start();
|
|
1331
1332
|
}
|
|
1332
|
-
function
|
|
1333
|
+
function ph(e) {
|
|
1333
1334
|
return e.constructor.name === "MessagePort";
|
|
1334
1335
|
}
|
|
1335
1336
|
function Wp(e) {
|
|
1336
|
-
|
|
1337
|
+
ph(e) && e.close();
|
|
1337
1338
|
}
|
|
1338
1339
|
function go(e, t) {
|
|
1339
1340
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -1365,11 +1366,11 @@ const Xs = /* @__PURE__ */ new WeakMap(), Js = "FinalizationRegistry" in globalT
|
|
|
1365
1366
|
const t = (Xs.get(e) || 0) - 1;
|
|
1366
1367
|
Xs.set(e, t), t === 0 && Hp(e);
|
|
1367
1368
|
});
|
|
1368
|
-
function
|
|
1369
|
+
function ch(e, t) {
|
|
1369
1370
|
const r = (Xs.get(t) || 0) + 1;
|
|
1370
1371
|
Xs.set(t, r), Js && Js.register(e, t, e);
|
|
1371
1372
|
}
|
|
1372
|
-
function
|
|
1373
|
+
function uh(e) {
|
|
1373
1374
|
Js && Js.unregister(e);
|
|
1374
1375
|
}
|
|
1375
1376
|
function Ma(e, t, r = [], i = function() {
|
|
@@ -1377,9 +1378,9 @@ function Ma(e, t, r = [], i = function() {
|
|
|
1377
1378
|
let a = !1;
|
|
1378
1379
|
const s = new Proxy(i, {
|
|
1379
1380
|
get(n, o) {
|
|
1380
|
-
if (ws(a), o ===
|
|
1381
|
+
if (ws(a), o === ah)
|
|
1381
1382
|
return () => {
|
|
1382
|
-
|
|
1383
|
+
uh(s), Hp(e), t.clear(), a = !0;
|
|
1383
1384
|
};
|
|
1384
1385
|
if (o === "then") {
|
|
1385
1386
|
if (r.length === 0)
|
|
@@ -1409,7 +1410,7 @@ function Ma(e, t, r = [], i = function() {
|
|
|
1409
1410
|
apply(n, o, l) {
|
|
1410
1411
|
ws(a);
|
|
1411
1412
|
const p = r[r.length - 1];
|
|
1412
|
-
if (p ===
|
|
1413
|
+
if (p === ih)
|
|
1413
1414
|
return Jr(e, t, {
|
|
1414
1415
|
type: xt.ENDPOINT
|
|
1415
1416
|
}).then(Er);
|
|
@@ -1442,23 +1443,23 @@ function Ma(e, t, r = [], i = function() {
|
|
|
1442
1443
|
).then(Er);
|
|
1443
1444
|
}
|
|
1444
1445
|
});
|
|
1445
|
-
return
|
|
1446
|
+
return ch(s, e), s;
|
|
1446
1447
|
}
|
|
1447
|
-
function
|
|
1448
|
+
function dh(e) {
|
|
1448
1449
|
return Array.prototype.concat.apply([], e);
|
|
1449
1450
|
}
|
|
1450
1451
|
function tl(e) {
|
|
1451
1452
|
const t = e.map(Qs);
|
|
1452
|
-
return [t.map((r) => r[0]),
|
|
1453
|
+
return [t.map((r) => r[0]), dh(t.map((r) => r[1]))];
|
|
1453
1454
|
}
|
|
1454
1455
|
const zp = /* @__PURE__ */ new WeakMap();
|
|
1455
|
-
function
|
|
1456
|
+
function hh(e, t) {
|
|
1456
1457
|
return zp.set(e, t), e;
|
|
1457
1458
|
}
|
|
1458
1459
|
function Vp(e) {
|
|
1459
1460
|
return Object.assign(e, { [qp]: !0 });
|
|
1460
1461
|
}
|
|
1461
|
-
function
|
|
1462
|
+
function mh(e, t = globalThis, r = "*") {
|
|
1462
1463
|
return {
|
|
1463
1464
|
postMessage: (i, a) => e.postMessage(i, r, a),
|
|
1464
1465
|
addEventListener: t.addEventListener.bind(t),
|
|
@@ -1496,16 +1497,16 @@ function Er(e) {
|
|
|
1496
1497
|
}
|
|
1497
1498
|
function Jr(e, t, r, i) {
|
|
1498
1499
|
return new Promise((a) => {
|
|
1499
|
-
const s =
|
|
1500
|
+
const s = yh();
|
|
1500
1501
|
t.set(s, a), e.start && e.start(), e.postMessage({ id: s, ...r }, i);
|
|
1501
1502
|
});
|
|
1502
1503
|
}
|
|
1503
|
-
function
|
|
1504
|
+
function yh() {
|
|
1504
1505
|
return new Array(4).fill(0).map(
|
|
1505
1506
|
() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)
|
|
1506
1507
|
).join("-");
|
|
1507
1508
|
}
|
|
1508
|
-
function
|
|
1509
|
+
function gh(e) {
|
|
1509
1510
|
const t = /* @__PURE__ */ new WeakMap();
|
|
1510
1511
|
return {
|
|
1511
1512
|
postMessage: e.postMessage.bind(e),
|
|
@@ -1523,7 +1524,7 @@ function yh(e) {
|
|
|
1523
1524
|
};
|
|
1524
1525
|
}
|
|
1525
1526
|
const Ci = /* @__PURE__ */ new WeakMap();
|
|
1526
|
-
function
|
|
1527
|
+
function wh(e) {
|
|
1527
1528
|
const t = e || process;
|
|
1528
1529
|
if (typeof t.send != "function")
|
|
1529
1530
|
throw new Error(
|
|
@@ -1551,7 +1552,7 @@ function gh(e) {
|
|
|
1551
1552
|
}
|
|
1552
1553
|
};
|
|
1553
1554
|
}
|
|
1554
|
-
const
|
|
1555
|
+
const bh = [
|
|
1555
1556
|
// Native ES errors https://262.ecma-international.org/12.0/#sec-well-known-intrinsic-objects
|
|
1556
1557
|
Error,
|
|
1557
1558
|
EvalError,
|
|
@@ -1567,7 +1568,7 @@ const wh = [
|
|
|
1567
1568
|
// https://nodejs.org/api/errors.html
|
|
1568
1569
|
globalThis.AssertionError,
|
|
1569
1570
|
globalThis.SystemError
|
|
1570
|
-
].filter(Boolean).map((e) => [e.name, e]),
|
|
1571
|
+
].filter(Boolean).map((e) => [e.name, e]), _h = new Map(bh);
|
|
1571
1572
|
class wo extends Error {
|
|
1572
1573
|
constructor(t) {
|
|
1573
1574
|
super(wo._prepareSuperMessage(t)), this.name = "NonError";
|
|
@@ -1580,7 +1581,7 @@ class wo extends Error {
|
|
|
1580
1581
|
}
|
|
1581
1582
|
}
|
|
1582
1583
|
}
|
|
1583
|
-
const
|
|
1584
|
+
const vh = [
|
|
1584
1585
|
{
|
|
1585
1586
|
property: "name",
|
|
1586
1587
|
enumerable: !1
|
|
@@ -1605,12 +1606,12 @@ const _h = [
|
|
|
1605
1606
|
property: "errors",
|
|
1606
1607
|
enumerable: !1
|
|
1607
1608
|
}
|
|
1608
|
-
], Wa = /* @__PURE__ */ new WeakSet(),
|
|
1609
|
+
], Wa = /* @__PURE__ */ new WeakSet(), xh = (e) => {
|
|
1609
1610
|
Wa.add(e);
|
|
1610
1611
|
const t = e.toJSON();
|
|
1611
1612
|
return Wa.delete(e), t;
|
|
1612
1613
|
}, Zp = (e) => {
|
|
1613
|
-
const t =
|
|
1614
|
+
const t = _h.get(e) ?? Error;
|
|
1614
1615
|
return t === AggregateError ? new t([]) : new t();
|
|
1615
1616
|
}, bo = ({
|
|
1616
1617
|
from: e,
|
|
@@ -1625,7 +1626,7 @@ const _h = [
|
|
|
1625
1626
|
if (r || (Array.isArray(e) ? r = [] : !o && rl(e) ? r = Zp(e.name) : r = {}), t.push(e), s >= a)
|
|
1626
1627
|
return r;
|
|
1627
1628
|
if (n && typeof e.toJSON == "function" && !Wa.has(e))
|
|
1628
|
-
return
|
|
1629
|
+
return xh(e);
|
|
1629
1630
|
const l = (p) => bo({
|
|
1630
1631
|
from: p,
|
|
1631
1632
|
seen: [...t],
|
|
@@ -1660,7 +1661,7 @@ const _h = [
|
|
|
1660
1661
|
}
|
|
1661
1662
|
}
|
|
1662
1663
|
if (o || r instanceof Error)
|
|
1663
|
-
for (const { property: p, enumerable: c } of
|
|
1664
|
+
for (const { property: p, enumerable: c } of vh)
|
|
1664
1665
|
e[p] !== void 0 && e[p] !== null && Object.defineProperty(r, p, {
|
|
1665
1666
|
value: rl(e[p]) || Array.isArray(e[p]) ? l(e[p]) : e[p],
|
|
1666
1667
|
enumerable: i ? !0 : c,
|
|
@@ -1669,7 +1670,7 @@ const _h = [
|
|
|
1669
1670
|
});
|
|
1670
1671
|
return r;
|
|
1671
1672
|
};
|
|
1672
|
-
function
|
|
1673
|
+
function kh(e, t = {}) {
|
|
1673
1674
|
const { maxDepth: r = Number.POSITIVE_INFINITY, useToJSON: i = !0 } = t;
|
|
1674
1675
|
return typeof e == "object" && e !== null ? bo({
|
|
1675
1676
|
from: e,
|
|
@@ -1681,9 +1682,9 @@ function xh(e, t = {}) {
|
|
|
1681
1682
|
serialize: !0
|
|
1682
1683
|
}) : typeof e == "function" ? `[Function: ${e.name || "anonymous"}]` : e;
|
|
1683
1684
|
}
|
|
1684
|
-
function
|
|
1685
|
+
function Ph(e, t = {}) {
|
|
1685
1686
|
const { maxDepth: r = Number.POSITIVE_INFINITY } = t;
|
|
1686
|
-
return e instanceof Error ? e :
|
|
1687
|
+
return e instanceof Error ? e : Eh(e) ? bo({
|
|
1687
1688
|
from: e,
|
|
1688
1689
|
seen: [],
|
|
1689
1690
|
to: Zp(e.name),
|
|
@@ -1695,42 +1696,42 @@ function kh(e, t = {}) {
|
|
|
1695
1696
|
function rl(e) {
|
|
1696
1697
|
return !!e && typeof e == "object" && typeof e.name == "string" && typeof e.message == "string" && typeof e.stack == "string";
|
|
1697
1698
|
}
|
|
1698
|
-
function
|
|
1699
|
+
function Eh(e) {
|
|
1699
1700
|
return !!e && typeof e == "object" && typeof e.message == "string" && !Array.isArray(e);
|
|
1700
1701
|
}
|
|
1701
1702
|
function Gp(e, t = void 0) {
|
|
1702
|
-
|
|
1703
|
+
Oh();
|
|
1703
1704
|
let r;
|
|
1704
1705
|
if (typeof process < "u" && typeof process.versions < "u" && typeof process.versions.node < "u")
|
|
1705
1706
|
if ("postMessage" in e)
|
|
1706
|
-
r = yh(e);
|
|
1707
|
-
else if ("send" in e && "addListener" in e)
|
|
1708
1707
|
r = gh(e);
|
|
1708
|
+
else if ("send" in e && "addListener" in e)
|
|
1709
|
+
r = wh(e);
|
|
1709
1710
|
else
|
|
1710
1711
|
throw new Error(
|
|
1711
1712
|
"consumeAPI: remote does not look like a Worker, MessagePort, or Process"
|
|
1712
1713
|
);
|
|
1713
1714
|
else
|
|
1714
|
-
r = e instanceof Worker ? e :
|
|
1715
|
+
r = e instanceof Worker ? e : mh(e, t);
|
|
1715
1716
|
const a = go(r), s = Yp(a);
|
|
1716
1717
|
return new Proxy(s, {
|
|
1717
1718
|
get: (n, o) => o === "isConnected" ? async () => {
|
|
1718
1719
|
for (; ; )
|
|
1719
1720
|
try {
|
|
1720
|
-
await
|
|
1721
|
+
await Sh(a.isConnected(), 200);
|
|
1721
1722
|
break;
|
|
1722
1723
|
} catch {
|
|
1723
1724
|
}
|
|
1724
1725
|
} : a[o]
|
|
1725
1726
|
});
|
|
1726
1727
|
}
|
|
1727
|
-
async function
|
|
1728
|
+
async function Sh(e, t) {
|
|
1728
1729
|
return new Promise((r, i) => {
|
|
1729
1730
|
setTimeout(i, t), e.then(r);
|
|
1730
1731
|
});
|
|
1731
1732
|
}
|
|
1732
1733
|
let nl = !1;
|
|
1733
|
-
function
|
|
1734
|
+
function Oh() {
|
|
1734
1735
|
if (nl)
|
|
1735
1736
|
return;
|
|
1736
1737
|
nl = !0, Vt.set("EVENT", {
|
|
@@ -1778,7 +1779,7 @@ function Sh() {
|
|
|
1778
1779
|
}, Vt.set("StreamedPHPResponse", {
|
|
1779
1780
|
canHandle: (r) => r instanceof An,
|
|
1780
1781
|
serialize(r) {
|
|
1781
|
-
const i =
|
|
1782
|
+
const i = Th(), a = Ah(r.exitCode), s = r.getHeadersStream();
|
|
1782
1783
|
if (i)
|
|
1783
1784
|
return [
|
|
1784
1785
|
{
|
|
@@ -1825,7 +1826,7 @@ function Sh() {
|
|
|
1825
1826
|
});
|
|
1826
1827
|
}
|
|
1827
1828
|
let _n;
|
|
1828
|
-
function
|
|
1829
|
+
function Th() {
|
|
1829
1830
|
if (typeof ReadableStream > "u" && (_n = !1), _n === void 0)
|
|
1830
1831
|
try {
|
|
1831
1832
|
const { port1: e } = new MessageChannel(), t = new ReadableStream();
|
|
@@ -1900,10 +1901,10 @@ function Ni(e) {
|
|
|
1900
1901
|
}
|
|
1901
1902
|
break;
|
|
1902
1903
|
case "close":
|
|
1903
|
-
|
|
1904
|
+
Lh(t), i();
|
|
1904
1905
|
break;
|
|
1905
1906
|
case "error":
|
|
1906
|
-
|
|
1907
|
+
Fh(
|
|
1907
1908
|
t,
|
|
1908
1909
|
new Error(s.m || "Stream error")
|
|
1909
1910
|
), i();
|
|
@@ -1937,7 +1938,7 @@ function Ni(e) {
|
|
|
1937
1938
|
}
|
|
1938
1939
|
});
|
|
1939
1940
|
}
|
|
1940
|
-
function
|
|
1941
|
+
function Ah(e) {
|
|
1941
1942
|
const { port1: t, port2: r } = new MessageChannel();
|
|
1942
1943
|
return e.then((i) => {
|
|
1943
1944
|
try {
|
|
@@ -1985,20 +1986,20 @@ function sl(e) {
|
|
|
1985
1986
|
) : e.onmessage = i, typeof e.start == "function" && e.start();
|
|
1986
1987
|
});
|
|
1987
1988
|
}
|
|
1988
|
-
const
|
|
1989
|
+
const $h = Vt.get(
|
|
1989
1990
|
"throw"
|
|
1990
|
-
),
|
|
1991
|
-
canHandle:
|
|
1991
|
+
), Rh = {
|
|
1992
|
+
canHandle: $h.canHandle,
|
|
1992
1993
|
serialize: ({ value: e }) => {
|
|
1993
1994
|
let t;
|
|
1994
1995
|
return e instanceof Error ? (t = {
|
|
1995
1996
|
isError: !0,
|
|
1996
|
-
value:
|
|
1997
|
+
value: kh(e)
|
|
1997
1998
|
}, t.value.originalErrorClassName = e.constructor.name) : t = { isError: !1, value: e }, [t, []];
|
|
1998
1999
|
},
|
|
1999
2000
|
deserialize: (e) => {
|
|
2000
2001
|
if (e.isError) {
|
|
2001
|
-
const t =
|
|
2002
|
+
const t = Ph(e.value), r = new Error("Comlink method call failed");
|
|
2002
2003
|
let i = t;
|
|
2003
2004
|
for (; i.cause; )
|
|
2004
2005
|
i = i.cause;
|
|
@@ -2007,7 +2008,7 @@ const Ah = Vt.get(
|
|
|
2007
2008
|
throw e.value;
|
|
2008
2009
|
}
|
|
2009
2010
|
};
|
|
2010
|
-
Vt.set("throw",
|
|
2011
|
+
Vt.set("throw", Rh);
|
|
2011
2012
|
function Yp(e) {
|
|
2012
2013
|
return new Proxy(e, {
|
|
2013
2014
|
get(t, r) {
|
|
@@ -2026,13 +2027,13 @@ function Yp(e) {
|
|
|
2026
2027
|
}
|
|
2027
2028
|
});
|
|
2028
2029
|
}
|
|
2029
|
-
function
|
|
2030
|
+
function Fh(e, t) {
|
|
2030
2031
|
try {
|
|
2031
2032
|
e.error(t);
|
|
2032
2033
|
} catch {
|
|
2033
2034
|
}
|
|
2034
2035
|
}
|
|
2035
|
-
function
|
|
2036
|
+
function Lh(e) {
|
|
2036
2037
|
try {
|
|
2037
2038
|
e.close();
|
|
2038
2039
|
} catch {
|
|
@@ -2041,7 +2042,7 @@ function Fh(e) {
|
|
|
2041
2042
|
BigInt(Number.MAX_SAFE_INTEGER);
|
|
2042
2043
|
new rs({ concurrency: 15 });
|
|
2043
2044
|
new rs({ concurrency: 10 });
|
|
2044
|
-
function
|
|
2045
|
+
function Ih(e) {
|
|
2045
2046
|
let t = [e];
|
|
2046
2047
|
return {
|
|
2047
2048
|
next() {
|
|
@@ -2056,7 +2057,7 @@ function Lh(e) {
|
|
|
2056
2057
|
};
|
|
2057
2058
|
}
|
|
2058
2059
|
function Kp(e) {
|
|
2059
|
-
return e[Symbol.asyncIterator] ? e[Symbol.asyncIterator]() : e[Symbol.iterator] ? e[Symbol.iterator]() : e.next ? e :
|
|
2060
|
+
return e[Symbol.asyncIterator] ? e[Symbol.asyncIterator]() : e[Symbol.iterator] ? e[Symbol.iterator]() : e.next ? e : Ih(e);
|
|
2060
2061
|
}
|
|
2061
2062
|
class Xp {
|
|
2062
2063
|
constructor(t) {
|
|
@@ -2102,7 +2103,7 @@ class Xp {
|
|
|
2102
2103
|
async _accumulate(t) {
|
|
2103
2104
|
if (this._ended) return;
|
|
2104
2105
|
const r = [this.buffer];
|
|
2105
|
-
for (; this.cursor + t >
|
|
2106
|
+
for (; this.cursor + t > Ch(r); ) {
|
|
2106
2107
|
const i = await this._next();
|
|
2107
2108
|
if (this._ended) break;
|
|
2108
2109
|
r.push(i);
|
|
@@ -2116,10 +2117,10 @@ class Xp {
|
|
|
2116
2117
|
this.buffer = await this._next();
|
|
2117
2118
|
}
|
|
2118
2119
|
}
|
|
2119
|
-
function
|
|
2120
|
+
function Ch(e) {
|
|
2120
2121
|
return e.reduce((t, r) => t + r.length, 0);
|
|
2121
2122
|
}
|
|
2122
|
-
function
|
|
2123
|
+
function jh(e, t) {
|
|
2123
2124
|
const r = t.toString(16);
|
|
2124
2125
|
return "0".repeat(e - r.length) + r;
|
|
2125
2126
|
}
|
|
@@ -2132,7 +2133,7 @@ class Ke {
|
|
|
2132
2133
|
}
|
|
2133
2134
|
static encode(t) {
|
|
2134
2135
|
typeof t == "string" && (t = Buffer.from(t));
|
|
2135
|
-
const r = t.length + 4, i =
|
|
2136
|
+
const r = t.length + 4, i = jh(4, r);
|
|
2136
2137
|
return Buffer.concat([Buffer.from(i, "utf8"), t]);
|
|
2137
2138
|
}
|
|
2138
2139
|
static streamReader(t) {
|
|
@@ -2197,7 +2198,7 @@ function Jp(e, t) {
|
|
|
2197
2198
|
function Qp(e, t) {
|
|
2198
2199
|
return Jp(e.path, t.path);
|
|
2199
2200
|
}
|
|
2200
|
-
function
|
|
2201
|
+
function Nh(e, t) {
|
|
2201
2202
|
return Jp(il(e), il(t));
|
|
2202
2203
|
}
|
|
2203
2204
|
function il(e) {
|
|
@@ -2218,7 +2219,7 @@ function ec(e) {
|
|
|
2218
2219
|
}
|
|
2219
2220
|
throw new Ee(`Unexpected GitTree entry mode: ${e}`);
|
|
2220
2221
|
}
|
|
2221
|
-
function
|
|
2222
|
+
function Dh(e) {
|
|
2222
2223
|
const t = [];
|
|
2223
2224
|
let r = 0;
|
|
2224
2225
|
for (; r < e.length; ) {
|
|
@@ -2242,7 +2243,7 @@ function Nh(e) {
|
|
|
2242
2243
|
}
|
|
2243
2244
|
return t;
|
|
2244
2245
|
}
|
|
2245
|
-
function
|
|
2246
|
+
function Uh(e) {
|
|
2246
2247
|
if (typeof e == "number" && (e = e.toString(8)), e.match(/^0?4.*/)) return "040000";
|
|
2247
2248
|
if (e.match(/^1006.*/)) return "100644";
|
|
2248
2249
|
if (e.match(/^1007.*/)) return "100755";
|
|
@@ -2250,15 +2251,15 @@ function Dh(e) {
|
|
|
2250
2251
|
if (e.match(/^160.*/)) return "160000";
|
|
2251
2252
|
throw new Ee(`Could not understand file mode: ${e}`);
|
|
2252
2253
|
}
|
|
2253
|
-
function
|
|
2254
|
-
return !e.oid && e.sha && (e.oid = e.sha), e.mode =
|
|
2254
|
+
function Bh(e) {
|
|
2255
|
+
return !e.oid && e.sha && (e.oid = e.sha), e.mode = Uh(e.mode), e.type || (e.type = ec(e.mode)), e;
|
|
2255
2256
|
}
|
|
2256
2257
|
class _o {
|
|
2257
2258
|
constructor(t) {
|
|
2258
2259
|
if (Buffer.isBuffer(t))
|
|
2259
|
-
this._entries =
|
|
2260
|
+
this._entries = Dh(t);
|
|
2260
2261
|
else if (Array.isArray(t))
|
|
2261
|
-
this._entries = t.map(
|
|
2262
|
+
this._entries = t.map(Bh);
|
|
2262
2263
|
else
|
|
2263
2264
|
throw new Ee("invalid type passed to GitTree constructor");
|
|
2264
2265
|
this._entries.sort(Qp);
|
|
@@ -2272,7 +2273,7 @@ class _o {
|
|
|
2272
2273
|
}
|
|
2273
2274
|
toObject() {
|
|
2274
2275
|
const t = [...this._entries];
|
|
2275
|
-
return t.sort(
|
|
2276
|
+
return t.sort(Nh), Buffer.concat(
|
|
2276
2277
|
t.map((r) => {
|
|
2277
2278
|
const i = Buffer.from(r.mode.replace(/^0/, "")), a = Buffer.from(" "), s = Buffer.from(r.path, "utf8"), n = Buffer.from([0]), o = Buffer.from(r.oid, "hex");
|
|
2278
2279
|
return Buffer.concat([i, a, s, n, o]);
|
|
@@ -2291,20 +2292,20 @@ class _o {
|
|
|
2291
2292
|
}
|
|
2292
2293
|
}
|
|
2293
2294
|
function Ha({ name: e, email: t, timestamp: r, timezoneOffset: i }) {
|
|
2294
|
-
return i =
|
|
2295
|
+
return i = qh(i), `${e} <${t}> ${r} ${i}`;
|
|
2295
2296
|
}
|
|
2296
|
-
function
|
|
2297
|
-
const t =
|
|
2297
|
+
function qh(e) {
|
|
2298
|
+
const t = Mh(Wh(e));
|
|
2298
2299
|
e = Math.abs(e);
|
|
2299
2300
|
const r = Math.floor(e / 60);
|
|
2300
2301
|
e -= r * 60;
|
|
2301
2302
|
let i = String(r), a = String(e);
|
|
2302
2303
|
return i.length < 2 && (i = "0" + i), a.length < 2 && (a = "0" + a), (t === -1 ? "-" : "+") + i + a;
|
|
2303
2304
|
}
|
|
2304
|
-
function
|
|
2305
|
+
function Mh(e) {
|
|
2305
2306
|
return Math.sign(e) || (Object.is(e, -0) ? -1 : 1);
|
|
2306
2307
|
}
|
|
2307
|
-
function
|
|
2308
|
+
function Wh(e) {
|
|
2308
2309
|
return e === 0 ? e : -e;
|
|
2309
2310
|
}
|
|
2310
2311
|
function rr(e) {
|
|
@@ -2319,14 +2320,14 @@ function ei(e) {
|
|
|
2319
2320
|
name: t,
|
|
2320
2321
|
email: r,
|
|
2321
2322
|
timestamp: Number(i),
|
|
2322
|
-
timezoneOffset:
|
|
2323
|
+
timezoneOffset: Hh(a)
|
|
2323
2324
|
};
|
|
2324
2325
|
}
|
|
2325
|
-
function
|
|
2326
|
+
function Hh(e) {
|
|
2326
2327
|
let [, t, r, i] = e.match(/(\+|-)(\d\d)(\d\d)/);
|
|
2327
|
-
return i = (t === "+" ? 1 : -1) * (Number(r) * 60 + Number(i)),
|
|
2328
|
+
return i = (t === "+" ? 1 : -1) * (Number(r) * 60 + Number(i)), zh(i);
|
|
2328
2329
|
}
|
|
2329
|
-
function
|
|
2330
|
+
function zh(e) {
|
|
2330
2331
|
return e === 0 ? e : -e;
|
|
2331
2332
|
}
|
|
2332
2333
|
class $n {
|
|
@@ -2423,7 +2424,7 @@ function Di(e) {
|
|
|
2423
2424
|
`) + `
|
|
2424
2425
|
`;
|
|
2425
2426
|
}
|
|
2426
|
-
function
|
|
2427
|
+
function Vh(e) {
|
|
2427
2428
|
return e.split(`
|
|
2428
2429
|
`).map((t) => t.replace(/^ /, "")).join(`
|
|
2429
2430
|
`);
|
|
@@ -2531,7 +2532,7 @@ gpgsig`)), i = t.slice(
|
|
|
2531
2532
|
this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),
|
|
2532
2533
|
this._commit.indexOf("-----END PGP SIGNATURE-----") + 27
|
|
2533
2534
|
);
|
|
2534
|
-
return
|
|
2535
|
+
return Vh(t);
|
|
2535
2536
|
}
|
|
2536
2537
|
static async sign(t, r, i) {
|
|
2537
2538
|
const a = t.withoutSignature(), s = bt.justMessage(t._commit);
|
|
@@ -2583,8 +2584,8 @@ var tc = {};
|
|
|
2583
2584
|
t.table = i, t.bstr = $, t.buf = L, t.str = C;
|
|
2584
2585
|
});
|
|
2585
2586
|
})(tc);
|
|
2586
|
-
const
|
|
2587
|
-
class
|
|
2587
|
+
const Zh = /* @__PURE__ */ uo(tc);
|
|
2588
|
+
class Gh {
|
|
2588
2589
|
static wrap({ type: t, object: r }) {
|
|
2589
2590
|
return Buffer.concat([
|
|
2590
2591
|
Buffer.from(`${t} ${r.byteLength.toString()}\0`),
|
|
@@ -2657,7 +2658,7 @@ class Zt {
|
|
|
2657
2658
|
return this._start += 4, r;
|
|
2658
2659
|
}
|
|
2659
2660
|
}
|
|
2660
|
-
function
|
|
2661
|
+
function Yh(e, t) {
|
|
2661
2662
|
const r = new Zt(e), i = al(r);
|
|
2662
2663
|
if (i !== t.byteLength)
|
|
2663
2664
|
throw new Ee(
|
|
@@ -2755,27 +2756,27 @@ var ar = {};
|
|
|
2755
2756
|
s ? (e.Buf8 = Uint8Array, e.Buf16 = Uint16Array, e.Buf32 = Int32Array, e.assign(e, i)) : (e.Buf8 = Array, e.Buf16 = Array, e.Buf32 = Array, e.assign(e, a));
|
|
2756
2757
|
}, e.setTyped(t);
|
|
2757
2758
|
})(ar);
|
|
2758
|
-
var ss = {}, Qt = {}, mn = {},
|
|
2759
|
+
var ss = {}, Qt = {}, mn = {}, Kh = ar, Xh = 4, fl = 0, pl = 1, Jh = 2;
|
|
2759
2760
|
function yn(e) {
|
|
2760
2761
|
for (var t = e.length; --t >= 0; )
|
|
2761
2762
|
e[t] = 0;
|
|
2762
2763
|
}
|
|
2763
|
-
var
|
|
2764
|
+
var Qh = 0, rc = 1, em = 2, tm = 3, rm = 258, vo = 29, is = 256, Bn = is + 1 + vo, sn = 30, xo = 19, nc = 2 * Bn + 1, Tr = 15, Ui = 16, nm = 7, ko = 256, sc = 16, ic = 17, ac = 18, za = (
|
|
2764
2765
|
/* extra bits for each length code */
|
|
2765
2766
|
[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]
|
|
2766
2767
|
), js = (
|
|
2767
2768
|
/* extra bits for each distance code */
|
|
2768
2769
|
[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]
|
|
2769
|
-
),
|
|
2770
|
+
), sm = (
|
|
2770
2771
|
/* extra bits for each bit length code */
|
|
2771
2772
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
|
|
2772
|
-
), oc = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
|
|
2773
|
+
), oc = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], im = 512, nr = new Array((Bn + 2) * 2);
|
|
2773
2774
|
yn(nr);
|
|
2774
2775
|
var Rn = new Array(sn * 2);
|
|
2775
2776
|
yn(Rn);
|
|
2776
|
-
var qn = new Array(
|
|
2777
|
+
var qn = new Array(im);
|
|
2777
2778
|
yn(qn);
|
|
2778
|
-
var Mn = new Array(
|
|
2779
|
+
var Mn = new Array(rm - tm + 1);
|
|
2779
2780
|
yn(Mn);
|
|
2780
2781
|
var Po = new Array(vo);
|
|
2781
2782
|
yn(Po);
|
|
@@ -2812,10 +2813,10 @@ function uc(e, t) {
|
|
|
2812
2813
|
while (--t > 0);
|
|
2813
2814
|
return r >>> 1;
|
|
2814
2815
|
}
|
|
2815
|
-
function
|
|
2816
|
+
function am(e) {
|
|
2816
2817
|
e.bi_valid === 16 ? (Wn(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
|
|
2817
2818
|
}
|
|
2818
|
-
function
|
|
2819
|
+
function om(e, t) {
|
|
2819
2820
|
var r = t.dyn_tree, i = t.max_code, a = t.stat_desc.static_tree, s = t.stat_desc.has_stree, n = t.stat_desc.extra_bits, o = t.stat_desc.extra_base, l = t.stat_desc.max_length, p, c, d, m, y, O, g = 0;
|
|
2820
2821
|
for (m = 0; m <= Tr; m++)
|
|
2821
2822
|
e.bl_count[m] = 0;
|
|
@@ -2841,7 +2842,7 @@ function dc(e, t, r) {
|
|
|
2841
2842
|
o !== 0 && (e[n * 2] = uc(i[o]++, o));
|
|
2842
2843
|
}
|
|
2843
2844
|
}
|
|
2844
|
-
function
|
|
2845
|
+
function lm() {
|
|
2845
2846
|
var e, t, r, i, a, s = new Array(Tr + 1);
|
|
2846
2847
|
for (r = 0, i = 0; i < vo - 1; i++)
|
|
2847
2848
|
for (Po[i] = r, e = 0; e < 1 << za[i]; e++)
|
|
@@ -2864,7 +2865,7 @@ function om() {
|
|
|
2864
2865
|
nr[e * 2 + 1] = 8, e++, s[8]++;
|
|
2865
2866
|
for (dc(nr, Bn + 1, s), e = 0; e < sn; e++)
|
|
2866
2867
|
Rn[e * 2 + 1] = 5, Rn[e * 2] = uc(e, 5);
|
|
2867
|
-
lc = new Bi(nr, za, is + 1, Bn, Tr), fc = new Bi(Rn, js, 0, sn, Tr), pc = new Bi(new Array(0),
|
|
2868
|
+
lc = new Bi(nr, za, is + 1, Bn, Tr), fc = new Bi(Rn, js, 0, sn, Tr), pc = new Bi(new Array(0), sm, 0, xo, nm);
|
|
2868
2869
|
}
|
|
2869
2870
|
function hc(e) {
|
|
2870
2871
|
var t;
|
|
@@ -2879,8 +2880,8 @@ function hc(e) {
|
|
|
2879
2880
|
function mc(e) {
|
|
2880
2881
|
e.bi_valid > 8 ? Wn(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
2881
2882
|
}
|
|
2882
|
-
function
|
|
2883
|
-
mc(e), Wn(e, r), Wn(e, ~r),
|
|
2883
|
+
function fm(e, t, r, i) {
|
|
2884
|
+
mc(e), Wn(e, r), Wn(e, ~r), Kh.arraySet(e.pending_buf, e.window, t, r, e.pending), e.pending += r;
|
|
2884
2885
|
}
|
|
2885
2886
|
function cl(e, t, r, i) {
|
|
2886
2887
|
var a = t * 2, s = r * 2;
|
|
@@ -2936,7 +2937,7 @@ function Va(e, t) {
|
|
|
2936
2937
|
e.heap[--e.heap_max] = e.heap[
|
|
2937
2938
|
1
|
|
2938
2939
|
/*SMALLEST*/
|
|
2939
|
-
],
|
|
2940
|
+
], om(e, t), dc(r, l, e.bl_count);
|
|
2940
2941
|
}
|
|
2941
2942
|
function dl(e, t, r) {
|
|
2942
2943
|
var i, a = -1, s, n = t[0 * 2 + 1], o = 0, l = 7, p = 4;
|
|
@@ -2955,19 +2956,19 @@ function hl(e, t, r) {
|
|
|
2955
2956
|
o = 0, a = s, n === 0 ? (l = 138, p = 3) : s === n ? (l = 6, p = 3) : (l = 7, p = 4);
|
|
2956
2957
|
}
|
|
2957
2958
|
}
|
|
2958
|
-
function
|
|
2959
|
+
function pm(e) {
|
|
2959
2960
|
var t;
|
|
2960
2961
|
for (dl(e, e.dyn_ltree, e.l_desc.max_code), dl(e, e.dyn_dtree, e.d_desc.max_code), Va(e, e.bl_desc), t = xo - 1; t >= 3 && e.bl_tree[oc[t] * 2 + 1] === 0; t--)
|
|
2961
2962
|
;
|
|
2962
2963
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
2963
2964
|
}
|
|
2964
|
-
function
|
|
2965
|
+
function cm(e, t, r, i) {
|
|
2965
2966
|
var a;
|
|
2966
2967
|
for (mt(e, t - 257, 5), mt(e, r - 1, 5), mt(e, i - 4, 4), a = 0; a < i; a++)
|
|
2967
2968
|
mt(e, e.bl_tree[oc[a] * 2 + 1], 3);
|
|
2968
2969
|
hl(e, e.dyn_ltree, t - 1), hl(e, e.dyn_dtree, r - 1);
|
|
2969
2970
|
}
|
|
2970
|
-
function
|
|
2971
|
+
function um(e) {
|
|
2971
2972
|
var t = 4093624447, r;
|
|
2972
2973
|
for (r = 0; r <= 31; r++, t >>>= 1)
|
|
2973
2974
|
if (t & 1 && e.dyn_ltree[r * 2] !== 0)
|
|
@@ -2980,28 +2981,28 @@ function cm(e) {
|
|
|
2980
2981
|
return fl;
|
|
2981
2982
|
}
|
|
2982
2983
|
var ml = !1;
|
|
2983
|
-
function
|
|
2984
|
-
ml || (
|
|
2984
|
+
function dm(e) {
|
|
2985
|
+
ml || (lm(), ml = !0), e.l_desc = new qi(e.dyn_ltree, lc), e.d_desc = new qi(e.dyn_dtree, fc), e.bl_desc = new qi(e.bl_tree, pc), e.bi_buf = 0, e.bi_valid = 0, hc(e);
|
|
2985
2986
|
}
|
|
2986
2987
|
function yc(e, t, r, i) {
|
|
2987
|
-
mt(e, (
|
|
2988
|
+
mt(e, (Qh << 1) + (i ? 1 : 0), 3), fm(e, t, r);
|
|
2988
2989
|
}
|
|
2989
|
-
function
|
|
2990
|
-
mt(e, rc << 1, 3), Gt(e, ko, nr),
|
|
2990
|
+
function hm(e) {
|
|
2991
|
+
mt(e, rc << 1, 3), Gt(e, ko, nr), am(e);
|
|
2991
2992
|
}
|
|
2992
|
-
function
|
|
2993
|
+
function mm(e, t, r, i) {
|
|
2993
2994
|
var a, s, n = 0;
|
|
2994
|
-
e.level > 0 ? (e.strm.data_type ===
|
|
2995
|
+
e.level > 0 ? (e.strm.data_type === Jh && (e.strm.data_type = um(e)), Va(e, e.l_desc), Va(e, e.d_desc), n = pm(e), a = e.opt_len + 3 + 7 >>> 3, s = e.static_len + 3 + 7 >>> 3, s <= a && (a = s)) : a = s = r + 5, r + 4 <= a && t !== -1 ? yc(e, t, r, i) : e.strategy === Xh || s === a ? (mt(e, (rc << 1) + (i ? 1 : 0), 3), ul(e, nr, Rn)) : (mt(e, (em << 1) + (i ? 1 : 0), 3), cm(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, n + 1), ul(e, e.dyn_ltree, e.dyn_dtree)), hc(e), i && mc(e);
|
|
2995
2996
|
}
|
|
2996
|
-
function
|
|
2997
|
+
function ym(e, t, r) {
|
|
2997
2998
|
return e.pending_buf[e.d_buf + e.last_lit * 2] = t >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = t & 255, e.pending_buf[e.l_buf + e.last_lit] = r & 255, e.last_lit++, t === 0 ? e.dyn_ltree[r * 2]++ : (e.matches++, t--, e.dyn_ltree[(Mn[r] + is + 1) * 2]++, e.dyn_dtree[cc(t) * 2]++), e.last_lit === e.lit_bufsize - 1;
|
|
2998
2999
|
}
|
|
2999
|
-
mn._tr_init =
|
|
3000
|
+
mn._tr_init = dm;
|
|
3000
3001
|
mn._tr_stored_block = yc;
|
|
3001
|
-
mn._tr_flush_block =
|
|
3002
|
-
mn._tr_tally =
|
|
3003
|
-
mn._tr_align =
|
|
3004
|
-
function
|
|
3002
|
+
mn._tr_flush_block = mm;
|
|
3003
|
+
mn._tr_tally = ym;
|
|
3004
|
+
mn._tr_align = hm;
|
|
3005
|
+
function gm(e, t, r, i) {
|
|
3005
3006
|
for (var a = e & 65535 | 0, s = e >>> 16 & 65535 | 0, n = 0; r !== 0; ) {
|
|
3006
3007
|
n = r > 2e3 ? 2e3 : r, r -= n;
|
|
3007
3008
|
do
|
|
@@ -3011,8 +3012,8 @@ function ym(e, t, r, i) {
|
|
|
3011
3012
|
}
|
|
3012
3013
|
return a | s << 16 | 0;
|
|
3013
3014
|
}
|
|
3014
|
-
var gc =
|
|
3015
|
-
function
|
|
3015
|
+
var gc = gm;
|
|
3016
|
+
function wm() {
|
|
3016
3017
|
for (var e, t = [], r = 0; r < 256; r++) {
|
|
3017
3018
|
e = r;
|
|
3018
3019
|
for (var i = 0; i < 8; i++)
|
|
@@ -3021,15 +3022,15 @@ function gm() {
|
|
|
3021
3022
|
}
|
|
3022
3023
|
return t;
|
|
3023
3024
|
}
|
|
3024
|
-
var
|
|
3025
|
-
function
|
|
3026
|
-
var a =
|
|
3025
|
+
var bm = wm();
|
|
3026
|
+
function _m(e, t, r, i) {
|
|
3027
|
+
var a = bm, s = i + r;
|
|
3027
3028
|
e ^= -1;
|
|
3028
3029
|
for (var n = i; n < s; n++)
|
|
3029
3030
|
e = e >>> 8 ^ a[(e ^ t[n]) & 255];
|
|
3030
3031
|
return e ^ -1;
|
|
3031
3032
|
}
|
|
3032
|
-
var wc =
|
|
3033
|
+
var wc = _m, Eo = {
|
|
3033
3034
|
2: "need dictionary",
|
|
3034
3035
|
/* Z_NEED_DICT 2 */
|
|
3035
3036
|
1: "stream end",
|
|
@@ -3048,9 +3049,9 @@ var wc = bm, Eo = {
|
|
|
3048
3049
|
/* Z_BUF_ERROR (-5) */
|
|
3049
3050
|
"-6": "incompatible version"
|
|
3050
3051
|
/* Z_VERSION_ERROR (-6) */
|
|
3051
|
-
}, ot = ar, At = mn, bc = gc, ur = wc,
|
|
3052
|
+
}, ot = ar, At = mn, bc = gc, ur = wc, vm = Eo, Mr = 0, xm = 1, km = 3, vr = 4, yl = 5, Yt = 0, gl = 1, $t = -2, Pm = -3, Wi = -5, Em = -1, Sm = 1, bs = 2, Om = 3, Tm = 4, Am = 0, $m = 2, mi = 8, Rm = 9, Fm = 15, Lm = 8, Im = 29, Cm = 256, Za = Cm + 1 + Im, jm = 30, Nm = 19, Dm = 2 * Za + 1, Um = 15, ge = 3, br = 258, Dt = br + ge + 1, Bm = 32, yi = 42, Ga = 69, Ns = 73, Ds = 91, Us = 103, Ar = 113, Tn = 666, He = 1, as = 2, Cr = 3, gn = 4, qm = 3;
|
|
3052
3053
|
function _r(e, t) {
|
|
3053
|
-
return e.msg =
|
|
3054
|
+
return e.msg = vm[t], t;
|
|
3054
3055
|
}
|
|
3055
3056
|
function wl(e) {
|
|
3056
3057
|
return (e << 1) - (e > 4 ? 9 : 0);
|
|
@@ -3072,7 +3073,7 @@ function Pe(e, t) {
|
|
|
3072
3073
|
function vn(e, t) {
|
|
3073
3074
|
e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = t & 255;
|
|
3074
3075
|
}
|
|
3075
|
-
function
|
|
3076
|
+
function Mm(e, t, r, i) {
|
|
3076
3077
|
var a = e.avail_in;
|
|
3077
3078
|
return a > i && (a = i), a === 0 ? 0 : (e.avail_in -= a, ot.arraySet(t, e.input, e.next_in, a, r), e.state.wrap === 1 ? e.adler = bc(e.adler, t, a, r) : e.state.wrap === 2 && (e.adler = ur(e.adler, t, a, r)), e.next_in += a, e.total_in += a, a);
|
|
3078
3079
|
}
|
|
@@ -3110,12 +3111,12 @@ function jr(e) {
|
|
|
3110
3111
|
}
|
|
3111
3112
|
if (e.strm.avail_in === 0)
|
|
3112
3113
|
break;
|
|
3113
|
-
if (i =
|
|
3114
|
+
if (i = Mm(e.strm, e.window, e.strstart + e.lookahead, s), e.lookahead += i, e.lookahead + e.insert >= ge)
|
|
3114
3115
|
for (n = e.strstart - e.insert, e.ins_h = e.window[n], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[n + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[n + ge - 1]) & e.hash_mask, e.prev[n & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = n, n++, e.insert--, !(e.lookahead + e.insert < ge)); )
|
|
3115
3116
|
;
|
|
3116
3117
|
} while (e.lookahead < Dt && e.strm.avail_in !== 0);
|
|
3117
3118
|
}
|
|
3118
|
-
function
|
|
3119
|
+
function Wm(e, t) {
|
|
3119
3120
|
var r = 65535;
|
|
3120
3121
|
for (r > e.pending_buf_size - 5 && (r = e.pending_buf_size - 5); ; ) {
|
|
3121
3122
|
if (e.lookahead <= 1) {
|
|
@@ -3163,7 +3164,7 @@ function zr(e, t) {
|
|
|
3163
3164
|
if (e.lookahead === 0)
|
|
3164
3165
|
break;
|
|
3165
3166
|
}
|
|
3166
|
-
if (r = 0, e.lookahead >= ge && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + ge - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = ge - 1, r !== 0 && e.prev_length < e.max_lazy_match && e.strstart - r <= e.w_size - Dt && (e.match_length = _c(e, r), e.match_length <= 5 && (e.strategy ===
|
|
3167
|
+
if (r = 0, e.lookahead >= ge && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + ge - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = ge - 1, r !== 0 && e.prev_length < e.max_lazy_match && e.strstart - r <= e.w_size - Dt && (e.match_length = _c(e, r), e.match_length <= 5 && (e.strategy === Sm || e.match_length === ge && e.strstart - e.match_start > 4096) && (e.match_length = ge - 1)), e.prev_length >= ge && e.match_length <= e.prev_length) {
|
|
3167
3168
|
a = e.strstart + e.lookahead - ge, i = At._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - ge), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
|
|
3168
3169
|
do
|
|
3169
3170
|
++e.strstart <= a && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + ge - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
|
|
@@ -3178,7 +3179,7 @@ function zr(e, t) {
|
|
|
3178
3179
|
}
|
|
3179
3180
|
return e.match_available && (i = At._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < ge - 1 ? e.strstart : ge - 1, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr : gn) : e.last_lit && (Qe(e, !1), e.strm.avail_out === 0) ? He : as;
|
|
3180
3181
|
}
|
|
3181
|
-
function
|
|
3182
|
+
function Hm(e, t) {
|
|
3182
3183
|
for (var r, i, a, s, n = e.window; ; ) {
|
|
3183
3184
|
if (e.lookahead <= br) {
|
|
3184
3185
|
if (jr(e), e.lookahead <= br && t === Mr)
|
|
@@ -3198,7 +3199,7 @@ function Wm(e, t) {
|
|
|
3198
3199
|
}
|
|
3199
3200
|
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr : gn) : e.last_lit && (Qe(e, !1), e.strm.avail_out === 0) ? He : as;
|
|
3200
3201
|
}
|
|
3201
|
-
function
|
|
3202
|
+
function zm(e, t) {
|
|
3202
3203
|
for (var r; ; ) {
|
|
3203
3204
|
if (e.lookahead === 0 && (jr(e), e.lookahead === 0)) {
|
|
3204
3205
|
if (t === Mr)
|
|
@@ -3216,7 +3217,7 @@ function qt(e, t, r, i, a) {
|
|
|
3216
3217
|
var tn;
|
|
3217
3218
|
tn = [
|
|
3218
3219
|
/* good lazy nice chain */
|
|
3219
|
-
new qt(0, 0, 0, 0,
|
|
3220
|
+
new qt(0, 0, 0, 0, Wm),
|
|
3220
3221
|
/* 0 store only */
|
|
3221
3222
|
new qt(4, 4, 8, 4, Hi),
|
|
3222
3223
|
/* 1 max speed, no lazy matches */
|
|
@@ -3237,37 +3238,37 @@ tn = [
|
|
|
3237
3238
|
new qt(32, 258, 258, 4096, zr)
|
|
3238
3239
|
/* 9 max compression */
|
|
3239
3240
|
];
|
|
3240
|
-
function
|
|
3241
|
+
function Vm(e) {
|
|
3241
3242
|
e.window_size = 2 * e.w_size, wr(e.head), e.max_lazy_match = tn[e.level].max_lazy, e.good_match = tn[e.level].good_length, e.nice_match = tn[e.level].nice_length, e.max_chain_length = tn[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = ge - 1, e.match_available = 0, e.ins_h = 0;
|
|
3242
3243
|
}
|
|
3243
|
-
function
|
|
3244
|
-
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = mi, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new ot.Buf16(
|
|
3244
|
+
function Zm() {
|
|
3245
|
+
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = mi, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new ot.Buf16(Dm * 2), this.dyn_dtree = new ot.Buf16((2 * jm + 1) * 2), this.bl_tree = new ot.Buf16((2 * Nm + 1) * 2), wr(this.dyn_ltree), wr(this.dyn_dtree), wr(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new ot.Buf16(Um + 1), this.heap = new ot.Buf16(2 * Za + 1), wr(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new ot.Buf16(2 * Za + 1), wr(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
3245
3246
|
}
|
|
3246
3247
|
function vc(e) {
|
|
3247
3248
|
var t;
|
|
3248
|
-
return !e || !e.state ? _r(e, $t) : (e.total_in = e.total_out = 0, e.data_type =
|
|
3249
|
+
return !e || !e.state ? _r(e, $t) : (e.total_in = e.total_out = 0, e.data_type = $m, t = e.state, t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? yi : Ar, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = Mr, At._tr_init(t), Yt);
|
|
3249
3250
|
}
|
|
3250
3251
|
function xc(e) {
|
|
3251
3252
|
var t = vc(e);
|
|
3252
|
-
return t === Yt &&
|
|
3253
|
+
return t === Yt && Vm(e.state), t;
|
|
3253
3254
|
}
|
|
3254
|
-
function
|
|
3255
|
+
function Gm(e, t) {
|
|
3255
3256
|
return !e || !e.state || e.state.wrap !== 2 ? $t : (e.state.gzhead = t, Yt);
|
|
3256
3257
|
}
|
|
3257
3258
|
function kc(e, t, r, i, a, s) {
|
|
3258
3259
|
if (!e)
|
|
3259
3260
|
return $t;
|
|
3260
3261
|
var n = 1;
|
|
3261
|
-
if (t ===
|
|
3262
|
+
if (t === Em && (t = 6), i < 0 ? (n = 0, i = -i) : i > 15 && (n = 2, i -= 16), a < 1 || a > Rm || r !== mi || i < 8 || i > 15 || t < 0 || t > 9 || s < 0 || s > Tm)
|
|
3262
3263
|
return _r(e, $t);
|
|
3263
3264
|
i === 8 && (i = 9);
|
|
3264
|
-
var o = new
|
|
3265
|
+
var o = new Zm();
|
|
3265
3266
|
return e.state = o, o.strm = e, o.wrap = n, o.gzhead = null, o.w_bits = i, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = a + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~((o.hash_bits + ge - 1) / ge), o.window = new ot.Buf8(o.w_size * 2), o.head = new ot.Buf16(o.hash_size), o.prev = new ot.Buf16(o.w_size), o.lit_bufsize = 1 << a + 6, o.pending_buf_size = o.lit_bufsize * 4, o.pending_buf = new ot.Buf8(o.pending_buf_size), o.d_buf = 1 * o.lit_bufsize, o.l_buf = 3 * o.lit_bufsize, o.level = t, o.strategy = s, o.method = r, xc(e);
|
|
3266
3267
|
}
|
|
3267
|
-
function Gm(e, t) {
|
|
3268
|
-
return kc(e, t, mi, Rm, Fm, Tm);
|
|
3269
|
-
}
|
|
3270
3268
|
function Ym(e, t) {
|
|
3269
|
+
return kc(e, t, mi, Fm, Lm, Am);
|
|
3270
|
+
}
|
|
3271
|
+
function Km(e, t) {
|
|
3271
3272
|
var r, i, a, s;
|
|
3272
3273
|
if (!e || !e.state || t > yl || t < 0)
|
|
3273
3274
|
return e ? _r(e, $t) : $t;
|
|
@@ -3278,10 +3279,10 @@ function Ym(e, t) {
|
|
|
3278
3279
|
e.adler = 0, Pe(i, 31), Pe(i, 139), Pe(i, 8), i.gzhead ? (Pe(
|
|
3279
3280
|
i,
|
|
3280
3281
|
(i.gzhead.text ? 1 : 0) + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)
|
|
3281
|
-
), Pe(i, i.gzhead.time & 255), Pe(i, i.gzhead.time >> 8 & 255), Pe(i, i.gzhead.time >> 16 & 255), Pe(i, i.gzhead.time >> 24 & 255), Pe(i, i.level === 9 ? 2 : i.strategy >= bs || i.level < 2 ? 4 : 0), Pe(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (Pe(i, i.gzhead.extra.length & 255), Pe(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = ur(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = Ga) : (Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, i.level === 9 ? 2 : i.strategy >= bs || i.level < 2 ? 4 : 0), Pe(i,
|
|
3282
|
+
), Pe(i, i.gzhead.time & 255), Pe(i, i.gzhead.time >> 8 & 255), Pe(i, i.gzhead.time >> 16 & 255), Pe(i, i.gzhead.time >> 24 & 255), Pe(i, i.level === 9 ? 2 : i.strategy >= bs || i.level < 2 ? 4 : 0), Pe(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (Pe(i, i.gzhead.extra.length & 255), Pe(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = ur(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = Ga) : (Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, i.level === 9 ? 2 : i.strategy >= bs || i.level < 2 ? 4 : 0), Pe(i, qm), i.status = Ar);
|
|
3282
3283
|
else {
|
|
3283
3284
|
var n = mi + (i.w_bits - 8 << 4) << 8, o = -1;
|
|
3284
|
-
i.strategy >= bs || i.level < 2 ? o = 0 : i.level < 6 ? o = 1 : i.level === 6 ? o = 2 : o = 3, n |= o << 6, i.strstart !== 0 && (n |=
|
|
3285
|
+
i.strategy >= bs || i.level < 2 ? o = 0 : i.level < 6 ? o = 1 : i.level === 6 ? o = 2 : o = 3, n |= o << 6, i.strstart !== 0 && (n |= Bm), n += 31 - n % 31, i.status = Ar, vn(i, n), i.strstart !== 0 && (vn(i, e.adler >>> 16), vn(i, e.adler & 65535)), e.adler = 1;
|
|
3285
3286
|
}
|
|
3286
3287
|
if (i.status === Ga)
|
|
3287
3288
|
if (i.gzhead.extra) {
|
|
@@ -3324,19 +3325,19 @@ function Ym(e, t) {
|
|
|
3324
3325
|
if (i.status === Tn && e.avail_in !== 0)
|
|
3325
3326
|
return _r(e, Wi);
|
|
3326
3327
|
if (e.avail_in !== 0 || i.lookahead !== 0 || t !== Mr && i.status !== Tn) {
|
|
3327
|
-
var l = i.strategy === bs ?
|
|
3328
|
+
var l = i.strategy === bs ? zm(i, t) : i.strategy === Om ? Hm(i, t) : tn[i.level].func(i, t);
|
|
3328
3329
|
if ((l === Cr || l === gn) && (i.status = Tn), l === He || l === Cr)
|
|
3329
3330
|
return e.avail_out === 0 && (i.last_flush = -1), Yt;
|
|
3330
|
-
if (l === as && (t ===
|
|
3331
|
+
if (l === as && (t === xm ? At._tr_align(i) : t !== yl && (At._tr_stored_block(i, 0, 0, !1), t === km && (wr(i.head), i.lookahead === 0 && (i.strstart = 0, i.block_start = 0, i.insert = 0))), dr(e), e.avail_out === 0))
|
|
3331
3332
|
return i.last_flush = -1, Yt;
|
|
3332
3333
|
}
|
|
3333
3334
|
return t !== vr ? Yt : i.wrap <= 0 ? gl : (i.wrap === 2 ? (Pe(i, e.adler & 255), Pe(i, e.adler >> 8 & 255), Pe(i, e.adler >> 16 & 255), Pe(i, e.adler >> 24 & 255), Pe(i, e.total_in & 255), Pe(i, e.total_in >> 8 & 255), Pe(i, e.total_in >> 16 & 255), Pe(i, e.total_in >> 24 & 255)) : (vn(i, e.adler >>> 16), vn(i, e.adler & 65535)), dr(e), i.wrap > 0 && (i.wrap = -i.wrap), i.pending !== 0 ? Yt : gl);
|
|
3334
3335
|
}
|
|
3335
|
-
function
|
|
3336
|
+
function Xm(e) {
|
|
3336
3337
|
var t;
|
|
3337
|
-
return !e || !e.state ? $t : (t = e.state.status, t !== yi && t !== Ga && t !== Ns && t !== Ds && t !== Us && t !== Ar && t !== Tn ? _r(e, $t) : (e.state = null, t === Ar ? _r(e,
|
|
3338
|
+
return !e || !e.state ? $t : (t = e.state.status, t !== yi && t !== Ga && t !== Ns && t !== Ds && t !== Us && t !== Ar && t !== Tn ? _r(e, $t) : (e.state = null, t === Ar ? _r(e, Pm) : Yt));
|
|
3338
3339
|
}
|
|
3339
|
-
function
|
|
3340
|
+
function Jm(e, t) {
|
|
3340
3341
|
var r = t.length, i, a, s, n, o, l, p, c;
|
|
3341
3342
|
if (!e || !e.state || (i = e.state, n = i.wrap, n === 2 || n === 1 && i.status !== yi || i.lookahead))
|
|
3342
3343
|
return $t;
|
|
@@ -3349,14 +3350,14 @@ function Xm(e, t) {
|
|
|
3349
3350
|
}
|
|
3350
3351
|
return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = ge - 1, i.match_available = 0, e.next_in = l, e.input = p, e.avail_in = o, i.wrap = n, Yt;
|
|
3351
3352
|
}
|
|
3352
|
-
Qt.deflateInit =
|
|
3353
|
+
Qt.deflateInit = Ym;
|
|
3353
3354
|
Qt.deflateInit2 = kc;
|
|
3354
3355
|
Qt.deflateReset = xc;
|
|
3355
3356
|
Qt.deflateResetKeep = vc;
|
|
3356
|
-
Qt.deflateSetHeader =
|
|
3357
|
-
Qt.deflate =
|
|
3358
|
-
Qt.deflateEnd =
|
|
3359
|
-
Qt.deflateSetDictionary =
|
|
3357
|
+
Qt.deflateSetHeader = Gm;
|
|
3358
|
+
Qt.deflate = Km;
|
|
3359
|
+
Qt.deflateEnd = Xm;
|
|
3360
|
+
Qt.deflateSetDictionary = Jm;
|
|
3360
3361
|
Qt.deflateInfo = "pako deflate (from Nodeca project)";
|
|
3361
3362
|
var Wr = {}, gi = ar, Pc = !0, Ec = !0;
|
|
3362
3363
|
try {
|
|
@@ -3423,23 +3424,23 @@ Wr.utf8border = function(e, t) {
|
|
|
3423
3424
|
r--;
|
|
3424
3425
|
return r < 0 || r === 0 ? t : r + Hn[e[r]] > t ? r : t;
|
|
3425
3426
|
};
|
|
3426
|
-
function
|
|
3427
|
+
function Qm() {
|
|
3427
3428
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
3428
3429
|
}
|
|
3429
|
-
var Oc =
|
|
3430
|
+
var Oc = Qm, Fn = Qt, Ln = ar, Ya = Wr, Ka = Eo, ey = Oc, Tc = Object.prototype.toString, ty = 0, zi = 4, an = 0, bl = 1, _l = 2, ry = -1, ny = 0, sy = 8;
|
|
3430
3431
|
function Nr(e) {
|
|
3431
3432
|
if (!(this instanceof Nr)) return new Nr(e);
|
|
3432
3433
|
this.options = Ln.assign({
|
|
3433
|
-
level:
|
|
3434
|
-
method:
|
|
3434
|
+
level: ry,
|
|
3435
|
+
method: sy,
|
|
3435
3436
|
chunkSize: 16384,
|
|
3436
3437
|
windowBits: 15,
|
|
3437
3438
|
memLevel: 8,
|
|
3438
|
-
strategy:
|
|
3439
|
+
strategy: ny,
|
|
3439
3440
|
to: ""
|
|
3440
3441
|
}, e || {});
|
|
3441
3442
|
var t = this.options;
|
|
3442
|
-
t.raw && t.windowBits > 0 ? t.windowBits = -t.windowBits : t.gzip && t.windowBits > 0 && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new
|
|
3443
|
+
t.raw && t.windowBits > 0 ? t.windowBits = -t.windowBits : t.gzip && t.windowBits > 0 && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new ey(), this.strm.avail_out = 0;
|
|
3443
3444
|
var r = Fn.deflateInit2(
|
|
3444
3445
|
this.strm,
|
|
3445
3446
|
t.level,
|
|
@@ -3461,7 +3462,7 @@ Nr.prototype.push = function(e, t) {
|
|
|
3461
3462
|
var r = this.strm, i = this.options.chunkSize, a, s;
|
|
3462
3463
|
if (this.ended)
|
|
3463
3464
|
return !1;
|
|
3464
|
-
s = t === ~~t ? t : t === !0 ? zi :
|
|
3465
|
+
s = t === ~~t ? t : t === !0 ? zi : ty, typeof e == "string" ? r.input = Ya.string2buf(e) : Tc.call(e) === "[object ArrayBuffer]" ? r.input = new Uint8Array(e) : r.input = e, r.next_in = 0, r.avail_in = r.input.length;
|
|
3465
3466
|
do {
|
|
3466
3467
|
if (r.avail_out === 0 && (r.output = new Ln.Buf8(i), r.next_out = 0, r.avail_out = i), a = Fn.deflate(r, s), a !== bl && a !== an)
|
|
3467
3468
|
return this.onEnd(a), this.ended = !0, !1;
|
|
@@ -3481,17 +3482,17 @@ function So(e, t) {
|
|
|
3481
3482
|
throw r.msg || Ka[r.err];
|
|
3482
3483
|
return r.result;
|
|
3483
3484
|
}
|
|
3484
|
-
function
|
|
3485
|
+
function iy(e, t) {
|
|
3485
3486
|
return t = t || {}, t.raw = !0, So(e, t);
|
|
3486
3487
|
}
|
|
3487
|
-
function
|
|
3488
|
+
function ay(e, t) {
|
|
3488
3489
|
return t = t || {}, t.gzip = !0, So(e, t);
|
|
3489
3490
|
}
|
|
3490
3491
|
ss.Deflate = Nr;
|
|
3491
3492
|
ss.deflate = So;
|
|
3492
|
-
ss.deflateRaw =
|
|
3493
|
-
ss.gzip =
|
|
3494
|
-
var os = {}, Ut = {}, _s = 30,
|
|
3493
|
+
ss.deflateRaw = iy;
|
|
3494
|
+
ss.gzip = ay;
|
|
3495
|
+
var os = {}, Ut = {}, _s = 30, oy = 12, ly = function(t, r) {
|
|
3495
3496
|
var i, a, s, n, o, l, p, c, d, m, y, O, g, w, _, T, E, I, $, L, C, b, F, k, S;
|
|
3496
3497
|
i = t.state, a = t.next_in, k = t.input, s = a + (t.avail_in - 5), n = t.next_out, S = t.output, o = n - (r - t.avail_out), l = n + (t.avail_out - 257), p = i.dmax, c = i.wsize, d = i.whave, m = i.wnext, y = i.window, O = i.hold, g = i.bits, w = i.lencode, _ = i.distcode, T = (1 << i.lenbits) - 1, E = (1 << i.distbits) - 1;
|
|
3497
3498
|
e:
|
|
@@ -3565,7 +3566,7 @@ var os = {}, Ut = {}, _s = 30, ay = 12, oy = function(t, r) {
|
|
|
3565
3566
|
}
|
|
3566
3567
|
} else if ($ & 64)
|
|
3567
3568
|
if ($ & 32) {
|
|
3568
|
-
i.mode =
|
|
3569
|
+
i.mode = oy;
|
|
3569
3570
|
break e;
|
|
3570
3571
|
} else {
|
|
3571
3572
|
t.msg = "invalid literal/length code", i.mode = _s;
|
|
@@ -3579,7 +3580,7 @@ var os = {}, Ut = {}, _s = 30, ay = 12, oy = function(t, r) {
|
|
|
3579
3580
|
}
|
|
3580
3581
|
} while (a < s && n < l);
|
|
3581
3582
|
L = g >> 3, a -= L, g -= L << 3, O &= (1 << g) - 1, t.next_in = a, t.next_out = n, t.avail_in = a < s ? 5 + (s - a) : 5 - (a - s), t.avail_out = n < l ? 257 + (l - n) : 257 - (n - l), i.hold = O, i.bits = g;
|
|
3582
|
-
}, vl = ar, Vr = 15, xl = 852, kl = 592, Pl = 0, Vi = 1, El = 2,
|
|
3583
|
+
}, vl = ar, Vr = 15, xl = 852, kl = 592, Pl = 0, Vi = 1, El = 2, fy = [
|
|
3583
3584
|
/* Length codes 257..285 base */
|
|
3584
3585
|
3,
|
|
3585
3586
|
4,
|
|
@@ -3612,7 +3613,7 @@ var os = {}, Ut = {}, _s = 30, ay = 12, oy = function(t, r) {
|
|
|
3612
3613
|
258,
|
|
3613
3614
|
0,
|
|
3614
3615
|
0
|
|
3615
|
-
],
|
|
3616
|
+
], py = [
|
|
3616
3617
|
/* Length codes 257..285 extra */
|
|
3617
3618
|
16,
|
|
3618
3619
|
16,
|
|
@@ -3645,7 +3646,7 @@ var os = {}, Ut = {}, _s = 30, ay = 12, oy = function(t, r) {
|
|
|
3645
3646
|
16,
|
|
3646
3647
|
72,
|
|
3647
3648
|
78
|
|
3648
|
-
],
|
|
3649
|
+
], cy = [
|
|
3649
3650
|
/* Distance codes 0..29 base */
|
|
3650
3651
|
1,
|
|
3651
3652
|
2,
|
|
@@ -3679,7 +3680,7 @@ var os = {}, Ut = {}, _s = 30, ay = 12, oy = function(t, r) {
|
|
|
3679
3680
|
24577,
|
|
3680
3681
|
0,
|
|
3681
3682
|
0
|
|
3682
|
-
],
|
|
3683
|
+
], uy = [
|
|
3683
3684
|
/* Distance codes 0..29 extra */
|
|
3684
3685
|
16,
|
|
3685
3686
|
16,
|
|
@@ -3713,7 +3714,7 @@ var os = {}, Ut = {}, _s = 30, ay = 12, oy = function(t, r) {
|
|
|
3713
3714
|
29,
|
|
3714
3715
|
64,
|
|
3715
3716
|
64
|
|
3716
|
-
],
|
|
3717
|
+
], dy = function(t, r, i, a, s, n, o, l) {
|
|
3717
3718
|
var p = l.bits, c = 0, d = 0, m = 0, y = 0, O = 0, g = 0, w = 0, _ = 0, T = 0, E = 0, I, $, L, C, b, F = null, k = 0, S, j = new vl.Buf16(Vr + 1), R = new vl.Buf16(Vr + 1), D = null, V = 0, B, Y, G;
|
|
3718
3719
|
for (c = 0; c <= Vr; c++)
|
|
3719
3720
|
j[c] = 0;
|
|
@@ -3734,7 +3735,7 @@ var os = {}, Ut = {}, _s = 30, ay = 12, oy = function(t, r) {
|
|
|
3734
3735
|
R[c + 1] = R[c] + j[c];
|
|
3735
3736
|
for (d = 0; d < a; d++)
|
|
3736
3737
|
r[i + d] !== 0 && (o[R[r[i + d]]++] = d);
|
|
3737
|
-
if (t === Pl ? (F = D = o, S = 19) : t === Vi ? (F =
|
|
3738
|
+
if (t === Pl ? (F = D = o, S = 19) : t === Vi ? (F = fy, k -= 257, D = py, V -= 257, S = 256) : (F = cy, D = uy, S = -1), E = 0, d = 0, c = m, b = n, g = O, w = 0, L = -1, T = 1 << O, C = T - 1, t === Vi && T > xl || t === El && T > kl)
|
|
3738
3739
|
return 1;
|
|
3739
3740
|
for (; ; ) {
|
|
3740
3741
|
B = c - w, o[d] < S ? (Y = 0, G = o[d]) : o[d] > S ? (Y = D[V + o[d]], G = F[k + o[d]]) : (Y = 96, G = 0), I = 1 << c - w, $ = 1 << g, m = $;
|
|
@@ -3757,16 +3758,16 @@ var os = {}, Ut = {}, _s = 30, ay = 12, oy = function(t, r) {
|
|
|
3757
3758
|
}
|
|
3758
3759
|
}
|
|
3759
3760
|
return E !== 0 && (s[b + E] = c - w << 24 | 64 << 16 | 0), l.bits = O, 0;
|
|
3760
|
-
}, kt = ar, Xa = gc, Mt = wc,
|
|
3761
|
+
}, kt = ar, Xa = gc, Mt = wc, hy = ly, In = dy, my = 0, Ac = 1, $c = 2, Sl = 4, yy = 5, vs = 6, Dr = 0, gy = 1, wy = 2, Rt = -2, Rc = -3, Fc = -4, by = -5, Ol = 8, Lc = 1, Tl = 2, Al = 3, $l = 4, Rl = 5, Fl = 6, Ll = 7, Il = 8, Cl = 9, jl = 10, ri = 11, tr = 12, Zi = 13, Nl = 14, Gi = 15, Dl = 16, Ul = 17, Bl = 18, ql = 19, xs = 20, ks = 21, Ml = 22, Wl = 23, Hl = 24, zl = 25, Vl = 26, Yi = 27, Zl = 28, Gl = 29, je = 30, Ic = 31, _y = 32, vy = 852, xy = 592, ky = 15, Py = ky;
|
|
3761
3762
|
function Yl(e) {
|
|
3762
3763
|
return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
|
|
3763
3764
|
}
|
|
3764
|
-
function
|
|
3765
|
+
function Ey() {
|
|
3765
3766
|
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new kt.Buf16(320), this.work = new kt.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
3766
3767
|
}
|
|
3767
3768
|
function Cc(e) {
|
|
3768
3769
|
var t;
|
|
3769
|
-
return !e || !e.state ? Rt : (t = e.state, e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = t.wrap & 1), t.mode = Lc, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new kt.Buf32(
|
|
3770
|
+
return !e || !e.state ? Rt : (t = e.state, e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = t.wrap & 1), t.mode = Lc, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new kt.Buf32(vy), t.distcode = t.distdyn = new kt.Buf32(xy), t.sane = 1, t.back = -1, Dr);
|
|
3770
3771
|
}
|
|
3771
3772
|
function jc(e) {
|
|
3772
3773
|
var t;
|
|
@@ -3778,13 +3779,13 @@ function Nc(e, t) {
|
|
|
3778
3779
|
}
|
|
3779
3780
|
function Dc(e, t) {
|
|
3780
3781
|
var r, i;
|
|
3781
|
-
return e ? (i = new
|
|
3782
|
+
return e ? (i = new Ey(), e.state = i, i.window = null, r = Nc(e, t), r !== Dr && (e.state = null), r) : Rt;
|
|
3782
3783
|
}
|
|
3783
|
-
function
|
|
3784
|
-
return Dc(e,
|
|
3784
|
+
function Sy(e) {
|
|
3785
|
+
return Dc(e, Py);
|
|
3785
3786
|
}
|
|
3786
3787
|
var Kl = !0, Ki, Xi;
|
|
3787
|
-
function
|
|
3788
|
+
function Oy(e) {
|
|
3788
3789
|
if (Kl) {
|
|
3789
3790
|
var t;
|
|
3790
3791
|
for (Ki = new kt.Buf32(512), Xi = new kt.Buf32(32), t = 0; t < 144; )
|
|
@@ -3805,7 +3806,7 @@ function Uc(e, t, r, i) {
|
|
|
3805
3806
|
var a, s = e.state;
|
|
3806
3807
|
return s.window === null && (s.wsize = 1 << s.wbits, s.wnext = 0, s.whave = 0, s.window = new kt.Buf8(s.wsize)), i >= s.wsize ? (kt.arraySet(s.window, t, r - s.wsize, s.wsize, 0), s.wnext = 0, s.whave = s.wsize) : (a = s.wsize - s.wnext, a > i && (a = i), kt.arraySet(s.window, t, r - i, a, s.wnext), i -= a, i ? (kt.arraySet(s.window, t, r - i, i, 0), s.wnext = i, s.whave = s.wsize) : (s.wnext += a, s.wnext === s.wsize && (s.wnext = 0), s.whave < s.wsize && (s.whave += a))), 0;
|
|
3807
3808
|
}
|
|
3808
|
-
function
|
|
3809
|
+
function Ty(e, t) {
|
|
3809
3810
|
var r, i, a, s, n, o, l, p, c, d, m, y, O, g, w = 0, _, T, E, I, $, L, C, b, F = new kt.Buf8(4), k, S, j = (
|
|
3810
3811
|
/* permutation of code lengths */
|
|
3811
3812
|
[16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
|
|
@@ -3947,10 +3948,10 @@ function Oy(e, t) {
|
|
|
3947
3948
|
e.adler = r.check = Yl(p), p = 0, c = 0, r.mode = ri;
|
|
3948
3949
|
case ri:
|
|
3949
3950
|
if (r.havedict === 0)
|
|
3950
|
-
return e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c,
|
|
3951
|
+
return e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, wy;
|
|
3951
3952
|
e.adler = r.check = 1, r.mode = tr;
|
|
3952
3953
|
case tr:
|
|
3953
|
-
if (t ===
|
|
3954
|
+
if (t === yy || t === vs)
|
|
3954
3955
|
break e;
|
|
3955
3956
|
case Zi:
|
|
3956
3957
|
if (r.last) {
|
|
@@ -3967,7 +3968,7 @@ function Oy(e, t) {
|
|
|
3967
3968
|
r.mode = Nl;
|
|
3968
3969
|
break;
|
|
3969
3970
|
case 1:
|
|
3970
|
-
if (
|
|
3971
|
+
if (Oy(r), r.mode = xs, t === vs) {
|
|
3971
3972
|
p >>>= 2, c -= 2;
|
|
3972
3973
|
break e;
|
|
3973
3974
|
}
|
|
@@ -4025,7 +4026,7 @@ function Oy(e, t) {
|
|
|
4025
4026
|
}
|
|
4026
4027
|
for (; r.have < 19; )
|
|
4027
4028
|
r.lens[j[r.have++]] = 0;
|
|
4028
|
-
if (r.lencode = r.lendyn, r.lenbits = 7, k = { bits: r.lenbits }, b = In(
|
|
4029
|
+
if (r.lencode = r.lendyn, r.lenbits = 7, k = { bits: r.lenbits }, b = In(my, r.lens, 0, 19, r.lencode, 0, r.work, k), r.lenbits = k.bits, b) {
|
|
4029
4030
|
e.msg = "invalid code lengths set", r.mode = je;
|
|
4030
4031
|
break;
|
|
4031
4032
|
}
|
|
@@ -4094,7 +4095,7 @@ function Oy(e, t) {
|
|
|
4094
4095
|
r.mode = ks;
|
|
4095
4096
|
case ks:
|
|
4096
4097
|
if (o >= 6 && l >= 258) {
|
|
4097
|
-
e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c,
|
|
4098
|
+
e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, hy(e, m), n = e.next_out, a = e.output, l = e.avail_out, s = e.next_in, i = e.input, o = e.avail_in, p = r.hold, c = r.bits, r.mode === tr && (r.back = -1);
|
|
4098
4099
|
break;
|
|
4099
4100
|
}
|
|
4100
4101
|
for (r.back = 0; w = r.lencode[p & (1 << r.lenbits) - 1], _ = w >>> 24, T = w >>> 16 & 255, E = w & 65535, !(_ <= c); ) {
|
|
@@ -4218,43 +4219,43 @@ function Oy(e, t) {
|
|
|
4218
4219
|
}
|
|
4219
4220
|
r.mode = Gl;
|
|
4220
4221
|
case Gl:
|
|
4221
|
-
b =
|
|
4222
|
+
b = gy;
|
|
4222
4223
|
break e;
|
|
4223
4224
|
case je:
|
|
4224
4225
|
b = Rc;
|
|
4225
4226
|
break e;
|
|
4226
4227
|
case Ic:
|
|
4227
4228
|
return Fc;
|
|
4228
|
-
case
|
|
4229
|
+
case _y:
|
|
4229
4230
|
default:
|
|
4230
4231
|
return Rt;
|
|
4231
4232
|
}
|
|
4232
4233
|
return e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, (r.wsize || m !== e.avail_out && r.mode < je && (r.mode < Yi || t !== Sl)) && Uc(e, e.output, e.next_out, m - e.avail_out), d -= e.avail_in, m -= e.avail_out, e.total_in += d, e.total_out += m, r.total += m, r.wrap && m && (e.adler = r.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
4233
|
-
r.flags ? Mt(r.check, a, m, e.next_out - m) : Xa(r.check, a, m, e.next_out - m)), e.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === tr ? 128 : 0) + (r.mode === xs || r.mode === Gi ? 256 : 0), (d === 0 && m === 0 || t === Sl) && b === Dr && (b =
|
|
4234
|
+
r.flags ? Mt(r.check, a, m, e.next_out - m) : Xa(r.check, a, m, e.next_out - m)), e.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === tr ? 128 : 0) + (r.mode === xs || r.mode === Gi ? 256 : 0), (d === 0 && m === 0 || t === Sl) && b === Dr && (b = by), b;
|
|
4234
4235
|
}
|
|
4235
|
-
function
|
|
4236
|
+
function Ay(e) {
|
|
4236
4237
|
if (!e || !e.state)
|
|
4237
4238
|
return Rt;
|
|
4238
4239
|
var t = e.state;
|
|
4239
4240
|
return t.window && (t.window = null), e.state = null, Dr;
|
|
4240
4241
|
}
|
|
4241
|
-
function
|
|
4242
|
+
function $y(e, t) {
|
|
4242
4243
|
var r;
|
|
4243
4244
|
return !e || !e.state || (r = e.state, !(r.wrap & 2)) ? Rt : (r.head = t, t.done = !1, Dr);
|
|
4244
4245
|
}
|
|
4245
|
-
function
|
|
4246
|
+
function Ry(e, t) {
|
|
4246
4247
|
var r = t.length, i, a, s;
|
|
4247
4248
|
return !e || !e.state || (i = e.state, i.wrap !== 0 && i.mode !== ri) ? Rt : i.mode === ri && (a = 1, a = Xa(a, t, r, 0), a !== i.check) ? Rc : (s = Uc(e, t, r, r), s ? (i.mode = Ic, Fc) : (i.havedict = 1, Dr));
|
|
4248
4249
|
}
|
|
4249
4250
|
Ut.inflateReset = jc;
|
|
4250
4251
|
Ut.inflateReset2 = Nc;
|
|
4251
4252
|
Ut.inflateResetKeep = Cc;
|
|
4252
|
-
Ut.inflateInit =
|
|
4253
|
+
Ut.inflateInit = Sy;
|
|
4253
4254
|
Ut.inflateInit2 = Dc;
|
|
4254
|
-
Ut.inflate =
|
|
4255
|
-
Ut.inflateEnd =
|
|
4256
|
-
Ut.inflateGetHeader =
|
|
4257
|
-
Ut.inflateSetDictionary =
|
|
4255
|
+
Ut.inflate = Ty;
|
|
4256
|
+
Ut.inflateEnd = Ay;
|
|
4257
|
+
Ut.inflateGetHeader = $y;
|
|
4258
|
+
Ut.inflateSetDictionary = Ry;
|
|
4258
4259
|
Ut.inflateInfo = "pako inflate (from Nodeca project)";
|
|
4259
4260
|
var Bc = {
|
|
4260
4261
|
/* Allowed flush values; see deflate() and inflate() below for details */
|
|
@@ -4296,10 +4297,10 @@ var Bc = {
|
|
|
4296
4297
|
Z_DEFLATED: 8
|
|
4297
4298
|
//Z_NULL: null // Use -1 or null inline, depending on var type
|
|
4298
4299
|
};
|
|
4299
|
-
function
|
|
4300
|
+
function Fy() {
|
|
4300
4301
|
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
|
|
4301
4302
|
}
|
|
4302
|
-
var
|
|
4303
|
+
var Ly = Fy, on = Ut, Cn = ar, Bs = Wr, Ue = Bc, Ja = Eo, Iy = Oc, Cy = Ly, qc = Object.prototype.toString;
|
|
4303
4304
|
function Ur(e) {
|
|
4304
4305
|
if (!(this instanceof Ur)) return new Ur(e);
|
|
4305
4306
|
this.options = Cn.assign({
|
|
@@ -4308,14 +4309,14 @@ function Ur(e) {
|
|
|
4308
4309
|
to: ""
|
|
4309
4310
|
}, e || {});
|
|
4310
4311
|
var t = this.options;
|
|
4311
|
-
t.raw && t.windowBits >= 0 && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), t.windowBits >= 0 && t.windowBits < 16 && !(e && e.windowBits) && (t.windowBits += 32), t.windowBits > 15 && t.windowBits < 48 && (t.windowBits & 15 || (t.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new
|
|
4312
|
+
t.raw && t.windowBits >= 0 && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), t.windowBits >= 0 && t.windowBits < 16 && !(e && e.windowBits) && (t.windowBits += 32), t.windowBits > 15 && t.windowBits < 48 && (t.windowBits & 15 || (t.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Iy(), this.strm.avail_out = 0;
|
|
4312
4313
|
var r = on.inflateInit2(
|
|
4313
4314
|
this.strm,
|
|
4314
4315
|
t.windowBits
|
|
4315
4316
|
);
|
|
4316
4317
|
if (r !== Ue.Z_OK)
|
|
4317
4318
|
throw new Error(Ja[r]);
|
|
4318
|
-
if (this.header = new
|
|
4319
|
+
if (this.header = new Cy(), on.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = Bs.string2buf(t.dictionary) : qc.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (r = on.inflateSetDictionary(this.strm, t.dictionary), r !== Ue.Z_OK)))
|
|
4319
4320
|
throw new Error(Ja[r]);
|
|
4320
4321
|
}
|
|
4321
4322
|
Ur.prototype.push = function(e, t) {
|
|
@@ -4342,18 +4343,18 @@ function Oo(e, t) {
|
|
|
4342
4343
|
throw r.msg || Ja[r.err];
|
|
4343
4344
|
return r.result;
|
|
4344
4345
|
}
|
|
4345
|
-
function
|
|
4346
|
+
function jy(e, t) {
|
|
4346
4347
|
return t = t || {}, t.raw = !0, Oo(e, t);
|
|
4347
4348
|
}
|
|
4348
4349
|
os.Inflate = Ur;
|
|
4349
4350
|
os.inflate = Oo;
|
|
4350
|
-
os.inflateRaw =
|
|
4351
|
+
os.inflateRaw = jy;
|
|
4351
4352
|
os.ungzip = Oo;
|
|
4352
|
-
var
|
|
4353
|
-
|
|
4354
|
-
var
|
|
4355
|
-
const To = /* @__PURE__ */ uo(
|
|
4356
|
-
async function
|
|
4353
|
+
var Ny = ar.assign, Dy = ss, Uy = os, By = Bc, Mc = {};
|
|
4354
|
+
Ny(Mc, Dy, Uy, By);
|
|
4355
|
+
var qy = Mc;
|
|
4356
|
+
const To = /* @__PURE__ */ uo(qy);
|
|
4357
|
+
async function My(e, t) {
|
|
4357
4358
|
const r = new Xp(e);
|
|
4358
4359
|
let i = await r.read(4);
|
|
4359
4360
|
if (i = i.toString("utf8"), i !== "PACK")
|
|
@@ -4364,7 +4365,7 @@ async function qy(e, t) {
|
|
|
4364
4365
|
let s = await r.read(4);
|
|
4365
4366
|
if (s = s.readUInt32BE(0), !(s < 1))
|
|
4366
4367
|
for (; !r.eof() && s--; ) {
|
|
4367
|
-
const n = r.tell(), { type: o, length: l, ofs: p, reference: c } = await
|
|
4368
|
+
const n = r.tell(), { type: o, length: l, ofs: p, reference: c } = await Wy(r), d = new To.Inflate();
|
|
4368
4369
|
for (; !d.result; ) {
|
|
4369
4370
|
const m = await r.chunk();
|
|
4370
4371
|
if (!m) break;
|
|
@@ -4390,7 +4391,7 @@ async function qy(e, t) {
|
|
|
4390
4391
|
}
|
|
4391
4392
|
}
|
|
4392
4393
|
}
|
|
4393
|
-
async function
|
|
4394
|
+
async function Wy(e) {
|
|
4394
4395
|
let t = await e.byte();
|
|
4395
4396
|
const r = t >> 4 & 7;
|
|
4396
4397
|
let i = t & 15;
|
|
@@ -4412,7 +4413,7 @@ async function My(e) {
|
|
|
4412
4413
|
}
|
|
4413
4414
|
return r === 7 && (s = await e.read(20)), { type: r, length: i, ofs: a, reference: s };
|
|
4414
4415
|
}
|
|
4415
|
-
async function
|
|
4416
|
+
async function Hy(e) {
|
|
4416
4417
|
return To.inflate(e);
|
|
4417
4418
|
}
|
|
4418
4419
|
var Qa = { exports: {} };
|
|
@@ -4433,12 +4434,12 @@ typeof Object.create == "function" ? Qa.exports = function(t, r) {
|
|
|
4433
4434
|
i.prototype = r.prototype, t.prototype = new i(), t.prototype.constructor = t;
|
|
4434
4435
|
}
|
|
4435
4436
|
};
|
|
4436
|
-
var
|
|
4437
|
-
wi.byteLength =
|
|
4438
|
-
wi.toByteArray =
|
|
4439
|
-
wi.fromByteArray =
|
|
4440
|
-
var Kt = [], Ot = [],
|
|
4441
|
-
for (var Zr = 0,
|
|
4437
|
+
var zy = Qa.exports, eo = { exports: {} }, Ao = {}, wi = {};
|
|
4438
|
+
wi.byteLength = Gy;
|
|
4439
|
+
wi.toByteArray = Ky;
|
|
4440
|
+
wi.fromByteArray = Qy;
|
|
4441
|
+
var Kt = [], Ot = [], Vy = typeof Uint8Array < "u" ? Uint8Array : Array, Ji = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4442
|
+
for (var Zr = 0, Zy = Ji.length; Zr < Zy; ++Zr)
|
|
4442
4443
|
Kt[Zr] = Ji[Zr], Ot[Ji.charCodeAt(Zr)] = Zr;
|
|
4443
4444
|
Ot[45] = 62;
|
|
4444
4445
|
Ot[95] = 63;
|
|
@@ -4451,30 +4452,30 @@ function Wc(e) {
|
|
|
4451
4452
|
var i = r === t ? 0 : 4 - r % 4;
|
|
4452
4453
|
return [r, i];
|
|
4453
4454
|
}
|
|
4454
|
-
function
|
|
4455
|
+
function Gy(e) {
|
|
4455
4456
|
var t = Wc(e), r = t[0], i = t[1];
|
|
4456
4457
|
return (r + i) * 3 / 4 - i;
|
|
4457
4458
|
}
|
|
4458
|
-
function
|
|
4459
|
+
function Yy(e, t, r) {
|
|
4459
4460
|
return (t + r) * 3 / 4 - r;
|
|
4460
4461
|
}
|
|
4461
|
-
function
|
|
4462
|
-
var t, r = Wc(e), i = r[0], a = r[1], s = new
|
|
4462
|
+
function Ky(e) {
|
|
4463
|
+
var t, r = Wc(e), i = r[0], a = r[1], s = new Vy(Yy(e, i, a)), n = 0, o = a > 0 ? i - 4 : i, l;
|
|
4463
4464
|
for (l = 0; l < o; l += 4)
|
|
4464
4465
|
t = Ot[e.charCodeAt(l)] << 18 | Ot[e.charCodeAt(l + 1)] << 12 | Ot[e.charCodeAt(l + 2)] << 6 | Ot[e.charCodeAt(l + 3)], s[n++] = t >> 16 & 255, s[n++] = t >> 8 & 255, s[n++] = t & 255;
|
|
4465
4466
|
return a === 2 && (t = Ot[e.charCodeAt(l)] << 2 | Ot[e.charCodeAt(l + 1)] >> 4, s[n++] = t & 255), a === 1 && (t = Ot[e.charCodeAt(l)] << 10 | Ot[e.charCodeAt(l + 1)] << 4 | Ot[e.charCodeAt(l + 2)] >> 2, s[n++] = t >> 8 & 255, s[n++] = t & 255), s;
|
|
4466
4467
|
}
|
|
4467
|
-
function
|
|
4468
|
+
function Xy(e) {
|
|
4468
4469
|
return Kt[e >> 18 & 63] + Kt[e >> 12 & 63] + Kt[e >> 6 & 63] + Kt[e & 63];
|
|
4469
4470
|
}
|
|
4470
|
-
function
|
|
4471
|
+
function Jy(e, t, r) {
|
|
4471
4472
|
for (var i, a = [], s = t; s < r; s += 3)
|
|
4472
|
-
i = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (e[s + 2] & 255), a.push(
|
|
4473
|
+
i = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (e[s + 2] & 255), a.push(Xy(i));
|
|
4473
4474
|
return a.join("");
|
|
4474
4475
|
}
|
|
4475
|
-
function
|
|
4476
|
+
function Qy(e) {
|
|
4476
4477
|
for (var t, r = e.length, i = r % 3, a = [], s = 16383, n = 0, o = r - i; n < o; n += s)
|
|
4477
|
-
a.push(
|
|
4478
|
+
a.push(Jy(e, n, n + s > o ? o : n + s));
|
|
4478
4479
|
return i === 1 ? (t = e[r - 1], a.push(
|
|
4479
4480
|
Kt[t >> 2] + Kt[t << 4 & 63] + "=="
|
|
4480
4481
|
)) : i === 2 && (t = (e[r - 2] << 8) + e[r - 1], a.push(
|
|
@@ -5321,13 +5322,13 @@ $o.write = function(e, t, r, i, a, s) {
|
|
|
5321
5322
|
return r.SlowBuffer(n);
|
|
5322
5323
|
};
|
|
5323
5324
|
})(eo, eo.exports);
|
|
5324
|
-
var Ro = eo.exports,
|
|
5325
|
-
return
|
|
5326
|
-
}, ls = TypeError, Hc = Object,
|
|
5325
|
+
var Ro = eo.exports, e0 = {}.toString, t0 = Array.isArray || function(e) {
|
|
5326
|
+
return e0.call(e) == "[object Array]";
|
|
5327
|
+
}, ls = TypeError, Hc = Object, r0 = Error, n0 = EvalError, s0 = RangeError, i0 = ReferenceError, zc = SyntaxError, a0 = URIError, o0 = Math.abs, l0 = Math.floor, f0 = Math.max, p0 = Math.min, c0 = Math.pow, u0 = Math.round, d0 = Number.isNaN || function(t) {
|
|
5327
5328
|
return t !== t;
|
|
5328
|
-
},
|
|
5329
|
-
return
|
|
5330
|
-
},
|
|
5329
|
+
}, h0 = d0, m0 = function(t) {
|
|
5330
|
+
return h0(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
5331
|
+
}, y0 = Object.getOwnPropertyDescriptor, qs = y0;
|
|
5331
5332
|
if (qs)
|
|
5332
5333
|
try {
|
|
5333
5334
|
qs([], "length");
|
|
@@ -5372,7 +5373,7 @@ function Vc() {
|
|
|
5372
5373
|
}), Qi;
|
|
5373
5374
|
}
|
|
5374
5375
|
var ea, Jl;
|
|
5375
|
-
function
|
|
5376
|
+
function g0() {
|
|
5376
5377
|
if (Jl) return ea;
|
|
5377
5378
|
Jl = 1;
|
|
5378
5379
|
var e = typeof Symbol < "u" && Symbol, t = Vc();
|
|
@@ -5391,25 +5392,25 @@ function Gc() {
|
|
|
5391
5392
|
var e = Hc;
|
|
5392
5393
|
return ra = e.getPrototypeOf || null, ra;
|
|
5393
5394
|
}
|
|
5394
|
-
var
|
|
5395
|
+
var w0 = "Function.prototype.bind called on incompatible ", b0 = Object.prototype.toString, _0 = Math.max, v0 = "[object Function]", tf = function(t, r) {
|
|
5395
5396
|
for (var i = [], a = 0; a < t.length; a += 1)
|
|
5396
5397
|
i[a] = t[a];
|
|
5397
5398
|
for (var s = 0; s < r.length; s += 1)
|
|
5398
5399
|
i[s + t.length] = r[s];
|
|
5399
5400
|
return i;
|
|
5400
|
-
},
|
|
5401
|
+
}, x0 = function(t, r) {
|
|
5401
5402
|
for (var i = [], a = r, s = 0; a < t.length; a += 1, s += 1)
|
|
5402
5403
|
i[s] = t[a];
|
|
5403
5404
|
return i;
|
|
5404
|
-
},
|
|
5405
|
+
}, k0 = function(e, t) {
|
|
5405
5406
|
for (var r = "", i = 0; i < e.length; i += 1)
|
|
5406
5407
|
r += e[i], i + 1 < e.length && (r += t);
|
|
5407
5408
|
return r;
|
|
5408
|
-
},
|
|
5409
|
+
}, P0 = function(t) {
|
|
5409
5410
|
var r = this;
|
|
5410
|
-
if (typeof r != "function" ||
|
|
5411
|
-
throw new TypeError(
|
|
5412
|
-
for (var i =
|
|
5411
|
+
if (typeof r != "function" || b0.apply(r) !== v0)
|
|
5412
|
+
throw new TypeError(w0 + r);
|
|
5413
|
+
for (var i = x0(arguments, 1), a, s = function() {
|
|
5413
5414
|
if (this instanceof a) {
|
|
5414
5415
|
var c = r.apply(
|
|
5415
5416
|
this,
|
|
@@ -5421,20 +5422,20 @@ var g0 = "Function.prototype.bind called on incompatible ", w0 = Object.prototyp
|
|
|
5421
5422
|
t,
|
|
5422
5423
|
tf(i, arguments)
|
|
5423
5424
|
);
|
|
5424
|
-
}, n =
|
|
5425
|
+
}, n = _0(0, r.length - i.length), o = [], l = 0; l < n; l++)
|
|
5425
5426
|
o[l] = "$" + l;
|
|
5426
|
-
if (a = Function("binder", "return function (" +
|
|
5427
|
+
if (a = Function("binder", "return function (" + k0(o, ",") + "){ return binder.apply(this,arguments); }")(s), r.prototype) {
|
|
5427
5428
|
var p = function() {
|
|
5428
5429
|
};
|
|
5429
5430
|
p.prototype = r.prototype, a.prototype = new p(), p.prototype = null;
|
|
5430
5431
|
}
|
|
5431
5432
|
return a;
|
|
5432
|
-
},
|
|
5433
|
+
}, E0 = P0, ps = Function.prototype.bind || E0, Fo = Function.prototype.call, Lo = Function.prototype.apply, S0 = typeof Reflect < "u" && Reflect && Reflect.apply, O0 = ps, T0 = Lo, A0 = Fo, $0 = S0, Yc = $0 || O0.call(A0, T0), R0 = ps, F0 = ls, L0 = Fo, I0 = Yc, Io = function(t) {
|
|
5433
5434
|
if (t.length < 1 || typeof t[0] != "function")
|
|
5434
|
-
throw new
|
|
5435
|
-
return
|
|
5435
|
+
throw new F0("a function is required");
|
|
5436
|
+
return I0(R0, L0, t);
|
|
5436
5437
|
}, na, rf;
|
|
5437
|
-
function
|
|
5438
|
+
function C0() {
|
|
5438
5439
|
if (rf) return na;
|
|
5439
5440
|
rf = 1;
|
|
5440
5441
|
var e = Io, t = fs, r;
|
|
@@ -5461,7 +5462,7 @@ var sa, nf;
|
|
|
5461
5462
|
function Kc() {
|
|
5462
5463
|
if (nf) return sa;
|
|
5463
5464
|
nf = 1;
|
|
5464
|
-
var e = Zc(), t = Gc(), r =
|
|
5465
|
+
var e = Zc(), t = Gc(), r = C0();
|
|
5465
5466
|
return sa = e ? function(a) {
|
|
5466
5467
|
return e(a);
|
|
5467
5468
|
} : t ? function(a) {
|
|
@@ -5473,20 +5474,20 @@ function Kc() {
|
|
|
5473
5474
|
} : null, sa;
|
|
5474
5475
|
}
|
|
5475
5476
|
var ia, sf;
|
|
5476
|
-
function
|
|
5477
|
+
function j0() {
|
|
5477
5478
|
if (sf) return ia;
|
|
5478
5479
|
sf = 1;
|
|
5479
5480
|
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = ps;
|
|
5480
5481
|
return ia = r.call(e, t), ia;
|
|
5481
5482
|
}
|
|
5482
|
-
var ye,
|
|
5483
|
+
var ye, N0 = Hc, D0 = r0, U0 = n0, B0 = s0, q0 = i0, cn = zc, ln = ls, M0 = a0, W0 = o0, H0 = l0, z0 = f0, V0 = p0, Z0 = c0, G0 = u0, Y0 = m0, Xc = Function, aa = function(e) {
|
|
5483
5484
|
try {
|
|
5484
5485
|
return Xc('"use strict"; return (' + e + ").constructor;")();
|
|
5485
5486
|
} catch {
|
|
5486
5487
|
}
|
|
5487
|
-
}, zn = fs,
|
|
5488
|
+
}, zn = fs, K0 = bi, oa = function() {
|
|
5488
5489
|
throw new ln();
|
|
5489
|
-
},
|
|
5490
|
+
}, X0 = zn ? function() {
|
|
5490
5491
|
try {
|
|
5491
5492
|
return arguments.callee, oa;
|
|
5492
5493
|
} catch {
|
|
@@ -5496,7 +5497,7 @@ var ye, j0 = Hc, N0 = t0, D0 = r0, U0 = n0, B0 = s0, cn = zc, ln = ls, q0 = i0,
|
|
|
5496
5497
|
return oa;
|
|
5497
5498
|
}
|
|
5498
5499
|
}
|
|
5499
|
-
}() : oa, Gr =
|
|
5500
|
+
}() : oa, Gr = g0()(), Ze = Kc(), J0 = Gc(), Q0 = Zc(), Jc = Lo, cs = Fo, Qr = {}, eg = typeof Uint8Array > "u" || !Ze ? ye : Ze(Uint8Array), $r = {
|
|
5500
5501
|
__proto__: null,
|
|
5501
5502
|
"%AggregateError%": typeof AggregateError > "u" ? ye : AggregateError,
|
|
5502
5503
|
"%Array%": Array,
|
|
@@ -5518,10 +5519,10 @@ var ye, j0 = Hc, N0 = t0, D0 = r0, U0 = n0, B0 = s0, cn = zc, ln = ls, q0 = i0,
|
|
|
5518
5519
|
"%decodeURIComponent%": decodeURIComponent,
|
|
5519
5520
|
"%encodeURI%": encodeURI,
|
|
5520
5521
|
"%encodeURIComponent%": encodeURIComponent,
|
|
5521
|
-
"%Error%":
|
|
5522
|
+
"%Error%": D0,
|
|
5522
5523
|
"%eval%": eval,
|
|
5523
5524
|
// eslint-disable-line no-eval
|
|
5524
|
-
"%EvalError%":
|
|
5525
|
+
"%EvalError%": U0,
|
|
5525
5526
|
"%Float16Array%": typeof Float16Array > "u" ? ye : Float16Array,
|
|
5526
5527
|
"%Float32Array%": typeof Float32Array > "u" ? ye : Float32Array,
|
|
5527
5528
|
"%Float64Array%": typeof Float64Array > "u" ? ye : Float64Array,
|
|
@@ -5539,14 +5540,14 @@ var ye, j0 = Hc, N0 = t0, D0 = r0, U0 = n0, B0 = s0, cn = zc, ln = ls, q0 = i0,
|
|
|
5539
5540
|
"%MapIteratorPrototype%": typeof Map > "u" || !Gr || !Ze ? ye : Ze((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
5540
5541
|
"%Math%": Math,
|
|
5541
5542
|
"%Number%": Number,
|
|
5542
|
-
"%Object%":
|
|
5543
|
+
"%Object%": N0,
|
|
5543
5544
|
"%Object.getOwnPropertyDescriptor%": zn,
|
|
5544
5545
|
"%parseFloat%": parseFloat,
|
|
5545
5546
|
"%parseInt%": parseInt,
|
|
5546
5547
|
"%Promise%": typeof Promise > "u" ? ye : Promise,
|
|
5547
5548
|
"%Proxy%": typeof Proxy > "u" ? ye : Proxy,
|
|
5548
|
-
"%RangeError%":
|
|
5549
|
-
"%ReferenceError%":
|
|
5549
|
+
"%RangeError%": B0,
|
|
5550
|
+
"%ReferenceError%": q0,
|
|
5550
5551
|
"%Reflect%": typeof Reflect > "u" ? ye : Reflect,
|
|
5551
5552
|
"%RegExp%": RegExp,
|
|
5552
5553
|
"%Set%": typeof Set > "u" ? ye : Set,
|
|
@@ -5556,38 +5557,38 @@ var ye, j0 = Hc, N0 = t0, D0 = r0, U0 = n0, B0 = s0, cn = zc, ln = ls, q0 = i0,
|
|
|
5556
5557
|
"%StringIteratorPrototype%": Gr && Ze ? Ze(""[Symbol.iterator]()) : ye,
|
|
5557
5558
|
"%Symbol%": Gr ? Symbol : ye,
|
|
5558
5559
|
"%SyntaxError%": cn,
|
|
5559
|
-
"%ThrowTypeError%":
|
|
5560
|
-
"%TypedArray%":
|
|
5560
|
+
"%ThrowTypeError%": X0,
|
|
5561
|
+
"%TypedArray%": eg,
|
|
5561
5562
|
"%TypeError%": ln,
|
|
5562
5563
|
"%Uint8Array%": typeof Uint8Array > "u" ? ye : Uint8Array,
|
|
5563
5564
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? ye : Uint8ClampedArray,
|
|
5564
5565
|
"%Uint16Array%": typeof Uint16Array > "u" ? ye : Uint16Array,
|
|
5565
5566
|
"%Uint32Array%": typeof Uint32Array > "u" ? ye : Uint32Array,
|
|
5566
|
-
"%URIError%":
|
|
5567
|
+
"%URIError%": M0,
|
|
5567
5568
|
"%WeakMap%": typeof WeakMap > "u" ? ye : WeakMap,
|
|
5568
5569
|
"%WeakRef%": typeof WeakRef > "u" ? ye : WeakRef,
|
|
5569
5570
|
"%WeakSet%": typeof WeakSet > "u" ? ye : WeakSet,
|
|
5570
5571
|
"%Function.prototype.call%": cs,
|
|
5571
5572
|
"%Function.prototype.apply%": Jc,
|
|
5572
|
-
"%Object.defineProperty%":
|
|
5573
|
-
"%Object.getPrototypeOf%":
|
|
5574
|
-
"%Math.abs%":
|
|
5575
|
-
"%Math.floor%":
|
|
5576
|
-
"%Math.max%":
|
|
5577
|
-
"%Math.min%":
|
|
5578
|
-
"%Math.pow%":
|
|
5579
|
-
"%Math.round%":
|
|
5580
|
-
"%Math.sign%":
|
|
5581
|
-
"%Reflect.getPrototypeOf%":
|
|
5573
|
+
"%Object.defineProperty%": K0,
|
|
5574
|
+
"%Object.getPrototypeOf%": J0,
|
|
5575
|
+
"%Math.abs%": W0,
|
|
5576
|
+
"%Math.floor%": H0,
|
|
5577
|
+
"%Math.max%": z0,
|
|
5578
|
+
"%Math.min%": V0,
|
|
5579
|
+
"%Math.pow%": Z0,
|
|
5580
|
+
"%Math.round%": G0,
|
|
5581
|
+
"%Math.sign%": Y0,
|
|
5582
|
+
"%Reflect.getPrototypeOf%": Q0
|
|
5582
5583
|
};
|
|
5583
5584
|
if (Ze)
|
|
5584
5585
|
try {
|
|
5585
5586
|
null.error;
|
|
5586
5587
|
} catch (e) {
|
|
5587
|
-
var
|
|
5588
|
-
$r["%Error.prototype%"] =
|
|
5588
|
+
var tg = Ze(Ze(e));
|
|
5589
|
+
$r["%Error.prototype%"] = tg;
|
|
5589
5590
|
}
|
|
5590
|
-
var
|
|
5591
|
+
var rg = function e(t) {
|
|
5591
5592
|
var r;
|
|
5592
5593
|
if (t === "%AsyncFunction%")
|
|
5593
5594
|
r = aa("async function () {}");
|
|
@@ -5656,21 +5657,21 @@ var tg = function e(t) {
|
|
|
5656
5657
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
5657
5658
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
5658
5659
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
5659
|
-
}, us = ps, ni =
|
|
5660
|
+
}, us = ps, ni = j0(), ng = us.call(cs, Array.prototype.concat), sg = us.call(Jc, Array.prototype.splice), of = us.call(cs, String.prototype.replace), si = us.call(cs, String.prototype.slice), ig = us.call(cs, RegExp.prototype.exec), ag = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, og = /\\(\\)?/g, lg = function(t) {
|
|
5660
5661
|
var r = si(t, 0, 1), i = si(t, -1);
|
|
5661
5662
|
if (r === "%" && i !== "%")
|
|
5662
5663
|
throw new cn("invalid intrinsic syntax, expected closing `%`");
|
|
5663
5664
|
if (i === "%" && r !== "%")
|
|
5664
5665
|
throw new cn("invalid intrinsic syntax, expected opening `%`");
|
|
5665
5666
|
var a = [];
|
|
5666
|
-
return of(t,
|
|
5667
|
-
a[a.length] = o ? of(l,
|
|
5667
|
+
return of(t, ag, function(s, n, o, l) {
|
|
5668
|
+
a[a.length] = o ? of(l, og, "$1") : n || s;
|
|
5668
5669
|
}), a;
|
|
5669
|
-
},
|
|
5670
|
+
}, fg = function(t, r) {
|
|
5670
5671
|
var i = t, a;
|
|
5671
5672
|
if (ni(af, i) && (a = af[i], i = "%" + a[0] + "%"), ni($r, i)) {
|
|
5672
5673
|
var s = $r[i];
|
|
5673
|
-
if (s === Qr && (s =
|
|
5674
|
+
if (s === Qr && (s = rg(i)), typeof s > "u" && !r)
|
|
5674
5675
|
throw new ln("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
5675
5676
|
return {
|
|
5676
5677
|
alias: a,
|
|
@@ -5684,10 +5685,10 @@ var tg = function e(t) {
|
|
|
5684
5685
|
throw new ln("intrinsic name must be a non-empty string");
|
|
5685
5686
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
5686
5687
|
throw new ln('"allowMissing" argument must be a boolean');
|
|
5687
|
-
if (
|
|
5688
|
+
if (ig(/^%?[^%]*%?$/, t) === null)
|
|
5688
5689
|
throw new cn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
5689
|
-
var i =
|
|
5690
|
-
p && (a = p[0],
|
|
5690
|
+
var i = lg(t), a = i.length > 0 ? i[0] : "", s = fg("%" + a + "%", r), n = s.name, o = s.value, l = !1, p = s.alias;
|
|
5691
|
+
p && (a = p[0], sg(i, ng([0, 1], p)));
|
|
5691
5692
|
for (var c = 1, d = !0; c < i.length; c += 1) {
|
|
5692
5693
|
var m = i[c], y = si(m, 0, 1), O = si(m, -1);
|
|
5693
5694
|
if ((y === '"' || y === "'" || y === "`" || O === '"' || O === "'" || O === "`") && y !== O)
|
|
@@ -5709,17 +5710,17 @@ var tg = function e(t) {
|
|
|
5709
5710
|
}
|
|
5710
5711
|
}
|
|
5711
5712
|
return o;
|
|
5712
|
-
}, eu = Qc, tu = Io,
|
|
5713
|
+
}, eu = Qc, tu = Io, pg = tu([eu("%String.prototype.indexOf%")]), ru = function(t, r) {
|
|
5713
5714
|
var i = (
|
|
5714
5715
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
5715
5716
|
eu(t, !!r)
|
|
5716
5717
|
);
|
|
5717
|
-
return typeof i == "function" &&
|
|
5718
|
+
return typeof i == "function" && pg(t, ".prototype.") > -1 ? tu(
|
|
5718
5719
|
/** @type {const} */
|
|
5719
5720
|
[i]
|
|
5720
5721
|
) : i;
|
|
5721
5722
|
}, la, lf;
|
|
5722
|
-
function
|
|
5723
|
+
function cg() {
|
|
5723
5724
|
if (lf) return la;
|
|
5724
5725
|
lf = 1;
|
|
5725
5726
|
var e = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, r, i;
|
|
@@ -5791,10 +5792,10 @@ function pg() {
|
|
|
5791
5792
|
}, la;
|
|
5792
5793
|
}
|
|
5793
5794
|
var fa, ff;
|
|
5794
|
-
function
|
|
5795
|
+
function ug() {
|
|
5795
5796
|
if (ff) return fa;
|
|
5796
5797
|
ff = 1;
|
|
5797
|
-
var e =
|
|
5798
|
+
var e = cg(), t = Object.prototype.toString, r = Object.prototype.hasOwnProperty, i = function(l, p, c) {
|
|
5798
5799
|
for (var d = 0, m = l.length; d < m; d++)
|
|
5799
5800
|
r.call(l, d) && (c == null ? p(l[d], d, l) : p.call(c, l[d], d, l));
|
|
5800
5801
|
}, a = function(l, p, c) {
|
|
@@ -5815,7 +5816,7 @@ function cg() {
|
|
|
5815
5816
|
}, fa;
|
|
5816
5817
|
}
|
|
5817
5818
|
var pa, pf;
|
|
5818
|
-
function
|
|
5819
|
+
function dg() {
|
|
5819
5820
|
return pf || (pf = 1, pa = [
|
|
5820
5821
|
"Float16Array",
|
|
5821
5822
|
"Float32Array",
|
|
@@ -5832,10 +5833,10 @@ function ug() {
|
|
|
5832
5833
|
]), pa;
|
|
5833
5834
|
}
|
|
5834
5835
|
var ca, cf;
|
|
5835
|
-
function
|
|
5836
|
+
function hg() {
|
|
5836
5837
|
if (cf) return ca;
|
|
5837
5838
|
cf = 1;
|
|
5838
|
-
var e =
|
|
5839
|
+
var e = dg(), t = typeof globalThis > "u" ? Np : globalThis;
|
|
5839
5840
|
return ca = function() {
|
|
5840
5841
|
for (var i = [], a = 0; a < e.length; a++)
|
|
5841
5842
|
typeof t[e[a]] == "function" && (i[i.length] = e[a]);
|
|
@@ -5843,7 +5844,7 @@ function dg() {
|
|
|
5843
5844
|
}, ca;
|
|
5844
5845
|
}
|
|
5845
5846
|
var ua = { exports: {} }, da, uf;
|
|
5846
|
-
function
|
|
5847
|
+
function mg() {
|
|
5847
5848
|
if (uf) return da;
|
|
5848
5849
|
uf = 1;
|
|
5849
5850
|
var e = bi, t = zc, r = ls, i = fs;
|
|
@@ -5875,7 +5876,7 @@ function hg() {
|
|
|
5875
5876
|
}, da;
|
|
5876
5877
|
}
|
|
5877
5878
|
var ha, df;
|
|
5878
|
-
function
|
|
5879
|
+
function yg() {
|
|
5879
5880
|
if (df) return ha;
|
|
5880
5881
|
df = 1;
|
|
5881
5882
|
var e = bi, t = function() {
|
|
@@ -5892,10 +5893,10 @@ function mg() {
|
|
|
5892
5893
|
}, ha = t, ha;
|
|
5893
5894
|
}
|
|
5894
5895
|
var ma, hf;
|
|
5895
|
-
function
|
|
5896
|
+
function gg() {
|
|
5896
5897
|
if (hf) return ma;
|
|
5897
5898
|
hf = 1;
|
|
5898
|
-
var e = Qc, t =
|
|
5899
|
+
var e = Qc, t = mg(), r = yg()(), i = fs, a = ls, s = e("%Math.floor%");
|
|
5899
5900
|
return ma = function(o, l) {
|
|
5900
5901
|
if (typeof o != "function")
|
|
5901
5902
|
throw new a("`fn` is not a function");
|
|
@@ -5922,7 +5923,7 @@ function yg() {
|
|
|
5922
5923
|
}, ma;
|
|
5923
5924
|
}
|
|
5924
5925
|
var ya, mf;
|
|
5925
|
-
function
|
|
5926
|
+
function wg() {
|
|
5926
5927
|
if (mf) return ya;
|
|
5927
5928
|
mf = 1;
|
|
5928
5929
|
var e = ps, t = Lo, r = Yc;
|
|
@@ -5931,9 +5932,9 @@ function gg() {
|
|
|
5931
5932
|
}, ya;
|
|
5932
5933
|
}
|
|
5933
5934
|
var yf;
|
|
5934
|
-
function
|
|
5935
|
+
function bg() {
|
|
5935
5936
|
return yf || (yf = 1, function(e) {
|
|
5936
|
-
var t =
|
|
5937
|
+
var t = gg(), r = bi, i = Io, a = wg();
|
|
5937
5938
|
e.exports = function(n) {
|
|
5938
5939
|
var o = i(arguments), l = 1 + n.length - (arguments.length - 1);
|
|
5939
5940
|
return t(
|
|
@@ -5945,7 +5946,7 @@ function wg() {
|
|
|
5945
5946
|
}(ua)), ua.exports;
|
|
5946
5947
|
}
|
|
5947
5948
|
var ga, gf;
|
|
5948
|
-
function
|
|
5949
|
+
function _g() {
|
|
5949
5950
|
if (gf) return ga;
|
|
5950
5951
|
gf = 1;
|
|
5951
5952
|
var e = Vc();
|
|
@@ -5954,10 +5955,10 @@ function bg() {
|
|
|
5954
5955
|
}, ga;
|
|
5955
5956
|
}
|
|
5956
5957
|
var wa, wf;
|
|
5957
|
-
function
|
|
5958
|
+
function vg() {
|
|
5958
5959
|
if (wf) return wa;
|
|
5959
5960
|
wf = 1;
|
|
5960
|
-
var e =
|
|
5961
|
+
var e = ug(), t = hg(), r = bg(), i = ru, a = fs, s = Kc(), n = i("Object.prototype.toString"), o = _g()(), l = typeof globalThis > "u" ? Np : globalThis, p = t(), c = i("String.prototype.slice"), d = i("Array.prototype.indexOf", !0) || function(w, _) {
|
|
5961
5962
|
for (var T = 0; T < w.length; T += 1)
|
|
5962
5963
|
if (w[T] === _)
|
|
5963
5964
|
return T;
|
|
@@ -6035,33 +6036,33 @@ function _g() {
|
|
|
6035
6036
|
}, wa;
|
|
6036
6037
|
}
|
|
6037
6038
|
var ba, bf;
|
|
6038
|
-
function
|
|
6039
|
+
function xg() {
|
|
6039
6040
|
if (bf) return ba;
|
|
6040
6041
|
bf = 1;
|
|
6041
|
-
var e =
|
|
6042
|
+
var e = vg();
|
|
6042
6043
|
return ba = function(r) {
|
|
6043
6044
|
return !!e(r);
|
|
6044
6045
|
}, ba;
|
|
6045
6046
|
}
|
|
6046
|
-
var
|
|
6047
|
-
if (!
|
|
6048
|
-
throw new
|
|
6047
|
+
var kg = ls, Pg = ru, Eg = Pg("TypedArray.prototype.buffer", !0), Sg = xg(), Og = Eg || function(t) {
|
|
6048
|
+
if (!Sg(t))
|
|
6049
|
+
throw new kg("Not a Typed Array");
|
|
6049
6050
|
return t.buffer;
|
|
6050
|
-
}, It = Ro.Buffer,
|
|
6051
|
+
}, It = Ro.Buffer, Tg = t0, Ag = Og, $g = ArrayBuffer.isView || function(t) {
|
|
6051
6052
|
try {
|
|
6052
|
-
return
|
|
6053
|
+
return Ag(t), !0;
|
|
6053
6054
|
} catch {
|
|
6054
6055
|
return !1;
|
|
6055
6056
|
}
|
|
6056
|
-
},
|
|
6057
|
+
}, Rg = typeof Uint8Array < "u", nu = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", Fg = nu && (It.prototype instanceof Uint8Array || It.TYPED_ARRAY_SUPPORT), Lg = function(t, r) {
|
|
6057
6058
|
if (It.isBuffer(t))
|
|
6058
6059
|
return t.constructor && !("isBuffer" in t) ? It.from(t) : t;
|
|
6059
6060
|
if (typeof t == "string")
|
|
6060
6061
|
return It.from(t, r);
|
|
6061
|
-
if (nu &&
|
|
6062
|
+
if (nu && $g(t)) {
|
|
6062
6063
|
if (t.byteLength === 0)
|
|
6063
6064
|
return It.alloc(0);
|
|
6064
|
-
if (
|
|
6065
|
+
if (Fg) {
|
|
6065
6066
|
var i = It.from(t.buffer, t.byteOffset, t.byteLength);
|
|
6066
6067
|
if (i.byteLength === t.byteLength)
|
|
6067
6068
|
return i;
|
|
@@ -6070,9 +6071,9 @@ var xg = ls, kg = ru, Pg = kg("TypedArray.prototype.buffer", !0), Eg = vg(), Sg
|
|
|
6070
6071
|
if (s.length === t.byteLength)
|
|
6071
6072
|
return s;
|
|
6072
6073
|
}
|
|
6073
|
-
if (
|
|
6074
|
+
if (Rg && t instanceof Uint8Array)
|
|
6074
6075
|
return It.from(t);
|
|
6075
|
-
var n =
|
|
6076
|
+
var n = Tg(t);
|
|
6076
6077
|
if (n)
|
|
6077
6078
|
for (var o = 0; o < t.length; o += 1) {
|
|
6078
6079
|
var l = t[o];
|
|
@@ -6082,12 +6083,12 @@ var xg = ls, kg = ru, Pg = kg("TypedArray.prototype.buffer", !0), Eg = vg(), Sg
|
|
|
6082
6083
|
if (n || It.isBuffer(t) && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t))
|
|
6083
6084
|
return It.from(t);
|
|
6084
6085
|
throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
|
|
6085
|
-
},
|
|
6086
|
+
}, Ig = Ro.Buffer, Cg = Lg;
|
|
6086
6087
|
function _i(e, t) {
|
|
6087
|
-
this._block =
|
|
6088
|
+
this._block = Ig.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
|
|
6088
6089
|
}
|
|
6089
6090
|
_i.prototype.update = function(e, t) {
|
|
6090
|
-
e =
|
|
6091
|
+
e = Cg(e, t || "utf8");
|
|
6091
6092
|
for (var r = this._block, i = this._blockSize, a = e.length, s = this._len, n = 0; n < a; ) {
|
|
6092
6093
|
for (var o = s % i, l = Math.min(a - n, i - o), p = 0; p < l; p++)
|
|
6093
6094
|
r[o + p] = e[n + p];
|
|
@@ -6112,49 +6113,49 @@ _i.prototype.digest = function(e) {
|
|
|
6112
6113
|
_i.prototype._update = function() {
|
|
6113
6114
|
throw new Error("_update must be implemented by subclass");
|
|
6114
6115
|
};
|
|
6115
|
-
var
|
|
6116
|
+
var jg = _i, Ng = zy, su = jg, Dg = Ro.Buffer, Ug = [
|
|
6116
6117
|
1518500249,
|
|
6117
6118
|
1859775393,
|
|
6118
6119
|
-1894007588,
|
|
6119
6120
|
-899497514
|
|
6120
|
-
],
|
|
6121
|
+
], Bg = new Array(80);
|
|
6121
6122
|
function ds() {
|
|
6122
|
-
this.init(), this._w =
|
|
6123
|
+
this.init(), this._w = Bg, su.call(this, 64, 56);
|
|
6123
6124
|
}
|
|
6124
|
-
|
|
6125
|
+
Ng(ds, su);
|
|
6125
6126
|
ds.prototype.init = function() {
|
|
6126
6127
|
return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
|
|
6127
6128
|
};
|
|
6128
|
-
function
|
|
6129
|
+
function qg(e) {
|
|
6129
6130
|
return e << 1 | e >>> 31;
|
|
6130
6131
|
}
|
|
6131
|
-
function
|
|
6132
|
+
function Mg(e) {
|
|
6132
6133
|
return e << 5 | e >>> 27;
|
|
6133
6134
|
}
|
|
6134
|
-
function
|
|
6135
|
+
function Wg(e) {
|
|
6135
6136
|
return e << 30 | e >>> 2;
|
|
6136
6137
|
}
|
|
6137
|
-
function
|
|
6138
|
+
function Hg(e, t, r, i) {
|
|
6138
6139
|
return e === 0 ? t & r | ~t & i : e === 2 ? t & r | t & i | r & i : t ^ r ^ i;
|
|
6139
6140
|
}
|
|
6140
6141
|
ds.prototype._update = function(e) {
|
|
6141
6142
|
for (var t = this._w, r = this._a | 0, i = this._b | 0, a = this._c | 0, s = this._d | 0, n = this._e | 0, o = 0; o < 16; ++o)
|
|
6142
6143
|
t[o] = e.readInt32BE(o * 4);
|
|
6143
6144
|
for (; o < 80; ++o)
|
|
6144
|
-
t[o] =
|
|
6145
|
+
t[o] = qg(t[o - 3] ^ t[o - 8] ^ t[o - 14] ^ t[o - 16]);
|
|
6145
6146
|
for (var l = 0; l < 80; ++l) {
|
|
6146
|
-
var p = ~~(l / 20), c =
|
|
6147
|
-
n = s, s = a, a =
|
|
6147
|
+
var p = ~~(l / 20), c = Mg(r) + Hg(p, i, a, s) + n + t[l] + Ug[p] | 0;
|
|
6148
|
+
n = s, s = a, a = Wg(i), i = r, r = c;
|
|
6148
6149
|
}
|
|
6149
6150
|
this._a = r + this._a | 0, this._b = i + this._b | 0, this._c = a + this._c | 0, this._d = s + this._d | 0, this._e = n + this._e | 0;
|
|
6150
6151
|
};
|
|
6151
6152
|
ds.prototype._hash = function() {
|
|
6152
|
-
var e =
|
|
6153
|
+
var e = Dg.allocUnsafe(20);
|
|
6153
6154
|
return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
|
|
6154
6155
|
};
|
|
6155
|
-
var
|
|
6156
|
-
const
|
|
6157
|
-
function
|
|
6156
|
+
var zg = ds;
|
|
6157
|
+
const Vg = /* @__PURE__ */ uo(zg);
|
|
6158
|
+
function Zg(e) {
|
|
6158
6159
|
let t = "";
|
|
6159
6160
|
for (const r of new Uint8Array(e))
|
|
6160
6161
|
r < 16 && (t += "0"), t += r.toString(16);
|
|
@@ -6162,23 +6163,23 @@ function Vg(e) {
|
|
|
6162
6163
|
}
|
|
6163
6164
|
let _a = null;
|
|
6164
6165
|
async function ii(e) {
|
|
6165
|
-
return _a === null && (_a = await
|
|
6166
|
+
return _a === null && (_a = await Yg()), _a ? iu(e) : Gg(e);
|
|
6166
6167
|
}
|
|
6167
|
-
function
|
|
6168
|
-
return new
|
|
6168
|
+
function Gg(e) {
|
|
6169
|
+
return new Vg().update(e).digest("hex");
|
|
6169
6170
|
}
|
|
6170
6171
|
async function iu(e) {
|
|
6171
6172
|
const t = await crypto.subtle.digest("SHA-1", e);
|
|
6172
|
-
return
|
|
6173
|
+
return Zg(t);
|
|
6173
6174
|
}
|
|
6174
|
-
async function
|
|
6175
|
+
async function Yg() {
|
|
6175
6176
|
try {
|
|
6176
6177
|
if (await iu(new Uint8Array([])) === "da39a3ee5e6b4b0d3255bfef95601890afd80709") return !0;
|
|
6177
6178
|
} catch {
|
|
6178
6179
|
}
|
|
6179
6180
|
return !1;
|
|
6180
6181
|
}
|
|
6181
|
-
function
|
|
6182
|
+
function Kg(e) {
|
|
6182
6183
|
const t = [];
|
|
6183
6184
|
let r = 0, i = 0;
|
|
6184
6185
|
do {
|
|
@@ -6188,7 +6189,7 @@ function Yg(e) {
|
|
|
6188
6189
|
} while (i);
|
|
6189
6190
|
return t.reduce((a, s) => a + 1 << 7 | s, -1);
|
|
6190
6191
|
}
|
|
6191
|
-
function
|
|
6192
|
+
function Xg(e, t) {
|
|
6192
6193
|
let r = t, i = 4, a = null;
|
|
6193
6194
|
do
|
|
6194
6195
|
a = e.readUInt8(), r |= (a & 127) << i, i += 7;
|
|
@@ -6241,7 +6242,7 @@ class un {
|
|
|
6241
6242
|
7: "ref-delta"
|
|
6242
6243
|
}, s = {}, n = t.slice(-20).toString("hex"), o = [], l = {}, p = /* @__PURE__ */ new Map();
|
|
6243
6244
|
let c = null, d = null;
|
|
6244
|
-
await
|
|
6245
|
+
await My([t], async ({ data: w, type: _, reference: T, offset: E, num: I }) => {
|
|
6245
6246
|
c === null && (c = I);
|
|
6246
6247
|
const $ = Math.floor(
|
|
6247
6248
|
(c - I) * 100 / c
|
|
@@ -6263,7 +6264,7 @@ class un {
|
|
|
6263
6264
|
});
|
|
6264
6265
|
const m = Object.keys(s).map(Number);
|
|
6265
6266
|
for (const [w, _] of m.entries()) {
|
|
6266
|
-
const T = w + 1 === m.length ? t.byteLength - 20 : m[w + 1], E = s[_], I =
|
|
6267
|
+
const T = w + 1 === m.length ? t.byteLength - 20 : m[w + 1], E = s[_], I = Zh.buf(t.slice(_, T)) >>> 0;
|
|
6267
6268
|
E.end = T, E.crc = I;
|
|
6268
6269
|
}
|
|
6269
6270
|
const y = new un({
|
|
@@ -6291,7 +6292,7 @@ class un {
|
|
|
6291
6292
|
y.readDepth = 0, y.externalReadDepth = 0;
|
|
6292
6293
|
const { type: E, object: I } = await y.readSlice({ start: w });
|
|
6293
6294
|
g[y.readDepth] += 1;
|
|
6294
|
-
const $ = await ii(
|
|
6295
|
+
const $ = await ii(Gh.wrap({ type: E, object: I }));
|
|
6295
6296
|
T.oid = $, o.push($), p.set($, w), l[$] = T.crc;
|
|
6296
6297
|
} catch {
|
|
6297
6298
|
continue;
|
|
@@ -6362,10 +6363,10 @@ class un {
|
|
|
6362
6363
|
throw new Ee("Unrecognized type: 0b" + n.toString(2));
|
|
6363
6364
|
const l = s & 15;
|
|
6364
6365
|
let p = l;
|
|
6365
|
-
s & 128 && (p =
|
|
6366
|
+
s & 128 && (p = Xg(a, l));
|
|
6366
6367
|
let d = null, m = null;
|
|
6367
6368
|
if (o === "ofs_delta") {
|
|
6368
|
-
const O =
|
|
6369
|
+
const O = Kg(a), g = t - O;
|
|
6369
6370
|
({ object: d, type: o } = await this.readSlice({ start: g }));
|
|
6370
6371
|
}
|
|
6371
6372
|
if (o === "ref_delta") {
|
|
@@ -6373,11 +6374,11 @@ class un {
|
|
|
6373
6374
|
({ object: d, type: o } = await this.read({ oid: O }));
|
|
6374
6375
|
}
|
|
6375
6376
|
const y = i.slice(a.tell());
|
|
6376
|
-
if (m = Buffer.from(await
|
|
6377
|
+
if (m = Buffer.from(await Hy(y)), m.byteLength !== p)
|
|
6377
6378
|
throw new Ee(
|
|
6378
6379
|
`Packfile told us object would have length ${p} but it had length ${m.byteLength}`
|
|
6379
6380
|
);
|
|
6380
|
-
return d && (m = Buffer.from(
|
|
6381
|
+
return d && (m = Buffer.from(Yh(m, d))), this.readDepth > 3 && (this.offsetCache[t] = { type: o, object: m }), { type: o, format: "content", object: m };
|
|
6381
6382
|
}
|
|
6382
6383
|
}
|
|
6383
6384
|
class Vn extends hn {
|
|
@@ -6403,7 +6404,7 @@ class vi extends hn {
|
|
|
6403
6404
|
}
|
|
6404
6405
|
}
|
|
6405
6406
|
vi.code = "ObjectTypeError";
|
|
6406
|
-
function
|
|
6407
|
+
function Jg(e) {
|
|
6407
6408
|
let t = e > 0 ? e >> 12 : 0;
|
|
6408
6409
|
t !== 4 && t !== 8 && t !== 10 && t !== 14 && (t = 8);
|
|
6409
6410
|
let r = e & 511;
|
|
@@ -6436,7 +6437,7 @@ function vf(e) {
|
|
|
6436
6437
|
mtimeNanoseconds: a % Wt,
|
|
6437
6438
|
dev: e.dev % Wt,
|
|
6438
6439
|
ino: e.ino % Wt,
|
|
6439
|
-
mode:
|
|
6440
|
+
mode: Jg(e.mode % Wt),
|
|
6440
6441
|
uid: e.uid % Wt,
|
|
6441
6442
|
gid: e.gid % Wt,
|
|
6442
6443
|
// size of -1 happens over a BrowserFS HTTP Backend that doesn't serve Content-Length headers
|
|
@@ -6444,7 +6445,7 @@ function vf(e) {
|
|
|
6444
6445
|
size: e.size > -1 ? e.size % Wt : 0
|
|
6445
6446
|
};
|
|
6446
6447
|
}
|
|
6447
|
-
function
|
|
6448
|
+
function Qg(e) {
|
|
6448
6449
|
return {
|
|
6449
6450
|
assumeValid: !!(e & 32768),
|
|
6450
6451
|
extended: !!(e & 16384),
|
|
@@ -6452,7 +6453,7 @@ function Jg(e) {
|
|
|
6452
6453
|
nameLength: e & 4095
|
|
6453
6454
|
};
|
|
6454
6455
|
}
|
|
6455
|
-
function
|
|
6456
|
+
function ew(e) {
|
|
6456
6457
|
const t = e.flags;
|
|
6457
6458
|
return t.extended = !1, t.nameLength = Math.min(Buffer.from(e.path).length, 4095), (t.assumeValid ? 32768 : 0) + (t.extended ? 16384 : 0) + ((t.stage & 3) << 12) + (t.nameLength & 4095);
|
|
6458
6459
|
}
|
|
@@ -6499,7 +6500,7 @@ class Sr {
|
|
|
6499
6500
|
const c = {};
|
|
6500
6501
|
c.ctimeSeconds = i.readUInt32BE(), c.ctimeNanoseconds = i.readUInt32BE(), c.mtimeSeconds = i.readUInt32BE(), c.mtimeNanoseconds = i.readUInt32BE(), c.dev = i.readUInt32BE(), c.ino = i.readUInt32BE(), c.mode = i.readUInt32BE(), c.uid = i.readUInt32BE(), c.gid = i.readUInt32BE(), c.size = i.readUInt32BE(), c.oid = i.slice(20).toString("hex");
|
|
6501
6502
|
const d = i.readUInt16BE();
|
|
6502
|
-
c.flags =
|
|
6503
|
+
c.flags = Qg(d);
|
|
6503
6504
|
const m = t.indexOf(0, i.tell() + 1) - i.tell();
|
|
6504
6505
|
if (m < 1)
|
|
6505
6506
|
throw new Ee(`Got a path length of: ${m}`);
|
|
@@ -6594,7 +6595,7 @@ class Sr {
|
|
|
6594
6595
|
}
|
|
6595
6596
|
static async _entryToBuffer(t) {
|
|
6596
6597
|
const r = Buffer.from(t.path), i = Math.ceil((62 + r.length + 1) / 8) * 8, a = Buffer.alloc(i), s = new Zt(a), n = vf(t);
|
|
6597
|
-
return s.writeUInt32BE(n.ctimeSeconds), s.writeUInt32BE(n.ctimeNanoseconds), s.writeUInt32BE(n.mtimeSeconds), s.writeUInt32BE(n.mtimeNanoseconds), s.writeUInt32BE(n.dev), s.writeUInt32BE(n.ino), s.writeUInt32BE(n.mode), s.writeUInt32BE(n.uid), s.writeUInt32BE(n.gid), s.writeUInt32BE(n.size), s.write(t.oid, 20, "hex"), s.writeUInt16BE(
|
|
6598
|
+
return s.writeUInt32BE(n.ctimeSeconds), s.writeUInt32BE(n.ctimeNanoseconds), s.writeUInt32BE(n.mtimeSeconds), s.writeUInt32BE(n.mtimeNanoseconds), s.writeUInt32BE(n.dev), s.writeUInt32BE(n.ino), s.writeUInt32BE(n.mode), s.writeUInt32BE(n.uid), s.writeUInt32BE(n.gid), s.writeUInt32BE(n.size), s.write(t.oid, 20, "hex"), s.writeUInt16BE(ew(t)), s.write(t.path, r.length, "utf8"), a;
|
|
6598
6599
|
}
|
|
6599
6600
|
async toObject() {
|
|
6600
6601
|
const t = Buffer.alloc(12), r = new Zt(t);
|
|
@@ -6665,7 +6666,7 @@ class va {
|
|
|
6665
6666
|
});
|
|
6666
6667
|
}
|
|
6667
6668
|
}
|
|
6668
|
-
class
|
|
6669
|
+
class tw {
|
|
6669
6670
|
static demux(t) {
|
|
6670
6671
|
const r = Ke.streamReader(t), i = new va(), a = new va(), s = new va(), n = async function() {
|
|
6671
6672
|
const o = await r();
|
|
@@ -6768,7 +6769,7 @@ class ew {
|
|
|
6768
6769
|
// }
|
|
6769
6770
|
}
|
|
6770
6771
|
async function ou(e) {
|
|
6771
|
-
const { packetlines: t, packfile: r, progress: i } =
|
|
6772
|
+
const { packetlines: t, packfile: r, progress: i } = tw.demux(e), a = [], s = [], n = [];
|
|
6772
6773
|
let o = !1, l = !1;
|
|
6773
6774
|
return new Promise((p, c) => {
|
|
6774
6775
|
au(t, (d) => {
|
|
@@ -6797,12 +6798,12 @@ class Gn extends Error {
|
|
|
6797
6798
|
), this.name = "GitAuthenticationError", this.repoUrl = t, this.status = r;
|
|
6798
6799
|
}
|
|
6799
6800
|
}
|
|
6800
|
-
async function
|
|
6801
|
+
async function rw(e, t, r, i) {
|
|
6801
6802
|
const a = (i == null ? void 0 : i.additionalHeaders) || {}, s = await fu(
|
|
6802
6803
|
e,
|
|
6803
6804
|
t,
|
|
6804
6805
|
a
|
|
6805
|
-
), n = await
|
|
6806
|
+
), n = await fw(s.idx, t, r), o = r.map((y) => n[y].oid), l = o.length > 0 ? await pw(e, o, a) : null, p = {};
|
|
6806
6807
|
if (await Promise.all(
|
|
6807
6808
|
r.map(async (y) => {
|
|
6808
6809
|
l && (p[y] = await pu(
|
|
@@ -6840,17 +6841,17 @@ async function tw(e, t, r, i) {
|
|
|
6840
6841
|
fileOids: m
|
|
6841
6842
|
};
|
|
6842
6843
|
}
|
|
6843
|
-
const
|
|
6844
|
-
async function
|
|
6844
|
+
const nw = /^[0-9a-f]{40}$/i;
|
|
6845
|
+
async function sw(e, t, r = {}) {
|
|
6845
6846
|
const i = await fu(
|
|
6846
6847
|
e,
|
|
6847
6848
|
t,
|
|
6848
6849
|
r
|
|
6849
|
-
), a = await
|
|
6850
|
+
), a = await lw(i.idx, t);
|
|
6850
6851
|
return a != null && a.object ? lu(a) : [];
|
|
6851
6852
|
}
|
|
6852
|
-
async function
|
|
6853
|
-
const i = await
|
|
6853
|
+
async function iw(e, t, r = {}) {
|
|
6854
|
+
const i = await ow(e, t);
|
|
6854
6855
|
if (i.resolvedOid)
|
|
6855
6856
|
return i.resolvedOid;
|
|
6856
6857
|
const a = await to(e, i.refname, r);
|
|
@@ -6873,7 +6874,7 @@ function lu(e) {
|
|
|
6873
6874
|
};
|
|
6874
6875
|
}).filter((t) => !!(t != null && t.name));
|
|
6875
6876
|
}
|
|
6876
|
-
async function
|
|
6877
|
+
async function aw(e, t, r = {}) {
|
|
6877
6878
|
const i = Buffer.from(
|
|
6878
6879
|
await Zn([
|
|
6879
6880
|
Ke.encode(`command=ls-refs
|
|
@@ -6905,13 +6906,13 @@ async function iw(e, t, r = {}) {
|
|
|
6905
6906
|
`Failed to fetch git refs from ${e}: ${a.status} ${a.statusText}`
|
|
6906
6907
|
);
|
|
6907
6908
|
const s = {};
|
|
6908
|
-
for await (const n of
|
|
6909
|
+
for await (const n of cw(a)) {
|
|
6909
6910
|
const o = n.indexOf(" "), l = n.slice(0, o), c = n.slice(o + 1, n.length - 1).split(" ")[0];
|
|
6910
6911
|
s[c] = l;
|
|
6911
6912
|
}
|
|
6912
6913
|
return s;
|
|
6913
6914
|
}
|
|
6914
|
-
async function
|
|
6915
|
+
async function ow(e, t) {
|
|
6915
6916
|
switch (t.type ?? "infer") {
|
|
6916
6917
|
case "commit":
|
|
6917
6918
|
return {
|
|
@@ -6946,7 +6947,7 @@ async function aw(e, t) {
|
|
|
6946
6947
|
kind: "refname",
|
|
6947
6948
|
refname: i
|
|
6948
6949
|
};
|
|
6949
|
-
if (
|
|
6950
|
+
if (nw.test(i))
|
|
6950
6951
|
return {
|
|
6951
6952
|
kind: "commit",
|
|
6952
6953
|
refname: i,
|
|
@@ -6973,7 +6974,7 @@ async function aw(e, t) {
|
|
|
6973
6974
|
}
|
|
6974
6975
|
}
|
|
6975
6976
|
async function to(e, t, r) {
|
|
6976
|
-
const i = await
|
|
6977
|
+
const i = await aw(e, t, r), a = [t, `${t}^{}`];
|
|
6977
6978
|
for (const s of a) {
|
|
6978
6979
|
const n = s.trim();
|
|
6979
6980
|
if (n in i)
|
|
@@ -7026,7 +7027,7 @@ async function fu(e, t, r) {
|
|
|
7026
7027
|
promisor: !0
|
|
7027
7028
|
};
|
|
7028
7029
|
}
|
|
7029
|
-
async function
|
|
7030
|
+
async function lw(e, t) {
|
|
7030
7031
|
const r = await e.read({
|
|
7031
7032
|
oid: t
|
|
7032
7033
|
});
|
|
@@ -7059,7 +7060,7 @@ async function xf(e) {
|
|
|
7059
7060
|
}
|
|
7060
7061
|
return t;
|
|
7061
7062
|
}
|
|
7062
|
-
async function
|
|
7063
|
+
async function fw(e, t, r) {
|
|
7063
7064
|
const i = await e.read({
|
|
7064
7065
|
oid: t
|
|
7065
7066
|
});
|
|
@@ -7091,7 +7092,7 @@ async function lw(e, t, r) {
|
|
|
7091
7092
|
}
|
|
7092
7093
|
return s;
|
|
7093
7094
|
}
|
|
7094
|
-
async function
|
|
7095
|
+
async function pw(e, t, r) {
|
|
7095
7096
|
const i = Buffer.from(
|
|
7096
7097
|
await Zn([
|
|
7097
7098
|
...t.map(
|
|
@@ -7168,7 +7169,7 @@ function Rr(e) {
|
|
|
7168
7169
|
);
|
|
7169
7170
|
}
|
|
7170
7171
|
}
|
|
7171
|
-
async function*
|
|
7172
|
+
async function* cw(e) {
|
|
7172
7173
|
const t = await e.text();
|
|
7173
7174
|
let r = 0;
|
|
7174
7175
|
for (; r <= t.length; ) {
|
|
@@ -7197,8 +7198,8 @@ function cu(e) {
|
|
|
7197
7198
|
function Yn(e) {
|
|
7198
7199
|
return e instanceof Uint8Array, Uint8Array.from(e);
|
|
7199
7200
|
}
|
|
7200
|
-
const
|
|
7201
|
-
async function
|
|
7201
|
+
const uw = To.deflate, dw = /^[0-9a-f]{40}$/i;
|
|
7202
|
+
async function hw(e) {
|
|
7202
7203
|
const t = {}, r = new TextEncoder();
|
|
7203
7204
|
return await Promise.all(
|
|
7204
7205
|
e.map(async ({ oid: i, type: a, body: s }) => {
|
|
@@ -7206,12 +7207,12 @@ async function dw(e) {
|
|
|
7206
7207
|
return;
|
|
7207
7208
|
const n = r.encode(`${a} ${s.length}\0`), o = new Uint8Array(n.length + s.length);
|
|
7208
7209
|
o.set(n, 0), o.set(s, n.length);
|
|
7209
|
-
const l = await
|
|
7210
|
+
const l = await uw(o), p = i.slice(0, 2), c = i.slice(2);
|
|
7210
7211
|
t[`.git/objects/${p}/${c}`] = l;
|
|
7211
7212
|
})
|
|
7212
7213
|
), t;
|
|
7213
7214
|
}
|
|
7214
|
-
function
|
|
7215
|
+
function mw(e, t, r) {
|
|
7215
7216
|
const i = (e == null ? void 0 : e.trim()) ?? "";
|
|
7216
7217
|
let a = null;
|
|
7217
7218
|
switch (t) {
|
|
@@ -7228,7 +7229,7 @@ function hw(e, t, r) {
|
|
|
7228
7229
|
a = null;
|
|
7229
7230
|
break;
|
|
7230
7231
|
default:
|
|
7231
|
-
i.startsWith("refs/") ? a = i :
|
|
7232
|
+
i.startsWith("refs/") ? a = i : dw.test(i) ? a = null : i && i !== "HEAD" && (a = `refs/heads/${i}`);
|
|
7232
7233
|
break;
|
|
7233
7234
|
}
|
|
7234
7235
|
const s = a ? `ref: ${a}
|
|
@@ -7241,7 +7242,7 @@ function hw(e, t, r) {
|
|
|
7241
7242
|
tagName: p
|
|
7242
7243
|
};
|
|
7243
7244
|
}
|
|
7244
|
-
function
|
|
7245
|
+
function yw(e, {
|
|
7245
7246
|
branchName: t,
|
|
7246
7247
|
partialCloneFilter: r
|
|
7247
7248
|
}) {
|
|
@@ -7266,7 +7267,7 @@ function mw(e, {
|
|
|
7266
7267
|
`) + `
|
|
7267
7268
|
`;
|
|
7268
7269
|
}
|
|
7269
|
-
async function
|
|
7270
|
+
async function gw({
|
|
7270
7271
|
repoUrl: e,
|
|
7271
7272
|
commitHash: t,
|
|
7272
7273
|
ref: r,
|
|
@@ -7275,8 +7276,8 @@ async function yw({
|
|
|
7275
7276
|
fileOids: s,
|
|
7276
7277
|
pathPrefix: n
|
|
7277
7278
|
}) {
|
|
7278
|
-
const o = {}, l =
|
|
7279
|
-
o[".git/HEAD"] = l.headContent, o[".git/config"] =
|
|
7279
|
+
const o = {}, l = mw(r, i, t);
|
|
7280
|
+
o[".git/HEAD"] = l.headContent, o[".git/config"] = yw(e, {
|
|
7280
7281
|
branchName: l.branchName
|
|
7281
7282
|
}), o[".git/description"] = `WordPress Playground clone
|
|
7282
7283
|
`, o[".git/shallow"] = `${t}
|
|
@@ -7285,7 +7286,7 @@ async function yw({
|
|
|
7285
7286
|
`, o[`.git/refs/remotes/origin/${l.branchName}`] = `${t}
|
|
7286
7287
|
`, o[".git/refs/remotes/origin/HEAD"] = `ref: refs/remotes/origin/${l.branchName}
|
|
7287
7288
|
`), l.tagName && (o[`.git/refs/tags/${l.tagName}`] = `${t}
|
|
7288
|
-
`), Object.assign(o, await
|
|
7289
|
+
`), Object.assign(o, await hw(a));
|
|
7289
7290
|
const p = new Sr();
|
|
7290
7291
|
for (const [d, m] of Object.entries(s)) {
|
|
7291
7292
|
const y = d.substring(n.length).replace(/^\/+/, "");
|
|
@@ -7310,7 +7311,7 @@ async function yw({
|
|
|
7310
7311
|
const c = await p.toObject();
|
|
7311
7312
|
return o[".git/index"] = Uint8Array.from(c), o;
|
|
7312
7313
|
}
|
|
7313
|
-
function
|
|
7314
|
+
function ww(e, t) {
|
|
7314
7315
|
t = qr(t);
|
|
7315
7316
|
const r = ["", ".", "/"].includes(t);
|
|
7316
7317
|
let i = e;
|
|
@@ -7340,7 +7341,7 @@ function gw(e, t) {
|
|
|
7340
7341
|
}
|
|
7341
7342
|
return a;
|
|
7342
7343
|
}
|
|
7343
|
-
const Kn = 15, ro = 30, no = 19,
|
|
7344
|
+
const Kn = 15, ro = 30, no = 19, bw = 29, ai = 256, Co = ai + 1 + bw, kf = 2 * Co + 1, xn = 256, _w = 7, Pf = 16, Ef = 17, Sf = 18, xa = 8 * 2, oi = -1, vw = 1, Ps = 2, xw = 0, en = 0, Of = 1, kw = 3, ct = 4, Ct = 0, uu = 1, Es = 2, Nt = -2, Pw = -3, Yr = -5;
|
|
7344
7345
|
function xi(e) {
|
|
7345
7346
|
return ki(e.map(([t, r]) => new Array(t).fill(r, 0, t)));
|
|
7346
7347
|
}
|
|
@@ -7494,7 +7495,7 @@ function Je(e, t, r, i, a) {
|
|
|
7494
7495
|
const s = this;
|
|
7495
7496
|
s.static_tree = e, s.extra_bits = t, s.extra_base = r, s.elems = i, s.max_length = a;
|
|
7496
7497
|
}
|
|
7497
|
-
const
|
|
7498
|
+
const Ew = [
|
|
7498
7499
|
12,
|
|
7499
7500
|
140,
|
|
7500
7501
|
76,
|
|
@@ -7783,14 +7784,14 @@ const Pw = [
|
|
|
7783
7784
|
163,
|
|
7784
7785
|
99,
|
|
7785
7786
|
227
|
|
7786
|
-
],
|
|
7787
|
-
Je.static_ltree = ki(
|
|
7788
|
-
const
|
|
7789
|
-
Je.static_dtree = ki(
|
|
7787
|
+
], Sw = xi([[144, 8], [112, 9], [24, 7], [8, 8]]);
|
|
7788
|
+
Je.static_ltree = ki(Ew.map((e, t) => [e, Sw[t]]));
|
|
7789
|
+
const Ow = [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], Tw = xi([[30, 5]]);
|
|
7790
|
+
Je.static_dtree = ki(Ow.map((e, t) => [e, Tw[t]]));
|
|
7790
7791
|
Je.static_l_desc = new Je(Je.static_ltree, Fe.extra_lbits, ai + 1, Co, Kn);
|
|
7791
7792
|
Je.static_d_desc = new Je(Je.static_dtree, Fe.extra_dbits, 0, ro, Kn);
|
|
7792
|
-
Je.static_bl_desc = new Je(null, Fe.extra_blbits, 0, no,
|
|
7793
|
-
const
|
|
7793
|
+
Je.static_bl_desc = new Je(null, Fe.extra_blbits, 0, no, _w);
|
|
7794
|
+
const Aw = 9, $w = 8;
|
|
7794
7795
|
function Ht(e, t, r, i, a) {
|
|
7795
7796
|
const s = this;
|
|
7796
7797
|
s.good_length = e, s.max_lazy = t, s.nice_length = r, s.max_chain = i, s.func = a;
|
|
@@ -7827,12 +7828,12 @@ const du = 0, Ws = 1, Pr = 2, Lt = [
|
|
|
7827
7828
|
"",
|
|
7828
7829
|
// Z_VERSION_ERROR (-6)
|
|
7829
7830
|
""
|
|
7830
|
-
], St = 0, Os = 1, kn = 2, Ts = 3,
|
|
7831
|
+
], St = 0, Os = 1, kn = 2, Ts = 3, Rw = 32, ka = 42, As = 113, Pn = 666, Pa = 8, Fw = 0, Ea = 1, Lw = 2, Ne = 3, Hs = 258, wt = Hs + Ne + 1;
|
|
7831
7832
|
function Af(e, t, r, i) {
|
|
7832
7833
|
const a = e[t * 2], s = e[r * 2];
|
|
7833
7834
|
return a < s || a == s && i[t] <= i[r];
|
|
7834
7835
|
}
|
|
7835
|
-
function
|
|
7836
|
+
function Iw() {
|
|
7836
7837
|
const e = this;
|
|
7837
7838
|
let t, r, i, a, s, n, o, l, p, c, d, m, y, O, g, w, _, T, E, I, $, L, C, b, F, k, S, j, R, D, V, B, Y;
|
|
7838
7839
|
const G = new Fe(), te = new Fe(), z = new Fe();
|
|
@@ -7944,11 +7945,11 @@ function Lw() {
|
|
|
7944
7945
|
pe(), fe = 8, Ce(K), Ce(~K), e.pending_buf.set(l.subarray(M, M + K), e.pending), e.pending += K;
|
|
7945
7946
|
}
|
|
7946
7947
|
function he(M, K, W) {
|
|
7947
|
-
Re((
|
|
7948
|
+
Re((Fw << 1) + (W ? 1 : 0), 3), we(M, K);
|
|
7948
7949
|
}
|
|
7949
7950
|
function De(M, K, W) {
|
|
7950
7951
|
let Q, se, le = 0;
|
|
7951
|
-
S > 0 ? (G.build_tree(e), te.build_tree(e), le = Et(), Q = e.opt_len + 3 + 7 >>> 3, se = e.static_len + 3 + 7 >>> 3, se <= Q && (Q = se)) : Q = se = K + 5, K + 4 <= Q && M != -1 ? he(M, K, W) : se == Q ? (Re((Ea << 1) + (W ? 1 : 0), 3), J(Je.static_ltree, Je.static_dtree)) : (Re((
|
|
7952
|
+
S > 0 ? (G.build_tree(e), te.build_tree(e), le = Et(), Q = e.opt_len + 3 + 7 >>> 3, se = e.static_len + 3 + 7 >>> 3, se <= Q && (Q = se)) : Q = se = K + 5, K + 4 <= Q && M != -1 ? he(M, K, W) : se == Q ? (Re((Ea << 1) + (W ? 1 : 0), 3), J(Je.static_ltree, Je.static_dtree)) : (Re((Lw << 1) + (W ? 1 : 0), 3), h(G.max_code + 1, te.max_code + 1, le + 1), J(V, B)), Te(), W && pe();
|
|
7952
7953
|
}
|
|
7953
7954
|
function ue(M) {
|
|
7954
7955
|
De(_ >= 0 ? _ : -1, $ - _, M), _ = $, t.flush_pending();
|
|
@@ -8046,7 +8047,7 @@ function Lw() {
|
|
|
8046
8047
|
if (C === 0)
|
|
8047
8048
|
break;
|
|
8048
8049
|
}
|
|
8049
|
-
if (C >= Ne && (m = (m << w ^ l[$ + (Ne - 1)] & 255) & g, K = d[m] & 65535, c[$ & o] = d[m], d[m] = $), b = T, E = L, T = Ne - 1, K !== 0 && b < k && ($ - K & 65535) <= s - wt && (j != Ps && (T = Ft(K)), T <= 5 && (j ==
|
|
8050
|
+
if (C >= Ne && (m = (m << w ^ l[$ + (Ne - 1)] & 255) & g, K = d[m] & 65535, c[$ & o] = d[m], d[m] = $), b = T, E = L, T = Ne - 1, K !== 0 && b < k && ($ - K & 65535) <= s - wt && (j != Ps && (T = Ft(K)), T <= 5 && (j == vw || T == Ne && $ - L > 4096) && (T = Ne - 1)), b >= Ne && T <= b) {
|
|
8050
8051
|
Q = $ + C - Ne, W = H($ - 1 - E, b - Ne), C -= b - 1, b -= 2;
|
|
8051
8052
|
do
|
|
8052
8053
|
++$ <= Q && (m = (m << w ^ l[$ + (Ne - 1)] & 255) & g, K = d[m] & 65535, c[$ & o] = d[m], d[m] = $);
|
|
@@ -8065,9 +8066,9 @@ function Lw() {
|
|
|
8065
8066
|
return M.total_in = M.total_out = 0, M.msg = null, e.pending = 0, e.pending_out = 0, r = As, a = en, Xe(), Ae(), Ct;
|
|
8066
8067
|
}
|
|
8067
8068
|
e.deflateInit = function(M, K, W, Q, se, le) {
|
|
8068
|
-
return Q || (Q = Pa), se || (se =
|
|
8069
|
+
return Q || (Q = Pa), se || (se = $w), le || (le = xw), M.msg = null, K == oi && (K = 6), se < 1 || se > Aw || Q != Pa || W < 9 || W > 15 || K < 0 || K > 9 || le < 0 || le > Ps ? Nt : (M.dstate = e, n = W, s = 1 << n, o = s - 1, O = se + 7, y = 1 << O, g = y - 1, w = Math.floor((O + Ne - 1) / Ne), l = new Uint8Array(s * 2), c = [], d = [], X = 1 << se + 6, e.pending_buf = new Uint8Array(X * 4), i = X * 4, e.dist_buf = new Uint16Array(X), e.lc_buf = new Uint8Array(X), S = K, j = le, Hr(M));
|
|
8069
8070
|
}, e.deflateEnd = function() {
|
|
8070
|
-
return r != ka && r != As && r != Pn ? Nt : (e.lc_buf = null, e.dist_buf = null, e.pending_buf = null, d = null, c = null, l = null, e.dstate = null, r == As ?
|
|
8071
|
+
return r != ka && r != As && r != Pn ? Nt : (e.lc_buf = null, e.dist_buf = null, e.pending_buf = null, d = null, c = null, l = null, e.dstate = null, r == As ? Pw : Ct);
|
|
8071
8072
|
}, e.deflateParams = function(M, K, W) {
|
|
8072
8073
|
let Q = Ct;
|
|
8073
8074
|
return K == oi && (K = 6), K < 0 || K > 9 || W < 0 || W > Ps ? Nt : (Lt[S].func != Lt[K].func && M.total_in !== 0 && (Q = M.deflate(Of)), S != K && (S = K, k = Lt[S].max_lazy, R = Lt[S].good_length, D = Lt[S].nice_length, F = Lt[S].max_chain), j = W, Q);
|
|
@@ -8088,7 +8089,7 @@ function Lw() {
|
|
|
8088
8089
|
return M.msg = Ss[Es - Nt], Nt;
|
|
8089
8090
|
if (M.avail_out === 0)
|
|
8090
8091
|
return M.msg = Ss[Es - Yr], Yr;
|
|
8091
|
-
if (t = M, le = a, a = K, r == ka && (Q = Pa + (n - 8 << 4) << 8, se = (S - 1 & 255) >> 1, se > 3 && (se = 3), Q |= se << 6, $ !== 0 && (Q |=
|
|
8092
|
+
if (t = M, le = a, a = K, r == ka && (Q = Pa + (n - 8 << 4) << 8, se = (S - 1 & 255) >> 1, se > 3 && (se = 3), Q |= se << 6, $ !== 0 && (Q |= Rw), Q += 31 - Q % 31, r = As, pt(Q)), e.pending !== 0) {
|
|
8092
8093
|
if (t.flush_pending(), t.avail_out === 0)
|
|
8093
8094
|
return a = -1, Ct;
|
|
8094
8095
|
} else if (t.avail_in === 0 && K <= le && K != ct)
|
|
@@ -8112,7 +8113,7 @@ function Lw() {
|
|
|
8112
8113
|
if (de == Os) {
|
|
8113
8114
|
if (K == Of)
|
|
8114
8115
|
U();
|
|
8115
|
-
else if (he(0, 0, !1), K ==
|
|
8116
|
+
else if (he(0, 0, !1), K == kw)
|
|
8116
8117
|
for (W = 0; W < y; W++)
|
|
8117
8118
|
d[W] = 0;
|
|
8118
8119
|
if (t.flush_pending(), t.avail_out === 0)
|
|
@@ -8129,7 +8130,7 @@ function hu() {
|
|
|
8129
8130
|
hu.prototype = {
|
|
8130
8131
|
deflateInit(e, t) {
|
|
8131
8132
|
const r = this;
|
|
8132
|
-
return r.dstate = new
|
|
8133
|
+
return r.dstate = new Iw(), t || (t = Kn), r.dstate.deflateInit(r, e, t);
|
|
8133
8134
|
},
|
|
8134
8135
|
deflate(e) {
|
|
8135
8136
|
const t = this;
|
|
@@ -8170,8 +8171,8 @@ hu.prototype = {
|
|
|
8170
8171
|
t > e.avail_out && (t = e.avail_out), t !== 0 && (e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out, e.dstate.pending_out + t), e.next_out_index), e.next_out_index += t, e.dstate.pending_out += t, e.total_out += t, e.avail_out -= t, e.dstate.pending -= t, e.dstate.pending === 0 && (e.dstate.pending_out = 0));
|
|
8171
8172
|
}
|
|
8172
8173
|
};
|
|
8173
|
-
function
|
|
8174
|
-
const t = this, r = new hu(), i =
|
|
8174
|
+
function Cw(e) {
|
|
8175
|
+
const t = this, r = new hu(), i = jw(e && e.chunkSize ? e.chunkSize : 64 * 1024), a = en, s = new Uint8Array(i);
|
|
8175
8176
|
let n = e ? e.level : oi;
|
|
8176
8177
|
typeof n > "u" && (n = oi), r.deflateInit(n), r.next_out = s, t.append = function(o, l) {
|
|
8177
8178
|
let p, c, d = 0, m = 0, y = 0;
|
|
@@ -8200,10 +8201,10 @@ function Iw(e) {
|
|
|
8200
8201
|
}), l;
|
|
8201
8202
|
};
|
|
8202
8203
|
}
|
|
8203
|
-
function
|
|
8204
|
+
function jw(e) {
|
|
8204
8205
|
return e + 5 * (Math.floor(e / 16383) + 1);
|
|
8205
8206
|
}
|
|
8206
|
-
const
|
|
8207
|
+
const Nw = 15, ve = 0, sr = 1, Dw = 2, dt = -2, Le = -3, $f = -4, ir = -5, _t = [
|
|
8207
8208
|
0,
|
|
8208
8209
|
1,
|
|
8209
8210
|
3,
|
|
@@ -8221,7 +8222,7 @@ const jw = 15, ve = 0, sr = 1, Nw = 2, dt = -2, Le = -3, $f = -4, ir = -5, _t =
|
|
|
8221
8222
|
16383,
|
|
8222
8223
|
32767,
|
|
8223
8224
|
65535
|
|
8224
|
-
], mu = 1440,
|
|
8225
|
+
], mu = 1440, Uw = 0, Bw = 4, qw = 9, Mw = 5, Ww = [
|
|
8225
8226
|
96,
|
|
8226
8227
|
7,
|
|
8227
8228
|
256,
|
|
@@ -9758,7 +9759,7 @@ const jw = 15, ve = 0, sr = 1, Nw = 2, dt = -2, Le = -3, $f = -4, ir = -5, _t =
|
|
|
9758
9759
|
0,
|
|
9759
9760
|
9,
|
|
9760
9761
|
255
|
|
9761
|
-
],
|
|
9762
|
+
], Hw = [
|
|
9762
9763
|
80,
|
|
9763
9764
|
5,
|
|
9764
9765
|
1,
|
|
@@ -9855,7 +9856,7 @@ const jw = 15, ve = 0, sr = 1, Nw = 2, dt = -2, Le = -3, $f = -4, ir = -5, _t =
|
|
|
9855
9856
|
192,
|
|
9856
9857
|
5,
|
|
9857
9858
|
24577
|
|
9858
|
-
],
|
|
9859
|
+
], zw = [
|
|
9859
9860
|
// Copy lengths for literal codes 257..285
|
|
9860
9861
|
3,
|
|
9861
9862
|
4,
|
|
@@ -9888,7 +9889,7 @@ const jw = 15, ve = 0, sr = 1, Nw = 2, dt = -2, Le = -3, $f = -4, ir = -5, _t =
|
|
|
9888
9889
|
258,
|
|
9889
9890
|
0,
|
|
9890
9891
|
0
|
|
9891
|
-
],
|
|
9892
|
+
], Vw = [
|
|
9892
9893
|
// Extra bits for literal codes 257..285
|
|
9893
9894
|
0,
|
|
9894
9895
|
0,
|
|
@@ -9922,7 +9923,7 @@ const jw = 15, ve = 0, sr = 1, Nw = 2, dt = -2, Le = -3, $f = -4, ir = -5, _t =
|
|
|
9922
9923
|
112,
|
|
9923
9924
|
112
|
|
9924
9925
|
// 112==invalid
|
|
9925
|
-
],
|
|
9926
|
+
], Zw = [
|
|
9926
9927
|
// Copy offsets for distance codes 0..29
|
|
9927
9928
|
1,
|
|
9928
9929
|
2,
|
|
@@ -9954,7 +9955,7 @@ const jw = 15, ve = 0, sr = 1, Nw = 2, dt = -2, Le = -3, $f = -4, ir = -5, _t =
|
|
|
9954
9955
|
12289,
|
|
9955
9956
|
16385,
|
|
9956
9957
|
24577
|
|
9957
|
-
],
|
|
9958
|
+
], Gw = [
|
|
9958
9959
|
// Extra bits for distance codes
|
|
9959
9960
|
0,
|
|
9960
9961
|
0,
|
|
@@ -10054,14 +10055,14 @@ function so() {
|
|
|
10054
10055
|
return l(19), t[0] = 0, O = o(p, 0, 19, 19, null, null, d, c, m, t, r), O == Le ? y.msg = "oversubscribed dynamic bit lengths tree" : (O == ir || c[0] === 0) && (y.msg = "incomplete dynamic bit lengths tree", O = Le), O;
|
|
10055
10056
|
}, e.inflate_trees_dynamic = function(p, c, d, m, y, O, g, w, _) {
|
|
10056
10057
|
let T;
|
|
10057
|
-
return l(288), t[0] = 0, T = o(d, 0, p, 257,
|
|
10058
|
+
return l(288), t[0] = 0, T = o(d, 0, p, 257, zw, Vw, O, m, w, t, r), T != ve || m[0] === 0 ? (T == Le ? _.msg = "oversubscribed literal/length tree" : T != $f && (_.msg = "incomplete literal/length tree", T = Le), T) : (l(288), T = o(d, p, c, 0, Zw, Gw, g, y, w, t, r), T != ve || y[0] === 0 && p > 257 ? (T == Le ? _.msg = "oversubscribed distance tree" : T == ir ? (_.msg = "incomplete distance tree", T = Le) : T != $f && (_.msg = "empty distance tree with lengths", T = Le), T) : ve);
|
|
10058
10059
|
};
|
|
10059
10060
|
}
|
|
10060
10061
|
so.inflate_trees_fixed = function(e, t, r, i) {
|
|
10061
|
-
return e[0] =
|
|
10062
|
+
return e[0] = qw, t[0] = Mw, r[0] = Ww, i[0] = Hw, ve;
|
|
10062
10063
|
};
|
|
10063
10064
|
const $s = 0, Rf = 1, Ff = 2, Lf = 3, If = 4, Cf = 5, jf = 6, Sa = 7, Nf = 8, Rs = 9;
|
|
10064
|
-
function
|
|
10065
|
+
function Yw() {
|
|
10065
10066
|
const e = this;
|
|
10066
10067
|
let t, r = 0, i, a = 0, s = 0, n = 0, o = 0, l = 0, p = 0, c = 0, d, m = 0, y, O = 0;
|
|
10067
10068
|
function g(w, _, T, E, I, $, L, C) {
|
|
@@ -10253,10 +10254,10 @@ const Df = [
|
|
|
10253
10254
|
1,
|
|
10254
10255
|
15
|
|
10255
10256
|
], Kr = 0, Oa = 1, Uf = 2, Bf = 3, qf = 4, Mf = 5, Fs = 6, Ls = 7, Wf = 8, kr = 9;
|
|
10256
|
-
function
|
|
10257
|
+
function Kw(e, t) {
|
|
10257
10258
|
const r = this;
|
|
10258
10259
|
let i = Kr, a = 0, s = 0, n = 0, o;
|
|
10259
|
-
const l = [0], p = [0], c = new
|
|
10260
|
+
const l = [0], p = [0], c = new Yw();
|
|
10260
10261
|
let d = 0, m = new Int32Array(mu * 3);
|
|
10261
10262
|
const y = 0, O = new so();
|
|
10262
10263
|
r.bitk = 0, r.bitb = 0, r.win = new Uint8Array(t), r.end = t, r.read = 0, r.write = 0, r.reset = function(g, w) {
|
|
@@ -10410,8 +10411,8 @@ function Yw(e, t) {
|
|
|
10410
10411
|
return i == Oa ? 1 : 0;
|
|
10411
10412
|
};
|
|
10412
10413
|
}
|
|
10413
|
-
const
|
|
10414
|
-
function
|
|
10414
|
+
const Xw = 32, Jw = 8, Qw = 0, Hf = 1, zf = 2, Vf = 3, Zf = 4, Gf = 5, Ta = 6, En = 7, Yf = 12, pr = 13, e1 = [0, 0, 255, 255];
|
|
10415
|
+
function t1() {
|
|
10415
10416
|
const e = this;
|
|
10416
10417
|
e.mode = 0, e.method = 0, e.was = [0], e.need = 0, e.marker = 0, e.wbits = 0;
|
|
10417
10418
|
function t(r) {
|
|
@@ -10420,18 +10421,18 @@ function e1() {
|
|
|
10420
10421
|
e.inflateEnd = function(r) {
|
|
10421
10422
|
return e.blocks && e.blocks.free(r), e.blocks = null, ve;
|
|
10422
10423
|
}, e.inflateInit = function(r, i) {
|
|
10423
|
-
return r.msg = null, e.blocks = null, i < 8 || i > 15 ? (e.inflateEnd(r), dt) : (e.wbits = i, r.istate.blocks = new
|
|
10424
|
+
return r.msg = null, e.blocks = null, i < 8 || i > 15 ? (e.inflateEnd(r), dt) : (e.wbits = i, r.istate.blocks = new Kw(r, 1 << i), t(r), ve);
|
|
10424
10425
|
}, e.inflate = function(r, i) {
|
|
10425
10426
|
let a, s;
|
|
10426
10427
|
if (!r || !r.istate || !r.next_in)
|
|
10427
10428
|
return dt;
|
|
10428
10429
|
const n = r.istate;
|
|
10429
|
-
for (i = i ==
|
|
10430
|
+
for (i = i == Bw ? ir : ve, a = ir; ; )
|
|
10430
10431
|
switch (n.mode) {
|
|
10431
|
-
case
|
|
10432
|
+
case Qw:
|
|
10432
10433
|
if (r.avail_in === 0)
|
|
10433
10434
|
return a;
|
|
10434
|
-
if (a = i, r.avail_in--, r.total_in++, ((n.method = r.read_byte(r.next_in_index++)) & 15) !=
|
|
10435
|
+
if (a = i, r.avail_in--, r.total_in++, ((n.method = r.read_byte(r.next_in_index++)) & 15) != Jw) {
|
|
10435
10436
|
n.mode = pr, r.msg = "unknown compression method", n.marker = 5;
|
|
10436
10437
|
break;
|
|
10437
10438
|
}
|
|
@@ -10447,7 +10448,7 @@ function e1() {
|
|
|
10447
10448
|
n.mode = pr, r.msg = "incorrect header check", n.marker = 5;
|
|
10448
10449
|
break;
|
|
10449
10450
|
}
|
|
10450
|
-
if (!(s &
|
|
10451
|
+
if (!(s & Xw)) {
|
|
10451
10452
|
n.mode = En;
|
|
10452
10453
|
break;
|
|
10453
10454
|
}
|
|
@@ -10465,7 +10466,7 @@ function e1() {
|
|
|
10465
10466
|
return a;
|
|
10466
10467
|
a = i, r.avail_in--, r.total_in++, n.need += (r.read_byte(r.next_in_index++) & 255) << 8 & 65280, n.mode = Gf;
|
|
10467
10468
|
case Gf:
|
|
10468
|
-
return r.avail_in === 0 ? a : (a = i, r.avail_in--, r.total_in++, n.need += r.read_byte(r.next_in_index++) & 255, n.mode = Ta,
|
|
10469
|
+
return r.avail_in === 0 ? a : (a = i, r.avail_in--, r.total_in++, n.need += r.read_byte(r.next_in_index++) & 255, n.mode = Ta, Dw);
|
|
10469
10470
|
case Ta:
|
|
10470
10471
|
return n.mode = pr, r.msg = "need dictionary", n.marker = 0, dt;
|
|
10471
10472
|
case En:
|
|
@@ -10497,7 +10498,7 @@ function e1() {
|
|
|
10497
10498
|
if (l.mode != pr && (l.mode = pr, l.marker = 0), (i = r.avail_in) === 0)
|
|
10498
10499
|
return ir;
|
|
10499
10500
|
for (a = r.next_in_index, s = l.marker; i !== 0 && s < 4; )
|
|
10500
|
-
r.read_byte(a) ==
|
|
10501
|
+
r.read_byte(a) == e1[s] ? s++ : r.read_byte(a) !== 0 ? s = 0 : s = 4 - s, a++, i--;
|
|
10501
10502
|
return r.total_in += a - r.next_in_index, r.next_in_index = a, r.avail_in = i, l.marker = s, s != 4 ? Le : (n = r.total_in, o = r.total_out, t(r), r.total_in = n, r.total_out = o, l.mode = En, ve);
|
|
10502
10503
|
}, e.inflateSyncPoint = function(r) {
|
|
10503
10504
|
return !r || !r.istate || !r.istate.blocks ? dt : r.istate.blocks.sync_point();
|
|
@@ -10508,7 +10509,7 @@ function yu() {
|
|
|
10508
10509
|
yu.prototype = {
|
|
10509
10510
|
inflateInit(e) {
|
|
10510
10511
|
const t = this;
|
|
10511
|
-
return t.istate = new
|
|
10512
|
+
return t.istate = new t1(), e || (e = Nw), t.istate.inflateInit(t, e);
|
|
10512
10513
|
},
|
|
10513
10514
|
inflate(e) {
|
|
10514
10515
|
const t = this;
|
|
@@ -10536,8 +10537,8 @@ yu.prototype = {
|
|
|
10536
10537
|
return this.next_in.subarray(e, e + t);
|
|
10537
10538
|
}
|
|
10538
10539
|
};
|
|
10539
|
-
function
|
|
10540
|
-
const t = this, r = new yu(), i = e && e.chunkSize ? Math.floor(e.chunkSize * 2) : 128 * 1024, a =
|
|
10540
|
+
function r1(e) {
|
|
10541
|
+
const t = this, r = new yu(), i = e && e.chunkSize ? Math.floor(e.chunkSize * 2) : 128 * 1024, a = Uw, s = new Uint8Array(i);
|
|
10541
10542
|
let n = !1;
|
|
10542
10543
|
r.inflateInit(), r.next_out = s, t.append = function(o, l) {
|
|
10543
10544
|
const p = [];
|
|
@@ -10562,7 +10563,7 @@ function t1(e) {
|
|
|
10562
10563
|
r.inflateEnd();
|
|
10563
10564
|
};
|
|
10564
10565
|
}
|
|
10565
|
-
const Fr = 4294967295, mr = 65535,
|
|
10566
|
+
const Fr = 4294967295, mr = 65535, n1 = 8, s1 = 0, i1 = 99, a1 = 67324752, o1 = 134695760, Kf = 33639248, l1 = 101010256, Xf = 101075792, f1 = 117853008, Xr = 22, Aa = 20, $a = 56, p1 = 1, c1 = 39169, u1 = 10, d1 = 1, h1 = 21589, m1 = 28789, y1 = 25461, g1 = 6534, Jf = 1, w1 = 6, Qf = 8, ep = 2048, tp = 16, rp = 16384, np = 73, sp = "/", ft = void 0, xr = "undefined", hs = "function";
|
|
10566
10567
|
class ip {
|
|
10567
10568
|
constructor(t) {
|
|
10568
10569
|
return class extends TransformStream {
|
|
@@ -10581,13 +10582,13 @@ class ip {
|
|
|
10581
10582
|
};
|
|
10582
10583
|
}
|
|
10583
10584
|
}
|
|
10584
|
-
const
|
|
10585
|
+
const b1 = 64;
|
|
10585
10586
|
let gu = 2;
|
|
10586
10587
|
try {
|
|
10587
10588
|
typeof navigator != xr && navigator.hardwareConcurrency && (gu = navigator.hardwareConcurrency);
|
|
10588
10589
|
} catch {
|
|
10589
10590
|
}
|
|
10590
|
-
const
|
|
10591
|
+
const _1 = {
|
|
10591
10592
|
chunkSize: 512 * 1024,
|
|
10592
10593
|
maxWorkers: gu,
|
|
10593
10594
|
terminateWorkerTimeout: 5e3,
|
|
@@ -10596,12 +10597,12 @@ const b1 = {
|
|
|
10596
10597
|
workerScripts: ft,
|
|
10597
10598
|
CompressionStreamNative: typeof CompressionStream != xr && CompressionStream,
|
|
10598
10599
|
DecompressionStreamNative: typeof DecompressionStream != xr && DecompressionStream
|
|
10599
|
-
}, yr = Object.assign({},
|
|
10600
|
-
function
|
|
10600
|
+
}, yr = Object.assign({}, _1);
|
|
10601
|
+
function v1() {
|
|
10601
10602
|
return yr;
|
|
10602
10603
|
}
|
|
10603
|
-
function
|
|
10604
|
-
return Math.max(e.chunkSize,
|
|
10604
|
+
function x1(e) {
|
|
10605
|
+
return Math.max(e.chunkSize, b1);
|
|
10605
10606
|
}
|
|
10606
10607
|
function jo(e) {
|
|
10607
10608
|
const {
|
|
@@ -12264,7 +12265,7 @@ class bu extends TransformStream {
|
|
|
12264
12265
|
}), t = this;
|
|
12265
12266
|
}
|
|
12266
12267
|
}
|
|
12267
|
-
function
|
|
12268
|
+
function k1(e) {
|
|
12268
12269
|
if (typeof TextEncoder == xr) {
|
|
12269
12270
|
e = unescape(encodeURIComponent(e));
|
|
12270
12271
|
const t = new Uint8Array(e.length);
|
|
@@ -12530,7 +12531,7 @@ vu.aes = class {
|
|
|
12530
12531
|
return a;
|
|
12531
12532
|
}
|
|
12532
12533
|
};
|
|
12533
|
-
const
|
|
12534
|
+
const P1 = {
|
|
12534
12535
|
/**
|
|
12535
12536
|
* Generate random words with pure js, cryptographically not as strong & safe as native implementation.
|
|
12536
12537
|
* @param {TypedArray} typedArray The array to fill.
|
|
@@ -12638,13 +12639,13 @@ Br.hmacSha1 = class {
|
|
|
12638
12639
|
return this.update(e), this.digest(e);
|
|
12639
12640
|
}
|
|
12640
12641
|
};
|
|
12641
|
-
const
|
|
12642
|
+
const E1 = typeof crypto != xr && typeof crypto.getRandomValues == hs, ku = "Invalid password", Pu = "Invalid signature", No = "zipjs-abort-check-password";
|
|
12642
12643
|
function Eu(e) {
|
|
12643
|
-
return
|
|
12644
|
+
return E1 ? crypto.getRandomValues(e) : P1.getRandomValues(e);
|
|
12644
12645
|
}
|
|
12645
|
-
const rn = 16,
|
|
12646
|
+
const rn = 16, S1 = "raw", Su = { name: "PBKDF2" }, O1 = { name: "HMAC" }, T1 = "SHA-1", A1 = Object.assign({ hash: O1 }, Su), io = Object.assign({ iterations: 1e3, hash: { name: T1 } }, Su), $1 = ["deriveBits"], Xn = [8, 12, 16], Sn = [16, 24, 32], hr = 10, R1 = [0, 0, 0, 0], Pi = typeof crypto != xr, ms = Pi && crypto.subtle, Ou = Pi && typeof ms != xr, Xt = fi.bytes, F1 = vu.aes, L1 = xu.ctrGladman, I1 = Br.hmacSha1;
|
|
12646
12647
|
let ap = Pi && Ou && typeof ms.importKey == hs, op = Pi && Ou && typeof ms.deriveBits == hs;
|
|
12647
|
-
class
|
|
12648
|
+
class C1 extends TransformStream {
|
|
12648
12649
|
constructor({ password: t, rawPassword: r, signed: i, encryptionStrength: a, checkPasswordOnly: s }) {
|
|
12649
12650
|
super({
|
|
12650
12651
|
start() {
|
|
@@ -12663,7 +12664,7 @@ class I1 extends TransformStream {
|
|
|
12663
12664
|
resolveReady: d,
|
|
12664
12665
|
ready: m
|
|
12665
12666
|
} = l;
|
|
12666
|
-
p ? (await
|
|
12667
|
+
p ? (await N1(l, c, p, Tt(n, 0, Xn[c] + 2)), n = Tt(n, Xn[c] + 2), s ? o.error(new Error(No)) : d()) : await m;
|
|
12667
12668
|
const y = new Uint8Array(n.length - hr - (n.length - hr) % rn);
|
|
12668
12669
|
o.enqueue(Tu(l, n, y, 0, hr, !0));
|
|
12669
12670
|
},
|
|
@@ -12697,7 +12698,7 @@ class I1 extends TransformStream {
|
|
|
12697
12698
|
});
|
|
12698
12699
|
}
|
|
12699
12700
|
}
|
|
12700
|
-
class
|
|
12701
|
+
class j1 extends TransformStream {
|
|
12701
12702
|
constructor({ password: t, rawPassword: r, encryptionStrength: i }) {
|
|
12702
12703
|
let a;
|
|
12703
12704
|
super({
|
|
@@ -12717,7 +12718,7 @@ class C1 extends TransformStream {
|
|
|
12717
12718
|
ready: d
|
|
12718
12719
|
} = o;
|
|
12719
12720
|
let m = new Uint8Array();
|
|
12720
|
-
l ? (m = await
|
|
12721
|
+
l ? (m = await D1(o, p, l), c()) : await d;
|
|
12721
12722
|
const y = new Uint8Array(m.length + s.length - s.length % rn);
|
|
12722
12723
|
y.set(m, 0), n.enqueue(Tu(o, s, y, m.length, 0));
|
|
12723
12724
|
},
|
|
@@ -12747,7 +12748,7 @@ function Tu(e, t, r, i, a, s) {
|
|
|
12747
12748
|
hmac: o,
|
|
12748
12749
|
pending: l
|
|
12749
12750
|
} = e, p = t.length - a;
|
|
12750
|
-
l.length && (t = Do(l, t), r =
|
|
12751
|
+
l.length && (t = Do(l, t), r = q1(r, p - p % rn));
|
|
12751
12752
|
let c;
|
|
12752
12753
|
for (c = 0; c <= p - rn; c += rn) {
|
|
12753
12754
|
const d = Qn(Xt, Tt(t, c, c + rn));
|
|
@@ -12757,29 +12758,29 @@ function Tu(e, t, r, i, a, s) {
|
|
|
12757
12758
|
}
|
|
12758
12759
|
return e.pending = Tt(t, c), r;
|
|
12759
12760
|
}
|
|
12760
|
-
async function
|
|
12761
|
+
async function N1(e, t, r, i) {
|
|
12761
12762
|
const a = await Au(e, t, r, Tt(i, 0, Xn[t])), s = Tt(i, Xn[t]);
|
|
12762
12763
|
if (a[0] != s[0] || a[1] != s[1])
|
|
12763
12764
|
throw new Error(ku);
|
|
12764
12765
|
}
|
|
12765
|
-
async function
|
|
12766
|
+
async function D1(e, t, r) {
|
|
12766
12767
|
const i = Eu(new Uint8Array(Xn[t])), a = await Au(e, t, r, i);
|
|
12767
12768
|
return Do(i, a);
|
|
12768
12769
|
}
|
|
12769
12770
|
async function Au(e, t, r, i) {
|
|
12770
12771
|
e.password = null;
|
|
12771
|
-
const a = await
|
|
12772
|
+
const a = await U1(S1, r, A1, !1, $1), s = await B1(Object.assign({ salt: i }, io), a, 8 * (Sn[t] * 2 + 2)), n = new Uint8Array(s), o = Qn(Xt, Tt(n, 0, Sn[t])), l = Qn(Xt, Tt(n, Sn[t], Sn[t] * 2)), p = Tt(n, Sn[t] * 2);
|
|
12772
12773
|
return Object.assign(e, {
|
|
12773
12774
|
keys: {
|
|
12774
12775
|
key: o,
|
|
12775
12776
|
authentication: l,
|
|
12776
12777
|
passwordVerification: p
|
|
12777
12778
|
},
|
|
12778
|
-
ctr: new
|
|
12779
|
-
hmac: new
|
|
12779
|
+
ctr: new L1(new F1(o), Array.from(R1)),
|
|
12780
|
+
hmac: new I1(l)
|
|
12780
12781
|
}), p;
|
|
12781
12782
|
}
|
|
12782
|
-
async function
|
|
12783
|
+
async function U1(e, t, r, i, a) {
|
|
12783
12784
|
if (ap)
|
|
12784
12785
|
try {
|
|
12785
12786
|
return await ms.importKey(e, t, r, i, a);
|
|
@@ -12789,7 +12790,7 @@ async function D1(e, t, r, i, a) {
|
|
|
12789
12790
|
else
|
|
12790
12791
|
return Br.importKey(t);
|
|
12791
12792
|
}
|
|
12792
|
-
async function
|
|
12793
|
+
async function B1(e, t, r) {
|
|
12793
12794
|
if (op)
|
|
12794
12795
|
try {
|
|
12795
12796
|
return await ms.deriveBits(e, t, r);
|
|
@@ -12800,13 +12801,13 @@ async function U1(e, t, r) {
|
|
|
12800
12801
|
return Br.pbkdf2(t, e.salt, io.iterations, r);
|
|
12801
12802
|
}
|
|
12802
12803
|
function $u(e, t) {
|
|
12803
|
-
return t === ft ?
|
|
12804
|
+
return t === ft ? k1(e) : t;
|
|
12804
12805
|
}
|
|
12805
12806
|
function Do(e, t) {
|
|
12806
12807
|
let r = e;
|
|
12807
12808
|
return e.length + t.length && (r = new Uint8Array(e.length + t.length), r.set(e, 0), r.set(t, e.length)), r;
|
|
12808
12809
|
}
|
|
12809
|
-
function
|
|
12810
|
+
function q1(e, t) {
|
|
12810
12811
|
if (t && t > e.length) {
|
|
12811
12812
|
const r = e;
|
|
12812
12813
|
e = new Uint8Array(t), e.set(r, 0);
|
|
@@ -12823,7 +12824,7 @@ function Qn(e, t) {
|
|
|
12823
12824
|
return e.toBits(t);
|
|
12824
12825
|
}
|
|
12825
12826
|
const fn = 12;
|
|
12826
|
-
class
|
|
12827
|
+
class M1 extends TransformStream {
|
|
12827
12828
|
constructor({ password: t, passwordVerification: r, checkPasswordOnly: i }) {
|
|
12828
12829
|
super({
|
|
12829
12830
|
start() {
|
|
@@ -12845,7 +12846,7 @@ class q1 extends TransformStream {
|
|
|
12845
12846
|
});
|
|
12846
12847
|
}
|
|
12847
12848
|
}
|
|
12848
|
-
class
|
|
12849
|
+
class W1 extends TransformStream {
|
|
12849
12850
|
constructor({ password: t, passwordVerification: r }) {
|
|
12850
12851
|
super({
|
|
12851
12852
|
start() {
|
|
@@ -12905,23 +12906,23 @@ function pp(e) {
|
|
|
12905
12906
|
return e & 4294967295;
|
|
12906
12907
|
}
|
|
12907
12908
|
const cp = "deflate-raw";
|
|
12908
|
-
class
|
|
12909
|
+
class H1 extends TransformStream {
|
|
12909
12910
|
constructor(t, { chunkSize: r, CompressionStream: i, CompressionStreamNative: a }) {
|
|
12910
12911
|
super({});
|
|
12911
12912
|
const { compressed: s, encrypted: n, useCompressionStream: o, zipCrypto: l, signed: p, level: c } = t, d = this;
|
|
12912
12913
|
let m, y, O = Iu(super.readable);
|
|
12913
|
-
(!n || l) && p && (m = new bu(), O = Jt(O, m)), s && (O = ju(O, o, { level: c, chunkSize: r }, a, i)), n && (l ? O = Jt(O, new
|
|
12914
|
+
(!n || l) && p && (m = new bu(), O = Jt(O, m)), s && (O = ju(O, o, { level: c, chunkSize: r }, a, i)), n && (l ? O = Jt(O, new W1(t)) : (y = new j1(t), O = Jt(O, y))), Cu(d, O, () => {
|
|
12914
12915
|
let g;
|
|
12915
12916
|
n && !l && (g = y.signature), (!n || l) && p && (g = new DataView(m.value.buffer).getUint32(0)), d.signature = g;
|
|
12916
12917
|
});
|
|
12917
12918
|
}
|
|
12918
12919
|
}
|
|
12919
|
-
class
|
|
12920
|
+
class z1 extends TransformStream {
|
|
12920
12921
|
constructor(t, { chunkSize: r, DecompressionStream: i, DecompressionStreamNative: a }) {
|
|
12921
12922
|
super({});
|
|
12922
12923
|
const { zipCrypto: s, encrypted: n, signed: o, signature: l, compressed: p, useCompressionStream: c } = t;
|
|
12923
12924
|
let d, m, y = Iu(super.readable);
|
|
12924
|
-
n && (s ? y = Jt(y, new
|
|
12925
|
+
n && (s ? y = Jt(y, new M1(t)) : (m = new C1(t), y = Jt(y, m))), p && (y = ju(y, c, { chunkSize: r }, a, i)), (!n || s) && o && (d = new bu(), y = Jt(y, d)), Cu(this, y, () => {
|
|
12925
12926
|
if ((!n || s) && o) {
|
|
12926
12927
|
const O = new DataView(d.value.buffer);
|
|
12927
12928
|
if (l != O.getUint32(0, !1))
|
|
@@ -12963,13 +12964,13 @@ function ju(e, t, r, i, a) {
|
|
|
12963
12964
|
function Jt(e, t) {
|
|
12964
12965
|
return e.pipeThrough(t);
|
|
12965
12966
|
}
|
|
12966
|
-
const
|
|
12967
|
-
class
|
|
12967
|
+
const V1 = "message", Z1 = "start", G1 = "pull", up = "data", Y1 = "ack", dp = "close", K1 = "deflate", Nu = "inflate";
|
|
12968
|
+
class X1 extends TransformStream {
|
|
12968
12969
|
constructor(t, r) {
|
|
12969
12970
|
super({});
|
|
12970
12971
|
const i = this, { codecType: a } = t;
|
|
12971
12972
|
let s;
|
|
12972
|
-
a.startsWith(
|
|
12973
|
+
a.startsWith(K1) ? s = H1 : a.startsWith(Nu) && (s = z1);
|
|
12973
12974
|
let n = 0, o = 0;
|
|
12974
12975
|
const l = new s(t, r), p = super.readable, c = new TransformStream({
|
|
12975
12976
|
transform(m, y) {
|
|
@@ -13000,7 +13001,7 @@ class K1 extends TransformStream {
|
|
|
13000
13001
|
});
|
|
13001
13002
|
}
|
|
13002
13003
|
}
|
|
13003
|
-
class
|
|
13004
|
+
class J1 extends TransformStream {
|
|
13004
13005
|
constructor(t) {
|
|
13005
13006
|
let r;
|
|
13006
13007
|
super({
|
|
@@ -13024,7 +13025,7 @@ class Fa {
|
|
|
13024
13025
|
const { signal: d } = n;
|
|
13025
13026
|
return Object.assign(t, {
|
|
13026
13027
|
busy: !0,
|
|
13027
|
-
readable: r.pipeThrough(new
|
|
13028
|
+
readable: r.pipeThrough(new J1(s.chunkSize)).pipeThrough(new Q1(r, n), { signal: d }),
|
|
13028
13029
|
writable: i,
|
|
13029
13030
|
options: Object.assign({}, a),
|
|
13030
13031
|
scripts: p,
|
|
@@ -13039,10 +13040,10 @@ class Fa {
|
|
|
13039
13040
|
const { resolveTerminated: m } = t;
|
|
13040
13041
|
m && (t.resolveTerminated = null, t.terminated = !0, t.worker.terminate(), m()), t.busy = !1, c(t);
|
|
13041
13042
|
}
|
|
13042
|
-
}), (o && Du ?
|
|
13043
|
+
}), (o && Du ? eb : Uu)(t, s);
|
|
13043
13044
|
}
|
|
13044
13045
|
}
|
|
13045
|
-
class
|
|
13046
|
+
class Q1 extends TransformStream {
|
|
13046
13047
|
constructor(t, { onstart: r, onprogress: i, size: a, onend: s }) {
|
|
13047
13048
|
let n = 0;
|
|
13048
13049
|
super({
|
|
@@ -13066,30 +13067,30 @@ async function La(e, ...t) {
|
|
|
13066
13067
|
}
|
|
13067
13068
|
function Uu(e, t) {
|
|
13068
13069
|
return {
|
|
13069
|
-
run: () =>
|
|
13070
|
+
run: () => tb(e, t)
|
|
13070
13071
|
};
|
|
13071
13072
|
}
|
|
13072
|
-
function
|
|
13073
|
+
function eb(e, t) {
|
|
13073
13074
|
const { baseURL: r, chunkSize: i } = t;
|
|
13074
13075
|
if (!e.interface) {
|
|
13075
13076
|
let a;
|
|
13076
13077
|
try {
|
|
13077
|
-
a =
|
|
13078
|
+
a = sb(e.scripts[0], r, e);
|
|
13078
13079
|
} catch {
|
|
13079
13080
|
return Du = !1, Uu(e, t);
|
|
13080
13081
|
}
|
|
13081
13082
|
Object.assign(e, {
|
|
13082
13083
|
worker: a,
|
|
13083
13084
|
interface: {
|
|
13084
|
-
run: () =>
|
|
13085
|
+
run: () => rb(e, { chunkSize: i })
|
|
13085
13086
|
}
|
|
13086
13087
|
});
|
|
13087
13088
|
}
|
|
13088
13089
|
return e.interface;
|
|
13089
13090
|
}
|
|
13090
|
-
async function
|
|
13091
|
+
async function tb({ options: e, readable: t, writable: r, onTaskFinished: i }, a) {
|
|
13091
13092
|
try {
|
|
13092
|
-
const s = new
|
|
13093
|
+
const s = new X1(e, a);
|
|
13093
13094
|
await t.pipeThrough(s).pipeTo(r, { preventClose: !0, preventAbort: !0 });
|
|
13094
13095
|
const {
|
|
13095
13096
|
signature: n,
|
|
@@ -13105,7 +13106,7 @@ async function eb({ options: e, readable: t, writable: r, onTaskFinished: i }, a
|
|
|
13105
13106
|
i();
|
|
13106
13107
|
}
|
|
13107
13108
|
}
|
|
13108
|
-
async function
|
|
13109
|
+
async function rb(e, t) {
|
|
13109
13110
|
let r, i;
|
|
13110
13111
|
const a = new Promise((m, y) => {
|
|
13111
13112
|
r = m, i = y;
|
|
@@ -13117,8 +13118,8 @@ async function tb(e, t) {
|
|
|
13117
13118
|
rejectResult: i,
|
|
13118
13119
|
result: a
|
|
13119
13120
|
});
|
|
13120
|
-
const { readable: s, options: n, scripts: o } = e, { writable: l, closed: p } =
|
|
13121
|
-
type:
|
|
13121
|
+
const { readable: s, options: n, scripts: o } = e, { writable: l, closed: p } = nb(e.writable), c = zs({
|
|
13122
|
+
type: Z1,
|
|
13122
13123
|
scripts: o.slice(1),
|
|
13123
13124
|
options: n,
|
|
13124
13125
|
config: t,
|
|
@@ -13132,7 +13133,7 @@ async function tb(e, t) {
|
|
|
13132
13133
|
const d = await a;
|
|
13133
13134
|
return c || await l.getWriter().close(), await p, d;
|
|
13134
13135
|
}
|
|
13135
|
-
function
|
|
13136
|
+
function nb(e) {
|
|
13136
13137
|
let t;
|
|
13137
13138
|
const r = new Promise((a) => t = a);
|
|
13138
13139
|
return { writable: new WritableStream({
|
|
@@ -13149,7 +13150,7 @@ function rb(e) {
|
|
|
13149
13150
|
}), closed: r };
|
|
13150
13151
|
}
|
|
13151
13152
|
let hp = !0, mp = !0;
|
|
13152
|
-
function
|
|
13153
|
+
function sb(e, t, r) {
|
|
13153
13154
|
const i = { type: "module" };
|
|
13154
13155
|
let a, s;
|
|
13155
13156
|
typeof e == hs && (e = e());
|
|
@@ -13166,7 +13167,7 @@ function nb(e, t, r) {
|
|
|
13166
13167
|
}
|
|
13167
13168
|
else
|
|
13168
13169
|
s = new Worker(a, i);
|
|
13169
|
-
return s.addEventListener(
|
|
13170
|
+
return s.addEventListener(V1, (n) => ib(n, r)), s;
|
|
13170
13171
|
}
|
|
13171
13172
|
function zs(e, { worker: t, writer: r, onTaskFinished: i, transferStreams: a }) {
|
|
13172
13173
|
try {
|
|
@@ -13183,18 +13184,18 @@ function zs(e, { worker: t, writer: r, onTaskFinished: i, transferStreams: a })
|
|
|
13183
13184
|
throw r && r.releaseLock(), i(), s;
|
|
13184
13185
|
}
|
|
13185
13186
|
}
|
|
13186
|
-
async function
|
|
13187
|
+
async function ib({ data: e }, t) {
|
|
13187
13188
|
const { type: r, value: i, messageId: a, result: s, error: n } = e, { reader: o, writer: l, resolveResult: p, rejectResult: c, onTaskFinished: d } = t;
|
|
13188
13189
|
try {
|
|
13189
13190
|
if (n) {
|
|
13190
13191
|
const { message: y, stack: O, code: g, name: w } = n, _ = new Error(y);
|
|
13191
13192
|
Object.assign(_, { stack: O, code: g, name: w }), m(_);
|
|
13192
13193
|
} else {
|
|
13193
|
-
if (r ==
|
|
13194
|
+
if (r == G1) {
|
|
13194
13195
|
const { value: y, done: O } = await o.read();
|
|
13195
13196
|
zs({ type: up, value: y, done: O, messageId: a }, t);
|
|
13196
13197
|
}
|
|
13197
|
-
r == up && (await l.ready, await l.write(new Uint8Array(i)), zs({ type:
|
|
13198
|
+
r == up && (await l.ready, await l.write(new Uint8Array(i)), zs({ type: Y1, messageId: a }, t)), r == dp && m(null, s);
|
|
13198
13199
|
}
|
|
13199
13200
|
} catch (y) {
|
|
13200
13201
|
zs({ type: dp, messageId: a }, t), m(y);
|
|
@@ -13206,7 +13207,7 @@ async function sb({ data: e }, t) {
|
|
|
13206
13207
|
let Or = [];
|
|
13207
13208
|
const Ia = [];
|
|
13208
13209
|
let yp = 0;
|
|
13209
|
-
async function
|
|
13210
|
+
async function ab(e, t) {
|
|
13210
13211
|
const { options: r, config: i } = t, { transferStreams: a, useWebWorkers: s, useCompressionStream: n, codecType: o, compressed: l, signed: p, encrypted: c } = r, { workerScripts: d, maxWorkers: m } = i;
|
|
13211
13212
|
t.transferStreams = a || a === ft;
|
|
13212
13213
|
const y = !l && !p && !c && !t.transferStreams;
|
|
@@ -13225,10 +13226,10 @@ async function ib(e, t) {
|
|
|
13225
13226
|
if (Ia.length) {
|
|
13226
13227
|
const [{ resolve: _, stream: T, workerOptions: E }] = Ia.splice(0, 1);
|
|
13227
13228
|
_(new Fa(w, T, E, g));
|
|
13228
|
-
} else w.worker ? (gp(w),
|
|
13229
|
+
} else w.worker ? (gp(w), ob(w, t)) : Or = Or.filter((_) => _ != w);
|
|
13229
13230
|
}
|
|
13230
13231
|
}
|
|
13231
|
-
function
|
|
13232
|
+
function ob(e, t) {
|
|
13232
13233
|
const { config: r } = t, { terminateWorkerTimeout: i } = r;
|
|
13233
13234
|
Number.isFinite(i) && i >= 0 && (e.terminated ? e.terminated = !1 : e.terminateTimeout = setTimeout(async () => {
|
|
13234
13235
|
Or = Or.filter((a) => a != e);
|
|
@@ -13242,12 +13243,12 @@ function gp(e) {
|
|
|
13242
13243
|
const { terminateTimeout: t } = e;
|
|
13243
13244
|
t && (clearTimeout(t), e.terminateTimeout = null);
|
|
13244
13245
|
}
|
|
13245
|
-
function
|
|
13246
|
+
function lb(e, t = {}) {
|
|
13246
13247
|
const r = `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};
|
|
13247
13248
|
`, i = () => t.useDataURI ? "data:text/javascript," + encodeURIComponent(r) : URL.createObjectURL(new Blob([r], { type: "text/javascript" }));
|
|
13248
13249
|
e({ workerScripts: { inflate: [i], deflate: [i] } });
|
|
13249
13250
|
}
|
|
13250
|
-
const
|
|
13251
|
+
const fb = "Writer iterator completed too soon", pb = "Content-Type", cb = 64 * 1024, Bu = "writable";
|
|
13251
13252
|
class Bo {
|
|
13252
13253
|
constructor() {
|
|
13253
13254
|
this.size = 0;
|
|
@@ -13258,7 +13259,7 @@ class Bo {
|
|
|
13258
13259
|
}
|
|
13259
13260
|
class qu extends Bo {
|
|
13260
13261
|
get readable() {
|
|
13261
|
-
const t = this, { chunkSize: r =
|
|
13262
|
+
const t = this, { chunkSize: r = cb } = t, i = new ReadableStream({
|
|
13262
13263
|
start() {
|
|
13263
13264
|
this.chunkOffset = 0;
|
|
13264
13265
|
},
|
|
@@ -13283,11 +13284,11 @@ class ao extends qu {
|
|
|
13283
13284
|
return n.byteLength > r && (n = n.slice(t, a)), new Uint8Array(n);
|
|
13284
13285
|
}
|
|
13285
13286
|
}
|
|
13286
|
-
class
|
|
13287
|
+
class ub extends Bo {
|
|
13287
13288
|
constructor(t) {
|
|
13288
13289
|
super();
|
|
13289
13290
|
const r = this, i = new TransformStream(), a = [];
|
|
13290
|
-
t && a.push([
|
|
13291
|
+
t && a.push([pb, t]), Object.defineProperty(r, Bu, {
|
|
13291
13292
|
get() {
|
|
13292
13293
|
return i.writable;
|
|
13293
13294
|
}
|
|
@@ -13297,7 +13298,7 @@ class cb extends Bo {
|
|
|
13297
13298
|
return this.blob;
|
|
13298
13299
|
}
|
|
13299
13300
|
}
|
|
13300
|
-
class
|
|
13301
|
+
class db extends qu {
|
|
13301
13302
|
constructor(t) {
|
|
13302
13303
|
super(), this.readers = t;
|
|
13303
13304
|
}
|
|
@@ -13344,7 +13345,7 @@ class wp extends Bo {
|
|
|
13344
13345
|
else {
|
|
13345
13346
|
const { value: m, done: y } = await t.next();
|
|
13346
13347
|
if (y && !m)
|
|
13347
|
-
throw new Error(
|
|
13348
|
+
throw new Error(fb);
|
|
13348
13349
|
a = m, a.size = 0, a.maxSize && (i.maxSize = a.maxSize), i.availableSize = i.maxSize, await pi(a), s = m.writable, n = s.getWriter(), await this.write(c);
|
|
13349
13350
|
}
|
|
13350
13351
|
},
|
|
@@ -13372,12 +13373,12 @@ async function pi(e, t) {
|
|
|
13372
13373
|
else
|
|
13373
13374
|
return Promise.resolve();
|
|
13374
13375
|
}
|
|
13375
|
-
function
|
|
13376
|
-
return Array.isArray(e) && (e = new
|
|
13376
|
+
function hb(e) {
|
|
13377
|
+
return Array.isArray(e) && (e = new db(e)), e instanceof ReadableStream && (e = {
|
|
13377
13378
|
readable: e
|
|
13378
13379
|
}), e;
|
|
13379
13380
|
}
|
|
13380
|
-
function
|
|
13381
|
+
function mb(e) {
|
|
13381
13382
|
e.writable === ft && typeof e.next == hs && (e = new wp(e)), e instanceof WritableStream && (e = {
|
|
13382
13383
|
writable: e
|
|
13383
13384
|
});
|
|
@@ -13392,9 +13393,9 @@ function hb(e) {
|
|
|
13392
13393
|
function et(e, t, r, i) {
|
|
13393
13394
|
return e.readUint8Array(t, r, i);
|
|
13394
13395
|
}
|
|
13395
|
-
const Mu = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),
|
|
13396
|
-
function
|
|
13397
|
-
if (
|
|
13396
|
+
const Mu = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""), yb = Mu.length == 256;
|
|
13397
|
+
function gb(e) {
|
|
13398
|
+
if (yb) {
|
|
13398
13399
|
let t = "";
|
|
13399
13400
|
for (let r = 0; r < e.length; r++)
|
|
13400
13401
|
t += Mu[e[r]];
|
|
@@ -13403,9 +13404,9 @@ function yb(e) {
|
|
|
13403
13404
|
return new TextDecoder().decode(e);
|
|
13404
13405
|
}
|
|
13405
13406
|
function Vs(e, t) {
|
|
13406
|
-
return t && t.trim().toLowerCase() == "cp437" ?
|
|
13407
|
+
return t && t.trim().toLowerCase() == "cp437" ? gb(e) : new TextDecoder(t).decode(e);
|
|
13407
13408
|
}
|
|
13408
|
-
const Wu = "filename", Hu = "rawFilename", zu = "comment", Vu = "rawComment", Zu = "uncompressedSize", Gu = "compressedSize", Yu = "offset", oo = "diskNumberStart", lo = "lastModDate", fo = "rawLastModDate", Ku = "lastAccessDate",
|
|
13409
|
+
const Wu = "filename", Hu = "rawFilename", zu = "comment", Vu = "rawComment", Zu = "uncompressedSize", Gu = "compressedSize", Yu = "offset", oo = "diskNumberStart", lo = "lastModDate", fo = "rawLastModDate", Ku = "lastAccessDate", wb = "rawLastAccessDate", Xu = "creationDate", bb = "rawCreationDate", _b = "internalFileAttribute", vb = "internalFileAttributes", xb = "externalFileAttribute", kb = "externalFileAttributes", Pb = "msDosCompatible", Eb = "zip64", Sb = "encrypted", Ob = "version", Tb = "versionMadeBy", Ab = "zipCrypto", $b = "directory", Rb = "executable", Fb = [
|
|
13409
13410
|
Wu,
|
|
13410
13411
|
Hu,
|
|
13411
13412
|
Gu,
|
|
@@ -13419,7 +13420,6 @@ const Wu = "filename", Hu = "rawFilename", zu = "comment", Vu = "rawComment", Zu
|
|
|
13419
13420
|
Yu,
|
|
13420
13421
|
oo,
|
|
13421
13422
|
oo,
|
|
13422
|
-
bb,
|
|
13423
13423
|
_b,
|
|
13424
13424
|
vb,
|
|
13425
13425
|
xb,
|
|
@@ -13431,6 +13431,7 @@ const Wu = "filename", Hu = "rawFilename", zu = "comment", Vu = "rawComment", Zu
|
|
|
13431
13431
|
Tb,
|
|
13432
13432
|
Ab,
|
|
13433
13433
|
$b,
|
|
13434
|
+
Rb,
|
|
13434
13435
|
"bitFlag",
|
|
13435
13436
|
"signature",
|
|
13436
13437
|
"filenameUTF8",
|
|
@@ -13447,15 +13448,15 @@ const Wu = "filename", Hu = "rawFilename", zu = "comment", Vu = "rawComment", Zu
|
|
|
13447
13448
|
];
|
|
13448
13449
|
class bp {
|
|
13449
13450
|
constructor(t) {
|
|
13450
|
-
|
|
13451
|
+
Fb.forEach((r) => this[r] = t[r]);
|
|
13451
13452
|
}
|
|
13452
13453
|
}
|
|
13453
|
-
const Ca = "File format is not recognized",
|
|
13454
|
+
const Ca = "File format is not recognized", Lb = "End of central directory not found", Ib = "End of Zip64 central directory locator not found", Cb = "Central directory header not found", jb = "Local file header not found", Nb = "Zip64 extra field not found", Db = "File contains encrypted entry", Ub = "Encryption method not supported", _p = "Compression method not supported", vp = "Split zip file", xp = "utf-8", kp = "cp437", Bb = [
|
|
13454
13455
|
[Zu, Fr],
|
|
13455
13456
|
[Gu, Fr],
|
|
13456
13457
|
[Yu, Fr],
|
|
13457
13458
|
[oo, mr]
|
|
13458
|
-
],
|
|
13459
|
+
], qb = {
|
|
13459
13460
|
[mr]: {
|
|
13460
13461
|
getValue: Be,
|
|
13461
13462
|
bytes: 4
|
|
@@ -13468,9 +13469,9 @@ const Ca = "File format is not recognized", Fb = "End of central directory not f
|
|
|
13468
13469
|
class Pp {
|
|
13469
13470
|
constructor(t, r = {}) {
|
|
13470
13471
|
Object.assign(this, {
|
|
13471
|
-
reader:
|
|
13472
|
+
reader: hb(t),
|
|
13472
13473
|
options: r,
|
|
13473
|
-
config:
|
|
13474
|
+
config: v1()
|
|
13474
13475
|
});
|
|
13475
13476
|
}
|
|
13476
13477
|
async *getEntriesGenerator(t = {}) {
|
|
@@ -13479,11 +13480,11 @@ class Pp {
|
|
|
13479
13480
|
const { config: a } = r;
|
|
13480
13481
|
if (await pi(i), (i.size === ft || !i.readUint8Array) && (i = new ao(await new Response(i.readable).blob()), await pi(i)), i.size < Xr)
|
|
13481
13482
|
throw new Error(Ca);
|
|
13482
|
-
i.chunkSize =
|
|
13483
|
-
const s = await
|
|
13483
|
+
i.chunkSize = x1(a);
|
|
13484
|
+
const s = await Zb(i, l1, i.size, Xr, mr * 16);
|
|
13484
13485
|
if (!s) {
|
|
13485
13486
|
const k = await et(i, 0, 4), S = Ye(k);
|
|
13486
|
-
throw Be(S) ==
|
|
13487
|
+
throw Be(S) == o1 ? new Error(vp) : new Error(Lb);
|
|
13487
13488
|
}
|
|
13488
13489
|
const n = Ye(s);
|
|
13489
13490
|
let o = Be(n, 12), l = Be(n, 16);
|
|
@@ -13493,7 +13494,7 @@ class Pp {
|
|
|
13493
13494
|
let O = Ge(n, 6), g = Ge(n, 8), w = 0, _ = 0;
|
|
13494
13495
|
if (l == Fr || o == Fr || g == mr || O == mr) {
|
|
13495
13496
|
const k = await et(i, s.offset - Aa, Aa), S = Ye(k);
|
|
13496
|
-
if (Be(S, 0) ==
|
|
13497
|
+
if (Be(S, 0) == f1) {
|
|
13497
13498
|
l = Zs(S, 8);
|
|
13498
13499
|
let j = await et(i, l, $a, -1), R = Ye(j);
|
|
13499
13500
|
const D = s.offset - Aa - $a;
|
|
@@ -13502,7 +13503,7 @@ class Pp {
|
|
|
13502
13503
|
l = D, w = l - V, j = await et(i, l, $a, -1), R = Ye(j);
|
|
13503
13504
|
}
|
|
13504
13505
|
if (Be(R, 0) != Xf)
|
|
13505
|
-
throw new Error(
|
|
13506
|
+
throw new Error(Ib);
|
|
13506
13507
|
m == mr && (m = Be(R, 16)), O == mr && (O = Be(R, 20)), g == mr && (g = Zs(R, 32)), o == Fr && (o = Zs(R, 40)), l -= o;
|
|
13507
13508
|
}
|
|
13508
13509
|
}
|
|
@@ -13523,9 +13524,9 @@ class Pp {
|
|
|
13523
13524
|
throw new Error(Ca);
|
|
13524
13525
|
const L = at(r, t, "filenameEncoding"), C = at(r, t, "commentEncoding");
|
|
13525
13526
|
for (let k = 0; k < g; k++) {
|
|
13526
|
-
const S = new
|
|
13527
|
+
const S = new Mb(i, a, r.options);
|
|
13527
13528
|
if (Be(I, T) != Kf)
|
|
13528
|
-
throw new Error(
|
|
13529
|
+
throw new Error(Cb);
|
|
13529
13530
|
Ju(S, I, T + 6);
|
|
13530
13531
|
const j = !!S.bitFlag.languageEncodingFlag, R = T + 46, D = R + S.filenameLength, V = D + S.extraFieldLength, B = Ge(I, T + 4), Y = B >> 8 == 0, G = B >> 8 == 3, te = E.subarray(R, D), z = Ge(I, T + 32), X = V + z, ee = E.subarray(V, X), Z = j, fe = j, oe = Be(I, T + 38), ie = Y && (pn(I, T + 38) & tp) == tp || G && (oe >> 16 & rp) == rp || te.length && te[te.length - 1] == sp.charCodeAt(0), Ae = G && (oe >> 16 & np) == np, Te = Be(I, T + 42) + w;
|
|
13531
13532
|
Object.assign(S, {
|
|
@@ -13577,7 +13578,7 @@ class Pp {
|
|
|
13577
13578
|
async close() {
|
|
13578
13579
|
}
|
|
13579
13580
|
}
|
|
13580
|
-
class
|
|
13581
|
+
class Mb {
|
|
13581
13582
|
constructor(t, r, i) {
|
|
13582
13583
|
Object.assign(this, {
|
|
13583
13584
|
reader: t,
|
|
@@ -13601,12 +13602,12 @@ class qb {
|
|
|
13601
13602
|
} = a, w = r.localDirectory = {}, _ = await et(s, n, 30, o), T = Ye(_);
|
|
13602
13603
|
let E = at(a, i, "password"), I = at(a, i, "rawPassword");
|
|
13603
13604
|
const $ = at(a, i, "passThrough");
|
|
13604
|
-
if (E = E && E.length && E, I = I && I.length && I, l && l.originalCompressionMethod !=
|
|
13605
|
+
if (E = E && E.length && E, I = I && I.length && I, l && l.originalCompressionMethod != i1)
|
|
13605
13606
|
throw new Error(_p);
|
|
13606
|
-
if (p !=
|
|
13607
|
+
if (p != s1 && p != n1 && !$)
|
|
13607
13608
|
throw new Error(_p);
|
|
13608
|
-
if (Be(T, 0) !=
|
|
13609
|
-
throw new Error(
|
|
13609
|
+
if (Be(T, 0) != a1)
|
|
13610
|
+
throw new Error(jb);
|
|
13610
13611
|
Ju(w, T, 4), w.rawExtraField = w.extraFieldLength ? await et(s, n + 30 + w.filenameLength, w.extraFieldLength, o) : new Uint8Array(), Qu(a, w, T, 4, !0), Object.assign(r, {
|
|
13611
13612
|
lastAccessDate: w.lastAccessDate,
|
|
13612
13613
|
creationDate: w.creationDate
|
|
@@ -13614,9 +13615,9 @@ class qb {
|
|
|
13614
13615
|
const L = a.encrypted && w.encrypted && !$, C = L && !l;
|
|
13615
13616
|
if ($ || (r.zipCrypto = C), L) {
|
|
13616
13617
|
if (!C && l.strength === ft)
|
|
13617
|
-
throw new Error(
|
|
13618
|
+
throw new Error(Ub);
|
|
13618
13619
|
if (!E && !I)
|
|
13619
|
-
throw new Error(
|
|
13620
|
+
throw new Error(Db);
|
|
13620
13621
|
}
|
|
13621
13622
|
const b = n + 30 + w.filenameLength + w.extraFieldLength, F = g, k = s.readable;
|
|
13622
13623
|
Object.assign(k, {
|
|
@@ -13625,7 +13626,7 @@ class qb {
|
|
|
13625
13626
|
size: F
|
|
13626
13627
|
});
|
|
13627
13628
|
const S = at(a, i, "signal"), j = at(a, i, "checkPasswordOnly");
|
|
13628
|
-
j && (t = new WritableStream()), t =
|
|
13629
|
+
j && (t = new WritableStream()), t = mb(t), await pi(t, $ ? g : O);
|
|
13629
13630
|
const { writable: R } = t, { onstart: D, onprogress: V, onend: B } = i, Y = {
|
|
13630
13631
|
options: {
|
|
13631
13632
|
codecType: Nu,
|
|
@@ -13648,7 +13649,7 @@ class qb {
|
|
|
13648
13649
|
};
|
|
13649
13650
|
let G = 0;
|
|
13650
13651
|
try {
|
|
13651
|
-
({ outputSize: G } = await
|
|
13652
|
+
({ outputSize: G } = await ab({ readable: k, writable: R }, Y));
|
|
13652
13653
|
} catch (te) {
|
|
13653
13654
|
if (!j || te.message != No)
|
|
13654
13655
|
throw te;
|
|
@@ -13665,12 +13666,12 @@ function Ju(e, t, r) {
|
|
|
13665
13666
|
encrypted: a,
|
|
13666
13667
|
version: Ge(t, r),
|
|
13667
13668
|
bitFlag: {
|
|
13668
|
-
level: (i &
|
|
13669
|
+
level: (i & w1) >> 1,
|
|
13669
13670
|
dataDescriptor: (i & Qf) == Qf,
|
|
13670
13671
|
languageEncodingFlag: (i & ep) == ep
|
|
13671
13672
|
},
|
|
13672
13673
|
rawLastModDate: s,
|
|
13673
|
-
lastModDate:
|
|
13674
|
+
lastModDate: Gb(s),
|
|
13674
13675
|
filenameLength: Ge(t, r + 22),
|
|
13675
13676
|
extraFieldLength: Ge(t, r + 24)
|
|
13676
13677
|
});
|
|
@@ -13694,31 +13695,31 @@ function Qu(e, t, r, i, a) {
|
|
|
13694
13695
|
uncompressedSize: Be(r, i + 18),
|
|
13695
13696
|
compressedSize: Be(r, i + 14)
|
|
13696
13697
|
});
|
|
13697
|
-
const c = n.get(
|
|
13698
|
-
c && (
|
|
13699
|
-
const d = n.get(
|
|
13698
|
+
const c = n.get(p1);
|
|
13699
|
+
c && (Wb(c, t), t.extraFieldZip64 = c);
|
|
13700
|
+
const d = n.get(m1);
|
|
13700
13701
|
d && (Ep(d, Wu, Hu, t, e), t.extraFieldUnicodePath = d);
|
|
13701
|
-
const m = n.get(
|
|
13702
|
+
const m = n.get(y1);
|
|
13702
13703
|
m && (Ep(m, zu, Vu, t, e), t.extraFieldUnicodeComment = m);
|
|
13703
|
-
const y = n.get(
|
|
13704
|
-
y ? (
|
|
13705
|
-
const O = n.get(
|
|
13706
|
-
O && (
|
|
13707
|
-
const g = n.get(
|
|
13708
|
-
g && (
|
|
13709
|
-
const w = n.get(
|
|
13704
|
+
const y = n.get(c1);
|
|
13705
|
+
y ? (Hb(y, t, p), t.extraFieldAES = y) : t.compressionMethod = p;
|
|
13706
|
+
const O = n.get(u1);
|
|
13707
|
+
O && (zb(O, t), t.extraFieldNTFS = O);
|
|
13708
|
+
const g = n.get(h1);
|
|
13709
|
+
g && (Vb(g, t, a), t.extraFieldExtendedTimestamp = g);
|
|
13710
|
+
const w = n.get(g1);
|
|
13710
13711
|
w && (t.extraFieldUSDZ = w);
|
|
13711
13712
|
}
|
|
13712
|
-
function
|
|
13713
|
+
function Wb(e, t) {
|
|
13713
13714
|
t.zip64 = !0;
|
|
13714
|
-
const r = Ye(e.data), i =
|
|
13715
|
+
const r = Ye(e.data), i = Bb.filter(([a, s]) => t[a] == s);
|
|
13715
13716
|
for (let a = 0, s = 0; a < i.length; a++) {
|
|
13716
13717
|
const [n, o] = i[a];
|
|
13717
13718
|
if (t[n] == o) {
|
|
13718
|
-
const l =
|
|
13719
|
+
const l = qb[o];
|
|
13719
13720
|
t[n] = e[n] = l.getValue(r, s), s += l.bytes;
|
|
13720
13721
|
} else if (e[n])
|
|
13721
|
-
throw new Error(
|
|
13722
|
+
throw new Error(Nb);
|
|
13722
13723
|
}
|
|
13723
13724
|
}
|
|
13724
13725
|
function Ep(e, t, r, i, a) {
|
|
@@ -13733,7 +13734,7 @@ function Ep(e, t, r, i, a) {
|
|
|
13733
13734
|
valid: !a.bitFlag.languageEncodingFlag && l == Be(o, 0)
|
|
13734
13735
|
}), e.valid && (i[t] = e[t], i[t + "UTF8"] = !0);
|
|
13735
13736
|
}
|
|
13736
|
-
function
|
|
13737
|
+
function Hb(e, t, r) {
|
|
13737
13738
|
const i = Ye(e.data), a = pn(i, 4);
|
|
13738
13739
|
Object.assign(e, {
|
|
13739
13740
|
vendorVersion: pn(i, 0),
|
|
@@ -13743,13 +13744,13 @@ function Wb(e, t, r) {
|
|
|
13743
13744
|
compressionMethod: Ge(i, 5)
|
|
13744
13745
|
}), t.compressionMethod = e.compressionMethod;
|
|
13745
13746
|
}
|
|
13746
|
-
function
|
|
13747
|
+
function zb(e, t) {
|
|
13747
13748
|
const r = Ye(e.data);
|
|
13748
13749
|
let i = 4, a;
|
|
13749
13750
|
try {
|
|
13750
13751
|
for (; i < e.data.length && !a; ) {
|
|
13751
13752
|
const s = Ge(r, i), n = Ge(r, i + 2);
|
|
13752
|
-
s ==
|
|
13753
|
+
s == d1 && (a = e.data.slice(i + 4, i + 4 + n)), i += 4 + n;
|
|
13753
13754
|
}
|
|
13754
13755
|
} catch {
|
|
13755
13756
|
}
|
|
@@ -13767,9 +13768,9 @@ function Hb(e, t) {
|
|
|
13767
13768
|
} catch {
|
|
13768
13769
|
}
|
|
13769
13770
|
}
|
|
13770
|
-
function
|
|
13771
|
+
function Vb(e, t, r) {
|
|
13771
13772
|
const i = Ye(e.data), a = pn(i, 0), s = [], n = [];
|
|
13772
|
-
r ? ((a & 1) == 1 && (s.push(lo), n.push(fo)), (a & 2) == 2 && (s.push(Ku), n.push(
|
|
13773
|
+
r ? ((a & 1) == 1 && (s.push(lo), n.push(fo)), (a & 2) == 2 && (s.push(Ku), n.push(wb)), (a & 4) == 4 && (s.push(Xu), n.push(bb))) : e.data.length >= 5 && (s.push(lo), n.push(fo));
|
|
13773
13774
|
let o = 1;
|
|
13774
13775
|
s.forEach((l, p) => {
|
|
13775
13776
|
if (e.data.length >= o + 4) {
|
|
@@ -13781,9 +13782,9 @@ function zb(e, t, r) {
|
|
|
13781
13782
|
o += 4;
|
|
13782
13783
|
});
|
|
13783
13784
|
}
|
|
13784
|
-
async function
|
|
13785
|
+
async function Zb(e, t, r, i, a) {
|
|
13785
13786
|
const s = new Uint8Array(4), n = Ye(s);
|
|
13786
|
-
|
|
13787
|
+
Yb(n, 0, t);
|
|
13787
13788
|
const o = i + a;
|
|
13788
13789
|
return await l(i) || await l(Math.min(o, r));
|
|
13789
13790
|
async function l(p) {
|
|
@@ -13799,7 +13800,7 @@ async function Vb(e, t, r, i, a) {
|
|
|
13799
13800
|
function at(e, t, r) {
|
|
13800
13801
|
return t[r] === ft ? e.options[r] : t[r];
|
|
13801
13802
|
}
|
|
13802
|
-
function
|
|
13803
|
+
function Gb(e) {
|
|
13803
13804
|
const t = (e & 4294901760) >> 16, r = e & 65535;
|
|
13804
13805
|
try {
|
|
13805
13806
|
return new Date(1980 + ((t & 65024) >> 9), ((t & 480) >> 5) - 1, t & 31, (r & 63488) >> 11, (r & 2016) >> 5, (r & 31) * 2, 0);
|
|
@@ -13821,7 +13822,7 @@ function Be(e, t) {
|
|
|
13821
13822
|
function Zs(e, t) {
|
|
13822
13823
|
return Number(e.getBigUint64(t, !0));
|
|
13823
13824
|
}
|
|
13824
|
-
function
|
|
13825
|
+
function Yb(e, t, r) {
|
|
13825
13826
|
e.setUint32(t, r, !0);
|
|
13826
13827
|
}
|
|
13827
13828
|
function Ye(e) {
|
|
@@ -13833,9 +13834,9 @@ try {
|
|
|
13833
13834
|
} catch {
|
|
13834
13835
|
}
|
|
13835
13836
|
jo({ baseURL: ed });
|
|
13836
|
-
|
|
13837
|
-
jo({ Deflate:
|
|
13838
|
-
class
|
|
13837
|
+
lb(jo);
|
|
13838
|
+
jo({ Deflate: Cw, Inflate: r1 });
|
|
13839
|
+
class Kb {
|
|
13839
13840
|
constructor(t) {
|
|
13840
13841
|
this.fileTree = t;
|
|
13841
13842
|
}
|
|
@@ -13884,7 +13885,7 @@ class ci {
|
|
|
13884
13885
|
return new ci(r);
|
|
13885
13886
|
}
|
|
13886
13887
|
async read(t) {
|
|
13887
|
-
const r = await this.getEntry(t), i = await r.getData(new
|
|
13888
|
+
const r = await this.getEntry(t), i = await r.getData(new ub());
|
|
13888
13889
|
return new Ir(i.stream(), t, {
|
|
13889
13890
|
filesize: r.uncompressedSize
|
|
13890
13891
|
});
|
|
@@ -13911,7 +13912,7 @@ class ci {
|
|
|
13911
13912
|
return Array.from(t.keys());
|
|
13912
13913
|
}
|
|
13913
13914
|
}
|
|
13914
|
-
class
|
|
13915
|
+
class Xb {
|
|
13915
13916
|
constructor(t, r) {
|
|
13916
13917
|
this.chroot = t, this.backend = r;
|
|
13917
13918
|
}
|
|
@@ -13920,7 +13921,7 @@ class Kb {
|
|
|
13920
13921
|
return this.backend.read(r);
|
|
13921
13922
|
}
|
|
13922
13923
|
}
|
|
13923
|
-
class
|
|
13924
|
+
class Jb {
|
|
13924
13925
|
/**
|
|
13925
13926
|
* Creates a new OverlayFilesystem.
|
|
13926
13927
|
*
|
|
@@ -13960,7 +13961,7 @@ class Xb {
|
|
|
13960
13961
|
);
|
|
13961
13962
|
}
|
|
13962
13963
|
}
|
|
13963
|
-
class
|
|
13964
|
+
class Qb {
|
|
13964
13965
|
constructor(t) {
|
|
13965
13966
|
if (this.baseUrl = "", this.options = t, this.isDataUrl = t.baseUrl.startsWith("data:"), this.isDataUrl)
|
|
13966
13967
|
return;
|
|
@@ -14025,7 +14026,7 @@ async function po(e, t) {
|
|
|
14025
14026
|
});
|
|
14026
14027
|
}
|
|
14027
14028
|
let On;
|
|
14028
|
-
async function
|
|
14029
|
+
async function e_() {
|
|
14029
14030
|
if (On !== void 0)
|
|
14030
14031
|
return On;
|
|
14031
14032
|
try {
|
|
@@ -14044,14 +14045,14 @@ async function Qb() {
|
|
|
14044
14045
|
}
|
|
14045
14046
|
return On;
|
|
14046
14047
|
}
|
|
14047
|
-
class
|
|
14048
|
+
class t_ extends Error {
|
|
14048
14049
|
constructor(t, r, i) {
|
|
14049
14050
|
super(
|
|
14050
14051
|
`Could not fetch ${t} – your network appears to be blocking this request (HTTP ${r}). This often happens on school, university, or corporate networks. Try switching to a different network or using a VPN.`
|
|
14051
14052
|
), this.name = "FirewallInterferenceError", this.url = t, this.status = r, this.statusText = i;
|
|
14052
14053
|
}
|
|
14053
14054
|
}
|
|
14054
|
-
const
|
|
14055
|
+
const r_ = "X-Playground-Cors-Proxy", td = /* @__PURE__ */ new Map([
|
|
14055
14056
|
[
|
|
14056
14057
|
"api.anthropic.com",
|
|
14057
14058
|
{
|
|
@@ -14061,15 +14062,15 @@ const t_ = "X-Playground-Cors-Proxy", td = /* @__PURE__ */ new Map([
|
|
|
14061
14062
|
["api.openai.com", {}],
|
|
14062
14063
|
["generativelanguage.googleapis.com", {}]
|
|
14063
14064
|
]);
|
|
14064
|
-
async function
|
|
14065
|
+
async function n_(e, t, r, i) {
|
|
14065
14066
|
var l;
|
|
14066
14067
|
let a = typeof e == "string" ? new Request(e, t) : e;
|
|
14067
14068
|
const s = i ? new URL(i) : null;
|
|
14068
14069
|
let n = s ? new URL(a.url, s) : new URL(a.url);
|
|
14069
|
-
if (n_(n))
|
|
14070
|
-
return await fetch(a);
|
|
14071
14070
|
if (s_(n))
|
|
14072
|
-
return
|
|
14071
|
+
return await fetch(a);
|
|
14072
|
+
if (i_(n))
|
|
14073
|
+
return a = await a_(
|
|
14073
14074
|
a,
|
|
14074
14075
|
n
|
|
14075
14076
|
), await fetch(a);
|
|
@@ -14090,15 +14091,15 @@ async function r_(e, t, r, i) {
|
|
|
14090
14091
|
m && m.toLowerCase().includes("multipart/form-data") && (p.set("x-cors-proxy-content-type", m), p.set("content-type", "application/octet-stream"));
|
|
14091
14092
|
let y = null;
|
|
14092
14093
|
const O = a.method.toUpperCase();
|
|
14093
|
-
O !== "GET" && O !== "HEAD" && (await
|
|
14094
|
+
O !== "GET" && O !== "HEAD" && (await e_() ? y = o.body : y = await o.arrayBuffer()), y instanceof ReadableStream && new URL(r, import.meta.url).protocol === "http:" && (y = await new Response(y).arrayBuffer());
|
|
14094
14095
|
const g = await po(a, {
|
|
14095
14096
|
url: `${r}${a.url}`,
|
|
14096
14097
|
headers: p,
|
|
14097
14098
|
body: y,
|
|
14098
14099
|
...d && { credentials: "include" }
|
|
14099
14100
|
}), w = await fetch(g);
|
|
14100
|
-
if (!w.headers.has(
|
|
14101
|
-
throw new
|
|
14101
|
+
if (!w.headers.has(r_))
|
|
14102
|
+
throw new t_(
|
|
14102
14103
|
a.url,
|
|
14103
14104
|
w.status,
|
|
14104
14105
|
w.statusText
|
|
@@ -14106,13 +14107,13 @@ async function r_(e, t, r, i) {
|
|
|
14106
14107
|
return w;
|
|
14107
14108
|
}
|
|
14108
14109
|
}
|
|
14109
|
-
function
|
|
14110
|
+
function s_(e) {
|
|
14110
14111
|
return e.hostname === "localhost" || e.hostname === "127.0.0.1" || e.hostname === "[::1]" || e.hostname === "::1";
|
|
14111
14112
|
}
|
|
14112
|
-
function
|
|
14113
|
+
function i_(e) {
|
|
14113
14114
|
return e.protocol === "https:" && td.has(e.hostname);
|
|
14114
14115
|
}
|
|
14115
|
-
async function
|
|
14116
|
+
async function a_(e, t) {
|
|
14116
14117
|
const r = td.get(t.hostname);
|
|
14117
14118
|
if (!r)
|
|
14118
14119
|
return e;
|
|
@@ -14123,7 +14124,7 @@ async function i_(e, t) {
|
|
|
14123
14124
|
headers: i
|
|
14124
14125
|
});
|
|
14125
14126
|
}
|
|
14126
|
-
const
|
|
14127
|
+
const o_ = `Blueprint resource of type "bundled" requires a filesystem.
|
|
14127
14128
|
|
|
14128
14129
|
This Blueprint refers to files that should be bundled with it (like images, plugins, or themes), but the filesystem needed to access these files is not available. This usually happens when:
|
|
14129
14130
|
|
|
@@ -14136,8 +14137,8 @@ To fix this:
|
|
|
14136
14137
|
• Check that the "resource": "bundled" references in your Blueprint match actual files in your bundle
|
|
14137
14138
|
|
|
14138
14139
|
Learn more about Blueprint resources: https://wordpress.github.io/wordpress-playground/blueprints/data-format#resources`;
|
|
14139
|
-
class
|
|
14140
|
-
constructor(t =
|
|
14140
|
+
class l_ extends Error {
|
|
14141
|
+
constructor(t = o_) {
|
|
14141
14142
|
super(t), this.name = "BlueprintFilesystemRequiredError";
|
|
14142
14143
|
}
|
|
14143
14144
|
}
|
|
@@ -14146,7 +14147,7 @@ class Na extends Error {
|
|
|
14146
14147
|
super(t, i), this.name = "ResourceDownloadError", this.url = r;
|
|
14147
14148
|
}
|
|
14148
14149
|
}
|
|
14149
|
-
const
|
|
14150
|
+
const f_ = [
|
|
14150
14151
|
"vfs",
|
|
14151
14152
|
"literal",
|
|
14152
14153
|
"wordpress.org/themes",
|
|
@@ -14156,17 +14157,17 @@ const l_ = [
|
|
|
14156
14157
|
"bundled",
|
|
14157
14158
|
"zip"
|
|
14158
14159
|
];
|
|
14159
|
-
function f_(e) {
|
|
14160
|
-
return e && typeof e == "object" && typeof e.resource == "string" && l_.includes(e.resource);
|
|
14161
|
-
}
|
|
14162
14160
|
function p_(e) {
|
|
14161
|
+
return e && typeof e == "object" && typeof e.resource == "string" && f_.includes(e.resource);
|
|
14162
|
+
}
|
|
14163
|
+
function c_(e) {
|
|
14163
14164
|
try {
|
|
14164
14165
|
return new URL(e).hostname === "github-proxy.com";
|
|
14165
14166
|
} catch {
|
|
14166
14167
|
return !1;
|
|
14167
14168
|
}
|
|
14168
14169
|
}
|
|
14169
|
-
function
|
|
14170
|
+
function u_(e) {
|
|
14170
14171
|
let t;
|
|
14171
14172
|
try {
|
|
14172
14173
|
t = new URL(e);
|
|
@@ -14232,8 +14233,8 @@ class Pt {
|
|
|
14232
14233
|
streamBundledFile: s,
|
|
14233
14234
|
gitAdditionalHeadersCallback: n
|
|
14234
14235
|
}) {
|
|
14235
|
-
if (t.resource === "url" &&
|
|
14236
|
-
const l =
|
|
14236
|
+
if (t.resource === "url" && c_(t.url)) {
|
|
14237
|
+
const l = u_(t.url);
|
|
14237
14238
|
l && (console.warn(
|
|
14238
14239
|
`[Blueprints] github-proxy.com is deprecated and will stop working soon. The URL "${t.url}" has been automatically converted to a ${l.resource} resource. Please update your Blueprint to use native resource types. See: https://wordpress.github.io/wordpress-playground/blueprints/steps/resources`
|
|
14239
14240
|
), t = l);
|
|
@@ -14241,33 +14242,33 @@ class Pt {
|
|
|
14241
14242
|
let o;
|
|
14242
14243
|
switch (t.resource) {
|
|
14243
14244
|
case "vfs":
|
|
14244
|
-
o = new
|
|
14245
|
+
o = new d_(t, i);
|
|
14245
14246
|
break;
|
|
14246
14247
|
case "literal":
|
|
14247
|
-
o = new
|
|
14248
|
+
o = new h_(t, i);
|
|
14248
14249
|
break;
|
|
14249
14250
|
case "wordpress.org/themes":
|
|
14250
|
-
o = new
|
|
14251
|
+
o = new v_(t, i);
|
|
14251
14252
|
break;
|
|
14252
14253
|
case "wordpress.org/plugins":
|
|
14253
|
-
o = new
|
|
14254
|
+
o = new x_(t, i);
|
|
14254
14255
|
break;
|
|
14255
14256
|
case "url":
|
|
14256
|
-
o = new
|
|
14257
|
+
o = new g_(t, i, { corsProxy: a });
|
|
14257
14258
|
break;
|
|
14258
14259
|
case "git:directory":
|
|
14259
|
-
o = new
|
|
14260
|
+
o = new w_(t, i, {
|
|
14260
14261
|
corsProxy: a,
|
|
14261
14262
|
additionalHeaders: n
|
|
14262
14263
|
});
|
|
14263
14264
|
break;
|
|
14264
14265
|
case "literal:directory":
|
|
14265
|
-
o = new
|
|
14266
|
+
o = new __(t, i);
|
|
14266
14267
|
break;
|
|
14267
14268
|
case "bundled":
|
|
14268
14269
|
if (!s)
|
|
14269
|
-
throw new
|
|
14270
|
-
o = new
|
|
14270
|
+
throw new l_();
|
|
14271
|
+
o = new E_(
|
|
14271
14272
|
t,
|
|
14272
14273
|
s,
|
|
14273
14274
|
i
|
|
@@ -14281,7 +14282,7 @@ class Pt {
|
|
|
14281
14282
|
streamBundledFile: s,
|
|
14282
14283
|
gitAdditionalHeadersCallback: n
|
|
14283
14284
|
});
|
|
14284
|
-
o = new
|
|
14285
|
+
o = new S_(t, l, i);
|
|
14285
14286
|
break;
|
|
14286
14287
|
}
|
|
14287
14288
|
default:
|
|
@@ -14289,7 +14290,7 @@ class Pt {
|
|
|
14289
14290
|
`Unknown resource type: ${t.resource}`
|
|
14290
14291
|
);
|
|
14291
14292
|
}
|
|
14292
|
-
return r && (o = new
|
|
14293
|
+
return r && (o = new P_(o, r)), new k_(o);
|
|
14293
14294
|
}
|
|
14294
14295
|
}
|
|
14295
14296
|
class rd extends Pt {
|
|
@@ -14317,7 +14318,7 @@ class rd extends Pt {
|
|
|
14317
14318
|
this.resource.setPlayground(t);
|
|
14318
14319
|
}
|
|
14319
14320
|
}
|
|
14320
|
-
class
|
|
14321
|
+
class d_ extends Pt {
|
|
14321
14322
|
/**
|
|
14322
14323
|
* Creates a new instance of `VFSResource`.
|
|
14323
14324
|
* @param playground The playground client.
|
|
@@ -14340,7 +14341,7 @@ class u_ extends Pt {
|
|
|
14340
14341
|
return this.resource.path.split("/").pop() || "";
|
|
14341
14342
|
}
|
|
14342
14343
|
}
|
|
14343
|
-
class
|
|
14344
|
+
class h_ extends Pt {
|
|
14344
14345
|
/**
|
|
14345
14346
|
* Creates a new instance of `LiteralResource`.
|
|
14346
14347
|
* @param resource The literal reference.
|
|
@@ -14373,7 +14374,7 @@ class qo extends Pt {
|
|
|
14373
14374
|
(r = this.progress) == null || r.setCaption(this.caption);
|
|
14374
14375
|
const t = this.getURL();
|
|
14375
14376
|
try {
|
|
14376
|
-
let s = await
|
|
14377
|
+
let s = await n_(
|
|
14377
14378
|
t,
|
|
14378
14379
|
void 0,
|
|
14379
14380
|
this.corsProxy,
|
|
@@ -14386,13 +14387,13 @@ class qo extends Pt {
|
|
|
14386
14387
|
);
|
|
14387
14388
|
if (s = await $d(
|
|
14388
14389
|
s,
|
|
14389
|
-
((a = this.progress) == null ? void 0 : a.loadingListener) ??
|
|
14390
|
+
((a = this.progress) == null ? void 0 : a.loadingListener) ?? y_
|
|
14390
14391
|
), s.status !== 200)
|
|
14391
14392
|
throw new Na(
|
|
14392
14393
|
`Could not download "${t}"`,
|
|
14393
14394
|
t
|
|
14394
14395
|
);
|
|
14395
|
-
const n = this.name ||
|
|
14396
|
+
const n = this.name || m_(
|
|
14396
14397
|
s.headers.get("content-disposition") || ""
|
|
14397
14398
|
) || encodeURIComponent(t);
|
|
14398
14399
|
return new File([await s.arrayBuffer()], n);
|
|
@@ -14427,7 +14428,7 @@ Confirm that the URL is correct, the server is reachable, and the file is actual
|
|
|
14427
14428
|
return !0;
|
|
14428
14429
|
}
|
|
14429
14430
|
}
|
|
14430
|
-
function
|
|
14431
|
+
function m_(e) {
|
|
14431
14432
|
if (!e)
|
|
14432
14433
|
return null;
|
|
14433
14434
|
const t = e.match(/filename\*?=([^;]+)/i);
|
|
@@ -14444,9 +14445,9 @@ function h_(e) {
|
|
|
14444
14445
|
}
|
|
14445
14446
|
return r;
|
|
14446
14447
|
}
|
|
14447
|
-
const
|
|
14448
|
+
const y_ = () => {
|
|
14448
14449
|
};
|
|
14449
|
-
class
|
|
14450
|
+
class g_ extends qo {
|
|
14450
14451
|
/**
|
|
14451
14452
|
* Creates a new instance of `UrlResource`.
|
|
14452
14453
|
* @param resource The URL reference.
|
|
@@ -14472,7 +14473,7 @@ class y_ extends qo {
|
|
|
14472
14473
|
return this.resource.caption ?? super.caption;
|
|
14473
14474
|
}
|
|
14474
14475
|
}
|
|
14475
|
-
class
|
|
14476
|
+
class w_ extends Pt {
|
|
14476
14477
|
constructor(t, r, i) {
|
|
14477
14478
|
super(), this.reference = t, this._progress = r, this.options = i;
|
|
14478
14479
|
}
|
|
@@ -14480,21 +14481,21 @@ class g_ extends Pt {
|
|
|
14480
14481
|
var i, a, s;
|
|
14481
14482
|
const t = ((a = (i = this.options) == null ? void 0 : i.additionalHeaders) == null ? void 0 : a.call(i, this.reference.url)) ?? {}, r = (s = this.options) != null && s.corsProxy ? `${this.options.corsProxy}${this.reference.url}` : this.reference.url;
|
|
14482
14483
|
try {
|
|
14483
|
-
const n = await
|
|
14484
|
+
const n = await iw(
|
|
14484
14485
|
r,
|
|
14485
14486
|
{
|
|
14486
14487
|
value: this.reference.ref,
|
|
14487
14488
|
type: this.reference.refType ?? "infer"
|
|
14488
14489
|
},
|
|
14489
14490
|
t
|
|
14490
|
-
), o = await
|
|
14491
|
+
), o = await sw(
|
|
14491
14492
|
r,
|
|
14492
14493
|
n,
|
|
14493
14494
|
t
|
|
14494
14495
|
), l = (this.reference.path ?? "").replace(
|
|
14495
14496
|
/^\/+/,
|
|
14496
14497
|
""
|
|
14497
|
-
), p =
|
|
14498
|
+
), p = ww(o, l), c = await rw(
|
|
14498
14499
|
r,
|
|
14499
14500
|
n,
|
|
14500
14501
|
p,
|
|
@@ -14504,11 +14505,11 @@ class g_ extends Pt {
|
|
|
14504
14505
|
}
|
|
14505
14506
|
);
|
|
14506
14507
|
let d = c.files;
|
|
14507
|
-
return d =
|
|
14508
|
+
return d = b_(
|
|
14508
14509
|
d,
|
|
14509
14510
|
(m) => m.substring(l.length).replace(/^\/+/, "")
|
|
14510
14511
|
), this.reference[".git"] && (d = {
|
|
14511
|
-
...await
|
|
14512
|
+
...await gw({
|
|
14512
14513
|
repoUrl: this.reference.url,
|
|
14513
14514
|
commitHash: n,
|
|
14514
14515
|
ref: this.reference.ref,
|
|
@@ -14545,12 +14546,12 @@ class g_ extends Pt {
|
|
|
14545
14546
|
].filter((r) => r.length > 0).join(" ");
|
|
14546
14547
|
}
|
|
14547
14548
|
}
|
|
14548
|
-
function
|
|
14549
|
+
function b_(e, t) {
|
|
14549
14550
|
return Object.fromEntries(
|
|
14550
14551
|
Object.entries(e).map(([r, i]) => [t(r), i])
|
|
14551
14552
|
);
|
|
14552
14553
|
}
|
|
14553
|
-
class
|
|
14554
|
+
class __ extends Pt {
|
|
14554
14555
|
constructor(t, r) {
|
|
14555
14556
|
super(), this.reference = t, this._progress = r;
|
|
14556
14557
|
}
|
|
@@ -14562,7 +14563,7 @@ class b_ extends Pt {
|
|
|
14562
14563
|
return this.reference.name;
|
|
14563
14564
|
}
|
|
14564
14565
|
}
|
|
14565
|
-
class
|
|
14566
|
+
class v_ extends qo {
|
|
14566
14567
|
constructor(t, r) {
|
|
14567
14568
|
super(r), this.resource = t;
|
|
14568
14569
|
}
|
|
@@ -14573,7 +14574,7 @@ class __ extends qo {
|
|
|
14573
14574
|
return `https://downloads.wordpress.org/theme/${nd(this.resource.slug)}`;
|
|
14574
14575
|
}
|
|
14575
14576
|
}
|
|
14576
|
-
class
|
|
14577
|
+
class x_ extends qo {
|
|
14577
14578
|
constructor(t, r) {
|
|
14578
14579
|
super(r), this.resource = t;
|
|
14579
14580
|
}
|
|
@@ -14589,13 +14590,13 @@ class v_ extends qo {
|
|
|
14589
14590
|
function nd(e) {
|
|
14590
14591
|
return !e || e.endsWith(".zip") ? e : e + ".latest-stable.zip";
|
|
14591
14592
|
}
|
|
14592
|
-
class
|
|
14593
|
+
class k_ extends rd {
|
|
14593
14594
|
/** @inheritDoc */
|
|
14594
14595
|
async resolve() {
|
|
14595
14596
|
return this.promise || (this.promise = this.resource.resolve()), this.promise;
|
|
14596
14597
|
}
|
|
14597
14598
|
}
|
|
14598
|
-
class
|
|
14599
|
+
class P_ extends rd {
|
|
14599
14600
|
constructor(t, r) {
|
|
14600
14601
|
super(t), this.semaphore = r;
|
|
14601
14602
|
}
|
|
@@ -14604,7 +14605,7 @@ class k_ extends rd {
|
|
|
14604
14605
|
return this.isAsync ? this.semaphore.run(() => this.resource.resolve()) : this.resource.resolve();
|
|
14605
14606
|
}
|
|
14606
14607
|
}
|
|
14607
|
-
class
|
|
14608
|
+
class E_ extends Pt {
|
|
14608
14609
|
/**
|
|
14609
14610
|
* Creates a new instance of `BlueprintResource`.
|
|
14610
14611
|
* @param resource The blueprint reference.
|
|
@@ -14657,7 +14658,7 @@ Error details: ${a instanceof Error ? a.message : String(a)}`,
|
|
|
14657
14658
|
return !0;
|
|
14658
14659
|
}
|
|
14659
14660
|
}
|
|
14660
|
-
class
|
|
14661
|
+
class S_ extends Pt {
|
|
14661
14662
|
constructor(t, r, i) {
|
|
14662
14663
|
super(), this.reference = t, this.innerResource = r, this._progress = i;
|
|
14663
14664
|
}
|
|
@@ -14667,7 +14668,7 @@ class E_ extends Pt {
|
|
|
14667
14668
|
(s = this.progress) == null || s.setCaption(`Creating ZIP: ${this.name}`);
|
|
14668
14669
|
const t = await this.innerResource.resolve();
|
|
14669
14670
|
let r;
|
|
14670
|
-
t instanceof File ? r = [t] : r =
|
|
14671
|
+
t instanceof File ? r = [t] : r = O_(t.files, t.name);
|
|
14671
14672
|
const i = Kd(r), a = await Wd(this.name, i);
|
|
14672
14673
|
return (n = this.progress) == null || n.set(100), a;
|
|
14673
14674
|
}
|
|
@@ -14683,7 +14684,7 @@ class E_ extends Pt {
|
|
|
14683
14684
|
return !0;
|
|
14684
14685
|
}
|
|
14685
14686
|
}
|
|
14686
|
-
function
|
|
14687
|
+
function O_(e, t) {
|
|
14687
14688
|
const r = [];
|
|
14688
14689
|
function i(a, s) {
|
|
14689
14690
|
for (const [n, o] of Object.entries(a)) {
|
|
@@ -14850,7 +14851,7 @@ ${c.join(`
|
|
|
14850
14851
|
2
|
|
14851
14852
|
)}`
|
|
14852
14853
|
);
|
|
14853
|
-
},
|
|
14854
|
+
}, T_ = async (e, { code: t }) => {
|
|
14854
14855
|
let r = typeof t == "string" ? t : t.content;
|
|
14855
14856
|
return (r.includes('"wordpress/wp-load.php"') || r.includes("'wordpress/wp-load.php'")) && (Oe.error(
|
|
14856
14857
|
`
|
|
@@ -14875,7 +14876,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
14875
14876
|
'"wordpress/wp-load.php"',
|
|
14876
14877
|
'"/wordpress/wp-load.php"'
|
|
14877
14878
|
)), await e.run({ code: r });
|
|
14878
|
-
},
|
|
14879
|
+
}, A_ = async (e, { options: t }) => await e.run(t), co = async (e, { path: t }) => {
|
|
14879
14880
|
t.startsWith("/") || (Oe.error(
|
|
14880
14881
|
`
|
|
14881
14882
|
The rm() step in your Blueprint refers to a relative path.
|
|
@@ -14893,7 +14894,7 @@ Use: rm({ path: '/wordpress/wp-load.php' });
|
|
|
14893
14894
|
This will ensure your code works reliably regardless of the current working directory.
|
|
14894
14895
|
`.trim()
|
|
14895
14896
|
), t = `/${t}`), await e.unlink(t);
|
|
14896
|
-
},
|
|
14897
|
+
}, $_ = `<?php
|
|
14897
14898
|
|
|
14898
14899
|
/**
|
|
14899
14900
|
* Naively splits an SQL string into a sequence of queries. It
|
|
@@ -15056,7 +15057,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15056
15057
|
return $this->state;
|
|
15057
15058
|
}
|
|
15058
15059
|
|
|
15059
|
-
}`,
|
|
15060
|
+
}`, R_ = async (e, { sql: t }, r) => {
|
|
15060
15061
|
r == null || r.tracker.setCaption("Executing SQL Queries");
|
|
15061
15062
|
const i = `/tmp/${Ys()}.sql`, a = `/tmp/${Ys()}.php`;
|
|
15062
15063
|
await e.writeFile(
|
|
@@ -15064,7 +15065,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15064
15065
|
new Uint8Array(await t.arrayBuffer())
|
|
15065
15066
|
), await e.writeFile(
|
|
15066
15067
|
a,
|
|
15067
|
-
new TextEncoder().encode(
|
|
15068
|
+
new TextEncoder().encode($_)
|
|
15068
15069
|
);
|
|
15069
15070
|
const s = await e.documentRoot, n = dn({ docroot: s, sqlFilename: i, streamClassFilename: a }), o = await e.run({
|
|
15070
15071
|
code: `<?php
|
|
@@ -15114,7 +15115,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15114
15115
|
`
|
|
15115
15116
|
});
|
|
15116
15117
|
return await co(e, { path: i }), await co(e, { path: a }), o;
|
|
15117
|
-
},
|
|
15118
|
+
}, F_ = async (e, { request: t }) => {
|
|
15118
15119
|
Oe.warn(
|
|
15119
15120
|
'Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.'
|
|
15120
15121
|
);
|
|
@@ -15124,7 +15125,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15124
15125
|
`Request failed with status ${r.httpStatusCode}`
|
|
15125
15126
|
);
|
|
15126
15127
|
return r;
|
|
15127
|
-
},
|
|
15128
|
+
}, L_ = "8.3", ad = async (e, t, r, i = !0) => {
|
|
15128
15129
|
const a = `/tmp/file-${Math.random()}.zip`;
|
|
15129
15130
|
if (t instanceof File) {
|
|
15130
15131
|
const n = t;
|
|
@@ -15640,18 +15641,18 @@ class WP_Config_Transformer {
|
|
|
15640
15641
|
}
|
|
15641
15642
|
}
|
|
15642
15643
|
`;
|
|
15643
|
-
async function
|
|
15644
|
+
async function I_(e, t) {
|
|
15644
15645
|
const r = Se(t, "wp-config.php");
|
|
15645
15646
|
!e.fileExists(r) && e.fileExists(Se(t, "wp-config-sample.php")) && await e.writeFile(
|
|
15646
15647
|
r,
|
|
15647
15648
|
await e.readFileAsBuffer(
|
|
15648
15649
|
Se(t, "wp-config-sample.php")
|
|
15649
15650
|
)
|
|
15650
|
-
), e.fileExists(r) && await
|
|
15651
|
+
), e.fileExists(r) && await j_(e, r, {
|
|
15651
15652
|
DB_NAME: "wordpress"
|
|
15652
15653
|
});
|
|
15653
15654
|
}
|
|
15654
|
-
async function
|
|
15655
|
+
async function C_(e, t, r) {
|
|
15655
15656
|
const i = dn({ wpConfigPath: t, constants: r });
|
|
15656
15657
|
if ((await e.run({
|
|
15657
15658
|
code: `${od}
|
|
@@ -15663,7 +15664,7 @@ async function I_(e, t, r) {
|
|
|
15663
15664
|
})).errors.length > 0)
|
|
15664
15665
|
throw new Error("Failed to rewrite constants in wp-config.php.");
|
|
15665
15666
|
}
|
|
15666
|
-
async function
|
|
15667
|
+
async function j_(e, t, r) {
|
|
15667
15668
|
const i = Object.keys(r), a = dn({ wpConfigPath: t, constantNames: i }), s = await e.run({
|
|
15668
15669
|
code: `${od}
|
|
15669
15670
|
$transformer = WP_Config_Transformer::from_file(${a.wpConfigPath});
|
|
@@ -15692,18 +15693,18 @@ async function C_(e, t, r) {
|
|
|
15692
15693
|
const Mo = async (e, { consts: t, method: r = "define-before-run" }) => {
|
|
15693
15694
|
switch (r) {
|
|
15694
15695
|
case "define-before-run":
|
|
15695
|
-
await
|
|
15696
|
+
await N_(e, t);
|
|
15696
15697
|
break;
|
|
15697
15698
|
case "rewrite-wp-config": {
|
|
15698
15699
|
const i = await e.documentRoot, a = Se(i, "/wp-config.php");
|
|
15699
|
-
await
|
|
15700
|
+
await C_(e, a, t);
|
|
15700
15701
|
break;
|
|
15701
15702
|
}
|
|
15702
15703
|
default:
|
|
15703
15704
|
throw new Error(`Invalid method: ${r}`);
|
|
15704
15705
|
}
|
|
15705
15706
|
};
|
|
15706
|
-
async function
|
|
15707
|
+
async function N_(e, t) {
|
|
15707
15708
|
for (const r in t)
|
|
15708
15709
|
await e.defineConstant(r, t[r]);
|
|
15709
15710
|
}
|
|
@@ -15719,7 +15720,7 @@ const ld = async (e, { options: t }) => {
|
|
|
15719
15720
|
echo "Success";
|
|
15720
15721
|
`
|
|
15721
15722
|
});
|
|
15722
|
-
},
|
|
15723
|
+
}, D_ = async (e, { meta: t, userId: r }) => {
|
|
15723
15724
|
const i = await e.documentRoot;
|
|
15724
15725
|
await e.run({
|
|
15725
15726
|
code: `<?php
|
|
@@ -15730,7 +15731,7 @@ const ld = async (e, { options: t }) => {
|
|
|
15730
15731
|
}
|
|
15731
15732
|
`
|
|
15732
15733
|
});
|
|
15733
|
-
}, Wo = "/tmp/wp-cli.phar",
|
|
15734
|
+
}, Wo = "/tmp/wp-cli.phar", U_ = {
|
|
15734
15735
|
resource: "url",
|
|
15735
15736
|
/**
|
|
15736
15737
|
* Use compression for downloading the wp-cli.phar file.
|
|
@@ -15755,7 +15756,7 @@ const ld = async (e, { options: t }) => {
|
|
|
15755
15756
|
}, pd = async (e, { command: t, wpCliPath: r = Wo }) => {
|
|
15756
15757
|
await fd(e, r);
|
|
15757
15758
|
let i;
|
|
15758
|
-
if (typeof t == "string" ? (t = t.trim(), i =
|
|
15759
|
+
if (typeof t == "string" ? (t = t.trim(), i = B_(t)) : i = t, i.shift() !== "wp")
|
|
15759
15760
|
throw new Error('The first argument must be "wp".');
|
|
15760
15761
|
let s = !1;
|
|
15761
15762
|
const n = i.map((p) => p.startsWith("wordpress/") ? (s = !0, `/${p}`) : p);
|
|
@@ -15821,7 +15822,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15821
15822
|
throw new Error(l.errors);
|
|
15822
15823
|
return l;
|
|
15823
15824
|
};
|
|
15824
|
-
function
|
|
15825
|
+
function B_(e) {
|
|
15825
15826
|
let i = 0, a = "";
|
|
15826
15827
|
const s = [];
|
|
15827
15828
|
let n = "";
|
|
@@ -15831,7 +15832,7 @@ function U_(e) {
|
|
|
15831
15832
|
}
|
|
15832
15833
|
return n && s.push(n), s;
|
|
15833
15834
|
}
|
|
15834
|
-
const
|
|
15835
|
+
const q_ = async (e, { wpCliPath: t }) => {
|
|
15835
15836
|
await fd(e, t), await Mo(e, {
|
|
15836
15837
|
consts: {
|
|
15837
15838
|
WP_ALLOW_MULTISITE: 1
|
|
@@ -15859,7 +15860,7 @@ const B_ = async (e, { wpCliPath: t }) => {
|
|
|
15859
15860
|
$_SERVER['HTTP_HOST'] = ${tt(r.hostname)};
|
|
15860
15861
|
`
|
|
15861
15862
|
)), await e.writeFile(n, l);
|
|
15862
|
-
},
|
|
15863
|
+
}, M_ = async (e, { fromPath: t, toPath: r }) => {
|
|
15863
15864
|
(!t.startsWith("/") || !r.startsWith("/")) && Oe.error(
|
|
15864
15865
|
`
|
|
15865
15866
|
The cp() step in your Blueprint refers to a relative path.
|
|
@@ -15880,7 +15881,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15880
15881
|
r,
|
|
15881
15882
|
await e.readFileAsBuffer(t)
|
|
15882
15883
|
);
|
|
15883
|
-
},
|
|
15884
|
+
}, W_ = async (e, { fromPath: t, toPath: r }) => {
|
|
15884
15885
|
(!t.startsWith("/") || !r.startsWith("/")) && Oe.error(
|
|
15885
15886
|
`
|
|
15886
15887
|
The mv() step in your Blueprint refers to a relative path.
|
|
@@ -15898,7 +15899,7 @@ Use: mv({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-loa
|
|
|
15898
15899
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15899
15900
|
`.trim()
|
|
15900
15901
|
), t.startsWith("/") || (t = `/${t}`), r.startsWith("/") || (r = `/${r}`), await e.mv(t, r);
|
|
15901
|
-
},
|
|
15902
|
+
}, H_ = async (e, { path: t }) => {
|
|
15902
15903
|
t.startsWith("/") || Oe.error(
|
|
15903
15904
|
`
|
|
15904
15905
|
The mkdir() step in your Blueprint refers to a relative path.
|
|
@@ -15916,7 +15917,7 @@ Use: mkdir({ path: '/wordpress/my-new-folder' });
|
|
|
15916
15917
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15917
15918
|
`.trim()
|
|
15918
15919
|
), await e.mkdir(t);
|
|
15919
|
-
},
|
|
15920
|
+
}, z_ = async (e, { path: t }) => {
|
|
15920
15921
|
t.startsWith("/") || (Oe.error(
|
|
15921
15922
|
`
|
|
15922
15923
|
The rmdir() step in your Blueprint refers to a relative path.
|
|
@@ -15952,7 +15953,7 @@ Use: writeFile({ path: '/wordpress/wp-load.php', data: '<?php echo "Hell
|
|
|
15952
15953
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15953
15954
|
`.trim()
|
|
15954
15955
|
), t = `/${t}`), t.startsWith("/wordpress/wp-content/mu-plugins") && !await e.fileExists("/wordpress/wp-content/mu-plugins") && await e.mkdir("/wordpress/wp-content/mu-plugins"), await e.writeFile(t, r);
|
|
15955
|
-
},
|
|
15956
|
+
}, V_ = async (e, { writeToPath: t, filesTree: r }) => {
|
|
15956
15957
|
t.startsWith("/") || (Oe.error(
|
|
15957
15958
|
`
|
|
15958
15959
|
The writeFiles() step in your Blueprint refers to a relative path.
|
|
@@ -15977,10 +15978,10 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15977
15978
|
WP_SITEURL: t
|
|
15978
15979
|
}
|
|
15979
15980
|
});
|
|
15980
|
-
},
|
|
15981
|
-
await
|
|
15981
|
+
}, Z_ = async (e, { file: t }, r) => {
|
|
15982
|
+
await G_(e, t, r);
|
|
15982
15983
|
};
|
|
15983
|
-
async function
|
|
15984
|
+
async function G_(e, t, r) {
|
|
15984
15985
|
var i;
|
|
15985
15986
|
(i = r == null ? void 0 : r.tracker) == null || i.setCaption("Importing content"), await Ho(e, {
|
|
15986
15987
|
path: "/tmp/import.wxr",
|
|
@@ -16134,7 +16135,7 @@ const ud = async (e, { themeSlug: t = "" }, r) => {
|
|
|
16134
16135
|
"themes/twentytwentyfour",
|
|
16135
16136
|
"themes/twentytwentyfive",
|
|
16136
16137
|
"themes/twentytwentysix"
|
|
16137
|
-
],
|
|
16138
|
+
], Y_ = async (e, { wordPressFilesZip: t, pathInZip: r = "" }) => {
|
|
16138
16139
|
const i = await e.documentRoot;
|
|
16139
16140
|
let a = Se("/tmp", "import");
|
|
16140
16141
|
await e.mkdir(a), await zo(e, {
|
|
@@ -16174,9 +16175,9 @@ const ud = async (e, { themeSlug: t = "" }, r) => {
|
|
|
16174
16175
|
Se(a, y),
|
|
16175
16176
|
Se(i, y)
|
|
16176
16177
|
);
|
|
16177
|
-
await e.rmdir(a), await
|
|
16178
|
+
await e.rmdir(a), await I_(e, i);
|
|
16178
16179
|
const d = await e.absoluteUrl;
|
|
16179
|
-
n || (n = await
|
|
16180
|
+
n || (n = await X_(e, i)), await cd(e, {
|
|
16180
16181
|
siteUrl: d
|
|
16181
16182
|
});
|
|
16182
16183
|
const m = tt(
|
|
@@ -16187,13 +16188,13 @@ const ud = async (e, { themeSlug: t = "" }, r) => {
|
|
|
16187
16188
|
$_GET['step'] = 'upgrade_db';
|
|
16188
16189
|
require ${m};
|
|
16189
16190
|
`
|
|
16190
|
-
}), n && n !== d && await
|
|
16191
|
+
}), n && n !== d && await K_(e, i, n, d);
|
|
16191
16192
|
};
|
|
16192
16193
|
function Sp(e) {
|
|
16193
16194
|
const t = e.match(/\/scope:[^/]+\/?/);
|
|
16194
16195
|
return t ? t[0].replace(/\/?$/, "/") : null;
|
|
16195
16196
|
}
|
|
16196
|
-
async function
|
|
16197
|
+
async function K_(e, t, r, i) {
|
|
16197
16198
|
const a = Sp(r), s = Sp(i);
|
|
16198
16199
|
!a || !s || a !== s && await e.run({
|
|
16199
16200
|
code: `<?php
|
|
@@ -16258,7 +16259,7 @@ async function Y_(e, t, r, i) {
|
|
|
16258
16259
|
}
|
|
16259
16260
|
});
|
|
16260
16261
|
}
|
|
16261
|
-
async function
|
|
16262
|
+
async function X_(e, t) {
|
|
16262
16263
|
const r = dn({ documentRoot: t });
|
|
16263
16264
|
return (await e.run({
|
|
16264
16265
|
code: `<?php
|
|
@@ -16272,7 +16273,7 @@ async function K_(e, t) {
|
|
|
16272
16273
|
async function Op(e, t) {
|
|
16273
16274
|
await e.fileExists(t) && (await e.isDir(t) ? await e.rmdir(t) : await e.unlink(t));
|
|
16274
16275
|
}
|
|
16275
|
-
async function
|
|
16276
|
+
async function J_(e) {
|
|
16276
16277
|
const t = await e.request({
|
|
16277
16278
|
url: "/wp-admin/export.php?download=true&content=all"
|
|
16278
16279
|
});
|
|
@@ -16331,7 +16332,7 @@ async function hd(e, {
|
|
|
16331
16332
|
});
|
|
16332
16333
|
}
|
|
16333
16334
|
}
|
|
16334
|
-
const
|
|
16335
|
+
const Q_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, options: a = {} }, s) => {
|
|
16335
16336
|
r && (t = r, Oe.warn(
|
|
16336
16337
|
'The "pluginZipFile" option is deprecated. Use "pluginData" instead.'
|
|
16337
16338
|
));
|
|
@@ -16391,7 +16392,7 @@ const J_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16391
16392
|
},
|
|
16392
16393
|
s
|
|
16393
16394
|
);
|
|
16394
|
-
},
|
|
16395
|
+
}, ev = async (e, { themeData: t, themeZipFile: r, ifAlreadyInstalled: i, options: a = {} }, s) => {
|
|
16395
16396
|
r && (t = r, Oe.warn(
|
|
16396
16397
|
'The "themeZipFile" option is deprecated. Use "themeData" instead.'
|
|
16397
16398
|
));
|
|
@@ -16430,9 +16431,9 @@ const J_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16430
16431
|
},
|
|
16431
16432
|
s
|
|
16432
16433
|
);
|
|
16433
|
-
},
|
|
16434
|
+
}, tv = async (e, { username: t = "admin" } = {}, r) => {
|
|
16434
16435
|
r == null || r.tracker.setCaption((r == null ? void 0 : r.initialCaption) || "Logging in"), e.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER", t);
|
|
16435
|
-
},
|
|
16436
|
+
}, rv = async (e, t, r) => {
|
|
16436
16437
|
var a;
|
|
16437
16438
|
(a = r == null ? void 0 : r.tracker) == null || a.setCaption("Resetting WordPress data");
|
|
16438
16439
|
const i = await e.documentRoot;
|
|
@@ -16456,7 +16457,7 @@ const J_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16456
16457
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
16457
16458
|
`
|
|
16458
16459
|
});
|
|
16459
|
-
},
|
|
16460
|
+
}, nv = async (e, { options: t }) => {
|
|
16460
16461
|
await e.request({
|
|
16461
16462
|
url: "/wp-admin/install.php?step=2",
|
|
16462
16463
|
method: "POST",
|
|
@@ -16473,7 +16474,7 @@ const J_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16473
16474
|
admin_email: "admin@localhost.com"
|
|
16474
16475
|
}
|
|
16475
16476
|
});
|
|
16476
|
-
},
|
|
16477
|
+
}, sv = async (e, { selfContained: t = !1 } = {}) => {
|
|
16477
16478
|
const r = "/tmp/wordpress-playground.zip", i = "/tmp/playground-export.json", a = await e.documentRoot, s = Se(a, "wp-content"), n = await e.absoluteUrl;
|
|
16478
16479
|
await e.writeFile(
|
|
16479
16480
|
i,
|
|
@@ -16496,7 +16497,7 @@ const J_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16496
16497
|
),
|
|
16497
16498
|
additionalPaths: l
|
|
16498
16499
|
});
|
|
16499
|
-
await
|
|
16500
|
+
await av(
|
|
16500
16501
|
e,
|
|
16501
16502
|
`zipDir(${p.wpContentPath}, ${p.zipPath}, array(
|
|
16502
16503
|
'exclude_paths' => ${p.exceptPaths},
|
|
@@ -16506,7 +16507,7 @@ const J_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16506
16507
|
);
|
|
16507
16508
|
const c = await e.readFileAsBuffer(r);
|
|
16508
16509
|
return e.unlink(r), e.unlink(i), c;
|
|
16509
|
-
},
|
|
16510
|
+
}, iv = `<?php
|
|
16510
16511
|
|
|
16511
16512
|
function zipDir($root, $output, $options = array())
|
|
16512
16513
|
{
|
|
@@ -16567,12 +16568,12 @@ function join_paths()
|
|
|
16567
16568
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
16568
16569
|
}
|
|
16569
16570
|
`;
|
|
16570
|
-
async function
|
|
16571
|
+
async function av(e, t) {
|
|
16571
16572
|
return await e.run({
|
|
16572
|
-
code:
|
|
16573
|
+
code: iv + t
|
|
16573
16574
|
});
|
|
16574
16575
|
}
|
|
16575
|
-
const
|
|
16576
|
+
const ov = async (e, t) => {
|
|
16576
16577
|
const a = (await (await fetch(
|
|
16577
16578
|
`https://api.wordpress.org/translations/core/1.0/?version=${e}`
|
|
16578
16579
|
)).json()).translations.find(
|
|
@@ -16583,7 +16584,7 @@ const av = async (e, t) => {
|
|
|
16583
16584
|
`Failed to get ${t} translation package for WordPress ${e}.`
|
|
16584
16585
|
);
|
|
16585
16586
|
return a.package;
|
|
16586
|
-
},
|
|
16587
|
+
}, lv = async (e, { language: t }, r) => {
|
|
16587
16588
|
r == null || r.tracker.setCaption((r == null ? void 0 : r.initialCaption) || "Translating");
|
|
16588
16589
|
const i = await e.documentRoot;
|
|
16589
16590
|
await e.defineConstant("WPLANG", t), await e.run({
|
|
@@ -16599,7 +16600,7 @@ const av = async (e, t) => {
|
|
|
16599
16600
|
`
|
|
16600
16601
|
})).text, s = [
|
|
16601
16602
|
{
|
|
16602
|
-
url: await
|
|
16603
|
+
url: await ov(a, t),
|
|
16603
16604
|
type: "core"
|
|
16604
16605
|
}
|
|
16605
16606
|
], o = (await e.run({
|
|
@@ -16683,40 +16684,40 @@ const av = async (e, t) => {
|
|
|
16683
16684
|
})
|
|
16684
16685
|
);
|
|
16685
16686
|
await Promise.all(d);
|
|
16686
|
-
},
|
|
16687
|
+
}, fv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16687
16688
|
__proto__: null,
|
|
16688
16689
|
activatePlugin: sd,
|
|
16689
16690
|
activateTheme: id,
|
|
16690
|
-
cp:
|
|
16691
|
+
cp: M_,
|
|
16691
16692
|
defineSiteUrl: cd,
|
|
16692
16693
|
defineWpConfigConsts: Mo,
|
|
16693
|
-
enableMultisite:
|
|
16694
|
-
exportWXR:
|
|
16694
|
+
enableMultisite: q_,
|
|
16695
|
+
exportWXR: J_,
|
|
16695
16696
|
importThemeStarterContent: ud,
|
|
16696
|
-
importWordPressFiles:
|
|
16697
|
-
importWxr:
|
|
16698
|
-
installPlugin:
|
|
16699
|
-
installTheme:
|
|
16700
|
-
login:
|
|
16701
|
-
mkdir:
|
|
16702
|
-
mv:
|
|
16703
|
-
request:
|
|
16704
|
-
resetData:
|
|
16697
|
+
importWordPressFiles: Y_,
|
|
16698
|
+
importWxr: Z_,
|
|
16699
|
+
installPlugin: Q_,
|
|
16700
|
+
installTheme: ev,
|
|
16701
|
+
login: tv,
|
|
16702
|
+
mkdir: H_,
|
|
16703
|
+
mv: W_,
|
|
16704
|
+
request: F_,
|
|
16705
|
+
resetData: rv,
|
|
16705
16706
|
rm: co,
|
|
16706
|
-
rmdir:
|
|
16707
|
-
runPHP:
|
|
16708
|
-
runPHPWithOptions:
|
|
16709
|
-
runSql:
|
|
16710
|
-
runWpInstallationWizard:
|
|
16711
|
-
setSiteLanguage:
|
|
16707
|
+
rmdir: z_,
|
|
16708
|
+
runPHP: T_,
|
|
16709
|
+
runPHPWithOptions: A_,
|
|
16710
|
+
runSql: R_,
|
|
16711
|
+
runWpInstallationWizard: nv,
|
|
16712
|
+
setSiteLanguage: lv,
|
|
16712
16713
|
setSiteOptions: ld,
|
|
16713
16714
|
unzip: zo,
|
|
16714
|
-
updateUserMeta:
|
|
16715
|
+
updateUserMeta: D_,
|
|
16715
16716
|
wpCLI: pd,
|
|
16716
16717
|
writeFile: Ho,
|
|
16717
|
-
writeFiles:
|
|
16718
|
-
zipWpContent:
|
|
16719
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
16718
|
+
writeFiles: V_,
|
|
16719
|
+
zipWpContent: sv
|
|
16720
|
+
}, Symbol.toStringTag, { value: "Module" })), pv = {
|
|
16720
16721
|
properties: {
|
|
16721
16722
|
landingPage: {
|
|
16722
16723
|
type: "string",
|
|
@@ -16851,11 +16852,11 @@ Note: PHP 7.2 and 7.3 are deprecated and will be automatically upgraded to 7.4.`
|
|
|
16851
16852
|
},
|
|
16852
16853
|
$schema: { type: "string" }
|
|
16853
16854
|
}
|
|
16854
|
-
},
|
|
16855
|
+
}, cv = {
|
|
16855
16856
|
additionalProperties: { type: ["string", "boolean", "number"] }
|
|
16856
|
-
}, md = Object.prototype.hasOwnProperty,
|
|
16857
|
+
}, md = Object.prototype.hasOwnProperty, uv = {
|
|
16857
16858
|
enum: ["8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.4"]
|
|
16858
|
-
},
|
|
16859
|
+
}, dv = { enum: ["5.2"] };
|
|
16859
16860
|
function jn(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: a = e } = {}) {
|
|
16860
16861
|
let s = null, n = 0;
|
|
16861
16862
|
const o = n;
|
|
@@ -16864,20 +16865,20 @@ function jn(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
16864
16865
|
if (typeof e != "string") {
|
|
16865
16866
|
const d = {
|
|
16866
16867
|
instancePath: t,
|
|
16867
|
-
schemaPath: "#/definitions/
|
|
16868
|
+
schemaPath: "#/definitions/PHPNextVersion/type",
|
|
16868
16869
|
keyword: "type",
|
|
16869
16870
|
params: { type: "string" },
|
|
16870
16871
|
message: "must be string"
|
|
16871
16872
|
};
|
|
16872
16873
|
s === null ? s = [d] : s.push(d), n++;
|
|
16873
16874
|
}
|
|
16874
|
-
if (
|
|
16875
|
+
if (e !== "next") {
|
|
16875
16876
|
const d = {
|
|
16876
16877
|
instancePath: t,
|
|
16877
|
-
schemaPath: "#/definitions/
|
|
16878
|
-
keyword: "
|
|
16879
|
-
params: {
|
|
16880
|
-
message: "must be equal to
|
|
16878
|
+
schemaPath: "#/definitions/PHPNextVersion/const",
|
|
16879
|
+
keyword: "const",
|
|
16880
|
+
params: { allowedValue: "next" },
|
|
16881
|
+
message: "must be equal to constant"
|
|
16881
16882
|
};
|
|
16882
16883
|
s === null ? s = [d] : s.push(d), n++;
|
|
16883
16884
|
}
|
|
@@ -16887,17 +16888,17 @@ function jn(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
16887
16888
|
if (typeof e != "string") {
|
|
16888
16889
|
const y = {
|
|
16889
16890
|
instancePath: t,
|
|
16890
|
-
schemaPath: "#/definitions/
|
|
16891
|
+
schemaPath: "#/definitions/SupportedPHPVersion/type",
|
|
16891
16892
|
keyword: "type",
|
|
16892
16893
|
params: { type: "string" },
|
|
16893
16894
|
message: "must be string"
|
|
16894
16895
|
};
|
|
16895
16896
|
s === null ? s = [y] : s.push(y), n++;
|
|
16896
16897
|
}
|
|
16897
|
-
if (e
|
|
16898
|
+
if (!(e === "8.5" || e === "8.4" || e === "8.3" || e === "8.2" || e === "8.1" || e === "8.0" || e === "7.4")) {
|
|
16898
16899
|
const y = {
|
|
16899
16900
|
instancePath: t,
|
|
16900
|
-
schemaPath: "#/definitions/
|
|
16901
|
+
schemaPath: "#/definitions/SupportedPHPVersion/enum",
|
|
16901
16902
|
keyword: "enum",
|
|
16902
16903
|
params: { allowedValues: uv.enum },
|
|
16903
16904
|
message: "must be equal to one of the allowed values"
|
|
@@ -16905,7 +16906,31 @@ function jn(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
16905
16906
|
s === null ? s = [y] : s.push(y), n++;
|
|
16906
16907
|
}
|
|
16907
16908
|
var c = d === n;
|
|
16908
|
-
l = l || c
|
|
16909
|
+
if (l = l || c, !l) {
|
|
16910
|
+
const y = n;
|
|
16911
|
+
if (typeof e != "string") {
|
|
16912
|
+
const g = {
|
|
16913
|
+
instancePath: t,
|
|
16914
|
+
schemaPath: "#/definitions/LegacyPHPVersion/type",
|
|
16915
|
+
keyword: "type",
|
|
16916
|
+
params: { type: "string" },
|
|
16917
|
+
message: "must be string"
|
|
16918
|
+
};
|
|
16919
|
+
s === null ? s = [g] : s.push(g), n++;
|
|
16920
|
+
}
|
|
16921
|
+
if (e !== "5.2") {
|
|
16922
|
+
const g = {
|
|
16923
|
+
instancePath: t,
|
|
16924
|
+
schemaPath: "#/definitions/LegacyPHPVersion/enum",
|
|
16925
|
+
keyword: "enum",
|
|
16926
|
+
params: { allowedValues: dv.enum },
|
|
16927
|
+
message: "must be equal to one of the allowed values"
|
|
16928
|
+
};
|
|
16929
|
+
s === null ? s = [g] : s.push(g), n++;
|
|
16930
|
+
}
|
|
16931
|
+
var c = y === n;
|
|
16932
|
+
l = l || c;
|
|
16933
|
+
}
|
|
16909
16934
|
}
|
|
16910
16935
|
if (l)
|
|
16911
16936
|
n = o, s !== null && (o ? s.length = o : s = null);
|
|
@@ -16996,7 +17021,7 @@ function Nn(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
16996
17021
|
}
|
|
16997
17022
|
return Nn.errors = s, n === 0;
|
|
16998
17023
|
}
|
|
16999
|
-
const Da = { validate: _e },
|
|
17024
|
+
const Da = { validate: _e }, hv = {
|
|
17000
17025
|
enum: ["branch", "tag", "commit", "refname"]
|
|
17001
17026
|
};
|
|
17002
17027
|
function it(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: a = e } = {}) {
|
|
@@ -17104,7 +17129,7 @@ function it(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
17104
17129
|
schemaPath: "#/definitions/GitDirectoryRefType/enum",
|
|
17105
17130
|
keyword: "enum",
|
|
17106
17131
|
params: {
|
|
17107
|
-
allowedValues:
|
|
17132
|
+
allowedValues: hv.enum
|
|
17108
17133
|
},
|
|
17109
17134
|
message: "must be equal to one of the allowed values"
|
|
17110
17135
|
}
|
|
@@ -17163,7 +17188,7 @@ function it(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
17163
17188
|
], !1;
|
|
17164
17189
|
return it.errors = s, n === 0;
|
|
17165
17190
|
}
|
|
17166
|
-
const
|
|
17191
|
+
const mv = {
|
|
17167
17192
|
additionalProperties: {
|
|
17168
17193
|
anyOf: [
|
|
17169
17194
|
{ $ref: "#/definitions/FileTree" },
|
|
@@ -17195,7 +17220,7 @@ function Lr(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
17195
17220
|
schemaPath: "#/additionalProperties/anyOf/1/type",
|
|
17196
17221
|
keyword: "type",
|
|
17197
17222
|
params: {
|
|
17198
|
-
type:
|
|
17223
|
+
type: mv.additionalProperties.anyOf[1].type
|
|
17199
17224
|
},
|
|
17200
17225
|
message: "must be object,string"
|
|
17201
17226
|
};
|
|
@@ -20121,7 +20146,7 @@ function vt(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
20121
20146
|
], !1;
|
|
20122
20147
|
return vt.errors = s, n === 0;
|
|
20123
20148
|
}
|
|
20124
|
-
const
|
|
20149
|
+
const yv = {
|
|
20125
20150
|
properties: {
|
|
20126
20151
|
relativeUri: {
|
|
20127
20152
|
type: "string",
|
|
@@ -20191,7 +20216,7 @@ function We(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
20191
20216
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
20192
20217
|
const O = n;
|
|
20193
20218
|
for (const g in e)
|
|
20194
|
-
if (!md.call(
|
|
20219
|
+
if (!md.call(yv.properties, g))
|
|
20195
20220
|
return We.errors = [
|
|
20196
20221
|
{
|
|
20197
20222
|
instancePath: t,
|
|
@@ -26832,7 +26857,7 @@ function me(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
26832
26857
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
26833
26858
|
const C = n;
|
|
26834
26859
|
for (const b in e)
|
|
26835
|
-
if (!md.call(
|
|
26860
|
+
if (!md.call(pv.properties, b))
|
|
26836
26861
|
return me.errors = [
|
|
26837
26862
|
{
|
|
26838
26863
|
instancePath: t,
|
|
@@ -27399,7 +27424,7 @@ function me(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
27399
27424
|
schemaPath: "#/definitions/PHPConstants/additionalProperties/type",
|
|
27400
27425
|
keyword: "type",
|
|
27401
27426
|
params: {
|
|
27402
|
-
type:
|
|
27427
|
+
type: cv.additionalProperties.type
|
|
27403
27428
|
},
|
|
27404
27429
|
message: "must be string,boolean,number"
|
|
27405
27430
|
}
|
|
@@ -27918,9 +27943,9 @@ function Gs(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
27918
27943
|
rootData: a
|
|
27919
27944
|
}) || (s = s === null ? me.errors : s.concat(me.errors), n = s.length), Gs.errors = s, n === 0;
|
|
27920
27945
|
}
|
|
27921
|
-
const { wpCLI:
|
|
27946
|
+
const { wpCLI: gv, ...Tp } = fv, wv = {
|
|
27922
27947
|
...Tp,
|
|
27923
|
-
"wp-cli":
|
|
27948
|
+
"wp-cli": gv,
|
|
27924
27949
|
importFile: Tp.importWxr
|
|
27925
27950
|
};
|
|
27926
27951
|
class gd extends Error {
|
|
@@ -27928,7 +27953,7 @@ class gd extends Error {
|
|
|
27928
27953
|
super(t), this.name = "InvalidBlueprintError", this.validationErrors = r;
|
|
27929
27954
|
}
|
|
27930
27955
|
}
|
|
27931
|
-
class
|
|
27956
|
+
class bv extends Error {
|
|
27932
27957
|
constructor(t) {
|
|
27933
27958
|
const { stepNumber: r, step: i, cause: a } = t, s = a instanceof Error ? a : new Error(String(a)), n = `Error when executing the blueprint step #${r}`, o = s.message ? `${n}: ${s.message}` : n;
|
|
27934
27959
|
super(o, { cause: s }), this.name = "BlueprintStepExecutionError", this.stepNumber = r, this.step = i, this.messages = (s.message || "").split(`
|
|
@@ -27940,20 +27965,20 @@ async function wd(e, t = {}) {
|
|
|
27940
27965
|
...t
|
|
27941
27966
|
};
|
|
27942
27967
|
let i;
|
|
27943
|
-
return Vo(e) ? (i = await
|
|
27968
|
+
return Vo(e) ? (i = await _v(e), r.streamBundledFile = function(...a) {
|
|
27944
27969
|
return e.read(...a);
|
|
27945
|
-
}) : i = e,
|
|
27970
|
+
}) : i = e, vv(i, r);
|
|
27946
27971
|
}
|
|
27947
27972
|
function Vo(e) {
|
|
27948
27973
|
return e && "read" in e && typeof e.read == "function";
|
|
27949
27974
|
}
|
|
27950
|
-
async function
|
|
27975
|
+
async function _v(e) {
|
|
27951
27976
|
if (!Vo(e))
|
|
27952
27977
|
return e;
|
|
27953
27978
|
const r = await (await e.read("blueprint.json")).text();
|
|
27954
27979
|
return JSON.parse(r);
|
|
27955
27980
|
}
|
|
27956
|
-
function
|
|
27981
|
+
function vv(e, {
|
|
27957
27982
|
progress: t = new di(),
|
|
27958
27983
|
semaphore: r = new rs({ concurrency: 3 }),
|
|
27959
27984
|
onStepCompleted: i = () => {
|
|
@@ -27968,8 +27993,8 @@ function _v(e, {
|
|
|
27968
27993
|
var g, w, _, T, E, I, $, L, C, b, F;
|
|
27969
27994
|
e = structuredClone(e), e = {
|
|
27970
27995
|
...e,
|
|
27971
|
-
steps: (e.steps || []).filter(
|
|
27972
|
-
}, e.steps = [...e.steps || [], ...l || []], ((g = e.preferredVersions) == null ? void 0 : g.wp) === !1 &&
|
|
27996
|
+
steps: (e.steps || []).filter(Ev).filter(Sv)
|
|
27997
|
+
}, e.steps = [...e.steps || [], ...l || []], ((g = e.preferredVersions) == null ? void 0 : g.wp) === !1 && Rv(e);
|
|
27973
27998
|
for (const k of e.steps)
|
|
27974
27999
|
!k || typeof k != "object" || (k.step === "importFile" ? (k.step = "importWxr", Oe.warn(
|
|
27975
28000
|
'The "importFile" step is deprecated. Use "importWxr" instead.'
|
|
@@ -27985,7 +28010,7 @@ function _v(e, {
|
|
|
27985
28010
|
step: "setSiteOptions",
|
|
27986
28011
|
options: e.siteOptions
|
|
27987
28012
|
}), e.plugins) {
|
|
27988
|
-
const k = e.plugins.map((S) => typeof S == "string" ?
|
|
28013
|
+
const k = e.plugins.map((S) => typeof S == "string" ? Fv(S) ? {
|
|
27989
28014
|
resource: "zip",
|
|
27990
28015
|
inner: {
|
|
27991
28016
|
resource: "git:directory",
|
|
@@ -28014,7 +28039,7 @@ function _v(e, {
|
|
|
28014
28039
|
if ((_ = e == null ? void 0 : e.extraLibraries) != null && _.includes("wp-cli") || p !== -1) {
|
|
28015
28040
|
const k = {
|
|
28016
28041
|
step: "writeFile",
|
|
28017
|
-
data:
|
|
28042
|
+
data: U_,
|
|
28018
28043
|
path: Wo
|
|
28019
28044
|
};
|
|
28020
28045
|
p === -1 ? (T = e.steps) == null || T.push(k) : (E = e.steps) == null || E.splice(
|
|
@@ -28033,9 +28058,9 @@ function _v(e, {
|
|
|
28033
28058
|
slug: "wordpress-importer"
|
|
28034
28059
|
}
|
|
28035
28060
|
}));
|
|
28036
|
-
const d =
|
|
28061
|
+
const d = kv(e);
|
|
28037
28062
|
if (!d.valid) {
|
|
28038
|
-
const { errors: k } = d, S =
|
|
28063
|
+
const { errors: k } = d, S = xv(e, k);
|
|
28039
28064
|
throw new gd(
|
|
28040
28065
|
`Invalid Blueprint: The Blueprint does not conform to the schema.
|
|
28041
28066
|
|
|
@@ -28055,7 +28080,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
28055
28080
|
},
|
|
28056
28081
|
0
|
|
28057
28082
|
), O = m.map(
|
|
28058
|
-
(k) =>
|
|
28083
|
+
(k) => Ov(k, {
|
|
28059
28084
|
semaphore: r,
|
|
28060
28085
|
rootProgressTracker: t,
|
|
28061
28086
|
totalProgressWeight: y,
|
|
@@ -28066,10 +28091,10 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
28066
28091
|
);
|
|
28067
28092
|
return {
|
|
28068
28093
|
versions: {
|
|
28069
|
-
php:
|
|
28094
|
+
php: Pv(
|
|
28070
28095
|
(L = e.preferredVersions) == null ? void 0 : L.php,
|
|
28071
|
-
|
|
28072
|
-
|
|
28096
|
+
sh,
|
|
28097
|
+
rh
|
|
28073
28098
|
),
|
|
28074
28099
|
wp: ((C = e.preferredVersions) == null ? void 0 : C.wp) || "latest"
|
|
28075
28100
|
},
|
|
@@ -28092,7 +28117,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
28092
28117
|
i(D, R);
|
|
28093
28118
|
} catch (D) {
|
|
28094
28119
|
const V = Number(S) + 1;
|
|
28095
|
-
throw new
|
|
28120
|
+
throw new bv({
|
|
28096
28121
|
stepNumber: V,
|
|
28097
28122
|
step: R,
|
|
28098
28123
|
cause: D
|
|
@@ -28111,7 +28136,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
28111
28136
|
}
|
|
28112
28137
|
};
|
|
28113
28138
|
}
|
|
28114
|
-
function
|
|
28139
|
+
function xv(e, t) {
|
|
28115
28140
|
return t.map((r, i) => {
|
|
28116
28141
|
var o;
|
|
28117
28142
|
const a = r.instancePath || "/";
|
|
@@ -28154,7 +28179,7 @@ function vv(e, t) {
|
|
|
28154
28179
|
|
|
28155
28180
|
`);
|
|
28156
28181
|
}
|
|
28157
|
-
function
|
|
28182
|
+
function kv(e) {
|
|
28158
28183
|
var a;
|
|
28159
28184
|
const t = Gs(e);
|
|
28160
28185
|
if (t)
|
|
@@ -28171,20 +28196,20 @@ function xv(e) {
|
|
|
28171
28196
|
)) ?? []
|
|
28172
28197
|
};
|
|
28173
28198
|
}
|
|
28174
|
-
function
|
|
28199
|
+
function Pv(e, t, r) {
|
|
28175
28200
|
return (e === "7.2" || e === "7.3") && (Oe.warn(
|
|
28176
28201
|
`PHP ${e} is no longer supported. Automatically upgrading to PHP 7.4.`
|
|
28177
28202
|
), e = "7.4"), e && t.includes(e) ? e : r;
|
|
28178
28203
|
}
|
|
28179
|
-
function
|
|
28204
|
+
function Ev(e) {
|
|
28180
28205
|
return !!(typeof e == "object" && e);
|
|
28181
28206
|
}
|
|
28182
|
-
function
|
|
28207
|
+
function Sv(e) {
|
|
28183
28208
|
return ["setPhpIniEntry", "request"].includes(e.step) ? (Oe.warn(
|
|
28184
28209
|
`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`
|
|
28185
28210
|
), !1) : !0;
|
|
28186
28211
|
}
|
|
28187
|
-
function
|
|
28212
|
+
function Ov(e, {
|
|
28188
28213
|
semaphore: t,
|
|
28189
28214
|
rootProgressTracker: r,
|
|
28190
28215
|
totalProgressWeight: i,
|
|
@@ -28198,7 +28223,7 @@ function Sv(e, {
|
|
|
28198
28223
|
), l = {};
|
|
28199
28224
|
for (const O of Object.keys(e)) {
|
|
28200
28225
|
let g = e[O];
|
|
28201
|
-
|
|
28226
|
+
p_(g) && (g = Pt.create(g, {
|
|
28202
28227
|
semaphore: t,
|
|
28203
28228
|
corsProxy: a,
|
|
28204
28229
|
streamBundledFile: s,
|
|
@@ -28208,9 +28233,9 @@ function Sv(e, {
|
|
|
28208
28233
|
const p = async (O) => {
|
|
28209
28234
|
var g;
|
|
28210
28235
|
try {
|
|
28211
|
-
return o.fillSlowly(), await
|
|
28236
|
+
return o.fillSlowly(), await wv[e.step](
|
|
28212
28237
|
O,
|
|
28213
|
-
await
|
|
28238
|
+
await Tv(l),
|
|
28214
28239
|
{
|
|
28215
28240
|
tracker: o,
|
|
28216
28241
|
initialCaption: (g = e.progress) == null ? void 0 : g.caption
|
|
@@ -28234,7 +28259,7 @@ function Ap(e) {
|
|
|
28234
28259
|
}
|
|
28235
28260
|
return t;
|
|
28236
28261
|
}
|
|
28237
|
-
async function
|
|
28262
|
+
async function Tv(e) {
|
|
28238
28263
|
const t = {};
|
|
28239
28264
|
for (const r in e) {
|
|
28240
28265
|
const i = e[r];
|
|
@@ -28242,10 +28267,10 @@ async function Ov(e) {
|
|
|
28242
28267
|
}
|
|
28243
28268
|
return t;
|
|
28244
28269
|
}
|
|
28245
|
-
async function
|
|
28270
|
+
async function Av(e, t) {
|
|
28246
28271
|
await e.run(t);
|
|
28247
28272
|
}
|
|
28248
|
-
const
|
|
28273
|
+
const $v = /* @__PURE__ */ new Set([
|
|
28249
28274
|
"installPlugin",
|
|
28250
28275
|
"installTheme",
|
|
28251
28276
|
"activatePlugin",
|
|
@@ -28260,24 +28285,24 @@ const Av = /* @__PURE__ */ new Set([
|
|
|
28260
28285
|
"wp-cli",
|
|
28261
28286
|
"resetData"
|
|
28262
28287
|
]);
|
|
28263
|
-
function
|
|
28288
|
+
function Rv(e) {
|
|
28264
28289
|
var i, a;
|
|
28265
28290
|
const t = [];
|
|
28266
28291
|
(i = e.plugins) != null && i.length && t.push("plugins"), e.siteOptions && t.push("siteOptions"), e.login && t.push("login"), (a = e.extraLibraries) != null && a.includes("wp-cli") && t.push("extraLibraries includes 'wp-cli'");
|
|
28267
28292
|
const r = (e.steps || []).filter(
|
|
28268
28293
|
(s) => !!s && typeof s == "object" && "step" in s
|
|
28269
|
-
).map((s) => s.step).filter((s) =>
|
|
28294
|
+
).map((s) => s.step).filter((s) => $v.has(s));
|
|
28270
28295
|
if (r.length && t.push(`steps: ${[...new Set(r)].join(", ")}`), t.length)
|
|
28271
28296
|
throw new gd(
|
|
28272
28297
|
`Blueprint has \`preferredVersions.wp: false\` but uses WordPress-only features: ${t.join("; ")}. Remove these or drop \`preferredVersions.wp: false\`.`,
|
|
28273
28298
|
[]
|
|
28274
28299
|
);
|
|
28275
28300
|
}
|
|
28276
|
-
function
|
|
28301
|
+
function Fv(e) {
|
|
28277
28302
|
const t = e.trim().replace(/\/+$/, "");
|
|
28278
28303
|
return !!(/^https:\/\/.+\.git$/.test(t) || /^https:\/\/github\.com\/[^/]+\/[^/]+$/.test(t) || /^https:\/\/gitlab\.com\/[^/]+\/[^/]+(\/[^/]+)*$/.test(t));
|
|
28279
28304
|
}
|
|
28280
|
-
async function
|
|
28305
|
+
async function Lv() {
|
|
28281
28306
|
const e = (
|
|
28282
28307
|
// @ts-ignore
|
|
28283
28308
|
(await import("./blueprints-pMn3V9MZ.js")).default
|
|
@@ -28286,7 +28311,7 @@ async function Fv() {
|
|
|
28286
28311
|
type: "application/zip"
|
|
28287
28312
|
});
|
|
28288
28313
|
}
|
|
28289
|
-
function
|
|
28314
|
+
function Iv(e) {
|
|
28290
28315
|
if (typeof e == "object" && "type" in e && ["inline-file", "file-reference"].includes(e.type))
|
|
28291
28316
|
return e;
|
|
28292
28317
|
if (!e)
|
|
@@ -28311,7 +28336,7 @@ function Lv(e) {
|
|
|
28311
28336
|
};
|
|
28312
28337
|
}
|
|
28313
28338
|
}
|
|
28314
|
-
async function
|
|
28339
|
+
async function Jv(e) {
|
|
28315
28340
|
var c, d;
|
|
28316
28341
|
const t = e.cliArgs || [];
|
|
28317
28342
|
for (const m of t)
|
|
@@ -28321,12 +28346,12 @@ async function Xv(e) {
|
|
|
28321
28346
|
);
|
|
28322
28347
|
t.push("--site-path=/wordpress"), t.find((m) => m.startsWith("--db-engine=")) || t.push("--db-engine=sqlite");
|
|
28323
28348
|
const i = e.php, a = (e == null ? void 0 : e.onMessage) || (() => {
|
|
28324
|
-
}), s = await
|
|
28349
|
+
}), s = await Lv();
|
|
28325
28350
|
i.writeFile(
|
|
28326
28351
|
"/tmp/blueprints.phar",
|
|
28327
28352
|
new Uint8Array(await s.arrayBuffer())
|
|
28328
28353
|
);
|
|
28329
|
-
const n =
|
|
28354
|
+
const n = Iv(
|
|
28330
28355
|
e.blueprint
|
|
28331
28356
|
);
|
|
28332
28357
|
let o = "";
|
|
@@ -28449,12 +28474,12 @@ require( "/tmp/blueprints.phar" );
|
|
|
28449
28474
|
]);
|
|
28450
28475
|
return p.finished.finally(l), p;
|
|
28451
28476
|
}
|
|
28452
|
-
class
|
|
28477
|
+
class Cv extends Error {
|
|
28453
28478
|
constructor(t, r, i) {
|
|
28454
28479
|
super(t, i), this.name = "BlueprintFetchError", this.url = r;
|
|
28455
28480
|
}
|
|
28456
28481
|
}
|
|
28457
|
-
async function
|
|
28482
|
+
async function Qv(e, t = {}) {
|
|
28458
28483
|
let r;
|
|
28459
28484
|
try {
|
|
28460
28485
|
const a = await (t.fetch || fetch)(e, {
|
|
@@ -28464,7 +28489,7 @@ async function Jv(e, t = {}) {
|
|
|
28464
28489
|
throw new Error(`Failed to fetch blueprint from ${e}`);
|
|
28465
28490
|
r = await a.arrayBuffer();
|
|
28466
28491
|
} catch (i) {
|
|
28467
|
-
throw new
|
|
28492
|
+
throw new Cv(
|
|
28468
28493
|
`Blueprint file could not be resolved from ${e}: ${i instanceof Error ? i.message : String(i)}`,
|
|
28469
28494
|
e,
|
|
28470
28495
|
{ cause: i }
|
|
@@ -28472,25 +28497,25 @@ async function Jv(e, t = {}) {
|
|
|
28472
28497
|
}
|
|
28473
28498
|
try {
|
|
28474
28499
|
const i = new TextDecoder().decode(r);
|
|
28475
|
-
return JSON.parse(i), new
|
|
28476
|
-
new
|
|
28500
|
+
return JSON.parse(i), new Jb([
|
|
28501
|
+
new Kb({
|
|
28477
28502
|
"blueprint.json": i
|
|
28478
28503
|
}),
|
|
28479
|
-
new
|
|
28504
|
+
new Qb({
|
|
28480
28505
|
baseUrl: e,
|
|
28481
28506
|
corsProxy: t.corsProxy
|
|
28482
28507
|
})
|
|
28483
28508
|
]);
|
|
28484
28509
|
} catch (i) {
|
|
28485
|
-
if (await
|
|
28486
|
-
return
|
|
28510
|
+
if (await Dv(r))
|
|
28511
|
+
return Nv(r);
|
|
28487
28512
|
throw new Error(
|
|
28488
28513
|
`Blueprint file at ${e} is neither a valid JSON nor a ZIP file.`,
|
|
28489
28514
|
{ cause: i }
|
|
28490
28515
|
);
|
|
28491
28516
|
}
|
|
28492
28517
|
}
|
|
28493
|
-
function
|
|
28518
|
+
function jv(e) {
|
|
28494
28519
|
const t = e.map((i) => qr(i));
|
|
28495
28520
|
if (t.some(
|
|
28496
28521
|
(i) => Jo(i) === "blueprint.json" && Un(i) === ""
|
|
@@ -28514,17 +28539,17 @@ function Cv(e) {
|
|
|
28514
28539
|
"ZIP does not contain a blueprint.json. Place blueprint.json at the ZIP root or inside a single top-level directory."
|
|
28515
28540
|
);
|
|
28516
28541
|
}
|
|
28517
|
-
async function jv(e) {
|
|
28518
|
-
const t = ci.fromArrayBuffer(e), r = await t.getAllFilePaths(), i = Cv(r), a = Un(i);
|
|
28519
|
-
return a === "" ? t : new Kb(a, t);
|
|
28520
|
-
}
|
|
28521
28542
|
async function Nv(e) {
|
|
28543
|
+
const t = ci.fromArrayBuffer(e), r = await t.getAllFilePaths(), i = jv(r), a = Un(i);
|
|
28544
|
+
return a === "" ? t : new Xb(a, t);
|
|
28545
|
+
}
|
|
28546
|
+
async function Dv(e) {
|
|
28522
28547
|
if (e.byteLength < 4)
|
|
28523
28548
|
return !1;
|
|
28524
28549
|
const t = new Uint8Array(e, 0, 4);
|
|
28525
28550
|
return t[0] === 80 && t[1] === 75 && t[2] === 3 && t[3] === 4;
|
|
28526
28551
|
}
|
|
28527
|
-
async function
|
|
28552
|
+
async function Uv(e) {
|
|
28528
28553
|
if ((await Dn.create(e)).getVersion() === 1) {
|
|
28529
28554
|
const r = await wd(
|
|
28530
28555
|
e
|
|
@@ -28548,7 +28573,7 @@ async function Dv(e) {
|
|
|
28548
28573
|
};
|
|
28549
28574
|
} else
|
|
28550
28575
|
return {
|
|
28551
|
-
phpVersion:
|
|
28576
|
+
phpVersion: L_,
|
|
28552
28577
|
wpVersion: "latest",
|
|
28553
28578
|
intl: !1,
|
|
28554
28579
|
networking: !0,
|
|
@@ -28556,10 +28581,10 @@ async function Dv(e) {
|
|
|
28556
28581
|
extraLibraries: []
|
|
28557
28582
|
};
|
|
28558
28583
|
}
|
|
28559
|
-
function
|
|
28584
|
+
function e2() {
|
|
28560
28585
|
}
|
|
28561
|
-
const
|
|
28562
|
-
class
|
|
28586
|
+
const Bv = [], qv = "127.0.0.1", Mv = 4400;
|
|
28587
|
+
class Wv {
|
|
28563
28588
|
constructor(t) {
|
|
28564
28589
|
this.options = t;
|
|
28565
28590
|
}
|
|
@@ -28583,7 +28608,7 @@ class Mv {
|
|
|
28583
28608
|
t.ownerDocument.defaultView
|
|
28584
28609
|
);
|
|
28585
28610
|
await T.isConnected(), r.pipe(T);
|
|
28586
|
-
const E = await
|
|
28611
|
+
const E = await Uv(_), I = E.intl ? ["intl"] : [];
|
|
28587
28612
|
I.push(...this.options.extensions || []), await T.onDownloadProgress(w.loadingListener);
|
|
28588
28613
|
const $ = !Vo(_) && ((k = _.preferredVersions) == null ? void 0 : k.wp) === !1, L = m ?? ($ ? "do-not-attempt-installing" : c === !1 ? "install-from-existing-files-if-needed" : "download-and-install");
|
|
28589
28614
|
if ($ && (c === !0 || m !== void 0 && m !== "do-not-attempt-installing"))
|
|
@@ -28610,13 +28635,13 @@ class Mv {
|
|
|
28610
28635
|
corsProxy: s,
|
|
28611
28636
|
gitAdditionalHeadersCallback: n
|
|
28612
28637
|
});
|
|
28613
|
-
await
|
|
28638
|
+
await Av(S, T);
|
|
28614
28639
|
}
|
|
28615
28640
|
const b = parseFloat(E.wpVersion), F = Number.isFinite(b) && b < 5.1;
|
|
28616
28641
|
return E.networking && !F && L === "download-and-install" && await T.prefetchUpdateChecks(), T;
|
|
28617
28642
|
}
|
|
28618
28643
|
}
|
|
28619
|
-
class
|
|
28644
|
+
class Hv {
|
|
28620
28645
|
constructor(t) {
|
|
28621
28646
|
this.options = t;
|
|
28622
28647
|
}
|
|
@@ -28670,29 +28695,29 @@ class Wv {
|
|
|
28670
28695
|
}), await m.isReady(), c.finish(), Lp(Oe, m), a == null || a(m), m.goTo("/"), m;
|
|
28671
28696
|
}
|
|
28672
28697
|
}
|
|
28673
|
-
async function
|
|
28698
|
+
async function t2(e) {
|
|
28674
28699
|
const {
|
|
28675
28700
|
iframe: t,
|
|
28676
28701
|
progressTracker: r = new di(),
|
|
28677
28702
|
disableProgressBar: i
|
|
28678
28703
|
} = e;
|
|
28679
28704
|
let { remoteUrl: a } = e;
|
|
28680
|
-
|
|
28705
|
+
Zv(a), zv(t), a = Gv(a, {
|
|
28681
28706
|
progressbar: !i,
|
|
28682
28707
|
"blueprints-runner": e.experimentalBlueprintsV2Runner ? "v2" : "v1"
|
|
28683
28708
|
}), r.setCaption("Preparing WordPress"), await new Promise((o) => {
|
|
28684
28709
|
t.src = a, t.addEventListener("load", o, !1);
|
|
28685
28710
|
});
|
|
28686
|
-
const n = await (e.experimentalBlueprintsV2Runner ? new
|
|
28711
|
+
const n = await (e.experimentalBlueprintsV2Runner ? new Hv(e) : new Wv(e)).bootPlayground(t, r);
|
|
28687
28712
|
return r.finish(), n;
|
|
28688
28713
|
}
|
|
28689
|
-
function
|
|
28714
|
+
function zv(e) {
|
|
28690
28715
|
var t, r;
|
|
28691
28716
|
(t = e.sandbox) != null && t.length && !((r = e.sandbox) != null && r.contains("allow-storage-access-by-user-activation")) && e.sandbox.add("allow-storage-access-by-user-activation");
|
|
28692
28717
|
}
|
|
28693
|
-
const bd = "https://playground.wordpress.net",
|
|
28718
|
+
const bd = "https://playground.wordpress.net", Vv = `http://${qv}:${Mv}`, $p = [
|
|
28694
28719
|
bd,
|
|
28695
|
-
|
|
28720
|
+
Vv,
|
|
28696
28721
|
// An older origin that's still used by some plugins.
|
|
28697
28722
|
"https://wasm.wordpress.net",
|
|
28698
28723
|
// Allow hosting remote from same origin
|
|
@@ -28705,9 +28730,9 @@ const bd = "https://playground.wordpress.net", zv = `http://${Bv}:${qv}`, $p = [
|
|
|
28705
28730
|
"http://127.0.0.1",
|
|
28706
28731
|
"http://127.0.0.1:5400",
|
|
28707
28732
|
"https://127.0.0.1",
|
|
28708
|
-
...
|
|
28733
|
+
...Bv
|
|
28709
28734
|
], _d = bd;
|
|
28710
|
-
function
|
|
28735
|
+
function Zv(e) {
|
|
28711
28736
|
const t = new URL(e, _d);
|
|
28712
28737
|
if (!($p.includes(t.origin) && t.pathname === "/remote.html"))
|
|
28713
28738
|
throw new Error(
|
|
@@ -28718,7 +28743,7 @@ function Vv(e) {
|
|
|
28718
28743
|
)}`
|
|
28719
28744
|
);
|
|
28720
28745
|
}
|
|
28721
|
-
function
|
|
28746
|
+
function Gv(e, t) {
|
|
28722
28747
|
const r = new URL(e, _d), i = new URLSearchParams(r.search);
|
|
28723
28748
|
for (const [a, s] of Object.entries(t))
|
|
28724
28749
|
if (s != null && s !== !1)
|
|
@@ -28730,62 +28755,63 @@ function Zv(e, t) {
|
|
|
28730
28755
|
return r.search = i.toString(), r.toString();
|
|
28731
28756
|
}
|
|
28732
28757
|
export {
|
|
28733
|
-
|
|
28734
|
-
|
|
28758
|
+
Cv as BlueprintFetchError,
|
|
28759
|
+
l_ as BlueprintFilesystemRequiredError,
|
|
28735
28760
|
Dn as BlueprintReflection,
|
|
28736
|
-
|
|
28761
|
+
bv as BlueprintStepExecutionError,
|
|
28737
28762
|
gd as InvalidBlueprintError,
|
|
28738
|
-
|
|
28763
|
+
rh as LatestSupportedPHPVersion,
|
|
28764
|
+
th as PHPNextVersion,
|
|
28739
28765
|
Na as ResourceDownloadError,
|
|
28740
28766
|
mo as SupportedPHPVersions,
|
|
28741
|
-
|
|
28767
|
+
Xv as SupportedPHPVersionsList,
|
|
28742
28768
|
sd as activatePlugin,
|
|
28743
28769
|
id as activateTheme,
|
|
28744
28770
|
wd as compileBlueprint,
|
|
28745
28771
|
wd as compileBlueprintV1,
|
|
28746
|
-
|
|
28772
|
+
M_ as cp,
|
|
28747
28773
|
cd as defineSiteUrl,
|
|
28748
28774
|
Mo as defineWpConfigConsts,
|
|
28749
|
-
|
|
28750
|
-
|
|
28751
|
-
|
|
28752
|
-
|
|
28775
|
+
q_ as enableMultisite,
|
|
28776
|
+
J_ as exportWXR,
|
|
28777
|
+
_v as getBlueprintDeclaration,
|
|
28778
|
+
Lv as getV2Runner,
|
|
28753
28779
|
ud as importThemeStarterContent,
|
|
28754
|
-
|
|
28755
|
-
|
|
28756
|
-
|
|
28757
|
-
|
|
28780
|
+
Y_ as importWordPressFiles,
|
|
28781
|
+
Z_ as importWxr,
|
|
28782
|
+
Q_ as installPlugin,
|
|
28783
|
+
ev as installTheme,
|
|
28758
28784
|
Vo as isBlueprintBundle,
|
|
28759
|
-
|
|
28760
|
-
|
|
28761
|
-
|
|
28762
|
-
|
|
28785
|
+
Ev as isStepDefinition,
|
|
28786
|
+
tv as login,
|
|
28787
|
+
H_ as mkdir,
|
|
28788
|
+
W_ as mv,
|
|
28763
28789
|
tt as phpVar,
|
|
28764
28790
|
dn as phpVars,
|
|
28765
|
-
|
|
28766
|
-
|
|
28767
|
-
|
|
28768
|
-
|
|
28791
|
+
F_ as request,
|
|
28792
|
+
rv as resetData,
|
|
28793
|
+
Qv as resolveRemoteBlueprint,
|
|
28794
|
+
Uv as resolveRuntimeConfiguration,
|
|
28769
28795
|
co as rm,
|
|
28770
|
-
|
|
28771
|
-
|
|
28772
|
-
|
|
28773
|
-
|
|
28774
|
-
|
|
28775
|
-
|
|
28776
|
-
|
|
28777
|
-
|
|
28778
|
-
|
|
28779
|
-
|
|
28780
|
-
|
|
28796
|
+
z_ as rmdir,
|
|
28797
|
+
Av as runBlueprintSteps,
|
|
28798
|
+
Av as runBlueprintV1Steps,
|
|
28799
|
+
Jv as runBlueprintV2,
|
|
28800
|
+
T_ as runPHP,
|
|
28801
|
+
A_ as runPHPWithOptions,
|
|
28802
|
+
R_ as runSql,
|
|
28803
|
+
nv as runWpInstallationWizard,
|
|
28804
|
+
Kv as setPhpIniEntries,
|
|
28805
|
+
e2 as setPluginProxyURL,
|
|
28806
|
+
lv as setSiteLanguage,
|
|
28781
28807
|
ld as setSiteOptions,
|
|
28782
|
-
|
|
28808
|
+
t2 as startPlaygroundWeb,
|
|
28783
28809
|
zo as unzip,
|
|
28784
|
-
|
|
28785
|
-
|
|
28810
|
+
D_ as updateUserMeta,
|
|
28811
|
+
kv as validateBlueprint,
|
|
28786
28812
|
pd as wpCLI,
|
|
28787
28813
|
dd as wpContentFilesExcludedFromExport,
|
|
28788
28814
|
Ho as writeFile,
|
|
28789
|
-
|
|
28790
|
-
|
|
28815
|
+
V_ as writeFiles,
|
|
28816
|
+
sv as zipWpContent
|
|
28791
28817
|
};
|