@wp-playground/client 1.0.11 → 1.0.13
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 +32 -32
- package/index.js +747 -730
- package/package.json +9 -9
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const ti = function() {
|
|
2
2
|
var e;
|
|
3
3
|
return typeof process < "u" && ((e = process.release) == null ? void 0 : e.name) === "node" ? "NODE" : typeof window < "u" ? "WEB" : (
|
|
4
4
|
// @ts-ignore
|
|
@@ -6,7 +6,7 @@ const Sn = function() {
|
|
|
6
6
|
self instanceof WorkerGlobalScope ? "WORKER" : "NODE"
|
|
7
7
|
);
|
|
8
8
|
}();
|
|
9
|
-
if (
|
|
9
|
+
if (ti === "NODE") {
|
|
10
10
|
let e = function(s) {
|
|
11
11
|
return new Promise(function(n, o) {
|
|
12
12
|
s.onload = s.onerror = function(i) {
|
|
@@ -57,7 +57,7 @@ if (Sn === "NODE") {
|
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
60
|
+
if (ti === "NODE" && typeof CustomEvent > "u") {
|
|
61
61
|
class e extends Event {
|
|
62
62
|
constructor(s, n = {}) {
|
|
63
63
|
super(s, n), this.detail = n.detail;
|
|
@@ -67,6 +67,13 @@ if (Sn === "NODE" && typeof CustomEvent > "u") {
|
|
|
67
67
|
}
|
|
68
68
|
globalThis.CustomEvent = e;
|
|
69
69
|
}
|
|
70
|
+
ti === "NODE" && typeof URL.canParse != "function" && (globalThis.URL.canParse = function(e) {
|
|
71
|
+
try {
|
|
72
|
+
return !!new URL(e);
|
|
73
|
+
} catch {
|
|
74
|
+
return !1;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
70
77
|
const An = [
|
|
71
78
|
"db.php",
|
|
72
79
|
"plugins/akismet",
|
|
@@ -89,17 +96,17 @@ const An = [
|
|
|
89
96
|
"themes/twentytwentyfive",
|
|
90
97
|
"themes/twentytwentysix"
|
|
91
98
|
], Tn = Symbol("SleepFinished");
|
|
92
|
-
function
|
|
99
|
+
function ao(e) {
|
|
93
100
|
return new Promise((r) => {
|
|
94
101
|
setTimeout(() => r(Tn), e);
|
|
95
102
|
});
|
|
96
103
|
}
|
|
97
|
-
class
|
|
104
|
+
class oo extends Error {
|
|
98
105
|
constructor() {
|
|
99
106
|
super("Acquiring lock timed out");
|
|
100
107
|
}
|
|
101
108
|
}
|
|
102
|
-
class
|
|
109
|
+
class po {
|
|
103
110
|
constructor({ concurrency: r, timeout: s }) {
|
|
104
111
|
this._running = 0, this.concurrency = r, this.timeout = s, this.queue = [];
|
|
105
112
|
}
|
|
@@ -115,10 +122,10 @@ class oo {
|
|
|
115
122
|
const r = new Promise((s) => {
|
|
116
123
|
this.queue.push(s);
|
|
117
124
|
});
|
|
118
|
-
this.timeout !== void 0 ? await Promise.race([r,
|
|
125
|
+
this.timeout !== void 0 ? await Promise.race([r, ao(this.timeout)]).then(
|
|
119
126
|
(s) => {
|
|
120
127
|
if (s === Tn)
|
|
121
|
-
throw new
|
|
128
|
+
throw new oo();
|
|
122
129
|
}
|
|
123
130
|
) : await r;
|
|
124
131
|
} else {
|
|
@@ -144,23 +151,23 @@ function _e(...e) {
|
|
|
144
151
|
}
|
|
145
152
|
let s = e.join("/");
|
|
146
153
|
const n = s[0] === "/", o = r(s);
|
|
147
|
-
return s =
|
|
154
|
+
return s = si(s), !s && !n && (s = "."), s && o && !r(s) && (s += "/"), s;
|
|
148
155
|
}
|
|
149
156
|
function gt(e) {
|
|
150
157
|
if (e === "/")
|
|
151
158
|
return "/";
|
|
152
|
-
e =
|
|
159
|
+
e = si(e);
|
|
153
160
|
const r = e.lastIndexOf("/");
|
|
154
161
|
return r === -1 ? "" : r === 0 ? "/" : e.substr(0, r);
|
|
155
162
|
}
|
|
156
|
-
function
|
|
163
|
+
function si(e) {
|
|
157
164
|
const r = e[0] === "/";
|
|
158
|
-
return e =
|
|
165
|
+
return e = fo(
|
|
159
166
|
e.split("/").filter((s) => !!s),
|
|
160
167
|
!r
|
|
161
168
|
).join("/"), (r ? "/" : "") + e.replace(/\/$/, "");
|
|
162
169
|
}
|
|
163
|
-
function
|
|
170
|
+
function fo(e, r) {
|
|
164
171
|
let s = 0;
|
|
165
172
|
for (let n = e.length - 1; n >= 0; n--) {
|
|
166
173
|
const o = e[n];
|
|
@@ -178,11 +185,11 @@ function Cn(e = 36, r = "!@#$%^&*()_+=-[]/.,<>?") {
|
|
|
178
185
|
n += s[Math.floor(Math.random() * s.length)];
|
|
179
186
|
return n;
|
|
180
187
|
}
|
|
181
|
-
function
|
|
188
|
+
function lo() {
|
|
182
189
|
return Cn(36, "-_");
|
|
183
190
|
}
|
|
184
191
|
function Ie(e) {
|
|
185
|
-
return `json_decode(base64_decode('${
|
|
192
|
+
return `json_decode(base64_decode('${uo(
|
|
186
193
|
JSON.stringify(e)
|
|
187
194
|
)}'), true)`;
|
|
188
195
|
}
|
|
@@ -192,23 +199,23 @@ function ns(e) {
|
|
|
192
199
|
r[s] = Ie(e[s]);
|
|
193
200
|
return r;
|
|
194
201
|
}
|
|
195
|
-
function lo(e) {
|
|
196
|
-
return uo(new TextEncoder().encode(e));
|
|
197
|
-
}
|
|
198
202
|
function uo(e) {
|
|
203
|
+
return co(new TextEncoder().encode(e));
|
|
204
|
+
}
|
|
205
|
+
function co(e) {
|
|
199
206
|
const r = String.fromCodePoint(...e);
|
|
200
207
|
return btoa(r);
|
|
201
208
|
}
|
|
202
|
-
const
|
|
209
|
+
const ho = "playground-log", vi = (e, ...r) => {
|
|
203
210
|
xe.dispatchEvent(
|
|
204
|
-
new CustomEvent(
|
|
211
|
+
new CustomEvent(ho, {
|
|
205
212
|
detail: {
|
|
206
213
|
log: e,
|
|
207
214
|
args: r
|
|
208
215
|
}
|
|
209
216
|
})
|
|
210
217
|
);
|
|
211
|
-
},
|
|
218
|
+
}, yo = (e, ...r) => {
|
|
212
219
|
switch (typeof e.message == "string" ? Reflect.set(e, "message", Us(e.message)) : e.message.message && typeof e.message.message == "string" && Reflect.set(
|
|
213
220
|
e.message,
|
|
214
221
|
"message",
|
|
@@ -232,25 +239,25 @@ const co = "playground-log", bi = (e, ...r) => {
|
|
|
232
239
|
default:
|
|
233
240
|
console.log(e.message, ...r);
|
|
234
241
|
}
|
|
235
|
-
},
|
|
236
|
-
`) : JSON.stringify(e, null, 2), On = [],
|
|
242
|
+
}, mo = (e) => e instanceof Error ? [e.message, e.stack].join(`
|
|
243
|
+
`) : JSON.stringify(e, null, 2), On = [], Pi = (e) => {
|
|
237
244
|
On.push(e);
|
|
238
245
|
}, Ws = (e) => {
|
|
239
246
|
if (e.raw === !0)
|
|
240
|
-
|
|
247
|
+
Pi(e.message);
|
|
241
248
|
else {
|
|
242
|
-
const r =
|
|
243
|
-
typeof e.message == "object" ?
|
|
249
|
+
const r = vo(
|
|
250
|
+
typeof e.message == "object" ? mo(e.message) : e.message,
|
|
244
251
|
e.severity ?? "Info",
|
|
245
252
|
e.prefix ?? "JavaScript"
|
|
246
253
|
);
|
|
247
|
-
|
|
254
|
+
Pi(r);
|
|
248
255
|
}
|
|
249
256
|
};
|
|
250
257
|
let _s = 0;
|
|
251
|
-
const
|
|
258
|
+
const Ei = "/wordpress/wp-content/debug.log", _o = async (e) => await e.fileExists(Ei) ? await e.readFileAsText(Ei) : "", go = (e, r) => {
|
|
252
259
|
r.addEventListener("request.end", async () => {
|
|
253
|
-
const s = await
|
|
260
|
+
const s = await _o(r);
|
|
254
261
|
if (s.length > _s) {
|
|
255
262
|
const n = s.substring(_s);
|
|
256
263
|
e.logMessage({
|
|
@@ -273,7 +280,7 @@ const Pi = "/wordpress/wp-content/debug.log", mo = async (e) => await e.fileExis
|
|
|
273
280
|
));
|
|
274
281
|
});
|
|
275
282
|
};
|
|
276
|
-
class
|
|
283
|
+
class wo extends EventTarget {
|
|
277
284
|
// constructor
|
|
278
285
|
constructor(r = []) {
|
|
279
286
|
super(), this.handlers = r, this.fatalErrorEvent = "playground-fatal-error";
|
|
@@ -385,14 +392,14 @@ class go extends EventTarget {
|
|
|
385
392
|
);
|
|
386
393
|
}
|
|
387
394
|
}
|
|
388
|
-
const
|
|
395
|
+
const bo = () => {
|
|
389
396
|
try {
|
|
390
397
|
if (process.env.NODE_ENV === "test")
|
|
391
|
-
return [Ws,
|
|
398
|
+
return [Ws, vi];
|
|
392
399
|
} catch {
|
|
393
400
|
}
|
|
394
|
-
return [Ws,
|
|
395
|
-
}, xe = new
|
|
401
|
+
return [Ws, yo, vi];
|
|
402
|
+
}, xe = new wo(bo()), Us = (e) => e.replace(/\t/g, ""), vo = (e, r, s) => {
|
|
396
403
|
const n = /* @__PURE__ */ new Date(), o = new Intl.DateTimeFormat("en-GB", {
|
|
397
404
|
year: "numeric",
|
|
398
405
|
month: "short",
|
|
@@ -483,11 +490,11 @@ const wo = () => {
|
|
|
483
490
|
throw xe.debug(i), new Error(
|
|
484
491
|
`Theme ${r} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details`
|
|
485
492
|
);
|
|
486
|
-
},
|
|
493
|
+
}, Po = async (e, { code: r }) => await e.run({ code: r }), Eo = async (e, { options: r }) => await e.run(r), In = async (e, { path: r }) => {
|
|
487
494
|
await e.unlink(r);
|
|
488
|
-
},
|
|
495
|
+
}, ko = async (e, { sql: r }, s) => {
|
|
489
496
|
s == null || s.tracker.setCaption("Executing SQL Queries");
|
|
490
|
-
const n = `/tmp/${
|
|
497
|
+
const n = `/tmp/${lo()}.sql`;
|
|
491
498
|
await e.writeFile(
|
|
492
499
|
n,
|
|
493
500
|
new Uint8Array(await r.arrayBuffer())
|
|
@@ -511,7 +518,7 @@ const wo = () => {
|
|
|
511
518
|
`
|
|
512
519
|
});
|
|
513
520
|
return await In(e, { path: n }), t;
|
|
514
|
-
},
|
|
521
|
+
}, So = async (e, { request: r }) => {
|
|
515
522
|
xe.warn(
|
|
516
523
|
'Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.'
|
|
517
524
|
);
|
|
@@ -521,7 +528,7 @@ const wo = () => {
|
|
|
521
528
|
`Request failed with status ${s.httpStatusCode}`
|
|
522
529
|
);
|
|
523
530
|
return s;
|
|
524
|
-
},
|
|
531
|
+
}, Ao = `<?php
|
|
525
532
|
|
|
526
533
|
/**
|
|
527
534
|
* Rewrites the wp-config.php file to ensure specific constants are defined
|
|
@@ -852,13 +859,13 @@ function skip_whitespace($tokens) {
|
|
|
852
859
|
}
|
|
853
860
|
return $output;
|
|
854
861
|
}
|
|
855
|
-
`,
|
|
862
|
+
`, ii = async (e, { consts: r, method: s = "define-before-run" }) => {
|
|
856
863
|
switch (s) {
|
|
857
864
|
case "define-before-run":
|
|
858
|
-
await
|
|
865
|
+
await To(e, r);
|
|
859
866
|
break;
|
|
860
867
|
case "rewrite-wp-config": {
|
|
861
|
-
const n = await e.documentRoot, o = _e(n, "/wp-config.php"), i = await e.readFileAsText(o), t = await
|
|
868
|
+
const n = await e.documentRoot, o = _e(n, "/wp-config.php"), i = await e.readFileAsText(o), t = await Co(
|
|
862
869
|
e,
|
|
863
870
|
i,
|
|
864
871
|
r
|
|
@@ -870,17 +877,17 @@ function skip_whitespace($tokens) {
|
|
|
870
877
|
throw new Error(`Invalid method: ${s}`);
|
|
871
878
|
}
|
|
872
879
|
};
|
|
873
|
-
async function
|
|
880
|
+
async function To(e, r) {
|
|
874
881
|
for (const s in r)
|
|
875
882
|
await e.defineConstant(s, r[s]);
|
|
876
883
|
}
|
|
877
|
-
async function
|
|
884
|
+
async function Co(e, r, s) {
|
|
878
885
|
await e.writeFile("/tmp/code.php", r);
|
|
879
886
|
const n = ns({
|
|
880
887
|
consts: s
|
|
881
888
|
});
|
|
882
889
|
return await e.run({
|
|
883
|
-
code: `${
|
|
890
|
+
code: `${Ao}
|
|
884
891
|
$wp_config_path = '/tmp/code.php';
|
|
885
892
|
$wp_config = file_get_contents($wp_config_path);
|
|
886
893
|
$new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${n.consts});
|
|
@@ -900,7 +907,7 @@ const Hn = async (e, { options: r }) => {
|
|
|
900
907
|
echo "Success";
|
|
901
908
|
`
|
|
902
909
|
});
|
|
903
|
-
},
|
|
910
|
+
}, Oo = async (e, { meta: r, userId: s }) => {
|
|
904
911
|
const n = await e.documentRoot;
|
|
905
912
|
await e.run({
|
|
906
913
|
code: `<?php
|
|
@@ -911,7 +918,7 @@ const Hn = async (e, { options: r }) => {
|
|
|
911
918
|
}
|
|
912
919
|
`
|
|
913
920
|
});
|
|
914
|
-
},
|
|
921
|
+
}, ni = "/tmp/wp-cli.phar", xo = {
|
|
915
922
|
resource: "url",
|
|
916
923
|
/**
|
|
917
924
|
* Use compression for downloading the wp-cli.phar file.
|
|
@@ -924,7 +931,7 @@ const Hn = async (e, { options: r }) => {
|
|
|
924
931
|
* like the JavaScript parser or Composer are removed.
|
|
925
932
|
*/
|
|
926
933
|
url: "https://playground.wordpress.net/wp-cli.phar"
|
|
927
|
-
}, $n = async (e, r =
|
|
934
|
+
}, $n = async (e, r = ni) => {
|
|
928
935
|
if (!await e.fileExists(r))
|
|
929
936
|
throw new Error(`wp-cli.phar not found at ${r}.
|
|
930
937
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
@@ -933,10 +940,10 @@ const Hn = async (e, { options: r }) => {
|
|
|
933
940
|
}
|
|
934
941
|
Read more about it in the documentation.
|
|
935
942
|
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`);
|
|
936
|
-
}, Rn = async (e, { command: r, wpCliPath: s =
|
|
943
|
+
}, Rn = async (e, { command: r, wpCliPath: s = ni }) => {
|
|
937
944
|
await $n(e, s);
|
|
938
945
|
let n;
|
|
939
|
-
if (typeof r == "string" ? (r = r.trim(), n =
|
|
946
|
+
if (typeof r == "string" ? (r = r.trim(), n = Lo(r)) : n = r, n.shift() !== "wp")
|
|
940
947
|
throw new Error('The first argument must be "wp".');
|
|
941
948
|
const i = await e.documentRoot;
|
|
942
949
|
await e.writeFile("/tmp/stdout", ""), await e.writeFile("/tmp/stderr", ""), await e.writeFile(
|
|
@@ -972,7 +979,7 @@ const Hn = async (e, { options: r }) => {
|
|
|
972
979
|
throw new Error(t.errors);
|
|
973
980
|
return t;
|
|
974
981
|
};
|
|
975
|
-
function
|
|
982
|
+
function Lo(e) {
|
|
976
983
|
let n = 0, o = "";
|
|
977
984
|
const i = [];
|
|
978
985
|
let t = "";
|
|
@@ -982,8 +989,8 @@ function xo(e) {
|
|
|
982
989
|
}
|
|
983
990
|
return t && i.push(t), i;
|
|
984
991
|
}
|
|
985
|
-
const
|
|
986
|
-
await $n(e, r), await
|
|
992
|
+
const Io = async (e, { wpCliPath: r }) => {
|
|
993
|
+
await $n(e, r), await ii(e, {
|
|
987
994
|
consts: {
|
|
988
995
|
WP_ALLOW_MULTISITE: 1
|
|
989
996
|
}
|
|
@@ -1002,16 +1009,16 @@ const Lo = async (e, { wpCliPath: r }) => {
|
|
|
1002
1009
|
}), await Rn(e, {
|
|
1003
1010
|
command: "wp core multisite-convert"
|
|
1004
1011
|
});
|
|
1005
|
-
},
|
|
1012
|
+
}, Ho = async (e, { fromPath: r, toPath: s }) => {
|
|
1006
1013
|
await e.writeFile(
|
|
1007
1014
|
s,
|
|
1008
1015
|
await e.readFileAsBuffer(r)
|
|
1009
1016
|
);
|
|
1010
|
-
},
|
|
1017
|
+
}, $o = async (e, { fromPath: r, toPath: s }) => {
|
|
1011
1018
|
await e.mv(r, s);
|
|
1012
|
-
}, $o = async (e, { path: r }) => {
|
|
1013
|
-
await e.mkdir(r);
|
|
1014
1019
|
}, Ro = async (e, { path: r }) => {
|
|
1020
|
+
await e.mkdir(r);
|
|
1021
|
+
}, Do = async (e, { path: r }) => {
|
|
1015
1022
|
await e.rmdir(r);
|
|
1016
1023
|
}, Dn = async (e, { path: r, data: s }) => {
|
|
1017
1024
|
s instanceof File && (s = new Uint8Array(await s.arrayBuffer())), r.startsWith("/wordpress/wp-content/mu-plugins") && !await e.fileExists("/wordpress/wp-content/mu-plugins") && await e.mkdir("/wordpress/wp-content/mu-plugins"), await e.writeFile(r, s);
|
|
@@ -1094,7 +1101,7 @@ const Lo = async (e, { wpCliPath: r }) => {
|
|
|
1094
1101
|
75: "Cross-device link.",
|
|
1095
1102
|
76: "Extension: Capabilities insufficient."
|
|
1096
1103
|
};
|
|
1097
|
-
function
|
|
1104
|
+
function Bo(e) {
|
|
1098
1105
|
const r = typeof e == "object" ? e == null ? void 0 : e.errno : null;
|
|
1099
1106
|
if (r in Xt)
|
|
1100
1107
|
return Xt[r];
|
|
@@ -1118,10 +1125,10 @@ function Ve(e = "") {
|
|
|
1118
1125
|
};
|
|
1119
1126
|
};
|
|
1120
1127
|
}
|
|
1121
|
-
var
|
|
1122
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
1128
|
+
var Fo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Ye = (e, r, s, n) => {
|
|
1129
|
+
for (var o = n > 1 ? void 0 : n ? jo(r, s) : r, i = e.length - 1, t; i >= 0; i--)
|
|
1123
1130
|
(t = e[i]) && (o = (n ? t(r, s, o) : t(o)) || o);
|
|
1124
|
-
return n && o &&
|
|
1131
|
+
return n && o && Fo(r, s, o), o;
|
|
1125
1132
|
};
|
|
1126
1133
|
const Xe = class $e {
|
|
1127
1134
|
static readFileAsText(r, s) {
|
|
@@ -1149,7 +1156,7 @@ const Xe = class $e {
|
|
|
1149
1156
|
const o = r.lookupPath(s).node.mount, i = $e.fileExists(r, n) ? r.lookupPath(n).node.mount : r.lookupPath(gt(n)).node.mount;
|
|
1150
1157
|
o.mountpoint !== i.mountpoint ? ($e.copyRecursive(r, s, n), $e.isDir(r, s) ? $e.rmdir(r, s, { recursive: !0 }) : r.unlink(s)) : r.rename(s, n);
|
|
1151
1158
|
} catch (o) {
|
|
1152
|
-
const i =
|
|
1159
|
+
const i = Bo(o);
|
|
1153
1160
|
throw i ? new Error(
|
|
1154
1161
|
`Could not move ${s} to ${n}: ${i}`,
|
|
1155
1162
|
{
|
|
@@ -1282,7 +1289,7 @@ Ye([
|
|
|
1282
1289
|
Ye([
|
|
1283
1290
|
Ve('Could not copy files from "{path}"')
|
|
1284
1291
|
], Xe, "copyRecursive", 1);
|
|
1285
|
-
const
|
|
1292
|
+
const No = {
|
|
1286
1293
|
500: "Internal Server Error",
|
|
1287
1294
|
502: "Bad Gateway",
|
|
1288
1295
|
404: "Not Found",
|
|
@@ -1306,7 +1313,7 @@ class Qt {
|
|
|
1306
1313
|
r,
|
|
1307
1314
|
{},
|
|
1308
1315
|
new TextEncoder().encode(
|
|
1309
|
-
s ||
|
|
1316
|
+
s || No[r] || ""
|
|
1310
1317
|
)
|
|
1311
1318
|
);
|
|
1312
1319
|
}
|
|
@@ -1345,8 +1352,8 @@ class Qt {
|
|
|
1345
1352
|
var e;
|
|
1346
1353
|
return typeof process < "u" && ((e = process.release) == null ? void 0 : e.name) === "node" ? "NODE" : typeof window < "u" ? "WEB" : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? "WORKER" : "NODE";
|
|
1347
1354
|
})();
|
|
1348
|
-
const
|
|
1349
|
-
function
|
|
1355
|
+
const ki = "/internal/shared/php.ini";
|
|
1356
|
+
function ai(e) {
|
|
1350
1357
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1351
1358
|
}
|
|
1352
1359
|
const { hasOwnProperty: gs } = Object.prototype, qs = (e, r = {}) => {
|
|
@@ -1389,7 +1396,7 @@ function Bn(e, r) {
|
|
|
1389
1396
|
while (o !== -1);
|
|
1390
1397
|
return i.push(e.slice(n)), i;
|
|
1391
1398
|
}
|
|
1392
|
-
const
|
|
1399
|
+
const Si = (e, r = {}) => {
|
|
1393
1400
|
r.bracketedArray = r.bracketedArray !== !1;
|
|
1394
1401
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1395
1402
|
let n = s, o = null;
|
|
@@ -1454,19 +1461,19 @@ const ki = (e, r = {}) => {
|
|
|
1454
1461
|
}
|
|
1455
1462
|
return e;
|
|
1456
1463
|
};
|
|
1457
|
-
var
|
|
1458
|
-
parse:
|
|
1459
|
-
decode:
|
|
1464
|
+
var Ai = {
|
|
1465
|
+
parse: Si,
|
|
1466
|
+
decode: Si,
|
|
1460
1467
|
stringify: qs,
|
|
1461
1468
|
encode: qs,
|
|
1462
1469
|
safe: yr,
|
|
1463
1470
|
unsafe: Ut
|
|
1464
1471
|
};
|
|
1465
|
-
async function
|
|
1466
|
-
const s =
|
|
1472
|
+
async function sc(e, r) {
|
|
1473
|
+
const s = Ai.parse(await e.readFileAsText(ki));
|
|
1467
1474
|
for (const [n, o] of Object.entries(r))
|
|
1468
1475
|
o == null ? delete s[n] : s[n] = o;
|
|
1469
|
-
await e.writeFile(
|
|
1476
|
+
await e.writeFile(ki, Ai.stringify(s));
|
|
1470
1477
|
}
|
|
1471
1478
|
ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symbol.asyncIterator] = async function* () {
|
|
1472
1479
|
const e = this.getReader();
|
|
@@ -1482,7 +1489,7 @@ ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symb
|
|
|
1482
1489
|
}
|
|
1483
1490
|
}, ReadableStream.prototype.iterate = // @ts-ignore
|
|
1484
1491
|
ReadableStream.prototype[Symbol.asyncIterator]);
|
|
1485
|
-
const
|
|
1492
|
+
const oi = [
|
|
1486
1493
|
"8.3",
|
|
1487
1494
|
"8.2",
|
|
1488
1495
|
"8.1",
|
|
@@ -1492,7 +1499,7 @@ const ai = [
|
|
|
1492
1499
|
"7.2",
|
|
1493
1500
|
"7.1",
|
|
1494
1501
|
"7.0"
|
|
1495
|
-
],
|
|
1502
|
+
], Wo = oi[0], ic = oi;
|
|
1496
1503
|
async function as(e, r, s, { rmRoot: n = !1 } = {}) {
|
|
1497
1504
|
n && await e.isDir(r) && await e.rmdir(r, { recursive: !0 });
|
|
1498
1505
|
for (const [o, i] of Object.entries(s)) {
|
|
@@ -1500,16 +1507,16 @@ async function as(e, r, s, { rmRoot: n = !1 } = {}) {
|
|
|
1500
1507
|
await e.fileExists(gt(t)) || await e.mkdir(gt(t)), i instanceof Uint8Array || typeof i == "string" ? await e.writeFile(t, i) : await as(e, t, i);
|
|
1501
1508
|
}
|
|
1502
1509
|
}
|
|
1503
|
-
const
|
|
1510
|
+
const Uo = async (e, { writeToPath: r, filesTree: s }) => {
|
|
1504
1511
|
await as(e, r, s.files);
|
|
1505
1512
|
}, jn = async (e, { siteUrl: r }) => {
|
|
1506
|
-
await
|
|
1513
|
+
await ii(e, {
|
|
1507
1514
|
consts: {
|
|
1508
1515
|
WP_HOME: r,
|
|
1509
1516
|
WP_SITEURL: r
|
|
1510
1517
|
}
|
|
1511
1518
|
});
|
|
1512
|
-
},
|
|
1519
|
+
}, qo = async (e, { file: r }, s) => {
|
|
1513
1520
|
var o;
|
|
1514
1521
|
(o = s == null ? void 0 : s.tracker) == null || o.setCaption("Importing content"), await Dn(e, {
|
|
1515
1522
|
path: "/tmp/import.wxr",
|
|
@@ -1635,7 +1642,7 @@ const Wo = async (e, { writeToPath: r, filesTree: s }) => {
|
|
|
1635
1642
|
unzip(${o.zipPath}, ${o.extractToPath}, ${o.overwriteFiles});
|
|
1636
1643
|
`
|
|
1637
1644
|
}), await e.fileExists(ws) && await e.unlink(ws);
|
|
1638
|
-
},
|
|
1645
|
+
}, pi = async (e, { zipFile: r, zipPath: s, extractToPath: n }) => {
|
|
1639
1646
|
if (s)
|
|
1640
1647
|
xe.warn(
|
|
1641
1648
|
'The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.'
|
|
@@ -1643,10 +1650,10 @@ const Wo = async (e, { writeToPath: r, filesTree: s }) => {
|
|
|
1643
1650
|
else if (!r)
|
|
1644
1651
|
throw new Error("Either zipPath or zipFile must be provided");
|
|
1645
1652
|
await Wn(e, r || s, n);
|
|
1646
|
-
},
|
|
1653
|
+
}, Mo = async (e, { wordPressFilesZip: r, pathInZip: s = "" }) => {
|
|
1647
1654
|
const n = await e.documentRoot;
|
|
1648
1655
|
let o = _e("/tmp", "import");
|
|
1649
|
-
await e.mkdir(o), await
|
|
1656
|
+
await e.mkdir(o), await pi(e, {
|
|
1650
1657
|
zipFile: r,
|
|
1651
1658
|
extractToPath: o
|
|
1652
1659
|
}), o = _e(o, s);
|
|
@@ -1656,7 +1663,7 @@ const Wo = async (e, { writeToPath: r, filesTree: s }) => {
|
|
|
1656
1663
|
i,
|
|
1657
1664
|
d
|
|
1658
1665
|
);
|
|
1659
|
-
await
|
|
1666
|
+
await Ti(e, g);
|
|
1660
1667
|
const b = _e(t, d);
|
|
1661
1668
|
await e.fileExists(b) && (await e.mkdir(gt(g)), await e.mv(b, g));
|
|
1662
1669
|
}
|
|
@@ -1671,7 +1678,7 @@ const Wo = async (e, { writeToPath: r, filesTree: s }) => {
|
|
|
1671
1678
|
);
|
|
1672
1679
|
const y = await e.listFiles(o);
|
|
1673
1680
|
for (const d of y)
|
|
1674
|
-
await
|
|
1681
|
+
await Ti(e, _e(n, d)), await e.mv(
|
|
1675
1682
|
_e(o, d),
|
|
1676
1683
|
_e(n, d)
|
|
1677
1684
|
);
|
|
@@ -1688,10 +1695,10 @@ const Wo = async (e, { writeToPath: r, filesTree: s }) => {
|
|
|
1688
1695
|
`
|
|
1689
1696
|
});
|
|
1690
1697
|
};
|
|
1691
|
-
async function
|
|
1698
|
+
async function Ti(e, r) {
|
|
1692
1699
|
await e.fileExists(r) && (await e.isDir(r) ? await e.rmdir(r) : await e.unlink(r));
|
|
1693
1700
|
}
|
|
1694
|
-
async function
|
|
1701
|
+
async function Ko(e) {
|
|
1695
1702
|
const r = await e.request({
|
|
1696
1703
|
url: "/wp-admin/export.php?download=true&content=all"
|
|
1697
1704
|
});
|
|
@@ -1708,7 +1715,7 @@ async function Un(e, {
|
|
|
1708
1715
|
recursive: !0
|
|
1709
1716
|
}), await e.mkdir(y);
|
|
1710
1717
|
try {
|
|
1711
|
-
await
|
|
1718
|
+
await pi(e, {
|
|
1712
1719
|
zipFile: s,
|
|
1713
1720
|
extractToPath: u
|
|
1714
1721
|
});
|
|
@@ -1754,7 +1761,7 @@ function os(e) {
|
|
|
1754
1761
|
const r = e.split(".").shift().replace(/-/g, " ");
|
|
1755
1762
|
return r.charAt(0).toUpperCase() + r.slice(1).toLowerCase();
|
|
1756
1763
|
}
|
|
1757
|
-
const
|
|
1764
|
+
const zo = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, options: o = {} }, i) => {
|
|
1758
1765
|
s && (r = s, xe.warn(
|
|
1759
1766
|
'The "pluginZipFile" option is deprecated. Use "pluginData" instead.'
|
|
1760
1767
|
));
|
|
@@ -1790,7 +1797,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
|
|
|
1790
1797
|
},
|
|
1791
1798
|
i
|
|
1792
1799
|
);
|
|
1793
|
-
},
|
|
1800
|
+
}, Go = async (e, { themeData: r, themeZipFile: s, ifAlreadyInstalled: n, options: o = {} }, i) => {
|
|
1794
1801
|
s && (r = s, xe.warn(
|
|
1795
1802
|
'The "themeZipFile" option is deprecated. Use "themeData" instead.'
|
|
1796
1803
|
));
|
|
@@ -1829,9 +1836,9 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
|
|
|
1829
1836
|
},
|
|
1830
1837
|
i
|
|
1831
1838
|
);
|
|
1832
|
-
},
|
|
1839
|
+
}, Zo = async (e, { username: r = "admin" } = {}, s) => {
|
|
1833
1840
|
s == null || s.tracker.setCaption((s == null ? void 0 : s.initialCaption) || "Logging in"), e.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER", r);
|
|
1834
|
-
},
|
|
1841
|
+
}, Vo = async (e, r, s) => {
|
|
1835
1842
|
var o;
|
|
1836
1843
|
(o = s == null ? void 0 : s.tracker) == null || o.setCaption("Resetting WordPress data");
|
|
1837
1844
|
const n = await e.documentRoot;
|
|
@@ -1855,7 +1862,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
|
|
|
1855
1862
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
1856
1863
|
`
|
|
1857
1864
|
});
|
|
1858
|
-
},
|
|
1865
|
+
}, Yo = async (e, { options: r }) => {
|
|
1859
1866
|
await e.request({
|
|
1860
1867
|
url: "/wp-admin/install.php?step=2",
|
|
1861
1868
|
method: "POST",
|
|
@@ -1872,7 +1879,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
|
|
|
1872
1879
|
admin_email: "admin@localhost.com"
|
|
1873
1880
|
}
|
|
1874
1881
|
});
|
|
1875
|
-
},
|
|
1882
|
+
}, Xo = async (e, { selfContained: r = !1 } = {}) => {
|
|
1876
1883
|
const s = "/tmp/wordpress-playground.zip", n = await e.documentRoot, o = _e(n, "wp-content");
|
|
1877
1884
|
let i = An;
|
|
1878
1885
|
r && (i = i.filter((y) => !y.startsWith("themes/twenty")).filter(
|
|
@@ -1889,7 +1896,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
|
|
|
1889
1896
|
[_e(n, "wp-config.php")]: "wp-config.php"
|
|
1890
1897
|
} : {}
|
|
1891
1898
|
});
|
|
1892
|
-
await
|
|
1899
|
+
await Jo(
|
|
1893
1900
|
e,
|
|
1894
1901
|
`zipDir(${t.wpContentPath}, ${t.zipPath}, array(
|
|
1895
1902
|
'exclude_paths' => ${t.exceptPaths},
|
|
@@ -1899,7 +1906,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
|
|
|
1899
1906
|
);
|
|
1900
1907
|
const p = await e.readFileAsBuffer(s);
|
|
1901
1908
|
return e.unlink(s), p;
|
|
1902
|
-
},
|
|
1909
|
+
}, Qo = `<?php
|
|
1903
1910
|
|
|
1904
1911
|
function zipDir($root, $output, $options = array())
|
|
1905
1912
|
{
|
|
@@ -1959,21 +1966,31 @@ function join_paths()
|
|
|
1959
1966
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
1960
1967
|
}
|
|
1961
1968
|
`;
|
|
1962
|
-
async function
|
|
1969
|
+
async function Jo(e, r) {
|
|
1963
1970
|
return await e.run({
|
|
1964
|
-
code:
|
|
1971
|
+
code: Qo + r
|
|
1965
1972
|
});
|
|
1966
1973
|
}
|
|
1967
|
-
const
|
|
1974
|
+
const ep = "nightly", rp = "6.7.1-RC1", qn = {
|
|
1975
|
+
nightly: ep,
|
|
1976
|
+
beta: rp,
|
|
1977
|
+
"6.7": "6.7.1",
|
|
1978
|
+
"6.6": "6.6.2",
|
|
1979
|
+
"6.5": "6.5.5",
|
|
1980
|
+
"6.4": "6.4.5",
|
|
1981
|
+
"6.3": "6.3.5"
|
|
1982
|
+
}, tp = Object.keys(
|
|
1983
|
+
qn
|
|
1984
|
+
), sp = tp.filter((e) => e.match(/^\d/))[0], ip = (e, r, s = qn.beta, n = sp) => (e.match(/^(\d.\d(.\d)?)-(alpha|beta|nightly|rc).*$/i) ? e = s.replace(/^(\d.\d)(.\d+)/i, "$1").replace(/(rc|beta).*$/i, "RC") : e.match(/^(\d+\.\d+)(?:\.\d+)?$/) || (e = n), `https://downloads.wordpress.org/translation/core/${e}/${r}.zip`), np = async (e, { language: r }, s) => {
|
|
1968
1985
|
s == null || s.tracker.setCaption((s == null ? void 0 : s.initialCaption) || "Translating"), await e.defineConstant("WPLANG", r);
|
|
1969
|
-
const n = await e.documentRoot,
|
|
1970
|
-
|
|
1971
|
-
url: `https://downloads.wordpress.org/translation/core/${(await e.run({
|
|
1972
|
-
code: `<?php
|
|
1986
|
+
const n = await e.documentRoot, o = (await e.run({
|
|
1987
|
+
code: `<?php
|
|
1973
1988
|
require '${n}/wp-includes/version.php';
|
|
1974
1989
|
echo $wp_version;
|
|
1975
1990
|
`
|
|
1976
|
-
|
|
1991
|
+
})).text, i = [
|
|
1992
|
+
{
|
|
1993
|
+
url: ip(o, r),
|
|
1977
1994
|
type: "core"
|
|
1978
1995
|
}
|
|
1979
1996
|
], p = (await e.run({
|
|
@@ -2048,42 +2065,42 @@ const Jo = async (e, { language: r }, s) => {
|
|
|
2048
2065
|
);
|
|
2049
2066
|
xe.warn(`Error downloading translations for ${g}: ${b}`);
|
|
2050
2067
|
}
|
|
2051
|
-
},
|
|
2068
|
+
}, ap = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2052
2069
|
__proto__: null,
|
|
2053
2070
|
activatePlugin: xn,
|
|
2054
2071
|
activateTheme: Ln,
|
|
2055
|
-
cp:
|
|
2072
|
+
cp: Ho,
|
|
2056
2073
|
defineSiteUrl: jn,
|
|
2057
|
-
defineWpConfigConsts:
|
|
2058
|
-
enableMultisite:
|
|
2059
|
-
exportWXR:
|
|
2074
|
+
defineWpConfigConsts: ii,
|
|
2075
|
+
enableMultisite: Io,
|
|
2076
|
+
exportWXR: Ko,
|
|
2060
2077
|
importThemeStarterContent: Nn,
|
|
2061
|
-
importWordPressFiles:
|
|
2062
|
-
importWxr:
|
|
2063
|
-
installPlugin:
|
|
2064
|
-
installTheme:
|
|
2065
|
-
login:
|
|
2066
|
-
mkdir:
|
|
2067
|
-
mv:
|
|
2068
|
-
request:
|
|
2069
|
-
resetData:
|
|
2078
|
+
importWordPressFiles: Mo,
|
|
2079
|
+
importWxr: qo,
|
|
2080
|
+
installPlugin: zo,
|
|
2081
|
+
installTheme: Go,
|
|
2082
|
+
login: Zo,
|
|
2083
|
+
mkdir: Ro,
|
|
2084
|
+
mv: $o,
|
|
2085
|
+
request: So,
|
|
2086
|
+
resetData: Vo,
|
|
2070
2087
|
rm: In,
|
|
2071
|
-
rmdir:
|
|
2072
|
-
runPHP:
|
|
2073
|
-
runPHPWithOptions:
|
|
2074
|
-
runSql:
|
|
2075
|
-
runWpInstallationWizard:
|
|
2076
|
-
setSiteLanguage:
|
|
2088
|
+
rmdir: Do,
|
|
2089
|
+
runPHP: Po,
|
|
2090
|
+
runPHPWithOptions: Eo,
|
|
2091
|
+
runSql: ko,
|
|
2092
|
+
runWpInstallationWizard: Yo,
|
|
2093
|
+
setSiteLanguage: np,
|
|
2077
2094
|
setSiteOptions: Hn,
|
|
2078
|
-
unzip:
|
|
2079
|
-
updateUserMeta:
|
|
2095
|
+
unzip: pi,
|
|
2096
|
+
updateUserMeta: Oo,
|
|
2080
2097
|
wpCLI: Rn,
|
|
2081
2098
|
writeFile: Dn,
|
|
2082
|
-
writeFiles:
|
|
2083
|
-
zipWpContent:
|
|
2084
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2085
|
-
function
|
|
2086
|
-
const s = e.headers.get("content-length") || "", n = parseInt(s, 10) ||
|
|
2099
|
+
writeFiles: Uo,
|
|
2100
|
+
zipWpContent: Xo
|
|
2101
|
+
}, Symbol.toStringTag, { value: "Module" })), op = 5 * 1024 * 1024;
|
|
2102
|
+
function pp(e, r) {
|
|
2103
|
+
const s = e.headers.get("content-length") || "", n = parseInt(s, 10) || op;
|
|
2087
2104
|
function o(i, t) {
|
|
2088
2105
|
r(
|
|
2089
2106
|
new CustomEvent("progress", {
|
|
@@ -2291,7 +2308,7 @@ class ps extends EventTarget {
|
|
|
2291
2308
|
this.dispatchEvent(new CustomEvent("done"));
|
|
2292
2309
|
}
|
|
2293
2310
|
}
|
|
2294
|
-
function
|
|
2311
|
+
function fp(e) {
|
|
2295
2312
|
let r = [e];
|
|
2296
2313
|
return {
|
|
2297
2314
|
next() {
|
|
@@ -2305,14 +2322,14 @@ function sp(e) {
|
|
|
2305
2322
|
}
|
|
2306
2323
|
};
|
|
2307
2324
|
}
|
|
2308
|
-
function
|
|
2309
|
-
return e[Symbol.asyncIterator] ? e[Symbol.asyncIterator]() : e[Symbol.iterator] ? e[Symbol.iterator]() : e.next ? e :
|
|
2325
|
+
function Mn(e) {
|
|
2326
|
+
return e[Symbol.asyncIterator] ? e[Symbol.asyncIterator]() : e[Symbol.iterator] ? e[Symbol.iterator]() : e.next ? e : fp(e);
|
|
2310
2327
|
}
|
|
2311
|
-
class
|
|
2328
|
+
class Kn {
|
|
2312
2329
|
constructor(r) {
|
|
2313
2330
|
if (typeof Buffer > "u")
|
|
2314
2331
|
throw new Error("Missing Buffer dependency");
|
|
2315
|
-
this.stream =
|
|
2332
|
+
this.stream = Mn(r), this.buffer = null, this.cursor = 0, this.undoCursor = 0, this.started = !1, this._ended = !1, this._discardedBytes = 0;
|
|
2316
2333
|
}
|
|
2317
2334
|
eof() {
|
|
2318
2335
|
return this._ended && this.cursor === this.buffer.length;
|
|
@@ -2353,7 +2370,7 @@ class Mn {
|
|
|
2353
2370
|
if (this._ended)
|
|
2354
2371
|
return;
|
|
2355
2372
|
const s = [this.buffer];
|
|
2356
|
-
for (; this.cursor + r >
|
|
2373
|
+
for (; this.cursor + r > lp(s); ) {
|
|
2357
2374
|
const n = await this._next();
|
|
2358
2375
|
if (this._ended)
|
|
2359
2376
|
break;
|
|
@@ -2368,10 +2385,10 @@ class Mn {
|
|
|
2368
2385
|
this.buffer = await this._next();
|
|
2369
2386
|
}
|
|
2370
2387
|
}
|
|
2371
|
-
function
|
|
2388
|
+
function lp(e) {
|
|
2372
2389
|
return e.reduce((r, s) => r + s.length, 0);
|
|
2373
2390
|
}
|
|
2374
|
-
function
|
|
2391
|
+
function up(e, r) {
|
|
2375
2392
|
const s = r.toString(16);
|
|
2376
2393
|
return "0".repeat(e - s.length) + s;
|
|
2377
2394
|
}
|
|
@@ -2384,11 +2401,11 @@ class Ce {
|
|
|
2384
2401
|
}
|
|
2385
2402
|
static encode(r) {
|
|
2386
2403
|
typeof r == "string" && (r = Buffer.from(r));
|
|
2387
|
-
const s = r.length + 4, n =
|
|
2404
|
+
const s = r.length + 4, n = up(4, s);
|
|
2388
2405
|
return Buffer.concat([Buffer.from(n, "utf8"), r]);
|
|
2389
2406
|
}
|
|
2390
2407
|
static streamReader(r) {
|
|
2391
|
-
const s = new
|
|
2408
|
+
const s = new Kn(r);
|
|
2392
2409
|
return async function() {
|
|
2393
2410
|
try {
|
|
2394
2411
|
let o = await s.read(4);
|
|
@@ -2445,19 +2462,19 @@ class fs extends it {
|
|
|
2445
2462
|
}
|
|
2446
2463
|
}
|
|
2447
2464
|
fs.code = "UnsafeFilepathError";
|
|
2448
|
-
function
|
|
2465
|
+
function zn(e, r) {
|
|
2449
2466
|
return -(e < r) || +(e > r);
|
|
2450
2467
|
}
|
|
2451
|
-
function
|
|
2452
|
-
return
|
|
2468
|
+
function cp(e, r) {
|
|
2469
|
+
return zn(e.path, r.path);
|
|
2453
2470
|
}
|
|
2454
|
-
function
|
|
2455
|
-
return
|
|
2471
|
+
function dp(e, r) {
|
|
2472
|
+
return zn(Ci(e), Ci(r));
|
|
2456
2473
|
}
|
|
2457
|
-
function
|
|
2474
|
+
function Ci(e) {
|
|
2458
2475
|
return e.mode === "040000" ? e.path + "/" : e.path;
|
|
2459
2476
|
}
|
|
2460
|
-
function
|
|
2477
|
+
function Gn(e) {
|
|
2461
2478
|
switch (e) {
|
|
2462
2479
|
case "040000":
|
|
2463
2480
|
return "tree";
|
|
@@ -2472,7 +2489,7 @@ function zn(e) {
|
|
|
2472
2489
|
}
|
|
2473
2490
|
throw new be(`Unexpected GitTree entry mode: ${e}`);
|
|
2474
2491
|
}
|
|
2475
|
-
function
|
|
2492
|
+
function hp(e) {
|
|
2476
2493
|
const r = [];
|
|
2477
2494
|
let s = 0;
|
|
2478
2495
|
for (; s < e.length; ) {
|
|
@@ -2488,7 +2505,7 @@ function pp(e) {
|
|
|
2488
2505
|
);
|
|
2489
2506
|
let i = e.slice(s, n).toString("utf8");
|
|
2490
2507
|
i === "40000" && (i = "040000");
|
|
2491
|
-
const t =
|
|
2508
|
+
const t = Gn(i), p = e.slice(n + 1, o).toString("utf8");
|
|
2492
2509
|
if (p.includes("\\") || p.includes("/"))
|
|
2493
2510
|
throw new fs(p);
|
|
2494
2511
|
const y = e.slice(o + 1, o + 21).toString("hex");
|
|
@@ -2496,7 +2513,7 @@ function pp(e) {
|
|
|
2496
2513
|
}
|
|
2497
2514
|
return r;
|
|
2498
2515
|
}
|
|
2499
|
-
function
|
|
2516
|
+
function yp(e) {
|
|
2500
2517
|
if (typeof e == "number" && (e = e.toString(8)), e.match(/^0?4.*/))
|
|
2501
2518
|
return "040000";
|
|
2502
2519
|
if (e.match(/^1006.*/))
|
|
@@ -2509,21 +2526,21 @@ function fp(e) {
|
|
|
2509
2526
|
return "160000";
|
|
2510
2527
|
throw new be(`Could not understand file mode: ${e}`);
|
|
2511
2528
|
}
|
|
2512
|
-
function
|
|
2513
|
-
return !e.oid && e.sha && (e.oid = e.sha), e.mode =
|
|
2529
|
+
function mp(e) {
|
|
2530
|
+
return !e.oid && e.sha && (e.oid = e.sha), e.mode = yp(e.mode), e.type || (e.type = Gn(e.mode)), e;
|
|
2514
2531
|
}
|
|
2515
|
-
class
|
|
2532
|
+
class fi {
|
|
2516
2533
|
constructor(r) {
|
|
2517
2534
|
if (Buffer.isBuffer(r))
|
|
2518
|
-
this._entries =
|
|
2535
|
+
this._entries = hp(r);
|
|
2519
2536
|
else if (Array.isArray(r))
|
|
2520
|
-
this._entries = r.map(
|
|
2537
|
+
this._entries = r.map(mp);
|
|
2521
2538
|
else
|
|
2522
2539
|
throw new be("invalid type passed to GitTree constructor");
|
|
2523
|
-
this._entries.sort(
|
|
2540
|
+
this._entries.sort(cp);
|
|
2524
2541
|
}
|
|
2525
2542
|
static from(r) {
|
|
2526
|
-
return new
|
|
2543
|
+
return new fi(r);
|
|
2527
2544
|
}
|
|
2528
2545
|
render() {
|
|
2529
2546
|
return this._entries.map((r) => `${r.mode} ${r.type} ${r.oid} ${r.path}`).join(`
|
|
@@ -2531,7 +2548,7 @@ class pi {
|
|
|
2531
2548
|
}
|
|
2532
2549
|
toObject() {
|
|
2533
2550
|
const r = [...this._entries];
|
|
2534
|
-
return r.sort(
|
|
2551
|
+
return r.sort(dp), Buffer.concat(
|
|
2535
2552
|
r.map((s) => {
|
|
2536
2553
|
const n = Buffer.from(s.mode.replace(/^0/, "")), o = Buffer.from(" "), i = Buffer.from(s.path, "utf8"), t = Buffer.from([0]), p = Buffer.from(s.oid, "hex");
|
|
2537
2554
|
return Buffer.concat([n, o, i, t, p]);
|
|
@@ -2550,20 +2567,20 @@ class pi {
|
|
|
2550
2567
|
}
|
|
2551
2568
|
}
|
|
2552
2569
|
function Ms({ name: e, email: r, timestamp: s, timezoneOffset: n }) {
|
|
2553
|
-
return n =
|
|
2570
|
+
return n = _p(n), `${e} <${r}> ${s} ${n}`;
|
|
2554
2571
|
}
|
|
2555
|
-
function
|
|
2556
|
-
const r =
|
|
2572
|
+
function _p(e) {
|
|
2573
|
+
const r = gp(wp(e));
|
|
2557
2574
|
e = Math.abs(e);
|
|
2558
2575
|
const s = Math.floor(e / 60);
|
|
2559
2576
|
e -= s * 60;
|
|
2560
2577
|
let n = String(s), o = String(e);
|
|
2561
2578
|
return n.length < 2 && (n = "0" + n), o.length < 2 && (o = "0" + o), (r === -1 ? "-" : "+") + n + o;
|
|
2562
2579
|
}
|
|
2563
|
-
function
|
|
2580
|
+
function gp(e) {
|
|
2564
2581
|
return Math.sign(e) || (Object.is(e, -0) ? -1 : 1);
|
|
2565
2582
|
}
|
|
2566
|
-
function
|
|
2583
|
+
function wp(e) {
|
|
2567
2584
|
return e === 0 ? e : -e;
|
|
2568
2585
|
}
|
|
2569
2586
|
function mr(e) {
|
|
@@ -2578,14 +2595,14 @@ function Jt(e) {
|
|
|
2578
2595
|
name: r,
|
|
2579
2596
|
email: s,
|
|
2580
2597
|
timestamp: Number(n),
|
|
2581
|
-
timezoneOffset:
|
|
2598
|
+
timezoneOffset: bp(o)
|
|
2582
2599
|
};
|
|
2583
2600
|
}
|
|
2584
|
-
function
|
|
2601
|
+
function bp(e) {
|
|
2585
2602
|
let [, r, s, n] = e.match(/(\+|-)(\d\d)(\d\d)/);
|
|
2586
|
-
return n = (r === "+" ? 1 : -1) * (Number(s) * 60 + Number(n)),
|
|
2603
|
+
return n = (r === "+" ? 1 : -1) * (Number(s) * 60 + Number(n)), vp(n);
|
|
2587
2604
|
}
|
|
2588
|
-
function
|
|
2605
|
+
function vp(e) {
|
|
2589
2606
|
return e === 0 ? e : -e;
|
|
2590
2607
|
}
|
|
2591
2608
|
class ct {
|
|
@@ -2683,7 +2700,7 @@ function vs(e) {
|
|
|
2683
2700
|
`) + `
|
|
2684
2701
|
`;
|
|
2685
2702
|
}
|
|
2686
|
-
function
|
|
2703
|
+
function Pp(e) {
|
|
2687
2704
|
return e.split(`
|
|
2688
2705
|
`).map((r) => r.replace(/^ /, "")).join(`
|
|
2689
2706
|
`);
|
|
@@ -2792,7 +2809,7 @@ gpgsig`)), n = r.slice(
|
|
|
2792
2809
|
this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),
|
|
2793
2810
|
this._commit.indexOf("-----END PGP SIGNATURE-----") + 27
|
|
2794
2811
|
);
|
|
2795
|
-
return
|
|
2812
|
+
return Pp(r);
|
|
2796
2813
|
}
|
|
2797
2814
|
static async sign(r, s, n) {
|
|
2798
2815
|
const o = r.withoutSignature(), i = Ne.justMessage(r._commit);
|
|
@@ -2804,7 +2821,7 @@ gpgsig` + vs(t) + `
|
|
|
2804
2821
|
return Ne.from(y);
|
|
2805
2822
|
}
|
|
2806
2823
|
}
|
|
2807
|
-
var
|
|
2824
|
+
var Zn = {};
|
|
2808
2825
|
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
|
|
2809
2826
|
(function(e) {
|
|
2810
2827
|
(function(r) {
|
|
@@ -2849,9 +2866,9 @@ var Gn = {};
|
|
|
2849
2866
|
}
|
|
2850
2867
|
r.table = n, r.bstr = O, r.buf = A, r.str = B;
|
|
2851
2868
|
});
|
|
2852
|
-
})(
|
|
2853
|
-
const
|
|
2854
|
-
class
|
|
2869
|
+
})(Zn);
|
|
2870
|
+
const Ep = /* @__PURE__ */ ai(Zn);
|
|
2871
|
+
class kp {
|
|
2855
2872
|
static wrap({ type: r, object: s }) {
|
|
2856
2873
|
return Buffer.concat([
|
|
2857
2874
|
Buffer.from(`${r} ${s.byteLength.toString()}\0`),
|
|
@@ -2924,22 +2941,22 @@ class Lr {
|
|
|
2924
2941
|
return this._start += 4, s;
|
|
2925
2942
|
}
|
|
2926
2943
|
}
|
|
2927
|
-
function
|
|
2928
|
-
const s = new Lr(e), n =
|
|
2944
|
+
function Sp(e, r) {
|
|
2945
|
+
const s = new Lr(e), n = Oi(s);
|
|
2929
2946
|
if (n !== r.byteLength)
|
|
2930
2947
|
throw new be(
|
|
2931
2948
|
`applyDelta expected source buffer to be ${n} bytes but the provided buffer was ${r.length} bytes`
|
|
2932
2949
|
);
|
|
2933
|
-
const o =
|
|
2950
|
+
const o = Oi(s);
|
|
2934
2951
|
let i;
|
|
2935
|
-
const t =
|
|
2952
|
+
const t = Li(s, r);
|
|
2936
2953
|
if (t.byteLength === o)
|
|
2937
2954
|
i = t;
|
|
2938
2955
|
else {
|
|
2939
2956
|
i = Buffer.alloc(o);
|
|
2940
2957
|
const p = new Lr(i);
|
|
2941
2958
|
for (p.copy(t); !s.eof(); )
|
|
2942
|
-
p.copy(
|
|
2959
|
+
p.copy(Li(s, r));
|
|
2943
2960
|
const y = p.tell();
|
|
2944
2961
|
if (o !== y)
|
|
2945
2962
|
throw new be(
|
|
@@ -2948,24 +2965,24 @@ function wp(e, r) {
|
|
|
2948
2965
|
}
|
|
2949
2966
|
return i;
|
|
2950
2967
|
}
|
|
2951
|
-
function
|
|
2968
|
+
function Oi(e) {
|
|
2952
2969
|
let r = 0, s = 0, n = null;
|
|
2953
2970
|
do
|
|
2954
2971
|
n = e.readUInt8(), r |= (n & 127) << s, s += 7;
|
|
2955
2972
|
while (n & 128);
|
|
2956
2973
|
return r;
|
|
2957
2974
|
}
|
|
2958
|
-
function
|
|
2975
|
+
function xi(e, r, s) {
|
|
2959
2976
|
let n = 0, o = 0;
|
|
2960
2977
|
for (; s--; )
|
|
2961
2978
|
r & 1 && (n |= e.readUInt8() << o), r >>= 1, o += 8;
|
|
2962
2979
|
return n;
|
|
2963
2980
|
}
|
|
2964
|
-
function
|
|
2981
|
+
function Li(e, r) {
|
|
2965
2982
|
const s = e.readUInt8(), n = 128, o = 15, i = 112;
|
|
2966
2983
|
if (s & n) {
|
|
2967
|
-
const t =
|
|
2968
|
-
let p =
|
|
2984
|
+
const t = xi(e, s & o, 4);
|
|
2985
|
+
let p = xi(e, (s & i) >> 4, 3);
|
|
2969
2986
|
return p === 0 && (p = 65536), r.slice(t, t + p);
|
|
2970
2987
|
} else
|
|
2971
2988
|
return e.slice(s);
|
|
@@ -3022,40 +3039,40 @@ var wr = {};
|
|
|
3022
3039
|
i ? (e.Buf8 = Uint8Array, e.Buf16 = Uint16Array, e.Buf32 = Int32Array, e.assign(e, n)) : (e.Buf8 = Array, e.Buf16 = Array, e.Buf32 = Array, e.assign(e, o));
|
|
3023
3040
|
}, e.setTyped(r);
|
|
3024
3041
|
})(wr);
|
|
3025
|
-
var Tt = {}, ur = {}, nt = {},
|
|
3042
|
+
var Tt = {}, ur = {}, nt = {}, Ap = wr, Tp = 4, Ii = 0, Hi = 1, Cp = 2;
|
|
3026
3043
|
function at(e) {
|
|
3027
3044
|
for (var r = e.length; --r >= 0; )
|
|
3028
3045
|
e[r] = 0;
|
|
3029
3046
|
}
|
|
3030
|
-
var
|
|
3047
|
+
var Op = 0, Vn = 1, xp = 2, Lp = 3, Ip = 258, li = 29, Ct = 256, wt = Ct + 1 + li, rt = 30, ui = 19, Yn = 2 * wt + 1, Hr = 15, Ps = 16, Hp = 7, ci = 256, Xn = 16, Qn = 17, Jn = 18, Ks = (
|
|
3031
3048
|
/* extra bits for each length code */
|
|
3032
3049
|
[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]
|
|
3033
3050
|
), qt = (
|
|
3034
3051
|
/* extra bits for each distance code */
|
|
3035
3052
|
[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]
|
|
3036
|
-
),
|
|
3053
|
+
), $p = (
|
|
3037
3054
|
/* extra bits for each bit length code */
|
|
3038
3055
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
|
|
3039
|
-
),
|
|
3056
|
+
), ea = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Rp = 512, _r = new Array((wt + 2) * 2);
|
|
3040
3057
|
at(_r);
|
|
3041
3058
|
var dt = new Array(rt * 2);
|
|
3042
3059
|
at(dt);
|
|
3043
|
-
var bt = new Array(
|
|
3060
|
+
var bt = new Array(Rp);
|
|
3044
3061
|
at(bt);
|
|
3045
|
-
var vt = new Array(
|
|
3062
|
+
var vt = new Array(Ip - Lp + 1);
|
|
3046
3063
|
at(vt);
|
|
3047
|
-
var
|
|
3048
|
-
at(
|
|
3064
|
+
var di = new Array(li);
|
|
3065
|
+
at(di);
|
|
3049
3066
|
var es = new Array(rt);
|
|
3050
3067
|
at(es);
|
|
3051
3068
|
function Es(e, r, s, n, o) {
|
|
3052
3069
|
this.static_tree = e, this.extra_bits = r, this.extra_base = s, this.elems = n, this.max_length = o, this.has_stree = e && e.length;
|
|
3053
3070
|
}
|
|
3054
|
-
var
|
|
3071
|
+
var ra, ta, sa;
|
|
3055
3072
|
function ks(e, r) {
|
|
3056
3073
|
this.dyn_tree = e, this.max_code = 0, this.stat_desc = r;
|
|
3057
3074
|
}
|
|
3058
|
-
function
|
|
3075
|
+
function ia(e) {
|
|
3059
3076
|
return e < 256 ? bt[e] : bt[256 + (e >>> 7)];
|
|
3060
3077
|
}
|
|
3061
3078
|
function Pt(e, r) {
|
|
@@ -3072,21 +3089,21 @@ function pr(e, r, s) {
|
|
|
3072
3089
|
/*.Len*/
|
|
3073
3090
|
);
|
|
3074
3091
|
}
|
|
3075
|
-
function
|
|
3092
|
+
function na(e, r) {
|
|
3076
3093
|
var s = 0;
|
|
3077
3094
|
do
|
|
3078
3095
|
s |= e & 1, e >>>= 1, s <<= 1;
|
|
3079
3096
|
while (--r > 0);
|
|
3080
3097
|
return s >>> 1;
|
|
3081
3098
|
}
|
|
3082
|
-
function
|
|
3099
|
+
function Dp(e) {
|
|
3083
3100
|
e.bi_valid === 16 ? (Pt(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
|
|
3084
3101
|
}
|
|
3085
|
-
function
|
|
3102
|
+
function Bp(e, r) {
|
|
3086
3103
|
var s = r.dyn_tree, n = r.max_code, o = r.stat_desc.static_tree, i = r.stat_desc.has_stree, t = r.stat_desc.extra_bits, p = r.stat_desc.extra_base, y = r.stat_desc.max_length, u, d, g, b, w, H, P = 0;
|
|
3087
3104
|
for (b = 0; b <= Hr; b++)
|
|
3088
3105
|
e.bl_count[b] = 0;
|
|
3089
|
-
for (s[e.heap[e.heap_max] * 2 + 1] = 0, u = e.heap_max + 1; u <
|
|
3106
|
+
for (s[e.heap[e.heap_max] * 2 + 1] = 0, u = e.heap_max + 1; u < Yn; u++)
|
|
3090
3107
|
d = e.heap[u], b = s[s[d * 2 + 1] * 2 + 1] + 1, b > y && (b = y, P++), s[d * 2 + 1] = b, !(d > n) && (e.bl_count[b]++, w = 0, d >= p && (w = t[d - p]), H = s[d * 2], e.opt_len += H * (b + w), i && (e.static_len += H * (o[d * 2 + 1] + w)));
|
|
3091
3108
|
if (P !== 0) {
|
|
3092
3109
|
do {
|
|
@@ -3099,19 +3116,19 @@ function Lp(e, r) {
|
|
|
3099
3116
|
g = e.heap[--u], !(g > n) && (s[g * 2 + 1] !== b && (e.opt_len += (b - s[g * 2 + 1]) * s[g * 2], s[g * 2 + 1] = b), d--);
|
|
3100
3117
|
}
|
|
3101
3118
|
}
|
|
3102
|
-
function
|
|
3119
|
+
function aa(e, r, s) {
|
|
3103
3120
|
var n = new Array(Hr + 1), o = 0, i, t;
|
|
3104
3121
|
for (i = 1; i <= Hr; i++)
|
|
3105
3122
|
n[i] = o = o + s[i - 1] << 1;
|
|
3106
3123
|
for (t = 0; t <= r; t++) {
|
|
3107
3124
|
var p = e[t * 2 + 1];
|
|
3108
|
-
p !== 0 && (e[t * 2] =
|
|
3125
|
+
p !== 0 && (e[t * 2] = na(n[p]++, p));
|
|
3109
3126
|
}
|
|
3110
3127
|
}
|
|
3111
|
-
function
|
|
3128
|
+
function Fp() {
|
|
3112
3129
|
var e, r, s, n, o, i = new Array(Hr + 1);
|
|
3113
|
-
for (s = 0, n = 0; n <
|
|
3114
|
-
for (
|
|
3130
|
+
for (s = 0, n = 0; n < li - 1; n++)
|
|
3131
|
+
for (di[n] = s, e = 0; e < 1 << Ks[n]; e++)
|
|
3115
3132
|
vt[s++] = n;
|
|
3116
3133
|
for (vt[s - 1] = n, o = 0, n = 0; n < 16; n++)
|
|
3117
3134
|
for (es[n] = o, e = 0; e < 1 << qt[n]; e++)
|
|
@@ -3129,46 +3146,46 @@ function Ip() {
|
|
|
3129
3146
|
_r[e * 2 + 1] = 7, e++, i[7]++;
|
|
3130
3147
|
for (; e <= 287; )
|
|
3131
3148
|
_r[e * 2 + 1] = 8, e++, i[8]++;
|
|
3132
|
-
for (
|
|
3133
|
-
dt[e * 2 + 1] = 5, dt[e * 2] =
|
|
3134
|
-
|
|
3149
|
+
for (aa(_r, wt + 1, i), e = 0; e < rt; e++)
|
|
3150
|
+
dt[e * 2 + 1] = 5, dt[e * 2] = na(e, 5);
|
|
3151
|
+
ra = new Es(_r, Ks, Ct + 1, wt, Hr), ta = new Es(dt, qt, 0, rt, Hr), sa = new Es(new Array(0), $p, 0, ui, Hp);
|
|
3135
3152
|
}
|
|
3136
|
-
function
|
|
3153
|
+
function oa(e) {
|
|
3137
3154
|
var r;
|
|
3138
3155
|
for (r = 0; r < wt; r++)
|
|
3139
3156
|
e.dyn_ltree[r * 2] = 0;
|
|
3140
3157
|
for (r = 0; r < rt; r++)
|
|
3141
3158
|
e.dyn_dtree[r * 2] = 0;
|
|
3142
|
-
for (r = 0; r <
|
|
3159
|
+
for (r = 0; r < ui; r++)
|
|
3143
3160
|
e.bl_tree[r * 2] = 0;
|
|
3144
|
-
e.dyn_ltree[
|
|
3161
|
+
e.dyn_ltree[ci * 2] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
|
|
3145
3162
|
}
|
|
3146
|
-
function
|
|
3163
|
+
function pa(e) {
|
|
3147
3164
|
e.bi_valid > 8 ? Pt(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
3148
3165
|
}
|
|
3149
|
-
function
|
|
3150
|
-
|
|
3166
|
+
function jp(e, r, s, n) {
|
|
3167
|
+
pa(e), n && (Pt(e, s), Pt(e, ~s)), Ap.arraySet(e.pending_buf, e.window, r, s, e.pending), e.pending += s;
|
|
3151
3168
|
}
|
|
3152
|
-
function
|
|
3169
|
+
function $i(e, r, s, n) {
|
|
3153
3170
|
var o = r * 2, i = s * 2;
|
|
3154
3171
|
return e[o] < e[i] || e[o] === e[i] && n[r] <= n[s];
|
|
3155
3172
|
}
|
|
3156
3173
|
function Ss(e, r, s) {
|
|
3157
|
-
for (var n = e.heap[s], o = s << 1; o <= e.heap_len && (o < e.heap_len &&
|
|
3174
|
+
for (var n = e.heap[s], o = s << 1; o <= e.heap_len && (o < e.heap_len && $i(r, e.heap[o + 1], e.heap[o], e.depth) && o++, !$i(r, n, e.heap[o], e.depth)); )
|
|
3158
3175
|
e.heap[s] = e.heap[o], s = o, o <<= 1;
|
|
3159
3176
|
e.heap[s] = n;
|
|
3160
3177
|
}
|
|
3161
|
-
function
|
|
3178
|
+
function Ri(e, r, s) {
|
|
3162
3179
|
var n, o, i = 0, t, p;
|
|
3163
3180
|
if (e.last_lit !== 0)
|
|
3164
3181
|
do
|
|
3165
|
-
n = e.pending_buf[e.d_buf + i * 2] << 8 | e.pending_buf[e.d_buf + i * 2 + 1], o = e.pending_buf[e.l_buf + i], i++, n === 0 ? pr(e, o, r) : (t = vt[o], pr(e, t + Ct + 1, r), p = Ks[t], p !== 0 && (o -=
|
|
3182
|
+
n = e.pending_buf[e.d_buf + i * 2] << 8 | e.pending_buf[e.d_buf + i * 2 + 1], o = e.pending_buf[e.l_buf + i], i++, n === 0 ? pr(e, o, r) : (t = vt[o], pr(e, t + Ct + 1, r), p = Ks[t], p !== 0 && (o -= di[t], Be(e, o, p)), n--, t = ia(n), pr(e, t, s), p = qt[t], p !== 0 && (n -= es[t], Be(e, n, p)));
|
|
3166
3183
|
while (i < e.last_lit);
|
|
3167
|
-
pr(e,
|
|
3184
|
+
pr(e, ci, r);
|
|
3168
3185
|
}
|
|
3169
3186
|
function zs(e, r) {
|
|
3170
3187
|
var s = r.dyn_tree, n = r.stat_desc.static_tree, o = r.stat_desc.has_stree, i = r.stat_desc.elems, t, p, y = -1, u;
|
|
3171
|
-
for (e.heap_len = 0, e.heap_max =
|
|
3188
|
+
for (e.heap_len = 0, e.heap_max = Yn, t = 0; t < i; t++)
|
|
3172
3189
|
s[t * 2] !== 0 ? (e.heap[++e.heap_len] = y = t, e.depth[t] = 0) : s[t * 2 + 1] = 0;
|
|
3173
3190
|
for (; e.heap_len < 2; )
|
|
3174
3191
|
u = e.heap[++e.heap_len] = y < 2 ? ++y : 0, s[u * 2] = 1, e.depth[u] = 0, e.opt_len--, o && (e.static_len -= n[u * 2 + 1]);
|
|
@@ -3203,14 +3220,14 @@ function zs(e, r) {
|
|
|
3203
3220
|
e.heap[--e.heap_max] = e.heap[
|
|
3204
3221
|
1
|
|
3205
3222
|
/*SMALLEST*/
|
|
3206
|
-
],
|
|
3223
|
+
], Bp(e, r), aa(s, y, e.bl_count);
|
|
3207
3224
|
}
|
|
3208
|
-
function
|
|
3225
|
+
function Di(e, r, s) {
|
|
3209
3226
|
var n, o = -1, i, t = r[0 * 2 + 1], p = 0, y = 7, u = 4;
|
|
3210
3227
|
for (t === 0 && (y = 138, u = 3), r[(s + 1) * 2 + 1] = 65535, n = 0; n <= s; n++)
|
|
3211
|
-
i = t, t = r[(n + 1) * 2 + 1], !(++p < y && i === t) && (p < u ? e.bl_tree[i * 2] += p : i !== 0 ? (i !== o && e.bl_tree[i * 2]++, e.bl_tree[
|
|
3228
|
+
i = t, t = r[(n + 1) * 2 + 1], !(++p < y && i === t) && (p < u ? e.bl_tree[i * 2] += p : i !== 0 ? (i !== o && e.bl_tree[i * 2]++, e.bl_tree[Xn * 2]++) : p <= 10 ? e.bl_tree[Qn * 2]++ : e.bl_tree[Jn * 2]++, p = 0, o = i, t === 0 ? (y = 138, u = 3) : i === t ? (y = 6, u = 3) : (y = 7, u = 4));
|
|
3212
3229
|
}
|
|
3213
|
-
function
|
|
3230
|
+
function Bi(e, r, s) {
|
|
3214
3231
|
var n, o = -1, i, t = r[0 * 2 + 1], p = 0, y = 7, u = 4;
|
|
3215
3232
|
for (t === 0 && (y = 138, u = 3), n = 0; n <= s; n++)
|
|
3216
3233
|
if (i = t, t = r[(n + 1) * 2 + 1], !(++p < y && i === t)) {
|
|
@@ -3219,57 +3236,57 @@ function Di(e, r, s) {
|
|
|
3219
3236
|
pr(e, i, e.bl_tree);
|
|
3220
3237
|
while (--p !== 0);
|
|
3221
3238
|
else
|
|
3222
|
-
i !== 0 ? (i !== o && (pr(e, i, e.bl_tree), p--), pr(e,
|
|
3239
|
+
i !== 0 ? (i !== o && (pr(e, i, e.bl_tree), p--), pr(e, Xn, e.bl_tree), Be(e, p - 3, 2)) : p <= 10 ? (pr(e, Qn, e.bl_tree), Be(e, p - 3, 3)) : (pr(e, Jn, e.bl_tree), Be(e, p - 11, 7));
|
|
3223
3240
|
p = 0, o = i, t === 0 ? (y = 138, u = 3) : i === t ? (y = 6, u = 3) : (y = 7, u = 4);
|
|
3224
3241
|
}
|
|
3225
3242
|
}
|
|
3226
|
-
function
|
|
3243
|
+
function Np(e) {
|
|
3227
3244
|
var r;
|
|
3228
|
-
for (
|
|
3245
|
+
for (Di(e, e.dyn_ltree, e.l_desc.max_code), Di(e, e.dyn_dtree, e.d_desc.max_code), zs(e, e.bl_desc), r = ui - 1; r >= 3 && e.bl_tree[ea[r] * 2 + 1] === 0; r--)
|
|
3229
3246
|
;
|
|
3230
3247
|
return e.opt_len += 3 * (r + 1) + 5 + 5 + 4, r;
|
|
3231
3248
|
}
|
|
3232
|
-
function
|
|
3249
|
+
function Wp(e, r, s, n) {
|
|
3233
3250
|
var o;
|
|
3234
3251
|
for (Be(e, r - 257, 5), Be(e, s - 1, 5), Be(e, n - 4, 4), o = 0; o < n; o++)
|
|
3235
|
-
Be(e, e.bl_tree[
|
|
3236
|
-
|
|
3252
|
+
Be(e, e.bl_tree[ea[o] * 2 + 1], 3);
|
|
3253
|
+
Bi(e, e.dyn_ltree, r - 1), Bi(e, e.dyn_dtree, s - 1);
|
|
3237
3254
|
}
|
|
3238
|
-
function
|
|
3255
|
+
function Up(e) {
|
|
3239
3256
|
var r = 4093624447, s;
|
|
3240
3257
|
for (s = 0; s <= 31; s++, r >>>= 1)
|
|
3241
3258
|
if (r & 1 && e.dyn_ltree[s * 2] !== 0)
|
|
3242
|
-
return
|
|
3259
|
+
return Ii;
|
|
3243
3260
|
if (e.dyn_ltree[9 * 2] !== 0 || e.dyn_ltree[10 * 2] !== 0 || e.dyn_ltree[13 * 2] !== 0)
|
|
3244
|
-
return
|
|
3261
|
+
return Hi;
|
|
3245
3262
|
for (s = 32; s < Ct; s++)
|
|
3246
3263
|
if (e.dyn_ltree[s * 2] !== 0)
|
|
3247
|
-
return
|
|
3248
|
-
return
|
|
3264
|
+
return Hi;
|
|
3265
|
+
return Ii;
|
|
3249
3266
|
}
|
|
3250
|
-
var
|
|
3251
|
-
function
|
|
3252
|
-
|
|
3267
|
+
var Fi = !1;
|
|
3268
|
+
function qp(e) {
|
|
3269
|
+
Fi || (Fp(), Fi = !0), e.l_desc = new ks(e.dyn_ltree, ra), e.d_desc = new ks(e.dyn_dtree, ta), e.bl_desc = new ks(e.bl_tree, sa), e.bi_buf = 0, e.bi_valid = 0, oa(e);
|
|
3253
3270
|
}
|
|
3254
|
-
function
|
|
3255
|
-
Be(e, (
|
|
3271
|
+
function fa(e, r, s, n) {
|
|
3272
|
+
Be(e, (Op << 1) + (n ? 1 : 0), 3), jp(e, r, s, !0);
|
|
3256
3273
|
}
|
|
3257
|
-
function
|
|
3258
|
-
Be(e,
|
|
3274
|
+
function Mp(e) {
|
|
3275
|
+
Be(e, Vn << 1, 3), pr(e, ci, _r), Dp(e);
|
|
3259
3276
|
}
|
|
3260
|
-
function
|
|
3277
|
+
function Kp(e, r, s, n) {
|
|
3261
3278
|
var o, i, t = 0;
|
|
3262
|
-
e.level > 0 ? (e.strm.data_type ===
|
|
3279
|
+
e.level > 0 ? (e.strm.data_type === Cp && (e.strm.data_type = Up(e)), zs(e, e.l_desc), zs(e, e.d_desc), t = Np(e), o = e.opt_len + 3 + 7 >>> 3, i = e.static_len + 3 + 7 >>> 3, i <= o && (o = i)) : o = i = s + 5, s + 4 <= o && r !== -1 ? fa(e, r, s, n) : e.strategy === Tp || i === o ? (Be(e, (Vn << 1) + (n ? 1 : 0), 3), Ri(e, _r, dt)) : (Be(e, (xp << 1) + (n ? 1 : 0), 3), Wp(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, t + 1), Ri(e, e.dyn_ltree, e.dyn_dtree)), oa(e), n && pa(e);
|
|
3263
3280
|
}
|
|
3264
|
-
function
|
|
3265
|
-
return e.pending_buf[e.d_buf + e.last_lit * 2] = r >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = r & 255, e.pending_buf[e.l_buf + e.last_lit] = s & 255, e.last_lit++, r === 0 ? e.dyn_ltree[s * 2]++ : (e.matches++, r--, e.dyn_ltree[(vt[s] + Ct + 1) * 2]++, e.dyn_dtree[
|
|
3281
|
+
function zp(e, r, s) {
|
|
3282
|
+
return e.pending_buf[e.d_buf + e.last_lit * 2] = r >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = r & 255, e.pending_buf[e.l_buf + e.last_lit] = s & 255, e.last_lit++, r === 0 ? e.dyn_ltree[s * 2]++ : (e.matches++, r--, e.dyn_ltree[(vt[s] + Ct + 1) * 2]++, e.dyn_dtree[ia(r) * 2]++), e.last_lit === e.lit_bufsize - 1;
|
|
3266
3283
|
}
|
|
3267
|
-
nt._tr_init =
|
|
3268
|
-
nt._tr_stored_block =
|
|
3269
|
-
nt._tr_flush_block =
|
|
3270
|
-
nt._tr_tally =
|
|
3271
|
-
nt._tr_align =
|
|
3272
|
-
function
|
|
3284
|
+
nt._tr_init = qp;
|
|
3285
|
+
nt._tr_stored_block = fa;
|
|
3286
|
+
nt._tr_flush_block = Kp;
|
|
3287
|
+
nt._tr_tally = zp;
|
|
3288
|
+
nt._tr_align = Mp;
|
|
3289
|
+
function Gp(e, r, s, n) {
|
|
3273
3290
|
for (var o = e & 65535 | 0, i = e >>> 16 & 65535 | 0, t = 0; s !== 0; ) {
|
|
3274
3291
|
t = s > 2e3 ? 2e3 : s, s -= t;
|
|
3275
3292
|
do
|
|
@@ -3279,8 +3296,8 @@ function Wp(e, r, s, n) {
|
|
|
3279
3296
|
}
|
|
3280
3297
|
return o | i << 16 | 0;
|
|
3281
3298
|
}
|
|
3282
|
-
var
|
|
3283
|
-
function
|
|
3299
|
+
var la = Gp;
|
|
3300
|
+
function Zp() {
|
|
3284
3301
|
for (var e, r = [], s = 0; s < 256; s++) {
|
|
3285
3302
|
e = s;
|
|
3286
3303
|
for (var n = 0; n < 8; n++)
|
|
@@ -3289,15 +3306,15 @@ function Up() {
|
|
|
3289
3306
|
}
|
|
3290
3307
|
return r;
|
|
3291
3308
|
}
|
|
3292
|
-
var
|
|
3293
|
-
function
|
|
3294
|
-
var o =
|
|
3309
|
+
var Vp = Zp();
|
|
3310
|
+
function Yp(e, r, s, n) {
|
|
3311
|
+
var o = Vp, i = n + s;
|
|
3295
3312
|
e ^= -1;
|
|
3296
3313
|
for (var t = n; t < i; t++)
|
|
3297
3314
|
e = e >>> 8 ^ o[(e ^ r[t]) & 255];
|
|
3298
3315
|
return e ^ -1;
|
|
3299
3316
|
}
|
|
3300
|
-
var
|
|
3317
|
+
var ua = Yp, hi = {
|
|
3301
3318
|
2: "need dictionary",
|
|
3302
3319
|
/* Z_NEED_DICT 2 */
|
|
3303
3320
|
1: "stream end",
|
|
@@ -3316,11 +3333,11 @@ var la = Mp, di = {
|
|
|
3316
3333
|
/* Z_BUF_ERROR (-5) */
|
|
3317
3334
|
"-6": "incompatible version"
|
|
3318
3335
|
/* Z_VERSION_ERROR (-6) */
|
|
3319
|
-
}, Re = wr, ze = nt,
|
|
3336
|
+
}, Re = wr, ze = nt, ca = la, kr = ua, Xp = hi, Ur = 0, Qp = 1, Jp = 3, Or = 4, ji = 5, fr = 0, Ni = 1, Ge = -2, ef = -3, As = -5, rf = -1, tf = 1, Dt = 2, sf = 3, nf = 4, af = 0, of = 2, ls = 8, pf = 9, ff = 15, lf = 8, uf = 29, cf = 256, Gs = cf + 1 + uf, df = 30, hf = 19, yf = 2 * Gs + 1, mf = 15, oe = 3, Tr = 258, er = Tr + oe + 1, _f = 32, us = 42, Zs = 69, Mt = 73, Kt = 91, zt = 103, $r = 113, ut = 666, Ae = 1, Ot = 2, Br = 3, ot = 4, gf = 3;
|
|
3320
3337
|
function Cr(e, r) {
|
|
3321
|
-
return e.msg =
|
|
3338
|
+
return e.msg = Xp[r], r;
|
|
3322
3339
|
}
|
|
3323
|
-
function
|
|
3340
|
+
function Wi(e) {
|
|
3324
3341
|
return (e << 1) - (e > 4 ? 9 : 0);
|
|
3325
3342
|
}
|
|
3326
3343
|
function Ar(e) {
|
|
@@ -3340,11 +3357,11 @@ function fe(e, r) {
|
|
|
3340
3357
|
function lt(e, r) {
|
|
3341
3358
|
e.pending_buf[e.pending++] = r >>> 8 & 255, e.pending_buf[e.pending++] = r & 255;
|
|
3342
3359
|
}
|
|
3343
|
-
function
|
|
3360
|
+
function wf(e, r, s, n) {
|
|
3344
3361
|
var o = e.avail_in;
|
|
3345
|
-
return o > n && (o = n), o === 0 ? 0 : (e.avail_in -= o, Re.arraySet(r, e.input, e.next_in, o, s), e.state.wrap === 1 ? e.adler =
|
|
3362
|
+
return o > n && (o = n), o === 0 ? 0 : (e.avail_in -= o, Re.arraySet(r, e.input, e.next_in, o, s), e.state.wrap === 1 ? e.adler = ca(e.adler, r, o, s) : e.state.wrap === 2 && (e.adler = kr(e.adler, r, o, s)), e.next_in += o, e.total_in += o, o);
|
|
3346
3363
|
}
|
|
3347
|
-
function
|
|
3364
|
+
function da(e, r) {
|
|
3348
3365
|
var s = e.max_chain_length, n = e.strstart, o, i, t = e.prev_length, p = e.nice_match, y = e.strstart > e.w_size - er ? e.strstart - (e.w_size - er) : 0, u = e.window, d = e.w_mask, g = e.prev, b = e.strstart + Tr, w = u[n + t - 1], H = u[n + t];
|
|
3349
3366
|
e.prev_length >= e.good_match && (s >>= 2), p > e.lookahead && (p = e.lookahead);
|
|
3350
3367
|
do
|
|
@@ -3378,12 +3395,12 @@ function Fr(e) {
|
|
|
3378
3395
|
}
|
|
3379
3396
|
if (e.strm.avail_in === 0)
|
|
3380
3397
|
break;
|
|
3381
|
-
if (n =
|
|
3398
|
+
if (n = wf(e.strm, e.window, e.strstart + e.lookahead, i), e.lookahead += n, e.lookahead + e.insert >= oe)
|
|
3382
3399
|
for (t = e.strstart - e.insert, e.ins_h = e.window[t], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[t + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[t + oe - 1]) & e.hash_mask, e.prev[t & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = t, t++, e.insert--, !(e.lookahead + e.insert < oe)); )
|
|
3383
3400
|
;
|
|
3384
3401
|
} while (e.lookahead < er && e.strm.avail_in !== 0);
|
|
3385
3402
|
}
|
|
3386
|
-
function
|
|
3403
|
+
function bf(e, r) {
|
|
3387
3404
|
var s = 65535;
|
|
3388
3405
|
for (s > e.pending_buf_size - 5 && (s = e.pending_buf_size - 5); ; ) {
|
|
3389
3406
|
if (e.lookahead <= 1) {
|
|
@@ -3407,7 +3424,7 @@ function Ts(e, r) {
|
|
|
3407
3424
|
if (e.lookahead === 0)
|
|
3408
3425
|
break;
|
|
3409
3426
|
}
|
|
3410
|
-
if (s = 0, e.lookahead >= oe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), s !== 0 && e.strstart - s <= e.w_size - er && (e.match_length =
|
|
3427
|
+
if (s = 0, e.lookahead >= oe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), s !== 0 && e.strstart - s <= e.w_size - er && (e.match_length = da(e, s)), e.match_length >= oe)
|
|
3411
3428
|
if (n = ze._tr_tally(e, e.strstart - e.match_start, e.match_length - oe), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= oe) {
|
|
3412
3429
|
e.match_length--;
|
|
3413
3430
|
do
|
|
@@ -3431,7 +3448,7 @@ function Vr(e, r) {
|
|
|
3431
3448
|
if (e.lookahead === 0)
|
|
3432
3449
|
break;
|
|
3433
3450
|
}
|
|
3434
|
-
if (s = 0, e.lookahead >= oe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = oe - 1, s !== 0 && e.prev_length < e.max_lazy_match && e.strstart - s <= e.w_size - er && (e.match_length =
|
|
3451
|
+
if (s = 0, e.lookahead >= oe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = oe - 1, s !== 0 && e.prev_length < e.max_lazy_match && e.strstart - s <= e.w_size - er && (e.match_length = da(e, s), e.match_length <= 5 && (e.strategy === tf || e.match_length === oe && e.strstart - e.match_start > 4096) && (e.match_length = oe - 1)), e.prev_length >= oe && e.match_length <= e.prev_length) {
|
|
3435
3452
|
o = e.strstart + e.lookahead - oe, n = ze._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - oe), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
|
|
3436
3453
|
do
|
|
3437
3454
|
++e.strstart <= o && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
|
|
@@ -3446,7 +3463,7 @@ function Vr(e, r) {
|
|
|
3446
3463
|
}
|
|
3447
3464
|
return e.match_available && (n = ze._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < oe - 1 ? e.strstart : oe - 1, r === Or ? (Le(e, !0), e.strm.avail_out === 0 ? Br : ot) : e.last_lit && (Le(e, !1), e.strm.avail_out === 0) ? Ae : Ot;
|
|
3448
3465
|
}
|
|
3449
|
-
function
|
|
3466
|
+
function vf(e, r) {
|
|
3450
3467
|
for (var s, n, o, i, t = e.window; ; ) {
|
|
3451
3468
|
if (e.lookahead <= Tr) {
|
|
3452
3469
|
if (Fr(e), e.lookahead <= Tr && r === Ur)
|
|
@@ -3466,7 +3483,7 @@ function yf(e, r) {
|
|
|
3466
3483
|
}
|
|
3467
3484
|
return e.insert = 0, r === Or ? (Le(e, !0), e.strm.avail_out === 0 ? Br : ot) : e.last_lit && (Le(e, !1), e.strm.avail_out === 0) ? Ae : Ot;
|
|
3468
3485
|
}
|
|
3469
|
-
function
|
|
3486
|
+
function Pf(e, r) {
|
|
3470
3487
|
for (var s; ; ) {
|
|
3471
3488
|
if (e.lookahead === 0 && (Fr(e), e.lookahead === 0)) {
|
|
3472
3489
|
if (r === Ur)
|
|
@@ -3484,7 +3501,7 @@ function nr(e, r, s, n, o) {
|
|
|
3484
3501
|
var Jr;
|
|
3485
3502
|
Jr = [
|
|
3486
3503
|
/* good lazy nice chain */
|
|
3487
|
-
new nr(0, 0, 0, 0,
|
|
3504
|
+
new nr(0, 0, 0, 0, bf),
|
|
3488
3505
|
/* 0 store only */
|
|
3489
3506
|
new nr(4, 4, 8, 4, Ts),
|
|
3490
3507
|
/* 1 max speed, no lazy matches */
|
|
@@ -3505,39 +3522,39 @@ Jr = [
|
|
|
3505
3522
|
new nr(32, 258, 258, 4096, Vr)
|
|
3506
3523
|
/* 9 max compression */
|
|
3507
3524
|
];
|
|
3508
|
-
function
|
|
3525
|
+
function Ef(e) {
|
|
3509
3526
|
e.window_size = 2 * e.w_size, Ar(e.head), e.max_lazy_match = Jr[e.level].max_lazy, e.good_match = Jr[e.level].good_length, e.nice_match = Jr[e.level].nice_length, e.max_chain_length = Jr[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = oe - 1, e.match_available = 0, e.ins_h = 0;
|
|
3510
3527
|
}
|
|
3511
|
-
function
|
|
3512
|
-
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 = ls, 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 Re.Buf16(
|
|
3528
|
+
function kf() {
|
|
3529
|
+
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 = ls, 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 Re.Buf16(yf * 2), this.dyn_dtree = new Re.Buf16((2 * df + 1) * 2), this.bl_tree = new Re.Buf16((2 * hf + 1) * 2), Ar(this.dyn_ltree), Ar(this.dyn_dtree), Ar(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Re.Buf16(mf + 1), this.heap = new Re.Buf16(2 * Gs + 1), Ar(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Re.Buf16(2 * Gs + 1), Ar(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;
|
|
3513
3530
|
}
|
|
3514
|
-
function
|
|
3531
|
+
function ha(e) {
|
|
3515
3532
|
var r;
|
|
3516
|
-
return !e || !e.state ? Cr(e, Ge) : (e.total_in = e.total_out = 0, e.data_type =
|
|
3533
|
+
return !e || !e.state ? Cr(e, Ge) : (e.total_in = e.total_out = 0, e.data_type = of, r = e.state, r.pending = 0, r.pending_out = 0, r.wrap < 0 && (r.wrap = -r.wrap), r.status = r.wrap ? us : $r, e.adler = r.wrap === 2 ? 0 : 1, r.last_flush = Ur, ze._tr_init(r), fr);
|
|
3517
3534
|
}
|
|
3518
|
-
function
|
|
3519
|
-
var r =
|
|
3520
|
-
return r === fr &&
|
|
3535
|
+
function ya(e) {
|
|
3536
|
+
var r = ha(e);
|
|
3537
|
+
return r === fr && Ef(e.state), r;
|
|
3521
3538
|
}
|
|
3522
|
-
function
|
|
3539
|
+
function Sf(e, r) {
|
|
3523
3540
|
return !e || !e.state || e.state.wrap !== 2 ? Ge : (e.state.gzhead = r, fr);
|
|
3524
3541
|
}
|
|
3525
|
-
function
|
|
3542
|
+
function ma(e, r, s, n, o, i) {
|
|
3526
3543
|
if (!e)
|
|
3527
3544
|
return Ge;
|
|
3528
3545
|
var t = 1;
|
|
3529
|
-
if (r ===
|
|
3546
|
+
if (r === rf && (r = 6), n < 0 ? (t = 0, n = -n) : n > 15 && (t = 2, n -= 16), o < 1 || o > pf || s !== ls || n < 8 || n > 15 || r < 0 || r > 9 || i < 0 || i > nf)
|
|
3530
3547
|
return Cr(e, Ge);
|
|
3531
3548
|
n === 8 && (n = 9);
|
|
3532
|
-
var p = new
|
|
3533
|
-
return e.state = p, p.strm = e, p.wrap = t, p.gzhead = null, p.w_bits = n, p.w_size = 1 << p.w_bits, p.w_mask = p.w_size - 1, p.hash_bits = o + 7, p.hash_size = 1 << p.hash_bits, p.hash_mask = p.hash_size - 1, p.hash_shift = ~~((p.hash_bits + oe - 1) / oe), p.window = new Re.Buf8(p.w_size * 2), p.head = new Re.Buf16(p.hash_size), p.prev = new Re.Buf16(p.w_size), p.lit_bufsize = 1 << o + 6, p.pending_buf_size = p.lit_bufsize * 4, p.pending_buf = new Re.Buf8(p.pending_buf_size), p.d_buf = 1 * p.lit_bufsize, p.l_buf = (1 + 2) * p.lit_bufsize, p.level = r, p.strategy = i, p.method = s,
|
|
3549
|
+
var p = new kf();
|
|
3550
|
+
return e.state = p, p.strm = e, p.wrap = t, p.gzhead = null, p.w_bits = n, p.w_size = 1 << p.w_bits, p.w_mask = p.w_size - 1, p.hash_bits = o + 7, p.hash_size = 1 << p.hash_bits, p.hash_mask = p.hash_size - 1, p.hash_shift = ~~((p.hash_bits + oe - 1) / oe), p.window = new Re.Buf8(p.w_size * 2), p.head = new Re.Buf16(p.hash_size), p.prev = new Re.Buf16(p.w_size), p.lit_bufsize = 1 << o + 6, p.pending_buf_size = p.lit_bufsize * 4, p.pending_buf = new Re.Buf8(p.pending_buf_size), p.d_buf = 1 * p.lit_bufsize, p.l_buf = (1 + 2) * p.lit_bufsize, p.level = r, p.strategy = i, p.method = s, ya(e);
|
|
3534
3551
|
}
|
|
3535
|
-
function
|
|
3536
|
-
return
|
|
3552
|
+
function Af(e, r) {
|
|
3553
|
+
return ma(e, r, ls, ff, lf, af);
|
|
3537
3554
|
}
|
|
3538
|
-
function
|
|
3555
|
+
function Tf(e, r) {
|
|
3539
3556
|
var s, n, o, i;
|
|
3540
|
-
if (!e || !e.state || r >
|
|
3557
|
+
if (!e || !e.state || r > ji || r < 0)
|
|
3541
3558
|
return e ? Cr(e, Ge) : Ge;
|
|
3542
3559
|
if (n = e.state, !e.output || !e.input && e.avail_in !== 0 || n.status === ut && r !== Or)
|
|
3543
3560
|
return Cr(e, e.avail_out === 0 ? As : Ge);
|
|
@@ -3546,10 +3563,10 @@ function vf(e, r) {
|
|
|
3546
3563
|
e.adler = 0, fe(n, 31), fe(n, 139), fe(n, 8), n.gzhead ? (fe(
|
|
3547
3564
|
n,
|
|
3548
3565
|
(n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)
|
|
3549
|
-
), fe(n, n.gzhead.time & 255), fe(n, n.gzhead.time >> 8 & 255), fe(n, n.gzhead.time >> 16 & 255), fe(n, n.gzhead.time >> 24 & 255), fe(n, n.level === 9 ? 2 : n.strategy >= Dt || n.level < 2 ? 4 : 0), fe(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (fe(n, n.gzhead.extra.length & 255), fe(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = kr(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = Zs) : (fe(n, 0), fe(n, 0), fe(n, 0), fe(n, 0), fe(n, 0), fe(n, n.level === 9 ? 2 : n.strategy >= Dt || n.level < 2 ? 4 : 0), fe(n,
|
|
3566
|
+
), fe(n, n.gzhead.time & 255), fe(n, n.gzhead.time >> 8 & 255), fe(n, n.gzhead.time >> 16 & 255), fe(n, n.gzhead.time >> 24 & 255), fe(n, n.level === 9 ? 2 : n.strategy >= Dt || n.level < 2 ? 4 : 0), fe(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (fe(n, n.gzhead.extra.length & 255), fe(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = kr(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = Zs) : (fe(n, 0), fe(n, 0), fe(n, 0), fe(n, 0), fe(n, 0), fe(n, n.level === 9 ? 2 : n.strategy >= Dt || n.level < 2 ? 4 : 0), fe(n, gf), n.status = $r);
|
|
3550
3567
|
else {
|
|
3551
3568
|
var t = ls + (n.w_bits - 8 << 4) << 8, p = -1;
|
|
3552
|
-
n.strategy >= Dt || n.level < 2 ? p = 0 : n.level < 6 ? p = 1 : n.level === 6 ? p = 2 : p = 3, t |= p << 6, n.strstart !== 0 && (t |=
|
|
3569
|
+
n.strategy >= Dt || n.level < 2 ? p = 0 : n.level < 6 ? p = 1 : n.level === 6 ? p = 2 : p = 3, t |= p << 6, n.strstart !== 0 && (t |= _f), t += 31 - t % 31, n.status = $r, lt(n, t), n.strstart !== 0 && (lt(n, e.adler >>> 16), lt(n, e.adler & 65535)), e.adler = 1;
|
|
3553
3570
|
}
|
|
3554
3571
|
if (n.status === Zs)
|
|
3555
3572
|
if (n.gzhead.extra) {
|
|
@@ -3587,28 +3604,28 @@ function vf(e, r) {
|
|
|
3587
3604
|
if (n.status === zt && (n.gzhead.hcrc ? (n.pending + 2 > n.pending_buf_size && Sr(e), n.pending + 2 <= n.pending_buf_size && (fe(n, e.adler & 255), fe(n, e.adler >> 8 & 255), e.adler = 0, n.status = $r)) : n.status = $r), n.pending !== 0) {
|
|
3588
3605
|
if (Sr(e), e.avail_out === 0)
|
|
3589
3606
|
return n.last_flush = -1, fr;
|
|
3590
|
-
} else if (e.avail_in === 0 &&
|
|
3607
|
+
} else if (e.avail_in === 0 && Wi(r) <= Wi(s) && r !== Or)
|
|
3591
3608
|
return Cr(e, As);
|
|
3592
3609
|
if (n.status === ut && e.avail_in !== 0)
|
|
3593
3610
|
return Cr(e, As);
|
|
3594
3611
|
if (e.avail_in !== 0 || n.lookahead !== 0 || r !== Ur && n.status !== ut) {
|
|
3595
|
-
var y = n.strategy === Dt ?
|
|
3612
|
+
var y = n.strategy === Dt ? Pf(n, r) : n.strategy === sf ? vf(n, r) : Jr[n.level].func(n, r);
|
|
3596
3613
|
if ((y === Br || y === ot) && (n.status = ut), y === Ae || y === Br)
|
|
3597
3614
|
return e.avail_out === 0 && (n.last_flush = -1), fr;
|
|
3598
|
-
if (y === Ot && (r ===
|
|
3615
|
+
if (y === Ot && (r === Qp ? ze._tr_align(n) : r !== ji && (ze._tr_stored_block(n, 0, 0, !1), r === Jp && (Ar(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), Sr(e), e.avail_out === 0))
|
|
3599
3616
|
return n.last_flush = -1, fr;
|
|
3600
3617
|
}
|
|
3601
|
-
return r !== Or ? fr : n.wrap <= 0 ?
|
|
3618
|
+
return r !== Or ? fr : n.wrap <= 0 ? Ni : (n.wrap === 2 ? (fe(n, e.adler & 255), fe(n, e.adler >> 8 & 255), fe(n, e.adler >> 16 & 255), fe(n, e.adler >> 24 & 255), fe(n, e.total_in & 255), fe(n, e.total_in >> 8 & 255), fe(n, e.total_in >> 16 & 255), fe(n, e.total_in >> 24 & 255)) : (lt(n, e.adler >>> 16), lt(n, e.adler & 65535)), Sr(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending !== 0 ? fr : Ni);
|
|
3602
3619
|
}
|
|
3603
|
-
function
|
|
3620
|
+
function Cf(e) {
|
|
3604
3621
|
var r;
|
|
3605
|
-
return !e || !e.state ? Ge : (r = e.state.status, r !== us && r !== Zs && r !== Mt && r !== Kt && r !== zt && r !== $r && r !== ut ? Cr(e, Ge) : (e.state = null, r === $r ? Cr(e,
|
|
3622
|
+
return !e || !e.state ? Ge : (r = e.state.status, r !== us && r !== Zs && r !== Mt && r !== Kt && r !== zt && r !== $r && r !== ut ? Cr(e, Ge) : (e.state = null, r === $r ? Cr(e, ef) : fr));
|
|
3606
3623
|
}
|
|
3607
|
-
function
|
|
3624
|
+
function Of(e, r) {
|
|
3608
3625
|
var s = r.length, n, o, i, t, p, y, u, d;
|
|
3609
3626
|
if (!e || !e.state || (n = e.state, t = n.wrap, t === 2 || t === 1 && n.status !== us || n.lookahead))
|
|
3610
3627
|
return Ge;
|
|
3611
|
-
for (t === 1 && (e.adler =
|
|
3628
|
+
for (t === 1 && (e.adler = ca(e.adler, r, s, 0)), n.wrap = 0, s >= n.w_size && (t === 0 && (Ar(n.head), n.strstart = 0, n.block_start = 0, n.insert = 0), d = new Re.Buf8(n.w_size), Re.arraySet(d, r, s - n.w_size, n.w_size, 0), r = d, s = n.w_size), p = e.avail_in, y = e.next_in, u = e.input, e.avail_in = s, e.next_in = 0, e.input = r, Fr(n); n.lookahead >= oe; ) {
|
|
3612
3629
|
o = n.strstart, i = n.lookahead - (oe - 1);
|
|
3613
3630
|
do
|
|
3614
3631
|
n.ins_h = (n.ins_h << n.hash_shift ^ n.window[o + oe - 1]) & n.hash_mask, n.prev[o & n.w_mask] = n.head[n.ins_h], n.head[n.ins_h] = o, o++;
|
|
@@ -3617,25 +3634,25 @@ function Ef(e, r) {
|
|
|
3617
3634
|
}
|
|
3618
3635
|
return n.strstart += n.lookahead, n.block_start = n.strstart, n.insert = n.lookahead, n.lookahead = 0, n.match_length = n.prev_length = oe - 1, n.match_available = 0, e.next_in = y, e.input = u, e.avail_in = p, n.wrap = t, fr;
|
|
3619
3636
|
}
|
|
3620
|
-
ur.deflateInit =
|
|
3621
|
-
ur.deflateInit2 =
|
|
3622
|
-
ur.deflateReset =
|
|
3623
|
-
ur.deflateResetKeep =
|
|
3624
|
-
ur.deflateSetHeader =
|
|
3625
|
-
ur.deflate =
|
|
3626
|
-
ur.deflateEnd =
|
|
3627
|
-
ur.deflateSetDictionary =
|
|
3637
|
+
ur.deflateInit = Af;
|
|
3638
|
+
ur.deflateInit2 = ma;
|
|
3639
|
+
ur.deflateReset = ya;
|
|
3640
|
+
ur.deflateResetKeep = ha;
|
|
3641
|
+
ur.deflateSetHeader = Sf;
|
|
3642
|
+
ur.deflate = Tf;
|
|
3643
|
+
ur.deflateEnd = Cf;
|
|
3644
|
+
ur.deflateSetDictionary = Of;
|
|
3628
3645
|
ur.deflateInfo = "pako deflate (from Nodeca project)";
|
|
3629
|
-
var qr = {}, cs = wr,
|
|
3646
|
+
var qr = {}, cs = wr, _a = !0, ga = !0;
|
|
3630
3647
|
try {
|
|
3631
3648
|
String.fromCharCode.apply(null, [0]);
|
|
3632
3649
|
} catch {
|
|
3633
|
-
|
|
3650
|
+
_a = !1;
|
|
3634
3651
|
}
|
|
3635
3652
|
try {
|
|
3636
3653
|
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
3637
3654
|
} catch {
|
|
3638
|
-
|
|
3655
|
+
ga = !1;
|
|
3639
3656
|
}
|
|
3640
3657
|
var Et = new cs.Buf8(256);
|
|
3641
3658
|
for (var Er = 0; Er < 256; Er++)
|
|
@@ -3649,15 +3666,15 @@ qr.string2buf = function(e) {
|
|
|
3649
3666
|
s = e.charCodeAt(o), (s & 64512) === 55296 && o + 1 < t && (n = e.charCodeAt(o + 1), (n & 64512) === 56320 && (s = 65536 + (s - 55296 << 10) + (n - 56320), o++)), s < 128 ? r[i++] = s : s < 2048 ? (r[i++] = 192 | s >>> 6, r[i++] = 128 | s & 63) : s < 65536 ? (r[i++] = 224 | s >>> 12, r[i++] = 128 | s >>> 6 & 63, r[i++] = 128 | s & 63) : (r[i++] = 240 | s >>> 18, r[i++] = 128 | s >>> 12 & 63, r[i++] = 128 | s >>> 6 & 63, r[i++] = 128 | s & 63);
|
|
3650
3667
|
return r;
|
|
3651
3668
|
};
|
|
3652
|
-
function
|
|
3653
|
-
if (r < 65534 && (e.subarray &&
|
|
3669
|
+
function wa(e, r) {
|
|
3670
|
+
if (r < 65534 && (e.subarray && ga || !e.subarray && _a))
|
|
3654
3671
|
return String.fromCharCode.apply(null, cs.shrinkBuf(e, r));
|
|
3655
3672
|
for (var s = "", n = 0; n < r; n++)
|
|
3656
3673
|
s += String.fromCharCode(e[n]);
|
|
3657
3674
|
return s;
|
|
3658
3675
|
}
|
|
3659
3676
|
qr.buf2binstring = function(e) {
|
|
3660
|
-
return
|
|
3677
|
+
return wa(e, e.length);
|
|
3661
3678
|
};
|
|
3662
3679
|
qr.binstring2buf = function(e) {
|
|
3663
3680
|
for (var r = new cs.Buf8(e.length), s = 0, n = r.length; s < n; s++)
|
|
@@ -3683,7 +3700,7 @@ qr.buf2string = function(e, r) {
|
|
|
3683
3700
|
}
|
|
3684
3701
|
o < 65536 ? p[n++] = o : (o -= 65536, p[n++] = 55296 | o >> 10 & 1023, p[n++] = 56320 | o & 1023);
|
|
3685
3702
|
}
|
|
3686
|
-
return
|
|
3703
|
+
return wa(p, n);
|
|
3687
3704
|
};
|
|
3688
3705
|
qr.utf8border = function(e, r) {
|
|
3689
3706
|
var s;
|
|
@@ -3691,24 +3708,24 @@ qr.utf8border = function(e, r) {
|
|
|
3691
3708
|
s--;
|
|
3692
3709
|
return s < 0 || s === 0 ? r : s + Et[e[s]] > r ? s : r;
|
|
3693
3710
|
};
|
|
3694
|
-
function
|
|
3711
|
+
function xf() {
|
|
3695
3712
|
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;
|
|
3696
3713
|
}
|
|
3697
|
-
var
|
|
3714
|
+
var ba = xf, ht = ur, yt = wr, Vs = qr, Ys = hi, Lf = ba, va = Object.prototype.toString, If = 0, Cs = 4, tt = 0, Ui = 1, qi = 2, Hf = -1, $f = 0, Rf = 8;
|
|
3698
3715
|
function jr(e) {
|
|
3699
3716
|
if (!(this instanceof jr))
|
|
3700
3717
|
return new jr(e);
|
|
3701
3718
|
this.options = yt.assign({
|
|
3702
|
-
level:
|
|
3703
|
-
method:
|
|
3719
|
+
level: Hf,
|
|
3720
|
+
method: Rf,
|
|
3704
3721
|
chunkSize: 16384,
|
|
3705
3722
|
windowBits: 15,
|
|
3706
3723
|
memLevel: 8,
|
|
3707
|
-
strategy:
|
|
3724
|
+
strategy: $f,
|
|
3708
3725
|
to: ""
|
|
3709
3726
|
}, e || {});
|
|
3710
3727
|
var r = this.options;
|
|
3711
|
-
r.raw && r.windowBits > 0 ? r.windowBits = -r.windowBits : r.gzip && r.windowBits > 0 && r.windowBits < 16 && (r.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new
|
|
3728
|
+
r.raw && r.windowBits > 0 ? r.windowBits = -r.windowBits : r.gzip && r.windowBits > 0 && r.windowBits < 16 && (r.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Lf(), this.strm.avail_out = 0;
|
|
3712
3729
|
var s = ht.deflateInit2(
|
|
3713
3730
|
this.strm,
|
|
3714
3731
|
r.level,
|
|
@@ -3721,7 +3738,7 @@ function jr(e) {
|
|
|
3721
3738
|
throw new Error(Ys[s]);
|
|
3722
3739
|
if (r.header && ht.deflateSetHeader(this.strm, r.header), r.dictionary) {
|
|
3723
3740
|
var n;
|
|
3724
|
-
if (typeof r.dictionary == "string" ? n = Vs.string2buf(r.dictionary) :
|
|
3741
|
+
if (typeof r.dictionary == "string" ? n = Vs.string2buf(r.dictionary) : va.call(r.dictionary) === "[object ArrayBuffer]" ? n = new Uint8Array(r.dictionary) : n = r.dictionary, s = ht.deflateSetDictionary(this.strm, n), s !== tt)
|
|
3725
3742
|
throw new Error(Ys[s]);
|
|
3726
3743
|
this._dict_set = !0;
|
|
3727
3744
|
}
|
|
@@ -3730,13 +3747,13 @@ jr.prototype.push = function(e, r) {
|
|
|
3730
3747
|
var s = this.strm, n = this.options.chunkSize, o, i;
|
|
3731
3748
|
if (this.ended)
|
|
3732
3749
|
return !1;
|
|
3733
|
-
i = r === ~~r ? r : r === !0 ? Cs :
|
|
3750
|
+
i = r === ~~r ? r : r === !0 ? Cs : If, typeof e == "string" ? s.input = Vs.string2buf(e) : va.call(e) === "[object ArrayBuffer]" ? s.input = new Uint8Array(e) : s.input = e, s.next_in = 0, s.avail_in = s.input.length;
|
|
3734
3751
|
do {
|
|
3735
|
-
if (s.avail_out === 0 && (s.output = new yt.Buf8(n), s.next_out = 0, s.avail_out = n), o = ht.deflate(s, i), o !==
|
|
3752
|
+
if (s.avail_out === 0 && (s.output = new yt.Buf8(n), s.next_out = 0, s.avail_out = n), o = ht.deflate(s, i), o !== Ui && o !== tt)
|
|
3736
3753
|
return this.onEnd(o), this.ended = !0, !1;
|
|
3737
|
-
(s.avail_out === 0 || s.avail_in === 0 && (i === Cs || i ===
|
|
3738
|
-
} while ((s.avail_in > 0 || s.avail_out === 0) && o !==
|
|
3739
|
-
return i === Cs ? (o = ht.deflateEnd(this.strm), this.onEnd(o), this.ended = !0, o === tt) : (i ===
|
|
3754
|
+
(s.avail_out === 0 || s.avail_in === 0 && (i === Cs || i === qi)) && (this.options.to === "string" ? this.onData(Vs.buf2binstring(yt.shrinkBuf(s.output, s.next_out))) : this.onData(yt.shrinkBuf(s.output, s.next_out)));
|
|
3755
|
+
} while ((s.avail_in > 0 || s.avail_out === 0) && o !== Ui);
|
|
3756
|
+
return i === Cs ? (o = ht.deflateEnd(this.strm), this.onEnd(o), this.ended = !0, o === tt) : (i === qi && (this.onEnd(tt), s.avail_out = 0), !0);
|
|
3740
3757
|
};
|
|
3741
3758
|
jr.prototype.onData = function(e) {
|
|
3742
3759
|
this.chunks.push(e);
|
|
@@ -3744,23 +3761,23 @@ jr.prototype.onData = function(e) {
|
|
|
3744
3761
|
jr.prototype.onEnd = function(e) {
|
|
3745
3762
|
e === tt && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = yt.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
3746
3763
|
};
|
|
3747
|
-
function
|
|
3764
|
+
function yi(e, r) {
|
|
3748
3765
|
var s = new jr(r);
|
|
3749
3766
|
if (s.push(e, !0), s.err)
|
|
3750
3767
|
throw s.msg || Ys[s.err];
|
|
3751
3768
|
return s.result;
|
|
3752
3769
|
}
|
|
3753
|
-
function
|
|
3754
|
-
return r = r || {}, r.raw = !0,
|
|
3770
|
+
function Df(e, r) {
|
|
3771
|
+
return r = r || {}, r.raw = !0, yi(e, r);
|
|
3755
3772
|
}
|
|
3756
|
-
function
|
|
3757
|
-
return r = r || {}, r.gzip = !0,
|
|
3773
|
+
function Bf(e, r) {
|
|
3774
|
+
return r = r || {}, r.gzip = !0, yi(e, r);
|
|
3758
3775
|
}
|
|
3759
3776
|
Tt.Deflate = jr;
|
|
3760
|
-
Tt.deflate =
|
|
3761
|
-
Tt.deflateRaw =
|
|
3762
|
-
Tt.gzip =
|
|
3763
|
-
var xt = {}, rr = {}, Bt = 30,
|
|
3777
|
+
Tt.deflate = yi;
|
|
3778
|
+
Tt.deflateRaw = Df;
|
|
3779
|
+
Tt.gzip = Bf;
|
|
3780
|
+
var xt = {}, rr = {}, Bt = 30, Ff = 12, jf = function(r, s) {
|
|
3764
3781
|
var n, o, i, t, p, y, u, d, g, b, w, H, P, N, j, q, $, W, O, A, B, x, T, k, S;
|
|
3765
3782
|
n = r.state, o = r.next_in, k = r.input, i = o + (r.avail_in - 5), t = r.next_out, S = r.output, p = t - (s - r.avail_out), y = t + (r.avail_out - 257), u = n.dmax, d = n.wsize, g = n.whave, b = n.wnext, w = n.window, H = n.hold, P = n.bits, N = n.lencode, j = n.distcode, q = (1 << n.lenbits) - 1, $ = (1 << n.distbits) - 1;
|
|
3766
3783
|
e:
|
|
@@ -3834,7 +3851,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
|
|
|
3834
3851
|
}
|
|
3835
3852
|
} else if (O & 64)
|
|
3836
3853
|
if (O & 32) {
|
|
3837
|
-
n.mode =
|
|
3854
|
+
n.mode = Ff;
|
|
3838
3855
|
break e;
|
|
3839
3856
|
} else {
|
|
3840
3857
|
r.msg = "invalid literal/length code", n.mode = Bt;
|
|
@@ -3848,7 +3865,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
|
|
|
3848
3865
|
}
|
|
3849
3866
|
} while (o < i && t < y);
|
|
3850
3867
|
A = P >> 3, o -= A, P -= A << 3, H &= (1 << P) - 1, r.next_in = o, r.next_out = t, r.avail_in = o < i ? 5 + (i - o) : 5 - (o - i), r.avail_out = t < y ? 257 + (y - t) : 257 - (t - y), n.hold = H, n.bits = P;
|
|
3851
|
-
},
|
|
3868
|
+
}, Mi = wr, Yr = 15, Ki = 852, zi = 592, Gi = 0, Os = 1, Zi = 2, Nf = [
|
|
3852
3869
|
/* Length codes 257..285 base */
|
|
3853
3870
|
3,
|
|
3854
3871
|
4,
|
|
@@ -3881,7 +3898,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
|
|
|
3881
3898
|
258,
|
|
3882
3899
|
0,
|
|
3883
3900
|
0
|
|
3884
|
-
],
|
|
3901
|
+
], Wf = [
|
|
3885
3902
|
/* Length codes 257..285 extra */
|
|
3886
3903
|
16,
|
|
3887
3904
|
16,
|
|
@@ -3914,7 +3931,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
|
|
|
3914
3931
|
16,
|
|
3915
3932
|
72,
|
|
3916
3933
|
78
|
|
3917
|
-
],
|
|
3934
|
+
], Uf = [
|
|
3918
3935
|
/* Distance codes 0..29 base */
|
|
3919
3936
|
1,
|
|
3920
3937
|
2,
|
|
@@ -3948,7 +3965,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
|
|
|
3948
3965
|
24577,
|
|
3949
3966
|
0,
|
|
3950
3967
|
0
|
|
3951
|
-
],
|
|
3968
|
+
], qf = [
|
|
3952
3969
|
/* Distance codes 0..29 extra */
|
|
3953
3970
|
16,
|
|
3954
3971
|
16,
|
|
@@ -3982,8 +3999,8 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
|
|
|
3982
3999
|
29,
|
|
3983
4000
|
64,
|
|
3984
4001
|
64
|
|
3985
|
-
],
|
|
3986
|
-
var u = y.bits, d = 0, g = 0, b = 0, w = 0, H = 0, P = 0, N = 0, j = 0, q = 0, $ = 0, W, O, A, B, x, T = null, k = 0, S, F = new
|
|
4002
|
+
], Mf = function(r, s, n, o, i, t, p, y) {
|
|
4003
|
+
var u = y.bits, d = 0, g = 0, b = 0, w = 0, H = 0, P = 0, N = 0, j = 0, q = 0, $ = 0, W, O, A, B, x, T = null, k = 0, S, F = new Mi.Buf16(Yr + 1), D = new Mi.Buf16(Yr + 1), I = null, V = 0, z, K, Y;
|
|
3987
4004
|
for (d = 0; d <= Yr; d++)
|
|
3988
4005
|
F[d] = 0;
|
|
3989
4006
|
for (g = 0; g < o; g++)
|
|
@@ -3997,13 +4014,13 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
|
|
|
3997
4014
|
for (H < b && (H = b), j = 1, d = 1; d <= Yr; d++)
|
|
3998
4015
|
if (j <<= 1, j -= F[d], j < 0)
|
|
3999
4016
|
return -1;
|
|
4000
|
-
if (j > 0 && (r ===
|
|
4017
|
+
if (j > 0 && (r === Gi || w !== 1))
|
|
4001
4018
|
return -1;
|
|
4002
4019
|
for (D[1] = 0, d = 1; d < Yr; d++)
|
|
4003
4020
|
D[d + 1] = D[d] + F[d];
|
|
4004
4021
|
for (g = 0; g < o; g++)
|
|
4005
4022
|
s[n + g] !== 0 && (p[D[s[n + g]]++] = g);
|
|
4006
|
-
if (r ===
|
|
4023
|
+
if (r === Gi ? (T = I = p, S = 19) : r === Os ? (T = Nf, k -= 257, I = Wf, V -= 257, S = 256) : (T = Uf, I = qf, S = -1), $ = 0, g = 0, d = b, x = t, P = H, N = 0, A = -1, q = 1 << H, B = q - 1, r === Os && q > Ki || r === Zi && q > zi)
|
|
4007
4024
|
return 1;
|
|
4008
4025
|
for (; ; ) {
|
|
4009
4026
|
z = d - N, p[g] < S ? (K = 0, Y = p[g]) : p[g] > S ? (K = I[V + p[g]], Y = T[k + p[g]]) : (K = 32 + 64, Y = 0), W = 1 << d - N, O = 1 << P, b = O;
|
|
@@ -4020,41 +4037,41 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
|
|
|
4020
4037
|
if (d > H && ($ & B) !== A) {
|
|
4021
4038
|
for (N === 0 && (N = H), x += b, P = d - N, j = 1 << P; P + N < w && (j -= F[P + N], !(j <= 0)); )
|
|
4022
4039
|
P++, j <<= 1;
|
|
4023
|
-
if (q += 1 << P, r === Os && q >
|
|
4040
|
+
if (q += 1 << P, r === Os && q > Ki || r === Zi && q > zi)
|
|
4024
4041
|
return 1;
|
|
4025
4042
|
A = $ & B, i[A] = H << 24 | P << 16 | x - t | 0;
|
|
4026
4043
|
}
|
|
4027
4044
|
}
|
|
4028
4045
|
return $ !== 0 && (i[x + $] = d - N << 24 | 64 << 16 | 0), y.bits = H, 0;
|
|
4029
|
-
}, Ue = wr, Xs =
|
|
4030
|
-
function
|
|
4046
|
+
}, Ue = wr, Xs = la, ar = ua, Kf = jf, mt = Mf, zf = 0, Pa = 1, Ea = 2, Vi = 4, Gf = 5, Ft = 6, Nr = 0, Zf = 1, Vf = 2, Ze = -2, ka = -3, Sa = -4, Yf = -5, Yi = 8, Aa = 1, Xi = 2, Qi = 3, Ji = 4, en = 5, rn = 6, tn = 7, sn = 8, nn = 9, an = 10, rs = 11, hr = 12, xs = 13, on = 14, Ls = 15, pn = 16, fn = 17, ln = 18, un = 19, jt = 20, Nt = 21, cn = 22, dn = 23, hn = 24, yn = 25, mn = 26, Is = 27, _n = 28, gn = 29, we = 30, Ta = 31, Xf = 32, Qf = 852, Jf = 592, el = 15, rl = el;
|
|
4047
|
+
function wn(e) {
|
|
4031
4048
|
return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
|
|
4032
4049
|
}
|
|
4033
|
-
function
|
|
4050
|
+
function tl() {
|
|
4034
4051
|
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Ue.Buf16(320), this.work = new Ue.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
4035
4052
|
}
|
|
4036
|
-
function
|
|
4053
|
+
function Ca(e) {
|
|
4037
4054
|
var r;
|
|
4038
|
-
return !e || !e.state ? Ze : (r = e.state, e.total_in = e.total_out = r.total = 0, e.msg = "", r.wrap && (e.adler = r.wrap & 1), r.mode =
|
|
4055
|
+
return !e || !e.state ? Ze : (r = e.state, e.total_in = e.total_out = r.total = 0, e.msg = "", r.wrap && (e.adler = r.wrap & 1), r.mode = Aa, r.last = 0, r.havedict = 0, r.dmax = 32768, r.head = null, r.hold = 0, r.bits = 0, r.lencode = r.lendyn = new Ue.Buf32(Qf), r.distcode = r.distdyn = new Ue.Buf32(Jf), r.sane = 1, r.back = -1, Nr);
|
|
4039
4056
|
}
|
|
4040
|
-
function
|
|
4057
|
+
function Oa(e) {
|
|
4041
4058
|
var r;
|
|
4042
|
-
return !e || !e.state ? Ze : (r = e.state, r.wsize = 0, r.whave = 0, r.wnext = 0,
|
|
4059
|
+
return !e || !e.state ? Ze : (r = e.state, r.wsize = 0, r.whave = 0, r.wnext = 0, Ca(e));
|
|
4043
4060
|
}
|
|
4044
|
-
function
|
|
4061
|
+
function xa(e, r) {
|
|
4045
4062
|
var s, n;
|
|
4046
|
-
return !e || !e.state || (n = e.state, r < 0 ? (s = 0, r = -r) : (s = (r >> 4) + 1, r < 48 && (r &= 15)), r && (r < 8 || r > 15)) ? Ze : (n.window !== null && n.wbits !== r && (n.window = null), n.wrap = s, n.wbits = r,
|
|
4063
|
+
return !e || !e.state || (n = e.state, r < 0 ? (s = 0, r = -r) : (s = (r >> 4) + 1, r < 48 && (r &= 15)), r && (r < 8 || r > 15)) ? Ze : (n.window !== null && n.wbits !== r && (n.window = null), n.wrap = s, n.wbits = r, Oa(e));
|
|
4047
4064
|
}
|
|
4048
|
-
function
|
|
4065
|
+
function La(e, r) {
|
|
4049
4066
|
var s, n;
|
|
4050
|
-
return e ? (n = new
|
|
4067
|
+
return e ? (n = new tl(), e.state = n, n.window = null, s = xa(e, r), s !== Nr && (e.state = null), s) : Ze;
|
|
4051
4068
|
}
|
|
4052
|
-
function
|
|
4053
|
-
return
|
|
4069
|
+
function sl(e) {
|
|
4070
|
+
return La(e, rl);
|
|
4054
4071
|
}
|
|
4055
|
-
var
|
|
4056
|
-
function
|
|
4057
|
-
if (
|
|
4072
|
+
var bn = !0, Hs, $s;
|
|
4073
|
+
function il(e) {
|
|
4074
|
+
if (bn) {
|
|
4058
4075
|
var r;
|
|
4059
4076
|
for (Hs = new Ue.Buf32(512), $s = new Ue.Buf32(32), r = 0; r < 144; )
|
|
4060
4077
|
e.lens[r++] = 8;
|
|
@@ -4064,17 +4081,17 @@ function Qf(e) {
|
|
|
4064
4081
|
e.lens[r++] = 7;
|
|
4065
4082
|
for (; r < 288; )
|
|
4066
4083
|
e.lens[r++] = 8;
|
|
4067
|
-
for (mt(
|
|
4084
|
+
for (mt(Pa, e.lens, 0, 288, Hs, 0, e.work, { bits: 9 }), r = 0; r < 32; )
|
|
4068
4085
|
e.lens[r++] = 5;
|
|
4069
|
-
mt(
|
|
4086
|
+
mt(Ea, e.lens, 0, 32, $s, 0, e.work, { bits: 5 }), bn = !1;
|
|
4070
4087
|
}
|
|
4071
4088
|
e.lencode = Hs, e.lenbits = 9, e.distcode = $s, e.distbits = 5;
|
|
4072
4089
|
}
|
|
4073
|
-
function
|
|
4090
|
+
function Ia(e, r, s, n) {
|
|
4074
4091
|
var o, i = e.state;
|
|
4075
4092
|
return i.window === null && (i.wsize = 1 << i.wbits, i.wnext = 0, i.whave = 0, i.window = new Ue.Buf8(i.wsize)), n >= i.wsize ? (Ue.arraySet(i.window, r, s - i.wsize, i.wsize, 0), i.wnext = 0, i.whave = i.wsize) : (o = i.wsize - i.wnext, o > n && (o = n), Ue.arraySet(i.window, r, s - n, o, i.wnext), n -= o, n ? (Ue.arraySet(i.window, r, s - n, n, 0), i.wnext = n, i.whave = i.wsize) : (i.wnext += o, i.wnext === i.wsize && (i.wnext = 0), i.whave < i.wsize && (i.whave += o))), 0;
|
|
4076
4093
|
}
|
|
4077
|
-
function
|
|
4094
|
+
function nl(e, r) {
|
|
4078
4095
|
var s, n, o, i, t, p, y, u, d, g, b, w, H, P, N = 0, j, q, $, W, O, A, B, x, T = new Ue.Buf8(4), k, S, F = (
|
|
4079
4096
|
/* permutation of code lengths */
|
|
4080
4097
|
[16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
|
|
@@ -4085,7 +4102,7 @@ function Jf(e, r) {
|
|
|
4085
4102
|
e:
|
|
4086
4103
|
for (; ; )
|
|
4087
4104
|
switch (s.mode) {
|
|
4088
|
-
case
|
|
4105
|
+
case Aa:
|
|
4089
4106
|
if (s.wrap === 0) {
|
|
4090
4107
|
s.mode = xs;
|
|
4091
4108
|
break;
|
|
@@ -4096,7 +4113,7 @@ function Jf(e, r) {
|
|
|
4096
4113
|
p--, u += n[i++] << d, d += 8;
|
|
4097
4114
|
}
|
|
4098
4115
|
if (s.wrap & 2 && u === 35615) {
|
|
4099
|
-
s.check = 0, T[0] = u & 255, T[1] = u >>> 8 & 255, s.check = ar(s.check, T, 2, 0), u = 0, d = 0, s.mode =
|
|
4116
|
+
s.check = 0, T[0] = u & 255, T[1] = u >>> 8 & 255, s.check = ar(s.check, T, 2, 0), u = 0, d = 0, s.mode = Xi;
|
|
4100
4117
|
break;
|
|
4101
4118
|
}
|
|
4102
4119
|
if (s.flags = 0, s.head && (s.head.done = !1), !(s.wrap & 1) || /* check if zlib header allowed */
|
|
@@ -4104,7 +4121,7 @@ function Jf(e, r) {
|
|
|
4104
4121
|
e.msg = "incorrect header check", s.mode = we;
|
|
4105
4122
|
break;
|
|
4106
4123
|
}
|
|
4107
|
-
if ((u & 15) !==
|
|
4124
|
+
if ((u & 15) !== Yi) {
|
|
4108
4125
|
e.msg = "unknown compression method", s.mode = we;
|
|
4109
4126
|
break;
|
|
4110
4127
|
}
|
|
@@ -4114,15 +4131,15 @@ function Jf(e, r) {
|
|
|
4114
4131
|
e.msg = "invalid window size", s.mode = we;
|
|
4115
4132
|
break;
|
|
4116
4133
|
}
|
|
4117
|
-
s.dmax = 1 << B, e.adler = s.check = 1, s.mode = u & 512 ?
|
|
4134
|
+
s.dmax = 1 << B, e.adler = s.check = 1, s.mode = u & 512 ? an : hr, u = 0, d = 0;
|
|
4118
4135
|
break;
|
|
4119
|
-
case
|
|
4136
|
+
case Xi:
|
|
4120
4137
|
for (; d < 16; ) {
|
|
4121
4138
|
if (p === 0)
|
|
4122
4139
|
break e;
|
|
4123
4140
|
p--, u += n[i++] << d, d += 8;
|
|
4124
4141
|
}
|
|
4125
|
-
if (s.flags = u, (s.flags & 255) !==
|
|
4142
|
+
if (s.flags = u, (s.flags & 255) !== Yi) {
|
|
4126
4143
|
e.msg = "unknown compression method", s.mode = we;
|
|
4127
4144
|
break;
|
|
4128
4145
|
}
|
|
@@ -4130,22 +4147,22 @@ function Jf(e, r) {
|
|
|
4130
4147
|
e.msg = "unknown header flags set", s.mode = we;
|
|
4131
4148
|
break;
|
|
4132
4149
|
}
|
|
4133
|
-
s.head && (s.head.text = u >> 8 & 1), s.flags & 512 && (T[0] = u & 255, T[1] = u >>> 8 & 255, s.check = ar(s.check, T, 2, 0)), u = 0, d = 0, s.mode =
|
|
4134
|
-
case
|
|
4150
|
+
s.head && (s.head.text = u >> 8 & 1), s.flags & 512 && (T[0] = u & 255, T[1] = u >>> 8 & 255, s.check = ar(s.check, T, 2, 0)), u = 0, d = 0, s.mode = Qi;
|
|
4151
|
+
case Qi:
|
|
4135
4152
|
for (; d < 32; ) {
|
|
4136
4153
|
if (p === 0)
|
|
4137
4154
|
break e;
|
|
4138
4155
|
p--, u += n[i++] << d, d += 8;
|
|
4139
4156
|
}
|
|
4140
|
-
s.head && (s.head.time = u), s.flags & 512 && (T[0] = u & 255, T[1] = u >>> 8 & 255, T[2] = u >>> 16 & 255, T[3] = u >>> 24 & 255, s.check = ar(s.check, T, 4, 0)), u = 0, d = 0, s.mode =
|
|
4141
|
-
case
|
|
4157
|
+
s.head && (s.head.time = u), s.flags & 512 && (T[0] = u & 255, T[1] = u >>> 8 & 255, T[2] = u >>> 16 & 255, T[3] = u >>> 24 & 255, s.check = ar(s.check, T, 4, 0)), u = 0, d = 0, s.mode = Ji;
|
|
4158
|
+
case Ji:
|
|
4142
4159
|
for (; d < 16; ) {
|
|
4143
4160
|
if (p === 0)
|
|
4144
4161
|
break e;
|
|
4145
4162
|
p--, u += n[i++] << d, d += 8;
|
|
4146
4163
|
}
|
|
4147
|
-
s.head && (s.head.xflags = u & 255, s.head.os = u >> 8), s.flags & 512 && (T[0] = u & 255, T[1] = u >>> 8 & 255, s.check = ar(s.check, T, 2, 0)), u = 0, d = 0, s.mode =
|
|
4148
|
-
case
|
|
4164
|
+
s.head && (s.head.xflags = u & 255, s.head.os = u >> 8), s.flags & 512 && (T[0] = u & 255, T[1] = u >>> 8 & 255, s.check = ar(s.check, T, 2, 0)), u = 0, d = 0, s.mode = en;
|
|
4165
|
+
case en:
|
|
4149
4166
|
if (s.flags & 1024) {
|
|
4150
4167
|
for (; d < 16; ) {
|
|
4151
4168
|
if (p === 0)
|
|
@@ -4155,8 +4172,8 @@ function Jf(e, r) {
|
|
|
4155
4172
|
s.length = u, s.head && (s.head.extra_len = u), s.flags & 512 && (T[0] = u & 255, T[1] = u >>> 8 & 255, s.check = ar(s.check, T, 2, 0)), u = 0, d = 0;
|
|
4156
4173
|
} else
|
|
4157
4174
|
s.head && (s.head.extra = null);
|
|
4158
|
-
s.mode =
|
|
4159
|
-
case
|
|
4175
|
+
s.mode = rn;
|
|
4176
|
+
case rn:
|
|
4160
4177
|
if (s.flags & 1024 && (w = s.length, w > p && (w = p), w && (s.head && (B = s.head.extra_len - s.length, s.head.extra || (s.head.extra = new Array(s.head.extra_len)), Ue.arraySet(
|
|
4161
4178
|
s.head.extra,
|
|
4162
4179
|
n,
|
|
@@ -4168,8 +4185,8 @@ function Jf(e, r) {
|
|
|
4168
4185
|
B
|
|
4169
4186
|
)), s.flags & 512 && (s.check = ar(s.check, n, w, i)), p -= w, i += w, s.length -= w), s.length))
|
|
4170
4187
|
break e;
|
|
4171
|
-
s.length = 0, s.mode =
|
|
4172
|
-
case
|
|
4188
|
+
s.length = 0, s.mode = tn;
|
|
4189
|
+
case tn:
|
|
4173
4190
|
if (s.flags & 2048) {
|
|
4174
4191
|
if (p === 0)
|
|
4175
4192
|
break e;
|
|
@@ -4181,8 +4198,8 @@ function Jf(e, r) {
|
|
|
4181
4198
|
break e;
|
|
4182
4199
|
} else
|
|
4183
4200
|
s.head && (s.head.name = null);
|
|
4184
|
-
s.length = 0, s.mode =
|
|
4185
|
-
case
|
|
4201
|
+
s.length = 0, s.mode = sn;
|
|
4202
|
+
case sn:
|
|
4186
4203
|
if (s.flags & 4096) {
|
|
4187
4204
|
if (p === 0)
|
|
4188
4205
|
break e;
|
|
@@ -4194,8 +4211,8 @@ function Jf(e, r) {
|
|
|
4194
4211
|
break e;
|
|
4195
4212
|
} else
|
|
4196
4213
|
s.head && (s.head.comment = null);
|
|
4197
|
-
s.mode =
|
|
4198
|
-
case
|
|
4214
|
+
s.mode = nn;
|
|
4215
|
+
case nn:
|
|
4199
4216
|
if (s.flags & 512) {
|
|
4200
4217
|
for (; d < 16; ) {
|
|
4201
4218
|
if (p === 0)
|
|
@@ -4210,19 +4227,19 @@ function Jf(e, r) {
|
|
|
4210
4227
|
}
|
|
4211
4228
|
s.head && (s.head.hcrc = s.flags >> 9 & 1, s.head.done = !0), e.adler = s.check = 0, s.mode = hr;
|
|
4212
4229
|
break;
|
|
4213
|
-
case
|
|
4230
|
+
case an:
|
|
4214
4231
|
for (; d < 32; ) {
|
|
4215
4232
|
if (p === 0)
|
|
4216
4233
|
break e;
|
|
4217
4234
|
p--, u += n[i++] << d, d += 8;
|
|
4218
4235
|
}
|
|
4219
|
-
e.adler = s.check =
|
|
4236
|
+
e.adler = s.check = wn(u), u = 0, d = 0, s.mode = rs;
|
|
4220
4237
|
case rs:
|
|
4221
4238
|
if (s.havedict === 0)
|
|
4222
|
-
return e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d,
|
|
4239
|
+
return e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, Vf;
|
|
4223
4240
|
e.adler = s.check = 1, s.mode = hr;
|
|
4224
4241
|
case hr:
|
|
4225
|
-
if (r ===
|
|
4242
|
+
if (r === Gf || r === Ft)
|
|
4226
4243
|
break e;
|
|
4227
4244
|
case xs:
|
|
4228
4245
|
if (s.last) {
|
|
@@ -4236,23 +4253,23 @@ function Jf(e, r) {
|
|
|
4236
4253
|
}
|
|
4237
4254
|
switch (s.last = u & 1, u >>>= 1, d -= 1, u & 3) {
|
|
4238
4255
|
case 0:
|
|
4239
|
-
s.mode =
|
|
4256
|
+
s.mode = on;
|
|
4240
4257
|
break;
|
|
4241
4258
|
case 1:
|
|
4242
|
-
if (
|
|
4259
|
+
if (il(s), s.mode = jt, r === Ft) {
|
|
4243
4260
|
u >>>= 2, d -= 2;
|
|
4244
4261
|
break e;
|
|
4245
4262
|
}
|
|
4246
4263
|
break;
|
|
4247
4264
|
case 2:
|
|
4248
|
-
s.mode =
|
|
4265
|
+
s.mode = fn;
|
|
4249
4266
|
break;
|
|
4250
4267
|
case 3:
|
|
4251
4268
|
e.msg = "invalid block type", s.mode = we;
|
|
4252
4269
|
}
|
|
4253
4270
|
u >>>= 2, d -= 2;
|
|
4254
4271
|
break;
|
|
4255
|
-
case
|
|
4272
|
+
case on:
|
|
4256
4273
|
for (u >>>= d & 7, d -= d & 7; d < 32; ) {
|
|
4257
4274
|
if (p === 0)
|
|
4258
4275
|
break e;
|
|
@@ -4265,8 +4282,8 @@ function Jf(e, r) {
|
|
|
4265
4282
|
if (s.length = u & 65535, u = 0, d = 0, s.mode = Ls, r === Ft)
|
|
4266
4283
|
break e;
|
|
4267
4284
|
case Ls:
|
|
4268
|
-
s.mode =
|
|
4269
|
-
case
|
|
4285
|
+
s.mode = pn;
|
|
4286
|
+
case pn:
|
|
4270
4287
|
if (w = s.length, w) {
|
|
4271
4288
|
if (w > p && (w = p), w > y && (w = y), w === 0)
|
|
4272
4289
|
break e;
|
|
@@ -4275,7 +4292,7 @@ function Jf(e, r) {
|
|
|
4275
4292
|
}
|
|
4276
4293
|
s.mode = hr;
|
|
4277
4294
|
break;
|
|
4278
|
-
case
|
|
4295
|
+
case fn:
|
|
4279
4296
|
for (; d < 14; ) {
|
|
4280
4297
|
if (p === 0)
|
|
4281
4298
|
break e;
|
|
@@ -4285,8 +4302,8 @@ function Jf(e, r) {
|
|
|
4285
4302
|
e.msg = "too many length or distance symbols", s.mode = we;
|
|
4286
4303
|
break;
|
|
4287
4304
|
}
|
|
4288
|
-
s.have = 0, s.mode =
|
|
4289
|
-
case
|
|
4305
|
+
s.have = 0, s.mode = ln;
|
|
4306
|
+
case ln:
|
|
4290
4307
|
for (; s.have < s.ncode; ) {
|
|
4291
4308
|
for (; d < 3; ) {
|
|
4292
4309
|
if (p === 0)
|
|
@@ -4297,12 +4314,12 @@ function Jf(e, r) {
|
|
|
4297
4314
|
}
|
|
4298
4315
|
for (; s.have < 19; )
|
|
4299
4316
|
s.lens[F[s.have++]] = 0;
|
|
4300
|
-
if (s.lencode = s.lendyn, s.lenbits = 7, k = { bits: s.lenbits }, x = mt(
|
|
4317
|
+
if (s.lencode = s.lendyn, s.lenbits = 7, k = { bits: s.lenbits }, x = mt(zf, s.lens, 0, 19, s.lencode, 0, s.work, k), s.lenbits = k.bits, x) {
|
|
4301
4318
|
e.msg = "invalid code lengths set", s.mode = we;
|
|
4302
4319
|
break;
|
|
4303
4320
|
}
|
|
4304
|
-
s.have = 0, s.mode =
|
|
4305
|
-
case
|
|
4321
|
+
s.have = 0, s.mode = un;
|
|
4322
|
+
case un:
|
|
4306
4323
|
for (; s.have < s.nlen + s.ndist; ) {
|
|
4307
4324
|
for (; N = s.lencode[u & (1 << s.lenbits) - 1], j = N >>> 24, q = N >>> 16 & 255, $ = N & 65535, !(j <= d); ) {
|
|
4308
4325
|
if (p === 0)
|
|
@@ -4352,11 +4369,11 @@ function Jf(e, r) {
|
|
|
4352
4369
|
e.msg = "invalid code -- missing end-of-block", s.mode = we;
|
|
4353
4370
|
break;
|
|
4354
4371
|
}
|
|
4355
|
-
if (s.lenbits = 9, k = { bits: s.lenbits }, x = mt(
|
|
4372
|
+
if (s.lenbits = 9, k = { bits: s.lenbits }, x = mt(Pa, s.lens, 0, s.nlen, s.lencode, 0, s.work, k), s.lenbits = k.bits, x) {
|
|
4356
4373
|
e.msg = "invalid literal/lengths set", s.mode = we;
|
|
4357
4374
|
break;
|
|
4358
4375
|
}
|
|
4359
|
-
if (s.distbits = 6, s.distcode = s.distdyn, k = { bits: s.distbits }, x = mt(
|
|
4376
|
+
if (s.distbits = 6, s.distcode = s.distdyn, k = { bits: s.distbits }, x = mt(Ea, s.lens, s.nlen, s.ndist, s.distcode, 0, s.work, k), s.distbits = k.bits, x) {
|
|
4360
4377
|
e.msg = "invalid distances set", s.mode = we;
|
|
4361
4378
|
break;
|
|
4362
4379
|
}
|
|
@@ -4366,7 +4383,7 @@ function Jf(e, r) {
|
|
|
4366
4383
|
s.mode = Nt;
|
|
4367
4384
|
case Nt:
|
|
4368
4385
|
if (p >= 6 && y >= 258) {
|
|
4369
|
-
e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d,
|
|
4386
|
+
e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, Kf(e, b), t = e.next_out, o = e.output, y = e.avail_out, i = e.next_in, n = e.input, p = e.avail_in, u = s.hold, d = s.bits, s.mode === hr && (s.back = -1);
|
|
4370
4387
|
break;
|
|
4371
4388
|
}
|
|
4372
4389
|
for (s.back = 0; N = s.lencode[u & (1 << s.lenbits) - 1], j = N >>> 24, q = N >>> 16 & 255, $ = N & 65535, !(j <= d); ) {
|
|
@@ -4383,7 +4400,7 @@ function Jf(e, r) {
|
|
|
4383
4400
|
u >>>= W, d -= W, s.back += W;
|
|
4384
4401
|
}
|
|
4385
4402
|
if (u >>>= j, d -= j, s.back += j, s.length = $, q === 0) {
|
|
4386
|
-
s.mode =
|
|
4403
|
+
s.mode = mn;
|
|
4387
4404
|
break;
|
|
4388
4405
|
}
|
|
4389
4406
|
if (q & 32) {
|
|
@@ -4394,8 +4411,8 @@ function Jf(e, r) {
|
|
|
4394
4411
|
e.msg = "invalid literal/length code", s.mode = we;
|
|
4395
4412
|
break;
|
|
4396
4413
|
}
|
|
4397
|
-
s.extra = q & 15, s.mode =
|
|
4398
|
-
case
|
|
4414
|
+
s.extra = q & 15, s.mode = cn;
|
|
4415
|
+
case cn:
|
|
4399
4416
|
if (s.extra) {
|
|
4400
4417
|
for (S = s.extra; d < S; ) {
|
|
4401
4418
|
if (p === 0)
|
|
@@ -4404,8 +4421,8 @@ function Jf(e, r) {
|
|
|
4404
4421
|
}
|
|
4405
4422
|
s.length += u & (1 << s.extra) - 1, u >>>= s.extra, d -= s.extra, s.back += s.extra;
|
|
4406
4423
|
}
|
|
4407
|
-
s.was = s.length, s.mode =
|
|
4408
|
-
case
|
|
4424
|
+
s.was = s.length, s.mode = dn;
|
|
4425
|
+
case dn:
|
|
4409
4426
|
for (; N = s.distcode[u & (1 << s.distbits) - 1], j = N >>> 24, q = N >>> 16 & 255, $ = N & 65535, !(j <= d); ) {
|
|
4410
4427
|
if (p === 0)
|
|
4411
4428
|
break e;
|
|
@@ -4423,8 +4440,8 @@ function Jf(e, r) {
|
|
|
4423
4440
|
e.msg = "invalid distance code", s.mode = we;
|
|
4424
4441
|
break;
|
|
4425
4442
|
}
|
|
4426
|
-
s.offset = $, s.extra = q & 15, s.mode =
|
|
4427
|
-
case
|
|
4443
|
+
s.offset = $, s.extra = q & 15, s.mode = hn;
|
|
4444
|
+
case hn:
|
|
4428
4445
|
if (s.extra) {
|
|
4429
4446
|
for (S = s.extra; d < S; ) {
|
|
4430
4447
|
if (p === 0)
|
|
@@ -4437,8 +4454,8 @@ function Jf(e, r) {
|
|
|
4437
4454
|
e.msg = "invalid distance too far back", s.mode = we;
|
|
4438
4455
|
break;
|
|
4439
4456
|
}
|
|
4440
|
-
s.mode =
|
|
4441
|
-
case
|
|
4457
|
+
s.mode = yn;
|
|
4458
|
+
case yn:
|
|
4442
4459
|
if (y === 0)
|
|
4443
4460
|
break e;
|
|
4444
4461
|
if (w = b - y, s.offset > w) {
|
|
@@ -4455,7 +4472,7 @@ function Jf(e, r) {
|
|
|
4455
4472
|
while (--w);
|
|
4456
4473
|
s.length === 0 && (s.mode = Nt);
|
|
4457
4474
|
break;
|
|
4458
|
-
case
|
|
4475
|
+
case mn:
|
|
4459
4476
|
if (y === 0)
|
|
4460
4477
|
break e;
|
|
4461
4478
|
o[t++] = s.length, y--, s.mode = Nt;
|
|
@@ -4468,14 +4485,14 @@ function Jf(e, r) {
|
|
|
4468
4485
|
p--, u |= n[i++] << d, d += 8;
|
|
4469
4486
|
}
|
|
4470
4487
|
if (b -= y, e.total_out += b, s.total += b, b && (e.adler = s.check = /*UPDATE(state.check, put - _out, _out);*/
|
|
4471
|
-
s.flags ? ar(s.check, o, b, t - b) : Xs(s.check, o, b, t - b)), b = y, (s.flags ? u :
|
|
4488
|
+
s.flags ? ar(s.check, o, b, t - b) : Xs(s.check, o, b, t - b)), b = y, (s.flags ? u : wn(u)) !== s.check) {
|
|
4472
4489
|
e.msg = "incorrect data check", s.mode = we;
|
|
4473
4490
|
break;
|
|
4474
4491
|
}
|
|
4475
4492
|
u = 0, d = 0;
|
|
4476
4493
|
}
|
|
4477
|
-
s.mode =
|
|
4478
|
-
case
|
|
4494
|
+
s.mode = _n;
|
|
4495
|
+
case _n:
|
|
4479
4496
|
if (s.wrap && s.flags) {
|
|
4480
4497
|
for (; d < 32; ) {
|
|
4481
4498
|
if (p === 0)
|
|
@@ -4488,47 +4505,47 @@ function Jf(e, r) {
|
|
|
4488
4505
|
}
|
|
4489
4506
|
u = 0, d = 0;
|
|
4490
4507
|
}
|
|
4491
|
-
s.mode =
|
|
4492
|
-
case
|
|
4493
|
-
x =
|
|
4508
|
+
s.mode = gn;
|
|
4509
|
+
case gn:
|
|
4510
|
+
x = Zf;
|
|
4494
4511
|
break e;
|
|
4495
4512
|
case we:
|
|
4496
|
-
x =
|
|
4513
|
+
x = ka;
|
|
4497
4514
|
break e;
|
|
4498
|
-
case
|
|
4499
|
-
return
|
|
4500
|
-
case
|
|
4515
|
+
case Ta:
|
|
4516
|
+
return Sa;
|
|
4517
|
+
case Xf:
|
|
4501
4518
|
default:
|
|
4502
4519
|
return Ze;
|
|
4503
4520
|
}
|
|
4504
|
-
return e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, (s.wsize || b !== e.avail_out && s.mode < we && (s.mode < Is || r !==
|
|
4505
|
-
s.flags ? ar(s.check, o, b, e.next_out - b) : Xs(s.check, o, b, e.next_out - b)), e.data_type = s.bits + (s.last ? 64 : 0) + (s.mode === hr ? 128 : 0) + (s.mode === jt || s.mode === Ls ? 256 : 0), (g === 0 && b === 0 || r ===
|
|
4521
|
+
return e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, (s.wsize || b !== e.avail_out && s.mode < we && (s.mode < Is || r !== Vi)) && Ia(e, e.output, e.next_out, b - e.avail_out), g -= e.avail_in, b -= e.avail_out, e.total_in += g, e.total_out += b, s.total += b, s.wrap && b && (e.adler = s.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
4522
|
+
s.flags ? ar(s.check, o, b, e.next_out - b) : Xs(s.check, o, b, e.next_out - b)), e.data_type = s.bits + (s.last ? 64 : 0) + (s.mode === hr ? 128 : 0) + (s.mode === jt || s.mode === Ls ? 256 : 0), (g === 0 && b === 0 || r === Vi) && x === Nr && (x = Yf), x;
|
|
4506
4523
|
}
|
|
4507
|
-
function
|
|
4524
|
+
function al(e) {
|
|
4508
4525
|
if (!e || !e.state)
|
|
4509
4526
|
return Ze;
|
|
4510
4527
|
var r = e.state;
|
|
4511
4528
|
return r.window && (r.window = null), e.state = null, Nr;
|
|
4512
4529
|
}
|
|
4513
|
-
function
|
|
4530
|
+
function ol(e, r) {
|
|
4514
4531
|
var s;
|
|
4515
4532
|
return !e || !e.state || (s = e.state, !(s.wrap & 2)) ? Ze : (s.head = r, r.done = !1, Nr);
|
|
4516
4533
|
}
|
|
4517
|
-
function
|
|
4534
|
+
function pl(e, r) {
|
|
4518
4535
|
var s = r.length, n, o, i;
|
|
4519
|
-
return !e || !e.state || (n = e.state, n.wrap !== 0 && n.mode !== rs) ? Ze : n.mode === rs && (o = 1, o = Xs(o, r, s, 0), o !== n.check) ?
|
|
4520
|
-
}
|
|
4521
|
-
rr.inflateReset =
|
|
4522
|
-
rr.inflateReset2 =
|
|
4523
|
-
rr.inflateResetKeep =
|
|
4524
|
-
rr.inflateInit =
|
|
4525
|
-
rr.inflateInit2 =
|
|
4526
|
-
rr.inflate =
|
|
4527
|
-
rr.inflateEnd =
|
|
4528
|
-
rr.inflateGetHeader =
|
|
4529
|
-
rr.inflateSetDictionary =
|
|
4536
|
+
return !e || !e.state || (n = e.state, n.wrap !== 0 && n.mode !== rs) ? Ze : n.mode === rs && (o = 1, o = Xs(o, r, s, 0), o !== n.check) ? ka : (i = Ia(e, r, s, s), i ? (n.mode = Ta, Sa) : (n.havedict = 1, Nr));
|
|
4537
|
+
}
|
|
4538
|
+
rr.inflateReset = Oa;
|
|
4539
|
+
rr.inflateReset2 = xa;
|
|
4540
|
+
rr.inflateResetKeep = Ca;
|
|
4541
|
+
rr.inflateInit = sl;
|
|
4542
|
+
rr.inflateInit2 = La;
|
|
4543
|
+
rr.inflate = nl;
|
|
4544
|
+
rr.inflateEnd = al;
|
|
4545
|
+
rr.inflateGetHeader = ol;
|
|
4546
|
+
rr.inflateSetDictionary = pl;
|
|
4530
4547
|
rr.inflateInfo = "pako inflate (from Nodeca project)";
|
|
4531
|
-
var
|
|
4548
|
+
var Ha = {
|
|
4532
4549
|
/* Allowed flush values; see deflate() and inflate() below for details */
|
|
4533
4550
|
Z_NO_FLUSH: 0,
|
|
4534
4551
|
Z_PARTIAL_FLUSH: 1,
|
|
@@ -4568,10 +4585,10 @@ var Ia = {
|
|
|
4568
4585
|
Z_DEFLATED: 8
|
|
4569
4586
|
//Z_NULL: null // Use -1 or null inline, depending on var type
|
|
4570
4587
|
};
|
|
4571
|
-
function
|
|
4588
|
+
function fl() {
|
|
4572
4589
|
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;
|
|
4573
4590
|
}
|
|
4574
|
-
var
|
|
4591
|
+
var ll = fl, st = rr, _t = wr, Gt = qr, Ee = Ha, Qs = hi, ul = ba, cl = ll, $a = Object.prototype.toString;
|
|
4575
4592
|
function Wr(e) {
|
|
4576
4593
|
if (!(this instanceof Wr))
|
|
4577
4594
|
return new Wr(e);
|
|
@@ -4581,21 +4598,21 @@ function Wr(e) {
|
|
|
4581
4598
|
to: ""
|
|
4582
4599
|
}, e || {});
|
|
4583
4600
|
var r = this.options;
|
|
4584
|
-
r.raw && r.windowBits >= 0 && r.windowBits < 16 && (r.windowBits = -r.windowBits, r.windowBits === 0 && (r.windowBits = -15)), r.windowBits >= 0 && r.windowBits < 16 && !(e && e.windowBits) && (r.windowBits += 32), r.windowBits > 15 && r.windowBits < 48 && (r.windowBits & 15 || (r.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new
|
|
4601
|
+
r.raw && r.windowBits >= 0 && r.windowBits < 16 && (r.windowBits = -r.windowBits, r.windowBits === 0 && (r.windowBits = -15)), r.windowBits >= 0 && r.windowBits < 16 && !(e && e.windowBits) && (r.windowBits += 32), r.windowBits > 15 && r.windowBits < 48 && (r.windowBits & 15 || (r.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new ul(), this.strm.avail_out = 0;
|
|
4585
4602
|
var s = st.inflateInit2(
|
|
4586
4603
|
this.strm,
|
|
4587
4604
|
r.windowBits
|
|
4588
4605
|
);
|
|
4589
4606
|
if (s !== Ee.Z_OK)
|
|
4590
4607
|
throw new Error(Qs[s]);
|
|
4591
|
-
if (this.header = new
|
|
4608
|
+
if (this.header = new cl(), st.inflateGetHeader(this.strm, this.header), r.dictionary && (typeof r.dictionary == "string" ? r.dictionary = Gt.string2buf(r.dictionary) : $a.call(r.dictionary) === "[object ArrayBuffer]" && (r.dictionary = new Uint8Array(r.dictionary)), r.raw && (s = st.inflateSetDictionary(this.strm, r.dictionary), s !== Ee.Z_OK)))
|
|
4592
4609
|
throw new Error(Qs[s]);
|
|
4593
4610
|
}
|
|
4594
4611
|
Wr.prototype.push = function(e, r) {
|
|
4595
4612
|
var s = this.strm, n = this.options.chunkSize, o = this.options.dictionary, i, t, p, y, u, d = !1;
|
|
4596
4613
|
if (this.ended)
|
|
4597
4614
|
return !1;
|
|
4598
|
-
t = r === ~~r ? r : r === !0 ? Ee.Z_FINISH : Ee.Z_NO_FLUSH, typeof e == "string" ? s.input = Gt.binstring2buf(e) :
|
|
4615
|
+
t = r === ~~r ? r : r === !0 ? Ee.Z_FINISH : Ee.Z_NO_FLUSH, typeof e == "string" ? s.input = Gt.binstring2buf(e) : $a.call(e) === "[object ArrayBuffer]" ? s.input = new Uint8Array(e) : s.input = e, s.next_in = 0, s.avail_in = s.input.length;
|
|
4599
4616
|
do {
|
|
4600
4617
|
if (s.avail_out === 0 && (s.output = new _t.Buf8(n), s.next_out = 0, s.avail_out = n), i = st.inflate(s, Ee.Z_NO_FLUSH), i === Ee.Z_NEED_DICT && o && (i = st.inflateSetDictionary(this.strm, o)), i === Ee.Z_BUF_ERROR && d === !0 && (i = Ee.Z_OK, d = !1), i !== Ee.Z_STREAM_END && i !== Ee.Z_OK)
|
|
4601
4618
|
return this.onEnd(i), this.ended = !0, !1;
|
|
@@ -4609,25 +4626,25 @@ Wr.prototype.onData = function(e) {
|
|
|
4609
4626
|
Wr.prototype.onEnd = function(e) {
|
|
4610
4627
|
e === Ee.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = _t.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
4611
4628
|
};
|
|
4612
|
-
function
|
|
4629
|
+
function mi(e, r) {
|
|
4613
4630
|
var s = new Wr(r);
|
|
4614
4631
|
if (s.push(e, !0), s.err)
|
|
4615
4632
|
throw s.msg || Qs[s.err];
|
|
4616
4633
|
return s.result;
|
|
4617
4634
|
}
|
|
4618
|
-
function
|
|
4619
|
-
return r = r || {}, r.raw = !0,
|
|
4635
|
+
function dl(e, r) {
|
|
4636
|
+
return r = r || {}, r.raw = !0, mi(e, r);
|
|
4620
4637
|
}
|
|
4621
4638
|
xt.Inflate = Wr;
|
|
4622
|
-
xt.inflate =
|
|
4623
|
-
xt.inflateRaw =
|
|
4624
|
-
xt.ungzip =
|
|
4625
|
-
var
|
|
4626
|
-
|
|
4627
|
-
var
|
|
4628
|
-
const
|
|
4629
|
-
async function
|
|
4630
|
-
const s = new
|
|
4639
|
+
xt.inflate = mi;
|
|
4640
|
+
xt.inflateRaw = dl;
|
|
4641
|
+
xt.ungzip = mi;
|
|
4642
|
+
var hl = wr.assign, yl = Tt, ml = xt, _l = Ha, Ra = {};
|
|
4643
|
+
hl(Ra, yl, ml, _l);
|
|
4644
|
+
var gl = Ra;
|
|
4645
|
+
const Da = /* @__PURE__ */ ai(gl);
|
|
4646
|
+
async function wl(e, r) {
|
|
4647
|
+
const s = new Kn(e);
|
|
4631
4648
|
let n = await s.read(4);
|
|
4632
4649
|
if (n = n.toString("utf8"), n !== "PACK")
|
|
4633
4650
|
throw new be(`Invalid PACK header '${n}'`);
|
|
@@ -4637,7 +4654,7 @@ async function dl(e, r) {
|
|
|
4637
4654
|
let i = await s.read(4);
|
|
4638
4655
|
if (i = i.readUInt32BE(0), !(i < 1))
|
|
4639
4656
|
for (; !s.eof() && i--; ) {
|
|
4640
|
-
const t = s.tell(), { type: p, length: y, ofs: u, reference: d } = await
|
|
4657
|
+
const t = s.tell(), { type: p, length: y, ofs: u, reference: d } = await bl(s), g = new Da.Inflate();
|
|
4641
4658
|
for (; !g.result; ) {
|
|
4642
4659
|
const b = await s.chunk();
|
|
4643
4660
|
if (!b)
|
|
@@ -4664,7 +4681,7 @@ async function dl(e, r) {
|
|
|
4664
4681
|
}
|
|
4665
4682
|
}
|
|
4666
4683
|
}
|
|
4667
|
-
async function
|
|
4684
|
+
async function bl(e) {
|
|
4668
4685
|
let r = await e.byte();
|
|
4669
4686
|
const s = r >> 4 & 7;
|
|
4670
4687
|
let n = r & 15;
|
|
@@ -4686,11 +4703,11 @@ async function hl(e) {
|
|
|
4686
4703
|
}
|
|
4687
4704
|
return s === 7 && (i = await e.read(20)), { type: s, length: n, ofs: o, reference: i };
|
|
4688
4705
|
}
|
|
4689
|
-
let
|
|
4690
|
-
async function
|
|
4691
|
-
return
|
|
4706
|
+
let vl = !1;
|
|
4707
|
+
async function Pl(e) {
|
|
4708
|
+
return vl ? El(e) : Da.inflate(e);
|
|
4692
4709
|
}
|
|
4693
|
-
async function
|
|
4710
|
+
async function El(e) {
|
|
4694
4711
|
const r = new DecompressionStream("deflate"), s = new Blob([e]).stream().pipeThrough(r);
|
|
4695
4712
|
return new Uint8Array(await new Response(s).arrayBuffer());
|
|
4696
4713
|
}
|
|
@@ -4712,16 +4729,16 @@ typeof Object.create == "function" ? Js.exports = function(r, s) {
|
|
|
4712
4729
|
n.prototype = s.prototype, r.prototype = new n(), r.prototype.constructor = r;
|
|
4713
4730
|
}
|
|
4714
4731
|
};
|
|
4715
|
-
var
|
|
4716
|
-
ds.byteLength =
|
|
4717
|
-
ds.toByteArray =
|
|
4718
|
-
ds.fromByteArray =
|
|
4719
|
-
var lr = [], Ke = [],
|
|
4720
|
-
for (var Xr = 0,
|
|
4732
|
+
var kl = Js.exports, ei = { exports: {} }, gr = {}, ds = {};
|
|
4733
|
+
ds.byteLength = Tl;
|
|
4734
|
+
ds.toByteArray = Ol;
|
|
4735
|
+
ds.fromByteArray = Il;
|
|
4736
|
+
var lr = [], Ke = [], Sl = typeof Uint8Array < "u" ? Uint8Array : Array, Rs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4737
|
+
for (var Xr = 0, Al = Rs.length; Xr < Al; ++Xr)
|
|
4721
4738
|
lr[Xr] = Rs[Xr], Ke[Rs.charCodeAt(Xr)] = Xr;
|
|
4722
4739
|
Ke["-".charCodeAt(0)] = 62;
|
|
4723
4740
|
Ke["_".charCodeAt(0)] = 63;
|
|
4724
|
-
function
|
|
4741
|
+
function Ba(e) {
|
|
4725
4742
|
var r = e.length;
|
|
4726
4743
|
if (r % 4 > 0)
|
|
4727
4744
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -4730,39 +4747,39 @@ function Da(e) {
|
|
|
4730
4747
|
var n = s === r ? 0 : 4 - s % 4;
|
|
4731
4748
|
return [s, n];
|
|
4732
4749
|
}
|
|
4733
|
-
function
|
|
4734
|
-
var r =
|
|
4750
|
+
function Tl(e) {
|
|
4751
|
+
var r = Ba(e), s = r[0], n = r[1];
|
|
4735
4752
|
return (s + n) * 3 / 4 - n;
|
|
4736
4753
|
}
|
|
4737
|
-
function
|
|
4754
|
+
function Cl(e, r, s) {
|
|
4738
4755
|
return (r + s) * 3 / 4 - s;
|
|
4739
4756
|
}
|
|
4740
|
-
function
|
|
4741
|
-
var r, s =
|
|
4757
|
+
function Ol(e) {
|
|
4758
|
+
var r, s = Ba(e), n = s[0], o = s[1], i = new Sl(Cl(e, n, o)), t = 0, p = o > 0 ? n - 4 : n, y;
|
|
4742
4759
|
for (y = 0; y < p; y += 4)
|
|
4743
4760
|
r = Ke[e.charCodeAt(y)] << 18 | Ke[e.charCodeAt(y + 1)] << 12 | Ke[e.charCodeAt(y + 2)] << 6 | Ke[e.charCodeAt(y + 3)], i[t++] = r >> 16 & 255, i[t++] = r >> 8 & 255, i[t++] = r & 255;
|
|
4744
4761
|
return o === 2 && (r = Ke[e.charCodeAt(y)] << 2 | Ke[e.charCodeAt(y + 1)] >> 4, i[t++] = r & 255), o === 1 && (r = Ke[e.charCodeAt(y)] << 10 | Ke[e.charCodeAt(y + 1)] << 4 | Ke[e.charCodeAt(y + 2)] >> 2, i[t++] = r >> 8 & 255, i[t++] = r & 255), i;
|
|
4745
4762
|
}
|
|
4746
|
-
function
|
|
4763
|
+
function xl(e) {
|
|
4747
4764
|
return lr[e >> 18 & 63] + lr[e >> 12 & 63] + lr[e >> 6 & 63] + lr[e & 63];
|
|
4748
4765
|
}
|
|
4749
|
-
function
|
|
4766
|
+
function Ll(e, r, s) {
|
|
4750
4767
|
for (var n, o = [], i = r; i < s; i += 3)
|
|
4751
|
-
n = (e[i] << 16 & 16711680) + (e[i + 1] << 8 & 65280) + (e[i + 2] & 255), o.push(
|
|
4768
|
+
n = (e[i] << 16 & 16711680) + (e[i + 1] << 8 & 65280) + (e[i + 2] & 255), o.push(xl(n));
|
|
4752
4769
|
return o.join("");
|
|
4753
4770
|
}
|
|
4754
|
-
function
|
|
4771
|
+
function Il(e) {
|
|
4755
4772
|
for (var r, s = e.length, n = s % 3, o = [], i = 16383, t = 0, p = s - n; t < p; t += i)
|
|
4756
|
-
o.push(
|
|
4773
|
+
o.push(Ll(e, t, t + i > p ? p : t + i));
|
|
4757
4774
|
return n === 1 ? (r = e[s - 1], o.push(
|
|
4758
4775
|
lr[r >> 2] + lr[r << 4 & 63] + "=="
|
|
4759
4776
|
)) : n === 2 && (r = (e[s - 2] << 8) + e[s - 1], o.push(
|
|
4760
4777
|
lr[r >> 10] + lr[r >> 4 & 63] + lr[r << 2 & 63] + "="
|
|
4761
4778
|
)), o.join("");
|
|
4762
4779
|
}
|
|
4763
|
-
var
|
|
4780
|
+
var _i = {};
|
|
4764
4781
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4765
|
-
|
|
4782
|
+
_i.read = function(e, r, s, n, o) {
|
|
4766
4783
|
var i, t, p = o * 8 - n - 1, y = (1 << p) - 1, u = y >> 1, d = -7, g = s ? o - 1 : 0, b = s ? -1 : 1, w = e[r + g];
|
|
4767
4784
|
for (g += b, i = w & (1 << -d) - 1, w >>= -d, d += p; d > 0; i = i * 256 + e[r + g], g += b, d -= 8)
|
|
4768
4785
|
;
|
|
@@ -4777,7 +4794,7 @@ mi.read = function(e, r, s, n, o) {
|
|
|
4777
4794
|
}
|
|
4778
4795
|
return (w ? -1 : 1) * t * Math.pow(2, i - n);
|
|
4779
4796
|
};
|
|
4780
|
-
|
|
4797
|
+
_i.write = function(e, r, s, n, o, i) {
|
|
4781
4798
|
var t, p, y, u = i * 8 - o - 1, d = (1 << u) - 1, g = d >> 1, b = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, w = n ? 0 : i - 1, H = n ? 1 : -1, P = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
|
|
4782
4799
|
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (p = isNaN(r) ? 1 : 0, t = d) : (t = Math.floor(Math.log(r) / Math.LN2), r * (y = Math.pow(2, -t)) < 1 && (t--, y *= 2), t + g >= 1 ? r += b / y : r += b * Math.pow(2, 1 - g), r * y >= 2 && (t++, y /= 2), t + g >= d ? (p = 0, t = d) : t + g >= 1 ? (p = (r * y - 1) * Math.pow(2, o), t = t + g) : (p = r * Math.pow(2, g - 1) * Math.pow(2, o), t = 0)); o >= 8; e[s + w] = p & 255, w += H, p /= 256, o -= 8)
|
|
4783
4800
|
;
|
|
@@ -4792,7 +4809,7 @@ mi.write = function(e, r, s, n, o, i) {
|
|
|
4792
4809
|
* @license MIT
|
|
4793
4810
|
*/
|
|
4794
4811
|
(function(e) {
|
|
4795
|
-
const r = ds, s =
|
|
4812
|
+
const r = ds, s = _i, n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
4796
4813
|
e.Buffer = p, e.SlowBuffer = q, e.INSPECT_MAX_BYTES = 50;
|
|
4797
4814
|
const o = 2147483647;
|
|
4798
4815
|
e.kMaxLength = o, p.TYPED_ARRAY_SUPPORT = i(), !p.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -5791,12 +5808,12 @@ mi.write = function(e, r, s, n, o, i) {
|
|
|
5791
5808
|
return s.SlowBuffer(t);
|
|
5792
5809
|
};
|
|
5793
5810
|
})(ei, ei.exports);
|
|
5794
|
-
var
|
|
5811
|
+
var Fa = ei.exports, ja = Fa.Buffer;
|
|
5795
5812
|
function hs(e, r) {
|
|
5796
|
-
this._block =
|
|
5813
|
+
this._block = ja.alloc(e), this._finalSize = r, this._blockSize = e, this._len = 0;
|
|
5797
5814
|
}
|
|
5798
5815
|
hs.prototype.update = function(e, r) {
|
|
5799
|
-
typeof e == "string" && (r = r || "utf8", e =
|
|
5816
|
+
typeof e == "string" && (r = r || "utf8", e = ja.from(e, r));
|
|
5800
5817
|
for (var s = this._block, n = this._blockSize, o = e.length, i = this._len, t = 0; t < o; ) {
|
|
5801
5818
|
for (var p = i % n, y = Math.min(o - t, n - p), u = 0; u < y; u++)
|
|
5802
5819
|
s[p + u] = e[t + u];
|
|
@@ -5821,74 +5838,74 @@ hs.prototype.digest = function(e) {
|
|
|
5821
5838
|
hs.prototype._update = function() {
|
|
5822
5839
|
throw new Error("_update must be implemented by subclass");
|
|
5823
5840
|
};
|
|
5824
|
-
var
|
|
5841
|
+
var Hl = hs, $l = kl, Na = Hl, Rl = Fa.Buffer, Dl = [
|
|
5825
5842
|
1518500249,
|
|
5826
5843
|
1859775393,
|
|
5827
5844
|
-1894007588,
|
|
5828
5845
|
-899497514
|
|
5829
|
-
],
|
|
5846
|
+
], Bl = new Array(80);
|
|
5830
5847
|
function Lt() {
|
|
5831
|
-
this.init(), this._w =
|
|
5848
|
+
this.init(), this._w = Bl, Na.call(this, 64, 56);
|
|
5832
5849
|
}
|
|
5833
|
-
|
|
5850
|
+
$l(Lt, Na);
|
|
5834
5851
|
Lt.prototype.init = function() {
|
|
5835
5852
|
return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
|
|
5836
5853
|
};
|
|
5837
|
-
function
|
|
5854
|
+
function Fl(e) {
|
|
5838
5855
|
return e << 1 | e >>> 31;
|
|
5839
5856
|
}
|
|
5840
|
-
function
|
|
5857
|
+
function jl(e) {
|
|
5841
5858
|
return e << 5 | e >>> 27;
|
|
5842
5859
|
}
|
|
5843
|
-
function
|
|
5860
|
+
function Nl(e) {
|
|
5844
5861
|
return e << 30 | e >>> 2;
|
|
5845
5862
|
}
|
|
5846
|
-
function
|
|
5863
|
+
function Wl(e, r, s, n) {
|
|
5847
5864
|
return e === 0 ? r & s | ~r & n : e === 2 ? r & s | r & n | s & n : r ^ s ^ n;
|
|
5848
5865
|
}
|
|
5849
5866
|
Lt.prototype._update = function(e) {
|
|
5850
5867
|
for (var r = this._w, s = this._a | 0, n = this._b | 0, o = this._c | 0, i = this._d | 0, t = this._e | 0, p = 0; p < 16; ++p)
|
|
5851
5868
|
r[p] = e.readInt32BE(p * 4);
|
|
5852
5869
|
for (; p < 80; ++p)
|
|
5853
|
-
r[p] =
|
|
5870
|
+
r[p] = Fl(r[p - 3] ^ r[p - 8] ^ r[p - 14] ^ r[p - 16]);
|
|
5854
5871
|
for (var y = 0; y < 80; ++y) {
|
|
5855
|
-
var u = ~~(y / 20), d =
|
|
5856
|
-
t = i, i = o, o =
|
|
5872
|
+
var u = ~~(y / 20), d = jl(s) + Wl(u, n, o, i) + t + r[y] + Dl[u] | 0;
|
|
5873
|
+
t = i, i = o, o = Nl(n), n = s, s = d;
|
|
5857
5874
|
}
|
|
5858
5875
|
this._a = s + this._a | 0, this._b = n + this._b | 0, this._c = o + this._c | 0, this._d = i + this._d | 0, this._e = t + this._e | 0;
|
|
5859
5876
|
};
|
|
5860
5877
|
Lt.prototype._hash = function() {
|
|
5861
|
-
var e =
|
|
5878
|
+
var e = Rl.allocUnsafe(20);
|
|
5862
5879
|
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;
|
|
5863
5880
|
};
|
|
5864
|
-
var
|
|
5865
|
-
const
|
|
5866
|
-
function
|
|
5881
|
+
var Ul = Lt;
|
|
5882
|
+
const ql = /* @__PURE__ */ ai(Ul);
|
|
5883
|
+
function Ml(e) {
|
|
5867
5884
|
let r = "";
|
|
5868
5885
|
for (const s of new Uint8Array(e))
|
|
5869
5886
|
s < 16 && (r += "0"), r += s.toString(16);
|
|
5870
5887
|
return r;
|
|
5871
5888
|
}
|
|
5872
5889
|
let Ds = null;
|
|
5873
|
-
async function
|
|
5874
|
-
return Ds === null && (Ds = await
|
|
5890
|
+
async function vn(e) {
|
|
5891
|
+
return Ds === null && (Ds = await zl()), Ds ? Wa(e) : Kl(e);
|
|
5875
5892
|
}
|
|
5876
|
-
function
|
|
5877
|
-
return new
|
|
5893
|
+
function Kl(e) {
|
|
5894
|
+
return new ql().update(e).digest("hex");
|
|
5878
5895
|
}
|
|
5879
|
-
async function
|
|
5896
|
+
async function Wa(e) {
|
|
5880
5897
|
const r = await crypto.subtle.digest("SHA-1", e);
|
|
5881
|
-
return
|
|
5898
|
+
return Ml(r);
|
|
5882
5899
|
}
|
|
5883
|
-
async function
|
|
5900
|
+
async function zl() {
|
|
5884
5901
|
try {
|
|
5885
|
-
if (await
|
|
5902
|
+
if (await Wa(new Uint8Array([])) === "da39a3ee5e6b4b0d3255bfef95601890afd80709")
|
|
5886
5903
|
return !0;
|
|
5887
5904
|
} catch {
|
|
5888
5905
|
}
|
|
5889
5906
|
return !1;
|
|
5890
5907
|
}
|
|
5891
|
-
function
|
|
5908
|
+
function Gl(e) {
|
|
5892
5909
|
const r = [];
|
|
5893
5910
|
let s = 0, n = 0;
|
|
5894
5911
|
do {
|
|
@@ -5898,7 +5915,7 @@ function Wl(e) {
|
|
|
5898
5915
|
} while (n);
|
|
5899
5916
|
return r.reduce((o, i) => o + 1 << 7 | i, -1);
|
|
5900
5917
|
}
|
|
5901
|
-
function
|
|
5918
|
+
function Zl(e, r) {
|
|
5902
5919
|
let s = r, n = 4, o = null;
|
|
5903
5920
|
do
|
|
5904
5921
|
o = e.readUInt8(), s |= (o & 127) << n, n += 7;
|
|
@@ -5951,7 +5968,7 @@ class kt {
|
|
|
5951
5968
|
7: "ref-delta"
|
|
5952
5969
|
}, i = {}, t = r.slice(-20).toString("hex"), p = [], y = {}, u = /* @__PURE__ */ new Map();
|
|
5953
5970
|
let d = null, g = null;
|
|
5954
|
-
await
|
|
5971
|
+
await wl([r], async ({ data: N, type: j, reference: q, offset: $, num: W }) => {
|
|
5955
5972
|
d === null && (d = W);
|
|
5956
5973
|
const O = Math.floor(
|
|
5957
5974
|
(d - W) * 100 / d
|
|
@@ -5973,7 +5990,7 @@ class kt {
|
|
|
5973
5990
|
});
|
|
5974
5991
|
const b = Object.keys(i).map(Number);
|
|
5975
5992
|
for (const [N, j] of b.entries()) {
|
|
5976
|
-
const q = N + 1 === b.length ? r.byteLength - 20 : b[N + 1], $ = i[j], W =
|
|
5993
|
+
const q = N + 1 === b.length ? r.byteLength - 20 : b[N + 1], $ = i[j], W = Ep.buf(r.slice(j, q)) >>> 0;
|
|
5977
5994
|
$.end = q, $.crc = W;
|
|
5978
5995
|
}
|
|
5979
5996
|
const w = new kt({
|
|
@@ -6001,7 +6018,7 @@ class kt {
|
|
|
6001
6018
|
w.readDepth = 0, w.externalReadDepth = 0;
|
|
6002
6019
|
const { type: $, object: W } = await w.readSlice({ start: N });
|
|
6003
6020
|
P[w.readDepth] += 1;
|
|
6004
|
-
const O = await
|
|
6021
|
+
const O = await vn(kp.wrap({ type: $, object: W }));
|
|
6005
6022
|
q.oid = O, p.push(O), u.set(O, N), y[O] = q.crc;
|
|
6006
6023
|
} catch {
|
|
6007
6024
|
continue;
|
|
@@ -6032,7 +6049,7 @@ class kt {
|
|
|
6032
6049
|
for (const u of this.hashes)
|
|
6033
6050
|
i.writeUInt32BE(this.offsets.get(u));
|
|
6034
6051
|
r.push(i.buffer), s(this.packfileSha, "hex");
|
|
6035
|
-
const t = Buffer.concat(r), p = await
|
|
6052
|
+
const t = Buffer.concat(r), p = await vn(t), y = Buffer.alloc(20);
|
|
6036
6053
|
return y.write(p, "hex"), Buffer.concat([t, y]);
|
|
6037
6054
|
}
|
|
6038
6055
|
async load({ pack: r }) {
|
|
@@ -6072,10 +6089,10 @@ class kt {
|
|
|
6072
6089
|
throw new be("Unrecognized type: 0b" + t.toString(2));
|
|
6073
6090
|
const y = i & 15;
|
|
6074
6091
|
let u = y;
|
|
6075
|
-
i & 128 && (u =
|
|
6092
|
+
i & 128 && (u = Zl(o, y));
|
|
6076
6093
|
let g = null, b = null;
|
|
6077
6094
|
if (p === "ofs_delta") {
|
|
6078
|
-
const H =
|
|
6095
|
+
const H = Gl(o), P = r - H;
|
|
6079
6096
|
({ object: g, type: p } = await this.readSlice({ start: P }));
|
|
6080
6097
|
}
|
|
6081
6098
|
if (p === "ref_delta") {
|
|
@@ -6083,11 +6100,11 @@ class kt {
|
|
|
6083
6100
|
({ object: g, type: p } = await this.read({ oid: H }));
|
|
6084
6101
|
}
|
|
6085
6102
|
const w = n.slice(o.tell());
|
|
6086
|
-
if (b = Buffer.from(await
|
|
6103
|
+
if (b = Buffer.from(await Pl(w)), b.byteLength !== u)
|
|
6087
6104
|
throw new be(
|
|
6088
6105
|
`Packfile told us object would have length ${u} but it had length ${b.byteLength}`
|
|
6089
6106
|
);
|
|
6090
|
-
return g && (b = Buffer.from(
|
|
6107
|
+
return g && (b = Buffer.from(Sp(b, g))), this.readDepth > 3 && (this.offsetCache[r] = { type: p, object: b }), { type: p, format: "content", object: b };
|
|
6091
6108
|
}
|
|
6092
6109
|
}
|
|
6093
6110
|
class St extends it {
|
|
@@ -6113,8 +6130,8 @@ class ys extends it {
|
|
|
6113
6130
|
}
|
|
6114
6131
|
}
|
|
6115
6132
|
ys.code = "ObjectTypeError";
|
|
6116
|
-
async function
|
|
6117
|
-
const s =
|
|
6133
|
+
async function Ua(e, r) {
|
|
6134
|
+
const s = Mn(e);
|
|
6118
6135
|
for (; ; ) {
|
|
6119
6136
|
const { value: n, done: o } = await s.next();
|
|
6120
6137
|
if (n && await r(n), o)
|
|
@@ -6125,7 +6142,7 @@ async function Wa(e, r) {
|
|
|
6125
6142
|
async function At(e) {
|
|
6126
6143
|
let r = 0;
|
|
6127
6144
|
const s = [];
|
|
6128
|
-
await
|
|
6145
|
+
await Ua(e, (i) => {
|
|
6129
6146
|
s.push(i), r += i.byteLength;
|
|
6130
6147
|
});
|
|
6131
6148
|
const n = new Uint8Array(r);
|
|
@@ -6170,7 +6187,7 @@ class Bs {
|
|
|
6170
6187
|
});
|
|
6171
6188
|
}
|
|
6172
6189
|
}
|
|
6173
|
-
class
|
|
6190
|
+
class Vl {
|
|
6174
6191
|
static demux(r) {
|
|
6175
6192
|
const s = Ce.streamReader(r), n = new Bs(), o = new Bs(), i = new Bs(), t = async function() {
|
|
6176
6193
|
const p = await s();
|
|
@@ -6273,11 +6290,11 @@ class ql {
|
|
|
6273
6290
|
// return output
|
|
6274
6291
|
// }
|
|
6275
6292
|
}
|
|
6276
|
-
async function
|
|
6277
|
-
const { packetlines: r, packfile: s, progress: n } =
|
|
6293
|
+
async function qa(e) {
|
|
6294
|
+
const { packetlines: r, packfile: s, progress: n } = Vl.demux(e), o = [], i = [], t = [];
|
|
6278
6295
|
let p = !1, y = !1;
|
|
6279
6296
|
return new Promise((u, d) => {
|
|
6280
|
-
|
|
6297
|
+
Ua(r, (g) => {
|
|
6281
6298
|
const b = g.toString("utf8").trim();
|
|
6282
6299
|
if (b.startsWith("shallow")) {
|
|
6283
6300
|
const w = b.slice(-41).trim();
|
|
@@ -6297,28 +6314,28 @@ async function Ua(e) {
|
|
|
6297
6314
|
});
|
|
6298
6315
|
}
|
|
6299
6316
|
typeof window < "u" && (window.Buffer = gr.Buffer);
|
|
6300
|
-
async function
|
|
6301
|
-
const o = (await
|
|
6317
|
+
async function Yl(e, r, s) {
|
|
6318
|
+
const o = (await Ka(e, r))[r], i = await za(e, o), t = await Jl(i, o, s), p = await eu(
|
|
6302
6319
|
e,
|
|
6303
6320
|
s.map((u) => t[u].oid)
|
|
6304
6321
|
), y = {};
|
|
6305
6322
|
return await Promise.all(
|
|
6306
6323
|
s.map(async (u) => {
|
|
6307
|
-
y[u] = await
|
|
6324
|
+
y[u] = await Ga(
|
|
6308
6325
|
p,
|
|
6309
6326
|
t[u].oid
|
|
6310
6327
|
);
|
|
6311
6328
|
})
|
|
6312
6329
|
), y;
|
|
6313
6330
|
}
|
|
6314
|
-
async function
|
|
6315
|
-
const s = await
|
|
6331
|
+
async function Xl(e, r) {
|
|
6332
|
+
const s = await Ka(e, r);
|
|
6316
6333
|
if (!(r in s))
|
|
6317
6334
|
throw new Error(`Branch ${r} not found`);
|
|
6318
|
-
const n = s[r], o = await
|
|
6319
|
-
return i != null && i.object ?
|
|
6335
|
+
const n = s[r], o = await za(e, n), i = await Ql(o, n);
|
|
6336
|
+
return i != null && i.object ? Ma(i) : [];
|
|
6320
6337
|
}
|
|
6321
|
-
function
|
|
6338
|
+
function Ma(e) {
|
|
6322
6339
|
return e.object.map((r) => {
|
|
6323
6340
|
if (r.type === "blob")
|
|
6324
6341
|
return {
|
|
@@ -6329,11 +6346,11 @@ function qa(e) {
|
|
|
6329
6346
|
return {
|
|
6330
6347
|
name: r.path,
|
|
6331
6348
|
type: "folder",
|
|
6332
|
-
children:
|
|
6349
|
+
children: Ma(r)
|
|
6333
6350
|
};
|
|
6334
6351
|
}).filter((r) => !!(r != null && r.name));
|
|
6335
6352
|
}
|
|
6336
|
-
async function
|
|
6353
|
+
async function Ka(e, r) {
|
|
6337
6354
|
const s = gr.Buffer.from(
|
|
6338
6355
|
await At([
|
|
6339
6356
|
Ce.encode(`command=ls-refs
|
|
@@ -6359,13 +6376,13 @@ async function Ma(e, r) {
|
|
|
6359
6376
|
},
|
|
6360
6377
|
body: s
|
|
6361
6378
|
}), o = {};
|
|
6362
|
-
for await (const i of
|
|
6379
|
+
for await (const i of ru(n)) {
|
|
6363
6380
|
const t = i.indexOf(" "), p = i.slice(0, t), y = i.slice(t + 1, i.length - 1);
|
|
6364
6381
|
o[y] = p;
|
|
6365
6382
|
}
|
|
6366
6383
|
return o;
|
|
6367
6384
|
}
|
|
6368
|
-
async function
|
|
6385
|
+
async function za(e, r) {
|
|
6369
6386
|
const s = gr.Buffer.from(
|
|
6370
6387
|
await At([
|
|
6371
6388
|
Ce.encode(
|
|
@@ -6392,7 +6409,7 @@ async function Ka(e, r) {
|
|
|
6392
6409
|
"Content-Length": `${s.length}`
|
|
6393
6410
|
},
|
|
6394
6411
|
body: s
|
|
6395
|
-
}), o =
|
|
6412
|
+
}), o = Za(n.body), i = await qa(o), t = gr.Buffer.from(await At(i.packfile)), p = await kt.fromPack({
|
|
6396
6413
|
pack: t
|
|
6397
6414
|
}), y = p.read;
|
|
6398
6415
|
return p.read = async function({ oid: u, ...d }) {
|
|
@@ -6400,7 +6417,7 @@ async function Ka(e, r) {
|
|
|
6400
6417
|
return g.oid = u, g;
|
|
6401
6418
|
}, p;
|
|
6402
6419
|
}
|
|
6403
|
-
async function
|
|
6420
|
+
async function Ql(e, r) {
|
|
6404
6421
|
const s = await e.read({
|
|
6405
6422
|
oid: r
|
|
6406
6423
|
});
|
|
@@ -6414,7 +6431,7 @@ async function zl(e, r) {
|
|
|
6414
6431
|
}
|
|
6415
6432
|
return n;
|
|
6416
6433
|
}
|
|
6417
|
-
async function
|
|
6434
|
+
async function Jl(e, r, s) {
|
|
6418
6435
|
const n = await e.read({
|
|
6419
6436
|
oid: r
|
|
6420
6437
|
});
|
|
@@ -6446,7 +6463,7 @@ async function Gl(e, r, s) {
|
|
|
6446
6463
|
}
|
|
6447
6464
|
return i;
|
|
6448
6465
|
}
|
|
6449
|
-
async function
|
|
6466
|
+
async function eu(e, r) {
|
|
6450
6467
|
const s = gr.Buffer.from(
|
|
6451
6468
|
await At([
|
|
6452
6469
|
...r.map(
|
|
@@ -6467,12 +6484,12 @@ async function Zl(e, r) {
|
|
|
6467
6484
|
"Content-Length": `${s.length}`
|
|
6468
6485
|
},
|
|
6469
6486
|
body: s
|
|
6470
|
-
}), o =
|
|
6487
|
+
}), o = Za(n.body), i = await qa(o), t = gr.Buffer.from(await At(i.packfile));
|
|
6471
6488
|
return await kt.fromPack({
|
|
6472
6489
|
pack: t
|
|
6473
6490
|
});
|
|
6474
6491
|
}
|
|
6475
|
-
async function
|
|
6492
|
+
async function Ga(e, r) {
|
|
6476
6493
|
const s = await e.read({ oid: r });
|
|
6477
6494
|
if (Rr(s), s.type === "blob")
|
|
6478
6495
|
return s.object;
|
|
@@ -6482,7 +6499,7 @@ async function za(e, r) {
|
|
|
6482
6499
|
const p = await e.read({ oid: i });
|
|
6483
6500
|
Rr(p), n[o] = p.object;
|
|
6484
6501
|
} else
|
|
6485
|
-
t === "tree" && (n[o] = await
|
|
6502
|
+
t === "tree" && (n[o] = await Ga(e, i));
|
|
6486
6503
|
return n;
|
|
6487
6504
|
}
|
|
6488
6505
|
function Rr(e) {
|
|
@@ -6492,7 +6509,7 @@ function Rr(e) {
|
|
|
6492
6509
|
e.object = Ne.from(e.object).parse();
|
|
6493
6510
|
break;
|
|
6494
6511
|
case "tree":
|
|
6495
|
-
e.object =
|
|
6512
|
+
e.object = fi.from(e.object).entries();
|
|
6496
6513
|
break;
|
|
6497
6514
|
case "blob":
|
|
6498
6515
|
e.object = new Uint8Array(e.object), e.format = "content";
|
|
@@ -6508,7 +6525,7 @@ function Rr(e) {
|
|
|
6508
6525
|
);
|
|
6509
6526
|
}
|
|
6510
6527
|
}
|
|
6511
|
-
async function*
|
|
6528
|
+
async function* ru(e) {
|
|
6512
6529
|
const r = await e.text();
|
|
6513
6530
|
let s = 0;
|
|
6514
6531
|
for (; s <= r.length; ) {
|
|
@@ -6518,7 +6535,7 @@ async function* Vl(e) {
|
|
|
6518
6535
|
yield r.substring(s + 4, s + n), s += n;
|
|
6519
6536
|
}
|
|
6520
6537
|
}
|
|
6521
|
-
function
|
|
6538
|
+
function Za(e) {
|
|
6522
6539
|
if (e[Symbol.asyncIterator])
|
|
6523
6540
|
return e;
|
|
6524
6541
|
const r = e.getReader();
|
|
@@ -6534,8 +6551,8 @@ function Ga(e) {
|
|
|
6534
6551
|
}
|
|
6535
6552
|
};
|
|
6536
6553
|
}
|
|
6537
|
-
function
|
|
6538
|
-
r =
|
|
6554
|
+
function tu(e, r) {
|
|
6555
|
+
r = si(r);
|
|
6539
6556
|
const s = ["", ".", "/"].includes(r);
|
|
6540
6557
|
let n = e;
|
|
6541
6558
|
if (s)
|
|
@@ -6565,7 +6582,7 @@ function Yl(e, r) {
|
|
|
6565
6582
|
}
|
|
6566
6583
|
return o;
|
|
6567
6584
|
}
|
|
6568
|
-
const
|
|
6585
|
+
const su = [
|
|
6569
6586
|
"vfs",
|
|
6570
6587
|
"literal",
|
|
6571
6588
|
"wordpress.org/themes",
|
|
@@ -6573,8 +6590,8 @@ const Xl = [
|
|
|
6573
6590
|
"url",
|
|
6574
6591
|
"git:directory"
|
|
6575
6592
|
];
|
|
6576
|
-
function
|
|
6577
|
-
return e && typeof e == "object" && typeof e.resource == "string" &&
|
|
6593
|
+
function iu(e) {
|
|
6594
|
+
return e && typeof e == "object" && typeof e.resource == "string" && su.includes(e.resource);
|
|
6578
6595
|
}
|
|
6579
6596
|
class br {
|
|
6580
6597
|
get progress() {
|
|
@@ -6605,35 +6622,35 @@ class br {
|
|
|
6605
6622
|
let i;
|
|
6606
6623
|
switch (r.resource) {
|
|
6607
6624
|
case "vfs":
|
|
6608
|
-
i = new
|
|
6625
|
+
i = new nu(r, n);
|
|
6609
6626
|
break;
|
|
6610
6627
|
case "literal":
|
|
6611
|
-
i = new
|
|
6628
|
+
i = new au(r, n);
|
|
6612
6629
|
break;
|
|
6613
6630
|
case "wordpress.org/themes":
|
|
6614
|
-
i = new
|
|
6631
|
+
i = new uu(r, n);
|
|
6615
6632
|
break;
|
|
6616
6633
|
case "wordpress.org/plugins":
|
|
6617
|
-
i = new
|
|
6634
|
+
i = new cu(r, n);
|
|
6618
6635
|
break;
|
|
6619
6636
|
case "url":
|
|
6620
|
-
i = new
|
|
6637
|
+
i = new pu(r, n);
|
|
6621
6638
|
break;
|
|
6622
6639
|
case "git:directory":
|
|
6623
|
-
i = new
|
|
6640
|
+
i = new fu(r, n, {
|
|
6624
6641
|
corsProxy: o
|
|
6625
6642
|
});
|
|
6626
6643
|
break;
|
|
6627
6644
|
case "literal:directory":
|
|
6628
|
-
i = new
|
|
6645
|
+
i = new lu(r, n);
|
|
6629
6646
|
break;
|
|
6630
6647
|
default:
|
|
6631
6648
|
throw new Error(`Invalid resource: ${r}`);
|
|
6632
6649
|
}
|
|
6633
|
-
return i = new
|
|
6650
|
+
return i = new du(i), s && (i = new hu(i, s)), i;
|
|
6634
6651
|
}
|
|
6635
6652
|
}
|
|
6636
|
-
class
|
|
6653
|
+
class Va extends br {
|
|
6637
6654
|
constructor(r) {
|
|
6638
6655
|
super(), this.resource = r;
|
|
6639
6656
|
}
|
|
@@ -6658,7 +6675,7 @@ class Za extends br {
|
|
|
6658
6675
|
this.resource.setPlayground(r);
|
|
6659
6676
|
}
|
|
6660
6677
|
}
|
|
6661
|
-
class
|
|
6678
|
+
class nu extends br {
|
|
6662
6679
|
/**
|
|
6663
6680
|
* Creates a new instance of `VFSResource`.
|
|
6664
6681
|
* @param playground The playground client.
|
|
@@ -6681,7 +6698,7 @@ class Jl extends br {
|
|
|
6681
6698
|
return this.resource.path.split("/").pop() || "";
|
|
6682
6699
|
}
|
|
6683
6700
|
}
|
|
6684
|
-
class
|
|
6701
|
+
class au extends br {
|
|
6685
6702
|
/**
|
|
6686
6703
|
* Creates a new instance of `LiteralResource`.
|
|
6687
6704
|
* @param resource The literal reference.
|
|
@@ -6700,7 +6717,7 @@ class eu extends br {
|
|
|
6700
6717
|
return this.resource.name;
|
|
6701
6718
|
}
|
|
6702
6719
|
}
|
|
6703
|
-
class
|
|
6720
|
+
class gi extends br {
|
|
6704
6721
|
/**
|
|
6705
6722
|
* Creates a new instance of `FetchResource`.
|
|
6706
6723
|
* @param progress The progress tracker.
|
|
@@ -6717,9 +6734,9 @@ class _i extends br {
|
|
|
6717
6734
|
let o = await fetch(r);
|
|
6718
6735
|
if (!o.ok)
|
|
6719
6736
|
throw new Error(`Could not download "${r}"`);
|
|
6720
|
-
if (o = await
|
|
6737
|
+
if (o = await pp(
|
|
6721
6738
|
o,
|
|
6722
|
-
((n = this.progress) == null ? void 0 : n.loadingListener) ??
|
|
6739
|
+
((n = this.progress) == null ? void 0 : n.loadingListener) ?? ou
|
|
6723
6740
|
), o.status !== 200)
|
|
6724
6741
|
throw new Error(`Could not download "${r}"`);
|
|
6725
6742
|
return new File([await o.blob()], this.name);
|
|
@@ -6773,9 +6790,9 @@ class _i extends br {
|
|
|
6773
6790
|
return !0;
|
|
6774
6791
|
}
|
|
6775
6792
|
}
|
|
6776
|
-
const
|
|
6793
|
+
const ou = () => {
|
|
6777
6794
|
};
|
|
6778
|
-
class
|
|
6795
|
+
class pu extends gi {
|
|
6779
6796
|
/**
|
|
6780
6797
|
* Creates a new instance of `UrlResource`.
|
|
6781
6798
|
* @param resource The URL reference.
|
|
@@ -6801,14 +6818,14 @@ class tu extends _i {
|
|
|
6801
6818
|
return this.resource.caption ?? super.caption;
|
|
6802
6819
|
}
|
|
6803
6820
|
}
|
|
6804
|
-
class
|
|
6821
|
+
class fu extends br {
|
|
6805
6822
|
constructor(r, s, n) {
|
|
6806
6823
|
super(), this.reference = r, this._progress = s, this.options = n;
|
|
6807
6824
|
}
|
|
6808
6825
|
async resolve() {
|
|
6809
6826
|
var p;
|
|
6810
|
-
const r = (p = this.options) != null && p.corsProxy ? `${this.options.corsProxy}?${this.reference.url}` : this.reference.url, s = ["", "HEAD"].includes(this.reference.ref) ? "HEAD" : `refs/heads/${this.reference.ref}`, n = await
|
|
6811
|
-
let t = await
|
|
6827
|
+
const r = (p = this.options) != null && p.corsProxy ? `${this.options.corsProxy}?${this.reference.url}` : this.reference.url, s = ["", "HEAD"].includes(this.reference.ref) ? "HEAD" : `refs/heads/${this.reference.ref}`, n = await Xl(r, s), o = this.reference.path.replace(/^\/+/, ""), i = tu(n, o);
|
|
6828
|
+
let t = await Yl(r, s, i);
|
|
6812
6829
|
return t = Object.fromEntries(
|
|
6813
6830
|
Object.entries(t).map(([y, u]) => (y = y.substring(this.reference.path.length), y = y.replace(/^\/+/, ""), [y, u]))
|
|
6814
6831
|
), {
|
|
@@ -6821,7 +6838,7 @@ class su extends br {
|
|
|
6821
6838
|
return this.reference.path.split("/").pop();
|
|
6822
6839
|
}
|
|
6823
6840
|
}
|
|
6824
|
-
class
|
|
6841
|
+
class lu extends br {
|
|
6825
6842
|
constructor(r, s) {
|
|
6826
6843
|
super(), this.reference = r, this._progress = s;
|
|
6827
6844
|
}
|
|
@@ -6833,7 +6850,7 @@ class iu extends br {
|
|
|
6833
6850
|
return this.reference.name;
|
|
6834
6851
|
}
|
|
6835
6852
|
}
|
|
6836
|
-
class
|
|
6853
|
+
class uu extends gi {
|
|
6837
6854
|
constructor(r, s) {
|
|
6838
6855
|
super(s), this.resource = r;
|
|
6839
6856
|
}
|
|
@@ -6841,10 +6858,10 @@ class nu extends _i {
|
|
|
6841
6858
|
return os(this.resource.slug);
|
|
6842
6859
|
}
|
|
6843
6860
|
getURL() {
|
|
6844
|
-
return `https://downloads.wordpress.org/theme/${
|
|
6861
|
+
return `https://downloads.wordpress.org/theme/${Ya(this.resource.slug)}`;
|
|
6845
6862
|
}
|
|
6846
6863
|
}
|
|
6847
|
-
class
|
|
6864
|
+
class cu extends gi {
|
|
6848
6865
|
constructor(r, s) {
|
|
6849
6866
|
super(s), this.resource = r;
|
|
6850
6867
|
}
|
|
@@ -6854,19 +6871,19 @@ class au extends _i {
|
|
|
6854
6871
|
}
|
|
6855
6872
|
/** @inheritDoc */
|
|
6856
6873
|
getURL() {
|
|
6857
|
-
return `https://downloads.wordpress.org/plugin/${
|
|
6874
|
+
return `https://downloads.wordpress.org/plugin/${Ya(this.resource.slug)}`;
|
|
6858
6875
|
}
|
|
6859
6876
|
}
|
|
6860
|
-
function
|
|
6877
|
+
function Ya(e) {
|
|
6861
6878
|
return !e || e.endsWith(".zip") ? e : e + ".latest-stable.zip";
|
|
6862
6879
|
}
|
|
6863
|
-
class
|
|
6880
|
+
class du extends Va {
|
|
6864
6881
|
/** @inheritDoc */
|
|
6865
6882
|
async resolve() {
|
|
6866
6883
|
return this.promise || (this.promise = this.resource.resolve()), this.promise;
|
|
6867
6884
|
}
|
|
6868
6885
|
}
|
|
6869
|
-
class
|
|
6886
|
+
class hu extends Va {
|
|
6870
6887
|
constructor(r, s) {
|
|
6871
6888
|
super(r), this.semaphore = s;
|
|
6872
6889
|
}
|
|
@@ -6875,7 +6892,7 @@ class pu extends Za {
|
|
|
6875
6892
|
return this.isAsync ? this.semaphore.run(() => this.resource.resolve()) : this.resource.resolve();
|
|
6876
6893
|
}
|
|
6877
6894
|
}
|
|
6878
|
-
const
|
|
6895
|
+
const yu = {
|
|
6879
6896
|
type: "object",
|
|
6880
6897
|
properties: {
|
|
6881
6898
|
landingPage: {
|
|
@@ -7002,13 +7019,13 @@ const fu = {
|
|
|
7002
7019
|
$schema: { type: "string" }
|
|
7003
7020
|
},
|
|
7004
7021
|
additionalProperties: !1
|
|
7005
|
-
},
|
|
7022
|
+
}, mu = {
|
|
7006
7023
|
type: "string",
|
|
7007
7024
|
enum: ["8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0"]
|
|
7008
|
-
},
|
|
7025
|
+
}, _u = {
|
|
7009
7026
|
type: "object",
|
|
7010
7027
|
additionalProperties: { type: ["string", "boolean", "number"] }
|
|
7011
|
-
},
|
|
7028
|
+
}, Xa = Object.prototype.hasOwnProperty;
|
|
7012
7029
|
function le(e, { instancePath: r = "", parentData: s, parentDataProperty: n, rootData: o = e } = {}) {
|
|
7013
7030
|
let i = null, t = 0;
|
|
7014
7031
|
const p = t;
|
|
@@ -8463,7 +8480,7 @@ Only the username field is required for user authentication.`
|
|
|
8463
8480
|
required: ["language", "step"]
|
|
8464
8481
|
}
|
|
8465
8482
|
]
|
|
8466
|
-
},
|
|
8483
|
+
}, gu = {
|
|
8467
8484
|
type: "object",
|
|
8468
8485
|
additionalProperties: {
|
|
8469
8486
|
anyOf: [
|
|
@@ -8497,7 +8514,7 @@ function Dr(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
8497
8514
|
schemaPath: "#/additionalProperties/anyOf/1/type",
|
|
8498
8515
|
keyword: "type",
|
|
8499
8516
|
params: {
|
|
8500
|
-
type:
|
|
8517
|
+
type: gu.additionalProperties.anyOf[1].type
|
|
8501
8518
|
},
|
|
8502
8519
|
message: "must be object,string"
|
|
8503
8520
|
};
|
|
@@ -8780,7 +8797,7 @@ function Je(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
8780
8797
|
}
|
|
8781
8798
|
return Je.errors = i, t === 0;
|
|
8782
8799
|
}
|
|
8783
|
-
const
|
|
8800
|
+
const Qa = {
|
|
8784
8801
|
type: "string",
|
|
8785
8802
|
enum: ["GET", "POST", "HEAD", "OPTIONS", "PATCH", "PUT", "DELETE"]
|
|
8786
8803
|
};
|
|
@@ -8832,7 +8849,7 @@ function We(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
8832
8849
|
instancePath: r + "/method",
|
|
8833
8850
|
schemaPath: "#/definitions/HTTPMethod/enum",
|
|
8834
8851
|
keyword: "enum",
|
|
8835
|
-
params: { allowedValues:
|
|
8852
|
+
params: { allowedValues: Qa.enum },
|
|
8836
8853
|
message: "must be equal to one of the allowed values"
|
|
8837
8854
|
}
|
|
8838
8855
|
], !1;
|
|
@@ -9831,7 +9848,7 @@ function We(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
9831
9848
|
], !1;
|
|
9832
9849
|
return We.errors = i, t === 0;
|
|
9833
9850
|
}
|
|
9834
|
-
const
|
|
9851
|
+
const wu = {
|
|
9835
9852
|
type: "object",
|
|
9836
9853
|
properties: {
|
|
9837
9854
|
relativeUri: {
|
|
@@ -9903,7 +9920,7 @@ function Se(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
9903
9920
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
9904
9921
|
const H = t;
|
|
9905
9922
|
for (const P in e)
|
|
9906
|
-
if (!
|
|
9923
|
+
if (!Xa.call(wu.properties, P))
|
|
9907
9924
|
return Se.errors = [
|
|
9908
9925
|
{
|
|
9909
9926
|
instancePath: r,
|
|
@@ -9982,7 +9999,7 @@ function Se(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
9982
9999
|
schemaPath: "#/definitions/HTTPMethod/enum",
|
|
9983
10000
|
keyword: "enum",
|
|
9984
10001
|
params: {
|
|
9985
|
-
allowedValues:
|
|
10002
|
+
allowedValues: Qa.enum
|
|
9986
10003
|
},
|
|
9987
10004
|
message: "must be equal to one of the allowed values"
|
|
9988
10005
|
}
|
|
@@ -16389,7 +16406,7 @@ function ie(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
16389
16406
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
16390
16407
|
const O = t;
|
|
16391
16408
|
for (const A in e)
|
|
16392
|
-
if (!
|
|
16409
|
+
if (!Xa.call(yu.properties, A))
|
|
16393
16410
|
return ie.errors = [
|
|
16394
16411
|
{
|
|
16395
16412
|
instancePath: r,
|
|
@@ -16637,7 +16654,7 @@ function ie(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
16637
16654
|
schemaPath: "#/definitions/SupportedPHPVersion/enum",
|
|
16638
16655
|
keyword: "enum",
|
|
16639
16656
|
params: {
|
|
16640
|
-
allowedValues:
|
|
16657
|
+
allowedValues: mu.enum
|
|
16641
16658
|
},
|
|
16642
16659
|
message: "must be equal to one of the allowed values"
|
|
16643
16660
|
};
|
|
@@ -16850,7 +16867,7 @@ function ie(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
16850
16867
|
schemaPath: "#/definitions/PHPConstants/additionalProperties/type",
|
|
16851
16868
|
keyword: "type",
|
|
16852
16869
|
params: {
|
|
16853
|
-
type:
|
|
16870
|
+
type: _u.additionalProperties.type
|
|
16854
16871
|
},
|
|
16855
16872
|
message: "must be string,boolean,number"
|
|
16856
16873
|
}
|
|
@@ -17369,14 +17386,14 @@ function Zt(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
|
|
|
17369
17386
|
rootData: o
|
|
17370
17387
|
}) || (i = i === null ? ie.errors : i.concat(ie.errors), t = i.length), Zt.errors = i, t === 0;
|
|
17371
17388
|
}
|
|
17372
|
-
const { wpCLI:
|
|
17373
|
-
...
|
|
17374
|
-
"wp-cli":
|
|
17375
|
-
importFile:
|
|
17389
|
+
const { wpCLI: bu, ...Pn } = ap, vu = {
|
|
17390
|
+
...Pn,
|
|
17391
|
+
"wp-cli": bu,
|
|
17392
|
+
importFile: Pn.importWxr
|
|
17376
17393
|
};
|
|
17377
|
-
function
|
|
17394
|
+
function Pu(e, {
|
|
17378
17395
|
progress: r = new ps(),
|
|
17379
|
-
semaphore: s = new
|
|
17396
|
+
semaphore: s = new po({ concurrency: 3 }),
|
|
17380
17397
|
onStepCompleted: n = () => {
|
|
17381
17398
|
},
|
|
17382
17399
|
corsProxy: o
|
|
@@ -17384,7 +17401,7 @@ function mu(e, {
|
|
|
17384
17401
|
var b, w, H, P, N, j, q, $, W;
|
|
17385
17402
|
e = structuredClone(e), e = {
|
|
17386
17403
|
...e,
|
|
17387
|
-
steps: (e.steps || []).filter(
|
|
17404
|
+
steps: (e.steps || []).filter(Su).filter(Au)
|
|
17388
17405
|
};
|
|
17389
17406
|
for (const O of e.steps)
|
|
17390
17407
|
!O || typeof O != "object" || (O.step === "importFile" ? (O.step = "importWxr", xe.warn(
|
|
@@ -17423,8 +17440,8 @@ function mu(e, {
|
|
|
17423
17440
|
if ((w = e == null ? void 0 : e.extraLibraries) != null && w.includes("wp-cli") || i !== -1) {
|
|
17424
17441
|
const O = {
|
|
17425
17442
|
step: "writeFile",
|
|
17426
|
-
data:
|
|
17427
|
-
path:
|
|
17443
|
+
data: xo,
|
|
17444
|
+
path: ni
|
|
17428
17445
|
};
|
|
17429
17446
|
i === -1 ? (H = e.steps) == null || H.push(O) : (P = e.steps) == null || P.splice(
|
|
17430
17447
|
i,
|
|
@@ -17443,7 +17460,7 @@ function mu(e, {
|
|
|
17443
17460
|
caption: "Downloading the WordPress Importer plugin"
|
|
17444
17461
|
}
|
|
17445
17462
|
}));
|
|
17446
|
-
const { valid: p, errors: y } =
|
|
17463
|
+
const { valid: p, errors: y } = Eu(e);
|
|
17447
17464
|
if (!p) {
|
|
17448
17465
|
const O = new Error(
|
|
17449
17466
|
`Invalid blueprint: ${y[0].message} at ${y[0].instancePath}`
|
|
@@ -17457,7 +17474,7 @@ function mu(e, {
|
|
|
17457
17474
|
},
|
|
17458
17475
|
0
|
|
17459
17476
|
), g = u.map(
|
|
17460
|
-
(O) =>
|
|
17477
|
+
(O) => Tu(O, {
|
|
17461
17478
|
semaphore: s,
|
|
17462
17479
|
rootProgressTracker: r,
|
|
17463
17480
|
totalProgressWeight: d,
|
|
@@ -17466,10 +17483,10 @@ function mu(e, {
|
|
|
17466
17483
|
);
|
|
17467
17484
|
return {
|
|
17468
17485
|
versions: {
|
|
17469
|
-
php:
|
|
17486
|
+
php: ku(
|
|
17470
17487
|
(q = e.preferredVersions) == null ? void 0 : q.php,
|
|
17471
|
-
|
|
17472
|
-
|
|
17488
|
+
oi,
|
|
17489
|
+
Wo
|
|
17473
17490
|
),
|
|
17474
17491
|
wp: (($ = e.preferredVersions) == null ? void 0 : $.wp) || "latest"
|
|
17475
17492
|
},
|
|
@@ -17507,7 +17524,7 @@ function mu(e, {
|
|
|
17507
17524
|
}
|
|
17508
17525
|
};
|
|
17509
17526
|
}
|
|
17510
|
-
function
|
|
17527
|
+
function Eu(e) {
|
|
17511
17528
|
var o;
|
|
17512
17529
|
const r = Zt(e);
|
|
17513
17530
|
if (r)
|
|
@@ -17523,18 +17540,18 @@ function _u(e) {
|
|
|
17523
17540
|
errors: n
|
|
17524
17541
|
};
|
|
17525
17542
|
}
|
|
17526
|
-
function
|
|
17543
|
+
function ku(e, r, s) {
|
|
17527
17544
|
return e && r.includes(e) ? e : s;
|
|
17528
17545
|
}
|
|
17529
|
-
function
|
|
17546
|
+
function Su(e) {
|
|
17530
17547
|
return !!(typeof e == "object" && e);
|
|
17531
17548
|
}
|
|
17532
|
-
function
|
|
17549
|
+
function Au(e) {
|
|
17533
17550
|
return ["setPhpIniEntry", "request"].includes(e.step) ? (xe.warn(
|
|
17534
17551
|
`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`
|
|
17535
17552
|
), !1) : !0;
|
|
17536
17553
|
}
|
|
17537
|
-
function
|
|
17554
|
+
function Tu(e, {
|
|
17538
17555
|
semaphore: r,
|
|
17539
17556
|
rootProgressTracker: s,
|
|
17540
17557
|
totalProgressWeight: n,
|
|
@@ -17546,7 +17563,7 @@ function vu(e, {
|
|
|
17546
17563
|
), t = {};
|
|
17547
17564
|
for (const b of Object.keys(e)) {
|
|
17548
17565
|
let w = e[b];
|
|
17549
|
-
|
|
17566
|
+
iu(w) && (w = br.create(w, {
|
|
17550
17567
|
semaphore: r,
|
|
17551
17568
|
corsProxy: o
|
|
17552
17569
|
})), t[b] = w;
|
|
@@ -17554,9 +17571,9 @@ function vu(e, {
|
|
|
17554
17571
|
const p = async (b) => {
|
|
17555
17572
|
var w;
|
|
17556
17573
|
try {
|
|
17557
|
-
return i.fillSlowly(), await
|
|
17574
|
+
return i.fillSlowly(), await vu[e.step](
|
|
17558
17575
|
b,
|
|
17559
|
-
await
|
|
17576
|
+
await Cu(t),
|
|
17560
17577
|
{
|
|
17561
17578
|
tracker: i,
|
|
17562
17579
|
initialCaption: (w = e.progress) == null ? void 0 : w.caption
|
|
@@ -17565,14 +17582,14 @@ function vu(e, {
|
|
|
17565
17582
|
} finally {
|
|
17566
17583
|
i.finish();
|
|
17567
17584
|
}
|
|
17568
|
-
}, y =
|
|
17585
|
+
}, y = En(t), u = En(t).filter(
|
|
17569
17586
|
(b) => b.isAsync
|
|
17570
17587
|
), d = 1 / (u.length + 1);
|
|
17571
17588
|
for (const b of u)
|
|
17572
17589
|
b.progress = i.stage(d);
|
|
17573
17590
|
return { run: p, step: e, resources: y };
|
|
17574
17591
|
}
|
|
17575
|
-
function
|
|
17592
|
+
function En(e) {
|
|
17576
17593
|
const r = [];
|
|
17577
17594
|
for (const s in e) {
|
|
17578
17595
|
const n = e[s];
|
|
@@ -17580,7 +17597,7 @@ function Pn(e) {
|
|
|
17580
17597
|
}
|
|
17581
17598
|
return r;
|
|
17582
17599
|
}
|
|
17583
|
-
async function
|
|
17600
|
+
async function Cu(e) {
|
|
17584
17601
|
const r = {};
|
|
17585
17602
|
for (const s in e) {
|
|
17586
17603
|
const n = e[s];
|
|
@@ -17588,27 +17605,27 @@ async function Pu(e) {
|
|
|
17588
17605
|
}
|
|
17589
17606
|
return r;
|
|
17590
17607
|
}
|
|
17591
|
-
async function
|
|
17608
|
+
async function Ou(e, r) {
|
|
17592
17609
|
await e.run(r);
|
|
17593
17610
|
}
|
|
17594
|
-
function
|
|
17611
|
+
function ac() {
|
|
17595
17612
|
}
|
|
17596
17613
|
/**
|
|
17597
17614
|
* @license
|
|
17598
17615
|
* Copyright 2019 Google LLC
|
|
17599
17616
|
* SPDX-License-Identifier: Apache-2.0
|
|
17600
17617
|
*/
|
|
17601
|
-
const
|
|
17602
|
-
canHandle: (e) =>
|
|
17618
|
+
const Ja = Symbol("Comlink.proxy"), xu = Symbol("Comlink.endpoint"), Lu = Symbol("Comlink.releaseProxy"), Ns = Symbol("Comlink.finalizer"), Vt = Symbol("Comlink.thrown"), eo = (e) => typeof e == "object" && e !== null || typeof e == "function", Iu = {
|
|
17619
|
+
canHandle: (e) => eo(e) && e[Ja],
|
|
17603
17620
|
serialize(e) {
|
|
17604
17621
|
const { port1: r, port2: s } = new MessageChannel();
|
|
17605
|
-
return
|
|
17622
|
+
return wi(e, r), [s, [s]];
|
|
17606
17623
|
},
|
|
17607
17624
|
deserialize(e) {
|
|
17608
|
-
return e.start(),
|
|
17625
|
+
return e.start(), bi(e);
|
|
17609
17626
|
}
|
|
17610
|
-
},
|
|
17611
|
-
canHandle: (e) =>
|
|
17627
|
+
}, Hu = {
|
|
17628
|
+
canHandle: (e) => eo(e) && Vt in e,
|
|
17612
17629
|
serialize({ value: e }) {
|
|
17613
17630
|
let r;
|
|
17614
17631
|
return e instanceof Error ? r = {
|
|
@@ -17624,20 +17641,20 @@ const Qa = Symbol("Comlink.proxy"), ku = Symbol("Comlink.endpoint"), Su = Symbol
|
|
|
17624
17641
|
throw e.isError ? Object.assign(new Error(e.value.message), e.value) : e.value;
|
|
17625
17642
|
}
|
|
17626
17643
|
}, et = /* @__PURE__ */ new Map([
|
|
17627
|
-
["proxy",
|
|
17628
|
-
["throw",
|
|
17644
|
+
["proxy", Iu],
|
|
17645
|
+
["throw", Hu]
|
|
17629
17646
|
]);
|
|
17630
|
-
function
|
|
17647
|
+
function $u(e, r) {
|
|
17631
17648
|
for (const s of e)
|
|
17632
17649
|
if (r === s || s === "*" || s instanceof RegExp && s.test(r))
|
|
17633
17650
|
return !0;
|
|
17634
17651
|
return !1;
|
|
17635
17652
|
}
|
|
17636
|
-
function
|
|
17653
|
+
function wi(e, r = globalThis, s = ["*"]) {
|
|
17637
17654
|
r.addEventListener("message", function n(o) {
|
|
17638
17655
|
if (!o || !o.data)
|
|
17639
17656
|
return;
|
|
17640
|
-
if (
|
|
17657
|
+
if (!$u(s, o.origin)) {
|
|
17641
17658
|
console.warn(`Invalid origin '${o.origin}' for comlink proxy`);
|
|
17642
17659
|
return;
|
|
17643
17660
|
}
|
|
@@ -17658,13 +17675,13 @@ function gi(e, r = globalThis, s = ["*"]) {
|
|
|
17658
17675
|
case "CONSTRUCT":
|
|
17659
17676
|
{
|
|
17660
17677
|
const b = new g(...y);
|
|
17661
|
-
u =
|
|
17678
|
+
u = io(b);
|
|
17662
17679
|
}
|
|
17663
17680
|
break;
|
|
17664
17681
|
case "ENDPOINT":
|
|
17665
17682
|
{
|
|
17666
17683
|
const { port1: b, port2: w } = new MessageChannel();
|
|
17667
|
-
|
|
17684
|
+
wi(e, w), u = ju(b, [b]);
|
|
17668
17685
|
}
|
|
17669
17686
|
break;
|
|
17670
17687
|
case "RELEASE":
|
|
@@ -17678,7 +17695,7 @@ function gi(e, r = globalThis, s = ["*"]) {
|
|
|
17678
17695
|
}
|
|
17679
17696
|
Promise.resolve(u).catch((d) => ({ value: d, [Vt]: 0 })).then((d) => {
|
|
17680
17697
|
const [g, b] = is(d);
|
|
17681
|
-
r.postMessage(Object.assign(Object.assign({}, g), { id: i }), b), t === "RELEASE" && (r.removeEventListener("message", n),
|
|
17698
|
+
r.postMessage(Object.assign(Object.assign({}, g), { id: i }), b), t === "RELEASE" && (r.removeEventListener("message", n), ro(r), Ns in e && typeof e[Ns] == "function" && e[Ns]());
|
|
17682
17699
|
}).catch((d) => {
|
|
17683
17700
|
const [g, b] = is({
|
|
17684
17701
|
value: new TypeError("Unserializable return value"),
|
|
@@ -17688,35 +17705,35 @@ function gi(e, r = globalThis, s = ["*"]) {
|
|
|
17688
17705
|
});
|
|
17689
17706
|
}), r.start && r.start();
|
|
17690
17707
|
}
|
|
17691
|
-
function
|
|
17708
|
+
function Ru(e) {
|
|
17692
17709
|
return e.constructor.name === "MessagePort";
|
|
17693
17710
|
}
|
|
17694
|
-
function
|
|
17695
|
-
|
|
17711
|
+
function ro(e) {
|
|
17712
|
+
Ru(e) && e.close();
|
|
17696
17713
|
}
|
|
17697
|
-
function
|
|
17714
|
+
function bi(e, r) {
|
|
17698
17715
|
return ri(e, [], r);
|
|
17699
17716
|
}
|
|
17700
17717
|
function Wt(e) {
|
|
17701
17718
|
if (e)
|
|
17702
17719
|
throw new Error("Proxy has been released and is not useable");
|
|
17703
17720
|
}
|
|
17704
|
-
function
|
|
17721
|
+
function to(e) {
|
|
17705
17722
|
return Qr(e, {
|
|
17706
17723
|
type: "RELEASE"
|
|
17707
17724
|
}).then(() => {
|
|
17708
|
-
|
|
17725
|
+
ro(e);
|
|
17709
17726
|
});
|
|
17710
17727
|
}
|
|
17711
17728
|
const ts = /* @__PURE__ */ new WeakMap(), ss = "FinalizationRegistry" in globalThis && new FinalizationRegistry((e) => {
|
|
17712
17729
|
const r = (ts.get(e) || 0) - 1;
|
|
17713
|
-
ts.set(e, r), r === 0 &&
|
|
17730
|
+
ts.set(e, r), r === 0 && to(e);
|
|
17714
17731
|
});
|
|
17715
|
-
function
|
|
17732
|
+
function Du(e, r) {
|
|
17716
17733
|
const s = (ts.get(r) || 0) + 1;
|
|
17717
17734
|
ts.set(r, s), ss && ss.register(e, r, e);
|
|
17718
17735
|
}
|
|
17719
|
-
function
|
|
17736
|
+
function Bu(e) {
|
|
17720
17737
|
ss && ss.unregister(e);
|
|
17721
17738
|
}
|
|
17722
17739
|
function ri(e, r = [], s = function() {
|
|
@@ -17724,9 +17741,9 @@ function ri(e, r = [], s = function() {
|
|
|
17724
17741
|
let n = !1;
|
|
17725
17742
|
const o = new Proxy(s, {
|
|
17726
17743
|
get(i, t) {
|
|
17727
|
-
if (Wt(n), t ===
|
|
17744
|
+
if (Wt(n), t === Lu)
|
|
17728
17745
|
return () => {
|
|
17729
|
-
|
|
17746
|
+
Bu(o), to(e), n = !0;
|
|
17730
17747
|
};
|
|
17731
17748
|
if (t === "then") {
|
|
17732
17749
|
if (r.length === 0)
|
|
@@ -17751,13 +17768,13 @@ function ri(e, r = [], s = function() {
|
|
|
17751
17768
|
apply(i, t, p) {
|
|
17752
17769
|
Wt(n);
|
|
17753
17770
|
const y = r[r.length - 1];
|
|
17754
|
-
if (y ===
|
|
17771
|
+
if (y === xu)
|
|
17755
17772
|
return Qr(e, {
|
|
17756
17773
|
type: "ENDPOINT"
|
|
17757
17774
|
}).then(Ir);
|
|
17758
17775
|
if (y === "bind")
|
|
17759
17776
|
return ri(e, r.slice(0, -1));
|
|
17760
|
-
const [u, d] =
|
|
17777
|
+
const [u, d] = kn(p);
|
|
17761
17778
|
return Qr(e, {
|
|
17762
17779
|
type: "APPLY",
|
|
17763
17780
|
path: r.map((g) => g.toString()),
|
|
@@ -17766,7 +17783,7 @@ function ri(e, r = [], s = function() {
|
|
|
17766
17783
|
},
|
|
17767
17784
|
construct(i, t) {
|
|
17768
17785
|
Wt(n);
|
|
17769
|
-
const [p, y] =
|
|
17786
|
+
const [p, y] = kn(t);
|
|
17770
17787
|
return Qr(e, {
|
|
17771
17788
|
type: "CONSTRUCT",
|
|
17772
17789
|
path: r.map((u) => u.toString()),
|
|
@@ -17774,23 +17791,23 @@ function ri(e, r = [], s = function() {
|
|
|
17774
17791
|
}, y).then(Ir);
|
|
17775
17792
|
}
|
|
17776
17793
|
});
|
|
17777
|
-
return
|
|
17794
|
+
return Du(o, e), o;
|
|
17778
17795
|
}
|
|
17779
|
-
function
|
|
17796
|
+
function Fu(e) {
|
|
17780
17797
|
return Array.prototype.concat.apply([], e);
|
|
17781
17798
|
}
|
|
17782
|
-
function
|
|
17799
|
+
function kn(e) {
|
|
17783
17800
|
const r = e.map(is);
|
|
17784
|
-
return [r.map((s) => s[0]),
|
|
17801
|
+
return [r.map((s) => s[0]), Fu(r.map((s) => s[1]))];
|
|
17785
17802
|
}
|
|
17786
|
-
const
|
|
17787
|
-
function
|
|
17788
|
-
return
|
|
17803
|
+
const so = /* @__PURE__ */ new WeakMap();
|
|
17804
|
+
function ju(e, r) {
|
|
17805
|
+
return so.set(e, r), e;
|
|
17789
17806
|
}
|
|
17790
|
-
function
|
|
17791
|
-
return Object.assign(e, { [
|
|
17807
|
+
function io(e) {
|
|
17808
|
+
return Object.assign(e, { [Ja]: !0 });
|
|
17792
17809
|
}
|
|
17793
|
-
function
|
|
17810
|
+
function Nu(e, r = globalThis, s = "*") {
|
|
17794
17811
|
return {
|
|
17795
17812
|
postMessage: (n, o) => e.postMessage(n, s, o),
|
|
17796
17813
|
addEventListener: r.addEventListener.bind(r),
|
|
@@ -17815,7 +17832,7 @@ function is(e) {
|
|
|
17815
17832
|
type: "RAW",
|
|
17816
17833
|
value: e
|
|
17817
17834
|
},
|
|
17818
|
-
|
|
17835
|
+
so.get(e) || []
|
|
17819
17836
|
];
|
|
17820
17837
|
}
|
|
17821
17838
|
function Ir(e) {
|
|
@@ -17828,39 +17845,39 @@ function Ir(e) {
|
|
|
17828
17845
|
}
|
|
17829
17846
|
function Qr(e, r, s) {
|
|
17830
17847
|
return new Promise((n) => {
|
|
17831
|
-
const o =
|
|
17848
|
+
const o = Wu();
|
|
17832
17849
|
e.addEventListener("message", function i(t) {
|
|
17833
17850
|
!t.data || !t.data.id || t.data.id !== o || (e.removeEventListener("message", i), n(t.data));
|
|
17834
17851
|
}), e.start && e.start(), e.postMessage(Object.assign({ id: o }, r), s);
|
|
17835
17852
|
});
|
|
17836
17853
|
}
|
|
17837
|
-
function
|
|
17854
|
+
function Wu() {
|
|
17838
17855
|
return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
|
17839
17856
|
}
|
|
17840
|
-
function
|
|
17841
|
-
|
|
17842
|
-
const s = e instanceof Worker ? e :
|
|
17857
|
+
function Uu(e, r = void 0) {
|
|
17858
|
+
Mu();
|
|
17859
|
+
const s = e instanceof Worker ? e : Nu(e, r), n = bi(s), o = no(n);
|
|
17843
17860
|
return new Proxy(o, {
|
|
17844
17861
|
get: (i, t) => t === "isConnected" ? async () => {
|
|
17845
17862
|
for (; ; )
|
|
17846
17863
|
try {
|
|
17847
|
-
await
|
|
17864
|
+
await qu(n.isConnected(), 200);
|
|
17848
17865
|
break;
|
|
17849
17866
|
} catch {
|
|
17850
17867
|
}
|
|
17851
17868
|
} : n[t]
|
|
17852
17869
|
});
|
|
17853
17870
|
}
|
|
17854
|
-
async function
|
|
17871
|
+
async function qu(e, r) {
|
|
17855
17872
|
return new Promise((s, n) => {
|
|
17856
17873
|
setTimeout(n, r), e.then(s);
|
|
17857
17874
|
});
|
|
17858
17875
|
}
|
|
17859
|
-
let
|
|
17860
|
-
function
|
|
17861
|
-
if (
|
|
17876
|
+
let Sn = !1;
|
|
17877
|
+
function Mu() {
|
|
17878
|
+
if (Sn)
|
|
17862
17879
|
return;
|
|
17863
|
-
|
|
17880
|
+
Sn = !0, et.set("EVENT", {
|
|
17864
17881
|
canHandle: (s) => s instanceof CustomEvent,
|
|
17865
17882
|
serialize: (s) => [
|
|
17866
17883
|
{
|
|
@@ -17873,10 +17890,10 @@ function Fu() {
|
|
|
17873
17890
|
canHandle: (s) => typeof s == "function",
|
|
17874
17891
|
serialize(s) {
|
|
17875
17892
|
const { port1: n, port2: o } = new MessageChannel();
|
|
17876
|
-
return
|
|
17893
|
+
return wi(s, n), [o, [o]];
|
|
17877
17894
|
},
|
|
17878
17895
|
deserialize(s) {
|
|
17879
|
-
return s.start(),
|
|
17896
|
+
return s.start(), bi(s);
|
|
17880
17897
|
}
|
|
17881
17898
|
}), et.set("PHPResponse", {
|
|
17882
17899
|
canHandle: (s) => typeof s == "object" && s !== null && "headers" in s && "bytes" in s && "errors" in s && "exitCode" in s && "httpStatusCode" in s,
|
|
@@ -17893,20 +17910,20 @@ function Fu() {
|
|
|
17893
17910
|
return s.response && (n[0].value.response = s.response), s.source && (n[0].value.source = s.source), n;
|
|
17894
17911
|
};
|
|
17895
17912
|
}
|
|
17896
|
-
function
|
|
17913
|
+
function no(e) {
|
|
17897
17914
|
return new Proxy(e, {
|
|
17898
17915
|
get(r, s) {
|
|
17899
17916
|
switch (typeof r[s]) {
|
|
17900
17917
|
case "function":
|
|
17901
17918
|
return (...n) => r[s](...n);
|
|
17902
17919
|
case "object":
|
|
17903
|
-
return r[s] === null ? r[s] :
|
|
17920
|
+
return r[s] === null ? r[s] : no(r[s]);
|
|
17904
17921
|
case "undefined":
|
|
17905
17922
|
case "number":
|
|
17906
17923
|
case "string":
|
|
17907
17924
|
return r[s];
|
|
17908
17925
|
default:
|
|
17909
|
-
return
|
|
17926
|
+
return io(r[s]);
|
|
17910
17927
|
}
|
|
17911
17928
|
}
|
|
17912
17929
|
});
|
|
@@ -17914,7 +17931,7 @@ function io(e) {
|
|
|
17914
17931
|
function vr(e) {
|
|
17915
17932
|
return Object.fromEntries(Object.entries(e).map(([r, s]) => [s, r]));
|
|
17916
17933
|
}
|
|
17917
|
-
const
|
|
17934
|
+
const Ku = {
|
|
17918
17935
|
server_name: 0,
|
|
17919
17936
|
max_fragment_length: 1,
|
|
17920
17937
|
client_certificate_url: 2,
|
|
@@ -17969,12 +17986,12 @@ const ju = {
|
|
|
17969
17986
|
transparency_info: 52,
|
|
17970
17987
|
connection_id: 54
|
|
17971
17988
|
};
|
|
17972
|
-
vr(
|
|
17973
|
-
const
|
|
17989
|
+
vr(Ku);
|
|
17990
|
+
const zu = {
|
|
17974
17991
|
host_name: 0
|
|
17975
17992
|
};
|
|
17976
|
-
vr(
|
|
17977
|
-
const
|
|
17993
|
+
vr(zu);
|
|
17994
|
+
const Gu = {
|
|
17978
17995
|
TLS1_CK_PSK_WITH_RC4_128_SHA: 138,
|
|
17979
17996
|
TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA: 139,
|
|
17980
17997
|
TLS1_CK_PSK_WITH_AES_128_CBC_SHA: 140,
|
|
@@ -18178,29 +18195,29 @@ const Wu = {
|
|
|
18178
18195
|
TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305: 52397,
|
|
18179
18196
|
TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305: 52398
|
|
18180
18197
|
};
|
|
18181
|
-
vr(
|
|
18182
|
-
const
|
|
18198
|
+
vr(Gu);
|
|
18199
|
+
const Zu = {
|
|
18183
18200
|
secp256r1: 23,
|
|
18184
18201
|
secp384r1: 24,
|
|
18185
18202
|
secp521r1: 25,
|
|
18186
18203
|
x25519: 29,
|
|
18187
18204
|
x448: 30
|
|
18188
18205
|
};
|
|
18189
|
-
vr(
|
|
18190
|
-
const
|
|
18206
|
+
vr(Zu);
|
|
18207
|
+
const Vu = {
|
|
18191
18208
|
uncompressed: 0,
|
|
18192
18209
|
ansiX962_compressed_prime: 1,
|
|
18193
18210
|
ansiX962_compressed_char2: 2
|
|
18194
18211
|
};
|
|
18195
|
-
vr(
|
|
18196
|
-
const
|
|
18212
|
+
vr(Vu);
|
|
18213
|
+
const Yu = {
|
|
18197
18214
|
anonymous: 0,
|
|
18198
18215
|
rsa: 1,
|
|
18199
18216
|
dsa: 2,
|
|
18200
18217
|
ecdsa: 3
|
|
18201
18218
|
};
|
|
18202
|
-
vr(
|
|
18203
|
-
const
|
|
18219
|
+
vr(Yu);
|
|
18220
|
+
const Xu = {
|
|
18204
18221
|
none: 0,
|
|
18205
18222
|
md5: 1,
|
|
18206
18223
|
sha1: 2,
|
|
@@ -18209,13 +18226,13 @@ const Ku = {
|
|
|
18209
18226
|
sha384: 5,
|
|
18210
18227
|
sha512: 6
|
|
18211
18228
|
};
|
|
18212
|
-
vr(
|
|
18213
|
-
const
|
|
18229
|
+
vr(Xu);
|
|
18230
|
+
const Qu = {
|
|
18214
18231
|
Warning: 1,
|
|
18215
18232
|
Fatal: 2
|
|
18216
18233
|
};
|
|
18217
|
-
vr(
|
|
18218
|
-
const
|
|
18234
|
+
vr(Qu);
|
|
18235
|
+
const Ju = {
|
|
18219
18236
|
CloseNotify: 0,
|
|
18220
18237
|
UnexpectedMessage: 10,
|
|
18221
18238
|
BadRecordMac: 20,
|
|
@@ -18242,7 +18259,7 @@ const Gu = {
|
|
|
18242
18259
|
NoRenegotiation: 100,
|
|
18243
18260
|
UnsupportedExtension: 110
|
|
18244
18261
|
};
|
|
18245
|
-
vr(
|
|
18262
|
+
vr(Ju);
|
|
18246
18263
|
crypto.subtle.generateKey(
|
|
18247
18264
|
{
|
|
18248
18265
|
name: "ECDH",
|
|
@@ -18254,7 +18271,7 @@ crypto.subtle.generateKey(
|
|
|
18254
18271
|
["deriveKey", "deriveBits"]
|
|
18255
18272
|
// Key usage
|
|
18256
18273
|
);
|
|
18257
|
-
async function
|
|
18274
|
+
async function oc({
|
|
18258
18275
|
iframe: e,
|
|
18259
18276
|
blueprint: r,
|
|
18260
18277
|
remoteUrl: s,
|
|
@@ -18270,10 +18287,10 @@ async function rc({
|
|
|
18270
18287
|
corsProxy: g,
|
|
18271
18288
|
shouldInstallWordPress: b
|
|
18272
18289
|
}) {
|
|
18273
|
-
|
|
18290
|
+
rc(s), ec(e), s = tc(s, {
|
|
18274
18291
|
progressbar: !o
|
|
18275
18292
|
}), n.setCaption("Preparing WordPress"), r || (r = {});
|
|
18276
|
-
const w =
|
|
18293
|
+
const w = Pu(r, {
|
|
18277
18294
|
progress: n.stage(0.5),
|
|
18278
18295
|
onStepCompleted: i,
|
|
18279
18296
|
corsProxy: g
|
|
@@ -18281,7 +18298,7 @@ async function rc({
|
|
|
18281
18298
|
await new Promise((N) => {
|
|
18282
18299
|
e.src = s, e.addEventListener("load", N, !1);
|
|
18283
18300
|
});
|
|
18284
|
-
const H =
|
|
18301
|
+
const H = Uu(
|
|
18285
18302
|
e.contentWindow,
|
|
18286
18303
|
e.ownerDocument.defaultView
|
|
18287
18304
|
);
|
|
@@ -18295,21 +18312,21 @@ async function rc({
|
|
|
18295
18312
|
phpVersion: w.versions.php,
|
|
18296
18313
|
wpVersion: w.versions.wp,
|
|
18297
18314
|
withNetworking: w.features.networking
|
|
18298
|
-
}), await H.isReady(), P.finish(),
|
|
18315
|
+
}), await H.isReady(), P.finish(), go(xe, H), t(H), y && await y(), await Ou(w, H), n.finish(), H;
|
|
18299
18316
|
}
|
|
18300
|
-
function
|
|
18317
|
+
function ec(e) {
|
|
18301
18318
|
var r, s;
|
|
18302
18319
|
(r = e.sandbox) != null && r.length && !((s = e.sandbox) != null && s.contains("allow-storage-access-by-user-activation")) && e.sandbox.add("allow-storage-access-by-user-activation");
|
|
18303
18320
|
}
|
|
18304
18321
|
const Yt = "https://playground.wordpress.net";
|
|
18305
|
-
function
|
|
18322
|
+
function rc(e) {
|
|
18306
18323
|
const r = new URL(e, Yt);
|
|
18307
18324
|
if ((r.origin === Yt || r.hostname === "localhost") && r.pathname !== "/remote.html")
|
|
18308
18325
|
throw new Error(
|
|
18309
18326
|
`Invalid remote URL: ${r}. Expected origin to be ${Yt}/remote.html.`
|
|
18310
18327
|
);
|
|
18311
18328
|
}
|
|
18312
|
-
function
|
|
18329
|
+
function tc(e, r) {
|
|
18313
18330
|
const s = new URL(e, Yt), n = new URLSearchParams(s.search);
|
|
18314
18331
|
for (const [o, i] of Object.entries(r))
|
|
18315
18332
|
if (i != null && i !== !1)
|
|
@@ -18321,46 +18338,46 @@ function Yu(e, r) {
|
|
|
18321
18338
|
return s.search = n.toString(), s.toString();
|
|
18322
18339
|
}
|
|
18323
18340
|
export {
|
|
18324
|
-
|
|
18325
|
-
|
|
18326
|
-
|
|
18341
|
+
Wo as LatestSupportedPHPVersion,
|
|
18342
|
+
oi as SupportedPHPVersions,
|
|
18343
|
+
ic as SupportedPHPVersionsList,
|
|
18327
18344
|
xn as activatePlugin,
|
|
18328
18345
|
Ln as activateTheme,
|
|
18329
|
-
|
|
18330
|
-
|
|
18346
|
+
Pu as compileBlueprint,
|
|
18347
|
+
Ho as cp,
|
|
18331
18348
|
jn as defineSiteUrl,
|
|
18332
|
-
|
|
18333
|
-
|
|
18334
|
-
|
|
18349
|
+
ii as defineWpConfigConsts,
|
|
18350
|
+
Io as enableMultisite,
|
|
18351
|
+
Ko as exportWXR,
|
|
18335
18352
|
Nn as importThemeStarterContent,
|
|
18336
|
-
|
|
18337
|
-
|
|
18338
|
-
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
|
|
18353
|
+
Mo as importWordPressFiles,
|
|
18354
|
+
qo as importWxr,
|
|
18355
|
+
zo as installPlugin,
|
|
18356
|
+
Go as installTheme,
|
|
18357
|
+
Zo as login,
|
|
18358
|
+
Ro as mkdir,
|
|
18359
|
+
$o as mv,
|
|
18343
18360
|
Ie as phpVar,
|
|
18344
18361
|
ns as phpVars,
|
|
18345
|
-
|
|
18346
|
-
|
|
18362
|
+
So as request,
|
|
18363
|
+
Vo as resetData,
|
|
18347
18364
|
In as rm,
|
|
18348
|
-
|
|
18349
|
-
|
|
18350
|
-
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
|
|
18365
|
+
Do as rmdir,
|
|
18366
|
+
Ou as runBlueprintSteps,
|
|
18367
|
+
Po as runPHP,
|
|
18368
|
+
Eo as runPHPWithOptions,
|
|
18369
|
+
ko as runSql,
|
|
18370
|
+
Yo as runWpInstallationWizard,
|
|
18371
|
+
sc as setPhpIniEntries,
|
|
18372
|
+
ac as setPluginProxyURL,
|
|
18373
|
+
np as setSiteLanguage,
|
|
18357
18374
|
Hn as setSiteOptions,
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18375
|
+
oc as startPlaygroundWeb,
|
|
18376
|
+
pi as unzip,
|
|
18377
|
+
Oo as updateUserMeta,
|
|
18361
18378
|
Rn as wpCLI,
|
|
18362
18379
|
An as wpContentFilesExcludedFromExport,
|
|
18363
18380
|
Dn as writeFile,
|
|
18364
|
-
|
|
18365
|
-
|
|
18381
|
+
Uo as writeFiles,
|
|
18382
|
+
Xo as zipWpContent
|
|
18366
18383
|
};
|