@wp-playground/blueprints 0.9.42 → 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.js +554 -539
- package/package.json +11 -11
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@php-wasm/node-polyfills";
|
|
2
2
|
import { phpVar as se, randomFilename as Pr, phpVars as Je, joinPaths as oe, dirname as _r, randomString as kr, Semaphore as Or } from "@php-wasm/util";
|
|
3
|
-
import { logger as
|
|
3
|
+
import { logger as ae } from "@php-wasm/logger";
|
|
4
4
|
import { isURLScoped as $r, getURLScope as Er } from "@php-wasm/scopes";
|
|
5
5
|
import { unzipFile as ar } from "@wp-playground/common";
|
|
6
6
|
import { cloneResponseMonitorProgress as Tr, ProgressTracker as jr } from "@php-wasm/progress";
|
|
@@ -26,13 +26,13 @@ const pr = [
|
|
|
26
26
|
"themes/twentytwentyfour",
|
|
27
27
|
"themes/twentytwentyfive",
|
|
28
28
|
"themes/twentytwentysix"
|
|
29
|
-
], Ke = async (r, { pluginPath: t, pluginName: f },
|
|
30
|
-
|
|
31
|
-
const
|
|
29
|
+
], Ke = async (r, { pluginPath: t, pluginName: f }, d) => {
|
|
30
|
+
d == null || d.tracker.setCaption(`Activating ${f || t}`);
|
|
31
|
+
const c = await r.documentRoot, i = await r.run({
|
|
32
32
|
code: `<?php
|
|
33
33
|
define( 'WP_ADMIN', true );
|
|
34
|
-
require_once( ${se(
|
|
35
|
-
require_once( ${se(
|
|
34
|
+
require_once( ${se(c)}. "/wp-load.php" );
|
|
35
|
+
require_once( ${se(c)}. "/wp-admin/includes/plugin.php" );
|
|
36
36
|
|
|
37
37
|
// Set current user to admin
|
|
38
38
|
wp_set_current_user( get_users(array('role' => 'Administrator') )[0]->ID );
|
|
@@ -64,16 +64,16 @@ const pr = [
|
|
|
64
64
|
`
|
|
65
65
|
});
|
|
66
66
|
if (i.text !== "Plugin activated successfully")
|
|
67
|
-
throw
|
|
67
|
+
throw ae.debug(i), new Error(
|
|
68
68
|
`Plugin ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details`
|
|
69
69
|
);
|
|
70
70
|
}, fr = async (r, { themeFolderName: t }, f) => {
|
|
71
71
|
f == null || f.tracker.setCaption(`Activating ${t}`);
|
|
72
|
-
const
|
|
73
|
-
if (!await r.fileExists(
|
|
72
|
+
const d = await r.documentRoot, c = `${d}/wp-content/themes/${t}`;
|
|
73
|
+
if (!await r.fileExists(c))
|
|
74
74
|
throw new Error(`
|
|
75
75
|
Couldn't activate theme ${t}.
|
|
76
|
-
Theme not found at the provided theme path: ${
|
|
76
|
+
Theme not found at the provided theme path: ${c}.
|
|
77
77
|
Check the theme path to ensure it's correct.
|
|
78
78
|
If the theme is not installed, you can install it using the installTheme step.
|
|
79
79
|
More info can be found in the Blueprint documentation: https://wordpress.github.io/wordpress-playground/blueprints/steps/#ActivateThemeStep
|
|
@@ -94,24 +94,24 @@ const pr = [
|
|
|
94
94
|
die('Theme activated successfully');
|
|
95
95
|
`,
|
|
96
96
|
env: {
|
|
97
|
-
docroot:
|
|
97
|
+
docroot: d,
|
|
98
98
|
themeFolderName: t
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
if (i.text !== "Theme activated successfully")
|
|
102
|
-
throw
|
|
102
|
+
throw ae.debug(i), new Error(
|
|
103
103
|
`Theme ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details`
|
|
104
104
|
);
|
|
105
105
|
}, Lr = async (r, { code: t }) => await r.run({ code: t }), Sr = async (r, { options: t }) => await r.run(t), lr = async (r, { path: t }) => {
|
|
106
106
|
await r.unlink(t);
|
|
107
107
|
}, Nr = async (r, { sql: t }, f) => {
|
|
108
108
|
f == null || f.tracker.setCaption("Executing SQL Queries");
|
|
109
|
-
const
|
|
109
|
+
const d = `/tmp/${Pr()}.sql`;
|
|
110
110
|
await r.writeFile(
|
|
111
|
-
|
|
111
|
+
d,
|
|
112
112
|
new Uint8Array(await t.arrayBuffer())
|
|
113
113
|
);
|
|
114
|
-
const
|
|
114
|
+
const c = await r.documentRoot, i = Je({ docroot: c, sqlFilename: d }), e = await r.run({
|
|
115
115
|
code: `<?php
|
|
116
116
|
require_once ${i.docroot} . '/wp-load.php';
|
|
117
117
|
|
|
@@ -133,18 +133,18 @@ const pr = [
|
|
|
133
133
|
}
|
|
134
134
|
`
|
|
135
135
|
});
|
|
136
|
-
return await lr(r, { path:
|
|
136
|
+
return await lr(r, { path: d }), e;
|
|
137
137
|
}, Qe = async (r, { request: t }) => {
|
|
138
|
-
|
|
138
|
+
ae.warn(
|
|
139
139
|
'Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.'
|
|
140
140
|
);
|
|
141
141
|
const f = await r.request(t);
|
|
142
142
|
if (f.httpStatusCode > 399 || f.httpStatusCode < 200)
|
|
143
|
-
throw
|
|
143
|
+
throw ae.warn("WordPress response was", { response: f }), new Error(
|
|
144
144
|
`Request failed with status ${f.httpStatusCode}`
|
|
145
145
|
);
|
|
146
146
|
return f;
|
|
147
|
-
},
|
|
147
|
+
}, xr = `<?php
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Rewrites the wp-config.php file to ensure specific constants are defined
|
|
@@ -478,45 +478,45 @@ function skip_whitespace($tokens) {
|
|
|
478
478
|
`, Ve = async (r, { consts: t, method: f = "define-before-run" }) => {
|
|
479
479
|
switch (f) {
|
|
480
480
|
case "define-before-run":
|
|
481
|
-
await
|
|
481
|
+
await Fr(r, t);
|
|
482
482
|
break;
|
|
483
483
|
case "rewrite-wp-config": {
|
|
484
|
-
const
|
|
484
|
+
const d = await r.documentRoot, c = oe(d, "/wp-config.php"), i = await r.readFileAsText(c), e = await Cr(
|
|
485
485
|
r,
|
|
486
486
|
i,
|
|
487
487
|
t
|
|
488
488
|
);
|
|
489
|
-
await r.writeFile(
|
|
489
|
+
await r.writeFile(c, e);
|
|
490
490
|
break;
|
|
491
491
|
}
|
|
492
492
|
default:
|
|
493
493
|
throw new Error(`Invalid method: ${f}`);
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
|
-
async function
|
|
496
|
+
async function Fr(r, t) {
|
|
497
497
|
for (const f in t)
|
|
498
498
|
await r.defineConstant(f, t[f]);
|
|
499
499
|
}
|
|
500
500
|
async function Cr(r, t, f) {
|
|
501
501
|
await r.writeFile("/tmp/code.php", t);
|
|
502
|
-
const
|
|
502
|
+
const d = Je({
|
|
503
503
|
consts: f
|
|
504
504
|
});
|
|
505
505
|
return await r.run({
|
|
506
|
-
code: `${
|
|
506
|
+
code: `${xr}
|
|
507
507
|
$wp_config_path = '/tmp/code.php';
|
|
508
508
|
$wp_config = file_get_contents($wp_config_path);
|
|
509
|
-
$new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${
|
|
509
|
+
$new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${d.consts});
|
|
510
510
|
file_put_contents($wp_config_path, $new_wp_config);
|
|
511
511
|
`
|
|
512
512
|
}), await r.readFileAsText("/tmp/code.php");
|
|
513
513
|
}
|
|
514
|
-
const Xe = async (r, { username: t = "admin", password: f = "password" } = {},
|
|
515
|
-
var i, e,
|
|
516
|
-
|
|
514
|
+
const Xe = async (r, { username: t = "admin", password: f = "password" } = {}, d) => {
|
|
515
|
+
var i, e, u;
|
|
516
|
+
d == null || d.tracker.setCaption((d == null ? void 0 : d.initialCaption) || "Logging in"), await r.request({
|
|
517
517
|
url: "/wp-login.php"
|
|
518
518
|
});
|
|
519
|
-
const
|
|
519
|
+
const c = await r.request({
|
|
520
520
|
url: "/wp-login.php",
|
|
521
521
|
method: "POST",
|
|
522
522
|
body: {
|
|
@@ -525,10 +525,10 @@ const Xe = async (r, { username: t = "admin", password: f = "password" } = {}, c
|
|
|
525
525
|
rememberme: "forever"
|
|
526
526
|
}
|
|
527
527
|
});
|
|
528
|
-
if (!((
|
|
529
|
-
throw
|
|
530
|
-
response:
|
|
531
|
-
text:
|
|
528
|
+
if (!((u = (e = (i = c.headers) == null ? void 0 : i.location) == null ? void 0 : e[0]) != null && u.includes("/wp-admin/")))
|
|
529
|
+
throw ae.warn("WordPress response was", {
|
|
530
|
+
response: c,
|
|
531
|
+
text: c.text
|
|
532
532
|
}), new Error(
|
|
533
533
|
`Failed to log in as ${t} with password ${f}`
|
|
534
534
|
);
|
|
@@ -545,10 +545,10 @@ const Xe = async (r, { username: t = "admin", password: f = "password" } = {}, c
|
|
|
545
545
|
`
|
|
546
546
|
});
|
|
547
547
|
}, Ir = async (r, { meta: t, userId: f }) => {
|
|
548
|
-
const
|
|
548
|
+
const d = await r.documentRoot;
|
|
549
549
|
await r.run({
|
|
550
550
|
code: `<?php
|
|
551
|
-
include ${se(
|
|
551
|
+
include ${se(d)} . '/wp-load.php';
|
|
552
552
|
$meta = ${se(t)};
|
|
553
553
|
foreach($meta as $name => $value) {
|
|
554
554
|
update_user_meta(${se(f)}, $name, $value);
|
|
@@ -567,23 +567,23 @@ const Xe = async (r, { username: t = "admin", password: f = "password" } = {}, c
|
|
|
567
567
|
let M = `The current host is ${t.host}, but WordPress multisites do not support custom ports.`;
|
|
568
568
|
throw t.hostname === "localhost" && (M += " For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."), new Error(M);
|
|
569
569
|
}
|
|
570
|
-
const f = t.pathname.replace(/\/$/, "") + "/",
|
|
570
|
+
const f = t.pathname.replace(/\/$/, "") + "/", d = `${t.protocol}//${t.hostname}${f}`;
|
|
571
571
|
await dr(r, {
|
|
572
572
|
options: {
|
|
573
|
-
siteurl:
|
|
574
|
-
home:
|
|
573
|
+
siteurl: d,
|
|
574
|
+
home: d
|
|
575
575
|
}
|
|
576
576
|
}), await Xe(r, {});
|
|
577
|
-
const
|
|
577
|
+
const c = await r.documentRoot, e = (await r.run({
|
|
578
578
|
code: `<?php
|
|
579
579
|
define( 'WP_ADMIN', true );
|
|
580
|
-
require_once(${se(
|
|
580
|
+
require_once(${se(c)} . "/wp-load.php");
|
|
581
581
|
|
|
582
582
|
// Set current user to admin
|
|
583
583
|
( get_users(array('role' => 'Administrator') )[0] );
|
|
584
584
|
|
|
585
|
-
require_once(${se(
|
|
586
|
-
$plugins_root = ${se(
|
|
585
|
+
require_once(${se(c)} . "/wp-admin/includes/plugin.php");
|
|
586
|
+
$plugins_root = ${se(c)} . "/wp-content/plugins";
|
|
587
587
|
$plugins = glob($plugins_root . "/*");
|
|
588
588
|
|
|
589
589
|
$deactivated_plugins = [];
|
|
@@ -631,7 +631,7 @@ echo json_encode($deactivated_plugins);
|
|
|
631
631
|
}
|
|
632
632
|
});
|
|
633
633
|
if (B.httpStatusCode !== 200)
|
|
634
|
-
throw
|
|
634
|
+
throw ae.warn("WordPress response was", {
|
|
635
635
|
response: B,
|
|
636
636
|
text: B.text,
|
|
637
637
|
headers: B.headers
|
|
@@ -648,11 +648,11 @@ echo json_encode($deactivated_plugins);
|
|
|
648
648
|
PATH_CURRENT_SITE: f
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
|
-
const
|
|
651
|
+
const U = new URL(await r.absoluteUrl), v = $r(U) ? "scope:" + Er(U) : null;
|
|
652
652
|
await r.writeFile(
|
|
653
653
|
"/internal/shared/preload/sunrise.php",
|
|
654
654
|
`<?php
|
|
655
|
-
$_SERVER['HTTP_HOST'] = ${se(
|
|
655
|
+
$_SERVER['HTTP_HOST'] = ${se(U.hostname)};
|
|
656
656
|
$folder = ${se(v)};
|
|
657
657
|
if ($folder && strpos($_SERVER['REQUEST_URI'],"/$folder") === false) {
|
|
658
658
|
$_SERVER['REQUEST_URI'] = "/$folder/" . ltrim($_SERVER['REQUEST_URI'], '/');
|
|
@@ -667,9 +667,13 @@ echo json_encode($deactivated_plugins);
|
|
|
667
667
|
`
|
|
668
668
|
), await Xe(r, {});
|
|
669
669
|
for (const M of e)
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
670
|
+
try {
|
|
671
|
+
await Ke(r, {
|
|
672
|
+
pluginPath: M
|
|
673
|
+
});
|
|
674
|
+
} catch (I) {
|
|
675
|
+
ae.error("Error activating plugin", M, I);
|
|
676
|
+
}
|
|
673
677
|
};
|
|
674
678
|
function Wr(r) {
|
|
675
679
|
return Object.keys(r).map(
|
|
@@ -697,16 +701,16 @@ const Br = async (r, { fromPath: t, toPath: f }) => {
|
|
|
697
701
|
}
|
|
698
702
|
});
|
|
699
703
|
}, Vr = async (r, { file: t }, f) => {
|
|
700
|
-
var
|
|
701
|
-
(
|
|
704
|
+
var c;
|
|
705
|
+
(c = f == null ? void 0 : f.tracker) == null || c.setCaption("Importing content"), await ur(r, {
|
|
702
706
|
path: "/tmp/import.wxr",
|
|
703
707
|
data: t
|
|
704
708
|
});
|
|
705
|
-
const
|
|
709
|
+
const d = await r.documentRoot;
|
|
706
710
|
await r.run({
|
|
707
711
|
code: `<?php
|
|
708
|
-
require ${se(
|
|
709
|
-
require ${se(
|
|
712
|
+
require ${se(d)} . '/wp-load.php';
|
|
713
|
+
require ${se(d)} . '/wp-admin/includes/admin.php';
|
|
710
714
|
|
|
711
715
|
kses_remove_filters();
|
|
712
716
|
$admin_id = get_users(array('role' => 'Administrator') )[0]->ID;
|
|
@@ -727,9 +731,9 @@ const Br = async (r, { fromPath: t, toPath: f }) => {
|
|
|
727
731
|
`
|
|
728
732
|
});
|
|
729
733
|
}, mr = async (r, { themeSlug: t = "" }, f) => {
|
|
730
|
-
var
|
|
731
|
-
(
|
|
732
|
-
const
|
|
734
|
+
var c;
|
|
735
|
+
(c = f == null ? void 0 : f.tracker) == null || c.setCaption("Importing theme starter content");
|
|
736
|
+
const d = await r.documentRoot;
|
|
733
737
|
await r.run({
|
|
734
738
|
code: `<?php
|
|
735
739
|
|
|
@@ -766,7 +770,7 @@ const Br = async (r, { fromPath: t, toPath: f }) => {
|
|
|
766
770
|
}
|
|
767
771
|
playground_add_filter( 'plugins_loaded', 'importThemeStarterContent_plugins_loaded', 0 );
|
|
768
772
|
|
|
769
|
-
require ${se(
|
|
773
|
+
require ${se(d)} . '/wp-load.php';
|
|
770
774
|
|
|
771
775
|
// Return early if there's no starter content.
|
|
772
776
|
if ( ! get_theme_starter_content() ) {
|
|
@@ -780,51 +784,51 @@ const Br = async (r, { fromPath: t, toPath: f }) => {
|
|
|
780
784
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
781
785
|
`
|
|
782
786
|
});
|
|
783
|
-
}, er = async (r, { zipFile: t, zipPath: f, extractToPath:
|
|
787
|
+
}, er = async (r, { zipFile: t, zipPath: f, extractToPath: d }) => {
|
|
784
788
|
if (f)
|
|
785
|
-
|
|
789
|
+
ae.warn(
|
|
786
790
|
'The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.'
|
|
787
791
|
);
|
|
788
792
|
else if (!t)
|
|
789
793
|
throw new Error("Either zipPath or zipFile must be provided");
|
|
790
|
-
await ar(r, t || f,
|
|
794
|
+
await ar(r, t || f, d);
|
|
791
795
|
}, Hr = async (r, { wordPressFilesZip: t, pathInZip: f = "" }) => {
|
|
792
|
-
const
|
|
793
|
-
let
|
|
794
|
-
await r.mkdir(
|
|
796
|
+
const d = await r.documentRoot;
|
|
797
|
+
let c = oe("/tmp", "import");
|
|
798
|
+
await r.mkdir(c), await er(r, {
|
|
795
799
|
zipFile: t,
|
|
796
|
-
extractToPath:
|
|
797
|
-
}),
|
|
798
|
-
const i = oe(
|
|
799
|
-
for (const
|
|
800
|
+
extractToPath: c
|
|
801
|
+
}), c = oe(c, f);
|
|
802
|
+
const i = oe(c, "wp-content"), e = oe(d, "wp-content");
|
|
803
|
+
for (const U of pr) {
|
|
800
804
|
const v = oe(
|
|
801
805
|
i,
|
|
802
|
-
|
|
806
|
+
U
|
|
803
807
|
);
|
|
804
808
|
await ir(r, v);
|
|
805
|
-
const R = oe(e,
|
|
809
|
+
const R = oe(e, U);
|
|
806
810
|
await r.fileExists(R) && (await r.mkdir(_r(v)), await r.mv(R, v));
|
|
807
811
|
}
|
|
808
|
-
const
|
|
809
|
-
|
|
812
|
+
const u = oe(
|
|
813
|
+
c,
|
|
810
814
|
"wp-content",
|
|
811
815
|
"database"
|
|
812
816
|
);
|
|
813
|
-
await r.fileExists(
|
|
814
|
-
oe(
|
|
815
|
-
|
|
817
|
+
await r.fileExists(u) || await r.mv(
|
|
818
|
+
oe(d, "wp-content", "database"),
|
|
819
|
+
u
|
|
816
820
|
);
|
|
817
|
-
const O = await r.listFiles(
|
|
818
|
-
for (const
|
|
819
|
-
await ir(r, oe(
|
|
820
|
-
oe(
|
|
821
|
-
oe(
|
|
821
|
+
const O = await r.listFiles(c);
|
|
822
|
+
for (const U of O)
|
|
823
|
+
await ir(r, oe(d, U)), await r.mv(
|
|
824
|
+
oe(c, U),
|
|
825
|
+
oe(d, U)
|
|
822
826
|
);
|
|
823
|
-
await r.rmdir(
|
|
827
|
+
await r.rmdir(c), await cr(r, {
|
|
824
828
|
siteUrl: await r.absoluteUrl
|
|
825
829
|
});
|
|
826
830
|
const B = se(
|
|
827
|
-
oe(
|
|
831
|
+
oe(d, "wp-admin", "upgrade.php")
|
|
828
832
|
);
|
|
829
833
|
await r.run({
|
|
830
834
|
code: `<?php
|
|
@@ -845,12 +849,12 @@ async function Gr(r) {
|
|
|
845
849
|
async function yr(r, {
|
|
846
850
|
targetPath: t,
|
|
847
851
|
zipFile: f,
|
|
848
|
-
ifAlreadyInstalled:
|
|
852
|
+
ifAlreadyInstalled: d = "overwrite"
|
|
849
853
|
}) {
|
|
850
|
-
const i = f.name.replace(/\.zip$/, ""), e = oe(await r.documentRoot, "wp-content"),
|
|
851
|
-
await r.fileExists(O) && await r.rmdir(
|
|
854
|
+
const i = f.name.replace(/\.zip$/, ""), e = oe(await r.documentRoot, "wp-content"), u = oe(e, kr()), O = oe(u, "assets", i);
|
|
855
|
+
await r.fileExists(O) && await r.rmdir(u, {
|
|
852
856
|
recursive: !0
|
|
853
|
-
}), await r.mkdir(
|
|
857
|
+
}), await r.mkdir(u);
|
|
854
858
|
try {
|
|
855
859
|
await er(r, {
|
|
856
860
|
zipFile: f,
|
|
@@ -859,28 +863,28 @@ async function yr(r, {
|
|
|
859
863
|
let B = await r.listFiles(O, {
|
|
860
864
|
prependPath: !0
|
|
861
865
|
});
|
|
862
|
-
B = B.filter((
|
|
863
|
-
const
|
|
866
|
+
B = B.filter((I) => !I.endsWith("/__MACOSX"));
|
|
867
|
+
const U = B.length === 1 && await r.isDir(B[0]);
|
|
864
868
|
let v, R = "";
|
|
865
|
-
|
|
869
|
+
U ? (R = B[0], v = B[0].split("/").pop()) : (R = O, v = i);
|
|
866
870
|
const M = `${t}/${v}`;
|
|
867
871
|
if (await r.fileExists(M)) {
|
|
868
872
|
if (!await r.isDir(M))
|
|
869
873
|
throw new Error(
|
|
870
874
|
`Cannot install asset ${v} to ${M} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`
|
|
871
875
|
);
|
|
872
|
-
if (
|
|
876
|
+
if (d === "overwrite")
|
|
873
877
|
await r.rmdir(M, {
|
|
874
878
|
recursive: !0
|
|
875
879
|
});
|
|
876
880
|
else {
|
|
877
|
-
if (
|
|
881
|
+
if (d === "skip")
|
|
878
882
|
return {
|
|
879
883
|
assetFolderPath: M,
|
|
880
884
|
assetFolderName: v
|
|
881
885
|
};
|
|
882
886
|
throw new Error(
|
|
883
|
-
`Cannot install asset ${v} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${
|
|
887
|
+
`Cannot install asset ${v} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${d}`
|
|
884
888
|
);
|
|
885
889
|
}
|
|
886
890
|
}
|
|
@@ -889,7 +893,7 @@ async function yr(r, {
|
|
|
889
893
|
assetFolderName: v
|
|
890
894
|
};
|
|
891
895
|
} finally {
|
|
892
|
-
await r.rmdir(
|
|
896
|
+
await r.rmdir(u, {
|
|
893
897
|
recursive: !0
|
|
894
898
|
});
|
|
895
899
|
}
|
|
@@ -898,50 +902,50 @@ function He(r) {
|
|
|
898
902
|
const t = r.split(".").shift().replace(/-/g, " ");
|
|
899
903
|
return t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
|
|
900
904
|
}
|
|
901
|
-
const Yr = async (r, { pluginZipFile: t, ifAlreadyInstalled: f, options:
|
|
905
|
+
const Yr = async (r, { pluginZipFile: t, ifAlreadyInstalled: f, options: d = {} }, c) => {
|
|
902
906
|
const i = t.name.split("/").pop() || "plugin.zip", e = He(i);
|
|
903
|
-
|
|
904
|
-
const { assetFolderPath:
|
|
907
|
+
c == null || c.tracker.setCaption(`Installing the ${e} plugin`);
|
|
908
|
+
const { assetFolderPath: u } = await yr(r, {
|
|
905
909
|
ifAlreadyInstalled: f,
|
|
906
910
|
zipFile: t,
|
|
907
911
|
targetPath: `${await r.documentRoot}/wp-content/plugins`
|
|
908
912
|
});
|
|
909
|
-
("activate" in
|
|
913
|
+
("activate" in d ? d.activate : !0) && await Ke(
|
|
910
914
|
r,
|
|
911
915
|
{
|
|
912
|
-
pluginPath:
|
|
916
|
+
pluginPath: u,
|
|
913
917
|
pluginName: e
|
|
914
918
|
},
|
|
915
|
-
|
|
919
|
+
c
|
|
916
920
|
);
|
|
917
|
-
}, Zr = async (r, { themeZipFile: t, ifAlreadyInstalled: f, options:
|
|
921
|
+
}, Zr = async (r, { themeZipFile: t, ifAlreadyInstalled: f, options: d = {} }, c) => {
|
|
918
922
|
const i = He(t.name);
|
|
919
|
-
|
|
923
|
+
c == null || c.tracker.setCaption(`Installing the ${i} theme`);
|
|
920
924
|
const { assetFolderName: e } = await yr(r, {
|
|
921
925
|
ifAlreadyInstalled: f,
|
|
922
926
|
zipFile: t,
|
|
923
927
|
targetPath: `${await r.documentRoot}/wp-content/themes`
|
|
924
928
|
});
|
|
925
|
-
("activate" in
|
|
929
|
+
("activate" in d ? d.activate : !0) && await fr(
|
|
926
930
|
r,
|
|
927
931
|
{
|
|
928
932
|
themeFolderName: e
|
|
929
933
|
},
|
|
930
|
-
|
|
931
|
-
), ("importStarterContent" in
|
|
934
|
+
c
|
|
935
|
+
), ("importStarterContent" in d ? d.importStarterContent : !1) && await mr(
|
|
932
936
|
r,
|
|
933
937
|
{
|
|
934
938
|
themeSlug: e
|
|
935
939
|
},
|
|
936
|
-
|
|
940
|
+
c
|
|
937
941
|
);
|
|
938
942
|
}, Qr = async (r, t, f) => {
|
|
939
|
-
var
|
|
940
|
-
(
|
|
941
|
-
const
|
|
943
|
+
var c;
|
|
944
|
+
(c = f == null ? void 0 : f.tracker) == null || c.setCaption("Resetting WordPress data");
|
|
945
|
+
const d = await r.documentRoot;
|
|
942
946
|
await r.run({
|
|
943
947
|
env: {
|
|
944
|
-
DOCROOT:
|
|
948
|
+
DOCROOT: d
|
|
945
949
|
},
|
|
946
950
|
code: `<?php
|
|
947
951
|
require getenv('DOCROOT') . '/wp-load.php';
|
|
@@ -977,20 +981,20 @@ const Yr = async (r, { pluginZipFile: t, ifAlreadyInstalled: f, options: c = {}
|
|
|
977
981
|
}
|
|
978
982
|
});
|
|
979
983
|
}, Jr = async (r, { selfContained: t = !1 } = {}) => {
|
|
980
|
-
const f = "/tmp/wordpress-playground.zip",
|
|
984
|
+
const f = "/tmp/wordpress-playground.zip", d = await r.documentRoot, c = oe(d, "wp-content");
|
|
981
985
|
let i = pr;
|
|
982
986
|
t && (i = i.filter((O) => !O.startsWith("themes/twenty")).filter(
|
|
983
987
|
(O) => O !== "mu-plugins/sqlite-database-integration"
|
|
984
988
|
));
|
|
985
989
|
const e = Je({
|
|
986
990
|
zipPath: f,
|
|
987
|
-
wpContentPath:
|
|
988
|
-
documentRoot:
|
|
991
|
+
wpContentPath: c,
|
|
992
|
+
documentRoot: d,
|
|
989
993
|
exceptPaths: i.map(
|
|
990
|
-
(O) => oe(
|
|
994
|
+
(O) => oe(d, "wp-content", O)
|
|
991
995
|
),
|
|
992
996
|
additionalPaths: t ? {
|
|
993
|
-
[oe(
|
|
997
|
+
[oe(d, "wp-config.php")]: "wp-config.php"
|
|
994
998
|
} : {}
|
|
995
999
|
});
|
|
996
1000
|
await et(
|
|
@@ -1001,8 +1005,8 @@ const Yr = async (r, { pluginZipFile: t, ifAlreadyInstalled: f, options: c = {}
|
|
|
1001
1005
|
'additional_paths' => ${e.additionalPaths}
|
|
1002
1006
|
));`
|
|
1003
1007
|
);
|
|
1004
|
-
const
|
|
1005
|
-
return r.unlink(f),
|
|
1008
|
+
const u = await r.readFileAsBuffer(f);
|
|
1009
|
+
return r.unlink(f), u;
|
|
1006
1010
|
}, Kr = `<?php
|
|
1007
1011
|
|
|
1008
1012
|
function zipDir($root, $output, $options = array())
|
|
@@ -1078,8 +1082,8 @@ const rt = async (r, { command: t, wpCliPath: f = "/tmp/wp-cli.phar" }) => {
|
|
|
1078
1082
|
|
|
1079
1083
|
Read more about it in the documentation.
|
|
1080
1084
|
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`);
|
|
1081
|
-
let
|
|
1082
|
-
if (typeof t == "string" ? (t = t.trim(),
|
|
1085
|
+
let d;
|
|
1086
|
+
if (typeof t == "string" ? (t = t.trim(), d = tt(t)) : d = t, d.shift() !== "wp")
|
|
1083
1087
|
throw new Error('The first argument must be "wp".');
|
|
1084
1088
|
await r.writeFile("/tmp/stdout", ""), await r.writeFile("/tmp/stderr", ""), await r.writeFile(
|
|
1085
1089
|
"/wordpress/run-cli.php",
|
|
@@ -1096,7 +1100,7 @@ const rt = async (r, { command: t, wpCliPath: f = "/tmp/wp-cli.phar" }) => {
|
|
|
1096
1100
|
$GLOBALS['argv'] = array_merge([
|
|
1097
1101
|
"/tmp/wp-cli.phar",
|
|
1098
1102
|
"--path=/wordpress"
|
|
1099
|
-
], ${se(
|
|
1103
|
+
], ${se(d)});
|
|
1100
1104
|
|
|
1101
1105
|
// Provide stdin, stdout, stderr streams outside of
|
|
1102
1106
|
// the CLI SAPI.
|
|
@@ -1115,31 +1119,31 @@ const rt = async (r, { command: t, wpCliPath: f = "/tmp/wp-cli.phar" }) => {
|
|
|
1115
1119
|
return i;
|
|
1116
1120
|
};
|
|
1117
1121
|
function tt(r) {
|
|
1118
|
-
let
|
|
1122
|
+
let d = 0, c = "";
|
|
1119
1123
|
const i = [];
|
|
1120
1124
|
let e = "";
|
|
1121
|
-
for (let
|
|
1122
|
-
const O = r[
|
|
1123
|
-
|
|
1125
|
+
for (let u = 0; u < r.length; u++) {
|
|
1126
|
+
const O = r[u];
|
|
1127
|
+
d === 0 ? O === '"' || O === "'" ? (d = 1, c = O) : O.match(/\s/) ? (e && i.push(e), e = "") : e += O : d === 1 && (O === "\\" ? (u++, e += r[u]) : O === c ? (d = 0, c = "") : e += O);
|
|
1124
1128
|
}
|
|
1125
1129
|
return e && i.push(e), i;
|
|
1126
1130
|
}
|
|
1127
1131
|
const st = async (r, { language: t }, f) => {
|
|
1128
1132
|
f == null || f.tracker.setCaption((f == null ? void 0 : f.initialCaption) || "Translating"), await r.defineConstant("WPLANG", t);
|
|
1129
|
-
const
|
|
1133
|
+
const d = await r.documentRoot, i = [
|
|
1130
1134
|
{
|
|
1131
1135
|
url: `https://downloads.wordpress.org/translation/core/${(await r.run({
|
|
1132
1136
|
code: `<?php
|
|
1133
|
-
require '${
|
|
1137
|
+
require '${d}/wp-includes/version.php';
|
|
1134
1138
|
echo $wp_version;
|
|
1135
1139
|
`
|
|
1136
1140
|
})).text}/${t}.zip`,
|
|
1137
1141
|
type: "core"
|
|
1138
1142
|
}
|
|
1139
|
-
],
|
|
1143
|
+
], u = (await r.run({
|
|
1140
1144
|
code: `<?php
|
|
1141
|
-
require_once('${
|
|
1142
|
-
require_once('${
|
|
1145
|
+
require_once('${d}/wp-load.php');
|
|
1146
|
+
require_once('${d}/wp-admin/includes/plugin.php');
|
|
1143
1147
|
echo json_encode(
|
|
1144
1148
|
array_values(
|
|
1145
1149
|
array_map(
|
|
@@ -1159,15 +1163,15 @@ const st = async (r, { language: t }, f) => {
|
|
|
1159
1163
|
)
|
|
1160
1164
|
);`
|
|
1161
1165
|
})).json;
|
|
1162
|
-
for (const { slug:
|
|
1166
|
+
for (const { slug: U, version: v } of u)
|
|
1163
1167
|
i.push({
|
|
1164
|
-
url: `https://downloads.wordpress.org/translation/plugin/${
|
|
1168
|
+
url: `https://downloads.wordpress.org/translation/plugin/${U}/${v}/${t}.zip`,
|
|
1165
1169
|
type: "plugin"
|
|
1166
1170
|
});
|
|
1167
1171
|
const B = (await r.run({
|
|
1168
1172
|
code: `<?php
|
|
1169
|
-
require_once('${
|
|
1170
|
-
require_once('${
|
|
1173
|
+
require_once('${d}/wp-load.php');
|
|
1174
|
+
require_once('${d}/wp-admin/includes/theme.php');
|
|
1171
1175
|
echo json_encode(
|
|
1172
1176
|
array_values(
|
|
1173
1177
|
array_map(
|
|
@@ -1182,20 +1186,20 @@ const st = async (r, { language: t }, f) => {
|
|
|
1182
1186
|
)
|
|
1183
1187
|
);`
|
|
1184
1188
|
})).json;
|
|
1185
|
-
for (const { slug:
|
|
1189
|
+
for (const { slug: U, version: v } of B)
|
|
1186
1190
|
i.push({
|
|
1187
|
-
url: `https://downloads.wordpress.org/translation/theme/${
|
|
1191
|
+
url: `https://downloads.wordpress.org/translation/theme/${U}/${v}/${t}.zip`,
|
|
1188
1192
|
type: "theme"
|
|
1189
1193
|
});
|
|
1190
|
-
await r.isDir(`${
|
|
1191
|
-
for (const { url:
|
|
1194
|
+
await r.isDir(`${d}/wp-content/languages/plugins`) || await r.mkdir(`${d}/wp-content/languages/plugins`), await r.isDir(`${d}/wp-content/languages/themes`) || await r.mkdir(`${d}/wp-content/languages/themes`);
|
|
1195
|
+
for (const { url: U, type: v } of i)
|
|
1192
1196
|
try {
|
|
1193
|
-
const R = await fetch(
|
|
1197
|
+
const R = await fetch(U);
|
|
1194
1198
|
if (!R.ok)
|
|
1195
1199
|
throw new Error(
|
|
1196
1200
|
`Failed to download translations for ${v}: ${R.statusText}`
|
|
1197
1201
|
);
|
|
1198
|
-
let M = `${
|
|
1202
|
+
let M = `${d}/wp-content/languages`;
|
|
1199
1203
|
v === "plugin" ? M += "/plugins" : v === "theme" && (M += "/themes"), await ar(
|
|
1200
1204
|
r,
|
|
1201
1205
|
new File([await R.blob()], `${t}-${v}.zip`),
|
|
@@ -1206,7 +1210,7 @@ const st = async (r, { language: t }, f) => {
|
|
|
1206
1210
|
throw new Error(
|
|
1207
1211
|
`Failed to download translations for WordPress. Please check if the language code ${t} is correct. You can find all available languages and translations on https://translate.wordpress.org/.`
|
|
1208
1212
|
);
|
|
1209
|
-
|
|
1213
|
+
ae.warn(`Error downloading translations for ${v}: ${R}`);
|
|
1210
1214
|
}
|
|
1211
1215
|
}, it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1212
1216
|
__proto__: null,
|
|
@@ -1258,28 +1262,28 @@ class Ee {
|
|
|
1258
1262
|
* @param options Additional options for the Resource
|
|
1259
1263
|
* @returns A new Resource instance
|
|
1260
1264
|
*/
|
|
1261
|
-
static create(t, { semaphore: f, progress:
|
|
1262
|
-
let
|
|
1265
|
+
static create(t, { semaphore: f, progress: d }) {
|
|
1266
|
+
let c;
|
|
1263
1267
|
switch (t.resource) {
|
|
1264
1268
|
case "vfs":
|
|
1265
|
-
|
|
1269
|
+
c = new at(t, d);
|
|
1266
1270
|
break;
|
|
1267
1271
|
case "literal":
|
|
1268
|
-
|
|
1272
|
+
c = new pt(t, d);
|
|
1269
1273
|
break;
|
|
1270
1274
|
case "wordpress.org/themes":
|
|
1271
|
-
|
|
1275
|
+
c = new dt(t, d);
|
|
1272
1276
|
break;
|
|
1273
1277
|
case "wordpress.org/plugins":
|
|
1274
|
-
|
|
1278
|
+
c = new ut(t, d);
|
|
1275
1279
|
break;
|
|
1276
1280
|
case "url":
|
|
1277
|
-
|
|
1281
|
+
c = new lt(t, d);
|
|
1278
1282
|
break;
|
|
1279
1283
|
default:
|
|
1280
1284
|
throw new Error(`Invalid resource: ${t}`);
|
|
1281
1285
|
}
|
|
1282
|
-
return
|
|
1286
|
+
return c = new ct(c), f && (c = new mt(c, f)), c;
|
|
1283
1287
|
}
|
|
1284
1288
|
setPlayground(t) {
|
|
1285
1289
|
this.playground = t;
|
|
@@ -1341,20 +1345,20 @@ class rr extends Ee {
|
|
|
1341
1345
|
}
|
|
1342
1346
|
/** @inheritDoc */
|
|
1343
1347
|
async resolve() {
|
|
1344
|
-
var f,
|
|
1348
|
+
var f, d;
|
|
1345
1349
|
(f = this.progress) == null || f.setCaption(this.caption);
|
|
1346
1350
|
const t = this.getURL();
|
|
1347
1351
|
try {
|
|
1348
|
-
let
|
|
1349
|
-
if (!
|
|
1352
|
+
let c = await fetch(t);
|
|
1353
|
+
if (!c.ok)
|
|
1350
1354
|
throw new Error(`Could not download "${t}"`);
|
|
1351
|
-
if (
|
|
1352
|
-
|
|
1353
|
-
((
|
|
1354
|
-
),
|
|
1355
|
+
if (c = await Tr(
|
|
1356
|
+
c,
|
|
1357
|
+
((d = this.progress) == null ? void 0 : d.loadingListener) ?? ft
|
|
1358
|
+
), c.status !== 200)
|
|
1355
1359
|
throw new Error(`Could not download "${t}"`);
|
|
1356
|
-
return new File([await
|
|
1357
|
-
} catch (
|
|
1360
|
+
return new File([await c.blob()], this.name);
|
|
1361
|
+
} catch (c) {
|
|
1358
1362
|
throw new Error(
|
|
1359
1363
|
`Could not download "${t}".
|
|
1360
1364
|
Check if the URL is correct and the server is reachable.
|
|
@@ -1380,7 +1384,7 @@ class rr extends Ee {
|
|
|
1380
1384
|
https://raw.githubusercontent.com/username/repository/branch/filename
|
|
1381
1385
|
|
|
1382
1386
|
Error:
|
|
1383
|
-
${
|
|
1387
|
+
${c}`
|
|
1384
1388
|
);
|
|
1385
1389
|
}
|
|
1386
1390
|
}
|
|
@@ -1413,7 +1417,15 @@ class lt extends rr {
|
|
|
1413
1417
|
* @param progress The progress tracker.
|
|
1414
1418
|
*/
|
|
1415
1419
|
constructor(t, f) {
|
|
1416
|
-
super(f), this.resource = t
|
|
1420
|
+
if (super(f), this.resource = t, this.resource.url.startsWith("https://github.com/")) {
|
|
1421
|
+
const d = this.resource.url.match(
|
|
1422
|
+
/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/
|
|
1423
|
+
);
|
|
1424
|
+
d != null && d.groups && (this.resource = {
|
|
1425
|
+
...this.resource,
|
|
1426
|
+
url: `https://raw.githubusercontent.com/${d.groups.owner}/${d.groups.repo}/${d.groups.branch}/${d.groups.path}`
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1417
1429
|
}
|
|
1418
1430
|
/** @inheritDoc */
|
|
1419
1431
|
getURL() {
|
|
@@ -1629,25 +1641,25 @@ const yt = {
|
|
|
1629
1641
|
type: "string",
|
|
1630
1642
|
enum: ["8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0"]
|
|
1631
1643
|
}, gt = { type: "string", enum: ["kitchen-sink", "light"] }, br = Object.prototype.hasOwnProperty;
|
|
1632
|
-
function re(r, { instancePath: t = "", parentData: f, parentDataProperty:
|
|
1644
|
+
function re(r, { instancePath: t = "", parentData: f, parentDataProperty: d, rootData: c = r } = {}) {
|
|
1633
1645
|
let i = null, e = 0;
|
|
1634
|
-
const
|
|
1646
|
+
const u = e;
|
|
1635
1647
|
let O = !1;
|
|
1636
1648
|
const B = e;
|
|
1637
1649
|
if (e === e)
|
|
1638
1650
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
1639
1651
|
let A;
|
|
1640
1652
|
if (r.resource === void 0 && (A = "resource") || r.path === void 0 && (A = "path")) {
|
|
1641
|
-
const
|
|
1653
|
+
const x = {
|
|
1642
1654
|
instancePath: t,
|
|
1643
1655
|
schemaPath: "#/definitions/VFSReference/required",
|
|
1644
1656
|
keyword: "required",
|
|
1645
1657
|
params: { missingProperty: A },
|
|
1646
1658
|
message: "must have required property '" + A + "'"
|
|
1647
1659
|
};
|
|
1648
|
-
i === null ? i = [
|
|
1660
|
+
i === null ? i = [x] : i.push(x), e++;
|
|
1649
1661
|
} else {
|
|
1650
|
-
const
|
|
1662
|
+
const x = e;
|
|
1651
1663
|
for (const z in r)
|
|
1652
1664
|
if (!(z === "resource" || z === "path")) {
|
|
1653
1665
|
const l = {
|
|
@@ -1660,7 +1672,7 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
1660
1672
|
i === null ? i = [l] : i.push(l), e++;
|
|
1661
1673
|
break;
|
|
1662
1674
|
}
|
|
1663
|
-
if (
|
|
1675
|
+
if (x === e) {
|
|
1664
1676
|
if (r.resource !== void 0) {
|
|
1665
1677
|
let z = r.resource;
|
|
1666
1678
|
const l = e;
|
|
@@ -1803,14 +1815,14 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
1803
1815
|
};
|
|
1804
1816
|
i === null ? i = [w] : i.push(w), e++;
|
|
1805
1817
|
}
|
|
1806
|
-
var
|
|
1807
|
-
if (m = m ||
|
|
1818
|
+
var I = y === e;
|
|
1819
|
+
if (m = m || I, !m) {
|
|
1808
1820
|
const w = e;
|
|
1809
1821
|
if (e === w)
|
|
1810
1822
|
if (_ && typeof _ == "object" && !Array.isArray(_)) {
|
|
1811
1823
|
let T;
|
|
1812
1824
|
if (_.BYTES_PER_ELEMENT === void 0 && (T = "BYTES_PER_ELEMENT") || _.buffer === void 0 && (T = "buffer") || _.byteLength === void 0 && (T = "byteLength") || _.byteOffset === void 0 && (T = "byteOffset") || _.length === void 0 && (T = "length")) {
|
|
1813
|
-
const
|
|
1825
|
+
const F = {
|
|
1814
1826
|
instancePath: t + "/contents",
|
|
1815
1827
|
schemaPath: "#/definitions/LiteralReference/properties/contents/anyOf/1/required",
|
|
1816
1828
|
keyword: "required",
|
|
@@ -1819,9 +1831,9 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
1819
1831
|
},
|
|
1820
1832
|
message: "must have required property '" + T + "'"
|
|
1821
1833
|
};
|
|
1822
|
-
i === null ? i = [
|
|
1834
|
+
i === null ? i = [F] : i.push(F), e++;
|
|
1823
1835
|
} else {
|
|
1824
|
-
const
|
|
1836
|
+
const F = e;
|
|
1825
1837
|
for (const j in _)
|
|
1826
1838
|
if (!(j === "BYTES_PER_ELEMENT" || j === "buffer" || j === "byteLength" || j === "byteOffset" || j === "length")) {
|
|
1827
1839
|
let V = _[j];
|
|
@@ -1854,7 +1866,7 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
1854
1866
|
if (!b)
|
|
1855
1867
|
break;
|
|
1856
1868
|
}
|
|
1857
|
-
if (
|
|
1869
|
+
if (F === e) {
|
|
1858
1870
|
if (_.BYTES_PER_ELEMENT !== void 0) {
|
|
1859
1871
|
let j = _.BYTES_PER_ELEMENT;
|
|
1860
1872
|
const V = e;
|
|
@@ -2054,8 +2066,8 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
2054
2066
|
};
|
|
2055
2067
|
i === null ? i = [T] : i.push(T), e++;
|
|
2056
2068
|
}
|
|
2057
|
-
var
|
|
2058
|
-
m = m ||
|
|
2069
|
+
var I = w === e;
|
|
2070
|
+
m = m || I;
|
|
2059
2071
|
}
|
|
2060
2072
|
if (m)
|
|
2061
2073
|
e = g, i !== null && (g ? i.length = g : i = null);
|
|
@@ -2274,14 +2286,14 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
2274
2286
|
i === null ? i = [T] : i.push(T), e++;
|
|
2275
2287
|
} else {
|
|
2276
2288
|
const T = e;
|
|
2277
|
-
for (const
|
|
2278
|
-
if (!(
|
|
2289
|
+
for (const F in r)
|
|
2290
|
+
if (!(F === "resource" || F === "url" || F === "caption")) {
|
|
2279
2291
|
const j = {
|
|
2280
2292
|
instancePath: t,
|
|
2281
2293
|
schemaPath: "#/definitions/UrlReference/additionalProperties",
|
|
2282
2294
|
keyword: "additionalProperties",
|
|
2283
2295
|
params: {
|
|
2284
|
-
additionalProperty:
|
|
2296
|
+
additionalProperty: F
|
|
2285
2297
|
},
|
|
2286
2298
|
message: "must NOT have additional properties"
|
|
2287
2299
|
};
|
|
@@ -2290,9 +2302,9 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
2290
2302
|
}
|
|
2291
2303
|
if (T === e) {
|
|
2292
2304
|
if (r.resource !== void 0) {
|
|
2293
|
-
let
|
|
2305
|
+
let F = r.resource;
|
|
2294
2306
|
const j = e;
|
|
2295
|
-
if (typeof
|
|
2307
|
+
if (typeof F != "string") {
|
|
2296
2308
|
const V = {
|
|
2297
2309
|
instancePath: t + "/resource",
|
|
2298
2310
|
schemaPath: "#/definitions/UrlReference/properties/resource/type",
|
|
@@ -2302,7 +2314,7 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
2302
2314
|
};
|
|
2303
2315
|
i === null ? i = [V] : i.push(V), e++;
|
|
2304
2316
|
}
|
|
2305
|
-
if (
|
|
2317
|
+
if (F !== "url") {
|
|
2306
2318
|
const V = {
|
|
2307
2319
|
instancePath: t + "/resource",
|
|
2308
2320
|
schemaPath: "#/definitions/UrlReference/properties/resource/const",
|
|
@@ -2317,7 +2329,7 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
2317
2329
|
var P = !0;
|
|
2318
2330
|
if (P) {
|
|
2319
2331
|
if (r.url !== void 0) {
|
|
2320
|
-
const
|
|
2332
|
+
const F = e;
|
|
2321
2333
|
if (typeof r.url != "string") {
|
|
2322
2334
|
const V = {
|
|
2323
2335
|
instancePath: t + "/url",
|
|
@@ -2328,12 +2340,12 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
2328
2340
|
};
|
|
2329
2341
|
i === null ? i = [V] : i.push(V), e++;
|
|
2330
2342
|
}
|
|
2331
|
-
var P =
|
|
2343
|
+
var P = F === e;
|
|
2332
2344
|
} else
|
|
2333
2345
|
var P = !0;
|
|
2334
2346
|
if (P)
|
|
2335
2347
|
if (r.caption !== void 0) {
|
|
2336
|
-
const
|
|
2348
|
+
const F = e;
|
|
2337
2349
|
if (typeof r.caption != "string") {
|
|
2338
2350
|
const V = {
|
|
2339
2351
|
instancePath: t + "/caption",
|
|
@@ -2346,7 +2358,7 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
2346
2358
|
};
|
|
2347
2359
|
i === null ? i = [V] : i.push(V), e++;
|
|
2348
2360
|
}
|
|
2349
|
-
var P =
|
|
2361
|
+
var P = F === e;
|
|
2350
2362
|
} else
|
|
2351
2363
|
var P = !0;
|
|
2352
2364
|
}
|
|
@@ -2369,7 +2381,7 @@ function re(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
2369
2381
|
}
|
|
2370
2382
|
}
|
|
2371
2383
|
if (O)
|
|
2372
|
-
e =
|
|
2384
|
+
e = u, i !== null && (u ? i.length = u : i = null);
|
|
2373
2385
|
else {
|
|
2374
2386
|
const A = {
|
|
2375
2387
|
instancePath: t,
|
|
@@ -3058,13 +3070,13 @@ for existing apps using this option.`
|
|
|
3058
3070
|
type: "string",
|
|
3059
3071
|
enum: ["GET", "POST", "HEAD", "OPTIONS", "PATCH", "PUT", "DELETE"]
|
|
3060
3072
|
};
|
|
3061
|
-
function
|
|
3073
|
+
function me(r, { instancePath: t = "", parentData: f, parentDataProperty: d, rootData: c = r } = {}) {
|
|
3062
3074
|
let i = null, e = 0;
|
|
3063
3075
|
if (e === 0)
|
|
3064
3076
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
3065
3077
|
let te;
|
|
3066
3078
|
if (r.url === void 0 && (te = "url"))
|
|
3067
|
-
return
|
|
3079
|
+
return me.errors = [
|
|
3068
3080
|
{
|
|
3069
3081
|
instancePath: t,
|
|
3070
3082
|
schemaPath: "#/required",
|
|
@@ -3077,7 +3089,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3077
3089
|
const H = e;
|
|
3078
3090
|
for (const P in r)
|
|
3079
3091
|
if (!(P === "method" || P === "url" || P === "headers" || P === "body"))
|
|
3080
|
-
return
|
|
3092
|
+
return me.errors = [
|
|
3081
3093
|
{
|
|
3082
3094
|
instancePath: t,
|
|
3083
3095
|
schemaPath: "#/additionalProperties",
|
|
@@ -3091,7 +3103,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3091
3103
|
let P = r.method;
|
|
3092
3104
|
const A = e;
|
|
3093
3105
|
if (typeof P != "string")
|
|
3094
|
-
return
|
|
3106
|
+
return me.errors = [
|
|
3095
3107
|
{
|
|
3096
3108
|
instancePath: t + "/method",
|
|
3097
3109
|
schemaPath: "#/definitions/HTTPMethod/type",
|
|
@@ -3101,7 +3113,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3101
3113
|
}
|
|
3102
3114
|
], !1;
|
|
3103
3115
|
if (!(P === "GET" || P === "POST" || P === "HEAD" || P === "OPTIONS" || P === "PATCH" || P === "PUT" || P === "DELETE"))
|
|
3104
|
-
return
|
|
3116
|
+
return me.errors = [
|
|
3105
3117
|
{
|
|
3106
3118
|
instancePath: t + "/method",
|
|
3107
3119
|
schemaPath: "#/definitions/HTTPMethod/enum",
|
|
@@ -3110,14 +3122,14 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3110
3122
|
message: "must be equal to one of the allowed values"
|
|
3111
3123
|
}
|
|
3112
3124
|
], !1;
|
|
3113
|
-
var
|
|
3125
|
+
var u = A === e;
|
|
3114
3126
|
} else
|
|
3115
|
-
var
|
|
3116
|
-
if (
|
|
3127
|
+
var u = !0;
|
|
3128
|
+
if (u) {
|
|
3117
3129
|
if (r.url !== void 0) {
|
|
3118
3130
|
const P = e;
|
|
3119
3131
|
if (typeof r.url != "string")
|
|
3120
|
-
return
|
|
3132
|
+
return me.errors = [
|
|
3121
3133
|
{
|
|
3122
3134
|
instancePath: t + "/url",
|
|
3123
3135
|
schemaPath: "#/properties/url/type",
|
|
@@ -3126,10 +3138,10 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3126
3138
|
message: "must be string"
|
|
3127
3139
|
}
|
|
3128
3140
|
], !1;
|
|
3129
|
-
var
|
|
3141
|
+
var u = P === e;
|
|
3130
3142
|
} else
|
|
3131
|
-
var
|
|
3132
|
-
if (
|
|
3143
|
+
var u = !0;
|
|
3144
|
+
if (u) {
|
|
3133
3145
|
if (r.headers !== void 0) {
|
|
3134
3146
|
let P = r.headers;
|
|
3135
3147
|
const A = e;
|
|
@@ -3138,7 +3150,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3138
3150
|
for (const l in P) {
|
|
3139
3151
|
const E = e;
|
|
3140
3152
|
if (typeof P[l] != "string")
|
|
3141
|
-
return
|
|
3153
|
+
return me.errors = [
|
|
3142
3154
|
{
|
|
3143
3155
|
instancePath: t + "/headers/" + l.replace(
|
|
3144
3156
|
/~/g,
|
|
@@ -3160,7 +3172,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3160
3172
|
break;
|
|
3161
3173
|
}
|
|
3162
3174
|
else
|
|
3163
|
-
return
|
|
3175
|
+
return me.errors = [
|
|
3164
3176
|
{
|
|
3165
3177
|
instancePath: t + "/headers",
|
|
3166
3178
|
schemaPath: "#/definitions/PHPRequestHeaders/type",
|
|
@@ -3169,13 +3181,13 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3169
3181
|
message: "must be object"
|
|
3170
3182
|
}
|
|
3171
3183
|
], !1;
|
|
3172
|
-
var
|
|
3184
|
+
var u = A === e;
|
|
3173
3185
|
} else
|
|
3174
|
-
var
|
|
3175
|
-
if (
|
|
3186
|
+
var u = !0;
|
|
3187
|
+
if (u)
|
|
3176
3188
|
if (r.body !== void 0) {
|
|
3177
3189
|
let P = r.body;
|
|
3178
|
-
const A = e,
|
|
3190
|
+
const A = e, x = e;
|
|
3179
3191
|
let z = !1;
|
|
3180
3192
|
const l = e;
|
|
3181
3193
|
if (typeof P != "string") {
|
|
@@ -3235,8 +3247,8 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3235
3247
|
L
|
|
3236
3248
|
), e++;
|
|
3237
3249
|
}
|
|
3238
|
-
var
|
|
3239
|
-
if (!
|
|
3250
|
+
var U = w === e;
|
|
3251
|
+
if (!U)
|
|
3240
3252
|
break;
|
|
3241
3253
|
}
|
|
3242
3254
|
if (m === e) {
|
|
@@ -3290,14 +3302,14 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3290
3302
|
), e++;
|
|
3291
3303
|
} else {
|
|
3292
3304
|
const T = e;
|
|
3293
|
-
for (const
|
|
3294
|
-
if (
|
|
3305
|
+
for (const F in y)
|
|
3306
|
+
if (F !== "byteLength") {
|
|
3295
3307
|
const j = {
|
|
3296
3308
|
instancePath: t + "/body/buffer",
|
|
3297
3309
|
schemaPath: "#/properties/body/anyOf/1/properties/buffer/additionalProperties",
|
|
3298
3310
|
keyword: "additionalProperties",
|
|
3299
3311
|
params: {
|
|
3300
|
-
additionalProperty:
|
|
3312
|
+
additionalProperty: F
|
|
3301
3313
|
},
|
|
3302
3314
|
message: "must NOT have additional properties"
|
|
3303
3315
|
};
|
|
@@ -3309,9 +3321,9 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3309
3321
|
break;
|
|
3310
3322
|
}
|
|
3311
3323
|
if (T === e && y.byteLength !== void 0) {
|
|
3312
|
-
let
|
|
3313
|
-
if (!(typeof
|
|
3314
|
-
|
|
3324
|
+
let F = y.byteLength;
|
|
3325
|
+
if (!(typeof F == "number" && isFinite(
|
|
3326
|
+
F
|
|
3315
3327
|
))) {
|
|
3316
3328
|
const j = {
|
|
3317
3329
|
instancePath: t + "/body/buffer/byteLength",
|
|
@@ -3448,7 +3460,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3448
3460
|
let h = P[y];
|
|
3449
3461
|
const w = e, L = e;
|
|
3450
3462
|
let T = !1;
|
|
3451
|
-
const
|
|
3463
|
+
const F = e;
|
|
3452
3464
|
if (typeof h != "string") {
|
|
3453
3465
|
const j = {
|
|
3454
3466
|
instancePath: t + "/body/" + y.replace(
|
|
@@ -3471,7 +3483,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3471
3483
|
j
|
|
3472
3484
|
), e++;
|
|
3473
3485
|
}
|
|
3474
|
-
var R =
|
|
3486
|
+
var R = F === e;
|
|
3475
3487
|
if (T = T || R, !T) {
|
|
3476
3488
|
const j = e;
|
|
3477
3489
|
if (e === j)
|
|
@@ -3568,10 +3580,10 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3568
3580
|
C
|
|
3569
3581
|
), e++;
|
|
3570
3582
|
}
|
|
3571
|
-
var
|
|
3583
|
+
var I = Q === e;
|
|
3572
3584
|
} else
|
|
3573
|
-
var
|
|
3574
|
-
if (
|
|
3585
|
+
var I = !0;
|
|
3586
|
+
if (I) {
|
|
3575
3587
|
if (h.buffer !== void 0) {
|
|
3576
3588
|
let N = h.buffer;
|
|
3577
3589
|
const Q = e;
|
|
@@ -3603,9 +3615,9 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3603
3615
|
), e++;
|
|
3604
3616
|
} else {
|
|
3605
3617
|
const J = e;
|
|
3606
|
-
for (const
|
|
3607
|
-
if (
|
|
3608
|
-
const
|
|
3618
|
+
for (const pe in N)
|
|
3619
|
+
if (pe !== "byteLength") {
|
|
3620
|
+
const fe = {
|
|
3609
3621
|
instancePath: t + "/body/" + y.replace(
|
|
3610
3622
|
/~/g,
|
|
3611
3623
|
"~0"
|
|
@@ -3616,23 +3628,23 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3616
3628
|
schemaPath: "#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",
|
|
3617
3629
|
keyword: "additionalProperties",
|
|
3618
3630
|
params: {
|
|
3619
|
-
additionalProperty:
|
|
3631
|
+
additionalProperty: pe
|
|
3620
3632
|
},
|
|
3621
3633
|
message: "must NOT have additional properties"
|
|
3622
3634
|
};
|
|
3623
3635
|
i === null ? i = [
|
|
3624
|
-
|
|
3636
|
+
fe
|
|
3625
3637
|
] : i.push(
|
|
3626
|
-
|
|
3638
|
+
fe
|
|
3627
3639
|
), e++;
|
|
3628
3640
|
break;
|
|
3629
3641
|
}
|
|
3630
3642
|
if (J === e && N.byteLength !== void 0) {
|
|
3631
|
-
let
|
|
3632
|
-
if (!(typeof
|
|
3633
|
-
|
|
3643
|
+
let pe = N.byteLength;
|
|
3644
|
+
if (!(typeof pe == "number" && isFinite(
|
|
3645
|
+
pe
|
|
3634
3646
|
))) {
|
|
3635
|
-
const
|
|
3647
|
+
const fe = {
|
|
3636
3648
|
instancePath: t + "/body/" + y.replace(
|
|
3637
3649
|
/~/g,
|
|
3638
3650
|
"~0"
|
|
@@ -3648,9 +3660,9 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3648
3660
|
message: "must be number"
|
|
3649
3661
|
};
|
|
3650
3662
|
i === null ? i = [
|
|
3651
|
-
|
|
3663
|
+
fe
|
|
3652
3664
|
] : i.push(
|
|
3653
|
-
|
|
3665
|
+
fe
|
|
3654
3666
|
), e++;
|
|
3655
3667
|
}
|
|
3656
3668
|
}
|
|
@@ -3677,10 +3689,10 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3677
3689
|
Y
|
|
3678
3690
|
), e++;
|
|
3679
3691
|
}
|
|
3680
|
-
var
|
|
3692
|
+
var I = Q === e;
|
|
3681
3693
|
} else
|
|
3682
|
-
var
|
|
3683
|
-
if (
|
|
3694
|
+
var I = !0;
|
|
3695
|
+
if (I) {
|
|
3684
3696
|
if (h.byteLength !== void 0) {
|
|
3685
3697
|
let N = h.byteLength;
|
|
3686
3698
|
const Q = e;
|
|
@@ -3708,10 +3720,10 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3708
3720
|
Y
|
|
3709
3721
|
), e++;
|
|
3710
3722
|
}
|
|
3711
|
-
var
|
|
3723
|
+
var I = Q === e;
|
|
3712
3724
|
} else
|
|
3713
|
-
var
|
|
3714
|
-
if (
|
|
3725
|
+
var I = !0;
|
|
3726
|
+
if (I) {
|
|
3715
3727
|
if (h.byteOffset !== void 0) {
|
|
3716
3728
|
let N = h.byteOffset;
|
|
3717
3729
|
const Q = e;
|
|
@@ -3739,10 +3751,10 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3739
3751
|
Y
|
|
3740
3752
|
), e++;
|
|
3741
3753
|
}
|
|
3742
|
-
var
|
|
3754
|
+
var I = Q === e;
|
|
3743
3755
|
} else
|
|
3744
|
-
var
|
|
3745
|
-
if (
|
|
3756
|
+
var I = !0;
|
|
3757
|
+
if (I)
|
|
3746
3758
|
if (h.length !== void 0) {
|
|
3747
3759
|
let N = h.length;
|
|
3748
3760
|
const Q = e;
|
|
@@ -3770,9 +3782,9 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3770
3782
|
Y
|
|
3771
3783
|
), e++;
|
|
3772
3784
|
}
|
|
3773
|
-
var
|
|
3785
|
+
var I = Q === e;
|
|
3774
3786
|
} else
|
|
3775
|
-
var
|
|
3787
|
+
var I = !0;
|
|
3776
3788
|
}
|
|
3777
3789
|
}
|
|
3778
3790
|
}
|
|
@@ -3921,7 +3933,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3921
3933
|
if (!(typeof C == "number" && isFinite(
|
|
3922
3934
|
C
|
|
3923
3935
|
))) {
|
|
3924
|
-
const
|
|
3936
|
+
const pe = {
|
|
3925
3937
|
instancePath: t + "/body/" + y.replace(
|
|
3926
3938
|
/~/g,
|
|
3927
3939
|
"~0"
|
|
@@ -3937,9 +3949,9 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
3937
3949
|
message: "must be number"
|
|
3938
3950
|
};
|
|
3939
3951
|
i === null ? i = [
|
|
3940
|
-
|
|
3952
|
+
pe
|
|
3941
3953
|
] : i.push(
|
|
3942
|
-
|
|
3954
|
+
pe
|
|
3943
3955
|
), e++;
|
|
3944
3956
|
}
|
|
3945
3957
|
var b = Y === e;
|
|
@@ -4075,7 +4087,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4075
4087
|
}
|
|
4076
4088
|
}
|
|
4077
4089
|
if (z)
|
|
4078
|
-
e =
|
|
4090
|
+
e = x, i !== null && (x ? i.length = x : i = null);
|
|
4079
4091
|
else {
|
|
4080
4092
|
const _ = {
|
|
4081
4093
|
instancePath: t + "/body",
|
|
@@ -4084,17 +4096,17 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4084
4096
|
params: {},
|
|
4085
4097
|
message: "must match a schema in anyOf"
|
|
4086
4098
|
};
|
|
4087
|
-
return i === null ? i = [_] : i.push(_), e++,
|
|
4099
|
+
return i === null ? i = [_] : i.push(_), e++, me.errors = i, !1;
|
|
4088
4100
|
}
|
|
4089
|
-
var
|
|
4101
|
+
var u = A === e;
|
|
4090
4102
|
} else
|
|
4091
|
-
var
|
|
4103
|
+
var u = !0;
|
|
4092
4104
|
}
|
|
4093
4105
|
}
|
|
4094
4106
|
}
|
|
4095
4107
|
}
|
|
4096
4108
|
} else
|
|
4097
|
-
return
|
|
4109
|
+
return me.errors = [
|
|
4098
4110
|
{
|
|
4099
4111
|
instancePath: t,
|
|
4100
4112
|
schemaPath: "#/type",
|
|
@@ -4103,7 +4115,7 @@ function ce(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4103
4115
|
message: "must be object"
|
|
4104
4116
|
}
|
|
4105
4117
|
], !1;
|
|
4106
|
-
return
|
|
4118
|
+
return me.errors = i, e === 0;
|
|
4107
4119
|
}
|
|
4108
4120
|
const bt = {
|
|
4109
4121
|
type: "object",
|
|
@@ -4171,11 +4183,11 @@ const bt = {
|
|
|
4171
4183
|
},
|
|
4172
4184
|
additionalProperties: !1
|
|
4173
4185
|
};
|
|
4174
|
-
function ie(r, { instancePath: t = "", parentData: f, parentDataProperty:
|
|
4186
|
+
function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: d, rootData: c = r } = {}) {
|
|
4175
4187
|
let i = null, e = 0;
|
|
4176
4188
|
if (e === 0)
|
|
4177
4189
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
4178
|
-
const
|
|
4190
|
+
const I = e;
|
|
4179
4191
|
for (const b in r)
|
|
4180
4192
|
if (!br.call(bt.properties, b))
|
|
4181
4193
|
return ie.errors = [
|
|
@@ -4187,7 +4199,7 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4187
4199
|
message: "must NOT have additional properties"
|
|
4188
4200
|
}
|
|
4189
4201
|
], !1;
|
|
4190
|
-
if (
|
|
4202
|
+
if (I === e) {
|
|
4191
4203
|
if (r.relativeUri !== void 0) {
|
|
4192
4204
|
const b = e;
|
|
4193
4205
|
if (typeof r.relativeUri != "string")
|
|
@@ -4200,10 +4212,10 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4200
4212
|
message: "must be string"
|
|
4201
4213
|
}
|
|
4202
4214
|
], !1;
|
|
4203
|
-
var
|
|
4215
|
+
var u = b === e;
|
|
4204
4216
|
} else
|
|
4205
|
-
var
|
|
4206
|
-
if (
|
|
4217
|
+
var u = !0;
|
|
4218
|
+
if (u) {
|
|
4207
4219
|
if (r.scriptPath !== void 0) {
|
|
4208
4220
|
const b = e;
|
|
4209
4221
|
if (typeof r.scriptPath != "string")
|
|
@@ -4216,10 +4228,10 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4216
4228
|
message: "must be string"
|
|
4217
4229
|
}
|
|
4218
4230
|
], !1;
|
|
4219
|
-
var
|
|
4231
|
+
var u = b === e;
|
|
4220
4232
|
} else
|
|
4221
|
-
var
|
|
4222
|
-
if (
|
|
4233
|
+
var u = !0;
|
|
4234
|
+
if (u) {
|
|
4223
4235
|
if (r.protocol !== void 0) {
|
|
4224
4236
|
const b = e;
|
|
4225
4237
|
if (typeof r.protocol != "string")
|
|
@@ -4232,10 +4244,10 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4232
4244
|
message: "must be string"
|
|
4233
4245
|
}
|
|
4234
4246
|
], !1;
|
|
4235
|
-
var
|
|
4247
|
+
var u = b === e;
|
|
4236
4248
|
} else
|
|
4237
|
-
var
|
|
4238
|
-
if (
|
|
4249
|
+
var u = !0;
|
|
4250
|
+
if (u) {
|
|
4239
4251
|
if (r.method !== void 0) {
|
|
4240
4252
|
let b = r.method;
|
|
4241
4253
|
const D = e;
|
|
@@ -4261,10 +4273,10 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4261
4273
|
message: "must be equal to one of the allowed values"
|
|
4262
4274
|
}
|
|
4263
4275
|
], !1;
|
|
4264
|
-
var
|
|
4276
|
+
var u = D === e;
|
|
4265
4277
|
} else
|
|
4266
|
-
var
|
|
4267
|
-
if (
|
|
4278
|
+
var u = !0;
|
|
4279
|
+
if (u) {
|
|
4268
4280
|
if (r.headers !== void 0) {
|
|
4269
4281
|
let b = r.headers;
|
|
4270
4282
|
const D = e;
|
|
@@ -4304,29 +4316,29 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4304
4316
|
message: "must be object"
|
|
4305
4317
|
}
|
|
4306
4318
|
], !1;
|
|
4307
|
-
var
|
|
4319
|
+
var u = D === e;
|
|
4308
4320
|
} else
|
|
4309
|
-
var
|
|
4310
|
-
if (
|
|
4321
|
+
var u = !0;
|
|
4322
|
+
if (u) {
|
|
4311
4323
|
if (r.body !== void 0) {
|
|
4312
4324
|
let b = r.body;
|
|
4313
4325
|
const D = e, te = e;
|
|
4314
4326
|
let H = !1;
|
|
4315
4327
|
const P = e;
|
|
4316
4328
|
if (typeof b != "string") {
|
|
4317
|
-
const
|
|
4329
|
+
const x = {
|
|
4318
4330
|
instancePath: t + "/body",
|
|
4319
4331
|
schemaPath: "#/properties/body/anyOf/0/type",
|
|
4320
4332
|
keyword: "type",
|
|
4321
4333
|
params: { type: "string" },
|
|
4322
4334
|
message: "must be string"
|
|
4323
4335
|
};
|
|
4324
|
-
i === null ? i = [
|
|
4336
|
+
i === null ? i = [x] : i.push(x), e++;
|
|
4325
4337
|
}
|
|
4326
4338
|
var B = P === e;
|
|
4327
4339
|
if (H = H || B, !H) {
|
|
4328
|
-
const
|
|
4329
|
-
if (e ===
|
|
4340
|
+
const x = e;
|
|
4341
|
+
if (e === x)
|
|
4330
4342
|
if (b && typeof b == "object" && !Array.isArray(b)) {
|
|
4331
4343
|
let l;
|
|
4332
4344
|
if (b.BYTES_PER_ELEMENT === void 0 && (l = "BYTES_PER_ELEMENT") || b.buffer === void 0 && (l = "buffer") || b.byteLength === void 0 && (l = "byteLength") || b.byteOffset === void 0 && (l = "byteOffset") || b.length === void 0 && (l = "length")) {
|
|
@@ -4370,8 +4382,8 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4370
4382
|
m
|
|
4371
4383
|
), e++;
|
|
4372
4384
|
}
|
|
4373
|
-
var
|
|
4374
|
-
if (!
|
|
4385
|
+
var U = g === e;
|
|
4386
|
+
if (!U)
|
|
4375
4387
|
break;
|
|
4376
4388
|
}
|
|
4377
4389
|
if (E === e) {
|
|
@@ -4576,25 +4588,25 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4576
4588
|
};
|
|
4577
4589
|
i === null ? i = [l] : i.push(l), e++;
|
|
4578
4590
|
}
|
|
4579
|
-
var B =
|
|
4591
|
+
var B = x === e;
|
|
4580
4592
|
H = H || B;
|
|
4581
4593
|
}
|
|
4582
4594
|
if (H)
|
|
4583
4595
|
e = te, i !== null && (te ? i.length = te : i = null);
|
|
4584
4596
|
else {
|
|
4585
|
-
const
|
|
4597
|
+
const x = {
|
|
4586
4598
|
instancePath: t + "/body",
|
|
4587
4599
|
schemaPath: "#/properties/body/anyOf",
|
|
4588
4600
|
keyword: "anyOf",
|
|
4589
4601
|
params: {},
|
|
4590
4602
|
message: "must match a schema in anyOf"
|
|
4591
4603
|
};
|
|
4592
|
-
return i === null ? i = [
|
|
4604
|
+
return i === null ? i = [x] : i.push(x), e++, ie.errors = i, !1;
|
|
4593
4605
|
}
|
|
4594
|
-
var
|
|
4606
|
+
var u = D === e;
|
|
4595
4607
|
} else
|
|
4596
|
-
var
|
|
4597
|
-
if (
|
|
4608
|
+
var u = !0;
|
|
4609
|
+
if (u) {
|
|
4598
4610
|
if (r.env !== void 0) {
|
|
4599
4611
|
let b = r.env;
|
|
4600
4612
|
const D = e;
|
|
@@ -4636,10 +4648,10 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4636
4648
|
message: "must be object"
|
|
4637
4649
|
}
|
|
4638
4650
|
], !1;
|
|
4639
|
-
var
|
|
4651
|
+
var u = D === e;
|
|
4640
4652
|
} else
|
|
4641
|
-
var
|
|
4642
|
-
if (
|
|
4653
|
+
var u = !0;
|
|
4654
|
+
if (u) {
|
|
4643
4655
|
if (r.$_SERVER !== void 0) {
|
|
4644
4656
|
let b = r.$_SERVER;
|
|
4645
4657
|
const D = e;
|
|
@@ -4681,10 +4693,10 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4681
4693
|
message: "must be object"
|
|
4682
4694
|
}
|
|
4683
4695
|
], !1;
|
|
4684
|
-
var
|
|
4696
|
+
var u = D === e;
|
|
4685
4697
|
} else
|
|
4686
|
-
var
|
|
4687
|
-
if (
|
|
4698
|
+
var u = !0;
|
|
4699
|
+
if (u)
|
|
4688
4700
|
if (r.code !== void 0) {
|
|
4689
4701
|
const b = e;
|
|
4690
4702
|
if (typeof r.code != "string")
|
|
@@ -4699,9 +4711,9 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4699
4711
|
message: "must be string"
|
|
4700
4712
|
}
|
|
4701
4713
|
], !1;
|
|
4702
|
-
var
|
|
4714
|
+
var u = b === e;
|
|
4703
4715
|
} else
|
|
4704
|
-
var
|
|
4716
|
+
var u = !0;
|
|
4705
4717
|
}
|
|
4706
4718
|
}
|
|
4707
4719
|
}
|
|
@@ -4722,7 +4734,7 @@ function ie(r, { instancePath: t = "", parentData: f, parentDataProperty: c, roo
|
|
|
4722
4734
|
], !1;
|
|
4723
4735
|
return ie.errors = i, e === 0;
|
|
4724
4736
|
}
|
|
4725
|
-
function o(r, { instancePath: t = "", parentData: f, parentDataProperty:
|
|
4737
|
+
function o(r, { instancePath: t = "", parentData: f, parentDataProperty: d, rootData: c = r } = {}) {
|
|
4726
4738
|
let i = null, e = 0;
|
|
4727
4739
|
if (e === 0)
|
|
4728
4740
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
@@ -4809,10 +4821,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
4809
4821
|
message: "must be number"
|
|
4810
4822
|
}
|
|
4811
4823
|
], !1;
|
|
4812
|
-
var
|
|
4824
|
+
var u = $ === e;
|
|
4813
4825
|
} else
|
|
4814
|
-
var
|
|
4815
|
-
if (
|
|
4826
|
+
var u = !0;
|
|
4827
|
+
if (u)
|
|
4816
4828
|
if (s.caption !== void 0) {
|
|
4817
4829
|
const n = e;
|
|
4818
4830
|
if (typeof s.caption != "string")
|
|
@@ -4827,9 +4839,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
4827
4839
|
message: "must be string"
|
|
4828
4840
|
}
|
|
4829
4841
|
], !1;
|
|
4830
|
-
var
|
|
4842
|
+
var u = n === e;
|
|
4831
4843
|
} else
|
|
4832
|
-
var
|
|
4844
|
+
var u = !0;
|
|
4833
4845
|
}
|
|
4834
4846
|
} else
|
|
4835
4847
|
return o.errors = [
|
|
@@ -5030,10 +5042,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
5030
5042
|
message: "must be object"
|
|
5031
5043
|
}
|
|
5032
5044
|
], !1;
|
|
5033
|
-
var
|
|
5045
|
+
var U = a === e;
|
|
5034
5046
|
} else
|
|
5035
|
-
var
|
|
5036
|
-
if (
|
|
5047
|
+
var U = !0;
|
|
5048
|
+
if (U) {
|
|
5037
5049
|
if (r.step !== void 0) {
|
|
5038
5050
|
let s = r.step;
|
|
5039
5051
|
const a = e;
|
|
@@ -5061,10 +5073,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
5061
5073
|
message: "must be equal to constant"
|
|
5062
5074
|
}
|
|
5063
5075
|
], !1;
|
|
5064
|
-
var
|
|
5076
|
+
var U = a === e;
|
|
5065
5077
|
} else
|
|
5066
|
-
var
|
|
5067
|
-
if (
|
|
5078
|
+
var U = !0;
|
|
5079
|
+
if (U)
|
|
5068
5080
|
if (r.themeFolderName !== void 0) {
|
|
5069
5081
|
const s = e;
|
|
5070
5082
|
if (typeof r.themeFolderName != "string")
|
|
@@ -5079,9 +5091,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
5079
5091
|
message: "must be string"
|
|
5080
5092
|
}
|
|
5081
5093
|
], !1;
|
|
5082
|
-
var
|
|
5094
|
+
var U = s === e;
|
|
5083
5095
|
} else
|
|
5084
|
-
var
|
|
5096
|
+
var U = !0;
|
|
5085
5097
|
}
|
|
5086
5098
|
}
|
|
5087
5099
|
}
|
|
@@ -5385,10 +5397,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
5385
5397
|
message: "must be object"
|
|
5386
5398
|
}
|
|
5387
5399
|
], !1;
|
|
5388
|
-
var
|
|
5400
|
+
var I = a === e;
|
|
5389
5401
|
} else
|
|
5390
|
-
var
|
|
5391
|
-
if (
|
|
5402
|
+
var I = !0;
|
|
5403
|
+
if (I) {
|
|
5392
5404
|
if (r.step !== void 0) {
|
|
5393
5405
|
let s = r.step;
|
|
5394
5406
|
const a = e;
|
|
@@ -5416,10 +5428,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
5416
5428
|
message: "must be equal to constant"
|
|
5417
5429
|
}
|
|
5418
5430
|
], !1;
|
|
5419
|
-
var
|
|
5431
|
+
var I = a === e;
|
|
5420
5432
|
} else
|
|
5421
|
-
var
|
|
5422
|
-
if (
|
|
5433
|
+
var I = !0;
|
|
5434
|
+
if (I) {
|
|
5423
5435
|
if (r.consts !== void 0) {
|
|
5424
5436
|
let s = r.consts;
|
|
5425
5437
|
const a = e;
|
|
@@ -5437,10 +5449,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
5437
5449
|
message: "must be object"
|
|
5438
5450
|
}
|
|
5439
5451
|
], !1;
|
|
5440
|
-
var
|
|
5452
|
+
var I = a === e;
|
|
5441
5453
|
} else
|
|
5442
|
-
var
|
|
5443
|
-
if (
|
|
5454
|
+
var I = !0;
|
|
5455
|
+
if (I) {
|
|
5444
5456
|
if (r.method !== void 0) {
|
|
5445
5457
|
let s = r.method;
|
|
5446
5458
|
const a = e;
|
|
@@ -5468,10 +5480,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
5468
5480
|
message: "must be equal to one of the allowed values"
|
|
5469
5481
|
}
|
|
5470
5482
|
], !1;
|
|
5471
|
-
var
|
|
5483
|
+
var I = a === e;
|
|
5472
5484
|
} else
|
|
5473
|
-
var
|
|
5474
|
-
if (
|
|
5485
|
+
var I = !0;
|
|
5486
|
+
if (I)
|
|
5475
5487
|
if (r.virtualize !== void 0) {
|
|
5476
5488
|
const s = e;
|
|
5477
5489
|
if (typeof r.virtualize != "boolean")
|
|
@@ -5486,9 +5498,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
5486
5498
|
message: "must be boolean"
|
|
5487
5499
|
}
|
|
5488
5500
|
], !1;
|
|
5489
|
-
var
|
|
5501
|
+
var I = s === e;
|
|
5490
5502
|
} else
|
|
5491
|
-
var
|
|
5503
|
+
var I = !0;
|
|
5492
5504
|
}
|
|
5493
5505
|
}
|
|
5494
5506
|
}
|
|
@@ -5965,7 +5977,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
5965
5977
|
instancePath: t + "/file",
|
|
5966
5978
|
parentData: r,
|
|
5967
5979
|
parentDataProperty: "file",
|
|
5968
|
-
rootData:
|
|
5980
|
+
rootData: c
|
|
5969
5981
|
}) || (i = i === null ? re.errors : i.concat(
|
|
5970
5982
|
re.errors
|
|
5971
5983
|
), e = i.length);
|
|
@@ -6054,10 +6066,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
6054
6066
|
message: "must be number"
|
|
6055
6067
|
}
|
|
6056
6068
|
], !1;
|
|
6057
|
-
var
|
|
6069
|
+
var x = $ === e;
|
|
6058
6070
|
} else
|
|
6059
|
-
var
|
|
6060
|
-
if (
|
|
6071
|
+
var x = !0;
|
|
6072
|
+
if (x)
|
|
6061
6073
|
if (s.caption !== void 0) {
|
|
6062
6074
|
const n = e;
|
|
6063
6075
|
if (typeof s.caption != "string")
|
|
@@ -6072,9 +6084,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
6072
6084
|
message: "must be string"
|
|
6073
6085
|
}
|
|
6074
6086
|
], !1;
|
|
6075
|
-
var
|
|
6087
|
+
var x = n === e;
|
|
6076
6088
|
} else
|
|
6077
|
-
var
|
|
6089
|
+
var x = !0;
|
|
6078
6090
|
}
|
|
6079
6091
|
} else
|
|
6080
6092
|
return o.errors = [
|
|
@@ -6299,7 +6311,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
6299
6311
|
instancePath: t + "/wordPressFilesZip",
|
|
6300
6312
|
parentData: r,
|
|
6301
6313
|
parentDataProperty: "wordPressFilesZip",
|
|
6302
|
-
rootData:
|
|
6314
|
+
rootData: c
|
|
6303
6315
|
}
|
|
6304
6316
|
) || (i = i === null ? re.errors : i.concat(
|
|
6305
6317
|
re.errors
|
|
@@ -6516,7 +6528,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
6516
6528
|
instancePath: t + "/pluginZipFile",
|
|
6517
6529
|
parentData: r,
|
|
6518
6530
|
parentDataProperty: "pluginZipFile",
|
|
6519
|
-
rootData:
|
|
6531
|
+
rootData: c
|
|
6520
6532
|
}
|
|
6521
6533
|
) || (i = i === null ? re.errors : i.concat(
|
|
6522
6534
|
re.errors
|
|
@@ -6765,7 +6777,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
6765
6777
|
instancePath: t + "/themeZipFile",
|
|
6766
6778
|
parentData: r,
|
|
6767
6779
|
parentDataProperty: "themeZipFile",
|
|
6768
|
-
rootData:
|
|
6780
|
+
rootData: c
|
|
6769
6781
|
}
|
|
6770
6782
|
) || (i = i === null ? re.errors : i.concat(
|
|
6771
6783
|
re.errors
|
|
@@ -7286,10 +7298,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
7286
7298
|
message: "must be number"
|
|
7287
7299
|
}
|
|
7288
7300
|
], !1;
|
|
7289
|
-
var
|
|
7301
|
+
var F = $ === e;
|
|
7290
7302
|
} else
|
|
7291
|
-
var
|
|
7292
|
-
if (
|
|
7303
|
+
var F = !0;
|
|
7304
|
+
if (F)
|
|
7293
7305
|
if (s.caption !== void 0) {
|
|
7294
7306
|
const n = e;
|
|
7295
7307
|
if (typeof s.caption != "string")
|
|
@@ -7304,9 +7316,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
7304
7316
|
message: "must be string"
|
|
7305
7317
|
}
|
|
7306
7318
|
], !1;
|
|
7307
|
-
var
|
|
7319
|
+
var F = n === e;
|
|
7308
7320
|
} else
|
|
7309
|
-
var
|
|
7321
|
+
var F = !0;
|
|
7310
7322
|
}
|
|
7311
7323
|
} else
|
|
7312
7324
|
return o.errors = [
|
|
@@ -7693,16 +7705,16 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
7693
7705
|
if (N)
|
|
7694
7706
|
if (r.request !== void 0) {
|
|
7695
7707
|
const s = e;
|
|
7696
|
-
|
|
7708
|
+
me(
|
|
7697
7709
|
r.request,
|
|
7698
7710
|
{
|
|
7699
7711
|
instancePath: t + "/request",
|
|
7700
7712
|
parentData: r,
|
|
7701
7713
|
parentDataProperty: "request",
|
|
7702
|
-
rootData:
|
|
7714
|
+
rootData: c
|
|
7703
7715
|
}
|
|
7704
|
-
) || (i = i === null ?
|
|
7705
|
-
|
|
7716
|
+
) || (i = i === null ? me.errors : i.concat(
|
|
7717
|
+
me.errors
|
|
7706
7718
|
), e = i.length);
|
|
7707
7719
|
var N = s === e;
|
|
7708
7720
|
} else
|
|
@@ -8125,10 +8137,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
8125
8137
|
message: "must be number"
|
|
8126
8138
|
}
|
|
8127
8139
|
], !1;
|
|
8128
|
-
var
|
|
8140
|
+
var pe = $ === e;
|
|
8129
8141
|
} else
|
|
8130
|
-
var
|
|
8131
|
-
if (
|
|
8142
|
+
var pe = !0;
|
|
8143
|
+
if (pe)
|
|
8132
8144
|
if (s.caption !== void 0) {
|
|
8133
8145
|
const n = e;
|
|
8134
8146
|
if (typeof s.caption != "string")
|
|
@@ -8143,9 +8155,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
8143
8155
|
message: "must be string"
|
|
8144
8156
|
}
|
|
8145
8157
|
], !1;
|
|
8146
|
-
var
|
|
8158
|
+
var pe = n === e;
|
|
8147
8159
|
} else
|
|
8148
|
-
var
|
|
8160
|
+
var pe = !0;
|
|
8149
8161
|
}
|
|
8150
8162
|
} else
|
|
8151
8163
|
return o.errors = [
|
|
@@ -8159,10 +8171,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
8159
8171
|
message: "must be object"
|
|
8160
8172
|
}
|
|
8161
8173
|
], !1;
|
|
8162
|
-
var
|
|
8174
|
+
var fe = a === e;
|
|
8163
8175
|
} else
|
|
8164
|
-
var
|
|
8165
|
-
if (
|
|
8176
|
+
var fe = !0;
|
|
8177
|
+
if (fe) {
|
|
8166
8178
|
if (r.step !== void 0) {
|
|
8167
8179
|
let s = r.step;
|
|
8168
8180
|
const a = e;
|
|
@@ -8190,10 +8202,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
8190
8202
|
message: "must be equal to constant"
|
|
8191
8203
|
}
|
|
8192
8204
|
], !1;
|
|
8193
|
-
var
|
|
8205
|
+
var fe = a === e;
|
|
8194
8206
|
} else
|
|
8195
|
-
var
|
|
8196
|
-
if (
|
|
8207
|
+
var fe = !0;
|
|
8208
|
+
if (fe)
|
|
8197
8209
|
if (r.code !== void 0) {
|
|
8198
8210
|
const s = e;
|
|
8199
8211
|
if (typeof r.code != "string")
|
|
@@ -8208,9 +8220,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
8208
8220
|
message: "must be string"
|
|
8209
8221
|
}
|
|
8210
8222
|
], !1;
|
|
8211
|
-
var
|
|
8223
|
+
var fe = s === e;
|
|
8212
8224
|
} else
|
|
8213
|
-
var
|
|
8225
|
+
var fe = !0;
|
|
8214
8226
|
}
|
|
8215
8227
|
}
|
|
8216
8228
|
}
|
|
@@ -8370,7 +8382,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
8370
8382
|
instancePath: t + "/options",
|
|
8371
8383
|
parentData: r,
|
|
8372
8384
|
parentDataProperty: "options",
|
|
8373
|
-
rootData:
|
|
8385
|
+
rootData: c
|
|
8374
8386
|
}
|
|
8375
8387
|
) || (i = i === null ? ie.errors : i.concat(
|
|
8376
8388
|
ie.errors
|
|
@@ -8759,7 +8771,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
8759
8771
|
instancePath: t + "/sql",
|
|
8760
8772
|
parentData: r,
|
|
8761
8773
|
parentDataProperty: "sql",
|
|
8762
|
-
rootData:
|
|
8774
|
+
rootData: c
|
|
8763
8775
|
}) || (i = i === null ? re.errors : i.concat(
|
|
8764
8776
|
re.errors
|
|
8765
8777
|
), e = i.length);
|
|
@@ -9019,10 +9031,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9019
9031
|
message: "must be number"
|
|
9020
9032
|
}
|
|
9021
9033
|
], !1;
|
|
9022
|
-
var
|
|
9034
|
+
var xe = $ === e;
|
|
9023
9035
|
} else
|
|
9024
|
-
var
|
|
9025
|
-
if (
|
|
9036
|
+
var xe = !0;
|
|
9037
|
+
if (xe)
|
|
9026
9038
|
if (s.caption !== void 0) {
|
|
9027
9039
|
const n = e;
|
|
9028
9040
|
if (typeof s.caption != "string")
|
|
@@ -9037,9 +9049,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9037
9049
|
message: "must be string"
|
|
9038
9050
|
}
|
|
9039
9051
|
], !1;
|
|
9040
|
-
var
|
|
9052
|
+
var xe = n === e;
|
|
9041
9053
|
} else
|
|
9042
|
-
var
|
|
9054
|
+
var xe = !0;
|
|
9043
9055
|
}
|
|
9044
9056
|
} else
|
|
9045
9057
|
return o.errors = [
|
|
@@ -9053,10 +9065,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9053
9065
|
message: "must be object"
|
|
9054
9066
|
}
|
|
9055
9067
|
], !1;
|
|
9056
|
-
var
|
|
9068
|
+
var le = a === e;
|
|
9057
9069
|
} else
|
|
9058
|
-
var
|
|
9059
|
-
if (
|
|
9070
|
+
var le = !0;
|
|
9071
|
+
if (le) {
|
|
9060
9072
|
if (r.step !== void 0) {
|
|
9061
9073
|
let s = r.step;
|
|
9062
9074
|
const a = e;
|
|
@@ -9084,10 +9096,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9084
9096
|
message: "must be equal to constant"
|
|
9085
9097
|
}
|
|
9086
9098
|
], !1;
|
|
9087
|
-
var
|
|
9099
|
+
var le = a === e;
|
|
9088
9100
|
} else
|
|
9089
|
-
var
|
|
9090
|
-
if (
|
|
9101
|
+
var le = !0;
|
|
9102
|
+
if (le) {
|
|
9091
9103
|
if (r.zipFile !== void 0) {
|
|
9092
9104
|
const s = e;
|
|
9093
9105
|
re(
|
|
@@ -9096,15 +9108,15 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9096
9108
|
instancePath: t + "/zipFile",
|
|
9097
9109
|
parentData: r,
|
|
9098
9110
|
parentDataProperty: "zipFile",
|
|
9099
|
-
rootData:
|
|
9111
|
+
rootData: c
|
|
9100
9112
|
}
|
|
9101
9113
|
) || (i = i === null ? re.errors : i.concat(
|
|
9102
9114
|
re.errors
|
|
9103
9115
|
), e = i.length);
|
|
9104
|
-
var
|
|
9116
|
+
var le = s === e;
|
|
9105
9117
|
} else
|
|
9106
|
-
var
|
|
9107
|
-
if (
|
|
9118
|
+
var le = !0;
|
|
9119
|
+
if (le) {
|
|
9108
9120
|
if (r.zipPath !== void 0) {
|
|
9109
9121
|
const s = e;
|
|
9110
9122
|
if (typeof r.zipPath != "string")
|
|
@@ -9119,10 +9131,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9119
9131
|
message: "must be string"
|
|
9120
9132
|
}
|
|
9121
9133
|
], !1;
|
|
9122
|
-
var
|
|
9134
|
+
var le = s === e;
|
|
9123
9135
|
} else
|
|
9124
|
-
var
|
|
9125
|
-
if (
|
|
9136
|
+
var le = !0;
|
|
9137
|
+
if (le)
|
|
9126
9138
|
if (r.extractToPath !== void 0) {
|
|
9127
9139
|
const s = e;
|
|
9128
9140
|
if (typeof r.extractToPath != "string")
|
|
@@ -9137,9 +9149,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9137
9149
|
message: "must be string"
|
|
9138
9150
|
}
|
|
9139
9151
|
], !1;
|
|
9140
|
-
var
|
|
9152
|
+
var le = s === e;
|
|
9141
9153
|
} else
|
|
9142
|
-
var
|
|
9154
|
+
var le = !0;
|
|
9143
9155
|
}
|
|
9144
9156
|
}
|
|
9145
9157
|
}
|
|
@@ -9224,10 +9236,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9224
9236
|
message: "must be number"
|
|
9225
9237
|
}
|
|
9226
9238
|
], !1;
|
|
9227
|
-
var
|
|
9239
|
+
var Fe = $ === e;
|
|
9228
9240
|
} else
|
|
9229
|
-
var
|
|
9230
|
-
if (
|
|
9241
|
+
var Fe = !0;
|
|
9242
|
+
if (Fe)
|
|
9231
9243
|
if (s.caption !== void 0) {
|
|
9232
9244
|
const n = e;
|
|
9233
9245
|
if (typeof s.caption != "string")
|
|
@@ -9242,9 +9254,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9242
9254
|
message: "must be string"
|
|
9243
9255
|
}
|
|
9244
9256
|
], !1;
|
|
9245
|
-
var
|
|
9257
|
+
var Fe = n === e;
|
|
9246
9258
|
} else
|
|
9247
|
-
var
|
|
9259
|
+
var Fe = !0;
|
|
9248
9260
|
}
|
|
9249
9261
|
} else
|
|
9250
9262
|
return o.errors = [
|
|
@@ -9515,14 +9527,14 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9515
9527
|
instancePath: t + "/data",
|
|
9516
9528
|
parentData: r,
|
|
9517
9529
|
parentDataProperty: "data",
|
|
9518
|
-
rootData:
|
|
9530
|
+
rootData: c
|
|
9519
9531
|
}
|
|
9520
9532
|
) || (i = i === null ? re.errors : i.concat(
|
|
9521
9533
|
re.errors
|
|
9522
9534
|
), e = i.length);
|
|
9523
9535
|
var Te = $ === e;
|
|
9524
9536
|
if (n = n || Te, !n) {
|
|
9525
|
-
const
|
|
9537
|
+
const ue = e;
|
|
9526
9538
|
if (typeof s != "string") {
|
|
9527
9539
|
const ve = {
|
|
9528
9540
|
instancePath: t + "/data",
|
|
@@ -9539,7 +9551,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9539
9551
|
ve
|
|
9540
9552
|
), e++;
|
|
9541
9553
|
}
|
|
9542
|
-
var Te =
|
|
9554
|
+
var Te = ue === e;
|
|
9543
9555
|
if (n = n || Te, !n) {
|
|
9544
9556
|
const ve = e;
|
|
9545
9557
|
if (e === ve)
|
|
@@ -9566,10 +9578,10 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9566
9578
|
const Be = e;
|
|
9567
9579
|
for (const Z in s)
|
|
9568
9580
|
if (!(Z === "BYTES_PER_ELEMENT" || Z === "buffer" || Z === "byteLength" || Z === "byteOffset" || Z === "length")) {
|
|
9569
|
-
let
|
|
9581
|
+
let ce = s[Z];
|
|
9570
9582
|
const De = e;
|
|
9571
|
-
if (!(typeof
|
|
9572
|
-
|
|
9583
|
+
if (!(typeof ce == "number" && isFinite(
|
|
9584
|
+
ce
|
|
9573
9585
|
))) {
|
|
9574
9586
|
const ne = {
|
|
9575
9587
|
instancePath: t + "/data/" + Z.replace(
|
|
@@ -9599,7 +9611,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9599
9611
|
if (Be === e) {
|
|
9600
9612
|
if (s.BYTES_PER_ELEMENT !== void 0) {
|
|
9601
9613
|
let Z = s.BYTES_PER_ELEMENT;
|
|
9602
|
-
const
|
|
9614
|
+
const ce = e;
|
|
9603
9615
|
if (!(typeof Z == "number" && isFinite(
|
|
9604
9616
|
Z
|
|
9605
9617
|
))) {
|
|
@@ -9618,14 +9630,14 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9618
9630
|
De
|
|
9619
9631
|
), e++;
|
|
9620
9632
|
}
|
|
9621
|
-
var
|
|
9633
|
+
var de = ce === e;
|
|
9622
9634
|
} else
|
|
9623
|
-
var
|
|
9624
|
-
if (
|
|
9635
|
+
var de = !0;
|
|
9636
|
+
if (de) {
|
|
9625
9637
|
if (s.buffer !== void 0) {
|
|
9626
9638
|
let Z = s.buffer;
|
|
9627
|
-
const
|
|
9628
|
-
if (e ===
|
|
9639
|
+
const ce = e;
|
|
9640
|
+
if (e === ce)
|
|
9629
9641
|
if (Z && typeof Z == "object" && !Array.isArray(
|
|
9630
9642
|
Z
|
|
9631
9643
|
)) {
|
|
@@ -9703,13 +9715,13 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9703
9715
|
ne
|
|
9704
9716
|
), e++;
|
|
9705
9717
|
}
|
|
9706
|
-
var
|
|
9718
|
+
var de = ce === e;
|
|
9707
9719
|
} else
|
|
9708
|
-
var
|
|
9709
|
-
if (
|
|
9720
|
+
var de = !0;
|
|
9721
|
+
if (de) {
|
|
9710
9722
|
if (s.byteLength !== void 0) {
|
|
9711
9723
|
let Z = s.byteLength;
|
|
9712
|
-
const
|
|
9724
|
+
const ce = e;
|
|
9713
9725
|
if (!(typeof Z == "number" && isFinite(
|
|
9714
9726
|
Z
|
|
9715
9727
|
))) {
|
|
@@ -9728,13 +9740,13 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9728
9740
|
ne
|
|
9729
9741
|
), e++;
|
|
9730
9742
|
}
|
|
9731
|
-
var
|
|
9743
|
+
var de = ce === e;
|
|
9732
9744
|
} else
|
|
9733
|
-
var
|
|
9734
|
-
if (
|
|
9745
|
+
var de = !0;
|
|
9746
|
+
if (de) {
|
|
9735
9747
|
if (s.byteOffset !== void 0) {
|
|
9736
9748
|
let Z = s.byteOffset;
|
|
9737
|
-
const
|
|
9749
|
+
const ce = e;
|
|
9738
9750
|
if (!(typeof Z == "number" && isFinite(
|
|
9739
9751
|
Z
|
|
9740
9752
|
))) {
|
|
@@ -9753,13 +9765,13 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9753
9765
|
ne
|
|
9754
9766
|
), e++;
|
|
9755
9767
|
}
|
|
9756
|
-
var
|
|
9768
|
+
var de = ce === e;
|
|
9757
9769
|
} else
|
|
9758
|
-
var
|
|
9759
|
-
if (
|
|
9770
|
+
var de = !0;
|
|
9771
|
+
if (de)
|
|
9760
9772
|
if (s.length !== void 0) {
|
|
9761
9773
|
let Z = s.length;
|
|
9762
|
-
const
|
|
9774
|
+
const ce = e;
|
|
9763
9775
|
if (!(typeof Z == "number" && isFinite(
|
|
9764
9776
|
Z
|
|
9765
9777
|
))) {
|
|
@@ -9778,9 +9790,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9778
9790
|
ne
|
|
9779
9791
|
), e++;
|
|
9780
9792
|
}
|
|
9781
|
-
var
|
|
9793
|
+
var de = ce === e;
|
|
9782
9794
|
} else
|
|
9783
|
-
var
|
|
9795
|
+
var de = !0;
|
|
9784
9796
|
}
|
|
9785
9797
|
}
|
|
9786
9798
|
}
|
|
@@ -9809,7 +9821,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9809
9821
|
if (n)
|
|
9810
9822
|
e = q, i !== null && (q ? i.length = q : i = null);
|
|
9811
9823
|
else {
|
|
9812
|
-
const
|
|
9824
|
+
const ue = {
|
|
9813
9825
|
instancePath: t + "/data",
|
|
9814
9826
|
schemaPath: "#/oneOf/25/properties/data/anyOf",
|
|
9815
9827
|
keyword: "anyOf",
|
|
@@ -9817,9 +9829,9 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9817
9829
|
message: "must match a schema in anyOf"
|
|
9818
9830
|
};
|
|
9819
9831
|
return i === null ? i = [
|
|
9820
|
-
|
|
9832
|
+
ue
|
|
9821
9833
|
] : i.push(
|
|
9822
|
-
|
|
9834
|
+
ue
|
|
9823
9835
|
), e++, o.errors = i, !1;
|
|
9824
9836
|
}
|
|
9825
9837
|
var ge = a === e;
|
|
@@ -9983,7 +9995,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9983
9995
|
let n = !1;
|
|
9984
9996
|
const $ = e;
|
|
9985
9997
|
if (typeof s != "string") {
|
|
9986
|
-
const
|
|
9998
|
+
const ue = {
|
|
9987
9999
|
instancePath: t + "/command",
|
|
9988
10000
|
schemaPath: "#/oneOf/26/properties/command/anyOf/0/type",
|
|
9989
10001
|
keyword: "type",
|
|
@@ -9992,12 +10004,12 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
9992
10004
|
},
|
|
9993
10005
|
message: "must be string"
|
|
9994
10006
|
};
|
|
9995
|
-
i === null ? i = [
|
|
10007
|
+
i === null ? i = [ue] : i.push(ue), e++;
|
|
9996
10008
|
}
|
|
9997
10009
|
var Ge = $ === e;
|
|
9998
10010
|
if (n = n || Ge, !n) {
|
|
9999
|
-
const
|
|
10000
|
-
if (e ===
|
|
10011
|
+
const ue = e;
|
|
10012
|
+
if (e === ue)
|
|
10001
10013
|
if (Array.isArray(
|
|
10002
10014
|
s
|
|
10003
10015
|
)) {
|
|
@@ -10041,20 +10053,20 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10041
10053
|
ve
|
|
10042
10054
|
), e++;
|
|
10043
10055
|
}
|
|
10044
|
-
var Ge =
|
|
10056
|
+
var Ge = ue === e;
|
|
10045
10057
|
n = n || Ge;
|
|
10046
10058
|
}
|
|
10047
10059
|
if (n)
|
|
10048
10060
|
e = q, i !== null && (q ? i.length = q : i = null);
|
|
10049
10061
|
else {
|
|
10050
|
-
const
|
|
10062
|
+
const ue = {
|
|
10051
10063
|
instancePath: t + "/command",
|
|
10052
10064
|
schemaPath: "#/oneOf/26/properties/command/anyOf",
|
|
10053
10065
|
keyword: "anyOf",
|
|
10054
10066
|
params: {},
|
|
10055
10067
|
message: "must match a schema in anyOf"
|
|
10056
10068
|
};
|
|
10057
|
-
return i === null ? i = [
|
|
10069
|
+
return i === null ? i = [ue] : i.push(ue), e++, o.errors = i, !1;
|
|
10058
10070
|
}
|
|
10059
10071
|
var be = a === e;
|
|
10060
10072
|
} else
|
|
@@ -10300,7 +10312,7 @@ function o(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10300
10312
|
], !1;
|
|
10301
10313
|
return o.errors = i, e === 0;
|
|
10302
10314
|
}
|
|
10303
|
-
function W(r, { instancePath: t = "", parentData: f, parentDataProperty:
|
|
10315
|
+
function W(r, { instancePath: t = "", parentData: f, parentDataProperty: d, rootData: c = r } = {}) {
|
|
10304
10316
|
let i = null, e = 0;
|
|
10305
10317
|
if (e === 0)
|
|
10306
10318
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
@@ -10329,10 +10341,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10329
10341
|
message: "must be string"
|
|
10330
10342
|
}
|
|
10331
10343
|
], !1;
|
|
10332
|
-
var
|
|
10344
|
+
var u = l === e;
|
|
10333
10345
|
} else
|
|
10334
|
-
var
|
|
10335
|
-
if (
|
|
10346
|
+
var u = !0;
|
|
10347
|
+
if (u) {
|
|
10336
10348
|
if (r.description !== void 0) {
|
|
10337
10349
|
const l = e;
|
|
10338
10350
|
if (typeof r.description != "string")
|
|
@@ -10345,10 +10357,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10345
10357
|
message: "must be string"
|
|
10346
10358
|
}
|
|
10347
10359
|
], !1;
|
|
10348
|
-
var
|
|
10360
|
+
var u = l === e;
|
|
10349
10361
|
} else
|
|
10350
|
-
var
|
|
10351
|
-
if (
|
|
10362
|
+
var u = !0;
|
|
10363
|
+
if (u) {
|
|
10352
10364
|
if (r.meta !== void 0) {
|
|
10353
10365
|
let l = r.meta;
|
|
10354
10366
|
const E = e;
|
|
@@ -10493,10 +10505,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10493
10505
|
message: "must be object"
|
|
10494
10506
|
}
|
|
10495
10507
|
], !1;
|
|
10496
|
-
var
|
|
10508
|
+
var u = E === e;
|
|
10497
10509
|
} else
|
|
10498
|
-
var
|
|
10499
|
-
if (
|
|
10510
|
+
var u = !0;
|
|
10511
|
+
if (u) {
|
|
10500
10512
|
if (r.preferredVersions !== void 0) {
|
|
10501
10513
|
let l = r.preferredVersions;
|
|
10502
10514
|
const E = e;
|
|
@@ -10560,8 +10572,8 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10560
10572
|
};
|
|
10561
10573
|
i === null ? i = [T] : i.push(T), e++;
|
|
10562
10574
|
}
|
|
10563
|
-
var
|
|
10564
|
-
if (w = w ||
|
|
10575
|
+
var U = L === e;
|
|
10576
|
+
if (w = w || U, !w) {
|
|
10565
10577
|
const T = e;
|
|
10566
10578
|
if (typeof m != "string") {
|
|
10567
10579
|
const j = {
|
|
@@ -10595,8 +10607,8 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10595
10607
|
j
|
|
10596
10608
|
), e++;
|
|
10597
10609
|
}
|
|
10598
|
-
var
|
|
10599
|
-
w = w ||
|
|
10610
|
+
var U = T === e;
|
|
10611
|
+
w = w || U;
|
|
10600
10612
|
}
|
|
10601
10613
|
if (w)
|
|
10602
10614
|
e = h, i !== null && (h ? i.length = h : i = null);
|
|
@@ -10643,10 +10655,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10643
10655
|
message: "must be object"
|
|
10644
10656
|
}
|
|
10645
10657
|
], !1;
|
|
10646
|
-
var
|
|
10658
|
+
var u = E === e;
|
|
10647
10659
|
} else
|
|
10648
|
-
var
|
|
10649
|
-
if (
|
|
10660
|
+
var u = !0;
|
|
10661
|
+
if (u) {
|
|
10650
10662
|
if (r.features !== void 0) {
|
|
10651
10663
|
let l = r.features;
|
|
10652
10664
|
const E = e;
|
|
@@ -10688,10 +10700,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10688
10700
|
message: "must be object"
|
|
10689
10701
|
}
|
|
10690
10702
|
], !1;
|
|
10691
|
-
var
|
|
10703
|
+
var u = E === e;
|
|
10692
10704
|
} else
|
|
10693
|
-
var
|
|
10694
|
-
if (
|
|
10705
|
+
var u = !0;
|
|
10706
|
+
if (u) {
|
|
10695
10707
|
if (r.extraLibraries !== void 0) {
|
|
10696
10708
|
let l = r.extraLibraries;
|
|
10697
10709
|
const E = e;
|
|
@@ -10742,10 +10754,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10742
10754
|
message: "must be array"
|
|
10743
10755
|
}
|
|
10744
10756
|
], !1;
|
|
10745
|
-
var
|
|
10757
|
+
var u = E === e;
|
|
10746
10758
|
} else
|
|
10747
|
-
var
|
|
10748
|
-
if (
|
|
10759
|
+
var u = !0;
|
|
10760
|
+
if (u) {
|
|
10749
10761
|
if (r.constants !== void 0) {
|
|
10750
10762
|
let l = r.constants;
|
|
10751
10763
|
const E = e;
|
|
@@ -10787,16 +10799,16 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10787
10799
|
message: "must be object"
|
|
10788
10800
|
}
|
|
10789
10801
|
], !1;
|
|
10790
|
-
var
|
|
10802
|
+
var u = E === e;
|
|
10791
10803
|
} else
|
|
10792
|
-
var
|
|
10793
|
-
if (
|
|
10804
|
+
var u = !0;
|
|
10805
|
+
if (u) {
|
|
10794
10806
|
if (r.plugins !== void 0) {
|
|
10795
10807
|
let l = r.plugins;
|
|
10796
10808
|
const E = e;
|
|
10797
10809
|
if (e === E)
|
|
10798
10810
|
if (Array.isArray(l)) {
|
|
10799
|
-
var
|
|
10811
|
+
var I = !0;
|
|
10800
10812
|
const k = l.length;
|
|
10801
10813
|
for (let g = 0; g < k; g++) {
|
|
10802
10814
|
let m = l[g];
|
|
@@ -10804,7 +10816,7 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10804
10816
|
let w = !1;
|
|
10805
10817
|
const L = e;
|
|
10806
10818
|
if (typeof m != "string") {
|
|
10807
|
-
const
|
|
10819
|
+
const F = {
|
|
10808
10820
|
instancePath: t + "/plugins/" + g,
|
|
10809
10821
|
schemaPath: "#/properties/plugins/items/anyOf/0/type",
|
|
10810
10822
|
keyword: "type",
|
|
@@ -10814,32 +10826,32 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10814
10826
|
message: "must be string"
|
|
10815
10827
|
};
|
|
10816
10828
|
i === null ? i = [
|
|
10817
|
-
|
|
10829
|
+
F
|
|
10818
10830
|
] : i.push(
|
|
10819
|
-
|
|
10831
|
+
F
|
|
10820
10832
|
), e++;
|
|
10821
10833
|
}
|
|
10822
10834
|
var b = L === e;
|
|
10823
10835
|
if (w = w || b, !w) {
|
|
10824
|
-
const
|
|
10836
|
+
const F = e;
|
|
10825
10837
|
re(
|
|
10826
10838
|
m,
|
|
10827
10839
|
{
|
|
10828
10840
|
instancePath: t + "/plugins/" + g,
|
|
10829
10841
|
parentData: l,
|
|
10830
10842
|
parentDataProperty: g,
|
|
10831
|
-
rootData:
|
|
10843
|
+
rootData: c
|
|
10832
10844
|
}
|
|
10833
10845
|
) || (i = i === null ? re.errors : i.concat(
|
|
10834
10846
|
re.errors
|
|
10835
10847
|
), e = i.length);
|
|
10836
|
-
var b =
|
|
10848
|
+
var b = F === e;
|
|
10837
10849
|
w = w || b;
|
|
10838
10850
|
}
|
|
10839
10851
|
if (w)
|
|
10840
10852
|
e = h, i !== null && (h ? i.length = h : i = null);
|
|
10841
10853
|
else {
|
|
10842
|
-
const
|
|
10854
|
+
const F = {
|
|
10843
10855
|
instancePath: t + "/plugins/" + g,
|
|
10844
10856
|
schemaPath: "#/properties/plugins/items/anyOf",
|
|
10845
10857
|
keyword: "anyOf",
|
|
@@ -10847,13 +10859,13 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10847
10859
|
message: "must match a schema in anyOf"
|
|
10848
10860
|
};
|
|
10849
10861
|
return i === null ? i = [
|
|
10850
|
-
|
|
10862
|
+
F
|
|
10851
10863
|
] : i.push(
|
|
10852
|
-
|
|
10864
|
+
F
|
|
10853
10865
|
), e++, W.errors = i, !1;
|
|
10854
10866
|
}
|
|
10855
|
-
var
|
|
10856
|
-
if (!
|
|
10867
|
+
var I = y === e;
|
|
10868
|
+
if (!I)
|
|
10857
10869
|
break;
|
|
10858
10870
|
}
|
|
10859
10871
|
} else
|
|
@@ -10868,10 +10880,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10868
10880
|
message: "must be array"
|
|
10869
10881
|
}
|
|
10870
10882
|
], !1;
|
|
10871
|
-
var
|
|
10883
|
+
var u = E === e;
|
|
10872
10884
|
} else
|
|
10873
|
-
var
|
|
10874
|
-
if (
|
|
10885
|
+
var u = !0;
|
|
10886
|
+
if (u) {
|
|
10875
10887
|
if (r.siteOptions !== void 0) {
|
|
10876
10888
|
let l = r.siteOptions;
|
|
10877
10889
|
const E = e;
|
|
@@ -10929,10 +10941,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10929
10941
|
message: "must be object"
|
|
10930
10942
|
}
|
|
10931
10943
|
], !1;
|
|
10932
|
-
var
|
|
10944
|
+
var u = E === e;
|
|
10933
10945
|
} else
|
|
10934
|
-
var
|
|
10935
|
-
if (
|
|
10946
|
+
var u = !0;
|
|
10947
|
+
if (u) {
|
|
10936
10948
|
if (r.login !== void 0) {
|
|
10937
10949
|
let l = r.login;
|
|
10938
10950
|
const E = e, _ = e;
|
|
@@ -10981,7 +10993,7 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10981
10993
|
const L = e;
|
|
10982
10994
|
for (const T in l)
|
|
10983
10995
|
if (!(T === "username" || T === "password")) {
|
|
10984
|
-
const
|
|
10996
|
+
const F = {
|
|
10985
10997
|
instancePath: t + "/login",
|
|
10986
10998
|
schemaPath: "#/properties/login/anyOf/1/additionalProperties",
|
|
10987
10999
|
keyword: "additionalProperties",
|
|
@@ -10991,9 +11003,9 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
10991
11003
|
message: "must NOT have additional properties"
|
|
10992
11004
|
};
|
|
10993
11005
|
i === null ? i = [
|
|
10994
|
-
|
|
11006
|
+
F
|
|
10995
11007
|
] : i.push(
|
|
10996
|
-
|
|
11008
|
+
F
|
|
10997
11009
|
), e++;
|
|
10998
11010
|
break;
|
|
10999
11011
|
}
|
|
@@ -11001,7 +11013,7 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11001
11013
|
if (l.username !== void 0) {
|
|
11002
11014
|
const T = e;
|
|
11003
11015
|
if (typeof l.username != "string") {
|
|
11004
|
-
const
|
|
11016
|
+
const F = {
|
|
11005
11017
|
instancePath: t + "/login/username",
|
|
11006
11018
|
schemaPath: "#/properties/login/anyOf/1/properties/username/type",
|
|
11007
11019
|
keyword: "type",
|
|
@@ -11011,9 +11023,9 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11011
11023
|
message: "must be string"
|
|
11012
11024
|
};
|
|
11013
11025
|
i === null ? i = [
|
|
11014
|
-
|
|
11026
|
+
F
|
|
11015
11027
|
] : i.push(
|
|
11016
|
-
|
|
11028
|
+
F
|
|
11017
11029
|
), e++;
|
|
11018
11030
|
}
|
|
11019
11031
|
var H = T === e;
|
|
@@ -11078,10 +11090,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11078
11090
|
y
|
|
11079
11091
|
), e++, W.errors = i, !1;
|
|
11080
11092
|
}
|
|
11081
|
-
var
|
|
11093
|
+
var u = E === e;
|
|
11082
11094
|
} else
|
|
11083
|
-
var
|
|
11084
|
-
if (
|
|
11095
|
+
var u = !0;
|
|
11096
|
+
if (u) {
|
|
11085
11097
|
if (r.phpExtensionBundles !== void 0) {
|
|
11086
11098
|
let l = r.phpExtensionBundles;
|
|
11087
11099
|
const E = e;
|
|
@@ -11134,10 +11146,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11134
11146
|
message: "must be array"
|
|
11135
11147
|
}
|
|
11136
11148
|
], !1;
|
|
11137
|
-
var
|
|
11149
|
+
var u = E === e;
|
|
11138
11150
|
} else
|
|
11139
|
-
var
|
|
11140
|
-
if (
|
|
11151
|
+
var u = !0;
|
|
11152
|
+
if (u) {
|
|
11141
11153
|
if (r.steps !== void 0) {
|
|
11142
11154
|
let l = r.steps;
|
|
11143
11155
|
const E = e;
|
|
@@ -11158,14 +11170,14 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11158
11170
|
instancePath: t + "/steps/" + g,
|
|
11159
11171
|
parentData: l,
|
|
11160
11172
|
parentDataProperty: g,
|
|
11161
|
-
rootData:
|
|
11173
|
+
rootData: c
|
|
11162
11174
|
}
|
|
11163
11175
|
) || (i = i === null ? o.errors : i.concat(
|
|
11164
11176
|
o.errors
|
|
11165
11177
|
), e = i.length);
|
|
11166
|
-
var
|
|
11167
|
-
if (w = w ||
|
|
11168
|
-
const
|
|
11178
|
+
var x = L === e;
|
|
11179
|
+
if (w = w || x, !w) {
|
|
11180
|
+
const F = e;
|
|
11169
11181
|
if (typeof m != "string") {
|
|
11170
11182
|
const V = {
|
|
11171
11183
|
instancePath: t + "/steps/" + g,
|
|
@@ -11182,8 +11194,8 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11182
11194
|
V
|
|
11183
11195
|
), e++;
|
|
11184
11196
|
}
|
|
11185
|
-
var
|
|
11186
|
-
if (w = w ||
|
|
11197
|
+
var x = F === e;
|
|
11198
|
+
if (w = w || x, !w) {
|
|
11187
11199
|
const V = e, ee = {
|
|
11188
11200
|
instancePath: t + "/steps/" + g,
|
|
11189
11201
|
schemaPath: "#/properties/steps/items/anyOf/2/not",
|
|
@@ -11196,8 +11208,8 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11196
11208
|
] : i.push(
|
|
11197
11209
|
ee
|
|
11198
11210
|
), e++;
|
|
11199
|
-
var
|
|
11200
|
-
if (w = w ||
|
|
11211
|
+
var x = V === e;
|
|
11212
|
+
if (w = w || x, !w) {
|
|
11201
11213
|
const N = e;
|
|
11202
11214
|
if (typeof m != "boolean") {
|
|
11203
11215
|
const C = {
|
|
@@ -11231,8 +11243,8 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11231
11243
|
C
|
|
11232
11244
|
), e++;
|
|
11233
11245
|
}
|
|
11234
|
-
var
|
|
11235
|
-
if (w = w ||
|
|
11246
|
+
var x = N === e;
|
|
11247
|
+
if (w = w || x, !w) {
|
|
11236
11248
|
const C = e;
|
|
11237
11249
|
if (m !== null) {
|
|
11238
11250
|
const J = {
|
|
@@ -11250,8 +11262,8 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11250
11262
|
J
|
|
11251
11263
|
), e++;
|
|
11252
11264
|
}
|
|
11253
|
-
var
|
|
11254
|
-
w = w ||
|
|
11265
|
+
var x = C === e;
|
|
11266
|
+
w = w || x;
|
|
11255
11267
|
}
|
|
11256
11268
|
}
|
|
11257
11269
|
}
|
|
@@ -11259,7 +11271,7 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11259
11271
|
if (w)
|
|
11260
11272
|
e = h, i !== null && (h ? i.length = h : i = null);
|
|
11261
11273
|
else {
|
|
11262
|
-
const
|
|
11274
|
+
const F = {
|
|
11263
11275
|
instancePath: t + "/steps/" + g,
|
|
11264
11276
|
schemaPath: "#/properties/steps/items/anyOf",
|
|
11265
11277
|
keyword: "anyOf",
|
|
@@ -11267,9 +11279,9 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11267
11279
|
message: "must match a schema in anyOf"
|
|
11268
11280
|
};
|
|
11269
11281
|
return i === null ? i = [
|
|
11270
|
-
|
|
11282
|
+
F
|
|
11271
11283
|
] : i.push(
|
|
11272
|
-
|
|
11284
|
+
F
|
|
11273
11285
|
), e++, W.errors = i, !1;
|
|
11274
11286
|
}
|
|
11275
11287
|
var A = y === e;
|
|
@@ -11288,10 +11300,10 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11288
11300
|
message: "must be array"
|
|
11289
11301
|
}
|
|
11290
11302
|
], !1;
|
|
11291
|
-
var
|
|
11303
|
+
var u = E === e;
|
|
11292
11304
|
} else
|
|
11293
|
-
var
|
|
11294
|
-
if (
|
|
11305
|
+
var u = !0;
|
|
11306
|
+
if (u)
|
|
11295
11307
|
if (r.$schema !== void 0) {
|
|
11296
11308
|
const l = e;
|
|
11297
11309
|
if (typeof r.$schema != "string")
|
|
@@ -11306,9 +11318,9 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11306
11318
|
message: "must be string"
|
|
11307
11319
|
}
|
|
11308
11320
|
], !1;
|
|
11309
|
-
var
|
|
11321
|
+
var u = l === e;
|
|
11310
11322
|
} else
|
|
11311
|
-
var
|
|
11323
|
+
var u = !0;
|
|
11312
11324
|
}
|
|
11313
11325
|
}
|
|
11314
11326
|
}
|
|
@@ -11333,13 +11345,13 @@ function W(r, { instancePath: t = "", parentData: f, parentDataProperty: c, root
|
|
|
11333
11345
|
], !1;
|
|
11334
11346
|
return W.errors = i, e === 0;
|
|
11335
11347
|
}
|
|
11336
|
-
function ze(r, { instancePath: t = "", parentData: f, parentDataProperty:
|
|
11348
|
+
function ze(r, { instancePath: t = "", parentData: f, parentDataProperty: d, rootData: c = r } = {}) {
|
|
11337
11349
|
let i = null, e = 0;
|
|
11338
11350
|
return W(r, {
|
|
11339
11351
|
instancePath: t,
|
|
11340
11352
|
parentData: f,
|
|
11341
|
-
parentDataProperty:
|
|
11342
|
-
rootData:
|
|
11353
|
+
parentDataProperty: d,
|
|
11354
|
+
rootData: c
|
|
11343
11355
|
}) || (i = i === null ? W.errors : i.concat(W.errors), e = i.length), ze.errors = i, e === 0;
|
|
11344
11356
|
}
|
|
11345
11357
|
const { wpCLI: wt, ...or } = it, vt = {
|
|
@@ -11347,19 +11359,19 @@ const { wpCLI: wt, ...or } = it, vt = {
|
|
|
11347
11359
|
"wp-cli": wt,
|
|
11348
11360
|
importFile: or.importWxr
|
|
11349
11361
|
};
|
|
11350
|
-
function
|
|
11362
|
+
function xt(r, {
|
|
11351
11363
|
progress: t = new jr(),
|
|
11352
11364
|
semaphore: f = new Or({ concurrency: 3 }),
|
|
11353
|
-
onStepCompleted:
|
|
11365
|
+
onStepCompleted: d = () => {
|
|
11354
11366
|
}
|
|
11355
11367
|
} = {}) {
|
|
11356
|
-
var v, R, M,
|
|
11357
|
-
r = {
|
|
11368
|
+
var v, R, M, I, b, D, te, H, P;
|
|
11369
|
+
r = structuredClone(r), r = {
|
|
11358
11370
|
...r,
|
|
11359
11371
|
steps: (r.steps || []).filter(Ot).filter($t)
|
|
11360
11372
|
};
|
|
11361
11373
|
for (const A of r.steps)
|
|
11362
|
-
typeof A == "object" && A.step === "importFile" && (A.step = "importWxr",
|
|
11374
|
+
typeof A == "object" && A.step === "importFile" && (A.step = "importWxr", ae.warn(
|
|
11363
11375
|
'The "importFile" step is deprecated. Use "importWxr" instead.'
|
|
11364
11376
|
));
|
|
11365
11377
|
if (r.constants && r.steps.unshift({
|
|
@@ -11369,29 +11381,32 @@ function Ft(r, {
|
|
|
11369
11381
|
step: "setSiteOptions",
|
|
11370
11382
|
options: r.siteOptions
|
|
11371
11383
|
}), r.plugins) {
|
|
11372
|
-
const A = r.plugins.map((
|
|
11384
|
+
const A = r.plugins.map((x) => typeof x == "string" ? x.startsWith("https://") ? {
|
|
11373
11385
|
resource: "url",
|
|
11374
|
-
url:
|
|
11386
|
+
url: x
|
|
11375
11387
|
} : {
|
|
11376
11388
|
resource: "wordpress.org/plugins",
|
|
11377
|
-
slug:
|
|
11378
|
-
} :
|
|
11389
|
+
slug: x
|
|
11390
|
+
} : x).map((x) => ({
|
|
11379
11391
|
step: "installPlugin",
|
|
11380
|
-
pluginZipFile:
|
|
11392
|
+
pluginZipFile: x
|
|
11381
11393
|
}));
|
|
11382
11394
|
r.steps.unshift(...A);
|
|
11383
11395
|
}
|
|
11384
11396
|
r.login && r.steps.push({
|
|
11385
11397
|
step: "login",
|
|
11386
11398
|
...r.login === !0 ? { username: "admin", password: "password" } : r.login
|
|
11387
|
-
}), r.phpExtensionBundles || (r.phpExtensionBundles = []), r.phpExtensionBundles || (r.phpExtensionBundles = []), r.phpExtensionBundles.length === 0 && r.phpExtensionBundles
|
|
11388
|
-
|
|
11399
|
+
}), r.phpExtensionBundles || (r.phpExtensionBundles = []), r.phpExtensionBundles || (r.phpExtensionBundles = []), r.phpExtensionBundles.length === 0 && (r.phpExtensionBundles = [
|
|
11400
|
+
...r.phpExtensionBundles,
|
|
11401
|
+
"kitchen-sink"
|
|
11402
|
+
]);
|
|
11403
|
+
const c = ((v = r.steps) == null ? void 0 : v.findIndex(
|
|
11389
11404
|
(A) => typeof A == "object" && (A == null ? void 0 : A.step) === "wp-cli"
|
|
11390
11405
|
)) ?? -1;
|
|
11391
|
-
if ((R = r == null ? void 0 : r.extraLibraries) != null && R.includes("wp-cli") ||
|
|
11406
|
+
if ((R = r == null ? void 0 : r.extraLibraries) != null && R.includes("wp-cli") || c > -1) {
|
|
11392
11407
|
r.phpExtensionBundles.includes("light") && (r.phpExtensionBundles = r.phpExtensionBundles.filter(
|
|
11393
|
-
(
|
|
11394
|
-
),
|
|
11408
|
+
(x) => x !== "light"
|
|
11409
|
+
), ae.warn(
|
|
11395
11410
|
"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. "
|
|
11396
11411
|
));
|
|
11397
11412
|
const A = {
|
|
@@ -11412,14 +11427,14 @@ function Ft(r, {
|
|
|
11412
11427
|
},
|
|
11413
11428
|
path: "/tmp/wp-cli.phar"
|
|
11414
11429
|
};
|
|
11415
|
-
|
|
11430
|
+
c === -1 ? (M = r.steps) == null || M.push(A) : (I = r.steps) == null || I.splice(c, 0, A);
|
|
11416
11431
|
}
|
|
11417
11432
|
const i = (b = r.steps) == null ? void 0 : b.findIndex(
|
|
11418
11433
|
(A) => typeof A == "object" && (A == null ? void 0 : A.step) === "importWxr"
|
|
11419
11434
|
);
|
|
11420
11435
|
i !== void 0 && i > -1 && (r.phpExtensionBundles.includes("light") && (r.phpExtensionBundles = r.phpExtensionBundles.filter(
|
|
11421
11436
|
(A) => A !== "light"
|
|
11422
|
-
),
|
|
11437
|
+
), ae.warn(
|
|
11423
11438
|
"The importWxr step used in your Blueprint 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. "
|
|
11424
11439
|
)), (D = r.steps) == null || D.splice(i, 0, {
|
|
11425
11440
|
step: "installPlugin",
|
|
@@ -11429,20 +11444,20 @@ function Ft(r, {
|
|
|
11429
11444
|
caption: "Downloading the WordPress Importer plugin"
|
|
11430
11445
|
}
|
|
11431
11446
|
}));
|
|
11432
|
-
const { valid: e, errors:
|
|
11447
|
+
const { valid: e, errors: u } = Pt(r);
|
|
11433
11448
|
if (!e) {
|
|
11434
11449
|
const A = new Error(
|
|
11435
|
-
`Invalid blueprint: ${
|
|
11450
|
+
`Invalid blueprint: ${u[0].message} at ${u[0].instancePath}`
|
|
11436
11451
|
);
|
|
11437
|
-
throw A.errors =
|
|
11452
|
+
throw A.errors = u, A;
|
|
11438
11453
|
}
|
|
11439
11454
|
const O = r.steps || [], B = O.reduce(
|
|
11440
|
-
(A,
|
|
11455
|
+
(A, x) => {
|
|
11441
11456
|
var z;
|
|
11442
|
-
return A + (((z =
|
|
11457
|
+
return A + (((z = x.progress) == null ? void 0 : z.weight) || 1);
|
|
11443
11458
|
},
|
|
11444
11459
|
0
|
|
11445
|
-
),
|
|
11460
|
+
), U = O.map(
|
|
11446
11461
|
(A) => Et(A, {
|
|
11447
11462
|
semaphore: f,
|
|
11448
11463
|
rootProgressTracker: t,
|
|
@@ -11469,16 +11484,16 @@ function Ft(r, {
|
|
|
11469
11484
|
extraLibraries: r.extraLibraries || [],
|
|
11470
11485
|
run: async (A) => {
|
|
11471
11486
|
try {
|
|
11472
|
-
for (const { resources:
|
|
11473
|
-
for (const z of
|
|
11487
|
+
for (const { resources: x } of U)
|
|
11488
|
+
for (const z of x)
|
|
11474
11489
|
z.setPlayground(A), z.isAsync && z.resolve();
|
|
11475
|
-
for (const [
|
|
11490
|
+
for (const [x, { run: z, step: l }] of Object.entries(U))
|
|
11476
11491
|
try {
|
|
11477
11492
|
const E = await z(A);
|
|
11478
|
-
|
|
11493
|
+
d(E, l);
|
|
11479
11494
|
} catch (E) {
|
|
11480
|
-
throw
|
|
11481
|
-
`Error when executing the blueprint step #${
|
|
11495
|
+
throw ae.error(E), new Error(
|
|
11496
|
+
`Error when executing the blueprint step #${x} (${JSON.stringify(
|
|
11482
11497
|
l
|
|
11483
11498
|
)}) ${E instanceof Error ? `: ${E.message}` : E}`,
|
|
11484
11499
|
{ cause: E }
|
|
@@ -11497,19 +11512,19 @@ function Ft(r, {
|
|
|
11497
11512
|
};
|
|
11498
11513
|
}
|
|
11499
11514
|
function Pt(r) {
|
|
11500
|
-
var
|
|
11515
|
+
var c;
|
|
11501
11516
|
const t = ze(r);
|
|
11502
11517
|
if (t)
|
|
11503
11518
|
return { valid: t };
|
|
11504
11519
|
const f = /* @__PURE__ */ new Set();
|
|
11505
11520
|
for (const i of ze.errors)
|
|
11506
11521
|
i.schemaPath.startsWith("#/properties/steps/items/anyOf") || f.add(i.instancePath);
|
|
11507
|
-
const
|
|
11522
|
+
const d = (c = ze.errors) == null ? void 0 : c.filter(
|
|
11508
11523
|
(i) => !(i.schemaPath.startsWith("#/properties/steps/items/anyOf") && f.has(i.instancePath))
|
|
11509
11524
|
);
|
|
11510
11525
|
return {
|
|
11511
11526
|
valid: t,
|
|
11512
|
-
errors:
|
|
11527
|
+
errors: d
|
|
11513
11528
|
};
|
|
11514
11529
|
}
|
|
11515
11530
|
function _t(r, t, f) {
|
|
@@ -11517,28 +11532,28 @@ function _t(r, t, f) {
|
|
|
11517
11532
|
}
|
|
11518
11533
|
function kt(r, t) {
|
|
11519
11534
|
const f = qr.filter(
|
|
11520
|
-
(
|
|
11521
|
-
),
|
|
11522
|
-
(
|
|
11535
|
+
(c) => r.includes(c)
|
|
11536
|
+
), d = t.flatMap(
|
|
11537
|
+
(c) => c in sr ? sr[c] : []
|
|
11523
11538
|
);
|
|
11524
|
-
return Array.from(/* @__PURE__ */ new Set([...f, ...
|
|
11539
|
+
return Array.from(/* @__PURE__ */ new Set([...f, ...d]));
|
|
11525
11540
|
}
|
|
11526
11541
|
function Ot(r) {
|
|
11527
11542
|
return !!(typeof r == "object" && r);
|
|
11528
11543
|
}
|
|
11529
11544
|
function $t(r) {
|
|
11530
|
-
return ["setPhpIniEntry", "request"].includes(r.step) ? (
|
|
11545
|
+
return ["setPhpIniEntry", "request"].includes(r.step) ? (ae.warn(
|
|
11531
11546
|
`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`
|
|
11532
11547
|
), !1) : !0;
|
|
11533
11548
|
}
|
|
11534
11549
|
function Et(r, {
|
|
11535
11550
|
semaphore: t,
|
|
11536
11551
|
rootProgressTracker: f,
|
|
11537
|
-
totalProgressWeight:
|
|
11552
|
+
totalProgressWeight: d
|
|
11538
11553
|
}) {
|
|
11539
|
-
var
|
|
11540
|
-
const
|
|
11541
|
-
(((
|
|
11554
|
+
var U;
|
|
11555
|
+
const c = f.stage(
|
|
11556
|
+
(((U = r.progress) == null ? void 0 : U.weight) || 1) / d
|
|
11542
11557
|
), i = {};
|
|
11543
11558
|
for (const v of Object.keys(r)) {
|
|
11544
11559
|
let R = r[v];
|
|
@@ -11549,41 +11564,41 @@ function Et(r, {
|
|
|
11549
11564
|
const e = async (v) => {
|
|
11550
11565
|
var R;
|
|
11551
11566
|
try {
|
|
11552
|
-
return
|
|
11567
|
+
return c.fillSlowly(), await vt[r.step](
|
|
11553
11568
|
v,
|
|
11554
11569
|
await Tt(i),
|
|
11555
11570
|
{
|
|
11556
|
-
tracker:
|
|
11571
|
+
tracker: c,
|
|
11557
11572
|
initialCaption: (R = r.progress) == null ? void 0 : R.caption
|
|
11558
11573
|
}
|
|
11559
11574
|
);
|
|
11560
11575
|
} finally {
|
|
11561
|
-
|
|
11576
|
+
c.finish();
|
|
11562
11577
|
}
|
|
11563
|
-
},
|
|
11578
|
+
}, u = nr(i), O = nr(i).filter(
|
|
11564
11579
|
(v) => v.isAsync
|
|
11565
11580
|
), B = 1 / (O.length + 1);
|
|
11566
11581
|
for (const v of O)
|
|
11567
|
-
v.progress =
|
|
11568
|
-
return { run: e, step: r, resources:
|
|
11582
|
+
v.progress = c.stage(B);
|
|
11583
|
+
return { run: e, step: r, resources: u };
|
|
11569
11584
|
}
|
|
11570
11585
|
function nr(r) {
|
|
11571
11586
|
const t = [];
|
|
11572
11587
|
for (const f in r) {
|
|
11573
|
-
const
|
|
11574
|
-
|
|
11588
|
+
const d = r[f];
|
|
11589
|
+
d instanceof Ee && t.push(d);
|
|
11575
11590
|
}
|
|
11576
11591
|
return t;
|
|
11577
11592
|
}
|
|
11578
11593
|
async function Tt(r) {
|
|
11579
11594
|
const t = {};
|
|
11580
11595
|
for (const f in r) {
|
|
11581
|
-
const
|
|
11582
|
-
|
|
11596
|
+
const d = r[f];
|
|
11597
|
+
d instanceof Ee ? t[f] = await d.resolve() : t[f] = d;
|
|
11583
11598
|
}
|
|
11584
11599
|
return t;
|
|
11585
11600
|
}
|
|
11586
|
-
async function
|
|
11601
|
+
async function Ft(r, t) {
|
|
11587
11602
|
await r.run(t);
|
|
11588
11603
|
}
|
|
11589
11604
|
function Ct() {
|
|
@@ -11591,7 +11606,7 @@ function Ct() {
|
|
|
11591
11606
|
export {
|
|
11592
11607
|
Ke as activatePlugin,
|
|
11593
11608
|
fr as activateTheme,
|
|
11594
|
-
|
|
11609
|
+
xt as compileBlueprint,
|
|
11595
11610
|
Br as cp,
|
|
11596
11611
|
cr as defineSiteUrl,
|
|
11597
11612
|
Ve as defineWpConfigConsts,
|
|
@@ -11609,7 +11624,7 @@ export {
|
|
|
11609
11624
|
Qr as resetData,
|
|
11610
11625
|
lr as rm,
|
|
11611
11626
|
zr as rmdir,
|
|
11612
|
-
|
|
11627
|
+
Ft as runBlueprintSteps,
|
|
11613
11628
|
Lr as runPHP,
|
|
11614
11629
|
Sr as runPHPWithOptions,
|
|
11615
11630
|
Nr as runSql,
|