@rspack/core 0.0.25 → 0.0.26

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.
@@ -0,0 +1,3778 @@
1
+ /** This file was automatically generated, Run `pnpm precompile-schema` to update */
2
+ "use strict";
3
+ module.exports = V, module.exports.default = V;
4
+ const e = { cache: { $ref: "#/definitions/CacheOptions" }, context: { $ref: "#/definitions/Context" }, dependencies: { $ref: "#/definitions/Dependencies" }, devServer: { $ref: "#/definitions/DevServer" }, devtool: { $ref: "#/definitions/DevTool" }, entry: { $ref: "#/definitions/Entry" }, experiments: { $ref: "#/definitions/Experiments" }, externals: { $ref: "#/definitions/Externals" }, externalsType: { $ref: "#/definitions/ExternalsType" }, infrastructureLogging: { $ref: "#/definitions/InfrastructureLogging" }, mode: { $ref: "#/definitions/Mode" }, module: { $ref: "#/definitions/ModuleOptions" }, name: { $ref: "#/definitions/Name" }, node: { $ref: "#/definitions/Node" }, optimization: { $ref: "#/definitions/Optimization" }, output: { $ref: "#/definitions/Output" }, plugins: { $ref: "#/definitions/Plugins" }, resolve: { $ref: "#/definitions/Resolve" }, snapshot: { $ref: "#/definitions/SnapshotOptions" }, stats: { $ref: "#/definitions/StatsValue" }, target: { $ref: "#/definitions/Target" }, watch: { $ref: "#/definitions/Watch" }, watchOptions: { $ref: "#/definitions/WatchOptions" }, builtins: { description: "Builtins features in rspack", type: "object", additionalProperties: !0 } }, t = Object.prototype.hasOwnProperty, n = new RegExp("^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$", "u");
5
+ function a(e, { instancePath: t = "", parentData: n, parentDataProperty: s, rootData: r = e } = {}) { let i = null, o = 0; if (0 === o) {
6
+ if (!e || "object" != typeof e || Array.isArray(e))
7
+ return a.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
8
+ {
9
+ let n;
10
+ if (void 0 === e.import && (n = "import"))
11
+ return a.errors = [{ instancePath: t, schemaPath: "#/required", keyword: "required", params: { missingProperty: n } }], !1;
12
+ {
13
+ const n = o;
14
+ for (const n in e)
15
+ if ("import" !== n && "runtime" !== n)
16
+ return a.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } }], !1;
17
+ if (n === o) {
18
+ if (void 0 !== e.import) {
19
+ let n = e.import;
20
+ const s = o, r = o;
21
+ let h = !1;
22
+ const f = o;
23
+ if (o === f)
24
+ if (Array.isArray(n))
25
+ if (n.length < 1) {
26
+ const e = { instancePath: t + "/import", schemaPath: "#/definitions/EntryItem/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 } };
27
+ null === i ? i = [e] : i.push(e), o++;
28
+ }
29
+ else {
30
+ var l = !0;
31
+ const e = n.length;
32
+ for (let a = 0; a < e; a++) {
33
+ let e = n[a];
34
+ const s = o;
35
+ if (o === s)
36
+ if ("string" == typeof e) {
37
+ if (e.length < 1) {
38
+ const e = { instancePath: t + "/import/" + a, schemaPath: "#/definitions/EntryItem/anyOf/0/items/minLength", keyword: "minLength", params: {} };
39
+ null === i ? i = [e] : i.push(e), o++;
40
+ }
41
+ }
42
+ else {
43
+ const e = { instancePath: t + "/import/" + a, schemaPath: "#/definitions/EntryItem/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
44
+ null === i ? i = [e] : i.push(e), o++;
45
+ }
46
+ if (!(l = s === o))
47
+ break;
48
+ }
49
+ if (l) {
50
+ let e, a = n.length;
51
+ if (a > 1) {
52
+ const s = {};
53
+ for (; a--;) {
54
+ let r = n[a];
55
+ if ("string" == typeof r) {
56
+ if ("number" == typeof s[r]) {
57
+ e = s[r];
58
+ const n = { instancePath: t + "/import", schemaPath: "#/definitions/EntryItem/anyOf/0/uniqueItems", keyword: "uniqueItems", params: { i: a, j: e } };
59
+ null === i ? i = [n] : i.push(n), o++;
60
+ break;
61
+ }
62
+ s[r] = a;
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ else {
69
+ const e = { instancePath: t + "/import", schemaPath: "#/definitions/EntryItem/anyOf/0/type", keyword: "type", params: { type: "array" } };
70
+ null === i ? i = [e] : i.push(e), o++;
71
+ }
72
+ var p = f === o;
73
+ if (h = h || p, !h) {
74
+ const e = o;
75
+ if (o === e)
76
+ if ("string" == typeof n) {
77
+ if (n.length < 1) {
78
+ const e = { instancePath: t + "/import", schemaPath: "#/definitions/EntryItem/anyOf/1/minLength", keyword: "minLength", params: {} };
79
+ null === i ? i = [e] : i.push(e), o++;
80
+ }
81
+ }
82
+ else {
83
+ const e = { instancePath: t + "/import", schemaPath: "#/definitions/EntryItem/anyOf/1/type", keyword: "type", params: { type: "string" } };
84
+ null === i ? i = [e] : i.push(e), o++;
85
+ }
86
+ p = e === o, h = h || p;
87
+ }
88
+ if (!h) {
89
+ const e = { instancePath: t + "/import", schemaPath: "#/definitions/EntryItem/anyOf", keyword: "anyOf", params: {} };
90
+ return null === i ? i = [e] : i.push(e), o++, a.errors = i, !1;
91
+ }
92
+ o = r, null !== i && (r ? i.length = r : i = null);
93
+ var c = s === o;
94
+ }
95
+ else
96
+ c = !0;
97
+ if (c)
98
+ if (void 0 !== e.runtime) {
99
+ let n = e.runtime;
100
+ const s = o, r = o;
101
+ let l = !1;
102
+ const p = o;
103
+ if (!1 !== n) {
104
+ const e = { instancePath: t + "/runtime", schemaPath: "#/definitions/EntryRuntime/anyOf/0/enum", keyword: "enum", params: {} };
105
+ null === i ? i = [e] : i.push(e), o++;
106
+ }
107
+ var h = p === o;
108
+ if (l = l || h, !l) {
109
+ const e = o;
110
+ if (o === e)
111
+ if ("string" == typeof n) {
112
+ if (n.length < 1) {
113
+ const e = { instancePath: t + "/runtime", schemaPath: "#/definitions/EntryRuntime/anyOf/1/minLength", keyword: "minLength", params: {} };
114
+ null === i ? i = [e] : i.push(e), o++;
115
+ }
116
+ }
117
+ else {
118
+ const e = { instancePath: t + "/runtime", schemaPath: "#/definitions/EntryRuntime/anyOf/1/type", keyword: "type", params: { type: "string" } };
119
+ null === i ? i = [e] : i.push(e), o++;
120
+ }
121
+ h = e === o, l = l || h;
122
+ }
123
+ if (!l) {
124
+ const e = { instancePath: t + "/runtime", schemaPath: "#/definitions/EntryRuntime/anyOf", keyword: "anyOf", params: {} };
125
+ return null === i ? i = [e] : i.push(e), o++, a.errors = i, !1;
126
+ }
127
+ o = r, null !== i && (r ? i.length = r : i = null), c = s === o;
128
+ }
129
+ else
130
+ c = !0;
131
+ }
132
+ }
133
+ }
134
+ } return a.errors = i, 0 === o; }
135
+ function s(e, { instancePath: t = "", parentData: n, parentDataProperty: r, rootData: i = e } = {}) { let o = null, l = 0; if (0 === l) {
136
+ if (!e || "object" != typeof e || Array.isArray(e))
137
+ return s.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
138
+ for (const n in e) {
139
+ let r = e[n];
140
+ const f = l, y = l;
141
+ let u = !1;
142
+ const m = l, d = l;
143
+ let P = !1;
144
+ const g = l;
145
+ if (l === g)
146
+ if (Array.isArray(r))
147
+ if (r.length < 1) {
148
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 } };
149
+ null === o ? o = [e] : o.push(e), l++;
150
+ }
151
+ else {
152
+ var p = !0;
153
+ const e = r.length;
154
+ for (let a = 0; a < e; a++) {
155
+ let e = r[a];
156
+ const s = l;
157
+ if (l === s)
158
+ if ("string" == typeof e) {
159
+ if (e.length < 1) {
160
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + a, schemaPath: "#/definitions/EntryItem/anyOf/0/items/minLength", keyword: "minLength", params: {} };
161
+ null === o ? o = [e] : o.push(e), l++;
162
+ }
163
+ }
164
+ else {
165
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + a, schemaPath: "#/definitions/EntryItem/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
166
+ null === o ? o = [e] : o.push(e), l++;
167
+ }
168
+ if (!(p = s === l))
169
+ break;
170
+ }
171
+ if (p) {
172
+ let e, a = r.length;
173
+ if (a > 1) {
174
+ const s = {};
175
+ for (; a--;) {
176
+ let i = r[a];
177
+ if ("string" == typeof i) {
178
+ if ("number" == typeof s[i]) {
179
+ e = s[i];
180
+ const r = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/0/uniqueItems", keyword: "uniqueItems", params: { i: a, j: e } };
181
+ null === o ? o = [r] : o.push(r), l++;
182
+ break;
183
+ }
184
+ s[i] = a;
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ else {
191
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/0/type", keyword: "type", params: { type: "array" } };
192
+ null === o ? o = [e] : o.push(e), l++;
193
+ }
194
+ var c = g === l;
195
+ if (P = P || c, !P) {
196
+ const e = l;
197
+ if (l === e)
198
+ if ("string" == typeof r) {
199
+ if (r.length < 1) {
200
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/1/minLength", keyword: "minLength", params: {} };
201
+ null === o ? o = [e] : o.push(e), l++;
202
+ }
203
+ }
204
+ else {
205
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf/1/type", keyword: "type", params: { type: "string" } };
206
+ null === o ? o = [e] : o.push(e), l++;
207
+ }
208
+ c = e === l, P = P || c;
209
+ }
210
+ if (P)
211
+ l = d, null !== o && (d ? o.length = d : o = null);
212
+ else {
213
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/EntryItem/anyOf", keyword: "anyOf", params: {} };
214
+ null === o ? o = [e] : o.push(e), l++;
215
+ }
216
+ var h = m === l;
217
+ if (u = u || h, !u) {
218
+ const s = l;
219
+ a(r, { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: e, parentDataProperty: n, rootData: i }) || (o = null === o ? a.errors : o.concat(a.errors), l = o.length), h = s === l, u = u || h;
220
+ }
221
+ if (!u) {
222
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/additionalProperties/anyOf", keyword: "anyOf", params: {} };
223
+ return null === o ? o = [e] : o.push(e), l++, s.errors = o, !1;
224
+ }
225
+ if (l = y, null !== o && (y ? o.length = y : o = null), f !== l)
226
+ break;
227
+ }
228
+ } return s.errors = o, 0 === l; }
229
+ function r(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let i = null, o = 0; const l = o; let p = !1, c = null; const h = o, f = o; let y = !1; const u = o; if (o === u)
230
+ if (Array.isArray(e))
231
+ if (e.length < 1) {
232
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 } };
233
+ null === i ? i = [e] : i.push(e), o++;
234
+ }
235
+ else {
236
+ var m = !0;
237
+ const n = e.length;
238
+ for (let a = 0; a < n; a++) {
239
+ let n = e[a];
240
+ const s = o;
241
+ if (o === s)
242
+ if ("string" == typeof n) {
243
+ if (n.length < 1) {
244
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/EntryItem/anyOf/0/items/minLength", keyword: "minLength", params: {} };
245
+ null === i ? i = [e] : i.push(e), o++;
246
+ }
247
+ }
248
+ else {
249
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/EntryItem/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
250
+ null === i ? i = [e] : i.push(e), o++;
251
+ }
252
+ if (!(m = s === o))
253
+ break;
254
+ }
255
+ if (m) {
256
+ let n, a = e.length;
257
+ if (a > 1) {
258
+ const s = {};
259
+ for (; a--;) {
260
+ let r = e[a];
261
+ if ("string" == typeof r) {
262
+ if ("number" == typeof s[r]) {
263
+ n = s[r];
264
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/0/uniqueItems", keyword: "uniqueItems", params: { i: a, j: n } };
265
+ null === i ? i = [e] : i.push(e), o++;
266
+ break;
267
+ }
268
+ s[r] = a;
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
274
+ else {
275
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/0/type", keyword: "type", params: { type: "array" } };
276
+ null === i ? i = [e] : i.push(e), o++;
277
+ } var d = u === o; if (y = y || d, !y) {
278
+ const n = o;
279
+ if (o === n)
280
+ if ("string" == typeof e) {
281
+ if (e.length < 1) {
282
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/1/minLength", keyword: "minLength", params: {} };
283
+ null === i ? i = [e] : i.push(e), o++;
284
+ }
285
+ }
286
+ else {
287
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf/1/type", keyword: "type", params: { type: "string" } };
288
+ null === i ? i = [e] : i.push(e), o++;
289
+ }
290
+ d = n === o, y = y || d;
291
+ } if (y)
292
+ o = f, null !== i && (f ? i.length = f : i = null);
293
+ else {
294
+ const e = { instancePath: t, schemaPath: "#/definitions/EntryItem/anyOf", keyword: "anyOf", params: {} };
295
+ null === i ? i = [e] : i.push(e), o++;
296
+ } if (h === o && (p = !0, c = 0), !p) {
297
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: c } };
298
+ return null === i ? i = [e] : i.push(e), o++, r.errors = i, !1;
299
+ } return o = l, null !== i && (l ? i.length = l : i = null), r.errors = i, 0 === o; }
300
+ function i(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: o = e } = {}) { let l = null, p = 0; const c = p; let h = !1; const f = p; s(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: o }) || (l = null === l ? s.errors : l.concat(s.errors), p = l.length); var y = f === p; if (h = h || y, !h) {
301
+ const s = p;
302
+ r(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: o }) || (l = null === l ? r.errors : l.concat(r.errors), p = l.length), y = s === p, h = h || y;
303
+ } if (!h) {
304
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
305
+ return null === l ? l = [e] : l.push(e), p++, i.errors = l, !1;
306
+ } return p = c, null !== l && (c ? l.length = c : l = null), i.errors = l, 0 === p; }
307
+ function o(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, l = 0; const p = l; let c = !1; const h = l; if (i(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? i.errors : r.concat(i.errors), l = r.length), c = c || h === l, !c) {
308
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
309
+ return null === r ? r = [e] : r.push(e), l++, o.errors = r, !1;
310
+ } return l = p, null !== r && (p ? r.length = p : r = null), o.errors = r, 0 === l; }
311
+ function l(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let p = !1; const c = i; if ("string" != typeof e) {
312
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" } };
313
+ null === r ? r = [e] : r.push(e), i++;
314
+ } var h = c === i; if (p = p || h, !p) {
315
+ const n = i;
316
+ if (i === n)
317
+ if (e && "object" == typeof e && !Array.isArray(e))
318
+ for (const n in e) {
319
+ const a = i, s = i;
320
+ let o = !1;
321
+ const l = i;
322
+ if ("string" != typeof e[n]) {
323
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ExternalItemValue/anyOf/0/type", keyword: "type", params: { type: "string" } };
324
+ null === r ? r = [e] : r.push(e), i++;
325
+ }
326
+ if (o = o || l === i, o)
327
+ i = s, null !== r && (s ? r.length = s : r = null);
328
+ else {
329
+ const e = { instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ExternalItemValue/anyOf", keyword: "anyOf", params: {} };
330
+ null === r ? r = [e] : r.push(e), i++;
331
+ }
332
+ if (a !== i)
333
+ break;
334
+ }
335
+ else {
336
+ const e = { instancePath: t, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "object" } };
337
+ null === r ? r = [e] : r.push(e), i++;
338
+ }
339
+ h = n === i, p = p || h;
340
+ } if (!p) {
341
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
342
+ return null === r ? r = [e] : r.push(e), i++, l.errors = r, !1;
343
+ } return i = o, null !== r && (o ? r.length = o : r = null), l.errors = r, 0 === i; }
344
+ function p(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let c = !1; const h = i; if (l(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? l.errors : r.concat(l.errors), i = r.length), c = c || h === i, !c) {
345
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
346
+ return null === r ? r = [e] : r.push(e), i++, p.errors = r, !1;
347
+ } return i = o, null !== r && (o ? r.length = o : r = null), p.errors = r, 0 === i; }
348
+ function c(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; if (i === p)
349
+ if (Array.isArray(e)) {
350
+ const n = e.length;
351
+ for (let a = 0; a < n; a++) {
352
+ let n = e[a];
353
+ const s = i, o = i;
354
+ let l = !1, p = null;
355
+ const c = i, f = i;
356
+ let y = !1;
357
+ const u = i;
358
+ if (!(n instanceof RegExp)) {
359
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/FilterItemTypes/anyOf/0/instanceof", keyword: "instanceof", params: {} };
360
+ null === r ? r = [e] : r.push(e), i++;
361
+ }
362
+ var h = u === i;
363
+ if (y = y || h, !y) {
364
+ const e = i;
365
+ if ("string" != typeof n) {
366
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/FilterItemTypes/anyOf/1/type", keyword: "type", params: { type: "string" } };
367
+ null === r ? r = [e] : r.push(e), i++;
368
+ }
369
+ if (h = e === i, y = y || h, !y) {
370
+ const e = i;
371
+ if (!(n instanceof Function)) {
372
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/FilterItemTypes/anyOf/2/instanceof", keyword: "instanceof", params: {} };
373
+ null === r ? r = [e] : r.push(e), i++;
374
+ }
375
+ h = e === i, y = y || h;
376
+ }
377
+ }
378
+ if (y)
379
+ i = f, null !== r && (f ? r.length = f : r = null);
380
+ else {
381
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/FilterItemTypes/anyOf", keyword: "anyOf", params: {} };
382
+ null === r ? r = [e] : r.push(e), i++;
383
+ }
384
+ if (c === i && (l = !0, p = 0), l)
385
+ i = o, null !== r && (o ? r.length = o : r = null);
386
+ else {
387
+ const e = { instancePath: t + "/" + a, schemaPath: "#/anyOf/0/items/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
388
+ null === r ? r = [e] : r.push(e), i++;
389
+ }
390
+ if (s !== i)
391
+ break;
392
+ }
393
+ }
394
+ else {
395
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "array" } };
396
+ null === r ? r = [e] : r.push(e), i++;
397
+ } var f = p === i; if (l = l || f, !l) {
398
+ const n = i, a = i;
399
+ let s = !1;
400
+ const o = i;
401
+ if (!(e instanceof RegExp)) {
402
+ const e = { instancePath: t, schemaPath: "#/definitions/FilterItemTypes/anyOf/0/instanceof", keyword: "instanceof", params: {} };
403
+ null === r ? r = [e] : r.push(e), i++;
404
+ }
405
+ var y = o === i;
406
+ if (s = s || y, !s) {
407
+ const n = i;
408
+ if ("string" != typeof e) {
409
+ const e = { instancePath: t, schemaPath: "#/definitions/FilterItemTypes/anyOf/1/type", keyword: "type", params: { type: "string" } };
410
+ null === r ? r = [e] : r.push(e), i++;
411
+ }
412
+ if (y = n === i, s = s || y, !s) {
413
+ const n = i;
414
+ if (!(e instanceof Function)) {
415
+ const e = { instancePath: t, schemaPath: "#/definitions/FilterItemTypes/anyOf/2/instanceof", keyword: "instanceof", params: {} };
416
+ null === r ? r = [e] : r.push(e), i++;
417
+ }
418
+ y = n === i, s = s || y;
419
+ }
420
+ }
421
+ if (s)
422
+ i = a, null !== r && (a ? r.length = a : r = null);
423
+ else {
424
+ const e = { instancePath: t, schemaPath: "#/definitions/FilterItemTypes/anyOf", keyword: "anyOf", params: {} };
425
+ null === r ? r = [e] : r.push(e), i++;
426
+ }
427
+ f = n === i, l = l || f;
428
+ } if (!l) {
429
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
430
+ return null === r ? r = [e] : r.push(e), i++, c.errors = r, !1;
431
+ } return i = o, null !== r && (o ? r.length = o : r = null), c.errors = r, 0 === i; }
432
+ function h(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
433
+ if (!e || "object" != typeof e || Array.isArray(e))
434
+ return h.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
435
+ {
436
+ const n = i;
437
+ for (const n in e)
438
+ if ("appendOnly" !== n && "colors" !== n && "console" !== n && "debug" !== n && "level" !== n && "stream" !== n)
439
+ return h.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } }], !1;
440
+ if (n === i) {
441
+ if (void 0 !== e.appendOnly) {
442
+ const n = i;
443
+ if ("boolean" != typeof e.appendOnly)
444
+ return h.errors = [{ instancePath: t + "/appendOnly", schemaPath: "#/properties/appendOnly/type", keyword: "type", params: { type: "boolean" } }], !1;
445
+ var o = n === i;
446
+ }
447
+ else
448
+ o = !0;
449
+ if (o) {
450
+ if (void 0 !== e.colors) {
451
+ const n = i;
452
+ if ("boolean" != typeof e.colors)
453
+ return h.errors = [{ instancePath: t + "/colors", schemaPath: "#/properties/colors/type", keyword: "type", params: { type: "boolean" } }], !1;
454
+ o = n === i;
455
+ }
456
+ else
457
+ o = !0;
458
+ if (o) {
459
+ if (void 0 !== e.debug) {
460
+ let n = e.debug;
461
+ const a = i, p = i;
462
+ let f = !1;
463
+ const y = i;
464
+ if ("boolean" != typeof n) {
465
+ const e = { instancePath: t + "/debug", schemaPath: "#/properties/debug/anyOf/0/type", keyword: "type", params: { type: "boolean" } };
466
+ null === r ? r = [e] : r.push(e), i++;
467
+ }
468
+ var l = y === i;
469
+ if (f = f || l, !f) {
470
+ const a = i;
471
+ c(n, { instancePath: t + "/debug", parentData: e, parentDataProperty: "debug", rootData: s }) || (r = null === r ? c.errors : r.concat(c.errors), i = r.length), l = a === i, f = f || l;
472
+ }
473
+ if (!f) {
474
+ const e = { instancePath: t + "/debug", schemaPath: "#/properties/debug/anyOf", keyword: "anyOf", params: {} };
475
+ return null === r ? r = [e] : r.push(e), i++, h.errors = r, !1;
476
+ }
477
+ i = p, null !== r && (p ? r.length = p : r = null), o = a === i;
478
+ }
479
+ else
480
+ o = !0;
481
+ if (o)
482
+ if (void 0 !== e.level) {
483
+ let n = e.level;
484
+ const a = i;
485
+ if ("none" !== n && "error" !== n && "warn" !== n && "info" !== n && "log" !== n && "verbose" !== n)
486
+ return h.errors = [{ instancePath: t + "/level", schemaPath: "#/properties/level/enum", keyword: "enum", params: {} }], !1;
487
+ o = a === i;
488
+ }
489
+ else
490
+ o = !0;
491
+ }
492
+ }
493
+ }
494
+ }
495
+ } return h.errors = r, 0 === i; }
496
+ const f = { exclude: { description: "Shortcut for resource.exclude.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, generator: { description: "The options for the module generator.", type: "object" }, include: { description: "Shortcut for resource.include.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, issuer: { description: "Match the issuer of the module (The module pointing to this module).", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, oneOf: { description: "Only execute the first matching rule in this array.", type: "array", items: { description: "A rule.", oneOf: [{ $ref: "#/definitions/RuleSetRule" }] } }, parser: { description: "Options for parsing.", type: "object", additionalProperties: !0 }, resolve: { description: "Options for the resolver.", type: "object", oneOf: [{ $ref: "#/definitions/ResolveOptions" }] }, resource: { description: "Match the resource path of the module.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, resourceFragment: { description: "Match the resource fragment of the module.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, resourceQuery: { description: "Match the resource query of the module.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, rules: { description: "Match and execute these rules when this rule is matched.", type: "array", items: { description: "A rule.", oneOf: [{ $ref: "#/definitions/RuleSetRule" }] } }, sideEffects: { description: "Flags a module as with or without side effects.", type: "boolean" }, test: { description: "Shortcut for resource.test.", oneOf: [{ $ref: "#/definitions/RuleSetConditionOrConditions" }] }, type: { description: "Module type to use for the module.", type: "string" }, use: { description: "Modifiers applied to the module when rule is matched.", oneOf: [{ $ref: "#/definitions/RuleSetUse" }] } }, y = { validate: d };
497
+ function u(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
498
+ if (!Array.isArray(e))
499
+ return u.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "array" } }], !1;
500
+ {
501
+ const n = e.length;
502
+ for (let a = 0; a < n; a++) {
503
+ const n = i, o = i;
504
+ let l = !1, p = null;
505
+ const c = i;
506
+ if (y.validate(e[a], { instancePath: t + "/" + a, parentData: e, parentDataProperty: a, rootData: s }) || (r = null === r ? y.validate.errors : r.concat(y.validate.errors), i = r.length), c === i && (l = !0, p = 0), !l) {
507
+ const e = { instancePath: t + "/" + a, schemaPath: "#/items/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
508
+ return null === r ? r = [e] : r.push(e), i++, u.errors = r, !1;
509
+ }
510
+ if (i = o, null !== r && (o ? r.length = o : r = null), n !== i)
511
+ break;
512
+ }
513
+ }
514
+ } return u.errors = r, 0 === i; }
515
+ function m(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
516
+ if (!e || "object" != typeof e || Array.isArray(e))
517
+ return m.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
518
+ {
519
+ const n = i;
520
+ for (const n in e)
521
+ if ("and" !== n && "not" !== n && "or" !== n)
522
+ return m.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } }], !1;
523
+ if (n === i) {
524
+ if (void 0 !== e.and) {
525
+ const n = i, a = i;
526
+ let l = !1, p = null;
527
+ const c = i;
528
+ if (u(e.and, { instancePath: t + "/and", parentData: e, parentDataProperty: "and", rootData: s }) || (r = null === r ? u.errors : r.concat(u.errors), i = r.length), c === i && (l = !0, p = 0), !l) {
529
+ const e = { instancePath: t + "/and", schemaPath: "#/properties/and/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
530
+ return null === r ? r = [e] : r.push(e), i++, m.errors = r, !1;
531
+ }
532
+ i = a, null !== r && (a ? r.length = a : r = null);
533
+ var o = n === i;
534
+ }
535
+ else
536
+ o = !0;
537
+ if (o) {
538
+ if (void 0 !== e.not) {
539
+ const n = i, a = i;
540
+ let l = !1, p = null;
541
+ const c = i;
542
+ if (y.validate(e.not, { instancePath: t + "/not", parentData: e, parentDataProperty: "not", rootData: s }) || (r = null === r ? y.validate.errors : r.concat(y.validate.errors), i = r.length), c === i && (l = !0, p = 0), !l) {
543
+ const e = { instancePath: t + "/not", schemaPath: "#/properties/not/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
544
+ return null === r ? r = [e] : r.push(e), i++, m.errors = r, !1;
545
+ }
546
+ i = a, null !== r && (a ? r.length = a : r = null), o = n === i;
547
+ }
548
+ else
549
+ o = !0;
550
+ if (o)
551
+ if (void 0 !== e.or) {
552
+ const n = i, a = i;
553
+ let l = !1, p = null;
554
+ const c = i;
555
+ if (u(e.or, { instancePath: t + "/or", parentData: e, parentDataProperty: "or", rootData: s }) || (r = null === r ? u.errors : r.concat(u.errors), i = r.length), c === i && (l = !0, p = 0), !l) {
556
+ const e = { instancePath: t + "/or", schemaPath: "#/properties/or/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
557
+ return null === r ? r = [e] : r.push(e), i++, m.errors = r, !1;
558
+ }
559
+ i = a, null !== r && (a ? r.length = a : r = null), o = n === i;
560
+ }
561
+ else
562
+ o = !0;
563
+ }
564
+ }
565
+ }
566
+ } return m.errors = r, 0 === i; }
567
+ function d(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; if (!(e instanceof RegExp)) {
568
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/instanceof", keyword: "instanceof", params: {} };
569
+ null === r ? r = [e] : r.push(e), i++;
570
+ } var c = p === i; if (l = l || c, !l) {
571
+ const o = i;
572
+ if ("string" != typeof e) {
573
+ const e = { instancePath: t, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "string" } };
574
+ null === r ? r = [e] : r.push(e), i++;
575
+ }
576
+ if (c = o === i, l = l || c, !l) {
577
+ const o = i;
578
+ if (m(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? m.errors : r.concat(m.errors), i = r.length), c = o === i, l = l || c, !l) {
579
+ const o = i;
580
+ u(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? u.errors : r.concat(u.errors), i = r.length), c = o === i, l = l || c;
581
+ }
582
+ }
583
+ } if (!l) {
584
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
585
+ return null === r ? r = [e] : r.push(e), i++, d.errors = r, !1;
586
+ } return i = o, null !== r && (o ? r.length = o : r = null), d.errors = r, 0 === i; }
587
+ function P(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; d(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? d.errors : r.concat(d.errors), i = r.length); var c = p === i; if (l = l || c, !l) {
588
+ const o = i;
589
+ u(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? u.errors : r.concat(u.errors), i = r.length), c = o === i, l = l || c;
590
+ } if (!l) {
591
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
592
+ return null === r ? r = [e] : r.push(e), i++, P.errors = r, !1;
593
+ } return i = o, null !== r && (o ? r.length = o : r = null), P.errors = r, 0 === i; }
594
+ const g = { alias: { $ref: "#/definitions/ResolveAlias" }, browserField: { description: "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", type: "boolean" }, conditionNames: { description: "Condition names for exports field entry point.", type: "array", items: { description: "Condition names for exports field entry point.", type: "string" } }, extensions: { description: "Extensions added to the request when trying to find the file.", type: "array", items: { description: "Extension added to the request when trying to find the file.", type: "string" } }, fallback: { description: "Redirect module requests when normal resolving fails.", oneOf: [{ $ref: "#/definitions/ResolveAlias" }] }, mainFields: { description: "Field names from the description file (package.json) which are used to find the default entry point.", type: "array", items: { description: "Field name from the description file (package.json) which are used to find the default entry point.", anyOf: [{ type: "array", items: { description: "Part of the field path from the description file (package.json) which are used to find the default entry point.", type: "string", minLength: 1 } }, { type: "string", minLength: 1 }] } }, mainFiles: { description: "Filenames used to find the default entry point if there is no description file or main field.", type: "array", items: { description: "Filename used to find the default entry point if there is no description file or main field.", type: "string", minLength: 1 } }, modules: { description: "Folder names or directory paths where to find modules.", type: "array", items: { description: "Folder name or directory path where to find modules.", type: "string", minLength: 1 } }, preferRelative: { description: "Prefer to resolve module requests as relative request and fallback to resolving as module.", type: "boolean" }, tsConfigPath: { description: "Path to tsconfig.json", type: "string" } };
595
+ function k(e, { instancePath: n = "", parentData: a, parentDataProperty: s, rootData: r = e } = {}) { let i = null, o = 0; if (0 === o) {
596
+ if (!e || "object" != typeof e || Array.isArray(e))
597
+ return k.errors = [{ instancePath: n, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
598
+ {
599
+ const a = o;
600
+ for (const a in e)
601
+ if (!t.call(g, a))
602
+ return k.errors = [{ instancePath: n, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a } }], !1;
603
+ if (a === o) {
604
+ if (void 0 !== e.alias) {
605
+ let t = e.alias;
606
+ const a = o, s = o;
607
+ let r = !1;
608
+ const c = o;
609
+ if (o === c)
610
+ if (t && "object" == typeof t && !Array.isArray(t))
611
+ for (const e in t) {
612
+ let a = t[e];
613
+ const s = o, r = o;
614
+ let p = !1;
615
+ const c = o;
616
+ if (o === c)
617
+ if (Array.isArray(a)) {
618
+ const t = a.length;
619
+ for (let s = 0; s < t; s++) {
620
+ let t = a[s];
621
+ const r = o;
622
+ if (o === r)
623
+ if ("string" == typeof t) {
624
+ if (t.length < 1) {
625
+ const t = { instancePath: n + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + s, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/minLength", keyword: "minLength", params: {} };
626
+ null === i ? i = [t] : i.push(t), o++;
627
+ }
628
+ }
629
+ else {
630
+ const t = { instancePath: n + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + s, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
631
+ null === i ? i = [t] : i.push(t), o++;
632
+ }
633
+ if (r !== o)
634
+ break;
635
+ }
636
+ }
637
+ else {
638
+ const t = { instancePath: n + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" } };
639
+ null === i ? i = [t] : i.push(t), o++;
640
+ }
641
+ var l = c === o;
642
+ if (p = p || l, !p) {
643
+ const t = o;
644
+ if (!1 !== a) {
645
+ const t = { instancePath: n + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/1/enum", keyword: "enum", params: {} };
646
+ null === i ? i = [t] : i.push(t), o++;
647
+ }
648
+ if (l = t === o, p = p || l, !p) {
649
+ const t = o;
650
+ if (o === t)
651
+ if ("string" == typeof a) {
652
+ if (a.length < 1) {
653
+ const t = { instancePath: n + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/minLength", keyword: "minLength", params: {} };
654
+ null === i ? i = [t] : i.push(t), o++;
655
+ }
656
+ }
657
+ else {
658
+ const t = { instancePath: n + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/type", keyword: "type", params: { type: "string" } };
659
+ null === i ? i = [t] : i.push(t), o++;
660
+ }
661
+ l = t === o, p = p || l;
662
+ }
663
+ }
664
+ if (p)
665
+ o = r, null !== i && (r ? i.length = r : i = null);
666
+ else {
667
+ const t = { instancePath: n + "/alias/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf", keyword: "anyOf", params: {} };
668
+ null === i ? i = [t] : i.push(t), o++;
669
+ }
670
+ if (s !== o)
671
+ break;
672
+ }
673
+ else {
674
+ const e = { instancePath: n + "/alias", schemaPath: "#/definitions/ResolveAlias/anyOf/0/type", keyword: "type", params: { type: "object" } };
675
+ null === i ? i = [e] : i.push(e), o++;
676
+ }
677
+ if (r = r || c === o, !r) {
678
+ const e = { instancePath: n + "/alias", schemaPath: "#/definitions/ResolveAlias/anyOf", keyword: "anyOf", params: {} };
679
+ return null === i ? i = [e] : i.push(e), o++, k.errors = i, !1;
680
+ }
681
+ o = s, null !== i && (s ? i.length = s : i = null);
682
+ var p = a === o;
683
+ }
684
+ else
685
+ p = !0;
686
+ if (p) {
687
+ if (void 0 !== e.browserField) {
688
+ const t = o;
689
+ if ("boolean" != typeof e.browserField)
690
+ return k.errors = [{ instancePath: n + "/browserField", schemaPath: "#/properties/browserField/type", keyword: "type", params: { type: "boolean" } }], !1;
691
+ p = t === o;
692
+ }
693
+ else
694
+ p = !0;
695
+ if (p) {
696
+ if (void 0 !== e.conditionNames) {
697
+ let t = e.conditionNames;
698
+ const a = o;
699
+ if (o === a) {
700
+ if (!Array.isArray(t))
701
+ return k.errors = [{ instancePath: n + "/conditionNames", schemaPath: "#/properties/conditionNames/type", keyword: "type", params: { type: "array" } }], !1;
702
+ {
703
+ const e = t.length;
704
+ for (let a = 0; a < e; a++) {
705
+ const e = o;
706
+ if ("string" != typeof t[a])
707
+ return k.errors = [{ instancePath: n + "/conditionNames/" + a, schemaPath: "#/properties/conditionNames/items/type", keyword: "type", params: { type: "string" } }], !1;
708
+ if (e !== o)
709
+ break;
710
+ }
711
+ }
712
+ }
713
+ p = a === o;
714
+ }
715
+ else
716
+ p = !0;
717
+ if (p) {
718
+ if (void 0 !== e.extensions) {
719
+ let t = e.extensions;
720
+ const a = o;
721
+ if (o === a) {
722
+ if (!Array.isArray(t))
723
+ return k.errors = [{ instancePath: n + "/extensions", schemaPath: "#/properties/extensions/type", keyword: "type", params: { type: "array" } }], !1;
724
+ {
725
+ const e = t.length;
726
+ for (let a = 0; a < e; a++) {
727
+ const e = o;
728
+ if ("string" != typeof t[a])
729
+ return k.errors = [{ instancePath: n + "/extensions/" + a, schemaPath: "#/properties/extensions/items/type", keyword: "type", params: { type: "string" } }], !1;
730
+ if (e !== o)
731
+ break;
732
+ }
733
+ }
734
+ }
735
+ p = a === o;
736
+ }
737
+ else
738
+ p = !0;
739
+ if (p) {
740
+ if (void 0 !== e.fallback) {
741
+ let t = e.fallback;
742
+ const a = o, s = o;
743
+ let r = !1, l = null;
744
+ const h = o, f = o;
745
+ let y = !1;
746
+ const u = o;
747
+ if (o === u)
748
+ if (t && "object" == typeof t && !Array.isArray(t))
749
+ for (const e in t) {
750
+ let a = t[e];
751
+ const s = o, r = o;
752
+ let l = !1;
753
+ const p = o;
754
+ if (o === p)
755
+ if (Array.isArray(a)) {
756
+ const t = a.length;
757
+ for (let s = 0; s < t; s++) {
758
+ let t = a[s];
759
+ const r = o;
760
+ if (o === r)
761
+ if ("string" == typeof t) {
762
+ if (t.length < 1) {
763
+ const t = { instancePath: n + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + s, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/minLength", keyword: "minLength", params: {} };
764
+ null === i ? i = [t] : i.push(t), o++;
765
+ }
766
+ }
767
+ else {
768
+ const t = { instancePath: n + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + s, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
769
+ null === i ? i = [t] : i.push(t), o++;
770
+ }
771
+ if (r !== o)
772
+ break;
773
+ }
774
+ }
775
+ else {
776
+ const t = { instancePath: n + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" } };
777
+ null === i ? i = [t] : i.push(t), o++;
778
+ }
779
+ var c = p === o;
780
+ if (l = l || c, !l) {
781
+ const t = o;
782
+ if (!1 !== a) {
783
+ const t = { instancePath: n + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/1/enum", keyword: "enum", params: {} };
784
+ null === i ? i = [t] : i.push(t), o++;
785
+ }
786
+ if (c = t === o, l = l || c, !l) {
787
+ const t = o;
788
+ if (o === t)
789
+ if ("string" == typeof a) {
790
+ if (a.length < 1) {
791
+ const t = { instancePath: n + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/minLength", keyword: "minLength", params: {} };
792
+ null === i ? i = [t] : i.push(t), o++;
793
+ }
794
+ }
795
+ else {
796
+ const t = { instancePath: n + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/type", keyword: "type", params: { type: "string" } };
797
+ null === i ? i = [t] : i.push(t), o++;
798
+ }
799
+ c = t === o, l = l || c;
800
+ }
801
+ }
802
+ if (l)
803
+ o = r, null !== i && (r ? i.length = r : i = null);
804
+ else {
805
+ const t = { instancePath: n + "/fallback/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf", keyword: "anyOf", params: {} };
806
+ null === i ? i = [t] : i.push(t), o++;
807
+ }
808
+ if (s !== o)
809
+ break;
810
+ }
811
+ else {
812
+ const e = { instancePath: n + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf/0/type", keyword: "type", params: { type: "object" } };
813
+ null === i ? i = [e] : i.push(e), o++;
814
+ }
815
+ if (y = y || u === o, y)
816
+ o = f, null !== i && (f ? i.length = f : i = null);
817
+ else {
818
+ const e = { instancePath: n + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf", keyword: "anyOf", params: {} };
819
+ null === i ? i = [e] : i.push(e), o++;
820
+ }
821
+ if (h === o && (r = !0, l = 0), !r) {
822
+ const e = { instancePath: n + "/fallback", schemaPath: "#/properties/fallback/oneOf", keyword: "oneOf", params: { passingSchemas: l } };
823
+ return null === i ? i = [e] : i.push(e), o++, k.errors = i, !1;
824
+ }
825
+ o = s, null !== i && (s ? i.length = s : i = null), p = a === o;
826
+ }
827
+ else
828
+ p = !0;
829
+ if (p) {
830
+ if (void 0 !== e.mainFields) {
831
+ let t = e.mainFields;
832
+ const a = o;
833
+ if (o === a) {
834
+ if (!Array.isArray(t))
835
+ return k.errors = [{ instancePath: n + "/mainFields", schemaPath: "#/properties/mainFields/type", keyword: "type", params: { type: "array" } }], !1;
836
+ {
837
+ const e = t.length;
838
+ for (let a = 0; a < e; a++) {
839
+ let e = t[a];
840
+ const s = o, r = o;
841
+ let l = !1;
842
+ const p = o;
843
+ if (o === p)
844
+ if (Array.isArray(e)) {
845
+ const t = e.length;
846
+ for (let s = 0; s < t; s++) {
847
+ let t = e[s];
848
+ const r = o;
849
+ if (o === r)
850
+ if ("string" == typeof t) {
851
+ if (t.length < 1) {
852
+ const e = { instancePath: n + "/mainFields/" + a + "/" + s, schemaPath: "#/properties/mainFields/items/anyOf/0/items/minLength", keyword: "minLength", params: {} };
853
+ null === i ? i = [e] : i.push(e), o++;
854
+ }
855
+ }
856
+ else {
857
+ const e = { instancePath: n + "/mainFields/" + a + "/" + s, schemaPath: "#/properties/mainFields/items/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
858
+ null === i ? i = [e] : i.push(e), o++;
859
+ }
860
+ if (r !== o)
861
+ break;
862
+ }
863
+ }
864
+ else {
865
+ const e = { instancePath: n + "/mainFields/" + a, schemaPath: "#/properties/mainFields/items/anyOf/0/type", keyword: "type", params: { type: "array" } };
866
+ null === i ? i = [e] : i.push(e), o++;
867
+ }
868
+ var h = p === o;
869
+ if (l = l || h, !l) {
870
+ const t = o;
871
+ if (o === t)
872
+ if ("string" == typeof e) {
873
+ if (e.length < 1) {
874
+ const e = { instancePath: n + "/mainFields/" + a, schemaPath: "#/properties/mainFields/items/anyOf/1/minLength", keyword: "minLength", params: {} };
875
+ null === i ? i = [e] : i.push(e), o++;
876
+ }
877
+ }
878
+ else {
879
+ const e = { instancePath: n + "/mainFields/" + a, schemaPath: "#/properties/mainFields/items/anyOf/1/type", keyword: "type", params: { type: "string" } };
880
+ null === i ? i = [e] : i.push(e), o++;
881
+ }
882
+ h = t === o, l = l || h;
883
+ }
884
+ if (!l) {
885
+ const e = { instancePath: n + "/mainFields/" + a, schemaPath: "#/properties/mainFields/items/anyOf", keyword: "anyOf", params: {} };
886
+ return null === i ? i = [e] : i.push(e), o++, k.errors = i, !1;
887
+ }
888
+ if (o = r, null !== i && (r ? i.length = r : i = null), s !== o)
889
+ break;
890
+ }
891
+ }
892
+ }
893
+ p = a === o;
894
+ }
895
+ else
896
+ p = !0;
897
+ if (p) {
898
+ if (void 0 !== e.mainFiles) {
899
+ let t = e.mainFiles;
900
+ const a = o;
901
+ if (o === a) {
902
+ if (!Array.isArray(t))
903
+ return k.errors = [{ instancePath: n + "/mainFiles", schemaPath: "#/properties/mainFiles/type", keyword: "type", params: { type: "array" } }], !1;
904
+ {
905
+ const e = t.length;
906
+ for (let a = 0; a < e; a++) {
907
+ let e = t[a];
908
+ const s = o;
909
+ if (o === s) {
910
+ if ("string" != typeof e)
911
+ return k.errors = [{ instancePath: n + "/mainFiles/" + a, schemaPath: "#/properties/mainFiles/items/type", keyword: "type", params: { type: "string" } }], !1;
912
+ if (e.length < 1)
913
+ return k.errors = [{ instancePath: n + "/mainFiles/" + a, schemaPath: "#/properties/mainFiles/items/minLength", keyword: "minLength", params: {} }], !1;
914
+ }
915
+ if (s !== o)
916
+ break;
917
+ }
918
+ }
919
+ }
920
+ p = a === o;
921
+ }
922
+ else
923
+ p = !0;
924
+ if (p) {
925
+ if (void 0 !== e.modules) {
926
+ let t = e.modules;
927
+ const a = o;
928
+ if (o === a) {
929
+ if (!Array.isArray(t))
930
+ return k.errors = [{ instancePath: n + "/modules", schemaPath: "#/properties/modules/type", keyword: "type", params: { type: "array" } }], !1;
931
+ {
932
+ const e = t.length;
933
+ for (let a = 0; a < e; a++) {
934
+ let e = t[a];
935
+ const s = o;
936
+ if (o === s) {
937
+ if ("string" != typeof e)
938
+ return k.errors = [{ instancePath: n + "/modules/" + a, schemaPath: "#/properties/modules/items/type", keyword: "type", params: { type: "string" } }], !1;
939
+ if (e.length < 1)
940
+ return k.errors = [{ instancePath: n + "/modules/" + a, schemaPath: "#/properties/modules/items/minLength", keyword: "minLength", params: {} }], !1;
941
+ }
942
+ if (s !== o)
943
+ break;
944
+ }
945
+ }
946
+ }
947
+ p = a === o;
948
+ }
949
+ else
950
+ p = !0;
951
+ if (p) {
952
+ if (void 0 !== e.preferRelative) {
953
+ const t = o;
954
+ if ("boolean" != typeof e.preferRelative)
955
+ return k.errors = [{ instancePath: n + "/preferRelative", schemaPath: "#/properties/preferRelative/type", keyword: "type", params: { type: "boolean" } }], !1;
956
+ p = t === o;
957
+ }
958
+ else
959
+ p = !0;
960
+ if (p)
961
+ if (void 0 !== e.tsConfigPath) {
962
+ const t = o;
963
+ if ("string" != typeof e.tsConfigPath)
964
+ return k.errors = [{ instancePath: n + "/tsConfigPath", schemaPath: "#/properties/tsConfigPath/type", keyword: "type", params: { type: "string" } }], !1;
965
+ p = t === o;
966
+ }
967
+ else
968
+ p = !0;
969
+ }
970
+ }
971
+ }
972
+ }
973
+ }
974
+ }
975
+ }
976
+ }
977
+ }
978
+ }
979
+ } return k.errors = i, 0 === o; }
980
+ function O(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; if (i === p)
981
+ if (e && "object" == typeof e && !Array.isArray(e)) {
982
+ const n = i;
983
+ for (const n in e)
984
+ if ("loader" !== n && "options" !== n) {
985
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } };
986
+ null === r ? r = [e] : r.push(e), i++;
987
+ break;
988
+ }
989
+ if (n === i) {
990
+ if (void 0 !== e.loader) {
991
+ let n = e.loader;
992
+ const a = i, s = i;
993
+ let o = !1, l = null;
994
+ const p = i;
995
+ if (i == i)
996
+ if ("string" == typeof n) {
997
+ if (n.length < 1) {
998
+ const e = { instancePath: t + "/loader", schemaPath: "#/definitions/RuleSetLoader/minLength", keyword: "minLength", params: {} };
999
+ null === r ? r = [e] : r.push(e), i++;
1000
+ }
1001
+ }
1002
+ else {
1003
+ const e = { instancePath: t + "/loader", schemaPath: "#/definitions/RuleSetLoader/type", keyword: "type", params: { type: "string" } };
1004
+ null === r ? r = [e] : r.push(e), i++;
1005
+ }
1006
+ if (p === i && (o = !0, l = 0), o)
1007
+ i = s, null !== r && (s ? r.length = s : r = null);
1008
+ else {
1009
+ const e = { instancePath: t + "/loader", schemaPath: "#/anyOf/0/properties/loader/oneOf", keyword: "oneOf", params: { passingSchemas: l } };
1010
+ null === r ? r = [e] : r.push(e), i++;
1011
+ }
1012
+ var c = a === i;
1013
+ }
1014
+ else
1015
+ c = !0;
1016
+ if (c)
1017
+ if (void 0 !== e.options) {
1018
+ let n = e.options;
1019
+ const a = i, s = i;
1020
+ let o = !1, l = null;
1021
+ const p = i, f = i;
1022
+ let y = !1;
1023
+ const u = i;
1024
+ if ("string" != typeof n) {
1025
+ const e = { instancePath: t + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf/0/type", keyword: "type", params: { type: "string" } };
1026
+ null === r ? r = [e] : r.push(e), i++;
1027
+ }
1028
+ var h = u === i;
1029
+ if (y = y || h, !y) {
1030
+ const e = i;
1031
+ if (!n || "object" != typeof n || Array.isArray(n)) {
1032
+ const e = { instancePath: t + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf/1/type", keyword: "type", params: { type: "object" } };
1033
+ null === r ? r = [e] : r.push(e), i++;
1034
+ }
1035
+ h = e === i, y = y || h;
1036
+ }
1037
+ if (y)
1038
+ i = f, null !== r && (f ? r.length = f : r = null);
1039
+ else {
1040
+ const e = { instancePath: t + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf", keyword: "anyOf", params: {} };
1041
+ null === r ? r = [e] : r.push(e), i++;
1042
+ }
1043
+ if (p === i && (o = !0, l = 0), o)
1044
+ i = s, null !== r && (s ? r.length = s : r = null);
1045
+ else {
1046
+ const e = { instancePath: t + "/options", schemaPath: "#/anyOf/0/properties/options/oneOf", keyword: "oneOf", params: { passingSchemas: l } };
1047
+ null === r ? r = [e] : r.push(e), i++;
1048
+ }
1049
+ c = a === i;
1050
+ }
1051
+ else
1052
+ c = !0;
1053
+ }
1054
+ }
1055
+ else {
1056
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "object" } };
1057
+ null === r ? r = [e] : r.push(e), i++;
1058
+ } var f = p === i; if (l = l || f, !l) {
1059
+ const n = i;
1060
+ if (i == i)
1061
+ if ("string" == typeof e) {
1062
+ if (e.length < 1) {
1063
+ const e = { instancePath: t, schemaPath: "#/definitions/RuleSetLoader/minLength", keyword: "minLength", params: {} };
1064
+ null === r ? r = [e] : r.push(e), i++;
1065
+ }
1066
+ }
1067
+ else {
1068
+ const e = { instancePath: t, schemaPath: "#/definitions/RuleSetLoader/type", keyword: "type", params: { type: "string" } };
1069
+ null === r ? r = [e] : r.push(e), i++;
1070
+ }
1071
+ f = n === i, l = l || f;
1072
+ } if (!l) {
1073
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
1074
+ return null === r ? r = [e] : r.push(e), i++, O.errors = r, !1;
1075
+ } return i = o, null !== r && (o ? r.length = o : r = null), O.errors = r, 0 === i; }
1076
+ function w(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; if (i === p)
1077
+ if (Array.isArray(e)) {
1078
+ const n = e.length;
1079
+ for (let a = 0; a < n; a++) {
1080
+ const n = i, o = i;
1081
+ let l = !1, p = null;
1082
+ const c = i;
1083
+ if (O(e[a], { instancePath: t + "/" + a, parentData: e, parentDataProperty: a, rootData: s }) || (r = null === r ? O.errors : r.concat(O.errors), i = r.length), c === i && (l = !0, p = 0), l)
1084
+ i = o, null !== r && (o ? r.length = o : r = null);
1085
+ else {
1086
+ const e = { instancePath: t + "/" + a, schemaPath: "#/anyOf/0/items/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1087
+ null === r ? r = [e] : r.push(e), i++;
1088
+ }
1089
+ if (n !== i)
1090
+ break;
1091
+ }
1092
+ }
1093
+ else {
1094
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "array" } };
1095
+ null === r ? r = [e] : r.push(e), i++;
1096
+ } var c = p === i; if (l = l || c, !l) {
1097
+ const o = i;
1098
+ O(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? O.errors : r.concat(O.errors), i = r.length), c = o === i, l = l || c;
1099
+ } if (!l) {
1100
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
1101
+ return null === r ? r = [e] : r.push(e), i++, w.errors = r, !1;
1102
+ } return i = o, null !== r && (o ? r.length = o : r = null), w.errors = r, 0 === i; }
1103
+ const b = { validate: v };
1104
+ function v(e, { instancePath: n = "", parentData: a, parentDataProperty: s, rootData: r = e } = {}) { let i = null, o = 0; if (0 === o) {
1105
+ if (!e || "object" != typeof e || Array.isArray(e))
1106
+ return v.errors = [{ instancePath: n, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
1107
+ {
1108
+ const a = o;
1109
+ for (const a in e)
1110
+ if (!t.call(f, a))
1111
+ return v.errors = [{ instancePath: n, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a } }], !1;
1112
+ if (a === o) {
1113
+ if (void 0 !== e.exclude) {
1114
+ const t = o, a = o;
1115
+ let s = !1, p = null;
1116
+ const c = o;
1117
+ if (P(e.exclude, { instancePath: n + "/exclude", parentData: e, parentDataProperty: "exclude", rootData: r }) || (i = null === i ? P.errors : i.concat(P.errors), o = i.length), c === o && (s = !0, p = 0), !s) {
1118
+ const e = { instancePath: n + "/exclude", schemaPath: "#/properties/exclude/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1119
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1120
+ }
1121
+ o = a, null !== i && (a ? i.length = a : i = null);
1122
+ var l = t === o;
1123
+ }
1124
+ else
1125
+ l = !0;
1126
+ if (l) {
1127
+ if (void 0 !== e.generator) {
1128
+ let t = e.generator;
1129
+ const a = o;
1130
+ if (!t || "object" != typeof t || Array.isArray(t))
1131
+ return v.errors = [{ instancePath: n + "/generator", schemaPath: "#/properties/generator/type", keyword: "type", params: { type: "object" } }], !1;
1132
+ l = a === o;
1133
+ }
1134
+ else
1135
+ l = !0;
1136
+ if (l) {
1137
+ if (void 0 !== e.include) {
1138
+ const t = o, a = o;
1139
+ let s = !1, p = null;
1140
+ const c = o;
1141
+ if (P(e.include, { instancePath: n + "/include", parentData: e, parentDataProperty: "include", rootData: r }) || (i = null === i ? P.errors : i.concat(P.errors), o = i.length), c === o && (s = !0, p = 0), !s) {
1142
+ const e = { instancePath: n + "/include", schemaPath: "#/properties/include/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1143
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1144
+ }
1145
+ o = a, null !== i && (a ? i.length = a : i = null), l = t === o;
1146
+ }
1147
+ else
1148
+ l = !0;
1149
+ if (l) {
1150
+ if (void 0 !== e.issuer) {
1151
+ const t = o, a = o;
1152
+ let s = !1, p = null;
1153
+ const c = o;
1154
+ if (P(e.issuer, { instancePath: n + "/issuer", parentData: e, parentDataProperty: "issuer", rootData: r }) || (i = null === i ? P.errors : i.concat(P.errors), o = i.length), c === o && (s = !0, p = 0), !s) {
1155
+ const e = { instancePath: n + "/issuer", schemaPath: "#/properties/issuer/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1156
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1157
+ }
1158
+ o = a, null !== i && (a ? i.length = a : i = null), l = t === o;
1159
+ }
1160
+ else
1161
+ l = !0;
1162
+ if (l) {
1163
+ if (void 0 !== e.oneOf) {
1164
+ let t = e.oneOf;
1165
+ const a = o;
1166
+ if (o === a) {
1167
+ if (!Array.isArray(t))
1168
+ return v.errors = [{ instancePath: n + "/oneOf", schemaPath: "#/properties/oneOf/type", keyword: "type", params: { type: "array" } }], !1;
1169
+ {
1170
+ const e = t.length;
1171
+ for (let a = 0; a < e; a++) {
1172
+ const e = o, s = o;
1173
+ let l = !1, p = null;
1174
+ const c = o;
1175
+ if (b.validate(t[a], { instancePath: n + "/oneOf/" + a, parentData: t, parentDataProperty: a, rootData: r }) || (i = null === i ? b.validate.errors : i.concat(b.validate.errors), o = i.length), c === o && (l = !0, p = 0), !l) {
1176
+ const e = { instancePath: n + "/oneOf/" + a, schemaPath: "#/properties/oneOf/items/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1177
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1178
+ }
1179
+ if (o = s, null !== i && (s ? i.length = s : i = null), e !== o)
1180
+ break;
1181
+ }
1182
+ }
1183
+ }
1184
+ l = a === o;
1185
+ }
1186
+ else
1187
+ l = !0;
1188
+ if (l) {
1189
+ if (void 0 !== e.parser) {
1190
+ let t = e.parser;
1191
+ const a = o;
1192
+ if (o === a && (!t || "object" != typeof t || Array.isArray(t)))
1193
+ return v.errors = [{ instancePath: n + "/parser", schemaPath: "#/properties/parser/type", keyword: "type", params: { type: "object" } }], !1;
1194
+ l = a === o;
1195
+ }
1196
+ else
1197
+ l = !0;
1198
+ if (l) {
1199
+ if (void 0 !== e.resolve) {
1200
+ let t = e.resolve;
1201
+ const a = o;
1202
+ if (!t || "object" != typeof t || Array.isArray(t))
1203
+ return v.errors = [{ instancePath: n + "/resolve", schemaPath: "#/properties/resolve/type", keyword: "type", params: { type: "object" } }], !1;
1204
+ const s = o;
1205
+ let p = !1, c = null;
1206
+ const h = o;
1207
+ if (k(t, { instancePath: n + "/resolve", parentData: e, parentDataProperty: "resolve", rootData: r }) || (i = null === i ? k.errors : i.concat(k.errors), o = i.length), h === o && (p = !0, c = 0), !p) {
1208
+ const e = { instancePath: n + "/resolve", schemaPath: "#/properties/resolve/oneOf", keyword: "oneOf", params: { passingSchemas: c } };
1209
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1210
+ }
1211
+ o = s, null !== i && (s ? i.length = s : i = null), l = a === o;
1212
+ }
1213
+ else
1214
+ l = !0;
1215
+ if (l) {
1216
+ if (void 0 !== e.resource) {
1217
+ const t = o, a = o;
1218
+ let s = !1, p = null;
1219
+ const c = o;
1220
+ if (P(e.resource, { instancePath: n + "/resource", parentData: e, parentDataProperty: "resource", rootData: r }) || (i = null === i ? P.errors : i.concat(P.errors), o = i.length), c === o && (s = !0, p = 0), !s) {
1221
+ const e = { instancePath: n + "/resource", schemaPath: "#/properties/resource/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1222
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1223
+ }
1224
+ o = a, null !== i && (a ? i.length = a : i = null), l = t === o;
1225
+ }
1226
+ else
1227
+ l = !0;
1228
+ if (l) {
1229
+ if (void 0 !== e.resourceFragment) {
1230
+ const t = o, a = o;
1231
+ let s = !1, p = null;
1232
+ const c = o;
1233
+ if (P(e.resourceFragment, { instancePath: n + "/resourceFragment", parentData: e, parentDataProperty: "resourceFragment", rootData: r }) || (i = null === i ? P.errors : i.concat(P.errors), o = i.length), c === o && (s = !0, p = 0), !s) {
1234
+ const e = { instancePath: n + "/resourceFragment", schemaPath: "#/properties/resourceFragment/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1235
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1236
+ }
1237
+ o = a, null !== i && (a ? i.length = a : i = null), l = t === o;
1238
+ }
1239
+ else
1240
+ l = !0;
1241
+ if (l) {
1242
+ if (void 0 !== e.resourceQuery) {
1243
+ const t = o, a = o;
1244
+ let s = !1, p = null;
1245
+ const c = o;
1246
+ if (P(e.resourceQuery, { instancePath: n + "/resourceQuery", parentData: e, parentDataProperty: "resourceQuery", rootData: r }) || (i = null === i ? P.errors : i.concat(P.errors), o = i.length), c === o && (s = !0, p = 0), !s) {
1247
+ const e = { instancePath: n + "/resourceQuery", schemaPath: "#/properties/resourceQuery/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1248
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1249
+ }
1250
+ o = a, null !== i && (a ? i.length = a : i = null), l = t === o;
1251
+ }
1252
+ else
1253
+ l = !0;
1254
+ if (l) {
1255
+ if (void 0 !== e.rules) {
1256
+ let t = e.rules;
1257
+ const a = o;
1258
+ if (o === a) {
1259
+ if (!Array.isArray(t))
1260
+ return v.errors = [{ instancePath: n + "/rules", schemaPath: "#/properties/rules/type", keyword: "type", params: { type: "array" } }], !1;
1261
+ {
1262
+ const e = t.length;
1263
+ for (let a = 0; a < e; a++) {
1264
+ const e = o, s = o;
1265
+ let l = !1, p = null;
1266
+ const c = o;
1267
+ if (b.validate(t[a], { instancePath: n + "/rules/" + a, parentData: t, parentDataProperty: a, rootData: r }) || (i = null === i ? b.validate.errors : i.concat(b.validate.errors), o = i.length), c === o && (l = !0, p = 0), !l) {
1268
+ const e = { instancePath: n + "/rules/" + a, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1269
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1270
+ }
1271
+ if (o = s, null !== i && (s ? i.length = s : i = null), e !== o)
1272
+ break;
1273
+ }
1274
+ }
1275
+ }
1276
+ l = a === o;
1277
+ }
1278
+ else
1279
+ l = !0;
1280
+ if (l) {
1281
+ if (void 0 !== e.sideEffects) {
1282
+ const t = o;
1283
+ if ("boolean" != typeof e.sideEffects)
1284
+ return v.errors = [{ instancePath: n + "/sideEffects", schemaPath: "#/properties/sideEffects/type", keyword: "type", params: { type: "boolean" } }], !1;
1285
+ l = t === o;
1286
+ }
1287
+ else
1288
+ l = !0;
1289
+ if (l) {
1290
+ if (void 0 !== e.test) {
1291
+ const t = o, a = o;
1292
+ let s = !1, p = null;
1293
+ const c = o;
1294
+ if (P(e.test, { instancePath: n + "/test", parentData: e, parentDataProperty: "test", rootData: r }) || (i = null === i ? P.errors : i.concat(P.errors), o = i.length), c === o && (s = !0, p = 0), !s) {
1295
+ const e = { instancePath: n + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1296
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1297
+ }
1298
+ o = a, null !== i && (a ? i.length = a : i = null), l = t === o;
1299
+ }
1300
+ else
1301
+ l = !0;
1302
+ if (l) {
1303
+ if (void 0 !== e.type) {
1304
+ const t = o;
1305
+ if ("string" != typeof e.type)
1306
+ return v.errors = [{ instancePath: n + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" } }], !1;
1307
+ l = t === o;
1308
+ }
1309
+ else
1310
+ l = !0;
1311
+ if (l)
1312
+ if (void 0 !== e.use) {
1313
+ const t = o, a = o;
1314
+ let s = !1, p = null;
1315
+ const c = o;
1316
+ if (w(e.use, { instancePath: n + "/use", parentData: e, parentDataProperty: "use", rootData: r }) || (i = null === i ? w.errors : i.concat(w.errors), o = i.length), c === o && (s = !0, p = 0), !s) {
1317
+ const e = { instancePath: n + "/use", schemaPath: "#/properties/use/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1318
+ return null === i ? i = [e] : i.push(e), o++, v.errors = i, !1;
1319
+ }
1320
+ o = a, null !== i && (a ? i.length = a : i = null), l = t === o;
1321
+ }
1322
+ else
1323
+ l = !0;
1324
+ }
1325
+ }
1326
+ }
1327
+ }
1328
+ }
1329
+ }
1330
+ }
1331
+ }
1332
+ }
1333
+ }
1334
+ }
1335
+ }
1336
+ }
1337
+ }
1338
+ }
1339
+ } return v.errors = i, 0 === o; }
1340
+ function D(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
1341
+ if (!Array.isArray(e))
1342
+ return D.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "array" } }], !1;
1343
+ {
1344
+ const n = e.length;
1345
+ for (let a = 0; a < n; a++) {
1346
+ let n = e[a];
1347
+ const l = i, p = i;
1348
+ let c = !1;
1349
+ const h = i;
1350
+ if ("..." !== n) {
1351
+ const e = { instancePath: t + "/" + a, schemaPath: "#/items/anyOf/0/enum", keyword: "enum", params: {} };
1352
+ null === r ? r = [e] : r.push(e), i++;
1353
+ }
1354
+ var o = h === i;
1355
+ if (c = c || o, !c) {
1356
+ const l = i;
1357
+ v(n, { instancePath: t + "/" + a, parentData: e, parentDataProperty: a, rootData: s }) || (r = null === r ? v.errors : r.concat(v.errors), i = r.length), o = l === i, c = c || o;
1358
+ }
1359
+ if (!c) {
1360
+ const e = { instancePath: t + "/" + a, schemaPath: "#/items/anyOf", keyword: "anyOf", params: {} };
1361
+ return null === r ? r = [e] : r.push(e), i++, D.errors = r, !1;
1362
+ }
1363
+ if (i = p, null !== r && (p ? r.length = p : r = null), l !== i)
1364
+ break;
1365
+ }
1366
+ }
1367
+ } return D.errors = r, 0 === i; }
1368
+ function A(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
1369
+ if (!e || "object" != typeof e || Array.isArray(e))
1370
+ return A.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
1371
+ {
1372
+ const n = i;
1373
+ for (const n in e)
1374
+ if ("dataUrlCondition" !== n)
1375
+ return A.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } }], !1;
1376
+ if (n === i && void 0 !== e.dataUrlCondition) {
1377
+ let n = e.dataUrlCondition;
1378
+ const a = i;
1379
+ let s = !1;
1380
+ const o = i;
1381
+ if (i == i)
1382
+ if (n && "object" == typeof n && !Array.isArray(n)) {
1383
+ const e = i;
1384
+ for (const e in n)
1385
+ if ("maxSize" !== e) {
1386
+ const n = { instancePath: t + "/dataUrlCondition", schemaPath: "#/definitions/AssetParserDataUrlOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: e } };
1387
+ null === r ? r = [n] : r.push(n), i++;
1388
+ break;
1389
+ }
1390
+ if (e === i && void 0 !== n.maxSize && "number" != typeof n.maxSize) {
1391
+ const e = { instancePath: t + "/dataUrlCondition/maxSize", schemaPath: "#/definitions/AssetParserDataUrlOptions/properties/maxSize/type", keyword: "type", params: { type: "number" } };
1392
+ null === r ? r = [e] : r.push(e), i++;
1393
+ }
1394
+ }
1395
+ else {
1396
+ const e = { instancePath: t + "/dataUrlCondition", schemaPath: "#/definitions/AssetParserDataUrlOptions/type", keyword: "type", params: { type: "object" } };
1397
+ null === r ? r = [e] : r.push(e), i++;
1398
+ }
1399
+ if (s = s || o === i, !s) {
1400
+ const e = { instancePath: t + "/dataUrlCondition", schemaPath: "#/properties/dataUrlCondition/anyOf", keyword: "anyOf", params: {} };
1401
+ return null === r ? r = [e] : r.push(e), i++, A.errors = r, !1;
1402
+ }
1403
+ i = a, null !== r && (a ? r.length = a : r = null);
1404
+ }
1405
+ }
1406
+ } return A.errors = r, 0 === i; }
1407
+ function C(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
1408
+ if (!e || "object" != typeof e || Array.isArray(e))
1409
+ return C.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
1410
+ {
1411
+ const n = i;
1412
+ for (const n in e)
1413
+ if ("asset" !== n) {
1414
+ let a = e[n];
1415
+ const s = i;
1416
+ if (i === s && (!a || "object" != typeof a || Array.isArray(a)))
1417
+ return C.errors = [{ instancePath: t + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/additionalProperties/type", keyword: "type", params: { type: "object" } }], !1;
1418
+ if (s !== i)
1419
+ break;
1420
+ }
1421
+ n === i && void 0 !== e.asset && (A(e.asset, { instancePath: t + "/asset", parentData: e, parentDataProperty: "asset", rootData: s }) || (r = null === r ? A.errors : r.concat(A.errors), i = r.length));
1422
+ }
1423
+ } return C.errors = r, 0 === i; }
1424
+ function S(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
1425
+ if (!e || "object" != typeof e || Array.isArray(e))
1426
+ return S.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
1427
+ {
1428
+ const n = i;
1429
+ for (const n in e)
1430
+ if ("defaultRules" !== n && "parser" !== n && "rules" !== n)
1431
+ return S.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } }], !1;
1432
+ if (n === i) {
1433
+ if (void 0 !== e.defaultRules) {
1434
+ const n = i, a = i;
1435
+ let l = !1, p = null;
1436
+ const c = i;
1437
+ if (D(e.defaultRules, { instancePath: t + "/defaultRules", parentData: e, parentDataProperty: "defaultRules", rootData: s }) || (r = null === r ? D.errors : r.concat(D.errors), i = r.length), c === i && (l = !0, p = 0), !l) {
1438
+ const e = { instancePath: t + "/defaultRules", schemaPath: "#/properties/defaultRules/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1439
+ return null === r ? r = [e] : r.push(e), i++, S.errors = r, !1;
1440
+ }
1441
+ i = a, null !== r && (a ? r.length = a : r = null);
1442
+ var o = n === i;
1443
+ }
1444
+ else
1445
+ o = !0;
1446
+ if (o) {
1447
+ if (void 0 !== e.parser) {
1448
+ const n = i;
1449
+ C(e.parser, { instancePath: t + "/parser", parentData: e, parentDataProperty: "parser", rootData: s }) || (r = null === r ? C.errors : r.concat(C.errors), i = r.length), o = n === i;
1450
+ }
1451
+ else
1452
+ o = !0;
1453
+ if (o)
1454
+ if (void 0 !== e.rules) {
1455
+ const n = i, a = i;
1456
+ let l = !1, p = null;
1457
+ const c = i;
1458
+ if (D(e.rules, { instancePath: t + "/rules", parentData: e, parentDataProperty: "rules", rootData: s }) || (r = null === r ? D.errors : r.concat(D.errors), i = r.length), c === i && (l = !0, p = 0), !l) {
1459
+ const e = { instancePath: t + "/rules", schemaPath: "#/properties/rules/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
1460
+ return null === r ? r = [e] : r.push(e), i++, S.errors = r, !1;
1461
+ }
1462
+ i = a, null !== r && (a ? r.length = a : r = null), o = n === i;
1463
+ }
1464
+ else
1465
+ o = !0;
1466
+ }
1467
+ }
1468
+ }
1469
+ } return S.errors = r, 0 === i; }
1470
+ function j(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; if (!1 !== e) {
1471
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {} };
1472
+ null === r ? r = [e] : r.push(e), i++;
1473
+ } var c = p === i; if (l = l || c, !l) {
1474
+ const n = i;
1475
+ if (i == i)
1476
+ if (e && "object" == typeof e && !Array.isArray(e)) {
1477
+ const n = i;
1478
+ for (const n in e)
1479
+ if ("__dirname" !== n && "global" !== n) {
1480
+ const e = { instancePath: t, schemaPath: "#/definitions/NodeOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } };
1481
+ null === r ? r = [e] : r.push(e), i++;
1482
+ break;
1483
+ }
1484
+ if (n === i) {
1485
+ if (void 0 !== e.__dirname) {
1486
+ let n = e.__dirname;
1487
+ const a = i;
1488
+ if (!1 !== n && !0 !== n && "warn-mock" !== n && "mock" !== n && "eval-only" !== n) {
1489
+ const e = { instancePath: t + "/__dirname", schemaPath: "#/definitions/NodeOptions/properties/__dirname/enum", keyword: "enum", params: {} };
1490
+ null === r ? r = [e] : r.push(e), i++;
1491
+ }
1492
+ var h = a === i;
1493
+ }
1494
+ else
1495
+ h = !0;
1496
+ if (h)
1497
+ if (void 0 !== e.global) {
1498
+ let n = e.global;
1499
+ const a = i;
1500
+ if (!1 !== n && !0 !== n && "warn" !== n) {
1501
+ const e = { instancePath: t + "/global", schemaPath: "#/definitions/NodeOptions/properties/global/enum", keyword: "enum", params: {} };
1502
+ null === r ? r = [e] : r.push(e), i++;
1503
+ }
1504
+ h = a === i;
1505
+ }
1506
+ else
1507
+ h = !0;
1508
+ }
1509
+ }
1510
+ else {
1511
+ const e = { instancePath: t, schemaPath: "#/definitions/NodeOptions/type", keyword: "type", params: { type: "object" } };
1512
+ null === r ? r = [e] : r.push(e), i++;
1513
+ }
1514
+ c = n === i, l = l || c;
1515
+ } if (!l) {
1516
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
1517
+ return null === r ? r = [e] : r.push(e), i++, j.errors = r, !1;
1518
+ } return i = o, null !== r && (o ? r.length = o : r = null), j.errors = r, 0 === i; }
1519
+ function L(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
1520
+ if (!e || "object" != typeof e || Array.isArray(e))
1521
+ return L.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
1522
+ {
1523
+ const n = i;
1524
+ for (const n in e)
1525
+ if ("cacheGroups" !== n && "chunks" !== n && "enforceSizeThreshold" !== n && "maxAsyncRequests" !== n && "maxInitialRequests" !== n && "minChunks" !== n && "minRemainingSize" !== n && "minSize" !== n)
1526
+ return L.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } }], !1;
1527
+ if (n === i) {
1528
+ if (void 0 !== e.cacheGroups) {
1529
+ let n = e.cacheGroups;
1530
+ const a = i;
1531
+ if (i === a) {
1532
+ if (!n || "object" != typeof n || Array.isArray(n))
1533
+ return L.errors = [{ instancePath: t + "/cacheGroups", schemaPath: "#/properties/cacheGroups/type", keyword: "type", params: { type: "object" } }], !1;
1534
+ for (const e in n) {
1535
+ let a = n[e];
1536
+ const s = i, c = i;
1537
+ let h = !1;
1538
+ const f = i;
1539
+ if (i == i)
1540
+ if (a && "object" == typeof a && !Array.isArray(a)) {
1541
+ const n = i;
1542
+ for (const n in a)
1543
+ if ("chunks" !== n && "minChunks" !== n && "name" !== n && "priority" !== n && "reuseExistingChunk" !== n && "test" !== n) {
1544
+ const a = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } };
1545
+ null === r ? r = [a] : r.push(a), i++;
1546
+ break;
1547
+ }
1548
+ if (n === i) {
1549
+ if (void 0 !== a.chunks) {
1550
+ let n = a.chunks;
1551
+ const s = i, p = i;
1552
+ let c = !1;
1553
+ const h = i;
1554
+ if ("initial" !== n && "async" !== n && "all" !== n) {
1555
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/chunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/chunks/anyOf/0/enum", keyword: "enum", params: {} };
1556
+ null === r ? r = [n] : r.push(n), i++;
1557
+ }
1558
+ var o = h === i;
1559
+ if (c = c || o, !c) {
1560
+ const a = i;
1561
+ if (!(n instanceof Function)) {
1562
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/chunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/chunks/anyOf/1/instanceof", keyword: "instanceof", params: {} };
1563
+ null === r ? r = [n] : r.push(n), i++;
1564
+ }
1565
+ o = a === i, c = c || o;
1566
+ }
1567
+ if (c)
1568
+ i = p, null !== r && (p ? r.length = p : r = null);
1569
+ else {
1570
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/chunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/chunks/anyOf", keyword: "anyOf", params: {} };
1571
+ null === r ? r = [n] : r.push(n), i++;
1572
+ }
1573
+ var l = s === i;
1574
+ }
1575
+ else
1576
+ l = !0;
1577
+ if (l) {
1578
+ if (void 0 !== a.minChunks) {
1579
+ let n = a.minChunks;
1580
+ const s = i;
1581
+ if (i === s)
1582
+ if ("number" == typeof n) {
1583
+ if (n < 1 || isNaN(n)) {
1584
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/minChunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 } };
1585
+ null === r ? r = [n] : r.push(n), i++;
1586
+ }
1587
+ }
1588
+ else {
1589
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/minChunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/minChunks/type", keyword: "type", params: { type: "number" } };
1590
+ null === r ? r = [n] : r.push(n), i++;
1591
+ }
1592
+ l = s === i;
1593
+ }
1594
+ else
1595
+ l = !0;
1596
+ if (l) {
1597
+ if (void 0 !== a.name) {
1598
+ let n = a.name;
1599
+ const s = i, o = i;
1600
+ let c = !1;
1601
+ const h = i;
1602
+ if (!1 !== n) {
1603
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf/0/enum", keyword: "enum", params: {} };
1604
+ null === r ? r = [n] : r.push(n), i++;
1605
+ }
1606
+ var p = h === i;
1607
+ if (c = c || p, !c) {
1608
+ const a = i;
1609
+ if ("string" != typeof n) {
1610
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf/1/type", keyword: "type", params: { type: "string" } };
1611
+ null === r ? r = [n] : r.push(n), i++;
1612
+ }
1613
+ if (p = a === i, c = c || p, !c) {
1614
+ const a = i;
1615
+ if (!(n instanceof Function)) {
1616
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf/2/instanceof", keyword: "instanceof", params: {} };
1617
+ null === r ? r = [n] : r.push(n), i++;
1618
+ }
1619
+ p = a === i, c = c || p;
1620
+ }
1621
+ }
1622
+ if (c)
1623
+ i = o, null !== r && (o ? r.length = o : r = null);
1624
+ else {
1625
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf", keyword: "anyOf", params: {} };
1626
+ null === r ? r = [n] : r.push(n), i++;
1627
+ }
1628
+ l = s === i;
1629
+ }
1630
+ else
1631
+ l = !0;
1632
+ if (l) {
1633
+ if (void 0 !== a.priority) {
1634
+ const n = i;
1635
+ if ("number" != typeof a.priority) {
1636
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/priority", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/priority/type", keyword: "type", params: { type: "number" } };
1637
+ null === r ? r = [n] : r.push(n), i++;
1638
+ }
1639
+ l = n === i;
1640
+ }
1641
+ else
1642
+ l = !0;
1643
+ if (l) {
1644
+ if (void 0 !== a.reuseExistingChunk) {
1645
+ const n = i;
1646
+ if ("boolean" != typeof a.reuseExistingChunk) {
1647
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/reuseExistingChunk", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/reuseExistingChunk/type", keyword: "type", params: { type: "boolean" } };
1648
+ null === r ? r = [n] : r.push(n), i++;
1649
+ }
1650
+ l = n === i;
1651
+ }
1652
+ else
1653
+ l = !0;
1654
+ if (l)
1655
+ if (void 0 !== a.test) {
1656
+ const n = i, s = i;
1657
+ let o = !1;
1658
+ const p = i;
1659
+ if (!(a.test instanceof RegExp)) {
1660
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/test", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/test/anyOf/0/instanceof", keyword: "instanceof", params: {} };
1661
+ null === r ? r = [n] : r.push(n), i++;
1662
+ }
1663
+ if (o = o || p === i, o)
1664
+ i = s, null !== r && (s ? r.length = s : r = null);
1665
+ else {
1666
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1") + "/test", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/test/anyOf", keyword: "anyOf", params: {} };
1667
+ null === r ? r = [n] : r.push(n), i++;
1668
+ }
1669
+ l = n === i;
1670
+ }
1671
+ else
1672
+ l = !0;
1673
+ }
1674
+ }
1675
+ }
1676
+ }
1677
+ }
1678
+ }
1679
+ else {
1680
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/type", keyword: "type", params: { type: "object" } };
1681
+ null === r ? r = [n] : r.push(n), i++;
1682
+ }
1683
+ if (h = h || f === i, !h) {
1684
+ const n = { instancePath: t + "/cacheGroups/" + e.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/cacheGroups/additionalProperties/anyOf", keyword: "anyOf", params: {} };
1685
+ return null === r ? r = [n] : r.push(n), i++, L.errors = r, !1;
1686
+ }
1687
+ if (i = c, null !== r && (c ? r.length = c : r = null), s !== i)
1688
+ break;
1689
+ }
1690
+ }
1691
+ var c = a === i;
1692
+ }
1693
+ else
1694
+ c = !0;
1695
+ if (c) {
1696
+ if (void 0 !== e.chunks) {
1697
+ let n = e.chunks;
1698
+ const a = i, s = i;
1699
+ let o = !1;
1700
+ const l = i;
1701
+ if ("initial" !== n && "async" !== n && "all" !== n) {
1702
+ const e = { instancePath: t + "/chunks", schemaPath: "#/properties/chunks/anyOf/0/enum", keyword: "enum", params: {} };
1703
+ null === r ? r = [e] : r.push(e), i++;
1704
+ }
1705
+ if (o = o || l === i, !o) {
1706
+ const e = { instancePath: t + "/chunks", schemaPath: "#/properties/chunks/anyOf", keyword: "anyOf", params: {} };
1707
+ return null === r ? r = [e] : r.push(e), i++, L.errors = r, !1;
1708
+ }
1709
+ i = s, null !== r && (s ? r.length = s : r = null), c = a === i;
1710
+ }
1711
+ else
1712
+ c = !0;
1713
+ if (c) {
1714
+ if (void 0 !== e.enforceSizeThreshold) {
1715
+ let n = e.enforceSizeThreshold;
1716
+ const a = i, s = i;
1717
+ let o = !1, l = null;
1718
+ const p = i, h = i;
1719
+ let f = !1;
1720
+ const y = i;
1721
+ if (i === y)
1722
+ if ("number" == typeof n) {
1723
+ if (n < 0 || isNaN(n)) {
1724
+ const e = { instancePath: t + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 } };
1725
+ null === r ? r = [e] : r.push(e), i++;
1726
+ }
1727
+ }
1728
+ else {
1729
+ const e = { instancePath: t + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" } };
1730
+ null === r ? r = [e] : r.push(e), i++;
1731
+ }
1732
+ if (f = f || y === i, f)
1733
+ i = h, null !== r && (h ? r.length = h : r = null);
1734
+ else {
1735
+ const e = { instancePath: t + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {} };
1736
+ null === r ? r = [e] : r.push(e), i++;
1737
+ }
1738
+ if (p === i && (o = !0, l = 0), !o) {
1739
+ const e = { instancePath: t + "/enforceSizeThreshold", schemaPath: "#/properties/enforceSizeThreshold/oneOf", keyword: "oneOf", params: { passingSchemas: l } };
1740
+ return null === r ? r = [e] : r.push(e), i++, L.errors = r, !1;
1741
+ }
1742
+ i = s, null !== r && (s ? r.length = s : r = null), c = a === i;
1743
+ }
1744
+ else
1745
+ c = !0;
1746
+ if (c) {
1747
+ if (void 0 !== e.maxAsyncRequests) {
1748
+ let n = e.maxAsyncRequests;
1749
+ const a = i;
1750
+ if (i === a) {
1751
+ if ("number" != typeof n)
1752
+ return L.errors = [{ instancePath: t + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/type", keyword: "type", params: { type: "number" } }], !1;
1753
+ if (n < 1 || isNaN(n))
1754
+ return L.errors = [{ instancePath: t + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 } }], !1;
1755
+ }
1756
+ c = a === i;
1757
+ }
1758
+ else
1759
+ c = !0;
1760
+ if (c) {
1761
+ if (void 0 !== e.maxInitialRequests) {
1762
+ let n = e.maxInitialRequests;
1763
+ const a = i;
1764
+ if (i === a) {
1765
+ if ("number" != typeof n)
1766
+ return L.errors = [{ instancePath: t + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/type", keyword: "type", params: { type: "number" } }], !1;
1767
+ if (n < 1 || isNaN(n))
1768
+ return L.errors = [{ instancePath: t + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 } }], !1;
1769
+ }
1770
+ c = a === i;
1771
+ }
1772
+ else
1773
+ c = !0;
1774
+ if (c) {
1775
+ if (void 0 !== e.minChunks) {
1776
+ let n = e.minChunks;
1777
+ const a = i;
1778
+ if (i === a) {
1779
+ if ("number" != typeof n)
1780
+ return L.errors = [{ instancePath: t + "/minChunks", schemaPath: "#/properties/minChunks/type", keyword: "type", params: { type: "number" } }], !1;
1781
+ if (n < 1 || isNaN(n))
1782
+ return L.errors = [{ instancePath: t + "/minChunks", schemaPath: "#/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 } }], !1;
1783
+ }
1784
+ c = a === i;
1785
+ }
1786
+ else
1787
+ c = !0;
1788
+ if (c) {
1789
+ if (void 0 !== e.minRemainingSize) {
1790
+ let n = e.minRemainingSize;
1791
+ const a = i, s = i;
1792
+ let o = !1, l = null;
1793
+ const p = i, h = i;
1794
+ let f = !1;
1795
+ const y = i;
1796
+ if (i === y)
1797
+ if ("number" == typeof n) {
1798
+ if (n < 0 || isNaN(n)) {
1799
+ const e = { instancePath: t + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 } };
1800
+ null === r ? r = [e] : r.push(e), i++;
1801
+ }
1802
+ }
1803
+ else {
1804
+ const e = { instancePath: t + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" } };
1805
+ null === r ? r = [e] : r.push(e), i++;
1806
+ }
1807
+ if (f = f || y === i, f)
1808
+ i = h, null !== r && (h ? r.length = h : r = null);
1809
+ else {
1810
+ const e = { instancePath: t + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {} };
1811
+ null === r ? r = [e] : r.push(e), i++;
1812
+ }
1813
+ if (p === i && (o = !0, l = 0), !o) {
1814
+ const e = { instancePath: t + "/minRemainingSize", schemaPath: "#/properties/minRemainingSize/oneOf", keyword: "oneOf", params: { passingSchemas: l } };
1815
+ return null === r ? r = [e] : r.push(e), i++, L.errors = r, !1;
1816
+ }
1817
+ i = s, null !== r && (s ? r.length = s : r = null), c = a === i;
1818
+ }
1819
+ else
1820
+ c = !0;
1821
+ if (c)
1822
+ if (void 0 !== e.minSize) {
1823
+ let n = e.minSize;
1824
+ const a = i, s = i;
1825
+ let o = !1, l = null;
1826
+ const p = i, h = i;
1827
+ let f = !1;
1828
+ const y = i;
1829
+ if (i === y)
1830
+ if ("number" == typeof n) {
1831
+ if (n < 0 || isNaN(n)) {
1832
+ const e = { instancePath: t + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 } };
1833
+ null === r ? r = [e] : r.push(e), i++;
1834
+ }
1835
+ }
1836
+ else {
1837
+ const e = { instancePath: t + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" } };
1838
+ null === r ? r = [e] : r.push(e), i++;
1839
+ }
1840
+ if (f = f || y === i, f)
1841
+ i = h, null !== r && (h ? r.length = h : r = null);
1842
+ else {
1843
+ const e = { instancePath: t + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {} };
1844
+ null === r ? r = [e] : r.push(e), i++;
1845
+ }
1846
+ if (p === i && (o = !0, l = 0), !o) {
1847
+ const e = { instancePath: t + "/minSize", schemaPath: "#/properties/minSize/oneOf", keyword: "oneOf", params: { passingSchemas: l } };
1848
+ return null === r ? r = [e] : r.push(e), i++, L.errors = r, !1;
1849
+ }
1850
+ i = s, null !== r && (s ? r.length = s : r = null), c = a === i;
1851
+ }
1852
+ else
1853
+ c = !0;
1854
+ }
1855
+ }
1856
+ }
1857
+ }
1858
+ }
1859
+ }
1860
+ }
1861
+ }
1862
+ } return L.errors = r, 0 === i; }
1863
+ function x(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
1864
+ if (!e || "object" != typeof e || Array.isArray(e))
1865
+ return x.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
1866
+ {
1867
+ const n = i;
1868
+ for (const n in e)
1869
+ if ("chunkIds" !== n && "minimize" !== n && "minimizer" !== n && "moduleIds" !== n && "removeAvailableModules" !== n && "runtimeChunk" !== n && "sideEffects" !== n && "splitChunks" !== n)
1870
+ return x.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } }], !1;
1871
+ if (n === i) {
1872
+ if (void 0 !== e.chunkIds) {
1873
+ let n = e.chunkIds;
1874
+ const a = i;
1875
+ if ("named" !== n && "deterministic" !== n)
1876
+ return x.errors = [{ instancePath: t + "/chunkIds", schemaPath: "#/properties/chunkIds/enum", keyword: "enum", params: {} }], !1;
1877
+ var o = a === i;
1878
+ }
1879
+ else
1880
+ o = !0;
1881
+ if (o) {
1882
+ if (void 0 !== e.minimize) {
1883
+ const n = i;
1884
+ if ("boolean" != typeof e.minimize)
1885
+ return x.errors = [{ instancePath: t + "/minimize", schemaPath: "#/properties/minimize/type", keyword: "type", params: { type: "boolean" } }], !1;
1886
+ o = n === i;
1887
+ }
1888
+ else
1889
+ o = !0;
1890
+ if (o) {
1891
+ if (void 0 !== e.minimizer) {
1892
+ let n = e.minimizer;
1893
+ const a = i;
1894
+ if (i === a) {
1895
+ if (!Array.isArray(n))
1896
+ return x.errors = [{ instancePath: t + "/minimizer", schemaPath: "#/properties/minimizer/type", keyword: "type", params: { type: "array" } }], !1;
1897
+ {
1898
+ const e = n.length;
1899
+ for (let a = 0; a < e; a++) {
1900
+ let e = n[a];
1901
+ const s = i, o = i;
1902
+ let p = !1;
1903
+ const c = i;
1904
+ if ("..." !== e) {
1905
+ const e = { instancePath: t + "/minimizer/" + a, schemaPath: "#/properties/minimizer/items/anyOf/0/enum", keyword: "enum", params: {} };
1906
+ null === r ? r = [e] : r.push(e), i++;
1907
+ }
1908
+ var l = c === i;
1909
+ if (p = p || l, !p) {
1910
+ const n = i;
1911
+ if (i == i)
1912
+ if (e && "object" == typeof e && !Array.isArray(e)) {
1913
+ let n;
1914
+ if (void 0 === e.apply && (n = "apply")) {
1915
+ const e = { instancePath: t + "/minimizer/" + a, schemaPath: "#/definitions/RspackPluginInstance/required", keyword: "required", params: { missingProperty: n } };
1916
+ null === r ? r = [e] : r.push(e), i++;
1917
+ }
1918
+ else if (void 0 !== e.apply && !(e.apply instanceof Function)) {
1919
+ const e = { instancePath: t + "/minimizer/" + a + "/apply", schemaPath: "#/definitions/RspackPluginInstance/properties/apply/instanceof", keyword: "instanceof", params: {} };
1920
+ null === r ? r = [e] : r.push(e), i++;
1921
+ }
1922
+ }
1923
+ else {
1924
+ const e = { instancePath: t + "/minimizer/" + a, schemaPath: "#/definitions/RspackPluginInstance/type", keyword: "type", params: { type: "object" } };
1925
+ null === r ? r = [e] : r.push(e), i++;
1926
+ }
1927
+ if (l = n === i, p = p || l, !p) {
1928
+ const n = i;
1929
+ if (!(e instanceof Function)) {
1930
+ const e = { instancePath: t + "/minimizer/" + a, schemaPath: "#/definitions/RspackPluginFunction/instanceof", keyword: "instanceof", params: {} };
1931
+ null === r ? r = [e] : r.push(e), i++;
1932
+ }
1933
+ l = n === i, p = p || l;
1934
+ }
1935
+ }
1936
+ if (!p) {
1937
+ const e = { instancePath: t + "/minimizer/" + a, schemaPath: "#/properties/minimizer/items/anyOf", keyword: "anyOf", params: {} };
1938
+ return null === r ? r = [e] : r.push(e), i++, x.errors = r, !1;
1939
+ }
1940
+ if (i = o, null !== r && (o ? r.length = o : r = null), s !== i)
1941
+ break;
1942
+ }
1943
+ }
1944
+ }
1945
+ o = a === i;
1946
+ }
1947
+ else
1948
+ o = !0;
1949
+ if (o) {
1950
+ if (void 0 !== e.moduleIds) {
1951
+ let n = e.moduleIds;
1952
+ const a = i;
1953
+ if ("named" !== n && "deterministic" !== n)
1954
+ return x.errors = [{ instancePath: t + "/moduleIds", schemaPath: "#/properties/moduleIds/enum", keyword: "enum", params: {} }], !1;
1955
+ o = a === i;
1956
+ }
1957
+ else
1958
+ o = !0;
1959
+ if (o) {
1960
+ if (void 0 !== e.removeAvailableModules) {
1961
+ const n = i;
1962
+ if ("boolean" != typeof e.removeAvailableModules)
1963
+ return x.errors = [{ instancePath: t + "/removeAvailableModules", schemaPath: "#/properties/removeAvailableModules/type", keyword: "type", params: { type: "boolean" } }], !1;
1964
+ o = n === i;
1965
+ }
1966
+ else
1967
+ o = !0;
1968
+ if (o) {
1969
+ if (void 0 !== e.runtimeChunk) {
1970
+ let n = e.runtimeChunk;
1971
+ const a = i, s = i;
1972
+ let l = !1;
1973
+ const h = i;
1974
+ if ("single" !== n && "multiple" !== n) {
1975
+ const e = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/0/enum", keyword: "enum", params: {} };
1976
+ null === r ? r = [e] : r.push(e), i++;
1977
+ }
1978
+ var p = h === i;
1979
+ if (l = l || p, !l) {
1980
+ const e = i;
1981
+ if ("boolean" != typeof n) {
1982
+ const e = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/1/type", keyword: "type", params: { type: "boolean" } };
1983
+ null === r ? r = [e] : r.push(e), i++;
1984
+ }
1985
+ if (p = e === i, l = l || p, !l) {
1986
+ const e = i;
1987
+ if (i === e)
1988
+ if (n && "object" == typeof n && !Array.isArray(n)) {
1989
+ const e = i;
1990
+ for (const e in n)
1991
+ if ("name" !== e) {
1992
+ const n = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: e } };
1993
+ null === r ? r = [n] : r.push(n), i++;
1994
+ break;
1995
+ }
1996
+ if (e === i && void 0 !== n.name) {
1997
+ let e = n.name;
1998
+ const a = i;
1999
+ let s = !1;
2000
+ const o = i;
2001
+ if ("string" != typeof e) {
2002
+ const e = { instancePath: t + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf/0/type", keyword: "type", params: { type: "string" } };
2003
+ null === r ? r = [e] : r.push(e), i++;
2004
+ }
2005
+ var c = o === i;
2006
+ if (s = s || c, !s) {
2007
+ const n = i;
2008
+ if (!(e instanceof Function)) {
2009
+ const e = { instancePath: t + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf/1/instanceof", keyword: "instanceof", params: {} };
2010
+ null === r ? r = [e] : r.push(e), i++;
2011
+ }
2012
+ c = n === i, s = s || c;
2013
+ }
2014
+ if (s)
2015
+ i = a, null !== r && (a ? r.length = a : r = null);
2016
+ else {
2017
+ const e = { instancePath: t + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf", keyword: "anyOf", params: {} };
2018
+ null === r ? r = [e] : r.push(e), i++;
2019
+ }
2020
+ }
2021
+ }
2022
+ else {
2023
+ const e = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/type", keyword: "type", params: { type: "object" } };
2024
+ null === r ? r = [e] : r.push(e), i++;
2025
+ }
2026
+ p = e === i, l = l || p;
2027
+ }
2028
+ }
2029
+ if (!l) {
2030
+ const e = { instancePath: t + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf", keyword: "anyOf", params: {} };
2031
+ return null === r ? r = [e] : r.push(e), i++, x.errors = r, !1;
2032
+ }
2033
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
2034
+ }
2035
+ else
2036
+ o = !0;
2037
+ if (o) {
2038
+ if (void 0 !== e.sideEffects) {
2039
+ let n = e.sideEffects;
2040
+ const a = i, s = i;
2041
+ let l = !1;
2042
+ const p = i;
2043
+ if ("flag" !== n) {
2044
+ const e = { instancePath: t + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf/0/enum", keyword: "enum", params: {} };
2045
+ null === r ? r = [e] : r.push(e), i++;
2046
+ }
2047
+ var h = p === i;
2048
+ if (l = l || h, !l) {
2049
+ const e = i;
2050
+ if ("boolean" != typeof n) {
2051
+ const e = { instancePath: t + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf/1/type", keyword: "type", params: { type: "boolean" } };
2052
+ null === r ? r = [e] : r.push(e), i++;
2053
+ }
2054
+ h = e === i, l = l || h;
2055
+ }
2056
+ if (!l) {
2057
+ const e = { instancePath: t + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf", keyword: "anyOf", params: {} };
2058
+ return null === r ? r = [e] : r.push(e), i++, x.errors = r, !1;
2059
+ }
2060
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
2061
+ }
2062
+ else
2063
+ o = !0;
2064
+ if (o)
2065
+ if (void 0 !== e.splitChunks) {
2066
+ let n = e.splitChunks;
2067
+ const a = i, l = i;
2068
+ let p = !1;
2069
+ const c = i;
2070
+ if (!1 !== n) {
2071
+ const e = { instancePath: t + "/splitChunks", schemaPath: "#/properties/splitChunks/anyOf/0/enum", keyword: "enum", params: {} };
2072
+ null === r ? r = [e] : r.push(e), i++;
2073
+ }
2074
+ var f = c === i;
2075
+ if (p = p || f, !p) {
2076
+ const a = i;
2077
+ L(n, { instancePath: t + "/splitChunks", parentData: e, parentDataProperty: "splitChunks", rootData: s }) || (r = null === r ? L.errors : r.concat(L.errors), i = r.length), f = a === i, p = p || f;
2078
+ }
2079
+ if (!p) {
2080
+ const e = { instancePath: t + "/splitChunks", schemaPath: "#/properties/splitChunks/anyOf", keyword: "anyOf", params: {} };
2081
+ return null === r ? r = [e] : r.push(e), i++, x.errors = r, !1;
2082
+ }
2083
+ i = l, null !== r && (l ? r.length = l : r = null), o = a === i;
2084
+ }
2085
+ else
2086
+ o = !0;
2087
+ }
2088
+ }
2089
+ }
2090
+ }
2091
+ }
2092
+ }
2093
+ }
2094
+ }
2095
+ } return x.errors = r, 0 === i; }
2096
+ const F = { assetModuleFilename: { $ref: "#/definitions/AssetModuleFilename" }, auxiliaryComment: { oneOf: [{ $ref: "#/definitions/AuxiliaryComment" }] }, chunkFilename: { $ref: "#/definitions/ChunkFilename" }, cssChunkFilename: { $ref: "#/definitions/CssChunkFilename" }, cssFilename: { $ref: "#/definitions/CssFilename" }, enabledLibraryTypes: { $ref: "#/definitions/EnabledLibraryTypes" }, filename: { $ref: "#/definitions/Filename" }, globalObject: { $ref: "#/definitions/GlobalObject" }, importFunctionName: { $ref: "#/definitions/ImportFunctionName" }, library: { $ref: "#/definitions/Library" }, libraryExport: { oneOf: [{ $ref: "#/definitions/LibraryExport" }] }, libraryTarget: { oneOf: [{ $ref: "#/definitions/LibraryType" }] }, module: { $ref: "#/definitions/OutputModule" }, path: { $ref: "#/definitions/Path" }, publicPath: { $ref: "#/definitions/PublicPath" }, strictModuleErrorHandling: { $ref: "#/definitions/StrictModuleErrorHandling" }, umdNamedDefine: { oneOf: [{ $ref: "#/definitions/UmdNamedDefine" }] }, uniqueName: { $ref: "#/definitions/UniqueName" } };
2097
+ function R(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; if ("string" != typeof e) {
2098
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" } };
2099
+ null === r ? r = [e] : r.push(e), i++;
2100
+ } var c = p === i; if (l = l || c, !l) {
2101
+ const n = i;
2102
+ if (i == i)
2103
+ if (e && "object" == typeof e && !Array.isArray(e)) {
2104
+ const n = i;
2105
+ for (const n in e)
2106
+ if ("amd" !== n && "commonjs" !== n && "commonjs2" !== n && "root" !== n) {
2107
+ const e = { instancePath: t, schemaPath: "#/definitions/LibraryCustomUmdCommentObject/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } };
2108
+ null === r ? r = [e] : r.push(e), i++;
2109
+ break;
2110
+ }
2111
+ if (n === i) {
2112
+ if (void 0 !== e.amd) {
2113
+ const n = i;
2114
+ if ("string" != typeof e.amd) {
2115
+ const e = { instancePath: t + "/amd", schemaPath: "#/definitions/LibraryCustomUmdCommentObject/properties/amd/type", keyword: "type", params: { type: "string" } };
2116
+ null === r ? r = [e] : r.push(e), i++;
2117
+ }
2118
+ var h = n === i;
2119
+ }
2120
+ else
2121
+ h = !0;
2122
+ if (h) {
2123
+ if (void 0 !== e.commonjs) {
2124
+ const n = i;
2125
+ if ("string" != typeof e.commonjs) {
2126
+ const e = { instancePath: t + "/commonjs", schemaPath: "#/definitions/LibraryCustomUmdCommentObject/properties/commonjs/type", keyword: "type", params: { type: "string" } };
2127
+ null === r ? r = [e] : r.push(e), i++;
2128
+ }
2129
+ h = n === i;
2130
+ }
2131
+ else
2132
+ h = !0;
2133
+ if (h) {
2134
+ if (void 0 !== e.commonjs2) {
2135
+ const n = i;
2136
+ if ("string" != typeof e.commonjs2) {
2137
+ const e = { instancePath: t + "/commonjs2", schemaPath: "#/definitions/LibraryCustomUmdCommentObject/properties/commonjs2/type", keyword: "type", params: { type: "string" } };
2138
+ null === r ? r = [e] : r.push(e), i++;
2139
+ }
2140
+ h = n === i;
2141
+ }
2142
+ else
2143
+ h = !0;
2144
+ if (h)
2145
+ if (void 0 !== e.root) {
2146
+ const n = i;
2147
+ if ("string" != typeof e.root) {
2148
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdCommentObject/properties/root/type", keyword: "type", params: { type: "string" } };
2149
+ null === r ? r = [e] : r.push(e), i++;
2150
+ }
2151
+ h = n === i;
2152
+ }
2153
+ else
2154
+ h = !0;
2155
+ }
2156
+ }
2157
+ }
2158
+ }
2159
+ else {
2160
+ const e = { instancePath: t, schemaPath: "#/definitions/LibraryCustomUmdCommentObject/type", keyword: "type", params: { type: "object" } };
2161
+ null === r ? r = [e] : r.push(e), i++;
2162
+ }
2163
+ c = n === i, l = l || c;
2164
+ } if (!l) {
2165
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
2166
+ return null === r ? r = [e] : r.push(e), i++, R.errors = r, !1;
2167
+ } return i = o, null !== r && (o ? r.length = o : r = null), R.errors = r, 0 === i; }
2168
+ function z(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1, p = null; const c = i, h = i; let f = !1; const y = i; if (i === y)
2169
+ if ("string" == typeof e) {
2170
+ if (e.length < 1) {
2171
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {} };
2172
+ null === r ? r = [e] : r.push(e), i++;
2173
+ }
2174
+ }
2175
+ else {
2176
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" } };
2177
+ null === r ? r = [e] : r.push(e), i++;
2178
+ } var u = y === i; if (f = f || u, !f) {
2179
+ const n = i;
2180
+ if (!(e instanceof Function)) {
2181
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {} };
2182
+ null === r ? r = [e] : r.push(e), i++;
2183
+ }
2184
+ u = n === i, f = f || u;
2185
+ } if (f)
2186
+ i = h, null !== r && (h ? r.length = h : r = null);
2187
+ else {
2188
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {} };
2189
+ null === r ? r = [e] : r.push(e), i++;
2190
+ } if (c === i && (l = !0, p = 0), !l) {
2191
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
2192
+ return null === r ? r = [e] : r.push(e), i++, z.errors = r, !1;
2193
+ } return i = o, null !== r && (o ? r.length = o : r = null), z.errors = r, 0 === i; }
2194
+ function E(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1, p = null; const c = i, h = i; let f = !1; const y = i; if (i === y)
2195
+ if ("string" == typeof e) {
2196
+ if (e.length < 1) {
2197
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {} };
2198
+ null === r ? r = [e] : r.push(e), i++;
2199
+ }
2200
+ }
2201
+ else {
2202
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" } };
2203
+ null === r ? r = [e] : r.push(e), i++;
2204
+ } var u = y === i; if (f = f || u, !f) {
2205
+ const n = i;
2206
+ if (!(e instanceof Function)) {
2207
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {} };
2208
+ null === r ? r = [e] : r.push(e), i++;
2209
+ }
2210
+ u = n === i, f = f || u;
2211
+ } if (f)
2212
+ i = h, null !== r && (h ? r.length = h : r = null);
2213
+ else {
2214
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {} };
2215
+ null === r ? r = [e] : r.push(e), i++;
2216
+ } if (c === i && (l = !0, p = 0), !l) {
2217
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
2218
+ return null === r ? r = [e] : r.push(e), i++, E.errors = r, !1;
2219
+ } return i = o, null !== r && (o ? r.length = o : r = null), E.errors = r, 0 === i; }
2220
+ function T(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1, p = null; const c = i, h = i; let f = !1; const y = i; if (i === y)
2221
+ if ("string" == typeof e) {
2222
+ if (e.length < 1) {
2223
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {} };
2224
+ null === r ? r = [e] : r.push(e), i++;
2225
+ }
2226
+ }
2227
+ else {
2228
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" } };
2229
+ null === r ? r = [e] : r.push(e), i++;
2230
+ } var u = y === i; if (f = f || u, !f) {
2231
+ const n = i;
2232
+ if (!(e instanceof Function)) {
2233
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {} };
2234
+ null === r ? r = [e] : r.push(e), i++;
2235
+ }
2236
+ u = n === i, f = f || u;
2237
+ } if (f)
2238
+ i = h, null !== r && (h ? r.length = h : r = null);
2239
+ else {
2240
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {} };
2241
+ null === r ? r = [e] : r.push(e), i++;
2242
+ } if (c === i && (l = !0, p = 0), !l) {
2243
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
2244
+ return null === r ? r = [e] : r.push(e), i++, T.errors = r, !1;
2245
+ } return i = o, null !== r && (o ? r.length = o : r = null), T.errors = r, 0 === i; }
2246
+ function I(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
2247
+ if (!Array.isArray(e))
2248
+ return I.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "array" } }], !1;
2249
+ {
2250
+ const n = e.length;
2251
+ for (let a = 0; a < n; a++) {
2252
+ let n = e[a];
2253
+ const s = i, l = i;
2254
+ let p = !1;
2255
+ const c = i;
2256
+ if ("var" !== n && "module" !== n && "assign" !== n && "assign-properties" !== n && "this" !== n && "window" !== n && "self" !== n && "global" !== n && "commonjs" !== n && "commonjs2" !== n && "commonjs-module" !== n && "commonjs-static" !== n && "amd" !== n && "amd-require" !== n && "umd" !== n && "umd2" !== n && "jsonp" !== n && "system" !== n) {
2257
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {} };
2258
+ null === r ? r = [e] : r.push(e), i++;
2259
+ }
2260
+ var o = c === i;
2261
+ if (p = p || o, !p) {
2262
+ const e = i;
2263
+ if ("string" != typeof n) {
2264
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" } };
2265
+ null === r ? r = [e] : r.push(e), i++;
2266
+ }
2267
+ o = e === i, p = p || o;
2268
+ }
2269
+ if (!p) {
2270
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {} };
2271
+ return null === r ? r = [e] : r.push(e), i++, I.errors = r, !1;
2272
+ }
2273
+ if (i = l, null !== r && (l ? r.length = l : r = null), s !== i)
2274
+ break;
2275
+ }
2276
+ }
2277
+ } return I.errors = r, 0 === i; }
2278
+ function $(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1, p = null; const c = i, h = i; let f = !1; const y = i; if (i === y)
2279
+ if ("string" == typeof e) {
2280
+ if (e.length < 1) {
2281
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {} };
2282
+ null === r ? r = [e] : r.push(e), i++;
2283
+ }
2284
+ }
2285
+ else {
2286
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" } };
2287
+ null === r ? r = [e] : r.push(e), i++;
2288
+ } var u = y === i; if (f = f || u, !f) {
2289
+ const n = i;
2290
+ if (!(e instanceof Function)) {
2291
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {} };
2292
+ null === r ? r = [e] : r.push(e), i++;
2293
+ }
2294
+ u = n === i, f = f || u;
2295
+ } if (f)
2296
+ i = h, null !== r && (h ? r.length = h : r = null);
2297
+ else {
2298
+ const e = { instancePath: t, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {} };
2299
+ null === r ? r = [e] : r.push(e), i++;
2300
+ } if (c === i && (l = !0, p = 0), !l) {
2301
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
2302
+ return null === r ? r = [e] : r.push(e), i++, $.errors = r, !1;
2303
+ } return i = o, null !== r && (o ? r.length = o : r = null), $.errors = r, 0 === i; }
2304
+ function N(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; if (i === p)
2305
+ if (Array.isArray(e))
2306
+ if (e.length < 1) {
2307
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 } };
2308
+ null === r ? r = [e] : r.push(e), i++;
2309
+ }
2310
+ else {
2311
+ const n = e.length;
2312
+ for (let a = 0; a < n; a++) {
2313
+ let n = e[a];
2314
+ const s = i;
2315
+ if (i === s)
2316
+ if ("string" == typeof n) {
2317
+ if (n.length < 1) {
2318
+ const e = { instancePath: t + "/" + a, schemaPath: "#/anyOf/0/items/minLength", keyword: "minLength", params: {} };
2319
+ null === r ? r = [e] : r.push(e), i++;
2320
+ }
2321
+ }
2322
+ else {
2323
+ const e = { instancePath: t + "/" + a, schemaPath: "#/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
2324
+ null === r ? r = [e] : r.push(e), i++;
2325
+ }
2326
+ if (s !== i)
2327
+ break;
2328
+ }
2329
+ }
2330
+ else {
2331
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "array" } };
2332
+ null === r ? r = [e] : r.push(e), i++;
2333
+ } var c = p === i; if (l = l || c, !l) {
2334
+ const n = i;
2335
+ if (i === n)
2336
+ if ("string" == typeof e) {
2337
+ if (e.length < 1) {
2338
+ const e = { instancePath: t, schemaPath: "#/anyOf/1/minLength", keyword: "minLength", params: {} };
2339
+ null === r ? r = [e] : r.push(e), i++;
2340
+ }
2341
+ }
2342
+ else {
2343
+ const e = { instancePath: t, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "string" } };
2344
+ null === r ? r = [e] : r.push(e), i++;
2345
+ }
2346
+ if (c = n === i, l = l || c, !l) {
2347
+ const n = i;
2348
+ if (i == i)
2349
+ if (e && "object" == typeof e && !Array.isArray(e)) {
2350
+ const n = i;
2351
+ for (const n in e)
2352
+ if ("amd" !== n && "commonjs" !== n && "root" !== n) {
2353
+ const e = { instancePath: t, schemaPath: "#/definitions/LibraryCustomUmdObject/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } };
2354
+ null === r ? r = [e] : r.push(e), i++;
2355
+ break;
2356
+ }
2357
+ if (n === i) {
2358
+ if (void 0 !== e.amd) {
2359
+ let n = e.amd;
2360
+ const a = i;
2361
+ if (i === a)
2362
+ if ("string" == typeof n) {
2363
+ if (n.length < 1) {
2364
+ const e = { instancePath: t + "/amd", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/amd/minLength", keyword: "minLength", params: {} };
2365
+ null === r ? r = [e] : r.push(e), i++;
2366
+ }
2367
+ }
2368
+ else {
2369
+ const e = { instancePath: t + "/amd", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/amd/type", keyword: "type", params: { type: "string" } };
2370
+ null === r ? r = [e] : r.push(e), i++;
2371
+ }
2372
+ var h = a === i;
2373
+ }
2374
+ else
2375
+ h = !0;
2376
+ if (h) {
2377
+ if (void 0 !== e.commonjs) {
2378
+ let n = e.commonjs;
2379
+ const a = i;
2380
+ if (i === a)
2381
+ if ("string" == typeof n) {
2382
+ if (n.length < 1) {
2383
+ const e = { instancePath: t + "/commonjs", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/commonjs/minLength", keyword: "minLength", params: {} };
2384
+ null === r ? r = [e] : r.push(e), i++;
2385
+ }
2386
+ }
2387
+ else {
2388
+ const e = { instancePath: t + "/commonjs", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/commonjs/type", keyword: "type", params: { type: "string" } };
2389
+ null === r ? r = [e] : r.push(e), i++;
2390
+ }
2391
+ h = a === i;
2392
+ }
2393
+ else
2394
+ h = !0;
2395
+ if (h)
2396
+ if (void 0 !== e.root) {
2397
+ let n = e.root;
2398
+ const a = i, s = i;
2399
+ let o = !1;
2400
+ const l = i;
2401
+ if (i === l)
2402
+ if (Array.isArray(n)) {
2403
+ const e = n.length;
2404
+ for (let a = 0; a < e; a++) {
2405
+ let e = n[a];
2406
+ const s = i;
2407
+ if (i === s)
2408
+ if ("string" == typeof e) {
2409
+ if (e.length < 1) {
2410
+ const e = { instancePath: t + "/root/" + a, schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/0/items/minLength", keyword: "minLength", params: {} };
2411
+ null === r ? r = [e] : r.push(e), i++;
2412
+ }
2413
+ }
2414
+ else {
2415
+ const e = { instancePath: t + "/root/" + a, schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
2416
+ null === r ? r = [e] : r.push(e), i++;
2417
+ }
2418
+ if (s !== i)
2419
+ break;
2420
+ }
2421
+ }
2422
+ else {
2423
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/0/type", keyword: "type", params: { type: "array" } };
2424
+ null === r ? r = [e] : r.push(e), i++;
2425
+ }
2426
+ var f = l === i;
2427
+ if (o = o || f, !o) {
2428
+ const e = i;
2429
+ if (i === e)
2430
+ if ("string" == typeof n) {
2431
+ if (n.length < 1) {
2432
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/1/minLength", keyword: "minLength", params: {} };
2433
+ null === r ? r = [e] : r.push(e), i++;
2434
+ }
2435
+ }
2436
+ else {
2437
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf/1/type", keyword: "type", params: { type: "string" } };
2438
+ null === r ? r = [e] : r.push(e), i++;
2439
+ }
2440
+ f = e === i, o = o || f;
2441
+ }
2442
+ if (o)
2443
+ i = s, null !== r && (s ? r.length = s : r = null);
2444
+ else {
2445
+ const e = { instancePath: t + "/root", schemaPath: "#/definitions/LibraryCustomUmdObject/properties/root/anyOf", keyword: "anyOf", params: {} };
2446
+ null === r ? r = [e] : r.push(e), i++;
2447
+ }
2448
+ h = a === i;
2449
+ }
2450
+ else
2451
+ h = !0;
2452
+ }
2453
+ }
2454
+ }
2455
+ else {
2456
+ const e = { instancePath: t, schemaPath: "#/definitions/LibraryCustomUmdObject/type", keyword: "type", params: { type: "object" } };
2457
+ null === r ? r = [e] : r.push(e), i++;
2458
+ }
2459
+ c = n === i, l = l || c;
2460
+ }
2461
+ } if (!l) {
2462
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
2463
+ return null === r ? r = [e] : r.push(e), i++, N.errors = r, !1;
2464
+ } return i = o, null !== r && (o ? r.length = o : r = null), N.errors = r, 0 === i; }
2465
+ function q(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
2466
+ if (!e || "object" != typeof e || Array.isArray(e))
2467
+ return q.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
2468
+ {
2469
+ let n;
2470
+ if (void 0 === e.type && (n = "type"))
2471
+ return q.errors = [{ instancePath: t, schemaPath: "#/required", keyword: "required", params: { missingProperty: n } }], !1;
2472
+ {
2473
+ const n = i;
2474
+ for (const n in e)
2475
+ if ("auxiliaryComment" !== n && "export" !== n && "name" !== n && "type" !== n && "umdNamedDefine" !== n)
2476
+ return q.errors = [{ instancePath: t, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } }], !1;
2477
+ if (n === i) {
2478
+ if (void 0 !== e.auxiliaryComment) {
2479
+ const n = i;
2480
+ R(e.auxiliaryComment, { instancePath: t + "/auxiliaryComment", parentData: e, parentDataProperty: "auxiliaryComment", rootData: s }) || (r = null === r ? R.errors : r.concat(R.errors), i = r.length);
2481
+ var o = n === i;
2482
+ }
2483
+ else
2484
+ o = !0;
2485
+ if (o) {
2486
+ if (void 0 !== e.export) {
2487
+ let n = e.export;
2488
+ const a = i, s = i;
2489
+ let p = !1;
2490
+ const c = i;
2491
+ if (i === c)
2492
+ if (Array.isArray(n)) {
2493
+ const e = n.length;
2494
+ for (let a = 0; a < e; a++) {
2495
+ let e = n[a];
2496
+ const s = i;
2497
+ if (i === s)
2498
+ if ("string" == typeof e) {
2499
+ if (e.length < 1) {
2500
+ const e = { instancePath: t + "/export/" + a, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/minLength", keyword: "minLength", params: {} };
2501
+ null === r ? r = [e] : r.push(e), i++;
2502
+ }
2503
+ }
2504
+ else {
2505
+ const e = { instancePath: t + "/export/" + a, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
2506
+ null === r ? r = [e] : r.push(e), i++;
2507
+ }
2508
+ if (s !== i)
2509
+ break;
2510
+ }
2511
+ }
2512
+ else {
2513
+ const e = { instancePath: t + "/export", schemaPath: "#/definitions/LibraryExport/anyOf/0/type", keyword: "type", params: { type: "array" } };
2514
+ null === r ? r = [e] : r.push(e), i++;
2515
+ }
2516
+ var l = c === i;
2517
+ if (p = p || l, !p) {
2518
+ const e = i;
2519
+ if (i === e)
2520
+ if ("string" == typeof n) {
2521
+ if (n.length < 1) {
2522
+ const e = { instancePath: t + "/export", schemaPath: "#/definitions/LibraryExport/anyOf/1/minLength", keyword: "minLength", params: {} };
2523
+ null === r ? r = [e] : r.push(e), i++;
2524
+ }
2525
+ }
2526
+ else {
2527
+ const e = { instancePath: t + "/export", schemaPath: "#/definitions/LibraryExport/anyOf/1/type", keyword: "type", params: { type: "string" } };
2528
+ null === r ? r = [e] : r.push(e), i++;
2529
+ }
2530
+ l = e === i, p = p || l;
2531
+ }
2532
+ if (!p) {
2533
+ const e = { instancePath: t + "/export", schemaPath: "#/definitions/LibraryExport/anyOf", keyword: "anyOf", params: {} };
2534
+ return null === r ? r = [e] : r.push(e), i++, q.errors = r, !1;
2535
+ }
2536
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
2537
+ }
2538
+ else
2539
+ o = !0;
2540
+ if (o) {
2541
+ if (void 0 !== e.name) {
2542
+ const n = i;
2543
+ N(e.name, { instancePath: t + "/name", parentData: e, parentDataProperty: "name", rootData: s }) || (r = null === r ? N.errors : r.concat(N.errors), i = r.length), o = n === i;
2544
+ }
2545
+ else
2546
+ o = !0;
2547
+ if (o) {
2548
+ if (void 0 !== e.type) {
2549
+ let n = e.type;
2550
+ const a = i, s = i;
2551
+ let l = !1;
2552
+ const c = i;
2553
+ if ("var" !== n && "module" !== n && "assign" !== n && "assign-properties" !== n && "this" !== n && "window" !== n && "self" !== n && "global" !== n && "commonjs" !== n && "commonjs2" !== n && "commonjs-module" !== n && "commonjs-static" !== n && "amd" !== n && "amd-require" !== n && "umd" !== n && "umd2" !== n && "jsonp" !== n && "system" !== n) {
2554
+ const e = { instancePath: t + "/type", schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {} };
2555
+ null === r ? r = [e] : r.push(e), i++;
2556
+ }
2557
+ var p = c === i;
2558
+ if (l = l || p, !l) {
2559
+ const e = i;
2560
+ if ("string" != typeof n) {
2561
+ const e = { instancePath: t + "/type", schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" } };
2562
+ null === r ? r = [e] : r.push(e), i++;
2563
+ }
2564
+ p = e === i, l = l || p;
2565
+ }
2566
+ if (!l) {
2567
+ const e = { instancePath: t + "/type", schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {} };
2568
+ return null === r ? r = [e] : r.push(e), i++, q.errors = r, !1;
2569
+ }
2570
+ i = s, null !== r && (s ? r.length = s : r = null), o = a === i;
2571
+ }
2572
+ else
2573
+ o = !0;
2574
+ if (o)
2575
+ if (void 0 !== e.umdNamedDefine) {
2576
+ const n = i;
2577
+ if ("boolean" != typeof e.umdNamedDefine)
2578
+ return q.errors = [{ instancePath: t + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" } }], !1;
2579
+ o = n === i;
2580
+ }
2581
+ else
2582
+ o = !0;
2583
+ }
2584
+ }
2585
+ }
2586
+ }
2587
+ }
2588
+ }
2589
+ } return q.errors = r, 0 === i; }
2590
+ function G(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; N(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? N.errors : r.concat(N.errors), i = r.length); var c = p === i; if (l = l || c, !l) {
2591
+ const o = i;
2592
+ q(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? q.errors : r.concat(q.errors), i = r.length), c = o === i, l = l || c;
2593
+ } if (!l) {
2594
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
2595
+ return null === r ? r = [e] : r.push(e), i++, G.errors = r, !1;
2596
+ } return i = o, null !== r && (o ? r.length = o : r = null), G.errors = r, 0 === i; }
2597
+ function U(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1; const p = i; if ("auto" !== e) {
2598
+ const e = { instancePath: t, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {} };
2599
+ null === r ? r = [e] : r.push(e), i++;
2600
+ } var c = p === i; if (l = l || c, !l) {
2601
+ const n = i, a = i;
2602
+ let s = !1;
2603
+ const o = i;
2604
+ if ("string" != typeof e) {
2605
+ const e = { instancePath: t, schemaPath: "#/definitions/RawPublicPath/anyOf/0/type", keyword: "type", params: { type: "string" } };
2606
+ null === r ? r = [e] : r.push(e), i++;
2607
+ }
2608
+ if (s = s || o === i, s)
2609
+ i = a, null !== r && (a ? r.length = a : r = null);
2610
+ else {
2611
+ const e = { instancePath: t, schemaPath: "#/definitions/RawPublicPath/anyOf", keyword: "anyOf", params: {} };
2612
+ null === r ? r = [e] : r.push(e), i++;
2613
+ }
2614
+ c = n === i, l = l || c;
2615
+ } if (!l) {
2616
+ const e = { instancePath: t, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
2617
+ return null === r ? r = [e] : r.push(e), i++, U.errors = r, !1;
2618
+ } return i = o, null !== r && (o ? r.length = o : r = null), U.errors = r, 0 === i; }
2619
+ function M(e, { instancePath: n = "", parentData: a, parentDataProperty: s, rootData: r = e } = {}) { let i = null, o = 0; if (0 === o) {
2620
+ if (!e || "object" != typeof e || Array.isArray(e))
2621
+ return M.errors = [{ instancePath: n, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
2622
+ {
2623
+ const a = o;
2624
+ for (const a in e)
2625
+ if (!t.call(F, a))
2626
+ return M.errors = [{ instancePath: n, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a } }], !1;
2627
+ if (a === o) {
2628
+ if (void 0 !== e.assetModuleFilename) {
2629
+ const t = o, a = o;
2630
+ let s = !1;
2631
+ const r = o;
2632
+ if ("string" != typeof e.assetModuleFilename) {
2633
+ const e = { instancePath: n + "/assetModuleFilename", schemaPath: "#/definitions/AssetModuleFilename/anyOf/0/type", keyword: "type", params: { type: "string" } };
2634
+ null === i ? i = [e] : i.push(e), o++;
2635
+ }
2636
+ if (s = s || r === o, !s) {
2637
+ const e = { instancePath: n + "/assetModuleFilename", schemaPath: "#/definitions/AssetModuleFilename/anyOf", keyword: "anyOf", params: {} };
2638
+ return null === i ? i = [e] : i.push(e), o++, M.errors = i, !1;
2639
+ }
2640
+ o = a, null !== i && (a ? i.length = a : i = null);
2641
+ var l = t === o;
2642
+ }
2643
+ else
2644
+ l = !0;
2645
+ if (l) {
2646
+ if (void 0 !== e.auxiliaryComment) {
2647
+ const t = o, a = o;
2648
+ let s = !1, p = null;
2649
+ const c = o;
2650
+ if (R(e.auxiliaryComment, { instancePath: n + "/auxiliaryComment", parentData: e, parentDataProperty: "auxiliaryComment", rootData: r }) || (i = null === i ? R.errors : i.concat(R.errors), o = i.length), c === o && (s = !0, p = 0), !s) {
2651
+ const e = { instancePath: n + "/auxiliaryComment", schemaPath: "#/properties/auxiliaryComment/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
2652
+ return null === i ? i = [e] : i.push(e), o++, M.errors = i, !1;
2653
+ }
2654
+ o = a, null !== i && (a ? i.length = a : i = null), l = t === o;
2655
+ }
2656
+ else
2657
+ l = !0;
2658
+ if (l) {
2659
+ if (void 0 !== e.chunkFilename) {
2660
+ const t = o;
2661
+ z(e.chunkFilename, { instancePath: n + "/chunkFilename", parentData: e, parentDataProperty: "chunkFilename", rootData: r }) || (i = null === i ? z.errors : i.concat(z.errors), o = i.length), l = t === o;
2662
+ }
2663
+ else
2664
+ l = !0;
2665
+ if (l) {
2666
+ if (void 0 !== e.cssChunkFilename) {
2667
+ const t = o;
2668
+ E(e.cssChunkFilename, { instancePath: n + "/cssChunkFilename", parentData: e, parentDataProperty: "cssChunkFilename", rootData: r }) || (i = null === i ? E.errors : i.concat(E.errors), o = i.length), l = t === o;
2669
+ }
2670
+ else
2671
+ l = !0;
2672
+ if (l) {
2673
+ if (void 0 !== e.cssFilename) {
2674
+ const t = o;
2675
+ T(e.cssFilename, { instancePath: n + "/cssFilename", parentData: e, parentDataProperty: "cssFilename", rootData: r }) || (i = null === i ? T.errors : i.concat(T.errors), o = i.length), l = t === o;
2676
+ }
2677
+ else
2678
+ l = !0;
2679
+ if (l) {
2680
+ if (void 0 !== e.enabledLibraryTypes) {
2681
+ const t = o;
2682
+ I(e.enabledLibraryTypes, { instancePath: n + "/enabledLibraryTypes", parentData: e, parentDataProperty: "enabledLibraryTypes", rootData: r }) || (i = null === i ? I.errors : i.concat(I.errors), o = i.length), l = t === o;
2683
+ }
2684
+ else
2685
+ l = !0;
2686
+ if (l) {
2687
+ if (void 0 !== e.filename) {
2688
+ const t = o;
2689
+ $(e.filename, { instancePath: n + "/filename", parentData: e, parentDataProperty: "filename", rootData: r }) || (i = null === i ? $.errors : i.concat($.errors), o = i.length), l = t === o;
2690
+ }
2691
+ else
2692
+ l = !0;
2693
+ if (l) {
2694
+ if (void 0 !== e.globalObject) {
2695
+ let t = e.globalObject;
2696
+ const a = o;
2697
+ if (o == o) {
2698
+ if ("string" != typeof t)
2699
+ return M.errors = [{ instancePath: n + "/globalObject", schemaPath: "#/definitions/GlobalObject/type", keyword: "type", params: { type: "string" } }], !1;
2700
+ if (t.length < 1)
2701
+ return M.errors = [{ instancePath: n + "/globalObject", schemaPath: "#/definitions/GlobalObject/minLength", keyword: "minLength", params: {} }], !1;
2702
+ }
2703
+ l = a === o;
2704
+ }
2705
+ else
2706
+ l = !0;
2707
+ if (l) {
2708
+ if (void 0 !== e.importFunctionName) {
2709
+ const t = o;
2710
+ if ("string" != typeof e.importFunctionName)
2711
+ return M.errors = [{ instancePath: n + "/importFunctionName", schemaPath: "#/definitions/ImportFunctionName/type", keyword: "type", params: { type: "string" } }], !1;
2712
+ l = t === o;
2713
+ }
2714
+ else
2715
+ l = !0;
2716
+ if (l) {
2717
+ if (void 0 !== e.library) {
2718
+ const t = o;
2719
+ G(e.library, { instancePath: n + "/library", parentData: e, parentDataProperty: "library", rootData: r }) || (i = null === i ? G.errors : i.concat(G.errors), o = i.length), l = t === o;
2720
+ }
2721
+ else
2722
+ l = !0;
2723
+ if (l) {
2724
+ if (void 0 !== e.libraryExport) {
2725
+ let t = e.libraryExport;
2726
+ const a = o, s = o;
2727
+ let r = !1, c = null;
2728
+ const h = o, f = o;
2729
+ let y = !1;
2730
+ const u = o;
2731
+ if (o === u)
2732
+ if (Array.isArray(t)) {
2733
+ const e = t.length;
2734
+ for (let a = 0; a < e; a++) {
2735
+ let e = t[a];
2736
+ const s = o;
2737
+ if (o === s)
2738
+ if ("string" == typeof e) {
2739
+ if (e.length < 1) {
2740
+ const e = { instancePath: n + "/libraryExport/" + a, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/minLength", keyword: "minLength", params: {} };
2741
+ null === i ? i = [e] : i.push(e), o++;
2742
+ }
2743
+ }
2744
+ else {
2745
+ const e = { instancePath: n + "/libraryExport/" + a, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
2746
+ null === i ? i = [e] : i.push(e), o++;
2747
+ }
2748
+ if (s !== o)
2749
+ break;
2750
+ }
2751
+ }
2752
+ else {
2753
+ const e = { instancePath: n + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/0/type", keyword: "type", params: { type: "array" } };
2754
+ null === i ? i = [e] : i.push(e), o++;
2755
+ }
2756
+ var p = u === o;
2757
+ if (y = y || p, !y) {
2758
+ const e = o;
2759
+ if (o === e)
2760
+ if ("string" == typeof t) {
2761
+ if (t.length < 1) {
2762
+ const e = { instancePath: n + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/minLength", keyword: "minLength", params: {} };
2763
+ null === i ? i = [e] : i.push(e), o++;
2764
+ }
2765
+ }
2766
+ else {
2767
+ const e = { instancePath: n + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/type", keyword: "type", params: { type: "string" } };
2768
+ null === i ? i = [e] : i.push(e), o++;
2769
+ }
2770
+ p = e === o, y = y || p;
2771
+ }
2772
+ if (y)
2773
+ o = f, null !== i && (f ? i.length = f : i = null);
2774
+ else {
2775
+ const e = { instancePath: n + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf", keyword: "anyOf", params: {} };
2776
+ null === i ? i = [e] : i.push(e), o++;
2777
+ }
2778
+ if (h === o && (r = !0, c = 0), !r) {
2779
+ const e = { instancePath: n + "/libraryExport", schemaPath: "#/properties/libraryExport/oneOf", keyword: "oneOf", params: { passingSchemas: c } };
2780
+ return null === i ? i = [e] : i.push(e), o++, M.errors = i, !1;
2781
+ }
2782
+ o = s, null !== i && (s ? i.length = s : i = null), l = a === o;
2783
+ }
2784
+ else
2785
+ l = !0;
2786
+ if (l) {
2787
+ if (void 0 !== e.libraryTarget) {
2788
+ let t = e.libraryTarget;
2789
+ const a = o, s = o;
2790
+ let r = !1, p = null;
2791
+ const h = o, f = o;
2792
+ let y = !1;
2793
+ const u = o;
2794
+ if ("var" !== t && "module" !== t && "assign" !== t && "assign-properties" !== t && "this" !== t && "window" !== t && "self" !== t && "global" !== t && "commonjs" !== t && "commonjs2" !== t && "commonjs-module" !== t && "commonjs-static" !== t && "amd" !== t && "amd-require" !== t && "umd" !== t && "umd2" !== t && "jsonp" !== t && "system" !== t) {
2795
+ const e = { instancePath: n + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {} };
2796
+ null === i ? i = [e] : i.push(e), o++;
2797
+ }
2798
+ var c = u === o;
2799
+ if (y = y || c, !y) {
2800
+ const e = o;
2801
+ if ("string" != typeof t) {
2802
+ const e = { instancePath: n + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" } };
2803
+ null === i ? i = [e] : i.push(e), o++;
2804
+ }
2805
+ c = e === o, y = y || c;
2806
+ }
2807
+ if (y)
2808
+ o = f, null !== i && (f ? i.length = f : i = null);
2809
+ else {
2810
+ const e = { instancePath: n + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {} };
2811
+ null === i ? i = [e] : i.push(e), o++;
2812
+ }
2813
+ if (h === o && (r = !0, p = 0), !r) {
2814
+ const e = { instancePath: n + "/libraryTarget", schemaPath: "#/properties/libraryTarget/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
2815
+ return null === i ? i = [e] : i.push(e), o++, M.errors = i, !1;
2816
+ }
2817
+ o = s, null !== i && (s ? i.length = s : i = null), l = a === o;
2818
+ }
2819
+ else
2820
+ l = !0;
2821
+ if (l) {
2822
+ if (void 0 !== e.module) {
2823
+ const t = o;
2824
+ if ("boolean" != typeof e.module)
2825
+ return M.errors = [{ instancePath: n + "/module", schemaPath: "#/definitions/OutputModule/type", keyword: "type", params: { type: "boolean" } }], !1;
2826
+ l = t === o;
2827
+ }
2828
+ else
2829
+ l = !0;
2830
+ if (l) {
2831
+ if (void 0 !== e.path) {
2832
+ const t = o;
2833
+ if ("string" != typeof e.path)
2834
+ return M.errors = [{ instancePath: n + "/path", schemaPath: "#/definitions/Path/type", keyword: "type", params: { type: "string" } }], !1;
2835
+ l = t === o;
2836
+ }
2837
+ else
2838
+ l = !0;
2839
+ if (l) {
2840
+ if (void 0 !== e.publicPath) {
2841
+ const t = o;
2842
+ U(e.publicPath, { instancePath: n + "/publicPath", parentData: e, parentDataProperty: "publicPath", rootData: r }) || (i = null === i ? U.errors : i.concat(U.errors), o = i.length), l = t === o;
2843
+ }
2844
+ else
2845
+ l = !0;
2846
+ if (l) {
2847
+ if (void 0 !== e.strictModuleErrorHandling) {
2848
+ const t = o;
2849
+ if ("boolean" != typeof e.strictModuleErrorHandling)
2850
+ return M.errors = [{ instancePath: n + "/strictModuleErrorHandling", schemaPath: "#/definitions/StrictModuleErrorHandling/type", keyword: "type", params: { type: "boolean" } }], !1;
2851
+ l = t === o;
2852
+ }
2853
+ else
2854
+ l = !0;
2855
+ if (l) {
2856
+ if (void 0 !== e.umdNamedDefine) {
2857
+ const t = o, a = o;
2858
+ let s = !1, r = null;
2859
+ const p = o;
2860
+ if ("boolean" != typeof e.umdNamedDefine) {
2861
+ const e = { instancePath: n + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" } };
2862
+ null === i ? i = [e] : i.push(e), o++;
2863
+ }
2864
+ if (p === o && (s = !0, r = 0), !s) {
2865
+ const e = { instancePath: n + "/umdNamedDefine", schemaPath: "#/properties/umdNamedDefine/oneOf", keyword: "oneOf", params: { passingSchemas: r } };
2866
+ return null === i ? i = [e] : i.push(e), o++, M.errors = i, !1;
2867
+ }
2868
+ o = a, null !== i && (a ? i.length = a : i = null), l = t === o;
2869
+ }
2870
+ else
2871
+ l = !0;
2872
+ if (l)
2873
+ if (void 0 !== e.uniqueName) {
2874
+ let t = e.uniqueName;
2875
+ const a = o;
2876
+ if (o == o) {
2877
+ if ("string" != typeof t)
2878
+ return M.errors = [{ instancePath: n + "/uniqueName", schemaPath: "#/definitions/UniqueName/type", keyword: "type", params: { type: "string" } }], !1;
2879
+ if (t.length < 1)
2880
+ return M.errors = [{ instancePath: n + "/uniqueName", schemaPath: "#/definitions/UniqueName/minLength", keyword: "minLength", params: {} }], !1;
2881
+ }
2882
+ l = a === o;
2883
+ }
2884
+ else
2885
+ l = !0;
2886
+ }
2887
+ }
2888
+ }
2889
+ }
2890
+ }
2891
+ }
2892
+ }
2893
+ }
2894
+ }
2895
+ }
2896
+ }
2897
+ }
2898
+ }
2899
+ }
2900
+ }
2901
+ }
2902
+ }
2903
+ }
2904
+ } return M.errors = i, 0 === o; }
2905
+ function W(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; if (0 === i) {
2906
+ if (!Array.isArray(e))
2907
+ return W.errors = [{ instancePath: t, schemaPath: "#/type", keyword: "type", params: { type: "array" } }], !1;
2908
+ {
2909
+ const n = e.length;
2910
+ for (let a = 0; a < n; a++) {
2911
+ let n = e[a];
2912
+ const s = i, l = i;
2913
+ let p = !1;
2914
+ const c = i;
2915
+ if (i == i)
2916
+ if (n && "object" == typeof n && !Array.isArray(n)) {
2917
+ let e;
2918
+ if (void 0 === n.apply && (e = "apply")) {
2919
+ const n = { instancePath: t + "/" + a, schemaPath: "#/definitions/RspackPluginInstance/required", keyword: "required", params: { missingProperty: e } };
2920
+ null === r ? r = [n] : r.push(n), i++;
2921
+ }
2922
+ else if (void 0 !== n.apply && !(n.apply instanceof Function)) {
2923
+ const e = { instancePath: t + "/" + a + "/apply", schemaPath: "#/definitions/RspackPluginInstance/properties/apply/instanceof", keyword: "instanceof", params: {} };
2924
+ null === r ? r = [e] : r.push(e), i++;
2925
+ }
2926
+ }
2927
+ else {
2928
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/RspackPluginInstance/type", keyword: "type", params: { type: "object" } };
2929
+ null === r ? r = [e] : r.push(e), i++;
2930
+ }
2931
+ var o = c === i;
2932
+ if (p = p || o, !p) {
2933
+ const e = i;
2934
+ if (!(n instanceof Function)) {
2935
+ const e = { instancePath: t + "/" + a, schemaPath: "#/definitions/RspackPluginFunction/instanceof", keyword: "instanceof", params: {} };
2936
+ null === r ? r = [e] : r.push(e), i++;
2937
+ }
2938
+ o = e === i, p = p || o;
2939
+ }
2940
+ if (!p) {
2941
+ const e = { instancePath: t + "/" + a, schemaPath: "#/items/anyOf", keyword: "anyOf", params: {} };
2942
+ return null === r ? r = [e] : r.push(e), i++, W.errors = r, !1;
2943
+ }
2944
+ if (i = l, null !== r && (l ? r.length = l : r = null), s !== i)
2945
+ break;
2946
+ }
2947
+ }
2948
+ } return W.errors = r, 0 === i; }
2949
+ function _(e, { instancePath: t = "", parentData: n, parentDataProperty: a, rootData: s = e } = {}) { let r = null, i = 0; const o = i; let l = !1, p = null; const c = i; if (k(e, { instancePath: t, parentData: n, parentDataProperty: a, rootData: s }) || (r = null === r ? k.errors : r.concat(k.errors), i = r.length), c === i && (l = !0, p = 0), !l) {
2950
+ const e = { instancePath: t, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: p } };
2951
+ return null === r ? r = [e] : r.push(e), i++, _.errors = r, !1;
2952
+ } return i = o, null !== r && (o ? r.length = o : r = null), _.errors = r, 0 === i; }
2953
+ const Q = { all: { description: "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", type: "boolean" }, assets: { description: "Add assets information.", type: "boolean" }, chunkGroups: { description: "Display all chunk groups with the corresponding bundles.", type: "boolean" }, chunks: { description: "Add chunk information.", type: "boolean" }, colors: { description: "Enables/Disables colorful output.", type: "boolean" }, entrypoints: { description: "Display the entry points with the corresponding bundles.", anyOf: [{ enum: ["auto"] }, { type: "boolean" }] }, errors: { description: "Add errors.", type: "boolean" }, errorsCount: { description: "Add errors count.", type: "boolean" }, hash: { description: "Add the hash of the compilation.", type: "boolean" }, modules: { description: "Add built modules information.", type: "boolean" }, preset: { description: "Preset for the default values.", anyOf: [{ type: "boolean" }, { type: "string" }] }, publicPath: { description: "Add public path information.", type: "boolean" }, reasons: { description: "Add information about the reasons why modules are included.", type: "boolean" }, warnings: { description: "Add warnings.", type: "boolean" }, warningsCount: { description: "Add warnings count.", type: "boolean" } };
2954
+ function H(e, { instancePath: n = "", parentData: a, parentDataProperty: s, rootData: r = e } = {}) { let i = null, o = 0; const l = o; let p = !1; const c = o; if ("none" !== e && "errors-only" !== e && "errors-warnings" !== e && "normal" !== e && "verbose" !== e) {
2955
+ const e = { instancePath: n, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {} };
2956
+ null === i ? i = [e] : i.push(e), o++;
2957
+ } var h = c === o; if (p = p || h, !p) {
2958
+ const a = o;
2959
+ if ("boolean" != typeof e) {
2960
+ const e = { instancePath: n, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "boolean" } };
2961
+ null === i ? i = [e] : i.push(e), o++;
2962
+ }
2963
+ if (h = a === o, p = p || h, !p) {
2964
+ const a = o;
2965
+ if (o == o)
2966
+ if (e && "object" == typeof e && !Array.isArray(e)) {
2967
+ const a = o;
2968
+ for (const a in e)
2969
+ if (!t.call(Q, a)) {
2970
+ const e = { instancePath: n, schemaPath: "#/definitions/StatsOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: a } };
2971
+ null === i ? i = [e] : i.push(e), o++;
2972
+ break;
2973
+ }
2974
+ if (a === o) {
2975
+ if (void 0 !== e.all) {
2976
+ const t = o;
2977
+ if ("boolean" != typeof e.all) {
2978
+ const e = { instancePath: n + "/all", schemaPath: "#/definitions/StatsOptions/properties/all/type", keyword: "type", params: { type: "boolean" } };
2979
+ null === i ? i = [e] : i.push(e), o++;
2980
+ }
2981
+ var f = t === o;
2982
+ }
2983
+ else
2984
+ f = !0;
2985
+ if (f) {
2986
+ if (void 0 !== e.assets) {
2987
+ const t = o;
2988
+ if ("boolean" != typeof e.assets) {
2989
+ const e = { instancePath: n + "/assets", schemaPath: "#/definitions/StatsOptions/properties/assets/type", keyword: "type", params: { type: "boolean" } };
2990
+ null === i ? i = [e] : i.push(e), o++;
2991
+ }
2992
+ f = t === o;
2993
+ }
2994
+ else
2995
+ f = !0;
2996
+ if (f) {
2997
+ if (void 0 !== e.chunkGroups) {
2998
+ const t = o;
2999
+ if ("boolean" != typeof e.chunkGroups) {
3000
+ const e = { instancePath: n + "/chunkGroups", schemaPath: "#/definitions/StatsOptions/properties/chunkGroups/type", keyword: "type", params: { type: "boolean" } };
3001
+ null === i ? i = [e] : i.push(e), o++;
3002
+ }
3003
+ f = t === o;
3004
+ }
3005
+ else
3006
+ f = !0;
3007
+ if (f) {
3008
+ if (void 0 !== e.chunks) {
3009
+ const t = o;
3010
+ if ("boolean" != typeof e.chunks) {
3011
+ const e = { instancePath: n + "/chunks", schemaPath: "#/definitions/StatsOptions/properties/chunks/type", keyword: "type", params: { type: "boolean" } };
3012
+ null === i ? i = [e] : i.push(e), o++;
3013
+ }
3014
+ f = t === o;
3015
+ }
3016
+ else
3017
+ f = !0;
3018
+ if (f) {
3019
+ if (void 0 !== e.colors) {
3020
+ const t = o;
3021
+ if ("boolean" != typeof e.colors) {
3022
+ const e = { instancePath: n + "/colors", schemaPath: "#/definitions/StatsOptions/properties/colors/type", keyword: "type", params: { type: "boolean" } };
3023
+ null === i ? i = [e] : i.push(e), o++;
3024
+ }
3025
+ f = t === o;
3026
+ }
3027
+ else
3028
+ f = !0;
3029
+ if (f) {
3030
+ if (void 0 !== e.entrypoints) {
3031
+ let t = e.entrypoints;
3032
+ const a = o, s = o;
3033
+ let r = !1;
3034
+ const l = o;
3035
+ if ("auto" !== t) {
3036
+ const e = { instancePath: n + "/entrypoints", schemaPath: "#/definitions/StatsOptions/properties/entrypoints/anyOf/0/enum", keyword: "enum", params: {} };
3037
+ null === i ? i = [e] : i.push(e), o++;
3038
+ }
3039
+ var y = l === o;
3040
+ if (r = r || y, !r) {
3041
+ const e = o;
3042
+ if ("boolean" != typeof t) {
3043
+ const e = { instancePath: n + "/entrypoints", schemaPath: "#/definitions/StatsOptions/properties/entrypoints/anyOf/1/type", keyword: "type", params: { type: "boolean" } };
3044
+ null === i ? i = [e] : i.push(e), o++;
3045
+ }
3046
+ y = e === o, r = r || y;
3047
+ }
3048
+ if (r)
3049
+ o = s, null !== i && (s ? i.length = s : i = null);
3050
+ else {
3051
+ const e = { instancePath: n + "/entrypoints", schemaPath: "#/definitions/StatsOptions/properties/entrypoints/anyOf", keyword: "anyOf", params: {} };
3052
+ null === i ? i = [e] : i.push(e), o++;
3053
+ }
3054
+ f = a === o;
3055
+ }
3056
+ else
3057
+ f = !0;
3058
+ if (f) {
3059
+ if (void 0 !== e.errors) {
3060
+ const t = o;
3061
+ if ("boolean" != typeof e.errors) {
3062
+ const e = { instancePath: n + "/errors", schemaPath: "#/definitions/StatsOptions/properties/errors/type", keyword: "type", params: { type: "boolean" } };
3063
+ null === i ? i = [e] : i.push(e), o++;
3064
+ }
3065
+ f = t === o;
3066
+ }
3067
+ else
3068
+ f = !0;
3069
+ if (f) {
3070
+ if (void 0 !== e.errorsCount) {
3071
+ const t = o;
3072
+ if ("boolean" != typeof e.errorsCount) {
3073
+ const e = { instancePath: n + "/errorsCount", schemaPath: "#/definitions/StatsOptions/properties/errorsCount/type", keyword: "type", params: { type: "boolean" } };
3074
+ null === i ? i = [e] : i.push(e), o++;
3075
+ }
3076
+ f = t === o;
3077
+ }
3078
+ else
3079
+ f = !0;
3080
+ if (f) {
3081
+ if (void 0 !== e.hash) {
3082
+ const t = o;
3083
+ if ("boolean" != typeof e.hash) {
3084
+ const e = { instancePath: n + "/hash", schemaPath: "#/definitions/StatsOptions/properties/hash/type", keyword: "type", params: { type: "boolean" } };
3085
+ null === i ? i = [e] : i.push(e), o++;
3086
+ }
3087
+ f = t === o;
3088
+ }
3089
+ else
3090
+ f = !0;
3091
+ if (f) {
3092
+ if (void 0 !== e.modules) {
3093
+ const t = o;
3094
+ if ("boolean" != typeof e.modules) {
3095
+ const e = { instancePath: n + "/modules", schemaPath: "#/definitions/StatsOptions/properties/modules/type", keyword: "type", params: { type: "boolean" } };
3096
+ null === i ? i = [e] : i.push(e), o++;
3097
+ }
3098
+ f = t === o;
3099
+ }
3100
+ else
3101
+ f = !0;
3102
+ if (f) {
3103
+ if (void 0 !== e.preset) {
3104
+ let t = e.preset;
3105
+ const a = o, s = o;
3106
+ let r = !1;
3107
+ const l = o;
3108
+ if ("boolean" != typeof t) {
3109
+ const e = { instancePath: n + "/preset", schemaPath: "#/definitions/StatsOptions/properties/preset/anyOf/0/type", keyword: "type", params: { type: "boolean" } };
3110
+ null === i ? i = [e] : i.push(e), o++;
3111
+ }
3112
+ var u = l === o;
3113
+ if (r = r || u, !r) {
3114
+ const e = o;
3115
+ if ("string" != typeof t) {
3116
+ const e = { instancePath: n + "/preset", schemaPath: "#/definitions/StatsOptions/properties/preset/anyOf/1/type", keyword: "type", params: { type: "string" } };
3117
+ null === i ? i = [e] : i.push(e), o++;
3118
+ }
3119
+ u = e === o, r = r || u;
3120
+ }
3121
+ if (r)
3122
+ o = s, null !== i && (s ? i.length = s : i = null);
3123
+ else {
3124
+ const e = { instancePath: n + "/preset", schemaPath: "#/definitions/StatsOptions/properties/preset/anyOf", keyword: "anyOf", params: {} };
3125
+ null === i ? i = [e] : i.push(e), o++;
3126
+ }
3127
+ f = a === o;
3128
+ }
3129
+ else
3130
+ f = !0;
3131
+ if (f) {
3132
+ if (void 0 !== e.publicPath) {
3133
+ const t = o;
3134
+ if ("boolean" != typeof e.publicPath) {
3135
+ const e = { instancePath: n + "/publicPath", schemaPath: "#/definitions/StatsOptions/properties/publicPath/type", keyword: "type", params: { type: "boolean" } };
3136
+ null === i ? i = [e] : i.push(e), o++;
3137
+ }
3138
+ f = t === o;
3139
+ }
3140
+ else
3141
+ f = !0;
3142
+ if (f) {
3143
+ if (void 0 !== e.reasons) {
3144
+ const t = o;
3145
+ if ("boolean" != typeof e.reasons) {
3146
+ const e = { instancePath: n + "/reasons", schemaPath: "#/definitions/StatsOptions/properties/reasons/type", keyword: "type", params: { type: "boolean" } };
3147
+ null === i ? i = [e] : i.push(e), o++;
3148
+ }
3149
+ f = t === o;
3150
+ }
3151
+ else
3152
+ f = !0;
3153
+ if (f) {
3154
+ if (void 0 !== e.warnings) {
3155
+ const t = o;
3156
+ if ("boolean" != typeof e.warnings) {
3157
+ const e = { instancePath: n + "/warnings", schemaPath: "#/definitions/StatsOptions/properties/warnings/type", keyword: "type", params: { type: "boolean" } };
3158
+ null === i ? i = [e] : i.push(e), o++;
3159
+ }
3160
+ f = t === o;
3161
+ }
3162
+ else
3163
+ f = !0;
3164
+ if (f)
3165
+ if (void 0 !== e.warningsCount) {
3166
+ const t = o;
3167
+ if ("boolean" != typeof e.warningsCount) {
3168
+ const e = { instancePath: n + "/warningsCount", schemaPath: "#/definitions/StatsOptions/properties/warningsCount/type", keyword: "type", params: { type: "boolean" } };
3169
+ null === i ? i = [e] : i.push(e), o++;
3170
+ }
3171
+ f = t === o;
3172
+ }
3173
+ else
3174
+ f = !0;
3175
+ }
3176
+ }
3177
+ }
3178
+ }
3179
+ }
3180
+ }
3181
+ }
3182
+ }
3183
+ }
3184
+ }
3185
+ }
3186
+ }
3187
+ }
3188
+ }
3189
+ }
3190
+ else {
3191
+ const e = { instancePath: n, schemaPath: "#/definitions/StatsOptions/type", keyword: "type", params: { type: "object" } };
3192
+ null === i ? i = [e] : i.push(e), o++;
3193
+ }
3194
+ h = a === o, p = p || h;
3195
+ }
3196
+ } if (!p) {
3197
+ const e = { instancePath: n, schemaPath: "#/anyOf", keyword: "anyOf", params: {} };
3198
+ return null === i ? i = [e] : i.push(e), o++, H.errors = i, !1;
3199
+ } return o = l, null !== i && (l ? i.length = l : i = null), H.errors = i, 0 === o; }
3200
+ function V(a, { instancePath: s = "", parentData: r, parentDataProperty: i, rootData: l = a } = {}) { let c = null, f = 0; if (0 === f) {
3201
+ if (!a || "object" != typeof a || Array.isArray(a))
3202
+ return V.errors = [{ instancePath: s, schemaPath: "#/type", keyword: "type", params: { type: "object" } }], !1;
3203
+ {
3204
+ const r = f;
3205
+ for (const n in a)
3206
+ if (!t.call(e, n))
3207
+ return V.errors = [{ instancePath: s, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: n } }], !1;
3208
+ if (r === f) {
3209
+ if (void 0 !== a.cache) {
3210
+ const e = f;
3211
+ if ("boolean" != typeof a.cache)
3212
+ return V.errors = [{ instancePath: s + "/cache", schemaPath: "#/definitions/CacheOptions/type", keyword: "type", params: { type: "boolean" } }], !1;
3213
+ var y = e === f;
3214
+ }
3215
+ else
3216
+ y = !0;
3217
+ if (y) {
3218
+ if (void 0 !== a.context) {
3219
+ const e = f;
3220
+ if ("string" != typeof a.context)
3221
+ return V.errors = [{ instancePath: s + "/context", schemaPath: "#/definitions/Context/type", keyword: "type", params: { type: "string" } }], !1;
3222
+ y = e === f;
3223
+ }
3224
+ else
3225
+ y = !0;
3226
+ if (y) {
3227
+ if (void 0 !== a.dependencies) {
3228
+ let e = a.dependencies;
3229
+ const t = f;
3230
+ if (f == f) {
3231
+ if (!Array.isArray(e))
3232
+ return V.errors = [{ instancePath: s + "/dependencies", schemaPath: "#/definitions/Dependencies/type", keyword: "type", params: { type: "array" } }], !1;
3233
+ {
3234
+ const t = e.length;
3235
+ for (let n = 0; n < t; n++) {
3236
+ const t = f;
3237
+ if ("string" != typeof e[n])
3238
+ return V.errors = [{ instancePath: s + "/dependencies/" + n, schemaPath: "#/definitions/Dependencies/items/type", keyword: "type", params: { type: "string" } }], !1;
3239
+ if (t !== f)
3240
+ break;
3241
+ }
3242
+ }
3243
+ }
3244
+ y = t === f;
3245
+ }
3246
+ else
3247
+ y = !0;
3248
+ if (y) {
3249
+ if (void 0 !== a.devServer) {
3250
+ let e = a.devServer;
3251
+ const t = f;
3252
+ if (!e || "object" != typeof e || Array.isArray(e))
3253
+ return V.errors = [{ instancePath: s + "/devServer", schemaPath: "#/definitions/DevServer/type", keyword: "type", params: { type: "object" } }], !1;
3254
+ y = t === f;
3255
+ }
3256
+ else
3257
+ y = !0;
3258
+ if (y) {
3259
+ if (void 0 !== a.devtool) {
3260
+ let e = a.devtool;
3261
+ const t = f, r = f;
3262
+ let i = !1;
3263
+ const o = f;
3264
+ if (!1 !== e) {
3265
+ const e = { instancePath: s + "/devtool", schemaPath: "#/definitions/DevTool/anyOf/0/enum", keyword: "enum", params: {} };
3266
+ null === c ? c = [e] : c.push(e), f++;
3267
+ }
3268
+ var u = o === f;
3269
+ if (i = i || u, !i) {
3270
+ const t = f;
3271
+ if (f === t)
3272
+ if ("string" == typeof e) {
3273
+ if (!n.test(e)) {
3274
+ const e = { instancePath: s + "/devtool", schemaPath: "#/definitions/DevTool/anyOf/1/pattern", keyword: "pattern", params: { pattern: "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" } };
3275
+ null === c ? c = [e] : c.push(e), f++;
3276
+ }
3277
+ }
3278
+ else {
3279
+ const e = { instancePath: s + "/devtool", schemaPath: "#/definitions/DevTool/anyOf/1/type", keyword: "type", params: { type: "string" } };
3280
+ null === c ? c = [e] : c.push(e), f++;
3281
+ }
3282
+ u = t === f, i = i || u;
3283
+ }
3284
+ if (!i) {
3285
+ const e = { instancePath: s + "/devtool", schemaPath: "#/definitions/DevTool/anyOf", keyword: "anyOf", params: {} };
3286
+ return null === c ? c = [e] : c.push(e), f++, V.errors = c, !1;
3287
+ }
3288
+ f = r, null !== c && (r ? c.length = r : c = null), y = t === f;
3289
+ }
3290
+ else
3291
+ y = !0;
3292
+ if (y) {
3293
+ if (void 0 !== a.entry) {
3294
+ const e = f;
3295
+ o(a.entry, { instancePath: s + "/entry", parentData: a, parentDataProperty: "entry", rootData: l }) || (c = null === c ? o.errors : c.concat(o.errors), f = c.length), y = e === f;
3296
+ }
3297
+ else
3298
+ y = !0;
3299
+ if (y) {
3300
+ if (void 0 !== a.experiments) {
3301
+ let e = a.experiments;
3302
+ const t = f;
3303
+ if (f == f) {
3304
+ if (!e || "object" != typeof e || Array.isArray(e))
3305
+ return V.errors = [{ instancePath: s + "/experiments", schemaPath: "#/definitions/Experiments/type", keyword: "type", params: { type: "object" } }], !1;
3306
+ {
3307
+ const t = f;
3308
+ for (const t in e)
3309
+ if ("incrementalRebuild" !== t && "lazyCompilation" !== t)
3310
+ return V.errors = [{ instancePath: s + "/experiments", schemaPath: "#/definitions/Experiments/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t } }], !1;
3311
+ if (t === f) {
3312
+ if (void 0 !== e.incrementalRebuild) {
3313
+ const t = f;
3314
+ if ("boolean" != typeof e.incrementalRebuild)
3315
+ return V.errors = [{ instancePath: s + "/experiments/incrementalRebuild", schemaPath: "#/definitions/Experiments/properties/incrementalRebuild/type", keyword: "type", params: { type: "boolean" } }], !1;
3316
+ var m = t === f;
3317
+ }
3318
+ else
3319
+ m = !0;
3320
+ if (m)
3321
+ if (void 0 !== e.lazyCompilation) {
3322
+ const t = f, n = f;
3323
+ let a = !1;
3324
+ const r = f;
3325
+ if ("boolean" != typeof e.lazyCompilation) {
3326
+ const e = { instancePath: s + "/experiments/lazyCompilation", schemaPath: "#/definitions/Experiments/properties/lazyCompilation/anyOf/0/type", keyword: "type", params: { type: "boolean" } };
3327
+ null === c ? c = [e] : c.push(e), f++;
3328
+ }
3329
+ if (a = a || r === f, !a) {
3330
+ const e = { instancePath: s + "/experiments/lazyCompilation", schemaPath: "#/definitions/Experiments/properties/lazyCompilation/anyOf", keyword: "anyOf", params: {} };
3331
+ return null === c ? c = [e] : c.push(e), f++, V.errors = c, !1;
3332
+ }
3333
+ f = n, null !== c && (n ? c.length = n : c = null), m = t === f;
3334
+ }
3335
+ else
3336
+ m = !0;
3337
+ }
3338
+ }
3339
+ }
3340
+ y = t === f;
3341
+ }
3342
+ else
3343
+ y = !0;
3344
+ if (y) {
3345
+ if (void 0 !== a.externals) {
3346
+ const e = f;
3347
+ p(a.externals, { instancePath: s + "/externals", parentData: a, parentDataProperty: "externals", rootData: l }) || (c = null === c ? p.errors : c.concat(p.errors), f = c.length), y = e === f;
3348
+ }
3349
+ else
3350
+ y = !0;
3351
+ if (y) {
3352
+ if (void 0 !== a.externalsType) {
3353
+ let e = a.externalsType;
3354
+ const t = f;
3355
+ if ("var" !== e && "module" !== e && "assign" !== e && "this" !== e && "window" !== e && "self" !== e && "global" !== e && "commonjs" !== e && "commonjs2" !== e && "commonjs-module" !== e && "commonjs-static" !== e && "amd" !== e && "amd-require" !== e && "umd" !== e && "umd2" !== e && "jsonp" !== e && "system" !== e && "promise" !== e && "import" !== e && "script" !== e && "node-commonjs" !== e)
3356
+ return V.errors = [{ instancePath: s + "/externalsType", schemaPath: "#/definitions/ExternalsType/enum", keyword: "enum", params: {} }], !1;
3357
+ y = t === f;
3358
+ }
3359
+ else
3360
+ y = !0;
3361
+ if (y) {
3362
+ if (void 0 !== a.infrastructureLogging) {
3363
+ const e = f;
3364
+ h(a.infrastructureLogging, { instancePath: s + "/infrastructureLogging", parentData: a, parentDataProperty: "infrastructureLogging", rootData: l }) || (c = null === c ? h.errors : c.concat(h.errors), f = c.length), y = e === f;
3365
+ }
3366
+ else
3367
+ y = !0;
3368
+ if (y) {
3369
+ if (void 0 !== a.mode) {
3370
+ let e = a.mode;
3371
+ const t = f;
3372
+ if ("development" !== e && "production" !== e && "none" !== e)
3373
+ return V.errors = [{ instancePath: s + "/mode", schemaPath: "#/definitions/Mode/enum", keyword: "enum", params: {} }], !1;
3374
+ y = t === f;
3375
+ }
3376
+ else
3377
+ y = !0;
3378
+ if (y) {
3379
+ if (void 0 !== a.module) {
3380
+ const e = f;
3381
+ S(a.module, { instancePath: s + "/module", parentData: a, parentDataProperty: "module", rootData: l }) || (c = null === c ? S.errors : c.concat(S.errors), f = c.length), y = e === f;
3382
+ }
3383
+ else
3384
+ y = !0;
3385
+ if (y) {
3386
+ if (void 0 !== a.name) {
3387
+ const e = f;
3388
+ if ("string" != typeof a.name)
3389
+ return V.errors = [{ instancePath: s + "/name", schemaPath: "#/definitions/Name/type", keyword: "type", params: { type: "string" } }], !1;
3390
+ y = e === f;
3391
+ }
3392
+ else
3393
+ y = !0;
3394
+ if (y) {
3395
+ if (void 0 !== a.node) {
3396
+ const e = f;
3397
+ j(a.node, { instancePath: s + "/node", parentData: a, parentDataProperty: "node", rootData: l }) || (c = null === c ? j.errors : c.concat(j.errors), f = c.length), y = e === f;
3398
+ }
3399
+ else
3400
+ y = !0;
3401
+ if (y) {
3402
+ if (void 0 !== a.optimization) {
3403
+ const e = f;
3404
+ x(a.optimization, { instancePath: s + "/optimization", parentData: a, parentDataProperty: "optimization", rootData: l }) || (c = null === c ? x.errors : c.concat(x.errors), f = c.length), y = e === f;
3405
+ }
3406
+ else
3407
+ y = !0;
3408
+ if (y) {
3409
+ if (void 0 !== a.output) {
3410
+ const e = f;
3411
+ M(a.output, { instancePath: s + "/output", parentData: a, parentDataProperty: "output", rootData: l }) || (c = null === c ? M.errors : c.concat(M.errors), f = c.length), y = e === f;
3412
+ }
3413
+ else
3414
+ y = !0;
3415
+ if (y) {
3416
+ if (void 0 !== a.plugins) {
3417
+ const e = f;
3418
+ W(a.plugins, { instancePath: s + "/plugins", parentData: a, parentDataProperty: "plugins", rootData: l }) || (c = null === c ? W.errors : c.concat(W.errors), f = c.length), y = e === f;
3419
+ }
3420
+ else
3421
+ y = !0;
3422
+ if (y) {
3423
+ if (void 0 !== a.resolve) {
3424
+ const e = f;
3425
+ _(a.resolve, { instancePath: s + "/resolve", parentData: a, parentDataProperty: "resolve", rootData: l }) || (c = null === c ? _.errors : c.concat(_.errors), f = c.length), y = e === f;
3426
+ }
3427
+ else
3428
+ y = !0;
3429
+ if (y) {
3430
+ if (void 0 !== a.snapshot) {
3431
+ let e = a.snapshot;
3432
+ const t = f;
3433
+ if (f == f) {
3434
+ if (!e || "object" != typeof e || Array.isArray(e))
3435
+ return V.errors = [{ instancePath: s + "/snapshot", schemaPath: "#/definitions/SnapshotOptions/type", keyword: "type", params: { type: "object" } }], !1;
3436
+ {
3437
+ const t = f;
3438
+ for (const t in e)
3439
+ if ("module" !== t && "resolve" !== t)
3440
+ return V.errors = [{ instancePath: s + "/snapshot", schemaPath: "#/definitions/SnapshotOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t } }], !1;
3441
+ if (t === f) {
3442
+ if (void 0 !== e.module) {
3443
+ let t = e.module;
3444
+ const n = f;
3445
+ if (f === n) {
3446
+ if (!t || "object" != typeof t || Array.isArray(t))
3447
+ return V.errors = [{ instancePath: s + "/snapshot/module", schemaPath: "#/definitions/SnapshotOptions/properties/module/type", keyword: "type", params: { type: "object" } }], !1;
3448
+ {
3449
+ const e = f;
3450
+ for (const e in t)
3451
+ if ("hash" !== e && "timestamp" !== e)
3452
+ return V.errors = [{ instancePath: s + "/snapshot/module", schemaPath: "#/definitions/SnapshotOptions/properties/module/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: e } }], !1;
3453
+ if (e === f) {
3454
+ if (void 0 !== t.hash) {
3455
+ const e = f;
3456
+ if ("boolean" != typeof t.hash)
3457
+ return V.errors = [{ instancePath: s + "/snapshot/module/hash", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/hash/type", keyword: "type", params: { type: "boolean" } }], !1;
3458
+ var d = e === f;
3459
+ }
3460
+ else
3461
+ d = !0;
3462
+ if (d)
3463
+ if (void 0 !== t.timestamp) {
3464
+ const e = f;
3465
+ if ("boolean" != typeof t.timestamp)
3466
+ return V.errors = [{ instancePath: s + "/snapshot/module/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/timestamp/type", keyword: "type", params: { type: "boolean" } }], !1;
3467
+ d = e === f;
3468
+ }
3469
+ else
3470
+ d = !0;
3471
+ }
3472
+ }
3473
+ }
3474
+ var P = n === f;
3475
+ }
3476
+ else
3477
+ P = !0;
3478
+ if (P)
3479
+ if (void 0 !== e.resolve) {
3480
+ let t = e.resolve;
3481
+ const n = f;
3482
+ if (f === n) {
3483
+ if (!t || "object" != typeof t || Array.isArray(t))
3484
+ return V.errors = [{ instancePath: s + "/snapshot/resolve", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/type", keyword: "type", params: { type: "object" } }], !1;
3485
+ {
3486
+ const e = f;
3487
+ for (const e in t)
3488
+ if ("hash" !== e && "timestamp" !== e)
3489
+ return V.errors = [{ instancePath: s + "/snapshot/resolve", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: e } }], !1;
3490
+ if (e === f) {
3491
+ if (void 0 !== t.hash) {
3492
+ const e = f;
3493
+ if ("boolean" != typeof t.hash)
3494
+ return V.errors = [{ instancePath: s + "/snapshot/resolve/hash", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/hash/type", keyword: "type", params: { type: "boolean" } }], !1;
3495
+ var g = e === f;
3496
+ }
3497
+ else
3498
+ g = !0;
3499
+ if (g)
3500
+ if (void 0 !== t.timestamp) {
3501
+ const e = f;
3502
+ if ("boolean" != typeof t.timestamp)
3503
+ return V.errors = [{ instancePath: s + "/snapshot/resolve/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/timestamp/type", keyword: "type", params: { type: "boolean" } }], !1;
3504
+ g = e === f;
3505
+ }
3506
+ else
3507
+ g = !0;
3508
+ }
3509
+ }
3510
+ }
3511
+ P = n === f;
3512
+ }
3513
+ else
3514
+ P = !0;
3515
+ }
3516
+ }
3517
+ }
3518
+ y = t === f;
3519
+ }
3520
+ else
3521
+ y = !0;
3522
+ if (y) {
3523
+ if (void 0 !== a.stats) {
3524
+ const e = f;
3525
+ H(a.stats, { instancePath: s + "/stats", parentData: a, parentDataProperty: "stats", rootData: l }) || (c = null === c ? H.errors : c.concat(H.errors), f = c.length), y = e === f;
3526
+ }
3527
+ else
3528
+ y = !0;
3529
+ if (y) {
3530
+ if (void 0 !== a.target) {
3531
+ let e = a.target;
3532
+ const t = f, n = f;
3533
+ let r = !1;
3534
+ const i = f;
3535
+ if (f === i)
3536
+ if (Array.isArray(e))
3537
+ if (e.length < 1) {
3538
+ const e = { instancePath: s + "/target", schemaPath: "#/definitions/Target/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 } };
3539
+ null === c ? c = [e] : c.push(e), f++;
3540
+ }
3541
+ else {
3542
+ const t = e.length;
3543
+ for (let n = 0; n < t; n++) {
3544
+ let t = e[n];
3545
+ const a = f;
3546
+ if (f === a)
3547
+ if ("string" == typeof t) {
3548
+ if (t.length < 1) {
3549
+ const e = { instancePath: s + "/target/" + n, schemaPath: "#/definitions/Target/anyOf/0/items/minLength", keyword: "minLength", params: {} };
3550
+ null === c ? c = [e] : c.push(e), f++;
3551
+ }
3552
+ }
3553
+ else {
3554
+ const e = { instancePath: s + "/target/" + n, schemaPath: "#/definitions/Target/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
3555
+ null === c ? c = [e] : c.push(e), f++;
3556
+ }
3557
+ if (a !== f)
3558
+ break;
3559
+ }
3560
+ }
3561
+ else {
3562
+ const e = { instancePath: s + "/target", schemaPath: "#/definitions/Target/anyOf/0/type", keyword: "type", params: { type: "array" } };
3563
+ null === c ? c = [e] : c.push(e), f++;
3564
+ }
3565
+ var k = i === f;
3566
+ if (r = r || k, !r) {
3567
+ const t = f;
3568
+ if (!1 !== e) {
3569
+ const e = { instancePath: s + "/target", schemaPath: "#/definitions/Target/anyOf/1/enum", keyword: "enum", params: {} };
3570
+ null === c ? c = [e] : c.push(e), f++;
3571
+ }
3572
+ if (k = t === f, r = r || k, !r) {
3573
+ const t = f;
3574
+ if (f === t)
3575
+ if ("string" == typeof e) {
3576
+ if (e.length < 1) {
3577
+ const e = { instancePath: s + "/target", schemaPath: "#/definitions/Target/anyOf/2/minLength", keyword: "minLength", params: {} };
3578
+ null === c ? c = [e] : c.push(e), f++;
3579
+ }
3580
+ }
3581
+ else {
3582
+ const e = { instancePath: s + "/target", schemaPath: "#/definitions/Target/anyOf/2/type", keyword: "type", params: { type: "string" } };
3583
+ null === c ? c = [e] : c.push(e), f++;
3584
+ }
3585
+ k = t === f, r = r || k;
3586
+ }
3587
+ }
3588
+ if (!r) {
3589
+ const e = { instancePath: s + "/target", schemaPath: "#/definitions/Target/anyOf", keyword: "anyOf", params: {} };
3590
+ return null === c ? c = [e] : c.push(e), f++, V.errors = c, !1;
3591
+ }
3592
+ f = n, null !== c && (n ? c.length = n : c = null), y = t === f;
3593
+ }
3594
+ else
3595
+ y = !0;
3596
+ if (y) {
3597
+ if (void 0 !== a.watch) {
3598
+ const e = f;
3599
+ if ("boolean" != typeof a.watch)
3600
+ return V.errors = [{ instancePath: s + "/watch", schemaPath: "#/definitions/Watch/type", keyword: "type", params: { type: "boolean" } }], !1;
3601
+ y = e === f;
3602
+ }
3603
+ else
3604
+ y = !0;
3605
+ if (y) {
3606
+ if (void 0 !== a.watchOptions) {
3607
+ let e = a.watchOptions;
3608
+ const t = f;
3609
+ if (f == f) {
3610
+ if (!e || "object" != typeof e || Array.isArray(e))
3611
+ return V.errors = [{ instancePath: s + "/watchOptions", schemaPath: "#/definitions/WatchOptions/type", keyword: "type", params: { type: "object" } }], !1;
3612
+ {
3613
+ const t = f;
3614
+ for (const t in e)
3615
+ if ("aggregateTimeout" !== t && "followSymlinks" !== t && "ignored" !== t && "poll" !== t && "stdin" !== t)
3616
+ return V.errors = [{ instancePath: s + "/watchOptions", schemaPath: "#/definitions/WatchOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: t } }], !1;
3617
+ if (t === f) {
3618
+ if (void 0 !== e.aggregateTimeout) {
3619
+ const t = f;
3620
+ if ("number" != typeof e.aggregateTimeout)
3621
+ return V.errors = [{ instancePath: s + "/watchOptions/aggregateTimeout", schemaPath: "#/definitions/WatchOptions/properties/aggregateTimeout/type", keyword: "type", params: { type: "number" } }], !1;
3622
+ var O = t === f;
3623
+ }
3624
+ else
3625
+ O = !0;
3626
+ if (O) {
3627
+ if (void 0 !== e.followSymlinks) {
3628
+ const t = f;
3629
+ if ("boolean" != typeof e.followSymlinks)
3630
+ return V.errors = [{ instancePath: s + "/watchOptions/followSymlinks", schemaPath: "#/definitions/WatchOptions/properties/followSymlinks/type", keyword: "type", params: { type: "boolean" } }], !1;
3631
+ O = t === f;
3632
+ }
3633
+ else
3634
+ O = !0;
3635
+ if (O) {
3636
+ if (void 0 !== e.ignored) {
3637
+ let t = e.ignored;
3638
+ const n = f, a = f;
3639
+ let r = !1;
3640
+ const i = f;
3641
+ if (f === i)
3642
+ if (Array.isArray(t)) {
3643
+ const e = t.length;
3644
+ for (let n = 0; n < e; n++) {
3645
+ let e = t[n];
3646
+ const a = f;
3647
+ if (f === a)
3648
+ if ("string" == typeof e) {
3649
+ if (e.length < 1) {
3650
+ const e = { instancePath: s + "/watchOptions/ignored/" + n, schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/0/items/minLength", keyword: "minLength", params: {} };
3651
+ null === c ? c = [e] : c.push(e), f++;
3652
+ }
3653
+ }
3654
+ else {
3655
+ const e = { instancePath: s + "/watchOptions/ignored/" + n, schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/0/items/type", keyword: "type", params: { type: "string" } };
3656
+ null === c ? c = [e] : c.push(e), f++;
3657
+ }
3658
+ if (a !== f)
3659
+ break;
3660
+ }
3661
+ }
3662
+ else {
3663
+ const e = { instancePath: s + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/0/type", keyword: "type", params: { type: "array" } };
3664
+ null === c ? c = [e] : c.push(e), f++;
3665
+ }
3666
+ var w = i === f;
3667
+ if (r = r || w, !r) {
3668
+ const e = f;
3669
+ if (!(t instanceof RegExp)) {
3670
+ const e = { instancePath: s + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/1/instanceof", keyword: "instanceof", params: {} };
3671
+ null === c ? c = [e] : c.push(e), f++;
3672
+ }
3673
+ if (w = e === f, r = r || w, !r) {
3674
+ const e = f;
3675
+ if (f === e)
3676
+ if ("string" == typeof t) {
3677
+ if (t.length < 1) {
3678
+ const e = { instancePath: s + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/2/minLength", keyword: "minLength", params: {} };
3679
+ null === c ? c = [e] : c.push(e), f++;
3680
+ }
3681
+ }
3682
+ else {
3683
+ const e = { instancePath: s + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/2/type", keyword: "type", params: { type: "string" } };
3684
+ null === c ? c = [e] : c.push(e), f++;
3685
+ }
3686
+ w = e === f, r = r || w;
3687
+ }
3688
+ }
3689
+ if (!r) {
3690
+ const e = { instancePath: s + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf", keyword: "anyOf", params: {} };
3691
+ return null === c ? c = [e] : c.push(e), f++, V.errors = c, !1;
3692
+ }
3693
+ f = a, null !== c && (a ? c.length = a : c = null), O = n === f;
3694
+ }
3695
+ else
3696
+ O = !0;
3697
+ if (O) {
3698
+ if (void 0 !== e.poll) {
3699
+ let t = e.poll;
3700
+ const n = f, a = f;
3701
+ let r = !1;
3702
+ const i = f;
3703
+ if ("number" != typeof t) {
3704
+ const e = { instancePath: s + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/0/type", keyword: "type", params: { type: "number" } };
3705
+ null === c ? c = [e] : c.push(e), f++;
3706
+ }
3707
+ var b = i === f;
3708
+ if (r = r || b, !r) {
3709
+ const e = f;
3710
+ if ("boolean" != typeof t) {
3711
+ const e = { instancePath: s + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/1/type", keyword: "type", params: { type: "boolean" } };
3712
+ null === c ? c = [e] : c.push(e), f++;
3713
+ }
3714
+ b = e === f, r = r || b;
3715
+ }
3716
+ if (!r) {
3717
+ const e = { instancePath: s + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf", keyword: "anyOf", params: {} };
3718
+ return null === c ? c = [e] : c.push(e), f++, V.errors = c, !1;
3719
+ }
3720
+ f = a, null !== c && (a ? c.length = a : c = null), O = n === f;
3721
+ }
3722
+ else
3723
+ O = !0;
3724
+ if (O)
3725
+ if (void 0 !== e.stdin) {
3726
+ const t = f;
3727
+ if ("boolean" != typeof e.stdin)
3728
+ return V.errors = [{ instancePath: s + "/watchOptions/stdin", schemaPath: "#/definitions/WatchOptions/properties/stdin/type", keyword: "type", params: { type: "boolean" } }], !1;
3729
+ O = t === f;
3730
+ }
3731
+ else
3732
+ O = !0;
3733
+ }
3734
+ }
3735
+ }
3736
+ }
3737
+ }
3738
+ }
3739
+ y = t === f;
3740
+ }
3741
+ else
3742
+ y = !0;
3743
+ if (y)
3744
+ if (void 0 !== a.builtins) {
3745
+ let e = a.builtins;
3746
+ const t = f;
3747
+ if (f === t && (!e || "object" != typeof e || Array.isArray(e)))
3748
+ return V.errors = [{ instancePath: s + "/builtins", schemaPath: "#/properties/builtins/type", keyword: "type", params: { type: "object" } }], !1;
3749
+ y = t === f;
3750
+ }
3751
+ else
3752
+ y = !0;
3753
+ }
3754
+ }
3755
+ }
3756
+ }
3757
+ }
3758
+ }
3759
+ }
3760
+ }
3761
+ }
3762
+ }
3763
+ }
3764
+ }
3765
+ }
3766
+ }
3767
+ }
3768
+ }
3769
+ }
3770
+ }
3771
+ }
3772
+ }
3773
+ }
3774
+ }
3775
+ }
3776
+ }
3777
+ } return V.errors = c, 0 === f; }
3778
+ //# sourceMappingURL=schema.check.js.map