@wp-playground/client 3.1.5 → 3.1.8
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 +52 -52
- package/index.js +870 -863
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ho = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Vo = (e, t, r) => t.has(e) || Ho("Cannot " + r);
|
|
5
|
+
var Si = (e, t, r) => (Vo(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ti = (e, t, r) => t.has(e) ? Ho("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Oi = (e, t, r, i) => (Vo(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
|
|
6
6
|
const Op = function() {
|
|
7
7
|
var e;
|
|
8
8
|
return typeof process < "u" && ((e = process.release) == null ? void 0 : e.name) === "node" ? "NODE" : typeof window < "u" ? "WEB" : (
|
|
@@ -112,7 +112,7 @@ class Nn {
|
|
|
112
112
|
return this.getBundle() || this.getDeclaration();
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
const bd = "playground-log",
|
|
115
|
+
const bd = "playground-log", Zo = (e, ...t) => {
|
|
116
116
|
Oe.dispatchEvent(
|
|
117
117
|
new CustomEvent(bd, {
|
|
118
118
|
detail: {
|
|
@@ -122,10 +122,10 @@ const bd = "playground-log", Vo = (e, ...t) => {
|
|
|
122
122
|
})
|
|
123
123
|
);
|
|
124
124
|
}, _d = (e, ...t) => {
|
|
125
|
-
switch (typeof e.message == "string" ? Reflect.set(e, "message",
|
|
125
|
+
switch (typeof e.message == "string" ? Reflect.set(e, "message", Ba(e.message)) : e.message.message && typeof e.message.message == "string" && Reflect.set(
|
|
126
126
|
e.message,
|
|
127
127
|
"message",
|
|
128
|
-
|
|
128
|
+
Ba(e.message.message)
|
|
129
129
|
), e.severity) {
|
|
130
130
|
case dt.Debug:
|
|
131
131
|
console.debug(e.message, ...t);
|
|
@@ -146,31 +146,31 @@ const bd = "playground-log", Vo = (e, ...t) => {
|
|
|
146
146
|
console.log(e.message, ...t);
|
|
147
147
|
}
|
|
148
148
|
}, vd = (e) => e instanceof Error ? [e.message, e.stack].join(`
|
|
149
|
-
`) : JSON.stringify(e, null, 2), $p = [],
|
|
149
|
+
`) : JSON.stringify(e, null, 2), $p = [], Go = (e) => {
|
|
150
150
|
$p.push(e);
|
|
151
|
-
},
|
|
151
|
+
}, Ua = (e) => {
|
|
152
152
|
if (e.raw === !0)
|
|
153
|
-
|
|
153
|
+
Go(e.message);
|
|
154
154
|
else {
|
|
155
155
|
const t = Ed(
|
|
156
156
|
typeof e.message == "object" ? vd(e.message) : e.message,
|
|
157
157
|
e.severity,
|
|
158
158
|
e.prefix ?? gr.JS
|
|
159
159
|
);
|
|
160
|
-
|
|
160
|
+
Go(t);
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
|
-
let
|
|
164
|
-
const
|
|
163
|
+
let Ai = 0;
|
|
164
|
+
const Yo = "/wordpress/wp-content/debug.log", xd = async (e) => await e.fileExists(Yo) ? await e.readFileAsText(Yo) : "", Rp = (e, t) => {
|
|
165
165
|
t.addEventListener("request.end", async () => {
|
|
166
166
|
const r = await xd(t);
|
|
167
|
-
if (r.length >
|
|
168
|
-
const i = r.substring(
|
|
167
|
+
if (r.length > Ai) {
|
|
168
|
+
const i = r.substring(Ai);
|
|
169
169
|
e.logMessage({
|
|
170
170
|
message: i,
|
|
171
171
|
severity: dt.Log,
|
|
172
172
|
raw: !0
|
|
173
|
-
}),
|
|
173
|
+
}), Ai = r.length;
|
|
174
174
|
}
|
|
175
175
|
}), t.addEventListener("request.error", (r) => {
|
|
176
176
|
r = r, r.error && (e.logMessage({
|
|
@@ -208,7 +208,7 @@ class kd extends EventTarget {
|
|
|
208
208
|
* @returns string[]
|
|
209
209
|
*/
|
|
210
210
|
getLogs() {
|
|
211
|
-
return this.handlers.includes(
|
|
211
|
+
return this.handlers.includes(Ua) ? [...$p] : (this.error(`Logs aren't stored because the logToMemory handler isn't registered.
|
|
212
212
|
If you're using a custom logger instance, make sure to register logToMemory handler.
|
|
213
213
|
`), []);
|
|
214
214
|
}
|
|
@@ -322,11 +322,11 @@ class kd extends EventTarget {
|
|
|
322
322
|
const Pd = () => {
|
|
323
323
|
try {
|
|
324
324
|
if (process.env.NODE_ENV === "test")
|
|
325
|
-
return [
|
|
325
|
+
return [Ua, Zo];
|
|
326
326
|
} catch {
|
|
327
327
|
}
|
|
328
|
-
return [
|
|
329
|
-
}, Oe = new kd(Pd()),
|
|
328
|
+
return [Ua, _d, Zo];
|
|
329
|
+
}, Oe = new kd(Pd()), Ba = (e) => e.replace(/\t/g, ""), Ed = (e, t, r) => {
|
|
330
330
|
const i = /* @__PURE__ */ new Date(), a = new Intl.DateTimeFormat("en-GB", {
|
|
331
331
|
year: "numeric",
|
|
332
332
|
month: "short",
|
|
@@ -340,7 +340,7 @@ const Pd = () => {
|
|
|
340
340
|
timeZone: "UTC",
|
|
341
341
|
timeZoneName: "short"
|
|
342
342
|
}).format(i), n = a + " " + s;
|
|
343
|
-
return e =
|
|
343
|
+
return e = Ba(e), `[${n}] ${r} ${t.name}: ${e}`;
|
|
344
344
|
}, Sd = 5 * 1024 * 1024;
|
|
345
345
|
function Td(e, t) {
|
|
346
346
|
const r = e.headers.get("content-length") || "", i = parseInt(r, 10) || Sd;
|
|
@@ -389,8 +389,8 @@ function Fp(e, t, r) {
|
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
|
-
const
|
|
393
|
-
class
|
|
392
|
+
const $i = 1e-5;
|
|
393
|
+
class ci extends EventTarget {
|
|
394
394
|
constructor({
|
|
395
395
|
weight: t = 1,
|
|
396
396
|
caption: r = "",
|
|
@@ -434,12 +434,12 @@ class fi extends EventTarget {
|
|
|
434
434
|
* ```
|
|
435
435
|
*/
|
|
436
436
|
stage(t, r = "") {
|
|
437
|
-
if (t || (t = this._selfWeight), this._selfWeight - t <
|
|
437
|
+
if (t || (t = this._selfWeight), this._selfWeight - t < -$i)
|
|
438
438
|
throw new Error(
|
|
439
439
|
`Cannot add a stage with weight ${t} as the total weight of registered stages would exceed 1.`
|
|
440
440
|
);
|
|
441
441
|
this._selfWeight -= t;
|
|
442
|
-
const i = new
|
|
442
|
+
const i = new ci({
|
|
443
443
|
caption: r,
|
|
444
444
|
weight: t,
|
|
445
445
|
fillTime: this._fillTime
|
|
@@ -476,7 +476,7 @@ class fi extends EventTarget {
|
|
|
476
476
|
}, i);
|
|
477
477
|
}
|
|
478
478
|
set(t) {
|
|
479
|
-
this._selfProgress = Math.min(t, 100), this.notifyProgress(), this._selfProgress +
|
|
479
|
+
this._selfProgress = Math.min(t, 100), this.notifyProgress(), this._selfProgress + $i >= 100 && this.finish();
|
|
480
480
|
}
|
|
481
481
|
finish() {
|
|
482
482
|
this._fillInterval && clearInterval(this._fillInterval), this._selfDone = !0, this._selfProgress = 100, this._isFilling = !1, this._fillInterval = void 0, this.notifyProgress(), this.notifyDone();
|
|
@@ -494,7 +494,7 @@ class fi extends EventTarget {
|
|
|
494
494
|
this._selfCaption = t, this.notifyProgress();
|
|
495
495
|
}
|
|
496
496
|
get done() {
|
|
497
|
-
return this.progress +
|
|
497
|
+
return this.progress + $i >= 100;
|
|
498
498
|
}
|
|
499
499
|
get progress() {
|
|
500
500
|
if (this._selfDone)
|
|
@@ -567,7 +567,7 @@ class Ad extends Error {
|
|
|
567
567
|
super("Acquiring lock timed out");
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
class
|
|
570
|
+
class es {
|
|
571
571
|
constructor({ concurrency: t, timeout: r }) {
|
|
572
572
|
this._running = 0, this.concurrency = t, this.timeout = r, this.queue = [];
|
|
573
573
|
}
|
|
@@ -613,16 +613,16 @@ function Te(...e) {
|
|
|
613
613
|
}
|
|
614
614
|
let r = e.join("/");
|
|
615
615
|
const i = r[0] === "/", a = t(r);
|
|
616
|
-
return r =
|
|
616
|
+
return r = ui(r), !r && !i && (r = "."), r && a && !t(r) && (r += "/"), r;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function qa(e) {
|
|
619
619
|
if (e === "/")
|
|
620
620
|
return "/";
|
|
621
|
-
e =
|
|
621
|
+
e = ui(e);
|
|
622
622
|
const t = e.lastIndexOf("/");
|
|
623
623
|
return t === -1 ? "" : t === 0 ? "/" : e.substr(0, t);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function ui(e) {
|
|
626
626
|
const t = e[0] === "/";
|
|
627
627
|
return e = $d(
|
|
628
628
|
e.split("/").filter((r) => !!r),
|
|
@@ -647,7 +647,7 @@ function Rd(e = 36, t = "!@#$%^&*()_+=-[]/.,<>?") {
|
|
|
647
647
|
i += r[Math.floor(Math.random() * r.length)];
|
|
648
648
|
return i;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function Zs() {
|
|
651
651
|
return Rd(36, "-_");
|
|
652
652
|
}
|
|
653
653
|
function mt(e) {
|
|
@@ -655,7 +655,7 @@ function mt(e) {
|
|
|
655
655
|
JSON.stringify(e)
|
|
656
656
|
)}'), true)`;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function un(e) {
|
|
659
659
|
const t = {};
|
|
660
660
|
for (const r in e)
|
|
661
661
|
t[r] = mt(e[r]);
|
|
@@ -687,14 +687,24 @@ const Ld = {
|
|
|
687
687
|
201: "Created",
|
|
688
688
|
200: "OK"
|
|
689
689
|
};
|
|
690
|
-
var
|
|
691
|
-
const
|
|
690
|
+
var Jn, Qn;
|
|
691
|
+
const pi = class pi {
|
|
692
692
|
constructor(t, r, i, a) {
|
|
693
693
|
/**
|
|
694
|
-
*
|
|
694
|
+
* Headers stream that doesn't get locked when the consumer
|
|
695
|
+
* reads the parsed headers. api.ts transfers the obj.getHeadersStream(),
|
|
696
|
+
* and boot-playground-remote.ts copies the streamedResponse.headers.
|
|
697
|
+
* Both streams must be readable when the StreamedPHPResponse is transferred
|
|
698
|
+
* from the worker thread into the service worker.
|
|
695
699
|
*/
|
|
696
|
-
|
|
697
|
-
|
|
700
|
+
Ti(this, Jn);
|
|
701
|
+
/**
|
|
702
|
+
* Headers stream reserved for internal parsing.
|
|
703
|
+
*/
|
|
704
|
+
Ti(this, Qn);
|
|
705
|
+
this.cachedParsedHeaders = null, this.cachedStdoutBytes = null, this.cachedStderrText = null;
|
|
706
|
+
const [s, n] = t.tee();
|
|
707
|
+
Oi(this, Jn, s), Oi(this, Qn, n), this.stdout = r, this.stderr = i, this.exitCode = a;
|
|
698
708
|
}
|
|
699
709
|
/**
|
|
700
710
|
* Creates a StreamedPHPResponse from a buffered PHPResponse.
|
|
@@ -702,43 +712,40 @@ const li = class li {
|
|
|
702
712
|
*/
|
|
703
713
|
static fromPHPResponse(t) {
|
|
704
714
|
const r = new ReadableStream({
|
|
705
|
-
start(
|
|
706
|
-
|
|
715
|
+
start(o) {
|
|
716
|
+
o.enqueue(t.bytes), o.close();
|
|
707
717
|
}
|
|
708
718
|
}), i = [];
|
|
709
|
-
for (const [
|
|
710
|
-
for (const
|
|
711
|
-
i.push(`${
|
|
719
|
+
for (const [o, l] of Object.entries(t.headers))
|
|
720
|
+
for (const p of l)
|
|
721
|
+
i.push(`${o}: ${p}`);
|
|
712
722
|
const a = JSON.stringify({
|
|
713
723
|
status: t.httpStatusCode,
|
|
714
724
|
headers: i
|
|
715
725
|
}), s = new ReadableStream({
|
|
716
|
-
start(
|
|
717
|
-
|
|
726
|
+
start(o) {
|
|
727
|
+
o.enqueue(new TextEncoder().encode(a)), o.close();
|
|
718
728
|
}
|
|
719
729
|
}), n = new ReadableStream({
|
|
720
|
-
start(
|
|
721
|
-
t.errors.length > 0 &&
|
|
730
|
+
start(o) {
|
|
731
|
+
t.errors.length > 0 && o.enqueue(
|
|
722
732
|
new TextEncoder().encode(t.errors)
|
|
723
|
-
),
|
|
733
|
+
), o.close();
|
|
724
734
|
}
|
|
725
|
-
})
|
|
735
|
+
});
|
|
736
|
+
return new pi(
|
|
726
737
|
s,
|
|
727
738
|
r,
|
|
728
739
|
n,
|
|
729
740
|
Promise.resolve(t.exitCode)
|
|
730
741
|
);
|
|
731
|
-
return o.parsedHeaders = Promise.resolve({
|
|
732
|
-
headers: t.headers,
|
|
733
|
-
httpStatusCode: t.httpStatusCode
|
|
734
|
-
}), o;
|
|
735
742
|
}
|
|
736
743
|
/**
|
|
737
744
|
* Creates a StreamedPHPResponse for a given HTTP status code.
|
|
738
745
|
* Shorthand for `StreamedPHPResponse.fromPHPResponse(PHPResponse.forHttpCode(...))`.
|
|
739
746
|
*/
|
|
740
747
|
static forHttpCode(t, r = "") {
|
|
741
|
-
return
|
|
748
|
+
return pi.fromPHPResponse(
|
|
742
749
|
rn.forHttpCode(t, r)
|
|
743
750
|
);
|
|
744
751
|
}
|
|
@@ -747,7 +754,7 @@ const li = class li {
|
|
|
747
754
|
* For parsed headers, use the `headers` property instead.
|
|
748
755
|
*/
|
|
749
756
|
getHeadersStream() {
|
|
750
|
-
return
|
|
757
|
+
return Si(this, Jn);
|
|
751
758
|
}
|
|
752
759
|
/**
|
|
753
760
|
* True if the response is successful (HTTP status code 200-399),
|
|
@@ -807,11 +814,13 @@ const li = class li {
|
|
|
807
814
|
return this.cachedStderrText || (this.cachedStderrText = Lp(this.stderr)), this.cachedStderrText;
|
|
808
815
|
}
|
|
809
816
|
async getParsedHeaders() {
|
|
810
|
-
return this.
|
|
817
|
+
return this.cachedParsedHeaders || (this.cachedParsedHeaders = Cd(
|
|
818
|
+
Si(this, Qn)
|
|
819
|
+
)), await this.cachedParsedHeaders;
|
|
811
820
|
}
|
|
812
821
|
};
|
|
813
|
-
|
|
814
|
-
let On =
|
|
822
|
+
Jn = new WeakMap(), Qn = new WeakMap();
|
|
823
|
+
let On = pi;
|
|
815
824
|
async function Cd(e) {
|
|
816
825
|
const t = await Lp(e);
|
|
817
826
|
let r;
|
|
@@ -918,12 +927,12 @@ class rn {
|
|
|
918
927
|
return new TextDecoder().decode(this.bytes);
|
|
919
928
|
}
|
|
920
929
|
}
|
|
921
|
-
const
|
|
930
|
+
const Ko = "/internal/shared/php.ini";
|
|
922
931
|
var Cp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
923
|
-
function
|
|
932
|
+
function co(e) {
|
|
924
933
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
925
934
|
}
|
|
926
|
-
const { hasOwnProperty:
|
|
935
|
+
const { hasOwnProperty: Ri } = Object.prototype, Np = (e, t = {}) => {
|
|
927
936
|
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;
|
|
928
937
|
const r = t.platform === "win32" ? `\r
|
|
929
938
|
` : `
|
|
@@ -974,37 +983,37 @@ const Dd = (e, t = {}) => {
|
|
|
974
983
|
if (!c)
|
|
975
984
|
continue;
|
|
976
985
|
if (c[1] !== void 0) {
|
|
977
|
-
if (a =
|
|
986
|
+
if (a = Fi(c[1]), a === "__proto__") {
|
|
978
987
|
i = /* @__PURE__ */ Object.create(null);
|
|
979
988
|
continue;
|
|
980
989
|
}
|
|
981
990
|
i = r[a] = r[a] || /* @__PURE__ */ Object.create(null);
|
|
982
991
|
continue;
|
|
983
992
|
}
|
|
984
|
-
const h =
|
|
993
|
+
const h = Fi(c[2]);
|
|
985
994
|
let m;
|
|
986
995
|
t.bracketedArray ? m = h.length > 2 && h.slice(-2) === "[]" : (o[h] = ((o == null ? void 0 : o[h]) || 0) + 1, m = o[h] > 1);
|
|
987
996
|
const g = m ? h.slice(0, -2) : h;
|
|
988
997
|
if (g === "__proto__")
|
|
989
998
|
continue;
|
|
990
|
-
const A = c[3] ?
|
|
991
|
-
m && (
|
|
999
|
+
const A = c[3] ? Fi(c[4]) : !0, y = A === "true" || A === "false" || A === "null" ? JSON.parse(A) : A;
|
|
1000
|
+
m && (Ri.call(i, g) ? Array.isArray(i[g]) || (i[g] = [i[g]]) : i[g] = []), Array.isArray(i[g]) ? i[g].push(y) : i[g] = y;
|
|
992
1001
|
}
|
|
993
1002
|
const l = [];
|
|
994
1003
|
for (const p of Object.keys(r)) {
|
|
995
|
-
if (!
|
|
1004
|
+
if (!Ri.call(r, p) || typeof r[p] != "object" || Array.isArray(r[p]))
|
|
996
1005
|
continue;
|
|
997
1006
|
const c = Dp(p, ".");
|
|
998
1007
|
i = r;
|
|
999
1008
|
const h = c.pop(), m = h.replace(/\\\./g, ".");
|
|
1000
1009
|
for (const g of c)
|
|
1001
|
-
g !== "__proto__" && ((!
|
|
1010
|
+
g !== "__proto__" && ((!Ri.call(i, g) || typeof i[g] != "object") && (i[g] = /* @__PURE__ */ Object.create(null)), i = i[g]);
|
|
1002
1011
|
i === r && m === h || (i[m] = r[p], l.push(p));
|
|
1003
1012
|
}
|
|
1004
1013
|
for (const p of l)
|
|
1005
1014
|
delete r[p];
|
|
1006
1015
|
return r;
|
|
1007
|
-
}, jp = (e) => e.startsWith('"') && e.endsWith('"') || e.startsWith("'") && e.endsWith("'"), or = (e) => typeof e != "string" || e.match(/[=\r\n]/) || e.match(/^\[/) || e.length > 1 && jp(e) || e !== e.trim() ? JSON.stringify(e) : e.split(";").join("\\;").split("#").join("\\#"),
|
|
1016
|
+
}, jp = (e) => e.startsWith('"') && e.endsWith('"') || e.startsWith("'") && e.endsWith("'"), or = (e) => typeof e != "string" || e.match(/[=\r\n]/) || e.match(/^\[/) || e.length > 1 && jp(e) || e !== e.trim() ? JSON.stringify(e) : e.split(";").join("\\;").split("#").join("\\#"), Fi = (e) => {
|
|
1008
1017
|
if (e = (e || "").trim(), jp(e)) {
|
|
1009
1018
|
e.charAt(0) === "'" && (e = e.slice(1, -1));
|
|
1010
1019
|
try {
|
|
@@ -1027,15 +1036,15 @@ const Dd = (e, t = {}) => {
|
|
|
1027
1036
|
}
|
|
1028
1037
|
return e;
|
|
1029
1038
|
};
|
|
1030
|
-
var
|
|
1039
|
+
var Xo = {
|
|
1031
1040
|
parse: Dd,
|
|
1032
1041
|
stringify: Np
|
|
1033
1042
|
};
|
|
1034
1043
|
async function Iv(e, t) {
|
|
1035
|
-
const r =
|
|
1044
|
+
const r = Xo.parse(await e.readFileAsText(Ko));
|
|
1036
1045
|
for (const [i, a] of Object.entries(t))
|
|
1037
1046
|
a == null ? delete r[i] : r[i] = a;
|
|
1038
|
-
await e.writeFile(
|
|
1047
|
+
await e.writeFile(Ko, Xo.stringify(r));
|
|
1039
1048
|
}
|
|
1040
1049
|
function jd(...e) {
|
|
1041
1050
|
const t = new Uint8Array(
|
|
@@ -1059,11 +1068,11 @@ function Ud(e) {
|
|
|
1059
1068
|
});
|
|
1060
1069
|
}
|
|
1061
1070
|
}
|
|
1062
|
-
async function
|
|
1071
|
+
async function uo(e, t) {
|
|
1063
1072
|
return await e.pipeThrough(Ud()).getReader().read().then(({ value: r }) => r);
|
|
1064
1073
|
}
|
|
1065
1074
|
async function Bd(e, t) {
|
|
1066
|
-
return new File([await
|
|
1075
|
+
return new File([await uo(t)], e);
|
|
1067
1076
|
}
|
|
1068
1077
|
function qd(e) {
|
|
1069
1078
|
if (e instanceof ReadableStream)
|
|
@@ -1132,7 +1141,7 @@ class Lr extends File {
|
|
|
1132
1141
|
* @returns File data as an ArrayBuffer.
|
|
1133
1142
|
*/
|
|
1134
1143
|
async arrayBuffer() {
|
|
1135
|
-
return await
|
|
1144
|
+
return await uo(this.stream());
|
|
1136
1145
|
}
|
|
1137
1146
|
}
|
|
1138
1147
|
ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symbol.asyncIterator] = async function* () {
|
|
@@ -1150,7 +1159,7 @@ ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symb
|
|
|
1150
1159
|
}, ReadableStream.prototype.iterate = // @ts-ignore
|
|
1151
1160
|
ReadableStream.prototype[Symbol.asyncIterator]);
|
|
1152
1161
|
const Md = 67324752, Wd = 33639248, zd = 101010256, Hd = 0, Vd = 8;
|
|
1153
|
-
new
|
|
1162
|
+
new es({ concurrency: 10 });
|
|
1154
1163
|
function Zd(e) {
|
|
1155
1164
|
return qd(e).pipeThrough(Gd());
|
|
1156
1165
|
}
|
|
@@ -1160,7 +1169,7 @@ function Gd() {
|
|
|
1160
1169
|
return new TransformStream({
|
|
1161
1170
|
async transform(r, i) {
|
|
1162
1171
|
const a = new Uint8Array(await r.arrayBuffer());
|
|
1163
|
-
let s = await
|
|
1172
|
+
let s = await uo(
|
|
1164
1173
|
new Blob([a]).stream().pipeThrough(new CompressionStream("gzip"))
|
|
1165
1174
|
);
|
|
1166
1175
|
const n = new DataView(s.buffer).getUint32(
|
|
@@ -1241,7 +1250,7 @@ function Xd(e) {
|
|
|
1241
1250
|
const i = new Uint8Array(t);
|
|
1242
1251
|
return i.set(e.comment, 22), i;
|
|
1243
1252
|
}
|
|
1244
|
-
const
|
|
1253
|
+
const ho = [
|
|
1245
1254
|
"8.5",
|
|
1246
1255
|
"8.4",
|
|
1247
1256
|
"8.3",
|
|
@@ -1249,12 +1258,12 @@ const po = [
|
|
|
1249
1258
|
"8.1",
|
|
1250
1259
|
"8.0",
|
|
1251
1260
|
"7.4"
|
|
1252
|
-
], Jd =
|
|
1253
|
-
async function
|
|
1261
|
+
], Jd = ho[0], Lv = ho;
|
|
1262
|
+
async function di(e, t, r, { rmRoot: i = !1 } = {}) {
|
|
1254
1263
|
i && await e.isDir(t) && await e.rmdir(t, { recursive: !0 });
|
|
1255
1264
|
for (const [a, s] of Object.entries(r)) {
|
|
1256
1265
|
const n = Te(t, a);
|
|
1257
|
-
await e.fileExists(
|
|
1266
|
+
await e.fileExists(qa(n)) || await e.mkdir(qa(n)), s instanceof Uint8Array || typeof s == "string" ? await e.writeFile(n, s) : await di(e, n, s);
|
|
1258
1267
|
}
|
|
1259
1268
|
}
|
|
1260
1269
|
/**
|
|
@@ -1264,13 +1273,13 @@ async function ci(e, t, r, { rmRoot: i = !1 } = {}) {
|
|
|
1264
1273
|
* Copyright 2019 Google LLC
|
|
1265
1274
|
* SPDX-License-Identifier: Apache-2.0
|
|
1266
1275
|
*/
|
|
1267
|
-
const Up = Symbol("Comlink.proxy"), Qd = Symbol("Comlink.endpoint"), eh = Symbol("Comlink.releaseProxy"),
|
|
1276
|
+
const Up = Symbol("Comlink.proxy"), Qd = Symbol("Comlink.endpoint"), eh = Symbol("Comlink.releaseProxy"), Ii = Symbol("Comlink.finalizer"), Is = Symbol("Comlink.thrown");
|
|
1268
1277
|
/**
|
|
1269
1278
|
* @license
|
|
1270
1279
|
* Copyright 2019 Google LLC
|
|
1271
1280
|
* SPDX-License-Identifier: Apache-2.0
|
|
1272
1281
|
*/
|
|
1273
|
-
const
|
|
1282
|
+
const Gs = {
|
|
1274
1283
|
RAW: "RAW",
|
|
1275
1284
|
HANDLER: "HANDLER"
|
|
1276
1285
|
}, xt = {
|
|
@@ -1284,13 +1293,13 @@ const Vs = {
|
|
|
1284
1293
|
canHandle: (e) => Bp(e) && e[Up],
|
|
1285
1294
|
serialize(e) {
|
|
1286
1295
|
const { port1: t, port2: r } = new MessageChannel();
|
|
1287
|
-
return
|
|
1296
|
+
return mo(e, t), [r, [r]];
|
|
1288
1297
|
},
|
|
1289
1298
|
deserialize(e) {
|
|
1290
|
-
return e.start(),
|
|
1299
|
+
return e.start(), yo(e);
|
|
1291
1300
|
}
|
|
1292
1301
|
}, rh = {
|
|
1293
|
-
canHandle: (e) => Bp(e) &&
|
|
1302
|
+
canHandle: (e) => Bp(e) && Is in e,
|
|
1294
1303
|
serialize({ value: e }) {
|
|
1295
1304
|
let t;
|
|
1296
1305
|
return e instanceof Error ? t = {
|
|
@@ -1318,7 +1327,7 @@ function nh(e, t) {
|
|
|
1318
1327
|
return !0;
|
|
1319
1328
|
return !1;
|
|
1320
1329
|
}
|
|
1321
|
-
function
|
|
1330
|
+
function mo(e, t = globalThis, r = ["*"], i) {
|
|
1322
1331
|
t.addEventListener("message", function a(s) {
|
|
1323
1332
|
if (!s || !s.data)
|
|
1324
1333
|
return;
|
|
@@ -1354,7 +1363,7 @@ function co(e, t = globalThis, r = ["*"], i) {
|
|
|
1354
1363
|
case xt.ENDPOINT:
|
|
1355
1364
|
{
|
|
1356
1365
|
const { port1: g, port2: A } = new MessageChannel();
|
|
1357
|
-
|
|
1366
|
+
mo(e, A), c = lh(g, [g]);
|
|
1358
1367
|
}
|
|
1359
1368
|
break;
|
|
1360
1369
|
case xt.RELEASE:
|
|
@@ -1364,15 +1373,15 @@ function co(e, t = globalThis, r = ["*"], i) {
|
|
|
1364
1373
|
return;
|
|
1365
1374
|
}
|
|
1366
1375
|
} catch (h) {
|
|
1367
|
-
c = { value: h, [
|
|
1376
|
+
c = { value: h, [Is]: 0 };
|
|
1368
1377
|
}
|
|
1369
|
-
Promise.resolve(c).catch((h) => ({ value: h, [
|
|
1370
|
-
const [m, g] =
|
|
1371
|
-
t.postMessage({ ...m, id: n }, g), o === xt.RELEASE && (t.removeEventListener("message", a), qp(t),
|
|
1378
|
+
Promise.resolve(c).catch((h) => ({ value: h, [Is]: 0 })).then((h) => {
|
|
1379
|
+
const [m, g] = Xs(h);
|
|
1380
|
+
t.postMessage({ ...m, id: n }, g), o === xt.RELEASE && (t.removeEventListener("message", a), qp(t), Ii in e && typeof e[Ii] == "function" && e[Ii]());
|
|
1372
1381
|
}).catch(() => {
|
|
1373
|
-
const [h, m] =
|
|
1382
|
+
const [h, m] = Xs({
|
|
1374
1383
|
value: new TypeError("Unserializable return value"),
|
|
1375
|
-
[
|
|
1384
|
+
[Is]: 0
|
|
1376
1385
|
});
|
|
1377
1386
|
t.postMessage({ ...h, id: n }, m);
|
|
1378
1387
|
}).finally(() => {
|
|
@@ -1385,7 +1394,7 @@ function sh(e) {
|
|
|
1385
1394
|
function qp(e) {
|
|
1386
1395
|
sh(e) && e.close();
|
|
1387
1396
|
}
|
|
1388
|
-
function
|
|
1397
|
+
function yo(e, t) {
|
|
1389
1398
|
const r = /* @__PURE__ */ new Map();
|
|
1390
1399
|
return e.addEventListener("message", function(a) {
|
|
1391
1400
|
const { data: s } = a;
|
|
@@ -1398,9 +1407,9 @@ function uo(e, t) {
|
|
|
1398
1407
|
} finally {
|
|
1399
1408
|
r.delete(s.id);
|
|
1400
1409
|
}
|
|
1401
|
-
}),
|
|
1410
|
+
}), Ma(e, r, [], t);
|
|
1402
1411
|
}
|
|
1403
|
-
function
|
|
1412
|
+
function ys(e) {
|
|
1404
1413
|
if (e)
|
|
1405
1414
|
throw new Error("Proxy has been released and is not useable");
|
|
1406
1415
|
}
|
|
@@ -1411,23 +1420,23 @@ function Mp(e) {
|
|
|
1411
1420
|
qp(e);
|
|
1412
1421
|
});
|
|
1413
1422
|
}
|
|
1414
|
-
const
|
|
1415
|
-
const t = (
|
|
1416
|
-
|
|
1423
|
+
const Ys = /* @__PURE__ */ new WeakMap(), Ks = "FinalizationRegistry" in globalThis && new FinalizationRegistry((e) => {
|
|
1424
|
+
const t = (Ys.get(e) || 0) - 1;
|
|
1425
|
+
Ys.set(e, t), t === 0 && Mp(e);
|
|
1417
1426
|
});
|
|
1418
1427
|
function ih(e, t) {
|
|
1419
|
-
const r = (
|
|
1420
|
-
|
|
1428
|
+
const r = (Ys.get(t) || 0) + 1;
|
|
1429
|
+
Ys.set(t, r), Ks && Ks.register(e, t, e);
|
|
1421
1430
|
}
|
|
1422
1431
|
function ah(e) {
|
|
1423
|
-
|
|
1432
|
+
Ks && Ks.unregister(e);
|
|
1424
1433
|
}
|
|
1425
|
-
function
|
|
1434
|
+
function Ma(e, t, r = [], i = function() {
|
|
1426
1435
|
}) {
|
|
1427
1436
|
let a = !1;
|
|
1428
1437
|
const s = new Proxy(i, {
|
|
1429
1438
|
get(n, o) {
|
|
1430
|
-
if (
|
|
1439
|
+
if (ys(a), o === eh)
|
|
1431
1440
|
return () => {
|
|
1432
1441
|
ah(s), Mp(e), t.clear(), a = !0;
|
|
1433
1442
|
};
|
|
@@ -1440,11 +1449,11 @@ function Ua(e, t, r = [], i = function() {
|
|
|
1440
1449
|
}).then(Er);
|
|
1441
1450
|
return l.then.bind(l);
|
|
1442
1451
|
}
|
|
1443
|
-
return
|
|
1452
|
+
return Ma(e, t, [...r, o]);
|
|
1444
1453
|
},
|
|
1445
1454
|
set(n, o, l) {
|
|
1446
|
-
|
|
1447
|
-
const [p, c] =
|
|
1455
|
+
ys(a);
|
|
1456
|
+
const [p, c] = Xs(l);
|
|
1448
1457
|
return Xr(
|
|
1449
1458
|
e,
|
|
1450
1459
|
t,
|
|
@@ -1457,15 +1466,15 @@ function Ua(e, t, r = [], i = function() {
|
|
|
1457
1466
|
).then(Er);
|
|
1458
1467
|
},
|
|
1459
1468
|
apply(n, o, l) {
|
|
1460
|
-
|
|
1469
|
+
ys(a);
|
|
1461
1470
|
const p = r[r.length - 1];
|
|
1462
1471
|
if (p === Qd)
|
|
1463
1472
|
return Xr(e, t, {
|
|
1464
1473
|
type: xt.ENDPOINT
|
|
1465
1474
|
}).then(Er);
|
|
1466
1475
|
if (p === "bind")
|
|
1467
|
-
return
|
|
1468
|
-
const [c, h] =
|
|
1476
|
+
return Ma(e, t, r.slice(0, -1));
|
|
1477
|
+
const [c, h] = Jo(l);
|
|
1469
1478
|
return Xr(
|
|
1470
1479
|
e,
|
|
1471
1480
|
t,
|
|
@@ -1478,8 +1487,8 @@ function Ua(e, t, r = [], i = function() {
|
|
|
1478
1487
|
).then(Er);
|
|
1479
1488
|
},
|
|
1480
1489
|
construct(n, o) {
|
|
1481
|
-
|
|
1482
|
-
const [l, p] =
|
|
1490
|
+
ys(a);
|
|
1491
|
+
const [l, p] = Jo(o);
|
|
1483
1492
|
return Xr(
|
|
1484
1493
|
e,
|
|
1485
1494
|
t,
|
|
@@ -1497,8 +1506,8 @@ function Ua(e, t, r = [], i = function() {
|
|
|
1497
1506
|
function oh(e) {
|
|
1498
1507
|
return Array.prototype.concat.apply([], e);
|
|
1499
1508
|
}
|
|
1500
|
-
function
|
|
1501
|
-
const t = e.map(
|
|
1509
|
+
function Jo(e) {
|
|
1510
|
+
const t = e.map(Xs);
|
|
1502
1511
|
return [t.map((r) => r[0]), oh(t.map((r) => r[1]))];
|
|
1503
1512
|
}
|
|
1504
1513
|
const Wp = /* @__PURE__ */ new WeakMap();
|
|
@@ -1515,13 +1524,13 @@ function fh(e, t = globalThis, r = "*") {
|
|
|
1515
1524
|
removeEventListener: t.removeEventListener.bind(t)
|
|
1516
1525
|
};
|
|
1517
1526
|
}
|
|
1518
|
-
function
|
|
1527
|
+
function Xs(e) {
|
|
1519
1528
|
for (const [t, r] of Vt)
|
|
1520
1529
|
if (r.canHandle(e)) {
|
|
1521
1530
|
const [i, a] = r.serialize(e);
|
|
1522
1531
|
return [
|
|
1523
1532
|
{
|
|
1524
|
-
type:
|
|
1533
|
+
type: Gs.HANDLER,
|
|
1525
1534
|
name: t,
|
|
1526
1535
|
value: i
|
|
1527
1536
|
},
|
|
@@ -1530,7 +1539,7 @@ function Ys(e) {
|
|
|
1530
1539
|
}
|
|
1531
1540
|
return [
|
|
1532
1541
|
{
|
|
1533
|
-
type:
|
|
1542
|
+
type: Gs.RAW,
|
|
1534
1543
|
value: e
|
|
1535
1544
|
},
|
|
1536
1545
|
Wp.get(e) || []
|
|
@@ -1538,9 +1547,9 @@ function Ys(e) {
|
|
|
1538
1547
|
}
|
|
1539
1548
|
function Er(e) {
|
|
1540
1549
|
switch (e.type) {
|
|
1541
|
-
case
|
|
1550
|
+
case Gs.HANDLER:
|
|
1542
1551
|
return Vt.get(e.name).deserialize(e.value);
|
|
1543
|
-
case
|
|
1552
|
+
case Gs.RAW:
|
|
1544
1553
|
return e.value;
|
|
1545
1554
|
}
|
|
1546
1555
|
}
|
|
@@ -1572,7 +1581,7 @@ function ch(e) {
|
|
|
1572
1581
|
start: e.start && e.start.bind(e)
|
|
1573
1582
|
};
|
|
1574
1583
|
}
|
|
1575
|
-
const
|
|
1584
|
+
const Li = /* @__PURE__ */ new WeakMap();
|
|
1576
1585
|
function uh(e) {
|
|
1577
1586
|
const t = e || process;
|
|
1578
1587
|
if (typeof t.send != "function")
|
|
@@ -1591,11 +1600,11 @@ function uh(e) {
|
|
|
1591
1600
|
},
|
|
1592
1601
|
addEventListener(i, a) {
|
|
1593
1602
|
const s = typeof a == "function" ? (n) => a({ data: n }) : (n) => a.handleEvent({ data: n });
|
|
1594
|
-
|
|
1603
|
+
Li.set(a, s), r.addListener(i, s);
|
|
1595
1604
|
},
|
|
1596
1605
|
removeEventListener(i, a) {
|
|
1597
|
-
const s =
|
|
1598
|
-
s && (
|
|
1606
|
+
const s = Li.get(a);
|
|
1607
|
+
s && (Li.delete(a), r.removeListener(i, s));
|
|
1599
1608
|
},
|
|
1600
1609
|
start() {
|
|
1601
1610
|
}
|
|
@@ -1618,9 +1627,9 @@ const dh = [
|
|
|
1618
1627
|
globalThis.AssertionError,
|
|
1619
1628
|
globalThis.SystemError
|
|
1620
1629
|
].filter(Boolean).map((e) => [e.name, e]), hh = new Map(dh);
|
|
1621
|
-
class
|
|
1630
|
+
class go extends Error {
|
|
1622
1631
|
constructor(t) {
|
|
1623
|
-
super(
|
|
1632
|
+
super(go._prepareSuperMessage(t)), this.name = "NonError";
|
|
1624
1633
|
}
|
|
1625
1634
|
static _prepareSuperMessage(t) {
|
|
1626
1635
|
try {
|
|
@@ -1655,14 +1664,14 @@ const mh = [
|
|
|
1655
1664
|
property: "errors",
|
|
1656
1665
|
enumerable: !1
|
|
1657
1666
|
}
|
|
1658
|
-
],
|
|
1659
|
-
|
|
1667
|
+
], Wa = /* @__PURE__ */ new WeakSet(), yh = (e) => {
|
|
1668
|
+
Wa.add(e);
|
|
1660
1669
|
const t = e.toJSON();
|
|
1661
|
-
return
|
|
1670
|
+
return Wa.delete(e), t;
|
|
1662
1671
|
}, Hp = (e) => {
|
|
1663
1672
|
const t = hh.get(e) ?? Error;
|
|
1664
1673
|
return t === AggregateError ? new t([]) : new t();
|
|
1665
|
-
},
|
|
1674
|
+
}, wo = ({
|
|
1666
1675
|
from: e,
|
|
1667
1676
|
seen: t,
|
|
1668
1677
|
to: r,
|
|
@@ -1672,11 +1681,11 @@ const mh = [
|
|
|
1672
1681
|
useToJSON: n,
|
|
1673
1682
|
serialize: o
|
|
1674
1683
|
}) => {
|
|
1675
|
-
if (r || (Array.isArray(e) ? r = [] : !o &&
|
|
1684
|
+
if (r || (Array.isArray(e) ? r = [] : !o && Qo(e) ? r = Hp(e.name) : r = {}), t.push(e), s >= a)
|
|
1676
1685
|
return r;
|
|
1677
|
-
if (n && typeof e.toJSON == "function" && !
|
|
1686
|
+
if (n && typeof e.toJSON == "function" && !Wa.has(e))
|
|
1678
1687
|
return yh(e);
|
|
1679
|
-
const l = (p) =>
|
|
1688
|
+
const l = (p) => wo({
|
|
1680
1689
|
from: p,
|
|
1681
1690
|
seen: [...t],
|
|
1682
1691
|
forceEnumerable: i,
|
|
@@ -1712,7 +1721,7 @@ const mh = [
|
|
|
1712
1721
|
if (o || r instanceof Error)
|
|
1713
1722
|
for (const { property: p, enumerable: c } of mh)
|
|
1714
1723
|
e[p] !== void 0 && e[p] !== null && Object.defineProperty(r, p, {
|
|
1715
|
-
value:
|
|
1724
|
+
value: Qo(e[p]) || Array.isArray(e[p]) ? l(e[p]) : e[p],
|
|
1716
1725
|
enumerable: i ? !0 : c,
|
|
1717
1726
|
configurable: !0,
|
|
1718
1727
|
writable: !0
|
|
@@ -1721,7 +1730,7 @@ const mh = [
|
|
|
1721
1730
|
};
|
|
1722
1731
|
function gh(e, t = {}) {
|
|
1723
1732
|
const { maxDepth: r = Number.POSITIVE_INFINITY, useToJSON: i = !0 } = t;
|
|
1724
|
-
return typeof e == "object" && e !== null ?
|
|
1733
|
+
return typeof e == "object" && e !== null ? wo({
|
|
1725
1734
|
from: e,
|
|
1726
1735
|
seen: [],
|
|
1727
1736
|
forceEnumerable: !0,
|
|
@@ -1733,16 +1742,16 @@ function gh(e, t = {}) {
|
|
|
1733
1742
|
}
|
|
1734
1743
|
function wh(e, t = {}) {
|
|
1735
1744
|
const { maxDepth: r = Number.POSITIVE_INFINITY } = t;
|
|
1736
|
-
return e instanceof Error ? e : bh(e) ?
|
|
1745
|
+
return e instanceof Error ? e : bh(e) ? wo({
|
|
1737
1746
|
from: e,
|
|
1738
1747
|
seen: [],
|
|
1739
1748
|
to: Hp(e.name),
|
|
1740
1749
|
maxDepth: r,
|
|
1741
1750
|
depth: 0,
|
|
1742
1751
|
serialize: !1
|
|
1743
|
-
}) : new
|
|
1752
|
+
}) : new go(e);
|
|
1744
1753
|
}
|
|
1745
|
-
function
|
|
1754
|
+
function Qo(e) {
|
|
1746
1755
|
return !!e && typeof e == "object" && typeof e.name == "string" && typeof e.message == "string" && typeof e.stack == "string";
|
|
1747
1756
|
}
|
|
1748
1757
|
function bh(e) {
|
|
@@ -1762,7 +1771,7 @@ function Vp(e, t = void 0) {
|
|
|
1762
1771
|
);
|
|
1763
1772
|
else
|
|
1764
1773
|
r = e instanceof Worker ? e : fh(e, t);
|
|
1765
|
-
const a =
|
|
1774
|
+
const a = yo(r), s = Zp(a);
|
|
1766
1775
|
return new Proxy(s, {
|
|
1767
1776
|
get: (n, o) => o === "isConnected" ? async () => {
|
|
1768
1777
|
for (; ; )
|
|
@@ -1779,11 +1788,11 @@ async function _h(e, t) {
|
|
|
1779
1788
|
setTimeout(i, t), e.then(r);
|
|
1780
1789
|
});
|
|
1781
1790
|
}
|
|
1782
|
-
let
|
|
1791
|
+
let el = !1;
|
|
1783
1792
|
function vh() {
|
|
1784
|
-
if (
|
|
1793
|
+
if (el)
|
|
1785
1794
|
return;
|
|
1786
|
-
|
|
1795
|
+
el = !0, Vt.set("EVENT", {
|
|
1787
1796
|
canHandle: (r) => r instanceof CustomEvent,
|
|
1788
1797
|
serialize: (r) => [
|
|
1789
1798
|
{
|
|
@@ -1798,10 +1807,10 @@ function vh() {
|
|
|
1798
1807
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
1799
1808
|
serialize(r) {
|
|
1800
1809
|
const { port1: i, port2: a } = new MessageChannel();
|
|
1801
|
-
return
|
|
1810
|
+
return mo(r, i), [a, [a]];
|
|
1802
1811
|
},
|
|
1803
1812
|
deserialize(r) {
|
|
1804
|
-
return r.start(),
|
|
1813
|
+
return r.start(), yo(r);
|
|
1805
1814
|
}
|
|
1806
1815
|
}), Vt.set("MESSAGE_PORT", {
|
|
1807
1816
|
canHandle: (r) => r instanceof MessagePort,
|
|
@@ -1845,7 +1854,7 @@ function vh() {
|
|
|
1845
1854
|
a
|
|
1846
1855
|
]
|
|
1847
1856
|
];
|
|
1848
|
-
const n =
|
|
1857
|
+
const n = Ci(s), o = Ci(r.stdout), l = Ci(r.stderr);
|
|
1849
1858
|
return [
|
|
1850
1859
|
{
|
|
1851
1860
|
__type: "StreamedPHPResponse",
|
|
@@ -1859,7 +1868,7 @@ function vh() {
|
|
|
1859
1868
|
},
|
|
1860
1869
|
deserialize(r) {
|
|
1861
1870
|
if (r.headers && r.stdout && r.stderr) {
|
|
1862
|
-
const o =
|
|
1871
|
+
const o = tl(
|
|
1863
1872
|
r.exitCodePort
|
|
1864
1873
|
);
|
|
1865
1874
|
return new On(
|
|
@@ -1869,26 +1878,28 @@ function vh() {
|
|
|
1869
1878
|
o
|
|
1870
1879
|
);
|
|
1871
1880
|
}
|
|
1872
|
-
const i =
|
|
1881
|
+
const i = Ni(r.headersPort), a = Ni(r.stdoutPort), s = Ni(r.stderrPort), n = tl(r.exitCodePort);
|
|
1873
1882
|
return new On(i, a, s, n);
|
|
1874
1883
|
}
|
|
1875
1884
|
});
|
|
1876
1885
|
}
|
|
1886
|
+
let bn;
|
|
1877
1887
|
function xh() {
|
|
1878
|
-
|
|
1879
|
-
if (typeof ReadableStream > "u") return !1;
|
|
1880
|
-
const { port1: e } = new MessageChannel(), t = new ReadableStream();
|
|
1881
|
-
e.postMessage(t);
|
|
1888
|
+
if (typeof ReadableStream > "u" && (bn = !1), bn === void 0)
|
|
1882
1889
|
try {
|
|
1883
|
-
e
|
|
1890
|
+
const { port1: e } = new MessageChannel(), t = new ReadableStream();
|
|
1891
|
+
e.postMessage(t, [t]);
|
|
1892
|
+
try {
|
|
1893
|
+
e.close();
|
|
1894
|
+
} catch {
|
|
1895
|
+
}
|
|
1896
|
+
bn = !0;
|
|
1884
1897
|
} catch {
|
|
1898
|
+
bn = !1;
|
|
1885
1899
|
}
|
|
1886
|
-
|
|
1887
|
-
} catch {
|
|
1888
|
-
return !1;
|
|
1889
|
-
}
|
|
1900
|
+
return bn;
|
|
1890
1901
|
}
|
|
1891
|
-
function
|
|
1902
|
+
function Ci(e) {
|
|
1892
1903
|
const { port1: t, port2: r } = new MessageChannel();
|
|
1893
1904
|
return (async () => {
|
|
1894
1905
|
const i = e.getReader();
|
|
@@ -1933,7 +1944,7 @@ function Ri(e) {
|
|
|
1933
1944
|
}
|
|
1934
1945
|
})(), r;
|
|
1935
1946
|
}
|
|
1936
|
-
function
|
|
1947
|
+
function Ni(e) {
|
|
1937
1948
|
return new ReadableStream({
|
|
1938
1949
|
start(t) {
|
|
1939
1950
|
const r = (a) => {
|
|
@@ -2000,7 +2011,7 @@ function kh(e) {
|
|
|
2000
2011
|
}
|
|
2001
2012
|
}), r;
|
|
2002
2013
|
}
|
|
2003
|
-
function
|
|
2014
|
+
function tl(e) {
|
|
2004
2015
|
return new Promise((t, r) => {
|
|
2005
2016
|
const i = (s) => {
|
|
2006
2017
|
const n = s.data;
|
|
@@ -2068,8 +2079,8 @@ function Zp(e) {
|
|
|
2068
2079
|
});
|
|
2069
2080
|
}
|
|
2070
2081
|
BigInt(Number.MAX_SAFE_INTEGER);
|
|
2071
|
-
new
|
|
2072
|
-
new
|
|
2082
|
+
new es({ concurrency: 15 });
|
|
2083
|
+
new es({ concurrency: 10 });
|
|
2073
2084
|
function Sh(e) {
|
|
2074
2085
|
let t = [e];
|
|
2075
2086
|
return {
|
|
@@ -2179,7 +2190,7 @@ class Ke {
|
|
|
2179
2190
|
};
|
|
2180
2191
|
}
|
|
2181
2192
|
}
|
|
2182
|
-
class
|
|
2193
|
+
class dn extends Error {
|
|
2183
2194
|
constructor(t) {
|
|
2184
2195
|
super(t), this.caller = "";
|
|
2185
2196
|
}
|
|
@@ -2193,14 +2204,14 @@ class hn extends Error {
|
|
|
2193
2204
|
};
|
|
2194
2205
|
}
|
|
2195
2206
|
fromJSON(t) {
|
|
2196
|
-
const r = new
|
|
2207
|
+
const r = new dn(t.message);
|
|
2197
2208
|
return r.code = t.code, r.data = t.data, r.caller = t.caller, r.stack = t.stack, r;
|
|
2198
2209
|
}
|
|
2199
2210
|
get isIsomorphicGitError() {
|
|
2200
2211
|
return !0;
|
|
2201
2212
|
}
|
|
2202
2213
|
}
|
|
2203
|
-
class Ee extends
|
|
2214
|
+
class Ee extends dn {
|
|
2204
2215
|
/**
|
|
2205
2216
|
* @param {string} message
|
|
2206
2217
|
*/
|
|
@@ -2211,15 +2222,15 @@ class Ee extends hn {
|
|
|
2211
2222
|
}
|
|
2212
2223
|
}
|
|
2213
2224
|
Ee.code = "InternalError";
|
|
2214
|
-
class
|
|
2225
|
+
class ts extends dn {
|
|
2215
2226
|
/**
|
|
2216
2227
|
* @param {string} filepath
|
|
2217
2228
|
*/
|
|
2218
2229
|
constructor(t) {
|
|
2219
|
-
super(`The filepath "${t}" contains unsafe character sequences`), this.code = this.name =
|
|
2230
|
+
super(`The filepath "${t}" contains unsafe character sequences`), this.code = this.name = ts.code, this.data = { filepath: t };
|
|
2220
2231
|
}
|
|
2221
2232
|
}
|
|
2222
|
-
|
|
2233
|
+
ts.code = "UnsafeFilepathError";
|
|
2223
2234
|
function Kp(e, t) {
|
|
2224
2235
|
return -(e < t) || +(e > t);
|
|
2225
2236
|
}
|
|
@@ -2227,9 +2238,9 @@ function Xp(e, t) {
|
|
|
2227
2238
|
return Kp(e.path, t.path);
|
|
2228
2239
|
}
|
|
2229
2240
|
function Ah(e, t) {
|
|
2230
|
-
return Kp(
|
|
2241
|
+
return Kp(rl(e), rl(t));
|
|
2231
2242
|
}
|
|
2232
|
-
function
|
|
2243
|
+
function rl(e) {
|
|
2233
2244
|
return e.mode === "040000" ? e.path + "/" : e.path;
|
|
2234
2245
|
}
|
|
2235
2246
|
function Jp(e) {
|
|
@@ -2265,7 +2276,7 @@ function $h(e) {
|
|
|
2265
2276
|
s === "40000" && (s = "040000");
|
|
2266
2277
|
const n = Jp(s), o = e.slice(i + 1, a).toString("utf8");
|
|
2267
2278
|
if (o.includes("\\") || o.includes("/"))
|
|
2268
|
-
throw new
|
|
2279
|
+
throw new ts(o);
|
|
2269
2280
|
const l = e.slice(a + 1, a + 21).toString("hex");
|
|
2270
2281
|
r = a + 21, t.push({ mode: s, path: o, oid: l, type: n });
|
|
2271
2282
|
}
|
|
@@ -2282,7 +2293,7 @@ function Rh(e) {
|
|
|
2282
2293
|
function Fh(e) {
|
|
2283
2294
|
return !e.oid && e.sha && (e.oid = e.sha), e.mode = Rh(e.mode), e.type || (e.type = Jp(e.mode)), e;
|
|
2284
2295
|
}
|
|
2285
|
-
class
|
|
2296
|
+
class bo {
|
|
2286
2297
|
constructor(t) {
|
|
2287
2298
|
if (Buffer.isBuffer(t))
|
|
2288
2299
|
this._entries = $h(t);
|
|
@@ -2293,7 +2304,7 @@ class yo {
|
|
|
2293
2304
|
this._entries.sort(Xp);
|
|
2294
2305
|
}
|
|
2295
2306
|
static from(t) {
|
|
2296
|
-
return new
|
|
2307
|
+
return new bo(t);
|
|
2297
2308
|
}
|
|
2298
2309
|
render() {
|
|
2299
2310
|
return this._entries.map((t) => `${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
|
|
@@ -2319,7 +2330,7 @@ class yo {
|
|
|
2319
2330
|
yield t;
|
|
2320
2331
|
}
|
|
2321
2332
|
}
|
|
2322
|
-
function
|
|
2333
|
+
function za({ name: e, email: t, timestamp: r, timezoneOffset: i }) {
|
|
2323
2334
|
return i = Ih(i), `${e} <${t}> ${r} ${i}`;
|
|
2324
2335
|
}
|
|
2325
2336
|
function Ih(e) {
|
|
@@ -2340,7 +2351,7 @@ function rr(e) {
|
|
|
2340
2351
|
return e = e.replace(/\r/g, ""), e = e.replace(/^\n+/, ""), e = e.replace(/\n+$/, "") + `
|
|
2341
2352
|
`, e;
|
|
2342
2353
|
}
|
|
2343
|
-
function
|
|
2354
|
+
function Js(e) {
|
|
2344
2355
|
const [, t, r, i, a] = e.match(
|
|
2345
2356
|
/^(.*) <(.*)> (.*) (.*)$/
|
|
2346
2357
|
);
|
|
@@ -2378,7 +2389,7 @@ class An {
|
|
|
2378
2389
|
return `object ${t.object}
|
|
2379
2390
|
type ${t.type}
|
|
2380
2391
|
tag ${t.tag}
|
|
2381
|
-
tagger ${
|
|
2392
|
+
tagger ${za(t.tagger)}
|
|
2382
2393
|
|
|
2383
2394
|
${t.message}
|
|
2384
2395
|
${t.gpgsig ? t.gpgsig : ""}`;
|
|
@@ -2414,7 +2425,7 @@ ${t.gpgsig ? t.gpgsig : ""}`;
|
|
|
2414
2425
|
const s = a.slice(0, a.indexOf(" ")), n = a.slice(a.indexOf(" ") + 1);
|
|
2415
2426
|
Array.isArray(i[s]) ? i[s].push(n) : i[s] = n;
|
|
2416
2427
|
}
|
|
2417
|
-
return i.tagger && (i.tagger =
|
|
2428
|
+
return i.tagger && (i.tagger = Js(i.tagger)), i.committer && (i.committer = Js(i.committer)), i;
|
|
2418
2429
|
}
|
|
2419
2430
|
withoutSignature() {
|
|
2420
2431
|
const t = rr(this._tag);
|
|
@@ -2446,7 +2457,7 @@ ${t.gpgsig ? t.gpgsig : ""}`;
|
|
|
2446
2457
|
return An.from(n);
|
|
2447
2458
|
}
|
|
2448
2459
|
}
|
|
2449
|
-
function
|
|
2460
|
+
function Di(e) {
|
|
2450
2461
|
return e.trim().split(`
|
|
2451
2462
|
`).map((t) => " " + t).join(`
|
|
2452
2463
|
`) + `
|
|
@@ -2471,7 +2482,7 @@ class bt {
|
|
|
2471
2482
|
static fromPayloadSignature({ payload: t, signature: r }) {
|
|
2472
2483
|
const i = bt.justHeaders(t), a = bt.justMessage(t), s = rr(
|
|
2473
2484
|
i + `
|
|
2474
|
-
gpgsig` +
|
|
2485
|
+
gpgsig` + Di(r) + `
|
|
2475
2486
|
` + a
|
|
2476
2487
|
);
|
|
2477
2488
|
return new bt(s);
|
|
@@ -2516,7 +2527,7 @@ gpgsig` + Ii(r) + `
|
|
|
2516
2527
|
const s = a.slice(0, a.indexOf(" ")), n = a.slice(a.indexOf(" ") + 1);
|
|
2517
2528
|
Array.isArray(i[s]) ? i[s].push(n) : i[s] = n;
|
|
2518
2529
|
}
|
|
2519
|
-
return i.author && (i.author =
|
|
2530
|
+
return i.author && (i.author = Js(i.author)), i.committer && (i.committer = Js(i.committer)), i;
|
|
2520
2531
|
}
|
|
2521
2532
|
static renderHeaders(t) {
|
|
2522
2533
|
let r = "";
|
|
@@ -2530,11 +2541,11 @@ gpgsig` + Ii(r) + `
|
|
|
2530
2541
|
`;
|
|
2531
2542
|
}
|
|
2532
2543
|
const i = t.author;
|
|
2533
|
-
r += `author ${
|
|
2544
|
+
r += `author ${za(i)}
|
|
2534
2545
|
`;
|
|
2535
2546
|
const a = t.committer || t.author;
|
|
2536
|
-
return r += `committer ${
|
|
2537
|
-
`, t.gpgsig && (r += "gpgsig" +
|
|
2547
|
+
return r += `committer ${za(a)}
|
|
2548
|
+
`, t.gpgsig && (r += "gpgsig" + Di(t.gpgsig)), r;
|
|
2538
2549
|
}
|
|
2539
2550
|
static render(t) {
|
|
2540
2551
|
return bt.renderHeaders(t) + `
|
|
@@ -2567,7 +2578,7 @@ gpgsig`)), i = t.slice(
|
|
|
2567
2578
|
let { signature: n } = await r({ payload: a, secretKey: i });
|
|
2568
2579
|
n = rr(n);
|
|
2569
2580
|
const l = bt.justHeaders(t._commit) + `
|
|
2570
|
-
gpgsig` +
|
|
2581
|
+
gpgsig` + Di(n) + `
|
|
2571
2582
|
` + s;
|
|
2572
2583
|
return bt.from(l);
|
|
2573
2584
|
}
|
|
@@ -2612,7 +2623,7 @@ var Qp = {};
|
|
|
2612
2623
|
t.table = i, t.bstr = $, t.buf = C, t.str = E;
|
|
2613
2624
|
});
|
|
2614
2625
|
})(Qp);
|
|
2615
|
-
const Uh = /* @__PURE__ */
|
|
2626
|
+
const Uh = /* @__PURE__ */ co(Qp);
|
|
2616
2627
|
class Bh {
|
|
2617
2628
|
static wrap({ type: t, object: r }) {
|
|
2618
2629
|
return Buffer.concat([
|
|
@@ -2687,21 +2698,21 @@ class Zt {
|
|
|
2687
2698
|
}
|
|
2688
2699
|
}
|
|
2689
2700
|
function qh(e, t) {
|
|
2690
|
-
const r = new Zt(e), i =
|
|
2701
|
+
const r = new Zt(e), i = nl(r);
|
|
2691
2702
|
if (i !== t.byteLength)
|
|
2692
2703
|
throw new Ee(
|
|
2693
2704
|
`applyDelta expected source buffer to be ${i} bytes but the provided buffer was ${t.length} bytes`
|
|
2694
2705
|
);
|
|
2695
|
-
const a =
|
|
2706
|
+
const a = nl(r);
|
|
2696
2707
|
let s;
|
|
2697
|
-
const n =
|
|
2708
|
+
const n = il(r, t);
|
|
2698
2709
|
if (n.byteLength === a)
|
|
2699
2710
|
s = n;
|
|
2700
2711
|
else {
|
|
2701
2712
|
s = Buffer.alloc(a);
|
|
2702
2713
|
const o = new Zt(s);
|
|
2703
2714
|
for (o.copy(n); !r.eof(); )
|
|
2704
|
-
o.copy(
|
|
2715
|
+
o.copy(il(r, t));
|
|
2705
2716
|
const l = o.tell();
|
|
2706
2717
|
if (a !== l)
|
|
2707
2718
|
throw new Ee(
|
|
@@ -2710,24 +2721,24 @@ function qh(e, t) {
|
|
|
2710
2721
|
}
|
|
2711
2722
|
return s;
|
|
2712
2723
|
}
|
|
2713
|
-
function
|
|
2724
|
+
function nl(e) {
|
|
2714
2725
|
let t = 0, r = 0, i = null;
|
|
2715
2726
|
do
|
|
2716
2727
|
i = e.readUInt8(), t |= (i & 127) << r, r += 7;
|
|
2717
2728
|
while (i & 128);
|
|
2718
2729
|
return t;
|
|
2719
2730
|
}
|
|
2720
|
-
function
|
|
2731
|
+
function sl(e, t, r) {
|
|
2721
2732
|
let i = 0, a = 0;
|
|
2722
2733
|
for (; r--; )
|
|
2723
2734
|
t & 1 && (i |= e.readUInt8() << a), t >>= 1, a += 8;
|
|
2724
2735
|
return i;
|
|
2725
2736
|
}
|
|
2726
|
-
function
|
|
2737
|
+
function il(e, t) {
|
|
2727
2738
|
const r = e.readUInt8(), i = 128, a = 15, s = 112;
|
|
2728
2739
|
if (r & i) {
|
|
2729
|
-
const n =
|
|
2730
|
-
let o =
|
|
2740
|
+
const n = sl(e, r & a, 4);
|
|
2741
|
+
let o = sl(e, (r & s) >> 4, 3);
|
|
2731
2742
|
return o === 0 && (o = 65536), t.slice(n, n + o);
|
|
2732
2743
|
} else
|
|
2733
2744
|
return e.slice(r);
|
|
@@ -2784,37 +2795,37 @@ var ar = {};
|
|
|
2784
2795
|
s ? (e.Buf8 = Uint8Array, e.Buf16 = Uint16Array, e.Buf32 = Int32Array, e.assign(e, i)) : (e.Buf8 = Array, e.Buf16 = Array, e.Buf32 = Array, e.assign(e, a));
|
|
2785
2796
|
}, e.setTyped(t);
|
|
2786
2797
|
})(ar);
|
|
2787
|
-
var
|
|
2788
|
-
function
|
|
2798
|
+
var rs = {}, Qt = {}, hn = {}, Mh = ar, Wh = 4, al = 0, ol = 1, zh = 2;
|
|
2799
|
+
function mn(e) {
|
|
2789
2800
|
for (var t = e.length; --t >= 0; )
|
|
2790
2801
|
e[t] = 0;
|
|
2791
2802
|
}
|
|
2792
|
-
var Hh = 0, ec = 1, Vh = 2, Zh = 3, Gh = 258,
|
|
2803
|
+
var Hh = 0, ec = 1, Vh = 2, Zh = 3, Gh = 258, _o = 29, ns = 256, Dn = ns + 1 + _o, nn = 30, vo = 19, tc = 2 * Dn + 1, Or = 15, ji = 16, Yh = 7, xo = 256, rc = 16, nc = 17, sc = 18, Ha = (
|
|
2793
2804
|
/* extra bits for each length code */
|
|
2794
2805
|
[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]
|
|
2795
|
-
),
|
|
2806
|
+
), Ls = (
|
|
2796
2807
|
/* extra bits for each distance code */
|
|
2797
2808
|
[0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]
|
|
2798
2809
|
), Kh = (
|
|
2799
2810
|
/* extra bits for each bit length code */
|
|
2800
2811
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
|
|
2801
2812
|
), ic = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Xh = 512, nr = new Array((Dn + 2) * 2);
|
|
2802
|
-
|
|
2813
|
+
mn(nr);
|
|
2803
2814
|
var $n = new Array(nn * 2);
|
|
2804
|
-
|
|
2815
|
+
mn($n);
|
|
2805
2816
|
var jn = new Array(Xh);
|
|
2806
|
-
|
|
2817
|
+
mn(jn);
|
|
2807
2818
|
var Un = new Array(Gh - Zh + 1);
|
|
2808
|
-
|
|
2809
|
-
var
|
|
2810
|
-
|
|
2811
|
-
var
|
|
2812
|
-
|
|
2813
|
-
function
|
|
2819
|
+
mn(Un);
|
|
2820
|
+
var ko = new Array(_o);
|
|
2821
|
+
mn(ko);
|
|
2822
|
+
var Qs = new Array(nn);
|
|
2823
|
+
mn(Qs);
|
|
2824
|
+
function Ui(e, t, r, i, a) {
|
|
2814
2825
|
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;
|
|
2815
2826
|
}
|
|
2816
2827
|
var ac, oc, lc;
|
|
2817
|
-
function
|
|
2828
|
+
function Bi(e, t) {
|
|
2818
2829
|
this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
|
|
2819
2830
|
}
|
|
2820
2831
|
function fc(e) {
|
|
@@ -2824,7 +2835,7 @@ function Bn(e, t) {
|
|
|
2824
2835
|
e.pending_buf[e.pending++] = t & 255, e.pending_buf[e.pending++] = t >>> 8 & 255;
|
|
2825
2836
|
}
|
|
2826
2837
|
function ht(e, t, r) {
|
|
2827
|
-
e.bi_valid >
|
|
2838
|
+
e.bi_valid > ji - r ? (e.bi_buf |= t << e.bi_valid & 65535, Bn(e, e.bi_buf), e.bi_buf = t >> ji - e.bi_valid, e.bi_valid += r - ji) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += r);
|
|
2828
2839
|
}
|
|
2829
2840
|
function Gt(e, t, r) {
|
|
2830
2841
|
ht(
|
|
@@ -2872,14 +2883,14 @@ function cc(e, t, r) {
|
|
|
2872
2883
|
}
|
|
2873
2884
|
function em() {
|
|
2874
2885
|
var e, t, r, i, a, s = new Array(Or + 1);
|
|
2875
|
-
for (r = 0, i = 0; i <
|
|
2876
|
-
for (
|
|
2886
|
+
for (r = 0, i = 0; i < _o - 1; i++)
|
|
2887
|
+
for (ko[i] = r, e = 0; e < 1 << Ha[i]; e++)
|
|
2877
2888
|
Un[r++] = i;
|
|
2878
2889
|
for (Un[r - 1] = i, a = 0, i = 0; i < 16; i++)
|
|
2879
|
-
for (
|
|
2890
|
+
for (Qs[i] = a, e = 0; e < 1 << Ls[i]; e++)
|
|
2880
2891
|
jn[a++] = i;
|
|
2881
2892
|
for (a >>= 7; i < nn; i++)
|
|
2882
|
-
for (
|
|
2893
|
+
for (Qs[i] = a << 7, e = 0; e < 1 << Ls[i] - 7; e++)
|
|
2883
2894
|
jn[256 + a++] = i;
|
|
2884
2895
|
for (t = 0; t <= Or; t++)
|
|
2885
2896
|
s[t] = 0;
|
|
@@ -2893,7 +2904,7 @@ function em() {
|
|
|
2893
2904
|
nr[e * 2 + 1] = 8, e++, s[8]++;
|
|
2894
2905
|
for (cc(nr, Dn + 1, s), e = 0; e < nn; e++)
|
|
2895
2906
|
$n[e * 2 + 1] = 5, $n[e * 2] = pc(e, 5);
|
|
2896
|
-
ac = new
|
|
2907
|
+
ac = new Ui(nr, Ha, ns + 1, Dn, Or), oc = new Ui($n, Ls, 0, nn, Or), lc = new Ui(new Array(0), Kh, 0, vo, Yh);
|
|
2897
2908
|
}
|
|
2898
2909
|
function uc(e) {
|
|
2899
2910
|
var t;
|
|
@@ -2901,9 +2912,9 @@ function uc(e) {
|
|
|
2901
2912
|
e.dyn_ltree[t * 2] = 0;
|
|
2902
2913
|
for (t = 0; t < nn; t++)
|
|
2903
2914
|
e.dyn_dtree[t * 2] = 0;
|
|
2904
|
-
for (t = 0; t <
|
|
2915
|
+
for (t = 0; t < vo; t++)
|
|
2905
2916
|
e.bl_tree[t * 2] = 0;
|
|
2906
|
-
e.dyn_ltree[
|
|
2917
|
+
e.dyn_ltree[xo * 2] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
|
|
2907
2918
|
}
|
|
2908
2919
|
function dc(e) {
|
|
2909
2920
|
e.bi_valid > 8 ? Bn(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
@@ -2911,31 +2922,31 @@ function dc(e) {
|
|
|
2911
2922
|
function tm(e, t, r, i) {
|
|
2912
2923
|
dc(e), Bn(e, r), Bn(e, ~r), Mh.arraySet(e.pending_buf, e.window, t, r, e.pending), e.pending += r;
|
|
2913
2924
|
}
|
|
2914
|
-
function
|
|
2925
|
+
function ll(e, t, r, i) {
|
|
2915
2926
|
var a = t * 2, s = r * 2;
|
|
2916
2927
|
return e[a] < e[s] || e[a] === e[s] && i[t] <= i[r];
|
|
2917
2928
|
}
|
|
2918
|
-
function
|
|
2919
|
-
for (var i = e.heap[r], a = r << 1; a <= e.heap_len && (a < e.heap_len &&
|
|
2929
|
+
function qi(e, t, r) {
|
|
2930
|
+
for (var i = e.heap[r], a = r << 1; a <= e.heap_len && (a < e.heap_len && ll(t, e.heap[a + 1], e.heap[a], e.depth) && a++, !ll(t, i, e.heap[a], e.depth)); )
|
|
2920
2931
|
e.heap[r] = e.heap[a], r = a, a <<= 1;
|
|
2921
2932
|
e.heap[r] = i;
|
|
2922
2933
|
}
|
|
2923
|
-
function
|
|
2934
|
+
function fl(e, t, r) {
|
|
2924
2935
|
var i, a, s = 0, n, o;
|
|
2925
2936
|
if (e.last_lit !== 0)
|
|
2926
2937
|
do
|
|
2927
|
-
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 ? Gt(e, a, t) : (n = Un[a], Gt(e, n +
|
|
2938
|
+
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 ? Gt(e, a, t) : (n = Un[a], Gt(e, n + ns + 1, t), o = Ha[n], o !== 0 && (a -= ko[n], ht(e, a, o)), i--, n = fc(i), Gt(e, n, r), o = Ls[n], o !== 0 && (i -= Qs[n], ht(e, i, o)));
|
|
2928
2939
|
while (s < e.last_lit);
|
|
2929
|
-
Gt(e,
|
|
2940
|
+
Gt(e, xo, t);
|
|
2930
2941
|
}
|
|
2931
|
-
function
|
|
2942
|
+
function Va(e, t) {
|
|
2932
2943
|
var r = t.dyn_tree, i = t.stat_desc.static_tree, a = t.stat_desc.has_stree, s = t.stat_desc.elems, n, o, l = -1, p;
|
|
2933
2944
|
for (e.heap_len = 0, e.heap_max = tc, n = 0; n < s; n++)
|
|
2934
2945
|
r[n * 2] !== 0 ? (e.heap[++e.heap_len] = l = n, e.depth[n] = 0) : r[n * 2 + 1] = 0;
|
|
2935
2946
|
for (; e.heap_len < 2; )
|
|
2936
2947
|
p = e.heap[++e.heap_len] = l < 2 ? ++l : 0, r[p * 2] = 1, e.depth[p] = 0, e.opt_len--, a && (e.static_len -= i[p * 2 + 1]);
|
|
2937
2948
|
for (t.max_code = l, n = e.heap_len >> 1; n >= 1; n--)
|
|
2938
|
-
|
|
2949
|
+
qi(e, r, n);
|
|
2939
2950
|
p = s;
|
|
2940
2951
|
do
|
|
2941
2952
|
n = e.heap[
|
|
@@ -2944,7 +2955,7 @@ function Wa(e, t) {
|
|
|
2944
2955
|
], e.heap[
|
|
2945
2956
|
1
|
|
2946
2957
|
/*SMALLEST*/
|
|
2947
|
-
] = e.heap[e.heap_len--],
|
|
2958
|
+
] = e.heap[e.heap_len--], qi(
|
|
2948
2959
|
e,
|
|
2949
2960
|
r,
|
|
2950
2961
|
1
|
|
@@ -2955,7 +2966,7 @@ function Wa(e, t) {
|
|
|
2955
2966
|
], 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[
|
|
2956
2967
|
1
|
|
2957
2968
|
/*SMALLEST*/
|
|
2958
|
-
] = p++,
|
|
2969
|
+
] = p++, qi(
|
|
2959
2970
|
e,
|
|
2960
2971
|
r,
|
|
2961
2972
|
1
|
|
@@ -2967,12 +2978,12 @@ function Wa(e, t) {
|
|
|
2967
2978
|
/*SMALLEST*/
|
|
2968
2979
|
], Qh(e, t), cc(r, l, e.bl_count);
|
|
2969
2980
|
}
|
|
2970
|
-
function
|
|
2981
|
+
function pl(e, t, r) {
|
|
2971
2982
|
var i, a = -1, s, n = t[0 * 2 + 1], o = 0, l = 7, p = 4;
|
|
2972
2983
|
for (n === 0 && (l = 138, p = 3), t[(r + 1) * 2 + 1] = 65535, i = 0; i <= r; i++)
|
|
2973
2984
|
s = n, n = t[(i + 1) * 2 + 1], !(++o < l && s === n) && (o < p ? e.bl_tree[s * 2] += o : s !== 0 ? (s !== a && e.bl_tree[s * 2]++, e.bl_tree[rc * 2]++) : o <= 10 ? e.bl_tree[nc * 2]++ : e.bl_tree[sc * 2]++, o = 0, a = s, n === 0 ? (l = 138, p = 3) : s === n ? (l = 6, p = 3) : (l = 7, p = 4));
|
|
2974
2985
|
}
|
|
2975
|
-
function
|
|
2986
|
+
function cl(e, t, r) {
|
|
2976
2987
|
var i, a = -1, s, n = t[0 * 2 + 1], o = 0, l = 7, p = 4;
|
|
2977
2988
|
for (n === 0 && (l = 138, p = 3), i = 0; i <= r; i++)
|
|
2978
2989
|
if (s = n, n = t[(i + 1) * 2 + 1], !(++o < l && s === n)) {
|
|
@@ -2986,7 +2997,7 @@ function pl(e, t, r) {
|
|
|
2986
2997
|
}
|
|
2987
2998
|
function rm(e) {
|
|
2988
2999
|
var t;
|
|
2989
|
-
for (
|
|
3000
|
+
for (pl(e, e.dyn_ltree, e.l_desc.max_code), pl(e, e.dyn_dtree, e.d_desc.max_code), Va(e, e.bl_desc), t = vo - 1; t >= 3 && e.bl_tree[ic[t] * 2 + 1] === 0; t--)
|
|
2990
3001
|
;
|
|
2991
3002
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
2992
3003
|
}
|
|
@@ -2994,42 +3005,42 @@ function nm(e, t, r, i) {
|
|
|
2994
3005
|
var a;
|
|
2995
3006
|
for (ht(e, t - 257, 5), ht(e, r - 1, 5), ht(e, i - 4, 4), a = 0; a < i; a++)
|
|
2996
3007
|
ht(e, e.bl_tree[ic[a] * 2 + 1], 3);
|
|
2997
|
-
|
|
3008
|
+
cl(e, e.dyn_ltree, t - 1), cl(e, e.dyn_dtree, r - 1);
|
|
2998
3009
|
}
|
|
2999
3010
|
function sm(e) {
|
|
3000
3011
|
var t = 4093624447, r;
|
|
3001
3012
|
for (r = 0; r <= 31; r++, t >>>= 1)
|
|
3002
3013
|
if (t & 1 && e.dyn_ltree[r * 2] !== 0)
|
|
3003
|
-
return
|
|
3014
|
+
return al;
|
|
3004
3015
|
if (e.dyn_ltree[9 * 2] !== 0 || e.dyn_ltree[10 * 2] !== 0 || e.dyn_ltree[13 * 2] !== 0)
|
|
3005
|
-
return
|
|
3006
|
-
for (r = 32; r <
|
|
3016
|
+
return ol;
|
|
3017
|
+
for (r = 32; r < ns; r++)
|
|
3007
3018
|
if (e.dyn_ltree[r * 2] !== 0)
|
|
3008
|
-
return
|
|
3009
|
-
return
|
|
3019
|
+
return ol;
|
|
3020
|
+
return al;
|
|
3010
3021
|
}
|
|
3011
|
-
var
|
|
3022
|
+
var ul = !1;
|
|
3012
3023
|
function im(e) {
|
|
3013
|
-
|
|
3024
|
+
ul || (em(), ul = !0), e.l_desc = new Bi(e.dyn_ltree, ac), e.d_desc = new Bi(e.dyn_dtree, oc), e.bl_desc = new Bi(e.bl_tree, lc), e.bi_buf = 0, e.bi_valid = 0, uc(e);
|
|
3014
3025
|
}
|
|
3015
3026
|
function hc(e, t, r, i) {
|
|
3016
3027
|
ht(e, (Hh << 1) + (i ? 1 : 0), 3), tm(e, t, r);
|
|
3017
3028
|
}
|
|
3018
3029
|
function am(e) {
|
|
3019
|
-
ht(e, ec << 1, 3), Gt(e,
|
|
3030
|
+
ht(e, ec << 1, 3), Gt(e, xo, nr), Jh(e);
|
|
3020
3031
|
}
|
|
3021
3032
|
function om(e, t, r, i) {
|
|
3022
3033
|
var a, s, n = 0;
|
|
3023
|
-
e.level > 0 ? (e.strm.data_type === zh && (e.strm.data_type = sm(e)),
|
|
3034
|
+
e.level > 0 ? (e.strm.data_type === zh && (e.strm.data_type = sm(e)), Va(e, e.l_desc), Va(e, e.d_desc), n = rm(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 ? hc(e, t, r, i) : e.strategy === Wh || s === a ? (ht(e, (ec << 1) + (i ? 1 : 0), 3), fl(e, nr, $n)) : (ht(e, (Vh << 1) + (i ? 1 : 0), 3), nm(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, n + 1), fl(e, e.dyn_ltree, e.dyn_dtree)), uc(e), i && dc(e);
|
|
3024
3035
|
}
|
|
3025
3036
|
function lm(e, t, r) {
|
|
3026
|
-
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[(Un[r] +
|
|
3037
|
+
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[(Un[r] + ns + 1) * 2]++, e.dyn_dtree[fc(t) * 2]++), e.last_lit === e.lit_bufsize - 1;
|
|
3027
3038
|
}
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3039
|
+
hn._tr_init = im;
|
|
3040
|
+
hn._tr_stored_block = hc;
|
|
3041
|
+
hn._tr_flush_block = om;
|
|
3042
|
+
hn._tr_tally = lm;
|
|
3043
|
+
hn._tr_align = am;
|
|
3033
3044
|
function fm(e, t, r, i) {
|
|
3034
3045
|
for (var a = e & 65535 | 0, s = e >>> 16 & 65535 | 0, n = 0; r !== 0; ) {
|
|
3035
3046
|
n = r > 2e3 ? 2e3 : r, r -= n;
|
|
@@ -3058,7 +3069,7 @@ function um(e, t, r, i) {
|
|
|
3058
3069
|
e = e >>> 8 ^ a[(e ^ t[n]) & 255];
|
|
3059
3070
|
return e ^ -1;
|
|
3060
3071
|
}
|
|
3061
|
-
var yc = um,
|
|
3072
|
+
var yc = um, Po = {
|
|
3062
3073
|
2: "need dictionary",
|
|
3063
3074
|
/* Z_NEED_DICT 2 */
|
|
3064
3075
|
1: "stream end",
|
|
@@ -3077,11 +3088,11 @@ var yc = um, vo = {
|
|
|
3077
3088
|
/* Z_BUF_ERROR (-5) */
|
|
3078
3089
|
"-6": "incompatible version"
|
|
3079
3090
|
/* Z_VERSION_ERROR (-6) */
|
|
3080
|
-
}, at = ar, At =
|
|
3091
|
+
}, at = ar, At = hn, gc = mc, ur = yc, dm = Po, qr = 0, hm = 1, mm = 3, vr = 4, dl = 5, Yt = 0, hl = 1, $t = -2, ym = -3, Mi = -5, gm = -1, wm = 1, gs = 2, bm = 3, _m = 4, vm = 0, xm = 2, hi = 8, km = 9, Pm = 15, Em = 8, Sm = 29, Tm = 256, Za = Tm + 1 + Sm, Om = 30, Am = 19, $m = 2 * Za + 1, Rm = 15, ge = 3, br = 258, jt = br + ge + 1, Fm = 32, mi = 42, Ga = 69, Cs = 73, Ns = 91, Ds = 103, Ar = 113, Tn = 666, ze = 1, ss = 2, Cr = 3, yn = 4, Im = 3;
|
|
3081
3092
|
function _r(e, t) {
|
|
3082
3093
|
return e.msg = dm[t], t;
|
|
3083
3094
|
}
|
|
3084
|
-
function
|
|
3095
|
+
function ml(e) {
|
|
3085
3096
|
return (e << 1) - (e > 4 ? 9 : 0);
|
|
3086
3097
|
}
|
|
3087
3098
|
function wr(e) {
|
|
@@ -3158,9 +3169,9 @@ function Cm(e, t) {
|
|
|
3158
3169
|
if ((e.strstart === 0 || e.strstart >= i) && (e.lookahead = e.strstart - i, e.strstart = i, Qe(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - jt && (Qe(e, !1), e.strm.avail_out === 0))
|
|
3159
3170
|
return ze;
|
|
3160
3171
|
}
|
|
3161
|
-
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr :
|
|
3172
|
+
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr : yn) : (e.strstart > e.block_start && (Qe(e, !1), e.strm.avail_out === 0), ze);
|
|
3162
3173
|
}
|
|
3163
|
-
function
|
|
3174
|
+
function Wi(e, t) {
|
|
3164
3175
|
for (var r, i; ; ) {
|
|
3165
3176
|
if (e.lookahead < jt) {
|
|
3166
3177
|
if (Nr(e), e.lookahead < jt && t === qr)
|
|
@@ -3182,7 +3193,7 @@ function Ui(e, t) {
|
|
|
3182
3193
|
if (i && (Qe(e, !1), e.strm.avail_out === 0))
|
|
3183
3194
|
return ze;
|
|
3184
3195
|
}
|
|
3185
|
-
return e.insert = e.strstart < ge - 1 ? e.strstart : ge - 1, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr :
|
|
3196
|
+
return e.insert = e.strstart < ge - 1 ? e.strstart : ge - 1, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr : yn) : e.last_lit && (Qe(e, !1), e.strm.avail_out === 0) ? ze : ss;
|
|
3186
3197
|
}
|
|
3187
3198
|
function zr(e, t) {
|
|
3188
3199
|
for (var r, i, a; ; ) {
|
|
@@ -3205,7 +3216,7 @@ function zr(e, t) {
|
|
|
3205
3216
|
} else
|
|
3206
3217
|
e.match_available = 1, e.strstart++, e.lookahead--;
|
|
3207
3218
|
}
|
|
3208
|
-
return e.match_available && (i = At._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < ge - 1 ? e.strstart : ge - 1, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr :
|
|
3219
|
+
return e.match_available && (i = At._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < ge - 1 ? e.strstart : ge - 1, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr : yn) : e.last_lit && (Qe(e, !1), e.strm.avail_out === 0) ? ze : ss;
|
|
3209
3220
|
}
|
|
3210
3221
|
function Nm(e, t) {
|
|
3211
3222
|
for (var r, i, a, s, n = e.window; ; ) {
|
|
@@ -3225,7 +3236,7 @@ function Nm(e, t) {
|
|
|
3225
3236
|
if (e.match_length >= ge ? (r = At._tr_tally(e, 1, e.match_length - ge), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (r = At._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), r && (Qe(e, !1), e.strm.avail_out === 0))
|
|
3226
3237
|
return ze;
|
|
3227
3238
|
}
|
|
3228
|
-
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr :
|
|
3239
|
+
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr : yn) : e.last_lit && (Qe(e, !1), e.strm.avail_out === 0) ? ze : ss;
|
|
3229
3240
|
}
|
|
3230
3241
|
function Dm(e, t) {
|
|
3231
3242
|
for (var r; ; ) {
|
|
@@ -3237,7 +3248,7 @@ function Dm(e, t) {
|
|
|
3237
3248
|
if (e.match_length = 0, r = At._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, r && (Qe(e, !1), e.strm.avail_out === 0))
|
|
3238
3249
|
return ze;
|
|
3239
3250
|
}
|
|
3240
|
-
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr :
|
|
3251
|
+
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr : yn) : e.last_lit && (Qe(e, !1), e.strm.avail_out === 0) ? ze : ss;
|
|
3241
3252
|
}
|
|
3242
3253
|
function qt(e, t, r, i, a) {
|
|
3243
3254
|
this.good_length = e, this.max_lazy = t, this.nice_length = r, this.max_chain = i, this.func = a;
|
|
@@ -3247,11 +3258,11 @@ en = [
|
|
|
3247
3258
|
/* good lazy nice chain */
|
|
3248
3259
|
new qt(0, 0, 0, 0, Cm),
|
|
3249
3260
|
/* 0 store only */
|
|
3250
|
-
new qt(4, 4, 8, 4,
|
|
3261
|
+
new qt(4, 4, 8, 4, Wi),
|
|
3251
3262
|
/* 1 max speed, no lazy matches */
|
|
3252
|
-
new qt(4, 5, 16, 8,
|
|
3263
|
+
new qt(4, 5, 16, 8, Wi),
|
|
3253
3264
|
/* 2 */
|
|
3254
|
-
new qt(4, 6, 32, 32,
|
|
3265
|
+
new qt(4, 6, 32, 32, Wi),
|
|
3255
3266
|
/* 3 */
|
|
3256
3267
|
new qt(4, 4, 16, 16, zr),
|
|
3257
3268
|
/* 4 lazy matches */
|
|
@@ -3270,11 +3281,11 @@ function jm(e) {
|
|
|
3270
3281
|
e.window_size = 2 * e.w_size, wr(e.head), e.max_lazy_match = en[e.level].max_lazy, e.good_match = en[e.level].good_length, e.nice_match = en[e.level].nice_length, e.max_chain_length = en[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;
|
|
3271
3282
|
}
|
|
3272
3283
|
function Um() {
|
|
3273
|
-
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 =
|
|
3284
|
+
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 = hi, 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($m * 2), this.dyn_dtree = new at.Buf16((2 * Om + 1) * 2), this.bl_tree = new at.Buf16((2 * Am + 1) * 2), wr(this.dyn_ltree), wr(this.dyn_dtree), wr(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new at.Buf16(Rm + 1), this.heap = new at.Buf16(2 * Za + 1), wr(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new at.Buf16(2 * Za + 1), wr(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
3274
3285
|
}
|
|
3275
3286
|
function bc(e) {
|
|
3276
3287
|
var t;
|
|
3277
|
-
return !e || !e.state ? _r(e, $t) : (e.total_in = e.total_out = 0, e.data_type = xm, t = e.state, t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ?
|
|
3288
|
+
return !e || !e.state ? _r(e, $t) : (e.total_in = e.total_out = 0, e.data_type = xm, t = e.state, t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? mi : Ar, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = qr, At._tr_init(t), Yt);
|
|
3278
3289
|
}
|
|
3279
3290
|
function _c(e) {
|
|
3280
3291
|
var t = bc(e);
|
|
@@ -3287,39 +3298,39 @@ function vc(e, t, r, i, a, s) {
|
|
|
3287
3298
|
if (!e)
|
|
3288
3299
|
return $t;
|
|
3289
3300
|
var n = 1;
|
|
3290
|
-
if (t === gm && (t = 6), i < 0 ? (n = 0, i = -i) : i > 15 && (n = 2, i -= 16), a < 1 || a > km || r !==
|
|
3301
|
+
if (t === gm && (t = 6), i < 0 ? (n = 0, i = -i) : i > 15 && (n = 2, i -= 16), a < 1 || a > km || r !== hi || i < 8 || i > 15 || t < 0 || t > 9 || s < 0 || s > _m)
|
|
3291
3302
|
return _r(e, $t);
|
|
3292
3303
|
i === 8 && (i = 9);
|
|
3293
3304
|
var o = new Um();
|
|
3294
3305
|
return e.state = o, o.strm = e, o.wrap = n, o.gzhead = null, o.w_bits = i, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = a + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~((o.hash_bits + ge - 1) / ge), o.window = new at.Buf8(o.w_size * 2), o.head = new at.Buf16(o.hash_size), o.prev = new at.Buf16(o.w_size), o.lit_bufsize = 1 << a + 6, o.pending_buf_size = o.lit_bufsize * 4, o.pending_buf = new at.Buf8(o.pending_buf_size), o.d_buf = 1 * o.lit_bufsize, o.l_buf = 3 * o.lit_bufsize, o.level = t, o.strategy = s, o.method = r, _c(e);
|
|
3295
3306
|
}
|
|
3296
3307
|
function qm(e, t) {
|
|
3297
|
-
return vc(e, t,
|
|
3308
|
+
return vc(e, t, hi, Pm, Em, vm);
|
|
3298
3309
|
}
|
|
3299
3310
|
function Mm(e, t) {
|
|
3300
3311
|
var r, i, a, s;
|
|
3301
|
-
if (!e || !e.state || t >
|
|
3312
|
+
if (!e || !e.state || t > dl || t < 0)
|
|
3302
3313
|
return e ? _r(e, $t) : $t;
|
|
3303
3314
|
if (i = e.state, !e.output || !e.input && e.avail_in !== 0 || i.status === Tn && t !== vr)
|
|
3304
|
-
return _r(e, e.avail_out === 0 ?
|
|
3305
|
-
if (i.strm = e, r = i.last_flush, i.last_flush = t, i.status ===
|
|
3315
|
+
return _r(e, e.avail_out === 0 ? Mi : $t);
|
|
3316
|
+
if (i.strm = e, r = i.last_flush, i.last_flush = t, i.status === mi)
|
|
3306
3317
|
if (i.wrap === 2)
|
|
3307
3318
|
e.adler = 0, Pe(i, 31), Pe(i, 139), Pe(i, 8), i.gzhead ? (Pe(
|
|
3308
3319
|
i,
|
|
3309
3320
|
(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)
|
|
3310
|
-
), Pe(i, i.gzhead.time & 255), Pe(i, i.gzhead.time >> 8 & 255), Pe(i, i.gzhead.time >> 16 & 255), Pe(i, i.gzhead.time >> 24 & 255), Pe(i, i.level === 9 ? 2 : i.strategy >=
|
|
3321
|
+
), Pe(i, i.gzhead.time & 255), Pe(i, i.gzhead.time >> 8 & 255), Pe(i, i.gzhead.time >> 16 & 255), Pe(i, i.gzhead.time >> 24 & 255), Pe(i, i.level === 9 ? 2 : i.strategy >= gs || i.level < 2 ? 4 : 0), Pe(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (Pe(i, i.gzhead.extra.length & 255), Pe(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = ur(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = Ga) : (Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, i.level === 9 ? 2 : i.strategy >= gs || i.level < 2 ? 4 : 0), Pe(i, Im), i.status = Ar);
|
|
3311
3322
|
else {
|
|
3312
|
-
var n =
|
|
3313
|
-
i.strategy >=
|
|
3323
|
+
var n = hi + (i.w_bits - 8 << 4) << 8, o = -1;
|
|
3324
|
+
i.strategy >= gs || i.level < 2 ? o = 0 : i.level < 6 ? o = 1 : i.level === 6 ? o = 2 : o = 3, n |= o << 6, i.strstart !== 0 && (n |= Fm), n += 31 - n % 31, i.status = Ar, _n(i, n), i.strstart !== 0 && (_n(i, e.adler >>> 16), _n(i, e.adler & 65535)), e.adler = 1;
|
|
3314
3325
|
}
|
|
3315
|
-
if (i.status ===
|
|
3326
|
+
if (i.status === Ga)
|
|
3316
3327
|
if (i.gzhead.extra) {
|
|
3317
3328
|
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)); )
|
|
3318
3329
|
Pe(i, i.gzhead.extra[i.gzindex] & 255), i.gzindex++;
|
|
3319
|
-
i.gzhead.hcrc && i.pending > a && (e.adler = ur(e.adler, i.pending_buf, i.pending - a, a)), i.gzindex === i.gzhead.extra.length && (i.gzindex = 0, i.status =
|
|
3330
|
+
i.gzhead.hcrc && i.pending > a && (e.adler = ur(e.adler, i.pending_buf, i.pending - a, a)), i.gzindex === i.gzhead.extra.length && (i.gzindex = 0, i.status = Cs);
|
|
3320
3331
|
} else
|
|
3321
|
-
i.status =
|
|
3322
|
-
if (i.status ===
|
|
3332
|
+
i.status = Cs;
|
|
3333
|
+
if (i.status === Cs)
|
|
3323
3334
|
if (i.gzhead.name) {
|
|
3324
3335
|
a = i.pending;
|
|
3325
3336
|
do {
|
|
@@ -3329,10 +3340,10 @@ function Mm(e, t) {
|
|
|
3329
3340
|
}
|
|
3330
3341
|
i.gzindex < i.gzhead.name.length ? s = i.gzhead.name.charCodeAt(i.gzindex++) & 255 : s = 0, Pe(i, s);
|
|
3331
3342
|
} while (s !== 0);
|
|
3332
|
-
i.gzhead.hcrc && i.pending > a && (e.adler = ur(e.adler, i.pending_buf, i.pending - a, a)), s === 0 && (i.gzindex = 0, i.status =
|
|
3343
|
+
i.gzhead.hcrc && i.pending > a && (e.adler = ur(e.adler, i.pending_buf, i.pending - a, a)), s === 0 && (i.gzindex = 0, i.status = Ns);
|
|
3333
3344
|
} else
|
|
3334
|
-
i.status =
|
|
3335
|
-
if (i.status ===
|
|
3345
|
+
i.status = Ns;
|
|
3346
|
+
if (i.status === Ns)
|
|
3336
3347
|
if (i.gzhead.comment) {
|
|
3337
3348
|
a = i.pending;
|
|
3338
3349
|
do {
|
|
@@ -3342,32 +3353,32 @@ function Mm(e, t) {
|
|
|
3342
3353
|
}
|
|
3343
3354
|
i.gzindex < i.gzhead.comment.length ? s = i.gzhead.comment.charCodeAt(i.gzindex++) & 255 : s = 0, Pe(i, s);
|
|
3344
3355
|
} while (s !== 0);
|
|
3345
|
-
i.gzhead.hcrc && i.pending > a && (e.adler = ur(e.adler, i.pending_buf, i.pending - a, a)), s === 0 && (i.status =
|
|
3356
|
+
i.gzhead.hcrc && i.pending > a && (e.adler = ur(e.adler, i.pending_buf, i.pending - a, a)), s === 0 && (i.status = Ds);
|
|
3346
3357
|
} else
|
|
3347
|
-
i.status =
|
|
3348
|
-
if (i.status ===
|
|
3358
|
+
i.status = Ds;
|
|
3359
|
+
if (i.status === Ds && (i.gzhead.hcrc ? (i.pending + 2 > i.pending_buf_size && dr(e), i.pending + 2 <= i.pending_buf_size && (Pe(i, e.adler & 255), Pe(i, e.adler >> 8 & 255), e.adler = 0, i.status = Ar)) : i.status = Ar), i.pending !== 0) {
|
|
3349
3360
|
if (dr(e), e.avail_out === 0)
|
|
3350
3361
|
return i.last_flush = -1, Yt;
|
|
3351
|
-
} else if (e.avail_in === 0 &&
|
|
3352
|
-
return _r(e,
|
|
3362
|
+
} else if (e.avail_in === 0 && ml(t) <= ml(r) && t !== vr)
|
|
3363
|
+
return _r(e, Mi);
|
|
3353
3364
|
if (i.status === Tn && e.avail_in !== 0)
|
|
3354
|
-
return _r(e,
|
|
3365
|
+
return _r(e, Mi);
|
|
3355
3366
|
if (e.avail_in !== 0 || i.lookahead !== 0 || t !== qr && i.status !== Tn) {
|
|
3356
|
-
var l = i.strategy ===
|
|
3357
|
-
if ((l === Cr || l ===
|
|
3367
|
+
var l = i.strategy === gs ? Dm(i, t) : i.strategy === bm ? Nm(i, t) : en[i.level].func(i, t);
|
|
3368
|
+
if ((l === Cr || l === yn) && (i.status = Tn), l === ze || l === Cr)
|
|
3358
3369
|
return e.avail_out === 0 && (i.last_flush = -1), Yt;
|
|
3359
|
-
if (l ===
|
|
3370
|
+
if (l === ss && (t === hm ? At._tr_align(i) : t !== dl && (At._tr_stored_block(i, 0, 0, !1), t === mm && (wr(i.head), i.lookahead === 0 && (i.strstart = 0, i.block_start = 0, i.insert = 0))), dr(e), e.avail_out === 0))
|
|
3360
3371
|
return i.last_flush = -1, Yt;
|
|
3361
3372
|
}
|
|
3362
|
-
return t !== vr ? Yt : i.wrap <= 0 ?
|
|
3373
|
+
return t !== vr ? Yt : i.wrap <= 0 ? hl : (i.wrap === 2 ? (Pe(i, e.adler & 255), Pe(i, e.adler >> 8 & 255), Pe(i, e.adler >> 16 & 255), Pe(i, e.adler >> 24 & 255), Pe(i, e.total_in & 255), Pe(i, e.total_in >> 8 & 255), Pe(i, e.total_in >> 16 & 255), Pe(i, e.total_in >> 24 & 255)) : (_n(i, e.adler >>> 16), _n(i, e.adler & 65535)), dr(e), i.wrap > 0 && (i.wrap = -i.wrap), i.pending !== 0 ? Yt : hl);
|
|
3363
3374
|
}
|
|
3364
3375
|
function Wm(e) {
|
|
3365
3376
|
var t;
|
|
3366
|
-
return !e || !e.state ? $t : (t = e.state.status, t !==
|
|
3377
|
+
return !e || !e.state ? $t : (t = e.state.status, t !== mi && t !== Ga && t !== Cs && t !== Ns && t !== Ds && t !== Ar && t !== Tn ? _r(e, $t) : (e.state = null, t === Ar ? _r(e, ym) : Yt));
|
|
3367
3378
|
}
|
|
3368
3379
|
function zm(e, t) {
|
|
3369
3380
|
var r = t.length, i, a, s, n, o, l, p, c;
|
|
3370
|
-
if (!e || !e.state || (i = e.state, n = i.wrap, n === 2 || n === 1 && i.status !==
|
|
3381
|
+
if (!e || !e.state || (i = e.state, n = i.wrap, n === 2 || n === 1 && i.status !== mi || i.lookahead))
|
|
3371
3382
|
return $t;
|
|
3372
3383
|
for (n === 1 && (e.adler = gc(e.adler, t, r, 0)), i.wrap = 0, r >= i.w_size && (n === 0 && (wr(i.head), i.strstart = 0, i.block_start = 0, i.insert = 0), c = new at.Buf8(i.w_size), at.arraySet(c, t, r - i.w_size, i.w_size, 0), t = c, r = i.w_size), o = e.avail_in, l = e.next_in, p = e.input, e.avail_in = r, e.next_in = 0, e.input = t, Nr(i); i.lookahead >= ge; ) {
|
|
3373
3384
|
a = i.strstart, s = i.lookahead - (ge - 1);
|
|
@@ -3387,7 +3398,7 @@ Qt.deflate = Mm;
|
|
|
3387
3398
|
Qt.deflateEnd = Wm;
|
|
3388
3399
|
Qt.deflateSetDictionary = zm;
|
|
3389
3400
|
Qt.deflateInfo = "pako deflate (from Nodeca project)";
|
|
3390
|
-
var Mr = {},
|
|
3401
|
+
var Mr = {}, yi = ar, xc = !0, kc = !0;
|
|
3391
3402
|
try {
|
|
3392
3403
|
String.fromCharCode.apply(null, [0]);
|
|
3393
3404
|
} catch {
|
|
@@ -3398,7 +3409,7 @@ try {
|
|
|
3398
3409
|
} catch {
|
|
3399
3410
|
kc = !1;
|
|
3400
3411
|
}
|
|
3401
|
-
var qn = new
|
|
3412
|
+
var qn = new yi.Buf8(256);
|
|
3402
3413
|
for (var lr = 0; lr < 256; lr++)
|
|
3403
3414
|
qn[lr] = lr >= 252 ? 6 : lr >= 248 ? 5 : lr >= 240 ? 4 : lr >= 224 ? 3 : lr >= 192 ? 2 : 1;
|
|
3404
3415
|
qn[254] = qn[254] = 1;
|
|
@@ -3406,13 +3417,13 @@ Mr.string2buf = function(e) {
|
|
|
3406
3417
|
var t, r, i, a, s, n = e.length, o = 0;
|
|
3407
3418
|
for (a = 0; a < n; a++)
|
|
3408
3419
|
r = e.charCodeAt(a), (r & 64512) === 55296 && a + 1 < n && (i = e.charCodeAt(a + 1), (i & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (i - 56320), a++)), o += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4;
|
|
3409
|
-
for (t = new
|
|
3420
|
+
for (t = new yi.Buf8(o), s = 0, a = 0; s < o; a++)
|
|
3410
3421
|
r = e.charCodeAt(a), (r & 64512) === 55296 && a + 1 < n && (i = e.charCodeAt(a + 1), (i & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (i - 56320), a++)), r < 128 ? t[s++] = r : r < 2048 ? (t[s++] = 192 | r >>> 6, t[s++] = 128 | r & 63) : r < 65536 ? (t[s++] = 224 | r >>> 12, t[s++] = 128 | r >>> 6 & 63, t[s++] = 128 | r & 63) : (t[s++] = 240 | r >>> 18, t[s++] = 128 | r >>> 12 & 63, t[s++] = 128 | r >>> 6 & 63, t[s++] = 128 | r & 63);
|
|
3411
3422
|
return t;
|
|
3412
3423
|
};
|
|
3413
3424
|
function Pc(e, t) {
|
|
3414
3425
|
if (t < 65534 && (e.subarray && kc || !e.subarray && xc))
|
|
3415
|
-
return String.fromCharCode.apply(null,
|
|
3426
|
+
return String.fromCharCode.apply(null, yi.shrinkBuf(e, t));
|
|
3416
3427
|
for (var r = "", i = 0; i < t; i++)
|
|
3417
3428
|
r += String.fromCharCode(e[i]);
|
|
3418
3429
|
return r;
|
|
@@ -3421,7 +3432,7 @@ Mr.buf2binstring = function(e) {
|
|
|
3421
3432
|
return Pc(e, e.length);
|
|
3422
3433
|
};
|
|
3423
3434
|
Mr.binstring2buf = function(e) {
|
|
3424
|
-
for (var t = new
|
|
3435
|
+
for (var t = new yi.Buf8(e.length), r = 0, i = t.length; r < i; r++)
|
|
3425
3436
|
t[r] = e.charCodeAt(r);
|
|
3426
3437
|
return t;
|
|
3427
3438
|
};
|
|
@@ -3455,7 +3466,7 @@ Mr.utf8border = function(e, t) {
|
|
|
3455
3466
|
function Hm() {
|
|
3456
3467
|
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;
|
|
3457
3468
|
}
|
|
3458
|
-
var Ec = Hm, Rn = Qt, Fn = ar,
|
|
3469
|
+
var Ec = Hm, Rn = Qt, Fn = ar, Ya = Mr, Ka = Po, Vm = Ec, Sc = Object.prototype.toString, Zm = 0, zi = 4, sn = 0, yl = 1, gl = 2, Gm = -1, Ym = 0, Km = 8;
|
|
3459
3470
|
function Dr(e) {
|
|
3460
3471
|
if (!(this instanceof Dr)) return new Dr(e);
|
|
3461
3472
|
this.options = Fn.assign({
|
|
@@ -3478,11 +3489,11 @@ function Dr(e) {
|
|
|
3478
3489
|
t.strategy
|
|
3479
3490
|
);
|
|
3480
3491
|
if (r !== sn)
|
|
3481
|
-
throw new Error(
|
|
3492
|
+
throw new Error(Ka[r]);
|
|
3482
3493
|
if (t.header && Rn.deflateSetHeader(this.strm, t.header), t.dictionary) {
|
|
3483
3494
|
var i;
|
|
3484
|
-
if (typeof t.dictionary == "string" ? i =
|
|
3485
|
-
throw new Error(
|
|
3495
|
+
if (typeof t.dictionary == "string" ? i = Ya.string2buf(t.dictionary) : Sc.call(t.dictionary) === "[object ArrayBuffer]" ? i = new Uint8Array(t.dictionary) : i = t.dictionary, r = Rn.deflateSetDictionary(this.strm, i), r !== sn)
|
|
3496
|
+
throw new Error(Ka[r]);
|
|
3486
3497
|
this._dict_set = !0;
|
|
3487
3498
|
}
|
|
3488
3499
|
}
|
|
@@ -3490,13 +3501,13 @@ Dr.prototype.push = function(e, t) {
|
|
|
3490
3501
|
var r = this.strm, i = this.options.chunkSize, a, s;
|
|
3491
3502
|
if (this.ended)
|
|
3492
3503
|
return !1;
|
|
3493
|
-
s = t === ~~t ? t : t === !0 ?
|
|
3504
|
+
s = t === ~~t ? t : t === !0 ? zi : Zm, typeof e == "string" ? r.input = Ya.string2buf(e) : Sc.call(e) === "[object ArrayBuffer]" ? r.input = new Uint8Array(e) : r.input = e, r.next_in = 0, r.avail_in = r.input.length;
|
|
3494
3505
|
do {
|
|
3495
|
-
if (r.avail_out === 0 && (r.output = new Fn.Buf8(i), r.next_out = 0, r.avail_out = i), a = Rn.deflate(r, s), a !==
|
|
3506
|
+
if (r.avail_out === 0 && (r.output = new Fn.Buf8(i), r.next_out = 0, r.avail_out = i), a = Rn.deflate(r, s), a !== yl && a !== sn)
|
|
3496
3507
|
return this.onEnd(a), this.ended = !0, !1;
|
|
3497
|
-
(r.avail_out === 0 || r.avail_in === 0 && (s ===
|
|
3498
|
-
} while ((r.avail_in > 0 || r.avail_out === 0) && a !==
|
|
3499
|
-
return s ===
|
|
3508
|
+
(r.avail_out === 0 || r.avail_in === 0 && (s === zi || s === gl)) && (this.options.to === "string" ? this.onData(Ya.buf2binstring(Fn.shrinkBuf(r.output, r.next_out))) : this.onData(Fn.shrinkBuf(r.output, r.next_out)));
|
|
3509
|
+
} while ((r.avail_in > 0 || r.avail_out === 0) && a !== yl);
|
|
3510
|
+
return s === zi ? (a = Rn.deflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === sn) : (s === gl && (this.onEnd(sn), r.avail_out = 0), !0);
|
|
3500
3511
|
};
|
|
3501
3512
|
Dr.prototype.onData = function(e) {
|
|
3502
3513
|
this.chunks.push(e);
|
|
@@ -3504,23 +3515,23 @@ Dr.prototype.onData = function(e) {
|
|
|
3504
3515
|
Dr.prototype.onEnd = function(e) {
|
|
3505
3516
|
e === sn && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = Fn.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
3506
3517
|
};
|
|
3507
|
-
function
|
|
3518
|
+
function Eo(e, t) {
|
|
3508
3519
|
var r = new Dr(t);
|
|
3509
3520
|
if (r.push(e, !0), r.err)
|
|
3510
|
-
throw r.msg ||
|
|
3521
|
+
throw r.msg || Ka[r.err];
|
|
3511
3522
|
return r.result;
|
|
3512
3523
|
}
|
|
3513
3524
|
function Xm(e, t) {
|
|
3514
|
-
return t = t || {}, t.raw = !0,
|
|
3525
|
+
return t = t || {}, t.raw = !0, Eo(e, t);
|
|
3515
3526
|
}
|
|
3516
3527
|
function Jm(e, t) {
|
|
3517
|
-
return t = t || {}, t.gzip = !0,
|
|
3528
|
+
return t = t || {}, t.gzip = !0, Eo(e, t);
|
|
3518
3529
|
}
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
var
|
|
3530
|
+
rs.Deflate = Dr;
|
|
3531
|
+
rs.deflate = Eo;
|
|
3532
|
+
rs.deflateRaw = Xm;
|
|
3533
|
+
rs.gzip = Jm;
|
|
3534
|
+
var is = {}, Ut = {}, ws = 30, Qm = 12, ey = function(t, r) {
|
|
3524
3535
|
var i, a, s, n, o, l, p, c, h, m, g, A, y, w, b, O, P, L, $, C, E, T, F, k, S;
|
|
3525
3536
|
i = t.state, a = t.next_in, k = t.input, s = a + (t.avail_in - 5), n = t.next_out, S = t.output, o = n - (r - t.avail_out), l = n + (t.avail_out - 257), p = i.dmax, c = i.wsize, h = i.whave, m = i.wnext, g = i.window, A = i.hold, y = i.bits, w = i.lencode, b = i.distcode, O = (1 << i.lenbits) - 1, P = (1 << i.distbits) - 1;
|
|
3526
3537
|
e:
|
|
@@ -3536,12 +3547,12 @@ var ns = {}, Ut = {}, ys = 30, Qm = 12, ey = function(t, r) {
|
|
|
3536
3547
|
for (; ; ) {
|
|
3537
3548
|
if ($ = L >>> 24, A >>>= $, y -= $, $ = L >>> 16 & 255, $ & 16) {
|
|
3538
3549
|
if (E = L & 65535, $ &= 15, y < $ && (A += k[a++] << y, y += 8, y < $ && (A += k[a++] << y, y += 8)), E += A & (1 << $) - 1, E > p) {
|
|
3539
|
-
t.msg = "invalid distance too far back", i.mode =
|
|
3550
|
+
t.msg = "invalid distance too far back", i.mode = ws;
|
|
3540
3551
|
break e;
|
|
3541
3552
|
}
|
|
3542
3553
|
if (A >>>= $, y -= $, $ = n - o, E > $) {
|
|
3543
3554
|
if ($ = E - $, $ > h && i.sane) {
|
|
3544
|
-
t.msg = "invalid distance too far back", i.mode =
|
|
3555
|
+
t.msg = "invalid distance too far back", i.mode = ws;
|
|
3545
3556
|
break e;
|
|
3546
3557
|
}
|
|
3547
3558
|
if (T = 0, F = g, m === 0) {
|
|
@@ -3584,7 +3595,7 @@ var ns = {}, Ut = {}, ys = 30, Qm = 12, ey = function(t, r) {
|
|
|
3584
3595
|
C && (S[n++] = S[T++], C > 1 && (S[n++] = S[T++]));
|
|
3585
3596
|
}
|
|
3586
3597
|
} else if ($ & 64) {
|
|
3587
|
-
t.msg = "invalid distance code", i.mode =
|
|
3598
|
+
t.msg = "invalid distance code", i.mode = ws;
|
|
3588
3599
|
break e;
|
|
3589
3600
|
} else {
|
|
3590
3601
|
L = b[(L & 65535) + (A & (1 << $) - 1)];
|
|
@@ -3597,7 +3608,7 @@ var ns = {}, Ut = {}, ys = 30, Qm = 12, ey = function(t, r) {
|
|
|
3597
3608
|
i.mode = Qm;
|
|
3598
3609
|
break e;
|
|
3599
3610
|
} else {
|
|
3600
|
-
t.msg = "invalid literal/length code", i.mode =
|
|
3611
|
+
t.msg = "invalid literal/length code", i.mode = ws;
|
|
3601
3612
|
break e;
|
|
3602
3613
|
}
|
|
3603
3614
|
else {
|
|
@@ -3608,7 +3619,7 @@ var ns = {}, Ut = {}, ys = 30, Qm = 12, ey = function(t, r) {
|
|
|
3608
3619
|
}
|
|
3609
3620
|
} while (a < s && n < l);
|
|
3610
3621
|
C = y >> 3, a -= C, y -= C << 3, A &= (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 < l ? 257 + (l - n) : 257 - (n - l), i.hold = A, i.bits = y;
|
|
3611
|
-
},
|
|
3622
|
+
}, wl = ar, Hr = 15, bl = 852, _l = 592, vl = 0, Hi = 1, xl = 2, ty = [
|
|
3612
3623
|
/* Length codes 257..285 base */
|
|
3613
3624
|
3,
|
|
3614
3625
|
4,
|
|
@@ -3743,7 +3754,7 @@ var ns = {}, Ut = {}, ys = 30, Qm = 12, ey = function(t, r) {
|
|
|
3743
3754
|
64,
|
|
3744
3755
|
64
|
|
3745
3756
|
], iy = function(t, r, i, a, s, n, o, l) {
|
|
3746
|
-
var p = l.bits, c = 0, h = 0, m = 0, g = 0, A = 0, y = 0, w = 0, b = 0, O = 0, P = 0, L, $, C, E, T, F = null, k = 0, S, N = new
|
|
3757
|
+
var p = l.bits, c = 0, h = 0, m = 0, g = 0, A = 0, y = 0, w = 0, b = 0, O = 0, P = 0, L, $, C, E, T, F = null, k = 0, S, N = new wl.Buf16(Hr + 1), I = new wl.Buf16(Hr + 1), U = null, q = 0, W, X, V;
|
|
3747
3758
|
for (c = 0; c <= Hr; c++)
|
|
3748
3759
|
N[c] = 0;
|
|
3749
3760
|
for (h = 0; h < a; h++)
|
|
@@ -3757,13 +3768,13 @@ var ns = {}, Ut = {}, ys = 30, Qm = 12, ey = function(t, r) {
|
|
|
3757
3768
|
for (A < m && (A = m), b = 1, c = 1; c <= Hr; c++)
|
|
3758
3769
|
if (b <<= 1, b -= N[c], b < 0)
|
|
3759
3770
|
return -1;
|
|
3760
|
-
if (b > 0 && (t ===
|
|
3771
|
+
if (b > 0 && (t === vl || g !== 1))
|
|
3761
3772
|
return -1;
|
|
3762
3773
|
for (I[1] = 0, c = 1; c < Hr; c++)
|
|
3763
3774
|
I[c + 1] = I[c] + N[c];
|
|
3764
3775
|
for (h = 0; h < a; h++)
|
|
3765
3776
|
r[i + h] !== 0 && (o[I[r[i + h]]++] = h);
|
|
3766
|
-
if (t ===
|
|
3777
|
+
if (t === vl ? (F = U = o, S = 19) : t === Hi ? (F = ty, k -= 257, U = ry, q -= 257, S = 256) : (F = ny, U = sy, S = -1), P = 0, h = 0, c = m, T = n, y = A, w = 0, C = -1, O = 1 << A, E = O - 1, t === Hi && O > bl || t === xl && O > _l)
|
|
3767
3778
|
return 1;
|
|
3768
3779
|
for (; ; ) {
|
|
3769
3780
|
W = c - w, o[h] < S ? (X = 0, V = o[h]) : o[h] > S ? (X = U[q + o[h]], V = F[k + o[h]]) : (X = 96, V = 0), L = 1 << c - w, $ = 1 << y, m = $;
|
|
@@ -3780,14 +3791,14 @@ var ns = {}, Ut = {}, ys = 30, Qm = 12, ey = function(t, r) {
|
|
|
3780
3791
|
if (c > A && (P & E) !== C) {
|
|
3781
3792
|
for (w === 0 && (w = A), T += m, y = c - w, b = 1 << y; y + w < g && (b -= N[y + w], !(b <= 0)); )
|
|
3782
3793
|
y++, b <<= 1;
|
|
3783
|
-
if (O += 1 << y, t ===
|
|
3794
|
+
if (O += 1 << y, t === Hi && O > bl || t === xl && O > _l)
|
|
3784
3795
|
return 1;
|
|
3785
3796
|
C = P & E, s[C] = A << 24 | y << 16 | T - n | 0;
|
|
3786
3797
|
}
|
|
3787
3798
|
}
|
|
3788
3799
|
return P !== 0 && (s[T + P] = c - w << 24 | 64 << 16 | 0), l.bits = A, 0;
|
|
3789
|
-
}, kt = ar,
|
|
3790
|
-
function
|
|
3800
|
+
}, kt = ar, Xa = mc, Mt = yc, ay = ey, In = iy, oy = 0, Tc = 1, Oc = 2, kl = 4, ly = 5, bs = 6, jr = 0, fy = 1, py = 2, Rt = -2, Ac = -3, $c = -4, cy = -5, Pl = 8, Rc = 1, El = 2, Sl = 3, Tl = 4, Ol = 5, Al = 6, $l = 7, Rl = 8, Fl = 9, Il = 10, ei = 11, tr = 12, Vi = 13, Ll = 14, Zi = 15, Cl = 16, Nl = 17, Dl = 18, jl = 19, _s = 20, vs = 21, Ul = 22, Bl = 23, ql = 24, Ml = 25, Wl = 26, Gi = 27, zl = 28, Hl = 29, Ne = 30, Fc = 31, uy = 32, dy = 852, hy = 592, my = 15, yy = my;
|
|
3801
|
+
function Vl(e) {
|
|
3791
3802
|
return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
|
|
3792
3803
|
}
|
|
3793
3804
|
function gy() {
|
|
@@ -3812,11 +3823,11 @@ function Nc(e, t) {
|
|
|
3812
3823
|
function wy(e) {
|
|
3813
3824
|
return Nc(e, yy);
|
|
3814
3825
|
}
|
|
3815
|
-
var
|
|
3826
|
+
var Zl = !0, Yi, Ki;
|
|
3816
3827
|
function by(e) {
|
|
3817
|
-
if (
|
|
3828
|
+
if (Zl) {
|
|
3818
3829
|
var t;
|
|
3819
|
-
for (
|
|
3830
|
+
for (Yi = new kt.Buf32(512), Ki = new kt.Buf32(32), t = 0; t < 144; )
|
|
3820
3831
|
e.lens[t++] = 8;
|
|
3821
3832
|
for (; t < 256; )
|
|
3822
3833
|
e.lens[t++] = 9;
|
|
@@ -3824,11 +3835,11 @@ function by(e) {
|
|
|
3824
3835
|
e.lens[t++] = 7;
|
|
3825
3836
|
for (; t < 288; )
|
|
3826
3837
|
e.lens[t++] = 8;
|
|
3827
|
-
for (In(Tc, e.lens, 0, 288,
|
|
3838
|
+
for (In(Tc, e.lens, 0, 288, Yi, 0, e.work, { bits: 9 }), t = 0; t < 32; )
|
|
3828
3839
|
e.lens[t++] = 5;
|
|
3829
|
-
In(Oc, e.lens, 0, 32,
|
|
3840
|
+
In(Oc, e.lens, 0, 32, Ki, 0, e.work, { bits: 5 }), Zl = !1;
|
|
3830
3841
|
}
|
|
3831
|
-
e.lencode =
|
|
3842
|
+
e.lencode = Yi, e.lenbits = 9, e.distcode = Ki, e.distbits = 5;
|
|
3832
3843
|
}
|
|
3833
3844
|
function Dc(e, t, r, i) {
|
|
3834
3845
|
var a, s = e.state;
|
|
@@ -3841,13 +3852,13 @@ function _y(e, t) {
|
|
|
3841
3852
|
);
|
|
3842
3853
|
if (!e || !e.state || !e.output || !e.input && e.avail_in !== 0)
|
|
3843
3854
|
return Rt;
|
|
3844
|
-
r = e.state, r.mode === tr && (r.mode =
|
|
3855
|
+
r = e.state, r.mode === tr && (r.mode = Vi), n = e.next_out, a = e.output, l = e.avail_out, s = e.next_in, i = e.input, o = e.avail_in, p = r.hold, c = r.bits, h = o, m = l, T = jr;
|
|
3845
3856
|
e:
|
|
3846
3857
|
for (; ; )
|
|
3847
3858
|
switch (r.mode) {
|
|
3848
3859
|
case Rc:
|
|
3849
3860
|
if (r.wrap === 0) {
|
|
3850
|
-
r.mode =
|
|
3861
|
+
r.mode = Vi;
|
|
3851
3862
|
break;
|
|
3852
3863
|
}
|
|
3853
3864
|
for (; c < 16; ) {
|
|
@@ -3856,7 +3867,7 @@ function _y(e, t) {
|
|
|
3856
3867
|
o--, p += i[s++] << c, c += 8;
|
|
3857
3868
|
}
|
|
3858
3869
|
if (r.wrap & 2 && p === 35615) {
|
|
3859
|
-
r.check = 0, F[0] = p & 255, F[1] = p >>> 8 & 255, r.check = Mt(r.check, F, 2, 0), p = 0, c = 0, r.mode =
|
|
3870
|
+
r.check = 0, F[0] = p & 255, F[1] = p >>> 8 & 255, r.check = Mt(r.check, F, 2, 0), p = 0, c = 0, r.mode = El;
|
|
3860
3871
|
break;
|
|
3861
3872
|
}
|
|
3862
3873
|
if (r.flags = 0, r.head && (r.head.done = !1), !(r.wrap & 1) || /* check if zlib header allowed */
|
|
@@ -3864,7 +3875,7 @@ function _y(e, t) {
|
|
|
3864
3875
|
e.msg = "incorrect header check", r.mode = Ne;
|
|
3865
3876
|
break;
|
|
3866
3877
|
}
|
|
3867
|
-
if ((p & 15) !==
|
|
3878
|
+
if ((p & 15) !== Pl) {
|
|
3868
3879
|
e.msg = "unknown compression method", r.mode = Ne;
|
|
3869
3880
|
break;
|
|
3870
3881
|
}
|
|
@@ -3874,15 +3885,15 @@ function _y(e, t) {
|
|
|
3874
3885
|
e.msg = "invalid window size", r.mode = Ne;
|
|
3875
3886
|
break;
|
|
3876
3887
|
}
|
|
3877
|
-
r.dmax = 1 << E, e.adler = r.check = 1, r.mode = p & 512 ?
|
|
3888
|
+
r.dmax = 1 << E, e.adler = r.check = 1, r.mode = p & 512 ? Il : tr, p = 0, c = 0;
|
|
3878
3889
|
break;
|
|
3879
|
-
case
|
|
3890
|
+
case El:
|
|
3880
3891
|
for (; c < 16; ) {
|
|
3881
3892
|
if (o === 0)
|
|
3882
3893
|
break e;
|
|
3883
3894
|
o--, p += i[s++] << c, c += 8;
|
|
3884
3895
|
}
|
|
3885
|
-
if (r.flags = p, (r.flags & 255) !==
|
|
3896
|
+
if (r.flags = p, (r.flags & 255) !== Pl) {
|
|
3886
3897
|
e.msg = "unknown compression method", r.mode = Ne;
|
|
3887
3898
|
break;
|
|
3888
3899
|
}
|
|
@@ -3890,22 +3901,22 @@ function _y(e, t) {
|
|
|
3890
3901
|
e.msg = "unknown header flags set", r.mode = Ne;
|
|
3891
3902
|
break;
|
|
3892
3903
|
}
|
|
3893
|
-
r.head && (r.head.text = p >> 8 & 1), r.flags & 512 && (F[0] = p & 255, F[1] = p >>> 8 & 255, r.check = Mt(r.check, F, 2, 0)), p = 0, c = 0, r.mode =
|
|
3894
|
-
case
|
|
3904
|
+
r.head && (r.head.text = p >> 8 & 1), r.flags & 512 && (F[0] = p & 255, F[1] = p >>> 8 & 255, r.check = Mt(r.check, F, 2, 0)), p = 0, c = 0, r.mode = Sl;
|
|
3905
|
+
case Sl:
|
|
3895
3906
|
for (; c < 32; ) {
|
|
3896
3907
|
if (o === 0)
|
|
3897
3908
|
break e;
|
|
3898
3909
|
o--, p += i[s++] << c, c += 8;
|
|
3899
3910
|
}
|
|
3900
|
-
r.head && (r.head.time = p), r.flags & 512 && (F[0] = p & 255, F[1] = p >>> 8 & 255, F[2] = p >>> 16 & 255, F[3] = p >>> 24 & 255, r.check = Mt(r.check, F, 4, 0)), p = 0, c = 0, r.mode =
|
|
3901
|
-
case
|
|
3911
|
+
r.head && (r.head.time = p), r.flags & 512 && (F[0] = p & 255, F[1] = p >>> 8 & 255, F[2] = p >>> 16 & 255, F[3] = p >>> 24 & 255, r.check = Mt(r.check, F, 4, 0)), p = 0, c = 0, r.mode = Tl;
|
|
3912
|
+
case Tl:
|
|
3902
3913
|
for (; c < 16; ) {
|
|
3903
3914
|
if (o === 0)
|
|
3904
3915
|
break e;
|
|
3905
3916
|
o--, p += i[s++] << c, c += 8;
|
|
3906
3917
|
}
|
|
3907
|
-
r.head && (r.head.xflags = p & 255, r.head.os = p >> 8), r.flags & 512 && (F[0] = p & 255, F[1] = p >>> 8 & 255, r.check = Mt(r.check, F, 2, 0)), p = 0, c = 0, r.mode =
|
|
3908
|
-
case
|
|
3918
|
+
r.head && (r.head.xflags = p & 255, r.head.os = p >> 8), r.flags & 512 && (F[0] = p & 255, F[1] = p >>> 8 & 255, r.check = Mt(r.check, F, 2, 0)), p = 0, c = 0, r.mode = Ol;
|
|
3919
|
+
case Ol:
|
|
3909
3920
|
if (r.flags & 1024) {
|
|
3910
3921
|
for (; c < 16; ) {
|
|
3911
3922
|
if (o === 0)
|
|
@@ -3914,8 +3925,8 @@ function _y(e, t) {
|
|
|
3914
3925
|
}
|
|
3915
3926
|
r.length = p, r.head && (r.head.extra_len = p), r.flags & 512 && (F[0] = p & 255, F[1] = p >>> 8 & 255, r.check = Mt(r.check, F, 2, 0)), p = 0, c = 0;
|
|
3916
3927
|
} else r.head && (r.head.extra = null);
|
|
3917
|
-
r.mode =
|
|
3918
|
-
case
|
|
3928
|
+
r.mode = Al;
|
|
3929
|
+
case Al:
|
|
3919
3930
|
if (r.flags & 1024 && (g = r.length, g > o && (g = o), g && (r.head && (E = r.head.extra_len - r.length, r.head.extra || (r.head.extra = new Array(r.head.extra_len)), kt.arraySet(
|
|
3920
3931
|
r.head.extra,
|
|
3921
3932
|
i,
|
|
@@ -3927,8 +3938,8 @@ function _y(e, t) {
|
|
|
3927
3938
|
E
|
|
3928
3939
|
)), r.flags & 512 && (r.check = Mt(r.check, i, g, s)), o -= g, s += g, r.length -= g), r.length))
|
|
3929
3940
|
break e;
|
|
3930
|
-
r.length = 0, r.mode =
|
|
3931
|
-
case
|
|
3941
|
+
r.length = 0, r.mode = $l;
|
|
3942
|
+
case $l:
|
|
3932
3943
|
if (r.flags & 2048) {
|
|
3933
3944
|
if (o === 0)
|
|
3934
3945
|
break e;
|
|
@@ -3939,8 +3950,8 @@ function _y(e, t) {
|
|
|
3939
3950
|
if (r.flags & 512 && (r.check = Mt(r.check, i, g, s)), o -= g, s += g, E)
|
|
3940
3951
|
break e;
|
|
3941
3952
|
} else r.head && (r.head.name = null);
|
|
3942
|
-
r.length = 0, r.mode =
|
|
3943
|
-
case
|
|
3953
|
+
r.length = 0, r.mode = Rl;
|
|
3954
|
+
case Rl:
|
|
3944
3955
|
if (r.flags & 4096) {
|
|
3945
3956
|
if (o === 0)
|
|
3946
3957
|
break e;
|
|
@@ -3951,8 +3962,8 @@ function _y(e, t) {
|
|
|
3951
3962
|
if (r.flags & 512 && (r.check = Mt(r.check, i, g, s)), o -= g, s += g, E)
|
|
3952
3963
|
break e;
|
|
3953
3964
|
} else r.head && (r.head.comment = null);
|
|
3954
|
-
r.mode =
|
|
3955
|
-
case
|
|
3965
|
+
r.mode = Fl;
|
|
3966
|
+
case Fl:
|
|
3956
3967
|
if (r.flags & 512) {
|
|
3957
3968
|
for (; c < 16; ) {
|
|
3958
3969
|
if (o === 0)
|
|
@@ -3967,23 +3978,23 @@ function _y(e, t) {
|
|
|
3967
3978
|
}
|
|
3968
3979
|
r.head && (r.head.hcrc = r.flags >> 9 & 1, r.head.done = !0), e.adler = r.check = 0, r.mode = tr;
|
|
3969
3980
|
break;
|
|
3970
|
-
case
|
|
3981
|
+
case Il:
|
|
3971
3982
|
for (; c < 32; ) {
|
|
3972
3983
|
if (o === 0)
|
|
3973
3984
|
break e;
|
|
3974
3985
|
o--, p += i[s++] << c, c += 8;
|
|
3975
3986
|
}
|
|
3976
|
-
e.adler = r.check =
|
|
3977
|
-
case
|
|
3987
|
+
e.adler = r.check = Vl(p), p = 0, c = 0, r.mode = ei;
|
|
3988
|
+
case ei:
|
|
3978
3989
|
if (r.havedict === 0)
|
|
3979
3990
|
return e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, py;
|
|
3980
3991
|
e.adler = r.check = 1, r.mode = tr;
|
|
3981
3992
|
case tr:
|
|
3982
|
-
if (t === ly || t ===
|
|
3993
|
+
if (t === ly || t === bs)
|
|
3983
3994
|
break e;
|
|
3984
|
-
case
|
|
3995
|
+
case Vi:
|
|
3985
3996
|
if (r.last) {
|
|
3986
|
-
p >>>= c & 7, c -= c & 7, r.mode =
|
|
3997
|
+
p >>>= c & 7, c -= c & 7, r.mode = Gi;
|
|
3987
3998
|
break;
|
|
3988
3999
|
}
|
|
3989
4000
|
for (; c < 3; ) {
|
|
@@ -3993,23 +4004,23 @@ function _y(e, t) {
|
|
|
3993
4004
|
}
|
|
3994
4005
|
switch (r.last = p & 1, p >>>= 1, c -= 1, p & 3) {
|
|
3995
4006
|
case 0:
|
|
3996
|
-
r.mode =
|
|
4007
|
+
r.mode = Ll;
|
|
3997
4008
|
break;
|
|
3998
4009
|
case 1:
|
|
3999
|
-
if (by(r), r.mode =
|
|
4010
|
+
if (by(r), r.mode = _s, t === bs) {
|
|
4000
4011
|
p >>>= 2, c -= 2;
|
|
4001
4012
|
break e;
|
|
4002
4013
|
}
|
|
4003
4014
|
break;
|
|
4004
4015
|
case 2:
|
|
4005
|
-
r.mode =
|
|
4016
|
+
r.mode = Nl;
|
|
4006
4017
|
break;
|
|
4007
4018
|
case 3:
|
|
4008
4019
|
e.msg = "invalid block type", r.mode = Ne;
|
|
4009
4020
|
}
|
|
4010
4021
|
p >>>= 2, c -= 2;
|
|
4011
4022
|
break;
|
|
4012
|
-
case
|
|
4023
|
+
case Ll:
|
|
4013
4024
|
for (p >>>= c & 7, c -= c & 7; c < 32; ) {
|
|
4014
4025
|
if (o === 0)
|
|
4015
4026
|
break e;
|
|
@@ -4019,11 +4030,11 @@ function _y(e, t) {
|
|
|
4019
4030
|
e.msg = "invalid stored block lengths", r.mode = Ne;
|
|
4020
4031
|
break;
|
|
4021
4032
|
}
|
|
4022
|
-
if (r.length = p & 65535, p = 0, c = 0, r.mode =
|
|
4033
|
+
if (r.length = p & 65535, p = 0, c = 0, r.mode = Zi, t === bs)
|
|
4023
4034
|
break e;
|
|
4024
|
-
case
|
|
4025
|
-
r.mode =
|
|
4026
|
-
case
|
|
4035
|
+
case Zi:
|
|
4036
|
+
r.mode = Cl;
|
|
4037
|
+
case Cl:
|
|
4027
4038
|
if (g = r.length, g) {
|
|
4028
4039
|
if (g > o && (g = o), g > l && (g = l), g === 0)
|
|
4029
4040
|
break e;
|
|
@@ -4032,7 +4043,7 @@ function _y(e, t) {
|
|
|
4032
4043
|
}
|
|
4033
4044
|
r.mode = tr;
|
|
4034
4045
|
break;
|
|
4035
|
-
case
|
|
4046
|
+
case Nl:
|
|
4036
4047
|
for (; c < 14; ) {
|
|
4037
4048
|
if (o === 0)
|
|
4038
4049
|
break e;
|
|
@@ -4042,8 +4053,8 @@ function _y(e, t) {
|
|
|
4042
4053
|
e.msg = "too many length or distance symbols", r.mode = Ne;
|
|
4043
4054
|
break;
|
|
4044
4055
|
}
|
|
4045
|
-
r.have = 0, r.mode =
|
|
4046
|
-
case
|
|
4056
|
+
r.have = 0, r.mode = Dl;
|
|
4057
|
+
case Dl:
|
|
4047
4058
|
for (; r.have < r.ncode; ) {
|
|
4048
4059
|
for (; c < 3; ) {
|
|
4049
4060
|
if (o === 0)
|
|
@@ -4058,8 +4069,8 @@ function _y(e, t) {
|
|
|
4058
4069
|
e.msg = "invalid code lengths set", r.mode = Ne;
|
|
4059
4070
|
break;
|
|
4060
4071
|
}
|
|
4061
|
-
r.have = 0, r.mode =
|
|
4062
|
-
case
|
|
4072
|
+
r.have = 0, r.mode = jl;
|
|
4073
|
+
case jl:
|
|
4063
4074
|
for (; r.have < r.nlen + r.ndist; ) {
|
|
4064
4075
|
for (; w = r.lencode[p & (1 << r.lenbits) - 1], b = w >>> 24, O = w >>> 16 & 255, P = w & 65535, !(b <= c); ) {
|
|
4065
4076
|
if (o === 0)
|
|
@@ -4117,11 +4128,11 @@ function _y(e, t) {
|
|
|
4117
4128
|
e.msg = "invalid distances set", r.mode = Ne;
|
|
4118
4129
|
break;
|
|
4119
4130
|
}
|
|
4120
|
-
if (r.mode =
|
|
4131
|
+
if (r.mode = _s, t === bs)
|
|
4121
4132
|
break e;
|
|
4122
|
-
case
|
|
4123
|
-
r.mode =
|
|
4124
|
-
case
|
|
4133
|
+
case _s:
|
|
4134
|
+
r.mode = vs;
|
|
4135
|
+
case vs:
|
|
4125
4136
|
if (o >= 6 && l >= 258) {
|
|
4126
4137
|
e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, ay(e, m), n = e.next_out, a = e.output, l = e.avail_out, s = e.next_in, i = e.input, o = e.avail_in, p = r.hold, c = r.bits, r.mode === tr && (r.back = -1);
|
|
4127
4138
|
break;
|
|
@@ -4140,7 +4151,7 @@ function _y(e, t) {
|
|
|
4140
4151
|
p >>>= L, c -= L, r.back += L;
|
|
4141
4152
|
}
|
|
4142
4153
|
if (p >>>= b, c -= b, r.back += b, r.length = P, O === 0) {
|
|
4143
|
-
r.mode =
|
|
4154
|
+
r.mode = Wl;
|
|
4144
4155
|
break;
|
|
4145
4156
|
}
|
|
4146
4157
|
if (O & 32) {
|
|
@@ -4151,8 +4162,8 @@ function _y(e, t) {
|
|
|
4151
4162
|
e.msg = "invalid literal/length code", r.mode = Ne;
|
|
4152
4163
|
break;
|
|
4153
4164
|
}
|
|
4154
|
-
r.extra = O & 15, r.mode =
|
|
4155
|
-
case
|
|
4165
|
+
r.extra = O & 15, r.mode = Ul;
|
|
4166
|
+
case Ul:
|
|
4156
4167
|
if (r.extra) {
|
|
4157
4168
|
for (S = r.extra; c < S; ) {
|
|
4158
4169
|
if (o === 0)
|
|
@@ -4161,8 +4172,8 @@ function _y(e, t) {
|
|
|
4161
4172
|
}
|
|
4162
4173
|
r.length += p & (1 << r.extra) - 1, p >>>= r.extra, c -= r.extra, r.back += r.extra;
|
|
4163
4174
|
}
|
|
4164
|
-
r.was = r.length, r.mode =
|
|
4165
|
-
case
|
|
4175
|
+
r.was = r.length, r.mode = Bl;
|
|
4176
|
+
case Bl:
|
|
4166
4177
|
for (; w = r.distcode[p & (1 << r.distbits) - 1], b = w >>> 24, O = w >>> 16 & 255, P = w & 65535, !(b <= c); ) {
|
|
4167
4178
|
if (o === 0)
|
|
4168
4179
|
break e;
|
|
@@ -4180,8 +4191,8 @@ function _y(e, t) {
|
|
|
4180
4191
|
e.msg = "invalid distance code", r.mode = Ne;
|
|
4181
4192
|
break;
|
|
4182
4193
|
}
|
|
4183
|
-
r.offset = P, r.extra = O & 15, r.mode =
|
|
4184
|
-
case
|
|
4194
|
+
r.offset = P, r.extra = O & 15, r.mode = ql;
|
|
4195
|
+
case ql:
|
|
4185
4196
|
if (r.extra) {
|
|
4186
4197
|
for (S = r.extra; c < S; ) {
|
|
4187
4198
|
if (o === 0)
|
|
@@ -4194,8 +4205,8 @@ function _y(e, t) {
|
|
|
4194
4205
|
e.msg = "invalid distance too far back", r.mode = Ne;
|
|
4195
4206
|
break;
|
|
4196
4207
|
}
|
|
4197
|
-
r.mode =
|
|
4198
|
-
case
|
|
4208
|
+
r.mode = Ml;
|
|
4209
|
+
case Ml:
|
|
4199
4210
|
if (l === 0)
|
|
4200
4211
|
break e;
|
|
4201
4212
|
if (g = m - l, r.offset > g) {
|
|
@@ -4210,14 +4221,14 @@ function _y(e, t) {
|
|
|
4210
4221
|
do
|
|
4211
4222
|
a[n++] = y[A++];
|
|
4212
4223
|
while (--g);
|
|
4213
|
-
r.length === 0 && (r.mode =
|
|
4224
|
+
r.length === 0 && (r.mode = vs);
|
|
4214
4225
|
break;
|
|
4215
|
-
case
|
|
4226
|
+
case Wl:
|
|
4216
4227
|
if (l === 0)
|
|
4217
4228
|
break e;
|
|
4218
|
-
a[n++] = r.length, l--, r.mode =
|
|
4229
|
+
a[n++] = r.length, l--, r.mode = vs;
|
|
4219
4230
|
break;
|
|
4220
|
-
case
|
|
4231
|
+
case Gi:
|
|
4221
4232
|
if (r.wrap) {
|
|
4222
4233
|
for (; c < 32; ) {
|
|
4223
4234
|
if (o === 0)
|
|
@@ -4225,14 +4236,14 @@ function _y(e, t) {
|
|
|
4225
4236
|
o--, p |= i[s++] << c, c += 8;
|
|
4226
4237
|
}
|
|
4227
4238
|
if (m -= l, e.total_out += m, r.total += m, m && (e.adler = r.check = /*UPDATE(state.check, put - _out, _out);*/
|
|
4228
|
-
r.flags ? Mt(r.check, a, m, n - m) :
|
|
4239
|
+
r.flags ? Mt(r.check, a, m, n - m) : Xa(r.check, a, m, n - m)), m = l, (r.flags ? p : Vl(p)) !== r.check) {
|
|
4229
4240
|
e.msg = "incorrect data check", r.mode = Ne;
|
|
4230
4241
|
break;
|
|
4231
4242
|
}
|
|
4232
4243
|
p = 0, c = 0;
|
|
4233
4244
|
}
|
|
4234
|
-
r.mode =
|
|
4235
|
-
case
|
|
4245
|
+
r.mode = zl;
|
|
4246
|
+
case zl:
|
|
4236
4247
|
if (r.wrap && r.flags) {
|
|
4237
4248
|
for (; c < 32; ) {
|
|
4238
4249
|
if (o === 0)
|
|
@@ -4245,8 +4256,8 @@ function _y(e, t) {
|
|
|
4245
4256
|
}
|
|
4246
4257
|
p = 0, c = 0;
|
|
4247
4258
|
}
|
|
4248
|
-
r.mode =
|
|
4249
|
-
case
|
|
4259
|
+
r.mode = Hl;
|
|
4260
|
+
case Hl:
|
|
4250
4261
|
T = fy;
|
|
4251
4262
|
break e;
|
|
4252
4263
|
case Ne:
|
|
@@ -4258,8 +4269,8 @@ function _y(e, t) {
|
|
|
4258
4269
|
default:
|
|
4259
4270
|
return Rt;
|
|
4260
4271
|
}
|
|
4261
|
-
return e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, (r.wsize || m !== e.avail_out && r.mode < Ne && (r.mode <
|
|
4262
|
-
r.flags ? Mt(r.check, a, m, e.next_out - m) :
|
|
4272
|
+
return e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, (r.wsize || m !== e.avail_out && r.mode < Ne && (r.mode < Gi || t !== kl)) && Dc(e, e.output, e.next_out, m - e.avail_out), h -= e.avail_in, m -= e.avail_out, e.total_in += h, e.total_out += m, r.total += m, r.wrap && m && (e.adler = r.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
4273
|
+
r.flags ? Mt(r.check, a, m, e.next_out - m) : Xa(r.check, a, m, e.next_out - m)), e.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === tr ? 128 : 0) + (r.mode === _s || r.mode === Zi ? 256 : 0), (h === 0 && m === 0 || t === kl) && T === jr && (T = cy), T;
|
|
4263
4274
|
}
|
|
4264
4275
|
function vy(e) {
|
|
4265
4276
|
if (!e || !e.state)
|
|
@@ -4273,7 +4284,7 @@ function xy(e, t) {
|
|
|
4273
4284
|
}
|
|
4274
4285
|
function ky(e, t) {
|
|
4275
4286
|
var r = t.length, i, a, s;
|
|
4276
|
-
return !e || !e.state || (i = e.state, i.wrap !== 0 && i.mode !==
|
|
4287
|
+
return !e || !e.state || (i = e.state, i.wrap !== 0 && i.mode !== ei) ? Rt : i.mode === ei && (a = 1, a = Xa(a, t, r, 0), a !== i.check) ? Ac : (s = Dc(e, t, r, r), s ? (i.mode = Fc, $c) : (i.havedict = 1, jr));
|
|
4277
4288
|
}
|
|
4278
4289
|
Ut.inflateReset = Lc;
|
|
4279
4290
|
Ut.inflateReset2 = Cc;
|
|
@@ -4328,7 +4339,7 @@ var jc = {
|
|
|
4328
4339
|
function Py() {
|
|
4329
4340
|
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;
|
|
4330
4341
|
}
|
|
4331
|
-
var Ey = Py, an = Ut, Ln = ar,
|
|
4342
|
+
var Ey = Py, an = Ut, Ln = ar, js = Mr, Ue = jc, Ja = Po, Sy = Ec, Ty = Ey, Uc = Object.prototype.toString;
|
|
4332
4343
|
function Ur(e) {
|
|
4333
4344
|
if (!(this instanceof Ur)) return new Ur(e);
|
|
4334
4345
|
this.options = Ln.assign({
|
|
@@ -4343,19 +4354,19 @@ function Ur(e) {
|
|
|
4343
4354
|
t.windowBits
|
|
4344
4355
|
);
|
|
4345
4356
|
if (r !== Ue.Z_OK)
|
|
4346
|
-
throw new Error(
|
|
4347
|
-
if (this.header = new Ty(), an.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary =
|
|
4348
|
-
throw new Error(
|
|
4357
|
+
throw new Error(Ja[r]);
|
|
4358
|
+
if (this.header = new Ty(), an.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = js.string2buf(t.dictionary) : Uc.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (r = an.inflateSetDictionary(this.strm, t.dictionary), r !== Ue.Z_OK)))
|
|
4359
|
+
throw new Error(Ja[r]);
|
|
4349
4360
|
}
|
|
4350
4361
|
Ur.prototype.push = function(e, t) {
|
|
4351
4362
|
var r = this.strm, i = this.options.chunkSize, a = this.options.dictionary, s, n, o, l, p, c = !1;
|
|
4352
4363
|
if (this.ended)
|
|
4353
4364
|
return !1;
|
|
4354
|
-
n = t === ~~t ? t : t === !0 ? Ue.Z_FINISH : Ue.Z_NO_FLUSH, typeof e == "string" ? r.input =
|
|
4365
|
+
n = t === ~~t ? t : t === !0 ? Ue.Z_FINISH : Ue.Z_NO_FLUSH, typeof e == "string" ? r.input = js.binstring2buf(e) : Uc.call(e) === "[object ArrayBuffer]" ? r.input = new Uint8Array(e) : r.input = e, r.next_in = 0, r.avail_in = r.input.length;
|
|
4355
4366
|
do {
|
|
4356
4367
|
if (r.avail_out === 0 && (r.output = new Ln.Buf8(i), r.next_out = 0, r.avail_out = i), s = an.inflate(r, Ue.Z_NO_FLUSH), s === Ue.Z_NEED_DICT && a && (s = an.inflateSetDictionary(this.strm, a)), s === Ue.Z_BUF_ERROR && c === !0 && (s = Ue.Z_OK, c = !1), s !== Ue.Z_STREAM_END && s !== Ue.Z_OK)
|
|
4357
4368
|
return this.onEnd(s), this.ended = !0, !1;
|
|
4358
|
-
r.next_out && (r.avail_out === 0 || s === Ue.Z_STREAM_END || r.avail_in === 0 && (n === Ue.Z_FINISH || n === Ue.Z_SYNC_FLUSH)) && (this.options.to === "string" ? (o =
|
|
4369
|
+
r.next_out && (r.avail_out === 0 || s === Ue.Z_STREAM_END || r.avail_in === 0 && (n === Ue.Z_FINISH || n === Ue.Z_SYNC_FLUSH)) && (this.options.to === "string" ? (o = js.utf8border(r.output, r.next_out), l = r.next_out - o, p = js.buf2string(r.output, o), r.next_out = l, r.avail_out = i - l, l && Ln.arraySet(r.output, r.output, o, l, 0), this.onData(p)) : this.onData(Ln.shrinkBuf(r.output, r.next_out))), r.avail_in === 0 && r.avail_out === 0 && (c = !0);
|
|
4359
4370
|
} while ((r.avail_in > 0 || r.avail_out === 0) && s !== Ue.Z_STREAM_END);
|
|
4360
4371
|
return s === Ue.Z_STREAM_END && (n = Ue.Z_FINISH), n === Ue.Z_FINISH ? (s = an.inflateEnd(this.strm), this.onEnd(s), this.ended = !0, s === Ue.Z_OK) : (n === Ue.Z_SYNC_FLUSH && (this.onEnd(Ue.Z_OK), r.avail_out = 0), !0);
|
|
4361
4372
|
};
|
|
@@ -4365,23 +4376,23 @@ Ur.prototype.onData = function(e) {
|
|
|
4365
4376
|
Ur.prototype.onEnd = function(e) {
|
|
4366
4377
|
e === Ue.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = Ln.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
4367
4378
|
};
|
|
4368
|
-
function
|
|
4379
|
+
function So(e, t) {
|
|
4369
4380
|
var r = new Ur(t);
|
|
4370
4381
|
if (r.push(e, !0), r.err)
|
|
4371
|
-
throw r.msg ||
|
|
4382
|
+
throw r.msg || Ja[r.err];
|
|
4372
4383
|
return r.result;
|
|
4373
4384
|
}
|
|
4374
4385
|
function Oy(e, t) {
|
|
4375
|
-
return t = t || {}, t.raw = !0,
|
|
4386
|
+
return t = t || {}, t.raw = !0, So(e, t);
|
|
4376
4387
|
}
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
var Ay = ar.assign, $y =
|
|
4388
|
+
is.Inflate = Ur;
|
|
4389
|
+
is.inflate = So;
|
|
4390
|
+
is.inflateRaw = Oy;
|
|
4391
|
+
is.ungzip = So;
|
|
4392
|
+
var Ay = ar.assign, $y = rs, Ry = is, Fy = jc, Bc = {};
|
|
4382
4393
|
Ay(Bc, $y, Ry, Fy);
|
|
4383
4394
|
var Iy = Bc;
|
|
4384
|
-
const
|
|
4395
|
+
const To = /* @__PURE__ */ co(Iy);
|
|
4385
4396
|
async function Ly(e, t) {
|
|
4386
4397
|
const r = new Yp(e);
|
|
4387
4398
|
let i = await r.read(4);
|
|
@@ -4393,7 +4404,7 @@ async function Ly(e, t) {
|
|
|
4393
4404
|
let s = await r.read(4);
|
|
4394
4405
|
if (s = s.readUInt32BE(0), !(s < 1))
|
|
4395
4406
|
for (; !r.eof() && s--; ) {
|
|
4396
|
-
const n = r.tell(), { type: o, length: l, ofs: p, reference: c } = await Cy(r), h = new
|
|
4407
|
+
const n = r.tell(), { type: o, length: l, ofs: p, reference: c } = await Cy(r), h = new To.Inflate();
|
|
4397
4408
|
for (; !h.result; ) {
|
|
4398
4409
|
const m = await r.chunk();
|
|
4399
4410
|
if (!m) break;
|
|
@@ -4442,10 +4453,10 @@ async function Cy(e) {
|
|
|
4442
4453
|
return r === 7 && (s = await e.read(20)), { type: r, length: i, ofs: a, reference: s };
|
|
4443
4454
|
}
|
|
4444
4455
|
async function Ny(e) {
|
|
4445
|
-
return
|
|
4456
|
+
return To.inflate(e);
|
|
4446
4457
|
}
|
|
4447
|
-
var
|
|
4448
|
-
typeof Object.create == "function" ?
|
|
4458
|
+
var Qa = { exports: {} };
|
|
4459
|
+
typeof Object.create == "function" ? Qa.exports = function(t, r) {
|
|
4449
4460
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
|
|
4450
4461
|
constructor: {
|
|
4451
4462
|
value: t,
|
|
@@ -4454,7 +4465,7 @@ typeof Object.create == "function" ? Ka.exports = function(t, r) {
|
|
|
4454
4465
|
configurable: !0
|
|
4455
4466
|
}
|
|
4456
4467
|
}));
|
|
4457
|
-
} :
|
|
4468
|
+
} : Qa.exports = function(t, r) {
|
|
4458
4469
|
if (r) {
|
|
4459
4470
|
t.super_ = r;
|
|
4460
4471
|
var i = function() {
|
|
@@ -4462,13 +4473,13 @@ typeof Object.create == "function" ? Ka.exports = function(t, r) {
|
|
|
4462
4473
|
i.prototype = r.prototype, t.prototype = new i(), t.prototype.constructor = t;
|
|
4463
4474
|
}
|
|
4464
4475
|
};
|
|
4465
|
-
var Dy =
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
var Kt = [], Tt = [], jy = typeof Uint8Array < "u" ? Uint8Array : Array,
|
|
4470
|
-
for (var Vr = 0, Uy =
|
|
4471
|
-
Kt[Vr] =
|
|
4476
|
+
var Dy = Qa.exports, eo = { exports: {} }, Oo = {}, gi = {};
|
|
4477
|
+
gi.byteLength = By;
|
|
4478
|
+
gi.toByteArray = My;
|
|
4479
|
+
gi.fromByteArray = Hy;
|
|
4480
|
+
var Kt = [], Tt = [], jy = typeof Uint8Array < "u" ? Uint8Array : Array, Xi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4481
|
+
for (var Vr = 0, Uy = Xi.length; Vr < Uy; ++Vr)
|
|
4482
|
+
Kt[Vr] = Xi[Vr], Tt[Xi.charCodeAt(Vr)] = Vr;
|
|
4472
4483
|
Tt[45] = 62;
|
|
4473
4484
|
Tt[95] = 63;
|
|
4474
4485
|
function qc(e) {
|
|
@@ -4510,9 +4521,9 @@ function Hy(e) {
|
|
|
4510
4521
|
Kt[t >> 10] + Kt[t >> 4 & 63] + Kt[t << 2 & 63] + "="
|
|
4511
4522
|
)), a.join("");
|
|
4512
4523
|
}
|
|
4513
|
-
var
|
|
4524
|
+
var Ao = {};
|
|
4514
4525
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4515
|
-
|
|
4526
|
+
Ao.read = function(e, t, r, i, a) {
|
|
4516
4527
|
var s, n, o = a * 8 - i - 1, l = (1 << o) - 1, p = l >> 1, c = -7, h = r ? a - 1 : 0, m = r ? -1 : 1, g = e[t + h];
|
|
4517
4528
|
for (h += m, s = g & (1 << -c) - 1, g >>= -c, c += o; c > 0; s = s * 256 + e[t + h], h += m, c -= 8)
|
|
4518
4529
|
;
|
|
@@ -4527,7 +4538,7 @@ So.read = function(e, t, r, i, a) {
|
|
|
4527
4538
|
}
|
|
4528
4539
|
return (g ? -1 : 1) * n * Math.pow(2, s - i);
|
|
4529
4540
|
};
|
|
4530
|
-
|
|
4541
|
+
Ao.write = function(e, t, r, i, a, s) {
|
|
4531
4542
|
var n, o, l, p = s * 8 - a - 1, c = (1 << p) - 1, h = c >> 1, m = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = i ? 0 : s - 1, A = i ? 1 : -1, y = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
4532
4543
|
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 * (l = Math.pow(2, -n)) < 1 && (n--, l *= 2), n + h >= 1 ? t += m / l : t += m * Math.pow(2, 1 - h), t * l >= 2 && (n++, l /= 2), n + h >= c ? (o = 0, n = c) : n + h >= 1 ? (o = (t * l - 1) * Math.pow(2, a), n = n + h) : (o = t * Math.pow(2, h - 1) * Math.pow(2, a), n = 0)); a >= 8; e[r + g] = o & 255, g += A, o /= 256, a -= 8)
|
|
4533
4544
|
;
|
|
@@ -4542,7 +4553,7 @@ So.write = function(e, t, r, i, a, s) {
|
|
|
4542
4553
|
* @license MIT
|
|
4543
4554
|
*/
|
|
4544
4555
|
(function(e) {
|
|
4545
|
-
var t =
|
|
4556
|
+
var t = gi, r = Ao, i = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
4546
4557
|
e.Buffer = o, e.SlowBuffer = O, e.INSPECT_MAX_BYTES = 50;
|
|
4547
4558
|
var a = 2147483647;
|
|
4548
4559
|
e.kMaxLength = a, o.TYPED_ARRAY_SUPPORT = s(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -5319,10 +5330,10 @@ So.write = function(e, t, r, i, a, s) {
|
|
|
5319
5330
|
u[R + j] = v[d] + v[j];
|
|
5320
5331
|
return u;
|
|
5321
5332
|
}();
|
|
5322
|
-
})(
|
|
5333
|
+
})(Oo);
|
|
5323
5334
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
5324
5335
|
(function(e, t) {
|
|
5325
|
-
var r =
|
|
5336
|
+
var r = Oo, i = r.Buffer;
|
|
5326
5337
|
function a(n, o) {
|
|
5327
5338
|
for (var l in n)
|
|
5328
5339
|
o[l] = n[l];
|
|
@@ -5349,30 +5360,30 @@ So.write = function(e, t, r, i, a, s) {
|
|
|
5349
5360
|
throw new TypeError("Argument must be a number");
|
|
5350
5361
|
return r.SlowBuffer(n);
|
|
5351
5362
|
};
|
|
5352
|
-
})(
|
|
5353
|
-
var
|
|
5363
|
+
})(eo, eo.exports);
|
|
5364
|
+
var $o = eo.exports, Vy = {}.toString, Zy = Array.isArray || function(e) {
|
|
5354
5365
|
return Vy.call(e) == "[object Array]";
|
|
5355
|
-
},
|
|
5366
|
+
}, as = TypeError, Mc = Object, Gy = Error, Yy = EvalError, Ky = RangeError, Xy = ReferenceError, Wc = SyntaxError, Jy = URIError, Qy = Math.abs, e0 = Math.floor, t0 = Math.max, r0 = Math.min, n0 = Math.pow, s0 = Math.round, i0 = Number.isNaN || function(t) {
|
|
5356
5367
|
return t !== t;
|
|
5357
5368
|
}, a0 = i0, o0 = function(t) {
|
|
5358
5369
|
return a0(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
5359
|
-
}, l0 = Object.getOwnPropertyDescriptor,
|
|
5360
|
-
if (
|
|
5370
|
+
}, l0 = Object.getOwnPropertyDescriptor, Us = l0;
|
|
5371
|
+
if (Us)
|
|
5361
5372
|
try {
|
|
5362
|
-
|
|
5373
|
+
Us([], "length");
|
|
5363
5374
|
} catch {
|
|
5364
|
-
|
|
5375
|
+
Us = null;
|
|
5365
5376
|
}
|
|
5366
|
-
var
|
|
5367
|
-
if (
|
|
5377
|
+
var os = Us, Bs = Object.defineProperty || !1;
|
|
5378
|
+
if (Bs)
|
|
5368
5379
|
try {
|
|
5369
|
-
|
|
5380
|
+
Bs({}, "a", { value: 1 });
|
|
5370
5381
|
} catch {
|
|
5371
|
-
|
|
5382
|
+
Bs = !1;
|
|
5372
5383
|
}
|
|
5373
|
-
var
|
|
5384
|
+
var wi = Bs, Ji, Gl;
|
|
5374
5385
|
function zc() {
|
|
5375
|
-
return
|
|
5386
|
+
return Gl || (Gl = 1, Ji = function() {
|
|
5376
5387
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
5377
5388
|
return !1;
|
|
5378
5389
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -5398,29 +5409,29 @@ function zc() {
|
|
|
5398
5409
|
return !1;
|
|
5399
5410
|
}
|
|
5400
5411
|
return !0;
|
|
5401
|
-
}),
|
|
5412
|
+
}), Ji;
|
|
5402
5413
|
}
|
|
5403
|
-
var
|
|
5414
|
+
var Qi, Yl;
|
|
5404
5415
|
function f0() {
|
|
5405
|
-
if (
|
|
5406
|
-
|
|
5416
|
+
if (Yl) return Qi;
|
|
5417
|
+
Yl = 1;
|
|
5407
5418
|
var e = typeof Symbol < "u" && Symbol, t = zc();
|
|
5408
|
-
return
|
|
5419
|
+
return Qi = function() {
|
|
5409
5420
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
5410
|
-
},
|
|
5421
|
+
}, Qi;
|
|
5411
5422
|
}
|
|
5412
|
-
var
|
|
5423
|
+
var ea, Kl;
|
|
5413
5424
|
function Hc() {
|
|
5414
|
-
return
|
|
5425
|
+
return Kl || (Kl = 1, ea = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ea;
|
|
5415
5426
|
}
|
|
5416
|
-
var
|
|
5427
|
+
var ta, Xl;
|
|
5417
5428
|
function Vc() {
|
|
5418
|
-
if (
|
|
5419
|
-
|
|
5429
|
+
if (Xl) return ta;
|
|
5430
|
+
Xl = 1;
|
|
5420
5431
|
var e = Mc;
|
|
5421
|
-
return
|
|
5432
|
+
return ta = e.getPrototypeOf || null, ta;
|
|
5422
5433
|
}
|
|
5423
|
-
var p0 = "Function.prototype.bind called on incompatible ", c0 = Object.prototype.toString, u0 = Math.max, d0 = "[object Function]",
|
|
5434
|
+
var p0 = "Function.prototype.bind called on incompatible ", c0 = Object.prototype.toString, u0 = Math.max, d0 = "[object Function]", Jl = function(t, r) {
|
|
5424
5435
|
for (var i = [], a = 0; a < t.length; a += 1)
|
|
5425
5436
|
i[a] = t[a];
|
|
5426
5437
|
for (var s = 0; s < r.length; s += 1)
|
|
@@ -5442,13 +5453,13 @@ var p0 = "Function.prototype.bind called on incompatible ", c0 = Object.prototyp
|
|
|
5442
5453
|
if (this instanceof a) {
|
|
5443
5454
|
var c = r.apply(
|
|
5444
5455
|
this,
|
|
5445
|
-
|
|
5456
|
+
Jl(i, arguments)
|
|
5446
5457
|
);
|
|
5447
5458
|
return Object(c) === c ? c : this;
|
|
5448
5459
|
}
|
|
5449
5460
|
return r.apply(
|
|
5450
5461
|
t,
|
|
5451
|
-
|
|
5462
|
+
Jl(i, arguments)
|
|
5452
5463
|
);
|
|
5453
5464
|
}, n = u0(0, r.length - i.length), o = [], l = 0; l < n; l++)
|
|
5454
5465
|
o[l] = "$" + l;
|
|
@@ -5458,19 +5469,15 @@ var p0 = "Function.prototype.bind called on incompatible ", c0 = Object.prototyp
|
|
|
5458
5469
|
p.prototype = r.prototype, a.prototype = new p(), p.prototype = null;
|
|
5459
5470
|
}
|
|
5460
5471
|
return a;
|
|
5461
|
-
}, g0 = y0,
|
|
5462
|
-
function Ao() {
|
|
5463
|
-
return Jl || (Jl = 1, Ji = Function.prototype.apply), Ji;
|
|
5464
|
-
}
|
|
5465
|
-
var w0 = typeof Reflect < "u" && Reflect && Reflect.apply, b0 = as, _0 = Ao(), v0 = Oo, x0 = w0, Zc = x0 || b0.call(v0, _0), k0 = as, P0 = ss, E0 = Oo, S0 = Zc, $o = function(t) {
|
|
5472
|
+
}, g0 = y0, ls = Function.prototype.bind || g0, Ro = Function.prototype.call, Fo = Function.prototype.apply, w0 = typeof Reflect < "u" && Reflect && Reflect.apply, b0 = ls, _0 = Fo, v0 = Ro, x0 = w0, Zc = x0 || b0.call(v0, _0), k0 = ls, P0 = as, E0 = Ro, S0 = Zc, Io = function(t) {
|
|
5466
5473
|
if (t.length < 1 || typeof t[0] != "function")
|
|
5467
5474
|
throw new P0("a function is required");
|
|
5468
5475
|
return S0(k0, E0, t);
|
|
5469
|
-
},
|
|
5476
|
+
}, ra, Ql;
|
|
5470
5477
|
function T0() {
|
|
5471
|
-
if (Ql) return
|
|
5478
|
+
if (Ql) return ra;
|
|
5472
5479
|
Ql = 1;
|
|
5473
|
-
var e =
|
|
5480
|
+
var e = Io, t = os, r;
|
|
5474
5481
|
try {
|
|
5475
5482
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
5476
5483
|
[].__proto__ === Array.prototype;
|
|
@@ -5483,19 +5490,19 @@ function T0() {
|
|
|
5483
5490
|
/** @type {keyof typeof Object.prototype} */
|
|
5484
5491
|
"__proto__"
|
|
5485
5492
|
), a = Object, s = a.getPrototypeOf;
|
|
5486
|
-
return
|
|
5493
|
+
return ra = i && typeof i.get == "function" ? e([i.get]) : typeof s == "function" ? (
|
|
5487
5494
|
/** @type {import('./get')} */
|
|
5488
5495
|
function(o) {
|
|
5489
5496
|
return s(o == null ? o : a(o));
|
|
5490
5497
|
}
|
|
5491
|
-
) : !1,
|
|
5498
|
+
) : !1, ra;
|
|
5492
5499
|
}
|
|
5493
|
-
var
|
|
5500
|
+
var na, ef;
|
|
5494
5501
|
function Gc() {
|
|
5495
|
-
if (ef) return
|
|
5502
|
+
if (ef) return na;
|
|
5496
5503
|
ef = 1;
|
|
5497
5504
|
var e = Hc(), t = Vc(), r = T0();
|
|
5498
|
-
return
|
|
5505
|
+
return na = e ? function(a) {
|
|
5499
5506
|
return e(a);
|
|
5500
5507
|
} : t ? function(a) {
|
|
5501
5508
|
if (!a || typeof a != "object" && typeof a != "function")
|
|
@@ -5503,33 +5510,33 @@ function Gc() {
|
|
|
5503
5510
|
return t(a);
|
|
5504
5511
|
} : r ? function(a) {
|
|
5505
5512
|
return r(a);
|
|
5506
|
-
} : null,
|
|
5513
|
+
} : null, na;
|
|
5507
5514
|
}
|
|
5508
|
-
var
|
|
5515
|
+
var sa, tf;
|
|
5509
5516
|
function O0() {
|
|
5510
|
-
if (tf) return
|
|
5517
|
+
if (tf) return sa;
|
|
5511
5518
|
tf = 1;
|
|
5512
|
-
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r =
|
|
5513
|
-
return
|
|
5519
|
+
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = ls;
|
|
5520
|
+
return sa = r.call(e, t), sa;
|
|
5514
5521
|
}
|
|
5515
|
-
var ye, A0 = Mc, $0 = Gy, R0 = Yy, F0 = Ky, I0 = Xy,
|
|
5522
|
+
var ye, A0 = Mc, $0 = Gy, R0 = Yy, F0 = Ky, I0 = Xy, pn = Wc, on = as, L0 = Jy, C0 = Qy, N0 = e0, D0 = t0, j0 = r0, U0 = n0, B0 = s0, q0 = o0, Yc = Function, ia = function(e) {
|
|
5516
5523
|
try {
|
|
5517
5524
|
return Yc('"use strict"; return (' + e + ").constructor;")();
|
|
5518
5525
|
} catch {
|
|
5519
5526
|
}
|
|
5520
|
-
}, Mn =
|
|
5527
|
+
}, Mn = os, M0 = wi, aa = function() {
|
|
5521
5528
|
throw new on();
|
|
5522
5529
|
}, W0 = Mn ? function() {
|
|
5523
5530
|
try {
|
|
5524
|
-
return arguments.callee,
|
|
5531
|
+
return arguments.callee, aa;
|
|
5525
5532
|
} catch {
|
|
5526
5533
|
try {
|
|
5527
5534
|
return Mn(arguments, "callee").get;
|
|
5528
5535
|
} catch {
|
|
5529
|
-
return
|
|
5536
|
+
return aa;
|
|
5530
5537
|
}
|
|
5531
5538
|
}
|
|
5532
|
-
}() :
|
|
5539
|
+
}() : aa, Zr = f0()(), Ze = Gc(), z0 = Vc(), H0 = Hc(), Kc = Fo, fs = Ro, Jr = {}, V0 = typeof Uint8Array > "u" || !Ze ? ye : Ze(Uint8Array), $r = {
|
|
5533
5540
|
__proto__: null,
|
|
5534
5541
|
"%AggregateError%": typeof AggregateError > "u" ? ye : AggregateError,
|
|
5535
5542
|
"%Array%": Array,
|
|
@@ -5588,7 +5595,7 @@ var ye, A0 = Mc, $0 = Gy, R0 = Yy, F0 = Ky, I0 = Xy, cn = Wc, on = ss, L0 = Jy,
|
|
|
5588
5595
|
"%String%": String,
|
|
5589
5596
|
"%StringIteratorPrototype%": Zr && Ze ? Ze(""[Symbol.iterator]()) : ye,
|
|
5590
5597
|
"%Symbol%": Zr ? Symbol : ye,
|
|
5591
|
-
"%SyntaxError%":
|
|
5598
|
+
"%SyntaxError%": pn,
|
|
5592
5599
|
"%ThrowTypeError%": W0,
|
|
5593
5600
|
"%TypedArray%": V0,
|
|
5594
5601
|
"%TypeError%": on,
|
|
@@ -5600,7 +5607,7 @@ var ye, A0 = Mc, $0 = Gy, R0 = Yy, F0 = Ky, I0 = Xy, cn = Wc, on = ss, L0 = Jy,
|
|
|
5600
5607
|
"%WeakMap%": typeof WeakMap > "u" ? ye : WeakMap,
|
|
5601
5608
|
"%WeakRef%": typeof WeakRef > "u" ? ye : WeakRef,
|
|
5602
5609
|
"%WeakSet%": typeof WeakSet > "u" ? ye : WeakSet,
|
|
5603
|
-
"%Function.prototype.call%":
|
|
5610
|
+
"%Function.prototype.call%": fs,
|
|
5604
5611
|
"%Function.prototype.apply%": Kc,
|
|
5605
5612
|
"%Object.defineProperty%": M0,
|
|
5606
5613
|
"%Object.getPrototypeOf%": z0,
|
|
@@ -5623,11 +5630,11 @@ if (Ze)
|
|
|
5623
5630
|
var G0 = function e(t) {
|
|
5624
5631
|
var r;
|
|
5625
5632
|
if (t === "%AsyncFunction%")
|
|
5626
|
-
r =
|
|
5633
|
+
r = ia("async function () {}");
|
|
5627
5634
|
else if (t === "%GeneratorFunction%")
|
|
5628
|
-
r =
|
|
5635
|
+
r = ia("function* () {}");
|
|
5629
5636
|
else if (t === "%AsyncGeneratorFunction%")
|
|
5630
|
-
r =
|
|
5637
|
+
r = ia("async function* () {}");
|
|
5631
5638
|
else if (t === "%AsyncGenerator%") {
|
|
5632
5639
|
var i = e("%AsyncGeneratorFunction%");
|
|
5633
5640
|
i && (r = i.prototype);
|
|
@@ -5689,19 +5696,19 @@ var G0 = function e(t) {
|
|
|
5689
5696
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
5690
5697
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
5691
5698
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
5692
|
-
},
|
|
5693
|
-
var r =
|
|
5699
|
+
}, ps = ls, ti = O0(), Y0 = ps.call(fs, Array.prototype.concat), K0 = ps.call(Kc, Array.prototype.splice), nf = ps.call(fs, String.prototype.replace), ri = ps.call(fs, String.prototype.slice), X0 = ps.call(fs, RegExp.prototype.exec), J0 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Q0 = /\\(\\)?/g, eg = function(t) {
|
|
5700
|
+
var r = ri(t, 0, 1), i = ri(t, -1);
|
|
5694
5701
|
if (r === "%" && i !== "%")
|
|
5695
|
-
throw new
|
|
5702
|
+
throw new pn("invalid intrinsic syntax, expected closing `%`");
|
|
5696
5703
|
if (i === "%" && r !== "%")
|
|
5697
|
-
throw new
|
|
5704
|
+
throw new pn("invalid intrinsic syntax, expected opening `%`");
|
|
5698
5705
|
var a = [];
|
|
5699
5706
|
return nf(t, J0, function(s, n, o, l) {
|
|
5700
5707
|
a[a.length] = o ? nf(l, Q0, "$1") : n || s;
|
|
5701
5708
|
}), a;
|
|
5702
5709
|
}, tg = function(t, r) {
|
|
5703
5710
|
var i = t, a;
|
|
5704
|
-
if (
|
|
5711
|
+
if (ti(rf, i) && (a = rf[i], i = "%" + a[0] + "%"), ti($r, i)) {
|
|
5705
5712
|
var s = $r[i];
|
|
5706
5713
|
if (s === Jr && (s = G0(i)), typeof s > "u" && !r)
|
|
5707
5714
|
throw new on("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
@@ -5711,21 +5718,21 @@ var G0 = function e(t) {
|
|
|
5711
5718
|
value: s
|
|
5712
5719
|
};
|
|
5713
5720
|
}
|
|
5714
|
-
throw new
|
|
5721
|
+
throw new pn("intrinsic " + t + " does not exist!");
|
|
5715
5722
|
}, Xc = function(t, r) {
|
|
5716
5723
|
if (typeof t != "string" || t.length === 0)
|
|
5717
5724
|
throw new on("intrinsic name must be a non-empty string");
|
|
5718
5725
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
5719
5726
|
throw new on('"allowMissing" argument must be a boolean');
|
|
5720
5727
|
if (X0(/^%?[^%]*%?$/, t) === null)
|
|
5721
|
-
throw new
|
|
5728
|
+
throw new pn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
5722
5729
|
var i = eg(t), a = i.length > 0 ? i[0] : "", s = tg("%" + a + "%", r), n = s.name, o = s.value, l = !1, p = s.alias;
|
|
5723
5730
|
p && (a = p[0], K0(i, Y0([0, 1], p)));
|
|
5724
5731
|
for (var c = 1, h = !0; c < i.length; c += 1) {
|
|
5725
|
-
var m = i[c], g =
|
|
5732
|
+
var m = i[c], g = ri(m, 0, 1), A = ri(m, -1);
|
|
5726
5733
|
if ((g === '"' || g === "'" || g === "`" || A === '"' || A === "'" || A === "`") && g !== A)
|
|
5727
|
-
throw new
|
|
5728
|
-
if ((m === "constructor" || !h) && (l = !0), a += "." + m, n = "%" + a + "%",
|
|
5734
|
+
throw new pn("property names with quotes must have matching quotes");
|
|
5735
|
+
if ((m === "constructor" || !h) && (l = !0), a += "." + m, n = "%" + a + "%", ti($r, n))
|
|
5729
5736
|
o = $r[n];
|
|
5730
5737
|
else if (o != null) {
|
|
5731
5738
|
if (!(m in o)) {
|
|
@@ -5737,12 +5744,12 @@ var G0 = function e(t) {
|
|
|
5737
5744
|
var y = Mn(o, m);
|
|
5738
5745
|
h = !!y, h && "get" in y && !("originalValue" in y.get) ? o = y.get : o = o[m];
|
|
5739
5746
|
} else
|
|
5740
|
-
h =
|
|
5747
|
+
h = ti(o, m), o = o[m];
|
|
5741
5748
|
h && !l && ($r[n] = o);
|
|
5742
5749
|
}
|
|
5743
5750
|
}
|
|
5744
5751
|
return o;
|
|
5745
|
-
}, Jc = Xc, Qc =
|
|
5752
|
+
}, Jc = Xc, Qc = Io, rg = Qc([Jc("%String.prototype.indexOf%")]), eu = function(t, r) {
|
|
5746
5753
|
var i = (
|
|
5747
5754
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
5748
5755
|
Jc(t, !!r)
|
|
@@ -5751,9 +5758,9 @@ var G0 = function e(t) {
|
|
|
5751
5758
|
/** @type {const} */
|
|
5752
5759
|
[i]
|
|
5753
5760
|
) : i;
|
|
5754
|
-
},
|
|
5761
|
+
}, oa, sf;
|
|
5755
5762
|
function ng() {
|
|
5756
|
-
if (sf) return
|
|
5763
|
+
if (sf) return oa;
|
|
5757
5764
|
sf = 1;
|
|
5758
5765
|
var e = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, r, i;
|
|
5759
5766
|
if (typeof t == "function" && typeof Object.defineProperty == "function")
|
|
@@ -5798,7 +5805,7 @@ function ng() {
|
|
|
5798
5805
|
return !1;
|
|
5799
5806
|
});
|
|
5800
5807
|
}
|
|
5801
|
-
return
|
|
5808
|
+
return oa = t ? function(P) {
|
|
5802
5809
|
if (w(P))
|
|
5803
5810
|
return !0;
|
|
5804
5811
|
if (!P || typeof P != "function" && typeof P != "object")
|
|
@@ -5821,11 +5828,11 @@ function ng() {
|
|
|
5821
5828
|
return !1;
|
|
5822
5829
|
var L = o.call(P);
|
|
5823
5830
|
return L !== p && L !== c && !/^\[object HTML/.test(L) ? !1 : n(P);
|
|
5824
|
-
},
|
|
5831
|
+
}, oa;
|
|
5825
5832
|
}
|
|
5826
|
-
var
|
|
5833
|
+
var la, af;
|
|
5827
5834
|
function sg() {
|
|
5828
|
-
if (af) return
|
|
5835
|
+
if (af) return la;
|
|
5829
5836
|
af = 1;
|
|
5830
5837
|
var e = ng(), t = Object.prototype.toString, r = Object.prototype.hasOwnProperty, i = function(l, p, c) {
|
|
5831
5838
|
for (var h = 0, m = l.length; h < m; h++)
|
|
@@ -5840,16 +5847,16 @@ function sg() {
|
|
|
5840
5847
|
function n(o) {
|
|
5841
5848
|
return t.call(o) === "[object Array]";
|
|
5842
5849
|
}
|
|
5843
|
-
return
|
|
5850
|
+
return la = function(l, p, c) {
|
|
5844
5851
|
if (!e(p))
|
|
5845
5852
|
throw new TypeError("iterator must be a function");
|
|
5846
5853
|
var h;
|
|
5847
5854
|
arguments.length >= 3 && (h = c), n(l) ? i(l, p, h) : typeof l == "string" ? a(l, p, h) : s(l, p, h);
|
|
5848
|
-
},
|
|
5855
|
+
}, la;
|
|
5849
5856
|
}
|
|
5850
|
-
var
|
|
5857
|
+
var fa, of;
|
|
5851
5858
|
function ig() {
|
|
5852
|
-
return of || (of = 1,
|
|
5859
|
+
return of || (of = 1, fa = [
|
|
5853
5860
|
"Float16Array",
|
|
5854
5861
|
"Float32Array",
|
|
5855
5862
|
"Float64Array",
|
|
@@ -5862,25 +5869,25 @@ function ig() {
|
|
|
5862
5869
|
"Uint32Array",
|
|
5863
5870
|
"BigInt64Array",
|
|
5864
5871
|
"BigUint64Array"
|
|
5865
|
-
]),
|
|
5872
|
+
]), fa;
|
|
5866
5873
|
}
|
|
5867
|
-
var
|
|
5874
|
+
var pa, lf;
|
|
5868
5875
|
function ag() {
|
|
5869
|
-
if (lf) return
|
|
5876
|
+
if (lf) return pa;
|
|
5870
5877
|
lf = 1;
|
|
5871
5878
|
var e = ig(), t = typeof globalThis > "u" ? Cp : globalThis;
|
|
5872
|
-
return
|
|
5879
|
+
return pa = function() {
|
|
5873
5880
|
for (var i = [], a = 0; a < e.length; a++)
|
|
5874
5881
|
typeof t[e[a]] == "function" && (i[i.length] = e[a]);
|
|
5875
5882
|
return i;
|
|
5876
|
-
},
|
|
5883
|
+
}, pa;
|
|
5877
5884
|
}
|
|
5878
|
-
var
|
|
5885
|
+
var ca = { exports: {} }, ua, ff;
|
|
5879
5886
|
function og() {
|
|
5880
|
-
if (ff) return
|
|
5887
|
+
if (ff) return ua;
|
|
5881
5888
|
ff = 1;
|
|
5882
|
-
var e =
|
|
5883
|
-
return
|
|
5889
|
+
var e = wi, t = Wc, r = as, i = os;
|
|
5890
|
+
return ua = function(s, n, o) {
|
|
5884
5891
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
5885
5892
|
throw new r("`obj` must be an object or a function`");
|
|
5886
5893
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -5905,13 +5912,13 @@ function og() {
|
|
|
5905
5912
|
s[n] = o;
|
|
5906
5913
|
else
|
|
5907
5914
|
throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
5908
|
-
},
|
|
5915
|
+
}, ua;
|
|
5909
5916
|
}
|
|
5910
|
-
var
|
|
5917
|
+
var da, pf;
|
|
5911
5918
|
function lg() {
|
|
5912
|
-
if (pf) return
|
|
5919
|
+
if (pf) return da;
|
|
5913
5920
|
pf = 1;
|
|
5914
|
-
var e =
|
|
5921
|
+
var e = wi, t = function() {
|
|
5915
5922
|
return !!e;
|
|
5916
5923
|
};
|
|
5917
5924
|
return t.hasArrayLengthDefineBug = function() {
|
|
@@ -5922,14 +5929,14 @@ function lg() {
|
|
|
5922
5929
|
} catch {
|
|
5923
5930
|
return !0;
|
|
5924
5931
|
}
|
|
5925
|
-
},
|
|
5932
|
+
}, da = t, da;
|
|
5926
5933
|
}
|
|
5927
|
-
var
|
|
5934
|
+
var ha, cf;
|
|
5928
5935
|
function fg() {
|
|
5929
|
-
if (cf) return
|
|
5936
|
+
if (cf) return ha;
|
|
5930
5937
|
cf = 1;
|
|
5931
|
-
var e = Xc, t = og(), r = lg()(), i =
|
|
5932
|
-
return
|
|
5938
|
+
var e = Xc, t = og(), r = lg()(), i = os, a = as, s = e("%Math.floor%");
|
|
5939
|
+
return ha = function(o, l) {
|
|
5933
5940
|
if (typeof o != "function")
|
|
5934
5941
|
throw new a("`fn` is not a function");
|
|
5935
5942
|
if (typeof l != "number" || l < 0 || l > 4294967295 || s(l) !== l)
|
|
@@ -5952,21 +5959,21 @@ function fg() {
|
|
|
5952
5959
|
"length",
|
|
5953
5960
|
l
|
|
5954
5961
|
)), o;
|
|
5955
|
-
},
|
|
5962
|
+
}, ha;
|
|
5956
5963
|
}
|
|
5957
|
-
var
|
|
5964
|
+
var ma, uf;
|
|
5958
5965
|
function pg() {
|
|
5959
|
-
if (uf) return
|
|
5966
|
+
if (uf) return ma;
|
|
5960
5967
|
uf = 1;
|
|
5961
|
-
var e =
|
|
5962
|
-
return
|
|
5968
|
+
var e = ls, t = Fo, r = Zc;
|
|
5969
|
+
return ma = function() {
|
|
5963
5970
|
return r(e, t, arguments);
|
|
5964
|
-
},
|
|
5971
|
+
}, ma;
|
|
5965
5972
|
}
|
|
5966
5973
|
var df;
|
|
5967
5974
|
function cg() {
|
|
5968
5975
|
return df || (df = 1, function(e) {
|
|
5969
|
-
var t = fg(), r =
|
|
5976
|
+
var t = fg(), r = wi, i = Io, a = pg();
|
|
5970
5977
|
e.exports = function(n) {
|
|
5971
5978
|
var o = i(arguments), l = n.length - (arguments.length - 1);
|
|
5972
5979
|
return t(
|
|
@@ -5975,22 +5982,22 @@ function cg() {
|
|
|
5975
5982
|
!0
|
|
5976
5983
|
);
|
|
5977
5984
|
}, r ? r(e.exports, "apply", { value: a }) : e.exports.apply = a;
|
|
5978
|
-
}(
|
|
5985
|
+
}(ca)), ca.exports;
|
|
5979
5986
|
}
|
|
5980
|
-
var
|
|
5987
|
+
var ya, hf;
|
|
5981
5988
|
function ug() {
|
|
5982
|
-
if (hf) return
|
|
5989
|
+
if (hf) return ya;
|
|
5983
5990
|
hf = 1;
|
|
5984
5991
|
var e = zc();
|
|
5985
|
-
return
|
|
5992
|
+
return ya = function() {
|
|
5986
5993
|
return e() && !!Symbol.toStringTag;
|
|
5987
|
-
},
|
|
5994
|
+
}, ya;
|
|
5988
5995
|
}
|
|
5989
|
-
var
|
|
5996
|
+
var ga, mf;
|
|
5990
5997
|
function dg() {
|
|
5991
|
-
if (mf) return
|
|
5998
|
+
if (mf) return ga;
|
|
5992
5999
|
mf = 1;
|
|
5993
|
-
var e = sg(), t = ag(), r = cg(), i = eu, a =
|
|
6000
|
+
var e = sg(), t = ag(), r = cg(), i = eu, a = os, s = Gc(), n = i("Object.prototype.toString"), o = ug()(), l = typeof globalThis > "u" ? Cp : globalThis, p = t(), c = i("String.prototype.slice"), h = i("Array.prototype.indexOf", !0) || function(w, b) {
|
|
5994
6001
|
for (var O = 0; O < w.length; O += 1)
|
|
5995
6002
|
if (w[O] === b)
|
|
5996
6003
|
return O;
|
|
@@ -6057,7 +6064,7 @@ function dg() {
|
|
|
6057
6064
|
}
|
|
6058
6065
|
), b;
|
|
6059
6066
|
};
|
|
6060
|
-
return
|
|
6067
|
+
return ga = function(w) {
|
|
6061
6068
|
if (!w || typeof w != "object")
|
|
6062
6069
|
return !1;
|
|
6063
6070
|
if (!o) {
|
|
@@ -6065,22 +6072,22 @@ function dg() {
|
|
|
6065
6072
|
return h(p, b) > -1 ? b : b !== "Object" ? !1 : A(w);
|
|
6066
6073
|
}
|
|
6067
6074
|
return a ? g(w) : null;
|
|
6068
|
-
},
|
|
6075
|
+
}, ga;
|
|
6069
6076
|
}
|
|
6070
|
-
var
|
|
6077
|
+
var wa, yf;
|
|
6071
6078
|
function hg() {
|
|
6072
|
-
if (yf) return
|
|
6079
|
+
if (yf) return wa;
|
|
6073
6080
|
yf = 1;
|
|
6074
6081
|
var e = dg();
|
|
6075
|
-
return
|
|
6082
|
+
return wa = function(r) {
|
|
6076
6083
|
return !!e(r);
|
|
6077
|
-
},
|
|
6084
|
+
}, wa;
|
|
6078
6085
|
}
|
|
6079
|
-
var mg =
|
|
6086
|
+
var mg = as, yg = eu, gg = yg("TypedArray.prototype.buffer", !0), wg = hg(), bg = gg || function(t) {
|
|
6080
6087
|
if (!wg(t))
|
|
6081
6088
|
throw new mg("Not a Typed Array");
|
|
6082
6089
|
return t.buffer;
|
|
6083
|
-
}, Lt =
|
|
6090
|
+
}, Lt = $o.Buffer, _g = Zy, vg = bg, xg = ArrayBuffer.isView || function(t) {
|
|
6084
6091
|
try {
|
|
6085
6092
|
return vg(t), !0;
|
|
6086
6093
|
} catch {
|
|
@@ -6115,11 +6122,11 @@ var mg = ss, yg = eu, gg = yg("TypedArray.prototype.buffer", !0), wg = hg(), bg
|
|
|
6115
6122
|
if (n || Lt.isBuffer(t) && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t))
|
|
6116
6123
|
return Lt.from(t);
|
|
6117
6124
|
throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
|
|
6118
|
-
}, Sg =
|
|
6119
|
-
function
|
|
6125
|
+
}, Sg = $o.Buffer, Tg = Eg;
|
|
6126
|
+
function bi(e, t) {
|
|
6120
6127
|
this._block = Sg.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
|
|
6121
6128
|
}
|
|
6122
|
-
|
|
6129
|
+
bi.prototype.update = function(e, t) {
|
|
6123
6130
|
e = Tg(e, t || "utf8");
|
|
6124
6131
|
for (var r = this._block, i = this._blockSize, a = e.length, s = this._len, n = 0; n < a; ) {
|
|
6125
6132
|
for (var o = s % i, l = Math.min(a - n, i - o), p = 0; p < l; p++)
|
|
@@ -6128,7 +6135,7 @@ gi.prototype.update = function(e, t) {
|
|
|
6128
6135
|
}
|
|
6129
6136
|
return this._len += a, this;
|
|
6130
6137
|
};
|
|
6131
|
-
|
|
6138
|
+
bi.prototype.digest = function(e) {
|
|
6132
6139
|
var t = this._len % this._blockSize;
|
|
6133
6140
|
this._block[t] = 128, this._block.fill(0, t + 1), t >= this._finalSize && (this._update(this._block), this._block.fill(0));
|
|
6134
6141
|
var r = this._len * 8;
|
|
@@ -6142,20 +6149,20 @@ gi.prototype.digest = function(e) {
|
|
|
6142
6149
|
var s = this._hash();
|
|
6143
6150
|
return e ? s.toString(e) : s;
|
|
6144
6151
|
};
|
|
6145
|
-
|
|
6152
|
+
bi.prototype._update = function() {
|
|
6146
6153
|
throw new Error("_update must be implemented by subclass");
|
|
6147
6154
|
};
|
|
6148
|
-
var Og =
|
|
6155
|
+
var Og = bi, Ag = Dy, ru = Og, $g = $o.Buffer, Rg = [
|
|
6149
6156
|
1518500249,
|
|
6150
6157
|
1859775393,
|
|
6151
6158
|
-1894007588,
|
|
6152
6159
|
-899497514
|
|
6153
6160
|
], Fg = new Array(80);
|
|
6154
|
-
function
|
|
6161
|
+
function cs() {
|
|
6155
6162
|
this.init(), this._w = Fg, ru.call(this, 64, 56);
|
|
6156
6163
|
}
|
|
6157
|
-
Ag(
|
|
6158
|
-
|
|
6164
|
+
Ag(cs, ru);
|
|
6165
|
+
cs.prototype.init = function() {
|
|
6159
6166
|
return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
|
|
6160
6167
|
};
|
|
6161
6168
|
function Ig(e) {
|
|
@@ -6170,7 +6177,7 @@ function Cg(e) {
|
|
|
6170
6177
|
function Ng(e, t, r, i) {
|
|
6171
6178
|
return e === 0 ? t & r | ~t & i : e === 2 ? t & r | t & i | r & i : t ^ r ^ i;
|
|
6172
6179
|
}
|
|
6173
|
-
|
|
6180
|
+
cs.prototype._update = function(e) {
|
|
6174
6181
|
for (var t = this._w, r = this._a | 0, i = this._b | 0, a = this._c | 0, s = this._d | 0, n = this._e | 0, o = 0; o < 16; ++o)
|
|
6175
6182
|
t[o] = e.readInt32BE(o * 4);
|
|
6176
6183
|
for (; o < 80; ++o)
|
|
@@ -6181,21 +6188,21 @@ fs.prototype._update = function(e) {
|
|
|
6181
6188
|
}
|
|
6182
6189
|
this._a = r + this._a | 0, this._b = i + this._b | 0, this._c = a + this._c | 0, this._d = s + this._d | 0, this._e = n + this._e | 0;
|
|
6183
6190
|
};
|
|
6184
|
-
|
|
6191
|
+
cs.prototype._hash = function() {
|
|
6185
6192
|
var e = $g.allocUnsafe(20);
|
|
6186
6193
|
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;
|
|
6187
6194
|
};
|
|
6188
|
-
var Dg =
|
|
6189
|
-
const jg = /* @__PURE__ */
|
|
6195
|
+
var Dg = cs;
|
|
6196
|
+
const jg = /* @__PURE__ */ co(Dg);
|
|
6190
6197
|
function Ug(e) {
|
|
6191
6198
|
let t = "";
|
|
6192
6199
|
for (const r of new Uint8Array(e))
|
|
6193
6200
|
r < 16 && (t += "0"), t += r.toString(16);
|
|
6194
6201
|
return t;
|
|
6195
6202
|
}
|
|
6196
|
-
let
|
|
6197
|
-
async function
|
|
6198
|
-
return
|
|
6203
|
+
let ba = null;
|
|
6204
|
+
async function ni(e) {
|
|
6205
|
+
return ba === null && (ba = await qg()), ba ? nu(e) : Bg(e);
|
|
6199
6206
|
}
|
|
6200
6207
|
function Bg(e) {
|
|
6201
6208
|
return new jg().update(e).digest("hex");
|
|
@@ -6228,7 +6235,7 @@ function Wg(e, t) {
|
|
|
6228
6235
|
while (a & 128);
|
|
6229
6236
|
return r;
|
|
6230
6237
|
}
|
|
6231
|
-
class
|
|
6238
|
+
class cn {
|
|
6232
6239
|
constructor(t) {
|
|
6233
6240
|
Object.assign(this, t), this.offsetCache = {};
|
|
6234
6241
|
}
|
|
@@ -6256,7 +6263,7 @@ class un {
|
|
|
6256
6263
|
for (let c = 0; c < n; c++)
|
|
6257
6264
|
l.set(o[c], i.readUInt32BE());
|
|
6258
6265
|
const p = i.slice(20).toString("hex");
|
|
6259
|
-
return new
|
|
6266
|
+
return new cn({
|
|
6260
6267
|
hashes: o,
|
|
6261
6268
|
crcs: {},
|
|
6262
6269
|
offsets: l,
|
|
@@ -6299,7 +6306,7 @@ class un {
|
|
|
6299
6306
|
const O = w + 1 === m.length ? t.byteLength - 20 : m[w + 1], P = s[b], L = Uh.buf(t.slice(b, O)) >>> 0;
|
|
6300
6307
|
P.end = O, P.crc = L;
|
|
6301
6308
|
}
|
|
6302
|
-
const g = new
|
|
6309
|
+
const g = new cn({
|
|
6303
6310
|
pack: Promise.resolve(t),
|
|
6304
6311
|
packfileSha: n,
|
|
6305
6312
|
crcs: l,
|
|
@@ -6324,7 +6331,7 @@ class un {
|
|
|
6324
6331
|
g.readDepth = 0, g.externalReadDepth = 0;
|
|
6325
6332
|
const { type: P, object: L } = await g.readSlice({ start: w });
|
|
6326
6333
|
y[g.readDepth] += 1;
|
|
6327
|
-
const $ = await
|
|
6334
|
+
const $ = await ni(Bh.wrap({ type: P, object: L }));
|
|
6328
6335
|
O.oid = $, o.push($), p.set($, w), l[$] = O.crc;
|
|
6329
6336
|
} catch {
|
|
6330
6337
|
continue;
|
|
@@ -6355,7 +6362,7 @@ class un {
|
|
|
6355
6362
|
for (const p of this.hashes)
|
|
6356
6363
|
s.writeUInt32BE(this.offsets.get(p));
|
|
6357
6364
|
t.push(s.buffer), r(this.packfileSha, "hex");
|
|
6358
|
-
const n = Buffer.concat(t), o = await
|
|
6365
|
+
const n = Buffer.concat(t), o = await ni(n), l = Buffer.alloc(20);
|
|
6359
6366
|
return l.write(o, "hex"), Buffer.concat([n, l]);
|
|
6360
6367
|
}
|
|
6361
6368
|
async load({ pack: t }) {
|
|
@@ -6413,7 +6420,7 @@ class un {
|
|
|
6413
6420
|
return h && (m = Buffer.from(qh(m, h))), this.readDepth > 3 && (this.offsetCache[t] = { type: o, object: m }), { type: o, format: "content", object: m };
|
|
6414
6421
|
}
|
|
6415
6422
|
}
|
|
6416
|
-
class Wn extends
|
|
6423
|
+
class Wn extends dn {
|
|
6417
6424
|
/**
|
|
6418
6425
|
* @param {string} value
|
|
6419
6426
|
*/
|
|
@@ -6422,7 +6429,7 @@ class Wn extends hn {
|
|
|
6422
6429
|
}
|
|
6423
6430
|
}
|
|
6424
6431
|
Wn.code = "InvalidOidError";
|
|
6425
|
-
class
|
|
6432
|
+
class _i extends dn {
|
|
6426
6433
|
/**
|
|
6427
6434
|
* @param {string} oid
|
|
6428
6435
|
* @param {'blob'|'commit'|'tag'|'tree'} actual
|
|
@@ -6432,10 +6439,10 @@ class wi extends hn {
|
|
|
6432
6439
|
constructor(t, r, i, a) {
|
|
6433
6440
|
super(
|
|
6434
6441
|
`Object ${t} ${a ? `at ${a}` : ""}was anticipated to be a ${i} but it is a ${r}.`
|
|
6435
|
-
), this.code = this.name =
|
|
6442
|
+
), this.code = this.name = _i.code, this.data = { oid: t, actual: r, expected: i, filepath: a };
|
|
6436
6443
|
}
|
|
6437
6444
|
}
|
|
6438
|
-
|
|
6445
|
+
_i.code = "ObjectTypeError";
|
|
6439
6446
|
function zg(e) {
|
|
6440
6447
|
let t = e > 0 ? e >> 12 : 0;
|
|
6441
6448
|
t !== 4 && t !== 8 && t !== 10 && t !== 14 && (t = 8);
|
|
@@ -6518,7 +6525,7 @@ class Sr {
|
|
|
6518
6525
|
const r = new Sr(), i = new Zt(t), a = i.toString("utf8", 4);
|
|
6519
6526
|
if (a !== "DIRC")
|
|
6520
6527
|
throw new Ee(`Invalid dircache magic file number: ${a}`);
|
|
6521
|
-
const s = await
|
|
6528
|
+
const s = await ni(t.slice(0, -20)), n = t.slice(-20).toString("hex");
|
|
6522
6529
|
if (n !== s)
|
|
6523
6530
|
throw new Ee(
|
|
6524
6531
|
`Invalid checksum in GitIndex buffer: expected ${n} but saw ${s}`
|
|
@@ -6537,7 +6544,7 @@ class Sr {
|
|
|
6537
6544
|
if (m < 1)
|
|
6538
6545
|
throw new Ee(`Got a path length of: ${m}`);
|
|
6539
6546
|
if (c.path = i.toString("utf8", m), c.path.includes("..\\") || c.path.includes("../"))
|
|
6540
|
-
throw new
|
|
6547
|
+
throw new ts(c.path);
|
|
6541
6548
|
let g = 8 - (i.tell() - 12) % 8;
|
|
6542
6549
|
for (g === 0 && (g = 8); g--; ) {
|
|
6543
6550
|
const A = i.readUInt8();
|
|
@@ -6638,7 +6645,7 @@ class Sr {
|
|
|
6638
6645
|
for (const l of o.stages)
|
|
6639
6646
|
l && l !== o && i.push(Sr._entryToBuffer(l));
|
|
6640
6647
|
i = await Promise.all(i);
|
|
6641
|
-
const a = Buffer.concat(i), s = Buffer.concat([t, a]), n = await
|
|
6648
|
+
const a = Buffer.concat(i), s = Buffer.concat([t, a]), n = await ni(s);
|
|
6642
6649
|
return Buffer.concat([s, Buffer.from(n, "hex")]);
|
|
6643
6650
|
}
|
|
6644
6651
|
}
|
|
@@ -6662,7 +6669,7 @@ async function zn(e) {
|
|
|
6662
6669
|
i.set(s, a), a += s.byteLength;
|
|
6663
6670
|
return i;
|
|
6664
6671
|
}
|
|
6665
|
-
class
|
|
6672
|
+
class _a {
|
|
6666
6673
|
constructor() {
|
|
6667
6674
|
this._queue = [];
|
|
6668
6675
|
}
|
|
@@ -6700,7 +6707,7 @@ class ga {
|
|
|
6700
6707
|
}
|
|
6701
6708
|
class Zg {
|
|
6702
6709
|
static demux(t) {
|
|
6703
|
-
const r = Ke.streamReader(t), i = new
|
|
6710
|
+
const r = Ke.streamReader(t), i = new _a(), a = new _a(), s = new _a(), n = async function() {
|
|
6704
6711
|
const o = await r();
|
|
6705
6712
|
if (o === null) return n();
|
|
6706
6713
|
if (o === !0) {
|
|
@@ -6822,7 +6829,7 @@ async function iu(e) {
|
|
|
6822
6829
|
});
|
|
6823
6830
|
});
|
|
6824
6831
|
}
|
|
6825
|
-
typeof globalThis.Buffer > "u" && (globalThis.Buffer =
|
|
6832
|
+
typeof globalThis.Buffer > "u" && (globalThis.Buffer = Oo.Buffer);
|
|
6826
6833
|
class Hn extends Error {
|
|
6827
6834
|
constructor(t, r) {
|
|
6828
6835
|
super(
|
|
@@ -6886,7 +6893,7 @@ async function Xg(e, t, r = {}) {
|
|
|
6886
6893
|
const i = await Qg(e, t);
|
|
6887
6894
|
if (i.resolvedOid)
|
|
6888
6895
|
return i.resolvedOid;
|
|
6889
|
-
const a = await
|
|
6896
|
+
const a = await to(e, i.refname, r);
|
|
6890
6897
|
if (!a)
|
|
6891
6898
|
throw new Error(`Git ref "${i.refname}" not found at ${e}`);
|
|
6892
6899
|
return a;
|
|
@@ -6985,14 +6992,14 @@ async function Qg(e, t) {
|
|
|
6985
6992
|
refname: i,
|
|
6986
6993
|
resolvedOid: i
|
|
6987
6994
|
};
|
|
6988
|
-
const a = `refs/heads/${i}`, s = await
|
|
6995
|
+
const a = `refs/heads/${i}`, s = await to(e, a);
|
|
6989
6996
|
if (s)
|
|
6990
6997
|
return {
|
|
6991
6998
|
kind: "refname",
|
|
6992
6999
|
refname: a,
|
|
6993
7000
|
resolvedOid: s
|
|
6994
7001
|
};
|
|
6995
|
-
const n = `refs/tags/${i}`, o = await
|
|
7002
|
+
const n = `refs/tags/${i}`, o = await to(e, n);
|
|
6996
7003
|
if (o)
|
|
6997
7004
|
return {
|
|
6998
7005
|
kind: "refname",
|
|
@@ -7005,7 +7012,7 @@ async function Qg(e, t) {
|
|
|
7005
7012
|
throw new Error(`Invalid ref type: ${t.type}`);
|
|
7006
7013
|
}
|
|
7007
7014
|
}
|
|
7008
|
-
async function
|
|
7015
|
+
async function to(e, t, r) {
|
|
7009
7016
|
const i = await Jg(e, t, r), a = [t, `${t}^{}`];
|
|
7010
7017
|
for (const s of a) {
|
|
7011
7018
|
const n = s.trim();
|
|
@@ -7047,7 +7054,7 @@ async function ou(e, t, r) {
|
|
|
7047
7054
|
throw a.status === 401 || a.status === 403 ? new Hn(e, a.status) : new Error(
|
|
7048
7055
|
`Failed to fetch git objects from ${e}: ${a.status} ${a.statusText}`
|
|
7049
7056
|
);
|
|
7050
|
-
const s = fu(a.body), n = await iu(s), o = Buffer.from(await zn(n.packfile)), l = await
|
|
7057
|
+
const s = fu(a.body), n = await iu(s), o = Buffer.from(await zn(n.packfile)), l = await cn.fromPack({
|
|
7051
7058
|
pack: o
|
|
7052
7059
|
}), p = l.read;
|
|
7053
7060
|
return l.read = async function({ oid: c, ...h }) {
|
|
@@ -7153,13 +7160,13 @@ async function r1(e, t, r) {
|
|
|
7153
7160
|
);
|
|
7154
7161
|
const s = fu(a.body), n = await iu(s), o = Buffer.from(await zn(n.packfile));
|
|
7155
7162
|
return o.byteLength === 0 ? {
|
|
7156
|
-
idx: await
|
|
7163
|
+
idx: await cn.fromPack({
|
|
7157
7164
|
pack: o
|
|
7158
7165
|
}),
|
|
7159
7166
|
packfile: new Uint8Array(),
|
|
7160
7167
|
promisor: !1
|
|
7161
7168
|
} : {
|
|
7162
|
-
idx: await
|
|
7169
|
+
idx: await cn.fromPack({
|
|
7163
7170
|
pack: o
|
|
7164
7171
|
}),
|
|
7165
7172
|
packfile: Vn(o),
|
|
@@ -7185,7 +7192,7 @@ function Rr(e) {
|
|
|
7185
7192
|
e.object = bt.from(e.object).parse();
|
|
7186
7193
|
break;
|
|
7187
7194
|
case "tree":
|
|
7188
|
-
e.object =
|
|
7195
|
+
e.object = bo.from(e.object).entries();
|
|
7189
7196
|
break;
|
|
7190
7197
|
case "blob":
|
|
7191
7198
|
e.object = new Uint8Array(e.object), e.format = "content";
|
|
@@ -7194,7 +7201,7 @@ function Rr(e) {
|
|
|
7194
7201
|
e.object = An.from(e.object).parse();
|
|
7195
7202
|
break;
|
|
7196
7203
|
default:
|
|
7197
|
-
throw new
|
|
7204
|
+
throw new _i(
|
|
7198
7205
|
e.oid,
|
|
7199
7206
|
e.type,
|
|
7200
7207
|
"blob|commit|tag|tree"
|
|
@@ -7230,7 +7237,7 @@ function fu(e) {
|
|
|
7230
7237
|
function Vn(e) {
|
|
7231
7238
|
return e instanceof Uint8Array, Uint8Array.from(e);
|
|
7232
7239
|
}
|
|
7233
|
-
const s1 =
|
|
7240
|
+
const s1 = To.deflate, i1 = /^[0-9a-f]{40}$/i;
|
|
7234
7241
|
async function a1(e) {
|
|
7235
7242
|
const t = {}, r = new TextEncoder();
|
|
7236
7243
|
return await Promise.all(
|
|
@@ -7344,7 +7351,7 @@ async function f1({
|
|
|
7344
7351
|
return o[".git/index"] = Uint8Array.from(c), o;
|
|
7345
7352
|
}
|
|
7346
7353
|
function p1(e, t) {
|
|
7347
|
-
t =
|
|
7354
|
+
t = ui(t);
|
|
7348
7355
|
const r = ["", ".", "/"].includes(t);
|
|
7349
7356
|
let i = e;
|
|
7350
7357
|
if (r)
|
|
@@ -7373,14 +7380,14 @@ function p1(e, t) {
|
|
|
7373
7380
|
}
|
|
7374
7381
|
return a;
|
|
7375
7382
|
}
|
|
7376
|
-
const Zn = 15,
|
|
7377
|
-
function
|
|
7378
|
-
return
|
|
7383
|
+
const Zn = 15, ro = 30, no = 19, c1 = 29, si = 256, Lo = si + 1 + c1, _f = 2 * Lo + 1, vn = 256, u1 = 7, vf = 16, xf = 17, kf = 18, va = 8 * 2, ii = -1, d1 = 1, xs = 2, h1 = 0, Qr = 0, Pf = 1, m1 = 3, pt = 4, Ct = 0, pu = 1, ks = 2, Dt = -2, y1 = -3, Gr = -5;
|
|
7384
|
+
function vi(e) {
|
|
7385
|
+
return xi(e.map(([t, r]) => new Array(t).fill(r, 0, t)));
|
|
7379
7386
|
}
|
|
7380
|
-
function
|
|
7381
|
-
return e.reduce((t, r) => t.concat(Array.isArray(r) ?
|
|
7387
|
+
function xi(e) {
|
|
7388
|
+
return e.reduce((t, r) => t.concat(Array.isArray(r) ? xi(r) : r), []);
|
|
7382
7389
|
}
|
|
7383
|
-
const Ef = [0, 1, 2, 3].concat(...
|
|
7390
|
+
const Ef = [0, 1, 2, 3].concat(...vi([
|
|
7384
7391
|
[2, 4],
|
|
7385
7392
|
[2, 5],
|
|
7386
7393
|
[4, 6],
|
|
@@ -7460,7 +7467,7 @@ function Fe() {
|
|
|
7460
7467
|
a.heap[--a.heap_max] = a.heap[1], t(a), i(s, e.max_code, a.bl_count);
|
|
7461
7468
|
};
|
|
7462
7469
|
}
|
|
7463
|
-
Fe._length_code = [0, 1, 2, 3, 4, 5, 6, 7].concat(...
|
|
7470
|
+
Fe._length_code = [0, 1, 2, 3, 4, 5, 6, 7].concat(...vi([
|
|
7464
7471
|
[2, 8],
|
|
7465
7472
|
[2, 9],
|
|
7466
7473
|
[2, 10],
|
|
@@ -7816,30 +7823,30 @@ const g1 = [
|
|
|
7816
7823
|
163,
|
|
7817
7824
|
99,
|
|
7818
7825
|
227
|
|
7819
|
-
], w1 =
|
|
7820
|
-
Je.static_ltree =
|
|
7821
|
-
const b1 = [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], _1 =
|
|
7822
|
-
Je.static_dtree =
|
|
7823
|
-
Je.static_l_desc = new Je(Je.static_ltree, Fe.extra_lbits,
|
|
7824
|
-
Je.static_d_desc = new Je(Je.static_dtree, Fe.extra_dbits, 0,
|
|
7825
|
-
Je.static_bl_desc = new Je(null, Fe.extra_blbits, 0,
|
|
7826
|
+
], w1 = vi([[144, 8], [112, 9], [24, 7], [8, 8]]);
|
|
7827
|
+
Je.static_ltree = xi(g1.map((e, t) => [e, w1[t]]));
|
|
7828
|
+
const b1 = [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], _1 = vi([[30, 5]]);
|
|
7829
|
+
Je.static_dtree = xi(b1.map((e, t) => [e, _1[t]]));
|
|
7830
|
+
Je.static_l_desc = new Je(Je.static_ltree, Fe.extra_lbits, si + 1, Lo, Zn);
|
|
7831
|
+
Je.static_d_desc = new Je(Je.static_dtree, Fe.extra_dbits, 0, ro, Zn);
|
|
7832
|
+
Je.static_bl_desc = new Je(null, Fe.extra_blbits, 0, no, u1);
|
|
7826
7833
|
const v1 = 9, x1 = 8;
|
|
7827
7834
|
function zt(e, t, r, i, a) {
|
|
7828
7835
|
const s = this;
|
|
7829
7836
|
s.good_length = e, s.max_lazy = t, s.nice_length = r, s.max_chain = i, s.func = a;
|
|
7830
7837
|
}
|
|
7831
|
-
const cu = 0,
|
|
7838
|
+
const cu = 0, qs = 1, Pr = 2, It = [
|
|
7832
7839
|
new zt(0, 0, 0, 0, cu),
|
|
7833
|
-
new zt(4, 4, 8, 4,
|
|
7834
|
-
new zt(4, 5, 16, 8,
|
|
7835
|
-
new zt(4, 6, 32, 32,
|
|
7840
|
+
new zt(4, 4, 8, 4, qs),
|
|
7841
|
+
new zt(4, 5, 16, 8, qs),
|
|
7842
|
+
new zt(4, 6, 32, 32, qs),
|
|
7836
7843
|
new zt(4, 4, 16, 16, Pr),
|
|
7837
7844
|
new zt(8, 16, 32, 32, Pr),
|
|
7838
7845
|
new zt(8, 16, 128, 128, Pr),
|
|
7839
7846
|
new zt(8, 32, 128, 256, Pr),
|
|
7840
7847
|
new zt(32, 128, 258, 1024, Pr),
|
|
7841
7848
|
new zt(32, 258, 258, 4096, Pr)
|
|
7842
|
-
],
|
|
7849
|
+
], Ps = [
|
|
7843
7850
|
"need dictionary",
|
|
7844
7851
|
// Z_NEED_DICT
|
|
7845
7852
|
// 2
|
|
@@ -7860,7 +7867,7 @@ const cu = 0, Us = 1, Pr = 2, It = [
|
|
|
7860
7867
|
"",
|
|
7861
7868
|
// Z_VERSION_ERROR (-6)
|
|
7862
7869
|
""
|
|
7863
|
-
], St = 0,
|
|
7870
|
+
], St = 0, Es = 1, xn = 2, Ss = 3, k1 = 32, xa = 42, Ts = 113, kn = 666, ka = 8, P1 = 0, Pa = 1, E1 = 2, De = 3, Ms = 258, wt = Ms + De + 1;
|
|
7864
7871
|
function Sf(e, t, r, i) {
|
|
7865
7872
|
const a = e[t * 2], s = e[r * 2];
|
|
7866
7873
|
return a < s || a == s && i[t] <= i[r];
|
|
@@ -7880,11 +7887,11 @@ function S1() {
|
|
|
7880
7887
|
}
|
|
7881
7888
|
function Ae() {
|
|
7882
7889
|
let M;
|
|
7883
|
-
for (M = 0; M <
|
|
7890
|
+
for (M = 0; M < Lo; M++)
|
|
7884
7891
|
q[M * 2] = 0;
|
|
7885
|
-
for (M = 0; M <
|
|
7892
|
+
for (M = 0; M < ro; M++)
|
|
7886
7893
|
W[M * 2] = 0;
|
|
7887
|
-
for (M = 0; M <
|
|
7894
|
+
for (M = 0; M < no; M++)
|
|
7888
7895
|
X[M * 2] = 0;
|
|
7889
7896
|
q[vn * 2] = 1, e.opt_len = e.static_len = 0, ee = G = 0;
|
|
7890
7897
|
}
|
|
@@ -7906,7 +7913,7 @@ function S1() {
|
|
|
7906
7913
|
}
|
|
7907
7914
|
function Et() {
|
|
7908
7915
|
let M;
|
|
7909
|
-
for (tt(q, V.max_code), tt(W, se.max_code), Z.build_tree(e), M =
|
|
7916
|
+
for (tt(q, V.max_code), tt(W, se.max_code), Z.build_tree(e), M = no - 1; M >= 3 && X[Fe.bl_order[M] * 2 + 1] === 0; M--)
|
|
7910
7917
|
;
|
|
7911
7918
|
return e.opt_len += 3 * (M + 1) + 5 + 5 + 4, M;
|
|
7912
7919
|
}
|
|
@@ -7922,7 +7929,7 @@ function S1() {
|
|
|
7922
7929
|
function Re(M, Y) {
|
|
7923
7930
|
let z;
|
|
7924
7931
|
const J = Y;
|
|
7925
|
-
ae >
|
|
7932
|
+
ae > va - J ? (z = M, ie |= z << ae & 65535, Ce(ie), ie = z >>> va - ae, ae += J - va) : (ie |= M << ae & 65535, ae += J);
|
|
7926
7933
|
}
|
|
7927
7934
|
function v(M, Y) {
|
|
7928
7935
|
const z = M * 2;
|
|
@@ -7950,12 +7957,12 @@ function S1() {
|
|
|
7950
7957
|
ae == 16 ? (Ce(ie), ie = 0, ae = 0) : ae >= 8 && (Le(ie & 255), ie >>>= 8, ae -= 8);
|
|
7951
7958
|
}
|
|
7952
7959
|
function j() {
|
|
7953
|
-
Re(
|
|
7960
|
+
Re(Pa << 1, 3), v(vn, Je.static_ltree), R(), 1 + fe + 10 - ae < 9 && (Re(Pa << 1, 3), v(vn, Je.static_ltree), R()), fe = 7;
|
|
7954
7961
|
}
|
|
7955
7962
|
function H(M, Y) {
|
|
7956
7963
|
let z, J, ne;
|
|
7957
|
-
if (e.dist_buf[ee] = M, e.lc_buf[ee] = Y & 255, ee++, M === 0 ? q[Y * 2]++ : (G++, M--, q[(Fe._length_code[Y] +
|
|
7958
|
-
for (z = ee * 8, J = $ - b, ne = 0; ne <
|
|
7964
|
+
if (e.dist_buf[ee] = M, e.lc_buf[ee] = Y & 255, ee++, M === 0 ? q[Y * 2]++ : (G++, M--, q[(Fe._length_code[Y] + si + 1) * 2]++, W[Fe.d_code(M) * 2]++), !(ee & 8191) && S > 2) {
|
|
7965
|
+
for (z = ee * 8, J = $ - b, ne = 0; ne < ro; ne++)
|
|
7959
7966
|
z += W[ne * 2] * (5 + Fe.extra_dbits[ne]);
|
|
7960
7967
|
if (z >>>= 3, G < Math.floor(ee / 2) && z < Math.floor(J / 2))
|
|
7961
7968
|
return !0;
|
|
@@ -7966,7 +7973,7 @@ function S1() {
|
|
|
7966
7973
|
let z, J, ne = 0, le, de;
|
|
7967
7974
|
if (ee !== 0)
|
|
7968
7975
|
do
|
|
7969
|
-
z = e.dist_buf[ne], J = e.lc_buf[ne], ne++, z === 0 ? v(J, M) : (le = Fe._length_code[J], v(le +
|
|
7976
|
+
z = e.dist_buf[ne], J = e.lc_buf[ne], ne++, z === 0 ? v(J, M) : (le = Fe._length_code[J], v(le + si + 1, M), de = Fe.extra_lbits[le], de !== 0 && (J -= Fe.base_length[le], Re(J, de)), z--, le = Fe.d_code(z), v(le, Y), de = Fe.extra_dbits[le], de !== 0 && (z -= Fe.base_dist[le], Re(z, de)));
|
|
7970
7977
|
while (ne < ee);
|
|
7971
7978
|
v(vn, M), fe = M[vn * 2 + 1];
|
|
7972
7979
|
}
|
|
@@ -7981,7 +7988,7 @@ function S1() {
|
|
|
7981
7988
|
}
|
|
7982
7989
|
function je(M, Y, z) {
|
|
7983
7990
|
let J, ne, le = 0;
|
|
7984
|
-
S > 0 ? (V.build_tree(e), se.build_tree(e), le = Et(), 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 && M != -1 ? he(M, Y, z) : ne == J ? (Re((
|
|
7991
|
+
S > 0 ? (V.build_tree(e), se.build_tree(e), le = Et(), 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 && M != -1 ? he(M, Y, z) : ne == J ? (Re((Pa << 1) + (z ? 1 : 0), 3), K(Je.static_ltree, Je.static_dtree)) : (Re((E1 << 1) + (z ? 1 : 0), 3), d(V.max_code + 1, se.max_code + 1, le + 1), K(q, W)), Ae(), z && pe();
|
|
7985
7992
|
}
|
|
7986
7993
|
function ue(M) {
|
|
7987
7994
|
je(b >= 0 ? b : -1, $ - b, M), b = $, t.flush_pending();
|
|
@@ -8021,13 +8028,13 @@ function S1() {
|
|
|
8021
8028
|
if ($ += E, E = 0, z = b + Y, ($ === 0 || $ >= z) && (E = $ - z, $ = z, ue(!1), t.avail_out === 0) || $ - b >= s - wt && (ue(!1), t.avail_out === 0))
|
|
8022
8029
|
return St;
|
|
8023
8030
|
}
|
|
8024
|
-
return ue(M == pt), t.avail_out === 0 ? M == pt ? xn : St : M == pt ?
|
|
8031
|
+
return ue(M == pt), t.avail_out === 0 ? M == pt ? xn : St : M == pt ? Ss : Es;
|
|
8025
8032
|
}
|
|
8026
8033
|
function Ft(M) {
|
|
8027
8034
|
let Y = F, z = $, J, ne, le = T;
|
|
8028
8035
|
const de = $ > s - wt ? $ - (s - wt) : 0;
|
|
8029
8036
|
let Me = U;
|
|
8030
|
-
const ce = o, xe = $ +
|
|
8037
|
+
const ce = o, xe = $ + Ms;
|
|
8031
8038
|
let B = l[z + le - 1], oe = l[z + le];
|
|
8032
8039
|
T >= I && (Y >>= 2), Me > E && (Me = E);
|
|
8033
8040
|
do
|
|
@@ -8036,7 +8043,7 @@ function S1() {
|
|
|
8036
8043
|
do
|
|
8037
8044
|
;
|
|
8038
8045
|
while (l[++z] == l[++J] && l[++z] == l[++J] && l[++z] == l[++J] && l[++z] == l[++J] && l[++z] == l[++J] && l[++z] == l[++J] && l[++z] == l[++J] && l[++z] == l[++J] && z < xe);
|
|
8039
|
-
if (ne =
|
|
8046
|
+
if (ne = Ms - (xe - z), z = xe - Ms, ne > le) {
|
|
8040
8047
|
if (C = M, le = ne, ne >= Me)
|
|
8041
8048
|
break;
|
|
8042
8049
|
B = l[z + le - 1], oe = l[z + le];
|
|
@@ -8045,7 +8052,7 @@ function S1() {
|
|
|
8045
8052
|
while ((M = c[M & ce] & 65535) > de && --Y !== 0);
|
|
8046
8053
|
return le <= E ? le : E;
|
|
8047
8054
|
}
|
|
8048
|
-
function
|
|
8055
|
+
function Ei(M) {
|
|
8049
8056
|
let Y = 0, z;
|
|
8050
8057
|
for (; ; ) {
|
|
8051
8058
|
if (E < wt) {
|
|
@@ -8054,7 +8061,7 @@ function S1() {
|
|
|
8054
8061
|
if (E === 0)
|
|
8055
8062
|
break;
|
|
8056
8063
|
}
|
|
8057
|
-
if (E >= De && (m = (m << w ^ l[$ + (De - 1)] & 255) & y, Y = h[m] & 65535, c[$ & o] = h[m], h[m] = $), Y !== 0 && ($ - Y & 65535) <= s - wt && N !=
|
|
8064
|
+
if (E >= De && (m = (m << w ^ l[$ + (De - 1)] & 255) & y, Y = h[m] & 65535, c[$ & o] = h[m], h[m] = $), Y !== 0 && ($ - Y & 65535) <= s - wt && N != xs && (O = Ft(Y)), O >= De)
|
|
8058
8065
|
if (z = H($ - C, O - De), E -= O, O <= k && E >= De) {
|
|
8059
8066
|
O--;
|
|
8060
8067
|
do
|
|
@@ -8068,7 +8075,7 @@ function S1() {
|
|
|
8068
8075
|
if (z && (ue(!1), t.avail_out === 0))
|
|
8069
8076
|
return St;
|
|
8070
8077
|
}
|
|
8071
|
-
return ue(M == pt), t.avail_out === 0 ? M == pt ? xn : St : M == pt ?
|
|
8078
|
+
return ue(M == pt), t.avail_out === 0 ? M == pt ? xn : St : M == pt ? Ss : Es;
|
|
8072
8079
|
}
|
|
8073
8080
|
function nt(M) {
|
|
8074
8081
|
let Y = 0, z, J;
|
|
@@ -8079,7 +8086,7 @@ function S1() {
|
|
|
8079
8086
|
if (E === 0)
|
|
8080
8087
|
break;
|
|
8081
8088
|
}
|
|
8082
|
-
if (E >= De && (m = (m << w ^ l[$ + (De - 1)] & 255) & y, Y = h[m] & 65535, c[$ & o] = h[m], h[m] = $), T = O, P = C, O = De - 1, Y !== 0 && T < k && ($ - Y & 65535) <= s - wt && (N !=
|
|
8089
|
+
if (E >= De && (m = (m << w ^ l[$ + (De - 1)] & 255) & y, Y = h[m] & 65535, c[$ & o] = h[m], h[m] = $), T = O, P = C, O = De - 1, Y !== 0 && T < k && ($ - Y & 65535) <= s - wt && (N != xs && (O = Ft(Y)), O <= 5 && (N == d1 || O == De && $ - C > 4096) && (O = De - 1)), T >= De && O <= T) {
|
|
8083
8090
|
J = $ + E - De, z = H($ - 1 - P, T - De), E -= T - 1, T -= 2;
|
|
8084
8091
|
do
|
|
8085
8092
|
++$ <= J && (m = (m << w ^ l[$ + (De - 1)] & 255) & y, Y = h[m] & 65535, c[$ & o] = h[m], h[m] = $);
|
|
@@ -8092,21 +8099,21 @@ function S1() {
|
|
|
8092
8099
|
} else
|
|
8093
8100
|
L = 1, $++, E--;
|
|
8094
8101
|
}
|
|
8095
|
-
return L !== 0 && (z = H(0, l[$ - 1] & 255), L = 0), ue(M == pt), t.avail_out === 0 ? M == pt ? xn : St : M == pt ?
|
|
8102
|
+
return L !== 0 && (z = H(0, l[$ - 1] & 255), L = 0), ue(M == pt), t.avail_out === 0 ? M == pt ? xn : St : M == pt ? Ss : Es;
|
|
8096
8103
|
}
|
|
8097
8104
|
function Wr(M) {
|
|
8098
|
-
return M.total_in = M.total_out = 0, M.msg = null, e.pending = 0, e.pending_out = 0, r =
|
|
8105
|
+
return M.total_in = M.total_out = 0, M.msg = null, e.pending = 0, e.pending_out = 0, r = Ts, a = Qr, Xe(), Se(), Ct;
|
|
8099
8106
|
}
|
|
8100
8107
|
e.deflateInit = function(M, Y, z, J, ne, le) {
|
|
8101
|
-
return J || (J =
|
|
8108
|
+
return J || (J = ka), ne || (ne = x1), le || (le = h1), M.msg = null, Y == ii && (Y = 6), ne < 1 || ne > v1 || J != ka || z < 9 || z > 15 || Y < 0 || Y > 9 || le < 0 || le > xs ? Dt : (M.dstate = e, n = z, s = 1 << n, o = s - 1, A = ne + 7, g = 1 << A, y = g - 1, w = Math.floor((A + De - 1) / De), l = new Uint8Array(s * 2), c = [], h = [], 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), S = Y, N = le, Wr(M));
|
|
8102
8109
|
}, e.deflateEnd = function() {
|
|
8103
|
-
return r !=
|
|
8110
|
+
return r != xa && r != Ts && r != kn ? Dt : (e.lc_buf = null, e.dist_buf = null, e.pending_buf = null, h = null, c = null, l = null, e.dstate = null, r == Ts ? y1 : Ct);
|
|
8104
8111
|
}, e.deflateParams = function(M, Y, z) {
|
|
8105
8112
|
let J = Ct;
|
|
8106
|
-
return Y ==
|
|
8113
|
+
return Y == ii && (Y = 6), Y < 0 || Y > 9 || z < 0 || z > xs ? Dt : (It[S].func != It[Y].func && M.total_in !== 0 && (J = M.deflate(Pf)), S != Y && (S = Y, k = It[S].max_lazy, I = It[S].good_length, U = It[S].nice_length, F = It[S].max_chain), N = z, J);
|
|
8107
8114
|
}, e.deflateSetDictionary = function(M, Y, z) {
|
|
8108
8115
|
let J = z, ne, le = 0;
|
|
8109
|
-
if (!Y || r !=
|
|
8116
|
+
if (!Y || r != xa)
|
|
8110
8117
|
return Dt;
|
|
8111
8118
|
if (J < De)
|
|
8112
8119
|
return Ct;
|
|
@@ -8118,31 +8125,31 @@ function S1() {
|
|
|
8118
8125
|
if (Y > pt || Y < 0)
|
|
8119
8126
|
return Dt;
|
|
8120
8127
|
if (!M.next_out || !M.next_in && M.avail_in !== 0 || r == kn && Y != pt)
|
|
8121
|
-
return M.msg =
|
|
8128
|
+
return M.msg = Ps[ks - Dt], Dt;
|
|
8122
8129
|
if (M.avail_out === 0)
|
|
8123
|
-
return M.msg =
|
|
8124
|
-
if (t = M, le = a, a = Y, r ==
|
|
8130
|
+
return M.msg = Ps[ks - Gr], Gr;
|
|
8131
|
+
if (t = M, le = a, a = Y, r == xa && (J = ka + (n - 8 << 4) << 8, ne = (S - 1 & 255) >> 1, ne > 3 && (ne = 3), J |= ne << 6, $ !== 0 && (J |= k1), J += 31 - J % 31, r = Ts, ft(J)), e.pending !== 0) {
|
|
8125
8132
|
if (t.flush_pending(), t.avail_out === 0)
|
|
8126
8133
|
return a = -1, Ct;
|
|
8127
8134
|
} else if (t.avail_in === 0 && Y <= le && Y != pt)
|
|
8128
|
-
return t.msg =
|
|
8135
|
+
return t.msg = Ps[ks - Gr], Gr;
|
|
8129
8136
|
if (r == kn && t.avail_in !== 0)
|
|
8130
|
-
return M.msg =
|
|
8137
|
+
return M.msg = Ps[ks - Gr], Gr;
|
|
8131
8138
|
if (t.avail_in !== 0 || E !== 0 || Y != Qr && r != kn) {
|
|
8132
8139
|
switch (de = -1, It[S].func) {
|
|
8133
8140
|
case cu:
|
|
8134
8141
|
de = rt(Y);
|
|
8135
8142
|
break;
|
|
8136
|
-
case
|
|
8137
|
-
de =
|
|
8143
|
+
case qs:
|
|
8144
|
+
de = Ei(Y);
|
|
8138
8145
|
break;
|
|
8139
8146
|
case Pr:
|
|
8140
8147
|
de = nt(Y);
|
|
8141
8148
|
break;
|
|
8142
8149
|
}
|
|
8143
|
-
if ((de == xn || de ==
|
|
8150
|
+
if ((de == xn || de == Ss) && (r = kn), de == St || de == xn)
|
|
8144
8151
|
return t.avail_out === 0 && (a = -1), Ct;
|
|
8145
|
-
if (de ==
|
|
8152
|
+
if (de == Es) {
|
|
8146
8153
|
if (Y == Pf)
|
|
8147
8154
|
j();
|
|
8148
8155
|
else if (he(0, 0, !1), Y == m1)
|
|
@@ -8205,8 +8212,8 @@ uu.prototype = {
|
|
|
8205
8212
|
};
|
|
8206
8213
|
function T1(e) {
|
|
8207
8214
|
const t = this, r = new uu(), i = O1(e && e.chunkSize ? e.chunkSize : 64 * 1024), a = Qr, s = new Uint8Array(i);
|
|
8208
|
-
let n = e ? e.level :
|
|
8209
|
-
typeof n > "u" && (n =
|
|
8215
|
+
let n = e ? e.level : ii;
|
|
8216
|
+
typeof n > "u" && (n = ii), r.deflateInit(n), r.next_out = s, t.append = function(o, l) {
|
|
8210
8217
|
let p, c, h = 0, m = 0, g = 0;
|
|
8211
8218
|
const A = [];
|
|
8212
8219
|
if (o.length) {
|
|
@@ -10020,7 +10027,7 @@ const A1 = 15, ve = 0, sr = 1, $1 = 2, ut = -2, Ie = -3, Tf = -4, ir = -5, _t =
|
|
|
10020
10027
|
13,
|
|
10021
10028
|
13
|
|
10022
10029
|
], fr = 15;
|
|
10023
|
-
function
|
|
10030
|
+
function so() {
|
|
10024
10031
|
const e = this;
|
|
10025
10032
|
let t, r, i, a, s, n;
|
|
10026
10033
|
function o(p, c, h, m, g, A, y, w, b, O, P) {
|
|
@@ -10090,10 +10097,10 @@ function to() {
|
|
|
10090
10097
|
return l(288), t[0] = 0, O = o(h, 0, p, 257, D1, j1, A, m, w, t, r), O != ve || m[0] === 0 ? (O == Ie ? b.msg = "oversubscribed literal/length tree" : O != Tf && (b.msg = "incomplete literal/length tree", O = Ie), O) : (l(288), O = o(h, p, c, 0, U1, B1, y, g, w, t, r), O != ve || g[0] === 0 && p > 257 ? (O == Ie ? b.msg = "oversubscribed distance tree" : O == ir ? (b.msg = "incomplete distance tree", O = Ie) : O != Tf && (b.msg = "empty distance tree with lengths", O = Ie), O) : ve);
|
|
10091
10098
|
};
|
|
10092
10099
|
}
|
|
10093
|
-
|
|
10100
|
+
so.inflate_trees_fixed = function(e, t, r, i) {
|
|
10094
10101
|
return e[0] = I1, t[0] = L1, r[0] = C1, i[0] = N1, ve;
|
|
10095
10102
|
};
|
|
10096
|
-
const
|
|
10103
|
+
const Os = 0, Of = 1, Af = 2, $f = 3, Rf = 4, Ff = 5, If = 6, Ea = 7, Lf = 8, As = 9;
|
|
10097
10104
|
function q1() {
|
|
10098
10105
|
const e = this;
|
|
10099
10106
|
let t, r = 0, i, a = 0, s = 0, n = 0, o = 0, l = 0, p = 0, c = 0, h, m = 0, g, A = 0;
|
|
@@ -10161,16 +10168,16 @@ function q1() {
|
|
|
10161
10168
|
return Z = E.avail_in - q, Z = I >> 3 < Z ? I >> 3 : Z, q += Z, U -= Z, I -= Z << 3, C.bitb = N, C.bitk = I, E.avail_in = q, E.total_in += U - E.next_in_index, E.next_in_index = U, C.write = W, ve;
|
|
10162
10169
|
}
|
|
10163
10170
|
e.init = function(w, b, O, P, L, $) {
|
|
10164
|
-
t =
|
|
10171
|
+
t = Os, p = /* (byte) */
|
|
10165
10172
|
w, c = /* (byte) */
|
|
10166
10173
|
b, h = O, m = P, g = L, A = $, i = null;
|
|
10167
10174
|
}, e.proc = function(w, b, O) {
|
|
10168
10175
|
let P, L, $, C = 0, E = 0, T = 0, F, k, S, N;
|
|
10169
10176
|
for (T = b.next_in_index, F = b.avail_in, C = w.bitb, E = w.bitk, k = w.write, S = k < w.read ? w.read - k - 1 : w.end - k; ; )
|
|
10170
10177
|
switch (t) {
|
|
10171
|
-
case
|
|
10178
|
+
case Os:
|
|
10172
10179
|
if (S >= 258 && F >= 10 && (w.bitb = C, w.bitk = E, b.avail_in = F, b.total_in += T - b.next_in_index, b.next_in_index = T, w.write = k, O = y(p, c, h, m, g, A, w, b), T = b.next_in_index, F = b.avail_in, C = w.bitb, E = w.bitk, k = w.write, S = k < w.read ? w.read - k - 1 : w.end - k, O != ve)) {
|
|
10173
|
-
t = O == sr ?
|
|
10180
|
+
t = O == sr ? Ea : As;
|
|
10174
10181
|
break;
|
|
10175
10182
|
}
|
|
10176
10183
|
s = p, i = h, a = m, t = Of;
|
|
@@ -10195,10 +10202,10 @@ function q1() {
|
|
|
10195
10202
|
break;
|
|
10196
10203
|
}
|
|
10197
10204
|
if ($ & 32) {
|
|
10198
|
-
t =
|
|
10205
|
+
t = Ea;
|
|
10199
10206
|
break;
|
|
10200
10207
|
}
|
|
10201
|
-
return t =
|
|
10208
|
+
return t = As, b.msg = "invalid literal/length code", O = Ie, w.bitb = C, w.bitk = E, b.avail_in = F, b.total_in += T - b.next_in_index, b.next_in_index = T, w.write = k, w.inflate_flush(b, O);
|
|
10202
10209
|
case Af:
|
|
10203
10210
|
for (P = o; E < P; ) {
|
|
10204
10211
|
if (F !== 0)
|
|
@@ -10224,7 +10231,7 @@ function q1() {
|
|
|
10224
10231
|
s = $, a = L / 3 + i[L + 2];
|
|
10225
10232
|
break;
|
|
10226
10233
|
}
|
|
10227
|
-
return t =
|
|
10234
|
+
return t = As, b.msg = "invalid distance code", O = Ie, w.bitb = C, w.bitk = E, b.avail_in = F, b.total_in += T - b.next_in_index, b.next_in_index = T, w.write = k, w.inflate_flush(b, O);
|
|
10228
10235
|
case Rf:
|
|
10229
10236
|
for (P = o; E < P; ) {
|
|
10230
10237
|
if (F !== 0)
|
|
@@ -10242,21 +10249,21 @@ function q1() {
|
|
|
10242
10249
|
return w.bitb = C, w.bitk = E, b.avail_in = F, b.total_in += T - b.next_in_index, b.next_in_index = T, w.write = k, w.inflate_flush(b, O);
|
|
10243
10250
|
w.win[k++] = w.win[N++], S--, N == w.end && (N = 0), r--;
|
|
10244
10251
|
}
|
|
10245
|
-
t =
|
|
10252
|
+
t = Os;
|
|
10246
10253
|
break;
|
|
10247
10254
|
case If:
|
|
10248
10255
|
if (S === 0 && (k == w.end && w.read !== 0 && (k = 0, S = k < w.read ? w.read - k - 1 : w.end - k), S === 0 && (w.write = k, O = w.inflate_flush(b, O), k = w.write, S = k < w.read ? w.read - k - 1 : w.end - k, k == w.end && w.read !== 0 && (k = 0, S = k < w.read ? w.read - k - 1 : w.end - k), S === 0)))
|
|
10249
10256
|
return w.bitb = C, w.bitk = E, b.avail_in = F, b.total_in += T - b.next_in_index, b.next_in_index = T, w.write = k, w.inflate_flush(b, O);
|
|
10250
10257
|
O = ve, w.win[k++] = /* (byte) */
|
|
10251
|
-
n, S--, t =
|
|
10258
|
+
n, S--, t = Os;
|
|
10252
10259
|
break;
|
|
10253
|
-
case
|
|
10260
|
+
case Ea:
|
|
10254
10261
|
if (E > 7 && (E -= 8, F++, T--), w.write = k, O = w.inflate_flush(b, O), k = w.write, S = k < w.read ? w.read - k - 1 : w.end - k, w.read != w.write)
|
|
10255
10262
|
return w.bitb = C, w.bitk = E, b.avail_in = F, b.total_in += T - b.next_in_index, b.next_in_index = T, w.write = k, w.inflate_flush(b, O);
|
|
10256
10263
|
t = Lf;
|
|
10257
10264
|
case Lf:
|
|
10258
10265
|
return O = sr, w.bitb = C, w.bitk = E, b.avail_in = F, b.total_in += T - b.next_in_index, b.next_in_index = T, w.write = k, w.inflate_flush(b, O);
|
|
10259
|
-
case
|
|
10266
|
+
case As:
|
|
10260
10267
|
return O = Ie, w.bitb = C, w.bitk = E, b.avail_in = F, b.total_in += T - b.next_in_index, b.next_in_index = T, w.write = k, w.inflate_flush(b, O);
|
|
10261
10268
|
default:
|
|
10262
10269
|
return O = ut, w.bitb = C, w.bitk = E, b.avail_in = F, b.total_in += T - b.next_in_index, b.next_in_index = T, w.write = k, w.inflate_flush(b, O);
|
|
@@ -10285,15 +10292,15 @@ const Cf = [
|
|
|
10285
10292
|
14,
|
|
10286
10293
|
1,
|
|
10287
10294
|
15
|
|
10288
|
-
], Yr = 0,
|
|
10295
|
+
], Yr = 0, Sa = 1, Nf = 2, Df = 3, jf = 4, Uf = 5, $s = 6, Rs = 7, Bf = 8, kr = 9;
|
|
10289
10296
|
function M1(e, t) {
|
|
10290
10297
|
const r = this;
|
|
10291
10298
|
let i = Yr, a = 0, s = 0, n = 0, o;
|
|
10292
10299
|
const l = [0], p = [0], c = new q1();
|
|
10293
10300
|
let h = 0, m = new Int32Array(du * 3);
|
|
10294
|
-
const g = 0, A = new
|
|
10301
|
+
const g = 0, A = new so();
|
|
10295
10302
|
r.bitk = 0, r.bitb = 0, r.win = new Uint8Array(t), r.end = t, r.read = 0, r.write = 0, r.reset = function(y, w) {
|
|
10296
|
-
w && (w[0] = g), i ==
|
|
10303
|
+
w && (w[0] = g), i == $s && c.free(y), i = Yr, r.bitk = 0, r.bitb = 0, r.read = r.write = 0;
|
|
10297
10304
|
}, r.reset(e, null), r.inflate_flush = function(y, w) {
|
|
10298
10305
|
let b, O, P;
|
|
10299
10306
|
return O = y.next_out_index, P = r.read, b = /* (int) */
|
|
@@ -10315,10 +10322,10 @@ function M1(e, t) {
|
|
|
10315
10322
|
switch (b = /* (int) */
|
|
10316
10323
|
O & 7, h = b & 1, b >>> 1) {
|
|
10317
10324
|
case 0:
|
|
10318
|
-
O >>>= 3, P -= 3, b = P & 7, O >>>= b, P -= b, i =
|
|
10325
|
+
O >>>= 3, P -= 3, b = P & 7, O >>>= b, P -= b, i = Sa;
|
|
10319
10326
|
break;
|
|
10320
10327
|
case 1:
|
|
10321
|
-
F = [], k = [], S = [[]], N = [[]],
|
|
10328
|
+
F = [], k = [], S = [[]], N = [[]], so.inflate_trees_fixed(F, k, S, N), c.init(F[0], k[0], S[0], 0, N[0], 0), O >>>= 3, P -= 3, i = $s;
|
|
10322
10329
|
break;
|
|
10323
10330
|
case 2:
|
|
10324
10331
|
O >>>= 3, P -= 3, i = Df;
|
|
@@ -10327,7 +10334,7 @@ function M1(e, t) {
|
|
|
10327
10334
|
return O >>>= 3, P -= 3, i = kr, y.msg = "invalid block type", w = Ie, r.bitb = O, r.bitk = P, y.avail_in = $, y.total_in += L - y.next_in_index, y.next_in_index = L, r.write = C, r.inflate_flush(y, w);
|
|
10328
10335
|
}
|
|
10329
10336
|
break;
|
|
10330
|
-
case
|
|
10337
|
+
case Sa:
|
|
10331
10338
|
for (; P < 32; ) {
|
|
10332
10339
|
if ($ !== 0)
|
|
10333
10340
|
w = ve;
|
|
@@ -10337,7 +10344,7 @@ function M1(e, t) {
|
|
|
10337
10344
|
}
|
|
10338
10345
|
if ((~O >>> 16 & 65535) != (O & 65535))
|
|
10339
10346
|
return i = kr, y.msg = "invalid stored block lengths", w = Ie, r.bitb = O, r.bitk = P, y.avail_in = $, y.total_in += L - y.next_in_index, y.next_in_index = L, r.write = C, r.inflate_flush(y, w);
|
|
10340
|
-
a = O & 65535, O = P = 0, i = a !== 0 ? Nf : h !== 0 ?
|
|
10347
|
+
a = O & 65535, O = P = 0, i = a !== 0 ? Nf : h !== 0 ? Rs : Yr;
|
|
10341
10348
|
break;
|
|
10342
10349
|
case Nf:
|
|
10343
10350
|
if ($ === 0 || E === 0 && (C == r.end && r.read !== 0 && (C = 0, E = /* (int) */
|
|
@@ -10347,7 +10354,7 @@ function M1(e, t) {
|
|
|
10347
10354
|
return r.bitb = O, r.bitk = P, y.avail_in = $, y.total_in += L - y.next_in_index, y.next_in_index = L, r.write = C, r.inflate_flush(y, w);
|
|
10348
10355
|
if (w = ve, b = a, b > $ && (b = $), b > E && (b = E), r.win.set(y.read_buf(L, b), C), L += b, $ -= b, C += b, E -= b, (a -= b) !== 0)
|
|
10349
10356
|
break;
|
|
10350
|
-
i = h !== 0 ?
|
|
10357
|
+
i = h !== 0 ? Rs : Yr;
|
|
10351
10358
|
break;
|
|
10352
10359
|
case Df:
|
|
10353
10360
|
for (; P < 14; ) {
|
|
@@ -10412,8 +10419,8 @@ function M1(e, t) {
|
|
|
10412
10419
|
}
|
|
10413
10420
|
if (p[0] = -1, I = [], U = [], q = [], W = [], I[0] = 9, U[0] = 6, b = s, b = A.inflate_trees_dynamic(257 + (b & 31), 1 + (b >> 5 & 31), o, I, U, q, W, m, y), b != ve)
|
|
10414
10421
|
return b == Ie && (o = null, i = kr), w = b, r.bitb = O, r.bitk = P, y.avail_in = $, y.total_in += L - y.next_in_index, y.next_in_index = L, r.write = C, r.inflate_flush(y, w);
|
|
10415
|
-
c.init(I[0], U[0], m, q[0], m, W[0]), i =
|
|
10416
|
-
case
|
|
10422
|
+
c.init(I[0], U[0], m, q[0], m, W[0]), i = $s;
|
|
10423
|
+
case $s:
|
|
10417
10424
|
if (r.bitb = O, r.bitk = P, y.avail_in = $, y.total_in += L - y.next_in_index, y.next_in_index = L, r.write = C, (w = c.proc(r, y, w)) != sr)
|
|
10418
10425
|
return r.inflate_flush(y, w);
|
|
10419
10426
|
if (w = ve, c.free(y), L = y.next_in_index, $ = y.avail_in, O = r.bitb, P = r.bitk, C = r.write, E = /* (int) */
|
|
@@ -10421,8 +10428,8 @@ function M1(e, t) {
|
|
|
10421
10428
|
i = Yr;
|
|
10422
10429
|
break;
|
|
10423
10430
|
}
|
|
10424
|
-
i =
|
|
10425
|
-
case
|
|
10431
|
+
i = Rs;
|
|
10432
|
+
case Rs:
|
|
10426
10433
|
if (r.write = C, w = r.inflate_flush(y, w), C = r.write, E = /* (int) */
|
|
10427
10434
|
C < r.read ? r.read - C - 1 : r.end - C, r.read != r.write)
|
|
10428
10435
|
return r.bitb = O, r.bitk = P, y.avail_in = $, y.total_in += L - y.next_in_index, y.next_in_index = L, r.write = C, r.inflate_flush(y, w);
|
|
@@ -10440,10 +10447,10 @@ function M1(e, t) {
|
|
|
10440
10447
|
}, r.set_dictionary = function(y, w, b) {
|
|
10441
10448
|
r.win.set(y.subarray(w, w + b), 0), r.read = r.write = b;
|
|
10442
10449
|
}, r.sync_point = function() {
|
|
10443
|
-
return i ==
|
|
10450
|
+
return i == Sa ? 1 : 0;
|
|
10444
10451
|
};
|
|
10445
10452
|
}
|
|
10446
|
-
const W1 = 32, z1 = 8, H1 = 0, qf = 1, Mf = 2, Wf = 3, zf = 4, Hf = 5,
|
|
10453
|
+
const W1 = 32, z1 = 8, H1 = 0, qf = 1, Mf = 2, Wf = 3, zf = 4, Hf = 5, Ta = 6, Pn = 7, Vf = 12, pr = 13, V1 = [0, 0, 255, 255];
|
|
10447
10454
|
function Z1() {
|
|
10448
10455
|
const e = this;
|
|
10449
10456
|
e.mode = 0, e.method = 0, e.was = [0], e.need = 0, e.marker = 0, e.wbits = 0;
|
|
@@ -10498,8 +10505,8 @@ function Z1() {
|
|
|
10498
10505
|
return a;
|
|
10499
10506
|
a = i, r.avail_in--, r.total_in++, n.need += (r.read_byte(r.next_in_index++) & 255) << 8 & 65280, n.mode = Hf;
|
|
10500
10507
|
case Hf:
|
|
10501
|
-
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 =
|
|
10502
|
-
case
|
|
10508
|
+
return r.avail_in === 0 ? a : (a = i, r.avail_in--, r.total_in++, n.need += r.read_byte(r.next_in_index++) & 255, n.mode = Ta, $1);
|
|
10509
|
+
case Ta:
|
|
10503
10510
|
return n.mode = pr, r.msg = "need dictionary", n.marker = 0, ut;
|
|
10504
10511
|
case Pn:
|
|
10505
10512
|
if (a = n.blocks.proc(r, a), a == Ie) {
|
|
@@ -10518,7 +10525,7 @@ function Z1() {
|
|
|
10518
10525
|
}
|
|
10519
10526
|
}, e.inflateSetDictionary = function(r, i, a) {
|
|
10520
10527
|
let s = 0, n = a;
|
|
10521
|
-
if (!r || !r.istate || r.istate.mode !=
|
|
10528
|
+
if (!r || !r.istate || r.istate.mode != Ta)
|
|
10522
10529
|
return ut;
|
|
10523
10530
|
const o = r.istate;
|
|
10524
10531
|
return n >= 1 << o.wbits && (n = (1 << o.wbits) - 1, s = a - n), o.blocks.set_dictionary(i, s, n), o.mode = Pn, ve;
|
|
@@ -10595,7 +10602,7 @@ function G1(e) {
|
|
|
10595
10602
|
r.inflateEnd();
|
|
10596
10603
|
};
|
|
10597
10604
|
}
|
|
10598
|
-
const Fr = 4294967295, mr = 65535, Y1 = 8, K1 = 0, X1 = 99, J1 = 67324752, Q1 = 134695760, Zf = 33639248, ew = 101010256, Gf = 101075792, tw = 117853008, Kr = 22,
|
|
10605
|
+
const Fr = 4294967295, mr = 65535, Y1 = 8, K1 = 0, X1 = 99, J1 = 67324752, Q1 = 134695760, Zf = 33639248, ew = 101010256, Gf = 101075792, tw = 117853008, Kr = 22, Oa = 20, Aa = 56, rw = 1, nw = 39169, sw = 10, iw = 1, aw = 21589, ow = 28789, lw = 25461, fw = 6534, Yf = 1, pw = 6, Kf = 8, Xf = 2048, Jf = 16, Qf = 16384, ep = 73, tp = "/", lt = void 0, xr = "undefined", us = "function";
|
|
10599
10606
|
class rp {
|
|
10600
10607
|
constructor(t) {
|
|
10601
10608
|
return class extends TransformStream {
|
|
@@ -10636,7 +10643,7 @@ function dw() {
|
|
|
10636
10643
|
function hw(e) {
|
|
10637
10644
|
return Math.max(e.chunkSize, cw);
|
|
10638
10645
|
}
|
|
10639
|
-
function
|
|
10646
|
+
function Co(e) {
|
|
10640
10647
|
const {
|
|
10641
10648
|
baseURL: t,
|
|
10642
10649
|
chunkSize: r,
|
|
@@ -10667,7 +10674,7 @@ function Fo(e) {
|
|
|
10667
10674
|
function cr(e, t) {
|
|
10668
10675
|
t !== lt && (yr[e] = t);
|
|
10669
10676
|
}
|
|
10670
|
-
const
|
|
10677
|
+
const $a = {
|
|
10671
10678
|
application: {
|
|
10672
10679
|
"andrew-inset": "ez",
|
|
10673
10680
|
annodex: "anx",
|
|
@@ -12250,9 +12257,9 @@ const Ta = {
|
|
|
12250
12257
|
};
|
|
12251
12258
|
(() => {
|
|
12252
12259
|
const e = {};
|
|
12253
|
-
for (const t of Object.keys(
|
|
12254
|
-
for (const r of Object.keys(
|
|
12255
|
-
const i =
|
|
12260
|
+
for (const t of Object.keys($a))
|
|
12261
|
+
for (const r of Object.keys($a[t])) {
|
|
12262
|
+
const i = $a[t][r];
|
|
12256
12263
|
if (typeof i == "string")
|
|
12257
12264
|
e[i] = t + "/" + r;
|
|
12258
12265
|
else
|
|
@@ -12268,7 +12275,7 @@ for (let e = 0; e < 256; e++) {
|
|
|
12268
12275
|
t & 1 ? t = t >>> 1 ^ 3988292384 : t = t >>> 1;
|
|
12269
12276
|
yu[e] = t;
|
|
12270
12277
|
}
|
|
12271
|
-
class
|
|
12278
|
+
class ai {
|
|
12272
12279
|
constructor(t) {
|
|
12273
12280
|
this.crc = t || -1;
|
|
12274
12281
|
}
|
|
@@ -12285,7 +12292,7 @@ class si {
|
|
|
12285
12292
|
class gu extends TransformStream {
|
|
12286
12293
|
constructor() {
|
|
12287
12294
|
let t;
|
|
12288
|
-
const r = new
|
|
12295
|
+
const r = new ai();
|
|
12289
12296
|
super({
|
|
12290
12297
|
transform(i, a) {
|
|
12291
12298
|
r.append(i), a.enqueue(i);
|
|
@@ -12380,7 +12387,7 @@ const ot = {
|
|
|
12380
12387
|
const a = e.length ? e[e.length - 1] : 0, s = ot.getPartial(a);
|
|
12381
12388
|
return i.push(ot.partial(t + s & 31, t + s > 32 ? r : i.pop(), 1)), i;
|
|
12382
12389
|
}
|
|
12383
|
-
},
|
|
12390
|
+
}, oi = {
|
|
12384
12391
|
bytes: {
|
|
12385
12392
|
/** Convert from a bitArray to an array of bytes. */
|
|
12386
12393
|
fromBits(e) {
|
|
@@ -12420,7 +12427,7 @@ wu.sha1 = class {
|
|
|
12420
12427
|
*/
|
|
12421
12428
|
update(e) {
|
|
12422
12429
|
const t = this;
|
|
12423
|
-
typeof e == "string" && (e =
|
|
12430
|
+
typeof e == "string" && (e = oi.utf8String.toBits(e));
|
|
12424
12431
|
const r = t._buffer = ot.concat(t._buffer, e), i = t._length, a = t._length = i + ot.bitLength(e);
|
|
12425
12432
|
if (a > 9007199254740991)
|
|
12426
12433
|
throw new Error("Cannot hash more than 2^53 - 1 bits");
|
|
@@ -12623,7 +12630,7 @@ _u.ctrGladman = class {
|
|
|
12623
12630
|
};
|
|
12624
12631
|
const Br = {
|
|
12625
12632
|
importKey(e) {
|
|
12626
|
-
return new Br.hmacSha1(
|
|
12633
|
+
return new Br.hmacSha1(oi.bytes.toBits(e));
|
|
12627
12634
|
},
|
|
12628
12635
|
pbkdf2(e, t, r, i) {
|
|
12629
12636
|
if (r = r || 1e4, i < 0 || r < 0)
|
|
@@ -12633,7 +12640,7 @@ const Br = {
|
|
|
12633
12640
|
const c = new ArrayBuffer(a), h = new DataView(c);
|
|
12634
12641
|
let m = 0;
|
|
12635
12642
|
const g = ot;
|
|
12636
|
-
for (t =
|
|
12643
|
+
for (t = oi.bytes.toBits(t), p = 1; m < (a || 1); p++) {
|
|
12637
12644
|
for (s = n = e.encrypt(g.concat(t, [p])), o = 1; o < r; o++)
|
|
12638
12645
|
for (n = e.encrypt(n), l = 0; l < n.length; l++)
|
|
12639
12646
|
s[l] ^= n[l];
|
|
@@ -12671,12 +12678,12 @@ Br.hmacSha1 = class {
|
|
|
12671
12678
|
return this.update(e), this.digest(e);
|
|
12672
12679
|
}
|
|
12673
12680
|
};
|
|
12674
|
-
const gw = typeof crypto != xr && typeof crypto.getRandomValues ==
|
|
12681
|
+
const gw = typeof crypto != xr && typeof crypto.getRandomValues == us, vu = "Invalid password", xu = "Invalid signature", No = "zipjs-abort-check-password";
|
|
12675
12682
|
function ku(e) {
|
|
12676
12683
|
return gw ? crypto.getRandomValues(e) : yw.getRandomValues(e);
|
|
12677
12684
|
}
|
|
12678
|
-
const tn = 16, ww = "raw", Pu = { name: "PBKDF2" }, bw = { name: "HMAC" }, _w = "SHA-1", vw = Object.assign({ hash: bw }, Pu),
|
|
12679
|
-
let np =
|
|
12685
|
+
const tn = 16, ww = "raw", Pu = { name: "PBKDF2" }, bw = { name: "HMAC" }, _w = "SHA-1", vw = Object.assign({ hash: bw }, Pu), io = Object.assign({ iterations: 1e3, hash: { name: _w } }, Pu), xw = ["deriveBits"], Gn = [8, 12, 16], En = [16, 24, 32], hr = 10, kw = [0, 0, 0, 0], ki = typeof crypto != xr, ds = ki && crypto.subtle, Eu = ki && typeof ds != xr, Xt = oi.bytes, Pw = bu.aes, Ew = _u.ctrGladman, Sw = Br.hmacSha1;
|
|
12686
|
+
let np = ki && Eu && typeof ds.importKey == us, sp = ki && Eu && typeof ds.deriveBits == us;
|
|
12680
12687
|
class Tw extends TransformStream {
|
|
12681
12688
|
constructor({ password: t, rawPassword: r, signed: i, encryptionStrength: a, checkPasswordOnly: s }) {
|
|
12682
12689
|
super({
|
|
@@ -12696,7 +12703,7 @@ class Tw extends TransformStream {
|
|
|
12696
12703
|
resolveReady: h,
|
|
12697
12704
|
ready: m
|
|
12698
12705
|
} = l;
|
|
12699
|
-
p ? (await Aw(l, c, p, Ot(n, 0, Gn[c] + 2)), n = Ot(n, Gn[c] + 2), s ? o.error(new Error(
|
|
12706
|
+
p ? (await Aw(l, c, p, Ot(n, 0, Gn[c] + 2)), n = Ot(n, Gn[c] + 2), s ? o.error(new Error(No)) : h()) : await m;
|
|
12700
12707
|
const g = new Uint8Array(n.length - hr - (n.length - hr) % tn);
|
|
12701
12708
|
o.enqueue(Su(l, n, g, 0, hr, !0));
|
|
12702
12709
|
},
|
|
@@ -12768,7 +12775,7 @@ class Ow extends TransformStream {
|
|
|
12768
12775
|
const h = n.update(Kn(Xt, l));
|
|
12769
12776
|
o.update(h), c = Yn(Xt, h);
|
|
12770
12777
|
}
|
|
12771
|
-
a.signature = Yn(Xt, o.digest()).slice(0, hr), s.enqueue(
|
|
12778
|
+
a.signature = Yn(Xt, o.digest()).slice(0, hr), s.enqueue(Do(c, a.signature));
|
|
12772
12779
|
}
|
|
12773
12780
|
}
|
|
12774
12781
|
}), a = this;
|
|
@@ -12780,7 +12787,7 @@ function Su(e, t, r, i, a, s) {
|
|
|
12780
12787
|
hmac: o,
|
|
12781
12788
|
pending: l
|
|
12782
12789
|
} = e, p = t.length - a;
|
|
12783
|
-
l.length && (t =
|
|
12790
|
+
l.length && (t = Do(l, t), r = Iw(r, p - p % tn));
|
|
12784
12791
|
let c;
|
|
12785
12792
|
for (c = 0; c <= p - tn; c += tn) {
|
|
12786
12793
|
const h = Kn(Xt, Ot(t, c, c + tn));
|
|
@@ -12797,11 +12804,11 @@ async function Aw(e, t, r, i) {
|
|
|
12797
12804
|
}
|
|
12798
12805
|
async function $w(e, t, r) {
|
|
12799
12806
|
const i = ku(new Uint8Array(Gn[t])), a = await Tu(e, t, r, i);
|
|
12800
|
-
return
|
|
12807
|
+
return Do(i, a);
|
|
12801
12808
|
}
|
|
12802
12809
|
async function Tu(e, t, r, i) {
|
|
12803
12810
|
e.password = null;
|
|
12804
|
-
const a = await Rw(ww, r, vw, !1, xw), s = await Fw(Object.assign({ salt: i },
|
|
12811
|
+
const a = await Rw(ww, r, vw, !1, xw), s = await Fw(Object.assign({ salt: i }, io), a, 8 * (En[t] * 2 + 2)), n = new Uint8Array(s), o = Kn(Xt, Ot(n, 0, En[t])), l = Kn(Xt, Ot(n, En[t], En[t] * 2)), p = Ot(n, En[t] * 2);
|
|
12805
12812
|
return Object.assign(e, {
|
|
12806
12813
|
keys: {
|
|
12807
12814
|
key: o,
|
|
@@ -12815,7 +12822,7 @@ async function Tu(e, t, r, i) {
|
|
|
12815
12822
|
async function Rw(e, t, r, i, a) {
|
|
12816
12823
|
if (np)
|
|
12817
12824
|
try {
|
|
12818
|
-
return await
|
|
12825
|
+
return await ds.importKey(e, t, r, i, a);
|
|
12819
12826
|
} catch {
|
|
12820
12827
|
return np = !1, Br.importKey(t);
|
|
12821
12828
|
}
|
|
@@ -12825,17 +12832,17 @@ async function Rw(e, t, r, i, a) {
|
|
|
12825
12832
|
async function Fw(e, t, r) {
|
|
12826
12833
|
if (sp)
|
|
12827
12834
|
try {
|
|
12828
|
-
return await
|
|
12835
|
+
return await ds.deriveBits(e, t, r);
|
|
12829
12836
|
} catch {
|
|
12830
|
-
return sp = !1, Br.pbkdf2(t, e.salt,
|
|
12837
|
+
return sp = !1, Br.pbkdf2(t, e.salt, io.iterations, r);
|
|
12831
12838
|
}
|
|
12832
12839
|
else
|
|
12833
|
-
return Br.pbkdf2(t, e.salt,
|
|
12840
|
+
return Br.pbkdf2(t, e.salt, io.iterations, r);
|
|
12834
12841
|
}
|
|
12835
12842
|
function Ou(e, t) {
|
|
12836
12843
|
return t === lt ? mw(e) : t;
|
|
12837
12844
|
}
|
|
12838
|
-
function
|
|
12845
|
+
function Do(e, t) {
|
|
12839
12846
|
let r = e;
|
|
12840
12847
|
return e.length + t.length && (r = new Uint8Array(e.length + t.length), r.set(e, 0), r.set(t, e.length)), r;
|
|
12841
12848
|
}
|
|
@@ -12873,7 +12880,7 @@ class Lw extends TransformStream {
|
|
|
12873
12880
|
throw new Error(vu);
|
|
12874
12881
|
a = a.subarray(ln);
|
|
12875
12882
|
}
|
|
12876
|
-
i ? s.error(new Error(
|
|
12883
|
+
i ? s.error(new Error(No)) : s.enqueue(ip(n, a));
|
|
12877
12884
|
}
|
|
12878
12885
|
});
|
|
12879
12886
|
}
|
|
@@ -12904,26 +12911,26 @@ class Cw extends TransformStream {
|
|
|
12904
12911
|
function ip(e, t) {
|
|
12905
12912
|
const r = new Uint8Array(t.length);
|
|
12906
12913
|
for (let i = 0; i < t.length; i++)
|
|
12907
|
-
r[i] = $u(e) ^ t[i],
|
|
12914
|
+
r[i] = $u(e) ^ t[i], jo(e, r[i]);
|
|
12908
12915
|
return r;
|
|
12909
12916
|
}
|
|
12910
12917
|
function ap(e, t) {
|
|
12911
12918
|
const r = new Uint8Array(t.length);
|
|
12912
12919
|
for (let i = 0; i < t.length; i++)
|
|
12913
|
-
r[i] = $u(e) ^ t[i],
|
|
12920
|
+
r[i] = $u(e) ^ t[i], jo(e, t[i]);
|
|
12914
12921
|
return r;
|
|
12915
12922
|
}
|
|
12916
12923
|
function Au(e, t) {
|
|
12917
12924
|
const r = [305419896, 591751049, 878082192];
|
|
12918
12925
|
Object.assign(e, {
|
|
12919
12926
|
keys: r,
|
|
12920
|
-
crcKey0: new
|
|
12921
|
-
crcKey2: new
|
|
12927
|
+
crcKey0: new ai(r[0]),
|
|
12928
|
+
crcKey2: new ai(r[2])
|
|
12922
12929
|
});
|
|
12923
12930
|
for (let i = 0; i < t.length; i++)
|
|
12924
|
-
|
|
12931
|
+
jo(e, t.charCodeAt(i));
|
|
12925
12932
|
}
|
|
12926
|
-
function
|
|
12933
|
+
function jo(e, t) {
|
|
12927
12934
|
let [r, i, a] = e.keys;
|
|
12928
12935
|
e.crcKey0.append([t]), r = ~e.crcKey0.get(), i = op(Math.imul(op(i + Ru(r)), 134775813) + 1), e.crcKey2.append([i >>> 24]), a = ~e.crcKey2.get(), e.keys = [r, i, a];
|
|
12929
12936
|
}
|
|
@@ -13052,7 +13059,7 @@ class zw extends TransformStream {
|
|
|
13052
13059
|
}
|
|
13053
13060
|
}
|
|
13054
13061
|
let Nu = typeof Worker != xr;
|
|
13055
|
-
class
|
|
13062
|
+
class Ra {
|
|
13056
13063
|
constructor(t, { readable: r, writable: i }, { options: a, config: s, streamOptions: n, useWebWorkers: o, transferStreams: l, scripts: p }, c) {
|
|
13057
13064
|
const { signal: h } = n;
|
|
13058
13065
|
return Object.assign(t, {
|
|
@@ -13080,18 +13087,18 @@ class Hw extends TransformStream {
|
|
|
13080
13087
|
let n = 0;
|
|
13081
13088
|
super({
|
|
13082
13089
|
async start() {
|
|
13083
|
-
r && await
|
|
13090
|
+
r && await Fa(r, a);
|
|
13084
13091
|
},
|
|
13085
13092
|
async transform(o, l) {
|
|
13086
|
-
n += o.length, i && await
|
|
13093
|
+
n += o.length, i && await Fa(i, n, a), l.enqueue(o);
|
|
13087
13094
|
},
|
|
13088
13095
|
async flush() {
|
|
13089
|
-
t.size = n, s && await
|
|
13096
|
+
t.size = n, s && await Fa(s, n);
|
|
13090
13097
|
}
|
|
13091
13098
|
});
|
|
13092
13099
|
}
|
|
13093
13100
|
}
|
|
13094
|
-
async function
|
|
13101
|
+
async function Fa(e, ...t) {
|
|
13095
13102
|
try {
|
|
13096
13103
|
await e(...t);
|
|
13097
13104
|
} catch {
|
|
@@ -13150,7 +13157,7 @@ async function Gw(e, t) {
|
|
|
13150
13157
|
rejectResult: i,
|
|
13151
13158
|
result: a
|
|
13152
13159
|
});
|
|
13153
|
-
const { readable: s, options: n, scripts: o } = e, { writable: l, closed: p } = Yw(e.writable), c =
|
|
13160
|
+
const { readable: s, options: n, scripts: o } = e, { writable: l, closed: p } = Yw(e.writable), c = Ws({
|
|
13154
13161
|
type: Uw,
|
|
13155
13162
|
scripts: o.slice(1),
|
|
13156
13163
|
options: n,
|
|
@@ -13185,7 +13192,7 @@ let cp = !0, up = !0;
|
|
|
13185
13192
|
function Kw(e, t, r) {
|
|
13186
13193
|
const i = { type: "module" };
|
|
13187
13194
|
let a, s;
|
|
13188
|
-
typeof e ==
|
|
13195
|
+
typeof e == us && (e = e());
|
|
13189
13196
|
try {
|
|
13190
13197
|
a = new URL(e, t);
|
|
13191
13198
|
} catch {
|
|
@@ -13201,7 +13208,7 @@ function Kw(e, t, r) {
|
|
|
13201
13208
|
s = new Worker(a, i);
|
|
13202
13209
|
return s.addEventListener(jw, (n) => Xw(n, r)), s;
|
|
13203
13210
|
}
|
|
13204
|
-
function
|
|
13211
|
+
function Ws(e, { worker: t, writer: r, onTaskFinished: i, transferStreams: a }) {
|
|
13205
13212
|
try {
|
|
13206
13213
|
const { value: s, readable: n, writable: o } = e, l = [];
|
|
13207
13214
|
if (s && (s.byteLength < s.buffer.byteLength ? e.value = s.buffer.slice(0, s.byteLength) : e.value = s.buffer, l.push(e.value)), a && up ? (n && l.push(n), o && l.push(o)) : e.readable = e.writable = null, l.length)
|
|
@@ -13225,19 +13232,19 @@ async function Xw({ data: e }, t) {
|
|
|
13225
13232
|
} else {
|
|
13226
13233
|
if (r == Bw) {
|
|
13227
13234
|
const { value: g, done: A } = await o.read();
|
|
13228
|
-
|
|
13235
|
+
Ws({ type: fp, value: g, done: A, messageId: a }, t);
|
|
13229
13236
|
}
|
|
13230
|
-
r == fp && (await l.ready, await l.write(new Uint8Array(i)),
|
|
13237
|
+
r == fp && (await l.ready, await l.write(new Uint8Array(i)), Ws({ type: qw, messageId: a }, t)), r == pp && m(null, s);
|
|
13231
13238
|
}
|
|
13232
13239
|
} catch (g) {
|
|
13233
|
-
|
|
13240
|
+
Ws({ type: pp, messageId: a }, t), m(g);
|
|
13234
13241
|
}
|
|
13235
13242
|
function m(g, A) {
|
|
13236
13243
|
g ? c(g) : p(A), l && l.releaseLock(), h();
|
|
13237
13244
|
}
|
|
13238
13245
|
}
|
|
13239
13246
|
let Tr = [];
|
|
13240
|
-
const
|
|
13247
|
+
const Ia = [];
|
|
13241
13248
|
let dp = 0;
|
|
13242
13249
|
async function Jw(e, t) {
|
|
13243
13250
|
const { options: r, config: i } = t, { transferStreams: a, useWebWorkers: s, useCompressionStream: n, codecType: o, compressed: l, signed: p, encrypted: c } = r, { workerScripts: h, maxWorkers: m } = i;
|
|
@@ -13247,17 +13254,17 @@ async function Jw(e, t) {
|
|
|
13247
13254
|
async function A() {
|
|
13248
13255
|
const w = Tr.find((b) => !b.busy);
|
|
13249
13256
|
if (w)
|
|
13250
|
-
return hp(w), new
|
|
13257
|
+
return hp(w), new Ra(w, e, t, y);
|
|
13251
13258
|
if (Tr.length < m) {
|
|
13252
13259
|
const b = { indexWorker: dp };
|
|
13253
|
-
return dp++, Tr.push(b), new
|
|
13260
|
+
return dp++, Tr.push(b), new Ra(b, e, t, y);
|
|
13254
13261
|
} else
|
|
13255
|
-
return new Promise((b) =>
|
|
13262
|
+
return new Promise((b) => Ia.push({ resolve: b, stream: e, workerOptions: t }));
|
|
13256
13263
|
}
|
|
13257
13264
|
function y(w) {
|
|
13258
|
-
if (
|
|
13259
|
-
const [{ resolve: b, stream: O, workerOptions: P }] =
|
|
13260
|
-
b(new
|
|
13265
|
+
if (Ia.length) {
|
|
13266
|
+
const [{ resolve: b, stream: O, workerOptions: P }] = Ia.splice(0, 1);
|
|
13267
|
+
b(new Ra(w, O, P, y));
|
|
13261
13268
|
} else w.worker ? (hp(w), Qw(w, t)) : Tr = Tr.filter((b) => b != w);
|
|
13262
13269
|
}
|
|
13263
13270
|
}
|
|
@@ -13281,7 +13288,7 @@ function eb(e, t = {}) {
|
|
|
13281
13288
|
e({ workerScripts: { inflate: [i], deflate: [i] } });
|
|
13282
13289
|
}
|
|
13283
13290
|
const tb = "Writer iterator completed too soon", rb = "Content-Type", nb = 64 * 1024, ju = "writable";
|
|
13284
|
-
class
|
|
13291
|
+
class Uo {
|
|
13285
13292
|
constructor() {
|
|
13286
13293
|
this.size = 0;
|
|
13287
13294
|
}
|
|
@@ -13289,7 +13296,7 @@ class No {
|
|
|
13289
13296
|
this.initialized = !0;
|
|
13290
13297
|
}
|
|
13291
13298
|
}
|
|
13292
|
-
class Uu extends
|
|
13299
|
+
class Uu extends Uo {
|
|
13293
13300
|
get readable() {
|
|
13294
13301
|
const t = this, { chunkSize: r = nb } = t, i = new ReadableStream({
|
|
13295
13302
|
start() {
|
|
@@ -13303,7 +13310,7 @@ class Uu extends No {
|
|
|
13303
13310
|
return i;
|
|
13304
13311
|
}
|
|
13305
13312
|
}
|
|
13306
|
-
class
|
|
13313
|
+
class ao extends Uu {
|
|
13307
13314
|
constructor(t) {
|
|
13308
13315
|
super(), Object.assign(this, {
|
|
13309
13316
|
blob: t,
|
|
@@ -13316,7 +13323,7 @@ class no extends Uu {
|
|
|
13316
13323
|
return n.byteLength > r && (n = n.slice(t, a)), new Uint8Array(n);
|
|
13317
13324
|
}
|
|
13318
13325
|
}
|
|
13319
|
-
class sb extends
|
|
13326
|
+
class sb extends Uo {
|
|
13320
13327
|
constructor(t) {
|
|
13321
13328
|
super();
|
|
13322
13329
|
const r = this, i = new TransformStream(), a = [];
|
|
@@ -13357,7 +13364,7 @@ class ib extends Uu {
|
|
|
13357
13364
|
return a.lastDiskNumber = Math.max(o, a.lastDiskNumber), n;
|
|
13358
13365
|
}
|
|
13359
13366
|
}
|
|
13360
|
-
class mp extends
|
|
13367
|
+
class mp extends Uo {
|
|
13361
13368
|
constructor(t, r = 4294967295) {
|
|
13362
13369
|
super();
|
|
13363
13370
|
const i = this;
|
|
@@ -13378,7 +13385,7 @@ class mp extends No {
|
|
|
13378
13385
|
const { value: m, done: g } = await t.next();
|
|
13379
13386
|
if (g && !m)
|
|
13380
13387
|
throw new Error(tb);
|
|
13381
|
-
a = m, a.size = 0, a.maxSize && (i.maxSize = a.maxSize), i.availableSize = i.maxSize, await
|
|
13388
|
+
a = m, a.size = 0, a.maxSize && (i.maxSize = a.maxSize), i.availableSize = i.maxSize, await li(a), s = m.writable, n = s.getWriter(), await this.write(c);
|
|
13382
13389
|
}
|
|
13383
13390
|
},
|
|
13384
13391
|
async close() {
|
|
@@ -13399,7 +13406,7 @@ class mp extends No {
|
|
|
13399
13406
|
}
|
|
13400
13407
|
}
|
|
13401
13408
|
}
|
|
13402
|
-
async function
|
|
13409
|
+
async function li(e, t) {
|
|
13403
13410
|
if (e.init && !e.initialized)
|
|
13404
13411
|
await e.init(t);
|
|
13405
13412
|
else
|
|
@@ -13411,7 +13418,7 @@ function ab(e) {
|
|
|
13411
13418
|
}), e;
|
|
13412
13419
|
}
|
|
13413
13420
|
function ob(e) {
|
|
13414
|
-
e.writable === lt && typeof e.next ==
|
|
13421
|
+
e.writable === lt && typeof e.next == us && (e = new mp(e)), e instanceof WritableStream && (e = {
|
|
13415
13422
|
writable: e
|
|
13416
13423
|
});
|
|
13417
13424
|
const { writable: t } = e;
|
|
@@ -13435,23 +13442,23 @@ function fb(e) {
|
|
|
13435
13442
|
} else
|
|
13436
13443
|
return new TextDecoder().decode(e);
|
|
13437
13444
|
}
|
|
13438
|
-
function
|
|
13445
|
+
function zs(e, t) {
|
|
13439
13446
|
return t && t.trim().toLowerCase() == "cp437" ? fb(e) : new TextDecoder(t).decode(e);
|
|
13440
13447
|
}
|
|
13441
|
-
const qu = "filename", Mu = "rawFilename", Wu = "comment", zu = "rawComment", Hu = "uncompressedSize", Vu = "compressedSize", Zu = "offset",
|
|
13448
|
+
const qu = "filename", Mu = "rawFilename", Wu = "comment", zu = "rawComment", Hu = "uncompressedSize", Vu = "compressedSize", Zu = "offset", oo = "diskNumberStart", lo = "lastModDate", fo = "rawLastModDate", Gu = "lastAccessDate", pb = "rawLastAccessDate", Yu = "creationDate", cb = "rawCreationDate", ub = "internalFileAttribute", db = "internalFileAttributes", hb = "externalFileAttribute", mb = "externalFileAttributes", yb = "msDosCompatible", gb = "zip64", wb = "encrypted", bb = "version", _b = "versionMadeBy", vb = "zipCrypto", xb = "directory", kb = "executable", Pb = [
|
|
13442
13449
|
qu,
|
|
13443
13450
|
Mu,
|
|
13444
13451
|
Vu,
|
|
13445
13452
|
Hu,
|
|
13446
|
-
|
|
13447
|
-
|
|
13453
|
+
lo,
|
|
13454
|
+
fo,
|
|
13448
13455
|
Wu,
|
|
13449
13456
|
zu,
|
|
13450
13457
|
Gu,
|
|
13451
13458
|
Yu,
|
|
13452
13459
|
Zu,
|
|
13453
|
-
|
|
13454
|
-
|
|
13460
|
+
oo,
|
|
13461
|
+
oo,
|
|
13455
13462
|
ub,
|
|
13456
13463
|
db,
|
|
13457
13464
|
hb,
|
|
@@ -13483,18 +13490,18 @@ class yp {
|
|
|
13483
13490
|
Pb.forEach((r) => this[r] = t[r]);
|
|
13484
13491
|
}
|
|
13485
13492
|
}
|
|
13486
|
-
const
|
|
13493
|
+
const La = "File format is not recognized", Eb = "End of central directory not found", Sb = "End of Zip64 central directory locator not found", Tb = "Central directory header not found", Ob = "Local file header not found", Ab = "Zip64 extra field not found", $b = "File contains encrypted entry", Rb = "Encryption method not supported", gp = "Compression method not supported", wp = "Split zip file", bp = "utf-8", _p = "cp437", Fb = [
|
|
13487
13494
|
[Hu, Fr],
|
|
13488
13495
|
[Vu, Fr],
|
|
13489
13496
|
[Zu, Fr],
|
|
13490
|
-
[
|
|
13497
|
+
[oo, mr]
|
|
13491
13498
|
], Ib = {
|
|
13492
13499
|
[mr]: {
|
|
13493
13500
|
getValue: Be,
|
|
13494
13501
|
bytes: 4
|
|
13495
13502
|
},
|
|
13496
13503
|
[Fr]: {
|
|
13497
|
-
getValue:
|
|
13504
|
+
getValue: Hs,
|
|
13498
13505
|
bytes: 8
|
|
13499
13506
|
}
|
|
13500
13507
|
};
|
|
@@ -13510,8 +13517,8 @@ class vp {
|
|
|
13510
13517
|
const r = this;
|
|
13511
13518
|
let { reader: i } = r;
|
|
13512
13519
|
const { config: a } = r;
|
|
13513
|
-
if (await
|
|
13514
|
-
throw new Error(
|
|
13520
|
+
if (await li(i), (i.size === lt || !i.readUint8Array) && (i = new ao(await new Response(i.readable).blob()), await li(i)), i.size < Kr)
|
|
13521
|
+
throw new Error(La);
|
|
13515
13522
|
i.chunkSize = hw(a);
|
|
13516
13523
|
const s = await Ub(i, ew, i.size, Kr, mr * 16);
|
|
13517
13524
|
if (!s) {
|
|
@@ -13525,24 +13532,24 @@ class vp {
|
|
|
13525
13532
|
const g = i.lastDiskNumber || 0;
|
|
13526
13533
|
let A = Ge(n, 6), y = Ge(n, 8), w = 0, b = 0;
|
|
13527
13534
|
if (l == Fr || o == Fr || y == mr || A == mr) {
|
|
13528
|
-
const k = await et(i, s.offset -
|
|
13535
|
+
const k = await et(i, s.offset - Oa, Oa), S = Ye(k);
|
|
13529
13536
|
if (Be(S, 0) == tw) {
|
|
13530
|
-
l =
|
|
13531
|
-
let N = await et(i, l,
|
|
13532
|
-
const U = s.offset -
|
|
13537
|
+
l = Hs(S, 8);
|
|
13538
|
+
let N = await et(i, l, Aa, -1), I = Ye(N);
|
|
13539
|
+
const U = s.offset - Oa - Aa;
|
|
13533
13540
|
if (Be(I, 0) != Gf && l != U) {
|
|
13534
13541
|
const q = l;
|
|
13535
|
-
l = U, w = l - q, N = await et(i, l,
|
|
13542
|
+
l = U, w = l - q, N = await et(i, l, Aa, -1), I = Ye(N);
|
|
13536
13543
|
}
|
|
13537
13544
|
if (Be(I, 0) != Gf)
|
|
13538
13545
|
throw new Error(Sb);
|
|
13539
|
-
m == mr && (m = Be(I, 16)), A == mr && (A = Be(I, 20)), y == mr && (y =
|
|
13546
|
+
m == mr && (m = Be(I, 16)), A == mr && (A = Be(I, 20)), y == mr && (y = Hs(I, 32)), o == Fr && (o = Hs(I, 40)), l -= o;
|
|
13540
13547
|
}
|
|
13541
13548
|
}
|
|
13542
13549
|
if (l >= i.size && (w = i.size - l - o - Kr, l = i.size - o - Kr), g != m)
|
|
13543
13550
|
throw new Error(wp);
|
|
13544
13551
|
if (l < 0)
|
|
13545
|
-
throw new Error(
|
|
13552
|
+
throw new Error(La);
|
|
13546
13553
|
let O = 0, P = await et(i, l, o, A), L = Ye(P);
|
|
13547
13554
|
if (o) {
|
|
13548
13555
|
const k = s.offset - o;
|
|
@@ -13553,7 +13560,7 @@ class vp {
|
|
|
13553
13560
|
}
|
|
13554
13561
|
const $ = s.offset - l - (i.lastDiskOffset || 0);
|
|
13555
13562
|
if (o != $ && $ >= 0 && (o = $, P = await et(i, l, o, A), L = Ye(P)), l < 0 || l >= i.size)
|
|
13556
|
-
throw new Error(
|
|
13563
|
+
throw new Error(La);
|
|
13557
13564
|
const C = it(r, t, "filenameEncoding"), E = it(r, t, "commentEncoding");
|
|
13558
13565
|
for (let k = 0; k < y; k++) {
|
|
13559
13566
|
const S = new Lb(i, a, r.options);
|
|
@@ -13578,11 +13585,11 @@ class vp {
|
|
|
13578
13585
|
rawExtraField: P.subarray(U, q),
|
|
13579
13586
|
executable: Se
|
|
13580
13587
|
}), S.internalFileAttribute = S.internalFileAttributes, S.externalFileAttribute = S.externalFileAttributes;
|
|
13581
|
-
const Xe = it(r, t, "decodeText") ||
|
|
13588
|
+
const Xe = it(r, t, "decodeText") || zs, tt = G ? bp : C || _p, Et = fe ? bp : E || _p;
|
|
13582
13589
|
let Le = Xe(se, tt);
|
|
13583
|
-
Le === lt && (Le =
|
|
13590
|
+
Le === lt && (Le = zs(se, tt));
|
|
13584
13591
|
let Ce = Xe(ee, Et);
|
|
13585
|
-
Ce === lt && (Ce =
|
|
13592
|
+
Ce === lt && (Ce = zs(ee, Et)), Object.assign(S, {
|
|
13586
13593
|
rawComment: ee,
|
|
13587
13594
|
filename: Le,
|
|
13588
13595
|
comment: Ce,
|
|
@@ -13658,7 +13665,7 @@ class Lb {
|
|
|
13658
13665
|
size: F
|
|
13659
13666
|
});
|
|
13660
13667
|
const S = it(a, i, "signal"), N = it(a, i, "checkPasswordOnly");
|
|
13661
|
-
N && (t = new WritableStream()), t = ob(t), await
|
|
13668
|
+
N && (t = new WritableStream()), t = ob(t), await li(t, $ ? y : A);
|
|
13662
13669
|
const { writable: I } = t, { onstart: U, onprogress: q, onend: W } = i, X = {
|
|
13663
13670
|
options: {
|
|
13664
13671
|
codecType: Cu,
|
|
@@ -13683,7 +13690,7 @@ class Lb {
|
|
|
13683
13690
|
try {
|
|
13684
13691
|
({ outputSize: V } = await Jw({ readable: k, writable: I }, X));
|
|
13685
13692
|
} catch (se) {
|
|
13686
|
-
if (!N || se.message !=
|
|
13693
|
+
if (!N || se.message != No)
|
|
13687
13694
|
throw se;
|
|
13688
13695
|
} finally {
|
|
13689
13696
|
const se = it(a, i, "preventClose");
|
|
@@ -13755,14 +13762,14 @@ function Cb(e, t) {
|
|
|
13755
13762
|
}
|
|
13756
13763
|
}
|
|
13757
13764
|
function xp(e, t, r, i, a) {
|
|
13758
|
-
const s = Ye(e.data), n = new
|
|
13765
|
+
const s = Ye(e.data), n = new ai();
|
|
13759
13766
|
n.append(a[r]);
|
|
13760
13767
|
const o = Ye(new Uint8Array(4));
|
|
13761
13768
|
o.setUint32(0, n.get(), !0);
|
|
13762
13769
|
const l = Be(s, 1);
|
|
13763
13770
|
Object.assign(e, {
|
|
13764
13771
|
version: fn(s, 0),
|
|
13765
|
-
[t]:
|
|
13772
|
+
[t]: zs(e.data.subarray(5)),
|
|
13766
13773
|
valid: !a.bitFlag.languageEncodingFlag && l == Be(o, 0)
|
|
13767
13774
|
}), e.valid && (i[t] = e[t], i[t + "UTF8"] = !0);
|
|
13768
13775
|
}
|
|
@@ -13794,7 +13801,7 @@ function Db(e, t) {
|
|
|
13794
13801
|
rawLastAccessDate: o,
|
|
13795
13802
|
rawCreationDate: l
|
|
13796
13803
|
});
|
|
13797
|
-
const p =
|
|
13804
|
+
const p = Ca(n), c = Ca(o), h = Ca(l), m = { lastModDate: p, lastAccessDate: c, creationDate: h };
|
|
13798
13805
|
Object.assign(e, m), Object.assign(t, m);
|
|
13799
13806
|
}
|
|
13800
13807
|
} catch {
|
|
@@ -13802,7 +13809,7 @@ function Db(e, t) {
|
|
|
13802
13809
|
}
|
|
13803
13810
|
function jb(e, t, r) {
|
|
13804
13811
|
const i = Ye(e.data), a = fn(i, 0), s = [], n = [];
|
|
13805
|
-
r ? ((a & 1) == 1 && (s.push(
|
|
13812
|
+
r ? ((a & 1) == 1 && (s.push(lo), n.push(fo)), (a & 2) == 2 && (s.push(Gu), n.push(pb)), (a & 4) == 4 && (s.push(Yu), n.push(cb))) : e.data.length >= 5 && (s.push(lo), n.push(fo));
|
|
13806
13813
|
let o = 1;
|
|
13807
13814
|
s.forEach((l, p) => {
|
|
13808
13815
|
if (e.data.length >= o + 4) {
|
|
@@ -13839,7 +13846,7 @@ function Bb(e) {
|
|
|
13839
13846
|
} catch {
|
|
13840
13847
|
}
|
|
13841
13848
|
}
|
|
13842
|
-
function
|
|
13849
|
+
function Ca(e) {
|
|
13843
13850
|
return new Date(Number(e / BigInt(1e4) - BigInt(116444736e5)));
|
|
13844
13851
|
}
|
|
13845
13852
|
function fn(e, t) {
|
|
@@ -13851,7 +13858,7 @@ function Ge(e, t) {
|
|
|
13851
13858
|
function Be(e, t) {
|
|
13852
13859
|
return e.getUint32(t, !0);
|
|
13853
13860
|
}
|
|
13854
|
-
function
|
|
13861
|
+
function Hs(e, t) {
|
|
13855
13862
|
return Number(e.getBigUint64(t, !0));
|
|
13856
13863
|
}
|
|
13857
13864
|
function qb(e, t, r) {
|
|
@@ -13865,9 +13872,9 @@ try {
|
|
|
13865
13872
|
Ju = import.meta.url;
|
|
13866
13873
|
} catch {
|
|
13867
13874
|
}
|
|
13868
|
-
|
|
13869
|
-
eb(
|
|
13870
|
-
|
|
13875
|
+
Co({ baseURL: Ju });
|
|
13876
|
+
eb(Co);
|
|
13877
|
+
Co({ Deflate: T1, Inflate: G1 });
|
|
13871
13878
|
class Mb {
|
|
13872
13879
|
constructor(t) {
|
|
13873
13880
|
this.fileTree = t;
|
|
@@ -13900,21 +13907,21 @@ class Mb {
|
|
|
13900
13907
|
throw new Error(`File not found at ${t}`);
|
|
13901
13908
|
}
|
|
13902
13909
|
}
|
|
13903
|
-
class
|
|
13910
|
+
class fi {
|
|
13904
13911
|
constructor(t) {
|
|
13905
13912
|
this.entries = /* @__PURE__ */ new Map(), this.zipReader = t;
|
|
13906
13913
|
}
|
|
13907
13914
|
static fromStream(t) {
|
|
13908
13915
|
const r = new vp(
|
|
13909
|
-
new
|
|
13916
|
+
new ao(new Lr(t, "archive.zip"))
|
|
13910
13917
|
);
|
|
13911
|
-
return new
|
|
13918
|
+
return new fi(r);
|
|
13912
13919
|
}
|
|
13913
13920
|
static fromArrayBuffer(t) {
|
|
13914
13921
|
const r = new vp(
|
|
13915
|
-
new
|
|
13922
|
+
new ao(new Blob([t]))
|
|
13916
13923
|
);
|
|
13917
|
-
return new
|
|
13924
|
+
return new fi(r);
|
|
13918
13925
|
}
|
|
13919
13926
|
async read(t) {
|
|
13920
13927
|
const r = await this.getEntry(t), i = await r.getData(new sb());
|
|
@@ -13993,7 +14000,7 @@ class zb {
|
|
|
13993
14000
|
throw new Error(
|
|
13994
14001
|
"FetchFilesystem cannot fetch files from data URLs"
|
|
13995
14002
|
);
|
|
13996
|
-
t =
|
|
14003
|
+
t = ui(t);
|
|
13997
14004
|
const r = t.replace(/^\//, ""), i = new URL(r, this.baseUrl).toString();
|
|
13998
14005
|
if (!i.startsWith(this.baseUrl))
|
|
13999
14006
|
throw new Error(
|
|
@@ -14008,7 +14015,7 @@ class zb {
|
|
|
14008
14015
|
return new Lr(s.body, t, { filesize: n });
|
|
14009
14016
|
}
|
|
14010
14017
|
}
|
|
14011
|
-
function
|
|
14018
|
+
function Pi(e) {
|
|
14012
14019
|
const t = e.split(".").shift().replace(/-/g, " ");
|
|
14013
14020
|
return t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
|
|
14014
14021
|
}
|
|
@@ -14107,7 +14114,7 @@ class Kb extends Error {
|
|
|
14107
14114
|
super(t), this.name = "BlueprintFilesystemRequiredError";
|
|
14108
14115
|
}
|
|
14109
14116
|
}
|
|
14110
|
-
class
|
|
14117
|
+
class Na extends Error {
|
|
14111
14118
|
constructor(t, r, i) {
|
|
14112
14119
|
super(t, i), this.name = "ResourceDownloadError", this.url = r;
|
|
14113
14120
|
}
|
|
@@ -14325,7 +14332,7 @@ class r_ extends Pt {
|
|
|
14325
14332
|
return this.resource.name;
|
|
14326
14333
|
}
|
|
14327
14334
|
}
|
|
14328
|
-
class
|
|
14335
|
+
class Bo extends Pt {
|
|
14329
14336
|
/**
|
|
14330
14337
|
* Creates a new instance of `FetchResource`.
|
|
14331
14338
|
* @param progress The progress tracker.
|
|
@@ -14346,7 +14353,7 @@ class Do extends Pt {
|
|
|
14346
14353
|
await ((i = this.playground) == null ? void 0 : i.absoluteUrl)
|
|
14347
14354
|
);
|
|
14348
14355
|
if (!s.ok)
|
|
14349
|
-
throw new
|
|
14356
|
+
throw new Na(
|
|
14350
14357
|
`Could not download "${t}"`,
|
|
14351
14358
|
t
|
|
14352
14359
|
);
|
|
@@ -14354,7 +14361,7 @@ class Do extends Pt {
|
|
|
14354
14361
|
s,
|
|
14355
14362
|
((a = this.progress) == null ? void 0 : a.loadingListener) ?? s_
|
|
14356
14363
|
), s.status !== 200)
|
|
14357
|
-
throw new
|
|
14364
|
+
throw new Na(
|
|
14358
14365
|
`Could not download "${t}"`,
|
|
14359
14366
|
t
|
|
14360
14367
|
);
|
|
@@ -14363,10 +14370,10 @@ class Do extends Pt {
|
|
|
14363
14370
|
) || encodeURIComponent(t);
|
|
14364
14371
|
return new File([await s.arrayBuffer()], n);
|
|
14365
14372
|
} catch (s) {
|
|
14366
|
-
throw new
|
|
14373
|
+
throw new Na(
|
|
14367
14374
|
`Could not download "${t}".
|
|
14368
14375
|
|
|
14369
|
-
Confirm that the URL is correct, the server is reachable, and the file
|
|
14376
|
+
Confirm that the URL is correct, the server is reachable, and the file is actually served at that URL. Original error:
|
|
14370
14377
|
${s}`,
|
|
14371
14378
|
t,
|
|
14372
14379
|
{ cause: s }
|
|
@@ -14412,7 +14419,7 @@ function n_(e) {
|
|
|
14412
14419
|
}
|
|
14413
14420
|
const s_ = () => {
|
|
14414
14421
|
};
|
|
14415
|
-
class i_ extends
|
|
14422
|
+
class i_ extends Bo {
|
|
14416
14423
|
/**
|
|
14417
14424
|
* Creates a new instance of `UrlResource`.
|
|
14418
14425
|
* @param resource The URL reference.
|
|
@@ -14499,7 +14506,7 @@ class a_ extends Pt {
|
|
|
14499
14506
|
* Generate a nice, non-empty filename – the installPlugin step depends on it.
|
|
14500
14507
|
*/
|
|
14501
14508
|
get filename() {
|
|
14502
|
-
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, "") || Zs();
|
|
14503
14510
|
}
|
|
14504
14511
|
/** @inheritDoc */
|
|
14505
14512
|
get name() {
|
|
@@ -14528,24 +14535,24 @@ class l_ extends Pt {
|
|
|
14528
14535
|
return this.reference.name;
|
|
14529
14536
|
}
|
|
14530
14537
|
}
|
|
14531
|
-
class f_ extends
|
|
14538
|
+
class f_ extends Bo {
|
|
14532
14539
|
constructor(t, r) {
|
|
14533
14540
|
super(r), this.resource = t;
|
|
14534
14541
|
}
|
|
14535
14542
|
get name() {
|
|
14536
|
-
return
|
|
14543
|
+
return Pi(this.resource.slug);
|
|
14537
14544
|
}
|
|
14538
14545
|
getURL() {
|
|
14539
14546
|
return `https://downloads.wordpress.org/theme/${ed(this.resource.slug)}`;
|
|
14540
14547
|
}
|
|
14541
14548
|
}
|
|
14542
|
-
class p_ extends
|
|
14549
|
+
class p_ extends Bo {
|
|
14543
14550
|
constructor(t, r) {
|
|
14544
14551
|
super(r), this.resource = t;
|
|
14545
14552
|
}
|
|
14546
14553
|
/** @inheritDoc */
|
|
14547
14554
|
get name() {
|
|
14548
|
-
return
|
|
14555
|
+
return Pi(this.resource.slug);
|
|
14549
14556
|
}
|
|
14550
14557
|
/** @inheritDoc */
|
|
14551
14558
|
getURL() {
|
|
@@ -14818,7 +14825,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
14818
14825
|
'"wordpress/wp-load.php"',
|
|
14819
14826
|
'"/wordpress/wp-load.php"'
|
|
14820
14827
|
)), await e.run({ code: r });
|
|
14821
|
-
}, g_ = async (e, { options: t }) => await e.run(t),
|
|
14828
|
+
}, g_ = async (e, { options: t }) => await e.run(t), po = async (e, { path: t }) => {
|
|
14822
14829
|
t.startsWith("/") || (Oe.error(
|
|
14823
14830
|
`
|
|
14824
14831
|
The rm() step in your Blueprint refers to a relative path.
|
|
@@ -15001,7 +15008,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15001
15008
|
|
|
15002
15009
|
}`, b_ = async (e, { sql: t }, r) => {
|
|
15003
15010
|
r == null || r.tracker.setCaption("Executing SQL Queries");
|
|
15004
|
-
const i = `/tmp/${
|
|
15011
|
+
const i = `/tmp/${Zs()}.sql`, a = `/tmp/${Zs()}.php`;
|
|
15005
15012
|
await e.writeFile(
|
|
15006
15013
|
i,
|
|
15007
15014
|
new Uint8Array(await t.arrayBuffer())
|
|
@@ -15009,7 +15016,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15009
15016
|
a,
|
|
15010
15017
|
new TextEncoder().encode(w_)
|
|
15011
15018
|
);
|
|
15012
|
-
const s = await e.documentRoot, n =
|
|
15019
|
+
const s = await e.documentRoot, n = un({ docroot: s, sqlFilename: i, streamClassFilename: a }), o = await e.run({
|
|
15013
15020
|
code: `<?php
|
|
15014
15021
|
define('WP_SQLITE_AST_DRIVER', true);
|
|
15015
15022
|
require_once ${n.docroot} . '/wp-load.php';
|
|
@@ -15056,7 +15063,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15056
15063
|
}
|
|
15057
15064
|
`
|
|
15058
15065
|
});
|
|
15059
|
-
return await
|
|
15066
|
+
return await po(e, { path: i }), await po(e, { path: a }), o;
|
|
15060
15067
|
}, __ = async (e, { request: t }) => {
|
|
15061
15068
|
Oe.warn(
|
|
15062
15069
|
'Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.'
|
|
@@ -15076,7 +15083,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15076
15083
|
new Uint8Array(await n.arrayBuffer())
|
|
15077
15084
|
);
|
|
15078
15085
|
}
|
|
15079
|
-
const s =
|
|
15086
|
+
const s = un({
|
|
15080
15087
|
zipPath: t,
|
|
15081
15088
|
extractToPath: r,
|
|
15082
15089
|
overwriteFiles: i
|
|
@@ -15594,7 +15601,7 @@ async function x_(e, t) {
|
|
|
15594
15601
|
)
|
|
15595
15602
|
), !e.fileExists(r))
|
|
15596
15603
|
return;
|
|
15597
|
-
const a =
|
|
15604
|
+
const a = un({ wpConfigPath: r, constants: i });
|
|
15598
15605
|
if ((await e.run({
|
|
15599
15606
|
code: `${sd}
|
|
15600
15607
|
$wp_config_path = ${a.wpConfigPath};
|
|
@@ -15610,7 +15617,7 @@ async function x_(e, t) {
|
|
|
15610
15617
|
throw new Error("Failed to auto-configure wp-config.php.");
|
|
15611
15618
|
}
|
|
15612
15619
|
async function k_(e, t, r) {
|
|
15613
|
-
const i =
|
|
15620
|
+
const i = un({ wpConfigPath: t, constants: r });
|
|
15614
15621
|
if ((await e.run({
|
|
15615
15622
|
code: `${sd}
|
|
15616
15623
|
$wp_config_path = ${i.wpConfigPath};
|
|
@@ -15621,7 +15628,7 @@ async function k_(e, t, r) {
|
|
|
15621
15628
|
})).errors.length > 0)
|
|
15622
15629
|
throw new Error("Failed to rewrite constants in wp-config.php.");
|
|
15623
15630
|
}
|
|
15624
|
-
const
|
|
15631
|
+
const qo = async (e, { consts: t, method: r = "define-before-run" }) => {
|
|
15625
15632
|
switch (r) {
|
|
15626
15633
|
case "define-before-run":
|
|
15627
15634
|
await P_(e, t);
|
|
@@ -15662,7 +15669,7 @@ const id = async (e, { options: t }) => {
|
|
|
15662
15669
|
}
|
|
15663
15670
|
`
|
|
15664
15671
|
});
|
|
15665
|
-
},
|
|
15672
|
+
}, Mo = "/tmp/wp-cli.phar", S_ = {
|
|
15666
15673
|
resource: "url",
|
|
15667
15674
|
/**
|
|
15668
15675
|
* Use compression for downloading the wp-cli.phar file.
|
|
@@ -15675,7 +15682,7 @@ const id = async (e, { options: t }) => {
|
|
|
15675
15682
|
* like the JavaScript parser or Composer are removed.
|
|
15676
15683
|
*/
|
|
15677
15684
|
url: "https://playground.wordpress.net/wp-cli.phar"
|
|
15678
|
-
}, ad = async (e, t =
|
|
15685
|
+
}, ad = async (e, t = Mo) => {
|
|
15679
15686
|
if (!await e.fileExists(t))
|
|
15680
15687
|
throw new Error(`wp-cli.phar not found at ${t}.
|
|
15681
15688
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
@@ -15684,7 +15691,7 @@ const id = async (e, { options: t }) => {
|
|
|
15684
15691
|
}
|
|
15685
15692
|
Read more about it in the documentation.
|
|
15686
15693
|
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`);
|
|
15687
|
-
}, od = async (e, { command: t, wpCliPath: r =
|
|
15694
|
+
}, od = async (e, { command: t, wpCliPath: r = Mo }) => {
|
|
15688
15695
|
await ad(e, r);
|
|
15689
15696
|
let i;
|
|
15690
15697
|
if (typeof t == "string" ? (t = t.trim(), i = T_(t)) : i = t, i.shift() !== "wp")
|
|
@@ -15764,7 +15771,7 @@ function T_(e) {
|
|
|
15764
15771
|
return n && s.push(n), s;
|
|
15765
15772
|
}
|
|
15766
15773
|
const O_ = async (e, { wpCliPath: t }) => {
|
|
15767
|
-
await ad(e, t), await
|
|
15774
|
+
await ad(e, t), await qo(e, {
|
|
15768
15775
|
consts: {
|
|
15769
15776
|
WP_ALLOW_MULTISITE: 1
|
|
15770
15777
|
}
|
|
@@ -15866,7 +15873,7 @@ Use: rmdir({ path: '/wordpress/wp-load.php' });
|
|
|
15866
15873
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15867
15874
|
`.trim()
|
|
15868
15875
|
), t = `/${t}`), await e.rmdir(t);
|
|
15869
|
-
},
|
|
15876
|
+
}, Wo = async (e, { path: t, data: r }) => {
|
|
15870
15877
|
r instanceof File && (r = new Uint8Array(await r.arrayBuffer())), t.startsWith("/") || (Oe.error(
|
|
15871
15878
|
`
|
|
15872
15879
|
The writeFile() step in your Blueprint refers to a relative path.
|
|
@@ -15901,9 +15908,9 @@ Use: writeFiles({ writeToPath: '/wordpress/wp-content/plugins/my-plugin'
|
|
|
15901
15908
|
|
|
15902
15909
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15903
15910
|
`.trim()
|
|
15904
|
-
), t = `/${t}`), await
|
|
15911
|
+
), t = `/${t}`), await di(e, t, r.files);
|
|
15905
15912
|
}, ld = async (e, { siteUrl: t }) => {
|
|
15906
|
-
await
|
|
15913
|
+
await qo(e, {
|
|
15907
15914
|
consts: {
|
|
15908
15915
|
WP_HOME: t,
|
|
15909
15916
|
WP_SITEURL: t
|
|
@@ -15914,7 +15921,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15914
15921
|
};
|
|
15915
15922
|
async function C_(e, t, r) {
|
|
15916
15923
|
var i;
|
|
15917
|
-
(i = r == null ? void 0 : r.tracker) == null || i.setCaption("Importing content"), await
|
|
15924
|
+
(i = r == null ? void 0 : r.tracker) == null || i.setCaption("Importing content"), await Wo(e, {
|
|
15918
15925
|
path: "/tmp/import.wxr",
|
|
15919
15926
|
data: t
|
|
15920
15927
|
}), await e.run({
|
|
@@ -16037,7 +16044,7 @@ const fd = async (e, { themeSlug: t = "" }, r) => {
|
|
|
16037
16044
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
16038
16045
|
`
|
|
16039
16046
|
});
|
|
16040
|
-
},
|
|
16047
|
+
}, zo = async (e, { zipFile: t, zipPath: r, extractToPath: i }) => {
|
|
16041
16048
|
if (r)
|
|
16042
16049
|
Oe.warn(
|
|
16043
16050
|
'The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.'
|
|
@@ -16069,7 +16076,7 @@ const fd = async (e, { themeSlug: t = "" }, r) => {
|
|
|
16069
16076
|
], N_ = async (e, { wordPressFilesZip: t, pathInZip: r = "" }) => {
|
|
16070
16077
|
const i = await e.documentRoot;
|
|
16071
16078
|
let a = Te("/tmp", "import");
|
|
16072
|
-
await e.mkdir(a), await
|
|
16079
|
+
await e.mkdir(a), await zo(e, {
|
|
16073
16080
|
zipFile: t,
|
|
16074
16081
|
extractToPath: a
|
|
16075
16082
|
}), a = Te(a, r);
|
|
@@ -16089,7 +16096,7 @@ const fd = async (e, { themeSlug: t = "" }, r) => {
|
|
|
16089
16096
|
);
|
|
16090
16097
|
await Pp(e, A);
|
|
16091
16098
|
const y = Te(l, g);
|
|
16092
|
-
await e.fileExists(y) && (await e.mkdir(
|
|
16099
|
+
await e.fileExists(y) && (await e.mkdir(qa(A)), await e.mv(y, A));
|
|
16093
16100
|
}
|
|
16094
16101
|
const p = Te(
|
|
16095
16102
|
a,
|
|
@@ -16191,7 +16198,7 @@ async function D_(e, t, r, i) {
|
|
|
16191
16198
|
});
|
|
16192
16199
|
}
|
|
16193
16200
|
async function j_(e, t) {
|
|
16194
|
-
const r =
|
|
16201
|
+
const r = un({ documentRoot: t });
|
|
16195
16202
|
return (await e.run({
|
|
16196
16203
|
code: `<?php
|
|
16197
16204
|
require_once ${r.documentRoot} . '/wp-load.php';
|
|
@@ -16216,12 +16223,12 @@ async function cd(e, {
|
|
|
16216
16223
|
ifAlreadyInstalled: i = "overwrite",
|
|
16217
16224
|
targetFolderName: a = ""
|
|
16218
16225
|
}) {
|
|
16219
|
-
const n = r.name.replace(/\.zip$/, ""), o = Te(await e.documentRoot, "wp-content"), l = Te(o,
|
|
16226
|
+
const n = r.name.replace(/\.zip$/, ""), o = Te(await e.documentRoot, "wp-content"), l = Te(o, Zs()), p = Te(l, "assets", n);
|
|
16220
16227
|
await e.fileExists(p) && await e.rmdir(l, {
|
|
16221
16228
|
recursive: !0
|
|
16222
16229
|
}), await e.mkdir(l);
|
|
16223
16230
|
try {
|
|
16224
|
-
await
|
|
16231
|
+
await zo(e, {
|
|
16225
16232
|
zipFile: r,
|
|
16226
16233
|
extractToPath: p
|
|
16227
16234
|
});
|
|
@@ -16282,7 +16289,7 @@ const B_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16282
16289
|
if (t instanceof File)
|
|
16283
16290
|
if (await c(t)) {
|
|
16284
16291
|
const m = t.name.split("/").pop() || "plugin.zip";
|
|
16285
|
-
p =
|
|
16292
|
+
p = Pi(m), s == null || s.tracker.setCaption(
|
|
16286
16293
|
`Installing the ${p} plugin`
|
|
16287
16294
|
);
|
|
16288
16295
|
const g = await cd(e, {
|
|
@@ -16297,7 +16304,7 @@ const B_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16297
16304
|
n,
|
|
16298
16305
|
t.name
|
|
16299
16306
|
);
|
|
16300
|
-
await
|
|
16307
|
+
await Wo(e, {
|
|
16301
16308
|
path: m,
|
|
16302
16309
|
data: t
|
|
16303
16310
|
}), l = n, p = t.name;
|
|
@@ -16311,7 +16318,7 @@ const B_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16311
16318
|
n,
|
|
16312
16319
|
o || t.name
|
|
16313
16320
|
);
|
|
16314
|
-
await
|
|
16321
|
+
await di(e, m, t.files, {
|
|
16315
16322
|
rmRoot: !0
|
|
16316
16323
|
}), l = m;
|
|
16317
16324
|
}
|
|
@@ -16331,7 +16338,7 @@ const B_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16331
16338
|
let o = "", l = "";
|
|
16332
16339
|
if (t instanceof File) {
|
|
16333
16340
|
const h = t.name.split("/").pop() || "theme.zip";
|
|
16334
|
-
l =
|
|
16341
|
+
l = Pi(h), s == null || s.tracker.setCaption(`Installing the ${l} theme`), o = (await cd(e, {
|
|
16335
16342
|
ifAlreadyInstalled: i,
|
|
16336
16343
|
zipFile: t,
|
|
16337
16344
|
targetPath: `${await e.documentRoot}/wp-content/themes`,
|
|
@@ -16345,7 +16352,7 @@ const B_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16345
16352
|
"themes",
|
|
16346
16353
|
o
|
|
16347
16354
|
);
|
|
16348
|
-
await
|
|
16355
|
+
await di(e, h, t.files, {
|
|
16349
16356
|
rmRoot: !0
|
|
16350
16357
|
});
|
|
16351
16358
|
}
|
|
@@ -16419,7 +16426,7 @@ const B_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16419
16426
|
[i]: "playground-export.json"
|
|
16420
16427
|
};
|
|
16421
16428
|
t && (l[Te(a, "wp-config.php")] = "wp-config.php");
|
|
16422
|
-
const p =
|
|
16429
|
+
const p = un({
|
|
16423
16430
|
zipPath: r,
|
|
16424
16431
|
wpContentPath: s,
|
|
16425
16432
|
documentRoot: a,
|
|
@@ -16579,7 +16586,7 @@ const G_ = async (e, t) => {
|
|
|
16579
16586
|
type: "theme"
|
|
16580
16587
|
});
|
|
16581
16588
|
await e.isDir(`${i}/wp-content/languages/plugins`) || await e.mkdir(`${i}/wp-content/languages/plugins`), await e.isDir(`${i}/wp-content/languages/themes`) || await e.mkdir(`${i}/wp-content/languages/themes`);
|
|
16582
|
-
const c = new
|
|
16589
|
+
const c = new es({ concurrency: 5 }), h = s.map(
|
|
16583
16590
|
({ url: m, type: g }) => c.run(async () => {
|
|
16584
16591
|
try {
|
|
16585
16592
|
const A = await fetch(m);
|
|
@@ -16614,7 +16621,7 @@ const G_ = async (e, t) => {
|
|
|
16614
16621
|
activateTheme: rd,
|
|
16615
16622
|
cp: A_,
|
|
16616
16623
|
defineSiteUrl: ld,
|
|
16617
|
-
defineWpConfigConsts:
|
|
16624
|
+
defineWpConfigConsts: qo,
|
|
16618
16625
|
enableMultisite: O_,
|
|
16619
16626
|
exportWXR: U_,
|
|
16620
16627
|
importThemeStarterContent: fd,
|
|
@@ -16627,7 +16634,7 @@ const G_ = async (e, t) => {
|
|
|
16627
16634
|
mv: $_,
|
|
16628
16635
|
request: __,
|
|
16629
16636
|
resetData: W_,
|
|
16630
|
-
rm:
|
|
16637
|
+
rm: po,
|
|
16631
16638
|
rmdir: F_,
|
|
16632
16639
|
runPHP: y_,
|
|
16633
16640
|
runPHPWithOptions: g_,
|
|
@@ -16635,10 +16642,10 @@ const G_ = async (e, t) => {
|
|
|
16635
16642
|
runWpInstallationWizard: z_,
|
|
16636
16643
|
setSiteLanguage: Y_,
|
|
16637
16644
|
setSiteOptions: id,
|
|
16638
|
-
unzip:
|
|
16645
|
+
unzip: zo,
|
|
16639
16646
|
updateUserMeta: E_,
|
|
16640
16647
|
wpCLI: od,
|
|
16641
|
-
writeFile:
|
|
16648
|
+
writeFile: Wo,
|
|
16642
16649
|
writeFiles: I_,
|
|
16643
16650
|
zipWpContent: H_
|
|
16644
16651
|
}, Symbol.toStringTag, { value: "Module" })), X_ = {
|
|
@@ -16866,7 +16873,7 @@ function Cn(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
16866
16873
|
}
|
|
16867
16874
|
return Cn.errors = s, n === 0;
|
|
16868
16875
|
}
|
|
16869
|
-
const
|
|
16876
|
+
const Da = { validate: _e }, ev = {
|
|
16870
16877
|
enum: ["branch", "tag", "commit", "refname"]
|
|
16871
16878
|
};
|
|
16872
16879
|
function st(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: a = e } = {}) {
|
|
@@ -17040,7 +17047,7 @@ const tv = {
|
|
|
17040
17047
|
{ type: ["object", "string"] }
|
|
17041
17048
|
]
|
|
17042
17049
|
}
|
|
17043
|
-
},
|
|
17050
|
+
}, ja = { validate: Ir };
|
|
17044
17051
|
function Ir(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: a = e } = {}) {
|
|
17045
17052
|
let s = null, n = 0;
|
|
17046
17053
|
if (n === 0)
|
|
@@ -17050,12 +17057,12 @@ function Ir(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
17050
17057
|
const h = n, m = n;
|
|
17051
17058
|
let g = !1;
|
|
17052
17059
|
const A = n;
|
|
17053
|
-
|
|
17060
|
+
ja.validate(c, {
|
|
17054
17061
|
instancePath: t + "/" + p.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
17055
17062
|
parentData: e,
|
|
17056
17063
|
parentDataProperty: p,
|
|
17057
17064
|
rootData: a
|
|
17058
|
-
}) || (s = s === null ?
|
|
17065
|
+
}) || (s = s === null ? ja.validate.errors : s.concat(ja.validate.errors), n = s.length);
|
|
17059
17066
|
var o = A === n;
|
|
17060
17067
|
if (g = g || o, !g) {
|
|
17061
17068
|
const y = n;
|
|
@@ -17300,13 +17307,13 @@ function Nt(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
17300
17307
|
const m = n, g = n;
|
|
17301
17308
|
let A = !1;
|
|
17302
17309
|
const y = n;
|
|
17303
|
-
|
|
17310
|
+
Da.validate(h, {
|
|
17304
17311
|
instancePath: t + "/inner",
|
|
17305
17312
|
parentData: e,
|
|
17306
17313
|
parentDataProperty: "inner",
|
|
17307
17314
|
rootData: a
|
|
17308
|
-
}) || (s = s === null ?
|
|
17309
|
-
|
|
17315
|
+
}) || (s = s === null ? Da.validate.errors : s.concat(
|
|
17316
|
+
Da.validate.errors
|
|
17310
17317
|
), n = s.length);
|
|
17311
17318
|
var l = y === n;
|
|
17312
17319
|
if (A = A || l, !A) {
|
|
@@ -18220,7 +18227,7 @@ function _e(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
18220
18227
|
}
|
|
18221
18228
|
return _e.errors = s, n === 0;
|
|
18222
18229
|
}
|
|
18223
|
-
const
|
|
18230
|
+
const Fs = {
|
|
18224
18231
|
oneOf: [
|
|
18225
18232
|
{
|
|
18226
18233
|
type: "object",
|
|
@@ -21347,7 +21354,7 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
21347
21354
|
schemaPath: "#/oneOf/3/properties/method/enum",
|
|
21348
21355
|
keyword: "enum",
|
|
21349
21356
|
params: {
|
|
21350
|
-
allowedValues:
|
|
21357
|
+
allowedValues: Fs.oneOf[3].properties.method.enum
|
|
21351
21358
|
},
|
|
21352
21359
|
message: "must be equal to one of the allowed values"
|
|
21353
21360
|
}
|
|
@@ -21898,7 +21905,7 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
21898
21905
|
schemaPath: "#/oneOf/6/properties/importer/enum",
|
|
21899
21906
|
keyword: "enum",
|
|
21900
21907
|
params: {
|
|
21901
|
-
allowedValues:
|
|
21908
|
+
allowedValues: Fs.oneOf[6].properties.importer.enum
|
|
21902
21909
|
},
|
|
21903
21910
|
message: "must be equal to one of the allowed values"
|
|
21904
21911
|
}
|
|
@@ -22403,7 +22410,7 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
22403
22410
|
schemaPath: "#/oneOf/9/properties/ifAlreadyInstalled/enum",
|
|
22404
22411
|
keyword: "enum",
|
|
22405
22412
|
params: {
|
|
22406
|
-
allowedValues:
|
|
22413
|
+
allowedValues: Fs.oneOf[9].properties.ifAlreadyInstalled.enum
|
|
22407
22414
|
},
|
|
22408
22415
|
message: "must be equal to one of the allowed values"
|
|
22409
22416
|
}
|
|
@@ -22731,7 +22738,7 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
22731
22738
|
schemaPath: "#/oneOf/10/properties/ifAlreadyInstalled/enum",
|
|
22732
22739
|
keyword: "enum",
|
|
22733
22740
|
params: {
|
|
22734
|
-
allowedValues:
|
|
22741
|
+
allowedValues: Fs.oneOf[10].properties.ifAlreadyInstalled.enum
|
|
22735
22742
|
},
|
|
22736
22743
|
message: "must be equal to one of the allowed values"
|
|
22737
22744
|
}
|
|
@@ -25777,7 +25784,7 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
25777
25784
|
for (const be in f)
|
|
25778
25785
|
if (!(be === "BYTES_PER_ELEMENT" || be === "buffer" || be === "byteLength" || be === "byteOffset" || be === "length")) {
|
|
25779
25786
|
let gt = f[be];
|
|
25780
|
-
const
|
|
25787
|
+
const hs = n;
|
|
25781
25788
|
if (!(typeof gt == "number" && isFinite(
|
|
25782
25789
|
gt
|
|
25783
25790
|
))) {
|
|
@@ -25802,8 +25809,8 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
25802
25809
|
Ve
|
|
25803
25810
|
), n++;
|
|
25804
25811
|
}
|
|
25805
|
-
var
|
|
25806
|
-
if (!
|
|
25812
|
+
var Ei = hs === n;
|
|
25813
|
+
if (!Ei)
|
|
25807
25814
|
break;
|
|
25808
25815
|
}
|
|
25809
25816
|
if (Bt === n) {
|
|
@@ -25813,7 +25820,7 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
25813
25820
|
if (!(typeof be == "number" && isFinite(
|
|
25814
25821
|
be
|
|
25815
25822
|
))) {
|
|
25816
|
-
const
|
|
25823
|
+
const hs = {
|
|
25817
25824
|
instancePath: t + "/data/BYTES_PER_ELEMENT",
|
|
25818
25825
|
schemaPath: "#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",
|
|
25819
25826
|
keyword: "type",
|
|
@@ -25823,9 +25830,9 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
25823
25830
|
message: "must be number"
|
|
25824
25831
|
};
|
|
25825
25832
|
s === null ? s = [
|
|
25826
|
-
|
|
25833
|
+
hs
|
|
25827
25834
|
] : s.push(
|
|
25828
|
-
|
|
25835
|
+
hs
|
|
25829
25836
|
), n++;
|
|
25830
25837
|
}
|
|
25831
25838
|
var nt = gt === n;
|
|
@@ -25841,7 +25848,7 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
25841
25848
|
)) {
|
|
25842
25849
|
let Ve;
|
|
25843
25850
|
if (be.byteLength === void 0 && (Ve = "byteLength")) {
|
|
25844
|
-
const
|
|
25851
|
+
const ms = {
|
|
25845
25852
|
instancePath: t + "/data/buffer",
|
|
25846
25853
|
schemaPath: "#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",
|
|
25847
25854
|
keyword: "required",
|
|
@@ -25851,36 +25858,36 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
25851
25858
|
message: "must have required property '" + Ve + "'"
|
|
25852
25859
|
};
|
|
25853
25860
|
s === null ? s = [
|
|
25854
|
-
|
|
25861
|
+
ms
|
|
25855
25862
|
] : s.push(
|
|
25856
|
-
|
|
25863
|
+
ms
|
|
25857
25864
|
), n++;
|
|
25858
25865
|
} else {
|
|
25859
|
-
const
|
|
25860
|
-
for (const
|
|
25861
|
-
if (
|
|
25862
|
-
const
|
|
25866
|
+
const ms = n;
|
|
25867
|
+
for (const gn in be)
|
|
25868
|
+
if (gn !== "byteLength") {
|
|
25869
|
+
const wn = {
|
|
25863
25870
|
instancePath: t + "/data/buffer",
|
|
25864
25871
|
schemaPath: "#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",
|
|
25865
25872
|
keyword: "additionalProperties",
|
|
25866
25873
|
params: {
|
|
25867
|
-
additionalProperty:
|
|
25874
|
+
additionalProperty: gn
|
|
25868
25875
|
},
|
|
25869
25876
|
message: "must NOT have additional properties"
|
|
25870
25877
|
};
|
|
25871
25878
|
s === null ? s = [
|
|
25872
|
-
|
|
25879
|
+
wn
|
|
25873
25880
|
] : s.push(
|
|
25874
|
-
|
|
25881
|
+
wn
|
|
25875
25882
|
), n++;
|
|
25876
25883
|
break;
|
|
25877
25884
|
}
|
|
25878
|
-
if (
|
|
25879
|
-
let
|
|
25880
|
-
if (!(typeof
|
|
25881
|
-
|
|
25885
|
+
if (ms === n && be.byteLength !== void 0) {
|
|
25886
|
+
let gn = be.byteLength;
|
|
25887
|
+
if (!(typeof gn == "number" && isFinite(
|
|
25888
|
+
gn
|
|
25882
25889
|
))) {
|
|
25883
|
-
const
|
|
25890
|
+
const wn = {
|
|
25884
25891
|
instancePath: t + "/data/buffer/byteLength",
|
|
25885
25892
|
schemaPath: "#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",
|
|
25886
25893
|
keyword: "type",
|
|
@@ -25890,9 +25897,9 @@ function _(e, { instancePath: t = "", parentData: r, parentDataProperty: i, root
|
|
|
25890
25897
|
message: "must be number"
|
|
25891
25898
|
};
|
|
25892
25899
|
s === null ? s = [
|
|
25893
|
-
|
|
25900
|
+
wn
|
|
25894
25901
|
] : s.push(
|
|
25895
|
-
|
|
25902
|
+
wn
|
|
25896
25903
|
), n++;
|
|
25897
25904
|
}
|
|
25898
25905
|
}
|
|
@@ -27682,14 +27689,14 @@ function me(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
27682
27689
|
], !1;
|
|
27683
27690
|
return me.errors = s, n === 0;
|
|
27684
27691
|
}
|
|
27685
|
-
function
|
|
27692
|
+
function Vs(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: a = e } = {}) {
|
|
27686
27693
|
let s = null, n = 0;
|
|
27687
27694
|
return me(e, {
|
|
27688
27695
|
instancePath: t,
|
|
27689
27696
|
parentData: r,
|
|
27690
27697
|
parentDataProperty: i,
|
|
27691
27698
|
rootData: a
|
|
27692
|
-
}) || (s = s === null ? me.errors : s.concat(me.errors), n = s.length),
|
|
27699
|
+
}) || (s = s === null ? me.errors : s.concat(me.errors), n = s.length), Vs.errors = s, n === 0;
|
|
27693
27700
|
}
|
|
27694
27701
|
const { wpCLI: nv, ...Ep } = K_, sv = {
|
|
27695
27702
|
...Ep,
|
|
@@ -27727,8 +27734,8 @@ async function ov(e) {
|
|
|
27727
27734
|
return JSON.parse(r);
|
|
27728
27735
|
}
|
|
27729
27736
|
function lv(e, {
|
|
27730
|
-
progress: t = new
|
|
27731
|
-
semaphore: r = new
|
|
27737
|
+
progress: t = new ci(),
|
|
27738
|
+
semaphore: r = new es({ concurrency: 3 }),
|
|
27732
27739
|
onStepCompleted: i = () => {
|
|
27733
27740
|
},
|
|
27734
27741
|
onBlueprintValidated: a = () => {
|
|
@@ -27788,7 +27795,7 @@ function lv(e, {
|
|
|
27788
27795
|
const F = {
|
|
27789
27796
|
step: "writeFile",
|
|
27790
27797
|
data: S_,
|
|
27791
|
-
path:
|
|
27798
|
+
path: Mo
|
|
27792
27799
|
};
|
|
27793
27800
|
p === -1 ? (b = e.steps) == null || b.push(F) : (O = e.steps) == null || O.splice(
|
|
27794
27801
|
p,
|
|
@@ -27841,7 +27848,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
27841
27848
|
versions: {
|
|
27842
27849
|
php: cv(
|
|
27843
27850
|
($ = e.preferredVersions) == null ? void 0 : $.php,
|
|
27844
|
-
|
|
27851
|
+
ho,
|
|
27845
27852
|
Jd
|
|
27846
27853
|
),
|
|
27847
27854
|
wp: ((C = e.preferredVersions) == null ? void 0 : C.wp) || "latest"
|
|
@@ -27929,15 +27936,15 @@ function fv(e, t) {
|
|
|
27929
27936
|
}
|
|
27930
27937
|
function pv(e) {
|
|
27931
27938
|
var a;
|
|
27932
|
-
const t =
|
|
27939
|
+
const t = Vs(e);
|
|
27933
27940
|
if (t)
|
|
27934
27941
|
return { valid: t };
|
|
27935
27942
|
const r = /* @__PURE__ */ new Set();
|
|
27936
|
-
for (const s of
|
|
27943
|
+
for (const s of Vs.errors)
|
|
27937
27944
|
s.schemaPath.startsWith("#/properties/steps/items/anyOf") || r.add(s.instancePath);
|
|
27938
27945
|
return {
|
|
27939
27946
|
valid: !1,
|
|
27940
|
-
errors: ((a =
|
|
27947
|
+
errors: ((a = Vs.errors) == null ? void 0 : a.filter(
|
|
27941
27948
|
(s) => !(s.schemaPath.startsWith(
|
|
27942
27949
|
"#/properties/steps/items/anyOf"
|
|
27943
27950
|
) && r.has(s.instancePath))
|
|
@@ -28226,7 +28233,7 @@ async function Nv(e) {
|
|
|
28226
28233
|
]);
|
|
28227
28234
|
} catch (r) {
|
|
28228
28235
|
if (await vv(t))
|
|
28229
|
-
return
|
|
28236
|
+
return fi.fromArrayBuffer(t);
|
|
28230
28237
|
throw new Error(
|
|
28231
28238
|
`Blueprint file at ${e} is neither a valid JSON nor a ZIP file.`,
|
|
28232
28239
|
{ cause: r }
|
|
@@ -28380,7 +28387,7 @@ class Tv {
|
|
|
28380
28387
|
async function jv(e) {
|
|
28381
28388
|
const {
|
|
28382
28389
|
iframe: t,
|
|
28383
|
-
progressTracker: r = new
|
|
28390
|
+
progressTracker: r = new ci(),
|
|
28384
28391
|
disableProgressBar: i
|
|
28385
28392
|
} = e;
|
|
28386
28393
|
let { remoteUrl: a } = e;
|
|
@@ -28443,8 +28450,8 @@ export {
|
|
|
28443
28450
|
av as BlueprintStepExecutionError,
|
|
28444
28451
|
iv as InvalidBlueprintError,
|
|
28445
28452
|
Jd as LatestSupportedPHPVersion,
|
|
28446
|
-
|
|
28447
|
-
|
|
28453
|
+
Na as ResourceDownloadError,
|
|
28454
|
+
ho as SupportedPHPVersions,
|
|
28448
28455
|
Lv as SupportedPHPVersionsList,
|
|
28449
28456
|
td as activatePlugin,
|
|
28450
28457
|
rd as activateTheme,
|
|
@@ -28452,7 +28459,7 @@ export {
|
|
|
28452
28459
|
hd as compileBlueprintV1,
|
|
28453
28460
|
A_ as cp,
|
|
28454
28461
|
ld as defineSiteUrl,
|
|
28455
|
-
|
|
28462
|
+
qo as defineWpConfigConsts,
|
|
28456
28463
|
O_ as enableMultisite,
|
|
28457
28464
|
U_ as exportWXR,
|
|
28458
28465
|
ov as getBlueprintDeclaration,
|
|
@@ -28468,12 +28475,12 @@ export {
|
|
|
28468
28475
|
R_ as mkdir,
|
|
28469
28476
|
$_ as mv,
|
|
28470
28477
|
mt as phpVar,
|
|
28471
|
-
|
|
28478
|
+
un as phpVars,
|
|
28472
28479
|
__ as request,
|
|
28473
28480
|
W_ as resetData,
|
|
28474
28481
|
Nv as resolveRemoteBlueprint,
|
|
28475
28482
|
xv as resolveRuntimeConfiguration,
|
|
28476
|
-
|
|
28483
|
+
po as rm,
|
|
28477
28484
|
F_ as rmdir,
|
|
28478
28485
|
yv as runBlueprintSteps,
|
|
28479
28486
|
yv as runBlueprintV1Steps,
|
|
@@ -28487,12 +28494,12 @@ export {
|
|
|
28487
28494
|
Y_ as setSiteLanguage,
|
|
28488
28495
|
id as setSiteOptions,
|
|
28489
28496
|
jv as startPlaygroundWeb,
|
|
28490
|
-
|
|
28497
|
+
zo as unzip,
|
|
28491
28498
|
E_ as updateUserMeta,
|
|
28492
28499
|
pv as validateBlueprint,
|
|
28493
28500
|
od as wpCLI,
|
|
28494
28501
|
pd as wpContentFilesExcludedFromExport,
|
|
28495
|
-
|
|
28502
|
+
Wo as writeFile,
|
|
28496
28503
|
I_ as writeFiles,
|
|
28497
28504
|
H_ as zipWpContent
|
|
28498
28505
|
};
|