@module-federation/enhanced 0.8.6 → 0.8.8

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.
@@ -7,1955 +7,898 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  * DO NOT MODIFY BY HAND.
8
8
  * Run `yarn special-lint-fix` to update
9
9
  */
10
- const absolutePathRegExp = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
11
- const runtimePlugin = {
12
- type: 'array',
13
- items: {
14
- anyOf: [
10
+ const r = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
11
+ function t(r, { instancePath: e = '', parentData: n, parentDataProperty: s, rootData: a = r, } = {}) {
12
+ if (!Array.isArray(r))
13
+ return ((t.errors = [
15
14
  {
16
- type: 'string',
17
- minLength: 1,
18
- description: 'Runtime Plugin File Path.',
19
- },
20
- {
21
- type: 'object',
22
- required: ['import', 'async'],
23
- properties: {
24
- import: {
25
- type: 'string',
26
- minLength: 1,
27
- description: 'Runtime Plugin File Path.',
28
- },
29
- async: {
30
- type: 'boolean',
31
- },
32
- },
33
- additionalProperties: false,
34
- },
35
- ],
36
- },
37
- };
38
- const schema21 = {
39
- definitions: {
40
- AmdContainer: {
41
- type: 'string',
42
- minLength: 1,
43
- },
44
- AuxiliaryComment: {
45
- anyOf: [
46
- {
47
- type: 'string',
48
- },
49
- {
50
- $ref: '#/definitions/LibraryCustomUmdCommentObject',
51
- },
52
- ],
53
- },
54
- EntryRuntime: {
55
- anyOf: [
56
- {
57
- enum: [false],
58
- },
59
- {
60
- type: 'string',
61
- minLength: 1,
62
- },
63
- ],
64
- },
65
- Exposes: {
66
- anyOf: [
67
- {
15
+ params: {
68
16
  type: 'array',
69
- items: {
70
- anyOf: [
71
- {
72
- $ref: '#/definitions/ExposesItem',
73
- },
74
- {
75
- $ref: '#/definitions/ExposesObject',
76
- },
77
- ],
78
- },
79
- },
80
- {
81
- $ref: '#/definitions/ExposesObject',
82
17
  },
83
- ],
84
- },
85
- ExposesConfig: {
86
- type: 'object',
87
- additionalProperties: false,
88
- properties: {
89
- import: {
90
- anyOf: [
91
- {
92
- $ref: '#/definitions/ExposesItem',
93
- },
94
- {
95
- $ref: '#/definitions/ExposesItems',
96
- },
97
- ],
98
- },
99
- name: {
100
- type: 'string',
101
- },
102
- },
103
- required: ['import'],
104
- },
105
- ExposesItem: {
106
- type: 'string',
107
- minLength: 1,
108
- },
109
- ExposesItems: {
110
- type: 'array',
111
- items: {
112
- $ref: '#/definitions/ExposesItem',
113
18
  },
114
- },
115
- ExposesObject: {
116
- type: 'object',
117
- additionalProperties: {
118
- anyOf: [
119
- {
120
- $ref: '#/definitions/ExposesConfig',
121
- },
122
- {
123
- $ref: '#/definitions/ExposesItem',
124
- },
19
+ ]),
20
+ !1);
21
+ {
22
+ const e = r.length;
23
+ for (let n = 0; n < e; n++) {
24
+ let e = r[n];
25
+ const s = 0;
26
+ if ('string' != typeof e)
27
+ return ((t.errors = [
125
28
  {
126
- $ref: '#/definitions/ExposesItems',
127
- },
128
- ],
129
- },
130
- },
131
- LibraryCustomUmdCommentObject: {
132
- type: 'object',
133
- additionalProperties: false,
134
- properties: {
135
- amd: {
136
- type: 'string',
137
- },
138
- commonjs: {
139
- type: 'string',
140
- },
141
- commonjs2: {
142
- type: 'string',
143
- },
144
- root: {
145
- type: 'string',
146
- },
147
- },
148
- },
149
- LibraryCustomUmdObject: {
150
- type: 'object',
151
- additionalProperties: false,
152
- properties: {
153
- amd: {
154
- type: 'string',
155
- minLength: 1,
156
- },
157
- commonjs: {
158
- type: 'string',
159
- minLength: 1,
160
- },
161
- root: {
162
- anyOf: [
163
- {
164
- type: 'array',
165
- items: {
166
- type: 'string',
167
- minLength: 1,
168
- },
169
- },
170
- {
29
+ params: {
171
30
  type: 'string',
172
- minLength: 1,
173
31
  },
174
- ],
175
- },
176
- },
177
- },
178
- LibraryExport: {
179
- anyOf: [
180
- {
181
- type: 'array',
182
- items: {
183
- type: 'string',
184
- minLength: 1,
185
32
  },
186
- },
187
- {
188
- type: 'string',
189
- minLength: 1,
190
- },
191
- ],
192
- },
193
- LibraryName: {
194
- anyOf: [
195
- {
196
- type: 'array',
197
- items: {
198
- type: 'string',
199
- minLength: 1,
200
- },
201
- minItems: 1,
202
- },
203
- {
204
- type: 'string',
205
- minLength: 1,
206
- },
207
- {
208
- $ref: '#/definitions/LibraryCustomUmdObject',
209
- },
210
- ],
211
- },
212
- LibraryOptions: {
213
- type: 'object',
214
- additionalProperties: false,
215
- properties: {
216
- amdContainer: {
217
- $ref: '#/definitions/AmdContainer',
218
- },
219
- auxiliaryComment: {
220
- $ref: '#/definitions/AuxiliaryComment',
221
- },
222
- export: {
223
- $ref: '#/definitions/LibraryExport',
224
- },
225
- name: {
226
- $ref: '#/definitions/LibraryName',
227
- },
228
- type: {
229
- $ref: '#/definitions/LibraryType',
230
- },
231
- umdNamedDefine: {
232
- $ref: '#/definitions/UmdNamedDefine',
233
- },
234
- },
235
- required: ['type'],
236
- },
237
- LibraryType: {
238
- anyOf: [
239
- {
240
- enum: [
241
- 'var',
242
- 'module',
243
- 'assign',
244
- 'assign-properties',
245
- 'this',
246
- 'window',
247
- 'self',
248
- 'global',
249
- 'commonjs',
250
- 'commonjs2',
251
- 'commonjs-module',
252
- 'commonjs-static',
253
- 'amd',
254
- 'amd-require',
255
- 'umd',
256
- 'umd2',
257
- 'jsonp',
258
- 'system',
259
- ],
260
- },
261
- {
262
- type: 'string',
263
- },
264
- ],
265
- },
266
- UmdNamedDefine: {
267
- type: 'boolean',
268
- },
269
- },
270
- type: 'object',
271
- additionalProperties: false,
272
- properties: {
273
- exposes: {
274
- $ref: '#/definitions/Exposes',
275
- },
276
- filename: {
277
- type: 'string',
278
- absolutePath: false,
279
- minLength: 1,
280
- },
281
- library: {
282
- $ref: '#/definitions/LibraryOptions',
283
- },
284
- name: {
285
- type: 'string',
286
- minLength: 1,
287
- },
288
- runtime: {
289
- $ref: '#/definitions/EntryRuntime',
290
- },
291
- runtimePlugins: runtimePlugin,
292
- shareScope: {
293
- type: 'string',
294
- minLength: 1,
295
- },
296
- experiments: {
297
- type: 'object',
298
- properties: {
299
- federationRuntime: {
300
- anyOf: [{ type: 'boolean' }, { enum: ['hoisted'] }],
301
- },
302
- },
303
- additionalProperties: false,
304
- },
305
- },
306
- required: ['name', 'exposes'],
307
- };
308
- const schema39 = {
309
- anyOf: [
310
- {
311
- enum: [false],
312
- },
313
- {
314
- type: 'string',
315
- minLength: 1,
316
- },
317
- ],
318
- };
319
- const schema22 = {
320
- anyOf: [
321
- {
322
- type: 'array',
323
- items: {
324
- anyOf: [
33
+ ]),
34
+ !1);
35
+ if (e.length < 1)
36
+ return ((t.errors = [
325
37
  {
326
- $ref: '#/definitions/ExposesItem',
327
- },
328
- {
329
- $ref: '#/definitions/ExposesObject',
38
+ params: {},
330
39
  },
331
- ],
332
- },
333
- },
334
- {
335
- $ref: '#/definitions/ExposesObject',
336
- },
337
- ],
338
- };
339
- const schema23 = {
340
- type: 'string',
341
- minLength: 1,
342
- };
343
- const schema24 = {
344
- type: 'object',
345
- additionalProperties: {
346
- anyOf: [
347
- {
348
- $ref: '#/definitions/ExposesConfig',
349
- },
350
- {
351
- $ref: '#/definitions/ExposesItem',
352
- },
353
- {
354
- $ref: '#/definitions/ExposesItems',
355
- },
356
- ],
357
- },
358
- };
359
- const schema25 = {
360
- type: 'object',
361
- additionalProperties: false,
362
- properties: {
363
- import: {
364
- anyOf: [
365
- {
366
- $ref: '#/definitions/ExposesItem',
367
- },
368
- {
369
- $ref: '#/definitions/ExposesItems',
370
- },
371
- ],
372
- },
373
- name: {
374
- type: 'string',
375
- },
376
- },
377
- required: ['import'],
378
- };
379
- const schema27 = {
380
- type: 'array',
381
- items: {
382
- $ref: '#/definitions/ExposesItem',
383
- },
384
- };
385
- function validate23(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
386
- let vErrors = null;
387
- let errors = 0;
388
- if (errors === 0) {
389
- if (Array.isArray(data)) {
390
- var valid0 = true;
391
- const len0 = data.length;
392
- for (let i0 = 0; i0 < len0; i0++) {
393
- let data0 = data[i0];
394
- const _errs1 = errors;
395
- const _errs2 = errors;
396
- if (errors === _errs2) {
397
- if (typeof data0 === 'string') {
398
- if (data0.length < 1) {
399
- validate23.errors = [
400
- {
401
- params: {},
402
- },
403
- ];
404
- return false;
405
- }
406
- }
407
- else {
408
- validate23.errors = [
409
- {
410
- params: {
411
- type: 'string',
412
- },
413
- },
414
- ];
415
- return false;
416
- }
417
- }
418
- var valid0 = _errs1 === errors;
419
- if (!valid0) {
420
- break;
421
- }
422
- }
40
+ ]),
41
+ !1);
42
+ if (0 !== s)
43
+ break;
423
44
  }
424
- else {
425
- validate23.errors = [
45
+ }
46
+ return (t.errors = null), !0;
47
+ }
48
+ function e(r, { instancePath: n = '', parentData: s, parentDataProperty: a, rootData: o = r, } = {}) {
49
+ let i = null, l = 0;
50
+ if (0 === l) {
51
+ if (!r || 'object' != typeof r || Array.isArray(r))
52
+ return ((e.errors = [
426
53
  {
427
54
  params: {
428
- type: 'array',
55
+ type: 'object',
429
56
  },
430
57
  },
431
- ];
432
- return false;
433
- }
434
- }
435
- validate23.errors = vErrors;
436
- return errors === 0;
437
- }
438
- function validate22(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
439
- let vErrors = null;
440
- let errors = 0;
441
- if (errors === 0) {
442
- if (data && typeof data == 'object' && !Array.isArray(data)) {
443
- let missing0;
444
- if (data.import === undefined && (missing0 = 'import')) {
445
- validate22.errors = [
58
+ ]),
59
+ !1);
60
+ {
61
+ let s;
62
+ if (void 0 === r.import && (s = 'import'))
63
+ return ((e.errors = [
446
64
  {
447
65
  params: {
448
- missingProperty: missing0,
66
+ missingProperty: s,
449
67
  },
450
68
  },
451
- ];
452
- return false;
453
- }
454
- else {
455
- const _errs1 = errors;
456
- for (const key0 in data) {
457
- if (!(key0 === 'import' || key0 === 'name')) {
458
- validate22.errors = [
69
+ ]),
70
+ !1);
71
+ {
72
+ const s = l;
73
+ for (const t in r)
74
+ if ('import' !== t && 'name' !== t)
75
+ return ((e.errors = [
459
76
  {
460
77
  params: {
461
- additionalProperty: key0,
78
+ additionalProperty: t,
462
79
  },
463
80
  },
464
- ];
465
- return false;
466
- break;
467
- }
468
- }
469
- if (_errs1 === errors) {
470
- if (data.import !== undefined) {
471
- let data0 = data.import;
472
- const _errs2 = errors;
473
- const _errs3 = errors;
474
- let valid1 = false;
475
- const _errs4 = errors;
476
- const _errs5 = errors;
477
- if (errors === _errs5) {
478
- if (typeof data0 === 'string') {
479
- if (data0.length < 1) {
480
- const err0 = {
81
+ ]),
82
+ !1);
83
+ if (s === l) {
84
+ if (void 0 !== r.import) {
85
+ let s = r.import;
86
+ const a = l, u = l;
87
+ let c = !1;
88
+ const m = l;
89
+ if (l == l)
90
+ if ('string' == typeof s) {
91
+ if (s.length < 1) {
92
+ const r = {
481
93
  params: {},
482
94
  };
483
- if (vErrors === null) {
484
- vErrors = [err0];
485
- }
486
- else {
487
- vErrors.push(err0);
488
- }
489
- errors++;
95
+ null === i ? (i = [r]) : i.push(r), l++;
490
96
  }
491
97
  }
492
98
  else {
493
- const err1 = {
99
+ const r = {
494
100
  params: {
495
101
  type: 'string',
496
102
  },
497
103
  };
498
- if (vErrors === null) {
499
- vErrors = [err1];
500
- }
501
- else {
502
- vErrors.push(err1);
503
- }
504
- errors++;
104
+ null === i ? (i = [r]) : i.push(r), l++;
505
105
  }
506
- }
507
- var _valid0 = _errs4 === errors;
508
- valid1 = valid1 || _valid0;
509
- if (!valid1) {
510
- const _errs7 = errors;
511
- if (!validate23(data0, {
512
- instancePath: instancePath + '/import',
513
- parentData: data,
106
+ var p = m === l;
107
+ if (((c = c || p), !c)) {
108
+ const e = l;
109
+ t(s, {
110
+ instancePath: n + '/import',
111
+ parentData: r,
514
112
  parentDataProperty: 'import',
515
- rootData,
516
- })) {
517
- vErrors =
518
- vErrors === null
519
- ? validate23.errors
520
- : vErrors.concat(validate23.errors);
521
- errors = vErrors.length;
522
- }
523
- var _valid0 = _errs7 === errors;
524
- valid1 = valid1 || _valid0;
113
+ rootData: o,
114
+ }) ||
115
+ ((i = null === i ? t.errors : i.concat(t.errors)),
116
+ (l = i.length)),
117
+ (p = e === l),
118
+ (c = c || p);
525
119
  }
526
- if (!valid1) {
527
- const err2 = {
120
+ if (!c) {
121
+ const r = {
528
122
  params: {},
529
123
  };
530
- if (vErrors === null) {
531
- vErrors = [err2];
532
- }
533
- else {
534
- vErrors.push(err2);
535
- }
536
- errors++;
537
- validate22.errors = vErrors;
538
- return false;
124
+ return (null === i ? (i = [r]) : i.push(r), l++, (e.errors = i), !1);
539
125
  }
540
- else {
541
- errors = _errs3;
542
- if (vErrors !== null) {
543
- if (_errs3) {
544
- vErrors.length = _errs3;
545
- }
546
- else {
547
- vErrors = null;
548
- }
549
- }
550
- }
551
- var valid0 = _errs2 === errors;
126
+ (l = u), null !== i && (u ? (i.length = u) : (i = null));
127
+ var f = a === l;
552
128
  }
553
- else {
554
- var valid0 = true;
555
- }
556
- if (valid0) {
557
- if (data.name !== undefined) {
558
- const _errs8 = errors;
559
- if (typeof data.name !== 'string') {
560
- validate22.errors = [
129
+ else
130
+ f = !0;
131
+ if (f)
132
+ if (void 0 !== r.name) {
133
+ const t = l;
134
+ if ('string' != typeof r.name)
135
+ return ((e.errors = [
561
136
  {
562
137
  params: {
563
138
  type: 'string',
564
139
  },
565
140
  },
566
- ];
567
- return false;
568
- }
569
- var valid0 = _errs8 === errors;
141
+ ]),
142
+ !1);
143
+ f = t === l;
570
144
  }
571
- else {
572
- var valid0 = true;
573
- }
574
- }
145
+ else
146
+ f = !0;
575
147
  }
576
148
  }
577
149
  }
578
- else {
579
- validate22.errors = [
150
+ }
151
+ return (e.errors = i), 0 === l;
152
+ }
153
+ function n(r, { instancePath: s = '', parentData: a, parentDataProperty: o, rootData: i = r, } = {}) {
154
+ let l = null, p = 0;
155
+ if (0 === p) {
156
+ if (!r || 'object' != typeof r || Array.isArray(r))
157
+ return ((n.errors = [
580
158
  {
581
159
  params: {
582
160
  type: 'object',
583
161
  },
584
162
  },
585
- ];
586
- return false;
587
- }
588
- }
589
- validate22.errors = vErrors;
590
- return errors === 0;
591
- }
592
- function validate21(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
593
- let vErrors = null;
594
- let errors = 0;
595
- if (errors === 0) {
596
- if (data && typeof data == 'object' && !Array.isArray(data)) {
597
- for (const key0 in data) {
598
- let data0 = data[key0];
599
- const _errs2 = errors;
600
- const _errs3 = errors;
601
- let valid1 = false;
602
- const _errs4 = errors;
603
- if (!validate22(data0, {
604
- instancePath: instancePath +
605
- '/' +
606
- key0.replace(/~/g, '~0').replace(/\//g, '~1'),
607
- parentData: data,
608
- parentDataProperty: key0,
609
- rootData,
610
- })) {
611
- vErrors =
612
- vErrors === null
613
- ? validate22.errors
614
- : vErrors.concat(validate22.errors);
615
- errors = vErrors.length;
616
- }
617
- var _valid0 = _errs4 === errors;
618
- valid1 = valid1 || _valid0;
619
- if (!valid1) {
620
- const _errs5 = errors;
621
- const _errs6 = errors;
622
- if (errors === _errs6) {
623
- if (typeof data0 === 'string') {
624
- if (data0.length < 1) {
625
- const err0 = {
626
- params: {},
627
- };
628
- if (vErrors === null) {
629
- vErrors = [err0];
630
- }
631
- else {
632
- vErrors.push(err0);
633
- }
634
- errors++;
635
- }
636
- }
637
- else {
638
- const err1 = {
639
- params: {
640
- type: 'string',
641
- },
163
+ ]),
164
+ !1);
165
+ for (const a in r) {
166
+ let o = r[a];
167
+ const u = p, c = p;
168
+ let m = !1;
169
+ const y = p;
170
+ e(o, {
171
+ instancePath: s + '/' + a.replace(/~/g, '~0').replace(/\//g, '~1'),
172
+ parentData: r,
173
+ parentDataProperty: a,
174
+ rootData: i,
175
+ }) || ((l = null === l ? e.errors : l.concat(e.errors)), (p = l.length));
176
+ var f = y === p;
177
+ if (((m = m || f), !m)) {
178
+ const e = p;
179
+ if (p == p)
180
+ if ('string' == typeof o) {
181
+ if (o.length < 1) {
182
+ const r = {
183
+ params: {},
642
184
  };
643
- if (vErrors === null) {
644
- vErrors = [err1];
645
- }
646
- else {
647
- vErrors.push(err1);
648
- }
649
- errors++;
185
+ null === l ? (l = [r]) : l.push(r), p++;
650
186
  }
651
187
  }
652
- var _valid0 = _errs5 === errors;
653
- valid1 = valid1 || _valid0;
654
- if (!valid1) {
655
- const _errs8 = errors;
656
- if (!validate23(data0, {
657
- instancePath: instancePath +
658
- '/' +
659
- key0.replace(/~/g, '~0').replace(/\//g, '~1'),
660
- parentData: data,
661
- parentDataProperty: key0,
662
- rootData,
663
- })) {
664
- vErrors =
665
- vErrors === null
666
- ? validate23.errors
667
- : vErrors.concat(validate23.errors);
668
- errors = vErrors.length;
669
- }
670
- var _valid0 = _errs8 === errors;
671
- valid1 = valid1 || _valid0;
672
- }
673
- }
674
- if (!valid1) {
675
- const err2 = {
676
- params: {},
677
- };
678
- if (vErrors === null) {
679
- vErrors = [err2];
680
- }
681
188
  else {
682
- vErrors.push(err2);
683
- }
684
- errors++;
685
- validate21.errors = vErrors;
686
- return false;
687
- }
688
- else {
689
- errors = _errs3;
690
- if (vErrors !== null) {
691
- if (_errs3) {
692
- vErrors.length = _errs3;
693
- }
694
- else {
695
- vErrors = null;
696
- }
189
+ const r = {
190
+ params: {
191
+ type: 'string',
192
+ },
193
+ };
194
+ null === l ? (l = [r]) : l.push(r), p++;
697
195
  }
698
- }
699
- var valid0 = _errs2 === errors;
700
- if (!valid0) {
701
- break;
196
+ if (((f = e === p), (m = m || f), !m)) {
197
+ const e = p;
198
+ t(o, {
199
+ instancePath: s + '/' + a.replace(/~/g, '~0').replace(/\//g, '~1'),
200
+ parentData: r,
201
+ parentDataProperty: a,
202
+ rootData: i,
203
+ }) ||
204
+ ((l = null === l ? t.errors : l.concat(t.errors)), (p = l.length)),
205
+ (f = e === p),
206
+ (m = m || f);
702
207
  }
703
208
  }
704
- }
705
- else {
706
- validate21.errors = [
707
- {
708
- params: {
709
- type: 'object',
710
- },
711
- },
712
- ];
713
- return false;
209
+ if (!m) {
210
+ const r = {
211
+ params: {},
212
+ };
213
+ return null === l ? (l = [r]) : l.push(r), p++, (n.errors = l), !1;
214
+ }
215
+ if (((p = c), null !== l && (c ? (l.length = c) : (l = null)), u !== p))
216
+ break;
714
217
  }
715
218
  }
716
- validate21.errors = vErrors;
717
- return errors === 0;
219
+ return (n.errors = l), 0 === p;
718
220
  }
719
- function validate20(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
720
- let vErrors = null;
721
- let errors = 0;
722
- const _errs0 = errors;
723
- let valid0 = false;
724
- const _errs1 = errors;
725
- if (errors === _errs1) {
726
- if (Array.isArray(data)) {
727
- var valid1 = true;
728
- const len0 = data.length;
729
- for (let i0 = 0; i0 < len0; i0++) {
730
- let data0 = data[i0];
731
- const _errs3 = errors;
732
- const _errs4 = errors;
733
- let valid2 = false;
734
- const _errs5 = errors;
735
- const _errs6 = errors;
736
- if (errors === _errs6) {
737
- if (typeof data0 === 'string') {
738
- if (data0.length < 1) {
739
- const err0 = {
221
+ function s(r, { instancePath: t = '', parentData: e, parentDataProperty: a, rootData: o = r, } = {}) {
222
+ let i = null, l = 0;
223
+ const p = l;
224
+ let f = !1;
225
+ const u = l;
226
+ if (l === u)
227
+ if (Array.isArray(r)) {
228
+ const e = r.length;
229
+ for (let s = 0; s < e; s++) {
230
+ let e = r[s];
231
+ const a = l, p = l;
232
+ let f = !1;
233
+ const u = l;
234
+ if (l == l)
235
+ if ('string' == typeof e) {
236
+ if (e.length < 1) {
237
+ const r = {
740
238
  params: {},
741
239
  };
742
- if (vErrors === null) {
743
- vErrors = [err0];
744
- }
745
- else {
746
- vErrors.push(err0);
747
- }
748
- errors++;
240
+ null === i ? (i = [r]) : i.push(r), l++;
749
241
  }
750
242
  }
751
243
  else {
752
- const err1 = {
244
+ const r = {
753
245
  params: {
754
246
  type: 'string',
755
247
  },
756
248
  };
757
- if (vErrors === null) {
758
- vErrors = [err1];
759
- }
760
- else {
761
- vErrors.push(err1);
762
- }
763
- errors++;
249
+ null === i ? (i = [r]) : i.push(r), l++;
764
250
  }
251
+ var c = u === l;
252
+ if (((f = f || c), !f)) {
253
+ const a = l;
254
+ n(e, {
255
+ instancePath: t + '/' + s,
256
+ parentData: r,
257
+ parentDataProperty: s,
258
+ rootData: o,
259
+ }) ||
260
+ ((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
261
+ (c = a === l),
262
+ (f = f || c);
765
263
  }
766
- var _valid1 = _errs5 === errors;
767
- valid2 = valid2 || _valid1;
768
- if (!valid2) {
769
- const _errs8 = errors;
770
- if (!validate21(data0, {
771
- instancePath: instancePath + '/' + i0,
772
- parentData: data,
773
- parentDataProperty: i0,
774
- rootData,
775
- })) {
776
- vErrors =
777
- vErrors === null
778
- ? validate21.errors
779
- : vErrors.concat(validate21.errors);
780
- errors = vErrors.length;
781
- }
782
- var _valid1 = _errs8 === errors;
783
- valid2 = valid2 || _valid1;
784
- }
785
- if (!valid2) {
786
- const err2 = {
264
+ if (f)
265
+ (l = p), null !== i && (p ? (i.length = p) : (i = null));
266
+ else {
267
+ const r = {
787
268
  params: {},
788
269
  };
789
- if (vErrors === null) {
790
- vErrors = [err2];
791
- }
792
- else {
793
- vErrors.push(err2);
794
- }
795
- errors++;
270
+ null === i ? (i = [r]) : i.push(r), l++;
796
271
  }
797
- else {
798
- errors = _errs4;
799
- if (vErrors !== null) {
800
- if (_errs4) {
801
- vErrors.length = _errs4;
802
- }
803
- else {
804
- vErrors = null;
805
- }
806
- }
807
- }
808
- var valid1 = _errs3 === errors;
809
- if (!valid1) {
272
+ if (a !== l)
810
273
  break;
811
- }
812
274
  }
813
275
  }
814
276
  else {
815
- const err3 = {
277
+ const r = {
816
278
  params: {
817
279
  type: 'array',
818
280
  },
819
281
  };
820
- if (vErrors === null) {
821
- vErrors = [err3];
822
- }
823
- else {
824
- vErrors.push(err3);
825
- }
826
- errors++;
282
+ null === i ? (i = [r]) : i.push(r), l++;
827
283
  }
284
+ var m = u === l;
285
+ if (((f = f || m), !f)) {
286
+ const s = l;
287
+ n(r, {
288
+ instancePath: t,
289
+ parentData: e,
290
+ parentDataProperty: a,
291
+ rootData: o,
292
+ }) || ((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
293
+ (m = s === l),
294
+ (f = f || m);
828
295
  }
829
- var _valid0 = _errs1 === errors;
830
- valid0 = valid0 || _valid0;
831
- if (!valid0) {
832
- const _errs9 = errors;
833
- if (!validate21(data, {
834
- instancePath,
835
- parentData,
836
- parentDataProperty,
837
- rootData,
838
- })) {
839
- vErrors =
840
- vErrors === null
841
- ? validate21.errors
842
- : vErrors.concat(validate21.errors);
843
- errors = vErrors.length;
844
- }
845
- var _valid0 = _errs9 === errors;
846
- valid0 = valid0 || _valid0;
847
- }
848
- if (!valid0) {
849
- const err4 = {
296
+ if (!f) {
297
+ const r = {
850
298
  params: {},
851
299
  };
852
- if (vErrors === null) {
853
- vErrors = [err4];
854
- }
855
- else {
856
- vErrors.push(err4);
857
- }
858
- errors++;
859
- validate20.errors = vErrors;
860
- return false;
861
- }
862
- else {
863
- errors = _errs0;
864
- if (vErrors !== null) {
865
- if (_errs0) {
866
- vErrors.length = _errs0;
867
- }
868
- else {
869
- vErrors = null;
870
- }
871
- }
300
+ return null === i ? (i = [r]) : i.push(r), l++, (s.errors = i), !1;
872
301
  }
873
- validate20.errors = vErrors;
874
- return errors === 0;
302
+ return ((l = p),
303
+ null !== i && (p ? (i.length = p) : (i = null)),
304
+ (s.errors = i),
305
+ 0 === l);
875
306
  }
876
- const schema30 = {
877
- type: 'object',
878
- additionalProperties: false,
879
- properties: {
880
- amdContainer: {
881
- $ref: '#/definitions/AmdContainer',
882
- },
883
- auxiliaryComment: {
884
- $ref: '#/definitions/AuxiliaryComment',
885
- },
886
- export: {
887
- $ref: '#/definitions/LibraryExport',
888
- },
889
- name: {
890
- $ref: '#/definitions/LibraryName',
891
- },
892
- type: {
893
- $ref: '#/definitions/LibraryType',
894
- },
895
- umdNamedDefine: {
896
- $ref: '#/definitions/UmdNamedDefine',
897
- },
898
- },
899
- required: ['type'],
900
- };
901
- const schema31 = {
902
- type: 'string',
903
- minLength: 1,
904
- };
905
- const schema34 = {
906
- anyOf: [
907
- {
908
- type: 'array',
909
- items: {
910
- type: 'string',
911
- minLength: 1,
912
- },
913
- },
914
- {
915
- type: 'string',
916
- minLength: 1,
917
- },
918
- ],
919
- };
920
- const schema37 = {
921
- anyOf: [
922
- {
923
- enum: [
924
- 'var',
925
- 'module',
926
- 'assign',
927
- 'assign-properties',
928
- 'this',
929
- 'window',
930
- 'self',
931
- 'global',
932
- 'commonjs',
933
- 'commonjs2',
934
- 'commonjs-module',
935
- 'commonjs-static',
936
- 'amd',
937
- 'amd-require',
938
- 'umd',
939
- 'umd2',
940
- 'jsonp',
941
- 'system',
942
- ],
943
- },
944
- {
945
- type: 'string',
946
- },
947
- ],
948
- };
949
- const schema38 = {
950
- type: 'boolean',
951
- };
952
- const schema32 = {
953
- anyOf: [
954
- {
955
- type: 'string',
956
- },
957
- {
958
- $ref: '#/definitions/LibraryCustomUmdCommentObject',
959
- },
960
- ],
961
- };
962
- const schema33 = {
963
- type: 'object',
964
- additionalProperties: false,
965
- properties: {
966
- amd: {
967
- type: 'string',
968
- },
969
- commonjs: {
970
- type: 'string',
971
- },
972
- commonjs2: {
973
- type: 'string',
974
- },
975
- root: {
976
- type: 'string',
977
- },
978
- },
979
- };
980
- function validate31(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
981
- let vErrors = null;
982
- let errors = 0;
983
- const _errs0 = errors;
984
- let valid0 = false;
985
- const _errs1 = errors;
986
- if (typeof data !== 'string') {
987
- const err0 = {
307
+ function a(r, { instancePath: t = '', parentData: e, parentDataProperty: n, rootData: s = r, } = {}) {
308
+ let o = null, i = 0;
309
+ const l = i;
310
+ let p = !1;
311
+ const f = i;
312
+ if ('string' != typeof r) {
313
+ const r = {
988
314
  params: {
989
315
  type: 'string',
990
316
  },
991
317
  };
992
- if (vErrors === null) {
993
- vErrors = [err0];
994
- }
995
- else {
996
- vErrors.push(err0);
997
- }
998
- errors++;
318
+ null === o ? (o = [r]) : o.push(r), i++;
999
319
  }
1000
- var _valid0 = _errs1 === errors;
1001
- valid0 = valid0 || _valid0;
1002
- if (!valid0) {
1003
- const _errs3 = errors;
1004
- const _errs4 = errors;
1005
- if (errors === _errs4) {
1006
- if (data && typeof data == 'object' && !Array.isArray(data)) {
1007
- const _errs6 = errors;
1008
- for (const key0 in data) {
1009
- if (!(key0 === 'amd' ||
1010
- key0 === 'commonjs' ||
1011
- key0 === 'commonjs2' ||
1012
- key0 === 'root')) {
1013
- const err1 = {
320
+ var u = f === i;
321
+ if (((p = p || u), !p)) {
322
+ const t = i;
323
+ if (i == i)
324
+ if (r && 'object' == typeof r && !Array.isArray(r)) {
325
+ const t = i;
326
+ for (const t in r)
327
+ if ('amd' !== t &&
328
+ 'commonjs' !== t &&
329
+ 'commonjs2' !== t &&
330
+ 'root' !== t) {
331
+ const r = {
1014
332
  params: {
1015
- additionalProperty: key0,
333
+ additionalProperty: t,
1016
334
  },
1017
335
  };
1018
- if (vErrors === null) {
1019
- vErrors = [err1];
1020
- }
1021
- else {
1022
- vErrors.push(err1);
1023
- }
1024
- errors++;
336
+ null === o ? (o = [r]) : o.push(r), i++;
1025
337
  break;
1026
338
  }
1027
- }
1028
- if (_errs6 === errors) {
1029
- if (data.amd !== undefined) {
1030
- const _errs7 = errors;
1031
- if (typeof data.amd !== 'string') {
1032
- const err2 = {
339
+ if (t === i) {
340
+ if (void 0 !== r.amd) {
341
+ const t = i;
342
+ if ('string' != typeof r.amd) {
343
+ const r = {
1033
344
  params: {
1034
345
  type: 'string',
1035
346
  },
1036
347
  };
1037
- if (vErrors === null) {
1038
- vErrors = [err2];
1039
- }
1040
- else {
1041
- vErrors.push(err2);
1042
- }
1043
- errors++;
348
+ null === o ? (o = [r]) : o.push(r), i++;
1044
349
  }
1045
- var valid2 = _errs7 === errors;
1046
- }
1047
- else {
1048
- var valid2 = true;
350
+ var c = t === i;
1049
351
  }
1050
- if (valid2) {
1051
- if (data.commonjs !== undefined) {
1052
- const _errs9 = errors;
1053
- if (typeof data.commonjs !== 'string') {
1054
- const err3 = {
352
+ else
353
+ c = !0;
354
+ if (c) {
355
+ if (void 0 !== r.commonjs) {
356
+ const t = i;
357
+ if ('string' != typeof r.commonjs) {
358
+ const r = {
1055
359
  params: {
1056
360
  type: 'string',
1057
361
  },
1058
362
  };
1059
- if (vErrors === null) {
1060
- vErrors = [err3];
1061
- }
1062
- else {
1063
- vErrors.push(err3);
1064
- }
1065
- errors++;
363
+ null === o ? (o = [r]) : o.push(r), i++;
1066
364
  }
1067
- var valid2 = _errs9 === errors;
365
+ c = t === i;
1068
366
  }
1069
- else {
1070
- var valid2 = true;
1071
- }
1072
- if (valid2) {
1073
- if (data.commonjs2 !== undefined) {
1074
- const _errs11 = errors;
1075
- if (typeof data.commonjs2 !== 'string') {
1076
- const err4 = {
367
+ else
368
+ c = !0;
369
+ if (c) {
370
+ if (void 0 !== r.commonjs2) {
371
+ const t = i;
372
+ if ('string' != typeof r.commonjs2) {
373
+ const r = {
1077
374
  params: {
1078
375
  type: 'string',
1079
376
  },
1080
377
  };
1081
- if (vErrors === null) {
1082
- vErrors = [err4];
1083
- }
1084
- else {
1085
- vErrors.push(err4);
1086
- }
1087
- errors++;
378
+ null === o ? (o = [r]) : o.push(r), i++;
1088
379
  }
1089
- var valid2 = _errs11 === errors;
1090
- }
1091
- else {
1092
- var valid2 = true;
380
+ c = t === i;
1093
381
  }
1094
- if (valid2) {
1095
- if (data.root !== undefined) {
1096
- const _errs13 = errors;
1097
- if (typeof data.root !== 'string') {
1098
- const err5 = {
382
+ else
383
+ c = !0;
384
+ if (c)
385
+ if (void 0 !== r.root) {
386
+ const t = i;
387
+ if ('string' != typeof r.root) {
388
+ const r = {
1099
389
  params: {
1100
390
  type: 'string',
1101
391
  },
1102
392
  };
1103
- if (vErrors === null) {
1104
- vErrors = [err5];
1105
- }
1106
- else {
1107
- vErrors.push(err5);
1108
- }
1109
- errors++;
393
+ null === o ? (o = [r]) : o.push(r), i++;
1110
394
  }
1111
- var valid2 = _errs13 === errors;
395
+ c = t === i;
1112
396
  }
1113
- else {
1114
- var valid2 = true;
1115
- }
1116
- }
397
+ else
398
+ c = !0;
1117
399
  }
1118
400
  }
1119
401
  }
1120
402
  }
1121
403
  else {
1122
- const err6 = {
404
+ const r = {
1123
405
  params: {
1124
406
  type: 'object',
1125
407
  },
1126
408
  };
1127
- if (vErrors === null) {
1128
- vErrors = [err6];
1129
- }
1130
- else {
1131
- vErrors.push(err6);
1132
- }
1133
- errors++;
409
+ null === o ? (o = [r]) : o.push(r), i++;
1134
410
  }
1135
- }
1136
- var _valid0 = _errs3 === errors;
1137
- valid0 = valid0 || _valid0;
411
+ (u = t === i), (p = p || u);
1138
412
  }
1139
- if (!valid0) {
1140
- const err7 = {
413
+ if (!p) {
414
+ const r = {
1141
415
  params: {},
1142
416
  };
1143
- if (vErrors === null) {
1144
- vErrors = [err7];
1145
- }
1146
- else {
1147
- vErrors.push(err7);
1148
- }
1149
- errors++;
1150
- validate31.errors = vErrors;
1151
- return false;
1152
- }
1153
- else {
1154
- errors = _errs0;
1155
- if (vErrors !== null) {
1156
- if (_errs0) {
1157
- vErrors.length = _errs0;
1158
- }
1159
- else {
1160
- vErrors = null;
1161
- }
1162
- }
417
+ return null === o ? (o = [r]) : o.push(r), i++, (a.errors = o), !1;
1163
418
  }
1164
- validate31.errors = vErrors;
1165
- return errors === 0;
419
+ return ((i = l),
420
+ null !== o && (l ? (o.length = l) : (o = null)),
421
+ (a.errors = o),
422
+ 0 === i);
1166
423
  }
1167
- const schema35 = {
1168
- anyOf: [
1169
- {
1170
- type: 'array',
1171
- items: {
1172
- type: 'string',
1173
- minLength: 1,
1174
- },
1175
- minItems: 1,
1176
- },
1177
- {
1178
- type: 'string',
1179
- minLength: 1,
1180
- },
1181
- {
1182
- $ref: '#/definitions/LibraryCustomUmdObject',
1183
- },
1184
- ],
1185
- };
1186
- const schema36 = {
1187
- type: 'object',
1188
- additionalProperties: false,
1189
- properties: {
1190
- amd: {
1191
- type: 'string',
1192
- minLength: 1,
1193
- },
1194
- commonjs: {
1195
- type: 'string',
1196
- minLength: 1,
1197
- },
1198
- root: {
1199
- anyOf: [
1200
- {
1201
- type: 'array',
1202
- items: {
1203
- type: 'string',
1204
- minLength: 1,
1205
- },
1206
- },
1207
- {
1208
- type: 'string',
1209
- minLength: 1,
1210
- },
1211
- ],
1212
- },
1213
- },
1214
- };
1215
- function validate33(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
1216
- let vErrors = null;
1217
- let errors = 0;
1218
- const _errs0 = errors;
1219
- let valid0 = false;
1220
- const _errs1 = errors;
1221
- if (errors === _errs1) {
1222
- if (Array.isArray(data)) {
1223
- if (data.length < 1) {
1224
- const err0 = {
424
+ function o(r, { instancePath: t = '', parentData: e, parentDataProperty: n, rootData: s = r, } = {}) {
425
+ let a = null, i = 0;
426
+ const l = i;
427
+ let p = !1;
428
+ const f = i;
429
+ if (i === f)
430
+ if (Array.isArray(r))
431
+ if (r.length < 1) {
432
+ const r = {
1225
433
  params: {
1226
434
  limit: 1,
1227
435
  },
1228
436
  };
1229
- if (vErrors === null) {
1230
- vErrors = [err0];
1231
- }
1232
- else {
1233
- vErrors.push(err0);
1234
- }
1235
- errors++;
437
+ null === a ? (a = [r]) : a.push(r), i++;
1236
438
  }
1237
439
  else {
1238
- var valid1 = true;
1239
- const len0 = data.length;
1240
- for (let i0 = 0; i0 < len0; i0++) {
1241
- let data0 = data[i0];
1242
- const _errs3 = errors;
1243
- if (errors === _errs3) {
1244
- if (typeof data0 === 'string') {
1245
- if (data0.length < 1) {
1246
- const err1 = {
440
+ const t = r.length;
441
+ for (let e = 0; e < t; e++) {
442
+ let t = r[e];
443
+ const n = i;
444
+ if (i === n)
445
+ if ('string' == typeof t) {
446
+ if (t.length < 1) {
447
+ const r = {
1247
448
  params: {},
1248
449
  };
1249
- if (vErrors === null) {
1250
- vErrors = [err1];
1251
- }
1252
- else {
1253
- vErrors.push(err1);
1254
- }
1255
- errors++;
450
+ null === a ? (a = [r]) : a.push(r), i++;
1256
451
  }
1257
452
  }
1258
453
  else {
1259
- const err2 = {
454
+ const r = {
1260
455
  params: {
1261
456
  type: 'string',
1262
457
  },
1263
458
  };
1264
- if (vErrors === null) {
1265
- vErrors = [err2];
1266
- }
1267
- else {
1268
- vErrors.push(err2);
1269
- }
1270
- errors++;
459
+ null === a ? (a = [r]) : a.push(r), i++;
1271
460
  }
1272
- }
1273
- var valid1 = _errs3 === errors;
1274
- if (!valid1) {
461
+ if (n !== i)
1275
462
  break;
1276
- }
1277
463
  }
1278
464
  }
1279
- }
1280
465
  else {
1281
- const err3 = {
466
+ const r = {
1282
467
  params: {
1283
468
  type: 'array',
1284
469
  },
1285
470
  };
1286
- if (vErrors === null) {
1287
- vErrors = [err3];
1288
- }
1289
- else {
1290
- vErrors.push(err3);
1291
- }
1292
- errors++;
471
+ null === a ? (a = [r]) : a.push(r), i++;
1293
472
  }
1294
- }
1295
- var _valid0 = _errs1 === errors;
1296
- valid0 = valid0 || _valid0;
1297
- if (!valid0) {
1298
- const _errs5 = errors;
1299
- if (errors === _errs5) {
1300
- if (typeof data === 'string') {
1301
- if (data.length < 1) {
1302
- const err4 = {
473
+ var u = f === i;
474
+ if (((p = p || u), !p)) {
475
+ const t = i;
476
+ if (i === t)
477
+ if ('string' == typeof r) {
478
+ if (r.length < 1) {
479
+ const r = {
1303
480
  params: {},
1304
481
  };
1305
- if (vErrors === null) {
1306
- vErrors = [err4];
1307
- }
1308
- else {
1309
- vErrors.push(err4);
1310
- }
1311
- errors++;
482
+ null === a ? (a = [r]) : a.push(r), i++;
1312
483
  }
1313
484
  }
1314
485
  else {
1315
- const err5 = {
486
+ const r = {
1316
487
  params: {
1317
488
  type: 'string',
1318
489
  },
1319
490
  };
1320
- if (vErrors === null) {
1321
- vErrors = [err5];
1322
- }
1323
- else {
1324
- vErrors.push(err5);
1325
- }
1326
- errors++;
491
+ null === a ? (a = [r]) : a.push(r), i++;
1327
492
  }
1328
- }
1329
- var _valid0 = _errs5 === errors;
1330
- valid0 = valid0 || _valid0;
1331
- if (!valid0) {
1332
- const _errs7 = errors;
1333
- const _errs8 = errors;
1334
- if (errors === _errs8) {
1335
- if (data && typeof data == 'object' && !Array.isArray(data)) {
1336
- const _errs10 = errors;
1337
- for (const key0 in data) {
1338
- if (!(key0 === 'amd' || key0 === 'commonjs' || key0 === 'root')) {
1339
- const err6 = {
493
+ if (((u = t === i), (p = p || u), !p)) {
494
+ const t = i;
495
+ if (i == i)
496
+ if (r && 'object' == typeof r && !Array.isArray(r)) {
497
+ const t = i;
498
+ for (const t in r)
499
+ if ('amd' !== t && 'commonjs' !== t && 'root' !== t) {
500
+ const r = {
1340
501
  params: {
1341
- additionalProperty: key0,
502
+ additionalProperty: t,
1342
503
  },
1343
504
  };
1344
- if (vErrors === null) {
1345
- vErrors = [err6];
1346
- }
1347
- else {
1348
- vErrors.push(err6);
1349
- }
1350
- errors++;
505
+ null === a ? (a = [r]) : a.push(r), i++;
1351
506
  break;
1352
507
  }
1353
- }
1354
- if (_errs10 === errors) {
1355
- if (data.amd !== undefined) {
1356
- let data1 = data.amd;
1357
- const _errs11 = errors;
1358
- if (errors === _errs11) {
1359
- if (typeof data1 === 'string') {
1360
- if (data1.length < 1) {
1361
- const err7 = {
508
+ if (t === i) {
509
+ if (void 0 !== r.amd) {
510
+ let t = r.amd;
511
+ const e = i;
512
+ if (i === e)
513
+ if ('string' == typeof t) {
514
+ if (t.length < 1) {
515
+ const r = {
1362
516
  params: {},
1363
517
  };
1364
- if (vErrors === null) {
1365
- vErrors = [err7];
1366
- }
1367
- else {
1368
- vErrors.push(err7);
1369
- }
1370
- errors++;
518
+ null === a ? (a = [r]) : a.push(r), i++;
1371
519
  }
1372
520
  }
1373
521
  else {
1374
- const err8 = {
522
+ const r = {
1375
523
  params: {
1376
524
  type: 'string',
1377
525
  },
1378
526
  };
1379
- if (vErrors === null) {
1380
- vErrors = [err8];
1381
- }
1382
- else {
1383
- vErrors.push(err8);
1384
- }
1385
- errors++;
527
+ null === a ? (a = [r]) : a.push(r), i++;
1386
528
  }
1387
- }
1388
- var valid3 = _errs11 === errors;
529
+ var c = e === i;
1389
530
  }
1390
- else {
1391
- var valid3 = true;
1392
- }
1393
- if (valid3) {
1394
- if (data.commonjs !== undefined) {
1395
- let data2 = data.commonjs;
1396
- const _errs13 = errors;
1397
- if (errors === _errs13) {
1398
- if (typeof data2 === 'string') {
1399
- if (data2.length < 1) {
1400
- const err9 = {
531
+ else
532
+ c = !0;
533
+ if (c) {
534
+ if (void 0 !== r.commonjs) {
535
+ let t = r.commonjs;
536
+ const e = i;
537
+ if (i === e)
538
+ if ('string' == typeof t) {
539
+ if (t.length < 1) {
540
+ const r = {
1401
541
  params: {},
1402
542
  };
1403
- if (vErrors === null) {
1404
- vErrors = [err9];
1405
- }
1406
- else {
1407
- vErrors.push(err9);
1408
- }
1409
- errors++;
543
+ null === a ? (a = [r]) : a.push(r), i++;
1410
544
  }
1411
545
  }
1412
546
  else {
1413
- const err10 = {
547
+ const r = {
1414
548
  params: {
1415
549
  type: 'string',
1416
550
  },
1417
551
  };
1418
- if (vErrors === null) {
1419
- vErrors = [err10];
1420
- }
1421
- else {
1422
- vErrors.push(err10);
1423
- }
1424
- errors++;
552
+ null === a ? (a = [r]) : a.push(r), i++;
1425
553
  }
1426
- }
1427
- var valid3 = _errs13 === errors;
554
+ c = e === i;
1428
555
  }
1429
- else {
1430
- var valid3 = true;
1431
- }
1432
- if (valid3) {
1433
- if (data.root !== undefined) {
1434
- let data3 = data.root;
1435
- const _errs15 = errors;
1436
- const _errs16 = errors;
1437
- let valid4 = false;
1438
- const _errs17 = errors;
1439
- if (errors === _errs17) {
1440
- if (Array.isArray(data3)) {
1441
- var valid5 = true;
1442
- const len1 = data3.length;
1443
- for (let i1 = 0; i1 < len1; i1++) {
1444
- let data4 = data3[i1];
1445
- const _errs19 = errors;
1446
- if (errors === _errs19) {
1447
- if (typeof data4 === 'string') {
1448
- if (data4.length < 1) {
1449
- const err11 = {
556
+ else
557
+ c = !0;
558
+ if (c)
559
+ if (void 0 !== r.root) {
560
+ let t = r.root;
561
+ const e = i, n = i;
562
+ let s = !1;
563
+ const o = i;
564
+ if (i === o)
565
+ if (Array.isArray(t)) {
566
+ const r = t.length;
567
+ for (let e = 0; e < r; e++) {
568
+ let r = t[e];
569
+ const n = i;
570
+ if (i === n)
571
+ if ('string' == typeof r) {
572
+ if (r.length < 1) {
573
+ const r = {
1450
574
  params: {},
1451
575
  };
1452
- if (vErrors === null) {
1453
- vErrors = [err11];
1454
- }
1455
- else {
1456
- vErrors.push(err11);
1457
- }
1458
- errors++;
576
+ null === a ? (a = [r]) : a.push(r), i++;
1459
577
  }
1460
578
  }
1461
579
  else {
1462
- const err12 = {
580
+ const r = {
1463
581
  params: {
1464
582
  type: 'string',
1465
583
  },
1466
584
  };
1467
- if (vErrors === null) {
1468
- vErrors = [err12];
1469
- }
1470
- else {
1471
- vErrors.push(err12);
1472
- }
1473
- errors++;
585
+ null === a ? (a = [r]) : a.push(r), i++;
1474
586
  }
1475
- }
1476
- var valid5 = _errs19 === errors;
1477
- if (!valid5) {
587
+ if (n !== i)
1478
588
  break;
1479
- }
1480
589
  }
1481
590
  }
1482
591
  else {
1483
- const err13 = {
592
+ const r = {
1484
593
  params: {
1485
594
  type: 'array',
1486
595
  },
1487
596
  };
1488
- if (vErrors === null) {
1489
- vErrors = [err13];
1490
- }
1491
- else {
1492
- vErrors.push(err13);
1493
- }
1494
- errors++;
597
+ null === a ? (a = [r]) : a.push(r), i++;
1495
598
  }
1496
- }
1497
- var _valid1 = _errs17 === errors;
1498
- valid4 = valid4 || _valid1;
1499
- if (!valid4) {
1500
- const _errs21 = errors;
1501
- if (errors === _errs21) {
1502
- if (typeof data3 === 'string') {
1503
- if (data3.length < 1) {
1504
- const err14 = {
599
+ var m = o === i;
600
+ if (((s = s || m), !s)) {
601
+ const r = i;
602
+ if (i === r)
603
+ if ('string' == typeof t) {
604
+ if (t.length < 1) {
605
+ const r = {
1505
606
  params: {},
1506
607
  };
1507
- if (vErrors === null) {
1508
- vErrors = [err14];
1509
- }
1510
- else {
1511
- vErrors.push(err14);
1512
- }
1513
- errors++;
608
+ null === a ? (a = [r]) : a.push(r), i++;
1514
609
  }
1515
610
  }
1516
611
  else {
1517
- const err15 = {
612
+ const r = {
1518
613
  params: {
1519
614
  type: 'string',
1520
615
  },
1521
616
  };
1522
- if (vErrors === null) {
1523
- vErrors = [err15];
1524
- }
1525
- else {
1526
- vErrors.push(err15);
1527
- }
1528
- errors++;
617
+ null === a ? (a = [r]) : a.push(r), i++;
1529
618
  }
1530
- }
1531
- var _valid1 = _errs21 === errors;
1532
- valid4 = valid4 || _valid1;
619
+ (m = r === i), (s = s || m);
1533
620
  }
1534
- if (!valid4) {
1535
- const err16 = {
621
+ if (s)
622
+ (i = n), null !== a && (n ? (a.length = n) : (a = null));
623
+ else {
624
+ const r = {
1536
625
  params: {},
1537
626
  };
1538
- if (vErrors === null) {
1539
- vErrors = [err16];
1540
- }
1541
- else {
1542
- vErrors.push(err16);
1543
- }
1544
- errors++;
627
+ null === a ? (a = [r]) : a.push(r), i++;
1545
628
  }
1546
- else {
1547
- errors = _errs16;
1548
- if (vErrors !== null) {
1549
- if (_errs16) {
1550
- vErrors.length = _errs16;
1551
- }
1552
- else {
1553
- vErrors = null;
1554
- }
1555
- }
1556
- }
1557
- var valid3 = _errs15 === errors;
1558
- }
1559
- else {
1560
- var valid3 = true;
629
+ c = e === i;
1561
630
  }
1562
- }
631
+ else
632
+ c = !0;
1563
633
  }
1564
634
  }
1565
635
  }
1566
636
  else {
1567
- const err17 = {
637
+ const r = {
1568
638
  params: {
1569
639
  type: 'object',
1570
640
  },
1571
641
  };
1572
- if (vErrors === null) {
1573
- vErrors = [err17];
1574
- }
1575
- else {
1576
- vErrors.push(err17);
1577
- }
1578
- errors++;
642
+ null === a ? (a = [r]) : a.push(r), i++;
1579
643
  }
1580
- }
1581
- var _valid0 = _errs7 === errors;
1582
- valid0 = valid0 || _valid0;
644
+ (u = t === i), (p = p || u);
1583
645
  }
1584
646
  }
1585
- if (!valid0) {
1586
- const err18 = {
647
+ if (!p) {
648
+ const r = {
1587
649
  params: {},
1588
650
  };
1589
- if (vErrors === null) {
1590
- vErrors = [err18];
1591
- }
1592
- else {
1593
- vErrors.push(err18);
1594
- }
1595
- errors++;
1596
- validate33.errors = vErrors;
1597
- return false;
1598
- }
1599
- else {
1600
- errors = _errs0;
1601
- if (vErrors !== null) {
1602
- if (_errs0) {
1603
- vErrors.length = _errs0;
1604
- }
1605
- else {
1606
- vErrors = null;
1607
- }
1608
- }
651
+ return null === a ? (a = [r]) : a.push(r), i++, (o.errors = a), !1;
1609
652
  }
1610
- validate33.errors = vErrors;
1611
- return errors === 0;
653
+ return ((i = l),
654
+ null !== a && (l ? (a.length = l) : (a = null)),
655
+ (o.errors = a),
656
+ 0 === i);
1612
657
  }
1613
- function validate30(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
1614
- let vErrors = null;
1615
- let errors = 0;
1616
- if (errors === 0) {
1617
- if (data && typeof data == 'object' && !Array.isArray(data)) {
1618
- let missing0;
1619
- if (data.type === undefined && (missing0 = 'type')) {
1620
- validate30.errors = [
658
+ function i(r, { instancePath: t = '', parentData: e, parentDataProperty: n, rootData: s = r, } = {}) {
659
+ let l = null, p = 0;
660
+ if (0 === p) {
661
+ if (!r || 'object' != typeof r || Array.isArray(r))
662
+ return ((i.errors = [
663
+ {
664
+ params: {
665
+ type: 'object',
666
+ },
667
+ },
668
+ ]),
669
+ !1);
670
+ {
671
+ let e;
672
+ if (void 0 === r.type && (e = 'type'))
673
+ return ((i.errors = [
1621
674
  {
1622
675
  params: {
1623
- missingProperty: missing0,
676
+ missingProperty: e,
1624
677
  },
1625
678
  },
1626
- ];
1627
- return false;
1628
- }
1629
- else {
1630
- const _errs1 = errors;
1631
- for (const key0 in data) {
1632
- if (!(key0 === 'amdContainer' ||
1633
- key0 === 'auxiliaryComment' ||
1634
- key0 === 'export' ||
1635
- key0 === 'name' ||
1636
- key0 === 'type' ||
1637
- key0 === 'umdNamedDefine')) {
1638
- validate30.errors = [
679
+ ]),
680
+ !1);
681
+ {
682
+ const e = p;
683
+ for (const t in r)
684
+ if ('amdContainer' !== t &&
685
+ 'auxiliaryComment' !== t &&
686
+ 'export' !== t &&
687
+ 'name' !== t &&
688
+ 'type' !== t &&
689
+ 'umdNamedDefine' !== t)
690
+ return ((i.errors = [
1639
691
  {
1640
692
  params: {
1641
- additionalProperty: key0,
693
+ additionalProperty: t,
1642
694
  },
1643
695
  },
1644
- ];
1645
- return false;
1646
- break;
1647
- }
1648
- }
1649
- if (_errs1 === errors) {
1650
- if (data.amdContainer !== undefined) {
1651
- let data0 = data.amdContainer;
1652
- const _errs2 = errors;
1653
- const _errs3 = errors;
1654
- if (errors === _errs3) {
1655
- if (typeof data0 === 'string') {
1656
- if (data0.length < 1) {
1657
- validate30.errors = [
1658
- {
1659
- params: {},
1660
- },
1661
- ];
1662
- return false;
1663
- }
1664
- }
1665
- else {
1666
- validate30.errors = [
696
+ ]),
697
+ !1);
698
+ if (e === p) {
699
+ if (void 0 !== r.amdContainer) {
700
+ let t = r.amdContainer;
701
+ const e = p;
702
+ if (p == p) {
703
+ if ('string' != typeof t)
704
+ return ((i.errors = [
1667
705
  {
1668
706
  params: {
1669
707
  type: 'string',
1670
708
  },
1671
709
  },
1672
- ];
1673
- return false;
1674
- }
710
+ ]),
711
+ !1);
712
+ if (t.length < 1)
713
+ return ((i.errors = [
714
+ {
715
+ params: {},
716
+ },
717
+ ]),
718
+ !1);
1675
719
  }
1676
- var valid0 = _errs2 === errors;
720
+ var f = e === p;
1677
721
  }
1678
- else {
1679
- var valid0 = true;
1680
- }
1681
- if (valid0) {
1682
- if (data.auxiliaryComment !== undefined) {
1683
- const _errs5 = errors;
1684
- if (!validate31(data.auxiliaryComment, {
1685
- instancePath: instancePath + '/auxiliaryComment',
1686
- parentData: data,
722
+ else
723
+ f = !0;
724
+ if (f) {
725
+ if (void 0 !== r.auxiliaryComment) {
726
+ const e = p;
727
+ a(r.auxiliaryComment, {
728
+ instancePath: t + '/auxiliaryComment',
729
+ parentData: r,
1687
730
  parentDataProperty: 'auxiliaryComment',
1688
- rootData,
1689
- })) {
1690
- vErrors =
1691
- vErrors === null
1692
- ? validate31.errors
1693
- : vErrors.concat(validate31.errors);
1694
- errors = vErrors.length;
1695
- }
1696
- var valid0 = _errs5 === errors;
1697
- }
1698
- else {
1699
- var valid0 = true;
731
+ rootData: s,
732
+ }) ||
733
+ ((l = null === l ? a.errors : l.concat(a.errors)),
734
+ (p = l.length)),
735
+ (f = e === p);
1700
736
  }
1701
- if (valid0) {
1702
- if (data.export !== undefined) {
1703
- let data2 = data.export;
1704
- const _errs6 = errors;
1705
- const _errs8 = errors;
1706
- let valid3 = false;
1707
- const _errs9 = errors;
1708
- if (errors === _errs9) {
1709
- if (Array.isArray(data2)) {
1710
- var valid4 = true;
1711
- const len0 = data2.length;
1712
- for (let i0 = 0; i0 < len0; i0++) {
1713
- let data3 = data2[i0];
1714
- const _errs11 = errors;
1715
- if (errors === _errs11) {
1716
- if (typeof data3 === 'string') {
1717
- if (data3.length < 1) {
1718
- const err0 = {
737
+ else
738
+ f = !0;
739
+ if (f) {
740
+ if (void 0 !== r.export) {
741
+ let t = r.export;
742
+ const e = p, n = p;
743
+ let s = !1;
744
+ const a = p;
745
+ if (p === a)
746
+ if (Array.isArray(t)) {
747
+ const r = t.length;
748
+ for (let e = 0; e < r; e++) {
749
+ let r = t[e];
750
+ const n = p;
751
+ if (p === n)
752
+ if ('string' == typeof r) {
753
+ if (r.length < 1) {
754
+ const r = {
1719
755
  params: {},
1720
756
  };
1721
- if (vErrors === null) {
1722
- vErrors = [err0];
1723
- }
1724
- else {
1725
- vErrors.push(err0);
1726
- }
1727
- errors++;
757
+ null === l ? (l = [r]) : l.push(r), p++;
1728
758
  }
1729
759
  }
1730
760
  else {
1731
- const err1 = {
761
+ const r = {
1732
762
  params: {
1733
763
  type: 'string',
1734
764
  },
1735
765
  };
1736
- if (vErrors === null) {
1737
- vErrors = [err1];
1738
- }
1739
- else {
1740
- vErrors.push(err1);
1741
- }
1742
- errors++;
766
+ null === l ? (l = [r]) : l.push(r), p++;
1743
767
  }
1744
- }
1745
- var valid4 = _errs11 === errors;
1746
- if (!valid4) {
768
+ if (n !== p)
1747
769
  break;
1748
- }
1749
770
  }
1750
771
  }
1751
772
  else {
1752
- const err2 = {
773
+ const r = {
1753
774
  params: {
1754
775
  type: 'array',
1755
776
  },
1756
777
  };
1757
- if (vErrors === null) {
1758
- vErrors = [err2];
1759
- }
1760
- else {
1761
- vErrors.push(err2);
1762
- }
1763
- errors++;
778
+ null === l ? (l = [r]) : l.push(r), p++;
1764
779
  }
1765
- }
1766
- var _valid0 = _errs9 === errors;
1767
- valid3 = valid3 || _valid0;
1768
- if (!valid3) {
1769
- const _errs13 = errors;
1770
- if (errors === _errs13) {
1771
- if (typeof data2 === 'string') {
1772
- if (data2.length < 1) {
1773
- const err3 = {
780
+ var u = a === p;
781
+ if (((s = s || u), !s)) {
782
+ const r = p;
783
+ if (p === r)
784
+ if ('string' == typeof t) {
785
+ if (t.length < 1) {
786
+ const r = {
1774
787
  params: {},
1775
788
  };
1776
- if (vErrors === null) {
1777
- vErrors = [err3];
1778
- }
1779
- else {
1780
- vErrors.push(err3);
1781
- }
1782
- errors++;
789
+ null === l ? (l = [r]) : l.push(r), p++;
1783
790
  }
1784
791
  }
1785
792
  else {
1786
- const err4 = {
793
+ const r = {
1787
794
  params: {
1788
795
  type: 'string',
1789
796
  },
1790
797
  };
1791
- if (vErrors === null) {
1792
- vErrors = [err4];
1793
- }
1794
- else {
1795
- vErrors.push(err4);
1796
- }
1797
- errors++;
798
+ null === l ? (l = [r]) : l.push(r), p++;
1798
799
  }
1799
- }
1800
- var _valid0 = _errs13 === errors;
1801
- valid3 = valid3 || _valid0;
800
+ (u = r === p), (s = s || u);
1802
801
  }
1803
- if (!valid3) {
1804
- const err5 = {
802
+ if (!s) {
803
+ const r = {
1805
804
  params: {},
1806
805
  };
1807
- if (vErrors === null) {
1808
- vErrors = [err5];
1809
- }
1810
- else {
1811
- vErrors.push(err5);
1812
- }
1813
- errors++;
1814
- validate30.errors = vErrors;
1815
- return false;
1816
- }
1817
- else {
1818
- errors = _errs8;
1819
- if (vErrors !== null) {
1820
- if (_errs8) {
1821
- vErrors.length = _errs8;
1822
- }
1823
- else {
1824
- vErrors = null;
1825
- }
1826
- }
806
+ return (null === l ? (l = [r]) : l.push(r), p++, (i.errors = l), !1);
1827
807
  }
1828
- var valid0 = _errs6 === errors;
808
+ (p = n),
809
+ null !== l && (n ? (l.length = n) : (l = null)),
810
+ (f = e === p);
1829
811
  }
1830
- else {
1831
- var valid0 = true;
1832
- }
1833
- if (valid0) {
1834
- if (data.name !== undefined) {
1835
- const _errs15 = errors;
1836
- if (!validate33(data.name, {
1837
- instancePath: instancePath + '/name',
1838
- parentData: data,
812
+ else
813
+ f = !0;
814
+ if (f) {
815
+ if (void 0 !== r.name) {
816
+ const e = p;
817
+ o(r.name, {
818
+ instancePath: t + '/name',
819
+ parentData: r,
1839
820
  parentDataProperty: 'name',
1840
- rootData,
1841
- })) {
1842
- vErrors =
1843
- vErrors === null
1844
- ? validate33.errors
1845
- : vErrors.concat(validate33.errors);
1846
- errors = vErrors.length;
1847
- }
1848
- var valid0 = _errs15 === errors;
1849
- }
1850
- else {
1851
- var valid0 = true;
821
+ rootData: s,
822
+ }) ||
823
+ ((l = null === l ? o.errors : l.concat(o.errors)),
824
+ (p = l.length)),
825
+ (f = e === p);
1852
826
  }
1853
- if (valid0) {
1854
- if (data.type !== undefined) {
1855
- let data5 = data.type;
1856
- const _errs16 = errors;
1857
- const _errs18 = errors;
1858
- let valid6 = false;
1859
- const _errs19 = errors;
1860
- if (data5 !== 'var' &&
1861
- data5 !== 'module' &&
1862
- data5 !== 'assign' &&
1863
- data5 !== 'assign-properties' &&
1864
- data5 !== 'this' &&
1865
- data5 !== 'window' &&
1866
- data5 !== 'self' &&
1867
- data5 !== 'global' &&
1868
- data5 !== 'commonjs' &&
1869
- data5 !== 'commonjs2' &&
1870
- data5 !== 'commonjs-module' &&
1871
- data5 !== 'commonjs-static' &&
1872
- data5 !== 'amd' &&
1873
- data5 !== 'amd-require' &&
1874
- data5 !== 'umd' &&
1875
- data5 !== 'umd2' &&
1876
- data5 !== 'jsonp' &&
1877
- data5 !== 'system') {
1878
- const err6 = {
827
+ else
828
+ f = !0;
829
+ if (f) {
830
+ if (void 0 !== r.type) {
831
+ let t = r.type;
832
+ const e = p, n = p;
833
+ let s = !1;
834
+ const a = p;
835
+ if ('var' !== t &&
836
+ 'module' !== t &&
837
+ 'assign' !== t &&
838
+ 'assign-properties' !== t &&
839
+ 'this' !== t &&
840
+ 'window' !== t &&
841
+ 'self' !== t &&
842
+ 'global' !== t &&
843
+ 'commonjs' !== t &&
844
+ 'commonjs2' !== t &&
845
+ 'commonjs-module' !== t &&
846
+ 'commonjs-static' !== t &&
847
+ 'amd' !== t &&
848
+ 'amd-require' !== t &&
849
+ 'umd' !== t &&
850
+ 'umd2' !== t &&
851
+ 'jsonp' !== t &&
852
+ 'system' !== t) {
853
+ const r = {
1879
854
  params: {},
1880
855
  };
1881
- if (vErrors === null) {
1882
- vErrors = [err6];
1883
- }
1884
- else {
1885
- vErrors.push(err6);
1886
- }
1887
- errors++;
856
+ null === l ? (l = [r]) : l.push(r), p++;
1888
857
  }
1889
- var _valid1 = _errs19 === errors;
1890
- valid6 = valid6 || _valid1;
1891
- if (!valid6) {
1892
- const _errs20 = errors;
1893
- if (typeof data5 !== 'string') {
1894
- const err7 = {
858
+ var c = a === p;
859
+ if (((s = s || c), !s)) {
860
+ const r = p;
861
+ if ('string' != typeof t) {
862
+ const r = {
1895
863
  params: {
1896
864
  type: 'string',
1897
865
  },
1898
866
  };
1899
- if (vErrors === null) {
1900
- vErrors = [err7];
1901
- }
1902
- else {
1903
- vErrors.push(err7);
1904
- }
1905
- errors++;
867
+ null === l ? (l = [r]) : l.push(r), p++;
1906
868
  }
1907
- var _valid1 = _errs20 === errors;
1908
- valid6 = valid6 || _valid1;
869
+ (c = r === p), (s = s || c);
1909
870
  }
1910
- if (!valid6) {
1911
- const err8 = {
871
+ if (!s) {
872
+ const r = {
1912
873
  params: {},
1913
874
  };
1914
- if (vErrors === null) {
1915
- vErrors = [err8];
1916
- }
1917
- else {
1918
- vErrors.push(err8);
1919
- }
1920
- errors++;
1921
- validate30.errors = vErrors;
1922
- return false;
1923
- }
1924
- else {
1925
- errors = _errs18;
1926
- if (vErrors !== null) {
1927
- if (_errs18) {
1928
- vErrors.length = _errs18;
1929
- }
1930
- else {
1931
- vErrors = null;
1932
- }
1933
- }
875
+ return (null === l ? (l = [r]) : l.push(r),
876
+ p++,
877
+ (i.errors = l),
878
+ !1);
1934
879
  }
1935
- var valid0 = _errs16 === errors;
880
+ (p = n),
881
+ null !== l && (n ? (l.length = n) : (l = null)),
882
+ (f = e === p);
1936
883
  }
1937
- else {
1938
- var valid0 = true;
1939
- }
1940
- if (valid0) {
1941
- if (data.umdNamedDefine !== undefined) {
1942
- const _errs22 = errors;
1943
- if (typeof data.umdNamedDefine !== 'boolean') {
1944
- validate30.errors = [
884
+ else
885
+ f = !0;
886
+ if (f)
887
+ if (void 0 !== r.umdNamedDefine) {
888
+ const t = p;
889
+ if ('boolean' != typeof r.umdNamedDefine)
890
+ return ((i.errors = [
1945
891
  {
1946
892
  params: {
1947
893
  type: 'boolean',
1948
894
  },
1949
895
  },
1950
- ];
1951
- return false;
1952
- }
1953
- var valid0 = _errs22 === errors;
1954
- }
1955
- else {
1956
- var valid0 = true;
896
+ ]),
897
+ !1);
898
+ f = t === p;
1957
899
  }
1958
- }
900
+ else
901
+ f = !0;
1959
902
  }
1960
903
  }
1961
904
  }
@@ -1963,424 +906,472 @@ function validate30(data, { instancePath = '', parentData, parentDataProperty, r
1963
906
  }
1964
907
  }
1965
908
  }
1966
- else {
1967
- validate30.errors = [
909
+ }
910
+ return (i.errors = l), 0 === p;
911
+ }
912
+ function l(t, { instancePath: e = '', parentData: n, parentDataProperty: a, rootData: o = t, } = {}) {
913
+ let p = null, f = 0;
914
+ if (0 === f) {
915
+ if (!t || 'object' != typeof t || Array.isArray(t))
916
+ return ((l.errors = [
1968
917
  {
1969
918
  params: {
1970
919
  type: 'object',
1971
920
  },
1972
921
  },
1973
- ];
1974
- return false;
1975
- }
1976
- }
1977
- validate30.errors = vErrors;
1978
- return errors === 0;
1979
- }
1980
- function validate19(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
1981
- /*# sourceURL="" */ let vErrors = null;
1982
- let errors = 0;
1983
- if (errors === 0) {
1984
- if (data && typeof data == 'object' && !Array.isArray(data)) {
1985
- let missing0;
1986
- if ((data.name === undefined && (missing0 = 'name')) ||
1987
- (data.exposes === undefined && (missing0 = 'exposes'))) {
1988
- validate19.errors = [
922
+ ]),
923
+ !1);
924
+ {
925
+ let n;
926
+ if ((void 0 === t.name && (n = 'name')) ||
927
+ (void 0 === t.exposes && (n = 'exposes')))
928
+ return ((l.errors = [
1989
929
  {
1990
930
  params: {
1991
- missingProperty: missing0,
931
+ missingProperty: n,
1992
932
  },
1993
933
  },
1994
- ];
1995
- return false;
1996
- }
1997
- else {
1998
- const _errs1 = errors;
1999
- for (const key0 in data) {
2000
- if (!(key0 === 'exposes' ||
2001
- key0 === 'filename' ||
2002
- key0 === 'library' ||
2003
- key0 === 'name' ||
2004
- key0 === 'runtime' ||
2005
- key0 === 'runtimePlugins' ||
2006
- key0 === 'shareScope' ||
2007
- key0 === 'experiments')) {
2008
- validate19.errors = [
934
+ ]),
935
+ !1);
936
+ {
937
+ const n = f;
938
+ for (const r in t)
939
+ if ('experiments' !== r &&
940
+ 'exposes' !== r &&
941
+ 'filename' !== r &&
942
+ 'library' !== r &&
943
+ 'name' !== r &&
944
+ 'runtime' !== r &&
945
+ 'runtimePlugins' !== r &&
946
+ 'shareScope' !== r)
947
+ return ((l.errors = [
2009
948
  {
2010
949
  params: {
2011
- additionalProperty: key0,
950
+ additionalProperty: r,
2012
951
  },
2013
952
  },
2014
- ];
2015
- return false;
2016
- break;
2017
- }
2018
- }
2019
- if (_errs1 === errors) {
2020
- if (data.exposes !== undefined) {
2021
- const _errs2 = errors;
2022
- if (!validate20(data.exposes, {
2023
- instancePath: instancePath + '/exposes',
2024
- parentData: data,
2025
- parentDataProperty: 'exposes',
2026
- rootData,
2027
- })) {
2028
- vErrors =
2029
- vErrors === null
2030
- ? validate20.errors
2031
- : vErrors.concat(validate20.errors);
2032
- errors = vErrors.length;
2033
- }
2034
- var valid0 = _errs2 === errors;
2035
- }
2036
- else {
2037
- var valid0 = true;
2038
- }
2039
- if (valid0) {
2040
- if (data.filename !== undefined) {
2041
- let data1 = data.filename;
2042
- const _errs3 = errors;
2043
- if (errors === _errs3) {
2044
- if (typeof data1 === 'string') {
2045
- if (data1.includes('!') ||
2046
- absolutePathRegExp.test(data1) !== false) {
2047
- validate19.errors = [
953
+ ]),
954
+ !1);
955
+ if (n === f) {
956
+ if (void 0 !== t.experiments) {
957
+ let r = t.experiments;
958
+ const e = f;
959
+ if (f === e) {
960
+ if (!r || 'object' != typeof r || Array.isArray(r))
961
+ return ((l.errors = [
962
+ {
963
+ params: {
964
+ type: 'object',
965
+ },
966
+ },
967
+ ]),
968
+ !1);
969
+ {
970
+ const t = f;
971
+ for (const t in r)
972
+ if ('externalRuntime' !== t &&
973
+ 'federationRuntime' !== t &&
974
+ 'provideExternalRuntime' !== t)
975
+ return ((l.errors = [
2048
976
  {
2049
- params: {},
2050
- },
2051
- ];
2052
- return false;
2053
- }
2054
- else {
2055
- if (data1.length < 1) {
2056
- validate19.errors = [
2057
- {
2058
- params: {},
977
+ params: {
978
+ additionalProperty: t,
2059
979
  },
2060
- ];
2061
- return false;
2062
- }
2063
- }
2064
- }
2065
- else {
2066
- validate19.errors = [
2067
- {
2068
- params: {
2069
- type: 'string',
2070
980
  },
2071
- },
2072
- ];
2073
- return false;
2074
- }
2075
- }
2076
- var valid0 = _errs3 === errors;
2077
- }
2078
- else {
2079
- var valid0 = true;
2080
- }
2081
- if (valid0) {
2082
- if (data.library !== undefined) {
2083
- const _errs5 = errors;
2084
- if (!validate30(data.library, {
2085
- instancePath: instancePath + '/library',
2086
- parentData: data,
2087
- parentDataProperty: 'library',
2088
- rootData,
2089
- })) {
2090
- vErrors =
2091
- vErrors === null
2092
- ? validate30.errors
2093
- : vErrors.concat(validate30.errors);
2094
- errors = vErrors.length;
2095
- }
2096
- var valid0 = _errs5 === errors;
2097
- }
2098
- else {
2099
- var valid0 = true;
2100
- }
2101
- if (valid0) {
2102
- if (data.name !== undefined) {
2103
- let data3 = data.name;
2104
- const _errs6 = errors;
2105
- if (errors === _errs6) {
2106
- if (typeof data3 === 'string') {
2107
- if (data3.length < 1) {
2108
- validate19.errors = [
2109
- {
2110
- params: {},
2111
- },
2112
- ];
2113
- return false;
2114
- }
2115
- }
2116
- else {
2117
- validate19.errors = [
981
+ ]),
982
+ !1);
983
+ if (t === f) {
984
+ if (void 0 !== r.externalRuntime) {
985
+ const t = f;
986
+ if ('boolean' != typeof r.externalRuntime)
987
+ return ((l.errors = [
2118
988
  {
2119
989
  params: {
2120
- type: 'string',
990
+ type: 'boolean',
2121
991
  },
2122
992
  },
2123
- ];
2124
- return false;
2125
- }
993
+ ]),
994
+ !1);
995
+ var u = t === f;
2126
996
  }
2127
- var valid0 = _errs6 === errors;
2128
- }
2129
- else {
2130
- var valid0 = true;
2131
- }
2132
- if (valid0) {
2133
- if (data.runtime !== undefined) {
2134
- let data4 = data.runtime;
2135
- const _errs8 = errors;
2136
- const _errs10 = errors;
2137
- let valid2 = false;
2138
- const _errs11 = errors;
2139
- if (data4 !== false) {
2140
- const err0 = {
2141
- params: {},
2142
- };
2143
- if (vErrors === null) {
2144
- vErrors = [err0];
2145
- }
2146
- else {
2147
- vErrors.push(err0);
997
+ else
998
+ u = !0;
999
+ if (u) {
1000
+ if (void 0 !== r.federationRuntime) {
1001
+ let t = r.federationRuntime;
1002
+ const e = f, n = f;
1003
+ let s = !1;
1004
+ const a = f;
1005
+ if ('hoisted' !== t) {
1006
+ const r = {
1007
+ params: {},
1008
+ };
1009
+ null === p ? (p = [r]) : p.push(r), f++;
2148
1010
  }
2149
- errors++;
2150
- }
2151
- var _valid0 = _errs11 === errors;
2152
- valid2 = valid2 || _valid0;
2153
- if (!valid2) {
2154
- const _errs12 = errors;
2155
- if (errors === _errs12) {
2156
- if (typeof data4 === 'string') {
2157
- if (data4.length < 1) {
2158
- const err1 = {
2159
- params: {},
2160
- };
2161
- if (vErrors === null) {
2162
- vErrors = [err1];
2163
- }
2164
- else {
2165
- vErrors.push(err1);
2166
- }
2167
- errors++;
2168
- }
2169
- }
2170
- else {
2171
- const err2 = {
1011
+ var c = a === f;
1012
+ if (((s = s || c), !s)) {
1013
+ const r = f;
1014
+ if ('boolean' != typeof t) {
1015
+ const r = {
2172
1016
  params: {
2173
- type: 'string',
1017
+ type: 'boolean',
2174
1018
  },
2175
1019
  };
2176
- if (vErrors === null) {
2177
- vErrors = [err2];
2178
- }
2179
- else {
2180
- vErrors.push(err2);
2181
- }
2182
- errors++;
1020
+ null === p ? (p = [r]) : p.push(r), f++;
2183
1021
  }
1022
+ (c = r === f), (s = s || c);
2184
1023
  }
2185
- var _valid0 = _errs12 === errors;
2186
- valid2 = valid2 || _valid0;
2187
- }
2188
- if (!valid2) {
2189
- const err3 = {
2190
- params: {},
2191
- };
2192
- if (vErrors === null) {
2193
- vErrors = [err3];
2194
- }
2195
- else {
2196
- vErrors.push(err3);
2197
- }
2198
- errors++;
2199
- validate19.errors = vErrors;
2200
- return false;
2201
- }
2202
- else {
2203
- errors = _errs10;
2204
- if (vErrors !== null) {
2205
- if (_errs10) {
2206
- vErrors.length = _errs10;
2207
- }
2208
- else {
2209
- vErrors = null;
2210
- }
1024
+ if (!s) {
1025
+ const r = {
1026
+ params: {},
1027
+ };
1028
+ return (null === p ? (p = [r]) : p.push(r),
1029
+ f++,
1030
+ (l.errors = p),
1031
+ !1);
2211
1032
  }
1033
+ (f = n),
1034
+ null !== p && (n ? (p.length = n) : (p = null)),
1035
+ (u = e === f);
2212
1036
  }
2213
- var valid0 = _errs8 === errors;
2214
- }
2215
- else {
2216
- var valid0 = true;
2217
- }
2218
- if (valid0) {
2219
- if (data.runtimePlugins !== undefined) {
2220
- let data5 = data.runtimePlugins;
2221
- const _errs14 = errors;
2222
- if (errors === _errs14) {
2223
- if (Array.isArray(data5)) {
2224
- var valid3 = true;
2225
- const len0 = data5.length;
2226
- for (let i0 = 0; i0 < len0; i0++) {
2227
- let data6 = data5[i0];
2228
- const _errs16 = errors;
2229
- if (errors === _errs16) {
2230
- if (typeof data6 === 'string') {
2231
- if (data6.length < 1) {
2232
- validate19.errors = [
2233
- {
2234
- params: {},
2235
- },
2236
- ];
2237
- return false;
2238
- }
2239
- }
2240
- else {
2241
- validate19.errors = [
2242
- {
2243
- params: {
2244
- type: 'string',
2245
- },
2246
- },
2247
- ];
2248
- return false;
2249
- }
2250
- }
2251
- var valid3 = _errs16 === errors;
2252
- if (!valid3) {
2253
- break;
2254
- }
2255
- }
2256
- }
2257
- else {
2258
- validate19.errors = [
1037
+ else
1038
+ u = !0;
1039
+ if (u)
1040
+ if (void 0 !== r.provideExternalRuntime) {
1041
+ const t = f;
1042
+ if ('boolean' != typeof r.provideExternalRuntime)
1043
+ return ((l.errors = [
2259
1044
  {
2260
1045
  params: {
2261
- type: 'array',
1046
+ type: 'boolean',
2262
1047
  },
2263
1048
  },
2264
- ];
2265
- return false;
2266
- }
1049
+ ]),
1050
+ !1);
1051
+ u = t === f;
2267
1052
  }
2268
- var valid0 = _errs14 === errors;
2269
- }
2270
- else {
2271
- var valid0 = true;
1053
+ else
1054
+ u = !0;
1055
+ }
1056
+ }
1057
+ }
1058
+ }
1059
+ var m = e === f;
1060
+ }
1061
+ else
1062
+ m = !0;
1063
+ if (m) {
1064
+ if (void 0 !== t.exposes) {
1065
+ const r = f;
1066
+ s(t.exposes, {
1067
+ instancePath: e + '/exposes',
1068
+ parentData: t,
1069
+ parentDataProperty: 'exposes',
1070
+ rootData: o,
1071
+ }) ||
1072
+ ((p = null === p ? s.errors : p.concat(s.errors)),
1073
+ (f = p.length)),
1074
+ (m = r === f);
1075
+ }
1076
+ else
1077
+ m = !0;
1078
+ if (m) {
1079
+ if (void 0 !== t.filename) {
1080
+ let e = t.filename;
1081
+ const n = f;
1082
+ if (f === n) {
1083
+ if ('string' != typeof e)
1084
+ return ((l.errors = [
1085
+ {
1086
+ params: {
1087
+ type: 'string',
1088
+ },
1089
+ },
1090
+ ]),
1091
+ !1);
1092
+ if (e.includes('!') || !1 !== r.test(e))
1093
+ return ((l.errors = [
1094
+ {
1095
+ params: {},
1096
+ },
1097
+ ]),
1098
+ !1);
1099
+ if (e.length < 1)
1100
+ return ((l.errors = [
1101
+ {
1102
+ params: {},
1103
+ },
1104
+ ]),
1105
+ !1);
1106
+ }
1107
+ m = n === f;
1108
+ }
1109
+ else
1110
+ m = !0;
1111
+ if (m) {
1112
+ if (void 0 !== t.library) {
1113
+ const r = f;
1114
+ i(t.library, {
1115
+ instancePath: e + '/library',
1116
+ parentData: t,
1117
+ parentDataProperty: 'library',
1118
+ rootData: o,
1119
+ }) ||
1120
+ ((p = null === p ? i.errors : p.concat(i.errors)),
1121
+ (f = p.length)),
1122
+ (m = r === f);
1123
+ }
1124
+ else
1125
+ m = !0;
1126
+ if (m) {
1127
+ if (void 0 !== t.name) {
1128
+ let r = t.name;
1129
+ const e = f;
1130
+ if (f === e) {
1131
+ if ('string' != typeof r)
1132
+ return ((l.errors = [
1133
+ {
1134
+ params: {
1135
+ type: 'string',
1136
+ },
1137
+ },
1138
+ ]),
1139
+ !1);
1140
+ if (r.length < 1)
1141
+ return ((l.errors = [
1142
+ {
1143
+ params: {},
1144
+ },
1145
+ ]),
1146
+ !1);
2272
1147
  }
2273
- if (valid0) {
2274
- if (data.shareScope !== undefined) {
2275
- let data7 = data.shareScope;
2276
- const _errs18 = errors;
2277
- if (errors === _errs18) {
2278
- if (typeof data7 === 'string') {
2279
- if (data7.length < 1) {
2280
- validate19.errors = [
2281
- {
2282
- params: {},
2283
- },
2284
- ];
2285
- return false;
1148
+ m = e === f;
1149
+ }
1150
+ else
1151
+ m = !0;
1152
+ if (m) {
1153
+ if (void 0 !== t.runtime) {
1154
+ let r = t.runtime;
1155
+ const e = f, n = f;
1156
+ let s = !1;
1157
+ const a = f;
1158
+ if (!1 !== r) {
1159
+ const r = {
1160
+ params: {},
1161
+ };
1162
+ null === p ? (p = [r]) : p.push(r), f++;
1163
+ }
1164
+ var y = a === f;
1165
+ if (((s = s || y), !s)) {
1166
+ const t = f;
1167
+ if (f === t)
1168
+ if ('string' == typeof r) {
1169
+ if (r.length < 1) {
1170
+ const r = {
1171
+ params: {},
1172
+ };
1173
+ null === p ? (p = [r]) : p.push(r), f++;
2286
1174
  }
2287
1175
  }
2288
1176
  else {
2289
- validate19.errors = [
2290
- {
2291
- params: {
2292
- type: 'string',
2293
- },
1177
+ const r = {
1178
+ params: {
1179
+ type: 'string',
2294
1180
  },
2295
- ];
2296
- return false;
1181
+ };
1182
+ null === p ? (p = [r]) : p.push(r), f++;
2297
1183
  }
2298
- }
2299
- var valid0 = _errs18 === errors;
1184
+ (y = t === f), (s = s || y);
2300
1185
  }
2301
- else {
2302
- var valid0 = true;
1186
+ if (!s) {
1187
+ const r = {
1188
+ params: {},
1189
+ };
1190
+ return (null === p ? (p = [r]) : p.push(r),
1191
+ f++,
1192
+ (l.errors = p),
1193
+ !1);
2303
1194
  }
2304
- if (valid0) {
2305
- if (data.experiments !== undefined) {
2306
- let data8 = data.experiments;
2307
- const _errs20 = errors;
2308
- if (errors === _errs20) {
2309
- if (typeof data8 === 'object' &&
2310
- !Array.isArray(data8)) {
2311
- let missing1;
2312
- if (data8.federationRuntime === undefined &&
2313
- (missing1 = 'federationRuntime')) {
2314
- validate19.errors = [
2315
- {
1195
+ (f = n),
1196
+ null !== p && (n ? (p.length = n) : (p = null)),
1197
+ (m = e === f);
1198
+ }
1199
+ else
1200
+ m = !0;
1201
+ if (m) {
1202
+ if (void 0 !== t.runtimePlugins) {
1203
+ let r = t.runtimePlugins;
1204
+ const e = f;
1205
+ if (f === e) {
1206
+ if (!Array.isArray(r))
1207
+ return ((l.errors = [
1208
+ {
1209
+ params: {
1210
+ type: 'array',
1211
+ },
1212
+ },
1213
+ ]),
1214
+ !1);
1215
+ {
1216
+ const t = r.length;
1217
+ for (let e = 0; e < t; e++) {
1218
+ let t = r[e];
1219
+ const n = f, s = f;
1220
+ let a = !1;
1221
+ const o = f;
1222
+ if (f === o)
1223
+ if ('string' == typeof t) {
1224
+ if (t.length < 1) {
1225
+ const r = {
1226
+ params: {},
1227
+ };
1228
+ null === p ? (p = [r]) : p.push(r), f++;
1229
+ }
1230
+ }
1231
+ else {
1232
+ const r = {
2316
1233
  params: {
2317
- missingProperty: missing1,
1234
+ type: 'string',
2318
1235
  },
2319
- },
2320
- ];
2321
- return false;
2322
- }
2323
- else {
2324
- const _errs21 = errors;
2325
- for (const key1 in data8) {
2326
- if (!(key1 === 'federationRuntime')) {
2327
- validate19.errors = [
2328
- {
1236
+ };
1237
+ null === p ? (p = [r]) : p.push(r), f++;
1238
+ }
1239
+ var h = o === f;
1240
+ if (((a = a || h), !a)) {
1241
+ const r = f;
1242
+ if (f === r)
1243
+ if (t &&
1244
+ 'object' == typeof t &&
1245
+ !Array.isArray(t)) {
1246
+ let r;
1247
+ if ((void 0 === t.import && (r = 'import')) ||
1248
+ (void 0 === t.async && (r = 'async'))) {
1249
+ const t = {
2329
1250
  params: {
2330
- additionalProperty: key1,
1251
+ missingProperty: r,
2331
1252
  },
2332
- },
2333
- ];
2334
- return false;
2335
- break;
2336
- }
2337
- }
2338
- if (_errs21 === errors) {
2339
- if (data8.federationRuntime !== undefined) {
2340
- let data9 = data8.federationRuntime;
2341
- const _errs22 = errors;
2342
- if (errors === _errs22) {
2343
- if (typeof data9 === 'boolean' ||
2344
- (typeof data9 === 'string' &&
2345
- data9 === 'hoisted')) {
2346
- // Valid
2347
- }
2348
- else {
2349
- validate19.errors = [
2350
- {
1253
+ };
1254
+ null === p ? (p = [t]) : p.push(t), f++;
1255
+ }
1256
+ else {
1257
+ const r = f;
1258
+ for (const r in t)
1259
+ if ('async' !== r && 'import' !== r) {
1260
+ const t = {
2351
1261
  params: {
2352
- type: 'boolean or "hoisted"',
1262
+ additionalProperty: r,
2353
1263
  },
2354
- },
2355
- ];
2356
- return false;
1264
+ };
1265
+ null === p ? (p = [t]) : p.push(t),
1266
+ f++;
1267
+ break;
1268
+ }
1269
+ if (r === f) {
1270
+ if (void 0 !== t.async) {
1271
+ const r = f;
1272
+ if ('boolean' != typeof t.async) {
1273
+ const r = {
1274
+ params: {
1275
+ type: 'boolean',
1276
+ },
1277
+ };
1278
+ null === p ? (p = [r]) : p.push(r),
1279
+ f++;
1280
+ }
1281
+ var g = r === f;
1282
+ }
1283
+ else
1284
+ g = !0;
1285
+ if (g)
1286
+ if (void 0 !== t.import) {
1287
+ let r = t.import;
1288
+ const e = f;
1289
+ if (f === e)
1290
+ if ('string' == typeof r) {
1291
+ if (r.length < 1) {
1292
+ const r = {
1293
+ params: {},
1294
+ };
1295
+ null === p
1296
+ ? (p = [r])
1297
+ : p.push(r),
1298
+ f++;
1299
+ }
1300
+ }
1301
+ else {
1302
+ const r = {
1303
+ params: {
1304
+ type: 'string',
1305
+ },
1306
+ };
1307
+ null === p
1308
+ ? (p = [r])
1309
+ : p.push(r),
1310
+ f++;
1311
+ }
1312
+ g = e === f;
1313
+ }
1314
+ else
1315
+ g = !0;
2357
1316
  }
2358
1317
  }
2359
- var valid0 = _errs22 === errors;
2360
1318
  }
2361
1319
  else {
2362
- var valid0 = true;
1320
+ const r = {
1321
+ params: {
1322
+ type: 'object',
1323
+ },
1324
+ };
1325
+ null === p ? (p = [r]) : p.push(r), f++;
2363
1326
  }
2364
- }
1327
+ (h = r === f), (a = a || h);
1328
+ }
1329
+ if (!a) {
1330
+ const r = {
1331
+ params: {},
1332
+ };
1333
+ return (null === p ? (p = [r]) : p.push(r),
1334
+ f++,
1335
+ (l.errors = p),
1336
+ !1);
2365
1337
  }
1338
+ if (((f = s),
1339
+ null !== p && (s ? (p.length = s) : (p = null)),
1340
+ n !== f))
1341
+ break;
2366
1342
  }
2367
- else {
2368
- validate19.errors = [
1343
+ }
1344
+ }
1345
+ m = e === f;
1346
+ }
1347
+ else
1348
+ m = !0;
1349
+ if (m)
1350
+ if (void 0 !== t.shareScope) {
1351
+ let r = t.shareScope;
1352
+ const e = f;
1353
+ if (f === e) {
1354
+ if ('string' != typeof r)
1355
+ return ((l.errors = [
2369
1356
  {
2370
1357
  params: {
2371
- type: 'object',
1358
+ type: 'string',
2372
1359
  },
2373
1360
  },
2374
- ];
2375
- return false;
2376
- }
1361
+ ]),
1362
+ !1);
1363
+ if (r.length < 1)
1364
+ return ((l.errors = [
1365
+ {
1366
+ params: {},
1367
+ },
1368
+ ]),
1369
+ !1);
2377
1370
  }
2378
- var valid0 = _errs20 === errors;
2379
- }
2380
- else {
2381
- var valid0 = true;
1371
+ m = e === f;
2382
1372
  }
2383
- }
1373
+ else
1374
+ m = !0;
2384
1375
  }
2385
1376
  }
2386
1377
  }
@@ -2390,19 +1381,8 @@ function validate19(data, { instancePath = '', parentData, parentDataProperty, r
2390
1381
  }
2391
1382
  }
2392
1383
  }
2393
- else {
2394
- validate19.errors = [
2395
- {
2396
- params: {
2397
- type: 'object',
2398
- },
2399
- },
2400
- ];
2401
- return false;
2402
- }
2403
1384
  }
2404
- validate19.errors = vErrors;
2405
- return errors === 0;
1385
+ return (l.errors = p), 0 === f;
2406
1386
  }
2407
- exports.default = validate19;
1387
+ exports.default = l;
2408
1388
  //# sourceMappingURL=ContainerPlugin.check.js.map