@angular/core 17.1.0-rc.0 → 17.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/esm2022/src/core_reactivity_export_internal.mjs +2 -2
  2. package/esm2022/src/defer/interfaces.mjs +3 -2
  3. package/esm2022/src/metadata/directives.mjs +1 -1
  4. package/esm2022/src/render3/component_ref.mjs +1 -1
  5. package/esm2022/src/render3/index.mjs +2 -3
  6. package/esm2022/src/render3/instructions/all.mjs +3 -2
  7. package/esm2022/src/render3/instructions/queries.mjs +98 -0
  8. package/esm2022/src/render3/interfaces/view.mjs +1 -1
  9. package/esm2022/src/render3/query.mjs +11 -98
  10. package/esm2022/src/render3/reactivity/effect.mjs +15 -37
  11. package/esm2022/src/version.mjs +1 -1
  12. package/esm2022/testing/src/component_fixture.mjs +5 -5
  13. package/esm2022/testing/src/logger.mjs +3 -3
  14. package/esm2022/testing/src/test_bed.mjs +7 -6
  15. package/fesm2022/core.mjs +8009 -8029
  16. package/fesm2022/core.mjs.map +1 -1
  17. package/fesm2022/primitives/signals.mjs +1 -1
  18. package/fesm2022/rxjs-interop.mjs +1 -1
  19. package/fesm2022/testing.mjs +10 -9
  20. package/fesm2022/testing.mjs.map +1 -1
  21. package/index.d.ts +8 -33
  22. package/package.json +1 -1
  23. package/primitives/signals/index.d.ts +1 -1
  24. package/rxjs-interop/index.d.ts +1 -1
  25. package/schematics/migrations/block-template-entities/bundle.js +200 -166
  26. package/schematics/migrations/block-template-entities/bundle.js.map +3 -3
  27. package/schematics/migrations/compiler-options/bundle.js +13 -13
  28. package/schematics/migrations/transfer-state/bundle.js +13 -13
  29. package/schematics/ng-generate/control-flow-migration/bundle.js +209 -175
  30. package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
  31. package/schematics/ng-generate/standalone-migration/bundle.js +895 -600
  32. package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
  33. package/testing/index.d.ts +1 -1
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
63
63
  });
64
64
  };
65
65
 
66
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
66
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
67
67
  var standalone_migration_exports = {};
68
68
  __export(standalone_migration_exports, {
69
69
  default: () => standalone_migration_default
@@ -71,10 +71,10 @@ __export(standalone_migration_exports, {
71
71
  module.exports = __toCommonJS(standalone_migration_exports);
72
72
  var import_schematics = require("@angular-devkit/schematics");
73
73
 
74
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
74
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
75
75
  var import_typescript = __toESM(require("typescript"), 1);
76
76
 
77
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
77
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
78
78
  var InvalidFileSystem = class {
79
79
  exists(path4) {
80
80
  throw makeError();
@@ -162,7 +162,7 @@ function makeError() {
162
162
  return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
163
163
  }
164
164
 
165
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
165
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
166
166
  var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
167
167
  function stripExtension(path4) {
168
168
  return path4.replace(TS_DTS_JS_EXTENSION, "");
@@ -175,7 +175,7 @@ function getSourceFileOrError(program, fileName) {
175
175
  return sf;
176
176
  }
177
177
 
178
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
178
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
179
179
  var fs = new InvalidFileSystem();
180
180
  function getFileSystem() {
181
181
  return fs;
@@ -219,7 +219,7 @@ function toRelativeImport(relativePath) {
219
219
  return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
220
220
  }
221
221
 
222
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
222
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
223
223
  var LogicalProjectPath = {
224
224
  relativePathBetween: function(from, to) {
225
225
  const relativePath = relative(dirname(resolve(from)), resolve(to));
@@ -265,7 +265,7 @@ function isWithinBasePath(base, path4) {
265
265
  return isLocalRelativePath(relative(base, path4));
266
266
  }
267
267
 
268
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
268
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
269
269
  var import_fs = __toESM(require("fs"), 1);
270
270
  var import_module = __toESM(require("module"), 1);
271
271
  var p = __toESM(require("path"), 1);
@@ -373,7 +373,7 @@ function toggleCase(str) {
373
373
  return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
374
374
  }
375
375
 
376
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/selector.mjs
376
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/selector.mjs
377
377
  var _SELECTOR_REGEXP = new RegExp(
378
378
  `(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
379
379
  "g"
@@ -681,7 +681,7 @@ var SelectorContext = class {
681
681
  }
682
682
  };
683
683
 
684
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/core.mjs
684
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/core.mjs
685
685
  var emitDistinctChangesOnlyDefaultValue = true;
686
686
  var ViewEncapsulation;
687
687
  (function(ViewEncapsulation2) {
@@ -750,7 +750,7 @@ function parseSelectorToR3Selector(selector) {
750
750
  return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
751
751
  }
752
752
 
753
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
753
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
754
754
  var output_ast_exports = {};
755
755
  __export(output_ast_exports, {
756
756
  ArrayType: () => ArrayType,
@@ -838,7 +838,7 @@ __export(output_ast_exports, {
838
838
  variable: () => variable
839
839
  });
840
840
 
841
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
841
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
842
842
  var textEncoder;
843
843
  function digest(message) {
844
844
  return message.id || computeDigest(message);
@@ -1081,7 +1081,7 @@ function wordAt(bytes, index, endian) {
1081
1081
  return word;
1082
1082
  }
1083
1083
 
1084
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
1084
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
1085
1085
  var TypeModifier;
1086
1086
  (function(TypeModifier2) {
1087
1087
  TypeModifier2[TypeModifier2["None"] = 0] = "None";
@@ -2276,7 +2276,7 @@ function serializeTags(tags) {
2276
2276
  return out;
2277
2277
  }
2278
2278
 
2279
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/constant_pool.mjs
2279
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/constant_pool.mjs
2280
2280
  var CONSTANT_PREFIX = "_c";
2281
2281
  var UNKNOWN_VALUE_KEY = variable("<unknown>");
2282
2282
  var KEY_CONTEXT = {};
@@ -2459,7 +2459,7 @@ function isLongStringLiteral(expr) {
2459
2459
  return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
2460
2460
  }
2461
2461
 
2462
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
2462
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
2463
2463
  var CORE = "@angular/core";
2464
2464
  var _Identifiers = class {
2465
2465
  };
@@ -3104,7 +3104,7 @@ var Identifiers = _Identifiers;
3104
3104
  _Identifiers.UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: CORE };
3105
3105
  })();
3106
3106
 
3107
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/util.mjs
3107
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/util.mjs
3108
3108
  var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
3109
3109
  function dashCaseToCamelCase(input) {
3110
3110
  return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
@@ -3192,7 +3192,7 @@ function partitionArray(arr, conditionFn) {
3192
3192
  return [truthy, falsy];
3193
3193
  }
3194
3194
 
3195
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/source_map.mjs
3195
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/source_map.mjs
3196
3196
  var VERSION = 3;
3197
3197
  var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
3198
3198
  var SourceMapGenerator = class {
@@ -3321,7 +3321,7 @@ function toBase64Digit(value) {
3321
3321
  return B64_DIGITS[value];
3322
3322
  }
3323
3323
 
3324
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
3324
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
3325
3325
  var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
3326
3326
  var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
3327
3327
  var _INDENT_WITH = " ";
@@ -3809,7 +3809,7 @@ function _createIndent(count) {
3809
3809
  return res;
3810
3810
  }
3811
3811
 
3812
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/util.mjs
3812
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/util.mjs
3813
3813
  function typeWithParameters(type, numParams) {
3814
3814
  if (numParams === 0) {
3815
3815
  return expressionType(type);
@@ -3877,7 +3877,7 @@ function generateForwardRef(expr) {
3877
3877
  return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
3878
3878
  }
3879
3879
 
3880
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3880
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
3881
3881
  var R3FactoryDelegateType;
3882
3882
  (function(R3FactoryDelegateType2) {
3883
3883
  R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
@@ -4022,7 +4022,7 @@ function getInjectFn(target) {
4022
4022
  }
4023
4023
  }
4024
4024
 
4025
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
4025
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
4026
4026
  var TagContentType;
4027
4027
  (function(TagContentType2) {
4028
4028
  TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
@@ -4059,7 +4059,7 @@ function mergeNsAndName(prefix, localName) {
4059
4059
  return prefix ? `:${prefix}:${localName}` : localName;
4060
4060
  }
4061
4061
 
4062
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
4062
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
4063
4063
  var Comment = class {
4064
4064
  constructor(value, sourceSpan) {
4065
4065
  this.value = value;
@@ -4513,7 +4513,7 @@ function visitAll(visitor, nodes) {
4513
4513
  return result;
4514
4514
  }
4515
4515
 
4516
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
4516
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
4517
4517
  var Message = class {
4518
4518
  constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
4519
4519
  this.nodes = nodes;
@@ -4702,7 +4702,7 @@ var LocalizeMessageStringVisitor = class {
4702
4702
  }
4703
4703
  };
4704
4704
 
4705
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
4705
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
4706
4706
  var Serializer = class {
4707
4707
  createNameMapper(message) {
4708
4708
  return null;
@@ -4759,7 +4759,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
4759
4759
  }
4760
4760
  };
4761
4761
 
4762
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4762
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
4763
4763
  var _Visitor = class {
4764
4764
  visitTag(tag) {
4765
4765
  const strAttrs = this._serializeAttributes(tag.attrs);
@@ -4847,7 +4847,7 @@ function escapeXml(text2) {
4847
4847
  return _ESCAPED_CHARS.reduce((text3, entry) => text3.replace(entry[0], entry[1]), text2);
4848
4848
  }
4849
4849
 
4850
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4850
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
4851
4851
  var _MESSAGES_TAG = "messagebundle";
4852
4852
  var _MESSAGE_TAG = "msg";
4853
4853
  var _PLACEHOLDER_TAG = "ph";
@@ -4999,7 +4999,7 @@ function toPublicName(internalName) {
4999
4999
  return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
5000
5000
  }
5001
5001
 
5002
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
5002
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
5003
5003
  var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
5004
5004
  var TRANSLATION_VAR_PREFIX = "i18n_";
5005
5005
  var I18N_ATTR = "i18n";
@@ -5101,7 +5101,7 @@ function declareI18nVariable(variable2) {
5101
5101
  return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
5102
5102
  }
5103
5103
 
5104
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
5104
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
5105
5105
  var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
5106
5106
  var TEMPORARY_NAME = "_t";
5107
5107
  var CONTEXT_NAME = "ctx";
@@ -5363,7 +5363,7 @@ function getInstructionStatements(instructions) {
5363
5363
  return statements;
5364
5364
  }
5365
5365
 
5366
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
5366
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
5367
5367
  function compileInjectable(meta, resolveForwardRefs) {
5368
5368
  let result = null;
5369
5369
  const factoryMeta = {
@@ -5448,7 +5448,7 @@ function createFactoryFunction(type) {
5448
5448
  return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
5449
5449
  }
5450
5450
 
5451
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
5451
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/assertions.mjs
5452
5452
  var UNUSABLE_INTERPOLATION_REGEXPS = [
5453
5453
  /^\s*$/,
5454
5454
  /[<>]/,
@@ -5470,7 +5470,7 @@ function assertInterpolationSymbols(identifier, value) {
5470
5470
  }
5471
5471
  }
5472
5472
 
5473
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
5473
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
5474
5474
  var InterpolationConfig = class {
5475
5475
  static fromArray(markers) {
5476
5476
  if (!markers) {
@@ -5487,7 +5487,7 @@ var InterpolationConfig = class {
5487
5487
  var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
5488
5488
  var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
5489
5489
 
5490
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/chars.mjs
5490
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/chars.mjs
5491
5491
  var $EOF = 0;
5492
5492
  var $BSPACE = 8;
5493
5493
  var $TAB = 9;
@@ -5569,7 +5569,7 @@ function isQuote(code) {
5569
5569
  return code === $SQ || code === $DQ || code === $BT;
5570
5570
  }
5571
5571
 
5572
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/parse_util.mjs
5572
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/parse_util.mjs
5573
5573
  var ParseLocation = class {
5574
5574
  constructor(file, offset, line, col) {
5575
5575
  this.file = file;
@@ -5716,7 +5716,7 @@ function sanitizeIdentifier(name) {
5716
5716
  return name.replace(/\W/g, "_");
5717
5717
  }
5718
5718
 
5719
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
5719
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
5720
5720
  var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
5721
5721
  var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
5722
5722
  constructor() {
@@ -5809,7 +5809,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
5809
5809
  }
5810
5810
  };
5811
5811
 
5812
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
5812
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
5813
5813
  var policy;
5814
5814
  function getPolicy() {
5815
5815
  if (policy === void 0) {
@@ -5847,7 +5847,7 @@ function newTrustedFunctionForJIT(...args) {
5847
5847
  return fn2.bind(_global);
5848
5848
  }
5849
5849
 
5850
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
5850
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
5851
5851
  var JitEvaluator = class {
5852
5852
  evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
5853
5853
  const converter = new JitEmitterVisitor(refResolver);
@@ -5938,7 +5938,7 @@ function isUseStrictStatement(statement) {
5938
5938
  return statement.isEquivalent(literal("use strict").toStmt());
5939
5939
  }
5940
5940
 
5941
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
5941
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
5942
5942
  function compileInjector(meta) {
5943
5943
  const definitionMap = new DefinitionMap();
5944
5944
  if (meta.providers !== null) {
@@ -5955,7 +5955,7 @@ function createInjectorType(meta) {
5955
5955
  return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
5956
5956
  }
5957
5957
 
5958
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
5958
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
5959
5959
  var R3JitReflector = class {
5960
5960
  constructor(context) {
5961
5961
  this.context = context;
@@ -5971,7 +5971,7 @@ var R3JitReflector = class {
5971
5971
  }
5972
5972
  };
5973
5973
 
5974
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5974
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
5975
5975
  var R3SelectorScopeMode;
5976
5976
  (function(R3SelectorScopeMode2) {
5977
5977
  R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
@@ -6112,7 +6112,7 @@ function tupleOfTypes(types) {
6112
6112
  return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
6113
6113
  }
6114
6114
 
6115
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
6115
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
6116
6116
  function compilePipeFromMetadata(metadata) {
6117
6117
  const definitionMapValues = [];
6118
6118
  definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
@@ -6133,7 +6133,7 @@ function createPipeType(metadata) {
6133
6133
  ]));
6134
6134
  }
6135
6135
 
6136
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
6136
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
6137
6137
  var R3TemplateDependencyKind;
6138
6138
  (function(R3TemplateDependencyKind2) {
6139
6139
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
@@ -6141,7 +6141,7 @@ var R3TemplateDependencyKind;
6141
6141
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
6142
6142
  })(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
6143
6143
 
6144
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
6144
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
6145
6145
  var ParserError = class {
6146
6146
  constructor(message, input, errLocation, ctxLocation) {
6147
6147
  this.input = input;
@@ -6807,7 +6807,7 @@ var BoundElementProperty = class {
6807
6807
  }
6808
6808
  };
6809
6809
 
6810
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
6810
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
6811
6811
  var _EventHandlerVars = class {
6812
6812
  };
6813
6813
  var EventHandlerVars = _EventHandlerVars;
@@ -7448,7 +7448,7 @@ var BuiltinFunctionCall = class extends Call {
7448
7448
  }
7449
7449
  };
7450
7450
 
7451
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
7451
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
7452
7452
  var _SECURITY_SCHEMA;
7453
7453
  function SECURITY_SCHEMA() {
7454
7454
  if (!_SECURITY_SCHEMA) {
@@ -7506,7 +7506,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
7506
7506
  return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
7507
7507
  }
7508
7508
 
7509
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/shadow_css.mjs
7509
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/shadow_css.mjs
7510
7510
  var animationKeywords = /* @__PURE__ */ new Set([
7511
7511
  "inherit",
7512
7512
  "initial",
@@ -7977,7 +7977,7 @@ function repeatGroups(groups, multiples) {
7977
7977
  }
7978
7978
  }
7979
7979
 
7980
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
7980
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
7981
7981
  var OpKind;
7982
7982
  (function(OpKind2) {
7983
7983
  OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
@@ -8136,7 +8136,7 @@ var TemplateKind;
8136
8136
  TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
8137
8137
  })(TemplateKind || (TemplateKind = {}));
8138
8138
 
8139
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
8139
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
8140
8140
  var ConsumesSlot = Symbol("ConsumesSlot");
8141
8141
  var DependsOnSlotContext = Symbol("DependsOnSlotContext");
8142
8142
  var ConsumesVarsTrait = Symbol("ConsumesVars");
@@ -8168,7 +8168,7 @@ function hasUsesVarOffsetTrait(expr) {
8168
8168
  return expr[UsesVarOffset] === true;
8169
8169
  }
8170
8170
 
8171
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
8171
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
8172
8172
  function createStatementOp(statement) {
8173
8173
  return __spreadValues({
8174
8174
  kind: OpKind.Statement,
@@ -8190,7 +8190,7 @@ var NEW_OP = {
8190
8190
  next: null
8191
8191
  };
8192
8192
 
8193
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
8193
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
8194
8194
  function createInterpolateTextOp(xref, interpolation, sourceSpan) {
8195
8195
  return __spreadValues(__spreadValues(__spreadValues({
8196
8196
  kind: OpKind.InterpolateText,
@@ -8356,7 +8356,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
8356
8356
  }, NEW_OP);
8357
8357
  }
8358
8358
 
8359
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
8359
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
8360
8360
  var _a;
8361
8361
  var _b;
8362
8362
  var _c;
@@ -9188,7 +9188,7 @@ function isStringLiteral(expr) {
9188
9188
  return expr instanceof LiteralExpr && typeof expr.value === "string";
9189
9189
  }
9190
9190
 
9191
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
9191
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
9192
9192
  var _OpList = class {
9193
9193
  constructor() {
9194
9194
  this.debugListId = _OpList.nextListId++;
@@ -9379,14 +9379,14 @@ var OpList = _OpList;
9379
9379
  _OpList.nextListId = 0;
9380
9380
  })();
9381
9381
 
9382
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
9382
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
9383
9383
  var SlotHandle = class {
9384
9384
  constructor() {
9385
9385
  this.slot = null;
9386
9386
  }
9387
9387
  };
9388
9388
 
9389
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
9389
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
9390
9390
  var elementContainerOpKinds = /* @__PURE__ */ new Set([
9391
9391
  OpKind.Element,
9392
9392
  OpKind.ElementStart,
@@ -9673,7 +9673,7 @@ function createI18nAttributesOp(xref, handle, target) {
9673
9673
  }, NEW_OP), TRAIT_CONSUMES_SLOT);
9674
9674
  }
9675
9675
 
9676
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
9676
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
9677
9677
  function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
9678
9678
  return __spreadValues(__spreadValues({
9679
9679
  kind: OpKind.HostProperty,
@@ -9687,10 +9687,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
9687
9687
  }, TRAIT_CONSUMES_VARS), NEW_OP);
9688
9688
  }
9689
9689
 
9690
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
9690
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
9691
9691
  var CTX_REF = "CTX_REF_MARKER";
9692
9692
 
9693
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
9693
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
9694
9694
  var CompilationJobKind;
9695
9695
  (function(CompilationJobKind2) {
9696
9696
  CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
@@ -9797,7 +9797,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
9797
9797
  }
9798
9798
  };
9799
9799
 
9800
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
9800
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
9801
9801
  function deleteAnyCasts(job) {
9802
9802
  for (const unit of job.units) {
9803
9803
  for (const op of unit.ops()) {
@@ -9815,7 +9815,7 @@ function removeAnys(e) {
9815
9815
  return e;
9816
9816
  }
9817
9817
 
9818
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
9818
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
9819
9819
  function applyI18nExpressions(job) {
9820
9820
  const i18nContexts = /* @__PURE__ */ new Map();
9821
9821
  for (const unit of job.units) {
@@ -9858,7 +9858,7 @@ function needsApplication(i18nContexts, op) {
9858
9858
  return false;
9859
9859
  }
9860
9860
 
9861
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
9861
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
9862
9862
  function assignI18nSlotDependencies(job) {
9863
9863
  for (const unit of job.units) {
9864
9864
  let updateOp = unit.update.head;
@@ -9903,7 +9903,7 @@ function assignI18nSlotDependencies(job) {
9903
9903
  }
9904
9904
  }
9905
9905
 
9906
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
9906
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
9907
9907
  function createOpXrefMap(unit) {
9908
9908
  const map = /* @__PURE__ */ new Map();
9909
9909
  for (const op of unit.create) {
@@ -9918,7 +9918,7 @@ function createOpXrefMap(unit) {
9918
9918
  return map;
9919
9919
  }
9920
9920
 
9921
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
9921
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
9922
9922
  function extractAttributes(job) {
9923
9923
  for (const unit of job.units) {
9924
9924
  const elements = createOpXrefMap(unit);
@@ -10020,7 +10020,7 @@ function extractAttributeOp(unit, op, elements) {
10020
10020
  }
10021
10021
  }
10022
10022
 
10023
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
10023
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
10024
10024
  function lookupElement2(elements, xref) {
10025
10025
  const el = elements.get(xref);
10026
10026
  if (el === void 0) {
@@ -10071,7 +10071,7 @@ function specializeBindings(job) {
10071
10071
  }
10072
10072
  }
10073
10073
 
10074
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
10074
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
10075
10075
  var CHAINABLE = /* @__PURE__ */ new Set([
10076
10076
  Identifiers.attribute,
10077
10077
  Identifiers.classProp,
@@ -10137,7 +10137,7 @@ function chainOperationsInList(opList) {
10137
10137
  }
10138
10138
  }
10139
10139
 
10140
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
10140
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
10141
10141
  function collapseSingletonInterpolations(job) {
10142
10142
  for (const unit of job.units) {
10143
10143
  for (const op of unit.update) {
@@ -10149,7 +10149,7 @@ function collapseSingletonInterpolations(job) {
10149
10149
  }
10150
10150
  }
10151
10151
 
10152
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
10152
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
10153
10153
  function generateConditionalExpressions(job) {
10154
10154
  for (const unit of job.units) {
10155
10155
  for (const op of unit.ops()) {
@@ -10186,7 +10186,7 @@ function generateConditionalExpressions(job) {
10186
10186
  }
10187
10187
  }
10188
10188
 
10189
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
10189
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
10190
10190
  var BINARY_OPERATORS = /* @__PURE__ */ new Map([
10191
10191
  ["&&", BinaryOperator.And],
10192
10192
  [">", BinaryOperator.Bigger],
@@ -10237,7 +10237,7 @@ function literalOrArrayLiteral(value) {
10237
10237
  return literal(value);
10238
10238
  }
10239
10239
 
10240
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
10240
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
10241
10241
  function collectElementConsts(job) {
10242
10242
  const allElementAttributes = /* @__PURE__ */ new Map();
10243
10243
  for (const unit of job.units) {
@@ -10399,7 +10399,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
10399
10399
  return literalArr(attrArray);
10400
10400
  }
10401
10401
 
10402
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
10402
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
10403
10403
  function convertI18nBindings(job) {
10404
10404
  const i18nAttributesByElem = /* @__PURE__ */ new Map();
10405
10405
  for (const unit of job.units) {
@@ -10440,7 +10440,7 @@ function convertI18nBindings(job) {
10440
10440
  }
10441
10441
  }
10442
10442
 
10443
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
10443
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
10444
10444
  function createDeferDepsFns(job) {
10445
10445
  for (const unit of job.units) {
10446
10446
  for (const op of unit.create) {
@@ -10472,7 +10472,7 @@ function createDeferDepsFns(job) {
10472
10472
  }
10473
10473
  }
10474
10474
 
10475
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
10475
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
10476
10476
  function createI18nContexts(job) {
10477
10477
  const attrContextByMessage = /* @__PURE__ */ new Map();
10478
10478
  for (const unit of job.units) {
@@ -10550,7 +10550,7 @@ function createI18nContexts(job) {
10550
10550
  }
10551
10551
  }
10552
10552
 
10553
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
10553
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
10554
10554
  function deduplicateTextBindings(job) {
10555
10555
  const seen = /* @__PURE__ */ new Map();
10556
10556
  for (const unit of job.units) {
@@ -10572,7 +10572,7 @@ function deduplicateTextBindings(job) {
10572
10572
  }
10573
10573
  }
10574
10574
 
10575
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
10575
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
10576
10576
  function configureDeferInstructions(job) {
10577
10577
  for (const unit of job.units) {
10578
10578
  for (const op of unit.create) {
@@ -10589,7 +10589,7 @@ function configureDeferInstructions(job) {
10589
10589
  }
10590
10590
  }
10591
10591
 
10592
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
10592
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
10593
10593
  function resolveDeferTargetNames(job) {
10594
10594
  const scopes = /* @__PURE__ */ new Map();
10595
10595
  function getScopeForView2(view) {
@@ -10683,7 +10683,7 @@ var Scope = class {
10683
10683
  }
10684
10684
  };
10685
10685
 
10686
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
10686
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
10687
10687
  var REPLACEMENTS = /* @__PURE__ */ new Map([
10688
10688
  [OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
10689
10689
  [OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
@@ -10710,7 +10710,7 @@ function collapseEmptyInstructions(job) {
10710
10710
  }
10711
10711
  }
10712
10712
 
10713
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
10713
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
10714
10714
  function expandSafeReads(job) {
10715
10715
  for (const unit of job.units) {
10716
10716
  for (const op of unit.ops()) {
@@ -10846,7 +10846,7 @@ function ternaryTransform(e) {
10846
10846
  return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
10847
10847
  }
10848
10848
 
10849
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
10849
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
10850
10850
  var ESCAPE = "\uFFFD";
10851
10851
  var ELEMENT_MARKER = "#";
10852
10852
  var TEMPLATE_MARKER = "*";
@@ -10982,7 +10982,7 @@ function formatValue(value) {
10982
10982
  return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
10983
10983
  }
10984
10984
 
10985
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
10985
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
10986
10986
  function generateAdvance(job) {
10987
10987
  for (const unit of job.units) {
10988
10988
  const slotMap = /* @__PURE__ */ new Map();
@@ -11014,7 +11014,7 @@ function generateAdvance(job) {
11014
11014
  }
11015
11015
  }
11016
11016
 
11017
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
11017
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
11018
11018
  function generateProjectionDefs(job) {
11019
11019
  const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
11020
11020
  const selectors = [];
@@ -11038,7 +11038,7 @@ function generateProjectionDefs(job) {
11038
11038
  }
11039
11039
  }
11040
11040
 
11041
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
11041
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
11042
11042
  function generateVariables(job) {
11043
11043
  recursivelyProcessView(job.root, null);
11044
11044
  }
@@ -11131,7 +11131,7 @@ function generateVariablesInScopeForView(view, scope) {
11131
11131
  return newOps;
11132
11132
  }
11133
11133
 
11134
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
11134
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
11135
11135
  function collectConstExpressions(job) {
11136
11136
  for (const unit of job.units) {
11137
11137
  for (const op of unit.ops()) {
@@ -11145,7 +11145,7 @@ function collectConstExpressions(job) {
11145
11145
  }
11146
11146
  }
11147
11147
 
11148
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
11148
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
11149
11149
  var STYLE_DOT = "style.";
11150
11150
  var CLASS_DOT = "class.";
11151
11151
  var STYLE_BANG = "style!";
@@ -11203,7 +11203,7 @@ function parseProperty(name) {
11203
11203
  return { property: property2, suffix };
11204
11204
  }
11205
11205
 
11206
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/map_util.mjs
11206
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/map_util.mjs
11207
11207
  function mapLiteral(obj, quoted = false) {
11208
11208
  return literalMap(Object.keys(obj).map((key) => ({
11209
11209
  key,
@@ -11212,7 +11212,7 @@ function mapLiteral(obj, quoted = false) {
11212
11212
  })));
11213
11213
  }
11214
11214
 
11215
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
11215
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
11216
11216
  var IcuSerializerVisitor = class {
11217
11217
  visitText(text2) {
11218
11218
  return text2.value;
@@ -11246,7 +11246,7 @@ function serializeIcuNode(icu) {
11246
11246
  return icu.visit(serializer);
11247
11247
  }
11248
11248
 
11249
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
11249
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
11250
11250
  var TokenType;
11251
11251
  (function(TokenType2) {
11252
11252
  TokenType2[TokenType2["Character"] = 0] = "Character";
@@ -11607,7 +11607,7 @@ function parseIntAutoRadix(text2) {
11607
11607
  return result;
11608
11608
  }
11609
11609
 
11610
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
11610
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
11611
11611
  var SplitInterpolation = class {
11612
11612
  constructor(strings, expressions, offsets) {
11613
11613
  this.strings = strings;
@@ -12501,7 +12501,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
12501
12501
  return offsetMap;
12502
12502
  }
12503
12503
 
12504
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
12504
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
12505
12505
  var NodeWithI18n = class {
12506
12506
  constructor(sourceSpan, i18n2) {
12507
12507
  this.sourceSpan = sourceSpan;
@@ -12612,11 +12612,11 @@ function visitAll2(visitor, nodes, context = null) {
12612
12612
  return result;
12613
12613
  }
12614
12614
 
12615
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
12615
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
12616
12616
  var ElementSchemaRegistry = class {
12617
12617
  };
12618
12618
 
12619
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
12619
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
12620
12620
  var BOOLEAN = "boolean";
12621
12621
  var NUMBER = "number";
12622
12622
  var STRING = "string";
@@ -12969,7 +12969,7 @@ function _isPixelDimensionStyle(prop) {
12969
12969
  }
12970
12970
  }
12971
12971
 
12972
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
12972
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
12973
12973
  var HtmlTagDefinition = class {
12974
12974
  constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
12975
12975
  this.closedByChildren = {};
@@ -13087,7 +13087,7 @@ function getHtmlTagDefinition(tagName) {
13087
13087
  return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
13088
13088
  }
13089
13089
 
13090
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
13090
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
13091
13091
  var TAG_TO_PLACEHOLDER_NAMES = {
13092
13092
  "A": "LINK",
13093
13093
  "B": "BOLD_TEXT",
@@ -13209,7 +13209,7 @@ var PlaceholderRegistry = class {
13209
13209
  }
13210
13210
  };
13211
13211
 
13212
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
13212
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
13213
13213
  var _expParser = new Parser(new Lexer());
13214
13214
  function createI18nMessageFactory(interpolationConfig, containerBlocks) {
13215
13215
  const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
@@ -13388,14 +13388,14 @@ function extractPlaceholderName(input) {
13388
13388
  return input.split(_CUSTOM_PH_EXP)[2];
13389
13389
  }
13390
13390
 
13391
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
13391
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
13392
13392
  var I18nError = class extends ParseError {
13393
13393
  constructor(span, msg) {
13394
13394
  super(span, msg);
13395
13395
  }
13396
13396
  };
13397
13397
 
13398
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
13398
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
13399
13399
  var NAMED_ENTITIES = {
13400
13400
  "AElig": "\xC6",
13401
13401
  "AMP": "&",
@@ -15526,7 +15526,7 @@ var NAMED_ENTITIES = {
15526
15526
  var NGSP_UNICODE = "\uE500";
15527
15527
  NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
15528
15528
 
15529
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
15529
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
15530
15530
  var TokenError = class extends ParseError {
15531
15531
  constructor(errorMsg, tokenType, span) {
15532
15532
  super(span, errorMsg);
@@ -16447,7 +16447,7 @@ var CursorError = class {
16447
16447
  }
16448
16448
  };
16449
16449
 
16450
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
16450
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
16451
16451
  var TreeError = class extends ParseError {
16452
16452
  static create(elementName, span, msg) {
16453
16453
  return new TreeError(elementName, span, msg);
@@ -16831,7 +16831,7 @@ function decodeEntity(match, entity) {
16831
16831
  return match;
16832
16832
  }
16833
16833
 
16834
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
16834
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
16835
16835
  var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
16836
16836
  "iframe|srcdoc",
16837
16837
  "*|innerhtml",
@@ -16846,7 +16846,7 @@ function isTrustedTypesSink(tagName, propName) {
16846
16846
  return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
16847
16847
  }
16848
16848
 
16849
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
16849
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
16850
16850
  var setI18nRefs = (htmlNode, i18nNode) => {
16851
16851
  if (htmlNode instanceof NodeWithI18n) {
16852
16852
  if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
@@ -17003,7 +17003,7 @@ function i18nMetaToJSDoc(meta) {
17003
17003
  return jsDocComment(tags);
17004
17004
  }
17005
17005
 
17006
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
17006
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
17007
17007
  var GOOG_GET_MSG = "goog.getMsg";
17008
17008
  function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
17009
17009
  const messageString = serializeI18nMessageForGetMsg(message);
@@ -17054,7 +17054,7 @@ function serializeI18nMessageForGetMsg(message) {
17054
17054
  return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
17055
17055
  }
17056
17056
 
17057
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
17057
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
17058
17058
  function createLocalizeStatements(variable2, message, params) {
17059
17059
  const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
17060
17060
  const sourceSpan = getSourceSpan(message);
@@ -17143,7 +17143,7 @@ function createEmptyMessagePart(location) {
17143
17143
  return new LiteralPiece("", new ParseSourceSpan(location, location));
17144
17144
  }
17145
17145
 
17146
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
17146
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
17147
17147
  var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
17148
17148
  var TRANSLATION_VAR_PREFIX2 = "i18n_";
17149
17149
  var I18N_ICU_MAPPING_PREFIX2 = "I18N_EXP_";
@@ -17304,7 +17304,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
17304
17304
  return variable(name);
17305
17305
  }
17306
17306
 
17307
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
17307
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
17308
17308
  function convertI18nText(job) {
17309
17309
  var _a2, _b2, _c2;
17310
17310
  for (const unit of job.units) {
@@ -17374,7 +17374,7 @@ function convertI18nText(job) {
17374
17374
  }
17375
17375
  }
17376
17376
 
17377
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
17377
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
17378
17378
  function liftLocalRefs(job) {
17379
17379
  for (const unit of job.units) {
17380
17380
  for (const op of unit.create) {
@@ -17404,7 +17404,7 @@ function serializeLocalRefs(refs) {
17404
17404
  return literalArr(constRefs);
17405
17405
  }
17406
17406
 
17407
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
17407
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
17408
17408
  function emitNamespaceChanges(job) {
17409
17409
  for (const unit of job.units) {
17410
17410
  let activeNamespace = Namespace.HTML;
@@ -17420,7 +17420,7 @@ function emitNamespaceChanges(job) {
17420
17420
  }
17421
17421
  }
17422
17422
 
17423
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
17423
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
17424
17424
  function parse(value) {
17425
17425
  const styles = [];
17426
17426
  let i = 0;
@@ -17481,7 +17481,7 @@ function hyphenate2(value) {
17481
17481
  }).toLowerCase();
17482
17482
  }
17483
17483
 
17484
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
17484
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
17485
17485
  function nameFunctionsAndVariables(job) {
17486
17486
  addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
17487
17487
  }
@@ -17601,7 +17601,7 @@ function stripImportant(name) {
17601
17601
  return name;
17602
17602
  }
17603
17603
 
17604
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
17604
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
17605
17605
  function mergeNextContextExpressions(job) {
17606
17606
  for (const unit of job.units) {
17607
17607
  for (const op of unit.create) {
@@ -17647,7 +17647,7 @@ function mergeNextContextsInOps(ops) {
17647
17647
  }
17648
17648
  }
17649
17649
 
17650
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
17650
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
17651
17651
  var CONTAINER_TAG = "ng-container";
17652
17652
  function generateNgContainerOps(job) {
17653
17653
  for (const unit of job.units) {
@@ -17664,7 +17664,7 @@ function generateNgContainerOps(job) {
17664
17664
  }
17665
17665
  }
17666
17666
 
17667
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
17667
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
17668
17668
  function lookupElement3(elements, xref) {
17669
17669
  const el = elements.get(xref);
17670
17670
  if (el === void 0) {
@@ -17694,7 +17694,7 @@ function disableBindings(job) {
17694
17694
  }
17695
17695
  }
17696
17696
 
17697
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
17697
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
17698
17698
  function generateNullishCoalesceExpressions(job) {
17699
17699
  for (const unit of job.units) {
17700
17700
  for (const op of unit.ops()) {
@@ -17710,7 +17710,7 @@ function generateNullishCoalesceExpressions(job) {
17710
17710
  }
17711
17711
  }
17712
17712
 
17713
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
17713
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
17714
17714
  function kindTest(kind) {
17715
17715
  return (op) => op.kind === kind;
17716
17716
  }
@@ -17792,7 +17792,7 @@ function keepLast(ops) {
17792
17792
  return ops.slice(ops.length - 1);
17793
17793
  }
17794
17794
 
17795
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
17795
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
17796
17796
  function parseExtractedStyles(job) {
17797
17797
  const elements = /* @__PURE__ */ new Map();
17798
17798
  for (const unit of job.units) {
@@ -17827,7 +17827,7 @@ function parseExtractedStyles(job) {
17827
17827
  }
17828
17828
  }
17829
17829
 
17830
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
17830
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
17831
17831
  function removeContentSelectors(job) {
17832
17832
  for (const unit of job.units) {
17833
17833
  const elements = createOpXrefMap(unit);
@@ -17854,7 +17854,7 @@ function lookupInXrefMap(map, xref) {
17854
17854
  return el;
17855
17855
  }
17856
17856
 
17857
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
17857
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
17858
17858
  function createPipes(job) {
17859
17859
  for (const unit of job.units) {
17860
17860
  processPipeBindingsInView(unit);
@@ -17902,7 +17902,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
17902
17902
  throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
17903
17903
  }
17904
17904
 
17905
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
17905
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
17906
17906
  function createVariadicPipes(job) {
17907
17907
  for (const unit of job.units) {
17908
17908
  for (const op of unit.update) {
@@ -17919,7 +17919,7 @@ function createVariadicPipes(job) {
17919
17919
  }
17920
17920
  }
17921
17921
 
17922
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
17922
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
17923
17923
  function propagateI18nBlocks(job) {
17924
17924
  propagateI18nBlocksToTemplates(job.root, 0);
17925
17925
  }
@@ -17973,7 +17973,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
17973
17973
  }
17974
17974
  }
17975
17975
 
17976
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
17976
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
17977
17977
  function extractPureFunctions(job) {
17978
17978
  for (const view of job.units) {
17979
17979
  for (const op of view.ops()) {
@@ -18015,7 +18015,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
18015
18015
  }
18016
18016
  };
18017
18017
 
18018
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
18018
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
18019
18019
  function generatePureLiteralStructures(job) {
18020
18020
  for (const unit of job.units) {
18021
18021
  for (const op of unit.update) {
@@ -18062,7 +18062,7 @@ function transformLiteralMap(expr) {
18062
18062
  return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
18063
18063
  }
18064
18064
 
18065
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
18065
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
18066
18066
  function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
18067
18067
  return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
18068
18068
  }
@@ -18584,7 +18584,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
18584
18584
  return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
18585
18585
  }
18586
18586
 
18587
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
18587
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
18588
18588
  var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
18589
18589
  ["window", Identifiers.resolveWindow],
18590
18590
  ["document", Identifiers.resolveDocument],
@@ -18917,7 +18917,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
18917
18917
  return fn(params, handlerStmts, void 0, void 0, name);
18918
18918
  }
18919
18919
 
18920
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
18920
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
18921
18921
  function removeEmptyBindings(job) {
18922
18922
  for (const unit of job.units) {
18923
18923
  for (const op of unit.update) {
@@ -18938,7 +18938,7 @@ function removeEmptyBindings(job) {
18938
18938
  }
18939
18939
  }
18940
18940
 
18941
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
18941
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
18942
18942
  function removeI18nContexts(job) {
18943
18943
  for (const unit of job.units) {
18944
18944
  for (const op of unit.create) {
@@ -18954,7 +18954,7 @@ function removeI18nContexts(job) {
18954
18954
  }
18955
18955
  }
18956
18956
 
18957
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
18957
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
18958
18958
  function removeUnusedI18nAttributesOps(job) {
18959
18959
  for (const unit of job.units) {
18960
18960
  const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
@@ -18976,7 +18976,7 @@ function removeUnusedI18nAttributesOps(job) {
18976
18976
  }
18977
18977
  }
18978
18978
 
18979
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
18979
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
18980
18980
  function resolveContexts(job) {
18981
18981
  for (const unit of job.units) {
18982
18982
  processLexicalScope(unit, unit.create);
@@ -19017,7 +19017,7 @@ function processLexicalScope(view, ops) {
19017
19017
  }
19018
19018
  }
19019
19019
 
19020
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
19020
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
19021
19021
  function resolveDollarEvent(job) {
19022
19022
  for (const unit of job.units) {
19023
19023
  transformDollarEvent(unit, unit.create);
@@ -19038,7 +19038,7 @@ function transformDollarEvent(unit, ops) {
19038
19038
  }
19039
19039
  }
19040
19040
 
19041
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
19041
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
19042
19042
  function resolveI18nElementPlaceholders(job) {
19043
19043
  const i18nContexts = /* @__PURE__ */ new Map();
19044
19044
  const elements = /* @__PURE__ */ new Map();
@@ -19217,7 +19217,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
19217
19217
  params.set(placeholder, values);
19218
19218
  }
19219
19219
 
19220
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
19220
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
19221
19221
  function resolveI18nExpressionPlaceholders(job) {
19222
19222
  var _a2;
19223
19223
  const subTemplateIndicies = /* @__PURE__ */ new Map();
@@ -19270,7 +19270,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
19270
19270
  }
19271
19271
  }
19272
19272
 
19273
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
19273
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
19274
19274
  function resolveNames(job) {
19275
19275
  for (const unit of job.units) {
19276
19276
  processLexicalScope2(unit, unit.create, null);
@@ -19334,7 +19334,7 @@ function processLexicalScope2(unit, ops, savedView) {
19334
19334
  }
19335
19335
  }
19336
19336
 
19337
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
19337
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
19338
19338
  var sanitizerFns = /* @__PURE__ */ new Map([
19339
19339
  [SecurityContext.HTML, Identifiers.sanitizeHtml],
19340
19340
  [SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
@@ -19404,7 +19404,7 @@ function getOnlySecurityContext(securityContext) {
19404
19404
  return securityContext;
19405
19405
  }
19406
19406
 
19407
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
19407
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
19408
19408
  function saveAndRestoreView(job) {
19409
19409
  for (const unit of job.units) {
19410
19410
  unit.create.prepend([
@@ -19449,7 +19449,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
19449
19449
  }
19450
19450
  }
19451
19451
 
19452
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
19452
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
19453
19453
  function allocateSlots(job) {
19454
19454
  const slotMap = /* @__PURE__ */ new Map();
19455
19455
  for (const unit of job.units) {
@@ -19474,7 +19474,7 @@ function allocateSlots(job) {
19474
19474
  }
19475
19475
  }
19476
19476
 
19477
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
19477
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
19478
19478
  function specializeStyleBindings(job) {
19479
19479
  for (const unit of job.units) {
19480
19480
  for (const op of unit.update) {
@@ -19504,7 +19504,7 @@ function specializeStyleBindings(job) {
19504
19504
  }
19505
19505
  }
19506
19506
 
19507
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
19507
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
19508
19508
  function generateTemporaryVariables(job) {
19509
19509
  for (const unit of job.units) {
19510
19510
  unit.create.prepend(generateTemporaries(unit.create));
@@ -19562,7 +19562,7 @@ function assignName(names, expr) {
19562
19562
  expr.name = name;
19563
19563
  }
19564
19564
 
19565
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
19565
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
19566
19566
  function generateTrackFns(job) {
19567
19567
  for (const unit of job.units) {
19568
19568
  for (const op of unit.create) {
@@ -19595,7 +19595,7 @@ function generateTrackFns(job) {
19595
19595
  }
19596
19596
  }
19597
19597
 
19598
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
19598
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
19599
19599
  function optimizeTrackFns(job) {
19600
19600
  for (const unit of job.units) {
19601
19601
  for (const op of unit.create) {
@@ -19642,7 +19642,7 @@ function isTrackByFunctionCall(rootView, expr) {
19642
19642
  return true;
19643
19643
  }
19644
19644
 
19645
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
19645
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
19646
19646
  function generateTrackVariables(job) {
19647
19647
  for (const unit of job.units) {
19648
19648
  for (const op of unit.create) {
@@ -19663,7 +19663,7 @@ function generateTrackVariables(job) {
19663
19663
  }
19664
19664
  }
19665
19665
 
19666
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
19666
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
19667
19667
  function countVariables(job) {
19668
19668
  for (const unit of job.units) {
19669
19669
  let varCount = 0;
@@ -19771,7 +19771,7 @@ function isSingletonInterpolation(expr) {
19771
19771
  return true;
19772
19772
  }
19773
19773
 
19774
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
19774
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
19775
19775
  function optimizeVariables(job) {
19776
19776
  for (const unit of job.units) {
19777
19777
  inlineAlwaysInlineVariables(unit.create);
@@ -20021,7 +20021,7 @@ function allowConservativeInlining(decl, target) {
20021
20021
  }
20022
20022
  }
20023
20023
 
20024
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
20024
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
20025
20025
  function wrapI18nIcus(job) {
20026
20026
  for (const unit of job.units) {
20027
20027
  let currentI18nOp = null;
@@ -20051,7 +20051,7 @@ function wrapI18nIcus(job) {
20051
20051
  }
20052
20052
  }
20053
20053
 
20054
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
20054
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
20055
20055
  var phases = [
20056
20056
  { kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
20057
20057
  { kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
@@ -20216,7 +20216,7 @@ function emitHostBindingFunction(job) {
20216
20216
  );
20217
20217
  }
20218
20218
 
20219
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
20219
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
20220
20220
  var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
20221
20221
  var domSchema = new DomElementSchemaRegistry();
20222
20222
  var NG_TEMPLATE_TAG_NAME = "ng-template";
@@ -20899,10 +20899,10 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
20899
20899
  return null;
20900
20900
  }
20901
20901
 
20902
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
20902
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
20903
20903
  var USE_TEMPLATE_PIPELINE = false;
20904
20904
 
20905
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
20905
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
20906
20906
  var IMPORTANT_FLAG = "!important";
20907
20907
  var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
20908
20908
  var StylingBuilder = class {
@@ -21235,7 +21235,7 @@ function isEmptyExpression(ast) {
21235
21235
  return ast instanceof EmptyExpr;
21236
21236
  }
21237
21237
 
21238
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
21238
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
21239
21239
  var HtmlParser = class extends Parser2 {
21240
21240
  constructor() {
21241
21241
  super(getHtmlTagDefinition);
@@ -21245,7 +21245,7 @@ var HtmlParser = class extends Parser2 {
21245
21245
  }
21246
21246
  };
21247
21247
 
21248
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
21248
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
21249
21249
  var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
21250
21250
  var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
21251
21251
  var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
@@ -21311,7 +21311,7 @@ function visitAllWithSiblings(visitor, nodes) {
21311
21311
  return result;
21312
21312
  }
21313
21313
 
21314
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
21314
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
21315
21315
  var PROPERTY_PARTS_SEPARATOR = ".";
21316
21316
  var ATTRIBUTE_PREFIX = "attr";
21317
21317
  var CLASS_PREFIX = "class";
@@ -21631,7 +21631,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
21631
21631
  return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
21632
21632
  }
21633
21633
 
21634
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
21634
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
21635
21635
  function isStyleUrlResolvable(url) {
21636
21636
  if (url == null || url.length === 0 || url[0] == "/")
21637
21637
  return false;
@@ -21640,7 +21640,7 @@ function isStyleUrlResolvable(url) {
21640
21640
  }
21641
21641
  var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
21642
21642
 
21643
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
21643
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
21644
21644
  var NG_CONTENT_SELECT_ATTR = "select";
21645
21645
  var LINK_ELEMENT = "link";
21646
21646
  var LINK_STYLE_REL_ATTR = "rel";
@@ -21710,7 +21710,7 @@ function normalizeNgContentSelect(selectAttr) {
21710
21710
  return selectAttr;
21711
21711
  }
21712
21712
 
21713
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
21713
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
21714
21714
  var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
21715
21715
  var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
21716
21716
  var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
@@ -22001,7 +22001,7 @@ function stripOptionalParentheses(param, errors) {
22001
22001
  return expression.slice(start, end);
22002
22002
  }
22003
22003
 
22004
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
22004
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
22005
22005
  var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
22006
22006
  var SEPARATOR_PATTERN = /^\s$/;
22007
22007
  var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
@@ -22265,7 +22265,7 @@ function parseDeferredTime(value) {
22265
22265
  return parseFloat(time) * (units === "s" ? 1e3 : 1);
22266
22266
  }
22267
22267
 
22268
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
22268
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
22269
22269
  var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
22270
22270
  var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
22271
22271
  var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
@@ -22400,7 +22400,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
22400
22400
  return { triggers, prefetchTriggers };
22401
22401
  }
22402
22402
 
22403
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
22403
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
22404
22404
  var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
22405
22405
  var KW_BIND_IDX = 1;
22406
22406
  var KW_LET_IDX = 2;
@@ -22831,7 +22831,7 @@ function textContents(node) {
22831
22831
  }
22832
22832
  }
22833
22833
 
22834
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
22834
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
22835
22835
  var TagType;
22836
22836
  (function(TagType2) {
22837
22837
  TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
@@ -22976,7 +22976,7 @@ function serializePlaceholderValue(value) {
22976
22976
  }
22977
22977
  }
22978
22978
 
22979
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
22979
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
22980
22980
  var NG_CONTENT_SELECT_ATTR2 = "select";
22981
22981
  var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
22982
22982
  var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
@@ -23050,7 +23050,7 @@ var TemplateData = class {
23050
23050
  }
23051
23051
  };
23052
23052
  var TemplateDefinitionBuilder = class {
23053
- constructor(constantPool, parentBindingScope, level = 0, contextName, i18nContext, templateIndex, templateName, _namespace, relativeContextFilePath, i18nUseExternalIds, deferBlocks, elementLocations, _constants = createComponentDefConsts()) {
23053
+ constructor(constantPool, parentBindingScope, level = 0, contextName, i18nContext, templateIndex, templateName, _namespace, relativeContextFilePath, i18nUseExternalIds, deferBlocks, elementLocations, allDeferrableDepsFn, _constants = createComponentDefConsts()) {
23054
23054
  this.constantPool = constantPool;
23055
23055
  this.level = level;
23056
23056
  this.contextName = contextName;
@@ -23061,6 +23061,7 @@ var TemplateDefinitionBuilder = class {
23061
23061
  this.i18nUseExternalIds = i18nUseExternalIds;
23062
23062
  this.deferBlocks = deferBlocks;
23063
23063
  this.elementLocations = elementLocations;
23064
+ this.allDeferrableDepsFn = allDeferrableDepsFn;
23064
23065
  this._constants = _constants;
23065
23066
  this._dataIndex = 0;
23066
23067
  this._bindingContext = 0;
@@ -23536,7 +23537,7 @@ var TemplateDefinitionBuilder = class {
23536
23537
  }
23537
23538
  const contextName = `${this.contextName}${contextNameSuffix}_${index}`;
23538
23539
  const name = `${contextName}_Template`;
23539
- const visitor = new TemplateDefinitionBuilder(this.constantPool, this._bindingScope, this.level + 1, contextName, this.i18n, index, name, this._namespace, this.fileBasedI18nSuffix, this.i18nUseExternalIds, this.deferBlocks, this.elementLocations, this._constants);
23540
+ const visitor = new TemplateDefinitionBuilder(this.constantPool, this._bindingScope, this.level + 1, contextName, this.i18n, index, name, this._namespace, this.fileBasedI18nSuffix, this.i18nUseExternalIds, this.deferBlocks, this.elementLocations, this.allDeferrableDepsFn, this._constants);
23540
23541
  this._nestedTemplateFns.push(() => {
23541
23542
  const templateFunctionExpr = visitor.buildTemplateFunction(children, variables, this._ngContentReservedSlots.length + this._ngContentSelectorsOffset, i18nMeta, variableAliases);
23542
23543
  this.constantPool.statements.push(templateFunctionExpr.toDeclStmt(name));
@@ -23708,6 +23709,7 @@ var TemplateDefinitionBuilder = class {
23708
23709
  });
23709
23710
  }
23710
23711
  visitDeferredBlock(deferred) {
23712
+ var _a2;
23711
23713
  const { loading, placeholder, error: error2, triggers, prefetchTriggers } = deferred;
23712
23714
  const metadata = this.deferBlocks.get(deferred);
23713
23715
  if (!metadata) {
@@ -23724,7 +23726,7 @@ var TemplateDefinitionBuilder = class {
23724
23726
  this.creationInstruction(deferred.sourceSpan, Identifiers.defer, trimTrailingNulls([
23725
23727
  literal(deferredIndex),
23726
23728
  literal(primaryTemplateIndex),
23727
- this.createDeferredDepsFunction(depsFnName, metadata),
23729
+ (_a2 = this.allDeferrableDepsFn) != null ? _a2 : this.createDeferredDepsFunction(depsFnName, metadata),
23728
23730
  literal(loadingIndex),
23729
23731
  literal(placeholderIndex),
23730
23732
  literal(errorIndex),
@@ -24661,7 +24663,7 @@ function createClosureModeGuard2() {
24661
24663
  return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
24662
24664
  }
24663
24665
 
24664
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
24666
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
24665
24667
  var ATTR_REGEX = /attr\.([^\]]+)/;
24666
24668
  var COMPONENT_VARIABLE = "%COMP%";
24667
24669
  var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
@@ -24738,6 +24740,17 @@ function compileDirectiveFromMetadata(meta, constantPool, bindingParser) {
24738
24740
  const type = createDirectiveType(meta);
24739
24741
  return { expression, type, statements: [] };
24740
24742
  }
24743
+ function createDeferredDepsFunction(constantPool, name, deps) {
24744
+ const dependencyExp = [];
24745
+ for (const [symbolName, importPath] of deps) {
24746
+ const innerFn = arrowFn([new FnParam("m", DYNAMIC_TYPE)], variable("m").prop(symbolName));
24747
+ const importExpr2 = new DynamicImportExpr(importPath).prop("then").callFn([innerFn]);
24748
+ dependencyExp.push(importExpr2);
24749
+ }
24750
+ const depsFnExpr = arrowFn([], literalArr(dependencyExp));
24751
+ constantPool.statements.push(depsFnExpr.toDeclStmt(name, StmtModifier.Final));
24752
+ return variable(name);
24753
+ }
24741
24754
  function compileComponentFromMetadata(meta, constantPool, bindingParser) {
24742
24755
  const definitionMap = baseDirectiveFields(meta, constantPool, bindingParser);
24743
24756
  addFeatures(definitionMap, meta);
@@ -24755,8 +24768,13 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
24755
24768
  const templateTypeName = meta.name;
24756
24769
  const templateName = templateTypeName ? `${templateTypeName}_Template` : null;
24757
24770
  if (!USE_TEMPLATE_PIPELINE) {
24771
+ let allDeferrableDepsFn = null;
24772
+ if (meta.deferBlocks.size > 0 && meta.deferrableTypes.size > 0 && meta.deferBlockDepsEmitMode === 1) {
24773
+ const fnName = `${templateTypeName}_DeferFn`;
24774
+ allDeferrableDepsFn = createDeferredDepsFunction(constantPool, fnName, meta.deferrableTypes);
24775
+ }
24758
24776
  const template2 = meta.template;
24759
- const templateBuilder = new TemplateDefinitionBuilder(constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName, Identifiers.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, /* @__PURE__ */ new Map());
24777
+ const templateBuilder = new TemplateDefinitionBuilder(constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName, Identifiers.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks, /* @__PURE__ */ new Map(), allDeferrableDepsFn);
24760
24778
  const templateFunctionExpression = templateBuilder.buildTemplateFunction(template2.nodes, []);
24761
24779
  const ngContentSelectors = templateBuilder.getNgContentSelectors();
24762
24780
  if (ngContentSelectors) {
@@ -25276,7 +25294,7 @@ function createHostDirectivesMappingArray(mapping) {
25276
25294
  return elements.length > 0 ? literalArr(elements) : null;
25277
25295
  }
25278
25296
 
25279
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
25297
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
25280
25298
  var R3TargetBinder = class {
25281
25299
  constructor(directiveMatcher) {
25282
25300
  this.directiveMatcher = directiveMatcher;
@@ -25289,7 +25307,7 @@ var R3TargetBinder = class {
25289
25307
  const scopedNodeEntities = extractScopedNodeEntities(scope);
25290
25308
  const { directives, eagerDirectives, bindings, references } = DirectiveBinder.apply(target.template, this.directiveMatcher);
25291
25309
  const { expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks } = TemplateBinder.applyWithScope(target.template, scope);
25292
- return new R3BoundTarget(target, directives, eagerDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks);
25310
+ return new R3BoundTarget(target, directives, eagerDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks, scope);
25293
25311
  }
25294
25312
  };
25295
25313
  var Scope2 = class {
@@ -25297,6 +25315,7 @@ var Scope2 = class {
25297
25315
  this.parentScope = parentScope;
25298
25316
  this.rootNode = rootNode;
25299
25317
  this.namedEntities = /* @__PURE__ */ new Map();
25318
+ this.elementsInScope = /* @__PURE__ */ new Set();
25300
25319
  this.childScopes = /* @__PURE__ */ new Map();
25301
25320
  this.isDeferred = parentScope !== null && parentScope.isDeferred ? true : rootNode instanceof DeferredBlock;
25302
25321
  }
@@ -25330,6 +25349,7 @@ var Scope2 = class {
25330
25349
  visitElement(element2) {
25331
25350
  element2.references.forEach((node) => this.visitReference(node));
25332
25351
  element2.children.forEach((node) => node.visit(this));
25352
+ this.elementsInScope.add(element2);
25333
25353
  }
25334
25354
  visitTemplate(template2) {
25335
25355
  template2.references.forEach((node) => this.visitReference(node));
@@ -25739,7 +25759,7 @@ var TemplateBinder = class extends RecursiveAstVisitor2 {
25739
25759
  }
25740
25760
  };
25741
25761
  var R3BoundTarget = class {
25742
- constructor(target, directives, eagerDirectives, bindings, references, exprTargets, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferredBlocks) {
25762
+ constructor(target, directives, eagerDirectives, bindings, references, exprTargets, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferredBlocks, rootScope) {
25743
25763
  this.target = target;
25744
25764
  this.directives = directives;
25745
25765
  this.eagerDirectives = eagerDirectives;
@@ -25752,6 +25772,7 @@ var R3BoundTarget = class {
25752
25772
  this.usedPipes = usedPipes;
25753
25773
  this.eagerPipes = eagerPipes;
25754
25774
  this.deferredBlocks = deferredBlocks;
25775
+ this.rootScope = rootScope;
25755
25776
  }
25756
25777
  getEntitiesInScope(node) {
25757
25778
  var _a2;
@@ -25831,6 +25852,15 @@ var R3BoundTarget = class {
25831
25852
  }
25832
25853
  return null;
25833
25854
  }
25855
+ isDeferred(element2) {
25856
+ for (const deferBlock of this.deferredBlocks) {
25857
+ const scope = this.rootScope.childScopes.get(deferBlock);
25858
+ if (scope && scope.elementsInScope.has(element2)) {
25859
+ return true;
25860
+ }
25861
+ }
25862
+ return false;
25863
+ }
25834
25864
  findEntityInScope(rootNode, name) {
25835
25865
  const entities = this.getEntitiesInScope(rootNode);
25836
25866
  for (const entitity of entities) {
@@ -25881,11 +25911,11 @@ function extractScopedNodeEntities(rootScope) {
25881
25911
  return templateEntities;
25882
25912
  }
25883
25913
 
25884
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
25914
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/resource_loader.mjs
25885
25915
  var ResourceLoader = class {
25886
25916
  };
25887
25917
 
25888
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
25918
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
25889
25919
  var CompilerFacadeImpl = class {
25890
25920
  constructor(jitEvaluator = new JitEvaluator()) {
25891
25921
  this.jitEvaluator = jitEvaluator;
@@ -26008,7 +26038,9 @@ var CompilerFacadeImpl = class {
26008
26038
  declarations: facade.declarations.map(convertDeclarationFacadeToMetadata),
26009
26039
  declarationListEmitMode: 0,
26010
26040
  deferBlocks,
26041
+ deferrableTypes: /* @__PURE__ */ new Map(),
26011
26042
  deferrableDeclToImportDecl: /* @__PURE__ */ new Map(),
26043
+ deferBlockDepsEmitMode: 0,
26012
26044
  styles: [...facade.styles, ...template2.styles],
26013
26045
  encapsulation: facade.encapsulation,
26014
26046
  interpolation,
@@ -26215,7 +26247,9 @@ function convertDeclareComponentFacadeToMetadata(decl, typeSourceSpan, sourceMap
26215
26247
  viewProviders: decl.viewProviders !== void 0 ? new WrappedNodeExpr(decl.viewProviders) : null,
26216
26248
  animations: decl.animations !== void 0 ? new WrappedNodeExpr(decl.animations) : null,
26217
26249
  deferBlocks,
26250
+ deferrableTypes: /* @__PURE__ */ new Map(),
26218
26251
  deferrableDeclToImportDecl: /* @__PURE__ */ new Map(),
26252
+ deferBlockDepsEmitMode: 0,
26219
26253
  changeDetection: (_c2 = decl.changeDetection) != null ? _c2 : ChangeDetectionStrategy.Default,
26220
26254
  encapsulation: (_d2 = decl.encapsulation) != null ? _d2 : ViewEncapsulation.Emulated,
26221
26255
  interpolation,
@@ -26454,10 +26488,10 @@ function publishFacade(global) {
26454
26488
  ng.\u0275compilerFacade = new CompilerFacadeImpl();
26455
26489
  }
26456
26490
 
26457
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
26458
- var VERSION2 = new Version("17.1.0-rc.0");
26491
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/version.mjs
26492
+ var VERSION2 = new Version("17.1.0");
26459
26493
 
26460
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
26494
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
26461
26495
  var _I18N_ATTR = "i18n";
26462
26496
  var _I18N_ATTR_PREFIX = "i18n-";
26463
26497
  var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
@@ -26766,7 +26800,7 @@ function _parseMessageMeta(i18n2) {
26766
26800
  return { meaning, description, id: id.trim() };
26767
26801
  }
26768
26802
 
26769
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
26803
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
26770
26804
  var XmlTagDefinition = class {
26771
26805
  constructor() {
26772
26806
  this.closedByParent = false;
@@ -26791,7 +26825,7 @@ function getXmlTagDefinition(tagName) {
26791
26825
  return _TAG_DEFINITION;
26792
26826
  }
26793
26827
 
26794
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
26828
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
26795
26829
  var XmlParser = class extends Parser2 {
26796
26830
  constructor() {
26797
26831
  super(getXmlTagDefinition);
@@ -26801,7 +26835,7 @@ var XmlParser = class extends Parser2 {
26801
26835
  }
26802
26836
  };
26803
26837
 
26804
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
26838
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
26805
26839
  var _VERSION = "1.2";
26806
26840
  var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
26807
26841
  var _DEFAULT_SOURCE_LANG = "en";
@@ -27055,7 +27089,7 @@ function getCtypeForTag(tag) {
27055
27089
  }
27056
27090
  }
27057
27091
 
27058
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
27092
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
27059
27093
  var _VERSION2 = "2.0";
27060
27094
  var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
27061
27095
  var _DEFAULT_SOURCE_LANG2 = "en";
@@ -27371,7 +27405,7 @@ function getTypeForTag(tag) {
27371
27405
  }
27372
27406
  }
27373
27407
 
27374
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
27408
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
27375
27409
  var MessageBundle = class {
27376
27410
  constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
27377
27411
  this._htmlParser = _htmlParser;
@@ -27444,7 +27478,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
27444
27478
  }
27445
27479
  };
27446
27480
 
27447
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
27481
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
27448
27482
  var FactoryTarget2;
27449
27483
  (function(FactoryTarget3) {
27450
27484
  FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
@@ -27454,7 +27488,7 @@ var FactoryTarget2;
27454
27488
  FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
27455
27489
  })(FactoryTarget2 || (FactoryTarget2 = {}));
27456
27490
 
27457
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
27491
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
27458
27492
  function compileClassMetadata(metadata) {
27459
27493
  var _a2, _b2;
27460
27494
  const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
@@ -27468,7 +27502,7 @@ function compileClassMetadata(metadata) {
27468
27502
  }
27469
27503
  function compileComponentClassMetadata(metadata, deferrableTypes) {
27470
27504
  var _a2, _b2;
27471
- if (deferrableTypes.size === 0) {
27505
+ if (deferrableTypes === null || deferrableTypes.size === 0) {
27472
27506
  return compileClassMetadata(metadata);
27473
27507
  }
27474
27508
  const dynamicImports = [];
@@ -27496,7 +27530,7 @@ function compileComponentClassMetadata(metadata, deferrableTypes) {
27496
27530
  return iife.callFn([]);
27497
27531
  }
27498
27532
 
27499
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_class_debug_info_compiler.mjs
27533
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_class_debug_info_compiler.mjs
27500
27534
  function compileClassDebugInfo(debugInfo) {
27501
27535
  const debugInfoObject = {
27502
27536
  className: debugInfo.className
@@ -27516,12 +27550,12 @@ function compileClassDebugInfo(debugInfo) {
27516
27550
  return iife.callFn([]);
27517
27551
  }
27518
27552
 
27519
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
27553
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
27520
27554
  var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
27521
27555
  function compileDeclareClassMetadata(metadata) {
27522
27556
  const definitionMap = new DefinitionMap();
27523
27557
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
27524
- definitionMap.set("version", literal("17.1.0-rc.0"));
27558
+ definitionMap.set("version", literal("17.1.0"));
27525
27559
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27526
27560
  definitionMap.set("type", metadata.type);
27527
27561
  definitionMap.set("decorators", metadata.decorators);
@@ -27530,7 +27564,7 @@ function compileDeclareClassMetadata(metadata) {
27530
27564
  return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
27531
27565
  }
27532
27566
 
27533
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
27567
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
27534
27568
  function toOptionalLiteralArray(values, mapper) {
27535
27569
  if (values === null || values.length === 0) {
27536
27570
  return null;
@@ -27578,7 +27612,7 @@ function compileDependency(dep) {
27578
27612
  return depMeta.toLiteralMap();
27579
27613
  }
27580
27614
 
27581
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
27615
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
27582
27616
  function compileDeclareDirectiveFromMetadata(meta) {
27583
27617
  const definitionMap = createDirectiveDefinitionMap(meta);
27584
27618
  const expression = importExpr(Identifiers.declareDirective).callFn([definitionMap.toLiteralMap()]);
@@ -27590,7 +27624,7 @@ function createDirectiveDefinitionMap(meta) {
27590
27624
  const definitionMap = new DefinitionMap();
27591
27625
  const minVersion = getMinimumVersionForPartialOutput(meta);
27592
27626
  definitionMap.set("minVersion", literal(minVersion));
27593
- definitionMap.set("version", literal("17.1.0-rc.0"));
27627
+ definitionMap.set("version", literal("17.1.0"));
27594
27628
  definitionMap.set("type", meta.type.value);
27595
27629
  if (meta.isStandalone) {
27596
27630
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -27744,7 +27778,7 @@ function legacyInputsPartialMetadata(inputs) {
27744
27778
  }));
27745
27779
  }
27746
27780
 
27747
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
27781
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
27748
27782
  function compileDeclareComponentFromMetadata(meta, template2, additionalTemplateInfo) {
27749
27783
  const definitionMap = createComponentDefinitionMap(meta, template2, additionalTemplateInfo);
27750
27784
  const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
@@ -27878,12 +27912,12 @@ var BlockPresenceVisitor = class extends RecursiveVisitor {
27878
27912
  }
27879
27913
  };
27880
27914
 
27881
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
27915
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
27882
27916
  var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
27883
27917
  function compileDeclareFactoryFunction(meta) {
27884
27918
  const definitionMap = new DefinitionMap();
27885
27919
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
27886
- definitionMap.set("version", literal("17.1.0-rc.0"));
27920
+ definitionMap.set("version", literal("17.1.0"));
27887
27921
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27888
27922
  definitionMap.set("type", meta.type.value);
27889
27923
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -27895,7 +27929,7 @@ function compileDeclareFactoryFunction(meta) {
27895
27929
  };
27896
27930
  }
27897
27931
 
27898
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
27932
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
27899
27933
  var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
27900
27934
  function compileDeclareInjectableFromMetadata(meta) {
27901
27935
  const definitionMap = createInjectableDefinitionMap(meta);
@@ -27906,7 +27940,7 @@ function compileDeclareInjectableFromMetadata(meta) {
27906
27940
  function createInjectableDefinitionMap(meta) {
27907
27941
  const definitionMap = new DefinitionMap();
27908
27942
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
27909
- definitionMap.set("version", literal("17.1.0-rc.0"));
27943
+ definitionMap.set("version", literal("17.1.0"));
27910
27944
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27911
27945
  definitionMap.set("type", meta.type.value);
27912
27946
  if (meta.providedIn !== void 0) {
@@ -27933,7 +27967,7 @@ function createInjectableDefinitionMap(meta) {
27933
27967
  return definitionMap;
27934
27968
  }
27935
27969
 
27936
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
27970
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
27937
27971
  var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
27938
27972
  function compileDeclareInjectorFromMetadata(meta) {
27939
27973
  const definitionMap = createInjectorDefinitionMap(meta);
@@ -27944,7 +27978,7 @@ function compileDeclareInjectorFromMetadata(meta) {
27944
27978
  function createInjectorDefinitionMap(meta) {
27945
27979
  const definitionMap = new DefinitionMap();
27946
27980
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
27947
- definitionMap.set("version", literal("17.1.0-rc.0"));
27981
+ definitionMap.set("version", literal("17.1.0"));
27948
27982
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27949
27983
  definitionMap.set("type", meta.type.value);
27950
27984
  definitionMap.set("providers", meta.providers);
@@ -27954,7 +27988,7 @@ function createInjectorDefinitionMap(meta) {
27954
27988
  return definitionMap;
27955
27989
  }
27956
27990
 
27957
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
27991
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
27958
27992
  var MINIMUM_PARTIAL_LINKER_VERSION5 = "14.0.0";
27959
27993
  function compileDeclareNgModuleFromMetadata(meta) {
27960
27994
  const definitionMap = createNgModuleDefinitionMap(meta);
@@ -27968,7 +28002,7 @@ function createNgModuleDefinitionMap(meta) {
27968
28002
  throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
27969
28003
  }
27970
28004
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
27971
- definitionMap.set("version", literal("17.1.0-rc.0"));
28005
+ definitionMap.set("version", literal("17.1.0"));
27972
28006
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27973
28007
  definitionMap.set("type", meta.type.value);
27974
28008
  if (meta.bootstrap.length > 0) {
@@ -27992,7 +28026,7 @@ function createNgModuleDefinitionMap(meta) {
27992
28026
  return definitionMap;
27993
28027
  }
27994
28028
 
27995
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
28029
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
27996
28030
  var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
27997
28031
  function compileDeclarePipeFromMetadata(meta) {
27998
28032
  const definitionMap = createPipeDefinitionMap(meta);
@@ -28003,7 +28037,7 @@ function compileDeclarePipeFromMetadata(meta) {
28003
28037
  function createPipeDefinitionMap(meta) {
28004
28038
  const definitionMap = new DefinitionMap();
28005
28039
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
28006
- definitionMap.set("version", literal("17.1.0-rc.0"));
28040
+ definitionMap.set("version", literal("17.1.0"));
28007
28041
  definitionMap.set("ngImport", importExpr(Identifiers.core));
28008
28042
  definitionMap.set("type", meta.type.value);
28009
28043
  if (meta.isStandalone) {
@@ -28016,13 +28050,13 @@ function createPipeDefinitionMap(meta) {
28016
28050
  return definitionMap;
28017
28051
  }
28018
28052
 
28019
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
28053
+ // bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler.mjs
28020
28054
  publishFacade(_global);
28021
28055
 
28022
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
28023
- var VERSION3 = new Version("17.1.0-rc.0");
28056
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version.mjs
28057
+ var VERSION3 = new Version("17.1.0");
28024
28058
 
28025
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
28059
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
28026
28060
  var EmitFlags;
28027
28061
  (function(EmitFlags2) {
28028
28062
  EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
@@ -28034,13 +28068,13 @@ var EmitFlags;
28034
28068
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
28035
28069
  })(EmitFlags || (EmitFlags = {}));
28036
28070
 
28037
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
28071
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
28038
28072
  var import_typescript2 = __toESM(require("typescript"), 1);
28039
28073
 
28040
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
28074
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
28041
28075
  var import_typescript104 = __toESM(require("typescript"), 1);
28042
28076
 
28043
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
28077
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
28044
28078
  var path = __toESM(require("path"), 1);
28045
28079
  function i18nGetExtension(formatName) {
28046
28080
  const format = formatName.toLowerCase();
@@ -28090,10 +28124,10 @@ function getPathNormalizer(basePath) {
28090
28124
  };
28091
28125
  }
28092
28126
 
28093
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
28127
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
28094
28128
  var import_typescript3 = __toESM(require("typescript"), 1);
28095
28129
 
28096
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
28130
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
28097
28131
  function toNumbers(value) {
28098
28132
  const suffixIndex = value.lastIndexOf("-");
28099
28133
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -28128,7 +28162,7 @@ function compareVersions(v1, v2) {
28128
28162
  return compareNumbers(toNumbers(v1), toNumbers(v2));
28129
28163
  }
28130
28164
 
28131
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
28165
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
28132
28166
  var MIN_TS_VERSION = "5.2.0";
28133
28167
  var MAX_TS_VERSION = "5.4.0";
28134
28168
  var tsVersion = import_typescript3.default.version;
@@ -28141,13 +28175,13 @@ function verifySupportedTypeScriptVersion() {
28141
28175
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
28142
28176
  }
28143
28177
 
28144
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
28178
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
28145
28179
  var import_typescript100 = __toESM(require("typescript"), 1);
28146
28180
 
28147
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
28181
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
28148
28182
  var import_typescript21 = __toESM(require("typescript"), 1);
28149
28183
 
28150
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
28184
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
28151
28185
  var ErrorCode;
28152
28186
  (function(ErrorCode2) {
28153
28187
  ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
@@ -28181,6 +28215,7 @@ var ErrorCode;
28181
28215
  ErrorCode2[ErrorCode2["HOST_DIRECTIVE_MISSING_REQUIRED_BINDING"] = 2019] = "HOST_DIRECTIVE_MISSING_REQUIRED_BINDING";
28182
28216
  ErrorCode2[ErrorCode2["CONFLICTING_INPUT_TRANSFORM"] = 2020] = "CONFLICTING_INPUT_TRANSFORM";
28183
28217
  ErrorCode2[ErrorCode2["COMPONENT_INVALID_STYLE_URLS"] = 2021] = "COMPONENT_INVALID_STYLE_URLS";
28218
+ ErrorCode2[ErrorCode2["COMPONENT_UNKNOWN_DEFERRED_IMPORT"] = 2022] = "COMPONENT_UNKNOWN_DEFERRED_IMPORT";
28184
28219
  ErrorCode2[ErrorCode2["SYMBOL_NOT_EXPORTED"] = 3001] = "SYMBOL_NOT_EXPORTED";
28185
28220
  ErrorCode2[ErrorCode2["IMPORT_CYCLE_DETECTED"] = 3003] = "IMPORT_CYCLE_DETECTED";
28186
28221
  ErrorCode2[ErrorCode2["IMPORT_GENERATION_FAILURE"] = 3004] = "IMPORT_GENERATION_FAILURE";
@@ -28212,6 +28247,9 @@ var ErrorCode;
28212
28247
  ErrorCode2[ErrorCode2["ILLEGAL_FOR_LOOP_TRACK_ACCESS"] = 8009] = "ILLEGAL_FOR_LOOP_TRACK_ACCESS";
28213
28248
  ErrorCode2[ErrorCode2["INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT"] = 8010] = "INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT";
28214
28249
  ErrorCode2[ErrorCode2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = 8011] = "CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION";
28250
+ ErrorCode2[ErrorCode2["DEFERRED_PIPE_USED_EAGERLY"] = 8012] = "DEFERRED_PIPE_USED_EAGERLY";
28251
+ ErrorCode2[ErrorCode2["DEFERRED_DIRECTIVE_USED_EAGERLY"] = 8013] = "DEFERRED_DIRECTIVE_USED_EAGERLY";
28252
+ ErrorCode2[ErrorCode2["DEFERRED_DEPENDENCY_IMPORTED_EAGERLY"] = 8014] = "DEFERRED_DEPENDENCY_IMPORTED_EAGERLY";
28215
28253
  ErrorCode2[ErrorCode2["INVALID_BANANA_IN_BOX"] = 8101] = "INVALID_BANANA_IN_BOX";
28216
28254
  ErrorCode2[ErrorCode2["NULLISH_COALESCING_NOT_NULLABLE"] = 8102] = "NULLISH_COALESCING_NOT_NULLABLE";
28217
28255
  ErrorCode2[ErrorCode2["MISSING_CONTROL_FLOW_DIRECTIVE"] = 8103] = "MISSING_CONTROL_FLOW_DIRECTIVE";
@@ -28230,7 +28268,7 @@ var ErrorCode;
28230
28268
  ErrorCode2[ErrorCode2["LOCAL_COMPILATION_IMPORTED_STYLES_STRING"] = 11002] = "LOCAL_COMPILATION_IMPORTED_STYLES_STRING";
28231
28269
  })(ErrorCode || (ErrorCode = {}));
28232
28270
 
28233
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
28271
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
28234
28272
  var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
28235
28273
  ErrorCode.DECORATOR_ARG_NOT_LITERAL,
28236
28274
  ErrorCode.IMPORT_CYCLE_DETECTED,
@@ -28242,15 +28280,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
28242
28280
  ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
28243
28281
  ]);
28244
28282
 
28245
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
28283
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
28246
28284
  var import_typescript4 = __toESM(require("typescript"), 1);
28247
28285
 
28248
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
28286
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
28249
28287
  function ngErrorCode(code) {
28250
28288
  return parseInt("-99" + code);
28251
28289
  }
28252
28290
 
28253
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
28291
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
28254
28292
  var FatalDiagnosticError = class {
28255
28293
  constructor(code, node, message, relatedInformation) {
28256
28294
  this.code = code;
@@ -28306,10 +28344,10 @@ function addDiagnosticChain(messageText, add) {
28306
28344
  return messageText;
28307
28345
  }
28308
28346
 
28309
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
28347
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
28310
28348
  var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
28311
28349
 
28312
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
28350
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
28313
28351
  var ExtendedTemplateDiagnosticName;
28314
28352
  (function(ExtendedTemplateDiagnosticName2) {
28315
28353
  ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
@@ -28324,13 +28362,13 @@ var ExtendedTemplateDiagnosticName;
28324
28362
  ExtendedTemplateDiagnosticName2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = "controlFlowPreventingContentProjection";
28325
28363
  })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
28326
28364
 
28327
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
28365
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
28328
28366
  var import_typescript20 = __toESM(require("typescript"), 1);
28329
28367
 
28330
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
28368
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
28331
28369
  var import_typescript7 = __toESM(require("typescript"), 1);
28332
28370
 
28333
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
28371
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
28334
28372
  var import_typescript5 = __toESM(require("typescript"), 1);
28335
28373
  var TS = /\.tsx?$/i;
28336
28374
  var D_TS = /\.d\.ts$/i;
@@ -28431,7 +28469,7 @@ function toUnredirectedSourceFile(sf) {
28431
28469
  return redirectInfo.unredirected;
28432
28470
  }
28433
28471
 
28434
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
28472
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
28435
28473
  function findExportedNameOfNode(target, file, reflector) {
28436
28474
  const exports = reflector.getExportsOfModule(file);
28437
28475
  if (exports === null) {
@@ -28451,7 +28489,7 @@ function findExportedNameOfNode(target, file, reflector) {
28451
28489
  return foundExportName;
28452
28490
  }
28453
28491
 
28454
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
28492
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
28455
28493
  var ImportFlags;
28456
28494
  (function(ImportFlags2) {
28457
28495
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -28680,7 +28718,7 @@ var UnifiedModulesStrategy = class {
28680
28718
  }
28681
28719
  };
28682
28720
 
28683
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
28721
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
28684
28722
  var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
28685
28723
  var UnifiedModulesAliasingHost = class {
28686
28724
  constructor(unifiedModulesHost) {
@@ -28747,7 +28785,7 @@ var AliasStrategy = class {
28747
28785
  }
28748
28786
  };
28749
28787
 
28750
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
28788
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
28751
28789
  function relativePathBetween(from, to) {
28752
28790
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
28753
28791
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
@@ -28756,7 +28794,7 @@ function normalizeSeparators2(path4) {
28756
28794
  return path4.replace(/\\/g, "/");
28757
28795
  }
28758
28796
 
28759
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
28797
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
28760
28798
  var NoopImportRewriter = class {
28761
28799
  shouldImportSymbol(symbol, specifier) {
28762
28800
  return true;
@@ -28815,7 +28853,7 @@ function validateAndRewriteCoreSymbol(name) {
28815
28853
  return CORE_SUPPORTED_SYMBOLS.get(name);
28816
28854
  }
28817
28855
 
28818
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
28856
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
28819
28857
  var import_typescript9 = __toESM(require("typescript"), 1);
28820
28858
  var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
28821
28859
  function loadIsReferencedAliasDeclarationPatch(context) {
@@ -28850,7 +28888,7 @@ function throwIncompatibleTransformationContextError() {
28850
28888
  throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
28851
28889
  }
28852
28890
 
28853
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
28891
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
28854
28892
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
28855
28893
  function attachDefaultImportDeclaration(expr, importDecl) {
28856
28894
  expr[DefaultImportDeclaration] = importDecl;
@@ -28891,13 +28929,13 @@ var DefaultImportTracker = class {
28891
28929
  }
28892
28930
  };
28893
28931
 
28894
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
28932
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
28895
28933
  var import_typescript15 = __toESM(require("typescript"), 1);
28896
28934
 
28897
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
28935
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
28898
28936
  var import_typescript14 = __toESM(require("typescript"), 1);
28899
28937
 
28900
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
28938
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
28901
28939
  var import_typescript11 = __toESM(require("typescript"), 1);
28902
28940
  function isDecoratorIdentifier(exp) {
28903
28941
  return import_typescript11.default.isIdentifier(exp) || import_typescript11.default.isPropertyAccessExpression(exp) && import_typescript11.default.isIdentifier(exp.expression) && import_typescript11.default.isIdentifier(exp.name);
@@ -28912,7 +28950,7 @@ var ClassMemberKind;
28912
28950
  })(ClassMemberKind || (ClassMemberKind = {}));
28913
28951
  var AmbientImport = {};
28914
28952
 
28915
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
28953
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
28916
28954
  var import_typescript12 = __toESM(require("typescript"), 1);
28917
28955
  function typeToValue(typeNode, checker, isLocalCompilation) {
28918
28956
  var _a2, _b2;
@@ -29085,7 +29123,7 @@ function extractModuleName(node) {
29085
29123
  return node.moduleSpecifier.text;
29086
29124
  }
29087
29125
 
29088
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
29126
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
29089
29127
  var import_typescript13 = __toESM(require("typescript"), 1);
29090
29128
  function isNamedClassDeclaration(node) {
29091
29129
  return import_typescript13.default.isClassDeclaration(node) && isIdentifier(node.name);
@@ -29094,7 +29132,7 @@ function isIdentifier(node) {
29094
29132
  return node !== void 0 && import_typescript13.default.isIdentifier(node);
29095
29133
  }
29096
29134
 
29097
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
29135
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
29098
29136
  var TypeScriptReflectionHost = class {
29099
29137
  constructor(checker, isLocalCompilation = false) {
29100
29138
  this.checker = checker;
@@ -29534,12 +29572,14 @@ function getExportedName(decl, originalId) {
29534
29572
  }
29535
29573
  var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
29536
29574
 
29537
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
29575
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
29538
29576
  var AssumeEager = "AssumeEager";
29539
29577
  var DeferredSymbolTracker = class {
29540
- constructor(typeChecker) {
29578
+ constructor(typeChecker, onlyExplicitDeferDependencyImports) {
29541
29579
  this.typeChecker = typeChecker;
29580
+ this.onlyExplicitDeferDependencyImports = onlyExplicitDeferDependencyImports;
29542
29581
  this.imports = /* @__PURE__ */ new Map();
29582
+ this.explicitlyDeferredImports = /* @__PURE__ */ new Map();
29543
29583
  }
29544
29584
  extractImportedSymbols(importDecl) {
29545
29585
  const symbolMap = /* @__PURE__ */ new Map();
@@ -29567,12 +29607,33 @@ var DeferredSymbolTracker = class {
29567
29607
  }
29568
29608
  return symbolMap;
29569
29609
  }
29570
- markAsDeferrableCandidate(identifier, importDecl) {
29571
- if (!this.imports.has(importDecl)) {
29572
- const symbolMap2 = this.extractImportedSymbols(importDecl);
29573
- this.imports.set(importDecl, symbolMap2);
29610
+ getNonRemovableDeferredImports(sourceFile, classDecl) {
29611
+ var _a2;
29612
+ const affectedImports = [];
29613
+ const importDecls = (_a2 = this.explicitlyDeferredImports.get(classDecl)) != null ? _a2 : [];
29614
+ for (const importDecl of importDecls) {
29615
+ if (importDecl.getSourceFile() === sourceFile && !this.canDefer(importDecl)) {
29616
+ affectedImports.push(importDecl);
29617
+ }
29618
+ }
29619
+ return affectedImports;
29620
+ }
29621
+ markAsDeferrableCandidate(identifier, importDecl, componentClassDecl, isExplicitlyDeferred) {
29622
+ if (this.onlyExplicitDeferDependencyImports && !isExplicitlyDeferred) {
29623
+ return;
29624
+ }
29625
+ if (isExplicitlyDeferred) {
29626
+ if (this.explicitlyDeferredImports.has(componentClassDecl)) {
29627
+ this.explicitlyDeferredImports.get(componentClassDecl).push(importDecl);
29628
+ } else {
29629
+ this.explicitlyDeferredImports.set(componentClassDecl, [importDecl]);
29630
+ }
29631
+ }
29632
+ let symbolMap = this.imports.get(importDecl);
29633
+ if (!symbolMap) {
29634
+ symbolMap = this.extractImportedSymbols(importDecl);
29635
+ this.imports.set(importDecl, symbolMap);
29574
29636
  }
29575
- const symbolMap = this.imports.get(importDecl);
29576
29637
  if (!symbolMap.has(identifier.text)) {
29577
29638
  throw new Error(`The '${identifier.text}' identifier doesn't belong to the provided import declaration.`);
29578
29639
  }
@@ -29631,7 +29692,7 @@ var DeferredSymbolTracker = class {
29631
29692
  }
29632
29693
  };
29633
29694
 
29634
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
29695
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
29635
29696
  var Reference2 = class {
29636
29697
  constructor(node, bestGuessOwningModule = null) {
29637
29698
  this.node = node;
@@ -29700,7 +29761,7 @@ var Reference2 = class {
29700
29761
  }
29701
29762
  };
29702
29763
 
29703
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
29764
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
29704
29765
  var ModuleResolver = class {
29705
29766
  constructor(program, compilerOptions, host, moduleResolutionCache) {
29706
29767
  this.program = program;
@@ -29717,7 +29778,7 @@ var ModuleResolver = class {
29717
29778
  }
29718
29779
  };
29719
29780
 
29720
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
29781
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
29721
29782
  function valueReferenceToExpression(valueRef) {
29722
29783
  if (valueRef.kind === 2) {
29723
29784
  return null;
@@ -29960,7 +30021,7 @@ function isAbstractClassDeclaration(clazz) {
29960
30021
  return import_typescript20.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript20.default.SyntaxKind.AbstractKeyword) : false;
29961
30022
  }
29962
30023
 
29963
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
30024
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
29964
30025
  function getConstructorDependencies(clazz, reflector, isCore) {
29965
30026
  const deps = [];
29966
30027
  const errors = [];
@@ -30102,10 +30163,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
30102
30163
  return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain2, hints);
30103
30164
  }
30104
30165
 
30105
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
30166
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
30106
30167
  var import_typescript29 = __toESM(require("typescript"), 1);
30107
30168
 
30108
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
30169
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
30109
30170
  var MetaKind;
30110
30171
  (function(MetaKind2) {
30111
30172
  MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
@@ -30118,10 +30179,10 @@ var MatchSource;
30118
30179
  MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
30119
30180
  })(MatchSource || (MatchSource = {}));
30120
30181
 
30121
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
30182
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
30122
30183
  var import_typescript24 = __toESM(require("typescript"), 1);
30123
30184
 
30124
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
30185
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
30125
30186
  var ClassPropertyMapping = class {
30126
30187
  constructor(forwardMap) {
30127
30188
  this.forwardMap = forwardMap;
@@ -30201,7 +30262,7 @@ function reverseMapFromForwardMap(forwardMap) {
30201
30262
  return reverseMap;
30202
30263
  }
30203
30264
 
30204
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
30265
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
30205
30266
  var import_typescript22 = __toESM(require("typescript"), 1);
30206
30267
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
30207
30268
  if (!import_typescript22.default.isTupleTypeNode(def)) {
@@ -30391,7 +30452,7 @@ function hasInjectableFields(clazz, host) {
30391
30452
  return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
30392
30453
  }
30393
30454
 
30394
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
30455
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
30395
30456
  var DtsMetadataReader = class {
30396
30457
  constructor(checker, reflector) {
30397
30458
  this.checker = checker;
@@ -30461,10 +30522,12 @@ var DtsMetadataReader = class {
30461
30522
  isStandalone,
30462
30523
  isSignal: isSignal2,
30463
30524
  imports: null,
30525
+ deferredImports: null,
30464
30526
  schemas: null,
30465
30527
  decorator: null,
30466
30528
  assumedToExportProviders: isComponent && isStandalone,
30467
- preserveWhitespaces: false
30529
+ preserveWhitespaces: false,
30530
+ isExplicitlyDeferred: false
30468
30531
  });
30469
30532
  }
30470
30533
  getPipeMetadata(ref) {
@@ -30487,7 +30550,8 @@ var DtsMetadataReader = class {
30487
30550
  name,
30488
30551
  nameExpr: null,
30489
30552
  isStandalone,
30490
- decorator: null
30553
+ decorator: null,
30554
+ isExplicitlyDeferred: false
30491
30555
  };
30492
30556
  }
30493
30557
  };
@@ -30571,7 +30635,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
30571
30635
  return result.length > 0 ? result : null;
30572
30636
  }
30573
30637
 
30574
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
30638
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
30575
30639
  function flattenInheritedDirectiveMetadata(reader, dir) {
30576
30640
  const topMeta = reader.getDirectiveMetadata(dir);
30577
30641
  if (topMeta === null) {
@@ -30634,7 +30698,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
30634
30698
  });
30635
30699
  }
30636
30700
 
30637
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
30701
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
30638
30702
  var LocalMetadataRegistry = class {
30639
30703
  constructor() {
30640
30704
  this.directives = /* @__PURE__ */ new Map();
@@ -30691,7 +30755,7 @@ var CompoundMetadataRegistry = class {
30691
30755
  }
30692
30756
  };
30693
30757
 
30694
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
30758
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
30695
30759
  var ResourceRegistry = class {
30696
30760
  constructor() {
30697
30761
  this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
@@ -30756,7 +30820,7 @@ var ResourceRegistry = class {
30756
30820
  }
30757
30821
  };
30758
30822
 
30759
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
30823
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
30760
30824
  var ExportedProviderStatusResolver = class {
30761
30825
  constructor(metaReader) {
30762
30826
  this.metaReader = metaReader;
@@ -30800,7 +30864,7 @@ var ExportedProviderStatusResolver = class {
30800
30864
  }
30801
30865
  };
30802
30866
 
30803
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
30867
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
30804
30868
  var EMPTY_ARRAY = [];
30805
30869
  var HostDirectivesResolver = class {
30806
30870
  constructor(metaReader) {
@@ -30862,10 +30926,10 @@ function resolveOutput(bindingName) {
30862
30926
  return bindingName;
30863
30927
  }
30864
30928
 
30865
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
30929
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
30866
30930
  var import_typescript26 = __toESM(require("typescript"), 1);
30867
30931
 
30868
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
30932
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
30869
30933
  var DynamicValue = class {
30870
30934
  constructor(node, reason, code) {
30871
30935
  this.node = node;
@@ -30955,7 +31019,7 @@ var DynamicValue = class {
30955
31019
  }
30956
31020
  };
30957
31021
 
30958
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
31022
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
30959
31023
  var ResolvedModule = class {
30960
31024
  constructor(exports, evaluate) {
30961
31025
  this.exports = exports;
@@ -30985,7 +31049,7 @@ var EnumValue = class {
30985
31049
  var KnownFn = class {
30986
31050
  };
30987
31051
 
30988
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
31052
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
30989
31053
  function describeResolvedType(value, maxDepth = 1) {
30990
31054
  var _a2, _b2;
30991
31055
  if (value === null) {
@@ -31114,10 +31178,10 @@ function getContainerNode(node) {
31114
31178
  return node.getSourceFile();
31115
31179
  }
31116
31180
 
31117
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
31181
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
31118
31182
  var import_typescript27 = __toESM(require("typescript"), 1);
31119
31183
 
31120
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
31184
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
31121
31185
  var ArraySliceBuiltinFn = class extends KnownFn {
31122
31186
  constructor(lhs) {
31123
31187
  super();
@@ -31169,14 +31233,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
31169
31233
  }
31170
31234
  };
31171
31235
 
31172
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
31236
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
31173
31237
  var SyntheticValue = class {
31174
31238
  constructor(value) {
31175
31239
  this.value = value;
31176
31240
  }
31177
31241
  };
31178
31242
 
31179
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
31243
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
31180
31244
  function literalBinaryOp(op) {
31181
31245
  return { op, literal: true };
31182
31246
  }
@@ -31751,7 +31815,7 @@ function owningModule(context, override = null) {
31751
31815
  }
31752
31816
  }
31753
31817
 
31754
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
31818
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
31755
31819
  var PartialEvaluator = class {
31756
31820
  constructor(host, checker, dependencyTracker) {
31757
31821
  this.host = host;
@@ -31771,7 +31835,7 @@ var PartialEvaluator = class {
31771
31835
  }
31772
31836
  };
31773
31837
 
31774
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
31838
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
31775
31839
  function makeDuplicateDeclarationError(node, data, kind) {
31776
31840
  const context = [];
31777
31841
  for (const decl of data) {
@@ -31967,7 +32031,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
31967
32031
  return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${kind.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @${baseNeedsDecorator} decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
31968
32032
  }
31969
32033
 
31970
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
32034
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
31971
32035
  var import_typescript31 = __toESM(require("typescript"), 1);
31972
32036
  function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
31973
32037
  let resolved = null;
@@ -32017,7 +32081,7 @@ function resolveLiteral(decorator, literalCache) {
32017
32081
  return meta;
32018
32082
  }
32019
32083
 
32020
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
32084
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
32021
32085
  function compileNgFactoryDefField(metadata) {
32022
32086
  const res = compileFactoryFunction(metadata);
32023
32087
  return {
@@ -32039,7 +32103,7 @@ function compileDeclareFactory(metadata) {
32039
32103
  };
32040
32104
  }
32041
32105
 
32042
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
32106
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
32043
32107
  var InjectableClassRegistry = class {
32044
32108
  constructor(host, isCore) {
32045
32109
  this.host = host;
@@ -32065,7 +32129,7 @@ var InjectableClassRegistry = class {
32065
32129
  }
32066
32130
  };
32067
32131
 
32068
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
32132
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
32069
32133
  var import_typescript32 = __toESM(require("typescript"), 1);
32070
32134
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
32071
32135
  if (!reflection.isClass(clazz)) {
@@ -32149,7 +32213,7 @@ function removeIdentifierReferences(node, names) {
32149
32213
  return result.transformed[0];
32150
32214
  }
32151
32215
 
32152
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
32216
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
32153
32217
  var path2 = __toESM(require("path"), 1);
32154
32218
  function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
32155
32219
  if (!reflection.isClass(clazz)) {
@@ -32175,13 +32239,13 @@ function computeRelativePathIfPossible(filePath, rootDirs) {
32175
32239
  return null;
32176
32240
  }
32177
32241
 
32178
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
32242
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
32179
32243
  var NoopReferencesRegistry = class {
32180
32244
  add(source, ...references) {
32181
32245
  }
32182
32246
  };
32183
32247
 
32184
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
32248
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
32185
32249
  function extractSchemas(rawExpr, evaluator, context) {
32186
32250
  const schemas = [];
32187
32251
  const result = evaluator.evaluate(rawExpr);
@@ -32210,7 +32274,7 @@ function extractSchemas(rawExpr, evaluator, context) {
32210
32274
  return schemas;
32211
32275
  }
32212
32276
 
32213
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
32277
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
32214
32278
  function compileInputTransformFields(inputs) {
32215
32279
  const extraFields = [];
32216
32280
  for (const input of inputs) {
@@ -32227,10 +32291,10 @@ function compileInputTransformFields(inputs) {
32227
32291
  return extraFields;
32228
32292
  }
32229
32293
 
32230
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
32294
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
32231
32295
  var import_typescript56 = __toESM(require("typescript"), 1);
32232
32296
 
32233
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
32297
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
32234
32298
  var import_typescript33 = __toESM(require("typescript"), 1);
32235
32299
  var SemanticSymbol = class {
32236
32300
  constructor(decl) {
@@ -32246,7 +32310,7 @@ function getSymbolIdentifier(decl) {
32246
32310
  return decl.name.text;
32247
32311
  }
32248
32312
 
32249
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
32313
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
32250
32314
  var OpaqueSymbol = class extends SemanticSymbol {
32251
32315
  isPublicApiAffected() {
32252
32316
  return false;
@@ -32388,10 +32452,10 @@ function getImportPath(expr) {
32388
32452
  }
32389
32453
  }
32390
32454
 
32391
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
32455
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
32392
32456
  var import_typescript34 = __toESM(require("typescript"), 1);
32393
32457
 
32394
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
32458
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
32395
32459
  function isSymbolEqual(a, b) {
32396
32460
  if (a.decl === b.decl) {
32397
32461
  return true;
@@ -32441,7 +32505,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
32441
32505
  return true;
32442
32506
  }
32443
32507
 
32444
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
32508
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
32445
32509
  function extractSemanticTypeParameters(node) {
32446
32510
  if (!import_typescript34.default.isClassDeclaration(node) || node.typeParameters === void 0) {
32447
32511
  return null;
@@ -32461,7 +32525,7 @@ function isTypeParameterEqual(a, b) {
32461
32525
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
32462
32526
  }
32463
32527
 
32464
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
32528
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
32465
32529
  var PerfPhase;
32466
32530
  (function(PerfPhase2) {
32467
32531
  PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
@@ -32529,7 +32593,7 @@ var PerfCheckpoint;
32529
32593
  PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
32530
32594
  })(PerfCheckpoint || (PerfCheckpoint = {}));
32531
32595
 
32532
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
32596
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
32533
32597
  var NoopPerfRecorder = class {
32534
32598
  eventCount() {
32535
32599
  }
@@ -32546,7 +32610,7 @@ var NoopPerfRecorder = class {
32546
32610
  };
32547
32611
  var NOOP_PERF_RECORDER = new NoopPerfRecorder();
32548
32612
 
32549
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
32613
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
32550
32614
  function mark() {
32551
32615
  return process.hrtime();
32552
32616
  }
@@ -32555,7 +32619,7 @@ function timeSinceInMicros(mark2) {
32555
32619
  return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
32556
32620
  }
32557
32621
 
32558
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
32622
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
32559
32623
  var ActivePerfRecorder = class {
32560
32624
  static zeroedToNow() {
32561
32625
  return new ActivePerfRecorder(mark());
@@ -32649,14 +32713,14 @@ var DelegatingPerfRecorder = class {
32649
32713
  }
32650
32714
  };
32651
32715
 
32652
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
32716
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
32653
32717
  var ComponentScopeKind;
32654
32718
  (function(ComponentScopeKind2) {
32655
32719
  ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
32656
32720
  ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
32657
32721
  })(ComponentScopeKind || (ComponentScopeKind = {}));
32658
32722
 
32659
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
32723
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
32660
32724
  var CompoundComponentScopeReader = class {
32661
32725
  constructor(readers) {
32662
32726
  this.readers = readers;
@@ -32681,7 +32745,7 @@ var CompoundComponentScopeReader = class {
32681
32745
  }
32682
32746
  };
32683
32747
 
32684
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
32748
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
32685
32749
  var MetadataDtsModuleScopeResolver = class {
32686
32750
  constructor(dtsMetaReader, aliasingHost) {
32687
32751
  this.dtsMetaReader = dtsMetaReader;
@@ -32756,10 +32820,10 @@ var MetadataDtsModuleScopeResolver = class {
32756
32820
  }
32757
32821
  };
32758
32822
 
32759
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
32823
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
32760
32824
  var import_typescript35 = __toESM(require("typescript"), 1);
32761
32825
 
32762
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
32826
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
32763
32827
  function getDiagnosticNode(ref, rawExpr) {
32764
32828
  return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
32765
32829
  }
@@ -32781,8 +32845,11 @@ function makeNotStandaloneDiagnostic(scopeReader, ref, rawExpr, kind) {
32781
32845
  function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
32782
32846
  return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
32783
32847
  }
32848
+ function makeUnknownComponentDeferredImportDiagnostic(ref, rawExpr) {
32849
+ return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_DEFERRED_IMPORT, getDiagnosticNode(ref, rawExpr), `Component deferred imports must be standalone components, directives or pipes.`);
32850
+ }
32784
32851
 
32785
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
32852
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
32786
32853
  var LocalModuleScopeRegistry = class {
32787
32854
  constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
32788
32855
  this.localReader = localReader;
@@ -33121,7 +33188,7 @@ function reexportCollision(module3, refA, refB) {
33121
33188
  ]);
33122
33189
  }
33123
33190
 
33124
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
33191
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
33125
33192
  var import_typescript37 = __toESM(require("typescript"), 1);
33126
33193
  var TypeCheckScopeRegistry = class {
33127
33194
  constructor(scopeReader, metaReader, hostDirectivesResolver) {
@@ -33145,24 +33212,30 @@ var TypeCheckScopeRegistry = class {
33145
33212
  isPoisoned: false
33146
33213
  };
33147
33214
  }
33148
- const cacheKey = scope.kind === ComponentScopeKind.NgModule ? scope.ngModule : scope.component;
33149
- const dependencies = scope.kind === ComponentScopeKind.NgModule ? scope.compilation.dependencies : scope.dependencies;
33215
+ const isNgModuleScope = scope.kind === ComponentScopeKind.NgModule;
33216
+ const cacheKey = isNgModuleScope ? scope.ngModule : scope.component;
33217
+ const dependencies = isNgModuleScope ? scope.compilation.dependencies : scope.dependencies;
33150
33218
  if (this.scopeCache.has(cacheKey)) {
33151
33219
  return this.scopeCache.get(cacheKey);
33152
33220
  }
33153
- for (const meta of dependencies) {
33221
+ let allDependencies = dependencies;
33222
+ if (!isNgModuleScope && Array.isArray(scope.deferredDependencies) && scope.deferredDependencies.length > 0) {
33223
+ allDependencies = [...allDependencies, ...scope.deferredDependencies];
33224
+ }
33225
+ for (const meta of allDependencies) {
33154
33226
  if (meta.kind === MetaKind.Directive && meta.selector !== null) {
33155
33227
  const extMeta = this.getTypeCheckDirectiveMetadata(meta.ref);
33156
33228
  if (extMeta === null) {
33157
33229
  continue;
33158
33230
  }
33159
- matcher.addSelectables(CssSelector.parse(meta.selector), [...this.hostDirectivesResolver.resolve(extMeta), extMeta]);
33160
- directives.push(extMeta);
33231
+ const directiveMeta = this.applyExplicitlyDeferredFlag(extMeta, meta.isExplicitlyDeferred);
33232
+ matcher.addSelectables(CssSelector.parse(meta.selector), [...this.hostDirectivesResolver.resolve(directiveMeta), directiveMeta]);
33233
+ directives.push(directiveMeta);
33161
33234
  } else if (meta.kind === MetaKind.Pipe) {
33162
33235
  if (!import_typescript37.default.isClassDeclaration(meta.ref.node)) {
33163
33236
  throw new Error(`Unexpected non-class declaration ${import_typescript37.default.SyntaxKind[meta.ref.node.kind]} for pipe ${meta.ref.debugName}`);
33164
33237
  }
33165
- pipes.set(meta.name, meta.ref);
33238
+ pipes.set(meta.name, meta);
33166
33239
  }
33167
33240
  }
33168
33241
  const typeCheckScope = {
@@ -33187,9 +33260,12 @@ var TypeCheckScopeRegistry = class {
33187
33260
  this.flattenedDirectiveMetaCache.set(clazz, meta);
33188
33261
  return meta;
33189
33262
  }
33263
+ applyExplicitlyDeferredFlag(meta, isExplicitlyDeferred) {
33264
+ return isExplicitlyDeferred === true ? __spreadProps(__spreadValues({}, meta), { isExplicitlyDeferred }) : meta;
33265
+ }
33190
33266
  };
33191
33267
 
33192
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
33268
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
33193
33269
  var CompilationMode;
33194
33270
  (function(CompilationMode2) {
33195
33271
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
@@ -33203,7 +33279,7 @@ var HandlerPrecedence;
33203
33279
  HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
33204
33280
  })(HandlerPrecedence || (HandlerPrecedence = {}));
33205
33281
 
33206
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
33282
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
33207
33283
  var import_typescript38 = __toESM(require("typescript"), 1);
33208
33284
  function aliasTransformFactory(exportStatements) {
33209
33285
  return () => {
@@ -33226,10 +33302,10 @@ function aliasTransformFactory(exportStatements) {
33226
33302
  };
33227
33303
  }
33228
33304
 
33229
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
33305
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
33230
33306
  var import_typescript39 = __toESM(require("typescript"), 1);
33231
33307
 
33232
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
33308
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
33233
33309
  var TraitState;
33234
33310
  (function(TraitState2) {
33235
33311
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -33286,7 +33362,7 @@ var TraitImpl = class {
33286
33362
  }
33287
33363
  };
33288
33364
 
33289
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
33365
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
33290
33366
  var TraitCompiler = class {
33291
33367
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
33292
33368
  this.handlers = handlers;
@@ -33514,16 +33590,13 @@ var TraitCompiler = class {
33514
33590
  }
33515
33591
  }
33516
33592
  const symbol = this.makeSymbolForTrait(trait.handler, clazz, (_a2 = result.analysis) != null ? _a2 : null);
33517
- if (this.compilationMode !== CompilationMode.LOCAL && result.analysis !== void 0 && trait.handler.register !== void 0) {
33593
+ if (result.analysis !== void 0 && trait.handler.register !== void 0) {
33518
33594
  trait.handler.register(clazz, result.analysis);
33519
33595
  }
33520
33596
  trait = trait.toAnalyzed((_b2 = result.analysis) != null ? _b2 : null, (_c2 = result.diagnostics) != null ? _c2 : null, symbol);
33521
33597
  }
33522
33598
  resolve() {
33523
33599
  var _a2, _b2;
33524
- if (this.compilationMode === CompilationMode.LOCAL) {
33525
- return;
33526
- }
33527
33600
  const classes = this.classes.keys();
33528
33601
  for (const clazz of classes) {
33529
33602
  const record = this.classes.get(clazz);
@@ -33570,7 +33643,7 @@ var TraitCompiler = class {
33570
33643
  }
33571
33644
  }
33572
33645
  typeCheck(sf, ctx) {
33573
- if (!this.fileToClasses.has(sf)) {
33646
+ if (!this.fileToClasses.has(sf) || this.compilationMode === CompilationMode.LOCAL) {
33574
33647
  return;
33575
33648
  }
33576
33649
  for (const clazz of this.fileToClasses.get(sf)) {
@@ -33661,15 +33734,12 @@ var TraitCompiler = class {
33661
33734
  let res = [];
33662
33735
  for (const trait of record.traits) {
33663
33736
  let compileRes;
33737
+ if (trait.state !== TraitState.Resolved || containsErrors(trait.analysisDiagnostics) || containsErrors(trait.resolveDiagnostics)) {
33738
+ continue;
33739
+ }
33664
33740
  if (this.compilationMode === CompilationMode.LOCAL) {
33665
- if (trait.state !== TraitState.Analyzed || trait.analysis === null || containsErrors(trait.analysisDiagnostics)) {
33666
- continue;
33667
- }
33668
- compileRes = trait.handler.compileLocal(clazz, trait.analysis, constantPool);
33741
+ compileRes = trait.handler.compileLocal(clazz, trait.analysis, trait.resolution, constantPool);
33669
33742
  } else {
33670
- if (trait.state !== TraitState.Resolved || containsErrors(trait.analysisDiagnostics) || containsErrors(trait.resolveDiagnostics)) {
33671
- continue;
33672
- }
33673
33743
  if (this.compilationMode === CompilationMode.PARTIAL && trait.handler.compilePartial !== void 0) {
33674
33744
  compileRes = trait.handler.compilePartial(clazz, trait.analysis, trait.resolution);
33675
33745
  } else {
@@ -33734,10 +33804,10 @@ function containsErrors(diagnostics) {
33734
33804
  return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript39.default.DiagnosticCategory.Error);
33735
33805
  }
33736
33806
 
33737
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
33807
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
33738
33808
  var import_typescript47 = __toESM(require("typescript"), 1);
33739
33809
 
33740
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
33810
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
33741
33811
  var Context = class {
33742
33812
  constructor(isStatement) {
33743
33813
  this.isStatement = isStatement;
@@ -33750,7 +33820,7 @@ var Context = class {
33750
33820
  }
33751
33821
  };
33752
33822
 
33753
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
33823
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
33754
33824
  var import_typescript41 = __toESM(require("typescript"), 1);
33755
33825
  var ImportManager = class {
33756
33826
  constructor(rewriter = new NoopImportRewriter(), prefix = "i", factory9 = import_typescript41.default.factory) {
@@ -33787,7 +33857,7 @@ var ImportManager = class {
33787
33857
  }
33788
33858
  };
33789
33859
 
33790
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
33860
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
33791
33861
  var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
33792
33862
  [UnaryOperator.Minus, "-"],
33793
33863
  [UnaryOperator.Plus, "+"]
@@ -34025,7 +34095,7 @@ function createRange(span) {
34025
34095
  };
34026
34096
  }
34027
34097
 
34028
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
34098
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
34029
34099
  var import_typescript42 = __toESM(require("typescript"), 1);
34030
34100
  var INELIGIBLE = {};
34031
34101
  function canEmitType(type, canEmit) {
@@ -34100,10 +34170,10 @@ var TypeEmitter = class {
34100
34170
  }
34101
34171
  };
34102
34172
 
34103
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
34173
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
34104
34174
  var import_typescript44 = __toESM(require("typescript"), 1);
34105
34175
 
34106
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
34176
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
34107
34177
  var import_typescript43 = __toESM(require("typescript"), 1);
34108
34178
  function tsNumericExpression(value) {
34109
34179
  if (value < 0) {
@@ -34113,7 +34183,7 @@ function tsNumericExpression(value) {
34113
34183
  return import_typescript43.default.factory.createNumericLiteral(value);
34114
34184
  }
34115
34185
 
34116
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
34186
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
34117
34187
  function translateType(type, contextFile, reflector, refEmitter, imports) {
34118
34188
  return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
34119
34189
  }
@@ -34327,7 +34397,7 @@ var TypeTranslatorVisitor = class {
34327
34397
  }
34328
34398
  };
34329
34399
 
34330
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
34400
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
34331
34401
  var import_typescript45 = __toESM(require("typescript"), 1);
34332
34402
  var PureAnnotation;
34333
34403
  (function(PureAnnotation2) {
@@ -34524,7 +34594,7 @@ function attachComments(statement, leadingComments) {
34524
34594
  }
34525
34595
  }
34526
34596
 
34527
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
34597
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
34528
34598
  function translateExpression(expression, imports, options = {}) {
34529
34599
  return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
34530
34600
  }
@@ -34532,7 +34602,7 @@ function translateStatement(statement, imports, options = {}) {
34532
34602
  return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
34533
34603
  }
34534
34604
 
34535
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
34605
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
34536
34606
  var import_typescript46 = __toESM(require("typescript"), 1);
34537
34607
  function addImports(factory9 = import_typescript46.default.factory, importManager, sf, extraStatements = []) {
34538
34608
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
@@ -34568,7 +34638,7 @@ function isImportStatement(stmt) {
34568
34638
  return import_typescript46.default.isImportDeclaration(stmt) || import_typescript46.default.isImportEqualsDeclaration(stmt) || import_typescript46.default.isNamespaceImport(stmt);
34569
34639
  }
34570
34640
 
34571
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
34641
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
34572
34642
  var DtsTransformRegistry = class {
34573
34643
  constructor() {
34574
34644
  this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
@@ -34715,10 +34785,10 @@ function markForEmitAsSingleLine(node) {
34715
34785
  import_typescript47.default.forEachChild(node, markForEmitAsSingleLine);
34716
34786
  }
34717
34787
 
34718
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
34788
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
34719
34789
  var import_typescript49 = __toESM(require("typescript"), 1);
34720
34790
 
34721
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
34791
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
34722
34792
  var import_typescript48 = __toESM(require("typescript"), 1);
34723
34793
  function visit(node, visitor, context) {
34724
34794
  return visitor._visit(node, context);
@@ -34779,7 +34849,7 @@ var Visitor = class {
34779
34849
  }
34780
34850
  };
34781
34851
 
34782
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
34852
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
34783
34853
  var NO_DECORATORS = /* @__PURE__ */ new Set();
34784
34854
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
34785
34855
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -35003,10 +35073,10 @@ function nodeArrayFromDecoratorsArray(decorators) {
35003
35073
  return array;
35004
35074
  }
35005
35075
 
35006
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
35076
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
35007
35077
  var import_typescript51 = __toESM(require("typescript"), 1);
35008
35078
 
35009
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
35079
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
35010
35080
  var import_typescript50 = __toESM(require("typescript"), 1);
35011
35081
  function tryParseInputInitializerAndOptions(member, reflector, coreModule) {
35012
35082
  if (member.value === null || !import_typescript50.default.isCallExpression(member.value)) {
@@ -35090,7 +35160,7 @@ function tryParseSignalInputMapping(member, reflector, coreModule) {
35090
35160
  };
35091
35161
  }
35092
35162
 
35093
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
35163
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
35094
35164
  var EMPTY_OBJECT = {};
35095
35165
  var QUERY_TYPES = /* @__PURE__ */ new Set([
35096
35166
  "ContentChild",
@@ -35745,7 +35815,7 @@ function toR3InputMetadata(mapping) {
35745
35815
  };
35746
35816
  }
35747
35817
 
35748
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
35818
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
35749
35819
  var DirectiveSymbol = class extends SemanticSymbol {
35750
35820
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
35751
35821
  super(decl);
@@ -35825,7 +35895,7 @@ function isBaseClassEqual(current, previous) {
35825
35895
  return isSymbolEqual(current, previous);
35826
35896
  }
35827
35897
 
35828
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
35898
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
35829
35899
  var FIELD_DECORATORS = [
35830
35900
  "Input",
35831
35901
  "Output",
@@ -35915,6 +35985,9 @@ var DirectiveDecoratorHandler = class {
35915
35985
  return new DirectiveSymbol(node, analysis.meta.selector, analysis.inputs, analysis.outputs, analysis.meta.exportAs, analysis.typeCheckMeta, typeParameters);
35916
35986
  }
35917
35987
  register(node, analysis) {
35988
+ if (this.compilationMode === CompilationMode.LOCAL) {
35989
+ return;
35990
+ }
35918
35991
  const ref = new Reference2(node);
35919
35992
  this.metaRegistry.registerDirectiveMetadata(__spreadProps(__spreadValues({
35920
35993
  kind: MetaKind.Directive,
@@ -35936,17 +36009,22 @@ var DirectiveDecoratorHandler = class {
35936
36009
  isStandalone: analysis.meta.isStandalone,
35937
36010
  isSignal: analysis.meta.isSignal,
35938
36011
  imports: null,
36012
+ deferredImports: null,
35939
36013
  schemas: null,
35940
36014
  ngContentSelectors: null,
35941
36015
  decorator: analysis.decorator,
35942
36016
  preserveWhitespaces: false,
35943
- assumedToExportProviders: false
36017
+ assumedToExportProviders: false,
36018
+ isExplicitlyDeferred: false
35944
36019
  }));
35945
36020
  this.injectableRegistry.registerInjectable(node, {
35946
36021
  ctorDeps: analysis.meta.deps
35947
36022
  });
35948
36023
  }
35949
36024
  resolve(node, analysis, symbol) {
36025
+ if (this.compilationMode === CompilationMode.LOCAL) {
36026
+ return {};
36027
+ }
35950
36028
  if (this.semanticDepGraphUpdater !== null && analysis.baseClass instanceof Reference2) {
35951
36029
  symbol.baseClass = this.semanticDepGraphUpdater.getSymbol(analysis.baseClass.node);
35952
36030
  }
@@ -35979,7 +36057,7 @@ var DirectiveDecoratorHandler = class {
35979
36057
  const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata(analysis.classMetadata).toStmt() : null;
35980
36058
  return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields, null);
35981
36059
  }
35982
- compileLocal(node, analysis, pool) {
36060
+ compileLocal(node, analysis, resolution, pool) {
35983
36061
  const fac = compileNgFactoryDefField(toFactoryMetadata(analysis.meta, FactoryTarget.Directive));
35984
36062
  const def = compileDirectiveFromMetadata(analysis.meta, pool, makeBindingParser());
35985
36063
  const inputTransformFields = compileInputTransformFields(analysis.inputs);
@@ -35999,10 +36077,10 @@ var DirectiveDecoratorHandler = class {
35999
36077
  }
36000
36078
  };
36001
36079
 
36002
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
36080
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
36003
36081
  var import_typescript53 = __toESM(require("typescript"), 1);
36004
36082
 
36005
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
36083
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
36006
36084
  var import_typescript52 = __toESM(require("typescript"), 1);
36007
36085
  function createModuleWithProvidersResolver(reflector, isCore) {
36008
36086
  function _reflectModuleFromTypeParam(type, node) {
@@ -36069,7 +36147,7 @@ function isResolvedModuleWithProviders(sv) {
36069
36147
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
36070
36148
  }
36071
36149
 
36072
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
36150
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
36073
36151
  var NgModuleSymbol = class extends SemanticSymbol {
36074
36152
  constructor(decl, hasProviders) {
36075
36153
  super(decl);
@@ -36378,6 +36456,9 @@ var NgModuleDecoratorHandler = class {
36378
36456
  return new NgModuleSymbol(node, analysis.providers !== null);
36379
36457
  }
36380
36458
  register(node, analysis) {
36459
+ if (this.compilationMode === CompilationMode.LOCAL) {
36460
+ return;
36461
+ }
36381
36462
  this.metaRegistry.registerNgModuleMetadata({
36382
36463
  kind: MetaKind.NgModule,
36383
36464
  ref: new Reference2(node),
@@ -36396,6 +36477,9 @@ var NgModuleDecoratorHandler = class {
36396
36477
  });
36397
36478
  }
36398
36479
  resolve(node, analysis) {
36480
+ if (this.compilationMode === CompilationMode.LOCAL) {
36481
+ return {};
36482
+ }
36399
36483
  const scope = this.scopeRegistry.getScopeOfModule(node);
36400
36484
  const diagnostics = [];
36401
36485
  const scopeDiagnostics = this.scopeRegistry.getDiagnosticsOfModule(node);
@@ -36634,7 +36718,7 @@ function isSyntheticReference(ref) {
36634
36718
  return ref.synthetic;
36635
36719
  }
36636
36720
 
36637
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
36721
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
36638
36722
  function makeCyclicImportInfo(ref, type, cycle) {
36639
36723
  const name = ref.debugName || "(unknown)";
36640
36724
  const path4 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
@@ -36657,7 +36741,7 @@ function checkCustomElementSelectorForErrors(selector) {
36657
36741
  return null;
36658
36742
  }
36659
36743
 
36660
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
36744
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
36661
36745
  var import_typescript55 = __toESM(require("typescript"), 1);
36662
36746
  function getTemplateDeclarationNodeForError(declaration) {
36663
36747
  return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
@@ -37012,7 +37096,7 @@ function _extractTemplateStyleUrls(template2) {
37012
37096
  return template2.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
37013
37097
  }
37014
37098
 
37015
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
37099
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
37016
37100
  var ComponentSymbol = class extends DirectiveSymbol {
37017
37101
  constructor() {
37018
37102
  super(...arguments);
@@ -37047,7 +37131,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
37047
37131
  }
37048
37132
  };
37049
37133
 
37050
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
37134
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
37051
37135
  function collectAnimationNames(value, animationTriggerNames) {
37052
37136
  if (value instanceof Map) {
37053
37137
  const name = value.get("name");
@@ -37080,10 +37164,11 @@ var animationTriggerResolver = (fn2, node, resolve6, unresolvable) => {
37080
37164
  res.set("name", resolve6(triggerNameExpression));
37081
37165
  return res;
37082
37166
  };
37083
- function validateAndFlattenComponentImports(imports, expr) {
37167
+ function validateAndFlattenComponentImports(imports, expr, isDeferred) {
37084
37168
  const flattened = [];
37169
+ const errorMessage = isDeferred ? `'deferredImports' must be an array of components, directives, or pipes.` : `'imports' must be an array of components, directives, pipes, or NgModules.`;
37085
37170
  if (!Array.isArray(imports)) {
37086
- const error2 = createValueHasWrongTypeError(expr, imports, `'imports' must be an array of components, directives, pipes, or NgModules.`).toDiagnostic();
37171
+ const error2 = createValueHasWrongTypeError(expr, imports, errorMessage).toDiagnostic();
37087
37172
  return {
37088
37173
  imports: [],
37089
37174
  diagnostics: [error2]
@@ -37092,23 +37177,23 @@ function validateAndFlattenComponentImports(imports, expr) {
37092
37177
  const diagnostics = [];
37093
37178
  for (const ref of imports) {
37094
37179
  if (Array.isArray(ref)) {
37095
- const { imports: childImports, diagnostics: childDiagnostics } = validateAndFlattenComponentImports(ref, expr);
37180
+ const { imports: childImports, diagnostics: childDiagnostics } = validateAndFlattenComponentImports(ref, expr, isDeferred);
37096
37181
  flattened.push(...childImports);
37097
37182
  diagnostics.push(...childDiagnostics);
37098
37183
  } else if (ref instanceof Reference2) {
37099
37184
  if (isNamedClassDeclaration(ref.node)) {
37100
37185
  flattened.push(ref);
37101
37186
  } else {
37102
- diagnostics.push(createValueHasWrongTypeError(ref.getOriginForDiagnostics(expr), ref, `'imports' must be an array of components, directives, pipes, or NgModules.`).toDiagnostic());
37187
+ diagnostics.push(createValueHasWrongTypeError(ref.getOriginForDiagnostics(expr), ref, errorMessage).toDiagnostic());
37103
37188
  }
37104
37189
  } else if (isLikelyModuleWithProviders(ref)) {
37105
37190
  let origin = expr;
37106
37191
  if (ref instanceof SyntheticValue) {
37107
37192
  origin = getOriginNodeForDiagnostics(ref.value.mwpCall, expr);
37108
37193
  }
37109
- diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, origin, `'imports' contains a ModuleWithProviders value, likely the result of a 'Module.forRoot()'-style call. These calls are not used to configure components and are not valid in standalone component imports - consider importing them in the application bootstrap instead.`));
37194
+ diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, origin, `Component imports contains a ModuleWithProviders value, likely the result of a 'Module.forRoot()'-style call. These calls are not used to configure components and are not valid in standalone component imports - consider importing them in the application bootstrap instead.`));
37110
37195
  } else {
37111
- diagnostics.push(createValueHasWrongTypeError(expr, imports, `'imports' must be an array of components, directives, pipes, or NgModules.`).toDiagnostic());
37196
+ diagnostics.push(createValueHasWrongTypeError(expr, imports, errorMessage).toDiagnostic());
37112
37197
  }
37113
37198
  }
37114
37199
  return { imports: flattened, diagnostics };
@@ -37123,7 +37208,7 @@ function isLikelyModuleWithProviders(value) {
37123
37208
  return false;
37124
37209
  }
37125
37210
 
37126
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
37211
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
37127
37212
  var EMPTY_ARRAY2 = [];
37128
37213
  var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
37129
37214
  var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
@@ -37233,7 +37318,7 @@ var ComponentDecoratorHandler = class {
37233
37318
  ]).then(() => void 0);
37234
37319
  }
37235
37320
  analyze(node, decorator) {
37236
- var _a2, _b2, _c2, _d2;
37321
+ var _a2, _b2, _c2, _d2, _e2;
37237
37322
  this.perf.eventCount(PerfEvent.AnalyzeComponent);
37238
37323
  const containingFile = node.getSourceFile().fileName;
37239
37324
  this.literalCache.delete(decorator);
@@ -37280,23 +37365,38 @@ var ComponentDecoratorHandler = class {
37280
37365
  providersRequiringFactory = resolveProvidersRequiringFactory(component.get("providers"), this.reflector, this.evaluator);
37281
37366
  }
37282
37367
  let resolvedImports = null;
37368
+ let resolvedDeferredImports = null;
37283
37369
  let rawImports = (_b2 = component.get("imports")) != null ? _b2 : null;
37284
- if (rawImports && !metadata.isStandalone) {
37370
+ let rawDeferredImports = (_c2 = component.get("deferredImports")) != null ? _c2 : null;
37371
+ if ((rawImports || rawDeferredImports) && !metadata.isStandalone) {
37285
37372
  if (diagnostics === void 0) {
37286
37373
  diagnostics = [];
37287
37374
  }
37288
- diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_NOT_STANDALONE, component.get("imports"), `'imports' is only valid on a component that is standalone.`, [makeRelatedInformation(node.name, `Did you forget to add 'standalone: true' to this @Component?`)]));
37375
+ const importsField = rawImports ? "imports" : "deferredImports";
37376
+ diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_NOT_STANDALONE, component.get(importsField), `'${importsField}' is only valid on a component that is standalone.`, [makeRelatedInformation(node.name, `Did you forget to add 'standalone: true' to this @Component?`)]));
37289
37377
  isPoisoned = true;
37290
- } else if (this.compilationMode !== CompilationMode.LOCAL && rawImports) {
37291
- const expr = rawImports;
37378
+ } else if (this.compilationMode !== CompilationMode.LOCAL && (rawImports || rawDeferredImports)) {
37292
37379
  const importResolvers = combineResolvers([
37293
37380
  createModuleWithProvidersResolver(this.reflector, this.isCore),
37294
37381
  forwardRefResolver
37295
37382
  ]);
37296
- const imported = this.evaluator.evaluate(expr, importResolvers);
37297
- const { imports: flattened, diagnostics: importDiagnostics } = validateAndFlattenComponentImports(imported, expr);
37298
- resolvedImports = flattened;
37299
- rawImports = expr;
37383
+ const importDiagnostics = [];
37384
+ if (rawImports) {
37385
+ const expr = rawImports;
37386
+ const imported = this.evaluator.evaluate(expr, importResolvers);
37387
+ const { imports: flattened, diagnostics: diagnostics2 } = validateAndFlattenComponentImports(imported, expr, false);
37388
+ importDiagnostics.push(...diagnostics2);
37389
+ resolvedImports = flattened;
37390
+ rawImports = expr;
37391
+ }
37392
+ if (rawDeferredImports) {
37393
+ const expr = rawDeferredImports;
37394
+ const imported = this.evaluator.evaluate(expr, importResolvers);
37395
+ const { imports: flattened, diagnostics: diagnostics2 } = validateAndFlattenComponentImports(imported, expr, true);
37396
+ importDiagnostics.push(...diagnostics2);
37397
+ resolvedDeferredImports = flattened;
37398
+ rawDeferredImports = expr;
37399
+ }
37300
37400
  if (importDiagnostics.length > 0) {
37301
37401
  isPoisoned = true;
37302
37402
  if (diagnostics === void 0) {
@@ -37390,6 +37490,15 @@ var ComponentDecoratorHandler = class {
37390
37490
  if (template2.styles.length > 0) {
37391
37491
  styles.push(...template2.styles);
37392
37492
  }
37493
+ let explicitlyDeferredTypes = null;
37494
+ if (metadata.isStandalone && rawDeferredImports !== null) {
37495
+ const deferredTypes = this.collectExplicitlyDeferredSymbols(rawDeferredImports);
37496
+ for (const [deferredType, importDetails] of deferredTypes) {
37497
+ explicitlyDeferredTypes != null ? explicitlyDeferredTypes : explicitlyDeferredTypes = /* @__PURE__ */ new Map();
37498
+ explicitlyDeferredTypes.set(importDetails.name, importDetails.from);
37499
+ this.deferredSymbolTracker.markAsDeferrableCandidate(deferredType, importDetails.node, node, true);
37500
+ }
37501
+ }
37393
37502
  const output = {
37394
37503
  analysis: {
37395
37504
  baseClass: readBaseClass(node, this.reflector, this.evaluator),
@@ -37401,7 +37510,7 @@ var ComponentDecoratorHandler = class {
37401
37510
  template: template2,
37402
37511
  encapsulation,
37403
37512
  changeDetection,
37404
- interpolation: (_c2 = template2.interpolationConfig) != null ? _c2 : DEFAULT_INTERPOLATION_CONFIG,
37513
+ interpolation: (_d2 = template2.interpolationConfig) != null ? _d2 : DEFAULT_INTERPOLATION_CONFIG,
37405
37514
  styles,
37406
37515
  animations,
37407
37516
  viewProviders: wrappedViewProviders,
@@ -37430,8 +37539,11 @@ var ComponentDecoratorHandler = class {
37430
37539
  animationTriggerNames,
37431
37540
  rawImports,
37432
37541
  resolvedImports,
37542
+ rawDeferredImports,
37543
+ resolvedDeferredImports,
37544
+ explicitlyDeferredTypes,
37433
37545
  schemas,
37434
- decorator: (_d2 = decorator == null ? void 0 : decorator.node) != null ? _d2 : null
37546
+ decorator: (_e2 = decorator == null ? void 0 : decorator.node) != null ? _e2 : null
37435
37547
  },
37436
37548
  diagnostics
37437
37549
  };
@@ -37443,6 +37555,9 @@ var ComponentDecoratorHandler = class {
37443
37555
  }
37444
37556
  register(node, analysis) {
37445
37557
  var _a2;
37558
+ if (this.compilationMode === CompilationMode.LOCAL) {
37559
+ return;
37560
+ }
37446
37561
  const ref = new Reference2(node);
37447
37562
  this.metaRegistry.registerDirectiveMetadata(__spreadProps(__spreadValues({
37448
37563
  kind: MetaKind.Directive,
@@ -37463,12 +37578,14 @@ var ComponentDecoratorHandler = class {
37463
37578
  isStandalone: analysis.meta.isStandalone,
37464
37579
  isSignal: analysis.meta.isSignal,
37465
37580
  imports: analysis.resolvedImports,
37581
+ deferredImports: analysis.resolvedDeferredImports,
37466
37582
  animationTriggerNames: analysis.animationTriggerNames,
37467
37583
  schemas: analysis.schemas,
37468
37584
  decorator: analysis.decorator,
37469
37585
  assumedToExportProviders: false,
37470
37586
  ngContentSelectors: analysis.template.ngContentSelectors,
37471
- preserveWhitespaces: (_a2 = analysis.template.preserveWhitespaces) != null ? _a2 : false
37587
+ preserveWhitespaces: (_a2 = analysis.template.preserveWhitespaces) != null ? _a2 : false,
37588
+ isExplicitlyDeferred: false
37472
37589
  }));
37473
37590
  this.resourceRegistry.registerResources(analysis.resources, node);
37474
37591
  this.injectableRegistry.registerInjectable(node, {
@@ -37525,38 +37642,66 @@ var ComponentDecoratorHandler = class {
37525
37642
  return extendedTemplateChecker.getDiagnosticsForComponent(component);
37526
37643
  }
37527
37644
  resolve(node, analysis, symbol) {
37645
+ const metadata = analysis.meta;
37646
+ const diagnostics = [];
37647
+ const context = getSourceFile(node);
37648
+ const nonRemovableImports = this.deferredSymbolTracker.getNonRemovableDeferredImports(context, node);
37649
+ if (nonRemovableImports.length > 0) {
37650
+ for (const importDecl of nonRemovableImports) {
37651
+ const diagnostic = makeDiagnostic(ErrorCode.DEFERRED_DEPENDENCY_IMPORTED_EAGERLY, importDecl, `This import contains symbols used in the \`@Component.deferredImports\` array of the \`${node.name.getText()}\` component, but also some other symbols that are not in any \`@Component.deferredImports\` array. This renders all these defer imports useless as this import remains and its module is eagerly loaded. To fix this, make sure that this import contains *only* symbols that are used within \`@Component.deferredImports\` arrays.`);
37652
+ diagnostics.push(diagnostic);
37653
+ }
37654
+ return { diagnostics };
37655
+ }
37656
+ if (this.compilationMode === CompilationMode.LOCAL) {
37657
+ return {
37658
+ data: {
37659
+ declarationListEmitMode: !analysis.meta.isStandalone || analysis.rawImports !== null ? 3 : 0,
37660
+ declarations: EMPTY_ARRAY2,
37661
+ deferBlocks: this.locateDeferBlocksWithoutScope(analysis.template),
37662
+ deferBlockDepsEmitMode: 1,
37663
+ deferrableDeclToImportDecl: /* @__PURE__ */ new Map(),
37664
+ deferrableTypes: /* @__PURE__ */ new Map()
37665
+ }
37666
+ };
37667
+ }
37528
37668
  if (this.semanticDepGraphUpdater !== null && analysis.baseClass instanceof Reference2) {
37529
37669
  symbol.baseClass = this.semanticDepGraphUpdater.getSymbol(analysis.baseClass.node);
37530
37670
  }
37531
37671
  if (analysis.isPoisoned && !this.usePoisonedData) {
37532
37672
  return {};
37533
37673
  }
37534
- const context = getSourceFile(node);
37535
- const metadata = analysis.meta;
37536
37674
  const data = {
37537
37675
  declarations: EMPTY_ARRAY2,
37538
37676
  declarationListEmitMode: 0,
37539
37677
  deferBlocks: /* @__PURE__ */ new Map(),
37540
- deferrableDeclToImportDecl: /* @__PURE__ */ new Map()
37678
+ deferBlockDepsEmitMode: 0,
37679
+ deferrableDeclToImportDecl: /* @__PURE__ */ new Map(),
37680
+ deferrableTypes: /* @__PURE__ */ new Map()
37541
37681
  };
37542
- const diagnostics = [];
37543
37682
  const scope = this.scopeReader.getScopeForComponent(node);
37544
37683
  if (scope !== null) {
37545
- const matcher = new SelectorMatcher();
37546
- const pipes = /* @__PURE__ */ new Map();
37547
- const dependencies = scope.kind === ComponentScopeKind.NgModule ? scope.compilation.dependencies : scope.dependencies;
37548
- for (const dep of dependencies) {
37549
- if (dep.kind === MetaKind.Directive && dep.selector !== null) {
37550
- matcher.addSelectables(CssSelector.parse(dep.selector), [dep]);
37551
- } else if (dep.kind === MetaKind.Pipe) {
37552
- pipes.set(dep.name, dep);
37553
- }
37684
+ const isModuleScope = scope.kind === ComponentScopeKind.NgModule;
37685
+ const dependencies = isModuleScope ? scope.compilation.dependencies : scope.dependencies;
37686
+ const explicitlyDeferredDependencies = getExplicitlyDeferredDeps(scope);
37687
+ if (metadata.isStandalone && analysis.rawDeferredImports !== null && explicitlyDeferredDependencies.length > 0) {
37688
+ const diagnostic = validateNoImportOverlap(dependencies, explicitlyDeferredDependencies, analysis.rawDeferredImports);
37689
+ if (diagnostic !== null) {
37690
+ diagnostics.push(diagnostic);
37691
+ }
37692
+ }
37693
+ const binder = createTargetBinder(dependencies);
37694
+ const pipes = extractPipes(dependencies);
37695
+ let allDependencies = dependencies;
37696
+ let deferBlockBinder = binder;
37697
+ if (explicitlyDeferredDependencies.length > 0) {
37698
+ allDependencies = [...explicitlyDeferredDependencies, ...dependencies];
37699
+ deferBlockBinder = createTargetBinder(allDependencies);
37554
37700
  }
37555
- const binder = new R3TargetBinder(matcher);
37556
37701
  const bound = binder.bind({ template: metadata.template.nodes });
37557
37702
  const deferBlocks = /* @__PURE__ */ new Map();
37558
37703
  for (const deferBlock of bound.getDeferBlocks()) {
37559
- deferBlocks.set(deferBlock, binder.bind({ template: deferBlock.children }));
37704
+ deferBlocks.set(deferBlock, deferBlockBinder.bind({ template: deferBlock.children }));
37560
37705
  }
37561
37706
  const eagerlyUsed = /* @__PURE__ */ new Set();
37562
37707
  for (const dir of bound.getEagerlyUsedDirectives()) {
@@ -37581,7 +37726,7 @@ var ComponentDecoratorHandler = class {
37581
37726
  }
37582
37727
  }
37583
37728
  const declarations = /* @__PURE__ */ new Map();
37584
- for (const dep of dependencies) {
37729
+ for (const dep of allDependencies) {
37585
37730
  if (declarations.has(dep.ref.node)) {
37586
37731
  continue;
37587
37732
  }
@@ -37635,7 +37780,7 @@ var ComponentDecoratorHandler = class {
37635
37780
  symbol.usedPipes = Array.from(declarations.values()).filter(isUsedPipe).map(getSemanticReference);
37636
37781
  }
37637
37782
  const eagerDeclarations = Array.from(declarations.values()).filter((decl) => decl.kind === R3TemplateDependencyKind.NgModule || eagerlyUsed.has(decl.ref.node));
37638
- this.resolveDeferBlocks(deferBlocks, declarations, data, analysis, eagerlyUsed, bound);
37783
+ this.resolveDeferBlocks(node, deferBlocks, declarations, data, analysis, eagerlyUsed, bound);
37639
37784
  const cyclesFromDirectives = /* @__PURE__ */ new Map();
37640
37785
  const cyclesFromPipes = /* @__PURE__ */ new Map();
37641
37786
  if (!metadata.isStandalone) {
@@ -37686,19 +37831,15 @@ var ComponentDecoratorHandler = class {
37686
37831
  }
37687
37832
  }
37688
37833
  } else {
37689
- const directivelessBinder = new R3TargetBinder(new SelectorMatcher());
37690
- const bound = directivelessBinder.bind({ template: metadata.template.nodes });
37691
- const deferredBlocks = bound.getDeferBlocks();
37692
- const triggerElements = /* @__PURE__ */ new Map();
37693
- for (const block of deferredBlocks) {
37694
- this.resolveDeferTriggers(block, block.triggers, bound, triggerElements);
37695
- this.resolveDeferTriggers(block, block.prefetchTriggers, bound, triggerElements);
37696
- data.deferBlocks.set(block, { deps: [], triggerElements });
37697
- }
37834
+ data.deferBlocks = this.locateDeferBlocksWithoutScope(metadata.template);
37698
37835
  }
37699
37836
  if (analysis.resolvedImports !== null && analysis.rawImports !== null) {
37700
- const standaloneDiagnostics = validateStandaloneImports(analysis.resolvedImports, analysis.rawImports, this.metaReader, this.scopeReader);
37701
- diagnostics.push(...standaloneDiagnostics);
37837
+ const importDiagnostics = validateStandaloneImports(analysis.resolvedImports, analysis.rawImports, this.metaReader, this.scopeReader, false);
37838
+ diagnostics.push(...importDiagnostics);
37839
+ }
37840
+ if (analysis.resolvedDeferredImports !== null && analysis.rawDeferredImports !== null) {
37841
+ const importDiagnostics = validateStandaloneImports(analysis.resolvedDeferredImports, analysis.rawDeferredImports, this.metaReader, this.scopeReader, true);
37842
+ diagnostics.push(...importDiagnostics);
37702
37843
  }
37703
37844
  if (analysis.providersRequiringFactory !== null && analysis.meta.providers instanceof WrappedNodeExpr) {
37704
37845
  const providerDiagnostics = getProviderDiagnostics(analysis.providersRequiringFactory, analysis.meta.providers.node, this.injectableRegistry);
@@ -37712,9 +37853,9 @@ var ComponentDecoratorHandler = class {
37712
37853
  if (directiveDiagnostics !== null) {
37713
37854
  diagnostics.push(...directiveDiagnostics);
37714
37855
  }
37715
- const hostDirectivesDiagnotics = analysis.hostDirectives && analysis.rawHostDirectives ? validateHostDirectives(analysis.rawHostDirectives, analysis.hostDirectives, this.metaReader) : null;
37716
- if (hostDirectivesDiagnotics !== null) {
37717
- diagnostics.push(...hostDirectivesDiagnotics);
37856
+ const hostDirectivesDiagnostics = analysis.hostDirectives && analysis.rawHostDirectives ? validateHostDirectives(analysis.rawHostDirectives, analysis.hostDirectives, this.metaReader) : null;
37857
+ if (hostDirectivesDiagnostics !== null) {
37858
+ diagnostics.push(...hostDirectivesDiagnostics);
37718
37859
  }
37719
37860
  if (diagnostics.length > 0) {
37720
37861
  return { diagnostics };
@@ -37753,30 +37894,15 @@ var ComponentDecoratorHandler = class {
37753
37894
  analysis.meta.styles = styles.filter((s) => s.trim().length > 0);
37754
37895
  }
37755
37896
  compileFull(node, analysis, resolution, pool) {
37756
- var _a2;
37757
37897
  if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
37758
37898
  return [];
37759
37899
  }
37760
- const deferrableTypes = /* @__PURE__ */ new Map();
37761
- for (const [_, metadata] of resolution.deferBlocks) {
37762
- for (const deferBlockDep of metadata.deps) {
37763
- const dep = deferBlockDep;
37764
- const classDecl = dep.classDeclaration;
37765
- const importDecl = (_a2 = resolution.deferrableDeclToImportDecl.get(classDecl)) != null ? _a2 : null;
37766
- if (importDecl && this.deferredSymbolTracker.canDefer(importDecl)) {
37767
- deferBlockDep.isDeferrable = true;
37768
- deferBlockDep.importPath = importDecl.moduleSpecifier.text;
37769
- deferrableTypes.set(deferBlockDep.symbolName, deferBlockDep.importPath);
37770
- }
37771
- }
37772
- }
37773
- const meta = __spreadValues(__spreadValues({}, analysis.meta), resolution);
37900
+ const deferrableTypes = this.collectDeferredSymbols(resolution);
37901
+ const meta = __spreadProps(__spreadValues(__spreadValues({}, analysis.meta), resolution), {
37902
+ deferrableTypes
37903
+ });
37774
37904
  const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget.Component));
37775
- if (analysis.classMetadata) {
37776
- const deferrableSymbols = new Set(deferrableTypes.keys());
37777
- const rewrittenDecoratorsNode = removeIdentifierReferences(analysis.classMetadata.decorators.node, deferrableSymbols);
37778
- analysis.classMetadata.decorators = new WrappedNodeExpr(rewrittenDecoratorsNode);
37779
- }
37905
+ removeDeferrableTypesFromComponentDecorator(analysis, deferrableTypes);
37780
37906
  const def = compileComponentFromMetadata(meta, pool, makeBindingParser());
37781
37907
  const inputTransformFields = compileInputTransformFields(analysis.inputs);
37782
37908
  const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, deferrableTypes).toStmt() : null;
@@ -37801,22 +37927,71 @@ var ComponentDecoratorHandler = class {
37801
37927
  const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata(analysis.classMetadata).toStmt() : null;
37802
37928
  return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, null);
37803
37929
  }
37804
- compileLocal(node, analysis, pool) {
37930
+ compileLocal(node, analysis, resolution, pool) {
37805
37931
  if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
37806
37932
  return [];
37807
37933
  }
37808
- const meta = __spreadProps(__spreadValues({}, analysis.meta), {
37809
- declarationListEmitMode: !analysis.meta.isStandalone || analysis.rawImports !== null ? 3 : 0,
37810
- declarations: EMPTY_ARRAY2,
37811
- deferBlocks: /* @__PURE__ */ new Map(),
37812
- deferrableDeclToImportDecl: /* @__PURE__ */ new Map()
37934
+ const deferrableTypes = analysis.explicitlyDeferredTypes;
37935
+ const meta = __spreadProps(__spreadValues(__spreadValues({}, analysis.meta), resolution), {
37936
+ deferrableTypes: deferrableTypes != null ? deferrableTypes : /* @__PURE__ */ new Map()
37813
37937
  });
37938
+ if (analysis.explicitlyDeferredTypes !== null) {
37939
+ removeDeferrableTypesFromComponentDecorator(analysis, analysis.explicitlyDeferredTypes);
37940
+ }
37814
37941
  const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget.Component));
37815
37942
  const def = compileComponentFromMetadata(meta, pool, makeBindingParser());
37816
37943
  const inputTransformFields = compileInputTransformFields(analysis.inputs);
37817
- const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
37944
+ const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, deferrableTypes).toStmt() : null;
37818
37945
  const debugInfo = analysis.classDebugInfo !== null ? compileClassDebugInfo(analysis.classDebugInfo).toStmt() : null;
37819
- return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, null, debugInfo);
37946
+ const deferrableImports = this.deferredSymbolTracker.getDeferrableImportDecls();
37947
+ return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, debugInfo);
37948
+ }
37949
+ locateDeferBlocksWithoutScope(template2) {
37950
+ const deferBlocks = /* @__PURE__ */ new Map();
37951
+ const directivelessBinder = new R3TargetBinder(new SelectorMatcher());
37952
+ const bound = directivelessBinder.bind({ template: template2.nodes });
37953
+ const deferredBlocks = bound.getDeferBlocks();
37954
+ const triggerElements = /* @__PURE__ */ new Map();
37955
+ for (const block of deferredBlocks) {
37956
+ this.resolveDeferTriggers(block, block.triggers, bound, triggerElements);
37957
+ this.resolveDeferTriggers(block, block.prefetchTriggers, bound, triggerElements);
37958
+ deferBlocks.set(block, { deps: [], triggerElements });
37959
+ }
37960
+ return deferBlocks;
37961
+ }
37962
+ collectDeferredSymbols(resolution) {
37963
+ var _a2;
37964
+ const deferrableTypes = /* @__PURE__ */ new Map();
37965
+ for (const [_, metadata] of resolution.deferBlocks) {
37966
+ for (const deferBlockDep of metadata.deps) {
37967
+ const dep = deferBlockDep;
37968
+ const classDecl = dep.classDeclaration;
37969
+ const importDecl = (_a2 = resolution.deferrableDeclToImportDecl.get(classDecl)) != null ? _a2 : null;
37970
+ if (importDecl !== null && this.deferredSymbolTracker.canDefer(importDecl)) {
37971
+ deferBlockDep.isDeferrable = true;
37972
+ deferBlockDep.importPath = importDecl.moduleSpecifier.text;
37973
+ deferrableTypes.set(deferBlockDep.symbolName, deferBlockDep.importPath);
37974
+ }
37975
+ }
37976
+ }
37977
+ return deferrableTypes;
37978
+ }
37979
+ collectExplicitlyDeferredSymbols(rawDeferredImports) {
37980
+ const deferredTypes = /* @__PURE__ */ new Map();
37981
+ if (!import_typescript56.default.isArrayLiteralExpression(rawDeferredImports)) {
37982
+ return deferredTypes;
37983
+ }
37984
+ for (const element2 of rawDeferredImports.elements) {
37985
+ const node = tryUnwrapForwardRef(element2, this.reflector) || element2;
37986
+ if (!import_typescript56.default.isIdentifier(node)) {
37987
+ continue;
37988
+ }
37989
+ const imp = this.reflector.getImportOfIdentifier(node);
37990
+ if (imp !== null) {
37991
+ deferredTypes.set(node, imp);
37992
+ }
37993
+ }
37994
+ return deferredTypes;
37820
37995
  }
37821
37996
  _checkForCyclicImport(importedFile, expr, origin) {
37822
37997
  const imported = resolveImportedFile(this.moduleResolver, importedFile, expr, origin);
@@ -37832,7 +38007,7 @@ var ComponentDecoratorHandler = class {
37832
38007
  }
37833
38008
  this.cycleAnalyzer.recordSyntheticImport(origin, imported);
37834
38009
  }
37835
- resolveDeferBlocks(deferBlocks, deferrableDecls, resolutionData, analysisData, eagerlyUsedDecls, componentBoundTarget) {
38010
+ resolveDeferBlocks(componentClassDecl, deferBlocks, deferrableDecls, resolutionData, analysisData, eagerlyUsedDecls, componentBoundTarget) {
37836
38011
  const allDeferredDecls = /* @__PURE__ */ new Set();
37837
38012
  for (const [deferBlock, bound] of deferBlocks) {
37838
38013
  const usedDirectives = new Set(bound.getEagerlyUsedDirectives().map((d) => d.ref.node));
@@ -37862,45 +38037,56 @@ var ComponentDecoratorHandler = class {
37862
38037
  this.resolveDeferTriggers(deferBlock, deferBlock.prefetchTriggers, componentBoundTarget, triggerElements);
37863
38038
  resolutionData.deferBlocks.set(deferBlock, { deps, triggerElements });
37864
38039
  }
37865
- if (analysisData.meta.isStandalone && analysisData.rawImports !== null && import_typescript56.default.isArrayLiteralExpression(analysisData.rawImports)) {
37866
- for (const element2 of analysisData.rawImports.elements) {
37867
- const node = tryUnwrapForwardRef(element2, this.reflector) || element2;
37868
- if (!import_typescript56.default.isIdentifier(node)) {
37869
- continue;
37870
- }
37871
- const imp = this.reflector.getImportOfIdentifier(node);
37872
- if (imp === null) {
37873
- continue;
37874
- }
37875
- const decl = this.reflector.getDeclarationOfIdentifier(node);
37876
- if (decl === null) {
37877
- continue;
37878
- }
37879
- if (!isNamedClassDeclaration(decl.node)) {
37880
- continue;
37881
- }
37882
- if (!allDeferredDecls.has(decl.node)) {
37883
- continue;
37884
- }
37885
- if (eagerlyUsedDecls.has(decl.node)) {
37886
- continue;
37887
- }
37888
- const dirMeta = this.metaReader.getDirectiveMetadata(new Reference2(decl.node));
37889
- if (dirMeta !== null && !dirMeta.isStandalone) {
37890
- continue;
37891
- }
37892
- const pipeMeta = this.metaReader.getPipeMetadata(new Reference2(decl.node));
37893
- if (pipeMeta !== null && !pipeMeta.isStandalone) {
37894
- continue;
37895
- }
37896
- if (dirMeta === null && pipeMeta === null) {
37897
- continue;
37898
- }
37899
- resolutionData.deferrableDeclToImportDecl.set(decl.node, imp.node);
37900
- this.deferredSymbolTracker.markAsDeferrableCandidate(node, imp.node);
38040
+ if (analysisData.meta.isStandalone) {
38041
+ if (analysisData.rawImports !== null) {
38042
+ this.registerDeferrableCandidates(componentClassDecl, analysisData.rawImports, false, allDeferredDecls, eagerlyUsedDecls, resolutionData);
38043
+ }
38044
+ if (analysisData.rawDeferredImports !== null) {
38045
+ this.registerDeferrableCandidates(componentClassDecl, analysisData.rawDeferredImports, true, allDeferredDecls, eagerlyUsedDecls, resolutionData);
37901
38046
  }
37902
38047
  }
37903
38048
  }
38049
+ registerDeferrableCandidates(componentClassDecl, importsExpr, isDeferredImport, allDeferredDecls, eagerlyUsedDecls, resolutionData) {
38050
+ if (!import_typescript56.default.isArrayLiteralExpression(importsExpr)) {
38051
+ return;
38052
+ }
38053
+ for (const element2 of importsExpr.elements) {
38054
+ const node = tryUnwrapForwardRef(element2, this.reflector) || element2;
38055
+ if (!import_typescript56.default.isIdentifier(node)) {
38056
+ continue;
38057
+ }
38058
+ const imp = this.reflector.getImportOfIdentifier(node);
38059
+ if (imp === null) {
38060
+ continue;
38061
+ }
38062
+ const decl = this.reflector.getDeclarationOfIdentifier(node);
38063
+ if (decl === null) {
38064
+ continue;
38065
+ }
38066
+ if (!isNamedClassDeclaration(decl.node)) {
38067
+ continue;
38068
+ }
38069
+ if (!allDeferredDecls.has(decl.node)) {
38070
+ continue;
38071
+ }
38072
+ if (eagerlyUsedDecls.has(decl.node)) {
38073
+ continue;
38074
+ }
38075
+ const dirMeta = this.metaReader.getDirectiveMetadata(new Reference2(decl.node));
38076
+ if (dirMeta !== null && !dirMeta.isStandalone) {
38077
+ continue;
38078
+ }
38079
+ const pipeMeta = this.metaReader.getPipeMetadata(new Reference2(decl.node));
38080
+ if (pipeMeta !== null && !pipeMeta.isStandalone) {
38081
+ continue;
38082
+ }
38083
+ if (dirMeta === null && pipeMeta === null) {
38084
+ continue;
38085
+ }
38086
+ resolutionData.deferrableDeclToImportDecl.set(decl.node, imp.node);
38087
+ this.deferredSymbolTracker.markAsDeferrableCandidate(node, imp.node, componentClassDecl, isDeferredImport);
38088
+ }
38089
+ }
37904
38090
  resolveDeferTriggers(block, triggers, componentBoundTarget, triggerElements) {
37905
38091
  Object.keys(triggers).forEach((key) => {
37906
38092
  const trigger = triggers[key];
@@ -37908,7 +38094,50 @@ var ComponentDecoratorHandler = class {
37908
38094
  });
37909
38095
  }
37910
38096
  };
37911
- function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeReader) {
38097
+ function createTargetBinder(dependencies) {
38098
+ const matcher = new SelectorMatcher();
38099
+ for (const dep of dependencies) {
38100
+ if (dep.kind === MetaKind.Directive && dep.selector !== null) {
38101
+ matcher.addSelectables(CssSelector.parse(dep.selector), [dep]);
38102
+ }
38103
+ }
38104
+ return new R3TargetBinder(matcher);
38105
+ }
38106
+ function getExplicitlyDeferredDeps(scope) {
38107
+ return scope.kind === ComponentScopeKind.NgModule ? [] : scope.deferredDependencies;
38108
+ }
38109
+ function extractPipes(dependencies) {
38110
+ const pipes = /* @__PURE__ */ new Map();
38111
+ for (const dep of dependencies) {
38112
+ if (dep.kind === MetaKind.Pipe) {
38113
+ pipes.set(dep.name, dep);
38114
+ }
38115
+ }
38116
+ return pipes;
38117
+ }
38118
+ function removeDeferrableTypesFromComponentDecorator(analysis, deferrableTypes) {
38119
+ if (analysis.classMetadata) {
38120
+ const deferrableSymbols = new Set(deferrableTypes.keys());
38121
+ const rewrittenDecoratorsNode = removeIdentifierReferences(analysis.classMetadata.decorators.node, deferrableSymbols);
38122
+ analysis.classMetadata.decorators = new WrappedNodeExpr(rewrittenDecoratorsNode);
38123
+ }
38124
+ }
38125
+ function validateNoImportOverlap(eagerDeps, deferredDeps, rawDeferredImports) {
38126
+ let diagnostic = null;
38127
+ const eagerDepsSet = /* @__PURE__ */ new Set();
38128
+ for (const eagerDep of eagerDeps) {
38129
+ eagerDepsSet.add(eagerDep.ref.node);
38130
+ }
38131
+ for (const deferredDep of deferredDeps) {
38132
+ if (eagerDepsSet.has(deferredDep.ref.node)) {
38133
+ const classInfo = deferredDep.ref.debugName ? `The \`${deferredDep.ref.debugName}\`` : "One of the dependencies";
38134
+ diagnostic = makeDiagnostic(ErrorCode.DEFERRED_DEPENDENCY_IMPORTED_EAGERLY, getDiagnosticNode(deferredDep.ref, rawDeferredImports), `\`${classInfo}\` is imported via both \`@Component.imports\` and \`@Component.deferredImports\`. To fix this, make sure that dependencies are imported only once.`);
38135
+ break;
38136
+ }
38137
+ }
38138
+ return diagnostic;
38139
+ }
38140
+ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeReader, isDeferredImport) {
37912
38141
  const diagnostics = [];
37913
38142
  for (const ref of importRefs) {
37914
38143
  const dirMeta = metaReader.getDirectiveMetadata(ref);
@@ -37926,15 +38155,16 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
37926
38155
  continue;
37927
38156
  }
37928
38157
  const ngModuleMeta = metaReader.getNgModuleMetadata(ref);
37929
- if (ngModuleMeta !== null) {
38158
+ if (!isDeferredImport && ngModuleMeta !== null) {
37930
38159
  continue;
37931
38160
  }
37932
- diagnostics.push(makeUnknownComponentImportDiagnostic(ref, importExpr2));
38161
+ const error2 = isDeferredImport ? makeUnknownComponentDeferredImportDiagnostic(ref, importExpr2) : makeUnknownComponentImportDiagnostic(ref, importExpr2);
38162
+ diagnostics.push(error2);
37933
38163
  }
37934
38164
  return diagnostics;
37935
38165
  }
37936
38166
 
37937
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
38167
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
37938
38168
  var import_typescript58 = __toESM(require("typescript"), 1);
37939
38169
  var InjectableDecoratorHandler = class {
37940
38170
  constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, compilationMode, errorOnDuplicateProv = true) {
@@ -37982,11 +38212,17 @@ var InjectableDecoratorHandler = class {
37982
38212
  return null;
37983
38213
  }
37984
38214
  register(node, analysis) {
38215
+ if (this.compilationMode === CompilationMode.LOCAL) {
38216
+ return;
38217
+ }
37985
38218
  this.injectableRegistry.registerInjectable(node, {
37986
38219
  ctorDeps: analysis.ctorDeps
37987
38220
  });
37988
38221
  }
37989
- resolve(node, analysis, symbol) {
38222
+ resolve(node, analysis) {
38223
+ if (this.compilationMode === CompilationMode.LOCAL) {
38224
+ return {};
38225
+ }
37990
38226
  if (requiresValidCtor(analysis.meta)) {
37991
38227
  const diagnostic = checkInheritanceOfInjectable(node, this.injectableRegistry, this.reflector, this.evaluator, this.strictCtorDeps, "Injectable");
37992
38228
  if (diagnostic !== null) {
@@ -38159,7 +38395,7 @@ function getDep(dep, reflector) {
38159
38395
  return meta;
38160
38396
  }
38161
38397
 
38162
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
38398
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
38163
38399
  var import_typescript59 = __toESM(require("typescript"), 1);
38164
38400
  var PipeSymbol = class extends SemanticSymbol {
38165
38401
  constructor(decl, name) {
@@ -38268,6 +38504,9 @@ var PipeDecoratorHandler = class {
38268
38504
  return new PipeSymbol(node, analysis.meta.pipeName);
38269
38505
  }
38270
38506
  register(node, analysis) {
38507
+ if (this.compilationMode === CompilationMode.LOCAL) {
38508
+ return;
38509
+ }
38271
38510
  const ref = new Reference2(node);
38272
38511
  this.metaRegistry.registerPipeMetadata({
38273
38512
  kind: MetaKind.Pipe,
@@ -38275,13 +38514,17 @@ var PipeDecoratorHandler = class {
38275
38514
  name: analysis.meta.pipeName,
38276
38515
  nameExpr: analysis.pipeNameExpr,
38277
38516
  isStandalone: analysis.meta.isStandalone,
38278
- decorator: analysis.decorator
38517
+ decorator: analysis.decorator,
38518
+ isExplicitlyDeferred: false
38279
38519
  });
38280
38520
  this.injectableRegistry.registerInjectable(node, {
38281
38521
  ctorDeps: analysis.meta.deps
38282
38522
  });
38283
38523
  }
38284
38524
  resolve(node) {
38525
+ if (this.compilationMode === CompilationMode.LOCAL) {
38526
+ return {};
38527
+ }
38285
38528
  const duplicateDeclData = this.scopeRegistry.getDuplicateDeclarations(node);
38286
38529
  if (duplicateDeclData !== null) {
38287
38530
  return {
@@ -38310,7 +38553,7 @@ var PipeDecoratorHandler = class {
38310
38553
  }
38311
38554
  };
38312
38555
 
38313
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
38556
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
38314
38557
  var CycleAnalyzer = class {
38315
38558
  constructor(importGraph) {
38316
38559
  this.importGraph = importGraph;
@@ -38381,7 +38624,7 @@ var Cycle = class {
38381
38624
  }
38382
38625
  };
38383
38626
 
38384
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
38627
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
38385
38628
  var import_typescript60 = __toESM(require("typescript"), 1);
38386
38629
  var ImportGraph = class {
38387
38630
  constructor(checker, perf) {
@@ -38473,13 +38716,13 @@ var Found = class {
38473
38716
  }
38474
38717
  };
38475
38718
 
38476
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
38719
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
38477
38720
  var import_typescript66 = __toESM(require("typescript"), 1);
38478
38721
 
38479
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
38722
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
38480
38723
  var import_typescript63 = __toESM(require("typescript"), 1);
38481
38724
 
38482
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
38725
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
38483
38726
  var EntryType;
38484
38727
  (function(EntryType2) {
38485
38728
  EntryType2["Block"] = "block";
@@ -38522,17 +38765,17 @@ var MemberTags;
38522
38765
  MemberTags2["Inherited"] = "override";
38523
38766
  })(MemberTags || (MemberTags = {}));
38524
38767
 
38525
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
38768
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
38526
38769
  function isAngularPrivateName(name) {
38527
38770
  var _a2;
38528
38771
  const firstChar = (_a2 = name[0]) != null ? _a2 : "";
38529
38772
  return firstChar === "\u0275" || firstChar === "_";
38530
38773
  }
38531
38774
 
38532
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
38775
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
38533
38776
  var import_typescript62 = __toESM(require("typescript"), 1);
38534
38777
 
38535
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
38778
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
38536
38779
  function extractGenerics(declaration) {
38537
38780
  var _a2, _b2;
38538
38781
  return (_b2 = (_a2 = declaration.typeParameters) == null ? void 0 : _a2.map((typeParam) => {
@@ -38545,7 +38788,7 @@ function extractGenerics(declaration) {
38545
38788
  })) != null ? _b2 : [];
38546
38789
  }
38547
38790
 
38548
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
38791
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
38549
38792
  var import_typescript61 = __toESM(require("typescript"), 1);
38550
38793
  var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
38551
38794
  function extractJsDocTags(node) {
@@ -38589,12 +38832,12 @@ function unescapeAngularDecorators(comment) {
38589
38832
  return comment.replace(/_NG_AT_/g, "@");
38590
38833
  }
38591
38834
 
38592
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
38835
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
38593
38836
  function extractResolvedTypeString(node, checker) {
38594
38837
  return checker.typeToString(checker.getTypeAtLocation(node));
38595
38838
  }
38596
38839
 
38597
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
38840
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
38598
38841
  var FunctionExtractor = class {
38599
38842
  constructor(declaration, typeChecker) {
38600
38843
  this.declaration = declaration;
@@ -38648,7 +38891,7 @@ var FunctionExtractor = class {
38648
38891
  }
38649
38892
  };
38650
38893
 
38651
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
38894
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
38652
38895
  var ClassExtractor = class {
38653
38896
  constructor(declaration, typeChecker) {
38654
38897
  this.declaration = declaration;
@@ -38875,7 +39118,7 @@ function extractInterface(declaration, typeChecker) {
38875
39118
  return extractor.extract();
38876
39119
  }
38877
39120
 
38878
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
39121
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
38879
39122
  function extractConstant(declaration, typeChecker) {
38880
39123
  const resolvedType = typeChecker.getBaseTypeOfLiteralType(typeChecker.getTypeAtLocation(declaration));
38881
39124
  const variableStatement = declaration.parent.parent;
@@ -38893,7 +39136,7 @@ function isSyntheticAngularConstant(declaration) {
38893
39136
  return declaration.name.getText() === "USED_FOR_NG_TYPE_CHECKING";
38894
39137
  }
38895
39138
 
38896
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
39139
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
38897
39140
  var import_typescript64 = __toESM(require("typescript"), 1);
38898
39141
  function extractorDecorator(declaration, typeChecker) {
38899
39142
  const documentedNode = getDecoratorJsDocNode(declaration);
@@ -38966,7 +39209,7 @@ function getDecoratorJsDocNode(declaration) {
38966
39209
  return callSignature;
38967
39210
  }
38968
39211
 
38969
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
39212
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
38970
39213
  var import_typescript65 = __toESM(require("typescript"), 1);
38971
39214
  function extractEnum(declaration, typeChecker) {
38972
39215
  return {
@@ -38997,7 +39240,7 @@ function getEnumMemberValue(memberNode) {
38997
39240
  return (_a2 = literal3 == null ? void 0 : literal3.getText()) != null ? _a2 : "";
38998
39241
  }
38999
39242
 
39000
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
39243
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
39001
39244
  function extractTypeAlias(declaration) {
39002
39245
  return {
39003
39246
  name: declaration.name.getText(),
@@ -39009,7 +39252,7 @@ function extractTypeAlias(declaration) {
39009
39252
  };
39010
39253
  }
39011
39254
 
39012
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
39255
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
39013
39256
  var DocsExtractor = class {
39014
39257
  constructor(typeChecker, metadataReader) {
39015
39258
  this.typeChecker = typeChecker;
@@ -39071,7 +39314,7 @@ function isIgnoredInterface(node) {
39071
39314
  return node.name.getText().endsWith("Decorator") || isDecoratorOptionsInterface(node);
39072
39315
  }
39073
39316
 
39074
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
39317
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
39075
39318
  var import_typescript67 = __toESM(require("typescript"), 1);
39076
39319
  var FlatIndexGenerator = class {
39077
39320
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -39096,7 +39339,7 @@ export * from '${relativeEntryPoint}';
39096
39339
  }
39097
39340
  };
39098
39341
 
39099
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
39342
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
39100
39343
  function findFlatIndexEntryPoint(rootFiles) {
39101
39344
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
39102
39345
  let resolvedEntryPoint = null;
@@ -39112,7 +39355,7 @@ function findFlatIndexEntryPoint(rootFiles) {
39112
39355
  return resolvedEntryPoint;
39113
39356
  }
39114
39357
 
39115
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
39358
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
39116
39359
  var import_typescript69 = __toESM(require("typescript"), 1);
39117
39360
  function checkForPrivateExports(entryPoint, checker, refGraph) {
39118
39361
  const diagnostics = [];
@@ -39192,7 +39435,7 @@ function getDescriptorOfDeclaration(decl) {
39192
39435
  }
39193
39436
  }
39194
39437
 
39195
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
39438
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
39196
39439
  var ReferenceGraph = class {
39197
39440
  constructor() {
39198
39441
  this.references = /* @__PURE__ */ new Map();
@@ -39246,7 +39489,7 @@ var ReferenceGraph = class {
39246
39489
  }
39247
39490
  };
39248
39491
 
39249
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
39492
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
39250
39493
  var NgOriginalFile = Symbol("NgOriginalFile");
39251
39494
  var UpdateMode;
39252
39495
  (function(UpdateMode2) {
@@ -39254,13 +39497,13 @@ var UpdateMode;
39254
39497
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
39255
39498
  })(UpdateMode || (UpdateMode = {}));
39256
39499
 
39257
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
39500
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
39258
39501
  var import_typescript73 = __toESM(require("typescript"), 1);
39259
39502
 
39260
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
39503
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
39261
39504
  var import_typescript70 = __toESM(require("typescript"), 1);
39262
39505
 
39263
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
39506
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
39264
39507
  var NgExtension = Symbol("NgExtension");
39265
39508
  function isExtended(sf) {
39266
39509
  return sf[NgExtension] !== void 0;
@@ -39320,13 +39563,13 @@ function retagTsFile(sf) {
39320
39563
  }
39321
39564
  }
39322
39565
 
39323
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
39566
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
39324
39567
  var TS_EXTENSIONS = /\.tsx?$/i;
39325
39568
  function makeShimFileName(fileName, suffix) {
39326
39569
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
39327
39570
  }
39328
39571
 
39329
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
39572
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
39330
39573
  var ShimAdapter = class {
39331
39574
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
39332
39575
  this.delegate = delegate;
@@ -39421,7 +39664,7 @@ var ShimAdapter = class {
39421
39664
  }
39422
39665
  };
39423
39666
 
39424
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
39667
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
39425
39668
  var ShimReferenceTagger = class {
39426
39669
  constructor(shimExtensions) {
39427
39670
  this.tagged = /* @__PURE__ */ new Set();
@@ -39455,7 +39698,7 @@ var ShimReferenceTagger = class {
39455
39698
  }
39456
39699
  };
39457
39700
 
39458
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
39701
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
39459
39702
  var DelegatingCompilerHost = class {
39460
39703
  get jsDocParsingMode() {
39461
39704
  return this.delegate.jsDocParsingMode;
@@ -39574,7 +39817,7 @@ var TsCreateProgramDriver = class {
39574
39817
  }
39575
39818
  };
39576
39819
 
39577
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
39820
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
39578
39821
  var FileDependencyGraph = class {
39579
39822
  constructor() {
39580
39823
  this.nodes = /* @__PURE__ */ new Map();
@@ -39641,7 +39884,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
39641
39884
  return false;
39642
39885
  }
39643
39886
 
39644
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
39887
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
39645
39888
  var IncrementalStateKind;
39646
39889
  (function(IncrementalStateKind2) {
39647
39890
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -39649,7 +39892,7 @@ var IncrementalStateKind;
39649
39892
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
39650
39893
  })(IncrementalStateKind || (IncrementalStateKind = {}));
39651
39894
 
39652
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
39895
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
39653
39896
  var PhaseKind;
39654
39897
  (function(PhaseKind2) {
39655
39898
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -39850,7 +40093,7 @@ function toOriginalSourceFile(sf) {
39850
40093
  }
39851
40094
  }
39852
40095
 
39853
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
40096
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
39854
40097
  var TrackedIncrementalBuildStrategy = class {
39855
40098
  constructor() {
39856
40099
  this.state = null;
@@ -39871,7 +40114,7 @@ var TrackedIncrementalBuildStrategy = class {
39871
40114
  };
39872
40115
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
39873
40116
 
39874
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
40117
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
39875
40118
  var IdentifierKind;
39876
40119
  (function(IdentifierKind2) {
39877
40120
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -39889,7 +40132,7 @@ var AbsoluteSourceSpan2 = class {
39889
40132
  }
39890
40133
  };
39891
40134
 
39892
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
40135
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
39893
40136
  var IndexingContext = class {
39894
40137
  constructor() {
39895
40138
  this.components = /* @__PURE__ */ new Set();
@@ -39899,7 +40142,7 @@ var IndexingContext = class {
39899
40142
  }
39900
40143
  };
39901
40144
 
39902
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
40145
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
39903
40146
  var ExpressionVisitor = class extends RecursiveAstVisitor2 {
39904
40147
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
39905
40148
  super();
@@ -40180,7 +40423,7 @@ function getTemplateIdentifiers(boundTemplate) {
40180
40423
  return { identifiers: visitor.identifiers, errors: visitor.errors };
40181
40424
  }
40182
40425
 
40183
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
40426
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
40184
40427
  function generateAnalysis(context) {
40185
40428
  const analysis = /* @__PURE__ */ new Map();
40186
40429
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -40216,7 +40459,7 @@ function generateAnalysis(context) {
40216
40459
  return analysis;
40217
40460
  }
40218
40461
 
40219
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
40462
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
40220
40463
  var NgModuleIndexImpl = class {
40221
40464
  constructor(metaReader, localReader) {
40222
40465
  this.metaReader = metaReader;
@@ -40305,7 +40548,7 @@ var NgModuleIndexImpl = class {
40305
40548
  }
40306
40549
  };
40307
40550
 
40308
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
40551
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
40309
40552
  var import_typescript76 = __toESM(require("typescript"), 1);
40310
40553
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
40311
40554
  var RESOURCE_MARKER = ".$ngresource$";
@@ -40453,7 +40696,7 @@ function createLookupResolutionHost(adapter) {
40453
40696
  };
40454
40697
  }
40455
40698
 
40456
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
40699
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
40457
40700
  var StandaloneComponentScopeReader = class {
40458
40701
  constructor(metaReader, localModuleReader, dtsModuleReader) {
40459
40702
  this.metaReader = metaReader;
@@ -40471,6 +40714,7 @@ var StandaloneComponentScopeReader = class {
40471
40714
  return null;
40472
40715
  }
40473
40716
  const dependencies = /* @__PURE__ */ new Set([clazzMeta]);
40717
+ const deferredDependencies = /* @__PURE__ */ new Set();
40474
40718
  const seen = /* @__PURE__ */ new Set([clazz]);
40475
40719
  let isPoisoned = clazzMeta.isPoisoned;
40476
40720
  if (clazzMeta.imports !== null) {
@@ -40516,10 +40760,27 @@ var StandaloneComponentScopeReader = class {
40516
40760
  isPoisoned = true;
40517
40761
  }
40518
40762
  }
40763
+ if (clazzMeta.deferredImports !== null) {
40764
+ for (const ref of clazzMeta.deferredImports) {
40765
+ const dirMeta = this.metaReader.getDirectiveMetadata(ref);
40766
+ if (dirMeta !== null) {
40767
+ deferredDependencies.add(__spreadProps(__spreadValues({}, dirMeta), { ref, isExplicitlyDeferred: true }));
40768
+ isPoisoned = isPoisoned || dirMeta.isPoisoned || !dirMeta.isStandalone;
40769
+ continue;
40770
+ }
40771
+ const pipeMeta = this.metaReader.getPipeMetadata(ref);
40772
+ if (pipeMeta !== null) {
40773
+ deferredDependencies.add(__spreadProps(__spreadValues({}, pipeMeta), { ref, isExplicitlyDeferred: true }));
40774
+ isPoisoned = isPoisoned || !pipeMeta.isStandalone;
40775
+ continue;
40776
+ }
40777
+ }
40778
+ }
40519
40779
  this.cache.set(clazz, {
40520
40780
  kind: ComponentScopeKind.Standalone,
40521
40781
  component: clazz,
40522
40782
  dependencies: Array.from(dependencies),
40783
+ deferredDependencies: Array.from(deferredDependencies),
40523
40784
  isPoisoned,
40524
40785
  schemas: (_a2 = clazzMeta.schemas) != null ? _a2 : []
40525
40786
  });
@@ -40531,21 +40792,21 @@ var StandaloneComponentScopeReader = class {
40531
40792
  }
40532
40793
  };
40533
40794
 
40534
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
40795
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
40535
40796
  var OptimizeFor;
40536
40797
  (function(OptimizeFor2) {
40537
40798
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
40538
40799
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
40539
40800
  })(OptimizeFor || (OptimizeFor = {}));
40540
40801
 
40541
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
40802
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
40542
40803
  var CompletionKind;
40543
40804
  (function(CompletionKind2) {
40544
40805
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
40545
40806
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
40546
40807
  })(CompletionKind || (CompletionKind = {}));
40547
40808
 
40548
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
40809
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
40549
40810
  var PotentialImportKind;
40550
40811
  (function(PotentialImportKind2) {
40551
40812
  PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
@@ -40557,7 +40818,7 @@ var PotentialImportMode;
40557
40818
  PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
40558
40819
  })(PotentialImportMode || (PotentialImportMode = {}));
40559
40820
 
40560
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
40821
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
40561
40822
  var SymbolKind;
40562
40823
  (function(SymbolKind2) {
40563
40824
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -40573,7 +40834,7 @@ var SymbolKind;
40573
40834
  SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
40574
40835
  })(SymbolKind || (SymbolKind = {}));
40575
40836
 
40576
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
40837
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
40577
40838
  var import_typescript77 = __toESM(require("typescript"), 1);
40578
40839
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
40579
40840
  var _a2;
@@ -40680,7 +40941,7 @@ function parseTemplateAsSourceFile(fileName, template2) {
40680
40941
  return import_typescript77.default.createSourceFile(fileName, template2, import_typescript77.default.ScriptTarget.Latest, false, import_typescript77.default.ScriptKind.JSX);
40681
40942
  }
40682
40943
 
40683
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
40944
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
40684
40945
  var TEMPLATE_ID = Symbol("ngTemplateId");
40685
40946
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
40686
40947
  function getTemplateId(clazz) {
@@ -40697,10 +40958,10 @@ function allocateTemplateId(sf) {
40697
40958
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
40698
40959
  }
40699
40960
 
40700
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
40961
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
40701
40962
  var import_typescript79 = __toESM(require("typescript"), 1);
40702
40963
 
40703
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
40964
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
40704
40965
  var import_typescript78 = __toESM(require("typescript"), 1);
40705
40966
  var parseSpanComment = /^(\d+),(\d+)$/;
40706
40967
  function readSpanComment(node, sourceFile = node.getSourceFile()) {
@@ -40829,7 +41090,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
40829
41090
  }) || false;
40830
41091
  }
40831
41092
 
40832
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
41093
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
40833
41094
  var CompletionEngine = class {
40834
41095
  constructor(tcb, data, tcbPath, tcbIsShim) {
40835
41096
  this.tcb = tcb;
@@ -40986,10 +41247,10 @@ var CompletionEngine = class {
40986
41247
  }
40987
41248
  };
40988
41249
 
40989
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
41250
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
40990
41251
  var import_typescript93 = __toESM(require("typescript"), 1);
40991
41252
 
40992
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
41253
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
40993
41254
  var import_typescript80 = __toESM(require("typescript"), 1);
40994
41255
  var REGISTRY = new DomElementSchemaRegistry();
40995
41256
  var REMOVE_XHTML_REGEX = /^:xhtml:/;
@@ -41041,10 +41302,10 @@ var RegistryDomSchemaChecker = class {
41041
41302
  }
41042
41303
  };
41043
41304
 
41044
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
41305
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
41045
41306
  var import_typescript86 = __toESM(require("typescript"), 1);
41046
41307
 
41047
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
41308
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
41048
41309
  var ReferenceEmitEnvironment = class {
41049
41310
  constructor(importManager, refEmitter, reflector, contextFile) {
41050
41311
  this.importManager = importManager;
@@ -41074,7 +41335,7 @@ var ReferenceEmitEnvironment = class {
41074
41335
  }
41075
41336
  };
41076
41337
 
41077
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
41338
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
41078
41339
  var import_typescript81 = __toESM(require("typescript"), 1);
41079
41340
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
41080
41341
  import_typescript81.default.SyntaxKind.ParenthesizedExpression,
@@ -41159,13 +41420,13 @@ function tsNumericExpression2(value) {
41159
41420
  return import_typescript81.default.factory.createNumericLiteral(value);
41160
41421
  }
41161
41422
 
41162
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
41423
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
41163
41424
  var import_typescript85 = __toESM(require("typescript"), 1);
41164
41425
 
41165
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
41426
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
41166
41427
  var import_typescript83 = __toESM(require("typescript"), 1);
41167
41428
 
41168
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
41429
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
41169
41430
  var import_typescript82 = __toESM(require("typescript"), 1);
41170
41431
  var TypeParameterEmitter = class {
41171
41432
  constructor(typeParameters, reflector) {
@@ -41243,7 +41504,7 @@ var TypeParameterEmitter = class {
41243
41504
  }
41244
41505
  };
41245
41506
 
41246
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
41507
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
41247
41508
  var TCB_FILE_IMPORT_GRAPH_PREPARE_MODULES = [
41248
41509
  Identifiers.InputSignalBrandWriteType.moduleName
41249
41510
  ];
@@ -41331,7 +41592,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
41331
41592
  return emitter.canEmit((ref) => env.canReferenceType(ref));
41332
41593
  }
41333
41594
 
41334
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
41595
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
41335
41596
  function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
41336
41597
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
41337
41598
  const rawType = import_typescript85.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -41454,7 +41715,7 @@ function typeParametersWithDefaultTypes(params) {
41454
41715
  });
41455
41716
  }
41456
41717
 
41457
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
41718
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
41458
41719
  var Environment = class extends ReferenceEmitEnvironment {
41459
41720
  constructor(config, importManager, refEmitter, reflector, contextFile) {
41460
41721
  super(importManager, refEmitter, reflector, contextFile);
@@ -41529,7 +41790,7 @@ var Environment = class extends ReferenceEmitEnvironment {
41529
41790
  }
41530
41791
  };
41531
41792
 
41532
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
41793
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
41533
41794
  var import_typescript87 = __toESM(require("typescript"), 1);
41534
41795
  var OutOfBandDiagnosticRecorderImpl = class {
41535
41796
  constructor(resolver) {
@@ -41559,6 +41820,30 @@ var OutOfBandDiagnosticRecorderImpl = class {
41559
41820
  this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript87.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
41560
41821
  this.recordedPipes.add(ast);
41561
41822
  }
41823
+ deferredPipeUsedEagerly(templateId, ast) {
41824
+ if (this.recordedPipes.has(ast)) {
41825
+ return;
41826
+ }
41827
+ const mapping = this.resolver.getSourceMapping(templateId);
41828
+ const errorMsg = `Pipe '${ast.name}' was imported via \`@Component.deferredImports\`, but was used outside of a \`@defer\` block in a template. To fix this, either use the '${ast.name}' pipe inside of a \`@defer\` block or import this dependency using the \`@Component.imports\` field.`;
41829
+ const sourceSpan = this.resolver.toParseSourceSpan(templateId, ast.nameSpan);
41830
+ if (sourceSpan === null) {
41831
+ throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
41832
+ }
41833
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript87.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_PIPE_USED_EAGERLY), errorMsg));
41834
+ this.recordedPipes.add(ast);
41835
+ }
41836
+ deferredComponentUsedEagerly(templateId, element2) {
41837
+ const mapping = this.resolver.getSourceMapping(templateId);
41838
+ const errorMsg = `Element '${element2.name}' contains a component or a directive that was imported via \`@Component.deferredImports\`, but the element itself is located outside of a \`@defer\` block in a template. To fix this, either use the '${element2.name}' element inside of a \`@defer\` block or import referenced component/directive dependency using the \`@Component.imports\` field.`;
41839
+ const { start, end } = element2.startSourceSpan;
41840
+ const absoluteSourceSpan = new AbsoluteSourceSpan(start.offset, end.offset);
41841
+ const sourceSpan = this.resolver.toParseSourceSpan(templateId, absoluteSourceSpan);
41842
+ if (sourceSpan === null) {
41843
+ throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${element2.name}'.`);
41844
+ }
41845
+ this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript87.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_DIRECTIVE_USED_EAGERLY), errorMsg));
41846
+ }
41562
41847
  illegalAssignmentToTemplateVar(templateId, assignment, target) {
41563
41848
  var _a2, _b2;
41564
41849
  const mapping = this.resolver.getSourceMapping(templateId);
@@ -41705,7 +41990,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
41705
41990
  });
41706
41991
  }
41707
41992
 
41708
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
41993
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
41709
41994
  var import_typescript88 = __toESM(require("typescript"), 1);
41710
41995
  var TypeCheckShimGenerator = class {
41711
41996
  constructor() {
@@ -41723,10 +42008,10 @@ var TypeCheckShimGenerator = class {
41723
42008
  }
41724
42009
  };
41725
42010
 
41726
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
42011
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
41727
42012
  var import_typescript91 = __toESM(require("typescript"), 1);
41728
42013
 
41729
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
42014
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
41730
42015
  var import_typescript89 = __toESM(require("typescript"), 1);
41731
42016
  function wrapForDiagnostics(expr) {
41732
42017
  return import_typescript89.default.factory.createParenthesizedExpression(expr);
@@ -41771,7 +42056,7 @@ function translateDiagnostic(diagnostic, resolver) {
41771
42056
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
41772
42057
  }
41773
42058
 
41774
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
42059
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
41775
42060
  var import_typescript90 = __toESM(require("typescript"), 1);
41776
42061
  var NULL_AS_ANY = import_typescript90.default.factory.createAsExpression(import_typescript90.default.factory.createNull(), import_typescript90.default.factory.createKeywordTypeNode(import_typescript90.default.SyntaxKind.AnyKeyword));
41777
42062
  var UNDEFINED = import_typescript90.default.factory.createIdentifier("undefined");
@@ -42103,7 +42388,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
42103
42388
  _VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
42104
42389
  })();
42105
42390
 
42106
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
42391
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
42107
42392
  var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
42108
42393
  constructor(templateId, boundTarget, oob) {
42109
42394
  super();
@@ -42126,7 +42411,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
42126
42411
  }
42127
42412
  };
42128
42413
 
42129
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
42414
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
42130
42415
  var TcbGenericContextBehavior;
42131
42416
  (function(TcbGenericContextBehavior2) {
42132
42417
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -43237,6 +43522,13 @@ var _Scope = class {
43237
43522
  this.opQueue.push(new TcbDomSchemaCheckerOp(this.tcb, node, true, claimedInputs));
43238
43523
  }
43239
43524
  return;
43525
+ } else {
43526
+ if (node instanceof Element) {
43527
+ const isDeferred = this.tcb.boundTarget.isDeferred(node);
43528
+ if (!isDeferred && directives.some((dirMeta) => dirMeta.isExplicitlyDeferred)) {
43529
+ this.tcb.oobRecorder.deferredComponentUsedEagerly(this.tcb.id, node);
43530
+ }
43531
+ }
43240
43532
  }
43241
43533
  const dirMap = /* @__PURE__ */ new Map();
43242
43534
  for (const dir of directives) {
@@ -43414,13 +43706,16 @@ var TcbExpressionTranslator = class {
43414
43706
  return import_typescript91.default.factory.createThis();
43415
43707
  } else if (ast instanceof BindingPipe) {
43416
43708
  const expr = this.translate(ast.exp);
43417
- const pipeRef = this.tcb.getPipeByName(ast.name);
43709
+ const pipeMeta = this.tcb.getPipeByName(ast.name);
43418
43710
  let pipe2;
43419
- if (pipeRef === null) {
43711
+ if (pipeMeta === null) {
43420
43712
  this.tcb.oobRecorder.missingPipe(this.tcb.id, ast);
43421
43713
  pipe2 = NULL_AS_ANY;
43714
+ } else if (pipeMeta.isExplicitlyDeferred && this.tcb.boundTarget.getEagerlyUsedPipes().includes(ast.name)) {
43715
+ this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id, ast);
43716
+ pipe2 = NULL_AS_ANY;
43422
43717
  } else {
43423
- pipe2 = this.tcb.env.pipeInst(pipeRef);
43718
+ pipe2 = this.tcb.env.pipeInst(pipeMeta.ref);
43424
43719
  }
43425
43720
  const args = ast.args.map((arg) => this.translate(arg));
43426
43721
  let methodAccess = import_typescript91.default.factory.createPropertyAccessExpression(pipe2, "transform");
@@ -43617,7 +43912,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
43617
43912
  }
43618
43913
  };
43619
43914
 
43620
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
43915
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
43621
43916
  var import_typescript92 = __toESM(require("typescript"), 1);
43622
43917
  var TypeCheckFile = class extends Environment {
43623
43918
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -43654,7 +43949,7 @@ var TypeCheckFile = class extends Environment {
43654
43949
  }
43655
43950
  };
43656
43951
 
43657
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
43952
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
43658
43953
  var InliningMode;
43659
43954
  (function(InliningMode2) {
43660
43955
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -43716,7 +44011,7 @@ var TypeCheckContextImpl = class {
43716
44011
  if (!pipes.has(name)) {
43717
44012
  continue;
43718
44013
  }
43719
- usedPipes.push(pipes.get(name));
44014
+ usedPipes.push(pipes.get(name).ref);
43720
44015
  }
43721
44016
  const inliningRequirement = requiresInlineTypeCheckBlock(ref, shimData.file, usedPipes, this.reflector);
43722
44017
  if (this.inlining === InliningMode.Error && inliningRequirement === TcbInliningRequirement.MustInline) {
@@ -43894,7 +44189,7 @@ function splitStringAtPoints(str, points) {
43894
44189
  return splits;
43895
44190
  }
43896
44191
 
43897
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
44192
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
43898
44193
  var LF_CHAR = 10;
43899
44194
  var CR_CHAR = 13;
43900
44195
  var LINE_SEP_CHAR = 8232;
@@ -43935,7 +44230,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
43935
44230
  return low - 1;
43936
44231
  }
43937
44232
 
43938
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
44233
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
43939
44234
  var TemplateSource = class {
43940
44235
  constructor(mapping, file) {
43941
44236
  this.mapping = mapping;
@@ -43986,7 +44281,7 @@ var TemplateSourceManager = class {
43986
44281
  }
43987
44282
  };
43988
44283
 
43989
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
44284
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
43990
44285
  var import_typescript94 = __toESM(require("typescript"), 1);
43991
44286
  var SymbolBuilder = class {
43992
44287
  constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
@@ -44463,7 +44758,7 @@ function sourceSpanEqual(a, b) {
44463
44758
  return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
44464
44759
  }
44465
44760
 
44466
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
44761
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
44467
44762
  var REGISTRY2 = new DomElementSchemaRegistry();
44468
44763
  var TemplateTypeCheckerImpl = class {
44469
44764
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
@@ -45159,7 +45454,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
45159
45454
  }
45160
45455
  };
45161
45456
 
45162
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
45457
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
45163
45458
  var TemplateCheckWithVisitor = class {
45164
45459
  run(ctx, component, template2) {
45165
45460
  const visitor = new TemplateVisitor2(ctx, component, this);
@@ -45282,7 +45577,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
45282
45577
  }
45283
45578
  };
45284
45579
 
45285
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
45580
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
45286
45581
  var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
45287
45582
  constructor() {
45288
45583
  super(...arguments);
@@ -45301,7 +45596,7 @@ var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
45301
45596
  }
45302
45597
  };
45303
45598
  function isSignal(symbol) {
45304
- return ((symbol == null ? void 0 : symbol.escapedName) === "WritableSignal" || (symbol == null ? void 0 : symbol.escapedName) === "Signal") && symbol.parent.escapedName.includes("@angular/core");
45599
+ return ((symbol == null ? void 0 : symbol.escapedName) === "WritableSignal" || (symbol == null ? void 0 : symbol.escapedName) === "Signal" || (symbol == null ? void 0 : symbol.escapedName) === "InputSignal") && symbol.parent.escapedName.includes("@angular/core");
45305
45600
  }
45306
45601
  function buildDiagnosticForSignal(ctx, node, component) {
45307
45602
  const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
@@ -45319,7 +45614,7 @@ var factory = {
45319
45614
  create: () => new InterpolatedSignalCheck()
45320
45615
  };
45321
45616
 
45322
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
45617
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
45323
45618
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
45324
45619
  constructor() {
45325
45620
  super(...arguments);
@@ -45344,7 +45639,7 @@ var factory2 = {
45344
45639
  create: () => new InvalidBananaInBoxCheck()
45345
45640
  };
45346
45641
 
45347
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
45642
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
45348
45643
  var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
45349
45644
  ["ngIf", { directive: "NgIf", builtIn: "@if" }],
45350
45645
  ["ngFor", { directive: "NgFor", builtIn: "@for" }],
@@ -45388,7 +45683,7 @@ var factory3 = {
45388
45683
  }
45389
45684
  };
45390
45685
 
45391
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
45686
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
45392
45687
  var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
45393
45688
  constructor() {
45394
45689
  super(...arguments);
@@ -45420,7 +45715,7 @@ var factory4 = {
45420
45715
  create: () => new MissingNgForOfLetCheck()
45421
45716
  };
45422
45717
 
45423
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
45718
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
45424
45719
  var import_typescript97 = __toESM(require("typescript"), 1);
45425
45720
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
45426
45721
  constructor() {
@@ -45464,7 +45759,7 @@ var factory5 = {
45464
45759
  }
45465
45760
  };
45466
45761
 
45467
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
45762
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
45468
45763
  var import_typescript98 = __toESM(require("typescript"), 1);
45469
45764
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
45470
45765
  constructor() {
@@ -45509,7 +45804,7 @@ var factory6 = {
45509
45804
  }
45510
45805
  };
45511
45806
 
45512
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
45807
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
45513
45808
  var STYLE_SUFFIXES = ["px", "%", "em"];
45514
45809
  var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
45515
45810
  constructor() {
@@ -45532,7 +45827,7 @@ var factory7 = {
45532
45827
  create: () => new SuffixNotSupportedCheck()
45533
45828
  };
45534
45829
 
45535
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
45830
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
45536
45831
  var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
45537
45832
  constructor() {
45538
45833
  super(...arguments);
@@ -45570,10 +45865,10 @@ var factory8 = {
45570
45865
  create: () => new TextAttributeNotBindingSpec()
45571
45866
  };
45572
45867
 
45573
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
45868
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
45574
45869
  var import_typescript99 = __toESM(require("typescript"), 1);
45575
45870
 
45576
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
45871
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
45577
45872
  var DiagnosticCategoryLabel;
45578
45873
  (function(DiagnosticCategoryLabel2) {
45579
45874
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -45581,7 +45876,7 @@ var DiagnosticCategoryLabel;
45581
45876
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
45582
45877
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
45583
45878
 
45584
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
45879
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
45585
45880
  var ExtendedTemplateCheckerImpl = class {
45586
45881
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
45587
45882
  var _a2, _b2, _c2, _d2, _e2;
@@ -45633,7 +45928,7 @@ function assertNever(value) {
45633
45928
  ${value}`);
45634
45929
  }
45635
45930
 
45636
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
45931
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
45637
45932
  var ALL_DIAGNOSTIC_FACTORIES = [
45638
45933
  factory2,
45639
45934
  factory5,
@@ -45649,7 +45944,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
45649
45944
  ...ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name)
45650
45945
  ]);
45651
45946
 
45652
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
45947
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
45653
45948
  var CompilationTicketKind;
45654
45949
  (function(CompilationTicketKind2) {
45655
45950
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -45787,10 +46082,17 @@ var NgCompiler = class {
45787
46082
  return this.addMessageTextDetails(diagnostics);
45788
46083
  }
45789
46084
  getDiagnosticsForFile(file, optimizeFor) {
45790
- const diagnostics = [];
45791
- diagnostics.push(...this.getNonTemplateDiagnostics().filter((diag) => diag.file === file), ...this.getTemplateDiagnosticsForFile(file, optimizeFor));
45792
- if (this.options.strictTemplates) {
45793
- diagnostics.push(...this.getExtendedTemplateDiagnostics(file));
46085
+ const diagnostics = [...this.getNonTemplateDiagnostics().filter((diag) => diag.file === file)];
46086
+ try {
46087
+ diagnostics.push(...this.getTemplateDiagnosticsForFile(file, optimizeFor));
46088
+ if (this.options.strictTemplates) {
46089
+ diagnostics.push(...this.getExtendedTemplateDiagnostics(file));
46090
+ }
46091
+ } catch (e) {
46092
+ if (e instanceof FatalDiagnosticError) {
46093
+ diagnostics.push(e.toDiagnostic());
46094
+ }
46095
+ throw e;
45794
46096
  }
45795
46097
  return this.addMessageTextDetails(diagnostics);
45796
46098
  }
@@ -46084,14 +46386,7 @@ var NgCompiler = class {
46084
46386
  const compilation = this.ensureAnalyzed();
46085
46387
  const diagnostics = [];
46086
46388
  if (!sf.isDeclarationFile && !this.adapter.isShim(sf)) {
46087
- try {
46088
- diagnostics.push(...compilation.templateTypeChecker.getDiagnosticsForFile(sf, optimizeFor));
46089
- } catch (err) {
46090
- if (!(err instanceof FatalDiagnosticError)) {
46091
- throw err;
46092
- }
46093
- diagnostics.push(err.toDiagnostic());
46094
- }
46389
+ diagnostics.push(...compilation.templateTypeChecker.getDiagnosticsForFile(sf, optimizeFor));
46095
46390
  }
46096
46391
  const program = this.programDriver.getProgram();
46097
46392
  this.incrementalStrategy.setIncrementalState(this.incrementalCompilation.state, program);
@@ -46124,7 +46419,7 @@ var NgCompiler = class {
46124
46419
  return diagnostics;
46125
46420
  }
46126
46421
  makeCompilation() {
46127
- var _a2, _b2, _c2;
46422
+ var _a2, _b2, _c2, _d2;
46128
46423
  const isCore = isAngularCorePackage(this.inputProgram);
46129
46424
  let compilationMode = CompilationMode.FULL;
46130
46425
  if (!isCore) {
@@ -46193,11 +46488,11 @@ var NgCompiler = class {
46193
46488
  }
46194
46489
  const dtsTransforms = new DtsTransformRegistry();
46195
46490
  const resourceRegistry = new ResourceRegistry();
46196
- const deferredSymbolsTracker = new DeferredSymbolTracker(this.inputProgram.getTypeChecker());
46491
+ const deferredSymbolsTracker = new DeferredSymbolTracker(this.inputProgram.getTypeChecker(), (_a2 = this.options.onlyExplicitDeferDependencyImports) != null ? _a2 : false);
46197
46492
  const cycleHandlingStrategy = compilationMode === CompilationMode.FULL ? 0 : 1;
46198
46493
  const strictCtorDeps = this.options.strictInjectionParameters || false;
46199
- const supportJitMode = (_a2 = this.options["supportJitMode"]) != null ? _a2 : true;
46200
- const supportTestBed = (_b2 = this.options["supportTestBed"]) != null ? _b2 : true;
46494
+ const supportJitMode = (_b2 = this.options["supportJitMode"]) != null ? _b2 : true;
46495
+ const supportTestBed = (_c2 = this.options["supportTestBed"]) != null ? _c2 : true;
46201
46496
  if (supportTestBed === false && compilationMode === CompilationMode.PARTIAL) {
46202
46497
  throw new Error('TestBed support ("supportTestBed" option) cannot be disabled in partial compilation mode.');
46203
46498
  }
@@ -46212,7 +46507,7 @@ var NgCompiler = class {
46212
46507
  new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed, compilationMode),
46213
46508
  new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode),
46214
46509
  new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
46215
- new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_c2 = this.options.onlyPublishPublicTypingsForNgModules) != null ? _c2 : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode)
46510
+ new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_d2 = this.options.onlyPublishPublicTypingsForNgModules) != null ? _d2 : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode)
46216
46511
  ];
46217
46512
  const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
46218
46513
  const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
@@ -46398,7 +46693,7 @@ function versionMapFromProgram(program, driver) {
46398
46693
  return versions;
46399
46694
  }
46400
46695
 
46401
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
46696
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
46402
46697
  var import_typescript102 = __toESM(require("typescript"), 1);
46403
46698
  var DelegatingCompilerHost2 = class {
46404
46699
  get jsDocParsingMode() {
@@ -46537,7 +46832,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
46537
46832
  }
46538
46833
  };
46539
46834
 
46540
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
46835
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
46541
46836
  var NgtscProgram = class {
46542
46837
  constructor(rootNames, options, delegateHost, oldProgram) {
46543
46838
  this.options = options;
@@ -46764,24 +47059,24 @@ function mergeEmitResults(emitResults) {
46764
47059
  return { diagnostics, emitSkipped, emittedFiles };
46765
47060
  }
46766
47061
 
46767
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
47062
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
46768
47063
  function createProgram({ rootNames, options, host, oldProgram }) {
46769
47064
  return new NgtscProgram(rootNames, options, host, oldProgram);
46770
47065
  }
46771
47066
 
46772
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
47067
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
46773
47068
  var import_typescript106 = __toESM(require("typescript"), 1);
46774
47069
 
46775
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
47070
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
46776
47071
  var import_typescript105 = __toESM(require("typescript"), 1);
46777
47072
 
46778
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/downlevel_decorators_transform.mjs
47073
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/downlevel_decorators_transform.mjs
46779
47074
  var import_typescript107 = __toESM(require("typescript"), 1);
46780
47075
 
46781
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/signal_inputs_metadata_transform.mjs
47076
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/signal_inputs_metadata_transform.mjs
46782
47077
  var import_typescript108 = __toESM(require("typescript"), 1);
46783
47078
 
46784
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
47079
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
46785
47080
  var GLOBAL_DEFS_FOR_TERSER = {
46786
47081
  ngDevMode: false,
46787
47082
  ngI18nClosureMode: false
@@ -46790,7 +47085,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
46790
47085
  ngJitMode: false
46791
47086
  });
46792
47087
 
46793
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
47088
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
46794
47089
  var LogLevel;
46795
47090
  (function(LogLevel2) {
46796
47091
  LogLevel2[LogLevel2["debug"] = 0] = "debug";
@@ -46799,7 +47094,7 @@ var LogLevel;
46799
47094
  LogLevel2[LogLevel2["error"] = 3] = "error";
46800
47095
  })(LogLevel || (LogLevel = {}));
46801
47096
 
46802
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
47097
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
46803
47098
  var RESET = "\x1B[0m";
46804
47099
  var RED = "\x1B[31m";
46805
47100
  var YELLOW = "\x1B[33m";
@@ -46808,18 +47103,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
46808
47103
  var WARN = `${YELLOW}Warning:${RESET}`;
46809
47104
  var ERROR = `${RED}Error:${RESET}`;
46810
47105
 
46811
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/index.mjs
47106
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/index.mjs
46812
47107
  setFileSystem(new NodeJSFileSystem());
46813
47108
 
46814
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
47109
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
46815
47110
  var import_fs2 = require("fs");
46816
47111
  var import_path8 = require("path");
46817
47112
  var import_typescript121 = __toESM(require("typescript"), 1);
46818
47113
 
46819
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
47114
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
46820
47115
  var import_typescript110 = __toESM(require("typescript"), 1);
46821
47116
 
46822
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
47117
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
46823
47118
  var import_path4 = require("path");
46824
47119
  var import_typescript109 = __toESM(require("typescript"), 1);
46825
47120
  var ImportManager2 = class {
@@ -47003,7 +47298,7 @@ ${text2}`;
47003
47298
  }
47004
47299
  };
47005
47300
 
47006
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
47301
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
47007
47302
  var ChangeTracker = class {
47008
47303
  constructor(_printer, _importRemapper) {
47009
47304
  __publicField(this, "_printer");
@@ -47062,7 +47357,7 @@ function normalizePath(path4) {
47062
47357
  return path4.replace(/\\/g, "/");
47063
47358
  }
47064
47359
 
47065
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
47360
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
47066
47361
  var import_core19 = require("@angular-devkit/core");
47067
47362
  function getProjectTsConfigPaths(tree) {
47068
47363
  return __async(this, null, function* () {
@@ -47142,11 +47437,11 @@ function getWorkspace(tree) {
47142
47437
  });
47143
47438
  }
47144
47439
 
47145
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
47440
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
47146
47441
  var import_path5 = require("path");
47147
47442
  var import_typescript112 = __toESM(require("typescript"), 1);
47148
47443
 
47149
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
47444
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
47150
47445
  var path3 = __toESM(require("path"), 1);
47151
47446
  var import_typescript111 = __toESM(require("typescript"), 1);
47152
47447
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -47163,7 +47458,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
47163
47458
  return import_typescript111.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
47164
47459
  }
47165
47460
 
47166
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
47461
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
47167
47462
  function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
47168
47463
  tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
47169
47464
  const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
@@ -47192,13 +47487,13 @@ function canMigrateFile(basePath, sourceFile, program) {
47192
47487
  return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
47193
47488
  }
47194
47489
 
47195
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
47490
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
47196
47491
  var import_typescript117 = __toESM(require("typescript"), 1);
47197
47492
 
47198
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
47493
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
47199
47494
  var import_typescript114 = __toESM(require("typescript"), 1);
47200
47495
 
47201
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
47496
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
47202
47497
  var import_typescript113 = __toESM(require("typescript"), 1);
47203
47498
  function getImportOfIdentifier(typeChecker, node) {
47204
47499
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -47249,7 +47544,7 @@ function findImportSpecifier(nodes, specifierName) {
47249
47544
  });
47250
47545
  }
47251
47546
 
47252
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
47547
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
47253
47548
  function getCallDecoratorImport(typeChecker, decorator) {
47254
47549
  if (!import_typescript114.default.isCallExpression(decorator.expression) || !import_typescript114.default.isIdentifier(decorator.expression.expression)) {
47255
47550
  return null;
@@ -47258,7 +47553,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
47258
47553
  return getImportOfIdentifier(typeChecker, identifier);
47259
47554
  }
47260
47555
 
47261
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
47556
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
47262
47557
  function getAngularDecorators(typeChecker, decorators) {
47263
47558
  return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
47264
47559
  node,
@@ -47268,7 +47563,7 @@ function getAngularDecorators(typeChecker, decorators) {
47268
47563
  }));
47269
47564
  }
47270
47565
 
47271
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
47566
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
47272
47567
  var import_typescript115 = __toESM(require("typescript"), 1);
47273
47568
  function closestNode(node, predicate) {
47274
47569
  let current = node.parent;
@@ -47281,7 +47576,7 @@ function closestNode(node, predicate) {
47281
47576
  return null;
47282
47577
  }
47283
47578
 
47284
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
47579
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
47285
47580
  var import_path6 = require("path");
47286
47581
  var import_typescript116 = __toESM(require("typescript"), 1);
47287
47582
  var UniqueItemTracker = class {
@@ -47457,7 +47752,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
47457
47752
  }));
47458
47753
  }
47459
47754
 
47460
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
47755
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
47461
47756
  function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
47462
47757
  const filesToRemove = /* @__PURE__ */ new Set();
47463
47758
  const tracker = new ChangeTracker(printer, importRemapper);
@@ -47656,14 +47951,14 @@ function findNgModuleDecorator(node, typeChecker) {
47656
47951
  return decorators.find((decorator) => decorator.name === "NgModule") || null;
47657
47952
  }
47658
47953
 
47659
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
47954
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
47660
47955
  var import_path7 = require("path");
47661
47956
  var import_typescript120 = __toESM(require("typescript"), 1);
47662
47957
 
47663
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
47958
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
47664
47959
  var import_typescript119 = __toESM(require("typescript"), 1);
47665
47960
 
47666
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
47961
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
47667
47962
  var import_typescript118 = __toESM(require("typescript"), 1);
47668
47963
  function isReferenceToImport(typeChecker, node, importSpecifier) {
47669
47964
  var _a2, _b2;
@@ -47672,7 +47967,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
47672
47967
  return !!(((_a2 = nodeSymbol == null ? void 0 : nodeSymbol.declarations) == null ? void 0 : _a2[0]) && ((_b2 = importSymbol == null ? void 0 : importSymbol.declarations) == null ? void 0 : _b2[0])) && nodeSymbol.declarations[0] === importSymbol.declarations[0];
47673
47968
  }
47674
47969
 
47675
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
47970
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
47676
47971
  function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
47677
47972
  const templateTypeChecker = program.compiler.getTemplateTypeChecker();
47678
47973
  const typeChecker = program.getTsProgram().getTypeChecker();
@@ -48035,7 +48330,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
48035
48330
  return metadata != null && metadata.isStandalone;
48036
48331
  }
48037
48332
 
48038
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
48333
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
48039
48334
  function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
48040
48335
  const tracker = new ChangeTracker(printer, importRemapper);
48041
48336
  const typeChecker = program.getTsProgram().getTypeChecker();
@@ -48412,7 +48707,7 @@ function hasImport(program, rootFileNames, moduleName) {
48412
48707
  return false;
48413
48708
  }
48414
48709
 
48415
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
48710
+ // bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
48416
48711
  var MigrationMode;
48417
48712
  (function(MigrationMode2) {
48418
48713
  MigrationMode2["toStandalone"] = "convert-to-standalone";