@angular/compiler-cli 19.0.0-next.1 → 19.0.0-next.11

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 (362) hide show
  1. package/bundles/{chunk-QJ5A7O7J.js → chunk-2KSGTNY4.js} +367 -186
  2. package/bundles/chunk-2KSGTNY4.js.map +6 -0
  3. package/bundles/{chunk-WR7TUJ7M.js → chunk-3Z25BX6N.js} +8 -8
  4. package/bundles/{chunk-VNKFV2MZ.js → chunk-GVXGZHIM.js} +534 -254
  5. package/bundles/chunk-GVXGZHIM.js.map +6 -0
  6. package/bundles/{chunk-UWZBW4E4.js → chunk-I7ZLTQZI.js} +7 -7
  7. package/bundles/chunk-I7ZLTQZI.js.map +6 -0
  8. package/bundles/{chunk-CNPXFKGI.js → chunk-KGEMNMTH.js} +4 -4
  9. package/bundles/{chunk-5DVL3S3Z.js → chunk-O2RMLJTP.js} +79 -52
  10. package/bundles/chunk-O2RMLJTP.js.map +6 -0
  11. package/bundles/{chunk-SBDNBITT.js → chunk-RT2QTF73.js} +4 -4
  12. package/bundles/{chunk-DK2K5DIA.js → chunk-TFIXU576.js} +13 -13
  13. package/bundles/{chunk-DK2K5DIA.js.map → chunk-TFIXU576.js.map} +1 -1
  14. package/bundles/{chunk-XNL3EK5H.js → chunk-UJ2J6WV4.js} +43 -9
  15. package/bundles/{chunk-XNL3EK5H.js.map → chunk-UJ2J6WV4.js.map} +3 -3
  16. package/bundles/{chunk-B4ZOGV3N.js → chunk-WIYBGC3E.js} +55 -48
  17. package/bundles/chunk-WIYBGC3E.js.map +6 -0
  18. package/bundles/{chunk-THQF5ZZE.js → chunk-XSNUHRLJ.js} +6 -6
  19. package/bundles/index.js +15 -13
  20. package/bundles/index.js.map +1 -1
  21. package/bundles/linker/babel/index.js +14 -14
  22. package/bundles/linker/babel/index.js.map +1 -1
  23. package/bundles/linker/index.js +4 -4
  24. package/bundles/ngcc/index.js +2 -2
  25. package/bundles/private/bazel.js +2 -2
  26. package/bundles/private/localize.js +6 -4
  27. package/bundles/private/migrations.js +5 -5
  28. package/bundles/private/tooling.js +6 -6
  29. package/bundles/src/bin/ng_xi18n.js +11 -11
  30. package/bundles/src/bin/ngc.js +9 -9
  31. package/bundles_metadata.json +1 -1
  32. package/linker/babel/index.d.ts +1 -1
  33. package/linker/babel/src/ast/babel_ast_factory.d.ts +3 -3
  34. package/linker/babel/src/ast/babel_ast_host.d.ts +1 -1
  35. package/linker/babel/src/babel_declaration_scope.d.ts +1 -1
  36. package/linker/babel/src/babel_plugin.d.ts +1 -1
  37. package/linker/babel/src/es2015_linker_plugin.d.ts +1 -1
  38. package/linker/babel/src/linker_plugin_options.d.ts +1 -1
  39. package/linker/index.d.ts +1 -1
  40. package/linker/src/ast/ast_host.d.ts +1 -1
  41. package/linker/src/ast/ast_value.d.ts +1 -1
  42. package/linker/src/ast/typescript/typescript_ast_host.d.ts +1 -1
  43. package/linker/src/fatal_linker_error.d.ts +1 -1
  44. package/linker/src/file_linker/declaration_scope.d.ts +1 -1
  45. package/linker/src/file_linker/emit_scopes/emit_scope.d.ts +1 -1
  46. package/linker/src/file_linker/emit_scopes/local_emit_scope.d.ts +1 -1
  47. package/linker/src/file_linker/get_source_file.d.ts +1 -1
  48. package/linker/src/file_linker/linker_environment.d.ts +1 -1
  49. package/linker/src/file_linker/linker_options.d.ts +1 -1
  50. package/linker/src/file_linker/needs_linking.d.ts +1 -1
  51. package/linker/src/file_linker/partial_linkers/partial_class_metadata_async_linker_1.d.ts +1 -1
  52. package/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.d.ts +1 -1
  53. package/linker/src/file_linker/partial_linkers/partial_component_linker_1.d.ts +1 -1
  54. package/linker/src/file_linker/partial_linkers/partial_directive_linker_1.d.ts +3 -3
  55. package/linker/src/file_linker/partial_linkers/partial_factory_linker_1.d.ts +1 -1
  56. package/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.d.ts +1 -1
  57. package/linker/src/file_linker/partial_linkers/partial_injector_linker_1.d.ts +1 -1
  58. package/linker/src/file_linker/partial_linkers/partial_linker.d.ts +1 -1
  59. package/linker/src/file_linker/partial_linkers/partial_linker_selector.d.ts +1 -1
  60. package/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.d.ts +1 -1
  61. package/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.d.ts +3 -3
  62. package/linker/src/file_linker/partial_linkers/util.d.ts +3 -2
  63. package/linker/src/file_linker/translator.d.ts +1 -1
  64. package/linker/src/linker_import_generator.d.ts +1 -1
  65. package/ngcc/index.d.ts +1 -1
  66. package/package.json +4 -4
  67. package/private/babel.d.ts +1 -1
  68. package/private/bazel.d.ts +1 -1
  69. package/private/localize.d.ts +1 -1
  70. package/private/migrations.d.ts +2 -1
  71. package/private/tooling.d.ts +1 -1
  72. package/src/bin/ng_xi18n.d.ts +1 -1
  73. package/src/bin/ngc.d.ts +1 -1
  74. package/src/extract_i18n.d.ts +1 -1
  75. package/src/main.d.ts +1 -1
  76. package/src/ngtsc/annotations/common/index.d.ts +1 -1
  77. package/src/ngtsc/annotations/common/src/api.d.ts +15 -1
  78. package/src/ngtsc/annotations/common/src/debug_info.d.ts +3 -2
  79. package/src/ngtsc/annotations/common/src/di.d.ts +1 -1
  80. package/src/ngtsc/annotations/common/src/diagnostics.d.ts +1 -1
  81. package/src/ngtsc/annotations/common/src/evaluation.d.ts +1 -1
  82. package/src/ngtsc/annotations/common/src/factory.d.ts +1 -1
  83. package/src/ngtsc/annotations/common/src/injectable_registry.d.ts +1 -1
  84. package/src/ngtsc/annotations/common/src/input_transforms.d.ts +1 -1
  85. package/src/ngtsc/annotations/common/src/jit_declaration_registry.d.ts +1 -1
  86. package/src/ngtsc/annotations/common/src/metadata.d.ts +1 -1
  87. package/src/ngtsc/annotations/common/src/references_registry.d.ts +1 -1
  88. package/src/ngtsc/annotations/common/src/schema.d.ts +1 -1
  89. package/src/ngtsc/annotations/common/src/standalone-default-value.d.ts +12 -0
  90. package/src/ngtsc/annotations/common/src/util.d.ts +2 -2
  91. package/src/ngtsc/annotations/component/index.d.ts +1 -1
  92. package/src/ngtsc/annotations/component/src/diagnostics.d.ts +1 -1
  93. package/src/ngtsc/annotations/component/src/handler.d.ts +11 -4
  94. package/src/ngtsc/annotations/component/src/metadata.d.ts +1 -1
  95. package/src/ngtsc/annotations/component/src/resources.d.ts +5 -4
  96. package/src/ngtsc/annotations/component/src/symbol.d.ts +1 -1
  97. package/src/ngtsc/annotations/component/src/util.d.ts +1 -1
  98. package/src/ngtsc/annotations/directive/index.d.ts +1 -1
  99. package/src/ngtsc/annotations/directive/src/handler.d.ts +3 -2
  100. package/src/ngtsc/annotations/directive/src/initializer_function_access.d.ts +1 -1
  101. package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +1 -1
  102. package/src/ngtsc/annotations/directive/src/input_function.d.ts +1 -1
  103. package/src/ngtsc/annotations/directive/src/input_output_parse_options.d.ts +1 -1
  104. package/src/ngtsc/annotations/directive/src/model_function.d.ts +1 -1
  105. package/src/ngtsc/annotations/directive/src/output_function.d.ts +1 -1
  106. package/src/ngtsc/annotations/directive/src/query_functions.d.ts +1 -1
  107. package/src/ngtsc/annotations/directive/src/shared.d.ts +2 -2
  108. package/src/ngtsc/annotations/directive/src/symbol.d.ts +1 -1
  109. package/src/ngtsc/annotations/index.d.ts +1 -1
  110. package/src/ngtsc/annotations/ng_module/index.d.ts +1 -1
  111. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +1 -1
  112. package/src/ngtsc/annotations/ng_module/src/module_with_providers.d.ts +1 -1
  113. package/src/ngtsc/annotations/src/injectable.d.ts +1 -1
  114. package/src/ngtsc/annotations/src/pipe.d.ts +3 -2
  115. package/src/ngtsc/core/api/index.d.ts +1 -1
  116. package/src/ngtsc/core/api/src/adapter.d.ts +1 -1
  117. package/src/ngtsc/core/api/src/interfaces.d.ts +15 -1
  118. package/src/ngtsc/core/api/src/options.d.ts +1 -1
  119. package/src/ngtsc/core/api/src/public_options.d.ts +12 -1
  120. package/src/ngtsc/core/index.d.ts +1 -1
  121. package/src/ngtsc/core/src/compiler.d.ts +13 -2
  122. package/src/ngtsc/core/src/core_version.d.ts +1 -1
  123. package/src/ngtsc/core/src/feature_detection.d.ts +1 -1
  124. package/src/ngtsc/core/src/host.d.ts +1 -1
  125. package/src/ngtsc/cycles/index.d.ts +1 -1
  126. package/src/ngtsc/cycles/src/analyzer.d.ts +1 -1
  127. package/src/ngtsc/cycles/src/imports.d.ts +1 -1
  128. package/src/ngtsc/diagnostics/index.d.ts +1 -1
  129. package/src/ngtsc/diagnostics/src/docs.d.ts +1 -1
  130. package/src/ngtsc/diagnostics/src/error.d.ts +2 -2
  131. package/src/ngtsc/diagnostics/src/error_code.d.ts +9 -1
  132. package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +1 -1
  133. package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +3 -2
  134. package/src/ngtsc/diagnostics/src/util.d.ts +1 -1
  135. package/src/ngtsc/docs/index.d.ts +1 -1
  136. package/src/ngtsc/docs/src/class_extractor.d.ts +1 -1
  137. package/src/ngtsc/docs/src/constant_extractor.d.ts +1 -1
  138. package/src/ngtsc/docs/src/decorator_extractor.d.ts +1 -1
  139. package/src/ngtsc/docs/src/entities.d.ts +10 -1
  140. package/src/ngtsc/docs/src/enum_extractor.d.ts +1 -1
  141. package/src/ngtsc/docs/src/extractor.d.ts +5 -2
  142. package/src/ngtsc/docs/src/filters.d.ts +1 -1
  143. package/src/ngtsc/docs/src/function_extractor.d.ts +1 -1
  144. package/src/ngtsc/docs/src/generics_extractor.d.ts +1 -1
  145. package/src/ngtsc/docs/src/import_extractor.d.ts +14 -0
  146. package/src/ngtsc/docs/src/initializer_api_function_extractor.d.ts +1 -1
  147. package/src/ngtsc/docs/src/internal.d.ts +1 -1
  148. package/src/ngtsc/docs/src/jsdoc_extractor.d.ts +1 -1
  149. package/src/ngtsc/docs/src/type_alias_extractor.d.ts +1 -1
  150. package/src/ngtsc/docs/src/type_extractor.d.ts +1 -1
  151. package/src/ngtsc/entry_point/index.d.ts +1 -1
  152. package/src/ngtsc/entry_point/src/generator.d.ts +1 -1
  153. package/src/ngtsc/entry_point/src/logic.d.ts +1 -1
  154. package/src/ngtsc/entry_point/src/private_export_checker.d.ts +1 -1
  155. package/src/ngtsc/entry_point/src/reference_graph.d.ts +1 -1
  156. package/src/ngtsc/file_system/index.d.ts +2 -1
  157. package/src/ngtsc/file_system/src/compiler_host.d.ts +1 -1
  158. package/src/ngtsc/file_system/src/invalid_file_system.d.ts +1 -1
  159. package/src/ngtsc/file_system/src/logical.d.ts +1 -1
  160. package/src/ngtsc/file_system/src/ts_read_directory.d.ts +21 -0
  161. package/src/ngtsc/file_system/src/types.d.ts +1 -1
  162. package/src/ngtsc/file_system/src/util.d.ts +1 -1
  163. package/src/ngtsc/hmr/index.d.ts +9 -0
  164. package/src/ngtsc/hmr/src/extract_locals.d.ts +20 -0
  165. package/src/ngtsc/hmr/src/metadata.d.ts +23 -0
  166. package/src/ngtsc/hmr/src/update_declaration.d.ts +17 -0
  167. package/src/ngtsc/imports/index.d.ts +1 -1
  168. package/src/ngtsc/imports/src/alias.d.ts +1 -1
  169. package/src/ngtsc/imports/src/core.d.ts +7 -1
  170. package/src/ngtsc/imports/src/default.d.ts +1 -1
  171. package/src/ngtsc/imports/src/deferred_symbol_tracker.d.ts +1 -1
  172. package/src/ngtsc/imports/src/emitter.d.ts +1 -1
  173. package/src/ngtsc/imports/src/find_export.d.ts +1 -1
  174. package/src/ngtsc/imports/src/imported_symbols_tracker.d.ts +1 -1
  175. package/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.d.ts +1 -1
  176. package/src/ngtsc/imports/src/patch_alias_reference_resolution.d.ts +1 -1
  177. package/src/ngtsc/imports/src/reexport.d.ts +1 -1
  178. package/src/ngtsc/imports/src/references.d.ts +1 -1
  179. package/src/ngtsc/imports/src/resolver.d.ts +1 -1
  180. package/src/ngtsc/incremental/api.d.ts +1 -1
  181. package/src/ngtsc/incremental/index.d.ts +1 -1
  182. package/src/ngtsc/incremental/semantic_graph/index.d.ts +1 -1
  183. package/src/ngtsc/incremental/semantic_graph/src/graph.d.ts +1 -1
  184. package/src/ngtsc/incremental/semantic_graph/src/util.d.ts +1 -1
  185. package/src/ngtsc/incremental/src/dependency_tracking.d.ts +1 -1
  186. package/src/ngtsc/incremental/src/incremental.d.ts +1 -1
  187. package/src/ngtsc/incremental/src/noop.d.ts +1 -1
  188. package/src/ngtsc/incremental/src/state.d.ts +1 -1
  189. package/src/ngtsc/incremental/src/strategy.d.ts +1 -1
  190. package/src/ngtsc/indexer/index.d.ts +1 -1
  191. package/src/ngtsc/indexer/src/api.d.ts +1 -1
  192. package/src/ngtsc/indexer/src/context.d.ts +1 -1
  193. package/src/ngtsc/indexer/src/template.d.ts +1 -1
  194. package/src/ngtsc/indexer/src/transform.d.ts +1 -1
  195. package/src/ngtsc/logging/index.d.ts +1 -1
  196. package/src/ngtsc/logging/src/console_logger.d.ts +1 -1
  197. package/src/ngtsc/logging/src/logger.d.ts +1 -1
  198. package/src/ngtsc/metadata/index.d.ts +1 -1
  199. package/src/ngtsc/metadata/src/api.d.ts +5 -1
  200. package/src/ngtsc/metadata/src/dts.d.ts +1 -1
  201. package/src/ngtsc/metadata/src/host_directives_resolver.d.ts +1 -1
  202. package/src/ngtsc/metadata/src/inheritance.d.ts +1 -1
  203. package/src/ngtsc/metadata/src/ng_module_index.d.ts +1 -1
  204. package/src/ngtsc/metadata/src/property_mapping.d.ts +1 -1
  205. package/src/ngtsc/metadata/src/providers.d.ts +1 -1
  206. package/src/ngtsc/metadata/src/registry.d.ts +1 -1
  207. package/src/ngtsc/metadata/src/resource_registry.d.ts +1 -1
  208. package/src/ngtsc/metadata/src/util.d.ts +1 -1
  209. package/src/ngtsc/partial_evaluator/index.d.ts +1 -1
  210. package/src/ngtsc/partial_evaluator/src/builtin.d.ts +1 -1
  211. package/src/ngtsc/partial_evaluator/src/diagnostics.d.ts +1 -1
  212. package/src/ngtsc/partial_evaluator/src/dynamic.d.ts +1 -1
  213. package/src/ngtsc/partial_evaluator/src/interface.d.ts +1 -1
  214. package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +1 -1
  215. package/src/ngtsc/partial_evaluator/src/result.d.ts +1 -1
  216. package/src/ngtsc/partial_evaluator/src/synthetic.d.ts +1 -1
  217. package/src/ngtsc/perf/index.d.ts +1 -1
  218. package/src/ngtsc/perf/src/api.d.ts +1 -1
  219. package/src/ngtsc/perf/src/clock.d.ts +1 -1
  220. package/src/ngtsc/perf/src/noop.d.ts +1 -1
  221. package/src/ngtsc/perf/src/recorder.d.ts +1 -1
  222. package/src/ngtsc/program.d.ts +5 -2
  223. package/src/ngtsc/program_driver/index.d.ts +1 -1
  224. package/src/ngtsc/program_driver/src/api.d.ts +1 -1
  225. package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +1 -1
  226. package/src/ngtsc/reflection/index.d.ts +1 -1
  227. package/src/ngtsc/reflection/src/host.d.ts +1 -1
  228. package/src/ngtsc/reflection/src/type_to_value.d.ts +1 -1
  229. package/src/ngtsc/reflection/src/typescript.d.ts +1 -1
  230. package/src/ngtsc/reflection/src/util.d.ts +1 -1
  231. package/src/ngtsc/resource/index.d.ts +1 -1
  232. package/src/ngtsc/resource/src/loader.d.ts +1 -1
  233. package/src/ngtsc/scope/index.d.ts +1 -1
  234. package/src/ngtsc/scope/src/api.d.ts +1 -1
  235. package/src/ngtsc/scope/src/component_scope.d.ts +1 -1
  236. package/src/ngtsc/scope/src/dependency.d.ts +1 -1
  237. package/src/ngtsc/scope/src/local.d.ts +1 -1
  238. package/src/ngtsc/scope/src/standalone.d.ts +1 -1
  239. package/src/ngtsc/scope/src/typecheck.d.ts +1 -1
  240. package/src/ngtsc/scope/src/util.d.ts +1 -1
  241. package/src/ngtsc/shims/api.d.ts +1 -1
  242. package/src/ngtsc/shims/index.d.ts +1 -1
  243. package/src/ngtsc/shims/src/adapter.d.ts +1 -1
  244. package/src/ngtsc/shims/src/expando.d.ts +1 -1
  245. package/src/ngtsc/shims/src/reference_tagger.d.ts +1 -1
  246. package/src/ngtsc/shims/src/util.d.ts +1 -1
  247. package/src/ngtsc/sourcemaps/index.d.ts +1 -1
  248. package/src/ngtsc/sourcemaps/src/content_origin.d.ts +1 -1
  249. package/src/ngtsc/sourcemaps/src/raw_source_map.d.ts +1 -1
  250. package/src/ngtsc/sourcemaps/src/segment_marker.d.ts +1 -1
  251. package/src/ngtsc/transform/index.d.ts +1 -1
  252. package/src/ngtsc/transform/jit/index.d.ts +1 -1
  253. package/src/ngtsc/transform/jit/src/downlevel_decorators_transform.d.ts +1 -1
  254. package/src/ngtsc/transform/jit/src/index.d.ts +1 -1
  255. package/src/ngtsc/transform/jit/src/initializer_api_transforms/input_function.d.ts +1 -1
  256. package/src/ngtsc/transform/jit/src/initializer_api_transforms/model_function.d.ts +1 -1
  257. package/src/ngtsc/transform/jit/src/initializer_api_transforms/output_function.d.ts +1 -1
  258. package/src/ngtsc/transform/jit/src/initializer_api_transforms/query_functions.d.ts +1 -1
  259. package/src/ngtsc/transform/jit/src/initializer_api_transforms/transform.d.ts +1 -1
  260. package/src/ngtsc/transform/jit/src/initializer_api_transforms/transform_api.d.ts +1 -1
  261. package/src/ngtsc/transform/src/alias.d.ts +1 -1
  262. package/src/ngtsc/transform/src/api.d.ts +5 -1
  263. package/src/ngtsc/transform/src/compilation.d.ts +2 -1
  264. package/src/ngtsc/transform/src/declaration.d.ts +1 -1
  265. package/src/ngtsc/transform/src/trait.d.ts +1 -1
  266. package/src/ngtsc/transform/src/transform.d.ts +1 -1
  267. package/src/ngtsc/translator/index.d.ts +1 -1
  268. package/src/ngtsc/translator/src/api/ast_factory.d.ts +3 -3
  269. package/src/ngtsc/translator/src/api/import_generator.d.ts +1 -1
  270. package/src/ngtsc/translator/src/context.d.ts +1 -1
  271. package/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.d.ts +1 -1
  272. package/src/ngtsc/translator/src/import_manager/import_manager.d.ts +1 -1
  273. package/src/ngtsc/translator/src/import_manager/import_typescript_transform.d.ts +1 -1
  274. package/src/ngtsc/translator/src/import_manager/reuse_generated_imports.d.ts +1 -1
  275. package/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.d.ts +1 -1
  276. package/src/ngtsc/translator/src/translator.d.ts +1 -1
  277. package/src/ngtsc/translator/src/ts_util.d.ts +1 -1
  278. package/src/ngtsc/translator/src/type_emitter.d.ts +1 -1
  279. package/src/ngtsc/translator/src/type_translator.d.ts +1 -1
  280. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +3 -3
  281. package/src/ngtsc/translator/src/typescript_translator.d.ts +1 -1
  282. package/src/ngtsc/tsc_plugin.d.ts +1 -1
  283. package/src/ngtsc/typecheck/api/api.d.ts +7 -1
  284. package/src/ngtsc/typecheck/api/checker.d.ts +2 -2
  285. package/src/ngtsc/typecheck/api/completion.d.ts +1 -1
  286. package/src/ngtsc/typecheck/api/context.d.ts +1 -1
  287. package/src/ngtsc/typecheck/api/index.d.ts +1 -1
  288. package/src/ngtsc/typecheck/api/scope.d.ts +1 -1
  289. package/src/ngtsc/typecheck/api/symbols.d.ts +1 -1
  290. package/src/ngtsc/typecheck/diagnostics/index.d.ts +1 -1
  291. package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +1 -1
  292. package/src/ngtsc/typecheck/diagnostics/src/id.d.ts +1 -1
  293. package/src/ngtsc/typecheck/extended/api/api.d.ts +1 -1
  294. package/src/ngtsc/typecheck/extended/api/extended_template_checker.d.ts +1 -1
  295. package/src/ngtsc/typecheck/extended/api/index.d.ts +1 -1
  296. package/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.d.ts +1 -1
  297. package/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.d.ts +1 -1
  298. package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +1 -1
  299. package/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.d.ts +1 -1
  300. package/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.d.ts +1 -1
  301. package/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.d.ts +1 -1
  302. package/src/ngtsc/typecheck/extended/checks/skip_hydration_not_static/index.d.ts +1 -1
  303. package/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.d.ts +1 -1
  304. package/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.d.ts +1 -1
  305. package/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.d.ts +1 -1
  306. package/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.d.ts +1 -1
  307. package/src/ngtsc/typecheck/extended/index.d.ts +1 -1
  308. package/src/ngtsc/typecheck/extended/src/extended_template_checker.d.ts +1 -1
  309. package/src/ngtsc/typecheck/index.d.ts +1 -1
  310. package/src/ngtsc/typecheck/src/checker.d.ts +2 -2
  311. package/src/ngtsc/typecheck/src/comments.d.ts +1 -1
  312. package/src/ngtsc/typecheck/src/completion.d.ts +1 -1
  313. package/src/ngtsc/typecheck/src/context.d.ts +1 -1
  314. package/src/ngtsc/typecheck/src/diagnostics.d.ts +1 -1
  315. package/src/ngtsc/typecheck/src/dom.d.ts +1 -1
  316. package/src/ngtsc/typecheck/src/environment.d.ts +1 -1
  317. package/src/ngtsc/typecheck/src/expression.d.ts +1 -1
  318. package/src/ngtsc/typecheck/src/line_mappings.d.ts +1 -1
  319. package/src/ngtsc/typecheck/src/oob.d.ts +1 -1
  320. package/src/ngtsc/typecheck/src/reference_emit_environment.d.ts +1 -1
  321. package/src/ngtsc/typecheck/src/shim.d.ts +1 -1
  322. package/src/ngtsc/typecheck/src/source.d.ts +1 -1
  323. package/src/ngtsc/typecheck/src/symbol_util.d.ts +1 -1
  324. package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
  325. package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +1 -1
  326. package/src/ngtsc/typecheck/src/ts_util.d.ts +1 -1
  327. package/src/ngtsc/typecheck/src/type_check_block.d.ts +1 -1
  328. package/src/ngtsc/typecheck/src/type_check_file.d.ts +1 -1
  329. package/src/ngtsc/typecheck/src/type_constructor.d.ts +1 -1
  330. package/src/ngtsc/typecheck/src/type_parameter_emitter.d.ts +1 -1
  331. package/src/ngtsc/typecheck/template_semantics/api/api.d.ts +1 -1
  332. package/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.d.ts +1 -1
  333. package/src/ngtsc/util/src/path.d.ts +9 -0
  334. package/src/ngtsc/util/src/typescript.d.ts +1 -1
  335. package/src/ngtsc/util/src/visitor.d.ts +1 -1
  336. package/src/ngtsc/validation/index.d.ts +1 -1
  337. package/src/ngtsc/validation/src/config.d.ts +12 -0
  338. package/src/ngtsc/validation/src/rules/api.d.ts +1 -1
  339. package/src/ngtsc/validation/src/rules/initializer_api_usage_rule.d.ts +1 -1
  340. package/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.d.ts +29 -0
  341. package/src/ngtsc/validation/src/source_file_validator.d.ts +3 -2
  342. package/src/ngtsc/xi18n/index.d.ts +1 -1
  343. package/src/ngtsc/xi18n/src/context.d.ts +1 -1
  344. package/src/perform_compile.d.ts +2 -2
  345. package/src/perform_watch.d.ts +1 -1
  346. package/src/transformers/api.d.ts +1 -1
  347. package/src/transformers/compiler_host.d.ts +1 -1
  348. package/src/transformers/entry_points.d.ts +1 -1
  349. package/src/transformers/i18n.d.ts +1 -1
  350. package/src/transformers/program.d.ts +1 -1
  351. package/src/transformers/util.d.ts +1 -1
  352. package/src/version.d.ts +1 -1
  353. package/src/version_helpers.d.ts +1 -1
  354. package/bundles/chunk-5DVL3S3Z.js.map +0 -6
  355. package/bundles/chunk-B4ZOGV3N.js.map +0 -6
  356. package/bundles/chunk-QJ5A7O7J.js.map +0 -6
  357. package/bundles/chunk-UWZBW4E4.js.map +0 -6
  358. package/bundles/chunk-VNKFV2MZ.js.map +0 -6
  359. /package/bundles/{chunk-WR7TUJ7M.js.map → chunk-3Z25BX6N.js.map} +0 -0
  360. /package/bundles/{chunk-CNPXFKGI.js.map → chunk-KGEMNMTH.js.map} +0 -0
  361. /package/bundles/{chunk-SBDNBITT.js.map → chunk-RT2QTF73.js.map} +0 -0
  362. /package/bundles/{chunk-THQF5ZZE.js.map → chunk-XSNUHRLJ.js.map} +0 -0
@@ -20,6 +20,7 @@ import {
20
20
  entityNameToValue,
21
21
  filterToMembersWithDecorator,
22
22
  getDefaultImportDeclaration,
23
+ getProjectRelativePath,
23
24
  getSourceFile,
24
25
  getSourceFileOrNull,
25
26
  getTokenAtPosition,
@@ -45,20 +46,20 @@ import {
45
46
  translateStatement,
46
47
  translateType,
47
48
  typeNodeToValueExpr
48
- } from "./chunk-5DVL3S3Z.js";
49
+ } from "./chunk-O2RMLJTP.js";
49
50
  import {
50
51
  PerfCheckpoint,
51
52
  PerfEvent,
52
53
  PerfPhase
53
- } from "./chunk-THQF5ZZE.js";
54
+ } from "./chunk-XSNUHRLJ.js";
54
55
  import {
55
56
  absoluteFrom,
56
57
  absoluteFromSourceFile,
57
58
  getSourceFileOrError,
58
59
  relative
59
- } from "./chunk-XNL3EK5H.js";
60
+ } from "./chunk-UJ2J6WV4.js";
60
61
 
61
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
62
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
62
63
  import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
63
64
  import ts from "typescript";
64
65
  var CORE_MODULE = "@angular/core";
@@ -263,7 +264,7 @@ function createSourceSpan(node) {
263
264
  const parseSf = new ParseSourceFile(sf.getFullText(), sf.fileName);
264
265
  return new ParseSourceSpan(new ParseLocation(parseSf, startOffset, startLine + 1, startCol + 1), new ParseLocation(parseSf, endOffset, endLine + 1, endCol + 1));
265
266
  }
266
- function compileResults(fac, def, metadataStmt, propName, additionalFields, deferrableImports, debugInfo = null) {
267
+ function compileResults(fac, def, metadataStmt, propName, additionalFields, deferrableImports, debugInfo = null, hmrInitializer = null) {
267
268
  const statements = def.statements;
268
269
  if (metadataStmt !== null) {
269
270
  statements.push(metadataStmt);
@@ -271,6 +272,9 @@ function compileResults(fac, def, metadataStmt, propName, additionalFields, defe
271
272
  if (debugInfo !== null) {
272
273
  statements.push(debugInfo);
273
274
  }
275
+ if (hmrInitializer !== null) {
276
+ statements.push(hmrInitializer);
277
+ }
274
278
  const results = [
275
279
  fac,
276
280
  {
@@ -317,7 +321,7 @@ function isAbstractClassDeclaration(clazz) {
317
321
  return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
318
322
  }
319
323
 
320
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
324
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
321
325
  var DynamicValue = class {
322
326
  constructor(node, reason, code) {
323
327
  this.node = node;
@@ -407,10 +411,10 @@ var DynamicValue = class {
407
411
  }
408
412
  };
409
413
 
410
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
414
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
411
415
  import ts2 from "typescript";
412
416
 
413
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
417
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
414
418
  var ResolvedModule = class {
415
419
  constructor(exports, evaluate) {
416
420
  this.exports = exports;
@@ -440,7 +444,7 @@ var EnumValue = class {
440
444
  var KnownFn = class {
441
445
  };
442
446
 
443
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
447
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
444
448
  var ArraySliceBuiltinFn = class extends KnownFn {
445
449
  constructor(lhs) {
446
450
  super();
@@ -492,14 +496,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
492
496
  }
493
497
  };
494
498
 
495
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
499
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
496
500
  var SyntheticValue = class {
497
501
  constructor(value) {
498
502
  this.value = value;
499
503
  }
500
504
  };
501
505
 
502
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
506
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
503
507
  function literalBinaryOp(op) {
504
508
  return { op, literal: true };
505
509
  }
@@ -950,11 +954,11 @@ var StaticInterpreter = class {
950
954
  }
951
955
  }
952
956
  visitBindingElement(node, context) {
953
- const path2 = [];
957
+ const path = [];
954
958
  let closestDeclaration = node;
955
959
  while (ts2.isBindingElement(closestDeclaration) || ts2.isArrayBindingPattern(closestDeclaration) || ts2.isObjectBindingPattern(closestDeclaration)) {
956
960
  if (ts2.isBindingElement(closestDeclaration)) {
957
- path2.unshift(closestDeclaration);
961
+ path.unshift(closestDeclaration);
958
962
  }
959
963
  closestDeclaration = closestDeclaration.parent;
960
964
  }
@@ -962,7 +966,7 @@ var StaticInterpreter = class {
962
966
  return DynamicValue.fromUnknown(node);
963
967
  }
964
968
  let value = this.visit(closestDeclaration.initializer, context);
965
- for (const element of path2) {
969
+ for (const element of path) {
966
970
  let key;
967
971
  if (ts2.isArrayBindingPattern(element.parent)) {
968
972
  key = element.parent.elements.indexOf(element);
@@ -1077,7 +1081,7 @@ function owningModule(context, override = null) {
1077
1081
  }
1078
1082
  }
1079
1083
 
1080
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1084
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1081
1085
  var PartialEvaluator = class {
1082
1086
  constructor(host, checker, dependencyTracker) {
1083
1087
  this.host = host;
@@ -1097,7 +1101,7 @@ var PartialEvaluator = class {
1097
1101
  }
1098
1102
  };
1099
1103
 
1100
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1104
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1101
1105
  import ts3 from "typescript";
1102
1106
  function describeResolvedType(value, maxDepth = 1) {
1103
1107
  var _a, _b;
@@ -1231,14 +1235,14 @@ function getContainerNode(node) {
1231
1235
  return node.getSourceFile();
1232
1236
  }
1233
1237
 
1234
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
1238
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
1235
1239
  var OptimizeFor;
1236
1240
  (function(OptimizeFor2) {
1237
1241
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
1238
1242
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
1239
1243
  })(OptimizeFor || (OptimizeFor = {}));
1240
1244
 
1241
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
1245
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
1242
1246
  var PotentialImportKind;
1243
1247
  (function(PotentialImportKind2) {
1244
1248
  PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
@@ -1250,7 +1254,7 @@ var PotentialImportMode;
1250
1254
  PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
1251
1255
  })(PotentialImportMode || (PotentialImportMode = {}));
1252
1256
 
1253
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
1257
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
1254
1258
  var CompletionKind;
1255
1259
  (function(CompletionKind2) {
1256
1260
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
@@ -1258,7 +1262,7 @@ var CompletionKind;
1258
1262
  CompletionKind2[CompletionKind2["LetDeclaration"] = 2] = "LetDeclaration";
1259
1263
  })(CompletionKind || (CompletionKind = {}));
1260
1264
 
1261
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
1265
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
1262
1266
  var SymbolKind;
1263
1267
  (function(SymbolKind2) {
1264
1268
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -1275,7 +1279,7 @@ var SymbolKind;
1275
1279
  SymbolKind2[SymbolKind2["LetDeclaration"] = 11] = "LetDeclaration";
1276
1280
  })(SymbolKind || (SymbolKind = {}));
1277
1281
 
1278
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1282
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1279
1283
  import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
1280
1284
  import ts4 from "typescript";
1281
1285
  function getConstructorDependencies(clazz, reflector, isCore) {
@@ -1421,10 +1425,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
1421
1425
  return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
1422
1426
  }
1423
1427
 
1424
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1428
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1425
1429
  import ts12 from "typescript";
1426
1430
 
1427
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1431
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1428
1432
  var MetaKind;
1429
1433
  (function(MetaKind2) {
1430
1434
  MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
@@ -1437,10 +1441,10 @@ var MatchSource;
1437
1441
  MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
1438
1442
  })(MatchSource || (MatchSource = {}));
1439
1443
 
1440
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1444
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1441
1445
  import ts6 from "typescript";
1442
1446
 
1443
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1447
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1444
1448
  var ClassPropertyMapping = class {
1445
1449
  constructor(forwardMap) {
1446
1450
  this.forwardMap = forwardMap;
@@ -1520,7 +1524,7 @@ function reverseMapFromForwardMap(forwardMap) {
1520
1524
  return reverseMap;
1521
1525
  }
1522
1526
 
1523
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1527
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1524
1528
  import ts5 from "typescript";
1525
1529
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
1526
1530
  if (!ts5.isTupleTypeNode(def)) {
@@ -1716,7 +1720,7 @@ function isHostDirectiveMetaForGlobalMode(hostDirectiveMeta) {
1716
1720
  return hostDirectiveMeta.directive instanceof Reference;
1717
1721
  }
1718
1722
 
1719
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1723
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1720
1724
  var DtsMetadataReader = class {
1721
1725
  constructor(checker, reflector) {
1722
1726
  this.checker = checker;
@@ -1787,6 +1791,7 @@ var DtsMetadataReader = class {
1787
1791
  isSignal,
1788
1792
  inputFieldNamesFromMetadataArray: null,
1789
1793
  imports: null,
1794
+ rawImports: null,
1790
1795
  deferredImports: null,
1791
1796
  schemas: null,
1792
1797
  decorator: null,
@@ -1900,7 +1905,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
1900
1905
  return result.length > 0 ? result : null;
1901
1906
  }
1902
1907
 
1903
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1908
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1904
1909
  function flattenInheritedDirectiveMetadata(reader, dir) {
1905
1910
  const topMeta = reader.getDirectiveMetadata(dir);
1906
1911
  if (topMeta === null) {
@@ -1964,7 +1969,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
1964
1969
  };
1965
1970
  }
1966
1971
 
1967
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
1972
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
1968
1973
  var LocalMetadataRegistry = class {
1969
1974
  constructor() {
1970
1975
  this.directives = /* @__PURE__ */ new Map();
@@ -2021,7 +2026,7 @@ var CompoundMetadataRegistry = class {
2021
2026
  }
2022
2027
  };
2023
2028
 
2024
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2029
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2025
2030
  var ResourceRegistry = class {
2026
2031
  constructor() {
2027
2032
  this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
@@ -2044,12 +2049,12 @@ var ResourceRegistry = class {
2044
2049
  }
2045
2050
  }
2046
2051
  registerTemplate(templateResource, component) {
2047
- const { path: path2 } = templateResource;
2048
- if (path2 !== null) {
2049
- if (!this.externalTemplateToComponentsMap.has(path2)) {
2050
- this.externalTemplateToComponentsMap.set(path2, /* @__PURE__ */ new Set());
2052
+ const { path } = templateResource;
2053
+ if (path !== null) {
2054
+ if (!this.externalTemplateToComponentsMap.has(path)) {
2055
+ this.externalTemplateToComponentsMap.set(path, /* @__PURE__ */ new Set());
2051
2056
  }
2052
- this.externalTemplateToComponentsMap.get(path2).add(component);
2057
+ this.externalTemplateToComponentsMap.get(path).add(component);
2053
2058
  }
2054
2059
  this.componentToTemplateMap.set(component, templateResource);
2055
2060
  }
@@ -2060,15 +2065,15 @@ var ResourceRegistry = class {
2060
2065
  return this.componentToTemplateMap.get(component);
2061
2066
  }
2062
2067
  registerStyle(styleResource, component) {
2063
- const { path: path2 } = styleResource;
2068
+ const { path } = styleResource;
2064
2069
  if (!this.componentToStylesMap.has(component)) {
2065
2070
  this.componentToStylesMap.set(component, /* @__PURE__ */ new Set());
2066
2071
  }
2067
- if (path2 !== null) {
2068
- if (!this.externalStyleToComponentsMap.has(path2)) {
2069
- this.externalStyleToComponentsMap.set(path2, /* @__PURE__ */ new Set());
2072
+ if (path !== null) {
2073
+ if (!this.externalStyleToComponentsMap.has(path)) {
2074
+ this.externalStyleToComponentsMap.set(path, /* @__PURE__ */ new Set());
2070
2075
  }
2071
- this.externalStyleToComponentsMap.get(path2).add(component);
2076
+ this.externalStyleToComponentsMap.get(path).add(component);
2072
2077
  }
2073
2078
  this.componentToStylesMap.get(component).add(styleResource);
2074
2079
  }
@@ -2086,7 +2091,7 @@ var ResourceRegistry = class {
2086
2091
  }
2087
2092
  };
2088
2093
 
2089
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
2094
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
2090
2095
  var ExportedProviderStatusResolver = class {
2091
2096
  constructor(metaReader) {
2092
2097
  this.metaReader = metaReader;
@@ -2130,7 +2135,7 @@ var ExportedProviderStatusResolver = class {
2130
2135
  }
2131
2136
  };
2132
2137
 
2133
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
2138
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
2134
2139
  var EMPTY_ARRAY = [];
2135
2140
  var HostDirectivesResolver = class {
2136
2141
  constructor(metaReader) {
@@ -2196,7 +2201,7 @@ function resolveOutput(bindingName) {
2196
2201
  return bindingName;
2197
2202
  }
2198
2203
 
2199
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
2204
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
2200
2205
  var CompilationMode;
2201
2206
  (function(CompilationMode2) {
2202
2207
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
@@ -2210,7 +2215,7 @@ var HandlerPrecedence;
2210
2215
  HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
2211
2216
  })(HandlerPrecedence || (HandlerPrecedence = {}));
2212
2217
 
2213
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
2218
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
2214
2219
  import ts7 from "typescript";
2215
2220
  function aliasTransformFactory(exportStatements) {
2216
2221
  return () => {
@@ -2235,10 +2240,10 @@ function aliasTransformFactory(exportStatements) {
2235
2240
  };
2236
2241
  }
2237
2242
 
2238
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2243
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2239
2244
  import ts8 from "typescript";
2240
2245
 
2241
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
2246
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
2242
2247
  var TraitState;
2243
2248
  (function(TraitState2) {
2244
2249
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -2295,7 +2300,7 @@ var TraitImpl = class {
2295
2300
  }
2296
2301
  };
2297
2302
 
2298
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2303
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
2299
2304
  var TraitCompiler = class {
2300
2305
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
2301
2306
  this.handlers = handlers;
@@ -2710,6 +2715,19 @@ var TraitCompiler = class {
2710
2715
  this.dtsTransforms.getIvyDeclarationTransform(original.getSourceFile()).addFields(original, res);
2711
2716
  return res.length > 0 ? res : null;
2712
2717
  }
2718
+ compileHmrUpdateCallback(clazz) {
2719
+ const original = ts8.getOriginalNode(clazz);
2720
+ if (!this.reflector.isClass(clazz) || !this.reflector.isClass(original) || !this.classes.has(original)) {
2721
+ return null;
2722
+ }
2723
+ const record = this.classes.get(original);
2724
+ for (const trait of record.traits) {
2725
+ if (trait.state === TraitState.Resolved && trait.handler.compileHmrUpdateDeclaration !== void 0 && !containsErrors(trait.analysisDiagnostics) && !containsErrors(trait.resolveDiagnostics)) {
2726
+ return trait.handler.compileHmrUpdateDeclaration(clazz, trait.analysis, trait.resolution);
2727
+ }
2728
+ }
2729
+ return null;
2730
+ }
2713
2731
  decoratorsFor(node) {
2714
2732
  const original = ts8.getOriginalNode(node);
2715
2733
  if (!this.reflector.isClass(original) || !this.classes.has(original)) {
@@ -2754,7 +2772,7 @@ function containsErrors(diagnostics) {
2754
2772
  return diagnostics !== null && diagnostics.some((diag) => diag.category === ts8.DiagnosticCategory.Error);
2755
2773
  }
2756
2774
 
2757
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
2775
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
2758
2776
  import ts9 from "typescript";
2759
2777
  var DtsTransformRegistry = class {
2760
2778
  constructor() {
@@ -2904,11 +2922,11 @@ function markForEmitAsSingleLine(node) {
2904
2922
  ts9.forEachChild(node, markForEmitAsSingleLine);
2905
2923
  }
2906
2924
 
2907
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2925
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2908
2926
  import { ConstantPool } from "@angular/compiler";
2909
2927
  import ts11 from "typescript";
2910
2928
 
2911
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
2929
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
2912
2930
  import ts10 from "typescript";
2913
2931
  function visit(node, visitor, context) {
2914
2932
  return visitor._visit(node, context);
@@ -2969,7 +2987,7 @@ var Visitor = class {
2969
2987
  }
2970
2988
  };
2971
2989
 
2972
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2990
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
2973
2991
  var NO_DECORATORS = /* @__PURE__ */ new Set();
2974
2992
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
2975
2993
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, localCompilationExtraImportsTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -3205,7 +3223,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
3205
3223
  return array;
3206
3224
  }
3207
3225
 
3208
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
3226
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
3209
3227
  function makeDuplicateDeclarationError(node, data, kind) {
3210
3228
  const context = [];
3211
3229
  for (const decl of data) {
@@ -3414,7 +3432,7 @@ function assertLocalCompilationUnresolvedConst(compilationMode, value, nodeToHig
3414
3432
  }
3415
3433
  }
3416
3434
 
3417
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
3435
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
3418
3436
  import { ViewEncapsulation } from "@angular/compiler";
3419
3437
  import ts13 from "typescript";
3420
3438
  function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
@@ -3465,7 +3483,7 @@ function resolveLiteral(decorator, literalCache) {
3465
3483
  return meta;
3466
3484
  }
3467
3485
 
3468
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
3486
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
3469
3487
  import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
3470
3488
  function compileNgFactoryDefField(metadata) {
3471
3489
  const res = compileFactoryFunction(metadata);
@@ -3488,7 +3506,7 @@ function compileDeclareFactory(metadata) {
3488
3506
  };
3489
3507
  }
3490
3508
 
3491
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
3509
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
3492
3510
  var InjectableClassRegistry = class {
3493
3511
  constructor(host, isCore) {
3494
3512
  this.host = host;
@@ -3514,7 +3532,7 @@ var InjectableClassRegistry = class {
3514
3532
  }
3515
3533
  };
3516
3534
 
3517
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
3535
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
3518
3536
  import { ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
3519
3537
  import ts14 from "typescript";
3520
3538
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
@@ -3601,15 +3619,14 @@ function removeIdentifierReferences(node, names) {
3601
3619
  return result.transformed[0];
3602
3620
  }
3603
3621
 
3604
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
3622
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
3605
3623
  import { literal as literal2, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
3606
- import * as path from "path";
3607
- function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
3624
+ function extractClassDebugInfo(clazz, reflection, compilerHost, rootDirs, forbidOrphanRendering) {
3608
3625
  if (!reflection.isClass(clazz)) {
3609
3626
  return null;
3610
3627
  }
3611
3628
  const srcFile = clazz.getSourceFile();
3612
- const srcFileMaybeRelativePath = computeRelativePathIfPossible(srcFile.fileName, rootDirs);
3629
+ const srcFileMaybeRelativePath = getProjectRelativePath(srcFile, rootDirs, compilerHost);
3613
3630
  return {
3614
3631
  type: new WrappedNodeExpr4(clazz.name),
3615
3632
  className: literal2(clazz.name.getText()),
@@ -3618,23 +3635,14 @@ function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRenderin
3618
3635
  forbidOrphanRendering
3619
3636
  };
3620
3637
  }
3621
- function computeRelativePathIfPossible(filePath, rootDirs) {
3622
- for (const rootDir of rootDirs) {
3623
- const rel = path.relative(rootDir, filePath);
3624
- if (!rel.startsWith("..")) {
3625
- return rel;
3626
- }
3627
- }
3628
- return null;
3629
- }
3630
3638
 
3631
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
3639
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
3632
3640
  var NoopReferencesRegistry = class {
3633
3641
  add(source, ...references) {
3634
3642
  }
3635
3643
  };
3636
3644
 
3637
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
3645
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
3638
3646
  import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
3639
3647
  function extractSchemas(rawExpr, evaluator, context) {
3640
3648
  const schemas = [];
@@ -3664,7 +3672,7 @@ function extractSchemas(rawExpr, evaluator, context) {
3664
3672
  return schemas;
3665
3673
  }
3666
3674
 
3667
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
3675
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
3668
3676
  import { outputAst } from "@angular/compiler";
3669
3677
  function compileInputTransformFields(inputs) {
3670
3678
  const extraFields = [];
@@ -3682,18 +3690,18 @@ function compileInputTransformFields(inputs) {
3682
3690
  return extraFields;
3683
3691
  }
3684
3692
 
3685
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/jit_declaration_registry.mjs
3693
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/jit_declaration_registry.mjs
3686
3694
  var JitDeclarationRegistry = class {
3687
3695
  constructor() {
3688
3696
  this.jitDeclarations = /* @__PURE__ */ new Set();
3689
3697
  }
3690
3698
  };
3691
3699
 
3692
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
3693
- import { compileClassDebugInfo, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareComponentFromMetadata, compileDeferResolverFunction, CssSelector as CssSelector4, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry as DomElementSchemaRegistry3, ExternalExpr as ExternalExpr8, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, outputAst as o2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher3, ViewEncapsulation as ViewEncapsulation2 } from "@angular/compiler";
3694
- import ts45 from "typescript";
3700
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
3701
+ import { compileClassDebugInfo, compileHmrInitializer, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareComponentFromMetadata, compileDeferResolverFunction, ConstantPool as ConstantPool2, CssSelector as CssSelector4, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry as DomElementSchemaRegistry3, ExternalExpr as ExternalExpr8, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, outputAst as o4, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher3, ViewEncapsulation as ViewEncapsulation2 } from "@angular/compiler";
3702
+ import ts47 from "typescript";
3695
3703
 
3696
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
3704
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
3697
3705
  import ts15 from "typescript";
3698
3706
  var SemanticSymbol = class {
3699
3707
  constructor(decl) {
@@ -3709,7 +3717,7 @@ function getSymbolIdentifier(decl) {
3709
3717
  return decl.name.text;
3710
3718
  }
3711
3719
 
3712
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
3720
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
3713
3721
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
3714
3722
  var OpaqueSymbol = class extends SemanticSymbol {
3715
3723
  isPublicApiAffected() {
@@ -3740,11 +3748,11 @@ var SemanticDepGraph = class {
3740
3748
  }
3741
3749
  return previousSymbol;
3742
3750
  }
3743
- getSymbolByName(path2, identifier) {
3744
- if (!this.files.has(path2)) {
3751
+ getSymbolByName(path, identifier) {
3752
+ if (!this.files.has(path)) {
3745
3753
  return null;
3746
3754
  }
3747
- const file = this.files.get(path2);
3755
+ const file = this.files.get(path);
3748
3756
  if (!file.has(identifier)) {
3749
3757
  return null;
3750
3758
  }
@@ -3852,10 +3860,10 @@ function getImportPath(expr) {
3852
3860
  }
3853
3861
  }
3854
3862
 
3855
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3863
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3856
3864
  import ts16 from "typescript";
3857
3865
 
3858
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
3866
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
3859
3867
  function isSymbolEqual(a, b) {
3860
3868
  if (a.decl === b.decl) {
3861
3869
  return true;
@@ -3905,7 +3913,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
3905
3913
  return true;
3906
3914
  }
3907
3915
 
3908
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3916
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
3909
3917
  function extractSemanticTypeParameters(node) {
3910
3918
  if (!ts16.isClassDeclaration(node) || node.typeParameters === void 0) {
3911
3919
  return null;
@@ -3927,14 +3935,14 @@ function isTypeParameterEqual(a, b) {
3927
3935
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
3928
3936
  }
3929
3937
 
3930
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
3938
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
3931
3939
  var ComponentScopeKind;
3932
3940
  (function(ComponentScopeKind2) {
3933
3941
  ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
3934
3942
  ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
3935
3943
  })(ComponentScopeKind || (ComponentScopeKind = {}));
3936
3944
 
3937
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
3945
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
3938
3946
  var CompoundComponentScopeReader = class {
3939
3947
  constructor(readers) {
3940
3948
  this.readers = readers;
@@ -3959,7 +3967,7 @@ var CompoundComponentScopeReader = class {
3959
3967
  }
3960
3968
  };
3961
3969
 
3962
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
3970
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
3963
3971
  var MetadataDtsModuleScopeResolver = class {
3964
3972
  constructor(dtsMetaReader, aliasingHost) {
3965
3973
  this.dtsMetaReader = dtsMetaReader;
@@ -4035,11 +4043,11 @@ var MetadataDtsModuleScopeResolver = class {
4035
4043
  }
4036
4044
  };
4037
4045
 
4038
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4046
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4039
4047
  import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
4040
4048
  import ts17 from "typescript";
4041
4049
 
4042
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
4050
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
4043
4051
  function getDiagnosticNode(ref, rawExpr) {
4044
4052
  return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
4045
4053
  }
@@ -4065,7 +4073,8 @@ function makeUnknownComponentDeferredImportDiagnostic(ref, rawExpr) {
4065
4073
  return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_DEFERRED_IMPORT, getDiagnosticNode(ref, rawExpr), `Component deferred imports must be standalone components, directives or pipes.`);
4066
4074
  }
4067
4075
 
4068
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4076
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
4077
+ var IN_PROGRESS_RESOLUTION = {};
4069
4078
  var LocalModuleScopeRegistry = class {
4070
4079
  constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
4071
4080
  this.localReader = localReader;
@@ -4138,8 +4147,12 @@ var LocalModuleScopeRegistry = class {
4138
4147
  }
4139
4148
  getScopeOfModuleReference(ref) {
4140
4149
  if (this.cache.has(ref.node)) {
4141
- return this.cache.get(ref.node);
4150
+ const cachedValue = this.cache.get(ref.node);
4151
+ if (cachedValue !== IN_PROGRESS_RESOLUTION) {
4152
+ return cachedValue;
4153
+ }
4142
4154
  }
4155
+ this.cache.set(ref.node, IN_PROGRESS_RESOLUTION);
4143
4156
  this.sealed = true;
4144
4157
  const ngModule = this.localReader.getNgModuleMetadata(ref);
4145
4158
  if (ngModule === null) {
@@ -4159,10 +4172,12 @@ var LocalModuleScopeRegistry = class {
4159
4172
  for (const decl of ngModule.imports) {
4160
4173
  const importScope = this.getExportedScope(decl, diagnostics, ref.node, "import");
4161
4174
  if (importScope !== null) {
4162
- if (importScope === "invalid" || importScope.exported.isPoisoned) {
4163
- diagnostics.push(invalidTransitiveNgModuleRef(decl, ngModule.rawImports, "import"));
4175
+ if (importScope === "invalid" || importScope === "cycle" || importScope.exported.isPoisoned) {
4164
4176
  isPoisoned = true;
4165
- if (importScope === "invalid") {
4177
+ if (importScope !== "cycle") {
4178
+ diagnostics.push(invalidTransitiveNgModuleRef(decl, ngModule.rawImports, "import"));
4179
+ }
4180
+ if (importScope === "invalid" || importScope === "cycle") {
4166
4181
  continue;
4167
4182
  }
4168
4183
  }
@@ -4229,10 +4244,12 @@ var LocalModuleScopeRegistry = class {
4229
4244
  }
4230
4245
  for (const decl of ngModule.exports) {
4231
4246
  const exportScope = this.getExportedScope(decl, diagnostics, ref.node, "export");
4232
- if (exportScope === "invalid" || exportScope !== null && exportScope.exported.isPoisoned) {
4233
- diagnostics.push(invalidTransitiveNgModuleRef(decl, ngModule.rawExports, "export"));
4247
+ if (exportScope === "invalid" || exportScope === "cycle" || exportScope !== null && exportScope.exported.isPoisoned) {
4234
4248
  isPoisoned = true;
4235
- if (exportScope === "invalid") {
4249
+ if (exportScope !== "cycle") {
4250
+ diagnostics.push(invalidTransitiveNgModuleRef(decl, ngModule.rawExports, "export"));
4251
+ }
4252
+ if (exportScope === "invalid" || exportScope === "cycle") {
4236
4253
  continue;
4237
4254
  }
4238
4255
  } else if (exportScope !== null) {
@@ -4300,6 +4317,10 @@ var LocalModuleScopeRegistry = class {
4300
4317
  }
4301
4318
  return this.dependencyScopeReader.resolve(ref);
4302
4319
  } else {
4320
+ if (this.cache.get(ref.node) === IN_PROGRESS_RESOLUTION) {
4321
+ diagnostics.push(makeDiagnostic(type === "import" ? ErrorCode.NGMODULE_INVALID_IMPORT : ErrorCode.NGMODULE_INVALID_EXPORT, identifierOfNode(ref.node) || ref.node, `NgModule "${type}" field contains a cycle`));
4322
+ return "cycle";
4323
+ }
4303
4324
  return this.getScopeOfModuleReference(ref);
4304
4325
  }
4305
4326
  }
@@ -4406,7 +4427,7 @@ function reexportCollision(module, refA, refB) {
4406
4427
  ]);
4407
4428
  }
4408
4429
 
4409
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4430
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4410
4431
  import { CssSelector, SelectorMatcher } from "@angular/compiler";
4411
4432
  import ts18 from "typescript";
4412
4433
  var TypeCheckScopeRegistry = class {
@@ -4487,14 +4508,14 @@ var TypeCheckScopeRegistry = class {
4487
4508
  }
4488
4509
  };
4489
4510
 
4490
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4511
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4491
4512
  import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
4492
4513
 
4493
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4514
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4494
4515
  import { createMayBeForwardRefExpression as createMayBeForwardRefExpression2, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
4495
4516
  import ts22 from "typescript";
4496
4517
 
4497
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
4518
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
4498
4519
  function validateAccessOfInitializerApiMember({ api, call }, member) {
4499
4520
  if (!api.allowedAccessLevels.includes(member.accessLevel)) {
4500
4521
  throw new FatalDiagnosticError(ErrorCode.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY, call, makeDiagnosticChain(`Cannot use "${api.functionName}" on a class member that is declared as ${classMemberAccessLevelToString(member.accessLevel)}.`, [
@@ -4503,7 +4524,7 @@ function validateAccessOfInitializerApiMember({ api, call }, member) {
4503
4524
  }
4504
4525
  }
4505
4526
 
4506
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
4527
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
4507
4528
  import ts19 from "typescript";
4508
4529
  function tryParseInitializerApi(functions, expression, reflector, importTracker) {
4509
4530
  if (!ts19.isCallExpression(expression)) {
@@ -4572,7 +4593,7 @@ function parseTopLevelCallFromNamespace(call, functions, importTracker) {
4572
4593
  return { api: matchingApi, apiReference, isRequired };
4573
4594
  }
4574
4595
 
4575
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
4596
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
4576
4597
  import ts20 from "typescript";
4577
4598
  function parseAndValidateInputAndOutputOptions(optionsNode) {
4578
4599
  if (!ts20.isObjectLiteralExpression(optionsNode)) {
@@ -4590,7 +4611,7 @@ function parseAndValidateInputAndOutputOptions(optionsNode) {
4590
4611
  return { alias };
4591
4612
  }
4592
4613
 
4593
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
4614
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
4594
4615
  var INPUT_INITIALIZER_FN = {
4595
4616
  functionName: "input",
4596
4617
  owningModule: "@angular/core",
@@ -4622,7 +4643,7 @@ function tryParseSignalInputMapping(member, reflector, importTracker) {
4622
4643
  };
4623
4644
  }
4624
4645
 
4625
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
4646
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
4626
4647
  var MODEL_INITIALIZER_FN = {
4627
4648
  functionName: "model",
4628
4649
  owningModule: "@angular/core",
@@ -4663,7 +4684,7 @@ function tryParseSignalModelMapping(member, reflector, importTracker) {
4663
4684
  };
4664
4685
  }
4665
4686
 
4666
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
4687
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
4667
4688
  var allowedAccessLevels = [
4668
4689
  ClassMemberAccessLevel.PublicWritable,
4669
4690
  ClassMemberAccessLevel.PublicReadonly,
@@ -4707,7 +4728,7 @@ function tryParseInitializerBasedOutput(member, reflector, importTracker) {
4707
4728
  };
4708
4729
  }
4709
4730
 
4710
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
4731
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
4711
4732
  import { createMayBeForwardRefExpression, outputAst as o } from "@angular/compiler";
4712
4733
  import ts21 from "typescript";
4713
4734
  var queryFunctionNames = [
@@ -4792,7 +4813,10 @@ function parseDescendantsOption(value) {
4792
4813
  throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, value, `Expected "descendants" option to be a boolean literal.`);
4793
4814
  }
4794
4815
 
4795
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4816
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/standalone-default-value.mjs
4817
+ var NG_STANDALONE_DEFAULT_VALUE = true;
4818
+
4819
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4796
4820
  var EMPTY_OBJECT = {};
4797
4821
  var queryDecoratorNames = [
4798
4822
  "ViewChild",
@@ -4801,7 +4825,7 @@ var queryDecoratorNames = [
4801
4825
  "ContentChildren"
4802
4826
  ];
4803
4827
  var QUERY_TYPES = new Set(queryDecoratorNames);
4804
- function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, evaluator, refEmitter, referencesRegistry, isCore, annotateForClosureCompiler, compilationMode, defaultSelector) {
4828
+ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, evaluator, refEmitter, referencesRegistry, isCore, annotateForClosureCompiler, compilationMode, defaultSelector, strictStandalone) {
4805
4829
  let directive;
4806
4830
  if (decorator.args === null || decorator.args.length === 0) {
4807
4831
  directive = /* @__PURE__ */ new Map();
@@ -4868,7 +4892,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
4868
4892
  const rawCtorDeps = getConstructorDependencies(clazz, reflector, isCore);
4869
4893
  const ctorDeps = selector !== null ? validateConstructorDependencies(clazz, rawCtorDeps) : unwrapConstructorDependencies(rawCtorDeps);
4870
4894
  const isStructural = ctorDeps !== null && ctorDeps !== "invalid" && ctorDeps.some((dep) => dep.token instanceof ExternalExpr4 && dep.token.value.moduleName === "@angular/core" && dep.token.value.name === "TemplateRef");
4871
- let isStandalone = false;
4895
+ let isStandalone = NG_STANDALONE_DEFAULT_VALUE;
4872
4896
  if (directive.has("standalone")) {
4873
4897
  const expr = directive.get("standalone");
4874
4898
  const resolved = evaluator.evaluate(expr);
@@ -4876,6 +4900,9 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
4876
4900
  throw createValueHasWrongTypeError(expr, resolved, `standalone flag must be a boolean`);
4877
4901
  }
4878
4902
  isStandalone = resolved;
4903
+ if (!isStandalone && strictStandalone) {
4904
+ throw new FatalDiagnosticError(ErrorCode.NON_STANDALONE_NOT_ALLOWED, expr, `Only standalone components/directives are allowed when 'strictStandalone' is enabled.`);
4905
+ }
4879
4906
  }
4880
4907
  let isSignal = false;
4881
4908
  if (directive.has("signals")) {
@@ -5594,7 +5621,7 @@ function toR3InputMetadata(mapping) {
5594
5621
  };
5595
5622
  }
5596
5623
 
5597
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
5624
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
5598
5625
  var DirectiveSymbol = class extends SemanticSymbol {
5599
5626
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
5600
5627
  super(decl);
@@ -5674,7 +5701,7 @@ function isBaseClassEqual(current, previous) {
5674
5701
  return isSymbolEqual(current, previous);
5675
5702
  }
5676
5703
 
5677
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
5704
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
5678
5705
  var FIELD_DECORATORS = [
5679
5706
  "Input",
5680
5707
  "Output",
@@ -5696,7 +5723,7 @@ var LIFECYCLE_HOOKS = /* @__PURE__ */ new Set([
5696
5723
  "ngAfterContentChecked"
5697
5724
  ]);
5698
5725
  var DirectiveDecoratorHandler = class {
5699
- constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf, importTracker, includeClassMetadata, compilationMode, jitDeclarationRegistry) {
5726
+ constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf, importTracker, includeClassMetadata, compilationMode, jitDeclarationRegistry, strictStandalone) {
5700
5727
  this.reflector = reflector;
5701
5728
  this.evaluator = evaluator;
5702
5729
  this.metaRegistry = metaRegistry;
@@ -5714,6 +5741,7 @@ var DirectiveDecoratorHandler = class {
5714
5741
  this.includeClassMetadata = includeClassMetadata;
5715
5742
  this.compilationMode = compilationMode;
5716
5743
  this.jitDeclarationRegistry = jitDeclarationRegistry;
5744
+ this.strictStandalone = strictStandalone;
5717
5745
  this.precedence = HandlerPrecedence.PRIMARY;
5718
5746
  this.name = "DirectiveDecoratorHandler";
5719
5747
  }
@@ -5746,7 +5774,8 @@ var DirectiveDecoratorHandler = class {
5746
5774
  this.isCore,
5747
5775
  this.annotateForClosureCompiler,
5748
5776
  this.compilationMode,
5749
- null
5777
+ null,
5778
+ this.strictStandalone
5750
5779
  );
5751
5780
  if (directiveResult.jitForced) {
5752
5781
  this.jitDeclarationRegistry.jitDeclarations.add(node);
@@ -5802,6 +5831,7 @@ var DirectiveDecoratorHandler = class {
5802
5831
  isStandalone: analysis.meta.isStandalone,
5803
5832
  isSignal: analysis.meta.isSignal,
5804
5833
  imports: null,
5834
+ rawImports: null,
5805
5835
  deferredImports: null,
5806
5836
  schemas: null,
5807
5837
  ngContentSelectors: null,
@@ -5870,11 +5900,11 @@ var DirectiveDecoratorHandler = class {
5870
5900
  }
5871
5901
  };
5872
5902
 
5873
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5903
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5874
5904
  import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
5875
5905
  import ts24 from "typescript";
5876
5906
 
5877
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5907
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5878
5908
  import ts23 from "typescript";
5879
5909
  function createModuleWithProvidersResolver(reflector, isCore) {
5880
5910
  function _reflectModuleFromTypeParam(type, node) {
@@ -5946,7 +5976,7 @@ function isResolvedModuleWithProviders(sv) {
5946
5976
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
5947
5977
  }
5948
5978
 
5949
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5979
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5950
5980
  var NgModuleSymbol = class extends SemanticSymbol {
5951
5981
  constructor(decl, hasProviders) {
5952
5982
  super(decl);
@@ -6565,12 +6595,12 @@ function isSyntheticReference(ref) {
6565
6595
  return ref.synthetic;
6566
6596
  }
6567
6597
 
6568
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
6598
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
6569
6599
  function makeCyclicImportInfo(ref, type, cycle) {
6570
6600
  const name = ref.debugName || "(unknown)";
6571
- const path2 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
6601
+ const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
6572
6602
  const message = `The ${type} '${name}' is used in the template but importing it would create a cycle: `;
6573
- return makeRelatedInformation(ref.node, message + path2);
6603
+ return makeRelatedInformation(ref.node, message + path);
6574
6604
  }
6575
6605
  function checkCustomElementSelectorForErrors(selector) {
6576
6606
  if (selector.includes(".") || selector.includes("[") && selector.includes("]")) {
@@ -6588,7 +6618,7 @@ function checkCustomElementSelectorForErrors(selector) {
6588
6618
  return null;
6589
6619
  }
6590
6620
 
6591
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
6621
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
6592
6622
  import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
6593
6623
  import ts25 from "typescript";
6594
6624
  function getTemplateDeclarationNodeForError(declaration) {
@@ -6674,12 +6704,14 @@ function parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedSt
6674
6704
  };
6675
6705
  const parsedTemplate = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", {
6676
6706
  ...commonParseOptions,
6677
- preserveWhitespaces: template.preserveWhitespaces
6707
+ preserveWhitespaces: template.preserveWhitespaces,
6708
+ preserveSignificantWhitespace: options.preserveSignificantWhitespace
6678
6709
  });
6679
6710
  const { nodes: diagNodes } = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", {
6680
6711
  ...commonParseOptions,
6681
6712
  preserveWhitespaces: true,
6682
6713
  preserveLineEndings: true,
6714
+ preserveSignificantWhitespace: true,
6683
6715
  leadingTriviaChars: []
6684
6716
  });
6685
6717
  return {
@@ -6753,7 +6785,8 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
6753
6785
  const resourceUrl = resourceLoader.resolve(templateUrl, containingFile);
6754
6786
  const templatePromise = resourceLoader.preload(resourceUrl, {
6755
6787
  type: "template",
6756
- containingFile
6788
+ containingFile,
6789
+ className: node.name.text
6757
6790
  });
6758
6791
  if (templatePromise !== void 0) {
6759
6792
  return templatePromise.then(() => {
@@ -6855,7 +6888,7 @@ function extractComponentStyleUrls(evaluator, component) {
6855
6888
  {
6856
6889
  url: styleUrl,
6857
6890
  source: 2,
6858
- nodeForError: styleUrlExpr
6891
+ expression: styleUrlExpr
6859
6892
  }
6860
6893
  ];
6861
6894
  }
@@ -6875,7 +6908,7 @@ function extractStyleUrlsFromExpression(evaluator, styleUrlsExpr) {
6875
6908
  styleUrls.push({
6876
6909
  url: styleUrl,
6877
6910
  source: 2,
6878
- nodeForError: styleUrlExpr
6911
+ expression: styleUrlExpr
6879
6912
  });
6880
6913
  }
6881
6914
  }
@@ -6888,32 +6921,17 @@ function extractStyleUrlsFromExpression(evaluator, styleUrlsExpr) {
6888
6921
  styleUrls.push({
6889
6922
  url: styleUrl,
6890
6923
  source: 2,
6891
- nodeForError: styleUrlsExpr
6924
+ expression: styleUrlsExpr
6892
6925
  });
6893
6926
  }
6894
6927
  }
6895
6928
  return styleUrls;
6896
6929
  }
6897
- function extractStyleResources(resourceLoader, component, containingFile) {
6930
+ function extractInlineStyleResources(component) {
6898
6931
  const styles = /* @__PURE__ */ new Set();
6899
6932
  function stringLiteralElements(array) {
6900
6933
  return array.elements.filter((e) => ts25.isStringLiteralLike(e));
6901
6934
  }
6902
- const styleUrlExpr = component.get("styleUrl");
6903
- const styleUrlsExpr = component.get("styleUrls");
6904
- if (styleUrlsExpr !== void 0 && ts25.isArrayLiteralExpression(styleUrlsExpr)) {
6905
- for (const expression of stringLiteralElements(styleUrlsExpr)) {
6906
- const resource = stringLiteralUrlToResource(resourceLoader, expression, containingFile);
6907
- if (resource !== null) {
6908
- styles.add(resource);
6909
- }
6910
- }
6911
- } else if (styleUrlExpr !== void 0 && ts25.isStringLiteralLike(styleUrlExpr)) {
6912
- const resource = stringLiteralUrlToResource(resourceLoader, styleUrlExpr, containingFile);
6913
- if (resource !== null) {
6914
- styles.add(resource);
6915
- }
6916
- }
6917
6935
  const stylesExpr = component.get("styles");
6918
6936
  if (stylesExpr !== void 0) {
6919
6937
  if (ts25.isArrayLiteralExpression(stylesExpr)) {
@@ -6926,27 +6944,19 @@ function extractStyleResources(resourceLoader, component, containingFile) {
6926
6944
  }
6927
6945
  return styles;
6928
6946
  }
6929
- function stringLiteralUrlToResource(resourceLoader, expression, containingFile) {
6930
- try {
6931
- const resourceUrl = resourceLoader.resolve(expression.text, containingFile);
6932
- return { path: absoluteFrom(resourceUrl), expression };
6933
- } catch {
6934
- return null;
6935
- }
6936
- }
6937
6947
  function _extractTemplateStyleUrls(template) {
6938
6948
  if (template.styleUrls === null) {
6939
6949
  return [];
6940
6950
  }
6941
- const nodeForError = getTemplateDeclarationNodeForError(template.declaration);
6951
+ const expression = getTemplateDeclarationNodeForError(template.declaration);
6942
6952
  return template.styleUrls.map((url) => ({
6943
6953
  url,
6944
6954
  source: 1,
6945
- nodeForError
6955
+ expression
6946
6956
  }));
6947
6957
  }
6948
6958
 
6949
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
6959
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
6950
6960
  var ComponentSymbol = class extends DirectiveSymbol {
6951
6961
  constructor() {
6952
6962
  super(...arguments);
@@ -6981,7 +6991,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
6981
6991
  }
6982
6992
  };
6983
6993
 
6984
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
6994
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
6985
6995
  function collectAnimationNames(value, animationTriggerNames) {
6986
6996
  if (value instanceof Map) {
6987
6997
  const name = value.get("name");
@@ -7058,10 +7068,10 @@ function isLikelyModuleWithProviders(value) {
7058
7068
  return false;
7059
7069
  }
7060
7070
 
7061
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
7071
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
7062
7072
  import { CssSelector as CssSelector3, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr7, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
7063
7073
 
7064
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
7074
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
7065
7075
  var NgOriginalFile = Symbol("NgOriginalFile");
7066
7076
  var UpdateMode;
7067
7077
  (function(UpdateMode2) {
@@ -7069,13 +7079,13 @@ var UpdateMode;
7069
7079
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
7070
7080
  })(UpdateMode || (UpdateMode = {}));
7071
7081
 
7072
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7082
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7073
7083
  import ts27 from "typescript";
7074
7084
 
7075
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7085
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7076
7086
  import ts26 from "typescript";
7077
7087
 
7078
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
7088
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
7079
7089
  var NgExtension = Symbol("NgExtension");
7080
7090
  function isExtended(sf) {
7081
7091
  return sf[NgExtension] !== void 0;
@@ -7135,13 +7145,13 @@ function retagTsFile(sf) {
7135
7145
  }
7136
7146
  }
7137
7147
 
7138
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
7148
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
7139
7149
  var TS_EXTENSIONS = /\.tsx?$/i;
7140
7150
  function makeShimFileName(fileName, suffix) {
7141
7151
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
7142
7152
  }
7143
7153
 
7144
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7154
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7145
7155
  var ShimAdapter = class {
7146
7156
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
7147
7157
  this.delegate = delegate;
@@ -7236,7 +7246,7 @@ var ShimAdapter = class {
7236
7246
  }
7237
7247
  };
7238
7248
 
7239
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
7249
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
7240
7250
  var ShimReferenceTagger = class {
7241
7251
  constructor(shimExtensions) {
7242
7252
  this.tagged = /* @__PURE__ */ new Set();
@@ -7270,7 +7280,7 @@ var ShimReferenceTagger = class {
7270
7280
  }
7271
7281
  };
7272
7282
 
7273
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7283
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7274
7284
  var DelegatingCompilerHost = class {
7275
7285
  get jsDocParsingMode() {
7276
7286
  return this.delegate.jsDocParsingMode;
@@ -7388,7 +7398,7 @@ var TsCreateProgramDriver = class {
7388
7398
  }
7389
7399
  };
7390
7400
 
7391
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
7401
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
7392
7402
  import ts28 from "typescript";
7393
7403
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
7394
7404
  var _a;
@@ -7499,7 +7509,7 @@ function parseTemplateAsSourceFile(fileName, template) {
7499
7509
  );
7500
7510
  }
7501
7511
 
7502
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
7512
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
7503
7513
  var TEMPLATE_ID = Symbol("ngTemplateId");
7504
7514
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
7505
7515
  function getTemplateId(clazz) {
@@ -7516,11 +7526,11 @@ function allocateTemplateId(sf) {
7516
7526
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
7517
7527
  }
7518
7528
 
7519
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7529
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7520
7530
  import { EmptyExpr, ImplicitReceiver, PropertyRead, PropertyWrite, SafePropertyRead, TmplAstLetDeclaration, TmplAstReference, TmplAstTextAttribute } from "@angular/compiler";
7521
7531
  import ts30 from "typescript";
7522
7532
 
7523
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
7533
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
7524
7534
  import { AbsoluteSourceSpan } from "@angular/compiler";
7525
7535
  import ts29 from "typescript";
7526
7536
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -7651,7 +7661,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
7651
7661
  }) || false;
7652
7662
  }
7653
7663
 
7654
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7664
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7655
7665
  var CompletionEngine = class {
7656
7666
  constructor(tcb, data, tcbPath, tcbIsShim) {
7657
7667
  this.tcb = tcb;
@@ -8841,10 +8851,10 @@ var MagicString = class {
8841
8851
  }
8842
8852
  };
8843
8853
 
8844
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
8854
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
8845
8855
  import ts43 from "typescript";
8846
8856
 
8847
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
8857
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
8848
8858
  import { DomElementSchemaRegistry } from "@angular/compiler";
8849
8859
  import ts31 from "typescript";
8850
8860
  var REGISTRY = new DomElementSchemaRegistry();
@@ -8897,10 +8907,10 @@ var RegistryDomSchemaChecker = class {
8897
8907
  }
8898
8908
  };
8899
8909
 
8900
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
8910
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
8901
8911
  import ts36 from "typescript";
8902
8912
 
8903
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
8913
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
8904
8914
  import { ExpressionType, ExternalExpr as ExternalExpr6, TypeModifier } from "@angular/compiler";
8905
8915
  var ReferenceEmitEnvironment = class {
8906
8916
  constructor(importManager, refEmitter, reflector, contextFile) {
@@ -8931,7 +8941,7 @@ var ReferenceEmitEnvironment = class {
8931
8941
  }
8932
8942
  };
8933
8943
 
8934
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
8944
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
8935
8945
  import ts32 from "typescript";
8936
8946
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
8937
8947
  ts32.SyntaxKind.ParenthesizedExpression,
@@ -9014,15 +9024,15 @@ function tsNumericExpression(value) {
9014
9024
  return ts32.factory.createNumericLiteral(value);
9015
9025
  }
9016
9026
 
9017
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9027
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9018
9028
  import { ExpressionType as ExpressionType2, R3Identifiers as R3Identifiers3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
9019
9029
  import ts35 from "typescript";
9020
9030
 
9021
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9031
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9022
9032
  import { R3Identifiers as R3Identifiers2 } from "@angular/compiler";
9023
9033
  import ts34 from "typescript";
9024
9034
 
9025
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
9035
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
9026
9036
  import ts33 from "typescript";
9027
9037
  var TypeParameterEmitter = class {
9028
9038
  constructor(typeParameters, reflector) {
@@ -9100,7 +9110,7 @@ var TypeParameterEmitter = class {
9100
9110
  }
9101
9111
  };
9102
9112
 
9103
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9113
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9104
9114
  var TCB_FILE_IMPORT_GRAPH_PREPARE_IDENTIFIERS = [
9105
9115
  R3Identifiers2.InputSignalBrandWriteType
9106
9116
  ];
@@ -9192,7 +9202,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
9192
9202
  return emitter.canEmit((ref) => env.canReferenceType(ref));
9193
9203
  }
9194
9204
 
9195
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9205
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9196
9206
  function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
9197
9207
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
9198
9208
  const rawType = ts35.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -9315,7 +9325,7 @@ function typeParametersWithDefaultTypes(params) {
9315
9325
  });
9316
9326
  }
9317
9327
 
9318
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
9328
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
9319
9329
  var Environment = class extends ReferenceEmitEnvironment {
9320
9330
  constructor(config, importManager, refEmitter, reflector, contextFile) {
9321
9331
  super(importManager, refEmitter, reflector, contextFile);
@@ -9387,7 +9397,7 @@ var Environment = class extends ReferenceEmitEnvironment {
9387
9397
  }
9388
9398
  };
9389
9399
 
9390
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
9400
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
9391
9401
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2, TmplAstElement } from "@angular/compiler";
9392
9402
  import ts37 from "typescript";
9393
9403
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -9589,7 +9599,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
9589
9599
  };
9590
9600
  }
9591
9601
 
9592
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
9602
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
9593
9603
  import ts38 from "typescript";
9594
9604
  var TypeCheckShimGenerator = class {
9595
9605
  constructor() {
@@ -9607,11 +9617,11 @@ var TypeCheckShimGenerator = class {
9607
9617
  }
9608
9618
  };
9609
9619
 
9610
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
9620
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
9611
9621
  import { BindingPipe, BindingType, Call as Call2, createCssSelectorFromNode, CssSelector as CssSelector2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver2, ParsedEventType, PropertyRead as PropertyRead3, PropertyWrite as PropertyWrite2, R3Identifiers as R3Identifiers4, SafeCall, SafePropertyRead as SafePropertyRead3, SelectorMatcher as SelectorMatcher2, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstContent, TmplAstDeferredBlock, TmplAstElement as TmplAstElement2, TmplAstForLoopBlock, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch, TmplAstLetDeclaration as TmplAstLetDeclaration2, TmplAstReference as TmplAstReference2, TmplAstSwitchBlock, TmplAstTemplate, TmplAstText, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable, TransplantedType } from "@angular/compiler";
9612
9622
  import ts41 from "typescript";
9613
9623
 
9614
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
9624
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
9615
9625
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
9616
9626
  import ts39 from "typescript";
9617
9627
  function wrapForDiagnostics(expr) {
@@ -9667,7 +9677,7 @@ function translateDiagnostic(diagnostic, resolver) {
9667
9677
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
9668
9678
  }
9669
9679
 
9670
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
9680
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
9671
9681
  import { ASTWithSource, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead2, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
9672
9682
  import ts40 from "typescript";
9673
9683
  var ANY_EXPRESSION = ts40.factory.createAsExpression(ts40.factory.createNumericLiteral("0"), ts40.factory.createKeywordTypeNode(ts40.SyntaxKind.AnyKeyword));
@@ -9829,6 +9839,12 @@ var AstTranslator = class {
9829
9839
  addParseSpanInfo(node, ast.sourceSpan);
9830
9840
  return node;
9831
9841
  }
9842
+ visitTypeofExpresion(ast) {
9843
+ const expression = wrapForDiagnostics(this.translate(ast.expression));
9844
+ const node = ts40.factory.createTypeOfExpression(expression);
9845
+ addParseSpanInfo(node, ast.sourceSpan);
9846
+ return node;
9847
+ }
9832
9848
  visitPropertyRead(ast) {
9833
9849
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
9834
9850
  const name = ts40.factory.createPropertyAccessExpression(receiver, ast.name);
@@ -9979,6 +9995,9 @@ var _VeSafeLhsInferenceBugDetector = class {
9979
9995
  visitPrefixNot(ast) {
9980
9996
  return ast.expression.visit(this);
9981
9997
  }
9998
+ visitTypeofExpresion(ast) {
9999
+ return ast.expression.visit(this);
10000
+ }
9982
10001
  visitNonNullAssert(ast) {
9983
10002
  return ast.expression.visit(this);
9984
10003
  }
@@ -10000,7 +10019,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
10000
10019
  _VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
10001
10020
  })();
10002
10021
 
10003
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
10022
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
10004
10023
  var TcbGenericContextBehavior;
10005
10024
  (function(TcbGenericContextBehavior2) {
10006
10025
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -11266,6 +11285,9 @@ var _Scope = class {
11266
11285
  appendDeferredBlock(block) {
11267
11286
  this.appendDeferredTriggers(block, block.triggers);
11268
11287
  this.appendDeferredTriggers(block, block.prefetchTriggers);
11288
+ if (block.hydrateTriggers.when) {
11289
+ this.opQueue.push(new TcbExpressionOp(this.tcb, this, block.hydrateTriggers.when.value));
11290
+ }
11269
11291
  this.appendChildren(block);
11270
11292
  if (block.placeholder !== null) {
11271
11293
  this.appendChildren(block.placeholder);
@@ -11336,7 +11358,7 @@ var TcbExpressionTranslator = class {
11336
11358
  return astToTypescript(ast, (ast2) => this.resolve(ast2), this.tcb.env.config);
11337
11359
  }
11338
11360
  resolve(ast) {
11339
- if (ast instanceof PropertyRead3 && ast.receiver instanceof ImplicitReceiver2) {
11361
+ if (ast instanceof PropertyRead3 && ast.receiver instanceof ImplicitReceiver2 && !(ast.receiver instanceof ThisReceiver)) {
11340
11362
  const target = this.tcb.boundTarget.getExpressionTarget(ast);
11341
11363
  const targetExpression = target === null ? null : this.getTargetNodeExpression(target, ast);
11342
11364
  if (target instanceof TmplAstLetDeclaration2 && !this.isValidLetDeclarationAccess(target, ast)) {
@@ -11590,7 +11612,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
11590
11612
  }
11591
11613
  };
11592
11614
 
11593
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
11615
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
11594
11616
  import ts42 from "typescript";
11595
11617
  var TypeCheckFile = class extends Environment {
11596
11618
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -11638,7 +11660,7 @@ var TypeCheckFile = class extends Environment {
11638
11660
  }
11639
11661
  };
11640
11662
 
11641
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
11663
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
11642
11664
  var InliningMode;
11643
11665
  (function(InliningMode2) {
11644
11666
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -11890,10 +11912,10 @@ var TypeCtorOp = class {
11890
11912
  }
11891
11913
  };
11892
11914
 
11893
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
11915
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
11894
11916
  import { ParseLocation as ParseLocation2, ParseSourceSpan as ParseSourceSpan2 } from "@angular/compiler";
11895
11917
 
11896
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
11918
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
11897
11919
  var LF_CHAR = 10;
11898
11920
  var CR_CHAR = 13;
11899
11921
  var LINE_SEP_CHAR = 8232;
@@ -11934,7 +11956,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
11934
11956
  return low - 1;
11935
11957
  }
11936
11958
 
11937
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
11959
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
11938
11960
  var TemplateSource = class {
11939
11961
  constructor(mapping, file) {
11940
11962
  this.mapping = mapping;
@@ -11985,8 +12007,8 @@ var TemplateSourceManager = class {
11985
12007
  }
11986
12008
  };
11987
12009
 
11988
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
11989
- import { AST, ASTWithSource as ASTWithSource2, BindingPipe as BindingPipe2, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, R3Identifiers as R3Identifiers5, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement3, TmplAstLetDeclaration as TmplAstLetDeclaration3, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
12010
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
12011
+ import { AST, ASTWithName, ASTWithSource as ASTWithSource2, BindingPipe as BindingPipe2, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, R3Identifiers as R3Identifiers5, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement3, TmplAstLetDeclaration as TmplAstLetDeclaration3, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
11990
12012
  import ts44 from "typescript";
11991
12013
  var SymbolBuilder = class {
11992
12014
  constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
@@ -12466,7 +12488,7 @@ var SymbolBuilder = class {
12466
12488
  return this.getSymbol(expressionTarget);
12467
12489
  }
12468
12490
  let withSpan = expression.sourceSpan;
12469
- if (expression instanceof PropertyWrite3) {
12491
+ if (expression instanceof PropertyWrite3 || expression instanceof ASTWithName && !(expression instanceof SafePropertyRead4)) {
12470
12492
  withSpan = expression.nameSpan;
12471
12493
  }
12472
12494
  let node = null;
@@ -12508,6 +12530,8 @@ var SymbolBuilder = class {
12508
12530
  let tsSymbol;
12509
12531
  if (ts44.isPropertyAccessExpression(node)) {
12510
12532
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.name);
12533
+ } else if (ts44.isCallExpression(node)) {
12534
+ tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.expression);
12511
12535
  } else {
12512
12536
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node);
12513
12537
  }
@@ -12559,7 +12583,7 @@ function unwrapSignalInputWriteTAccessor(expr) {
12559
12583
  };
12560
12584
  }
12561
12585
 
12562
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
12586
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
12563
12587
  var REGISTRY2 = new DomElementSchemaRegistry2();
12564
12588
  var TemplateTypeCheckerImpl = class {
12565
12589
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
@@ -12584,7 +12608,7 @@ var TemplateTypeCheckerImpl = class {
12584
12608
  this.elementTagCache = /* @__PURE__ */ new Map();
12585
12609
  this.isComplete = false;
12586
12610
  }
12587
- getTemplate(component) {
12611
+ getTemplate(component, optimizeFor) {
12588
12612
  const { data } = this.getLatestComponentState(component);
12589
12613
  if (data === null) {
12590
12614
  return null;
@@ -12599,8 +12623,15 @@ var TemplateTypeCheckerImpl = class {
12599
12623
  var _a;
12600
12624
  return ((_a = this.getLatestComponentState(component).data) == null ? void 0 : _a.boundTarget.getUsedPipes()) || null;
12601
12625
  }
12602
- getLatestComponentState(component) {
12603
- this.ensureShimForComponent(component);
12626
+ getLatestComponentState(component, optimizeFor = OptimizeFor.SingleFile) {
12627
+ switch (optimizeFor) {
12628
+ case OptimizeFor.WholeProgram:
12629
+ this.ensureAllShimsForAllFiles();
12630
+ break;
12631
+ case OptimizeFor.SingleFile:
12632
+ this.ensureShimForComponent(component);
12633
+ break;
12634
+ }
12604
12635
  const sf = component.getSourceFile();
12605
12636
  const sfPath = absoluteFromSourceFile(sf);
12606
12637
  const shimPath = TypeCheckShimGenerator.shimFor(sfPath);
@@ -12894,16 +12925,16 @@ var TemplateTypeCheckerImpl = class {
12894
12925
  this.perf.memory(PerfCheckpoint.TtcUpdateProgram);
12895
12926
  });
12896
12927
  }
12897
- getFileData(path2) {
12898
- if (!this.state.has(path2)) {
12899
- this.state.set(path2, {
12928
+ getFileData(path) {
12929
+ if (!this.state.has(path)) {
12930
+ this.state.set(path, {
12900
12931
  hasInlines: false,
12901
12932
  sourceManager: new TemplateSourceManager(),
12902
12933
  isComplete: false,
12903
12934
  shimData: /* @__PURE__ */ new Map()
12904
12935
  });
12905
12936
  }
12906
- return this.state.get(path2);
12937
+ return this.state.get(path);
12907
12938
  }
12908
12939
  getSymbolOfNode(node, component) {
12909
12940
  const builder = this.getOrCreateSymbolBuilder(component);
@@ -13258,18 +13289,190 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
13258
13289
  }
13259
13290
  };
13260
13291
 
13261
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
13292
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
13293
+ import { outputAst as o3 } from "@angular/compiler";
13294
+
13295
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/extract_locals.mjs
13296
+ import { outputAst as o2 } from "@angular/compiler";
13297
+ import ts45 from "typescript";
13298
+ function extractHmrLocals(node, definition, factory, classMetadata, debugInfo) {
13299
+ var _a;
13300
+ const name = ts45.isClassDeclaration(node) && node.name ? node.name.text : null;
13301
+ const visitor = new PotentialTopLevelReadsVisitor();
13302
+ const sourceFile = node.getSourceFile();
13303
+ definition.expression.visitExpression(visitor, null);
13304
+ definition.statements.forEach((statement) => statement.visitStatement(visitor, null));
13305
+ (_a = factory.initializer) == null ? void 0 : _a.visitExpression(visitor, null);
13306
+ factory.statements.forEach((statement) => statement.visitStatement(visitor, null));
13307
+ classMetadata == null ? void 0 : classMetadata.visitStatement(visitor, null);
13308
+ debugInfo == null ? void 0 : debugInfo.visitStatement(visitor, null);
13309
+ const availableTopLevel = getTopLevelDeclarationNames(sourceFile);
13310
+ return Array.from(visitor.allReads).filter((r) => r !== name && availableTopLevel.has(r));
13311
+ }
13312
+ function getTopLevelDeclarationNames(sourceFile) {
13313
+ var _a;
13314
+ const results = /* @__PURE__ */ new Set();
13315
+ for (const node of sourceFile.statements) {
13316
+ if (ts45.isClassDeclaration(node) || ts45.isFunctionDeclaration(node) || ts45.isEnumDeclaration(node) && !((_a = node.modifiers) == null ? void 0 : _a.some((m) => m.kind === ts45.SyntaxKind.ConstKeyword))) {
13317
+ if (node.name) {
13318
+ results.add(node.name.text);
13319
+ }
13320
+ continue;
13321
+ }
13322
+ if (ts45.isVariableStatement(node)) {
13323
+ for (const decl of node.declarationList.declarations) {
13324
+ trackBindingName(decl.name, results);
13325
+ }
13326
+ continue;
13327
+ }
13328
+ if (ts45.isImportDeclaration(node) && node.importClause) {
13329
+ const importClause = node.importClause;
13330
+ if (importClause.isTypeOnly) {
13331
+ continue;
13332
+ }
13333
+ if (importClause.name) {
13334
+ results.add(importClause.name.text);
13335
+ }
13336
+ if (importClause.namedBindings) {
13337
+ const namedBindings = importClause.namedBindings;
13338
+ if (ts45.isNamespaceImport(namedBindings)) {
13339
+ results.add(namedBindings.name.text);
13340
+ } else {
13341
+ namedBindings.elements.forEach((el) => {
13342
+ if (!el.isTypeOnly) {
13343
+ results.add(el.name.text);
13344
+ }
13345
+ });
13346
+ }
13347
+ }
13348
+ continue;
13349
+ }
13350
+ }
13351
+ return results;
13352
+ }
13353
+ function trackBindingName(node, results) {
13354
+ if (ts45.isIdentifier(node)) {
13355
+ results.add(node.text);
13356
+ } else {
13357
+ for (const el of node.elements) {
13358
+ if (!ts45.isOmittedExpression(el)) {
13359
+ trackBindingName(el.name, results);
13360
+ }
13361
+ }
13362
+ }
13363
+ }
13364
+ var PotentialTopLevelReadsVisitor = class extends o2.RecursiveAstVisitor {
13365
+ constructor() {
13366
+ super(...arguments);
13367
+ this.allReads = /* @__PURE__ */ new Set();
13368
+ this.addAllTopLevelIdentifiers = (node) => {
13369
+ if (ts45.isIdentifier(node) && this.isTopLevelIdentifierReference(node)) {
13370
+ this.allReads.add(node.text);
13371
+ } else {
13372
+ ts45.forEachChild(node, this.addAllTopLevelIdentifiers);
13373
+ }
13374
+ };
13375
+ }
13376
+ visitReadVarExpr(ast, context) {
13377
+ this.allReads.add(ast.name);
13378
+ super.visitReadVarExpr(ast, context);
13379
+ }
13380
+ visitWrappedNodeExpr(ast, context) {
13381
+ if (this.isTypeScriptNode(ast.node)) {
13382
+ this.addAllTopLevelIdentifiers(ast.node);
13383
+ }
13384
+ super.visitWrappedNodeExpr(ast, context);
13385
+ }
13386
+ isTopLevelIdentifierReference(node) {
13387
+ const parent = node.parent;
13388
+ if (!parent) {
13389
+ return false;
13390
+ }
13391
+ if (ts45.isSourceFile(parent) || ts45.isExpressionStatement(parent) && parent.expression === node) {
13392
+ return true;
13393
+ }
13394
+ if (ts45.isCallExpression(parent)) {
13395
+ return parent.expression === node || parent.arguments.includes(node);
13396
+ }
13397
+ if (ts45.isPropertyAccessExpression(parent)) {
13398
+ return parent.expression === node;
13399
+ }
13400
+ if (ts45.isArrayLiteralExpression(parent)) {
13401
+ return parent.elements.includes(node);
13402
+ }
13403
+ if (ts45.isPropertyAssignment(parent)) {
13404
+ return parent.initializer === node;
13405
+ }
13406
+ if (ts45.isClassDeclaration(parent)) {
13407
+ return parent.name === node;
13408
+ }
13409
+ return false;
13410
+ }
13411
+ isTypeScriptNode(value) {
13412
+ return !!value && typeof value.kind === "number";
13413
+ }
13414
+ };
13415
+
13416
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
13417
+ function extractHmrMetatadata(clazz, reflection, compilerHost, rootDirs, definition, factory, classMetadata, debugInfo) {
13418
+ if (!reflection.isClass(clazz)) {
13419
+ return null;
13420
+ }
13421
+ const sourceFile = clazz.getSourceFile();
13422
+ const filePath = getProjectRelativePath(sourceFile, rootDirs, compilerHost) || compilerHost.getCanonicalFileName(sourceFile.fileName);
13423
+ const meta = {
13424
+ type: new o3.WrappedNodeExpr(clazz.name),
13425
+ className: clazz.name.text,
13426
+ filePath,
13427
+ locals: extractHmrLocals(clazz, definition, factory, classMetadata, debugInfo),
13428
+ coreName: "__ngCore__"
13429
+ };
13430
+ return meta;
13431
+ }
13432
+
13433
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/update_declaration.mjs
13434
+ import { compileHmrUpdateCallback } from "@angular/compiler";
13435
+ import ts46 from "typescript";
13436
+ function getHmrUpdateDeclaration(compilationResults, constantStatements, meta, sourceFile) {
13437
+ const importRewriter = new HmrModuleImportRewriter(meta.coreName);
13438
+ const importManager = new ImportManager({
13439
+ ...presetImportManagerForceNamespaceImports,
13440
+ rewriter: importRewriter
13441
+ });
13442
+ const callback = compileHmrUpdateCallback(compilationResults, constantStatements, meta);
13443
+ const node = translateStatement(sourceFile, callback, importManager);
13444
+ return ts46.factory.updateFunctionDeclaration(node, [
13445
+ ts46.factory.createToken(ts46.SyntaxKind.ExportKeyword),
13446
+ ts46.factory.createToken(ts46.SyntaxKind.DefaultKeyword)
13447
+ ], node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body);
13448
+ }
13449
+ var HmrModuleImportRewriter = class {
13450
+ constructor(coreName) {
13451
+ this.coreName = coreName;
13452
+ }
13453
+ rewriteNamespaceImportIdentifier(specifier, moduleName) {
13454
+ return moduleName === "@angular/core" ? this.coreName : specifier;
13455
+ }
13456
+ rewriteSymbol(symbol) {
13457
+ return symbol;
13458
+ }
13459
+ rewriteSpecifier(specifier) {
13460
+ return specifier;
13461
+ }
13462
+ };
13463
+
13464
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
13262
13465
  var EMPTY_ARRAY2 = [];
13263
13466
  var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
13264
13467
  var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
13265
13468
  var ComponentDecoratorHandler = class {
13266
- constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, importTracker, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, enableLetSyntax, localCompilationExtraImportsTracker, jitDeclarationRegistry) {
13469
+ constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, compilerHost, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, importTracker, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, enableLetSyntax, externalRuntimeStyles, localCompilationExtraImportsTracker, jitDeclarationRegistry, i18nPreserveSignificantWhitespace, strictStandalone, enableHmr) {
13267
13470
  this.reflector = reflector;
13268
13471
  this.evaluator = evaluator;
13269
13472
  this.metaRegistry = metaRegistry;
13270
13473
  this.metaReader = metaReader;
13271
13474
  this.scopeReader = scopeReader;
13272
- this.dtsScopeReader = dtsScopeReader;
13475
+ this.compilerHost = compilerHost;
13273
13476
  this.scopeRegistry = scopeRegistry;
13274
13477
  this.typeCheckScopeRegistry = typeCheckScopeRegistry;
13275
13478
  this.resourceRegistry = resourceRegistry;
@@ -13300,8 +13503,12 @@ var ComponentDecoratorHandler = class {
13300
13503
  this.forbidOrphanRendering = forbidOrphanRendering;
13301
13504
  this.enableBlockSyntax = enableBlockSyntax;
13302
13505
  this.enableLetSyntax = enableLetSyntax;
13506
+ this.externalRuntimeStyles = externalRuntimeStyles;
13303
13507
  this.localCompilationExtraImportsTracker = localCompilationExtraImportsTracker;
13304
13508
  this.jitDeclarationRegistry = jitDeclarationRegistry;
13509
+ this.i18nPreserveSignificantWhitespace = i18nPreserveSignificantWhitespace;
13510
+ this.strictStandalone = strictStandalone;
13511
+ this.enableHmr = enableHmr;
13305
13512
  this.literalCache = /* @__PURE__ */ new Map();
13306
13513
  this.elementSchemaRegistry = new DomElementSchemaRegistry3();
13307
13514
  this.preanalyzeTemplateCache = /* @__PURE__ */ new Map();
@@ -13313,8 +13520,10 @@ var ComponentDecoratorHandler = class {
13313
13520
  i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
13314
13521
  usePoisonedData: this.usePoisonedData,
13315
13522
  enableBlockSyntax: this.enableBlockSyntax,
13316
- enableLetSyntax: this.enableLetSyntax
13523
+ enableLetSyntax: this.enableLetSyntax,
13524
+ preserveSignificantWhitespace: this.i18nPreserveSignificantWhitespace
13317
13525
  };
13526
+ this.canDeferDeps = !enableHmr;
13318
13527
  }
13319
13528
  detect(node, decorators) {
13320
13529
  if (!decorators) {
@@ -13341,7 +13550,11 @@ var ComponentDecoratorHandler = class {
13341
13550
  const resolveStyleUrl = (styleUrl) => {
13342
13551
  try {
13343
13552
  const resourceUrl = this.resourceLoader.resolve(styleUrl, containingFile);
13344
- return this.resourceLoader.preload(resourceUrl, { type: "style", containingFile });
13553
+ return this.resourceLoader.preload(resourceUrl, {
13554
+ type: "style",
13555
+ containingFile,
13556
+ className: node.name.text
13557
+ });
13345
13558
  } catch {
13346
13559
  return void 0;
13347
13560
  }
@@ -13363,9 +13576,15 @@ var ComponentDecoratorHandler = class {
13363
13576
  const componentStyleUrls = extractComponentStyleUrls(this.evaluator, component);
13364
13577
  return templateAndTemplateStyleResources.then(async (templateInfo) => {
13365
13578
  let styles = null;
13579
+ let orderOffset = 0;
13366
13580
  const rawStyles = parseDirectiveStyles(component, this.evaluator, this.compilationMode);
13367
13581
  if (rawStyles == null ? void 0 : rawStyles.length) {
13368
- styles = await Promise.all(rawStyles.map((style) => this.resourceLoader.preprocessInline(style, { type: "style", containingFile })));
13582
+ styles = await Promise.all(rawStyles.map((style) => this.resourceLoader.preprocessInline(style, {
13583
+ type: "style",
13584
+ containingFile,
13585
+ order: orderOffset++,
13586
+ className: node.name.text
13587
+ })));
13369
13588
  }
13370
13589
  if (templateInfo.templateStyles) {
13371
13590
  styles != null ? styles : styles = [];
@@ -13373,11 +13592,16 @@ var ComponentDecoratorHandler = class {
13373
13592
  var _a;
13374
13593
  return this.resourceLoader.preprocessInline(style, {
13375
13594
  type: "style",
13376
- containingFile: (_a = templateInfo.templateUrl) != null ? _a : containingFile
13595
+ containingFile: (_a = templateInfo.templateUrl) != null ? _a : containingFile,
13596
+ order: orderOffset++,
13597
+ className: node.name.text
13377
13598
  });
13378
13599
  })));
13379
13600
  }
13380
13601
  this.preanalyzeStylesCache.set(node, styles);
13602
+ if (this.externalRuntimeStyles) {
13603
+ return;
13604
+ }
13381
13605
  await Promise.all([
13382
13606
  ...componentStyleUrls.map((styleUrl) => resolveStyleUrl(styleUrl.url)),
13383
13607
  ...templateInfo.templateStyleUrls.map((url) => resolveStyleUrl(url))
@@ -13391,7 +13615,7 @@ var ComponentDecoratorHandler = class {
13391
13615
  this.literalCache.delete(decorator);
13392
13616
  let diagnostics;
13393
13617
  let isPoisoned = false;
13394
- const directiveResult = extractDirectiveMetadata(node, decorator, this.reflector, this.importTracker, this.evaluator, this.refEmitter, this.referencesRegistry, this.isCore, this.annotateForClosureCompiler, this.compilationMode, this.elementSchemaRegistry.getDefaultComponentElementName());
13618
+ const directiveResult = extractDirectiveMetadata(node, decorator, this.reflector, this.importTracker, this.evaluator, this.refEmitter, this.referencesRegistry, this.isCore, this.annotateForClosureCompiler, this.compilationMode, this.elementSchemaRegistry.getDefaultComponentElementName(), this.strictStandalone);
13395
13619
  if (directiveResult.jitForced) {
13396
13620
  this.jitDeclarationRegistry.jitDeclarations.add(node);
13397
13621
  return {};
@@ -13402,13 +13626,13 @@ var ComponentDecoratorHandler = class {
13402
13626
  if (this.compilationMode !== CompilationMode.LOCAL) {
13403
13627
  changeDetection = resolveEnumValue(this.evaluator, component, "changeDetection", "ChangeDetectionStrategy");
13404
13628
  } else if (component.has("changeDetection")) {
13405
- changeDetection = new o2.WrappedNodeExpr(component.get("changeDetection"));
13629
+ changeDetection = new o4.WrappedNodeExpr(component.get("changeDetection"));
13406
13630
  }
13407
13631
  let animations = null;
13408
13632
  let animationTriggerNames = null;
13409
13633
  if (component.has("animations")) {
13410
13634
  const animationExpression = component.get("animations");
13411
- animations = new o2.WrappedNodeExpr(animationExpression);
13635
+ animations = new o4.WrappedNodeExpr(animationExpression);
13412
13636
  const animationsValue = this.evaluator.evaluate(animationExpression, animationTriggerResolver);
13413
13637
  animationTriggerNames = { includesDynamicAnimations: false, staticTriggerNames: [] };
13414
13638
  collectAnimationNames(animationsValue, animationTriggerNames);
@@ -13427,7 +13651,7 @@ var ComponentDecoratorHandler = class {
13427
13651
  if (component.has("viewProviders")) {
13428
13652
  const viewProviders = component.get("viewProviders");
13429
13653
  viewProvidersRequiringFactory = resolveProvidersRequiringFactory(viewProviders, this.reflector, this.evaluator);
13430
- wrappedViewProviders = new o2.WrappedNodeExpr(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(viewProviders) : viewProviders);
13654
+ wrappedViewProviders = new o4.WrappedNodeExpr(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(viewProviders) : viewProviders);
13431
13655
  }
13432
13656
  if (component.has("providers")) {
13433
13657
  providersRequiringFactory = resolveProvidersRequiringFactory(component.get("providers"), this.reflector, this.evaluator);
@@ -13498,7 +13722,8 @@ var ComponentDecoratorHandler = class {
13498
13722
  i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
13499
13723
  usePoisonedData: this.usePoisonedData,
13500
13724
  enableBlockSyntax: this.enableBlockSyntax,
13501
- enableLetSyntax: this.enableLetSyntax
13725
+ enableLetSyntax: this.enableLetSyntax,
13726
+ preserveSignificantWhitespace: this.i18nPreserveSignificantWhitespace
13502
13727
  }, this.compilationMode);
13503
13728
  if (this.compilationMode === CompilationMode.LOCAL && template.errors && template.errors.length > 0) {
13504
13729
  if (diagnostics === void 0) {
@@ -13516,7 +13741,8 @@ var ComponentDecoratorHandler = class {
13516
13741
  expression: template.sourceMapping.node
13517
13742
  };
13518
13743
  let styles = [];
13519
- const styleResources = extractStyleResources(this.resourceLoader, component, containingFile);
13744
+ const externalStyles = [];
13745
+ const styleResources = extractInlineStyleResources(component);
13520
13746
  const styleUrls = [
13521
13747
  ...extractComponentStyleUrls(this.evaluator, component),
13522
13748
  ..._extractTemplateStyleUrls(template)
@@ -13524,6 +13750,16 @@ var ComponentDecoratorHandler = class {
13524
13750
  for (const styleUrl of styleUrls) {
13525
13751
  try {
13526
13752
  const resourceUrl = this.resourceLoader.resolve(styleUrl.url, containingFile);
13753
+ if (this.externalRuntimeStyles) {
13754
+ externalStyles.push(resourceUrl);
13755
+ continue;
13756
+ }
13757
+ if (styleUrl.source === 2 && ts47.isStringLiteralLike(styleUrl.expression)) {
13758
+ styleResources.add({
13759
+ path: absoluteFrom(resourceUrl),
13760
+ expression: styleUrl.expression
13761
+ });
13762
+ }
13527
13763
  const resourceStr = this.resourceLoader.load(resourceUrl);
13528
13764
  styles.push(resourceStr);
13529
13765
  if (this.depTracker !== null) {
@@ -13537,7 +13773,7 @@ var ComponentDecoratorHandler = class {
13537
13773
  diagnostics = [];
13538
13774
  }
13539
13775
  const resourceType = styleUrl.source === 2 ? 2 : 1;
13540
- diagnostics.push(makeResourceNotFoundError(styleUrl.url, styleUrl.nodeForError, resourceType).toDiagnostic());
13776
+ diagnostics.push(makeResourceNotFoundError(styleUrl.url, styleUrl.expression, resourceType).toDiagnostic());
13541
13777
  }
13542
13778
  }
13543
13779
  if (encapsulation === ViewEncapsulation2.ShadowDom && metadata.selector !== null) {
@@ -13553,8 +13789,12 @@ var ComponentDecoratorHandler = class {
13553
13789
  if (this.preanalyzeStylesCache.has(node)) {
13554
13790
  inlineStyles = this.preanalyzeStylesCache.get(node);
13555
13791
  this.preanalyzeStylesCache.delete(node);
13556
- if (inlineStyles !== null) {
13557
- styles.push(...inlineStyles);
13792
+ if (inlineStyles == null ? void 0 : inlineStyles.length) {
13793
+ if (this.externalRuntimeStyles) {
13794
+ externalStyles.push(...inlineStyles);
13795
+ } else {
13796
+ styles.push(...inlineStyles);
13797
+ }
13558
13798
  }
13559
13799
  } else {
13560
13800
  if (this.resourceLoader.canPreprocess) {
@@ -13599,17 +13839,19 @@ var ComponentDecoratorHandler = class {
13599
13839
  changeDetection,
13600
13840
  interpolation: (_d = template.interpolationConfig) != null ? _d : DEFAULT_INTERPOLATION_CONFIG2,
13601
13841
  styles,
13842
+ externalStyles,
13602
13843
  animations,
13603
13844
  viewProviders: wrappedViewProviders,
13604
13845
  i18nUseExternalIds: this.i18nUseExternalIds,
13605
13846
  relativeContextFilePath,
13606
- rawImports: rawImports !== null ? new o2.WrappedNodeExpr(rawImports) : void 0
13847
+ rawImports: rawImports !== null ? new o4.WrappedNodeExpr(rawImports) : void 0
13607
13848
  },
13608
13849
  typeCheckMeta: extractDirectiveTypeCheckMeta(node, inputs, this.reflector),
13609
13850
  classMetadata: this.includeClassMetadata ? extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler, (dec) => transformDecoratorResources(dec, component, styles, template)) : null,
13610
13851
  classDebugInfo: extractClassDebugInfo(
13611
13852
  node,
13612
13853
  this.reflector,
13854
+ this.compilerHost,
13613
13855
  this.rootDirs,
13614
13856
  this.forbidOrphanRendering
13615
13857
  ),
@@ -13663,6 +13905,7 @@ var ComponentDecoratorHandler = class {
13663
13905
  isStandalone: analysis.meta.isStandalone,
13664
13906
  isSignal: analysis.meta.isSignal,
13665
13907
  imports: analysis.resolvedImports,
13908
+ rawImports: analysis.rawImports,
13666
13909
  deferredImports: analysis.resolvedDeferredImports,
13667
13910
  animationTriggerNames: analysis.animationTriggerNames,
13668
13911
  schemas: analysis.schemas,
@@ -13713,7 +13956,7 @@ var ComponentDecoratorHandler = class {
13713
13956
  }
13714
13957
  typeCheck(ctx, node, meta) {
13715
13958
  var _a;
13716
- if (this.typeCheckScopeRegistry === null || !ts45.isClassDeclaration(node)) {
13959
+ if (this.typeCheckScopeRegistry === null || !ts47.isClassDeclaration(node)) {
13717
13960
  return;
13718
13961
  }
13719
13962
  if (meta.isPoisoned && !this.usePoisonedData) {
@@ -13950,11 +14193,11 @@ var ComponentDecoratorHandler = class {
13950
14193
  const importDiagnostics = validateStandaloneImports(analysis.resolvedDeferredImports, analysis.rawDeferredImports, this.metaReader, this.scopeReader, true);
13951
14194
  diagnostics.push(...importDiagnostics);
13952
14195
  }
13953
- if (analysis.providersRequiringFactory !== null && analysis.meta.providers instanceof o2.WrappedNodeExpr) {
14196
+ if (analysis.providersRequiringFactory !== null && analysis.meta.providers instanceof o4.WrappedNodeExpr) {
13954
14197
  const providerDiagnostics = getProviderDiagnostics(analysis.providersRequiringFactory, analysis.meta.providers.node, this.injectableRegistry);
13955
14198
  diagnostics.push(...providerDiagnostics);
13956
14199
  }
13957
- if (analysis.viewProvidersRequiringFactory !== null && analysis.meta.viewProviders instanceof o2.WrappedNodeExpr) {
14200
+ if (analysis.viewProvidersRequiringFactory !== null && analysis.meta.viewProviders instanceof o4.WrappedNodeExpr) {
13958
14201
  const viewProviderDiagnostics = getProviderDiagnostics(analysis.viewProvidersRequiringFactory, analysis.meta.viewProviders.node, this.injectableRegistry);
13959
14202
  diagnostics.push(...viewProviderDiagnostics);
13960
14203
  }
@@ -14007,20 +14250,24 @@ var ComponentDecoratorHandler = class {
14007
14250
  if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
14008
14251
  return [];
14009
14252
  }
14010
- const perComponentDeferredDeps = this.resolveAllDeferredDependencies(resolution);
14253
+ const perComponentDeferredDeps = this.canDeferDeps ? this.resolveAllDeferredDependencies(resolution) : null;
14011
14254
  const meta = {
14012
14255
  ...analysis.meta,
14013
14256
  ...resolution,
14014
14257
  defer: this.compileDeferBlocks(resolution)
14015
14258
  };
14016
14259
  const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget3.Component));
14017
- removeDeferrableTypesFromComponentDecorator(analysis, perComponentDeferredDeps);
14260
+ if (perComponentDeferredDeps !== null) {
14261
+ removeDeferrableTypesFromComponentDecorator(analysis, perComponentDeferredDeps);
14262
+ }
14018
14263
  const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
14019
14264
  const inputTransformFields = compileInputTransformFields(analysis.inputs);
14020
14265
  const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, perComponentDeferredDeps).toStmt() : null;
14021
14266
  const debugInfo = analysis.classDebugInfo !== null ? compileClassDebugInfo(analysis.classDebugInfo).toStmt() : null;
14022
- const deferrableImports = this.deferredSymbolTracker.getDeferrableImportDecls();
14023
- return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, debugInfo);
14267
+ const hmrMeta = this.enableHmr ? extractHmrMetatadata(node, this.reflector, this.compilerHost, this.rootDirs, def, fac, classMetadata, debugInfo) : null;
14268
+ const hmrInitializer = hmrMeta ? compileHmrInitializer(hmrMeta).toStmt() : null;
14269
+ const deferrableImports = this.canDeferDeps ? this.deferredSymbolTracker.getDeferrableImportDecls() : null;
14270
+ return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, debugInfo, hmrInitializer);
14024
14271
  }
14025
14272
  compilePartial(node, analysis, resolution) {
14026
14273
  if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
@@ -14030,9 +14277,9 @@ var ComponentDecoratorHandler = class {
14030
14277
  content: analysis.template.content,
14031
14278
  sourceUrl: analysis.template.declaration.resolvedTemplateUrl,
14032
14279
  isInline: analysis.template.declaration.isInline,
14033
- inlineTemplateLiteralExpression: analysis.template.sourceMapping.type === "direct" ? new o2.WrappedNodeExpr(analysis.template.sourceMapping.node) : null
14280
+ inlineTemplateLiteralExpression: analysis.template.sourceMapping.type === "direct" ? new o4.WrappedNodeExpr(analysis.template.sourceMapping.node) : null
14034
14281
  };
14035
- const perComponentDeferredDeps = this.resolveAllDeferredDependencies(resolution);
14282
+ const perComponentDeferredDeps = this.canDeferDeps ? this.resolveAllDeferredDependencies(resolution) : null;
14036
14283
  const meta = {
14037
14284
  ...analysis.meta,
14038
14285
  ...resolution,
@@ -14042,26 +14289,48 @@ var ComponentDecoratorHandler = class {
14042
14289
  const inputTransformFields = compileInputTransformFields(analysis.inputs);
14043
14290
  const def = compileDeclareComponentFromMetadata(meta, analysis.template, templateInfo);
14044
14291
  const classMetadata = analysis.classMetadata !== null ? compileComponentDeclareClassMetadata(analysis.classMetadata, perComponentDeferredDeps).toStmt() : null;
14045
- const deferrableImports = this.deferredSymbolTracker.getDeferrableImportDecls();
14046
- return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports);
14292
+ const hmrMeta = this.enableHmr ? extractHmrMetatadata(node, this.reflector, this.compilerHost, this.rootDirs, def, fac, classMetadata, null) : null;
14293
+ const hmrInitializer = hmrMeta ? compileHmrInitializer(hmrMeta).toStmt() : null;
14294
+ const deferrableImports = this.canDeferDeps ? this.deferredSymbolTracker.getDeferrableImportDecls() : null;
14295
+ return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, null, hmrInitializer);
14047
14296
  }
14048
14297
  compileLocal(node, analysis, resolution, pool) {
14049
- const deferrableTypes = analysis.explicitlyDeferredTypes;
14298
+ const deferrableTypes = this.canDeferDeps ? analysis.explicitlyDeferredTypes : null;
14050
14299
  const meta = {
14051
14300
  ...analysis.meta,
14052
14301
  ...resolution,
14053
14302
  defer: this.compileDeferBlocks(resolution)
14054
14303
  };
14055
- if (analysis.explicitlyDeferredTypes !== null) {
14056
- removeDeferrableTypesFromComponentDecorator(analysis, analysis.explicitlyDeferredTypes);
14304
+ if (deferrableTypes !== null) {
14305
+ removeDeferrableTypesFromComponentDecorator(analysis, deferrableTypes);
14057
14306
  }
14058
14307
  const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget3.Component));
14059
14308
  const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
14060
14309
  const inputTransformFields = compileInputTransformFields(analysis.inputs);
14061
14310
  const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, deferrableTypes).toStmt() : null;
14062
14311
  const debugInfo = analysis.classDebugInfo !== null ? compileClassDebugInfo(analysis.classDebugInfo).toStmt() : null;
14063
- const deferrableImports = this.deferredSymbolTracker.getDeferrableImportDecls();
14064
- return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, debugInfo);
14312
+ const hmrMeta = this.enableHmr ? extractHmrMetatadata(node, this.reflector, this.compilerHost, this.rootDirs, def, fac, classMetadata, debugInfo) : null;
14313
+ const hmrInitializer = hmrMeta ? compileHmrInitializer(hmrMeta).toStmt() : null;
14314
+ const deferrableImports = this.canDeferDeps ? this.deferredSymbolTracker.getDeferrableImportDecls() : null;
14315
+ return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, debugInfo, hmrInitializer);
14316
+ }
14317
+ compileHmrUpdateDeclaration(node, analysis, resolution) {
14318
+ if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
14319
+ return null;
14320
+ }
14321
+ const pool = new ConstantPool2();
14322
+ const meta = {
14323
+ ...analysis.meta,
14324
+ ...resolution,
14325
+ defer: this.compileDeferBlocks(resolution)
14326
+ };
14327
+ const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget3.Component));
14328
+ const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
14329
+ const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, null).toStmt() : null;
14330
+ const debugInfo = analysis.classDebugInfo !== null ? compileClassDebugInfo(analysis.classDebugInfo).toStmt() : null;
14331
+ const hmrMeta = this.enableHmr ? extractHmrMetatadata(node, this.reflector, this.compilerHost, this.rootDirs, def, fac, classMetadata, debugInfo) : null;
14332
+ const res = compileResults(fac, def, classMetadata, "\u0275cmp", null, null, debugInfo, null);
14333
+ return hmrMeta === null || res.length === 0 ? null : getHmrUpdateDeclaration(res, pool.statements, hmrMeta, node.getSourceFile());
14065
14334
  }
14066
14335
  locateDeferBlocksWithoutScope(template) {
14067
14336
  const deferBlocks = /* @__PURE__ */ new Map();
@@ -14091,12 +14360,12 @@ var ComponentDecoratorHandler = class {
14091
14360
  }
14092
14361
  collectExplicitlyDeferredSymbols(rawDeferredImports) {
14093
14362
  const deferredTypes = /* @__PURE__ */ new Map();
14094
- if (!ts45.isArrayLiteralExpression(rawDeferredImports)) {
14363
+ if (!ts47.isArrayLiteralExpression(rawDeferredImports)) {
14095
14364
  return deferredTypes;
14096
14365
  }
14097
14366
  for (const element of rawDeferredImports.elements) {
14098
14367
  const node = tryUnwrapForwardRef(element, this.reflector) || element;
14099
- if (!ts45.isIdentifier(node)) {
14368
+ if (!ts47.isIdentifier(node)) {
14100
14369
  continue;
14101
14370
  }
14102
14371
  const imp = this.reflector.getImportOfIdentifier(node);
@@ -14163,12 +14432,12 @@ var ComponentDecoratorHandler = class {
14163
14432
  }
14164
14433
  }
14165
14434
  registerDeferrableCandidates(componentClassDecl, importsExpr, isDeferredImport, allDeferredDecls, eagerlyUsedDecls, resolutionData) {
14166
- if (!ts45.isArrayLiteralExpression(importsExpr)) {
14435
+ if (!ts47.isArrayLiteralExpression(importsExpr)) {
14167
14436
  return;
14168
14437
  }
14169
14438
  for (const element of importsExpr.elements) {
14170
14439
  const node = tryUnwrapForwardRef(element, this.reflector) || element;
14171
- if (!ts45.isIdentifier(node)) {
14440
+ if (!ts47.isIdentifier(node)) {
14172
14441
  continue;
14173
14442
  }
14174
14443
  const imp = this.reflector.getImportOfIdentifier(node);
@@ -14252,7 +14521,7 @@ function removeDeferrableTypesFromComponentDecorator(analysis, deferrableTypes)
14252
14521
  if (analysis.classMetadata) {
14253
14522
  const deferrableSymbols = new Set(deferrableTypes.map((t) => t.symbolName));
14254
14523
  const rewrittenDecoratorsNode = removeIdentifierReferences(analysis.classMetadata.decorators.node, deferrableSymbols);
14255
- analysis.classMetadata.decorators = new o2.WrappedNodeExpr(rewrittenDecoratorsNode);
14524
+ analysis.classMetadata.decorators = new o4.WrappedNodeExpr(rewrittenDecoratorsNode);
14256
14525
  }
14257
14526
  }
14258
14527
  function validateNoImportOverlap(eagerDeps, deferredDeps, rawDeferredImports) {
@@ -14300,9 +14569,9 @@ function isDefaultImport(node) {
14300
14569
  return node.importClause !== void 0 && node.importClause.namedBindings === void 0;
14301
14570
  }
14302
14571
 
14303
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
14572
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
14304
14573
  import { compileClassMetadata as compileClassMetadata3, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression3, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr10 } from "@angular/compiler";
14305
- import ts46 from "typescript";
14574
+ import ts48 from "typescript";
14306
14575
  var InjectableDecoratorHandler = class {
14307
14576
  constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, compilationMode, errorOnDuplicateProv = true) {
14308
14577
  this.reflector = reflector;
@@ -14422,7 +14691,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
14422
14691
  };
14423
14692
  } else if (decorator.args.length === 1) {
14424
14693
  const metaNode = decorator.args[0];
14425
- if (!ts46.isObjectLiteralExpression(metaNode)) {
14694
+ if (!ts48.isObjectLiteralExpression(metaNode)) {
14426
14695
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
14427
14696
  }
14428
14697
  const meta = reflectObjectLiteral(metaNode);
@@ -14430,7 +14699,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
14430
14699
  let deps = void 0;
14431
14700
  if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
14432
14701
  const depsExpr = meta.get("deps");
14433
- if (!ts46.isArrayLiteralExpression(depsExpr)) {
14702
+ if (!ts48.isArrayLiteralExpression(depsExpr)) {
14434
14703
  throw new FatalDiagnosticError(ErrorCode.VALUE_NOT_LITERAL, depsExpr, `@Injectable deps metadata must be an inline array`);
14435
14704
  }
14436
14705
  deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
@@ -14515,12 +14784,12 @@ function getDep(dep, reflector) {
14515
14784
  }
14516
14785
  return true;
14517
14786
  }
14518
- if (ts46.isArrayLiteralExpression(dep)) {
14787
+ if (ts48.isArrayLiteralExpression(dep)) {
14519
14788
  dep.elements.forEach((el) => {
14520
14789
  let isDecorator = false;
14521
- if (ts46.isIdentifier(el)) {
14790
+ if (ts48.isIdentifier(el)) {
14522
14791
  isDecorator = maybeUpdateDecorator(el, reflector);
14523
- } else if (ts46.isNewExpression(el) && ts46.isIdentifier(el.expression)) {
14792
+ } else if (ts48.isNewExpression(el) && ts48.isIdentifier(el.expression)) {
14524
14793
  const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || void 0;
14525
14794
  isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
14526
14795
  }
@@ -14532,9 +14801,9 @@ function getDep(dep, reflector) {
14532
14801
  return meta;
14533
14802
  }
14534
14803
 
14535
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
14804
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
14536
14805
  import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
14537
- import ts47 from "typescript";
14806
+ import ts49 from "typescript";
14538
14807
  var PipeSymbol = class extends SemanticSymbol {
14539
14808
  constructor(decl, name) {
14540
14809
  super(decl);
@@ -14551,7 +14820,7 @@ var PipeSymbol = class extends SemanticSymbol {
14551
14820
  }
14552
14821
  };
14553
14822
  var PipeDecoratorHandler = class {
14554
- constructor(reflector, evaluator, metaRegistry, scopeRegistry, injectableRegistry, isCore, perf, includeClassMetadata, compilationMode, generateExtraImportsInLocalMode) {
14823
+ constructor(reflector, evaluator, metaRegistry, scopeRegistry, injectableRegistry, isCore, perf, includeClassMetadata, compilationMode, generateExtraImportsInLocalMode, strictStandalone) {
14555
14824
  this.reflector = reflector;
14556
14825
  this.evaluator = evaluator;
14557
14826
  this.metaRegistry = metaRegistry;
@@ -14562,6 +14831,7 @@ var PipeDecoratorHandler = class {
14562
14831
  this.includeClassMetadata = includeClassMetadata;
14563
14832
  this.compilationMode = compilationMode;
14564
14833
  this.generateExtraImportsInLocalMode = generateExtraImportsInLocalMode;
14834
+ this.strictStandalone = strictStandalone;
14565
14835
  this.precedence = HandlerPrecedence.PRIMARY;
14566
14836
  this.name = "PipeDecoratorHandler";
14567
14837
  }
@@ -14592,7 +14862,7 @@ var PipeDecoratorHandler = class {
14592
14862
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, "@Pipe must have exactly one argument");
14593
14863
  }
14594
14864
  const meta = unwrapExpression(decorator.args[0]);
14595
- if (!ts47.isObjectLiteralExpression(meta)) {
14865
+ if (!ts49.isObjectLiteralExpression(meta)) {
14596
14866
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
14597
14867
  }
14598
14868
  const pipe = reflectObjectLiteral(meta);
@@ -14613,7 +14883,7 @@ var PipeDecoratorHandler = class {
14613
14883
  }
14614
14884
  pure = pureValue;
14615
14885
  }
14616
- let isStandalone = false;
14886
+ let isStandalone = NG_STANDALONE_DEFAULT_VALUE;
14617
14887
  if (pipe.has("standalone")) {
14618
14888
  const expr = pipe.get("standalone");
14619
14889
  const resolved = this.evaluator.evaluate(expr);
@@ -14621,6 +14891,9 @@ var PipeDecoratorHandler = class {
14621
14891
  throw createValueHasWrongTypeError(expr, resolved, `standalone flag must be a boolean`);
14622
14892
  }
14623
14893
  isStandalone = resolved;
14894
+ if (!isStandalone && this.strictStandalone) {
14895
+ throw new FatalDiagnosticError(ErrorCode.NON_STANDALONE_NOT_ALLOWED, expr, `Only standalone pipes are allowed when 'strictStandalone' is enabled.`);
14896
+ }
14624
14897
  }
14625
14898
  return {
14626
14899
  analysis: {
@@ -14753,7 +15026,14 @@ export {
14753
15026
  * Copyright Google LLC All Rights Reserved.
14754
15027
  *
14755
15028
  * Use of this source code is governed by an MIT-style license that can be
14756
- * found in the LICENSE file at https://angular.io/license
15029
+ * found in the LICENSE file at https://angular.dev/license
15030
+ */
15031
+ /**
15032
+ * @license
15033
+ * Copyright Google LLC All Rights Reserved.
15034
+ *
15035
+ * Use of this source code is governed by an MIT-style license that can be
15036
+ * found in the LICENSE file at https://angular.dev/license
14757
15037
  */
14758
15038
  /**
14759
15039
  * @license
@@ -14762,4 +15042,4 @@ export {
14762
15042
  * Use of this source code is governed by an MIT-style license that can be
14763
15043
  * found in the LICENSE file at https://angular.io/license
14764
15044
  */
14765
- //# sourceMappingURL=chunk-VNKFV2MZ.js.map
15045
+ //# sourceMappingURL=chunk-GVXGZHIM.js.map