@wp-playground/blueprints 1.1.1 → 1.1.3
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/blueprint-schema-validator.js +177 -133
- package/blueprint-schema.json +3 -0
- package/blueprints.phar +0 -0
- package/index.cjs +150 -38
- package/index.cjs.map +1 -1
- package/index.js +2202 -2046
- package/index.js.map +1 -1
- package/lib/blueprint.d.ts +1 -0
- package/lib/compile.d.ts +1 -0
- package/lib/v2.d.ts +41 -0
- package/package.json +13 -13
package/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@php-wasm/node-polyfills");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@php-wasm/node-polyfills");const ae=require("@php-wasm/logger"),z=require("@php-wasm/util"),Or=require("@wp-playground/wordpress"),xe=require("@php-wasm/universal"),jr=require("@wp-playground/common"),pr=require("@php-wasm/progress"),Oe=require("@wp-playground/storage"),rt=require("@php-wasm/web"),tt=require("@php-wasm/stream-compression"),lr=["db.php","plugins/akismet","plugins/hello.php","plugins/wordpress-importer","mu-plugins/sqlite-database-integration","mu-plugins/playground-includes","mu-plugins/0-playground.php","mu-plugins/0-sqlite.php","themes/twentytwenty","themes/twentytwentyone","themes/twentytwentytwo","themes/twentytwentythree","themes/twentytwentyfour","themes/twentytwentyfive","themes/twentytwentysix"],fr=async(r,{pluginPath:t,pluginName:p},c)=>{c==null||c.tracker.setCaption(`Activating ${p||t}`);const u=await r.documentRoot,i=await r.run({code:`<?php
|
|
2
2
|
define( 'WP_ADMIN', true );
|
|
3
3
|
require_once( getenv('DOCROOT') . "/wp-load.php" );
|
|
4
4
|
require_once( getenv('DOCROOT') . "/wp-admin/includes/plugin.php" );
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
} else if ( false === $response ) {
|
|
29
29
|
die( "The activatePlugin step wasn't able to find the plugin $plugin_path." );
|
|
30
30
|
}
|
|
31
|
-
`,env:{PLUGIN_PATH:t,DOCROOT:
|
|
31
|
+
`,env:{PLUGIN_PATH:t,DOCROOT:u}});i.text&&ae.logger.warn(`Plugin ${t} activation printed the following bytes: ${i.text}`);const e=await r.run({code:`<?php
|
|
32
32
|
ob_start();
|
|
33
33
|
require_once( getenv( 'DOCROOT' ) . "/wp-load.php" );
|
|
34
34
|
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
die( ob_get_flush() ?: 'false' );
|
|
69
|
-
`,env:{DOCROOT:
|
|
69
|
+
`,env:{DOCROOT:u,PLUGIN_PATH:t}});if(e.text!=="true")throw e.text!=="false"&&ae.logger.debug(e.text),new Error(`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.`)},dr=async(r,{themeFolderName:t},p)=>{p==null||p.tracker.setCaption(`Activating ${t}`);const c=await r.documentRoot,u=`${c}/wp-content/themes/${t}`;if(!await r.fileExists(u))throw new Error(`
|
|
70
70
|
Couldn't activate theme ${t}.
|
|
71
|
-
Theme not found at the provided theme path: ${
|
|
71
|
+
Theme not found at the provided theme path: ${u}.
|
|
72
72
|
Check the theme path to ensure it's correct.
|
|
73
73
|
If the theme is not installed, you can install it using the installTheme step.
|
|
74
74
|
More info can be found in the Blueprint documentation: https://wordpress.github.io/wordpress-playground/blueprints/steps/#ActivateThemeStep
|
|
@@ -85,7 +85,35 @@
|
|
|
85
85
|
throw new Exception( 'Theme ' . getenv('themeFolderName') . ' could not be activated.' );
|
|
86
86
|
}
|
|
87
87
|
die('Theme activated successfully');
|
|
88
|
-
`,env:{docroot:
|
|
88
|
+
`,env:{docroot:c,themeFolderName:t}});if(i.text!=="Theme activated successfully")throw ae.logger.debug(i),new Error(`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`)},Tr=async(r,{code:t})=>((t.includes('"wordpress/wp-load.php"')||t.includes("'wordpress/wp-load.php'"))&&(ae.logger.error(`
|
|
89
|
+
It looks like you're trying to load WordPress using a relative path 'wordpress/wp-load.php'.
|
|
90
|
+
|
|
91
|
+
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
92
|
+
how real web servers work. This means relative paths that used to work may no longer
|
|
93
|
+
point to the correct location.
|
|
94
|
+
|
|
95
|
+
Playground automatically updated the path for you, but at one point path rewriting will be removed. Please
|
|
96
|
+
update your code to use an absolute path instead:
|
|
97
|
+
|
|
98
|
+
Instead of: require_once 'wordpress/wp-load.php';
|
|
99
|
+
Use: require_once '/wordpress/wp-load.php';
|
|
100
|
+
|
|
101
|
+
This will ensure your code works reliably regardless of the current working directory.
|
|
102
|
+
`.trim()),t=t.replace("'wordpress/wp-load.php'","'/wordpress/wp-load.php'"),t=t.replace('"wordpress/wp-load.php"','"/wordpress/wp-load.php"')),await r.run({code:t})),Er=async(r,{options:t})=>await r.run(t),ur=async(r,{path:t})=>{t.startsWith("/")||(ae.logger.error(`
|
|
103
|
+
The rm() step in your Blueprint refers to a relative path.
|
|
104
|
+
|
|
105
|
+
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
106
|
+
how real web servers work. This means relative paths that used to work may no longer
|
|
107
|
+
point to the correct location.
|
|
108
|
+
|
|
109
|
+
Playground automatically updated the path for you, but at one point path rewriting will be removed. Please
|
|
110
|
+
update your code to use an absolute path instead:
|
|
111
|
+
|
|
112
|
+
Instead of: rm({ path: 'wordpress/wp-load.php' });
|
|
113
|
+
Use: rm({ path: '/wordpress/wp-load.php' });
|
|
114
|
+
|
|
115
|
+
This will ensure your code works reliably regardless of the current working directory.
|
|
116
|
+
`.trim()),t=`/${t}`),await r.unlink(t)},qr=async(r,{sql:t},p)=>{p==null||p.tracker.setCaption("Executing SQL Queries");const c=`/tmp/${z.randomFilename()}.sql`;await r.writeFile(c,new Uint8Array(await t.arrayBuffer()));const u=await r.documentRoot,i=z.phpVars({docroot:u,sqlFilename:c}),e=await r.run({code:`<?php
|
|
89
117
|
require_once ${i.docroot} . '/wp-load.php';
|
|
90
118
|
|
|
91
119
|
$handle = fopen(${i.sqlFilename}, 'r');
|
|
@@ -100,18 +128,18 @@
|
|
|
100
128
|
|
|
101
129
|
$wpdb->query($line);
|
|
102
130
|
}
|
|
103
|
-
`});return await
|
|
104
|
-
include ${
|
|
105
|
-
$site_options = ${
|
|
131
|
+
`});return await ur(r,{path:c}),e},$r=async(r,{request:t})=>{ae.logger.warn('Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.');const p=await r.request(t);if(p.httpStatusCode>399||p.httpStatusCode<200)throw ae.logger.warn("WordPress response was",{response:p}),new Error(`Request failed with status ${p.httpStatusCode}`);return p},rr=async(r,{consts:t,method:p="define-before-run"})=>{switch(p){case"define-before-run":await st(r,t);break;case"rewrite-wp-config":{const c=await r.documentRoot,u=z.joinPaths(c,"/wp-config.php");await Or.defineWpConfigConstants(r,u,t,"rewrite");break}default:throw new Error(`Invalid method: ${p}`)}};async function st(r,t){for(const p in t)await r.defineConstant(p,t[p])}const cr=async(r,{options:t})=>{const p=await r.documentRoot;await r.run({code:`<?php
|
|
132
|
+
include ${z.phpVar(p)} . '/wp-load.php';
|
|
133
|
+
$site_options = ${z.phpVar(t)};
|
|
106
134
|
foreach($site_options as $name => $value) {
|
|
107
135
|
update_option($name, $value);
|
|
108
136
|
}
|
|
109
137
|
echo "Success";
|
|
110
|
-
`})},Ar=async(r,{meta:t,userId:p})=>{const
|
|
111
|
-
include ${
|
|
112
|
-
$meta = ${
|
|
138
|
+
`})},Ar=async(r,{meta:t,userId:p})=>{const c=await r.documentRoot;await r.run({code:`<?php
|
|
139
|
+
include ${z.phpVar(c)} . '/wp-load.php';
|
|
140
|
+
$meta = ${z.phpVar(t)};
|
|
113
141
|
foreach($meta as $name => $value) {
|
|
114
|
-
update_user_meta(${
|
|
142
|
+
update_user_meta(${z.phpVar(p)}, $name, $value);
|
|
115
143
|
}
|
|
116
144
|
`})},mr="/tmp/wp-cli.phar",it={resource:"url",url:"https://playground.wordpress.net/wp-cli.phar"},Rr=async(r,t=mr)=>{if(!await r.fileExists(t))throw new Error(`wp-cli.phar not found at ${t}.
|
|
117
145
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
@@ -119,7 +147,7 @@
|
|
|
119
147
|
"extraLibraries": [ "wp-cli" ]
|
|
120
148
|
}
|
|
121
149
|
Read more about it in the documentation.
|
|
122
|
-
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},yr=async(r,{command:t,wpCliPath:p=mr})=>{await Rr(r,p);let
|
|
150
|
+
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},yr=async(r,{command:t,wpCliPath:p=mr})=>{await Rr(r,p);let c;if(typeof t=="string"?(t=t.trim(),c=ot(t)):c=t,c.shift()!=="wp")throw new Error('The first argument must be "wp".');const i=await r.documentRoot;await r.writeFile("/tmp/stdout",""),await r.writeFile("/tmp/stderr",""),await r.writeFile(z.joinPaths(i,"run-cli.php"),`<?php
|
|
123
151
|
// Set up the environment to emulate a shell script
|
|
124
152
|
// call.
|
|
125
153
|
|
|
@@ -132,7 +160,7 @@
|
|
|
132
160
|
$GLOBALS['argv'] = array_merge([
|
|
133
161
|
"/tmp/wp-cli.phar",
|
|
134
162
|
"--path=${i}"
|
|
135
|
-
], ${
|
|
163
|
+
], ${z.phpVar(c)});
|
|
136
164
|
|
|
137
165
|
// Provide stdin, stdout, stderr streams outside of
|
|
138
166
|
// the CLI SAPI.
|
|
@@ -140,10 +168,94 @@
|
|
|
140
168
|
define('STDOUT', fopen('php://stdout', 'wb'));
|
|
141
169
|
define('STDERR', fopen('php://stderr', 'wb'));
|
|
142
170
|
|
|
143
|
-
require( ${
|
|
144
|
-
`);const e=await r.run({scriptPath:
|
|
145
|
-
|
|
146
|
-
|
|
171
|
+
require( ${z.phpVar(p)} );
|
|
172
|
+
`);const e=await r.run({scriptPath:z.joinPaths(i,"run-cli.php")});if(e.errors)throw new Error(e.errors);return e};function ot(r){let c=0,u="";const i=[];let e="";for(let d=0;d<r.length;d++){const h=r[d];c===0?h==='"'||h==="'"?(c=1,u=h):h.match(/\s/)?(e&&i.push(e),e=""):e+=h:c===1&&(h==="\\"?(d++,e+=r[d]):h===u?(c=0,u=""):e+=h)}return e&&i.push(e),i}const Lr=async(r,{wpCliPath:t})=>{await Rr(r,t),await rr(r,{consts:{WP_ALLOW_MULTISITE:1}});const p=new URL(await r.absoluteUrl);if(p.port!==""){let i=`The current host is ${p.host}, but WordPress multisites do not support custom ports.`;throw p.hostname==="localhost"&&(i+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(i)}const c=p.pathname.replace(/\/$/,"")+"/",u=`${p.protocol}//${p.hostname}${c}`;await cr(r,{options:{siteurl:u,home:u}}),await yr(r,{command:"wp core multisite-convert"})},Fr=async(r,{fromPath:t,toPath:p})=>{(!t.startsWith("/")||!p.startsWith("/"))&&ae.logger.error(`
|
|
173
|
+
The cp() step in your Blueprint refers to a relative path.
|
|
174
|
+
|
|
175
|
+
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
176
|
+
how real web servers work. This means relative paths that used to work may no longer
|
|
177
|
+
point to the correct location.
|
|
178
|
+
|
|
179
|
+
Playground automatically updated the path for you, but at one point path rewriting will be removed. Please
|
|
180
|
+
update your code to use an absolute path instead:
|
|
181
|
+
|
|
182
|
+
Instead of: cp({ fromPath: 'wordpress/wp-load.php', toPath: 'wordpress/wp-load.php' });
|
|
183
|
+
Use: cp({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-load.php' });
|
|
184
|
+
|
|
185
|
+
This will ensure your code works reliably regardless of the current working directory.
|
|
186
|
+
`.trim()),t.startsWith("/")||(t=`/${t}`),p.startsWith("/")||(p=`/${p}`),await r.writeFile(p,await r.readFileAsBuffer(t))},Sr=async(r,{fromPath:t,toPath:p})=>{(!t.startsWith("/")||!p.startsWith("/"))&&ae.logger.error(`
|
|
187
|
+
The mv() step in your Blueprint refers to a relative path.
|
|
188
|
+
|
|
189
|
+
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
190
|
+
how real web servers work. This means relative paths that used to work may no longer
|
|
191
|
+
point to the correct location.
|
|
192
|
+
|
|
193
|
+
Playground automatically updated the path for you, but at one point path rewriting will be removed. Please
|
|
194
|
+
update your code to use an absolute path instead:
|
|
195
|
+
|
|
196
|
+
Instead of: mv({ fromPath: 'wordpress/wp-load.php', toPath: 'wordpress/wp-load.php' });
|
|
197
|
+
Use: mv({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-load.php' });
|
|
198
|
+
|
|
199
|
+
This will ensure your code works reliably regardless of the current working directory.
|
|
200
|
+
`.trim()),t.startsWith("/")||(t=`/${t}`),p.startsWith("/")||(p=`/${p}`),await r.mv(t,p)},Nr=async(r,{path:t})=>{t.startsWith("/")||ae.logger.error(`
|
|
201
|
+
The mkdir() step in your Blueprint refers to a relative path.
|
|
202
|
+
|
|
203
|
+
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
204
|
+
how real web servers work. This means relative paths that used to work may no longer
|
|
205
|
+
point to the correct location.
|
|
206
|
+
|
|
207
|
+
Playground automatically updated the path for you, but at one point path rewriting will be removed. Please
|
|
208
|
+
update your code to use an absolute path instead:
|
|
209
|
+
|
|
210
|
+
Instead of: mkdir({ path: 'wordpress/my-new-folder' });
|
|
211
|
+
Use: mkdir({ path: '/wordpress/my-new-folder' });
|
|
212
|
+
|
|
213
|
+
This will ensure your code works reliably regardless of the current working directory.
|
|
214
|
+
`.trim()),await r.mkdir(t)},xr=async(r,{path:t})=>{t.startsWith("/")||(ae.logger.error(`
|
|
215
|
+
The rmdir() step in your Blueprint refers to a relative path.
|
|
216
|
+
|
|
217
|
+
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
218
|
+
how real web servers work. This means relative paths that used to work may no longer
|
|
219
|
+
point to the correct location.
|
|
220
|
+
|
|
221
|
+
Playground automatically updated the path for you, but at one point path rewriting will be removed. Please
|
|
222
|
+
update your code to use an absolute path instead:
|
|
223
|
+
|
|
224
|
+
Instead of: rmdir({ path: 'wordpress/wp-load.php' });
|
|
225
|
+
Use: rmdir({ path: '/wordpress/wp-load.php' });
|
|
226
|
+
|
|
227
|
+
This will ensure your code works reliably regardless of the current working directory.
|
|
228
|
+
`.trim()),t=`/${t}`),await r.rmdir(t)},tr=async(r,{path:t,data:p})=>{p instanceof File&&(p=new Uint8Array(await p.arrayBuffer())),t.startsWith("/")||(ae.logger.error(`
|
|
229
|
+
The writeFile() step in your Blueprint refers to a relative path.
|
|
230
|
+
|
|
231
|
+
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
232
|
+
how real web servers work. This means relative paths that used to work may no longer
|
|
233
|
+
point to the correct location.
|
|
234
|
+
|
|
235
|
+
Playground automatically updated the path for you, but at one point path rewriting will be removed. Please
|
|
236
|
+
update your code to use an absolute path instead:
|
|
237
|
+
|
|
238
|
+
Instead of: writeFile({ path: 'wordpress/wp-load.php', data: '<?php echo "Hello World!"; ?>' });
|
|
239
|
+
Use: writeFile({ path: '/wordpress/wp-load.php', data: '<?php echo "Hello World!"; ?>' });
|
|
240
|
+
|
|
241
|
+
This will ensure your code works reliably regardless of the current working directory.
|
|
242
|
+
`.trim()),t=`/${t}`),t.startsWith("/wordpress/wp-content/mu-plugins")&&!await r.fileExists("/wordpress/wp-content/mu-plugins")&&await r.mkdir("/wordpress/wp-content/mu-plugins"),await r.writeFile(t,p)},Dr=async(r,{writeToPath:t,filesTree:p})=>{t.startsWith("/")||(ae.logger.error(`
|
|
243
|
+
The writeFiles() step in your Blueprint refers to a relative path.
|
|
244
|
+
|
|
245
|
+
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
246
|
+
how real web servers work. This means relative paths that used to work may no longer
|
|
247
|
+
point to the correct location.
|
|
248
|
+
|
|
249
|
+
Playground automatically updated the path for you, but at one point path rewriting will be removed. Please
|
|
250
|
+
update your code to use an absolute path instead:
|
|
251
|
+
|
|
252
|
+
Instead of: writeFiles({ writeToPath: 'wordpress/wp-content/plugins/my-plugin', filesTree: { name: 'style.css': 'a { color: red; }' });
|
|
253
|
+
Use: writeFiles({ writeToPath: '/wordpress/wp-content/plugins/my-plugin', filesTree: { name: 'style.css': 'a { color: red; }' });
|
|
254
|
+
|
|
255
|
+
This will ensure your code works reliably regardless of the current working directory.
|
|
256
|
+
`.trim()),t=`/${t}`),await xe.writeFiles(r,t,p.files)},hr=async(r,{siteUrl:t})=>{await rr(r,{consts:{WP_HOME:t,WP_SITEURL:t}})},Cr=async(r,{file:t},p)=>{await at(r,t,p)};async function at(r,t,p){var u;(u=p==null?void 0:p.tracker)==null||u.setCaption("Importing content"),await tr(r,{path:"/tmp/import.wxr",data:t});const c=await r.documentRoot;await r.run({code:`<?php
|
|
257
|
+
require ${z.phpVar(c)} . '/wp-load.php';
|
|
258
|
+
require ${z.phpVar(c)} . '/wp-admin/includes/admin.php';
|
|
147
259
|
|
|
148
260
|
kses_remove_filters();
|
|
149
261
|
$admin_id = get_users(array('role' => 'Administrator') )[0]->ID;
|
|
@@ -178,7 +290,7 @@
|
|
|
178
290
|
return $terms;
|
|
179
291
|
}, 10, 2 );
|
|
180
292
|
$result = $importer->import( '/tmp/import.wxr' );
|
|
181
|
-
`})}const gr=async(r,{themeSlug:t=""},p)=>{var
|
|
293
|
+
`})}const gr=async(r,{themeSlug:t=""},p)=>{var u;(u=p==null?void 0:p.tracker)==null||u.setCaption("Importing theme starter content");const c=await r.documentRoot;await r.run({code:`<?php
|
|
182
294
|
|
|
183
295
|
/**
|
|
184
296
|
* Ensure that the customizer loads as an admin user.
|
|
@@ -201,7 +313,7 @@
|
|
|
201
313
|
* See _wp_customize_include()
|
|
202
314
|
*/
|
|
203
315
|
$_REQUEST['wp_customize'] = 'on';
|
|
204
|
-
$_REQUEST['customize_theme'] = ${
|
|
316
|
+
$_REQUEST['customize_theme'] = ${z.phpVar(t)} ?: get_stylesheet();
|
|
205
317
|
|
|
206
318
|
/*
|
|
207
319
|
* Claim this is a ajax request saving settings, to avoid the preview filters being applied.
|
|
@@ -213,7 +325,7 @@
|
|
|
213
325
|
}
|
|
214
326
|
playground_add_filter( 'plugins_loaded', 'importThemeStarterContent_plugins_loaded', 0 );
|
|
215
327
|
|
|
216
|
-
require ${
|
|
328
|
+
require ${z.phpVar(c)} . '/wp-load.php';
|
|
217
329
|
|
|
218
330
|
// Return early if there's no starter content.
|
|
219
331
|
if ( ! get_theme_starter_content() ) {
|
|
@@ -225,10 +337,10 @@
|
|
|
225
337
|
|
|
226
338
|
// Publish the changeset, which publishes the starter content.
|
|
227
339
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
228
|
-
`})},sr=async(r,{zipFile:t,zipPath:p,extractToPath:
|
|
340
|
+
`})},sr=async(r,{zipFile:t,zipPath:p,extractToPath:c})=>{if(p)ae.logger.warn('The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.');else if(!t)throw new Error("Either zipPath or zipFile must be provided");await jr.unzipFile(r,t||p,c)},Ir=async(r,{wordPressFilesZip:t,pathInZip:p=""})=>{const c=await r.documentRoot;let u=z.joinPaths("/tmp","import");await r.mkdir(u),await sr(r,{zipFile:t,extractToPath:u}),u=z.joinPaths(u,p);const i=z.joinPaths(u,"wp-content"),e=z.joinPaths(c,"wp-content");for(const S of lr){const j=z.joinPaths(i,S);await Pr(r,j);const _=z.joinPaths(e,S);await r.fileExists(_)&&(await r.mkdir(z.dirname(j)),await r.mv(_,j))}const d=z.joinPaths(u,"wp-content","database");await r.fileExists(d)||await r.mv(z.joinPaths(c,"wp-content","database"),d);const h=await r.listFiles(u);for(const S of h)await Pr(r,z.joinPaths(c,S)),await r.mv(z.joinPaths(u,S),z.joinPaths(c,S));await r.rmdir(u),await Or.ensureWpConfig(r,c),await hr(r,{siteUrl:await r.absoluteUrl});const D=z.phpVar(z.joinPaths(c,"wp-admin","upgrade.php"));await r.run({code:`<?php
|
|
229
341
|
$_GET['step'] = 'upgrade_db';
|
|
230
|
-
require ${
|
|
231
|
-
`})};async function Pr(r,t){await r.fileExists(t)&&(await r.isDir(t)?await r.rmdir(t):await r.unlink(t))}async function Wr(r){const t=await r.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function Ur(r,{targetPath:t,zipFile:p,ifAlreadyInstalled:
|
|
342
|
+
require ${D};
|
|
343
|
+
`})};async function Pr(r,t){await r.fileExists(t)&&(await r.isDir(t)?await r.rmdir(t):await r.unlink(t))}async function Wr(r){const t=await r.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function Ur(r,{targetPath:t,zipFile:p,ifAlreadyInstalled:c="overwrite",targetFolderName:u=""}){const e=p.name.replace(/\.zip$/,""),d=z.joinPaths(await r.documentRoot,"wp-content"),h=z.joinPaths(d,z.randomString()),D=z.joinPaths(h,"assets",e);await r.fileExists(D)&&await r.rmdir(h,{recursive:!0}),await r.mkdir(h);try{await sr(r,{zipFile:p,extractToPath:D});let S=await r.listFiles(D,{prependPath:!0});S=S.filter(m=>!m.endsWith("/__MACOSX"));const j=S.length===1&&await r.isDir(S[0]);let _,k="";j?(k=S[0],_=S[0].split("/").pop()):(k=D,_=e),u&&u.length&&(_=u);const R=`${t}/${_}`;if(await r.fileExists(R)){if(!await r.isDir(R))throw new Error(`Cannot install asset ${_} to ${R} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`);if(c==="overwrite")await r.rmdir(R,{recursive:!0});else{if(c==="skip")return{assetFolderPath:R,assetFolderName:_};throw new Error(`Cannot install asset ${_} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${c}`)}}return await r.mv(k,R),{assetFolderPath:R,assetFolderName:_}}finally{await r.rmdir(h,{recursive:!0})}}function ir(r){const t=r.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const zr=async(r,{pluginData:t,pluginZipFile:p,ifAlreadyInstalled:c,options:u={}},i)=>{p&&(t=p,ae.logger.warn('The "pluginZipFile" option is deprecated. Use "pluginData" instead.'));const e=z.joinPaths(await r.documentRoot,"wp-content","plugins"),d="targetFolderName"in u?u.targetFolderName:"";let h="",D="";const S=async _=>{if(_.name.toLowerCase().endsWith(".zip"))return!0;const k=new Uint8Array(await _.arrayBuffer(),0,4);return k[0]===80&&k[1]===75&&k[2]===3&&k[3]===4};if(t instanceof File)if(await S(t)){const _=t.name.split("/").pop()||"plugin.zip";D=ir(_),i==null||i.tracker.setCaption(`Installing the ${D} plugin`);const k=await Ur(r,{ifAlreadyInstalled:c,zipFile:t,targetPath:`${await r.documentRoot}/wp-content/plugins`,targetFolderName:d});h=k.assetFolderPath,D=k.assetFolderName}else if(t.name.endsWith(".php")){const _=z.joinPaths(e,t.name);await tr(r,{path:_,data:t}),h=e,D=t.name}else throw new Error("pluginData looks like a file but does not look like a .zip or .php file.");else if(t){D=t.name,i==null||i.tracker.setCaption(`Installing the ${D} plugin`);const _=z.joinPaths(e,d||t.name);await xe.writeFiles(r,_,t.files,{rmRoot:!0}),h=_}("activate"in u?u.activate:!0)&&await fr(r,{pluginPath:h,pluginName:D},i)},Vr=async(r,{themeData:t,themeZipFile:p,ifAlreadyInstalled:c,options:u={}},i)=>{p&&(t=p,ae.logger.warn('The "themeZipFile" option is deprecated. Use "themeData" instead.'));const e="targetFolderName"in u?u.targetFolderName:"";let d="",h="";if(t instanceof File){const j=t.name.split("/").pop()||"theme.zip";h=ir(j),i==null||i.tracker.setCaption(`Installing the ${h} theme`),d=(await Ur(r,{ifAlreadyInstalled:c,zipFile:t,targetPath:`${await r.documentRoot}/wp-content/themes`,targetFolderName:e})).assetFolderName}else{h=t.name,d=e||h,i==null||i.tracker.setCaption(`Installing the ${h} theme`);const j=z.joinPaths(await r.documentRoot,"wp-content","themes",d);await xe.writeFiles(r,j,t.files,{rmRoot:!0})}("activate"in u?u.activate:!0)&&await dr(r,{themeFolderName:d},i),("importStarterContent"in u?u.importStarterContent:!1)&&await gr(r,{themeSlug:d},i)},Br=async(r,{username:t="admin"}={},p)=>{p==null||p.tracker.setCaption((p==null?void 0:p.initialCaption)||"Logging in"),r.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER",t)},Mr=async(r,t,p)=>{var u;(u=p==null?void 0:p.tracker)==null||u.setCaption("Resetting WordPress data");const c=await r.documentRoot;await r.run({env:{DOCROOT:c},code:`<?php
|
|
232
344
|
require getenv('DOCROOT') . '/wp-load.php';
|
|
233
345
|
|
|
234
346
|
$GLOBALS['@pdo']->query('DELETE FROM wp_posts WHERE id > 0');
|
|
@@ -242,11 +354,11 @@
|
|
|
242
354
|
|
|
243
355
|
$GLOBALS['@pdo']->query('DELETE FROM wp_commentmeta');
|
|
244
356
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
245
|
-
`})},Hr=async(r,{options:t})=>{await r.request({url:"/wp-admin/install.php?step=2",method:"POST",body:{language:"en",prefix:"wp_",weblog_title:"My WordPress Website",user_name:t.adminPassword||"admin",admin_password:t.adminPassword||"password",admin_password2:t.adminPassword||"password",Submit:"Install WordPress",pw_weak:"1",admin_email:"admin@localhost.com"}})},Zr=async(r,{selfContained:t=!1}={})=>{const p="/tmp/wordpress-playground.zip",
|
|
357
|
+
`})},Hr=async(r,{options:t})=>{await r.request({url:"/wp-admin/install.php?step=2",method:"POST",body:{language:"en",prefix:"wp_",weblog_title:"My WordPress Website",user_name:t.adminPassword||"admin",admin_password:t.adminPassword||"password",admin_password2:t.adminPassword||"password",Submit:"Install WordPress",pw_weak:"1",admin_email:"admin@localhost.com"}})},Zr=async(r,{selfContained:t=!1}={})=>{const p="/tmp/wordpress-playground.zip",c=await r.documentRoot,u=z.joinPaths(c,"wp-content");let i=lr;t&&(i=i.filter(h=>!h.startsWith("themes/twenty")).filter(h=>h!=="mu-plugins/sqlite-database-integration"));const e=z.phpVars({zipPath:p,wpContentPath:u,documentRoot:c,exceptPaths:i.map(h=>z.joinPaths(c,"wp-content",h)),additionalPaths:t?{[z.joinPaths(c,"wp-config.php")]:"wp-config.php"}:{}});await pt(r,`zipDir(${e.wpContentPath}, ${e.zipPath}, array(
|
|
246
358
|
'exclude_paths' => ${e.exceptPaths},
|
|
247
359
|
'zip_root' => ${e.documentRoot},
|
|
248
360
|
'additional_paths' => ${e.additionalPaths}
|
|
249
|
-
));`);const
|
|
361
|
+
));`);const d=await r.readFileAsBuffer(p);return r.unlink(p),d},nt=`<?php
|
|
250
362
|
|
|
251
363
|
function zipDir($root, $output, $options = array())
|
|
252
364
|
{
|
|
@@ -306,12 +418,12 @@ function join_paths()
|
|
|
306
418
|
|
|
307
419
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
308
420
|
}
|
|
309
|
-
`;async function pt(r,t){return await r.run({code:nt+t})}const lt=async(r,t)=>{const
|
|
310
|
-
require '${
|
|
421
|
+
`;async function pt(r,t){return await r.run({code:nt+t})}const lt=async(r,t)=>{const u=(await(await fetch(`https://api.wordpress.org/translations/core/1.0/?version=${r}`)).json()).translations.find(i=>i.language.toLowerCase()===t.toLowerCase());if(!u)throw new Error(`Failed to get ${t} translation package for WordPress ${r}.`);return u.package},Yr=async(r,{language:t},p)=>{p==null||p.tracker.setCaption((p==null?void 0:p.initialCaption)||"Translating"),await r.defineConstant("WPLANG",t);const c=await r.documentRoot,u=(await r.run({code:`<?php
|
|
422
|
+
require '${c}/wp-includes/version.php';
|
|
311
423
|
echo $wp_version;
|
|
312
|
-
`})).text,i=[{url:await lt(
|
|
313
|
-
require_once('${
|
|
314
|
-
require_once('${
|
|
424
|
+
`})).text,i=[{url:await lt(u,t),type:"core"}],d=(await r.run({code:`<?php
|
|
425
|
+
require_once('${c}/wp-load.php');
|
|
426
|
+
require_once('${c}/wp-admin/includes/plugin.php');
|
|
315
427
|
echo json_encode(
|
|
316
428
|
array_values(
|
|
317
429
|
array_map(
|
|
@@ -329,9 +441,9 @@ function join_paths()
|
|
|
329
441
|
)
|
|
330
442
|
)
|
|
331
443
|
)
|
|
332
|
-
);`})).json;for(const{slug:_,version:
|
|
333
|
-
require_once('${
|
|
334
|
-
require_once('${
|
|
444
|
+
);`})).json;for(const{slug:_,version:k}of d)i.push({url:`https://downloads.wordpress.org/translation/plugin/${_}/${k}/${t}.zip`,type:"plugin"});const D=(await r.run({code:`<?php
|
|
445
|
+
require_once('${c}/wp-load.php');
|
|
446
|
+
require_once('${c}/wp-admin/includes/theme.php');
|
|
335
447
|
echo json_encode(
|
|
336
448
|
array_values(
|
|
337
449
|
array_map(
|
|
@@ -344,7 +456,7 @@ function join_paths()
|
|
|
344
456
|
wp_get_themes()
|
|
345
457
|
)
|
|
346
458
|
)
|
|
347
|
-
);`})).json;for(const{slug:_,version:
|
|
459
|
+
);`})).json;for(const{slug:_,version:k}of D)i.push({url:`https://downloads.wordpress.org/translation/theme/${_}/${k}/${t}.zip`,type:"theme"});await r.isDir(`${c}/wp-content/languages/plugins`)||await r.mkdir(`${c}/wp-content/languages/plugins`),await r.isDir(`${c}/wp-content/languages/themes`)||await r.mkdir(`${c}/wp-content/languages/themes`);const S=new z.Semaphore({concurrency:5}),j=i.map(({url:_,type:k})=>S.run(async()=>{try{const R=await fetch(_);if(!R.ok)throw new Error(`Failed to download translations for ${k}: ${R.statusText}`);let m=`${c}/wp-content/languages`;k==="plugin"?m+="/plugins":k==="theme"&&(m+="/themes"),await jr.unzipFile(r,new File([await R.blob()],`${t}-${k}.zip`),m)}catch(R){if(k==="core")throw new Error(`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/.`);ae.logger.warn(`Error downloading translations for ${k}: ${R}`)}}));await Promise.all(j)},ft=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:fr,activateTheme:dr,cp:Fr,defineSiteUrl:hr,defineWpConfigConsts:rr,enableMultisite:Lr,exportWXR:Wr,importThemeStarterContent:gr,importWordPressFiles:Ir,importWxr:Cr,installPlugin:zr,installTheme:Vr,login:Br,mkdir:Nr,mv:Sr,request:$r,resetData:Mr,rm:ur,rmdir:xr,runPHP:Tr,runPHPWithOptions:Er,runSql:qr,runWpInstallationWizard:Hr,setSiteLanguage:Yr,setSiteOptions:cr,unzip:sr,updateUserMeta:Ar,wpCLI:yr,writeFile:tr,writeFiles:Dr,zipWpContent:Zr},Symbol.toStringTag,{value:"Module"})),dt=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory","bundled"];function ut(r){return r&&typeof r=="object"&&typeof r.resource=="string"&&dt.includes(r.resource)}class ke{get progress(){return this._progress}set progress(t){this._progress=t}setPlayground(t){this.playground=t}get isAsync(){return!1}static create(t,{semaphore:p,progress:c,corsProxy:u,streamBundledFile:i}){let e;switch(t.resource){case"vfs":e=new ct(t,c);break;case"literal":e=new mt(t,c);break;case"wordpress.org/themes":e=new vt(t,c);break;case"wordpress.org/plugins":e=new Pt(t,c);break;case"url":e=new ht(t,c,{corsProxy:u});break;case"git:directory":e=new gt(t,c,{corsProxy:u});break;case"literal:directory":e=new wt(t,c);break;case"bundled":if(!i)throw new Error("Filesystem is required for blueprint resources");e=new Ot(t,i,c);break;default:throw new Error(`Unknown resource type: ${t.resource}`)}return p&&(e=new kt(e,p)),new _t(e)}}class Gr extends ke{constructor(t){super(),this.resource=t}get progress(){return this.resource.progress}set progress(t){this.resource.progress=t}get name(){return this.resource.name}get isAsync(){return this.resource.isAsync}setPlayground(t){this.resource.setPlayground(t)}}class ct extends ke{constructor(t,p){super(),this.resource=t,this._progress=p}async resolve(){var p;const t=await this.playground.readFileAsBuffer(this.resource.path);return(p=this.progress)==null||p.set(100),new File([t],this.name)}get name(){return this.resource.path.split("/").pop()||""}}class mt extends ke{constructor(t,p){super(),this.resource=t,this._progress=p}async resolve(){var t;return(t=this.progress)==null||t.set(100),new File([this.resource.contents],this.resource.name)}get name(){return this.resource.name}}class br extends ke{constructor(t,p){super(),this._progress=t,this.corsProxy=p}async resolve(){var p,c;(p=this.progress)==null||p.setCaption(this.caption);const t=this.getURL();try{let u=await rt.fetchWithCorsProxy(t,void 0,this.corsProxy);if(!u.ok)throw new Error(`Could not download "${t}"`);if(u=await pr.cloneResponseMonitorProgress(u,((c=this.progress)==null?void 0:c.loadingListener)??yt),u.status!==200)throw new Error(`Could not download "${t}"`);return new File([await u.blob()],this.name)}catch(u){throw new Error(`Could not download "${t}".
|
|
348
460
|
Check if the URL is correct and the server is reachable.
|
|
349
461
|
If it is reachable, the server might be blocking the request.
|
|
350
462
|
Check the browser console and network tabs for more information.
|
|
@@ -368,14 +480,14 @@ function join_paths()
|
|
|
368
480
|
https://raw.githubusercontent.com/username/repository/branch/filename
|
|
369
481
|
|
|
370
482
|
Error:
|
|
371
|
-
${
|
|
483
|
+
${u}`)}}get caption(){return`Downloading ${this.name}`}get name(){try{return new URL(this.getURL(),"http://example.com").pathname.split("/").pop()}catch{return this.getURL()}}get isAsync(){return!0}}const yt=()=>{};class ht extends br{constructor(t,p,c){if(super(p,c==null?void 0:c.corsProxy),this.resource=t,this.options=c,this.resource.url.startsWith("https://github.com/")){const u=this.resource.url.match(/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/);u!=null&&u.groups&&(this.resource={...this.resource,url:`https://raw.githubusercontent.com/${u.groups.owner}/${u.groups.repo}/${u.groups.branch}/${u.groups.path}`})}}getURL(){return this.resource.url}get caption(){return this.resource.caption??super.caption}}class gt extends ke{constructor(t,p,c){super(),this.reference=t,this._progress=p,this.options=c}async resolve(){var d;const t=(d=this.options)!=null&&d.corsProxy?`${this.options.corsProxy}${this.reference.url}`:this.reference.url,p=await Oe.resolveCommitHash(t,{value:this.reference.ref,type:"infer"}),c=await Oe.listGitFiles(t,p),u=this.reference.path.replace(/^\/+/,""),i=Oe.listDescendantFiles(c,u);let e=await Oe.sparseCheckout(t,p,i);return e=bt(e,h=>h.substring(u.length).replace(/^\/+/,"")),{name:z.dirname(this.reference.path)||this.reference.url.replaceAll(/[^a-zA-Z0-9-.]/g,"-").replaceAll(/-+/g,"-"),files:e}}get name(){return this.reference.path.split("/").pop()}}function bt(r,t){return Object.fromEntries(Object.entries(r).map(([p,c])=>[t(p),c]))}class wt extends ke{constructor(t,p){super(),this.reference=t,this._progress=p}async resolve(){return this.reference}get name(){return this.reference.name}}class vt extends br{constructor(t,p){super(p),this.resource=t}get name(){return ir(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${Qr(this.resource.slug)}`}}class Pt extends br{constructor(t,p){super(p),this.resource=t}get name(){return ir(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${Qr(this.resource.slug)}`}}function Qr(r){return!r||r.endsWith(".zip")?r:r+".latest-stable.zip"}class _t extends Gr{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class kt extends Gr{constructor(t,p){super(t),this.semaphore=p}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}class Ot extends ke{constructor(t,p,c){if(!p)throw new Error(`You are trying to run a Blueprint that refers to a bundled file ("blueprint" resource type), but you did not provide the rest of the bundle. This Blueprint won't work as a standalone JSON file. You'll need to load the entire bundle, e.g. a blueprint.zip file. Alternatively, you may try loading it directly from a URL or a local directory and Playground will try (with your permission) to source the missing files from paths relative to the blueprint file.`);super(),this.resource=t,this.streamBundledFile=p,this._progress=c}async resolve(){var t,p,c;(t=this.progress)==null||t.set(0);try{const u=await this.streamBundledFile(this.resource.path),i=u.filesize;if(!i)return(p=this.progress)==null||p.set(100),u;const e=pr.cloneStreamMonitorProgress(u.stream(),i,d=>{var h;(h=this.progress)==null||h.set(d.detail.loaded/d.detail.total*100)});return new tt.StreamedFile(e,this.name,{filesize:i})}catch(u){throw(c=this.progress)==null||c.set(100),new Error(`Failed to read file from blueprint. This Blueprint refers to a resource of type "bundled" with path "${this.resource.path}" that was not available. Please ensure that the entire bundle, such as a blueprint.zip file, is loaded. If you are trying to load the Blueprint directly from a URL or a local directory, make sure that all the necessary files are accessible and located relative to the blueprint file.
|
|
372
484
|
|
|
373
|
-
Error details: ${c instanceof Error?c.message:String(c)}`,{cause:c})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0}}const jt={properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/SupportedPHPVersion"},{type:"string",const:"latest"}],description:"The preferred PHP version to use. If not specified, the latest supported version will be used"},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},Tt={enum:["8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"]},Et={additionalProperties:{type:["string","boolean","number"]}},Jr=Object.prototype.hasOwnProperty;function K(r,{instancePath:t="",parentData:p,parentDataProperty:m,rootData:c=r}={}){let i=null,e=0;const u=e;let g=!1;const S=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let G;if(r.resource===void 0&&(G="resource")||r.path===void 0&&(G="path")){const l={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};i===null?i=[l]:i.push(l),e++}else{const l=e;for(const A in r)if(!(A==="resource"||A==="path")){const I={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:A},message:"must NOT have additional properties"};i===null?i=[I]:i.push(I),e++;break}if(l===e){if(r.resource!==void 0){let A=r.resource;const I=e;if(typeof A!="string"){const v={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[v]:i.push(v),e++}if(A!=="vfs"){const v={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};i===null?i=[v]:i.push(v),e++}var j=I===e}else var j=!0;if(j)if(r.path!==void 0){const A=e;if(typeof r.path!="string"){const v={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[v]:i.push(v),e++}var j=A===e}else var j=!0}}}else{const G={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[G]:i.push(G),e++}var _=S===e;if(g=g||_,!g){const G=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let I;if(r.resource===void 0&&(I="resource")||r.name===void 0&&(I="name")||r.contents===void 0&&(I="contents")){const v={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:I},message:"must have required property '"+I+"'"};i===null?i=[v]:i.push(v),e++}else{const v=e;for(const h in r)if(!(h==="resource"||h==="name"||h==="contents")){const b={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"};i===null?i=[b]:i.push(b),e++;break}if(v===e){if(r.resource!==void 0){let h=r.resource;const b=e;if(typeof h!="string"){const q={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[q]:i.push(q),e++}if(h!=="literal"){const q={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};i===null?i=[q]:i.push(q),e++}var O=b===e}else var O=!0;if(O){if(r.name!==void 0){const h=e;if(typeof r.name!="string"){const q={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[q]:i.push(q),e++}var O=h===e}else var O=!0;if(O)if(r.contents!==void 0){let h=r.contents;const b=e,q=e;let w=!1;const d=e;if(typeof h!="string"){const $={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[$]:i.push($),e++}var E=d===e;if(w=w||E,!w){const $=e;if(e===$)if(h&&typeof h=="object"&&!Array.isArray(h)){let x;if(h.BYTES_PER_ELEMENT===void 0&&(x="BYTES_PER_ELEMENT")||h.buffer===void 0&&(x="buffer")||h.byteLength===void 0&&(x="byteLength")||h.byteOffset===void 0&&(x="byteOffset")||h.length===void 0&&(x="length")){const H={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:x},message:"must have required property '"+x+"'"};i===null?i=[H]:i.push(H),e++}else{const H=e;for(const D in h)if(!(D==="BYTES_PER_ELEMENT"||D==="buffer"||D==="byteLength"||D==="byteOffset"||D==="length")){let C=h[D];const ee=e;if(!(typeof C=="number"&&isFinite(C))){const R={instancePath:t+"/contents/"+D.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[R]:i.push(R),e++}var y=ee===e;if(!y)break}if(H===e){if(h.BYTES_PER_ELEMENT!==void 0){let D=h.BYTES_PER_ELEMENT;const C=e;if(!(typeof D=="number"&&isFinite(D))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ee]:i.push(ee),e++}var U=C===e}else var U=!0;if(U){if(h.buffer!==void 0){let D=h.buffer;const C=e;if(e===C)if(D&&typeof D=="object"&&!Array.isArray(D)){let R;if(D.byteLength===void 0&&(R="byteLength")){const z={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:R},message:"must have required property '"+R+"'"};i===null?i=[z]:i.push(z),e++}else{const z=e;for(const J in D)if(J!=="byteLength"){const M={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:J},message:"must NOT have additional properties"};i===null?i=[M]:i.push(M),e++;break}if(z===e&&D.byteLength!==void 0){let J=D.byteLength;if(!(typeof J=="number"&&isFinite(J))){const M={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[M]:i.push(M),e++}}}}else{const R={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[R]:i.push(R),e++}var U=C===e}else var U=!0;if(U){if(h.byteLength!==void 0){let D=h.byteLength;const C=e;if(!(typeof D=="number"&&isFinite(D))){const R={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[R]:i.push(R),e++}var U=C===e}else var U=!0;if(U){if(h.byteOffset!==void 0){let D=h.byteOffset;const C=e;if(!(typeof D=="number"&&isFinite(D))){const R={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[R]:i.push(R),e++}var U=C===e}else var U=!0;if(U)if(h.length!==void 0){let D=h.length;const C=e;if(!(typeof D=="number"&&isFinite(D))){const R={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[R]:i.push(R),e++}var U=C===e}else var U=!0}}}}}}else{const x={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[x]:i.push(x),e++}var E=$===e;w=w||E}if(w)e=q,i!==null&&(q?i.length=q:i=null);else{const $={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};i===null?i=[$]:i.push($),e++}var O=b===e}else var O=!0}}}}else{const I={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[I]:i.push(I),e++}var _=G===e;if(g=g||_,!g){const I=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let b;if(r.resource===void 0&&(b="resource")||r.slug===void 0&&(b="slug")){const q={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[q]:i.push(q),e++}else{const q=e;for(const w in r)if(!(w==="resource"||w==="slug")){const d={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties"};i===null?i=[d]:i.push(d),e++;break}if(q===e){if(r.resource!==void 0){let w=r.resource;const d=e;if(typeof w!="string"){const W={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[W]:i.push(W),e++}if(w!=="wordpress.org/themes"){const W={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};i===null?i=[W]:i.push(W),e++}var B=d===e}else var B=!0;if(B)if(r.slug!==void 0){const w=e;if(typeof r.slug!="string"){const W={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[W]:i.push(W),e++}var B=w===e}else var B=!0}}}else{const b={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[b]:i.push(b),e++}var _=I===e;if(g=g||_,!g){const b=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let d;if(r.resource===void 0&&(d="resource")||r.slug===void 0&&(d="slug")){const W={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:d},message:"must have required property '"+d+"'"};i===null?i=[W]:i.push(W),e++}else{const W=e;for(const $ in r)if(!($==="resource"||$==="slug")){const N={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$},message:"must NOT have additional properties"};i===null?i=[N]:i.push(N),e++;break}if(W===e){if(r.resource!==void 0){let $=r.resource;const N=e;if(typeof $!="string"){const x={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[x]:i.push(x),e++}if($!=="wordpress.org/plugins"){const x={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};i===null?i=[x]:i.push(x),e++}var Q=N===e}else var Q=!0;if(Q)if(r.slug!==void 0){const $=e;if(typeof r.slug!="string"){const x={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[x]:i.push(x),e++}var Q=$===e}else var Q=!0}}}else{const d={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[d]:i.push(d),e++}var _=b===e;if(g=g||_,!g){const d=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let N;if(r.resource===void 0&&(N="resource")||r.url===void 0&&(N="url")){const x={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"};i===null?i=[x]:i.push(x),e++}else{const x=e;for(const H in r)if(!(H==="resource"||H==="url"||H==="caption")){const D={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:H},message:"must NOT have additional properties"};i===null?i=[D]:i.push(D),e++;break}if(x===e){if(r.resource!==void 0){let H=r.resource;const D=e;if(typeof H!="string"){const C={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[C]:i.push(C),e++}if(H!=="url"){const C={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};i===null?i=[C]:i.push(C),e++}var P=D===e}else var P=!0;if(P){if(r.url!==void 0){const H=e;if(typeof r.url!="string"){const C={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[C]:i.push(C),e++}var P=H===e}else var P=!0;if(P)if(r.caption!==void 0){const H=e;if(typeof r.caption!="string"){const C={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[C]:i.push(C),e++}var P=H===e}else var P=!0}}}}else{const N={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[N]:i.push(N),e++}var _=d===e;if(g=g||_,!g){const N=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let D;if(r.resource===void 0&&(D="resource")||r.path===void 0&&(D="path")){const C={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};i===null?i=[C]:i.push(C),e++}else{const C=e;for(const ee in r)if(!(ee==="resource"||ee==="path")){const R={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};i===null?i=[R]:i.push(R),e++;break}if(C===e){if(r.resource!==void 0){let ee=r.resource;const R=e;if(typeof ee!="string"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[z]:i.push(z),e++}if(ee!=="bundled"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};i===null?i=[z]:i.push(z),e++}var Y=R===e}else var Y=!0;if(Y)if(r.path!==void 0){const ee=e;if(typeof r.path!="string"){const z={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[z]:i.push(z),e++}var Y=ee===e}else var Y=!0}}}else{const D={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[D]:i.push(D),e++}var _=N===e;g=g||_}}}}}if(g)e=u,i!==null&&(u?i.length=u:i=null);else{const G={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[G]:i.push(G),e++,K.errors=i,!1}return K.errors=i,e===0}const Ke={oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
|
|
485
|
+
Error details: ${u instanceof Error?u.message:String(u)}`,{cause:u})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0}}const jt={properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/SupportedPHPVersion"},{type:"string",const:"latest"}],description:"The preferred PHP version to use. If not specified, the latest supported version will be used"},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{intl:{type:"boolean"},networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},Tt={enum:["8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"]},Et={additionalProperties:{type:["string","boolean","number"]}},Jr=Object.prototype.hasOwnProperty;function J(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:u=r}={}){let i=null,e=0;const d=e;let h=!1;const D=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let V;if(r.resource===void 0&&(V="resource")||r.path===void 0&&(V="path")){const re={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};i===null?i=[re]:i.push(re),e++}else{const re=e;for(const l in r)if(!(l==="resource"||l==="path")){const T={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};i===null?i=[T]:i.push(T),e++;break}if(re===e){if(r.resource!==void 0){let l=r.resource;const T=e;if(typeof l!="string"){const $={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[$]:i.push($),e++}if(l!=="vfs"){const $={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};i===null?i=[$]:i.push($),e++}var j=T===e}else var j=!0;if(j)if(r.path!==void 0){const l=e;if(typeof r.path!="string"){const $={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[$]:i.push($),e++}var j=l===e}else var j=!0}}}else{const V={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[V]:i.push(V),e++}var _=D===e;if(h=h||_,!h){const V=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let T;if(r.resource===void 0&&(T="resource")||r.name===void 0&&(T="name")||r.contents===void 0&&(T="contents")){const $={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};i===null?i=[$]:i.push($),e++}else{const $=e;for(const v in r)if(!(v==="resource"||v==="name"||v==="contents")){const w={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:v},message:"must NOT have additional properties"};i===null?i=[w]:i.push(w),e++;break}if($===e){if(r.resource!==void 0){let v=r.resource;const w=e;if(typeof v!="string"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[b]:i.push(b),e++}if(v!=="literal"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};i===null?i=[b]:i.push(b),e++}var k=w===e}else var k=!0;if(k){if(r.name!==void 0){const v=e;if(typeof r.name!="string"){const b={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[b]:i.push(b),e++}var k=v===e}else var k=!0;if(k)if(r.contents!==void 0){let v=r.contents;const w=e,b=e;let g=!1;const y=e;if(typeof v!="string"){const L={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[L]:i.push(L),e++}var R=y===e;if(g=g||R,!g){const L=e;if(e===L)if(v&&typeof v=="object"&&!Array.isArray(v)){let F;if(v.BYTES_PER_ELEMENT===void 0&&(F="BYTES_PER_ELEMENT")||v.buffer===void 0&&(F="buffer")||v.byteLength===void 0&&(F="byteLength")||v.byteOffset===void 0&&(F="byteOffset")||v.length===void 0&&(F="length")){const U={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:F},message:"must have required property '"+F+"'"};i===null?i=[U]:i.push(U),e++}else{const U=e;for(const C in v)if(!(C==="BYTES_PER_ELEMENT"||C==="buffer"||C==="byteLength"||C==="byteOffset"||C==="length")){let I=v[C];const ee=e;if(!(typeof I=="number"&&isFinite(I))){const A={instancePath:t+"/contents/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var m=ee===e;if(!m)break}if(U===e){if(v.BYTES_PER_ELEMENT!==void 0){let C=v.BYTES_PER_ELEMENT;const I=e;if(!(typeof C=="number"&&isFinite(C))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ee]:i.push(ee),e++}var W=I===e}else var W=!0;if(W){if(v.buffer!==void 0){let C=v.buffer;const I=e;if(e===I)if(C&&typeof C=="object"&&!Array.isArray(C)){let A;if(C.byteLength===void 0&&(A="byteLength")){const Y={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};i===null?i=[Y]:i.push(Y),e++}else{const Y=e;for(const B in C)if(B!=="byteLength"){const H={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};i===null?i=[H]:i.push(H),e++;break}if(Y===e&&C.byteLength!==void 0){let B=C.byteLength;if(!(typeof B=="number"&&isFinite(B))){const H={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[H]:i.push(H),e++}}}}else{const A={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[A]:i.push(A),e++}var W=I===e}else var W=!0;if(W){if(v.byteLength!==void 0){let C=v.byteLength;const I=e;if(!(typeof C=="number"&&isFinite(C))){const A={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var W=I===e}else var W=!0;if(W){if(v.byteOffset!==void 0){let C=v.byteOffset;const I=e;if(!(typeof C=="number"&&isFinite(C))){const A={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var W=I===e}else var W=!0;if(W)if(v.length!==void 0){let C=v.length;const I=e;if(!(typeof C=="number"&&isFinite(C))){const A={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var W=I===e}else var W=!0}}}}}}else{const F={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[F]:i.push(F),e++}var R=L===e;g=g||R}if(g)e=b,i!==null&&(b?i.length=b:i=null);else{const L={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};i===null?i=[L]:i.push(L),e++}var k=w===e}else var k=!0}}}}else{const T={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[T]:i.push(T),e++}var _=V===e;if(h=h||_,!h){const T=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let w;if(r.resource===void 0&&(w="resource")||r.slug===void 0&&(w="slug")){const b={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};i===null?i=[b]:i.push(b),e++}else{const b=e;for(const g in r)if(!(g==="resource"||g==="slug")){const y={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties"};i===null?i=[y]:i.push(y),e++;break}if(b===e){if(r.resource!==void 0){let g=r.resource;const y=e;if(typeof g!="string"){const E={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[E]:i.push(E),e++}if(g!=="wordpress.org/themes"){const E={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};i===null?i=[E]:i.push(E),e++}var M=y===e}else var M=!0;if(M)if(r.slug!==void 0){const g=e;if(typeof r.slug!="string"){const E={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[E]:i.push(E),e++}var M=g===e}else var M=!0}}}else{const w={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var _=T===e;if(h=h||_,!h){const w=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let y;if(r.resource===void 0&&(y="resource")||r.slug===void 0&&(y="slug")){const E={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:y},message:"must have required property '"+y+"'"};i===null?i=[E]:i.push(E),e++}else{const E=e;for(const L in r)if(!(L==="resource"||L==="slug")){const x={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:L},message:"must NOT have additional properties"};i===null?i=[x]:i.push(x),e++;break}if(E===e){if(r.resource!==void 0){let L=r.resource;const x=e;if(typeof L!="string"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),e++}if(L!=="wordpress.org/plugins"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};i===null?i=[F]:i.push(F),e++}var G=x===e}else var G=!0;if(G)if(r.slug!==void 0){const L=e;if(typeof r.slug!="string"){const F={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),e++}var G=L===e}else var G=!0}}}else{const y={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[y]:i.push(y),e++}var _=w===e;if(h=h||_,!h){const y=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let x;if(r.resource===void 0&&(x="resource")||r.url===void 0&&(x="url")){const F={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:x},message:"must have required property '"+x+"'"};i===null?i=[F]:i.push(F),e++}else{const F=e;for(const U in r)if(!(U==="resource"||U==="url"||U==="caption")){const C={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};i===null?i=[C]:i.push(C),e++;break}if(F===e){if(r.resource!==void 0){let U=r.resource;const C=e;if(typeof U!="string"){const I={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[I]:i.push(I),e++}if(U!=="url"){const I={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};i===null?i=[I]:i.push(I),e++}var P=C===e}else var P=!0;if(P){if(r.url!==void 0){const U=e;if(typeof r.url!="string"){const I={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[I]:i.push(I),e++}var P=U===e}else var P=!0;if(P)if(r.caption!==void 0){const U=e;if(typeof r.caption!="string"){const I={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[I]:i.push(I),e++}var P=U===e}else var P=!0}}}}else{const x={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[x]:i.push(x),e++}var _=y===e;if(h=h||_,!h){const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let C;if(r.resource===void 0&&(C="resource")||r.path===void 0&&(C="path")){const I={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};i===null?i=[I]:i.push(I),e++}else{const I=e;for(const ee in r)if(!(ee==="resource"||ee==="path")){const A={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};i===null?i=[A]:i.push(A),e++;break}if(I===e){if(r.resource!==void 0){let ee=r.resource;const A=e;if(typeof ee!="string"){const Y={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Y]:i.push(Y),e++}if(ee!=="bundled"){const Y={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};i===null?i=[Y]:i.push(Y),e++}var K=A===e}else var K=!0;if(K)if(r.path!==void 0){const ee=e;if(typeof r.path!="string"){const Y={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Y]:i.push(Y),e++}var K=ee===e}else var K=!0}}}else{const C={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[C]:i.push(C),e++}var _=x===e;h=h||_}}}}}if(h)e=d,i!==null&&(d?i.length=d:i=null);else{const V={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[V]:i.push(V),e++,J.errors=i,!1}return J.errors=i,e===0}const Ke={oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
|
|
374
486
|
|
|
375
487
|
- rewrite-wp-config: Default. Rewrites the wp-config.php file to explicitly call define() with the requested name and value. This method alters the file on the disk, but it doesn't conflict with existing define() calls in wp-config.php.
|
|
376
488
|
|
|
377
489
|
- define-before-run: Defines the constant before running the requested script. It doesn't alter any files on the disk, but constants defined this way may conflict with existing define() calls in wp-config.php.`},virtualize:{type:"boolean",deprecated:`This option is noop and will be removed in a future version.
|
|
378
490
|
This option is only kept in here to avoid breaking Blueprint schema validation
|
|
379
491
|
for existing apps using this option.`}},required:["consts","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineSiteUrl"},siteUrl:{type:"string",description:"The URL"}},required:["siteUrl","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"enableMultisite"},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWxr"},file:{$ref:"#/definitions/FileReference",description:"The file to import"},importer:{type:"string",enum:["data-liberation","default"],description:"The importer to use. Possible values:\n\n- `default`: The importer from https://github.com/humanmade/WordPress-Importer\n- `data-liberation`: The experimental Data Liberation WXR importer developed at https://github.com/WordPress/wordpress-playground/issues/1894\n\nThis option is deprecated. The syntax will not be removed, but once the Data Liberation importer matures, it will become the only supported importer and the `importer` option will be ignored.",deprecated:!0}},required:["file","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importThemeStarterContent",description:"The step identifier."},themeSlug:{type:"string",description:"The name of the theme to import content from."}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWordPressFiles"},wordPressFilesZip:{$ref:"#/definitions/FileReference",description:"The zip file containing the top-level WordPress files and directories."},pathInZip:{type:"string",description:"The path inside the zip file where the WordPress files are."}},required:["step","wordPressFilesZip"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installPlugin",description:"The step identifier."},pluginData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The plugin files to install. It can be a plugin zip file, a single PHP file, or a directory containing all the plugin files at its root."},pluginZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'pluginData' instead."},options:{$ref:"#/definitions/InstallPluginOptions",description:"Optional installation options."}},required:["pluginData","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installTheme",description:"The step identifier."},themeData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The theme files to install. It can be either a theme zip file, or a directory containing all the theme files at its root."},themeZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'themeData' instead."},options:{$ref:"#/definitions/InstallThemeOptions",description:"Optional installation options."}},required:["step","themeData"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"login"},username:{type:"string",description:"The user to log in as. Defaults to 'admin'."},password:{type:"string",deprecated:`The password field is deprecated and will be removed in a future version.
|
|
380
|
-
Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{type:"string",description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},qt={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},nr={validate:Le};function Le(r,{instancePath:t="",parentData:p,parentDataProperty:m,rootData:c=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const S in r){let L=r[S];const j=e,_=e;let O=!1;const E=e;nr.validate(L,{instancePath:t+"/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:S,rootData:c})||(i=i===null?nr.validate.errors:i.concat(nr.validate.errors),e=i.length);var u=E===e;if(O=O||u,!O){const y=e;if(!(L&&typeof L=="object"&&!Array.isArray(L))&&typeof L!="string"){const B={instancePath:t+"/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:qt.additionalProperties.anyOf[1].type},message:"must be object,string"};i===null?i=[B]:i.push(B),e++}var u=y===e;O=O||u}if(O)e=_,i!==null&&(_?i.length=_:i=null);else{const y={instancePath:t+"/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[y]:i.push(y),e++,Le.errors=i,!1}var g=j===e;if(!g)break}else return Le.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Le.errors=i,e===0}function _e(r,{instancePath:t="",parentData:p,parentDataProperty:m,rootData:c=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let g;if(r.files===void 0&&(g="files")||r.name===void 0&&(g="name")||r.resource===void 0&&(g="resource"))return _e.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"}],!1;{const S=e;for(const L in r)if(!(L==="resource"||L==="files"||L==="name"))return _e.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:L},message:"must NOT have additional properties"}],!1;if(S===e){if(r.resource!==void 0){let L=r.resource;const j=e;if(typeof L!="string")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(L!=="literal:directory")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var u=j===e}else var u=!0;if(u){if(r.files!==void 0){const L=e;Le(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:c})||(i=i===null?Le.errors:i.concat(Le.errors),e=i.length);var u=L===e}else var u=!0;if(u)if(r.name!==void 0){const L=e;if(typeof r.name!="string")return _e.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=L===e}else var u=!0}}}}else return _e.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _e.errors=i,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:m,rootData:c=r}={}){let i=null,e=0;const u=e;let g=!1;const S=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let O;if(r.resource===void 0&&(O="resource")||r.url===void 0&&(O="url")||r.ref===void 0&&(O="ref")||r.path===void 0&&(O="path")){const E={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:O},message:"must have required property '"+O+"'"};i===null?i=[E]:i.push(E),e++}else{const E=e;for(const y in r)if(!(y==="resource"||y==="url"||y==="ref"||y==="path")){const U={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};i===null?i=[U]:i.push(U),e++;break}if(E===e){if(r.resource!==void 0){let y=r.resource;const U=e;if(typeof y!="string"){const B={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[B]:i.push(B),e++}if(y!=="git:directory"){const B={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};i===null?i=[B]:i.push(B),e++}var j=U===e}else var j=!0;if(j){if(r.url!==void 0){const y=e;if(typeof r.url!="string"){const B={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[B]:i.push(B),e++}var j=y===e}else var j=!0;if(j){if(r.ref!==void 0){const y=e;if(typeof r.ref!="string"){const B={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[B]:i.push(B),e++}var j=y===e}else var j=!0;if(j)if(r.path!==void 0){const y=e;if(typeof r.path!="string"){const B={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[B]:i.push(B),e++}var j=y===e}else var j=!0}}}}}else{const O={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[O]:i.push(O),e++}var _=S===e;if(g=g||_,!g){const O=e;_e(r,{instancePath:t,parentData:p,parentDataProperty:m,rootData:c})||(i=i===null?_e.errors:i.concat(_e.errors),e=i.length);var _=O===e;g=g||_}if(g)e=u,i!==null&&(u?i.length=u:i=null);else{const O={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[O]:i.push(O),e++,ye.errors=i,!1}return ye.errors=i,e===0}const Xr={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function de(r,{instancePath:t="",parentData:p,parentDataProperty:m,rootData:c=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let B;if(r.url===void 0&&(B="url"))return de.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"}],!1;{const Q=e;for(const P in r)if(!(P==="method"||P==="url"||P==="headers"||P==="body"))return de.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(Q===e){if(r.method!==void 0){let P=r.method;const Y=e;if(typeof P!="string")return de.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(P==="GET"||P==="POST"||P==="HEAD"||P==="OPTIONS"||P==="PATCH"||P==="PUT"||P==="DELETE"))return de.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var u=Y===e}else var u=!0;if(u){if(r.url!==void 0){const P=e;if(typeof r.url!="string")return de.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=P===e}else var u=!0;if(u){if(r.headers!==void 0){let P=r.headers;const Y=e;if(e===e)if(P&&typeof P=="object"&&!Array.isArray(P))for(const A in P){const I=e;if(typeof P[A]!="string")return de.errors=[{instancePath:t+"/headers/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=I===e;if(!g)break}else return de.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=Y===e}else var u=!0;if(u)if(r.body!==void 0){let P=r.body;const Y=e,G=e;let l=!1;const A=e;if(typeof P!="string"){const v={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[v]:i.push(v),e++}var S=A===e;if(l=l||S,!l){const v=e;if(e===v)if(P&&typeof P=="object"&&!Array.isArray(P)){let b;if(P.BYTES_PER_ELEMENT===void 0&&(b="BYTES_PER_ELEMENT")||P.buffer===void 0&&(b="buffer")||P.byteLength===void 0&&(b="byteLength")||P.byteOffset===void 0&&(b="byteOffset")||P.length===void 0&&(b="length")){const q={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[q]:i.push(q),e++}else{const q=e;for(const w in P)if(!(w==="BYTES_PER_ELEMENT"||w==="buffer"||w==="byteLength"||w==="byteOffset"||w==="length")){let d=P[w];const W=e;if(!(typeof d=="number"&&isFinite(d))){const $={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[$]:i.push($),e++}var L=W===e;if(!L)break}if(q===e){if(P.BYTES_PER_ELEMENT!==void 0){let w=P.BYTES_PER_ELEMENT;const d=e;if(!(typeof w=="number"&&isFinite(w))){const W={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[W]:i.push(W),e++}var j=d===e}else var j=!0;if(j){if(P.buffer!==void 0){let w=P.buffer;const d=e;if(e===d)if(w&&typeof w=="object"&&!Array.isArray(w)){let $;if(w.byteLength===void 0&&($="byteLength")){const N={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:$},message:"must have required property '"+$+"'"};i===null?i=[N]:i.push(N),e++}else{const N=e;for(const x in w)if(x!=="byteLength"){const H={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"};i===null?i=[H]:i.push(H),e++;break}if(N===e&&w.byteLength!==void 0){let x=w.byteLength;if(!(typeof x=="number"&&isFinite(x))){const H={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[H]:i.push(H),e++}}}}else{const $={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[$]:i.push($),e++}var j=d===e}else var j=!0;if(j){if(P.byteLength!==void 0){let w=P.byteLength;const d=e;if(!(typeof w=="number"&&isFinite(w))){const $={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[$]:i.push($),e++}var j=d===e}else var j=!0;if(j){if(P.byteOffset!==void 0){let w=P.byteOffset;const d=e;if(!(typeof w=="number"&&isFinite(w))){const $={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[$]:i.push($),e++}var j=d===e}else var j=!0;if(j)if(P.length!==void 0){let w=P.length;const d=e;if(!(typeof w=="number"&&isFinite(w))){const $={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[$]:i.push($),e++}var j=d===e}else var j=!0}}}}}}else{const b={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[b]:i.push(b),e++}var S=v===e;if(l=l||S,!l){const b=e;if(e===b)if(P&&typeof P=="object"&&!Array.isArray(P))for(const w in P){let d=P[w];const W=e,$=e;let N=!1;const x=e;if(typeof d!="string"){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[H]:i.push(H),e++}var _=x===e;if(N=N||_,!N){const H=e;if(e===H)if(d&&typeof d=="object"&&!Array.isArray(d)){let C;if(d.BYTES_PER_ELEMENT===void 0&&(C="BYTES_PER_ELEMENT")||d.buffer===void 0&&(C="buffer")||d.byteLength===void 0&&(C="byteLength")||d.byteOffset===void 0&&(C="byteOffset")||d.length===void 0&&(C="length")){const ee={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};i===null?i=[ee]:i.push(ee),e++}else{const ee=e;for(const R in d)if(!(R==="BYTES_PER_ELEMENT"||R==="buffer"||R==="byteLength"||R==="byteOffset"||R==="length")){let z=d[R];const J=e;if(!(typeof z=="number"&&isFinite(z))){const M={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[M]:i.push(M),e++}var O=J===e;if(!O)break}if(ee===e){if(d.BYTES_PER_ELEMENT!==void 0){let R=d.BYTES_PER_ELEMENT;const z=e;if(!(typeof R=="number"&&isFinite(R))){const J={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[J]:i.push(J),e++}var E=z===e}else var E=!0;if(E){if(d.buffer!==void 0){let R=d.buffer;const z=e;if(e===z)if(R&&typeof R=="object"&&!Array.isArray(R)){let M;if(R.byteLength===void 0&&(M="byteLength")){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};i===null?i=[oe]:i.push(oe),e++}else{const oe=e;for(const pe in R)if(pe!=="byteLength"){const he={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:pe},message:"must NOT have additional properties"};i===null?i=[he]:i.push(he),e++;break}if(oe===e&&R.byteLength!==void 0){let pe=R.byteLength;if(!(typeof pe=="number"&&isFinite(pe))){const he={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[he]:i.push(he),e++}}}}else{const M={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[M]:i.push(M),e++}var E=z===e}else var E=!0;if(E){if(d.byteLength!==void 0){let R=d.byteLength;const z=e;if(!(typeof R=="number"&&isFinite(R))){const M={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[M]:i.push(M),e++}var E=z===e}else var E=!0;if(E){if(d.byteOffset!==void 0){let R=d.byteOffset;const z=e;if(!(typeof R=="number"&&isFinite(R))){const M={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[M]:i.push(M),e++}var E=z===e}else var E=!0;if(E)if(d.length!==void 0){let R=d.length;const z=e;if(!(typeof R=="number"&&isFinite(R))){const M={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[M]:i.push(M),e++}var E=z===e}else var E=!0}}}}}}else{const C={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[C]:i.push(C),e++}var _=H===e;if(N=N||_,!N){const C=e;if(e===C)if(d&&typeof d=="object"&&!Array.isArray(d)){let R;if(d.lastModified===void 0&&(R="lastModified")||d.name===void 0&&(R="name")||d.size===void 0&&(R="size")||d.type===void 0&&(R="type")||d.webkitRelativePath===void 0&&(R="webkitRelativePath")){const z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:R},message:"must have required property '"+R+"'"};i===null?i=[z]:i.push(z),e++}else{const z=e;for(const J in d)if(!(J==="size"||J==="type"||J==="lastModified"||J==="name"||J==="webkitRelativePath")){const M={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:J},message:"must NOT have additional properties"};i===null?i=[M]:i.push(M),e++;break}if(z===e){if(d.size!==void 0){let J=d.size;const M=e;if(!(typeof J=="number"&&isFinite(J))){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[oe]:i.push(oe),e++}var y=M===e}else var y=!0;if(y){if(d.type!==void 0){const J=e;if(typeof d.type!="string"){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var y=J===e}else var y=!0;if(y){if(d.lastModified!==void 0){let J=d.lastModified;const M=e;if(!(typeof J=="number"&&isFinite(J))){const pe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[pe]:i.push(pe),e++}var y=M===e}else var y=!0;if(y){if(d.name!==void 0){const J=e;if(typeof d.name!="string"){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var y=J===e}else var y=!0;if(y)if(d.webkitRelativePath!==void 0){const J=e;if(typeof d.webkitRelativePath!="string"){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var y=J===e}else var y=!0}}}}}}else{const R={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[R]:i.push(R),e++}var _=C===e;N=N||_}}if(N)e=$,i!==null&&($?i.length=$:i=null);else{const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};i===null?i=[H]:i.push(H),e++}var U=W===e;if(!U)break}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var S=b===e;l=l||S}}if(l)e=G,i!==null&&(G?i.length=G:i=null);else{const v={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[v]:i.push(v),e++,de.errors=i,!1}var u=Y===e}else var u=!0}}}}}else return de.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return de.errors=i,e===0}const $t={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function ae(r,{instancePath:t="",parentData:p,parentDataProperty:m,rootData:c=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const E=e;for(const y in r)if(!Jr.call($t.properties,y))return ae.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(E===e){if(r.relativeUri!==void 0){const y=e;if(typeof r.relativeUri!="string")return ae.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=y===e}else var u=!0;if(u){if(r.scriptPath!==void 0){const y=e;if(typeof r.scriptPath!="string")return ae.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=y===e}else var u=!0;if(u){if(r.protocol!==void 0){const y=e;if(typeof r.protocol!="string")return ae.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=y===e}else var u=!0;if(u){if(r.method!==void 0){let y=r.method;const U=e;if(typeof y!="string")return ae.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="GET"||y==="POST"||y==="HEAD"||y==="OPTIONS"||y==="PATCH"||y==="PUT"||y==="DELETE"))return ae.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var u=U===e}else var u=!0;if(u){if(r.headers!==void 0){let y=r.headers;const U=e;if(e===e)if(y&&typeof y=="object"&&!Array.isArray(y))for(const P in y){const Y=e;if(typeof y[P]!="string")return ae.errors=[{instancePath:t+"/headers/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=Y===e;if(!g)break}else return ae.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=U===e}else var u=!0;if(u){if(r.body!==void 0){let y=r.body;const U=e,B=e;let Q=!1;const P=e;if(typeof y!="string"){const G={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}var S=P===e;if(Q=Q||S,!Q){const G=e;if(e===G)if(y&&typeof y=="object"&&!Array.isArray(y)){let A;if(y.BYTES_PER_ELEMENT===void 0&&(A="BYTES_PER_ELEMENT")||y.buffer===void 0&&(A="buffer")||y.byteLength===void 0&&(A="byteLength")||y.byteOffset===void 0&&(A="byteOffset")||y.length===void 0&&(A="length")){const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};i===null?i=[I]:i.push(I),e++}else{const I=e;for(const v in y)if(!(v==="BYTES_PER_ELEMENT"||v==="buffer"||v==="byteLength"||v==="byteOffset"||v==="length")){let h=y[v];const b=e;if(!(typeof h=="number"&&isFinite(h))){const q={instancePath:t+"/body/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[q]:i.push(q),e++}var L=b===e;if(!L)break}if(I===e){if(y.BYTES_PER_ELEMENT!==void 0){let v=y.BYTES_PER_ELEMENT;const h=e;if(!(typeof v=="number"&&isFinite(v))){const b={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[b]:i.push(b),e++}var j=h===e}else var j=!0;if(j){if(y.buffer!==void 0){let v=y.buffer;const h=e;if(e===h)if(v&&typeof v=="object"&&!Array.isArray(v)){let q;if(v.byteLength===void 0&&(q="byteLength")){const w={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"};i===null?i=[w]:i.push(w),e++}else{const w=e;for(const d in v)if(d!=="byteLength"){const W={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};i===null?i=[W]:i.push(W),e++;break}if(w===e&&v.byteLength!==void 0){let d=v.byteLength;if(!(typeof d=="number"&&isFinite(d))){const W={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[W]:i.push(W),e++}}}}else{const q={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[q]:i.push(q),e++}var j=h===e}else var j=!0;if(j){if(y.byteLength!==void 0){let v=y.byteLength;const h=e;if(!(typeof v=="number"&&isFinite(v))){const q={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[q]:i.push(q),e++}var j=h===e}else var j=!0;if(j){if(y.byteOffset!==void 0){let v=y.byteOffset;const h=e;if(!(typeof v=="number"&&isFinite(v))){const q={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[q]:i.push(q),e++}var j=h===e}else var j=!0;if(j)if(y.length!==void 0){let v=y.length;const h=e;if(!(typeof v=="number"&&isFinite(v))){const q={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[q]:i.push(q),e++}var j=h===e}else var j=!0}}}}}}else{const A={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[A]:i.push(A),e++}var S=G===e;Q=Q||S}if(Q)e=B,i!==null&&(B?i.length=B:i=null);else{const G={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[G]:i.push(G),e++,ae.errors=i,!1}var u=U===e}else var u=!0;if(u){if(r.env!==void 0){let y=r.env;const U=e;if(e===U)if(y&&typeof y=="object"&&!Array.isArray(y))for(const Q in y){const P=e;if(typeof y[Q]!="string")return ae.errors=[{instancePath:t+"/env/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=P===e;if(!_)break}else return ae.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=U===e}else var u=!0;if(u){if(r.$_SERVER!==void 0){let y=r.$_SERVER;const U=e;if(e===U)if(y&&typeof y=="object"&&!Array.isArray(y))for(const Q in y){const P=e;if(typeof y[Q]!="string")return ae.errors=[{instancePath:t+"/$_SERVER/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=P===e;if(!O)break}else return ae.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=U===e}else var u=!0;if(u)if(r.code!==void 0){const y=e;if(typeof r.code!="string")return ae.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=y===e}else var u=!0}}}}}}}}}else return ae.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ae.errors=i,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:m,rootData:c=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let ar;if(r.step===void 0&&(ar="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:ar},message:"must have required property '"+ar+"'"}],!1;{const X=r.step;if(typeof X=="string")if(X==="activatePlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.pluginPath===void 0&&(f="pluginPath")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="pluginPath"||s==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=T===e}else var u=!0;if(u)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=a===e}else var u=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var g=n===e}else var g=!0;if(g){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activatePlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var g=n===e}else var g=!0;if(g){if(r.pluginPath!==void 0){const s=e;if(typeof r.pluginPath!="string")return o.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=s===e}else var g=!0;if(g)if(r.pluginName!==void 0){const s=e;if(typeof r.pluginName!="string")return o.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=s===e}else var g=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="activateTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.themeFolderName===void 0&&(f="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var S=T===e}else var S=!0;if(S)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var S=a===e}else var S=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=n===e}else var L=!0;if(L){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activateTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var L=n===e}else var L=!0;if(L)if(r.themeFolderName!==void 0){const s=e;if(typeof r.themeFolderName!="string")return o.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=s===e}else var L=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="cp"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.fromPath===void 0&&(f="fromPath")||r.step===void 0&&(f="step")||r.toPath===void 0&&(f="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var j=T===e}else var j=!0;if(j)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=a===e}else var j=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=n===e}else var _=!0;if(_){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="cp")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var _=n===e}else var _=!0;if(_){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=s===e}else var _=!0;if(_)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=s===e}else var _=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="defineWpConfigConsts"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.consts===void 0&&(f="consts")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="consts"||s==="method"||s==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var O=T===e}else var O=!0;if(O)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=a===e}else var O=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var E=n===e}else var E=!0;if(E){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineWpConfigConsts")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var E=n===e}else var E=!0;if(E){if(r.consts!==void 0){let s=r.consts;const n=e;if(e===n&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var E=n===e}else var E=!0;if(E){if(r.method!==void 0){let s=r.method;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="rewrite-wp-config"||s==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var E=n===e}else var E=!0;if(E)if(r.virtualize!==void 0){const s=e;if(typeof r.virtualize!="boolean")return o.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var E=s===e}else var E=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="defineSiteUrl"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.siteUrl===void 0&&(f="siteUrl")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=T===e}else var y=!0;if(y)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=a===e}else var y=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var U=n===e}else var U=!0;if(U){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineSiteUrl")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var U=n===e}else var U=!0;if(U)if(r.siteUrl!==void 0){const s=e;if(typeof r.siteUrl!="string")return o.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=s===e}else var U=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="enableMultisite"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var B=T===e}else var B=!0;if(B)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var B=a===e}else var B=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Q=n===e}else var Q=!0;if(Q){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="enableMultisite")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var Q=n===e}else var Q=!0;if(Q)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=s===e}else var Q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="importWxr"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.file===void 0&&(f="file")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="file"||s==="importer"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var P=T===e}else var P=!0;if(P)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=a===e}else var P=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Y=n===e}else var Y=!0;if(Y){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWxr")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var Y=n===e}else var Y=!0;if(Y){if(r.file!==void 0){const s=e;K(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var Y=s===e}else var Y=!0;if(Y)if(r.importer!==void 0){let s=r.importer;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="data-liberation"||s==="default"))return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var Y=n===e}else var Y=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="importThemeStarterContent"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var G=T===e}else var G=!0;if(G)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=a===e}else var G=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=n===e}else var l=!0;if(l){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importThemeStarterContent")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var l=n===e}else var l=!0;if(l)if(r.themeSlug!==void 0){const s=e;if(typeof r.themeSlug!="string")return o.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=s===e}else var l=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="importWordPressFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.wordPressFilesZip===void 0&&(f="wordPressFilesZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wordPressFilesZip"||s==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var A=T===e}else var A=!0;if(A)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=a===e}else var A=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var I=n===e}else var I=!0;if(I){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWordPressFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var I=n===e}else var I=!0;if(I){if(r.wordPressFilesZip!==void 0){const s=e;K(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var I=s===e}else var I=!0;if(I)if(r.pathInZip!==void 0){const s=e;if(typeof r.pathInZip!="string")return o.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=s===e}else var I=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="installPlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.pluginData===void 0&&(f="pluginData")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="pluginData"||s==="pluginZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var v=T===e}else var v=!0;if(v)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=a===e}else var v=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=n===e}else var h=!0;if(h){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var h=n===e}else var h=!0;if(h){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installPlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var h=n===e}else var h=!0;if(h){if(r.pluginData!==void 0){let s=r.pluginData;const n=e,k=e;let a=!1;const T=e;K(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var b=T===e;if(a=a||b,!a){const ie=e;ye(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:c})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var b=ie===e;a=a||b}if(a)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var h=n===e}else var h=!0;if(h){if(r.pluginZipFile!==void 0){const s=e;K(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var h=s===e}else var h=!0;if(h)if(r.options!==void 0){let s=r.options;const n=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const T=e;for(const se in s)if(!(se==="activate"||se==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if(T===e){if(s.activate!==void 0){const se=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var q=se===e}else var q=!0;if(q)if(s.targetFolderName!==void 0){const se=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=se===e}else var q=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=n===e}else var h=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="installTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.themeData===void 0&&(f="themeData"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="themeData"||s==="themeZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var w=T===e}else var w=!0;if(w)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=a===e}else var w=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=n===e}else var d=!0;if(d){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var d=n===e}else var d=!0;if(d){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var d=n===e}else var d=!0;if(d){if(r.themeData!==void 0){let s=r.themeData;const n=e,k=e;let a=!1;const T=e;K(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var W=T===e;if(a=a||W,!a){const ie=e;ye(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:c})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var W=ie===e;a=a||W}if(a)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var d=n===e}else var d=!0;if(d){if(r.themeZipFile!==void 0){const s=e;K(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var d=s===e}else var d=!0;if(d)if(r.options!==void 0){let s=r.options;const n=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const T=e;for(const se in s)if(!(se==="activate"||se==="importStarterContent"||se==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if(T===e){if(s.activate!==void 0){const se=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var $=se===e}else var $=!0;if($){if(s.importStarterContent!==void 0){const se=e;if(typeof s.importStarterContent!="boolean")return o.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var $=se===e}else var $=!0;if($)if(s.targetFolderName!==void 0){const se=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=se===e}else var $=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=n===e}else var d=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="login"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="username"||s==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var N=T===e}else var N=!0;if(N)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var N=a===e}else var N=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var x=n===e}else var x=!0;if(x){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="login")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var x=n===e}else var x=!0;if(x){if(r.username!==void 0){const s=e;if(typeof r.username!="string")return o.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=s===e}else var x=!0;if(x)if(r.password!==void 0){const s=e;if(typeof r.password!="string")return o.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=s===e}else var x=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="mkdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var H=T===e}else var H=!0;if(H)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var H=a===e}else var H=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var D=n===e}else var D=!0;if(D){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mkdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var D=n===e}else var D=!0;if(D)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=s===e}else var D=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="mv"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.fromPath===void 0&&(f="fromPath")||r.step===void 0&&(f="step")||r.toPath===void 0&&(f="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var C=T===e}else var C=!0;if(C)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=a===e}else var C=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=n===e}else var ee=!0;if(ee){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mv")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=n===e}else var ee=!0;if(ee){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=s===e}else var ee=!0;if(ee)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=s===e}else var ee=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="resetData"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=T===e}else var R=!0;if(R)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=a===e}else var R=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=n===e}else var z=!0;if(z)if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="resetData")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var z=n===e}else var z=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="request"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.request===void 0&&(f="request")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var J=T===e}else var J=!0;if(J)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var J=a===e}else var J=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var M=n===e}else var M=!0;if(M){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="request")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var M=n===e}else var M=!0;if(M)if(r.request!==void 0){const s=e;de(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:c})||(i=i===null?de.errors:i.concat(de.errors),e=i.length);var M=s===e}else var M=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="rm"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var oe=T===e}else var oe=!0;if(oe)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var oe=a===e}else var oe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=n===e}else var pe=!0;if(pe){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rm")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var pe=n===e}else var pe=!0;if(pe)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var pe=s===e}else var pe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="rmdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var he=T===e}else var he=!0;if(he)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=a===e}else var he=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var je=n===e}else var je=!0;if(je){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rmdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var je=n===e}else var je=!0;if(je)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var je=s===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="runPHP"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.code===void 0&&(f="code")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var De=T===e}else var De=!0;if(De)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=a===e}else var De=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=n===e}else var Te=!0;if(Te){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHP")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Te=n===e}else var Te=!0;if(Te)if(r.code!==void 0){const s=e;if(typeof r.code!="string")return o.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Te=s===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="runPHPWithOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ce=T===e}else var Ce=!0;if(Ce)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=a===e}else var Ce=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ee=n===e}else var Ee=!0;if(Ee){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHPWithOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var Ee=n===e}else var Ee=!0;if(Ee)if(r.options!==void 0){const s=e;ae(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:c})||(i=i===null?ae.errors:i.concat(ae.errors),e=i.length);var Ee=s===e}else var Ee=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="runWpInstallationWizard"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ie=T===e}else var Ie=!0;if(Ie)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ie=a===e}else var Ie=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=n===e}else var qe=!0;if(qe){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runWpInstallationWizard")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var qe=n===e}else var qe=!0;if(qe)if(r.options!==void 0){let s=r.options;const n=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const T=e;for(const se in s)if(!(se==="adminUsername"||se==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if(T===e){if(s.adminUsername!==void 0){const se=e;if(typeof s.adminUsername!="string")return o.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=se===e}else var We=!0;if(We)if(s.adminPassword!==void 0){const se=e;if(typeof s.adminPassword!="string")return o.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=se===e}else var We=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=n===e}else var qe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="runSql"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.sql===void 0&&(f="sql")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ue=T===e}else var Ue=!0;if(Ue)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ue=a===e}else var Ue=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $e=n===e}else var $e=!0;if($e){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runSql")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var $e=n===e}else var $e=!0;if($e)if(r.sql!==void 0){const s=e;K(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var $e=s===e}else var $e=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="setSiteOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ze=T===e}else var ze=!0;if(ze)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ze=a===e}else var ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=n===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var Ae=n===e}else var Ae=!0;if(Ae)if(r.options!==void 0){let s=r.options;const n=e;if(e===n&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=n===e}else var Ae=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="unzip"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.extractToPath===void 0&&(f="extractToPath")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="zipFile"||s==="zipPath"||s==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ve=T===e}else var Ve=!0;if(Ve)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ve=a===e}else var Ve=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var le=n===e}else var le=!0;if(le){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="unzip")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var le=n===e}else var le=!0;if(le){if(r.zipFile!==void 0){const s=e;K(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var le=s===e}else var le=!0;if(le){if(r.zipPath!==void 0){const s=e;if(typeof r.zipPath!="string")return o.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=s===e}else var le=!0;if(le)if(r.extractToPath!==void 0){const s=e;if(typeof r.extractToPath!="string")return o.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=s===e}else var le=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="updateUserMeta"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.meta===void 0&&(f="meta")||r.step===void 0&&(f="step")||r.userId===void 0&&(f="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="meta"||s==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Be=T===e}else var Be=!0;if(Be)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Be=a===e}else var Be=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=n===e}else var ge=!0;if(ge){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="updateUserMeta")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ge=n===e}else var ge=!0;if(ge){if(r.meta!==void 0){let s=r.meta;const n=e;if(e===n&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=n===e}else var ge=!0;if(ge)if(r.userId!==void 0){let s=r.userId;const n=e;if(!(typeof s=="number"&&isFinite(s)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=n===e}else var ge=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="writeFile"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.data===void 0&&(f="data")||r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"||s==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Me=T===e}else var Me=!0;if(Me)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Me=a===e}else var Me=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var be=n===e}else var be=!0;if(be){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFile")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var be=n===e}else var be=!0;if(be){if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var be=s===e}else var be=!0;if(be)if(r.data!==void 0){let s=r.data;const n=e,k=e;let a=!1;const T=e;K(s,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var Fe=T===e;if(a=a||Fe,!a){const ie=e;if(typeof s!="string"){const Pe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Pe]:i.push(Pe),e++}var Fe=ie===e;if(a=a||Fe,!a){const Pe=e;if(e===Pe)if(s&&typeof s=="object"&&!Array.isArray(s)){let me;if(s.BYTES_PER_ELEMENT===void 0&&(me="BYTES_PER_ELEMENT")||s.buffer===void 0&&(me="buffer")||s.byteLength===void 0&&(me="byteLength")||s.byteOffset===void 0&&(me="byteOffset")||s.length===void 0&&(me="length")){const Qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:me},message:"must have required property '"+me+"'"};i===null?i=[Qe]:i.push(Qe),e++}else{const Qe=e;for(const re in s)if(!(re==="BYTES_PER_ELEMENT"||re==="buffer"||re==="byteLength"||re==="byteOffset"||re==="length")){let ue=s[re];const Je=e;if(!(typeof ue=="number"&&isFinite(ue))){const ne={instancePath:t+"/data/"+re.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ne]:i.push(ne),e++}var et=Je===e;if(!et)break}if(Qe===e){if(s.BYTES_PER_ELEMENT!==void 0){let re=s.BYTES_PER_ELEMENT;const ue=e;if(!(typeof re=="number"&&isFinite(re))){const Je={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Je]:i.push(Je),e++}var fe=ue===e}else var fe=!0;if(fe){if(s.buffer!==void 0){let re=s.buffer;const ue=e;if(e===ue)if(re&&typeof re=="object"&&!Array.isArray(re)){let ne;if(re.byteLength===void 0&&(ne="byteLength")){const Xe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ne},message:"must have required property '"+ne+"'"};i===null?i=[Xe]:i.push(Xe),e++}else{const Xe=e;for(const Se in re)if(Se!=="byteLength"){const Ne={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Se},message:"must NOT have additional properties"};i===null?i=[Ne]:i.push(Ne),e++;break}if(Xe===e&&re.byteLength!==void 0){let Se=re.byteLength;if(!(typeof Se=="number"&&isFinite(Se))){const Ne={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Ne]:i.push(Ne),e++}}}}else{const ne={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[ne]:i.push(ne),e++}var fe=ue===e}else var fe=!0;if(fe){if(s.byteLength!==void 0){let re=s.byteLength;const ue=e;if(!(typeof re=="number"&&isFinite(re))){const ne={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ne]:i.push(ne),e++}var fe=ue===e}else var fe=!0;if(fe){if(s.byteOffset!==void 0){let re=s.byteOffset;const ue=e;if(!(typeof re=="number"&&isFinite(re))){const ne={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ne]:i.push(ne),e++}var fe=ue===e}else var fe=!0;if(fe)if(s.length!==void 0){let re=s.length;const ue=e;if(!(typeof re=="number"&&isFinite(re))){const ne={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ne]:i.push(ne),e++}var fe=ue===e}else var fe=!0}}}}}}else{const me={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[me]:i.push(me),e++}var Fe=Pe===e;a=a||Fe}}if(a)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var be=n===e}else var be=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="writeFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.filesTree===void 0&&(f="filesTree")||r.step===void 0&&(f="step")||r.writeToPath===void 0&&(f="writeToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="writeToPath"||s==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=T===e}else var He=!0;if(He)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=a===e}else var He=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var we=n===e}else var we=!0;if(we){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var we=n===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const s=e;if(typeof r.writeToPath!="string")return o.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=s===e}else var we=!0;if(we)if(r.filesTree!==void 0){const s=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:c})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var we=s===e}else var we=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="wp-cli"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.command===void 0&&(f="command")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="command"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ze=T===e}else var Ze=!0;if(Ze)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ze=a===e}else var Ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ve=n===e}else var ve=!0;if(ve){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="wp-cli")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var ve=n===e}else var ve=!0;if(ve){if(r.command!==void 0){let s=r.command;const n=e,k=e;let a=!1;const T=e;if(typeof s!="string"){const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ie]:i.push(ie),e++}var or=T===e;if(a=a||or,!a){const ie=e;if(e===ie)if(Array.isArray(s)){var vr=!0;const Pe=s.length;for(let Ge=0;Ge<Pe;Ge++){const me=e;if(typeof s[Ge]!="string"){const re={instancePath:t+"/command/"+Ge,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[re]:i.push(re),e++}var vr=me===e;if(!vr)break}}else{const Pe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[Pe]:i.push(Pe),e++}var or=ie===e;a=a||or}if(a)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var ve=n===e}else var ve=!0;if(ve)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ve=s===e}else var ve=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(X==="setSiteLanguage"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.language===void 0&&(f="language")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const F=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(F===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let a=s.weight;const T=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ye=T===e}else var Ye=!0;if(Ye)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ye=a===e}else var Ye=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Re=n===e}else var Re=!0;if(Re){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteLanguage")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var Re=n===e}else var Re=!0;if(Re)if(r.language!==void 0){const s=e;if(typeof r.language!="string")return o.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Re=s===e}else var Re=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:X},message:'value of tag "step" must be in oneOf'}],!1;else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:X},message:'tag "step" must be string'}],!1}}else return o.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return o.errors=i,e===0}function Z(r,{instancePath:t="",parentData:p,parentDataProperty:m,rootData:c=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const G=e;for(const l in r)if(!Jr.call(jt.properties,l))return Z.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(G===e){if(r.landingPage!==void 0){const l=e;if(typeof r.landingPage!="string")return Z.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=l===e}else var u=!0;if(u){if(r.description!==void 0){const l=e;if(typeof r.description!="string")return Z.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=l===e}else var u=!0;if(u){if(r.meta!==void 0){let l=r.meta;const A=e;if(e===A)if(l&&typeof l=="object"&&!Array.isArray(l)){let v;if(l.title===void 0&&(v="title")||l.author===void 0&&(v="author"))return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const h=e;for(const b in l)if(!(b==="title"||b==="description"||b==="author"||b==="categories"))return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(h===e){if(l.title!==void 0){const b=e;if(typeof l.title!="string")return Z.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(l.description!==void 0){const b=e;if(typeof l.description!="string")return Z.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(l.author!==void 0){const b=e;if(typeof l.author!="string")return Z.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g)if(l.categories!==void 0){let b=l.categories;const q=e;if(e===q)if(Array.isArray(b)){var S=!0;const d=b.length;for(let W=0;W<d;W++){const $=e;if(typeof b[W]!="string")return Z.errors=[{instancePath:t+"/meta/categories/"+W,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var S=$===e;if(!S)break}}else return Z.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var g=q===e}else var g=!0}}}}}else return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=A===e}else var u=!0;if(u){if(r.preferredVersions!==void 0){let l=r.preferredVersions;const A=e;if(e===A)if(l&&typeof l=="object"&&!Array.isArray(l)){let v;if(l.php===void 0&&(v="php")||l.wp===void 0&&(v="wp"))return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const h=e;for(const b in l)if(!(b==="php"||b==="wp"))return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(h===e){if(l.php!==void 0){let b=l.php;const q=e,w=e;let d=!1;const W=e;if(typeof b!="string"){const $={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[$]:i.push($),e++}if(!(b==="8.4"||b==="8.3"||b==="8.2"||b==="8.1"||b==="8.0"||b==="7.4"||b==="7.3"||b==="7.2")){const $={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Tt.enum},message:"must be equal to one of the allowed values"};i===null?i=[$]:i.push($),e++}var L=W===e;if(d=d||L,!d){const $=e;if(typeof b!="string"){const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[x]:i.push(x),e++}if(b!=="latest"){const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};i===null?i=[x]:i.push(x),e++}var L=$===e;d=d||L}if(d)e=w,i!==null&&(w?i.length=w:i=null);else{const $={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[$]:i.push($),e++,Z.errors=i,!1}var j=q===e}else var j=!0;if(j)if(l.wp!==void 0){const b=e;if(typeof l.wp!="string")return Z.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=b===e}else var j=!0}}}else return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=A===e}else var u=!0;if(u){if(r.features!==void 0){let l=r.features;const A=e;if(e===A)if(l&&typeof l=="object"&&!Array.isArray(l)){const v=e;for(const h in l)if(h!=="networking")return Z.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"}],!1;if(v===e&&l.networking!==void 0&&typeof l.networking!="boolean")return Z.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1}else return Z.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=A===e}else var u=!0;if(u){if(r.extraLibraries!==void 0){let l=r.extraLibraries;const A=e;if(e===A)if(Array.isArray(l)){var _=!0;const v=l.length;for(let h=0;h<v;h++){let b=l[h];const q=e;if(typeof b!="string")return Z.errors=[{instancePath:t+"/extraLibraries/"+h,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(b!=="wp-cli")return Z.errors=[{instancePath:t+"/extraLibraries/"+h,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var _=q===e;if(!_)break}}else return Z.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var u=A===e}else var u=!0;if(u){if(r.constants!==void 0){let l=r.constants;const A=e;if(e===e)if(l&&typeof l=="object"&&!Array.isArray(l))for(const h in l){let b=l[h];const q=e;if(typeof b!="string"&&typeof b!="boolean"&&!(typeof b=="number"&&isFinite(b)))return Z.errors=[{instancePath:t+"/constants/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Et.additionalProperties.type},message:"must be string,boolean,number"}],!1;var O=q===e;if(!O)break}else return Z.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=A===e}else var u=!0;if(u){if(r.plugins!==void 0){let l=r.plugins;const A=e;if(e===A)if(Array.isArray(l)){var E=!0;const v=l.length;for(let h=0;h<v;h++){let b=l[h];const q=e,w=e;let d=!1;const W=e;if(typeof b!="string"){const N={instancePath:t+"/plugins/"+h,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[N]:i.push(N),e++}var y=W===e;if(d=d||y,!d){const N=e;K(b,{instancePath:t+"/plugins/"+h,parentData:l,parentDataProperty:h,rootData:c})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var y=N===e;d=d||y}if(d)e=w,i!==null&&(w?i.length=w:i=null);else{const N={instancePath:t+"/plugins/"+h,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[N]:i.push(N),e++,Z.errors=i,!1}var E=q===e;if(!E)break}}else return Z.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var u=A===e}else var u=!0;if(u){if(r.siteOptions!==void 0){let l=r.siteOptions;const A=e;if(e===A)if(l&&typeof l=="object"&&!Array.isArray(l)){const v=e;for(const h in l)if(h!=="blogname"){const b=e;if(typeof l[h]!="string")return Z.errors=[{instancePath:t+"/siteOptions/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=b===e;if(!U)break}if(v===e&&l.blogname!==void 0&&typeof l.blogname!="string")return Z.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return Z.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=A===e}else var u=!0;if(u){if(r.login!==void 0){let l=r.login;const A=e,I=e;let v=!1;const h=e;if(typeof l!="boolean"){const q={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[q]:i.push(q),e++}var B=h===e;if(v=v||B,!v){const q=e;if(e===q)if(l&&typeof l=="object"&&!Array.isArray(l)){let d;if(l.username===void 0&&(d="username")||l.password===void 0&&(d="password")){const W={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:d},message:"must have required property '"+d+"'"};i===null?i=[W]:i.push(W),e++}else{const W=e;for(const $ in l)if(!($==="username"||$==="password")){const N={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$},message:"must NOT have additional properties"};i===null?i=[N]:i.push(N),e++;break}if(W===e){if(l.username!==void 0){const $=e;if(typeof l.username!="string"){const N={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[N]:i.push(N),e++}var Q=$===e}else var Q=!0;if(Q)if(l.password!==void 0){const $=e;if(typeof l.password!="string"){const x={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[x]:i.push(x),e++}var Q=$===e}else var Q=!0}}}else{const d={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[d]:i.push(d),e++}var B=q===e;v=v||B}if(v)e=I,i!==null&&(I?i.length=I:i=null);else{const q={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[q]:i.push(q),e++,Z.errors=i,!1}var u=A===e}else var u=!0;if(u){if(r.steps!==void 0){let l=r.steps;const A=e;if(e===A)if(Array.isArray(l)){var P=!0;const v=l.length;for(let h=0;h<v;h++){let b=l[h];const q=e,w=e;let d=!1;const W=e;o(b,{instancePath:t+"/steps/"+h,parentData:l,parentDataProperty:h,rootData:c})||(i=i===null?o.errors:i.concat(o.errors),e=i.length);var Y=W===e;if(d=d||Y,!d){const N=e;if(typeof b!="string"){const H={instancePath:t+"/steps/"+h,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[H]:i.push(H),e++}var Y=N===e;if(d=d||Y,!d){const H=e,D={instancePath:t+"/steps/"+h,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};i===null?i=[D]:i.push(D),e++;var Y=H===e;if(d=d||Y,!d){const ee=e;if(typeof b!="boolean"){const z={instancePath:t+"/steps/"+h,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[z]:i.push(z),e++}if(b!==!1){const z={instancePath:t+"/steps/"+h,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};i===null?i=[z]:i.push(z),e++}var Y=ee===e;if(d=d||Y,!d){const z=e;if(b!==null){const M={instancePath:t+"/steps/"+h,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};i===null?i=[M]:i.push(M),e++}var Y=z===e;d=d||Y}}}}if(d)e=w,i!==null&&(w?i.length=w:i=null);else{const N={instancePath:t+"/steps/"+h,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[N]:i.push(N),e++,Z.errors=i,!1}var P=q===e;if(!P)break}}else return Z.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var u=A===e}else var u=!0;if(u)if(r.$schema!==void 0){const l=e;if(typeof r.$schema!="string")return Z.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=l===e}else var u=!0}}}}}}}}}}}}else return Z.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Z.errors=i,e===0}function er(r,{instancePath:t="",parentData:p,parentDataProperty:m,rootData:c=r}={}){let i=null,e=0;return Z(r,{instancePath:t,parentData:p,parentDataProperty:m,rootData:c})||(i=i===null?Z.errors:i.concat(Z.errors),e=i.length),er.errors=i,e===0}const{wpCLI:At,..._r}=ft,Rt={..._r,"wp-cli":At,importFile:_r.importWxr};async function Lt(r,t={}){const p={...t};let m;return wr(r)?(m=await Kr(r),p.streamBundledFile=function(...c){return r.read(...c)}):m=r,Ft(m,p)}function wr(r){return r&&"read"in r&&typeof r.read=="function"}async function Kr(r){if(!wr(r))return r;const p=await(await r.read("blueprint.json")).text();return JSON.parse(p)}function Ft(r,{progress:t=new pr.ProgressTracker,semaphore:p=new V.Semaphore({concurrency:3}),onStepCompleted:m=()=>{},corsProxy:c,streamBundledFile:i}={}){var O,E,y,U,B,Q,P,Y,G;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(xt).filter(Dt)};for(const l of r.steps)!l||typeof l!="object"||(l.step==="importFile"?(l.step="importWxr",ce.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(l==null?void 0:l.step)==="installPlugin"&&"pluginZipFile"in l?(l.pluginData=l.pluginZipFile,ce.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(l==null?void 0:l.step)==="installTheme"&&"themeZipFile"in l&&(l.themeData=l.themeZipFile,ce.logger.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(r.constants&&r.steps.unshift({step:"defineWpConfigConsts",consts:r.constants}),r.siteOptions&&r.steps.unshift({step:"setSiteOptions",options:r.siteOptions}),r.plugins){const l=r.plugins.map(A=>typeof A=="string"?A.startsWith("https://")?{resource:"url",url:A}:{resource:"wordpress.org/plugins",slug:A}:A).map(A=>({step:"installPlugin",pluginData:A}));r.steps.unshift(...l)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const e=((O=r.steps)==null?void 0:O.findIndex(l=>typeof l=="object"&&(l==null?void 0:l.step)&&["wp-cli","enableMultisite"].includes(l.step)))??-1;if((E=r==null?void 0:r.extraLibraries)!=null&&E.includes("wp-cli")||e!==-1){const l={step:"writeFile",data:it,path:mr};e===-1?(y=r.steps)==null||y.push(l):(U=r.steps)==null||U.splice(e,0,l)}const u=(B=r.steps)==null?void 0:B.findIndex(l=>typeof l=="object"&&(l==null?void 0:l.step)==="importWxr");u!==void 0&&u>-1&&((Q=r.steps)==null||Q.splice(u,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:g,errors:S}=St(r);if(!g){const l=new Error(`Invalid blueprint: ${S[0].message} at ${S[0].instancePath}`);throw l.errors=S,l}const L=r.steps||[],j=L.reduce((l,A)=>{var I;return l+(((I=A.progress)==null?void 0:I.weight)||1)},0),_=L.map(l=>Ct(l,{semaphore:p,rootProgressTracker:t,totalProgressWeight:j,corsProxy:c,streamBundledFile:i}));return{versions:{php:Nt((P=r.preferredVersions)==null?void 0:P.php,xe.SupportedPHPVersions,xe.LatestSupportedPHPVersion),wp:((Y=r.preferredVersions)==null?void 0:Y.wp)||"latest"},features:{networking:((G=r.features)==null?void 0:G.networking)??!1},extraLibraries:r.extraLibraries||[],run:async l=>{try{for(const{resources:A}of _)for(const I of A)I.setPlayground(l),I.isAsync&&I.resolve().catch(()=>{});for(const[A,{run:I,step:v}]of Object.entries(_))try{const h=await I(l);m(h,v)}catch(h){throw new Error(`Error when executing the blueprint step #${A} (${JSON.stringify(v)}) ${h instanceof Error?`: ${h.message}`:h}`,{cause:h})}}finally{try{await l.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function St(r){var c;const t=er(r);if(t)return{valid:t};const p=new Set;for(const i of er.errors)i.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(i.instancePath);const m=(c=er.errors)==null?void 0:c.filter(i=>!(i.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(i.instancePath)));return{valid:t,errors:m}}function Nt(r,t,p){return r&&t.includes(r)?r:p}function xt(r){return!!(typeof r=="object"&&r)}function Dt(r){return["setPhpIniEntry","request"].includes(r.step)?(ce.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Ct(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:m,corsProxy:c,streamBundledFile:i}){var _;const e=p.stage((((_=r.progress)==null?void 0:_.weight)||1)/m),u={};for(const O of Object.keys(r)){let E=r[O];dt(E)&&(E=ke.create(E,{semaphore:t,corsProxy:c,streamBundledFile:i})),u[O]=E}const g=async O=>{var E;try{return e.fillSlowly(),await Rt[r.step](O,await It(u),{tracker:e,initialCaption:(E=r.progress)==null?void 0:E.caption})}finally{e.finish()}},S=kr(u),L=kr(u).filter(O=>O.isAsync),j=1/(L.length+1);for(const O of L)O.progress=e.stage(j);return{run:g,step:r,resources:S}}function kr(r){const t=[];for(const p in r){const m=r[p];m instanceof ke&&t.push(m)}return t}async function It(r){const t={};for(const p in r){const m=r[p];m instanceof ke?t[p]=await m.resolve():t[p]=m}return t}async function Wt(r,t){await r.run(t)}async function Ut(r){const t=await fetch(r,{credentials:"omit"});if(!t.ok)throw new Error(`Failed to fetch blueprint from ${r}`);const p=await t.arrayBuffer();try{const m=new TextDecoder().decode(p);return JSON.parse(m),new Oe.OverlayFilesystem([new Oe.InMemoryFilesystem({"blueprint.json":m}),new Oe.FetchFilesystem({baseUrl:r})])}catch{if(await zt(p))return Oe.ZipFilesystem.fromArrayBuffer(p);throw new Error(`Blueprint file at ${r} is neither a valid JSON nor a ZIP file.`)}}async function zt(r){if(r.byteLength<4)return!1;const t=new Uint8Array(r,0,4);return t[0]===80&&t[1]===75&&t[2]===3&&t[3]===4}function Vt(){}exports.activatePlugin=fr;exports.activateTheme=ur;exports.compileBlueprint=Lt;exports.cp=Fr;exports.defineSiteUrl=hr;exports.defineWpConfigConsts=rr;exports.enableMultisite=Lr;exports.exportWXR=Wr;exports.getBlueprintDeclaration=Kr;exports.importThemeStarterContent=gr;exports.importWordPressFiles=Ir;exports.importWxr=Cr;exports.installPlugin=zr;exports.installTheme=Vr;exports.isBlueprintBundle=wr;exports.login=Br;exports.mkdir=Nr;exports.mv=Sr;exports.request=$r;exports.resetData=Mr;exports.resolveRemoteBlueprint=Ut;exports.rm=dr;exports.rmdir=xr;exports.runBlueprintSteps=Wt;exports.runPHP=Tr;exports.runPHPWithOptions=Er;exports.runSql=qr;exports.runWpInstallationWizard=Hr;exports.setPluginProxyURL=Vt;exports.setSiteLanguage=Yr;exports.setSiteOptions=cr;exports.unzip=sr;exports.updateUserMeta=Ar;exports.wpCLI=yr;exports.wpContentFilesExcludedFromExport=lr;exports.writeFile=tr;exports.writeFiles=Dr;exports.zipWpContent=Zr;
|
|
492
|
+
Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{type:"string",description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},qt={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},nr={validate:Le};function Le(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:u=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const D in r){let S=r[D];const j=e,_=e;let k=!1;const R=e;nr.validate(S,{instancePath:t+"/"+D.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:D,rootData:u})||(i=i===null?nr.validate.errors:i.concat(nr.validate.errors),e=i.length);var d=R===e;if(k=k||d,!k){const m=e;if(!(S&&typeof S=="object"&&!Array.isArray(S))&&typeof S!="string"){const M={instancePath:t+"/"+D.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:qt.additionalProperties.anyOf[1].type},message:"must be object,string"};i===null?i=[M]:i.push(M),e++}var d=m===e;k=k||d}if(k)e=_,i!==null&&(_?i.length=_:i=null);else{const m={instancePath:t+"/"+D.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[m]:i.push(m),e++,Le.errors=i,!1}var h=j===e;if(!h)break}else return Le.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Le.errors=i,e===0}function _e(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:u=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let h;if(r.files===void 0&&(h="files")||r.name===void 0&&(h="name")||r.resource===void 0&&(h="resource"))return _e.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:h},message:"must have required property '"+h+"'"}],!1;{const D=e;for(const S in r)if(!(S==="resource"||S==="files"||S==="name"))return _e.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if(D===e){if(r.resource!==void 0){let S=r.resource;const j=e;if(typeof S!="string")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(S!=="literal:directory")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var d=j===e}else var d=!0;if(d){if(r.files!==void 0){const S=e;Le(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:u})||(i=i===null?Le.errors:i.concat(Le.errors),e=i.length);var d=S===e}else var d=!0;if(d)if(r.name!==void 0){const S=e;if(typeof r.name!="string")return _e.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=S===e}else var d=!0}}}}else return _e.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _e.errors=i,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:u=r}={}){let i=null,e=0;const d=e;let h=!1;const D=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let k;if(r.resource===void 0&&(k="resource")||r.url===void 0&&(k="url")||r.ref===void 0&&(k="ref")||r.path===void 0&&(k="path")){const R={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"};i===null?i=[R]:i.push(R),e++}else{const R=e;for(const m in r)if(!(m==="resource"||m==="url"||m==="ref"||m==="path")){const W={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};i===null?i=[W]:i.push(W),e++;break}if(R===e){if(r.resource!==void 0){let m=r.resource;const W=e;if(typeof m!="string"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}if(m!=="git:directory"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};i===null?i=[M]:i.push(M),e++}var j=W===e}else var j=!0;if(j){if(r.url!==void 0){const m=e;if(typeof r.url!="string"){const M={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}var j=m===e}else var j=!0;if(j){if(r.ref!==void 0){const m=e;if(typeof r.ref!="string"){const M={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}var j=m===e}else var j=!0;if(j)if(r.path!==void 0){const m=e;if(typeof r.path!="string"){const M={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}var j=m===e}else var j=!0}}}}}else{const k={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[k]:i.push(k),e++}var _=D===e;if(h=h||_,!h){const k=e;_e(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:u})||(i=i===null?_e.errors:i.concat(_e.errors),e=i.length);var _=k===e;h=h||_}if(h)e=d,i!==null&&(d?i.length=d:i=null);else{const k={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[k]:i.push(k),e++,ye.errors=i,!1}return ye.errors=i,e===0}const Xr={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function ce(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:u=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let M;if(r.url===void 0&&(M="url"))return ce.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"}],!1;{const G=e;for(const P in r)if(!(P==="method"||P==="url"||P==="headers"||P==="body"))return ce.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(G===e){if(r.method!==void 0){let P=r.method;const K=e;if(typeof P!="string")return ce.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(P==="GET"||P==="POST"||P==="HEAD"||P==="OPTIONS"||P==="PATCH"||P==="PUT"||P==="DELETE"))return ce.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var d=K===e}else var d=!0;if(d){if(r.url!==void 0){const P=e;if(typeof r.url!="string")return ce.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=P===e}else var d=!0;if(d){if(r.headers!==void 0){let P=r.headers;const K=e;if(e===e)if(P&&typeof P=="object"&&!Array.isArray(P))for(const l in P){const T=e;if(typeof P[l]!="string")return ce.errors=[{instancePath:t+"/headers/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=T===e;if(!h)break}else return ce.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=K===e}else var d=!0;if(d)if(r.body!==void 0){let P=r.body;const K=e,V=e;let re=!1;const l=e;if(typeof P!="string"){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[$]:i.push($),e++}var D=l===e;if(re=re||D,!re){const $=e;if(e===$)if(P&&typeof P=="object"&&!Array.isArray(P)){let w;if(P.BYTES_PER_ELEMENT===void 0&&(w="BYTES_PER_ELEMENT")||P.buffer===void 0&&(w="buffer")||P.byteLength===void 0&&(w="byteLength")||P.byteOffset===void 0&&(w="byteOffset")||P.length===void 0&&(w="length")){const b={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};i===null?i=[b]:i.push(b),e++}else{const b=e;for(const g in P)if(!(g==="BYTES_PER_ELEMENT"||g==="buffer"||g==="byteLength"||g==="byteOffset"||g==="length")){let y=P[g];const E=e;if(!(typeof y=="number"&&isFinite(y))){const L={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[L]:i.push(L),e++}var S=E===e;if(!S)break}if(b===e){if(P.BYTES_PER_ELEMENT!==void 0){let g=P.BYTES_PER_ELEMENT;const y=e;if(!(typeof g=="number"&&isFinite(g))){const E={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[E]:i.push(E),e++}var j=y===e}else var j=!0;if(j){if(P.buffer!==void 0){let g=P.buffer;const y=e;if(e===y)if(g&&typeof g=="object"&&!Array.isArray(g)){let L;if(g.byteLength===void 0&&(L="byteLength")){const x={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:L},message:"must have required property '"+L+"'"};i===null?i=[x]:i.push(x),e++}else{const x=e;for(const F in g)if(F!=="byteLength"){const U={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:F},message:"must NOT have additional properties"};i===null?i=[U]:i.push(U),e++;break}if(x===e&&g.byteLength!==void 0){let F=g.byteLength;if(!(typeof F=="number"&&isFinite(F))){const U={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[U]:i.push(U),e++}}}}else{const L={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[L]:i.push(L),e++}var j=y===e}else var j=!0;if(j){if(P.byteLength!==void 0){let g=P.byteLength;const y=e;if(!(typeof g=="number"&&isFinite(g))){const L={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[L]:i.push(L),e++}var j=y===e}else var j=!0;if(j){if(P.byteOffset!==void 0){let g=P.byteOffset;const y=e;if(!(typeof g=="number"&&isFinite(g))){const L={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[L]:i.push(L),e++}var j=y===e}else var j=!0;if(j)if(P.length!==void 0){let g=P.length;const y=e;if(!(typeof g=="number"&&isFinite(g))){const L={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[L]:i.push(L),e++}var j=y===e}else var j=!0}}}}}}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var D=$===e;if(re=re||D,!re){const w=e;if(e===w)if(P&&typeof P=="object"&&!Array.isArray(P))for(const g in P){let y=P[g];const E=e,L=e;let x=!1;const F=e;if(typeof y!="string"){const U={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[U]:i.push(U),e++}var _=F===e;if(x=x||_,!x){const U=e;if(e===U)if(y&&typeof y=="object"&&!Array.isArray(y)){let I;if(y.BYTES_PER_ELEMENT===void 0&&(I="BYTES_PER_ELEMENT")||y.buffer===void 0&&(I="buffer")||y.byteLength===void 0&&(I="byteLength")||y.byteOffset===void 0&&(I="byteOffset")||y.length===void 0&&(I="length")){const ee={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:I},message:"must have required property '"+I+"'"};i===null?i=[ee]:i.push(ee),e++}else{const ee=e;for(const A in y)if(!(A==="BYTES_PER_ELEMENT"||A==="buffer"||A==="byteLength"||A==="byteOffset"||A==="length")){let Y=y[A];const B=e;if(!(typeof Y=="number"&&isFinite(Y))){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[H]:i.push(H),e++}var k=B===e;if(!k)break}if(ee===e){if(y.BYTES_PER_ELEMENT!==void 0){let A=y.BYTES_PER_ELEMENT;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const B={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[B]:i.push(B),e++}var R=Y===e}else var R=!0;if(R){if(y.buffer!==void 0){let A=y.buffer;const Y=e;if(e===Y)if(A&&typeof A=="object"&&!Array.isArray(A)){let H;if(A.byteLength===void 0&&(H="byteLength")){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:H},message:"must have required property '"+H+"'"};i===null?i=[ie]:i.push(ie),e++}else{const ie=e;for(const le in A)if(le!=="byteLength"){const he={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:le},message:"must NOT have additional properties"};i===null?i=[he]:i.push(he),e++;break}if(ie===e&&A.byteLength!==void 0){let le=A.byteLength;if(!(typeof le=="number"&&isFinite(le))){const he={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[he]:i.push(he),e++}}}}else{const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[H]:i.push(H),e++}var R=Y===e}else var R=!0;if(R){if(y.byteLength!==void 0){let A=y.byteLength;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[H]:i.push(H),e++}var R=Y===e}else var R=!0;if(R){if(y.byteOffset!==void 0){let A=y.byteOffset;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[H]:i.push(H),e++}var R=Y===e}else var R=!0;if(R)if(y.length!==void 0){let A=y.length;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[H]:i.push(H),e++}var R=Y===e}else var R=!0}}}}}}else{const I={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[I]:i.push(I),e++}var _=U===e;if(x=x||_,!x){const I=e;if(e===I)if(y&&typeof y=="object"&&!Array.isArray(y)){let A;if(y.lastModified===void 0&&(A="lastModified")||y.name===void 0&&(A="name")||y.size===void 0&&(A="size")||y.type===void 0&&(A="type")||y.webkitRelativePath===void 0&&(A="webkitRelativePath")){const Y={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};i===null?i=[Y]:i.push(Y),e++}else{const Y=e;for(const B in y)if(!(B==="size"||B==="type"||B==="lastModified"||B==="name"||B==="webkitRelativePath")){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};i===null?i=[H]:i.push(H),e++;break}if(Y===e){if(y.size!==void 0){let B=y.size;const H=e;if(!(typeof B=="number"&&isFinite(B))){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ie]:i.push(ie),e++}var m=H===e}else var m=!0;if(m){if(y.type!==void 0){const B=e;if(typeof y.type!="string"){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ie]:i.push(ie),e++}var m=B===e}else var m=!0;if(m){if(y.lastModified!==void 0){let B=y.lastModified;const H=e;if(!(typeof B=="number"&&isFinite(B))){const le={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[le]:i.push(le),e++}var m=H===e}else var m=!0;if(m){if(y.name!==void 0){const B=e;if(typeof y.name!="string"){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ie]:i.push(ie),e++}var m=B===e}else var m=!0;if(m)if(y.webkitRelativePath!==void 0){const B=e;if(typeof y.webkitRelativePath!="string"){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ie]:i.push(ie),e++}var m=B===e}else var m=!0}}}}}}else{const A={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[A]:i.push(A),e++}var _=I===e;x=x||_}}if(x)e=L,i!==null&&(L?i.length=L:i=null);else{const U={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};i===null?i=[U]:i.push(U),e++}var W=E===e;if(!W)break}else{const g={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[g]:i.push(g),e++}var D=w===e;re=re||D}}if(re)e=V,i!==null&&(V?i.length=V:i=null);else{const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[$]:i.push($),e++,ce.errors=i,!1}var d=K===e}else var d=!0}}}}}else return ce.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ce.errors=i,e===0}const $t={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function ne(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:u=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const R=e;for(const m in r)if(!Jr.call($t.properties,m))return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"}],!1;if(R===e){if(r.relativeUri!==void 0){const m=e;if(typeof r.relativeUri!="string")return ne.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0;if(d){if(r.scriptPath!==void 0){const m=e;if(typeof r.scriptPath!="string")return ne.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0;if(d){if(r.protocol!==void 0){const m=e;if(typeof r.protocol!="string")return ne.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0;if(d){if(r.method!==void 0){let m=r.method;const W=e;if(typeof m!="string")return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(m==="GET"||m==="POST"||m==="HEAD"||m==="OPTIONS"||m==="PATCH"||m==="PUT"||m==="DELETE"))return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var d=W===e}else var d=!0;if(d){if(r.headers!==void 0){let m=r.headers;const W=e;if(e===e)if(m&&typeof m=="object"&&!Array.isArray(m))for(const P in m){const K=e;if(typeof m[P]!="string")return ne.errors=[{instancePath:t+"/headers/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=K===e;if(!h)break}else return ne.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=W===e}else var d=!0;if(d){if(r.body!==void 0){let m=r.body;const W=e,M=e;let G=!1;const P=e;if(typeof m!="string"){const V={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var D=P===e;if(G=G||D,!G){const V=e;if(e===V)if(m&&typeof m=="object"&&!Array.isArray(m)){let l;if(m.BYTES_PER_ELEMENT===void 0&&(l="BYTES_PER_ELEMENT")||m.buffer===void 0&&(l="buffer")||m.byteLength===void 0&&(l="byteLength")||m.byteOffset===void 0&&(l="byteOffset")||m.length===void 0&&(l="length")){const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"};i===null?i=[T]:i.push(T),e++}else{const T=e;for(const $ in m)if(!($==="BYTES_PER_ELEMENT"||$==="buffer"||$==="byteLength"||$==="byteOffset"||$==="length")){let v=m[$];const w=e;if(!(typeof v=="number"&&isFinite(v))){const b={instancePath:t+"/body/"+$.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[b]:i.push(b),e++}var S=w===e;if(!S)break}if(T===e){if(m.BYTES_PER_ELEMENT!==void 0){let $=m.BYTES_PER_ELEMENT;const v=e;if(!(typeof $=="number"&&isFinite($))){const w={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[w]:i.push(w),e++}var j=v===e}else var j=!0;if(j){if(m.buffer!==void 0){let $=m.buffer;const v=e;if(e===v)if($&&typeof $=="object"&&!Array.isArray($)){let b;if($.byteLength===void 0&&(b="byteLength")){const g={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[g]:i.push(g),e++}else{const g=e;for(const y in $)if(y!=="byteLength"){const E={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};i===null?i=[E]:i.push(E),e++;break}if(g===e&&$.byteLength!==void 0){let y=$.byteLength;if(!(typeof y=="number"&&isFinite(y))){const E={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[E]:i.push(E),e++}}}}else{const b={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[b]:i.push(b),e++}var j=v===e}else var j=!0;if(j){if(m.byteLength!==void 0){let $=m.byteLength;const v=e;if(!(typeof $=="number"&&isFinite($))){const b={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[b]:i.push(b),e++}var j=v===e}else var j=!0;if(j){if(m.byteOffset!==void 0){let $=m.byteOffset;const v=e;if(!(typeof $=="number"&&isFinite($))){const b={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[b]:i.push(b),e++}var j=v===e}else var j=!0;if(j)if(m.length!==void 0){let $=m.length;const v=e;if(!(typeof $=="number"&&isFinite($))){const b={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[b]:i.push(b),e++}var j=v===e}else var j=!0}}}}}}else{const l={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[l]:i.push(l),e++}var D=V===e;G=G||D}if(G)e=M,i!==null&&(M?i.length=M:i=null);else{const V={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[V]:i.push(V),e++,ne.errors=i,!1}var d=W===e}else var d=!0;if(d){if(r.env!==void 0){let m=r.env;const W=e;if(e===W)if(m&&typeof m=="object"&&!Array.isArray(m))for(const G in m){const P=e;if(typeof m[G]!="string")return ne.errors=[{instancePath:t+"/env/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=P===e;if(!_)break}else return ne.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=W===e}else var d=!0;if(d){if(r.$_SERVER!==void 0){let m=r.$_SERVER;const W=e;if(e===W)if(m&&typeof m=="object"&&!Array.isArray(m))for(const G in m){const P=e;if(typeof m[G]!="string")return ne.errors=[{instancePath:t+"/$_SERVER/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=P===e;if(!k)break}else return ne.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=W===e}else var d=!0;if(d)if(r.code!==void 0){const m=e;if(typeof r.code!="string")return ne.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0}}}}}}}}}else return ne.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ne.errors=i,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:u=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let ar;if(r.step===void 0&&(ar="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:ar},message:"must have required property '"+ar+"'"}],!1;{const Q=r.step;if(typeof Q=="string")if(Q==="activatePlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.pluginPath===void 0&&(f="pluginPath")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="pluginPath"||s==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var d=q===e}else var d=!0;if(d)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=a===e}else var d=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=n===e}else var h=!0;if(h){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activatePlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var h=n===e}else var h=!0;if(h){if(r.pluginPath!==void 0){const s=e;if(typeof r.pluginPath!="string")return o.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=s===e}else var h=!0;if(h)if(r.pluginName!==void 0){const s=e;if(typeof r.pluginName!="string")return o.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=s===e}else var h=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="activateTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.themeFolderName===void 0&&(f="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var D=q===e}else var D=!0;if(D)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=a===e}else var D=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=n===e}else var S=!0;if(S){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activateTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var S=n===e}else var S=!0;if(S)if(r.themeFolderName!==void 0){const s=e;if(typeof r.themeFolderName!="string")return o.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var S=s===e}else var S=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="cp"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.fromPath===void 0&&(f="fromPath")||r.step===void 0&&(f="step")||r.toPath===void 0&&(f="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var j=q===e}else var j=!0;if(j)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=a===e}else var j=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=n===e}else var _=!0;if(_){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="cp")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var _=n===e}else var _=!0;if(_){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=s===e}else var _=!0;if(_)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=s===e}else var _=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="defineWpConfigConsts"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.consts===void 0&&(f="consts")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="consts"||s==="method"||s==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var k=q===e}else var k=!0;if(k)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=a===e}else var k=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=n===e}else var R=!0;if(R){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineWpConfigConsts")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var R=n===e}else var R=!0;if(R){if(r.consts!==void 0){let s=r.consts;const n=e;if(e===n&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=n===e}else var R=!0;if(R){if(r.method!==void 0){let s=r.method;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="rewrite-wp-config"||s==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var R=n===e}else var R=!0;if(R)if(r.virtualize!==void 0){const s=e;if(typeof r.virtualize!="boolean")return o.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var R=s===e}else var R=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="defineSiteUrl"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.siteUrl===void 0&&(f="siteUrl")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var m=q===e}else var m=!0;if(m)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=a===e}else var m=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=n===e}else var W=!0;if(W){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineSiteUrl")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var W=n===e}else var W=!0;if(W)if(r.siteUrl!==void 0){const s=e;if(typeof r.siteUrl!="string")return o.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=s===e}else var W=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="enableMultisite"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var M=q===e}else var M=!0;if(M)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=a===e}else var M=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=n===e}else var G=!0;if(G){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="enableMultisite")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var G=n===e}else var G=!0;if(G)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=s===e}else var G=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="importWxr"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.file===void 0&&(f="file")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="file"||s==="importer"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var P=q===e}else var P=!0;if(P)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=a===e}else var P=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=n===e}else var K=!0;if(K){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWxr")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var K=n===e}else var K=!0;if(K){if(r.file!==void 0){const s=e;J(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var K=s===e}else var K=!0;if(K)if(r.importer!==void 0){let s=r.importer;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="data-liberation"||s==="default"))return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var K=n===e}else var K=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="importThemeStarterContent"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=q===e}else var V=!0;if(V)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=a===e}else var V=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var re=n===e}else var re=!0;if(re){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importThemeStarterContent")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var re=n===e}else var re=!0;if(re)if(r.themeSlug!==void 0){const s=e;if(typeof r.themeSlug!="string")return o.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var re=s===e}else var re=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="importWordPressFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.wordPressFilesZip===void 0&&(f="wordPressFilesZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wordPressFilesZip"||s==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var l=q===e}else var l=!0;if(l)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=a===e}else var l=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=n===e}else var T=!0;if(T){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWordPressFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var T=n===e}else var T=!0;if(T){if(r.wordPressFilesZip!==void 0){const s=e;J(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var T=s===e}else var T=!0;if(T)if(r.pathInZip!==void 0){const s=e;if(typeof r.pathInZip!="string")return o.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=s===e}else var T=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="installPlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.pluginData===void 0&&(f="pluginData")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="pluginData"||s==="pluginZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var $=q===e}else var $=!0;if($)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=a===e}else var $=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=n===e}else var v=!0;if(v){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var v=n===e}else var v=!0;if(v){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installPlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var v=n===e}else var v=!0;if(v){if(r.pluginData!==void 0){let s=r.pluginData;const n=e,O=e;let a=!1;const q=e;J(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var w=q===e;if(a=a||w,!a){const oe=e;ye(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:u})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var w=oe===e;a=a||w}if(a)e=O,i!==null&&(O?i.length=O:i=null);else{const oe={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[oe]:i.push(oe),e++,o.errors=i,!1}var v=n===e}else var v=!0;if(v){if(r.pluginZipFile!==void 0){const s=e;J(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var v=s===e}else var v=!0;if(v)if(r.options!==void 0){let s=r.options;const n=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const q=e;for(const se in s)if(!(se==="activate"||se==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if(q===e){if(s.activate!==void 0){const se=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var b=se===e}else var b=!0;if(b)if(s.targetFolderName!==void 0){const se=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=se===e}else var b=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=n===e}else var v=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="installTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.themeData===void 0&&(f="themeData"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="themeData"||s==="themeZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=q===e}else var g=!0;if(g)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=a===e}else var g=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var y=n===e}else var y=!0;if(y){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var y=n===e}else var y=!0;if(y){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var y=n===e}else var y=!0;if(y){if(r.themeData!==void 0){let s=r.themeData;const n=e,O=e;let a=!1;const q=e;J(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var E=q===e;if(a=a||E,!a){const oe=e;ye(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:u})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var E=oe===e;a=a||E}if(a)e=O,i!==null&&(O?i.length=O:i=null);else{const oe={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[oe]:i.push(oe),e++,o.errors=i,!1}var y=n===e}else var y=!0;if(y){if(r.themeZipFile!==void 0){const s=e;J(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var y=s===e}else var y=!0;if(y)if(r.options!==void 0){let s=r.options;const n=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const q=e;for(const se in s)if(!(se==="activate"||se==="importStarterContent"||se==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if(q===e){if(s.activate!==void 0){const se=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var L=se===e}else var L=!0;if(L){if(s.importStarterContent!==void 0){const se=e;if(typeof s.importStarterContent!="boolean")return o.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var L=se===e}else var L=!0;if(L)if(s.targetFolderName!==void 0){const se=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=se===e}else var L=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var y=n===e}else var y=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="login"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="username"||s==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var x=q===e}else var x=!0;if(x)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=a===e}else var x=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var F=n===e}else var F=!0;if(F){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="login")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var F=n===e}else var F=!0;if(F){if(r.username!==void 0){const s=e;if(typeof r.username!="string")return o.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=s===e}else var F=!0;if(F)if(r.password!==void 0){const s=e;if(typeof r.password!="string")return o.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=s===e}else var F=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="mkdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var U=q===e}else var U=!0;if(U)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=a===e}else var U=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var C=n===e}else var C=!0;if(C){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mkdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var C=n===e}else var C=!0;if(C)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=s===e}else var C=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="mv"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.fromPath===void 0&&(f="fromPath")||r.step===void 0&&(f="step")||r.toPath===void 0&&(f="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=q===e}else var I=!0;if(I)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=a===e}else var I=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=n===e}else var ee=!0;if(ee){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mv")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=n===e}else var ee=!0;if(ee){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=s===e}else var ee=!0;if(ee)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=s===e}else var ee=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="resetData"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var A=q===e}else var A=!0;if(A)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=a===e}else var A=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Y=n===e}else var Y=!0;if(Y)if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="resetData")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var Y=n===e}else var Y=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="request"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.request===void 0&&(f="request")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var B=q===e}else var B=!0;if(B)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var B=a===e}else var B=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=n===e}else var H=!0;if(H){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="request")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var H=n===e}else var H=!0;if(H)if(r.request!==void 0){const s=e;ce(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:u})||(i=i===null?ce.errors:i.concat(ce.errors),e=i.length);var H=s===e}else var H=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="rm"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ie=q===e}else var ie=!0;if(ie)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=a===e}else var ie=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var le=n===e}else var le=!0;if(le){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rm")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var le=n===e}else var le=!0;if(le)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=s===e}else var le=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="rmdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var he=q===e}else var he=!0;if(he)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=a===e}else var he=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var je=n===e}else var je=!0;if(je){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rmdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var je=n===e}else var je=!0;if(je)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var je=s===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runPHP"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.code===void 0&&(f="code")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var De=q===e}else var De=!0;if(De)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=a===e}else var De=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=n===e}else var Te=!0;if(Te){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHP")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Te=n===e}else var Te=!0;if(Te)if(r.code!==void 0){const s=e;if(typeof r.code!="string")return o.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Te=s===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runPHPWithOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ce=q===e}else var Ce=!0;if(Ce)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=a===e}else var Ce=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ee=n===e}else var Ee=!0;if(Ee){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHPWithOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var Ee=n===e}else var Ee=!0;if(Ee)if(r.options!==void 0){const s=e;ne(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:u})||(i=i===null?ne.errors:i.concat(ne.errors),e=i.length);var Ee=s===e}else var Ee=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runWpInstallationWizard"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ie=q===e}else var Ie=!0;if(Ie)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ie=a===e}else var Ie=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=n===e}else var qe=!0;if(qe){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runWpInstallationWizard")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var qe=n===e}else var qe=!0;if(qe)if(r.options!==void 0){let s=r.options;const n=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const q=e;for(const se in s)if(!(se==="adminUsername"||se==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if(q===e){if(s.adminUsername!==void 0){const se=e;if(typeof s.adminUsername!="string")return o.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=se===e}else var We=!0;if(We)if(s.adminPassword!==void 0){const se=e;if(typeof s.adminPassword!="string")return o.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=se===e}else var We=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=n===e}else var qe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runSql"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.sql===void 0&&(f="sql")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ue=q===e}else var Ue=!0;if(Ue)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ue=a===e}else var Ue=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $e=n===e}else var $e=!0;if($e){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runSql")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var $e=n===e}else var $e=!0;if($e)if(r.sql!==void 0){const s=e;J(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var $e=s===e}else var $e=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="setSiteOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ze=q===e}else var ze=!0;if(ze)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ze=a===e}else var ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=n===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var Ae=n===e}else var Ae=!0;if(Ae)if(r.options!==void 0){let s=r.options;const n=e;if(e===n&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=n===e}else var Ae=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="unzip"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.extractToPath===void 0&&(f="extractToPath")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="zipFile"||s==="zipPath"||s==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ve=q===e}else var Ve=!0;if(Ve)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ve=a===e}else var Ve=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=n===e}else var fe=!0;if(fe){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="unzip")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var fe=n===e}else var fe=!0;if(fe){if(r.zipFile!==void 0){const s=e;J(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var fe=s===e}else var fe=!0;if(fe){if(r.zipPath!==void 0){const s=e;if(typeof r.zipPath!="string")return o.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var fe=s===e}else var fe=!0;if(fe)if(r.extractToPath!==void 0){const s=e;if(typeof r.extractToPath!="string")return o.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var fe=s===e}else var fe=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="updateUserMeta"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.meta===void 0&&(f="meta")||r.step===void 0&&(f="step")||r.userId===void 0&&(f="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="meta"||s==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Be=q===e}else var Be=!0;if(Be)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Be=a===e}else var Be=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=n===e}else var ge=!0;if(ge){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="updateUserMeta")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ge=n===e}else var ge=!0;if(ge){if(r.meta!==void 0){let s=r.meta;const n=e;if(e===n&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=n===e}else var ge=!0;if(ge)if(r.userId!==void 0){let s=r.userId;const n=e;if(!(typeof s=="number"&&isFinite(s)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=n===e}else var ge=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="writeFile"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.data===void 0&&(f="data")||r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"||s==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Me=q===e}else var Me=!0;if(Me)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Me=a===e}else var Me=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var be=n===e}else var be=!0;if(be){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFile")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var be=n===e}else var be=!0;if(be){if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var be=s===e}else var be=!0;if(be)if(r.data!==void 0){let s=r.data;const n=e,O=e;let a=!1;const q=e;J(s,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var Fe=q===e;if(a=a||Fe,!a){const oe=e;if(typeof s!="string"){const Pe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Pe]:i.push(Pe),e++}var Fe=oe===e;if(a=a||Fe,!a){const Pe=e;if(e===Pe)if(s&&typeof s=="object"&&!Array.isArray(s)){let me;if(s.BYTES_PER_ELEMENT===void 0&&(me="BYTES_PER_ELEMENT")||s.buffer===void 0&&(me="buffer")||s.byteLength===void 0&&(me="byteLength")||s.byteOffset===void 0&&(me="byteOffset")||s.length===void 0&&(me="length")){const Qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:me},message:"must have required property '"+me+"'"};i===null?i=[Qe]:i.push(Qe),e++}else{const Qe=e;for(const X in s)if(!(X==="BYTES_PER_ELEMENT"||X==="buffer"||X==="byteLength"||X==="byteOffset"||X==="length")){let ue=s[X];const Je=e;if(!(typeof ue=="number"&&isFinite(ue))){const pe={instancePath:t+"/data/"+X.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[pe]:i.push(pe),e++}var et=Je===e;if(!et)break}if(Qe===e){if(s.BYTES_PER_ELEMENT!==void 0){let X=s.BYTES_PER_ELEMENT;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const Je={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Je]:i.push(Je),e++}var de=ue===e}else var de=!0;if(de){if(s.buffer!==void 0){let X=s.buffer;const ue=e;if(e===ue)if(X&&typeof X=="object"&&!Array.isArray(X)){let pe;if(X.byteLength===void 0&&(pe="byteLength")){const Xe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:pe},message:"must have required property '"+pe+"'"};i===null?i=[Xe]:i.push(Xe),e++}else{const Xe=e;for(const Se in X)if(Se!=="byteLength"){const Ne={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Se},message:"must NOT have additional properties"};i===null?i=[Ne]:i.push(Ne),e++;break}if(Xe===e&&X.byteLength!==void 0){let Se=X.byteLength;if(!(typeof Se=="number"&&isFinite(Se))){const Ne={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Ne]:i.push(Ne),e++}}}}else{const pe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[pe]:i.push(pe),e++}var de=ue===e}else var de=!0;if(de){if(s.byteLength!==void 0){let X=s.byteLength;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[pe]:i.push(pe),e++}var de=ue===e}else var de=!0;if(de){if(s.byteOffset!==void 0){let X=s.byteOffset;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[pe]:i.push(pe),e++}var de=ue===e}else var de=!0;if(de)if(s.length!==void 0){let X=s.length;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[pe]:i.push(pe),e++}var de=ue===e}else var de=!0}}}}}}else{const me={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[me]:i.push(me),e++}var Fe=Pe===e;a=a||Fe}}if(a)e=O,i!==null&&(O?i.length=O:i=null);else{const oe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[oe]:i.push(oe),e++,o.errors=i,!1}var be=n===e}else var be=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="writeFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.filesTree===void 0&&(f="filesTree")||r.step===void 0&&(f="step")||r.writeToPath===void 0&&(f="writeToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="writeToPath"||s==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=q===e}else var He=!0;if(He)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=a===e}else var He=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var we=n===e}else var we=!0;if(we){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var we=n===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const s=e;if(typeof r.writeToPath!="string")return o.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=s===e}else var we=!0;if(we)if(r.filesTree!==void 0){const s=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:u})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var we=s===e}else var we=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="wp-cli"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.command===void 0&&(f="command")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="command"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ze=q===e}else var Ze=!0;if(Ze)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ze=a===e}else var Ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ve=n===e}else var ve=!0;if(ve){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="wp-cli")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var ve=n===e}else var ve=!0;if(ve){if(r.command!==void 0){let s=r.command;const n=e,O=e;let a=!1;const q=e;if(typeof s!="string"){const oe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var or=q===e;if(a=a||or,!a){const oe=e;if(e===oe)if(Array.isArray(s)){var vr=!0;const Pe=s.length;for(let Ge=0;Ge<Pe;Ge++){const me=e;if(typeof s[Ge]!="string"){const X={instancePath:t+"/command/"+Ge,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[X]:i.push(X),e++}var vr=me===e;if(!vr)break}}else{const Pe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[Pe]:i.push(Pe),e++}var or=oe===e;a=a||or}if(a)e=O,i!==null&&(O?i.length=O:i=null);else{const oe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[oe]:i.push(oe),e++,o.errors=i,!1}var ve=n===e}else var ve=!0;if(ve)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ve=s===e}else var ve=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="setSiteLanguage"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.language===void 0&&(f="language")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let s=r.progress;const n=e;if(e===n)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const a in s)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(s.weight!==void 0){let a=s.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ye=q===e}else var Ye=!0;if(Ye)if(s.caption!==void 0){const a=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ye=a===e}else var Ye=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Re=n===e}else var Re=!0;if(Re){if(r.step!==void 0){let s=r.step;const n=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteLanguage")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var Re=n===e}else var Re=!0;if(Re)if(r.language!==void 0){const s=e;if(typeof r.language!="string")return o.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Re=s===e}else var Re=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:Q},message:'value of tag "step" must be in oneOf'}],!1;else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:Q},message:'tag "step" must be string'}],!1}}else return o.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return o.errors=i,e===0}function Z(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:u=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const re=e;for(const l in r)if(!Jr.call(jt.properties,l))return Z.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(re===e){if(r.landingPage!==void 0){const l=e;if(typeof r.landingPage!="string")return Z.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=l===e}else var d=!0;if(d){if(r.description!==void 0){const l=e;if(typeof r.description!="string")return Z.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=l===e}else var d=!0;if(d){if(r.meta!==void 0){let l=r.meta;const T=e;if(e===T)if(l&&typeof l=="object"&&!Array.isArray(l)){let v;if(l.title===void 0&&(v="title")||l.author===void 0&&(v="author"))return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const w=e;for(const b in l)if(!(b==="title"||b==="description"||b==="author"||b==="categories"))return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(w===e){if(l.title!==void 0){const b=e;if(typeof l.title!="string")return Z.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=b===e}else var h=!0;if(h){if(l.description!==void 0){const b=e;if(typeof l.description!="string")return Z.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=b===e}else var h=!0;if(h){if(l.author!==void 0){const b=e;if(typeof l.author!="string")return Z.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=b===e}else var h=!0;if(h)if(l.categories!==void 0){let b=l.categories;const g=e;if(e===g)if(Array.isArray(b)){var D=!0;const E=b.length;for(let L=0;L<E;L++){const x=e;if(typeof b[L]!="string")return Z.errors=[{instancePath:t+"/meta/categories/"+L,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=x===e;if(!D)break}}else return Z.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var h=g===e}else var h=!0}}}}}else return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.preferredVersions!==void 0){let l=r.preferredVersions;const T=e;if(e===T)if(l&&typeof l=="object"&&!Array.isArray(l)){let v;if(l.php===void 0&&(v="php")||l.wp===void 0&&(v="wp"))return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const w=e;for(const b in l)if(!(b==="php"||b==="wp"))return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(w===e){if(l.php!==void 0){let b=l.php;const g=e,y=e;let E=!1;const L=e;if(typeof b!="string"){const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[x]:i.push(x),e++}if(!(b==="8.4"||b==="8.3"||b==="8.2"||b==="8.1"||b==="8.0"||b==="7.4"||b==="7.3"||b==="7.2")){const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Tt.enum},message:"must be equal to one of the allowed values"};i===null?i=[x]:i.push(x),e++}var S=L===e;if(E=E||S,!E){const x=e;if(typeof b!="string"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[U]:i.push(U),e++}if(b!=="latest"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};i===null?i=[U]:i.push(U),e++}var S=x===e;E=E||S}if(E)e=y,i!==null&&(y?i.length=y:i=null);else{const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[x]:i.push(x),e++,Z.errors=i,!1}var j=g===e}else var j=!0;if(j)if(l.wp!==void 0){const b=e;if(typeof l.wp!="string")return Z.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=b===e}else var j=!0}}}else return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.features!==void 0){let l=r.features;const T=e;if(e===T)if(l&&typeof l=="object"&&!Array.isArray(l)){const v=e;for(const w in l)if(!(w==="intl"||w==="networking"))return Z.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties"}],!1;if(v===e){if(l.intl!==void 0){const w=e;if(typeof l.intl!="boolean")return Z.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var _=w===e}else var _=!0;if(_)if(l.networking!==void 0){const w=e;if(typeof l.networking!="boolean")return Z.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var _=w===e}else var _=!0}}else return Z.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.extraLibraries!==void 0){let l=r.extraLibraries;const T=e;if(e===T)if(Array.isArray(l)){var k=!0;const v=l.length;for(let w=0;w<v;w++){let b=l[w];const g=e;if(typeof b!="string")return Z.errors=[{instancePath:t+"/extraLibraries/"+w,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(b!=="wp-cli")return Z.errors=[{instancePath:t+"/extraLibraries/"+w,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var k=g===e;if(!k)break}}else return Z.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=T===e}else var d=!0;if(d){if(r.constants!==void 0){let l=r.constants;const T=e;if(e===e)if(l&&typeof l=="object"&&!Array.isArray(l))for(const w in l){let b=l[w];const g=e;if(typeof b!="string"&&typeof b!="boolean"&&!(typeof b=="number"&&isFinite(b)))return Z.errors=[{instancePath:t+"/constants/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Et.additionalProperties.type},message:"must be string,boolean,number"}],!1;var R=g===e;if(!R)break}else return Z.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.plugins!==void 0){let l=r.plugins;const T=e;if(e===T)if(Array.isArray(l)){var m=!0;const v=l.length;for(let w=0;w<v;w++){let b=l[w];const g=e,y=e;let E=!1;const L=e;if(typeof b!="string"){const F={instancePath:t+"/plugins/"+w,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),e++}var W=L===e;if(E=E||W,!E){const F=e;J(b,{instancePath:t+"/plugins/"+w,parentData:l,parentDataProperty:w,rootData:u})||(i=i===null?J.errors:i.concat(J.errors),e=i.length);var W=F===e;E=E||W}if(E)e=y,i!==null&&(y?i.length=y:i=null);else{const F={instancePath:t+"/plugins/"+w,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[F]:i.push(F),e++,Z.errors=i,!1}var m=g===e;if(!m)break}}else return Z.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=T===e}else var d=!0;if(d){if(r.siteOptions!==void 0){let l=r.siteOptions;const T=e;if(e===T)if(l&&typeof l=="object"&&!Array.isArray(l)){const v=e;for(const w in l)if(w!=="blogname"){const b=e;if(typeof l[w]!="string")return Z.errors=[{instancePath:t+"/siteOptions/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=b===e;if(!M)break}if(v===e&&l.blogname!==void 0&&typeof l.blogname!="string")return Z.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return Z.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.login!==void 0){let l=r.login;const T=e,$=e;let v=!1;const w=e;if(typeof l!="boolean"){const g={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[g]:i.push(g),e++}var G=w===e;if(v=v||G,!v){const g=e;if(e===g)if(l&&typeof l=="object"&&!Array.isArray(l)){let E;if(l.username===void 0&&(E="username")||l.password===void 0&&(E="password")){const L={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};i===null?i=[L]:i.push(L),e++}else{const L=e;for(const x in l)if(!(x==="username"||x==="password")){const F={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"};i===null?i=[F]:i.push(F),e++;break}if(L===e){if(l.username!==void 0){const x=e;if(typeof l.username!="string"){const F={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),e++}var P=x===e}else var P=!0;if(P)if(l.password!==void 0){const x=e;if(typeof l.password!="string"){const U={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[U]:i.push(U),e++}var P=x===e}else var P=!0}}}else{const E={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[E]:i.push(E),e++}var G=g===e;v=v||G}if(v)e=$,i!==null&&($?i.length=$:i=null);else{const g={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[g]:i.push(g),e++,Z.errors=i,!1}var d=T===e}else var d=!0;if(d){if(r.steps!==void 0){let l=r.steps;const T=e;if(e===T)if(Array.isArray(l)){var K=!0;const v=l.length;for(let w=0;w<v;w++){let b=l[w];const g=e,y=e;let E=!1;const L=e;o(b,{instancePath:t+"/steps/"+w,parentData:l,parentDataProperty:w,rootData:u})||(i=i===null?o.errors:i.concat(o.errors),e=i.length);var V=L===e;if(E=E||V,!E){const F=e;if(typeof b!="string"){const C={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[C]:i.push(C),e++}var V=F===e;if(E=E||V,!E){const C=e,I={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};i===null?i=[I]:i.push(I),e++;var V=C===e;if(E=E||V,!E){const A=e;if(typeof b!="boolean"){const B={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[B]:i.push(B),e++}if(b!==!1){const B={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};i===null?i=[B]:i.push(B),e++}var V=A===e;if(E=E||V,!E){const B=e;if(b!==null){const ie={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};i===null?i=[ie]:i.push(ie),e++}var V=B===e;E=E||V}}}}if(E)e=y,i!==null&&(y?i.length=y:i=null);else{const F={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[F]:i.push(F),e++,Z.errors=i,!1}var K=g===e;if(!K)break}}else return Z.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=T===e}else var d=!0;if(d)if(r.$schema!==void 0){const l=e;if(typeof r.$schema!="string")return Z.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=l===e}else var d=!0}}}}}}}}}}}}else return Z.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Z.errors=i,e===0}function er(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:u=r}={}){let i=null,e=0;return Z(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:u})||(i=i===null?Z.errors:i.concat(Z.errors),e=i.length),er.errors=i,e===0}const{wpCLI:At,..._r}=ft,Rt={..._r,"wp-cli":At,importFile:_r.importWxr};async function Lt(r,t={}){const p={...t};let c;return wr(r)?(c=await Kr(r),p.streamBundledFile=function(...u){return r.read(...u)}):c=r,Ft(c,p)}function wr(r){return r&&"read"in r&&typeof r.read=="function"}async function Kr(r){if(!wr(r))return r;const p=await(await r.read("blueprint.json")).text();return JSON.parse(p)}function Ft(r,{progress:t=new pr.ProgressTracker,semaphore:p=new z.Semaphore({concurrency:3}),onStepCompleted:c=()=>{},corsProxy:u,streamBundledFile:i}={}){var k,R,m,W,M,G,P,K,V,re;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(xt).filter(Dt)};for(const l of r.steps)!l||typeof l!="object"||(l.step==="importFile"?(l.step="importWxr",ae.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(l==null?void 0:l.step)==="installPlugin"&&"pluginZipFile"in l?(l.pluginData=l.pluginZipFile,ae.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(l==null?void 0:l.step)==="installTheme"&&"themeZipFile"in l&&(l.themeData=l.themeZipFile,ae.logger.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(r.constants&&r.steps.unshift({step:"defineWpConfigConsts",consts:r.constants}),r.siteOptions&&r.steps.unshift({step:"setSiteOptions",options:r.siteOptions}),r.plugins){const l=r.plugins.map(T=>typeof T=="string"?T.startsWith("https://")?{resource:"url",url:T}:{resource:"wordpress.org/plugins",slug:T}:T).map(T=>({step:"installPlugin",pluginData:T}));r.steps.unshift(...l)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const e=((k=r.steps)==null?void 0:k.findIndex(l=>typeof l=="object"&&(l==null?void 0:l.step)&&["wp-cli","enableMultisite"].includes(l.step)))??-1;if((R=r==null?void 0:r.extraLibraries)!=null&&R.includes("wp-cli")||e!==-1){const l={step:"writeFile",data:it,path:mr};e===-1?(m=r.steps)==null||m.push(l):(W=r.steps)==null||W.splice(e,0,l)}const d=(M=r.steps)==null?void 0:M.findIndex(l=>typeof l=="object"&&(l==null?void 0:l.step)==="importWxr");d!==void 0&&d>-1&&((G=r.steps)==null||G.splice(d,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:h,errors:D}=St(r);if(!h){const l=new Error(`Invalid blueprint: ${D[0].message} at ${D[0].instancePath}`);throw l.errors=D,l}const S=r.steps||[],j=S.reduce((l,T)=>{var $;return l+((($=T.progress)==null?void 0:$.weight)||1)},0),_=S.map(l=>Ct(l,{semaphore:p,rootProgressTracker:t,totalProgressWeight:j,corsProxy:u,streamBundledFile:i}));return{versions:{php:Nt((P=r.preferredVersions)==null?void 0:P.php,xe.SupportedPHPVersions,xe.LatestSupportedPHPVersion),wp:((K=r.preferredVersions)==null?void 0:K.wp)||"latest"},features:{intl:((V=r.features)==null?void 0:V.intl)??!1,networking:((re=r.features)==null?void 0:re.networking)??!1},extraLibraries:r.extraLibraries||[],run:async l=>{try{for(const{resources:T}of _)for(const $ of T)$.setPlayground(l),$.isAsync&&$.resolve().catch(()=>{});for(const[T,{run:$,step:v}]of Object.entries(_))try{const w=await $(l);c(w,v)}catch(w){throw new Error(`Error when executing the blueprint step #${T} (${JSON.stringify(v)}) ${w instanceof Error?`: ${w.message}`:w}`,{cause:w})}}finally{try{await l.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function St(r){var u;const t=er(r);if(t)return{valid:t};const p=new Set;for(const i of er.errors)i.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(i.instancePath);const c=(u=er.errors)==null?void 0:u.filter(i=>!(i.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(i.instancePath)));return{valid:t,errors:c}}function Nt(r,t,p){return r&&t.includes(r)?r:p}function xt(r){return!!(typeof r=="object"&&r)}function Dt(r){return["setPhpIniEntry","request"].includes(r.step)?(ae.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Ct(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:c,corsProxy:u,streamBundledFile:i}){var _;const e=p.stage((((_=r.progress)==null?void 0:_.weight)||1)/c),d={};for(const k of Object.keys(r)){let R=r[k];ut(R)&&(R=ke.create(R,{semaphore:t,corsProxy:u,streamBundledFile:i})),d[k]=R}const h=async k=>{var R;try{return e.fillSlowly(),await Rt[r.step](k,await It(d),{tracker:e,initialCaption:(R=r.progress)==null?void 0:R.caption})}finally{e.finish()}},D=kr(d),S=kr(d).filter(k=>k.isAsync),j=1/(S.length+1);for(const k of S)k.progress=e.stage(j);return{run:h,step:r,resources:D}}function kr(r){const t=[];for(const p in r){const c=r[p];c instanceof ke&&t.push(c)}return t}async function It(r){const t={};for(const p in r){const c=r[p];c instanceof ke?t[p]=await c.resolve():t[p]=c}return t}async function Wt(r,t){await r.run(t)}async function Ut(r){const t=await fetch(r,{credentials:"omit"});if(!t.ok)throw new Error(`Failed to fetch blueprint from ${r}`);const p=await t.arrayBuffer();try{const c=new TextDecoder().decode(p);return JSON.parse(c),new Oe.OverlayFilesystem([new Oe.InMemoryFilesystem({"blueprint.json":c}),new Oe.FetchFilesystem({baseUrl:r})])}catch{if(await zt(p))return Oe.ZipFilesystem.fromArrayBuffer(p);throw new Error(`Blueprint file at ${r} is neither a valid JSON nor a ZIP file.`)}}async function zt(r){if(r.byteLength<4)return!1;const t=new Uint8Array(r,0,4);return t[0]===80&&t[1]===75&&t[2]===3&&t[3]===4}function Vt(){}exports.activatePlugin=fr;exports.activateTheme=dr;exports.compileBlueprint=Lt;exports.cp=Fr;exports.defineSiteUrl=hr;exports.defineWpConfigConsts=rr;exports.enableMultisite=Lr;exports.exportWXR=Wr;exports.getBlueprintDeclaration=Kr;exports.importThemeStarterContent=gr;exports.importWordPressFiles=Ir;exports.importWxr=Cr;exports.installPlugin=zr;exports.installTheme=Vr;exports.isBlueprintBundle=wr;exports.login=Br;exports.mkdir=Nr;exports.mv=Sr;exports.request=$r;exports.resetData=Mr;exports.resolveRemoteBlueprint=Ut;exports.rm=ur;exports.rmdir=xr;exports.runBlueprintSteps=Wt;exports.runPHP=Tr;exports.runPHPWithOptions=Er;exports.runSql=qr;exports.runWpInstallationWizard=Hr;exports.setPluginProxyURL=Vt;exports.setSiteLanguage=Yr;exports.setSiteOptions=cr;exports.unzip=sr;exports.updateUserMeta=Ar;exports.wpCLI=yr;exports.wpContentFilesExcludedFromExport=lr;exports.writeFile=tr;exports.writeFiles=Dr;exports.zipWpContent=Zr;
|
|
381
493
|
//# sourceMappingURL=index.cjs.map
|