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

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-WR7TUJ7M.js → chunk-3Z25BX6N.js} +8 -8
  2. package/bundles/{chunk-QJ5A7O7J.js → chunk-5AXLJZ3D.js} +367 -186
  3. package/bundles/chunk-5AXLJZ3D.js.map +6 -0
  4. package/bundles/{chunk-CNPXFKGI.js → chunk-CE344QNW.js} +4 -4
  5. package/bundles/{chunk-UWZBW4E4.js → chunk-EJZF542V.js} +7 -7
  6. package/bundles/chunk-EJZF542V.js.map +6 -0
  7. package/bundles/{chunk-5DVL3S3Z.js → chunk-O2RMLJTP.js} +79 -52
  8. package/bundles/chunk-O2RMLJTP.js.map +6 -0
  9. package/bundles/{chunk-VNKFV2MZ.js → chunk-Q4DA5WRV.js} +514 -247
  10. package/bundles/chunk-Q4DA5WRV.js.map +6 -0
  11. package/bundles/{chunk-SBDNBITT.js → chunk-RT2QTF73.js} +4 -4
  12. package/bundles/{chunk-XNL3EK5H.js → chunk-UJ2J6WV4.js} +43 -9
  13. package/bundles/{chunk-XNL3EK5H.js.map → chunk-UJ2J6WV4.js.map} +3 -3
  14. package/bundles/{chunk-B4ZOGV3N.js → chunk-WIYBGC3E.js} +55 -48
  15. package/bundles/chunk-WIYBGC3E.js.map +6 -0
  16. package/bundles/{chunk-DK2K5DIA.js → chunk-WO73PLUB.js} +13 -13
  17. package/bundles/{chunk-DK2K5DIA.js.map → chunk-WO73PLUB.js.map} +1 -1
  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-CE344QNW.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,7 @@ 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
4069
4077
  var LocalModuleScopeRegistry = class {
4070
4078
  constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
4071
4079
  this.localReader = localReader;
@@ -4406,7 +4414,7 @@ function reexportCollision(module, refA, refB) {
4406
4414
  ]);
4407
4415
  }
4408
4416
 
4409
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4417
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
4410
4418
  import { CssSelector, SelectorMatcher } from "@angular/compiler";
4411
4419
  import ts18 from "typescript";
4412
4420
  var TypeCheckScopeRegistry = class {
@@ -4487,14 +4495,14 @@ var TypeCheckScopeRegistry = class {
4487
4495
  }
4488
4496
  };
4489
4497
 
4490
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4498
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4491
4499
  import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
4492
4500
 
4493
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4501
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4494
4502
  import { createMayBeForwardRefExpression as createMayBeForwardRefExpression2, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
4495
4503
  import ts22 from "typescript";
4496
4504
 
4497
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
4505
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
4498
4506
  function validateAccessOfInitializerApiMember({ api, call }, member) {
4499
4507
  if (!api.allowedAccessLevels.includes(member.accessLevel)) {
4500
4508
  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 +4511,7 @@ function validateAccessOfInitializerApiMember({ api, call }, member) {
4503
4511
  }
4504
4512
  }
4505
4513
 
4506
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
4514
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
4507
4515
  import ts19 from "typescript";
4508
4516
  function tryParseInitializerApi(functions, expression, reflector, importTracker) {
4509
4517
  if (!ts19.isCallExpression(expression)) {
@@ -4572,7 +4580,7 @@ function parseTopLevelCallFromNamespace(call, functions, importTracker) {
4572
4580
  return { api: matchingApi, apiReference, isRequired };
4573
4581
  }
4574
4582
 
4575
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
4583
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
4576
4584
  import ts20 from "typescript";
4577
4585
  function parseAndValidateInputAndOutputOptions(optionsNode) {
4578
4586
  if (!ts20.isObjectLiteralExpression(optionsNode)) {
@@ -4590,7 +4598,7 @@ function parseAndValidateInputAndOutputOptions(optionsNode) {
4590
4598
  return { alias };
4591
4599
  }
4592
4600
 
4593
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
4601
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
4594
4602
  var INPUT_INITIALIZER_FN = {
4595
4603
  functionName: "input",
4596
4604
  owningModule: "@angular/core",
@@ -4622,7 +4630,7 @@ function tryParseSignalInputMapping(member, reflector, importTracker) {
4622
4630
  };
4623
4631
  }
4624
4632
 
4625
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
4633
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
4626
4634
  var MODEL_INITIALIZER_FN = {
4627
4635
  functionName: "model",
4628
4636
  owningModule: "@angular/core",
@@ -4663,7 +4671,7 @@ function tryParseSignalModelMapping(member, reflector, importTracker) {
4663
4671
  };
4664
4672
  }
4665
4673
 
4666
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
4674
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
4667
4675
  var allowedAccessLevels = [
4668
4676
  ClassMemberAccessLevel.PublicWritable,
4669
4677
  ClassMemberAccessLevel.PublicReadonly,
@@ -4707,7 +4715,7 @@ function tryParseInitializerBasedOutput(member, reflector, importTracker) {
4707
4715
  };
4708
4716
  }
4709
4717
 
4710
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
4718
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
4711
4719
  import { createMayBeForwardRefExpression, outputAst as o } from "@angular/compiler";
4712
4720
  import ts21 from "typescript";
4713
4721
  var queryFunctionNames = [
@@ -4792,7 +4800,10 @@ function parseDescendantsOption(value) {
4792
4800
  throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, value, `Expected "descendants" option to be a boolean literal.`);
4793
4801
  }
4794
4802
 
4795
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4803
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/standalone-default-value.mjs
4804
+ var NG_STANDALONE_DEFAULT_VALUE = true;
4805
+
4806
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4796
4807
  var EMPTY_OBJECT = {};
4797
4808
  var queryDecoratorNames = [
4798
4809
  "ViewChild",
@@ -4801,7 +4812,7 @@ var queryDecoratorNames = [
4801
4812
  "ContentChildren"
4802
4813
  ];
4803
4814
  var QUERY_TYPES = new Set(queryDecoratorNames);
4804
- function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, evaluator, refEmitter, referencesRegistry, isCore, annotateForClosureCompiler, compilationMode, defaultSelector) {
4815
+ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, evaluator, refEmitter, referencesRegistry, isCore, annotateForClosureCompiler, compilationMode, defaultSelector, strictStandalone) {
4805
4816
  let directive;
4806
4817
  if (decorator.args === null || decorator.args.length === 0) {
4807
4818
  directive = /* @__PURE__ */ new Map();
@@ -4868,7 +4879,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
4868
4879
  const rawCtorDeps = getConstructorDependencies(clazz, reflector, isCore);
4869
4880
  const ctorDeps = selector !== null ? validateConstructorDependencies(clazz, rawCtorDeps) : unwrapConstructorDependencies(rawCtorDeps);
4870
4881
  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;
4882
+ let isStandalone = NG_STANDALONE_DEFAULT_VALUE;
4872
4883
  if (directive.has("standalone")) {
4873
4884
  const expr = directive.get("standalone");
4874
4885
  const resolved = evaluator.evaluate(expr);
@@ -4876,6 +4887,9 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
4876
4887
  throw createValueHasWrongTypeError(expr, resolved, `standalone flag must be a boolean`);
4877
4888
  }
4878
4889
  isStandalone = resolved;
4890
+ if (!isStandalone && strictStandalone) {
4891
+ throw new FatalDiagnosticError(ErrorCode.NON_STANDALONE_NOT_ALLOWED, expr, `Only standalone components/directives are allowed when 'strictStandalone' is enabled.`);
4892
+ }
4879
4893
  }
4880
4894
  let isSignal = false;
4881
4895
  if (directive.has("signals")) {
@@ -5594,7 +5608,7 @@ function toR3InputMetadata(mapping) {
5594
5608
  };
5595
5609
  }
5596
5610
 
5597
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
5611
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
5598
5612
  var DirectiveSymbol = class extends SemanticSymbol {
5599
5613
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
5600
5614
  super(decl);
@@ -5674,7 +5688,7 @@ function isBaseClassEqual(current, previous) {
5674
5688
  return isSymbolEqual(current, previous);
5675
5689
  }
5676
5690
 
5677
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
5691
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
5678
5692
  var FIELD_DECORATORS = [
5679
5693
  "Input",
5680
5694
  "Output",
@@ -5696,7 +5710,7 @@ var LIFECYCLE_HOOKS = /* @__PURE__ */ new Set([
5696
5710
  "ngAfterContentChecked"
5697
5711
  ]);
5698
5712
  var DirectiveDecoratorHandler = class {
5699
- constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf, importTracker, includeClassMetadata, compilationMode, jitDeclarationRegistry) {
5713
+ constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf, importTracker, includeClassMetadata, compilationMode, jitDeclarationRegistry, strictStandalone) {
5700
5714
  this.reflector = reflector;
5701
5715
  this.evaluator = evaluator;
5702
5716
  this.metaRegistry = metaRegistry;
@@ -5714,6 +5728,7 @@ var DirectiveDecoratorHandler = class {
5714
5728
  this.includeClassMetadata = includeClassMetadata;
5715
5729
  this.compilationMode = compilationMode;
5716
5730
  this.jitDeclarationRegistry = jitDeclarationRegistry;
5731
+ this.strictStandalone = strictStandalone;
5717
5732
  this.precedence = HandlerPrecedence.PRIMARY;
5718
5733
  this.name = "DirectiveDecoratorHandler";
5719
5734
  }
@@ -5746,7 +5761,8 @@ var DirectiveDecoratorHandler = class {
5746
5761
  this.isCore,
5747
5762
  this.annotateForClosureCompiler,
5748
5763
  this.compilationMode,
5749
- null
5764
+ null,
5765
+ this.strictStandalone
5750
5766
  );
5751
5767
  if (directiveResult.jitForced) {
5752
5768
  this.jitDeclarationRegistry.jitDeclarations.add(node);
@@ -5802,6 +5818,7 @@ var DirectiveDecoratorHandler = class {
5802
5818
  isStandalone: analysis.meta.isStandalone,
5803
5819
  isSignal: analysis.meta.isSignal,
5804
5820
  imports: null,
5821
+ rawImports: null,
5805
5822
  deferredImports: null,
5806
5823
  schemas: null,
5807
5824
  ngContentSelectors: null,
@@ -5870,11 +5887,11 @@ var DirectiveDecoratorHandler = class {
5870
5887
  }
5871
5888
  };
5872
5889
 
5873
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5890
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5874
5891
  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
5892
  import ts24 from "typescript";
5876
5893
 
5877
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5894
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5878
5895
  import ts23 from "typescript";
5879
5896
  function createModuleWithProvidersResolver(reflector, isCore) {
5880
5897
  function _reflectModuleFromTypeParam(type, node) {
@@ -5946,7 +5963,7 @@ function isResolvedModuleWithProviders(sv) {
5946
5963
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
5947
5964
  }
5948
5965
 
5949
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5966
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5950
5967
  var NgModuleSymbol = class extends SemanticSymbol {
5951
5968
  constructor(decl, hasProviders) {
5952
5969
  super(decl);
@@ -6565,12 +6582,12 @@ function isSyntheticReference(ref) {
6565
6582
  return ref.synthetic;
6566
6583
  }
6567
6584
 
6568
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
6585
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
6569
6586
  function makeCyclicImportInfo(ref, type, cycle) {
6570
6587
  const name = ref.debugName || "(unknown)";
6571
- const path2 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
6588
+ const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
6572
6589
  const message = `The ${type} '${name}' is used in the template but importing it would create a cycle: `;
6573
- return makeRelatedInformation(ref.node, message + path2);
6590
+ return makeRelatedInformation(ref.node, message + path);
6574
6591
  }
6575
6592
  function checkCustomElementSelectorForErrors(selector) {
6576
6593
  if (selector.includes(".") || selector.includes("[") && selector.includes("]")) {
@@ -6588,7 +6605,7 @@ function checkCustomElementSelectorForErrors(selector) {
6588
6605
  return null;
6589
6606
  }
6590
6607
 
6591
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
6608
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
6592
6609
  import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
6593
6610
  import ts25 from "typescript";
6594
6611
  function getTemplateDeclarationNodeForError(declaration) {
@@ -6674,12 +6691,14 @@ function parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedSt
6674
6691
  };
6675
6692
  const parsedTemplate = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", {
6676
6693
  ...commonParseOptions,
6677
- preserveWhitespaces: template.preserveWhitespaces
6694
+ preserveWhitespaces: template.preserveWhitespaces,
6695
+ preserveSignificantWhitespace: options.preserveSignificantWhitespace
6678
6696
  });
6679
6697
  const { nodes: diagNodes } = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", {
6680
6698
  ...commonParseOptions,
6681
6699
  preserveWhitespaces: true,
6682
6700
  preserveLineEndings: true,
6701
+ preserveSignificantWhitespace: true,
6683
6702
  leadingTriviaChars: []
6684
6703
  });
6685
6704
  return {
@@ -6753,7 +6772,8 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
6753
6772
  const resourceUrl = resourceLoader.resolve(templateUrl, containingFile);
6754
6773
  const templatePromise = resourceLoader.preload(resourceUrl, {
6755
6774
  type: "template",
6756
- containingFile
6775
+ containingFile,
6776
+ className: node.name.text
6757
6777
  });
6758
6778
  if (templatePromise !== void 0) {
6759
6779
  return templatePromise.then(() => {
@@ -6855,7 +6875,7 @@ function extractComponentStyleUrls(evaluator, component) {
6855
6875
  {
6856
6876
  url: styleUrl,
6857
6877
  source: 2,
6858
- nodeForError: styleUrlExpr
6878
+ expression: styleUrlExpr
6859
6879
  }
6860
6880
  ];
6861
6881
  }
@@ -6875,7 +6895,7 @@ function extractStyleUrlsFromExpression(evaluator, styleUrlsExpr) {
6875
6895
  styleUrls.push({
6876
6896
  url: styleUrl,
6877
6897
  source: 2,
6878
- nodeForError: styleUrlExpr
6898
+ expression: styleUrlExpr
6879
6899
  });
6880
6900
  }
6881
6901
  }
@@ -6888,32 +6908,17 @@ function extractStyleUrlsFromExpression(evaluator, styleUrlsExpr) {
6888
6908
  styleUrls.push({
6889
6909
  url: styleUrl,
6890
6910
  source: 2,
6891
- nodeForError: styleUrlsExpr
6911
+ expression: styleUrlsExpr
6892
6912
  });
6893
6913
  }
6894
6914
  }
6895
6915
  return styleUrls;
6896
6916
  }
6897
- function extractStyleResources(resourceLoader, component, containingFile) {
6917
+ function extractInlineStyleResources(component) {
6898
6918
  const styles = /* @__PURE__ */ new Set();
6899
6919
  function stringLiteralElements(array) {
6900
6920
  return array.elements.filter((e) => ts25.isStringLiteralLike(e));
6901
6921
  }
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
6922
  const stylesExpr = component.get("styles");
6918
6923
  if (stylesExpr !== void 0) {
6919
6924
  if (ts25.isArrayLiteralExpression(stylesExpr)) {
@@ -6926,27 +6931,19 @@ function extractStyleResources(resourceLoader, component, containingFile) {
6926
6931
  }
6927
6932
  return styles;
6928
6933
  }
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
6934
  function _extractTemplateStyleUrls(template) {
6938
6935
  if (template.styleUrls === null) {
6939
6936
  return [];
6940
6937
  }
6941
- const nodeForError = getTemplateDeclarationNodeForError(template.declaration);
6938
+ const expression = getTemplateDeclarationNodeForError(template.declaration);
6942
6939
  return template.styleUrls.map((url) => ({
6943
6940
  url,
6944
6941
  source: 1,
6945
- nodeForError
6942
+ expression
6946
6943
  }));
6947
6944
  }
6948
6945
 
6949
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
6946
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
6950
6947
  var ComponentSymbol = class extends DirectiveSymbol {
6951
6948
  constructor() {
6952
6949
  super(...arguments);
@@ -6981,7 +6978,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
6981
6978
  }
6982
6979
  };
6983
6980
 
6984
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
6981
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
6985
6982
  function collectAnimationNames(value, animationTriggerNames) {
6986
6983
  if (value instanceof Map) {
6987
6984
  const name = value.get("name");
@@ -7058,10 +7055,10 @@ function isLikelyModuleWithProviders(value) {
7058
7055
  return false;
7059
7056
  }
7060
7057
 
7061
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
7058
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
7062
7059
  import { CssSelector as CssSelector3, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr7, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
7063
7060
 
7064
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
7061
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
7065
7062
  var NgOriginalFile = Symbol("NgOriginalFile");
7066
7063
  var UpdateMode;
7067
7064
  (function(UpdateMode2) {
@@ -7069,13 +7066,13 @@ var UpdateMode;
7069
7066
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
7070
7067
  })(UpdateMode || (UpdateMode = {}));
7071
7068
 
7072
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7069
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7073
7070
  import ts27 from "typescript";
7074
7071
 
7075
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7072
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7076
7073
  import ts26 from "typescript";
7077
7074
 
7078
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
7075
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
7079
7076
  var NgExtension = Symbol("NgExtension");
7080
7077
  function isExtended(sf) {
7081
7078
  return sf[NgExtension] !== void 0;
@@ -7135,13 +7132,13 @@ function retagTsFile(sf) {
7135
7132
  }
7136
7133
  }
7137
7134
 
7138
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
7135
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
7139
7136
  var TS_EXTENSIONS = /\.tsx?$/i;
7140
7137
  function makeShimFileName(fileName, suffix) {
7141
7138
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
7142
7139
  }
7143
7140
 
7144
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7141
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
7145
7142
  var ShimAdapter = class {
7146
7143
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
7147
7144
  this.delegate = delegate;
@@ -7236,7 +7233,7 @@ var ShimAdapter = class {
7236
7233
  }
7237
7234
  };
7238
7235
 
7239
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
7236
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
7240
7237
  var ShimReferenceTagger = class {
7241
7238
  constructor(shimExtensions) {
7242
7239
  this.tagged = /* @__PURE__ */ new Set();
@@ -7270,7 +7267,7 @@ var ShimReferenceTagger = class {
7270
7267
  }
7271
7268
  };
7272
7269
 
7273
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7270
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
7274
7271
  var DelegatingCompilerHost = class {
7275
7272
  get jsDocParsingMode() {
7276
7273
  return this.delegate.jsDocParsingMode;
@@ -7388,7 +7385,7 @@ var TsCreateProgramDriver = class {
7388
7385
  }
7389
7386
  };
7390
7387
 
7391
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
7388
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
7392
7389
  import ts28 from "typescript";
7393
7390
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
7394
7391
  var _a;
@@ -7499,7 +7496,7 @@ function parseTemplateAsSourceFile(fileName, template) {
7499
7496
  );
7500
7497
  }
7501
7498
 
7502
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
7499
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
7503
7500
  var TEMPLATE_ID = Symbol("ngTemplateId");
7504
7501
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
7505
7502
  function getTemplateId(clazz) {
@@ -7516,11 +7513,11 @@ function allocateTemplateId(sf) {
7516
7513
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
7517
7514
  }
7518
7515
 
7519
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7516
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7520
7517
  import { EmptyExpr, ImplicitReceiver, PropertyRead, PropertyWrite, SafePropertyRead, TmplAstLetDeclaration, TmplAstReference, TmplAstTextAttribute } from "@angular/compiler";
7521
7518
  import ts30 from "typescript";
7522
7519
 
7523
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
7520
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
7524
7521
  import { AbsoluteSourceSpan } from "@angular/compiler";
7525
7522
  import ts29 from "typescript";
7526
7523
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -7651,7 +7648,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
7651
7648
  }) || false;
7652
7649
  }
7653
7650
 
7654
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7651
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
7655
7652
  var CompletionEngine = class {
7656
7653
  constructor(tcb, data, tcbPath, tcbIsShim) {
7657
7654
  this.tcb = tcb;
@@ -8841,10 +8838,10 @@ var MagicString = class {
8841
8838
  }
8842
8839
  };
8843
8840
 
8844
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
8841
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
8845
8842
  import ts43 from "typescript";
8846
8843
 
8847
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
8844
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
8848
8845
  import { DomElementSchemaRegistry } from "@angular/compiler";
8849
8846
  import ts31 from "typescript";
8850
8847
  var REGISTRY = new DomElementSchemaRegistry();
@@ -8897,10 +8894,10 @@ var RegistryDomSchemaChecker = class {
8897
8894
  }
8898
8895
  };
8899
8896
 
8900
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
8897
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
8901
8898
  import ts36 from "typescript";
8902
8899
 
8903
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
8900
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
8904
8901
  import { ExpressionType, ExternalExpr as ExternalExpr6, TypeModifier } from "@angular/compiler";
8905
8902
  var ReferenceEmitEnvironment = class {
8906
8903
  constructor(importManager, refEmitter, reflector, contextFile) {
@@ -8931,7 +8928,7 @@ var ReferenceEmitEnvironment = class {
8931
8928
  }
8932
8929
  };
8933
8930
 
8934
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
8931
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
8935
8932
  import ts32 from "typescript";
8936
8933
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
8937
8934
  ts32.SyntaxKind.ParenthesizedExpression,
@@ -9014,15 +9011,15 @@ function tsNumericExpression(value) {
9014
9011
  return ts32.factory.createNumericLiteral(value);
9015
9012
  }
9016
9013
 
9017
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9014
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9018
9015
  import { ExpressionType as ExpressionType2, R3Identifiers as R3Identifiers3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
9019
9016
  import ts35 from "typescript";
9020
9017
 
9021
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9018
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9022
9019
  import { R3Identifiers as R3Identifiers2 } from "@angular/compiler";
9023
9020
  import ts34 from "typescript";
9024
9021
 
9025
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
9022
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
9026
9023
  import ts33 from "typescript";
9027
9024
  var TypeParameterEmitter = class {
9028
9025
  constructor(typeParameters, reflector) {
@@ -9100,7 +9097,7 @@ var TypeParameterEmitter = class {
9100
9097
  }
9101
9098
  };
9102
9099
 
9103
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9100
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
9104
9101
  var TCB_FILE_IMPORT_GRAPH_PREPARE_IDENTIFIERS = [
9105
9102
  R3Identifiers2.InputSignalBrandWriteType
9106
9103
  ];
@@ -9192,7 +9189,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
9192
9189
  return emitter.canEmit((ref) => env.canReferenceType(ref));
9193
9190
  }
9194
9191
 
9195
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9192
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
9196
9193
  function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
9197
9194
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
9198
9195
  const rawType = ts35.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -9315,7 +9312,7 @@ function typeParametersWithDefaultTypes(params) {
9315
9312
  });
9316
9313
  }
9317
9314
 
9318
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
9315
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
9319
9316
  var Environment = class extends ReferenceEmitEnvironment {
9320
9317
  constructor(config, importManager, refEmitter, reflector, contextFile) {
9321
9318
  super(importManager, refEmitter, reflector, contextFile);
@@ -9387,7 +9384,7 @@ var Environment = class extends ReferenceEmitEnvironment {
9387
9384
  }
9388
9385
  };
9389
9386
 
9390
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
9387
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
9391
9388
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2, TmplAstElement } from "@angular/compiler";
9392
9389
  import ts37 from "typescript";
9393
9390
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -9589,7 +9586,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
9589
9586
  };
9590
9587
  }
9591
9588
 
9592
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
9589
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
9593
9590
  import ts38 from "typescript";
9594
9591
  var TypeCheckShimGenerator = class {
9595
9592
  constructor() {
@@ -9607,11 +9604,11 @@ var TypeCheckShimGenerator = class {
9607
9604
  }
9608
9605
  };
9609
9606
 
9610
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
9607
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
9611
9608
  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
9609
  import ts41 from "typescript";
9613
9610
 
9614
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
9611
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
9615
9612
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
9616
9613
  import ts39 from "typescript";
9617
9614
  function wrapForDiagnostics(expr) {
@@ -9667,7 +9664,7 @@ function translateDiagnostic(diagnostic, resolver) {
9667
9664
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
9668
9665
  }
9669
9666
 
9670
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
9667
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
9671
9668
  import { ASTWithSource, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead2, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
9672
9669
  import ts40 from "typescript";
9673
9670
  var ANY_EXPRESSION = ts40.factory.createAsExpression(ts40.factory.createNumericLiteral("0"), ts40.factory.createKeywordTypeNode(ts40.SyntaxKind.AnyKeyword));
@@ -9829,6 +9826,12 @@ var AstTranslator = class {
9829
9826
  addParseSpanInfo(node, ast.sourceSpan);
9830
9827
  return node;
9831
9828
  }
9829
+ visitTypeofExpresion(ast) {
9830
+ const expression = wrapForDiagnostics(this.translate(ast.expression));
9831
+ const node = ts40.factory.createTypeOfExpression(expression);
9832
+ addParseSpanInfo(node, ast.sourceSpan);
9833
+ return node;
9834
+ }
9832
9835
  visitPropertyRead(ast) {
9833
9836
  const receiver = wrapForDiagnostics(this.translate(ast.receiver));
9834
9837
  const name = ts40.factory.createPropertyAccessExpression(receiver, ast.name);
@@ -9979,6 +9982,9 @@ var _VeSafeLhsInferenceBugDetector = class {
9979
9982
  visitPrefixNot(ast) {
9980
9983
  return ast.expression.visit(this);
9981
9984
  }
9985
+ visitTypeofExpresion(ast) {
9986
+ return ast.expression.visit(this);
9987
+ }
9982
9988
  visitNonNullAssert(ast) {
9983
9989
  return ast.expression.visit(this);
9984
9990
  }
@@ -10000,7 +10006,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
10000
10006
  _VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
10001
10007
  })();
10002
10008
 
10003
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
10009
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
10004
10010
  var TcbGenericContextBehavior;
10005
10011
  (function(TcbGenericContextBehavior2) {
10006
10012
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -11266,6 +11272,9 @@ var _Scope = class {
11266
11272
  appendDeferredBlock(block) {
11267
11273
  this.appendDeferredTriggers(block, block.triggers);
11268
11274
  this.appendDeferredTriggers(block, block.prefetchTriggers);
11275
+ if (block.hydrateTriggers.when) {
11276
+ this.opQueue.push(new TcbExpressionOp(this.tcb, this, block.hydrateTriggers.when.value));
11277
+ }
11269
11278
  this.appendChildren(block);
11270
11279
  if (block.placeholder !== null) {
11271
11280
  this.appendChildren(block.placeholder);
@@ -11336,7 +11345,7 @@ var TcbExpressionTranslator = class {
11336
11345
  return astToTypescript(ast, (ast2) => this.resolve(ast2), this.tcb.env.config);
11337
11346
  }
11338
11347
  resolve(ast) {
11339
- if (ast instanceof PropertyRead3 && ast.receiver instanceof ImplicitReceiver2) {
11348
+ if (ast instanceof PropertyRead3 && ast.receiver instanceof ImplicitReceiver2 && !(ast.receiver instanceof ThisReceiver)) {
11340
11349
  const target = this.tcb.boundTarget.getExpressionTarget(ast);
11341
11350
  const targetExpression = target === null ? null : this.getTargetNodeExpression(target, ast);
11342
11351
  if (target instanceof TmplAstLetDeclaration2 && !this.isValidLetDeclarationAccess(target, ast)) {
@@ -11590,7 +11599,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
11590
11599
  }
11591
11600
  };
11592
11601
 
11593
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
11602
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
11594
11603
  import ts42 from "typescript";
11595
11604
  var TypeCheckFile = class extends Environment {
11596
11605
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -11638,7 +11647,7 @@ var TypeCheckFile = class extends Environment {
11638
11647
  }
11639
11648
  };
11640
11649
 
11641
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
11650
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
11642
11651
  var InliningMode;
11643
11652
  (function(InliningMode2) {
11644
11653
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -11890,10 +11899,10 @@ var TypeCtorOp = class {
11890
11899
  }
11891
11900
  };
11892
11901
 
11893
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
11902
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
11894
11903
  import { ParseLocation as ParseLocation2, ParseSourceSpan as ParseSourceSpan2 } from "@angular/compiler";
11895
11904
 
11896
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
11905
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
11897
11906
  var LF_CHAR = 10;
11898
11907
  var CR_CHAR = 13;
11899
11908
  var LINE_SEP_CHAR = 8232;
@@ -11934,7 +11943,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
11934
11943
  return low - 1;
11935
11944
  }
11936
11945
 
11937
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
11946
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
11938
11947
  var TemplateSource = class {
11939
11948
  constructor(mapping, file) {
11940
11949
  this.mapping = mapping;
@@ -11985,8 +11994,8 @@ var TemplateSourceManager = class {
11985
11994
  }
11986
11995
  };
11987
11996
 
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";
11997
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
11998
+ 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
11999
  import ts44 from "typescript";
11991
12000
  var SymbolBuilder = class {
11992
12001
  constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
@@ -12466,7 +12475,7 @@ var SymbolBuilder = class {
12466
12475
  return this.getSymbol(expressionTarget);
12467
12476
  }
12468
12477
  let withSpan = expression.sourceSpan;
12469
- if (expression instanceof PropertyWrite3) {
12478
+ if (expression instanceof PropertyWrite3 || expression instanceof ASTWithName && !(expression instanceof SafePropertyRead4)) {
12470
12479
  withSpan = expression.nameSpan;
12471
12480
  }
12472
12481
  let node = null;
@@ -12508,6 +12517,8 @@ var SymbolBuilder = class {
12508
12517
  let tsSymbol;
12509
12518
  if (ts44.isPropertyAccessExpression(node)) {
12510
12519
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.name);
12520
+ } else if (ts44.isCallExpression(node)) {
12521
+ tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.expression);
12511
12522
  } else {
12512
12523
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node);
12513
12524
  }
@@ -12559,7 +12570,7 @@ function unwrapSignalInputWriteTAccessor(expr) {
12559
12570
  };
12560
12571
  }
12561
12572
 
12562
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
12573
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
12563
12574
  var REGISTRY2 = new DomElementSchemaRegistry2();
12564
12575
  var TemplateTypeCheckerImpl = class {
12565
12576
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
@@ -12584,7 +12595,7 @@ var TemplateTypeCheckerImpl = class {
12584
12595
  this.elementTagCache = /* @__PURE__ */ new Map();
12585
12596
  this.isComplete = false;
12586
12597
  }
12587
- getTemplate(component) {
12598
+ getTemplate(component, optimizeFor) {
12588
12599
  const { data } = this.getLatestComponentState(component);
12589
12600
  if (data === null) {
12590
12601
  return null;
@@ -12599,8 +12610,15 @@ var TemplateTypeCheckerImpl = class {
12599
12610
  var _a;
12600
12611
  return ((_a = this.getLatestComponentState(component).data) == null ? void 0 : _a.boundTarget.getUsedPipes()) || null;
12601
12612
  }
12602
- getLatestComponentState(component) {
12603
- this.ensureShimForComponent(component);
12613
+ getLatestComponentState(component, optimizeFor = OptimizeFor.SingleFile) {
12614
+ switch (optimizeFor) {
12615
+ case OptimizeFor.WholeProgram:
12616
+ this.ensureAllShimsForAllFiles();
12617
+ break;
12618
+ case OptimizeFor.SingleFile:
12619
+ this.ensureShimForComponent(component);
12620
+ break;
12621
+ }
12604
12622
  const sf = component.getSourceFile();
12605
12623
  const sfPath = absoluteFromSourceFile(sf);
12606
12624
  const shimPath = TypeCheckShimGenerator.shimFor(sfPath);
@@ -12894,16 +12912,16 @@ var TemplateTypeCheckerImpl = class {
12894
12912
  this.perf.memory(PerfCheckpoint.TtcUpdateProgram);
12895
12913
  });
12896
12914
  }
12897
- getFileData(path2) {
12898
- if (!this.state.has(path2)) {
12899
- this.state.set(path2, {
12915
+ getFileData(path) {
12916
+ if (!this.state.has(path)) {
12917
+ this.state.set(path, {
12900
12918
  hasInlines: false,
12901
12919
  sourceManager: new TemplateSourceManager(),
12902
12920
  isComplete: false,
12903
12921
  shimData: /* @__PURE__ */ new Map()
12904
12922
  });
12905
12923
  }
12906
- return this.state.get(path2);
12924
+ return this.state.get(path);
12907
12925
  }
12908
12926
  getSymbolOfNode(node, component) {
12909
12927
  const builder = this.getOrCreateSymbolBuilder(component);
@@ -13258,18 +13276,190 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
13258
13276
  }
13259
13277
  };
13260
13278
 
13261
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
13279
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
13280
+ import { outputAst as o3 } from "@angular/compiler";
13281
+
13282
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/extract_locals.mjs
13283
+ import { outputAst as o2 } from "@angular/compiler";
13284
+ import ts45 from "typescript";
13285
+ function extractHmrLocals(node, definition, factory, classMetadata, debugInfo) {
13286
+ var _a;
13287
+ const name = ts45.isClassDeclaration(node) && node.name ? node.name.text : null;
13288
+ const visitor = new PotentialTopLevelReadsVisitor();
13289
+ const sourceFile = node.getSourceFile();
13290
+ definition.expression.visitExpression(visitor, null);
13291
+ definition.statements.forEach((statement) => statement.visitStatement(visitor, null));
13292
+ (_a = factory.initializer) == null ? void 0 : _a.visitExpression(visitor, null);
13293
+ factory.statements.forEach((statement) => statement.visitStatement(visitor, null));
13294
+ classMetadata == null ? void 0 : classMetadata.visitStatement(visitor, null);
13295
+ debugInfo == null ? void 0 : debugInfo.visitStatement(visitor, null);
13296
+ const availableTopLevel = getTopLevelDeclarationNames(sourceFile);
13297
+ return Array.from(visitor.allReads).filter((r) => r !== name && availableTopLevel.has(r));
13298
+ }
13299
+ function getTopLevelDeclarationNames(sourceFile) {
13300
+ var _a;
13301
+ const results = /* @__PURE__ */ new Set();
13302
+ for (const node of sourceFile.statements) {
13303
+ if (ts45.isClassDeclaration(node) || ts45.isFunctionDeclaration(node) || ts45.isEnumDeclaration(node) && !((_a = node.modifiers) == null ? void 0 : _a.some((m) => m.kind === ts45.SyntaxKind.ConstKeyword))) {
13304
+ if (node.name) {
13305
+ results.add(node.name.text);
13306
+ }
13307
+ continue;
13308
+ }
13309
+ if (ts45.isVariableStatement(node)) {
13310
+ for (const decl of node.declarationList.declarations) {
13311
+ trackBindingName(decl.name, results);
13312
+ }
13313
+ continue;
13314
+ }
13315
+ if (ts45.isImportDeclaration(node) && node.importClause) {
13316
+ const importClause = node.importClause;
13317
+ if (importClause.isTypeOnly) {
13318
+ continue;
13319
+ }
13320
+ if (importClause.name) {
13321
+ results.add(importClause.name.text);
13322
+ }
13323
+ if (importClause.namedBindings) {
13324
+ const namedBindings = importClause.namedBindings;
13325
+ if (ts45.isNamespaceImport(namedBindings)) {
13326
+ results.add(namedBindings.name.text);
13327
+ } else {
13328
+ namedBindings.elements.forEach((el) => {
13329
+ if (!el.isTypeOnly) {
13330
+ results.add(el.name.text);
13331
+ }
13332
+ });
13333
+ }
13334
+ }
13335
+ continue;
13336
+ }
13337
+ }
13338
+ return results;
13339
+ }
13340
+ function trackBindingName(node, results) {
13341
+ if (ts45.isIdentifier(node)) {
13342
+ results.add(node.text);
13343
+ } else {
13344
+ for (const el of node.elements) {
13345
+ if (!ts45.isOmittedExpression(el)) {
13346
+ trackBindingName(el.name, results);
13347
+ }
13348
+ }
13349
+ }
13350
+ }
13351
+ var PotentialTopLevelReadsVisitor = class extends o2.RecursiveAstVisitor {
13352
+ constructor() {
13353
+ super(...arguments);
13354
+ this.allReads = /* @__PURE__ */ new Set();
13355
+ this.addAllTopLevelIdentifiers = (node) => {
13356
+ if (ts45.isIdentifier(node) && this.isTopLevelIdentifierReference(node)) {
13357
+ this.allReads.add(node.text);
13358
+ } else {
13359
+ ts45.forEachChild(node, this.addAllTopLevelIdentifiers);
13360
+ }
13361
+ };
13362
+ }
13363
+ visitReadVarExpr(ast, context) {
13364
+ this.allReads.add(ast.name);
13365
+ super.visitReadVarExpr(ast, context);
13366
+ }
13367
+ visitWrappedNodeExpr(ast, context) {
13368
+ if (this.isTypeScriptNode(ast.node)) {
13369
+ this.addAllTopLevelIdentifiers(ast.node);
13370
+ }
13371
+ super.visitWrappedNodeExpr(ast, context);
13372
+ }
13373
+ isTopLevelIdentifierReference(node) {
13374
+ const parent = node.parent;
13375
+ if (!parent) {
13376
+ return false;
13377
+ }
13378
+ if (ts45.isSourceFile(parent) || ts45.isExpressionStatement(parent) && parent.expression === node) {
13379
+ return true;
13380
+ }
13381
+ if (ts45.isCallExpression(parent)) {
13382
+ return parent.expression === node || parent.arguments.includes(node);
13383
+ }
13384
+ if (ts45.isPropertyAccessExpression(parent)) {
13385
+ return parent.expression === node;
13386
+ }
13387
+ if (ts45.isArrayLiteralExpression(parent)) {
13388
+ return parent.elements.includes(node);
13389
+ }
13390
+ if (ts45.isPropertyAssignment(parent)) {
13391
+ return parent.initializer === node;
13392
+ }
13393
+ if (ts45.isClassDeclaration(parent)) {
13394
+ return parent.name === node;
13395
+ }
13396
+ return false;
13397
+ }
13398
+ isTypeScriptNode(value) {
13399
+ return !!value && typeof value.kind === "number";
13400
+ }
13401
+ };
13402
+
13403
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
13404
+ function extractHmrMetatadata(clazz, reflection, compilerHost, rootDirs, definition, factory, classMetadata, debugInfo) {
13405
+ if (!reflection.isClass(clazz)) {
13406
+ return null;
13407
+ }
13408
+ const sourceFile = clazz.getSourceFile();
13409
+ const filePath = getProjectRelativePath(sourceFile, rootDirs, compilerHost) || compilerHost.getCanonicalFileName(sourceFile.fileName);
13410
+ const meta = {
13411
+ type: new o3.WrappedNodeExpr(clazz.name),
13412
+ className: clazz.name.text,
13413
+ filePath,
13414
+ locals: extractHmrLocals(clazz, definition, factory, classMetadata, debugInfo),
13415
+ coreName: "__ngCore__"
13416
+ };
13417
+ return meta;
13418
+ }
13419
+
13420
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/update_declaration.mjs
13421
+ import { compileHmrUpdateCallback } from "@angular/compiler";
13422
+ import ts46 from "typescript";
13423
+ function getHmrUpdateDeclaration(compilationResults, constantStatements, meta, sourceFile) {
13424
+ const importRewriter = new HmrModuleImportRewriter(meta.coreName);
13425
+ const importManager = new ImportManager({
13426
+ ...presetImportManagerForceNamespaceImports,
13427
+ rewriter: importRewriter
13428
+ });
13429
+ const callback = compileHmrUpdateCallback(compilationResults, constantStatements, meta);
13430
+ const node = translateStatement(sourceFile, callback, importManager);
13431
+ return ts46.factory.updateFunctionDeclaration(node, [
13432
+ ts46.factory.createToken(ts46.SyntaxKind.ExportKeyword),
13433
+ ts46.factory.createToken(ts46.SyntaxKind.DefaultKeyword)
13434
+ ], node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body);
13435
+ }
13436
+ var HmrModuleImportRewriter = class {
13437
+ constructor(coreName) {
13438
+ this.coreName = coreName;
13439
+ }
13440
+ rewriteNamespaceImportIdentifier(specifier, moduleName) {
13441
+ return moduleName === "@angular/core" ? this.coreName : specifier;
13442
+ }
13443
+ rewriteSymbol(symbol) {
13444
+ return symbol;
13445
+ }
13446
+ rewriteSpecifier(specifier) {
13447
+ return specifier;
13448
+ }
13449
+ };
13450
+
13451
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
13262
13452
  var EMPTY_ARRAY2 = [];
13263
13453
  var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
13264
13454
  var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
13265
13455
  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) {
13456
+ 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
13457
  this.reflector = reflector;
13268
13458
  this.evaluator = evaluator;
13269
13459
  this.metaRegistry = metaRegistry;
13270
13460
  this.metaReader = metaReader;
13271
13461
  this.scopeReader = scopeReader;
13272
- this.dtsScopeReader = dtsScopeReader;
13462
+ this.compilerHost = compilerHost;
13273
13463
  this.scopeRegistry = scopeRegistry;
13274
13464
  this.typeCheckScopeRegistry = typeCheckScopeRegistry;
13275
13465
  this.resourceRegistry = resourceRegistry;
@@ -13300,8 +13490,12 @@ var ComponentDecoratorHandler = class {
13300
13490
  this.forbidOrphanRendering = forbidOrphanRendering;
13301
13491
  this.enableBlockSyntax = enableBlockSyntax;
13302
13492
  this.enableLetSyntax = enableLetSyntax;
13493
+ this.externalRuntimeStyles = externalRuntimeStyles;
13303
13494
  this.localCompilationExtraImportsTracker = localCompilationExtraImportsTracker;
13304
13495
  this.jitDeclarationRegistry = jitDeclarationRegistry;
13496
+ this.i18nPreserveSignificantWhitespace = i18nPreserveSignificantWhitespace;
13497
+ this.strictStandalone = strictStandalone;
13498
+ this.enableHmr = enableHmr;
13305
13499
  this.literalCache = /* @__PURE__ */ new Map();
13306
13500
  this.elementSchemaRegistry = new DomElementSchemaRegistry3();
13307
13501
  this.preanalyzeTemplateCache = /* @__PURE__ */ new Map();
@@ -13313,8 +13507,10 @@ var ComponentDecoratorHandler = class {
13313
13507
  i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
13314
13508
  usePoisonedData: this.usePoisonedData,
13315
13509
  enableBlockSyntax: this.enableBlockSyntax,
13316
- enableLetSyntax: this.enableLetSyntax
13510
+ enableLetSyntax: this.enableLetSyntax,
13511
+ preserveSignificantWhitespace: this.i18nPreserveSignificantWhitespace
13317
13512
  };
13513
+ this.canDeferDeps = !enableHmr;
13318
13514
  }
13319
13515
  detect(node, decorators) {
13320
13516
  if (!decorators) {
@@ -13341,7 +13537,11 @@ var ComponentDecoratorHandler = class {
13341
13537
  const resolveStyleUrl = (styleUrl) => {
13342
13538
  try {
13343
13539
  const resourceUrl = this.resourceLoader.resolve(styleUrl, containingFile);
13344
- return this.resourceLoader.preload(resourceUrl, { type: "style", containingFile });
13540
+ return this.resourceLoader.preload(resourceUrl, {
13541
+ type: "style",
13542
+ containingFile,
13543
+ className: node.name.text
13544
+ });
13345
13545
  } catch {
13346
13546
  return void 0;
13347
13547
  }
@@ -13363,9 +13563,15 @@ var ComponentDecoratorHandler = class {
13363
13563
  const componentStyleUrls = extractComponentStyleUrls(this.evaluator, component);
13364
13564
  return templateAndTemplateStyleResources.then(async (templateInfo) => {
13365
13565
  let styles = null;
13566
+ let orderOffset = 0;
13366
13567
  const rawStyles = parseDirectiveStyles(component, this.evaluator, this.compilationMode);
13367
13568
  if (rawStyles == null ? void 0 : rawStyles.length) {
13368
- styles = await Promise.all(rawStyles.map((style) => this.resourceLoader.preprocessInline(style, { type: "style", containingFile })));
13569
+ styles = await Promise.all(rawStyles.map((style) => this.resourceLoader.preprocessInline(style, {
13570
+ type: "style",
13571
+ containingFile,
13572
+ order: orderOffset++,
13573
+ className: node.name.text
13574
+ })));
13369
13575
  }
13370
13576
  if (templateInfo.templateStyles) {
13371
13577
  styles != null ? styles : styles = [];
@@ -13373,11 +13579,16 @@ var ComponentDecoratorHandler = class {
13373
13579
  var _a;
13374
13580
  return this.resourceLoader.preprocessInline(style, {
13375
13581
  type: "style",
13376
- containingFile: (_a = templateInfo.templateUrl) != null ? _a : containingFile
13582
+ containingFile: (_a = templateInfo.templateUrl) != null ? _a : containingFile,
13583
+ order: orderOffset++,
13584
+ className: node.name.text
13377
13585
  });
13378
13586
  })));
13379
13587
  }
13380
13588
  this.preanalyzeStylesCache.set(node, styles);
13589
+ if (this.externalRuntimeStyles) {
13590
+ return;
13591
+ }
13381
13592
  await Promise.all([
13382
13593
  ...componentStyleUrls.map((styleUrl) => resolveStyleUrl(styleUrl.url)),
13383
13594
  ...templateInfo.templateStyleUrls.map((url) => resolveStyleUrl(url))
@@ -13391,7 +13602,7 @@ var ComponentDecoratorHandler = class {
13391
13602
  this.literalCache.delete(decorator);
13392
13603
  let diagnostics;
13393
13604
  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());
13605
+ 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
13606
  if (directiveResult.jitForced) {
13396
13607
  this.jitDeclarationRegistry.jitDeclarations.add(node);
13397
13608
  return {};
@@ -13402,13 +13613,13 @@ var ComponentDecoratorHandler = class {
13402
13613
  if (this.compilationMode !== CompilationMode.LOCAL) {
13403
13614
  changeDetection = resolveEnumValue(this.evaluator, component, "changeDetection", "ChangeDetectionStrategy");
13404
13615
  } else if (component.has("changeDetection")) {
13405
- changeDetection = new o2.WrappedNodeExpr(component.get("changeDetection"));
13616
+ changeDetection = new o4.WrappedNodeExpr(component.get("changeDetection"));
13406
13617
  }
13407
13618
  let animations = null;
13408
13619
  let animationTriggerNames = null;
13409
13620
  if (component.has("animations")) {
13410
13621
  const animationExpression = component.get("animations");
13411
- animations = new o2.WrappedNodeExpr(animationExpression);
13622
+ animations = new o4.WrappedNodeExpr(animationExpression);
13412
13623
  const animationsValue = this.evaluator.evaluate(animationExpression, animationTriggerResolver);
13413
13624
  animationTriggerNames = { includesDynamicAnimations: false, staticTriggerNames: [] };
13414
13625
  collectAnimationNames(animationsValue, animationTriggerNames);
@@ -13427,7 +13638,7 @@ var ComponentDecoratorHandler = class {
13427
13638
  if (component.has("viewProviders")) {
13428
13639
  const viewProviders = component.get("viewProviders");
13429
13640
  viewProvidersRequiringFactory = resolveProvidersRequiringFactory(viewProviders, this.reflector, this.evaluator);
13430
- wrappedViewProviders = new o2.WrappedNodeExpr(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(viewProviders) : viewProviders);
13641
+ wrappedViewProviders = new o4.WrappedNodeExpr(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(viewProviders) : viewProviders);
13431
13642
  }
13432
13643
  if (component.has("providers")) {
13433
13644
  providersRequiringFactory = resolveProvidersRequiringFactory(component.get("providers"), this.reflector, this.evaluator);
@@ -13498,7 +13709,8 @@ var ComponentDecoratorHandler = class {
13498
13709
  i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
13499
13710
  usePoisonedData: this.usePoisonedData,
13500
13711
  enableBlockSyntax: this.enableBlockSyntax,
13501
- enableLetSyntax: this.enableLetSyntax
13712
+ enableLetSyntax: this.enableLetSyntax,
13713
+ preserveSignificantWhitespace: this.i18nPreserveSignificantWhitespace
13502
13714
  }, this.compilationMode);
13503
13715
  if (this.compilationMode === CompilationMode.LOCAL && template.errors && template.errors.length > 0) {
13504
13716
  if (diagnostics === void 0) {
@@ -13516,7 +13728,8 @@ var ComponentDecoratorHandler = class {
13516
13728
  expression: template.sourceMapping.node
13517
13729
  };
13518
13730
  let styles = [];
13519
- const styleResources = extractStyleResources(this.resourceLoader, component, containingFile);
13731
+ const externalStyles = [];
13732
+ const styleResources = extractInlineStyleResources(component);
13520
13733
  const styleUrls = [
13521
13734
  ...extractComponentStyleUrls(this.evaluator, component),
13522
13735
  ..._extractTemplateStyleUrls(template)
@@ -13524,6 +13737,16 @@ var ComponentDecoratorHandler = class {
13524
13737
  for (const styleUrl of styleUrls) {
13525
13738
  try {
13526
13739
  const resourceUrl = this.resourceLoader.resolve(styleUrl.url, containingFile);
13740
+ if (this.externalRuntimeStyles) {
13741
+ externalStyles.push(resourceUrl);
13742
+ continue;
13743
+ }
13744
+ if (styleUrl.source === 2 && ts47.isStringLiteralLike(styleUrl.expression)) {
13745
+ styleResources.add({
13746
+ path: absoluteFrom(resourceUrl),
13747
+ expression: styleUrl.expression
13748
+ });
13749
+ }
13527
13750
  const resourceStr = this.resourceLoader.load(resourceUrl);
13528
13751
  styles.push(resourceStr);
13529
13752
  if (this.depTracker !== null) {
@@ -13537,7 +13760,7 @@ var ComponentDecoratorHandler = class {
13537
13760
  diagnostics = [];
13538
13761
  }
13539
13762
  const resourceType = styleUrl.source === 2 ? 2 : 1;
13540
- diagnostics.push(makeResourceNotFoundError(styleUrl.url, styleUrl.nodeForError, resourceType).toDiagnostic());
13763
+ diagnostics.push(makeResourceNotFoundError(styleUrl.url, styleUrl.expression, resourceType).toDiagnostic());
13541
13764
  }
13542
13765
  }
13543
13766
  if (encapsulation === ViewEncapsulation2.ShadowDom && metadata.selector !== null) {
@@ -13553,8 +13776,12 @@ var ComponentDecoratorHandler = class {
13553
13776
  if (this.preanalyzeStylesCache.has(node)) {
13554
13777
  inlineStyles = this.preanalyzeStylesCache.get(node);
13555
13778
  this.preanalyzeStylesCache.delete(node);
13556
- if (inlineStyles !== null) {
13557
- styles.push(...inlineStyles);
13779
+ if (inlineStyles == null ? void 0 : inlineStyles.length) {
13780
+ if (this.externalRuntimeStyles) {
13781
+ externalStyles.push(...inlineStyles);
13782
+ } else {
13783
+ styles.push(...inlineStyles);
13784
+ }
13558
13785
  }
13559
13786
  } else {
13560
13787
  if (this.resourceLoader.canPreprocess) {
@@ -13599,17 +13826,19 @@ var ComponentDecoratorHandler = class {
13599
13826
  changeDetection,
13600
13827
  interpolation: (_d = template.interpolationConfig) != null ? _d : DEFAULT_INTERPOLATION_CONFIG2,
13601
13828
  styles,
13829
+ externalStyles,
13602
13830
  animations,
13603
13831
  viewProviders: wrappedViewProviders,
13604
13832
  i18nUseExternalIds: this.i18nUseExternalIds,
13605
13833
  relativeContextFilePath,
13606
- rawImports: rawImports !== null ? new o2.WrappedNodeExpr(rawImports) : void 0
13834
+ rawImports: rawImports !== null ? new o4.WrappedNodeExpr(rawImports) : void 0
13607
13835
  },
13608
13836
  typeCheckMeta: extractDirectiveTypeCheckMeta(node, inputs, this.reflector),
13609
13837
  classMetadata: this.includeClassMetadata ? extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler, (dec) => transformDecoratorResources(dec, component, styles, template)) : null,
13610
13838
  classDebugInfo: extractClassDebugInfo(
13611
13839
  node,
13612
13840
  this.reflector,
13841
+ this.compilerHost,
13613
13842
  this.rootDirs,
13614
13843
  this.forbidOrphanRendering
13615
13844
  ),
@@ -13663,6 +13892,7 @@ var ComponentDecoratorHandler = class {
13663
13892
  isStandalone: analysis.meta.isStandalone,
13664
13893
  isSignal: analysis.meta.isSignal,
13665
13894
  imports: analysis.resolvedImports,
13895
+ rawImports: analysis.rawImports,
13666
13896
  deferredImports: analysis.resolvedDeferredImports,
13667
13897
  animationTriggerNames: analysis.animationTriggerNames,
13668
13898
  schemas: analysis.schemas,
@@ -13713,7 +13943,7 @@ var ComponentDecoratorHandler = class {
13713
13943
  }
13714
13944
  typeCheck(ctx, node, meta) {
13715
13945
  var _a;
13716
- if (this.typeCheckScopeRegistry === null || !ts45.isClassDeclaration(node)) {
13946
+ if (this.typeCheckScopeRegistry === null || !ts47.isClassDeclaration(node)) {
13717
13947
  return;
13718
13948
  }
13719
13949
  if (meta.isPoisoned && !this.usePoisonedData) {
@@ -13950,11 +14180,11 @@ var ComponentDecoratorHandler = class {
13950
14180
  const importDiagnostics = validateStandaloneImports(analysis.resolvedDeferredImports, analysis.rawDeferredImports, this.metaReader, this.scopeReader, true);
13951
14181
  diagnostics.push(...importDiagnostics);
13952
14182
  }
13953
- if (analysis.providersRequiringFactory !== null && analysis.meta.providers instanceof o2.WrappedNodeExpr) {
14183
+ if (analysis.providersRequiringFactory !== null && analysis.meta.providers instanceof o4.WrappedNodeExpr) {
13954
14184
  const providerDiagnostics = getProviderDiagnostics(analysis.providersRequiringFactory, analysis.meta.providers.node, this.injectableRegistry);
13955
14185
  diagnostics.push(...providerDiagnostics);
13956
14186
  }
13957
- if (analysis.viewProvidersRequiringFactory !== null && analysis.meta.viewProviders instanceof o2.WrappedNodeExpr) {
14187
+ if (analysis.viewProvidersRequiringFactory !== null && analysis.meta.viewProviders instanceof o4.WrappedNodeExpr) {
13958
14188
  const viewProviderDiagnostics = getProviderDiagnostics(analysis.viewProvidersRequiringFactory, analysis.meta.viewProviders.node, this.injectableRegistry);
13959
14189
  diagnostics.push(...viewProviderDiagnostics);
13960
14190
  }
@@ -14007,20 +14237,24 @@ var ComponentDecoratorHandler = class {
14007
14237
  if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
14008
14238
  return [];
14009
14239
  }
14010
- const perComponentDeferredDeps = this.resolveAllDeferredDependencies(resolution);
14240
+ const perComponentDeferredDeps = this.canDeferDeps ? this.resolveAllDeferredDependencies(resolution) : null;
14011
14241
  const meta = {
14012
14242
  ...analysis.meta,
14013
14243
  ...resolution,
14014
14244
  defer: this.compileDeferBlocks(resolution)
14015
14245
  };
14016
14246
  const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget3.Component));
14017
- removeDeferrableTypesFromComponentDecorator(analysis, perComponentDeferredDeps);
14247
+ if (perComponentDeferredDeps !== null) {
14248
+ removeDeferrableTypesFromComponentDecorator(analysis, perComponentDeferredDeps);
14249
+ }
14018
14250
  const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
14019
14251
  const inputTransformFields = compileInputTransformFields(analysis.inputs);
14020
14252
  const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, perComponentDeferredDeps).toStmt() : null;
14021
14253
  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);
14254
+ const hmrMeta = this.enableHmr ? extractHmrMetatadata(node, this.reflector, this.compilerHost, this.rootDirs, def, fac, classMetadata, debugInfo) : null;
14255
+ const hmrInitializer = hmrMeta ? compileHmrInitializer(hmrMeta).toStmt() : null;
14256
+ const deferrableImports = this.canDeferDeps ? this.deferredSymbolTracker.getDeferrableImportDecls() : null;
14257
+ return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, debugInfo, hmrInitializer);
14024
14258
  }
14025
14259
  compilePartial(node, analysis, resolution) {
14026
14260
  if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
@@ -14030,9 +14264,9 @@ var ComponentDecoratorHandler = class {
14030
14264
  content: analysis.template.content,
14031
14265
  sourceUrl: analysis.template.declaration.resolvedTemplateUrl,
14032
14266
  isInline: analysis.template.declaration.isInline,
14033
- inlineTemplateLiteralExpression: analysis.template.sourceMapping.type === "direct" ? new o2.WrappedNodeExpr(analysis.template.sourceMapping.node) : null
14267
+ inlineTemplateLiteralExpression: analysis.template.sourceMapping.type === "direct" ? new o4.WrappedNodeExpr(analysis.template.sourceMapping.node) : null
14034
14268
  };
14035
- const perComponentDeferredDeps = this.resolveAllDeferredDependencies(resolution);
14269
+ const perComponentDeferredDeps = this.canDeferDeps ? this.resolveAllDeferredDependencies(resolution) : null;
14036
14270
  const meta = {
14037
14271
  ...analysis.meta,
14038
14272
  ...resolution,
@@ -14042,26 +14276,48 @@ var ComponentDecoratorHandler = class {
14042
14276
  const inputTransformFields = compileInputTransformFields(analysis.inputs);
14043
14277
  const def = compileDeclareComponentFromMetadata(meta, analysis.template, templateInfo);
14044
14278
  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);
14279
+ const hmrMeta = this.enableHmr ? extractHmrMetatadata(node, this.reflector, this.compilerHost, this.rootDirs, def, fac, classMetadata, null) : null;
14280
+ const hmrInitializer = hmrMeta ? compileHmrInitializer(hmrMeta).toStmt() : null;
14281
+ const deferrableImports = this.canDeferDeps ? this.deferredSymbolTracker.getDeferrableImportDecls() : null;
14282
+ return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, null, hmrInitializer);
14047
14283
  }
14048
14284
  compileLocal(node, analysis, resolution, pool) {
14049
- const deferrableTypes = analysis.explicitlyDeferredTypes;
14285
+ const deferrableTypes = this.canDeferDeps ? analysis.explicitlyDeferredTypes : null;
14050
14286
  const meta = {
14051
14287
  ...analysis.meta,
14052
14288
  ...resolution,
14053
14289
  defer: this.compileDeferBlocks(resolution)
14054
14290
  };
14055
- if (analysis.explicitlyDeferredTypes !== null) {
14056
- removeDeferrableTypesFromComponentDecorator(analysis, analysis.explicitlyDeferredTypes);
14291
+ if (deferrableTypes !== null) {
14292
+ removeDeferrableTypesFromComponentDecorator(analysis, deferrableTypes);
14057
14293
  }
14058
14294
  const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget3.Component));
14059
14295
  const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
14060
14296
  const inputTransformFields = compileInputTransformFields(analysis.inputs);
14061
14297
  const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, deferrableTypes).toStmt() : null;
14062
14298
  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);
14299
+ const hmrMeta = this.enableHmr ? extractHmrMetatadata(node, this.reflector, this.compilerHost, this.rootDirs, def, fac, classMetadata, debugInfo) : null;
14300
+ const hmrInitializer = hmrMeta ? compileHmrInitializer(hmrMeta).toStmt() : null;
14301
+ const deferrableImports = this.canDeferDeps ? this.deferredSymbolTracker.getDeferrableImportDecls() : null;
14302
+ return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, debugInfo, hmrInitializer);
14303
+ }
14304
+ compileHmrUpdateDeclaration(node, analysis, resolution) {
14305
+ if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
14306
+ return null;
14307
+ }
14308
+ const pool = new ConstantPool2();
14309
+ const meta = {
14310
+ ...analysis.meta,
14311
+ ...resolution,
14312
+ defer: this.compileDeferBlocks(resolution)
14313
+ };
14314
+ const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget3.Component));
14315
+ const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
14316
+ const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, null).toStmt() : null;
14317
+ const debugInfo = analysis.classDebugInfo !== null ? compileClassDebugInfo(analysis.classDebugInfo).toStmt() : null;
14318
+ const hmrMeta = this.enableHmr ? extractHmrMetatadata(node, this.reflector, this.compilerHost, this.rootDirs, def, fac, classMetadata, debugInfo) : null;
14319
+ const res = compileResults(fac, def, classMetadata, "\u0275cmp", null, null, debugInfo, null);
14320
+ return hmrMeta === null || res.length === 0 ? null : getHmrUpdateDeclaration(res, pool.statements, hmrMeta, node.getSourceFile());
14065
14321
  }
14066
14322
  locateDeferBlocksWithoutScope(template) {
14067
14323
  const deferBlocks = /* @__PURE__ */ new Map();
@@ -14091,12 +14347,12 @@ var ComponentDecoratorHandler = class {
14091
14347
  }
14092
14348
  collectExplicitlyDeferredSymbols(rawDeferredImports) {
14093
14349
  const deferredTypes = /* @__PURE__ */ new Map();
14094
- if (!ts45.isArrayLiteralExpression(rawDeferredImports)) {
14350
+ if (!ts47.isArrayLiteralExpression(rawDeferredImports)) {
14095
14351
  return deferredTypes;
14096
14352
  }
14097
14353
  for (const element of rawDeferredImports.elements) {
14098
14354
  const node = tryUnwrapForwardRef(element, this.reflector) || element;
14099
- if (!ts45.isIdentifier(node)) {
14355
+ if (!ts47.isIdentifier(node)) {
14100
14356
  continue;
14101
14357
  }
14102
14358
  const imp = this.reflector.getImportOfIdentifier(node);
@@ -14163,12 +14419,12 @@ var ComponentDecoratorHandler = class {
14163
14419
  }
14164
14420
  }
14165
14421
  registerDeferrableCandidates(componentClassDecl, importsExpr, isDeferredImport, allDeferredDecls, eagerlyUsedDecls, resolutionData) {
14166
- if (!ts45.isArrayLiteralExpression(importsExpr)) {
14422
+ if (!ts47.isArrayLiteralExpression(importsExpr)) {
14167
14423
  return;
14168
14424
  }
14169
14425
  for (const element of importsExpr.elements) {
14170
14426
  const node = tryUnwrapForwardRef(element, this.reflector) || element;
14171
- if (!ts45.isIdentifier(node)) {
14427
+ if (!ts47.isIdentifier(node)) {
14172
14428
  continue;
14173
14429
  }
14174
14430
  const imp = this.reflector.getImportOfIdentifier(node);
@@ -14252,7 +14508,7 @@ function removeDeferrableTypesFromComponentDecorator(analysis, deferrableTypes)
14252
14508
  if (analysis.classMetadata) {
14253
14509
  const deferrableSymbols = new Set(deferrableTypes.map((t) => t.symbolName));
14254
14510
  const rewrittenDecoratorsNode = removeIdentifierReferences(analysis.classMetadata.decorators.node, deferrableSymbols);
14255
- analysis.classMetadata.decorators = new o2.WrappedNodeExpr(rewrittenDecoratorsNode);
14511
+ analysis.classMetadata.decorators = new o4.WrappedNodeExpr(rewrittenDecoratorsNode);
14256
14512
  }
14257
14513
  }
14258
14514
  function validateNoImportOverlap(eagerDeps, deferredDeps, rawDeferredImports) {
@@ -14300,9 +14556,9 @@ function isDefaultImport(node) {
14300
14556
  return node.importClause !== void 0 && node.importClause.namedBindings === void 0;
14301
14557
  }
14302
14558
 
14303
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
14559
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
14304
14560
  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";
14561
+ import ts48 from "typescript";
14306
14562
  var InjectableDecoratorHandler = class {
14307
14563
  constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, compilationMode, errorOnDuplicateProv = true) {
14308
14564
  this.reflector = reflector;
@@ -14422,7 +14678,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
14422
14678
  };
14423
14679
  } else if (decorator.args.length === 1) {
14424
14680
  const metaNode = decorator.args[0];
14425
- if (!ts46.isObjectLiteralExpression(metaNode)) {
14681
+ if (!ts48.isObjectLiteralExpression(metaNode)) {
14426
14682
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
14427
14683
  }
14428
14684
  const meta = reflectObjectLiteral(metaNode);
@@ -14430,7 +14686,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
14430
14686
  let deps = void 0;
14431
14687
  if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
14432
14688
  const depsExpr = meta.get("deps");
14433
- if (!ts46.isArrayLiteralExpression(depsExpr)) {
14689
+ if (!ts48.isArrayLiteralExpression(depsExpr)) {
14434
14690
  throw new FatalDiagnosticError(ErrorCode.VALUE_NOT_LITERAL, depsExpr, `@Injectable deps metadata must be an inline array`);
14435
14691
  }
14436
14692
  deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
@@ -14515,12 +14771,12 @@ function getDep(dep, reflector) {
14515
14771
  }
14516
14772
  return true;
14517
14773
  }
14518
- if (ts46.isArrayLiteralExpression(dep)) {
14774
+ if (ts48.isArrayLiteralExpression(dep)) {
14519
14775
  dep.elements.forEach((el) => {
14520
14776
  let isDecorator = false;
14521
- if (ts46.isIdentifier(el)) {
14777
+ if (ts48.isIdentifier(el)) {
14522
14778
  isDecorator = maybeUpdateDecorator(el, reflector);
14523
- } else if (ts46.isNewExpression(el) && ts46.isIdentifier(el.expression)) {
14779
+ } else if (ts48.isNewExpression(el) && ts48.isIdentifier(el.expression)) {
14524
14780
  const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || void 0;
14525
14781
  isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
14526
14782
  }
@@ -14532,9 +14788,9 @@ function getDep(dep, reflector) {
14532
14788
  return meta;
14533
14789
  }
14534
14790
 
14535
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
14791
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
14536
14792
  import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
14537
- import ts47 from "typescript";
14793
+ import ts49 from "typescript";
14538
14794
  var PipeSymbol = class extends SemanticSymbol {
14539
14795
  constructor(decl, name) {
14540
14796
  super(decl);
@@ -14551,7 +14807,7 @@ var PipeSymbol = class extends SemanticSymbol {
14551
14807
  }
14552
14808
  };
14553
14809
  var PipeDecoratorHandler = class {
14554
- constructor(reflector, evaluator, metaRegistry, scopeRegistry, injectableRegistry, isCore, perf, includeClassMetadata, compilationMode, generateExtraImportsInLocalMode) {
14810
+ constructor(reflector, evaluator, metaRegistry, scopeRegistry, injectableRegistry, isCore, perf, includeClassMetadata, compilationMode, generateExtraImportsInLocalMode, strictStandalone) {
14555
14811
  this.reflector = reflector;
14556
14812
  this.evaluator = evaluator;
14557
14813
  this.metaRegistry = metaRegistry;
@@ -14562,6 +14818,7 @@ var PipeDecoratorHandler = class {
14562
14818
  this.includeClassMetadata = includeClassMetadata;
14563
14819
  this.compilationMode = compilationMode;
14564
14820
  this.generateExtraImportsInLocalMode = generateExtraImportsInLocalMode;
14821
+ this.strictStandalone = strictStandalone;
14565
14822
  this.precedence = HandlerPrecedence.PRIMARY;
14566
14823
  this.name = "PipeDecoratorHandler";
14567
14824
  }
@@ -14592,7 +14849,7 @@ var PipeDecoratorHandler = class {
14592
14849
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, "@Pipe must have exactly one argument");
14593
14850
  }
14594
14851
  const meta = unwrapExpression(decorator.args[0]);
14595
- if (!ts47.isObjectLiteralExpression(meta)) {
14852
+ if (!ts49.isObjectLiteralExpression(meta)) {
14596
14853
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
14597
14854
  }
14598
14855
  const pipe = reflectObjectLiteral(meta);
@@ -14613,7 +14870,7 @@ var PipeDecoratorHandler = class {
14613
14870
  }
14614
14871
  pure = pureValue;
14615
14872
  }
14616
- let isStandalone = false;
14873
+ let isStandalone = NG_STANDALONE_DEFAULT_VALUE;
14617
14874
  if (pipe.has("standalone")) {
14618
14875
  const expr = pipe.get("standalone");
14619
14876
  const resolved = this.evaluator.evaluate(expr);
@@ -14621,6 +14878,9 @@ var PipeDecoratorHandler = class {
14621
14878
  throw createValueHasWrongTypeError(expr, resolved, `standalone flag must be a boolean`);
14622
14879
  }
14623
14880
  isStandalone = resolved;
14881
+ if (!isStandalone && this.strictStandalone) {
14882
+ throw new FatalDiagnosticError(ErrorCode.NON_STANDALONE_NOT_ALLOWED, expr, `Only standalone pipes are allowed when 'strictStandalone' is enabled.`);
14883
+ }
14624
14884
  }
14625
14885
  return {
14626
14886
  analysis: {
@@ -14753,7 +15013,14 @@ export {
14753
15013
  * Copyright Google LLC All Rights Reserved.
14754
15014
  *
14755
15015
  * 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
15016
+ * found in the LICENSE file at https://angular.dev/license
15017
+ */
15018
+ /**
15019
+ * @license
15020
+ * Copyright Google LLC All Rights Reserved.
15021
+ *
15022
+ * Use of this source code is governed by an MIT-style license that can be
15023
+ * found in the LICENSE file at https://angular.dev/license
14757
15024
  */
14758
15025
  /**
14759
15026
  * @license
@@ -14762,4 +15029,4 @@ export {
14762
15029
  * Use of this source code is governed by an MIT-style license that can be
14763
15030
  * found in the LICENSE file at https://angular.io/license
14764
15031
  */
14765
- //# sourceMappingURL=chunk-VNKFV2MZ.js.map
15032
+ //# sourceMappingURL=chunk-Q4DA5WRV.js.map