@module-federation/enhanced 2.0.1 → 2.2.0

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