@wp-playground/client 0.9.44 → 0.9.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +40 -40
- package/index.d.ts +0 -1
- package/index.js +536 -521
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -8,9 +8,9 @@ const Vr = function() {
|
|
|
8
8
|
}();
|
|
9
9
|
if (Vr === "NODE") {
|
|
10
10
|
let r = function(o) {
|
|
11
|
-
return new Promise(function(
|
|
11
|
+
return new Promise(function(a, l) {
|
|
12
12
|
o.onload = o.onerror = function(i) {
|
|
13
|
-
o.onload = o.onerror = null, i.type === "load" ?
|
|
13
|
+
o.onload = o.onerror = null, i.type === "load" ? a(o.result) : l(new Error("Failed to read the blob/file"));
|
|
14
14
|
};
|
|
15
15
|
});
|
|
16
16
|
}, t = function() {
|
|
@@ -32,35 +32,35 @@ if (Vr === "NODE") {
|
|
|
32
32
|
global.File = o;
|
|
33
33
|
}
|
|
34
34
|
typeof Blob.prototype.arrayBuffer > "u" && (Blob.prototype.arrayBuffer = function() {
|
|
35
|
-
const
|
|
36
|
-
return
|
|
35
|
+
const a = new FileReader();
|
|
36
|
+
return a.readAsArrayBuffer(this), r(a);
|
|
37
37
|
}), typeof Blob.prototype.text > "u" && (Blob.prototype.text = function() {
|
|
38
|
-
const
|
|
39
|
-
return
|
|
38
|
+
const a = new FileReader();
|
|
39
|
+
return a.readAsText(this), r(a);
|
|
40
40
|
}), (typeof Blob.prototype.stream > "u" || !t()) && (Blob.prototype.stream = function() {
|
|
41
41
|
let o = 0;
|
|
42
|
-
const
|
|
42
|
+
const a = this;
|
|
43
43
|
return new ReadableStream({
|
|
44
44
|
type: "bytes",
|
|
45
45
|
// 0.5 MB seems like a reasonable chunk size, let's adjust
|
|
46
46
|
// this if needed.
|
|
47
47
|
autoAllocateChunkSize: 512 * 1024,
|
|
48
48
|
async pull(l) {
|
|
49
|
-
const i = l.byobRequest.view, f = await
|
|
49
|
+
const i = l.byobRequest.view, f = await a.slice(
|
|
50
50
|
o,
|
|
51
51
|
o + i.byteLength
|
|
52
52
|
).arrayBuffer(), h = new Uint8Array(f);
|
|
53
53
|
new Uint8Array(i.buffer).set(h);
|
|
54
54
|
const b = h.byteLength;
|
|
55
|
-
l.byobRequest.respond(b), o += b, o >=
|
|
55
|
+
l.byobRequest.respond(b), o += b, o >= a.size && l.close();
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
if (Vr === "NODE" && typeof CustomEvent > "u") {
|
|
61
61
|
class r extends Event {
|
|
62
|
-
constructor(o,
|
|
63
|
-
super(o,
|
|
62
|
+
constructor(o, a = {}) {
|
|
63
|
+
super(o, a), this.detail = a.detail;
|
|
64
64
|
}
|
|
65
65
|
initCustomEvent() {
|
|
66
66
|
}
|
|
@@ -143,8 +143,8 @@ function se(...r) {
|
|
|
143
143
|
return i.substring(i.length - 1) === "/";
|
|
144
144
|
}
|
|
145
145
|
let o = r.join("/");
|
|
146
|
-
const
|
|
147
|
-
return o = Zr(o), !o && !
|
|
146
|
+
const a = o[0] === "/", l = t(o);
|
|
147
|
+
return o = Zr(o), !o && !a && (o = "."), o && l && !t(o) && (o += "/"), o;
|
|
148
148
|
}
|
|
149
149
|
function Yr(r) {
|
|
150
150
|
if (r === "/")
|
|
@@ -162,9 +162,9 @@ function Zr(r) {
|
|
|
162
162
|
}
|
|
163
163
|
function Et(r, t) {
|
|
164
164
|
let o = 0;
|
|
165
|
-
for (let
|
|
166
|
-
const l = r[
|
|
167
|
-
l === "." ? r.splice(
|
|
165
|
+
for (let a = r.length - 1; a >= 0; a--) {
|
|
166
|
+
const l = r[a];
|
|
167
|
+
l === "." ? r.splice(a, 1) : l === ".." ? (r.splice(a, 1), o++) : o && (r.splice(a, 1), o--);
|
|
168
168
|
}
|
|
169
169
|
if (t)
|
|
170
170
|
for (; o; o--)
|
|
@@ -173,10 +173,10 @@ function Et(r, t) {
|
|
|
173
173
|
}
|
|
174
174
|
function Qr(r = 36, t = "!@#$%^&*()_+=-[]/.,<>?") {
|
|
175
175
|
const o = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + t;
|
|
176
|
-
let
|
|
176
|
+
let a = "";
|
|
177
177
|
for (let l = r; l > 0; --l)
|
|
178
|
-
|
|
179
|
-
return
|
|
178
|
+
a += o[Math.floor(Math.random() * o.length)];
|
|
179
|
+
return a;
|
|
180
180
|
}
|
|
181
181
|
function $t() {
|
|
182
182
|
return Qr(36, "-_");
|
|
@@ -252,9 +252,9 @@ const Nr = "/wordpress/wp-content/debug.log", Lt = async (r) => await r.fileExis
|
|
|
252
252
|
t.addEventListener("request.end", async () => {
|
|
253
253
|
const o = await Lt(t);
|
|
254
254
|
if (o.length > mr) {
|
|
255
|
-
const
|
|
255
|
+
const a = o.substring(mr);
|
|
256
256
|
r.logMessage({
|
|
257
|
-
message:
|
|
257
|
+
message: a,
|
|
258
258
|
raw: !0
|
|
259
259
|
}), mr = o.length;
|
|
260
260
|
}
|
|
@@ -296,8 +296,8 @@ class xt extends EventTarget {
|
|
|
296
296
|
* @param args any
|
|
297
297
|
*/
|
|
298
298
|
logMessage(t, ...o) {
|
|
299
|
-
for (const
|
|
300
|
-
|
|
299
|
+
for (const a of this.handlers)
|
|
300
|
+
a(t, ...o);
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
303
|
* Log message
|
|
@@ -393,22 +393,22 @@ const Nt = () => {
|
|
|
393
393
|
}
|
|
394
394
|
return [vr, qt, Sr];
|
|
395
395
|
}, ae = new xt(Nt()), Pr = (r) => r.replace(/\t/g, ""), Ft = (r, t, o) => {
|
|
396
|
-
const
|
|
396
|
+
const a = /* @__PURE__ */ new Date(), l = new Intl.DateTimeFormat("en-GB", {
|
|
397
397
|
year: "numeric",
|
|
398
398
|
month: "short",
|
|
399
399
|
day: "2-digit",
|
|
400
400
|
timeZone: "UTC"
|
|
401
|
-
}).format(
|
|
401
|
+
}).format(a).replace(/ /g, "-"), i = new Intl.DateTimeFormat("en-GB", {
|
|
402
402
|
hour: "2-digit",
|
|
403
403
|
minute: "2-digit",
|
|
404
404
|
second: "2-digit",
|
|
405
405
|
hour12: !1,
|
|
406
406
|
timeZone: "UTC",
|
|
407
407
|
timeZoneName: "short"
|
|
408
|
-
}).format(
|
|
408
|
+
}).format(a), e = l + " " + i;
|
|
409
409
|
return r = Pr(r), `[${e}] ${o} ${t}: ${r}`;
|
|
410
|
-
}, $r = async (r, { pluginPath: t, pluginName: o },
|
|
411
|
-
|
|
410
|
+
}, $r = async (r, { pluginPath: t, pluginName: o }, a) => {
|
|
411
|
+
a == null || a.tracker.setCaption(`Activating ${o || t}`);
|
|
412
412
|
const l = await r.documentRoot, i = await r.run({
|
|
413
413
|
code: `<?php
|
|
414
414
|
define( 'WP_ADMIN', true );
|
|
@@ -450,7 +450,7 @@ const Nt = () => {
|
|
|
450
450
|
);
|
|
451
451
|
}, Kr = async (r, { themeFolderName: t }, o) => {
|
|
452
452
|
o == null || o.tracker.setCaption(`Activating ${t}`);
|
|
453
|
-
const
|
|
453
|
+
const a = await r.documentRoot, l = `${a}/wp-content/themes/${t}`;
|
|
454
454
|
if (!await r.fileExists(l))
|
|
455
455
|
throw new Error(`
|
|
456
456
|
Couldn't activate theme ${t}.
|
|
@@ -475,7 +475,7 @@ const Nt = () => {
|
|
|
475
475
|
die('Theme activated successfully');
|
|
476
476
|
`,
|
|
477
477
|
env: {
|
|
478
|
-
docroot:
|
|
478
|
+
docroot: a,
|
|
479
479
|
themeFolderName: t
|
|
480
480
|
}
|
|
481
481
|
});
|
|
@@ -487,12 +487,12 @@ const Nt = () => {
|
|
|
487
487
|
await r.unlink(t);
|
|
488
488
|
}, Dt = async (r, { sql: t }, o) => {
|
|
489
489
|
o == null || o.tracker.setCaption("Executing SQL Queries");
|
|
490
|
-
const
|
|
490
|
+
const a = `/tmp/${$t()}.sql`;
|
|
491
491
|
await r.writeFile(
|
|
492
|
-
|
|
492
|
+
a,
|
|
493
493
|
new Uint8Array(await t.arrayBuffer())
|
|
494
494
|
);
|
|
495
|
-
const l = await r.documentRoot, i = lr({ docroot: l, sqlFilename:
|
|
495
|
+
const l = await r.documentRoot, i = lr({ docroot: l, sqlFilename: a }), e = await r.run({
|
|
496
496
|
code: `<?php
|
|
497
497
|
require_once ${i.docroot} . '/wp-load.php';
|
|
498
498
|
|
|
@@ -514,7 +514,7 @@ const Nt = () => {
|
|
|
514
514
|
}
|
|
515
515
|
`
|
|
516
516
|
});
|
|
517
|
-
return await Xr(r, { path:
|
|
517
|
+
return await Xr(r, { path: a }), e;
|
|
518
518
|
}, _r = async (r, { request: t }) => {
|
|
519
519
|
ae.warn(
|
|
520
520
|
'Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.'
|
|
@@ -862,7 +862,7 @@ function skip_whitespace($tokens) {
|
|
|
862
862
|
await Mt(r, t);
|
|
863
863
|
break;
|
|
864
864
|
case "rewrite-wp-config": {
|
|
865
|
-
const
|
|
865
|
+
const a = await r.documentRoot, l = se(a, "/wp-config.php"), i = await r.readFileAsText(l), e = await Bt(
|
|
866
866
|
r,
|
|
867
867
|
i,
|
|
868
868
|
t
|
|
@@ -880,21 +880,21 @@ async function Mt(r, t) {
|
|
|
880
880
|
}
|
|
881
881
|
async function Bt(r, t, o) {
|
|
882
882
|
await r.writeFile("/tmp/code.php", t);
|
|
883
|
-
const
|
|
883
|
+
const a = lr({
|
|
884
884
|
consts: o
|
|
885
885
|
});
|
|
886
886
|
return await r.run({
|
|
887
887
|
code: `${Wt}
|
|
888
888
|
$wp_config_path = '/tmp/code.php';
|
|
889
889
|
$wp_config = file_get_contents($wp_config_path);
|
|
890
|
-
$new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${
|
|
890
|
+
$new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${a.consts});
|
|
891
891
|
file_put_contents($wp_config_path, $new_wp_config);
|
|
892
892
|
`
|
|
893
893
|
}), await r.readFileAsText("/tmp/code.php");
|
|
894
894
|
}
|
|
895
|
-
const kr = async (r, { username: t = "admin", password: o = "password" } = {},
|
|
895
|
+
const kr = async (r, { username: t = "admin", password: o = "password" } = {}, a) => {
|
|
896
896
|
var i, e, f;
|
|
897
|
-
|
|
897
|
+
a == null || a.tracker.setCaption((a == null ? void 0 : a.initialCaption) || "Logging in"), await r.request({
|
|
898
898
|
url: "/wp-login.php"
|
|
899
899
|
});
|
|
900
900
|
const l = await r.request({
|
|
@@ -926,10 +926,10 @@ const kr = async (r, { username: t = "admin", password: o = "password" } = {}, p
|
|
|
926
926
|
`
|
|
927
927
|
});
|
|
928
928
|
}, Ut = async (r, { meta: t, userId: o }) => {
|
|
929
|
-
const
|
|
929
|
+
const a = await r.documentRoot;
|
|
930
930
|
await r.run({
|
|
931
931
|
code: `<?php
|
|
932
|
-
include ${ie(
|
|
932
|
+
include ${ie(a)} . '/wp-load.php';
|
|
933
933
|
$meta = ${ie(t)};
|
|
934
934
|
foreach($meta as $name => $value) {
|
|
935
935
|
update_user_meta(${ie(o)}, $name, $value);
|
|
@@ -955,11 +955,11 @@ const Vt = async (r) => {
|
|
|
955
955
|
let S = `The current host is ${t.host}, but WordPress multisites do not support custom ports.`;
|
|
956
956
|
throw t.hostname === "localhost" && (S += " For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."), new Error(S);
|
|
957
957
|
}
|
|
958
|
-
const o = t.pathname.replace(/\/$/, "") + "/",
|
|
958
|
+
const o = t.pathname.replace(/\/$/, "") + "/", a = `${t.protocol}//${t.hostname}${o}`;
|
|
959
959
|
await et(r, {
|
|
960
960
|
options: {
|
|
961
|
-
siteurl:
|
|
962
|
-
home:
|
|
961
|
+
siteurl: a,
|
|
962
|
+
home: a
|
|
963
963
|
}
|
|
964
964
|
}), await kr(r, {});
|
|
965
965
|
const l = await r.documentRoot, e = (await r.run({
|
|
@@ -1055,9 +1055,13 @@ echo json_encode($deactivated_plugins);
|
|
|
1055
1055
|
`
|
|
1056
1056
|
), await kr(r, {});
|
|
1057
1057
|
for (const S of e)
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1058
|
+
try {
|
|
1059
|
+
await $r(r, {
|
|
1060
|
+
pluginPath: S
|
|
1061
|
+
});
|
|
1062
|
+
} catch (I) {
|
|
1063
|
+
ae.error("Error activating plugin", S, I);
|
|
1064
|
+
}
|
|
1061
1065
|
};
|
|
1062
1066
|
function Ht(r) {
|
|
1063
1067
|
return Object.keys(r).map(
|
|
@@ -1090,11 +1094,11 @@ const Gt = async (r, { fromPath: t, toPath: o }) => {
|
|
|
1090
1094
|
path: "/tmp/import.wxr",
|
|
1091
1095
|
data: t
|
|
1092
1096
|
});
|
|
1093
|
-
const
|
|
1097
|
+
const a = await r.documentRoot;
|
|
1094
1098
|
await r.run({
|
|
1095
1099
|
code: `<?php
|
|
1096
|
-
require ${ie(
|
|
1097
|
-
require ${ie(
|
|
1100
|
+
require ${ie(a)} . '/wp-load.php';
|
|
1101
|
+
require ${ie(a)} . '/wp-admin/includes/admin.php';
|
|
1098
1102
|
|
|
1099
1103
|
kses_remove_filters();
|
|
1100
1104
|
$admin_id = get_users(array('role' => 'Administrator') )[0]->ID;
|
|
@@ -1117,7 +1121,7 @@ const Gt = async (r, { fromPath: t, toPath: o }) => {
|
|
|
1117
1121
|
}, it = async (r, { themeSlug: t = "" }, o) => {
|
|
1118
1122
|
var l;
|
|
1119
1123
|
(l = o == null ? void 0 : o.tracker) == null || l.setCaption("Importing theme starter content");
|
|
1120
|
-
const
|
|
1124
|
+
const a = await r.documentRoot;
|
|
1121
1125
|
await r.run({
|
|
1122
1126
|
code: `<?php
|
|
1123
1127
|
|
|
@@ -1154,7 +1158,7 @@ const Gt = async (r, { fromPath: t, toPath: o }) => {
|
|
|
1154
1158
|
}
|
|
1155
1159
|
playground_add_filter( 'plugins_loaded', 'importThemeStarterContent_plugins_loaded', 0 );
|
|
1156
1160
|
|
|
1157
|
-
require ${ie(
|
|
1161
|
+
require ${ie(a)} . '/wp-load.php';
|
|
1158
1162
|
|
|
1159
1163
|
// Return early if there's no starter content.
|
|
1160
1164
|
if ( ! get_theme_starter_content() ) {
|
|
@@ -1168,7 +1172,7 @@ const Gt = async (r, { fromPath: t, toPath: o }) => {
|
|
|
1168
1172
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
1169
1173
|
`
|
|
1170
1174
|
});
|
|
1171
|
-
}, yr = "/tmp/file.zip", ot = async (r, t, o,
|
|
1175
|
+
}, yr = "/tmp/file.zip", ot = async (r, t, o, a = !0) => {
|
|
1172
1176
|
if (t instanceof File) {
|
|
1173
1177
|
const i = t;
|
|
1174
1178
|
t = yr, await r.writeFile(
|
|
@@ -1179,7 +1183,7 @@ const Gt = async (r, { fromPath: t, toPath: o }) => {
|
|
|
1179
1183
|
const l = lr({
|
|
1180
1184
|
zipPath: t,
|
|
1181
1185
|
extractToPath: o,
|
|
1182
|
-
overwriteFiles:
|
|
1186
|
+
overwriteFiles: a
|
|
1183
1187
|
});
|
|
1184
1188
|
await r.run({
|
|
1185
1189
|
code: `<?php
|
|
@@ -1210,22 +1214,22 @@ const Gt = async (r, { fromPath: t, toPath: o }) => {
|
|
|
1210
1214
|
unzip(${l.zipPath}, ${l.extractToPath}, ${l.overwriteFiles});
|
|
1211
1215
|
`
|
|
1212
1216
|
}), await r.fileExists(yr) && await r.unlink(yr);
|
|
1213
|
-
}, Tr = async (r, { zipFile: t, zipPath: o, extractToPath:
|
|
1217
|
+
}, Tr = async (r, { zipFile: t, zipPath: o, extractToPath: a }) => {
|
|
1214
1218
|
if (o)
|
|
1215
1219
|
ae.warn(
|
|
1216
1220
|
'The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.'
|
|
1217
1221
|
);
|
|
1218
1222
|
else if (!t)
|
|
1219
1223
|
throw new Error("Either zipPath or zipFile must be provided");
|
|
1220
|
-
await ot(r, t || o,
|
|
1224
|
+
await ot(r, t || o, a);
|
|
1221
1225
|
}, Kt = async (r, { wordPressFilesZip: t, pathInZip: o = "" }) => {
|
|
1222
|
-
const
|
|
1226
|
+
const a = await r.documentRoot;
|
|
1223
1227
|
let l = se("/tmp", "import");
|
|
1224
1228
|
await r.mkdir(l), await Tr(r, {
|
|
1225
1229
|
zipFile: t,
|
|
1226
1230
|
extractToPath: l
|
|
1227
1231
|
}), l = se(l, o);
|
|
1228
|
-
const i = se(l, "wp-content"), e = se(
|
|
1232
|
+
const i = se(l, "wp-content"), e = se(a, "wp-content");
|
|
1229
1233
|
for (const k of Hr) {
|
|
1230
1234
|
const m = se(
|
|
1231
1235
|
i,
|
|
@@ -1241,20 +1245,20 @@ const Gt = async (r, { fromPath: t, toPath: o }) => {
|
|
|
1241
1245
|
"database"
|
|
1242
1246
|
);
|
|
1243
1247
|
await r.fileExists(f) || await r.mv(
|
|
1244
|
-
se(
|
|
1248
|
+
se(a, "wp-content", "database"),
|
|
1245
1249
|
f
|
|
1246
1250
|
);
|
|
1247
1251
|
const h = await r.listFiles(l);
|
|
1248
1252
|
for (const k of h)
|
|
1249
|
-
await Fr(r, se(
|
|
1253
|
+
await Fr(r, se(a, k)), await r.mv(
|
|
1250
1254
|
se(l, k),
|
|
1251
|
-
se(
|
|
1255
|
+
se(a, k)
|
|
1252
1256
|
);
|
|
1253
1257
|
await r.rmdir(l), await st(r, {
|
|
1254
1258
|
siteUrl: await r.absoluteUrl
|
|
1255
1259
|
});
|
|
1256
1260
|
const b = ie(
|
|
1257
|
-
se(
|
|
1261
|
+
se(a, "wp-admin", "upgrade.php")
|
|
1258
1262
|
);
|
|
1259
1263
|
await r.run({
|
|
1260
1264
|
code: `<?php
|
|
@@ -1275,7 +1279,7 @@ async function Xt(r) {
|
|
|
1275
1279
|
async function nt(r, {
|
|
1276
1280
|
targetPath: t,
|
|
1277
1281
|
zipFile: o,
|
|
1278
|
-
ifAlreadyInstalled:
|
|
1282
|
+
ifAlreadyInstalled: a = "overwrite"
|
|
1279
1283
|
}) {
|
|
1280
1284
|
const i = o.name.replace(/\.zip$/, ""), e = se(await r.documentRoot, "wp-content"), f = se(e, Qr()), h = se(f, "assets", i);
|
|
1281
1285
|
await r.fileExists(h) && await r.rmdir(f, {
|
|
@@ -1289,7 +1293,7 @@ async function nt(r, {
|
|
|
1289
1293
|
let b = await r.listFiles(h, {
|
|
1290
1294
|
prependPath: !0
|
|
1291
1295
|
});
|
|
1292
|
-
b = b.filter((
|
|
1296
|
+
b = b.filter((I) => !I.endsWith("/__MACOSX"));
|
|
1293
1297
|
const k = b.length === 1 && await r.isDir(b[0]);
|
|
1294
1298
|
let m, w = "";
|
|
1295
1299
|
k ? (w = b[0], m = b[0].split("/").pop()) : (w = h, m = i);
|
|
@@ -1299,18 +1303,18 @@ async function nt(r, {
|
|
|
1299
1303
|
throw new Error(
|
|
1300
1304
|
`Cannot install asset ${m} to ${S} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`
|
|
1301
1305
|
);
|
|
1302
|
-
if (
|
|
1306
|
+
if (a === "overwrite")
|
|
1303
1307
|
await r.rmdir(S, {
|
|
1304
1308
|
recursive: !0
|
|
1305
1309
|
});
|
|
1306
1310
|
else {
|
|
1307
|
-
if (
|
|
1311
|
+
if (a === "skip")
|
|
1308
1312
|
return {
|
|
1309
1313
|
assetFolderPath: S,
|
|
1310
1314
|
assetFolderName: m
|
|
1311
1315
|
};
|
|
1312
1316
|
throw new Error(
|
|
1313
|
-
`Cannot install asset ${m} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${
|
|
1317
|
+
`Cannot install asset ${m} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${a}`
|
|
1314
1318
|
);
|
|
1315
1319
|
}
|
|
1316
1320
|
}
|
|
@@ -1328,7 +1332,7 @@ function fr(r) {
|
|
|
1328
1332
|
const t = r.split(".").shift().replace(/-/g, " ");
|
|
1329
1333
|
return t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
|
|
1330
1334
|
}
|
|
1331
|
-
const es = async (r, { pluginZipFile: t, ifAlreadyInstalled: o, options:
|
|
1335
|
+
const es = async (r, { pluginZipFile: t, ifAlreadyInstalled: o, options: a = {} }, l) => {
|
|
1332
1336
|
const i = t.name.split("/").pop() || "plugin.zip", e = fr(i);
|
|
1333
1337
|
l == null || l.tracker.setCaption(`Installing the ${e} plugin`);
|
|
1334
1338
|
const { assetFolderPath: f } = await nt(r, {
|
|
@@ -1336,7 +1340,7 @@ const es = async (r, { pluginZipFile: t, ifAlreadyInstalled: o, options: p = {}
|
|
|
1336
1340
|
zipFile: t,
|
|
1337
1341
|
targetPath: `${await r.documentRoot}/wp-content/plugins`
|
|
1338
1342
|
});
|
|
1339
|
-
("activate" in
|
|
1343
|
+
("activate" in a ? a.activate : !0) && await $r(
|
|
1340
1344
|
r,
|
|
1341
1345
|
{
|
|
1342
1346
|
pluginPath: f,
|
|
@@ -1344,7 +1348,7 @@ const es = async (r, { pluginZipFile: t, ifAlreadyInstalled: o, options: p = {}
|
|
|
1344
1348
|
},
|
|
1345
1349
|
l
|
|
1346
1350
|
);
|
|
1347
|
-
}, rs = async (r, { themeZipFile: t, ifAlreadyInstalled: o, options:
|
|
1351
|
+
}, rs = async (r, { themeZipFile: t, ifAlreadyInstalled: o, options: a = {} }, l) => {
|
|
1348
1352
|
const i = fr(t.name);
|
|
1349
1353
|
l == null || l.tracker.setCaption(`Installing the ${i} theme`);
|
|
1350
1354
|
const { assetFolderName: e } = await nt(r, {
|
|
@@ -1352,13 +1356,13 @@ const es = async (r, { pluginZipFile: t, ifAlreadyInstalled: o, options: p = {}
|
|
|
1352
1356
|
zipFile: t,
|
|
1353
1357
|
targetPath: `${await r.documentRoot}/wp-content/themes`
|
|
1354
1358
|
});
|
|
1355
|
-
("activate" in
|
|
1359
|
+
("activate" in a ? a.activate : !0) && await Kr(
|
|
1356
1360
|
r,
|
|
1357
1361
|
{
|
|
1358
1362
|
themeFolderName: e
|
|
1359
1363
|
},
|
|
1360
1364
|
l
|
|
1361
|
-
), ("importStarterContent" in
|
|
1365
|
+
), ("importStarterContent" in a ? a.importStarterContent : !1) && await it(
|
|
1362
1366
|
r,
|
|
1363
1367
|
{
|
|
1364
1368
|
themeSlug: e
|
|
@@ -1368,10 +1372,10 @@ const es = async (r, { pluginZipFile: t, ifAlreadyInstalled: o, options: p = {}
|
|
|
1368
1372
|
}, ts = async (r, t, o) => {
|
|
1369
1373
|
var l;
|
|
1370
1374
|
(l = o == null ? void 0 : o.tracker) == null || l.setCaption("Resetting WordPress data");
|
|
1371
|
-
const
|
|
1375
|
+
const a = await r.documentRoot;
|
|
1372
1376
|
await r.run({
|
|
1373
1377
|
env: {
|
|
1374
|
-
DOCROOT:
|
|
1378
|
+
DOCROOT: a
|
|
1375
1379
|
},
|
|
1376
1380
|
code: `<?php
|
|
1377
1381
|
require getenv('DOCROOT') . '/wp-load.php';
|
|
@@ -1407,7 +1411,7 @@ const es = async (r, { pluginZipFile: t, ifAlreadyInstalled: o, options: p = {}
|
|
|
1407
1411
|
}
|
|
1408
1412
|
});
|
|
1409
1413
|
}, is = async (r, { selfContained: t = !1 } = {}) => {
|
|
1410
|
-
const o = "/tmp/wordpress-playground.zip",
|
|
1414
|
+
const o = "/tmp/wordpress-playground.zip", a = await r.documentRoot, l = se(a, "wp-content");
|
|
1411
1415
|
let i = Hr;
|
|
1412
1416
|
t && (i = i.filter((h) => !h.startsWith("themes/twenty")).filter(
|
|
1413
1417
|
(h) => h !== "mu-plugins/sqlite-database-integration"
|
|
@@ -1415,12 +1419,12 @@ const es = async (r, { pluginZipFile: t, ifAlreadyInstalled: o, options: p = {}
|
|
|
1415
1419
|
const e = lr({
|
|
1416
1420
|
zipPath: o,
|
|
1417
1421
|
wpContentPath: l,
|
|
1418
|
-
documentRoot:
|
|
1422
|
+
documentRoot: a,
|
|
1419
1423
|
exceptPaths: i.map(
|
|
1420
|
-
(h) => se(
|
|
1424
|
+
(h) => se(a, "wp-content", h)
|
|
1421
1425
|
),
|
|
1422
1426
|
additionalPaths: t ? {
|
|
1423
|
-
[se(
|
|
1427
|
+
[se(a, "wp-config.php")]: "wp-config.php"
|
|
1424
1428
|
} : {}
|
|
1425
1429
|
});
|
|
1426
1430
|
await ns(
|
|
@@ -1508,8 +1512,8 @@ const as = async (r, { command: t, wpCliPath: o = "/tmp/wp-cli.phar" }) => {
|
|
|
1508
1512
|
|
|
1509
1513
|
Read more about it in the documentation.
|
|
1510
1514
|
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`);
|
|
1511
|
-
let
|
|
1512
|
-
if (typeof t == "string" ? (t = t.trim(),
|
|
1515
|
+
let a;
|
|
1516
|
+
if (typeof t == "string" ? (t = t.trim(), a = ps(t)) : a = t, a.shift() !== "wp")
|
|
1513
1517
|
throw new Error('The first argument must be "wp".');
|
|
1514
1518
|
await r.writeFile("/tmp/stdout", ""), await r.writeFile("/tmp/stderr", ""), await r.writeFile(
|
|
1515
1519
|
"/wordpress/run-cli.php",
|
|
@@ -1526,7 +1530,7 @@ const as = async (r, { command: t, wpCliPath: o = "/tmp/wp-cli.phar" }) => {
|
|
|
1526
1530
|
$GLOBALS['argv'] = array_merge([
|
|
1527
1531
|
"/tmp/wp-cli.phar",
|
|
1528
1532
|
"--path=/wordpress"
|
|
1529
|
-
], ${ie(
|
|
1533
|
+
], ${ie(a)});
|
|
1530
1534
|
|
|
1531
1535
|
// Provide stdin, stdout, stderr streams outside of
|
|
1532
1536
|
// the CLI SAPI.
|
|
@@ -1545,22 +1549,22 @@ const as = async (r, { command: t, wpCliPath: o = "/tmp/wp-cli.phar" }) => {
|
|
|
1545
1549
|
return i;
|
|
1546
1550
|
};
|
|
1547
1551
|
function ps(r) {
|
|
1548
|
-
let
|
|
1552
|
+
let a = 0, l = "";
|
|
1549
1553
|
const i = [];
|
|
1550
1554
|
let e = "";
|
|
1551
1555
|
for (let f = 0; f < r.length; f++) {
|
|
1552
1556
|
const h = r[f];
|
|
1553
|
-
|
|
1557
|
+
a === 0 ? h === '"' || h === "'" ? (a = 1, l = h) : h.match(/\s/) ? (e && i.push(e), e = "") : e += h : a === 1 && (h === "\\" ? (f++, e += r[f]) : h === l ? (a = 0, l = "") : e += h);
|
|
1554
1558
|
}
|
|
1555
1559
|
return e && i.push(e), i;
|
|
1556
1560
|
}
|
|
1557
1561
|
const ls = async (r, { language: t }, o) => {
|
|
1558
1562
|
o == null || o.tracker.setCaption((o == null ? void 0 : o.initialCaption) || "Translating"), await r.defineConstant("WPLANG", t);
|
|
1559
|
-
const
|
|
1563
|
+
const a = await r.documentRoot, i = [
|
|
1560
1564
|
{
|
|
1561
1565
|
url: `https://downloads.wordpress.org/translation/core/${(await r.run({
|
|
1562
1566
|
code: `<?php
|
|
1563
|
-
require '${
|
|
1567
|
+
require '${a}/wp-includes/version.php';
|
|
1564
1568
|
echo $wp_version;
|
|
1565
1569
|
`
|
|
1566
1570
|
})).text}/${t}.zip`,
|
|
@@ -1568,8 +1572,8 @@ const ls = async (r, { language: t }, o) => {
|
|
|
1568
1572
|
}
|
|
1569
1573
|
], f = (await r.run({
|
|
1570
1574
|
code: `<?php
|
|
1571
|
-
require_once('${
|
|
1572
|
-
require_once('${
|
|
1575
|
+
require_once('${a}/wp-load.php');
|
|
1576
|
+
require_once('${a}/wp-admin/includes/plugin.php');
|
|
1573
1577
|
echo json_encode(
|
|
1574
1578
|
array_values(
|
|
1575
1579
|
array_map(
|
|
@@ -1596,8 +1600,8 @@ const ls = async (r, { language: t }, o) => {
|
|
|
1596
1600
|
});
|
|
1597
1601
|
const b = (await r.run({
|
|
1598
1602
|
code: `<?php
|
|
1599
|
-
require_once('${
|
|
1600
|
-
require_once('${
|
|
1603
|
+
require_once('${a}/wp-load.php');
|
|
1604
|
+
require_once('${a}/wp-admin/includes/theme.php');
|
|
1601
1605
|
echo json_encode(
|
|
1602
1606
|
array_values(
|
|
1603
1607
|
array_map(
|
|
@@ -1617,7 +1621,7 @@ const ls = async (r, { language: t }, o) => {
|
|
|
1617
1621
|
url: `https://downloads.wordpress.org/translation/theme/${k}/${m}/${t}.zip`,
|
|
1618
1622
|
type: "theme"
|
|
1619
1623
|
});
|
|
1620
|
-
await r.isDir(`${
|
|
1624
|
+
await r.isDir(`${a}/wp-content/languages/plugins`) || await r.mkdir(`${a}/wp-content/languages/plugins`), await r.isDir(`${a}/wp-content/languages/themes`) || await r.mkdir(`${a}/wp-content/languages/themes`);
|
|
1621
1625
|
for (const { url: k, type: m } of i)
|
|
1622
1626
|
try {
|
|
1623
1627
|
const w = await fetch(k);
|
|
@@ -1625,7 +1629,7 @@ const ls = async (r, { language: t }, o) => {
|
|
|
1625
1629
|
throw new Error(
|
|
1626
1630
|
`Failed to download translations for ${m}: ${w.statusText}`
|
|
1627
1631
|
);
|
|
1628
|
-
let S = `${
|
|
1632
|
+
let S = `${a}/wp-content/languages`;
|
|
1629
1633
|
m === "plugin" ? S += "/plugins" : m === "theme" && (S += "/themes"), await ot(
|
|
1630
1634
|
r,
|
|
1631
1635
|
new File([await w.blob()], `${t}-${m}.zip`),
|
|
@@ -1672,7 +1676,7 @@ const ls = async (r, { language: t }, o) => {
|
|
|
1672
1676
|
zipWpContent: is
|
|
1673
1677
|
}, Symbol.toStringTag, { value: "Module" })), us = 5 * 1024 * 1024;
|
|
1674
1678
|
function ds(r, t) {
|
|
1675
|
-
const o = r.headers.get("content-length") || "",
|
|
1679
|
+
const o = r.headers.get("content-length") || "", a = parseInt(o, 10) || us;
|
|
1676
1680
|
function l(i, e) {
|
|
1677
1681
|
t(
|
|
1678
1682
|
new CustomEvent("progress", {
|
|
@@ -1699,7 +1703,7 @@ function ds(r, t) {
|
|
|
1699
1703
|
l(f, f), i.close();
|
|
1700
1704
|
break;
|
|
1701
1705
|
} else
|
|
1702
|
-
l(f,
|
|
1706
|
+
l(f, a), i.enqueue(b);
|
|
1703
1707
|
} catch (h) {
|
|
1704
1708
|
ae.error({ e: h }), i.error(h);
|
|
1705
1709
|
break;
|
|
@@ -1718,9 +1722,9 @@ class ur extends EventTarget {
|
|
|
1718
1722
|
constructor({
|
|
1719
1723
|
weight: t = 1,
|
|
1720
1724
|
caption: o = "",
|
|
1721
|
-
fillTime:
|
|
1725
|
+
fillTime: a = 4
|
|
1722
1726
|
} = {}) {
|
|
1723
|
-
super(), this._selfWeight = 1, this._selfDone = !1, this._selfProgress = 0, this._selfCaption = "", this._isFilling = !1, this._subTrackers = [], this._weight = t, this._selfCaption = o, this._fillTime =
|
|
1727
|
+
super(), this._selfWeight = 1, this._selfDone = !1, this._selfProgress = 0, this._selfCaption = "", this._isFilling = !1, this._subTrackers = [], this._weight = t, this._selfCaption = o, this._fillTime = a;
|
|
1724
1728
|
}
|
|
1725
1729
|
/**
|
|
1726
1730
|
* Creates a new sub-tracker with a specific weight.
|
|
@@ -1763,14 +1767,14 @@ class ur extends EventTarget {
|
|
|
1763
1767
|
`Cannot add a stage with weight ${t} as the total weight of registered stages would exceed 1.`
|
|
1764
1768
|
);
|
|
1765
1769
|
this._selfWeight -= t;
|
|
1766
|
-
const
|
|
1770
|
+
const a = new ur({
|
|
1767
1771
|
caption: o,
|
|
1768
1772
|
weight: t,
|
|
1769
1773
|
fillTime: this._fillTime
|
|
1770
1774
|
});
|
|
1771
|
-
return this._subTrackers.push(
|
|
1775
|
+
return this._subTrackers.push(a), a.addEventListener("progress", () => this.notifyProgress()), a.addEventListener("done", () => {
|
|
1772
1776
|
this.done && this.notifyDone();
|
|
1773
|
-
}),
|
|
1777
|
+
}), a;
|
|
1774
1778
|
}
|
|
1775
1779
|
/**
|
|
1776
1780
|
* Fills the progress bar slowly over time, simulating progress.
|
|
@@ -1794,10 +1798,10 @@ class ur extends EventTarget {
|
|
|
1794
1798
|
if (this._isFilling)
|
|
1795
1799
|
return;
|
|
1796
1800
|
this._isFilling = !0;
|
|
1797
|
-
const o = 100,
|
|
1801
|
+
const o = 100, a = this._fillTime / o;
|
|
1798
1802
|
this._fillInterval = setInterval(() => {
|
|
1799
1803
|
this.set(this._selfProgress + 1), t && this._selfProgress >= 99 && clearInterval(this._fillInterval);
|
|
1800
|
-
},
|
|
1804
|
+
}, a);
|
|
1801
1805
|
}
|
|
1802
1806
|
set(t) {
|
|
1803
1807
|
this._selfProgress = Math.min(t, 100), this.notifyProgress(), this._selfProgress + hr >= 100 && this.finish();
|
|
@@ -1824,7 +1828,7 @@ class ur extends EventTarget {
|
|
|
1824
1828
|
if (this._selfDone)
|
|
1825
1829
|
return 100;
|
|
1826
1830
|
const t = this._subTrackers.reduce(
|
|
1827
|
-
(o,
|
|
1831
|
+
(o, a) => o + a.progress * a.weight,
|
|
1828
1832
|
this._selfProgress * this._selfWeight
|
|
1829
1833
|
);
|
|
1830
1834
|
return Math.round(t * 1e4) / 1e4;
|
|
@@ -1965,7 +1969,7 @@ function cs(r) {
|
|
|
1965
1969
|
return ir[t];
|
|
1966
1970
|
}
|
|
1967
1971
|
function ge(r = "") {
|
|
1968
|
-
return function(o,
|
|
1972
|
+
return function(o, a, l) {
|
|
1969
1973
|
const i = l.value;
|
|
1970
1974
|
l.value = function(...e) {
|
|
1971
1975
|
try {
|
|
@@ -1983,10 +1987,10 @@ function ge(r = "") {
|
|
|
1983
1987
|
};
|
|
1984
1988
|
};
|
|
1985
1989
|
}
|
|
1986
|
-
var ms = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, be = (r, t, o,
|
|
1987
|
-
for (var l =
|
|
1988
|
-
(e = r[i]) && (l = (
|
|
1989
|
-
return
|
|
1990
|
+
var ms = Object.defineProperty, ys = Object.getOwnPropertyDescriptor, be = (r, t, o, a) => {
|
|
1991
|
+
for (var l = a > 1 ? void 0 : a ? ys(t, o) : t, i = r.length - 1, e; i >= 0; i--)
|
|
1992
|
+
(e = r[i]) && (l = (a ? e(t, o, l) : e(l)) || l);
|
|
1993
|
+
return a && l && ms(t, o, l), l;
|
|
1990
1994
|
};
|
|
1991
1995
|
const we = class pe {
|
|
1992
1996
|
static readFileAsText(t, o) {
|
|
@@ -1995,8 +1999,8 @@ const we = class pe {
|
|
|
1995
1999
|
static readFileAsBuffer(t, o) {
|
|
1996
2000
|
return t.readFile(o);
|
|
1997
2001
|
}
|
|
1998
|
-
static writeFile(t, o,
|
|
1999
|
-
t.writeFile(o,
|
|
2002
|
+
static writeFile(t, o, a) {
|
|
2003
|
+
t.writeFile(o, a);
|
|
2000
2004
|
}
|
|
2001
2005
|
static unlink(t, o) {
|
|
2002
2006
|
t.unlink(o);
|
|
@@ -2009,34 +2013,34 @@ const we = class pe {
|
|
|
2009
2013
|
* @param fromPath The path to rename.
|
|
2010
2014
|
* @param toPath The new path.
|
|
2011
2015
|
*/
|
|
2012
|
-
static mv(t, o,
|
|
2016
|
+
static mv(t, o, a) {
|
|
2013
2017
|
try {
|
|
2014
|
-
const l = t.lookupPath(o).node.mount, i = pe.fileExists(t,
|
|
2015
|
-
l.mountpoint !== i.mountpoint ? (pe.copyRecursive(t, o,
|
|
2018
|
+
const l = t.lookupPath(o).node.mount, i = pe.fileExists(t, a) ? t.lookupPath(a).node.mount : t.lookupPath(Yr(a)).node.mount;
|
|
2019
|
+
l.mountpoint !== i.mountpoint ? (pe.copyRecursive(t, o, a), pe.isDir(t, o) ? pe.rmdir(t, o, { recursive: !0 }) : t.unlink(o)) : t.rename(o, a);
|
|
2016
2020
|
} catch (l) {
|
|
2017
2021
|
const i = cs(l);
|
|
2018
2022
|
throw i ? new Error(
|
|
2019
|
-
`Could not move ${o} to ${
|
|
2023
|
+
`Could not move ${o} to ${a}: ${i}`,
|
|
2020
2024
|
{
|
|
2021
2025
|
cause: l
|
|
2022
2026
|
}
|
|
2023
2027
|
) : l;
|
|
2024
2028
|
}
|
|
2025
2029
|
}
|
|
2026
|
-
static rmdir(t, o,
|
|
2027
|
-
|
|
2030
|
+
static rmdir(t, o, a = { recursive: !0 }) {
|
|
2031
|
+
a != null && a.recursive && pe.listFiles(t, o).forEach((l) => {
|
|
2028
2032
|
const i = `${o}/${l}`;
|
|
2029
|
-
pe.isDir(t, i) ? pe.rmdir(t, i,
|
|
2033
|
+
pe.isDir(t, i) ? pe.rmdir(t, i, a) : pe.unlink(t, i);
|
|
2030
2034
|
}), t.rmdir(o);
|
|
2031
2035
|
}
|
|
2032
|
-
static listFiles(t, o,
|
|
2036
|
+
static listFiles(t, o, a = { prependPath: !1 }) {
|
|
2033
2037
|
if (!pe.fileExists(t, o))
|
|
2034
2038
|
return [];
|
|
2035
2039
|
try {
|
|
2036
2040
|
const l = t.readdir(o).filter(
|
|
2037
2041
|
(i) => i !== "." && i !== ".."
|
|
2038
2042
|
);
|
|
2039
|
-
if (
|
|
2043
|
+
if (a.prependPath) {
|
|
2040
2044
|
const i = o.replace(/\/$/, "");
|
|
2041
2045
|
return l.map((e) => `${i}/${e}`);
|
|
2042
2046
|
}
|
|
@@ -2058,8 +2062,8 @@ const we = class pe {
|
|
|
2058
2062
|
* @param target
|
|
2059
2063
|
* @param link
|
|
2060
2064
|
*/
|
|
2061
|
-
static symlink(t, o,
|
|
2062
|
-
return t.symlink(o,
|
|
2065
|
+
static symlink(t, o, a) {
|
|
2066
|
+
return t.symlink(o, a);
|
|
2063
2067
|
}
|
|
2064
2068
|
/**
|
|
2065
2069
|
* Checks if a path is a symlink in the PHP filesystem.
|
|
@@ -2094,10 +2098,10 @@ const we = class pe {
|
|
|
2094
2098
|
static mkdir(t, o) {
|
|
2095
2099
|
t.mkdirTree(o);
|
|
2096
2100
|
}
|
|
2097
|
-
static copyRecursive(t, o,
|
|
2101
|
+
static copyRecursive(t, o, a) {
|
|
2098
2102
|
const l = t.lookupPath(o).node;
|
|
2099
2103
|
if (t.isDir(l.mode)) {
|
|
2100
|
-
t.mkdirTree(
|
|
2104
|
+
t.mkdirTree(a);
|
|
2101
2105
|
const i = t.readdir(o).filter(
|
|
2102
2106
|
(e) => e !== "." && e !== ".."
|
|
2103
2107
|
);
|
|
@@ -2105,10 +2109,10 @@ const we = class pe {
|
|
|
2105
2109
|
pe.copyRecursive(
|
|
2106
2110
|
t,
|
|
2107
2111
|
se(o, e),
|
|
2108
|
-
se(
|
|
2112
|
+
se(a, e)
|
|
2109
2113
|
);
|
|
2110
2114
|
} else
|
|
2111
|
-
t.writeFile(
|
|
2115
|
+
t.writeFile(a, t.readFile(o));
|
|
2112
2116
|
}
|
|
2113
2117
|
};
|
|
2114
2118
|
be([
|
|
@@ -2163,8 +2167,8 @@ const hs = {
|
|
|
2163
2167
|
200: "OK"
|
|
2164
2168
|
};
|
|
2165
2169
|
class or {
|
|
2166
|
-
constructor(t, o,
|
|
2167
|
-
this.httpStatusCode = t, this.headers = o, this.bytes =
|
|
2170
|
+
constructor(t, o, a, l = "", i = 0) {
|
|
2171
|
+
this.httpStatusCode = t, this.headers = o, this.bytes = a, this.exitCode = i, this.errors = l;
|
|
2168
2172
|
}
|
|
2169
2173
|
static forHttpCode(t, o = "") {
|
|
2170
2174
|
return new or(
|
|
@@ -2214,7 +2218,7 @@ const Cr = "/internal/shared/php.ini", { hasOwnProperty: gr } = Object.prototype
|
|
|
2214
2218
|
typeof t == "string" && (t = { section: t }), t.align = t.align === !0, t.newline = t.newline === !0, t.sort = t.sort === !0, t.whitespace = t.whitespace === !0 || t.align === !0, t.platform = t.platform || typeof process < "u" && process.platform, t.bracketedArray = t.bracketedArray !== !1;
|
|
2215
2219
|
const o = t.platform === "win32" ? `\r
|
|
2216
2220
|
` : `
|
|
2217
|
-
`,
|
|
2221
|
+
`, a = t.whitespace ? " = " : "=", l = [], i = t.sort ? Object.keys(r).sort() : Object.keys(r);
|
|
2218
2222
|
let e = 0;
|
|
2219
2223
|
t.align && (e = Ee(
|
|
2220
2224
|
i.filter((b) => r[b] === null || Array.isArray(r[b]) || typeof r[b] != "object").map((b) => Array.isArray(r[b]) ? `${b}[]` : b).concat([""]).reduce((b, k) => Ee(b).length >= Ee(k).length ? b : k)
|
|
@@ -2225,9 +2229,9 @@ const Cr = "/internal/shared/php.ini", { hasOwnProperty: gr } = Object.prototype
|
|
|
2225
2229
|
const k = r[b];
|
|
2226
2230
|
if (k && Array.isArray(k))
|
|
2227
2231
|
for (const m of k)
|
|
2228
|
-
f += Ee(`${b}${h}`).padEnd(e, " ") +
|
|
2232
|
+
f += Ee(`${b}${h}`).padEnd(e, " ") + a + Ee(m) + o;
|
|
2229
2233
|
else
|
|
2230
|
-
k && typeof k == "object" ? l.push(b) : f += Ee(b).padEnd(e, " ") +
|
|
2234
|
+
k && typeof k == "object" ? l.push(b) : f += Ee(b).padEnd(e, " ") + a + Ee(k) + o;
|
|
2231
2235
|
}
|
|
2232
2236
|
t.section && f.length && (f = "[" + Ee(t.section) + "]" + (t.newline ? o + o : o) + f);
|
|
2233
2237
|
for (const b of l) {
|
|
@@ -2240,20 +2244,20 @@ const Cr = "/internal/shared/php.ini", { hasOwnProperty: gr } = Object.prototype
|
|
|
2240
2244
|
return f;
|
|
2241
2245
|
};
|
|
2242
2246
|
function at(r, t) {
|
|
2243
|
-
var o = 0,
|
|
2247
|
+
var o = 0, a = 0, l = 0, i = [];
|
|
2244
2248
|
do
|
|
2245
2249
|
if (l = r.indexOf(t, o), l !== -1) {
|
|
2246
2250
|
if (o = l + t.length, l > 0 && r[l - 1] === "\\")
|
|
2247
2251
|
continue;
|
|
2248
|
-
i.push(r.slice(
|
|
2252
|
+
i.push(r.slice(a, l)), a = l + t.length;
|
|
2249
2253
|
}
|
|
2250
2254
|
while (l !== -1);
|
|
2251
|
-
return i.push(r.slice(
|
|
2255
|
+
return i.push(r.slice(a)), i;
|
|
2252
2256
|
}
|
|
2253
2257
|
const Ir = (r, t = {}) => {
|
|
2254
2258
|
t.bracketedArray = t.bracketedArray !== !1;
|
|
2255
2259
|
const o = /* @__PURE__ */ Object.create(null);
|
|
2256
|
-
let
|
|
2260
|
+
let a = o, l = null;
|
|
2257
2261
|
const i = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i, e = r.split(/[\r\n]+/g), f = {};
|
|
2258
2262
|
for (const b of e) {
|
|
2259
2263
|
if (!b || b.match(/^\s*[;#]/) || b.match(/^\s*$/))
|
|
@@ -2263,10 +2267,10 @@ const Ir = (r, t = {}) => {
|
|
|
2263
2267
|
continue;
|
|
2264
2268
|
if (k[1] !== void 0) {
|
|
2265
2269
|
if (l = Xe(k[1]), l === "__proto__") {
|
|
2266
|
-
|
|
2270
|
+
a = /* @__PURE__ */ Object.create(null);
|
|
2267
2271
|
continue;
|
|
2268
2272
|
}
|
|
2269
|
-
|
|
2273
|
+
a = o[l] = o[l] || /* @__PURE__ */ Object.create(null);
|
|
2270
2274
|
continue;
|
|
2271
2275
|
}
|
|
2272
2276
|
const m = Xe(k[2]);
|
|
@@ -2275,19 +2279,19 @@ const Ir = (r, t = {}) => {
|
|
|
2275
2279
|
const S = w ? m.slice(0, -2) : m;
|
|
2276
2280
|
if (S === "__proto__")
|
|
2277
2281
|
continue;
|
|
2278
|
-
const
|
|
2279
|
-
w && (gr.call(
|
|
2282
|
+
const I = k[3] ? Xe(k[4]) : !0, P = I === "true" || I === "false" || I === "null" ? JSON.parse(I) : I;
|
|
2283
|
+
w && (gr.call(a, S) ? Array.isArray(a[S]) || (a[S] = [a[S]]) : a[S] = []), Array.isArray(a[S]) ? a[S].push(P) : a[S] = P;
|
|
2280
2284
|
}
|
|
2281
2285
|
const h = [];
|
|
2282
2286
|
for (const b of Object.keys(o)) {
|
|
2283
2287
|
if (!gr.call(o, b) || typeof o[b] != "object" || Array.isArray(o[b]))
|
|
2284
2288
|
continue;
|
|
2285
2289
|
const k = at(b, ".");
|
|
2286
|
-
|
|
2290
|
+
a = o;
|
|
2287
2291
|
const m = k.pop(), w = m.replace(/\\\./g, ".");
|
|
2288
2292
|
for (const S of k)
|
|
2289
|
-
S !== "__proto__" && ((!gr.call(
|
|
2290
|
-
|
|
2293
|
+
S !== "__proto__" && ((!gr.call(a, S) || typeof a[S] != "object") && (a[S] = /* @__PURE__ */ Object.create(null)), a = a[S]);
|
|
2294
|
+
a === o && w === m || (a[w] = o[b], h.push(b));
|
|
2291
2295
|
}
|
|
2292
2296
|
for (const b of h)
|
|
2293
2297
|
delete o[b];
|
|
@@ -2301,8 +2305,8 @@ const Ir = (r, t = {}) => {
|
|
|
2301
2305
|
}
|
|
2302
2306
|
} else {
|
|
2303
2307
|
let t = !1, o = "";
|
|
2304
|
-
for (let
|
|
2305
|
-
const i = r.charAt(
|
|
2308
|
+
for (let a = 0, l = r.length; a < l; a++) {
|
|
2309
|
+
const i = r.charAt(a);
|
|
2306
2310
|
if (t)
|
|
2307
2311
|
"\\;#".indexOf(i) !== -1 ? o += i : o += "\\" + i, t = !1;
|
|
2308
2312
|
else {
|
|
@@ -2325,8 +2329,8 @@ var Dr = {
|
|
|
2325
2329
|
};
|
|
2326
2330
|
async function ai(r, t) {
|
|
2327
2331
|
const o = Dr.parse(await r.readFileAsText(Cr));
|
|
2328
|
-
for (const [
|
|
2329
|
-
l == null ? delete o[
|
|
2332
|
+
for (const [a, l] of Object.entries(t))
|
|
2333
|
+
l == null ? delete o[a] : o[a] = l;
|
|
2330
2334
|
await r.writeFile(Cr, Dr.stringify(o));
|
|
2331
2335
|
}
|
|
2332
2336
|
ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symbol.asyncIterator] = async function* () {
|
|
@@ -2379,23 +2383,23 @@ class Le {
|
|
|
2379
2383
|
* @param options Additional options for the Resource
|
|
2380
2384
|
* @returns A new Resource instance
|
|
2381
2385
|
*/
|
|
2382
|
-
static create(t, { semaphore: o, progress:
|
|
2386
|
+
static create(t, { semaphore: o, progress: a }) {
|
|
2383
2387
|
let l;
|
|
2384
2388
|
switch (t.resource) {
|
|
2385
2389
|
case "vfs":
|
|
2386
|
-
l = new vs(t,
|
|
2390
|
+
l = new vs(t, a);
|
|
2387
2391
|
break;
|
|
2388
2392
|
case "literal":
|
|
2389
|
-
l = new Ps(t,
|
|
2393
|
+
l = new Ps(t, a);
|
|
2390
2394
|
break;
|
|
2391
2395
|
case "wordpress.org/themes":
|
|
2392
|
-
l = new Os(t,
|
|
2396
|
+
l = new Os(t, a);
|
|
2393
2397
|
break;
|
|
2394
2398
|
case "wordpress.org/plugins":
|
|
2395
|
-
l = new Es(t,
|
|
2399
|
+
l = new Es(t, a);
|
|
2396
2400
|
break;
|
|
2397
2401
|
case "url":
|
|
2398
|
-
l = new ks(t,
|
|
2402
|
+
l = new ks(t, a);
|
|
2399
2403
|
break;
|
|
2400
2404
|
default:
|
|
2401
2405
|
throw new Error(`Invalid resource: ${t}`);
|
|
@@ -2462,7 +2466,7 @@ class Ar extends Le {
|
|
|
2462
2466
|
}
|
|
2463
2467
|
/** @inheritDoc */
|
|
2464
2468
|
async resolve() {
|
|
2465
|
-
var o,
|
|
2469
|
+
var o, a;
|
|
2466
2470
|
(o = this.progress) == null || o.setCaption(this.caption);
|
|
2467
2471
|
const t = this.getURL();
|
|
2468
2472
|
try {
|
|
@@ -2471,7 +2475,7 @@ class Ar extends Le {
|
|
|
2471
2475
|
throw new Error(`Could not download "${t}"`);
|
|
2472
2476
|
if (l = await ds(
|
|
2473
2477
|
l,
|
|
2474
|
-
((
|
|
2478
|
+
((a = this.progress) == null ? void 0 : a.loadingListener) ?? _s
|
|
2475
2479
|
), l.status !== 200)
|
|
2476
2480
|
throw new Error(`Could not download "${t}"`);
|
|
2477
2481
|
return new File([await l.blob()], this.name);
|
|
@@ -2534,7 +2538,15 @@ class ks extends Ar {
|
|
|
2534
2538
|
* @param progress The progress tracker.
|
|
2535
2539
|
*/
|
|
2536
2540
|
constructor(t, o) {
|
|
2537
|
-
super(o), this.resource = t
|
|
2541
|
+
if (super(o), this.resource = t, this.resource.url.startsWith("https://github.com/")) {
|
|
2542
|
+
const a = this.resource.url.match(
|
|
2543
|
+
/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/
|
|
2544
|
+
);
|
|
2545
|
+
a != null && a.groups && (this.resource = {
|
|
2546
|
+
...this.resource,
|
|
2547
|
+
url: `https://raw.githubusercontent.com/${a.groups.owner}/${a.groups.repo}/${a.groups.branch}/${a.groups.path}`
|
|
2548
|
+
});
|
|
2549
|
+
}
|
|
2538
2550
|
}
|
|
2539
2551
|
/** @inheritDoc */
|
|
2540
2552
|
getURL() {
|
|
@@ -2750,7 +2762,7 @@ const js = {
|
|
|
2750
2762
|
type: "string",
|
|
2751
2763
|
enum: ["8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0"]
|
|
2752
2764
|
}, qs = { type: "string", enum: ["kitchen-sink", "light"] }, dt = Object.prototype.hasOwnProperty;
|
|
2753
|
-
function re(r, { instancePath: t = "", parentData: o, parentDataProperty:
|
|
2765
|
+
function re(r, { instancePath: t = "", parentData: o, parentDataProperty: a, rootData: l = r } = {}) {
|
|
2754
2766
|
let i = null, e = 0;
|
|
2755
2767
|
const f = e;
|
|
2756
2768
|
let h = !1;
|
|
@@ -2759,16 +2771,16 @@ function re(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
2759
2771
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
2760
2772
|
let x;
|
|
2761
2773
|
if (r.resource === void 0 && (x = "resource") || r.path === void 0 && (x = "path")) {
|
|
2762
|
-
const
|
|
2774
|
+
const D = {
|
|
2763
2775
|
instancePath: t,
|
|
2764
2776
|
schemaPath: "#/definitions/VFSReference/required",
|
|
2765
2777
|
keyword: "required",
|
|
2766
2778
|
params: { missingProperty: x },
|
|
2767
2779
|
message: "must have required property '" + x + "'"
|
|
2768
2780
|
};
|
|
2769
|
-
i === null ? i = [
|
|
2781
|
+
i === null ? i = [D] : i.push(D), e++;
|
|
2770
2782
|
} else {
|
|
2771
|
-
const
|
|
2783
|
+
const D = e;
|
|
2772
2784
|
for (const z in r)
|
|
2773
2785
|
if (!(z === "resource" || z === "path")) {
|
|
2774
2786
|
const c = {
|
|
@@ -2781,7 +2793,7 @@ function re(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
2781
2793
|
i === null ? i = [c] : i.push(c), e++;
|
|
2782
2794
|
break;
|
|
2783
2795
|
}
|
|
2784
|
-
if (
|
|
2796
|
+
if (D === e) {
|
|
2785
2797
|
if (r.resource !== void 0) {
|
|
2786
2798
|
let z = r.resource;
|
|
2787
2799
|
const c = e;
|
|
@@ -2924,8 +2936,8 @@ function re(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
2924
2936
|
};
|
|
2925
2937
|
i === null ? i = [O] : i.push(O), e++;
|
|
2926
2938
|
}
|
|
2927
|
-
var
|
|
2928
|
-
if (y = y ||
|
|
2939
|
+
var I = g === e;
|
|
2940
|
+
if (y = y || I, !y) {
|
|
2929
2941
|
const O = e;
|
|
2930
2942
|
if (e === O)
|
|
2931
2943
|
if ($ && typeof $ == "object" && !Array.isArray($)) {
|
|
@@ -3175,8 +3187,8 @@ function re(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
3175
3187
|
};
|
|
3176
3188
|
i === null ? i = [q] : i.push(q), e++;
|
|
3177
3189
|
}
|
|
3178
|
-
var
|
|
3179
|
-
y = y ||
|
|
3190
|
+
var I = O === e;
|
|
3191
|
+
y = y || I;
|
|
3180
3192
|
}
|
|
3181
3193
|
if (y)
|
|
3182
3194
|
e = _, i !== null && (_ ? i.length = _ : i = null);
|
|
@@ -4179,7 +4191,7 @@ for existing apps using this option.`
|
|
|
4179
4191
|
type: "string",
|
|
4180
4192
|
enum: ["GET", "POST", "HEAD", "OPTIONS", "PATCH", "PUT", "DELETE"]
|
|
4181
4193
|
};
|
|
4182
|
-
function ye(r, { instancePath: t = "", parentData: o, parentDataProperty:
|
|
4194
|
+
function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: a, rootData: l = r } = {}) {
|
|
4183
4195
|
let i = null, e = 0;
|
|
4184
4196
|
if (e === 0)
|
|
4185
4197
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
@@ -4296,7 +4308,7 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
4296
4308
|
if (f)
|
|
4297
4309
|
if (r.body !== void 0) {
|
|
4298
4310
|
let E = r.body;
|
|
4299
|
-
const x = e,
|
|
4311
|
+
const x = e, D = e;
|
|
4300
4312
|
let z = !1;
|
|
4301
4313
|
const c = e;
|
|
4302
4314
|
if (typeof E != "string") {
|
|
@@ -4689,10 +4701,10 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
4689
4701
|
M
|
|
4690
4702
|
), e++;
|
|
4691
4703
|
}
|
|
4692
|
-
var
|
|
4704
|
+
var I = Q === e;
|
|
4693
4705
|
} else
|
|
4694
|
-
var
|
|
4695
|
-
if (
|
|
4706
|
+
var I = !0;
|
|
4707
|
+
if (I) {
|
|
4696
4708
|
if (v.buffer !== void 0) {
|
|
4697
4709
|
let C = v.buffer;
|
|
4698
4710
|
const Q = e;
|
|
@@ -4798,10 +4810,10 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
4798
4810
|
Y
|
|
4799
4811
|
), e++;
|
|
4800
4812
|
}
|
|
4801
|
-
var
|
|
4813
|
+
var I = Q === e;
|
|
4802
4814
|
} else
|
|
4803
|
-
var
|
|
4804
|
-
if (
|
|
4815
|
+
var I = !0;
|
|
4816
|
+
if (I) {
|
|
4805
4817
|
if (v.byteLength !== void 0) {
|
|
4806
4818
|
let C = v.byteLength;
|
|
4807
4819
|
const Q = e;
|
|
@@ -4829,10 +4841,10 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
4829
4841
|
Y
|
|
4830
4842
|
), e++;
|
|
4831
4843
|
}
|
|
4832
|
-
var
|
|
4844
|
+
var I = Q === e;
|
|
4833
4845
|
} else
|
|
4834
|
-
var
|
|
4835
|
-
if (
|
|
4846
|
+
var I = !0;
|
|
4847
|
+
if (I) {
|
|
4836
4848
|
if (v.byteOffset !== void 0) {
|
|
4837
4849
|
let C = v.byteOffset;
|
|
4838
4850
|
const Q = e;
|
|
@@ -4860,10 +4872,10 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
4860
4872
|
Y
|
|
4861
4873
|
), e++;
|
|
4862
4874
|
}
|
|
4863
|
-
var
|
|
4875
|
+
var I = Q === e;
|
|
4864
4876
|
} else
|
|
4865
|
-
var
|
|
4866
|
-
if (
|
|
4877
|
+
var I = !0;
|
|
4878
|
+
if (I)
|
|
4867
4879
|
if (v.length !== void 0) {
|
|
4868
4880
|
let C = v.length;
|
|
4869
4881
|
const Q = e;
|
|
@@ -4891,9 +4903,9 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
4891
4903
|
Y
|
|
4892
4904
|
), e++;
|
|
4893
4905
|
}
|
|
4894
|
-
var
|
|
4906
|
+
var I = Q === e;
|
|
4895
4907
|
} else
|
|
4896
|
-
var
|
|
4908
|
+
var I = !0;
|
|
4897
4909
|
}
|
|
4898
4910
|
}
|
|
4899
4911
|
}
|
|
@@ -5196,7 +5208,7 @@ function ye(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
5196
5208
|
}
|
|
5197
5209
|
}
|
|
5198
5210
|
if (z)
|
|
5199
|
-
e =
|
|
5211
|
+
e = D, i !== null && (D ? i.length = D : i = null);
|
|
5200
5212
|
else {
|
|
5201
5213
|
const $ = {
|
|
5202
5214
|
instancePath: t + "/body",
|
|
@@ -5292,11 +5304,11 @@ const Rs = {
|
|
|
5292
5304
|
},
|
|
5293
5305
|
additionalProperties: !1
|
|
5294
5306
|
};
|
|
5295
|
-
function oe(r, { instancePath: t = "", parentData: o, parentDataProperty:
|
|
5307
|
+
function oe(r, { instancePath: t = "", parentData: o, parentDataProperty: a, rootData: l = r } = {}) {
|
|
5296
5308
|
let i = null, e = 0;
|
|
5297
5309
|
if (e === 0)
|
|
5298
5310
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
5299
|
-
const
|
|
5311
|
+
const I = e;
|
|
5300
5312
|
for (const P in r)
|
|
5301
5313
|
if (!dt.call(Rs.properties, P))
|
|
5302
5314
|
return oe.errors = [
|
|
@@ -5308,7 +5320,7 @@ function oe(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
5308
5320
|
message: "must NOT have additional properties"
|
|
5309
5321
|
}
|
|
5310
5322
|
], !1;
|
|
5311
|
-
if (
|
|
5323
|
+
if (I === e) {
|
|
5312
5324
|
if (r.relativeUri !== void 0) {
|
|
5313
5325
|
const P = e;
|
|
5314
5326
|
if (typeof r.relativeUri != "string")
|
|
@@ -5435,19 +5447,19 @@ function oe(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
5435
5447
|
let H = !1;
|
|
5436
5448
|
const E = e;
|
|
5437
5449
|
if (typeof P != "string") {
|
|
5438
|
-
const
|
|
5450
|
+
const D = {
|
|
5439
5451
|
instancePath: t + "/body",
|
|
5440
5452
|
schemaPath: "#/properties/body/anyOf/0/type",
|
|
5441
5453
|
keyword: "type",
|
|
5442
5454
|
params: { type: "string" },
|
|
5443
5455
|
message: "must be string"
|
|
5444
5456
|
};
|
|
5445
|
-
i === null ? i = [
|
|
5457
|
+
i === null ? i = [D] : i.push(D), e++;
|
|
5446
5458
|
}
|
|
5447
5459
|
var b = E === e;
|
|
5448
5460
|
if (H = H || b, !H) {
|
|
5449
|
-
const
|
|
5450
|
-
if (e ===
|
|
5461
|
+
const D = e;
|
|
5462
|
+
if (e === D)
|
|
5451
5463
|
if (P && typeof P == "object" && !Array.isArray(P)) {
|
|
5452
5464
|
let c;
|
|
5453
5465
|
if (P.BYTES_PER_ELEMENT === void 0 && (c = "BYTES_PER_ELEMENT") || P.buffer === void 0 && (c = "buffer") || P.byteLength === void 0 && (c = "byteLength") || P.byteOffset === void 0 && (c = "byteOffset") || P.length === void 0 && (c = "length")) {
|
|
@@ -5697,20 +5709,20 @@ function oe(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
5697
5709
|
};
|
|
5698
5710
|
i === null ? i = [c] : i.push(c), e++;
|
|
5699
5711
|
}
|
|
5700
|
-
var b =
|
|
5712
|
+
var b = D === e;
|
|
5701
5713
|
H = H || b;
|
|
5702
5714
|
}
|
|
5703
5715
|
if (H)
|
|
5704
5716
|
e = te, i !== null && (te ? i.length = te : i = null);
|
|
5705
5717
|
else {
|
|
5706
|
-
const
|
|
5718
|
+
const D = {
|
|
5707
5719
|
instancePath: t + "/body",
|
|
5708
5720
|
schemaPath: "#/properties/body/anyOf",
|
|
5709
5721
|
keyword: "anyOf",
|
|
5710
5722
|
params: {},
|
|
5711
5723
|
message: "must match a schema in anyOf"
|
|
5712
5724
|
};
|
|
5713
|
-
return i === null ? i = [
|
|
5725
|
+
return i === null ? i = [D] : i.push(D), e++, oe.errors = i, !1;
|
|
5714
5726
|
}
|
|
5715
5727
|
var f = U === e;
|
|
5716
5728
|
} else
|
|
@@ -5843,7 +5855,7 @@ function oe(r, { instancePath: t = "", parentData: o, parentDataProperty: p, roo
|
|
|
5843
5855
|
], !1;
|
|
5844
5856
|
return oe.errors = i, e === 0;
|
|
5845
5857
|
}
|
|
5846
|
-
function n(r, { instancePath: t = "", parentData: o, parentDataProperty:
|
|
5858
|
+
function n(r, { instancePath: t = "", parentData: o, parentDataProperty: a, rootData: l = r } = {}) {
|
|
5847
5859
|
let i = null, e = 0;
|
|
5848
5860
|
if (e === 0)
|
|
5849
5861
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
@@ -5899,25 +5911,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
5899
5911
|
if (e === u)
|
|
5900
5912
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
5901
5913
|
const L = e;
|
|
5902
|
-
for (const
|
|
5903
|
-
if (!(
|
|
5914
|
+
for (const p in s)
|
|
5915
|
+
if (!(p === "weight" || p === "caption"))
|
|
5904
5916
|
return n.errors = [
|
|
5905
5917
|
{
|
|
5906
5918
|
instancePath: t + "/progress",
|
|
5907
5919
|
schemaPath: "#/oneOf/0/properties/progress/additionalProperties",
|
|
5908
5920
|
keyword: "additionalProperties",
|
|
5909
5921
|
params: {
|
|
5910
|
-
additionalProperty:
|
|
5922
|
+
additionalProperty: p
|
|
5911
5923
|
},
|
|
5912
5924
|
message: "must NOT have additional properties"
|
|
5913
5925
|
}
|
|
5914
5926
|
], !1;
|
|
5915
5927
|
if (L === e) {
|
|
5916
5928
|
if (s.weight !== void 0) {
|
|
5917
|
-
let
|
|
5929
|
+
let p = s.weight;
|
|
5918
5930
|
const j = e;
|
|
5919
|
-
if (!(typeof
|
|
5920
|
-
|
|
5931
|
+
if (!(typeof p == "number" && isFinite(
|
|
5932
|
+
p
|
|
5921
5933
|
)))
|
|
5922
5934
|
return n.errors = [
|
|
5923
5935
|
{
|
|
@@ -5935,7 +5947,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
5935
5947
|
var f = !0;
|
|
5936
5948
|
if (f)
|
|
5937
5949
|
if (s.caption !== void 0) {
|
|
5938
|
-
const
|
|
5950
|
+
const p = e;
|
|
5939
5951
|
if (typeof s.caption != "string")
|
|
5940
5952
|
return n.errors = [
|
|
5941
5953
|
{
|
|
@@ -5948,7 +5960,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
5948
5960
|
message: "must be string"
|
|
5949
5961
|
}
|
|
5950
5962
|
], !1;
|
|
5951
|
-
var f =
|
|
5963
|
+
var f = p === e;
|
|
5952
5964
|
} else
|
|
5953
5965
|
var f = !0;
|
|
5954
5966
|
}
|
|
@@ -6086,25 +6098,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6086
6098
|
if (e === u)
|
|
6087
6099
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
6088
6100
|
const L = e;
|
|
6089
|
-
for (const
|
|
6090
|
-
if (!(
|
|
6101
|
+
for (const p in s)
|
|
6102
|
+
if (!(p === "weight" || p === "caption"))
|
|
6091
6103
|
return n.errors = [
|
|
6092
6104
|
{
|
|
6093
6105
|
instancePath: t + "/progress",
|
|
6094
6106
|
schemaPath: "#/oneOf/1/properties/progress/additionalProperties",
|
|
6095
6107
|
keyword: "additionalProperties",
|
|
6096
6108
|
params: {
|
|
6097
|
-
additionalProperty:
|
|
6109
|
+
additionalProperty: p
|
|
6098
6110
|
},
|
|
6099
6111
|
message: "must NOT have additional properties"
|
|
6100
6112
|
}
|
|
6101
6113
|
], !1;
|
|
6102
6114
|
if (L === e) {
|
|
6103
6115
|
if (s.weight !== void 0) {
|
|
6104
|
-
let
|
|
6116
|
+
let p = s.weight;
|
|
6105
6117
|
const j = e;
|
|
6106
|
-
if (!(typeof
|
|
6107
|
-
|
|
6118
|
+
if (!(typeof p == "number" && isFinite(
|
|
6119
|
+
p
|
|
6108
6120
|
)))
|
|
6109
6121
|
return n.errors = [
|
|
6110
6122
|
{
|
|
@@ -6122,7 +6134,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6122
6134
|
var b = !0;
|
|
6123
6135
|
if (b)
|
|
6124
6136
|
if (s.caption !== void 0) {
|
|
6125
|
-
const
|
|
6137
|
+
const p = e;
|
|
6126
6138
|
if (typeof s.caption != "string")
|
|
6127
6139
|
return n.errors = [
|
|
6128
6140
|
{
|
|
@@ -6135,7 +6147,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6135
6147
|
message: "must be string"
|
|
6136
6148
|
}
|
|
6137
6149
|
], !1;
|
|
6138
|
-
var b =
|
|
6150
|
+
var b = p === e;
|
|
6139
6151
|
} else
|
|
6140
6152
|
var b = !0;
|
|
6141
6153
|
}
|
|
@@ -6254,25 +6266,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6254
6266
|
if (e === u)
|
|
6255
6267
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
6256
6268
|
const L = e;
|
|
6257
|
-
for (const
|
|
6258
|
-
if (!(
|
|
6269
|
+
for (const p in s)
|
|
6270
|
+
if (!(p === "weight" || p === "caption"))
|
|
6259
6271
|
return n.errors = [
|
|
6260
6272
|
{
|
|
6261
6273
|
instancePath: t + "/progress",
|
|
6262
6274
|
schemaPath: "#/oneOf/2/properties/progress/additionalProperties",
|
|
6263
6275
|
keyword: "additionalProperties",
|
|
6264
6276
|
params: {
|
|
6265
|
-
additionalProperty:
|
|
6277
|
+
additionalProperty: p
|
|
6266
6278
|
},
|
|
6267
6279
|
message: "must NOT have additional properties"
|
|
6268
6280
|
}
|
|
6269
6281
|
], !1;
|
|
6270
6282
|
if (L === e) {
|
|
6271
6283
|
if (s.weight !== void 0) {
|
|
6272
|
-
let
|
|
6284
|
+
let p = s.weight;
|
|
6273
6285
|
const j = e;
|
|
6274
|
-
if (!(typeof
|
|
6275
|
-
|
|
6286
|
+
if (!(typeof p == "number" && isFinite(
|
|
6287
|
+
p
|
|
6276
6288
|
)))
|
|
6277
6289
|
return n.errors = [
|
|
6278
6290
|
{
|
|
@@ -6290,7 +6302,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6290
6302
|
var m = !0;
|
|
6291
6303
|
if (m)
|
|
6292
6304
|
if (s.caption !== void 0) {
|
|
6293
|
-
const
|
|
6305
|
+
const p = e;
|
|
6294
6306
|
if (typeof s.caption != "string")
|
|
6295
6307
|
return n.errors = [
|
|
6296
6308
|
{
|
|
@@ -6303,7 +6315,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6303
6315
|
message: "must be string"
|
|
6304
6316
|
}
|
|
6305
6317
|
], !1;
|
|
6306
|
-
var m =
|
|
6318
|
+
var m = p === e;
|
|
6307
6319
|
} else
|
|
6308
6320
|
var m = !0;
|
|
6309
6321
|
}
|
|
@@ -6441,25 +6453,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6441
6453
|
if (e === u)
|
|
6442
6454
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
6443
6455
|
const L = e;
|
|
6444
|
-
for (const
|
|
6445
|
-
if (!(
|
|
6456
|
+
for (const p in s)
|
|
6457
|
+
if (!(p === "weight" || p === "caption"))
|
|
6446
6458
|
return n.errors = [
|
|
6447
6459
|
{
|
|
6448
6460
|
instancePath: t + "/progress",
|
|
6449
6461
|
schemaPath: "#/oneOf/3/properties/progress/additionalProperties",
|
|
6450
6462
|
keyword: "additionalProperties",
|
|
6451
6463
|
params: {
|
|
6452
|
-
additionalProperty:
|
|
6464
|
+
additionalProperty: p
|
|
6453
6465
|
},
|
|
6454
6466
|
message: "must NOT have additional properties"
|
|
6455
6467
|
}
|
|
6456
6468
|
], !1;
|
|
6457
6469
|
if (L === e) {
|
|
6458
6470
|
if (s.weight !== void 0) {
|
|
6459
|
-
let
|
|
6471
|
+
let p = s.weight;
|
|
6460
6472
|
const j = e;
|
|
6461
|
-
if (!(typeof
|
|
6462
|
-
|
|
6473
|
+
if (!(typeof p == "number" && isFinite(
|
|
6474
|
+
p
|
|
6463
6475
|
)))
|
|
6464
6476
|
return n.errors = [
|
|
6465
6477
|
{
|
|
@@ -6477,7 +6489,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6477
6489
|
var S = !0;
|
|
6478
6490
|
if (S)
|
|
6479
6491
|
if (s.caption !== void 0) {
|
|
6480
|
-
const
|
|
6492
|
+
const p = e;
|
|
6481
6493
|
if (typeof s.caption != "string")
|
|
6482
6494
|
return n.errors = [
|
|
6483
6495
|
{
|
|
@@ -6490,7 +6502,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6490
6502
|
message: "must be string"
|
|
6491
6503
|
}
|
|
6492
6504
|
], !1;
|
|
6493
|
-
var S =
|
|
6505
|
+
var S = p === e;
|
|
6494
6506
|
} else
|
|
6495
6507
|
var S = !0;
|
|
6496
6508
|
}
|
|
@@ -6506,10 +6518,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6506
6518
|
message: "must be object"
|
|
6507
6519
|
}
|
|
6508
6520
|
], !1;
|
|
6509
|
-
var
|
|
6521
|
+
var I = u === e;
|
|
6510
6522
|
} else
|
|
6511
|
-
var
|
|
6512
|
-
if (
|
|
6523
|
+
var I = !0;
|
|
6524
|
+
if (I) {
|
|
6513
6525
|
if (r.step !== void 0) {
|
|
6514
6526
|
let s = r.step;
|
|
6515
6527
|
const u = e;
|
|
@@ -6537,10 +6549,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6537
6549
|
message: "must be equal to constant"
|
|
6538
6550
|
}
|
|
6539
6551
|
], !1;
|
|
6540
|
-
var
|
|
6552
|
+
var I = u === e;
|
|
6541
6553
|
} else
|
|
6542
|
-
var
|
|
6543
|
-
if (
|
|
6554
|
+
var I = !0;
|
|
6555
|
+
if (I) {
|
|
6544
6556
|
if (r.consts !== void 0) {
|
|
6545
6557
|
let s = r.consts;
|
|
6546
6558
|
const u = e;
|
|
@@ -6558,10 +6570,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6558
6570
|
message: "must be object"
|
|
6559
6571
|
}
|
|
6560
6572
|
], !1;
|
|
6561
|
-
var
|
|
6573
|
+
var I = u === e;
|
|
6562
6574
|
} else
|
|
6563
|
-
var
|
|
6564
|
-
if (
|
|
6575
|
+
var I = !0;
|
|
6576
|
+
if (I) {
|
|
6565
6577
|
if (r.method !== void 0) {
|
|
6566
6578
|
let s = r.method;
|
|
6567
6579
|
const u = e;
|
|
@@ -6589,10 +6601,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6589
6601
|
message: "must be equal to one of the allowed values"
|
|
6590
6602
|
}
|
|
6591
6603
|
], !1;
|
|
6592
|
-
var
|
|
6604
|
+
var I = u === e;
|
|
6593
6605
|
} else
|
|
6594
|
-
var
|
|
6595
|
-
if (
|
|
6606
|
+
var I = !0;
|
|
6607
|
+
if (I)
|
|
6596
6608
|
if (r.virtualize !== void 0) {
|
|
6597
6609
|
const s = e;
|
|
6598
6610
|
if (typeof r.virtualize != "boolean")
|
|
@@ -6607,9 +6619,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6607
6619
|
message: "must be boolean"
|
|
6608
6620
|
}
|
|
6609
6621
|
], !1;
|
|
6610
|
-
var
|
|
6622
|
+
var I = s === e;
|
|
6611
6623
|
} else
|
|
6612
|
-
var
|
|
6624
|
+
var I = !0;
|
|
6613
6625
|
}
|
|
6614
6626
|
}
|
|
6615
6627
|
}
|
|
@@ -6663,25 +6675,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6663
6675
|
if (e === u)
|
|
6664
6676
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
6665
6677
|
const L = e;
|
|
6666
|
-
for (const
|
|
6667
|
-
if (!(
|
|
6678
|
+
for (const p in s)
|
|
6679
|
+
if (!(p === "weight" || p === "caption"))
|
|
6668
6680
|
return n.errors = [
|
|
6669
6681
|
{
|
|
6670
6682
|
instancePath: t + "/progress",
|
|
6671
6683
|
schemaPath: "#/oneOf/4/properties/progress/additionalProperties",
|
|
6672
6684
|
keyword: "additionalProperties",
|
|
6673
6685
|
params: {
|
|
6674
|
-
additionalProperty:
|
|
6686
|
+
additionalProperty: p
|
|
6675
6687
|
},
|
|
6676
6688
|
message: "must NOT have additional properties"
|
|
6677
6689
|
}
|
|
6678
6690
|
], !1;
|
|
6679
6691
|
if (L === e) {
|
|
6680
6692
|
if (s.weight !== void 0) {
|
|
6681
|
-
let
|
|
6693
|
+
let p = s.weight;
|
|
6682
6694
|
const j = e;
|
|
6683
|
-
if (!(typeof
|
|
6684
|
-
|
|
6695
|
+
if (!(typeof p == "number" && isFinite(
|
|
6696
|
+
p
|
|
6685
6697
|
)))
|
|
6686
6698
|
return n.errors = [
|
|
6687
6699
|
{
|
|
@@ -6699,7 +6711,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6699
6711
|
var P = !0;
|
|
6700
6712
|
if (P)
|
|
6701
6713
|
if (s.caption !== void 0) {
|
|
6702
|
-
const
|
|
6714
|
+
const p = e;
|
|
6703
6715
|
if (typeof s.caption != "string")
|
|
6704
6716
|
return n.errors = [
|
|
6705
6717
|
{
|
|
@@ -6712,7 +6724,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6712
6724
|
message: "must be string"
|
|
6713
6725
|
}
|
|
6714
6726
|
], !1;
|
|
6715
|
-
var P =
|
|
6727
|
+
var P = p === e;
|
|
6716
6728
|
} else
|
|
6717
6729
|
var P = !0;
|
|
6718
6730
|
}
|
|
@@ -6831,25 +6843,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6831
6843
|
if (e === u)
|
|
6832
6844
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
6833
6845
|
const L = e;
|
|
6834
|
-
for (const
|
|
6835
|
-
if (!(
|
|
6846
|
+
for (const p in s)
|
|
6847
|
+
if (!(p === "weight" || p === "caption"))
|
|
6836
6848
|
return n.errors = [
|
|
6837
6849
|
{
|
|
6838
6850
|
instancePath: t + "/progress",
|
|
6839
6851
|
schemaPath: "#/oneOf/5/properties/progress/additionalProperties",
|
|
6840
6852
|
keyword: "additionalProperties",
|
|
6841
6853
|
params: {
|
|
6842
|
-
additionalProperty:
|
|
6854
|
+
additionalProperty: p
|
|
6843
6855
|
},
|
|
6844
6856
|
message: "must NOT have additional properties"
|
|
6845
6857
|
}
|
|
6846
6858
|
], !1;
|
|
6847
6859
|
if (L === e) {
|
|
6848
6860
|
if (s.weight !== void 0) {
|
|
6849
|
-
let
|
|
6861
|
+
let p = s.weight;
|
|
6850
6862
|
const j = e;
|
|
6851
|
-
if (!(typeof
|
|
6852
|
-
|
|
6863
|
+
if (!(typeof p == "number" && isFinite(
|
|
6864
|
+
p
|
|
6853
6865
|
)))
|
|
6854
6866
|
return n.errors = [
|
|
6855
6867
|
{
|
|
@@ -6867,7 +6879,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6867
6879
|
var te = !0;
|
|
6868
6880
|
if (te)
|
|
6869
6881
|
if (s.caption !== void 0) {
|
|
6870
|
-
const
|
|
6882
|
+
const p = e;
|
|
6871
6883
|
if (typeof s.caption != "string")
|
|
6872
6884
|
return n.errors = [
|
|
6873
6885
|
{
|
|
@@ -6880,7 +6892,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6880
6892
|
message: "must be string"
|
|
6881
6893
|
}
|
|
6882
6894
|
], !1;
|
|
6883
|
-
var te =
|
|
6895
|
+
var te = p === e;
|
|
6884
6896
|
} else
|
|
6885
6897
|
var te = !0;
|
|
6886
6898
|
}
|
|
@@ -6980,25 +6992,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
6980
6992
|
if (e === u)
|
|
6981
6993
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
6982
6994
|
const L = e;
|
|
6983
|
-
for (const
|
|
6984
|
-
if (!(
|
|
6995
|
+
for (const p in s)
|
|
6996
|
+
if (!(p === "weight" || p === "caption"))
|
|
6985
6997
|
return n.errors = [
|
|
6986
6998
|
{
|
|
6987
6999
|
instancePath: t + "/progress",
|
|
6988
7000
|
schemaPath: "#/oneOf/6/properties/progress/additionalProperties",
|
|
6989
7001
|
keyword: "additionalProperties",
|
|
6990
7002
|
params: {
|
|
6991
|
-
additionalProperty:
|
|
7003
|
+
additionalProperty: p
|
|
6992
7004
|
},
|
|
6993
7005
|
message: "must NOT have additional properties"
|
|
6994
7006
|
}
|
|
6995
7007
|
], !1;
|
|
6996
7008
|
if (L === e) {
|
|
6997
7009
|
if (s.weight !== void 0) {
|
|
6998
|
-
let
|
|
7010
|
+
let p = s.weight;
|
|
6999
7011
|
const j = e;
|
|
7000
|
-
if (!(typeof
|
|
7001
|
-
|
|
7012
|
+
if (!(typeof p == "number" && isFinite(
|
|
7013
|
+
p
|
|
7002
7014
|
)))
|
|
7003
7015
|
return n.errors = [
|
|
7004
7016
|
{
|
|
@@ -7016,7 +7028,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7016
7028
|
var E = !0;
|
|
7017
7029
|
if (E)
|
|
7018
7030
|
if (s.caption !== void 0) {
|
|
7019
|
-
const
|
|
7031
|
+
const p = e;
|
|
7020
7032
|
if (typeof s.caption != "string")
|
|
7021
7033
|
return n.errors = [
|
|
7022
7034
|
{
|
|
@@ -7029,7 +7041,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7029
7041
|
message: "must be string"
|
|
7030
7042
|
}
|
|
7031
7043
|
], !1;
|
|
7032
|
-
var E =
|
|
7044
|
+
var E = p === e;
|
|
7033
7045
|
} else
|
|
7034
7046
|
var E = !0;
|
|
7035
7047
|
}
|
|
@@ -7144,25 +7156,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7144
7156
|
if (e === u)
|
|
7145
7157
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
7146
7158
|
const L = e;
|
|
7147
|
-
for (const
|
|
7148
|
-
if (!(
|
|
7159
|
+
for (const p in s)
|
|
7160
|
+
if (!(p === "weight" || p === "caption"))
|
|
7149
7161
|
return n.errors = [
|
|
7150
7162
|
{
|
|
7151
7163
|
instancePath: t + "/progress",
|
|
7152
7164
|
schemaPath: "#/oneOf/7/properties/progress/additionalProperties",
|
|
7153
7165
|
keyword: "additionalProperties",
|
|
7154
7166
|
params: {
|
|
7155
|
-
additionalProperty:
|
|
7167
|
+
additionalProperty: p
|
|
7156
7168
|
},
|
|
7157
7169
|
message: "must NOT have additional properties"
|
|
7158
7170
|
}
|
|
7159
7171
|
], !1;
|
|
7160
7172
|
if (L === e) {
|
|
7161
7173
|
if (s.weight !== void 0) {
|
|
7162
|
-
let
|
|
7174
|
+
let p = s.weight;
|
|
7163
7175
|
const j = e;
|
|
7164
|
-
if (!(typeof
|
|
7165
|
-
|
|
7176
|
+
if (!(typeof p == "number" && isFinite(
|
|
7177
|
+
p
|
|
7166
7178
|
)))
|
|
7167
7179
|
return n.errors = [
|
|
7168
7180
|
{
|
|
@@ -7175,12 +7187,12 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7175
7187
|
message: "must be number"
|
|
7176
7188
|
}
|
|
7177
7189
|
], !1;
|
|
7178
|
-
var
|
|
7190
|
+
var D = j === e;
|
|
7179
7191
|
} else
|
|
7180
|
-
var
|
|
7181
|
-
if (
|
|
7192
|
+
var D = !0;
|
|
7193
|
+
if (D)
|
|
7182
7194
|
if (s.caption !== void 0) {
|
|
7183
|
-
const
|
|
7195
|
+
const p = e;
|
|
7184
7196
|
if (typeof s.caption != "string")
|
|
7185
7197
|
return n.errors = [
|
|
7186
7198
|
{
|
|
@@ -7193,9 +7205,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7193
7205
|
message: "must be string"
|
|
7194
7206
|
}
|
|
7195
7207
|
], !1;
|
|
7196
|
-
var
|
|
7208
|
+
var D = p === e;
|
|
7197
7209
|
} else
|
|
7198
|
-
var
|
|
7210
|
+
var D = !0;
|
|
7199
7211
|
}
|
|
7200
7212
|
} else
|
|
7201
7213
|
return n.errors = [
|
|
@@ -7312,25 +7324,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7312
7324
|
if (e === u)
|
|
7313
7325
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
7314
7326
|
const L = e;
|
|
7315
|
-
for (const
|
|
7316
|
-
if (!(
|
|
7327
|
+
for (const p in s)
|
|
7328
|
+
if (!(p === "weight" || p === "caption"))
|
|
7317
7329
|
return n.errors = [
|
|
7318
7330
|
{
|
|
7319
7331
|
instancePath: t + "/progress",
|
|
7320
7332
|
schemaPath: "#/oneOf/8/properties/progress/additionalProperties",
|
|
7321
7333
|
keyword: "additionalProperties",
|
|
7322
7334
|
params: {
|
|
7323
|
-
additionalProperty:
|
|
7335
|
+
additionalProperty: p
|
|
7324
7336
|
},
|
|
7325
7337
|
message: "must NOT have additional properties"
|
|
7326
7338
|
}
|
|
7327
7339
|
], !1;
|
|
7328
7340
|
if (L === e) {
|
|
7329
7341
|
if (s.weight !== void 0) {
|
|
7330
|
-
let
|
|
7342
|
+
let p = s.weight;
|
|
7331
7343
|
const j = e;
|
|
7332
|
-
if (!(typeof
|
|
7333
|
-
|
|
7344
|
+
if (!(typeof p == "number" && isFinite(
|
|
7345
|
+
p
|
|
7334
7346
|
)))
|
|
7335
7347
|
return n.errors = [
|
|
7336
7348
|
{
|
|
@@ -7348,7 +7360,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7348
7360
|
var c = !0;
|
|
7349
7361
|
if (c)
|
|
7350
7362
|
if (s.caption !== void 0) {
|
|
7351
|
-
const
|
|
7363
|
+
const p = e;
|
|
7352
7364
|
if (typeof s.caption != "string")
|
|
7353
7365
|
return n.errors = [
|
|
7354
7366
|
{
|
|
@@ -7361,7 +7373,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7361
7373
|
message: "must be string"
|
|
7362
7374
|
}
|
|
7363
7375
|
], !1;
|
|
7364
|
-
var c =
|
|
7376
|
+
var c = p === e;
|
|
7365
7377
|
} else
|
|
7366
7378
|
var c = !0;
|
|
7367
7379
|
}
|
|
@@ -7498,25 +7510,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7498
7510
|
if (e === u)
|
|
7499
7511
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
7500
7512
|
const L = e;
|
|
7501
|
-
for (const
|
|
7502
|
-
if (!(
|
|
7513
|
+
for (const p in s)
|
|
7514
|
+
if (!(p === "weight" || p === "caption"))
|
|
7503
7515
|
return n.errors = [
|
|
7504
7516
|
{
|
|
7505
7517
|
instancePath: t + "/progress",
|
|
7506
7518
|
schemaPath: "#/oneOf/9/properties/progress/additionalProperties",
|
|
7507
7519
|
keyword: "additionalProperties",
|
|
7508
7520
|
params: {
|
|
7509
|
-
additionalProperty:
|
|
7521
|
+
additionalProperty: p
|
|
7510
7522
|
},
|
|
7511
7523
|
message: "must NOT have additional properties"
|
|
7512
7524
|
}
|
|
7513
7525
|
], !1;
|
|
7514
7526
|
if (L === e) {
|
|
7515
7527
|
if (s.weight !== void 0) {
|
|
7516
|
-
let
|
|
7528
|
+
let p = s.weight;
|
|
7517
7529
|
const j = e;
|
|
7518
|
-
if (!(typeof
|
|
7519
|
-
|
|
7530
|
+
if (!(typeof p == "number" && isFinite(
|
|
7531
|
+
p
|
|
7520
7532
|
)))
|
|
7521
7533
|
return n.errors = [
|
|
7522
7534
|
{
|
|
@@ -7534,7 +7546,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7534
7546
|
var $ = !0;
|
|
7535
7547
|
if ($)
|
|
7536
7548
|
if (s.caption !== void 0) {
|
|
7537
|
-
const
|
|
7549
|
+
const p = e;
|
|
7538
7550
|
if (typeof s.caption != "string")
|
|
7539
7551
|
return n.errors = [
|
|
7540
7552
|
{
|
|
@@ -7547,7 +7559,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7547
7559
|
message: "must be string"
|
|
7548
7560
|
}
|
|
7549
7561
|
], !1;
|
|
7550
|
-
var $ =
|
|
7562
|
+
var $ = p === e;
|
|
7551
7563
|
} else
|
|
7552
7564
|
var $ = !0;
|
|
7553
7565
|
}
|
|
@@ -7747,25 +7759,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7747
7759
|
if (e === u)
|
|
7748
7760
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
7749
7761
|
const L = e;
|
|
7750
|
-
for (const
|
|
7751
|
-
if (!(
|
|
7762
|
+
for (const p in s)
|
|
7763
|
+
if (!(p === "weight" || p === "caption"))
|
|
7752
7764
|
return n.errors = [
|
|
7753
7765
|
{
|
|
7754
7766
|
instancePath: t + "/progress",
|
|
7755
7767
|
schemaPath: "#/oneOf/10/properties/progress/additionalProperties",
|
|
7756
7768
|
keyword: "additionalProperties",
|
|
7757
7769
|
params: {
|
|
7758
|
-
additionalProperty:
|
|
7770
|
+
additionalProperty: p
|
|
7759
7771
|
},
|
|
7760
7772
|
message: "must NOT have additional properties"
|
|
7761
7773
|
}
|
|
7762
7774
|
], !1;
|
|
7763
7775
|
if (L === e) {
|
|
7764
7776
|
if (s.weight !== void 0) {
|
|
7765
|
-
let
|
|
7777
|
+
let p = s.weight;
|
|
7766
7778
|
const j = e;
|
|
7767
|
-
if (!(typeof
|
|
7768
|
-
|
|
7779
|
+
if (!(typeof p == "number" && isFinite(
|
|
7780
|
+
p
|
|
7769
7781
|
)))
|
|
7770
7782
|
return n.errors = [
|
|
7771
7783
|
{
|
|
@@ -7783,7 +7795,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7783
7795
|
var _ = !0;
|
|
7784
7796
|
if (_)
|
|
7785
7797
|
if (s.caption !== void 0) {
|
|
7786
|
-
const
|
|
7798
|
+
const p = e;
|
|
7787
7799
|
if (typeof s.caption != "string")
|
|
7788
7800
|
return n.errors = [
|
|
7789
7801
|
{
|
|
@@ -7796,7 +7808,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7796
7808
|
message: "must be string"
|
|
7797
7809
|
}
|
|
7798
7810
|
], !1;
|
|
7799
|
-
var _ =
|
|
7811
|
+
var _ = p === e;
|
|
7800
7812
|
} else
|
|
7801
7813
|
var _ = !0;
|
|
7802
7814
|
}
|
|
@@ -7902,7 +7914,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7902
7914
|
if (s && typeof s == "object" && !Array.isArray(
|
|
7903
7915
|
s
|
|
7904
7916
|
)) {
|
|
7905
|
-
const
|
|
7917
|
+
const p = e;
|
|
7906
7918
|
for (const j in s)
|
|
7907
7919
|
if (!(j === "activate" || j === "importStarterContent"))
|
|
7908
7920
|
return n.errors = [
|
|
@@ -7916,7 +7928,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
7916
7928
|
message: "must NOT have additional properties"
|
|
7917
7929
|
}
|
|
7918
7930
|
], !1;
|
|
7919
|
-
if (
|
|
7931
|
+
if (p === e) {
|
|
7920
7932
|
if (s.activate !== void 0) {
|
|
7921
7933
|
const j = e;
|
|
7922
7934
|
if (typeof s.activate != "boolean")
|
|
@@ -8021,25 +8033,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8021
8033
|
if (e === u)
|
|
8022
8034
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
8023
8035
|
const L = e;
|
|
8024
|
-
for (const
|
|
8025
|
-
if (!(
|
|
8036
|
+
for (const p in s)
|
|
8037
|
+
if (!(p === "weight" || p === "caption"))
|
|
8026
8038
|
return n.errors = [
|
|
8027
8039
|
{
|
|
8028
8040
|
instancePath: t + "/progress",
|
|
8029
8041
|
schemaPath: "#/oneOf/11/properties/progress/additionalProperties",
|
|
8030
8042
|
keyword: "additionalProperties",
|
|
8031
8043
|
params: {
|
|
8032
|
-
additionalProperty:
|
|
8044
|
+
additionalProperty: p
|
|
8033
8045
|
},
|
|
8034
8046
|
message: "must NOT have additional properties"
|
|
8035
8047
|
}
|
|
8036
8048
|
], !1;
|
|
8037
8049
|
if (L === e) {
|
|
8038
8050
|
if (s.weight !== void 0) {
|
|
8039
|
-
let
|
|
8051
|
+
let p = s.weight;
|
|
8040
8052
|
const j = e;
|
|
8041
|
-
if (!(typeof
|
|
8042
|
-
|
|
8053
|
+
if (!(typeof p == "number" && isFinite(
|
|
8054
|
+
p
|
|
8043
8055
|
)))
|
|
8044
8056
|
return n.errors = [
|
|
8045
8057
|
{
|
|
@@ -8057,7 +8069,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8057
8069
|
var v = !0;
|
|
8058
8070
|
if (v)
|
|
8059
8071
|
if (s.caption !== void 0) {
|
|
8060
|
-
const
|
|
8072
|
+
const p = e;
|
|
8061
8073
|
if (typeof s.caption != "string")
|
|
8062
8074
|
return n.errors = [
|
|
8063
8075
|
{
|
|
@@ -8070,7 +8082,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8070
8082
|
message: "must be string"
|
|
8071
8083
|
}
|
|
8072
8084
|
], !1;
|
|
8073
|
-
var v =
|
|
8085
|
+
var v = p === e;
|
|
8074
8086
|
} else
|
|
8075
8087
|
var v = !0;
|
|
8076
8088
|
}
|
|
@@ -8208,25 +8220,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8208
8220
|
if (e === u)
|
|
8209
8221
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
8210
8222
|
const L = e;
|
|
8211
|
-
for (const
|
|
8212
|
-
if (!(
|
|
8223
|
+
for (const p in s)
|
|
8224
|
+
if (!(p === "weight" || p === "caption"))
|
|
8213
8225
|
return n.errors = [
|
|
8214
8226
|
{
|
|
8215
8227
|
instancePath: t + "/progress",
|
|
8216
8228
|
schemaPath: "#/oneOf/12/properties/progress/additionalProperties",
|
|
8217
8229
|
keyword: "additionalProperties",
|
|
8218
8230
|
params: {
|
|
8219
|
-
additionalProperty:
|
|
8231
|
+
additionalProperty: p
|
|
8220
8232
|
},
|
|
8221
8233
|
message: "must NOT have additional properties"
|
|
8222
8234
|
}
|
|
8223
8235
|
], !1;
|
|
8224
8236
|
if (L === e) {
|
|
8225
8237
|
if (s.weight !== void 0) {
|
|
8226
|
-
let
|
|
8238
|
+
let p = s.weight;
|
|
8227
8239
|
const j = e;
|
|
8228
|
-
if (!(typeof
|
|
8229
|
-
|
|
8240
|
+
if (!(typeof p == "number" && isFinite(
|
|
8241
|
+
p
|
|
8230
8242
|
)))
|
|
8231
8243
|
return n.errors = [
|
|
8232
8244
|
{
|
|
@@ -8244,7 +8256,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8244
8256
|
var N = !0;
|
|
8245
8257
|
if (N)
|
|
8246
8258
|
if (s.caption !== void 0) {
|
|
8247
|
-
const
|
|
8259
|
+
const p = e;
|
|
8248
8260
|
if (typeof s.caption != "string")
|
|
8249
8261
|
return n.errors = [
|
|
8250
8262
|
{
|
|
@@ -8257,7 +8269,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8257
8269
|
message: "must be string"
|
|
8258
8270
|
}
|
|
8259
8271
|
], !1;
|
|
8260
|
-
var N =
|
|
8272
|
+
var N = p === e;
|
|
8261
8273
|
} else
|
|
8262
8274
|
var N = !0;
|
|
8263
8275
|
}
|
|
@@ -8376,25 +8388,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8376
8388
|
if (e === u)
|
|
8377
8389
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
8378
8390
|
const L = e;
|
|
8379
|
-
for (const
|
|
8380
|
-
if (!(
|
|
8391
|
+
for (const p in s)
|
|
8392
|
+
if (!(p === "weight" || p === "caption"))
|
|
8381
8393
|
return n.errors = [
|
|
8382
8394
|
{
|
|
8383
8395
|
instancePath: t + "/progress",
|
|
8384
8396
|
schemaPath: "#/oneOf/13/properties/progress/additionalProperties",
|
|
8385
8397
|
keyword: "additionalProperties",
|
|
8386
8398
|
params: {
|
|
8387
|
-
additionalProperty:
|
|
8399
|
+
additionalProperty: p
|
|
8388
8400
|
},
|
|
8389
8401
|
message: "must NOT have additional properties"
|
|
8390
8402
|
}
|
|
8391
8403
|
], !1;
|
|
8392
8404
|
if (L === e) {
|
|
8393
8405
|
if (s.weight !== void 0) {
|
|
8394
|
-
let
|
|
8406
|
+
let p = s.weight;
|
|
8395
8407
|
const j = e;
|
|
8396
|
-
if (!(typeof
|
|
8397
|
-
|
|
8408
|
+
if (!(typeof p == "number" && isFinite(
|
|
8409
|
+
p
|
|
8398
8410
|
)))
|
|
8399
8411
|
return n.errors = [
|
|
8400
8412
|
{
|
|
@@ -8412,7 +8424,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8412
8424
|
var W = !0;
|
|
8413
8425
|
if (W)
|
|
8414
8426
|
if (s.caption !== void 0) {
|
|
8415
|
-
const
|
|
8427
|
+
const p = e;
|
|
8416
8428
|
if (typeof s.caption != "string")
|
|
8417
8429
|
return n.errors = [
|
|
8418
8430
|
{
|
|
@@ -8425,7 +8437,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8425
8437
|
message: "must be string"
|
|
8426
8438
|
}
|
|
8427
8439
|
], !1;
|
|
8428
|
-
var W =
|
|
8440
|
+
var W = p === e;
|
|
8429
8441
|
} else
|
|
8430
8442
|
var W = !0;
|
|
8431
8443
|
}
|
|
@@ -8563,25 +8575,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8563
8575
|
if (e === u)
|
|
8564
8576
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
8565
8577
|
const L = e;
|
|
8566
|
-
for (const
|
|
8567
|
-
if (!(
|
|
8578
|
+
for (const p in s)
|
|
8579
|
+
if (!(p === "weight" || p === "caption"))
|
|
8568
8580
|
return n.errors = [
|
|
8569
8581
|
{
|
|
8570
8582
|
instancePath: t + "/progress",
|
|
8571
8583
|
schemaPath: "#/oneOf/14/properties/progress/additionalProperties",
|
|
8572
8584
|
keyword: "additionalProperties",
|
|
8573
8585
|
params: {
|
|
8574
|
-
additionalProperty:
|
|
8586
|
+
additionalProperty: p
|
|
8575
8587
|
},
|
|
8576
8588
|
message: "must NOT have additional properties"
|
|
8577
8589
|
}
|
|
8578
8590
|
], !1;
|
|
8579
8591
|
if (L === e) {
|
|
8580
8592
|
if (s.weight !== void 0) {
|
|
8581
|
-
let
|
|
8593
|
+
let p = s.weight;
|
|
8582
8594
|
const j = e;
|
|
8583
|
-
if (!(typeof
|
|
8584
|
-
|
|
8595
|
+
if (!(typeof p == "number" && isFinite(
|
|
8596
|
+
p
|
|
8585
8597
|
)))
|
|
8586
8598
|
return n.errors = [
|
|
8587
8599
|
{
|
|
@@ -8599,7 +8611,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8599
8611
|
var V = !0;
|
|
8600
8612
|
if (V)
|
|
8601
8613
|
if (s.caption !== void 0) {
|
|
8602
|
-
const
|
|
8614
|
+
const p = e;
|
|
8603
8615
|
if (typeof s.caption != "string")
|
|
8604
8616
|
return n.errors = [
|
|
8605
8617
|
{
|
|
@@ -8612,7 +8624,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8612
8624
|
message: "must be string"
|
|
8613
8625
|
}
|
|
8614
8626
|
], !1;
|
|
8615
|
-
var V =
|
|
8627
|
+
var V = p === e;
|
|
8616
8628
|
} else
|
|
8617
8629
|
var V = !0;
|
|
8618
8630
|
}
|
|
@@ -8712,25 +8724,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8712
8724
|
if (e === u)
|
|
8713
8725
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
8714
8726
|
const L = e;
|
|
8715
|
-
for (const
|
|
8716
|
-
if (!(
|
|
8727
|
+
for (const p in s)
|
|
8728
|
+
if (!(p === "weight" || p === "caption"))
|
|
8717
8729
|
return n.errors = [
|
|
8718
8730
|
{
|
|
8719
8731
|
instancePath: t + "/progress",
|
|
8720
8732
|
schemaPath: "#/oneOf/15/properties/progress/additionalProperties",
|
|
8721
8733
|
keyword: "additionalProperties",
|
|
8722
8734
|
params: {
|
|
8723
|
-
additionalProperty:
|
|
8735
|
+
additionalProperty: p
|
|
8724
8736
|
},
|
|
8725
8737
|
message: "must NOT have additional properties"
|
|
8726
8738
|
}
|
|
8727
8739
|
], !1;
|
|
8728
8740
|
if (L === e) {
|
|
8729
8741
|
if (s.weight !== void 0) {
|
|
8730
|
-
let
|
|
8742
|
+
let p = s.weight;
|
|
8731
8743
|
const j = e;
|
|
8732
|
-
if (!(typeof
|
|
8733
|
-
|
|
8744
|
+
if (!(typeof p == "number" && isFinite(
|
|
8745
|
+
p
|
|
8734
8746
|
)))
|
|
8735
8747
|
return n.errors = [
|
|
8736
8748
|
{
|
|
@@ -8748,7 +8760,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8748
8760
|
var J = !0;
|
|
8749
8761
|
if (J)
|
|
8750
8762
|
if (s.caption !== void 0) {
|
|
8751
|
-
const
|
|
8763
|
+
const p = e;
|
|
8752
8764
|
if (typeof s.caption != "string")
|
|
8753
8765
|
return n.errors = [
|
|
8754
8766
|
{
|
|
@@ -8761,7 +8773,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8761
8773
|
message: "must be string"
|
|
8762
8774
|
}
|
|
8763
8775
|
], !1;
|
|
8764
|
-
var J =
|
|
8776
|
+
var J = p === e;
|
|
8765
8777
|
} else
|
|
8766
8778
|
var J = !0;
|
|
8767
8779
|
}
|
|
@@ -8879,25 +8891,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8879
8891
|
if (e === u)
|
|
8880
8892
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
8881
8893
|
const L = e;
|
|
8882
|
-
for (const
|
|
8883
|
-
if (!(
|
|
8894
|
+
for (const p in s)
|
|
8895
|
+
if (!(p === "weight" || p === "caption"))
|
|
8884
8896
|
return n.errors = [
|
|
8885
8897
|
{
|
|
8886
8898
|
instancePath: t + "/progress",
|
|
8887
8899
|
schemaPath: "#/oneOf/16/properties/progress/additionalProperties",
|
|
8888
8900
|
keyword: "additionalProperties",
|
|
8889
8901
|
params: {
|
|
8890
|
-
additionalProperty:
|
|
8902
|
+
additionalProperty: p
|
|
8891
8903
|
},
|
|
8892
8904
|
message: "must NOT have additional properties"
|
|
8893
8905
|
}
|
|
8894
8906
|
], !1;
|
|
8895
8907
|
if (L === e) {
|
|
8896
8908
|
if (s.weight !== void 0) {
|
|
8897
|
-
let
|
|
8909
|
+
let p = s.weight;
|
|
8898
8910
|
const j = e;
|
|
8899
|
-
if (!(typeof
|
|
8900
|
-
|
|
8911
|
+
if (!(typeof p == "number" && isFinite(
|
|
8912
|
+
p
|
|
8901
8913
|
)))
|
|
8902
8914
|
return n.errors = [
|
|
8903
8915
|
{
|
|
@@ -8915,7 +8927,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8915
8927
|
var Q = !0;
|
|
8916
8928
|
if (Q)
|
|
8917
8929
|
if (s.caption !== void 0) {
|
|
8918
|
-
const
|
|
8930
|
+
const p = e;
|
|
8919
8931
|
if (typeof s.caption != "string")
|
|
8920
8932
|
return n.errors = [
|
|
8921
8933
|
{
|
|
@@ -8928,7 +8940,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
8928
8940
|
message: "must be string"
|
|
8929
8941
|
}
|
|
8930
8942
|
], !1;
|
|
8931
|
-
var Q =
|
|
8943
|
+
var Q = p === e;
|
|
8932
8944
|
} else
|
|
8933
8945
|
var Q = !0;
|
|
8934
8946
|
}
|
|
@@ -9047,25 +9059,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9047
9059
|
if (e === u)
|
|
9048
9060
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
9049
9061
|
const L = e;
|
|
9050
|
-
for (const
|
|
9051
|
-
if (!(
|
|
9062
|
+
for (const p in s)
|
|
9063
|
+
if (!(p === "weight" || p === "caption"))
|
|
9052
9064
|
return n.errors = [
|
|
9053
9065
|
{
|
|
9054
9066
|
instancePath: t + "/progress",
|
|
9055
9067
|
schemaPath: "#/oneOf/17/properties/progress/additionalProperties",
|
|
9056
9068
|
keyword: "additionalProperties",
|
|
9057
9069
|
params: {
|
|
9058
|
-
additionalProperty:
|
|
9070
|
+
additionalProperty: p
|
|
9059
9071
|
},
|
|
9060
9072
|
message: "must NOT have additional properties"
|
|
9061
9073
|
}
|
|
9062
9074
|
], !1;
|
|
9063
9075
|
if (L === e) {
|
|
9064
9076
|
if (s.weight !== void 0) {
|
|
9065
|
-
let
|
|
9077
|
+
let p = s.weight;
|
|
9066
9078
|
const j = e;
|
|
9067
|
-
if (!(typeof
|
|
9068
|
-
|
|
9079
|
+
if (!(typeof p == "number" && isFinite(
|
|
9080
|
+
p
|
|
9069
9081
|
)))
|
|
9070
9082
|
return n.errors = [
|
|
9071
9083
|
{
|
|
@@ -9083,7 +9095,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9083
9095
|
var Y = !0;
|
|
9084
9096
|
if (Y)
|
|
9085
9097
|
if (s.caption !== void 0) {
|
|
9086
|
-
const
|
|
9098
|
+
const p = e;
|
|
9087
9099
|
if (typeof s.caption != "string")
|
|
9088
9100
|
return n.errors = [
|
|
9089
9101
|
{
|
|
@@ -9096,7 +9108,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9096
9108
|
message: "must be string"
|
|
9097
9109
|
}
|
|
9098
9110
|
], !1;
|
|
9099
|
-
var Y =
|
|
9111
|
+
var Y = p === e;
|
|
9100
9112
|
} else
|
|
9101
9113
|
var Y = !0;
|
|
9102
9114
|
}
|
|
@@ -9215,25 +9227,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9215
9227
|
if (e === u)
|
|
9216
9228
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
9217
9229
|
const L = e;
|
|
9218
|
-
for (const
|
|
9219
|
-
if (!(
|
|
9230
|
+
for (const p in s)
|
|
9231
|
+
if (!(p === "weight" || p === "caption"))
|
|
9220
9232
|
return n.errors = [
|
|
9221
9233
|
{
|
|
9222
9234
|
instancePath: t + "/progress",
|
|
9223
9235
|
schemaPath: "#/oneOf/18/properties/progress/additionalProperties",
|
|
9224
9236
|
keyword: "additionalProperties",
|
|
9225
9237
|
params: {
|
|
9226
|
-
additionalProperty:
|
|
9238
|
+
additionalProperty: p
|
|
9227
9239
|
},
|
|
9228
9240
|
message: "must NOT have additional properties"
|
|
9229
9241
|
}
|
|
9230
9242
|
], !1;
|
|
9231
9243
|
if (L === e) {
|
|
9232
9244
|
if (s.weight !== void 0) {
|
|
9233
|
-
let
|
|
9245
|
+
let p = s.weight;
|
|
9234
9246
|
const j = e;
|
|
9235
|
-
if (!(typeof
|
|
9236
|
-
|
|
9247
|
+
if (!(typeof p == "number" && isFinite(
|
|
9248
|
+
p
|
|
9237
9249
|
)))
|
|
9238
9250
|
return n.errors = [
|
|
9239
9251
|
{
|
|
@@ -9251,7 +9263,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9251
9263
|
var le = !0;
|
|
9252
9264
|
if (le)
|
|
9253
9265
|
if (s.caption !== void 0) {
|
|
9254
|
-
const
|
|
9266
|
+
const p = e;
|
|
9255
9267
|
if (typeof s.caption != "string")
|
|
9256
9268
|
return n.errors = [
|
|
9257
9269
|
{
|
|
@@ -9264,7 +9276,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9264
9276
|
message: "must be string"
|
|
9265
9277
|
}
|
|
9266
9278
|
], !1;
|
|
9267
|
-
var le =
|
|
9279
|
+
var le = p === e;
|
|
9268
9280
|
} else
|
|
9269
9281
|
var le = !0;
|
|
9270
9282
|
}
|
|
@@ -9383,25 +9395,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9383
9395
|
if (e === u)
|
|
9384
9396
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
9385
9397
|
const L = e;
|
|
9386
|
-
for (const
|
|
9387
|
-
if (!(
|
|
9398
|
+
for (const p in s)
|
|
9399
|
+
if (!(p === "weight" || p === "caption"))
|
|
9388
9400
|
return n.errors = [
|
|
9389
9401
|
{
|
|
9390
9402
|
instancePath: t + "/progress",
|
|
9391
9403
|
schemaPath: "#/oneOf/19/properties/progress/additionalProperties",
|
|
9392
9404
|
keyword: "additionalProperties",
|
|
9393
9405
|
params: {
|
|
9394
|
-
additionalProperty:
|
|
9406
|
+
additionalProperty: p
|
|
9395
9407
|
},
|
|
9396
9408
|
message: "must NOT have additional properties"
|
|
9397
9409
|
}
|
|
9398
9410
|
], !1;
|
|
9399
9411
|
if (L === e) {
|
|
9400
9412
|
if (s.weight !== void 0) {
|
|
9401
|
-
let
|
|
9413
|
+
let p = s.weight;
|
|
9402
9414
|
const j = e;
|
|
9403
|
-
if (!(typeof
|
|
9404
|
-
|
|
9415
|
+
if (!(typeof p == "number" && isFinite(
|
|
9416
|
+
p
|
|
9405
9417
|
)))
|
|
9406
9418
|
return n.errors = [
|
|
9407
9419
|
{
|
|
@@ -9419,7 +9431,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9419
9431
|
var Ie = !0;
|
|
9420
9432
|
if (Ie)
|
|
9421
9433
|
if (s.caption !== void 0) {
|
|
9422
|
-
const
|
|
9434
|
+
const p = e;
|
|
9423
9435
|
if (typeof s.caption != "string")
|
|
9424
9436
|
return n.errors = [
|
|
9425
9437
|
{
|
|
@@ -9432,7 +9444,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9432
9444
|
message: "must be string"
|
|
9433
9445
|
}
|
|
9434
9446
|
], !1;
|
|
9435
|
-
var Ie =
|
|
9447
|
+
var Ie = p === e;
|
|
9436
9448
|
} else
|
|
9437
9449
|
var Ie = !0;
|
|
9438
9450
|
}
|
|
@@ -9550,25 +9562,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9550
9562
|
if (e === u)
|
|
9551
9563
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
9552
9564
|
const L = e;
|
|
9553
|
-
for (const
|
|
9554
|
-
if (!(
|
|
9565
|
+
for (const p in s)
|
|
9566
|
+
if (!(p === "weight" || p === "caption"))
|
|
9555
9567
|
return n.errors = [
|
|
9556
9568
|
{
|
|
9557
9569
|
instancePath: t + "/progress",
|
|
9558
9570
|
schemaPath: "#/oneOf/20/properties/progress/additionalProperties",
|
|
9559
9571
|
keyword: "additionalProperties",
|
|
9560
9572
|
params: {
|
|
9561
|
-
additionalProperty:
|
|
9573
|
+
additionalProperty: p
|
|
9562
9574
|
},
|
|
9563
9575
|
message: "must NOT have additional properties"
|
|
9564
9576
|
}
|
|
9565
9577
|
], !1;
|
|
9566
9578
|
if (L === e) {
|
|
9567
9579
|
if (s.weight !== void 0) {
|
|
9568
|
-
let
|
|
9580
|
+
let p = s.weight;
|
|
9569
9581
|
const j = e;
|
|
9570
|
-
if (!(typeof
|
|
9571
|
-
|
|
9582
|
+
if (!(typeof p == "number" && isFinite(
|
|
9583
|
+
p
|
|
9572
9584
|
)))
|
|
9573
9585
|
return n.errors = [
|
|
9574
9586
|
{
|
|
@@ -9586,7 +9598,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9586
9598
|
var De = !0;
|
|
9587
9599
|
if (De)
|
|
9588
9600
|
if (s.caption !== void 0) {
|
|
9589
|
-
const
|
|
9601
|
+
const p = e;
|
|
9590
9602
|
if (typeof s.caption != "string")
|
|
9591
9603
|
return n.errors = [
|
|
9592
9604
|
{
|
|
@@ -9599,7 +9611,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9599
9611
|
message: "must be string"
|
|
9600
9612
|
}
|
|
9601
9613
|
], !1;
|
|
9602
|
-
var De =
|
|
9614
|
+
var De = p === e;
|
|
9603
9615
|
} else
|
|
9604
9616
|
var De = !0;
|
|
9605
9617
|
}
|
|
@@ -9774,25 +9786,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9774
9786
|
if (e === u)
|
|
9775
9787
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
9776
9788
|
const L = e;
|
|
9777
|
-
for (const
|
|
9778
|
-
if (!(
|
|
9789
|
+
for (const p in s)
|
|
9790
|
+
if (!(p === "weight" || p === "caption"))
|
|
9779
9791
|
return n.errors = [
|
|
9780
9792
|
{
|
|
9781
9793
|
instancePath: t + "/progress",
|
|
9782
9794
|
schemaPath: "#/oneOf/21/properties/progress/additionalProperties",
|
|
9783
9795
|
keyword: "additionalProperties",
|
|
9784
9796
|
params: {
|
|
9785
|
-
additionalProperty:
|
|
9797
|
+
additionalProperty: p
|
|
9786
9798
|
},
|
|
9787
9799
|
message: "must NOT have additional properties"
|
|
9788
9800
|
}
|
|
9789
9801
|
], !1;
|
|
9790
9802
|
if (L === e) {
|
|
9791
9803
|
if (s.weight !== void 0) {
|
|
9792
|
-
let
|
|
9804
|
+
let p = s.weight;
|
|
9793
9805
|
const j = e;
|
|
9794
|
-
if (!(typeof
|
|
9795
|
-
|
|
9806
|
+
if (!(typeof p == "number" && isFinite(
|
|
9807
|
+
p
|
|
9796
9808
|
)))
|
|
9797
9809
|
return n.errors = [
|
|
9798
9810
|
{
|
|
@@ -9810,7 +9822,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9810
9822
|
var Me = !0;
|
|
9811
9823
|
if (Me)
|
|
9812
9824
|
if (s.caption !== void 0) {
|
|
9813
|
-
const
|
|
9825
|
+
const p = e;
|
|
9814
9826
|
if (typeof s.caption != "string")
|
|
9815
9827
|
return n.errors = [
|
|
9816
9828
|
{
|
|
@@ -9823,7 +9835,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9823
9835
|
message: "must be string"
|
|
9824
9836
|
}
|
|
9825
9837
|
], !1;
|
|
9826
|
-
var Me =
|
|
9838
|
+
var Me = p === e;
|
|
9827
9839
|
} else
|
|
9828
9840
|
var Me = !0;
|
|
9829
9841
|
}
|
|
@@ -9938,25 +9950,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9938
9950
|
if (e === u)
|
|
9939
9951
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
9940
9952
|
const L = e;
|
|
9941
|
-
for (const
|
|
9942
|
-
if (!(
|
|
9953
|
+
for (const p in s)
|
|
9954
|
+
if (!(p === "weight" || p === "caption"))
|
|
9943
9955
|
return n.errors = [
|
|
9944
9956
|
{
|
|
9945
9957
|
instancePath: t + "/progress",
|
|
9946
9958
|
schemaPath: "#/oneOf/22/properties/progress/additionalProperties",
|
|
9947
9959
|
keyword: "additionalProperties",
|
|
9948
9960
|
params: {
|
|
9949
|
-
additionalProperty:
|
|
9961
|
+
additionalProperty: p
|
|
9950
9962
|
},
|
|
9951
9963
|
message: "must NOT have additional properties"
|
|
9952
9964
|
}
|
|
9953
9965
|
], !1;
|
|
9954
9966
|
if (L === e) {
|
|
9955
9967
|
if (s.weight !== void 0) {
|
|
9956
|
-
let
|
|
9968
|
+
let p = s.weight;
|
|
9957
9969
|
const j = e;
|
|
9958
|
-
if (!(typeof
|
|
9959
|
-
|
|
9970
|
+
if (!(typeof p == "number" && isFinite(
|
|
9971
|
+
p
|
|
9960
9972
|
)))
|
|
9961
9973
|
return n.errors = [
|
|
9962
9974
|
{
|
|
@@ -9974,7 +9986,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9974
9986
|
var Be = !0;
|
|
9975
9987
|
if (Be)
|
|
9976
9988
|
if (s.caption !== void 0) {
|
|
9977
|
-
const
|
|
9989
|
+
const p = e;
|
|
9978
9990
|
if (typeof s.caption != "string")
|
|
9979
9991
|
return n.errors = [
|
|
9980
9992
|
{
|
|
@@ -9987,7 +9999,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
9987
9999
|
message: "must be string"
|
|
9988
10000
|
}
|
|
9989
10001
|
], !1;
|
|
9990
|
-
var Be =
|
|
10002
|
+
var Be = p === e;
|
|
9991
10003
|
} else
|
|
9992
10004
|
var Be = !0;
|
|
9993
10005
|
}
|
|
@@ -10109,25 +10121,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10109
10121
|
if (e === u)
|
|
10110
10122
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
10111
10123
|
const L = e;
|
|
10112
|
-
for (const
|
|
10113
|
-
if (!(
|
|
10124
|
+
for (const p in s)
|
|
10125
|
+
if (!(p === "weight" || p === "caption"))
|
|
10114
10126
|
return n.errors = [
|
|
10115
10127
|
{
|
|
10116
10128
|
instancePath: t + "/progress",
|
|
10117
10129
|
schemaPath: "#/oneOf/23/properties/progress/additionalProperties",
|
|
10118
10130
|
keyword: "additionalProperties",
|
|
10119
10131
|
params: {
|
|
10120
|
-
additionalProperty:
|
|
10132
|
+
additionalProperty: p
|
|
10121
10133
|
},
|
|
10122
10134
|
message: "must NOT have additional properties"
|
|
10123
10135
|
}
|
|
10124
10136
|
], !1;
|
|
10125
10137
|
if (L === e) {
|
|
10126
10138
|
if (s.weight !== void 0) {
|
|
10127
|
-
let
|
|
10139
|
+
let p = s.weight;
|
|
10128
10140
|
const j = e;
|
|
10129
|
-
if (!(typeof
|
|
10130
|
-
|
|
10141
|
+
if (!(typeof p == "number" && isFinite(
|
|
10142
|
+
p
|
|
10131
10143
|
)))
|
|
10132
10144
|
return n.errors = [
|
|
10133
10145
|
{
|
|
@@ -10145,7 +10157,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10145
10157
|
var Ue = !0;
|
|
10146
10158
|
if (Ue)
|
|
10147
10159
|
if (s.caption !== void 0) {
|
|
10148
|
-
const
|
|
10160
|
+
const p = e;
|
|
10149
10161
|
if (typeof s.caption != "string")
|
|
10150
10162
|
return n.errors = [
|
|
10151
10163
|
{
|
|
@@ -10158,7 +10170,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10158
10170
|
message: "must be string"
|
|
10159
10171
|
}
|
|
10160
10172
|
], !1;
|
|
10161
|
-
var Ue =
|
|
10173
|
+
var Ue = p === e;
|
|
10162
10174
|
} else
|
|
10163
10175
|
var Ue = !0;
|
|
10164
10176
|
}
|
|
@@ -10314,25 +10326,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10314
10326
|
if (e === u)
|
|
10315
10327
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
10316
10328
|
const L = e;
|
|
10317
|
-
for (const
|
|
10318
|
-
if (!(
|
|
10329
|
+
for (const p in s)
|
|
10330
|
+
if (!(p === "weight" || p === "caption"))
|
|
10319
10331
|
return n.errors = [
|
|
10320
10332
|
{
|
|
10321
10333
|
instancePath: t + "/progress",
|
|
10322
10334
|
schemaPath: "#/oneOf/24/properties/progress/additionalProperties",
|
|
10323
10335
|
keyword: "additionalProperties",
|
|
10324
10336
|
params: {
|
|
10325
|
-
additionalProperty:
|
|
10337
|
+
additionalProperty: p
|
|
10326
10338
|
},
|
|
10327
10339
|
message: "must NOT have additional properties"
|
|
10328
10340
|
}
|
|
10329
10341
|
], !1;
|
|
10330
10342
|
if (L === e) {
|
|
10331
10343
|
if (s.weight !== void 0) {
|
|
10332
|
-
let
|
|
10344
|
+
let p = s.weight;
|
|
10333
10345
|
const j = e;
|
|
10334
|
-
if (!(typeof
|
|
10335
|
-
|
|
10346
|
+
if (!(typeof p == "number" && isFinite(
|
|
10347
|
+
p
|
|
10336
10348
|
)))
|
|
10337
10349
|
return n.errors = [
|
|
10338
10350
|
{
|
|
@@ -10350,7 +10362,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10350
10362
|
var ze = !0;
|
|
10351
10363
|
if (ze)
|
|
10352
10364
|
if (s.caption !== void 0) {
|
|
10353
|
-
const
|
|
10365
|
+
const p = e;
|
|
10354
10366
|
if (typeof s.caption != "string")
|
|
10355
10367
|
return n.errors = [
|
|
10356
10368
|
{
|
|
@@ -10363,7 +10375,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10363
10375
|
message: "must be string"
|
|
10364
10376
|
}
|
|
10365
10377
|
], !1;
|
|
10366
|
-
var ze =
|
|
10378
|
+
var ze = p === e;
|
|
10367
10379
|
} else
|
|
10368
10380
|
var ze = !0;
|
|
10369
10381
|
}
|
|
@@ -10507,25 +10519,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10507
10519
|
if (e === u)
|
|
10508
10520
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
10509
10521
|
const L = e;
|
|
10510
|
-
for (const
|
|
10511
|
-
if (!(
|
|
10522
|
+
for (const p in s)
|
|
10523
|
+
if (!(p === "weight" || p === "caption"))
|
|
10512
10524
|
return n.errors = [
|
|
10513
10525
|
{
|
|
10514
10526
|
instancePath: t + "/progress",
|
|
10515
10527
|
schemaPath: "#/oneOf/25/properties/progress/additionalProperties",
|
|
10516
10528
|
keyword: "additionalProperties",
|
|
10517
10529
|
params: {
|
|
10518
|
-
additionalProperty:
|
|
10530
|
+
additionalProperty: p
|
|
10519
10531
|
},
|
|
10520
10532
|
message: "must NOT have additional properties"
|
|
10521
10533
|
}
|
|
10522
10534
|
], !1;
|
|
10523
10535
|
if (L === e) {
|
|
10524
10536
|
if (s.weight !== void 0) {
|
|
10525
|
-
let
|
|
10537
|
+
let p = s.weight;
|
|
10526
10538
|
const j = e;
|
|
10527
|
-
if (!(typeof
|
|
10528
|
-
|
|
10539
|
+
if (!(typeof p == "number" && isFinite(
|
|
10540
|
+
p
|
|
10529
10541
|
)))
|
|
10530
10542
|
return n.errors = [
|
|
10531
10543
|
{
|
|
@@ -10543,7 +10555,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10543
10555
|
var Ve = !0;
|
|
10544
10556
|
if (Ve)
|
|
10545
10557
|
if (s.caption !== void 0) {
|
|
10546
|
-
const
|
|
10558
|
+
const p = e;
|
|
10547
10559
|
if (typeof s.caption != "string")
|
|
10548
10560
|
return n.errors = [
|
|
10549
10561
|
{
|
|
@@ -10556,7 +10568,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10556
10568
|
message: "must be string"
|
|
10557
10569
|
}
|
|
10558
10570
|
], !1;
|
|
10559
|
-
var Ve =
|
|
10571
|
+
var Ve = p === e;
|
|
10560
10572
|
} else
|
|
10561
10573
|
var Ve = !0;
|
|
10562
10574
|
}
|
|
@@ -10628,7 +10640,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10628
10640
|
if (r.data !== void 0) {
|
|
10629
10641
|
let s = r.data;
|
|
10630
10642
|
const u = e, L = e;
|
|
10631
|
-
let
|
|
10643
|
+
let p = !1;
|
|
10632
10644
|
const j = e;
|
|
10633
10645
|
re(
|
|
10634
10646
|
s,
|
|
@@ -10642,7 +10654,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10642
10654
|
re.errors
|
|
10643
10655
|
), e = i.length);
|
|
10644
10656
|
var Ne = j === e;
|
|
10645
|
-
if (
|
|
10657
|
+
if (p = p || Ne, !p) {
|
|
10646
10658
|
const ce = e;
|
|
10647
10659
|
if (typeof s != "string") {
|
|
10648
10660
|
const Oe = {
|
|
@@ -10661,7 +10673,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10661
10673
|
), e++;
|
|
10662
10674
|
}
|
|
10663
10675
|
var Ne = ce === e;
|
|
10664
|
-
if (
|
|
10676
|
+
if (p = p || Ne, !p) {
|
|
10665
10677
|
const Oe = e;
|
|
10666
10678
|
if (e === Oe)
|
|
10667
10679
|
if (s && typeof s == "object" && !Array.isArray(
|
|
@@ -10924,10 +10936,10 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10924
10936
|
), e++;
|
|
10925
10937
|
}
|
|
10926
10938
|
var Ne = Oe === e;
|
|
10927
|
-
|
|
10939
|
+
p = p || Ne;
|
|
10928
10940
|
}
|
|
10929
10941
|
}
|
|
10930
|
-
if (
|
|
10942
|
+
if (p)
|
|
10931
10943
|
e = L, i !== null && (L ? i.length = L : i = null);
|
|
10932
10944
|
else {
|
|
10933
10945
|
const ce = {
|
|
@@ -10998,25 +11010,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
10998
11010
|
if (e === u)
|
|
10999
11011
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
11000
11012
|
const L = e;
|
|
11001
|
-
for (const
|
|
11002
|
-
if (!(
|
|
11013
|
+
for (const p in s)
|
|
11014
|
+
if (!(p === "weight" || p === "caption"))
|
|
11003
11015
|
return n.errors = [
|
|
11004
11016
|
{
|
|
11005
11017
|
instancePath: t + "/progress",
|
|
11006
11018
|
schemaPath: "#/oneOf/26/properties/progress/additionalProperties",
|
|
11007
11019
|
keyword: "additionalProperties",
|
|
11008
11020
|
params: {
|
|
11009
|
-
additionalProperty:
|
|
11021
|
+
additionalProperty: p
|
|
11010
11022
|
},
|
|
11011
11023
|
message: "must NOT have additional properties"
|
|
11012
11024
|
}
|
|
11013
11025
|
], !1;
|
|
11014
11026
|
if (L === e) {
|
|
11015
11027
|
if (s.weight !== void 0) {
|
|
11016
|
-
let
|
|
11028
|
+
let p = s.weight;
|
|
11017
11029
|
const j = e;
|
|
11018
|
-
if (!(typeof
|
|
11019
|
-
|
|
11030
|
+
if (!(typeof p == "number" && isFinite(
|
|
11031
|
+
p
|
|
11020
11032
|
)))
|
|
11021
11033
|
return n.errors = [
|
|
11022
11034
|
{
|
|
@@ -11034,7 +11046,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11034
11046
|
var He = !0;
|
|
11035
11047
|
if (He)
|
|
11036
11048
|
if (s.caption !== void 0) {
|
|
11037
|
-
const
|
|
11049
|
+
const p = e;
|
|
11038
11050
|
if (typeof s.caption != "string")
|
|
11039
11051
|
return n.errors = [
|
|
11040
11052
|
{
|
|
@@ -11047,7 +11059,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11047
11059
|
message: "must be string"
|
|
11048
11060
|
}
|
|
11049
11061
|
], !1;
|
|
11050
|
-
var He =
|
|
11062
|
+
var He = p === e;
|
|
11051
11063
|
} else
|
|
11052
11064
|
var He = !0;
|
|
11053
11065
|
}
|
|
@@ -11101,7 +11113,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11101
11113
|
if (r.command !== void 0) {
|
|
11102
11114
|
let s = r.command;
|
|
11103
11115
|
const u = e, L = e;
|
|
11104
|
-
let
|
|
11116
|
+
let p = !1;
|
|
11105
11117
|
const j = e;
|
|
11106
11118
|
if (typeof s != "string") {
|
|
11107
11119
|
const ce = {
|
|
@@ -11116,7 +11128,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11116
11128
|
i === null ? i = [ce] : i.push(ce), e++;
|
|
11117
11129
|
}
|
|
11118
11130
|
var dr = j === e;
|
|
11119
|
-
if (
|
|
11131
|
+
if (p = p || dr, !p) {
|
|
11120
11132
|
const ce = e;
|
|
11121
11133
|
if (e === ce)
|
|
11122
11134
|
if (Array.isArray(
|
|
@@ -11163,9 +11175,9 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11163
11175
|
), e++;
|
|
11164
11176
|
}
|
|
11165
11177
|
var dr = ce === e;
|
|
11166
|
-
|
|
11178
|
+
p = p || dr;
|
|
11167
11179
|
}
|
|
11168
|
-
if (
|
|
11180
|
+
if (p)
|
|
11169
11181
|
e = L, i !== null && (L ? i.length = L : i = null);
|
|
11170
11182
|
else {
|
|
11171
11183
|
const ce = {
|
|
@@ -11250,25 +11262,25 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11250
11262
|
if (e === u)
|
|
11251
11263
|
if (s && typeof s == "object" && !Array.isArray(s)) {
|
|
11252
11264
|
const L = e;
|
|
11253
|
-
for (const
|
|
11254
|
-
if (!(
|
|
11265
|
+
for (const p in s)
|
|
11266
|
+
if (!(p === "weight" || p === "caption"))
|
|
11255
11267
|
return n.errors = [
|
|
11256
11268
|
{
|
|
11257
11269
|
instancePath: t + "/progress",
|
|
11258
11270
|
schemaPath: "#/oneOf/27/properties/progress/additionalProperties",
|
|
11259
11271
|
keyword: "additionalProperties",
|
|
11260
11272
|
params: {
|
|
11261
|
-
additionalProperty:
|
|
11273
|
+
additionalProperty: p
|
|
11262
11274
|
},
|
|
11263
11275
|
message: "must NOT have additional properties"
|
|
11264
11276
|
}
|
|
11265
11277
|
], !1;
|
|
11266
11278
|
if (L === e) {
|
|
11267
11279
|
if (s.weight !== void 0) {
|
|
11268
|
-
let
|
|
11280
|
+
let p = s.weight;
|
|
11269
11281
|
const j = e;
|
|
11270
|
-
if (!(typeof
|
|
11271
|
-
|
|
11282
|
+
if (!(typeof p == "number" && isFinite(
|
|
11283
|
+
p
|
|
11272
11284
|
)))
|
|
11273
11285
|
return n.errors = [
|
|
11274
11286
|
{
|
|
@@ -11286,7 +11298,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11286
11298
|
var Ge = !0;
|
|
11287
11299
|
if (Ge)
|
|
11288
11300
|
if (s.caption !== void 0) {
|
|
11289
|
-
const
|
|
11301
|
+
const p = e;
|
|
11290
11302
|
if (typeof s.caption != "string")
|
|
11291
11303
|
return n.errors = [
|
|
11292
11304
|
{
|
|
@@ -11299,7 +11311,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11299
11311
|
message: "must be string"
|
|
11300
11312
|
}
|
|
11301
11313
|
], !1;
|
|
11302
|
-
var Ge =
|
|
11314
|
+
var Ge = p === e;
|
|
11303
11315
|
} else
|
|
11304
11316
|
var Ge = !0;
|
|
11305
11317
|
}
|
|
@@ -11421,7 +11433,7 @@ function n(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11421
11433
|
], !1;
|
|
11422
11434
|
return n.errors = i, e === 0;
|
|
11423
11435
|
}
|
|
11424
|
-
function B(r, { instancePath: t = "", parentData: o, parentDataProperty:
|
|
11436
|
+
function B(r, { instancePath: t = "", parentData: o, parentDataProperty: a, rootData: l = r } = {}) {
|
|
11425
11437
|
let i = null, e = 0;
|
|
11426
11438
|
if (e === 0)
|
|
11427
11439
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
@@ -11917,7 +11929,7 @@ function B(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11917
11929
|
const A = e;
|
|
11918
11930
|
if (e === A)
|
|
11919
11931
|
if (Array.isArray(c)) {
|
|
11920
|
-
var
|
|
11932
|
+
var I = !0;
|
|
11921
11933
|
const T = c.length;
|
|
11922
11934
|
for (let _ = 0; _ < T; _++) {
|
|
11923
11935
|
let y = c[_];
|
|
@@ -11973,8 +11985,8 @@ function B(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
11973
11985
|
W
|
|
11974
11986
|
), e++, B.errors = i, !1;
|
|
11975
11987
|
}
|
|
11976
|
-
var
|
|
11977
|
-
if (!
|
|
11988
|
+
var I = g === e;
|
|
11989
|
+
if (!I)
|
|
11978
11990
|
break;
|
|
11979
11991
|
}
|
|
11980
11992
|
} else
|
|
@@ -12284,8 +12296,8 @@ function B(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
12284
12296
|
) || (i = i === null ? n.errors : i.concat(
|
|
12285
12297
|
n.errors
|
|
12286
12298
|
), e = i.length);
|
|
12287
|
-
var
|
|
12288
|
-
if (O = O ||
|
|
12299
|
+
var D = N === e;
|
|
12300
|
+
if (O = O || D, !O) {
|
|
12289
12301
|
const W = e;
|
|
12290
12302
|
if (typeof y != "string") {
|
|
12291
12303
|
const V = {
|
|
@@ -12303,8 +12315,8 @@ function B(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
12303
12315
|
V
|
|
12304
12316
|
), e++;
|
|
12305
12317
|
}
|
|
12306
|
-
var
|
|
12307
|
-
if (O = O ||
|
|
12318
|
+
var D = W === e;
|
|
12319
|
+
if (O = O || D, !O) {
|
|
12308
12320
|
const V = e, ee = {
|
|
12309
12321
|
instancePath: t + "/steps/" + _,
|
|
12310
12322
|
schemaPath: "#/properties/steps/items/anyOf/2/not",
|
|
@@ -12317,8 +12329,8 @@ function B(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
12317
12329
|
] : i.push(
|
|
12318
12330
|
ee
|
|
12319
12331
|
), e++;
|
|
12320
|
-
var
|
|
12321
|
-
if (O = O ||
|
|
12332
|
+
var D = V === e;
|
|
12333
|
+
if (O = O || D, !O) {
|
|
12322
12334
|
const C = e;
|
|
12323
12335
|
if (typeof y != "boolean") {
|
|
12324
12336
|
const M = {
|
|
@@ -12352,8 +12364,8 @@ function B(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
12352
12364
|
M
|
|
12353
12365
|
), e++;
|
|
12354
12366
|
}
|
|
12355
|
-
var
|
|
12356
|
-
if (O = O ||
|
|
12367
|
+
var D = C === e;
|
|
12368
|
+
if (O = O || D, !O) {
|
|
12357
12369
|
const M = e;
|
|
12358
12370
|
if (y !== null) {
|
|
12359
12371
|
const K = {
|
|
@@ -12371,8 +12383,8 @@ function B(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
12371
12383
|
K
|
|
12372
12384
|
), e++;
|
|
12373
12385
|
}
|
|
12374
|
-
var
|
|
12375
|
-
O = O ||
|
|
12386
|
+
var D = M === e;
|
|
12387
|
+
O = O || D;
|
|
12376
12388
|
}
|
|
12377
12389
|
}
|
|
12378
12390
|
}
|
|
@@ -12454,12 +12466,12 @@ function B(r, { instancePath: t = "", parentData: o, parentDataProperty: p, root
|
|
|
12454
12466
|
], !1;
|
|
12455
12467
|
return B.errors = i, e === 0;
|
|
12456
12468
|
}
|
|
12457
|
-
function er(r, { instancePath: t = "", parentData: o, parentDataProperty:
|
|
12469
|
+
function er(r, { instancePath: t = "", parentData: o, parentDataProperty: a, rootData: l = r } = {}) {
|
|
12458
12470
|
let i = null, e = 0;
|
|
12459
12471
|
return B(r, {
|
|
12460
12472
|
instancePath: t,
|
|
12461
12473
|
parentData: o,
|
|
12462
|
-
parentDataProperty:
|
|
12474
|
+
parentDataProperty: a,
|
|
12463
12475
|
rootData: l
|
|
12464
12476
|
}) || (i = i === null ? B.errors : i.concat(B.errors), e = i.length), er.errors = i, e === 0;
|
|
12465
12477
|
}
|
|
@@ -12471,11 +12483,11 @@ const { wpCLI: Ls, ...Mr } = fs, Ss = {
|
|
|
12471
12483
|
function xs(r, {
|
|
12472
12484
|
progress: t = new ur(),
|
|
12473
12485
|
semaphore: o = new Ot({ concurrency: 3 }),
|
|
12474
|
-
onStepCompleted:
|
|
12486
|
+
onStepCompleted: a = () => {
|
|
12475
12487
|
}
|
|
12476
12488
|
} = {}) {
|
|
12477
|
-
var m, w, S,
|
|
12478
|
-
r = {
|
|
12489
|
+
var m, w, S, I, P, U, te, H, E;
|
|
12490
|
+
r = structuredClone(r), r = {
|
|
12479
12491
|
...r,
|
|
12480
12492
|
steps: (r.steps || []).filter(Is).filter(Ds)
|
|
12481
12493
|
};
|
|
@@ -12490,28 +12502,31 @@ function xs(r, {
|
|
|
12490
12502
|
step: "setSiteOptions",
|
|
12491
12503
|
options: r.siteOptions
|
|
12492
12504
|
}), r.plugins) {
|
|
12493
|
-
const x = r.plugins.map((
|
|
12505
|
+
const x = r.plugins.map((D) => typeof D == "string" ? D.startsWith("https://") ? {
|
|
12494
12506
|
resource: "url",
|
|
12495
|
-
url:
|
|
12507
|
+
url: D
|
|
12496
12508
|
} : {
|
|
12497
12509
|
resource: "wordpress.org/plugins",
|
|
12498
|
-
slug:
|
|
12499
|
-
} :
|
|
12510
|
+
slug: D
|
|
12511
|
+
} : D).map((D) => ({
|
|
12500
12512
|
step: "installPlugin",
|
|
12501
|
-
pluginZipFile:
|
|
12513
|
+
pluginZipFile: D
|
|
12502
12514
|
}));
|
|
12503
12515
|
r.steps.unshift(...x);
|
|
12504
12516
|
}
|
|
12505
12517
|
r.login && r.steps.push({
|
|
12506
12518
|
step: "login",
|
|
12507
12519
|
...r.login === !0 ? { username: "admin", password: "password" } : r.login
|
|
12508
|
-
}), r.phpExtensionBundles || (r.phpExtensionBundles = []), r.phpExtensionBundles || (r.phpExtensionBundles = []), r.phpExtensionBundles.length === 0 && r.phpExtensionBundles
|
|
12520
|
+
}), r.phpExtensionBundles || (r.phpExtensionBundles = []), r.phpExtensionBundles || (r.phpExtensionBundles = []), r.phpExtensionBundles.length === 0 && (r.phpExtensionBundles = [
|
|
12521
|
+
...r.phpExtensionBundles,
|
|
12522
|
+
"kitchen-sink"
|
|
12523
|
+
]);
|
|
12509
12524
|
const l = ((m = r.steps) == null ? void 0 : m.findIndex(
|
|
12510
12525
|
(x) => typeof x == "object" && (x == null ? void 0 : x.step) === "wp-cli"
|
|
12511
12526
|
)) ?? -1;
|
|
12512
12527
|
if ((w = r == null ? void 0 : r.extraLibraries) != null && w.includes("wp-cli") || l > -1) {
|
|
12513
12528
|
r.phpExtensionBundles.includes("light") && (r.phpExtensionBundles = r.phpExtensionBundles.filter(
|
|
12514
|
-
(
|
|
12529
|
+
(D) => D !== "light"
|
|
12515
12530
|
), ae.warn(
|
|
12516
12531
|
"WP-CLI is used in your Blueprint, and it requires the iconv and mbstring PHP extensions. However, you did not specify the kitchen-sink extension bundle. Playground will override your choice and load the kitchen-sink PHP extensions bundle to prevent the WP-CLI step from failing. "
|
|
12517
12532
|
));
|
|
@@ -12533,7 +12548,7 @@ function xs(r, {
|
|
|
12533
12548
|
},
|
|
12534
12549
|
path: "/tmp/wp-cli.phar"
|
|
12535
12550
|
};
|
|
12536
|
-
l === -1 ? (S = r.steps) == null || S.push(x) : (
|
|
12551
|
+
l === -1 ? (S = r.steps) == null || S.push(x) : (I = r.steps) == null || I.splice(l, 0, x);
|
|
12537
12552
|
}
|
|
12538
12553
|
const i = (P = r.steps) == null ? void 0 : P.findIndex(
|
|
12539
12554
|
(x) => typeof x == "object" && (x == null ? void 0 : x.step) === "importWxr"
|
|
@@ -12558,9 +12573,9 @@ function xs(r, {
|
|
|
12558
12573
|
throw x.errors = f, x;
|
|
12559
12574
|
}
|
|
12560
12575
|
const h = r.steps || [], b = h.reduce(
|
|
12561
|
-
(x,
|
|
12576
|
+
(x, D) => {
|
|
12562
12577
|
var z;
|
|
12563
|
-
return x + (((z =
|
|
12578
|
+
return x + (((z = D.progress) == null ? void 0 : z.weight) || 1);
|
|
12564
12579
|
},
|
|
12565
12580
|
0
|
|
12566
12581
|
), k = h.map(
|
|
@@ -12590,16 +12605,16 @@ function xs(r, {
|
|
|
12590
12605
|
extraLibraries: r.extraLibraries || [],
|
|
12591
12606
|
run: async (x) => {
|
|
12592
12607
|
try {
|
|
12593
|
-
for (const { resources:
|
|
12594
|
-
for (const z of
|
|
12608
|
+
for (const { resources: D } of k)
|
|
12609
|
+
for (const z of D)
|
|
12595
12610
|
z.setPlayground(x), z.isAsync && z.resolve();
|
|
12596
|
-
for (const [
|
|
12611
|
+
for (const [D, { run: z, step: c }] of Object.entries(k))
|
|
12597
12612
|
try {
|
|
12598
12613
|
const A = await z(x);
|
|
12599
|
-
|
|
12614
|
+
a(A, c);
|
|
12600
12615
|
} catch (A) {
|
|
12601
12616
|
throw ae.error(A), new Error(
|
|
12602
|
-
`Error when executing the blueprint step #${
|
|
12617
|
+
`Error when executing the blueprint step #${D} (${JSON.stringify(
|
|
12603
12618
|
c
|
|
12604
12619
|
)}) ${A instanceof Error ? `: ${A.message}` : A}`,
|
|
12605
12620
|
{ cause: A }
|
|
@@ -12625,12 +12640,12 @@ function Ns(r) {
|
|
|
12625
12640
|
const o = /* @__PURE__ */ new Set();
|
|
12626
12641
|
for (const i of er.errors)
|
|
12627
12642
|
i.schemaPath.startsWith("#/properties/steps/items/anyOf") || o.add(i.instancePath);
|
|
12628
|
-
const
|
|
12643
|
+
const a = (l = er.errors) == null ? void 0 : l.filter(
|
|
12629
12644
|
(i) => !(i.schemaPath.startsWith("#/properties/steps/items/anyOf") && o.has(i.instancePath))
|
|
12630
12645
|
);
|
|
12631
12646
|
return {
|
|
12632
12647
|
valid: t,
|
|
12633
|
-
errors:
|
|
12648
|
+
errors: a
|
|
12634
12649
|
};
|
|
12635
12650
|
}
|
|
12636
12651
|
function Fs(r, t, o) {
|
|
@@ -12639,10 +12654,10 @@ function Fs(r, t, o) {
|
|
|
12639
12654
|
function Cs(r, t) {
|
|
12640
12655
|
const o = lt.filter(
|
|
12641
12656
|
(l) => r.includes(l)
|
|
12642
|
-
),
|
|
12657
|
+
), a = t.flatMap(
|
|
12643
12658
|
(l) => l in Wr ? Wr[l] : []
|
|
12644
12659
|
);
|
|
12645
|
-
return Array.from(/* @__PURE__ */ new Set([...o, ...
|
|
12660
|
+
return Array.from(/* @__PURE__ */ new Set([...o, ...a]));
|
|
12646
12661
|
}
|
|
12647
12662
|
function Is(r) {
|
|
12648
12663
|
return !!(typeof r == "object" && r);
|
|
@@ -12655,11 +12670,11 @@ function Ds(r) {
|
|
|
12655
12670
|
function Ws(r, {
|
|
12656
12671
|
semaphore: t,
|
|
12657
12672
|
rootProgressTracker: o,
|
|
12658
|
-
totalProgressWeight:
|
|
12673
|
+
totalProgressWeight: a
|
|
12659
12674
|
}) {
|
|
12660
12675
|
var k;
|
|
12661
12676
|
const l = o.stage(
|
|
12662
|
-
(((k = r.progress) == null ? void 0 : k.weight) || 1) /
|
|
12677
|
+
(((k = r.progress) == null ? void 0 : k.weight) || 1) / a
|
|
12663
12678
|
), i = {};
|
|
12664
12679
|
for (const m of Object.keys(r)) {
|
|
12665
12680
|
let w = r[m];
|
|
@@ -12691,16 +12706,16 @@ function Ws(r, {
|
|
|
12691
12706
|
function Br(r) {
|
|
12692
12707
|
const t = [];
|
|
12693
12708
|
for (const o in r) {
|
|
12694
|
-
const
|
|
12695
|
-
|
|
12709
|
+
const a = r[o];
|
|
12710
|
+
a instanceof Le && t.push(a);
|
|
12696
12711
|
}
|
|
12697
12712
|
return t;
|
|
12698
12713
|
}
|
|
12699
12714
|
async function Ms(r) {
|
|
12700
12715
|
const t = {};
|
|
12701
12716
|
for (const o in r) {
|
|
12702
|
-
const
|
|
12703
|
-
|
|
12717
|
+
const a = r[o];
|
|
12718
|
+
a instanceof Le ? t[o] = await a.resolve() : t[o] = a;
|
|
12704
12719
|
}
|
|
12705
12720
|
return t;
|
|
12706
12721
|
}
|
|
@@ -12750,7 +12765,7 @@ function Gs(r, t) {
|
|
|
12750
12765
|
return !1;
|
|
12751
12766
|
}
|
|
12752
12767
|
function qr(r, t = globalThis, o = ["*"]) {
|
|
12753
|
-
t.addEventListener("message", function
|
|
12768
|
+
t.addEventListener("message", function a(l) {
|
|
12754
12769
|
if (!l || !l.data)
|
|
12755
12770
|
return;
|
|
12756
12771
|
if (!Gs(o, l.origin)) {
|
|
@@ -12794,7 +12809,7 @@ function qr(r, t = globalThis, o = ["*"]) {
|
|
|
12794
12809
|
}
|
|
12795
12810
|
Promise.resolve(b).catch((k) => ({ value: k, [rr]: 0 })).then((k) => {
|
|
12796
12811
|
const [m, w] = pr(k);
|
|
12797
|
-
t.postMessage(Object.assign(Object.assign({}, m), { id: i }), w), e === "RELEASE" && (t.removeEventListener("message",
|
|
12812
|
+
t.postMessage(Object.assign(Object.assign({}, m), { id: i }), w), e === "RELEASE" && (t.removeEventListener("message", a), ht(t), wr in r && typeof r[wr] == "function" && r[wr]());
|
|
12798
12813
|
}).catch((k) => {
|
|
12799
12814
|
const [m, w] = pr({
|
|
12800
12815
|
value: new TypeError("Unserializable return value"),
|
|
@@ -12837,12 +12852,12 @@ function Qs(r) {
|
|
|
12837
12852
|
}
|
|
12838
12853
|
function Er(r, t = [], o = function() {
|
|
12839
12854
|
}) {
|
|
12840
|
-
let
|
|
12855
|
+
let a = !1;
|
|
12841
12856
|
const l = new Proxy(o, {
|
|
12842
12857
|
get(i, e) {
|
|
12843
|
-
if (Ke(
|
|
12858
|
+
if (Ke(a), e === zs)
|
|
12844
12859
|
return () => {
|
|
12845
|
-
Qs(l), gt(r),
|
|
12860
|
+
Qs(l), gt(r), a = !0;
|
|
12846
12861
|
};
|
|
12847
12862
|
if (e === "then") {
|
|
12848
12863
|
if (t.length === 0)
|
|
@@ -12856,7 +12871,7 @@ function Er(r, t = [], o = function() {
|
|
|
12856
12871
|
return Er(r, [...t, e]);
|
|
12857
12872
|
},
|
|
12858
12873
|
set(i, e, f) {
|
|
12859
|
-
Ke(
|
|
12874
|
+
Ke(a);
|
|
12860
12875
|
const [h, b] = pr(f);
|
|
12861
12876
|
return Se(r, {
|
|
12862
12877
|
type: "SET",
|
|
@@ -12865,7 +12880,7 @@ function Er(r, t = [], o = function() {
|
|
|
12865
12880
|
}, b).then(Re);
|
|
12866
12881
|
},
|
|
12867
12882
|
apply(i, e, f) {
|
|
12868
|
-
Ke(
|
|
12883
|
+
Ke(a);
|
|
12869
12884
|
const h = t[t.length - 1];
|
|
12870
12885
|
if (h === Us)
|
|
12871
12886
|
return Se(r, {
|
|
@@ -12881,7 +12896,7 @@ function Er(r, t = [], o = function() {
|
|
|
12881
12896
|
}, k).then(Re);
|
|
12882
12897
|
},
|
|
12883
12898
|
construct(i, e) {
|
|
12884
|
-
Ke(
|
|
12899
|
+
Ke(a);
|
|
12885
12900
|
const [f, h] = Ur(e);
|
|
12886
12901
|
return Se(r, {
|
|
12887
12902
|
type: "CONSTRUCT",
|
|
@@ -12908,7 +12923,7 @@ function wt(r) {
|
|
|
12908
12923
|
}
|
|
12909
12924
|
function Xs(r, t = globalThis, o = "*") {
|
|
12910
12925
|
return {
|
|
12911
|
-
postMessage: (
|
|
12926
|
+
postMessage: (a, l) => r.postMessage(a, o, l),
|
|
12912
12927
|
addEventListener: t.addEventListener.bind(t),
|
|
12913
12928
|
removeEventListener: t.removeEventListener.bind(t)
|
|
12914
12929
|
};
|
|
@@ -12916,12 +12931,12 @@ function Xs(r, t = globalThis, o = "*") {
|
|
|
12916
12931
|
function pr(r) {
|
|
12917
12932
|
for (const [t, o] of xe)
|
|
12918
12933
|
if (o.canHandle(r)) {
|
|
12919
|
-
const [
|
|
12934
|
+
const [a, l] = o.serialize(r);
|
|
12920
12935
|
return [
|
|
12921
12936
|
{
|
|
12922
12937
|
type: "HANDLER",
|
|
12923
12938
|
name: t,
|
|
12924
|
-
value:
|
|
12939
|
+
value: a
|
|
12925
12940
|
},
|
|
12926
12941
|
l
|
|
12927
12942
|
];
|
|
@@ -12943,10 +12958,10 @@ function Re(r) {
|
|
|
12943
12958
|
}
|
|
12944
12959
|
}
|
|
12945
12960
|
function Se(r, t, o) {
|
|
12946
|
-
return new Promise((
|
|
12961
|
+
return new Promise((a) => {
|
|
12947
12962
|
const l = ei();
|
|
12948
12963
|
r.addEventListener("message", function i(e) {
|
|
12949
|
-
!e.data || !e.data.id || e.data.id !== l || (r.removeEventListener("message", i),
|
|
12964
|
+
!e.data || !e.data.id || e.data.id !== l || (r.removeEventListener("message", i), a(e.data));
|
|
12950
12965
|
}), r.start && r.start(), r.postMessage(Object.assign({ id: l }, t), o);
|
|
12951
12966
|
});
|
|
12952
12967
|
}
|
|
@@ -12955,21 +12970,21 @@ function ei() {
|
|
|
12955
12970
|
}
|
|
12956
12971
|
function ri(r, t = void 0) {
|
|
12957
12972
|
si();
|
|
12958
|
-
const o = r instanceof Worker ? r : Xs(r, t),
|
|
12973
|
+
const o = r instanceof Worker ? r : Xs(r, t), a = Rr(o), l = vt(a);
|
|
12959
12974
|
return new Proxy(l, {
|
|
12960
12975
|
get: (i, e) => e === "isConnected" ? async () => {
|
|
12961
12976
|
for (; ; )
|
|
12962
12977
|
try {
|
|
12963
|
-
await ti(
|
|
12978
|
+
await ti(a.isConnected(), 200);
|
|
12964
12979
|
break;
|
|
12965
12980
|
} catch {
|
|
12966
12981
|
}
|
|
12967
|
-
} :
|
|
12982
|
+
} : a[e]
|
|
12968
12983
|
});
|
|
12969
12984
|
}
|
|
12970
12985
|
async function ti(r, t) {
|
|
12971
|
-
return new Promise((o,
|
|
12972
|
-
setTimeout(
|
|
12986
|
+
return new Promise((o, a) => {
|
|
12987
|
+
setTimeout(a, t), r.then(o);
|
|
12973
12988
|
});
|
|
12974
12989
|
}
|
|
12975
12990
|
let zr = !1;
|
|
@@ -12988,8 +13003,8 @@ function si() {
|
|
|
12988
13003
|
}), xe.set("FUNCTION", {
|
|
12989
13004
|
canHandle: (o) => typeof o == "function",
|
|
12990
13005
|
serialize(o) {
|
|
12991
|
-
const { port1:
|
|
12992
|
-
return qr(o,
|
|
13006
|
+
const { port1: a, port2: l } = new MessageChannel();
|
|
13007
|
+
return qr(o, a), [l, [l]];
|
|
12993
13008
|
},
|
|
12994
13009
|
deserialize(o) {
|
|
12995
13010
|
return o.start(), Rr(o);
|
|
@@ -13005,8 +13020,8 @@ function si() {
|
|
|
13005
13020
|
});
|
|
13006
13021
|
const r = xe.get("throw"), t = r == null ? void 0 : r.serialize;
|
|
13007
13022
|
r.serialize = ({ value: o }) => {
|
|
13008
|
-
const
|
|
13009
|
-
return o.response && (
|
|
13023
|
+
const a = t({ value: o });
|
|
13024
|
+
return o.response && (a[0].value.response = o.response), o.source && (a[0].value.source = o.source), a;
|
|
13010
13025
|
};
|
|
13011
13026
|
}
|
|
13012
13027
|
function vt(r) {
|
|
@@ -13014,7 +13029,7 @@ function vt(r) {
|
|
|
13014
13029
|
get(t, o) {
|
|
13015
13030
|
switch (typeof t[o]) {
|
|
13016
13031
|
case "function":
|
|
13017
|
-
return (...
|
|
13032
|
+
return (...a) => t[o](...a);
|
|
13018
13033
|
case "object":
|
|
13019
13034
|
return t[o] === null ? t[o] : vt(t[o]);
|
|
13020
13035
|
case "undefined":
|
|
@@ -13033,7 +13048,7 @@ async function fi({
|
|
|
13033
13048
|
iframe: r,
|
|
13034
13049
|
blueprint: t,
|
|
13035
13050
|
remoteUrl: o,
|
|
13036
|
-
progressTracker:
|
|
13051
|
+
progressTracker: a = new ur(),
|
|
13037
13052
|
disableProgressBar: l,
|
|
13038
13053
|
onBlueprintStepCompleted: i,
|
|
13039
13054
|
onClientConnected: e = () => {
|
|
@@ -13045,22 +13060,22 @@ async function fi({
|
|
|
13045
13060
|
}) {
|
|
13046
13061
|
oi(o), ii(r), o = ni(o, {
|
|
13047
13062
|
progressbar: !l
|
|
13048
|
-
}),
|
|
13063
|
+
}), a.setCaption("Preparing WordPress"), t || (t = {
|
|
13049
13064
|
phpExtensionBundles: ["kitchen-sink"]
|
|
13050
13065
|
});
|
|
13051
13066
|
const m = xs(t, {
|
|
13052
|
-
progress:
|
|
13067
|
+
progress: a.stage(0.5),
|
|
13053
13068
|
onStepCompleted: i
|
|
13054
13069
|
});
|
|
13055
|
-
await new Promise((
|
|
13056
|
-
r.src = o, r.addEventListener("load",
|
|
13070
|
+
await new Promise((I) => {
|
|
13071
|
+
r.src = o, r.addEventListener("load", I, !1);
|
|
13057
13072
|
});
|
|
13058
13073
|
const w = ri(
|
|
13059
13074
|
r.contentWindow,
|
|
13060
13075
|
r.ownerDocument.defaultView
|
|
13061
13076
|
);
|
|
13062
|
-
await w.isConnected(),
|
|
13063
|
-
const S =
|
|
13077
|
+
await w.isConnected(), a.pipe(w);
|
|
13078
|
+
const S = a.stage();
|
|
13064
13079
|
return await w.onDownloadProgress(S.loadingListener), await w.boot({
|
|
13065
13080
|
mounts: b,
|
|
13066
13081
|
sapiName: f,
|
|
@@ -13069,7 +13084,7 @@ async function fi({
|
|
|
13069
13084
|
wpVersion: m.versions.wp,
|
|
13070
13085
|
phpExtensions: m.phpExtensions,
|
|
13071
13086
|
withNetworking: m.features.networking
|
|
13072
|
-
}), await w.isReady(), S.finish(), St(ae, w), e(w), h && await h(), await Bs(m, w),
|
|
13087
|
+
}), await w.isReady(), S.finish(), St(ae, w), e(w), h && await h(), await Bs(m, w), a.finish(), w;
|
|
13073
13088
|
}
|
|
13074
13089
|
function ii(r) {
|
|
13075
13090
|
var t, o;
|
|
@@ -13084,15 +13099,15 @@ function oi(r) {
|
|
|
13084
13099
|
);
|
|
13085
13100
|
}
|
|
13086
13101
|
function ni(r, t) {
|
|
13087
|
-
const o = new URL(r, tr),
|
|
13102
|
+
const o = new URL(r, tr), a = new URLSearchParams(o.search);
|
|
13088
13103
|
for (const [l, i] of Object.entries(t))
|
|
13089
13104
|
if (i != null && i !== !1)
|
|
13090
13105
|
if (Array.isArray(i))
|
|
13091
13106
|
for (const e of i)
|
|
13092
|
-
|
|
13107
|
+
a.append(l, e.toString());
|
|
13093
13108
|
else
|
|
13094
|
-
|
|
13095
|
-
return o.search =
|
|
13109
|
+
a.set(l, i.toString());
|
|
13110
|
+
return o.search = a.toString(), o.toString();
|
|
13096
13111
|
}
|
|
13097
13112
|
export {
|
|
13098
13113
|
gs as LatestSupportedPHPVersion,
|