@module-federation/enhanced 0.1.0 → 0.1.1

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