@wp-playground/blueprints 3.0.12 → 3.0.14
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 +41 -1
- package/blueprint-schema.json +4 -0
- package/index.cjs +9 -9
- package/index.cjs.map +1 -1
- package/index.js +565 -518
- package/index.js.map +1 -1
- package/lib/v1/resources.d.ts +6 -0
- package/package.json +13 -13
package/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import "@php-wasm/node-polyfills";
|
|
2
|
-
import { cloneStreamMonitorProgress as
|
|
3
|
-
import {
|
|
4
|
-
import { writeFiles as
|
|
5
|
-
import { resolveCommitHash as Vr, listGitFiles as Hr, listDescendantFiles as Zr, sparseCheckout as Yr,
|
|
6
|
-
import { fetchWithCorsProxy as
|
|
7
|
-
import { StreamedFile as
|
|
2
|
+
import { cloneStreamMonitorProgress as Ir, cloneResponseMonitorProgress as Wr, ProgressTracker as Ur } from "@php-wasm/progress";
|
|
3
|
+
import { randomFilename as pr, phpVars as wr, joinPaths as ie, phpVar as ge, dirname as Br, Semaphore as vr } from "@php-wasm/util";
|
|
4
|
+
import { writeFiles as lr, LatestSupportedPHPVersion as Mr, SupportedPHPVersions as zr } from "@php-wasm/universal";
|
|
5
|
+
import { resolveCommitHash as Vr, listGitFiles as Hr, listDescendantFiles as Zr, sparseCheckout as Yr, createDotGitDirectory as Gr, OverlayFilesystem as Qr, InMemoryFilesystem as Jr, FetchFilesystem as Xr, ZipFilesystem as Kr } from "@wp-playground/storage";
|
|
6
|
+
import { fetchWithCorsProxy as et } from "@php-wasm/web";
|
|
7
|
+
import { StreamedFile as rt } from "@php-wasm/stream-compression";
|
|
8
8
|
import { logger as ae } from "@php-wasm/logger";
|
|
9
|
-
import { defineWpConfigConstants as
|
|
10
|
-
import { unzipFile as
|
|
11
|
-
function
|
|
9
|
+
import { defineWpConfigConstants as tt, ensureWpConfig as st } from "@wp-playground/wordpress";
|
|
10
|
+
import { unzipFile as Pr, RecommendedPHPVersion as it } from "@wp-playground/common";
|
|
11
|
+
function _r(r) {
|
|
12
12
|
return r && "read" in r && typeof r.read == "function";
|
|
13
13
|
}
|
|
14
|
-
async function
|
|
15
|
-
if (!
|
|
14
|
+
async function ot(r) {
|
|
15
|
+
if (!_r(r))
|
|
16
16
|
return r;
|
|
17
17
|
const n = await (await r.read("blueprint.json")).text();
|
|
18
18
|
return JSON.parse(n);
|
|
19
19
|
}
|
|
20
20
|
class tr {
|
|
21
21
|
static async create(t) {
|
|
22
|
-
const n = await
|
|
22
|
+
const n = await ot(t), d = _r(t) ? t : void 0;
|
|
23
23
|
return tr.createFromDeclaration(n, d);
|
|
24
24
|
}
|
|
25
25
|
static createFromDeclaration(t, n = void 0) {
|
|
@@ -52,7 +52,7 @@ function sr(r) {
|
|
|
52
52
|
const t = r.split(".").shift().replace(/-/g, " ");
|
|
53
53
|
return t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const at = [
|
|
56
56
|
"vfs",
|
|
57
57
|
"literal",
|
|
58
58
|
"wordpress.org/themes",
|
|
@@ -61,8 +61,8 @@ const ot = [
|
|
|
61
61
|
"git:directory",
|
|
62
62
|
"bundled"
|
|
63
63
|
];
|
|
64
|
-
function
|
|
65
|
-
return r && typeof r == "object" && typeof r.resource == "string" &&
|
|
64
|
+
function nt(r) {
|
|
65
|
+
return r && typeof r == "object" && typeof r.resource == "string" && at.includes(r.resource);
|
|
66
66
|
}
|
|
67
67
|
class je {
|
|
68
68
|
get progress() {
|
|
@@ -94,34 +94,34 @@ class je {
|
|
|
94
94
|
let e;
|
|
95
95
|
switch (t.resource) {
|
|
96
96
|
case "vfs":
|
|
97
|
-
e = new
|
|
97
|
+
e = new pt(t, d);
|
|
98
98
|
break;
|
|
99
99
|
case "literal":
|
|
100
|
-
e = new
|
|
100
|
+
e = new lt(t, d);
|
|
101
101
|
break;
|
|
102
102
|
case "wordpress.org/themes":
|
|
103
|
-
e = new
|
|
103
|
+
e = new ht(t, d);
|
|
104
104
|
break;
|
|
105
105
|
case "wordpress.org/plugins":
|
|
106
|
-
e = new
|
|
106
|
+
e = new gt(t, d);
|
|
107
107
|
break;
|
|
108
108
|
case "url":
|
|
109
|
-
e = new
|
|
109
|
+
e = new ut(t, d, { corsProxy: u });
|
|
110
110
|
break;
|
|
111
111
|
case "git:directory":
|
|
112
|
-
e = new
|
|
112
|
+
e = new ct(t, d, {
|
|
113
113
|
corsProxy: u
|
|
114
114
|
});
|
|
115
115
|
break;
|
|
116
116
|
case "literal:directory":
|
|
117
|
-
e = new
|
|
117
|
+
e = new yt(t, d);
|
|
118
118
|
break;
|
|
119
119
|
case "bundled":
|
|
120
120
|
if (!s)
|
|
121
121
|
throw new Error(
|
|
122
122
|
"Filesystem is required for blueprint resources"
|
|
123
123
|
);
|
|
124
|
-
e = new
|
|
124
|
+
e = new vt(
|
|
125
125
|
t,
|
|
126
126
|
s,
|
|
127
127
|
d
|
|
@@ -132,10 +132,10 @@ class je {
|
|
|
132
132
|
`Unknown resource type: ${t.resource}`
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
|
-
return n && (e = new
|
|
135
|
+
return n && (e = new wt(e, n)), new bt(e);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
class
|
|
138
|
+
class kr extends je {
|
|
139
139
|
constructor(t) {
|
|
140
140
|
super(), this.resource = t;
|
|
141
141
|
}
|
|
@@ -160,7 +160,7 @@ class Or extends je {
|
|
|
160
160
|
this.resource.setPlayground(t);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
class
|
|
163
|
+
class pt extends je {
|
|
164
164
|
/**
|
|
165
165
|
* Creates a new instance of `VFSResource`.
|
|
166
166
|
* @param playground The playground client.
|
|
@@ -183,7 +183,7 @@ class nt extends je {
|
|
|
183
183
|
return this.resource.path.split("/").pop() || "";
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
class
|
|
186
|
+
class lt extends je {
|
|
187
187
|
/**
|
|
188
188
|
* Creates a new instance of `LiteralResource`.
|
|
189
189
|
* @param resource The literal reference.
|
|
@@ -202,7 +202,7 @@ class pt extends je {
|
|
|
202
202
|
return this.resource.name;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
class
|
|
205
|
+
class fr extends je {
|
|
206
206
|
/**
|
|
207
207
|
* Creates a new instance of `FetchResource`.
|
|
208
208
|
* @param progress The progress tracker.
|
|
@@ -216,7 +216,7 @@ class lr extends je {
|
|
|
216
216
|
(n = this.progress) == null || n.setCaption(this.caption);
|
|
217
217
|
const t = this.getURL();
|
|
218
218
|
try {
|
|
219
|
-
let s = await
|
|
219
|
+
let s = await et(
|
|
220
220
|
t,
|
|
221
221
|
void 0,
|
|
222
222
|
this.corsProxy,
|
|
@@ -224,12 +224,12 @@ class lr extends je {
|
|
|
224
224
|
);
|
|
225
225
|
if (!s.ok)
|
|
226
226
|
throw new Error(`Could not download "${t}"`);
|
|
227
|
-
if (s = await
|
|
227
|
+
if (s = await Wr(
|
|
228
228
|
s,
|
|
229
|
-
((u = this.progress) == null ? void 0 : u.loadingListener) ??
|
|
229
|
+
((u = this.progress) == null ? void 0 : u.loadingListener) ?? dt
|
|
230
230
|
), s.status !== 200)
|
|
231
231
|
throw new Error(`Could not download "${t}"`);
|
|
232
|
-
const e = this.name ||
|
|
232
|
+
const e = this.name || ft(
|
|
233
233
|
s.headers.get("content-disposition") || ""
|
|
234
234
|
) || encodeURIComponent(t);
|
|
235
235
|
return new File([await s.blob()], e);
|
|
@@ -283,7 +283,7 @@ class lr extends je {
|
|
|
283
283
|
return !0;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function ft(r) {
|
|
287
287
|
if (!r)
|
|
288
288
|
return null;
|
|
289
289
|
const t = r.match(/filename\*?=([^;]+)/i);
|
|
@@ -300,9 +300,9 @@ function lt(r) {
|
|
|
300
300
|
}
|
|
301
301
|
return n;
|
|
302
302
|
}
|
|
303
|
-
const
|
|
303
|
+
const dt = () => {
|
|
304
304
|
};
|
|
305
|
-
class
|
|
305
|
+
class ut extends fr {
|
|
306
306
|
/**
|
|
307
307
|
* Creates a new instance of `UrlResource`.
|
|
308
308
|
* @param resource The URL reference.
|
|
@@ -328,37 +328,65 @@ class dt extends lr {
|
|
|
328
328
|
return this.resource.caption ?? super.caption;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
class
|
|
331
|
+
class ct extends je {
|
|
332
332
|
constructor(t, n, d) {
|
|
333
333
|
super(), this.reference = t, this._progress = n, this.options = d;
|
|
334
334
|
}
|
|
335
335
|
async resolve() {
|
|
336
|
-
var
|
|
337
|
-
const t = (
|
|
336
|
+
var c;
|
|
337
|
+
const t = (c = this.options) != null && c.corsProxy ? `${this.options.corsProxy}${this.reference.url}` : this.reference.url, n = await Vr(t, {
|
|
338
338
|
value: this.reference.ref,
|
|
339
339
|
type: this.reference.refType ?? "infer"
|
|
340
|
-
}), d = await Hr(t, n), u = (this.reference.path ?? "").replace(/^\/+/, ""), s = Zr(d, u)
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
340
|
+
}), d = await Hr(t, n), u = (this.reference.path ?? "").replace(/^\/+/, ""), s = Zr(d, u), e = await Yr(
|
|
341
|
+
t,
|
|
342
|
+
n,
|
|
343
|
+
s,
|
|
344
|
+
{
|
|
345
|
+
withObjects: this.reference[".git"]
|
|
346
|
+
}
|
|
347
|
+
);
|
|
348
|
+
let l = e.files;
|
|
349
|
+
return l = mt(
|
|
350
|
+
l,
|
|
351
|
+
(_) => _.substring(u.length).replace(/^\/+/, "")
|
|
352
|
+
), this.reference[".git"] && (l = {
|
|
353
|
+
...await Gr({
|
|
354
|
+
repoUrl: this.reference.url,
|
|
355
|
+
commitHash: n,
|
|
356
|
+
ref: this.reference.ref,
|
|
357
|
+
refType: this.reference.refType,
|
|
358
|
+
objects: e.objects ?? [],
|
|
359
|
+
fileOids: e.fileOids ?? {},
|
|
360
|
+
pathPrefix: u
|
|
361
|
+
}),
|
|
362
|
+
...l
|
|
363
|
+
}), {
|
|
364
|
+
name: this.filename,
|
|
365
|
+
files: l
|
|
348
366
|
};
|
|
349
367
|
}
|
|
368
|
+
/**
|
|
369
|
+
* Generate a nice, non-empty filename – the installPlugin step depends on it.
|
|
370
|
+
*/
|
|
371
|
+
get filename() {
|
|
372
|
+
return this.name.replaceAll(/[^a-zA-Z0-9-.]/g, "-").replaceAll(/-+/g, "-").replace(/^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$/g, "") || pr();
|
|
373
|
+
}
|
|
350
374
|
/** @inheritDoc */
|
|
351
375
|
get name() {
|
|
352
|
-
|
|
353
|
-
return
|
|
376
|
+
var t;
|
|
377
|
+
return [
|
|
378
|
+
this.reference.url,
|
|
379
|
+
this.reference.ref ? `(${this.reference.ref})` : "",
|
|
380
|
+
(t = this.reference.path) != null && t.replace(/^\/+/, "") ? `at ${this.reference.path}` : ""
|
|
381
|
+
].filter((n) => n.length > 0).join(" ");
|
|
354
382
|
}
|
|
355
383
|
}
|
|
356
|
-
function
|
|
384
|
+
function mt(r, t) {
|
|
357
385
|
return Object.fromEntries(
|
|
358
386
|
Object.entries(r).map(([n, d]) => [t(n), d])
|
|
359
387
|
);
|
|
360
388
|
}
|
|
361
|
-
class
|
|
389
|
+
class yt extends je {
|
|
362
390
|
constructor(t, n) {
|
|
363
391
|
super(), this.reference = t, this._progress = n;
|
|
364
392
|
}
|
|
@@ -370,7 +398,7 @@ class mt extends je {
|
|
|
370
398
|
return this.reference.name;
|
|
371
399
|
}
|
|
372
400
|
}
|
|
373
|
-
class
|
|
401
|
+
class ht extends fr {
|
|
374
402
|
constructor(t, n) {
|
|
375
403
|
super(n), this.resource = t;
|
|
376
404
|
}
|
|
@@ -378,10 +406,10 @@ class yt extends lr {
|
|
|
378
406
|
return sr(this.resource.slug);
|
|
379
407
|
}
|
|
380
408
|
getURL() {
|
|
381
|
-
return `https://downloads.wordpress.org/theme/${
|
|
409
|
+
return `https://downloads.wordpress.org/theme/${Or(this.resource.slug)}`;
|
|
382
410
|
}
|
|
383
411
|
}
|
|
384
|
-
class
|
|
412
|
+
class gt extends fr {
|
|
385
413
|
constructor(t, n) {
|
|
386
414
|
super(n), this.resource = t;
|
|
387
415
|
}
|
|
@@ -391,19 +419,19 @@ class ht extends lr {
|
|
|
391
419
|
}
|
|
392
420
|
/** @inheritDoc */
|
|
393
421
|
getURL() {
|
|
394
|
-
return `https://downloads.wordpress.org/plugin/${
|
|
422
|
+
return `https://downloads.wordpress.org/plugin/${Or(this.resource.slug)}`;
|
|
395
423
|
}
|
|
396
424
|
}
|
|
397
|
-
function
|
|
425
|
+
function Or(r) {
|
|
398
426
|
return !r || r.endsWith(".zip") ? r : r + ".latest-stable.zip";
|
|
399
427
|
}
|
|
400
|
-
class
|
|
428
|
+
class bt extends kr {
|
|
401
429
|
/** @inheritDoc */
|
|
402
430
|
async resolve() {
|
|
403
431
|
return this.promise || (this.promise = this.resource.resolve()), this.promise;
|
|
404
432
|
}
|
|
405
433
|
}
|
|
406
|
-
class
|
|
434
|
+
class wt extends kr {
|
|
407
435
|
constructor(t, n) {
|
|
408
436
|
super(t), this.semaphore = n;
|
|
409
437
|
}
|
|
@@ -412,7 +440,7 @@ class bt extends Or {
|
|
|
412
440
|
return this.isAsync ? this.semaphore.run(() => this.resource.resolve()) : this.resource.resolve();
|
|
413
441
|
}
|
|
414
442
|
}
|
|
415
|
-
class
|
|
443
|
+
class vt extends je {
|
|
416
444
|
/**
|
|
417
445
|
* Creates a new instance of `BlueprintResource`.
|
|
418
446
|
* @param resource The blueprint reference.
|
|
@@ -434,7 +462,7 @@ class wt extends je {
|
|
|
434
462
|
const u = await this.streamBundledFile(this.resource.path), s = u.filesize;
|
|
435
463
|
if (!s)
|
|
436
464
|
return (n = this.progress) == null || n.set(100), u;
|
|
437
|
-
const e =
|
|
465
|
+
const e = Ir(
|
|
438
466
|
u.stream(),
|
|
439
467
|
s,
|
|
440
468
|
(l) => {
|
|
@@ -444,7 +472,7 @@ class wt extends je {
|
|
|
444
472
|
);
|
|
445
473
|
}
|
|
446
474
|
);
|
|
447
|
-
return new
|
|
475
|
+
return new rt(e, this.name, {
|
|
448
476
|
filesize: s
|
|
449
477
|
});
|
|
450
478
|
} catch (u) {
|
|
@@ -465,7 +493,7 @@ Error details: ${u instanceof Error ? u.message : String(u)}`,
|
|
|
465
493
|
return !0;
|
|
466
494
|
}
|
|
467
495
|
}
|
|
468
|
-
const
|
|
496
|
+
const Tr = async (r, { pluginPath: t, pluginName: n }, d) => {
|
|
469
497
|
d == null || d.tracker.setCaption(`Activating ${n || t}`);
|
|
470
498
|
const u = await r.documentRoot, s = await r.run({
|
|
471
499
|
code: `<?php
|
|
@@ -556,7 +584,7 @@ const jr = async (r, { pluginPath: t, pluginName: n }, d) => {
|
|
|
556
584
|
throw e.text !== "false" && ae.debug(e.text), new Error(
|
|
557
585
|
`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.`
|
|
558
586
|
);
|
|
559
|
-
},
|
|
587
|
+
}, jr = async (r, { themeFolderName: t }, n) => {
|
|
560
588
|
n == null || n.tracker.setCaption(`Activating ${t}`);
|
|
561
589
|
const d = await r.documentRoot, u = `${d}/wp-content/themes/${t}`;
|
|
562
590
|
if (!await r.fileExists(u))
|
|
@@ -591,7 +619,7 @@ const jr = async (r, { pluginPath: t, pluginName: n }, d) => {
|
|
|
591
619
|
throw ae.debug(s), new Error(
|
|
592
620
|
`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`
|
|
593
621
|
);
|
|
594
|
-
},
|
|
622
|
+
}, Pt = async (r, { code: t }) => {
|
|
595
623
|
let n = typeof t == "string" ? t : t.content;
|
|
596
624
|
return (n.includes('"wordpress/wp-load.php"') || n.includes("'wordpress/wp-load.php'")) && (ae.error(
|
|
597
625
|
`
|
|
@@ -616,7 +644,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
616
644
|
'"wordpress/wp-load.php"',
|
|
617
645
|
'"/wordpress/wp-load.php"'
|
|
618
646
|
)), await r.run({ code: n });
|
|
619
|
-
},
|
|
647
|
+
}, _t = async (r, { options: t }) => await r.run(t), Er = async (r, { path: t }) => {
|
|
620
648
|
t.startsWith("/") || (ae.error(
|
|
621
649
|
`
|
|
622
650
|
The rm() step in your Blueprint refers to a relative path.
|
|
@@ -634,14 +662,14 @@ Use: rm({ path: '/wordpress/wp-load.php' });
|
|
|
634
662
|
This will ensure your code works reliably regardless of the current working directory.
|
|
635
663
|
`.trim()
|
|
636
664
|
), t = `/${t}`), await r.unlink(t);
|
|
637
|
-
},
|
|
665
|
+
}, kt = async (r, { sql: t }, n) => {
|
|
638
666
|
n == null || n.tracker.setCaption("Executing SQL Queries");
|
|
639
|
-
const d = `/tmp/${
|
|
667
|
+
const d = `/tmp/${pr()}.sql`;
|
|
640
668
|
await r.writeFile(
|
|
641
669
|
d,
|
|
642
670
|
new Uint8Array(await t.arrayBuffer())
|
|
643
671
|
);
|
|
644
|
-
const u = await r.documentRoot, s =
|
|
672
|
+
const u = await r.documentRoot, s = wr({ docroot: u, sqlFilename: d }), e = await r.run({
|
|
645
673
|
code: `<?php
|
|
646
674
|
require_once ${s.docroot} . '/wp-load.php';
|
|
647
675
|
|
|
@@ -659,8 +687,8 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
659
687
|
}
|
|
660
688
|
`
|
|
661
689
|
});
|
|
662
|
-
return await
|
|
663
|
-
},
|
|
690
|
+
return await Er(r, { path: d }), e;
|
|
691
|
+
}, Ot = async (r, { request: t }) => {
|
|
664
692
|
ae.warn(
|
|
665
693
|
'Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.'
|
|
666
694
|
);
|
|
@@ -670,14 +698,14 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
670
698
|
`Request failed with status ${n.httpStatusCode}`
|
|
671
699
|
);
|
|
672
700
|
return n;
|
|
673
|
-
},
|
|
701
|
+
}, dr = async (r, { consts: t, method: n = "define-before-run" }) => {
|
|
674
702
|
switch (n) {
|
|
675
703
|
case "define-before-run":
|
|
676
|
-
await
|
|
704
|
+
await Tt(r, t);
|
|
677
705
|
break;
|
|
678
706
|
case "rewrite-wp-config": {
|
|
679
707
|
const d = await r.documentRoot, u = ie(d, "/wp-config.php");
|
|
680
|
-
await
|
|
708
|
+
await tt(
|
|
681
709
|
r,
|
|
682
710
|
u,
|
|
683
711
|
t,
|
|
@@ -689,7 +717,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
689
717
|
throw new Error(`Invalid method: ${n}`);
|
|
690
718
|
}
|
|
691
719
|
};
|
|
692
|
-
async function
|
|
720
|
+
async function Tt(r, t) {
|
|
693
721
|
for (const n in t)
|
|
694
722
|
await r.defineConstant(n, t[n]);
|
|
695
723
|
}
|
|
@@ -705,7 +733,7 @@ const $r = async (r, { options: t }) => {
|
|
|
705
733
|
echo "Success";
|
|
706
734
|
`
|
|
707
735
|
});
|
|
708
|
-
},
|
|
736
|
+
}, jt = async (r, { meta: t, userId: n }) => {
|
|
709
737
|
const d = await r.documentRoot;
|
|
710
738
|
await r.run({
|
|
711
739
|
code: `<?php
|
|
@@ -716,7 +744,7 @@ const $r = async (r, { options: t }) => {
|
|
|
716
744
|
}
|
|
717
745
|
`
|
|
718
746
|
});
|
|
719
|
-
},
|
|
747
|
+
}, ur = "/tmp/wp-cli.phar", Et = {
|
|
720
748
|
resource: "url",
|
|
721
749
|
/**
|
|
722
750
|
* Use compression for downloading the wp-cli.phar file.
|
|
@@ -729,7 +757,7 @@ const $r = async (r, { options: t }) => {
|
|
|
729
757
|
* like the JavaScript parser or Composer are removed.
|
|
730
758
|
*/
|
|
731
759
|
url: "https://playground.wordpress.net/wp-cli.phar"
|
|
732
|
-
},
|
|
760
|
+
}, qr = async (r, t = ur) => {
|
|
733
761
|
if (!await r.fileExists(t))
|
|
734
762
|
throw new Error(`wp-cli.phar not found at ${t}.
|
|
735
763
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
@@ -738,13 +766,13 @@ const $r = async (r, { options: t }) => {
|
|
|
738
766
|
}
|
|
739
767
|
Read more about it in the documentation.
|
|
740
768
|
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`);
|
|
741
|
-
},
|
|
742
|
-
await
|
|
769
|
+
}, Ar = async (r, { command: t, wpCliPath: n = ur }) => {
|
|
770
|
+
await qr(r, n);
|
|
743
771
|
let d;
|
|
744
|
-
if (typeof t == "string" ? (t = t.trim(), d =
|
|
772
|
+
if (typeof t == "string" ? (t = t.trim(), d = $t(t)) : d = t, d.shift() !== "wp")
|
|
745
773
|
throw new Error('The first argument must be "wp".');
|
|
746
774
|
let s = !1;
|
|
747
|
-
const e = d.map((
|
|
775
|
+
const e = d.map((_) => _.startsWith("wordpress/") ? (s = !0, `/${_}`) : _);
|
|
748
776
|
s && ae.error(
|
|
749
777
|
`
|
|
750
778
|
The wp-cli step in your Blueprint refers to a relative path.
|
|
@@ -807,7 +835,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
807
835
|
throw new Error(c.errors);
|
|
808
836
|
return c;
|
|
809
837
|
};
|
|
810
|
-
function
|
|
838
|
+
function $t(r) {
|
|
811
839
|
let d = 0, u = "";
|
|
812
840
|
const s = [];
|
|
813
841
|
let e = "";
|
|
@@ -818,7 +846,7 @@ function Et(r) {
|
|
|
818
846
|
return e && s.push(e), s;
|
|
819
847
|
}
|
|
820
848
|
const qt = async (r, { wpCliPath: t }) => {
|
|
821
|
-
await
|
|
849
|
+
await qr(r, t), await dr(r, {
|
|
822
850
|
consts: {
|
|
823
851
|
WP_ALLOW_MULTISITE: 1
|
|
824
852
|
}
|
|
@@ -834,10 +862,10 @@ const qt = async (r, { wpCliPath: t }) => {
|
|
|
834
862
|
siteurl: u,
|
|
835
863
|
home: u
|
|
836
864
|
}
|
|
837
|
-
}), await
|
|
865
|
+
}), await Ar(r, {
|
|
838
866
|
command: "wp core multisite-convert"
|
|
839
867
|
});
|
|
840
|
-
},
|
|
868
|
+
}, At = async (r, { fromPath: t, toPath: n }) => {
|
|
841
869
|
(!t.startsWith("/") || !n.startsWith("/")) && ae.error(
|
|
842
870
|
`
|
|
843
871
|
The cp() step in your Blueprint refers to a relative path.
|
|
@@ -858,7 +886,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
858
886
|
n,
|
|
859
887
|
await r.readFileAsBuffer(t)
|
|
860
888
|
);
|
|
861
|
-
},
|
|
889
|
+
}, Rt = async (r, { fromPath: t, toPath: n }) => {
|
|
862
890
|
(!t.startsWith("/") || !n.startsWith("/")) && ae.error(
|
|
863
891
|
`
|
|
864
892
|
The mv() step in your Blueprint refers to a relative path.
|
|
@@ -876,7 +904,7 @@ Use: mv({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-loa
|
|
|
876
904
|
This will ensure your code works reliably regardless of the current working directory.
|
|
877
905
|
`.trim()
|
|
878
906
|
), t.startsWith("/") || (t = `/${t}`), n.startsWith("/") || (n = `/${n}`), await r.mv(t, n);
|
|
879
|
-
},
|
|
907
|
+
}, Lt = async (r, { path: t }) => {
|
|
880
908
|
t.startsWith("/") || ae.error(
|
|
881
909
|
`
|
|
882
910
|
The mkdir() step in your Blueprint refers to a relative path.
|
|
@@ -894,7 +922,7 @@ Use: mkdir({ path: '/wordpress/my-new-folder' });
|
|
|
894
922
|
This will ensure your code works reliably regardless of the current working directory.
|
|
895
923
|
`.trim()
|
|
896
924
|
), await r.mkdir(t);
|
|
897
|
-
},
|
|
925
|
+
}, Ft = async (r, { path: t }) => {
|
|
898
926
|
t.startsWith("/") || (ae.error(
|
|
899
927
|
`
|
|
900
928
|
The rmdir() step in your Blueprint refers to a relative path.
|
|
@@ -912,7 +940,7 @@ Use: rmdir({ path: '/wordpress/wp-load.php' });
|
|
|
912
940
|
This will ensure your code works reliably regardless of the current working directory.
|
|
913
941
|
`.trim()
|
|
914
942
|
), t = `/${t}`), await r.rmdir(t);
|
|
915
|
-
},
|
|
943
|
+
}, cr = async (r, { path: t, data: n }) => {
|
|
916
944
|
n instanceof File && (n = new Uint8Array(await n.arrayBuffer())), t.startsWith("/") || (ae.error(
|
|
917
945
|
`
|
|
918
946
|
The writeFile() step in your Blueprint refers to a relative path.
|
|
@@ -930,7 +958,7 @@ Use: writeFile({ path: '/wordpress/wp-load.php', data: '<?php echo "Hell
|
|
|
930
958
|
This will ensure your code works reliably regardless of the current working directory.
|
|
931
959
|
`.trim()
|
|
932
960
|
), 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, n);
|
|
933
|
-
},
|
|
961
|
+
}, St = async (r, { writeToPath: t, filesTree: n }) => {
|
|
934
962
|
t.startsWith("/") || (ae.error(
|
|
935
963
|
`
|
|
936
964
|
The writeFiles() step in your Blueprint refers to a relative path.
|
|
@@ -947,20 +975,20 @@ Use: writeFiles({ writeToPath: '/wordpress/wp-content/plugins/my-plugin'
|
|
|
947
975
|
|
|
948
976
|
This will ensure your code works reliably regardless of the current working directory.
|
|
949
977
|
`.trim()
|
|
950
|
-
), t = `/${t}`), await
|
|
951
|
-
},
|
|
952
|
-
await
|
|
978
|
+
), t = `/${t}`), await lr(r, t, n.files);
|
|
979
|
+
}, Rr = async (r, { siteUrl: t }) => {
|
|
980
|
+
await dr(r, {
|
|
953
981
|
consts: {
|
|
954
982
|
WP_HOME: t,
|
|
955
983
|
WP_SITEURL: t
|
|
956
984
|
}
|
|
957
985
|
});
|
|
958
|
-
},
|
|
959
|
-
await
|
|
986
|
+
}, Nt = async (r, { file: t }, n) => {
|
|
987
|
+
await xt(r, t, n);
|
|
960
988
|
};
|
|
961
|
-
async function
|
|
989
|
+
async function xt(r, t, n) {
|
|
962
990
|
var d;
|
|
963
|
-
(d = n == null ? void 0 : n.tracker) == null || d.setCaption("Importing content"), await
|
|
991
|
+
(d = n == null ? void 0 : n.tracker) == null || d.setCaption("Importing content"), await cr(r, {
|
|
964
992
|
path: "/tmp/import.wxr",
|
|
965
993
|
data: t
|
|
966
994
|
}), await r.run({
|
|
@@ -1020,7 +1048,7 @@ async function Nt(r, t, n) {
|
|
|
1020
1048
|
}
|
|
1021
1049
|
});
|
|
1022
1050
|
}
|
|
1023
|
-
const
|
|
1051
|
+
const Lr = async (r, { themeSlug: t = "" }, n) => {
|
|
1024
1052
|
var u;
|
|
1025
1053
|
(u = n == null ? void 0 : n.tracker) == null || u.setCaption("Importing theme starter content");
|
|
1026
1054
|
const d = await r.documentRoot;
|
|
@@ -1074,15 +1102,15 @@ const Fr = async (r, { themeSlug: t = "" }, n) => {
|
|
|
1074
1102
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
1075
1103
|
`
|
|
1076
1104
|
});
|
|
1077
|
-
},
|
|
1105
|
+
}, mr = async (r, { zipFile: t, zipPath: n, extractToPath: d }) => {
|
|
1078
1106
|
if (n)
|
|
1079
1107
|
ae.warn(
|
|
1080
1108
|
'The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.'
|
|
1081
1109
|
);
|
|
1082
1110
|
else if (!t)
|
|
1083
1111
|
throw new Error("Either zipPath or zipFile must be provided");
|
|
1084
|
-
await
|
|
1085
|
-
},
|
|
1112
|
+
await Pr(r, t || n, d);
|
|
1113
|
+
}, Fr = [
|
|
1086
1114
|
"db.php",
|
|
1087
1115
|
"plugins/akismet",
|
|
1088
1116
|
"plugins/hello.php",
|
|
@@ -1103,22 +1131,22 @@ const Fr = async (r, { themeSlug: t = "" }, n) => {
|
|
|
1103
1131
|
"themes/twentytwentyfour",
|
|
1104
1132
|
"themes/twentytwentyfive",
|
|
1105
1133
|
"themes/twentytwentysix"
|
|
1106
|
-
],
|
|
1134
|
+
], Ct = async (r, { wordPressFilesZip: t, pathInZip: n = "" }) => {
|
|
1107
1135
|
const d = await r.documentRoot;
|
|
1108
1136
|
let u = ie("/tmp", "import");
|
|
1109
|
-
await r.mkdir(u), await
|
|
1137
|
+
await r.mkdir(u), await mr(r, {
|
|
1110
1138
|
zipFile: t,
|
|
1111
1139
|
extractToPath: u
|
|
1112
1140
|
}), u = ie(u, n);
|
|
1113
1141
|
const s = ie(u, "wp-content"), e = ie(d, "wp-content");
|
|
1114
|
-
for (const
|
|
1142
|
+
for (const q of Fr) {
|
|
1115
1143
|
const j = ie(
|
|
1116
1144
|
s,
|
|
1117
|
-
|
|
1145
|
+
q
|
|
1118
1146
|
);
|
|
1119
|
-
await
|
|
1120
|
-
const
|
|
1121
|
-
await r.fileExists(
|
|
1147
|
+
await hr(r, j);
|
|
1148
|
+
const k = ie(e, q);
|
|
1149
|
+
await r.fileExists(k) && (await r.mkdir(Br(j)), await r.mv(k, j));
|
|
1122
1150
|
}
|
|
1123
1151
|
const l = ie(
|
|
1124
1152
|
u,
|
|
@@ -1130,60 +1158,60 @@ const Fr = async (r, { themeSlug: t = "" }, n) => {
|
|
|
1130
1158
|
l
|
|
1131
1159
|
);
|
|
1132
1160
|
const c = await r.listFiles(u);
|
|
1133
|
-
for (const
|
|
1134
|
-
await
|
|
1135
|
-
ie(u,
|
|
1136
|
-
ie(d,
|
|
1161
|
+
for (const q of c)
|
|
1162
|
+
await hr(r, ie(d, q)), await r.mv(
|
|
1163
|
+
ie(u, q),
|
|
1164
|
+
ie(d, q)
|
|
1137
1165
|
);
|
|
1138
|
-
await r.rmdir(u), await
|
|
1166
|
+
await r.rmdir(u), await st(r, d), await Rr(r, {
|
|
1139
1167
|
siteUrl: await r.absoluteUrl
|
|
1140
1168
|
});
|
|
1141
|
-
const
|
|
1169
|
+
const _ = ge(
|
|
1142
1170
|
ie(d, "wp-admin", "upgrade.php")
|
|
1143
1171
|
);
|
|
1144
1172
|
await r.run({
|
|
1145
1173
|
code: `<?php
|
|
1146
1174
|
$_GET['step'] = 'upgrade_db';
|
|
1147
|
-
require ${
|
|
1175
|
+
require ${_};
|
|
1148
1176
|
`
|
|
1149
1177
|
});
|
|
1150
1178
|
};
|
|
1151
|
-
async function
|
|
1179
|
+
async function hr(r, t) {
|
|
1152
1180
|
await r.fileExists(t) && (await r.isDir(t) ? await r.rmdir(t) : await r.unlink(t));
|
|
1153
1181
|
}
|
|
1154
|
-
async function
|
|
1182
|
+
async function Dt(r) {
|
|
1155
1183
|
const t = await r.request({
|
|
1156
1184
|
url: "/wp-admin/export.php?download=true&content=all"
|
|
1157
1185
|
});
|
|
1158
1186
|
return new File([t.bytes], "export.xml");
|
|
1159
1187
|
}
|
|
1160
|
-
async function
|
|
1188
|
+
async function Sr(r, {
|
|
1161
1189
|
targetPath: t,
|
|
1162
1190
|
zipFile: n,
|
|
1163
1191
|
ifAlreadyInstalled: d = "overwrite",
|
|
1164
1192
|
targetFolderName: u = ""
|
|
1165
1193
|
}) {
|
|
1166
|
-
const e = n.name.replace(/\.zip$/, ""), l = ie(await r.documentRoot, "wp-content"), c = ie(l,
|
|
1167
|
-
await r.fileExists(
|
|
1194
|
+
const e = n.name.replace(/\.zip$/, ""), l = ie(await r.documentRoot, "wp-content"), c = ie(l, pr()), _ = ie(c, "assets", e);
|
|
1195
|
+
await r.fileExists(_) && await r.rmdir(c, {
|
|
1168
1196
|
recursive: !0
|
|
1169
1197
|
}), await r.mkdir(c);
|
|
1170
1198
|
try {
|
|
1171
|
-
await
|
|
1199
|
+
await mr(r, {
|
|
1172
1200
|
zipFile: n,
|
|
1173
|
-
extractToPath:
|
|
1201
|
+
extractToPath: _
|
|
1174
1202
|
});
|
|
1175
|
-
let
|
|
1203
|
+
let q = await r.listFiles(_, {
|
|
1176
1204
|
prependPath: !0
|
|
1177
1205
|
});
|
|
1178
|
-
|
|
1179
|
-
const j =
|
|
1180
|
-
let
|
|
1181
|
-
j ? (R =
|
|
1182
|
-
const L = `${t}/${
|
|
1206
|
+
q = q.filter((v) => !v.endsWith("/__MACOSX"));
|
|
1207
|
+
const j = q.length === 1 && await r.isDir(q[0]);
|
|
1208
|
+
let k, R = "";
|
|
1209
|
+
j ? (R = q[0], k = q[0].split("/").pop()) : (R = _, k = e), u && u.length && (k = u);
|
|
1210
|
+
const L = `${t}/${k}`;
|
|
1183
1211
|
if (await r.fileExists(L)) {
|
|
1184
1212
|
if (!await r.isDir(L))
|
|
1185
1213
|
throw new Error(
|
|
1186
|
-
`Cannot install asset ${
|
|
1214
|
+
`Cannot install asset ${k} to ${L} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`
|
|
1187
1215
|
);
|
|
1188
1216
|
if (d === "overwrite")
|
|
1189
1217
|
await r.rmdir(L, {
|
|
@@ -1193,16 +1221,16 @@ async function Nr(r, {
|
|
|
1193
1221
|
if (d === "skip")
|
|
1194
1222
|
return {
|
|
1195
1223
|
assetFolderPath: L,
|
|
1196
|
-
assetFolderName:
|
|
1224
|
+
assetFolderName: k
|
|
1197
1225
|
};
|
|
1198
1226
|
throw new Error(
|
|
1199
|
-
`Cannot install asset ${
|
|
1227
|
+
`Cannot install asset ${k} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${d}`
|
|
1200
1228
|
);
|
|
1201
1229
|
}
|
|
1202
1230
|
}
|
|
1203
1231
|
return await r.mv(R, L), {
|
|
1204
1232
|
assetFolderPath: L,
|
|
1205
|
-
assetFolderName:
|
|
1233
|
+
assetFolderName: k
|
|
1206
1234
|
};
|
|
1207
1235
|
} finally {
|
|
1208
1236
|
await r.rmdir(c, {
|
|
@@ -1210,7 +1238,7 @@ async function Nr(r, {
|
|
|
1210
1238
|
});
|
|
1211
1239
|
}
|
|
1212
1240
|
}
|
|
1213
|
-
const
|
|
1241
|
+
const It = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, options: u = {} }, s) => {
|
|
1214
1242
|
n && (t = n, ae.warn(
|
|
1215
1243
|
'The "pluginZipFile" option is deprecated. Use "pluginData" instead.'
|
|
1216
1244
|
));
|
|
@@ -1219,58 +1247,58 @@ const Dt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
1219
1247
|
"wp-content",
|
|
1220
1248
|
"plugins"
|
|
1221
1249
|
), l = "targetFolderName" in u ? u.targetFolderName : "";
|
|
1222
|
-
let c = "",
|
|
1223
|
-
const
|
|
1224
|
-
if (
|
|
1250
|
+
let c = "", _ = "";
|
|
1251
|
+
const q = async (k) => {
|
|
1252
|
+
if (k.name.toLowerCase().endsWith(".zip"))
|
|
1225
1253
|
return !0;
|
|
1226
|
-
const R = new Uint8Array(await
|
|
1254
|
+
const R = new Uint8Array(await k.arrayBuffer(), 0, 4);
|
|
1227
1255
|
return R[0] === 80 && R[1] === 75 && R[2] === 3 && R[3] === 4;
|
|
1228
1256
|
};
|
|
1229
1257
|
if (t instanceof File)
|
|
1230
|
-
if (await
|
|
1231
|
-
const
|
|
1232
|
-
|
|
1233
|
-
`Installing the ${
|
|
1258
|
+
if (await q(t)) {
|
|
1259
|
+
const k = t.name.split("/").pop() || "plugin.zip";
|
|
1260
|
+
_ = sr(k), s == null || s.tracker.setCaption(
|
|
1261
|
+
`Installing the ${_} plugin`
|
|
1234
1262
|
);
|
|
1235
|
-
const R = await
|
|
1263
|
+
const R = await Sr(r, {
|
|
1236
1264
|
ifAlreadyInstalled: d,
|
|
1237
1265
|
zipFile: t,
|
|
1238
1266
|
targetPath: `${await r.documentRoot}/wp-content/plugins`,
|
|
1239
1267
|
targetFolderName: l
|
|
1240
1268
|
});
|
|
1241
|
-
c = R.assetFolderPath,
|
|
1269
|
+
c = R.assetFolderPath, _ = R.assetFolderName;
|
|
1242
1270
|
} else if (t.name.endsWith(".php")) {
|
|
1243
|
-
const
|
|
1271
|
+
const k = ie(
|
|
1244
1272
|
e,
|
|
1245
1273
|
t.name
|
|
1246
1274
|
);
|
|
1247
|
-
await
|
|
1248
|
-
path:
|
|
1275
|
+
await cr(r, {
|
|
1276
|
+
path: k,
|
|
1249
1277
|
data: t
|
|
1250
|
-
}), c = e,
|
|
1278
|
+
}), c = e, _ = t.name;
|
|
1251
1279
|
} else
|
|
1252
1280
|
throw new Error(
|
|
1253
1281
|
"pluginData looks like a file but does not look like a .zip or .php file."
|
|
1254
1282
|
);
|
|
1255
1283
|
else if (t) {
|
|
1256
|
-
|
|
1257
|
-
const
|
|
1284
|
+
_ = t.name, s == null || s.tracker.setCaption(`Installing the ${_} plugin`);
|
|
1285
|
+
const k = ie(
|
|
1258
1286
|
e,
|
|
1259
1287
|
l || t.name
|
|
1260
1288
|
);
|
|
1261
|
-
await
|
|
1289
|
+
await lr(r, k, t.files, {
|
|
1262
1290
|
rmRoot: !0
|
|
1263
|
-
}), c =
|
|
1291
|
+
}), c = k;
|
|
1264
1292
|
}
|
|
1265
|
-
("activate" in u ? u.activate : !0) && await
|
|
1293
|
+
("activate" in u ? u.activate : !0) && await Tr(
|
|
1266
1294
|
r,
|
|
1267
1295
|
{
|
|
1268
1296
|
pluginPath: c,
|
|
1269
|
-
pluginName:
|
|
1297
|
+
pluginName: _
|
|
1270
1298
|
},
|
|
1271
1299
|
s
|
|
1272
1300
|
);
|
|
1273
|
-
},
|
|
1301
|
+
}, Wt = async (r, { themeData: t, themeZipFile: n, ifAlreadyInstalled: d, options: u = {} }, s) => {
|
|
1274
1302
|
n && (t = n, ae.warn(
|
|
1275
1303
|
'The "themeZipFile" option is deprecated. Use "themeData" instead.'
|
|
1276
1304
|
));
|
|
@@ -1278,7 +1306,7 @@ const Dt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
1278
1306
|
let l = "", c = "";
|
|
1279
1307
|
if (t instanceof File) {
|
|
1280
1308
|
const j = t.name.split("/").pop() || "theme.zip";
|
|
1281
|
-
c = sr(j), s == null || s.tracker.setCaption(`Installing the ${c} theme`), l = (await
|
|
1309
|
+
c = sr(j), s == null || s.tracker.setCaption(`Installing the ${c} theme`), l = (await Sr(r, {
|
|
1282
1310
|
ifAlreadyInstalled: d,
|
|
1283
1311
|
zipFile: t,
|
|
1284
1312
|
targetPath: `${await r.documentRoot}/wp-content/themes`,
|
|
@@ -1292,26 +1320,26 @@ const Dt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
1292
1320
|
"themes",
|
|
1293
1321
|
l
|
|
1294
1322
|
);
|
|
1295
|
-
await
|
|
1323
|
+
await lr(r, j, t.files, {
|
|
1296
1324
|
rmRoot: !0
|
|
1297
1325
|
});
|
|
1298
1326
|
}
|
|
1299
|
-
("activate" in u ? u.activate : !0) && await
|
|
1327
|
+
("activate" in u ? u.activate : !0) && await jr(
|
|
1300
1328
|
r,
|
|
1301
1329
|
{
|
|
1302
1330
|
themeFolderName: l
|
|
1303
1331
|
},
|
|
1304
1332
|
s
|
|
1305
|
-
), ("importStarterContent" in u ? u.importStarterContent : !1) && await
|
|
1333
|
+
), ("importStarterContent" in u ? u.importStarterContent : !1) && await Lr(
|
|
1306
1334
|
r,
|
|
1307
1335
|
{
|
|
1308
1336
|
themeSlug: l
|
|
1309
1337
|
},
|
|
1310
1338
|
s
|
|
1311
1339
|
);
|
|
1312
|
-
},
|
|
1340
|
+
}, Ut = async (r, { username: t = "admin" } = {}, n) => {
|
|
1313
1341
|
n == null || n.tracker.setCaption((n == null ? void 0 : n.initialCaption) || "Logging in"), r.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER", t);
|
|
1314
|
-
},
|
|
1342
|
+
}, Bt = async (r, t, n) => {
|
|
1315
1343
|
var u;
|
|
1316
1344
|
(u = n == null ? void 0 : n.tracker) == null || u.setCaption("Resetting WordPress data");
|
|
1317
1345
|
const d = await r.documentRoot;
|
|
@@ -1335,7 +1363,7 @@ const Dt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
1335
1363
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
1336
1364
|
`
|
|
1337
1365
|
});
|
|
1338
|
-
},
|
|
1366
|
+
}, Mt = async (r, { options: t }) => {
|
|
1339
1367
|
await r.request({
|
|
1340
1368
|
url: "/wp-admin/install.php?step=2",
|
|
1341
1369
|
method: "POST",
|
|
@@ -1352,13 +1380,13 @@ const Dt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
1352
1380
|
admin_email: "admin@localhost.com"
|
|
1353
1381
|
}
|
|
1354
1382
|
});
|
|
1355
|
-
},
|
|
1383
|
+
}, zt = async (r, { selfContained: t = !1 } = {}) => {
|
|
1356
1384
|
const n = "/tmp/wordpress-playground.zip", d = await r.documentRoot, u = ie(d, "wp-content");
|
|
1357
|
-
let s =
|
|
1385
|
+
let s = Fr;
|
|
1358
1386
|
t && (s = s.filter((c) => !c.startsWith("themes/twenty")).filter(
|
|
1359
1387
|
(c) => c !== "mu-plugins/sqlite-database-integration"
|
|
1360
1388
|
));
|
|
1361
|
-
const e =
|
|
1389
|
+
const e = wr({
|
|
1362
1390
|
zipPath: n,
|
|
1363
1391
|
wpContentPath: u,
|
|
1364
1392
|
documentRoot: d,
|
|
@@ -1369,7 +1397,7 @@ const Dt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
1369
1397
|
[ie(d, "wp-config.php")]: "wp-config.php"
|
|
1370
1398
|
} : {}
|
|
1371
1399
|
});
|
|
1372
|
-
await
|
|
1400
|
+
await Ht(
|
|
1373
1401
|
r,
|
|
1374
1402
|
`zipDir(${e.wpContentPath}, ${e.zipPath}, array(
|
|
1375
1403
|
'exclude_paths' => ${e.exceptPaths},
|
|
@@ -1379,7 +1407,7 @@ const Dt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
1379
1407
|
);
|
|
1380
1408
|
const l = await r.readFileAsBuffer(n);
|
|
1381
1409
|
return r.unlink(n), l;
|
|
1382
|
-
},
|
|
1410
|
+
}, Vt = `<?php
|
|
1383
1411
|
|
|
1384
1412
|
function zipDir($root, $output, $options = array())
|
|
1385
1413
|
{
|
|
@@ -1440,12 +1468,12 @@ function join_paths()
|
|
|
1440
1468
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
1441
1469
|
}
|
|
1442
1470
|
`;
|
|
1443
|
-
async function
|
|
1471
|
+
async function Ht(r, t) {
|
|
1444
1472
|
return await r.run({
|
|
1445
|
-
code:
|
|
1473
|
+
code: Vt + t
|
|
1446
1474
|
});
|
|
1447
1475
|
}
|
|
1448
|
-
const
|
|
1476
|
+
const Zt = async (r, t) => {
|
|
1449
1477
|
const u = (await (await fetch(
|
|
1450
1478
|
`https://api.wordpress.org/translations/core/1.0/?version=${r}`
|
|
1451
1479
|
)).json()).translations.find(
|
|
@@ -1456,7 +1484,7 @@ const Ht = async (r, t) => {
|
|
|
1456
1484
|
`Failed to get ${t} translation package for WordPress ${r}.`
|
|
1457
1485
|
);
|
|
1458
1486
|
return u.package;
|
|
1459
|
-
},
|
|
1487
|
+
}, Yt = async (r, { language: t }, n) => {
|
|
1460
1488
|
n == null || n.tracker.setCaption((n == null ? void 0 : n.initialCaption) || "Translating"), await r.defineConstant("WPLANG", t);
|
|
1461
1489
|
const d = await r.documentRoot, u = (await r.run({
|
|
1462
1490
|
code: `<?php
|
|
@@ -1465,7 +1493,7 @@ const Ht = async (r, t) => {
|
|
|
1465
1493
|
`
|
|
1466
1494
|
})).text, s = [
|
|
1467
1495
|
{
|
|
1468
|
-
url: await
|
|
1496
|
+
url: await Zt(u, t),
|
|
1469
1497
|
type: "core"
|
|
1470
1498
|
}
|
|
1471
1499
|
], l = (await r.run({
|
|
@@ -1491,12 +1519,12 @@ const Ht = async (r, t) => {
|
|
|
1491
1519
|
)
|
|
1492
1520
|
);`
|
|
1493
1521
|
})).json;
|
|
1494
|
-
for (const { slug:
|
|
1522
|
+
for (const { slug: k, version: R } of l)
|
|
1495
1523
|
s.push({
|
|
1496
|
-
url: `https://downloads.wordpress.org/translation/plugin/${
|
|
1524
|
+
url: `https://downloads.wordpress.org/translation/plugin/${k}/${R}/${t}.zip`,
|
|
1497
1525
|
type: "plugin"
|
|
1498
1526
|
});
|
|
1499
|
-
const
|
|
1527
|
+
const _ = (await r.run({
|
|
1500
1528
|
code: `<?php
|
|
1501
1529
|
require_once('${d}/wp-load.php');
|
|
1502
1530
|
require_once('${d}/wp-admin/includes/theme.php');
|
|
@@ -1514,22 +1542,22 @@ const Ht = async (r, t) => {
|
|
|
1514
1542
|
)
|
|
1515
1543
|
);`
|
|
1516
1544
|
})).json;
|
|
1517
|
-
for (const { slug:
|
|
1545
|
+
for (const { slug: k, version: R } of _)
|
|
1518
1546
|
s.push({
|
|
1519
|
-
url: `https://downloads.wordpress.org/translation/theme/${
|
|
1547
|
+
url: `https://downloads.wordpress.org/translation/theme/${k}/${R}/${t}.zip`,
|
|
1520
1548
|
type: "theme"
|
|
1521
1549
|
});
|
|
1522
1550
|
await r.isDir(`${d}/wp-content/languages/plugins`) || await r.mkdir(`${d}/wp-content/languages/plugins`), await r.isDir(`${d}/wp-content/languages/themes`) || await r.mkdir(`${d}/wp-content/languages/themes`);
|
|
1523
|
-
const
|
|
1524
|
-
({ url:
|
|
1551
|
+
const q = new vr({ concurrency: 5 }), j = s.map(
|
|
1552
|
+
({ url: k, type: R }) => q.run(async () => {
|
|
1525
1553
|
try {
|
|
1526
|
-
const L = await fetch(
|
|
1554
|
+
const L = await fetch(k);
|
|
1527
1555
|
if (!L.ok)
|
|
1528
1556
|
throw new Error(
|
|
1529
1557
|
`Failed to download translations for ${R}: ${L.statusText}`
|
|
1530
1558
|
);
|
|
1531
1559
|
let v = `${d}/wp-content/languages`;
|
|
1532
|
-
R === "plugin" ? v += "/plugins" : R === "theme" && (v += "/themes"), await
|
|
1560
|
+
R === "plugin" ? v += "/plugins" : R === "theme" && (v += "/themes"), await Pr(
|
|
1533
1561
|
r,
|
|
1534
1562
|
new File(
|
|
1535
1563
|
[await L.blob()],
|
|
@@ -1549,40 +1577,40 @@ const Ht = async (r, t) => {
|
|
|
1549
1577
|
})
|
|
1550
1578
|
);
|
|
1551
1579
|
await Promise.all(j);
|
|
1552
|
-
},
|
|
1580
|
+
}, Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1553
1581
|
__proto__: null,
|
|
1554
|
-
activatePlugin:
|
|
1555
|
-
activateTheme:
|
|
1556
|
-
cp:
|
|
1557
|
-
defineSiteUrl:
|
|
1558
|
-
defineWpConfigConsts:
|
|
1582
|
+
activatePlugin: Tr,
|
|
1583
|
+
activateTheme: jr,
|
|
1584
|
+
cp: At,
|
|
1585
|
+
defineSiteUrl: Rr,
|
|
1586
|
+
defineWpConfigConsts: dr,
|
|
1559
1587
|
enableMultisite: qt,
|
|
1560
|
-
exportWXR:
|
|
1561
|
-
importThemeStarterContent:
|
|
1562
|
-
importWordPressFiles:
|
|
1563
|
-
importWxr:
|
|
1564
|
-
installPlugin:
|
|
1565
|
-
installTheme:
|
|
1566
|
-
login:
|
|
1567
|
-
mkdir:
|
|
1568
|
-
mv:
|
|
1569
|
-
request:
|
|
1570
|
-
resetData:
|
|
1571
|
-
rm:
|
|
1572
|
-
rmdir:
|
|
1573
|
-
runPHP:
|
|
1574
|
-
runPHPWithOptions:
|
|
1575
|
-
runSql:
|
|
1576
|
-
runWpInstallationWizard:
|
|
1577
|
-
setSiteLanguage:
|
|
1588
|
+
exportWXR: Dt,
|
|
1589
|
+
importThemeStarterContent: Lr,
|
|
1590
|
+
importWordPressFiles: Ct,
|
|
1591
|
+
importWxr: Nt,
|
|
1592
|
+
installPlugin: It,
|
|
1593
|
+
installTheme: Wt,
|
|
1594
|
+
login: Ut,
|
|
1595
|
+
mkdir: Lt,
|
|
1596
|
+
mv: Rt,
|
|
1597
|
+
request: Ot,
|
|
1598
|
+
resetData: Bt,
|
|
1599
|
+
rm: Er,
|
|
1600
|
+
rmdir: Ft,
|
|
1601
|
+
runPHP: Pt,
|
|
1602
|
+
runPHPWithOptions: _t,
|
|
1603
|
+
runSql: kt,
|
|
1604
|
+
runWpInstallationWizard: Mt,
|
|
1605
|
+
setSiteLanguage: Yt,
|
|
1578
1606
|
setSiteOptions: $r,
|
|
1579
|
-
unzip:
|
|
1580
|
-
updateUserMeta:
|
|
1581
|
-
wpCLI:
|
|
1582
|
-
writeFile:
|
|
1583
|
-
writeFiles:
|
|
1584
|
-
zipWpContent:
|
|
1585
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1607
|
+
unzip: mr,
|
|
1608
|
+
updateUserMeta: jt,
|
|
1609
|
+
wpCLI: Ar,
|
|
1610
|
+
writeFile: cr,
|
|
1611
|
+
writeFiles: St,
|
|
1612
|
+
zipWpContent: zt
|
|
1613
|
+
}, Symbol.toStringTag, { value: "Module" })), Qt = {
|
|
1586
1614
|
properties: {
|
|
1587
1615
|
landingPage: {
|
|
1588
1616
|
type: "string",
|
|
@@ -1708,16 +1736,16 @@ const Ht = async (r, t) => {
|
|
|
1708
1736
|
},
|
|
1709
1737
|
$schema: { type: "string" }
|
|
1710
1738
|
}
|
|
1711
|
-
}, Qt = {
|
|
1712
|
-
enum: ["8.4", "8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2"]
|
|
1713
1739
|
}, Jt = {
|
|
1740
|
+
enum: ["8.4", "8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2"]
|
|
1741
|
+
}, Xt = {
|
|
1714
1742
|
additionalProperties: { type: ["string", "boolean", "number"] }
|
|
1715
|
-
},
|
|
1743
|
+
}, Nr = Object.prototype.hasOwnProperty;
|
|
1716
1744
|
function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, rootData: u = r } = {}) {
|
|
1717
1745
|
let s = null, e = 0;
|
|
1718
1746
|
const l = e;
|
|
1719
1747
|
let c = !1;
|
|
1720
|
-
const
|
|
1748
|
+
const _ = e;
|
|
1721
1749
|
if (e === e)
|
|
1722
1750
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
1723
1751
|
let U;
|
|
@@ -1799,8 +1827,8 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1799
1827
|
};
|
|
1800
1828
|
s === null ? s = [U] : s.push(U), e++;
|
|
1801
1829
|
}
|
|
1802
|
-
var
|
|
1803
|
-
if (c = c ||
|
|
1830
|
+
var k = _ === e;
|
|
1831
|
+
if (c = c || k, !c) {
|
|
1804
1832
|
const U = e;
|
|
1805
1833
|
if (e === e)
|
|
1806
1834
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
@@ -2169,8 +2197,8 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2169
2197
|
};
|
|
2170
2198
|
s === null ? s = [N] : s.push(N), e++;
|
|
2171
2199
|
}
|
|
2172
|
-
var
|
|
2173
|
-
if (c = c ||
|
|
2200
|
+
var k = U === e;
|
|
2201
|
+
if (c = c || k, !c) {
|
|
2174
2202
|
const N = e;
|
|
2175
2203
|
if (e === e)
|
|
2176
2204
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
@@ -2203,17 +2231,17 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2203
2231
|
let y = r.resource;
|
|
2204
2232
|
const g = e;
|
|
2205
2233
|
if (typeof y != "string") {
|
|
2206
|
-
const
|
|
2234
|
+
const $ = {
|
|
2207
2235
|
instancePath: t + "/resource",
|
|
2208
2236
|
schemaPath: "#/definitions/CoreThemeReference/properties/resource/type",
|
|
2209
2237
|
keyword: "type",
|
|
2210
2238
|
params: { type: "string" },
|
|
2211
2239
|
message: "must be string"
|
|
2212
2240
|
};
|
|
2213
|
-
s === null ? s = [
|
|
2241
|
+
s === null ? s = [$] : s.push($), e++;
|
|
2214
2242
|
}
|
|
2215
2243
|
if (y !== "wordpress.org/themes") {
|
|
2216
|
-
const
|
|
2244
|
+
const $ = {
|
|
2217
2245
|
instancePath: t + "/resource",
|
|
2218
2246
|
schemaPath: "#/definitions/CoreThemeReference/properties/resource/const",
|
|
2219
2247
|
keyword: "const",
|
|
@@ -2222,7 +2250,7 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2222
2250
|
},
|
|
2223
2251
|
message: "must be equal to constant"
|
|
2224
2252
|
};
|
|
2225
|
-
s === null ? s = [
|
|
2253
|
+
s === null ? s = [$] : s.push($), e++;
|
|
2226
2254
|
}
|
|
2227
2255
|
var te = g === e;
|
|
2228
2256
|
} else
|
|
@@ -2231,14 +2259,14 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2231
2259
|
if (r.slug !== void 0) {
|
|
2232
2260
|
const y = e;
|
|
2233
2261
|
if (typeof r.slug != "string") {
|
|
2234
|
-
const
|
|
2262
|
+
const $ = {
|
|
2235
2263
|
instancePath: t + "/slug",
|
|
2236
2264
|
schemaPath: "#/definitions/CoreThemeReference/properties/slug/type",
|
|
2237
2265
|
keyword: "type",
|
|
2238
2266
|
params: { type: "string" },
|
|
2239
2267
|
message: "must be string"
|
|
2240
2268
|
};
|
|
2241
|
-
s === null ? s = [
|
|
2269
|
+
s === null ? s = [$] : s.push($), e++;
|
|
2242
2270
|
}
|
|
2243
2271
|
var te = y === e;
|
|
2244
2272
|
} else
|
|
@@ -2255,23 +2283,23 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2255
2283
|
};
|
|
2256
2284
|
s === null ? s = [P] : s.push(P), e++;
|
|
2257
2285
|
}
|
|
2258
|
-
var
|
|
2259
|
-
if (c = c ||
|
|
2286
|
+
var k = N === e;
|
|
2287
|
+
if (c = c || k, !c) {
|
|
2260
2288
|
const P = e;
|
|
2261
2289
|
if (e === e)
|
|
2262
2290
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
2263
2291
|
let g;
|
|
2264
2292
|
if (r.resource === void 0 && (g = "resource") || r.slug === void 0 && (g = "slug")) {
|
|
2265
|
-
const
|
|
2293
|
+
const $ = {
|
|
2266
2294
|
instancePath: t,
|
|
2267
2295
|
schemaPath: "#/definitions/CorePluginReference/required",
|
|
2268
2296
|
keyword: "required",
|
|
2269
2297
|
params: { missingProperty: g },
|
|
2270
2298
|
message: "must have required property '" + g + "'"
|
|
2271
2299
|
};
|
|
2272
|
-
s === null ? s = [
|
|
2300
|
+
s === null ? s = [$] : s.push($), e++;
|
|
2273
2301
|
} else {
|
|
2274
|
-
const
|
|
2302
|
+
const $ = e;
|
|
2275
2303
|
for (const F in r)
|
|
2276
2304
|
if (!(F === "resource" || F === "slug")) {
|
|
2277
2305
|
const C = {
|
|
@@ -2284,7 +2312,7 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2284
2312
|
s === null ? s = [C] : s.push(C), e++;
|
|
2285
2313
|
break;
|
|
2286
2314
|
}
|
|
2287
|
-
if (
|
|
2315
|
+
if ($ === e) {
|
|
2288
2316
|
if (r.resource !== void 0) {
|
|
2289
2317
|
let F = r.resource;
|
|
2290
2318
|
const C = e;
|
|
@@ -2341,8 +2369,8 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2341
2369
|
};
|
|
2342
2370
|
s === null ? s = [g] : s.push(g), e++;
|
|
2343
2371
|
}
|
|
2344
|
-
var
|
|
2345
|
-
if (c = c ||
|
|
2372
|
+
var k = P === e;
|
|
2373
|
+
if (c = c || k, !c) {
|
|
2346
2374
|
const g = e;
|
|
2347
2375
|
if (e === e)
|
|
2348
2376
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
@@ -2446,8 +2474,8 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2446
2474
|
};
|
|
2447
2475
|
s === null ? s = [C] : s.push(C), e++;
|
|
2448
2476
|
}
|
|
2449
|
-
var
|
|
2450
|
-
if (c = c ||
|
|
2477
|
+
var k = g === e;
|
|
2478
|
+
if (c = c || k, !c) {
|
|
2451
2479
|
const C = e;
|
|
2452
2480
|
if (e === e)
|
|
2453
2481
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
@@ -2536,8 +2564,8 @@ function J(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2536
2564
|
};
|
|
2537
2565
|
s === null ? s = [D] : s.push(D), e++;
|
|
2538
2566
|
}
|
|
2539
|
-
var
|
|
2540
|
-
c = c ||
|
|
2567
|
+
var k = C === e;
|
|
2568
|
+
c = c || k;
|
|
2541
2569
|
}
|
|
2542
2570
|
}
|
|
2543
2571
|
}
|
|
@@ -3278,7 +3306,7 @@ Only the username field is required for user authentication.`
|
|
|
3278
3306
|
required: ["language", "step"]
|
|
3279
3307
|
}
|
|
3280
3308
|
]
|
|
3281
|
-
},
|
|
3309
|
+
}, Kt = {
|
|
3282
3310
|
enum: ["branch", "tag", "commit", "refname"]
|
|
3283
3311
|
};
|
|
3284
3312
|
function ue(r, { instancePath: t = "", parentData: n, parentDataProperty: d, rootData: u = r } = {}) {
|
|
@@ -3295,22 +3323,22 @@ function ue(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3295
3323
|
message: "must have required property '" + c + "'"
|
|
3296
3324
|
}
|
|
3297
3325
|
], !1;
|
|
3298
|
-
for (const
|
|
3299
|
-
if (!(
|
|
3326
|
+
for (const _ in r)
|
|
3327
|
+
if (!(_ === "resource" || _ === "url" || _ === "ref" || _ === "refType" || _ === "path" || _ === ".git"))
|
|
3300
3328
|
return ue.errors = [
|
|
3301
3329
|
{
|
|
3302
3330
|
instancePath: t,
|
|
3303
3331
|
schemaPath: "#/additionalProperties",
|
|
3304
3332
|
keyword: "additionalProperties",
|
|
3305
|
-
params: { additionalProperty:
|
|
3333
|
+
params: { additionalProperty: _ },
|
|
3306
3334
|
message: "must NOT have additional properties"
|
|
3307
3335
|
}
|
|
3308
3336
|
], !1;
|
|
3309
3337
|
{
|
|
3310
3338
|
if (r.resource !== void 0) {
|
|
3311
|
-
let
|
|
3312
|
-
const
|
|
3313
|
-
if (typeof
|
|
3339
|
+
let _ = r.resource;
|
|
3340
|
+
const q = e;
|
|
3341
|
+
if (typeof _ != "string")
|
|
3314
3342
|
return ue.errors = [
|
|
3315
3343
|
{
|
|
3316
3344
|
instancePath: t + "/resource",
|
|
@@ -3320,7 +3348,7 @@ function ue(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3320
3348
|
message: "must be string"
|
|
3321
3349
|
}
|
|
3322
3350
|
], !1;
|
|
3323
|
-
if (
|
|
3351
|
+
if (_ !== "git:directory")
|
|
3324
3352
|
return ue.errors = [
|
|
3325
3353
|
{
|
|
3326
3354
|
instancePath: t + "/resource",
|
|
@@ -3330,12 +3358,12 @@ function ue(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3330
3358
|
message: "must be equal to constant"
|
|
3331
3359
|
}
|
|
3332
3360
|
], !1;
|
|
3333
|
-
var l =
|
|
3361
|
+
var l = q === e;
|
|
3334
3362
|
} else
|
|
3335
3363
|
var l = !0;
|
|
3336
3364
|
if (l) {
|
|
3337
3365
|
if (r.url !== void 0) {
|
|
3338
|
-
const
|
|
3366
|
+
const _ = e;
|
|
3339
3367
|
if (typeof r.url != "string")
|
|
3340
3368
|
return ue.errors = [
|
|
3341
3369
|
{
|
|
@@ -3346,12 +3374,12 @@ function ue(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3346
3374
|
message: "must be string"
|
|
3347
3375
|
}
|
|
3348
3376
|
], !1;
|
|
3349
|
-
var l =
|
|
3377
|
+
var l = _ === e;
|
|
3350
3378
|
} else
|
|
3351
3379
|
var l = !0;
|
|
3352
3380
|
if (l) {
|
|
3353
3381
|
if (r.ref !== void 0) {
|
|
3354
|
-
const
|
|
3382
|
+
const _ = e;
|
|
3355
3383
|
if (typeof r.ref != "string")
|
|
3356
3384
|
return ue.errors = [
|
|
3357
3385
|
{
|
|
@@ -3362,14 +3390,14 @@ function ue(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3362
3390
|
message: "must be string"
|
|
3363
3391
|
}
|
|
3364
3392
|
], !1;
|
|
3365
|
-
var l =
|
|
3393
|
+
var l = _ === e;
|
|
3366
3394
|
} else
|
|
3367
3395
|
var l = !0;
|
|
3368
3396
|
if (l) {
|
|
3369
3397
|
if (r.refType !== void 0) {
|
|
3370
|
-
let
|
|
3371
|
-
const
|
|
3372
|
-
if (typeof
|
|
3398
|
+
let _ = r.refType;
|
|
3399
|
+
const q = e;
|
|
3400
|
+
if (typeof _ != "string")
|
|
3373
3401
|
return ue.errors = [
|
|
3374
3402
|
{
|
|
3375
3403
|
instancePath: t + "/refType",
|
|
@@ -3379,24 +3407,24 @@ function ue(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3379
3407
|
message: "must be string"
|
|
3380
3408
|
}
|
|
3381
3409
|
], !1;
|
|
3382
|
-
if (!(
|
|
3410
|
+
if (!(_ === "branch" || _ === "tag" || _ === "commit" || _ === "refname"))
|
|
3383
3411
|
return ue.errors = [
|
|
3384
3412
|
{
|
|
3385
3413
|
instancePath: t + "/refType",
|
|
3386
3414
|
schemaPath: "#/definitions/GitDirectoryRefType/enum",
|
|
3387
3415
|
keyword: "enum",
|
|
3388
3416
|
params: {
|
|
3389
|
-
allowedValues:
|
|
3417
|
+
allowedValues: Kt.enum
|
|
3390
3418
|
},
|
|
3391
3419
|
message: "must be equal to one of the allowed values"
|
|
3392
3420
|
}
|
|
3393
3421
|
], !1;
|
|
3394
|
-
var l =
|
|
3422
|
+
var l = q === e;
|
|
3395
3423
|
} else
|
|
3396
3424
|
var l = !0;
|
|
3397
|
-
if (l)
|
|
3425
|
+
if (l) {
|
|
3398
3426
|
if (r.path !== void 0) {
|
|
3399
|
-
const
|
|
3427
|
+
const _ = e;
|
|
3400
3428
|
if (typeof r.path != "string")
|
|
3401
3429
|
return ue.errors = [
|
|
3402
3430
|
{
|
|
@@ -3407,9 +3435,28 @@ function ue(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3407
3435
|
message: "must be string"
|
|
3408
3436
|
}
|
|
3409
3437
|
], !1;
|
|
3410
|
-
var l =
|
|
3438
|
+
var l = _ === e;
|
|
3411
3439
|
} else
|
|
3412
3440
|
var l = !0;
|
|
3441
|
+
if (l)
|
|
3442
|
+
if (r[".git"] !== void 0) {
|
|
3443
|
+
const _ = e;
|
|
3444
|
+
if (typeof r[".git"] != "boolean")
|
|
3445
|
+
return ue.errors = [
|
|
3446
|
+
{
|
|
3447
|
+
instancePath: t + "/.git",
|
|
3448
|
+
schemaPath: "#/properties/.git/type",
|
|
3449
|
+
keyword: "type",
|
|
3450
|
+
params: {
|
|
3451
|
+
type: "boolean"
|
|
3452
|
+
},
|
|
3453
|
+
message: "must be boolean"
|
|
3454
|
+
}
|
|
3455
|
+
], !1;
|
|
3456
|
+
var l = _ === e;
|
|
3457
|
+
} else
|
|
3458
|
+
var l = !0;
|
|
3459
|
+
}
|
|
3413
3460
|
}
|
|
3414
3461
|
}
|
|
3415
3462
|
}
|
|
@@ -3426,7 +3473,7 @@ function ue(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3426
3473
|
], !1;
|
|
3427
3474
|
return ue.errors = s, e === 0;
|
|
3428
3475
|
}
|
|
3429
|
-
const
|
|
3476
|
+
const es = {
|
|
3430
3477
|
additionalProperties: {
|
|
3431
3478
|
anyOf: [
|
|
3432
3479
|
{ $ref: "#/definitions/FileTree" },
|
|
@@ -3438,27 +3485,27 @@ function Ne(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3438
3485
|
let s = null, e = 0;
|
|
3439
3486
|
if (e === 0)
|
|
3440
3487
|
if (r && typeof r == "object" && !Array.isArray(r))
|
|
3441
|
-
for (const
|
|
3442
|
-
let
|
|
3443
|
-
const j = e,
|
|
3488
|
+
for (const _ in r) {
|
|
3489
|
+
let q = r[_];
|
|
3490
|
+
const j = e, k = e;
|
|
3444
3491
|
let R = !1;
|
|
3445
3492
|
const L = e;
|
|
3446
|
-
nr.validate(
|
|
3447
|
-
instancePath: t + "/" +
|
|
3493
|
+
nr.validate(q, {
|
|
3494
|
+
instancePath: t + "/" + _.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
3448
3495
|
parentData: r,
|
|
3449
|
-
parentDataProperty:
|
|
3496
|
+
parentDataProperty: _,
|
|
3450
3497
|
rootData: u
|
|
3451
3498
|
}) || (s = s === null ? nr.validate.errors : s.concat(nr.validate.errors), e = s.length);
|
|
3452
3499
|
var l = L === e;
|
|
3453
3500
|
if (R = R || l, !R) {
|
|
3454
3501
|
const v = e;
|
|
3455
|
-
if (!(
|
|
3502
|
+
if (!(q && typeof q == "object" && !Array.isArray(q)) && typeof q != "string") {
|
|
3456
3503
|
const te = {
|
|
3457
|
-
instancePath: t + "/" +
|
|
3504
|
+
instancePath: t + "/" + _.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
3458
3505
|
schemaPath: "#/additionalProperties/anyOf/1/type",
|
|
3459
3506
|
keyword: "type",
|
|
3460
3507
|
params: {
|
|
3461
|
-
type:
|
|
3508
|
+
type: es.additionalProperties.anyOf[1].type
|
|
3462
3509
|
},
|
|
3463
3510
|
message: "must be object,string"
|
|
3464
3511
|
};
|
|
@@ -3468,10 +3515,10 @@ function Ne(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3468
3515
|
R = R || l;
|
|
3469
3516
|
}
|
|
3470
3517
|
if (R)
|
|
3471
|
-
e =
|
|
3518
|
+
e = k, s !== null && (k ? s.length = k : s = null);
|
|
3472
3519
|
else {
|
|
3473
3520
|
const v = {
|
|
3474
|
-
instancePath: t + "/" +
|
|
3521
|
+
instancePath: t + "/" + _.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
3475
3522
|
schemaPath: "#/additionalProperties/anyOf",
|
|
3476
3523
|
keyword: "anyOf",
|
|
3477
3524
|
params: {},
|
|
@@ -3511,23 +3558,23 @@ function Te(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3511
3558
|
}
|
|
3512
3559
|
], !1;
|
|
3513
3560
|
{
|
|
3514
|
-
const
|
|
3515
|
-
for (const
|
|
3516
|
-
if (!(
|
|
3561
|
+
const _ = e;
|
|
3562
|
+
for (const q in r)
|
|
3563
|
+
if (!(q === "resource" || q === "files" || q === "name"))
|
|
3517
3564
|
return Te.errors = [
|
|
3518
3565
|
{
|
|
3519
3566
|
instancePath: t,
|
|
3520
3567
|
schemaPath: "#/additionalProperties",
|
|
3521
3568
|
keyword: "additionalProperties",
|
|
3522
|
-
params: { additionalProperty:
|
|
3569
|
+
params: { additionalProperty: q },
|
|
3523
3570
|
message: "must NOT have additional properties"
|
|
3524
3571
|
}
|
|
3525
3572
|
], !1;
|
|
3526
|
-
if (
|
|
3573
|
+
if (_ === e) {
|
|
3527
3574
|
if (r.resource !== void 0) {
|
|
3528
|
-
let
|
|
3575
|
+
let q = r.resource;
|
|
3529
3576
|
const j = e;
|
|
3530
|
-
if (typeof
|
|
3577
|
+
if (typeof q != "string")
|
|
3531
3578
|
return Te.errors = [
|
|
3532
3579
|
{
|
|
3533
3580
|
instancePath: t + "/resource",
|
|
@@ -3537,7 +3584,7 @@ function Te(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3537
3584
|
message: "must be string"
|
|
3538
3585
|
}
|
|
3539
3586
|
], !1;
|
|
3540
|
-
if (
|
|
3587
|
+
if (q !== "literal:directory")
|
|
3541
3588
|
return Te.errors = [
|
|
3542
3589
|
{
|
|
3543
3590
|
instancePath: t + "/resource",
|
|
@@ -3554,19 +3601,19 @@ function Te(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3554
3601
|
var l = !0;
|
|
3555
3602
|
if (l) {
|
|
3556
3603
|
if (r.files !== void 0) {
|
|
3557
|
-
const
|
|
3604
|
+
const q = e;
|
|
3558
3605
|
Ne(r.files, {
|
|
3559
3606
|
instancePath: t + "/files",
|
|
3560
3607
|
parentData: r,
|
|
3561
3608
|
parentDataProperty: "files",
|
|
3562
3609
|
rootData: u
|
|
3563
3610
|
}) || (s = s === null ? Ne.errors : s.concat(Ne.errors), e = s.length);
|
|
3564
|
-
var l =
|
|
3611
|
+
var l = q === e;
|
|
3565
3612
|
} else
|
|
3566
3613
|
var l = !0;
|
|
3567
3614
|
if (l)
|
|
3568
3615
|
if (r.name !== void 0) {
|
|
3569
|
-
const
|
|
3616
|
+
const q = e;
|
|
3570
3617
|
if (typeof r.name != "string")
|
|
3571
3618
|
return Te.errors = [
|
|
3572
3619
|
{
|
|
@@ -3577,7 +3624,7 @@ function Te(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3577
3624
|
message: "must be string"
|
|
3578
3625
|
}
|
|
3579
3626
|
], !1;
|
|
3580
|
-
var l =
|
|
3627
|
+
var l = q === e;
|
|
3581
3628
|
} else
|
|
3582
3629
|
var l = !0;
|
|
3583
3630
|
}
|
|
@@ -3599,15 +3646,15 @@ function be(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3599
3646
|
let s = null, e = 0;
|
|
3600
3647
|
const l = e;
|
|
3601
3648
|
let c = !1;
|
|
3602
|
-
const
|
|
3649
|
+
const _ = e;
|
|
3603
3650
|
ue(r, {
|
|
3604
3651
|
instancePath: t,
|
|
3605
3652
|
parentData: n,
|
|
3606
3653
|
parentDataProperty: d,
|
|
3607
3654
|
rootData: u
|
|
3608
3655
|
}) || (s = s === null ? ue.errors : s.concat(ue.errors), e = s.length);
|
|
3609
|
-
var
|
|
3610
|
-
if (c = c ||
|
|
3656
|
+
var q = _ === e;
|
|
3657
|
+
if (c = c || q, !c) {
|
|
3611
3658
|
const j = e;
|
|
3612
3659
|
Te(r, {
|
|
3613
3660
|
instancePath: t,
|
|
@@ -3615,8 +3662,8 @@ function be(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3615
3662
|
parentDataProperty: d,
|
|
3616
3663
|
rootData: u
|
|
3617
3664
|
}) || (s = s === null ? Te.errors : s.concat(Te.errors), e = s.length);
|
|
3618
|
-
var
|
|
3619
|
-
c = c ||
|
|
3665
|
+
var q = j === e;
|
|
3666
|
+
c = c || q;
|
|
3620
3667
|
}
|
|
3621
3668
|
if (c)
|
|
3622
3669
|
e = l, s !== null && (l ? s.length = l : s = null);
|
|
@@ -3632,7 +3679,7 @@ function be(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3632
3679
|
}
|
|
3633
3680
|
return be.errors = s, e === 0;
|
|
3634
3681
|
}
|
|
3635
|
-
const
|
|
3682
|
+
const xr = {
|
|
3636
3683
|
enum: ["GET", "POST", "HEAD", "OPTIONS", "PATCH", "PUT", "DELETE"]
|
|
3637
3684
|
};
|
|
3638
3685
|
function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, rootData: u = r } = {}) {
|
|
@@ -3683,7 +3730,7 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3683
3730
|
instancePath: t + "/method",
|
|
3684
3731
|
schemaPath: "#/definitions/HTTPMethod/enum",
|
|
3685
3732
|
keyword: "enum",
|
|
3686
|
-
params: { allowedValues:
|
|
3733
|
+
params: { allowedValues: xr.enum },
|
|
3687
3734
|
message: "must be equal to one of the allowed values"
|
|
3688
3735
|
}
|
|
3689
3736
|
], !1;
|
|
@@ -3765,8 +3812,8 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3765
3812
|
};
|
|
3766
3813
|
s === null ? s = [h] : s.push(h), e++;
|
|
3767
3814
|
}
|
|
3768
|
-
var
|
|
3769
|
-
if (ee = ee ||
|
|
3815
|
+
var _ = m === e;
|
|
3816
|
+
if (ee = ee || _, !ee) {
|
|
3770
3817
|
const h = e;
|
|
3771
3818
|
if (e === h)
|
|
3772
3819
|
if (T && typeof T == "object" && !Array.isArray(T)) {
|
|
@@ -3787,7 +3834,7 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3787
3834
|
for (const y in T)
|
|
3788
3835
|
if (!(y === "BYTES_PER_ELEMENT" || y === "buffer" || y === "byteLength" || y === "byteOffset" || y === "length")) {
|
|
3789
3836
|
let g = T[y];
|
|
3790
|
-
const
|
|
3837
|
+
const $ = e;
|
|
3791
3838
|
if (!(typeof g == "number" && isFinite(
|
|
3792
3839
|
g
|
|
3793
3840
|
))) {
|
|
@@ -3812,8 +3859,8 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3812
3859
|
F
|
|
3813
3860
|
), e++;
|
|
3814
3861
|
}
|
|
3815
|
-
var
|
|
3816
|
-
if (
|
|
3862
|
+
var q = $ === e;
|
|
3863
|
+
if (!q)
|
|
3817
3864
|
break;
|
|
3818
3865
|
}
|
|
3819
3866
|
if (w === e) {
|
|
@@ -3823,7 +3870,7 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3823
3870
|
if (!(typeof y == "number" && isFinite(
|
|
3824
3871
|
y
|
|
3825
3872
|
))) {
|
|
3826
|
-
const
|
|
3873
|
+
const $ = {
|
|
3827
3874
|
instancePath: t + "/body/BYTES_PER_ELEMENT",
|
|
3828
3875
|
schemaPath: "#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",
|
|
3829
3876
|
keyword: "type",
|
|
@@ -3833,9 +3880,9 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3833
3880
|
message: "must be number"
|
|
3834
3881
|
};
|
|
3835
3882
|
s === null ? s = [
|
|
3836
|
-
|
|
3883
|
+
$
|
|
3837
3884
|
] : s.push(
|
|
3838
|
-
|
|
3885
|
+
$
|
|
3839
3886
|
), e++;
|
|
3840
3887
|
}
|
|
3841
3888
|
var j = g === e;
|
|
@@ -4016,14 +4063,14 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4016
4063
|
};
|
|
4017
4064
|
s === null ? s = [P] : s.push(P), e++;
|
|
4018
4065
|
}
|
|
4019
|
-
var
|
|
4020
|
-
if (ee = ee ||
|
|
4066
|
+
var _ = h === e;
|
|
4067
|
+
if (ee = ee || _, !ee) {
|
|
4021
4068
|
const P = e;
|
|
4022
4069
|
if (e === P)
|
|
4023
4070
|
if (T && typeof T == "object" && !Array.isArray(T))
|
|
4024
4071
|
for (const y in T) {
|
|
4025
4072
|
let g = T[y];
|
|
4026
|
-
const
|
|
4073
|
+
const $ = e, F = e;
|
|
4027
4074
|
let C = !1;
|
|
4028
4075
|
const S = e;
|
|
4029
4076
|
if (typeof g != "string") {
|
|
@@ -4048,8 +4095,8 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4048
4095
|
W
|
|
4049
4096
|
), e++;
|
|
4050
4097
|
}
|
|
4051
|
-
var
|
|
4052
|
-
if (C = C ||
|
|
4098
|
+
var k = S === e;
|
|
4099
|
+
if (C = C || k, !C) {
|
|
4053
4100
|
const W = e;
|
|
4054
4101
|
if (e === W)
|
|
4055
4102
|
if (g && typeof g == "object" && !Array.isArray(
|
|
@@ -4377,8 +4424,8 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4377
4424
|
I
|
|
4378
4425
|
), e++;
|
|
4379
4426
|
}
|
|
4380
|
-
var
|
|
4381
|
-
if (C = C ||
|
|
4427
|
+
var k = W === e;
|
|
4428
|
+
if (C = C || k, !C) {
|
|
4382
4429
|
const I = e;
|
|
4383
4430
|
if (e === I)
|
|
4384
4431
|
if (g && typeof g == "object" && !Array.isArray(
|
|
@@ -4605,8 +4652,8 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4605
4652
|
A
|
|
4606
4653
|
), e++;
|
|
4607
4654
|
}
|
|
4608
|
-
var
|
|
4609
|
-
C = C ||
|
|
4655
|
+
var k = I === e;
|
|
4656
|
+
C = C || k;
|
|
4610
4657
|
}
|
|
4611
4658
|
}
|
|
4612
4659
|
if (C)
|
|
@@ -4631,7 +4678,7 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4631
4678
|
W
|
|
4632
4679
|
), e++;
|
|
4633
4680
|
}
|
|
4634
|
-
var B =
|
|
4681
|
+
var B = $ === e;
|
|
4635
4682
|
if (!B)
|
|
4636
4683
|
break;
|
|
4637
4684
|
}
|
|
@@ -4647,8 +4694,8 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4647
4694
|
};
|
|
4648
4695
|
s === null ? s = [y] : s.push(y), e++;
|
|
4649
4696
|
}
|
|
4650
|
-
var
|
|
4651
|
-
ee = ee ||
|
|
4697
|
+
var _ = P === e;
|
|
4698
|
+
ee = ee || _;
|
|
4652
4699
|
}
|
|
4653
4700
|
}
|
|
4654
4701
|
if (ee)
|
|
@@ -4682,7 +4729,7 @@ function he(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4682
4729
|
], !1;
|
|
4683
4730
|
return he.errors = s, e === 0;
|
|
4684
4731
|
}
|
|
4685
|
-
const
|
|
4732
|
+
const rs = {
|
|
4686
4733
|
properties: {
|
|
4687
4734
|
relativeUri: {
|
|
4688
4735
|
type: "string",
|
|
@@ -4752,7 +4799,7 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4752
4799
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
4753
4800
|
const L = e;
|
|
4754
4801
|
for (const v in r)
|
|
4755
|
-
if (!
|
|
4802
|
+
if (!Nr.call(rs.properties, v))
|
|
4756
4803
|
return pe.errors = [
|
|
4757
4804
|
{
|
|
4758
4805
|
instancePath: t,
|
|
@@ -4831,7 +4878,7 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4831
4878
|
schemaPath: "#/definitions/HTTPMethod/enum",
|
|
4832
4879
|
keyword: "enum",
|
|
4833
4880
|
params: {
|
|
4834
|
-
allowedValues:
|
|
4881
|
+
allowedValues: xr.enum
|
|
4835
4882
|
},
|
|
4836
4883
|
message: "must be equal to one of the allowed values"
|
|
4837
4884
|
}
|
|
@@ -4898,8 +4945,8 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4898
4945
|
};
|
|
4899
4946
|
s === null ? s = [U] : s.push(U), e++;
|
|
4900
4947
|
}
|
|
4901
|
-
var
|
|
4902
|
-
if (Z = Z ||
|
|
4948
|
+
var _ = T === e;
|
|
4949
|
+
if (Z = Z || _, !Z) {
|
|
4903
4950
|
const U = e;
|
|
4904
4951
|
if (e === U)
|
|
4905
4952
|
if (v && typeof v == "object" && !Array.isArray(v)) {
|
|
@@ -4945,8 +4992,8 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4945
4992
|
w
|
|
4946
4993
|
), e++;
|
|
4947
4994
|
}
|
|
4948
|
-
var
|
|
4949
|
-
if (
|
|
4995
|
+
var q = P === e;
|
|
4996
|
+
if (!q)
|
|
4950
4997
|
break;
|
|
4951
4998
|
}
|
|
4952
4999
|
if (N === e) {
|
|
@@ -5002,7 +5049,7 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
5002
5049
|
const y = e;
|
|
5003
5050
|
for (const g in h)
|
|
5004
5051
|
if (g !== "byteLength") {
|
|
5005
|
-
const
|
|
5052
|
+
const $ = {
|
|
5006
5053
|
instancePath: t + "/body/buffer",
|
|
5007
5054
|
schemaPath: "#/properties/body/anyOf/1/properties/buffer/additionalProperties",
|
|
5008
5055
|
keyword: "additionalProperties",
|
|
@@ -5012,9 +5059,9 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
5012
5059
|
message: "must NOT have additional properties"
|
|
5013
5060
|
};
|
|
5014
5061
|
s === null ? s = [
|
|
5015
|
-
|
|
5062
|
+
$
|
|
5016
5063
|
] : s.push(
|
|
5017
|
-
|
|
5064
|
+
$
|
|
5018
5065
|
), e++;
|
|
5019
5066
|
break;
|
|
5020
5067
|
}
|
|
@@ -5023,7 +5070,7 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
5023
5070
|
if (!(typeof g == "number" && isFinite(
|
|
5024
5071
|
g
|
|
5025
5072
|
))) {
|
|
5026
|
-
const
|
|
5073
|
+
const $ = {
|
|
5027
5074
|
instancePath: t + "/body/buffer/byteLength",
|
|
5028
5075
|
schemaPath: "#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",
|
|
5029
5076
|
keyword: "type",
|
|
@@ -5033,9 +5080,9 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
5033
5080
|
message: "must be number"
|
|
5034
5081
|
};
|
|
5035
5082
|
s === null ? s = [
|
|
5036
|
-
|
|
5083
|
+
$
|
|
5037
5084
|
] : s.push(
|
|
5038
|
-
|
|
5085
|
+
$
|
|
5039
5086
|
), e++;
|
|
5040
5087
|
}
|
|
5041
5088
|
}
|
|
@@ -5151,8 +5198,8 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
5151
5198
|
};
|
|
5152
5199
|
s === null ? s = [m] : s.push(m), e++;
|
|
5153
5200
|
}
|
|
5154
|
-
var
|
|
5155
|
-
Z = Z ||
|
|
5201
|
+
var _ = U === e;
|
|
5202
|
+
Z = Z || _;
|
|
5156
5203
|
}
|
|
5157
5204
|
if (Z)
|
|
5158
5205
|
e = te, s !== null && (te ? s.length = te : s = null);
|
|
@@ -5195,8 +5242,8 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
5195
5242
|
message: "must be string"
|
|
5196
5243
|
}
|
|
5197
5244
|
], !1;
|
|
5198
|
-
var
|
|
5199
|
-
if (!
|
|
5245
|
+
var k = T === e;
|
|
5246
|
+
if (!k)
|
|
5200
5247
|
break;
|
|
5201
5248
|
}
|
|
5202
5249
|
else
|
|
@@ -5571,10 +5618,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5571
5618
|
message: "must be number"
|
|
5572
5619
|
}
|
|
5573
5620
|
], !1;
|
|
5574
|
-
var
|
|
5621
|
+
var _ = E === e;
|
|
5575
5622
|
} else
|
|
5576
|
-
var
|
|
5577
|
-
if (
|
|
5623
|
+
var _ = !0;
|
|
5624
|
+
if (_)
|
|
5578
5625
|
if (i.caption !== void 0) {
|
|
5579
5626
|
const a = e;
|
|
5580
5627
|
if (typeof i.caption != "string")
|
|
@@ -5589,9 +5636,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5589
5636
|
message: "must be string"
|
|
5590
5637
|
}
|
|
5591
5638
|
], !1;
|
|
5592
|
-
var
|
|
5639
|
+
var _ = a === e;
|
|
5593
5640
|
} else
|
|
5594
|
-
var
|
|
5641
|
+
var _ = !0;
|
|
5595
5642
|
}
|
|
5596
5643
|
} else
|
|
5597
5644
|
return o.errors = [
|
|
@@ -5605,10 +5652,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5605
5652
|
message: "must be object"
|
|
5606
5653
|
}
|
|
5607
5654
|
], !1;
|
|
5608
|
-
var
|
|
5655
|
+
var q = p === e;
|
|
5609
5656
|
} else
|
|
5610
|
-
var
|
|
5611
|
-
if (
|
|
5657
|
+
var q = !0;
|
|
5658
|
+
if (q) {
|
|
5612
5659
|
if (r.step !== void 0) {
|
|
5613
5660
|
let i = r.step;
|
|
5614
5661
|
const p = e;
|
|
@@ -5636,10 +5683,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5636
5683
|
message: "must be equal to constant"
|
|
5637
5684
|
}
|
|
5638
5685
|
], !1;
|
|
5639
|
-
var
|
|
5686
|
+
var q = p === e;
|
|
5640
5687
|
} else
|
|
5641
|
-
var
|
|
5642
|
-
if (
|
|
5688
|
+
var q = !0;
|
|
5689
|
+
if (q)
|
|
5643
5690
|
if (r.themeFolderName !== void 0) {
|
|
5644
5691
|
const i = e;
|
|
5645
5692
|
if (typeof r.themeFolderName != "string")
|
|
@@ -5654,9 +5701,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5654
5701
|
message: "must be string"
|
|
5655
5702
|
}
|
|
5656
5703
|
], !1;
|
|
5657
|
-
var
|
|
5704
|
+
var q = i === e;
|
|
5658
5705
|
} else
|
|
5659
|
-
var
|
|
5706
|
+
var q = !0;
|
|
5660
5707
|
}
|
|
5661
5708
|
}
|
|
5662
5709
|
}
|
|
@@ -5773,10 +5820,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5773
5820
|
message: "must be object"
|
|
5774
5821
|
}
|
|
5775
5822
|
], !1;
|
|
5776
|
-
var
|
|
5823
|
+
var k = p === e;
|
|
5777
5824
|
} else
|
|
5778
|
-
var
|
|
5779
|
-
if (
|
|
5825
|
+
var k = !0;
|
|
5826
|
+
if (k) {
|
|
5780
5827
|
if (r.step !== void 0) {
|
|
5781
5828
|
let i = r.step;
|
|
5782
5829
|
const p = e;
|
|
@@ -5804,10 +5851,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5804
5851
|
message: "must be equal to constant"
|
|
5805
5852
|
}
|
|
5806
5853
|
], !1;
|
|
5807
|
-
var
|
|
5854
|
+
var k = p === e;
|
|
5808
5855
|
} else
|
|
5809
|
-
var
|
|
5810
|
-
if (
|
|
5856
|
+
var k = !0;
|
|
5857
|
+
if (k) {
|
|
5811
5858
|
if (r.fromPath !== void 0) {
|
|
5812
5859
|
const i = e;
|
|
5813
5860
|
if (typeof r.fromPath != "string")
|
|
@@ -5822,10 +5869,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5822
5869
|
message: "must be string"
|
|
5823
5870
|
}
|
|
5824
5871
|
], !1;
|
|
5825
|
-
var
|
|
5872
|
+
var k = i === e;
|
|
5826
5873
|
} else
|
|
5827
|
-
var
|
|
5828
|
-
if (
|
|
5874
|
+
var k = !0;
|
|
5875
|
+
if (k)
|
|
5829
5876
|
if (r.toPath !== void 0) {
|
|
5830
5877
|
const i = e;
|
|
5831
5878
|
if (typeof r.toPath != "string")
|
|
@@ -5840,9 +5887,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5840
5887
|
message: "must be string"
|
|
5841
5888
|
}
|
|
5842
5889
|
], !1;
|
|
5843
|
-
var
|
|
5890
|
+
var k = i === e;
|
|
5844
5891
|
} else
|
|
5845
|
-
var
|
|
5892
|
+
var k = !0;
|
|
5846
5893
|
}
|
|
5847
5894
|
}
|
|
5848
5895
|
}
|
|
@@ -7478,8 +7525,8 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
7478
7525
|
) || (s = s === null ? J.errors : s.concat(
|
|
7479
7526
|
J.errors
|
|
7480
7527
|
), e = s.length);
|
|
7481
|
-
var
|
|
7482
|
-
if (a = a ||
|
|
7528
|
+
var $ = E === e;
|
|
7529
|
+
if (a = a || $, !a) {
|
|
7483
7530
|
const Q = e;
|
|
7484
7531
|
be(
|
|
7485
7532
|
i,
|
|
@@ -7492,8 +7539,8 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
7492
7539
|
) || (s = s === null ? be.errors : s.concat(
|
|
7493
7540
|
be.errors
|
|
7494
7541
|
), e = s.length);
|
|
7495
|
-
var
|
|
7496
|
-
a = a ||
|
|
7542
|
+
var $ = Q === e;
|
|
7543
|
+
a = a || $;
|
|
7497
7544
|
}
|
|
7498
7545
|
if (a)
|
|
7499
7546
|
e = O, s !== null && (O ? s.length = O : s = null);
|
|
@@ -8769,10 +8816,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
8769
8816
|
message: "must be object"
|
|
8770
8817
|
}
|
|
8771
8818
|
], !1;
|
|
8772
|
-
var
|
|
8819
|
+
var $e = p === e;
|
|
8773
8820
|
} else
|
|
8774
|
-
var
|
|
8775
|
-
if (
|
|
8821
|
+
var $e = !0;
|
|
8822
|
+
if ($e) {
|
|
8776
8823
|
if (r.step !== void 0) {
|
|
8777
8824
|
let i = r.step;
|
|
8778
8825
|
const p = e;
|
|
@@ -8800,10 +8847,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
8800
8847
|
message: "must be equal to constant"
|
|
8801
8848
|
}
|
|
8802
8849
|
], !1;
|
|
8803
|
-
var
|
|
8850
|
+
var $e = p === e;
|
|
8804
8851
|
} else
|
|
8805
|
-
var
|
|
8806
|
-
if (
|
|
8852
|
+
var $e = !0;
|
|
8853
|
+
if ($e)
|
|
8807
8854
|
if (r.path !== void 0) {
|
|
8808
8855
|
const i = e;
|
|
8809
8856
|
if (typeof r.path != "string")
|
|
@@ -8818,9 +8865,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
8818
8865
|
message: "must be string"
|
|
8819
8866
|
}
|
|
8820
8867
|
], !1;
|
|
8821
|
-
var
|
|
8868
|
+
var $e = i === e;
|
|
8822
8869
|
} else
|
|
8823
|
-
var
|
|
8870
|
+
var $e = !0;
|
|
8824
8871
|
}
|
|
8825
8872
|
}
|
|
8826
8873
|
}
|
|
@@ -8937,10 +8984,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
8937
8984
|
message: "must be object"
|
|
8938
8985
|
}
|
|
8939
8986
|
], !1;
|
|
8940
|
-
var
|
|
8987
|
+
var qe = p === e;
|
|
8941
8988
|
} else
|
|
8942
|
-
var
|
|
8943
|
-
if (
|
|
8989
|
+
var qe = !0;
|
|
8990
|
+
if (qe) {
|
|
8944
8991
|
if (r.step !== void 0) {
|
|
8945
8992
|
let i = r.step;
|
|
8946
8993
|
const p = e;
|
|
@@ -8968,10 +9015,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
8968
9015
|
message: "must be equal to constant"
|
|
8969
9016
|
}
|
|
8970
9017
|
], !1;
|
|
8971
|
-
var
|
|
9018
|
+
var qe = p === e;
|
|
8972
9019
|
} else
|
|
8973
|
-
var
|
|
8974
|
-
if (
|
|
9020
|
+
var qe = !0;
|
|
9021
|
+
if (qe)
|
|
8975
9022
|
if (r.code !== void 0) {
|
|
8976
9023
|
let i = r.code;
|
|
8977
9024
|
const p = e, O = e;
|
|
@@ -9109,9 +9156,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
9109
9156
|
};
|
|
9110
9157
|
return s === null ? s = [Q] : s.push(Q), e++, o.errors = s, !1;
|
|
9111
9158
|
}
|
|
9112
|
-
var
|
|
9159
|
+
var qe = p === e;
|
|
9113
9160
|
} else
|
|
9114
|
-
var
|
|
9161
|
+
var qe = !0;
|
|
9115
9162
|
}
|
|
9116
9163
|
}
|
|
9117
9164
|
}
|
|
@@ -10493,8 +10540,8 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
10493
10540
|
fe
|
|
10494
10541
|
), e++;
|
|
10495
10542
|
}
|
|
10496
|
-
var
|
|
10497
|
-
if (!
|
|
10543
|
+
var Dr = Xe === e;
|
|
10544
|
+
if (!Dr)
|
|
10498
10545
|
break;
|
|
10499
10546
|
}
|
|
10500
10547
|
if (Oe === e) {
|
|
@@ -11088,7 +11135,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11088
11135
|
if (Array.isArray(
|
|
11089
11136
|
i
|
|
11090
11137
|
)) {
|
|
11091
|
-
var
|
|
11138
|
+
var yr = !0;
|
|
11092
11139
|
const le = i.length;
|
|
11093
11140
|
for (let Ee = 0; Ee < le; Ee++) {
|
|
11094
11141
|
const ne = e;
|
|
@@ -11108,8 +11155,8 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11108
11155
|
Y
|
|
11109
11156
|
), e++;
|
|
11110
11157
|
}
|
|
11111
|
-
var
|
|
11112
|
-
if (!
|
|
11158
|
+
var yr = ne === e;
|
|
11159
|
+
if (!yr)
|
|
11113
11160
|
break;
|
|
11114
11161
|
}
|
|
11115
11162
|
} else {
|
|
@@ -11393,7 +11440,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11393
11440
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
11394
11441
|
const ee = e;
|
|
11395
11442
|
for (const m in r)
|
|
11396
|
-
if (!
|
|
11443
|
+
if (!Nr.call(Qt.properties, m))
|
|
11397
11444
|
return V.errors = [
|
|
11398
11445
|
{
|
|
11399
11446
|
instancePath: t,
|
|
@@ -11531,9 +11578,9 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11531
11578
|
if (Array.isArray(
|
|
11532
11579
|
w
|
|
11533
11580
|
)) {
|
|
11534
|
-
var
|
|
11535
|
-
const
|
|
11536
|
-
for (let F = 0; F <
|
|
11581
|
+
var _ = !0;
|
|
11582
|
+
const $ = w.length;
|
|
11583
|
+
for (let F = 0; F < $; F++) {
|
|
11537
11584
|
const C = e;
|
|
11538
11585
|
if (typeof w[F] != "string")
|
|
11539
11586
|
return V.errors = [
|
|
@@ -11547,8 +11594,8 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11547
11594
|
message: "must be string"
|
|
11548
11595
|
}
|
|
11549
11596
|
], !1;
|
|
11550
|
-
var
|
|
11551
|
-
if (!
|
|
11597
|
+
var _ = C === e;
|
|
11598
|
+
if (!_)
|
|
11552
11599
|
break;
|
|
11553
11600
|
}
|
|
11554
11601
|
} else
|
|
@@ -11621,7 +11668,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11621
11668
|
if (m.php !== void 0) {
|
|
11622
11669
|
let w = m.php;
|
|
11623
11670
|
const y = e, g = e;
|
|
11624
|
-
let
|
|
11671
|
+
let $ = !1;
|
|
11625
11672
|
const F = e;
|
|
11626
11673
|
if (typeof w != "string") {
|
|
11627
11674
|
const C = {
|
|
@@ -11641,14 +11688,14 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11641
11688
|
schemaPath: "#/definitions/SupportedPHPVersion/enum",
|
|
11642
11689
|
keyword: "enum",
|
|
11643
11690
|
params: {
|
|
11644
|
-
allowedValues:
|
|
11691
|
+
allowedValues: Jt.enum
|
|
11645
11692
|
},
|
|
11646
11693
|
message: "must be equal to one of the allowed values"
|
|
11647
11694
|
};
|
|
11648
11695
|
s === null ? s = [C] : s.push(C), e++;
|
|
11649
11696
|
}
|
|
11650
|
-
var
|
|
11651
|
-
if (
|
|
11697
|
+
var q = F === e;
|
|
11698
|
+
if ($ = $ || q, !$) {
|
|
11652
11699
|
const C = e;
|
|
11653
11700
|
if (typeof w != "string") {
|
|
11654
11701
|
const W = {
|
|
@@ -11682,10 +11729,10 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11682
11729
|
W
|
|
11683
11730
|
), e++;
|
|
11684
11731
|
}
|
|
11685
|
-
var
|
|
11686
|
-
|
|
11732
|
+
var q = C === e;
|
|
11733
|
+
$ = $ || q;
|
|
11687
11734
|
}
|
|
11688
|
-
if (
|
|
11735
|
+
if ($)
|
|
11689
11736
|
e = g, s !== null && (g ? s.length = g : s = null);
|
|
11690
11737
|
else {
|
|
11691
11738
|
const C = {
|
|
@@ -11768,10 +11815,10 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11768
11815
|
message: "must be boolean"
|
|
11769
11816
|
}
|
|
11770
11817
|
], !1;
|
|
11771
|
-
var
|
|
11818
|
+
var k = P === e;
|
|
11772
11819
|
} else
|
|
11773
|
-
var
|
|
11774
|
-
if (
|
|
11820
|
+
var k = !0;
|
|
11821
|
+
if (k)
|
|
11775
11822
|
if (m.networking !== void 0) {
|
|
11776
11823
|
const P = e;
|
|
11777
11824
|
if (typeof m.networking != "boolean")
|
|
@@ -11786,9 +11833,9 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11786
11833
|
message: "must be boolean"
|
|
11787
11834
|
}
|
|
11788
11835
|
], !1;
|
|
11789
|
-
var
|
|
11836
|
+
var k = P === e;
|
|
11790
11837
|
} else
|
|
11791
|
-
var
|
|
11838
|
+
var k = !0;
|
|
11792
11839
|
}
|
|
11793
11840
|
} else
|
|
11794
11841
|
return V.errors = [
|
|
@@ -11879,7 +11926,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11879
11926
|
schemaPath: "#/definitions/PHPConstants/additionalProperties/type",
|
|
11880
11927
|
keyword: "type",
|
|
11881
11928
|
params: {
|
|
11882
|
-
type:
|
|
11929
|
+
type: Xt.additionalProperties.type
|
|
11883
11930
|
},
|
|
11884
11931
|
message: "must be string,boolean,number"
|
|
11885
11932
|
}
|
|
@@ -11914,7 +11961,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11914
11961
|
for (let P = 0; P < b; P++) {
|
|
11915
11962
|
let w = m[P];
|
|
11916
11963
|
const y = e, g = e;
|
|
11917
|
-
let
|
|
11964
|
+
let $ = !1;
|
|
11918
11965
|
const F = e;
|
|
11919
11966
|
if (typeof w != "string") {
|
|
11920
11967
|
const S = {
|
|
@@ -11933,7 +11980,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11933
11980
|
), e++;
|
|
11934
11981
|
}
|
|
11935
11982
|
var B = F === e;
|
|
11936
|
-
if (
|
|
11983
|
+
if ($ = $ || B, !$) {
|
|
11937
11984
|
const S = e;
|
|
11938
11985
|
J(
|
|
11939
11986
|
w,
|
|
@@ -11947,9 +11994,9 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11947
11994
|
J.errors
|
|
11948
11995
|
), e = s.length);
|
|
11949
11996
|
var B = S === e;
|
|
11950
|
-
|
|
11997
|
+
$ = $ || B;
|
|
11951
11998
|
}
|
|
11952
|
-
if (
|
|
11999
|
+
if ($)
|
|
11953
12000
|
e = g, s !== null && (g ? s.length = g : s = null);
|
|
11954
12001
|
else {
|
|
11955
12002
|
const S = {
|
|
@@ -12074,16 +12121,16 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12074
12121
|
if (m && typeof m == "object" && !Array.isArray(
|
|
12075
12122
|
m
|
|
12076
12123
|
)) {
|
|
12077
|
-
let
|
|
12078
|
-
if (m.username === void 0 && (
|
|
12124
|
+
let $;
|
|
12125
|
+
if (m.username === void 0 && ($ = "username") || m.password === void 0 && ($ = "password")) {
|
|
12079
12126
|
const F = {
|
|
12080
12127
|
instancePath: t + "/login",
|
|
12081
12128
|
schemaPath: "#/properties/login/anyOf/1/required",
|
|
12082
12129
|
keyword: "required",
|
|
12083
12130
|
params: {
|
|
12084
|
-
missingProperty:
|
|
12131
|
+
missingProperty: $
|
|
12085
12132
|
},
|
|
12086
|
-
message: "must have required property '" +
|
|
12133
|
+
message: "must have required property '" + $ + "'"
|
|
12087
12134
|
};
|
|
12088
12135
|
s === null ? s = [
|
|
12089
12136
|
F
|
|
@@ -12157,7 +12204,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12157
12204
|
}
|
|
12158
12205
|
}
|
|
12159
12206
|
} else {
|
|
12160
|
-
const
|
|
12207
|
+
const $ = {
|
|
12161
12208
|
instancePath: t + "/login",
|
|
12162
12209
|
schemaPath: "#/properties/login/anyOf/1/type",
|
|
12163
12210
|
keyword: "type",
|
|
@@ -12167,9 +12214,9 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12167
12214
|
message: "must be object"
|
|
12168
12215
|
};
|
|
12169
12216
|
s === null ? s = [
|
|
12170
|
-
|
|
12217
|
+
$
|
|
12171
12218
|
] : s.push(
|
|
12172
|
-
|
|
12219
|
+
$
|
|
12173
12220
|
), e++;
|
|
12174
12221
|
}
|
|
12175
12222
|
var Z = y === e;
|
|
@@ -12207,7 +12254,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12207
12254
|
for (let P = 0; P < b; P++) {
|
|
12208
12255
|
let w = m[P];
|
|
12209
12256
|
const y = e, g = e;
|
|
12210
|
-
let
|
|
12257
|
+
let $ = !1;
|
|
12211
12258
|
const F = e;
|
|
12212
12259
|
o(
|
|
12213
12260
|
w,
|
|
@@ -12221,7 +12268,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12221
12268
|
o.errors
|
|
12222
12269
|
), e = s.length);
|
|
12223
12270
|
var U = F === e;
|
|
12224
|
-
if (
|
|
12271
|
+
if ($ = $ || U, !$) {
|
|
12225
12272
|
const S = e;
|
|
12226
12273
|
if (typeof w != "string") {
|
|
12227
12274
|
const D = {
|
|
@@ -12240,7 +12287,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12240
12287
|
), e++;
|
|
12241
12288
|
}
|
|
12242
12289
|
var U = S === e;
|
|
12243
|
-
if (
|
|
12290
|
+
if ($ = $ || U, !$) {
|
|
12244
12291
|
const D = e, I = {
|
|
12245
12292
|
instancePath: t + "/steps/" + P,
|
|
12246
12293
|
schemaPath: "#/properties/steps/items/anyOf/2/not",
|
|
@@ -12254,7 +12301,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12254
12301
|
I
|
|
12255
12302
|
), e++;
|
|
12256
12303
|
var U = D === e;
|
|
12257
|
-
if (
|
|
12304
|
+
if ($ = $ || U, !$) {
|
|
12258
12305
|
const A = e;
|
|
12259
12306
|
if (typeof w != "boolean") {
|
|
12260
12307
|
const M = {
|
|
@@ -12289,7 +12336,7 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12289
12336
|
), e++;
|
|
12290
12337
|
}
|
|
12291
12338
|
var U = A === e;
|
|
12292
|
-
if (
|
|
12339
|
+
if ($ = $ || U, !$) {
|
|
12293
12340
|
const M = e;
|
|
12294
12341
|
if (w !== null) {
|
|
12295
12342
|
const oe = {
|
|
@@ -12308,12 +12355,12 @@ function V(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12308
12355
|
), e++;
|
|
12309
12356
|
}
|
|
12310
12357
|
var U = M === e;
|
|
12311
|
-
|
|
12358
|
+
$ = $ || U;
|
|
12312
12359
|
}
|
|
12313
12360
|
}
|
|
12314
12361
|
}
|
|
12315
12362
|
}
|
|
12316
|
-
if (
|
|
12363
|
+
if ($)
|
|
12317
12364
|
e = g, s !== null && (g ? s.length = g : s = null);
|
|
12318
12365
|
else {
|
|
12319
12366
|
const S = {
|
|
@@ -12398,32 +12445,32 @@ function rr(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
12398
12445
|
rootData: u
|
|
12399
12446
|
}) || (s = s === null ? V.errors : s.concat(V.errors), e = s.length), rr.errors = s, e === 0;
|
|
12400
12447
|
}
|
|
12401
|
-
const { wpCLI:
|
|
12402
|
-
...
|
|
12403
|
-
"wp-cli":
|
|
12404
|
-
importFile:
|
|
12448
|
+
const { wpCLI: ts, ...gr } = Gt, ss = {
|
|
12449
|
+
...gr,
|
|
12450
|
+
"wp-cli": ts,
|
|
12451
|
+
importFile: gr.importWxr
|
|
12405
12452
|
};
|
|
12406
|
-
async function
|
|
12453
|
+
async function is(r, t = {}) {
|
|
12407
12454
|
const n = {
|
|
12408
12455
|
...t
|
|
12409
12456
|
};
|
|
12410
12457
|
let d;
|
|
12411
|
-
return
|
|
12458
|
+
return Cr(r) ? (d = await os(r), n.streamBundledFile = function(...u) {
|
|
12412
12459
|
return r.read(...u);
|
|
12413
|
-
}) : d = r,
|
|
12460
|
+
}) : d = r, as(d, n);
|
|
12414
12461
|
}
|
|
12415
|
-
function
|
|
12462
|
+
function Cr(r) {
|
|
12416
12463
|
return r && "read" in r && typeof r.read == "function";
|
|
12417
12464
|
}
|
|
12418
|
-
async function
|
|
12419
|
-
if (!
|
|
12465
|
+
async function os(r) {
|
|
12466
|
+
if (!Cr(r))
|
|
12420
12467
|
return r;
|
|
12421
12468
|
const n = await (await r.read("blueprint.json")).text();
|
|
12422
12469
|
return JSON.parse(n);
|
|
12423
12470
|
}
|
|
12424
|
-
function
|
|
12425
|
-
progress: t = new
|
|
12426
|
-
semaphore: n = new
|
|
12471
|
+
function as(r, {
|
|
12472
|
+
progress: t = new Ur(),
|
|
12473
|
+
semaphore: n = new vr({ concurrency: 3 }),
|
|
12427
12474
|
onStepCompleted: d = () => {
|
|
12428
12475
|
},
|
|
12429
12476
|
onBlueprintValidated: u = () => {
|
|
@@ -12435,7 +12482,7 @@ function os(r, {
|
|
|
12435
12482
|
var v, B, te, Z, T, X, U, ee, m, N;
|
|
12436
12483
|
r = structuredClone(r), r = {
|
|
12437
12484
|
...r,
|
|
12438
|
-
steps: (r.steps || []).filter(
|
|
12485
|
+
steps: (r.steps || []).filter(ls).filter(fs)
|
|
12439
12486
|
}, r.steps = [...r.steps || [], ...l || []];
|
|
12440
12487
|
for (const h of r.steps)
|
|
12441
12488
|
!h || typeof h != "object" || (h.step === "importFile" ? (h.step = "importWxr", ae.warn(
|
|
@@ -12474,8 +12521,8 @@ function os(r, {
|
|
|
12474
12521
|
if ((B = r == null ? void 0 : r.extraLibraries) != null && B.includes("wp-cli") || c !== -1) {
|
|
12475
12522
|
const h = {
|
|
12476
12523
|
step: "writeFile",
|
|
12477
|
-
data:
|
|
12478
|
-
path:
|
|
12524
|
+
data: Et,
|
|
12525
|
+
path: ur
|
|
12479
12526
|
};
|
|
12480
12527
|
c === -1 ? (te = r.steps) == null || te.push(h) : (Z = r.steps) == null || Z.splice(
|
|
12481
12528
|
c,
|
|
@@ -12483,32 +12530,32 @@ function os(r, {
|
|
|
12483
12530
|
h
|
|
12484
12531
|
);
|
|
12485
12532
|
}
|
|
12486
|
-
const
|
|
12533
|
+
const _ = (T = r.steps) == null ? void 0 : T.findIndex(
|
|
12487
12534
|
(h) => typeof h == "object" && (h == null ? void 0 : h.step) === "importWxr"
|
|
12488
12535
|
);
|
|
12489
|
-
|
|
12536
|
+
_ !== void 0 && _ > -1 && ((X = r.steps) == null || X.splice(_, 0, {
|
|
12490
12537
|
step: "installPlugin",
|
|
12491
12538
|
pluginData: {
|
|
12492
12539
|
resource: "wordpress.org/plugins",
|
|
12493
12540
|
slug: "wordpress-importer"
|
|
12494
12541
|
}
|
|
12495
12542
|
}));
|
|
12496
|
-
const { valid:
|
|
12497
|
-
if (
|
|
12543
|
+
const { valid: q, errors: j } = ns(r);
|
|
12544
|
+
if (!q) {
|
|
12498
12545
|
const h = new Error(
|
|
12499
12546
|
`Invalid blueprint: ${j[0].message} at ${j[0].instancePath}`
|
|
12500
12547
|
);
|
|
12501
12548
|
throw h.errors = j, h;
|
|
12502
12549
|
}
|
|
12503
12550
|
u(r);
|
|
12504
|
-
const
|
|
12551
|
+
const k = r.steps || [], R = k.reduce(
|
|
12505
12552
|
(h, b) => {
|
|
12506
12553
|
var P;
|
|
12507
12554
|
return h + (((P = b.progress) == null ? void 0 : P.weight) || 1);
|
|
12508
12555
|
},
|
|
12509
12556
|
0
|
|
12510
|
-
), L =
|
|
12511
|
-
(h) =>
|
|
12557
|
+
), L = k.map(
|
|
12558
|
+
(h) => ds(h, {
|
|
12512
12559
|
semaphore: n,
|
|
12513
12560
|
rootProgressTracker: t,
|
|
12514
12561
|
totalProgressWeight: R,
|
|
@@ -12518,7 +12565,7 @@ function os(r, {
|
|
|
12518
12565
|
);
|
|
12519
12566
|
return {
|
|
12520
12567
|
versions: {
|
|
12521
|
-
php:
|
|
12568
|
+
php: ps(
|
|
12522
12569
|
(U = r.preferredVersions) == null ? void 0 : U.php,
|
|
12523
12570
|
zr,
|
|
12524
12571
|
Mr
|
|
@@ -12563,7 +12610,7 @@ function os(r, {
|
|
|
12563
12610
|
}
|
|
12564
12611
|
};
|
|
12565
12612
|
}
|
|
12566
|
-
function
|
|
12613
|
+
function ns(r) {
|
|
12567
12614
|
var u;
|
|
12568
12615
|
const t = rr(r);
|
|
12569
12616
|
if (t)
|
|
@@ -12579,31 +12626,31 @@ function as(r) {
|
|
|
12579
12626
|
errors: d
|
|
12580
12627
|
};
|
|
12581
12628
|
}
|
|
12582
|
-
function
|
|
12629
|
+
function ps(r, t, n) {
|
|
12583
12630
|
return r && t.includes(r) ? r : n;
|
|
12584
12631
|
}
|
|
12585
|
-
function
|
|
12632
|
+
function ls(r) {
|
|
12586
12633
|
return !!(typeof r == "object" && r);
|
|
12587
12634
|
}
|
|
12588
|
-
function
|
|
12635
|
+
function fs(r) {
|
|
12589
12636
|
return ["setPhpIniEntry", "request"].includes(r.step) ? (ae.warn(
|
|
12590
12637
|
`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`
|
|
12591
12638
|
), !1) : !0;
|
|
12592
12639
|
}
|
|
12593
|
-
function
|
|
12640
|
+
function ds(r, {
|
|
12594
12641
|
semaphore: t,
|
|
12595
12642
|
rootProgressTracker: n,
|
|
12596
12643
|
totalProgressWeight: d,
|
|
12597
12644
|
corsProxy: u,
|
|
12598
12645
|
streamBundledFile: s
|
|
12599
12646
|
}) {
|
|
12600
|
-
var
|
|
12647
|
+
var k;
|
|
12601
12648
|
const e = n.stage(
|
|
12602
|
-
(((
|
|
12649
|
+
(((k = r.progress) == null ? void 0 : k.weight) || 1) / d
|
|
12603
12650
|
), l = {};
|
|
12604
12651
|
for (const R of Object.keys(r)) {
|
|
12605
12652
|
let L = r[R];
|
|
12606
|
-
|
|
12653
|
+
nt(L) && (L = je.create(L, {
|
|
12607
12654
|
semaphore: t,
|
|
12608
12655
|
corsProxy: u,
|
|
12609
12656
|
streamBundledFile: s
|
|
@@ -12612,9 +12659,9 @@ function fs(r, {
|
|
|
12612
12659
|
const c = async (R) => {
|
|
12613
12660
|
var L;
|
|
12614
12661
|
try {
|
|
12615
|
-
return e.fillSlowly(), await
|
|
12662
|
+
return e.fillSlowly(), await ss[r.step](
|
|
12616
12663
|
R,
|
|
12617
|
-
await
|
|
12664
|
+
await us(l),
|
|
12618
12665
|
{
|
|
12619
12666
|
tracker: e,
|
|
12620
12667
|
initialCaption: (L = r.progress) == null ? void 0 : L.caption
|
|
@@ -12623,14 +12670,14 @@ function fs(r, {
|
|
|
12623
12670
|
} finally {
|
|
12624
12671
|
e.finish();
|
|
12625
12672
|
}
|
|
12626
|
-
},
|
|
12673
|
+
}, _ = br(l), q = br(l).filter(
|
|
12627
12674
|
(R) => R.isAsync
|
|
12628
|
-
), j = 1 / (
|
|
12629
|
-
for (const R of
|
|
12675
|
+
), j = 1 / (q.length + 1);
|
|
12676
|
+
for (const R of q)
|
|
12630
12677
|
R.progress = e.stage(j);
|
|
12631
|
-
return { run: c, step: r, resources:
|
|
12678
|
+
return { run: c, step: r, resources: _ };
|
|
12632
12679
|
}
|
|
12633
|
-
function
|
|
12680
|
+
function br(r) {
|
|
12634
12681
|
const t = [];
|
|
12635
12682
|
for (const n in r) {
|
|
12636
12683
|
const d = r[n];
|
|
@@ -12638,7 +12685,7 @@ function gr(r) {
|
|
|
12638
12685
|
}
|
|
12639
12686
|
return t;
|
|
12640
12687
|
}
|
|
12641
|
-
async function
|
|
12688
|
+
async function us(r) {
|
|
12642
12689
|
const t = {};
|
|
12643
12690
|
for (const n in r) {
|
|
12644
12691
|
const d = r[n];
|
|
@@ -12646,10 +12693,10 @@ async function ds(r) {
|
|
|
12646
12693
|
}
|
|
12647
12694
|
return t;
|
|
12648
12695
|
}
|
|
12649
|
-
async function
|
|
12696
|
+
async function js(r, t) {
|
|
12650
12697
|
await r.run(t);
|
|
12651
12698
|
}
|
|
12652
|
-
async function
|
|
12699
|
+
async function cs() {
|
|
12653
12700
|
const r = (
|
|
12654
12701
|
// @ts-ignore
|
|
12655
12702
|
(await import("./blueprints-Dg6flSLH.js")).default
|
|
@@ -12658,7 +12705,7 @@ async function us() {
|
|
|
12658
12705
|
type: "application/zip"
|
|
12659
12706
|
});
|
|
12660
12707
|
}
|
|
12661
|
-
function
|
|
12708
|
+
function ms(r) {
|
|
12662
12709
|
if (typeof r == "object" && "type" in r && ["inline-file", "file-reference"].includes(r.type))
|
|
12663
12710
|
return r;
|
|
12664
12711
|
if (!r)
|
|
@@ -12683,22 +12730,22 @@ function cs(r) {
|
|
|
12683
12730
|
};
|
|
12684
12731
|
}
|
|
12685
12732
|
}
|
|
12686
|
-
async function
|
|
12687
|
-
var
|
|
12733
|
+
async function Es(r) {
|
|
12734
|
+
var q, j;
|
|
12688
12735
|
const t = r.cliArgs || [];
|
|
12689
|
-
for (const
|
|
12690
|
-
if (
|
|
12736
|
+
for (const k of t)
|
|
12737
|
+
if (k.startsWith("--site-path="))
|
|
12691
12738
|
throw new Error(
|
|
12692
12739
|
"The --site-path CLI argument must not be provided. In Playground, it is always set to /wordpress."
|
|
12693
12740
|
);
|
|
12694
|
-
t.push("--site-path=/wordpress"), t.find((
|
|
12741
|
+
t.push("--site-path=/wordpress"), t.find((k) => k.startsWith("--db-engine=")) || t.push("--db-engine=sqlite");
|
|
12695
12742
|
const d = r.php, u = (r == null ? void 0 : r.onMessage) || (() => {
|
|
12696
|
-
}), s = await
|
|
12743
|
+
}), s = await cs();
|
|
12697
12744
|
d.writeFile(
|
|
12698
12745
|
"/tmp/blueprints.phar",
|
|
12699
12746
|
new Uint8Array(await s.arrayBuffer())
|
|
12700
12747
|
);
|
|
12701
|
-
const e =
|
|
12748
|
+
const e = ms(
|
|
12702
12749
|
r.blueprint
|
|
12703
12750
|
);
|
|
12704
12751
|
let l = "";
|
|
@@ -12713,14 +12760,14 @@ async function js(r) {
|
|
|
12713
12760
|
l = e.reference;
|
|
12714
12761
|
break;
|
|
12715
12762
|
}
|
|
12716
|
-
const c = await d.onMessage(async (
|
|
12763
|
+
const c = await d.onMessage(async (k) => {
|
|
12717
12764
|
try {
|
|
12718
|
-
const R = typeof
|
|
12765
|
+
const R = typeof k == "string" ? JSON.parse(k) : k;
|
|
12719
12766
|
if (!R)
|
|
12720
12767
|
return;
|
|
12721
12768
|
await new Promise((L) => setTimeout(L, 0)), R.type.startsWith("blueprint.") && await u(R);
|
|
12722
12769
|
} catch (R) {
|
|
12723
|
-
ae.warn("Failed to parse message as JSON:",
|
|
12770
|
+
ae.warn("Failed to parse message as JSON:", k, R);
|
|
12724
12771
|
}
|
|
12725
12772
|
});
|
|
12726
12773
|
await (d == null ? void 0 : d.writeFile(
|
|
@@ -12745,7 +12792,7 @@ playground_add_filter('blueprint.target_resolved', 'playground_on_blueprint_targ
|
|
|
12745
12792
|
playground_add_filter('blueprint.resolved', 'playground_on_blueprint_resolved');
|
|
12746
12793
|
function playground_on_blueprint_resolved($blueprint) {
|
|
12747
12794
|
$additional_blueprint_steps = json_decode(${ge(
|
|
12748
|
-
JSON.stringify(((
|
|
12795
|
+
JSON.stringify(((q = r.blueprintOverrides) == null ? void 0 : q.additionalSteps) || [])
|
|
12749
12796
|
)}, true);
|
|
12750
12797
|
if(count($additional_blueprint_steps) > 0) {
|
|
12751
12798
|
$blueprint['additionalStepsAfterExecution'] = array_merge(
|
|
@@ -12812,16 +12859,16 @@ playground_add_filter('blueprint.progress_reporter', 'playground_progress_report
|
|
|
12812
12859
|
require( "/tmp/blueprints.phar" );
|
|
12813
12860
|
`
|
|
12814
12861
|
));
|
|
12815
|
-
const
|
|
12862
|
+
const _ = await d.cli([
|
|
12816
12863
|
"/internal/shared/bin/php",
|
|
12817
12864
|
"/tmp/run-blueprints.php",
|
|
12818
12865
|
"exec",
|
|
12819
12866
|
l,
|
|
12820
12867
|
...t
|
|
12821
12868
|
]);
|
|
12822
|
-
return
|
|
12869
|
+
return _.finished.finally(c), _;
|
|
12823
12870
|
}
|
|
12824
|
-
async function
|
|
12871
|
+
async function $s(r) {
|
|
12825
12872
|
const t = await fetch(r, {
|
|
12826
12873
|
credentials: "omit"
|
|
12827
12874
|
});
|
|
@@ -12830,23 +12877,23 @@ async function Es(r) {
|
|
|
12830
12877
|
const n = await t.arrayBuffer();
|
|
12831
12878
|
try {
|
|
12832
12879
|
const d = new TextDecoder().decode(n);
|
|
12833
|
-
return JSON.parse(d), new
|
|
12834
|
-
new
|
|
12880
|
+
return JSON.parse(d), new Qr([
|
|
12881
|
+
new Jr({
|
|
12835
12882
|
"blueprint.json": d
|
|
12836
12883
|
}),
|
|
12837
|
-
new
|
|
12884
|
+
new Xr({
|
|
12838
12885
|
baseUrl: r
|
|
12839
12886
|
})
|
|
12840
12887
|
]);
|
|
12841
12888
|
} catch {
|
|
12842
|
-
if (await
|
|
12843
|
-
return
|
|
12889
|
+
if (await ys(n))
|
|
12890
|
+
return Kr.fromArrayBuffer(n);
|
|
12844
12891
|
throw new Error(
|
|
12845
12892
|
`Blueprint file at ${r} is neither a valid JSON nor a ZIP file.`
|
|
12846
12893
|
);
|
|
12847
12894
|
}
|
|
12848
12895
|
}
|
|
12849
|
-
async function
|
|
12896
|
+
async function ys(r) {
|
|
12850
12897
|
if (r.byteLength < 4)
|
|
12851
12898
|
return !1;
|
|
12852
12899
|
const t = new Uint8Array(r, 0, 4);
|
|
@@ -12854,7 +12901,7 @@ async function ms(r) {
|
|
|
12854
12901
|
}
|
|
12855
12902
|
async function qs(r) {
|
|
12856
12903
|
if ((await tr.create(r)).getVersion() === 1) {
|
|
12857
|
-
const n = await
|
|
12904
|
+
const n = await is(
|
|
12858
12905
|
r
|
|
12859
12906
|
);
|
|
12860
12907
|
return {
|
|
@@ -12876,7 +12923,7 @@ async function qs(r) {
|
|
|
12876
12923
|
};
|
|
12877
12924
|
} else
|
|
12878
12925
|
return {
|
|
12879
|
-
phpVersion:
|
|
12926
|
+
phpVersion: it,
|
|
12880
12927
|
wpVersion: "latest",
|
|
12881
12928
|
intl: !1,
|
|
12882
12929
|
networking: !0,
|
|
@@ -12884,52 +12931,52 @@ async function qs(r) {
|
|
|
12884
12931
|
extraLibraries: []
|
|
12885
12932
|
};
|
|
12886
12933
|
}
|
|
12887
|
-
function
|
|
12934
|
+
function As() {
|
|
12888
12935
|
}
|
|
12889
12936
|
export {
|
|
12890
12937
|
tr as BlueprintReflection,
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12938
|
+
Tr as activatePlugin,
|
|
12939
|
+
jr as activateTheme,
|
|
12940
|
+
is as compileBlueprint,
|
|
12941
|
+
is as compileBlueprintV1,
|
|
12942
|
+
At as cp,
|
|
12943
|
+
Rr as defineSiteUrl,
|
|
12944
|
+
dr as defineWpConfigConsts,
|
|
12898
12945
|
qt as enableMultisite,
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12946
|
+
Dt as exportWXR,
|
|
12947
|
+
os as getBlueprintDeclaration,
|
|
12948
|
+
cs as getV2Runner,
|
|
12949
|
+
Lr as importThemeStarterContent,
|
|
12950
|
+
Ct as importWordPressFiles,
|
|
12951
|
+
Nt as importWxr,
|
|
12952
|
+
It as installPlugin,
|
|
12953
|
+
Wt as installTheme,
|
|
12954
|
+
Cr as isBlueprintBundle,
|
|
12955
|
+
Ut as login,
|
|
12956
|
+
Lt as mkdir,
|
|
12957
|
+
Rt as mv,
|
|
12958
|
+
Ot as request,
|
|
12959
|
+
Bt as resetData,
|
|
12960
|
+
$s as resolveRemoteBlueprint,
|
|
12914
12961
|
qs as resolveRuntimeConfiguration,
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12962
|
+
Er as rm,
|
|
12963
|
+
Ft as rmdir,
|
|
12964
|
+
js as runBlueprintSteps,
|
|
12965
|
+
js as runBlueprintV1Steps,
|
|
12966
|
+
Es as runBlueprintV2,
|
|
12967
|
+
Pt as runPHP,
|
|
12968
|
+
_t as runPHPWithOptions,
|
|
12969
|
+
kt as runSql,
|
|
12970
|
+
Mt as runWpInstallationWizard,
|
|
12971
|
+
As as setPluginProxyURL,
|
|
12972
|
+
Yt as setSiteLanguage,
|
|
12926
12973
|
$r as setSiteOptions,
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12974
|
+
mr as unzip,
|
|
12975
|
+
jt as updateUserMeta,
|
|
12976
|
+
Ar as wpCLI,
|
|
12977
|
+
Fr as wpContentFilesExcludedFromExport,
|
|
12978
|
+
cr as writeFile,
|
|
12979
|
+
St as writeFiles,
|
|
12980
|
+
zt as zipWpContent
|
|
12934
12981
|
};
|
|
12935
12982
|
//# sourceMappingURL=index.js.map
|