@wp-playground/client 3.0.14 → 3.0.16
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 +40 -40
- package/index.js +403 -394
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -107,7 +107,7 @@ class Ln {
|
|
|
107
107
|
return this.getBundle() || this.getDeclaration();
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
const id = "playground-log",
|
|
110
|
+
const id = "playground-log", Ro = (e, ...t) => {
|
|
111
111
|
Te.dispatchEvent(
|
|
112
112
|
new CustomEvent(id, {
|
|
113
113
|
detail: {
|
|
@@ -117,10 +117,10 @@ const id = "playground-log", Lo = (e, ...t) => {
|
|
|
117
117
|
})
|
|
118
118
|
);
|
|
119
119
|
}, ad = (e, ...t) => {
|
|
120
|
-
switch (typeof e.message == "string" ? Reflect.set(e, "message",
|
|
120
|
+
switch (typeof e.message == "string" ? Reflect.set(e, "message", Pa(e.message)) : e.message.message && typeof e.message.message == "string" && Reflect.set(
|
|
121
121
|
e.message,
|
|
122
122
|
"message",
|
|
123
|
-
|
|
123
|
+
Pa(e.message.message)
|
|
124
124
|
), e.severity) {
|
|
125
125
|
case ut.Debug:
|
|
126
126
|
console.debug(e.message, ...t);
|
|
@@ -141,22 +141,22 @@ const id = "playground-log", Lo = (e, ...t) => {
|
|
|
141
141
|
console.log(e.message, ...t);
|
|
142
142
|
}
|
|
143
143
|
}, od = (e) => e instanceof Error ? [e.message, e.stack].join(`
|
|
144
|
-
`) : JSON.stringify(e, null, 2), yp = [],
|
|
144
|
+
`) : JSON.stringify(e, null, 2), yp = [], Io = (e) => {
|
|
145
145
|
yp.push(e);
|
|
146
|
-
},
|
|
146
|
+
}, Ea = (e) => {
|
|
147
147
|
if (e.raw === !0)
|
|
148
|
-
|
|
148
|
+
Io(e.message);
|
|
149
149
|
else {
|
|
150
150
|
const t = cd(
|
|
151
151
|
typeof e.message == "object" ? od(e.message) : e.message,
|
|
152
152
|
e.severity,
|
|
153
153
|
e.prefix ?? gr.JS
|
|
154
154
|
);
|
|
155
|
-
|
|
155
|
+
Io(t);
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
let gi = 0;
|
|
159
|
-
const
|
|
159
|
+
const $o = "/wordpress/wp-content/debug.log", ld = async (e) => await e.fileExists($o) ? await e.readFileAsText($o) : "", gp = (e, t) => {
|
|
160
160
|
t.addEventListener("request.end", async () => {
|
|
161
161
|
const r = await ld(t);
|
|
162
162
|
if (r.length > gi) {
|
|
@@ -203,7 +203,7 @@ class fd extends EventTarget {
|
|
|
203
203
|
* @returns string[]
|
|
204
204
|
*/
|
|
205
205
|
getLogs() {
|
|
206
|
-
return this.handlers.includes(
|
|
206
|
+
return this.handlers.includes(Ea) ? [...yp] : (this.error(`Logs aren't stored because the logToMemory handler isn't registered.
|
|
207
207
|
If you're using a custom logger instance, make sure to register logToMemory handler.
|
|
208
208
|
`), []);
|
|
209
209
|
}
|
|
@@ -317,11 +317,11 @@ class fd extends EventTarget {
|
|
|
317
317
|
const pd = () => {
|
|
318
318
|
try {
|
|
319
319
|
if (process.env.NODE_ENV === "test")
|
|
320
|
-
return [
|
|
320
|
+
return [Ea, Ro];
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
|
-
return [
|
|
324
|
-
}, Te = new fd(pd()),
|
|
323
|
+
return [Ea, ad, Ro];
|
|
324
|
+
}, Te = new fd(pd()), Pa = (e) => e.replace(/\t/g, ""), cd = (e, t, r) => {
|
|
325
325
|
const i = /* @__PURE__ */ new Date(), a = new Intl.DateTimeFormat("en-GB", {
|
|
326
326
|
year: "numeric",
|
|
327
327
|
month: "short",
|
|
@@ -335,7 +335,7 @@ const pd = () => {
|
|
|
335
335
|
timeZone: "UTC",
|
|
336
336
|
timeZoneName: "short"
|
|
337
337
|
}).format(i), n = a + " " + s;
|
|
338
|
-
return e =
|
|
338
|
+
return e = Pa(e), `[${n}] ${r} ${t.name}: ${e}`;
|
|
339
339
|
}, ud = 5 * 1024 * 1024;
|
|
340
340
|
function dd(e, t) {
|
|
341
341
|
const r = e.headers.get("content-length") || "", i = parseInt(r, 10) || ud;
|
|
@@ -382,7 +382,7 @@ function _p(e, t, r) {
|
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const _i = 1e-5;
|
|
386
386
|
class ti extends EventTarget {
|
|
387
387
|
constructor({
|
|
388
388
|
weight: t = 1,
|
|
@@ -427,7 +427,7 @@ class ti extends EventTarget {
|
|
|
427
427
|
* ```
|
|
428
428
|
*/
|
|
429
429
|
stage(t, r = "") {
|
|
430
|
-
if (t || (t = this._selfWeight), this._selfWeight - t < -
|
|
430
|
+
if (t || (t = this._selfWeight), this._selfWeight - t < -_i)
|
|
431
431
|
throw new Error(
|
|
432
432
|
`Cannot add a stage with weight ${t} as the total weight of registered stages would exceed 1.`
|
|
433
433
|
);
|
|
@@ -469,7 +469,7 @@ class ti extends EventTarget {
|
|
|
469
469
|
}, i);
|
|
470
470
|
}
|
|
471
471
|
set(t) {
|
|
472
|
-
this._selfProgress = Math.min(t, 100), this.notifyProgress(), this._selfProgress +
|
|
472
|
+
this._selfProgress = Math.min(t, 100), this.notifyProgress(), this._selfProgress + _i >= 100 && this.finish();
|
|
473
473
|
}
|
|
474
474
|
finish() {
|
|
475
475
|
this._fillInterval && clearInterval(this._fillInterval), this._selfDone = !0, this._selfProgress = 100, this._isFilling = !1, this._fillInterval = void 0, this.notifyProgress(), this.notifyDone();
|
|
@@ -487,7 +487,7 @@ class ti extends EventTarget {
|
|
|
487
487
|
this._selfCaption = t, this.notifyProgress();
|
|
488
488
|
}
|
|
489
489
|
get done() {
|
|
490
|
-
return this.progress +
|
|
490
|
+
return this.progress + _i >= 100;
|
|
491
491
|
}
|
|
492
492
|
get progress() {
|
|
493
493
|
if (this._selfDone)
|
|
@@ -607,7 +607,7 @@ function Ae(...e) {
|
|
|
607
607
|
const i = r[0] === "/", a = t(r);
|
|
608
608
|
return r = ri(r), !r && !i && (r = "."), r && a && !t(r) && (r += "/"), r;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function Aa(e) {
|
|
611
611
|
if (e === "/")
|
|
612
612
|
return "/";
|
|
613
613
|
e = ri(e);
|
|
@@ -639,7 +639,7 @@ function gd(e = 36, t = "!@#$%^&*()_+=-[]/.,<>?") {
|
|
|
639
639
|
i += r[Math.floor(Math.random() * r.length)];
|
|
640
640
|
return i;
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Ja() {
|
|
643
643
|
return gd(36, "-_");
|
|
644
644
|
}
|
|
645
645
|
function xt(e) {
|
|
@@ -688,7 +688,7 @@ const vd = {
|
|
|
688
688
|
201: "Created",
|
|
689
689
|
200: "OK"
|
|
690
690
|
};
|
|
691
|
-
class
|
|
691
|
+
class wi {
|
|
692
692
|
constructor(t, r, i, a) {
|
|
693
693
|
this.parsedHeaders = null, this.cachedStdoutBytes = null, this.cachedStderrText = null, this.headersStream = t, this.stdout = r, this.stderr = i, this.exitCode = a;
|
|
694
694
|
}
|
|
@@ -861,10 +861,10 @@ class kn {
|
|
|
861
861
|
}
|
|
862
862
|
const Do = "/internal/shared/php.ini";
|
|
863
863
|
var vp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
864
|
-
function
|
|
864
|
+
function Qa(e) {
|
|
865
865
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
866
866
|
}
|
|
867
|
-
const { hasOwnProperty:
|
|
867
|
+
const { hasOwnProperty: bi } = Object.prototype, Ta = (e, t = {}) => {
|
|
868
868
|
typeof t == "string" && (t = { section: t }), t.align = t.align === !0, t.newline = t.newline === !0, t.sort = t.sort === !0, t.whitespace = t.whitespace === !0 || t.align === !0, t.platform = t.platform || typeof process < "u" && process.platform, t.bracketedArray = t.bracketedArray !== !1;
|
|
869
869
|
const r = t.platform === "win32" ? `\r
|
|
870
870
|
` : `
|
|
@@ -884,7 +884,7 @@ const { hasOwnProperty: wi } = Object.prototype, Aa = (e, t = {}) => {
|
|
|
884
884
|
}
|
|
885
885
|
t.section && o.length && (o = "[" + tr(t.section) + "]" + (t.newline ? r + r : r) + o);
|
|
886
886
|
for (const p of a) {
|
|
887
|
-
const c = xp(p, ".").join("\\."), m = (t.section ? t.section + "." : "") + c, h =
|
|
887
|
+
const c = xp(p, ".").join("\\."), m = (t.section ? t.section + "." : "") + c, h = Ta(e[p], {
|
|
888
888
|
...t,
|
|
889
889
|
section: m
|
|
890
890
|
});
|
|
@@ -929,17 +929,17 @@ const Ho = (e, t = {}) => {
|
|
|
929
929
|
if (g === "__proto__")
|
|
930
930
|
continue;
|
|
931
931
|
const R = c[3] ? ks(c[4]) : !0, y = R === "true" || R === "false" || R === "null" ? JSON.parse(R) : R;
|
|
932
|
-
h && (
|
|
932
|
+
h && (bi.call(i, g) ? Array.isArray(i[g]) || (i[g] = [i[g]]) : i[g] = []), Array.isArray(i[g]) ? i[g].push(y) : i[g] = y;
|
|
933
933
|
}
|
|
934
934
|
const f = [];
|
|
935
935
|
for (const p of Object.keys(r)) {
|
|
936
|
-
if (!
|
|
936
|
+
if (!bi.call(r, p) || typeof r[p] != "object" || Array.isArray(r[p]))
|
|
937
937
|
continue;
|
|
938
938
|
const c = xp(p, ".");
|
|
939
939
|
i = r;
|
|
940
940
|
const m = c.pop(), h = m.replace(/\\\./g, ".");
|
|
941
941
|
for (const g of c)
|
|
942
|
-
g !== "__proto__" && ((!
|
|
942
|
+
g !== "__proto__" && ((!bi.call(i, g) || typeof i[g] != "object") && (i[g] = /* @__PURE__ */ Object.create(null)), i = i[g]);
|
|
943
943
|
i === r && h === m || (i[h] = r[p], f.push(p));
|
|
944
944
|
}
|
|
945
945
|
for (const p of f)
|
|
@@ -971,8 +971,8 @@ const Ho = (e, t = {}) => {
|
|
|
971
971
|
var Fo = {
|
|
972
972
|
parse: Ho,
|
|
973
973
|
decode: Ho,
|
|
974
|
-
stringify:
|
|
975
|
-
encode:
|
|
974
|
+
stringify: Ta,
|
|
975
|
+
encode: Ta,
|
|
976
976
|
safe: tr,
|
|
977
977
|
unsafe: ks
|
|
978
978
|
};
|
|
@@ -1066,7 +1066,7 @@ ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symb
|
|
|
1066
1066
|
}, ReadableStream.prototype.iterate = // @ts-ignore
|
|
1067
1067
|
ReadableStream.prototype[Symbol.asyncIterator]);
|
|
1068
1068
|
new pn({ concurrency: 10 });
|
|
1069
|
-
const
|
|
1069
|
+
const eo = [
|
|
1070
1070
|
"8.4",
|
|
1071
1071
|
"8.3",
|
|
1072
1072
|
"8.2",
|
|
@@ -1075,12 +1075,12 @@ const Qa = [
|
|
|
1075
1075
|
"7.4",
|
|
1076
1076
|
"7.3",
|
|
1077
1077
|
"7.2"
|
|
1078
|
-
], Ad =
|
|
1078
|
+
], Ad = eo[0], ev = eo;
|
|
1079
1079
|
async function si(e, t, r, { rmRoot: i = !1 } = {}) {
|
|
1080
1080
|
i && await e.isDir(t) && await e.rmdir(t, { recursive: !0 });
|
|
1081
1081
|
for (const [a, s] of Object.entries(r)) {
|
|
1082
1082
|
const n = Ae(t, a);
|
|
1083
|
-
await e.fileExists(
|
|
1083
|
+
await e.fileExists(Aa(n)) || await e.mkdir(Aa(n)), s instanceof Uint8Array || typeof s == "string" ? await e.writeFile(n, s) : await si(e, n, s);
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
/**
|
|
@@ -1090,7 +1090,7 @@ async function si(e, t, r, { rmRoot: i = !1 } = {}) {
|
|
|
1090
1090
|
* Copyright 2019 Google LLC
|
|
1091
1091
|
* SPDX-License-Identifier: Apache-2.0
|
|
1092
1092
|
*/
|
|
1093
|
-
const kp = Symbol("Comlink.proxy"), Td = Symbol("Comlink.endpoint"), Od = Symbol("Comlink.releaseProxy"),
|
|
1093
|
+
const kp = Symbol("Comlink.proxy"), Td = Symbol("Comlink.endpoint"), Od = Symbol("Comlink.releaseProxy"), vi = Symbol("Comlink.finalizer"), Es = Symbol("Comlink.thrown");
|
|
1094
1094
|
/**
|
|
1095
1095
|
* @license
|
|
1096
1096
|
* Copyright 2019 Google LLC
|
|
@@ -1110,10 +1110,10 @@ const js = {
|
|
|
1110
1110
|
canHandle: (e) => Ep(e) && e[kp],
|
|
1111
1111
|
serialize(e) {
|
|
1112
1112
|
const { port1: t, port2: r } = new MessageChannel();
|
|
1113
|
-
return
|
|
1113
|
+
return to(e, t), [r, [r]];
|
|
1114
1114
|
},
|
|
1115
1115
|
deserialize(e) {
|
|
1116
|
-
return e.start(),
|
|
1116
|
+
return e.start(), ro(e);
|
|
1117
1117
|
}
|
|
1118
1118
|
}, Ld = {
|
|
1119
1119
|
canHandle: (e) => Ep(e) && Es in e,
|
|
@@ -1144,7 +1144,7 @@ function Rd(e, t) {
|
|
|
1144
1144
|
return !0;
|
|
1145
1145
|
return !1;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function to(e, t = globalThis, r = ["*"], i) {
|
|
1148
1148
|
t.addEventListener("message", function a(s) {
|
|
1149
1149
|
if (!s || !s.data)
|
|
1150
1150
|
return;
|
|
@@ -1180,7 +1180,7 @@ function eo(e, t = globalThis, r = ["*"], i) {
|
|
|
1180
1180
|
case bt.ENDPOINT:
|
|
1181
1181
|
{
|
|
1182
1182
|
const { port1: g, port2: R } = new MessageChannel();
|
|
1183
|
-
|
|
1183
|
+
to(e, R), c = Fd(g, [g]);
|
|
1184
1184
|
}
|
|
1185
1185
|
break;
|
|
1186
1186
|
case bt.RELEASE:
|
|
@@ -1194,7 +1194,7 @@ function eo(e, t = globalThis, r = ["*"], i) {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
Promise.resolve(c).catch((m) => ({ value: m, [Es]: 0 })).then((m) => {
|
|
1196
1196
|
const [h, g] = Ws(m);
|
|
1197
|
-
t.postMessage({ ...h, id: n }, g), o === bt.RELEASE && (t.removeEventListener("message", a), Pp(t),
|
|
1197
|
+
t.postMessage({ ...h, id: n }, g), o === bt.RELEASE && (t.removeEventListener("message", a), Pp(t), vi in e && typeof e[vi] == "function" && e[vi]());
|
|
1198
1198
|
}).catch(() => {
|
|
1199
1199
|
const [m, h] = Ws({
|
|
1200
1200
|
value: new TypeError("Unserializable return value"),
|
|
@@ -1211,7 +1211,7 @@ function Id(e) {
|
|
|
1211
1211
|
function Pp(e) {
|
|
1212
1212
|
Id(e) && e.close();
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function ro(e, t) {
|
|
1215
1215
|
const r = /* @__PURE__ */ new Map();
|
|
1216
1216
|
return e.addEventListener("message", function(a) {
|
|
1217
1217
|
const { data: s } = a;
|
|
@@ -1224,7 +1224,7 @@ function to(e, t) {
|
|
|
1224
1224
|
} finally {
|
|
1225
1225
|
r.delete(s.id);
|
|
1226
1226
|
}
|
|
1227
|
-
}),
|
|
1227
|
+
}), Oa(e, r, [], t);
|
|
1228
1228
|
}
|
|
1229
1229
|
function os(e) {
|
|
1230
1230
|
if (e)
|
|
@@ -1248,7 +1248,7 @@ function $d(e, t) {
|
|
|
1248
1248
|
function Dd(e) {
|
|
1249
1249
|
Us && Us.unregister(e);
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function Oa(e, t, r = [], i = function() {
|
|
1252
1252
|
}) {
|
|
1253
1253
|
let a = !1;
|
|
1254
1254
|
const s = new Proxy(i, {
|
|
@@ -1266,7 +1266,7 @@ function Ta(e, t, r = [], i = function() {
|
|
|
1266
1266
|
}).then(Er);
|
|
1267
1267
|
return f.then.bind(f);
|
|
1268
1268
|
}
|
|
1269
|
-
return
|
|
1269
|
+
return Oa(e, t, [...r, o]);
|
|
1270
1270
|
},
|
|
1271
1271
|
set(n, o, f) {
|
|
1272
1272
|
os(a);
|
|
@@ -1290,7 +1290,7 @@ function Ta(e, t, r = [], i = function() {
|
|
|
1290
1290
|
type: bt.ENDPOINT
|
|
1291
1291
|
}).then(Er);
|
|
1292
1292
|
if (p === "bind")
|
|
1293
|
-
return
|
|
1293
|
+
return Oa(e, t, r.slice(0, -1));
|
|
1294
1294
|
const [c, m] = Bo(f);
|
|
1295
1295
|
return Yr(
|
|
1296
1296
|
e,
|
|
@@ -1415,9 +1415,9 @@ const Ud = [
|
|
|
1415
1415
|
globalThis.AssertionError,
|
|
1416
1416
|
globalThis.SystemError
|
|
1417
1417
|
].filter(Boolean).map((e) => [e.name, e]), Wd = new Map(Ud);
|
|
1418
|
-
class
|
|
1418
|
+
class no extends Error {
|
|
1419
1419
|
constructor(t) {
|
|
1420
|
-
super(
|
|
1420
|
+
super(no._prepareSuperMessage(t)), this.name = "NonError";
|
|
1421
1421
|
}
|
|
1422
1422
|
static _prepareSuperMessage(t) {
|
|
1423
1423
|
try {
|
|
@@ -1452,14 +1452,14 @@ const Md = [
|
|
|
1452
1452
|
property: "errors",
|
|
1453
1453
|
enumerable: !1
|
|
1454
1454
|
}
|
|
1455
|
-
],
|
|
1456
|
-
|
|
1455
|
+
], Ca = /* @__PURE__ */ new WeakSet(), qd = (e) => {
|
|
1456
|
+
Ca.add(e);
|
|
1457
1457
|
const t = e.toJSON();
|
|
1458
|
-
return
|
|
1458
|
+
return Ca.delete(e), t;
|
|
1459
1459
|
}, Cp = (e) => {
|
|
1460
1460
|
const t = Wd.get(e) ?? Error;
|
|
1461
1461
|
return t === AggregateError ? new t([]) : new t();
|
|
1462
|
-
},
|
|
1462
|
+
}, so = ({
|
|
1463
1463
|
from: e,
|
|
1464
1464
|
seen: t,
|
|
1465
1465
|
to: r,
|
|
@@ -1471,9 +1471,9 @@ const Md = [
|
|
|
1471
1471
|
}) => {
|
|
1472
1472
|
if (r || (Array.isArray(e) ? r = [] : !o && jo(e) ? r = Cp(e.name) : r = {}), t.push(e), s >= a)
|
|
1473
1473
|
return r;
|
|
1474
|
-
if (n && typeof e.toJSON == "function" && !
|
|
1474
|
+
if (n && typeof e.toJSON == "function" && !Ca.has(e))
|
|
1475
1475
|
return qd(e);
|
|
1476
|
-
const f = (p) =>
|
|
1476
|
+
const f = (p) => so({
|
|
1477
1477
|
from: p,
|
|
1478
1478
|
seen: [...t],
|
|
1479
1479
|
forceEnumerable: i,
|
|
@@ -1518,7 +1518,7 @@ const Md = [
|
|
|
1518
1518
|
};
|
|
1519
1519
|
function Kd(e, t = {}) {
|
|
1520
1520
|
const { maxDepth: r = Number.POSITIVE_INFINITY, useToJSON: i = !0 } = t;
|
|
1521
|
-
return typeof e == "object" && e !== null ?
|
|
1521
|
+
return typeof e == "object" && e !== null ? so({
|
|
1522
1522
|
from: e,
|
|
1523
1523
|
seen: [],
|
|
1524
1524
|
forceEnumerable: !0,
|
|
@@ -1530,14 +1530,14 @@ function Kd(e, t = {}) {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
function zd(e, t = {}) {
|
|
1532
1532
|
const { maxDepth: r = Number.POSITIVE_INFINITY } = t;
|
|
1533
|
-
return e instanceof Error ? e : Gd(e) ?
|
|
1533
|
+
return e instanceof Error ? e : Gd(e) ? so({
|
|
1534
1534
|
from: e,
|
|
1535
1535
|
seen: [],
|
|
1536
1536
|
to: Cp(e.name),
|
|
1537
1537
|
maxDepth: r,
|
|
1538
1538
|
depth: 0,
|
|
1539
1539
|
serialize: !1
|
|
1540
|
-
}) : new
|
|
1540
|
+
}) : new no(e);
|
|
1541
1541
|
}
|
|
1542
1542
|
function jo(e) {
|
|
1543
1543
|
return !!e && typeof e == "object" && typeof e.name == "string" && typeof e.message == "string" && typeof e.stack == "string";
|
|
@@ -1549,7 +1549,7 @@ function Lp(e, t = void 0) {
|
|
|
1549
1549
|
Zd();
|
|
1550
1550
|
let r;
|
|
1551
1551
|
import.meta.url.startsWith("file://") ? r = Nd(e) : r = e instanceof Worker ? e : Bd(e, t);
|
|
1552
|
-
const a =
|
|
1552
|
+
const a = ro(r), s = Rp(a);
|
|
1553
1553
|
return new Proxy(s, {
|
|
1554
1554
|
get: (n, o) => o === "isConnected" ? async () => {
|
|
1555
1555
|
for (; ; )
|
|
@@ -1585,10 +1585,10 @@ function Zd() {
|
|
|
1585
1585
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
1586
1586
|
serialize(r) {
|
|
1587
1587
|
const { port1: i, port2: a } = new MessageChannel();
|
|
1588
|
-
return
|
|
1588
|
+
return to(r, i), [a, [a]];
|
|
1589
1589
|
},
|
|
1590
1590
|
deserialize(r) {
|
|
1591
|
-
return r.start(),
|
|
1591
|
+
return r.start(), ro(r);
|
|
1592
1592
|
}
|
|
1593
1593
|
}), qt.set("MESSAGE_PORT", {
|
|
1594
1594
|
canHandle: (r) => r instanceof MessagePort,
|
|
@@ -1612,7 +1612,7 @@ function Zd() {
|
|
|
1612
1612
|
const i = t({ value: r });
|
|
1613
1613
|
return r.response && (i[0].value.response = r.response), r.source && (i[0].value.source = r.source), i;
|
|
1614
1614
|
}, qt.set("StreamedPHPResponse", {
|
|
1615
|
-
canHandle: (r) => r instanceof
|
|
1615
|
+
canHandle: (r) => r instanceof wi,
|
|
1616
1616
|
serialize(r) {
|
|
1617
1617
|
const i = Yd(), a = Xd(r.exitCode);
|
|
1618
1618
|
if (i)
|
|
@@ -1623,7 +1623,7 @@ function Zd() {
|
|
|
1623
1623
|
stderr: r.stderr,
|
|
1624
1624
|
exitCodePort: a
|
|
1625
1625
|
}, [a]];
|
|
1626
|
-
const s =
|
|
1626
|
+
const s = xi(r.headersStream), n = xi(r.stdout), o = xi(r.stderr);
|
|
1627
1627
|
return [
|
|
1628
1628
|
{
|
|
1629
1629
|
__type: "StreamedPHPResponse",
|
|
@@ -1640,15 +1640,15 @@ function Zd() {
|
|
|
1640
1640
|
const o = Uo(
|
|
1641
1641
|
r.exitCodePort
|
|
1642
1642
|
);
|
|
1643
|
-
return new
|
|
1643
|
+
return new wi(
|
|
1644
1644
|
r.headers,
|
|
1645
1645
|
r.stdout,
|
|
1646
1646
|
r.stderr,
|
|
1647
1647
|
o
|
|
1648
1648
|
);
|
|
1649
1649
|
}
|
|
1650
|
-
const i =
|
|
1651
|
-
return new
|
|
1650
|
+
const i = Si(r.headersPort), a = Si(r.stdoutPort), s = Si(r.stderrPort), n = Uo(r.exitCodePort);
|
|
1651
|
+
return new wi(i, a, s, n);
|
|
1652
1652
|
}
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
@@ -1666,7 +1666,7 @@ function Yd() {
|
|
|
1666
1666
|
return !1;
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function xi(e) {
|
|
1670
1670
|
const { port1: t, port2: r } = new MessageChannel();
|
|
1671
1671
|
return (async () => {
|
|
1672
1672
|
const i = e.getReader();
|
|
@@ -1711,7 +1711,7 @@ function vi(e) {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
})(), r;
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1714
|
+
function Si(e) {
|
|
1715
1715
|
return new ReadableStream({
|
|
1716
1716
|
start(t) {
|
|
1717
1717
|
const r = (a) => {
|
|
@@ -2059,7 +2059,7 @@ function ih(e) {
|
|
|
2059
2059
|
function ah(e) {
|
|
2060
2060
|
return !e.oid && e.sha && (e.oid = e.sha), e.mode = ih(e.mode), e.type || (e.type = Fp(e.mode)), e;
|
|
2061
2061
|
}
|
|
2062
|
-
class
|
|
2062
|
+
class io {
|
|
2063
2063
|
constructor(t) {
|
|
2064
2064
|
if (Buffer.isBuffer(t))
|
|
2065
2065
|
this._entries = sh(t);
|
|
@@ -2070,7 +2070,7 @@ class so {
|
|
|
2070
2070
|
this._entries.sort(Hp);
|
|
2071
2071
|
}
|
|
2072
2072
|
static from(t) {
|
|
2073
|
-
return new
|
|
2073
|
+
return new io(t);
|
|
2074
2074
|
}
|
|
2075
2075
|
render() {
|
|
2076
2076
|
return this._entries.map((t) => `${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
|
|
@@ -2096,7 +2096,7 @@ class so {
|
|
|
2096
2096
|
yield t;
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
function
|
|
2099
|
+
function La({ name: e, email: t, timestamp: r, timezoneOffset: i }) {
|
|
2100
2100
|
return i = oh(i), `${e} <${t}> ${r} ${i}`;
|
|
2101
2101
|
}
|
|
2102
2102
|
function oh(e) {
|
|
@@ -2155,7 +2155,7 @@ class En {
|
|
|
2155
2155
|
return `object ${t.object}
|
|
2156
2156
|
type ${t.type}
|
|
2157
2157
|
tag ${t.tag}
|
|
2158
|
-
tagger ${
|
|
2158
|
+
tagger ${La(t.tagger)}
|
|
2159
2159
|
|
|
2160
2160
|
${t.message}
|
|
2161
2161
|
${t.gpgsig ? t.gpgsig : ""}`;
|
|
@@ -2223,7 +2223,7 @@ ${t.gpgsig ? t.gpgsig : ""}`;
|
|
|
2223
2223
|
return En.from(n);
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2226
|
+
function ki(e) {
|
|
2227
2227
|
return e.trim().split(`
|
|
2228
2228
|
`).map((t) => " " + t).join(`
|
|
2229
2229
|
`) + `
|
|
@@ -2248,7 +2248,7 @@ class gt {
|
|
|
2248
2248
|
static fromPayloadSignature({ payload: t, signature: r }) {
|
|
2249
2249
|
const i = gt.justHeaders(t), a = gt.justMessage(t), s = rr(
|
|
2250
2250
|
i + `
|
|
2251
|
-
gpgsig` +
|
|
2251
|
+
gpgsig` + ki(r) + `
|
|
2252
2252
|
` + a
|
|
2253
2253
|
);
|
|
2254
2254
|
return new gt(s);
|
|
@@ -2307,11 +2307,11 @@ gpgsig` + Si(r) + `
|
|
|
2307
2307
|
`;
|
|
2308
2308
|
}
|
|
2309
2309
|
const i = t.author;
|
|
2310
|
-
r += `author ${
|
|
2310
|
+
r += `author ${La(i)}
|
|
2311
2311
|
`;
|
|
2312
2312
|
const a = t.committer || t.author;
|
|
2313
|
-
return r += `committer ${
|
|
2314
|
-
`, t.gpgsig && (r += "gpgsig" +
|
|
2313
|
+
return r += `committer ${La(a)}
|
|
2314
|
+
`, t.gpgsig && (r += "gpgsig" + ki(t.gpgsig)), r;
|
|
2315
2315
|
}
|
|
2316
2316
|
static render(t) {
|
|
2317
2317
|
return gt.renderHeaders(t) + `
|
|
@@ -2344,7 +2344,7 @@ gpgsig`)), i = t.slice(
|
|
|
2344
2344
|
let { signature: n } = await r({ payload: a, secretKey: i });
|
|
2345
2345
|
n = rr(n);
|
|
2346
2346
|
const f = gt.justHeaders(t._commit) + `
|
|
2347
|
-
gpgsig` +
|
|
2347
|
+
gpgsig` + ki(n) + `
|
|
2348
2348
|
` + s;
|
|
2349
2349
|
return gt.from(f);
|
|
2350
2350
|
}
|
|
@@ -2389,7 +2389,7 @@ var Bp = {};
|
|
|
2389
2389
|
t.table = i, t.bstr = T, t.buf = H, t.str = E;
|
|
2390
2390
|
});
|
|
2391
2391
|
})(Bp);
|
|
2392
|
-
const dh = /* @__PURE__ */
|
|
2392
|
+
const dh = /* @__PURE__ */ Qa(Bp);
|
|
2393
2393
|
class hh {
|
|
2394
2394
|
static wrap({ type: t, object: r }) {
|
|
2395
2395
|
return Buffer.concat([
|
|
@@ -2566,7 +2566,7 @@ function dn(e) {
|
|
|
2566
2566
|
for (var t = e.length; --t >= 0; )
|
|
2567
2567
|
e[t] = 0;
|
|
2568
2568
|
}
|
|
2569
|
-
var wh = 0, jp = 1, bh = 2, vh = 3, xh = 258,
|
|
2569
|
+
var wh = 0, jp = 1, bh = 2, vh = 3, xh = 258, ao = 29, Vn = 256, In = Vn + 1 + ao, tn = 30, oo = 19, Np = 2 * In + 1, Tr = 15, Ei = 16, Sh = 7, lo = 256, Up = 16, Wp = 17, Mp = 18, Ra = (
|
|
2570
2570
|
/* extra bits for each length code */
|
|
2571
2571
|
[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]
|
|
2572
2572
|
), Ps = (
|
|
@@ -2583,15 +2583,15 @@ var $n = new Array(Eh);
|
|
|
2583
2583
|
dn($n);
|
|
2584
2584
|
var Dn = new Array(xh - vh + 1);
|
|
2585
2585
|
dn(Dn);
|
|
2586
|
-
var
|
|
2587
|
-
dn(
|
|
2586
|
+
var fo = new Array(ao);
|
|
2587
|
+
dn(fo);
|
|
2588
2588
|
var qs = new Array(tn);
|
|
2589
2589
|
dn(qs);
|
|
2590
|
-
function
|
|
2590
|
+
function Pi(e, t, r, i, a) {
|
|
2591
2591
|
this.static_tree = e, this.extra_bits = t, this.extra_base = r, this.elems = i, this.max_length = a, this.has_stree = e && e.length;
|
|
2592
2592
|
}
|
|
2593
2593
|
var Kp, zp, Gp;
|
|
2594
|
-
function
|
|
2594
|
+
function Ai(e, t) {
|
|
2595
2595
|
this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
|
|
2596
2596
|
}
|
|
2597
2597
|
function Vp(e) {
|
|
@@ -2601,7 +2601,7 @@ function Hn(e, t) {
|
|
|
2601
2601
|
e.pending_buf[e.pending++] = t & 255, e.pending_buf[e.pending++] = t >>> 8 & 255;
|
|
2602
2602
|
}
|
|
2603
2603
|
function dt(e, t, r) {
|
|
2604
|
-
e.bi_valid >
|
|
2604
|
+
e.bi_valid > Ei - r ? (e.bi_buf |= t << e.bi_valid & 65535, Hn(e, e.bi_buf), e.bi_buf = t >> Ei - e.bi_valid, e.bi_valid += r - Ei) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += r);
|
|
2605
2605
|
}
|
|
2606
2606
|
function zt(e, t, r) {
|
|
2607
2607
|
dt(
|
|
@@ -2649,8 +2649,8 @@ function Yp(e, t, r) {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
function Th() {
|
|
2651
2651
|
var e, t, r, i, a, s = new Array(Tr + 1);
|
|
2652
|
-
for (r = 0, i = 0; i <
|
|
2653
|
-
for (
|
|
2652
|
+
for (r = 0, i = 0; i < ao - 1; i++)
|
|
2653
|
+
for (fo[i] = r, e = 0; e < 1 << Ra[i]; e++)
|
|
2654
2654
|
Dn[r++] = i;
|
|
2655
2655
|
for (Dn[r - 1] = i, a = 0, i = 0; i < 16; i++)
|
|
2656
2656
|
for (qs[i] = a, e = 0; e < 1 << Ps[i]; e++)
|
|
@@ -2670,7 +2670,7 @@ function Th() {
|
|
|
2670
2670
|
nr[e * 2 + 1] = 8, e++, s[8]++;
|
|
2671
2671
|
for (Yp(nr, In + 1, s), e = 0; e < tn; e++)
|
|
2672
2672
|
Pn[e * 2 + 1] = 5, Pn[e * 2] = Zp(e, 5);
|
|
2673
|
-
Kp = new
|
|
2673
|
+
Kp = new Pi(nr, Ra, Vn + 1, In, Tr), zp = new Pi(Pn, Ps, 0, tn, Tr), Gp = new Pi(new Array(0), kh, 0, oo, Sh);
|
|
2674
2674
|
}
|
|
2675
2675
|
function Xp(e) {
|
|
2676
2676
|
var t;
|
|
@@ -2678,9 +2678,9 @@ function Xp(e) {
|
|
|
2678
2678
|
e.dyn_ltree[t * 2] = 0;
|
|
2679
2679
|
for (t = 0; t < tn; t++)
|
|
2680
2680
|
e.dyn_dtree[t * 2] = 0;
|
|
2681
|
-
for (t = 0; t <
|
|
2681
|
+
for (t = 0; t < oo; t++)
|
|
2682
2682
|
e.bl_tree[t * 2] = 0;
|
|
2683
|
-
e.dyn_ltree[
|
|
2683
|
+
e.dyn_ltree[lo * 2] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
|
|
2684
2684
|
}
|
|
2685
2685
|
function Jp(e) {
|
|
2686
2686
|
e.bi_valid > 8 ? Hn(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
@@ -2692,7 +2692,7 @@ function Vo(e, t, r, i) {
|
|
|
2692
2692
|
var a = t * 2, s = r * 2;
|
|
2693
2693
|
return e[a] < e[s] || e[a] === e[s] && i[t] <= i[r];
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2695
|
+
function Ti(e, t, r) {
|
|
2696
2696
|
for (var i = e.heap[r], a = r << 1; a <= e.heap_len && (a < e.heap_len && Vo(t, e.heap[a + 1], e.heap[a], e.depth) && a++, !Vo(t, i, e.heap[a], e.depth)); )
|
|
2697
2697
|
e.heap[r] = e.heap[a], r = a, a <<= 1;
|
|
2698
2698
|
e.heap[r] = i;
|
|
@@ -2701,18 +2701,18 @@ function Zo(e, t, r) {
|
|
|
2701
2701
|
var i, a, s = 0, n, o;
|
|
2702
2702
|
if (e.last_lit !== 0)
|
|
2703
2703
|
do
|
|
2704
|
-
i = e.pending_buf[e.d_buf + s * 2] << 8 | e.pending_buf[e.d_buf + s * 2 + 1], a = e.pending_buf[e.l_buf + s], s++, i === 0 ? zt(e, a, t) : (n = Dn[a], zt(e, n + Vn + 1, t), o =
|
|
2704
|
+
i = e.pending_buf[e.d_buf + s * 2] << 8 | e.pending_buf[e.d_buf + s * 2 + 1], a = e.pending_buf[e.l_buf + s], s++, i === 0 ? zt(e, a, t) : (n = Dn[a], zt(e, n + Vn + 1, t), o = Ra[n], o !== 0 && (a -= fo[n], dt(e, a, o)), i--, n = Vp(i), zt(e, n, r), o = Ps[n], o !== 0 && (i -= qs[n], dt(e, i, o)));
|
|
2705
2705
|
while (s < e.last_lit);
|
|
2706
|
-
zt(e,
|
|
2706
|
+
zt(e, lo, t);
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2708
|
+
function Ia(e, t) {
|
|
2709
2709
|
var r = t.dyn_tree, i = t.stat_desc.static_tree, a = t.stat_desc.has_stree, s = t.stat_desc.elems, n, o, f = -1, p;
|
|
2710
2710
|
for (e.heap_len = 0, e.heap_max = Np, n = 0; n < s; n++)
|
|
2711
2711
|
r[n * 2] !== 0 ? (e.heap[++e.heap_len] = f = n, e.depth[n] = 0) : r[n * 2 + 1] = 0;
|
|
2712
2712
|
for (; e.heap_len < 2; )
|
|
2713
2713
|
p = e.heap[++e.heap_len] = f < 2 ? ++f : 0, r[p * 2] = 1, e.depth[p] = 0, e.opt_len--, a && (e.static_len -= i[p * 2 + 1]);
|
|
2714
2714
|
for (t.max_code = f, n = e.heap_len >> 1; n >= 1; n--)
|
|
2715
|
-
|
|
2715
|
+
Ti(e, r, n);
|
|
2716
2716
|
p = s;
|
|
2717
2717
|
do
|
|
2718
2718
|
n = e.heap[
|
|
@@ -2721,7 +2721,7 @@ function Ra(e, t) {
|
|
|
2721
2721
|
], e.heap[
|
|
2722
2722
|
1
|
|
2723
2723
|
/*SMALLEST*/
|
|
2724
|
-
] = e.heap[e.heap_len--],
|
|
2724
|
+
] = e.heap[e.heap_len--], Ti(
|
|
2725
2725
|
e,
|
|
2726
2726
|
r,
|
|
2727
2727
|
1
|
|
@@ -2732,7 +2732,7 @@ function Ra(e, t) {
|
|
|
2732
2732
|
], e.heap[--e.heap_max] = n, e.heap[--e.heap_max] = o, r[p * 2] = r[n * 2] + r[o * 2], e.depth[p] = (e.depth[n] >= e.depth[o] ? e.depth[n] : e.depth[o]) + 1, r[n * 2 + 1] = r[o * 2 + 1] = p, e.heap[
|
|
2733
2733
|
1
|
|
2734
2734
|
/*SMALLEST*/
|
|
2735
|
-
] = p++,
|
|
2735
|
+
] = p++, Ti(
|
|
2736
2736
|
e,
|
|
2737
2737
|
r,
|
|
2738
2738
|
1
|
|
@@ -2763,7 +2763,7 @@ function Xo(e, t, r) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
function Ch(e) {
|
|
2765
2765
|
var t;
|
|
2766
|
-
for (Yo(e, e.dyn_ltree, e.l_desc.max_code), Yo(e, e.dyn_dtree, e.d_desc.max_code),
|
|
2766
|
+
for (Yo(e, e.dyn_ltree, e.l_desc.max_code), Yo(e, e.dyn_dtree, e.d_desc.max_code), Ia(e, e.bl_desc), t = oo - 1; t >= 3 && e.bl_tree[qp[t] * 2 + 1] === 0; t--)
|
|
2767
2767
|
;
|
|
2768
2768
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
2769
2769
|
}
|
|
@@ -2787,17 +2787,17 @@ function Rh(e) {
|
|
|
2787
2787
|
}
|
|
2788
2788
|
var Jo = !1;
|
|
2789
2789
|
function Ih(e) {
|
|
2790
|
-
Jo || (Th(), Jo = !0), e.l_desc = new
|
|
2790
|
+
Jo || (Th(), Jo = !0), e.l_desc = new Ai(e.dyn_ltree, Kp), e.d_desc = new Ai(e.dyn_dtree, zp), e.bl_desc = new Ai(e.bl_tree, Gp), e.bi_buf = 0, e.bi_valid = 0, Xp(e);
|
|
2791
2791
|
}
|
|
2792
2792
|
function Qp(e, t, r, i) {
|
|
2793
2793
|
dt(e, (wh << 1) + (i ? 1 : 0), 3), Oh(e, t, r);
|
|
2794
2794
|
}
|
|
2795
2795
|
function $h(e) {
|
|
2796
|
-
dt(e, jp << 1, 3), zt(e,
|
|
2796
|
+
dt(e, jp << 1, 3), zt(e, lo, nr), Ph(e);
|
|
2797
2797
|
}
|
|
2798
2798
|
function Dh(e, t, r, i) {
|
|
2799
2799
|
var a, s, n = 0;
|
|
2800
|
-
e.level > 0 ? (e.strm.data_type === _h && (e.strm.data_type = Rh(e)),
|
|
2800
|
+
e.level > 0 ? (e.strm.data_type === _h && (e.strm.data_type = Rh(e)), Ia(e, e.l_desc), Ia(e, e.d_desc), n = Ch(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 ? Qp(e, t, r, i) : e.strategy === gh || s === a ? (dt(e, (jp << 1) + (i ? 1 : 0), 3), Zo(e, nr, Pn)) : (dt(e, (bh << 1) + (i ? 1 : 0), 3), Lh(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, n + 1), Zo(e, e.dyn_ltree, e.dyn_dtree)), Xp(e), i && Jp(e);
|
|
2801
2801
|
}
|
|
2802
2802
|
function Hh(e, t, r) {
|
|
2803
2803
|
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[(Dn[r] + Vn + 1) * 2]++, e.dyn_dtree[Vp(t) * 2]++), e.last_lit === e.lit_bufsize - 1;
|
|
@@ -2835,7 +2835,7 @@ function Nh(e, t, r, i) {
|
|
|
2835
2835
|
e = e >>> 8 ^ a[(e ^ t[n]) & 255];
|
|
2836
2836
|
return e ^ -1;
|
|
2837
2837
|
}
|
|
2838
|
-
var tc = Nh,
|
|
2838
|
+
var tc = Nh, po = {
|
|
2839
2839
|
2: "need dictionary",
|
|
2840
2840
|
/* Z_NEED_DICT 2 */
|
|
2841
2841
|
1: "stream end",
|
|
@@ -2854,7 +2854,7 @@ var tc = Nh, fo = {
|
|
|
2854
2854
|
/* Z_BUF_ERROR (-5) */
|
|
2855
2855
|
"-6": "incompatible version"
|
|
2856
2856
|
/* Z_VERSION_ERROR (-6) */
|
|
2857
|
-
}, at = ar, At = un, rc = ec, ur = tc, Uh =
|
|
2857
|
+
}, at = ar, At = un, rc = ec, ur = tc, Uh = po, Nr = 0, Wh = 1, Mh = 3, vr = 4, Qo = 5, Gt = 0, el = 1, Tt = -2, qh = -3, Oi = -5, Kh = -1, zh = 1, ls = 2, Gh = 3, Vh = 4, Zh = 0, Yh = 2, ii = 8, Xh = 9, Jh = 15, Qh = 8, em = 29, tm = 256, $a = tm + 1 + em, rm = 30, nm = 19, sm = 2 * $a + 1, im = 15, ge = 3, wr = 258, Ht = wr + ge + 1, am = 32, ai = 42, Da = 69, As = 73, Ts = 91, Os = 103, Or = 113, Sn = 666, qe = 1, Zn = 2, $r = 3, hn = 4, om = 3;
|
|
2858
2858
|
function br(e, t) {
|
|
2859
2859
|
return e.msg = Uh[t], t;
|
|
2860
2860
|
}
|
|
@@ -2937,7 +2937,7 @@ function fm(e, t) {
|
|
|
2937
2937
|
}
|
|
2938
2938
|
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? $r : hn) : (e.strstart > e.block_start && (Qe(e, !1), e.strm.avail_out === 0), qe);
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2940
|
+
function Ci(e, t) {
|
|
2941
2941
|
for (var r, i; ; ) {
|
|
2942
2942
|
if (e.lookahead < Ht) {
|
|
2943
2943
|
if (Dr(e), e.lookahead < Ht && t === Nr)
|
|
@@ -3024,11 +3024,11 @@ Qr = [
|
|
|
3024
3024
|
/* good lazy nice chain */
|
|
3025
3025
|
new jt(0, 0, 0, 0, fm),
|
|
3026
3026
|
/* 0 store only */
|
|
3027
|
-
new jt(4, 4, 8, 4,
|
|
3027
|
+
new jt(4, 4, 8, 4, Ci),
|
|
3028
3028
|
/* 1 max speed, no lazy matches */
|
|
3029
|
-
new jt(4, 5, 16, 8,
|
|
3029
|
+
new jt(4, 5, 16, 8, Ci),
|
|
3030
3030
|
/* 2 */
|
|
3031
|
-
new jt(4, 6, 32, 32,
|
|
3031
|
+
new jt(4, 6, 32, 32, Ci),
|
|
3032
3032
|
/* 3 */
|
|
3033
3033
|
new jt(4, 4, 16, 16, Mr),
|
|
3034
3034
|
/* 4 lazy matches */
|
|
@@ -3047,7 +3047,7 @@ function um(e) {
|
|
|
3047
3047
|
e.window_size = 2 * e.w_size, _r(e.head), e.max_lazy_match = Qr[e.level].max_lazy, e.good_match = Qr[e.level].good_length, e.nice_match = Qr[e.level].nice_length, e.max_chain_length = Qr[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;
|
|
3048
3048
|
}
|
|
3049
3049
|
function dm() {
|
|
3050
|
-
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 = ii, 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 at.Buf16(sm * 2), this.dyn_dtree = new at.Buf16((2 * rm + 1) * 2), this.bl_tree = new at.Buf16((2 * nm + 1) * 2), _r(this.dyn_ltree), _r(this.dyn_dtree), _r(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new at.Buf16(im + 1), this.heap = new at.Buf16(2 *
|
|
3050
|
+
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 = ii, 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 at.Buf16(sm * 2), this.dyn_dtree = new at.Buf16((2 * rm + 1) * 2), this.bl_tree = new at.Buf16((2 * nm + 1) * 2), _r(this.dyn_ltree), _r(this.dyn_dtree), _r(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new at.Buf16(im + 1), this.heap = new at.Buf16(2 * $a + 1), _r(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new at.Buf16(2 * $a + 1), _r(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;
|
|
3051
3051
|
}
|
|
3052
3052
|
function sc(e) {
|
|
3053
3053
|
var t;
|
|
@@ -3078,18 +3078,18 @@ function ym(e, t) {
|
|
|
3078
3078
|
if (!e || !e.state || t > Qo || t < 0)
|
|
3079
3079
|
return e ? br(e, Tt) : Tt;
|
|
3080
3080
|
if (i = e.state, !e.output || !e.input && e.avail_in !== 0 || i.status === Sn && t !== vr)
|
|
3081
|
-
return br(e, e.avail_out === 0 ?
|
|
3081
|
+
return br(e, e.avail_out === 0 ? Oi : Tt);
|
|
3082
3082
|
if (i.strm = e, r = i.last_flush, i.last_flush = t, i.status === ai)
|
|
3083
3083
|
if (i.wrap === 2)
|
|
3084
3084
|
e.adler = 0, Se(i, 31), Se(i, 139), Se(i, 8), i.gzhead ? (Se(
|
|
3085
3085
|
i,
|
|
3086
3086
|
(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)
|
|
3087
|
-
), Se(i, i.gzhead.time & 255), Se(i, i.gzhead.time >> 8 & 255), Se(i, i.gzhead.time >> 16 & 255), Se(i, i.gzhead.time >> 24 & 255), Se(i, i.level === 9 ? 2 : i.strategy >= ls || i.level < 2 ? 4 : 0), Se(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (Se(i, i.gzhead.extra.length & 255), Se(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 =
|
|
3087
|
+
), Se(i, i.gzhead.time & 255), Se(i, i.gzhead.time >> 8 & 255), Se(i, i.gzhead.time >> 16 & 255), Se(i, i.gzhead.time >> 24 & 255), Se(i, i.level === 9 ? 2 : i.strategy >= ls || i.level < 2 ? 4 : 0), Se(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (Se(i, i.gzhead.extra.length & 255), Se(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 = Da) : (Se(i, 0), Se(i, 0), Se(i, 0), Se(i, 0), Se(i, 0), Se(i, i.level === 9 ? 2 : i.strategy >= ls || i.level < 2 ? 4 : 0), Se(i, om), i.status = Or);
|
|
3088
3088
|
else {
|
|
3089
3089
|
var n = ii + (i.w_bits - 8 << 4) << 8, o = -1;
|
|
3090
3090
|
i.strategy >= ls || i.level < 2 ? o = 0 : i.level < 6 ? o = 1 : i.level === 6 ? o = 2 : o = 3, n |= o << 6, i.strstart !== 0 && (n |= am), n += 31 - n % 31, i.status = Or, gn(i, n), i.strstart !== 0 && (gn(i, e.adler >>> 16), gn(i, e.adler & 65535)), e.adler = 1;
|
|
3091
3091
|
}
|
|
3092
|
-
if (i.status ===
|
|
3092
|
+
if (i.status === Da)
|
|
3093
3093
|
if (i.gzhead.extra) {
|
|
3094
3094
|
for (a = i.pending; i.gzindex < (i.gzhead.extra.length & 65535) && !(i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > a && (e.adler = ur(e.adler, i.pending_buf, i.pending - a, a)), dr(e), a = i.pending, i.pending === i.pending_buf_size)); )
|
|
3095
3095
|
Se(i, i.gzhead.extra[i.gzindex] & 255), i.gzindex++;
|
|
@@ -3126,9 +3126,9 @@ function ym(e, t) {
|
|
|
3126
3126
|
if (dr(e), e.avail_out === 0)
|
|
3127
3127
|
return i.last_flush = -1, Gt;
|
|
3128
3128
|
} else if (e.avail_in === 0 && tl(t) <= tl(r) && t !== vr)
|
|
3129
|
-
return br(e,
|
|
3129
|
+
return br(e, Oi);
|
|
3130
3130
|
if (i.status === Sn && e.avail_in !== 0)
|
|
3131
|
-
return br(e,
|
|
3131
|
+
return br(e, Oi);
|
|
3132
3132
|
if (e.avail_in !== 0 || i.lookahead !== 0 || t !== Nr && i.status !== Sn) {
|
|
3133
3133
|
var f = i.strategy === ls ? cm(i, t) : i.strategy === Gh ? pm(i, t) : Qr[i.level].func(i, t);
|
|
3134
3134
|
if ((f === $r || f === hn) && (i.status = Sn), f === qe || f === $r)
|
|
@@ -3140,7 +3140,7 @@ function ym(e, t) {
|
|
|
3140
3140
|
}
|
|
3141
3141
|
function gm(e) {
|
|
3142
3142
|
var t;
|
|
3143
|
-
return !e || !e.state ? Tt : (t = e.state.status, t !== ai && t !==
|
|
3143
|
+
return !e || !e.state ? Tt : (t = e.state.status, t !== ai && t !== Da && t !== As && t !== Ts && t !== Os && t !== Or && t !== Sn ? br(e, Tt) : (e.state = null, t === Or ? br(e, qh) : Gt));
|
|
3144
3144
|
}
|
|
3145
3145
|
function _m(e, t) {
|
|
3146
3146
|
var r = t.length, i, a, s, n, o, f, p, c;
|
|
@@ -3232,7 +3232,7 @@ Ur.utf8border = function(e, t) {
|
|
|
3232
3232
|
function wm() {
|
|
3233
3233
|
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;
|
|
3234
3234
|
}
|
|
3235
|
-
var pc = wm, An = Xt, Tn = ar,
|
|
3235
|
+
var pc = wm, An = Xt, Tn = ar, Ha = Ur, Fa = po, bm = pc, cc = Object.prototype.toString, vm = 0, Li = 4, rn = 0, rl = 1, nl = 2, xm = -1, Sm = 0, km = 8;
|
|
3236
3236
|
function Hr(e) {
|
|
3237
3237
|
if (!(this instanceof Hr)) return new Hr(e);
|
|
3238
3238
|
this.options = Tn.assign({
|
|
@@ -3255,11 +3255,11 @@ function Hr(e) {
|
|
|
3255
3255
|
t.strategy
|
|
3256
3256
|
);
|
|
3257
3257
|
if (r !== rn)
|
|
3258
|
-
throw new Error(
|
|
3258
|
+
throw new Error(Fa[r]);
|
|
3259
3259
|
if (t.header && An.deflateSetHeader(this.strm, t.header), t.dictionary) {
|
|
3260
3260
|
var i;
|
|
3261
|
-
if (typeof t.dictionary == "string" ? i =
|
|
3262
|
-
throw new Error(
|
|
3261
|
+
if (typeof t.dictionary == "string" ? i = Ha.string2buf(t.dictionary) : cc.call(t.dictionary) === "[object ArrayBuffer]" ? i = new Uint8Array(t.dictionary) : i = t.dictionary, r = An.deflateSetDictionary(this.strm, i), r !== rn)
|
|
3262
|
+
throw new Error(Fa[r]);
|
|
3263
3263
|
this._dict_set = !0;
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
@@ -3267,13 +3267,13 @@ Hr.prototype.push = function(e, t) {
|
|
|
3267
3267
|
var r = this.strm, i = this.options.chunkSize, a, s;
|
|
3268
3268
|
if (this.ended)
|
|
3269
3269
|
return !1;
|
|
3270
|
-
s = t === ~~t ? t : t === !0 ?
|
|
3270
|
+
s = t === ~~t ? t : t === !0 ? Li : vm, typeof e == "string" ? r.input = Ha.string2buf(e) : cc.call(e) === "[object ArrayBuffer]" ? r.input = new Uint8Array(e) : r.input = e, r.next_in = 0, r.avail_in = r.input.length;
|
|
3271
3271
|
do {
|
|
3272
3272
|
if (r.avail_out === 0 && (r.output = new Tn.Buf8(i), r.next_out = 0, r.avail_out = i), a = An.deflate(r, s), a !== rl && a !== rn)
|
|
3273
3273
|
return this.onEnd(a), this.ended = !0, !1;
|
|
3274
|
-
(r.avail_out === 0 || r.avail_in === 0 && (s ===
|
|
3274
|
+
(r.avail_out === 0 || r.avail_in === 0 && (s === Li || s === nl)) && (this.options.to === "string" ? this.onData(Ha.buf2binstring(Tn.shrinkBuf(r.output, r.next_out))) : this.onData(Tn.shrinkBuf(r.output, r.next_out)));
|
|
3275
3275
|
} while ((r.avail_in > 0 || r.avail_out === 0) && a !== rl);
|
|
3276
|
-
return s ===
|
|
3276
|
+
return s === Li ? (a = An.deflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === rn) : (s === nl && (this.onEnd(rn), r.avail_out = 0), !0);
|
|
3277
3277
|
};
|
|
3278
3278
|
Hr.prototype.onData = function(e) {
|
|
3279
3279
|
this.chunks.push(e);
|
|
@@ -3281,20 +3281,20 @@ Hr.prototype.onData = function(e) {
|
|
|
3281
3281
|
Hr.prototype.onEnd = function(e) {
|
|
3282
3282
|
e === rn && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = Tn.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
3283
3283
|
};
|
|
3284
|
-
function
|
|
3284
|
+
function co(e, t) {
|
|
3285
3285
|
var r = new Hr(t);
|
|
3286
3286
|
if (r.push(e, !0), r.err)
|
|
3287
|
-
throw r.msg ||
|
|
3287
|
+
throw r.msg || Fa[r.err];
|
|
3288
3288
|
return r.result;
|
|
3289
3289
|
}
|
|
3290
3290
|
function Em(e, t) {
|
|
3291
|
-
return t = t || {}, t.raw = !0,
|
|
3291
|
+
return t = t || {}, t.raw = !0, co(e, t);
|
|
3292
3292
|
}
|
|
3293
3293
|
function Pm(e, t) {
|
|
3294
|
-
return t = t || {}, t.gzip = !0,
|
|
3294
|
+
return t = t || {}, t.gzip = !0, co(e, t);
|
|
3295
3295
|
}
|
|
3296
3296
|
Gn.Deflate = Hr;
|
|
3297
|
-
Gn.deflate =
|
|
3297
|
+
Gn.deflate = co;
|
|
3298
3298
|
Gn.deflateRaw = Em;
|
|
3299
3299
|
Gn.gzip = Pm;
|
|
3300
3300
|
var Yn = {}, Ft = {}, fs = 30, Am = 12, Tm = function(t, r) {
|
|
@@ -3385,7 +3385,7 @@ var Yn = {}, Ft = {}, fs = 30, Am = 12, Tm = function(t, r) {
|
|
|
3385
3385
|
}
|
|
3386
3386
|
} while (a < s && n < f);
|
|
3387
3387
|
H = y >> 3, a -= H, y -= H << 3, R &= (1 << y) - 1, t.next_in = a, t.next_out = n, t.avail_in = a < s ? 5 + (s - a) : 5 - (a - s), t.avail_out = n < f ? 257 + (f - n) : 257 - (n - f), i.hold = R, i.bits = y;
|
|
3388
|
-
}, sl = ar, qr = 15, il = 852, al = 592, ol = 0,
|
|
3388
|
+
}, sl = ar, qr = 15, il = 852, al = 592, ol = 0, Ri = 1, ll = 2, Om = [
|
|
3389
3389
|
/* Length codes 257..285 base */
|
|
3390
3390
|
3,
|
|
3391
3391
|
4,
|
|
@@ -3540,7 +3540,7 @@ var Yn = {}, Ft = {}, fs = 30, Am = 12, Tm = function(t, r) {
|
|
|
3540
3540
|
I[c + 1] = I[c] + $[c];
|
|
3541
3541
|
for (m = 0; m < a; m++)
|
|
3542
3542
|
r[i + m] !== 0 && (o[I[r[i + m]]++] = m);
|
|
3543
|
-
if (t === ol ? (L = j = o, P = 19) : t ===
|
|
3543
|
+
if (t === ol ? (L = j = o, P = 19) : t === Ri ? (L = Om, S -= 257, j = Cm, U -= 257, P = 256) : (L = Lm, j = Rm, P = -1), k = 0, m = 0, c = h, A = n, y = R, _ = 0, H = -1, C = 1 << R, E = C - 1, t === Ri && C > il || t === ll && C > al)
|
|
3544
3544
|
return 1;
|
|
3545
3545
|
for (; ; ) {
|
|
3546
3546
|
M = c - _, o[m] < P ? (Z = 0, z = o[m]) : o[m] > P ? (Z = j[U + o[m]], z = L[S + o[m]]) : (Z = 96, z = 0), D = 1 << c - _, T = 1 << y, h = T;
|
|
@@ -3557,13 +3557,13 @@ var Yn = {}, Ft = {}, fs = 30, Am = 12, Tm = function(t, r) {
|
|
|
3557
3557
|
if (c > R && (k & E) !== H) {
|
|
3558
3558
|
for (_ === 0 && (_ = R), A += h, y = c - _, b = 1 << y; y + _ < g && (b -= $[y + _], !(b <= 0)); )
|
|
3559
3559
|
y++, b <<= 1;
|
|
3560
|
-
if (C += 1 << y, t ===
|
|
3560
|
+
if (C += 1 << y, t === Ri && C > il || t === ll && C > al)
|
|
3561
3561
|
return 1;
|
|
3562
3562
|
H = k & E, s[H] = R << 24 | y << 16 | A - n | 0;
|
|
3563
3563
|
}
|
|
3564
3564
|
}
|
|
3565
3565
|
return k !== 0 && (s[A + k] = c - _ << 24 | 64 << 16 | 0), f.bits = R, 0;
|
|
3566
|
-
}, vt = ar,
|
|
3566
|
+
}, vt = ar, Ba = ec, Nt = tc, $m = Tm, On = Im, Dm = 0, uc = 1, dc = 2, fl = 4, Hm = 5, ps = 6, Fr = 0, Fm = 1, Bm = 2, Ot = -2, hc = -3, mc = -4, jm = -5, pl = 8, yc = 1, cl = 2, ul = 3, dl = 4, hl = 5, ml = 6, yl = 7, gl = 8, _l = 9, wl = 10, Ks = 11, er = 12, Ii = 13, bl = 14, $i = 15, vl = 16, xl = 17, Sl = 18, kl = 19, cs = 20, us = 21, El = 22, Pl = 23, Al = 24, Tl = 25, Ol = 26, Di = 27, Cl = 28, Ll = 29, He = 30, gc = 31, Nm = 32, Um = 852, Wm = 592, Mm = 15, qm = Mm;
|
|
3567
3567
|
function Rl(e) {
|
|
3568
3568
|
return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
|
|
3569
3569
|
}
|
|
@@ -3589,11 +3589,11 @@ function vc(e, t) {
|
|
|
3589
3589
|
function zm(e) {
|
|
3590
3590
|
return vc(e, qm);
|
|
3591
3591
|
}
|
|
3592
|
-
var Il = !0,
|
|
3592
|
+
var Il = !0, Hi, Fi;
|
|
3593
3593
|
function Gm(e) {
|
|
3594
3594
|
if (Il) {
|
|
3595
3595
|
var t;
|
|
3596
|
-
for (
|
|
3596
|
+
for (Hi = new vt.Buf32(512), Fi = new vt.Buf32(32), t = 0; t < 144; )
|
|
3597
3597
|
e.lens[t++] = 8;
|
|
3598
3598
|
for (; t < 256; )
|
|
3599
3599
|
e.lens[t++] = 9;
|
|
@@ -3601,11 +3601,11 @@ function Gm(e) {
|
|
|
3601
3601
|
e.lens[t++] = 7;
|
|
3602
3602
|
for (; t < 288; )
|
|
3603
3603
|
e.lens[t++] = 8;
|
|
3604
|
-
for (On(uc, e.lens, 0, 288,
|
|
3604
|
+
for (On(uc, e.lens, 0, 288, Hi, 0, e.work, { bits: 9 }), t = 0; t < 32; )
|
|
3605
3605
|
e.lens[t++] = 5;
|
|
3606
|
-
On(dc, e.lens, 0, 32,
|
|
3606
|
+
On(dc, e.lens, 0, 32, Fi, 0, e.work, { bits: 5 }), Il = !1;
|
|
3607
3607
|
}
|
|
3608
|
-
e.lencode =
|
|
3608
|
+
e.lencode = Hi, e.lenbits = 9, e.distcode = Fi, e.distbits = 5;
|
|
3609
3609
|
}
|
|
3610
3610
|
function xc(e, t, r, i) {
|
|
3611
3611
|
var a, s = e.state;
|
|
@@ -3618,13 +3618,13 @@ function Vm(e, t) {
|
|
|
3618
3618
|
);
|
|
3619
3619
|
if (!e || !e.state || !e.output || !e.input && e.avail_in !== 0)
|
|
3620
3620
|
return Ot;
|
|
3621
|
-
r = e.state, r.mode === er && (r.mode =
|
|
3621
|
+
r = e.state, r.mode === er && (r.mode = Ii), n = e.next_out, a = e.output, f = e.avail_out, s = e.next_in, i = e.input, o = e.avail_in, p = r.hold, c = r.bits, m = o, h = f, A = Fr;
|
|
3622
3622
|
e:
|
|
3623
3623
|
for (; ; )
|
|
3624
3624
|
switch (r.mode) {
|
|
3625
3625
|
case yc:
|
|
3626
3626
|
if (r.wrap === 0) {
|
|
3627
|
-
r.mode =
|
|
3627
|
+
r.mode = Ii;
|
|
3628
3628
|
break;
|
|
3629
3629
|
}
|
|
3630
3630
|
for (; c < 16; ) {
|
|
@@ -3758,9 +3758,9 @@ function Vm(e, t) {
|
|
|
3758
3758
|
case er:
|
|
3759
3759
|
if (t === Hm || t === ps)
|
|
3760
3760
|
break e;
|
|
3761
|
-
case
|
|
3761
|
+
case Ii:
|
|
3762
3762
|
if (r.last) {
|
|
3763
|
-
p >>>= c & 7, c -= c & 7, r.mode =
|
|
3763
|
+
p >>>= c & 7, c -= c & 7, r.mode = Di;
|
|
3764
3764
|
break;
|
|
3765
3765
|
}
|
|
3766
3766
|
for (; c < 3; ) {
|
|
@@ -3796,9 +3796,9 @@ function Vm(e, t) {
|
|
|
3796
3796
|
e.msg = "invalid stored block lengths", r.mode = He;
|
|
3797
3797
|
break;
|
|
3798
3798
|
}
|
|
3799
|
-
if (r.length = p & 65535, p = 0, c = 0, r.mode =
|
|
3799
|
+
if (r.length = p & 65535, p = 0, c = 0, r.mode = $i, t === ps)
|
|
3800
3800
|
break e;
|
|
3801
|
-
case
|
|
3801
|
+
case $i:
|
|
3802
3802
|
r.mode = vl;
|
|
3803
3803
|
case vl:
|
|
3804
3804
|
if (g = r.length, g) {
|
|
@@ -3994,7 +3994,7 @@ function Vm(e, t) {
|
|
|
3994
3994
|
break e;
|
|
3995
3995
|
a[n++] = r.length, f--, r.mode = us;
|
|
3996
3996
|
break;
|
|
3997
|
-
case
|
|
3997
|
+
case Di:
|
|
3998
3998
|
if (r.wrap) {
|
|
3999
3999
|
for (; c < 32; ) {
|
|
4000
4000
|
if (o === 0)
|
|
@@ -4002,7 +4002,7 @@ function Vm(e, t) {
|
|
|
4002
4002
|
o--, p |= i[s++] << c, c += 8;
|
|
4003
4003
|
}
|
|
4004
4004
|
if (h -= f, e.total_out += h, r.total += h, h && (e.adler = r.check = /*UPDATE(state.check, put - _out, _out);*/
|
|
4005
|
-
r.flags ? Nt(r.check, a, h, n - h) :
|
|
4005
|
+
r.flags ? Nt(r.check, a, h, n - h) : Ba(r.check, a, h, n - h)), h = f, (r.flags ? p : Rl(p)) !== r.check) {
|
|
4006
4006
|
e.msg = "incorrect data check", r.mode = He;
|
|
4007
4007
|
break;
|
|
4008
4008
|
}
|
|
@@ -4035,8 +4035,8 @@ function Vm(e, t) {
|
|
|
4035
4035
|
default:
|
|
4036
4036
|
return Ot;
|
|
4037
4037
|
}
|
|
4038
|
-
return e.next_out = n, e.avail_out = f, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, (r.wsize || h !== e.avail_out && r.mode < He && (r.mode <
|
|
4039
|
-
r.flags ? Nt(r.check, a, h, e.next_out - h) :
|
|
4038
|
+
return e.next_out = n, e.avail_out = f, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, (r.wsize || h !== e.avail_out && r.mode < He && (r.mode < Di || t !== fl)) && xc(e, e.output, e.next_out, h - e.avail_out), m -= e.avail_in, h -= e.avail_out, e.total_in += m, e.total_out += h, r.total += h, r.wrap && h && (e.adler = r.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
4039
|
+
r.flags ? Nt(r.check, a, h, e.next_out - h) : Ba(r.check, a, h, e.next_out - h)), e.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === er ? 128 : 0) + (r.mode === cs || r.mode === $i ? 256 : 0), (m === 0 && h === 0 || t === fl) && A === Fr && (A = jm), A;
|
|
4040
4040
|
}
|
|
4041
4041
|
function Zm(e) {
|
|
4042
4042
|
if (!e || !e.state)
|
|
@@ -4050,7 +4050,7 @@ function Ym(e, t) {
|
|
|
4050
4050
|
}
|
|
4051
4051
|
function Xm(e, t) {
|
|
4052
4052
|
var r = t.length, i, a, s;
|
|
4053
|
-
return !e || !e.state || (i = e.state, i.wrap !== 0 && i.mode !== Ks) ? Ot : i.mode === Ks && (a = 1, a =
|
|
4053
|
+
return !e || !e.state || (i = e.state, i.wrap !== 0 && i.mode !== Ks) ? Ot : i.mode === Ks && (a = 1, a = Ba(a, t, r, 0), a !== i.check) ? hc : (s = xc(e, t, r, r), s ? (i.mode = gc, mc) : (i.havedict = 1, Fr));
|
|
4054
4054
|
}
|
|
4055
4055
|
Ft.inflateReset = wc;
|
|
4056
4056
|
Ft.inflateReset2 = bc;
|
|
@@ -4105,7 +4105,7 @@ var Sc = {
|
|
|
4105
4105
|
function Jm() {
|
|
4106
4106
|
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;
|
|
4107
4107
|
}
|
|
4108
|
-
var Qm = Jm, nn = Ft, Cn = ar, Cs = Ur, je = Sc,
|
|
4108
|
+
var Qm = Jm, nn = Ft, Cn = ar, Cs = Ur, je = Sc, ja = po, ey = pc, ty = Qm, kc = Object.prototype.toString;
|
|
4109
4109
|
function Br(e) {
|
|
4110
4110
|
if (!(this instanceof Br)) return new Br(e);
|
|
4111
4111
|
this.options = Cn.assign({
|
|
@@ -4120,9 +4120,9 @@ function Br(e) {
|
|
|
4120
4120
|
t.windowBits
|
|
4121
4121
|
);
|
|
4122
4122
|
if (r !== je.Z_OK)
|
|
4123
|
-
throw new Error(
|
|
4123
|
+
throw new Error(ja[r]);
|
|
4124
4124
|
if (this.header = new ty(), nn.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = Cs.string2buf(t.dictionary) : kc.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (r = nn.inflateSetDictionary(this.strm, t.dictionary), r !== je.Z_OK)))
|
|
4125
|
-
throw new Error(
|
|
4125
|
+
throw new Error(ja[r]);
|
|
4126
4126
|
}
|
|
4127
4127
|
Br.prototype.push = function(e, t) {
|
|
4128
4128
|
var r = this.strm, i = this.options.chunkSize, a = this.options.dictionary, s, n, o, f, p, c = !1;
|
|
@@ -4142,23 +4142,23 @@ Br.prototype.onData = function(e) {
|
|
|
4142
4142
|
Br.prototype.onEnd = function(e) {
|
|
4143
4143
|
e === je.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = Cn.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
4144
4144
|
};
|
|
4145
|
-
function
|
|
4145
|
+
function uo(e, t) {
|
|
4146
4146
|
var r = new Br(t);
|
|
4147
4147
|
if (r.push(e, !0), r.err)
|
|
4148
|
-
throw r.msg ||
|
|
4148
|
+
throw r.msg || ja[r.err];
|
|
4149
4149
|
return r.result;
|
|
4150
4150
|
}
|
|
4151
4151
|
function ry(e, t) {
|
|
4152
|
-
return t = t || {}, t.raw = !0,
|
|
4152
|
+
return t = t || {}, t.raw = !0, uo(e, t);
|
|
4153
4153
|
}
|
|
4154
4154
|
Yn.Inflate = Br;
|
|
4155
|
-
Yn.inflate =
|
|
4155
|
+
Yn.inflate = uo;
|
|
4156
4156
|
Yn.inflateRaw = ry;
|
|
4157
|
-
Yn.ungzip =
|
|
4157
|
+
Yn.ungzip = uo;
|
|
4158
4158
|
var ny = ar.assign, sy = Gn, iy = Yn, ay = Sc, Ec = {};
|
|
4159
4159
|
ny(Ec, sy, iy, ay);
|
|
4160
4160
|
var oy = Ec;
|
|
4161
|
-
const
|
|
4161
|
+
const ho = /* @__PURE__ */ Qa(oy);
|
|
4162
4162
|
async function ly(e, t) {
|
|
4163
4163
|
const r = new $p(e);
|
|
4164
4164
|
let i = await r.read(4);
|
|
@@ -4170,7 +4170,7 @@ async function ly(e, t) {
|
|
|
4170
4170
|
let s = await r.read(4);
|
|
4171
4171
|
if (s = s.readUInt32BE(0), !(s < 1))
|
|
4172
4172
|
for (; !r.eof() && s--; ) {
|
|
4173
|
-
const n = r.tell(), { type: o, length: f, ofs: p, reference: c } = await fy(r), m = new
|
|
4173
|
+
const n = r.tell(), { type: o, length: f, ofs: p, reference: c } = await fy(r), m = new ho.Inflate();
|
|
4174
4174
|
for (; !m.result; ) {
|
|
4175
4175
|
const h = await r.chunk();
|
|
4176
4176
|
if (!h) break;
|
|
@@ -4219,10 +4219,10 @@ async function fy(e) {
|
|
|
4219
4219
|
return r === 7 && (s = await e.read(20)), { type: r, length: i, ofs: a, reference: s };
|
|
4220
4220
|
}
|
|
4221
4221
|
async function py(e) {
|
|
4222
|
-
return
|
|
4222
|
+
return ho.inflate(e);
|
|
4223
4223
|
}
|
|
4224
|
-
var
|
|
4225
|
-
typeof Object.create == "function" ?
|
|
4224
|
+
var Na = { exports: {} };
|
|
4225
|
+
typeof Object.create == "function" ? Na.exports = function(t, r) {
|
|
4226
4226
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
|
|
4227
4227
|
constructor: {
|
|
4228
4228
|
value: t,
|
|
@@ -4231,7 +4231,7 @@ typeof Object.create == "function" ? ja.exports = function(t, r) {
|
|
|
4231
4231
|
configurable: !0
|
|
4232
4232
|
}
|
|
4233
4233
|
}));
|
|
4234
|
-
} :
|
|
4234
|
+
} : Na.exports = function(t, r) {
|
|
4235
4235
|
if (r) {
|
|
4236
4236
|
t.super_ = r;
|
|
4237
4237
|
var i = function() {
|
|
@@ -4239,13 +4239,13 @@ typeof Object.create == "function" ? ja.exports = function(t, r) {
|
|
|
4239
4239
|
i.prototype = r.prototype, t.prototype = new i(), t.prototype.constructor = t;
|
|
4240
4240
|
}
|
|
4241
4241
|
};
|
|
4242
|
-
var cy =
|
|
4242
|
+
var cy = Na.exports, Ua = { exports: {} }, mo = {}, li = {};
|
|
4243
4243
|
li.byteLength = hy;
|
|
4244
4244
|
li.toByteArray = yy;
|
|
4245
4245
|
li.fromByteArray = wy;
|
|
4246
|
-
var Vt = [], Et = [], uy = typeof Uint8Array < "u" ? Uint8Array : Array,
|
|
4247
|
-
for (var Kr = 0, dy =
|
|
4248
|
-
Vt[Kr] =
|
|
4246
|
+
var Vt = [], Et = [], uy = typeof Uint8Array < "u" ? Uint8Array : Array, Bi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4247
|
+
for (var Kr = 0, dy = Bi.length; Kr < dy; ++Kr)
|
|
4248
|
+
Vt[Kr] = Bi[Kr], Et[Bi.charCodeAt(Kr)] = Kr;
|
|
4249
4249
|
Et[45] = 62;
|
|
4250
4250
|
Et[95] = 63;
|
|
4251
4251
|
function Pc(e) {
|
|
@@ -4287,9 +4287,9 @@ function wy(e) {
|
|
|
4287
4287
|
Vt[t >> 10] + Vt[t >> 4 & 63] + Vt[t << 2 & 63] + "="
|
|
4288
4288
|
)), a.join("");
|
|
4289
4289
|
}
|
|
4290
|
-
var
|
|
4290
|
+
var yo = {};
|
|
4291
4291
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4292
|
-
|
|
4292
|
+
yo.read = function(e, t, r, i, a) {
|
|
4293
4293
|
var s, n, o = a * 8 - i - 1, f = (1 << o) - 1, p = f >> 1, c = -7, m = r ? a - 1 : 0, h = r ? -1 : 1, g = e[t + m];
|
|
4294
4294
|
for (m += h, s = g & (1 << -c) - 1, g >>= -c, c += o; c > 0; s = s * 256 + e[t + m], m += h, c -= 8)
|
|
4295
4295
|
;
|
|
@@ -4304,7 +4304,7 @@ mo.read = function(e, t, r, i, a) {
|
|
|
4304
4304
|
}
|
|
4305
4305
|
return (g ? -1 : 1) * n * Math.pow(2, s - i);
|
|
4306
4306
|
};
|
|
4307
|
-
|
|
4307
|
+
yo.write = function(e, t, r, i, a, s) {
|
|
4308
4308
|
var n, o, f, p = s * 8 - a - 1, c = (1 << p) - 1, m = c >> 1, h = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = i ? 0 : s - 1, R = i ? 1 : -1, y = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
4309
4309
|
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (o = isNaN(t) ? 1 : 0, n = c) : (n = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -n)) < 1 && (n--, f *= 2), n + m >= 1 ? t += h / f : t += h * Math.pow(2, 1 - m), t * f >= 2 && (n++, f /= 2), n + m >= c ? (o = 0, n = c) : n + m >= 1 ? (o = (t * f - 1) * Math.pow(2, a), n = n + m) : (o = t * Math.pow(2, m - 1) * Math.pow(2, a), n = 0)); a >= 8; e[r + g] = o & 255, g += R, o /= 256, a -= 8)
|
|
4310
4310
|
;
|
|
@@ -4319,7 +4319,7 @@ mo.write = function(e, t, r, i, a, s) {
|
|
|
4319
4319
|
* @license MIT
|
|
4320
4320
|
*/
|
|
4321
4321
|
(function(e) {
|
|
4322
|
-
var t = li, r =
|
|
4322
|
+
var t = li, r = yo, i = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
4323
4323
|
e.Buffer = o, e.SlowBuffer = C, e.INSPECT_MAX_BYTES = 50;
|
|
4324
4324
|
var a = 2147483647;
|
|
4325
4325
|
e.kMaxLength = a, o.TYPED_ARRAY_SUPPORT = s(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -5096,10 +5096,10 @@ mo.write = function(e, t, r, i, a, s) {
|
|
|
5096
5096
|
u[O + B] = v[d] + v[B];
|
|
5097
5097
|
return u;
|
|
5098
5098
|
}();
|
|
5099
|
-
})(
|
|
5099
|
+
})(mo);
|
|
5100
5100
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
5101
5101
|
(function(e, t) {
|
|
5102
|
-
var r =
|
|
5102
|
+
var r = mo, i = r.Buffer;
|
|
5103
5103
|
function a(n, o) {
|
|
5104
5104
|
for (var f in n)
|
|
5105
5105
|
o[f] = n[f];
|
|
@@ -5126,8 +5126,8 @@ mo.write = function(e, t, r, i, a, s) {
|
|
|
5126
5126
|
throw new TypeError("Argument must be a number");
|
|
5127
5127
|
return r.SlowBuffer(n);
|
|
5128
5128
|
};
|
|
5129
|
-
})(
|
|
5130
|
-
var
|
|
5129
|
+
})(Ua, Ua.exports);
|
|
5130
|
+
var go = Ua.exports, by = {}.toString, vy = Array.isArray || function(e) {
|
|
5131
5131
|
return by.call(e) == "[object Array]";
|
|
5132
5132
|
}, Xn = TypeError, Ac = Object, xy = Error, Sy = EvalError, ky = RangeError, Ey = ReferenceError, Tc = SyntaxError, Py = URIError, Ay = Math.abs, Ty = Math.floor, Oy = Math.max, Cy = Math.min, Ly = Math.pow, Ry = Math.round, Iy = Number.isNaN || function(t) {
|
|
5133
5133
|
return t !== t;
|
|
@@ -5147,9 +5147,9 @@ if (Rs)
|
|
|
5147
5147
|
} catch {
|
|
5148
5148
|
Rs = !1;
|
|
5149
5149
|
}
|
|
5150
|
-
var fi = Rs,
|
|
5150
|
+
var fi = Rs, ji, $l;
|
|
5151
5151
|
function Oc() {
|
|
5152
|
-
return $l || ($l = 1,
|
|
5152
|
+
return $l || ($l = 1, ji = function() {
|
|
5153
5153
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
5154
5154
|
return !1;
|
|
5155
5155
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -5175,27 +5175,27 @@ function Oc() {
|
|
|
5175
5175
|
return !1;
|
|
5176
5176
|
}
|
|
5177
5177
|
return !0;
|
|
5178
|
-
}),
|
|
5178
|
+
}), ji;
|
|
5179
5179
|
}
|
|
5180
|
-
var
|
|
5180
|
+
var Ni, Dl;
|
|
5181
5181
|
function Fy() {
|
|
5182
|
-
if (Dl) return
|
|
5182
|
+
if (Dl) return Ni;
|
|
5183
5183
|
Dl = 1;
|
|
5184
5184
|
var e = typeof Symbol < "u" && Symbol, t = Oc();
|
|
5185
|
-
return
|
|
5185
|
+
return Ni = function() {
|
|
5186
5186
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
5187
|
-
},
|
|
5187
|
+
}, Ni;
|
|
5188
5188
|
}
|
|
5189
|
-
var
|
|
5189
|
+
var Ui, Hl;
|
|
5190
5190
|
function Cc() {
|
|
5191
|
-
return Hl || (Hl = 1,
|
|
5191
|
+
return Hl || (Hl = 1, Ui = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ui;
|
|
5192
5192
|
}
|
|
5193
|
-
var
|
|
5193
|
+
var Wi, Fl;
|
|
5194
5194
|
function Lc() {
|
|
5195
|
-
if (Fl) return
|
|
5195
|
+
if (Fl) return Wi;
|
|
5196
5196
|
Fl = 1;
|
|
5197
5197
|
var e = Ac;
|
|
5198
|
-
return
|
|
5198
|
+
return Wi = e.getPrototypeOf || null, Wi;
|
|
5199
5199
|
}
|
|
5200
5200
|
var By = "Function.prototype.bind called on incompatible ", jy = Object.prototype.toString, Ny = Math.max, Uy = "[object Function]", Bl = function(t, r) {
|
|
5201
5201
|
for (var i = [], a = 0; a < t.length; a += 1)
|
|
@@ -5235,19 +5235,19 @@ var By = "Function.prototype.bind called on incompatible ", jy = Object.prototyp
|
|
|
5235
5235
|
p.prototype = r.prototype, a.prototype = new p(), p.prototype = null;
|
|
5236
5236
|
}
|
|
5237
5237
|
return a;
|
|
5238
|
-
}, Ky = qy, Qn = Function.prototype.bind || Ky,
|
|
5239
|
-
function
|
|
5240
|
-
return jl || (jl = 1,
|
|
5238
|
+
}, Ky = qy, Qn = Function.prototype.bind || Ky, _o = Function.prototype.call, Mi, jl;
|
|
5239
|
+
function wo() {
|
|
5240
|
+
return jl || (jl = 1, Mi = Function.prototype.apply), Mi;
|
|
5241
5241
|
}
|
|
5242
|
-
var zy = typeof Reflect < "u" && Reflect && Reflect.apply, Gy = Qn, Vy =
|
|
5242
|
+
var zy = typeof Reflect < "u" && Reflect && Reflect.apply, Gy = Qn, Vy = wo(), Zy = _o, Yy = zy, Rc = Yy || Gy.call(Zy, Vy), Xy = Qn, Jy = Xn, Qy = _o, e0 = Rc, bo = function(t) {
|
|
5243
5243
|
if (t.length < 1 || typeof t[0] != "function")
|
|
5244
5244
|
throw new Jy("a function is required");
|
|
5245
5245
|
return e0(Xy, Qy, t);
|
|
5246
|
-
},
|
|
5246
|
+
}, qi, Nl;
|
|
5247
5247
|
function t0() {
|
|
5248
|
-
if (Nl) return
|
|
5248
|
+
if (Nl) return qi;
|
|
5249
5249
|
Nl = 1;
|
|
5250
|
-
var e =
|
|
5250
|
+
var e = bo, t = Jn, r;
|
|
5251
5251
|
try {
|
|
5252
5252
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
5253
5253
|
[].__proto__ === Array.prototype;
|
|
@@ -5260,19 +5260,19 @@ function t0() {
|
|
|
5260
5260
|
/** @type {keyof typeof Object.prototype} */
|
|
5261
5261
|
"__proto__"
|
|
5262
5262
|
), a = Object, s = a.getPrototypeOf;
|
|
5263
|
-
return
|
|
5263
|
+
return qi = i && typeof i.get == "function" ? e([i.get]) : typeof s == "function" ? (
|
|
5264
5264
|
/** @type {import('./get')} */
|
|
5265
5265
|
function(o) {
|
|
5266
5266
|
return s(o == null ? o : a(o));
|
|
5267
5267
|
}
|
|
5268
|
-
) : !1,
|
|
5268
|
+
) : !1, qi;
|
|
5269
5269
|
}
|
|
5270
|
-
var
|
|
5270
|
+
var Ki, Ul;
|
|
5271
5271
|
function Ic() {
|
|
5272
|
-
if (Ul) return
|
|
5272
|
+
if (Ul) return Ki;
|
|
5273
5273
|
Ul = 1;
|
|
5274
5274
|
var e = Cc(), t = Lc(), r = t0();
|
|
5275
|
-
return
|
|
5275
|
+
return Ki = e ? function(a) {
|
|
5276
5276
|
return e(a);
|
|
5277
5277
|
} : t ? function(a) {
|
|
5278
5278
|
if (!a || typeof a != "object" && typeof a != "function")
|
|
@@ -5280,33 +5280,33 @@ function Ic() {
|
|
|
5280
5280
|
return t(a);
|
|
5281
5281
|
} : r ? function(a) {
|
|
5282
5282
|
return r(a);
|
|
5283
|
-
} : null,
|
|
5283
|
+
} : null, Ki;
|
|
5284
5284
|
}
|
|
5285
|
-
var
|
|
5285
|
+
var zi, Wl;
|
|
5286
5286
|
function r0() {
|
|
5287
|
-
if (Wl) return
|
|
5287
|
+
if (Wl) return zi;
|
|
5288
5288
|
Wl = 1;
|
|
5289
5289
|
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = Qn;
|
|
5290
|
-
return
|
|
5290
|
+
return zi = r.call(e, t), zi;
|
|
5291
5291
|
}
|
|
5292
|
-
var ye, n0 = Ac, s0 = xy, i0 = Sy, a0 = ky, o0 = Ey, ln = Tc, sn = Xn, l0 = Py, f0 = Ay, p0 = Ty, c0 = Oy, u0 = Cy, d0 = Ly, h0 = Ry, m0 = Dy, $c = Function,
|
|
5292
|
+
var ye, n0 = Ac, s0 = xy, i0 = Sy, a0 = ky, o0 = Ey, ln = Tc, sn = Xn, l0 = Py, f0 = Ay, p0 = Ty, c0 = Oy, u0 = Cy, d0 = Ly, h0 = Ry, m0 = Dy, $c = Function, Gi = function(e) {
|
|
5293
5293
|
try {
|
|
5294
5294
|
return $c('"use strict"; return (' + e + ").constructor;")();
|
|
5295
5295
|
} catch {
|
|
5296
5296
|
}
|
|
5297
|
-
}, Bn = Jn, y0 = fi,
|
|
5297
|
+
}, Bn = Jn, y0 = fi, Vi = function() {
|
|
5298
5298
|
throw new sn();
|
|
5299
5299
|
}, g0 = Bn ? function() {
|
|
5300
5300
|
try {
|
|
5301
|
-
return arguments.callee,
|
|
5301
|
+
return arguments.callee, Vi;
|
|
5302
5302
|
} catch {
|
|
5303
5303
|
try {
|
|
5304
5304
|
return Bn(arguments, "callee").get;
|
|
5305
5305
|
} catch {
|
|
5306
|
-
return
|
|
5306
|
+
return Vi;
|
|
5307
5307
|
}
|
|
5308
5308
|
}
|
|
5309
|
-
}() :
|
|
5309
|
+
}() : Vi, zr = Fy()(), Ge = Ic(), _0 = Lc(), w0 = Cc(), Dc = wo(), es = _o, Xr = {}, b0 = typeof Uint8Array > "u" || !Ge ? ye : Ge(Uint8Array), Cr = {
|
|
5310
5310
|
__proto__: null,
|
|
5311
5311
|
"%AggregateError%": typeof AggregateError > "u" ? ye : AggregateError,
|
|
5312
5312
|
"%Array%": Array,
|
|
@@ -5400,11 +5400,11 @@ if (Ge)
|
|
|
5400
5400
|
var x0 = function e(t) {
|
|
5401
5401
|
var r;
|
|
5402
5402
|
if (t === "%AsyncFunction%")
|
|
5403
|
-
r =
|
|
5403
|
+
r = Gi("async function () {}");
|
|
5404
5404
|
else if (t === "%GeneratorFunction%")
|
|
5405
|
-
r =
|
|
5405
|
+
r = Gi("function* () {}");
|
|
5406
5406
|
else if (t === "%AsyncGeneratorFunction%")
|
|
5407
|
-
r =
|
|
5407
|
+
r = Gi("async function* () {}");
|
|
5408
5408
|
else if (t === "%AsyncGenerator%") {
|
|
5409
5409
|
var i = e("%AsyncGeneratorFunction%");
|
|
5410
5410
|
i && (r = i.prototype);
|
|
@@ -5519,7 +5519,7 @@ var x0 = function e(t) {
|
|
|
5519
5519
|
}
|
|
5520
5520
|
}
|
|
5521
5521
|
return o;
|
|
5522
|
-
}, Fc = Hc, Bc =
|
|
5522
|
+
}, Fc = Hc, Bc = bo, C0 = Bc([Fc("%String.prototype.indexOf%")]), jc = function(t, r) {
|
|
5523
5523
|
var i = (
|
|
5524
5524
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
5525
5525
|
Fc(t, !!r)
|
|
@@ -5528,9 +5528,9 @@ var x0 = function e(t) {
|
|
|
5528
5528
|
/** @type {const} */
|
|
5529
5529
|
[i]
|
|
5530
5530
|
) : i;
|
|
5531
|
-
},
|
|
5531
|
+
}, Zi, Kl;
|
|
5532
5532
|
function L0() {
|
|
5533
|
-
if (Kl) return
|
|
5533
|
+
if (Kl) return Zi;
|
|
5534
5534
|
Kl = 1;
|
|
5535
5535
|
var e = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, r, i;
|
|
5536
5536
|
if (typeof t == "function" && typeof Object.defineProperty == "function")
|
|
@@ -5575,7 +5575,7 @@ function L0() {
|
|
|
5575
5575
|
return !1;
|
|
5576
5576
|
});
|
|
5577
5577
|
}
|
|
5578
|
-
return
|
|
5578
|
+
return Zi = t ? function(k) {
|
|
5579
5579
|
if (_(k))
|
|
5580
5580
|
return !0;
|
|
5581
5581
|
if (!k || typeof k != "function" && typeof k != "object")
|
|
@@ -5598,11 +5598,11 @@ function L0() {
|
|
|
5598
5598
|
return !1;
|
|
5599
5599
|
var D = o.call(k);
|
|
5600
5600
|
return D !== p && D !== c && !/^\[object HTML/.test(D) ? !1 : n(k);
|
|
5601
|
-
},
|
|
5601
|
+
}, Zi;
|
|
5602
5602
|
}
|
|
5603
|
-
var
|
|
5603
|
+
var Yi, zl;
|
|
5604
5604
|
function R0() {
|
|
5605
|
-
if (zl) return
|
|
5605
|
+
if (zl) return Yi;
|
|
5606
5606
|
zl = 1;
|
|
5607
5607
|
var e = L0(), t = Object.prototype.toString, r = Object.prototype.hasOwnProperty, i = function(f, p, c) {
|
|
5608
5608
|
for (var m = 0, h = f.length; m < h; m++)
|
|
@@ -5617,16 +5617,16 @@ function R0() {
|
|
|
5617
5617
|
function n(o) {
|
|
5618
5618
|
return t.call(o) === "[object Array]";
|
|
5619
5619
|
}
|
|
5620
|
-
return
|
|
5620
|
+
return Yi = function(f, p, c) {
|
|
5621
5621
|
if (!e(p))
|
|
5622
5622
|
throw new TypeError("iterator must be a function");
|
|
5623
5623
|
var m;
|
|
5624
5624
|
arguments.length >= 3 && (m = c), n(f) ? i(f, p, m) : typeof f == "string" ? a(f, p, m) : s(f, p, m);
|
|
5625
|
-
},
|
|
5625
|
+
}, Yi;
|
|
5626
5626
|
}
|
|
5627
|
-
var
|
|
5627
|
+
var Xi, Gl;
|
|
5628
5628
|
function I0() {
|
|
5629
|
-
return Gl || (Gl = 1,
|
|
5629
|
+
return Gl || (Gl = 1, Xi = [
|
|
5630
5630
|
"Float16Array",
|
|
5631
5631
|
"Float32Array",
|
|
5632
5632
|
"Float64Array",
|
|
@@ -5639,25 +5639,25 @@ function I0() {
|
|
|
5639
5639
|
"Uint32Array",
|
|
5640
5640
|
"BigInt64Array",
|
|
5641
5641
|
"BigUint64Array"
|
|
5642
|
-
]),
|
|
5642
|
+
]), Xi;
|
|
5643
5643
|
}
|
|
5644
|
-
var
|
|
5644
|
+
var Ji, Vl;
|
|
5645
5645
|
function $0() {
|
|
5646
|
-
if (Vl) return
|
|
5646
|
+
if (Vl) return Ji;
|
|
5647
5647
|
Vl = 1;
|
|
5648
5648
|
var e = I0(), t = typeof globalThis > "u" ? vp : globalThis;
|
|
5649
|
-
return
|
|
5649
|
+
return Ji = function() {
|
|
5650
5650
|
for (var i = [], a = 0; a < e.length; a++)
|
|
5651
5651
|
typeof t[e[a]] == "function" && (i[i.length] = e[a]);
|
|
5652
5652
|
return i;
|
|
5653
|
-
},
|
|
5653
|
+
}, Ji;
|
|
5654
5654
|
}
|
|
5655
|
-
var
|
|
5655
|
+
var Qi = { exports: {} }, ea, Zl;
|
|
5656
5656
|
function D0() {
|
|
5657
|
-
if (Zl) return
|
|
5657
|
+
if (Zl) return ea;
|
|
5658
5658
|
Zl = 1;
|
|
5659
5659
|
var e = fi, t = Tc, r = Xn, i = Jn;
|
|
5660
|
-
return
|
|
5660
|
+
return ea = function(s, n, o) {
|
|
5661
5661
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
5662
5662
|
throw new r("`obj` must be an object or a function`");
|
|
5663
5663
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -5682,11 +5682,11 @@ function D0() {
|
|
|
5682
5682
|
s[n] = o;
|
|
5683
5683
|
else
|
|
5684
5684
|
throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
5685
|
-
},
|
|
5685
|
+
}, ea;
|
|
5686
5686
|
}
|
|
5687
|
-
var
|
|
5687
|
+
var ta, Yl;
|
|
5688
5688
|
function H0() {
|
|
5689
|
-
if (Yl) return
|
|
5689
|
+
if (Yl) return ta;
|
|
5690
5690
|
Yl = 1;
|
|
5691
5691
|
var e = fi, t = function() {
|
|
5692
5692
|
return !!e;
|
|
@@ -5699,14 +5699,14 @@ function H0() {
|
|
|
5699
5699
|
} catch {
|
|
5700
5700
|
return !0;
|
|
5701
5701
|
}
|
|
5702
|
-
},
|
|
5702
|
+
}, ta = t, ta;
|
|
5703
5703
|
}
|
|
5704
|
-
var
|
|
5704
|
+
var ra, Xl;
|
|
5705
5705
|
function F0() {
|
|
5706
|
-
if (Xl) return
|
|
5706
|
+
if (Xl) return ra;
|
|
5707
5707
|
Xl = 1;
|
|
5708
5708
|
var e = Hc, t = D0(), r = H0()(), i = Jn, a = Xn, s = e("%Math.floor%");
|
|
5709
|
-
return
|
|
5709
|
+
return ra = function(o, f) {
|
|
5710
5710
|
if (typeof o != "function")
|
|
5711
5711
|
throw new a("`fn` is not a function");
|
|
5712
5712
|
if (typeof f != "number" || f < 0 || f > 4294967295 || s(f) !== f)
|
|
@@ -5729,21 +5729,21 @@ function F0() {
|
|
|
5729
5729
|
"length",
|
|
5730
5730
|
f
|
|
5731
5731
|
)), o;
|
|
5732
|
-
},
|
|
5732
|
+
}, ra;
|
|
5733
5733
|
}
|
|
5734
|
-
var
|
|
5734
|
+
var na, Jl;
|
|
5735
5735
|
function B0() {
|
|
5736
|
-
if (Jl) return
|
|
5736
|
+
if (Jl) return na;
|
|
5737
5737
|
Jl = 1;
|
|
5738
|
-
var e = Qn, t =
|
|
5739
|
-
return
|
|
5738
|
+
var e = Qn, t = wo(), r = Rc;
|
|
5739
|
+
return na = function() {
|
|
5740
5740
|
return r(e, t, arguments);
|
|
5741
|
-
},
|
|
5741
|
+
}, na;
|
|
5742
5742
|
}
|
|
5743
5743
|
var Ql;
|
|
5744
5744
|
function j0() {
|
|
5745
5745
|
return Ql || (Ql = 1, function(e) {
|
|
5746
|
-
var t = F0(), r = fi, i =
|
|
5746
|
+
var t = F0(), r = fi, i = bo, a = B0();
|
|
5747
5747
|
e.exports = function(n) {
|
|
5748
5748
|
var o = i(arguments), f = n.length - (arguments.length - 1);
|
|
5749
5749
|
return t(
|
|
@@ -5752,20 +5752,20 @@ function j0() {
|
|
|
5752
5752
|
!0
|
|
5753
5753
|
);
|
|
5754
5754
|
}, r ? r(e.exports, "apply", { value: a }) : e.exports.apply = a;
|
|
5755
|
-
}(
|
|
5755
|
+
}(Qi)), Qi.exports;
|
|
5756
5756
|
}
|
|
5757
|
-
var
|
|
5757
|
+
var sa, ef;
|
|
5758
5758
|
function N0() {
|
|
5759
|
-
if (ef) return
|
|
5759
|
+
if (ef) return sa;
|
|
5760
5760
|
ef = 1;
|
|
5761
5761
|
var e = Oc();
|
|
5762
|
-
return
|
|
5762
|
+
return sa = function() {
|
|
5763
5763
|
return e() && !!Symbol.toStringTag;
|
|
5764
|
-
},
|
|
5764
|
+
}, sa;
|
|
5765
5765
|
}
|
|
5766
|
-
var
|
|
5766
|
+
var ia, tf;
|
|
5767
5767
|
function U0() {
|
|
5768
|
-
if (tf) return
|
|
5768
|
+
if (tf) return ia;
|
|
5769
5769
|
tf = 1;
|
|
5770
5770
|
var e = R0(), t = $0(), r = j0(), i = jc, a = Jn, s = Ic(), n = i("Object.prototype.toString"), o = N0()(), f = typeof globalThis > "u" ? vp : globalThis, p = t(), c = i("String.prototype.slice"), m = i("Array.prototype.indexOf", !0) || function(_, b) {
|
|
5771
5771
|
for (var C = 0; C < _.length; C += 1)
|
|
@@ -5823,7 +5823,7 @@ function U0() {
|
|
|
5823
5823
|
}
|
|
5824
5824
|
), b;
|
|
5825
5825
|
};
|
|
5826
|
-
return
|
|
5826
|
+
return ia = function(_) {
|
|
5827
5827
|
if (!_ || typeof _ != "object")
|
|
5828
5828
|
return !1;
|
|
5829
5829
|
if (!o) {
|
|
@@ -5831,22 +5831,22 @@ function U0() {
|
|
|
5831
5831
|
return m(p, b) > -1 ? b : b !== "Object" ? !1 : R(_);
|
|
5832
5832
|
}
|
|
5833
5833
|
return a ? g(_) : null;
|
|
5834
|
-
},
|
|
5834
|
+
}, ia;
|
|
5835
5835
|
}
|
|
5836
|
-
var
|
|
5836
|
+
var aa, rf;
|
|
5837
5837
|
function W0() {
|
|
5838
|
-
if (rf) return
|
|
5838
|
+
if (rf) return aa;
|
|
5839
5839
|
rf = 1;
|
|
5840
5840
|
var e = U0();
|
|
5841
|
-
return
|
|
5841
|
+
return aa = function(r) {
|
|
5842
5842
|
return !!e(r);
|
|
5843
|
-
},
|
|
5843
|
+
}, aa;
|
|
5844
5844
|
}
|
|
5845
5845
|
var M0 = Xn, q0 = jc, K0 = q0("TypedArray.prototype.buffer", !0), z0 = W0(), G0 = K0 || function(t) {
|
|
5846
5846
|
if (!z0(t))
|
|
5847
5847
|
throw new M0("Not a Typed Array");
|
|
5848
5848
|
return t.buffer;
|
|
5849
|
-
}, Rt =
|
|
5849
|
+
}, Rt = go.Buffer, V0 = vy, Z0 = G0, Y0 = ArrayBuffer.isView || function(t) {
|
|
5850
5850
|
try {
|
|
5851
5851
|
return Z0(t), !0;
|
|
5852
5852
|
} catch {
|
|
@@ -5881,7 +5881,7 @@ var M0 = Xn, q0 = jc, K0 = q0("TypedArray.prototype.buffer", !0), z0 = W0(), G0
|
|
|
5881
5881
|
if (n || Rt.isBuffer(t) && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t))
|
|
5882
5882
|
return Rt.from(t);
|
|
5883
5883
|
throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
|
|
5884
|
-
}, eg =
|
|
5884
|
+
}, eg = go.Buffer, tg = Q0;
|
|
5885
5885
|
function pi(e, t) {
|
|
5886
5886
|
this._block = eg.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
|
|
5887
5887
|
}
|
|
@@ -5911,7 +5911,7 @@ pi.prototype.digest = function(e) {
|
|
|
5911
5911
|
pi.prototype._update = function() {
|
|
5912
5912
|
throw new Error("_update must be implemented by subclass");
|
|
5913
5913
|
};
|
|
5914
|
-
var rg = pi, ng = cy, Uc = rg, sg =
|
|
5914
|
+
var rg = pi, ng = cy, Uc = rg, sg = go.Buffer, ig = [
|
|
5915
5915
|
1518500249,
|
|
5916
5916
|
1859775393,
|
|
5917
5917
|
-1894007588,
|
|
@@ -5952,16 +5952,16 @@ rs.prototype._hash = function() {
|
|
|
5952
5952
|
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;
|
|
5953
5953
|
};
|
|
5954
5954
|
var cg = rs;
|
|
5955
|
-
const ug = /* @__PURE__ */
|
|
5955
|
+
const ug = /* @__PURE__ */ Qa(cg);
|
|
5956
5956
|
function dg(e) {
|
|
5957
5957
|
let t = "";
|
|
5958
5958
|
for (const r of new Uint8Array(e))
|
|
5959
5959
|
r < 16 && (t += "0"), t += r.toString(16);
|
|
5960
5960
|
return t;
|
|
5961
5961
|
}
|
|
5962
|
-
let
|
|
5962
|
+
let oa = null;
|
|
5963
5963
|
async function Vs(e) {
|
|
5964
|
-
return
|
|
5964
|
+
return oa === null && (oa = await mg()), oa ? Wc(e) : hg(e);
|
|
5965
5965
|
}
|
|
5966
5966
|
function hg(e) {
|
|
5967
5967
|
return new ug().update(e).digest("hex");
|
|
@@ -6428,7 +6428,7 @@ async function Nn(e) {
|
|
|
6428
6428
|
i.set(s, a), a += s.byteLength;
|
|
6429
6429
|
return i;
|
|
6430
6430
|
}
|
|
6431
|
-
class
|
|
6431
|
+
class la {
|
|
6432
6432
|
constructor() {
|
|
6433
6433
|
this._queue = [];
|
|
6434
6434
|
}
|
|
@@ -6466,7 +6466,7 @@ class oa {
|
|
|
6466
6466
|
}
|
|
6467
6467
|
class vg {
|
|
6468
6468
|
static demux(t) {
|
|
6469
|
-
const r = Ye.streamReader(t), i = new
|
|
6469
|
+
const r = Ye.streamReader(t), i = new la(), a = new la(), s = new la(), n = async function() {
|
|
6470
6470
|
const o = await r();
|
|
6471
6471
|
if (o === null) return n();
|
|
6472
6472
|
if (o === !0) {
|
|
@@ -6588,7 +6588,7 @@ async function qc(e) {
|
|
|
6588
6588
|
});
|
|
6589
6589
|
});
|
|
6590
6590
|
}
|
|
6591
|
-
typeof globalThis.Buffer > "u" && (globalThis.Buffer =
|
|
6591
|
+
typeof globalThis.Buffer > "u" && (globalThis.Buffer = mo.Buffer);
|
|
6592
6592
|
async function xg(e, t, r, i) {
|
|
6593
6593
|
const a = await zc(e, t), s = await Og(a.idx, t, r), n = r.map((h) => s[h].oid), o = n.length > 0 ? await Cg(e, n) : null, f = {};
|
|
6594
6594
|
if (await Promise.all(
|
|
@@ -6637,7 +6637,7 @@ async function Eg(e, t) {
|
|
|
6637
6637
|
const r = await Ag(e, t);
|
|
6638
6638
|
if (r.resolvedOid)
|
|
6639
6639
|
return r.resolvedOid;
|
|
6640
|
-
const i = await
|
|
6640
|
+
const i = await Wa(e, r.refname);
|
|
6641
6641
|
if (!i)
|
|
6642
6642
|
throw new Error(`Git ref "${r.refname}" not found at ${e}`);
|
|
6643
6643
|
return i;
|
|
@@ -6730,14 +6730,14 @@ async function Ag(e, t) {
|
|
|
6730
6730
|
refname: i,
|
|
6731
6731
|
resolvedOid: i
|
|
6732
6732
|
};
|
|
6733
|
-
const a = `refs/heads/${i}`, s = await
|
|
6733
|
+
const a = `refs/heads/${i}`, s = await Wa(e, a);
|
|
6734
6734
|
if (s)
|
|
6735
6735
|
return {
|
|
6736
6736
|
kind: "refname",
|
|
6737
6737
|
refname: a,
|
|
6738
6738
|
resolvedOid: s
|
|
6739
6739
|
};
|
|
6740
|
-
const n = `refs/tags/${i}`, o = await
|
|
6740
|
+
const n = `refs/tags/${i}`, o = await Wa(e, n);
|
|
6741
6741
|
if (o)
|
|
6742
6742
|
return {
|
|
6743
6743
|
kind: "refname",
|
|
@@ -6750,7 +6750,7 @@ async function Ag(e, t) {
|
|
|
6750
6750
|
throw new Error(`Invalid ref type: ${t.type}`);
|
|
6751
6751
|
}
|
|
6752
6752
|
}
|
|
6753
|
-
async function
|
|
6753
|
+
async function Wa(e, t) {
|
|
6754
6754
|
const r = await Pg(e, t), i = [t, `${t}^{}`];
|
|
6755
6755
|
for (const a of i) {
|
|
6756
6756
|
const s = a.trim();
|
|
@@ -6918,7 +6918,7 @@ function Lr(e) {
|
|
|
6918
6918
|
e.object = gt.from(e.object).parse();
|
|
6919
6919
|
break;
|
|
6920
6920
|
case "tree":
|
|
6921
|
-
e.object =
|
|
6921
|
+
e.object = io.from(e.object).entries();
|
|
6922
6922
|
break;
|
|
6923
6923
|
case "blob":
|
|
6924
6924
|
e.object = new Uint8Array(e.object), e.format = "content";
|
|
@@ -6963,7 +6963,7 @@ function Vc(e) {
|
|
|
6963
6963
|
function Un(e) {
|
|
6964
6964
|
return e instanceof Uint8Array, Uint8Array.from(e);
|
|
6965
6965
|
}
|
|
6966
|
-
const Rg =
|
|
6966
|
+
const Rg = ho.deflate, Ig = /^[0-9a-f]{40}$/i;
|
|
6967
6967
|
async function $g(e) {
|
|
6968
6968
|
const t = {}, r = new TextEncoder();
|
|
6969
6969
|
return await Promise.all(
|
|
@@ -7106,7 +7106,7 @@ function Bg(e, t) {
|
|
|
7106
7106
|
}
|
|
7107
7107
|
return a;
|
|
7108
7108
|
}
|
|
7109
|
-
const Wn = 15,
|
|
7109
|
+
const Wn = 15, Ma = 30, qa = 19, jg = 29, Zs = 256, vo = Zs + 1 + jg, of = 2 * vo + 1, _n = 256, Ng = 7, lf = 16, ff = 17, pf = 18, fa = 8 * 2, Ys = -1, Ug = 1, ds = 2, Wg = 0, Jr = 0, cf = 1, Mg = 3, pt = 4, It = 0, Zc = 1, hs = 2, Dt = -2, qg = -3, Gr = -5;
|
|
7110
7110
|
function ui(e) {
|
|
7111
7111
|
return di(e.map(([t, r]) => new Array(t).fill(r, 0, t)));
|
|
7112
7112
|
}
|
|
@@ -7553,9 +7553,9 @@ const Kg = [
|
|
|
7553
7553
|
Je.static_ltree = di(Kg.map((e, t) => [e, zg[t]]));
|
|
7554
7554
|
const Gg = [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], Vg = ui([[30, 5]]);
|
|
7555
7555
|
Je.static_dtree = di(Gg.map((e, t) => [e, Vg[t]]));
|
|
7556
|
-
Je.static_l_desc = new Je(Je.static_ltree, Re.extra_lbits, Zs + 1,
|
|
7557
|
-
Je.static_d_desc = new Je(Je.static_dtree, Re.extra_dbits, 0,
|
|
7558
|
-
Je.static_bl_desc = new Je(null, Re.extra_blbits, 0,
|
|
7556
|
+
Je.static_l_desc = new Je(Je.static_ltree, Re.extra_lbits, Zs + 1, vo, Wn);
|
|
7557
|
+
Je.static_d_desc = new Je(Je.static_dtree, Re.extra_dbits, 0, Ma, Wn);
|
|
7558
|
+
Je.static_bl_desc = new Je(null, Re.extra_blbits, 0, qa, Ng);
|
|
7559
7559
|
const Zg = 9, Yg = 8;
|
|
7560
7560
|
function Wt(e, t, r, i, a) {
|
|
7561
7561
|
const s = this;
|
|
@@ -7593,7 +7593,7 @@ const Yc = 0, Is = 1, kr = 2, Lt = [
|
|
|
7593
7593
|
"",
|
|
7594
7594
|
// Z_VERSION_ERROR (-6)
|
|
7595
7595
|
""
|
|
7596
|
-
], kt = 0, ys = 1, wn = 2, gs = 3, Xg = 32,
|
|
7596
|
+
], kt = 0, ys = 1, wn = 2, gs = 3, Xg = 32, pa = 42, _s = 113, bn = 666, ca = 8, Jg = 0, ua = 1, Qg = 2, Fe = 3, $s = 258, yt = $s + Fe + 1;
|
|
7597
7597
|
function df(e, t, r, i) {
|
|
7598
7598
|
const a = e[t * 2], s = e[r * 2];
|
|
7599
7599
|
return a < s || a == s && i[t] <= i[r];
|
|
@@ -7613,11 +7613,11 @@ function e_() {
|
|
|
7613
7613
|
}
|
|
7614
7614
|
function Oe() {
|
|
7615
7615
|
let W;
|
|
7616
|
-
for (W = 0; W <
|
|
7616
|
+
for (W = 0; W < vo; W++)
|
|
7617
7617
|
U[W * 2] = 0;
|
|
7618
|
-
for (W = 0; W < Wa; W++)
|
|
7619
|
-
M[W * 2] = 0;
|
|
7620
7618
|
for (W = 0; W < Ma; W++)
|
|
7619
|
+
M[W * 2] = 0;
|
|
7620
|
+
for (W = 0; W < qa; W++)
|
|
7621
7621
|
Z[W * 2] = 0;
|
|
7622
7622
|
U[_n * 2] = 1, e.opt_len = e.static_len = 0, ee = V = 0;
|
|
7623
7623
|
}
|
|
@@ -7639,7 +7639,7 @@ function e_() {
|
|
|
7639
7639
|
}
|
|
7640
7640
|
function St() {
|
|
7641
7641
|
let W;
|
|
7642
|
-
for (tt(U, z.max_code), tt(M, se.max_code), G.build_tree(e), W =
|
|
7642
|
+
for (tt(U, z.max_code), tt(M, se.max_code), G.build_tree(e), W = qa - 1; W >= 3 && Z[Re.bl_order[W] * 2 + 1] === 0; W--)
|
|
7643
7643
|
;
|
|
7644
7644
|
return e.opt_len += 3 * (W + 1) + 5 + 5 + 4, W;
|
|
7645
7645
|
}
|
|
@@ -7655,7 +7655,7 @@ function e_() {
|
|
|
7655
7655
|
function Le(W, Y) {
|
|
7656
7656
|
let q;
|
|
7657
7657
|
const J = Y;
|
|
7658
|
-
ae >
|
|
7658
|
+
ae > fa - J ? (q = W, ie |= q << ae & 65535, De(ie), ie = q >>> fa - ae, ae += J - fa) : (ie |= W << ae & 65535, ae += J);
|
|
7659
7659
|
}
|
|
7660
7660
|
function v(W, Y) {
|
|
7661
7661
|
const q = W * 2;
|
|
@@ -7683,12 +7683,12 @@ function e_() {
|
|
|
7683
7683
|
ae == 16 ? (De(ie), ie = 0, ae = 0) : ae >= 8 && ($e(ie & 255), ie >>>= 8, ae -= 8);
|
|
7684
7684
|
}
|
|
7685
7685
|
function B() {
|
|
7686
|
-
Le(
|
|
7686
|
+
Le(ua << 1, 3), v(_n, Je.static_ltree), O(), 1 + fe + 10 - ae < 9 && (Le(ua << 1, 3), v(_n, Je.static_ltree), O()), fe = 7;
|
|
7687
7687
|
}
|
|
7688
7688
|
function K(W, Y) {
|
|
7689
7689
|
let q, J, ne;
|
|
7690
7690
|
if (e.dist_buf[ee] = W, e.lc_buf[ee] = Y & 255, ee++, W === 0 ? U[Y * 2]++ : (V++, W--, U[(Re._length_code[Y] + Zs + 1) * 2]++, M[Re.d_code(W) * 2]++), !(ee & 8191) && P > 2) {
|
|
7691
|
-
for (q = ee * 8, J = T - b, ne = 0; ne <
|
|
7691
|
+
for (q = ee * 8, J = T - b, ne = 0; ne < Ma; ne++)
|
|
7692
7692
|
q += M[ne * 2] * (5 + Re.extra_dbits[ne]);
|
|
7693
7693
|
if (q >>>= 3, V < Math.floor(ee / 2) && q < Math.floor(J / 2))
|
|
7694
7694
|
return !0;
|
|
@@ -7714,7 +7714,7 @@ function e_() {
|
|
|
7714
7714
|
}
|
|
7715
7715
|
function Be(W, Y, q) {
|
|
7716
7716
|
let J, ne, le = 0;
|
|
7717
|
-
P > 0 ? (z.build_tree(e), se.build_tree(e), le = St(), J = e.opt_len + 3 + 7 >>> 3, ne = e.static_len + 3 + 7 >>> 3, ne <= J && (J = ne)) : J = ne = Y + 5, Y + 4 <= J && W != -1 ? he(W, Y, q) : ne == J ? (Le((
|
|
7717
|
+
P > 0 ? (z.build_tree(e), se.build_tree(e), le = St(), J = e.opt_len + 3 + 7 >>> 3, ne = e.static_len + 3 + 7 >>> 3, ne <= J && (J = ne)) : J = ne = Y + 5, Y + 4 <= J && W != -1 ? he(W, Y, q) : ne == J ? (Le((ua << 1) + (q ? 1 : 0), 3), X(Je.static_ltree, Je.static_dtree)) : (Le((Qg << 1) + (q ? 1 : 0), 3), d(z.max_code + 1, se.max_code + 1, le + 1), X(U, M)), Oe(), q && pe();
|
|
7718
7718
|
}
|
|
7719
7719
|
function ue(W) {
|
|
7720
7720
|
Be(b >= 0 ? b : -1, T - b, W), b = T, t.flush_pending();
|
|
@@ -7831,15 +7831,15 @@ function e_() {
|
|
|
7831
7831
|
return W.total_in = W.total_out = 0, W.msg = null, e.pending = 0, e.pending_out = 0, r = _s, a = Jr, Xe(), Pe(), It;
|
|
7832
7832
|
}
|
|
7833
7833
|
e.deflateInit = function(W, Y, q, J, ne, le) {
|
|
7834
|
-
return J || (J =
|
|
7834
|
+
return J || (J = ca), ne || (ne = Yg), le || (le = Wg), W.msg = null, Y == Ys && (Y = 6), ne < 1 || ne > Zg || J != ca || q < 9 || q > 15 || Y < 0 || Y > 9 || le < 0 || le > ds ? Dt : (W.dstate = e, n = q, s = 1 << n, o = s - 1, R = ne + 7, g = 1 << R, y = g - 1, _ = Math.floor((R + Fe - 1) / Fe), f = new Uint8Array(s * 2), c = [], m = [], Q = 1 << ne + 6, e.pending_buf = new Uint8Array(Q * 4), i = Q * 4, e.dist_buf = new Uint16Array(Q), e.lc_buf = new Uint8Array(Q), P = Y, $ = le, Wr(W));
|
|
7835
7835
|
}, e.deflateEnd = function() {
|
|
7836
|
-
return r !=
|
|
7836
|
+
return r != pa && r != _s && r != bn ? Dt : (e.lc_buf = null, e.dist_buf = null, e.pending_buf = null, m = null, c = null, f = null, e.dstate = null, r == _s ? qg : It);
|
|
7837
7837
|
}, e.deflateParams = function(W, Y, q) {
|
|
7838
7838
|
let J = It;
|
|
7839
7839
|
return Y == Ys && (Y = 6), Y < 0 || Y > 9 || q < 0 || q > ds ? Dt : (Lt[P].func != Lt[Y].func && W.total_in !== 0 && (J = W.deflate(cf)), P != Y && (P = Y, S = Lt[P].max_lazy, I = Lt[P].good_length, j = Lt[P].nice_length, L = Lt[P].max_chain), $ = q, J);
|
|
7840
7840
|
}, e.deflateSetDictionary = function(W, Y, q) {
|
|
7841
7841
|
let J = q, ne, le = 0;
|
|
7842
|
-
if (!Y || r !=
|
|
7842
|
+
if (!Y || r != pa)
|
|
7843
7843
|
return Dt;
|
|
7844
7844
|
if (J < Fe)
|
|
7845
7845
|
return It;
|
|
@@ -7854,7 +7854,7 @@ function e_() {
|
|
|
7854
7854
|
return W.msg = ms[hs - Dt], Dt;
|
|
7855
7855
|
if (W.avail_out === 0)
|
|
7856
7856
|
return W.msg = ms[hs - Gr], Gr;
|
|
7857
|
-
if (t = W, le = a, a = Y, r ==
|
|
7857
|
+
if (t = W, le = a, a = Y, r == pa && (J = ca + (n - 8 << 4) << 8, ne = (P - 1 & 255) >> 1, ne > 3 && (ne = 3), J |= ne << 6, T !== 0 && (J |= Xg), J += 31 - J % 31, r = _s, ft(J)), e.pending !== 0) {
|
|
7858
7858
|
if (t.flush_pending(), t.avail_out === 0)
|
|
7859
7859
|
return a = -1, It;
|
|
7860
7860
|
} else if (t.avail_in === 0 && Y <= le && Y != pt)
|
|
@@ -9753,7 +9753,7 @@ const n_ = 15, be = 0, sr = 1, s_ = 2, ct = -2, Ie = -3, hf = -4, ir = -5, _t =
|
|
|
9753
9753
|
13,
|
|
9754
9754
|
13
|
|
9755
9755
|
], fr = 15;
|
|
9756
|
-
function
|
|
9756
|
+
function Ka() {
|
|
9757
9757
|
const e = this;
|
|
9758
9758
|
let t, r, i, a, s, n;
|
|
9759
9759
|
function o(p, c, m, h, g, R, y, _, b, C, k) {
|
|
@@ -9823,10 +9823,10 @@ function qa() {
|
|
|
9823
9823
|
return f(288), t[0] = 0, C = o(m, 0, p, 257, c_, u_, R, h, _, t, r), C != be || h[0] === 0 ? (C == Ie ? b.msg = "oversubscribed literal/length tree" : C != hf && (b.msg = "incomplete literal/length tree", C = Ie), C) : (f(288), C = o(m, p, c, 0, d_, h_, y, g, _, t, r), C != be || g[0] === 0 && p > 257 ? (C == Ie ? b.msg = "oversubscribed distance tree" : C == ir ? (b.msg = "incomplete distance tree", C = Ie) : C != hf && (b.msg = "empty distance tree with lengths", C = Ie), C) : be);
|
|
9824
9824
|
};
|
|
9825
9825
|
}
|
|
9826
|
-
|
|
9826
|
+
Ka.inflate_trees_fixed = function(e, t, r, i) {
|
|
9827
9827
|
return e[0] = o_, t[0] = l_, r[0] = f_, i[0] = p_, be;
|
|
9828
9828
|
};
|
|
9829
|
-
const ws = 0, mf = 1, yf = 2, gf = 3, _f = 4, wf = 5, bf = 6,
|
|
9829
|
+
const ws = 0, mf = 1, yf = 2, gf = 3, _f = 4, wf = 5, bf = 6, da = 7, vf = 8, bs = 9;
|
|
9830
9830
|
function m_() {
|
|
9831
9831
|
const e = this;
|
|
9832
9832
|
let t, r = 0, i, a = 0, s = 0, n = 0, o = 0, f = 0, p = 0, c = 0, m, h = 0, g, R = 0;
|
|
@@ -9903,7 +9903,7 @@ function m_() {
|
|
|
9903
9903
|
switch (t) {
|
|
9904
9904
|
case ws:
|
|
9905
9905
|
if (P >= 258 && L >= 10 && (_.bitb = H, _.bitk = E, b.avail_in = L, b.total_in += A - b.next_in_index, b.next_in_index = A, _.write = S, C = y(p, c, m, h, g, R, _, b), A = b.next_in_index, L = b.avail_in, H = _.bitb, E = _.bitk, S = _.write, P = S < _.read ? _.read - S - 1 : _.end - S, C != be)) {
|
|
9906
|
-
t = C == sr ?
|
|
9906
|
+
t = C == sr ? da : bs;
|
|
9907
9907
|
break;
|
|
9908
9908
|
}
|
|
9909
9909
|
s = p, i = m, a = h, t = mf;
|
|
@@ -9928,7 +9928,7 @@ function m_() {
|
|
|
9928
9928
|
break;
|
|
9929
9929
|
}
|
|
9930
9930
|
if (T & 32) {
|
|
9931
|
-
t =
|
|
9931
|
+
t = da;
|
|
9932
9932
|
break;
|
|
9933
9933
|
}
|
|
9934
9934
|
return t = bs, b.msg = "invalid literal/length code", C = Ie, _.bitb = H, _.bitk = E, b.avail_in = L, b.total_in += A - b.next_in_index, b.next_in_index = A, _.write = S, _.inflate_flush(b, C);
|
|
@@ -9983,7 +9983,7 @@ function m_() {
|
|
|
9983
9983
|
C = be, _.win[S++] = /* (byte) */
|
|
9984
9984
|
n, P--, t = ws;
|
|
9985
9985
|
break;
|
|
9986
|
-
case
|
|
9986
|
+
case da:
|
|
9987
9987
|
if (E > 7 && (E -= 8, L++, A--), _.write = S, C = _.inflate_flush(b, C), S = _.write, P = S < _.read ? _.read - S - 1 : _.end - S, _.read != _.write)
|
|
9988
9988
|
return _.bitb = H, _.bitk = E, b.avail_in = L, b.total_in += A - b.next_in_index, b.next_in_index = A, _.write = S, _.inflate_flush(b, C);
|
|
9989
9989
|
t = vf;
|
|
@@ -10018,13 +10018,13 @@ const xf = [
|
|
|
10018
10018
|
14,
|
|
10019
10019
|
1,
|
|
10020
10020
|
15
|
|
10021
|
-
], Vr = 0,
|
|
10021
|
+
], Vr = 0, ha = 1, Sf = 2, kf = 3, Ef = 4, Pf = 5, vs = 6, xs = 7, Af = 8, Sr = 9;
|
|
10022
10022
|
function y_(e, t) {
|
|
10023
10023
|
const r = this;
|
|
10024
10024
|
let i = Vr, a = 0, s = 0, n = 0, o;
|
|
10025
10025
|
const f = [0], p = [0], c = new m_();
|
|
10026
10026
|
let m = 0, h = new Int32Array(Jc * 3);
|
|
10027
|
-
const g = 0, R = new
|
|
10027
|
+
const g = 0, R = new Ka();
|
|
10028
10028
|
r.bitk = 0, r.bitb = 0, r.win = new Uint8Array(t), r.end = t, r.read = 0, r.write = 0, r.reset = function(y, _) {
|
|
10029
10029
|
_ && (_[0] = g), i == vs && c.free(y), i = Vr, r.bitk = 0, r.bitb = 0, r.read = r.write = 0;
|
|
10030
10030
|
}, r.reset(e, null), r.inflate_flush = function(y, _) {
|
|
@@ -10048,10 +10048,10 @@ function y_(e, t) {
|
|
|
10048
10048
|
switch (b = /* (int) */
|
|
10049
10049
|
C & 7, m = b & 1, b >>> 1) {
|
|
10050
10050
|
case 0:
|
|
10051
|
-
C >>>= 3, k -= 3, b = k & 7, C >>>= b, k -= b, i =
|
|
10051
|
+
C >>>= 3, k -= 3, b = k & 7, C >>>= b, k -= b, i = ha;
|
|
10052
10052
|
break;
|
|
10053
10053
|
case 1:
|
|
10054
|
-
L = [], S = [], P = [[]], $ = [[]],
|
|
10054
|
+
L = [], S = [], P = [[]], $ = [[]], Ka.inflate_trees_fixed(L, S, P, $), c.init(L[0], S[0], P[0], 0, $[0], 0), C >>>= 3, k -= 3, i = vs;
|
|
10055
10055
|
break;
|
|
10056
10056
|
case 2:
|
|
10057
10057
|
C >>>= 3, k -= 3, i = kf;
|
|
@@ -10060,7 +10060,7 @@ function y_(e, t) {
|
|
|
10060
10060
|
return C >>>= 3, k -= 3, i = Sr, y.msg = "invalid block type", _ = Ie, r.bitb = C, r.bitk = k, y.avail_in = T, y.total_in += D - y.next_in_index, y.next_in_index = D, r.write = H, r.inflate_flush(y, _);
|
|
10061
10061
|
}
|
|
10062
10062
|
break;
|
|
10063
|
-
case
|
|
10063
|
+
case ha:
|
|
10064
10064
|
for (; k < 32; ) {
|
|
10065
10065
|
if (T !== 0)
|
|
10066
10066
|
_ = be;
|
|
@@ -10173,10 +10173,10 @@ function y_(e, t) {
|
|
|
10173
10173
|
}, r.set_dictionary = function(y, _, b) {
|
|
10174
10174
|
r.win.set(y.subarray(_, _ + b), 0), r.read = r.write = b;
|
|
10175
10175
|
}, r.sync_point = function() {
|
|
10176
|
-
return i ==
|
|
10176
|
+
return i == ha ? 1 : 0;
|
|
10177
10177
|
};
|
|
10178
10178
|
}
|
|
10179
|
-
const g_ = 32, __ = 8, w_ = 0, Tf = 1, Of = 2, Cf = 3, Lf = 4, Rf = 5,
|
|
10179
|
+
const g_ = 32, __ = 8, w_ = 0, Tf = 1, Of = 2, Cf = 3, Lf = 4, Rf = 5, ma = 6, vn = 7, If = 12, pr = 13, b_ = [0, 0, 255, 255];
|
|
10180
10180
|
function v_() {
|
|
10181
10181
|
const e = this;
|
|
10182
10182
|
e.mode = 0, e.method = 0, e.was = [0], e.need = 0, e.marker = 0, e.wbits = 0;
|
|
@@ -10231,8 +10231,8 @@ function v_() {
|
|
|
10231
10231
|
return a;
|
|
10232
10232
|
a = i, r.avail_in--, r.total_in++, n.need += (r.read_byte(r.next_in_index++) & 255) << 8 & 65280, n.mode = Rf;
|
|
10233
10233
|
case Rf:
|
|
10234
|
-
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 =
|
|
10235
|
-
case
|
|
10234
|
+
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 = ma, s_);
|
|
10235
|
+
case ma:
|
|
10236
10236
|
return n.mode = pr, r.msg = "need dictionary", n.marker = 0, ct;
|
|
10237
10237
|
case vn:
|
|
10238
10238
|
if (a = n.blocks.proc(r, a), a == Ie) {
|
|
@@ -10251,7 +10251,7 @@ function v_() {
|
|
|
10251
10251
|
}
|
|
10252
10252
|
}, e.inflateSetDictionary = function(r, i, a) {
|
|
10253
10253
|
let s = 0, n = a;
|
|
10254
|
-
if (!r || !r.istate || r.istate.mode !=
|
|
10254
|
+
if (!r || !r.istate || r.istate.mode != ma)
|
|
10255
10255
|
return ct;
|
|
10256
10256
|
const o = r.istate;
|
|
10257
10257
|
return n >= 1 << o.wbits && (n = (1 << o.wbits) - 1, s = a - n), o.blocks.set_dictionary(i, s, n), o.mode = vn, be;
|
|
@@ -10328,7 +10328,7 @@ function x_(e) {
|
|
|
10328
10328
|
r.inflateEnd();
|
|
10329
10329
|
};
|
|
10330
10330
|
}
|
|
10331
|
-
const Rr = 4294967295, mr = 65535, S_ = 8, k_ = 0, E_ = 99, P_ = 67324752, A_ = 134695760, $f = 33639248, T_ = 101010256, Df = 101075792, O_ = 117853008, Zr = 22,
|
|
10331
|
+
const Rr = 4294967295, mr = 65535, S_ = 8, k_ = 0, E_ = 99, P_ = 67324752, A_ = 134695760, $f = 33639248, T_ = 101010256, Df = 101075792, O_ = 117853008, Zr = 22, ya = 20, ga = 56, C_ = 1, L_ = 39169, R_ = 10, I_ = 1, $_ = 21589, D_ = 28789, H_ = 25461, F_ = 6534, Hf = 1, B_ = 6, Ff = 8, Bf = 2048, jf = 16, Nf = 16384, Uf = 73, Wf = "/", lt = void 0, xr = "undefined", ns = "function";
|
|
10332
10332
|
class Mf {
|
|
10333
10333
|
constructor(t) {
|
|
10334
10334
|
return class extends TransformStream {
|
|
@@ -10369,7 +10369,7 @@ function U_() {
|
|
|
10369
10369
|
function W_(e) {
|
|
10370
10370
|
return Math.max(e.chunkSize, j_);
|
|
10371
10371
|
}
|
|
10372
|
-
function
|
|
10372
|
+
function xo(e) {
|
|
10373
10373
|
const {
|
|
10374
10374
|
baseURL: t,
|
|
10375
10375
|
chunkSize: r,
|
|
@@ -10400,7 +10400,7 @@ function vo(e) {
|
|
|
10400
10400
|
function cr(e, t) {
|
|
10401
10401
|
t !== lt && (yr[e] = t);
|
|
10402
10402
|
}
|
|
10403
|
-
const
|
|
10403
|
+
const _a = {
|
|
10404
10404
|
application: {
|
|
10405
10405
|
"andrew-inset": "ez",
|
|
10406
10406
|
annodex: "anx",
|
|
@@ -11983,9 +11983,9 @@ const ga = {
|
|
|
11983
11983
|
};
|
|
11984
11984
|
(() => {
|
|
11985
11985
|
const e = {};
|
|
11986
|
-
for (const t of Object.keys(
|
|
11987
|
-
for (const r of Object.keys(
|
|
11988
|
-
const i =
|
|
11986
|
+
for (const t of Object.keys(_a))
|
|
11987
|
+
for (const r of Object.keys(_a[t])) {
|
|
11988
|
+
const i = _a[t][r];
|
|
11989
11989
|
if (typeof i == "string")
|
|
11990
11990
|
e[i] = t + "/" + r;
|
|
11991
11991
|
else
|
|
@@ -12404,11 +12404,11 @@ jr.hmacSha1 = class {
|
|
|
12404
12404
|
return this.update(e), this.digest(e);
|
|
12405
12405
|
}
|
|
12406
12406
|
};
|
|
12407
|
-
const K_ = typeof crypto != xr && typeof crypto.getRandomValues == ns, au = "Invalid password", ou = "Invalid signature",
|
|
12407
|
+
const K_ = typeof crypto != xr && typeof crypto.getRandomValues == ns, au = "Invalid password", ou = "Invalid signature", So = "zipjs-abort-check-password";
|
|
12408
12408
|
function lu(e) {
|
|
12409
12409
|
return K_ ? crypto.getRandomValues(e) : q_.getRandomValues(e);
|
|
12410
12410
|
}
|
|
12411
|
-
const en = 16, z_ = "raw", fu = { name: "PBKDF2" }, G_ = { name: "HMAC" }, V_ = "SHA-1", Z_ = Object.assign({ hash: G_ }, fu),
|
|
12411
|
+
const en = 16, z_ = "raw", fu = { name: "PBKDF2" }, G_ = { name: "HMAC" }, V_ = "SHA-1", Z_ = Object.assign({ hash: G_ }, fu), za = Object.assign({ iterations: 1e3, hash: { name: V_ } }, fu), Y_ = ["deriveBits"], Mn = [8, 12, 16], xn = [16, 24, 32], hr = 10, X_ = [0, 0, 0, 0], hi = typeof crypto != xr, ss = hi && crypto.subtle, pu = hi && typeof ss != xr, Zt = Js.bytes, J_ = su.aes, Q_ = iu.ctrGladman, e1 = jr.hmacSha1;
|
|
12412
12412
|
let qf = hi && pu && typeof ss.importKey == ns, Kf = hi && pu && typeof ss.deriveBits == ns;
|
|
12413
12413
|
class t1 extends TransformStream {
|
|
12414
12414
|
constructor({ password: t, rawPassword: r, signed: i, encryptionStrength: a, checkPasswordOnly: s }) {
|
|
@@ -12429,7 +12429,7 @@ class t1 extends TransformStream {
|
|
|
12429
12429
|
resolveReady: m,
|
|
12430
12430
|
ready: h
|
|
12431
12431
|
} = f;
|
|
12432
|
-
p ? (await n1(f, c, p, Pt(n, 0, Mn[c] + 2)), n = Pt(n, Mn[c] + 2), s ? o.error(new Error(
|
|
12432
|
+
p ? (await n1(f, c, p, Pt(n, 0, Mn[c] + 2)), n = Pt(n, Mn[c] + 2), s ? o.error(new Error(So)) : m()) : await h;
|
|
12433
12433
|
const g = new Uint8Array(n.length - hr - (n.length - hr) % en);
|
|
12434
12434
|
o.enqueue(cu(f, n, g, 0, hr, !0));
|
|
12435
12435
|
},
|
|
@@ -12501,7 +12501,7 @@ class r1 extends TransformStream {
|
|
|
12501
12501
|
const m = n.update(Kn(Zt, f));
|
|
12502
12502
|
o.update(m), c = qn(Zt, m);
|
|
12503
12503
|
}
|
|
12504
|
-
a.signature = qn(Zt, o.digest()).slice(0, hr), s.enqueue(
|
|
12504
|
+
a.signature = qn(Zt, o.digest()).slice(0, hr), s.enqueue(ko(c, a.signature));
|
|
12505
12505
|
}
|
|
12506
12506
|
}
|
|
12507
12507
|
}), a = this;
|
|
@@ -12513,7 +12513,7 @@ function cu(e, t, r, i, a, s) {
|
|
|
12513
12513
|
hmac: o,
|
|
12514
12514
|
pending: f
|
|
12515
12515
|
} = e, p = t.length - a;
|
|
12516
|
-
f.length && (t =
|
|
12516
|
+
f.length && (t = ko(f, t), r = o1(r, p - p % en));
|
|
12517
12517
|
let c;
|
|
12518
12518
|
for (c = 0; c <= p - en; c += en) {
|
|
12519
12519
|
const m = Kn(Zt, Pt(t, c, c + en));
|
|
@@ -12530,11 +12530,11 @@ async function n1(e, t, r, i) {
|
|
|
12530
12530
|
}
|
|
12531
12531
|
async function s1(e, t, r) {
|
|
12532
12532
|
const i = lu(new Uint8Array(Mn[t])), a = await uu(e, t, r, i);
|
|
12533
|
-
return
|
|
12533
|
+
return ko(i, a);
|
|
12534
12534
|
}
|
|
12535
12535
|
async function uu(e, t, r, i) {
|
|
12536
12536
|
e.password = null;
|
|
12537
|
-
const a = await i1(z_, r, Z_, !1, Y_), s = await a1(Object.assign({ salt: i },
|
|
12537
|
+
const a = await i1(z_, r, Z_, !1, Y_), s = await a1(Object.assign({ salt: i }, za), a, 8 * (xn[t] * 2 + 2)), n = new Uint8Array(s), o = Kn(Zt, Pt(n, 0, xn[t])), f = Kn(Zt, Pt(n, xn[t], xn[t] * 2)), p = Pt(n, xn[t] * 2);
|
|
12538
12538
|
return Object.assign(e, {
|
|
12539
12539
|
keys: {
|
|
12540
12540
|
key: o,
|
|
@@ -12560,15 +12560,15 @@ async function a1(e, t, r) {
|
|
|
12560
12560
|
try {
|
|
12561
12561
|
return await ss.deriveBits(e, t, r);
|
|
12562
12562
|
} catch {
|
|
12563
|
-
return Kf = !1, jr.pbkdf2(t, e.salt,
|
|
12563
|
+
return Kf = !1, jr.pbkdf2(t, e.salt, za.iterations, r);
|
|
12564
12564
|
}
|
|
12565
12565
|
else
|
|
12566
|
-
return jr.pbkdf2(t, e.salt,
|
|
12566
|
+
return jr.pbkdf2(t, e.salt, za.iterations, r);
|
|
12567
12567
|
}
|
|
12568
12568
|
function du(e, t) {
|
|
12569
12569
|
return t === lt ? M_(e) : t;
|
|
12570
12570
|
}
|
|
12571
|
-
function
|
|
12571
|
+
function ko(e, t) {
|
|
12572
12572
|
let r = e;
|
|
12573
12573
|
return e.length + t.length && (r = new Uint8Array(e.length + t.length), r.set(e, 0), r.set(t, e.length)), r;
|
|
12574
12574
|
}
|
|
@@ -12606,7 +12606,7 @@ class l1 extends TransformStream {
|
|
|
12606
12606
|
throw new Error(au);
|
|
12607
12607
|
a = a.subarray(an);
|
|
12608
12608
|
}
|
|
12609
|
-
i ? s.error(new Error(
|
|
12609
|
+
i ? s.error(new Error(So)) : s.enqueue(zf(n, a));
|
|
12610
12610
|
}
|
|
12611
12611
|
});
|
|
12612
12612
|
}
|
|
@@ -12637,13 +12637,13 @@ class f1 extends TransformStream {
|
|
|
12637
12637
|
function zf(e, t) {
|
|
12638
12638
|
const r = new Uint8Array(t.length);
|
|
12639
12639
|
for (let i = 0; i < t.length; i++)
|
|
12640
|
-
r[i] = mu(e) ^ t[i],
|
|
12640
|
+
r[i] = mu(e) ^ t[i], Eo(e, r[i]);
|
|
12641
12641
|
return r;
|
|
12642
12642
|
}
|
|
12643
12643
|
function Gf(e, t) {
|
|
12644
12644
|
const r = new Uint8Array(t.length);
|
|
12645
12645
|
for (let i = 0; i < t.length; i++)
|
|
12646
|
-
r[i] = mu(e) ^ t[i],
|
|
12646
|
+
r[i] = mu(e) ^ t[i], Eo(e, t[i]);
|
|
12647
12647
|
return r;
|
|
12648
12648
|
}
|
|
12649
12649
|
function hu(e, t) {
|
|
@@ -12654,9 +12654,9 @@ function hu(e, t) {
|
|
|
12654
12654
|
crcKey2: new Xs(r[2])
|
|
12655
12655
|
});
|
|
12656
12656
|
for (let i = 0; i < t.length; i++)
|
|
12657
|
-
|
|
12657
|
+
Eo(e, t.charCodeAt(i));
|
|
12658
12658
|
}
|
|
12659
|
-
function
|
|
12659
|
+
function Eo(e, t) {
|
|
12660
12660
|
let [r, i, a] = e.keys;
|
|
12661
12661
|
e.crcKey0.append([t]), r = ~e.crcKey0.get(), i = Vf(Math.imul(Vf(i + yu(r)), 134775813) + 1), e.crcKey2.append([i >>> 24]), a = ~e.crcKey2.get(), e.keys = [r, i, a];
|
|
12662
12662
|
}
|
|
@@ -12785,7 +12785,7 @@ class _1 extends TransformStream {
|
|
|
12785
12785
|
}
|
|
12786
12786
|
}
|
|
12787
12787
|
let vu = typeof Worker != xr;
|
|
12788
|
-
class
|
|
12788
|
+
class wa {
|
|
12789
12789
|
constructor(t, { readable: r, writable: i }, { options: a, config: s, streamOptions: n, useWebWorkers: o, transferStreams: f, scripts: p }, c) {
|
|
12790
12790
|
const { signal: m } = n;
|
|
12791
12791
|
return Object.assign(t, {
|
|
@@ -12813,18 +12813,18 @@ class w1 extends TransformStream {
|
|
|
12813
12813
|
let n = 0;
|
|
12814
12814
|
super({
|
|
12815
12815
|
async start() {
|
|
12816
|
-
r && await
|
|
12816
|
+
r && await ba(r, a);
|
|
12817
12817
|
},
|
|
12818
12818
|
async transform(o, f) {
|
|
12819
|
-
n += o.length, i && await
|
|
12819
|
+
n += o.length, i && await ba(i, n, a), f.enqueue(o);
|
|
12820
12820
|
},
|
|
12821
12821
|
async flush() {
|
|
12822
|
-
t.size = n, s && await
|
|
12822
|
+
t.size = n, s && await ba(s, n);
|
|
12823
12823
|
}
|
|
12824
12824
|
});
|
|
12825
12825
|
}
|
|
12826
12826
|
}
|
|
12827
|
-
async function
|
|
12827
|
+
async function ba(e, ...t) {
|
|
12828
12828
|
try {
|
|
12829
12829
|
await e(...t);
|
|
12830
12830
|
} catch {
|
|
@@ -12970,7 +12970,7 @@ async function E1({ data: e }, t) {
|
|
|
12970
12970
|
}
|
|
12971
12971
|
}
|
|
12972
12972
|
let Ar = [];
|
|
12973
|
-
const
|
|
12973
|
+
const va = [];
|
|
12974
12974
|
let ep = 0;
|
|
12975
12975
|
async function P1(e, t) {
|
|
12976
12976
|
const { options: r, config: i } = t, { transferStreams: a, useWebWorkers: s, useCompressionStream: n, codecType: o, compressed: f, signed: p, encrypted: c } = r, { workerScripts: m, maxWorkers: h } = i;
|
|
@@ -12980,17 +12980,17 @@ async function P1(e, t) {
|
|
|
12980
12980
|
async function R() {
|
|
12981
12981
|
const _ = Ar.find((b) => !b.busy);
|
|
12982
12982
|
if (_)
|
|
12983
|
-
return tp(_), new
|
|
12983
|
+
return tp(_), new wa(_, e, t, y);
|
|
12984
12984
|
if (Ar.length < h) {
|
|
12985
12985
|
const b = { indexWorker: ep };
|
|
12986
|
-
return ep++, Ar.push(b), new
|
|
12986
|
+
return ep++, Ar.push(b), new wa(b, e, t, y);
|
|
12987
12987
|
} else
|
|
12988
|
-
return new Promise((b) =>
|
|
12988
|
+
return new Promise((b) => va.push({ resolve: b, stream: e, workerOptions: t }));
|
|
12989
12989
|
}
|
|
12990
12990
|
function y(_) {
|
|
12991
|
-
if (
|
|
12992
|
-
const [{ resolve: b, stream: C, workerOptions: k }] =
|
|
12993
|
-
b(new
|
|
12991
|
+
if (va.length) {
|
|
12992
|
+
const [{ resolve: b, stream: C, workerOptions: k }] = va.splice(0, 1);
|
|
12993
|
+
b(new wa(_, C, k, y));
|
|
12994
12994
|
} else _.worker ? (tp(_), A1(_, t)) : Ar = Ar.filter((b) => b != _);
|
|
12995
12995
|
}
|
|
12996
12996
|
}
|
|
@@ -13014,7 +13014,7 @@ function T1(e, t = {}) {
|
|
|
13014
13014
|
e({ workerScripts: { inflate: [i], deflate: [i] } });
|
|
13015
13015
|
}
|
|
13016
13016
|
const O1 = "Writer iterator completed too soon", C1 = "Content-Type", L1 = 64 * 1024, Su = "writable";
|
|
13017
|
-
class
|
|
13017
|
+
class Po {
|
|
13018
13018
|
constructor() {
|
|
13019
13019
|
this.size = 0;
|
|
13020
13020
|
}
|
|
@@ -13022,7 +13022,7 @@ class Eo {
|
|
|
13022
13022
|
this.initialized = !0;
|
|
13023
13023
|
}
|
|
13024
13024
|
}
|
|
13025
|
-
class ku extends
|
|
13025
|
+
class ku extends Po {
|
|
13026
13026
|
get readable() {
|
|
13027
13027
|
const t = this, { chunkSize: r = L1 } = t, i = new ReadableStream({
|
|
13028
13028
|
start() {
|
|
@@ -13036,7 +13036,7 @@ class ku extends Eo {
|
|
|
13036
13036
|
return i;
|
|
13037
13037
|
}
|
|
13038
13038
|
}
|
|
13039
|
-
class
|
|
13039
|
+
class Ga extends ku {
|
|
13040
13040
|
constructor(t) {
|
|
13041
13041
|
super(), Object.assign(this, {
|
|
13042
13042
|
blob: t,
|
|
@@ -13049,7 +13049,7 @@ class za extends ku {
|
|
|
13049
13049
|
return n.byteLength > r && (n = n.slice(t, a)), new Uint8Array(n);
|
|
13050
13050
|
}
|
|
13051
13051
|
}
|
|
13052
|
-
class R1 extends
|
|
13052
|
+
class R1 extends Po {
|
|
13053
13053
|
constructor(t) {
|
|
13054
13054
|
super();
|
|
13055
13055
|
const r = this, i = new TransformStream(), a = [];
|
|
@@ -13090,7 +13090,7 @@ class I1 extends ku {
|
|
|
13090
13090
|
return a.lastDiskNumber = Math.max(o, a.lastDiskNumber), n;
|
|
13091
13091
|
}
|
|
13092
13092
|
}
|
|
13093
|
-
class rp extends
|
|
13093
|
+
class rp extends Po {
|
|
13094
13094
|
constructor(t, r = 4294967295) {
|
|
13095
13095
|
super();
|
|
13096
13096
|
const i = this;
|
|
@@ -13171,20 +13171,20 @@ function F1(e) {
|
|
|
13171
13171
|
function Hs(e, t) {
|
|
13172
13172
|
return t && t.trim().toLowerCase() == "cp437" ? F1(e) : new TextDecoder(t).decode(e);
|
|
13173
13173
|
}
|
|
13174
|
-
const Pu = "filename", Au = "rawFilename", Tu = "comment", Ou = "rawComment", Cu = "uncompressedSize", Lu = "compressedSize", Ru = "offset",
|
|
13174
|
+
const Pu = "filename", Au = "rawFilename", Tu = "comment", Ou = "rawComment", Cu = "uncompressedSize", Lu = "compressedSize", Ru = "offset", Va = "diskNumberStart", Za = "lastModDate", Ya = "rawLastModDate", Iu = "lastAccessDate", B1 = "rawLastAccessDate", $u = "creationDate", j1 = "rawCreationDate", N1 = "internalFileAttribute", U1 = "internalFileAttributes", W1 = "externalFileAttribute", M1 = "externalFileAttributes", q1 = "msDosCompatible", K1 = "zip64", z1 = "encrypted", G1 = "version", V1 = "versionMadeBy", Z1 = "zipCrypto", Y1 = "directory", X1 = "executable", J1 = [
|
|
13175
13175
|
Pu,
|
|
13176
13176
|
Au,
|
|
13177
13177
|
Lu,
|
|
13178
13178
|
Cu,
|
|
13179
|
-
Va,
|
|
13180
13179
|
Za,
|
|
13180
|
+
Ya,
|
|
13181
13181
|
Tu,
|
|
13182
13182
|
Ou,
|
|
13183
13183
|
Iu,
|
|
13184
13184
|
$u,
|
|
13185
13185
|
Ru,
|
|
13186
|
-
|
|
13187
|
-
|
|
13186
|
+
Va,
|
|
13187
|
+
Va,
|
|
13188
13188
|
N1,
|
|
13189
13189
|
U1,
|
|
13190
13190
|
W1,
|
|
@@ -13216,11 +13216,11 @@ class np {
|
|
|
13216
13216
|
J1.forEach((r) => this[r] = t[r]);
|
|
13217
13217
|
}
|
|
13218
13218
|
}
|
|
13219
|
-
const
|
|
13219
|
+
const xa = "File format is not recognized", Q1 = "End of central directory not found", ew = "End of Zip64 central directory locator not found", tw = "Central directory header not found", rw = "Local file header not found", nw = "Zip64 extra field not found", sw = "File contains encrypted entry", iw = "Encryption method not supported", sp = "Compression method not supported", ip = "Split zip file", ap = "utf-8", op = "cp437", aw = [
|
|
13220
13220
|
[Cu, Rr],
|
|
13221
13221
|
[Lu, Rr],
|
|
13222
13222
|
[Ru, Rr],
|
|
13223
|
-
[
|
|
13223
|
+
[Va, mr]
|
|
13224
13224
|
], ow = {
|
|
13225
13225
|
[mr]: {
|
|
13226
13226
|
getValue: Ne,
|
|
@@ -13243,8 +13243,8 @@ class lp {
|
|
|
13243
13243
|
const r = this;
|
|
13244
13244
|
let { reader: i } = r;
|
|
13245
13245
|
const { config: a } = r;
|
|
13246
|
-
if (await Qs(i), (i.size === lt || !i.readUint8Array) && (i = new
|
|
13247
|
-
throw new Error(
|
|
13246
|
+
if (await Qs(i), (i.size === lt || !i.readUint8Array) && (i = new Ga(await new Response(i.readable).blob()), await Qs(i)), i.size < Zr)
|
|
13247
|
+
throw new Error(xa);
|
|
13248
13248
|
i.chunkSize = W_(a);
|
|
13249
13249
|
const s = await dw(i, T_, i.size, Zr, mr * 16);
|
|
13250
13250
|
if (!s) {
|
|
@@ -13258,14 +13258,14 @@ class lp {
|
|
|
13258
13258
|
const g = i.lastDiskNumber || 0;
|
|
13259
13259
|
let R = Ve(n, 6), y = Ve(n, 8), _ = 0, b = 0;
|
|
13260
13260
|
if (f == Rr || o == Rr || y == mr || R == mr) {
|
|
13261
|
-
const S = await et(i, s.offset -
|
|
13261
|
+
const S = await et(i, s.offset - ya, ya), P = Ze(S);
|
|
13262
13262
|
if (Ne(P, 0) == O_) {
|
|
13263
13263
|
f = Fs(P, 8);
|
|
13264
|
-
let $ = await et(i, f,
|
|
13265
|
-
const j = s.offset -
|
|
13264
|
+
let $ = await et(i, f, ga, -1), I = Ze($);
|
|
13265
|
+
const j = s.offset - ya - ga;
|
|
13266
13266
|
if (Ne(I, 0) != Df && f != j) {
|
|
13267
13267
|
const U = f;
|
|
13268
|
-
f = j, _ = f - U, $ = await et(i, f,
|
|
13268
|
+
f = j, _ = f - U, $ = await et(i, f, ga, -1), I = Ze($);
|
|
13269
13269
|
}
|
|
13270
13270
|
if (Ne(I, 0) != Df)
|
|
13271
13271
|
throw new Error(ew);
|
|
@@ -13275,7 +13275,7 @@ class lp {
|
|
|
13275
13275
|
if (f >= i.size && (_ = i.size - f - o - Zr, f = i.size - o - Zr), g != h)
|
|
13276
13276
|
throw new Error(ip);
|
|
13277
13277
|
if (f < 0)
|
|
13278
|
-
throw new Error(
|
|
13278
|
+
throw new Error(xa);
|
|
13279
13279
|
let C = 0, k = await et(i, f, o, R), D = Ze(k);
|
|
13280
13280
|
if (o) {
|
|
13281
13281
|
const S = s.offset - o;
|
|
@@ -13286,7 +13286,7 @@ class lp {
|
|
|
13286
13286
|
}
|
|
13287
13287
|
const T = s.offset - f - (i.lastDiskOffset || 0);
|
|
13288
13288
|
if (o != T && T >= 0 && (o = T, k = await et(i, f, o, R), D = Ze(k)), f < 0 || f >= i.size)
|
|
13289
|
-
throw new Error(
|
|
13289
|
+
throw new Error(xa);
|
|
13290
13290
|
const H = it(r, t, "filenameEncoding"), E = it(r, t, "commentEncoding");
|
|
13291
13291
|
for (let S = 0; S < y; S++) {
|
|
13292
13292
|
const P = new lw(i, a, r.options);
|
|
@@ -13416,7 +13416,7 @@ class lw {
|
|
|
13416
13416
|
try {
|
|
13417
13417
|
({ outputSize: z } = await P1({ readable: S, writable: I }, Z));
|
|
13418
13418
|
} catch (se) {
|
|
13419
|
-
if (!$ || se.message !=
|
|
13419
|
+
if (!$ || se.message != So)
|
|
13420
13420
|
throw se;
|
|
13421
13421
|
} finally {
|
|
13422
13422
|
const se = it(a, i, "preventClose");
|
|
@@ -13527,7 +13527,7 @@ function cw(e, t) {
|
|
|
13527
13527
|
rawLastAccessDate: o,
|
|
13528
13528
|
rawCreationDate: f
|
|
13529
13529
|
});
|
|
13530
|
-
const p =
|
|
13530
|
+
const p = Sa(n), c = Sa(o), m = Sa(f), h = { lastModDate: p, lastAccessDate: c, creationDate: m };
|
|
13531
13531
|
Object.assign(e, h), Object.assign(t, h);
|
|
13532
13532
|
}
|
|
13533
13533
|
} catch {
|
|
@@ -13535,7 +13535,7 @@ function cw(e, t) {
|
|
|
13535
13535
|
}
|
|
13536
13536
|
function uw(e, t, r) {
|
|
13537
13537
|
const i = Ze(e.data), a = on(i, 0), s = [], n = [];
|
|
13538
|
-
r ? ((a & 1) == 1 && (s.push(
|
|
13538
|
+
r ? ((a & 1) == 1 && (s.push(Za), n.push(Ya)), (a & 2) == 2 && (s.push(Iu), n.push(B1)), (a & 4) == 4 && (s.push($u), n.push(j1))) : e.data.length >= 5 && (s.push(Za), n.push(Ya));
|
|
13539
13539
|
let o = 1;
|
|
13540
13540
|
s.forEach((f, p) => {
|
|
13541
13541
|
if (e.data.length >= o + 4) {
|
|
@@ -13572,7 +13572,7 @@ function hw(e) {
|
|
|
13572
13572
|
} catch {
|
|
13573
13573
|
}
|
|
13574
13574
|
}
|
|
13575
|
-
function
|
|
13575
|
+
function Sa(e) {
|
|
13576
13576
|
return new Date(Number(e / BigInt(1e4) - BigInt(116444736e5)));
|
|
13577
13577
|
}
|
|
13578
13578
|
function on(e, t) {
|
|
@@ -13598,9 +13598,9 @@ try {
|
|
|
13598
13598
|
Fu = import.meta.url;
|
|
13599
13599
|
} catch {
|
|
13600
13600
|
}
|
|
13601
|
-
|
|
13602
|
-
T1(
|
|
13603
|
-
|
|
13601
|
+
xo({ baseURL: Fu });
|
|
13602
|
+
T1(xo);
|
|
13603
|
+
xo({ Deflate: t_, Inflate: x_ });
|
|
13604
13604
|
class yw {
|
|
13605
13605
|
constructor(t) {
|
|
13606
13606
|
this.fileTree = t;
|
|
@@ -13639,13 +13639,13 @@ class ei {
|
|
|
13639
13639
|
}
|
|
13640
13640
|
static fromStream(t) {
|
|
13641
13641
|
const r = new lp(
|
|
13642
|
-
new
|
|
13642
|
+
new Ga(new Rn(t, "archive.zip"))
|
|
13643
13643
|
);
|
|
13644
13644
|
return new ei(r);
|
|
13645
13645
|
}
|
|
13646
13646
|
static fromArrayBuffer(t) {
|
|
13647
13647
|
const r = new lp(
|
|
13648
|
-
new
|
|
13648
|
+
new Ga(new Blob([t]))
|
|
13649
13649
|
);
|
|
13650
13650
|
return new ei(r);
|
|
13651
13651
|
}
|
|
@@ -14088,7 +14088,7 @@ crypto.subtle.generateKey(
|
|
|
14088
14088
|
["deriveKey", "deriveBits"]
|
|
14089
14089
|
// Key usage
|
|
14090
14090
|
);
|
|
14091
|
-
async function
|
|
14091
|
+
async function Xa(e, t) {
|
|
14092
14092
|
const r = ["GET", "HEAD"].includes(e.method) || "body" in t ? void 0 : await e.blob();
|
|
14093
14093
|
return new Request(t.url || e.url, {
|
|
14094
14094
|
body: r,
|
|
@@ -14109,8 +14109,8 @@ async function Tw(e) {
|
|
|
14109
14109
|
return [e, e];
|
|
14110
14110
|
const [t, r] = e.body.tee();
|
|
14111
14111
|
return [
|
|
14112
|
-
await
|
|
14113
|
-
await
|
|
14112
|
+
await Xa(e, { body: t, duplex: "half" }),
|
|
14113
|
+
await Xa(e, { body: r, duplex: "half" })
|
|
14114
14114
|
];
|
|
14115
14115
|
}
|
|
14116
14116
|
async function Ow(e, t, r, i) {
|
|
@@ -14128,7 +14128,7 @@ async function Ow(e, t, r, i) {
|
|
|
14128
14128
|
try {
|
|
14129
14129
|
return await fetch(o);
|
|
14130
14130
|
} catch {
|
|
14131
|
-
const m = ((p = new Headers(f.headers).get("x-cors-proxy-allowed-request-headers")) == null ? void 0 : p.split(",")) || [], h = m.includes("authorization") || m.includes("cookie"), g = await
|
|
14131
|
+
const m = ((p = new Headers(f.headers).get("x-cors-proxy-allowed-request-headers")) == null ? void 0 : p.split(",")) || [], h = m.includes("authorization") || m.includes("cookie"), g = await Xa(f, {
|
|
14132
14132
|
url: `${r}${a.url}`,
|
|
14133
14133
|
...h && { credentials: "include" }
|
|
14134
14134
|
});
|
|
@@ -14339,7 +14339,7 @@ class Iw extends Jt {
|
|
|
14339
14339
|
return this.resource.name;
|
|
14340
14340
|
}
|
|
14341
14341
|
}
|
|
14342
|
-
class
|
|
14342
|
+
class Ao extends Jt {
|
|
14343
14343
|
/**
|
|
14344
14344
|
* Creates a new instance of `FetchResource`.
|
|
14345
14345
|
* @param progress The progress tracker.
|
|
@@ -14439,7 +14439,7 @@ function $w(e) {
|
|
|
14439
14439
|
}
|
|
14440
14440
|
const Dw = () => {
|
|
14441
14441
|
};
|
|
14442
|
-
class Hw extends
|
|
14442
|
+
class Hw extends Ao {
|
|
14443
14443
|
/**
|
|
14444
14444
|
* Creates a new instance of `UrlResource`.
|
|
14445
14445
|
* @param resource The URL reference.
|
|
@@ -14506,7 +14506,7 @@ class Fw extends Jt {
|
|
|
14506
14506
|
* Generate a nice, non-empty filename – the installPlugin step depends on it.
|
|
14507
14507
|
*/
|
|
14508
14508
|
get filename() {
|
|
14509
|
-
return this.name.replaceAll(/[^a-zA-Z0-9-.]/g, "-").replaceAll(/-+/g, "-").replace(/^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$/g, "") ||
|
|
14509
|
+
return this.name.replaceAll(/[^a-zA-Z0-9-.]/g, "-").replaceAll(/-+/g, "-").replace(/^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$/g, "") || Ja();
|
|
14510
14510
|
}
|
|
14511
14511
|
/** @inheritDoc */
|
|
14512
14512
|
get name() {
|
|
@@ -14535,7 +14535,7 @@ class jw extends Jt {
|
|
|
14535
14535
|
return this.reference.name;
|
|
14536
14536
|
}
|
|
14537
14537
|
}
|
|
14538
|
-
class Nw extends
|
|
14538
|
+
class Nw extends Ao {
|
|
14539
14539
|
constructor(t, r) {
|
|
14540
14540
|
super(r), this.resource = t;
|
|
14541
14541
|
}
|
|
@@ -14546,7 +14546,7 @@ class Nw extends Po {
|
|
|
14546
14546
|
return `https://downloads.wordpress.org/theme/${ju(this.resource.slug)}`;
|
|
14547
14547
|
}
|
|
14548
14548
|
}
|
|
14549
|
-
class Uw extends
|
|
14549
|
+
class Uw extends Ao {
|
|
14550
14550
|
constructor(t, r) {
|
|
14551
14551
|
super(r), this.resource = t;
|
|
14552
14552
|
}
|
|
@@ -14801,7 +14801,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
14801
14801
|
), t = `/${t}`), await e.unlink(t);
|
|
14802
14802
|
}, Gw = async (e, { sql: t }, r) => {
|
|
14803
14803
|
r == null || r.tracker.setCaption("Executing SQL Queries");
|
|
14804
|
-
const i = `/tmp/${
|
|
14804
|
+
const i = `/tmp/${Ja()}.sql`;
|
|
14805
14805
|
await e.writeFile(
|
|
14806
14806
|
i,
|
|
14807
14807
|
new Uint8Array(await t.arrayBuffer())
|
|
@@ -15251,7 +15251,7 @@ async function Xw(e, t) {
|
|
|
15251
15251
|
)
|
|
15252
15252
|
), await qu(e, r, i, "skip");
|
|
15253
15253
|
}
|
|
15254
|
-
const
|
|
15254
|
+
const To = async (e, { consts: t, method: r = "define-before-run" }) => {
|
|
15255
15255
|
switch (r) {
|
|
15256
15256
|
case "define-before-run":
|
|
15257
15257
|
await Jw(e, t);
|
|
@@ -15297,7 +15297,7 @@ const Ku = async (e, { options: t }) => {
|
|
|
15297
15297
|
}
|
|
15298
15298
|
`
|
|
15299
15299
|
});
|
|
15300
|
-
},
|
|
15300
|
+
}, Oo = "/tmp/wp-cli.phar", eb = {
|
|
15301
15301
|
resource: "url",
|
|
15302
15302
|
/**
|
|
15303
15303
|
* Use compression for downloading the wp-cli.phar file.
|
|
@@ -15310,7 +15310,7 @@ const Ku = async (e, { options: t }) => {
|
|
|
15310
15310
|
* like the JavaScript parser or Composer are removed.
|
|
15311
15311
|
*/
|
|
15312
15312
|
url: "https://playground.wordpress.net/wp-cli.phar"
|
|
15313
|
-
}, zu = async (e, t =
|
|
15313
|
+
}, zu = async (e, t = Oo) => {
|
|
15314
15314
|
if (!await e.fileExists(t))
|
|
15315
15315
|
throw new Error(`wp-cli.phar not found at ${t}.
|
|
15316
15316
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
@@ -15319,7 +15319,7 @@ const Ku = async (e, { options: t }) => {
|
|
|
15319
15319
|
}
|
|
15320
15320
|
Read more about it in the documentation.
|
|
15321
15321
|
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`);
|
|
15322
|
-
}, Gu = async (e, { command: t, wpCliPath: r =
|
|
15322
|
+
}, Gu = async (e, { command: t, wpCliPath: r = Oo }) => {
|
|
15323
15323
|
await zu(e, r);
|
|
15324
15324
|
let i;
|
|
15325
15325
|
if (typeof t == "string" ? (t = t.trim(), i = tb(t)) : i = t, i.shift() !== "wp")
|
|
@@ -15399,7 +15399,7 @@ function tb(e) {
|
|
|
15399
15399
|
return n && s.push(n), s;
|
|
15400
15400
|
}
|
|
15401
15401
|
const rb = async (e, { wpCliPath: t }) => {
|
|
15402
|
-
await zu(e, t), await
|
|
15402
|
+
await zu(e, t), await To(e, {
|
|
15403
15403
|
consts: {
|
|
15404
15404
|
WP_ALLOW_MULTISITE: 1
|
|
15405
15405
|
}
|
|
@@ -15493,7 +15493,7 @@ Use: rmdir({ path: '/wordpress/wp-load.php' });
|
|
|
15493
15493
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15494
15494
|
`.trim()
|
|
15495
15495
|
), t = `/${t}`), await e.rmdir(t);
|
|
15496
|
-
},
|
|
15496
|
+
}, Co = async (e, { path: t, data: r }) => {
|
|
15497
15497
|
r instanceof File && (r = new Uint8Array(await r.arrayBuffer())), t.startsWith("/") || (Te.error(
|
|
15498
15498
|
`
|
|
15499
15499
|
The writeFile() step in your Blueprint refers to a relative path.
|
|
@@ -15530,7 +15530,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15530
15530
|
`.trim()
|
|
15531
15531
|
), t = `/${t}`), await si(e, t, r.files);
|
|
15532
15532
|
}, Vu = async (e, { siteUrl: t }) => {
|
|
15533
|
-
await
|
|
15533
|
+
await To(e, {
|
|
15534
15534
|
consts: {
|
|
15535
15535
|
WP_HOME: t,
|
|
15536
15536
|
WP_SITEURL: t
|
|
@@ -15541,10 +15541,19 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15541
15541
|
};
|
|
15542
15542
|
async function fb(e, t, r) {
|
|
15543
15543
|
var i;
|
|
15544
|
-
(i = r == null ? void 0 : r.tracker) == null || i.setCaption("Importing content"), await
|
|
15544
|
+
(i = r == null ? void 0 : r.tracker) == null || i.setCaption("Importing content"), await Co(e, {
|
|
15545
15545
|
path: "/tmp/import.wxr",
|
|
15546
15546
|
data: t
|
|
15547
15547
|
}), await e.run({
|
|
15548
|
+
$_SERVER: {
|
|
15549
|
+
/**
|
|
15550
|
+
* get_site_url() infers the protocol from $_SERVER['HTTPS'] instead of
|
|
15551
|
+
* using the stored siteurl option. The importer relies on that behavior
|
|
15552
|
+
* when rewriting links in the WXR payload, so we populate the flag here
|
|
15553
|
+
* just as the web request layer would.
|
|
15554
|
+
*/
|
|
15555
|
+
HTTPS: (await e.absoluteUrl).startsWith("https://") ? "on" : ""
|
|
15556
|
+
},
|
|
15548
15557
|
code: `<?php
|
|
15549
15558
|
define('WP_LOAD_IMPORTERS', true);
|
|
15550
15559
|
require 'wp-load.php';
|
|
@@ -15655,7 +15664,7 @@ const Zu = async (e, { themeSlug: t = "" }, r) => {
|
|
|
15655
15664
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
15656
15665
|
`
|
|
15657
15666
|
});
|
|
15658
|
-
},
|
|
15667
|
+
}, Lo = async (e, { zipFile: t, zipPath: r, extractToPath: i }) => {
|
|
15659
15668
|
if (r)
|
|
15660
15669
|
Te.warn(
|
|
15661
15670
|
'The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.'
|
|
@@ -15687,7 +15696,7 @@ const Zu = async (e, { themeSlug: t = "" }, r) => {
|
|
|
15687
15696
|
], pb = async (e, { wordPressFilesZip: t, pathInZip: r = "" }) => {
|
|
15688
15697
|
const i = await e.documentRoot;
|
|
15689
15698
|
let a = Ae("/tmp", "import");
|
|
15690
|
-
await e.mkdir(a), await
|
|
15699
|
+
await e.mkdir(a), await Lo(e, {
|
|
15691
15700
|
zipFile: t,
|
|
15692
15701
|
extractToPath: a
|
|
15693
15702
|
}), a = Ae(a, r);
|
|
@@ -15699,7 +15708,7 @@ const Zu = async (e, { themeSlug: t = "" }, r) => {
|
|
|
15699
15708
|
);
|
|
15700
15709
|
await pp(e, m);
|
|
15701
15710
|
const h = Ae(n, c);
|
|
15702
|
-
await e.fileExists(h) && (await e.mkdir(
|
|
15711
|
+
await e.fileExists(h) && (await e.mkdir(Aa(m)), await e.mv(h, m));
|
|
15703
15712
|
}
|
|
15704
15713
|
const o = Ae(
|
|
15705
15714
|
a,
|
|
@@ -15744,12 +15753,12 @@ async function Xu(e, {
|
|
|
15744
15753
|
ifAlreadyInstalled: i = "overwrite",
|
|
15745
15754
|
targetFolderName: a = ""
|
|
15746
15755
|
}) {
|
|
15747
|
-
const n = r.name.replace(/\.zip$/, ""), o = Ae(await e.documentRoot, "wp-content"), f = Ae(o,
|
|
15756
|
+
const n = r.name.replace(/\.zip$/, ""), o = Ae(await e.documentRoot, "wp-content"), f = Ae(o, Ja()), p = Ae(f, "assets", n);
|
|
15748
15757
|
await e.fileExists(p) && await e.rmdir(f, {
|
|
15749
15758
|
recursive: !0
|
|
15750
15759
|
}), await e.mkdir(f);
|
|
15751
15760
|
try {
|
|
15752
|
-
await
|
|
15761
|
+
await Lo(e, {
|
|
15753
15762
|
zipFile: r,
|
|
15754
15763
|
extractToPath: p
|
|
15755
15764
|
});
|
|
@@ -15825,7 +15834,7 @@ const ub = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
15825
15834
|
n,
|
|
15826
15835
|
t.name
|
|
15827
15836
|
);
|
|
15828
|
-
await
|
|
15837
|
+
await Co(e, {
|
|
15829
15838
|
path: h,
|
|
15830
15839
|
data: t
|
|
15831
15840
|
}), f = n, p = t.name;
|
|
@@ -16136,7 +16145,7 @@ const bb = async (e, t) => {
|
|
|
16136
16145
|
activateTheme: Uu,
|
|
16137
16146
|
cp: nb,
|
|
16138
16147
|
defineSiteUrl: Vu,
|
|
16139
|
-
defineWpConfigConsts:
|
|
16148
|
+
defineWpConfigConsts: To,
|
|
16140
16149
|
enableMultisite: rb,
|
|
16141
16150
|
exportWXR: cb,
|
|
16142
16151
|
importThemeStarterContent: Zu,
|
|
@@ -16157,10 +16166,10 @@ const bb = async (e, t) => {
|
|
|
16157
16166
|
runWpInstallationWizard: yb,
|
|
16158
16167
|
setSiteLanguage: vb,
|
|
16159
16168
|
setSiteOptions: Ku,
|
|
16160
|
-
unzip:
|
|
16169
|
+
unzip: Lo,
|
|
16161
16170
|
updateUserMeta: Qw,
|
|
16162
16171
|
wpCLI: Gu,
|
|
16163
|
-
writeFile:
|
|
16172
|
+
writeFile: Co,
|
|
16164
16173
|
writeFiles: ob,
|
|
16165
16174
|
zipWpContent: gb
|
|
16166
16175
|
}, Symbol.toStringTag, { value: "Module" })), Sb = {
|
|
@@ -18033,7 +18042,7 @@ const Ab = {
|
|
|
18033
18042
|
{ type: ["object", "string"] }
|
|
18034
18043
|
]
|
|
18035
18044
|
}
|
|
18036
|
-
},
|
|
18045
|
+
}, ka = { validate: Ir };
|
|
18037
18046
|
function Ir(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: a = e } = {}) {
|
|
18038
18047
|
let s = null, n = 0;
|
|
18039
18048
|
if (n === 0)
|
|
@@ -18043,12 +18052,12 @@ function Ir(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
18043
18052
|
const m = n, h = n;
|
|
18044
18053
|
let g = !1;
|
|
18045
18054
|
const R = n;
|
|
18046
|
-
|
|
18055
|
+
ka.validate(c, {
|
|
18047
18056
|
instancePath: t + "/" + p.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
18048
18057
|
parentData: e,
|
|
18049
18058
|
parentDataProperty: p,
|
|
18050
18059
|
rootData: a
|
|
18051
|
-
}) || (s = s === null ?
|
|
18060
|
+
}) || (s = s === null ? ka.validate.errors : s.concat(ka.validate.errors), n = s.length);
|
|
18052
18061
|
var o = R === n;
|
|
18053
18062
|
if (g = g || o, !g) {
|
|
18054
18063
|
const y = n;
|
|
@@ -27075,7 +27084,7 @@ function Rb(e, {
|
|
|
27075
27084
|
const L = {
|
|
27076
27085
|
step: "writeFile",
|
|
27077
27086
|
data: eb,
|
|
27078
|
-
path:
|
|
27087
|
+
path: Oo
|
|
27079
27088
|
};
|
|
27080
27089
|
f === -1 ? (b = e.steps) == null || b.push(L) : (C = e.steps) == null || C.splice(
|
|
27081
27090
|
f,
|
|
@@ -27120,7 +27129,7 @@ function Rb(e, {
|
|
|
27120
27129
|
versions: {
|
|
27121
27130
|
php: $b(
|
|
27122
27131
|
(T = e.preferredVersions) == null ? void 0 : T.php,
|
|
27123
|
-
|
|
27132
|
+
eo,
|
|
27124
27133
|
Ad
|
|
27125
27134
|
),
|
|
27126
27135
|
wp: ((H = e.preferredVersions) == null ? void 0 : H.wp) || "latest"
|
|
@@ -27646,7 +27655,7 @@ function Jb(e, t) {
|
|
|
27646
27655
|
export {
|
|
27647
27656
|
Ln as BlueprintReflection,
|
|
27648
27657
|
Ad as LatestSupportedPHPVersion,
|
|
27649
|
-
|
|
27658
|
+
eo as SupportedPHPVersions,
|
|
27650
27659
|
ev as SupportedPHPVersionsList,
|
|
27651
27660
|
Nu as activatePlugin,
|
|
27652
27661
|
Uu as activateTheme,
|
|
@@ -27654,7 +27663,7 @@ export {
|
|
|
27654
27663
|
ed as compileBlueprintV1,
|
|
27655
27664
|
nb as cp,
|
|
27656
27665
|
Vu as defineSiteUrl,
|
|
27657
|
-
|
|
27666
|
+
To as defineWpConfigConsts,
|
|
27658
27667
|
rb as enableMultisite,
|
|
27659
27668
|
cb as exportWXR,
|
|
27660
27669
|
Lb as getBlueprintDeclaration,
|
|
@@ -27688,11 +27697,11 @@ export {
|
|
|
27688
27697
|
vb as setSiteLanguage,
|
|
27689
27698
|
Ku as setSiteOptions,
|
|
27690
27699
|
iv as startPlaygroundWeb,
|
|
27691
|
-
|
|
27700
|
+
Lo as unzip,
|
|
27692
27701
|
Qw as updateUserMeta,
|
|
27693
27702
|
Gu as wpCLI,
|
|
27694
27703
|
Yu as wpContentFilesExcludedFromExport,
|
|
27695
|
-
|
|
27704
|
+
Co as writeFile,
|
|
27696
27705
|
ob as writeFiles,
|
|
27697
27706
|
gb as zipWpContent
|
|
27698
27707
|
};
|