@module-federation/enhanced 0.11.3 → 0.12.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 (95) hide show
  1. package/dist/package.json +4 -3
  2. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +53 -0
  3. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +14 -2
  4. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +10 -2
  5. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +14 -2
  6. package/dist/src/lib/container/ContainerEntryDependency.d.ts +3 -3
  7. package/dist/src/lib/container/ContainerEntryDependency.js +1 -1
  8. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  9. package/dist/src/lib/container/ContainerEntryModule.d.ts +2 -2
  10. package/dist/src/lib/container/ContainerEntryModule.js +5 -2
  11. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
  12. package/dist/src/lib/container/ContainerReferencePlugin.js +1 -1
  13. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
  14. package/dist/src/lib/container/ModuleFederationPlugin.js +8 -0
  15. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  16. package/dist/src/lib/container/RemoteModule.d.ts +3 -3
  17. package/dist/src/lib/container/RemoteModule.js +5 -2
  18. package/dist/src/lib/container/RemoteModule.js.map +1 -1
  19. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +5 -14
  20. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  21. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +1 -38
  22. package/dist/src/lib/sharing/ConsumeSharedModule.js +25 -15
  23. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  24. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +64 -41
  25. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  26. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +3 -1
  27. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  28. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +5 -3
  29. package/dist/src/lib/sharing/ProvideSharedDependency.js +12 -6
  30. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
  31. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +3 -2
  32. package/dist/src/lib/sharing/ProvideSharedModule.js +10 -12
  33. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
  34. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +1 -3
  35. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
  36. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +2 -10
  37. package/dist/src/lib/sharing/ProvideSharedPlugin.js +65 -43
  38. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  39. package/dist/src/lib/sharing/SharePlugin.d.ts +2 -3
  40. package/dist/src/lib/sharing/SharePlugin.js +8 -5
  41. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  42. package/dist/src/lib/sharing/ShareRuntimeModule.js +9 -7
  43. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
  44. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +2 -1
  45. package/dist/src/lib/sharing/resolveMatchedConfigs.js +33 -16
  46. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  47. package/dist/src/lib/sharing/utils.d.ts +3 -2
  48. package/dist/src/lib/sharing/utils.js +2 -1
  49. package/dist/src/lib/sharing/utils.js.map +1 -1
  50. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +3 -3
  51. package/dist/src/schemas/container/ContainerPlugin.check.js +333 -290
  52. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  53. package/dist/src/schemas/container/ContainerPlugin.d.ts +31 -18
  54. package/dist/src/schemas/container/ContainerPlugin.js +34 -21
  55. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  56. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +3 -3
  57. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +293 -188
  58. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  59. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +25 -5
  60. package/dist/src/schemas/container/ContainerReferencePlugin.js +31 -4
  61. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  62. package/dist/src/schemas/container/ExternalsType.check.js +2 -2
  63. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
  64. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +1464 -1282
  65. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  66. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +130 -78
  67. package/dist/src/schemas/container/ModuleFederationPlugin.js +144 -83
  68. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  69. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +3 -3
  70. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +302 -160
  71. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  72. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +33 -2
  73. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +39 -2
  74. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  75. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +1 -1
  76. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +374 -164
  77. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  78. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +51 -2
  79. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +60 -2
  80. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  81. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +148 -94
  82. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
  83. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +10 -0
  84. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +10 -1
  85. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
  86. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +3 -3
  87. package/dist/src/schemas/sharing/SharePlugin.check.js +239 -135
  88. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  89. package/dist/src/schemas/sharing/SharePlugin.d.ts +24 -4
  90. package/dist/src/schemas/sharing/SharePlugin.js +30 -4
  91. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  92. package/dist/src/utils.d.ts +9 -0
  93. package/dist/src/utils.js +31 -0
  94. package/dist/src/utils.js.map +1 -0
  95. package/package.json +15 -14
@@ -8,8 +8,8 @@ exports.validate = void 0;
8
8
  * DO NOT MODIFY BY HAND.
9
9
  */
10
10
  const e = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
11
- exports.validate = j;
12
- exports.default = j;
11
+ exports.validate = D;
12
+ exports.default = D;
13
13
  const t = {
14
14
  definitions: {
15
15
  AmdContainer: { type: 'string', minLength: 1 },
@@ -86,8 +86,8 @@ const t = {
86
86
  'system',
87
87
  'promise',
88
88
  'import',
89
- 'script',
90
89
  'module-import',
90
+ 'script',
91
91
  'node-commonjs',
92
92
  ],
93
93
  },
@@ -196,7 +196,12 @@ const t = {
196
196
  { $ref: '#/definitions/RemotesItems' },
197
197
  ],
198
198
  },
199
- shareScope: { type: 'string', minLength: 1 },
199
+ shareScope: {
200
+ anyOf: [
201
+ { type: 'string', minLength: 1 },
202
+ { type: 'array', items: { type: 'string', minLength: 1 } },
203
+ ],
204
+ },
200
205
  },
201
206
  required: ['external'],
202
207
  },
@@ -237,11 +242,18 @@ const t = {
237
242
  import: {
238
243
  anyOf: [{ enum: [!1] }, { $ref: '#/definitions/SharedItem' }],
239
244
  },
245
+ request: { type: 'string', minLength: 1 },
246
+ layer: { type: 'string', minLength: 1 },
247
+ issuerLayer: { type: 'string', minLength: 1 },
240
248
  packageName: { type: 'string', minLength: 1 },
241
249
  requiredVersion: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
242
250
  shareKey: { type: 'string', minLength: 1 },
243
- shareScope: { type: 'string', minLength: 1 },
244
- shareStrategy: { enum: ['version-first', 'loaded-first'] },
251
+ shareScope: {
252
+ anyOf: [
253
+ { type: 'string', minLength: 1 },
254
+ { type: 'array', items: { type: 'string', minLength: 1 } },
255
+ ],
256
+ },
245
257
  singleton: { type: 'boolean' },
246
258
  strictVersion: { type: 'boolean' },
247
259
  version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
@@ -262,48 +274,25 @@ const t = {
262
274
  type: 'object',
263
275
  additionalProperties: !1,
264
276
  properties: {
265
- dataPrefetch: { type: 'boolean' },
277
+ async: { type: 'boolean' },
266
278
  exposes: { $ref: '#/definitions/Exposes' },
267
- filename: { type: 'string', absolutePath: !1 },
268
- getPublicPath: { type: 'string' },
269
- implementation: { type: 'string' },
279
+ filename: { type: 'string', absolutePath: !1, minLength: 1 },
270
280
  library: { $ref: '#/definitions/LibraryOptions' },
271
- manifest: {
272
- anyOf: [
273
- { type: 'boolean' },
274
- {
275
- type: 'object',
276
- properties: {
277
- filePath: { type: 'string' },
278
- disableAssetsAnalyze: { type: 'boolean' },
279
- fileName: { type: 'string' },
280
- additionalData: { type: 'string' },
281
- },
282
- },
283
- ],
284
- },
285
- name: { type: 'string' },
281
+ name: { type: 'string', minLength: 1 },
286
282
  remoteType: { oneOf: [{ $ref: '#/definitions/ExternalsType' }] },
287
283
  remotes: { $ref: '#/definitions/Remotes' },
288
284
  runtime: { $ref: '#/definitions/EntryRuntime' },
289
- runtimePlugins: { type: 'array', items: { type: 'string' } },
290
- shareScope: { type: 'string', minLength: 1 },
291
- shareStrategy: { enum: ['version-first', 'loaded-first'] },
292
- shared: { $ref: '#/definitions/Shared' },
293
- virtualRuntimeEntry: { type: 'boolean' },
294
- dev: {
285
+ shareScope: {
295
286
  anyOf: [
296
- { type: 'boolean' },
297
- {
298
- type: 'object',
299
- properties: {
300
- disableLiveReload: { type: 'boolean' },
301
- disableHotTypesReload: { type: 'boolean' },
302
- disableDynamicRemoteTypeHints: { type: 'boolean' },
303
- },
304
- },
287
+ { type: 'string', minLength: 1 },
288
+ { type: 'array', items: { type: 'string', minLength: 1 } },
305
289
  ],
306
290
  },
291
+ shareStrategy: {
292
+ enum: ['version-first', 'loaded-first'],
293
+ type: 'string',
294
+ },
295
+ shared: { $ref: '#/definitions/Shared' },
307
296
  dts: {
308
297
  anyOf: [
309
298
  { type: 'boolean' },
@@ -371,7 +360,42 @@ const t = {
371
360
  bridge: {
372
361
  type: 'object',
373
362
  properties: { disableAlias: { type: 'boolean', default: !1 } },
363
+ additionalProperties: !1,
364
+ },
365
+ virtualRuntimeEntry: { type: 'boolean' },
366
+ dev: {
367
+ anyOf: [
368
+ { type: 'boolean' },
369
+ {
370
+ type: 'object',
371
+ properties: {
372
+ disableLiveReload: { type: 'boolean' },
373
+ disableHotTypesReload: { type: 'boolean' },
374
+ disableDynamicRemoteTypeHints: { type: 'boolean' },
375
+ },
376
+ additionalProperties: !1,
377
+ },
378
+ ],
379
+ },
380
+ manifest: {
381
+ anyOf: [
382
+ { type: 'boolean' },
383
+ {
384
+ type: 'object',
385
+ properties: {
386
+ filePath: { type: 'string' },
387
+ disableAssetsAnalyze: { type: 'boolean' },
388
+ fileName: { type: 'string' },
389
+ additionalData: { instanceof: 'Function' },
390
+ },
391
+ additionalProperties: !1,
392
+ },
393
+ ],
374
394
  },
395
+ runtimePlugins: { type: 'array', items: { type: 'string' } },
396
+ getPublicPath: { type: 'string' },
397
+ dataPrefetch: { type: 'boolean' },
398
+ implementation: { type: 'string' },
375
399
  },
376
400
  }, r = {
377
401
  enum: [
@@ -394,8 +418,8 @@ const t = {
394
418
  'system',
395
419
  'promise',
396
420
  'import',
397
- 'script',
398
421
  'module-import',
422
+ 'script',
399
423
  'node-commonjs',
400
424
  ],
401
425
  }, n = { anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }] }, s = Object.prototype.hasOwnProperty;
@@ -436,7 +460,7 @@ function a(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
436
460
  let r = e.import;
437
461
  const n = l, y = l;
438
462
  let c = !1;
439
- const m = l;
463
+ const u = l;
440
464
  if (l == l)
441
465
  if ('string' == typeof r) {
442
466
  if (r.length < 1) {
@@ -448,7 +472,7 @@ function a(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
448
472
  const e = { params: { type: 'string' } };
449
473
  null === i ? (i = [e]) : i.push(e), l++;
450
474
  }
451
- var p = m === l;
475
+ var p = u === l;
452
476
  if (((c = c || p), !c)) {
453
477
  const n = l;
454
478
  o(r, {
@@ -494,16 +518,16 @@ function i(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
494
518
  for (const r in e) {
495
519
  let n = e[r];
496
520
  const y = p, c = p;
497
- let m = !1;
498
- const u = p;
521
+ let u = !1;
522
+ const m = p;
499
523
  a(n, {
500
524
  instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
501
525
  parentData: e,
502
526
  parentDataProperty: r,
503
527
  rootData: s,
504
528
  }) || ((l = null === l ? a.errors : l.concat(a.errors)), (p = l.length));
505
- var f = u === p;
506
- if (((m = m || f), !m)) {
529
+ var f = m === p;
530
+ if (((u = u || f), !u)) {
507
531
  const a = p;
508
532
  if (p == p)
509
533
  if ('string' == typeof n) {
@@ -516,7 +540,7 @@ function i(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
516
540
  const e = { params: { type: 'string' } };
517
541
  null === l ? (l = [e]) : l.push(e), p++;
518
542
  }
519
- if (((f = a === p), (m = m || f), !m)) {
543
+ if (((f = a === p), (u = u || f), !u)) {
520
544
  const a = p;
521
545
  o(n, {
522
546
  instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
@@ -526,10 +550,10 @@ function i(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
526
550
  }) ||
527
551
  ((l = null === l ? o.errors : l.concat(o.errors)), (p = l.length)),
528
552
  (f = a === p),
529
- (m = m || f);
553
+ (u = u || f);
530
554
  }
531
555
  }
532
- if (!m) {
556
+ if (!u) {
533
557
  const e = { params: {} };
534
558
  return null === l ? (l = [e]) : l.push(e), p++, (i.errors = l), !1;
535
559
  }
@@ -590,8 +614,8 @@ function l(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
590
614
  const e = { params: { type: 'array' } };
591
615
  null === o ? (o = [e]) : o.push(e), a++;
592
616
  }
593
- var m = y === a;
594
- if (((f = f || m), !f)) {
617
+ var u = y === a;
618
+ if (((f = f || u), !f)) {
595
619
  const l = a;
596
620
  i(e, {
597
621
  instancePath: t,
@@ -599,8 +623,8 @@ function l(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
599
623
  parentDataProperty: n,
600
624
  rootData: s,
601
625
  }) || ((o = null === o ? i.errors : o.concat(i.errors)), (a = o.length)),
602
- (m = l === a),
603
- (f = f || m);
626
+ (u = l === a),
627
+ (f = f || u);
604
628
  }
605
629
  if (!f) {
606
630
  const e = { params: {} };
@@ -854,8 +878,8 @@ function y(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
854
878
  const e = { params: { type: 'array' } };
855
879
  null === o ? (o = [e]) : o.push(e), a++;
856
880
  }
857
- var m = i === a;
858
- if (((s = s || m), !s)) {
881
+ var u = i === a;
882
+ if (((s = s || u), !s)) {
859
883
  const e = a;
860
884
  if (a === e)
861
885
  if ('string' == typeof t) {
@@ -868,7 +892,7 @@ function y(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
868
892
  const e = { params: { type: 'string' } };
869
893
  null === o ? (o = [e]) : o.push(e), a++;
870
894
  }
871
- (m = e === a), (s = s || m);
895
+ (u = e === a), (s = s || u);
872
896
  }
873
897
  if (s)
874
898
  (a = n), null !== o && (n ? (o.length = n) : (o = null));
@@ -1046,14 +1070,14 @@ function c(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1046
1070
  const e = { params: { allowedValues: p.anyOf[0].enum } };
1047
1071
  null === o ? (o = [e]) : o.push(e), a++;
1048
1072
  }
1049
- var m = l === a;
1050
- if (((s = s || m), !s)) {
1073
+ var u = l === a;
1074
+ if (((s = s || u), !s)) {
1051
1075
  const e = a;
1052
1076
  if ('string' != typeof t) {
1053
1077
  const e = { params: { type: 'string' } };
1054
1078
  null === o ? (o = [e]) : o.push(e), a++;
1055
1079
  }
1056
- (m = e === a), (s = s || m);
1080
+ (u = e === a), (s = s || u);
1057
1081
  }
1058
1082
  if (!s) {
1059
1083
  const e = { params: {} };
@@ -1087,38 +1111,38 @@ function c(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1087
1111
  }
1088
1112
  return (c.errors = o), 0 === a;
1089
1113
  }
1090
- function m(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1114
+ function u(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1091
1115
  if (!Array.isArray(e))
1092
- return (m.errors = [{ params: { type: 'array' } }]), !1;
1116
+ return (u.errors = [{ params: { type: 'array' } }]), !1;
1093
1117
  {
1094
1118
  const t = e.length;
1095
1119
  for (let r = 0; r < t; r++) {
1096
1120
  let t = e[r];
1097
1121
  const n = 0;
1098
1122
  if ('string' != typeof t)
1099
- return (m.errors = [{ params: { type: 'string' } }]), !1;
1123
+ return (u.errors = [{ params: { type: 'string' } }]), !1;
1100
1124
  if (t.length < 1)
1101
- return (m.errors = [{ params: {} }]), !1;
1125
+ return (u.errors = [{ params: {} }]), !1;
1102
1126
  if (0 !== n)
1103
1127
  break;
1104
1128
  }
1105
1129
  }
1106
- return (m.errors = null), !0;
1130
+ return (u.errors = null), !0;
1107
1131
  }
1108
- function u(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1132
+ function m(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1109
1133
  let o = null, a = 0;
1110
1134
  if (0 === a) {
1111
1135
  if (!e || 'object' != typeof e || Array.isArray(e))
1112
- return (u.errors = [{ params: { type: 'object' } }]), !1;
1136
+ return (m.errors = [{ params: { type: 'object' } }]), !1;
1113
1137
  {
1114
1138
  let r;
1115
1139
  if (void 0 === e.external && (r = 'external'))
1116
- return (u.errors = [{ params: { missingProperty: r } }]), !1;
1140
+ return (m.errors = [{ params: { missingProperty: r } }]), !1;
1117
1141
  {
1118
1142
  const r = a;
1119
1143
  for (const t in e)
1120
1144
  if ('external' !== t && 'shareScope' !== t)
1121
- return (u.errors = [{ params: { additionalProperty: t } }]), !1;
1145
+ return (m.errors = [{ params: { additionalProperty: t } }]), !1;
1122
1146
  if (r === a) {
1123
1147
  if (void 0 !== e.external) {
1124
1148
  let r = e.external;
@@ -1139,20 +1163,20 @@ function u(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1139
1163
  var i = y === a;
1140
1164
  if (((f = f || i), !f)) {
1141
1165
  const n = a;
1142
- m(r, {
1166
+ u(r, {
1143
1167
  instancePath: t + '/external',
1144
1168
  parentData: e,
1145
1169
  parentDataProperty: 'external',
1146
1170
  rootData: s,
1147
1171
  }) ||
1148
- ((o = null === o ? m.errors : o.concat(m.errors)),
1172
+ ((o = null === o ? u.errors : o.concat(u.errors)),
1149
1173
  (a = o.length)),
1150
1174
  (i = n === a),
1151
1175
  (f = f || i);
1152
1176
  }
1153
1177
  if (!f) {
1154
1178
  const e = { params: {} };
1155
- return (null === o ? (o = [e]) : o.push(e), a++, (u.errors = o), !1);
1179
+ return (null === o ? (o = [e]) : o.push(e), a++, (m.errors = o), !1);
1156
1180
  }
1157
1181
  (a = p), null !== o && (p ? (o.length = p) : (o = null));
1158
1182
  var l = n === a;
@@ -1162,14 +1186,57 @@ function u(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1162
1186
  if (l)
1163
1187
  if (void 0 !== e.shareScope) {
1164
1188
  let t = e.shareScope;
1165
- const r = a;
1166
- if (a === r) {
1167
- if ('string' != typeof t)
1168
- return (u.errors = [{ params: { type: 'string' } }]), !1;
1169
- if (t.length < 1)
1170
- return (u.errors = [{ params: {} }]), !1;
1189
+ const r = a, n = a;
1190
+ let s = !1;
1191
+ const i = a;
1192
+ if (a === i)
1193
+ if ('string' == typeof t) {
1194
+ if (t.length < 1) {
1195
+ const e = { params: {} };
1196
+ null === o ? (o = [e]) : o.push(e), a++;
1197
+ }
1198
+ }
1199
+ else {
1200
+ const e = { params: { type: 'string' } };
1201
+ null === o ? (o = [e]) : o.push(e), a++;
1202
+ }
1203
+ var p = i === a;
1204
+ if (((s = s || p), !s)) {
1205
+ const e = a;
1206
+ if (a === e)
1207
+ if (Array.isArray(t)) {
1208
+ const e = t.length;
1209
+ for (let r = 0; r < e; r++) {
1210
+ let e = t[r];
1211
+ const n = a;
1212
+ if (a === n)
1213
+ if ('string' == typeof e) {
1214
+ if (e.length < 1) {
1215
+ const e = { params: {} };
1216
+ null === o ? (o = [e]) : o.push(e), a++;
1217
+ }
1218
+ }
1219
+ else {
1220
+ const e = { params: { type: 'string' } };
1221
+ null === o ? (o = [e]) : o.push(e), a++;
1222
+ }
1223
+ if (n !== a)
1224
+ break;
1225
+ }
1226
+ }
1227
+ else {
1228
+ const e = { params: { type: 'array' } };
1229
+ null === o ? (o = [e]) : o.push(e), a++;
1230
+ }
1231
+ (p = e === a), (s = s || p);
1171
1232
  }
1172
- l = r === a;
1233
+ if (!s) {
1234
+ const e = { params: {} };
1235
+ return (null === o ? (o = [e]) : o.push(e), a++, (m.errors = o), !1);
1236
+ }
1237
+ (a = n),
1238
+ null !== o && (n ? (o.length = n) : (o = null)),
1239
+ (l = r === a);
1173
1240
  }
1174
1241
  else
1175
1242
  l = !0;
@@ -1177,7 +1244,7 @@ function u(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1177
1244
  }
1178
1245
  }
1179
1246
  }
1180
- return (u.errors = o), 0 === a;
1247
+ return (m.errors = o), 0 === a;
1181
1248
  }
1182
1249
  function d(e, { instancePath: t = '', parentData: r, parentDataProperty: n, rootData: s = e, } = {}) {
1183
1250
  let o = null, a = 0;
@@ -1189,12 +1256,12 @@ function d(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1189
1256
  const l = a, p = a;
1190
1257
  let f = !1;
1191
1258
  const y = a;
1192
- u(n, {
1259
+ m(n, {
1193
1260
  instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
1194
1261
  parentData: e,
1195
1262
  parentDataProperty: r,
1196
1263
  rootData: s,
1197
- }) || ((o = null === o ? u.errors : o.concat(u.errors)), (a = o.length));
1264
+ }) || ((o = null === o ? m.errors : o.concat(m.errors)), (a = o.length));
1198
1265
  var i = y === a;
1199
1266
  if (((f = f || i), !f)) {
1200
1267
  const l = a;
@@ -1211,13 +1278,13 @@ function d(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1211
1278
  }
1212
1279
  if (((i = l === a), (f = f || i), !f)) {
1213
1280
  const l = a;
1214
- m(n, {
1281
+ u(n, {
1215
1282
  instancePath: t + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
1216
1283
  parentData: e,
1217
1284
  parentDataProperty: r,
1218
1285
  rootData: s,
1219
1286
  }) ||
1220
- ((o = null === o ? m.errors : o.concat(m.errors)), (a = o.length)),
1287
+ ((o = null === o ? u.errors : o.concat(u.errors)), (a = o.length)),
1221
1288
  (i = l === a),
1222
1289
  (f = f || i);
1223
1290
  }
@@ -1310,11 +1377,18 @@ const h = {
1310
1377
  properties: {
1311
1378
  eager: { type: 'boolean' },
1312
1379
  import: { anyOf: [{ enum: [!1] }, { $ref: '#/definitions/SharedItem' }] },
1380
+ request: { type: 'string', minLength: 1 },
1381
+ layer: { type: 'string', minLength: 1 },
1382
+ issuerLayer: { type: 'string', minLength: 1 },
1313
1383
  packageName: { type: 'string', minLength: 1 },
1314
1384
  requiredVersion: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
1315
1385
  shareKey: { type: 'string', minLength: 1 },
1316
- shareScope: { type: 'string', minLength: 1 },
1317
- shareStrategy: { enum: ['version-first', 'loaded-first'] },
1386
+ shareScope: {
1387
+ anyOf: [
1388
+ { type: 'string', minLength: 1 },
1389
+ { type: 'array', items: { type: 'string', minLength: 1 } },
1390
+ ],
1391
+ },
1318
1392
  singleton: { type: 'boolean' },
1319
1393
  strictVersion: { type: 'boolean' },
1320
1394
  version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
@@ -1378,8 +1452,8 @@ function b(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1378
1452
  else
1379
1453
  l = !0;
1380
1454
  if (l) {
1381
- if (void 0 !== e.packageName) {
1382
- let t = e.packageName;
1455
+ if (void 0 !== e.request) {
1456
+ let t = e.request;
1383
1457
  const r = i;
1384
1458
  if (i === r) {
1385
1459
  if ('string' != typeof t)
@@ -1392,41 +1466,22 @@ function b(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1392
1466
  else
1393
1467
  l = !0;
1394
1468
  if (l) {
1395
- if (void 0 !== e.requiredVersion) {
1396
- let t = e.requiredVersion;
1397
- const r = i, n = i;
1398
- let s = !1;
1399
- const o = i;
1400
- if (!1 !== t) {
1401
- const e = {
1402
- params: {
1403
- allowedValues: h.properties.requiredVersion.anyOf[0].enum,
1404
- },
1405
- };
1406
- null === a ? (a = [e]) : a.push(e), i++;
1407
- }
1408
- var f = o === i;
1409
- if (((s = s || f), !s)) {
1410
- const e = i;
1411
- if ('string' != typeof t) {
1412
- const e = { params: { type: 'string' } };
1413
- null === a ? (a = [e]) : a.push(e), i++;
1414
- }
1415
- (f = e === i), (s = s || f);
1416
- }
1417
- if (!s) {
1418
- const e = { params: {} };
1419
- return (null === a ? (a = [e]) : a.push(e), i++, (b.errors = a), !1);
1469
+ if (void 0 !== e.layer) {
1470
+ let t = e.layer;
1471
+ const r = i;
1472
+ if (i === r) {
1473
+ if ('string' != typeof t)
1474
+ return (b.errors = [{ params: { type: 'string' } }]), !1;
1475
+ if (t.length < 1)
1476
+ return (b.errors = [{ params: {} }]), !1;
1420
1477
  }
1421
- (i = n),
1422
- null !== a && (n ? (a.length = n) : (a = null)),
1423
- (l = r === i);
1478
+ l = r === i;
1424
1479
  }
1425
1480
  else
1426
1481
  l = !0;
1427
1482
  if (l) {
1428
- if (void 0 !== e.shareKey) {
1429
- let t = e.shareKey;
1483
+ if (void 0 !== e.issuerLayer) {
1484
+ let t = e.issuerLayer;
1430
1485
  const r = i;
1431
1486
  if (i === r) {
1432
1487
  if ('string' != typeof t)
@@ -1439,8 +1494,8 @@ function b(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1439
1494
  else
1440
1495
  l = !0;
1441
1496
  if (l) {
1442
- if (void 0 !== e.shareScope) {
1443
- let t = e.shareScope;
1497
+ if (void 0 !== e.packageName) {
1498
+ let t = e.packageName;
1444
1499
  const r = i;
1445
1500
  if (i === r) {
1446
1501
  if ('string' != typeof t)
@@ -1453,76 +1508,176 @@ function b(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1453
1508
  else
1454
1509
  l = !0;
1455
1510
  if (l) {
1456
- if (void 0 !== e.shareStrategy) {
1457
- let t = e.shareStrategy;
1458
- const r = i;
1459
- if ('version-first' !== t && 'loaded-first' !== t)
1460
- return ((b.errors = [
1461
- {
1462
- params: {
1463
- allowedValues: h.properties.shareStrategy.enum,
1464
- },
1511
+ if (void 0 !== e.requiredVersion) {
1512
+ let t = e.requiredVersion;
1513
+ const r = i, n = i;
1514
+ let s = !1;
1515
+ const o = i;
1516
+ if (!1 !== t) {
1517
+ const e = {
1518
+ params: {
1519
+ allowedValues: h.properties.requiredVersion.anyOf[0].enum,
1465
1520
  },
1466
- ]),
1521
+ };
1522
+ null === a ? (a = [e]) : a.push(e), i++;
1523
+ }
1524
+ var f = o === i;
1525
+ if (((s = s || f), !s)) {
1526
+ const e = i;
1527
+ if ('string' != typeof t) {
1528
+ const e = { params: { type: 'string' } };
1529
+ null === a ? (a = [e]) : a.push(e), i++;
1530
+ }
1531
+ (f = e === i), (s = s || f);
1532
+ }
1533
+ if (!s) {
1534
+ const e = { params: {} };
1535
+ return (null === a ? (a = [e]) : a.push(e),
1536
+ i++,
1537
+ (b.errors = a),
1467
1538
  !1);
1468
- l = r === i;
1539
+ }
1540
+ (i = n),
1541
+ null !== a && (n ? (a.length = n) : (a = null)),
1542
+ (l = r === i);
1469
1543
  }
1470
1544
  else
1471
1545
  l = !0;
1472
1546
  if (l) {
1473
- if (void 0 !== e.singleton) {
1474
- const t = i;
1475
- if ('boolean' != typeof e.singleton)
1476
- return ((b.errors = [{ params: { type: 'boolean' } }]), !1);
1477
- l = t === i;
1547
+ if (void 0 !== e.shareKey) {
1548
+ let t = e.shareKey;
1549
+ const r = i;
1550
+ if (i === r) {
1551
+ if ('string' != typeof t)
1552
+ return ((b.errors = [{ params: { type: 'string' } }]), !1);
1553
+ if (t.length < 1)
1554
+ return (b.errors = [{ params: {} }]), !1;
1555
+ }
1556
+ l = r === i;
1478
1557
  }
1479
1558
  else
1480
1559
  l = !0;
1481
1560
  if (l) {
1482
- if (void 0 !== e.strictVersion) {
1483
- const t = i;
1484
- if ('boolean' != typeof e.strictVersion)
1485
- return ((b.errors = [{ params: { type: 'boolean' } }]), !1);
1486
- l = t === i;
1487
- }
1488
- else
1489
- l = !0;
1490
- if (l)
1491
- if (void 0 !== e.version) {
1492
- let t = e.version;
1493
- const r = i, n = i;
1494
- let s = !1;
1495
- const o = i;
1496
- if (!1 !== t) {
1497
- const e = {
1498
- params: {
1499
- allowedValues: h.properties.version.anyOf[0].enum,
1500
- },
1501
- };
1561
+ if (void 0 !== e.shareScope) {
1562
+ let t = e.shareScope;
1563
+ const r = i, n = i;
1564
+ let s = !1;
1565
+ const o = i;
1566
+ if (i === o)
1567
+ if ('string' == typeof t) {
1568
+ if (t.length < 1) {
1569
+ const e = { params: {} };
1570
+ null === a ? (a = [e]) : a.push(e), i++;
1571
+ }
1572
+ }
1573
+ else {
1574
+ const e = { params: { type: 'string' } };
1502
1575
  null === a ? (a = [e]) : a.push(e), i++;
1503
1576
  }
1504
- var y = o === i;
1505
- if (((s = s || y), !s)) {
1506
- const e = i;
1507
- if ('string' != typeof t) {
1508
- const e = { params: { type: 'string' } };
1577
+ var y = o === i;
1578
+ if (((s = s || y), !s)) {
1579
+ const e = i;
1580
+ if (i === e)
1581
+ if (Array.isArray(t)) {
1582
+ const e = t.length;
1583
+ for (let r = 0; r < e; r++) {
1584
+ let e = t[r];
1585
+ const n = i;
1586
+ if (i === n)
1587
+ if ('string' == typeof e) {
1588
+ if (e.length < 1) {
1589
+ const e = { params: {} };
1590
+ null === a ? (a = [e]) : a.push(e), i++;
1591
+ }
1592
+ }
1593
+ else {
1594
+ const e = { params: { type: 'string' } };
1595
+ null === a ? (a = [e]) : a.push(e), i++;
1596
+ }
1597
+ if (n !== i)
1598
+ break;
1599
+ }
1600
+ }
1601
+ else {
1602
+ const e = { params: { type: 'array' } };
1509
1603
  null === a ? (a = [e]) : a.push(e), i++;
1510
1604
  }
1511
- (y = e === i), (s = s || y);
1512
- }
1513
- if (!s) {
1514
- const e = { params: {} };
1515
- return (null === a ? (a = [e]) : a.push(e),
1516
- i++,
1517
- (b.errors = a),
1605
+ (y = e === i), (s = s || y);
1606
+ }
1607
+ if (!s) {
1608
+ const e = { params: {} };
1609
+ return (null === a ? (a = [e]) : a.push(e),
1610
+ i++,
1611
+ (b.errors = a),
1612
+ !1);
1613
+ }
1614
+ (i = n),
1615
+ null !== a && (n ? (a.length = n) : (a = null)),
1616
+ (l = r === i);
1617
+ }
1618
+ else
1619
+ l = !0;
1620
+ if (l) {
1621
+ if (void 0 !== e.singleton) {
1622
+ const t = i;
1623
+ if ('boolean' != typeof e.singleton)
1624
+ return ((b.errors = [{ params: { type: 'boolean' } }]),
1518
1625
  !1);
1519
- }
1520
- (i = n),
1521
- null !== a && (n ? (a.length = n) : (a = null)),
1522
- (l = r === i);
1626
+ l = t === i;
1523
1627
  }
1524
1628
  else
1525
1629
  l = !0;
1630
+ if (l) {
1631
+ if (void 0 !== e.strictVersion) {
1632
+ const t = i;
1633
+ if ('boolean' != typeof e.strictVersion)
1634
+ return ((b.errors = [
1635
+ { params: { type: 'boolean' } },
1636
+ ]),
1637
+ !1);
1638
+ l = t === i;
1639
+ }
1640
+ else
1641
+ l = !0;
1642
+ if (l)
1643
+ if (void 0 !== e.version) {
1644
+ let t = e.version;
1645
+ const r = i, n = i;
1646
+ let s = !1;
1647
+ const o = i;
1648
+ if (!1 !== t) {
1649
+ const e = {
1650
+ params: {
1651
+ allowedValues: h.properties.version.anyOf[0].enum,
1652
+ },
1653
+ };
1654
+ null === a ? (a = [e]) : a.push(e), i++;
1655
+ }
1656
+ var c = o === i;
1657
+ if (((s = s || c), !s)) {
1658
+ const e = i;
1659
+ if ('string' != typeof t) {
1660
+ const e = { params: { type: 'string' } };
1661
+ null === a ? (a = [e]) : a.push(e), i++;
1662
+ }
1663
+ (c = e === i), (s = s || c);
1664
+ }
1665
+ if (!s) {
1666
+ const e = { params: {} };
1667
+ return (null === a ? (a = [e]) : a.push(e),
1668
+ i++,
1669
+ (b.errors = a),
1670
+ !1);
1671
+ }
1672
+ (i = n),
1673
+ null !== a &&
1674
+ (n ? (a.length = n) : (a = null)),
1675
+ (l = r === i);
1676
+ }
1677
+ else
1678
+ l = !0;
1679
+ }
1680
+ }
1526
1681
  }
1527
1682
  }
1528
1683
  }
@@ -1650,28 +1805,28 @@ function P(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
1650
1805
  (P.errors = o),
1651
1806
  0 === a);
1652
1807
  }
1653
- function j(o, { instancePath: a = '', parentData: i, parentDataProperty: p, rootData: f = o, } = {}) {
1654
- let y = null, m = 0;
1655
- if (0 === m) {
1808
+ function D(o, { instancePath: a = '', parentData: i, parentDataProperty: p, rootData: f = o, } = {}) {
1809
+ let y = null, u = 0;
1810
+ if (0 === u) {
1656
1811
  if (!o || 'object' != typeof o || Array.isArray(o))
1657
- return (j.errors = [{ params: { type: 'object' } }]), !1;
1812
+ return (D.errors = [{ params: { type: 'object' } }]), !1;
1658
1813
  {
1659
- const i = m;
1814
+ const i = u;
1660
1815
  for (const e in o)
1661
1816
  if (!s.call(t.properties, e))
1662
- return (j.errors = [{ params: { additionalProperty: e } }]), !1;
1663
- if (i === m) {
1664
- if (void 0 !== o.dataPrefetch) {
1665
- const e = m;
1666
- if ('boolean' != typeof o.dataPrefetch)
1667
- return (j.errors = [{ params: { type: 'boolean' } }]), !1;
1668
- var u = e === m;
1817
+ return (D.errors = [{ params: { additionalProperty: e } }]), !1;
1818
+ if (i === u) {
1819
+ if (void 0 !== o.async) {
1820
+ const e = u;
1821
+ if ('boolean' != typeof o.async)
1822
+ return (D.errors = [{ params: { type: 'boolean' } }]), !1;
1823
+ var m = e === u;
1669
1824
  }
1670
1825
  else
1671
- u = !0;
1672
- if (u) {
1826
+ m = !0;
1827
+ if (m) {
1673
1828
  if (void 0 !== o.exposes) {
1674
- const e = m;
1829
+ const e = u;
1675
1830
  l(o.exposes, {
1676
1831
  instancePath: a + '/exposes',
1677
1832
  parentData: o,
@@ -1679,405 +1834,349 @@ function j(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
1679
1834
  rootData: f,
1680
1835
  }) ||
1681
1836
  ((y = null === y ? l.errors : y.concat(l.errors)),
1682
- (m = y.length)),
1683
- (u = e === m);
1837
+ (u = y.length)),
1838
+ (m = e === u);
1684
1839
  }
1685
1840
  else
1686
- u = !0;
1687
- if (u) {
1841
+ m = !0;
1842
+ if (m) {
1688
1843
  if (void 0 !== o.filename) {
1689
1844
  let t = o.filename;
1690
- const r = m;
1691
- if (m === r) {
1845
+ const r = u;
1846
+ if (u === r) {
1692
1847
  if ('string' != typeof t)
1693
- return (j.errors = [{ params: { type: 'string' } }]), !1;
1848
+ return (D.errors = [{ params: { type: 'string' } }]), !1;
1849
+ if (t.length < 1)
1850
+ return (D.errors = [{ params: {} }]), !1;
1694
1851
  if (t.includes('!') || !1 !== e.test(t))
1695
- return (j.errors = [{ params: {} }]), !1;
1852
+ return (D.errors = [{ params: {} }]), !1;
1696
1853
  }
1697
- u = r === m;
1854
+ m = r === u;
1698
1855
  }
1699
1856
  else
1700
- u = !0;
1701
- if (u) {
1702
- if (void 0 !== o.getPublicPath) {
1703
- const e = m;
1704
- if ('string' != typeof o.getPublicPath)
1705
- return (j.errors = [{ params: { type: 'string' } }]), !1;
1706
- u = e === m;
1857
+ m = !0;
1858
+ if (m) {
1859
+ if (void 0 !== o.library) {
1860
+ const e = u;
1861
+ c(o.library, {
1862
+ instancePath: a + '/library',
1863
+ parentData: o,
1864
+ parentDataProperty: 'library',
1865
+ rootData: f,
1866
+ }) ||
1867
+ ((y = null === y ? c.errors : y.concat(c.errors)),
1868
+ (u = y.length)),
1869
+ (m = e === u);
1707
1870
  }
1708
1871
  else
1709
- u = !0;
1710
- if (u) {
1711
- if (void 0 !== o.implementation) {
1712
- const e = m;
1713
- if ('string' != typeof o.implementation)
1714
- return (j.errors = [{ params: { type: 'string' } }]), !1;
1715
- u = e === m;
1872
+ m = !0;
1873
+ if (m) {
1874
+ if (void 0 !== o.name) {
1875
+ let e = o.name;
1876
+ const t = u;
1877
+ if (u === t) {
1878
+ if ('string' != typeof e)
1879
+ return (D.errors = [{ params: { type: 'string' } }]), !1;
1880
+ if (e.length < 1)
1881
+ return (D.errors = [{ params: {} }]), !1;
1882
+ }
1883
+ m = t === u;
1716
1884
  }
1717
1885
  else
1718
- u = !0;
1719
- if (u) {
1720
- if (void 0 !== o.library) {
1721
- const e = m;
1722
- c(o.library, {
1723
- instancePath: a + '/library',
1724
- parentData: o,
1725
- parentDataProperty: 'library',
1726
- rootData: f,
1727
- }) ||
1728
- ((y = null === y ? c.errors : y.concat(c.errors)),
1729
- (m = y.length)),
1730
- (u = e === m);
1886
+ m = !0;
1887
+ if (m) {
1888
+ if (void 0 !== o.remoteType) {
1889
+ let e = o.remoteType;
1890
+ const t = u, n = u;
1891
+ let s = !1, a = null;
1892
+ const i = u;
1893
+ if ('var' !== e &&
1894
+ 'module' !== e &&
1895
+ 'assign' !== e &&
1896
+ 'this' !== e &&
1897
+ 'window' !== e &&
1898
+ 'self' !== e &&
1899
+ 'global' !== e &&
1900
+ 'commonjs' !== e &&
1901
+ 'commonjs2' !== e &&
1902
+ 'commonjs-module' !== e &&
1903
+ 'commonjs-static' !== e &&
1904
+ 'amd' !== e &&
1905
+ 'amd-require' !== e &&
1906
+ 'umd' !== e &&
1907
+ 'umd2' !== e &&
1908
+ 'jsonp' !== e &&
1909
+ 'system' !== e &&
1910
+ 'promise' !== e &&
1911
+ 'import' !== e &&
1912
+ 'module-import' !== e &&
1913
+ 'script' !== e &&
1914
+ 'node-commonjs' !== e) {
1915
+ const e = { params: { allowedValues: r.enum } };
1916
+ null === y ? (y = [e]) : y.push(e), u++;
1917
+ }
1918
+ if ((i === u && ((s = !0), (a = 0)), !s)) {
1919
+ const e = { params: { passingSchemas: a } };
1920
+ return (null === y ? (y = [e]) : y.push(e),
1921
+ u++,
1922
+ (D.errors = y),
1923
+ !1);
1924
+ }
1925
+ (u = n),
1926
+ null !== y && (n ? (y.length = n) : (y = null)),
1927
+ (m = t === u);
1731
1928
  }
1732
1929
  else
1733
- u = !0;
1734
- if (u) {
1735
- if (void 0 !== o.manifest) {
1736
- let e = o.manifest;
1737
- const t = m, r = m;
1738
- let n = !1;
1739
- const s = m;
1740
- if ('boolean' != typeof e) {
1741
- const e = { params: { type: 'boolean' } };
1742
- null === y ? (y = [e]) : y.push(e), m++;
1743
- }
1744
- var d = s === m;
1745
- if (((n = n || d), !n)) {
1746
- const t = m;
1747
- if (m === t)
1748
- if (e && 'object' == typeof e && !Array.isArray(e)) {
1749
- if (void 0 !== e.filePath) {
1750
- const t = m;
1751
- if ('string' != typeof e.filePath) {
1752
- const e = { params: { type: 'string' } };
1753
- null === y ? (y = [e]) : y.push(e), m++;
1930
+ m = !0;
1931
+ if (m) {
1932
+ if (void 0 !== o.remotes) {
1933
+ const e = u;
1934
+ g(o.remotes, {
1935
+ instancePath: a + '/remotes',
1936
+ parentData: o,
1937
+ parentDataProperty: 'remotes',
1938
+ rootData: f,
1939
+ }) ||
1940
+ ((y = null === y ? g.errors : y.concat(g.errors)),
1941
+ (u = y.length)),
1942
+ (m = e === u);
1943
+ }
1944
+ else
1945
+ m = !0;
1946
+ if (m) {
1947
+ if (void 0 !== o.runtime) {
1948
+ let e = o.runtime;
1949
+ const t = u, r = u;
1950
+ let s = !1;
1951
+ const a = u;
1952
+ if (!1 !== e) {
1953
+ const e = {
1954
+ params: { allowedValues: n.anyOf[0].enum },
1955
+ };
1956
+ null === y ? (y = [e]) : y.push(e), u++;
1957
+ }
1958
+ var d = a === u;
1959
+ if (((s = s || d), !s)) {
1960
+ const t = u;
1961
+ if (u === t)
1962
+ if ('string' == typeof e) {
1963
+ if (e.length < 1) {
1964
+ const e = { params: {} };
1965
+ null === y ? (y = [e]) : y.push(e), u++;
1754
1966
  }
1755
- var h = t === m;
1756
1967
  }
1757
- else
1758
- h = !0;
1759
- if (h) {
1760
- if (void 0 !== e.disableAssetsAnalyze) {
1761
- const t = m;
1762
- if ('boolean' != typeof e.disableAssetsAnalyze) {
1763
- const e = { params: { type: 'boolean' } };
1764
- null === y ? (y = [e]) : y.push(e), m++;
1765
- }
1766
- h = t === m;
1968
+ else {
1969
+ const e = { params: { type: 'string' } };
1970
+ null === y ? (y = [e]) : y.push(e), u++;
1971
+ }
1972
+ (d = t === u), (s = s || d);
1973
+ }
1974
+ if (!s) {
1975
+ const e = { params: {} };
1976
+ return (null === y ? (y = [e]) : y.push(e),
1977
+ u++,
1978
+ (D.errors = y),
1979
+ !1);
1980
+ }
1981
+ (u = r),
1982
+ null !== y && (r ? (y.length = r) : (y = null)),
1983
+ (m = t === u);
1984
+ }
1985
+ else
1986
+ m = !0;
1987
+ if (m) {
1988
+ if (void 0 !== o.shareScope) {
1989
+ let e = o.shareScope;
1990
+ const t = u, r = u;
1991
+ let n = !1;
1992
+ const s = u;
1993
+ if (u === s)
1994
+ if ('string' == typeof e) {
1995
+ if (e.length < 1) {
1996
+ const e = { params: {} };
1997
+ null === y ? (y = [e]) : y.push(e), u++;
1767
1998
  }
1768
- else
1769
- h = !0;
1770
- if (h) {
1771
- if (void 0 !== e.fileName) {
1772
- const t = m;
1773
- if ('string' != typeof e.fileName) {
1774
- const e = { params: { type: 'string' } };
1775
- null === y ? (y = [e]) : y.push(e), m++;
1776
- }
1777
- h = t === m;
1778
- }
1779
- else
1780
- h = !0;
1781
- if (h)
1782
- if (void 0 !== e.additionalData) {
1783
- const t = m;
1784
- if ('string' != typeof e.additionalData) {
1999
+ }
2000
+ else {
2001
+ const e = { params: { type: 'string' } };
2002
+ null === y ? (y = [e]) : y.push(e), u++;
2003
+ }
2004
+ var h = s === u;
2005
+ if (((n = n || h), !n)) {
2006
+ const t = u;
2007
+ if (u === t)
2008
+ if (Array.isArray(e)) {
2009
+ const t = e.length;
2010
+ for (let r = 0; r < t; r++) {
2011
+ let t = e[r];
2012
+ const n = u;
2013
+ if (u === n)
2014
+ if ('string' == typeof t) {
2015
+ if (t.length < 1) {
2016
+ const e = { params: {} };
2017
+ null === y ? (y = [e]) : y.push(e), u++;
2018
+ }
2019
+ }
2020
+ else {
1785
2021
  const e = { params: { type: 'string' } };
1786
- null === y ? (y = [e]) : y.push(e), m++;
2022
+ null === y ? (y = [e]) : y.push(e), u++;
1787
2023
  }
1788
- h = t === m;
1789
- }
1790
- else
1791
- h = !0;
2024
+ if (n !== u)
2025
+ break;
2026
+ }
1792
2027
  }
1793
- }
1794
- }
1795
- else {
1796
- const e = { params: { type: 'object' } };
1797
- null === y ? (y = [e]) : y.push(e), m++;
1798
- }
1799
- (d = t === m), (n = n || d);
1800
- }
1801
- if (!n) {
1802
- const e = { params: {} };
1803
- return (null === y ? (y = [e]) : y.push(e),
1804
- m++,
1805
- (j.errors = y),
1806
- !1);
1807
- }
1808
- (m = r),
1809
- null !== y && (r ? (y.length = r) : (y = null)),
1810
- (u = t === m);
1811
- }
1812
- else
1813
- u = !0;
1814
- if (u) {
1815
- if (void 0 !== o.name) {
1816
- const e = m;
1817
- if ('string' != typeof o.name)
1818
- return ((j.errors = [{ params: { type: 'string' } }]), !1);
1819
- u = e === m;
1820
- }
1821
- else
1822
- u = !0;
1823
- if (u) {
1824
- if (void 0 !== o.remoteType) {
1825
- let e = o.remoteType;
1826
- const t = m, n = m;
1827
- let s = !1, a = null;
1828
- const i = m;
1829
- if ('var' !== e &&
1830
- 'module' !== e &&
1831
- 'assign' !== e &&
1832
- 'this' !== e &&
1833
- 'window' !== e &&
1834
- 'self' !== e &&
1835
- 'global' !== e &&
1836
- 'commonjs' !== e &&
1837
- 'commonjs2' !== e &&
1838
- 'commonjs-module' !== e &&
1839
- 'commonjs-static' !== e &&
1840
- 'amd' !== e &&
1841
- 'amd-require' !== e &&
1842
- 'umd' !== e &&
1843
- 'umd2' !== e &&
1844
- 'jsonp' !== e &&
1845
- 'system' !== e &&
1846
- 'promise' !== e &&
1847
- 'import' !== e &&
1848
- 'script' !== e &&
1849
- 'module-import' !== e &&
1850
- 'node-commonjs' !== e) {
1851
- const e = { params: { allowedValues: r.enum } };
1852
- null === y ? (y = [e]) : y.push(e), m++;
2028
+ else {
2029
+ const e = { params: { type: 'array' } };
2030
+ null === y ? (y = [e]) : y.push(e), u++;
2031
+ }
2032
+ (h = t === u), (n = n || h);
1853
2033
  }
1854
- if ((i === m && ((s = !0), (a = 0)), !s)) {
1855
- const e = { params: { passingSchemas: a } };
2034
+ if (!n) {
2035
+ const e = { params: {} };
1856
2036
  return (null === y ? (y = [e]) : y.push(e),
1857
- m++,
1858
- (j.errors = y),
2037
+ u++,
2038
+ (D.errors = y),
1859
2039
  !1);
1860
2040
  }
1861
- (m = n),
1862
- null !== y && (n ? (y.length = n) : (y = null)),
1863
- (u = t === m);
2041
+ (u = r),
2042
+ null !== y && (r ? (y.length = r) : (y = null)),
2043
+ (m = t === u);
1864
2044
  }
1865
2045
  else
1866
- u = !0;
1867
- if (u) {
1868
- if (void 0 !== o.remotes) {
1869
- const e = m;
1870
- g(o.remotes, {
1871
- instancePath: a + '/remotes',
1872
- parentData: o,
1873
- parentDataProperty: 'remotes',
1874
- rootData: f,
1875
- }) ||
1876
- ((y = null === y ? g.errors : y.concat(g.errors)),
1877
- (m = y.length)),
1878
- (u = e === m);
2046
+ m = !0;
2047
+ if (m) {
2048
+ if (void 0 !== o.shareStrategy) {
2049
+ let e = o.shareStrategy;
2050
+ const r = u;
2051
+ if ('string' != typeof e)
2052
+ return ((D.errors = [{ params: { type: 'string' } }]),
2053
+ !1);
2054
+ if ('version-first' !== e && 'loaded-first' !== e)
2055
+ return ((D.errors = [
2056
+ {
2057
+ params: {
2058
+ allowedValues: t.properties.shareStrategy.enum,
2059
+ },
2060
+ },
2061
+ ]),
2062
+ !1);
2063
+ m = r === u;
1879
2064
  }
1880
2065
  else
1881
- u = !0;
1882
- if (u) {
1883
- if (void 0 !== o.runtime) {
1884
- let e = o.runtime;
1885
- const t = m, r = m;
1886
- let s = !1;
1887
- const a = m;
1888
- if (!1 !== e) {
1889
- const e = {
1890
- params: { allowedValues: n.anyOf[0].enum },
1891
- };
1892
- null === y ? (y = [e]) : y.push(e), m++;
1893
- }
1894
- var b = a === m;
1895
- if (((s = s || b), !s)) {
1896
- const t = m;
1897
- if (m === t)
1898
- if ('string' == typeof e) {
1899
- if (e.length < 1) {
1900
- const e = { params: {} };
1901
- null === y ? (y = [e]) : y.push(e), m++;
1902
- }
1903
- }
1904
- else {
1905
- const e = { params: { type: 'string' } };
1906
- null === y ? (y = [e]) : y.push(e), m++;
1907
- }
1908
- (b = t === m), (s = s || b);
1909
- }
1910
- if (!s) {
1911
- const e = { params: {} };
1912
- return (null === y ? (y = [e]) : y.push(e),
1913
- m++,
1914
- (j.errors = y),
1915
- !1);
1916
- }
1917
- (m = r),
1918
- null !== y && (r ? (y.length = r) : (y = null)),
1919
- (u = t === m);
2066
+ m = !0;
2067
+ if (m) {
2068
+ if (void 0 !== o.shared) {
2069
+ const e = u;
2070
+ P(o.shared, {
2071
+ instancePath: a + '/shared',
2072
+ parentData: o,
2073
+ parentDataProperty: 'shared',
2074
+ rootData: f,
2075
+ }) ||
2076
+ ((y =
2077
+ null === y ? P.errors : y.concat(P.errors)),
2078
+ (u = y.length)),
2079
+ (m = e === u);
1920
2080
  }
1921
2081
  else
1922
- u = !0;
1923
- if (u) {
1924
- if (void 0 !== o.runtimePlugins) {
1925
- let e = o.runtimePlugins;
1926
- const t = m;
1927
- if (m === t) {
1928
- if (!Array.isArray(e))
1929
- return ((j.errors = [
1930
- { params: { type: 'array' } },
1931
- ]),
1932
- !1);
1933
- {
1934
- const t = e.length;
1935
- for (let r = 0; r < t; r++) {
1936
- const t = m;
1937
- if ('string' != typeof e[r])
1938
- return ((j.errors = [
1939
- { params: { type: 'string' } },
1940
- ]),
1941
- !1);
1942
- if (t !== m)
1943
- break;
1944
- }
1945
- }
1946
- }
1947
- u = t === m;
1948
- }
1949
- else
1950
- u = !0;
1951
- if (u) {
1952
- if (void 0 !== o.shareScope) {
1953
- let e = o.shareScope;
1954
- const t = m;
1955
- if (m === t) {
1956
- if ('string' != typeof e)
1957
- return ((j.errors = [
1958
- { params: { type: 'string' } },
1959
- ]),
1960
- !1);
1961
- if (e.length < 1)
1962
- return (j.errors = [{ params: {} }]), !1;
1963
- }
1964
- u = t === m;
2082
+ m = !0;
2083
+ if (m) {
2084
+ if (void 0 !== o.dts) {
2085
+ let e = o.dts;
2086
+ const r = u, n = u;
2087
+ let s = !1;
2088
+ const a = u;
2089
+ if ('boolean' != typeof e) {
2090
+ const e = { params: { type: 'boolean' } };
2091
+ null === y ? (y = [e]) : y.push(e), u++;
1965
2092
  }
1966
- else
1967
- u = !0;
1968
- if (u) {
1969
- if (void 0 !== o.shareStrategy) {
1970
- let e = o.shareStrategy;
1971
- const r = m;
1972
- if ('version-first' !== e &&
1973
- 'loaded-first' !== e)
1974
- return ((j.errors = [
1975
- {
1976
- params: {
1977
- allowedValues: t.properties.shareStrategy.enum,
1978
- },
1979
- },
1980
- ]),
1981
- !1);
1982
- u = r === m;
1983
- }
1984
- else
1985
- u = !0;
1986
- if (u) {
1987
- if (void 0 !== o.shared) {
1988
- const e = m;
1989
- P(o.shared, {
1990
- instancePath: a + '/shared',
1991
- parentData: o,
1992
- parentDataProperty: 'shared',
1993
- rootData: f,
1994
- }) ||
1995
- ((y =
1996
- null === y
1997
- ? P.errors
1998
- : y.concat(P.errors)),
1999
- (m = y.length)),
2000
- (u = e === m);
2001
- }
2002
- else
2003
- u = !0;
2004
- if (u) {
2005
- if (void 0 !== o.virtualRuntimeEntry) {
2006
- const e = m;
2007
- if ('boolean' !=
2008
- typeof o.virtualRuntimeEntry)
2009
- return ((j.errors = [
2010
- { params: { type: 'boolean' } },
2011
- ]),
2012
- !1);
2013
- u = e === m;
2014
- }
2015
- else
2016
- u = !0;
2017
- if (u) {
2018
- if (void 0 !== o.dev) {
2019
- let e = o.dev;
2020
- const t = m, r = m;
2021
- let n = !1;
2022
- const s = m;
2023
- if ('boolean' != typeof e) {
2024
- const e = {
2025
- params: { type: 'boolean' },
2026
- };
2027
- null === y ? (y = [e]) : y.push(e),
2028
- m++;
2029
- }
2030
- var v = s === m;
2031
- if (((n = n || v), !n)) {
2032
- const t = m;
2033
- if (m === t)
2034
- if (e &&
2035
- 'object' == typeof e &&
2036
- !Array.isArray(e)) {
2037
- if (void 0 !== e.disableLiveReload) {
2038
- const t = m;
2039
- if ('boolean' !=
2040
- typeof e.disableLiveReload) {
2093
+ var b = a === u;
2094
+ if (((s = s || b), !s)) {
2095
+ const r = u;
2096
+ if (u === r)
2097
+ if (e &&
2098
+ 'object' == typeof e &&
2099
+ !Array.isArray(e)) {
2100
+ if (void 0 !== e.generateTypes) {
2101
+ let r = e.generateTypes;
2102
+ const n = u, s = u;
2103
+ let o = !1;
2104
+ const a = u;
2105
+ if ('boolean' != typeof r) {
2106
+ const e = {
2107
+ params: { type: 'boolean' },
2108
+ };
2109
+ null === y ? (y = [e]) : y.push(e),
2110
+ u++;
2111
+ }
2112
+ var v = a === u;
2113
+ if (((o = o || v), !o)) {
2114
+ const e = u;
2115
+ if (u === e)
2116
+ if (r &&
2117
+ 'object' == typeof r &&
2118
+ !Array.isArray(r)) {
2119
+ if (void 0 !== r.tsConfigPath) {
2120
+ const e = u;
2121
+ if ('string' !=
2122
+ typeof r.tsConfigPath) {
2123
+ const e = {
2124
+ params: { type: 'string' },
2125
+ };
2126
+ null === y
2127
+ ? (y = [e])
2128
+ : y.push(e),
2129
+ u++;
2130
+ }
2131
+ var j = e === u;
2132
+ }
2133
+ else
2134
+ j = !0;
2135
+ if (j) {
2136
+ if (void 0 !== r.typesFolder) {
2137
+ const e = u;
2138
+ if ('string' !=
2139
+ typeof r.typesFolder) {
2041
2140
  const e = {
2042
2141
  params: {
2043
- type: 'boolean',
2142
+ type: 'string',
2044
2143
  },
2045
2144
  };
2046
2145
  null === y
2047
2146
  ? (y = [e])
2048
2147
  : y.push(e),
2049
- m++;
2148
+ u++;
2050
2149
  }
2051
- var D = t === m;
2150
+ j = e === u;
2052
2151
  }
2053
2152
  else
2054
- D = !0;
2055
- if (D) {
2153
+ j = !0;
2154
+ if (j) {
2056
2155
  if (void 0 !==
2057
- e.disableHotTypesReload) {
2058
- const t = m;
2059
- if ('boolean' !=
2060
- typeof e.disableHotTypesReload) {
2156
+ r.compiledTypesFolder) {
2157
+ const e = u;
2158
+ if ('string' !=
2159
+ typeof r.compiledTypesFolder) {
2061
2160
  const e = {
2062
2161
  params: {
2063
- type: 'boolean',
2162
+ type: 'string',
2064
2163
  },
2065
2164
  };
2066
2165
  null === y
2067
2166
  ? (y = [e])
2068
2167
  : y.push(e),
2069
- m++;
2168
+ u++;
2070
2169
  }
2071
- D = t === m;
2170
+ j = e === u;
2072
2171
  }
2073
2172
  else
2074
- D = !0;
2075
- if (D)
2173
+ j = !0;
2174
+ if (j) {
2076
2175
  if (void 0 !==
2077
- e.disableDynamicRemoteTypeHints) {
2078
- const t = m;
2176
+ r.deleteTypesFolder) {
2177
+ const e = u;
2079
2178
  if ('boolean' !=
2080
- typeof e.disableDynamicRemoteTypeHints) {
2179
+ typeof r.deleteTypesFolder) {
2081
2180
  const e = {
2082
2181
  params: {
2083
2182
  type: 'boolean',
@@ -2086,112 +2185,24 @@ function j(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2086
2185
  null === y
2087
2186
  ? (y = [e])
2088
2187
  : y.push(e),
2089
- m++;
2188
+ u++;
2090
2189
  }
2091
- D = t === m;
2190
+ j = e === u;
2092
2191
  }
2093
2192
  else
2094
- D = !0;
2095
- }
2096
- }
2097
- else {
2098
- const e = {
2099
- params: { type: 'object' },
2100
- };
2101
- null === y
2102
- ? (y = [e])
2103
- : y.push(e),
2104
- m++;
2105
- }
2106
- (v = t === m), (n = n || v);
2107
- }
2108
- if (!n) {
2109
- const e = { params: {} };
2110
- return (null === y
2111
- ? (y = [e])
2112
- : y.push(e),
2113
- m++,
2114
- (j.errors = y),
2115
- !1);
2116
- }
2117
- (m = r),
2118
- null !== y &&
2119
- (r ? (y.length = r) : (y = null)),
2120
- (u = t === m);
2121
- }
2122
- else
2123
- u = !0;
2124
- if (u) {
2125
- if (void 0 !== o.dts) {
2126
- let e = o.dts;
2127
- const r = m, n = m;
2128
- let s = !1;
2129
- const a = m;
2130
- if ('boolean' != typeof e) {
2131
- const e = {
2132
- params: { type: 'boolean' },
2133
- };
2134
- null === y
2135
- ? (y = [e])
2136
- : y.push(e),
2137
- m++;
2138
- }
2139
- var A = a === m;
2140
- if (((s = s || A), !s)) {
2141
- const r = m;
2142
- if (m === r)
2143
- if (e &&
2144
- 'object' == typeof e &&
2145
- !Array.isArray(e)) {
2146
- if (void 0 !== e.generateTypes) {
2147
- let r = e.generateTypes;
2148
- const n = m, s = m;
2149
- let o = !1;
2150
- const a = m;
2151
- if ('boolean' != typeof r) {
2152
- const e = {
2153
- params: {
2154
- type: 'boolean',
2155
- },
2156
- };
2157
- null === y
2158
- ? (y = [e])
2159
- : y.push(e),
2160
- m++;
2161
- }
2162
- var x = a === m;
2163
- if (((o = o || x), !o)) {
2164
- const e = m;
2165
- if (m === e)
2166
- if (r &&
2167
- 'object' ==
2168
- typeof r &&
2169
- !Array.isArray(r)) {
2170
- if (void 0 !==
2171
- r.tsConfigPath) {
2172
- const e = m;
2173
- if ('string' !=
2174
- typeof r.tsConfigPath) {
2175
- const e = {
2176
- params: {
2177
- type: 'string',
2178
- },
2179
- };
2180
- null === y
2181
- ? (y = [e])
2182
- : y.push(e),
2183
- m++;
2184
- }
2185
- var O = e === m;
2186
- }
2187
- else
2188
- O = !0;
2189
- if (O) {
2190
- if (void 0 !==
2191
- r.typesFolder) {
2192
- const e = m;
2193
+ j = !0;
2194
+ if (j) {
2195
+ if (void 0 !==
2196
+ r.additionalFilesToCompile) {
2197
+ let e = r.additionalFilesToCompile;
2198
+ const t = u;
2199
+ if (u === t)
2200
+ if (Array.isArray(e)) {
2201
+ const t = e.length;
2202
+ for (let r = 0; r < t; r++) {
2203
+ const t = u;
2193
2204
  if ('string' !=
2194
- typeof r.typesFolder) {
2205
+ typeof e[r]) {
2195
2206
  const e = {
2196
2207
  params: {
2197
2208
  type: 'string',
@@ -2200,366 +2211,102 @@ function j(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2200
2211
  null === y
2201
2212
  ? (y = [e])
2202
2213
  : y.push(e),
2203
- m++;
2204
- }
2205
- O = e === m;
2206
- }
2207
- else
2208
- O = !0;
2209
- if (O) {
2210
- if (void 0 !==
2211
- r.compiledTypesFolder) {
2212
- const e = m;
2213
- if ('string' !=
2214
- typeof r.compiledTypesFolder) {
2215
- const e = {
2216
- params: {
2217
- type: 'string',
2218
- },
2219
- };
2220
- null === y
2221
- ? (y = [e])
2222
- : y.push(e),
2223
- m++;
2224
- }
2225
- O = e === m;
2226
- }
2227
- else
2228
- O = !0;
2229
- if (O) {
2230
- if (void 0 !==
2231
- r.deleteTypesFolder) {
2232
- const e = m;
2233
- if ('boolean' !=
2234
- typeof r.deleteTypesFolder) {
2235
- const e = {
2236
- params: {
2237
- type: 'boolean',
2238
- },
2239
- };
2240
- null === y
2241
- ? (y = [
2242
- e,
2243
- ])
2244
- : y.push(e),
2245
- m++;
2246
- }
2247
- O = e === m;
2248
- }
2249
- else
2250
- O = !0;
2251
- if (O) {
2252
- if (void 0 !==
2253
- r.additionalFilesToCompile) {
2254
- let e = r.additionalFilesToCompile;
2255
- const t = m;
2256
- if (m === t)
2257
- if (Array.isArray(e)) {
2258
- const t = e.length;
2259
- for (let r = 0; r < t; r++) {
2260
- const t = m;
2261
- if ('string' !=
2262
- typeof e[r]) {
2263
- const e = {
2264
- params: {
2265
- type: 'string',
2266
- },
2267
- };
2268
- null ===
2269
- y
2270
- ? (y =
2271
- [
2272
- e,
2273
- ])
2274
- : y.push(e),
2275
- m++;
2276
- }
2277
- if (t !==
2278
- m)
2279
- break;
2280
- }
2281
- }
2282
- else {
2283
- const e = {
2284
- params: {
2285
- type: 'array',
2286
- },
2287
- };
2288
- null ===
2289
- y
2290
- ? (y =
2291
- [
2292
- e,
2293
- ])
2294
- : y.push(e),
2295
- m++;
2296
- }
2297
- O = t === m;
2298
- }
2299
- else
2300
- O = !0;
2301
- if (O) {
2302
- if (void 0 !==
2303
- r.compileInChildProcess) {
2304
- const e = m;
2305
- if ('boolean' !=
2306
- typeof r.compileInChildProcess) {
2307
- const e = {
2308
- params: {
2309
- type: 'boolean',
2310
- },
2311
- };
2312
- null ===
2313
- y
2314
- ? (y =
2315
- [
2316
- e,
2317
- ])
2318
- : y.push(e),
2319
- m++;
2320
- }
2321
- O =
2322
- e === m;
2323
- }
2324
- else
2325
- O = !0;
2326
- if (O) {
2327
- if (void 0 !==
2328
- r.compilerInstance) {
2329
- let e = r.compilerInstance;
2330
- const n = m;
2331
- if ('tsc' !==
2332
- e &&
2333
- 'vue-tsc' !==
2334
- e) {
2335
- const e = {
2336
- params: {
2337
- allowedValues: t
2338
- .properties
2339
- .dts
2340
- .anyOf[1]
2341
- .properties
2342
- .generateTypes
2343
- .anyOf[1]
2344
- .properties
2345
- .compilerInstance
2346
- .enum,
2347
- },
2348
- };
2349
- null ===
2350
- y
2351
- ? (y =
2352
- [
2353
- e,
2354
- ])
2355
- : y.push(e),
2356
- m++;
2357
- }
2358
- O =
2359
- n ===
2360
- m;
2361
- }
2362
- else
2363
- O = !0;
2364
- if (O) {
2365
- if (void 0 !==
2366
- r.generateAPITypes) {
2367
- const e = m;
2368
- if ('boolean' !=
2369
- typeof r.generateAPITypes) {
2370
- const e = {
2371
- params: {
2372
- type: 'boolean',
2373
- },
2374
- };
2375
- null ===
2376
- y
2377
- ? (y =
2378
- [
2379
- e,
2380
- ])
2381
- : y.push(e),
2382
- m++;
2383
- }
2384
- O =
2385
- e ===
2386
- m;
2387
- }
2388
- else
2389
- O =
2390
- !0;
2391
- if (O) {
2392
- if (void 0 !==
2393
- r.extractThirdParty) {
2394
- const e = m;
2395
- if ('boolean' !=
2396
- typeof r.extractThirdParty) {
2397
- const e = {
2398
- params: {
2399
- type: 'boolean',
2400
- },
2401
- };
2402
- null ===
2403
- y
2404
- ? (y =
2405
- [
2406
- e,
2407
- ])
2408
- : y.push(e),
2409
- m++;
2410
- }
2411
- O =
2412
- e ===
2413
- m;
2414
- }
2415
- else
2416
- O =
2417
- !0;
2418
- if (O) {
2419
- if (void 0 !==
2420
- r.extractRemoteTypes) {
2421
- const e = m;
2422
- if ('boolean' !=
2423
- typeof r.extractRemoteTypes) {
2424
- const e = {
2425
- params: {
2426
- type: 'boolean',
2427
- },
2428
- };
2429
- null ===
2430
- y
2431
- ? (y =
2432
- [
2433
- e,
2434
- ])
2435
- : y.push(e),
2436
- m++;
2437
- }
2438
- O =
2439
- e ===
2440
- m;
2441
- }
2442
- else
2443
- O =
2444
- !0;
2445
- if (O)
2446
- if (void 0 !==
2447
- r.abortOnError) {
2448
- const e = m;
2449
- if ('boolean' !=
2450
- typeof r.abortOnError) {
2451
- const e = {
2452
- params: {
2453
- type: 'boolean',
2454
- },
2455
- };
2456
- null ===
2457
- y
2458
- ? (y =
2459
- [
2460
- e,
2461
- ])
2462
- : y.push(e),
2463
- m++;
2464
- }
2465
- O =
2466
- e ===
2467
- m;
2468
- }
2469
- else
2470
- O =
2471
- !0;
2472
- }
2473
- }
2474
- }
2475
- }
2476
- }
2477
- }
2214
+ u++;
2478
2215
  }
2216
+ if (t !== u)
2217
+ break;
2479
2218
  }
2480
2219
  }
2481
- }
2482
- else {
2483
- const e = {
2484
- params: {
2485
- type: 'object',
2486
- },
2487
- };
2488
- null === y
2489
- ? (y = [e])
2490
- : y.push(e),
2491
- m++;
2492
- }
2493
- (x = e === m),
2494
- (o = o || x);
2495
- }
2496
- if (o)
2497
- (m = s),
2498
- null !== y &&
2499
- (s
2500
- ? (y.length = s)
2501
- : (y = null));
2502
- else {
2503
- const e = { params: {} };
2504
- null === y
2505
- ? (y = [e])
2506
- : y.push(e),
2507
- m++;
2508
- }
2509
- var T = n === m;
2510
- }
2511
- else
2512
- T = !0;
2513
- if (T) {
2514
- if (void 0 !== e.consumeTypes) {
2515
- let t = e.consumeTypes;
2516
- const r = m, n = m;
2517
- let s = !1;
2518
- const o = m;
2519
- if ('boolean' != typeof t) {
2520
- const e = {
2521
- params: {
2522
- type: 'boolean',
2523
- },
2524
- };
2525
- null === y
2526
- ? (y = [e])
2527
- : y.push(e),
2528
- m++;
2220
+ else {
2221
+ const e = {
2222
+ params: {
2223
+ type: 'array',
2224
+ },
2225
+ };
2226
+ null === y
2227
+ ? (y = [e])
2228
+ : y.push(e),
2229
+ u++;
2230
+ }
2231
+ j = t === u;
2529
2232
  }
2530
- var R = o === m;
2531
- if (((s = s || R), !s)) {
2532
- const e = m;
2533
- if (m === e)
2534
- if (t &&
2535
- 'object' ==
2536
- typeof t &&
2537
- !Array.isArray(t)) {
2233
+ else
2234
+ j = !0;
2235
+ if (j) {
2236
+ if (void 0 !==
2237
+ r.compileInChildProcess) {
2238
+ const e = u;
2239
+ if ('boolean' !=
2240
+ typeof r.compileInChildProcess) {
2241
+ const e = {
2242
+ params: {
2243
+ type: 'boolean',
2244
+ },
2245
+ };
2246
+ null === y
2247
+ ? (y = [e])
2248
+ : y.push(e),
2249
+ u++;
2250
+ }
2251
+ j = e === u;
2252
+ }
2253
+ else
2254
+ j = !0;
2255
+ if (j) {
2256
+ if (void 0 !==
2257
+ r.compilerInstance) {
2258
+ let e = r.compilerInstance;
2259
+ const n = u;
2260
+ if ('tsc' !== e &&
2261
+ 'vue-tsc' !== e) {
2262
+ const e = {
2263
+ params: {
2264
+ allowedValues: t.properties
2265
+ .dts
2266
+ .anyOf[1]
2267
+ .properties
2268
+ .generateTypes
2269
+ .anyOf[1]
2270
+ .properties
2271
+ .compilerInstance
2272
+ .enum,
2273
+ },
2274
+ };
2275
+ null === y
2276
+ ? (y = [e])
2277
+ : y.push(e),
2278
+ u++;
2279
+ }
2280
+ j = n === u;
2281
+ }
2282
+ else
2283
+ j = !0;
2284
+ if (j) {
2538
2285
  if (void 0 !==
2539
- t.typesFolder) {
2540
- const e = m;
2541
- if ('string' !=
2542
- typeof t.typesFolder) {
2286
+ r.generateAPITypes) {
2287
+ const e = u;
2288
+ if ('boolean' !=
2289
+ typeof r.generateAPITypes) {
2543
2290
  const e = {
2544
2291
  params: {
2545
- type: 'string',
2292
+ type: 'boolean',
2546
2293
  },
2547
2294
  };
2548
2295
  null === y
2549
2296
  ? (y = [e])
2550
2297
  : y.push(e),
2551
- m++;
2298
+ u++;
2552
2299
  }
2553
- var $ = e === m;
2300
+ j = e === u;
2554
2301
  }
2555
2302
  else
2556
- $ = !0;
2557
- if ($) {
2303
+ j = !0;
2304
+ if (j) {
2558
2305
  if (void 0 !==
2559
- t.abortOnError) {
2560
- const e = m;
2306
+ r.extractThirdParty) {
2307
+ const e = u;
2561
2308
  if ('boolean' !=
2562
- typeof t.abortOnError) {
2309
+ typeof r.extractThirdParty) {
2563
2310
  const e = {
2564
2311
  params: {
2565
2312
  type: 'boolean',
@@ -2568,21 +2315,21 @@ function j(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2568
2315
  null === y
2569
2316
  ? (y = [e])
2570
2317
  : y.push(e),
2571
- m++;
2318
+ u++;
2572
2319
  }
2573
- $ = e === m;
2320
+ j = e === u;
2574
2321
  }
2575
2322
  else
2576
- $ = !0;
2577
- if ($) {
2323
+ j = !0;
2324
+ if (j) {
2578
2325
  if (void 0 !==
2579
- t.remoteTypesFolder) {
2580
- const e = m;
2581
- if ('string' !=
2582
- typeof t.remoteTypesFolder) {
2326
+ r.extractRemoteTypes) {
2327
+ const e = u;
2328
+ if ('boolean' !=
2329
+ typeof r.extractRemoteTypes) {
2583
2330
  const e = {
2584
2331
  params: {
2585
- type: 'string',
2332
+ type: 'boolean',
2586
2333
  },
2587
2334
  };
2588
2335
  null === y
@@ -2590,18 +2337,18 @@ function j(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2590
2337
  e,
2591
2338
  ])
2592
2339
  : y.push(e),
2593
- m++;
2340
+ u++;
2594
2341
  }
2595
- $ = e === m;
2342
+ j = e === u;
2596
2343
  }
2597
2344
  else
2598
- $ = !0;
2599
- if ($) {
2345
+ j = !0;
2346
+ if (j)
2600
2347
  if (void 0 !==
2601
- t.deleteTypesFolder) {
2602
- const e = m;
2348
+ r.abortOnError) {
2349
+ const e = u;
2603
2350
  if ('boolean' !=
2604
- typeof t.deleteTypesFolder) {
2351
+ typeof r.abortOnError) {
2605
2352
  const e = {
2606
2353
  params: {
2607
2354
  type: 'boolean',
@@ -2612,399 +2359,834 @@ function j(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
2612
2359
  e,
2613
2360
  ])
2614
2361
  : y.push(e),
2615
- m++;
2362
+ u++;
2616
2363
  }
2617
- $ = e === m;
2364
+ j = e === u;
2618
2365
  }
2619
2366
  else
2620
- $ = !0;
2621
- if ($) {
2622
- if (void 0 !==
2623
- t.maxRetries) {
2624
- const e = m;
2625
- if ('number' !=
2626
- typeof t.maxRetries) {
2627
- const e = {
2628
- params: {
2629
- type: 'number',
2630
- },
2631
- };
2632
- null ===
2633
- y
2634
- ? (y =
2635
- [
2636
- e,
2637
- ])
2638
- : y.push(e),
2639
- m++;
2640
- }
2641
- $ =
2642
- e === m;
2643
- }
2644
- else
2645
- $ = !0;
2646
- if ($) {
2647
- if (void 0 !==
2648
- t.consumeAPITypes) {
2649
- const e = m;
2650
- if ('boolean' !=
2651
- typeof t.consumeAPITypes) {
2652
- const e = {
2653
- params: {
2654
- type: 'boolean',
2655
- },
2656
- };
2657
- null ===
2658
- y
2659
- ? (y =
2660
- [
2661
- e,
2662
- ])
2663
- : y.push(e),
2664
- m++;
2665
- }
2666
- $ =
2667
- e ===
2668
- m;
2669
- }
2670
- else
2671
- $ = !0;
2672
- if ($)
2673
- if (void 0 !==
2674
- t.runtimePkgs) {
2675
- let e = t.runtimePkgs;
2676
- const r = m;
2677
- if (m ===
2678
- r)
2679
- if (Array.isArray(e)) {
2680
- const t = e.length;
2681
- for (let r = 0; r <
2682
- t; r++) {
2683
- const t = m;
2684
- if ('string' !=
2685
- typeof e[r]) {
2686
- const e = {
2687
- params: {
2688
- type: 'string',
2689
- },
2690
- };
2691
- null ===
2692
- y
2693
- ? (y =
2694
- [
2695
- e,
2696
- ])
2697
- : y.push(e),
2698
- m++;
2699
- }
2700
- if (t !==
2701
- m)
2702
- break;
2703
- }
2704
- }
2705
- else {
2706
- const e = {
2707
- params: {
2708
- type: 'array',
2709
- },
2710
- };
2711
- null ===
2712
- y
2713
- ? (y =
2714
- [
2715
- e,
2716
- ])
2717
- : y.push(e),
2718
- m++;
2719
- }
2720
- $ =
2721
- r ===
2722
- m;
2723
- }
2724
- else
2725
- $ =
2726
- !0;
2727
- }
2728
- }
2729
- }
2367
+ j = !0;
2730
2368
  }
2731
2369
  }
2732
2370
  }
2733
- else {
2734
- const e = {
2735
- params: {
2736
- type: 'object',
2737
- },
2738
- };
2739
- null === y
2740
- ? (y = [e])
2741
- : y.push(e),
2742
- m++;
2743
- }
2744
- (R = e === m),
2745
- (s = s || R);
2371
+ }
2746
2372
  }
2747
- if (s)
2748
- (m = n),
2749
- null !== y &&
2750
- (n
2751
- ? (y.length = n)
2752
- : (y = null));
2753
- else {
2373
+ }
2374
+ }
2375
+ }
2376
+ }
2377
+ }
2378
+ else {
2379
+ const e = {
2380
+ params: { type: 'object' },
2381
+ };
2382
+ null === y
2383
+ ? (y = [e])
2384
+ : y.push(e),
2385
+ u++;
2386
+ }
2387
+ (v = e === u), (o = o || v);
2388
+ }
2389
+ if (o)
2390
+ (u = s),
2391
+ null !== y &&
2392
+ (s ? (y.length = s) : (y = null));
2393
+ else {
2394
+ const e = { params: {} };
2395
+ null === y ? (y = [e]) : y.push(e),
2396
+ u++;
2397
+ }
2398
+ var A = n === u;
2399
+ }
2400
+ else
2401
+ A = !0;
2402
+ if (A) {
2403
+ if (void 0 !== e.consumeTypes) {
2404
+ let t = e.consumeTypes;
2405
+ const r = u, n = u;
2406
+ let s = !1;
2407
+ const o = u;
2408
+ if ('boolean' != typeof t) {
2409
+ const e = {
2410
+ params: { type: 'boolean' },
2411
+ };
2412
+ null === y ? (y = [e]) : y.push(e),
2413
+ u++;
2414
+ }
2415
+ var x = o === u;
2416
+ if (((s = s || x), !s)) {
2417
+ const e = u;
2418
+ if (u === e)
2419
+ if (t &&
2420
+ 'object' == typeof t &&
2421
+ !Array.isArray(t)) {
2422
+ if (void 0 !== t.typesFolder) {
2423
+ const e = u;
2424
+ if ('string' !=
2425
+ typeof t.typesFolder) {
2426
+ const e = {
2427
+ params: {
2428
+ type: 'string',
2429
+ },
2430
+ };
2431
+ null === y
2432
+ ? (y = [e])
2433
+ : y.push(e),
2434
+ u++;
2435
+ }
2436
+ var O = e === u;
2437
+ }
2438
+ else
2439
+ O = !0;
2440
+ if (O) {
2441
+ if (void 0 !== t.abortOnError) {
2442
+ const e = u;
2443
+ if ('boolean' !=
2444
+ typeof t.abortOnError) {
2445
+ const e = {
2446
+ params: {
2447
+ type: 'boolean',
2448
+ },
2449
+ };
2450
+ null === y
2451
+ ? (y = [e])
2452
+ : y.push(e),
2453
+ u++;
2454
+ }
2455
+ O = e === u;
2456
+ }
2457
+ else
2458
+ O = !0;
2459
+ if (O) {
2460
+ if (void 0 !==
2461
+ t.remoteTypesFolder) {
2462
+ const e = u;
2463
+ if ('string' !=
2464
+ typeof t.remoteTypesFolder) {
2754
2465
  const e = {
2755
- params: {},
2466
+ params: {
2467
+ type: 'string',
2468
+ },
2756
2469
  };
2757
2470
  null === y
2758
2471
  ? (y = [e])
2759
2472
  : y.push(e),
2760
- m++;
2473
+ u++;
2761
2474
  }
2762
- T = r === m;
2475
+ O = e === u;
2763
2476
  }
2764
2477
  else
2765
- T = !0;
2766
- if (T) {
2478
+ O = !0;
2479
+ if (O) {
2767
2480
  if (void 0 !==
2768
- e.tsConfigPath) {
2769
- const t = m;
2770
- if ('string' !=
2771
- typeof e.tsConfigPath) {
2481
+ t.deleteTypesFolder) {
2482
+ const e = u;
2483
+ if ('boolean' !=
2484
+ typeof t.deleteTypesFolder) {
2772
2485
  const e = {
2773
2486
  params: {
2774
- type: 'string',
2487
+ type: 'boolean',
2775
2488
  },
2776
2489
  };
2777
2490
  null === y
2778
2491
  ? (y = [e])
2779
2492
  : y.push(e),
2780
- m++;
2493
+ u++;
2781
2494
  }
2782
- T = t === m;
2495
+ O = e === u;
2783
2496
  }
2784
2497
  else
2785
- T = !0;
2786
- if (T) {
2498
+ O = !0;
2499
+ if (O) {
2787
2500
  if (void 0 !==
2788
- e.extraOptions) {
2789
- let t = e.extraOptions;
2790
- const r = m;
2791
- if (!t ||
2792
- 'object' !=
2793
- typeof t ||
2794
- Array.isArray(t)) {
2501
+ t.maxRetries) {
2502
+ const e = u;
2503
+ if ('number' !=
2504
+ typeof t.maxRetries) {
2795
2505
  const e = {
2796
2506
  params: {
2797
- type: 'object',
2507
+ type: 'number',
2798
2508
  },
2799
2509
  };
2800
2510
  null === y
2801
2511
  ? (y = [e])
2802
2512
  : y.push(e),
2803
- m++;
2513
+ u++;
2804
2514
  }
2805
- T = r === m;
2515
+ O = e === u;
2806
2516
  }
2807
2517
  else
2808
- T = !0;
2809
- if (T) {
2518
+ O = !0;
2519
+ if (O) {
2810
2520
  if (void 0 !==
2811
- e.implementation) {
2812
- const t = m;
2813
- if ('string' !=
2814
- typeof e.implementation) {
2521
+ t.consumeAPITypes) {
2522
+ const e = u;
2523
+ if ('boolean' !=
2524
+ typeof t.consumeAPITypes) {
2815
2525
  const e = {
2816
2526
  params: {
2817
- type: 'string',
2527
+ type: 'boolean',
2818
2528
  },
2819
2529
  };
2820
2530
  null === y
2821
2531
  ? (y = [e])
2822
2532
  : y.push(e),
2823
- m++;
2533
+ u++;
2824
2534
  }
2825
- T = t === m;
2535
+ O = e === u;
2826
2536
  }
2827
2537
  else
2828
- T = !0;
2829
- if (T) {
2830
- if (void 0 !== e.cwd) {
2831
- const t = m;
2832
- if ('string' !=
2833
- typeof e.cwd) {
2834
- const e = {
2835
- params: {
2836
- type: 'string',
2837
- },
2838
- };
2839
- null === y
2840
- ? (y = [e])
2841
- : y.push(e),
2842
- m++;
2843
- }
2844
- T = t === m;
2845
- }
2846
- else
2847
- T = !0;
2848
- if (T)
2849
- if (void 0 !==
2850
- e.displayErrorInTerminal) {
2851
- const t = m;
2852
- if ('boolean' !=
2853
- typeof e.displayErrorInTerminal) {
2538
+ O = !0;
2539
+ if (O)
2540
+ if (void 0 !==
2541
+ t.runtimePkgs) {
2542
+ let e = t.runtimePkgs;
2543
+ const r = u;
2544
+ if (u === r)
2545
+ if (Array.isArray(e)) {
2546
+ const t = e.length;
2547
+ for (let r = 0; r < t; r++) {
2548
+ const t = u;
2549
+ if ('string' !=
2550
+ typeof e[r]) {
2551
+ const e = {
2552
+ params: {
2553
+ type: 'string',
2554
+ },
2555
+ };
2556
+ null === y
2557
+ ? (y = [
2558
+ e,
2559
+ ])
2560
+ : y.push(e),
2561
+ u++;
2562
+ }
2563
+ if (t !== u)
2564
+ break;
2565
+ }
2566
+ }
2567
+ else {
2854
2568
  const e = {
2855
2569
  params: {
2856
- type: 'boolean',
2570
+ type: 'array',
2857
2571
  },
2858
2572
  };
2859
2573
  null === y
2860
2574
  ? (y = [e])
2861
2575
  : y.push(e),
2862
- m++;
2576
+ u++;
2863
2577
  }
2864
- T = t === m;
2865
- }
2866
- else
2867
- T = !0;
2868
- }
2578
+ O = r === u;
2579
+ }
2580
+ else
2581
+ O = !0;
2869
2582
  }
2870
2583
  }
2871
2584
  }
2872
2585
  }
2873
2586
  }
2874
- else {
2587
+ }
2588
+ else {
2589
+ const e = {
2590
+ params: { type: 'object' },
2591
+ };
2592
+ null === y
2593
+ ? (y = [e])
2594
+ : y.push(e),
2595
+ u++;
2596
+ }
2597
+ (x = e === u), (s = s || x);
2598
+ }
2599
+ if (s)
2600
+ (u = n),
2601
+ null !== y &&
2602
+ (n
2603
+ ? (y.length = n)
2604
+ : (y = null));
2605
+ else {
2606
+ const e = { params: {} };
2607
+ null === y ? (y = [e]) : y.push(e),
2608
+ u++;
2609
+ }
2610
+ A = r === u;
2611
+ }
2612
+ else
2613
+ A = !0;
2614
+ if (A) {
2615
+ if (void 0 !== e.tsConfigPath) {
2616
+ const t = u;
2617
+ if ('string' != typeof e.tsConfigPath) {
2618
+ const e = {
2619
+ params: { type: 'string' },
2620
+ };
2621
+ null === y
2622
+ ? (y = [e])
2623
+ : y.push(e),
2624
+ u++;
2625
+ }
2626
+ A = t === u;
2627
+ }
2628
+ else
2629
+ A = !0;
2630
+ if (A) {
2631
+ if (void 0 !== e.extraOptions) {
2632
+ let t = e.extraOptions;
2633
+ const r = u;
2634
+ if (!t ||
2635
+ 'object' != typeof t ||
2636
+ Array.isArray(t)) {
2637
+ const e = {
2638
+ params: { type: 'object' },
2639
+ };
2640
+ null === y
2641
+ ? (y = [e])
2642
+ : y.push(e),
2643
+ u++;
2644
+ }
2645
+ A = r === u;
2646
+ }
2647
+ else
2648
+ A = !0;
2649
+ if (A) {
2650
+ if (void 0 !== e.implementation) {
2651
+ const t = u;
2652
+ if ('string' !=
2653
+ typeof e.implementation) {
2875
2654
  const e = {
2876
- params: { type: 'object' },
2655
+ params: { type: 'string' },
2877
2656
  };
2878
2657
  null === y
2879
2658
  ? (y = [e])
2880
2659
  : y.push(e),
2881
- m++;
2660
+ u++;
2882
2661
  }
2883
- (A = r === m), (s = s || A);
2884
- }
2885
- if (!s) {
2886
- const e = { params: {} };
2887
- return (null === y
2888
- ? (y = [e])
2889
- : y.push(e),
2890
- m++,
2891
- (j.errors = y),
2892
- !1);
2893
- }
2894
- (m = n),
2895
- null !== y &&
2896
- (n
2897
- ? (y.length = n)
2898
- : (y = null)),
2899
- (u = r === m);
2900
- }
2901
- else
2902
- u = !0;
2903
- if (u) {
2904
- if (void 0 !== o.experiments) {
2905
- let e = o.experiments;
2906
- const t = m;
2907
- if (m === t) {
2908
- if (!e ||
2909
- 'object' != typeof e ||
2910
- Array.isArray(e))
2911
- return ((j.errors = [
2912
- {
2662
+ A = t === u;
2663
+ }
2664
+ else
2665
+ A = !0;
2666
+ if (A) {
2667
+ if (void 0 !== e.cwd) {
2668
+ const t = u;
2669
+ if ('string' != typeof e.cwd) {
2670
+ const e = {
2913
2671
  params: {
2914
- type: 'object',
2672
+ type: 'string',
2915
2673
  },
2916
- },
2917
- ]),
2918
- !1);
2919
- if (void 0 !== e.asyncStartup) {
2920
- const t = m;
2921
- if ('boolean' !=
2922
- typeof e.asyncStartup)
2923
- return ((j.errors = [
2924
- {
2674
+ };
2675
+ null === y
2676
+ ? (y = [e])
2677
+ : y.push(e),
2678
+ u++;
2679
+ }
2680
+ A = t === u;
2681
+ }
2682
+ else
2683
+ A = !0;
2684
+ if (A)
2685
+ if (void 0 !==
2686
+ e.displayErrorInTerminal) {
2687
+ const t = u;
2688
+ if ('boolean' !=
2689
+ typeof e.displayErrorInTerminal) {
2690
+ const e = {
2925
2691
  params: {
2926
2692
  type: 'boolean',
2927
2693
  },
2694
+ };
2695
+ null === y
2696
+ ? (y = [e])
2697
+ : y.push(e),
2698
+ u++;
2699
+ }
2700
+ A = t === u;
2701
+ }
2702
+ else
2703
+ A = !0;
2704
+ }
2705
+ }
2706
+ }
2707
+ }
2708
+ }
2709
+ }
2710
+ else {
2711
+ const e = { params: { type: 'object' } };
2712
+ null === y ? (y = [e]) : y.push(e), u++;
2713
+ }
2714
+ (b = r === u), (s = s || b);
2715
+ }
2716
+ if (!s) {
2717
+ const e = { params: {} };
2718
+ return (null === y ? (y = [e]) : y.push(e),
2719
+ u++,
2720
+ (D.errors = y),
2721
+ !1);
2722
+ }
2723
+ (u = n),
2724
+ null !== y &&
2725
+ (n ? (y.length = n) : (y = null)),
2726
+ (m = r === u);
2727
+ }
2728
+ else
2729
+ m = !0;
2730
+ if (m) {
2731
+ if (void 0 !== o.experiments) {
2732
+ let e = o.experiments;
2733
+ const t = u;
2734
+ if (u === t) {
2735
+ if (!e ||
2736
+ 'object' != typeof e ||
2737
+ Array.isArray(e))
2738
+ return ((D.errors = [
2739
+ { params: { type: 'object' } },
2740
+ ]),
2741
+ !1);
2742
+ if (void 0 !== e.asyncStartup) {
2743
+ const t = u;
2744
+ if ('boolean' != typeof e.asyncStartup)
2745
+ return ((D.errors = [
2746
+ { params: { type: 'boolean' } },
2747
+ ]),
2748
+ !1);
2749
+ var L = t === u;
2750
+ }
2751
+ else
2752
+ L = !0;
2753
+ if (L) {
2754
+ if (void 0 !== e.externalRuntime) {
2755
+ const t = u;
2756
+ if ('boolean' != typeof e.externalRuntime)
2757
+ return ((D.errors = [
2758
+ { params: { type: 'boolean' } },
2759
+ ]),
2760
+ !1);
2761
+ L = t === u;
2762
+ }
2763
+ else
2764
+ L = !0;
2765
+ if (L)
2766
+ if (void 0 !== e.provideExternalRuntime) {
2767
+ const t = u;
2768
+ if ('boolean' !=
2769
+ typeof e.provideExternalRuntime)
2770
+ return ((D.errors = [
2771
+ { params: { type: 'boolean' } },
2772
+ ]),
2773
+ !1);
2774
+ L = t === u;
2775
+ }
2776
+ else
2777
+ L = !0;
2778
+ }
2779
+ }
2780
+ m = t === u;
2781
+ }
2782
+ else
2783
+ m = !0;
2784
+ if (m) {
2785
+ if (void 0 !== o.bridge) {
2786
+ let e = o.bridge;
2787
+ const t = u;
2788
+ if (u === t) {
2789
+ if (!e ||
2790
+ 'object' != typeof e ||
2791
+ Array.isArray(e))
2792
+ return ((D.errors = [
2793
+ { params: { type: 'object' } },
2794
+ ]),
2795
+ !1);
2796
+ {
2797
+ const t = u;
2798
+ for (const t in e)
2799
+ if ('disableAlias' !== t)
2800
+ return ((D.errors = [
2801
+ {
2802
+ params: {
2803
+ additionalProperty: t,
2804
+ },
2805
+ },
2806
+ ]),
2807
+ !1);
2808
+ if (t === u &&
2809
+ void 0 !== e.disableAlias &&
2810
+ 'boolean' != typeof e.disableAlias)
2811
+ return ((D.errors = [
2812
+ { params: { type: 'boolean' } },
2813
+ ]),
2814
+ !1);
2815
+ }
2816
+ }
2817
+ m = t === u;
2818
+ }
2819
+ else
2820
+ m = !0;
2821
+ if (m) {
2822
+ if (void 0 !== o.virtualRuntimeEntry) {
2823
+ const e = u;
2824
+ if ('boolean' !=
2825
+ typeof o.virtualRuntimeEntry)
2826
+ return ((D.errors = [
2827
+ { params: { type: 'boolean' } },
2828
+ ]),
2829
+ !1);
2830
+ m = e === u;
2831
+ }
2832
+ else
2833
+ m = !0;
2834
+ if (m) {
2835
+ if (void 0 !== o.dev) {
2836
+ let e = o.dev;
2837
+ const t = u, r = u;
2838
+ let n = !1;
2839
+ const s = u;
2840
+ if ('boolean' != typeof e) {
2841
+ const e = {
2842
+ params: { type: 'boolean' },
2843
+ };
2844
+ null === y ? (y = [e]) : y.push(e),
2845
+ u++;
2846
+ }
2847
+ var T = s === u;
2848
+ if (((n = n || T), !n)) {
2849
+ const t = u;
2850
+ if (u === t)
2851
+ if (e &&
2852
+ 'object' == typeof e &&
2853
+ !Array.isArray(e)) {
2854
+ const t = u;
2855
+ for (const t in e)
2856
+ if ('disableLiveReload' !== t &&
2857
+ 'disableHotTypesReload' !==
2858
+ t &&
2859
+ 'disableDynamicRemoteTypeHints' !==
2860
+ t) {
2861
+ const e = {
2862
+ params: {
2863
+ additionalProperty: t,
2864
+ },
2865
+ };
2866
+ null === y
2867
+ ? (y = [e])
2868
+ : y.push(e),
2869
+ u++;
2870
+ break;
2871
+ }
2872
+ if (t === u) {
2873
+ if (void 0 !== e.disableLiveReload) {
2874
+ const t = u;
2875
+ if ('boolean' !=
2876
+ typeof e.disableLiveReload) {
2877
+ const e = {
2878
+ params: {
2879
+ type: 'boolean',
2928
2880
  },
2929
- ]),
2930
- !1);
2931
- var C = t === m;
2881
+ };
2882
+ null === y
2883
+ ? (y = [e])
2884
+ : y.push(e),
2885
+ u++;
2886
+ }
2887
+ var R = t === u;
2932
2888
  }
2933
2889
  else
2934
- C = !0;
2935
- if (C) {
2936
- if (void 0 !== e.externalRuntime) {
2937
- const t = m;
2890
+ R = !0;
2891
+ if (R) {
2892
+ if (void 0 !==
2893
+ e.disableHotTypesReload) {
2894
+ const t = u;
2938
2895
  if ('boolean' !=
2939
- typeof e.externalRuntime)
2940
- return ((j.errors = [
2941
- {
2896
+ typeof e.disableHotTypesReload) {
2897
+ const e = {
2898
+ params: {
2899
+ type: 'boolean',
2900
+ },
2901
+ };
2902
+ null === y
2903
+ ? (y = [e])
2904
+ : y.push(e),
2905
+ u++;
2906
+ }
2907
+ R = t === u;
2908
+ }
2909
+ else
2910
+ R = !0;
2911
+ if (R)
2912
+ if (void 0 !==
2913
+ e.disableDynamicRemoteTypeHints) {
2914
+ const t = u;
2915
+ if ('boolean' !=
2916
+ typeof e.disableDynamicRemoteTypeHints) {
2917
+ const e = {
2942
2918
  params: {
2943
2919
  type: 'boolean',
2944
2920
  },
2921
+ };
2922
+ null === y
2923
+ ? (y = [e])
2924
+ : y.push(e),
2925
+ u++;
2926
+ }
2927
+ R = t === u;
2928
+ }
2929
+ else
2930
+ R = !0;
2931
+ }
2932
+ }
2933
+ }
2934
+ else {
2935
+ const e = {
2936
+ params: { type: 'object' },
2937
+ };
2938
+ null === y
2939
+ ? (y = [e])
2940
+ : y.push(e),
2941
+ u++;
2942
+ }
2943
+ (T = t === u), (n = n || T);
2944
+ }
2945
+ if (!n) {
2946
+ const e = { params: {} };
2947
+ return (null === y ? (y = [e]) : y.push(e),
2948
+ u++,
2949
+ (D.errors = y),
2950
+ !1);
2951
+ }
2952
+ (u = r),
2953
+ null !== y &&
2954
+ (r ? (y.length = r) : (y = null)),
2955
+ (m = t === u);
2956
+ }
2957
+ else
2958
+ m = !0;
2959
+ if (m) {
2960
+ if (void 0 !== o.manifest) {
2961
+ let e = o.manifest;
2962
+ const t = u, r = u;
2963
+ let n = !1;
2964
+ const s = u;
2965
+ if ('boolean' != typeof e) {
2966
+ const e = {
2967
+ params: { type: 'boolean' },
2968
+ };
2969
+ null === y ? (y = [e]) : y.push(e),
2970
+ u++;
2971
+ }
2972
+ var $ = s === u;
2973
+ if (((n = n || $), !n)) {
2974
+ const t = u;
2975
+ if (u === t)
2976
+ if (e &&
2977
+ 'object' == typeof e &&
2978
+ !Array.isArray(e)) {
2979
+ const t = u;
2980
+ for (const t in e)
2981
+ if ('filePath' !== t &&
2982
+ 'disableAssetsAnalyze' !==
2983
+ t &&
2984
+ 'fileName' !== t &&
2985
+ 'additionalData' !== t) {
2986
+ const e = {
2987
+ params: {
2988
+ additionalProperty: t,
2989
+ },
2990
+ };
2991
+ null === y
2992
+ ? (y = [e])
2993
+ : y.push(e),
2994
+ u++;
2995
+ break;
2996
+ }
2997
+ if (t === u) {
2998
+ if (void 0 !== e.filePath) {
2999
+ const t = u;
3000
+ if ('string' !=
3001
+ typeof e.filePath) {
3002
+ const e = {
3003
+ params: {
3004
+ type: 'string',
2945
3005
  },
2946
- ]),
2947
- !1);
2948
- C = t === m;
3006
+ };
3007
+ null === y
3008
+ ? (y = [e])
3009
+ : y.push(e),
3010
+ u++;
3011
+ }
3012
+ var C = t === u;
2949
3013
  }
2950
3014
  else
2951
3015
  C = !0;
2952
- if (C)
3016
+ if (C) {
2953
3017
  if (void 0 !==
2954
- e.provideExternalRuntime) {
2955
- const t = m;
3018
+ e.disableAssetsAnalyze) {
3019
+ const t = u;
2956
3020
  if ('boolean' !=
2957
- typeof e.provideExternalRuntime)
2958
- return ((j.errors = [
2959
- {
2960
- params: {
2961
- type: 'boolean',
2962
- },
3021
+ typeof e.disableAssetsAnalyze) {
3022
+ const e = {
3023
+ params: {
3024
+ type: 'boolean',
2963
3025
  },
2964
- ]),
2965
- !1);
2966
- C = t === m;
3026
+ };
3027
+ null === y
3028
+ ? (y = [e])
3029
+ : y.push(e),
3030
+ u++;
3031
+ }
3032
+ C = t === u;
2967
3033
  }
2968
3034
  else
2969
3035
  C = !0;
3036
+ if (C) {
3037
+ if (void 0 !== e.fileName) {
3038
+ const t = u;
3039
+ if ('string' !=
3040
+ typeof e.fileName) {
3041
+ const e = {
3042
+ params: {
3043
+ type: 'string',
3044
+ },
3045
+ };
3046
+ null === y
3047
+ ? (y = [e])
3048
+ : y.push(e),
3049
+ u++;
3050
+ }
3051
+ C = t === u;
3052
+ }
3053
+ else
3054
+ C = !0;
3055
+ if (C)
3056
+ if (void 0 !==
3057
+ e.additionalData) {
3058
+ const t = u;
3059
+ if (!(e.additionalData instanceof
3060
+ Function)) {
3061
+ const e = {
3062
+ params: {},
3063
+ };
3064
+ null === y
3065
+ ? (y = [e])
3066
+ : y.push(e),
3067
+ u++;
3068
+ }
3069
+ C = t === u;
3070
+ }
3071
+ else
3072
+ C = !0;
3073
+ }
3074
+ }
2970
3075
  }
2971
3076
  }
2972
- u = t === m;
2973
- }
2974
- else
2975
- u = !0;
2976
- if (u)
2977
- if (void 0 !== o.bridge) {
2978
- let e = o.bridge;
2979
- const t = m;
2980
- if (m === t) {
2981
- if (!e ||
2982
- 'object' != typeof e ||
2983
- Array.isArray(e))
2984
- return ((j.errors = [
3077
+ else {
3078
+ const e = {
3079
+ params: { type: 'object' },
3080
+ };
3081
+ null === y
3082
+ ? (y = [e])
3083
+ : y.push(e),
3084
+ u++;
3085
+ }
3086
+ ($ = t === u), (n = n || $);
3087
+ }
3088
+ if (!n) {
3089
+ const e = { params: {} };
3090
+ return (null === y
3091
+ ? (y = [e])
3092
+ : y.push(e),
3093
+ u++,
3094
+ (D.errors = y),
3095
+ !1);
3096
+ }
3097
+ (u = r),
3098
+ null !== y &&
3099
+ (r ? (y.length = r) : (y = null)),
3100
+ (m = t === u);
3101
+ }
3102
+ else
3103
+ m = !0;
3104
+ if (m) {
3105
+ if (void 0 !== o.runtimePlugins) {
3106
+ let e = o.runtimePlugins;
3107
+ const t = u;
3108
+ if (u === t) {
3109
+ if (!Array.isArray(e))
3110
+ return ((D.errors = [
3111
+ {
3112
+ params: { type: 'array' },
3113
+ },
3114
+ ]),
3115
+ !1);
3116
+ {
3117
+ const t = e.length;
3118
+ for (let r = 0; r < t; r++) {
3119
+ const t = u;
3120
+ if ('string' != typeof e[r])
3121
+ return ((D.errors = [
2985
3122
  {
2986
3123
  params: {
2987
- type: 'object',
3124
+ type: 'string',
2988
3125
  },
2989
3126
  },
2990
3127
  ]),
2991
3128
  !1);
2992
- if (void 0 !== e.disableAlias &&
2993
- 'boolean' !=
2994
- typeof e.disableAlias)
2995
- return ((j.errors = [
3129
+ if (t !== u)
3130
+ break;
3131
+ }
3132
+ }
3133
+ }
3134
+ m = t === u;
3135
+ }
3136
+ else
3137
+ m = !0;
3138
+ if (m) {
3139
+ if (void 0 !== o.getPublicPath) {
3140
+ const e = u;
3141
+ if ('string' !=
3142
+ typeof o.getPublicPath)
3143
+ return ((D.errors = [
3144
+ {
3145
+ params: {
3146
+ type: 'string',
3147
+ },
3148
+ },
3149
+ ]),
3150
+ !1);
3151
+ m = e === u;
3152
+ }
3153
+ else
3154
+ m = !0;
3155
+ if (m) {
3156
+ if (void 0 !== o.dataPrefetch) {
3157
+ const e = u;
3158
+ if ('boolean' !=
3159
+ typeof o.dataPrefetch)
3160
+ return ((D.errors = [
3161
+ {
3162
+ params: {
3163
+ type: 'boolean',
3164
+ },
3165
+ },
3166
+ ]),
3167
+ !1);
3168
+ m = e === u;
3169
+ }
3170
+ else
3171
+ m = !0;
3172
+ if (m)
3173
+ if (void 0 !== o.implementation) {
3174
+ const e = u;
3175
+ if ('string' !=
3176
+ typeof o.implementation)
3177
+ return ((D.errors = [
2996
3178
  {
2997
3179
  params: {
2998
- type: 'boolean',
3180
+ type: 'string',
2999
3181
  },
3000
3182
  },
3001
3183
  ]),
3002
3184
  !1);
3185
+ m = e === u;
3003
3186
  }
3004
- u = t === m;
3005
- }
3006
- else
3007
- u = !0;
3187
+ else
3188
+ m = !0;
3189
+ }
3008
3190
  }
3009
3191
  }
3010
3192
  }
@@ -3026,6 +3208,6 @@ function j(o, { instancePath: a = '', parentData: i, parentDataProperty: p, root
3026
3208
  }
3027
3209
  }
3028
3210
  }
3029
- return (j.errors = y), 0 === m;
3211
+ return (D.errors = y), 0 === u;
3030
3212
  }
3031
3213
  //# sourceMappingURL=ModuleFederationPlugin.check.js.map