@wp-playground/blueprints 3.1.35 → 3.1.38
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 +96 -57
- package/blueprint-schema.json +7 -0
- package/index.cjs +8 -8
- package/index.cjs.map +1 -1
- package/index.js +224 -200
- package/index.js.map +1 -1
- package/package.json +14 -13
package/index.js
CHANGED
|
@@ -1519,8 +1519,8 @@ const Wr = async (r, { themeSlug: t = "" }, n) => {
|
|
|
1519
1519
|
T
|
|
1520
1520
|
);
|
|
1521
1521
|
await $r(r, j);
|
|
1522
|
-
const
|
|
1523
|
-
await r.fileExists(
|
|
1522
|
+
const w = ie(d, T);
|
|
1523
|
+
await r.fileExists(w) && (await r.mkdir(hr(j)), await r.mv(w, j));
|
|
1524
1524
|
}
|
|
1525
1525
|
const h = ie(
|
|
1526
1526
|
u,
|
|
@@ -1659,7 +1659,7 @@ async function Mr(r, {
|
|
|
1659
1659
|
let P = await r.listFiles(h, {
|
|
1660
1660
|
prependPath: !0
|
|
1661
1661
|
});
|
|
1662
|
-
P = P.filter((
|
|
1662
|
+
P = P.filter((w) => !w.endsWith("/__MACOSX"));
|
|
1663
1663
|
const y = P.length === 1 && await r.isDir(P[0]);
|
|
1664
1664
|
let O, T = "";
|
|
1665
1665
|
y ? (T = P[0], O = P[0].split("/").pop()) : (T = h, O = e), u && u.length && (O = u);
|
|
@@ -2025,14 +2025,14 @@ const ys = async (r, t) => {
|
|
|
2025
2025
|
throw new Error(
|
|
2026
2026
|
`Failed to download translations for ${T}: ${j.statusText}`
|
|
2027
2027
|
);
|
|
2028
|
-
let
|
|
2029
|
-
T === "plugin" ?
|
|
2028
|
+
let w = `${l}/wp-content/languages`;
|
|
2029
|
+
T === "plugin" ? w += "/plugins" : T === "theme" && (w += "/themes"), await Rr(
|
|
2030
2030
|
r,
|
|
2031
2031
|
new File(
|
|
2032
2032
|
[await j.arrayBuffer()],
|
|
2033
2033
|
`${t}-${T}.zip`
|
|
2034
2034
|
),
|
|
2035
|
-
|
|
2035
|
+
w
|
|
2036
2036
|
);
|
|
2037
2037
|
} catch (j) {
|
|
2038
2038
|
if (T === "core")
|
|
@@ -2227,20 +2227,20 @@ function Ie(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2227
2227
|
if (typeof r != "string") {
|
|
2228
2228
|
const y = {
|
|
2229
2229
|
instancePath: t,
|
|
2230
|
-
schemaPath: "#/definitions/
|
|
2230
|
+
schemaPath: "#/definitions/PHPNextVersion/type",
|
|
2231
2231
|
keyword: "type",
|
|
2232
2232
|
params: { type: "string" },
|
|
2233
2233
|
message: "must be string"
|
|
2234
2234
|
};
|
|
2235
2235
|
s === null ? s = [y] : s.push(y), e++;
|
|
2236
2236
|
}
|
|
2237
|
-
if (
|
|
2237
|
+
if (r !== "next") {
|
|
2238
2238
|
const y = {
|
|
2239
2239
|
instancePath: t,
|
|
2240
|
-
schemaPath: "#/definitions/
|
|
2241
|
-
keyword: "
|
|
2242
|
-
params: {
|
|
2243
|
-
message: "must be equal to
|
|
2240
|
+
schemaPath: "#/definitions/PHPNextVersion/const",
|
|
2241
|
+
keyword: "const",
|
|
2242
|
+
params: { allowedValue: "next" },
|
|
2243
|
+
message: "must be equal to constant"
|
|
2244
2244
|
};
|
|
2245
2245
|
s === null ? s = [y] : s.push(y), e++;
|
|
2246
2246
|
}
|
|
@@ -2250,25 +2250,49 @@ function Ie(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2250
2250
|
if (typeof r != "string") {
|
|
2251
2251
|
const T = {
|
|
2252
2252
|
instancePath: t,
|
|
2253
|
-
schemaPath: "#/definitions/
|
|
2253
|
+
schemaPath: "#/definitions/SupportedPHPVersion/type",
|
|
2254
2254
|
keyword: "type",
|
|
2255
2255
|
params: { type: "string" },
|
|
2256
2256
|
message: "must be string"
|
|
2257
2257
|
};
|
|
2258
2258
|
s === null ? s = [T] : s.push(T), e++;
|
|
2259
2259
|
}
|
|
2260
|
-
if (r
|
|
2260
|
+
if (!(r === "8.5" || r === "8.4" || r === "8.3" || r === "8.2" || r === "8.1" || r === "8.0" || r === "7.4")) {
|
|
2261
2261
|
const T = {
|
|
2262
2262
|
instancePath: t,
|
|
2263
|
-
schemaPath: "#/definitions/
|
|
2263
|
+
schemaPath: "#/definitions/SupportedPHPVersion/enum",
|
|
2264
2264
|
keyword: "enum",
|
|
2265
|
-
params: { allowedValues:
|
|
2265
|
+
params: { allowedValues: vs.enum },
|
|
2266
2266
|
message: "must be equal to one of the allowed values"
|
|
2267
2267
|
};
|
|
2268
2268
|
s === null ? s = [T] : s.push(T), e++;
|
|
2269
2269
|
}
|
|
2270
2270
|
var P = y === e;
|
|
2271
|
-
d = d || P
|
|
2271
|
+
if (d = d || P, !d) {
|
|
2272
|
+
const T = e;
|
|
2273
|
+
if (typeof r != "string") {
|
|
2274
|
+
const w = {
|
|
2275
|
+
instancePath: t,
|
|
2276
|
+
schemaPath: "#/definitions/LegacyPHPVersion/type",
|
|
2277
|
+
keyword: "type",
|
|
2278
|
+
params: { type: "string" },
|
|
2279
|
+
message: "must be string"
|
|
2280
|
+
};
|
|
2281
|
+
s === null ? s = [w] : s.push(w), e++;
|
|
2282
|
+
}
|
|
2283
|
+
if (r !== "5.2") {
|
|
2284
|
+
const w = {
|
|
2285
|
+
instancePath: t,
|
|
2286
|
+
schemaPath: "#/definitions/LegacyPHPVersion/enum",
|
|
2287
|
+
keyword: "enum",
|
|
2288
|
+
params: { allowedValues: Ps.enum },
|
|
2289
|
+
message: "must be equal to one of the allowed values"
|
|
2290
|
+
};
|
|
2291
|
+
s === null ? s = [w] : s.push(w), e++;
|
|
2292
|
+
}
|
|
2293
|
+
var P = T === e;
|
|
2294
|
+
d = d || P;
|
|
2295
|
+
}
|
|
2272
2296
|
}
|
|
2273
2297
|
if (d)
|
|
2274
2298
|
e = p, s !== null && (p ? s.length = p : s = null);
|
|
@@ -2322,24 +2346,24 @@ function We(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2322
2346
|
if (d = d || P, !d) {
|
|
2323
2347
|
const T = e;
|
|
2324
2348
|
if (typeof r != "string") {
|
|
2325
|
-
const
|
|
2349
|
+
const w = {
|
|
2326
2350
|
instancePath: t,
|
|
2327
2351
|
schemaPath: "#/anyOf/2/type",
|
|
2328
2352
|
keyword: "type",
|
|
2329
2353
|
params: { type: "string" },
|
|
2330
2354
|
message: "must be string"
|
|
2331
2355
|
};
|
|
2332
|
-
s === null ? s = [
|
|
2356
|
+
s === null ? s = [w] : s.push(w), e++;
|
|
2333
2357
|
}
|
|
2334
2358
|
if (r !== "7.3") {
|
|
2335
|
-
const
|
|
2359
|
+
const w = {
|
|
2336
2360
|
instancePath: t,
|
|
2337
2361
|
schemaPath: "#/anyOf/2/const",
|
|
2338
2362
|
keyword: "const",
|
|
2339
2363
|
params: { allowedValue: "7.3" },
|
|
2340
2364
|
message: "must be equal to constant"
|
|
2341
2365
|
};
|
|
2342
|
-
s === null ? s = [
|
|
2366
|
+
s === null ? s = [w] : s.push(w), e++;
|
|
2343
2367
|
}
|
|
2344
2368
|
var P = T === e;
|
|
2345
2369
|
d = d || P;
|
|
@@ -2551,7 +2575,7 @@ function xe(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2551
2575
|
}) || (s = s === null ? cr.validate.errors : s.concat(cr.validate.errors), e = s.length);
|
|
2552
2576
|
var p = j === e;
|
|
2553
2577
|
if (T = T || p, !T) {
|
|
2554
|
-
const
|
|
2578
|
+
const w = e;
|
|
2555
2579
|
if (!(P && typeof P == "object" && !Array.isArray(P)) && typeof P != "string") {
|
|
2556
2580
|
const Q = {
|
|
2557
2581
|
instancePath: t + "/" + h.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
@@ -2564,20 +2588,20 @@ function xe(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2564
2588
|
};
|
|
2565
2589
|
s === null ? s = [Q] : s.push(Q), e++;
|
|
2566
2590
|
}
|
|
2567
|
-
var p =
|
|
2591
|
+
var p = w === e;
|
|
2568
2592
|
T = T || p;
|
|
2569
2593
|
}
|
|
2570
2594
|
if (T)
|
|
2571
2595
|
e = O, s !== null && (O ? s.length = O : s = null);
|
|
2572
2596
|
else {
|
|
2573
|
-
const
|
|
2597
|
+
const w = {
|
|
2574
2598
|
instancePath: t + "/" + h.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
2575
2599
|
schemaPath: "#/additionalProperties/anyOf",
|
|
2576
2600
|
keyword: "anyOf",
|
|
2577
2601
|
params: {},
|
|
2578
2602
|
message: "must match a schema in anyOf"
|
|
2579
2603
|
};
|
|
2580
|
-
return s === null ? s = [
|
|
2604
|
+
return s === null ? s = [w] : s.push(w), e++, xe.errors = s, !1;
|
|
2581
2605
|
}
|
|
2582
2606
|
var d = y === e;
|
|
2583
2607
|
if (!d)
|
|
@@ -2792,7 +2816,7 @@ function ve(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2792
2816
|
let y = r.inner;
|
|
2793
2817
|
const O = e, T = e;
|
|
2794
2818
|
let j = !1;
|
|
2795
|
-
const
|
|
2819
|
+
const w = e;
|
|
2796
2820
|
dr.validate(y, {
|
|
2797
2821
|
instancePath: t + "/inner",
|
|
2798
2822
|
parentData: r,
|
|
@@ -2801,7 +2825,7 @@ function ve(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
2801
2825
|
}) || (s = s === null ? dr.validate.errors : s.concat(
|
|
2802
2826
|
dr.validate.errors
|
|
2803
2827
|
), e = s.length);
|
|
2804
|
-
var d =
|
|
2828
|
+
var d = w === e;
|
|
2805
2829
|
if (j = j || d, !j) {
|
|
2806
2830
|
const Q = e;
|
|
2807
2831
|
me(y, {
|
|
@@ -2880,20 +2904,20 @@ function G(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
2880
2904
|
const z = e;
|
|
2881
2905
|
for (const H in r)
|
|
2882
2906
|
if (!(H === "resource" || H === "path")) {
|
|
2883
|
-
const
|
|
2907
|
+
const b = {
|
|
2884
2908
|
instancePath: t,
|
|
2885
2909
|
schemaPath: "#/definitions/VFSReference/additionalProperties",
|
|
2886
2910
|
keyword: "additionalProperties",
|
|
2887
2911
|
params: { additionalProperty: H },
|
|
2888
2912
|
message: "must NOT have additional properties"
|
|
2889
2913
|
};
|
|
2890
|
-
s === null ? s = [
|
|
2914
|
+
s === null ? s = [b] : s.push(b), e++;
|
|
2891
2915
|
break;
|
|
2892
2916
|
}
|
|
2893
2917
|
if (z === e) {
|
|
2894
2918
|
if (r.resource !== void 0) {
|
|
2895
2919
|
let H = r.resource;
|
|
2896
|
-
const
|
|
2920
|
+
const b = e;
|
|
2897
2921
|
if (typeof H != "string") {
|
|
2898
2922
|
const $ = {
|
|
2899
2923
|
instancePath: t + "/resource",
|
|
@@ -2914,7 +2938,7 @@ function G(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
2914
2938
|
};
|
|
2915
2939
|
s === null ? s = [$] : s.push($), e++;
|
|
2916
2940
|
}
|
|
2917
|
-
var y =
|
|
2941
|
+
var y = b === e;
|
|
2918
2942
|
} else
|
|
2919
2943
|
var y = !0;
|
|
2920
2944
|
if (y)
|
|
@@ -2950,14 +2974,14 @@ function G(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
2950
2974
|
const V = e;
|
|
2951
2975
|
if (e === e)
|
|
2952
2976
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
2953
|
-
let
|
|
2954
|
-
if (r.resource === void 0 && (
|
|
2977
|
+
let b;
|
|
2978
|
+
if (r.resource === void 0 && (b = "resource") || r.name === void 0 && (b = "name") || r.contents === void 0 && (b = "contents")) {
|
|
2955
2979
|
const $ = {
|
|
2956
2980
|
instancePath: t,
|
|
2957
2981
|
schemaPath: "#/definitions/LiteralReference/required",
|
|
2958
2982
|
keyword: "required",
|
|
2959
|
-
params: { missingProperty:
|
|
2960
|
-
message: "must have required property '" +
|
|
2983
|
+
params: { missingProperty: b },
|
|
2984
|
+
message: "must have required property '" + b + "'"
|
|
2961
2985
|
};
|
|
2962
2986
|
s === null ? s = [$] : s.push($), e++;
|
|
2963
2987
|
} else {
|
|
@@ -3080,8 +3104,8 @@ function G(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
3080
3104
|
R
|
|
3081
3105
|
), e++;
|
|
3082
3106
|
}
|
|
3083
|
-
var
|
|
3084
|
-
if (!
|
|
3107
|
+
var w = X === e;
|
|
3108
|
+
if (!w)
|
|
3085
3109
|
break;
|
|
3086
3110
|
}
|
|
3087
3111
|
if (L === e) {
|
|
@@ -3306,18 +3330,18 @@ function G(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
3306
3330
|
}
|
|
3307
3331
|
}
|
|
3308
3332
|
} else {
|
|
3309
|
-
const
|
|
3333
|
+
const b = {
|
|
3310
3334
|
instancePath: t,
|
|
3311
3335
|
schemaPath: "#/definitions/LiteralReference/type",
|
|
3312
3336
|
keyword: "type",
|
|
3313
3337
|
params: { type: "object" },
|
|
3314
3338
|
message: "must be object"
|
|
3315
3339
|
};
|
|
3316
|
-
s === null ? s = [
|
|
3340
|
+
s === null ? s = [b] : s.push(b), e++;
|
|
3317
3341
|
}
|
|
3318
3342
|
var O = V === e;
|
|
3319
3343
|
if (d = d || O, !d) {
|
|
3320
|
-
const
|
|
3344
|
+
const b = e;
|
|
3321
3345
|
if (e === e)
|
|
3322
3346
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
3323
3347
|
let E;
|
|
@@ -3401,7 +3425,7 @@ function G(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
3401
3425
|
};
|
|
3402
3426
|
s === null ? s = [E] : s.push(E), e++;
|
|
3403
3427
|
}
|
|
3404
|
-
var O =
|
|
3428
|
+
var O = b === e;
|
|
3405
3429
|
if (d = d || O, !d) {
|
|
3406
3430
|
const E = e;
|
|
3407
3431
|
if (e === e)
|
|
@@ -4515,7 +4539,7 @@ function we(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
4515
4539
|
if (e === e)
|
|
4516
4540
|
if (A && typeof A == "object" && !Array.isArray(A))
|
|
4517
4541
|
for (const H in A) {
|
|
4518
|
-
const
|
|
4542
|
+
const b = e;
|
|
4519
4543
|
if (typeof A[H] != "string")
|
|
4520
4544
|
return we.errors = [
|
|
4521
4545
|
{
|
|
@@ -4534,7 +4558,7 @@ function we(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
4534
4558
|
message: "must be string"
|
|
4535
4559
|
}
|
|
4536
4560
|
], !1;
|
|
4537
|
-
var d =
|
|
4561
|
+
var d = b === e;
|
|
4538
4562
|
if (!d)
|
|
4539
4563
|
break;
|
|
4540
4564
|
}
|
|
@@ -5262,10 +5286,10 @@ function we(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5262
5286
|
ae
|
|
5263
5287
|
), e++;
|
|
5264
5288
|
}
|
|
5265
|
-
var
|
|
5289
|
+
var w = I === e;
|
|
5266
5290
|
} else
|
|
5267
|
-
var
|
|
5268
|
-
if (
|
|
5291
|
+
var w = !0;
|
|
5292
|
+
if (w) {
|
|
5269
5293
|
if (g.type !== void 0) {
|
|
5270
5294
|
const Z = e;
|
|
5271
5295
|
if (typeof g.type != "string") {
|
|
@@ -5290,10 +5314,10 @@ function we(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5290
5314
|
ae
|
|
5291
5315
|
), e++;
|
|
5292
5316
|
}
|
|
5293
|
-
var
|
|
5317
|
+
var w = Z === e;
|
|
5294
5318
|
} else
|
|
5295
|
-
var
|
|
5296
|
-
if (
|
|
5319
|
+
var w = !0;
|
|
5320
|
+
if (w) {
|
|
5297
5321
|
if (g.lastModified !== void 0) {
|
|
5298
5322
|
let Z = g.lastModified;
|
|
5299
5323
|
const I = e;
|
|
@@ -5321,10 +5345,10 @@ function we(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5321
5345
|
pe
|
|
5322
5346
|
), e++;
|
|
5323
5347
|
}
|
|
5324
|
-
var
|
|
5348
|
+
var w = I === e;
|
|
5325
5349
|
} else
|
|
5326
|
-
var
|
|
5327
|
-
if (
|
|
5350
|
+
var w = !0;
|
|
5351
|
+
if (w) {
|
|
5328
5352
|
if (g.name !== void 0) {
|
|
5329
5353
|
const Z = e;
|
|
5330
5354
|
if (typeof g.name != "string") {
|
|
@@ -5349,10 +5373,10 @@ function we(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5349
5373
|
ae
|
|
5350
5374
|
), e++;
|
|
5351
5375
|
}
|
|
5352
|
-
var
|
|
5376
|
+
var w = Z === e;
|
|
5353
5377
|
} else
|
|
5354
|
-
var
|
|
5355
|
-
if (
|
|
5378
|
+
var w = !0;
|
|
5379
|
+
if (w)
|
|
5356
5380
|
if (g.webkitRelativePath !== void 0) {
|
|
5357
5381
|
const Z = e;
|
|
5358
5382
|
if (typeof g.webkitRelativePath != "string") {
|
|
@@ -5377,9 +5401,9 @@ function we(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5377
5401
|
ae
|
|
5378
5402
|
), e++;
|
|
5379
5403
|
}
|
|
5380
|
-
var
|
|
5404
|
+
var w = Z === e;
|
|
5381
5405
|
} else
|
|
5382
|
-
var
|
|
5406
|
+
var w = !0;
|
|
5383
5407
|
}
|
|
5384
5408
|
}
|
|
5385
5409
|
}
|
|
@@ -5553,20 +5577,20 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5553
5577
|
if (e === 0)
|
|
5554
5578
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
5555
5579
|
const j = e;
|
|
5556
|
-
for (const
|
|
5557
|
-
if (!Vr.call(Os.properties,
|
|
5580
|
+
for (const w in r)
|
|
5581
|
+
if (!Vr.call(Os.properties, w))
|
|
5558
5582
|
return le.errors = [
|
|
5559
5583
|
{
|
|
5560
5584
|
instancePath: t,
|
|
5561
5585
|
schemaPath: "#/additionalProperties",
|
|
5562
5586
|
keyword: "additionalProperties",
|
|
5563
|
-
params: { additionalProperty:
|
|
5587
|
+
params: { additionalProperty: w },
|
|
5564
5588
|
message: "must NOT have additional properties"
|
|
5565
5589
|
}
|
|
5566
5590
|
], !1;
|
|
5567
5591
|
if (j === e) {
|
|
5568
5592
|
if (r.relativeUri !== void 0) {
|
|
5569
|
-
const
|
|
5593
|
+
const w = e;
|
|
5570
5594
|
if (typeof r.relativeUri != "string")
|
|
5571
5595
|
return le.errors = [
|
|
5572
5596
|
{
|
|
@@ -5577,12 +5601,12 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5577
5601
|
message: "must be string"
|
|
5578
5602
|
}
|
|
5579
5603
|
], !1;
|
|
5580
|
-
var p =
|
|
5604
|
+
var p = w === e;
|
|
5581
5605
|
} else
|
|
5582
5606
|
var p = !0;
|
|
5583
5607
|
if (p) {
|
|
5584
5608
|
if (r.scriptPath !== void 0) {
|
|
5585
|
-
const
|
|
5609
|
+
const w = e;
|
|
5586
5610
|
if (typeof r.scriptPath != "string")
|
|
5587
5611
|
return le.errors = [
|
|
5588
5612
|
{
|
|
@@ -5593,12 +5617,12 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5593
5617
|
message: "must be string"
|
|
5594
5618
|
}
|
|
5595
5619
|
], !1;
|
|
5596
|
-
var p =
|
|
5620
|
+
var p = w === e;
|
|
5597
5621
|
} else
|
|
5598
5622
|
var p = !0;
|
|
5599
5623
|
if (p) {
|
|
5600
5624
|
if (r.protocol !== void 0) {
|
|
5601
|
-
const
|
|
5625
|
+
const w = e;
|
|
5602
5626
|
if (typeof r.protocol != "string")
|
|
5603
5627
|
return le.errors = [
|
|
5604
5628
|
{
|
|
@@ -5609,14 +5633,14 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5609
5633
|
message: "must be string"
|
|
5610
5634
|
}
|
|
5611
5635
|
], !1;
|
|
5612
|
-
var p =
|
|
5636
|
+
var p = w === e;
|
|
5613
5637
|
} else
|
|
5614
5638
|
var p = !0;
|
|
5615
5639
|
if (p) {
|
|
5616
5640
|
if (r.method !== void 0) {
|
|
5617
|
-
let
|
|
5641
|
+
let w = r.method;
|
|
5618
5642
|
const W = e;
|
|
5619
|
-
if (typeof
|
|
5643
|
+
if (typeof w != "string")
|
|
5620
5644
|
return le.errors = [
|
|
5621
5645
|
{
|
|
5622
5646
|
instancePath: t + "/method",
|
|
@@ -5626,7 +5650,7 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5626
5650
|
message: "must be string"
|
|
5627
5651
|
}
|
|
5628
5652
|
], !1;
|
|
5629
|
-
if (!(
|
|
5653
|
+
if (!(w === "GET" || w === "POST" || w === "HEAD" || w === "OPTIONS" || w === "PATCH" || w === "PUT" || w === "DELETE"))
|
|
5630
5654
|
return le.errors = [
|
|
5631
5655
|
{
|
|
5632
5656
|
instancePath: t + "/method",
|
|
@@ -5643,13 +5667,13 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5643
5667
|
var p = !0;
|
|
5644
5668
|
if (p) {
|
|
5645
5669
|
if (r.headers !== void 0) {
|
|
5646
|
-
let
|
|
5670
|
+
let w = r.headers;
|
|
5647
5671
|
const W = e;
|
|
5648
5672
|
if (e === e)
|
|
5649
|
-
if (
|
|
5650
|
-
for (const A in
|
|
5673
|
+
if (w && typeof w == "object" && !Array.isArray(w))
|
|
5674
|
+
for (const A in w) {
|
|
5651
5675
|
const re = e;
|
|
5652
|
-
if (typeof
|
|
5676
|
+
if (typeof w[A] != "string")
|
|
5653
5677
|
return le.errors = [
|
|
5654
5678
|
{
|
|
5655
5679
|
instancePath: t + "/headers/" + A.replace(
|
|
@@ -5686,11 +5710,11 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5686
5710
|
var p = !0;
|
|
5687
5711
|
if (p) {
|
|
5688
5712
|
if (r.body !== void 0) {
|
|
5689
|
-
let
|
|
5713
|
+
let w = r.body;
|
|
5690
5714
|
const W = e, Q = e;
|
|
5691
5715
|
let J = !1;
|
|
5692
5716
|
const A = e;
|
|
5693
|
-
if (typeof
|
|
5717
|
+
if (typeof w != "string") {
|
|
5694
5718
|
const V = {
|
|
5695
5719
|
instancePath: t + "/body",
|
|
5696
5720
|
schemaPath: "#/properties/body/anyOf/0/type",
|
|
@@ -5704,10 +5728,10 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5704
5728
|
if (J = J || h, !J) {
|
|
5705
5729
|
const V = e;
|
|
5706
5730
|
if (e === V)
|
|
5707
|
-
if (
|
|
5731
|
+
if (w && typeof w == "object" && !Array.isArray(w)) {
|
|
5708
5732
|
let H;
|
|
5709
|
-
if (
|
|
5710
|
-
const
|
|
5733
|
+
if (w.BYTES_PER_ELEMENT === void 0 && (H = "BYTES_PER_ELEMENT") || w.buffer === void 0 && (H = "buffer") || w.byteLength === void 0 && (H = "byteLength") || w.byteOffset === void 0 && (H = "byteOffset") || w.length === void 0 && (H = "length")) {
|
|
5734
|
+
const b = {
|
|
5711
5735
|
instancePath: t + "/body",
|
|
5712
5736
|
schemaPath: "#/properties/body/anyOf/1/required",
|
|
5713
5737
|
keyword: "required",
|
|
@@ -5716,12 +5740,12 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5716
5740
|
},
|
|
5717
5741
|
message: "must have required property '" + H + "'"
|
|
5718
5742
|
};
|
|
5719
|
-
s === null ? s = [
|
|
5743
|
+
s === null ? s = [b] : s.push(b), e++;
|
|
5720
5744
|
} else {
|
|
5721
|
-
const
|
|
5722
|
-
for (const $ in
|
|
5745
|
+
const b = e;
|
|
5746
|
+
for (const $ in w)
|
|
5723
5747
|
if (!($ === "BYTES_PER_ELEMENT" || $ === "buffer" || $ === "byteLength" || $ === "byteOffset" || $ === "length")) {
|
|
5724
|
-
let v =
|
|
5748
|
+
let v = w[$];
|
|
5725
5749
|
const E = e;
|
|
5726
5750
|
if (!(typeof v == "number" && isFinite(
|
|
5727
5751
|
v
|
|
@@ -5751,9 +5775,9 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5751
5775
|
if (!P)
|
|
5752
5776
|
break;
|
|
5753
5777
|
}
|
|
5754
|
-
if (
|
|
5755
|
-
if (
|
|
5756
|
-
let $ =
|
|
5778
|
+
if (b === e) {
|
|
5779
|
+
if (w.BYTES_PER_ELEMENT !== void 0) {
|
|
5780
|
+
let $ = w.BYTES_PER_ELEMENT;
|
|
5757
5781
|
const v = e;
|
|
5758
5782
|
if (!(typeof $ == "number" && isFinite(
|
|
5759
5783
|
$
|
|
@@ -5777,8 +5801,8 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5777
5801
|
} else
|
|
5778
5802
|
var y = !0;
|
|
5779
5803
|
if (y) {
|
|
5780
|
-
if (
|
|
5781
|
-
let $ =
|
|
5804
|
+
if (w.buffer !== void 0) {
|
|
5805
|
+
let $ = w.buffer;
|
|
5782
5806
|
const v = e;
|
|
5783
5807
|
if (e === v)
|
|
5784
5808
|
if ($ && typeof $ == "object" && !Array.isArray(
|
|
@@ -5862,8 +5886,8 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5862
5886
|
} else
|
|
5863
5887
|
var y = !0;
|
|
5864
5888
|
if (y) {
|
|
5865
|
-
if (
|
|
5866
|
-
let $ =
|
|
5889
|
+
if (w.byteLength !== void 0) {
|
|
5890
|
+
let $ = w.byteLength;
|
|
5867
5891
|
const v = e;
|
|
5868
5892
|
if (!(typeof $ == "number" && isFinite(
|
|
5869
5893
|
$
|
|
@@ -5887,8 +5911,8 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5887
5911
|
} else
|
|
5888
5912
|
var y = !0;
|
|
5889
5913
|
if (y) {
|
|
5890
|
-
if (
|
|
5891
|
-
let $ =
|
|
5914
|
+
if (w.byteOffset !== void 0) {
|
|
5915
|
+
let $ = w.byteOffset;
|
|
5892
5916
|
const v = e;
|
|
5893
5917
|
if (!(typeof $ == "number" && isFinite(
|
|
5894
5918
|
$
|
|
@@ -5912,8 +5936,8 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5912
5936
|
} else
|
|
5913
5937
|
var y = !0;
|
|
5914
5938
|
if (y)
|
|
5915
|
-
if (
|
|
5916
|
-
let $ =
|
|
5939
|
+
if (w.length !== void 0) {
|
|
5940
|
+
let $ = w.length;
|
|
5917
5941
|
const v = e;
|
|
5918
5942
|
if (!(typeof $ == "number" && isFinite(
|
|
5919
5943
|
$
|
|
@@ -5973,13 +5997,13 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
5973
5997
|
var p = !0;
|
|
5974
5998
|
if (p) {
|
|
5975
5999
|
if (r.env !== void 0) {
|
|
5976
|
-
let
|
|
6000
|
+
let w = r.env;
|
|
5977
6001
|
const W = e;
|
|
5978
6002
|
if (e === W)
|
|
5979
|
-
if (
|
|
5980
|
-
for (const J in
|
|
6003
|
+
if (w && typeof w == "object" && !Array.isArray(w))
|
|
6004
|
+
for (const J in w) {
|
|
5981
6005
|
const A = e;
|
|
5982
|
-
if (typeof
|
|
6006
|
+
if (typeof w[J] != "string")
|
|
5983
6007
|
return le.errors = [
|
|
5984
6008
|
{
|
|
5985
6009
|
instancePath: t + "/env/" + J.replace(
|
|
@@ -6018,13 +6042,13 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
6018
6042
|
var p = !0;
|
|
6019
6043
|
if (p) {
|
|
6020
6044
|
if (r.$_SERVER !== void 0) {
|
|
6021
|
-
let
|
|
6045
|
+
let w = r.$_SERVER;
|
|
6022
6046
|
const W = e;
|
|
6023
6047
|
if (e === W)
|
|
6024
|
-
if (
|
|
6025
|
-
for (const J in
|
|
6048
|
+
if (w && typeof w == "object" && !Array.isArray(w))
|
|
6049
|
+
for (const J in w) {
|
|
6026
6050
|
const A = e;
|
|
6027
|
-
if (typeof
|
|
6051
|
+
if (typeof w[J] != "string")
|
|
6028
6052
|
return le.errors = [
|
|
6029
6053
|
{
|
|
6030
6054
|
instancePath: t + "/$_SERVER/" + J.replace(
|
|
@@ -6063,7 +6087,7 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
6063
6087
|
var p = !0;
|
|
6064
6088
|
if (p)
|
|
6065
6089
|
if (r.code !== void 0) {
|
|
6066
|
-
const
|
|
6090
|
+
const w = e;
|
|
6067
6091
|
if (typeof r.code != "string")
|
|
6068
6092
|
return le.errors = [
|
|
6069
6093
|
{
|
|
@@ -6076,7 +6100,7 @@ function le(r, { instancePath: t = "", parentData: n, parentDataProperty: l, roo
|
|
|
6076
6100
|
message: "must be string"
|
|
6077
6101
|
}
|
|
6078
6102
|
], !1;
|
|
6079
|
-
var p =
|
|
6103
|
+
var p = w === e;
|
|
6080
6104
|
} else
|
|
6081
6105
|
var p = !0;
|
|
6082
6106
|
}
|
|
@@ -6950,10 +6974,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
6950
6974
|
message: "must be number"
|
|
6951
6975
|
}
|
|
6952
6976
|
], !1;
|
|
6953
|
-
var
|
|
6977
|
+
var w = S === e;
|
|
6954
6978
|
} else
|
|
6955
|
-
var
|
|
6956
|
-
if (
|
|
6979
|
+
var w = !0;
|
|
6980
|
+
if (w)
|
|
6957
6981
|
if (i.caption !== void 0) {
|
|
6958
6982
|
const a = e;
|
|
6959
6983
|
if (typeof i.caption != "string")
|
|
@@ -6968,9 +6992,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
6968
6992
|
message: "must be string"
|
|
6969
6993
|
}
|
|
6970
6994
|
], !1;
|
|
6971
|
-
var
|
|
6995
|
+
var w = a === e;
|
|
6972
6996
|
} else
|
|
6973
|
-
var
|
|
6997
|
+
var w = !0;
|
|
6974
6998
|
}
|
|
6975
6999
|
} else
|
|
6976
7000
|
return o.errors = [
|
|
@@ -7684,10 +7708,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
7684
7708
|
message: "must be object"
|
|
7685
7709
|
}
|
|
7686
7710
|
], !1;
|
|
7687
|
-
var
|
|
7711
|
+
var b = f === e;
|
|
7688
7712
|
} else
|
|
7689
|
-
var
|
|
7690
|
-
if (
|
|
7713
|
+
var b = !0;
|
|
7714
|
+
if (b) {
|
|
7691
7715
|
if (r.step !== void 0) {
|
|
7692
7716
|
let i = r.step;
|
|
7693
7717
|
const f = e;
|
|
@@ -7715,10 +7739,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
7715
7739
|
message: "must be equal to constant"
|
|
7716
7740
|
}
|
|
7717
7741
|
], !1;
|
|
7718
|
-
var
|
|
7742
|
+
var b = f === e;
|
|
7719
7743
|
} else
|
|
7720
|
-
var
|
|
7721
|
-
if (
|
|
7744
|
+
var b = !0;
|
|
7745
|
+
if (b) {
|
|
7722
7746
|
if (r.wordPressFilesZip !== void 0) {
|
|
7723
7747
|
const i = e;
|
|
7724
7748
|
G(
|
|
@@ -7732,10 +7756,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
7732
7756
|
) || (s = s === null ? G.errors : s.concat(
|
|
7733
7757
|
G.errors
|
|
7734
7758
|
), e = s.length);
|
|
7735
|
-
var
|
|
7759
|
+
var b = i === e;
|
|
7736
7760
|
} else
|
|
7737
|
-
var
|
|
7738
|
-
if (
|
|
7761
|
+
var b = !0;
|
|
7762
|
+
if (b)
|
|
7739
7763
|
if (r.pathInZip !== void 0) {
|
|
7740
7764
|
const i = e;
|
|
7741
7765
|
if (typeof r.pathInZip != "string")
|
|
@@ -7750,9 +7774,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
7750
7774
|
message: "must be string"
|
|
7751
7775
|
}
|
|
7752
7776
|
], !1;
|
|
7753
|
-
var
|
|
7777
|
+
var b = i === e;
|
|
7754
7778
|
} else
|
|
7755
|
-
var
|
|
7779
|
+
var b = !0;
|
|
7756
7780
|
}
|
|
7757
7781
|
}
|
|
7758
7782
|
}
|
|
@@ -12194,20 +12218,20 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12194
12218
|
if (e === 0)
|
|
12195
12219
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
12196
12220
|
const H = e;
|
|
12197
|
-
for (const
|
|
12198
|
-
if (!Vr.call(ws.properties,
|
|
12221
|
+
for (const b in r)
|
|
12222
|
+
if (!Vr.call(ws.properties, b))
|
|
12199
12223
|
return M.errors = [
|
|
12200
12224
|
{
|
|
12201
12225
|
instancePath: t,
|
|
12202
12226
|
schemaPath: "#/additionalProperties",
|
|
12203
12227
|
keyword: "additionalProperties",
|
|
12204
|
-
params: { additionalProperty:
|
|
12228
|
+
params: { additionalProperty: b },
|
|
12205
12229
|
message: "must NOT have additional properties"
|
|
12206
12230
|
}
|
|
12207
12231
|
], !1;
|
|
12208
12232
|
if (H === e) {
|
|
12209
12233
|
if (r.landingPage !== void 0) {
|
|
12210
|
-
const
|
|
12234
|
+
const b = e;
|
|
12211
12235
|
if (typeof r.landingPage != "string")
|
|
12212
12236
|
return M.errors = [
|
|
12213
12237
|
{
|
|
@@ -12218,12 +12242,12 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12218
12242
|
message: "must be string"
|
|
12219
12243
|
}
|
|
12220
12244
|
], !1;
|
|
12221
|
-
var p =
|
|
12245
|
+
var p = b === e;
|
|
12222
12246
|
} else
|
|
12223
12247
|
var p = !0;
|
|
12224
12248
|
if (p) {
|
|
12225
12249
|
if (r.description !== void 0) {
|
|
12226
|
-
const
|
|
12250
|
+
const b = e;
|
|
12227
12251
|
if (typeof r.description != "string")
|
|
12228
12252
|
return M.errors = [
|
|
12229
12253
|
{
|
|
@@ -12234,17 +12258,17 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12234
12258
|
message: "must be string"
|
|
12235
12259
|
}
|
|
12236
12260
|
], !1;
|
|
12237
|
-
var p =
|
|
12261
|
+
var p = b === e;
|
|
12238
12262
|
} else
|
|
12239
12263
|
var p = !0;
|
|
12240
12264
|
if (p) {
|
|
12241
12265
|
if (r.meta !== void 0) {
|
|
12242
|
-
let
|
|
12266
|
+
let b = r.meta;
|
|
12243
12267
|
const $ = e;
|
|
12244
12268
|
if (e === $)
|
|
12245
|
-
if (
|
|
12269
|
+
if (b && typeof b == "object" && !Array.isArray(b)) {
|
|
12246
12270
|
let E;
|
|
12247
|
-
if (
|
|
12271
|
+
if (b.title === void 0 && (E = "title") || b.author === void 0 && (E = "author"))
|
|
12248
12272
|
return M.errors = [
|
|
12249
12273
|
{
|
|
12250
12274
|
instancePath: t + "/meta",
|
|
@@ -12258,7 +12282,7 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12258
12282
|
], !1;
|
|
12259
12283
|
{
|
|
12260
12284
|
const _ = e;
|
|
12261
|
-
for (const m in
|
|
12285
|
+
for (const m in b)
|
|
12262
12286
|
if (!(m === "title" || m === "description" || m === "author" || m === "categories"))
|
|
12263
12287
|
return M.errors = [
|
|
12264
12288
|
{
|
|
@@ -12272,9 +12296,9 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12272
12296
|
}
|
|
12273
12297
|
], !1;
|
|
12274
12298
|
if (_ === e) {
|
|
12275
|
-
if (
|
|
12299
|
+
if (b.title !== void 0) {
|
|
12276
12300
|
const m = e;
|
|
12277
|
-
if (typeof
|
|
12301
|
+
if (typeof b.title != "string")
|
|
12278
12302
|
return M.errors = [
|
|
12279
12303
|
{
|
|
12280
12304
|
instancePath: t + "/meta/title",
|
|
@@ -12290,9 +12314,9 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12290
12314
|
} else
|
|
12291
12315
|
var d = !0;
|
|
12292
12316
|
if (d) {
|
|
12293
|
-
if (
|
|
12317
|
+
if (b.description !== void 0) {
|
|
12294
12318
|
const m = e;
|
|
12295
|
-
if (typeof
|
|
12319
|
+
if (typeof b.description != "string")
|
|
12296
12320
|
return M.errors = [
|
|
12297
12321
|
{
|
|
12298
12322
|
instancePath: t + "/meta/description",
|
|
@@ -12308,9 +12332,9 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12308
12332
|
} else
|
|
12309
12333
|
var d = !0;
|
|
12310
12334
|
if (d) {
|
|
12311
|
-
if (
|
|
12335
|
+
if (b.author !== void 0) {
|
|
12312
12336
|
const m = e;
|
|
12313
|
-
if (typeof
|
|
12337
|
+
if (typeof b.author != "string")
|
|
12314
12338
|
return M.errors = [
|
|
12315
12339
|
{
|
|
12316
12340
|
instancePath: t + "/meta/author",
|
|
@@ -12326,8 +12350,8 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12326
12350
|
} else
|
|
12327
12351
|
var d = !0;
|
|
12328
12352
|
if (d)
|
|
12329
|
-
if (
|
|
12330
|
-
let m =
|
|
12353
|
+
if (b.categories !== void 0) {
|
|
12354
|
+
let m = b.categories;
|
|
12331
12355
|
const g = e;
|
|
12332
12356
|
if (e === g)
|
|
12333
12357
|
if (Array.isArray(
|
|
@@ -12387,12 +12411,12 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12387
12411
|
var p = !0;
|
|
12388
12412
|
if (p) {
|
|
12389
12413
|
if (r.preferredVersions !== void 0) {
|
|
12390
|
-
let
|
|
12414
|
+
let b = r.preferredVersions;
|
|
12391
12415
|
const $ = e;
|
|
12392
12416
|
if (e === $)
|
|
12393
|
-
if (
|
|
12417
|
+
if (b && typeof b == "object" && !Array.isArray(b)) {
|
|
12394
12418
|
let E;
|
|
12395
|
-
if (
|
|
12419
|
+
if (b.php === void 0 && (E = "php") || b.wp === void 0 && (E = "wp"))
|
|
12396
12420
|
return M.errors = [
|
|
12397
12421
|
{
|
|
12398
12422
|
instancePath: t + "/preferredVersions",
|
|
@@ -12406,7 +12430,7 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12406
12430
|
], !1;
|
|
12407
12431
|
{
|
|
12408
12432
|
const _ = e;
|
|
12409
|
-
for (const m in
|
|
12433
|
+
for (const m in b)
|
|
12410
12434
|
if (!(m === "php" || m === "wp"))
|
|
12411
12435
|
return M.errors = [
|
|
12412
12436
|
{
|
|
@@ -12420,14 +12444,14 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12420
12444
|
}
|
|
12421
12445
|
], !1;
|
|
12422
12446
|
if (_ === e) {
|
|
12423
|
-
if (
|
|
12424
|
-
let m =
|
|
12447
|
+
if (b.php !== void 0) {
|
|
12448
|
+
let m = b.php;
|
|
12425
12449
|
const g = e, U = e;
|
|
12426
12450
|
let k = !1;
|
|
12427
12451
|
const D = e;
|
|
12428
12452
|
We(m, {
|
|
12429
12453
|
instancePath: t + "/preferredVersions/php",
|
|
12430
|
-
parentData:
|
|
12454
|
+
parentData: b,
|
|
12431
12455
|
parentDataProperty: "php",
|
|
12432
12456
|
rootData: u
|
|
12433
12457
|
}) || (s = s === null ? We.errors : s.concat(
|
|
@@ -12487,8 +12511,8 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12487
12511
|
} else
|
|
12488
12512
|
var y = !0;
|
|
12489
12513
|
if (y)
|
|
12490
|
-
if (
|
|
12491
|
-
let m =
|
|
12514
|
+
if (b.wp !== void 0) {
|
|
12515
|
+
let m = b.wp;
|
|
12492
12516
|
const g = e, U = e;
|
|
12493
12517
|
let k = !1;
|
|
12494
12518
|
const D = e;
|
|
@@ -12618,12 +12642,12 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12618
12642
|
var p = !0;
|
|
12619
12643
|
if (p) {
|
|
12620
12644
|
if (r.features !== void 0) {
|
|
12621
|
-
let
|
|
12645
|
+
let b = r.features;
|
|
12622
12646
|
const $ = e;
|
|
12623
12647
|
if (e === $)
|
|
12624
|
-
if (
|
|
12648
|
+
if (b && typeof b == "object" && !Array.isArray(b)) {
|
|
12625
12649
|
const E = e;
|
|
12626
|
-
for (const _ in
|
|
12650
|
+
for (const _ in b)
|
|
12627
12651
|
if (!(_ === "intl" || _ === "networking"))
|
|
12628
12652
|
return M.errors = [
|
|
12629
12653
|
{
|
|
@@ -12637,9 +12661,9 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12637
12661
|
}
|
|
12638
12662
|
], !1;
|
|
12639
12663
|
if (E === e) {
|
|
12640
|
-
if (
|
|
12664
|
+
if (b.intl !== void 0) {
|
|
12641
12665
|
const _ = e;
|
|
12642
|
-
if (typeof
|
|
12666
|
+
if (typeof b.intl != "boolean")
|
|
12643
12667
|
return M.errors = [
|
|
12644
12668
|
{
|
|
12645
12669
|
instancePath: t + "/features/intl",
|
|
@@ -12655,9 +12679,9 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12655
12679
|
} else
|
|
12656
12680
|
var T = !0;
|
|
12657
12681
|
if (T)
|
|
12658
|
-
if (
|
|
12682
|
+
if (b.networking !== void 0) {
|
|
12659
12683
|
const _ = e;
|
|
12660
|
-
if (typeof
|
|
12684
|
+
if (typeof b.networking != "boolean")
|
|
12661
12685
|
return M.errors = [
|
|
12662
12686
|
{
|
|
12663
12687
|
instancePath: t + "/features/networking",
|
|
@@ -12688,14 +12712,14 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12688
12712
|
var p = !0;
|
|
12689
12713
|
if (p) {
|
|
12690
12714
|
if (r.extraLibraries !== void 0) {
|
|
12691
|
-
let
|
|
12715
|
+
let b = r.extraLibraries;
|
|
12692
12716
|
const $ = e;
|
|
12693
12717
|
if (e === $)
|
|
12694
|
-
if (Array.isArray(
|
|
12718
|
+
if (Array.isArray(b)) {
|
|
12695
12719
|
var j = !0;
|
|
12696
|
-
const E =
|
|
12720
|
+
const E = b.length;
|
|
12697
12721
|
for (let _ = 0; _ < E; _++) {
|
|
12698
|
-
let m =
|
|
12722
|
+
let m = b[_];
|
|
12699
12723
|
const g = e;
|
|
12700
12724
|
if (typeof m != "string")
|
|
12701
12725
|
return M.errors = [
|
|
@@ -12742,12 +12766,12 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12742
12766
|
var p = !0;
|
|
12743
12767
|
if (p) {
|
|
12744
12768
|
if (r.constants !== void 0) {
|
|
12745
|
-
let
|
|
12769
|
+
let b = r.constants;
|
|
12746
12770
|
const $ = e;
|
|
12747
12771
|
if (e === e)
|
|
12748
|
-
if (
|
|
12749
|
-
for (const _ in
|
|
12750
|
-
let m =
|
|
12772
|
+
if (b && typeof b == "object" && !Array.isArray(b))
|
|
12773
|
+
for (const _ in b) {
|
|
12774
|
+
let m = b[_];
|
|
12751
12775
|
const g = e;
|
|
12752
12776
|
if (typeof m != "string" && typeof m != "boolean" && !(typeof m == "number" && isFinite(m)))
|
|
12753
12777
|
return M.errors = [
|
|
@@ -12767,8 +12791,8 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12767
12791
|
message: "must be string,boolean,number"
|
|
12768
12792
|
}
|
|
12769
12793
|
], !1;
|
|
12770
|
-
var
|
|
12771
|
-
if (!
|
|
12794
|
+
var w = g === e;
|
|
12795
|
+
if (!w)
|
|
12772
12796
|
break;
|
|
12773
12797
|
}
|
|
12774
12798
|
else
|
|
@@ -12788,14 +12812,14 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12788
12812
|
var p = !0;
|
|
12789
12813
|
if (p) {
|
|
12790
12814
|
if (r.plugins !== void 0) {
|
|
12791
|
-
let
|
|
12815
|
+
let b = r.plugins;
|
|
12792
12816
|
const $ = e;
|
|
12793
12817
|
if (e === $)
|
|
12794
|
-
if (Array.isArray(
|
|
12818
|
+
if (Array.isArray(b)) {
|
|
12795
12819
|
var W = !0;
|
|
12796
|
-
const E =
|
|
12820
|
+
const E = b.length;
|
|
12797
12821
|
for (let _ = 0; _ < E; _++) {
|
|
12798
|
-
let m =
|
|
12822
|
+
let m = b[_];
|
|
12799
12823
|
const g = e, U = e;
|
|
12800
12824
|
let k = !1;
|
|
12801
12825
|
const D = e;
|
|
@@ -12822,7 +12846,7 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12822
12846
|
m,
|
|
12823
12847
|
{
|
|
12824
12848
|
instancePath: t + "/plugins/" + _,
|
|
12825
|
-
parentData:
|
|
12849
|
+
parentData: b,
|
|
12826
12850
|
parentDataProperty: _,
|
|
12827
12851
|
rootData: u
|
|
12828
12852
|
}
|
|
@@ -12869,17 +12893,17 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12869
12893
|
var p = !0;
|
|
12870
12894
|
if (p) {
|
|
12871
12895
|
if (r.siteOptions !== void 0) {
|
|
12872
|
-
let
|
|
12896
|
+
let b = r.siteOptions;
|
|
12873
12897
|
const $ = e;
|
|
12874
12898
|
if (e === $)
|
|
12875
|
-
if (
|
|
12876
|
-
|
|
12899
|
+
if (b && typeof b == "object" && !Array.isArray(
|
|
12900
|
+
b
|
|
12877
12901
|
)) {
|
|
12878
12902
|
const E = e;
|
|
12879
|
-
for (const _ in
|
|
12903
|
+
for (const _ in b)
|
|
12880
12904
|
if (_ !== "blogname") {
|
|
12881
12905
|
const m = e;
|
|
12882
|
-
if (typeof
|
|
12906
|
+
if (typeof b[_] != "string")
|
|
12883
12907
|
return M.errors = [
|
|
12884
12908
|
{
|
|
12885
12909
|
instancePath: t + "/siteOptions/" + _.replace(
|
|
@@ -12901,7 +12925,7 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12901
12925
|
if (!J)
|
|
12902
12926
|
break;
|
|
12903
12927
|
}
|
|
12904
|
-
if (E === e &&
|
|
12928
|
+
if (E === e && b.blogname !== void 0 && typeof b.blogname != "string")
|
|
12905
12929
|
return M.errors = [
|
|
12906
12930
|
{
|
|
12907
12931
|
instancePath: t + "/siteOptions/blogname",
|
|
@@ -12930,11 +12954,11 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12930
12954
|
var p = !0;
|
|
12931
12955
|
if (p) {
|
|
12932
12956
|
if (r.login !== void 0) {
|
|
12933
|
-
let
|
|
12957
|
+
let b = r.login;
|
|
12934
12958
|
const $ = e, v = e;
|
|
12935
12959
|
let E = !1;
|
|
12936
12960
|
const _ = e;
|
|
12937
|
-
if (typeof
|
|
12961
|
+
if (typeof b != "boolean") {
|
|
12938
12962
|
const g = {
|
|
12939
12963
|
instancePath: t + "/login",
|
|
12940
12964
|
schemaPath: "#/properties/login/anyOf/0/type",
|
|
@@ -12954,11 +12978,11 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12954
12978
|
if (E = E || A, !E) {
|
|
12955
12979
|
const g = e;
|
|
12956
12980
|
if (e === g)
|
|
12957
|
-
if (
|
|
12958
|
-
|
|
12981
|
+
if (b && typeof b == "object" && !Array.isArray(
|
|
12982
|
+
b
|
|
12959
12983
|
)) {
|
|
12960
12984
|
let k;
|
|
12961
|
-
if (
|
|
12985
|
+
if (b.username === void 0 && (k = "username") || b.password === void 0 && (k = "password")) {
|
|
12962
12986
|
const D = {
|
|
12963
12987
|
instancePath: t + "/login",
|
|
12964
12988
|
schemaPath: "#/properties/login/anyOf/1/required",
|
|
@@ -12975,7 +12999,7 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12975
12999
|
), e++;
|
|
12976
13000
|
} else {
|
|
12977
13001
|
const D = e;
|
|
12978
|
-
for (const N in
|
|
13002
|
+
for (const N in b)
|
|
12979
13003
|
if (!(N === "username" || N === "password")) {
|
|
12980
13004
|
const L = {
|
|
12981
13005
|
instancePath: t + "/login",
|
|
@@ -12994,9 +13018,9 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
12994
13018
|
break;
|
|
12995
13019
|
}
|
|
12996
13020
|
if (D === e) {
|
|
12997
|
-
if (
|
|
13021
|
+
if (b.username !== void 0) {
|
|
12998
13022
|
const N = e;
|
|
12999
|
-
if (typeof
|
|
13023
|
+
if (typeof b.username != "string") {
|
|
13000
13024
|
const L = {
|
|
13001
13025
|
instancePath: t + "/login/username",
|
|
13002
13026
|
schemaPath: "#/properties/login/anyOf/1/properties/username/type",
|
|
@@ -13016,9 +13040,9 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
13016
13040
|
} else
|
|
13017
13041
|
var re = !0;
|
|
13018
13042
|
if (re)
|
|
13019
|
-
if (
|
|
13043
|
+
if (b.password !== void 0) {
|
|
13020
13044
|
const N = e;
|
|
13021
|
-
if (typeof
|
|
13045
|
+
if (typeof b.password != "string") {
|
|
13022
13046
|
const x = {
|
|
13023
13047
|
instancePath: t + "/login/password",
|
|
13024
13048
|
schemaPath: "#/properties/login/anyOf/1/properties/password/type",
|
|
@@ -13079,16 +13103,16 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
13079
13103
|
var p = !0;
|
|
13080
13104
|
if (p) {
|
|
13081
13105
|
if (r.steps !== void 0) {
|
|
13082
|
-
let
|
|
13106
|
+
let b = r.steps;
|
|
13083
13107
|
const $ = e;
|
|
13084
13108
|
if (e === $)
|
|
13085
13109
|
if (Array.isArray(
|
|
13086
|
-
|
|
13110
|
+
b
|
|
13087
13111
|
)) {
|
|
13088
13112
|
var V = !0;
|
|
13089
|
-
const E =
|
|
13113
|
+
const E = b.length;
|
|
13090
13114
|
for (let _ = 0; _ < E; _++) {
|
|
13091
|
-
let m =
|
|
13115
|
+
let m = b[_];
|
|
13092
13116
|
const g = e, U = e;
|
|
13093
13117
|
let k = !1;
|
|
13094
13118
|
const D = e;
|
|
@@ -13096,7 +13120,7 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
13096
13120
|
m,
|
|
13097
13121
|
{
|
|
13098
13122
|
instancePath: t + "/steps/" + _,
|
|
13099
|
-
parentData:
|
|
13123
|
+
parentData: b,
|
|
13100
13124
|
parentDataProperty: _,
|
|
13101
13125
|
rootData: u
|
|
13102
13126
|
}
|
|
@@ -13233,7 +13257,7 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
13233
13257
|
var p = !0;
|
|
13234
13258
|
if (p)
|
|
13235
13259
|
if (r.$schema !== void 0) {
|
|
13236
|
-
const
|
|
13260
|
+
const b = e;
|
|
13237
13261
|
if (typeof r.$schema != "string")
|
|
13238
13262
|
return M.errors = [
|
|
13239
13263
|
{
|
|
@@ -13246,7 +13270,7 @@ function M(r, { instancePath: t = "", parentData: n, parentDataProperty: l, root
|
|
|
13246
13270
|
message: "must be string"
|
|
13247
13271
|
}
|
|
13248
13272
|
], !1;
|
|
13249
|
-
var p =
|
|
13273
|
+
var p = b === e;
|
|
13250
13274
|
} else
|
|
13251
13275
|
var p = !0;
|
|
13252
13276
|
}
|
|
@@ -13328,11 +13352,11 @@ function As(r, {
|
|
|
13328
13352
|
gitAdditionalHeadersCallback: p,
|
|
13329
13353
|
additionalSteps: d
|
|
13330
13354
|
} = {}) {
|
|
13331
|
-
var
|
|
13355
|
+
var w, W, Q, J, A, re, V, z, H, b, $;
|
|
13332
13356
|
r = structuredClone(r), r = {
|
|
13333
13357
|
...r,
|
|
13334
13358
|
steps: (r.steps || []).filter(Fs).filter(Ns)
|
|
13335
|
-
}, r.steps = [...r.steps || [], ...d || []], ((
|
|
13359
|
+
}, r.steps = [...r.steps || [], ...d || []], ((w = r.preferredVersions) == null ? void 0 : w.wp) === !1 && Us(r);
|
|
13336
13360
|
for (const v of r.steps)
|
|
13337
13361
|
!v || typeof v != "object" || (v.step === "importFile" ? (v.step = "importWxr", oe.warn(
|
|
13338
13362
|
'The "importFile" step is deprecated. Use "importWxr" instead.'
|
|
@@ -13438,7 +13462,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
13438
13462
|
},
|
|
13439
13463
|
features: {
|
|
13440
13464
|
// Disable intl by default to reduce the transfer size
|
|
13441
|
-
intl: ((
|
|
13465
|
+
intl: ((b = r.features) == null ? void 0 : b.intl) ?? !1,
|
|
13442
13466
|
// Enable network access by default
|
|
13443
13467
|
networking: (($ = r.features) == null ? void 0 : $.networking) ?? !0
|
|
13444
13468
|
},
|
|
@@ -13560,23 +13584,23 @@ function xs(r, {
|
|
|
13560
13584
|
(((T = r.progress) == null ? void 0 : T.weight) || 1) / l
|
|
13561
13585
|
), d = {};
|
|
13562
13586
|
for (const j of Object.keys(r)) {
|
|
13563
|
-
let
|
|
13564
|
-
_t(
|
|
13587
|
+
let w = r[j];
|
|
13588
|
+
_t(w) && (w = be.create(w, {
|
|
13565
13589
|
semaphore: t,
|
|
13566
13590
|
corsProxy: u,
|
|
13567
13591
|
streamBundledFile: s,
|
|
13568
13592
|
gitAdditionalHeadersCallback: e
|
|
13569
|
-
})), d[j] =
|
|
13593
|
+
})), d[j] = w;
|
|
13570
13594
|
}
|
|
13571
13595
|
const h = async (j) => {
|
|
13572
|
-
var
|
|
13596
|
+
var w;
|
|
13573
13597
|
try {
|
|
13574
13598
|
return p.fillSlowly(), await Es[r.step](
|
|
13575
13599
|
j,
|
|
13576
13600
|
await Cs(d),
|
|
13577
13601
|
{
|
|
13578
13602
|
tracker: p,
|
|
13579
|
-
initialCaption: (
|
|
13603
|
+
initialCaption: (w = r.progress) == null ? void 0 : w.caption
|
|
13580
13604
|
}
|
|
13581
13605
|
);
|
|
13582
13606
|
} finally {
|