@module-federation/enhanced 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/package.json +33 -0
- package/{src → dist/src}/index.d.ts +4 -0
- package/dist/src/index.js +32 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lib/Constants.js +125 -0
- package/dist/src/lib/Constants.js.map +1 -0
- package/dist/src/lib/RuntimeGlobals.d.ts +0 -0
- package/{src → dist/src}/lib/RuntimeGlobals.js +144 -74
- package/dist/src/lib/RuntimeGlobals.js.map +1 -0
- package/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +19 -0
- package/dist/src/lib/container/AsyncBoundaryPlugin.js +172 -0
- package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerEntryDependency.d.ts +1 -1
- package/dist/src/lib/container/ContainerEntryDependency.js +37 -0
- package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerEntryModule.d.ts +2 -2
- package/dist/src/lib/container/ContainerEntryModule.js +230 -0
- package/dist/src/lib/container/ContainerEntryModule.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerEntryModuleFactory.d.ts +2 -1
- package/dist/src/lib/container/ContainerEntryModuleFactory.js +30 -0
- package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerExposedDependency.d.ts +2 -2
- package/dist/src/lib/container/ContainerExposedDependency.js +49 -0
- package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerPlugin.d.ts +1 -1
- package/dist/src/lib/container/ContainerPlugin.js +85 -0
- package/dist/src/lib/container/ContainerPlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/src/lib/container/ContainerReferencePlugin.js +100 -0
- package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/FallbackDependency.d.ts +1 -5
- package/dist/src/lib/container/FallbackDependency.js +47 -0
- package/dist/src/lib/container/FallbackDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/FallbackItemDependency.d.ts +2 -2
- package/dist/src/lib/container/FallbackItemDependency.js +26 -0
- package/dist/src/lib/container/FallbackItemDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/FallbackModule.d.ts +2 -3
- package/dist/src/lib/container/FallbackModule.js +152 -0
- package/dist/src/lib/container/FallbackModule.js.map +1 -0
- package/{src → dist/src}/lib/container/FallbackModuleFactory.d.ts +3 -2
- package/dist/src/lib/container/FallbackModuleFactory.js +28 -0
- package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -0
- package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +13 -0
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js +70 -0
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/ModuleFederationPlugin.d.ts +1 -1
- package/dist/src/lib/container/ModuleFederationPlugin.js +86 -0
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -0
- package/{src → dist/src}/lib/container/RemoteModule.d.ts +2 -3
- package/dist/src/lib/container/RemoteModule.js +148 -0
- package/dist/src/lib/container/RemoteModule.js.map +1 -0
- package/{src → dist/src}/lib/container/RemoteRuntimeModule.d.ts +1 -1
- package/dist/src/lib/container/RemoteRuntimeModule.js +103 -0
- package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -0
- package/{src → dist/src}/lib/container/RemoteToExternalDependency.d.ts +2 -2
- package/dist/src/lib/container/RemoteToExternalDependency.js +26 -0
- package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -0
- package/{src → dist/src}/lib/container/options.js +32 -42
- package/dist/src/lib/container/options.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ConsumeSharedFallbackDependency.d.ts +2 -2
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +26 -0
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ConsumeSharedModule.d.ts +1 -1
- package/dist/src/lib/sharing/ConsumeSharedModule.js +201 -0
- package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +238 -0
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ConsumeSharedRuntimeModule.d.ts +1 -1
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +247 -0
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideForSharedDependency.d.ts +2 -2
- package/dist/src/lib/sharing/ProvideForSharedDependency.js +27 -0
- package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideSharedDependency.d.ts +1 -1
- package/dist/src/lib/sharing/ProvideSharedDependency.js +61 -0
- package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideSharedModule.d.ts +5 -5
- package/dist/src/lib/sharing/ProvideSharedModule.js +163 -0
- package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideSharedModuleFactory.d.ts +1 -1
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +30 -0
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ProvideSharedPlugin.d.ts +1 -1
- package/dist/src/lib/sharing/ProvideSharedPlugin.js +185 -0
- package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -0
- package/{src → dist/src}/lib/sharing/SharePlugin.d.ts +1 -1
- package/dist/src/lib/sharing/SharePlugin.js +76 -0
- package/dist/src/lib/sharing/SharePlugin.js.map +1 -0
- package/{src → dist/src}/lib/sharing/ShareRuntimeModule.d.ts +1 -1
- package/dist/src/lib/sharing/ShareRuntimeModule.js +116 -0
- package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -0
- package/{src → dist/src}/lib/sharing/resolveMatchedConfigs.d.ts +1 -1
- package/dist/src/lib/sharing/resolveMatchedConfigs.js +66 -0
- package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -0
- package/{src → dist/src}/lib/sharing/utils.d.ts +1 -1
- package/{src → dist/src}/lib/sharing/utils.js +94 -81
- package/dist/src/lib/sharing/utils.js.map +1 -0
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +5 -0
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -0
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -0
- package/{src → dist/src}/runtime/ModuleInfoRuntimeModule.d.ts +2 -1
- package/dist/src/runtime/ModuleInfoRuntimeModule.js +80 -0
- package/dist/src/runtime/ModuleInfoRuntimeModule.js.map +1 -0
- package/{src → dist/src}/runtime/ModuleInfoRuntimePlugin.d.ts +1 -1
- package/dist/src/runtime/ModuleInfoRuntimePlugin.js +24 -0
- package/dist/src/runtime/ModuleInfoRuntimePlugin.js.map +1 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +7 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +1668 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +437 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.js +529 -0
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -0
- package/package.json +23 -8
- package/CHANGELOG.md +0 -111
- package/global.d.js +0 -14
- package/global.d.js.map +0 -1
- package/pullts.d.ts +0 -1
- package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js +0 -14
- package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js.map +0 -1
- package/src/declarations/plugins/container/ContainerPlugin.d.js +0 -12
- package/src/declarations/plugins/container/ContainerPlugin.d.js.map +0 -1
- package/src/declarations/plugins/container/ContainerReferencePlugin.d.js +0 -12
- package/src/declarations/plugins/container/ContainerReferencePlugin.d.js.map +0 -1
- package/src/declarations/plugins/container/Dependency.d.js +0 -14
- package/src/declarations/plugins/container/Dependency.d.js.map +0 -1
- package/src/declarations/plugins/container/Module.d.js +0 -3
- package/src/declarations/plugins/container/Module.d.js.map +0 -1
- package/src/declarations/plugins/container/ModuleFactory.d.js +0 -3
- package/src/declarations/plugins/container/ModuleFactory.d.js.map +0 -1
- package/src/declarations/plugins/container/ModuleFederationPlugin.d.js +0 -12
- package/src/declarations/plugins/container/ModuleFederationPlugin.d.js.map +0 -1
- package/src/declarations/plugins/container/ObjectDeserializerContext.d.js +0 -6
- package/src/declarations/plugins/container/ObjectDeserializerContext.d.js.map +0 -1
- package/src/declarations/plugins/container/StaticExportsDependency.d.js +0 -14
- package/src/declarations/plugins/container/StaticExportsDependency.d.js.map +0 -1
- package/src/declarations/plugins/container/Template.d.js +0 -4
- package/src/declarations/plugins/container/Template.d.js.map +0 -1
- package/src/declarations/plugins/container/WebpackError.d.js +0 -3
- package/src/declarations/plugins/container/WebpackError.d.js.map +0 -1
- package/src/declarations/plugins/container/WebpackOptions.d.js +0 -6
- package/src/declarations/plugins/container/WebpackOptions.d.js.map +0 -1
- package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js +0 -12
- package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js.map +0 -1
- package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js +0 -12
- package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js.map +0 -1
- package/src/declarations/plugins/sharing/SharePlugin.d.js +0 -12
- package/src/declarations/plugins/sharing/SharePlugin.d.js.map +0 -1
- package/src/index.js +0 -43
- package/src/index.js.map +0 -1
- package/src/lib/Constants.js +0 -103
- package/src/lib/Constants.js.map +0 -1
- package/src/lib/RuntimeGlobals.d.ts +0 -1
- package/src/lib/RuntimeGlobals.js.map +0 -1
- package/src/lib/container/AsyncBoundaryPlugin.d.ts +0 -45
- package/src/lib/container/AsyncBoundaryPlugin.js +0 -103
- package/src/lib/container/AsyncBoundaryPlugin.js.map +0 -1
- package/src/lib/container/ContainerEntryDependency.d.js +0 -4
- package/src/lib/container/ContainerEntryDependency.d.js.map +0 -1
- package/src/lib/container/ContainerEntryDependency.js +0 -43
- package/src/lib/container/ContainerEntryDependency.js.map +0 -1
- package/src/lib/container/ContainerEntryModule.d.js +0 -14
- package/src/lib/container/ContainerEntryModule.d.js.map +0 -1
- package/src/lib/container/ContainerEntryModule.js +0 -237
- package/src/lib/container/ContainerEntryModule.js.map +0 -1
- package/src/lib/container/ContainerEntryModuleFactory.d.js +0 -4
- package/src/lib/container/ContainerEntryModuleFactory.d.js.map +0 -1
- package/src/lib/container/ContainerEntryModuleFactory.js +0 -32
- package/src/lib/container/ContainerEntryModuleFactory.js.map +0 -1
- package/src/lib/container/ContainerExposedDependency.d.js +0 -4
- package/src/lib/container/ContainerExposedDependency.d.js.map +0 -1
- package/src/lib/container/ContainerExposedDependency.js +0 -53
- package/src/lib/container/ContainerExposedDependency.js.map +0 -1
- package/src/lib/container/ContainerPlugin.d.js +0 -4
- package/src/lib/container/ContainerPlugin.d.js.map +0 -1
- package/src/lib/container/ContainerPlugin.js +0 -88
- package/src/lib/container/ContainerPlugin.js.map +0 -1
- package/src/lib/container/ContainerReferencePlugin.d.js +0 -4
- package/src/lib/container/ContainerReferencePlugin.d.js.map +0 -1
- package/src/lib/container/ContainerReferencePlugin.js +0 -97
- package/src/lib/container/ContainerReferencePlugin.js.map +0 -1
- package/src/lib/container/FallbackDependency.d.js +0 -14
- package/src/lib/container/FallbackDependency.d.js.map +0 -1
- package/src/lib/container/FallbackDependency.js +0 -55
- package/src/lib/container/FallbackDependency.js.map +0 -1
- package/src/lib/container/FallbackItemDependency.d.js +0 -4
- package/src/lib/container/FallbackItemDependency.d.js.map +0 -1
- package/src/lib/container/FallbackItemDependency.js +0 -33
- package/src/lib/container/FallbackItemDependency.js.map +0 -1
- package/src/lib/container/FallbackModule.d.js +0 -4
- package/src/lib/container/FallbackModule.d.js.map +0 -1
- package/src/lib/container/FallbackModule.js +0 -149
- package/src/lib/container/FallbackModule.js.map +0 -1
- package/src/lib/container/FallbackModuleFactory.d.js +0 -4
- package/src/lib/container/FallbackModuleFactory.d.js.map +0 -1
- package/src/lib/container/FallbackModuleFactory.js +0 -30
- package/src/lib/container/FallbackModuleFactory.js.map +0 -1
- package/src/lib/container/ModuleFederationPlugin.d.js +0 -4
- package/src/lib/container/ModuleFederationPlugin.d.js.map +0 -1
- package/src/lib/container/ModuleFederationPlugin.js +0 -79
- package/src/lib/container/ModuleFederationPlugin.js.map +0 -1
- package/src/lib/container/ModuleFederationPluginTypes.d.js +0 -12
- package/src/lib/container/ModuleFederationPluginTypes.d.js.map +0 -1
- package/src/lib/container/RemoteModule.d.js +0 -13
- package/src/lib/container/RemoteModule.d.js.map +0 -1
- package/src/lib/container/RemoteModule.js +0 -147
- package/src/lib/container/RemoteModule.js.map +0 -1
- package/src/lib/container/RemoteRuntimeModule.d.js +0 -13
- package/src/lib/container/RemoteRuntimeModule.d.js.map +0 -1
- package/src/lib/container/RemoteRuntimeModule.js +0 -121
- package/src/lib/container/RemoteRuntimeModule.js.map +0 -1
- package/src/lib/container/RemoteToExternalDependency.d.js +0 -15
- package/src/lib/container/RemoteToExternalDependency.d.js.map +0 -1
- package/src/lib/container/RemoteToExternalDependency.js +0 -33
- package/src/lib/container/RemoteToExternalDependency.js.map +0 -1
- package/src/lib/container/options.d.js +0 -6
- package/src/lib/container/options.d.js.map +0 -1
- package/src/lib/container/options.js.map +0 -1
- package/src/lib/inversion/ContainerInversionPlugin.d.ts +0 -1
- package/src/lib/inversion/ContainerInversionPlugin.js +0 -3
- package/src/lib/inversion/ContainerInversionPlugin.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js +0 -4
- package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedFallbackDependency.js +0 -33
- package/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedModule.d.js +0 -4
- package/src/lib/sharing/ConsumeSharedModule.d.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedModule.js +0 -191
- package/src/lib/sharing/ConsumeSharedModule.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedPlugin.d.js +0 -4
- package/src/lib/sharing/ConsumeSharedPlugin.d.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedPlugin.js +0 -217
- package/src/lib/sharing/ConsumeSharedPlugin.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js +0 -4
- package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js.map +0 -1
- package/src/lib/sharing/ConsumeSharedRuntimeModule.js +0 -251
- package/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +0 -1
- package/src/lib/sharing/ProvideForSharedDependency.d.js +0 -4
- package/src/lib/sharing/ProvideForSharedDependency.d.js.map +0 -1
- package/src/lib/sharing/ProvideForSharedDependency.js +0 -34
- package/src/lib/sharing/ProvideForSharedDependency.js.map +0 -1
- package/src/lib/sharing/ProvideSharedDependency.d.js +0 -14
- package/src/lib/sharing/ProvideSharedDependency.d.js.map +0 -1
- package/src/lib/sharing/ProvideSharedDependency.js +0 -65
- package/src/lib/sharing/ProvideSharedDependency.js.map +0 -1
- package/src/lib/sharing/ProvideSharedModule.d.js +0 -4
- package/src/lib/sharing/ProvideSharedModule.d.js.map +0 -1
- package/src/lib/sharing/ProvideSharedModule.js +0 -159
- package/src/lib/sharing/ProvideSharedModule.js.map +0 -1
- package/src/lib/sharing/ProvideSharedModuleFactory.d.js +0 -4
- package/src/lib/sharing/ProvideSharedModuleFactory.d.js.map +0 -1
- package/src/lib/sharing/ProvideSharedModuleFactory.js +0 -32
- package/src/lib/sharing/ProvideSharedModuleFactory.js.map +0 -1
- package/src/lib/sharing/ProvideSharedPlugin.d.js +0 -4
- package/src/lib/sharing/ProvideSharedPlugin.d.js.map +0 -1
- package/src/lib/sharing/ProvideSharedPlugin.js +0 -165
- package/src/lib/sharing/ProvideSharedPlugin.js.map +0 -1
- package/src/lib/sharing/SharePlugin.d.js +0 -4
- package/src/lib/sharing/SharePlugin.d.js.map +0 -1
- package/src/lib/sharing/SharePlugin.js +0 -73
- package/src/lib/sharing/SharePlugin.js.map +0 -1
- package/src/lib/sharing/ShareRuntimeModule.d.js +0 -4
- package/src/lib/sharing/ShareRuntimeModule.d.js.map +0 -1
- package/src/lib/sharing/ShareRuntimeModule.js +0 -117
- package/src/lib/sharing/ShareRuntimeModule.js.map +0 -1
- package/src/lib/sharing/resolveMatchedConfigs.d.js +0 -6
- package/src/lib/sharing/resolveMatchedConfigs.d.js.map +0 -1
- package/src/lib/sharing/resolveMatchedConfigs.js +0 -69
- package/src/lib/sharing/resolveMatchedConfigs.js.map +0 -1
- package/src/lib/sharing/utils.d.js +0 -6
- package/src/lib/sharing/utils.d.js.map +0 -1
- package/src/lib/sharing/utils.js.map +0 -1
- package/src/runtime/ModuleInfoRuntimeModule.js +0 -88
- package/src/runtime/ModuleInfoRuntimeModule.js.map +0 -1
- package/src/runtime/ModuleInfoRuntimePlugin.js +0 -29
- package/src/runtime/ModuleInfoRuntimePlugin.js.map +0 -1
- /package/{src → dist/src}/lib/Constants.d.ts +0 -0
- /package/{src → dist/src}/lib/container/options.d.ts +0 -0
|
@@ -0,0 +1,1668 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
//@ts-nocheck
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
/*
|
|
6
|
+
* This file was automatically generated.
|
|
7
|
+
* DO NOT MODIFY BY HAND.
|
|
8
|
+
* Run `yarn special-lint-fix` to update
|
|
9
|
+
*/
|
|
10
|
+
const t = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
|
|
11
|
+
const e = {
|
|
12
|
+
definitions: {
|
|
13
|
+
AmdContainer: { type: 'string', minLength: 1 },
|
|
14
|
+
AuxiliaryComment: {
|
|
15
|
+
anyOf: [
|
|
16
|
+
{ type: 'string' },
|
|
17
|
+
{ $ref: '#/definitions/LibraryCustomUmdCommentObject' },
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
EntryRuntime: {
|
|
21
|
+
anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }],
|
|
22
|
+
},
|
|
23
|
+
Exposes: {
|
|
24
|
+
anyOf: [
|
|
25
|
+
{
|
|
26
|
+
type: 'array',
|
|
27
|
+
items: {
|
|
28
|
+
anyOf: [
|
|
29
|
+
{ $ref: '#/definitions/ExposesItem' },
|
|
30
|
+
{ $ref: '#/definitions/ExposesObject' },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{ $ref: '#/definitions/ExposesObject' },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
ExposesConfig: {
|
|
38
|
+
type: 'object',
|
|
39
|
+
additionalProperties: !1,
|
|
40
|
+
properties: {
|
|
41
|
+
import: {
|
|
42
|
+
anyOf: [
|
|
43
|
+
{ $ref: '#/definitions/ExposesItem' },
|
|
44
|
+
{ $ref: '#/definitions/ExposesItems' },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
name: { type: 'string' },
|
|
48
|
+
},
|
|
49
|
+
required: ['import'],
|
|
50
|
+
},
|
|
51
|
+
ExposesItem: { type: 'string', minLength: 1 },
|
|
52
|
+
ExposesItems: {
|
|
53
|
+
type: 'array',
|
|
54
|
+
items: { $ref: '#/definitions/ExposesItem' },
|
|
55
|
+
},
|
|
56
|
+
ExposesObject: {
|
|
57
|
+
type: 'object',
|
|
58
|
+
additionalProperties: {
|
|
59
|
+
anyOf: [
|
|
60
|
+
{ $ref: '#/definitions/ExposesConfig' },
|
|
61
|
+
{ $ref: '#/definitions/ExposesItem' },
|
|
62
|
+
{ $ref: '#/definitions/ExposesItems' },
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
ExternalsType: {
|
|
67
|
+
enum: [
|
|
68
|
+
'var',
|
|
69
|
+
'module',
|
|
70
|
+
'assign',
|
|
71
|
+
'this',
|
|
72
|
+
'window',
|
|
73
|
+
'self',
|
|
74
|
+
'global',
|
|
75
|
+
'commonjs',
|
|
76
|
+
'commonjs2',
|
|
77
|
+
'commonjs-module',
|
|
78
|
+
'commonjs-static',
|
|
79
|
+
'amd',
|
|
80
|
+
'amd-require',
|
|
81
|
+
'umd',
|
|
82
|
+
'umd2',
|
|
83
|
+
'jsonp',
|
|
84
|
+
'system',
|
|
85
|
+
'promise',
|
|
86
|
+
'import',
|
|
87
|
+
'script',
|
|
88
|
+
'node-commonjs',
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
LibraryCustomUmdCommentObject: {
|
|
92
|
+
type: 'object',
|
|
93
|
+
additionalProperties: !1,
|
|
94
|
+
properties: {
|
|
95
|
+
amd: { type: 'string' },
|
|
96
|
+
commonjs: { type: 'string' },
|
|
97
|
+
commonjs2: { type: 'string' },
|
|
98
|
+
root: { type: 'string' },
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
LibraryCustomUmdObject: {
|
|
102
|
+
type: 'object',
|
|
103
|
+
additionalProperties: !1,
|
|
104
|
+
properties: {
|
|
105
|
+
amd: { type: 'string', minLength: 1 },
|
|
106
|
+
commonjs: { type: 'string', minLength: 1 },
|
|
107
|
+
root: {
|
|
108
|
+
anyOf: [
|
|
109
|
+
{ type: 'array', items: { type: 'string', minLength: 1 } },
|
|
110
|
+
{ type: 'string', minLength: 1 },
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
LibraryExport: {
|
|
116
|
+
anyOf: [
|
|
117
|
+
{ type: 'array', items: { type: 'string', minLength: 1 } },
|
|
118
|
+
{ type: 'string', minLength: 1 },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
LibraryName: {
|
|
122
|
+
anyOf: [
|
|
123
|
+
{
|
|
124
|
+
type: 'array',
|
|
125
|
+
items: { type: 'string', minLength: 1 },
|
|
126
|
+
minItems: 1,
|
|
127
|
+
},
|
|
128
|
+
{ type: 'string', minLength: 1 },
|
|
129
|
+
{ $ref: '#/definitions/LibraryCustomUmdObject' },
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
LibraryOptions: {
|
|
133
|
+
type: 'object',
|
|
134
|
+
additionalProperties: !1,
|
|
135
|
+
properties: {
|
|
136
|
+
amdContainer: { $ref: '#/definitions/AmdContainer' },
|
|
137
|
+
auxiliaryComment: { $ref: '#/definitions/AuxiliaryComment' },
|
|
138
|
+
export: { $ref: '#/definitions/LibraryExport' },
|
|
139
|
+
name: { $ref: '#/definitions/LibraryName' },
|
|
140
|
+
type: { $ref: '#/definitions/LibraryType' },
|
|
141
|
+
umdNamedDefine: { $ref: '#/definitions/UmdNamedDefine' },
|
|
142
|
+
},
|
|
143
|
+
required: ['type'],
|
|
144
|
+
},
|
|
145
|
+
LibraryType: {
|
|
146
|
+
anyOf: [
|
|
147
|
+
{
|
|
148
|
+
enum: [
|
|
149
|
+
'var',
|
|
150
|
+
'module',
|
|
151
|
+
'assign',
|
|
152
|
+
'assign-properties',
|
|
153
|
+
'this',
|
|
154
|
+
'window',
|
|
155
|
+
'self',
|
|
156
|
+
'global',
|
|
157
|
+
'commonjs',
|
|
158
|
+
'commonjs2',
|
|
159
|
+
'commonjs-module',
|
|
160
|
+
'commonjs-static',
|
|
161
|
+
'amd',
|
|
162
|
+
'amd-require',
|
|
163
|
+
'umd',
|
|
164
|
+
'umd2',
|
|
165
|
+
'jsonp',
|
|
166
|
+
'system',
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
{ type: 'string' },
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
Remotes: {
|
|
173
|
+
anyOf: [
|
|
174
|
+
{
|
|
175
|
+
type: 'array',
|
|
176
|
+
items: {
|
|
177
|
+
anyOf: [
|
|
178
|
+
{ $ref: '#/definitions/RemotesItem' },
|
|
179
|
+
{ $ref: '#/definitions/RemotesObject' },
|
|
180
|
+
],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{ $ref: '#/definitions/RemotesObject' },
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
RemotesConfig: {
|
|
187
|
+
type: 'object',
|
|
188
|
+
additionalProperties: !1,
|
|
189
|
+
properties: {
|
|
190
|
+
external: {
|
|
191
|
+
anyOf: [
|
|
192
|
+
{ $ref: '#/definitions/RemotesItem' },
|
|
193
|
+
{ $ref: '#/definitions/RemotesItems' },
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
shareScope: { type: 'string', minLength: 1 },
|
|
197
|
+
},
|
|
198
|
+
required: ['external'],
|
|
199
|
+
},
|
|
200
|
+
RemotesItem: { type: 'string', minLength: 1 },
|
|
201
|
+
RemotesItems: {
|
|
202
|
+
type: 'array',
|
|
203
|
+
items: { $ref: '#/definitions/RemotesItem' },
|
|
204
|
+
},
|
|
205
|
+
RemotesObject: {
|
|
206
|
+
type: 'object',
|
|
207
|
+
additionalProperties: {
|
|
208
|
+
anyOf: [
|
|
209
|
+
{ $ref: '#/definitions/RemotesConfig' },
|
|
210
|
+
{ $ref: '#/definitions/RemotesItem' },
|
|
211
|
+
{ $ref: '#/definitions/RemotesItems' },
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
Shared: {
|
|
216
|
+
anyOf: [
|
|
217
|
+
{
|
|
218
|
+
type: 'array',
|
|
219
|
+
items: {
|
|
220
|
+
anyOf: [
|
|
221
|
+
{ $ref: '#/definitions/SharedItem' },
|
|
222
|
+
{ $ref: '#/definitions/SharedObject' },
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
{ $ref: '#/definitions/SharedObject' },
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
SharedConfig: {
|
|
230
|
+
type: 'object',
|
|
231
|
+
additionalProperties: !1,
|
|
232
|
+
properties: {
|
|
233
|
+
eager: { type: 'boolean' },
|
|
234
|
+
import: {
|
|
235
|
+
anyOf: [{ enum: [!1] }, { $ref: '#/definitions/SharedItem' }],
|
|
236
|
+
},
|
|
237
|
+
packageName: { type: 'string', minLength: 1 },
|
|
238
|
+
requiredVersion: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
|
|
239
|
+
shareKey: { type: 'string', minLength: 1 },
|
|
240
|
+
shareScope: { type: 'string', minLength: 1 },
|
|
241
|
+
singleton: { type: 'boolean' },
|
|
242
|
+
strictVersion: { type: 'boolean' },
|
|
243
|
+
version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
SharedItem: { type: 'string', minLength: 1 },
|
|
247
|
+
SharedObject: {
|
|
248
|
+
type: 'object',
|
|
249
|
+
additionalProperties: {
|
|
250
|
+
anyOf: [
|
|
251
|
+
{ $ref: '#/definitions/SharedConfig' },
|
|
252
|
+
{ $ref: '#/definitions/SharedItem' },
|
|
253
|
+
],
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
UmdNamedDefine: { type: 'boolean' },
|
|
257
|
+
},
|
|
258
|
+
type: 'object',
|
|
259
|
+
additionalProperties: !1,
|
|
260
|
+
properties: {
|
|
261
|
+
exposes: { $ref: '#/definitions/Exposes' },
|
|
262
|
+
filename: { type: 'string', absolutePath: !1 },
|
|
263
|
+
library: { $ref: '#/definitions/LibraryOptions' },
|
|
264
|
+
name: { type: 'string' },
|
|
265
|
+
remoteType: { oneOf: [{ $ref: '#/definitions/ExternalsType' }] },
|
|
266
|
+
remotes: { $ref: '#/definitions/Remotes' },
|
|
267
|
+
runtime: { $ref: '#/definitions/EntryRuntime' },
|
|
268
|
+
shareScope: { type: 'string', minLength: 1 },
|
|
269
|
+
shared: { $ref: '#/definitions/Shared' },
|
|
270
|
+
},
|
|
271
|
+
}, r = Object.prototype.hasOwnProperty;
|
|
272
|
+
function n(t, { instancePath: e = '', parentData: r, parentDataProperty: s, rootData: a = t, } = {}) {
|
|
273
|
+
if (!Array.isArray(t))
|
|
274
|
+
return (n.errors = [{ params: { type: 'array' } }]), !1;
|
|
275
|
+
{
|
|
276
|
+
const e = t.length;
|
|
277
|
+
for (let r = 0; r < e; r++) {
|
|
278
|
+
let e = t[r];
|
|
279
|
+
const s = 0;
|
|
280
|
+
if ('string' != typeof e)
|
|
281
|
+
return (n.errors = [{ params: { type: 'string' } }]), !1;
|
|
282
|
+
if (e.length < 1)
|
|
283
|
+
return (n.errors = [{ params: {} }]), !1;
|
|
284
|
+
if (0 !== s)
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return (n.errors = null), !0;
|
|
289
|
+
}
|
|
290
|
+
function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, rootData: o = t, } = {}) {
|
|
291
|
+
let i = null, l = 0;
|
|
292
|
+
if (0 === l) {
|
|
293
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
294
|
+
return (s.errors = [{ params: { type: 'object' } }]), !1;
|
|
295
|
+
{
|
|
296
|
+
let r;
|
|
297
|
+
if (void 0 === t.import && (r = 'import'))
|
|
298
|
+
return (s.errors = [{ params: { missingProperty: r } }]), !1;
|
|
299
|
+
{
|
|
300
|
+
const r = l;
|
|
301
|
+
for (const e in t)
|
|
302
|
+
if ('import' !== e && 'name' !== e)
|
|
303
|
+
return (s.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
304
|
+
if (r === l) {
|
|
305
|
+
if (void 0 !== t.import) {
|
|
306
|
+
let r = t.import;
|
|
307
|
+
const a = l, c = l;
|
|
308
|
+
let m = !1;
|
|
309
|
+
const u = l;
|
|
310
|
+
if (l == l)
|
|
311
|
+
if ('string' == typeof r) {
|
|
312
|
+
if (r.length < 1) {
|
|
313
|
+
const t = { params: {} };
|
|
314
|
+
null === i ? (i = [t]) : i.push(t), l++;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
const t = { params: { type: 'string' } };
|
|
319
|
+
null === i ? (i = [t]) : i.push(t), l++;
|
|
320
|
+
}
|
|
321
|
+
var p = u === l;
|
|
322
|
+
if (((m = m || p), !m)) {
|
|
323
|
+
const s = l;
|
|
324
|
+
n(r, {
|
|
325
|
+
instancePath: e + '/import',
|
|
326
|
+
parentData: t,
|
|
327
|
+
parentDataProperty: 'import',
|
|
328
|
+
rootData: o,
|
|
329
|
+
}) ||
|
|
330
|
+
((i = null === i ? n.errors : i.concat(n.errors)),
|
|
331
|
+
(l = i.length)),
|
|
332
|
+
(p = s === l),
|
|
333
|
+
(m = m || p);
|
|
334
|
+
}
|
|
335
|
+
if (!m) {
|
|
336
|
+
const t = { params: {} };
|
|
337
|
+
return (null === i ? (i = [t]) : i.push(t), l++, (s.errors = i), !1);
|
|
338
|
+
}
|
|
339
|
+
(l = c), null !== i && (c ? (i.length = c) : (i = null));
|
|
340
|
+
var f = a === l;
|
|
341
|
+
}
|
|
342
|
+
else
|
|
343
|
+
f = !0;
|
|
344
|
+
if (f)
|
|
345
|
+
if (void 0 !== t.name) {
|
|
346
|
+
const e = l;
|
|
347
|
+
if ('string' != typeof t.name)
|
|
348
|
+
return (s.errors = [{ params: { type: 'string' } }]), !1;
|
|
349
|
+
f = e === l;
|
|
350
|
+
}
|
|
351
|
+
else
|
|
352
|
+
f = !0;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return (s.errors = i), 0 === l;
|
|
358
|
+
}
|
|
359
|
+
function a(t, { instancePath: e = '', parentData: r, parentDataProperty: o, rootData: i = t, } = {}) {
|
|
360
|
+
let l = null, p = 0;
|
|
361
|
+
if (0 === p) {
|
|
362
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
363
|
+
return (a.errors = [{ params: { type: 'object' } }]), !1;
|
|
364
|
+
for (const r in t) {
|
|
365
|
+
let o = t[r];
|
|
366
|
+
const c = p, m = p;
|
|
367
|
+
let u = !1;
|
|
368
|
+
const y = p;
|
|
369
|
+
s(o, {
|
|
370
|
+
instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
371
|
+
parentData: t,
|
|
372
|
+
parentDataProperty: r,
|
|
373
|
+
rootData: i,
|
|
374
|
+
}) || ((l = null === l ? s.errors : l.concat(s.errors)), (p = l.length));
|
|
375
|
+
var f = y === p;
|
|
376
|
+
if (((u = u || f), !u)) {
|
|
377
|
+
const s = p;
|
|
378
|
+
if (p == p)
|
|
379
|
+
if ('string' == typeof o) {
|
|
380
|
+
if (o.length < 1) {
|
|
381
|
+
const t = { params: {} };
|
|
382
|
+
null === l ? (l = [t]) : l.push(t), p++;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
const t = { params: { type: 'string' } };
|
|
387
|
+
null === l ? (l = [t]) : l.push(t), p++;
|
|
388
|
+
}
|
|
389
|
+
if (((f = s === p), (u = u || f), !u)) {
|
|
390
|
+
const s = p;
|
|
391
|
+
n(o, {
|
|
392
|
+
instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
393
|
+
parentData: t,
|
|
394
|
+
parentDataProperty: r,
|
|
395
|
+
rootData: i,
|
|
396
|
+
}) ||
|
|
397
|
+
((l = null === l ? n.errors : l.concat(n.errors)), (p = l.length)),
|
|
398
|
+
(f = s === p),
|
|
399
|
+
(u = u || f);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
if (!u) {
|
|
403
|
+
const t = { params: {} };
|
|
404
|
+
return null === l ? (l = [t]) : l.push(t), p++, (a.errors = l), !1;
|
|
405
|
+
}
|
|
406
|
+
if (((p = m), null !== l && (m ? (l.length = m) : (l = null)), c !== p))
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
return (a.errors = l), 0 === p;
|
|
411
|
+
}
|
|
412
|
+
function o(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
413
|
+
let i = null, l = 0;
|
|
414
|
+
const p = l;
|
|
415
|
+
let f = !1;
|
|
416
|
+
const c = l;
|
|
417
|
+
if (l === c)
|
|
418
|
+
if (Array.isArray(t)) {
|
|
419
|
+
const r = t.length;
|
|
420
|
+
for (let n = 0; n < r; n++) {
|
|
421
|
+
let r = t[n];
|
|
422
|
+
const o = l, p = l;
|
|
423
|
+
let f = !1;
|
|
424
|
+
const c = l;
|
|
425
|
+
if (l == l)
|
|
426
|
+
if ('string' == typeof r) {
|
|
427
|
+
if (r.length < 1) {
|
|
428
|
+
const t = { params: {} };
|
|
429
|
+
null === i ? (i = [t]) : i.push(t), l++;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
const t = { params: { type: 'string' } };
|
|
434
|
+
null === i ? (i = [t]) : i.push(t), l++;
|
|
435
|
+
}
|
|
436
|
+
var m = c === l;
|
|
437
|
+
if (((f = f || m), !f)) {
|
|
438
|
+
const o = l;
|
|
439
|
+
a(r, {
|
|
440
|
+
instancePath: e + '/' + n,
|
|
441
|
+
parentData: t,
|
|
442
|
+
parentDataProperty: n,
|
|
443
|
+
rootData: s,
|
|
444
|
+
}) ||
|
|
445
|
+
((i = null === i ? a.errors : i.concat(a.errors)), (l = i.length)),
|
|
446
|
+
(m = o === l),
|
|
447
|
+
(f = f || m);
|
|
448
|
+
}
|
|
449
|
+
if (f)
|
|
450
|
+
(l = p), null !== i && (p ? (i.length = p) : (i = null));
|
|
451
|
+
else {
|
|
452
|
+
const t = { params: {} };
|
|
453
|
+
null === i ? (i = [t]) : i.push(t), l++;
|
|
454
|
+
}
|
|
455
|
+
if (o !== l)
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
else {
|
|
460
|
+
const t = { params: { type: 'array' } };
|
|
461
|
+
null === i ? (i = [t]) : i.push(t), l++;
|
|
462
|
+
}
|
|
463
|
+
var u = c === l;
|
|
464
|
+
if (((f = f || u), !f)) {
|
|
465
|
+
const o = l;
|
|
466
|
+
a(t, {
|
|
467
|
+
instancePath: e,
|
|
468
|
+
parentData: r,
|
|
469
|
+
parentDataProperty: n,
|
|
470
|
+
rootData: s,
|
|
471
|
+
}) || ((i = null === i ? a.errors : i.concat(a.errors)), (l = i.length)),
|
|
472
|
+
(u = o === l),
|
|
473
|
+
(f = f || u);
|
|
474
|
+
}
|
|
475
|
+
if (!f) {
|
|
476
|
+
const t = { params: {} };
|
|
477
|
+
return null === i ? (i = [t]) : i.push(t), l++, (o.errors = i), !1;
|
|
478
|
+
}
|
|
479
|
+
return ((l = p),
|
|
480
|
+
null !== i && (p ? (i.length = p) : (i = null)),
|
|
481
|
+
(o.errors = i),
|
|
482
|
+
0 === l);
|
|
483
|
+
}
|
|
484
|
+
function i(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
485
|
+
let a = null, o = 0;
|
|
486
|
+
const l = o;
|
|
487
|
+
let p = !1;
|
|
488
|
+
const f = o;
|
|
489
|
+
if ('string' != typeof t) {
|
|
490
|
+
const t = { params: { type: 'string' } };
|
|
491
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
492
|
+
}
|
|
493
|
+
var c = f === o;
|
|
494
|
+
if (((p = p || c), !p)) {
|
|
495
|
+
const e = o;
|
|
496
|
+
if (o == o)
|
|
497
|
+
if (t && 'object' == typeof t && !Array.isArray(t)) {
|
|
498
|
+
const e = o;
|
|
499
|
+
for (const e in t)
|
|
500
|
+
if ('amd' !== e &&
|
|
501
|
+
'commonjs' !== e &&
|
|
502
|
+
'commonjs2' !== e &&
|
|
503
|
+
'root' !== e) {
|
|
504
|
+
const t = { params: { additionalProperty: e } };
|
|
505
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
if (e === o) {
|
|
509
|
+
if (void 0 !== t.amd) {
|
|
510
|
+
const e = o;
|
|
511
|
+
if ('string' != typeof t.amd) {
|
|
512
|
+
const t = { params: { type: 'string' } };
|
|
513
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
514
|
+
}
|
|
515
|
+
var m = e === o;
|
|
516
|
+
}
|
|
517
|
+
else
|
|
518
|
+
m = !0;
|
|
519
|
+
if (m) {
|
|
520
|
+
if (void 0 !== t.commonjs) {
|
|
521
|
+
const e = o;
|
|
522
|
+
if ('string' != typeof t.commonjs) {
|
|
523
|
+
const t = { params: { type: 'string' } };
|
|
524
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
525
|
+
}
|
|
526
|
+
m = e === o;
|
|
527
|
+
}
|
|
528
|
+
else
|
|
529
|
+
m = !0;
|
|
530
|
+
if (m) {
|
|
531
|
+
if (void 0 !== t.commonjs2) {
|
|
532
|
+
const e = o;
|
|
533
|
+
if ('string' != typeof t.commonjs2) {
|
|
534
|
+
const t = { params: { type: 'string' } };
|
|
535
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
536
|
+
}
|
|
537
|
+
m = e === o;
|
|
538
|
+
}
|
|
539
|
+
else
|
|
540
|
+
m = !0;
|
|
541
|
+
if (m)
|
|
542
|
+
if (void 0 !== t.root) {
|
|
543
|
+
const e = o;
|
|
544
|
+
if ('string' != typeof t.root) {
|
|
545
|
+
const t = { params: { type: 'string' } };
|
|
546
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
547
|
+
}
|
|
548
|
+
m = e === o;
|
|
549
|
+
}
|
|
550
|
+
else
|
|
551
|
+
m = !0;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
const t = { params: { type: 'object' } };
|
|
558
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
559
|
+
}
|
|
560
|
+
(c = e === o), (p = p || c);
|
|
561
|
+
}
|
|
562
|
+
if (!p) {
|
|
563
|
+
const t = { params: {} };
|
|
564
|
+
return null === a ? (a = [t]) : a.push(t), o++, (i.errors = a), !1;
|
|
565
|
+
}
|
|
566
|
+
return ((o = l),
|
|
567
|
+
null !== a && (l ? (a.length = l) : (a = null)),
|
|
568
|
+
(i.errors = a),
|
|
569
|
+
0 === o);
|
|
570
|
+
}
|
|
571
|
+
function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
572
|
+
let a = null, o = 0;
|
|
573
|
+
const i = o;
|
|
574
|
+
let p = !1;
|
|
575
|
+
const f = o;
|
|
576
|
+
if (o === f)
|
|
577
|
+
if (Array.isArray(t))
|
|
578
|
+
if (t.length < 1) {
|
|
579
|
+
const t = { params: { limit: 1 } };
|
|
580
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
const e = t.length;
|
|
584
|
+
for (let r = 0; r < e; r++) {
|
|
585
|
+
let e = t[r];
|
|
586
|
+
const n = o;
|
|
587
|
+
if (o === n)
|
|
588
|
+
if ('string' == typeof e) {
|
|
589
|
+
if (e.length < 1) {
|
|
590
|
+
const t = { params: {} };
|
|
591
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
else {
|
|
595
|
+
const t = { params: { type: 'string' } };
|
|
596
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
597
|
+
}
|
|
598
|
+
if (n !== o)
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
const t = { params: { type: 'array' } };
|
|
604
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
605
|
+
}
|
|
606
|
+
var c = f === o;
|
|
607
|
+
if (((p = p || c), !p)) {
|
|
608
|
+
const e = o;
|
|
609
|
+
if (o === e)
|
|
610
|
+
if ('string' == typeof t) {
|
|
611
|
+
if (t.length < 1) {
|
|
612
|
+
const t = { params: {} };
|
|
613
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
else {
|
|
617
|
+
const t = { params: { type: 'string' } };
|
|
618
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
619
|
+
}
|
|
620
|
+
if (((c = e === o), (p = p || c), !p)) {
|
|
621
|
+
const e = o;
|
|
622
|
+
if (o == o)
|
|
623
|
+
if (t && 'object' == typeof t && !Array.isArray(t)) {
|
|
624
|
+
const e = o;
|
|
625
|
+
for (const e in t)
|
|
626
|
+
if ('amd' !== e && 'commonjs' !== e && 'root' !== e) {
|
|
627
|
+
const t = { params: { additionalProperty: e } };
|
|
628
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
629
|
+
break;
|
|
630
|
+
}
|
|
631
|
+
if (e === o) {
|
|
632
|
+
if (void 0 !== t.amd) {
|
|
633
|
+
let e = t.amd;
|
|
634
|
+
const r = o;
|
|
635
|
+
if (o === r)
|
|
636
|
+
if ('string' == typeof e) {
|
|
637
|
+
if (e.length < 1) {
|
|
638
|
+
const t = { params: {} };
|
|
639
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
else {
|
|
643
|
+
const t = { params: { type: 'string' } };
|
|
644
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
645
|
+
}
|
|
646
|
+
var m = r === o;
|
|
647
|
+
}
|
|
648
|
+
else
|
|
649
|
+
m = !0;
|
|
650
|
+
if (m) {
|
|
651
|
+
if (void 0 !== t.commonjs) {
|
|
652
|
+
let e = t.commonjs;
|
|
653
|
+
const r = o;
|
|
654
|
+
if (o === r)
|
|
655
|
+
if ('string' == typeof e) {
|
|
656
|
+
if (e.length < 1) {
|
|
657
|
+
const t = { params: {} };
|
|
658
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
else {
|
|
662
|
+
const t = { params: { type: 'string' } };
|
|
663
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
664
|
+
}
|
|
665
|
+
m = r === o;
|
|
666
|
+
}
|
|
667
|
+
else
|
|
668
|
+
m = !0;
|
|
669
|
+
if (m)
|
|
670
|
+
if (void 0 !== t.root) {
|
|
671
|
+
let e = t.root;
|
|
672
|
+
const r = o, n = o;
|
|
673
|
+
let s = !1;
|
|
674
|
+
const i = o;
|
|
675
|
+
if (o === i)
|
|
676
|
+
if (Array.isArray(e)) {
|
|
677
|
+
const t = e.length;
|
|
678
|
+
for (let r = 0; r < t; r++) {
|
|
679
|
+
let t = e[r];
|
|
680
|
+
const n = o;
|
|
681
|
+
if (o === n)
|
|
682
|
+
if ('string' == typeof t) {
|
|
683
|
+
if (t.length < 1) {
|
|
684
|
+
const t = { params: {} };
|
|
685
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
else {
|
|
689
|
+
const t = { params: { type: 'string' } };
|
|
690
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
691
|
+
}
|
|
692
|
+
if (n !== o)
|
|
693
|
+
break;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
else {
|
|
697
|
+
const t = { params: { type: 'array' } };
|
|
698
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
699
|
+
}
|
|
700
|
+
var u = i === o;
|
|
701
|
+
if (((s = s || u), !s)) {
|
|
702
|
+
const t = o;
|
|
703
|
+
if (o === t)
|
|
704
|
+
if ('string' == typeof e) {
|
|
705
|
+
if (e.length < 1) {
|
|
706
|
+
const t = { params: {} };
|
|
707
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
else {
|
|
711
|
+
const t = { params: { type: 'string' } };
|
|
712
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
713
|
+
}
|
|
714
|
+
(u = t === o), (s = s || u);
|
|
715
|
+
}
|
|
716
|
+
if (s)
|
|
717
|
+
(o = n), null !== a && (n ? (a.length = n) : (a = null));
|
|
718
|
+
else {
|
|
719
|
+
const t = { params: {} };
|
|
720
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
721
|
+
}
|
|
722
|
+
m = r === o;
|
|
723
|
+
}
|
|
724
|
+
else
|
|
725
|
+
m = !0;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
else {
|
|
730
|
+
const t = { params: { type: 'object' } };
|
|
731
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
732
|
+
}
|
|
733
|
+
(c = e === o), (p = p || c);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
if (!p) {
|
|
737
|
+
const t = { params: {} };
|
|
738
|
+
return null === a ? (a = [t]) : a.push(t), o++, (l.errors = a), !1;
|
|
739
|
+
}
|
|
740
|
+
return ((o = i),
|
|
741
|
+
null !== a && (i ? (a.length = i) : (a = null)),
|
|
742
|
+
(l.errors = a),
|
|
743
|
+
0 === o);
|
|
744
|
+
}
|
|
745
|
+
function p(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
746
|
+
let a = null, o = 0;
|
|
747
|
+
if (0 === o) {
|
|
748
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
749
|
+
return (p.errors = [{ params: { type: 'object' } }]), !1;
|
|
750
|
+
{
|
|
751
|
+
let r;
|
|
752
|
+
if (void 0 === t.type && (r = 'type'))
|
|
753
|
+
return (p.errors = [{ params: { missingProperty: r } }]), !1;
|
|
754
|
+
{
|
|
755
|
+
const r = o;
|
|
756
|
+
for (const e in t)
|
|
757
|
+
if ('amdContainer' !== e &&
|
|
758
|
+
'auxiliaryComment' !== e &&
|
|
759
|
+
'export' !== e &&
|
|
760
|
+
'name' !== e &&
|
|
761
|
+
'type' !== e &&
|
|
762
|
+
'umdNamedDefine' !== e)
|
|
763
|
+
return (p.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
764
|
+
if (r === o) {
|
|
765
|
+
if (void 0 !== t.amdContainer) {
|
|
766
|
+
let e = t.amdContainer;
|
|
767
|
+
const r = o;
|
|
768
|
+
if (o == o) {
|
|
769
|
+
if ('string' != typeof e)
|
|
770
|
+
return (p.errors = [{ params: { type: 'string' } }]), !1;
|
|
771
|
+
if (e.length < 1)
|
|
772
|
+
return (p.errors = [{ params: {} }]), !1;
|
|
773
|
+
}
|
|
774
|
+
var f = r === o;
|
|
775
|
+
}
|
|
776
|
+
else
|
|
777
|
+
f = !0;
|
|
778
|
+
if (f) {
|
|
779
|
+
if (void 0 !== t.auxiliaryComment) {
|
|
780
|
+
const r = o;
|
|
781
|
+
i(t.auxiliaryComment, {
|
|
782
|
+
instancePath: e + '/auxiliaryComment',
|
|
783
|
+
parentData: t,
|
|
784
|
+
parentDataProperty: 'auxiliaryComment',
|
|
785
|
+
rootData: s,
|
|
786
|
+
}) ||
|
|
787
|
+
((a = null === a ? i.errors : a.concat(i.errors)),
|
|
788
|
+
(o = a.length)),
|
|
789
|
+
(f = r === o);
|
|
790
|
+
}
|
|
791
|
+
else
|
|
792
|
+
f = !0;
|
|
793
|
+
if (f) {
|
|
794
|
+
if (void 0 !== t.export) {
|
|
795
|
+
let e = t.export;
|
|
796
|
+
const r = o, n = o;
|
|
797
|
+
let s = !1;
|
|
798
|
+
const i = o;
|
|
799
|
+
if (o === i)
|
|
800
|
+
if (Array.isArray(e)) {
|
|
801
|
+
const t = e.length;
|
|
802
|
+
for (let r = 0; r < t; r++) {
|
|
803
|
+
let t = e[r];
|
|
804
|
+
const n = o;
|
|
805
|
+
if (o === n)
|
|
806
|
+
if ('string' == typeof t) {
|
|
807
|
+
if (t.length < 1) {
|
|
808
|
+
const t = { params: {} };
|
|
809
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
else {
|
|
813
|
+
const t = { params: { type: 'string' } };
|
|
814
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
815
|
+
}
|
|
816
|
+
if (n !== o)
|
|
817
|
+
break;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
else {
|
|
821
|
+
const t = { params: { type: 'array' } };
|
|
822
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
823
|
+
}
|
|
824
|
+
var c = i === o;
|
|
825
|
+
if (((s = s || c), !s)) {
|
|
826
|
+
const t = o;
|
|
827
|
+
if (o === t)
|
|
828
|
+
if ('string' == typeof e) {
|
|
829
|
+
if (e.length < 1) {
|
|
830
|
+
const t = { params: {} };
|
|
831
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
const t = { params: { type: 'string' } };
|
|
836
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
837
|
+
}
|
|
838
|
+
(c = t === o), (s = s || c);
|
|
839
|
+
}
|
|
840
|
+
if (!s) {
|
|
841
|
+
const t = { params: {} };
|
|
842
|
+
return (null === a ? (a = [t]) : a.push(t), o++, (p.errors = a), !1);
|
|
843
|
+
}
|
|
844
|
+
(o = n),
|
|
845
|
+
null !== a && (n ? (a.length = n) : (a = null)),
|
|
846
|
+
(f = r === o);
|
|
847
|
+
}
|
|
848
|
+
else
|
|
849
|
+
f = !0;
|
|
850
|
+
if (f) {
|
|
851
|
+
if (void 0 !== t.name) {
|
|
852
|
+
const r = o;
|
|
853
|
+
l(t.name, {
|
|
854
|
+
instancePath: e + '/name',
|
|
855
|
+
parentData: t,
|
|
856
|
+
parentDataProperty: 'name',
|
|
857
|
+
rootData: s,
|
|
858
|
+
}) ||
|
|
859
|
+
((a = null === a ? l.errors : a.concat(l.errors)),
|
|
860
|
+
(o = a.length)),
|
|
861
|
+
(f = r === o);
|
|
862
|
+
}
|
|
863
|
+
else
|
|
864
|
+
f = !0;
|
|
865
|
+
if (f) {
|
|
866
|
+
if (void 0 !== t.type) {
|
|
867
|
+
let e = t.type;
|
|
868
|
+
const r = o, n = o;
|
|
869
|
+
let s = !1;
|
|
870
|
+
const i = o;
|
|
871
|
+
if ('var' !== e &&
|
|
872
|
+
'module' !== e &&
|
|
873
|
+
'assign' !== e &&
|
|
874
|
+
'assign-properties' !== e &&
|
|
875
|
+
'this' !== e &&
|
|
876
|
+
'window' !== e &&
|
|
877
|
+
'self' !== e &&
|
|
878
|
+
'global' !== e &&
|
|
879
|
+
'commonjs' !== e &&
|
|
880
|
+
'commonjs2' !== e &&
|
|
881
|
+
'commonjs-module' !== e &&
|
|
882
|
+
'commonjs-static' !== e &&
|
|
883
|
+
'amd' !== e &&
|
|
884
|
+
'amd-require' !== e &&
|
|
885
|
+
'umd' !== e &&
|
|
886
|
+
'umd2' !== e &&
|
|
887
|
+
'jsonp' !== e &&
|
|
888
|
+
'system' !== e) {
|
|
889
|
+
const t = { params: {} };
|
|
890
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
891
|
+
}
|
|
892
|
+
var m = i === o;
|
|
893
|
+
if (((s = s || m), !s)) {
|
|
894
|
+
const t = o;
|
|
895
|
+
if ('string' != typeof e) {
|
|
896
|
+
const t = { params: { type: 'string' } };
|
|
897
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
898
|
+
}
|
|
899
|
+
(m = t === o), (s = s || m);
|
|
900
|
+
}
|
|
901
|
+
if (!s) {
|
|
902
|
+
const t = { params: {} };
|
|
903
|
+
return (null === a ? (a = [t]) : a.push(t),
|
|
904
|
+
o++,
|
|
905
|
+
(p.errors = a),
|
|
906
|
+
!1);
|
|
907
|
+
}
|
|
908
|
+
(o = n),
|
|
909
|
+
null !== a && (n ? (a.length = n) : (a = null)),
|
|
910
|
+
(f = r === o);
|
|
911
|
+
}
|
|
912
|
+
else
|
|
913
|
+
f = !0;
|
|
914
|
+
if (f)
|
|
915
|
+
if (void 0 !== t.umdNamedDefine) {
|
|
916
|
+
const e = o;
|
|
917
|
+
if ('boolean' != typeof t.umdNamedDefine)
|
|
918
|
+
return ((p.errors = [{ params: { type: 'boolean' } }]), !1);
|
|
919
|
+
f = e === o;
|
|
920
|
+
}
|
|
921
|
+
else
|
|
922
|
+
f = !0;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
return (p.errors = a), 0 === o;
|
|
932
|
+
}
|
|
933
|
+
function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
934
|
+
if (!Array.isArray(t))
|
|
935
|
+
return (f.errors = [{ params: { type: 'array' } }]), !1;
|
|
936
|
+
{
|
|
937
|
+
const e = t.length;
|
|
938
|
+
for (let r = 0; r < e; r++) {
|
|
939
|
+
let e = t[r];
|
|
940
|
+
const n = 0;
|
|
941
|
+
if ('string' != typeof e)
|
|
942
|
+
return (f.errors = [{ params: { type: 'string' } }]), !1;
|
|
943
|
+
if (e.length < 1)
|
|
944
|
+
return (f.errors = [{ params: {} }]), !1;
|
|
945
|
+
if (0 !== n)
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
return (f.errors = null), !0;
|
|
950
|
+
}
|
|
951
|
+
function c(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
952
|
+
let a = null, o = 0;
|
|
953
|
+
if (0 === o) {
|
|
954
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
955
|
+
return (c.errors = [{ params: { type: 'object' } }]), !1;
|
|
956
|
+
{
|
|
957
|
+
let r;
|
|
958
|
+
if (void 0 === t.external && (r = 'external'))
|
|
959
|
+
return (c.errors = [{ params: { missingProperty: r } }]), !1;
|
|
960
|
+
{
|
|
961
|
+
const r = o;
|
|
962
|
+
for (const e in t)
|
|
963
|
+
if ('external' !== e && 'shareScope' !== e)
|
|
964
|
+
return (c.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
965
|
+
if (r === o) {
|
|
966
|
+
if (void 0 !== t.external) {
|
|
967
|
+
let r = t.external;
|
|
968
|
+
const n = o, p = o;
|
|
969
|
+
let m = !1;
|
|
970
|
+
const u = o;
|
|
971
|
+
if (o == o)
|
|
972
|
+
if ('string' == typeof r) {
|
|
973
|
+
if (r.length < 1) {
|
|
974
|
+
const t = { params: {} };
|
|
975
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
else {
|
|
979
|
+
const t = { params: { type: 'string' } };
|
|
980
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
981
|
+
}
|
|
982
|
+
var i = u === o;
|
|
983
|
+
if (((m = m || i), !m)) {
|
|
984
|
+
const n = o;
|
|
985
|
+
f(r, {
|
|
986
|
+
instancePath: e + '/external',
|
|
987
|
+
parentData: t,
|
|
988
|
+
parentDataProperty: 'external',
|
|
989
|
+
rootData: s,
|
|
990
|
+
}) ||
|
|
991
|
+
((a = null === a ? f.errors : a.concat(f.errors)),
|
|
992
|
+
(o = a.length)),
|
|
993
|
+
(i = n === o),
|
|
994
|
+
(m = m || i);
|
|
995
|
+
}
|
|
996
|
+
if (!m) {
|
|
997
|
+
const t = { params: {} };
|
|
998
|
+
return (null === a ? (a = [t]) : a.push(t), o++, (c.errors = a), !1);
|
|
999
|
+
}
|
|
1000
|
+
(o = p), null !== a && (p ? (a.length = p) : (a = null));
|
|
1001
|
+
var l = n === o;
|
|
1002
|
+
}
|
|
1003
|
+
else
|
|
1004
|
+
l = !0;
|
|
1005
|
+
if (l)
|
|
1006
|
+
if (void 0 !== t.shareScope) {
|
|
1007
|
+
let e = t.shareScope;
|
|
1008
|
+
const r = o;
|
|
1009
|
+
if (o === r) {
|
|
1010
|
+
if ('string' != typeof e)
|
|
1011
|
+
return (c.errors = [{ params: { type: 'string' } }]), !1;
|
|
1012
|
+
if (e.length < 1)
|
|
1013
|
+
return (c.errors = [{ params: {} }]), !1;
|
|
1014
|
+
}
|
|
1015
|
+
l = r === o;
|
|
1016
|
+
}
|
|
1017
|
+
else
|
|
1018
|
+
l = !0;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
return (c.errors = a), 0 === o;
|
|
1024
|
+
}
|
|
1025
|
+
function m(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
1026
|
+
let a = null, o = 0;
|
|
1027
|
+
if (0 === o) {
|
|
1028
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
1029
|
+
return (m.errors = [{ params: { type: 'object' } }]), !1;
|
|
1030
|
+
for (const r in t) {
|
|
1031
|
+
let n = t[r];
|
|
1032
|
+
const l = o, p = o;
|
|
1033
|
+
let u = !1;
|
|
1034
|
+
const y = o;
|
|
1035
|
+
c(n, {
|
|
1036
|
+
instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
1037
|
+
parentData: t,
|
|
1038
|
+
parentDataProperty: r,
|
|
1039
|
+
rootData: s,
|
|
1040
|
+
}) || ((a = null === a ? c.errors : a.concat(c.errors)), (o = a.length));
|
|
1041
|
+
var i = y === o;
|
|
1042
|
+
if (((u = u || i), !u)) {
|
|
1043
|
+
const l = o;
|
|
1044
|
+
if (o == o)
|
|
1045
|
+
if ('string' == typeof n) {
|
|
1046
|
+
if (n.length < 1) {
|
|
1047
|
+
const t = { params: {} };
|
|
1048
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
else {
|
|
1052
|
+
const t = { params: { type: 'string' } };
|
|
1053
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1054
|
+
}
|
|
1055
|
+
if (((i = l === o), (u = u || i), !u)) {
|
|
1056
|
+
const l = o;
|
|
1057
|
+
f(n, {
|
|
1058
|
+
instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
1059
|
+
parentData: t,
|
|
1060
|
+
parentDataProperty: r,
|
|
1061
|
+
rootData: s,
|
|
1062
|
+
}) ||
|
|
1063
|
+
((a = null === a ? f.errors : a.concat(f.errors)), (o = a.length)),
|
|
1064
|
+
(i = l === o),
|
|
1065
|
+
(u = u || i);
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
if (!u) {
|
|
1069
|
+
const t = { params: {} };
|
|
1070
|
+
return null === a ? (a = [t]) : a.push(t), o++, (m.errors = a), !1;
|
|
1071
|
+
}
|
|
1072
|
+
if (((o = p), null !== a && (p ? (a.length = p) : (a = null)), l !== o))
|
|
1073
|
+
break;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
return (m.errors = a), 0 === o;
|
|
1077
|
+
}
|
|
1078
|
+
function u(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
1079
|
+
let a = null, o = 0;
|
|
1080
|
+
const i = o;
|
|
1081
|
+
let l = !1;
|
|
1082
|
+
const p = o;
|
|
1083
|
+
if (o === p)
|
|
1084
|
+
if (Array.isArray(t)) {
|
|
1085
|
+
const r = t.length;
|
|
1086
|
+
for (let n = 0; n < r; n++) {
|
|
1087
|
+
let r = t[n];
|
|
1088
|
+
const i = o, l = o;
|
|
1089
|
+
let p = !1;
|
|
1090
|
+
const c = o;
|
|
1091
|
+
if (o == o)
|
|
1092
|
+
if ('string' == typeof r) {
|
|
1093
|
+
if (r.length < 1) {
|
|
1094
|
+
const t = { params: {} };
|
|
1095
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
else {
|
|
1099
|
+
const t = { params: { type: 'string' } };
|
|
1100
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1101
|
+
}
|
|
1102
|
+
var f = c === o;
|
|
1103
|
+
if (((p = p || f), !p)) {
|
|
1104
|
+
const i = o;
|
|
1105
|
+
m(r, {
|
|
1106
|
+
instancePath: e + '/' + n,
|
|
1107
|
+
parentData: t,
|
|
1108
|
+
parentDataProperty: n,
|
|
1109
|
+
rootData: s,
|
|
1110
|
+
}) ||
|
|
1111
|
+
((a = null === a ? m.errors : a.concat(m.errors)), (o = a.length)),
|
|
1112
|
+
(f = i === o),
|
|
1113
|
+
(p = p || f);
|
|
1114
|
+
}
|
|
1115
|
+
if (p)
|
|
1116
|
+
(o = l), null !== a && (l ? (a.length = l) : (a = null));
|
|
1117
|
+
else {
|
|
1118
|
+
const t = { params: {} };
|
|
1119
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1120
|
+
}
|
|
1121
|
+
if (i !== o)
|
|
1122
|
+
break;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
else {
|
|
1126
|
+
const t = { params: { type: 'array' } };
|
|
1127
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1128
|
+
}
|
|
1129
|
+
var c = p === o;
|
|
1130
|
+
if (((l = l || c), !l)) {
|
|
1131
|
+
const i = o;
|
|
1132
|
+
m(t, {
|
|
1133
|
+
instancePath: e,
|
|
1134
|
+
parentData: r,
|
|
1135
|
+
parentDataProperty: n,
|
|
1136
|
+
rootData: s,
|
|
1137
|
+
}) || ((a = null === a ? m.errors : a.concat(m.errors)), (o = a.length)),
|
|
1138
|
+
(c = i === o),
|
|
1139
|
+
(l = l || c);
|
|
1140
|
+
}
|
|
1141
|
+
if (!l) {
|
|
1142
|
+
const t = { params: {} };
|
|
1143
|
+
return null === a ? (a = [t]) : a.push(t), o++, (u.errors = a), !1;
|
|
1144
|
+
}
|
|
1145
|
+
return ((o = i),
|
|
1146
|
+
null !== a && (i ? (a.length = i) : (a = null)),
|
|
1147
|
+
(u.errors = a),
|
|
1148
|
+
0 === o);
|
|
1149
|
+
}
|
|
1150
|
+
const y = {
|
|
1151
|
+
type: 'object',
|
|
1152
|
+
additionalProperties: !1,
|
|
1153
|
+
properties: {
|
|
1154
|
+
eager: { type: 'boolean' },
|
|
1155
|
+
import: { anyOf: [{ enum: [!1] }, { $ref: '#/definitions/SharedItem' }] },
|
|
1156
|
+
packageName: { type: 'string', minLength: 1 },
|
|
1157
|
+
requiredVersion: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
|
|
1158
|
+
shareKey: { type: 'string', minLength: 1 },
|
|
1159
|
+
shareScope: { type: 'string', minLength: 1 },
|
|
1160
|
+
singleton: { type: 'boolean' },
|
|
1161
|
+
strictVersion: { type: 'boolean' },
|
|
1162
|
+
version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
|
|
1163
|
+
},
|
|
1164
|
+
};
|
|
1165
|
+
function h(t, { instancePath: e = '', parentData: n, parentDataProperty: s, rootData: a = t, } = {}) {
|
|
1166
|
+
let o = null, i = 0;
|
|
1167
|
+
if (0 === i) {
|
|
1168
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
1169
|
+
return (h.errors = [{ params: { type: 'object' } }]), !1;
|
|
1170
|
+
{
|
|
1171
|
+
const e = i;
|
|
1172
|
+
for (const e in t)
|
|
1173
|
+
if (!r.call(y.properties, e))
|
|
1174
|
+
return (h.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
1175
|
+
if (e === i) {
|
|
1176
|
+
if (void 0 !== t.eager) {
|
|
1177
|
+
const e = i;
|
|
1178
|
+
if ('boolean' != typeof t.eager)
|
|
1179
|
+
return (h.errors = [{ params: { type: 'boolean' } }]), !1;
|
|
1180
|
+
var l = e === i;
|
|
1181
|
+
}
|
|
1182
|
+
else
|
|
1183
|
+
l = !0;
|
|
1184
|
+
if (l) {
|
|
1185
|
+
if (void 0 !== t.import) {
|
|
1186
|
+
let e = t.import;
|
|
1187
|
+
const r = i, n = i;
|
|
1188
|
+
let s = !1;
|
|
1189
|
+
const a = i;
|
|
1190
|
+
if (!1 !== e) {
|
|
1191
|
+
const t = { params: {} };
|
|
1192
|
+
null === o ? (o = [t]) : o.push(t), i++;
|
|
1193
|
+
}
|
|
1194
|
+
var p = a === i;
|
|
1195
|
+
if (((s = s || p), !s)) {
|
|
1196
|
+
const t = i;
|
|
1197
|
+
if (i == i)
|
|
1198
|
+
if ('string' == typeof e) {
|
|
1199
|
+
if (e.length < 1) {
|
|
1200
|
+
const t = { params: {} };
|
|
1201
|
+
null === o ? (o = [t]) : o.push(t), i++;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
else {
|
|
1205
|
+
const t = { params: { type: 'string' } };
|
|
1206
|
+
null === o ? (o = [t]) : o.push(t), i++;
|
|
1207
|
+
}
|
|
1208
|
+
(p = t === i), (s = s || p);
|
|
1209
|
+
}
|
|
1210
|
+
if (!s) {
|
|
1211
|
+
const t = { params: {} };
|
|
1212
|
+
return (null === o ? (o = [t]) : o.push(t), i++, (h.errors = o), !1);
|
|
1213
|
+
}
|
|
1214
|
+
(i = n),
|
|
1215
|
+
null !== o && (n ? (o.length = n) : (o = null)),
|
|
1216
|
+
(l = r === i);
|
|
1217
|
+
}
|
|
1218
|
+
else
|
|
1219
|
+
l = !0;
|
|
1220
|
+
if (l) {
|
|
1221
|
+
if (void 0 !== t.packageName) {
|
|
1222
|
+
let e = t.packageName;
|
|
1223
|
+
const r = i;
|
|
1224
|
+
if (i === r) {
|
|
1225
|
+
if ('string' != typeof e)
|
|
1226
|
+
return (h.errors = [{ params: { type: 'string' } }]), !1;
|
|
1227
|
+
if (e.length < 1)
|
|
1228
|
+
return (h.errors = [{ params: {} }]), !1;
|
|
1229
|
+
}
|
|
1230
|
+
l = r === i;
|
|
1231
|
+
}
|
|
1232
|
+
else
|
|
1233
|
+
l = !0;
|
|
1234
|
+
if (l) {
|
|
1235
|
+
if (void 0 !== t.requiredVersion) {
|
|
1236
|
+
let e = t.requiredVersion;
|
|
1237
|
+
const r = i, n = i;
|
|
1238
|
+
let s = !1;
|
|
1239
|
+
const a = i;
|
|
1240
|
+
if (!1 !== e) {
|
|
1241
|
+
const t = { params: {} };
|
|
1242
|
+
null === o ? (o = [t]) : o.push(t), i++;
|
|
1243
|
+
}
|
|
1244
|
+
var f = a === i;
|
|
1245
|
+
if (((s = s || f), !s)) {
|
|
1246
|
+
const t = i;
|
|
1247
|
+
if ('string' != typeof e) {
|
|
1248
|
+
const t = { params: { type: 'string' } };
|
|
1249
|
+
null === o ? (o = [t]) : o.push(t), i++;
|
|
1250
|
+
}
|
|
1251
|
+
(f = t === i), (s = s || f);
|
|
1252
|
+
}
|
|
1253
|
+
if (!s) {
|
|
1254
|
+
const t = { params: {} };
|
|
1255
|
+
return (null === o ? (o = [t]) : o.push(t), i++, (h.errors = o), !1);
|
|
1256
|
+
}
|
|
1257
|
+
(i = n),
|
|
1258
|
+
null !== o && (n ? (o.length = n) : (o = null)),
|
|
1259
|
+
(l = r === i);
|
|
1260
|
+
}
|
|
1261
|
+
else
|
|
1262
|
+
l = !0;
|
|
1263
|
+
if (l) {
|
|
1264
|
+
if (void 0 !== t.shareKey) {
|
|
1265
|
+
let e = t.shareKey;
|
|
1266
|
+
const r = i;
|
|
1267
|
+
if (i === r) {
|
|
1268
|
+
if ('string' != typeof e)
|
|
1269
|
+
return (h.errors = [{ params: { type: 'string' } }]), !1;
|
|
1270
|
+
if (e.length < 1)
|
|
1271
|
+
return (h.errors = [{ params: {} }]), !1;
|
|
1272
|
+
}
|
|
1273
|
+
l = r === i;
|
|
1274
|
+
}
|
|
1275
|
+
else
|
|
1276
|
+
l = !0;
|
|
1277
|
+
if (l) {
|
|
1278
|
+
if (void 0 !== t.shareScope) {
|
|
1279
|
+
let e = t.shareScope;
|
|
1280
|
+
const r = i;
|
|
1281
|
+
if (i === r) {
|
|
1282
|
+
if ('string' != typeof e)
|
|
1283
|
+
return ((h.errors = [{ params: { type: 'string' } }]), !1);
|
|
1284
|
+
if (e.length < 1)
|
|
1285
|
+
return (h.errors = [{ params: {} }]), !1;
|
|
1286
|
+
}
|
|
1287
|
+
l = r === i;
|
|
1288
|
+
}
|
|
1289
|
+
else
|
|
1290
|
+
l = !0;
|
|
1291
|
+
if (l) {
|
|
1292
|
+
if (void 0 !== t.singleton) {
|
|
1293
|
+
const e = i;
|
|
1294
|
+
if ('boolean' != typeof t.singleton)
|
|
1295
|
+
return ((h.errors = [{ params: { type: 'boolean' } }]), !1);
|
|
1296
|
+
l = e === i;
|
|
1297
|
+
}
|
|
1298
|
+
else
|
|
1299
|
+
l = !0;
|
|
1300
|
+
if (l) {
|
|
1301
|
+
if (void 0 !== t.strictVersion) {
|
|
1302
|
+
const e = i;
|
|
1303
|
+
if ('boolean' != typeof t.strictVersion)
|
|
1304
|
+
return ((h.errors = [{ params: { type: 'boolean' } }]), !1);
|
|
1305
|
+
l = e === i;
|
|
1306
|
+
}
|
|
1307
|
+
else
|
|
1308
|
+
l = !0;
|
|
1309
|
+
if (l)
|
|
1310
|
+
if (void 0 !== t.version) {
|
|
1311
|
+
let e = t.version;
|
|
1312
|
+
const r = i, n = i;
|
|
1313
|
+
let s = !1;
|
|
1314
|
+
const a = i;
|
|
1315
|
+
if (!1 !== e) {
|
|
1316
|
+
const t = { params: {} };
|
|
1317
|
+
null === o ? (o = [t]) : o.push(t), i++;
|
|
1318
|
+
}
|
|
1319
|
+
var c = a === i;
|
|
1320
|
+
if (((s = s || c), !s)) {
|
|
1321
|
+
const t = i;
|
|
1322
|
+
if ('string' != typeof e) {
|
|
1323
|
+
const t = { params: { type: 'string' } };
|
|
1324
|
+
null === o ? (o = [t]) : o.push(t), i++;
|
|
1325
|
+
}
|
|
1326
|
+
(c = t === i), (s = s || c);
|
|
1327
|
+
}
|
|
1328
|
+
if (!s) {
|
|
1329
|
+
const t = { params: {} };
|
|
1330
|
+
return (null === o ? (o = [t]) : o.push(t),
|
|
1331
|
+
i++,
|
|
1332
|
+
(h.errors = o),
|
|
1333
|
+
!1);
|
|
1334
|
+
}
|
|
1335
|
+
(i = n),
|
|
1336
|
+
null !== o && (n ? (o.length = n) : (o = null)),
|
|
1337
|
+
(l = r === i);
|
|
1338
|
+
}
|
|
1339
|
+
else
|
|
1340
|
+
l = !0;
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
return (h.errors = o), 0 === i;
|
|
1352
|
+
}
|
|
1353
|
+
function g(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
1354
|
+
let a = null, o = 0;
|
|
1355
|
+
if (0 === o) {
|
|
1356
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
1357
|
+
return (g.errors = [{ params: { type: 'object' } }]), !1;
|
|
1358
|
+
for (const r in t) {
|
|
1359
|
+
let n = t[r];
|
|
1360
|
+
const l = o, p = o;
|
|
1361
|
+
let f = !1;
|
|
1362
|
+
const c = o;
|
|
1363
|
+
h(n, {
|
|
1364
|
+
instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
1365
|
+
parentData: t,
|
|
1366
|
+
parentDataProperty: r,
|
|
1367
|
+
rootData: s,
|
|
1368
|
+
}) || ((a = null === a ? h.errors : a.concat(h.errors)), (o = a.length));
|
|
1369
|
+
var i = c === o;
|
|
1370
|
+
if (((f = f || i), !f)) {
|
|
1371
|
+
const t = o;
|
|
1372
|
+
if (o == o)
|
|
1373
|
+
if ('string' == typeof n) {
|
|
1374
|
+
if (n.length < 1) {
|
|
1375
|
+
const t = { params: {} };
|
|
1376
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
else {
|
|
1380
|
+
const t = { params: { type: 'string' } };
|
|
1381
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1382
|
+
}
|
|
1383
|
+
(i = t === o), (f = f || i);
|
|
1384
|
+
}
|
|
1385
|
+
if (!f) {
|
|
1386
|
+
const t = { params: {} };
|
|
1387
|
+
return null === a ? (a = [t]) : a.push(t), o++, (g.errors = a), !1;
|
|
1388
|
+
}
|
|
1389
|
+
if (((o = p), null !== a && (p ? (a.length = p) : (a = null)), l !== o))
|
|
1390
|
+
break;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
return (g.errors = a), 0 === o;
|
|
1394
|
+
}
|
|
1395
|
+
function d(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
1396
|
+
let a = null, o = 0;
|
|
1397
|
+
const i = o;
|
|
1398
|
+
let l = !1;
|
|
1399
|
+
const p = o;
|
|
1400
|
+
if (o === p)
|
|
1401
|
+
if (Array.isArray(t)) {
|
|
1402
|
+
const r = t.length;
|
|
1403
|
+
for (let n = 0; n < r; n++) {
|
|
1404
|
+
let r = t[n];
|
|
1405
|
+
const i = o, l = o;
|
|
1406
|
+
let p = !1;
|
|
1407
|
+
const c = o;
|
|
1408
|
+
if (o == o)
|
|
1409
|
+
if ('string' == typeof r) {
|
|
1410
|
+
if (r.length < 1) {
|
|
1411
|
+
const t = { params: {} };
|
|
1412
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
else {
|
|
1416
|
+
const t = { params: { type: 'string' } };
|
|
1417
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1418
|
+
}
|
|
1419
|
+
var f = c === o;
|
|
1420
|
+
if (((p = p || f), !p)) {
|
|
1421
|
+
const i = o;
|
|
1422
|
+
g(r, {
|
|
1423
|
+
instancePath: e + '/' + n,
|
|
1424
|
+
parentData: t,
|
|
1425
|
+
parentDataProperty: n,
|
|
1426
|
+
rootData: s,
|
|
1427
|
+
}) ||
|
|
1428
|
+
((a = null === a ? g.errors : a.concat(g.errors)), (o = a.length)),
|
|
1429
|
+
(f = i === o),
|
|
1430
|
+
(p = p || f);
|
|
1431
|
+
}
|
|
1432
|
+
if (p)
|
|
1433
|
+
(o = l), null !== a && (l ? (a.length = l) : (a = null));
|
|
1434
|
+
else {
|
|
1435
|
+
const t = { params: {} };
|
|
1436
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1437
|
+
}
|
|
1438
|
+
if (i !== o)
|
|
1439
|
+
break;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
else {
|
|
1443
|
+
const t = { params: { type: 'array' } };
|
|
1444
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
1445
|
+
}
|
|
1446
|
+
var c = p === o;
|
|
1447
|
+
if (((l = l || c), !l)) {
|
|
1448
|
+
const i = o;
|
|
1449
|
+
g(t, {
|
|
1450
|
+
instancePath: e,
|
|
1451
|
+
parentData: r,
|
|
1452
|
+
parentDataProperty: n,
|
|
1453
|
+
rootData: s,
|
|
1454
|
+
}) || ((a = null === a ? g.errors : a.concat(g.errors)), (o = a.length)),
|
|
1455
|
+
(c = i === o),
|
|
1456
|
+
(l = l || c);
|
|
1457
|
+
}
|
|
1458
|
+
if (!l) {
|
|
1459
|
+
const t = { params: {} };
|
|
1460
|
+
return null === a ? (a = [t]) : a.push(t), o++, (d.errors = a), !1;
|
|
1461
|
+
}
|
|
1462
|
+
return ((o = i),
|
|
1463
|
+
null !== a && (i ? (a.length = i) : (a = null)),
|
|
1464
|
+
(d.errors = a),
|
|
1465
|
+
0 === o);
|
|
1466
|
+
}
|
|
1467
|
+
function D(n, { instancePath: s = '', parentData: a, parentDataProperty: i, rootData: l = n, } = {}) {
|
|
1468
|
+
let f = null, c = 0;
|
|
1469
|
+
if (0 === c) {
|
|
1470
|
+
if (!n || 'object' != typeof n || Array.isArray(n))
|
|
1471
|
+
return (D.errors = [{ params: { type: 'object' } }]), !1;
|
|
1472
|
+
{
|
|
1473
|
+
const a = c;
|
|
1474
|
+
for (const t in n)
|
|
1475
|
+
if (!r.call(e.properties, t))
|
|
1476
|
+
return (D.errors = [{ params: { additionalProperty: t } }]), !1;
|
|
1477
|
+
if (a === c) {
|
|
1478
|
+
if (void 0 !== n.exposes) {
|
|
1479
|
+
const t = c;
|
|
1480
|
+
o(n.exposes, {
|
|
1481
|
+
instancePath: s + '/exposes',
|
|
1482
|
+
parentData: n,
|
|
1483
|
+
parentDataProperty: 'exposes',
|
|
1484
|
+
rootData: l,
|
|
1485
|
+
}) ||
|
|
1486
|
+
((f = null === f ? o.errors : f.concat(o.errors)), (c = f.length));
|
|
1487
|
+
var m = t === c;
|
|
1488
|
+
}
|
|
1489
|
+
else
|
|
1490
|
+
m = !0;
|
|
1491
|
+
if (m) {
|
|
1492
|
+
if (void 0 !== n.filename) {
|
|
1493
|
+
let e = n.filename;
|
|
1494
|
+
const r = c;
|
|
1495
|
+
if (c === r) {
|
|
1496
|
+
if ('string' != typeof e)
|
|
1497
|
+
return (D.errors = [{ params: { type: 'string' } }]), !1;
|
|
1498
|
+
if (e.includes('!') || !1 !== t.test(e))
|
|
1499
|
+
return (D.errors = [{ params: {} }]), !1;
|
|
1500
|
+
}
|
|
1501
|
+
m = r === c;
|
|
1502
|
+
}
|
|
1503
|
+
else
|
|
1504
|
+
m = !0;
|
|
1505
|
+
if (m) {
|
|
1506
|
+
if (void 0 !== n.library) {
|
|
1507
|
+
const t = c;
|
|
1508
|
+
p(n.library, {
|
|
1509
|
+
instancePath: s + '/library',
|
|
1510
|
+
parentData: n,
|
|
1511
|
+
parentDataProperty: 'library',
|
|
1512
|
+
rootData: l,
|
|
1513
|
+
}) ||
|
|
1514
|
+
((f = null === f ? p.errors : f.concat(p.errors)),
|
|
1515
|
+
(c = f.length)),
|
|
1516
|
+
(m = t === c);
|
|
1517
|
+
}
|
|
1518
|
+
else
|
|
1519
|
+
m = !0;
|
|
1520
|
+
if (m) {
|
|
1521
|
+
if (void 0 !== n.name) {
|
|
1522
|
+
const t = c;
|
|
1523
|
+
if ('string' != typeof n.name)
|
|
1524
|
+
return (D.errors = [{ params: { type: 'string' } }]), !1;
|
|
1525
|
+
m = t === c;
|
|
1526
|
+
}
|
|
1527
|
+
else
|
|
1528
|
+
m = !0;
|
|
1529
|
+
if (m) {
|
|
1530
|
+
if (void 0 !== n.remoteType) {
|
|
1531
|
+
let t = n.remoteType;
|
|
1532
|
+
const e = c, r = c;
|
|
1533
|
+
let s = !1, a = null;
|
|
1534
|
+
const o = c;
|
|
1535
|
+
if ('var' !== t &&
|
|
1536
|
+
'module' !== t &&
|
|
1537
|
+
'assign' !== t &&
|
|
1538
|
+
'this' !== t &&
|
|
1539
|
+
'window' !== t &&
|
|
1540
|
+
'self' !== t &&
|
|
1541
|
+
'global' !== t &&
|
|
1542
|
+
'commonjs' !== t &&
|
|
1543
|
+
'commonjs2' !== t &&
|
|
1544
|
+
'commonjs-module' !== t &&
|
|
1545
|
+
'commonjs-static' !== t &&
|
|
1546
|
+
'amd' !== t &&
|
|
1547
|
+
'amd-require' !== t &&
|
|
1548
|
+
'umd' !== t &&
|
|
1549
|
+
'umd2' !== t &&
|
|
1550
|
+
'jsonp' !== t &&
|
|
1551
|
+
'system' !== t &&
|
|
1552
|
+
'promise' !== t &&
|
|
1553
|
+
'import' !== t &&
|
|
1554
|
+
'script' !== t &&
|
|
1555
|
+
'node-commonjs' !== t) {
|
|
1556
|
+
const t = { params: {} };
|
|
1557
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
1558
|
+
}
|
|
1559
|
+
if ((o === c && ((s = !0), (a = 0)), !s)) {
|
|
1560
|
+
const t = { params: { passingSchemas: a } };
|
|
1561
|
+
return (null === f ? (f = [t]) : f.push(t),
|
|
1562
|
+
c++,
|
|
1563
|
+
(D.errors = f),
|
|
1564
|
+
!1);
|
|
1565
|
+
}
|
|
1566
|
+
(c = r),
|
|
1567
|
+
null !== f && (r ? (f.length = r) : (f = null)),
|
|
1568
|
+
(m = e === c);
|
|
1569
|
+
}
|
|
1570
|
+
else
|
|
1571
|
+
m = !0;
|
|
1572
|
+
if (m) {
|
|
1573
|
+
if (void 0 !== n.remotes) {
|
|
1574
|
+
const t = c;
|
|
1575
|
+
u(n.remotes, {
|
|
1576
|
+
instancePath: s + '/remotes',
|
|
1577
|
+
parentData: n,
|
|
1578
|
+
parentDataProperty: 'remotes',
|
|
1579
|
+
rootData: l,
|
|
1580
|
+
}) ||
|
|
1581
|
+
((f = null === f ? u.errors : f.concat(u.errors)),
|
|
1582
|
+
(c = f.length)),
|
|
1583
|
+
(m = t === c);
|
|
1584
|
+
}
|
|
1585
|
+
else
|
|
1586
|
+
m = !0;
|
|
1587
|
+
if (m) {
|
|
1588
|
+
if (void 0 !== n.runtime) {
|
|
1589
|
+
let t = n.runtime;
|
|
1590
|
+
const e = c, r = c;
|
|
1591
|
+
let s = !1;
|
|
1592
|
+
const a = c;
|
|
1593
|
+
if (!1 !== t) {
|
|
1594
|
+
const t = { params: {} };
|
|
1595
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
1596
|
+
}
|
|
1597
|
+
var y = a === c;
|
|
1598
|
+
if (((s = s || y), !s)) {
|
|
1599
|
+
const e = c;
|
|
1600
|
+
if (c === e)
|
|
1601
|
+
if ('string' == typeof t) {
|
|
1602
|
+
if (t.length < 1) {
|
|
1603
|
+
const t = { params: {} };
|
|
1604
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
else {
|
|
1608
|
+
const t = { params: { type: 'string' } };
|
|
1609
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
1610
|
+
}
|
|
1611
|
+
(y = e === c), (s = s || y);
|
|
1612
|
+
}
|
|
1613
|
+
if (!s) {
|
|
1614
|
+
const t = { params: {} };
|
|
1615
|
+
return (null === f ? (f = [t]) : f.push(t),
|
|
1616
|
+
c++,
|
|
1617
|
+
(D.errors = f),
|
|
1618
|
+
!1);
|
|
1619
|
+
}
|
|
1620
|
+
(c = r),
|
|
1621
|
+
null !== f && (r ? (f.length = r) : (f = null)),
|
|
1622
|
+
(m = e === c);
|
|
1623
|
+
}
|
|
1624
|
+
else
|
|
1625
|
+
m = !0;
|
|
1626
|
+
if (m) {
|
|
1627
|
+
if (void 0 !== n.shareScope) {
|
|
1628
|
+
let t = n.shareScope;
|
|
1629
|
+
const e = c;
|
|
1630
|
+
if (c === e) {
|
|
1631
|
+
if ('string' != typeof t)
|
|
1632
|
+
return ((D.errors = [{ params: { type: 'string' } }]), !1);
|
|
1633
|
+
if (t.length < 1)
|
|
1634
|
+
return (D.errors = [{ params: {} }]), !1;
|
|
1635
|
+
}
|
|
1636
|
+
m = e === c;
|
|
1637
|
+
}
|
|
1638
|
+
else
|
|
1639
|
+
m = !0;
|
|
1640
|
+
if (m)
|
|
1641
|
+
if (void 0 !== n.shared) {
|
|
1642
|
+
const t = c;
|
|
1643
|
+
d(n.shared, {
|
|
1644
|
+
instancePath: s + '/shared',
|
|
1645
|
+
parentData: n,
|
|
1646
|
+
parentDataProperty: 'shared',
|
|
1647
|
+
rootData: l,
|
|
1648
|
+
}) ||
|
|
1649
|
+
((f = null === f ? d.errors : f.concat(d.errors)),
|
|
1650
|
+
(c = f.length)),
|
|
1651
|
+
(m = t === c);
|
|
1652
|
+
}
|
|
1653
|
+
else
|
|
1654
|
+
m = !0;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
return (D.errors = f), 0 === c;
|
|
1666
|
+
}
|
|
1667
|
+
exports.default = D;
|
|
1668
|
+
//# sourceMappingURL=ModuleFederationPlugin.check.js.map
|