@module-federation/enhanced 2.3.3 → 2.4.0

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.
Files changed (30) hide show
  1. package/dist/CHANGELOG.md +22 -0
  2. package/dist/src/lib/container/ContainerEntryDependency.d.ts +1 -4
  3. package/dist/src/lib/container/ContainerEntryDependency.js +1 -3
  4. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  5. package/dist/src/lib/container/ContainerEntryModule.d.ts +1 -4
  6. package/dist/src/lib/container/ContainerEntryModule.js +3 -9
  7. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
  8. package/dist/src/lib/container/ContainerEntryModuleFactory.js +1 -1
  9. package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -1
  10. package/dist/src/lib/container/ContainerPlugin.js +3 -4
  11. package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
  12. package/dist/src/lib/container/ModuleFederationPlugin.js +0 -2
  13. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  14. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +0 -2
  15. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  16. package/dist/src/runtime.mjs +3 -0
  17. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +7 -7
  18. package/dist/src/schemas/container/ContainerPlugin.check.js +541 -734
  19. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  20. package/dist/src/schemas/container/ContainerPlugin.d.ts +0 -4
  21. package/dist/src/schemas/container/ContainerPlugin.js +0 -4
  22. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  23. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +5 -13
  24. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  25. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +0 -4
  26. package/dist/src/schemas/container/ModuleFederationPlugin.js +0 -4
  27. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  28. package/package.json +13 -22
  29. package/dist/src/prefetch.d.ts +0 -3
  30. package/dist/src/prefetch.js +0 -17
@@ -2,371 +2,185 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
2
2
  const require_runtime = require('../../_virtual/_rolldown/runtime.js');
3
3
 
4
4
  //#region src/schemas/container/ContainerPlugin.check.ts
5
- const t = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
6
- const validate = u;
7
- var ContainerPlugin_check_default = u;
8
- const e = {
9
- definitions: {
10
- AmdContainer: {
11
- type: "string",
12
- minLength: 1
13
- },
14
- AuxiliaryComment: { anyOf: [{ type: "string" }, { $ref: "#/definitions/LibraryCustomUmdCommentObject" }] },
15
- EntryRuntime: { anyOf: [{ enum: [!1] }, {
16
- type: "string",
17
- minLength: 1
18
- }] },
19
- Exposes: { anyOf: [{
20
- type: "array",
21
- items: { anyOf: [{ $ref: "#/definitions/ExposesItem" }, { $ref: "#/definitions/ExposesObject" }] }
22
- }, { $ref: "#/definitions/ExposesObject" }] },
23
- ExposesConfig: {
24
- type: "object",
25
- additionalProperties: !1,
26
- properties: {
27
- import: { anyOf: [{ $ref: "#/definitions/ExposesItem" }, { $ref: "#/definitions/ExposesItems" }] },
28
- name: { type: "string" }
29
- },
30
- required: ["import"]
31
- },
32
- ExposesItem: {
33
- type: "string",
34
- minLength: 1
35
- },
36
- ExposesItems: {
37
- type: "array",
38
- items: { $ref: "#/definitions/ExposesItem" }
39
- },
40
- ExposesObject: {
41
- type: "object",
42
- additionalProperties: { anyOf: [
43
- { $ref: "#/definitions/ExposesConfig" },
44
- { $ref: "#/definitions/ExposesItem" },
45
- { $ref: "#/definitions/ExposesItems" }
46
- ] }
47
- },
48
- LibraryCustomUmdCommentObject: {
49
- type: "object",
50
- additionalProperties: !1,
51
- properties: {
52
- amd: { type: "string" },
53
- commonjs: { type: "string" },
54
- commonjs2: { type: "string" },
55
- root: { type: "string" }
56
- }
57
- },
58
- LibraryCustomUmdObject: {
59
- type: "object",
60
- additionalProperties: !1,
61
- properties: {
62
- amd: {
63
- type: "string",
64
- minLength: 1
65
- },
66
- commonjs: {
67
- type: "string",
68
- minLength: 1
69
- },
70
- root: { anyOf: [{
71
- type: "array",
72
- items: {
73
- type: "string",
74
- minLength: 1
75
- }
76
- }, {
77
- type: "string",
78
- minLength: 1
79
- }] }
80
- }
81
- },
82
- LibraryExport: { anyOf: [{
83
- type: "array",
84
- items: {
85
- type: "string",
86
- minLength: 1
87
- }
88
- }, {
89
- type: "string",
90
- minLength: 1
91
- }] },
92
- LibraryName: { anyOf: [
93
- {
94
- type: "array",
95
- items: {
96
- type: "string",
97
- minLength: 1
98
- },
99
- minItems: 1
100
- },
101
- {
102
- type: "string",
103
- minLength: 1
104
- },
105
- { $ref: "#/definitions/LibraryCustomUmdObject" }
106
- ] },
107
- LibraryOptions: {
108
- type: "object",
109
- additionalProperties: !1,
110
- properties: {
111
- amdContainer: { $ref: "#/definitions/AmdContainer" },
112
- auxiliaryComment: { $ref: "#/definitions/AuxiliaryComment" },
113
- export: { $ref: "#/definitions/LibraryExport" },
114
- name: { $ref: "#/definitions/LibraryName" },
115
- type: { $ref: "#/definitions/LibraryType" },
116
- umdNamedDefine: { $ref: "#/definitions/UmdNamedDefine" }
117
- },
118
- required: ["type"]
119
- },
120
- LibraryType: { anyOf: [{ enum: [
121
- "var",
122
- "module",
123
- "assign",
124
- "assign-properties",
125
- "this",
126
- "window",
127
- "self",
128
- "global",
129
- "commonjs",
130
- "commonjs2",
131
- "commonjs-module",
132
- "commonjs-static",
133
- "amd",
134
- "amd-require",
135
- "umd",
136
- "umd2",
137
- "jsonp",
138
- "system"
139
- ] }, { type: "string" }] },
140
- UmdNamedDefine: { type: "boolean" }
141
- },
142
- type: "object",
143
- additionalProperties: !1,
144
- properties: {
145
- exposes: { $ref: "#/definitions/Exposes" },
146
- filename: {
147
- type: "string",
148
- absolutePath: !1,
149
- minLength: 1
150
- },
151
- library: { $ref: "#/definitions/LibraryOptions" },
152
- name: {
153
- type: "string",
154
- minLength: 1
155
- },
156
- runtime: { $ref: "#/definitions/EntryRuntime" },
157
- shareScope: { anyOf: [{
158
- type: "string",
159
- minLength: 1
160
- }, {
161
- type: "array",
162
- items: {
163
- type: "string",
164
- minLength: 1
165
- }
166
- }] },
167
- experiments: {
168
- type: "object",
169
- additionalProperties: !1,
170
- properties: {
171
- asyncStartup: { type: "boolean" },
172
- externalRuntime: {
173
- type: "boolean",
174
- default: !1
175
- },
176
- provideExternalRuntime: {
177
- type: "boolean",
178
- default: !1
179
- }
180
- }
181
- },
182
- dataPrefetch: { type: "boolean" },
183
- runtimePlugins: {
184
- type: "array",
185
- items: { anyOf: [{ type: "string" }, {
186
- type: "array",
187
- items: [{ type: "string" }, { type: "object" }],
188
- minItems: 2,
189
- maxItems: 2
190
- }] }
191
- }
192
- },
193
- required: ["name", "exposes"]
194
- }, r = { anyOf: [{ enum: [!1] }, {
5
+ const r = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
6
+ const validate = f;
7
+ var ContainerPlugin_check_default = f;
8
+ const t = { anyOf: [{ enum: [!1] }, {
195
9
  type: "string",
196
10
  minLength: 1
197
- }] }, n = Object.prototype.hasOwnProperty;
198
- function s(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: a = t } = {}) {
199
- if (!Array.isArray(t)) return s.errors = [{ params: { type: "array" } }], !1;
11
+ }] };
12
+ function e(r, { instancePath: t = "", parentData: n, parentDataProperty: s, rootData: a = r } = {}) {
13
+ if (!Array.isArray(r)) return e.errors = [{ params: { type: "array" } }], !1;
200
14
  {
201
- const e = t.length;
202
- for (let r = 0; r < e; r++) {
203
- let e = t[r];
204
- const n = 0;
205
- if ("string" != typeof e) return s.errors = [{ params: { type: "string" } }], !1;
206
- if (e.length < 1) return s.errors = [{ params: {} }], !1;
207
- if (0 !== n) break;
15
+ const t = r.length;
16
+ for (let n = 0; n < t; n++) {
17
+ let t = r[n];
18
+ const s = 0;
19
+ if ("string" != typeof t) return e.errors = [{ params: { type: "string" } }], !1;
20
+ if (t.length < 1) return e.errors = [{ params: {} }], !1;
21
+ if (0 !== s) break;
208
22
  }
209
23
  }
210
- return s.errors = null, !0;
24
+ return e.errors = null, !0;
211
25
  }
212
- function a(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: o = t } = {}) {
26
+ function n(r, { instancePath: t = "", parentData: s, parentDataProperty: a, rootData: o = r } = {}) {
213
27
  let i = null, l = 0;
214
28
  if (0 === l) {
215
- if (!t || "object" != typeof t || Array.isArray(t)) return a.errors = [{ params: { type: "object" } }], !1;
29
+ if (!r || "object" != typeof r || Array.isArray(r)) return n.errors = [{ params: { type: "object" } }], !1;
216
30
  {
217
- let r;
218
- if (void 0 === t.import && (r = "import")) return a.errors = [{ params: { missingProperty: r } }], !1;
31
+ let s;
32
+ if (void 0 === r.import && (s = "import")) return n.errors = [{ params: { missingProperty: s } }], !1;
219
33
  {
220
- const r = l;
221
- for (const e in t) if ("import" !== e && "name" !== e) return a.errors = [{ params: { additionalProperty: e } }], !1;
222
- if (r === l) {
223
- if (void 0 !== t.import) {
224
- let r = t.import;
225
- const n = l, m = l;
226
- let u = !1;
227
- const c = l;
228
- if (l == l) if ("string" == typeof r) {
229
- if (r.length < 1) {
230
- const t = { params: {} };
231
- null === i ? i = [t] : i.push(t), l++;
34
+ const s = l;
35
+ for (const t in r) if ("import" !== t && "name" !== t) return n.errors = [{ params: { additionalProperty: t } }], !1;
36
+ if (s === l) {
37
+ if (void 0 !== r.import) {
38
+ let s = r.import;
39
+ const a = l, u = l;
40
+ let c = !1;
41
+ const m = l;
42
+ if (l == l) if ("string" == typeof s) {
43
+ if (s.length < 1) {
44
+ const r = { params: {} };
45
+ null === i ? i = [r] : i.push(r), l++;
232
46
  }
233
47
  } else {
234
- const t = { params: { type: "string" } };
235
- null === i ? i = [t] : i.push(t), l++;
48
+ const r = { params: { type: "string" } };
49
+ null === i ? i = [r] : i.push(r), l++;
236
50
  }
237
- var p = c === l;
238
- if (u = u || p, !u) {
51
+ var p = m === l;
52
+ if (c = c || p, !c) {
239
53
  const n = l;
240
- s(r, {
241
- instancePath: e + "/import",
242
- parentData: t,
54
+ e(s, {
55
+ instancePath: t + "/import",
56
+ parentData: r,
243
57
  parentDataProperty: "import",
244
58
  rootData: o
245
- }) || (i = null === i ? s.errors : i.concat(s.errors), l = i.length), p = n === l, u = u || p;
59
+ }) || (i = null === i ? e.errors : i.concat(e.errors), l = i.length), p = n === l, c = c || p;
246
60
  }
247
- if (!u) {
248
- const t = { params: {} };
249
- return null === i ? i = [t] : i.push(t), l++, a.errors = i, !1;
61
+ if (!c) {
62
+ const r = { params: {} };
63
+ return null === i ? i = [r] : i.push(r), l++, n.errors = i, !1;
250
64
  }
251
- l = m, null !== i && (m ? i.length = m : i = null);
252
- var f = n === l;
65
+ l = u, null !== i && (u ? i.length = u : i = null);
66
+ var f = a === l;
253
67
  } else f = !0;
254
- if (f) if (void 0 !== t.name) {
255
- const e = l;
256
- if ("string" != typeof t.name) return a.errors = [{ params: { type: "string" } }], !1;
257
- f = e === l;
68
+ if (f) if (void 0 !== r.name) {
69
+ const t = l;
70
+ if ("string" != typeof r.name) return n.errors = [{ params: { type: "string" } }], !1;
71
+ f = t === l;
258
72
  } else f = !0;
259
73
  }
260
74
  }
261
75
  }
262
76
  }
263
- return a.errors = i, 0 === l;
77
+ return n.errors = i, 0 === l;
264
78
  }
265
- function o(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: i = t } = {}) {
79
+ function s(r, { instancePath: t = "", parentData: a, parentDataProperty: o, rootData: i = r } = {}) {
266
80
  let l = null, p = 0;
267
81
  if (0 === p) {
268
- if (!t || "object" != typeof t || Array.isArray(t)) return o.errors = [{ params: { type: "object" } }], !1;
269
- for (const r in t) {
270
- let n = t[r];
271
- const m = p, u = p;
272
- let c = !1;
82
+ if (!r || "object" != typeof r || Array.isArray(r)) return s.errors = [{ params: { type: "object" } }], !1;
83
+ for (const a in r) {
84
+ let o = r[a];
85
+ const u = p, c = p;
86
+ let m = !1;
273
87
  const y = p;
274
- a(n, {
275
- instancePath: e + "/" + r.replace(/~/g, "~0").replace(/\//g, "~1"),
276
- parentData: t,
277
- parentDataProperty: r,
88
+ n(o, {
89
+ instancePath: t + "/" + a.replace(/~/g, "~0").replace(/\//g, "~1"),
90
+ parentData: r,
91
+ parentDataProperty: a,
278
92
  rootData: i
279
- }) || (l = null === l ? a.errors : l.concat(a.errors), p = l.length);
93
+ }) || (l = null === l ? n.errors : l.concat(n.errors), p = l.length);
280
94
  var f = y === p;
281
- if (c = c || f, !c) {
282
- const a = p;
283
- if (p == p) if ("string" == typeof n) {
284
- if (n.length < 1) {
285
- const t = { params: {} };
286
- null === l ? l = [t] : l.push(t), p++;
95
+ if (m = m || f, !m) {
96
+ const n = p;
97
+ if (p == p) if ("string" == typeof o) {
98
+ if (o.length < 1) {
99
+ const r = { params: {} };
100
+ null === l ? l = [r] : l.push(r), p++;
287
101
  }
288
102
  } else {
289
- const t = { params: { type: "string" } };
290
- null === l ? l = [t] : l.push(t), p++;
103
+ const r = { params: { type: "string" } };
104
+ null === l ? l = [r] : l.push(r), p++;
291
105
  }
292
- if (f = a === p, c = c || f, !c) {
293
- const a = p;
294
- s(n, {
295
- instancePath: e + "/" + r.replace(/~/g, "~0").replace(/\//g, "~1"),
296
- parentData: t,
297
- parentDataProperty: r,
106
+ if (f = n === p, m = m || f, !m) {
107
+ const n = p;
108
+ e(o, {
109
+ instancePath: t + "/" + a.replace(/~/g, "~0").replace(/\//g, "~1"),
110
+ parentData: r,
111
+ parentDataProperty: a,
298
112
  rootData: i
299
- }) || (l = null === l ? s.errors : l.concat(s.errors), p = l.length), f = a === p, c = c || f;
113
+ }) || (l = null === l ? e.errors : l.concat(e.errors), p = l.length), f = n === p, m = m || f;
300
114
  }
301
115
  }
302
- if (!c) {
303
- const t = { params: {} };
304
- return null === l ? l = [t] : l.push(t), p++, o.errors = l, !1;
116
+ if (!m) {
117
+ const r = { params: {} };
118
+ return null === l ? l = [r] : l.push(r), p++, s.errors = l, !1;
305
119
  }
306
- if (p = u, null !== l && (u ? l.length = u : l = null), m !== p) break;
120
+ if (p = c, null !== l && (c ? l.length = c : l = null), u !== p) break;
307
121
  }
308
122
  }
309
- return o.errors = l, 0 === p;
123
+ return s.errors = l, 0 === p;
310
124
  }
311
- function i(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
312
- let a = null, l = 0;
125
+ function a(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: o = r } = {}) {
126
+ let i = null, l = 0;
313
127
  const p = l;
314
128
  let f = !1;
315
- const m = l;
316
- if (l === m) if (Array.isArray(t)) {
317
- const r = t.length;
318
- for (let n = 0; n < r; n++) {
319
- let r = t[n];
320
- const i = l, p = l;
129
+ const u = l;
130
+ if (l === u) if (Array.isArray(r)) {
131
+ const e = r.length;
132
+ for (let n = 0; n < e; n++) {
133
+ let e = r[n];
134
+ const a = l, p = l;
321
135
  let f = !1;
322
- const m = l;
323
- if (l == l) if ("string" == typeof r) {
324
- if (r.length < 1) {
325
- const t = { params: {} };
326
- null === a ? a = [t] : a.push(t), l++;
136
+ const u = l;
137
+ if (l == l) if ("string" == typeof e) {
138
+ if (e.length < 1) {
139
+ const r = { params: {} };
140
+ null === i ? i = [r] : i.push(r), l++;
327
141
  }
328
142
  } else {
329
- const t = { params: { type: "string" } };
330
- null === a ? a = [t] : a.push(t), l++;
143
+ const r = { params: { type: "string" } };
144
+ null === i ? i = [r] : i.push(r), l++;
331
145
  }
332
- var u = m === l;
333
- if (f = f || u, !f) {
334
- const i = l;
335
- o(r, {
336
- instancePath: e + "/" + n,
337
- parentData: t,
146
+ var c = u === l;
147
+ if (f = f || c, !f) {
148
+ const a = l;
149
+ s(e, {
150
+ instancePath: t + "/" + n,
151
+ parentData: r,
338
152
  parentDataProperty: n,
339
- rootData: s
340
- }) || (a = null === a ? o.errors : a.concat(o.errors), l = a.length), u = i === l, f = f || u;
153
+ rootData: o
154
+ }) || (i = null === i ? s.errors : i.concat(s.errors), l = i.length), c = a === l, f = f || c;
341
155
  }
342
- if (f) l = p, null !== a && (p ? a.length = p : a = null);
156
+ if (f) l = p, null !== i && (p ? i.length = p : i = null);
343
157
  else {
344
- const t = { params: {} };
345
- null === a ? a = [t] : a.push(t), l++;
158
+ const r = { params: {} };
159
+ null === i ? i = [r] : i.push(r), l++;
346
160
  }
347
- if (i !== l) break;
161
+ if (a !== l) break;
348
162
  }
349
163
  } else {
350
- const t = { params: { type: "array" } };
351
- null === a ? a = [t] : a.push(t), l++;
164
+ const r = { params: { type: "array" } };
165
+ null === i ? i = [r] : i.push(r), l++;
352
166
  }
353
- var c = m === l;
354
- if (f = f || c, !f) {
355
- const i = l;
356
- o(t, {
357
- instancePath: e,
358
- parentData: r,
167
+ var m = u === l;
168
+ if (f = f || m, !f) {
169
+ const a = l;
170
+ s(r, {
171
+ instancePath: t,
172
+ parentData: e,
359
173
  parentDataProperty: n,
360
- rootData: s
361
- }) || (a = null === a ? o.errors : a.concat(o.errors), l = a.length), c = i === l, f = f || c;
174
+ rootData: o
175
+ }) || (i = null === i ? s.errors : i.concat(s.errors), l = i.length), m = a === l, f = f || m;
362
176
  }
363
177
  if (!f) {
364
- const t = { params: {} };
365
- return null === a ? a = [t] : a.push(t), l++, i.errors = a, !1;
178
+ const r = { params: {} };
179
+ return null === i ? i = [r] : i.push(r), l++, a.errors = i, !1;
366
180
  }
367
- return l = p, null !== a && (p ? a.length = p : a = null), i.errors = a, 0 === l;
181
+ return l = p, null !== i && (p ? i.length = p : i = null), a.errors = i, 0 === l;
368
182
  }
369
- const l = { anyOf: [{ enum: [
183
+ const o = { anyOf: [{ enum: [
370
184
  "var",
371
185
  "module",
372
186
  "assign",
@@ -386,332 +200,332 @@ const l = { anyOf: [{ enum: [
386
200
  "jsonp",
387
201
  "system"
388
202
  ] }, { type: "string" }] };
389
- function p(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
203
+ function i(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: s = r } = {}) {
390
204
  let a = null, o = 0;
391
- const i = o;
392
- let l = !1;
205
+ const l = o;
206
+ let p = !1;
393
207
  const f = o;
394
- if ("string" != typeof t) {
395
- const t = { params: { type: "string" } };
396
- null === a ? a = [t] : a.push(t), o++;
208
+ if ("string" != typeof r) {
209
+ const r = { params: { type: "string" } };
210
+ null === a ? a = [r] : a.push(r), o++;
397
211
  }
398
- var m = f === o;
399
- if (l = l || m, !l) {
400
- const e = o;
401
- if (o == o) if (t && "object" == typeof t && !Array.isArray(t)) {
402
- const e = o;
403
- for (const e in t) if ("amd" !== e && "commonjs" !== e && "commonjs2" !== e && "root" !== e) {
404
- const t = { params: { additionalProperty: e } };
405
- null === a ? a = [t] : a.push(t), o++;
212
+ var u = f === o;
213
+ if (p = p || u, !p) {
214
+ const t = o;
215
+ if (o == o) if (r && "object" == typeof r && !Array.isArray(r)) {
216
+ const t = o;
217
+ for (const t in r) if ("amd" !== t && "commonjs" !== t && "commonjs2" !== t && "root" !== t) {
218
+ const r = { params: { additionalProperty: t } };
219
+ null === a ? a = [r] : a.push(r), o++;
406
220
  break;
407
221
  }
408
- if (e === o) {
409
- if (void 0 !== t.amd) {
410
- const e = o;
411
- if ("string" != typeof t.amd) {
412
- const t = { params: { type: "string" } };
413
- null === a ? a = [t] : a.push(t), o++;
222
+ if (t === o) {
223
+ if (void 0 !== r.amd) {
224
+ const t = o;
225
+ if ("string" != typeof r.amd) {
226
+ const r = { params: { type: "string" } };
227
+ null === a ? a = [r] : a.push(r), o++;
414
228
  }
415
- var u = e === o;
416
- } else u = !0;
417
- if (u) {
418
- if (void 0 !== t.commonjs) {
419
- const e = o;
420
- if ("string" != typeof t.commonjs) {
421
- const t = { params: { type: "string" } };
422
- null === a ? a = [t] : a.push(t), o++;
229
+ var c = t === o;
230
+ } else c = !0;
231
+ if (c) {
232
+ if (void 0 !== r.commonjs) {
233
+ const t = o;
234
+ if ("string" != typeof r.commonjs) {
235
+ const r = { params: { type: "string" } };
236
+ null === a ? a = [r] : a.push(r), o++;
423
237
  }
424
- u = e === o;
425
- } else u = !0;
426
- if (u) {
427
- if (void 0 !== t.commonjs2) {
428
- const e = o;
429
- if ("string" != typeof t.commonjs2) {
430
- const t = { params: { type: "string" } };
431
- null === a ? a = [t] : a.push(t), o++;
238
+ c = t === o;
239
+ } else c = !0;
240
+ if (c) {
241
+ if (void 0 !== r.commonjs2) {
242
+ const t = o;
243
+ if ("string" != typeof r.commonjs2) {
244
+ const r = { params: { type: "string" } };
245
+ null === a ? a = [r] : a.push(r), o++;
432
246
  }
433
- u = e === o;
434
- } else u = !0;
435
- if (u) if (void 0 !== t.root) {
436
- const e = o;
437
- if ("string" != typeof t.root) {
438
- const t = { params: { type: "string" } };
439
- null === a ? a = [t] : a.push(t), o++;
247
+ c = t === o;
248
+ } else c = !0;
249
+ if (c) if (void 0 !== r.root) {
250
+ const t = o;
251
+ if ("string" != typeof r.root) {
252
+ const r = { params: { type: "string" } };
253
+ null === a ? a = [r] : a.push(r), o++;
440
254
  }
441
- u = e === o;
442
- } else u = !0;
255
+ c = t === o;
256
+ } else c = !0;
443
257
  }
444
258
  }
445
259
  }
446
260
  } else {
447
- const t = { params: { type: "object" } };
448
- null === a ? a = [t] : a.push(t), o++;
261
+ const r = { params: { type: "object" } };
262
+ null === a ? a = [r] : a.push(r), o++;
449
263
  }
450
- m = e === o, l = l || m;
264
+ u = t === o, p = p || u;
451
265
  }
452
- if (!l) {
453
- const t = { params: {} };
454
- return null === a ? a = [t] : a.push(t), o++, p.errors = a, !1;
266
+ if (!p) {
267
+ const r = { params: {} };
268
+ return null === a ? a = [r] : a.push(r), o++, i.errors = a, !1;
455
269
  }
456
- return o = i, null !== a && (i ? a.length = i : a = null), p.errors = a, 0 === o;
270
+ return o = l, null !== a && (l ? a.length = l : a = null), i.errors = a, 0 === o;
457
271
  }
458
- function f(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
272
+ function l(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: s = r } = {}) {
459
273
  let a = null, o = 0;
460
274
  const i = o;
461
- let l = !1;
462
- const p = o;
463
- if (o === p) if (Array.isArray(t)) if (t.length < 1) {
464
- const t = { params: { limit: 1 } };
465
- null === a ? a = [t] : a.push(t), o++;
275
+ let p = !1;
276
+ const f = o;
277
+ if (o === f) if (Array.isArray(r)) if (r.length < 1) {
278
+ const r = { params: { limit: 1 } };
279
+ null === a ? a = [r] : a.push(r), o++;
466
280
  } else {
467
- const e = t.length;
468
- for (let r = 0; r < e; r++) {
469
- let e = t[r];
281
+ const t = r.length;
282
+ for (let e = 0; e < t; e++) {
283
+ let t = r[e];
470
284
  const n = o;
471
- if (o === n) if ("string" == typeof e) {
472
- if (e.length < 1) {
473
- const t = { params: {} };
474
- null === a ? a = [t] : a.push(t), o++;
285
+ if (o === n) if ("string" == typeof t) {
286
+ if (t.length < 1) {
287
+ const r = { params: {} };
288
+ null === a ? a = [r] : a.push(r), o++;
475
289
  }
476
290
  } else {
477
- const t = { params: { type: "string" } };
478
- null === a ? a = [t] : a.push(t), o++;
291
+ const r = { params: { type: "string" } };
292
+ null === a ? a = [r] : a.push(r), o++;
479
293
  }
480
294
  if (n !== o) break;
481
295
  }
482
296
  }
483
297
  else {
484
- const t = { params: { type: "array" } };
485
- null === a ? a = [t] : a.push(t), o++;
298
+ const r = { params: { type: "array" } };
299
+ null === a ? a = [r] : a.push(r), o++;
486
300
  }
487
- var m = p === o;
488
- if (l = l || m, !l) {
489
- const e = o;
490
- if (o === e) if ("string" == typeof t) {
491
- if (t.length < 1) {
492
- const t = { params: {} };
493
- null === a ? a = [t] : a.push(t), o++;
301
+ var u = f === o;
302
+ if (p = p || u, !p) {
303
+ const t = o;
304
+ if (o === t) if ("string" == typeof r) {
305
+ if (r.length < 1) {
306
+ const r = { params: {} };
307
+ null === a ? a = [r] : a.push(r), o++;
494
308
  }
495
309
  } else {
496
- const t = { params: { type: "string" } };
497
- null === a ? a = [t] : a.push(t), o++;
310
+ const r = { params: { type: "string" } };
311
+ null === a ? a = [r] : a.push(r), o++;
498
312
  }
499
- if (m = e === o, l = l || m, !l) {
500
- const e = o;
501
- if (o == o) if (t && "object" == typeof t && !Array.isArray(t)) {
502
- const e = o;
503
- for (const e in t) if ("amd" !== e && "commonjs" !== e && "root" !== e) {
504
- const t = { params: { additionalProperty: e } };
505
- null === a ? a = [t] : a.push(t), o++;
313
+ if (u = t === o, p = p || u, !p) {
314
+ const t = o;
315
+ if (o == o) if (r && "object" == typeof r && !Array.isArray(r)) {
316
+ const t = o;
317
+ for (const t in r) if ("amd" !== t && "commonjs" !== t && "root" !== t) {
318
+ const r = { params: { additionalProperty: t } };
319
+ null === a ? a = [r] : a.push(r), o++;
506
320
  break;
507
321
  }
508
- if (e === o) {
509
- if (void 0 !== t.amd) {
510
- let e = t.amd;
511
- const r = o;
512
- if (o === r) if ("string" == typeof e) {
513
- if (e.length < 1) {
514
- const t = { params: {} };
515
- null === a ? a = [t] : a.push(t), o++;
322
+ if (t === o) {
323
+ if (void 0 !== r.amd) {
324
+ let t = r.amd;
325
+ const e = o;
326
+ if (o === e) if ("string" == typeof t) {
327
+ if (t.length < 1) {
328
+ const r = { params: {} };
329
+ null === a ? a = [r] : a.push(r), o++;
516
330
  }
517
331
  } else {
518
- const t = { params: { type: "string" } };
519
- null === a ? a = [t] : a.push(t), o++;
332
+ const r = { params: { type: "string" } };
333
+ null === a ? a = [r] : a.push(r), o++;
520
334
  }
521
- var u = r === o;
522
- } else u = !0;
523
- if (u) {
524
- if (void 0 !== t.commonjs) {
525
- let e = t.commonjs;
526
- const r = o;
527
- if (o === r) if ("string" == typeof e) {
528
- if (e.length < 1) {
529
- const t = { params: {} };
530
- null === a ? a = [t] : a.push(t), o++;
335
+ var c = e === o;
336
+ } else c = !0;
337
+ if (c) {
338
+ if (void 0 !== r.commonjs) {
339
+ let t = r.commonjs;
340
+ const e = o;
341
+ if (o === e) if ("string" == typeof t) {
342
+ if (t.length < 1) {
343
+ const r = { params: {} };
344
+ null === a ? a = [r] : a.push(r), o++;
531
345
  }
532
346
  } else {
533
- const t = { params: { type: "string" } };
534
- null === a ? a = [t] : a.push(t), o++;
347
+ const r = { params: { type: "string" } };
348
+ null === a ? a = [r] : a.push(r), o++;
535
349
  }
536
- u = r === o;
537
- } else u = !0;
538
- if (u) if (void 0 !== t.root) {
539
- let e = t.root;
540
- const r = o, n = o;
350
+ c = e === o;
351
+ } else c = !0;
352
+ if (c) if (void 0 !== r.root) {
353
+ let t = r.root;
354
+ const e = o, n = o;
541
355
  let s = !1;
542
356
  const i = o;
543
- if (o === i) if (Array.isArray(e)) {
544
- const t = e.length;
545
- for (let r = 0; r < t; r++) {
546
- let t = e[r];
357
+ if (o === i) if (Array.isArray(t)) {
358
+ const r = t.length;
359
+ for (let e = 0; e < r; e++) {
360
+ let r = t[e];
547
361
  const n = o;
548
- if (o === n) if ("string" == typeof t) {
549
- if (t.length < 1) {
550
- const t = { params: {} };
551
- null === a ? a = [t] : a.push(t), o++;
362
+ if (o === n) if ("string" == typeof r) {
363
+ if (r.length < 1) {
364
+ const r = { params: {} };
365
+ null === a ? a = [r] : a.push(r), o++;
552
366
  }
553
367
  } else {
554
- const t = { params: { type: "string" } };
555
- null === a ? a = [t] : a.push(t), o++;
368
+ const r = { params: { type: "string" } };
369
+ null === a ? a = [r] : a.push(r), o++;
556
370
  }
557
371
  if (n !== o) break;
558
372
  }
559
373
  } else {
560
- const t = { params: { type: "array" } };
561
- null === a ? a = [t] : a.push(t), o++;
374
+ const r = { params: { type: "array" } };
375
+ null === a ? a = [r] : a.push(r), o++;
562
376
  }
563
- var c = i === o;
564
- if (s = s || c, !s) {
565
- const t = o;
566
- if (o === t) if ("string" == typeof e) {
567
- if (e.length < 1) {
568
- const t = { params: {} };
569
- null === a ? a = [t] : a.push(t), o++;
377
+ var m = i === o;
378
+ if (s = s || m, !s) {
379
+ const r = o;
380
+ if (o === r) if ("string" == typeof t) {
381
+ if (t.length < 1) {
382
+ const r = { params: {} };
383
+ null === a ? a = [r] : a.push(r), o++;
570
384
  }
571
385
  } else {
572
- const t = { params: { type: "string" } };
573
- null === a ? a = [t] : a.push(t), o++;
386
+ const r = { params: { type: "string" } };
387
+ null === a ? a = [r] : a.push(r), o++;
574
388
  }
575
- c = t === o, s = s || c;
389
+ m = r === o, s = s || m;
576
390
  }
577
391
  if (s) o = n, null !== a && (n ? a.length = n : a = null);
578
392
  else {
579
- const t = { params: {} };
580
- null === a ? a = [t] : a.push(t), o++;
393
+ const r = { params: {} };
394
+ null === a ? a = [r] : a.push(r), o++;
581
395
  }
582
- u = r === o;
583
- } else u = !0;
396
+ c = e === o;
397
+ } else c = !0;
584
398
  }
585
399
  }
586
400
  } else {
587
- const t = { params: { type: "object" } };
588
- null === a ? a = [t] : a.push(t), o++;
401
+ const r = { params: { type: "object" } };
402
+ null === a ? a = [r] : a.push(r), o++;
589
403
  }
590
- m = e === o, l = l || m;
404
+ u = t === o, p = p || u;
591
405
  }
592
406
  }
593
- if (!l) {
594
- const t = { params: {} };
595
- return null === a ? a = [t] : a.push(t), o++, f.errors = a, !1;
407
+ if (!p) {
408
+ const r = { params: {} };
409
+ return null === a ? a = [r] : a.push(r), o++, l.errors = a, !1;
596
410
  }
597
- return o = i, null !== a && (i ? a.length = i : a = null), f.errors = a, 0 === o;
411
+ return o = i, null !== a && (i ? a.length = i : a = null), l.errors = a, 0 === o;
598
412
  }
599
- function m(t, { instancePath: e = "", parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
600
- let a = null, o = 0;
601
- if (0 === o) {
602
- if (!t || "object" != typeof t || Array.isArray(t)) return m.errors = [{ params: { type: "object" } }], !1;
413
+ function p(r, { instancePath: t = "", parentData: e, parentDataProperty: n, rootData: s = r } = {}) {
414
+ let a = null, f = 0;
415
+ if (0 === f) {
416
+ if (!r || "object" != typeof r || Array.isArray(r)) return p.errors = [{ params: { type: "object" } }], !1;
603
417
  {
604
- let r;
605
- if (void 0 === t.type && (r = "type")) return m.errors = [{ params: { missingProperty: r } }], !1;
418
+ let e;
419
+ if (void 0 === r.type && (e = "type")) return p.errors = [{ params: { missingProperty: e } }], !1;
606
420
  {
607
- const r = o;
608
- for (const e in t) if ("amdContainer" !== e && "auxiliaryComment" !== e && "export" !== e && "name" !== e && "type" !== e && "umdNamedDefine" !== e) return m.errors = [{ params: { additionalProperty: e } }], !1;
609
- if (r === o) {
610
- if (void 0 !== t.amdContainer) {
611
- let e = t.amdContainer;
612
- const r = o;
613
- if (o == o) {
614
- if ("string" != typeof e) return m.errors = [{ params: { type: "string" } }], !1;
615
- if (e.length < 1) return m.errors = [{ params: {} }], !1;
421
+ const e = f;
422
+ for (const t in r) if ("amdContainer" !== t && "auxiliaryComment" !== t && "export" !== t && "name" !== t && "type" !== t && "umdNamedDefine" !== t) return p.errors = [{ params: { additionalProperty: t } }], !1;
423
+ if (e === f) {
424
+ if (void 0 !== r.amdContainer) {
425
+ let t = r.amdContainer;
426
+ const e = f;
427
+ if (f == f) {
428
+ if ("string" != typeof t) return p.errors = [{ params: { type: "string" } }], !1;
429
+ if (t.length < 1) return p.errors = [{ params: {} }], !1;
616
430
  }
617
- var i = r === o;
618
- } else i = !0;
619
- if (i) {
620
- if (void 0 !== t.auxiliaryComment) {
621
- const r = o;
622
- p(t.auxiliaryComment, {
623
- instancePath: e + "/auxiliaryComment",
624
- parentData: t,
431
+ var u = e === f;
432
+ } else u = !0;
433
+ if (u) {
434
+ if (void 0 !== r.auxiliaryComment) {
435
+ const e = f;
436
+ i(r.auxiliaryComment, {
437
+ instancePath: t + "/auxiliaryComment",
438
+ parentData: r,
625
439
  parentDataProperty: "auxiliaryComment",
626
440
  rootData: s
627
- }) || (a = null === a ? p.errors : a.concat(p.errors), o = a.length), i = r === o;
628
- } else i = !0;
629
- if (i) {
630
- if (void 0 !== t.export) {
631
- let e = t.export;
632
- const r = o, n = o;
441
+ }) || (a = null === a ? i.errors : a.concat(i.errors), f = a.length), u = e === f;
442
+ } else u = !0;
443
+ if (u) {
444
+ if (void 0 !== r.export) {
445
+ let t = r.export;
446
+ const e = f, n = f;
633
447
  let s = !1;
634
- const l = o;
635
- if (o === l) if (Array.isArray(e)) {
636
- const t = e.length;
637
- for (let r = 0; r < t; r++) {
638
- let t = e[r];
639
- const n = o;
640
- if (o === n) if ("string" == typeof t) {
641
- if (t.length < 1) {
642
- const t = { params: {} };
643
- null === a ? a = [t] : a.push(t), o++;
448
+ const o = f;
449
+ if (f === o) if (Array.isArray(t)) {
450
+ const r = t.length;
451
+ for (let e = 0; e < r; e++) {
452
+ let r = t[e];
453
+ const n = f;
454
+ if (f === n) if ("string" == typeof r) {
455
+ if (r.length < 1) {
456
+ const r = { params: {} };
457
+ null === a ? a = [r] : a.push(r), f++;
644
458
  }
645
459
  } else {
646
- const t = { params: { type: "string" } };
647
- null === a ? a = [t] : a.push(t), o++;
460
+ const r = { params: { type: "string" } };
461
+ null === a ? a = [r] : a.push(r), f++;
648
462
  }
649
- if (n !== o) break;
463
+ if (n !== f) break;
650
464
  }
651
465
  } else {
652
- const t = { params: { type: "array" } };
653
- null === a ? a = [t] : a.push(t), o++;
466
+ const r = { params: { type: "array" } };
467
+ null === a ? a = [r] : a.push(r), f++;
654
468
  }
655
- var u = l === o;
656
- if (s = s || u, !s) {
657
- const t = o;
658
- if (o === t) if ("string" == typeof e) {
659
- if (e.length < 1) {
660
- const t = { params: {} };
661
- null === a ? a = [t] : a.push(t), o++;
469
+ var c = o === f;
470
+ if (s = s || c, !s) {
471
+ const r = f;
472
+ if (f === r) if ("string" == typeof t) {
473
+ if (t.length < 1) {
474
+ const r = { params: {} };
475
+ null === a ? a = [r] : a.push(r), f++;
662
476
  }
663
477
  } else {
664
- const t = { params: { type: "string" } };
665
- null === a ? a = [t] : a.push(t), o++;
478
+ const r = { params: { type: "string" } };
479
+ null === a ? a = [r] : a.push(r), f++;
666
480
  }
667
- u = t === o, s = s || u;
481
+ c = r === f, s = s || c;
668
482
  }
669
483
  if (!s) {
670
- const t = { params: {} };
671
- return null === a ? a = [t] : a.push(t), o++, m.errors = a, !1;
484
+ const r = { params: {} };
485
+ return null === a ? a = [r] : a.push(r), f++, p.errors = a, !1;
672
486
  }
673
- o = n, null !== a && (n ? a.length = n : a = null), i = r === o;
674
- } else i = !0;
675
- if (i) {
676
- if (void 0 !== t.name) {
677
- const r = o;
678
- f(t.name, {
679
- instancePath: e + "/name",
680
- parentData: t,
487
+ f = n, null !== a && (n ? a.length = n : a = null), u = e === f;
488
+ } else u = !0;
489
+ if (u) {
490
+ if (void 0 !== r.name) {
491
+ const e = f;
492
+ l(r.name, {
493
+ instancePath: t + "/name",
494
+ parentData: r,
681
495
  parentDataProperty: "name",
682
496
  rootData: s
683
- }) || (a = null === a ? f.errors : a.concat(f.errors), o = a.length), i = r === o;
684
- } else i = !0;
685
- if (i) {
686
- if (void 0 !== t.type) {
687
- let e = t.type;
688
- const r = o, n = o;
497
+ }) || (a = null === a ? l.errors : a.concat(l.errors), f = a.length), u = e === f;
498
+ } else u = !0;
499
+ if (u) {
500
+ if (void 0 !== r.type) {
501
+ let t = r.type;
502
+ const e = f, n = f;
689
503
  let s = !1;
690
- const p = o;
691
- if ("var" !== e && "module" !== e && "assign" !== e && "assign-properties" !== 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) {
692
- const t = { params: { allowedValues: l.anyOf[0].enum } };
693
- null === a ? a = [t] : a.push(t), o++;
504
+ const i = f;
505
+ 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) {
506
+ const r = { params: { allowedValues: o.anyOf[0].enum } };
507
+ null === a ? a = [r] : a.push(r), f++;
694
508
  }
695
- var c = p === o;
696
- if (s = s || c, !s) {
697
- const t = o;
698
- if ("string" != typeof e) {
699
- const t = { params: { type: "string" } };
700
- null === a ? a = [t] : a.push(t), o++;
509
+ var m = i === f;
510
+ if (s = s || m, !s) {
511
+ const r = f;
512
+ if ("string" != typeof t) {
513
+ const r = { params: { type: "string" } };
514
+ null === a ? a = [r] : a.push(r), f++;
701
515
  }
702
- c = t === o, s = s || c;
516
+ m = r === f, s = s || m;
703
517
  }
704
518
  if (!s) {
705
- const t = { params: {} };
706
- return null === a ? a = [t] : a.push(t), o++, m.errors = a, !1;
519
+ const r = { params: {} };
520
+ return null === a ? a = [r] : a.push(r), f++, p.errors = a, !1;
707
521
  }
708
- o = n, null !== a && (n ? a.length = n : a = null), i = r === o;
709
- } else i = !0;
710
- if (i) if (void 0 !== t.umdNamedDefine) {
711
- const e = o;
712
- if ("boolean" != typeof t.umdNamedDefine) return m.errors = [{ params: { type: "boolean" } }], !1;
713
- i = e === o;
714
- } else i = !0;
522
+ f = n, null !== a && (n ? a.length = n : a = null), u = e === f;
523
+ } else u = !0;
524
+ if (u) if (void 0 !== r.umdNamedDefine) {
525
+ const t = f;
526
+ if ("boolean" != typeof r.umdNamedDefine) return p.errors = [{ params: { type: "boolean" } }], !1;
527
+ u = t === f;
528
+ } else u = !0;
715
529
  }
716
530
  }
717
531
  }
@@ -720,236 +534,229 @@ function m(t, { instancePath: e = "", parentData: r, parentDataProperty: n, root
720
534
  }
721
535
  }
722
536
  }
723
- return m.errors = a, 0 === o;
537
+ return p.errors = a, 0 === f;
724
538
  }
725
- function u(s, { instancePath: a = "", parentData: o, parentDataProperty: l, rootData: p = s } = {}) {
726
- let f = null, c = 0;
727
- if (0 === c) {
728
- if (!s || "object" != typeof s || Array.isArray(s)) return u.errors = [{ params: { type: "object" } }], !1;
539
+ function f(e, { instancePath: n = "", parentData: s, parentDataProperty: o, rootData: i = e } = {}) {
540
+ let l = null, u = 0;
541
+ if (0 === u) {
542
+ if (!e || "object" != typeof e || Array.isArray(e)) return f.errors = [{ params: { type: "object" } }], !1;
729
543
  {
730
- let o;
731
- if (void 0 === s.name && (o = "name") || void 0 === s.exposes && (o = "exposes")) return u.errors = [{ params: { missingProperty: o } }], !1;
544
+ let s;
545
+ if (void 0 === e.name && (s = "name") || void 0 === e.exposes && (s = "exposes")) return f.errors = [{ params: { missingProperty: s } }], !1;
732
546
  {
733
- const o = c;
734
- for (const t in s) if (!n.call(e.properties, t)) return u.errors = [{ params: { additionalProperty: t } }], !1;
735
- if (o === c) {
736
- if (void 0 !== s.exposes) {
737
- const t = c;
738
- i(s.exposes, {
739
- instancePath: a + "/exposes",
740
- parentData: s,
547
+ const s = u;
548
+ for (const r in e) if ("exposes" !== r && "filename" !== r && "library" !== r && "name" !== r && "runtime" !== r && "shareScope" !== r && "experiments" !== r && "runtimePlugins" !== r) return f.errors = [{ params: { additionalProperty: r } }], !1;
549
+ if (s === u) {
550
+ if (void 0 !== e.exposes) {
551
+ const r = u;
552
+ a(e.exposes, {
553
+ instancePath: n + "/exposes",
554
+ parentData: e,
741
555
  parentDataProperty: "exposes",
742
- rootData: p
743
- }) || (f = null === f ? i.errors : f.concat(i.errors), c = f.length);
744
- var y = t === c;
745
- } else y = !0;
746
- if (y) {
747
- if (void 0 !== s.filename) {
748
- let e = s.filename;
749
- const r = c;
750
- if (c === r) {
751
- if ("string" != typeof e) return u.errors = [{ params: { type: "string" } }], !1;
752
- if (e.length < 1) return u.errors = [{ params: {} }], !1;
753
- if (e.includes("!") || !1 !== t.test(e)) return u.errors = [{ params: {} }], !1;
556
+ rootData: i
557
+ }) || (l = null === l ? a.errors : l.concat(a.errors), u = l.length);
558
+ var c = r === u;
559
+ } else c = !0;
560
+ if (c) {
561
+ if (void 0 !== e.filename) {
562
+ let t = e.filename;
563
+ const n = u;
564
+ if (u === n) {
565
+ if ("string" != typeof t) return f.errors = [{ params: { type: "string" } }], !1;
566
+ if (t.length < 1) return f.errors = [{ params: {} }], !1;
567
+ if (t.includes("!") || !1 !== r.test(t)) return f.errors = [{ params: {} }], !1;
754
568
  }
755
- y = r === c;
756
- } else y = !0;
757
- if (y) {
758
- if (void 0 !== s.library) {
759
- const t = c;
760
- m(s.library, {
761
- instancePath: a + "/library",
762
- parentData: s,
569
+ c = n === u;
570
+ } else c = !0;
571
+ if (c) {
572
+ if (void 0 !== e.library) {
573
+ const r = u;
574
+ p(e.library, {
575
+ instancePath: n + "/library",
576
+ parentData: e,
763
577
  parentDataProperty: "library",
764
- rootData: p
765
- }) || (f = null === f ? m.errors : f.concat(m.errors), c = f.length), y = t === c;
766
- } else y = !0;
767
- if (y) {
768
- if (void 0 !== s.name) {
769
- let t = s.name;
770
- const e = c;
771
- if (c === e) {
772
- if ("string" != typeof t) return u.errors = [{ params: { type: "string" } }], !1;
773
- if (t.length < 1) return u.errors = [{ params: {} }], !1;
578
+ rootData: i
579
+ }) || (l = null === l ? p.errors : l.concat(p.errors), u = l.length), c = r === u;
580
+ } else c = !0;
581
+ if (c) {
582
+ if (void 0 !== e.name) {
583
+ let r = e.name;
584
+ const t = u;
585
+ if (u === t) {
586
+ if ("string" != typeof r) return f.errors = [{ params: { type: "string" } }], !1;
587
+ if (r.length < 1) return f.errors = [{ params: {} }], !1;
774
588
  }
775
- y = e === c;
776
- } else y = !0;
777
- if (y) {
778
- if (void 0 !== s.runtime) {
779
- let t = s.runtime;
780
- const e = c, n = c;
589
+ c = t === u;
590
+ } else c = !0;
591
+ if (c) {
592
+ if (void 0 !== e.runtime) {
593
+ let r = e.runtime;
594
+ const n = u, s = u;
781
595
  let a = !1;
782
- const o = c;
783
- if (!1 !== t) {
784
- const t = { params: { allowedValues: r.anyOf[0].enum } };
785
- null === f ? f = [t] : f.push(t), c++;
596
+ const o = u;
597
+ if (!1 !== r) {
598
+ const r = { params: { allowedValues: t.anyOf[0].enum } };
599
+ null === l ? l = [r] : l.push(r), u++;
786
600
  }
787
- var g = o === c;
788
- if (a = a || g, !a) {
789
- const e = c;
790
- if (c === e) if ("string" == typeof t) {
791
- if (t.length < 1) {
792
- const t = { params: {} };
793
- null === f ? f = [t] : f.push(t), c++;
601
+ var m = o === u;
602
+ if (a = a || m, !a) {
603
+ const t = u;
604
+ if (u === t) if ("string" == typeof r) {
605
+ if (r.length < 1) {
606
+ const r = { params: {} };
607
+ null === l ? l = [r] : l.push(r), u++;
794
608
  }
795
609
  } else {
796
- const t = { params: { type: "string" } };
797
- null === f ? f = [t] : f.push(t), c++;
610
+ const r = { params: { type: "string" } };
611
+ null === l ? l = [r] : l.push(r), u++;
798
612
  }
799
- g = e === c, a = a || g;
613
+ m = t === u, a = a || m;
800
614
  }
801
615
  if (!a) {
802
- const t = { params: {} };
803
- return null === f ? f = [t] : f.push(t), c++, u.errors = f, !1;
616
+ const r = { params: {} };
617
+ return null === l ? l = [r] : l.push(r), u++, f.errors = l, !1;
804
618
  }
805
- c = n, null !== f && (n ? f.length = n : f = null), y = e === c;
806
- } else y = !0;
807
- if (y) {
808
- if (void 0 !== s.shareScope) {
809
- let t = s.shareScope;
810
- const e = c, r = c;
811
- let n = !1;
812
- const a = c;
813
- if (c === a) if ("string" == typeof t) {
814
- if (t.length < 1) {
815
- const t = { params: {} };
816
- null === f ? f = [t] : f.push(t), c++;
619
+ u = s, null !== l && (s ? l.length = s : l = null), c = n === u;
620
+ } else c = !0;
621
+ if (c) {
622
+ if (void 0 !== e.shareScope) {
623
+ let r = e.shareScope;
624
+ const t = u, n = u;
625
+ let s = !1;
626
+ const a = u;
627
+ if (u === a) if ("string" == typeof r) {
628
+ if (r.length < 1) {
629
+ const r = { params: {} };
630
+ null === l ? l = [r] : l.push(r), u++;
817
631
  }
818
632
  } else {
819
- const t = { params: { type: "string" } };
820
- null === f ? f = [t] : f.push(t), c++;
633
+ const r = { params: { type: "string" } };
634
+ null === l ? l = [r] : l.push(r), u++;
821
635
  }
822
- var h = a === c;
823
- if (n = n || h, !n) {
824
- const e = c;
825
- if (c === e) if (Array.isArray(t)) {
826
- const e = t.length;
827
- for (let r = 0; r < e; r++) {
828
- let e = t[r];
829
- const n = c;
830
- if (c === n) if ("string" == typeof e) {
831
- if (e.length < 1) {
832
- const t = { params: {} };
833
- null === f ? f = [t] : f.push(t), c++;
636
+ var y = a === u;
637
+ if (s = s || y, !s) {
638
+ const t = u;
639
+ if (u === t) if (Array.isArray(r)) {
640
+ const t = r.length;
641
+ for (let e = 0; e < t; e++) {
642
+ let t = r[e];
643
+ const n = u;
644
+ if (u === n) if ("string" == typeof t) {
645
+ if (t.length < 1) {
646
+ const r = { params: {} };
647
+ null === l ? l = [r] : l.push(r), u++;
834
648
  }
835
649
  } else {
836
- const t = { params: { type: "string" } };
837
- null === f ? f = [t] : f.push(t), c++;
650
+ const r = { params: { type: "string" } };
651
+ null === l ? l = [r] : l.push(r), u++;
838
652
  }
839
- if (n !== c) break;
653
+ if (n !== u) break;
840
654
  }
841
655
  } else {
842
- const t = { params: { type: "array" } };
843
- null === f ? f = [t] : f.push(t), c++;
656
+ const r = { params: { type: "array" } };
657
+ null === l ? l = [r] : l.push(r), u++;
844
658
  }
845
- h = e === c, n = n || h;
659
+ y = t === u, s = s || y;
846
660
  }
847
- if (!n) {
848
- const t = { params: {} };
849
- return null === f ? f = [t] : f.push(t), c++, u.errors = f, !1;
661
+ if (!s) {
662
+ const r = { params: {} };
663
+ return null === l ? l = [r] : l.push(r), u++, f.errors = l, !1;
850
664
  }
851
- c = r, null !== f && (r ? f.length = r : f = null), y = e === c;
852
- } else y = !0;
853
- if (y) {
854
- if (void 0 !== s.experiments) {
855
- let t = s.experiments;
856
- const e = c;
857
- if (c === e) {
858
- if (!t || "object" != typeof t || Array.isArray(t)) return u.errors = [{ params: { type: "object" } }], !1;
665
+ u = n, null !== l && (n ? l.length = n : l = null), c = t === u;
666
+ } else c = !0;
667
+ if (c) {
668
+ if (void 0 !== e.experiments) {
669
+ let r = e.experiments;
670
+ const t = u;
671
+ if (u === t) {
672
+ if (!r || "object" != typeof r || Array.isArray(r)) return f.errors = [{ params: { type: "object" } }], !1;
859
673
  {
860
- const e = c;
861
- for (const e in t) if ("asyncStartup" !== e && "externalRuntime" !== e && "provideExternalRuntime" !== e) return u.errors = [{ params: { additionalProperty: e } }], !1;
862
- if (e === c) {
863
- if (void 0 !== t.asyncStartup) {
864
- const e = c;
865
- if ("boolean" != typeof t.asyncStartup) return u.errors = [{ params: { type: "boolean" } }], !1;
866
- var d = e === c;
867
- } else d = !0;
868
- if (d) {
869
- if (void 0 !== t.externalRuntime) {
870
- const e = c;
871
- if ("boolean" != typeof t.externalRuntime) return u.errors = [{ params: { type: "boolean" } }], !1;
872
- d = e === c;
873
- } else d = !0;
874
- if (d) if (void 0 !== t.provideExternalRuntime) {
875
- const e = c;
876
- if ("boolean" != typeof t.provideExternalRuntime) return u.errors = [{ params: { type: "boolean" } }], !1;
877
- d = e === c;
878
- } else d = !0;
674
+ const t = u;
675
+ for (const t in r) if ("asyncStartup" !== t && "externalRuntime" !== t && "provideExternalRuntime" !== t) return f.errors = [{ params: { additionalProperty: t } }], !1;
676
+ if (t === u) {
677
+ if (void 0 !== r.asyncStartup) {
678
+ const t = u;
679
+ if ("boolean" != typeof r.asyncStartup) return f.errors = [{ params: { type: "boolean" } }], !1;
680
+ var h = t === u;
681
+ } else h = !0;
682
+ if (h) {
683
+ if (void 0 !== r.externalRuntime) {
684
+ const t = u;
685
+ if ("boolean" != typeof r.externalRuntime) return f.errors = [{ params: { type: "boolean" } }], !1;
686
+ h = t === u;
687
+ } else h = !0;
688
+ if (h) if (void 0 !== r.provideExternalRuntime) {
689
+ const t = u;
690
+ if ("boolean" != typeof r.provideExternalRuntime) return f.errors = [{ params: { type: "boolean" } }], !1;
691
+ h = t === u;
692
+ } else h = !0;
879
693
  }
880
694
  }
881
695
  }
882
696
  }
883
- y = e === c;
884
- } else y = !0;
885
- if (y) {
886
- if (void 0 !== s.dataPrefetch) {
887
- const t = c;
888
- if ("boolean" != typeof s.dataPrefetch) return u.errors = [{ params: { type: "boolean" } }], !1;
889
- y = t === c;
890
- } else y = !0;
891
- if (y) if (void 0 !== s.runtimePlugins) {
892
- let t = s.runtimePlugins;
893
- const e = c;
894
- if (c === e) {
895
- if (!Array.isArray(t)) return u.errors = [{ params: { type: "array" } }], !1;
896
- {
897
- const e = t.length;
898
- for (let r = 0; r < e; r++) {
899
- let e = t[r];
900
- const n = c, s = c;
901
- let a = !1;
902
- const o = c;
903
- if ("string" != typeof e) {
904
- const t = { params: { type: "string" } };
905
- null === f ? f = [t] : f.push(t), c++;
906
- }
907
- var b = o === c;
908
- if (a = a || b, !a) {
909
- const t = c;
910
- if (c === t) if (Array.isArray(e)) if (e.length > 2) {
911
- const t = { params: { limit: 2 } };
912
- null === f ? f = [t] : f.push(t), c++;
913
- } else if (e.length < 2) {
914
- const t = { params: { limit: 2 } };
915
- null === f ? f = [t] : f.push(t), c++;
916
- } else {
917
- const t = e.length;
918
- if (t > 0) {
919
- const t = c;
920
- if ("string" != typeof e[0]) {
921
- const t = { params: { type: "string" } };
922
- null === f ? f = [t] : f.push(t), c++;
923
- }
924
- var j = t === c;
925
- }
926
- if (j && t > 1) {
927
- let t = e[1];
928
- const r = c;
929
- if (!t || "object" != typeof t || Array.isArray(t)) {
930
- const t = { params: { type: "object" } };
931
- null === f ? f = [t] : f.push(t), c++;
932
- }
933
- j = r === c;
697
+ c = t === u;
698
+ } else c = !0;
699
+ if (c) if (void 0 !== e.runtimePlugins) {
700
+ let r = e.runtimePlugins;
701
+ const t = u;
702
+ if (u === t) {
703
+ if (!Array.isArray(r)) return f.errors = [{ params: { type: "array" } }], !1;
704
+ {
705
+ const t = r.length;
706
+ for (let e = 0; e < t; e++) {
707
+ let t = r[e];
708
+ const n = u, s = u;
709
+ let a = !1;
710
+ const o = u;
711
+ if ("string" != typeof t) {
712
+ const r = { params: { type: "string" } };
713
+ null === l ? l = [r] : l.push(r), u++;
714
+ }
715
+ var g = o === u;
716
+ if (a = a || g, !a) {
717
+ const r = u;
718
+ if (u === r) if (Array.isArray(t)) if (t.length > 2) {
719
+ const r = { params: { limit: 2 } };
720
+ null === l ? l = [r] : l.push(r), u++;
721
+ } else if (t.length < 2) {
722
+ const r = { params: { limit: 2 } };
723
+ null === l ? l = [r] : l.push(r), u++;
724
+ } else {
725
+ const r = t.length;
726
+ if (r > 0) {
727
+ const r = u;
728
+ if ("string" != typeof t[0]) {
729
+ const r = { params: { type: "string" } };
730
+ null === l ? l = [r] : l.push(r), u++;
934
731
  }
732
+ var d = r === u;
935
733
  }
936
- else {
937
- const t = { params: { type: "array" } };
938
- null === f ? f = [t] : f.push(t), c++;
734
+ if (d && r > 1) {
735
+ let r = t[1];
736
+ const e = u;
737
+ if (!r || "object" != typeof r || Array.isArray(r)) {
738
+ const r = { params: { type: "object" } };
739
+ null === l ? l = [r] : l.push(r), u++;
740
+ }
741
+ d = e === u;
939
742
  }
940
- b = t === c, a = a || b;
941
743
  }
942
- if (!a) {
943
- const t = { params: {} };
944
- return null === f ? f = [t] : f.push(t), c++, u.errors = f, !1;
744
+ else {
745
+ const r = { params: { type: "array" } };
746
+ null === l ? l = [r] : l.push(r), u++;
945
747
  }
946
- if (c = s, null !== f && (s ? f.length = s : f = null), n !== c) break;
748
+ g = r === u, a = a || g;
749
+ }
750
+ if (!a) {
751
+ const r = { params: {} };
752
+ return null === l ? l = [r] : l.push(r), u++, f.errors = l, !1;
947
753
  }
754
+ if (u = s, null !== l && (s ? l.length = s : l = null), n !== u) break;
948
755
  }
949
756
  }
950
- y = e === c;
951
- } else y = !0;
952
- }
757
+ }
758
+ c = t === u;
759
+ } else c = !0;
953
760
  }
954
761
  }
955
762
  }
@@ -960,7 +767,7 @@ function u(s, { instancePath: a = "", parentData: o, parentDataProperty: l, root
960
767
  }
961
768
  }
962
769
  }
963
- return u.errors = f, 0 === c;
770
+ return f.errors = l, 0 === u;
964
771
  }
965
772
 
966
773
  //#endregion